1import{j as e}from"./vendor-react.ELhBuE2q.js";import{f as C,W as o,a1 as T,aj as v,am as M,a4 as S}from"./app-shared.vGCh5Fta.js";import{S as U}from"./SmartInput.CvcH83cQ.js";import{S as u}from"./TextBox.D0N7I57m.js";import{D as X}from"./DepositQrCode.ChbTvyWG.js";import{I as H}from"./ImageCrop.nqYWMWLo.js";import{b as J}from"./paymentTarget.5Km7-Lnh.js";import{D as K,a as O,b as F}from"./DepositBlocksFintech.9x5p6aOY.js";import"./vendor-ui.BSTRh9Ug.js";import"./vendor-i18n.DvM0XvO9.js";import"./vendor-router.aN8wpDPU.js";import"./vendor-moment.BLMuvzoS.js";import"./vendor-axios.NIGUFBhG.js";import"./browser.BEzwImBN.js";import"./imageDataUrl.DuzSldQ7.js";const V=t=>!t||t.startsWith("data:")||t.startsWith("http")?t:`data:image/png;base64,${t}`,xe=({order:t})=>{var k,w;const{t:s,step:g,dataUser:i,minDeposit:D,formData:a,quickAmounts:$,handleAmountChange:I,handleQuickAmountClick:z,generateQRPayment:Q,target:l,handleCopyClick:B,handleCopyAmount:R,isUpload:x,timer:p,typeQR:r,messageCheckGen:_,showIframe:n,linkIsPage:N,linkDirect:q,setLinkIsPage:P,payFrame:h,payBoxRef:E,qrLink:m,scanQrCode:W,cropScanStatus:d,slipToGateway:f,slipGuard:b,slipDataUrl:y,preSubmitSlip:A,retryIn:j}=t;return e.jsxs("div",{className:`depmodal-capframe ${n&&N?"deposit-modal-wide":"max-w-[480px]"}`,children:[e.jsxs(C,{styleName:"bg_depmodal_cap_fintech",className:"flex-none flex flex-col gap-[10px]",children:[e.jsx(u,{styleName:"text_title_depmodal_fintech",label:s("deposit_money")}),e.jsxs("span",{className:"bg_depmodal_bank_fintech w-full flex items-center gap-3",children:[e.jsx("span",{className:"bg_depmodal_logo_fintech flex items-center justify-center flex-none overflow-hidden",children:e.jsx("img",{src:l.logo,alt:l.bankName||"bank",className:"h-full w-full object-contain"})}),e.jsxs("span",{className:"flex-1 min-w-0 flex flex-col",children:[e.jsx("span",{className:"text_depmodal_bankname_fintech truncate",children:l.bankName}),e.jsx("span",{className:"text_depmodal_capmeta_fintech truncate",children:l.accoName}),e.jsx("span",{className:"text_depmodal_capmeta_fintech truncate",children:l.accoNo})]}),l.hasDetail&&e.jsxs(o,{onClick:B,styleName:"btn_copy_cap_depmodal_fintech",className:"flex flex-col items-center gap-0.5 flex-none cursor-pointer",children:[e.jsx(T,{size:15,strokeWidth:2,"aria-hidden":"true"}),e.jsx("span",{children:s("copy_cus")})]})]})]}),e.jsx("div",{className:"depmodal-cap-scroll",children:e.jsxs(C,{styleName:"bg_depmodal_fintech",className:"w-full relative flex flex-col gap-[14px]",children:[g==1&&e.jsxs(e.Fragment,{children:[e.jsx(u,{styleName:"text_description_modal_deposit_fintech",label:`${s("please_choose_a_deposit_method_and_deposit_only_minimum")} ${D} ${s("baht")}`}),e.jsx(U,{styleName:"deposit_fintech",type:"text",name:"deposit",value:a.amount,onChange:I,placeholder:`${s("enter_amount")}`}),e.jsx("div",{className:"grid grid-cols-4 gap-[8px]",children:$.map(c=>e.jsx(o,{onClick:()=>z(c),type:"submit",styleName:"btn_preset_depmodal_fintech",activeStyle:String(a.amount)===String(c),label:c},`preSetDeposit_${c}`))}),e.jsx(o,{onClick:Q,type:"submit",styleName:"btn_confirm_depmodal_fintech",label:s("confirm")})]}),g==2&&e.jsxs(e.Fragment,{children:[!n&&e.jsxs(e.Fragment,{children:[a.amount&&e.jsx(K,{t:s,amount:l.amount??(a==null?void 0:a.amount),timer:p,onCopy:R}),e.jsxs("span",{className:"bg_depmodal_warn_fintech w-full flex flex-col gap-1.5",children:[e.jsxs("span",{className:"flex gap-1 flex-wrap items-center justify-center",children:[e.jsxs("span",{children:["**",s("use_account_number")]}),e.jsx("img",{src:J((k=i==null?void 0:i.customer)==null?void 0:k.bank_name),alt:"bank",className:"h-[18px] w-[18px] object-contain rounded-full"}),e.jsx("span",{children:(w=i==null?void 0:i.customer)==null?void 0:w.bank_acco_number}),e.jsxs("span",{children:[s("deposit_money_only"),"**"]})]}),e.jsx("span",{className:"text-center",children:s("please_transfer_the_decimal_points")})]}),e.jsx(O,{t:s,withSlipRule:x})]}),x?e.jsxs("span",{className:"w-full flex justify-between items-center gap-2",children:[e.jsx("span",{className:"text_depmodal_kv_fintech",children:s("upload_slip")}),(n||!a.amount)&&e.jsx(F,{t:s,timer:p})]}):e.jsxs(e.Fragment,{children:[r=="account"&&_&&_!="success"&&e.jsx("span",{className:"text_depmodal_meta_fintech w-full text-center",children:_}),(n||!a.amount)&&p>0&&e.jsx("span",{className:"w-full flex justify-center",children:e.jsx(F,{t:s,timer:p})})]}),e.jsxs("div",{"data-qr-type":r||(n?"link":""),className:"upload-container w-full flex flex-col items-center justify-center",children:[n&&q?e.jsxs("div",{className:"w-full flex flex-col items-center gap-3",children:[e.jsx(u,{styleName:"text_description_modal_deposit_fintech",label:s("open_payment_page_hint")}),e.jsx(o,{onClick:()=>window.open(m,"_blank","noopener,noreferrer"),styleName:"btn_confirm_depmodal_fintech",label:s("open_payment_page")})]}):n&&(N?e.jsx("div",{ref:E,className:"modal-payment-iframe-box",children:e.jsx("iframe",{src:m,className:"modal-payment-iframe",allow:"clipboard-write",style:{width:h.width,height:h.height,transform:`scale(${h.scale})`}})}):e.jsx("img",{src:m,alt:"Preview QrCode",className:"deposit-qr-fit",onError:()=>P(!0)})),r=="text"&&e.jsx(X,{url:m}),(r=="base64"||r=="base64_2")&&e.jsx("img",{src:V(m),alt:"Preview QrCode",className:"deposit-qr-fit"})]}),x&&e.jsxs(e.Fragment,{children:[e.jsx(H,{onChange:(c,G,L)=>W(c,G,L)}),d===1&&e.jsxs("div",{className:"flex items-center gap-2 text-[#00B074]",children:[s("qr_ready_msg")," ",e.jsx(v,{size:18})]}),d===2&&!f&&e.jsxs("div",{className:"flex items-center gap-2 text-[#F04E3E]",children:[s("qr_not_ready_msg")," ",e.jsx(M,{size:18})]}),b.done&&e.jsxs("div",{className:"flex items-center gap-2 text-[#00B074]",children:[s("checking_slip")," ",e.jsx(v,{size:18})]}),e.jsxs("div",{className:"text_depmodal_note_fintech flex items-center",children:[e.jsx("div",{className:"w-[20px]",children:e.jsx(S,{size:15})}),e.jsx("span",{children:s("please_upload_the_receipt_within_15_minutes")})]}),e.jsxs("div",{className:"text_depmodal_note_fintech flex gap-[4px]",children:[e.jsx("div",{className:"w-[20px]",children:e.jsx(S,{size:15})}),e.jsx("span",{children:s("please_upload_the_receipt_some_bank")})]}),e.jsx("div",{className:d===1||f&&y?"sticky bottom-0 z-20":"",children:e.jsx(o,{onClick:A,disabled:!b.canSe
1nd(y)||(f?!1:d!==1)||j>0,type:"submit",styleName:"btn_confirm_depmodal_fintech",label:j>0?s("slip_retry_in",{sec:j}):s("confirm")})})]})]})]})})]})};export{xe 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.