PageSourceSearch

https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/chunks/3298-8b9f06e7461673eb.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3298],{2587:(e,t,r)=>{r.d(t,{A:()=>s});var l=r(79829),a=r(14232);let s=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{(0,l.X5)().then(e=>{let{data:r}=e;return t(r)})},[]),{GTREnabled:e}}},5209:(e,t,r)=>{r.d(t,{A:()=>s});var l=r(37876),a=r(91447);r(14232);let s=e=>{let{children:t}=e;return(0,l.jsxs)("div",{className:"bg-alertbg p-3 flex gap-2 rounded-xl",children:[(0,l.jsx)("div",{children:(0,l.jsx)(a.A,{className:"w-5 h-5 text-primary"})}),(0,l.jsx)("div",{className:"text-secondary text-small-body break-words",children:t})]})}},9097:(e,t,r)=>{r.d(t,{B0:()=>s,EB:()=>c,Fv:()=>o,H7:()=>u,TK:()=>n,jM:()=>d});var l=r(91702);let a={addWalletAddress:"/capi/v1/customer/trading-account/add-wallet-address",updateWalletAddress:"/capi/v1/customer/trading-account/update-wallet-address",deleteWalletAddress:"/capi/v1/customer/trading-account/delete-wallet-address",listWalletAddress:"/capi/v1/customer/trading-account/list-wallet-address",transferOnchainEvaluate:"/capi/v1/customer/order/transfer-onchain-evaluate",updateWallet:"/capi/v1/customer/order/update-wallet"},s=e=>(0,l.bE)({url:a.updateWallet,data:e}),d=e=>(0,l.bE)({url:a.addWalletAddress,data:e}),n=e=>(0,l.Jt)({url:a.transferOnchainEvaluate,params:e}),o=e=>(0,l.bE)({url:a.updateWalletAddress,data:e}),u=e=>(0,l.bE)({url:a.deleteWalletAddress,data:e}),c=e=>(0,l.Jt)({url:a.listWalletAddress,params:e})},40908:(e,t,r)=>{r.d(t,{A:()=>s});var l=r(10252),a=r(14232);let s=(0,l.kQ)(()=>{let[e,t]=(0,a.useState)(),[r,l]=(0,a.useState)({walletAddress:"",network:"",tag:"",vaspCode:""}),[s,d]=(0,a.useState)(),[n,o]=(0,a.useState)(),[u,c]=(0,a.useState)(!0),[i,v]=(0,a.useState)(""),[m,p]=(0,a.useState)(""),[h,f]=(0,a.useState)();return{walletListLoading:u,setWalletListLoading:c,merchantInfo:h,setMerchantInfo:f,walletList:n,setWalletList:o,sendtoPaymentMethod:s,setSendToPaymentMethod:d,walletInfo:r,setWalletInfo:l,setSendToInfo:t,sendToInfo:e,activeWalletId:i,setActiveWalletId:v,activeNetWork:m,setActiveNetWork:p}})},82922:(e,t,r)=>{r.d(t,{A:()=>T});var l=r(37876),a=r(14232),s=r(99190),d=r(7738),n=r(33167);let o=()=>{let e=(0,a.useRef)(),t=(0,a.useCallback)(t=>{let{qrCodeSuccessCallback:l}=t;n.j9.getCameras().then(t=>{if(t&&t.length){let t=new n.j9("reader",d.C||d.N);e.current=t,t.start({facingMode:"environment"},{fps:10,qrbox:{width:250,height:250}},(e,t)=>{r(),null==l||l(e)},e=>{})}}).catch(e=>{})},[]),r=(0,a.useCallback)(()=>{var t;null===(t=e.current)||void 0===t||t.stop()},[]);return{initQRCode:t,stopQRCode:r}};var u=r(34846),c=r(54587),i=r.n(c),v=r(56820);let m={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/scan.00aeaf4d.svg",height:20,width:20,blurWidth:0,blurHeight:0};var p=r(63434),h=r(84952),f=r(38243),y=r(92877),g=r(44975),A=r(94196),w=r(40908),x=r(48910),b=r(91408),C=r(11700),k=r(79829),j=r(2587),S=r(5209),E=r(98761),N=r(78944);let P=e=>{let t=document.createElement("div"),r=(0,N.createRoot)(t);return r.render((0,l.jsx)(s.ZK,{...e,onClose:()=>{var l;t.remove(),r.unmount(),null===(l=e.onClose)||void 0===l||l.call(e)},hideClose:!0,open:!0})),document.body.appendChild(t),{destory:()=>{t.remove(),r.unmount()}}};var O=r(36313);let T=e=>{var t,r,d;let{isEdit:n,open:c,setOpen:N,onConfirm:T,selectCrypto:I}=e,{initQRCode:W,stopQRCode:R}=o(),{t:B}=(0,u.Bd)(),{selectCrypto:_=I,selectFiat:M,fiatAmount:q}=(0,g.A)(),[D,J]=(0,a.useState)(!1),[L,F]=(0,a.useState)([]),[K,Y]=(0,a.useState)([]),{walletInfo:G,setWalletInfo:z}=(0,w.A)(),{bindStatus:H,gaVerificateInfo:Q,run2FaCheck:V,modal:X,otpStep:Z}=(0,x.A)("ADD_WALLET_ADDRESS"),{GTREnabled:U}=(0,j.A)();(0,a.useEffect)(()=>{c&&(0,k.hR)({fiatCurrency:null==M?void 0:M.currency,fiatAmount:q}).then(e=>{let{data:t}=e;Y(t)})},[M,q,c]),(0,a.useEffect)(()=>{if(D){let{destory:e}=P({children:(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"absolute flex items-center justify-center right-3 top-3 p-2 rounded-full bg-cta-text z-10",onClick:()=>{R(),null==e||e()},children:(0,l.jsx)(O.A,{alt:"close",className:"text-white w-4 h-4"})}),(0,l.jsx)("div",{id:"reader",className:"w-full h-full",children:(0,l.jsx)(A.A,{})})]})});setTimeout(()=>{W({qrCodeSuccessCallback:t=>{e(),z(e=>({...e,walletAddress:t})),J(!1)}})},500)}},[W,z,D,R]),(0,a.useEffect)(()=>{(null==_?void 0:_.currency)&&(0,y.Yg)({cryptoCurrency:null==_?void 0:_.currency}).then(e=>{let{data:t}=e;F(t)})},[null==_?void 0:_.currency]);let $=null==L?void 0:null===(t=L.find(e=>e.network===G.network))||void 0===t?void 0:t.memoRequired,ee=new RegExp((null==L?void 0:null===(r=L.find(e=>e.network===G.network))||void 0===r?void 0:r.memoRegex)||".*"),et=new RegExp((null==L?void 0:null===(d=L.find(e=>e.network===G.network))||void 0===d?void 0:d.addressRegex)||".*"),[er,el]=(0,a.useState)(),[ea,es]=(0,a.useState)(),ed=!G.walletAddress||!G.vaspCode&&U||!G.network||H===f.wb.cooling&&Z===f.Pv.GA_OTP||$&&!G.memo||!!er||!!ea;(0,a.useEffect)(()=>{(null==Q?void 0:Q.status)&&Z===f.Pv.GA_OTP&&T({...G,otpType:null==Q?void 0:Q.verifyOtpType,otpCode:null==Q?void 0:Q.verifyCode})},[Q,Z,G]),(0,a.useEffect)(()=>{c&&z({walletAddress:"",network:"",tag:"",memo:void 0})},[c,z]);let en=async()=>{let e=()=>{T({...G,otpType:null==Q?void 0:Q.verifyOtpType,otpCode:null==Q?void 0:Q.verifyCode})};if(Z===f.Pv.SKIP_OTP){e();return}let t=await V();(null==t?void 0:t.otpStep)===f.Pv.SKIP_OTP&&e()};return(0,l.jsxs)(s.Ay,{showMask:!0,open:c,setOpen:()=>N(!1),title:B("AddNewWallet"),footer:(0,l.jsx)(h.A,{onClick:en,className:"mb-0!",inactive:ed,showContinue:!0,showContinueBtnText:B("Confirm")}),children:[H===f.wb.cooling&&Z===f.Pv.GA_OTP?(0,l.jsx)(E.A,{children:B("2faCoolingOff")}):(0,l.jsx)(l.Fragment,{}),(0,l.jsxs)("div",{className:"grow px-4 mx-[-16px] mt-3",children:[(0,l.jsx)(S.A,{children:B("sendToDesc")}),(0,l.jsx)(C.A,{value:G.walletAddress,error:er,setError:el,rules:(0,b.Yj)().required(B("FieldIsRequired")).matches(et,B("AddressIsIncorrect")),onChange:e=>{z(t=>({...t,walletAddress:e.target.value}))},className:"mt-4",placeholder:B("PleaseInput"),label:B("WalletAddress"),suffix:(0,l.jsx)(i(),{onClick:e=>{J(e=>!e)},className:"cursor-pointer",src:m,alt:"scan"})}),U&&(0,l.jsx)(p.A,{value:G.vaspCode,onChange:e=>z(t=>({...t,vaspCode:e.target.value})),className:"mt-4",options:K.map(e=>({label:e.name,value:e.vaspCode})),label:B("Provider")}),(0,l.jsx)(p.A,{value:G.network,onChange:e=>{z(t=>({...t,network:e.target.value}))},className:"mt-4",options:(L||[]).map(e=>({label:e.name,value:e.network}
1)),label:B("Network")}),$?(0,l.jsx)(C.A,{error:ea,setError:es,value:G.memo,onChange:e=>{z(t=>({...t,memo:e.target.value}))},className:"mt-4",placeholder:B("PleaseInput"),label:B("Memo"),rules:(0,b.Yj)().matches(ee,B("MemoIsIncorrect"))}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(v.A,{maxLength:20,value:G.tag,onChange:e=>{z(t=>({...t,tag:e.target.value}))},className:"mt-4",placeholder:B("PleaseInput"),label:B("Tag(optional)")})]}),X]})}},92877:(e,t,r)=>{r.d(t,{R5:()=>v,VL:()=>o,Yg:()=>c,e7:()=>d,hj:()=>i,qQ:()=>u,wh:()=>s,zh:()=>n});var l=r(91702);let a={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"},s=e=>(0,l.bE)({url:a.listPaymentMethod,data:e}),d=e=>(0,l.bE)({url:a.changeAndRetryBuySendOrder,data:e}),n=e=>(0,l.bE)({url:a.queryOrderByToken,data:e}),o=e=>(0,l.bE)({url:a.submitBuySendOrder,data:e}),u=e=>(0,l.Jt)({url:a.preCheckBuySendOrder,params:e}),c=e=>(0,l.Jt)({url:a.listCryptoNetwork,params:e}),i=()=>(0,l.Jt)({url:a.listLinkedMerchantAccountInfo}),v=e=>(0,l.Jt)({url:a.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.