PageSourceSearch

https://www.orangex.com/_next/static/chunks/pages/user-center/api-9c98f5ba643d69b0.js

js orangex.com collected 2026-09-25 02:56:01 UTC 43,152 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2304],{316:(e,t,l)=>{"use strict";l.d(t,{O:()=>m});var i=l(37876),a=l(71030),s=l(36162),n=l(74298),r=l(49995),o=l(14232),c=l(83685),d=l(55382),u=l.n(d);function p(e,t,l,i){let a=t*l,s=Array(a).fill(i),n=`${e}${s.join("")}`,r=[];for(let e=0;e<a;e+=l){let t=n.slice(e,e+l);r.push(t.replaceAll(i,""))}return r}function x(e,t,l){let i=Array(t).fill(l);return e.reduce(function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=`${l}${i.join("")}`.slice(0,t);return`${e}${a}`},"")}function m(e){let{inputCount:t=6,valueLength:l=1,value:d,valuePlaceholder:m="*",onChange:h,onBlur:f,onValueValid:g,classes:b,onFinish:v,label:y,labelExtra:j,bottomContent:w,unFinish:A,disabled:N,loading:S,variant:k="filled",error:P,inputBoxExtra:C,autoFocus:_=!1,deleteType:I="fullClear",clickClearAll:H=!0}=e,T=(0,o.useMemo)(()=>"string"==typeof d?p(d,t,l,m):[...(d||[]).map(e=>null==e?void 0:e.replaceAll(m,"")),...Array(t).fill("")].slice(0,t),[d,t,l,m]),z=(0,o.useMemo)(()=>[...Array(t).keys()],[t]),$=(0,o.useRef)([]),R=(0,s.g)(e=>{var t,i;null==(t=$.current[e])||t.focus(),null==(i=$.current[e])||i.setSelectionRange(l,l)}),V=(0,s.g)(e=>{if(!e)return Promise.resolve(!0);if(g){let t=g(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(/^\d+$/.test(e))},[]),D=(0,s.g)(v),F=(0,o.useMemo)(()=>(0,n.s)(D,300),[D]),L=(0,s.g)(A),B=(0,o.useMemo)(()=>(0,n.s)(L,300),[L]);(0,o.useEffect)(()=>()=>{F.clear(),B.clear()},[F,B]);let E=(0,s.g)(function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{valueByArray:a,...s}=e,n=x(a,l,m),r={valueByArray:a,value:n,valueByValid:a.join(""),...s};n.length!==t*l||n.includes("*")?i?null==L||L():null==B||B():i?null==D||D(r):null==F||F(r),h(r)}),W=(0,s.g)(async(e,i)=>{var a,s;let{value:n=""}=e.target,r=null==(a=e.nativeEvent)?void 0:a.inputType,o=n.length>l;if("insertFromPaste"===r||"insertFromDrop"===r||o){if(await V(n)||g||(n=n.replace(/\D/g,"")),!n)return;let a=[...T],s=[];for(let e=0;e<n.length;e+=l)s.push(n.slice(e,e+l));let r=i;for(let e of s)r<t&&(a[r]=e,r++);E({valueByArray:a,index:i,event:e}),R(Math.min(r,t-1))}else{if(!await V(n))return;let t=[...T];n.length<=l?t[i]=n.slice(0-l):t[i]=n.slice(-1),E({valueByArray:t,index:i,event:e}),((null==(s=t[i])?void 0:s.length)??0)>=l&&R(i+1)}}),O=function(e){let i=!(arguments.length>1)||void 0===arguments[1]||arguments[1];E({valueByArray:p("",t,l,m),index:0,event:e},i),R(0)},K=(0,s.g)((e,t)=>{let{value:i}=e.target;if(8===e.keyCode||"Delete"===e.code||"Backspace"===e.code)if("clearAll"===I)O(e,!0);else if("fullClear"===I){if(x(T,l,m).includes(m)){i||R(t-1);return}O(e,!0)}else"continuously"===I&&(i||R(t-1))}),M=(0,s.g)(async(e,i)=>{e.preventDefault();try{let a=e.clipboardData.getData("text/plain");if(await V(a)||g||(a=a.replace(/\D/g,"")),!a)return;let s=[...T],n=[];for(let e=0;e<a.length;e+=l)n.push(a.slice(e,e+l));let r=i;for(let e of n)r<t&&(s[r]=e,r++);E({valueByArray:s,index:i,event:e}),R(Math.min(r,t-1))}catch(e){c.R.error("Paste failed!")}}),q=e=>{H&&(x(T,l,m).includes(m)||O(e,!0))};(0,o.useEffect)(()=>{if(!_)return;let e=T.filter(e=>e);if(T.length&&e.length){let e=0;T.forEach((t,l)=>{t&&(e=l)}),R(e+1);return}R(0)},[R,_]);let U=(0,a.k)();return(0,i.jsxs)("div",{className:(0,r.default)(null==b?void 0:b.root,u().root),children:[(y||j)&&(0,i.jsxs)("div",{className:(0,r.default)(u().label,null==b?void 0:b.label),children:[(0,i.jsx)("div",{children:y}),j]}),(0,i.jsxs)("div",{className:(0,r.default)(u().inputBox,null==b?void 0:b.inputBox),children:[z.map(e=>(0,i.jsx)("input",{type:U.isPc?"text":"tel",pattern:"[0-9]*",className:(0,r.default)(u().input,u()[k??""],null==b?void 0:b.input,P?[u().error,null==b?void 0:b.error]:[]),value:T[e]??"",ref:t=>{Reflect.set($.current,e,t)},onChange:t=>W(t,e),onKeyDown:t=>K(t,e),onPaste:t=>M(t,e),onBlur:f,onClick:q,readOnly:S,disabled:N},e)),C]}),w&&(w.left||w.right)&&(0,i.jsxs)("div",{className:(0,r.default)(u().bottomContent,null==b?void 0:b.bottomContent),children:[(0,i.jsx)("div",{className:null==b?void 0:b.bottomContentLeft,children:w.left}),(0,i.jsx)("div",{className:null==b?void 0:b.bottomContentRight,children:w.right})]})]})}},2222:(e,t,l)=>{"use strict";l.d(t,{By:()=>T,PK:()=>C,fd:()=>$,zX:()=>z});var i=l(37876),a=l(20079),s=l(36162),n=l(44273),r=l(84932),o=l(73842),c=l(28396),d=l(80968),u=l(316),p=l(84137),x=l(63481),m=l(38505),h=l(395),f=l(65270),g=l(77258),b=l(51890),v=l(58008),y=l(19485),j=l(49995),w=l(14232),A=l(88992),N=l(37626),S=l(23025),k=l(82698),P=l.n(k);function C(e){let{t}=(0,N.B)();return(0,i.jsx)(m.A,{in:e.in,unmountOnExit:!0,timeout:300,children:(0,i.jsxs)("div",{className:(0,y.AH)({position:"absolute",backgroundColor:"fill-input-normal/90",to
1p:0,left:0,width:"100%",height:"100%",borderRadius:"2px",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center"}),children:[(0,i.jsx)(h.r,{code:"icon-tick-contained",className:(0,y.AH)({fontSize:"20px",color:"text-success"})}),(0,i.jsx)("span",{className:(0,y.AH)({color:"text-primary",fontSize:"16px",fontWeight:"500",marginLeft:"8px"}),children:t("Public.Verified")})]})})}let _="_ticket";function I(e){let{splitInput:t,MuiInputProps:l,onSplitInputFinish:a,onSplitInputAutoSubmit:n,withTicket:o=!1,tipExtra:p,handleRef:m,...h}=e,[f,g]=(0,w.useState)("init"),b=(0,A.xW)(),v=`${h.name}${_}`,y=(0,s.g)(b.register),N=(0,s.g)(b.unregister);(0,w.useEffect)(()=>{if(o)return y(v,{required:!0}),()=>{N(v)}},[y,N,v,o]);let S=function(e){let{state:t,ticket:l=""}=e,i=!(arguments.length>1)||void 0===arguments[1]||arguments[1];o&&"success"===t&&(b.setValue(v,l),b.setValue("last_ticket",(null==l?void 0:l.ticket)??l),i&&(null==n||n(b)))};(0,w.useImperativeHandle)(m,()=>({triggerState:e=>{let{state:t,ticket:l}=e;g(t),S({state:t,ticket:l},!1)}}));let k=(0,i.jsx)(x.A,{in:"success"!==f,children:p});return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.R9,{...h,registerOptions:{validate:e=>{if(!r.N.mailCode(e)){var t;return null==(t=h.registerOptions)?void 0:t.required}},...null==h?void 0:h.registerOptions},children:e=>{let{field:{value:t,onChange:s,onBlur:r},fieldState:{error:o}}=e;return(0,i.jsx)(u.O,{autoFocus:!1,value:t,onBlur:r,error:!!o||"fail"===f,onChange:e=>s(e.value),variant:null==l?void 0:l.variant,classes:{inputBox:P().inputBox,input:(0,j.default)(P().input,null==l?void 0:l.className)},inputBoxExtra:(0,i.jsx)(C,{in:"success"===f}),loading:"loading"===f,disabled:"complete"===f||"success"===f||"loading"===f,unFinish:()=>g("init"),onFinish:async e=>{let t;if("success"===f)return;let l=null==a?void 0:a(e);if(l)if(l instanceof Promise?(g("loading"),"complete"===(t=await l).state&&setTimeout(()=>g("init"),500)):t=l,"complete"===t.state){var i;b.setValue("last_ticket",(null==(i=t.ticket)?void 0:i.ticket)??t.ticket),null==n||n(b)}else g(t.state),S(t)}})}}),k]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.R9,{...h,children:(0,i.jsx)(d.I,{autoComplete:"new-password",size:"largest",variant:"filled",...l})}),k]})}function H(e){let{t}=(0,N.B)(),{validType:l,formName:a,showTip:s,emailClassName:r,tfaClassName:o,commonInputProps:c,splitInput:d,onSplitInputFinish:u,onSplitInputAutoSubmit:x,withTicket:m=!1,handleRef:h,email:f}=e,g=(e=>{let{validType:t}=e;return"tfa"===t||"tfa-auto"===t})(e)?null:e.emailSendButton,b=(null==a?void 0:a.tfa)??"tfa",k=(null==a?void 0:a.email)??"mail_code",{info:C}=(0,v.Py)(),H=(0,w.useRef)(null),T=(0,w.useRef)(null),z=(0,A.xW)(),$=()=>{let e=z.getValues(),t=m?`${b}${_}`:b,l=m?`${k}${_}`:k,i=Reflect.has(e,t),a=Reflect.has(e,l),s=e[t],n=e[l];
1(i&&a&&s&&n||i&&!a&&s||!i&&a&&n)&&(null==x||x(z))},R=(0,w.useMemo)(()=>f?(0,n.s)(f):(null==C?void 0:C.emailDesensitization)??(0,n.s)(null==C?void 0:C.email),[f,null==C?void 0:C.email,null==C?void 0:C.emailDesensitization]),V=(0,w.useMemo)(()=>"auto"===l||"email-tfa"===l||"tfa-email"===l?t("Public.VerifiedTfaTip"):t("Public.VerifiedTfaTipByEmail",{email:R}),[R,t,l]),D=(0,i.jsx)(I,{name:b,label:(0,i.jsxs)(i.Fragment,{children:[t("Public.TFA"),(0,i.jsx)("div",{className:(0,y.AH)({color:"text-tertiary",fontSize:"12px",marginTop:"8px"}),children:V})]}),registerOptions:{required:t("Public.InputTFA"),minLength:{value:6,message:t("Public.InputTFA")}},MuiInputProps:{placeholder:t("Public.InputTFA"),...c,className:(0,j.default)(o,null==c?void 0:c.className)},splitInput:d,onSplitInputFinish:e=>null==u?void 0:u("tfa",e,z),onSplitInputAutoSubmit:$,withTicket:m,handleRef:H}),F=(0,i.jsx)(I,{name:k,label:(0,i.jsxs)(i.Fragment,{children:[t("ResetPassword.EmailCode"),(0,i.jsx)("div",{className:(0,y.AH)({color:"text-tertiary",fontSize:"12px",marginTop:"8px"}),translate:"no",children:t("Public.VerifiedEmailTip",{email:R})})]}),registerOptions:{required:t("ResetPassword.EmailCode.Enter"),minLength:{value:6,message:t("ResetPassword.EmailCode.Enter")}},MuiInputProps:{placeholder:t("ResetPassword.EmailCode.Enter"),...c,endAdornment:d?null:g,className:(0,j.default)(r,null==c?void 0:c.className)},splitInput:d,onSplitInputFinish:e=>null==u?void 0:u("email",e,z),onSplitInputAutoSubmit:$,tipExtra:(0,i.jsxs)(p.K,{alignItems:"center",justifyContent:"space-between",translate:"no",className:P().emailAbnormalLabelWrap,children:[(0,i.jsx)(S.$,{}),d?g:null]}),withTicket:m,handleRef:T});return(0,w.useImperativeHandle)(h,()=>({triggerState:(e,t)=>{var l,i;("email"===e||"all"===e)&&(null==(l=T.current)||l.triggerState(t)),("tfa"===e||"all"===e)&&(null==(i=H.current)||i.triggerState(t))}})),(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)("p",{className:P().tip,children:t("Public.SafetyVerificationDesc")}),"tfa-auto"===l?C.tfa_enabled?D:null:"auto"===l?(0,i.jsxs)(i.Fragment,{children:[C.tfa_enabled?D:null,F]}):"tfa"===l?D:"email"===l?F:"email-tfa"===l?(0,i.jsxs)(i.Fragment,{children:[F,D]}):"tfa-email"===l?(0,i.jsxs)(i.Fragment,{children:[D,F]}):C.tfa_enabled?D:F]})}function T(){let{t:e}=(0,N.B)(),{info:t}=(0,v.Py)(),l=(0,w.useRef)(null),a=(0,w.useRef)(null);return{validModal:(0,s.g)(s=>{var n;let{validProps:r,onSubmit:d,...u}=s;if("tfa-auto"===r.validType&&!t.tfa_enabled)return void d({});let p=o.Q.create({...u,handleRef:e=>{(0,f.cZ)(a,e),(0,f.cZ)(u.handleRef,e)},contentBottomSpace:"8px",title:u.title??e("Title.SecurityVerification"),children:e=>(0,i.jsx)(c.gv,{form:e,children:(0,i.jsx)(H,{showTip:!0,...r,handleRef:e=>{(0,f.cZ)(l,e),(0,f.cZ)(r.handleRef,e)}})}),reject:{label:e("Public.Cancel"),show:!1,...u.reject},resolve:{...u.resolve,label:(null==(n=u.resolve)?void 0:n.label)??e("Public.Confirm"),action:async(e,t)=>{var i,a,s;null==(a=u.resolve)||null==(i=a.action)||i.call(a,e,t);let n=await d(t);return void 0===n||("boolean"==typeof n?n:(n.validStateViewInfo&&(null==(s=l.current)||s.triggerState(n.validStateViewInfo.type,n.validStateViewInfo.info)),n.state))}},onClose:function(){for(var e,t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];null==(e=u.onClose)||e.call(u,...i),l.current=null,a.current=null}});return{dialogHandle:a,validFormItemHandle:l,dialogInstance:p}})}}let z=async e=>{try{return await g.Di.getStepTicket(e).then(b.D7)}catch(e){return(0,a.Vf)(e),{ticket:null,vcodePassed:!1,googleCodePassed:!1}}},$=async(e,t)=>{let{ticket:l,googleCode:i,vcode:s,phoneCode:n,...r}=t;if("tfa"===e)try{let{googleCodePassed:e}=await g.Di.stepCheckCode({...r,ticket:l,googleCode:i}).then(b.D7);if(e)return{state:"success",ticket:l};return{state:"fail"}}catch(e){return(0,a.Vf)(e),{state:"fail"}}if("email"===e)try{let{vcodePassed:e}=await g.Di.stepCheckCode({...r,ticket:l,vcode:s}).then(b.D7);return{state:"success",ticket:l}}catch(e){return(0,a.Vf)(e),{state:"fail"}}try{let{phoneCodePassed:e}=await g.Di.stepCheckCode({...r,ticket:l,phoneCode:n}).then(b.D7);return{state:"success",ticket:l}}catch(e){return(0,a.Vf)(e),{state:"fail"}}}},11261:(e,t,l)=>{"use strict";l.d(t,{l:()=>c});var i=l(37876),a=l(998),s=l(14232),n=l(88992),r=l(10128);let o=(0,a.F)({base:{},variants:{layout:{vertical:{display:"flex",flexDirection:"column"},inline:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"flex-start"}}},defaultVariants:{layout:"vertical"}}),c=(0,s.forwardRef)((e,t)=>{let{form:l,defaultValues:c,size:d="medium",layout:u="vertical",formItemGap:p,onSubmit:x,onSubmitError:m,withoutForm:h,classes:f,className:g,style:b,children:v,...y}=e,j=(0,n.mN)({defaultValues:c,mode:"onBlur"}),w=l??j,A=p??("vertical"===u?"0px":"24px"),N=(0,s.useMemo)(()=>({layout:u,formItemGap:A,size:d}),[u,A,d]),S=w.handleSubmit((e,t)=>null==x?void 0:x(e,t),(e,t)=>{null==m||m(e,t)}
1),k=(0,a.cx)(o({layout:u}),g,null==f?void 0:f.root),P={...b,gap:A};return(0,i.jsx)(n.Op,{...w,children:(0,i.jsx)(r.c.Provider,{value:N,children:h?(0,i.jsx)("div",{ref:t,className:k,style:P,children:v}):(0,i.jsx)("form",{ref:t,autoComplete:"off",className:k,style:P,onSubmit:S,...y,children:v})})})})},13421:e=>{e.exports={link:"link_NkFqV3v8",highlight:"highlight__7RQObU8n"}},14868:(e,t,l)=>{"use strict";l.d(t,{y:()=>u});var i=l(37876),a=l(44480),s=l(61812),n=l(38784),r=l(25435),o=l(49995),c=l(24392);let d="mui-table";function u(e){let{theme:t="light"}=(0,r.Q)(),{expandable:l,borderGap:u="8",pagination:p,paginationRender:x,loading:m,emptyText:h,theme:f=t,emptyTransparent:g,className:b,rootClassName:v,size:y,bordered:j,isStriped:w,bgColor:A,classes:N,...S}=e,{wrapClassName:k,position:P="right",className:C,..._}=p??{};return(0,i.jsxs)("div",{className:(0,o.default)(`${d}-wrap`,`${d}-root`,v,f,null==N?void 0:N.tableRoot),style:A?{"--mui-table-bg":A}:void 0,children:[(0,i.jsx)(s.y,{visible:m,children:(0,i.jsx)(c.Ay,{...S,rowClassName:(e,t)=>`row-${t}`,emptyText:h??(0,i.jsx)(a.D,{label:"No Data",minHeight:160,transparent:g??"dark"===f}),expandable:{...l,expandedRowClassName:(e,t)=>`ex-row-${t}`},prefixCls:d,className:(0,o.default)("table",b,null==N?void 0:N.table,"large"===y?`${d}-size-large`:"small"===y?`${d}-size-small`:`${d}-size-medium`,`${d}-border-gap-${u}`,{"table-bordered":j,"table-striped":w})})}),p&&(p.count??1)>=(p.pageSize??1)?(0,i.jsx)("div",{className:(0,o.default)("pagination-wrap",k,P),children:x?x(p):(0,i.jsx)(n.A,{showArrow:!0,className:(0,o.default)(C,null==N?void 0:N.pagination),..._})}):null]})}},18082:(e,t,l)=>{"use strict";l.d(t,{d:()=>h});var i=l(37876),a=l(998),s=l(14232),n=l(17791),r=l(87240),o=l(25851);let c=(0,a.F)({base:{display:"flex",alignItems:"center",overflow:"hidden",cursor:"pointer",transition:"background-color 0.2s",flexShrink:0},variants:{size:{small:{width:"28px",height:"16px",borderRadius:"66px",padding:"1.5px"},medium:{width:"40px",height:"24px",borderRadius:"99px",padding:"2px"}},checked:{true:{backgroundColor:"text-primary"},false:{backgroundColor:"text-disabled"}},disabled:{true:{cursor:"not-allowed",backgroundColor:"text-disabled"}}},defaultVariants:{size:"medium",checked:!1,disabled:!1}}),d=(0,a.F)({base:{borderRadius:"50%",transition:"transform 0.2s",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{size:{small:{width:"13px",height:"13px"},medium:{width:"20px",height:"20px"}},checked:{true:{},false:{transform:"translateX(0)"}},disabled:{true:{backgroundColor:"bg-card"},false:{backgroundColor:"bg-secondary"}}},compoundVariants:[{checked:!0,size:"small",css:{transform:"translateX(12px)",boxShadow:"0px 0px 2.6px 0px rgba(4, 9, 25, 0.15)"}},{checked:!0,size:"medium",css:{transform:"translateX(16px)",boxShadow:"0px 0px 4px 0px rgba(4, 9, 25, 0.15)"}},{checked:!1,size:"medium",disabled:!1,css:{boxShadow:"0px 0px 4px 0px rgba(4, 9, 25, 0.15)"}}],defaultVariants:{size:"medium",checked:!1,disabled:!1}}),u=(0,a.A)({position:"relative",display:"inline-flex",alignItems:"center",verticalAlign:"middle",gap:"8px"}),p=(0,a.A)({fontSize:"14px",lineHeight:"20px",color:"text-primary",userSelect:"none"}),x=(0,a.A)({color:"text-disabled"}),m={small:11,medium:18},h=(0,s.forwardRef)((e,t)=>{let l=(0,r.K)(),{size:h="medium",checked:f,defaultChecked:g,disabled:b=l.disabled??!1,readOnly:v,onChange:y,className:j,label:w,labelStart:A,thumbContent:N,loading:S,classes:k,id:P=l.formItemId,onClick:C,..._}=e,I=void 0!==f,[H,T]=(0,s.useState)(g??!1),z=I?f:H,$=(0,a.cx)(p,b&&x),R=S?(0,i.jsx)(o.R,{size:m[h],visible:!0}):"function"==typeof N?N(z):N;return(0,i.jsxs)("label",{className:(0,a.cx)(u,j,null==k?void 0:k.root),onClick:C,"data-checked":z,children:[A&&(0,i.jsx)("span",{className:(0,a.cx)($,null==k?void 0:k.label),children:A}),(0,i.jsx)("input",{ref:t,type:"checkbox",role:"switch",id:P,"aria-checked":z,checked:I?f:void 0,defaultChecked:I?void 0:g,disabled:b,readOnly:v,onChange:e=>{let t=e.target.checked;I||T(t),null==y||y(e,t)},className:(0,a.cx)(n.J,null==k?void 0:k.input),..._}),(0,i.jsx)("span",{className:(0,a.cx)(c({size:h,checked:z,disabled:b}),null==k?void 0:k.track),children:(0,i.jsx)("span",{className:(0,a.cx)(d({size:h,checked:z,disabled:b}),null==k?void 0:k.thumb),children:R})}),w&&(0,i.jsx)("span",{className:(0,a.cx)($,null==k?void 0:k.label),children:w})]})})},19570:(e,t,l)=>{"use strict";var i=Error();e.exports=new Promise((e,t)=>
1{if("undefined"!=typeof Cropper)return e();l.l("/scripts/[email protected]",l=>{if("undefined"!=typeof Cropper)return e();var a=l&&("load"===l.type?"missing":l.type),s=l&&l.target&&l.target.src;i.message="Loading script failed.\n("+a+": "+s+")",i.name="ScriptExternalLoadError",i.type=a,i.request=s,t(i)},"Cropper")}).then(()=>Cropper)},19613:(e,t,l)=>{"use strict";l.d(t,{eI:()=>a.e,lV:()=>i.l});var i=l(11261);l(10128);var a=l(87240)},21052:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>ee,default:()=>et});var i=l(37876),a=l(44160),s=l(6340),n=l(32426),r=l(27587),o=l(93800),c=l(95372),d=l(83847),u=l(20079),p=l(36162),x=l(34186),m=l(61629),h=l(77258),f=l(51890),g=l(19485),b=l(37626),v=l(539),y=l(38058),j=l(79360),w=l(45837),A=l(46531),N=l(64163),S=l(19914),k=l(25851),P=l(61051),C=l(14232),_=l(70169),I=l(69948),H=l(5061),T=l(2222),z=l(18082),$=l(12799),R=l(12769),V=l(76882);function D(e){return e.split(",").reduce((e,t)=>{let[l,i]=t.split(":");return e[l]=i,e},{})}var F=l(19613),L=l(64159);let B=[{label:"Api.None",value:"none"},{label:"Api.Read",value:"read"},{label:"Api.ReadAndWrite",value:"read_write"}],E=[{name:"account",label:"Public.Account"},{name:"trade",label:"Api.Trade"},{name:"wallet",label:"Public.Wallet"}];function W(e){let{form:t,data:l}=e,{t:a}=(0,b.B)(),s=(0,p.g)(()=>{if(!l)return;let{max_scope:e,ip_whitelist:i}=l,a=D(e);t.setValue("account",null==a?void 0:a.account),t.setValue("block_trade",null==a?void 0:a.block_trade),t.setValue("trade",null==a?void 0:a.trade),t.setValue("wallet",null==a?void 0:a.wallet),t.setValue("name",l.name??"--"),i&&(null==i?void 0:i.length)>0&&t.setValue("ip_switch","1"),t.setValue("ip_whitelist.0",null==i?void 0:i[0]),t.setValue("ip_whitelist.1",null==i?void 0:i[1]),t.setValue("ip_whitelist.2",null==i?void 0:i[2])});(0,C.useEffect)(()=>s(),[s]);let n=t.watch("ip_switch"),r=(e,l)=>{if(e)return;let i=t.getValues(),a=!1;for(let e of l){let[t,l]=e.split("."),s=i[t][l];if(s){a=!!s;break}}if(!a)return""};return(0,i.jsxs)(i.Fragment,{children:[E.map((e,t)=>(0,i.jsx)(F.eI,{name:e.name,label:a(e.label),rules:{required:!0},className:(0,g.AH)({flexDirection:{base:"column",sm:"row"},alignItems:{base:"flex-start",sm:"center"},justifyContent:{base:"flex-start",sm:"space-between"},gap:{base:"8px",sm:"0px"},mb:t===E.length-1?"24px":"16px"}),css:{label:{fontWeight:500},children:{fontSize:0,mb:0}},children:e=>{let{field:{value:t,onChange:l},fieldState:{error:s}}=e;return(0,i.jsx)(L.z,{error:!!s,value:t,onChange:l,className:(0,g.AH)({gap:"24px"}),labelClassName:(0,g.AH)({color:"text-secondary",'[data-checked="true"] &':{color:"text-primary"}}),iconClassName:(0,g.AH)({width:"20px",height:"20px",mt:0}),children:B.map(e=>(0,i.jsx)(L.s,{value:e.value,label:a(e.label)},e.value))})}},e.name)),(0,i.jsx)(F.eI,{name:"name",label:a("Api.Name","Name for the API key"),rules:{required:!1},css:{children:{fontSize:0,mb:{base:"16px",sm:"24px"}}},children:(0,i.jsx)(S.pd,{size:"large",placeholder:a("Api.Form.RemarkPlaceholder")})}),(0,i.jsx)(F.eI,{name:"ip_switch",label:a("Api.IP.Whitelist"),required:"start",rules:{required:!0},className:(0,g.AH)({gap:"8px"}),css:{label:{fontWeight:500},children:{fontSize:0}},children:e=>{let{field:{value:t,onChange:l},fieldState:{error:s}}=e;return(0,i.jsxs)(L.z,{error:!!s,value:t,onChange:l,className:(0,g.AH)({gap:"8px"}),labelClassName:(0,g.AH)({color:"text-secondary",'[data-checked="true"] &':{color:"text-primary"}}),iconClassName:(0,g.AH)({width:"20px",height:"20px",mt:0}),children:[(0,i.jsx)(L.s,{value:"0",label:a("Api.NoIP","No IP restriction.")}),(0,i.jsx)(L.s,{value:"1",label:a("Api.OnlyIP","Only IPs with permissions granted are allowed to access.")})]})}}),"1"===n&&(0,i.jsxs)("div",{className:(0,g.AH)({marginTop:"8px","& > * + *":{marginTop:"12px"}}),children:[(0,i.jsx)(F.eI,{name:"ip_whitelist.0",noStyle:!0,rules:{deps:["ip_whitelist.1","ip_whitelist.2"],validate:e=>r(e,["ip_whitelist.1","ip_whitelist.2"])},css:{children:{fontSize:0}},children:(0,i.jsx)(S.pd,{size:"large",placeholder:a("Api.Form.IpPlaceholder")})}),(0,i.jsx)(F.eI,{name:"ip_whitelist.1",noStyle:!0,rules:{deps:["ip_whitelist.0","ip_whitelist.2"],validate:e=>r(e,["ip_whitelist.0","ip_whitelist.2"])},css:{children:{fontSize:0}},children:(0,i.jsx)(S.pd,{size:"large",placeholder:a("Api.Form.IpPlaceholder")})}),(0,i.jsx)(F.eI,{name:"ip_whitelist.2",noStyle:!0,rules:{deps:["ip_whitelist.0","ip_whitelist.1"],validate:e=>r(e,["ip_whitelist.0","ip_whitelist.1"])},css:{children:{fontSize:0}},children:(0,i.jsx)(S.pd,{size:"large",placeholder:a("Api.Form.IpPlaceholder")})})]})]})}function O(){let{validModal:e}=(0,T.By)(),{t}=(0,b.B)();return{createUpdateModal:(0,p.g)(l=>{let{title:a,data:s}=l;R.l.create({title:a,children:e=>(0,i.jsx)(F.lV,{form:e,children:(0,i.jsx)(W,{form:e,data:s})}),contentBottomSpace:"24px",reject:{label:t("Public.Cancel")},resolve:{label:t("Public.Confirm"),action:(t,i)=>new Promise(t=>{let a=e=>{var a;let{tfa:s}=e,{account:n,block_trade:r,trade:o,wallet:c,name:d,ip_switch:u,...p}=i,x=Object.entries({account:n,block_trade:r,trade:o,wallet:c}).map(e=>{let[t,l]=e;return`${t}:${l}`}).join(" "),{ip_whitelist:m=[]}=p,h={tfa:s,max_scope:x};d&&Reflect.set(h,"name",d);let f=m.filter(e=>e);return f.length>0&&Reflect.set(h,"ip_whitelist",f),null==(a=l.onFinish)?void 0:a.call(l,h,t)},s=e({validProps:{validType:"tfa",splitInput:!0,onSplitInputFinish:()=>({state:"complete"}),onSplitInputAutoSubmit:async e=>{var t,l;null==s||null==(t=s.dialogHandle.current)||t.setLoading("resolve",!0);let i=await a(e.getValues());null==s||null==(l=s.dialogHandle.current)||l.setLoading("resolve",!1),i&&(null==s||s.dialogInstance.destroy())}},onClose:()=>t(!1),onSubmit:a})})}})},[])}}function K(){let{t:e}=(0,b.B)(),{createUpdateModal:t}=O(),l=(0,p.g)(a=>{let{data:s,type:n}=a;R.l.create({title:e("Public.View"),children:(0,i.jsx)(M,{data:s}),footer:"view"===n,reject:{label:e("Public.Cancel")},resolve:{label:e("Public.Edit"),action:()=>{setTimeout(()=>{t({title:e("Public.Edit"),data:s,onFinish:async(e,t)=>{try{let i=await h.Di.apiEdit({...e,id:s.id}).then(f.D7);return t(!0),J.next(),setTimeout(()=>{l({type:"review",data:i})},300),!0}catch(e){return(0,u.Vf)({error:e}),!1}}})},300)}}})});return{createViewModal:l}}function M(e){let{t}=(0,b.B)(),{data:l}=e,a=D(l.max_scope),s=(0,C.useMemo)(()=>{var e;return[{label:"Public.Name",value:l.name??"--"},{label:"Public.APIKeys",value:l.client_id,extra:(0,i.jsx)(w.q0,{text:l.client_id,css:{root:{width:"16px",height:"16px"}}})},{label:"Public.SecretKey",value:l.client_secret},{label:"Public.Scope",value:`account(${Reflect.get(a,"account")}
1) , trade(${Reflect.get(a,"trade")}) , wallet(${Reflect.get(a,"wallet")})`},{label:"Public.IPAddress",value:((null==(e=l.ip_whitelist)?void 0:e.length)?l.ip_whitelist.join(", "):"--")||"--"}]},[l.client_id,l.client_secret,l.ip_whitelist,l.name,a]),n=`${l.client_id}:${l.client_secret}`;return(0,i.jsxs)(i.Fragment,{children:[s.map((e,l)=>(0,i.jsxs)("div",{className:(0,g.AH)({"& + div":{marginTop:"16px"}}),children:[(0,i.jsx)("div",{className:(0,g.AH)({fontSize:"12px",lineHeight:"16px",color:"text-secondary"}),children:t(e.label)}),(0,i.jsxs)("div",{className:(0,g.AH)({background:"base-secondary",borderRadius:"4px",padding:"10px 16px",marginTop:"4px",fontWeight:700,fontSize:"14px",lineHeight:"20px",display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:"48px"}),children:[e.value,e.extra]})]},l)),(0,i.jsx)("div",{className:(0,g.AH)({display:"flex",justifyContent:"center",marginTop:"32px"}),children:(0,i.jsx)(V.v,{value:n,size:180,icon:$.cf,className:(0,g.AH)({width:"150px",height:"150px"})})}),(0,i.jsx)("p",{className:(0,g.AH)({marginTop:"16px",color:"text-error",textAlign:"center"}),children:t("Public.SecretKeyTip")})]})}function q(e){let{row:t}=e,{t:l}=(0,b.B)(),{validModal:a}=(0,T.By)(),{createViewModal:s}=K(),{onClickHandle:n}=(0,H.e)(),r=(0,C.useMemo)(()=>[{title:l("Public.View"),handle:e=>{let{id:t}=e,l=async e=>{let{tfa:l}=e;try{let e=await h.Di.apiInfo({id:t,tfa:l}).then(f.D7);return setTimeout(()=>{s({type:"view",data:e})},300),!0}catch(e){return(0,u.Vf)({error:e}),!1}},i=a({validProps:{validType:"tfa",splitInput:!0,onSplitInputFinish:()=>({state:"complete"}),onSplitInputAutoSubmit:async e=>{var t,a;null==i||null==(t=i.dialogHandle.current)||t.setLoading("resolve",!0);let s=await l(e.getValues());null==i||null==(a=i.dialogHandle.current)||a.setLoading("resolve",!1),s&&(null==i||i.dialogInstance.destroy())}},onSubmit:l})}},{title:l("Public.Delete"),handle:()=>{let e=async e=>{let{tfa:l}=e;try{return await h.Di.removeApiKey({id:t.id,tfa:l}).then(f.D7),J.next(),!0}catch(e){return(0,u.Vf)({error:e}),!1}},l=a({validProps:{validType:"tfa",splitInput:!0,onSplitInputFinish:()=>({state:"complete"}),onSplitInputAutoSubmit:async t=>{var i,a;null==l||null==(i=l.dialogHandle.current)||i.setLoading("resolve",!0);let s=await e(t.getValues());null==l||null==(a=l.dialogHandle.current)||a.setLoading("resolve",!1),s&&(null==l||l.dialogInstance.destroy())}},onSubmit:e})}}],[s,t.id,l,a]);return(0,i.jsxs)("div",{className:(0,g.AH)({display:"inline-flex",alignItems:"center",gap:"12px","& > button":{color:"fn-brand-normal!",cursor:"pointer",p:"0!",minWidth:"auto!",height:"auto!",lineHeight:"1.2!",fontWeight:400,textTransform:"none",whiteSpace:"nowrap",backgroundColor:"transparent!",fontSize:"14px","&:hover":{backgroundColor:"transparent!",color:"fn-brand-normal!",opacity:.8}}}),children:[r.map(e=>(0,i.jsx)(c.i,{variant:"text",authType:["account_tfa"],verifyType:["kyc","email","login","tfa"],onClick:()=>{e.handle(t)},children:e.title},e.title)),(0,i.jsx)(z.d,{size:"small",classes:{track:(0,g.AH)({'[data-checked="true"] &':{backgroundColor:"fn-brand-normal"}})},checked:t.enabled,onChange:(e,l)=>{n({verifyType:["kyc","email","login","tfa"],callback:()=>((e,t)=>{let l=async l=>{let{tfa:i}=l,a={id:t.id,tfa:i},s=e?h.Di.enableApiKey(a):h.Di.disableApiKey(a);try{let l=await s;return await (0,f.D7)(l),t.enabled=e,J.next(),!0}catch(e){return(0,u.Vf)({error:e}),!1}},i=a({validProps:{validType:"tfa",splitInput:!0,onSplitInputFinish:()=>({state:"complete"}),onSplitInputAutoSubmit:async e=>{var t,a;null==i||null==(t=i.dialogHandle.current)||t.setLoading("resolve",!0);let s=await l(e.getValues());null==i||null==(a=i.dialogHandle.current)||a.setLoading("resolve",!1),s&&(null==i||i.dialogInstance.destroy())}},onSubmit:l})})(l,t)})}})]})}let U=(0,g.AH)({color:"text-tertiary","& td":{color:"text-tertiary!"},"& .row-btn":{color:"text-tertiary!"}}),Z=(0,g.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"}),X=(0,g.AH)({fontSize:"12px",color:"text-tertiary",whiteSpace:"nowrap"}),G=(0,g.AH)({fontSize:"14px",color:"text-primary",textOverflow:"ellipsis",overflow:"hidden",
1whiteSpace:"nowrap",textAlign:"right",flex:1}),J=new _.B;function Q(){let[e,t]=(0,C.useState)([]),[l,a]=(0,C.useState)(!0),{t:s}=(0,b.B)(),[n,r]=(0,C.useState)("");(0,C.useEffect)(()=>{let e=new I.yU;async function l(){try{let e=(await h.Di.apiKeyList().then(f.D7)).map(e=>{let t={...e};for(let l of e.max_scope.split(",")){let[e,i]=l.split(":");for(let l of B)l.value===i&&("account"===e&&(t.accountLabel=l.label),"trade"===e&&(t.tradeLabel=l.label),"wallet"===e&&(t.walletLabel=l.label))}return t});t(e)}catch(e){(0,u.Vf)({error:e})}finally{a(!1)}}return l(),e.add(J.subscribe(e=>{if(e){let{row:l,index:i}=e;t(e=>{let t=[...e];return Object.assign(t[i],l),t})}else a(!0),l()})),()=>{e.unsubscribe()}},[]);let{isLt:o}=(0,P.G)(),c=o("sm"),d=(0,C.useMemo)(()=>{if(!n)return e;let t=n.trim().toLowerCase();return e.filter(e=>{var l;return null==(l=e.name)?void 0:l.toLowerCase().includes(t)})},[e,n]);return(0,i.jsxs)("div",{className:(0,g.AH)({borderRadius:{base:0,sm:"16px"},mt:{sm:"16px",md:"24px"},mb:"40px",mx:{sm:"16px",md:"24px"},border:{base:"none",sm:"1px solid token(colors.base-secondary)"},overflow:"hidden"}),children:[(0,i.jsxs)("div",{className:(0,g.AH)({display:"flex",flexDirection:{base:"column",sm:"row"},alignItems:{base:"flex-start",sm:"center"},justifyContent:{sm:"space-between"},gap:{base:"16px",sm:"8px"},p:{base:"16px 16px 0",md:"16px 24px 0"}}),children:[(0,i.jsx)("h3",{className:(0,g.AH)({fontSize:{base:"16px",sm:"18px"},lineHeight:"22px",whiteSpace:"nowrap"}),children:s("Api.ListTitle","API Key List")}),(0,i.jsx)(S.pd,{value:n,onChange:e=>r(e.target.value),startAdornment:(0,i.jsx)(m.l,{src:"/static-lib/img/icon-mono/9nLlv8UT_kFk0W1l.svg",className:(0,g.AH)({width:"16px",height:"16px",color:"text-tertiary"})}),placeholder:s("Public.Search"),wrapClassName:(0,g.AH)({height:"36px",borderRadius:"40px",width:{sm:"160px"}})})]}),c?(0,i.jsx)(k.R,{visible:l,children:(0,i.jsx)("div",{className:(0,g.AH)({display:"flex",flexDirection:"column",gap:"16px",p:"16px"}),children:d.length>0?d.map(e=>(0,i.jsxs)("div",{className:(0,g.cx)((0,g.AH)({border:"1px solid token(colors.base-secondary)",borderRadius:"12px",p:"16px",display:"flex",flexDirection:"column",gap:"16px"}),!e.enabled&&U),children:[(0,i.jsxs)("div",{className:(0,g.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"}),children:[(0,i.jsx)("span",{className:(0,g.AH)({fontSize:"16px",fontWeight:600,color:"text-primary",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",flex:1}),title:e.name,children:e.name||"--"}),(0,i.jsx)(q,{row:e})]}),(0,i.jsxs)("div",{className:Z,children:[(0,i.jsx)("span",{className:X,children:s("Public.APIKeys")}),(0,i.jsxs)("div",{className:(0,g.AH)({display:"flex",alignItems:"center",justifyContent:"end",gap:"4px",maxWidth:"70%"}),children:[(0,i.jsx)("span",{className:G,title:e.client_id,children:e.client_id}),(0,i.jsx)(w.q0,{text:e.client_id,css:{root:{width:"16px",height:"16px",flexShrink:0}}})]})]}),(0,i.jsxs)("div",{className:Z,children:[(0,i.jsx)("span",{className:X,children:s("Api.AccountPermission","Account Permission")}),(0,i.jsx)("span",{className:G,children:s(e.accountLabel||"--")})]}),(0,i.jsxs)("div",{className:Z,children:[(0,i.jsx)("span",{className:X,children:s("Api.TradePermission","Trade Permission")}),(0,i.jsx)("span",{className:G,children:s(e.tradeLabel||"--")})]}),(0,i.jsxs)("div",{className:Z,children:[(0,i.jsx)("span",{className:X,children:s("Api.WalletPermission","Wallet Permission")}),(0,i.jsx)("span",{className:G,children:s(e.walletLabel||"--")})]}),(0,i.jsxs)("div",{className:Z,children:[(0,i.jsx)("span",{className:X,children:s("Public.CreatedTime")}),(0,i.jsx)("div",{className:G,children:(0,i.jsx)(A.H0,{value:e.timestamp})})]})]},e.id)):(0,i.jsx)("div",{className:(0,g.AH)({textAlign:"center",py:"40px",color:"text-tertiary"}),children:s("Public.NoData")})})}):(0,i.jsx)(N.y,{classes:{tableRoot:(0,g.AH)({marginTop:"16px",height:"auto",borderTop:"1px solid token(colors.base-secondary)",pb:"12px"}),table:(0,g.AH)({"& thead th":{fontSize:"12px"},"& .mui-table-tbody":{fontSize:"14px","& .mui-table-cell":{height:"48px",md:{height:"56px"}},"& tr:not(.mui-table-placeholder):last-child td":{borderBottom:"none"}},"& .mui-table-cell":{py:"14px","&:first-child":{paddingLeft:"16px",md:{paddingLeft:"24px"}},"&:last-child":{paddingRight:"16px",md:{paddingRight:"24px"}}}})},bordered:!0,borderGap:"0",loading:l,tableLayout:"auto",rowKey:e=>e.id,scroll:{x:1e3},data:d,rowClassName:e=>(0,g.cx)(!e.enabled&&U),columns:[{title:s("Api.Name","Name for the API key"),dataIndex:"name",render:e=>e||"--"},{title:s("Public.APIKeys"),dataIndex:"client_id",render:e=>(0,i.jsxs)("div",{className:(0,g.AH)({display:"flex",alignItems:"center",gap:"4px"}),children:[(0,i.jsx)("div",{children:e}),(0,i.jsx)(w.q0,{text:e,css:{root:{width:"16px",height:"16px",flexShrink:0}}})]})},{title:s("Api.AccountPermission","Account Permission"),dataIndex:"accountLabel",render:e=>s(e||"--")},{title:s("Api.TradePermission","Trade Permission"),dataIndex:"tradeLabel",render:e=>s(e||"--")},{title:s("Api.WalletPermission","Wallet Permission"),dataIndex:"walletLabel",render:e=>s(e||"--")},{title:s("Public.CreatedTime"),render:e=>(0,i.jsx)(A.H0,{value:e.timestamp})},{title:s("Public.Operating"),align:"center",fixed:"right",width:"177px",render:e=>(0,i.jsx)(q,{row:e})}]})]})}let Y=()=>{let{t:e}=(0,b.B)(),{createUpdateModal:t}=O(),{createViewModal:l}=K(),w=(0,p.g)(()=>{t({title:e("Api.Add"),onFinish:(e,t)=>new Promise(i=>{h.Di.createApiKey(e).then(f.D7).then(e=>{i(!0),t(!0),J.next(),setTimeout(()=>{l({type:"review",data:e})},300)}).catch(e=>{i(!1),(0,u.Vf)({error:e})})})})}),{DOCS_HOST:A}=(0,d.II)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.$,{}),(0,i.jsx)(a.w,{header:(0,i.jsx)(r.A,{}),footer:(0,i.jsx)(s.A,{}),main:(0,i.jsxs)(j.o,{css:{bg:"bg-secondary"},children:[(0,i.jsx)(y.r,{css:{display:{base:"block",sm:"none"}},icon:(0,i.jsx)(m.l,{src:"/static-lib/img/icon-mono/rgJozFgOBZnPmYk4.svg",className:(0,g.AH)({width:"20px",height:"20px"})}),title:e("Api.Title"),extra:(0,i.jsx)(n.i9,{}),divider:!0}),(0,i.jsxs)("div",{className:(0,g.AH)({display:"flex",justifyContent:{sm:"space-between"},alignItems:{base:"flex-start",sm:"center"},flexDirection:{base:"column",sm:"row"},gap:{base:"16px",sm:"24px"},padding:{base:"16px 16px 0",md:"24px 24px 0"},position:"relative"}),children:[(0,i.jsx)("h1",{className:(0,g.AH)({fontSize:{base:"18px",sm:"28px"},lineHeight:{base:"22px",sm:"34px"}}),children:e("Api.Title")}),(0,i.jsxs)("div",{className:(0,g.AH)({display:{base:"flex"},alignItems:"center",gap:"8px",width:{base:"100%",sm:"auto"}}),children:[(0,i.jsx)(x.$,{onClick:()=>J.next(),size:"medium",className:(0,g.AH)({order:{base:1,sm:3},color:"text-primary",xsToSm:{position:"absolute",top:"18px",right:"16px",p:0,width:"18px",height:"18px",bgColor:"transparent"},sm:{flexShrink:0,width:"36px",height:"36px",bgColor:"base-secondary",p:0,_hover:{opacity:.8}}}),children:(0,i.jsx)(m.l,{src:"/static-lib/img/icon-mono/fP7ZFfUUapl2UPN4.svg",className:(0,g.AH)({width:"18px",height:"18px",sm:{transform:"translateY(-1px)"}})})}),(0,i.jsx)(x.$,{href:A,target:"_blank",ellipsis:!0,size:"medium",color:"secondary",className:(0,g.AH)({order:{base:2},xsToSm:{flex:1},minWidth:0,height:"36px",px:"20px",fontSize:"14px"}),children:e("Api.Docs")}),(0,i.jsx)(c.i,{authType:["support_api"],verifyType:["email","login","tfa"],onClick:w,ellipsis:!0,size:"medium",className:(0,g.AH)({order:{base:3,sm:1},xsToSm:{flex:1},minWidth:0,height:"36px",px:"20px",fontSize:"14px"}),children:e("Api.Add")})]})]}),(0,i.jsxs)("ul",{className:(0,g.AH)({border:"1px solid token(colors.base-secondary)",borderRadius:"16px",mt:{base:"16px",md:"24px"},mx:{base:"16px",md:"24px"},p:{base:"16px 16px 16px 30px",md:"24px 24px 24px 40px"},fontSize:{base:"12px",sm:"14px"},fontWeight:500,lineHeight:{base:"18px",sm:"19px"},listStyle:"disc",color:"text-primary",display:"flex",flexDirection:"column",gap:"12px"}),children:[(0,i.jsx)(v.x,{parent:"li",i18nKey:"Public.ApiDesc1",components:{s:(0,i.jsx)("span",{})}}),(0,i.jsx)("li",{children:e("Public.ApiDesc2",{number:"8"})}),(0,i.jsx)("li",{children:e("Public.ApiDesc3")})]}),(0,i.jsx)(Q,{})]})})]})};Y.theme="toggle";var ee=!0;let et=Y},23025:(e,t,l)=>{"use strict";l.d(t,{$:()=>m});var i=l(37876),a=l(86365),s=l(48230),n=l.n(s),r=l(14232),o=l(539),c=l(13421),d=l.n(c);let{HTTP_HOST:u}=(0,a.DK)(),p=`${u}/en-us/support/3/articles/991`,x=`${u}/en-us/support/3/articles/1389`,m=(0,r.memo)(e=>{let{type:t="email",...l}=e,a=(0,r.useMemo)(()=>"email"===t?{href:p,i18nKey:"Public.EmailAbnormalLabel",defaults:"Didn't receive email, <a>need help?</a>"}:{href:x,i18nKey:"Public.PhoneAbnormalLabel",defaults:"Didn't receive phone, <a>need help?</a>"},[t]);return(0,i.jsx)("div",{...l,children:(0,i.jsx)(n(),{href:a.href,target:"_blank",className:d().link,
1children:(0,i.jsx)(o.x,{i18nKey:a.i18nKey,defaults:a.defaults,components:{a:(0,i.jsx)("div",{className:d().highlight})}})})})})},24392:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>a});var i=l(88493);l(43644),l(84605);let a=i.A},38058:(e,t,l)=>{"use strict";l.d(t,{r:()=>s});var i=l(37876),a=l(19485);function s(e){let{icon:t,title:l,titleExtra:s,extra:n,divider:r,css:o,...c}=e;return(0,i.jsxs)("div",{className:(0,a.AH)(o),...c,children:[(0,i.jsxs)("div",{className:(0,a.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",px:"16px",py:"12px"}),children:[(0,i.jsxs)("div",{className:(0,a.AH)({display:"flex",alignItems:"flex-end"}),children:[(0,i.jsxs)("div",{className:(0,a.AH)({display:"flex",alignItems:"center",gap:"8px"}),children:[t,(0,i.jsx)("span",{className:(0,a.AH)({fontSize:"14px",fontWeight:500,lineHeight:"17px"}),children:l})]}),s&&(0,i.jsx)("div",{className:(0,a.AH)({marginLeft:"8px"}),children:s})]}),n]}),r&&(0,i.jsx)("div",{className:(0,a.AH)({height:"1px",bg:"base-secondary"})})]})}},38784:(e,t,l)=>{"use strict";l.d(t,{A:()=>p});var i=l(37876),a=l(23977),s=l(84446),n=l(49995),r=l(14232),o=l(68483);let c={item:"mui-pagination-item",active:"mui-pagination-active",disabled:"mui-pagination-disabled",short:"mui-pagination-short",container:"mui-pagination-container",ghost:"mui-pagination-ghost"},d=(0,a.T)(s.A)({display:"flex"}),u=(0,a.T)(s.A)({width:"30px",height:"30px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",lineHeight:"28px",textAlign:"center",marginLeft:"8px",cursor:"pointer",userSelect:"none",fontWeight:500,fontSize:"12px",transition:"color 200ms",[`&.${c.short}`]:{marginLeft:"4px"},"&:first-of-type":{marginLeft:"0 !important"},"&:hover":{color:"var(--mui-pagination-color)"},[`&.${c.disabled}`]:{cursor:"not-allowed",color:"var(--textTertiary)"},[`&.${c.container}`]:{backgroundColor:"var(--paper)",border:"1px solid var(--divider)",[`.${c.disabled}`]:{backgroundColor:"var(--hover)"}},[`&.${c.ghost}`]:{border:"1px solid transparent"},[`&.${c.active}`]:{borderColor:"var(--mui-pagination-color)",color:"var(--mui-pagination-color)"}}),p=r.forwardRef((e,t)=>{let{currentPage:l=1,pageSize:a=10,pageTotal:s,count:p,showArrow:x,onChange:m,variant:h="ghost",short:f=!1,color:g="var(--primary)",className:b,style:v,sx:y,itemProps:j}=e,w=(0,r.useMemo)(()=>p??(s??0)*a,[p,a,s]),A=(0,r.useMemo)(()=>s??Math.ceil(w/a),[a,s,w]),N=(0,r.useCallback)(e=>{let{code:t}=e.currentTarget.dataset,i=Number(t);"prev"===t&&1!==l?i=l-1:"next"===t&&l!==A&&(i=l+1),i&&m&&m(i,a,e)},[m,l,A,a]),S=(0,r.useMemo)(()=>({"--mui-pagination-color":g}),[g]);if(w<=a)return null;let k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[],a=l?2:3;if(e<=(l?7:10))for(let t=1;t<e+1;t++)i.push({value:t,code:t});else{i.push({value:t,code:t});let s=t<=e-(l?4:5)?a:(l?5:7)-(e-t);for(let e=1;e<=s;e++){let l=t-e;if(l<1)break;if(e===s&&l>1){i.unshift({value:1,code:1},2===l?{value:2,code:2}:{value:"...",code:"prevEllipsis"});break}i.unshift({value:l,code:l})}s=t>=5?a:(l?6:8)-t;for(let l=1;l<=s;l++){let a=t+l;if(a>e)break;if(l===s&&a<=e-1){i.push(a===e-1?{value:e-1,code:e-1}:{value:"...",code:"nextEllipsis"},{value:e,code:e});break}i.push({value:a,code:a})}}return i}(A,l,f);return x&&(k.push({value:(0,i.jsx)(o.t,{code:"icon-arrow-right",fontSize:12}),code:"next"}),k.unshift({value:(0,i.jsx)(o.t,{code:"icon-arrow-left",fontSize:12}),code:"prev"})),(0,i.jsx)(d,{sx:y,className:b,style:{...v,...S},children:k.map(e=>(0,i.jsx)(u,{role:"button",onClick:N,"data-code":e.code,style:null==j?void 0:j.style,sx:null==j?void 0:j.sx,className:(0,n.default)(null==j?void 0:j.className,c.item,c[h],{[c.active]:l===e.code,[c.short]:f,[c.disabled]:"prev"===e.code&&1===l||"next"===e.code&&l===A}),children:"next"===e.code?(0,i.jsx)(o.t,{code:"icon-arrow-right",fontSize:"inherit"}):"prev"===e.code?(0,i.jsx)(o.t,{code:"icon-arrow-left",fontSize:"inherit"}):e.value},e.code))})})},44273:(e,t,l)=>{"use strict";l.d(t,{K:()=>a,s:()=>i});let i=e=>{let t="*".repeat(3);if(!e)return`${t}@${t}`;
1let[l,i]=e.split("@");return l.length>=5?`${l.slice(0,2)}*${l.slice(-2)}@${i}`:l.length>=3?`${l.slice(0,1)}*${l.slice(-1)}@${i}`:`${l.slice(0,1)}*@${i}`},a=e=>{let t="*".repeat(3);if(!e)return t;let l=e.slice(0,3),i=e.slice(-3);return`${l}${t}${i}`}},47354:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(14232),a=l(63738);function s(){return i.useContext(a.A)}},55382:e=>{e.exports={root:"root_Ifrm11VL",inputBox:"input-box_ef7OBr1x",input:"input_bJ4vMnLJ",outlined:"outlined_TWCyAGNQ",filled:"filled_VpSEkz12",standard:"standard_BG9p_toC",error:"error_ZLe9kng7",label:"label_l5HAQOKf",bottomContent:"bottom-content__3nfL_bke"}},63738:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});let i=l(14232).createContext(void 0)},64163:(e,t,l)=>{"use strict";l.d(t,{y:()=>i.y});var i=l(14868)},67282:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-center/api",function(){return l(21052)}])},80968:(e,t,l)=>{"use strict";l.d(t,{I:()=>o});var i=l(37876),a=l(84446),s=l(53738),n=l(39467),r=l(14232);let o=(0,r.forwardRef)((e,t)=>{let{startAdornment:l,startAdornmentPosition:o="start",endAdornmentPosition:c="end",endAdornment:d,startAdornmentClasses:u,endAdornmentClasses:p,adornmentClasses:x,withoutStartAdornment:m,withoutEndAdornment:h,startAdornmentSx:f,endAdornmentSx:g,fullWidth:b=!0,autoFocus:v,...y}=e,j=(0,r.useMemo)(()=>l&&!m?(0,i.jsx)(n.A,{classes:u,className:null==x?void 0:x.start,position:o,sx:f,children:(0,i.jsx)(a.A,{color:"var(--colors-text-secondary)",display:"flex",children:l})}):l,[u,null==x?void 0:x.start,l,o,m,f]),w=(0,r.useMemo)(()=>d&&!h?(0,i.jsx)(n.A,{classes:p,className:null==x?void 0:x.end,position:c,sx:g,children:d}):d,[p,null==x?void 0:x.end,d,c,h,g]);return(0,i.jsx)(s.A,{translate:"no",ref:t,...y,fullWidth:b,startAdornment:j,endAdornment:w,autoFocus:v})})},82698:e=>{e.exports={tip:"tip_U_xEUFA3",inputBox:"input-box__3OcsVZq9",input:"input_cjhcj_5W",emailAbnormalLabelWrap:"email-abnormal-label-wrap_dUZTJt4T"}},95372:(e,t,l)=>{"use strict";l.d(t,{i:()=>n});var i=l(37876),a=l(34186),s=l(5061);let n=(0,l(14232).forwardRef)(function(e,t){let{authType:l,verifyType:n,onClick:r,kycState:o,stopAccountType:c,modalProps:d,...u}=e,{onClickHandle:p}=(0,s.e)();return(0,i.jsx)(a.$,{ref:t,onClick:e=>p({authType:l,verifyType:n,kycState:o,stopAccountType:c,modalProps:d,callback:()=>null==r?void 0:r(e)}),...u})});n.displayName="OuiButtonAuth"}},e=>{e.O(0,[771,983,2262,692,4162,667,6470,4905,3738,2351,7455,9741,8493,7955,7092,346,1848,9961,3891,4788,220,2802,7239,636,6593,8792],()=>e(e.s=67282)),_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.