PageSourceSearch

https://dubhub-demo.netlify.app/_next/static/chunks/2438.81405b5a16979a95a0e6.js

js dubhub-demo.netlify.app collected 2026-10-03 10:41:20 UTC 7,289 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2438],{8750:function(e,n,t){t.d(n,{Z:function(){return c}});t(7294);var a=t(5893);function c(e){var n=e.reverse,t=void 0!==n&&n;return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"38",viewBox:"0 0 38 38",children:(0,a.jsxs)("g",{id:"Group_127","data-name":"Group 127",transform:"translate(0.096 -0.214)",children:[(0,a.jsxs)("g",{id:"Ellipse_18","data-name":"Ellipse 18",transform:"translate(-0.096 0.214)",fill:t?"black":"white",stroke:"rgba(0,0,0,0)",strokeWidth:"1",children:[(0,a.jsx)("circle",{cx:"19",cy:"19",r:"19",stroke:"none"}),(0,a.jsx)("circle",{cx:"19",cy:"19",r:"18.5",fill:"none"})]}),(0,a.jsx)("path",{id:"Path_208","data-name":"Path 208",d:"M-113.356,1004.549l-7.5,7.233,7.5,6.564",transform:"translate(131.581 -992.398)",fill:"none",stroke:t?"white":"black",strokeLinecap:"round",strokeWidth:"2"}),(0,a.jsx)("path",{id:"Path_210","data-name":"Path 210",d:"M-118.748,1012.383h14.883",transform:"translate(130.653 -992.951)",fill:"none",stroke:t?"white":"black",strokeLinecap:"round",strokeWidth:"2"})]})})}},6482:function(e,n,t){t.d(n,{Z:function(){return c}});t(7294);var a=t(5893);function c(){return(0,a.jsxs)("svg",{"data-name":"credit-card (20)",xmlns:"http://www.w3.org/2000/svg",width:69.045,height:46,children:[(0,a.jsx)("path",{"data-name":"Path 1368",d:"M59.728 0H9.317A9.328 9.328 0 0 0 0 9.317v27.366A9.328 9.328 0 0 0 9.317 46h50.411a9.328 9.328 0 0 0 9.317-9.317V9.317A9.328 9.328 0 0 0 59.728 0ZM9.317 5.671h50.411a3.65 3.65 0 0 1 3.646 3.646v2.205H5.671V9.317a3.65 3.65 0 0 1 3.646-3.646Zm50.411 34.658H9.317a3.65 3.65 0 0 1-3.646-3.646V17.194h57.7v19.489a3.65 3.65 0 0 1-3.643 3.646Z",fill:"#fff"}),(0,a.jsx)("path",{"data-name":"Path 1369",d:"M12.661 25.4H9.488a2.083 2.083 0 1 0 0 4.165h3.173a2.083 2.083 0 1 0 0-4.165Z",fill:"#fff"})]})}},1543:function(e,n,t){t(7294);var a=t(4359),c=t(3935),i=t(5893);n.Z=function(e){return e.show?c.createPortal((0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.Z,{show:e.show,onHide:e.handleClose,centered:!0,children:[(0,i.jsx)(a.Z.Header,{closeButton:!0,children:(0,i.jsx)(a.Z.Title,{children:e.title})}),(0,i.jsx)(a.Z.Body,{children:e.children}),e.confirmation?(0,i.jsx)(a.Z.Footer,{children:(0,i.jsx)("button",{className:"cus-btn-black",onClick:e.handleProceed,children:"OK"})}):(0,i.jsxs)(a.Z.Footer,{children:[(0,i.jsx)("button",{className:"cus-btn-white",onClick:e.handleClose,children:"Cancel"}),(0,i.jsx)("button",{className:"cus-btn-black",onClick:e.handleProceed,children:"OK"})]})]})}),document.querySelector("#modal-root")):null}},2438:function(e,n,t){t.r(n);var a=t(7294),c=t(9249),i=t(7913),s=t(8750),l=t(6482),o=t(5890),r=t(7247),d=t(5158),u=t(6608),h=t(1543),f=t(2888),m=t(9161),v=t(5893);n.default=function(e){var n=e.selectedAccount,t=e.handleRemoveAccount,x=e.handleGoBack,j=(0,a.useState)(0),p=j[0],g=j[1],k=(0,a.useState)(""),N=k[0],b=k[1],w=(0,a.useState)(!1),Z=w[0],y=w[1],C=(0,a.useState)(!1),A=C[0],E=C[1],S=(0,a.useState)(),B=S[0],P=S[1],I=(0,a.useRef)(null),T=function(e){return d.tO.EXTERNAL_CARD===e},_=(0,a.useState)(!1),F=_[0],L=_[1],M=function(){return L(!1)};(0,a.useEffect)((function(){var e=o.FE.getStatus().subscribe((function(e){var n=e.loading;y(n)}));return function(){e.unsubscribe()}}),[]),(0,a.useEffect)((function(){var e=!0;if(n){var t=n.accountId,a=n.accountTypeId,i=n.accountTitle;if(P(i),!T(a))return o.FE.setLoadingStatus(!0),o.W4.getBankBalance({accountId:t}).then((function(n){var t=n.success,a=n.availableBalance,i=n.currentBalance,s=n.errorMessage;t?e&&g(a||i):(b(s),c.Am.error(s))})).finally((function(){o.FE.setLoadingStatus(!1)}))}return function(){e=!1}}),[n]),(0,a.useEffect)((function(){A&&I.current.focus()}),[A]);var W=function(){if(n)return o.W4.postAccountName({extAccountId:null===n||void 0===n?void 0:n.accountId,name:B}).then((function(e){var n=e.success,t=e.errorMessage;n?c.Am.success("Account name changed successfully"):c.Am.error(t)}))};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u.Z,{children:(0,v.jsx)(f.Z,{active:Z,spinner:(0,v.jsx)(m.Z,{}),children:(0,v.jsxs)("div",{className:"main-panel",children:[(0,v.jsx)("div",{className:"back-button",onClick:x,children:(0,v.jsx)(s.Z,{})}),(0,v.jsx)("div",{className:"container text-center pt-5 pb-3",children:(0,v.jsx)("h4",{className:"pt-2",children:T(null===n||void 0===n?void 0:n.accountTypeId)?"Bank Card Details":""})}),(0,v.jsx)("div",{className:"container text-center p-3",children:n&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"container text-center p-3",children:T(null===n||void 0===n?void 0:n.accountTypeId)?(0,v.jsx)(l.Z,{}):(0,v.jsxs)("div",{className:"col-lg-12 text-center",children:[(0,v.jsx)("img",{src:"data:image/jpeg;base64,".concat(null===n||void 0===n?void 0:n.instLogo),style:{width:"100px"},alt:"logo"}),(0,v.jsx)("div",{className:"input-locked-active",children:null===n||void 0===n?void 0:n.instName})]})}),(0,v.jsxs)("div",{className:"container text-center p-5",children:[(0,v.jsx)("div",{className:"info-group",children:(0,v.jsxs)("div",{className:"text-center",children:[(0,v.jsxs)("div",{className:"info-title",onClick:function(){A&&n&&B!==(null===n||void 0===n?void 0:n.accountTitle)&&W(B),E(!A)},children:["Account Name",(0,v.jsxs)("span",{className:"pointer text-white pl-2",children:[" ",A?(0,v.jsx)("i",{className:"fa-solid fa-circle-check","data-tip":!0,"data-for":"account-name-edit-tooltip"}):(0,v.jsx)("i",{className:"fa-solid fa-pencil","data-tip":!0,"data-for":"account-name-edit-tooltip"})]}),(0,v.jsx)(i.Z,{id:"account-name-edit-tooltip",type:"info",effect:"solid",place:"right",backgroundColor:"black",textColor:"white",children:A?"Save":"Edit"})]}),(0,v.jsx)("div",{className:"input-locked-active col-8 col-lg-5 col-md-5 col-sm-5 m-auto",children:A?(0,v.jsx)("input",{style:{textAlign:"center"},className:"form-control cus-input-edit-name",ref:I,value:B,onChange:function(e){e.stopPropagation(),P(e.target.value)}}):(0,v.jsx)("div",{className:"pt-2",children:B})})]})}),!T(null===n||void 0===n?void 0:n.accountTypeId)&&!N&&(0,v.jsxs)("div",{className:"info-group",children:[(0,v.jsx)("div",{className:"info-title",children:"Balance"}),(0,v.jsx)("div",{className:"input-locked-active",children:r.zW.format(p)})]}),(0,v.jsxs)("div",{className:"info-group",children:[(0,v.jsx)("div",{className:"info-title",children:"Status"}),(0,v.jsx)("div",{className:"input-locked-active account-status",children:null!==n&&void 0!==n&&n.ready?"Linked":"Not Linked"})]}),(0,v.jsx)("div",{className:"info-group p-3 p-md-5",children:(0,v.jsx)("button",{className:"btn cus-btn-white",onClick:function(){L(!0)},children:"Delete"})})]})]})})]})})}),(0,v.jsx)(h.Z,{show:F,handleClose:M,handleProceed:function(){M(),t()},title:T(null===n||void 0===n?void 0:n.accountTypeId)?"Remove Card":"Remove Bank Account",children:(0,v.jsxs)("p",{children:["Are you sure you want to delete this"," ",T(null===n||void 0===n?void 0:n.accountTypeId)?"card":"bank account"," ","from your Wallet?"]})})]})}},6608:function(e,n,t){var a=t(7294),c=t(5893);n.Z=a.memo((function(e){var n=e.children;return(0,c.jsx)("div",{className:"anima-container-center-horizontal",children:(0,c.jsx)("div",{className:"dashboard anima-screen container-center-horizontal min-vh-100",children:n})})}))}}]);

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.