1import{b as e,j as s,C as t,ao as n,a0 as l,ai as a,a4 as i,a1 as c,al as o,a3 as r}from"./index-D1TPP0ID.js";import{h as d}from"./utils-Du3HP9AI.js";import{u as m,c as u}from"./hooks-C1xjp8Fj.js";import{p as x,b as h}from"./index-B8K4ezwO.js";import{c as p}from"./publicMethods-CWSlJswC.js";/* empty css */import{R as v,r as j,u as y,e as g}from"./react-CH-bOe9I.js";import{u as f,f as b,q as k}from"./nutUI-C8iMzybT.js";import{P as N}from"./index-DKj1rkZQ.js";import{N as w,A as C}from"./card-Bsq0KE5k.js";import{S as _,A as T,B as S,a as P}from"./BankCardPCDialog-CfLmAx3P.js";/* empty css */import{F as A}from"./formItemCell-B6v4oliI.js";import{u as E}from"./i18next-DHCxiuaf.js";import{t as M}from"./tips-warning-CFgCBpZv.js";import{I as z}from"./Loading-BJHXD0t3.js";import{Q as Y}from"./index-B4ZHp5Xx.js";import"./ahooks-BPfYyHQM.js";import"./axios-CltMZqXm.js";import"./index-BGVWCr-A.js";import"./index-BLOqPafo.js";import"./index-DwirLlVF.js";import"./index-DvzT4bZE.js";/* empty css */import"./qrcode-DwdBfn_s.js";const I="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='right'%3e%3cpath%20id='Rectangle%2091'%20d='M4.53427%201.46573L6.40939%204L4.53427%206.53427'%20stroke='%230085FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",R=({visible:l,onClose:a,onSubmit:i})=>{const[c,o]=v.useState(""),[r]=f.useForm(),{isMobile:d}=e(),{t:m}=E();return d?s.jsxs(b,{title:m("checkout.CashTag"),closeable:!0,visible:l,position:"bottom",onClose:a,children:[s.jsxs("div",{className:"px-3",children:[s.jsx(f,{form:r,children:s.jsx(A,{label:m("checkout.CashTag"),name:"cashTag",value:c,onChange:e=>o(e)})}),s.jsxs("div",{className:"mt-6 flex flex-col gap-1 rounded-lg bg-success-1 px-[10px] py-[6px]",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("img",{src:_,className:"h-4 w-4"}),s.jsx("span",{className:"text-size-xs text-success-6",children:m("PAYMENT.secure")})]}),s.jsx("div",{className:"text-size-xs text-t-3",children:m("PAYMENT.YourCardRefunded")})]})]}),s.jsx("div",{className:"flex items-center justify-end bg-b-2 p-3 pt-2",children:s.jsx(t,{className:"w-full",type:"primary",size:"large",disabled:!c,onClick:()=>i(c),children:m("button.Confirm")})})]}):s.jsxs(n,{contentClassName:"w-[28rem]",containerClassName:"!z-[99]",visible:l||!1,onClose:a,title:m("checkout.CashTag"),footer:s.jsxs("div",{className:"flex items-center justify-end",children:[s.jsxs(t,{onClick:a,children:[m("Me.cancel")," "]}),s.jsx(t,{className:"ml-3",type:"primary",onClick:()=>i(c),disabled:!c,children:m("button.Confirm")})]}),children:[s.jsx(f,{form:r,children:s.jsx(A,{label:m("checkout.CashTag"),name:"cashTag",value:c,onChange:e=>o(e)})}),s.jsxs("div",{className:"mt-6 flex flex-col gap-1 rounded-lg bg-success-1 px-3 py-2",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("img",{src:_,className:"h-4 w-4"}),s.jsx("span",{className:"text-size-xs text-success-6",children:m("PAYMENT.secure")})]}),s.jsx("div",{className:"text-size-xs text-t-3",children:m("PAYMENT.YourCardRefunded")})]})]})},q=({isHK:e,payType:n,buttonLoading:c,payDetail:o,payOption:r,onBackClick:d,onEnd:m,onChoosePayType:u,goToOption:x,handlePay:h})=>{const{t:p}=E(),[y,g]=v.useState(["eWallet","card"]),[f,b]=j.useState(!1),[_,P]=j.useState(!1),[A,M]=j.useState(!1),z=e=>{["card","eWallet"].includes(e)?y.includes(e)?g(y.filter((s=>s!==e))):g([...y,e]):u(e)};return s.jsxs(N,{title:p("checkout.Checkout"),titleClassName:"bg-b-1",containerClassName:"!min-h-dvh",onBackClick:d,children:[s.jsx("div",{className:"mt-9 text-center text-size-2xl font-semibold",children:l(null==o?void 0:o.total_amount)}),s.jsxs("div",{className:"mb-9 mt-2 flex items-center justify-center text-size-sm",children:[p("checkout.RemainingPaymentTime"),s.jsx(k,{className:"ml-1 font-medium leading-none !text-error-6",remainingTime:1e3*((null==o?void 0:o.countdown_sec)||1800),onEnd:m})]}),s.jsxs("div",{className:"bg-b-2 pt-4 text-size-sm",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between px-3",children:[s.jsx("div",{className:"font-semibold",children:p("checkout.PaymentMethod")}),!e&&s.jsx(t,{type:"link",children:p("checkout.Option"),onClick:x})]}),s.jsx("div",{className:"max-h-[calc(100dvh-17.5rem)] overflow-y-auto",children:null==r?void 0:r.filter((e=>!e.hidden)).map((e=>{var t,l,c;return s.jsxs("div",{className:"border-b-[0.5px] border-line-1 ".concat(["delivery","qr"].includes(e.ke
1y)?"border-b-0":""),children:[s.jsxs("div",{className:"flex items-center justify-between px-3 py-3 ".concat("qr"===e.key?"pb-0":""),onClick:()=>z(e.key),children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("img",{className:"mr-2",src:e.icon,alt:""}),s.jsx("div",{children:e.title})]}),["delivery","qr"].includes(e.key)?s.jsx(i,{className:"ml-auto w-4",checked:n===e.key}):s.jsx("img",{className:"h-4 w-4 ".concat(y.includes(e.key)?"-rotate-90":"rotate-90"," ").concat((null==(t=e.list)?void 0:t.length)?"":"hidden"),src:a,alt:""})]}),y.includes(e.key)&&(null==(l=e.list)?void 0:l.map(((e,t)=>s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"ml-8 flex items-center justify-between pr-3 ".concat(0===t?"":"border-t-[0.5px] border-line-1"," ").concat("JENIUSPAY"===e.channel_code&&n===e.channel_id?"pt-4 pb-2":"py-4"),onClick:()=>z(e.channel_id),children:[s.jsx("img",{className:"mr-2 flex h-4 w-7 items-center justify-center rounded-sm",src:e.channel_logo||w,alt:""}),s.jsx("div",{className:"mr-auto text-t-2",children:e.channel_name}),0===e.status&&"online"!==e.channel_type&&s.jsxs("div",{className:"mr-2 flex items-center rounded-full bg-link-1 px-[0.38rem]",children:[s.jsx("div",{className:"cursor-pointer text-size-2xs font-medium text-link-6",children:p("checkout.Active")}),s.jsx("img",{src:I,alt:""})]}),s.jsx(i,{className:"w-4",checked:n===e.channel_id})]},e.channel_id),"JENIUSPAY"===e.channel_code&&n===e.channel_id&&s.jsxs("div",{className:"ml-8 mr-3 text-size-1xs text-t-3 bg-b-1 px-2 py-1 rounded mb-4",children:[s.jsxs("div",{children:["1.",p("PAYMENT.paymentOpenJeniuspayApp")]}),s.jsxs("div",{children:["2.",p("PAYMENT.jeniuspayEnsureInstalled")]})]})]})))),"qr"===e.key&&s.jsx("div",{className:"text-size-1xs text-t-3 mb-3 ml-11 mt-1",children:p("PAYMENT.scanQrIndonesianBankApp")}),"card"===e.key&&s.jsxs("div",{className:"ml-8 flex items-center py-4 ".concat((null==(c=e.list)?void 0:c.length)?"border-t-[0.5px] border-line-1":""),onClick:()=>b(!0),children:[s.jsx("div",{className:"flex w-7 items-center justify-center rounded-sm border border-line-1",children:s.jsx("img",{src:C,alt:""})}),s.jsx("p",{className:"ml-2 font-medium",children:p("PAYMENT.addaBankCard")})]})]},e.key)}))})]}),s.jsx("div",{className:"fixed inset-x-0 bottom-0 z-[2] flex h-[3.25rem] items-center bg-b-2 px-3 shadow-bottom",children:s.jsx("div",{className:"safe-padding-bottom flex w-full items-center justify-end",children:s.jsx(t,{loading:c,disabled:!n,className:"w-full",type:"primary",size:"large",onClick:()=>{const e=null==o?void 0:o.e_wallet.find((e=>e.channel_id===n));"online"!==(null==e?void 0:e.channel_type)?0!==(null==e?void 0:e.status)?2!==(null==e?void 0:e.status)||"JENIUSPAY"!==e.channel_code?null==h||h():M(!0):P(!0):null==h||h()},children:p("afterSaleOrder.Submit")})})}),s.jsx(T,{visible:_,closeDialog:()=>P(!1),onSuccess:e=>(e=>{P(!1),null==h||h(e)})(e)}),s.jsx(S,{visible:f,setVisible:b}),s.jsx(R,{visible:A,onSubmit:e=>{M(!1),null==h||h({cash_tag:e})},onClose:()=>M(!1)})]})},L=({isHK:e,payType:n,buttonLoading:a,payDetail:c,payOption:o,onEnd:r,onChoosePayType:d,goToOption:m,handlePay:u})=>{const{t:x}=E(),[h,p]=j.useState(!1),[v,y]=j.useState(!1),[g,f]=j.useState(!1),b=!["card","eWallet"].includes(n||""),C=e=>{y(!1),null==u||u(e)};return s.jsxs(N,{className:"!bg-b-2",containerClassName:"text-size-base p-6",children:[s.jsx("div",{className:"mt-10 text-center text-size-2xl font-semibold",children:l(null==c?void 0:c.total_amount)}),s.jsxs("div",{className:"mb-10 mt-2 flex items-center justify-center text-size-sm",children:[x("checkout.RemainingPaymentTime"),s.jsx(k,{className:"ml-1 font-medium leading-none !text-error-6",remainingTime:1e3*((null==c?void 0:c.countdown_sec)||1800),onEnd:r})]}),s.jsxs("div",{className:"pt-6 text-size-sm",children:[s.jsxs("div",{className:"mb-5 flex items-center justify-between",children:[s.jsx("div",{className:"text-size-xl font-semibold",children:x("checkout.PaymentMethod")}),!e&&s.jsx(t,{className:"text-size-base",type:"link",children:x("checkout.Option"),onClick:m})]}),null==o?void 0:o.filter((e=>!e.hidden)).map((e=>{var t,l,a,o;return s.jsxs("div",{className:"mb-5 rounded-lg border border-line-1 p-6",children:[s.jsxs("div",{className:"flex items-center",onClick:()=>{return s=e.key,void(b&&d(s));var s}
1,children:[["delivery","qr"].includes(e.key)&&s.jsx(i,{className:"mr-3",checked:n===e.key}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("img",{className:"mr-2",src:e.icon,alt:""}),s.jsx("div",{children:e.title})]})]}),!!(null==(t=e.list)?void 0:t.length)&&s.jsx("div",{className:"mt-5 grid grid-cols-4 gap-4",children:null==(l=e.list)?void 0:l.map((e=>s.jsxs("div",{className:"flex cursor-pointer items-center rounded border border-line-1 p-3",onClick:()=>d(e.channel_id),children:[s.jsx(i,{checked:n===e.channel_id}),s.jsx("img",{className:"mx-3 max-h-9 max-w-14",src:e.channel_logo||w,alt:""}),s.jsx("div",{children:e.channel_name}),0===e.status&&"online"!==e.channel_type&&s.jsxs("div",{className:"ml-1 flex items-center rounded-full bg-link-1 px-[0.38rem]",children:[s.jsx("div",{className:"cursor-pointer text-size-2xs font-medium text-link-6",children:x("checkout.Active")}),s.jsx("img",{src:I,alt:""})]})]},e.channel_id)))}),"qr"===e.key&&s.jsx("div",{className:"text-size-1xs text-t-3 mt-1 ml-10",children:x("PAYMENT.scanQrIndonesianBankApp")}),"eWallet"===e.key&&"JENIUSPAY"===(null==(a=null==c?void 0:c.e_wallet.find((e=>e.channel_id===n)))?void 0:a.channel_code)&&s.jsxs("div",{className:"flex items-center text-size-1xs text-warning-6 bg-warning-1 py-1 px-2 rounded mt-5",children:[s.jsx("img",{src:M,alt:"",className:"w-3 h-3 mr-1"}),s.jsxs("div",{className:"flex-1",children:["1.",x("PAYMENT.paymentOpenJeniuspayApp")," 2.",x("PAYMENT.jeniuspayEnsureInstalled")]})]}),"card"===e.key&&s.jsx("div",{className:"w-fit cursor-pointer rounded-lg border border-t-3 px-8 py-2 text-size-lg ".concat((null==(o=e.list)?void 0:o.length)?"mt-5":"mt-6"),onClick:()=>p(!0),children:x("afterSaleOrder.AddABankCard")})]},e.key)}))]}),s.jsx("div",{className:"flex justify-end",children:s.jsx(t,{loading:a,disabled:!n,className:"!rounded-lg px-8 !text-size-lg",type:"primary",size:"large",onClick:()=>{const e=null==c?void 0:c.e_wallet.find((e=>e.channel_id===n));"online"!==(null==e?void 0:e.channel_type)?0!==(null==e?void 0:e.status)?2!==(null==e?void 0:e.status)||"JENIUSPAY"!==e.channel_code?null==u||u():f(!0):y(!0):null==u||u()},children:x("button.Submit")})}),s.jsx(T,{visible:v,closeDialog:()=>y(!1),onSuccess:e=>null==C?void 0:C(e)}),s.jsx(P,{visible:h,setVisible:p}),s.jsx(R,{visible:g,onSubmit:e=>{f(!1),null==u||u({cash_tag:e})},onClose:()=>f(!1)})]})},B=({visible:l,text:a,onClose:i})=>{const{isMobile:o}=e(),{t:r}=E(),d=v.useRef(null),m=()=>{var e;try{const s=null==(e=d.current)?void 0:e.querySelector("canvas");if(!s)return;const t=s.toDataURL("image/png"),n=document.createElement("a");n.href=t,n.download="qrcode.png","string"==typeof n.download?(document.body.appendChild(n),n.click(),document.body.removeChild(n)):window.open(t,"_blank")}catch(s){console.error(s)}};return o?s.jsxs(c,{title:r("PAYMENT.qrPay"),closeable:!0,visible:l,position:"bottom",onClose:i,children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 mb-6",children:[s.jsx("div",{className:"text-size-xs mt-2",children:r("PAYMENT.scanQrIndonesianBankApp")}),s.jsx("div",{className:"p-3 rounded-xl bg-brand-3",ref:d,children:s.jsx("div",{className:"p-3 bg-b-2",children:s.jsx(Y,{text:a,width:180,height:180})})})]}),s.jsx("div",{className:"flex items-center justify-end bg-b-2 p-3 pt-2 mb-6",children:s.jsx(t,{className:"w-full",type:"primary",size:"large",onClick:m,children:r("PAYMENT.saveImageToAlbum")})})]}):s.jsx(n,{contentClassName:"w-[28rem] py-6",containerClassName:"!z-[99]",visible:l,onClose:i,title:r("PAYMENT.qrPay"),footer:s.jsx("div",{className:"flex items-center justify-end",children:s.jsx(t,{className:"ml-3",type:"primary",onClick:m,children:r("PAYMENT.saveImageToAlbum")})}),children:s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4",children:[s.jsx("div",{className:"text-size-xs text-t-3",children:r("PAYMENT.scanQrIndonesianBankApp")}),s.jsx("div",{className:"p-3 rounded-xl bg-brand-3",ref:d,children:s.jsx("div",{className:"p-3 bg-b-2",children:s.jsx(Y,{text:a,width:180,height:180})})})]})})},O=()=>{const{isMobile:l}=e(),{state:a}=g(),i=y(),c=o(location.search).orderNo,v=o(location.search).payNo,f=o(location.search).shouldRefresh,b=o(location.search).type,k=o(location.search).activityId,{pay_type:N}=a||{},[w,C]=j.useState(),[_,T]=j.useState(),[S,P]=j.useState(!1),[A,M]=j.useState(!1),[Y,I]=j.useState(!1),[R,O]=j.useState(!1),[D,H]=j.useState(!1),[W,J]=j.useState(!1),[Q,U]=j.useState(""),{startTimer:V,stopTimer:F,status:K}=(e=>{const{autoStart:s=!1,orderNo:t,totalMinutes:n=10,intervalSeconds:l=10}=e,a=y(),i=j.useRef(),c=j.useRef(),[o,r]=j.useState(0),[d,u]=j.useState(s),{detail:x}=m(t,o,!0),h=60*n*1e3,p=1e3*l,v=()=>{d||(u(!0),i.current=setInterval((()=>{r((e=>e+1))}),p),c.current=setTimeout((()=>{console.log("æ¶é´å°ï¼".concat(n,"åéï¼ï¼æ§è¡è·³è½¬")),a("/orderDetail/".concat(t),{replace:!0})}),h))},g=e=>{u(!1),e&&a(e,{replace:!0}),i.current&&clearInterval(i.current),c.current&&clearTimeout(c.current)};return j.useEffect((()=>(s&&v(),()=>{g()})),[s]),{startTimer:v,stopTimer:g,currentCount:o,isActive:d,status:x.order_status}})({orderNo:c}),{t:Z}=E(),$=j.useMemo((()=>"HK"===r.getCurrentCountry()),[]);j.useEffect((()=>{let e=null;return G(!0),null!==f&&(M(!0),e=setTimeout((()=>{G(!0),M(!1)}),Number(f))),()=>{e&&clearTimeout(e)}}),[f]),j.useEffect((()=>{G()}),[c]),j.useEffect((()=>{2===K&&F("/paymentSuccess?order_no=".concat(c)),4===K&&F("/cardDraw?activityId=".concat(k,"&orderNo=").concat(c,"&source=checkout"))}),[K]),j.useEffect((()=>{T(N)}),[N]);const G=async e=>{var s;const{data:t}=await d({order_no:c,pay_no:v,h5_flag:l});if(C(t),e){H(!0);const e=(null==t?void 0:t.card)||[];T((null==(s=null==e?void 0:e[0])?void 0:s.channel_id)||"")}},X=()=>O(!0),ee=j.useMemo((()=>[{title:Z("PAYMENT.qrPay"),icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%204H19C19.5523%204%2020%204.44772%2020%205V8'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M16%2020H19C19.5523%2020%2020%2019.5523%2020%2019V16'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M8%204H5C4.44772%204%204%204.44772%204%205V8'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M8%2020H5C4.44772%2020%204%2019.5523%204%2019V16'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M4%2012H20'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",key:"qr",hidden:!Array.isArray(null==w?void 0:w.qr)},{title:Z("checkout.EWallet"),icon:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='E-Wallet'%3e%3cpath%20id='Rectangle%20549'%20d='M7.33774%207.04688L9.67548%205.69718L12.6189%203.9978C13.5755%203.44551%2014.7987%203.77326%2015.3509%204.72985L16.3755%206.5044L16.8816%207.38105'%20stroke='%23111111'%20stroke-width='1.5'/%3e%3crect%20id='Rectangle%20548'%20x='3'%20y='7'%20width='18'%20height='14'%20rx='2'%20stroke='%23111111'%20stroke-width='1.5'/%3e%3cpath%20id='Rectangle%202494'%20d='M14%2014C14%2012.8954%2014.8954%2012%2016%2012H21V16H16C14.8954%2016%2014%2015.1046%2014%2014V14Z'%20stroke='black'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",key:"eWallet",list:(null==w?void 0:w.e_wallet)||[]},{title:Z("checkout.CreditDebitCardNexCard"),icon:"data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='E-Wallet'%3e%3crect%20id='Rectangle%20548'%20x='3'%20y='5.5'%20width='18'%20height='14'%20rx='2'%20stroke='%23111111'%20stroke-width='1.5'/%3e%3cline%20id='Line%2069'%20x1='3'%20y1='9.75'%20x2='21'%20y2='9.75'%20stroke='%23111111'%20stroke-width='1.5'/%3e%3cpath%20id='Line%2070'%20d='M14%2015.5L18%2015.5'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",key:"card",list:(null==w?void 0:w.card)||[],hidden:$}]),[w,Z]),se=()=>u({order_no:c,refresh:()=>history.back(),needToast:!1}),te=()=>i("/payment-option?fromPage=checkout"),ne=async e=>{P(!0);const s=[...(null==w?void 0:w.e_wallet)||[],...(null==w?void 0:w.card)||[],{channel_id:"qr",channel_type:"qr",channel_c
1ode:"QRIS",channel_name:"QRIS",status:2}].find((e=>e.channel_id===_));try{const n={order_no:c,pay_no:v,pay_amount:(null==w?void 0:w.total_amount)||0,channel_id:(t=(null==s?void 0:s.channel_id)||"","qr"===t?-1:t),channel_type:(null==s?void 0:s.channel_type)||"",channel_code:(null==s?void 0:s.channel_code)||"",payment_channel:(null==s?void 0:s.channel_name)||"",given_names:null==e?void 0:e.first_name,surname:null==e?void 0:e.last_name,email:null==e?void 0:e.email_address,mobile_number:null==e?void 0:e.phone,cash_tag:null==e?void 0:e.cash_tag,pay_once_flag:2===(null==s?void 0:s.status),pay_success_url:p("card"===b?"".concat(window.location.origin,"/cardDraw?activityId=").concat(k,"&orderNo=").concat(c,"&source=checkout"):"".concat(window.location.origin,"/paymentSuccess?order_no=").concat(c)),pay_fail_url:p()},{data:l}=await($?x(n):h(n));if("JENIUSPAY"===(null==s?void 0:s.channel_code)&&(V(),I(!0)),"QRIS"===(null==s?void 0:s.channel_code))return J(!0),U(l.pay_link),void V();l.pay_link&&(window.location.href=l.pay_link)}catch(n){console.log(n)}finally{P(!1)}var t};return s.jsxs(s.Fragment,{children:[l?s.jsx(q,{isHK:$,payType:_,buttonLoading:S,payDetail:w,payOption:ee,onBackClick:X,onEnd:se,onChoosePayType:T,goToOption:te,handlePay:ne}):s.jsx(L,{isHK:$,payType:_,buttonLoading:S,payDetail:w,payOption:ee,onBackClick:X,onEnd:se,onChoosePayType:T,goToOption:te,handlePay:ne}),s.jsx(z,{isLoading:A||Y,isScrollLock:!0,className:"z-[200010]",loadingText:Y?Z("checkout.LoadingText"):""}),s.jsx(n,{visible:R,hideHeader:!0,onClose:()=>O(!1),onClickMask:()=>O(!1),children:s.jsxs("div",{className:"mb-1 mt-4 w-56",children:[s.jsx("div",{className:"mb-2 text-center text-size-base font-semibold",children:Z("checkout.CancelPayment")}),s.jsx("div",{className:"text-center text-size-sm text-t-2",children:Z("checkout.AreYouSureYouWantToCancelPayment")}),s.jsx(t,{type:"primary",size:"large",className:"mt-6 w-full text-size-base",onClick:()=>O(!1),children:Z("button.Cancel")}),s.jsx("div",{onClick:()=>{"card"!==b?D?i("/orderDetail/".concat(c),{replace:!0}):history.back():i("/cardDraw?activityId=".concat(k,"&orderNo=").concat(c,"&source=checkoutCancel"),{replace:!0})},className:"mb-3 mt-4 text-center text-size-base font-medium",children:Z("button.Confirm")})]})}),s.jsx(B,{visible:W,text:Q,onClose:()=>J(!1)})]})};export{O as default};
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.