PageSourceSearch

https://metertoken.ng/_next/static/chunks/pages/buy/preview/[type]-a9385b0df6ea89ff.js

js metertoken.ng collected 2026-10-02 02:03:21 UTC 58,529 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7783],{19432:function(e,t,n){"use strict";n.d(t,{WU:function(){return format}});var l=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i=/\[([^]*?)\]/gm;function shorten(e,t){for(var n=[],l=0,i=e.length;l<i;l++)n.push(e[l].substr(0,t));return n}var monthUpdate=function(e){return function(t,n){var l=n[e].map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase());return l>-1?l:null}};function assign(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var l=0;l<t.length;l++){var i=t[l];for(var a in i)e[a]=i[a]}return e}var a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o=["January","February","March","April","May","June","July","August","September","October","November","December"],r=shorten(o,3),d=assign({},{dayNamesShort:shorten(a,3),dayNames:a,monthNamesShort:r,monthNames:o,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}}),pad=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},s={D:function(e){return String(e.getDate())},DD:function(e){return pad(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return pad(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return pad(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return pad(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return pad(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return pad(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return pad(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return pad(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return pad(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return pad(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return pad(e.getMilliseconds(),3)},a:function(e,t){return 12>e.getHours()?t.amPm[0]:t.amPm[1]},A:function(e,t){return 12>e.getHours()?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+pad(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+pad(Math.floor(Math.abs(t)/60),2)+":"+pad(Math.abs(t)%60,2)}};monthUpdate("monthNamesShort"),monthUpdate("monthNames");var u={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},format=function(e,t,n){if(void 0===t&&(t=u.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw Error("Invalid Date pass to format");t=u[t]||t;var a=[];t=t.replace(i,function(e,t){return a.push(t),"@@@"});var o=assign(assign({},d),n);return(t=t.replace(l,function(t){return s[t](e,o)})).replace(/@@@/g,function(){return a.shift()})}},44228:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buy/preview/[type]",function(){return n(26608)}])},18767:function(e,t,n){"use strict";n.d(t,{k:function(){return useOpenLink}});var l=n(11163);function useOpenLink(){let e=(0,l.useRouter)(),open=async t=>new Promise((n,l)=>{try{let l=window.screen.height,i=window.screen.width/2-300,a=window.screen.height/2-l/2,o="width=".concat(600,",height=").concat(l,",left=").concat(i,",top=").concat(a),r=t.startsWith("http")?t:"".concat(window.location.origin).concat(t),d=window.open(r,"_blank",o);d||(n(!1),e.push(t)),d&&(d.onload=()=>{d.postMessage({message:"sent from prompt command",hasMessage:!0},"*")},n(d))}catch(e){n(!1)}});return{open}}},93554:function(e,t,n){"use strict";var l=n(83454),i=n(21876).Buffer;async function encryptData(e){try{let t=l.env.RSA_PUBLIC_KEY||"-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAumAL0pvMtqNjO3rDojNO\\n86IX69zxD+xPbv3lc17PKsapaLvXY4weO1E7TuXx1oTdwuS5TOku/SzhO7hrWJL8\\nMjYNzn6oBcCbENX9klKDprzMh3j0fLYdW4dSG0uRo3SuTS+mjyfwYp74lXZpJ5ct\\nGdoRyOulx8ckjs8zmU2mYX28o8eys5UzpHjTNQL/gCdVTgq5LBwi44bIKn9l4POV\\nude531EXnE30bqSOyaA3EO4YSRJZK28n//4ZKN5S1ft2Y87D0BhMG+eT3LHm5tP9\\nvekVVoB6gmaxTFd9IxUX4ZTIHlC+zKvtwfuNnZIx2ohvtdvzJDPdYi7+Mb4yEXLo\\ngQIDAQAB\\n-----END PUBLIC KEY-----",n=t.replace(/\\n
1/g,"\n"),i=new TextEncoder().encode(JSON.stringify(e)),a=n.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").replace(/\s/g,""),o=window.atob(a),r=new Uint8Array(o.length);for(let e=0;e<o.length;e++)r[e]=o.charCodeAt(e);let d=await window.crypto.subtle.importKey("spki",r.buffer,{name:"RSA-OAEP",hash:"SHA-256"},!1,["encrypt"]),s=await window.crypto.subtle.encrypt({name:"RSA-OAEP"},d,i),u=new Uint8Array(s),c="";u.forEach(e=>c+=String.fromCharCode(e));let v=window.btoa(c);return v}catch(e){return console.error("Encryption failed:",e),null}}async function encryptDataNode(e){try{let t=l.env.RSA_PUBLIC_KEY||"-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAumAL0pvMtqNjO3rDojNO\\n86IX69zxD+xPbv3lc17PKsapaLvXY4weO1E7TuXx1oTdwuS5TOku/SzhO7hrWJL8\\nMjYNzn6oBcCbENX9klKDprzMh3j0fLYdW4dSG0uRo3SuTS+mjyfwYp74lXZpJ5ct\\nGdoRyOulx8ckjs8zmU2mYX28o8eys5UzpHjTNQL/gCdVTgq5LBwi44bIKn9l4POV\\nude531EXnE30bqSOyaA3EO4YSRJZK28n//4ZKN5S1ft2Y87D0BhMG+eT3LHm5tP9\\nvekVVoB6gmaxTFd9IxUX4ZTIHlC+zKvtwfuNnZIx2ohvtdvzJDPdYi7+Mb4yEXLo\\ngQIDAQAB\\n-----END PUBLIC KEY-----",a=t.replace(/\\n
1/g,"\n"),o="string"==typeof e?e:JSON.stringify(e),r=new TextEncoder().encode(o),d=function(){var e;if(null===(e=window.crypto)||void 0===e?void 0:e.subtle)return window.crypto;try{let{webcrypto:e}=n(42474);return e}catch(e){}}();if(null==d?void 0:d.subtle){let e=function(e){let t=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").replace(/\s/g,"");if("function"==typeof window.atob){let e=window.atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n.buffer}return i.from(t,"base64")}(a),t=await d.subtle.importKey("spki",e,{name:"RSA-OAEP",hash:"SHA-256"},!1,["encrypt"]),n=await d.subtle.encrypt({name:"RSA-OAEP"},t,r);return function(e){if("function"==typeof window.btoa){let t=new Uint8Array(e),n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);return window.btoa(n)}let t=e instanceof ArrayBuffer?new Uint8Array(e):e;return i.from(t).toString("base64")}(n)}let s=n(42474),u=s.createPublicKey(a),c=s.publicEncrypt({key:u,padding:s.constants.RSA_PKCS1_OAEP_PADDING,oaepHash:"sha256"},i.from(r));return c.toString("base64")}catch(e){return console.error("Encryption failed:",e),null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{encryptData:function(){return encryptData},encryptDataNode:function(){return encryptDataNode}}),e.exports={encryptData,encryptDataNode}},51089:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});let l=[{abbr:"APLE",name:"ABA",value:"APLE",short_name:"Abapower Electric Company (APLE)",image:"/power/aple.png",available:"YES"}
1,{abbr:"AEDC",name:"ABUJA",value:"AEDC",short_name:"Abuja Electicity Distribution Company (AEDC)",image:"/power/abuja.png",available:"YES"},{abbr:"BEDC",name:"BENIN",value:"BEDC",short_name:"Benin Electicity Distribution Company (BEDC)",image:"/power/benin.jpg",available:"YES"},{abbr:"EKEDC",name:"EKO",value:"EKEDC",short_name:"Eko Electicity Distribution Company (EKEDC)",image:"/power/eko.png",available:"YES"},{abbr:"EEDC",name:"ENUGU",value:"EEDC",short_name:"Enugu Electicity Distribution Company (EEDC)",image:"/power/enugu.png",available:"YES"},{abbr:"IBEDC",name:"IBADAN",value:"IBEDC",short_name:"Ibadan Electicity Distribution Company (IBEDC)",image:"/power/ibadan.png",available:"YES"},{abbr:"IKEDC",name:"IKEJA",value:"IKEDC",short_name:"Ikeja Electicity Distribution Company (IKEDC)",image:"/power/ikeja.png",available:"YES"},{abbr:"JEDC",name:"JOS",value:"JEDC",short_name:"Jos Electicity Distribution Company (JEDC)",image:"/power/jos.png",available:"YES"},{abbr:"KADCO",name:"KADUNA",value:"KADCO",short_name:"KADUNA Electicity Company (KADCO)",image:"/power/kaduna.png",available:"YES"},{abbr:"KEDCO",name:"KANO",value:"KEDCO",short_name:"Kano Electicity Company (KEDCO)",image:"/power/kano.png",available:"YES"},{abbr:"PHED",name:"PH",value:"PHED",short_name:"Port Harcourt Electicity Distribution (PHED)",image:"/power/port.png",available:"YES"},{abbr:"YEDC",name:"YOLA",value:"YEDC",short_name:"Yola Electicity Distribution Company (YEDC)",image:"/power/yola.jpg",available:"YES"}]},11284:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var l=n(53153);let Charges=class Charges extends l.Z{constructor(e){return super(e),this.collection=e,this}};let i=new Charges("charges")},46203:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var l=n(53153);let Commissions=class Commissions extends l.Z{constructor(e){return super(e),this.collection=e,this}};let i=new Commissions("commissions")},41631:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var l=n(53153);let Deals=class Deals extends l.Z{constructor(e){return super(e),this.collection=e,this}};let i=new Deals("deals")},82438:function(e,t,n){"use strict";n.d(t,{PH:function(){return i}});var l=n(53153);let PurchaseHistory=class PurchaseHistory extends l.Z{constructor(e){return super(e),this.collection=e,this}};let i=new PurchaseHistory("purchase_history")},38011:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var l=n(53153);let Recents=class Recents extends l.Z{constructor(e){return super(e),this.collection=e,this}};let i=new Recents("recents")},76298:function(e,t,n){"use strict";n.d(t,{WH:function(){return i}});var l=n(53153);let WalletHistories=class WalletHistories extends l.Z{constructor(e){return super(e),this.collection=e,this}};let i=new WalletHistories("wallet_history")},26608:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _type_}});var l=n(85893),i=n(67294),a=n(16031),o=n(10606),r=n(78862),d=n(67184),s=n(14570),u=n(44674),c=n(39763),v=n(38011),m=n(46203),p=n(82438),f=n(11284),h=n(41631),g=n(76298),b=n(11163),y=n(25675),x=n.n(y),w=n(51089),D=n(19432),N=n(41664),k=n.n(N),j=n(18767),A=n(93554),E=n(83454);let C=(null===s.N3||void 0===s.N3?void 0:s.N3.max_purchase_amount)||1e5;var _type_=()=>{var e,t,n,y;let[N,_]=i.useState(null),S=(0,b.useRouter)(),{type:B}=S.query,{open:M}=(0,j.k)(),{showLoading:Y,closeLoading:P,user:T,wallet:I,setWallet:O,toggleModal:K}=(0,i.useContext)(u.I),[F,R]=i.useState(""),[z,L]=i.useState(null),[H,U]=i.useState(null),W=i.useRef(),{canVendMeter:J,logMeterVend:q}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{user:t,windowMinutes:n=30,baseKey:l="mtk_meter_vend_log"}=e,a=(0,i.useMemo)(()=>6e4*n,[n]),o="undefined"!=typeof localStorage,r=(0,i.useMemo)(()=>{let e=(t||"").trim();return e?"".concat(l,":").concat(e):l},[t,l]),d=(0,i.useCallback)(()=>{if(!o)return null;try{let e=localStorage.getItem(r);return e?JSON.parse(e):null}catch(e){return null}},[r,o]),s=(0,i.useCallback)(e=>{if(!o)return!1;try{return localStorage.setItem(r,JSON.stringify(e)),!0}catch(e){return!1}},[r,o]),u=(0,i.useCallback)(()=>{let e=Date.now(),t=d()||{},n=!1;for(let i in t){var l;let o=Number((null===(l=t[i])||void 0===l?void 0:l.t)||0);(!o||e-o>=a)&&(delete t[i],n=!0)}return n&&s(t),{data:t,now:e}}
1,[d,s,a]),c=(0,i.useCallback)((e,t)=>{let n=String(e||"").trim();if(!n)return!1;if(!o)return!0;let{data:l}=u(),i="number"==typeof t?t:Date.now();return l[n]={t:i},s(l)},[o,u,s]),v=(0,i.useCallback)((e,t)=>{var n;let l=String(e||"").trim();if(!l||!o)return{allowed:!0,waitMs:0,lastAt:null};let{data:i,now:r}=u(),d=(null===(n=i[l])||void 0===n?void 0:n.t)?Number(i[l].t):null;if(!d)return{allowed:!0,waitMs:0,lastAt:null};let s=("number"==typeof t?t:r)-d;return s>=a?{allowed:!0,waitMs:0,lastAt:d}:{allowed:!1,waitMs:a-s,lastAt:d}},[o,u,a]);return{canVendMeter:v,logMeterVend:c}}({user:(null==T?void 0:T.id)||(null==T?void 0:T.email)||(null==T?void 0:T.uid),windowMinutes:30,baseKey:"mtk_meter_vend_log"});i.useEffect(()=>{let e=d.h.get(s.us.anonymous_user);e&&!H&&U({...e});let receiver=e=>{var t,n,l,i;("http://localhost"===e.origin||"http://localhost:3000"===e.origin||"http://127.0.0.1"===e.origin||"https://metertoken.ng"===e.origin)&&(null===(t=e.data)||void 0===t?void 0:t.isDone)===!0&&(O({...e.data.wa}),e.data.user&&U({email:null===(n=e.data.user)||void 0===n?void 0:n.email,phone:null===(l=e.data.user)||void 0===l?void 0:l.phone,name:null===(i=e.data.user)||void 0===i?void 0:i.name}))};return window.addEventListener("message",receiver,!1),()=>window.removeEventListener("message",receiver)},[H]);let Z=i.useCallback(()=>{let e=d.h.get(s.us.current_transaction);e&&JSON.stringify(e)!==JSON.stringify(N)?_({...e}):N||_(!1)},[N]);i.useEffect(()=>{Z()},[Z]);let getmeterTypes=e=>{var t,n,l;let i={ismd:!1,isnmd:!1},a=(null===(t=e.customerCategory)||void 0===t?void 0:t.toUpperCase())||"",o=(null===(n=e.customerClass)||void 0===n?void 0:n.toUpperCase())||"",r=(null===(l=e.demandCategory)||void 0===l?void 0:l.toUpperCase())||"";return(a.includes("NMD")||a.includes("NON-NMD")||a.includes("NON-MD")||a.includes("NON-MD")||a.includes("R2TA-NMD"))&&(i.isnmd=!0),(o.includes("NMD")||o.includes("NON-NMD")||o.includes("NON-MD")||o.includes("NON-MD")||o.includes("R2TA-NMD"))&&(i.isnmd=!0),(r.includes("NMD")||r.includes("NON-NMD")||r.includes("NON-MD")||r.includes("NON-MD")||r.includes("R2TA-NMD"))&&(i.isnmd=!0),i.isnmd||(i.ismd=!0),i},makePurchase=async e=>{var t,n,l,i,a,o,r,u,b,y,x,w,k,j,_,F,z,U,W,Z,X,G,Q,V,$,ee,et,en,el,ei,ea,eo,er,ed,es,eu,ec,ev,em,ep,ef,eh,eg,eb,ey,ex,ew,eD,eN,ek,ej,eA,eE,eC,e_,eS,eB,eM,eY,eP,eT,eI,eO,eK,eF,eR,ez,eL,eH,eU,eW,eJ,eq,eZ,eX,eG,eQ,eV,e$,e0,e1,e5,e2,e6,e8,e4,e3,e9,e7,te,tt,tn,tl,ti,ta,to,tr,td,ts,tu,tc,tv,tm,tp,tf,th,tg,tb,ty,tx,tw,tD,tN;e.preventDefault(),e.stopPropagation();let tk=e.target;tk.setAttribute("disabled",!0);let tj=window.confirm("Confirm you want to proceed? ");if(!tj){tk.setAttribute("disabled",!1);return}if(Y(),!T&&!H){P(),d.h.save(s.us.current_path,window.location.href),S.push("/login");return}if(!T&&H){startPayment();return}let tA=null==T?void 0:null===(t=T.account_type)||void 0===t?void 0:t.toLowerCase();if("personal"===tA&&parseFloat((null==N?void 0:N.total)||"0")>C&&"admin"!==tA){P(),K("Amount too large","The amount ".concat(null==N?void 0:N.total," is too large for a personal account. The maximum amount for a personal account is ").concat(C,". Please create an Agent account to buy more. Or use our app to buy."),"danger","on");return}if(((null==T?void 0:null===(n=T.account_type)||void 0===n?void 0:n.toLowerCase())==="business"||(null==T?void 0:null===(l=T.account_type)||void 0===l?void 0:l.toLowerCase())==="agent")&&!(null==T?void 0:T.approved)){P(),null==e||null===(w=e.target)||void 0===w||w.removeAttribute("disabled"),K("Account not approved!","Your account (".concat(null==T?void 0:null===(k=T.account_type)||void 0===k?void 0:k.toLowerCase(),") has not been approved?"),"danger","on");return}let tE=(null==N?void 0:N.krntoken1)?null==N?void 0:N.krntoken1:"",tC=(null==N?void 0:N.krntoken2)?null==N?void 0:N.krntoken2:"",t_=(null==N?void 0:N.ti)?null==N?void 0:N.ti:(null==N?void 0:null===(i=N.account)||void 0===i?void 0:i.ti)?null==N?void 0:null===(a=N.account)||void 0===a?void 0:a.ti:"",tS=(null==N?void 0:N.tariff)?null==N?void 0:N.tariff:(null==N?void 0:null===(o=N.account)||void 0===o?void 0:o.tariff)?null==N?void 0:null===(r=N.account)||void 0===r?void 0:r.tariff:"",tB=(null==N?void 0:N.customerClass)?null==N?void 0:N.customerClass:(null==N?void 0:null===(u=N.account)||void 0===u?void 0:u.customerClass)?null==N?void 0:null===(b=N.account)||void 0===b?void 0:b.customerClass:"",tM=(null==N?void 0:null===(y=N.account)||void 0===y?void 0:y.customerCategory)?null==N?void 0:null===(x=N.account)||void 0===x?void 0:x.customerCategory:"";try{let t=await c.g9.post("/",{type:"get-settings"});t=null===(j=null==t?void 0:null===(_=t.data)||void 0===_?void 0:_.data)||void 0===j?void 0:j[0];let n=null==N?void 0:N.data,l=null==N?void 0:N.account,i=await v.l.getAll(null,"created_date","ref,==,".concat(null==N?void 0:N.reference),1);if(i&&(null==i?void 0:null===(F=i.documents)||void 0===F?void 0:F.length)>0){P(),K("Reference Exists!","The attempted transaction reference already exists! Ref: ".concat(null==N?void 0:N.reference,", please try going back and retry the process"),"danger","on");return}let a=(0,s.NJ)((null==n?void 0:n.abbr)||(null==n?void 0:n.name),l.meterNo||(null==l?void 0:l.meter_number));if(console.log("isKayConlog",a,null==n?void 0:n.abbr,null==n?void 0:n.name,l.meterNo,null==l?void 0:l.meter_number),a){P(),K("Meter type not supported!","The meter type not supported! Meter: ".concat(l.meterNo," from disco: ").concat(null==n?void 0:n.name,", please try going back and retry another meter"),"danger","on");return}let o=J(null==N?void 0:N.customer_number,Date.now());
1if(!o.allowed){P(),K("Invalid Attempt!","The attempt is invalid. You may have to wait for a while before trying again! You just made a successful transaction recently with that Meter Number.","danger","on");return}R("processing"),L(null);let r=await c.g9.post("/",Object.freeze({type:"charge-wallet",amount:await (0,A.encryptData)(parseFloat(N.total)),userId:T.id}));if(!r.ok){P(),R("failed"),K("Insufficient Balance",(null==r?void 0:null===(z=r.data)||void 0===z?void 0:z.message)?null==r?void 0:null===(U=r.data)||void 0===U?void 0:U.message:"Please check your balance and try again","danger","on",async()=>{d.h.save(s.us.current_path,"/buy/preview/".concat(B));let e=await M("/wallet");e&&tk.removeAttribute("disabled")});return}r.ok&&(O({...I,balance:null==r?void 0:null===(W=r.data)||void 0===W?void 0:W.newBalance}),await g.WH.create({id:(0,s.dz)(),transaction_id:null==N?void 0:N.reference,flw_ref:null==N?void 0:N.reference,amount:null==N?void 0:N.total,type:"debit",balance:null==r?void 0:null===(Z=r.data)||void 0===Z?void 0:Z.newBalance,status:"charged",user_id:null==T?void 0:T.id,email:null==T?void 0:T.email,access_key:E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",created_date:new Date}));let u=parseFloat(null==N?void 0:N.amount);u=t&&u>=(null==t?void 0:t.gateWayThresh)&&!0===t.customerPayHiddencharges?u-(null==t?void 0:t.gateWayPercent)*u:u;let b=(null==N?void 0:N.isDirect)?{amount:await (0,A.encryptData)(u),biller:null==N?void 0:N.biller,meter:null==N?void 0:N.customer_number,pamt:await (0,A.encryptData)(parseFloat(null==N?void 0:N.total)),ref:null==N?void 0:N.reference,channel:"Web",user:{email:null==T?void 0:T.email,name:null==T?void 0:T.fullName,owner:null==N?void 0:N.customer_name,phone:null==T?void 0:T.phone}}:{orderId:null==N?void 0:N.reference,meter:null==N?void 0:N.customer_number,disco:null==N?void 0:N.biller,phone:null==T?void 0:T.phone,pamt:await (0,A.encryptData)(parseFloat(null==N?void 0:N.total)),paymentType:"ONLINE",vendType:null==N?void 0:N.vendType,amount:await (0,A.encryptData)(u),email:null==T?void 0:T.email,name:null==N?void 0:N.customer_name};if(r.ok){v.l.create({id:(0,s.dz)("text"),account:l,disco:n,ref:null==N?void 0:N.reference,isDirect:null==N?void 0:N.isDirect,data:{...b,amount:u},biller:null==N?void 0:N.biller,email:null==T?void 0:T.email,phone:null==T?void 0:T.phone,user_id:T.id,created_date:new Date().getTime(),krntoken1:tE||"",access_key:E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",krntoken2:tC||""});let t=await c.g9.post("/",{details:{...b},type:"pay-bill",direct:null==N?void 0:N.isDirect});try{if((null==t?void 0:t.ok)===!1&&(null===(ea=t.data)||void 0===ea?void 0:ea.status)===!1&&(null==t?void 0:null===(eo=t.data)||void 0===eo?void 0:eo.message)){R("failed"),P(),K("Attempt failed!",null==t?void 0:null===(er=t.data)||void 0===er?void 0:er.message,"warning","on");return}}catch(e){}if((null==N?void 0:N.isDirect)&&((null==t?void 0:null===(G=t.data)||void 0===G?void 0:null===(X=G.data)||void 0===X?void 0:X.message)==="Awaiting_service_provider"||(null==t?void 0:null===($=t.data)||void 0===$?void 0:null===(V=$.data)||void 0===V?void 0:null===(Q=V.data)||void 0===Q?void 0:Q.status)===!1||(null==t?void 0:null===(et=t.data)||void 0===et?void 0:null===(ee=et.data)||void 0===ee?void 0:ee.status)===!1)){R("pending"),P(),K("Pending Status",(null==t?void 0:null===(es=t.data)||void 0===es?void 0:null===(ed=es.data)||void 0===ed?void 0:ed.message)?null==t?void 0:null===(ec=t.data)||void 0===ec?void 0:null===(eu=ec.data)||void 0===eu?void 0:eu.message:"Request status is pending. Please wait for 2 minutes and refresh","warning","on");return}if((null==t?void 0:t.data)&&d.h.save(s.us.current_response,null==t?void 0:t.data),t.ok||R("pending"),(null==t?void 0:t.ok)&&(null==t?void 0:null===(en=t.data)||void 0===en?void 0:en.data)&&(null==t?void 0:null===(el=t.data)||void 0===el?void 0:el.status)===!0){let e=null==t?void 0:null===(em=t.data)||void 0===em?void 0:null===(ev=em.data)||void 0===ev?void 0:ev.data;try{q(null==N?void 0:N.customer_number,Date.now())}catch(e){}if(e.totalAmountPaid=parseFloat(null==N?void 0:N.amount),e.vendAmount=parseFloat(null==N?void 0:N.amount),!N.isDirect){let t=null==e?void 0:null===(ew=e.parcels)||void 0===ew?void 0:e
1w.filter(e=>"KCT1"===e.type||"KCT2"===e.type);t||(t=null==e?void 0:null===(eN=e.info)||void 0===eN?void 0:null===(eD=eN.parcels)||void 0===eD?void 0:eD.filter(e=>"KCT1"===e.type||"KCT2"===e.type)),t_=(null==e?void 0:null===(ek=e.info)||void 0===ek?void 0:ek.ti)?null==e?void 0:null===(ej=e.info)||void 0===ej?void 0:ej.ti:(null==e?void 0:e.ti)?null==e?void 0:e.ti:t_,tS=(null==e?void 0:null===(eA=e.info)||void 0===eA?void 0:eA.tariff)?null==e?void 0:null===(eE=e.info)||void 0===eE?void 0:eE.tariff:(null==e?void 0:e.tariff)?null==e?void 0:e.tariff:tS,tE=t.length?null===(eC=null==t?void 0:t.find(e=>"KCT1"===e.type))||void 0===eC?void 0:eC.content:tE,tC=t.length?null===(e_=null==t?void 0:t.find(e=>"KCT2"===e.type))||void 0===e_?void 0:e_.content:tC,tB=(null===(eS=e.info)||void 0===eS?void 0:eS.customerClass)?null===(eB=e.info)||void 0===eB?void 0:eB.customerClass:(null==e?void 0:e.customerClass)?null==e?void 0:e.customerClass:tB,tM=(null===(eM=e.info)||void 0===eM?void 0:eM.customerCategory)?null===(eY=e.info)||void 0===eY?void 0:eY.customerCategory:(null==e?void 0:e.customerCategory)?null==e?void 0:e.customerCategory:tM}L({krntoken1:tE,krntoken2:tC,ti:t_,tariff:tS,customerClass:tB,customerCategory:tM,...null==t?void 0:null===(ef=t.data)||void 0===ef?void 0:null===(ep=ef.data)||void 0===ep?void 0:ep.data});let i=(null==e?void 0:e.vendTime)?null==e?void 0:e.vendTime:(0,D.WU)(new Date,"DD-MM-YYYY MM:mm A"),a="MeterToken purchase success:\n              \n ".concat((null==e?void 0:e.token)?" Your token is: "+(0,s.EA)(e.token)+"\n Date: "+i:"","\n              \n Units: ").concat((null==e?void 0:e.units)?null==e?void 0:e.units:"","\n              \n Meter: ").concat((null==N?void 0:N.customer_number)?null==N?void 0:N.customer_number:"","\n              \n Amount: ").concat((null==e?void 0:e.totalAmountPaid)?null==e?void 0:e.totalAmountPaid:"","\n              \n Debt Paid: ").concat((null==e?void 0:e.debtAmount)?null==e?void 0:e.debtAmount:"","\n              \n Debt Remaining: ").concat((null==e?void 0:e.debtRemaining)?null==e?void 0:e.debtRemaining:"","\n              \n VAT: ").concat((null==e?void 0:e.tax)?null==e?void 0:e.tax:"","\n              ");c.g9.post("/",{type:"send-email",to:T.email,message:a,subject:"Purchase success ".concat(new Date().toDateString())}).then(e=>{e.ok});let o={krntoken1:tE,krntoken2:tC,ti:t_,tariff:tS,customerClass:tB,customerCategory:tM,...null==t?void 0:null===(eg=t.data)||void 0===eg?void 0:null===(eh=eg.data)||void 0===eh?void 0:eh.data};if(d.h.save(s.us.purchase_response,o),await f.M.create({id:(0,s.dz)("text"),amount:parseInt(null==N?void 0:N.service_charge),ref:null==N?void 0:N.reference,isDirect:null==N?void 0:N.isDirect,biller:null==N?void 0:N.biller,email:null==T?void 0:T.email,phone:null==T?void 0:T.phone,user_id:T.id,access_key:E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",created_date:new Date().getTime()}),((null==T?void 0:null===(eb=T.account_type)||void 0===eb?void 0:eb.toLowerCase())==="business"||(null==T?void 0:null===(ey=T.account_type)||void 0===ey?void 0:ey.toLowerCase())==="agent")&&(null==T?void 0:T.approved)){let t=await h.v.read(T.id).catch(e=>console.log(e," error getting detail")),l=(null==t?void 0:t.deal)?null==t?void 0:t.deal:s.RL,i=Object.values(l),a=i.find(e=>e.abbr===n.abbr),r="business"===T.account_type?"merchant":"agent",d=getmeterTypes(o),c=d.isnmd?null==a?void 0:null===(eT=a.commissions)||void 0===eT?void 0:null===(eP=eT[r])||void 0===eP?void 0:eP.nmd:null==a?void 0:null===(eO=a.commissions)||void 0===eO?void 0:null===(eI=eO[r])||void 0===eI?void 0:eI.md;c=c||a[r];let v=parseFloat(c)*u,p=(0,s.$6)((null==N?void 0:N.biller)||(null==n?void 0:n.name),d.ismd);!1===p&&(v=0),await m.Q.create({id:(0,s.dz)("text"),amount:v<=1e3?v:1e3,isDirect:null==N?void 0:N.isDirect,paid:null==e?void 0:e.totalAmountPaid,redeemed:!1,biller:null==N?void 0:N.biller,email:null==T?void 0:T.email,phone:null==T?void 0:T.phone,user_id:T.id,ref:null==N?void 0:N.reference,access_key:E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",created_date:new Date().getTime()})}let r={data:null==t?void 0:null===(ex=t.data)||void 0===ex?void 0:ex.data,id:(0,s.dz)("text"),customer:l,disco:n,meter:null==N?void 0:N.customer_number,ref:null==N?void 0:N.reference,biller:null==N?void 0:N.biller,email:null==T?void 0:T.email,phone:null==T?void 0:T.phone,user_id:T.id,krntoken1:tE||"",krntoken2:tC||"",ti:t_||"",tariff:tS||"",customerCategory:tM||"",customerClass:tB||"",status:"success",created_date:new Date().getTime()};
1await p.PH.create(r).catch(e=>console.log("929 Error saving history",e)),d.h.save(s.us.last_purchase,N),d.h.remove(s.us.current_path),d.h.remove(s.us.current_data),d.h.remove(s.us.current_transaction),d.h.remove(s.us.current_response),R("success"),P();return}if(null==N?void 0:N.isDirect){if((null==t?void 0:null===(eR=t.data)||void 0===eR?void 0:null===(eF=eR.data)||void 0===eF?void 0:null===(eK=eF.data)||void 0===eK?void 0:eK.status)===!1||(null==t?void 0:null===(eL=t.data)||void 0===eL?void 0:null===(ez=eL.data)||void 0===ez?void 0:ez.status)===!1||(null==t?void 0:null===(eU=t.data)||void 0===eU?void 0:null===(eH=eU.data)||void 0===eH?void 0:eH.message)==="Awaiting_service_provider"||(null==t?void 0:null===(eq=t.data)||void 0===eq?void 0:null===(eJ=eq.data)||void 0===eJ?void 0:null===(eW=eJ.data)||void 0===eW?void 0:eW.message)==="Awaiting_service_provider"){R("pending"),P(),K("Pending Status",(null==t?void 0:null===(e0=t.data)||void 0===e0?void 0:null===(e$=e0.data)||void 0===e$?void 0:e$.message)?null==t?void 0:null===(e5=t.data)||void 0===e5?void 0:null===(e1=e5.data)||void 0===e1?void 0:e1.message:"Request status is pending. Please wait for 2 minutes and refresh","warning","on");return}if((null==t?void 0:null===(eX=t.data)||void 0===eX?void 0:null===(eZ=eX.data)||void 0===eZ?void 0:eZ.status)==="failed"||(null==t?void 0:null===(eV=t.data)||void 0===eV?void 0:null===(eQ=eV.data)||void 0===eQ?void 0:null===(eG=eQ.data)||void 0===eG?void 0:eG.status)==="failed"){tk.removeAttribute("disabled"),R("failed");let e=await c.g9.post("/",{type:"refund-wallet",amount:await (0,A.encryptData)(parseFloat(N.total)),userId:T.id});e.ok&&(O({...I,balance:null==e?void 0:null===(e3=e.data)||void 0===e3?void 0:e3.newBalance}),await g.WH.create({id:(0,s.dz)(),transaction_id:null==N?void 0:N.reference,flw_ref:null==N?void 0:N.reference,amount:null==N?void 0:N.total,type:"credit",balance:null==e?void 0:null===(e9=e.data)||void 0===e9?void 0:e9.newBalance,status:"refunded",user_id:null==T?void 0:T.id,email:null==T?void 0:T.email,access_key:E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",created_date:new Date})),P(),K("Request failed!",(null==t?void 0:null===(e6=t.data)||void 0===e6?void 0:null===(e2=e6.data)||void 0===e2?void 0:e2.message)?null==t?void 0:null===(e4=t.data)||void 0===e4?void 0:null===(e8=e4.data)||void 0===e8?void 0:e8.message:"Your request failed and a refund has been proceed, please try agian later.","warning","on");return}P();return}if(!(null==N?void 0:N.isDirect)){if(((null==t?void 0:null===(te=t.data)||void 0===te?void 0:null===(e7=te.data)||void 0===e7?void 0:e7.responseCode)===202)((null==t?void 0:null===(tl=t.data)||void 0===tl?void 0:null===(tn=tl.data)||void 0===tn?void 0:null===(tt=tn.data)||void 0===tt?void 0:tt.responseCode)===202)){R("pending"),P(),K("Pending Status",(null==t?void 0:null===(tp=t.data)||void 0===tp?void 0:null===(tm=tp.data)||void 0===tm?void 0:tm.message)?null==t?void 0:null===(th=t.data)||void 0===th?void 0:null===(tf=th.data)||void 0===tf?void 0:tf.message:"Request status is pending. Please wait for 2 minutes and refresh","warning","on");return}if((null==t?void 0:null===(ta=t.data)||void 0===ta?void 0:null===(ti=ta.data)||void 0===ti?void 0:ti.responseCode)!==202&&(null==t?void 0:null===(tr=t.data)||void 0===tr?void 0:null===(to=tr.data)||void 0===to?void 0:to.responseCode)!==200&&((null==t?void 0:null===(ts=t.data)||void 0===ts?void 0:null===(td=ts.data)||void 0===td?void 0:td.error)===!0||(null==t?void 0:null===(tv=t.data)||void 0===tv?void 0:null===(tc=tv.data)||void 0===tc?void 0:null===(tu=tc.data)||void 0===tu?void 0:tu.error)===!0)){tk.removeAttribute("disabled"),R("failed");let e=await c.g9.post("/",{type:"refund-wallet",amount:await (0,A.encryptData)(parseFloat(N.total)),userId:T.id});e.ok&&(O({...I,balance:null==e?void 0:null===(tw=e.data)||void 0===tw?void 0:tw.newBalance}),await g.WH.create({id:(0,s.dz)(),transaction_id:null==N?void 0:N.reference,flw_ref:null==N?void 0:N.reference,amount:null==N?void 0:N.total,type:"credit",balance:null==e?void 0:null===(tD=e.data)||void 0===tD?void 0:tD.newBalance,status:"refunded",user_id:null==T?void 0:T.id,email:null==T?void 0:T.email,access_key:E.env.A_KEY||"5868068670DA4845587
1552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",created_date:new Date})),P(),K("Request failed!",(null==t?void 0:null===(tb=t.data)||void 0===tb?void 0:null===(tg=tb.data)||void 0===tg?void 0:tg.message)?null==t?void 0:null===(tx=t.data)||void 0===tx?void 0:null===(ty=tx.data)||void 0===ty?void 0:ty.message:"Your request failed and a refund has been proceed, please try agian later.","warning","on");return}P();return}P(),null==e||null===(ei=e.target)||void 0===ei||ei.removeAttribute("disabled")}}catch(t){console.log(t,t.message,"Purchase error 519"),console.log(t,"purchase error"),P(),null==e||null===(tN=e.target)||void 0===tN||tN.removeAttribute("disabled"),K("Error","Error: ".concat(null==t?void 0:t.message,", please try again"),"danger","on")}},refreshTrans=async e=>{var t,n,l,i,a,o,r,u,v,g,b,y,x,w,D,k,j,A,C,_,S,B,M,I,O,F,z,U,W,J,q,Z,X,G,Q,V,$,ee,et,en,el,ei,ea,eo,er,ed,es,eu;e.preventDefault(),e.stopPropagation();let ec=e.target;if(ec.setAttribute("disabled",!0),Y(),T){try{let e=await c.g9.post("/",{type:"get-settings"});e=null===(t=null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.data)||void 0===t?void 0:t[0];let Y=parseFloat(null==N?void 0:N.amount);Y=e&&Y>=(null==e?void 0:e.gateWayThresh)&&!0===e.customerPayHiddencharges?Y-(null==e?void 0:e.gateWayPercent)*Y:Y,L(null),R("processing");let H=null==N?void 0:N.data,G=null==N?void 0:N.account,Q=(null==N?void 0:N.krntoken1)?null==N?void 0:N.krntoken1:"",V=(null==N?void 0:N.krntoken2)?null==N?void 0:N.krntoken2:"",$=(null==N?void 0:N.ti)?null==N?void 0:N.ti:(null==N?void 0:null===(l=N.account)||void 0===l?void 0:l.ti)?null==N?void 0:null===(i=N.account)||void 0===i?void 0:i.ti:"",ee=(null==N?void 0:N.tariff)?null==N?void 0:N.tariff:(null==N?void 0:null===(a=N.account)||void 0===a?void 0:a.tariff)?null==N?void 0:null===(o=N.account)||void 0===o?void 0:o.tariff:"",et=(null==N?void 0:N.customerClass)?null==N?void 0:N.customerClass:(null==N?void 0:null===(r=N.account)||void 0===r?void 0:r.customerClass)?null==N?void 0:null===(u=N.account)||void 0===u?void 0:u.customerClass:"",en=(null==N?void 0:null===(v=N.account)||void 0===v?void 0:v.customerCategory)?null==N?void 0:null===(g=N.account)||void 0===g?void 0:g.customerCategory:"",el=await c.g9.post("/",{ref:N.reference,type:"get-bill",direct:null==N?void 0:N.isDirect,biller:null==N?void 0:N.biller,meter:null==N?void 0:N.customer_number,email:null==T?void 0:T.email,channel:"Web"});if((null==el?void 0:null===(b=el.data)||void 0===b?void 0:b.status)===!1){P(),K("Requery Error","Requery failed, please contact support with this reference: ".concat(null==N?void 0:N.reference,", or keep retrying in few minutes"),"danger","on");return}if((null==el?void 0:el.ok)&&(null==el?void 0:null===(y=el.data)||void 0===y?void 0:y.data)||(null==el?void 0:el.ok)&&(null==el?void 0:null===(w=el.data)||void 0===w?void 0:null===(x=w.result)||void 0===x?void 0:x.data)){let e=(null==el?void 0:null===(k=el.data)||void 0===k?void 0:null===(D=k.result)||void 0===D?void 0:D.data)?null==el?void 0:null===(A=el.data)||void 0===A?void 0:null===(j=A.result)||void 0===j?void 0:j.data:null==el?void 0:null===(C=el.data)||void 0===C?void 0:C.data;if(!N.isDirect){let t=null==e?void 0:null===(M=e.parcels)||void 0===M?void 0:M.filter(e=>"KCT1"===e.type||"KCT2"===e.type);$=(null==e?void 0:e.tariffIndex)?null==e?void 0:e.tariffIndex:$,ee=(null==e?void 0:e.tariff)?null==e?void 0:e.tariff:$,Q=t.length?null===(I=null==t?void 0:t.find(e=>"KCT1"===e.type))||void 0===I?void 0:I.content:Q,V=t.length?null===(O=null==t?void 0:t.find(e=>"KCT2"===e.type))||void 0===O?void 0:O.content:V,et=(null==e?void 0:e.customerClass)?null==e?void 0:e.customerClass:et,en=(null==e?void 0:e.customerCategory)?null==e?void 0:e.customerCategory:en}e.totalAmountPaid=parseFloat(null==N?void 0:N.amount),e.vendAmount=parseFloat(null==N?void 0:N.amount);let t={krntoken1:Q,krntoken2:V,ti:$,tariff:ee,customerCategory:en,customerClass:et,...e};if(L({...t}),d.h.save(s.us.purchase_response,{...e}),await f.M.create({id:(0,s.dz)("text"),amount:parseInt(null==N?void 0:N.service_charge),ref:null==N?void 0:N.reference,isDirect:null==N?void 0:N.isDirect,biller:null==N?void 0:N.biller,email:null==T?void 0:T.email,phone:null==T?void 0:T.phone,krntoken1:Q||"",krntoken2:V||"",ti:$||"",tariff:ee||"",access_key:E.env.A_KEY||"5868068670DA4845587
1552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",customerCategory:en||"",customerClass:et||"",user_id:T.id,created_date:new Date().getTime()}),((null==T?void 0:null===(_=T.account_type)||void 0===_?void 0:_.toLowerCase())==="business"||(null==T?void 0:null===(S=T.account_type)||void 0===S?void 0:S.toLowerCase())==="agent")&&(null==T?void 0:T.approved)){let n=await h.v.read(T.id).catch(e=>console.log(e," error getting detail")),l=(null==n?void 0:n.deal)?null==n?void 0:n.deal:s.RL,i=Object.values(l),a=i.find(e=>e.abbr===H.abbr),o="business"===T.account_type?"merchant":"agent",r=getmeterTypes(t),d=r.isnmd?null==a?void 0:null===(z=a.commissions)||void 0===z?void 0:null===(F=z[o])||void 0===F?void 0:F.nmd:null==a?void 0:null===(W=a.commissions)||void 0===W?void 0:null===(U=W[o])||void 0===U?void 0:U.md;d=d||a[o];let u=parseFloat(d)*Y,c=(0,s.$6)((null==N?void 0:N.biller)||(null==H?void 0:H.name),r.ismd);!1===c&&(u=0),await m.Q.create({id:(0,s.dz)("text"),amount:u<=1e3?u:1e3,isDirect:null==N?void 0:N.isDirect,redeemed:!1,biller:null==N?void 0:N.biller,paid:null==e?void 0:e.totalAmountPaid,email:null==T?void 0:T.email,phone:null==T?void 0:T.phone,user_id:T.id,ref:null==N?void 0:N.reference,access_key:E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",created_date:new Date().getTime()})}let n={data:(null==N?void 0:N.isDirect)?e:{data:null==e?void 0:null===(B=e.result)||void 0===B?void 0:B.data},id:(0,s.dz)("text"),customer:G,disco:H,meter:null==N?void 0:N.customer_number,ref:null==N?void 0:N.reference,biller:null==N?void 0:N.biller,email:null==T?void 0:T.email,phone:null==T?void 0:T.phone,user_id:T.id,krntoken1:Q||"",krntoken2:V||"",ti:$||"",tariff:ee||"",access_key:E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F",customerClass:et||"",customerCategory:en||"",status:"success",created_date:new Date().getTime()};await p.PH.create(n).catch(e=>console.log("1281 Error saving history",e)),d.h.save(s.us.last_purchase,N),d.h.remove(s.us.current_path),d.h.remove(s.us.current_data),d.h.remove(s.us.current_transaction),d.h.remove(s.us.current_response),R("success"),P();return}if((null==N?void 0:N.isDirect)&&!el.ok){ec.removeAttribute("disabled"),R("pending"),P(),K("Requery failure!",(null==el?void 0:null===(J=el.data)||void 0===J?void 0:J.message)?null==el?void 0:null===(q=el.data)||void 0===q?void 0:q.message:"Please contact support","danger","on");return}(null==N?void 0:N.isDirect)||el.ok||(ec.removeAttribute("disabled"),R("pending"),P(),K("Requery failure!",(null==el?void 0:null===(Z=el.data)||void 0===Z?void 0:Z.message)?null==el?void 0:null===(X=el.data)||void 0===X?void 0:X.message:"Please contact support","danger","on"))}catch(t){P(),K("Requery Error","Requery failed, please contact support with this reference: ".concat(null==N?void 0:N.reference,", or keep retrying in few minutes"),"danger","on"),null==e||null===(G=e.target)||void 0===G||G.removeAttribute("disabled")}return}if(!T&&H)try{L(null),R("processing");let e=null==N?void 0:N.data,t=null==N?void 0:N.account,n=await c.g9.post("/",{ref:N.reference,type:"get-bill",direct:null==N?void 0:N.isDirect,biller:null==N?void 0:N.biller,meter:null==N?void 0:N.customer_number,email:null==H?void 0:H.email,channel:"Web"});if((null==n?void 0:n.ok)&&(null==n?void 0:null===(Q=n.data)||void 0===Q?void 0:Q.data)||(null==n?void 0:n.ok)&&(null==n?void 0:null===($=n.data)||void 0===$?void 0:null===(V=$.result)||void 0===V?void 0:V.data)){let l=(null==n?void 0:null===(et=n.data)||void 0===et?void 0:null===(ee=et.result)||void 0===ee?void 0:ee.data)?null==n?void 0:null===(el=n.data)||void 0===el?void 0:null===(en=el.result)||void 0===en?void 0:en.data:null==n?void 0:null===(ei=n.data)||void 0===ei?void 0:ei.data;L({krntoken1,krntoken2,...l}),d.h.save(s.us.purchase_response,{...l}),await f.M.create({id:(0,s.dz)("text"),amount:parseInt(null==N?void 0:N.service_charge),ref:null==N?void 0:N.reference,isDirect:null==N?void 0:N.isDirect,biller:null==N?void 0:N.biller,email:null==H?void 0:H.email,phone:null==H?void 0:H.phone,krntoken1,krntoken2,user_id:(0,s.dz)("text"),access_key:"".concat(E.env.A_KEY||"5868068670DA4845587
1552AABB60A6ED9BD46AF2B10D403358D5976E3981694F"),created_date:new Date().getTime()}),await p.PH.create({data:(null==N?void 0:N.isDirect)?l:{data:null==l?void 0:null===(ea=l.result)||void 0===ea?void 0:ea.data},id:(0,s.dz)("text"),customer:t,disco:e,meter:null==N?void 0:N.customer_number,ref:null==N?void 0:N.reference,biller:null==N?void 0:N.biller,email:null==H?void 0:H.email,phone:null==H?void 0:H.phone,krntoken1,krntoken2,user_id:(0,s.dz)("text"),access_key:"".concat(E.env.A_KEY||"5868068670DA4845587552AABB60A6ED9BD46AF2B10D403358D5976E3981694F"),status:"success",created_date:new Date().getTime()}),d.h.save(s.us.last_purchase,N),d.h.remove(s.us.current_path),d.h.remove(s.us.current_data),d.h.remove(s.us.current_transaction),d.h.remove(s.us.current_response),R("success"),P();return}if((null==N?void 0:N.isDirect)&&!n.ok){ec.removeAttribute("disabled"),R("pending"),P(),K("Requery failure!",(null==n?void 0:null===(eo=n.data)||void 0===eo?void 0:eo.message)?null==n?void 0:null===(er=n.data)||void 0===er?void 0:er.message:"Please contact support","danger","on");return}if(!(null==N?void 0:N.isDirect)&&!n.ok){ec.removeAttribute("disabled"),R("pending"),P(),K("Requery failure!",(null==n?void 0:null===(ed=n.data)||void 0===ed?void 0:ed.message)?null==n?void 0:null===(es=n.data)||void 0===es?void 0:es.message:"Please contact support","danger","on");return}}catch(t){P(),null==e||null===(eu=e.target)||void 0===eu||eu.removeAttribute("disabled")}},downloadReceipt=()=>{try{Y();var e={margin:[-1,1,1,1],filename:(new Date).toTimeString()+"metertoken.pdf",html2canvas:{scale:9,height:1150},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let t=document.getElementById("metertokenReceipt");html2pdf().set(e).from(t).save(),P()}catch(e){}},stepIcon=e=>"active"===e?(0,l.jsx)("div",{style:{width:"1.2rem",height:"1.2rem"},className:"spinner-grow text-white spinner-border-sm",role:"status",children:(0,l.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):"done"===e?(0,l.jsx)("i",{className:"bi bi-check-lg text-white",style:{fontSize:"1.1rem"}}):"fail"===e?(0,l.jsx)("i",{className:"bi bi-x-lg text-white",style:{fontSize:"1rem"}}):"pending"===e?(0,l.jsx)("i",{className:"bi bi-arrow-clockwise text-white",style:{fontSize:"1.1rem"}}):(0,l.jsx)("i",{className:"bi bi-three-dots text-white-50",style:{fontSize:"1.1rem"}});return(0,l.jsxs)(l.Fragment,{children:[!1===N&&(0,l.jsx)("div",{className:"col-12 col-lg-5 mx-auto mb-5",children:(0,l.jsx)(a.default,{})}),null===N&&(0,l.jsx)("div",{className:"w-100 d-flex align-items-center justify-content-center",style:{minHeight:"60vh"},children:(0,l.jsx)("div",{className:"spinner-border text-success",role:"status",children:(0,l.jsx)("span",{className:"visually-hidden",children:"Loading..."})})}),(null===(e=Object.keys(N||{}))||void 0===e?void 0:e.length)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.default,{}),(0,l.jsx)("main",{className:"container-fluid pb-5",style:{minHeight:"85vh"},children:(0,l.jsx)("div",{className:"d-flex flex-column align-items-center justify-content-center py-4",children:(0,l.jsxs)("div",{className:"col-12 col-md-8 col-lg-5 col-xl-4 mx-auto",children:[F&&(0,l.jsx)("div",{className:"d-flex align-items-center justify-content-center mb-4 gap-2",children:[{s:F?"processing"===F?"active":"done":"idle",label:"Processing"},{s:F&&"processing"!==F?"pending"===F?"pending":"failed"===F?"fail":"done":"idle",label:"Payment"},{s:"success"===F?"done":"failed"===F?"fail":"idle",label:"Confirmation"}].map((e,t)=>(0,l.jsxs)(i.Fragment,{children:[t>0&&(0,l.jsx)("div",{style:{width:32,height:2,backgroundColor:"done"===e.s?"rgba(25,135,84,0.8)":"rgba(255,255,255,0.2)"}}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"d-flex align-items-center justify-content-center rounded-circle mx-auto",style:{width:40,height:40,backgroundColor:"done"===e.s?"rgba(25,135,84,0.8)":"fail"===e.s?"rgba(220,53,69,0.7)":"active"===e.s||"pending"===e.s?"rgba(255,193,7,0.6)":"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)"},children:stepIcon(e.s)}),(0,l.jsx)("small",{className:"text-white-50 d-block mt-1",style:{fontSize:"0.7rem"},children:e.label})]})]},t))}),"pending"===F&&(0,l.jsx)("div",{className:"d-flex justify-content-center mb-3",children:(0,l.jsxs)("button",{onClick:refreshTrans,type:"button",className:"btn btn-warning rounded-pill px-4 fw-semibold shadow",children:[(0,l.jsx)("i",{className:"bi bi-arrow-clockwise me-1"})," Refresh Status"]})}),z&&(0,l.jsx)("div",{className:"d-flex justify-content-center mb-3",children:T&&(0,l.jsxs)(k(),{href:"/history",className:"btn btn-outline-light rounded-pill px-4 fw-semibold",children:[(0,l.jsx)("i",{className:"bi bi-clock-history me-1"})," Go to History"]})}),z?(0,l.jsx)("div",{id:"metertokenReceipt",children:(0,l.jsxs)("div",{id:"metertokenReceipt",ref:W,className:"card border-0 rounded-4 shadow overflow-hidden",style:{maxWidth:"560px",minWidth:"320px",backgroundColor:"#fff"},children:[(0,l.jsxs)("div",{style:{background:"linear-gradient(135deg, #198754 0%, #157347 100%)",padding:"20px"},children:[(0,l.jsx)("h5",{className:"text-center text-white fw-bold mb-3",children:"MeterToken Receipt"}),(0,l.jsxs)("div",{className:"d-flex justify-content-between flex-wrap gap-2",children:[(0,l.jsxs)("div",{className:"d-flex align-items-start",children:[(0,l.jsx)(x(),{width:44,height:44,alt:null==N?void 0:N.customer_name,src:"/logo.png",className:"rounded-3 me-2",style:{backgroundColor:"rgba(255,255,255,0.9)",padding:"3px"}}),(0,l.jsxs)("div",{className:"lh-1",children:[(0,l.jsx)("small",{style:{fontSize:"9px"},className:"text-white",children:(0,l.jsx)("strong",{children:"MeterToken Nigeria Ltd."})}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-white-50",children:[(0,l.jsx)("strong",{children:"Phone: "}),"+234-909-977-6606"]}),(0,l.jsx)("br",{}),(0,l.jsx)("small",{style:{fontSize:"9px"},className:"text-white-50",children:"[email protected]"})]})]}),(0,l.jsxs)("div",{className:"d-flex align-items-start",children:[w.u&&(0,l.jsx)(x(),{width:44,height:44,alt:null==N?void 0:N.customer_name,src:null===w.u||void 0===w.u?void 0:null===(t=w.u.find(e=>{var t;return e.abbr===(null==N?void 0:null===(t=N.data)||void 0===t?void 0:t.abbr)}))||void 0===t?void 0:t.image,className:"rounded-3 me-2",style:{backgroundColor:"rgba(255,255,255,0.9)",padding:"3px"}}),(0,l.jsxs)("div",{className:"lh-1",children:[(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-white",children:[(0,l.jsx)("strong",{children:"Customer: "}),null==N?void 0:null===(n=N.account)||void 0===n?void 0:n.name]}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-white-50",children:[(0,l.jsx)("strong",{children:"Address: "}),null==N?void 0:null===(y=N.account)||void 0===y?void 0:y.address]}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-white-50",children:[(0,l.jsx)("strong",{children:"Account: "}),null==N?void 0:N.customer_number]}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-white-50",children:[(0,l.jsx)("strong",{children:"Disco: "}),null==N?void 0:N.biller," (",null==N?void 0:N.vendType,")"]})]})]})]})]}),(0,l.jsxs)("div",{className:"card-body px-3 py-2",children:[Object.keys(z).map((e,t)=>{var n;if("vendTime"==e||"tariff"==e||"id"==e||"responseCode"==e||"responseMessage"==e||"freeUnitsType"===e||"freeUnits"===e||"status"===e||"parcels"===e||""===z[e]||"0"===z[e]||null===z[e]||0===z[e])return null;"token"===e&&(z[e]=(0,s.EA)(z[e]));let i=null,a=null;"krntoken1"===e&&(z[e]=(0,s.EA)(z[e]),i="KCT1 (recharge this first)"),"krntoken2"===e&&(z[e]=(0,s.EA)(z[e]),a="KCT2 (recharge this second)");let o="token"===e||"krntoken1"===e||"krntoken2"===e;return(0,l.jsxs)("div",{className:"d-flex justify-content-between align-items-start py-2 px-1 ".concat(o?"rounded-3 my-1":""),style:{borderBottom:o?"none":"1px solid #f0f
10f0",backgroundColor:o?"#f0fdf4":"transparent"},children:[(0,l.jsx)("div",{className:"me-auto",children:(0,l.jsx)("span",{className:"".concat(o?"text-success fw-bold":"text-muted"),style:{fontSize:o?"0.78rem":"0.75rem"},children:a||i||e})}),(0,l.jsx)("span",{className:"text-end ".concat(o?"fw-bold text-success":"text-dark"),style:{fontSize:o?"0.85rem":"0.78rem",maxWidth:"60%",wordBreak:"break-word"},children:null===(n=JSON.stringify(null==z?void 0:z[e]))||void 0===n?void 0:n.replace(/"/g,"")})]},t)}),(0,l.jsxs)("p",{className:"text-center text-muted mt-3 mb-1",style:{fontSize:"0.8rem"},children:[(0,l.jsx)("i",{className:"bi bi-calendar3 me-1"}),(0,D.WU)(new Date,"DD-MM-YYYY MM:mm A")]})]}),(0,l.jsx)("div",{className:"px-3 pb-3",children:(0,l.jsx)("div",{className:"d-grid",children:(0,l.jsxs)("button",{onClick:()=>downloadReceipt(z),disabled:!1,className:"btn btn-success btn-lg fw-bold",style:{borderRadius:"12px"},children:[(0,l.jsx)("i",{className:"bi bi-printer me-2"}),"Print Receipt"]})})})]})}):(0,l.jsxs)("div",{className:"rounded-4 shadow overflow-hidden",style:{backgroundColor:"rgba(255,255,255,0.12)",backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",border:"1px solid rgba(255,255,255,0.15)"},children:[(0,l.jsxs)("div",{className:"px-4 pt-4 pb-2",children:[(0,l.jsx)("h5",{className:"text-center text-white fw-bold mb-0",children:"Purchase Preview"}),(0,l.jsx)("p",{className:"text-center text-white-50 mb-0",style:{fontSize:"0.8rem"},children:"Review your transaction details"})]}),(0,l.jsx)("div",{className:"px-3 py-2",children:Object.keys(N).map((e,t)=>{var n;return"data"==e||"account"==e||"status"==e||""===N[e]||"0"===N[e]?null:(0,l.jsxs)("div",{className:"d-flex justify-content-between align-items-center py-2 px-2",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[(0,l.jsx)("span",{className:"text-white-50",style:{fontSize:"0.8rem"},children:e}),(0,l.jsx)("span",{className:"text-white fw-semibold text-end",style:{fontSize:"0.8rem",maxWidth:"60%",wordBreak:"break-word"},children:null===(n=JSON.stringify(N[e]))||void 0===n?void 0:n.replace(/"/g,"")})]},t)})}),(0,l.jsx)("div",{className:"p-3",children:"pending"!==F&&(0,l.jsx)("div",{className:"d-grid",children:(0,l.jsxs)("button",{onClick:makePurchase,className:"btn btn-success btn-lg fw-bold shadow",style:{borderRadius:"12px"},children:[(0,l.jsx)("i",{className:"bi bi-lightning-charge-fill me-2"}),"Buy Now"]})})})]})]})})})]}),(0,l.jsx)(r.default,{})]})}},88838:function(e,t,n){"use strict";n.r(t);var l=n(85893);t.default=e=>(0,l.jsx)("div",{id:"loader",children:(0,l.jsx)("div",{className:"spinner text-success"})})},48966:function(e,t,n){"use strict";n.r(t);var l=n(85893);t.default=()=>(0,l.jsx)("div",{className:"mt-3 mx-auto text-center",style:{maxWidth:"450px"},children:(0,l.jsxs)("address",{className:"text-light fw-bold fst-normal text-center",children:["No. 55, 6th Avenue, ",(0,l.jsx)("br",{})," Gwarinpa, Abuja ",(0,l.jsx)("br",{}),"+234-909-977-6607 | +234-909-977-6606 ",(0,l.jsx)("br",{}),(0,l.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})})},78862:function(e,t,n){"use strict";n.r(t);var l=n(85893);n(67294);var i=n(41664),a=n.n(i),o=n(88838),r=n(11163),d=n(4298),s=n.n(d),u=n(70900),c=n(48966),v=n(25675),m=n.n(v);t.default=()=>{var e;let t=(0,r.useRouter)(),navigate=()=>{var e;return(null===(e=t.pathname)||void 0===e?void 0:e.trim())!=="/"&&(document.getElementById("loader").style.display="block"),!0};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mt-5 d-flex flex-column align-items-center container-fluid py-4",style:{backgroundColor:"rgba(255,255,255,0.12)",backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",borderTop:"1px solid rgba(255,255,255,0.15)"},children:[(0,l.jsx)("nav",{className:"navbar navbar-expand-lg navbar-light",children:(0,l.jsx)("div",{className:"d-flex justify-content-center",children:(0,l.jsxs)("ul",{className:"navbar-nav footer flex-row",children:[(0,l.jsx)("li",{className:"nav-item",children:(0,l.jsx)(a(),{onClick:navigate,href:"/",className:"nav-link fs-6 fw-bold",children:"Buy Token"})}),(0,l.jsx)("li",{className:"nav-item",children:(0,l.jsx)(a(),{onClick:navigate,href:"/about",className:"nav-link fs-6",children:"About"})}),(0,l.jsx)("li",{onClick:navigate,className:"nav-item",children:(0,l.jsx)(a(),{href:"/policies",className:"nav-link fs-6",children:"Policies"})}),(0,l.jsx)("li",{onClick:navigate,className:"nav-item",children:(0,l.jsx)(a(),{href:"/blog",className:"nav-link fs-6",children:"Blog"})}),(0,l.jsx)("li",{onClick:navigate,className:"nav-item",children:(0,l.jsx)(a(),{href:"/faqs",className:"nav-link fs-6",children:"Faqs"})}),(0,l.jsx)("li",{onClick:navigate,className:"nav-item",children:(0,l.jsx)(a(),{href:"/contact",className:"nav-link fs-6",children:"Contact"})})]})})}),(0,l.jsx)(c.default,{}),(0,l.jsx)(u.default,{}),(0,l.jsx)("div",{className:"mt-3 text-center text-light",children:(0,l.jsxs)("small",{children:[(0,l.jsx)(m(),{alt:"valuepay",className:"me-3",src:"/value.png",width:20,height:16}),"Powered by ",(0,l.jsx)("a",{className:"fw-bolder",href:"https://valuepayng.com",target:"_blank",children:"ValuePay"})]})}),!(null==t?void 0:null===(e=t.pathname)||void 0===e?void 0:e.includes("admin"))&&(0,l.jsx)(s(),{dangerouslySetInnerHTML:{__html:"var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();\n        (function(){\n        var s1=document.createElement(\"script\"),s0=document.getElementsByTagName(\"script\")[0];\n        s1.async=true;\n        s1.src='https://embed.tawk.to/5fd2252ba1d54c18d8f25af8/default';\n        s1.charset='UTF-8';\n        s1.setAttribute('crossorigin','*');\n        s0.parentNode.insertBefore(s1,s0);\n        })();"}})]}),(0,l.jsx)(o.default,{})]})}},10606:function(e,t,n){"use strict";n.r(t);var l=n(85893),i=n(41664),a=n.n(i),o=n(25675),r=n.n(o),d=n(67294),s=n(93823),u=n(11163),c=n(14570);t.default=()=>{let e=(0,d.useRef)(),t=(0,u.useRouter)(),{wallet:n,user:i}=(0,s.Z)(),[o,v]=(0,d.useState)(!1);return(0,d.useEffect)(()=>
1{if("undefined"!=typeof document){let e=sessionStorage.getItem(c.us.current_session);e&&!o&&v(!0)}},[o,v,i]),(0,l.jsx)("nav",{className:"navbar navbar-expand-lg navbar-dark py-2 px-3",style:{backgroundColor:"rgba(0,0,0,0.35)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsx)(a(),{onClick:e=>{try{if("logo"==e.target.dataset.type){t.push("/");return}"/"!==t.pathname&&(document.getElementById("loader").style.display="block",t.back())}catch(e){t.push("/")}},href:"/",className:"navbar-brand d-flex align-items-center",children:"/"===t.pathname?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r(),{src:"/logo.png",alt:"Our Logo","data-type":"logo",className:"rounded-circle",width:42,height:42,priority:!0}),(0,l.jsx)("strong",{className:"ms-2 fw-bolder text-white",style:{fontSize:"1.15rem",letterSpacing:"0.5px"},children:"METERTOKEN"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r(),{src:"/logo.png",alt:"Our Logo",className:"rounded-circle","data-type":"logo",width:42,he
1ight:42,priority:!0}),(0,l.jsx)("button",{"data-type":"button",style:{width:34,height:34},className:"rounded-circle btn btn-outline-light text-center fw-bolder ms-2 p-0 border-0",children:(0,l.jsx)("i",{className:"bi bi-arrow-left fw-bolder align-middle",style:{fontSize:"1rem"}})})]})}),(0,l.jsx)("button",{onClick:t=>{let n=e.current.classList;e.current&&(n.contains("show")?n.remove("show"):n.add("show"))},className:"navbar-toggler border-0 p-1",type:"button","data-toggle":"collapse","data-target":"#navbarNav","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation",children:(0,l.jsx)("i",{className:"bi bi-list text-white",style:{fontSize:"1.8rem"}})}),(0,l.jsxs)("div",{ref:e,className:"collapse navbar-collapse",id:"navbarNav",children:[(0,l.jsx)("ul",{className:"navbar-nav d-flex justify-content-center"}),(0,l.jsxs)("div",{className:"mx-0 ms-lg-auto d-flex align-content-center align-items-center justify-content-center gap-2 mt-2 mt-lg-0",children:[!i&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a(),{href:"/login",children:(0,l.jsxs)("button",{className:"btn btn-outline-light btn-sm px-3 rounded-pill fw-semibold",children:[(0,l.jsx)("i",{className:"bi bi-lock-fill me-1"}),"Log In"]})}),(0,l.jsx)(a(),{href:"/register",children:(0,l.jsxs)("button",{className:"btn btn-success btn-sm px-3 rounded-pill fw-semibold",children:[(0,l.jsx)("i",{className:"bi bi-person-fill-add me-1"}),"Sign Up"]})})]}),i&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(a(),{className:"rounded-circle p-0 btn btn-outline-light d-flex align-items-center justify-content-center",style:{width:"32px",height:"32px"},href:"/user/".concat(i.id),children:(0,l.jsx)("i",{className:"bi bi-person-fill",style:{fontSize:"1.1rem"}})})}),n&&(0,l.jsxs)("button",{onClick:()=>t.push("/wallet"),className:"btn btn-sm btn-light rounded-pill fw-bold text-muted shadow-sm",children:["Wallet: ",(0,l.jsxs)("span",{className:"badge text-bg-success rounded-pill",children:["N",parseFloat(n.balance).toFixed(2)]})]}),i&&(0,l.jsx)("div",{className:"dropdown d-inline",children:(0,l.jsx)("button",{style:{width:32,height:32},className:"btn btn-outline-light dropdown-toggle btn-sm p-0 border-0 rounded-circle",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#offcanvasRight","aria-controls":"offcanvasRight",children:""})})]})]})]})})}},16031:function(e,t,n){"use strict";n.r(t);var l=n(85893);n(67294);var i=n(41664),a=n.n(i);t.default=()=>(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"d-flex align-items-center justify-content-center h-100",style:{minHeight:"100vh"},children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("h1",{className:"text-muted",children:"404 Not Found"}),(0,l.jsx)("p",{className:"text-secondary",children:"Sorry, looks like what your looking for does not exists."}),(0,l.jsx)(a(),{href:"/",className:"btn btn-outline-success rounded-pill",children:"Back to home"})]})})})},70900:function(e,t,n){"use strict";n.r(t);var l=n(85893);t.default=()=>(0,l.jsxs)("div",{className:"d-flex justify-content-center mt-3",style:{maxWidth:"300px",height:"57px"},children:[(0,l.jsx)("a",{className:"social-icon me-2",href:"https://web.facebook.com/settings?tab=profile&section=username",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("i",{className:"bi bi-facebook",style:{fontSize:"1.5em"}})}),(0,l.jsx)("a",{className:"social-icon me-2",href:"https://twitter.com/metertoken",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("i",{className:"bi bi-twitter",style:{fontSize:"1.5em"}})}),(0,l.jsx)("a",{className:"social-icon me-2",href:"https://web.whatsapp.com/send?phone=2349099776606&text=I%20want%20to%20buy%20meter%20unit",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("i",{className:"bi bi-whatsapp",style:{fontSize:"1.5em"}})}),(0,l.jsx)("a",{className:"social-icon me-2",href:"https://www.instagram.com/p/CpuRdptIuiN/?utm_source=ig_web_copy_link",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("i",{className:"bi bi-instagram",style:{fontSize:"1.5em"}})}),(0,l.jsx)("a",{className:"social-icon",href:"https://www.youtube.com/channel/UCF73YmEu8eYXtRhDuRcwS4g",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)("i",{className:"bi bi-youtube",style:{fontSize:"1.5em"}})})]})},4298:function(e,t,n){e.exports=n(85354)}},function(e){e.O(0,[3714,1664,5675,1876,6817,9774,2888,179],function(){return e(e.s=44228)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.