1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3225],{51089:function(e,t,s){s.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"},{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"}]},13225:function(e,t,s){s.r(t);var l=s(85893),i=s(51089),a=s(14570),n=s(19432),r=s(25675),o=s.n(r);t.default=e=>{var t;let{data:s=null,success:r={},disco:d,main:m=null,downloadReceipt:c=()=>null}=e;return(0,l.jsx)(l.Fragment,{children:s&&(0,l.jsxs)("div",{id:"metertokenReceiptMainExternal",className:"w-100 p-3 position-absolute p-xl-5",style:{display:"block",minWidth:"100vw",minHeight:"100vh"},children:[(0,l.jsx)("div",{onClick:()=>{let e=document.getElementById("metertokenReceiptMainExternal");e.style.display="none"}
1,role:"button",style:{top:"15px",right:"35px",width:"45px",height:"45px",lineHeight:"30px",textAlign:"center"},className:"position-absolute rounded-circle btn btn-danger",children:(0,l.jsx)("i",{className:"bi bi-x-lg text-white"})}),(0,l.jsxs)("div",{id:"metertokenReceipt",className:"card border border-secondary-subtle mt-5 rounded-3 mx-auto",style:{minWidth:"280px",maxWidth:"560px"},children:[(0,l.jsxs)("div",{className:"card-header bg-light border-0 border-bottom",children:[(0,l.jsx)("h5",{className:"text-center text-success fw-bolder",children:"MeterToken Receipt"}),(0,l.jsxs)("div",{className:"d-flex align-items-start justify-content-evenly mt-2 flex-row",children:[(0,l.jsxs)("div",{className:"d-flex me-2",children:[(0,l.jsx)("div",{children:(0,l.jsx)(o(),{width:60,height:60,alt:null==s?void 0:s.customer_name,src:"/logo.png",className:"img img-thumbnail d-block"})}),(0,l.jsxs)("div",{className:"ms-2 lh-1",children:[(0,l.jsx)("small",{style:{fontSize:"11px"},className:"text-muted",children:(0,l.jsx)("strong",{children:"MeterToken Nigeria Limited."})}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"11px"},className:"text-muted",children:[(0,l.jsx)("strong",{children:"Phone: "}),"+234-909-977-6607"]}),(0,l.jsx)("br",{}),(0,l.jsx)("small",{style:{fontSize:"10px"},className:"text-muted",children:"[email protected]"})]})]}),(0,l.jsxs)("div",{className:"d-flex",children:[(0,l.jsx)("div",{children:(null==d?void 0:d.abbr)&&(0,l.jsx)(o(),{width:60,height:60,alt:null==s?void 0:s.customer_name,src:null===(t=i.u.find(e=>e.abbr===(null==d?void 0:d.abbr)))||void 0===t?void 0:t.image,className:"img img-thumbnail d-block"})}),(0,l.jsxs)("div",{className:"ms-2 lh-1",children:[(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-muted",children:[(0,l.jsx)("strong",{children:"Customer: "}),null==s?void 0:s.name]}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-muted",children:[(0,l.jsx)("strong",{children:"Address: "}),null==s?void 0:s.address]}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-muted",children:[(0,l.jsx)("strong",{children:"Account: "}),null==s?void 0:s.meterNo]}),(0,l.jsx)("br",{}),(0,l.jsxs)("small",{style:{fontSize:"9px"},className:"text-muted",children:[(0,l.jsx)("strong",{children:"Disco: "}),null==s?void 0:s.discoCode," (",null==s?void 0:s.vendType,")"]})]})]})]})]}),(0,l.jsxs)("div",{className:"card-body",children:[(0,l.jsxs)("ul",{className:"list-group list-group-flush",children:[Object.keys(r).map((e,t)=>{var s;if("vendTime"==e||"tariff"==e||"id"==e||"responseCode"==e||"responseMessage"==e||"freeUnitsType"===e||"freeUnits"===e||"status"===e||""===r[e]||"0"===r[e]||0===r[e])return null;"token"===e&&(r[e]=(0,a.EA)(r[e]));let i=null,n=null;return"krntoken1"===e&&(r[e]=(0,a.EA)(r[e]),i="KCT1 (recharge this first)"),"krntoken2"===e&&(r[e]=(0,a.EA)(r[e]),n="KCT2 (recharge this second)"),(0,l.jsx)(l.Fragment,{children:r[e]&&(0,l.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-start py-1",style:{fontSize:"13px"},children:[(0,l.jsx)("div",{className:"ms-2 me-auto",children:(0,l.jsx)("div",{className:"fw-bold text-muted",children:n||i||e})}),(0,l.jsx)("span",{className:"text-muted fw-light",children:null===(s=JSON.stringify(null==r?void 0:r[e]))||void 0===s?void 0:s.replace(/"/g,"")})]},t)})}),m&&(null==m?void 0:m.ti)?(0,l.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-start py-1",style:{fontSize:"13px"},children:[(0,l.jsx)("div",{className:"ms-2 me-auto",children:(0,l.jsx)("div",{className:"fw-bold text-muted",children:"Tarrif Index"})}),(0,l.jsx)("span",{className:"text-muted fw-light",children:null==m?void 0:m.ti})]}):null,m&&(null==m?void 0:m.customerClass)?(0,l.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-start py-1",style:{fontSize:"13px"},children:[(0,l.jsx)("div",{className:"ms-2 me-auto",children:(0,l.jsx)("div",{className:"fw-bold text-muted",children:"Meter Class"})}),(0,l.jsx)("span",{className:"text-muted fw-light",children:null==m?void 0:m.customerClass})]}):null,m&&(null==m?void 0:m.customerCategory)?(0,l.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-start py-1",style:{fontSize:"13px"},children:[(0,l.jsx)("div",{className:"ms-2 me-auto",children:(0,l.jsx)("div",{className:"fw-bold text-muted",children:"Meter Class"})}),(0,l.jsx)("span",{className:"text-muted fw-light",children:null==m?void 0:m.customerCategory})]}):null,m&&(null==m?void 0:m.tariff)?(0,l.jsxs)("li",{className:"list-group-item d-flex justify-content-between align-items-start py-1",style:{fontSize:"13px"},children:[(0,l.jsx)("div",{className:"ms-2 me-auto",children:(0,l.jsx)("div",{className:"fw-bold text-muted",children:"Tariff"})}),(0,l.jsx)("span",{className:"text-muted fw-light",children:null==m?void 0:m.tariff})]}):null]}),(0,l.jsxs)("p",{className:"text-center text-muted mt-2",children:["Date: ",(0,n.WU)(new Date,"DD-MM-YYYY MM:mm A")]})]}),(0,l.jsx)("div",{className:"card-footer border-0 bg-light",children:(0,l.jsx)("div",{className:"d-grid gap-2",children:(0,l.jsx)("button",{onClick:()=>c(r),disabled:!1,className:"btn btn-success btn-lg border-0",children:"Print Receipt"})})})]})]})})}}}]);
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.