PageSourceSearch

https://ufabet.mobile/react/assets/UI_Liquid.Cryvedt2.js

js ufabet.mobile collected 2026-10-04 20:35:46 UTC 5,428 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-react.ELhBuE2q.js";import{f as A,W as _,aj as C,am as G,a4 as v}from"./app-shared.CdUkAbk4.js";import{S as E}from"./SmartInput.DfKyFp4R.js";import{S as M}from"./TextBox.D9WGVcEh.js";import{D as X}from"./DepositQrCode.CUTlXrG5.js";import{I as H}from"./ImageCrop.BEdL8ohD.js";import{D as J,a as K,b as O,c as U,d as V,e as S}from"./DepositBlocksLiquid.BwZtW85d.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";import"./paymentTarget.5Km7-Lnh.js";const Y=i=>!i||i.startsWith("data:")||i.startsWith("http")?i:`data:image/png;base64,${i}`,ue=({order:i})=>{var k,q;const{t:a,step:g,dataUser:r,minDeposit:w,formData:s,quickAmounts:D,handleAmountChange:$,handleQuickAmountClick:I,generateQRPayment:L,target:l,handleCopyClick:Q,handleCopyAmount:z,isUpload:u,timer:m,typeQR:n,messageCheckGen:x,showIframe:t,linkIsPage:N,linkDirect:F,setLinkIsPage:R,payFrame:h,payBoxRef:B,qrLink:d,scanQrCode:P,cropScanStatus:c,slipToGateway:f,slipGuard:b,slipDataUrl:y,preSubmitSlip:T,retryIn:j}=i;return e.jsxs("div",{className:`flex flex-col max-h-[calc(100dvh-206px)] ${t&&N?"deposit-modal-wide":"max-w-[480px]"}`,children:[e.jsx(J,{label:a("deposit_money")}),e.jsx("div",{className:"depmodal-cap-scroll",children:e.jsxs(A,{styleName:"bg_depmodal_liquid",className:"relative flex flex-col gap-3 text-left logregis-fields",children:[e.jsx(K,{t:a,logo:l.logo,alt:l.bankName,name:l.bankName,lines:[l.accoName,l.accoNo],onCopy:l.hasDetail?Q:void 0}),g==1&&e.jsxs(e.Fragment,{children:[e.jsx(M,{styleName:"text_description_modal_deposit_liquid",label:`${a("please_choose_a_deposit_method_and_deposit_only_minimum")} ${w} ${a("baht")}`}),e.jsx(E,{styleName:"amount_depmodal_liquid",type:"text",name:"deposit",value:s.amount,onChange:$,placeholder:`${a("enter_amount")}`}),e.jsx("div",{className:"grid grid-cols-4 gap-2",children:D.map(o=>{const p=String(s.amount)===String(o);return e.jsx(_,{onClick:()=>I(o),styleName:p?"btn_preset_active_depmodal_liquid":"btn_preset_depmodal_liquid",activeStyle:p,className:"liquid_glass_capsule cursor-pointer",label:o},`preSetDeposit_${o}`)})}),e.jsx(_,{onClick:L,styleName:"btn_confirm_depmodal_liquid",className:"liquid_glass_capsule cursor-pointer",label:a("confirm")})]}),g==2&&e.jsxs(e.Fragment,{children:[!t&&e.jsxs(e.Fragment,{children:[s.amount&&e.jsx(O,{t:a,amount:l.amount??(s==null?void 0:s.amount),timer:m,onCopy:z}),e.jsx(U,{t:a,bankName:(k=r==null?void 0:r.customer)==null?void 0:k.bank_name,accoNo:(q=r==null?void 0:r.customer)==null?void 0:q.bank_acco_number}),e.jsx(V,{t:a,withSlipRule:u})]}),u?e.jsxs("div",{className:"flex justify-between items-center gap-2",children:[e.jsx("span",{className:"default_kv_depmodal_liquid",children:a("upload_slip")}),(t||!s.amount)&&e.jsx(S,{t:a,timer:m})]}):e.jsxs(e.Fragment,{children:[n=="account"&&x&&x!="success"&&e.jsx("span",{className:"default_meta_depmodal_liquid block",children:x}),(t||!s.amount)&&m>0&&e.jsx("div",{className:"flex justify-center",children:e.jsx(S,{t:a,timer:m})})]}),e.jsxs("div",{"data-qr-type":n||(t?"link":""),className:"upload-container w-full flex flex-col items-center justify-center",children:[t&&F?e.jsxs("div",{className:"w-full flex flex-col items-center gap-3",children:[e.jsx("span",{className:"default_hint_depmodal_liquid block text-center",children:a("open_payment_page_hint")}),e.jsx(_,{onClick:()=>window.open(d,"_blank","noopener,noreferrer"),styleName:"btn_confirm_depmodal_liquid",className:"liquid_glass_capsule cursor-pointer",label:a("open_payment_page")})]}):t&&(N?e.jsx("div",{ref:B,className:"modal-payment-iframe-box",children:e.jsx("iframe",{src:d,className:"modal-payment-iframe",style:{width:h.width,height:h.height,transform:`scale(${h.scale})`}})}):e.jsx("img",{src:d,alt:"Preview QrCode",className:"deposit-qr-fit",onError:()=>R(!0)})),n=="text"&&e.jsx(X,{url:d}),(n=="base64"||n=="base64_2")&&e.jsx("img",{src:Y(d),alt:"Preview QrCode",className:"deposit-qr-fit"})]}),u&&e.jsxs(e.Fragment,{children:[e.jsx(H,{onChange:(o,p,W)=>P(o,p,W)}),c===1&&e.jsxs("div",{className:"default_ok_depmodal_liquid flex items-center gap-2",children:[a("qr_ready_msg")," ",e.jsx(C,{size:18,"aria-hidden":"true"})]}),c===2&&!f&&e.jsxs("div",{className:"default_bad_depmodal_liquid flex items-center gap-2",children:[a("qr_not_ready_msg")," ",e.jsx(G,{size:18,"aria-hidden":"true"})]}),b.done&&e.jsxs("div",{className:"default_ok_depmodal_liquid flex items-center gap-2",children:[a("checking_slip")," ",e.jsx(C,{size:18,"aria-hidden":"true"})]}),e.jsxs("div",{className:"default_note_depmodal_liquid flex items-center gap-1",children:[e.jsx(v,{size:15,className:"shrink-0","aria-hidden":"true"}),e.jsx("span",{children:a("please_upload_the_receipt_within_15_minutes")})]}),e.jsxs("div",{className:"default_note_depmodal_liquid flex items-center gap-1",children:[e.jsx(v,{size:15,className:"shrink-0","aria-hidden":"true"}),e.jsx("span",{children:a("please_upload_the_receipt_some_bank")})]}),e.jsx("div",{className:c===1||f&&y?"sticky bottom-0 z-20":"",children:e.jsx(_,{onClick:T,disabled:!b.canSe
1nd(y)||(f?!1:c!==1)||j>0,styleName:"btn_confirm_depmodal_liquid",className:"liquid_glass_capsule cursor-pointer",label:j>0?a("slip_retry_in",{sec:j}):a("confirm")})})]})]})]})})]})};export{ue 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.