PageSourceSearch

https://www.kongapay.com/_next/static/chunks/3339-d5d7ba3474307a42.js

js kongapay.com collected 2026-09-24 17:38:27 UTC 7,751 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3339],{55943:(e,t,l)=>{l.d(t,{A:()=>x});var a=l(14232),n=l(31914),r=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,u=(e,t,l)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;let c=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),a.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),x=(0,a.forwardRef)((e,t)=>a.createElement(n.A,i(((e,t)=>{for(var l in t||(t={}))o.call(t,l)&&u(e,l,t[l]);if(d)for(var l of d(t))m.call(t,l)&&u(e,l,t[l]);return e})({ref:t},e),s({weights:c}))));x.displayName="CaretUp"},67029:(e,t,l)=>{l.d(t,{A:()=>E,Z:()=>N});var a=l(37876),n=l(14232),r=l(46957),i=l(83097),s=l(41121),d=l(74695),o=l(818),m=l(97874),u=l(55051),c=l(36768),x=l(57370),v=l(30227),p=l(56073),h=l(97374),g=l(77920),b=l(70818),f=l(17356),y=l(67768);let N=100025,E=e=>{let{formValues:t,paymentType:l,setActiveView:E,previewData:j,createOrderPayload:w,p2pTransferPayload:A,setOrderResponse:P}=e,L=(0,y.jE)(),[k,q]=(0,n.useState)(),[I,M]=(0,n.useState)([]),[S,O]=(0,n.useState)(0),[T,_]=(0,n.useState)(Number(null==j?void 0:j.amount)),Z=(0,d.d4)(u.$0),{isLoading:F,data:C,refresh:D,error:J}=(0,m.A)({phoneNumber:(null==Z?void 0:Z.mobile)||(null==Z?void 0:Z.phone),sphinx:!0}),H=(0,d.wA)(),{showModal:K}=(0,c.h)(),B=(0,d.d4)(g.nt),G=(0,d.d4)(u.$0),R=async()=>{H((0,o.Eq)(!0));try{let a={...w},n={keyboard_id:null==C?void 0:C.id,pinIndexes:I.join(";"),account_number:null==B?void 0:B.id,user:Z,source:"web","app-version":"v1.121435"};try{var e,t,l;let r=await (0,v.ES)(a,n);if((null==r||null==(e=r.data)?void 0:e.status)!=="error")L.invalidateQueries({queryKey:["dailytransactionLimit"]}),H((0,b.KP)()),E("success"),P(null==r?void 0:r.data);else throw null!=(l=null==r||null==(t=r.data)?void 0:t.message)?l:"Error Purchasing Product"}catch(e){D(),K([],x.A,()=>null,"",null!=e?e:"Oops, please try again!")}finally{H((0,o.Eq)(!1))}}catch(e){D(),H((0,o.Eq)(!1)),K([],x.A,()=>null,"","Oops, please try again!")}H((0,o.Eq)(!1))},Y=async()=>{var e,t,l;H((0,o.Eq)(!0));try{A={...A,initiatorName:(null==G?void 0:G.firstName)+" "+(null==G?void 0:G.lastName),initiatorID:null==G?void 0:G.id,initiatorAccountNumber:null==B?void 0:B.id,pinIndexes:I.join(";"),username:null==C?void 0:C.id};let t=await (0,h.nx)(A);(null==t?void 0:t.status)==="success"?(L.invalidateQueries({queryKey:["dailytransactionLimit"]}),H((0,b.KP)()),E("success"),P(null==t?void 0:t.data)):(D(),K([],x.A,()=>{},(0,f.J)(null!=(e=null==t?void 0:t.message)?e:""),(0,f.J)(null!=t?t:"")?"":null!=t?t:"Something went wrong, please try again later")),H((0,o.Eq)(!1))}catch(e){D(),H((0,o.Eq)(!1)),K([],x.A,()=>null,(0,f.J)(null!=(t=null==e?void 0:e.message)?t:""),(0,f.J)(null!=(l=null==e?void 0:e.message)?l:"")?"":null!=e?e:"Something went wrong, please try again later")}};return(0,n.useEffect)(()=>{var e;let t=async()=>{var e,t;H((0,o.Eq)(!0));try{let t={amount:Number(null==j?void 0:j.amount)},l=await (0,h.PE)(t);O(null==l||null==(e=l.data)?void 0:e.totalCharge),H((0,o.Eq)(!1))}catch(e){D(),H((0,o.Eq)(!1)),K([],x.A,()=>null,(0,f.J)(null!=(t=null==e?void 0:e.message)?t:""),e)}};(null==j?void 0:j.paymentType.toLocaleLowerCase())==="transfer"&&(null==j||null==(e=j.bank)?void 0:e.toString())!==N.toString()&&t()},[]),(0,n.useEffect)(()=>{(null==I?void 0:I.length)===4&&(()=>{if("BILL_PAYMENT"===l)return R();"TRANSFER"===l&&Y()})()},[I]),(0,n.useEffect)(()=>{M([])},[F]),(0,n.useEffect)(()=>{"BILL_PAYMENT"===l&&_((0,p.PH)(Number(null==j?void 0:j.amount),null==j?void 0:j.discount))},[null==j?void 0:j.amount,l,null==j?void 0:j.discount]),(0,a.jsxs)("div",{className:"min-h-[80vh] lg:border-x border-slate-500 border-opacity-25 ",children:[(0,a.jsxs)("div",{className:"flex w-full border-b border-slate500 border-opacity-25 justify-end px-[2.5rem] items-center",children:[(0,a.jsxs)("div",{className:"py-[1rem]  text-right  mr-[0.5rem]",children:[(0,a.jsxs)("div",{className:"text-right ",children:[(0,a.jsx)("span",{className:"text-black text-[0.875rem] mr-1 font-medium leading-[0.875rem]",children:(0,p.mn)(Number(null==j?void 0:j.amount))}),(0,a.jsx)("span",{className:"text-black text-[0.625rem] font-bold leading-[0.625rem]",children:"NGN"})]}),(0,a.jsxs)("div",{className:" justify-start items-start gap-1 inline-flex mb-[0.5rem]",children:[(0,a.jsx)("div",{className:"text-right capitalize text-slate-500 text-xs font-normal leading-3",children:null==j?void 0:j.paymentType}),(0,a.jsx)("div",{className:"text-right text-rose-500 text-xs font-normal leading-3",children:"•"}),(0,a.jsx)("div",{className:"text-right text-slate-500 text-xs font-normal leading-3",children:(null==j?void 0:j.beneficiaryName)||(null==j?void 0:j.identifier)})]}),(null==j?void 0:j.beneficiaryName)&&(0,a.jsx)("div",{className:"text-right text-slate-500 text-opacity-50 text-[0.75rem] font-medium leading-3",children:j.identifier})]}),(0,a.jsx)("img",{src:null==j?void 0:j.providerImage,className:" w-[2.25rem] h-[2.25rem] rounded-full",alt:""})]}),(0,a.jsxs)(r._,{classNames:"mx-[2.5rem] !border-t-0 !rounded-t-none",children:["BILL_PAYMENT"!==l&&(0,a.jsxs)("div",{className:"px-[1.25rem] py-[1rem] flex justify-between border-b border-slate500 border-opacity-25",children:[(0,a.jsx)("div",{className:"text-center text-slate-500 text-sm font-semibold leading-[1.3rem]",children:"Fees"}),(0,a.jsxs)("div",{className:"text-right text-black text-sm font-semibold leading-[1.3rem]",children:[(0,p.mn)(Number((null==j?void 0:j.paymentType)==="Transfer"?S:0))," ","NGN"]})]}),(0,a.jsxs)("div",{className:"px-[1.25rem] py-[1rem] flex justify-between  ",children:[(0,a.jsx)("div",{className:"text-center text-black text-sm font-bold leading-[1.3rem]",children:"Total"})," ",(0,a.jsxs)("div",{className:"text-right text-sm font-bold leading-[1.3rem] flex flex-col",children:[(0,a.jsxs)("span",{className:"text-pink-600",children:[(0,p.mn)(T)," NGN"]}),T<Number(null==j?void 0:j.amount)&&(0,a.jsx)("span",{className:"text-xs font-light",children:"Discount Applied \uD83E\uDD29"})]})]})]}),(0,a.jsx)("div",{className:"my-[2.5rem] text-center text-black text-base  leading-normal",children:"Enter your PIN to confirm"}),(0,a.jsxs)("div",{className:"max-w-[22.5rem] mx-auto",children:[(0,a.jsx)(i.$,{value:I.map(e=>"0").join(""),setValue:q,classNames:"!m-0 !mx-auto",numInputs:4,isEncryptedText:!0,specialCase:!0}),(0,a.jsx)(s.A,{images:null==C?void 0:C.images,selectedIndexes:I,setSelectedIndexes:M,loading:F,error:J})]})]})}}}]);

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.