PageSourceSearch

https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/chunks/5974-421d5920cecb7b8c.js

js paymonade.tech collected 2026-10-04 05:41:32 UTC 8,731 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5974],{5209:(e,l,t)=>{t.d(l,{A:()=>r});var n=t(37876),d=t(91447);t(14232);let r=e=>{let{children:l}=e;return(0,n.jsxs)("div",{className:"bg-alertbg p-3 flex gap-2 rounded-xl",children:[(0,n.jsx)("div",{children:(0,n.jsx)(d.A,{className:"w-5 h-5 text-primary"})}),(0,n.jsx)("div",{className:"text-secondary text-small-body break-words",children:l})]})}},36860:(e,l,t)=>{t.d(l,{A:()=>j});var n=t(37876),d=t(83561),r=t(99190),i=t(92094),a=t(87387),o=t(14232),c=t(34846),s=t(56709),u=t(54587),x=t.n(u),v=t(47316),h=t(59582),m=t(31991),b=t(82565),p=t(84952),f=t(44975),y=t(44789),A=t(88050),N=t(78730),g=t(48135);let j=e=>{var l,t;let{manageAccountOpen:u,setManageAccountOpen:j,accountList:k,currentAccount:I,setCurrentAccount:w,refreshAccountList:C,setAddAccountOpen:B,setAddStep:T,checkStatus:S}=(0,a.A)(),[R,M]=(0,o.useState)(),{channelCode:D}=(0,f.A)(),E=D===i.k$.BANK_FRICK,{setRomaCheck:F}=(0,f.A)(),{t:L}=(0,c.Bd)();(0,o.useEffect)(()=>{var e,l;u&&(null==k?void 0:null===(e=k.data)||void 0===e?void 0:e.length)&&M(I||(null==k?void 0:null===(l=k.data)||void 0===l?void 0:l[0]))},[I,k,u]),(0,o.useEffect)(()=>{u&&C()},[u,C]);let O=(0,o.useCallback)(e=>{if(D===i.k$.EASY_EURO&&(null==e?void 0:e.bindStatus)!=="BIND")return null==e?void 0:e.bindStatus},[D]),P=(0,o.useCallback)(e=>{var l,t,n;let d=null===(l=e.currentTarget)||void 0===l?void 0:l.dataset.id,r=null==k?void 0:null===(t=k.data)||void 0===t?void 0:t.find(e=>e.channelAccountId===d);(null==r?void 0:r.disabled)||(null===(n=S[null==r?void 0:r.iban])||void 0===n?void 0:n.blockedByCheck)||O(r)&&"INIT"!==O(r)||(M(r),setTimeout(()=>{var e;null===(e=z.current)||void 0===e||e.click()},150))},[null==k?void 0:k.data,S,O]),_=e=>{switch(e){case"BIND":return{text:"Active",color:"!text-link"};case"BINDING":return{text:"Reviewing",color:"!text-third"};case"FAIL":return{text:"Unverified",color:"!text-sell"};default:return{text:e||"",color:"!text-white"}}},q=(0,o.useCallback)(e=>{var l,t;let i=null===(l=e.currentTarget)||void 0===l?void 0:l.dataset.id,a=null==k?void 0:null===(t=k.data)||void 0===t?void 0:t.find(e=>e.channelAccountId===i),{destory:o}=(0,h.A)({children:(0,n.jsx)(m.A,{imageSrc:y.A,content:L("DeleteBankAccountDesc").replace("{{IBAN}}",E&&(null==a?void 0:a.accountNumber)||(null==a?void 0:a.iban)||""),title:L("DeleteBankAccount"),Footer:()=>(0,n.jsx)(r.wi,{onConfirm:()=>{(0,d.Py)({channelAccountId:i}).then(e=>{if(e){b.A.success({text:L("SucceedToDelAccount")}),C(),o();return}throw Error("failed")}).catch(()=>{b.A.info({options:{position:b.y.top,Icon:null},text:L("FailedToDelAccount")})})},destory:o,mode:r.z7.confirmAndCancelV2})})})},[C,L,k,E]),G=(0,o.useCallback)(()=>{var l;j(!1),w(R),null==e||null===(l=e.onSelect)||void 0===l||l.call(e,R)},[R,e,w,j]),J=e=>{var l;return(null==e?void 0:e.disabled)?-1:null!==(l=S[null==e?void 0:e.iban])&&void 0!==l&&!!l.blockedByCheck&&-2},z=(0,o.useRef)(null);return(0,n.jsxs)(r.Ay,{showMask:!0,open:u,onClose:()=>j(!1),title:(null==e?void 0:e.title)||L("PaymentMethod"),subTitle:(null==e?void 0:e.subTitle)||"",children:[(null==k?void 0:k.loading)?(0,n.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,n.jsx)(A.A,{size:8,color:"#A7EA33",speedMultiplier:.7})}):(0,n.jsx)("div",{className:"grow overflow-auto flex flex-col gap-2",children:(0,n.jsxs)("div",{className:"rounded-xl bg-bg2 px-3 py-4 flex flex-col gap-6",children:[(0,n.jsx)("div",{className:"flex",children:(0,n.jsx)("div",{className:"text-small-body-bold text-primary-text",children:L("BankTransfer")})}),(0,n.jsx)("div",{className:"flex flex-col gap-3",children:null==k?void 0:null===(l=k.data)||void 0===l?void 0:l.map((l,t)=>(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsxs)("div",{className:"flex cursor-pointer items-center gap-2 group grow","data-id":l.channelAccountId,onClick:P,children:[!(null==e?void 0:e.hiddenChoose)&&(0,n.jsx)("div",{className:"w-4 h-4 rounded-full border border-line transition-all duration-150 group-hover:border-primary justify-center items-center flex ".concat(J(l)||O(l)?"bg-line":"bg-bg1"),children:(null==R?void 0:R.channelAccountId)===l.channelAccountId?(0,n.jsx)("div",{className:"".concat(J(l)||O(l)&&"INIT"!==O(l)?"bg-line w-4 h-4":"bg-primary w-2 h-2"," rounded-full")}):(0,n.jsx)("div",{className:"bg-white w-4 h-4 rounded-full"})}),(0,n.jsxs)("div",{className:"text-small-body-sub flex flex-col gap-1 ".concat(J(l)?"text-disabled":""),children:[(0,n.jsx)("span",{className:"".concat(O(l)&&"INIT"!==O(l)?"text-disabled":"group-hover:text-link text-primary-text"," transition-all duration-150"),children:E?l.accountNumber||(null==l?void 0:l.iban.replace("****"," **** ")):l.iban.replace("****"," **** ")}),J(l)||"FAIL"===O(l)?(0,n.jsx)(v.A,{tips:-1===J(l)?null==l?void 0:l.blockedReason:L("ReasonForUnavailableAccount"),children:(0,n.jsxs)("div",{className:"px-1 py-0.5 border border-line rounded-sm flex gap-1 text-caption-sub ".concat("INIT"===O(l)||"BINDING"===O(l)?"text-link":"text-sell"," items-center"),children:[(J(l)||"FAIL"===O(l))&&(0,n.jsx)(N.A,{className:"w-3 h-3"}),L("unavailable")]})}):O(l)&&"FAIL"!==O(l)?(0,n.jsxs)("div",{className:"px-1 py-0.5 w-fit border border-line rounded-sm flex gap-1 text-caption-sub ".concat("INIT"===O(l)||"BINDING"===O(l)?"text-link":"text-sell"," items-center"),children:[(J(l)||"FAIL"===O(l))&&(0,n.jsx)(N.A,{className:"w-3 h-3"}),"FAIL"===O(l)||J(l)?L("unavailable"):"INIT"===O(l)?L("NeedBinding"):L("Reviewing")]}):(0,n.jsx)(n.Fragment,{}),(()=>{let{text:e,color:t}=_(l.bindStatus);return e?(0,n.jsx)("span",{className:"text-caption-sub ".concat(t),children:e}):null})()]})]}),(0,n.jsx)(g.A,{onClick:q,"data-id":l.channelAccountId,className:"cursor-pointer w-5 h-5 text-disabled hover:text-link transition-all duration-150"})]}),t<(null==k?void 0:k.data.length)-1?(0,n.jsx)("div",{className:"h-0 border-b border-line border-dashed"}):(0,n.jsx)(n.Fragment,{})]},l.channelAccountId))}),(null==k?void 0:null===(t=k.data)||void 0===t?void 0:t.length)>=5?(0,n.jsx)("div",{className:"text-third text-caption-sub  w-full text-center ",children:L("add5Tips")}):(0,n.jsx)("div",{className:"flex w-full justify-center",children:(0,n.jsx)("div",{onClick:()=>{D===i.k$.ROMA?F({BankAccountOpen:!0}):(T(0),B(!0))}
1,className:"flex w-[200px] text-link items-center rounded-full justify-center cursor-pointer text-small-body-bold py-2 bg-bg1 hover:text-primary",children:L("AddNewAccount")})})]})}),(0,n.jsx)("div",{children:!(null==e?void 0:e.hiddenBtn)&&(0,n.jsx)(p.A,{btnRef:z,inactive:!!J(R),onClick:G,className:"!rounded-[200px] mt-3 hidden",children:(0,n.jsxs)("div",{className:"flex flex-1 justify-center",children:[(0,n.jsx)("span",{children:L("Confirm")}),(0,n.jsx)(x(),{className:"ml-1",src:s.A,alt:"ICGoBtn"})]})})})]})}},78730:(e,l,t)=>{t.d(l,{A:()=>d});var n=t(37876);t(14232);let d=e=>{let{className:l="",...t}=e;return(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"fill-current ".concat(l),...t,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 12C19 15.866 15.866 19 12 19C10.4722 19 9.05878 18.5106 7.90787 17.6799L17.8929 8.22036C18.5936 9.31053 19 10.6078 19 12ZM5.90496 15.4449L15.7688 6.10015C14.6809 5.40374 13.3876 5 12 5C8.13401 5 5 8.13401 5 12C5 13.2523 5.32887 14.4279 5.90496 15.4449ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"})})}},92877:(e,l,t)=>{t.d(l,{R5:()=>x,VL:()=>o,Yg:()=>s,e7:()=>i,hj:()=>u,qQ:()=>c,wh:()=>r,zh:()=>a});var n=t(91702);let d={listPaymentMethod:"/capi/v1/customer/order/list-payment-method",queryOrderByToken:"/capi/v1/customer/order/query-order-by-token",listCryptoNetwork:"/capi/v1/customer/order/list-crypto-network",submitBuySendOrder:"/capi/v1/customer/order/submit-buy-send-order",changeAndRetryBuySendOrder:"/capi/v1/customer/order/change-and-retry-buy-send-order",getDefaultPaymentMethodAndSendToInfo:"/capi/v1/customer/order/get-default-payment-method-and-send-to-info",listLinkedMerchantAccountInfo:"/capi/v1/customer/trading-account/list-linked-merchant-account-info",preCheckBuySendOrder:"/capi/v1/customer/order/pre-check-buy-send-order"},r=e=>(0,n.bE)({url:d.listPaymentMethod,data:e}),i=e=>(0,n.bE)({url:d.changeAndRetryBuySendOrder,data:e}),a=e=>(0,n.bE)({url:d.queryOrderByToken,data:e}),o=e=>(0,n.bE)({url:d.submitBuySendOrder,data:e}),c=e=>(0,n.Jt)({url:d.preCheckBuySendOrder,params:e}),s=e=>(0,n.Jt)({url:d.listCryptoNetwork,params:e}),u=()=>(0,n.Jt)({url:d.listLinkedMerchantAccountInfo}),x=e=>(0,n.Jt)({url:d.getDefaultPaymentMethodAndSendToInfo,params:e})}}]);

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.