From 67f7fcf95d59096035437a89914e1240ebcbbcdb Mon Sep 17 00:00:00 2001 From: eelaix Date: Fri, 23 Feb 2024 09:47:40 +0800 Subject: [PATCH] ok --- docs/index.html | 4 ++-- vuebuild/src/App.vue | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 7887c2f..9ef1021 100644 --- a/docs/index.html +++ b/docs/index.html @@ -116,7 +116,7 @@ AyobaObserver.onResponseGetCarrier(carrier) } catch(err) {console.log(err)} } - `);u0.append(r4);document.body.append(u0);AyobaObserver.onChangeLocation=e=>{Q6.next(e)};AyobaObserver.onChangePresence=e=>{a0.next(e)};AyobaObserver.onChangeNickname=e=>{c0.next(e)};AyobaObserver.onChangeAvatar=e=>{l0.next(e)};AyobaObserver.onResponseGetCarrier=e=>{$6.next(e)};AyobaObserver.onResponseGetSecuredMsisdn=e=>{J6.next(e)};const o4={class:"container-md"},i4={key:0},s4={class:"nav nav-pills nav-fill h3 mt-1"},a4={class:"nav-item text-start my-auto"},c4=["src"],l4={class:"nav-item text-end my-auto"},u4={class:"nav nav-pills nav-fill h3 mt-1 align-middle"},f4={class:"nav-item text-start my-auto"},h4={key:0},d4={key:1},p4=["src"],g4={class:"text-center mt-1"},m4={class:"d-inline-flex"},_4={class:"bdright"},A4={class:"xn-ama w-ama"},y4={class:"tinyst"},v4={class:"xn-ama w-ama"},w4={class:"tinyst"},b4={class:"xn-ama w-ama"},E4={class:"tinyst"},C4={class:"bdright"},T4={class:"xn-ama w-ama"},I4={class:"tinyst"},S4={class:"xn-ama w-ama"},O4={class:"tinyst"},N4={class:"xn-ama w-ama"},R4={class:"tinyst"},D4={class:"bdright"},P4={class:"xn-ama w-ama"},M4={class:"tinyst"},L4={class:"xn-ama w-ama"},k4={class:"tinyst"},B4={class:"xn-ama w-ama"},x4={class:"tinyst"},F4={class:"weui-flex__item"},V4={class:"xn-ama w-ama"},U4={class:"tinyst"},H4={class:"xn-ama w-ama"},W4={class:"tinyst"},j4={class:"xn-ama w-ama"},G4={class:"tinyst"},X4=["disabled"],z4={key:2,class:"mypicker pickw"},Y4={class:"mypanel fs1"},q4={class:"li2 fs2 mt-4"},K4={class:"li2 fs2 mt-4 mb-4"},Z4={key:1},Q4={class:"nav nav-pills nav-fill mt-1"},$4={class:"nav-item text-start"},J4=["src"],tT={class:"nav-item text-end"},eT={class:"nav nav-pills nav-fill mb-4 mt-4",id:"myTab",role:"tablist"},nT={class:"nav-item",role:"presentation"},rT={class:"active btn btn-warning w-75",id:"paystack-tab","data-bs-toggle":"tab","data-bs-target":"#paystack",rol:"tab","aria-controls":"paystack","aria-selected":"true",href:"#paystack"},oT={class:"nav-item",role:"presentation"},iT={class:"btn btn-success w-75",id:"momo-tab","data-bs-toggle":"tab","data-bs-target":"#momo",type:"button",rol:"tab","aria-controls":"momo","aria-selected":"false",href:"#momo"},sT={class:"nav-item",role:"presentation"},aT={class:"btn btn-info w-75",id:"vcard-tab","data-bs-toggle":"tab","data-bs-target":"#vcard",type:"button",rol:"tab","aria-controls":"vcard","aria-selected":"false",href:"#vcard"},cT={class:"tab-content",id:"myTabContent"},lT={id:"paystack",role:"tabpanel","aria-labelledby":"paystack-tab",class:"tab-pane fade show active xnpanel mt-3 pt-4 pb-3"},uT={class:"form-floating mb-3"},fT={for:"paystackfullname"},hT={class:"form-floating mb-3"},dT={for:"paystackmoney"},pT={class:"mt-4 mb-3"},gT=["src"],mT={id:"momo",role:"tabpanel","aria-labelledby":"momo-tab",class:"tab-pane fade show xnpanel mt-3 pt-4 pb-3"},_T={class:"form-floating mb-3"},AT={for:"momoisdn"},yT={class:"form-floating mb-3"},vT={for:"momomount"},wT=["disabled"],bT={class:"mb-3"},ET=["src"],CT={id:"vcard",role:"tabpanel","aria-labelledby":"vcard-tab",class:"tab-pane fade show xnpanel mt-3 pt-4 pb-3"},TT={key:0,class:"form-floating mb-3"},IT={for:"vcarduid"},ST={class:"form-floating mb-3"},OT={for:"vcardcode"},NT=["disabled"],RT={class:"mb-3"},DT=["src"],PT={key:4},MT=jn({__name:"App",setup(e){let t=!0,n=!1,r=-1;function o(z){let g=window.location.search.substring(1),_=g.split("&"),C,P;for(P=0;P<_.length;P++)if(C=_[P].split("="),C[0]===z)return C[1]===void 0?"":decodeURIComponent(C[1]);return""}const i=Zr("axios"),s=Zr("vue3-notify"),{t:a}=ra(),c=Gr({presence:0,avatar:"",msisdn:"",selfjid:"",mytoken:"",nickname:"",isagent:0,mybalnum:0,mybalance:"0.00"}),l=Gr({chargerid:1e4,mac:"",tep:0,pow:0,stp:0,act:0,cbk:0,beep:"00:00:00",prizz:[0,0,0,0,0,0],imax:[0,0,0,0,0,0,0,0,0,0,0,0],pi:["0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01"],sw:[0,0,0,0,0,0,0,0,0,0,0,0],se:[0,0,0,0,0,0,0,0,0,0,0,0],ua:["","","","","","","","","","","",""]}),u=Ot("ChargeNOW"),f=Ot(localStorage.pfname),h=Ot(localStorage.preprepay?Number(localStorage.preprepay):pw),p=Ot(""),m=Ot(""),A=Ot(a("vcardactivenow")),b=Ot(1),y=Ot(-1),w=Ot(0),T=Ot(parseInt(localStorage.horid,10)||0),E=Ot(!1),S=Ot(!1),N=Ot(!0),D=Ot(!1),M=Ot(!1),j=Gr(["10","1","2","3","4","6","8","15"]),H=Gr(["Free","SwitchON","Charging","Disabled","StopDN","Offline","noID"]),tt=Ot(void 0),et=Ot(null);Yo(()=>{e4(z=>{c.nickname=z}),n4(z=>{c.avatar=z}),t4(z=>sn(this,null,function*(){c.presence=z,c.msisdn=Z6(),c.selfjid=o("jid")})),Wt()}),Zs(()=>{c.mytoken="",fh()});function st(){return OE()}function Et(){return["card","bank","ussd","mobile_money"]}function Ht(){var z;w.value=2,(z=et.value)==null||z.onCanPlay()}function gt(){c.mytoken="",fh()}function ht(){return sn(this,null,function*(){D.value=!0;let z="token="+c.mytoken+"&money="+h.value+"&mobile="+encodeURIComponent(c.msisdn),g=yield i.post("/momoprepay?tm="+new Date().getTime(),z);g.data.rc<0?(s.error(g.data.rc+":"+g.data.rm),setTimeout(()=>{D.value=!1},5e3)):setTimeout(mt,5e3)})}function mt(){return sn(this,null,function*(){let z="token="+c.mytoken+"&thisbalance="+c.mybalnum,g=yield i.post("/momocheckbalance?tm="+new Date().getTime(),z);g.data.rc==1?(c.mybalnum=g.data.balnum,c.mybalance=g.data.balance):setTimeout(mt,1e3)})}function Yt(z){return sn(this,null,function*(){if(w.value=0,c.mytoken){let g="token="+c.mytoken+"&ref="+z.reference,_=yield i.post("/paystackcb?tm="+new Date().getTime(),g);_.status==200&&_.data.rc==1&&(c.mybalnum=_.data.balnum,c.mybalance=_.data.balance),b.value=2,t||Wt(),localStorage.setItem("preprepay",h.value.toString()),localStorage.setItem("pfname",f.value)}})}function Zt(){w.value=0}function Wt(){return sn(this,null,function*(){if(c.mytoken){let z="token="+c.mytoken+"&loads="+b.value;l.mac?z=z+"&mac="+l.mac:z=z+"&id="+l.chargerid,E.value=!0;let g=yield i.post("/getonebk?tm="+new Date().getTime(),z);E.value=!1,g&&g.status>=200&&(b.value++,n==!0?l.sw[y.value]!=g.data.sw[y.value]&&(n=!1):(Object.keys(g.data).forEach(_=>{try{_=="sw"||_=="se"||_=="pi"||_=="imax"||_=="ua"||_=="prizz"||_=="tep"||_=="mac"||_=="beep"||_=="cbk"||_=="pow"||_=="stp"||_=="act"?l[_]=g.data[_]:_=="myid"&&(r=Number(g.data[_]))}catch(C){console.log(_,g.data[_])}}),y.value>-1&&Xt(y.value)),b.value<100?(t=!0,setTimeout(Wt,1e3)):t=!1)}else{if(c.avatar&&c.nickname&&c.presence){b.value==0&&y.value==-1&&(b.value=1,s.success("SELECT Free Socket (GREEN) First."));let z="phone="+encodeURIComponent(c.msisdn)+"&nick="+encodeURIComponent(c.nickname)+"&jid="+encodeURIComponent(c.selfjid)+"&online="+c.presence,g=yield i.post("/ayobalogin?tm="+new Date().getTime(),z);g&&g.status==200?g.data.rc==1?(c.mytoken=g.data.token,c.mybalnum=g.data.balnum,c.mybalance=g.data.balance,c.isagent=g.data.isagent):(c.mytoken="",s.error(g.data.rm)):s.error("amazonaws LoginERROR")}setTimeout(Wt,1e3)}})}function Xt(z){if(N.value=!0,l.sw[z]==0)u.value=a("DoCharge")+"(#"+(z+1)+"SOCKET)",N.value=!1;else if(l.sw[z]==1||l.sw[z]==2){let g=new Date().getTime(),_=l.se[z]-g;if(_<0)r==z?(u.value=a("StopNOW"),N.value=!1):u.value=l.ua[z]+" "+a("Charging");else{let C=_/1e3,P=Math.round(C/60),x=Math.round(C%60),U=P+"m"+(x>0?x+"s":"");r==z?(P>600?u.value=a("IamCharging"):u.value=U+","+a("StopNOW"),N.value=!1):P>600?u.value=l.ua[z]:u.value=l.ua[z]+"@"+U}}else l.sw[z]==3?(z=-1,u.value="PortDisabled"):l.sw[z]==4?(z=-1,u.value=a("StopKeyDown")):l.sw[z]==5?r==z?(u.value=a("Clearme"),N.value=!1):(z=-1,u.value=a("DeviceOffline")):(z=-1,u.value=a("InvalidChargerID"));y.value=z}function be(){w.value=1}function ae(){w.value=0,M.value=!1}function Mt(z){let g=parseInt(z.currentTarget.id,10);Xt(g),b.value=3,t||Wt(),y.value==-1&&s.success("SELECT Free Socket First.")}function Qt(){S.value=!0}function ce(){S.value=!1}function Lt(z){T.value=parseInt(z.currentTarget.id,10),localStorage.horid=T.value,S.value=!1}function Ee(){return sn(this,null,function*(){if(M.value=!0,Number(p.value)+""!=p.value)A.value=a("vcardactiveer1"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&p.value.length!=4)A.value=a("vcardactiveer2"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==0&&p.value.length!=8)A.value=a("vcardactiveer3"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&m.value.length<4)A.value=a("vcardactiveer4"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&(m.value.indexOf("@")<2||m.value.indexOf(".")<4))A.value=a("vcardactiveer5"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else{let z="token="+c.mytoken+"&cardid="+p.value,g;c.isagent==1?(z=z+"&to="+encodeURIComponent(m.value),g=yield i.post("/vcardactive1?tm="+new Date().getTime(),z)):g=yield i.post("/vcardactive2?tm="+new Date().getTime(),z),g&&g.status==200?g.data.rc>0?w.value=0:A.value=g.data.rm:A.value="unknown error"}})}function se(){return sn(this,null,function*(){N.value=!0,n=!0;let z="token="+c.mytoken+"&mac="+l.mac+"&portid="+y.value+"&hourid="+T.value;l.sw[y.value]==0?(u.value=a("Starting"),yield i.post("/dochargebk?tm="+new Date().getTime(),z),setTimeout(()=>{N.value=!1,n=!1},1e4)):r==y.value&&(u.value=a("Stoping")+"...",z=z+"&cmd=1",yield i.post("/userdocmd?tm="+new Date().getTime(),z),setTimeout(()=>{N.value=!1,n=!1},1e4)),b.value=4,t||Wt()})}function X(z){var g,_;if(z){tt.value=z==null?void 0:z.text;let C=Number(tt.value);((g=tt.value)==null?void 0:g.length)==5&&""+C==tt.value&&(l.chargerid=C,l.mac="",b.value=5,w.value=0,(_=et.value)==null||_.onReset(),t||Wt())}}return(z,g)=>{const _=gs("vue3-notify");return vt(),St("div",o4,[Ae(dn(B6),{ref_key:"refCamera",ref:et,capture:"shoot","show-on-stream":"",onResult:X},null,512),w.value==0?(vt(),St("div",i4,[F("ul",s4,[F("li",a4,[F("img",{src:c.avatar?c.avatar:dn(Ao)("logo.png"),class:"avathead"},null,8,c4),di(" "+ct(c.nickname?c.nickname:"(Ayoba User)"),1)]),F("li",l4,[di(ct(c.mybalance)+" ",1),F("button",{type:"button",class:"btn btn-sm btn-outline-success",onClick:be},ct(z.$t("topup")),1)])]),F("ul",u4,[F("li",f4,[l.chargerid?(vt(),St("span",h4,[di(ct(z.$t("chargerID"))+" ",1),F("span",null,ct(l.chargerid),1)])):(vt(),St("span",d4,""))]),F("li",{class:"nav-item text-end btn btn-sm my-auto",onClick:Ht},[F("img",{src:dn(Ao)("scan54.png"),class:"avathead"},null,8,p4)])]),F("div",g4,[F("div",m4,[F("div",_4,[F("div",{class:ut(["pbox",y.value==0?"p1":"p0"]),id:"0",onClick:g[0]||(g[0]=C=>Mt(C))},[F("div",A4,[F("div",{class:ut(["xn-amb w-amb",y.value==0?"d1 bg"+l.sw[0]:"d0 bg"+l.sw[0]])},[F("div",{class:ut(["fixed","fg"+l.sw[0]])},ct(l.chargerid?"1":"-"),3)],2),F("div",y4,ct(z.$t(H[l.sw[0]])),1)])],2),F("div",{class:ut(["pbox",y.value==4?"p1":"p0"]),id:"4",onClick:g[1]||(g[1]=C=>Mt(C))},[F("div",v4,[F("div",{class:ut(["xn-amb w-amb",y.value==4?"d1 bg"+l.sw[4]:"d0 bg"+l.sw[4]])},[F("div",{class:ut(["fixed","fg"+l.sw[4]])},ct(l.chargerid?"5":"-"),3)],2),F("div",w4,ct(z.$t(H[l.sw[4]])),1)])],2),F("div",{class:ut(["pbox",y.value==8?"p1":"p0"]),id:"8",onClick:g[2]||(g[2]=C=>Mt(C))},[F("div",b4,[F("div",{class:ut(["xn-amb w-amb",y.value==8?"d1 bg"+l.sw[8]:"d0 bg"+l.sw[8]])},[F("div",{class:ut(["fixed","fg"+l.sw[8]])},ct(l.chargerid?"9":"-"),3)],2),F("div",E4,ct(z.$t(H[l.sw[8]])),1)])],2)]),F("div",C4,[F("div",{class:ut(["pbox",y.value==1?"p1":"p0"]),id:"1",onClick:g[3]||(g[3]=C=>Mt(C))},[F("div",T4,[F("div",{class:ut(["xn-amb w-amb",y.value==1?"d1 bg"+l.sw[1]:"d0 bg"+l.sw[1]])},[F("div",{class:ut(["fixed","fg"+l.sw[1]])},ct(l.chargerid?"2":"-"),3)],2),F("div",I4,ct(z.$t(H[l.sw[1]])),1)])],2),F("div",{class:ut(["pbox",y.value==5?"p1":"p0"]),id:"5",onClick:g[4]||(g[4]=C=>Mt(C))},[F("div",S4,[F("div",{class:ut(["xn-amb w-amb",y.value==5?"d1 bg"+l.sw[5]:"d0 bg"+l.sw[5]])},[F("div",{class:ut(["fixed","fg"+l.sw[5]])},ct(l.chargerid?"6":"-"),3)],2),F("div",O4,ct(z.$t(H[l.sw[5]])),1)])],2),F("div",{class:ut(["pbox",y.value==9?"p1":"p0"]),id:"9",onClick:g[5]||(g[5]=C=>Mt(C))},[F("div",N4,[F("div",{class:ut(["xn-amb w-amb",y.value==9?"d1 bg"+l.sw[9]:"d0 bg"+l.sw[9]])},[F("div",{class:ut(["fixed","fg"+l.sw[9]])},ct(l.chargerid?"10":"-"),3)],2),F("div",R4,ct(z.$t(H[l.sw[9]])),1)])],2)]),F("div",D4,[F("div",{class:ut(["pbox",y.value==2?"p1":"p0"]),id:"2",onClick:g[6]||(g[6]=C=>Mt(C))},[F("div",P4,[F("div",{class:ut(["xn-amb w-amb",y.value==2?"d1 bg"+l.sw[2]:"d0 bg"+l.sw[2]])},[F("div",{class:ut(["fixed","fg"+l.sw[2]])},ct(l.chargerid?"3":"-"),3)],2),F("div",M4,ct(z.$t(H[l.sw[2]])),1)])],2),F("div",{class:ut(["pbox",y.value==6?"p1":"p0"]),id:"6",onClick:g[7]||(g[7]=C=>Mt(C))},[F("div",L4,[F("div",{class:ut(["xn-amb w-amb",y.value==6?"d1 bg"+l.sw[6]:"d0 bg"+l.sw[6]])},[F("div",{class:ut(["fixed","fg"+l.sw[6]])},ct(l.chargerid?"7":"-"),3)],2),F("div",k4,ct(z.$t(H[l.sw[6]])),1)])],2),F("div",{class:ut(["pbox",y.value==10?"p1":"p0"]),id:"10",onClick:g[8]||(g[8]=C=>Mt(C))},[F("div",B4,[F("div",{class:ut(["xn-amb w-amb",y.value==10?"d1 bg"+l.sw[10]:"d0 bg"+l.sw[10]])},[F("div",{class:ut(["fixed","fg"+l.sw[10]])},ct(l.chargerid?"11":"-"),3)],2),F("div",x4,ct(z.$t(H[l.sw[10]])),1)])],2)]),F("div",F4,[F("div",{class:ut(["pbox",y.value==3?"p1":"p0"]),id:"3",onClick:g[9]||(g[9]=C=>Mt(C))},[F("div",V4,[F("div",{class:ut(["xn-amb w-amb",y.value==3?"d1 bg"+l.sw[3]:"d0 bg"+l.sw[3]])},[F("div",{class:ut(["fixed","fg"+l.sw[3]])},ct(l.chargerid?"4":"-"),3)],2),F("div",U4,ct(z.$t(H[l.sw[3]])),1)])],2),F("div",{class:ut(["pbox",y.value==7?"p1":"p0"]),id:"7",onClick:g[10]||(g[10]=C=>Mt(C))},[F("div",H4,[F("div",{class:ut(["xn-amb w-amb",y.value==7?"d1 bg"+l.sw[7]:"d0 bg"+l.sw[7]])},[F("div",{class:ut(["fixed","fg"+l.sw[7]])},ct(l.chargerid?"8":"-"),3)],2),F("div",W4,ct(z.$t(H[l.sw[7]])),1)])],2),F("div",{class:ut(["pbox",y.value==11?"p1":"p0"]),id:"11",onClick:g[11]||(g[11]=C=>Mt(C))},[F("div",j4,[F("div",{class:ut(["xn-amb w-amb",y.value==11?"d1 bg"+l.sw[11]:"d0 bg"+l.sw[11]])},[F("div",{class:ut(["fixed","fg"+l.sw[11]])},ct(l.chargerid?"12":"-"),3)],2),F("div",G4,ct(z.$t(H[l.sw[11]])),1)])],2)])])]),F("button",{class:"btn btn-outline-info w-100 mt-3",onClick:Qt},ct(z.$t("ChargeTIME"))+": "+ct(j[T.value])+ct(z.$t("hors")),1),c.mytoken&&c.mybalnum<10?(vt(),St("button",{key:0,class:"btn btn-warning w-100 mt-3",onClick:be},ct(z.$t("btn_prepay")),1)):Se("",!0),c.mytoken&&c.mybalnum>=10?(vt(),St("button",{key:1,class:"btn btn-success w-100 mt-3",onClick:se,disabled:N.value},ct(u.value),9,X4)):Se("",!0),S.value?(vt(),St("div",z4,[F("div",null,[F("div",Y4,ct(z.$t("bkchargehours"))+" :",1),F("div",q4,[F("div",{class:ut(["pbo2",T.value==0?"f0":"f1"]),id:"0",onClick:Lt}," 10"+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==1?"f0":"f1"]),id:"1",onClick:Lt}," 1 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==2?"f0":"f1"]),id:"2",onClick:Lt}," 2 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==3?"f0":"f1"]),id:"3",onClick:Lt}," 3 "+ct(z.$t("hors")),3)]),F("div",K4,[F("div",{class:ut(["pbo2",T.value==4?"f0":"f1"]),id:"4",onClick:Lt}," 4 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==5?"f0":"f1"]),id:"5",onClick:Lt}," 6 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==6?"f0":"f1"]),id:"6",onClick:Lt}," 8 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==7?"f0":"f1"]),id:"7",onClick:Lt}," 15"+ct(z.$t("hors")),3)])])])):Se("",!0)])):Se("",!0),w.value==1?(vt(),St("div",Z4,[F("ul",Q4,[F("li",$4,[F("img",{src:c.avatar?c.avatar:dn(Ao)("logo.png"),class:"avathead"},null,8,J4),di(" "+ct(c.nickname?c.nickname:"(Ayoba User)"),1)]),F("li",tT,[F("button",{class:"btn btn-sm btn-outline-warning",onClick:gt},ct(z.$t("logout")),1)])]),F("ul",eT,[F("li",nT,[F("button",rT,ct(z.$t("tabpaystack")),1)]),F("li",oT,[F("button",iT,ct(z.$t("tabmomo")),1)]),F("li",sT,[F("button",aT,ct(z.$t("tabvcard")),1)])]),F("div",cT,[F("div",lT,[F("div",{class:"text-end"},[F("button",{type:"button",class:"btn btn-close",style:{"margin-top":"-12px","margin-right":"-12px"},"aria-label":"Close",onClick:ae})]),F("div",uT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[12]||(g[12]=C=>f.value=C),id:"paystackfullname",required:"",maxlength:"32",placeholder:""},null,512),[[_o,f.value]]),F("label",fT,ct(z.$t("payfullname")),1)]),F("div",hT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[13]||(g[13]=C=>h.value=C),id:"paystackmoney",required:"",maxlength:"32",placeholder:""},null,512),[[_o,h.value]]),F("label",dT,ct(z.$t("paymoneys")),1)]),Ae(dn(IE),{buttonClass:"btn btn-warning w-100",buttonText:z.$t("btn_prepay"),publicKey:dn(hw),amount:h.value*100,email:dn(dw),reference:st(),channels:Et(),onSuccess:Yt,onCanel:Zt,currency:"GHS"},null,8,["buttonText","publicKey","amount","email","reference","channels"]),F("div",pT,[F("img",{src:dn(Ao)("paystack-gh.png"),class:"w-100"},null,8,gT)])]),F("div",mT,[F("div",{class:"text-end"},[F("button",{type:"button",class:"btn btn-close",style:{"margin-top":"-12px","margin-right":"-12px"},"aria-label":"Close",onClick:ae})]),F("div",_T,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[14]||(g[14]=C=>c.msisdn=C),id:"momoisdn",required:"",maxlength:"32",placeholder:""},null,512),[[_o,c.msisdn]]),F("label",AT,ct(z.$t("mobilenumber")),1)]),F("div",yT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[15]||(g[15]=C=>h.value=C),id:"momomount",required:"",maxlength:"32",placeholder:""},null,512),[[_o,h.value]]),F("label",vT,ct(z.$t("paymoneys")),1)]),F("button",{class:"btn btn-success mb-3 w-100",onClick:ht,disabled:D.value},ct(z.$t("lbmomopay")),9,wT),F("div",bT,[F("img",{src:dn(Ao)("paystack-gh.png"),class:"w-100"},null,8,ET)])]),F("div",CT,[F("div",{class:"text-end"},[F("button",{type:"button",class:"btn btn-close",style:{"margin-top":"-12px","margin-right":"-12px"},"aria-label":"Close",onClick:ae})]),c.isagent==1?(vt(),St("div",TT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[16]||(g[16]=C=>m.value=C),id:"vcarduid",required:"",maxlength:"32",placeholder:""},null,512),[[_o,m.value]]),F("label",IT,ct(z.$t("activetarget")),1)])):Se("",!0),F("div",ST,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[17]||(g[17]=C=>p.value=C),id:"vcardcode",required:"",maxlength:"32",placeholder:""},null,512),[[_o,p.value]]),F("label",OT,ct(z.$t("activecode")),1)]),F("button",{class:"btn btn-info mb-3 w-100",onClick:Ee,disabled:M.value},ct(A.value),9,NT),F("div",RT,[F("img",{src:dn(Ao)("paystack-gh.png"),class:"w-100"},null,8,DT)])])])])):Se("",!0),Ae(_),b.value==0?(vt(),St("div",{key:2,class:"mask opacity",onTouchmove:g[18]||(g[18]=wd(()=>{},["prevent"]))}," ",32)):Se("",!0),S.value?(vt(),St("div",{key:3,class:"mask opacity",onClick:ce}," ")):Se("",!0),w.value==2?(vt(),St("div",PT," ")):Se("",!0)])}}}),LT=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},kT=LT(MT,[["__scopeId","data-v-a4664367"]]);function Vs(e){return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function Is(e,t){if(!e.vueAxiosInstalled){var n=f0(t)?FT(t):t;if(VT(n)){var r=UT(e);if(r){var o=r<3?BT:xT;Object.keys(n).forEach(function(i){o(e,i,n[i])}),e.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function BT(e,t,n){Object.defineProperty(e.prototype,t,{get:function(){return n}}),e[t]=n}function xT(e,t,n){e.config.globalProperties[t]=n,e[t]=n}function f0(e){return e&&typeof e.get=="function"&&typeof e.post=="function"}function FT(e){return{axios:e,$http:e}}function VT(e){return Vs(e)==="object"&&Object.keys(e).every(function(t){return f0(e[t])})}function UT(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports=="undefined"?"undefined":Vs(exports))=="object"?module.exports=Is:typeof define=="function"&&define.amd?define([],function(){return Is}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(Is,window.axios);var Po,qn,HT=Object.defineProperty,WT=Object.defineProperties,jT=Object.getOwnPropertyDescriptors,hh=Object.getOwnPropertySymbols,GT=Object.prototype.hasOwnProperty,XT=Object.prototype.propertyIsEnumerable,rl=(e,t,n)=>t in e?HT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yr=(e,t,n)=>(rl(e,typeof t!="symbol"?t+"":t,n),n);(qn=Po||(Po={})).leftTop="leftTop",qn.leftCenter="leftCenter",qn.leftBottom="leftBottom",qn.rightTop="rightTop",qn.rightCenter="rightCenter",qn.rightBottom="rightBottom",qn.centerTop="centerTop",qn.centerCenter="centerCenter",qn.centerBottom="centerBottom";const oc="simple",dh="success",ph="error",gh="warning",mh="info",ol="async",_h="confirm",Us="prompt";var Hs=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const zT=jn({props:["toast"],data:()=>({isPromptFocused:!1}),methods:{valueChanged(e){this.toast.value=e.target.value,this.toast.eventEmitter.emit("input")}}}),YT=["id"],qT=["for"],KT={class:"snotifyToast__input__labelContent"};var ZT=Hs(zT,[["render",function(e,t,n,r,o,i){return vt(),St("span",{class:ut(["snotifyToast__input",{"snotifyToast__input--filled":e.isPromptFocused}])},[F("input",{onInput:t[0]||(t[0]=(...s)=>e.valueChanged&&e.valueChanged(...s)),class:"snotifyToast__input__field",type:"text",id:e.toast.id,onFocus:t[1]||(t[1]=s=>e.isPromptFocused=!0),onBlur:t[2]||(t[2]=s=>e.isPromptFocused=!!e.toast.value.length)},null,40,YT),F("label",{class:"snotifyToast__input__label",for:e.toast.id},[F("span",KT,ct(e.toast.config.placeholder),1)],8,qT)],2)}]]);const QT=jn({props:["toast"],methods:{remove(){this.$snotify.remove(this.toast.id)}}}),$T={class:"snotifyToast__buttons"},JT=["onClick"],tI=jn({components:{SnotifyPrompt:ZT,SnotifyButton:Hs(QT,[["render",function(e,t,n,r,o,i){return vt(),St("div",$T,[(vt(!0),St(Me,null,fc(e.toast.config.buttons,(s,a)=>(vt(),St("button",{type:"button",key:a,class:ut([{"snotifyToast__buttons--bold":s.bold},s.className]),onClick:wd(c=>s.action?s.action(e.toast):e.remove(),["prevent","stop"])},ct(s.text),11,JT))),128))])}]])},props:["toastData"],emits:["stateChanged"],data(){return{toast:this.toastData,animationFrame:0,state:{paused:!1,progress:0,animation:"",isDestroying:!1,promptType:Us}}},computed:{toastTitle(){const e=this.toast.title;return e.length>this.toast.config.titleMaxLength?e.slice(0,this.toast.config.titleMaxLength):e},toastBody(){const e=this.toast.body;return e.length>this.toast.config.bodyMaxLength?e.slice(0,this.toast.config.bodyMaxLength):e}},methods:{initToast(){this.toast.config.timeout>0&&this.startTimeout(0)},onClick(){this.toast.eventEmitter.emit("click"),this.toast.config.closeOnClick&&this.$snotify.remove(this.toast.id)},onMouseEnter(){this.toast.eventEmitter.emit("mouseenter"),this.toast.config.pauseOnHover&&(this.state.paused=!0)},onMouseLeave(){this.toast.config.pauseOnHover&&this.toast.config.timeout&&(this.state.paused=!1,this.startTimeout(this.toast.config.timeout*this.state.progress)),this.toast.eventEmitter.emit("mouseleave")},onExitTransitionEnd(){this.state.isDestroying||(this.initToast(),this.toast.eventEmitter.emit("shown"))},startTimeout(e=0){const t=performance.now(),n=()=>{this.animationFrame=requestAnimationFrame(r=>{const o=r+e-t,i=Math.min(o/this.toast.config.timeout,1);this.state.paused?cancelAnimationFrame(this.animationFrame):o{this.$emit("stateChanged","hidden"),this.state.animation="snotifyToast--out",this.toast.eventEmitter.emit("hidden"),setTimeout(()=>this.$snotify.remove(this.toast.id,!0),this.toast.config.animation.time/2)},this.toast.config.animation.time/2)}},created(){this.$snotify.emitter.on("remove",e=>{this.toast.id===e&&this.onRemove()})},mounted(){this.$nextTick(()=>{this.toast.eventEmitter.emit("mounted"),this.state.animation="snotifyToast--in",this.$nextTick(()=>{setTimeout(()=>{this.$emit("stateChanged","beforeShow"),this.toast.eventEmitter.emit("beforeShow"),this.state.animation=this.toast.config.animation.enter},this.toast.config.animation.time/5)})})},unmounted(){cancelAnimationFrame(this.animationFrame),this.toast.eventEmitter.emit("destroyed")}}),eI={key:0,class:"snotifyToast__progressBar"},nI={key:0,class:"snotifyToast__title"},rI={key:1,class:"snotifyToast__body"},oI={key:4},iI=["src"],sI=["innerHTML"];var aI=Hs(jn({components:{Toast:Hs(tI,[["render",function(e,t,n,r,o,i){const s=gs("snotify-prompt"),a=gs("snotify-button");return vt(),St("div",{class:ut(["snotifyToast animated",["snotify-"+e.toast.config.type,e.state.animation,e.toast.valid===void 0?"":e.toast.valid?"snotifyToast--valid":"snotifyToast--invalid"]]),style:Oo({"-webkit-animation-duration":e.toast.config.animation.time+"ms","animation-duration":e.toast.config.animation.time+"ms","-webkit-transition":e.toast.config.animation.time+"ms",transition:e.toast.config.animation.time+"ms"}),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMouseenter:t[1]||(t[1]=(...c)=>e.onMouseEnter&&e.onMouseEnter(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.onMouseLeave&&e.onMouseLeave(...c)),onAnimationend:t[3]||(t[3]=(...c)=>e.onExitTransitionEnd&&e.onExitTransitionEnd(...c))},[e.toast.config.showProgressBar&&e.toast.config.timeout>0?(vt(),St("div",eI,[F("span",{class:"snotifyToast__progressBar__percentage",style:Oo({width:100*e.state.progress+"%"})},null,4)])):Se("",!0),e.toast.config.html?(vt(),St("div",{key:2,class:"snotifyToast__inner",innerHTML:e.toast.config.html},null,8,sI)):(vt(),St("div",{key:1,class:ut(["snotifyToast__inner",{snotifyToast__noIcon:e.toast.config.icon===!1}])},[e.toast.title?(vt(),St("div",nI,ct(e.toastTitle),1)):Se("",!0),e.toast.body?(vt(),St("div",rI,ct(e.toastBody),1)):Se("",!0),e.toast.config.type===e.state.promptType?(vt(),Ei(s,{key:2,toast:e.toast},null,8,["toast"])):Se("",!0),e.toast.config.icon===void 0?(vt(),St("div",{key:3,class:ut(["snotify-icon","snotify-icon--"+e.toast.config.type])},null,2)):e.toast.config.icon!==!1?(vt(),St("div",oI,[F("img",{class:"snotify-icon",src:e.toast.config.icon},null,8,iI)])):Se("",!0)],2)),e.toast.config.buttons?(vt(),Ei(a,{key:3,toast:e.toast},null,8,["toast"])):Se("",!0)],38)}]])},data:()=>({notifications:{left_top:[],left_center:[],left_bottom:[],right_top:[],right_center:[],right_bottom:[],center_top:[],center_center:[],center_bottom:[]},dockSize_a:0,dockSize_b:0,blockSize_a:0,blockSize_b:0,backdrop:-1,withBackdrop:[]}),methods:{getNotificationsForPos(e){return this.notifications[e].slice(this.blockSize_a,this.blockSize_b)},setOptions(e){var t,n;if(this.$snotify.config.global){const r=(t=this.$snotify.config.global)==null?void 0:t.maxOnScreen,o=(n=this.$snotify.config.global)==null?void 0:n.maxAtPosition;this.$snotify.config.global.newOnTop?(r&&(this.dockSize_a=-r),this.dockSize_b=void 0,o&&(this.blockSize_a=-o),this.blockSize_b=void 0,this.withBackdrop=e.filter(i=>i.config.backdrop>=0)):(this.dockSize_a=0,r&&(this.dockSize_b=r),this.blockSize_a=0,o&&(this.blockSize_b=o),this.withBackdrop=e.filter(i=>i.config.backdrop>=0).reverse())}this.notifications=this.splitToasts(e.slice(this.dockSize_a,this.dockSize_b)),this.stateChanged("mounted")},stateChanged(e){if(this.withBackdrop.length)switch(e){case"mounted":this.backdrop<0&&(this.backdrop=0);break;case"beforeShow":const t=this.withBackdrop[this.withBackdrop.length-1].config.backdrop;t&&(this.backdrop=t);break;case"beforeHide":this.withBackdrop.length===1&&(this.backdrop=0);break;case"hidden":this.withBackdrop.length===1&&(this.backdrop=-1)}else this.backdrop>=0&&(this.backdrop=-1)},splitToasts(e){const t={};for(const n in Po)Po.hasOwnProperty(n)&&(t[Po[n]]=[]);return e.forEach(n=>{t[n.config.position].push(n)}),t}},created(){this.$snotify.emitter.on("snotify",e=>{this.setOptions(e)})}}),[["render",function(e,t,n,r,o,i){const s=gs("toast");return vt(),St("div",null,[e.backdrop>=0?(vt(),St("div",{key:0,class:"snotify-backdrop",style:Oo({opacity:e.backdrop})},null,4)):Se("",!0),(vt(!0),St(Me,null,fc(e.notifications,(a,c)=>(vt(),St("div",{class:ut(["snotify","snotify-"+c]),key:c},[(vt(!0),St(Me,null,fc(e.getNotificationsForPos(c),l=>(vt(),Ei(s,{toastData:l,key:l.id,onStateChanged:e.stateChanged},null,8,["toastData","onStateChanged"]))),128))],2))),128))])}]]);function h0(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}class cI{constructor(t,n,r,o){Yr(this,"eventEmitter",h0()),Yr(this,"_eventsHolder",[]),Yr(this,"value",""),Yr(this,"valid"),this.id=t,this.title=n,this.body=r,this.config=o,this.config.type===Us&&(this.value=""),this.on("hidden",()=>{this._eventsHolder.forEach(i=>{this.eventEmitter.off(i.event,i.action)})})}on(t,n){return this._eventsHolder.push({event:t,action:n}),this.eventEmitter.on(t,()=>n(this)),this}}const lI={global:{newOnTop:!0,maxOnScreen:8,maxAtPosition:8,oneAtTime:!1,preventDuplicates:!1},toast:{timeout:2e3,showProgressBar:!0,type:oc,closeOnClick:!0,pauseOnHover:!0,titleMaxLength:16,bodyMaxLength:150,backdrop:-1,icon:void 0,animation:{enter:"fadeIn",exit:"fadeOut",time:400},html:void 0,position:Po.rightBottom},type:{[Us]:{timeout:0,closeOnClick:!1,buttons:[{text:"Ok",bold:!0},{text:"Cancel",bold:!1}],placeholder:"Enter answer here...",type:Us},[_h]:{timeout:0,closeOnClick:!1,buttons:[{text:"Ok",bold:!0},{text:"Cancel",bold:!1}],type:_h},[oc]:{type:oc},[dh]:{type:dh},[ph]:{type:ph},[gh]:{type:gh},[mh]:{type:mh},[ol]:{pauseOnHover:!1,closeOnClick:!1,timeout:0,showProgressBar:!1,type:ol}}};function Ah(e){return e&&typeof e=="object"&&!Array.isArray(e)&&e!==null}function il(...e){const t={};if(!e.length)return t;for(;e.length>0;){const n=e.shift();if(Ah(n))for(const r in n)Ah(n[r])?t[r]=il(t[r],n[r]):Object.assign(t,{[r]:n[r]})}return t}function Fr(e,t,n){return{value:function(...r){var o;return r[0].config=(o=((i,s)=>{for(var a in s||(s={}))GT.call(s,a)&&rl(i,a,s[a]);if(hh)for(var a of hh(s))XT.call(s,a)&&rl(i,a,s[a]);return i})({},r[0].config),WT(o,jT({type:t}))),n.value.apply(this,r)}}}function Vr(e,t,n){return t===ol?{value:function(...r){let o;return o=r.length===2?{title:null,body:r[0],config:null,action:r[1]}:r.length===3?typeof r[1]=="string"?{title:r[1],body:r[0],config:null,action:r[2]}:{title:null,body:r[0],config:r[2],action:r[1]}:{title:r[1],body:r[0],config:r[3],action:r[2]},n.value.apply(this,[o])}}:{value:function(...r){let o;return o=r.length===1?{title:null,body:r[0],config:null}:r.length===3?{title:r[1],body:r[0],config:r[2]}:{title:null,config:null,body:r[0],[typeof r[1]=="string"?"title":"config"]:r[1]},n.value.apply(this,[o])}}}var uI=Object.defineProperty,fI=Object.getOwnPropertyDescriptor,Ur=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?fI(t,n):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&uI(t,n,i),i};class ur{constructor(){Yr(this,"emitter",h0()),Yr(this,"notifications",[]),Yr(this,"config",lI)}emit(){this.emitter.emit("snotify",this.notifications.slice())}get(t){return this.notifications.find(n=>n.id===t)}add(t){var n;(n=this.config.global)!=null&&n.newOnTop?this.notifications.unshift(t):this.notifications.push(t),this.emit()}remove(t,n){return t?n?(this.notifications=this.notifications.filter(r=>r.id!==t),this.emit()):void this.emitter.emit("remove",t):this.clear()}clear(){this.notifications=[],this.emit()}button(t,n=!0,r,o=!1){return{text:t,action:n?i=>{r&&r(i),this.remove(i.id)}:r,bold:o}}create(t){var n,r,o,i,s;if((r=(n=this.config)==null?void 0:n.global)!=null&&r.oneAtTime&&this.notifications.length!==0||(i=(o=this.config)==null?void 0:o.global)!=null&&i.preventDuplicates&&this.notifications.filter(l=>{var u;return l.config.type===((u=t==null?void 0:t.config)==null?void 0:u.type)}).length===1)return;const a=il(this.config.toast,this.config.type?[(s=t.config)==null?void 0:s.type]:null,t.config),c=new cI(a.id?a.id:Math.floor(Math.random()*(Date.now()-1))+1,t.title?t.title:"",t.body?t.body:"",a);return this.add(c),c}setDefaults(t){return this.config=il(this.config,t)}simple(t){return this.create(t)}success(t){return this.create(t)}error(t){return this.create(t)}info(t){return this.create(t)}warning(t){return this.create(t)}confirm(t){return this.create(t)}prompt(t){return this.create(t)}}Ur([Vr,Fr],ur.prototype,"simple",1),Ur([Vr,Fr],ur.prototype,"success",1),Ur([Vr,Fr],ur.prototype,"error",1),Ur([Vr,Fr],ur.prototype,"info",1),Ur([Vr,Fr],ur.prototype,"warning",1),Ur([Vr,Fr],ur.prototype,"confirm",1),Ur([Vr,Fr],ur.prototype,"prompt",1);var hI={install:(e,t={})=>{const n=new ur;n.setDefaults(t),e.config.globalProperties.$snotify=n,e.component("vue3-notify",aI),e.provide("vue3-notify",n)}};const dI="Fr",pI="Change Language To: ",gI="Free",mI="SwitchON",_I="Charging",AI="Disabled",yI="StopDown",vI="Offline",wI="noID",bI="Ready",EI=" Top Up ",CI=" Log Out ",TI="ChargeTIME",II="hors",SI="plz select charge hour(s).",OI="Paystack Top Up",NI="chargerID:",RI="paystack",DI="vCard",PI="momo",MI="MoMo Top Up",LI="byPayPal",kI="paymount",BI="vCard Active NOW",xI="Input Number plz",FI="4 digits number needed",VI="8 digits number needed",UI="Input user account plz",HI="invalid email address",WI="active user account",jI="Active Code Number: ",GI="PayStack Account Full name: ",XI="MobilNumber",zI="Paystack ID: ",YI="Topup moneys: ",qI="ChargeNOW",KI="DoCharge",ZI="StopNOW",QI="IamCharging",$I="Socket Disabled",JI="StopKey Down",tS="Clearme",eS="Device Offline",nS="Invalid ChargerID",rS="Starting",oS="Stoping",iS={languageto:dI,Change_Language_To:pI,Free:gI,SwitchON:mI,Charging:_I,Disabled:AI,StopDN:yI,Offline:vI,noID:wI,Ready:bI,topup:EI,logout:CI,ChargeTIME:TI,hors:II,bkchargehours:SI,btn_prepay:OI,chargerID:NI,tabpaystack:RI,tabvcard:DI,tabmomo:PI,lbmomopay:MI,tabpaypal:LI,paypalmount:kI,vcardactivenow:BI,vcardactiveer1:xI,vcardactiveer2:FI,vcardactiveer3:VI,vcardactiveer4:UI,vcardactiveer5:HI,activetarget:WI,activecode:jI,payfullname:GI,mobilenumber:XI,paystackaccount:zI,paymoneys:YI,ChargeNOW:qI,DoCharge:KI,StopNOW:ZI,IamCharging:QI,PortDisabled:$I,StopKeyDown:JI,Clearme:tS,DeviceOffline:eS,InvalidChargerID:nS,Starting:rS,Stoping:oS},sS="EN",aS="Change Language To: ",cS="空闲中",lS="已通电",uS="充电中",fS="已禁用",hS="急停中",dS="离线中",pS="未扫码",gS="已就绪",mS=" 充值 ",_S=" 退出 ",AS="充电时长",yS="小时",vS="账户充值(Paystack)",wS="请选择充电时长",bS="paystack",ES="虚拟卡",CS="momo",TS="PayPal",IS="MoMo充值",SS="充值金额",OS="立即激活充值卡",NS="请输入数字",RS="需要4位数字",DS="需要8位数字",PS="请填写用户账号",MS="用户账号不是邮箱",LS="用户账号",kS="激活码",BS="用户全名:",xS="paystack账号:",FS="充值金额:",VS="充值手机号",US="启动充电",HS="开始充电",WS="立即停止",jS="我在充电中",GS="端口已禁用",XS="正在启动",zS="正在停止",YS="急停已按下",qS="清理我的会话",KS="设备已离线",ZS="无效的电桩编号",QS={languageto:sS,Change_Language_To:aS,Free:cS,SwitchON:lS,Charging:uS,Disabled:fS,StopDN:hS,Offline:dS,noID:pS,Ready:gS,topup:mS,logout:_S,ChargeTIME:AS,hors:yS,btn_prepay:vS,bkchargehours:wS,"chargerID:":"充电桩编号:",tabpaystack:bS,tabvcard:ES,tabmomo:CS,tabpaypal:TS,lbmomopay:IS,paypalmount:SS,vcardactivenow:OS,vcardactiveer1:NS,vcardactiveer2:RS,vcardactiveer3:DS,vcardactiveer4:PS,vcardactiveer5:MS,activetarget:LS,activecode:kS,payfullname:BS,paystackaccount:xS,paymoneys:FS,mobilenumber:VS,ChargeNOW:US,DoCharge:HS,StopNOW:WS,IamCharging:jS,PortDisabled:GS,Starting:XS,Stoping:zS,StopKeyDown:YS,Clearme:qS,DeviceOffline:KS,InvalidChargerID:ZS},$S="中文",JS="切换语言至: ",t5="Free",e5="SwitchON",n5="Charging",r5="Disabled",o5="StopDown",i5="Offline",s5="noID",a5="Ready",c5=" Top Up ",l5=" Log Out ",u5="ChargeTIME",f5="hors",h5="plz select charge hour(s).",d5="Paystack Top Up",p5="chargerID:",g5="paystack",m5="vCard",_5="momo",A5="MoMo Top Up",y5="byPayPal",v5="paymount",w5="vCard Active NOW",b5="Input Number plz",E5="4 digits number needed",C5="8 digits number needed",T5="Input user account plz",I5="invalid email address",S5="active user account",O5="Active Code Number: ",N5="PayStack Account Full name: ",R5="MobilNumber",D5="Paystack ID: ",P5="Topup moneys: ",M5="ChargeNOW",L5="DoCharge",k5="StopNOW",B5="IamCharging",x5="Socket Disabled",F5="StopKey Down",V5="Clearme",U5="Device Offline",H5="Invalid ChargerID",W5="Starting",j5="Stoping",G5={languageto:$S,Change_Language_To:JS,Free:t5,SwitchON:e5,Charging:n5,Disabled:r5,StopDN:o5,Offline:i5,noID:s5,Ready:a5,topup:c5,logout:l5,ChargeTIME:u5,hors:f5,bkchargehours:h5,btn_prepay:d5,chargerID:p5,tabpaystack:g5,tabvcard:m5,tabmomo:_5,lbmomopay:A5,tabpaypal:y5,paypalmount:v5,vcardactivenow:w5,vcardactiveer1:b5,vcardactiveer2:E5,vcardactiveer3:C5,vcardactiveer4:T5,vcardactiveer5:I5,activetarget:S5,activecode:O5,payfullname:N5,mobilenumber:R5,paystackaccount:D5,paymoneys:P5,ChargeNOW:M5,DoCharge:L5,StopNOW:k5,IamCharging:B5,PortDisabled:x5,StopKeyDown:F5,Clearme:V5,DeviceOffline:U5,InvalidChargerID:H5,Starting:W5,Stoping:j5},X5=Qv({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en",messages:{en:re({},iS),cn:re({},QS),fr:re({},G5)}}),no=uy(kT);no.use(X5);no.use(hI);no.use(Is,Db);no.axios.defaults.baseURL=fw;no.provide("axios",no.config.globalProperties.axios);no.mount("#app"); + `);u0.append(r4);document.body.append(u0);AyobaObserver.onChangeLocation=e=>{Q6.next(e)};AyobaObserver.onChangePresence=e=>{a0.next(e)};AyobaObserver.onChangeNickname=e=>{c0.next(e)};AyobaObserver.onChangeAvatar=e=>{l0.next(e)};AyobaObserver.onResponseGetCarrier=e=>{$6.next(e)};AyobaObserver.onResponseGetSecuredMsisdn=e=>{J6.next(e)};const o4={class:"container-md"},i4={key:0},s4={class:"nav nav-pills nav-fill h3 mt-1"},a4={class:"nav-item text-start my-auto"},c4=["src"],l4={class:"nav-item text-end my-auto"},u4={class:"nav nav-pills nav-fill h3 mt-1 align-middle"},f4={class:"nav-item text-start my-auto"},h4={key:0},d4={key:1},p4=["src"],g4={class:"text-center mt-1"},m4={class:"d-inline-flex"},_4={class:"bdright"},A4={class:"xn-ama w-ama"},y4={class:"tinyst"},v4={class:"xn-ama w-ama"},w4={class:"tinyst"},b4={class:"xn-ama w-ama"},E4={class:"tinyst"},C4={class:"bdright"},T4={class:"xn-ama w-ama"},I4={class:"tinyst"},S4={class:"xn-ama w-ama"},O4={class:"tinyst"},N4={class:"xn-ama w-ama"},R4={class:"tinyst"},D4={class:"bdright"},P4={class:"xn-ama w-ama"},M4={class:"tinyst"},L4={class:"xn-ama w-ama"},k4={class:"tinyst"},B4={class:"xn-ama w-ama"},x4={class:"tinyst"},F4={class:"weui-flex__item"},V4={class:"xn-ama w-ama"},U4={class:"tinyst"},H4={class:"xn-ama w-ama"},W4={class:"tinyst"},j4={class:"xn-ama w-ama"},G4={class:"tinyst"},X4=["disabled"],z4={key:2,class:"mypicker pickw"},Y4={class:"mypanel fs1"},q4={class:"li2 fs2 mt-4"},K4={class:"li2 fs2 mt-4 mb-4"},Z4={key:1},Q4={class:"nav nav-pills nav-fill mt-1"},$4={class:"nav-item text-start"},J4=["src"],tT={class:"nav-item text-end"},eT={class:"nav nav-pills nav-fill mb-4 mt-4",id:"myTab",role:"tablist"},nT={class:"nav-item",role:"presentation"},rT={class:"active btn btn-warning w-75",id:"paystack-tab","data-bs-toggle":"tab","data-bs-target":"#paystack",rol:"tab","aria-controls":"paystack","aria-selected":"true",href:"#paystack"},oT={class:"nav-item",role:"presentation"},iT={class:"btn btn-success w-75",id:"momo-tab","data-bs-toggle":"tab","data-bs-target":"#momo",type:"button",rol:"tab","aria-controls":"momo","aria-selected":"false",href:"#momo"},sT={class:"nav-item",role:"presentation"},aT={class:"btn btn-info w-75",id:"vcard-tab","data-bs-toggle":"tab","data-bs-target":"#vcard",type:"button",rol:"tab","aria-controls":"vcard","aria-selected":"false",href:"#vcard"},cT={class:"tab-content",id:"myTabContent"},lT={id:"paystack",role:"tabpanel","aria-labelledby":"paystack-tab",class:"tab-pane fade show active xnpanel mt-3 pt-4 pb-3"},uT={class:"form-floating mb-3"},fT={for:"paystackfullname"},hT={class:"form-floating mb-3"},dT={for:"paystackmoney"},pT={class:"mt-4 mb-3"},gT=["src"],mT={id:"momo",role:"tabpanel","aria-labelledby":"momo-tab",class:"tab-pane fade show xnpanel mt-3 pt-4 pb-3"},_T={class:"form-floating mb-3"},AT={for:"momoisdn"},yT={class:"form-floating mb-3"},vT={for:"momomount"},wT=["disabled"],bT={class:"mb-3"},ET=["src"],CT={id:"vcard",role:"tabpanel","aria-labelledby":"vcard-tab",class:"tab-pane fade show xnpanel mt-3 pt-4 pb-3"},TT={key:0,class:"form-floating mb-3"},IT={for:"vcarduid"},ST={class:"form-floating mb-3"},OT={for:"vcardcode"},NT=["disabled"],RT={class:"mb-3"},DT=["src"],PT={key:4},MT=jn({__name:"App",setup(e){let t=!0,n=!1,r=-1;function o(z){let g=window.location.search.substring(1),_=g.split("&"),C,P;for(P=0;P<_.length;P++)if(C=_[P].split("="),C[0]===z)return C[1]===void 0?"":decodeURIComponent(C[1]);return""}const i=Zr("axios"),s=Zr("vue3-notify"),{t:a}=ra(),c=Gr({presence:0,avatar:"",msisdn:"",selfjid:"",mytoken:"",nickname:"",isagent:0,mybalnum:0,mybalance:"0.00"}),l=Gr({chargerid:1e4,mac:"",tep:0,pow:0,stp:0,act:0,cbk:0,beep:"00:00:00",prizz:[0,0,0,0,0,0],imax:[0,0,0,0,0,0,0,0,0,0,0,0],pi:["0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01","0.01"],sw:[0,0,0,0,0,0,0,0,0,0,0,0],se:[0,0,0,0,0,0,0,0,0,0,0,0],ua:["","","","","","","","","","","",""]}),u=Ot("ChargeNOW"),f=Ot(localStorage.pfname),h=Ot(localStorage.preprepay?Number(localStorage.preprepay):pw),p=Ot(""),m=Ot(""),A=Ot(a("vcardactivenow")),b=Ot(1),y=Ot(-1),w=Ot(0),T=Ot(parseInt(localStorage.horid,10)||0),E=Ot(!1),S=Ot(!1),N=Ot(!0),D=Ot(!1),M=Ot(!1),j=Gr(["10","1","2","3","4","6","8","15"]),H=Gr(["Free","SwitchON","Charging","Disabled","StopDN","Offline","noID"]),tt=Ot(void 0),et=Ot(null);Yo(()=>{e4(z=>{c.nickname=z}),n4(z=>{c.avatar=z}),t4(z=>sn(this,null,function*(){c.presence=z,c.msisdn=Z6(),c.selfjid=o("jid")})),Wt()}),Zs(()=>{c.mytoken="",fh()});function st(){return OE()}function Et(){return["card","bank","ussd","mobile_money"]}function Ht(){var z;w.value=2,(z=et.value)==null||z.onCanPlay()}function gt(){c.mytoken="",fh()}function ht(){return sn(this,null,function*(){D.value=!0;let z="token="+c.mytoken+"&money="+h.value+"&mobile="+encodeURIComponent(c.msisdn),g=yield i.post("/momoprepay?tm="+new Date().getTime(),z);g.data.rc<0?(s.error(g.data.rc+":"+g.data.rm),setTimeout(()=>{D.value=!1},5e3)):setTimeout(mt,5e3)})}function mt(){return sn(this,null,function*(){let z="token="+c.mytoken+"&thisbalance="+c.mybalnum,g=yield i.post("/momocheckbalance?tm="+new Date().getTime(),z);g.data.rc==1?(c.mybalnum=g.data.balnum,c.mybalance=g.data.balance):setTimeout(mt,1e3)})}function Yt(z){return sn(this,null,function*(){if(w.value=0,c.mytoken){let g="token="+c.mytoken+"&ref="+z.reference,_=yield i.post("/paystackcb?tm="+new Date().getTime(),g);_.status==200&&_.data.rc==1&&(c.mybalnum=_.data.balnum,c.mybalance=_.data.balance),b.value=2,t||Wt(),localStorage.setItem("preprepay",h.value.toString()),localStorage.setItem("pfname",f.value)}})}function Zt(){w.value=0}function Wt(){return sn(this,null,function*(){if(c.mytoken){let z="token="+c.mytoken+"&loads="+b.value;l.mac?z=z+"&mac="+l.mac:z=z+"&id="+l.chargerid,E.value=!0;let g=yield i.post("/getonebk?tm="+new Date().getTime(),z);E.value=!1,g&&g.status>=200&&(b.value++,n==!0?l.sw[y.value]!=g.data.sw[y.value]&&(n=!1):(Object.keys(g.data).forEach(_=>{try{_=="sw"||_=="se"||_=="pi"||_=="imax"||_=="ua"||_=="prizz"||_=="tep"||_=="mac"||_=="beep"||_=="cbk"||_=="pow"||_=="stp"||_=="act"?l[_]=g.data[_]:_=="myid"&&(r=Number(g.data[_]))}catch(C){console.log(_,g.data[_])}}),y.value>-1&&Xt(y.value)),b.value<100?(t=!0,setTimeout(Wt,1e3)):t=!1)}else{if(c.avatar&&c.nickname&&c.presence){b.value==0&&y.value==-1&&(b.value=1,s.success("SELECT Free Socket (GREEN) First."));let z="phone="+encodeURIComponent(c.msisdn)+"&nick="+encodeURIComponent(c.nickname)+"&jid="+encodeURIComponent(c.selfjid)+"&online="+c.presence,g=yield i.post("/ayobalogin?tm="+new Date().getTime(),z);g&&g.status==200?g.data.rc==1?(c.mytoken=g.data.token,c.mybalnum=g.data.balnum,c.mybalance=g.data.balance,c.isagent=g.data.isagent):(c.mytoken="",s.error(g.data.rm)):s.error("amazonaws LoginERROR")}setTimeout(Wt,1e3)}})}function Xt(z){if(N.value=!0,l.sw[z]==0)u.value=a("DoCharge")+"(#"+(z+1)+"SOCKET)",N.value=!1;else if(l.sw[z]==1||l.sw[z]==2){let g=new Date().getTime(),_=l.se[z]-g;if(_<0)r==z?(u.value=a("StopNOW"),N.value=!1):u.value=l.ua[z]+" "+a("Charging");else{let C=_/1e3,P=Math.round(C/60),x=Math.round(C%60),U=P+"m"+(x>0?x+"s":"");r==z?(P>600?u.value=a("IamCharging"):u.value=U+","+a("StopNOW"),N.value=!1):P>600?u.value=l.ua[z]:u.value=l.ua[z]+"@"+U}}else l.sw[z]==3?(z=-1,u.value="PortDisabled"):l.sw[z]==4?(z=-1,u.value=a("StopKeyDown")):l.sw[z]==5?r==z?(u.value=a("Clearme"),N.value=!1):(z=-1,u.value=a("DeviceOffline")):(z=-1,u.value=a("InvalidChargerID"));y.value=z}function be(){w.value=1}function ae(){w.value=0,M.value=!1}function Mt(z){let g=parseInt(z.currentTarget.id,10);Xt(g),b.value=3,t||Wt(),y.value==-1&&s.success("SELECT Free Socket First.")}function Qt(){S.value=!0}function ce(){S.value=!1}function Lt(z){T.value=parseInt(z.currentTarget.id,10),localStorage.horid=T.value,S.value=!1}function Ee(){return sn(this,null,function*(){if(M.value=!0,Number(p.value)+""!=p.value)A.value=a("vcardactiveer1"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&p.value.length!=4)A.value=a("vcardactiveer2"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==0&&p.value.length!=8)A.value=a("vcardactiveer3"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&m.value.length<4)A.value=a("vcardactiveer4"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&(m.value.indexOf("@")<2||m.value.indexOf(".")<4))A.value=a("vcardactiveer5"),setTimeout(()=>{M.value=!1,A.value=a("vcardactivenow")},5e3);else{let z="token="+c.mytoken+"&cardid="+p.value,g;c.isagent==1?(z=z+"&to="+encodeURIComponent(m.value),g=yield i.post("/vcardactive1?tm="+new Date().getTime(),z)):g=yield i.post("/vcardactive2?tm="+new Date().getTime(),z),g&&g.status==200?g.data.rc>0?w.value=0:A.value=g.data.rm:A.value="unknown error"}})}function se(){return sn(this,null,function*(){N.value=!0,n=!0;let z="token="+c.mytoken+"&mac="+l.mac+"&portid="+y.value+"&hourid="+T.value;l.sw[y.value]==0?(u.value=a("Starting"),yield i.post("/dochargebk?tm="+new Date().getTime(),z),setTimeout(()=>{N.value=!1,n=!1},1e4)):r==y.value&&(u.value=a("Stoping")+"...",z=z+"&cmd=1",yield i.post("/userdocmd?tm="+new Date().getTime(),z),setTimeout(()=>{N.value=!1,n=!1},1e4)),b.value=4,t||Wt()})}function X(z){var g,_;if(z){tt.value=z==null?void 0:z.text;let C=Number(tt.value);((g=tt.value)==null?void 0:g.length)==5&&""+C==tt.value&&(l.chargerid=C,l.mac="",b.value=5,w.value=0,(_=et.value)==null||_.onReset(),t||Wt())}}return(z,g)=>{const _=gs("vue3-notify");return vt(),St("div",o4,[Ae(dn(B6),{ref_key:"refCamera",ref:et,capture:"shoot","show-on-stream":"",onResult:X},null,512),w.value==0?(vt(),St("div",i4,[F("ul",s4,[F("li",a4,[F("img",{src:c.avatar?c.avatar:dn(Ao)("logo.png"),class:"avathead"},null,8,c4),di(" "+ct(c.nickname?c.nickname:"(Ayoba User)"),1)]),F("li",l4,[di(ct(c.mybalance)+" ",1),F("button",{type:"button",class:"btn btn-sm btn-outline-success",onClick:be},ct(z.$t("topup")),1)])]),F("ul",u4,[F("li",f4,[l.chargerid?(vt(),St("span",h4,[di(ct(z.$t("chargerID"))+" ",1),F("span",null,ct(l.chargerid),1)])):(vt(),St("span",d4,""))]),F("li",{class:"nav-item text-end btn btn-sm my-auto",onClick:Ht},[F("img",{src:dn(Ao)("scan54.png"),class:"avathead"},null,8,p4)])]),F("div",g4,[F("div",m4,[F("div",_4,[F("div",{class:ut(["pbox",y.value==0?"p1":"p0"]),id:"0",onClick:g[0]||(g[0]=C=>Mt(C))},[F("div",A4,[F("div",{class:ut(["xn-amb w-amb",y.value==0?"d1 bg"+l.sw[0]:"d0 bg"+l.sw[0]])},[F("div",{class:ut(["fixed","fg"+l.sw[0]])},ct(l.chargerid?"1":"-"),3)],2),F("div",y4,ct(z.$t(H[l.sw[0]])),1)])],2),F("div",{class:ut(["pbox",y.value==4?"p1":"p0"]),id:"4",onClick:g[1]||(g[1]=C=>Mt(C))},[F("div",v4,[F("div",{class:ut(["xn-amb w-amb",y.value==4?"d1 bg"+l.sw[4]:"d0 bg"+l.sw[4]])},[F("div",{class:ut(["fixed","fg"+l.sw[4]])},ct(l.chargerid?"5":"-"),3)],2),F("div",w4,ct(z.$t(H[l.sw[4]])),1)])],2),F("div",{class:ut(["pbox",y.value==8?"p1":"p0"]),id:"8",onClick:g[2]||(g[2]=C=>Mt(C))},[F("div",b4,[F("div",{class:ut(["xn-amb w-amb",y.value==8?"d1 bg"+l.sw[8]:"d0 bg"+l.sw[8]])},[F("div",{class:ut(["fixed","fg"+l.sw[8]])},ct(l.chargerid?"9":"-"),3)],2),F("div",E4,ct(z.$t(H[l.sw[8]])),1)])],2)]),F("div",C4,[F("div",{class:ut(["pbox",y.value==1?"p1":"p0"]),id:"1",onClick:g[3]||(g[3]=C=>Mt(C))},[F("div",T4,[F("div",{class:ut(["xn-amb w-amb",y.value==1?"d1 bg"+l.sw[1]:"d0 bg"+l.sw[1]])},[F("div",{class:ut(["fixed","fg"+l.sw[1]])},ct(l.chargerid?"2":"-"),3)],2),F("div",I4,ct(z.$t(H[l.sw[1]])),1)])],2),F("div",{class:ut(["pbox",y.value==5?"p1":"p0"]),id:"5",onClick:g[4]||(g[4]=C=>Mt(C))},[F("div",S4,[F("div",{class:ut(["xn-amb w-amb",y.value==5?"d1 bg"+l.sw[5]:"d0 bg"+l.sw[5]])},[F("div",{class:ut(["fixed","fg"+l.sw[5]])},ct(l.chargerid?"6":"-"),3)],2),F("div",O4,ct(z.$t(H[l.sw[5]])),1)])],2),F("div",{class:ut(["pbox",y.value==9?"p1":"p0"]),id:"9",onClick:g[5]||(g[5]=C=>Mt(C))},[F("div",N4,[F("div",{class:ut(["xn-amb w-amb",y.value==9?"d1 bg"+l.sw[9]:"d0 bg"+l.sw[9]])},[F("div",{class:ut(["fixed","fg"+l.sw[9]])},ct(l.chargerid?"10":"-"),3)],2),F("div",R4,ct(z.$t(H[l.sw[9]])),1)])],2)]),F("div",D4,[F("div",{class:ut(["pbox",y.value==2?"p1":"p0"]),id:"2",onClick:g[6]||(g[6]=C=>Mt(C))},[F("div",P4,[F("div",{class:ut(["xn-amb w-amb",y.value==2?"d1 bg"+l.sw[2]:"d0 bg"+l.sw[2]])},[F("div",{class:ut(["fixed","fg"+l.sw[2]])},ct(l.chargerid?"3":"-"),3)],2),F("div",M4,ct(z.$t(H[l.sw[2]])),1)])],2),F("div",{class:ut(["pbox",y.value==6?"p1":"p0"]),id:"6",onClick:g[7]||(g[7]=C=>Mt(C))},[F("div",L4,[F("div",{class:ut(["xn-amb w-amb",y.value==6?"d1 bg"+l.sw[6]:"d0 bg"+l.sw[6]])},[F("div",{class:ut(["fixed","fg"+l.sw[6]])},ct(l.chargerid?"7":"-"),3)],2),F("div",k4,ct(z.$t(H[l.sw[6]])),1)])],2),F("div",{class:ut(["pbox",y.value==10?"p1":"p0"]),id:"10",onClick:g[8]||(g[8]=C=>Mt(C))},[F("div",B4,[F("div",{class:ut(["xn-amb w-amb",y.value==10?"d1 bg"+l.sw[10]:"d0 bg"+l.sw[10]])},[F("div",{class:ut(["fixed","fg"+l.sw[10]])},ct(l.chargerid?"11":"-"),3)],2),F("div",x4,ct(z.$t(H[l.sw[10]])),1)])],2)]),F("div",F4,[F("div",{class:ut(["pbox",y.value==3?"p1":"p0"]),id:"3",onClick:g[9]||(g[9]=C=>Mt(C))},[F("div",V4,[F("div",{class:ut(["xn-amb w-amb",y.value==3?"d1 bg"+l.sw[3]:"d0 bg"+l.sw[3]])},[F("div",{class:ut(["fixed","fg"+l.sw[3]])},ct(l.chargerid?"4":"-"),3)],2),F("div",U4,ct(z.$t(H[l.sw[3]])),1)])],2),F("div",{class:ut(["pbox",y.value==7?"p1":"p0"]),id:"7",onClick:g[10]||(g[10]=C=>Mt(C))},[F("div",H4,[F("div",{class:ut(["xn-amb w-amb",y.value==7?"d1 bg"+l.sw[7]:"d0 bg"+l.sw[7]])},[F("div",{class:ut(["fixed","fg"+l.sw[7]])},ct(l.chargerid?"8":"-"),3)],2),F("div",W4,ct(z.$t(H[l.sw[7]])),1)])],2),F("div",{class:ut(["pbox",y.value==11?"p1":"p0"]),id:"11",onClick:g[11]||(g[11]=C=>Mt(C))},[F("div",j4,[F("div",{class:ut(["xn-amb w-amb",y.value==11?"d1 bg"+l.sw[11]:"d0 bg"+l.sw[11]])},[F("div",{class:ut(["fixed","fg"+l.sw[11]])},ct(l.chargerid?"12":"-"),3)],2),F("div",G4,ct(z.$t(H[l.sw[11]])),1)])],2)])])]),F("button",{class:"btn btn-outline-info w-100 mt-3",onClick:Qt},ct(z.$t("ChargeTIME"))+": "+ct(j[T.value])+ct(z.$t("hors")),1),c.mytoken&&c.mybalnum<10?(vt(),St("button",{key:0,class:"btn btn-warning w-100 mt-3",onClick:be},ct(z.$t("btn_prepay")),1)):Se("",!0),c.mytoken&&c.mybalnum>=10?(vt(),St("button",{key:1,class:"btn btn-success w-100 mt-3",onClick:se,disabled:N.value},ct(u.value),9,X4)):Se("",!0),S.value?(vt(),St("div",z4,[F("div",null,[F("div",Y4,ct(z.$t("bkchargehours"))+" :",1),F("div",q4,[F("div",{class:ut(["pbo2",T.value==0?"f0":"f1"]),id:"0",onClick:Lt}," 10"+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==1?"f0":"f1"]),id:"1",onClick:Lt}," 1 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==2?"f0":"f1"]),id:"2",onClick:Lt}," 2 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==3?"f0":"f1"]),id:"3",onClick:Lt}," 3 "+ct(z.$t("hors")),3)]),F("div",K4,[F("div",{class:ut(["pbo2",T.value==4?"f0":"f1"]),id:"4",onClick:Lt}," 4 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==5?"f0":"f1"]),id:"5",onClick:Lt}," 6 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==6?"f0":"f1"]),id:"6",onClick:Lt}," 8 "+ct(z.$t("hors")),3),F("div",{class:ut(["pbo2",T.value==7?"f0":"f1"]),id:"7",onClick:Lt}," 15"+ct(z.$t("hors")),3)])])])):Se("",!0)])):Se("",!0),w.value==1?(vt(),St("div",Z4,[F("ul",Q4,[F("li",$4,[F("img",{src:c.avatar?c.avatar:dn(Ao)("logo.png"),class:"avathead"},null,8,J4),di(" "+ct(c.nickname?c.nickname:"(Ayoba User)"),1)]),F("li",tT,[F("button",{class:"btn btn-sm btn-outline-warning",onClick:gt},ct(z.$t("logout")),1)])]),F("ul",eT,[F("li",nT,[F("button",rT,ct(z.$t("tabpaystack")),1)]),F("li",oT,[F("button",iT,ct(z.$t("tabmomo")),1)]),F("li",sT,[F("button",aT,ct(z.$t("tabvcard")),1)])]),F("div",cT,[F("div",lT,[F("div",{class:"text-end"},[F("button",{type:"button",class:"btn btn-close",style:{"margin-top":"-12px","margin-right":"-12px"},"aria-label":"Close",onClick:ae})]),F("div",uT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[12]||(g[12]=C=>f.value=C),id:"paystackfullname",required:"",maxlength:"32",placeholder:""},null,512),[[_o,f.value]]),F("label",fT,ct(z.$t("payfullname")),1)]),F("div",hT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[13]||(g[13]=C=>h.value=C),id:"paystackmoney",required:"",maxlength:"32",placeholder:""},null,512),[[_o,h.value]]),F("label",dT,ct(z.$t("paymoneys")),1)]),Ae(dn(IE),{buttonClass:"btn btn-warning w-100",buttonText:z.$t("btn_prepay"),publicKey:dn(hw),amount:h.value*100,email:dn(dw),reference:st(),channels:Et(),onSuccess:Yt,onCanel:Zt,currency:"GHS"},null,8,["buttonText","publicKey","amount","email","reference","channels"]),F("div",pT,[F("img",{src:dn(Ao)("paystack-gh.png"),class:"w-100"},null,8,gT)])]),F("div",mT,[F("div",{class:"text-end"},[F("button",{type:"button",class:"btn btn-close",style:{"margin-top":"-12px","margin-right":"-12px"},"aria-label":"Close",onClick:ae})]),F("div",_T,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[14]||(g[14]=C=>c.msisdn=C),id:"momoisdn",required:"",maxlength:"32",placeholder:""},null,512),[[_o,c.msisdn]]),F("label",AT,ct(z.$t("mobilenumber")),1)]),F("div",yT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[15]||(g[15]=C=>h.value=C),id:"momomount",required:"",maxlength:"32",placeholder:""},null,512),[[_o,h.value]]),F("label",vT,ct(z.$t("paymoneys")),1)]),F("button",{class:"btn btn-success mb-3 w-100",onClick:ht,disabled:D.value},ct(z.$t("lbmomopay")),9,wT),F("div",bT,[F("img",{src:dn(Ao)("paystack-gh.png"),class:"w-100"},null,8,ET)])]),F("div",CT,[F("div",{class:"text-end"},[F("button",{type:"button",class:"btn btn-close",style:{"margin-top":"-12px","margin-right":"-12px"},"aria-label":"Close",onClick:ae})]),c.isagent==1?(vt(),St("div",TT,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[16]||(g[16]=C=>m.value=C),id:"vcarduid",required:"",maxlength:"32",placeholder:""},null,512),[[_o,m.value]]),F("label",IT,ct(z.$t("activetarget")),1)])):Se("",!0),F("div",ST,[Hr(F("input",{type:"text",class:"form-control","onUpdate:modelValue":g[17]||(g[17]=C=>p.value=C),id:"vcardcode",required:"",maxlength:"32",placeholder:""},null,512),[[_o,p.value]]),F("label",OT,ct(z.$t("activecode")),1)]),F("button",{class:"btn btn-info mb-3 w-100",onClick:Ee,disabled:M.value},ct(A.value),9,NT),F("div",RT,[F("img",{src:dn(Ao)("paystack-gh.png"),class:"w-100"},null,8,DT)])])])])):Se("",!0),Ae(_),b.value==0?(vt(),St("div",{key:2,class:"mask opacity",onTouchmove:g[18]||(g[18]=wd(()=>{},["prevent"]))}," ",32)):Se("",!0),S.value?(vt(),St("div",{key:3,class:"mask opacity",onClick:ce}," ")):Se("",!0),w.value==2?(vt(),St("div",PT," ")):Se("",!0)])}}}),LT=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},kT=LT(MT,[["__scopeId","data-v-6d0dcc28"]]);function Vs(e){return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function Is(e,t){if(!e.vueAxiosInstalled){var n=f0(t)?FT(t):t;if(VT(n)){var r=UT(e);if(r){var o=r<3?BT:xT;Object.keys(n).forEach(function(i){o(e,i,n[i])}),e.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function BT(e,t,n){Object.defineProperty(e.prototype,t,{get:function(){return n}}),e[t]=n}function xT(e,t,n){e.config.globalProperties[t]=n,e[t]=n}function f0(e){return e&&typeof e.get=="function"&&typeof e.post=="function"}function FT(e){return{axios:e,$http:e}}function VT(e){return Vs(e)==="object"&&Object.keys(e).every(function(t){return f0(e[t])})}function UT(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports=="undefined"?"undefined":Vs(exports))=="object"?module.exports=Is:typeof define=="function"&&define.amd?define([],function(){return Is}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(Is,window.axios);var Po,qn,HT=Object.defineProperty,WT=Object.defineProperties,jT=Object.getOwnPropertyDescriptors,hh=Object.getOwnPropertySymbols,GT=Object.prototype.hasOwnProperty,XT=Object.prototype.propertyIsEnumerable,rl=(e,t,n)=>t in e?HT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yr=(e,t,n)=>(rl(e,typeof t!="symbol"?t+"":t,n),n);(qn=Po||(Po={})).leftTop="leftTop",qn.leftCenter="leftCenter",qn.leftBottom="leftBottom",qn.rightTop="rightTop",qn.rightCenter="rightCenter",qn.rightBottom="rightBottom",qn.centerTop="centerTop",qn.centerCenter="centerCenter",qn.centerBottom="centerBottom";const oc="simple",dh="success",ph="error",gh="warning",mh="info",ol="async",_h="confirm",Us="prompt";var Hs=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const zT=jn({props:["toast"],data:()=>({isPromptFocused:!1}),methods:{valueChanged(e){this.toast.value=e.target.value,this.toast.eventEmitter.emit("input")}}}),YT=["id"],qT=["for"],KT={class:"snotifyToast__input__labelContent"};var ZT=Hs(zT,[["render",function(e,t,n,r,o,i){return vt(),St("span",{class:ut(["snotifyToast__input",{"snotifyToast__input--filled":e.isPromptFocused}])},[F("input",{onInput:t[0]||(t[0]=(...s)=>e.valueChanged&&e.valueChanged(...s)),class:"snotifyToast__input__field",type:"text",id:e.toast.id,onFocus:t[1]||(t[1]=s=>e.isPromptFocused=!0),onBlur:t[2]||(t[2]=s=>e.isPromptFocused=!!e.toast.value.length)},null,40,YT),F("label",{class:"snotifyToast__input__label",for:e.toast.id},[F("span",KT,ct(e.toast.config.placeholder),1)],8,qT)],2)}]]);const QT=jn({props:["toast"],methods:{remove(){this.$snotify.remove(this.toast.id)}}}),$T={class:"snotifyToast__buttons"},JT=["onClick"],tI=jn({components:{SnotifyPrompt:ZT,SnotifyButton:Hs(QT,[["render",function(e,t,n,r,o,i){return vt(),St("div",$T,[(vt(!0),St(Me,null,fc(e.toast.config.buttons,(s,a)=>(vt(),St("button",{type:"button",key:a,class:ut([{"snotifyToast__buttons--bold":s.bold},s.className]),onClick:wd(c=>s.action?s.action(e.toast):e.remove(),["prevent","stop"])},ct(s.text),11,JT))),128))])}]])},props:["toastData"],emits:["stateChanged"],data(){return{toast:this.toastData,animationFrame:0,state:{paused:!1,progress:0,animation:"",isDestroying:!1,promptType:Us}}},computed:{toastTitle(){const e=this.toast.title;return e.length>this.toast.config.titleMaxLength?e.slice(0,this.toast.config.titleMaxLength):e},toastBody(){const e=this.toast.body;return e.length>this.toast.config.bodyMaxLength?e.slice(0,this.toast.config.bodyMaxLength):e}},methods:{initToast(){this.toast.config.timeout>0&&this.startTimeout(0)},onClick(){this.toast.eventEmitter.emit("click"),this.toast.config.closeOnClick&&this.$snotify.remove(this.toast.id)},onMouseEnter(){this.toast.eventEmitter.emit("mouseenter"),this.toast.config.pauseOnHover&&(this.state.paused=!0)},onMouseLeave(){this.toast.config.pauseOnHover&&this.toast.config.timeout&&(this.state.paused=!1,this.startTimeout(this.toast.config.timeout*this.state.progress)),this.toast.eventEmitter.emit("mouseleave")},onExitTransitionEnd(){this.state.isDestroying||(this.initToast(),this.toast.eventEmitter.emit("shown"))},startTimeout(e=0){const t=performance.now(),n=()=>{this.animationFrame=requestAnimationFrame(r=>{const o=r+e-t,i=Math.min(o/this.toast.config.timeout,1);this.state.paused?cancelAnimationFrame(this.animationFrame):o{this.$emit("stateChanged","hidden"),this.state.animation="snotifyToast--out",this.toast.eventEmitter.emit("hidden"),setTimeout(()=>this.$snotify.remove(this.toast.id,!0),this.toast.config.animation.time/2)},this.toast.config.animation.time/2)}},created(){this.$snotify.emitter.on("remove",e=>{this.toast.id===e&&this.onRemove()})},mounted(){this.$nextTick(()=>{this.toast.eventEmitter.emit("mounted"),this.state.animation="snotifyToast--in",this.$nextTick(()=>{setTimeout(()=>{this.$emit("stateChanged","beforeShow"),this.toast.eventEmitter.emit("beforeShow"),this.state.animation=this.toast.config.animation.enter},this.toast.config.animation.time/5)})})},unmounted(){cancelAnimationFrame(this.animationFrame),this.toast.eventEmitter.emit("destroyed")}}),eI={key:0,class:"snotifyToast__progressBar"},nI={key:0,class:"snotifyToast__title"},rI={key:1,class:"snotifyToast__body"},oI={key:4},iI=["src"],sI=["innerHTML"];var aI=Hs(jn({components:{Toast:Hs(tI,[["render",function(e,t,n,r,o,i){const s=gs("snotify-prompt"),a=gs("snotify-button");return vt(),St("div",{class:ut(["snotifyToast animated",["snotify-"+e.toast.config.type,e.state.animation,e.toast.valid===void 0?"":e.toast.valid?"snotifyToast--valid":"snotifyToast--invalid"]]),style:Oo({"-webkit-animation-duration":e.toast.config.animation.time+"ms","animation-duration":e.toast.config.animation.time+"ms","-webkit-transition":e.toast.config.animation.time+"ms",transition:e.toast.config.animation.time+"ms"}),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMouseenter:t[1]||(t[1]=(...c)=>e.onMouseEnter&&e.onMouseEnter(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.onMouseLeave&&e.onMouseLeave(...c)),onAnimationend:t[3]||(t[3]=(...c)=>e.onExitTransitionEnd&&e.onExitTransitionEnd(...c))},[e.toast.config.showProgressBar&&e.toast.config.timeout>0?(vt(),St("div",eI,[F("span",{class:"snotifyToast__progressBar__percentage",style:Oo({width:100*e.state.progress+"%"})},null,4)])):Se("",!0),e.toast.config.html?(vt(),St("div",{key:2,class:"snotifyToast__inner",innerHTML:e.toast.config.html},null,8,sI)):(vt(),St("div",{key:1,class:ut(["snotifyToast__inner",{snotifyToast__noIcon:e.toast.config.icon===!1}])},[e.toast.title?(vt(),St("div",nI,ct(e.toastTitle),1)):Se("",!0),e.toast.body?(vt(),St("div",rI,ct(e.toastBody),1)):Se("",!0),e.toast.config.type===e.state.promptType?(vt(),Ei(s,{key:2,toast:e.toast},null,8,["toast"])):Se("",!0),e.toast.config.icon===void 0?(vt(),St("div",{key:3,class:ut(["snotify-icon","snotify-icon--"+e.toast.config.type])},null,2)):e.toast.config.icon!==!1?(vt(),St("div",oI,[F("img",{class:"snotify-icon",src:e.toast.config.icon},null,8,iI)])):Se("",!0)],2)),e.toast.config.buttons?(vt(),Ei(a,{key:3,toast:e.toast},null,8,["toast"])):Se("",!0)],38)}]])},data:()=>({notifications:{left_top:[],left_center:[],left_bottom:[],right_top:[],right_center:[],right_bottom:[],center_top:[],center_center:[],center_bottom:[]},dockSize_a:0,dockSize_b:0,blockSize_a:0,blockSize_b:0,backdrop:-1,withBackdrop:[]}),methods:{getNotificationsForPos(e){return this.notifications[e].slice(this.blockSize_a,this.blockSize_b)},setOptions(e){var t,n;if(this.$snotify.config.global){const r=(t=this.$snotify.config.global)==null?void 0:t.maxOnScreen,o=(n=this.$snotify.config.global)==null?void 0:n.maxAtPosition;this.$snotify.config.global.newOnTop?(r&&(this.dockSize_a=-r),this.dockSize_b=void 0,o&&(this.blockSize_a=-o),this.blockSize_b=void 0,this.withBackdrop=e.filter(i=>i.config.backdrop>=0)):(this.dockSize_a=0,r&&(this.dockSize_b=r),this.blockSize_a=0,o&&(this.blockSize_b=o),this.withBackdrop=e.filter(i=>i.config.backdrop>=0).reverse())}this.notifications=this.splitToasts(e.slice(this.dockSize_a,this.dockSize_b)),this.stateChanged("mounted")},stateChanged(e){if(this.withBackdrop.length)switch(e){case"mounted":this.backdrop<0&&(this.backdrop=0);break;case"beforeShow":const t=this.withBackdrop[this.withBackdrop.length-1].config.backdrop;t&&(this.backdrop=t);break;case"beforeHide":this.withBackdrop.length===1&&(this.backdrop=0);break;case"hidden":this.withBackdrop.length===1&&(this.backdrop=-1)}else this.backdrop>=0&&(this.backdrop=-1)},splitToasts(e){const t={};for(const n in Po)Po.hasOwnProperty(n)&&(t[Po[n]]=[]);return e.forEach(n=>{t[n.config.position].push(n)}),t}},created(){this.$snotify.emitter.on("snotify",e=>{this.setOptions(e)})}}),[["render",function(e,t,n,r,o,i){const s=gs("toast");return vt(),St("div",null,[e.backdrop>=0?(vt(),St("div",{key:0,class:"snotify-backdrop",style:Oo({opacity:e.backdrop})},null,4)):Se("",!0),(vt(!0),St(Me,null,fc(e.notifications,(a,c)=>(vt(),St("div",{class:ut(["snotify","snotify-"+c]),key:c},[(vt(!0),St(Me,null,fc(e.getNotificationsForPos(c),l=>(vt(),Ei(s,{toastData:l,key:l.id,onStateChanged:e.stateChanged},null,8,["toastData","onStateChanged"]))),128))],2))),128))])}]]);function h0(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}class cI{constructor(t,n,r,o){Yr(this,"eventEmitter",h0()),Yr(this,"_eventsHolder",[]),Yr(this,"value",""),Yr(this,"valid"),this.id=t,this.title=n,this.body=r,this.config=o,this.config.type===Us&&(this.value=""),this.on("hidden",()=>{this._eventsHolder.forEach(i=>{this.eventEmitter.off(i.event,i.action)})})}on(t,n){return this._eventsHolder.push({event:t,action:n}),this.eventEmitter.on(t,()=>n(this)),this}}const lI={global:{newOnTop:!0,maxOnScreen:8,maxAtPosition:8,oneAtTime:!1,preventDuplicates:!1},toast:{timeout:2e3,showProgressBar:!0,type:oc,closeOnClick:!0,pauseOnHover:!0,titleMaxLength:16,bodyMaxLength:150,backdrop:-1,icon:void 0,animation:{enter:"fadeIn",exit:"fadeOut",time:400},html:void 0,position:Po.rightBottom},type:{[Us]:{timeout:0,closeOnClick:!1,buttons:[{text:"Ok",bold:!0},{text:"Cancel",bold:!1}],placeholder:"Enter answer here...",type:Us},[_h]:{timeout:0,closeOnClick:!1,buttons:[{text:"Ok",bold:!0},{text:"Cancel",bold:!1}],type:_h},[oc]:{type:oc},[dh]:{type:dh},[ph]:{type:ph},[gh]:{type:gh},[mh]:{type:mh},[ol]:{pauseOnHover:!1,closeOnClick:!1,timeout:0,showProgressBar:!1,type:ol}}};function Ah(e){return e&&typeof e=="object"&&!Array.isArray(e)&&e!==null}function il(...e){const t={};if(!e.length)return t;for(;e.length>0;){const n=e.shift();if(Ah(n))for(const r in n)Ah(n[r])?t[r]=il(t[r],n[r]):Object.assign(t,{[r]:n[r]})}return t}function Fr(e,t,n){return{value:function(...r){var o;return r[0].config=(o=((i,s)=>{for(var a in s||(s={}))GT.call(s,a)&&rl(i,a,s[a]);if(hh)for(var a of hh(s))XT.call(s,a)&&rl(i,a,s[a]);return i})({},r[0].config),WT(o,jT({type:t}))),n.value.apply(this,r)}}}function Vr(e,t,n){return t===ol?{value:function(...r){let o;return o=r.length===2?{title:null,body:r[0],config:null,action:r[1]}:r.length===3?typeof r[1]=="string"?{title:r[1],body:r[0],config:null,action:r[2]}:{title:null,body:r[0],config:r[2],action:r[1]}:{title:r[1],body:r[0],config:r[3],action:r[2]},n.value.apply(this,[o])}}:{value:function(...r){let o;return o=r.length===1?{title:null,body:r[0],config:null}:r.length===3?{title:r[1],body:r[0],config:r[2]}:{title:null,config:null,body:r[0],[typeof r[1]=="string"?"title":"config"]:r[1]},n.value.apply(this,[o])}}}var uI=Object.defineProperty,fI=Object.getOwnPropertyDescriptor,Ur=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?fI(t,n):t,s=e.length-1;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&uI(t,n,i),i};class ur{constructor(){Yr(this,"emitter",h0()),Yr(this,"notifications",[]),Yr(this,"config",lI)}emit(){this.emitter.emit("snotify",this.notifications.slice())}get(t){return this.notifications.find(n=>n.id===t)}add(t){var n;(n=this.config.global)!=null&&n.newOnTop?this.notifications.unshift(t):this.notifications.push(t),this.emit()}remove(t,n){return t?n?(this.notifications=this.notifications.filter(r=>r.id!==t),this.emit()):void this.emitter.emit("remove",t):this.clear()}clear(){this.notifications=[],this.emit()}button(t,n=!0,r,o=!1){return{text:t,action:n?i=>{r&&r(i),this.remove(i.id)}:r,bold:o}}create(t){var n,r,o,i,s;if((r=(n=this.config)==null?void 0:n.global)!=null&&r.oneAtTime&&this.notifications.length!==0||(i=(o=this.config)==null?void 0:o.global)!=null&&i.preventDuplicates&&this.notifications.filter(l=>{var u;return l.config.type===((u=t==null?void 0:t.config)==null?void 0:u.type)}).length===1)return;const a=il(this.config.toast,this.config.type?[(s=t.config)==null?void 0:s.type]:null,t.config),c=new cI(a.id?a.id:Math.floor(Math.random()*(Date.now()-1))+1,t.title?t.title:"",t.body?t.body:"",a);return this.add(c),c}setDefaults(t){return this.config=il(this.config,t)}simple(t){return this.create(t)}success(t){return this.create(t)}error(t){return this.create(t)}info(t){return this.create(t)}warning(t){return this.create(t)}confirm(t){return this.create(t)}prompt(t){return this.create(t)}}Ur([Vr,Fr],ur.prototype,"simple",1),Ur([Vr,Fr],ur.prototype,"success",1),Ur([Vr,Fr],ur.prototype,"error",1),Ur([Vr,Fr],ur.prototype,"info",1),Ur([Vr,Fr],ur.prototype,"warning",1),Ur([Vr,Fr],ur.prototype,"confirm",1),Ur([Vr,Fr],ur.prototype,"prompt",1);var hI={install:(e,t={})=>{const n=new ur;n.setDefaults(t),e.config.globalProperties.$snotify=n,e.component("vue3-notify",aI),e.provide("vue3-notify",n)}};const dI="Fr",pI="Change Language To: ",gI="Free",mI="SwitchON",_I="Charging",AI="Disabled",yI="StopDown",vI="Offline",wI="noID",bI="Ready",EI=" Top Up ",CI=" Log Out ",TI="ChargeTIME",II="hors",SI="plz select charge hour(s).",OI="Paystack Top Up",NI="chargerID:",RI="paystack",DI="vCard",PI="momo",MI="MoMo Top Up",LI="byPayPal",kI="paymount",BI="vCard Active NOW",xI="Input Number plz",FI="4 digits number needed",VI="8 digits number needed",UI="Input user account plz",HI="invalid email address",WI="active user account",jI="Active Code Number: ",GI="PayStack Account Full name: ",XI="MobilNumber",zI="Paystack ID: ",YI="Topup moneys: ",qI="ChargeNOW",KI="DoCharge",ZI="StopNOW",QI="IamCharging",$I="Socket Disabled",JI="StopKey Down",tS="Clearme",eS="Device Offline",nS="Invalid ChargerID",rS="Starting",oS="Stoping",iS={languageto:dI,Change_Language_To:pI,Free:gI,SwitchON:mI,Charging:_I,Disabled:AI,StopDN:yI,Offline:vI,noID:wI,Ready:bI,topup:EI,logout:CI,ChargeTIME:TI,hors:II,bkchargehours:SI,btn_prepay:OI,chargerID:NI,tabpaystack:RI,tabvcard:DI,tabmomo:PI,lbmomopay:MI,tabpaypal:LI,paypalmount:kI,vcardactivenow:BI,vcardactiveer1:xI,vcardactiveer2:FI,vcardactiveer3:VI,vcardactiveer4:UI,vcardactiveer5:HI,activetarget:WI,activecode:jI,payfullname:GI,mobilenumber:XI,paystackaccount:zI,paymoneys:YI,ChargeNOW:qI,DoCharge:KI,StopNOW:ZI,IamCharging:QI,PortDisabled:$I,StopKeyDown:JI,Clearme:tS,DeviceOffline:eS,InvalidChargerID:nS,Starting:rS,Stoping:oS},sS="EN",aS="Change Language To: ",cS="空闲中",lS="已通电",uS="充电中",fS="已禁用",hS="急停中",dS="离线中",pS="未扫码",gS="已就绪",mS=" 充值 ",_S=" 退出 ",AS="充电时长",yS="小时",vS="账户充值(Paystack)",wS="请选择充电时长",bS="paystack",ES="虚拟卡",CS="momo",TS="PayPal",IS="MoMo充值",SS="充值金额",OS="立即激活充值卡",NS="请输入数字",RS="需要4位数字",DS="需要8位数字",PS="请填写用户账号",MS="用户账号不是邮箱",LS="用户账号",kS="激活码",BS="用户全名:",xS="paystack账号:",FS="充值金额:",VS="充值手机号",US="启动充电",HS="开始充电",WS="立即停止",jS="我在充电中",GS="端口已禁用",XS="正在启动",zS="正在停止",YS="急停已按下",qS="清理我的会话",KS="设备已离线",ZS="无效的电桩编号",QS={languageto:sS,Change_Language_To:aS,Free:cS,SwitchON:lS,Charging:uS,Disabled:fS,StopDN:hS,Offline:dS,noID:pS,Ready:gS,topup:mS,logout:_S,ChargeTIME:AS,hors:yS,btn_prepay:vS,bkchargehours:wS,"chargerID:":"充电桩编号:",tabpaystack:bS,tabvcard:ES,tabmomo:CS,tabpaypal:TS,lbmomopay:IS,paypalmount:SS,vcardactivenow:OS,vcardactiveer1:NS,vcardactiveer2:RS,vcardactiveer3:DS,vcardactiveer4:PS,vcardactiveer5:MS,activetarget:LS,activecode:kS,payfullname:BS,paystackaccount:xS,paymoneys:FS,mobilenumber:VS,ChargeNOW:US,DoCharge:HS,StopNOW:WS,IamCharging:jS,PortDisabled:GS,Starting:XS,Stoping:zS,StopKeyDown:YS,Clearme:qS,DeviceOffline:KS,InvalidChargerID:ZS},$S="中文",JS="切换语言至: ",t5="Free",e5="SwitchON",n5="Charging",r5="Disabled",o5="StopDown",i5="Offline",s5="noID",a5="Ready",c5=" Top Up ",l5=" Log Out ",u5="ChargeTIME",f5="hors",h5="plz select charge hour(s).",d5="Paystack Top Up",p5="chargerID:",g5="paystack",m5="vCard",_5="momo",A5="MoMo Top Up",y5="byPayPal",v5="paymount",w5="vCard Active NOW",b5="Input Number plz",E5="4 digits number needed",C5="8 digits number needed",T5="Input user account plz",I5="invalid email address",S5="active user account",O5="Active Code Number: ",N5="PayStack Account Full name: ",R5="MobilNumber",D5="Paystack ID: ",P5="Topup moneys: ",M5="ChargeNOW",L5="DoCharge",k5="StopNOW",B5="IamCharging",x5="Socket Disabled",F5="StopKey Down",V5="Clearme",U5="Device Offline",H5="Invalid ChargerID",W5="Starting",j5="Stoping",G5={languageto:$S,Change_Language_To:JS,Free:t5,SwitchON:e5,Charging:n5,Disabled:r5,StopDN:o5,Offline:i5,noID:s5,Ready:a5,topup:c5,logout:l5,ChargeTIME:u5,hors:f5,bkchargehours:h5,btn_prepay:d5,chargerID:p5,tabpaystack:g5,tabvcard:m5,tabmomo:_5,lbmomopay:A5,tabpaypal:y5,paypalmount:v5,vcardactivenow:w5,vcardactiveer1:b5,vcardactiveer2:E5,vcardactiveer3:C5,vcardactiveer4:T5,vcardactiveer5:I5,activetarget:S5,activecode:O5,payfullname:N5,mobilenumber:R5,paystackaccount:D5,paymoneys:P5,ChargeNOW:M5,DoCharge:L5,StopNOW:k5,IamCharging:B5,PortDisabled:x5,StopKeyDown:F5,Clearme:V5,DeviceOffline:U5,InvalidChargerID:H5,Starting:W5,Stoping:j5},X5=Qv({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en",messages:{en:re({},iS),cn:re({},QS),fr:re({},G5)}}),no=uy(kT);no.use(X5);no.use(hI);no.use(Is,Db);no.axios.defaults.baseURL=fw;no.provide("axios",no.config.globalProperties.axios);no.mount("#app"); diff --git a/vuebuild/src/App.vue b/vuebuild/src/App.vue index 176a30f..d33d084 100644 --- a/vuebuild/src/App.vue +++ b/vuebuild/src/App.vue @@ -467,6 +467,10 @@ function onResult(data: any): void { } } } +function handleOnCanStop(): void { + contentId.value = 0 + refCamera.value?.onReset() +}