1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7582],{10316:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/card-f.144a83e0.svg",height:24,width:27,blurWidth:0,blurHeight:0}},13715:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(37876),l=n(14232),i=n(54587),s=n.n(i);let r={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/gift.35dab164.svg",height:48,width:48,blurWidth:0,blurHeight:0},o={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/fullColorGo.71c06ffe.svg",height:24,width:24,blurWidth:0,blurHeight:0};var d=n(99190);let c=e=>{let{childrenText:t,className:n="",textClassName:i="",extra:c,showPop:u=!1,popTitle:m="",popText:C=""}=e,[p,h]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative bg-alertbg bg-gradient-to-b px-5 py-3\n from-alertbg to-bg1 -mx-5 sm:mx-0 ".concat(n),children:[(0,a.jsx)("div",{className:"test-small-body bg-transparent whitespace-normal break-words\n flex flex-wrap items-center justify-start ".concat(i),dangerouslySetInnerHTML:{__html:t}}),u&&(0,a.jsx)("button",{onClick:()=>h(!0),className:" absolute right-5 top-1/2 transform -translate-y-1/2 rounded-full shadow-sm h-6 w-6 flex items-center justify-center ","aria-label":"show details",children:(0,a.jsx)(s(),{src:o,alt:"info",width:24,height:24})}),!u&&(0,a.jsx)(s(),{alt:"giftSvg",src:r,className:"h-full w-auto absolute right-0 top-0"}),c]}),(0,a.jsx)(d.Ay,{open:p,title:m,onClose:()=>h(!1),showMask:!0,children:(0,a.jsx)("div",{className:"prose dark:prose-invert max-h-[70vh] overflow-auto",dangerouslySetInnerHTML:{__html:C}})})]})}},16732:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lng]/card-buy-sell",function(){return n(87972)}])},36209:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(37876),l=n(88050);let i=e=>(0,a.jsx)(l.A,{size:8,color:"#A7EA33",speedMultiplier:.7,...e})},36327:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,l:()=>i});var a=n(10252),l=n(14232);let i=e=>"migrateCashback1"===e?"1%":"migrateCashback3a"===e||"migrateCashback3b"===e?"3%":"5%",s=(0,a.kQ)(()=>{let[e,t]=(0,l.useState)(!0),[n,a]=(0,l.useState)(),[i,s]=(0,l.useState)(""),[r,o]=(0,l.useState)([]),[d,c]=(0,l.useState)(""),[u,m]=(0,l.useState)(!1),[C,p]=(0,l.useState)(""),[h,v]=(0,l.useState)("");return{migrateCashbackText:i,setMigrateCashbackText:s,migrateCashback:n,promotionLoading:e,setPormotionLoading:t,setMigrateCashback:a,promotionAccountCheck:r,setPromotionAccountCheck:o,welcomePageDescription:d,setWelcomePageDescription:c,welcomePageNeedPop:u,setWelcomePageNeedPop:m,welcomePagePopTitle:C,setWelcomePagePopTitle:p,welcomePagePopDescription:h,setWelcomePagePopDescription:v}})},55757:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,h:()=>u});var a=n(52397),l=n(32378),i=n(14232),s=n(92094),r=n(35373),o=n(44975),d=n(71894),c=function(e){return e.loading="loading",e.confirm="confirm",e}({});let u=()=>{let{setCardList:e}=(0,r.A)(),{setOrderInfo:t}=(0,o.A)(),[n,c]=(0,i.useState)("loading");return(0,i.useEffect)(()=>{(async()=>{try{if((0,d.m0)()){(0,d.zn)(),e([]),t(d.Rj),c("confirm");return}let n=(0,a._W)("tranId")||"",i=(0,a._W)("tranType")||"buy",[{data:r},{data:o}]=await Promise.all([(0,l.$t)({channelCode:s.k$.CHECKOUT,businessType:i}),(0,l.bL)(n)]);e(r),t(o),c("confirm")}catch(e){throw e}})()},[e,t]),{step:n}}},57662:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var a=n(37876),l=n(99190),i=n(14232),s=n(34846),r=n(84952),o=n(65191),d=n(81786),c=n(48058),u=n(76980),m=n(10316),C=n(19020);let p={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/plus.3fbe6312.svg",height:16,width:16,blurWidth:0,blurHeight:0};var h=n(44789),v=n(38243),x=n(54587),f=n.n(x),y=n(59582),g=n(31991),b=n(32378),A=n(82565),_=n(35373),j=n(17745),w=n(92094),N=n(47316),I=n(52397),k=n(44975);let T=e=>{var t;let{cardInfo:n,selected:l,onSelect:i,onDelete:r}=e,{t:p}=(0,s.Bd)();return(null==n?void 0:n.disabled)?(0,a.jsxs)("div",{className:"mb-[10px] flex flex-1 items-center justify-start h-14 roun
1ded-[4px] px-5",children:[(0,a.jsx)("div",{className:"cursor-pointer rounded-full w-4 h-4 border-2 border-disabled bg-disabled justify-center items-center flex"}),(0,a.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)(f(),{src:m.A,alt:"master"})}),(0,a.jsx)("div",{className:"ml-3 text-regular-body cursor-default text-disabled",children:p("EndingCardLast4",{cardLast4:n.cardLast4})}),(0,a.jsx)("div",{className:"w-4 h-4 ml-3",children:(0,a.jsx)(N.A,{tips:n.blockedReason||"This card cannot be used",children:(0,a.jsx)(f(),{className:"cursor-pointer",alt:"forbidden",src:C.A})})})]}),(0,a.jsx)("div",{onClick:e=>{null==r||r(n),e.stopPropagation()},className:"cursor-pointer",children:(0,a.jsx)(f(),{alt:"del",src:u.A})})]})]}):(0,a.jsxs)("div",{onClick:()=>{null==i||i(n)},className:"cursor-pointer mb-[10px] flex flex-1 items-center justify-start h-14 rounded-[4px] px-5 hover:bg-bg2 ".concat(l?"bg-bg2":""),children:[(0,a.jsx)("div",{className:"cursor-pointer rounded-full w-4 h-4 border-2 ".concat(l?"border-primary":"border-line"," justify-center items-center flex"),children:(0,a.jsx)("div",{className:"rounded-full w-2 h-2 ".concat(l?"bg-primary":"")})}),(0,a.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"ml-4",children:(null==n?void 0:null===(t=n.cardProcessor)||void 0===t?void 0:t.toUpperCase())===v.T5.VISA?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f(),{className:"block dark:hidden shrink-0",src:d.A,alt:"visaCard"}),(0,a.jsx)(f(),{className:"hidden dark:block shrink-0",src:c.A,alt:"visaCard"})]}):(0,a.jsx)(f(),{src:o.A,alt:"master"})}),(0,a.jsx)("div",{className:"ml-3 text-regular-body cursor-default",children:p("EndingCardLast4",{cardLast4:n.cardLast4})})]}),(0,a.jsx)("div",{onClick:e=>{null==r||r(n),e.stopPropagation()},className:"cursor-pointer",children:(0,a.jsx)(f(),{alt:"del",src:u.A})})]})]})},E=()=>{let{t:e}=(0,s.Bd)(),{cardList:t,canUseCardList:n,setCardList:o,currentCard:d,setManageCardOpen:c,setAddCardOpen:u,manageCardOpen:m,setCurrentCard:C,setArrivalTime:v,setIsDisableSellCard:x}=(0,_.A)(),{ga4log:N}=(0,j.A)(),[E,L]=(0,i.useState)(d),M=(0,i.useCallback)(async()=>{if(!(null==d?void 0:d.cardId))return;let t=(0,I._W)("tranType")||"buy";try{let{data:n}=await (0,b.lo)({cardId:null==d?void 0:d.cardId,businessType:t,channelCode:w.k$.CHECKOUT});if(v(null==n?void 0:n.arrivalTime),x((null==n?void 0:n.payoutsTransactionType)==="NOT_SUPPORTED"),(null==n?void 0:n.payoutsTransactionType)==="NOT_SUPPORTED"){let{destory:t}=(0,y.A)({children:(0,a.jsx)(g.A,{imageSrc:h.A,title:e("UnsupportedCard"),content:e("UnsupportedCardTips"),Footer:()=>(0,a.jsx)(l.wi,{destory:t,mode:l.z7.OK})})})}return n}catch(e){v(""),x(!1)}},[d,b.lo]),{channelCode:P}=(0,k.A)();(0,i.useEffect)(()=>{P&&(L(d),m||M())},[d,m]),(0,i.useEffect)(()=>{0===t.length&&c(!1)},[t.length,c]),(0,i.useEffect)(()=>{m&&N({element_id:"paymonade3_ManageCard_pageview"})},[N,m]);let S=(0,i.useCallback)(async t=>{N({element_id:"paymonade3_ManageCard_confrimbtn"});let n={success:!1};try{n=(await (0,b.GO)({cardId:null==t?void 0:t.cardId})).data}catch(t){A.A.info({options:{position:A.y.top,Icon:null},text:e("FailedToDelNewCard")})}if(n.success){A.A.success({text:e("Success")});let t=(0,I._W)("tranType"),{data:n}=await (0,b.$t)({channelCode:w.k$.CHECKOUT,businessType:t});o(n)}},[N,o,e]),H=(0,i.useCallback)(t=>{let{destory:n}=(0,y.A)({children:(0,a.jsx)(g.A,{content:e("ConfirmToDelCard2").replace("{{cardNum}}","".concat(t.cardProcessor," **** ").concat(t.cardLast4)),Footer:()=>(0,a.jsx)(l.wi,{onConfirm:()=>S(t),destory:n,mode:l.z7.confirmAndCancelV2})})})},[S,e]);return(0,a.jsx)("div",{children:(0,a.jsx)(l.Ay,{open:m,onClose:()=>{c(!1)},showMask:!0,title:e("ManageCards"),subTitle:e("ManageCardsSubTitle"),footer:(0,a.jsx)(r.A,{disabled:!n.length,onClick:()=>{C(E),c(!1)},className:"mt-0! mb-0! py-3 text-cta-text max-w-full",children:e("Confirm")}),children:(0,a.jsxs)("div",{className:"grow",children:[(0,a.jsx)("div",{className:"h-auto",children:null==t?void 0:t.map(e=>(0,a.jsx)(T,{onDelete:H,onSelect:()=>{L(e)}
1,selected:(null==E?void 0:E.cardId)===e.cardId,cardInfo:e},e.cardId))}),t.length<5?(0,a.jsxs)("div",{className:"h-14 px-5 py-4 flex items-center cursor-pointer",onClick:()=>{u(!0)},children:[(0,a.jsx)(f(),{alt:"add",src:p}),(0,a.jsx)("div",{className:"ml-4 text-link text-regular-body-sub",children:e("AddNewCard")})]}):(0,a.jsx)(a.Fragment,{})]})})})}},71894:(e,t,n)=>{"use strict";n.d(t,{HC:()=>c,Rj:()=>o,dt:()=>d,m0:()=>s,zn:()=>r});var a=n(92094),l=n(52397),i=n(66852);let s=()=>"1"===(0,i.UG)("mockTaxConfirm"),r=()=>{(0,l.KY)(a.ck.paymentMethod,a.YJ.CARD),(0,l.KY)(a.ck.tranType,a.c.BUY),(0,l.KY)(a.ck.tranId,"MOCK_TAX_ORDER"),(0,l.KY)(a.ck.fiatCurrency,"EUR")},o={fiatCurrency:"EUR",cryptoCurrency:"USDT",fiatAmt:"100",cryptoAmt:"98",orderId:"MOCK_TAX_ORDER",paymentMethod:a.YJ.CARD,userId:"mock-user",currencyIcon:"",firstName:"Mock",middleName:"",lastName:"User",country:"FR",city:"Paris",address:"1 Rue Mock",postalCode:"75001",fiatPrecision:2,businessType:a.c.BUY},d={quoteId:"MOCK_TAX_QUOTE",fiatAmount:"100",cryptoAmount:"98.00000000",quotePrice:"1.02",tradeFee:"1.5",reducedFee:"0",userFee:"0.5",fiatActualAmount:"100",quotationExpiredAt:Date.now()+6e4,fiatCurrency:"EUR",cryptoCurrency:"USDT",feeCurrency:"EUR",expiredAfter:60,fiatPrecision:2,networkFee:"0",networkFeeCurrency:"EUR"},c=a.k$.CHECKOUT},74467:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(37876),l=n(92123);n(14232);var i=n(34846);let s=e=>{let{onclick:t,PaymentmethodImage:n,isBuy:s,children:r}=e,{t:o}=(0,i.Bd)();return(0,a.jsxs)("div",{onClick:t,className:"cursor-pointer mt-4 rounded-xl px-4 py-2 bg-bg2 hover:bg-bg3 active:bg-bg3 flex items-center justify-between gap-2 transition-all duration-300",children:[(0,a.jsx)("div",{className:"w-8 h-8",children:n}),(0,a.jsxs)("div",{className:"flex flex-1 justify-between items-center",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"font-medium text-secondary",children:o(s?"PayingWith":"SellTo")}),(0,a.jsx)("div",{className:"flex justify-between items-center ",children:r})]}),(0,a.jsx)(l.A,{alt:"ICGoInactive",className:"w-4 h-4 text-primary-text"})]})]})}},76980:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/del.4cd4ba73.svg",height:20,width:20,blurWidth:0,blurHeight:0}},77929:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(37876),l=n(54587),i=n.n(l),s=n(93709),r=n(34846),o=n(79123);n(14232);let d=e=>{let{desc:t}=e,{t:n}=(0,r.Bd)();return(0,a.jsxs)("div",{className:"flex h-full relative flex-col text-center pt-[104px] items-center",children:[(0,a.jsx)(i(),{alt:"IllustrationLoading",src:s.A}),(0,a.jsx)("div",{className:"px-5 mt-6 text-secondary text-base",children:t||n("loadingDesc")}),(0,a.jsx)(o.A,{className:" !absolute !bottom-0"})]})}},78730:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(37876);n(14232);let l=e=>{let{className:t="",...n}=e;return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"fill-current ".concat(t),...n,children:(0,a.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"})})}},79123:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(37876),l=n(54587),i=n.n(l);let s={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/paymonade-logo-icon.2364f979.svg",height:16,width:17,blurWidth:0,blurHeight:0};var r=n(34846),o=n(44975);let d=e=>{let{className:t}=e,{t:n}=(0,r.Bd)(),{showBinance:l}=(0,o.A)();return!1===l?(0,a.jsxs)("div",{className:"sm:hidden flex flex-1 items-center justify-center text-disabled text-xs py-2 ".concat(t),children:[(0,a.jsx)(i(),{src:s,alt:"paymonadeLogoIcon",className:"mr-2"}),(0,a.jsx)(r.x6,{t:n,i18nKey:"PoweredBy",components:{s:(0,a.jsx)("span",{className:"text-secondary text-xs ml-1"})}})]}):(0,a.jsx)(a.Fragment,{})}},83415:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/ICInfo.116fba79.svg",height:16,width:16,blurWidth:0,blurHeight:0}},83561:(e,t,n)=>{"use strict";n.d(t,{Cx:()=>x,Dg:()=>h,EI:()=>b,Nj:()=>u,PA:()=>m,Py:()=>C,XC:()=>y,bV:()=>p,fz:()=>d,hV:()=>v,k9:()=>c,rN:()=>o,sT:()=>g,vS:()=>f});var a=n(91702),l=n(92094),i=n(52397),s=n(66852);let r={getChannelAccount:"/capi/v1/customer/user/get-channel-account",listUserChannelAccount:"/capi/v1/customer/user/list-user-channel-account",deleteUserChannelAccount:"/capi/v1/customer/user/delete-user-channel-account",addUserChannelAccount:"/capi/v1/customer/user/add-user-channel-account",queryChannelRoute:"/capi/v1/customer/user/channel-route",listOfflineCrypto:"/capi/v1/customer/order/list-offline-crypto",checkUserChannelAccount:"/capi/v1/customer/user/check-user-channel-account",checkCurrencyLimit:"/capi/v1/customer/order/check-currency-limit",createWithdraw:"/capi/v1/customer/order/create-withdraw",submitWithdraw:"/capi/v1/customer/order/submit-withdraw",getConfigFee:"/capi/v1/customer/order/get-fee-config",getChannelMinAmount:"/capi/v1/customer/order/get-channel-min-amount",bindOnChainWallet:"/capi/v1/customer/user/channel-account/bind-on-chain-wallet",listCchannelAccount:"/capi/v1/customer/user/list-channel-account"},o=e=>(0,a.bE)({url:r.getChannelAccount,data:e}),d=e=>(0,a.bE)({url:r.bindOnChainWallet,data:e}),c=e=>(0,a.bE)({url:r.listUserChannelAccount,data:e}),u=e=>(0,a.bE)({url:r.createWithdraw,data:e}),m=e=>(0,a.bE)({url:r.submitWithdraw,data:e}),C=e=>(0,a.bE)({url:r.deleteUserChannelAccount,data:e}),p=e=>(0,a.bE)({url:r.addUserChannelAccount,data:e}
1),h=e=>{let{businessType:t}=e,n=(0,s.UG)(l.wJ),o=(0,i._W)(l.ck.tranId),d=(0,i._W)(l.ck.paymentMethod);return(0,a.bE)({url:r.queryChannelRoute,data:n?{businessType:t,currency:"EUR"}:{tranId:o,paymentMethod:d,businessType:t}})},v=()=>(0,a.Jt)({url:r.listOfflineCrypto}),x=e=>((0,i._W)(l.ck.tranId),(0,i._W)(l.ck.paymentMethod),(0,a.bE)({url:r.checkUserChannelAccount,data:e})),f=e=>(0,a.Jt)({url:r.checkCurrencyLimit,params:e}),y=e=>(0,a.bE)({url:r.getConfigFee,data:e}),g=e=>(0,a.bE)({url:r.listCchannelAccount,data:e}),b=e=>(0,a.Jt)({url:r.getChannelMinAmount,params:e})},87972:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ef});var a=n(37876),l=n(9568),i=n(91702),s=n(32378),r=n(8053),o=n(84952),d=n(77929),c=n(99190),u=n(31991),m=n(59582),C=n(44975),p=n(97929),h=n(14232),v=n(34846),x=n(7419);let f=e=>{let{isInit:t,allInfos:n,isBuy:l,extraInfos:i,paymentInfos:s,topContent:r,bottomContent:o}=e,[d,c]=(0,h.useState)(!0),{t:u}=(0,v.Bd)(),{paymentMethod:m,orderInfo:f,setQuoteInfo:y,quoteInfo:{loading:g,data:b}}=(0,C.A)(),A=(0,h.useCallback)(e=>{let{label:t,value:n}=e;return(0,a.jsxs)("div",{className:"w-full items-end flex justify-between",children:[(0,a.jsx)("div",{className:"text-body-m text-Text-PrimaryText",children:t}),(0,a.jsx)("div",{className:"text-body-m text-Text-PrimaryText text-right",children:n})]})},[]),{trackAndGa:_}=(0,x.A)();return(0,a.jsxs)("div",{className:"w-full",children:[r&&(0,a.jsx)("div",{className:"w-full rounded-xl p-3 gap-1 flex items-start",children:(0,a.jsx)("span",{className:" text-secondary",children:r})}),(0,a.jsx)("div",{className:"overflow-hidden rounded-xl flex flex-col justify-start relative",children:d?(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[n.map(e=>(0,a.jsx)(A,{...e},e.label)),(null==i?void 0:i.length)?(0,a.jsx)(a.Fragment,{children:(null==i?void 0:i.length)&&(null==i?void 0:i.map(e=>(0,a.jsx)(A,{...e},e.label)))}):(0,a.jsx)(a.Fragment,{}),(null==s?void 0:s.length)?(0,a.jsx)(a.Fragment,{children:(null==s?void 0:s.length)&&(null==s?void 0:s.map(e=>(0,a.jsx)(A,{...e},e.label)))}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"border-b border-line "}),(0,a.jsx)(A,{label:u("TotalSpend"),value:(0,a.jsxs)("div",{className:"text-heading-m",children:[(0,a.jsx)("span",{children:(0,p.A)({num:l?null==b?void 0:b.fiatAmount:null==b?void 0:b.fiatActualAmount,decimalPlaces:null==b?void 0:b.fiatPrecision})}),(0,a.jsxs)("span",{children:["\xa0",(null==b?void 0:b.fiatCurrency)||""]})]})})]}):(0,a.jsx)(a.Fragment,{})}),o&&(0,a.jsx)("div",{className:"w-full rounded-xl p-3 gap-1 bg-alertbg flex items-start",children:(0,a.jsx)("span",{className:" text-secondary",children:o})})]})};var y=n(92094),g=n(48910),b=n(51259),A=n(17745),_=n(95256),j=n(44789),w=n(35373),N=n(52397),I=n(58069),k=n(54587),T=n.n(k),E=n(38243),L=n(98326),M=n(86299),P=n(9694),S=n(79829),H=n(95215),D=n(83561),V=n(98761);let O=e=>{let{...t}=e;return(0,a.jsxs)("svg",{width:"79",height:"24",viewBox:"0 0 79 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,a.jsx)("g",{"clip-path":"url(#clip0_2193_15832)",children:(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M77.3303 8.43062C77.3677 8.42524 77.4155 8.42524 77.4842 8.42524C77.6755 8.42524 77.7558 8.5109 77.7558 8.62304C77.7558 8.76207 77.6282 8.81545 77.4632 8.81545H77.3303V8.43062ZM77.3303 9.03476H77.4583C77.601 9.03476 77.6862 9.09352 77.7076 9.23793C77.7339 9.41959 77.7558 9.5371 77.787 9.5851H78.0796C78.0586 9.54248 78.0318 9.46262 78.0055 9.25407C77.9841 9.05628 77.9096 8.9491 77.7928 8.928V8.91724C77.9364 8.87959 78.0479 8.76745 78.0479 8.60731C78.0479 8.46786 78.0055 8.37724 77.931 8.31848C77.8405 8.24897 77.7023 8.21131 77.4743 8.21131C77.2719 8.21131 77.155 8.23283 77.0485 8.24897V9.5851H77.3303V9.03476ZM77.5377 7.9229C78.0425 7.9229 78.4519 8.35614 78.4519 8.89035C78.4519 9.43035 78.0425 9.85821 77.5377 9.85241C77.0324 9.85241 76.6288 9.43035 76.6288 8.89035C76.6288 8.35614 77.0324 7.9229 77.5323 7.9229H77.5377ZM77.5377 7.68248C76.8781 7.68248 76.342 8.22207 76.342 8.88497C76.342 9.55862 76.8781 10.0928 77.5377 10.0928C78.2018 10.0928 78.728 9.55862 78.728 8.88497C78.728 8.22207 78.2018 7.68248 77.543 7.68248H77.5377ZM77.9072 16.848H78.3816V12.996H77.9072
1V16.848ZM76.6452 16.848H77.1196V14.2221H76.6452V16.848ZM76.8769 13.7396C77.0649 13.7396 77.1846 13.5989 77.1846 13.4309C77.1846 13.2617 77.0649 13.1268 76.8818 13.1268C76.6991 13.1268 76.5745 13.2617 76.5745 13.4309C76.5745 13.5989 76.6938 13.7396 76.8723 13.7396H76.8769ZM76.0087 16.3986C75.8737 16.4578 75.696 16.5228 75.4261 16.5228C74.9076 16.5228 74.5196 16.1491 74.5196 15.5408C74.5196 14.9934 74.8435 14.5428 75.4425 14.5428C75.7009 14.5428 75.8795 14.6081 75.9918 14.6677L76.1009 14.3036C75.9713 14.2332 75.7223 14.1637 75.4425 14.1637C74.5888 14.1637 74.0395 14.7554 74.0395 15.5632C74.0395 16.3717 74.5521 16.9084 75.3397 16.9084C75.6906 16.9084 75.9651 16.8161 76.0893 16.7566L76.0087 16.3986ZM71.2346 16.848H71.709V15.2644C71.709 15.1883 71.7201 15.1014 71.7406 15.0418C71.8279 14.7757 72.0702 14.5531 72.3776 14.5531C72.8261 14.5531 72.9824 14.9119 72.9824 15.3356V16.848H73.4568V15.281C73.4568 14.3797 72.8964 14.1637 72.5339 14.1637C72.1036 14.1637 71.8003 14.4074 71.6707 14.6516H71.66L71.6328 14.2221H71.2123C71.2288 14.4406 71.2346 14.657 71.2346 14.933V16.848ZM70.4466 14.2221H69.9714V15.8288C69.9714 15.9215 69.9557 16.0076 69.9286 16.073C69.8422 16.2902 69.6208 16.5124 69.3023 16.5124C68.8761 16.5124 68.7197 16.1706 68.7197 15.6708V14.2221H68.2453V15.7577C68.2453 16.675 68.7362 16.9084 69.146 16.9084C69.6097 16.9084 69.8911 16.6312 70.0096 16.4201H70.0199L70.0471 16.848H70.4676C70.4515 16.6423 70.4466 16.4036 70.4466 16.133V14.2221ZM66.3736 16.5501C65.9148 16.5501 65.591 16.1164 65.591 15.5408C65.591 15.0418 65.8333 14.5212 66.3892 14.5212C66.9504 14.5212 67.1718 15.0794 67.1718 15.5247C67.1718 16.1218 66.8319 16.5501 66.3785 16.5501H66.3736ZM66.3678 16.9084C66.9879 16.9084 67.6627 16.4851 67.6627 15.509C67.6627 14.7103 67.1553 14.1637 66.4061 14.1637C65.6877 14.1637 65.1108 14.6785 65.1108 15.5574C65.1108 16.3874 65.6609 16.9084 66.3625 16.9084H66.3678ZM64.7014 16.3552C64.5117 16.4474 64.2204 16.5075 63.9291 16.5075C63.0494 16.5075 62.5376 15.9368 62.5376 15.036C62.5376 14.076 63.1041 13.5277 63.9558 13.5277C64.2579 13.5277 64.5117 13.5931 64.6845 13.68L64.803 13.2952C64.6788 13.2298 64.3883 13.1317 63.9398 13.1317C62.812 13.1317 62.0413 13.9018 62.0413 15.053C62.0413 16.2567 62.8066 16.9084 63.832 16.9084C64.2747 16.9084 64.6249 16.8219 64.7923 16.735L64.7014 16.3552ZM58.7822 16.7234C58.9657 16.8331 59.2298 16.9084 59.5162 16.9084C60.126 16.9084 60.4868 16.5828 60.4868 16.1164C60.4868 15.7204 60.249 15.492 59.8014 15.3244C59.4623 15.1937 59.3109 15.096 59.3109 14.8734C59.3109 14.6785 59.4623 14.5154 59.7429 14.5154C59.9857 14.5154 60.1745 14.6081 60.277 14.6677L60.3902 14.3255C60.249 14.2332 60.0182 14.1637 59.7528 14.1637C59.1982 14.1637 58.8529 14.5101 58.8529 14.933C58.8529 15.2479 59.0743 15.5032 59.5483 15.6766C59.8935 15.8069 60.0285 15.931 60.0285 16.1599C60.0285 16.3821 59.8672 16.5501 59.5265 16.5501C59.2899 16.5501 59.041 16.4528 58.8957 16.3651L58.7822 16.7234ZM57.698 15.7473C57.698 15.8234 57.6922 15.888 57.6766 15.9534C57.5906 16.3063 57.2993 16.5228 56.9804 16.5228C56.4735 16.5228 56.2089 16.0837 56.2089 15.547C56.2089 14.9723 56.5002 14.5374 56.9915 14.5374C57.3474 14.5374 57.6066 14.7873 57.6766 15.0848C57.6922 15.1506 57.698 15.2259 57.698 15.2913V15.7473ZM57.698 12.996V14.5597H57.6869C57.5741 14.3528 57.3042 14.1637 56.8997 14.1637C56.2682 14.1637 55.7238 14.695 55.7296 15.5735C55.7296 16.3717 56.22 16.9084 56.8512 16.9084C57.2766 16.9084 57.5906 16.6862 57.7354 16.3928H57.7461L57.7679 16.848H58.1942C58.1782 16.6697 58.172 16.4036 58.172 16.1706V12.996H57.698ZM54.185 16.848H54.6602V15.449C54.6602 15.3674 54.6651 15.2913 54.6762 15.221C54.7417 14.8684 54.9782 14.6131 55.3128 14.6131C55.3778 14.6131 55.4267 14.6189 55.4802 14.6243V14.179C55.4366 14.1679 55.3988 14.1637 55.351 14.1637C55.0321 14.1637 54.7417 14.3855 54.6223 14.7385H54.6055L54.5853 14.2221H54.1693C54.1849 14.467 54.1907 14.7331 54.1907 15.0418L54.185 16.848ZM52.96 15.9646C52.96 16.0134 52.9555 16.0672 52.9399 16.1164C52.8633 16.339 52.642 16.5559 52.2976 16.5559C52.0594 16.5559 51.8549 16.4148 51.8549 16.0999C51.8549 15.5901 52.4428 15.4978 52.96 15.509V15.9646ZM53.4237 15.2375C53.4237 14.7103 53.2304 14.1637 52.4264 14.1637C52.0976 14.1637 51.7792 14.2556 51.5631 14.3905L51.6722 14.7103C51.8549 14.5858 52.1083 14.5154 52.3556 14.5154C52.8913 14.5101 52.9498 14.9069 52.9498 15.1233V15.1775C51.9404 15.1726 51.38 15.5197 51.38 16.1545C51.38 16.5335 51.65 16.9084 52.1783 16.9084C52.5506 16.9
1084 52.8366 16.7234 52.9769 16.5182H52.9938L53.0366 16.848H53.4624C53.4353 16.6697 53.4237 16.4474 53.4237 16.2194V15.2375ZM50.3226 15.7473C50.3226 15.8234 50.3172 15.888 50.3016 15.9534C50.2148 16.3063 49.9235 16.5228 49.6058 16.5228C49.0981 16.5228 48.8335 16.0837 48.8335 15.547C48.8335 14.9723 49.1248 14.5374 49.6157 14.5374C49.9729 14.5374 50.2317 14.7873 50.3016 15.0848C50.3172 15.1506 50.3226 15.2259 50.3226 15.2913V15.7473ZM50.3226 12.996V14.5597H50.3115C50.1983 14.3528 49.928 14.1637 49.5244 14.1637C48.8932 14.1637 48.3476 14.695 48.3533 15.5735C48.3533 16.3717 48.8442 16.9084 49.4758 16.9084C49.9021 16.9084 50.2148 16.6862 50.36 16.3928H50.3711L50.3925 16.848H50.818C50.8028 16.6697 50.7974 16.4036 50.7974 16.1706V12.996H50.3226ZM45.5476 16.848H46.0229V15.2644C46.0229 15.1883 46.0344 15.1014 46.0549 15.0418C46.1413 14.7757 46.3849 14.5531 46.6919 14.5531C47.14 14.5531 47.2963 14.9119 47.2963 15.3356V16.848H47.7707V15.281C47.7707 14.3797 47.2103 14.1637 46.8478 14.1637C46.4166 14.1637 46.1146 14.4074 45.9842 14.6516H45.9747L45.9471 14.2221H45.5262C45.5427 14.4406 45.5476 14.657 45.5476 14.933V16.848ZM44.3235 15.9646C44.3235 16.0134 44.319 16.0672 44.3017 16.1164C44.2268 16.339 44.0055 16.5559 43.6603 16.5559C43.4228 16.5559 43.2171 16.4148 43.2171 16.0999C43.2171 15.5901 43.8059 15.4978 44.3235 15.509V15.9646ZM44.7872 15.2375C44.7872 14.7103 44.5934 14.1637 43.789 14.1637C43.4603 14.1637 43.1418 14.2556 42.9258 14.3905L43.0336 14.7103C43.2171 14.5858 43.471 14.5154 43.7187 14.5154C44.2528 14.5101 44.3124 14.9069 44.3124 15.1233V15.1775C43.3039 15.1726 42.7431 15.5197 42.7431 16.1545C42.7431 16.5335 43.013 16.9084 43.5418 16.9084C43.9141 16.9084 44.1993 16.7234 44.3396 16.5182H44.3552L44.3992 16.848H44.8247C44.7984 16.6697 44.7872 16.4474 44.7872 16.2194V15.2375ZM41.2693 13.7396V14.2221H40.8652V14.5858H41.2693V16.0188C41.2693 16.3274 41.324 16.5617 41.4536 16.7077C41.5668 16.8331 41.7449 16.9084 41.9663 16.9084C42.1494 16.9084 42.295 16.8761 42.3876 16.843L42.3658 16.4797C42.295 16.5017 42.2193 16.5124 42.0901 16.5124C41.8256 16.5124 41.7334 16.3274 41.7334 16.0018V14.5858H42.4131V14.2221H41.7334V13.5931L41.2693 13.7396ZM38.3561 16.6697C38.5504 16.7996 38.933 16.9084 39.284 16.9084C40.1423 16.9084 40.5517 16.4148 40.5517 15.8503C40.5517 15.3132 40.2439 15.0203 39.6296 14.7757C39.128 14.5804 38.9063 14.4124 38.9063 14.071C38.9063 13.8215 39.0955 13.5236 39.5913 13.5236C39.9209 13.5236 40.1637 13.6266 40.2772 13.6961L40.406 13.3109C40.2497 13.2186 39.9748 13.1317 39.6074 13.1317C38.9013 13.1317 38.4319 13.5554 38.4319 14.1244C38.4319 14.635 38.7985 14.9499 39.3922 15.1672C39.8827 15.3509 40.0765 15.5516 40.0765 15.888C40.0765 16.2621 39.7971 16.5124 39.3165 16.5124C38.9927 16.5124 38.6907 16.4094 38.4804 16.2737L38.3561 16.6697ZM53.8426 8.79766L54.8021 11.2225C54.8297 11.2763 54.8404 11.3148 54.8404 11.3421C54.8404 11.3739 54.8244 11.407 54.8021 11.4554C54.6898 11.7 54.5326 11.8841 54.403 11.9876C54.2623 12.1121 54.1072 12.1887 53.9883 12.221L54.1072 12.6219C54.2253 12.6004 54.452 12.5193 54.6898 12.3182C55.0128 12.031 55.2449 11.5692 55.5839 10.6688L56.297 8.79766H55.7958L55.277 10.3382C55.2132 10.5281 55.1576 10.7288 55.1103 10.8861H55.1C55.056 10.7288 54.9918 10.5228 54.9268 10.3486L54.3602 8.79766H53.8426ZM52.4622 8.31435V8.79766H52.0581V9.16055H52.4622V10.5931C52.4622 10.9026 52.5161 11.1356 52.6461 11.2821C52.7588 11.407 52.937 11.4828 53.1584 11.4828C53.3415 11.4828 53.4875 11.4501 53.5789 11.4178L53.5575 11.0537C53.4875 11.076 53.4114 11.0868 53.283 11.0868C53.0176 11.0868 52.9255 10.9026 52.9255 10.577V9.16055H53.606V8.79766H52.9255V8.16786L52.4622 8.31435ZM51.0924 11.4232H51.5668V8.79766H51.0924V11.4232ZM51.3245 8.31435C51.5129 8.31435 51.6319 8.17324 51.6319 8.00441C51.6319 7.83641 51.5129 7.7011 51.3294 7.7011C51.1459 7.7011 51.0217 7.83641 51.0217 8.00441C51.0217 8.17324 51.1406 8.31435 51.3183 8.31435H51.3245ZM49.3071 11.4228H49.7815V10.0233C49.7815 9.94221 49.7873 9.86607 49.7984 9.79572C49.8634 9.44276 50.0996 9.18745 50.4349 9.18745C50.4991 9.18745 50.5477 9.19324 50.6016 9.19862V8.75379C50.5588 8.74262 50.5213 8.73724 50.4724 8.73724C50.1539 8.73724 49.8634 8.95986 49.7441 9.31241H49.7276L49.7062 8.79766H49.2911C49.3071 9.04097 49.3125 9.30745 49.3125 9.61614L49.3071 11.4228ZM48.5196 8.79766H48.0448V10.4028C48.0448 10.495 48.0283 10.5823 48.0016 10.6469C47.9156 10.8641 47.6934 11.0868 47.3749 11.
10868C46.9495 11.0868 46.7923 10.745 46.7923 10.2455V8.79766H46.3179V10.3328C46.3179 11.2494 46.8087 11.4828 47.2185 11.4828C47.6827 11.4828 47.9633 11.2059 48.0822 10.9949H48.0933L48.1196 11.4228H48.541C48.5249 11.2175 48.5196 10.9779 48.5196 10.7065V8.79766ZM45.6978 10.9721C45.5628 11.0326 45.3851 11.0979 45.1152 11.0979C44.5967 11.0979 44.2087 10.723 44.2087 10.116C44.2087 9.56731 44.5325 9.11752 45.1316 9.11752C45.3904 9.11752 45.5686 9.18248 45.6813 9.24166L45.7891 8.87834C45.6604 8.808 45.4122 8.73724 45.1316 8.73724C44.2787 8.73724 43.7286 9.32897 43.7286 10.1371C43.7286 10.9457 44.2404 11.4828 45.0292 11.4828C45.3797 11.4828 45.655 11.3905 45.7793 11.3309L45.6978 10.9721ZM41.4898 9.84993C41.5268 9.5189 41.733 9.07366 42.2189 9.07366C42.7472 9.07366 42.876 9.55159 42.8707 9.84993H41.4898ZM43.3134 10.1967C43.3245 10.1429 43.3299 10.0663 43.3299 9.96952C43.3299 9.48621 43.1085 8.73186 42.2564 8.73186C41.4948 8.73186 41.0261 9.35628 41.0261 10.1537C41.0261 10.9403 41.5116 11.4774 42.3103 11.4774C42.725 11.4774 43.0167 11.3851 43.1846 11.309L43.0978 10.9721C42.9246 11.0433 42.7143 11.1029 42.3736 11.1029C41.9 11.1029 41.4948 10.8372 41.4841 10.1917L43.3134 10.1967ZM38.3561 11.2444C38.5504 11.3739 38.933 11.4828 39.284 11.4828C40.1423 11.4828 40.5517 10.9891 40.5517 10.4247C40.5517 9.88759 40.2439 9.59503 39.6296 9.35048C39.128 9.15517 38.9063 8.98717 38.9063 8.64538C38.9063 8.39545 39.0955 8.0971 39.5913 8.0971C39.9209 8.0971 40.1637 8.20055 40.2772 8.2709L40.406 7.88524C40.2497 7.79297 39.9748 7.70648 39.6074 7.70648C38.9013 7.70648 38.4319 8.13021 38.4319 8.69917C38.4319 9.20979 38.7985 9.52386 39.3922 9.74152C39.8827 9.92566 40.0765 10.1263 40.0765 10.4632C40.0765 10.8372 39.7971 11.0868 39.3165 11.0868C38.9927 11.0868 38.6907 10.9833 38.4804 10.8484L38.3561 11.2444ZM26.5921 16.9291H30.2393V7.36593H26.5921V16.9291ZM26.2111 4.37007C26.2111 5.01393 26.4234 5.51917 26.8477 5.88621C27.2719 6.25159 27.7973 6.43531 28.4215 6.43531C29.0461 6.43531 29.5707 6.25159 29.9949 5.88621C30.4187 5.51917 30.6306 5.01393 30.6306 4.37007C30.6306 3.71255 30.4187 3.19945 29.9949 2.83283C29.5707 2.46621 29.0461 2.28248 28.4215 2.28248C27.7973 2.28248 27.2719 2.46621 26.8477 2.83283C26.4234 3.19945 26.2111 3.71255 26.2111 4.37007ZM25.106 16.6233L25.101 14.227C24.6295 14.4029 24.1859 14.5366 23.7704 14.6284C23.3556 14.7219 22.9306 14.7679 22.4965 14.7679C22.0743 14.7679 21.681 14.712 21.3152 14.6007C20.9486 14.4906 20.6297 14.3263 20.3565 14.1095C20.0837 13.8923 19.8664 13.6196 19.7047 13.291C19.5447 12.9633 19.4636 12.5822 19.4636 12.1473C19.4636 11.3073 19.7208 10.6597 20.2351 10.207C20.7511 9.75476 21.4172 9.528 22.2356 9.528C22.7446 9.528 23.2223 9.59503 23.6683 9.7291C24.1152 9.86276 24.518 10.0316 24.8772 10.2348L24.8829 7.66841C24.4242 7.50207 24.4118 7.48552 23.8358 7.35848C23.2626 7.2331 22.6076 7.21324 21.9003 7.21324C20.9831 7.21324 20.1425 7.33159 19.3801 7.56621C18.6173 7.80248 17.9602 8.13766 17.4084 8.57172C16.8566 9.00579 16.4287 9.528 16.1251 10.1371C15.821 10.7483 15.6692 11.4219 15.6692 12.1618C15.6692 12.9099 15.8119 13.5886 16.0967 14.1997C16.3818 14.8092 16.7974 15.3257 17.343 15.7519C17.8886 16.1768 18.5551 16.5054 19.3427 16.7359C20.1306 16.9663 21.0268 17.0822 22.0311 17.0822C22.7384 17.0822 23.3704 17.0292 23.9284 16.9221C24.4867 16.8161 24.5328 16.7917 25.106 16.6233ZM14.9573 10.637C14.9573 9.53793 14.5039 8.71697 13.5966 8.17655C12.6894 7.63614 11.441 7.36593 9.85155 7.36593H5.59954V16.9291H9.22901V14.0599H9.79806C10.5687 14.0599 11.2715 13.9891 11.9064 13.8455C12.5413 13.7032 13.0836 13.488 13.5345 13.2008C13.9855 12.9145 14.3352 12.557 14.5841 12.1266C14.8335 11.6971 14.9573 11.2001 14.9573 10.637ZM36.0676 15.1022L8.14523 23.9309L0 1.65641L29.3135 0L36.0676 15.1022ZM11.4702 10.6783C11.4702 11.131 11.311 11.4633 10.9905 11.676C10.6695 11.8887 10.2075 11.995 9.60261 11.995H9.19321V9.43117H9.63841C10.86 9.43117 11.4702 9.84703 11.4702 10.6783Z",fill:"#9BA4B3"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2193_15832",children:(0,a.jsx)("rect",{width:"79",height:"24",fill:"white"})})})]})};var R=n(13715),B=n(36327),U=n(61329),F=n(69241),Z=n(36209),W=n(33841);let Y=e=>{let{className:t="",...n}=e,{isDarkMode:l}=(0,W.A)();return(0,a.jsxs)("svg",{width:"70",height:"28",viewBox:"0 0 70 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"fill-current ".concat(l?"text-[#5F6368]":"text-Comp-BasicBg"," ").concat(t),...n,children:[(0,a.jsx)("path",{d:"M57.4359 27.9999C57.2209 27.9999 56.2603 27.9855 56.0309 27.9425V25.0321C56.2316 25.0751 56.7621 25.0895 57.0058 25.0895C58.5112 25.0895 59.3571 24.516 59.8158 23.068L60.0022 22.3798L54.3965 6.62354H58.2961L61.9664 18.8673H62.2101L65.866 6.62354H69.6223L63.9592 22.8099C62.6259 26.7095 60.9485 27.9999 57.4359 27.9999Z"}),(0,a.jsx)("path",{d:"M46.2112 19.7705C48.3617 19.7705 49.9674 18.3798 49.9674 16.559V15.3117L46.4262 15.5411C44.4334 15.6701 43.5015 16.387 43.5015 17.6629C43.5015 18.9819 44.6341 19.7705 46.2112 19.7705ZM45.1646 22.5662C42.1395 22.5662 39.9746 20.731 39.9746 17.8637C39.9746 15.0249 42.1108 13.3905 45.9244 13.1612L49.9674 12.9174V11.5984C49.9674 10.0644 48.9352 9.20416 47.014 9.20416C45.3796 9.20416 44.2613 9.77764 43.9316 10.8386H40.5768C40.8635 8.07155 43.4585 6.30811 47.1861 6.30811C51.2147 6.30811 53.48 8.27226 53.48 11.5984V22.3081H50.0535V20.1576H49.8097C48.9352 21.6773 47.2148 22.5662 45.1646 22.5662Z"}),(0,a.jsx)("path",{d:"M23.9727 1.61987H32.3167C36.4458 1.61987 39.2701 4.44425 39.2701 8.61629C39.2701 12.7166 36.3454 15.5267 32.159 15.5267H27.6716V22.308H23.9727V1.61987ZM27.6716 4.71665V12.4586H31.3275C33.9655 12.4586 35.5139 11.0822 35.5139 8.61629C35.5139 6.07865 34.0085 4.71665 31.3418 4.71665H27.6716Z"}),(0,a.jsx)("path",{d:"M13.2903 5.44803C13.9355 5.44803 16.2437 5.50538 17.7491 7.69892C17.6201 7.79928 15.3262 9.0896 15.3262 11.9857C15.3262 15.3405 18.2509 16.5305 18.3369 16.5591C18.3226 16.6308 17.8638 18.1792 16.8029 19.7706C15.8423 21.1469 14.8244 22.5376 13.2903 22.5376C11.7563 22.5376 11.3548 21.6487 9.60573 21.6487C7.87097 21.6487 7.25448 22.5663 5.8638 22.5663C4.45878 22.5663 3.46953 21.276 2.36559 19.7133C1.06093 17.8351 0 14.9534 0 12.2151C0 7.84229 2.85305 5.50538 5.66308 5.50538C7.13978 5.50538 8.38709 6.48029 9.31899 6.48029C10.2079 6.48029 11.5842 5.44803 13.2903 5.44803ZM12.5018 3.59857C11.7419 4.51613 10.4516 5.2043 9.43369 5.2043C9.31899 5.2043 9.2043 5.18996 9.13261 5.17563C9.11828 5.
111828 9.0896 4.9319 9.0896 4.75986C9.0896 3.59857 9.69175 2.43728 10.3226 1.70609C11.1398 0.74552 12.5161 0.0430107 13.6344 0C13.6631 0.129032 13.6774 0.286738 13.6774 0.444444C13.6774 1.60573 13.19 2.75269 12.5018 3.59857Z"})]})};var K=n(65191),q=n(81786),G=n(48058);n(10316),n(19020),n(47316);let J=e=>{let{className:t="",...n}=e;return(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"fill-current ".concat(t),...n,children:(0,a.jsx)("path",{d:"M21.5 6.30775V17.6923C21.5 18.1974 21.325 18.625 20.975 18.975C20.625 19.325 20.1974 19.5 19.6923 19.5H4.30775C3.80258 19.5 3.375 19.325 3.025 18.975C2.675 18.625 2.5 18.1974 2.5 17.6923V6.30775C2.5 5.80258 2.675 5.375 3.025 5.025C3.375 4.675 3.80258 4.5 4.30775 4.5H19.6923C20.1974 4.5 20.625 4.675 20.975 5.025C21.325 5.375 21.5 5.80258 21.5 6.30775ZM4 8.404H20V6.30775C20 6.23075 19.9679 6.16025 19.9038 6.09625C19.8398 6.03208 19.7693 6 19.6923 6H4.30775C4.23075 6 4.16025 6.03208 4.09625 6.09625C4.03208 6.16025 4 6.23075 4 6.30775V8.404ZM4 11.596V17.6923C4 17.7692 4.03208 17.8398 4.09625 17.9038C4.16025 17.9679 4.23075 18 4.30775 18H19.6923C19.7693 18 19.8398 17.9679 19.9038 17.9038C19.9679 17.8398 20 17.7692 20 17.6923V11.596H4Z"})})};var z=n(74467),$=n(78730);function X(){return{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["VISA","MASTERCARD"]},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:"checkoutltd",gatewayMerchantId:"pk_pakakvw3cgsyrqhpfsnhcwobbu2"}}}}let Q=e=>{let{isDarkMode:t}=(0,W.A)(),{t:n}=(0,v.Bd)();return(0,a.jsx)("div",{ref:e.buttonRef,onClick:e.onClick,className:"py-3 h-14 ".concat(t?"bg-white":"bg-Text-PrimaryText"," flex items-center gap-2 justify-center border border-Text-PrimaryText rounded-lg ").concat(e.className||""),children:e.children})},ee=e=>{var t;let{onClick:n}=e,{trackAndGa:l}=(0,x.A)(),{t:i}=(0,v.Bd)(),[r,o]=(0,h.useState)(!1),{channelCode:d,ipCountry:c}=(0,C.A)(),u=(null===(t=(0,N._W)(y.ck.tranType))||void 0===t?void 0:t.toLowerCase())===y.c.BUY,{orderInfo:m}=(0,C.A)(),p="2"===(0,N._W)("cTag");(0,N._W)("cTag");let f="5"===(0,N._W)("cTag");return(0,h.useEffect)(()=>{d&&(0,s.ZT)({channelCode:d,paymentMethod:y.YJ.APPLE_PAY,side:u?"BUY":"SELL"}).then(e=>{var t,n,a,l;let{data:i}=e;if(p||f){o(!1);return}o(!!(window.ApplePaySession&&(null===(n=window.ApplePaySession)||void 0===n?void 0:null===(t=n.canMakePayments)||void 0===t?void 0:t.call(n)))&&(null===(l=i.countryCurrencyMap)||void 0===l?void 0:null===(a=l[c||""])||void 0===a?void 0:a.some(e=>e===(null==m?void 0:m.fiatCurrency))))})},[d,u]),r&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(Q,{className:"cursor-pointer",onClick:()=>{l({elementId:"paymonade3_applepay_select",orderInfo:m}),null==n||n()},children:(0,a.jsx)(Y,{})})})},et=e=>{var t;let{amount:n,currency:l,onAuthorized:i}=e,{trackAndGa:r}=(0,x.A)(),[o,d]=(0,h.useState)(!1),{channelCode:c,ipCountry:u}=(0,C.A)(),m=(null===(t=(0,N._W)(y.ck.tranType))||void 0===t?void 0:t.toLowerCase())===y.c.BUY,{orderInfo:p}=(0,C.A)(),v="2"===(0,N._W)("cTag"),f="1"===(0,N._W)("cTag");(0,N._W)("cTag");let{isSupported:g,createButton:b,requestPayment:A}=function(e){let{merchantId:t="BCR2DN5TT3PODKDX",merchantName:n="Damoon Technology (Europe) AG"}=e,a=(0,h.useRef)(null),[l,i]=(0,h.useState)(!1),[s,r]=(0,h.useState)(!1),[o,d]=(0,h.useState)(!1),[c,u]=(0,h.useState)(null);(0,h.useEffect)(()=>{var e,t;if(null===(t=window.google)||void 0===t?void 0:null===(e=t.payments)||void 0===e?void 0:e.api){i(!0);return}let n=document.createElement("script");n.src="https://pay.google.com/gp/p/js/pay.js",n.async=!0,n.onload=()=>i(!0),n.onerror=()=>u("Failed to load Google Pay SDK"),document.body.appendChild(n)},[]),(0,h.useEffect)(()=>{if(!l)return;let e=new window.google.payments.api.PaymentsClient({environment:"PRODUCTION"});a.current=e,e.isReadyToPay({apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[X()]}).then(e=>{r(!0===e.result)}).catch(()=>r(!1))},[l]);let{isDarkMode:m}=(0,W.A)();return{isReady:l,isSupported:s,loading:o,error:c,createButton:(0,h.useCallback)((e,t)=>{if(!a.current)return;let n=a.current.createButton({onClick:t,buttonSizeMode:"fill",buttonType:"plain",buttonRadius:8,buttonBorderType:"no_border",buttonColor:m?"white":"black"});e.innerHTML="",e.appendChild(n)},[m]),requestPayment:(0,h.useCallback)(async e=>{let{amount:l,currency:i,countryCode:s}=e;if(!a.current)throw Error("Google Pay not initialized");d(!0),u(null);try{return await a.current.loadPaymentData({apiVersion:2,apiVersionMinor:0,merchantInfo:{merchantId:t,merchantName:n},transactionInfo:{totalPriceStatus:"FINAL",totalPrice:Number(l).toFixed(2),currencyCode:i,countryCode:s},allowedPaymentMethods:[X()]})}catch(e){throw u((null==e?void 0:e.message)||"Google Pay payment failed"),e}finally{d(!1)}},[t,n])}}({});(0,h.useEffect)(()=>{g&&c&&(0,s.ZT)({channelCode:c,paymentMethod:y.YJ.GOOGLE_PAY,side:m?"BUY":"SELL"}).then(e=>{var t,n;let{data:a}=e;if(f||v){d(!1);return}d(null===(n=a.countryCurrencyMap)||void 0===n?void 0:null===(t=n[u||""])||void 0===t?void 0:t.some(e=>e===(null==p?void 0:p.fiatCurrency)))})},[g,c,m,u,p]);let _=(0,h.useRef)(null);return(0,h.useEffect)(()=>{o&&b(_.current,async()=>{r({elementId:"paymonade3_googlepayv2_select",orderInfo:p});try{let e=await A({currency:l,amount:n,countryCode:u||"US"});r({elementId:"paymonade3_googlepayv2_success",orderInfo:p}),i(e)}catch(e){r({elementId:"paymonade3_googlepayv2_error",orderInfo:p,extraData:{error:e||"unknown error"}})}})},[g,o,b,p,n,l,u]),o&&(0,a.jsx)("div",{className:"cursor-pointer w-full h-14",ref:_})},en=e=>{var t;let{addCardRef:n}=e,{t:i}=(0,v.Bd)(),{cardList:r,canUseCardList:o,setCardList:d,currentCard:p,setAddCardOpen:f,setCurrentCard:g,setManageCardOpen:b,setArrivalTime:A,setIsDisableSell
1Card:_}=(0,w.A)(),{trackAndGa:I}=(0,x.A)(),k=(0,h.useCallback)(async()=>{if(!(null==p?void 0:p.cardId))return;let e=(0,N._W)("tranType")||"buy";try{let{data:t}=await (0,s.lo)({cardId:null==p?void 0:p.cardId,businessType:e,channelCode:y.k$.CHECKOUT});if(A(null==t?void 0:t.arrivalTime),_((null==t?void 0:t.payoutsTransactionType)==="NOT_SUPPORTED"),(null==t?void 0:t.payoutsTransactionType)==="NOT_SUPPORTED"){let{destory:e}=(0,m.A)({children:(0,a.jsx)(u.A,{imageSrc:j.A,title:i("UnsupportedCard"),content:i("UnsupportedCardTips"),Footer:()=>(0,a.jsx)(c.wi,{destory:e,mode:c.z7.OK})})})}return t}catch(e){A(""),_(!1)}},[p,s.lo]),{channelCode:L}=(0,C.A)();(0,h.useEffect)(()=>{L&&k()},[p]);let M=(null===(t=(0,N._W)(y.ck.tranType))||void 0===t?void 0:t.toLowerCase())===y.c.BUY;return(0,a.jsxs)("div",{className:"py-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-4 justify-between px-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(J,{}),(0,a.jsx)("span",{children:i("CreditOrDebitCard")})]}),(0,a.jsx)("div",{className:"text-Text-TextLink cursor-pointer",onClick:()=>{f(!0)},children:i("AddCard")})]}),(null==r?void 0:r.length)?(0,a.jsx)("div",{className:"px-5",children:(0,a.jsx)(z.A,{onclick:()=>(null==r?void 0:r.length)?b(!0):f(!0),isBuy:M,PaymentmethodImage:!p||(0,P.l)(null==p?void 0:p.cardProcessor,E.T5.VISA)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T(),{className:"block dark:hidden shrink-0 w-8 h-8",src:q.A,alt:"visa"}),(0,a.jsx)(T(),{className:"hidden dark:block shrink-0 w-8 h-8",src:G.A,alt:"visa"})]}):(0,a.jsx)(T(),{className:"shrink-0 w-8 h-8",src:K.A,alt:"mastercard"}),children:p?(0,a.jsxs)("div",{className:"flex gap-1 items-center ".concat((null==p?void 0:p.disabled)?"text-third":""),children:[(0,P.l)(null==p?void 0:p.cardProcessor,E.T5.VISA)?i("Visa"):i("MasterCard")," (**** ",null==p?void 0:p.cardLast4,")",(null==p?void 0:p.disabled)&&(0,a.jsx)($.A,{alt:"forbidden",className:"w-4 h-4 text-third"})]}):(0,a.jsx)("div",{className:"text-secondary",children:i("AddCardNow")})})}):(0,a.jsx)(l.A,{noModal:!0,noInnerButton:!0,ref:n})]})};var ea=n(94196);let el=e=>{let{className:t="",stroke:n="",fill:l="",...i}=e;return(0,a.jsxs)("svg",{width:"96",height:"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"cursor-pointer fill-current text-Text-PrimaryText ".concat(t),...i,children:[(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M78.0228 16C80.2319 16 82.0228 17.7918 82.0228 20.001V37.793C83.8333 37.5096 85.7447 38.2258 86.8939 39.8359C88.2434 41.7274 88.1196 44.299 86.5941 46.0518L65.9437 69.7773C65.4076 70.3931 64.6252 70.7402 63.8089 70.7236L41.9388 70.2773C41.0768 70.2598 40.248 70.6134 39.6654 71.249L35.7308 75.542L35.889 75.7002C37.4509 77.2623 37.4511 79.7944 35.889 81.3564L30.2289 87.0166C28.6668 88.5787 26.1337 88.5787 24.5716 87.0166L8.85092 71.2959C7.28928 69.7339 7.28928 67.2017 8.85092 65.6396L14.5121 59.9795C16.0742 58.4174 18.6062 58.4174 20.1683 59.9795L20.7884 60.5996L27.3783 52.1289C28.1568 51.0591 29.0485 50.1151 30.0228 49.3008V20.001C30.0228 17.7919 31.8137 16 34.0228 16H78.0228ZM18.7542 61.3936C17.9732 60.6125 16.7072 60.6125 15.9261 61.3936L10.266 67.0537C9.48491 67.8348 9.48491 69.1008 10.266 69.8818L25.9867 85.6025C26.7677 86.3834 28.0338 86.3835 28.8148 85.6025L34.4749 79.9424C35.2559 79.1614 35.2558 77.8953 34.4749 77.1143L18.7542 61.3936ZM85.266 40.998C84.2401 39.5606 82.2052 39.3053 80.8558 40.4443L64.7962 54.0049C64.7534 54.041 64.7071 54.0709 64.6605 54.0986C63.9147 56.2649 61.8737 57.8417 59.5033 57.8418L49.4955 57.8428C48.948 57.8426 48.5156 57.3903 48.5306 56.834C48.546 56.2777 49.0027 55.8263 49.5501 55.8262H59.558C61.4319 55.8262 62.9797 54.2541 62.9798 52.3506C62.9796 50.5036 61.5193 49.0391 59.7005 49.0625L45.7845 49.2441L45.5824 49.1484L45.1595 48.9473C39.5305 46.2771 32.7148 48.1162 28.9437 53.3223L28.9222 53.3516L22.1917 62.0029L34.3148 74.126L38.1917 69.8975C39.1627 68.8384 40.5424 68.2482 41.9789 68.2773L63.8499 68.7236C64.0736 68.7281 64.289 68.6335 64.4359 68.4648L85.0853 44.7383C86.0032 43.6836 86.0779 42.1363 85.266 40.998ZM32.0228 47.8809C36.2408 45.3618 41.4775 44.9531 46.0394 47.1172L46.2611 47.2236L59.7298 47.0469C62.3038 47.0135 64.4266 48.8474 64.8753 51.3184L79.5648 38.917C79.7128 38.792 79.8657 38.6771 80.0228 38.5723V35H32.0228V47.8809ZM32.0228 33H80.0228V27H32.0228V33ZM34.0228 18.001C32.9183 18.001 32.0228 18.8964 32.0228 20.001V25H80.0228V20.001C80.0228 18.8964 79.1274 18.001 78.0228 18.001H34.0228Z"}),(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M71.6719 56C80.5082 56.0003 87.6719 63.1636 87.6719 72C87.6716 80.8362 80.508 87.9997 71.6719 88C62.8355 88 55.6721 80.8363 55.6719 72C55.6719 63.1634 62.8353 56 71.6719 56ZM80.6875 67.0723C80.1018 66.4867 79.1522 66.4868 78.5664 67.0723L69.0205 76.6182L64.7773 72.376C64.1916 71.7902 63.242 71.7902 62.6562 72.376C62.0705 72.9618 62.0705 73.9113 62.6562 74.4971L67.959 79.8008C68.5448 80.3861 69.4954 80.3864 70.0811 79.8008L80.6875 69.1943C81.2731 68.6087 8
11.2728 67.6581 80.6875 67.0723Z",fill:"#2EBD85"})]})};function ei(e,t,n){var a;return(t="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?a:a+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(function(e){e.Production="production",e.Sandbox="sandbox"})({}),function(e){e.AlipayCn="alipay_cn",e.AlipayHk="alipay_hk",e.Alma="alma",e.Applepay="applepay",e.Bancontact="bancontact",e.Benefit="benefit",e.Bizum="bizum",e.Card="card",e.Dana="dana",e.Eps="eps",e.Gcash="gcash",e.Googlepay="googlepay",e.Ideal="ideal",e.Kakaopay="kakaopay",e.Klarna="klarna",e.Knet="knet",e.Mbway="mbway",e.MobilePay="mobilepay",e.Multibanco="multibanco",e.Octopus="octopus",e.P24="p24",e.PayNow="paynow",e.Paypal="paypal",e.Plaid="plaid",e.Qpay="qpay",e.RememberMe="remember_me",e.Sepa="sepa",e.StcPay="stcpay",e.StoredCard="stored_card",e.Swish="swish",e.Tabby="tabby",e.Tamara="tamara",e.TouchNGo="tng",e.Truemoney="truemoney",e.Twint="twint",e.Vipps="vipps",e.WeChatPay="wechatpay",e.Flow="flow",e.Authentication="authentication",e.CardCvv="card_cvv",e.ShippingAddress="shipping_address"}({}),function(e){e.Amex="american_express",e.CartesBancaires="cartes_bancaires",e.ChinaUnionPay="china_union_pay",e.DinersClub="diners_club_international",e.Discover="discover",e.JCB="jcb",e.Mada="mada",e.Mastercard="mastercard",e.Visa="visa"}({}),function(e){e.Charge="charge",e.Credit="credit",e.Debit="debit",e.DeferredDebit="deferred_debit",e.Prepaid="prepaid"}({}),function(e){e.DefaultOnly="default_only",e.All="all"}({}),function(e){e.AbovePayButton="above_pay_button",e.BelowPayButton="below_pay_button"}({}),function(e){e.Integration="Integration",e.Request="Request",e.PaymentMethod="PaymentMethod",e.Submit="Submit"}({}),function(e){e.BrowserEnvironmentRequired="browser_environment_required",e.CallbackInvocationFailed="callback_invocation_failed",e.CallbackResultInvalid="callback_result_invalid",e.ComponentAlreadyMounted="component_already_mounted",e.ComponentIsAvailableNotChecked="component_is_available_not_checked",e.ComponentNotSupported="component_not_supported",e.ElementNotFound="element_not_found",e.MethodNotSupported="method_not_supported",e.PaymentSessionInvalid="payment_session_invalid",e.PaymentSessionRequired="payment_session_required"}({}),function(e){e.PaymentRequestAborted="payment_request_aborted",e.PaymentRequestDeclined="payment_request_declined",e.PaymentRequestFailed="payment_request_failed",e.NetworkError="network_error",e.TokenizeRequestFailed="tokenize_request_failed"}({}),function(e){e.NotEnoughFunds="not_enough_funds",e.InvalidPaymentSessionData="invalid_payment_session_data",e.InvalidCustomerData="invalid_customer_data",e.CustomerMisconfiguration="customer_misconfiguration",e.MerchantMisconfiguration="merchant_misconfiguration",e.TryAgain="try_again",e.PaymentCancelled="payment_cancelled",e.PaymentExpired="payment_expired"}({}),function(e){e.Subheading="subheading",e.Footnote="footnote",e.Button="button",e.Input="input",e.Label="label"}({});let es="https://checkout-web-components.checkout.com/index.js",er=function(e){return e.Integration="Integration",e}({}),eo=function(e){return e.BrowserEnvironmentRequired="browser_environment_required",e.CheckoutWebComponentInstanceNotOnWindow="checkout_web_component_instance_not_on_window",e.ScriptFailed="script_failed",e.ScriptTimedOut="script_timed_out",e}({});
1class ed extends Error{constructor({type:e,message:t,code:n}){super(`[${e}]: ${t} [${n}]`),ei(this,"type",void 0),ei(this,"code",void 0),Object.setPrototypeOf(this,ed.prototype),this.type=e,this.code=n,this.name="CheckoutLoaderError"}}let ec=async e=>{if("undefined"==typeof window||"undefined"==typeof document)throw new ed({type:er.Integration,message:"CheckoutWebComponents can only run in a browser environment",code:eo.BrowserEnvironmentRequired});if(window.CheckoutWebComponents)return window.CheckoutWebComponents(e);let t=(e=>{let t=document.querySelectorAll(`script[src^="${es}"]`);if(t.length>0)for(let e=0;e<t.length;e++)t[e].remove();let n=document.createElement("script");return n.src=e,n.async=!0,document.head.appendChild(n),n})(es);return(await (async e=>new Promise((t,n)=>{e.addEventListener("load",()=>{window.CheckoutWebComponents?t(window.CheckoutWebComponents):n(new ed({type:er.Integration,message:"CheckoutWebComponents loaded but window.CheckoutWebComponents isn't present",code:eo.CheckoutWebComponentInstanceNotOnWindow}))}),e.addEventListener("error",()=>{n(new ed({type:er.Integration,message:"CheckoutWebComponents did not load due to script failing",code:eo.ScriptFailed}))}),setTimeout(()=>{n(new ed({type:er.Integration,message:"CheckoutWebComponents did not load due to script timing out",code:eo.ScriptTimedOut}))},3e4)}))(t))(e)};var eu=n(71894);let em=()=>{var e,t;let{t:n}=(0,v.Bd)(),l=(0,_.Ay)(),{cardList:k,canUseCardList:W,setAddCardOpen:Y,setManageCardOpen:K,currentCard:q,setCurrentCard:G,arrivalTime:J,isDisableSellCard:z}=(0,w.A)(),{orderInfo:$,setQuoteInfo:X,quoteInfo:{loading:Q,data:ei}}=(0,C.A)(),es=(0,_.uU)(),{ga4log:er}=(0,A.A)(),[eo,ed]=(0,h.useState)(0),em=(0,h.useRef)(),eC=(null===(e=(0,N._W)(y.ck.tranType))||void 0===e?void 0:e.toLowerCase())===y.c.BUY,[ep,eh]=(0,h.useState)(!1),{setUpKlarna:ev,runKlarna:ex}=(0,L.A)(),[ef,ey]=(0,h.useState)(!1),eg=(null===(t=(0,N._W)(y.ck.tranType))||void 0===t?void 0:t.toLowerCase())===y.c.SELL,{bindStatus:eb,run2FaCheck:eA,modal:e_,otpStep:ej}=(0,g.A)(eg?"SUBMIT_SELL":"SUBMIT_BUY",{onStatusChange:e=>{let{gaVerificateInfo:t,otpStep:n}=e;(null==t?void 0:t.status)&&n===E.Pv.GA_OTP&&eW(t)}});null==$||$.cryptoCurrency;let{trackAndGa:ew}=(0,x.A)(),{setChannelCode:eN,channelCode:eI}=(0,C.A)(),ek=(0,N._W)(y.ck.paymentMethod)===y.YJ.ONLINE_BANKING,eT=(0,N._W)(y.ck.paymentMethod)===y.YJ.CARD,[eE,eL]=(0,h.useState)(!1),[eM,eP]=(0,h.useState)(),[eS,eH]=(0,h.useState)({maxAmount:"0",minAmount:"0"});(0,h.useEffect)(()=>{(null==$?void 0:$.fiatCurrency)&&eI&&(0,D.vS)({businessType:eC?y.c.BUY:y.c.SELL,fiatCurrency:null==$?void 0:$.fiatCurrency,channel:eI}).then(e=>{let{data:t}=e;eH(t)})},[eI,eC,null==$?void 0:$.fiatCurrency]);let[eD,eV]=(0,h.useState)("IDLE"),[eO,eR]=(0,h.useState)();(0,h.useEffect)(()=>{if(null==$?void 0:$.orderId){if((0,eu.m0)()){eP(!1),eL(!1),eN(eu.HC);return}(0,S.Hs)({paymentMethod:ek?y.YJ.ONLINE_BANKING:y.YJ.CARD,transactionType:eC?y.c.BUY:y.c.SELL,cryptoCurrency:null==$?void 0:$.cryptoCurrency,...eC?{fiatAmount:null==$?void 0:$.fiatAmt}:{cryptoAmount:null==$?void 0:$.cryptoAmt}}).then(e=>{var t,n,a,l;let{data:i}=e;if(ek){let e=null===(t=i.find(e=>e.paymentMethod===y.YJ.ONLINE_BANKING))||void 0===t?void 0:t.channelCode,a=null===(n=i.find(e=>e.paymentMethod===y.YJ.ONLINE_BANKING))||void 0===n?void 0:n.suspended;if(!e){eL(!0);return}eP(a),eN(e)}if(eT){let e=null===(a=i.find(e=>e.paymentMethod===y.YJ.CARD))||void 0===a?void 0:a.channelCode,t=null===(l=i.find(e=>e.paymentMethod===y.YJ.CARD))||void 0===l?void 0:l.suspended;if(!e){eL(!0);return}eP(t),eN(e)}})}},[eC,eT,ek,$,eN]);let eB=(0,h.useCallback)(async()=>{if(null==$?void 0:$.fiatCurrency){X(e=>({loading:!0,data:(null==e?void 0:e.data)||void 0}));try{if((0,eu.m0)()){X({loading:!1,data:eu.dt}),eq(!1);return}let{data:e}=await (0,s.fn)({orderId:null==$?void 0:$.orderId,channelCode:eI,paymentMethod:eO||(ek?y.YJ.ONLINE_BANKING:y.YJ.CARD)});X({loading:!1,data:e}),eq(!1)}catch(e){}}},[eI,eO,null==$?void 0:$.fiatCurrency,null==$?void 0:$.orderId,ek,X]);(0,h.useEffect)(()=>{G((null==W?void 0:W[0])||(null==k?void 0:k[0]))},[W,k,G]),(0,h.useEffect)(()=>{eo<=0&&eI&&!1===eM&&eB()},[eB,eo,eI,eM]),(0,h.useEffect)(()=>
1{if(eM){let{destory:e}=(0,m.A)({children:(0,a.jsx)(u.A,{imageSrc:j.A,title:n("UnderMaintenance"),content:n("UnderMaintenanceDesc"),Footer:()=>(0,a.jsx)(o.A,{onClick:()=>(0,y.V3)(),className:"!rounded-[200px] my-3 w-full",children:(0,a.jsx)("div",{className:"flex flex-1 justify-center",children:(0,a.jsx)("span",{children:n("BackToMerchant").replace("{{Merchant}}",(0,N._W)(y.ck.merchantCode))})})})})})}},[eM,n]),(0,h.useEffect)(()=>{er({element_id:"paymonade3_confirmPage_pageView"})},[er]),(0,h.useEffect)(()=>{$&&ew({elementId:"confirmPage_pageView",orderInfo:$,channelCode:eI,extraData:{type:eC?"buy":"sell"}})},[ew,$,eC,eI]),(0,h.useEffect)(()=>(em.current=setInterval(()=>{ed(e=>e-1>0?e-1:(clearInterval(em.current),0))},1e3),ed(4),()=>{em.current&&clearInterval(em.current)}),[ei]);let{goDashboard:eU,go3DSSelf:eF}=(0,b.A)();((0,N._W)(y.ck.tranId)||"").slice(-1);let eZ=(0,P.l)((0,N._W)(y.ck.tranType),y.c.BUY)?"C":"B",eW=(0,h.useCallback)(async e=>{if(ew({elementId:"paymonade3_confirmPage_confirmbtn"}),!(null==k?void 0:k.length)&&!ek){Y(!0);return}if(!(null==W?void 0:W.length)){K(!0);return}ew({elementId:"paymonade3_confirmPage_confirmbtn_after_check"});try{let t;eh(!0),clearInterval(em.current);let{data:n}=t=eg?await (0,s.N8)({orderId:$.orderId,quoteId:ei.quoteId,cardId:q.cardId,channelCode:eI,paymentMethod:y.YJ.CARD,otpType:null==e?void 0:e.verifyOtpType,otpCode:null==e?void 0:e.verifyCode}):await (0,s.fK)({orderId:$.orderId,quoteId:ei.quoteId,cardId:q.cardId,channelCode:eI,paymentMethod:ek?y.YJ.ONLINE_BANKING:y.YJ.CARD,otpType:null==e?void 0:e.verifyOtpType,otpCode:null==e?void 0:e.verifyCode,deviceSessionId:(0,N._W)(y.Bm.deviceSessionId)}),a=null==n?void 0:n.orderId;if(a){if(eg){l.push("/".concat(es,"/result?orderId=").concat(a));return}(0,i.g8)({requestFn:async e=>{let{data:t}=await (0,s.sV)(a);e(t)},callback:e=>{if("success"===e.status||"failed"===e.status||"fail"===e.status){console.log("status: ",e.status),l.push("/".concat(es,"/result?orderId=").concat(a));return}if("needAdditionalAction"===e.status&&"UPDATE_QUOTE"===e.additionalActionType)l.push("/".concat(es,"/result?orderId=").concat(a));else if("needAdditionalAction"===e.status&&"NEED_AUTHORIZE"===e.additionalActionType){if(ek){if(!(null==e?void 0:e.additionalActionData))return;ey(!0),ex({orderResult:e,orderId:a,callback:()=>eY(a)});return}}else if("needAdditionalAction"===e.status&&"THREE_DS_VERIFICATION"===e.additionalActionType){try{eC&&ew({elementId:"abtest_3ds_".concat(eZ,"_jump"),orderInfo:$,currentCard:q,channelCode:eI,extraData:{AorBorCorD:eZ,isUK:te}}),ew({elementId:"go_3ds",orderInfo:$,currentCard:q,channelCode:eI})}catch(e){}window.location.href=e.additionalActionData}},shouldContinue:e=>"processing"===e.status||"abnormal"===e.status,timeoutBack:()=>{l.push("/".concat(es,"/result?orderId=").concat(a)),eh(!1)},maxPollingCount:60,pollingInterval:3e3});return}throw t}catch(l){var t,r,o,d,C,p,h,v;if(eh(!1),ed(0),ew({elementId:"card_confirm_btn_click_error",orderInfo:$,currentCard:q,channelCode:eI,extraData:{type:eC?"buy":"sell",error:null==l?void 0:null===(r=l.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.code}}),(null==l?void 0:null===(d=l.response)||void 0===d?void 0:null===(o=d.data)||void 0===o?void 0:o.code)==="ODR00001005"){let{destory:e}=(0,m.A)({children:(0,a.jsx)(u.A,{imageSrc:j.A,title:n("InsufficientBalance"),content:n("InsufficientBalanceDesc").replace("{{ReferralPartner}}",(0,N._W)(y.ck.merchantCode)||""),Footer:()=>(0,a.jsx)(c.wi,{destory:e,mode:c.z7.OK})})});return}let{destory:e}=(0,m.A)({children:(0,a.jsx)(u.A,{title:n("Failed"),content:(null==l?void 0:null===(v=l.response)||void 0===v?void 0:null===(h=v.data)||void 0===h?void 0:null===(p=h.msg)||void 0===p?void 0:null===(C=p.replace)||void 0===C?void 0:C.call(p,/\d+::/g,""))||n("systemError"),Footer:()=>(0,a.jsx)(c.wi,{destory:e,mode:c.z7.OK})})})}},[null==W?void 0:W.length,eZ,null==k?void 0:k.length,q,er,eU,ek,eg,es,$,ei,l,ex,Y,K,n]),eY=(0,h.useCallback)(e=>{(0,i.g8)({requestFn:async t=>{let{data:n}=await (0,s.sV)(e);t(n),n.status},callback:t=>{"success"===t.status?(console.log("status: ",t.status),l.push("/".concat(es,"/order-submit-success")),eh(!1)):"failed"===t.status||"fail"===t.status?(l.pu
1sh("/".concat(es,"/order-submit-fail")),eh(!1)):"needAdditionalAction"===t.status&&"UPDATE_QUOTE"===t.additionalActionType&&l.push("/".concat(es,"/result?orderId=").concat(e))},shouldContinue:e=>"processing"===e.status||"abnormal"===e.status,timeoutBack:()=>{l.push("/".concat(es,"/order-submit-success"))},maxPollingCount:60,pollingInterval:3e3})},[es,l]),[eK,eq]=(0,h.useState)(!0),eG=[{label:"".concat(n("Fees")),value:Q&&eK?(0,a.jsx)(Z.A,{size:8,color:"#A7EA33",speedMultiplier:.7}):"".concat((0,p.A)({num:(0,I.A)((null==ei?void 0:ei.userFee)||0).add((null==ei?void 0:ei.tradeFee)||0),decimalPlaces:null==ei?void 0:ei.fiatPrecision})," ").concat((null==ei?void 0:ei.feeCurrency)||"")}].filter(e=>!!e.label&&!!e.value),eJ=[ek?{label:n("PaymentMethod"),value:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(T(),{priority:!0,src:"https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg",width:40,height:20,alt:"klarnaSvg"}),(0,a.jsx)("span",{className:"ml-1",children:n("Klarna")})]})}:{label:n("Merchant"),value:n("Paymonade")}],ez=[eC?{label:n("SendTo"),value:(0,N._W)(y.ck.merchantCode)+" Account"}:{label:"",value:""},{label:n("ArrivalTime"),value:ek?n("InstantUponFundArrival"):eC?n("Instant"):eg?n("within30mins"):J}].filter(e=>!!e.label&&!!e.value),e$=(0,h.useRef)(null),[eX,eQ]=(0,h.useState)(!1),e1=(0,h.useCallback)(async()=>{eQ(!0);try{var e;await (null===(e=e$.current)||void 0===e?void 0:e.submit())}catch(e){eQ(!1)}},[]),e0=(0,h.useRef)(ei),e4=(0,h.useRef)(eS);(0,h.useEffect)(()=>{e0.current=ei},[ei]),(0,h.useEffect)(()=>{e4.current=eS},[eS]);let e5=(0,h.useCallback)(()=>{let e=e0.current,t=e4.current,l=eC?null==e?void 0:e.fiatAmount:null==e?void 0:e.fiatActualAmount;if(console.log("999fiatAmount",e,l,t.minAmount,t.maxAmount),(0,I.A)(l||0).lt(t.minAmount)||(0,I.A)(l||0).gt(t.maxAmount)){let{destory:i}=(0,m.A)({children:(0,a.jsx)(u.A,{imageSrc:j.A,title:n("notMatchTheAmount"),content:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n("notMatchTheAmountDesc").replace("{{min}}",t.minAmount).replace("{{max}}",t.maxAmount).replace("{{fiatAmount}}",(0,p.A)({num:l,decimalPlaces:null==e?void 0:e.fiatPrecision})||"").replace(/{{fiat}}/g,(null==e?void 0:e.fiatCurrency)||"")}}),Footer:()=>(0,a.jsx)(c.wi,{destory:i,mode:c.z7.OK})})});return!0}return!1},[eC,n]),e6=(0,h.useCallback)(async()=>{if(eR(void 0),!k.length){e1();return}try{eC&&ew({elementId:"abtest_3ds_".concat(eZ,"_clcick"),orderInfo:$,currentCard:q,channelCode:eI,extraData:{AorBorCorD:eZ,isUK:te,type:eC?"buy":"sell"}}),ew({elementId:"card_confirm_btn_click",orderInfo:$,currentCard:q,channelCode:eI,extraData:{type:eC?"buy":"sell",AorBorCorD:eZ}})}catch(e){}e5()||(ej===E.Pv.SKIP_OTP?eW():await eA())},[ew,k,e1,e5,$,q,eI,eC,eS.minAmount,eS.maxAmount,ej,n,eW,eA]),e2=(0,h.useCallback)((e,t,n)=>{n&&eV("SUCCESS"),(0,i.g8)({requestFn:async n=>{try{ew({elementId:"".concat(t,"_start_polling_order_result"),orderInfo:$});let{data:a}=await (0,s.sV)(e);ew({elementId:"".concat(t,"_polling_order_result_response"),orderInfo:$,extraData:a}),n(a)}catch(e){ew({elementId:"".concat(t,"_polling_order_result_error"),orderInfo:$,extraData:e})}},callback:a=>{if("success"===a.status||"fail"===a.status||"failed"===a.status||"needAdditionalAction"===a.status&&"UPDATE_QUOTE"===a.additionalActionType){l.push("/".concat(es,"/result?orderId=").concat(e));return}if(n||"needAdditionalAction"!==a.status||"NEED_AUTHORIZE"!==a.additionalActionType){if("needAdditionalAction"===a.status&&"THREE_DS_VERIFICATION"===a.additionalActionType){try{eC&&ew({elementId:"".concat(t,"_abtest_3ds_jump"),orderInfo:$,currentCard:q,channelCode:eI,extraData:{AorBorCorD:eZ,isUK:te}}),ew({elementId:"".concat(t,"_abtest_3ds_go3ds"),orderInfo:$,currentCard:q,channelCode:eI})}catch(e){}window.location.href=a.additionalActionData}}else{let e=JSON.parse(a.additionalActionData||"{}"),n=JSON.parse(e.sessionToken||"{}"),l=e.sessionPublicKey||"";t===y.YJ.GOOGLE_PAY?tx({publicKey:l,paymentSession:n}):t===y.YJ.APPLE_PAY&&ty({publicKey:l,paymentSession:n}),eV("NEED_ACTION")}},timeoutBack:()=>{l.push("/".concat(es,"/result?orderId=").concat(e))},shouldContinue:e=>"processing"===e.status||"abnormal"===e.status||!!n&&"needAdditionalAction"===e.status&&"NEED_AUTHORIZE"===e.additionalActionType,maxPollingCount:60,pollingInterval:3e3})},[es,l]),[e7,e3]=(0,h.useState)(null),e8=async e=>{var t,l,i,r,o;
1if("IDLE"===eD&&!e5())try{let n;ew({elementId:"".concat(e,"_confirm_click")}),eR(e),eV("CONFIRMING");let{data:a}=await (0,s.fn)({orderId:null==$?void 0:$.orderId,channelCode:eI,paymentMethod:e}),l=null==(n=await (0,s.i$)({orderId:$.orderId,quoteId:a.quoteId,channelCode:eI,paymentMethod:e,deviceSessionId:(0,N._W)(y.Bm.deviceSessionId)}))?void 0:null===(t=n.data)||void 0===t?void 0:t.orderId;if(!l)throw n;e3(l),e2(l,e)}catch(t){eV("IDLE");let{destory:e}=(0,m.A)({children:(0,a.jsx)(u.A,{title:n("Failed"),content:(null==t?void 0:null===(o=t.response)||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:null===(i=r.msg)||void 0===i?void 0:null===(l=i.replace)||void 0===l?void 0:l.call(i,/\d+::/g,""))||n("systemError"),Footer:()=>(0,a.jsx)(c.wi,{destory:e,mode:c.z7.OK})})})}},e9=async e=>{var t,l,i,r,o,d,C,p,h,v,x,f,g;let{method:b,info:A}=e;if("IDLE"===eD&&!e5())try{let e;ew({elementId:"".concat(b,"_v2_confirm_click")}),eR(b),eV("CONFIRMING");let{data:n}=await (0,s.fn)({orderId:null==$?void 0:$.orderId,channelCode:eI,paymentMethod:b}),a=null==(e=await (0,s.RD)({orderId:$.orderId,quoteId:n.quoteId,channelCode:eI,paymentMethod:b,deviceSessionId:(0,N._W)(y.Bm.deviceSessionId),cardLast4:null==A?void 0:null===(l=A.paymentMethodData)||void 0===l?void 0:null===(t=l.info)||void 0===t?void 0:t.cardDetails,cardSource:null==A?void 0:null===(r=A.paymentMethodData)||void 0===r?void 0:null===(i=r.info)||void 0===i?void 0:i.cardFundingSource,cardNetwork:null==A?void 0:null===(d=A.paymentMethodData)||void 0===d?void 0:null===(o=d.info)||void 0===o?void 0:o.cardNetwork,token:null==A?void 0:null===(p=A.paymentMethodData)||void 0===p?void 0:null===(C=p.tokenizationData)||void 0===C?void 0:C.token}))?void 0:null===(h=e.data)||void 0===h?void 0:h.orderId;if(!a)throw e;e3(a),e2(a,b)}catch(t){eV("IDLE");let{destory:e}=(0,m.A)({children:(0,a.jsx)(u.A,{title:n("Failed"),content:(null==t?void 0:null===(g=t.response)||void 0===g?void 0:null===(f=g.data)||void 0===f?void 0:null===(x=f.msg)||void 0===x?void 0:null===(v=x.replace)||void 0===v?void 0:v.call(x,/\d+::/g,""))||n("systemError"),Footer:()=>(0,a.jsx)(c.wi,{destory:e,mode:c.z7.OK})})})}};(0,h.useEffect)(()=>{eX&&k.length&&q&&(eQ(!1),e6())},[k,e6,q]),(0,h.useEffect)(()=>{(0,S.od)().then(e=>{var t;let{data:n}=e,a=null==n?void 0:null===(t=n.kycInfo)||void 0===t?void 0:t.kycStatus;n.accountStatus,a!==E.Kp.Pass||E.cl.Active})},[n]),(0,h.useEffect)(()=>{ev()},[ev]);let{isUK:te}=(0,M.A)();(0,h.useEffect)(()=>{ew({elementId:"abtest_3ds_".concat(eZ,"_pageview"),orderInfo:$,currentCard:q,channelCode:eI,extraData:{AorBorCorD:eZ,isUK:te,type:eC?"buy":"sell"}})},[eZ,eC]);let{promotionLoading:tt,migrateCashback:tn,setMigrateCashback:ta,setPromotionAccountCheck:tl,setPormotionLoading:ti,welcomePageDescription:ts,setWelcomePageDescription:tr,welcomePageNeedPop:to,setWelcomePageNeedPop:td,welcomePagePopTitle:tc,setWelcomePagePopTitle:tu,welcomePagePopDescription:tm,
1setWelcomePagePopDescription:tC}=(0,B.A)(),tp=(0,N._W)(y.Bm.email)||"";(0,h.useEffect)(()=>{ti(!0),(0,U.LU)({email:tp,flowStep:"CARD_BUY"}).then(e=>{var t,n,a,l,i,s,r,o,d,c,u,m,C,p,h,v;ti(!1),tl((null===(t=e.data)||void 0===t?void 0:t.entityOfCurrentAccounts)||[]),ta(null===(l=e.data)||void 0===l?void 0:null===(a=l.promotionList)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:n.name),tr((null===(r=e.data)||void 0===r?void 0:null===(s=r.promotionList)||void 0===s?void 0:null===(i=s[0])||void 0===i?void 0:i.welcomePageDescription)||""),td((null===(c=e.data)||void 0===c?void 0:null===(d=c.promotionList)||void 0===d?void 0:null===(o=d[0])||void 0===o?void 0:o.welcomePageNeedPop)||!1),tu((null===(C=e.data)||void 0===C?void 0:null===(m=C.promotionList)||void 0===m?void 0:null===(u=m[0])||void 0===u?void 0:u.welcomePagePopTitle)||""),tC((null===(v=e.data)||void 0===v?void 0:null===(h=v.promotionList)||void 0===h?void 0:null===(p=h[0])||void 0===p?void 0:p.welcomePagePopDescription)||"")}).catch(e=>{ti(!0)})},[tp,tn,ta,ti,tl,tr,td,tC,tu]),(0,h.useEffect)(()=>{tt||(console.log("promition_logElementID","promition_".concat(tn||"nopromotion","_pageview"),{email:tp}),ew({elementId:"promition_".concat(tn||"nopromotion","_pageview"),extraData:{email:tp}}))},[tp,tn,tt,ew]);let th=!tt&&tn,[tv,tx]=(0,h.useState)({publicKey:"",paymentSession:{sessionId:"",sessionSecret:"",sessionToken:""}}),[tf,ty]=(0,h.useState)({publicKey:"",paymentSession:{sessionId:"",sessionSecret:"",sessionToken:""}}),{containerRef:tg,available:tb}=function(e){let{publicKey:t,paymentSession:n,handlePayment:a}=e,l=(0,h.useRef)(null),[i,s]=(0,h.useState)("init"),[r,o]=(0,h.useState)(null),d=(0,h.useCallback)(async()=>{try{console.log("Initializing Apple Pay component...",{paymentSession:n,publicKey:t});let e=(await ec({paymentSession:{id:n.sessionId,payment_session_secret:n.sessionSecret,payment_session_token:n.sessionToken},publicKey:t,environment:"production",appearance:{borderRadius:["8px","8px"]},onAuthorized:async(e,t)=>{await a()},onError:async(e,t)=>{await a(t.code||"applepay_error")}})).create("applepay");await e.isAvailable()?(s(!0),e.mount(l.current),o(e)):(console.log("applepay.isAvailable() <",await e.isAvailable(),">"),s(!1))}catch(e){}},[n,t]);return(0,h.useEffect)(()=>{n.sessionId&&n.sessionSecret&&n.sessionToken&&t&&d()},[d,n,t]),{containerRef:l,available:i,component:r}}({publicKey:tf.publicKey,paymentSession:tf.paymentSession,handlePayment:async e=>{if(e){ew({elementId:"applepay_error_during_payment",orderInfo:$,extraData:{errorCode:e}}),eV("ERROR");return}ew({elementId:"applepay_success_during_payment",orderInfo:$}),e2(e7,y.YJ.APPLE_PAY,!0)}}),tA=eO===y.YJ.APPLE_PAY&&"init"!==tb,t_=eO===y.YJ.APPLE_PAY&&!0===tb;return(0,a.jsxs)("div",{className:"flex-1 flex flex-col justify-between h-full overflow-y-auto",children:[(0,a.jsxs)("div",{children:[th&&(0,a.jsx)(R.A,{childrenText:ts,showPop:to,popText:tm,popTitle:tc}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-start gap-6 sm:gap-12 sm:w-[894px] mx-auto",children:[(0,a.jsxs)(r.uB,{children:[ef?(0,a.jsx)(d.A,{}):eE?(0,a.jsx)(H.A,{dangerouslySetInnerHTML:{__html:n("channeldisabledDesc")}}):(0,a.jsxs)(a.Fragment,{children:[eb===E.wb.cooling&&ej===E.Pv.GA_OTP?(0,a.jsx)(V.A,{children:n("2faCoolingOff")}):(0,a.jsx)(a.Fragment,{}),(0,a.jsxs)("div",{className:(0,F.A)("flex flex-col h-full items-center",th?"sm:mt-12":"sm:mt-24"),children:[(0,a.jsx)("div",{className:"flex w-full sm:px-5 px-0 gap-2",children:Q&&eK?(0,a.jsx)("div",{className:"h-16 items-center flex",children:(0,a.jsx)(Z.A,{})}):(0,a.jsxs)("div",{className:" flex flex-col items-center sm:items-start w-full",children:[(0,a.jsxs)("div",{className:"text-left sm:text-center items-center sm:text-heading-xl text-heading-l flex gap-1",children:[(0,a.jsx)("div",{className:"",children:(0,p.A)({num:null==ei?void 0:ei.cryptoAmount,decimalPlaces:8})}),(0,a.jsx)("span",{children:null==ei?void 0:ei.cryptoCurrency})]}),(0,a.jsx)("div",{className:"sm:justify-start justify-center text-body-m justify-center sm:justify-start text-center items-center w-full flex mt-2 text-Text-SecondaryText",children:Q&&eK?(0,a.jsx)(Z.A,{}):"1 ".concat((null==ei?void 0:ei.fiatCurrency)||""," â ").concat((null==ei?void 0:ei.quotePrice)?new I.A(1).div(new I.A(null==ei?void 0:ei.quotePrice)).toFixed(8):0," ").concat((null==ei?void 0:ei.cryptoCurrency)||"")})]})}),(0,a.jsx)("div",{className:"w-full overflow-auto flex-1 sm:px-5 mt-7 mx-[-20px]",children:(0,a.jsx)(f,{paymentInfos:eJ,isInit:eK,allInfos:eG,extraInfos:ez,topContent:eC?ek?n("KlarnaOrderTips"):"A"===eZ||"D"===eZ?n("3dsTips"):"":null,bottomContent:eg?n("banktransfer-sell-warning"):null,isBuy:eC})})]}),e_]}),(0,a.jsx)("div",{className:"hidden",id:"klarna-container"})]}),(0,a.jsxs)("div",{className:(0,F.A)("flex flex-col gap-7 sm:w-90 w-full px-5 sm:px-0",th?"sm:mt-12":"sm:mt-24"),children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-subtitle-l hidden sm:block",children:n("SelectAPaymentMethod")}),(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsxs)(a.Fragment,{children:[!!(null==ei?void 0:ei.quoteId)&&(0,a.jsx)(ee,{onClick:()=>{e8(y.YJ.APPLE_PAY)}}),$&&(0,a.jsx)(et,{currency:(null==$?void 0:$.fiatCurrency)||"",amount:(null==$?void 0:$.fiatAmt)||"",onAuthorized:e=>{e9({method:y.YJ.GOOGLE_PAY,info:e})}})]})})]}),(0,a.jsxs)("div",{className:"border border-line rounded-lg",children:[(0,a.jsx)(en,{addCardRef:e$}),(0,a.jsx)("div",{className:"px-4 pb-4",children:(0,a.jsx)(o.A,{inactive:eb===E.wb.cooling&&ej===E.Pv.GA_OTP||!(null==ei?void 0:ei.quoteId)||z,onClick:e6,loading:ep||eX,className:"mt-4 !mb-0",children:(0,a.jsx)("span",{children:n("Pay")})})})]})]})]}),(0,a.jsx)(c.Ay,{onClose:()=>
1{eV("IDLE"),eR(void 0)},modalStyle:"sm:!w-90 !h-fit w-full",hideHeader:"ERROR"!==eD&&"NEED_ACTION"!==eD&&!t_,open:"NEED_ACTION"===eD||"CONFIRMING"===eD||"SUCCESS"===eD||"ERROR"===eD,showMask:!0,children:"CONFIRMING"===eD?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center ",children:[(0,a.jsx)(ea.A,{containerClassName:"!p-4"}),(0,a.jsx)("div",{className:"mt-4 mb-2 text-heading-l ",children:n("CreatingOrder")}),(0,a.jsx)("div",{className:"mb-6 text-body-s text-center text-Text-SecondaryText",children:eO===y.YJ.GOOGLE_PAY?n("CreatingOrderDescGooglePay"):n("CreatingOrderDesc")})]}):"SUCCESS"===eD?(0,a.jsx)("div",{className:"flex flex-col items-center justify-center ",children:(0,a.jsx)(ea.A,{containerClassName:"!p-4 mb-6"})}):"ERROR"===eD?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mt-4 mb-2 text-heading-l text-center",children:n("PaymentMethodNotAvailable")}),(0,a.jsx)("div",{className:"mb-7 text-body-s text-center text-Text-SecondaryText",children:n("PaymentMethodNotAvailableDesc")})]}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center ",children:[tA?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(el,{}),(0,a.jsx)("div",{className:"mt-4 mb-2 text-heading-l text-center",children:t_?n("ReadytoPay"):n("PaymentMethodNotAvailable")}),(0,a.jsx)("div",{className:"mb-7 text-body-s text-center text-Text-SecondaryText",children:t_?n("ReadytoPayDesc"):n("PaymentMethodNotAvailableDesc")})]}):(0,a.jsx)(ea.A,{containerClassName:"!p-4 mb-6"}),eO===y.YJ.APPLE_PAY&&(0,a.jsx)("div",{className:"w-full",ref:tg}),(0,a.jsx)("div",{className:"mb-6"})]})})]}),(0,a.jsx)("div",{className:"flex sm:sticky bg-bg1 pb-2 sm:bottom-0 flex-col mb-4 w-full items-center justify-center",children:("A"===eZ||"C"===eZ)&&(0,a.jsxs)("div",{className:"flex gap-4 items-center px-5 mt-6",children:[(0,a.jsx)(O,{}),(0,a.jsx)("div",{className:"text-body-xs text-Text-TertiaryText",children:n("PCIDesc")})]})})]})};var eC=n(57662),ep=n(55757),eh=n(44405);let ev=()=>{let{step:e}=(0,ep.h)();return(0,a.jsxs)("div",{className:"h-full relative",children:[e===ep.A.loading&&(0,a.jsx)(eh.A,{}),e===ep.A.confirm&&(0,a.jsx)(em,{}),(0,a.jsx)(eC.A,{}),(0,a.jsx)(l.A,{})]})};var ex=n(83035);let ef=()=>{let{verifyRiskStatus:e,getRiskReminderPageUrl:t}=(0,ex.E)();return(0,h.useEffect)(()=>{e().then(e=>{"go_warning_page"===e&&t(window.location.href)})},[e,t]),(0,a.jsx)("div",{id:"BuySellPage",className:"h-full",children:(0,a.jsx)(ev,{})})}},93709:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/IllustrationLoading.bfe42607.svg",height:88,width:88,blurWidth:0,blurHeight:0}},95215:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var a=n(37876),l=n(54587),i=n.n(l),s=n(60981),r=n(34846),o=n(84952),d=n(92094),c=n(79123);n(14232);var u=n(52397);let m=e=>{let{ServicesUnavailableDesc:t,btnText:n,ServicesUnavailableTitle:l,onBtnClick:m,dangerouslySetInnerHTML:C}=e,{t:p}=(0,r.Bd)();return(0,a.jsxs)("div",{className:"flex h-full relative flex-col text-center pt-[104px] items-center",children:[(0,a.jsx)(i(),{alt:"IllustrationFail",src:s.A}),(0,a.jsx)("div",{className:" mt-6 font-bold text-xl",children:l||p("ServicesUnavailable")}),(0,a.jsx)("div",{className:" mt-2 text-secondary text-base",children:C?(0,a.jsx)("div",{className:"px-5",dangerouslySetInnerHTML:C}):(0,a.jsx)(r.x6,{t:p,i18nKey:t||"ServicesUnavailableDesc",components:{s:(0,a.jsx)("span",{className:"text-link text-sm "})}})}),(0,a.jsxs)("div",{className:"!absolute !bottom-0 !w-full sm:w-[400px]",children:[(0,a.jsx)(o.A,{onClick:m||(()=>(0,d.V3)()),className:"!rounded-[200px] my-3 sm:w-[400px] w-full",children:(0,a.jsx)("div",{className:"flex flex-1 justify-center",children:(0,a.jsx)("span",{children:n||p("BackToMerchant").replace("{{Merchant}}",(0,u._W)(d.ck.merchantCode))})})}),(0,a.jsx)(c.A,{})]})]})}},97929:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(58069);let l=function(e){let{num:t,decimalPlaces:n=2,roundingMode:l="roundDown"}=e;t=t||0;let i=new a.A(t);return"roundDown"===l?i.round(n,0):"roundUp"===l&&i.round(n,3),i.toNumber().toLocaleStr
1ing(void 0,{minimumFractionDigits:n,maximumFractionDigits:n})}}},e=>{var t=t=>e(e.s=t);e.O(0,[8069,8319,4405,531,6303,636,6593,8792],()=>t(16732)),_N_E=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.