PageSourceSearch

https://www.orangex.com/_next/static/chunks/pages/account/wallet/deposit-bc36d05622636a3f.js

js orangex.com collected 2026-10-02 15:03:41 UTC 85,526 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1088],{134:(e,t,i)=>{"use strict";i.d(t,{j:()=>p});var s=i(37876),n=i(45837),l=i(51495),a=i(57358),r=i(80135),o=i(19485),c=i(48230),d=i.n(c);let p=e=>{let{txHash:t,tokenExplore:i,encrypto:c=!0,align:p="left"}=e;return(0,s.jsx)(s.Fragment,{children:t?(0,s.jsxs)(a.B,{direction:"row",alignItems:"center",spacing:10,children:[(0,s.jsx)(r.m,{title:t,underline:!1,panelClassName:(0,o.AH)({wordBreak:"break-all"}),children:(0,s.jsx)("div",{className:(0,o.AH)({color:"text-primary"}),style:{textAlign:p},children:c?(0,l.c2)(t):t})}),i&&(0,s.jsx)(d(),{className:(0,o.AH)({fontSize:"14px",color:"text-secondary",display:"flex",alignItems:"center"}),href:i.replace("{##}",t),target:"_blank",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",children:(0,s.jsx)("path",{d:"M7.61954 4.73134L8.44449 5.5563C10.0391 7.15097 10.0391 9.73636 8.44449 11.331L8.23828 11.5372C6.64362 13.1319 4.0582 13.1319 2.46356 11.5372C0.868918 9.94263 0.868918 7.35717 2.46356 5.76254L3.28852 6.58752C2.14949 7.72654 2.14949 9.57326 3.28852 10.7123C4.42755 11.8513 6.27425 11.8513 7.41333 10.7123L7.61954 10.5061C8.75855 9.36699 8.75855 7.52027 7.61954 6.38126L6.79459 5.5563L7.61954 4.73134ZM11.5381 8.23742L10.7131 7.41248C11.8521 6.2734 11.8521 4.42669 10.7131 3.28767C9.57411 2.14864 7.7274 2.14864 6.58838 3.28767L6.38211 3.4939C5.24308 4.63293 5.24308 6.47967 6.38211 7.61868L7.20706 8.44363L6.38211 9.26858L5.55715 8.44363C3.96251 6.84903 3.96251 4.26359 5.55715 2.66895L5.76339 2.4627C7.35803 0.868063 9.94348 0.868063 11.5381 2.4627C13.1327 4.05735 13.1327 6.64277 11.5381 8.23742Z",fill:"currentColor"})})}),(0,s.jsx)(n.q0,{text:t,css:{root:{width:"16px",height:"16px",color:"text-secondary"}}})]}):"--"})}},10003:(e,t,i)=>{"use strict";i.d(t,{X:()=>a});var s=i(37876),n=i(19485),l=i(37626);let a=e=>{let{options:t,value:i,onChange:a,title:r}=e,{t:o}=(0,l.B)();return(0,s.jsxs)("div",{className:(0,n.AH)({maxHeight:"80vh",display:"flex",flexDirection:"column",pt:"20px",px:"16px",pb:"calc(16px + env(safe-area-inset-bottom))"}),children:[r&&(0,s.jsx)("div",{className:(0,n.AH)({fontWeight:700,fontSize:"18px",lineHeight:"21px",color:"text-primary"}),children:r}),(0,s.jsx)("div",{className:(0,n.AH)({overflowY:"auto",mt:"24px",maxHeight:"500px",display:"flex",flexDirection:"column",gap:"8px"}),children:t.map(e=>(0,s.jsx)("div",{className:(0,n.cx)((0,n.AH)({py:"8px",minHeight:"48px",display:"flex",alignItems:"center",cursor:"pointer",_active:{bg:"fill-input-normal"}}),e.value===i&&(0,n.AH)({color:"fn-brand-normal"})),onClick:()=>a(e.value),children:(0,s.jsx)("div",{className:(0,n.Fj)({base:{fontWeight:400,fontSize:"16px",lineHeight:"100%",letterSpacing:"0px",color:"text-primary"},variants:{active:{true:{color:"fn-brand-normal"}}}})({active:e.value===i}),children:e.label})},e.value))})]})}},10859:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>tH,default:()=>tN});var s=i(37876),n=i(38795),l=i(29336),a=i(44160),r=i(6340),o=i(27587),c=i(2473),d=i(36748),p=i(31848),x=i(34765),h=i(58008);let u=e=>{let{info:t,forbiddenType:i,loading:s}=(0,h.Py)(),{loading:n,isAllowed:l}=(0,p.JT)("SUPPORT_DEPOSIT"),a=!s&&!n&&!(0,x.z)(t);return{isReady:a,isSuspended:!!e&&!e.deposit_status,isAccountForbidden:"1"===i,isKYCPassed:l}};var m=i(99991),f=i(49995),g=i(35764),v=i.n(g);let j=e=>{let{children:t,className:i,...n}=e;return(0,s.jsx)("div",{className:(0,f.default)(v().root,i),...n,children:t})};var y=i(19485),b=i(37626),A=i(95008);let w=()=>{let{t:e}=(0,b.B)();return(0,s.jsxs)("div",{className:(0,y.AH)({height:"100%",bg:"bg-secondary"}),children:[(0,s.jsx)(A.G,{hideExtra:!0,title:e("Forbidden.FreezeTitle")}),(0,s.jsx)(j,{className:(0,y.AH)({m:"24px 16px 0"}),children:(0,s.jsx)(m.c,{cs:{img:(0,y.AH)({width:"90px",height:"90px"}),content:(0,y.AH)({fontWeight:700,fontSize:"16px",lineHeight:"100%",letterSpacing:"0%",textAlign:"center"}),extraText:(0,y.AH)({fontWeight:400,fontSize:"14px",lineHeight:"24px",letterSpacing:"0px",display:"flex",flexDirection:"column",gap:"16px",marginTop:"16px",textAlign:"left"})},type:"error",extraText:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:e("Deposit.Forbidden01")}),(0,s.jsxs)("div",{translate:"no",children:["⚠️ ",e("Deposit.Forbidden02")]}),(0,s.jsxs)("div",{translate:"no",children:["⚠️ ",e("Deposit.Forbidden03")]})]}),children:e("Forbidden.FreezeTitle")})})]})};var H=i(48491),N=i(59689),C=i(92410),S=i(26786),D=i(75989),_=i(92478),k=i(79900),z=i(63898),W=i(82075),I=i(83685),$=i(34186),R=i(10435),T=i(395),P=i(76882),F=i(57358),B=i(75441),L=i(14232),E=i(92771),M=i(48595);function V(e){let{text:t}=e,{t:i}
1=(0,b.B)(),[n,l]=(0,L.useState)(!1),a=(0,L.useRef)(null);return((0,L.useEffect)(()=>{if(n){let e=(0,M.O)(1500).subscribe(()=>l(!1));return()=>e.unsubscribe()}},[n]),(0,L.useEffect)(()=>{let e=a.current;if(!e||!t||"--"===t)return;let s=async e=>{if(e.stopPropagation(),e.preventDefault(),n)return;let s=()=>{l(!0),E.Message.show({type:"success",content:i("Public.Copied")})};if(navigator.clipboard&&window.isSecureContext)try{await navigator.clipboard.writeText(t),s();return}catch(e){console.error("Failed to copy via navigator.clipboard",e)}try{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",e.style.top="0",document.body.appendChild(e),e.focus(),e.select();let i=document.execCommand("copy");document.body.removeChild(e),i?s():console.error("Fallback copy command was unsuccessful")}catch(e){console.error("Fallback copy command failed",e)}};return e.addEventListener("click",s),()=>{e.removeEventListener("click",s)}},[n,t,i]),t&&"--"!==t)?(0,s.jsx)("span",{ref:a,className:(0,y.cx)((0,y.Fj)({base:{display:"inline-flex",alignItems:"center",justifyContent:"center",w:"40px",h:"40px",borderRadius:"100px",flexShrink:0,cursor:"pointer",transition:"background-color 0.2s",bg:"fill-btn-normal",_hover:{bg:"fill-btn-hover"}},variants:{copied:{true:{bg:"text-success",_hover:{bg:"text-success"}}}}})({copied:n})),children:n?(0,s.jsx)(T.r,{code:"icon-tick",css:{fontSize:"20px",color:"static-black"}}):(0,s.jsx)(T.r,{code:"icon-copy",css:{fontSize:"20px"}})}):null}var O=i(55043),U=i(61629);let K=e=>{let{riskWarn:t,css:i}=e,{t:n}=(0,b.B)();return t?(0,s.jsx)(O.h,{icon:(0,s.jsx)(U.l,{src:"/static-lib/img/icon-multi/rzQrbzj7IrnLi58-.svg",css:{w:"16px",h:"16px",mr:"4px",mt:"1px",flexShrink:0}}),text:n("Public.Deposit.Address.Tips"),css:{root:y.AH.raw({color:"fn-brand-normal!",mb:"0!",borderRadius:"8px"},null==i?void 0:i.root)}}):null};var G=i(6230),Y=i(35388),Z=i(11261),Q=i(87240),X=i(76057),q=i(19914),J=i(88992);let ee=e=>{let{item:t,onClose:i,onConfirm:n}=e,{t:l}=(0,b.B)(),a=(0,J.mN)({defaultValues:{name:"-"===t.name?"":t.name}}),{handleSubmit:r,reset:o,watch:c,formState:{isSubmitting:d}}=a,p=c("name")||"";(0,L.useEffect)(()=>{o({name:"-"===t.name?"":t.name})},[t.name,o]);let x=async e=>{await n(e.name)};return(0,s.jsxs)("div",{className:(0,y.AH)({maxHeight:"90vh",display:"flex",flexDirection:"column",px:"16px",pt:"16px",pb:"calc(16px + env(safe-area-inset-bottom))"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",pb:"16px"}),children:[(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:700,fontSize:"18px",lineHeight:"21px",color:"text-primary"}),children:l("Public.Edit")}),(0,s.jsx)(X.K,{onClick:i,size:"small",children:(0,s.jsx)(T.r,{code:"icon-cross",className:(0,y.AH)({fontSize:"15px"})})})]}),(0,s.jsxs)(Z.l,{form:a,onSubmit:r(x),children:[(0,s.jsx)(Q.e,{name:"name",label:"Edit address name",rules:{required:l("Public.PleaseEnter")},css:{labelWrap:{mb:"4px"}},children:(0,s.jsx)(q.pd,{wrapClassName:(0,y.AH)({borderRadius:"6px"}),placeholder:l("Public.PleaseEnter"),autoComplete:"off",size:"large",maxLength:8,endAdornment:(0,s.jsxs)("span",{className:(0,y.AH)({fontSize:"12px",color:"text-secondary",lineHeight:"14px"}),children:[p.length,"/",8]})})}),(0,s.jsx)("div",{className:(0,y.AH)({mt:"24px"}),children:(0,s.jsx)($.$,{type:"submit",variant:"contained",fullWidth:!0,size:"large",loading:d,children:l("Public.Confirm")})})]})]})};var et=i(7167),ei=i(20079),es=i(45350),en=i(48230),el=i.n(en);let ea=e=>{let{coin:t,network:i,defaultAddress:n,addressList:l,onClose:a,onItemClick:r,onAddClick:o,onEdit:c}=e,{t:d}
1=(0,b.B)(),[p,x]=(0,L.useState)(!1);return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",height:"100%"}),children:[(0,s.jsxs)(et.B,{onBack:a,absoluteCenterTitle:!0,extra:(0,s.jsx)(el(),{href:(0,es.Yn)("DepositAddress",{search:{coin:null==t?void 0:t.coin_type,network:null==i?void 0:i.main_chain}}),children:(0,s.jsx)(U.l,{src:"/static-lib/img/icon-mono/8CbQ4VKOtGriUj7y.svg",css:{width:"18px",height:"18px",color:"text-primary"}})}),children:[(null==t?void 0:t.coin_type)??"--","-",(null==i?void 0:i.main_chain_show)??"--"]}),(0,s.jsx)("div",{className:(0,y.AH)({px:"16px",pt:"10px",pb:"16px",flex:1,overflowY:"auto",display:"flex",flexDirection:"column",gap:"12px"}),children:null==l?void 0:l.map(e=>{let t=(null==n?void 0:n.id)===e.id;return(0,s.jsxs)("div",{className:(0,y.Fj)({base:{position:"relative",p:"16px",borderRadius:"8px",cursor:"pointer",overflow:"hidden",border:"1px solid",flexShrink:0},variants:{selected:{true:{borderColor:"text-primary"},false:{borderColor:"line-short"}}}})({selected:t}),onClick:()=>null==r?void 0:r(e),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",justifyContent:"space-between",alignItems:"center"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"8px"}),children:[(0,s.jsx)("div",{className:(0,y.AH)({fontSize:"12px",fontWeight:500,color:"text-secondary",lineHeight:"100%"}),children:e.name&&"-"!==e.name?e.name:"--"}),(0,s.jsx)("div",{className:(0,y.AH)({fontSize:"14px",fontWeight:500,color:"text-primary",wordBreak:"break-all",lineHeight:"100%"}),children:e.address}),e.memo&&"-"!==e.memo&&(0,s.jsx)("div",{className:(0,y.AH)({fontSize:"12px",fontWeight:400,lineHeight:"16px",px:"4px",bg:"fill-input-normal",borderRadius:"4px",color:"text-secondary",display:"inline-block"}),children:e.memo})]}),(0,s.jsx)(T.r,{code:"icon-edit",className:(0,y.AH)({fontSize:"16px",color:"text-secondary"}),onClick:t=>{t.stopPropagation(),t.preventDefault(),null==c||c(e)}})]}),t&&(0,s.jsx)("div",{className:(0,y.AH)({position:"absolute",top:0,right:0,width:"28px",height:"28px",background:"text-primary",clipPath:"polygon(0 0, 100% 0, 100% 100%)",display:"flex",alignItems:"flex-start",justifyContent:"flex-end",pt:"3px",pr:"3px"}),children:(0,s.jsx)(T.r,{code:"icon-tick",className:(0,y.AH)({fontSize:"12px",color:"bg-primary"})})})]},e.id)})}),(0,s.jsx)("div",{className:(0,y.AH)({p:"16px",pb:"calc(16px + env(safe-area-inset-bottom))"}),children:(0,s.jsx)($.$,{fullWidth:!0,loading:p,onClick:async e=>{e.stopPropagation(),e.preventDefault();try{x(!0),await (null==o?void 0:o())}catch(e){(0,ei.Vf)(e)}finally{x(!1)}},children:d("Withdraw.Address.Add")})})]})};function er(){let{t:e}=(0,b.B)();return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",mt:"54px"}),children:[(0,s.jsx)(W.z,{className:(0,y.AH)({width:"120px"}),src:"/static-lib/img/illus/wallet/tX4EEUdVi3iI7cuP.png"}),(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:500,fontSize:"16px",lineHeight:"24px",letterSpacing:"0px",textAlign:"center",mt:"47px"}),children:e("Deposit.Suspend")}),(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:"0px",textAlign:"center",color:"text-tertiary",mt:"8px"}),children:e("Deposit.SuspendReason")})]})}var eo=i(67811),ec=i(73842);function ed(e){let{memo:t,onCancel:i}=e,{t:n}=(0,b.B)();return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",alignItems:"center",pt:"24px",fontWeight:400,fontSize:"14px",lineHeight:"21px"}),children:[(0,s.jsx)("div",{className:(0,y.AH)({p:"4px",bg:"fill-input-normal"}),children:(0,s.jsx)(P.v,{value:t,size:200,level:"H",className:(0,y.AH)({width:"150px",height:"150px",p:"12px"})})}),(0,s.jsx)("div",{className:(0,y.AH)({mt:"16px",color:"text-secondary"}),children:n("Withdraw.Address.Memo")}),(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:500}),children:t}),(0,s.jsx)("div",{className:(0,y.AH)({mt:"16px",width:"100%",borderTop:"1px solid",borderColor:"line-short",h:"48px",display:"flex",alignItems:"center",justifyContent:"center"}),children:(0,s.jsx)(eo.I,{variant:"text",color:"primary",className:(0,y.AH)({fontSize:"16px"}),onClick:i,children:n("Public.Confirm")})})]})}var ep=i(51341),ex=i(94148),eh=i(45394);let eu=e=>{let{options:t,coin:i,onChange:n,onClose:l}=e,{t:a}=(0,b.B)();return(0,s.jsxs)("div",{className:(0,y.AH)({maxHeight:"90vh",display:"flex",flexDirection:"column",pr:"6px",pl:"16
1px",py:"16px",pb:"calc(16px + env(safe-area-inset-bottom))"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",mr:"10px",pb:"16px"}),children:[(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:700,fontSize:"18px",lineHeight:"21px",color:"text-primary"}),children:a("Deposit.ChooseNetwork")}),(0,s.jsx)(X.K,{onClick:l,size:"small",children:(0,s.jsx)(T.r,{code:"icon-cross",className:(0,y.AH)({fontSize:"15px"})})})]}),(0,s.jsx)(eh.t,{}),(0,s.jsx)("div",{className:(0,y.AH)({overflowY:"auto",mt:"16px",pr:"10px",maxHeight:"550px"}),children:t.map(e=>{let t=!1===e.deposit_status;return(0,s.jsxs)("div",{className:(0,ex.B)({p:"16px",mt:"16px",cursor:"pointer",border:"1px solid token(colors.line-short)",borderRadius:"8px",padding:"16px",gap:"16px",_first:{mt:0},_active:{bg:"fill-input-normal"}}),onClick:()=>{n(e)},children:[(0,s.jsx)(ep.wp,{iconName:e.main_chain_alias,css:{root:(0,y.Fj)({base:{width:"32px",height:"32px"},variants:{disabled:{true:{opacity:.6}}}}).raw({disabled:t})}}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",gap:"8px",width:"100%"}),children:[(0,s.jsx)("div",{className:(0,y.Fj)({base:{fontWeight:500,fontSize:"16px",lineHeight:"19px",color:"text-primary"},variants:{disabled:{true:{color:"text-disabled"}}}})({disabled:t}),children:e.main_chain_show}),t&&(0,s.jsx)("div",{className:(0,y.AH)({display:"flex",justifyContent:"center",alignItems:"center",padding:"2px 4px",borderRadius:"2px",bgColor:"fill-btn-click",color:"text-secondary",fontSize:"12px",lineHeight:"16px"}),children:a("Public.Stop")})]}),(0,s.jsxs)("div",{className:(0,y.Fj)({base:{fontWeight:400,fontSize:"12px",lineHeight:"14px",color:"text-tertiary",width:"100%",mt:"4px",display:"flex",flexDirection:"column",gap:"4px"},variants:{disabled:{true:{color:"text-disabled"}}}})({disabled:t}),children:[(0,s.jsx)("div",{children:a("Deposit.Unlocked.Value",{confirmation:e.token_confirmation})}),(0,s.jsxs)("span",{translate:"no",className:"notranslate",children:[a("Deposit.MinimumAmount"),e.least_deposit_limit," ",i.coin_type]})]})]})]},e.main_chain)})})]})};var em=i(10003),ef=i(46531),eg=i(12799),ev=i(33778),ej=i(66703),ey=i(71506),eb=i(998);let eA={radius:10,outerRadius:12,borderColor:"var(--colors-line-short)",bgColor:"var(--colors-bg-secondary)",layout:"vertical"},ew=(0,L.forwardRef)((e,t)=>{let{children:i,layout:n=eA.layout,radius:l=eA.radius,outerRadius:a=eA.outerRadius,borderColor:r=eA.borderColor,bgColor:o=eA.bgColor,css:c,style:d}=e,p=L.Children.toArray(i).filter(e=>L.isValidElement(e));return(0,s.jsx)("div",{ref:t,style:{...d,"--ticket-card-border-color":r,"--ticket-card-radius":l+"px"},className:(0,eb.A)((0,eb.F)({base:{display:"flex",alignItems:"stretch"},variants:{layout:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}}}}).raw({layout:n}),c),children:p.map((e,t)=>(0,L.cloneElement)(e,{isFirst:0===t,isLast:t===p.length-1,radius:l,outerRadius:a,borderColor:r,bgColor:o,layout:n}))})});ew.Item=e=>{let{children:t,isFirst:i,isLast:n,radius:l=eA.radius,outerRadius:a=eA.outerRadius,borderColor:r=eA.borderColor,bgColor:o=eA.bgColor,layout:c=eA.layout,css:d}=e,p=(0,L.useRef)(null),[x,h]=(0,L.useState)({w:0,h:0});(0,ey.N)(()=>{if(p.current){let e=()=>{p.current&&h({w:Math.round(p.current.offsetWidth),h:Math.round(p.current.offsetHeight)})},t=new ResizeObserver(e);return t.observe(p.current),e(),()=>t.disconnect()}},[]);let{w:u,h:m}=x,f="vertical"===c,g=f&&!i,v=f&&!n,j=!f&&!i,y=!f&&!n,b=g||j,A=g||y,w=v||y,H=v||j;return(0,s.jsxs)("div",{ref:p,className:(0,eb.A)((0,eb.F)({base:{position:"relative",width:"100%",display:"flex",flexDirection:"column"},variants:{layout:{vertical:{flex:"none"},horizontal:{flex:1}}}}).raw({layout:c}),null==d?void 0:d.root),children:[(0,s.jsxs)("svg",{width:u,height:m,className:(0,eb.A)({position:"absolute",top:0,left:0,zIndex:0,pointerEvents:"none"}),children:[(0,s.jsx)("path",{d:(()=>{if(0===u||0===m)return"";let e=[];return e.push(`M ${b?l:a} 0`),e.push(`H ${A?u-l:u-a}`),A?e.push(`A ${l} ${l} 0 0 0 ${u} ${l}`):e.push(`A ${a} ${a} 0 0 1 ${u} ${a}`),e.push(`V ${w?m-l:m-a}`),w?e.push(`A ${l} ${l} 0 0 0 ${u-l} ${m}`):e.push(`A ${a} ${a} 0 0 1 ${u-a} ${m}`),e.push(`H ${H?l:a}`),H?e.push(`A ${l} ${l} 0 0 0 0 ${m-l}`):e.push(`A ${a} ${a} 0 0 1 0 ${m-a}`),e.push(`V ${b?l:a}`),b?e.push(`A ${l} ${l} 0 0 0 ${l} 0`):e.push(`A ${a} ${a} 0 0 1 ${a} 0`),e.join(" ")+" Z"})(),fill:o,stroke:"none"}),(0,s.jsx)("path",{d:(()=>
1{if(0===u||0===m)return"";let e=[];return e.push(`M ${b?l:a} 0`),g?e.push(`M ${A?u-l:u-a} 0`):e.push(`H ${A?u-l:u-a}`),A?e.push(`A ${l} ${l} 0 0 0 ${u} ${l}`):e.push(`A ${a} ${a} 0 0 1 ${u} ${a}`),y?e.push(`M ${u} ${w?m-l:m-a}`):e.push(`V ${w?m-l:m-a}`),w?e.push(`A ${l} ${l} 0 0 0 ${u-l} ${m}`):e.push(`A ${a} ${a} 0 0 1 ${u-a} ${m}`),v?e.push(`M ${H?l:a} ${m}`):e.push(`H ${H?l:a}`),H?e.push(`A ${l} ${l} 0 0 0 0 ${m-l}`):e.push(`A ${a} ${a} 0 0 1 0 ${m-a}`),j?e.push(`M 0 ${b?l:a}`):e.push(`V ${b?l:a}`),b?e.push(`A ${l} ${l} 0 0 0 ${l} 0`):e.push(`A ${a} ${a} 0 0 1 ${a} 0`),e.join(" ")})(),fill:"none",stroke:r,strokeWidth:"1"})]}),!i&&(0,s.jsx)("div",{className:(0,eb.F)({base:{position:"absolute",zIndex:2},variants:{layout:{vertical:{top:0,left:"calc(var(--ticket-card-radius) + 4px)",right:"calc(var(--ticket-card-radius) + 4px)",height:"0px",borderBottom:"1px dashed var(--ticket-card-border-color)"},horizontal:{left:0,top:"calc(var(--ticket-card-radius) + 4px)",bottom:"calc(var(--ticket-card-radius) + 4px)",width:"0px",borderRight:"1px dashed var(--ticket-card-border-color)"}}}})({layout:c})}),(0,s.jsx)("div",{className:(0,eb.A)({position:"relative",zIndex:1,flex:1},null==d?void 0:d.content),children:t})]})};let eH=e=>{let{label:t,value:i}=e;return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"20px"}),children:[(0,s.jsx)("span",{className:(0,y.AH)({fontWeight:400,fontSize:"12px",lineHeight:"14px",color:"text-secondary",whiteSpace:"nowrap"}),children:t}),(0,s.jsx)("span",{className:(0,y.AH)({fontWeight:500,fontSize:"12px",lineHeight:"14px",color:"text-primary",textAlign:"right",wordBreak:"break-all",maxWidth:"80%"}),children:i})]})};function eN(e){let{coin:t,network:i,address:n,memo:l,onCancel:a}=e,{t:r}
1=(0,b.B)(),o=(0,L.useRef)(null),[c,d]=(0,L.useState)(!1),p=(0,L.useCallback)(async()=>{o.current&&(d(!0),await (0,ev.Z)(o.current),d(!1))},[]),{palette:{mode:x}}=(0,ej.A)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:(0,y.AH)({maxHeight:"90vh",p:"16px"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",mr:"10px",pb:"24px"}),children:[(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:700,fontSize:"18px",lineHeight:"21px",color:"text-primary"}),children:r("Rewards.ShareBtn")}),(0,s.jsx)(X.K,{onClick:a,size:"small",children:(0,s.jsx)(T.r,{code:"icon-cross",className:(0,y.AH)({fontSize:"15px"})})})]}),(0,s.jsxs)(ew,{ref:o,css:{width:"100%",maxWidth:"337px",mx:"auto"},children:[(0,s.jsxs)(ew.Item,{children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",alignItems:"center",pt:"20px",px:"20px",gap:"16px"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({fontWeight:600,fontSize:"18px",lineHeight:"26px",color:"text-primary",textAlign:"center"}),children:[r("Public.Deposit")," ",t.coin_type]}),(0,s.jsx)(P.v,{value:n||"",size:200,icon:t.icon_svg,iconSize:50,classes:{root:(0,y.AH)({borderRadius:"20px!"})}})]}),(0,s.jsxs)("div",{className:(0,y.AH)({py:"16px",px:"20px",display:"flex",flexDirection:"column",gap:"16px"}),children:[(0,s.jsx)(eH,{label:r("Withdraw.Address.Type"),value:i.main_chain_show||i.main_chain}),(0,s.jsx)(eH,{label:r("Withdraw.Address.Label"),value:n}),l&&"-"!==l&&(0,s.jsx)(eH,{label:r("Public.Memo"),value:l}),(0,s.jsx)(eH,{label:r("Public.CommonDate"),value:(0,s.jsx)(ef.H0,{value:Date.now(),onlyDate:!0})})]})]}),(0,s.jsx)(ew.Item,{css:{content:{display:"flex",justifyContent:"center",pt:"16px",pb:"20px"}},children:(0,s.jsx)(eg.gu,{theme:x,css:{height:"20px"}})})]})]}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"row",justifyContent:"space-between",gap:"16px",borderTop:"1px solid var(--colors-line-short)",mt:"8px",p:"16px",pb:"calc(16px + env(safe-area-inset-bottom))"}),children:[(0,s.jsx)($.$,{color:"secondary",fullWidth:!0,onClick:a,children:r("Public.Cancel")}),(0,s.jsx)($.$,{variant:"contained",fullWidth:!0,loading:c,onClick:p,children:r("Public.Download")})]})]})}let eC=e=>{let{label:t,onAction:i,value:n="",valueRender:l,extra:a}=e;return(0,s.jsxs)("div",{className:(0,y.AH)({width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",borderBottom:"1px solid token(colors.line-short)",gap:"8px",pb:"24px",mt:"20px"}),children:[(0,s.jsxs)("div",{onClick:i,className:(0,y.AH)({display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"}),children:[(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:500,fontSize:"14px",color:"text-secondary"}),children:t}),i&&(0,s.jsx)(T.r,{code:"icon-arrow-right",className:(0,y.AH)({fontSize:"12px",color:"text-secondary"})})]}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",width:"100%"}),children:[(0,s.jsx)("div",{onClick:i,className:(0,y.AH)({fontWeight:700,fontSize:"16px",lineHeight:"24px",wordBreak:"break-all",flex:1,cursor:"pointer"}),children:l?l(n):n||"--"}),(0,s.jsx)(V,{text:n})]}),a]})},eS=e=>{let{onAction:t,label:i,value:n,css:l}=e;return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",justifyContent:"space-between",gap:"20px",alignItems:"center",cursor:"pointer"}),onClick:t,children:[(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:500,fontSize:"14px",color:"text-secondary",flex:1}),children:i}),(0,s.jsx)("div",{className:(0,y.AH)({fontWeight:500,fontSize:"12px",color:"text-primary",textAlign:"right",wordBreak:"break-all"},null==l?void 0:l.value),children:n})]})},eD=e=>{var t;let{searchParams:i}=e,{t:n}=(0,b.B)(),[l,a]=(0,d.ok)(),{isKoreaUser:r}=(0,h.Py)(),{name:o}=(0,H.B6)(),c=(0,N.pS)(),{getDepositAddress:p,defaultAddress:x,loading:m,addressList:f,riskWarn:g,setDefaultAddress:v,addDepositAddress:j,updateDepositRemark:w}=(0,k.e)({isAddTip:!1}
1),[E,M]=(0,L.useState)(null),[V,O]=(0,L.useState)(null),[U,Z]=(0,L.useState)(!1),[Q,X]=(0,L.useState)(),{userDefaultAssetType:q,coinCurrentAssetType:J}=Q??{},et=J||q,{depositBonus:ei}=(0,_.A)(),{isSuspended:es}=u(V);(0,L.useEffect)(()=>{if(c.length&&!E){let e=i.get("coin"),t=(e?c.find(t=>t.coin_type.toUpperCase()===e.toUpperCase()):c.find(e=>"USDT"===e.coin_type))||c[0];t&&(M(t),O(t.token_config_list.find(e=>e.deposit_status)||t.token_config_list[0]||null))}},[c,E,i]),(0,L.useEffect)(()=>{E&&B.F.getCoinDepositAssetConfig({coinType:E.coin_type}).then(e=>{e.result&&X(e.result)})},[E]),(0,L.useEffect)(()=>{E&&V&&V.deposit_status&&p({coin_type:E.coin_type,main_chain:V.main_chain})},[E,V,p]);let{open:en,destroy:el}=(0,S.Bm)("showTokenDrawer",e=>z.D.create({id:e,anchor:"right",classes:{paper:(0,y.AH)({width:"100%",boxShadow:"none",borderRadius:0})},children:(0,s.jsx)(C.E,{onChange:e=>{el(()=>{M(e),O(e.token_config_list.find(e=>e.deposit_status)||e.token_config_list[0]||null),l.set("coin",e.coin_type),l.delete("network"),a(l,{replace:!0,shallow:!0})})},onClose:()=>el(),getDisabledSelect:e=>!e.deposit_status})}),[l]),{open:eo,destroy:ep}=(0,S.Bm)("showNetworkDrawer",e=>{if(E)return z.D.create({id:e,anchor:"bottom",classes:{paper:(0,y.AH)({borderTopLeftRadius:"16px",borderTopRightRadius:"16px"})},onClose:()=>{ep()},children:(0,s.jsx)(eu,{options:E.token_config_list,coin:E,onChange:e=>{ep(()=>{O(e),e&&(l.set("network",e.main_chain),a(l,{replace:!0,shallow:!0}))})},onClose:()=>ep()})})},[E,l,a]),{open:ex,destroy:eh}=(0,S.Bm)("showContractAddressDrawer",e=>z.D.create({id:e,anchor:"bottom",classes:{paper:(0,y.AH)({borderTopLeftRadius:"16px",borderTopRightRadius:"16px"})},onClose:()=>{eh()},children:(0,s.jsx)(Y.o,{contract:V,onClose:()=>eh()})}),[V]),{open:ef,destroy:eg}=(0,S.Bm)("showDepositAddressMenage",e=>z.D.create({id:e,anchor:"right",classes:{paper:(0,y.AH)({width:"100%",boxShadow:"none",borderRadius:0})},onClose:()=>{eg()},children:(0,s.jsx)(ea,{coin:E,network:V,defaultAddress:x,addressList:f,onClose:()=>eg(),onItemClick:e=>{let{id:t}=e;E&&V&&(v({address_id:t,coin_type:null==E?void 0:E.coin_type,main_chain:null==V?void 0:V.main_chain}),eg())},onEdit:e=>{let t=z.D.create({anchor:"bottom",classes:{paper:(0,y.AH)({borderTopLeftRadius:"16px",borderTopRightRadius:"16px"})},onClose:()=>{t.destroy()},children:(0,s.jsx)(ee,{item:e,onClose:()=>t.destroy(),onConfirm:async i=>{E&&V&&await w({address_id:e.id,remark:i,coin_type:null==E?void 0:E.coin_type,main_chain:null==V?void 0:V.main_chain})&&t.destroy()}})})},onAddClick:async()=>{if(E&&V)return j({coin_type:null==E?void 0:E.coin_type,main_chain:null==V?void 0:V.main_chain})}})}),[x,f,E,V]),{open:ev,destroy:ej}=(0,S.Bm)("showAutoChannelDrawer",e=>{if(!(null==Q?void 0:Q.supportDepositAssetList))return;let t=Q.supportDepositAssetList.map(e=>{var t;return{label:n((null==(t=(0,D.UX)(e).mapDataDirect)?void 0:t.name)??e),value:e}});return z.D.create({id:e,anchor:"bottom",classes:{paper:(0,y.AH)({borderTopLeftRadius:"16px",borderTopRightRadius:"16px"})},onClose:()=>{ej()},children:(0,s.jsx)(em.X,{title:n("Deposit.AutoTransfer"),options:t,value:et,onChange:async e=>{if(E){ej();try{await B.F.updateDepositAssetType({assetType:e}),I.R.success(n("Public.Successful")),await B.F.getCoinDepositAssetConfig({coinType:E.coin_type}).then(e=>{e.result&&X(e.result)})}catch{I.R.error(n("Public.Failed"))}}},onClose:()=>ej()})})},[Q,et,E]),{open:ey}={open:(0,L.useCallback)(e=>{let t=z.D.create({anchor:"bottom",classes:{paper:(0,y.AH)({borderTopLeftRadius:"16px",borderTopRightRadius:"16px"})},children:(0,s.jsx)(eN,{...e,onCancel:()=>null==t?void 0:t.destroy()})})},[])},{open:eb}=function(){let e=(0,L.useRef)();return{open:(0,L.useCallback)(t=>{e.current=ec.Q.create({title:!1,isClose:!1,width:"300px",disableSpacing:!0,children:(0,s.jsx)(ed,{memo:t,onCancel:()=>{var t;return null==(t=e.current)?void 0:t.destroy()}}),footer:null})},[])}}(),eA=(null==x?void 0:x.address)||"",ew=null==x?void 0:x.memo;return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",height:"100%",bg:"bg-primary"}
1),children:[(0,s.jsx)(A.G,{coin_type:null==E?void 0:E.coin_type,main_chain:null==V?void 0:V.main_chain}),(0,s.jsxs)("div",{className:(0,y.AH)({flex:1,display:"flex",flexDirection:"column",overflowY:"auto",px:"16px",pt:"24px",pb:"calc(120px + env(safe-area-inset-bottom))"}),children:[(null==ei?void 0:ei.enable)&&(0,s.jsx)(G.m,{css:{root:{mb:"12px"},icon:{width:"24px",height:"24px"}}}),(0,s.jsx)("div",{className:(0,y.AH)({fontSize:"14px",fontWeight:500,marginBottom:"8px"}),children:n("Withdraw.Token")}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",bgColor:"base-primary",borderRadius:"6px",cursor:"pointer"}),onClick:en,children:[(0,s.jsxs)(F.B,{direction:"row",spacing:8,alignItems:"center",children:[(0,s.jsx)(W.z,{className:(0,y.AH)({width:"20px",height:"20px"}),src:null==E?void 0:E.icon_svg,fallbackSrc:"/static-lib/img/icon-multi/Qhn6HRw7-163zjXS.svg",alt:null==E?void 0:E.full_name}),(0,s.jsx)("span",{className:(0,y.AH)({fontWeight:500,fontSize:"14px"}),children:(null==E?void 0:E.coin_type)||"--"}),(0,s.jsx)("span",{className:(0,y.AH)({fontWeight:400,fontSize:"12px",lineHeight:"18px",color:"text-tertiary"}),children:(null==E?void 0:E.full_name)||"--"})]}),(0,s.jsx)(T.r,{code:"icon-caret-down",className:(0,y.AH)({fontSize:"8px"})})]}),(m||eA&&(null==E?void 0:E.deposit_status))&&!es?(0,s.jsx)("div",{className:(0,y.AH)({display:"flex",justifyContent:"center",mt:"20px"}),children:(0,s.jsx)(P.v,{value:eA,size:250,icon:(null==E?void 0:E.icon_svg)??"/static-lib/img/icon-multi/Qhn6HRw7-163zjXS.svg",iconSize:50,className:(0,y.AH)({width:"200px",height:"200px",p:"14px"})})}):null,(0,s.jsx)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",justifyContent:"center",mt:"20px"}),children:(0,s.jsxs)(F.B,{direction:"row",spacing:8,alignItems:"center",className:(0,y.AH)({cursor:"pointer"}),onClick:eo,children:[(0,s.jsx)("span",{className:(0,y.AH)({fontWeight:700,fontSize:"18px"}),children:(null==V?void 0:V.main_chain_show)||"--"}),(0,s.jsx)(T.r,{code:"icon-caret-down",className:(0,y.AH)({fontSize:"10px"})})]})}),(0,s.jsx)(K,{riskWarn:g,css:{root:{marginTop:"20px",fontSize:"12px"}}}),!es&&(0,s.jsx)(eC,{label:n("Withdraw.Address.Label"),onAction:()=>{ef()},value:eA,valueRender:e=>e?e.length<=12?e:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:(0,y.AH)({color:"fn-brand-normal"}),children:e.slice(0,6)}),e.slice(6,-6),(0,s.jsx)("span",{className:(0,y.AH)({color:"fn-brand-normal"}),children:e.slice(-6)})]}):"--",extra:(null==x?void 0:x.name)&&"-"!==x.name&&(0,s.jsx)("div",{className:(0,y.AH)({bgColor:"fill-btn-normal",borderRadius:"2px",p:"2px 8px",minHeight:"18px",fontSize:"10px",lineHeight:"14px",color:"text-primary"}),children:x.name})}),ew&&"-"!==ew&&!es&&(0,s.jsx)(eC,{label:n("Withdraw.Address.Memo"),value:ew,onAction:e=>{e.stopPropagation(),eb(ew)}}),!es&&"1"===r&&(0,s.jsx)(eC,{label:n("Wallet.RecipientNameEn"),value:o??"--"}),!es&&(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"16px",mt:"20px"}),children:[V&&(null==V?void 0:V.token_contract.length)>8&&(0,s.jsx)(eS,{onAction:ex,label:n("Wallet.ContractAddress"),value:n("Wallet.EndWith.ContractAddress",{contract:(null==V?void 0:V.token_contract.slice(-6))??"--"}),css:{value:{textDecoration:"underline",textDecorationStyle:"dashed"}}}),(0,s.jsx)(eS,{onAction:ev,label:n("Deposit.AutoTransfer"),value:(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",gap:"8px"}),children:[(0,s.jsx)("span",{children:et?n((null==(t=(0,D.UX)(et).mapDataDirect)?void 0:t.name)??et):"--"}),(0,s.jsx)(T.r,{code:"icon-arrow-right",className:(0,y.AH)({fontSize:"12px"})})]})}),(0,s.jsx)(eS,{label:n("Deposit.MinimumAmount"),value:`${(null==V?void 0:V.least_deposit_limit)??"--"} ${null==E?void 0:E.coin_type}`}),(0,s.jsxs)("div",{className:(0,y.AH)({fontSize:"12px",lineHeight:"18px",color:"text-secondary",fontWeight:400}),children:[(0,s.jsxs)(R.S,{open:U,children:[(0,s.jsx)(eS,{label:n("Deposit.Unlocked"),value:n("Deposit.Unlocked.Value",{confirmation:(null==V?void 0:V.token_confirmation)??"--"})}),(0,s.jsxs)("div",{className:(0,y.AH)({mt:"16px",pb:"16px","& > ol":{listStyleType:"decimal",paddingLeft:"16px"}}),children:[(0,s.jsx)("div",{children:n("Public.Tips")}),(0,s.jsxs)("ol",{className:(0,y.AH)({"& > *":{mt:"8px"}}),children:[(0,s.jsx)("li",{children:n("Deposit.Notice.2",{coin:null==E?void 0:E.
1coin_type,min:null==V?void 0:V.least_deposit_limit})}),(0,s.jsx)("li",{children:n("Deposit.Notice.1",{coin:null==E?void 0:E.coin_type,coinFullName:null==V?void 0:V.main_chain_show})}),(0,s.jsx)("li",{children:n("Deposit.Notice.4")})]})]})]}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",pb:"24px",cursor:"pointer"}),onClick:()=>Z(!U),children:[(0,s.jsx)("span",{children:n("Public.MoreInformation")}),(0,s.jsx)(T.r,{code:"icon-arrow-down","data-state":U?"open":"close",className:(0,y.AH)({fontSize:"12px",color:"text-secondary",transition:"transform 200ms",_open:{transform:"rotate(180deg)"}})})]})]})]}),es&&(0,s.jsx)(er,{})]}),!es&&(0,s.jsx)("div",{className:(0,y.AH)({position:"fixed",bottom:0,left:0,right:0,zIndex:10,padding:"16px",paddingBottom:"calc(16px + env(safe-area-inset-bottom))",background:"bg-primary",borderTop:"1px solid token(colors.line-short)"}),children:(0,s.jsx)($.$,{fullWidth:!0,onClick:()=>{E&&V&&ey({coin:E,network:V,address:eA,memo:ew})},children:n("Rewards.ShareBtn")})})]})},e_=()=>{let{t:e}=(0,b.B)();return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",height:"100%",bg:"bg-secondary"}),children:[(0,s.jsx)(A.G,{hideExtra:!0}),(0,s.jsxs)("div",{className:(0,y.AH)({flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"40px 24px 0",textAlign:"center"}),children:[(0,s.jsx)(m.c,{type:"error",cs:{img:(0,y.AH)({width:"80px",height:"80px"})}}),(0,s.jsx)("h3",{className:(0,y.AH)({fontWeight:500,fontSize:"18px",lineHeight:"100%",letterSpacing:"0px",textAlign:"center"}),children:e("Forbidden.KycRequired")}),(0,s.jsx)("p",{className:(0,y.AH)({fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:"0px",textAlign:"center",marginTop:"16px",color:"text-secondary"}),children:e("Forbidden.Message02")}),(0,s.jsx)(j,{className:(0,y.AH)({width:"100%",marginTop:"24px",display:"flex",flexDirection:"column",alignItems:"start"}),children:(0,s.jsxs)("ol",{className:(0,y.AH)({display:"flex",flexDirection:"column",alignItems:"start",gap:"8px",listStyleType:"disc"}),children:[(0,s.jsx)("li",{className:(0,y.AH)({fontSize:"12px"}),children:e("Kyc.Qualification02","Identity Document")}),(0,s.jsx)("li",{className:(0,y.AH)({fontSize:"12px"}),children:e("Kyc.Qualification022","Face Recognition")})]})})]}),(0,s.jsx)("div",{className:(0,y.AH)({padding:"16px 24px",paddingBottom:"calc(16px + env(safe-area-inset-bottom))"}),children:(0,s.jsx)($.$,{fullWidth:!0,size:"large",href:(0,es.Yn)("UserCenterKyc"),children:e("Forbidden.GoKYC","Complete KYC Now")})})]})},ek=e=>{let{searchParams:t}=e,{isReady:i,isAccountForbidden:n,isKYCPassed:l}=u();return i?n?(0,s.jsx)(w,{}):l?(0,s.jsx)(eD,{searchParams:t}):(0,s.jsx)(e_,{}):null};var ez=i(45837),eW=i(47887),eI=i(35195),e$=i(51495),eR=i(28396),eT=i(33116),eP=i(64163),eF=i(85247),eB=i(96982),eL=i(18839),eE=i(80135),eM=i(40490),eV=i(539),eO=i(87836),eU=i(87908),eK=i(97729),eG=i(8220);let eY=(0,y.AH)({fontSize:"14px",fontWeight:400,lineHeight:"20px",color:"text-primary",mb:"4px"}),eZ=(0,y.AH)({display:"flex",flexDirection:"column"});function eQ(e){let{isInner:t,showCoinType:i,initialValues:n,onClose:l,onConfirm:a}=e,{t:r}=(0,b.B)(["ErrorCode"]),[o,c]=(0,L.useState)(t),[d,p]=(0,L.useState)(n.coin_type??null),[x,h]=(0,L.useState)(n.biz_status??null),[u,m]=(0,L.useState)(n.asset_type??null),[f,g]=(0,L.useState)(()=>[n.start_time?new Date(n.start_time).toISOString():"",n.end_time?new Date(n.end_time).toISOString():""]),v=o?"inner":"chain",[[j]]=(0,eW.F)([B.F.getStatusOfChain,{order_type:"deposit",tag:v}],{deps:["deposit",v]}),A=(0,L.useMemo)(()=>(null==j?void 0:j.bitStatusList)??[],[j]),w=(0,N.pS)();return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",height:"100%"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",justifyContent:"space-between",alignItems:"center",px:"24px",py:"32px",flexShrink:0}),children:[(0,s.jsx)("h5",{className:(0,y.AH)({fontSize:"24px",fontWeight:700,lineHeight:"32px",color:"text-primary"}),children:"Filter"}),(0,s.jsx)(T.r,{code:"icon-cross",className:(0,y.AH)({fontSize:"16px",color:"text-primary",cursor:"pointer"}),onClick:l})]}),(0,s.jsxs)("div",{className:(0,y.AH)({flex:1,overflow:"auto",px:"24px",display:"flex",flexDirection:"column",gap:"24px"}
1),children:[(0,s.jsxs)("div",{className:eZ,children:[(0,s.jsx)("span",{className:eY,children:r("Public.Type")}),(0,s.jsxs)(eT.I,{fullWidth:!0,variant:"filled",prefixIcon:!1,value:o,onChange:e=>{null!==e&&(c(e),h(null))},children:[(0,s.jsx)(eT.x,{value:0,children:r("Deposit.Normal")}),(0,s.jsx)(eT.x,{value:1,children:r("Deposit.InnerTransfer")})]})]}),i&&(0,s.jsxs)("div",{className:eZ,children:[(0,s.jsx)("span",{className:eY,children:r("Public.Coin")}),(0,s.jsx)(eT.I,{fullWidth:!0,variant:"filled",allowClear:!0,filterOption:!0,prefixIcon:!1,placeholder:r("Public.All"),value:d??"",onChange:e=>p(e),children:w.map(e=>(0,s.jsx)(eT.x,{value:e.coin_type,children:e.coin_type},e.coin_type))})]}),(0,s.jsxs)("div",{className:eZ,children:[(0,s.jsx)("span",{className:eY,children:r("Public.Status")}),(0,s.jsx)(eT.I,{fullWidth:!0,variant:"filled",allowClear:!0,filterOption:!0,prefixIcon:!1,placeholder:r("Public.All"),value:x??"",onChange:e=>h(e),children:A.map(e=>(0,s.jsx)(eT.x,{value:e,children:r(`ErrorCode.${e}`)},e))})]}),(0,s.jsxs)("div",{className:eZ,children:[(0,s.jsx)("span",{className:eY,children:r("Public.Wallet")}),(0,s.jsx)(eT.I,{fullWidth:!0,variant:"filled",allowClear:!0,filterOption:!0,prefixIcon:!1,placeholder:r("Public.All"),value:u??"",onChange:e=>m(e),children:D.pO.map(e=>(0,s.jsx)(eT.x,{value:e.key,children:r(e.name)},e.key))})]}),(0,s.jsxs)("div",{className:eZ,children:[(0,s.jsx)("span",{className:eY,children:r("Public.Time")}),(0,s.jsx)(eU.g.Range,{variant:"filled",style:{width:"100%"},disabledDate:e=>e&&e>(0,eK.D)(new Date)||e<(0,eG.e)(new Date,90),value:f.map(e=>e?new Date(e):null),onChange:(e,t)=>
1{g(t)}})]})]}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",gap:"12px",px:"24px",pt:"16px",pb:"calc(32px + env(safe-area-inset-bottom))",flexShrink:0}),children:[(0,s.jsx)($.$,{color:"secondary",size:"large",fullWidth:!0,className:(0,y.AH)({borderRadius:"999px"}),onClick:()=>{c(0),p(null),h(null),m(null),g(["",""])},children:r("Public.Reset")}),(0,s.jsx)($.$,{color:"primary",size:"large",fullWidth:!0,className:(0,y.AH)({borderRadius:"999px"}),onClick:()=>{let[e,t]=f;a({isInner:o,formData:{coin_type:d||void 0,biz_status:x||void 0,asset_type:u||void 0,start_time:e?new Date(e).valueOf():void 0,end_time:t?new Date(t).valueOf():void 0}})},children:r("Public.Confirm")})]})]})}var eX=i(83276),eq=i(134);function eJ(){let{t:e}=(0,b.B)(["ErrorCode"]),[t,i]=(0,L.useState)(1),[n,l]=(0,L.useState)(0),[a,r]=(0,L.useState)(!1),o=(0,J.FH)({name:"coin",exact:!0}),{current:c,setCurrent:d,formData:p,setFormData:x}=(0,eO.y)(null==o?void 0:o.coin_type);(0,L.useEffect)(()=>{if(!a)return;let e=window.matchMedia(`(min-width: ${eM.Qt.md}px)`);if(e.matches)return void r(!1);let t=e=>{e.matches&&r(!1)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[a]);let[h,u]=(0,L.useState)(0),m=(0,L.useCallback)(e=>{let{isInner:t,formData:s}=e;l(t),x(s),i(1),r(!1),u(e=>e+1)},[x]),f=(0,L.useMemo)(()=>({coin_type:p.coin_type,biz_status:p.biz_status,asset_type:p.asset_type,time:p.start_time||p.end_time?[p.start_time?new Date(p.start_time).toISOString():"",p.end_time?new Date(p.end_time).toISOString():""]:[]}),[p]),[[g],v,j]=(0,eW.F)([B.F.getDepositRecordByPager,{current_page:t,page_size:10,params:{is_inner:!!n,...p}}],{deps:[p,n,t],first:!1});return(0,L.useEffect)(()=>{"0"===c?p.coin_type&&j():j()},[j,p,n,t,c]),(0,s.jsxs)("div",{className:(0,y.AH)({mt:"60px"}),children:[(0,s.jsxs)(eL.tU,{variant:"line",size:"lg",classes:{tabList:(0,y.AH)({gap:{base:"16px",md:"24px"}}),tab:(0,y.AH)({fontSize:{base:"14px",md:"18px"}})},value:c,onChange:(e,t)=>
1{d(t),i(1)},children:[(0,s.jsx)(eL.oz,{value:"0",label:e("Deposit.PastToken",{coinType:o?"string"==typeof o?o:o.coin_type:""})}),(0,s.jsx)(eL.oz,{value:"1",label:e("Deposit.History")})]}),(0,s.jsx)("div",{className:(0,y.AH)({py:"20px",display:{base:"none",md:"flex"},alignItems:"center"}),children:(0,s.jsx)(eX.B,{initialValues:f,coinType:"0"!==c,type:"deposit",tag:n?"inner":"chain",onSubmit:e=>{if(e){let{time:t,...i}=e,[s,n]=t||[];x({start_time:s&&new Date(s).valueOf(),end_time:n&&new Date(n).valueOf(),...i})}else x(e);i(1)},children:(0,s.jsx)(eB.x.Col,{children:(0,s.jsx)(eR.R9,{label:e("Public.Type"),noStyle:!0,defaultValue:!1,children:(0,s.jsxs)(eT.I,{variant:"filled",prefixIcon:!1,size:40,value:n,onChange:e=>{null!==e&&l(e)},children:[(0,s.jsx)(eT.x,{value:0,children:e("Deposit.Normal")}),(0,s.jsx)(eT.x,{value:1,children:e("Deposit.InnerTransfer")})]})})})},h)}),(0,s.jsx)("div",{className:(0,y.AH)({display:{base:"flex",md:"none"},justifyContent:"flex-start"}),children:(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",gap:"4px",color:"text-primary",cursor:"pointer",py:"20px",_hover:{color:"fn-brand-normal"}}),onClick:()=>r(!0),children:[(0,s.jsx)("span",{className:(0,y.AH)({fontSize:"14px",lineHeight:"20px"}),children:"Filter"}),(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,s.jsx)("path",{d:"M14 2.6665V3.99984H13.3333L10 8.99984L10 14.6665L6 14.6665L6 8.99984L2.66667 3.99984H2L2 2.6665L14 2.6665ZM4.26913 3.99984L7.33333 8.5961L7.33333 13.3332L8.66667 13.3332L8.66667 8.5961L11.7309 3.99984L4.26913 3.99984Z",fill:"currentColor"})})]})}),(0,s.jsx)(eP.y,{borderGap:"0",bordered:!0,size:"small",className:(0,y.AH)({"& td":{fontSize:"14px"},"& td,& th":{bgColor:"bg-primary"}}),onRow:()=>({style:{height:"52px"}}),data:(null==g?void 0:g.data)??[],loading:v,scroll:{x:"max-content"},pagination:{currentPage:t,pageSize:10,onChange:i,count:(null==g?void 0:g.count)??0,showArrow:!0},rowKey:"id",columns:[{title:e("Public.Date"),dataIndex:"create_time",width:170,fixed:!0,render:e=>(0,s.jsx)(ef.H0,{value:e})},{title:e("Public.Coin"),dataIndex:"coin_type",width:120,fixed:!0,render:(e,t)=>`${t.coin_type} (${t.full_name})`},{title:e("Public.Amount"),dataIndex:"amount",render:e=>(0,eI.ZV)(e,8)},...n?[{title:"UID",width:120,dataIndex:"inner_from_uid"}]:[{title:e("Withdraw.Address.Label"),dataIndex:"address",width:200,render:e=>e?(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",gap:"4px"}),children:[(0,s.jsx)("span",{children:(0,e$.c2)(e)}),(0,s.jsx)(ez.bL,{size:"small",text:e,iconButton:{className:(0,y.AH)({fontSize:"14px",padding:"0"})}})]}):"--"},{title:e("Fee.MainChain"),dataIndex:"main_chain_show",width:100,render:e=>e??"--"},{title:e("Public.TxHash"),dataIndex:"tx_hash",width:200,render:(e,t)=>(0,s.jsx)(eq.j,{txHash:e,tokenExplore:t.token_explore})}],{title:e("Deposit.ToWallet"),dataIndex:"asset_type",width:140,render:t=>{var i;return e((null==(i=(0,D.UX)(t).mapDataDirect)?void 0:i.name)??"--")}},...n?[]:[{title:e("Public.Progress"),dataIndex:"block_confirm",fixed:"right",render:(t,i)=>"inner_transfer_success"===i.state?"-":(0,s.jsxs)(F.B,{direction:"row",alignItems:"center",spacing:5,children:[(0,s.jsx)(eV.x,{parent:"span",i18nKey:"Public.ProgressConfirm",values:{current:i.confirmed,total:i.confirmation},components:{br:(0,s.jsx)("br",{})}}),"deposit_waiting_confirm"===i.state&&(0,s.jsx)(eE.m,{title:e("Public.ProgressTip"),underline:!1,children:(0,s.jsx)(T.r,{code:"icon-warning-outline",className:(0,y.AH)({color:"text-primary",fontSize:"16px"})})})]})}],{title:e("Public.Status"),dataIndex:"state",align:"right",fixed:"right",render:t=>e(`ErrorCode.${t}`)}]}),(0,s.jsx)(eF._,{open:a,anchor:"right",keepMounted:!0,onClose:()=>r(!1),PaperProps:{className:(0,y.AH)({width:"min(360px, 100vw)"})},children:(0,s.jsx)(eQ,{isInner:n,showCoinType:"0"!==c,initialValues:p,onClose:()=>r(!1),onConfirm:m})})]})}var e0=i(17932),e1=i(48313),e2=i(95841),e6=i(93800),e4=i(72975),e8=i(41902),e3=i(62341),e7=i(33871),e5=i(10928),e9=i(32980),te=i(36162),tt=i(51890),ti=i(89076),ts=i(85061),tn=i(77092);function tl(e){let{name:t,options:i,defaultValue:n}=e,{t:l}=(0,b.B)(),{setValue:a}=(0,J.xW)();return(0,L.useEffect)(()=>{n&&a(t,n)},[t,n,a]),(0,s.jsx)(eR.R9,{name:t,noStyle:!0,children:e=>
1{let{field:{onChange:n,value:r="",onBlur:o}}=e;return(0,s.jsx)(eT.I,{classes:{root:(0,y.AH)({height:"auto"}),suffixIconFixedBox:(0,y.AH)({ml:"8px"})},fullWidth:!0,size:"medium",variant:"standard",value:r,onBlur:o,onChange:e=>{B.F.updateDepositAssetType({assetType:e}).then(tt.D7).then(()=>{I.R.success(l("Public.Successful"))}).catch(()=>{a(t,r)}),n(e)},children:i.map(e=>{var t;return(0,s.jsx)(eT.x,{value:e,children:l((null==(t=(0,D.UX)(e).mapDataDirect)?void 0:t.name)??e)},e)})})}})}let ta=e=>{let{defaultAddress:t,addressList:i=[],onItemClick:n,onAddClick:l}=e,{t:a}=(0,b.B)(),[r,o]=(0,L.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("ul",{className:(0,y.AH)({maxH:"408px",pr:"12px",overflowY:"auto"}),children:i.map(e=>(0,s.jsxs)("li",{className:(0,y.Fj)({base:{p:"14px 12px",cursor:"pointer",transition:"background-color 0.2s",display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",gap:"8px",borderRadius:"6px",_hover:{bg:"fill-btn-hover"}},variants:{active:{true:{bg:"fn-brand-normal/10"}}}})({active:e.id===(null==t?void 0:t.id)}),onClick:()=>null==n?void 0:n(e),children:[e.name&&"-"!==e.name?(0,s.jsx)("h6",{className:(0,y.AH)({fontSize:"12px",fontWeight:500,lineHeight:"16px"}),children:e.name}):null,(0,s.jsx)("p",{className:(0,y.AH)({fontSize:"12px",fontWeight:500,lineHeight:"16px",wordBreak:"break-all"}),children:e.address}),e.memo&&"-"!==e.memo?(0,s.jsxs)("span",{className:(0,y.AH)({fontSize:"12px",fontWeight:400,lineHeight:"16px",px:"4px",bg:"fill-input-normal",borderRadius:"4px",color:"text-secondary",display:"inline-block"}),children:[a("Public.Memo")," ",(0,s.jsx)("span",{children:e.memo})]}):null]},e.id))}),(0,s.jsx)(ts.c,{className:(0,y.AH)({mt:"12px",mr:"12px"})}),(0,s.jsx)($.$,{fullWidth:!0,variant:"text",loading:r,className:(0,y.AH)({h:"40px"}),prefixIcon:(0,s.jsx)(T.r,{code:"icon-plus",css:{fontSize:"12px"}}),onClick:async()=>{try{o(!0),await (null==l?void 0:l())}catch(e){(0,ei.Vf)(e)}finally{o(!1)}},children:a("Withdraw.Address.Add")})]})},tr=e=>{let{coinConfig:t}=e,{isKoreaUser:i}=(0,h.Py)(),{t:n}=(0,b.B)(),l=(0,J.FH)({name:"main_chain"}),a=(null==l?void 0:l.main_chain)??"",{coin_type:r="",icon_svg:o=""}=t??{},{defaultAddress:c,isMemo:d,config:p,addressList:x,riskWarn:u,getDepositAddress:m,setDefaultAddress:f,addDepositAddress:g}=(0,k.e)({isAddTip:!1});(0,L.useEffect)(()=>{(null==l?void 0:l.deposit_status)&&r&&a&&m({coin_type:r,main_chain:a})},[r,a,m,null==l?void 0:l.deposit_status]);let v=(null==c?void 0:c.address)??"--",j=(null==c?void 0:c.memo)??"--",{name:A}=(0,H.B6)(),[w,N]=(0,L.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{id:"tour-deposit-info",className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"12px",width:"100%"}),children:[(0,s.jsx)(to,{qrcodeValue:(null==c?void 0:c.address)??"",qrcodeIcon:o,children:(0,s.jsx)(tn.ms,{triggerMode:"click",placement:"bottom-end",autoClose:!0,followTriggerWidth:!0,panelClassName:(0,y.AH)({py:"8px",pl:"12px",border:"1px solid token(colors.line-short)",bgColor:"bg-modal"}),content:(0,s.jsx)(ta,{defaultAddress:c,addressList:x,onItemClick:e=>{let{id:t}=e;return f({address_id:t,coin_type:r,main_chain:a})},onAddClick:()=>g({coin_type:r,main_chain:a})}),onOpenChange:N,children:(0,s.jsx)(tc,{label:n("Withdraw.Address.Label"),value:v,remark:null==c?void 0:c.name,prefixExtraIcon:(0,s.jsx)("span",{className:(0,y.AH)({display:{base:"none",lg:"inline-flex"},alignItems:"center",justifyContent:"center",w:"40px",h:"40px",borderRadius:"100px",flexShrink:0,cursor:"pointer",bg:"fill-btn-normal"}),children:(0,s.jsx)(T.r,{code:"icon-caret-down",css:(0,y.Fj)({base:{fontSize:"8px",transition:"transform 0.2s",transform:"rotate(0)"},variants:{active:{true:{transform:"rotate(180deg)"}}}}).raw({active:w})})})})})}),(0,s.jsx)(K,{riskWarn:u}),d&&(0,s.jsx)(to,{qrcodeValue:j??"",children:(0,s.jsx)(tc,{label:n("Memo.Title",{main_chain_show:null==p?void 0:p.main_chain_show}),value:j})})]}),"1"===i&&(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"16px",p:"16px",border:"1px solid token(colors.line-short)",borderRadius:"12px",mt:"12px"}),children:[(0,s.jsx)("span",{className:(0,y.AH)({fontSize:"12px",lineHeight:"16px",color:"text-secondary"}),children:n("Wallet.RecipientNameEn","Recipient Name in English")}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"row",alignItems:"center",gap:"8px"}),children:[(0,s.jsx)("span",{className:(0,y.AH)({fontSize:"16px",lineHeight:"24px",color:"text-primary",fontWeight:700}),children:A??"--"}),(0,s.jsx)(V,{text:A??""})]})]})]})},to=e=>{let{qrcodeValue:t,qrcodeIcon:i,children:n,css:l}=e;return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"row",alignItems:"center",gap:"16px",p:"16px",border:"1px solid token(colors.line-short)",borderRadius:"12px"},null==l?void 0:l.root),children:[(0,s.jsx)(P.v,{value:t,size:120,icon:i,iconGap:2,iconSize:20,className:(0,y.AH)({w:"120px",h:"120px",flexShrink:0,borderRadius:"12px",overflow:"hidden"})}),n]})},tc=(0,L.forwardRef)((e,t)=>{let{label:i,value:n,remark:l,prefixExtraIcon:a,suffixExtraIcon:r,...o}=e;return(0,s.jsxs)("div",{ref:t,...o,className:(0,y.AH)({display:"flex",flexDirection:"column",justifyContent:"center",gap:"8px",flex:1,minW:0}),children:[i&&(0,s.jsx)("span",{className:(0,y.AH)({fontSize:"12px",fontWeight:400,lineHeight:"16px",color:"text-secondary"}),children:i}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"row",gap:"16px"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({flex:1,display:"flex",flexDirection:"column",gap:"8px"}),children:[(0,s.jsx)("p",{className:(0,y.AH)({fontSize:"16px",fontWeight:700,lineHeight:"24px",color:"text-primary",flex:1,wordBreak:"break-all",m:0}
1),children:n}),l&&"-"!==l?(0,s.jsx)("div",{className:(0,y.AH)({fontSize:"12px",fontWeight:400,lineHeight:"16px",color:"text-secondary"}),children:l}):null]}),a,(0,s.jsx)(V,{text:n}),r]})]})});var td=i(79654),tp=i(47544);function tx(e){let{main_chain_show:t,onResolve:i}=e,{t:n}=(0,b.B)();return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"24px",p:"16px",borderRadius:"8px",border:"1px solid token(colors.line-short)"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",gap:"8px"}),children:[(0,s.jsx)(T.r,{code:"icon-warning-contained",className:(0,y.AH)({color:"fn-brand-normal",fontSize:"20px",flexShrink:0})}),(0,s.jsx)("span",{className:(0,y.AH)({fontSize:"14px",fontWeight:500,lineHeight:"20px",color:"text-primary"}),children:n("Deposit.MemoTip",{tokenName:t})})]}),(0,s.jsx)($.$,{fullWidth:!0,onClick:i,children:n("Deposit.Understand")})]})}let th=e=>{let{onKnew:t,currentDepositWallet:i}=e,{mapData:n}=(0,D.UX)(i),{t:l}=(0,b.B)(),a=(e=>{let{pathName:t,pathNameParams:i,recordPathName:s,recordPathNameSearch:n}=e;return{accountPath:(0,es.Yn)(t,{params:i}),recordPath:(0,es.Yn)(s,{params:n})}})(n);return(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"24px",p:"16px",borderRadius:"8px",border:"1px solid token(colors.line-short)"}),children:[(0,s.jsx)("p",{className:(0,y.AH)({fontSize:"14px",fontWeight:400,lineHeight:"20px",color:"text-secondary","& b":{fontWeight:500,color:"text-primary"},"& a":{color:"fn-brand-normal"}}),children:(0,s.jsx)(eV.x,{i18nKey:"Deposit.AssetsRecordTip",components:{b:(0,s.jsx)("b",{}),a:(0,s.jsx)(el(),{href:a.accountPath,target:"_blank"}),ar:(0,s.jsx)(el(),{href:a.recordPath,target:"_blank"})},values:{accountType:l(n.name),recordPath:`${l(n.recordPath[0])}-${l(n.recordPath[1])}`}})}),(0,s.jsx)($.$,{fullWidth:!0,onClick:t,children:l("Deposit.Knew")})]})},tu=(0,y.AH)({display:"flex",justifyContent:"space-between",alignItems:"center",lineHeight:"20px","& > *:not(:first-child)":{textAlign:"right"},"&:not(:last-child)":{marginBottom:"16px"}}),tm=(0,y.AH)({display:"flex",alignItems:"center",gap:"4px"}),tf=(0,y.AH)({fontSize:"14px",lineHeight:"20px",color:"text-secondary"}),tg=(0,y.AH)({fontSize:"12px",color:"text-secondary",lineHeight:"12px"}),tv=e=>{let{tokenConfig:t,coin:i,currentDepositWallet:n,showWalletMask:l,setShowWalletMask:a,loading:r,depositAssetConfig:o,userDefaultAssetType:c,onPassedChange:d}=e,{t:p}=(0,b.B)(),{isSuspended:x,isAccountForbidden:h,isKYCPassed:m,isReady:f}=u(t),g=(null==i?void 0:i.coin_type)??"--",v=(null==t?void 0:t.least_deposit_limit)??"--",j=(null==t?void 0:t.token_confirmation)??"--",A=[{id:"isReady",condition:!f,fallback:()=>null},{id:"suspended",condition:x,fallback:()=>(0,s.jsxs)("div",{className:(0,y.AH)({p:"16px",borderRadius:"8",border:"1px solid token(colors.line-short)"}),children:[(0,s.jsx)("div",{className:(0,y.AH)({fontSize:"14px",fontWeight:500,lineHeight:"20px",color:"text-primary"}),children:p("Deposit.Stop",{token:`${null==i?void 0:i.coin_type}(${null==t?void 0:t.main_chain_show})`})}),(0,s.jsx)("div",{className:(0,y.AH)({fontSize:"12px",fontWeight:400,lineHeight:"16px",color:"text-secondary",mt:"8px"}),children:p("Deposit.StopTip")})]})},{id:"forbidden",condition:h,fallback:()=>(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",p:"16px",borderRadius:"8px",border:"1px solid var(--divider)"}),children:[(0,s.jsx)(T.r,{code:"icon-warning-contained",className:(0,y.AH)({color:"fn-brand-normal",fontSize:"40px"})}),(0,s.jsxs)("ul",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"8px",fontSize:"14px",fontWeight:400,lineHeight:"20px",color:"text-primary",listStyleType:"disc",pl:"18px"}),children:[(0,s.jsx)("li",{children:p("Deposit.Forbidden01")}),(0,s.jsx)("li",{children:p("Deposit.Forbidden02")}),(0,s.jsx)("li",{children:p("Deposit.Forbidden03")})]})]})},{id:"kyc",condition:!m,fallback:()=>(0,s.jsx)(tp.$,{})},{id:"wallet-mask",condition:l,fallback:e=>(0,s.jsx)(th,{currentDepositWallet:n,onKnew:()=>{a(!1),e()}})},{id:"memo-confirm",condition:!!((null==t?void 0:t.deposit_status)&&(null==t?void 0:t.deposit_memo_status)),fallback:e=>(0,s.jsx)(tx,{...t,onResolve:e})}];return(0,s.jsxs)(td.V,{guards:A,onPassedChange:d,children:[(0,s.jsx)(tr,{c
1oinConfig:i}),(0,s.jsxs)("div",{id:"tour-deposit-database",className:(0,y.AH)({mt:"24px"}),children:[(0,s.jsxs)("div",{className:tu,children:[(0,s.jsxs)("div",{className:tm,children:[(0,s.jsx)("span",{className:tf,children:p("Deposit.MinimumAmount")}),(0,s.jsx)(eE.m,{title:(0,s.jsx)(s.Fragment,{children:p("Deposit.MinimumAmount.Tooltip")}),placement:"top",underline:!1,children:(0,s.jsx)(T.r,{code:"icon-warning-outline",className:tg})})]}),(0,s.jsxs)("span",{translate:"no",className:"notranslate",children:[v," ",g]})]}),(0,s.jsxs)("div",{className:tu,children:[(0,s.jsxs)("span",{className:tm,children:[(0,s.jsx)("span",{className:tf,children:p("Deposit.AutoTransfer")}),(0,s.jsx)(eE.m,{title:(0,s.jsx)(s.Fragment,{children:p("Deposit.ChangeWalletTip")}),placement:"top",underline:!1,children:(0,s.jsx)(T.r,{code:"icon-warning-outline",className:tg})})]}),r?(0,s.jsx)("span",{children:"--"}):(0,s.jsx)(tl,{name:"wallet",defaultValue:c,options:(null==o?void 0:o.supportDepositAssetList)??[]})]}),(0,s.jsxs)("div",{className:tu,children:[(0,s.jsxs)("span",{className:tm,children:[(0,s.jsx)("span",{className:tf,children:p("Deposit.Unlocked")}),(0,s.jsx)(eE.m,{title:(0,s.jsx)(s.Fragment,{children:p("Deposit.Unlocked.Tooltip",{confirmation:j})}),placement:"top",underline:!1,children:(0,s.jsx)(T.r,{code:"icon-warning-outline",className:tg})})]}),(0,s.jsx)("span",{children:p("Deposit.Unlocked.Value",{confirmation:j})})]}),t&&t.token_contract.length>8&&(0,s.jsxs)("div",{className:tu,children:[(0,s.jsx)("span",{className:tf,children:p("Wallet.ContractAddress")}),(0,s.jsx)(ti.d,{})]})]})]},`${null==i?void 0:i.coin_type}-${null==t?void 0:t.main_chain}`)};function tj(e){let{href:t,icon:i,title:n,subtitle:l}=e;return(0,s.jsxs)(el(),{href:t,className:(0,y.AH)({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 20px",border:"1px solid token(colors.line-short)",borderRadius:"12px",cursor:"pointer",mt:"24px"}),children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",gap:"12px",flex:1}),children:[i,(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"4px"}),children:[(0,s.jsx)("span",{className:(0,y.AH)({fontSize:"14px",fontWeight:500,lineHeight:"20px",color:"text-primary"}),children:n}),(0,s.jsx)("span",{className:(0,y.AH)({fontSize:"12px",fontWeight:400,lineHeight:"16px",color:"text-secondary"}),children:l})]})]}),(0,s.jsx)(T.r,{code:"icon-arrow",autoRTL:!0,className:(0,y.AH)({fontSize:"16px"})})]})}function ty(e){let{coinType:t,mainChain:i}=e,{t:n}=(0,b.B)(),{isReady:l,isAccountForbidden:a}=u();return!l||a?null:(0,s.jsxs)(el(),{href:(0,es.Yn)("DepositAddress",{search:{coin:t,network:i}}),className:(0,y.AH)({display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"14px",fontWeight:400,lineHeight:"20px",color:"text-secondary"}),children:[(0,s.jsx)("span",{children:n("Public.AddressManagement")}),(0,s.jsx)(T.r,{code:"icon-arrow-right",autoRTL:!0,className:(0,y.AH)({fontSize:"10px"})})]})}let tb={spot:"SPOT",perpetual:"PERPETUAL"},tA=e=>{let{searchParams:t}=e,{t:i}=(0,b.B)(),n=(0,L.useRef)(""),[l,a]=(0,L.useState)(!1),[r,o]=(0,L.useState)(!0),c=(0,L.useRef)({coin_name:"",chain_name:""}),d=(0,L.useRef)(""),p=(0,te.g)((e,t)=>{o(!0),(e&&e!==d.current||t)&&(e5.I.deposit.viewDepositCoin(e),B.F.getCoinDepositAssetConfig({coinType:e}).then(e=>{e.result&&u(e.result)}).catch(()=>{}),d.current=e)}),x=(0,L.useCallback)((e,t)=>{if(t&&e.main_chain_show){if(c.current.chain_name===e.main_chain_show&&c.current.coin_name===t)return;e5.I.deposit.viewDepositChain({deposit_type:"onchain_deposit",coin_name:t,chain_name:e.main_chain_show}),c.current.chain_name=e.main_chain_show,c.current.coin_name=t}o(!0)},[]),[h,u]=(0,L.useState)(),{userDefaultAssetType:m,coinCurrentAssetType:f}=h??{},g=t.get("at")??(f||m)??"",v=(0,te.g)(e=>!e.deposit_status),{visible:j,dismiss:A,setVisible:w}=(0,e9.m)("deposit_guide_dismiss");(0,L.useEffect)(()=>{let e=sessionStorage.getItem(e3.O);if(e&&(n.current=e,sessionStorage.removeItem(e3.O)),n.current){let e=tb[n.current];if(!e||!m||m===e)return;a(!0),B.F.updateDepositAssetType({assetType:e}).then(tt.D7).then(()=>
1{if(null==h?void 0:h.coinType)return p(h.coinType,!0)}).catch(ei.Vf).finally(()=>{a(!1)})}},[null==h?void 0:h.coinType,p,m]);let[H,N]=(0,L.useState)(!1);return(0,s.jsxs)("div",{className:(0,y.AH)({bgColor:"bg-primary",flex:1}),children:[(0,s.jsx)(e6.$,{title:`${e8.wZ} Deposit`}),(0,s.jsxs)(e2.F,{css:{py:"32px",px:{xs:"24px",md:"32px",lg:"0"}},children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",alignItems:"center",gap:"20px"}),children:[(0,s.jsx)("h1",{className:(0,y.AH)({flex:1,fontSize:"28px",fontWeight:700,lineHeight:"36px",color:"text-primary"}),children:i("Public.Deposit")}),(0,s.jsx)($.$,{color:"secondary",size:"small",className:(0,y.AH)({px:"16px"}),onClick:()=>{w(e=>!e)},children:i("Deposit.Guide")})]}),(0,s.jsx)(R.S,{open:j,children:(0,s.jsx)(e0.D,{steps:[{text:`${i("Deposit.Guide.1")}
2${i("Deposit.Guide.2")}`,line:!0},{text:i("Deposit.Guide.3"),line:!0},{text:i("Deposit.Guide.4"),line:!0},{text:i("Deposit.Guide.5"),line:!1}],onClose:A})}),(0,s.jsx)(e1.U,{renderLeft:e=>(0,s.jsx)(ep.eo,{alwaysFilledNetwork:!0,actionKey:"deposit",quickTokens:e7.C,steps:t=>[{tourId:"tour-wallet-network",label:(0,s.jsx)("h3",{className:(0,y.AH)({fontSize:"18px",lineHeight:"26px",fontWeight:700}),children:i("Deposit.ChooseNetwork")}),active:!0,content:(0,s.jsx)(ep.lg,{disabledSelect:v,showConfirmation:!0,options:(null==t?void 0:t.token_config_list)??[],onChange:e=>{e&&x(e,t.coin_type)}})},{label:(0,s.jsxs)("div",{className:(0,y.AH)({width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"}),children:[(0,s.jsx)("h3",{className:(0,y.AH)({fontSize:"18px",lineHeight:"26px",fontWeight:700}),children:i("Deposit.ConfirmDetails")}),H&&t&&e&&(0,s.jsx)(ty,{coinType:t.coin_type,mainChain:e.main_chain})]}),active:!0,content:(0,s.jsx)(tv,{tokenConfig:e,coin:t,currentDepositWallet:g,showWalletMask:r,setShowWalletMask:o,loading:l,depositAssetConfig:h,userDefaultAssetType:m,onPassedChange:e=>N(e)})}],onCoinNameChange:p,onMainChainChange:x,disabledSelect:v}),renderRight:e=>{let t=(null==e?void 0:e.token_code)??"--",n=(null==e?void 0:e.main_chain_show)??"--",l=(null==e?void 0:e.least_deposit_limit)??"--";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"12px",padding:"20px",border:"1px solid token(colors.line-short)",borderRadius:"12px"}),children:[(0,s.jsx)("h5",{className:(0,y.AH)({fontSize:"16px",fontWeight:700,lineHeight:"24px",color:"text-primary"}),children:i("Public.Tips")}),(0,s.jsxs)("ul",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"12px",color:"text-primary",fontSize:"12px",lineHeight:"16px"}),children:[(0,s.jsx)("li",{children:i("Deposit.Notice.2",{coin:t,min:l})}),(0,s.jsx)("li",{children:i("Deposit.Notice.1",{coin:t,coinFullName:n})}),(0,s.jsx)("li",{children:i("Deposit.Notice.4")})]})]}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"12px",padding:"20px",border:"1px solid token(colors.line-short)",borderRadius:"12px",mt:"24px"}),children:[(0,s.jsx)("h5",{className:(0,y.AH)({fontSize:"16px",fontWeight:700,lineHeight:"24px",color:"text-primary"}),children:i("Public.FAQs")}),(0,s.jsxs)("div",{className:(0,y.AH)({display:"flex",flexDirection:"column",gap:"12px"}),children:[(0,s.jsx)(el(),{href:e4.cI,className:(0,y.AH)({fontSize:"12px",lineHeight:"16px",color:"text-primary",transition:"color 200ms",_hover:{color:"fn-brand-normal"}}),children:i("Deposit.Tips.1")}),(0,s.jsx)(el(),{href:"/en-us/support/3/articles/666",className:(0,y.AH)({fontSize:"12px",lineHeight:"16px",color:"text-primary",transition:"color 200ms",_hover:{color:"fn-brand-normal"}}),children:i("Deposit.Tips.2")})]})]}),(0,s.jsx)(tj,{href:(0,es.Yn)("BuyCrypto"),icon:(0,s.jsx)(U.l,{src:"/static-lib/img/icon-multi/LNj1Wv0P6H2wGSD8.svg",className:(0,y.AH)({width:"40px",height:"40px",flexShrink:0})}),title:i("Wallet.FiatGuide.Title2"),subtitle:i("Wallet.FiatGuide.SubTitle2")}),(0,s.jsx)(tj,{href:(0,es.Yn)("FiatDeposit"),icon:(0,s.jsx)(U.l,{src:"/static-lib/img/icon-multi/KH2-NzC6XCZmw4Nm.svg",className:(0,y.AH)({width:"40px",height:"40px",flexShrink:0})}),title:i("FiatDeposit.Title"),subtitle:i("Deposit.FiatDeposit.Subt
2itle")})]})},children:(0,s.jsx)(eJ,{})})]})]})},tw=()=>{let[e]=(0,d.ok)({coin:"USDT"});return(0,s.jsx)(l.X,{desktop:(0,s.jsx)(a.w,{header:(0,s.jsx)(o.A,{}),footer:(0,s.jsx)(r.A,{}),main:(0,s.jsx)(tA,{searchParams:e})}),mobile:(0,s.jsx)(n.k,{fullPageScroll:!1,header:(0,s.jsx)(o.A,{}),main:(0,s.jsx)(ek,{searchParams:e})})})};tw.interceptors={key:"Deposit",list:[(0,c.t)({account:{type:"main_subaccount subaccount"},kyc:{}})]},tw.theme="toggle";var tH=!0;let tN=tw},11261:(e,t,i)=>{"use strict";i.d(t,{l:()=>c});var s=i(37876),n=i(998),l=i(14232),a=i(88992),r=i(10128);let o=(0,n.F)({base:{},variants:{layout:{vertical:{display:"flex",flexDirection:"column"},inline:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"flex-start"}}},defaultVariants:{layout:"vertical"}}),c=(0,l.forwardRef)((e,t)=>{let{form:i,defaultValues:c,size:d="medium",layout:p="vertical",formItemGap:x,onSubmit:h,onSubmitError:u,withoutForm:m,classes:f,className:g,style:v,children:j,...y}=e,b=(0,a.mN)({defaultValues:c,mode:"onBlur"}),A=i??b,w=x??("vertical"===p?"0px":"24px"),H=(0,l.useMemo)(()=>({layout:p,formItemGap:w,size:d}),[p,w,d]),N=A.handleSubmit((e,t)=>null==h?void 0:h(e,t),(e,t)=>{null==u||u(e,t)}),C=(0,n.cx)(o({layout:p}),g,null==f?void 0:f.root),S={...v,gap:w};return(0,s.jsx)(a.Op,{...A,children:(0,s.jsx)(r.c.Provider,{value:H,children:m?(0,s.jsx)("div",{ref:t,className:C,style:S,children:j}):(0,s.jsx)("form",{ref:t,autoComplete:"off",className:C,style:S,onSubmit:N,...y,children:j})})})})},14868:(e,t,i)=>{"use strict";i.d(t,{y:()=>p});var s=i(37876),n=i(44480),l=i(61812),a=i(38784),r=i(25435),o=i(49995),c=i(24392);let d="mui-table";function p(e){let{theme:t="light"}=(0,r.Q)(),{expandable:i,borderGap:p="8",pagination:x,paginationRender:h,loading:u,emptyText:m,theme:f=t,emptyTransparent:g,className:v,rootClassName:j,size:y,bordered:b,isStriped:A,bgColor:w,classes:H,...N}=e,{wrapClassName:C,position:S="right",className:D,..._}=x??{};return(0,s.jsxs)("div",{className:(0,o.default)(`${d}-wrap`,`${d}-root`,j,f,null==H?void 0:H.tableRoot),style:w?{"--mui-table-bg":w}:void 0,children:[(0,s.jsx)(l.y,{visible:u,children:(0,s.jsx)(c.Ay,{...N,rowClassName:(e,t)=>`row-${t}`,emptyText:m??(0,s.jsx)(n.D,{label:"No Data",minHeight:160,transparent:g??"dark"===f}),expandable:{...i,expandedRowClassName:(e,t)=>`ex-row-${t}`},prefixCls:d,className:(0,o.default)("table",v,null==H?void 0:H.table,"large"===y?`${d}-size-large`:"small"===y?`${d}-size-small`:`${d}-size-medium`,`${d}-border-gap-${p}`,{"table-bordered":b,"table-striped":A})})}),x&&(x.count??1)>=(x.pageSize??1)?(0,s.jsx)("div",{className:(0,o.default)("pagination-wrap",C,S),children:h?h(x):(0,s.jsx)(a.A,{showArrow:!0,className:(0,o.default)(D,null==H?void 0:H.pagination),..._})}):null]})}},17932:(e,t,i)=>{"use strict";i.d(t,{D:()=>r});var s=i(37876),n=i(76057),l=i(395),a=i(19485);function r(e){let{steps:t,onClose:i}=e;return(0,s.jsxs)("div",{className:(0,a.AH)({display:"flex",gap:"20px",padding:"24px",border:"1px solid token(colors.line-short)",borderRadius:"12px",position:"relative",mt:"20px"}),children:[t.map((e,t)=>(0,s.jsxs)("div",{className:(0,a.AH)({display:"flex",flexDirection:"column",gap:"14px",flex:1}),children:[(0,s.jsxs)("div",{className:(0,a.AH)({display:"flex",alignItems:"center",gap:"20px"}),children:[(0,s.jsx)("span",{className:(0,a.AH)({display:"flex",justifyContent:"center",alignItems:"center",width:"26px",height:"26px",flexShrink:0,borderRadius:"100px",bgColor:"text-primary",color:"bg-modal",fontSize:"12px",fontWeight:700,lineHeight:"16px"}),children:t+1}),e.line&&(0,s.jsx)("div",{className:(0,a.AH)({flex:1,height:"1px",bgColor:"text-primary"})})]}),(0,s.jsx)("span",{className:(0,a.AH)({fontSize:"14px",fontWeight:500,lineHeight:"20px",color:"text-primary",whiteSpace:"pre-line"}),children:e.text})]},t)),(0,s.jsx)(n.K,{className:(0,a.AH)({position:"absolute",top:"12px",right:"12px"}),onClick:i,children:(0,s.jsx)(l.r,{code:"icon-cross",css:{fontSize:"12px"}})})]})}},19570:(e,t,i)=>{"use strict";var s=Error();e.exports=new Promise((e,t)=>{if("undefined"!=typeof Cropper)return e();i.l("/scripts/[email protected]",i=>{if("undefined"!=typeof Cropper)return e();var n=i&&("load"===i.type?"missing":i.type),l=i&&i.target&&i.target.src;
2s.message="Loading script failed.\n("+n+": "+l+")",s.name="ScriptExternalLoadError",s.type=n,s.request=l,t(s)},"Cropper")}).then(()=>Cropper)},19613:(e,t,i)=>{"use strict";i.d(t,{eI:()=>n.e,lV:()=>s.l});var s=i(11261);i(10128);var n=i(87240)},26786:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>h,Bu:()=>x,G:()=>u});var s=i(45526),n=i(36162),l=i(13997),a=i(96033),r=i(89099),o=i(14232),c=i(28170);let d=["","showMarketSearch","showMarketSearch","showChartDrawer","showTradeSetting","showTradeHistory","showDemoMarketSearch","showDemoChartDrawer","showDemoTradeSetting","showDemoTradeHistory","showTokenDrawer","showNetworkDrawer","showAutoChannelDrawer","showContractAddressDrawer","showDepositAddressMenage","showConvertHistoryDrawer","showTypeDrawer","showTimeDrawer","showFundingDetail","showPerpetualDetail","showDepositHistorySearchDrawer","showDepositHistoryFilterDrawer","showWithdrawHistoryFilterDrawer","showAndroidGuide","showAppGuide","showIosGuide","showPortfolioDrawer"];class p{go(e){e?location.hash=e:this.clear()}goBack(){return new Promise(e=>{let t=i=>{window.removeEventListener("hashchange",t),e(i)};window.addEventListener("hashchange",t),history.back(),setTimeout(()=>{window.removeEventListener("hashchange",t),e()},100)})}clear(){history.replaceState(null,"",window.location.pathname+window.location.search),window.dispatchEvent(new Event("hashchange"))}constructor(){if((0,s._)(this,"hashName",""),(0,s._)(this,"hashChange",new c.t("")),!(0,a.o)())return;window.addEventListener("hashchange",()=>{let e=location.hash.replace(/^#/,"");this.hashName=e,this.hashChange.next(e)});let e=location.hash.replace(/^#/,"");this.hashName=e,this.hashChange.next(e),this.clear.bind(this)}}function x(){let[e,t]=(0,o.useState)(""),i=(0,r.useRouter)();return(0,o.useEffect)(()=>{let e=e=>{let t=new URL(e,location.origin),i=t.hash?t.hash.slice(1):"",s=d.includes(i)?i:"";u.hashName=s,u.hashChange.next(s)};return i.events.on("routeChangeComplete",e),()=>{i.events.off("routeChangeComplete",e)}},[i.events]),(0,o.useEffect)(()=>{let e=u.hashChange.subscribe(e=>{t(e)});return()=>{e.unsubscribe()}},[]),e}function h(e,t,i){let s=x(),a=(0,o.useMemo)(()=>(0,l.r)(),[]),r=(0,o.useRef)(),c=(0,o.useRef)(),d=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(s===e){if(!d.current||i&&!function(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(i,c.current)){let e=t(a);e&&e.destroy&&(r.current=e.destroy),c.current=i,d.current=!0}}else r.current&&(r.current(),r.current=void 0),c.current=void 0,d.current=!1}),(0,o.useEffect)(()=>()=>{r.current&&(r.current(),r.current=void 0)},[]),{open:(0,n.g)(()=>{u.go(e)}),destroy:(0,n.g)(async t=>{u.hashName===e&&await u.goBack(),null==t||t()})}}let u=new p},32980:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var s=i(17885),n=i(36162),l=i(14232);function a(e,t){let i=(null==t?void 0:t.maxDismissCount)??3,[a,r]=(0,l.useState)(!1);(0,l.useEffect)(()=>{s.$.get(e).then(e=>{if(!e)return void r(!0);!(e.count>=i)&&(Date.now()-e.lastDismissAt<6048e5||r(!0))})},[e,i]);let o=(0,n.g)(()=>{r(!1),s.$.get(e).then(t=>{let i=((null==t?void 0:t.count)??0)+1;s.$.set(e,{count:i,lastDismissAt:Date.now()})})});return{visible:a,setVisible:r,dismiss:o}}},33778:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d,a:()=>c});var s=i(41902),n=i(97787),l=i(33072),a=i(83685),r=i(80577),o=i(85797);async function c(e,t){try{if(!e)return!1;let{domToPng:l}=await Promise.resolve().then(i.bind(i,93194)).then(e=>i.t(e,22)),a=(0,r.sJ)(),c=await l(e,{scale:a,filter:e=>{var t;return(null==e||null==(t=e.tagName)?void 0:t.toLocaleLowerCase())!=="iframe"},...t}),{isWebview:d}=(0,o.Z)();if(d){let e=await n.$;null==e||e.downloadImgBaseData(c)}else{let e=document.createElement("a");e.download=`${s.wZ}_${Date.now()}.png`,e.href=c,document.body.appendChild(e),e.click(),setTimeout(()=>{document.body.removeChild(e)})}return!0}catch(e){return console.error(e),a.R.error((0,l.Vh)("Public.Failed")),!1}}async function d(e,t){try{if(!e)return!1;let l=(await Promise.resolve().then(i.bind(i,34162)).then(e=>i.t(e,22))).default,a=(0,r.sJ)(),c=(await l(e,{scale:a,allowTaint:!1,useCORS:!0,backgroundColor:null,ignoreElements:e=>"iframe"===e.tagName.toLocaleLowerCase(),...t})).toDataURL(),{isWebview:d}=(0,o.Z)();if(d){let e=await n.$;null==e||e.downloadImgBaseData(c)}else{let e=document.createElement("a");e.download=`${s.wZ}_${Date.now()}.png`,e.href=c,document.body.appendChild(e),e.click(),setTimeout(()=>{document.body.removeChild(e)})}return!0}catch(e){return a.R.error((0,l.Vh)("Public.Failed")),!1}}},34162:(e,t,i)=>{"use strict";var s=Error();e.exports=new Promise((e,t)=>
2{if("undefined"!=typeof html2canvas)return e();i.l("/scripts/[email protected]",i=>{if("undefined"!=typeof html2canvas)return e();var n=i&&("load"===i.type?"missing":i.type),l=i&&i.target&&i.target.src;s.message="Loading script failed.\n("+n+": "+l+")",s.name="ScriptExternalLoadError",s.type=n,s.request=l,t(s)},"html2canvas")}).then(()=>html2canvas)},35388:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var s=i(37876),n=i(76057),l=i(395),a=i(19485),r=i(37626);function o(e){let{contract:t,onClose:i}=e,{t:o}=(0,r.B)(),c=(null==t?void 0:t.token_contract)??"--";return(0,s.jsxs)("div",{className:(0,a.AH)({maxHeight:"90vh",display:"flex",flexDirection:"column",p:"16px",pb:"calc(16px + env(safe-area-inset-bottom))"}),children:[(0,s.jsxs)("div",{className:(0,a.AH)({display:"flex",alignItems:"center",justifyContent:"space-between"}),children:[(0,s.jsx)("div",{className:(0,a.AH)({fontWeight:700,fontSize:"18px",lineHeight:"21px",color:"text-primary"}),children:o("Wallet.ContractAddress")}),(0,s.jsx)(n.K,{onClick:i,size:"small",children:(0,s.jsx)(l.r,{code:"icon-cross",className:(0,a.AH)({fontSize:"15px"})})})]}),(0,s.jsxs)("div",{className:(0,a.AH)({mt:"12px"}),children:[(0,s.jsxs)("div",{className:(0,a.AH)({display:"flex",gap:"8px",p:"12px",borderRadius:"8px",bgColor:"fill-tabs-bg",fontWeight:400,color:"text-primary",fontSize:"12px",lineHeight:"16px",sm:{fontSize:"14px",lineHeight:"20px"}}),children:[(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:(0,a.AH)({flexShrink:0,mt:"1px",width:{xs:"16px",sm:"20px"},height:{xs:"16px",sm:"20px"}}),children:[(0,s.jsx)("path",{d:"M10 18.333A8.333 8.333 0 1 1 10 1.667a8.333 8.333 0 0 1 0 16.666Z",className:(0,a.AH)({fill:"text-primary"})}),(0,s.jsx)("path",{d:"M10.833 14.167H9.167V12.5h1.666v1.667Z",className:(0,a.AH)({fill:"text-inverse-primary"})}),(0,s.jsx)("path",{d:"M10.833 10.833H9.167V5.833h1.666v5Z",className:(0,a.AH)({fill:"text-inverse-primary"})})]}),(0,s.jsxs)("div",{children:[o("Wallet.ContractAddress.Notice"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),o("Wallet.ContractAddress.Notice2")]})]}),(0,s.jsxs)("div",{className:(0,a.AH)({mt:"12px",bg:"fill-input-normal",borderRadius:"8px",p:"16px",fontSize:"14px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.25px",userSelect:"none",display:"flex",flexDirection:"column",alignItems:"flex-start",border:"1 solid token(colors.line-short)",gap:"8px"}),tabIndex:0,children:[(0,s.jsx)("div",{className:(0,a.AH)({fontSize:"12px",lineHeight:"14px",color:"text-secondary"}),children:(null==t?void 0:t.main_chain_show)??"--"}),(0,s.jsx)("div",{className:(0,a.AH)({flex:1,fontSize:"14px",lineHeight:"20px",wordBreak:"break-all"}),children:c})]})]})]})}},35764:e=>{e.exports={root:"root_pt2zQmP4"}},47544:(e,t,i)=>{"use strict";i.d(t,{$:()=>d});var s=i(37876),n=i(45350),l=i(34186),a=i(395),r=i(61629),o=i(19485),c=i(37626);let d=()=>{let{t:e}=(0,c.B)();return(0,s.jsxs)("div",{className:(0,o.AH)({display:"flex",flexDirection:"column",gap:"24px",p:"16px",borderRadius:"8px",border:"1px solid token(colors.line-short)"}),children:[(0,s.jsxs)("div",{className:(0,o.AH)({display:"flex",flexDirection:"column",gap:"16px"}),children:[(0,s.jsxs)("div",{className:(0,o.AH)({display:"flex",gap:"8px"}),children:[(0,s.jsx)(a.r,{code:"icon-warning-contained",className:(0,o.AH)({color:"fn-brand-normal",fontSize:"18px",flexShrink:0,mt:"1px"})}),(0,s.jsxs)("div",{className:(0,o.AH)({display:"flex",flexDirection:"column",gap:"12px"}),children:[(0,s.jsx)("span",{className:(0,o.AH)({fontSize:"14px",fontWeight:500,lineHeight:"20px",color:"fn-brand-normal"}),children:e("Forbidden.KycRequired","KYC Verification Required")}),(0,s.jsx)("span",{className:(0,o.AH)({fontSize:"14px",fontWeight:400,lineHeight:"20px",color:"text-primary"}),children:e("Forbidden.Message02","To comply with regulatory requirements, please complete your identity verification before your trading. Following are required:")})]})]}),(0,s.jsxs)("div",{className:(0,o.AH)({display:"flex",flexDirection:"column",gap:"16px",p:"12px",borderRadius:"8px",bgColor:"bg-primary"}),children:[(0,s.jsxs)("div",{className:(0,o.AH)({display:"flex",alignItems:"center",gap:"8px"}),children:[(0,s.jsx)(r.l,{src:"/static-lib/img/icon-mono/sD2AX3hopQDw4iYl.svg",css:{width:"20px"}}),(0,s.jsx)("span",{className:(0,o.AH)({fontSize:"14px",fontWeight:400,lineHeight:"20px",color:"text-primary"}),children:e("Kyc.Qualification02")})]}),(0,s.jsxs)("div",{className:(0,o.AH)({display:"flex",alignItems:"center",gap:"8px"}),children:[(0,s.jsx)(r.l,{src:"/static-lib/img/icon-mono/gBjomS3EgZ_IQAkc.svg",css:{width:"20px",height:"20px"}}),(0,s.jsx)("span",{className:(0,o.AH)({fontSize:"14px",fontWeight:400,lineHeight:"20px",color:"text-primary"}),children:e("Kyc.Qualification022")})]})]})]}),(0,s.jsx)(l.$,{fullWidth:!0,href:(0,n.Yn)("UserCenterKyc"),children:e("Forbidden.GoKYC","Complete KYC Now")})]})}},48313:(e,t,i)=>{"use strict";i.d(t,{U:()=>r});var s=i(37876),n=i(19613),l=i(19485),a=i(88992);function r(e){let{renderLeft:t,renderRight:i,children:r}=e,o=(0,a.mN)({defaultValues:{asset_type:"",amount:"",address:""},shouldUnregister:!0}),c=(0,a.FH)({name:"main_chain",control:o.control});return(0,s.jsxs)(n.lV,{form:o,className:(0,l.AH)({width:"100%",mt:"40px"}),children:[(0,s.jsxs)("div",{className:(0,l.AH)({display:"flex",justifyContent:"space-between",flexDirection:{xs:"column",md:"row"},gap:"24px"}),children:[(0,s.jsx)("div",{className:(0,l.AH)({width:"100%",maxWidth:{xs:"100%",md:"568px",lg:"626px"}}),children:null==t?void 0:t(c)}),(0,s.jsx)("div",{className:(0,l.AH)({width:"100%",maxWidth:{xs:"100%",md:"320px",lg:"400px"}}),children:null==i?void 0:i(c)})]}),r]})}},55043:(e,t,i)=>{"use strict";i.d(t,{h:()=>a});var s=i(37876),n=i(395),l=i(19485);function a(e){var t,i,a,r;return(0,s.jsxs)("div",{className:(0,l.cx)((0,l.AH)({borderRadius:"2px",padding:"14px 20px",fontSize:"14px",lineHeight:"20px",color:"var(--primary)",background:"var(--primary_10)",display:"flex",mb:"24px"},null==(t=e.css)?void 0:t.root),null==(i=e.classes)?void 0:i.root),children:["string"==typeof e.icon?(0,s.jsx)(n.r,{code:e.icon,className:(0,l.AH)({color:"var(--primary)",mr:"8px",fontSize:"20px"})}):e.icon,(0,s.jsx)("p",{className:(0,l.cx)((0,l.AH)({"& span":{color:"var(--error)"}},null==(a=e.css)?void 0:a.text),null==(r=e.classes)?void 0:r.text),children:e.text})]})}},64163:(e,t,i)=>{"use strict";i.d(t,{y:()=>s.y});var s=i(14868)},65550:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/wallet/deposit",function(){return i(10859)}])},79654:(e,t,i)=>{"use strict";i.d(t,{V:()=>r});var s=i(37876),n=i(36162),l=i(14232);let a=e=>{let{guard:t,resolve:i}=e,a=(0,n.g)(t.onShow);return(0,l.useEffect)(()=>{null==a||a()},[a,t.id]),(0,s.jsx)(s.Fragment,{children:t.fallback(i)})},r=e=>{let{guards:t,children:i,onPassedChange:n}=e,[r,o]=(0,l.useState)(new Set),c=(0,l.useMemo)(()=>t.find(e=>e.condition&&!r.has(e.id)),[t,r]);return((0,l.useEffect)(()=>{null==n||n(!c)},[c,n]),c)?(0,s.jsx)(a,{guard:c,resolve:()=>{o(e=>{let t=new Set(e);return t.add(c.id),t})}},c.id):(0,s.jsx)(s.Fragment,{children:i})}},79900:(e,t,i)=>{"use strict";i.d(t,{e:()=>u});
2var s=i(37876),n=i(20079),l=i(73842),a=i(83685),r=i(395),o=i(57358),c=i(75441),d=i(51890),p=i(19485),x=i(14232),h=i(37626);let u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isAddTip:t=!0}=e,{t:i}=(0,h.B)(),[u,m]=(0,x.useState)(!1),[f,g]=(0,x.useState)(!1),[v,j]=(0,x.useState)(null),y=(0,x.useCallback)(async e=>{try{m(!0);let t=await c.F.getDepositAddress(e).then(d.D7);j(t)}catch(t){let e=(null==t?void 0:t.code)===4100;(0,n.Vf)({error:t,needTip:!e}),j(e?"depositClosed":null)}finally{m(!1)}},[]),b=(0,x.useCallback)(async e=>{let{address_id:t,...i}=e;try{await c.F.updateDepositDefault({address_id:t}).then(d.D7);let{coin_type:e,main_chain:s}=i;return e&&s&&y({coin_type:e,main_chain:s}),!0}catch(e){return(0,n.Vf)(e),!1}},[y]),A=(0,x.useCallback)(async e=>{let x=("depositClosed"!==v&&(null==v?void 0:v.address_list)||[]).length;if(x>=20)return void l.Q.create({width:"300px",title:null,isClose:!1,children:(0,s.jsxs)(o.B,{direction:"column",alignItems:"center",spacing:12,css:{pt:"8px"},children:[(0,s.jsx)(r.r,{code:"icon-query-outline",css:{fontSize:"48px",color:"text-warning"}}),(0,s.jsx)("div",{className:(0,p.AH)({fontSize:"18px",fontWeight:700,textAlign:"center",lineHeight:"26px",color:"text-primary"}),children:i("Deposit.AddressLimitTitle","Address limit reached.")}),(0,s.jsx)("div",{className:(0,p.AH)({fontSize:"14px",textAlign:"center",lineHeight:"20px",color:"text-secondary"}),children:i("Deposit.AddressLimitDesc","Unable to generate a new address.")})]}),resolve:{label:i("Public.Confirm")},reject:{variant:"contained",color:"info",label:i("Public.Cancel")}});l.Q.create({width:"300px",title:null,isClose:!1,children:(0,s.jsxs)(o.B,{direction:"column",alignItems:"center",spacing:12,css:{pt:"8px"},children:[(0,s.jsx)("div",{className:(0,p.AH)({fontSize:"18px",fontWeight:700,textAlign:"center",lineHeight:"26px",color:"text-primary"}),children:i("Deposit.AddAddressTitle","Confirm to add address?")}),(0,s.jsx)("div",{className:(0,p.AH)({fontSize:"14px",textAlign:"center",lineHeight:"20px",color:"text-primary"}),children:i("Deposit.AddAddressDesc",{defaultValue:"Once generated, the address cannot be deleted. Number of Generated Addresses: {count}/{maxCount}",count:x,maxCount:20})})]}),resolve:{label:i("Public.Confirm"),action:async()=>{try{return g(!0),m(!0),await c.F.addDepositAddress(e).then(d.D7),t&&a.R.success(i("Deposit.AddTip")),await y(e),!0}catch(e){return(0,n.Vf)(e),m(!1),!1}finally{g(!1)}}},reject:{variant:"contained",color:"info",label:i("Public.Cancel")}})},[v,y,i,t]),w=(0,x.useCallback)(async e=>{try{let{address_id:t,remark:s,...n}=e;await c.F.updateDepositRemark({address_id:t,remark:s}).then(d.D7),a.R.success(i("Public.Successful"));let{coin_type:l,main_chain:r}=n;return l&&r&&y({coin_type:l,main_chain:r}),!0}catch(e){return(0,n.Vf)(e),!1}finally{}},[y,i]),H="depositClosed"===v,N=H?null:v,C=null==N?void 0:N.address;return{loading:u,loadingAdd:f,isMemo:!!(null==N?void 0:N.config.token_memo_status)||!!(null==C?void 0:C.memo)&&(null==C?void 0:C.memo)!=="-",isDepositClosed:H,defaultAddress:C,config:null==N?void 0:N.config,addressList:null==N?void 0:N.address_list,riskWarn:null==N?void 0:N.riskWarn,getDepositAddress:y,setDefaultAddress:b,addDepositAddress:A,updateDepositRemark:w}}},87836:(e,t,i)=>{"use strict";i.d(t,{y:()=>a});var s=i(36162),n=i(28589),l=i(14232);function a(e,t){let[i,a]=(0,l.useState)(()=>t?n.S.get(t)??"0":"0"),[r,o]=(0,l.useState)({});return{formData:(0,l.useMemo)(()=>{let{coin_type:t,...s}=r;return{...s,coin_type:"0"===i?e:t}},[i,e,r]),current:i,setCurrent:(0,s.g)(e=>{a(e),t&&n.S.set(t,e)}),setFormData:o}}},89076:(e,t,i)=>{"use strict";i.d(t,{d:()=>u});var s=i(37876),n=i(26786),l=i(73842),a=i(63898),r=i(395),o=i(57358),c=i(35388),d=i(19485),p=i(88992),x=i(37626);let h=e=>{let{contract:t}=e,{t:i}=(0,x.B)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,d.AH)({fontSize:"12px",borderRadius:"4px",bg:"fn-brand-normal/10",color:"fn-brand-normal",p:"16px",mb:"24px"}),children:(0,s.jsxs)(o.B,{spacing:8,direction:"row",children:[(0,s.jsx)(r.r,{code:"icon-warning-contained",className:(0,d.AH)({fontSize:"18px"})}),(0,s.jsxs)("div",{children:[i("Wallet.ContractAddress.Notice"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),i("Wallet.ContractAddress.Notice2")]})]})}),(0,s.jsx)("div",{className:(0,d.AH)({bg:"fill-input-normal",minH:"48px",borderRadius:"4px",p:"13px 16px",fontSize:"14px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.25px",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between",border:"1px solid token(colors.fill-input-normal)",transition:"border-color 200ms","&:focus":{borderColor:"fn-brand-normal"}}),tabIndex:0,children:t.token_contract})]})};function u(e){let{mobile:t,css:i}=e,o=(0,p.FH)({name:"main_chain"}),{t:u}=(0,x.B)(),{open:m,destroy:f}=(0,n.Bm)("showContractAddressDrawer",e=>a.D.create({id:e,anchor:"bottom",PaperProps:{sx:{bgcolor:"var(--colors-bg-modal)",borderRadius:"24px 24px 0 0"}},onClose:()=>{f()},children:(0,s.jsx)(c.o,{contract:o,onClose:()=>f()})}),[o]);return(0,s.jsxs)("div",{className:(0,d.AH)({cursor:"pointer",display:"flex",alignItems:"center",gap:"8px"},null==i?void 0:i.root),onClick:()=>{o&&(t?m():l.Q.create({title:u("Wallet.ContractAddress"),children:(0,s.jsx)(h,{contract:o}),footer:!1}))},children:[u("Wallet.EndWith.ContractAddress",{contract:(null==o?void 0:o.token_contract.slice(-6))??"--"}),(0,s.jsx)(r.r,{code:"icon-arrow-right",className:(0,d.AH)({fontSize:"12px",color:"text-primary"},null==i?void 0:i.icon)})]})}},93194:(e,t,i)=>{"use strict";var s=Error();e.exports=new Promise((e,t)=>
2{if("undefined"!=typeof modernScreenshot)return e();i.l("/scripts/[email protected]",i=>{if("undefined"!=typeof modernScreenshot)return e();var n=i&&("load"===i.type?"missing":i.type),l=i&&i.target&&i.target.src;s.message="Loading script failed.\n("+n+": "+l+")",s.name="ScriptExternalLoadError",s.type=n,s.request=l,t(s)},"modernScreenshot")}).then(()=>modernScreenshot)},97787:(e,t,i)=>{"use strict";i.d(t,{$:()=>l});var s=i(49483),n=i(85797);let l=(async()=>{let e=await (0,s.x)(()=>i.e(1443).then(i.t.bind(i,61443,23)).then(e=>e.default));if(!e)return null;let{isOrangexWebview:t}=(0,n.Z)(),l=t?"OrangeX":"WOWX",a=(t,i)=>e.call(`${l}.${t}`,i),r=()=>{let e=a("getClientType"),t="ios"===e,i="android"===e;return{isIos:t,isAndroid:i,isWebview:t||i}};return{getAuth:()=>{let e=a("getLoginResultJson");if(e&&""!==e&&"string"==typeof e)try{return JSON.parse(e)}catch{console.error("Resolving The Login Results Failed")}},getLang:()=>a("getAppLanguage"),goBack:()=>a("goBack"),isIos:()=>{var e;return(null==(e=r())?void 0:e.isIos)??!1},isAndroid:()=>{var e;return(null==(e=r())?void 0:e.isAndroid)??!1},isWebview:()=>{var e;return(null==(e=r())?void 0:e.isWebview)??!1},downloadImgBaseData:e=>a("saveImgBaseData",e),shareImgBaseData:e=>a("shareImgBaseData",e),push(e,t){t?a("appJump",e):a("appJumpToOut",e)}}})()}},e=>{e.O(0,[771,983,2262,692,4162,667,6470,4905,3738,2592,2351,7455,8493,7955,4e3,6264,3603,7092,346,1848,9961,3891,4788,220,3116,7637,9437,1341,4148,1091,7178,636,6593,8792],()=>e(e.s=65550)),_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.