PageSourceSearch

https://app.grof.co/_next/static/chunks/pages/business-account/wil…deleted_account-details-0afb05277c7f41a8.js

js grof.co collected 2026-10-07 20:36:54 UTC 14,386 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4959],{15246:function(s,o,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/business-account/will_deleted_account-details",function(){return l(98254)}])},98254:function(s,o,l){"use strict";l.r(o),l.d(o,{default:function(){return x}});var t=l(85893),e=l(67294),u=l(85495),r=l(19982),n=l(14578),c=function(){return(0,t.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_4075_194719)",children:[(0,t.jsx)("path",{d:"M2.33594 2.66675V6.66675H6.33594",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M15.668 13.3333V9.33325H11.668",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M14.1481 6.22184C13.8407 5.3723 13.3183 4.61276 12.6296 4.0141C11.9409 3.41543 11.1084 2.99715 10.2097 2.79827C9.31102 2.5994 8.37548 2.62643 7.49037 2.87682C6.60525 3.12722 5.79942 3.59283 5.14806 4.2302L2.33594 6.66675M15.6693 9.33341L12.8571 11.77C12.2058 12.4073 11.4 12.8729 10.5148 13.1233C9.62973 13.3737 8.69418 13.4008 7.79551 13.2019C6.89683 13.003 6.0643 12.5847 5.37561 11.9861C4.68693 11.3874 4.16452 10.6279 3.85715 9.77833",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_4075_194719",children:(0,t.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})})})]})},a=function(s){var o,l,e,u,c,a,i,d,p,v,x,m,h,f,j,N,w,b,g,A,y,C,k,I,E,D,F,_,L,T,S,B,V=s.dataAccount,Z=s.showDetail
1s,P=s.setShowDetails,Y=s.copyClipboard,M=s.accountType,O=[{label:"Account Number",value:"local"===M?null===V||void 0===V||null===(o=V.virtualAccounts)||void 0===o||null===(l=o.local)||void 0===l?void 0:l.accountNumber:null===V||void 0===V||null===(e=V.virtualAccounts)||void 0===e||null===(u=e.overseas)||void 0===u?void 0:u.accountNumber},{label:"Account Name",value:"local"===M?null===V||void 0===V||null===(c=V.virtualAccounts)||void 0===c||null===(a=c.local)||void 0===a?void 0:a.accountName:null===V||void 0===V||null===(i=V.virtualAccounts)||void 0===i||null===(d=i.overseas)||void 0===d?void 0:d.accountName},{label:"Full Bank Name",value:"local"===M?null===V||void 0===V||null===(p=V.virtualAccounts)||void 0===p||null===(v=p.local)||void 0===v?void 0:v.fullBankName:null===V||void 0===V||null===(x=V.virtualAccounts)||void 0===x||null===(m=x.overseas)||void 0===m?void 0:m.fullBankName},{label:"local"===M?null===V||void 0===V||null===(h=V.virtualAccounts)||void 0===h||null===(f=h.local)||void 0===f?void 0:f.routingCodeType1:null===V||void 0===V||null===(j=V.virtualAccounts)||void 0===j||null===(N=j.overseas)||void 0===N?void 0:N.routingCodeType1,value:"local"===M?null===V||void 0===V||null===(w=V.virtualAccounts)||void 0===w||null===(b=w.local)||void 0===b?void 0:b.routingCodeValue1:null===V||void 0===V||null===(g=V.virtualAccounts)||void 0===g||null===(A=g.overseas)||void 0===A?void 0:A.routingCodeValue1},{label:"local"===M?null===V||void 0===V||null===(y=V.virtualAccounts)||void 0===y||null===(C=y.local)||void 0===C?void 0:C.routingCodeType2:null===V||void 0===V||null===(k=V.virtualAccounts)||void 0===k||null===(I=k.overseas)||void 0===I?void 0:I.routingCodeType2,value:"local"===M?null===V||void 0===V||null===(E=V.virtualAccounts)||void 0===E||null===(D=E.local)||void 0===D?void 0:D.routingCodeValue2:null===V||void 0===V||null===(F=V.virtualAccounts)||void 0===F||null===(_=F.overseas)||void 0===_?void 0:_.routingCodeValue2},{label:"Bank Address  ",value:"local"===M?null===V||void 0===V||null===(L=V.virtualAccounts)||void 0===L||null===(T=L.local)||void 0===T?void 0:T.bankAddress:null===V||void 0===V||null===(S=V.virtualAccounts)||void 0===S||null===(B=S.overseas)||void 0===B?void 0:B.bankAddress}],R=O.filter((function(s){return null!==s.label})).map((function(s){var o="\t";return s.label&&s.label.length<8?o="\t\t\t":s.label&&s.label.length<12&&(o="\t\t"),"".concat(s.label," ").concat(o,": \t").concat(s.value||"-")})),G=O.map((function(s){return s.value&&(0,t.jsxs)("div",{className:"sprout-flex sprout-flex-col sprout-w-full",children:[(0,t.jsx)("span",{className:"sprout-w-full sprout-text-xs sprout-text-[#757575]",children:s.label}),(0,t.jsxs)("div",{className:"sprout-flex",children:[(0,t.jsx)("span",{className:"sprout-text-base sprout-w-full",children:s.value||"-"}),(0,t.jsx)("div",{className:"sprout-w-4",children:(0,t.jsx)(n.hAV,{onClick:function(){Y(s.value||"-")}})})]})]},s.value)}));return(0,t.jsx)(r.BT,{show:Z,position:"side-right",useBackground:!0,useTransparentBackground:!0,onClose:function(){P(!Z)},className:"!sprout-bg-secondary !sprout-h-full phonesm:!sprout-mt-[12vh] minipc:!sprout-mt-[15.5vh] desktop:!sprout-mt-[10vh] !sprout-w-full md:!sprout-w-[55vw] lg:!sprout-w-[30vw]",children:(0,t.jsxs)("div",{className:"md:sprout-h-[85vh]",children:[(0,t.jsxs)("div",{className:"sprout-text-base sprout-text-white sprout-pb-5",children:[(0,t.jsx)("img",{className:"sprout-absolute sprout-w-4 sprout-h-4 sprout-cursor-pointer",src:"../assets/icon/close.svg",alt:"",onClick:function(){P(!1)}}),(0,t.jsx)("div",{children:(0,t.jsxs)("h1",{className:"sprout-text-center",children:["local"===M?"Local":"Overseas"," Account"]})})]}),(0,t.jsx)("div",{className:"sprout-h-[90vh] md:sprout-h-[75vh] xl:sprout-h-[82vh] sprout-overflow-x-auto",children:(0,t.jsxs)("div",{className:"sprout-flex sprout-flex-col sprout-gap-2 sprout-justify-center sprout-pt-2 sprout-pb-6 sprout-bg-white sprout-p-5 sprout-rounded-md",children:[(0,t.jsxs)("div",{className:"sprout-flex sprout-w-full sprout-mt-4",children:[(0,t.jsx)("span",{className:"sprout-w-full sprout-text-base sprout-font-semibold",children:"Account Detail"}),(0,t.jsx)("span",{className:"sprout-text-primary sprout-w-[80px] sprout-text-sm sprout-cursor-pointer",onClick:function(){Y(R.join("\n"))},children:"Copy All"})]}),(0,t.jsx)("div",{className:"sprout-flex sprout-w-full",children:(0,t.jsx)("span",{className:"sprout-w-full sprout-text-xs sprout-text-[#121212]",children:"local"===M?"You can use this to receive ".concat(null===V||void 0===V?void 0:V.currency," from ").concat("SGD"===(null===V||void 0===V?void 0:V.currency)?null===V||void 0===V?void 0:V.countryName:null===V||void 0===V?void 0:V.countryIso2Code," only."):"You can use this to receive ".concat(null===V||void 0===V?void 0:V.currency," from overseas. Please do not use this for transfers within ").concat(null===V||void 0===V?void 0:V.countryIso2Code,".")})}),G]})})]})})},i=function(s){var o,l,u,i,d,p,v=s.state.dataAccount,x=s.action,m=x.currencyFormat,h=x.handleBack,f=x.copyClipboard,j=(0,e.useState)(!1),N=j[0],w=j[1],b=(0,e.useState)("local"),g=b[0],A=b[1],y=(0,e.useState)("SGD"),C=y[0],k=y[1],I=(0,e.useState)(""),E=I[0],D=I[1],F=(0,e.useState)(),_=F[0],L=F[1];return(0,e.useEffect)((function(){if(v){var s,o,l=v.find((function(s){return s.currency===C}));"INITIALIZED"===(null===l||void 0===l||null===(s=l.virtualAccounts)||void 0===s||null===(o=s.overseas)||void 0===o?void 0:o.accountNumber)?D("INITIALIZED"):D(""),L(l)}}),[v,C,L,D]),(0,t.jsxs)(t.Fragment,{children:[_&&(0,t.jsx)(a,{accountType:g,showDetail
1s:N,setShowDetails:w,copyClipboard:f,dataAccount:_}),(0,t.jsxs)("div",{className:"sprout-w-full lg:sprout-w-8/12",children:[(0,t.jsxs)("div",{className:"sprout-flex sprout-w-full",children:[(0,t.jsx)("img",{src:"../../assets/icon/arrow-left.svg",className:"sprout-cursor-pointer sprout-p-2 sprout-justify-center",alt:"",onClick:h}),(0,t.jsx)("p",{className:"sprout-font-semibold sprout-text-base sprout-p-2 md:sprout-text-xl sprout-w-full",children:"Payments details"})]}),(0,t.jsx)("div",{className:"sprout-flex sprout-w-full",children:(0,t.jsx)("p",{className:"sprout-font-normal sprout-text-base sprout-p-2 sprout-text-[#595959] sprout-w-full",children:"Use these account details to top up your balance."})}),(0,t.jsx)("div",{className:"sprout-flex sprout-w-full",children:(0,t.jsx)("p",{className:"sprout-font-semibold sprout-text-base sprout-p-2 md:sprout-text-xl sprout-w-full",children:"Balance Information"})}),(0,t.jsx)("div",{className:"sprout-grid sprout-grid-flow-col sprout-auto-cols-max sprout-gap-5 sprout-overflow-x-scroll visible-scrollbar",children:v.map((function(s){return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"sprout-flex sprout-gap-5 ".concat(s.currency===C?"sprout-bg-[#FFF2E7]":"sprout-bg-[#FAFAFA]"," sprout-rounded-lg sprout-p-5 sprout-w-full  sprout-cursor-pointer"),onClick:function(){return k(s.currency)},children:[(0,t.jsx)("div",{className:"sprout-flex sprout-items-center",children:(0,t.jsx)("img",{src:s.countryFlag,alt:"",className:"sprout-w-14"})}),(0,t.jsxs)("div",{className:"sprout-flex sprout-flex-col sprout-gap-1",children:[(0,t.jsx)("span",{className:"sprout-text-sm",children:"Current Balance"}),(0,t.jsxs)("span",{className:"sprout-text-xl sprout-font-semibold",children:[s.currency," ",m(s.balance)]})]})]})})}))}),(0,t.jsx)("div",{className:"sprout-flex sprout-justify-center sprout-w-full sprout-pt-2 sprout-gap-1",children:v.map((function(s){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"sprout-flex sprout-gap-5 ".concat(s.currency===C?"sprout-bg-[#FDC088]":"sprout-bg-[#E0E0E0]","  sprout-cursor-pointer sprout-border ").concat(s.currency===C?"sprout-border-[#FDC088]":"sprout-border-[#E0E0E0]"," sprout-rounded-full sprout-h-3 sprout-w-3"),onClick:function(){return k(s.currency)}})})}))}),(0,t.jsx)("div",{className:"sprout-flex sprout-w-full",children:(0,t.jsx)("p",{className:"sprout-font-semibold sprout-text-base sprout-p-2 sprout-w-full",children:"Receiving Account Details"})}),(0,t.jsxs)("div",{className:"sprout-flex sprout-gap-5 sprout-flex-col md:sprout-flex-row md:sprout-justify-between sprout-w-full",children:[(0,t.jsxs)("div",{className:"sprout-flex sprout-flex-col sprout-gap-1 sprout-border-2 sprout-rounded-lg sprout-p-4 sprout-w-full sprout-h-50 md:sprout-h-60",children:[(0,t.jsxs)("div",{className:"sprout-flex sprout-items-center sprout-gap-2",children:[(0,t.jsx)("img",{src:null===_||void 0===_?void 0:_.countryFlag,alt:"",className:"sprout-w-10"}),(0,t.jsx)("span",{className:"sprout-text-base sprout-font-semibold sprout-text-[#121212]",children:"Local Account Details"})]}),(0,t.jsx)("span",{className:"sprout-text-xs sprout-text-[#757575]",children:"Account Number"}),(0,t.jsxs)("div",{className:"sprout-flex",children:[(0,t.jsx)("span",{className:"sprout-text-base sprout-w-full",children:null===_||void 0===_||null===(o=_.virtualAccounts)||void 0===o||null===(l=o.local)||void 0===l?void 0:l.accountNumber}),(0,t.jsx)("div",{className:"sprout-w-4",children:(0,t.jsx)(n.hAV,{onClick:function(){var s,o;f((null===_||void 0===_||null===(s=_.virtualAccounts)||void 0===s||null===(o=s.local)||void 0===o?void 0:o.accountNumber)||"-")}})})]}),(0,t.jsx)("span",{className:"sprout-text-sm sprout-text-[#757575]",children:"You can use this to receive ".concat(null===_||void 0===_?void 0:_.currency," from ").concat("SGD"===(null===_||void 0===_?void 0:_.currency)?null===_||void 0===_?void 0:_.countryName:null===_||void 0===_?void 0:_.countryIso2Code," only.")}),(0,t.jsx)("div",{className:"sprout-flex sprout-items-end sprout-h-full sprout-justify-center",children:(0,t.jsx)(r.iR,{tertiary:!0,onClick:function(){A("local"),w(!N)},children:"See Account Details"})})]}),(0,t.jsxs)("div",{className:"sprout-flex sprout-flex-col sprout-gap-1 sprout-border-2 sprout-rounded-lg sprout-p-4 sprout-w-full sprout-h-50 md:sprout-h-60 ".concat("INITIALIZED"===E&&"sprout-bg-[#E0E0E0]"),children:[(0,t.jsxs)("div",{className:"sprout-flex sprout-items-center sprout-gap-2",children:[(0,t.jsx)("img",{src:null===_||void 0===_?void 0:_.countryFlag,alt:"",className:"sprout-w-10"}),(0,t.jsx)("span",{className:"sprout-text-base sprout-font-semibold sprout-text-[#121212]",children:"Overseas Account Details"})]}),(0,t.jsx)("span",{className:"sprout-text-xs sprout-text-[#757575]",children:"Account Number"}),(0,t.jsx)("div",{className:"sprout-flex",children:E?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"sprout-text-base sprout-w-full",children:"-"})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sprout-text-base sprout-w-full",children:"INITIALIZED"===(null===_||void 0===_||null===(u=_.virtualAccounts)||void 0===u||null===(i=u.overseas)||void 0===i?void 0:i.accountNumber)?"-":null===_||void 0===_||null===(d=_.virtualAccounts)||void 0===d||null===(p=d.overseas)||void 0===p?void 0:p.accountNumber}),(0,t.jsx)("div",{className:"sprout-w-4",children:(0,t.jsx)(n.hAV,{onClick:function(){var s,o;f((null===_||void 0===_||null===(s=_.virtualAccounts)||void 0===s||null===(o=s.overseas)||void 0===o?void 0:o.accountNumber)||"-")}})})]})}),E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sprout-text-sm sprout-text-[#757575] ".concat("INITIALIZED"!==E&&"!sprout-text-[#960F21]"),children:"Your account number is being created, we'll let you know 
1when\n                it's ready."}),"INITIALIZED"!==E?(0,t.jsx)("div",{className:"sprout-flex sprout-items-end sprout-h-full sprout-justify-center",children:(0,t.jsx)(r.iR,{primary:!0,orange:!0,icon:(0,t.jsx)(c,{}),className:"sprout-w-full",onClick:function(){A("overseas"),w(!N)},children:"Try Again"})}):(0,t.jsx)("div",{className:"sprout-flex sprout-items-end sprout-h-full sprout-justify-center",children:(0,t.jsx)("span",{className:"sprout-text-[#9E9E9E] sprout-font-semibold sprout-p-2",children:"See Account Details"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"sprout-text-sm sprout-text-[#757575]",children:["You can use this to receive ",null===_||void 0===_?void 0:_.currency," from overseas. Please do not use this for local transfers."]}),(0,t.jsx)("div",{className:"sprout-flex sprout-items-end sprout-h-full sprout-justify-center",children:(0,t.jsx)(r.iR,{tertiary:!0,onClick:function(){A("overseas"),w(!N)},children:"See Account Details"})})]})]})]})]})]})},d=l(19551),p=l(33177),v=function(){var s=(0,d.Z)(),o=s.state,l=s.action;return(0,t.jsx)("div",{children:o&&o.dataAccount?(0,t.jsx)(i,{state:o,action:l}):(0,t.jsx)(u.S,{})})};v.getLayout=p.Z;var x=v}},function(s){s.O(0,[4885,8166,6556,9866,2876,9250,6962,4201,7933,8045,9141,9704,3732,944,8029,3735,1302,5545,3479,7726,5094,3177,9774,2888,179],(function(){return o=15246,s(s.s=o);var o}));var o=s.O();_N_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.