PageSourceSearch

https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/chunks/1625-e619e89bbb5638cb.js

js paymonade.tech collected 2026-10-04 05:41:30 UTC 24,233 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1625],{7848:(e,t,l)=>{l.d(t,{Mi:()=>o,Xy:()=>d,YU:()=>r,dU:()=>s,q:()=>i});var a=l(91702);let n={queryHistory:"/capi/v1/customer/order/user/center/history/query",queryDetail:"/capi/v1/customer/order/query/detail",downloadHistory:"/capi/v1/customer/order/user/center/history/download",downloadTaskList:"/capi/v1/customer/user/download/task/list",currencyList:"/capi/currency/list"},s=e=>(e.startTime||delete e.startTime,e.endTime||delete e.endTime,(0,a.bE)({url:n.queryHistory,data:e})),d=e=>(0,a.bE)({url:n.downloadHistory,data:{...e,...0===e.endTime?{endTime:null}:{},...0===e.startTime?{startTime:null}:{}}}),i=e=>(0,a.bE)({url:n.downloadTaskList,data:e}),r=e=>(0,a.bE)({url:n.queryDetail,data:e}),o=()=>(0,a.Jt)({url:n.currencyList})},8240:(e,t,l)=>{l.d(t,{A:()=>E});var a=l(37876),n=l(54587),s=l.n(n),d=l(99190),i=l(34846),r=l(9694),o=l(38243),c=l(92094),u=l(56557),m=l.n(u),h=l(84952),v=l(92877),x=l(51259),y=l(59582),p=l(31991),j=l(44789),f=l(65191),N=l(81786),w=l(97929),C=l(63434),A=l(14232),b=l(79829),g=l(9097),k=l(40908),T=l(44975),S=l(82922),F=l(82565);let I=e=>{let{setOpen:t,open:l,onCompleted:n,fiat:s,crypto:c,oldWalletAddressId:u,fiatAmt:m}=e,[v,f]=(0,A.useState)(""),[N,w]=(0,A.useState)([]),[I,D]=(0,A.useState)(""),[E,R]=(0,A.useState)(!0);(0,A.useRef)(null);let{selectFiat:M,setFiatAmount:P}=(0,T.A)(),{setWalletListLoading:_,setWalletList:O,walletList:B}=(0,k.A)();(0,A.useEffect)(()=>{f(u)},[u]),(0,A.useEffect)(()=>{var e;let t=null==B?void 0:null===(e=B.find(e=>e.walletId===v))||void 0===e?void 0:e.vaspCode;D(t||""),R(!!t)},[v,B]),(0,A.useEffect)(()=>{P(m)},[m]),(0,A.useEffect)(()=>{l&&(0,b.hR)({fiatCurrency:null==M?void 0:M.currency,fiatAmount:s}).then(e=>{let{data:t}=e;w(t)})},[s,l,null==M?void 0:M.currency]),(0,A.useEffect)(()=>{c&&l&&(_(!0),(0,g.EB)({cryptoCurrency:c}).then(e=>{let{data:t}=e;O(t)}).finally(()=>{_(!1)}))},[c,l]);let{t:H}=(0,i.Bd)();(0,A.useEffect)(()=>{l&&D("")},[l]);let{goWalletManagement:L}=(0,x.A)(),[U,W]=(0,A.useState)(!1),{setSendToInfo:Y}=(0,k.A)(),K=(0,A.useCallback)(async e=>{let{data:{available:t}}=await (0,b.Xx)({address:e.walletAddress,network:e.network,memo:e.memo});if(!t){let{destory:e}=(0,y.A)({children:(0,a.jsx)(p.A,{imageSrc:j.A,content:(0,a.jsx)("div",{className:"text-center",children:H("AddWalletFailDesc")}),title:H("AddWalletFail"),Footer:()=>(0,a.jsx)(d.wi,{destory:e,mode:d.z7.OKV2})})});throw Error("AddWalletFail")}let{data:l}=await (0,g.jM)(e),n=l.walletId;if((0,r.l)(l.status,"SUCCESS"))return F.A.success({text:H("addWalletSuccess")}),(0,g.EB)({cryptoCurrency:c}).then(e=>{let{data:t}=e;O(t);let l=t.find(e=>e.walletId===n);return Y(e=>e?{...e,tag:null==l?void 0:l.tag,walletId:null==l?void 0:l.walletId,network:null==l?void 0:l.network,walletAddress:null==l?void 0:l.walletAddress,sendtoPaymentMethod:o.pM.wallet}:void 0),t})},[H,O,Y]),q=async e=>{try{await K(e),W(!1)}catch(e){}},J=(0,A.useMemo)(()=>!v||!I,[I,v]),V=(0,A.useCallback)(async e=>{try{let t=null==B?void 0:B.find(t=>t.walletId===e);(null==t?void 0:t.vaspCode)||await (0,g.Fv)({walletAddress:(null==t?void 0:t.walletAddress)||"",network:(null==t?void 0:t.network)||"",memo:(null==t?void 0:t.memo)||"",tag:(null==t?void 0:t.tag)||"",walletId:null==t?void 0:t.walletId,vaspCode:I||""}),null==n||n(e)}catch(e){}},[n,I,B]);return{ChooseWalletModal:(0,a.jsxs)(d.Ay,{showMask:!0,setOpen:t,open:l,title:H("ChooseAnotherWalletTitle"),children:[(0,a.jsxs)("div",{className:"flex-1 overflow-auto pb-4",children:[(0,a.jsx)("div",{className:"text-small-body",children:H("ReminderDesc")}),(0,a.jsx)("div",{className:"mt-4 text-small-body-sub",children:H("TradingPair")}),(0,a.jsxs)("div",{className:"mt-1 text-regular-body-bold",children:[s," - ",c]}),(0,a.jsx)(C.A,{required:!0,value:v,onChange:e=>f(e.target.value),className:"mt-4",options:(B||[]).map(e=>({labelComponent:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-primary-text",children:e.walletAddress}),(0,a.jsx)("div",{className:"text-third  font-normal text-caption",children:e.network})]}),label:e.walletAddress,value:e.walletId})),label:(0,a.jsx)("div",{className:"text-small-body-sub mt-4",children:H("SelectNewWalletAddress")})}
1),(0,a.jsx)(C.A,{disabled:E,required:!0,value:I,onChange:e=>D(e.target.value),className:"mt-4",options:(N||[]).map(e=>({label:e.name,value:e.vaspCode})),label:(0,a.jsx)("div",{className:"text-small-body-sub mt-4",children:H("Provider")})}),(0,a.jsx)("div",{className:"text-small-body mt-4",children:H("SelectNewWalletAddressTips")}),(0,a.jsx)("div",{onClick:()=>W(!0),className:"mt-4 text-small-body-bold text-link cursor-pointer",children:H("AddNewWallet")})]}),(0,a.jsx)(h.A,{inactive:J,className:"shrink-0 mt-4",onClick:()=>null==V?void 0:V(v),showContinue:!0,showContinueBtnText:H("Confirm")}),(0,a.jsx)(S.A,{onConfirm:q,open:U,setOpen:W,selectCrypto:{currency:c}})]})}};var D=l(7848);let E=e=>{var t,l,n,u,C,b,k,S,F,E,R,M,P,_,O,B,H,L,U,W,Y,K,q;let{setOrderDetailOpen:J,OrderDetailOpen:V,historyDetail:$,setHistoryDetrail:z}=e,{t:G}=(0,i.Bd)(),{goTradeResultPage:X,goBuySend:Q}=(0,x.A)(),Z=e=>(0,a.jsx)("div",{className:" text-xs text-secondary",children:e.children}),ee=e=>(0,a.jsx)("div",{className:"mb-2 font-medium text-sm ".concat(null==e?void 0:e.className),children:e.children}),et=(0,r.l)(null==$?void 0:$.transactionType,c.c.BUY_SEND),el=(null==$?void 0:null===(l=$.displayPhase)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.phaseStatus)==="success"||(null==$?void 0:null===(u=$.displayPhase)||void 0===u?void 0:null===(n=u[0])||void 0===n?void 0:n.phaseStatus)==="Completed",ea=(0,r.l)(null==$?void 0:null===(b=$.displayPhase)||void 0===b?void 0:null===(C=b[0])||void 0===C?void 0:C.phaseStatus,"refunded"),en=(0,r.l)(null==$?void 0:null===(S=$.displayPhase)||void 0===S?void 0:null===(k=S[0])||void 0===k?void 0:k.phaseStatus,"failed")||(0,r.l)(null==$?void 0:null===(E=$.displayPhase)||void 0===E?void 0:null===(F=E[0])||void 0===F?void 0:F.phaseStatus,"fail")||ea,es=(0,r.l)(null==$?void 0:null===(M=$.displayPhase)||void 0===M?void 0:null===(R=M[1])||void 0===R?void 0:R.phaseStatus,"success")||(null==$?void 0:null===(_=$.displayPhase)||void 0===_?void 0:null===(P=_[1])||void 0===P?void 0:P.phaseStatus)===void 0&&el,ed=(0,r.l)(null==$?void 0:null===(B=$.displayPhase)||void 0===B?void 0:null===(O=B[1])||void 0===O?void 0:O.phaseStatus,"failed")||(0,r.l)(null==$?void 0:null===(L=$.displayPhase)||void 0===L?void 0:null===(H=L[1])||void 0===H?void 0:H.phaseStatus,"fail"),ei=(0,r.l)(null==$?void 0:$.channelCode,c.k$.BANK_FRICK),er=(0,r.l)(null==$?void 0:$.transactionType,"SELL"),eo=(0,r.l)(null==$?void 0:$.transactionType,"BUY"),ec=(0,w.A)({num:eo||et?null==$?void 0:$.fiatAmt:null==$?void 0:$.fiatActualAmt,decimalPlaces:null==$?void 0:$.fiatPrecision}),[eu,em]=(0,A.useState)(!1),{refreshHistory:eh}=(0,T.A)(),ev=(0,A.useCallback)(async e=>{let{data:t}=await (0,g.B0)({walletId:e,orderId:null==$?void 0:$.orderId});t.walletId&&(0,D.YU)({orderId:null==$?void 0:$.orderId}).then(e=>{let{data:t}=e;null==z||z(t),em(!1),eh()})},[null==$?void 0:$.orderId,z,eh]),{ChooseWalletModal:ex}=I({setOpen:em,open:eu,fiat:null==$?void 0:$.fiatCurrency,crypto:null==$?void 0:$.cryptoCurrency,oldWalletAddressId:null==$?void 0:$.sendToAccount,fiatAmt:null==$?void 0:$.fiatAmt,onCompleted:ev});return(0,a.jsxs)(d.Ay,{showMask:!0,onClose:()=>J(!1),title:G("OrderDetail"),open:V,children:[(0,a.jsx)("div",{className:"grow px-4 mx-[-16px] overflow-auto",children:(0,a.jsxs)("div",{className:"bg-bg2 rounded-xl",children:[(0,a.jsxs)("div",{className:"mx-3 pt-3 flex justify-between items-center cursor-pointer",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(s(),{className:"z-0",width:"24",height:"24",src:"".concat("https://static2.paymonade.tech","/crypto/").concat(null==$?void 0:$.cryptoCurrency,"_256.png"),alt:""}),(0,a.jsxs)("div",{className:"ml-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-medium text-sm text-secondary",children:et?G("Buy"):null==$?void 0:$.transactionType}),(0,a.jsxs)("span",{className:"ml-1 font-bold text-sm",children:[null==$?void 0:$.cryptoAmt," ",null==$?void 0:$.cryptoCurrency," "]})]}),(0,a.jsx)("div",{className:"text-secondary text-xs",children:(et?el:(null==$?void 0:$.orderStatus)==="Completed")?(0,a.jsx)("div",{className:"font-medium text-sm text-link",children:G("Completed")}):(et?en:(null==$?void 0:$.orderStatus)==="Failed")?(0,a.jsx)("div",{className:"font-medium text-sm text-sell",children:G("Failed")}):(0,a.jsx)("div",{className:"font-medium text-sm text-third",children:G("Processing")})})]})]}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"flex justify-end"})})]}),et?(0,a.jsx)("div",{className:"h-3"}):(0,a.jsxs)("div",{className:"my-3 w-full flex justify-between items-center relative",children:[(0,a.jsx)("div",{className:"shrink-0 w-3 h-3 rounded-full bg-bg1 relative right-[6px]"}),(0,a.jsx)("div",{className:"w-[calc(100%-12px)] shrink-0 border-dashed border-t h-0 border-line relative right-[6px]"}),(0,a.jsx)("div",{className:" shrink-0 w-3 h-3 rounded-full bg-bg1 relative right-[6px]"})]}),(0,a.jsxs)("div",{className:"mx-3 pb-3",children:[ei&&(null==$?void 0:$.fxAmount)&&(null==$?void 0:$.fxCurrency)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("OriginalAmount")}),(0,a.jsxs)(ee,{children:[null==$?void 0:$.fxAmount," ",null==$?void 0:$.fxCurrency
1]})]}):(0,a.jsx)(a.Fragment,{}),ei&&(null==$?void 0:$.fxRate)&&(null==$?void 0:$.fxCurrency)&&(null==$?void 0:$.fiatCurrency)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("ExchangeRate")}),(0,a.jsx)(ee,{children:"1.00 ".concat(null==$?void 0:$.fxCurrency," = ").concat(null==$?void 0:$.fxRate," ").concat(null==$?void 0:$.fiatCurrency)})]}):(0,a.jsx)(a.Fragment,{}),et||(null==$?void 0:$.orderStatus)!=="Processing"?ec&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:eo||et?G("SpendAmount"):G("ReceiveAmount")}),(0,a.jsxs)(ee,{children:[ec," ",null==$?void 0:$.fiatCurrency]})]}):(0,a.jsx)(a.Fragment,{}),et||(null==$?void 0:$.orderStatus)!=="Processing"?(null==$?void 0:$.rampFee)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("Fee")}),(0,a.jsxs)(ee,{children:[null==$?void 0:$.rampFee," ",null==$?void 0:$.rampFeeCurrency]})]}):(0,a.jsx)(a.Fragment,{}),et||(null==$?void 0:$.orderStatus)!=="Processing"?(null==$?void 0:$.price)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("Quotation")}),(0,a.jsxs)(ee,{children:["1 ",null==$?void 0:$.cryptoCurrency," = ",null==$?void 0:$.price," ",null==$?void 0:$.fiatCurrency]})]}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(Z,{children:G("PaymentMethod")}),(0,a.jsx)(ee,{children:(null==$?void 0:$.paymentMethod)==="BANK_TRANSFER"?G("BankTransfer"):(null==$?void 0:$.paymentMethod)==="ONLINE_BANKING"?(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{children:"Klarna"}),(0,a.jsx)(s(),{priority:!0,className:"ml-2",width:40,height:20,src:"https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg",alt:"klarnaSvg"})]}):"CARD"}),(null==$?void 0:null===(U=$.paymentAccount)||void 0===U?void 0:U.account)&&(null==$?void 0:$.channelCode)!==c.k$.KLARNA&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("CardBankAccountNumber")}),(0,a.jsx)(ee,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[(null==$?void 0:$.paymentMethod)===c.YJ.CARD?(null==$?void 0:null===(W=$.paymentAccount)||void 0===W?void 0:W.cardProcessor)&&(null==$?void 0:null===(Y=$.paymentAccount)||void 0===Y?void 0:Y.cardProcessor)===o.T5.VISA?(0,a.jsx)(s(),{src:N.A,className:"mr-1",alt:"visaCard"}):(0,a.jsx)(s(),{src:f.A,className:"mr-1",alt:"master"}):(0,a.jsx)(a.Fragment,{}),(0,a.jsxs)("div",{children:[null==$?void 0:null===(K=$.paymentAccount)||void 0===K?void 0:K.account," ",(null==$?void 0:null===(q=$.paymentAccount)||void 0===q?void 0:q.cardProcessor)?" (".concat(null==$?void 0:$.paymentAccount.cardProcessor,")"):""]})]})})]}),(null==$?void 0:$.failReason)&&!el&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("FailureReason")}),(0,a.jsxs)(ee,{children:[null==$?void 0:$.failReason," "]})]}),(0,a.jsx)(Z,{children:G("TransactionID")}),(0,a.jsx)(ee,{children:null==$?void 0:$.orderId}),(null==$?void 0:$.merchantName)&&!et&&!er&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("Destination")}),(0,a.jsx)(ee,{children:null==$?void 0:$.merchantName})]}),(null==$?void 0:$.merchantName)&&(null==$?void 0:$.merchantOrderNo)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("MerchantTransactionID").replace("{{Merchant_name}}",(null==$?void 0:$.merchantName)||"")}),(0,a.jsx)(ee,{children:null==$?void 0:$.merchantOrderNo})]}),(0,a.jsx)(Z,{children:G("TransactionDate")}),(0,a.jsxs)(ee,{className:"",children:[m()(null==$?void 0:$.createTime).utc().format("YYYY-MM-DD HH:mm:ss")," (UTC+0)"]}),(null==$?void 0:$.remark)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{children:G("Remarks")}),(0,a.jsx)(ee,{children:null==$?void 0:$.remark})]}),(0,a.jsx)("div",{className:"text-secondary text-xs mt-2",children:(null==$?void 0:$.channelCode)===c.k$.CHECKOUT&&(null==$?void 0:$.transactionType)==="SELL"&&(null==$?void 0:$.orderStatus)==="Failed"?G("sellCKOFailed").replace("{{Merchant_name}}",null==$?void 0:$.merchantName):(null==$?void 0:$.channelCode)===c.k$.CLEAR_JUNCTION&&((null==$?void 0:$.transactionType)==="BUY"&&(null==$?void 0:$.orderStatus)==="Failed"||(null==$?void 0:$.transactionType)==="BUY_SEND"&&en)?G("buyCJFailed"):(null==$?void 0:$.transactionType)==="BUY_SEND"&&(null==$?void 0:$.channelCode)===c.k$.CHECKOUT&&ea?G("buyCJFailed"):""})]}),et&&el?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-3 w-full flex justify-between items-center relative overflow-hidden",children:[(0,a.jsx)("div",{className:"shrink-0 w-3 h-3 rounded-full bg-white relative right-[6px]"}),(0,a.jsx)("div",{className:"w-[calc(100%-12px)] shrink-0 border-dashed border-t h-0 border-line relative right-[6px]"}),(0,a.jsx)("div",{className:" shrink-0 w-3 h-3 rounded-full bg-white relative right-[6px]"})]}),(0,a.jsx)("div",{className:"mx-3 flex justify-between items-center cursor-pointer",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(s(),{className:"z-0",width:"24",height:"24",src:"".concat("https://static2.paymonade.tech","/crypto/").concat(null==$?void 0:$.cryptoCurrency,"_256.png"),alt:""}),(0,a.jsxs)("div",{className:"ml-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-medium text-sm text-secondary",children:et?G("Send"):null==$?void 0:$.transactionType}),(0,a.jsxs)("span",{className:"ml-1 font-bold text-sm",children:[null==$?void 0:$.cryptoAmt," ",null==$?void 0:$.cryptoCurrency," "]})]}),(0,a.jsx)("div",{className:"flex justify-start",children:es?(0,a.jsx)("div",{className:"font-medium text-sm text-link",children:G("Completed")}):ed?(0,a.jsx)("div",{className:"font-medium text-sm text-sell",children:G("Failed")}):(0,a.jsx)("div",{className:"font-medium text-sm text-third",children:G("Processing")})})]})]})}),en||el?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"px-3 mt-3",children:[(0,a.jsx)("div",{className:"text-secondary text-xs",children:G("Destination")}),(null==$?void 0:$.sendToAccountType)==="ON_CHAIN_ADDRESS"?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-medium",children:null==$?void 0:$.sendToAccountAddress}),(0,a.jsx)("div",{className:"text-third text-xs",children:null==$?void 0:$.network})]}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"font-medium",children:[null==$?void 0:$.sendToAccountMerchantName," ",G("Account")]}),(0,a.jsx)("div",{className:"text-third text-xs mb-2",children:null==$?void 0:$.sendToAccount})]})]}),(null==$?void 0:$.sendToAccountType)==="ON_CHAIN_ADDRESS"&&(0,a.jsxs)(a.Fragment,{children:[(null==$?void 0:$.networkFee)&&(0,a.jsxs)("div",{className:"px-3 mt-2",children:[(0,a.jsx)("div",{className:"text-secondary text-xs",children:G("NetworkFee")}),(0,a.jsxs)("div",{className:" font-medium",children:[(null==$?void 0:$.orderStatus)==="Completed"?"":"≈"," ",null==$?void 0:$.networkFee," ",null==$?void 0:$.networkFeeCurrency]})]}),(null==$?void 0:$.onChainTransactionHash)&&(0,a.jsxs)("div",{className:"px-3 mt-2",children:[(0,a.jsx)("div",{className:"text-secondary text-xs",children:G("TransactionHash")}),(0,a.jsx)("div",{className:" font-medium flex mb-4",children:(0,a.jsx)("span",{className:"w-full break-words",children:null==$?void 0:$.onChainTransactionHash})})]})]}),(null==$?void 0:$.failReason)&&ed&&(0,a.jsxs)("div",{className:"px-3 mt-2",children:[(0,a.jsx)("div",{className:"text-secondary text-xs mt-2",children:G("FailureReason")}),(0,a.jsx)("div",{className:" font-medium flex mb-4",children:(0,a.jsx)("span",{children:null==$?void 0:$.failReason})})]})]}):(0,a.jsx)(a.Fragment,{})]}):(0,a.jsx)(a.Fragment,{}),(null==$?void 0:$.failCode)===c.d6&&(0,a.jsx)("div",{className:"text-caption px-3 text-secondary pb-2",dangerouslySetInnerHTML:{__html:G
1("pendingTips")}})]})}),et&&ed&&(0,a.jsx)(h.A,{onClick:async()=>{if(en)Q();else{let{data:e}=await (0,v.e7)({orderId:null==$?void 0:$.orderId});if(e.orderId)X(e.orderId);else{let{destory:e}=(0,y.A)({children:(0,a.jsx)(p.A,{imageSrc:j.A,content:(0,a.jsx)("div",{className:"text-center",dangerouslySetInnerHTML:{__html:G("Failed2ProcessDesc")}}),title:G("Failed2Process"),Footer:()=>(0,a.jsx)(d.wi,{destory:e,mode:d.z7.OKV2})})})}}},className:"mt-3",children:G("TryAgain")}),(null==$?void 0:$.failCode)===c.d6&&(0,a.jsx)(h.A,{onClick:async()=>{em(!0)},className:"mt-3 !h-12 shrink-0",children:G("ChooseAnotherWallet")}),ex]})}},40486:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/ICDownGray.af8efaa0.svg",height:16,width:16,blurWidth:0,blurHeight:0}},46604:(e,t,l)=>{l.d(t,{m:()=>i});var a=l(10239),n=l.n(a),s=l(66822),d=l.n(s);function i(e,t){return n()(e,t)?d()(e,t):[...e,t]}},56058:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(37876),n=l(56557),s=l.n(n),d=l(14232),i=l(34846);let r=e=>{let{t}=(0,i.Bd)(),[l,n]=(0,d.useState)(!1),[r,o]=(0,d.useState)(),c=e.onChange,[u,m]=(0,d.useState)({year:e.value.startTime?s()(e.value.startTime).year():0,month:e.value.startTime?s()(e.value.startTime).month()+1:0,day:e.value.startTime?s()(e.value.startTime).date():0}),[h,v]=(0,d.useState)({year:e.value.endTime?s()(e.value.endTime).year():0,month:e.value.endTime?s()(e.value.endTime).month()+1:0,day:e.value.endTime?s()(e.value.endTime).date():0}),x=()=>{let e=s()().year(),t=s()().daysInMonth(),l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=[],n=[],d=[];for(let t=2022;t<=e;t++)a.push(t);for(let e=0;e<l.length;e++)n.push({month:e+1,name:l[e]});for(let e=1;e<=t;e++)d.push(e);return{yearsList:a,MonthList:n,DayList:d}},y=(0,d.useRef)(null),p=(0,d.useRef)(null),j=(0,d.useRef)(null);(0,d.useEffect)(()=>{l&&setTimeout(()=>{var e,t,l;null==y||null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"end"}),null==p||null===(t=p.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"end"}),null==j||null===(l=j.current)||void 0===l||l.scrollIntoView({behavior:"smooth",block:"end"})},0)},[l]);let f=(0,d.useCallback)(e=>{m(e),e.year&&e.month&&e.day&&c({startTime:e.year&&e.month&&e.day?s()("".concat(e.year,"-").concat(e.month,"-").concat(e.day)).valueOf():0,endTime:h.year&&h.month&&h.day?s()("".concat(h.year,"-").concat(h.month,"-").concat(h.day)).valueOf():0})},[h,c]),N=(0,d.useCallback)(e=>{v(e),e.year&&e.month&&e.day&&c({endTime:e.year&&e.month&&e.day&&s()("".concat(e.year,"-").concat(e.month,"-").concat(e.day)).valueOf(),startTime:u.year&&u.month&&u.day?s()("".concat(u.year,"-").concat(u.month,"-").concat(u.day)).valueOf():0})},[c,u]),w=e=>{"start"===r?f({...u,year:e}):N({...h,year:e})},C=e=>{"start"===r?f({...u,month:e}):N({...h,month:e})},A=e=>{"start"===r?f({...u,day:e}):N({...h,day:e})},b=(0,d.useRef)(null);return(0,d.useEffect)(()=>{setTimeout(()=>{l&&b.current&&b.current.scrollIntoView()},100)},[l]),(0,a.jsxs)("div",{className:"w-full rounded-xl bg-bg2 ".concat(e.needSpace&&!l?"mb-[100px]":""),children:[(0,a.jsxs)("div",{className:" flex px-6 justify-between items-center h-9  ".concat(e.className),children:[(0,a.jsx)("div",{className:"flex-1 text-center cursor-pointer font-medium text-sm ".concat("start"===r?"text-link":""),onClick:()=>{l&&"start"===r?n(!1):n(!0),o("start")},children:u.year&&u.month&&u.day?"".concat(u.year,"-").concat(u.month,"-").concat(u.day):(0,a.jsx)("span",{className:"start"!==r?"text-disabled":"",children:t("StartDate")})}),(0,a.jsx)("div",{className:"text-secondary font-medium text-sm",children:t("to")}),(0,a.jsx)("div",{className:"flex-1 text-center cursor-pointer font-medium text-sm ".concat("end"===r?"text-link":""),onClick:()=>{l&&"end"===r?n(!1):n(!0),o("end")},children:h.year&&h.month&&h.day?"".concat(h.year,"-").concat(h.month,"-").concat(h.day):(0,a.jsx)("span",{className:"end"!==r?"text-disabled":"",children:t("EndDate")})})]}),l?(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsxs)("div",{className:"h-[150px] flex justify-between",children:[(0,a.jsx)("div",{className:"cursor-pointer overflow-auto w-1/3 text-center",children:x().yearsList.map((e,t)=>(0,a.jsx)("div",{onClick:()=>w(e),ref:e===("start"===r?u:h).year?y:null,className:"mb-2 ".concat(e===("start"===r?u:h).year?"text-link":""),children:e},e))}),(0,a.jsx)("div",{className:"cursor-pointer overflow-auto w-1/3 text-center",children:x().MonthList.map((e,t)=>(0,a.jsx)("div",{onClick:()=>C(e.month),ref:e.month===("start"===r?u:h).month?p:null,className:"mb-2 ".concat(e.month===("start"===r?u:h).month?"text-link":""),children:e.name},t))}),(0,a.jsx)("div",{className:"cursor-pointer overflow-auto w-1/3 text-center",children:x().DayList.map(e=>(0,a.jsx)("div",{onClick:()=>A(e),ref:e===("start"===r?u:h).day?j:null,className:"mb-2 ".concat(e===("start"===r?u:h).day?"text-link":""),children:e},e))})]}),(0,a.jsxs)("div",{className:"flex flex-wrap mt-2",children:[(0,a.jsx)("div",{onClick:()=>{let e=s()().subtract(7,"day");f({year:e.year(),month:e.month()+1,day:e.date()}),N({year:s()().year(),month:s()().month()+1,day:s()().date()})},className:"py-[10px]  cursor-pointer text-center font-medium text-xs w-1/3 text-link",children:"Recent 7 Days"}),(0,a.jsx)("div",{onClick:()=>{let e=s()().subtract(30,"day");f({year:e.year(),month:e.month()+1,day:e.date()}),N({year:s()().year(),month:s()().month()+1,day:s()().date()})},className:"py-[10px]  cursor-pointer text-center font-medium text-xs w-1/3 text-link",children:"Recent 30 Days"}),(0,a.jsx)("div",{onClick:()=>{let e=s()().subtract(90,"day");f({year:e.year(),month:e.month()+1,day:e.date()}),N({year:s()().year(),month:s()().month()+1,day:s()().date()})},className:"py-[10px]  cursor-pointer text-center font-medium text-xs w-1/3 text-link",children:"Recent 90 Days"}),(0,a.jsx)("div",{onClick:()=>{let e=s()().startOf("month");f({year:e.year(),month:e.month()+1,day:e.date()}),N({year:s()().year(),month:s()().month()+1,day:s()().date()})},className:"py-[10px]  cursor-pointer text-center font-medium text-xs w-1/3 text-link",children:"This Month"}),(0,a.jsx)("div",{onClick:()=>{let e=s()().subtract(1,"month").startOf("month"),t=s()().subtract(1,"month").endOf("month");f({year:e.year(),month:e.month()+1,day:e.date()}),N({year:t.year(),month:t.month()+1,day:t.date()})},ref:b,className:"py-[10px]  cursor-pointer text-center font-medium text-xs w-1/3 text-link",children:"Last Month"})]})]}):(0,a.jsx)(a.Fragment,{})]})}},65191:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/masterCard.ac35cf18.svg",height:24,width:24,blurWidth:0,blurHeight:0}},81786:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/visaCard.d9984578.svg",height:24,width:24,blurWidth:0,blurHeight:0}},97929:(e,t,l)=>{l.d(t,{A:()=>n});var a=l(58069);let n=function(e){let{num:t,decimalPlaces:l=2,roundingMode:n="roundDown"}=e;t=t||0;let s=new a.A(t);
1return"roundDown"===n?s.round(l,0):"roundUp"===n&&s.round(l,3),s.toNumber().toLocaleString(void 0,{minimumFractionDigits:l,maximumFractionDigits:l})}}}]);

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.