From 26691584fb8e2904950d27314eb3cdad6975c842 Mon Sep 17 00:00:00 2001 From: eelaix Date: Thu, 22 Feb 2024 20:18:35 +0800 Subject: [PATCH] ok --- docs/index.html | 4 ++-- vuebuild/src/App.vue | 50 +------------------------------------------- 2 files changed, 3 insertions(+), 51 deletions(-) diff --git a/docs/index.html b/docs/index.html index 21e0e1e..a669306 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=>{Z6.next(e)};AyobaObserver.onChangePresence=e=>{a0.next(e)};AyobaObserver.onChangeNickname=e=>{c0.next(e)};AyobaObserver.onChangeAvatar=e=>{l0.next(e)};AyobaObserver.onResponseGetCarrier=e=>{Q6.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"},y4={class:"xn-ama w-ama"},A4={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"},S4={class:"tinyst"},I4={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"},$4={class:"mypanel fs1"},Y4={class:"li2 fs2 mt-4"},q4={class:"li2 fs2 mt-4 mb-4"},K4={key:1},Z4={class:"nav nav-pills nav-fill mt-1"},Q4={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"},yT={for:"momoisdn"},AT={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"},ST={for:"vcarduid"},IT={class:"form-floating mb-3"},OT={for:"vcardcode"},NT=["disabled"],RT={class:"mb-3"},DT=["src"],PT=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=Kr("axios"),s=Kr("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=It("ChargeNOW"),f=It(localStorage.pfname),h=It(localStorage.preprepay?Number(localStorage.preprepay):pw),p=It(""),m=It(""),y=It(a("vcardactivenow")),b=It(0),A=It(-1),w=It(0),T=It(parseInt(localStorage.horid,10)||0),E=It(!1),I=It(!1),N=It(!0),D=It(!1),M=It(!1),j=Gr(["10","1","2","3","4","6","8","15"]),H=Gr(["Free","SwitchON","Charging","Disabled","StopDN","Offline","noID"]),tt=It(void 0),et=It(null);$o(()=>{e4(z=>{c.nickname=z}),n4(z=>{c.avatar=z}),t4(z=>sn(this,null,function*(){c.presence=z,c.msisdn=K6(),c.selfjid=o("jid")})),Wt()}),Ks(()=>{c.mytoken="",fh()});function st(){return OE()}function Et(){return["card","bank","ussd","mobile_money"]}function Ht(){var z;(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 $t(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 Kt(){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[A.value]!=g.data.sw[A.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[_])}}),A.value>-1&&Xt(A.value)),b.value<100?(t=!0,setTimeout(Wt,1e3)):t=!1)}else{if(c.avatar&&c.nickname&&c.presence){b.value==0&&A.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,5e3)}})}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"));A.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(),A.value==-1&&s.success("SELECT Free Socket First.")}function Zt(){I.value=!0}function ce(){I.value=!1}function Lt(z){T.value=parseInt(z.currentTarget.id,10),localStorage.horid=T.value,I.value=!1}function Ee(){return sn(this,null,function*(){if(M.value=!0,Number(p.value)+""!=p.value)y.value=a("vcardactiveer1"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&p.value.length!=4)y.value=a("vcardactiveer2"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==0&&p.value.length!=8)y.value=a("vcardactiveer3"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&m.value.length<4)y.value=a("vcardactiveer4"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&(m.value.indexOf("@")<2||m.value.indexOf(".")<4))y.value=a("vcardactiveer5"),setTimeout(()=>{M.value=!1,y.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:y.value=g.data.rm:y.value="unknown error"}})}function se(){return sn(this,null,function*(){N.value=!0,n=!0;let z="token="+c.mytoken+"&mac="+l.mac+"&portid="+A.value+"&hourid="+T.value;l.sw[A.value]==0?(u.value=a("Starting"),yield i.post("/dochargebk?tm="+new Date().getTime(),z),setTimeout(()=>{N.value=!1,n=!1},1e4)):r==A.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,(_=et.value)==null||_.onReset(),t||Wt())}}return(z,g)=>{const _=gs("vue3-notify");return wt(),Ot("div",o4,[w.value==0?(wt(),Ot("div",i4,[F("ul",s4,[F("li",a4,[F("img",{src:c.avatar?c.avatar:dn(yo)("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?(wt(),Ot("span",h4,[di("chargerID: "),F("span",null,ct(l.chargerid),1)])):(wt(),Ot("span",d4,""))]),F("li",{class:"nav-item text-end btn btn-sm my-auto",onClick:Ht},[F("img",{src:dn(yo)("scan54.png"),class:"avathead"},null,8,p4)])]),F("div",g4,[F("div",m4,[F("div",_4,[F("div",{class:ut(["pbox",A.value==0?"p1":"p0"]),id:"0",onClick:g[0]||(g[0]=C=>Mt(C))},[F("div",y4,[F("div",{class:ut(["xn-amb w-amb",A.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",A4,ct(z.$t(H[l.sw[0]])),1)])],2),F("div",{class:ut(["pbox",A.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",A.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",A.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",A.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",A.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",A.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",S4,ct(z.$t(H[l.sw[1]])),1)])],2),F("div",{class:ut(["pbox",A.value==5?"p1":"p0"]),id:"5",onClick:g[4]||(g[4]=C=>Mt(C))},[F("div",I4,[F("div",{class:ut(["xn-amb w-amb",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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:Zt},ct(z.$t("ChargeTIME"))+": "+ct(j[T.value])+ct(z.$t("hors")),1),c.mytoken&&c.mybalnum<10?(wt(),Ot("button",{key:0,class:"btn btn-warning w-100 mt-3",onClick:be},ct(z.$t("btn_prepay")),1)):Pe("",!0),c.mytoken&&c.mybalnum>=10?(wt(),Ot("button",{key:1,class:"btn btn-success w-100 mt-3",onClick:se,disabled:N.value},ct(u.value),9,X4)):Pe("",!0),I.value?(wt(),Ot("div",z4,[F("div",null,[F("div",$4,ct(z.$t("bkchargehours"))+" :",1),F("div",Y4,[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",q4,[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)])])])):Pe("",!0)])):Pe("",!0),w.value==1?(wt(),Ot("div",K4,[F("ul",Z4,[F("li",Q4,[F("img",{src:c.avatar?c.avatar:dn(yo)("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)]),ye(dn(SE),{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:$t,onCanel:Kt,currency:"GHS"},null,8,["buttonText","publicKey","amount","email","reference","channels"]),F("div",pT,[F("img",{src:dn(yo)("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",yT,ct(z.$t("mobilenumber")),1)]),F("div",AT,[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(yo)("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?(wt(),Ot("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",ST,ct(z.$t("activetarget")),1)])):Pe("",!0),F("div",IT,[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(y.value),9,NT),F("div",RT,[F("img",{src:dn(yo)("paystack-gh.png"),class:"w-100"},null,8,DT)])])])])):Pe("",!0),ye(_),b.value==0?(wt(),Ot("div",{key:2,class:"mask opacity",onTouchmove:g[18]||(g[18]=wd(()=>{},["prevent"]))}," ",32)):Pe("",!0),I.value?(wt(),Ot("div",{key:3,class:"mask opacity",onClick:ce}," ")):Pe("",!0),ye(dn(B6),{ref_key:"refCamera",ref:et,capture:"shoot","show-on-stream":"",onResult:X},null,512)])}}}),MT=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},LT=MT(PT,[["__scopeId","data-v-bc20d523"]]);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 Ss(e,t){if(!e.vueAxiosInstalled){var n=f0(t)?xT(t):t;if(FT(n)){var r=VT(e);if(r){var o=r<3?kT:BT;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 kT(e,t,n){Object.defineProperty(e.prototype,t,{get:function(){return n}}),e[t]=n}function BT(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 xT(e){return{axios:e,$http:e}}function FT(e){return Vs(e)==="object"&&Object.keys(e).every(function(t){return f0(e[t])})}function VT(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports=="undefined"?"undefined":Vs(exports))=="object"?module.exports=Ss:typeof define=="function"&&define.amd?define([],function(){return Ss}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(Ss,window.axios);var Po,Yn,UT=Object.defineProperty,HT=Object.defineProperties,WT=Object.getOwnPropertyDescriptors,hh=Object.getOwnPropertySymbols,jT=Object.prototype.hasOwnProperty,GT=Object.prototype.propertyIsEnumerable,rl=(e,t,n)=>t in e?UT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$r=(e,t,n)=>(rl(e,typeof t!="symbol"?t+"":t,n),n);(Yn=Po||(Po={})).leftTop="leftTop",Yn.leftCenter="leftCenter",Yn.leftBottom="leftBottom",Yn.rightTop="rightTop",Yn.rightCenter="rightCenter",Yn.rightBottom="rightBottom",Yn.centerTop="centerTop",Yn.centerCenter="centerCenter",Yn.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 XT=jn({props:["toast"],data:()=>({isPromptFocused:!1}),methods:{valueChanged(e){this.toast.value=e.target.value,this.toast.eventEmitter.emit("input")}}}),zT=["id"],$T=["for"],YT={class:"snotifyToast__input__labelContent"};var qT=Hs(XT,[["render",function(e,t,n,r,o,i){return wt(),Ot("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,zT),F("label",{class:"snotifyToast__input__label",for:e.toast.id},[F("span",YT,ct(e.toast.config.placeholder),1)],8,$T)],2)}]]);const KT=jn({props:["toast"],methods:{remove(){this.$snotify.remove(this.toast.id)}}}),ZT={class:"snotifyToast__buttons"},QT=["onClick"],JT=jn({components:{SnotifyPrompt:qT,SnotifyButton:Hs(KT,[["render",function(e,t,n,r,o,i){return wt(),Ot("div",ZT,[(wt(!0),Ot(Me,null,fc(e.toast.config.buttons,(s,a)=>(wt(),Ot("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,QT))),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")}}),tS={key:0,class:"snotifyToast__progressBar"},eS={key:0,class:"snotifyToast__title"},nS={key:1,class:"snotifyToast__body"},rS={key:4},oS=["src"],iS=["innerHTML"];var sS=Hs(jn({components:{Toast:Hs(JT,[["render",function(e,t,n,r,o,i){const s=gs("snotify-prompt"),a=gs("snotify-button");return wt(),Ot("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?(wt(),Ot("div",tS,[F("span",{class:"snotifyToast__progressBar__percentage",style:Oo({width:100*e.state.progress+"%"})},null,4)])):Pe("",!0),e.toast.config.html?(wt(),Ot("div",{key:2,class:"snotifyToast__inner",innerHTML:e.toast.config.html},null,8,iS)):(wt(),Ot("div",{key:1,class:ut(["snotifyToast__inner",{snotifyToast__noIcon:e.toast.config.icon===!1}])},[e.toast.title?(wt(),Ot("div",eS,ct(e.toastTitle),1)):Pe("",!0),e.toast.body?(wt(),Ot("div",nS,ct(e.toastBody),1)):Pe("",!0),e.toast.config.type===e.state.promptType?(wt(),Ei(s,{key:2,toast:e.toast},null,8,["toast"])):Pe("",!0),e.toast.config.icon===void 0?(wt(),Ot("div",{key:3,class:ut(["snotify-icon","snotify-icon--"+e.toast.config.type])},null,2)):e.toast.config.icon!==!1?(wt(),Ot("div",rS,[F("img",{class:"snotify-icon",src:e.toast.config.icon},null,8,oS)])):Pe("",!0)],2)),e.toast.config.buttons?(wt(),Ei(a,{key:3,toast:e.toast},null,8,["toast"])):Pe("",!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 wt(),Ot("div",null,[e.backdrop>=0?(wt(),Ot("div",{key:0,class:"snotify-backdrop",style:Oo({opacity:e.backdrop})},null,4)):Pe("",!0),(wt(!0),Ot(Me,null,fc(e.notifications,(a,c)=>(wt(),Ot("div",{class:ut(["snotify","snotify-"+c]),key:c},[(wt(!0),Ot(Me,null,fc(e.getNotificationsForPos(c),l=>(wt(),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 aS{constructor(t,n,r,o){$r(this,"eventEmitter",h0()),$r(this,"_eventsHolder",[]),$r(this,"value",""),$r(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 cS={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 yh(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(yh(n))for(const r in n)yh(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={}))jT.call(s,a)&&rl(i,a,s[a]);if(hh)for(var a of hh(s))GT.call(s,a)&&rl(i,a,s[a]);return i})({},r[0].config),HT(o,WT({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 lS=Object.defineProperty,uS=Object.getOwnPropertyDescriptor,Ur=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?uS(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&&lS(t,n,i),i};class ur{constructor(){$r(this,"emitter",h0()),$r(this,"notifications",[]),$r(this,"config",cS)}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 aS(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 fS={install:(e,t={})=>{const n=new ur;n.setDefaults(t),e.config.globalProperties.$snotify=n,e.component("vue3-notify",sS),e.provide("vue3-notify",n)}};const hS="EN",dS="Change Language To: ",pS="email address at register supply",gS="email address (5 chars or more)",mS="login password (6 chars or more)",_S="Save password (Never in public)",yS="Login NOW",AS="Register new user",vS="Help",wS="Userid too short !",bS="Password too short !",ES="Register NOW",CS="Repeat password",TS="User nickname",SS="nickname too short !",IS="Password diffrent when repeat !",OS="Account exists, plz Login",NS="email address needed",RS="Account Register OK !",DS="Back to Login",PS="Account Login",MS="Paystack Top Up",LS="Free",kS="SwitchON",BS="Charging",xS="Disabled",FS="StopDown",VS="Offline",US="noID",HS="Ready",WS="PayStack Account Full name: ",jS="MobilNumber",GS="Paystack ID: ",XS="Topup moneys: ",zS=" Top Up ",$S=" Log Out ",YS="ChargeTIME",qS="hors",KS="plz select charge hour(s).",ZS="ChargeNOW",QS="DoCharge",JS="StopNOW",tI="IamCharging",eI="Socket Disabled",nI="StopKey Down",rI="Clearme",oI="Device Offline",iI="Invalid ChargerID",sI="Starting",aI="Stoping",cI="Your full name",lI="Your paystack account ID",uI="Tempr",fI="Status",hI="Energy(kWh)",dI="Currency(Amp)",pI="LeftGun",gI="RightGun",mI="StartPrize",_I="GH/kWh",yI="Users",AI="Devices",vI="BK Devices",wI="EV Devices",bI="Dev Stores",EI="Fee Prepays",CI="Bills",TI="BK Bills",SI="EV Bills",II="More",OI="Setup",NI="SysLogs",RI="Usrlog",DI="Devlog",PI="Prev",MI="Next",LI="ALL",kI="Offline",BI="Online",xI="DataTime",FI="OfflineTime",VI="PowUse",UI="Dev",HI="Tempr",WI="STOP",jI="&OPEN",GI="LocalTime",XI="GNDError",zI="ON ",$I="OFF",YI="DIS",qI="UNKON",KI="LOWPW",ZI="WWDOG",QI="IWDOG",JI="RESET",t5="POWON",e5="MCUPN",n5="BWNOU",r5="STOPd",o5="EXITd",i5="REJET",s5="RPTER",a5="LTEER",c5="RESET",l5="SERVR",u5="BK",f5="AC",h5="DC",d5="Save",p5="OK",g5="Search",m5="History",_5="ACT",y5="BEP",A5="RBT",v5="Filter",w5="reConn",b5="#ChargerID",E5="Reboot",C5="Times",T5="= Function Buttons =",S5="EnergyUsed",I5="Net",O5="Pos",N5="Reason",R5="Guest",D5="VIP",P5="proxy",M5="Manager",L5="Black",k5="Cancel",B5="userid",x5="nickname",F5="Balce",V5="Gift",U5="RegTime",H5="active",W5="VistIP",j5="ChgTMS",G5="ReCh",X5="OffCurrent",z5="LeftEnergy",$5="RightEnergy",Y5="Switch",q5="User",K5="CurrState",Z5="ProtoVol",Q5="SysSTOP",J5="NoChgDev",tO="PlanSTOP",eO="plugOUT",nO="PowLimit",rO="FeeLimit",oO="HiVoLoss",iO="ChgOVER",sO="HiTempr",aO="userSTOP",cO="ChgFinish",lO="ChgOver",uO="GNDerr",fO="TimeLimit",hO="gunOUT",dO="gunSTOP",pO="FeeLimit",gO="PowHigh",mO="ChgOVER",_O="HiTempr",yO="userSTOP",AO="ChgFinish",vO="happen",wO="amount",bO="thisbalance",EO="Cash",CO="PayStack",TO="PayPal",SO="evbk",IO="happen",OO="uid/mac",NO="oper",RO="remoteip",DO="desc",PO="paystack",MO="vCard",LO="momo",kO="MoMo Top Up",BO="byPayPal",xO="paymount",FO="virtualCards",VO="vCard Active NOW",UO="Input Number plz",HO="4 digits number needed",WO="8 digits number needed",jO="Input user account plz",GO="invalid email address",XO="active user account",zO="Active Code Number: ",$O="Downloads",YO={languageto:hS,Change_Language_To:dS,login_uid:pS,login_uid2:gS,login_passwd:mS,login_save_pwd:_S,login_btn_now:yS,login_btn_register:AS,login_btn_help:vS,login_uid_too_short:wS,login_pas_too_short:bS,login_register_now:ES,login_repasswd:CS,login_nickname:TS,register_nickname_too_short:SS,registerpass_diff:IS,register_exists:OS,uid_invalidemail:NS,register_OK:RS,login_btn_login:DS,btn_login:PS,btn_prepay:MS,Free:LS,SwitchON:kS,Charging:BS,Disabled:xS,StopDN:FS,Offline:VS,noID:US,Ready:HS,"ChargerID:":"ChargerID: ",payfullname:WS,mobilenumber:jS,paystackaccount:GS,paymoneys:XS,topup:zS,logout:$S,ChargeTIME:YS,hors:qS,bkchargehours:KS,ChargeNOW:ZS,DoCharge:QS,StopNOW:JS,IamCharging:tI,PortDisabled:eI,StopKeyDown:nI,Clearme:rI,DeviceOffline:oI,InvalidChargerID:iI,Starting:sI,Stoping:aI,hpayfullname:cI,hpaystackaccount:lI,acTempture:uI,acState:fI,acPower:hI,acCurrency:dI,leftgun:pI,rightgun:gI,lowprize:mI,powerunit:_I,m_admusers:yI,m_admdevices:AI,m_admdevices0:vI,m_admdevices1:wI,m_admstores:bI,m_admprepays:EI,m_admchgpays:CI,m_admchgpays0:TI,m_admchgpays1:SI,m_admmore:II,m_admsetup:OI,m_admlogs:NI,logshuman:RI,logsdevice:DI,btn_prevpage:PI,btn_nextpage:MI,opt_all:LI,opt_ofline:kI,opt_online:BI,DataTime:xI,OffTime:FI,PowUse:VI,Dev:UI,Tempr:HI,"Vol&Cur":"Vol&Cur",STOP:WI,OPEN:jI,localtime:GI,gnderror:XI,swon:zI,swoff:$I,swdis:YI,ref0:qI,ref1:KI,ref2:ZI,ref3:QI,ref4:JI,ref5:t5,ref6:e5,ref7:n5,ref8:r5,ref9:o5,refa:i5,refb:s5,refc:a5,refd:c5,refe:l5,cbk0:u5,cbk1:f5,cbk2:h5,btn_save:d5,btn_ok:p5,btn_search:g5,btn_History:m5,btn_ACT:_5,btn_BEP:y5,btn_RBT:A5,btn_Filter:v5,reConn:w5,msto_th0:b5,msto_th1:E5,msto_th2:C5,msto_th3:T5,msto_th4:S5,msto_th5:I5,msto_th6:O5,msto_th7:N5,btn_ugst:R5,btn_uvip:D5,btn_prox:P5,btn_umgr:M5,btn_ublk:L5,btn_cancelpay:k5,usr_th0:B5,usr_th1:x5,usr_th2:F5,usr_th3:V5,usr_th4:U5,usr_th5:H5,usr_th6:W5,usr_th7:j5,usr_th8:G5,usr_th9:X5,LeftEnergy:z5,RightEnergy:$5,"Disabled(left)":"Disabled(left)","Disabled(right)":"Disabled(right)",Switch:Y5,User:q5,CurrState:K5,ProtoVol:Z5,bkResons0:Q5,bkResons1:J5,bkResons2:tO,bkResons3:eO,bkResons4:nO,bkResons5:rO,bkResons6:oO,bkResons7:iO,bkResons8:sO,bkResons9:aO,bkResonsa:cO,evResons0:lO,evResons1:uO,evResons2:fO,evResons3:hO,evResons4:dO,evResons5:pO,evResons6:gO,evResons7:mO,evResons8:_O,evResons9:yO,evResonsa:AO,prepay_happen:vO,prepay_amount:wO,prepay_thisbalance:bO,prepay_cash:EO,prepay_paystack:CO,prepay_paypal:TO,logs_evbk:SO,logs_happen:IO,logs_uidmac:OO,logs_oper:NO,logs_remoteip:RO,logs_desc:DO,tabpaystack:PO,tabvcard:MO,tabmomo:LO,lbmomopay:kO,tabpaypal:BO,paypalmount:xO,m_admvcards:FO,vcardactivenow:VO,vcardactiveer1:UO,vcardactiveer2:HO,vcardactiveer3:WO,vcardactiveer4:jO,vcardactiveer5:GO,activetarget:XO,activecode:zO,btn_vcard_download:$O},qO="Fr",KO="Change Language To: ",ZO="个人邮箱(注册时填写)",QO="个人邮箱(最少5字符)",JO="登陆密码,最少6位数字字母组合",t9="记住我(请勿在公共场合使用)",e9="立即登陆",n9="新用户注册",r9="帮助说明",o9="登陆用户名太短!",i9="登陆密码太短!",s9="提交注册",a9="重复密码",c9="账户昵称(最少3个字)",l9="用户昵称太短",u9="两次密码输入不一致",f9="账户已存在,请直接登陆",h9="请以电子邮件作为登陆账号",d9="账号注册成功,请登陆系统",p9="返回登陆",g9="账号登陆",m9="账户充值(Paystack)",_9="空闲中",y9="已通电",A9="正在充电",v9="已禁用",w9="急停中",b9="离线中",E9="未扫码",C9="已就绪",T9="用户全名:",S9="paystack账号:",I9="充值金额:",O9="你的真实全名",N9="充值手机号",R9=" 充值 ",D9=" 退出 ",P9="充电时长",M9="小时",L9="请选择充电时长",k9="启动充电",B9="开始充电",x9="立即停止",F9="我在充电中",V9="端口已禁用",U9="急停已按下",H9="清理我的会话",W9="设备已离线",j9="无效的电桩编号",G9="正在启动",X9="正在停止",z9="你在paystack上的账户ID",$9="温度",Y9="状态",q9="电表(度)",K9="电流(安)",Z9="左枪",Q9="右枪",J9="最低收费",t7="元/度",e7="用户管理",n7="设备管理",r7="单车桩管理",o7="汽车桩管理",i7="库存管理",s7="账户充值",a7="充电消费",c7="单车消费",l7="汽车消费",u7="更多",f7="设置",h7="系统日志",d7="用户日志",p7="设备日志",g7="上页",m7="下页",_7="全部",y7="离线",A7="在线",v7="数据时间",w7="离线时间",b7="电表电量",E7="设备",C7="温度",T7="急停",S7="开箱",I7="本地时间",O7="接地不良",N7="已通",R7="已断",D7="禁用",P7="未知情况",M7="供电超低",L7="软狗复位",k7="硬狗复位",B7="软件复位",x7="重新通电",F7="引脚复位",V7="供电异常",U7="快按急停",H7="程序退出",W7="下行中断",j7="上报被拒",G7="蜂窝设置",X7="恢复出厂",z7="后台重启",$7="单车",Y7="交流",q7="直流",K7="保存",Z7="确定",Q7="查找",J7="历史",tN="激活",eN="三响",nN="重启",rN="过滤",oN="重连",iN="#电桩编号",sN="重启时间",aN="次数",cN="==相关功能==",lN="当前电表读数",uN="网络",fN="端口",hN="原因",dN="访客",pN="贵宾",gN="代理",mN="管理",_N="黑户",yN="取消",AN="用户ID",vN="用户昵称",wN="余额",bN="赠送",EN="注册时间",CN="到访时间",TN="来访IP",SN="充电次数",IN="充值数",ON="断电电流",NN="左枪电量",RN="右枪电量",DN="开关",PN="客户",MN="电流状态",LN="协议电压",kN="不会发生",BN="未接设备",xN="到时停充",FN="插头拔出",VN="功率超限",UN="余额不足",HN="主线过细",WN="充电完成",jN="温度超限",GN="主动停止",XN="完成充电",zN="不会发生",$N="接地不良",YN="到时自停",qN="拔枪停充",KN="充电完成",ZN="余额不足",QN="功率超限",JN="充电完成",tR="高温超限",eR="主动停止",nR="完成充电",rR="充值日期",oR="充值金额",iR="本次余额",sR="现金支付",aR="PayStack",cR="PayPal",lR="汽单",uR="发生时间",fR="用户/设备",hR="操作",dR="IP",pR="日志描述",gR="paystack",mR="虚拟卡",_R="momo",yR="PayPal",AR="MoMo充值",vR="充值金额",wR="虚拟卡管理",bR="立即激活充值卡",ER="请输入数字",CR="需要4位数字",TR="需要8位数字",SR="请填写用户账号",IR="用户账号不是邮箱",OR="邮箱账号",NR="激活码",RR="下载",DR={languageto:qO,Change_Language_To:KO,login_uid:ZO,login_uid2:QO,login_passwd:JO,login_save_pwd:t9,login_btn_now:e9,login_btn_register:n9,login_btn_help:r9,login_uid_too_short:o9,login_pas_too_short:i9,login_register_now:s9,login_repasswd:a9,login_nickname:c9,register_nickname_too_short:l9,registerpass_diff:u9,register_exists:f9,uid_invalidemail:h9,register_OK:d9,login_btn_login:p9,btn_login:g9,btn_prepay:m9,Free:_9,SwitchON:y9,Charging:A9,Disabled:v9,StopDN:w9,Offline:b9,noID:E9,Ready:C9,"ChargerID:":"充电桩编号:",payfullname:T9,paystackaccount:S9,paymoneys:I9,hpayfullname:O9,mobilenumber:N9,topup:R9,logout:D9,ChargeTIME:P9,hors:M9,bkchargehours:L9,ChargeNOW:k9,DoCharge:B9,StopNOW:x9,IamCharging:F9,PortDisabled:V9,StopKeyDown:U9,Clearme:H9,DeviceOffline:W9,InvalidChargerID:j9,Starting:G9,Stoping:X9,hpaystackaccount:z9,acTempture:$9,acState:Y9,acPower:q9,acCurrency:K9,leftgun:Z9,rightgun:Q9,lowprize:J9,powerunit:t7,m_admusers:e7,m_admdevices:n7,m_admdevices0:r7,m_admdevices1:o7,m_admstores:i7,m_admprepays:s7,m_admchgpays:a7,m_admchgpays0:c7,m_admchgpays1:l7,m_admmore:u7,m_admsetup:f7,m_admlogs:h7,logshuman:d7,logsdevice:p7,btn_prevpage:g7,btn_nextpage:m7,opt_all:_7,opt_ofline:y7,opt_online:A7,DataTime:v7,OffTime:w7,PowUse:b7,Dev:E7,Tempr:C7,"Vol&Cur":"电压电流",STOP:T7,OPEN:S7,localtime:I7,gnderror:O7,swon:N7,swoff:R7,swdis:D7,ref0:P7,ref1:M7,ref2:L7,ref3:k7,ref4:B7,ref5:x7,ref6:F7,ref7:V7,ref8:U7,ref9:H7,refa:W7,refb:j7,refc:G7,refd:X7,refe:z7,cbk0:$7,cbk1:Y7,cbk2:q7,btn_save:K7,btn_ok:Z7,btn_search:Q7,btn_History:J7,btn_ACT:tN,btn_BEP:eN,btn_RBT:nN,btn_Filter:rN,reConn:oN,msto_th0:iN,msto_th1:sN,msto_th2:aN,msto_th3:cN,msto_th4:lN,msto_th5:uN,msto_th6:fN,msto_th7:hN,btn_ugst:dN,btn_uvip:pN,btn_prox:gN,btn_umgr:mN,btn_ublk:_N,btn_cancelpay:yN,usr_th0:AN,usr_th1:vN,usr_th2:wN,usr_th3:bN,usr_th4:EN,usr_th5:CN,usr_th6:TN,usr_th7:SN,usr_th8:IN,usr_th9:ON,LeftEnergy:NN,RightEnergy:RN,"Disabled(left)":"左枪停用","Disabled(right)":"右枪停用",Switch:DN,User:PN,CurrState:MN,ProtoVol:LN,bkResons0:kN,bkResons1:BN,bkResons2:xN,bkResons3:FN,bkResons4:VN,bkResons5:UN,bkResons6:HN,bkResons7:WN,bkResons8:jN,bkResons9:GN,bkResonsa:XN,evResons0:zN,evResons1:$N,evResons2:YN,evResons3:qN,evResons4:KN,evResons5:ZN,evResons6:QN,evResons7:JN,evResons8:tR,evResons9:eR,evResonsa:nR,prepay_happen:rR,prepay_amount:oR,prepay_thisbalance:iR,prepay_cash:sR,prepay_paystack:aR,prepay_paypal:cR,logs_evbk:lR,logs_happen:uR,logs_uidmac:fR,logs_oper:hR,logs_remoteip:dR,logs_desc:pR,tabpaystack:gR,tabvcard:mR,tabmomo:_R,tabpaypal:yR,lbmomopay:AR,paypalmount:vR,m_admvcards:wR,vcardactivenow:bR,vcardactiveer1:ER,vcardactiveer2:CR,vcardactiveer3:TR,vcardactiveer4:SR,vcardactiveer5:IR,activetarget:OR,activecode:NR,btn_vcard_download:RR},PR="中文",MR="切换语言至: ",LR="email address at register supply",kR="email address (5 chars or more)",BR="login password (6 chars or more)",xR="Save password (Never in public)",FR="Login NOW",VR="Register new user",UR="Help",HR="Userid too short !",WR="Password too short !",jR="Register NOW",GR="Repeat password",XR="User nickname",zR="nickname too short !",$R="Password diffrent when repeat !",YR="Account exists, plz Login",qR="email address needed",KR="Account Register OK !",ZR="Back to Login",QR="Account Login",JR="Account Top Up",tD="Free",eD="SwitchON",nD="Charging",rD="Disabled",oD="StopDown",iD="Offline",sD="noID",aD="Ready",cD="Full name: ",lD="MobilNumber",uD="Paystack ID: ",fD="Charge moneys: ",hD=" Top Up ",dD=" Log Out ",pD="ChargeTIME",gD="hors",mD="plz select charge hour(s).",_D="ChargeNOW",yD="DoCharge",AD="StopNOW",vD="IamCharging",wD="Socket Disabled",bD="StopKey Down",ED="Clearme",CD="Device Offline",TD="Invalid ChargerID",SD="Starting",ID="Stoping",OD="Your full name",ND="Your paystack account ID",RD="Tempr",DD="Status",PD="Energy(kWh)",MD="Currency(Amp)",LD="LeftGun",kD="RightGun",BD="StartPrize",xD="GH/kWh",FD="Users",VD="Devices",UD="BK Devices",HD="EV Devices",WD="Dev Stores",jD="Fee Prepays",GD="Bills",XD="BK Bills",zD="EV Bills",$D="More",YD="Setup",qD="SysLogs",KD="Usrlog",ZD="Devlog",QD="Prev",JD="Next",tP="ALL",eP="Offline",nP="Online",rP="DataTime",oP="OfflineTime",iP="PowUse",sP="Dev",aP="Tempr",cP="STOP",lP="&OPEN",uP="LocalTime",fP="GNDError",hP="ON ",dP="OFF",pP="DIS",gP="UNKON",mP="LOWPW",_P="WWDOG",yP="IWDOG",AP="RESET",vP="POWON",wP="MCUPN",bP="BWNOU",EP="STOPd",CP="EXITd",TP="REJET",SP="RPTER",IP="LTEER",OP="RESET",NP="SERVR",RP="BK",DP="AC",PP="DC",MP="Save",LP="OK",kP="Search",BP="History",xP="ACT",FP="BEP",VP="RBT",UP="Filter",HP="reConn",WP="#ChargerID",jP="Reboot",GP="Times",XP="= Function Buttons =",zP="EnergyUsed",$P="Net",YP="Pos",qP="Reason",KP="Guest",ZP="VIP",QP="proxy",JP="Manager",tM="Black",eM="Cancel",nM="userid",rM="nickname",oM="Balce",iM="Gift",sM="RegTime",aM="active",cM="VistIP",lM="ChgTMS",uM="ReCh",fM="OffCurrent",hM="LeftEnergy",dM="RightEnergy",pM="Switch",gM="User",mM="CurrState",_M="ProtoVol",yM="SysSTOP",AM="NoChgDev",vM="PlanSTOP",wM="plugOUT",bM="PowLimit",EM="FeeLimit",CM="HiVoLoss",TM="ChgOVER",SM="HiTempr",IM="userSTOP",OM="ChgFinish",NM="ChgOver",RM="GNDerr",DM="TimeLimit",PM="gunOUT",MM="gunSTOP",LM="FeeLimit",kM="PowHigh",BM="ChgOVER",xM="HiTempr",FM="userSTOP",VM="ChgFinish",UM="happen",HM="amount",WM="thisbalance",jM="Cash",GM="PayStack",XM="PayPal",zM="evbk",$M="happen",YM="uid/mac",qM="oper",KM="remoteip",ZM="desc",QM="paystack",JM="vCard",tL="momo",eL="MoMo TopUp",nL="byPayPal",rL="paymount",oL="virtualCards",iL="Active NOW",sL="Input Number plz",aL="4 digits number needed",cL="8 digits number needed",lL="Input user account plz",uL="invalid email address",fL="active user account",hL="active code",dL="Downloads",pL={languageto:PR,Change_Language_To:MR,login_uid:LR,login_uid2:kR,login_passwd:BR,login_save_pwd:xR,login_btn_now:FR,login_btn_register:VR,login_btn_help:UR,login_uid_too_short:HR,login_pas_too_short:WR,login_register_now:jR,login_repasswd:GR,login_nickname:XR,register_nickname_too_short:zR,registerpass_diff:$R,register_exists:YR,uid_invalidemail:qR,register_OK:KR,login_btn_login:ZR,btn_login:QR,btn_prepay:JR,Free:tD,SwitchON:eD,Charging:nD,Disabled:rD,StopDN:oD,Offline:iD,noID:sD,Ready:aD,"ChargerID:":"ChargerID: ",payfullname:cD,mobilenumber:lD,paystackaccount:uD,paymoneys:fD,topup:hD,logout:dD,ChargeTIME:pD,hors:gD,bkchargehours:mD,ChargeNOW:_D,DoCharge:yD,StopNOW:AD,IamCharging:vD,PortDisabled:wD,StopKeyDown:bD,Clearme:ED,DeviceOffline:CD,InvalidChargerID:TD,Starting:SD,Stoping:ID,hpayfullname:OD,hpaystackaccount:ND,acTempture:RD,acState:DD,acPower:PD,acCurrency:MD,leftgun:LD,rightgun:kD,lowprize:BD,powerunit:xD,m_admusers:FD,m_admdevices:VD,m_admdevices0:UD,m_admdevices1:HD,m_admstores:WD,m_admprepays:jD,m_admchgpays:GD,m_admchgpays0:XD,m_admchgpays1:zD,m_admmore:$D,m_admsetup:YD,m_admlogs:qD,logshuman:KD,logsdevice:ZD,btn_prevpage:QD,btn_nextpage:JD,opt_all:tP,opt_ofline:eP,opt_online:nP,DataTime:rP,OffTime:oP,PowUse:iP,Dev:sP,Tempr:aP,"Vol&Cur":"Vol&Cur",STOP:cP,OPEN:lP,localtime:uP,gnderror:fP,swon:hP,swoff:dP,swdis:pP,ref0:gP,ref1:mP,ref2:_P,ref3:yP,ref4:AP,ref5:vP,ref6:wP,ref7:bP,ref8:EP,ref9:CP,refa:TP,refb:SP,refc:IP,refd:OP,refe:NP,cbk0:RP,cbk1:DP,cbk2:PP,btn_save:MP,btn_ok:LP,btn_search:kP,btn_History:BP,btn_ACT:xP,btn_BEP:FP,btn_RBT:VP,btn_Filter:UP,reConn:HP,msto_th0:WP,msto_th1:jP,msto_th2:GP,msto_th3:XP,msto_th4:zP,msto_th5:$P,msto_th6:YP,msto_th7:qP,btn_ugst:KP,btn_uvip:ZP,btn_prox:QP,btn_umgr:JP,btn_ublk:tM,btn_cancelpay:eM,usr_th0:nM,usr_th1:rM,usr_th2:oM,usr_th3:iM,usr_th4:sM,usr_th5:aM,usr_th6:cM,usr_th7:lM,usr_th8:uM,usr_th9:fM,LeftEnergy:hM,RightEnergy:dM,"Disabled(left)":"Disabled(left)","Disabled(right)":"Disabled(right)",Switch:pM,User:gM,CurrState:mM,ProtoVol:_M,bkResons0:yM,bkResons1:AM,bkResons2:vM,bkResons3:wM,bkResons4:bM,bkResons5:EM,bkResons6:CM,bkResons7:TM,bkResons8:SM,bkResons9:IM,bkResonsa:OM,evResons0:NM,evResons1:RM,evResons2:DM,evResons3:PM,evResons4:MM,evResons5:LM,evResons6:kM,evResons7:BM,evResons8:xM,evResons9:FM,evResonsa:VM,prepay_happen:UM,prepay_amount:HM,prepay_thisbalance:WM,prepay_cash:jM,prepay_paystack:GM,prepay_paypal:XM,logs_evbk:zM,logs_happen:$M,logs_uidmac:YM,logs_oper:qM,logs_remoteip:KM,logs_desc:ZM,tabpaystack:QM,tabvcard:JM,tabmomo:tL,lbmomopay:eL,tabpaypal:nL,paypalmount:rL,m_admvcards:oL,vcardactivenow:iL,vcardactiveer1:sL,vcardactiveer2:aL,vcardactiveer3:cL,vcardactiveer4:lL,vcardactiveer5:uL,activetarget:fL,activecode:hL,btn_vcard_download:dL},gL=Zv({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en",messages:{en:re({},YO),cn:re({},DR),fr:re({},pL)}}),no=uA(LT);no.use(gL);no.use(fS);no.use(Ss,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=>{Z6.next(e)};AyobaObserver.onChangePresence=e=>{a0.next(e)};AyobaObserver.onChangeNickname=e=>{c0.next(e)};AyobaObserver.onChangeAvatar=e=>{l0.next(e)};AyobaObserver.onResponseGetCarrier=e=>{Q6.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"},y4={class:"xn-ama w-ama"},A4={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"},S4={class:"tinyst"},I4={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"},$4={class:"mypanel fs1"},Y4={class:"li2 fs2 mt-4"},q4={class:"li2 fs2 mt-4 mb-4"},K4={key:1},Z4={class:"nav nav-pills nav-fill mt-1"},Q4={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"},yT={for:"momoisdn"},AT={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"},ST={for:"vcarduid"},IT={class:"form-floating mb-3"},OT={for:"vcardcode"},NT=["disabled"],RT={class:"mb-3"},DT=["src"],PT=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=Kr("axios"),s=Kr("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=It("ChargeNOW"),f=It(localStorage.pfname),h=It(localStorage.preprepay?Number(localStorage.preprepay):pw),p=It(""),m=It(""),y=It(a("vcardactivenow")),b=It(0),A=It(-1),w=It(0),T=It(parseInt(localStorage.horid,10)||0),E=It(!1),I=It(!1),N=It(!0),D=It(!1),M=It(!1),j=Gr(["10","1","2","3","4","6","8","15"]),H=Gr(["Free","SwitchON","Charging","Disabled","StopDN","Offline","noID"]),tt=It(void 0),et=It(null);$o(()=>{e4(z=>{c.nickname=z}),n4(z=>{c.avatar=z}),t4(z=>sn(this,null,function*(){c.presence=z,c.msisdn=K6(),c.selfjid=o("jid")})),Wt()}),Ks(()=>{c.mytoken="",fh()});function st(){return OE()}function Et(){return["card","bank","ussd","mobile_money"]}function Ht(){var z;(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 $t(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 Kt(){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[A.value]!=g.data.sw[A.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[_])}}),A.value>-1&&Xt(A.value)),b.value<100?(t=!0,setTimeout(Wt,1e3)):t=!1)}else{if(c.avatar&&c.nickname&&c.presence){b.value==0&&A.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"));A.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(),A.value==-1&&s.success("SELECT Free Socket First.")}function Zt(){I.value=!0}function ce(){I.value=!1}function Lt(z){T.value=parseInt(z.currentTarget.id,10),localStorage.horid=T.value,I.value=!1}function Ee(){return sn(this,null,function*(){if(M.value=!0,Number(p.value)+""!=p.value)y.value=a("vcardactiveer1"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&p.value.length!=4)y.value=a("vcardactiveer2"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==0&&p.value.length!=8)y.value=a("vcardactiveer3"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&m.value.length<4)y.value=a("vcardactiveer4"),setTimeout(()=>{M.value=!1,y.value=a("vcardactivenow")},5e3);else if(c.isagent==1&&(m.value.indexOf("@")<2||m.value.indexOf(".")<4))y.value=a("vcardactiveer5"),setTimeout(()=>{M.value=!1,y.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:y.value=g.data.rm:y.value="unknown error"}})}function se(){return sn(this,null,function*(){N.value=!0,n=!0;let z="token="+c.mytoken+"&mac="+l.mac+"&portid="+A.value+"&hourid="+T.value;l.sw[A.value]==0?(u.value=a("Starting"),yield i.post("/dochargebk?tm="+new Date().getTime(),z),setTimeout(()=>{N.value=!1,n=!1},1e4)):r==A.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,(_=et.value)==null||_.onReset(),t||Wt())}}return(z,g)=>{const _=gs("vue3-notify");return wt(),Ot("div",o4,[w.value==0?(wt(),Ot("div",i4,[F("ul",s4,[F("li",a4,[F("img",{src:c.avatar?c.avatar:dn(yo)("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?(wt(),Ot("span",h4,[di("chargerID: "),F("span",null,ct(l.chargerid),1)])):(wt(),Ot("span",d4,""))]),F("li",{class:"nav-item text-end btn btn-sm my-auto",onClick:Ht},[F("img",{src:dn(yo)("scan54.png"),class:"avathead"},null,8,p4)])]),F("div",g4,[F("div",m4,[F("div",_4,[F("div",{class:ut(["pbox",A.value==0?"p1":"p0"]),id:"0",onClick:g[0]||(g[0]=C=>Mt(C))},[F("div",y4,[F("div",{class:ut(["xn-amb w-amb",A.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",A4,ct(z.$t(H[l.sw[0]])),1)])],2),F("div",{class:ut(["pbox",A.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",A.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",A.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",A.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",A.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",A.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",S4,ct(z.$t(H[l.sw[1]])),1)])],2),F("div",{class:ut(["pbox",A.value==5?"p1":"p0"]),id:"5",onClick:g[4]||(g[4]=C=>Mt(C))},[F("div",I4,[F("div",{class:ut(["xn-amb w-amb",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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",A.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:Zt},ct(z.$t("ChargeTIME"))+": "+ct(j[T.value])+ct(z.$t("hors")),1),c.mytoken&&c.mybalnum<10?(wt(),Ot("button",{key:0,class:"btn btn-warning w-100 mt-3",onClick:be},ct(z.$t("btn_prepay")),1)):Pe("",!0),c.mytoken&&c.mybalnum>=10?(wt(),Ot("button",{key:1,class:"btn btn-success w-100 mt-3",onClick:se,disabled:N.value},ct(u.value),9,X4)):Pe("",!0),I.value?(wt(),Ot("div",z4,[F("div",null,[F("div",$4,ct(z.$t("bkchargehours"))+" :",1),F("div",Y4,[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",q4,[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)])])])):Pe("",!0)])):Pe("",!0),w.value==1?(wt(),Ot("div",K4,[F("ul",Z4,[F("li",Q4,[F("img",{src:c.avatar?c.avatar:dn(yo)("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)]),ye(dn(SE),{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:$t,onCanel:Kt,currency:"GHS"},null,8,["buttonText","publicKey","amount","email","reference","channels"]),F("div",pT,[F("img",{src:dn(yo)("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",yT,ct(z.$t("mobilenumber")),1)]),F("div",AT,[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(yo)("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?(wt(),Ot("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",ST,ct(z.$t("activetarget")),1)])):Pe("",!0),F("div",IT,[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(y.value),9,NT),F("div",RT,[F("img",{src:dn(yo)("paystack-gh.png"),class:"w-100"},null,8,DT)])])])])):Pe("",!0),ye(_),b.value==0?(wt(),Ot("div",{key:2,class:"mask opacity",onTouchmove:g[18]||(g[18]=wd(()=>{},["prevent"]))}," ",32)):Pe("",!0),I.value?(wt(),Ot("div",{key:3,class:"mask opacity",onClick:ce}," ")):Pe("",!0),ye(dn(B6),{ref_key:"refCamera",ref:et,capture:"shoot","show-on-stream":"",onResult:X},null,512)])}}}),MT=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},LT=MT(PT,[["__scopeId","data-v-f752dda8"]]);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 Ss(e,t){if(!e.vueAxiosInstalled){var n=f0(t)?xT(t):t;if(FT(n)){var r=VT(e);if(r){var o=r<3?kT:BT;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 kT(e,t,n){Object.defineProperty(e.prototype,t,{get:function(){return n}}),e[t]=n}function BT(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 xT(e){return{axios:e,$http:e}}function FT(e){return Vs(e)==="object"&&Object.keys(e).every(function(t){return f0(e[t])})}function VT(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports=="undefined"?"undefined":Vs(exports))=="object"?module.exports=Ss:typeof define=="function"&&define.amd?define([],function(){return Ss}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(Ss,window.axios);var Po,Yn,UT=Object.defineProperty,HT=Object.defineProperties,WT=Object.getOwnPropertyDescriptors,hh=Object.getOwnPropertySymbols,jT=Object.prototype.hasOwnProperty,GT=Object.prototype.propertyIsEnumerable,rl=(e,t,n)=>t in e?UT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$r=(e,t,n)=>(rl(e,typeof t!="symbol"?t+"":t,n),n);(Yn=Po||(Po={})).leftTop="leftTop",Yn.leftCenter="leftCenter",Yn.leftBottom="leftBottom",Yn.rightTop="rightTop",Yn.rightCenter="rightCenter",Yn.rightBottom="rightBottom",Yn.centerTop="centerTop",Yn.centerCenter="centerCenter",Yn.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 XT=jn({props:["toast"],data:()=>({isPromptFocused:!1}),methods:{valueChanged(e){this.toast.value=e.target.value,this.toast.eventEmitter.emit("input")}}}),zT=["id"],$T=["for"],YT={class:"snotifyToast__input__labelContent"};var qT=Hs(XT,[["render",function(e,t,n,r,o,i){return wt(),Ot("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,zT),F("label",{class:"snotifyToast__input__label",for:e.toast.id},[F("span",YT,ct(e.toast.config.placeholder),1)],8,$T)],2)}]]);const KT=jn({props:["toast"],methods:{remove(){this.$snotify.remove(this.toast.id)}}}),ZT={class:"snotifyToast__buttons"},QT=["onClick"],JT=jn({components:{SnotifyPrompt:qT,SnotifyButton:Hs(KT,[["render",function(e,t,n,r,o,i){return wt(),Ot("div",ZT,[(wt(!0),Ot(Me,null,fc(e.toast.config.buttons,(s,a)=>(wt(),Ot("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,QT))),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")}}),tS={key:0,class:"snotifyToast__progressBar"},eS={key:0,class:"snotifyToast__title"},nS={key:1,class:"snotifyToast__body"},rS={key:4},oS=["src"],iS=["innerHTML"];var sS=Hs(jn({components:{Toast:Hs(JT,[["render",function(e,t,n,r,o,i){const s=gs("snotify-prompt"),a=gs("snotify-button");return wt(),Ot("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?(wt(),Ot("div",tS,[F("span",{class:"snotifyToast__progressBar__percentage",style:Oo({width:100*e.state.progress+"%"})},null,4)])):Pe("",!0),e.toast.config.html?(wt(),Ot("div",{key:2,class:"snotifyToast__inner",innerHTML:e.toast.config.html},null,8,iS)):(wt(),Ot("div",{key:1,class:ut(["snotifyToast__inner",{snotifyToast__noIcon:e.toast.config.icon===!1}])},[e.toast.title?(wt(),Ot("div",eS,ct(e.toastTitle),1)):Pe("",!0),e.toast.body?(wt(),Ot("div",nS,ct(e.toastBody),1)):Pe("",!0),e.toast.config.type===e.state.promptType?(wt(),Ei(s,{key:2,toast:e.toast},null,8,["toast"])):Pe("",!0),e.toast.config.icon===void 0?(wt(),Ot("div",{key:3,class:ut(["snotify-icon","snotify-icon--"+e.toast.config.type])},null,2)):e.toast.config.icon!==!1?(wt(),Ot("div",rS,[F("img",{class:"snotify-icon",src:e.toast.config.icon},null,8,oS)])):Pe("",!0)],2)),e.toast.config.buttons?(wt(),Ei(a,{key:3,toast:e.toast},null,8,["toast"])):Pe("",!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 wt(),Ot("div",null,[e.backdrop>=0?(wt(),Ot("div",{key:0,class:"snotify-backdrop",style:Oo({opacity:e.backdrop})},null,4)):Pe("",!0),(wt(!0),Ot(Me,null,fc(e.notifications,(a,c)=>(wt(),Ot("div",{class:ut(["snotify","snotify-"+c]),key:c},[(wt(!0),Ot(Me,null,fc(e.getNotificationsForPos(c),l=>(wt(),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 aS{constructor(t,n,r,o){$r(this,"eventEmitter",h0()),$r(this,"_eventsHolder",[]),$r(this,"value",""),$r(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 cS={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 yh(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(yh(n))for(const r in n)yh(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={}))jT.call(s,a)&&rl(i,a,s[a]);if(hh)for(var a of hh(s))GT.call(s,a)&&rl(i,a,s[a]);return i})({},r[0].config),HT(o,WT({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 lS=Object.defineProperty,uS=Object.getOwnPropertyDescriptor,Ur=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?uS(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&&lS(t,n,i),i};class ur{constructor(){$r(this,"emitter",h0()),$r(this,"notifications",[]),$r(this,"config",cS)}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 aS(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 fS={install:(e,t={})=>{const n=new ur;n.setDefaults(t),e.config.globalProperties.$snotify=n,e.component("vue3-notify",sS),e.provide("vue3-notify",n)}};const hS="EN",dS="Change Language To: ",pS="email address at register supply",gS="email address (5 chars or more)",mS="login password (6 chars or more)",_S="Save password (Never in public)",yS="Login NOW",AS="Register new user",vS="Help",wS="Userid too short !",bS="Password too short !",ES="Register NOW",CS="Repeat password",TS="User nickname",SS="nickname too short !",IS="Password diffrent when repeat !",OS="Account exists, plz Login",NS="email address needed",RS="Account Register OK !",DS="Back to Login",PS="Account Login",MS="Paystack Top Up",LS="Free",kS="SwitchON",BS="Charging",xS="Disabled",FS="StopDown",VS="Offline",US="noID",HS="Ready",WS="PayStack Account Full name: ",jS="MobilNumber",GS="Paystack ID: ",XS="Topup moneys: ",zS=" Top Up ",$S=" Log Out ",YS="ChargeTIME",qS="hors",KS="plz select charge hour(s).",ZS="ChargeNOW",QS="DoCharge",JS="StopNOW",tI="IamCharging",eI="Socket Disabled",nI="StopKey Down",rI="Clearme",oI="Device Offline",iI="Invalid ChargerID",sI="Starting",aI="Stoping",cI="Your full name",lI="Your paystack account ID",uI="Tempr",fI="Status",hI="Energy(kWh)",dI="Currency(Amp)",pI="LeftGun",gI="RightGun",mI="StartPrize",_I="GH/kWh",yI="Users",AI="Devices",vI="BK Devices",wI="EV Devices",bI="Dev Stores",EI="Fee Prepays",CI="Bills",TI="BK Bills",SI="EV Bills",II="More",OI="Setup",NI="SysLogs",RI="Usrlog",DI="Devlog",PI="Prev",MI="Next",LI="ALL",kI="Offline",BI="Online",xI="DataTime",FI="OfflineTime",VI="PowUse",UI="Dev",HI="Tempr",WI="STOP",jI="&OPEN",GI="LocalTime",XI="GNDError",zI="ON ",$I="OFF",YI="DIS",qI="UNKON",KI="LOWPW",ZI="WWDOG",QI="IWDOG",JI="RESET",t5="POWON",e5="MCUPN",n5="BWNOU",r5="STOPd",o5="EXITd",i5="REJET",s5="RPTER",a5="LTEER",c5="RESET",l5="SERVR",u5="BK",f5="AC",h5="DC",d5="Save",p5="OK",g5="Search",m5="History",_5="ACT",y5="BEP",A5="RBT",v5="Filter",w5="reConn",b5="#ChargerID",E5="Reboot",C5="Times",T5="= Function Buttons =",S5="EnergyUsed",I5="Net",O5="Pos",N5="Reason",R5="Guest",D5="VIP",P5="proxy",M5="Manager",L5="Black",k5="Cancel",B5="userid",x5="nickname",F5="Balce",V5="Gift",U5="RegTime",H5="active",W5="VistIP",j5="ChgTMS",G5="ReCh",X5="OffCurrent",z5="LeftEnergy",$5="RightEnergy",Y5="Switch",q5="User",K5="CurrState",Z5="ProtoVol",Q5="SysSTOP",J5="NoChgDev",tO="PlanSTOP",eO="plugOUT",nO="PowLimit",rO="FeeLimit",oO="HiVoLoss",iO="ChgOVER",sO="HiTempr",aO="userSTOP",cO="ChgFinish",lO="ChgOver",uO="GNDerr",fO="TimeLimit",hO="gunOUT",dO="gunSTOP",pO="FeeLimit",gO="PowHigh",mO="ChgOVER",_O="HiTempr",yO="userSTOP",AO="ChgFinish",vO="happen",wO="amount",bO="thisbalance",EO="Cash",CO="PayStack",TO="PayPal",SO="evbk",IO="happen",OO="uid/mac",NO="oper",RO="remoteip",DO="desc",PO="paystack",MO="vCard",LO="momo",kO="MoMo Top Up",BO="byPayPal",xO="paymount",FO="virtualCards",VO="vCard Active NOW",UO="Input Number plz",HO="4 digits number needed",WO="8 digits number needed",jO="Input user account plz",GO="invalid email address",XO="active user account",zO="Active Code Number: ",$O="Downloads",YO={languageto:hS,Change_Language_To:dS,login_uid:pS,login_uid2:gS,login_passwd:mS,login_save_pwd:_S,login_btn_now:yS,login_btn_register:AS,login_btn_help:vS,login_uid_too_short:wS,login_pas_too_short:bS,login_register_now:ES,login_repasswd:CS,login_nickname:TS,register_nickname_too_short:SS,registerpass_diff:IS,register_exists:OS,uid_invalidemail:NS,register_OK:RS,login_btn_login:DS,btn_login:PS,btn_prepay:MS,Free:LS,SwitchON:kS,Charging:BS,Disabled:xS,StopDN:FS,Offline:VS,noID:US,Ready:HS,"ChargerID:":"ChargerID: ",payfullname:WS,mobilenumber:jS,paystackaccount:GS,paymoneys:XS,topup:zS,logout:$S,ChargeTIME:YS,hors:qS,bkchargehours:KS,ChargeNOW:ZS,DoCharge:QS,StopNOW:JS,IamCharging:tI,PortDisabled:eI,StopKeyDown:nI,Clearme:rI,DeviceOffline:oI,InvalidChargerID:iI,Starting:sI,Stoping:aI,hpayfullname:cI,hpaystackaccount:lI,acTempture:uI,acState:fI,acPower:hI,acCurrency:dI,leftgun:pI,rightgun:gI,lowprize:mI,powerunit:_I,m_admusers:yI,m_admdevices:AI,m_admdevices0:vI,m_admdevices1:wI,m_admstores:bI,m_admprepays:EI,m_admchgpays:CI,m_admchgpays0:TI,m_admchgpays1:SI,m_admmore:II,m_admsetup:OI,m_admlogs:NI,logshuman:RI,logsdevice:DI,btn_prevpage:PI,btn_nextpage:MI,opt_all:LI,opt_ofline:kI,opt_online:BI,DataTime:xI,OffTime:FI,PowUse:VI,Dev:UI,Tempr:HI,"Vol&Cur":"Vol&Cur",STOP:WI,OPEN:jI,localtime:GI,gnderror:XI,swon:zI,swoff:$I,swdis:YI,ref0:qI,ref1:KI,ref2:ZI,ref3:QI,ref4:JI,ref5:t5,ref6:e5,ref7:n5,ref8:r5,ref9:o5,refa:i5,refb:s5,refc:a5,refd:c5,refe:l5,cbk0:u5,cbk1:f5,cbk2:h5,btn_save:d5,btn_ok:p5,btn_search:g5,btn_History:m5,btn_ACT:_5,btn_BEP:y5,btn_RBT:A5,btn_Filter:v5,reConn:w5,msto_th0:b5,msto_th1:E5,msto_th2:C5,msto_th3:T5,msto_th4:S5,msto_th5:I5,msto_th6:O5,msto_th7:N5,btn_ugst:R5,btn_uvip:D5,btn_prox:P5,btn_umgr:M5,btn_ublk:L5,btn_cancelpay:k5,usr_th0:B5,usr_th1:x5,usr_th2:F5,usr_th3:V5,usr_th4:U5,usr_th5:H5,usr_th6:W5,usr_th7:j5,usr_th8:G5,usr_th9:X5,LeftEnergy:z5,RightEnergy:$5,"Disabled(left)":"Disabled(left)","Disabled(right)":"Disabled(right)",Switch:Y5,User:q5,CurrState:K5,ProtoVol:Z5,bkResons0:Q5,bkResons1:J5,bkResons2:tO,bkResons3:eO,bkResons4:nO,bkResons5:rO,bkResons6:oO,bkResons7:iO,bkResons8:sO,bkResons9:aO,bkResonsa:cO,evResons0:lO,evResons1:uO,evResons2:fO,evResons3:hO,evResons4:dO,evResons5:pO,evResons6:gO,evResons7:mO,evResons8:_O,evResons9:yO,evResonsa:AO,prepay_happen:vO,prepay_amount:wO,prepay_thisbalance:bO,prepay_cash:EO,prepay_paystack:CO,prepay_paypal:TO,logs_evbk:SO,logs_happen:IO,logs_uidmac:OO,logs_oper:NO,logs_remoteip:RO,logs_desc:DO,tabpaystack:PO,tabvcard:MO,tabmomo:LO,lbmomopay:kO,tabpaypal:BO,paypalmount:xO,m_admvcards:FO,vcardactivenow:VO,vcardactiveer1:UO,vcardactiveer2:HO,vcardactiveer3:WO,vcardactiveer4:jO,vcardactiveer5:GO,activetarget:XO,activecode:zO,btn_vcard_download:$O},qO="Fr",KO="Change Language To: ",ZO="个人邮箱(注册时填写)",QO="个人邮箱(最少5字符)",JO="登陆密码,最少6位数字字母组合",t9="记住我(请勿在公共场合使用)",e9="立即登陆",n9="新用户注册",r9="帮助说明",o9="登陆用户名太短!",i9="登陆密码太短!",s9="提交注册",a9="重复密码",c9="账户昵称(最少3个字)",l9="用户昵称太短",u9="两次密码输入不一致",f9="账户已存在,请直接登陆",h9="请以电子邮件作为登陆账号",d9="账号注册成功,请登陆系统",p9="返回登陆",g9="账号登陆",m9="账户充值(Paystack)",_9="空闲中",y9="已通电",A9="正在充电",v9="已禁用",w9="急停中",b9="离线中",E9="未扫码",C9="已就绪",T9="用户全名:",S9="paystack账号:",I9="充值金额:",O9="你的真实全名",N9="充值手机号",R9=" 充值 ",D9=" 退出 ",P9="充电时长",M9="小时",L9="请选择充电时长",k9="启动充电",B9="开始充电",x9="立即停止",F9="我在充电中",V9="端口已禁用",U9="急停已按下",H9="清理我的会话",W9="设备已离线",j9="无效的电桩编号",G9="正在启动",X9="正在停止",z9="你在paystack上的账户ID",$9="温度",Y9="状态",q9="电表(度)",K9="电流(安)",Z9="左枪",Q9="右枪",J9="最低收费",t7="元/度",e7="用户管理",n7="设备管理",r7="单车桩管理",o7="汽车桩管理",i7="库存管理",s7="账户充值",a7="充电消费",c7="单车消费",l7="汽车消费",u7="更多",f7="设置",h7="系统日志",d7="用户日志",p7="设备日志",g7="上页",m7="下页",_7="全部",y7="离线",A7="在线",v7="数据时间",w7="离线时间",b7="电表电量",E7="设备",C7="温度",T7="急停",S7="开箱",I7="本地时间",O7="接地不良",N7="已通",R7="已断",D7="禁用",P7="未知情况",M7="供电超低",L7="软狗复位",k7="硬狗复位",B7="软件复位",x7="重新通电",F7="引脚复位",V7="供电异常",U7="快按急停",H7="程序退出",W7="下行中断",j7="上报被拒",G7="蜂窝设置",X7="恢复出厂",z7="后台重启",$7="单车",Y7="交流",q7="直流",K7="保存",Z7="确定",Q7="查找",J7="历史",tN="激活",eN="三响",nN="重启",rN="过滤",oN="重连",iN="#电桩编号",sN="重启时间",aN="次数",cN="==相关功能==",lN="当前电表读数",uN="网络",fN="端口",hN="原因",dN="访客",pN="贵宾",gN="代理",mN="管理",_N="黑户",yN="取消",AN="用户ID",vN="用户昵称",wN="余额",bN="赠送",EN="注册时间",CN="到访时间",TN="来访IP",SN="充电次数",IN="充值数",ON="断电电流",NN="左枪电量",RN="右枪电量",DN="开关",PN="客户",MN="电流状态",LN="协议电压",kN="不会发生",BN="未接设备",xN="到时停充",FN="插头拔出",VN="功率超限",UN="余额不足",HN="主线过细",WN="充电完成",jN="温度超限",GN="主动停止",XN="完成充电",zN="不会发生",$N="接地不良",YN="到时自停",qN="拔枪停充",KN="充电完成",ZN="余额不足",QN="功率超限",JN="充电完成",tR="高温超限",eR="主动停止",nR="完成充电",rR="充值日期",oR="充值金额",iR="本次余额",sR="现金支付",aR="PayStack",cR="PayPal",lR="汽单",uR="发生时间",fR="用户/设备",hR="操作",dR="IP",pR="日志描述",gR="paystack",mR="虚拟卡",_R="momo",yR="PayPal",AR="MoMo充值",vR="充值金额",wR="虚拟卡管理",bR="立即激活充值卡",ER="请输入数字",CR="需要4位数字",TR="需要8位数字",SR="请填写用户账号",IR="用户账号不是邮箱",OR="邮箱账号",NR="激活码",RR="下载",DR={languageto:qO,Change_Language_To:KO,login_uid:ZO,login_uid2:QO,login_passwd:JO,login_save_pwd:t9,login_btn_now:e9,login_btn_register:n9,login_btn_help:r9,login_uid_too_short:o9,login_pas_too_short:i9,login_register_now:s9,login_repasswd:a9,login_nickname:c9,register_nickname_too_short:l9,registerpass_diff:u9,register_exists:f9,uid_invalidemail:h9,register_OK:d9,login_btn_login:p9,btn_login:g9,btn_prepay:m9,Free:_9,SwitchON:y9,Charging:A9,Disabled:v9,StopDN:w9,Offline:b9,noID:E9,Ready:C9,"ChargerID:":"充电桩编号:",payfullname:T9,paystackaccount:S9,paymoneys:I9,hpayfullname:O9,mobilenumber:N9,topup:R9,logout:D9,ChargeTIME:P9,hors:M9,bkchargehours:L9,ChargeNOW:k9,DoCharge:B9,StopNOW:x9,IamCharging:F9,PortDisabled:V9,StopKeyDown:U9,Clearme:H9,DeviceOffline:W9,InvalidChargerID:j9,Starting:G9,Stoping:X9,hpaystackaccount:z9,acTempture:$9,acState:Y9,acPower:q9,acCurrency:K9,leftgun:Z9,rightgun:Q9,lowprize:J9,powerunit:t7,m_admusers:e7,m_admdevices:n7,m_admdevices0:r7,m_admdevices1:o7,m_admstores:i7,m_admprepays:s7,m_admchgpays:a7,m_admchgpays0:c7,m_admchgpays1:l7,m_admmore:u7,m_admsetup:f7,m_admlogs:h7,logshuman:d7,logsdevice:p7,btn_prevpage:g7,btn_nextpage:m7,opt_all:_7,opt_ofline:y7,opt_online:A7,DataTime:v7,OffTime:w7,PowUse:b7,Dev:E7,Tempr:C7,"Vol&Cur":"电压电流",STOP:T7,OPEN:S7,localtime:I7,gnderror:O7,swon:N7,swoff:R7,swdis:D7,ref0:P7,ref1:M7,ref2:L7,ref3:k7,ref4:B7,ref5:x7,ref6:F7,ref7:V7,ref8:U7,ref9:H7,refa:W7,refb:j7,refc:G7,refd:X7,refe:z7,cbk0:$7,cbk1:Y7,cbk2:q7,btn_save:K7,btn_ok:Z7,btn_search:Q7,btn_History:J7,btn_ACT:tN,btn_BEP:eN,btn_RBT:nN,btn_Filter:rN,reConn:oN,msto_th0:iN,msto_th1:sN,msto_th2:aN,msto_th3:cN,msto_th4:lN,msto_th5:uN,msto_th6:fN,msto_th7:hN,btn_ugst:dN,btn_uvip:pN,btn_prox:gN,btn_umgr:mN,btn_ublk:_N,btn_cancelpay:yN,usr_th0:AN,usr_th1:vN,usr_th2:wN,usr_th3:bN,usr_th4:EN,usr_th5:CN,usr_th6:TN,usr_th7:SN,usr_th8:IN,usr_th9:ON,LeftEnergy:NN,RightEnergy:RN,"Disabled(left)":"左枪停用","Disabled(right)":"右枪停用",Switch:DN,User:PN,CurrState:MN,ProtoVol:LN,bkResons0:kN,bkResons1:BN,bkResons2:xN,bkResons3:FN,bkResons4:VN,bkResons5:UN,bkResons6:HN,bkResons7:WN,bkResons8:jN,bkResons9:GN,bkResonsa:XN,evResons0:zN,evResons1:$N,evResons2:YN,evResons3:qN,evResons4:KN,evResons5:ZN,evResons6:QN,evResons7:JN,evResons8:tR,evResons9:eR,evResonsa:nR,prepay_happen:rR,prepay_amount:oR,prepay_thisbalance:iR,prepay_cash:sR,prepay_paystack:aR,prepay_paypal:cR,logs_evbk:lR,logs_happen:uR,logs_uidmac:fR,logs_oper:hR,logs_remoteip:dR,logs_desc:pR,tabpaystack:gR,tabvcard:mR,tabmomo:_R,tabpaypal:yR,lbmomopay:AR,paypalmount:vR,m_admvcards:wR,vcardactivenow:bR,vcardactiveer1:ER,vcardactiveer2:CR,vcardactiveer3:TR,vcardactiveer4:SR,vcardactiveer5:IR,activetarget:OR,activecode:NR,btn_vcard_download:RR},PR="中文",MR="切换语言至: ",LR="email address at register supply",kR="email address (5 chars or more)",BR="login password (6 chars or more)",xR="Save password (Never in public)",FR="Login NOW",VR="Register new user",UR="Help",HR="Userid too short !",WR="Password too short !",jR="Register NOW",GR="Repeat password",XR="User nickname",zR="nickname too short !",$R="Password diffrent when repeat !",YR="Account exists, plz Login",qR="email address needed",KR="Account Register OK !",ZR="Back to Login",QR="Account Login",JR="Account Top Up",tD="Free",eD="SwitchON",nD="Charging",rD="Disabled",oD="StopDown",iD="Offline",sD="noID",aD="Ready",cD="Full name: ",lD="MobilNumber",uD="Paystack ID: ",fD="Charge moneys: ",hD=" Top Up ",dD=" Log Out ",pD="ChargeTIME",gD="hors",mD="plz select charge hour(s).",_D="ChargeNOW",yD="DoCharge",AD="StopNOW",vD="IamCharging",wD="Socket Disabled",bD="StopKey Down",ED="Clearme",CD="Device Offline",TD="Invalid ChargerID",SD="Starting",ID="Stoping",OD="Your full name",ND="Your paystack account ID",RD="Tempr",DD="Status",PD="Energy(kWh)",MD="Currency(Amp)",LD="LeftGun",kD="RightGun",BD="StartPrize",xD="GH/kWh",FD="Users",VD="Devices",UD="BK Devices",HD="EV Devices",WD="Dev Stores",jD="Fee Prepays",GD="Bills",XD="BK Bills",zD="EV Bills",$D="More",YD="Setup",qD="SysLogs",KD="Usrlog",ZD="Devlog",QD="Prev",JD="Next",tP="ALL",eP="Offline",nP="Online",rP="DataTime",oP="OfflineTime",iP="PowUse",sP="Dev",aP="Tempr",cP="STOP",lP="&OPEN",uP="LocalTime",fP="GNDError",hP="ON ",dP="OFF",pP="DIS",gP="UNKON",mP="LOWPW",_P="WWDOG",yP="IWDOG",AP="RESET",vP="POWON",wP="MCUPN",bP="BWNOU",EP="STOPd",CP="EXITd",TP="REJET",SP="RPTER",IP="LTEER",OP="RESET",NP="SERVR",RP="BK",DP="AC",PP="DC",MP="Save",LP="OK",kP="Search",BP="History",xP="ACT",FP="BEP",VP="RBT",UP="Filter",HP="reConn",WP="#ChargerID",jP="Reboot",GP="Times",XP="= Function Buttons =",zP="EnergyUsed",$P="Net",YP="Pos",qP="Reason",KP="Guest",ZP="VIP",QP="proxy",JP="Manager",tM="Black",eM="Cancel",nM="userid",rM="nickname",oM="Balce",iM="Gift",sM="RegTime",aM="active",cM="VistIP",lM="ChgTMS",uM="ReCh",fM="OffCurrent",hM="LeftEnergy",dM="RightEnergy",pM="Switch",gM="User",mM="CurrState",_M="ProtoVol",yM="SysSTOP",AM="NoChgDev",vM="PlanSTOP",wM="plugOUT",bM="PowLimit",EM="FeeLimit",CM="HiVoLoss",TM="ChgOVER",SM="HiTempr",IM="userSTOP",OM="ChgFinish",NM="ChgOver",RM="GNDerr",DM="TimeLimit",PM="gunOUT",MM="gunSTOP",LM="FeeLimit",kM="PowHigh",BM="ChgOVER",xM="HiTempr",FM="userSTOP",VM="ChgFinish",UM="happen",HM="amount",WM="thisbalance",jM="Cash",GM="PayStack",XM="PayPal",zM="evbk",$M="happen",YM="uid/mac",qM="oper",KM="remoteip",ZM="desc",QM="paystack",JM="vCard",tL="momo",eL="MoMo TopUp",nL="byPayPal",rL="paymount",oL="virtualCards",iL="Active NOW",sL="Input Number plz",aL="4 digits number needed",cL="8 digits number needed",lL="Input user account plz",uL="invalid email address",fL="active user account",hL="active code",dL="Downloads",pL={languageto:PR,Change_Language_To:MR,login_uid:LR,login_uid2:kR,login_passwd:BR,login_save_pwd:xR,login_btn_now:FR,login_btn_register:VR,login_btn_help:UR,login_uid_too_short:HR,login_pas_too_short:WR,login_register_now:jR,login_repasswd:GR,login_nickname:XR,register_nickname_too_short:zR,registerpass_diff:$R,register_exists:YR,uid_invalidemail:qR,register_OK:KR,login_btn_login:ZR,btn_login:QR,btn_prepay:JR,Free:tD,SwitchON:eD,Charging:nD,Disabled:rD,StopDN:oD,Offline:iD,noID:sD,Ready:aD,"ChargerID:":"ChargerID: ",payfullname:cD,mobilenumber:lD,paystackaccount:uD,paymoneys:fD,topup:hD,logout:dD,ChargeTIME:pD,hors:gD,bkchargehours:mD,ChargeNOW:_D,DoCharge:yD,StopNOW:AD,IamCharging:vD,PortDisabled:wD,StopKeyDown:bD,Clearme:ED,DeviceOffline:CD,InvalidChargerID:TD,Starting:SD,Stoping:ID,hpayfullname:OD,hpaystackaccount:ND,acTempture:RD,acState:DD,acPower:PD,acCurrency:MD,leftgun:LD,rightgun:kD,lowprize:BD,powerunit:xD,m_admusers:FD,m_admdevices:VD,m_admdevices0:UD,m_admdevices1:HD,m_admstores:WD,m_admprepays:jD,m_admchgpays:GD,m_admchgpays0:XD,m_admchgpays1:zD,m_admmore:$D,m_admsetup:YD,m_admlogs:qD,logshuman:KD,logsdevice:ZD,btn_prevpage:QD,btn_nextpage:JD,opt_all:tP,opt_ofline:eP,opt_online:nP,DataTime:rP,OffTime:oP,PowUse:iP,Dev:sP,Tempr:aP,"Vol&Cur":"Vol&Cur",STOP:cP,OPEN:lP,localtime:uP,gnderror:fP,swon:hP,swoff:dP,swdis:pP,ref0:gP,ref1:mP,ref2:_P,ref3:yP,ref4:AP,ref5:vP,ref6:wP,ref7:bP,ref8:EP,ref9:CP,refa:TP,refb:SP,refc:IP,refd:OP,refe:NP,cbk0:RP,cbk1:DP,cbk2:PP,btn_save:MP,btn_ok:LP,btn_search:kP,btn_History:BP,btn_ACT:xP,btn_BEP:FP,btn_RBT:VP,btn_Filter:UP,reConn:HP,msto_th0:WP,msto_th1:jP,msto_th2:GP,msto_th3:XP,msto_th4:zP,msto_th5:$P,msto_th6:YP,msto_th7:qP,btn_ugst:KP,btn_uvip:ZP,btn_prox:QP,btn_umgr:JP,btn_ublk:tM,btn_cancelpay:eM,usr_th0:nM,usr_th1:rM,usr_th2:oM,usr_th3:iM,usr_th4:sM,usr_th5:aM,usr_th6:cM,usr_th7:lM,usr_th8:uM,usr_th9:fM,LeftEnergy:hM,RightEnergy:dM,"Disabled(left)":"Disabled(left)","Disabled(right)":"Disabled(right)",Switch:pM,User:gM,CurrState:mM,ProtoVol:_M,bkResons0:yM,bkResons1:AM,bkResons2:vM,bkResons3:wM,bkResons4:bM,bkResons5:EM,bkResons6:CM,bkResons7:TM,bkResons8:SM,bkResons9:IM,bkResonsa:OM,evResons0:NM,evResons1:RM,evResons2:DM,evResons3:PM,evResons4:MM,evResons5:LM,evResons6:kM,evResons7:BM,evResons8:xM,evResons9:FM,evResonsa:VM,prepay_happen:UM,prepay_amount:HM,prepay_thisbalance:WM,prepay_cash:jM,prepay_paystack:GM,prepay_paypal:XM,logs_evbk:zM,logs_happen:$M,logs_uidmac:YM,logs_oper:qM,logs_remoteip:KM,logs_desc:ZM,tabpaystack:QM,tabvcard:JM,tabmomo:tL,lbmomopay:eL,tabpaypal:nL,paypalmount:rL,m_admvcards:oL,vcardactivenow:iL,vcardactiveer1:sL,vcardactiveer2:aL,vcardactiveer3:cL,vcardactiveer4:lL,vcardactiveer5:uL,activetarget:fL,activecode:hL,btn_vcard_download:dL},gL=Zv({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en",messages:{en:re({},YO),cn:re({},DR),fr:re({},pL)}}),no=uA(LT);no.use(gL);no.use(fS);no.use(Ss,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 b6a812f..f2ceb17 100644 --- a/vuebuild/src/App.vue +++ b/vuebuild/src/App.vue @@ -275,7 +275,7 @@ async function fetchData(): Promise { snotify.error('amazonaws LoginERROR') } } - setTimeout(fetchData, 5000) + setTimeout(fetchData, 1000) } } function selectport(id: number): void { @@ -995,15 +995,6 @@ function onResult(data: any): void { .fg5 { color: rgba(128, 128, 128, 0.1); } -.mainbtn { - width: 90%; - margin: 0 auto; - line-height: 4rem; - font-size: 2rem; -} -.devbox1 { - margin: 0 auto; -} .mopay { width: 100%; margin-top: 20px; @@ -1107,44 +1098,11 @@ a.disabled { .grecaptcha-badge { display: none; } -.cheader { - margin-top: 10px; - margin-left: 10px; - line-height: 4rem; - font-size: 1.6rem; - margin-right: 1rem; - vertical-align: middle; -} -.chead2 { - margin-left: 10px; - color: green; - line-height: 4rem; - font-size: 1.6rem; -} -.mybtn { -} .pbox { padding: 2vw; border-bottom: 1px solid #ddd; } @media only screen and (orientation: portrait) { - .cheader { - margin-top: 10px; - margin-left: 10px; - line-height: 10vw; - font-size: 6vw; - margin-right: 2vw; - vertical-align: middle; - } - .mybtn { - line-height: 5vw; - font-size: 4vw; - } - .chead2 { - color: green; - line-height: 10vw; - font-size: 5vw; - } .w-ama { width: 19vw; height: 19vw; @@ -1169,12 +1127,6 @@ a.disabled { font-size: 2vw; color: #bbb; } - .mainbtn { - width: 90%; - margin: 0 auto; - line-height: 12vw; - font-size: 6vw; - } } .opacity { background-color: rgba(255, 255, 255, 0.8);