PageSourceSearch

https://www.blockfinex.com/_next/static/chunks/app/%5Blocale%5D/layout-2420a95e039828e3.js

js blockfinex.com collected 2026-10-06 20:20:57 UTC 110,401 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[203],{5935:function(e,l,t){Promise.resolve().then(t.t.bind(t,8003,23)),Promise.resolve().then(t.bind(t,1523)),Promise.resolve().then(t.bind(t,49)),Promise.resolve().then(t.t.bind(t,485,23)),Promise.resolve().then(t.t.bind(t,3137,23)),Promise.resolve().then(t.t.bind(t,5586,23)),Promise.resolve().then(t.t.bind(t,183,23)),Promise.resolve().then(t.bind(t,2834)),Promise.resolve().then(t.bind(t,3108)),Promise.resolve().then(t.bind(t,4963)),Promise.resolve().then(t.bind(t,9982)),Promise.resolve().then(t.bind(t,2642)),Promise.resolve().then(t.bind(t,4110)),Promise.resolve().then(t.bind(t,24)),Promise.resolve().then(t.bind(t,8815)),Promise.resolve().then(t.bind(t,692)),Promise.resolve().then(t.bind(t,43)),Promise.resolve().then(t.bind(t,9734))},2834:function(e,l,t){"use strict";t.r(l);var i=t(7437),n=t(2265),s=t(3145),o=t(9376),a=t(6059),r=t(5265),c=t(5887),d=t(6855),x=t(24),p=t(43),u=t(9734),m=t(9842),h=t(5850),v=t(8765),f=t(1428),g=t(8046),b=t(257);l.default=e=>{var l,t,j,w,N,C,k,y,_;let{data:z,logo:S}=e,{isLogin:M}=(0,f.e)(),{rateData:O,publicInfo:T,currencyListData:Z,baseConfig:U,buttonRadiusClass:L}=(0,v.s)(),{navigate:A}=(0,m.O)(),{isH5:P}=(0,x.F)(),I=(0,o.usePathname)(),E=(0,o.useSearchParams)(),q="".concat(I).concat(E.toString()?"?".concat(E.toString()):""),[R,H]=(0,n.useState)("USD"),{theme:V}=(0,u.F)(),{t:F,locale:W}=(0,p.Q)(),[D,B]=(0,n.useState)({open:"0"}),G=(0,n.useCallback)(()=>h.Z.post(g.HQ.common.community_open).then(e=>{let{code:l,data:t}=e;"0"===l.toString()&&B(t)}).catch(e=>{}),[]);(0,n.useEffect)(()=>{G()},[G]);let Q=(0,n.useMemo)(()=>(null==D?void 0:D.open)==="1",[D]),Y=(0,n.useMemo)(()=>{var e,l,t;return null!==(t=null==T?void 0:null===(l=T.lan)||void 0===l?void 0:null===(e=l.lanList)||void 0===e?void 0:e.filter(e=>1===e.hide))&&void 0!==t?t:[]},[null==T?void 0:null===(l=T.lan)||void 0===l?void 0:l.lanList]),J=(0,n.useMemo)(()=>{let e=Y.find(e=>W===e.id);return(null==e?void 0:e.name)||""},[Y,W]),K=(0,n.useMemo)(()=>{var e,l;return null!==(l=null==O?void 0:null===(e=O[R])||void 0===e?void 0:e.lang_coin)&&void 0!==l?l:"USD"},[O,R]);(0,n.useEffect)(()=>{H((0,g.ej)("user_Currency")||"USD")},[]);let X=(0,n.useCallback)(e=>{if(e!==W){if(M)h.Z.post(g.HQ.common.change_language,{language:e}).then(l=>{let{code:t}=l;if(0===Number(t)){(0,g.d8)("lan",e);let l=q.replace(W,e+"");window.location.href=l}}).finally(()=>{});else{(0,g.d8)("lan",e);let l=q.replace(W,e+"");window.location.href=l}}},[q,M,W]),$=(0,n.useCallback)(e=>{R!==e&&(H(e+""),(0,g.nJ)("user_Currency"),(0,g.d8)("user_Currency",e+""),window.location.reload())},[R]);return z.customHtmlSwitch&&!P?(0,i.jsx)("div",{className:"sm:hidden",dangerouslySetInnerHTML:{__html:"2"===V?z.customHtml.dayHtmlContent:z.customHtml.nightHtmlContent}}):1!==z.styleId||P?2!==z.styleId||P?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"max-w-[1200px]  px-[20px]   w-full  py-[64px] mx-auto flex justify-between flex-wrap gap-[10px] bg-special-3 sm:hidden",children:[(0,i.jsxs)("div",{className:"cursor-pointer pt-0 pb-0 ps-5 pe-6",children:[S&&(0,i.jsx)(d.Z,{src:S,maxWidth:146,maxHeight:64,alt:"logo",quality:90,className:"mb-[8px]"}),Q&&(0,i.jsx)(c.Z,{href:"/community",className:"text-text-1 text-m-16px line-clamp-3 font-medium hover:text-main-1 active:text-main-1 mb-[16px]",children:(0,i.jsxs)("div",{children:[" ",F("community.text1")]})}),(null===(C=z.communityList)||void 0===C?void 0:C.length)>0&&(0,i.jsx)("div",{className:"mb-[32px] grid grid-cols-5 gap-3",children:null===(k=z.communityList)||void 0===k?void 0:k.map((e,l)=>(0,i.jsx)(c.Z,{href:(null==e?void 0:e.redirectUrl)||"",className:"hover:scale-120 transition-all duration-300 rounded-[8px] overflow-hidden",children:(0,i.jsx)(s.default,{unoptimized:!0,src:"2"===V?e.dayUrl:e.nightUrl,alt:"community",width:24,height:24})},l))}),(0,i.jsxs)("div",{className:" relative  group group-language",children:[(0,i.jsxs)("div",{className:(0,g.cn)("flex items-center justify-between gap-[10px]  cursor-pointer  h-[44px] px-[16px] border border-solid border-fill-5  group-hover:bg-fill-6 group-hover:border-fill-6 ",L),children:[(0,i.jsx)(r.Z,{className:"align-middle  text-size-18px  ",name:"public_language",lineColors:"fill-text-1",areaColors:"fill-text-1"}),(0,i.jsxs)("span",{className:"text-text-1 text-size-14px font-normal ",children:[J,"/",K]}
1),(0,i.jsx)(r.Z,{className:(0,g.cn)("align-middle text-size-18px   group-hover:rotate-180 transition-all duration-300"),name:"public_arrow_down",lineColors:"fill-text-1",areaColors:"fill-text-1"})]}),(0,i.jsxs)("div",{className:" flex max-h-0 will-change-max-height box-border invisible  absolute bottom-[52px] left-0 rtl:right-0 rtl:left-auto overflow-y-hidden  rounded-[12px] z-[9] text-text-1 transition-all duration-300 group-hover:max-h-[333px]   group-hover:visible group-language-hover  shadow-[0_4px_18px_0_rgba(0,0,0,0.25)] ",children:[(0,i.jsxs)("div",{className:"p-[12px] flex flex-col bg-fill-3",children:[(0,i.jsx)("div",{className:"text-size-14px  text-text-2 mb-4 font-medium px-3",children:"Language"}),(0,i.jsx)("ul",{className:"flex-1 overflow-y-auto",children:(null==Y?void 0:Y.length)>0&&(null==Y?void 0:Y.map((e,l)=>(0,i.jsxs)("li",{className:(0,g.cn)("cursor-pointer text-start min-w-[330px]  px-3 py-[10px] rounded-[8px] overflow-hidden flex items-center justify-between  text-m-14px  font-medium  hover:bg-fill-6 hover:text-main-2",W===e.id?"text-main-1 bg-fill-6":"text-text-1"),onClick:()=>{X(e.id)},children:[e.name,W===e.id&&(0,i.jsx)(r.Z,{className:"align-middle text-size-14px   ",name:"public_selected",lineColors:"fill-main-1",areaColors:"fill-main-1"})]},l)))})]}),!!(null==Z?void 0:Z.length)&&(0,i.jsxs)("div",{className:"p-[12px] flex flex-col bg-fill-4",children:[(0,i.jsx)("div",{className:"text-size-14px  text-text-2 mb-4 font-medium px-3",children:"Currency"}),(0,i.jsx)("ul",{className:"flex-1 overflow-y-auto",children:null==Z?void 0:Z.map((e,l)=>(0,i.jsxs)("li",{className:(0,g.cn)("cursor-pointer text-start min-w-[167px]  px-3 py-[10px] rounded-[8px] overflow-hidden flex items-center justify-between  text-m-14px  font-medium  hover:bg-fill-6 hover:text-main-2",R===e.lan?"text-main-1 bg-fill-6":"text-text-1"),onClick:()=>{$(e.lan)},children:[e.text,R===e.lan&&(0,i.jsx)(r.Z,{className:"align-middle text-size-14px   ",name:"public_selected",lineColors:"fill-main-1",areaColors:"fill-main-1"})]},l))})]})]})]})]}),(null===(y=z.bottomNavigationList)||void 0===y?void 0:y.length)>0&&(null===(_=z.bottomNavigationList)||void 0===_?void 0:_.map((e,l)=>{var t;return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"    text-size-20px font-medium text-text-1 mb-4",children:e.title}),(0,i.jsx)("ul",{className:"flex flex-col gap-3",children:null===(t=e.articleList)||void 0===t?void 0:t.map((e,l)=>(0,i.jsx)(c.Z,{href:2===e.contentType?(null==e?void 0:e.redirectUrl)||"":"co"===b.env.HOSTAPI?"".concat(null==T?void 0:T.url,"/cms/").concat(null==e?void 0:e.redirectUrl):"/cms/".concat(null==e?void 0:e.redirectUrl),className:"text-text-3 text-m-14px line-clamp-3 font-normal hover:text-main-2 active:text-main-3",children:e.title},l))})]},l)}))]}),z.copyright&&(0,i.jsx)("p",{className:"text-center pt-6 pb-[64px] text-text-3 text-m-14px line-clamp-3 font-normal border-t-[1px] border-solid border-fill-5 sm:hidden",children:z.copyright})]}):(0,i.jsxs)("div",{className:"max-w-[1240px]  w-full px-[20px] py-[64px] mx-auto bg-special-3 sm:hidden",children:[(0,i.jsxs)("div",{className:"flex items-end justify-between mb-[48px]",children:[(0,i.jsxs)("div",{children:[S&&(0,i.jsx)(d.Z,{src:S,maxWidth:146,maxHeight:64,alt:"logo",quality:90}),z.copyright&&(0,i.jsx)("p",{className:"mt-2  text-text-2 text-m-14px  line-clamp-3 font-medium",children:z.copyright})]}),(0,i.jsxs)("div",{className:" relative  group group-language",children:[(0,i.jsxs)("div",{className:(0,g.cn)("flex items-center justify-between gap-[10px]  cursor-pointer  h-[44px] px-[16px] border border-solid border-fill-5  group-hover:bg-fill-6 group-hover:border-fill-6",L),children:[(0,i.jsx)(r.Z,{className:"align-middle   text-size-18px  ",name:"public_language",lineColors:"fill-text-1",areaColors:"fill-text-1"}),(0,i.jsxs)("span",{className:"text-text-1 text-size-14px font-normal ",children:[J,"/",K]}),(0,i.jsx)(r.Z,{className:(0,g.cn)("align-middle text-size-18px   group-hover:rotate-180 transition-all duration-300"),name:"public_arrow_down",lineColors:"fill-text-1",areaColors:"fill-text-1"})]}),(0,i.jsxs)("div",{className:" flex max-h-0  will-change-max-height  absolute bottom-[52px] right-0 mt-2   rtl:left-0 rtl:right-auto overflow-y-hidden  rounded-[12px] z-[9] text-text-1 transition-all duration-300 group-hover:max-h-[333px]   group-language-hover  shadow-[0_4px_18px_0_rgba(0,0,0,0.25)] ",children:[(0,i.jsxs)("div",{className:"p-[12px] flex flex-col bg-fill-3",children:[(0,i.jsx)("div",{className:"text-size-14px  text-text-2 mb-4 font-medium px-3",children:"Language"}),(0,i.jsx)("ul",{className:"flex-1 overflow-y-auto",children:null==Y?void 0:Y.map((e,l)=>(0,i.jsxs)("li",{className:(0,g.cn)("cursor-pointer text-start min-w-[330px]  px-3 py-[10px] rounded-[8px] overflow-hidden flex items-center justify-between   text-m-14px font-medium  hover:bg-fill-6 hover:text-main-2",W===e.id?"text-main-1 bg-fill-6":"text-text-1"),onClick:()=>{X(e.id)},children:[e.name,W===e.id&&(0,i.jsx)(r.Z,{className:"align-middle text-size-14px   ",name:"public_selected",lineColors:"fill-main-1",areaColors:"fill-main-1"})]},l))})]}),!!(null==Z?void 0:Z.length)&&(0,i.jsxs)("div",{className:"p-[12px] flex flex-col bg-fill-4",children:[(0,i.jsx)("div",{className:"text-size-14px  text-text-2 mb-4 font-medium px-3",children:"Currency"}),(0,i.jsx)("ul",{className:"flex-1 overflow-y-auto",children:null==Z?void 0:Z.map((e,l)=>(0,i.jsxs)("li",{className:(0,g.cn)("cursor-pointer text-start min-w-[167px]  px-3 py-[10px] rounded-[8px] overflow-hidden flex items-center justify-between   text-m-14px font-medium  hover:bg-fill-6 hover:text-main-2",R===e.lan?"text-main-1 bg-fill-6":"text-text-1"),onClick:()=>{$(e.lan)},children:[e.text,R===e.lan&&(0,i.jsx)(r.Z,{className:"align-middle text-size-14px   ",name:"public_selected",lineColors:"fill-main-1",areaColors:"fill-main-1"})]},l))})]})]})]})]}),(0,i.jsxs)("div",{className:"flex  justify-between",children:[null===(t=z.bottomNavigationList)||void 0===t?void 0:t.map((e,l)=>{var t;return(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"text-size-20px font-medium text-text-1 mb-4",children:e.title}),(0,i.jsx)("ul",{className:"flex flex-col gap-3",children:null===(t=e.articleList)||void 0===t?void 0:t.map((e,l)=>(0,i.jsx)(c.Z,{href:2===e.contentType?(null==e?void 0:e.redirectUrl)||"":"co"===b.env.HOSTAPI?"".concat(null==T?void 0:T.url,"/cms/").concat(null==e?void 0:e.redirectUrl):"/cms
1/".concat(null==e?void 0:e.redirectUrl),className:"text-text-3 text-m-14px  line-clamp-3 font-normal hover:text-main-2 active:text-main-3",children:e.title},l))})]},l)}),(z.moduleTitle||z.buttonTitle||U.app_page_url)&&(0,i.jsxs)("div",{className:"flex flex-col items-center",children:[z.moduleTitle&&(0,i.jsx)("h3",{className:"text-text-1 text-m-18px line-clamp-3 font-medium mb-[48px]",children:z.moduleTitle}),z.buttonTitle&&(0,i.jsx)(a.Z,{type:"solid",paddingW:"24px",height:"56px",fontSize:"16px",className:"min-w-[240px]",onClick:()=>{z.buttonUrl&&A(z.buttonUrl)},children:z.buttonTitle}),U.app_page_url&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"mt-[32px] border border-fill-5 rounded-[16px] overflow-hidden p-2",children:(0,i.jsx)(s.default,{unoptimized:!0,src:U.app_page_url,width:136,height:136,alt:"qrCode-big",sizes:"136px",className:"object-contain rounded-[16px]"})}),(0,i.jsx)("p",{className:"text-text-2 text-m-14px line-clamp-3 font-medium mt-[12px]",children:F("newHome.scanToDownloadApp")})]})]})]}),(null===(j=z.communityList)||void 0===j?void 0:j.length)===0&&Q&&(0,i.jsx)(c.Z,{href:"/community",className:"text-text-1  hover:text-main-1 active:text-main-1",children:(0,i.jsx)("div",{className:"text-m-18px line-clamp-3 font-medium me-[12px]",children:F("community.text1")})}),(null===(w=z.communityList)||void 0===w?void 0:w.length)>0&&(0,i.jsxs)("div",{className:"mt-[48px] flex gap-[12px] items-center ",children:[Q&&(0,i.jsx)(c.Z,{href:"/community",className:"text-text-1  hover:text-main-1 active:text-main-1",children:(0,i.jsx)("div",{className:"text-m-18px line-clamp-3 font-medium me-[12px]",children:F("community.text1")})}),!Q&&(0,i.jsx)("div",{className:"text-text-1 text-m-18px line-clamp-3 font-medium me-[12px]",children:F("community.text1")}),null===(N=z.communityList)||void 0===N?void 0:N.map((e,l)=>(0,i.jsx)(c.Z,{href:(null==e?void 0:e.redirectUrl)||"",className:"hover:scale-120 transition-all duration-300  rounded-[8px] overflow-hidden",children:(0,i.jsx)(s.default,{unoptimized:!0,src:"2"===V?e.dayUrl:e.nightUrl,alt:"community",width:24,height:24})},l))]})]})}},3108:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return z}});var i=t(7437),n=t(2265),s=t(3577),o=t(3145),a=t(9376),r=t(6059),c=t(5265);function d(e){let{title:l,content:t,btnText:s,onClose:o,onConfirm:a}=e;return(0,n.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"fixed inset-0 z-[1002] bg-fill-8"}),(0,i.jsxs)("div",{style:{animation:"zoom-in 0.2s ease-out forwards"},className:"fixed z-[1003] left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[360px] max-w-[calc(100vw-64px)] rounded-[12px] bg-fill-2 p-6 sm:p-5",children:[(0,i.jsxs)("div",{className:"relative flex items-center justify-center mb-4",children:[(0,i.jsx)("span",{className:"text-text-1 text-[18px] font-medium leading-none text-center",children:l}),(0,i.jsx)("button",{className:"absolute right-0 top-1/2 -translate-y-1/2 flex items-center justify-center",onClick:o,children:(0,i.jsx)(c.Z,{className:"text-size-20px",name:"public_close_20",lineColors:"fill-special-4",areaColors:"fill-special-4"})})]}),(0,i.jsx)("p",{className:"text-text-2 text-[14px] leading-5 mb-5",children:t}),(0,i.jsx)("button",{className:"w-full h-[44px] rounded-[100px] bg-button-1 text-text-4 text-[16px] font-medium",onClick:a,children:s})]})]})}var x=t(6855),p=t(8324),u=t(692),m=t(43),h=t(9734),v=t(9842),f=(e,l,t)=>{(0,n.useEffect)(()=>{let i;if(!t)return;let n=async()=>{await e(),i=setTimeout(n,l)};return n(),()=>clearTimeout(i)},[t,e,l])},g=t(9886),b=t(5850),j=t(4381),w=t(8765),N=t(1428),C=t(8046),k=t(7885),y=t(1886),_=t(257);function z(e){var l,t,z,S,M,O,T,Z,U,L,A,P,I,E,q,R,H,V,F,W,D,B,G,Q,Y,J,K,X,$,ee,el,et,ei,en,es,eo,ea,er,ec,ed,ex,ep,eu,em,eh,ev,ef,eg,eb,ej,ew,eN,eC,ek,ey,e_,ez,eS,eM,eO,eT;let{navigate:eZ}=(0,v.O)(),{success:eU,error:eL}=(0,g.p)(),eA=(0,a.useRouter)(),{headerData:eP,isMiniSaas:eI,logo:eE,h5Logo:eq}=e,{t:eR,locale:eH}=(0,m.Q)(),{theme:eV,toggleTheme:eF}=(0,h.F)(),eW=(0,a.usePathname)(),eD=(0,a.useSearchParams)(),eB="".concat(eW).concat(eD.toString()?"?".concat(eD.toString()):""),eG=eB.replace(eH,""),eQ=eW.split("/").slice(2).join("/")||"/",eY=null===p.R||void 0===p.R?void 0:p.R[eQ],{showPersonalAssetsAndOrders:eJ,showTopLevelAssetsAndOrders:eK}=(0,y.bS)(eI),eX="/"===eQ||!(null==eY?void 0:eY.headScroll),{isLogin:e$,userInfoIsReady:e0,userInfo:e1,logout:e2}=(0,N.e)(),{insertComponent:e4}=(0,u.X)(),{rateData:e3,future:e6,appDownLoad:e5,publicInfo:e8,currencyListData:e7,baseConfig:e9}
1=(0,w.s)(),[le,ll]=(0,n.useState)(null),[lt,li]=(0,n.useState)(""),[ln,ls]=(0,n.useState)(!1),[lo,la]=(0,n.useState)(!1),[lr,lc]=(0,n.useState)("0"),[ld,lx]=(0,n.useState)("0"),[lp,lu]=(0,n.useState)("0"),[lm,lh]=(0,n.useState)("0"),[lv,lf]=(0,n.useState)("0"),[lg,lb]=(0,n.useState)("0"),[lj,lw]=(0,n.useState)("0"),[lN,lC]=(0,n.useState)("0"),[lk,ly]=(0,n.useState)("0"),[l_,lz]=(0,n.useState)("0"),[lS,lM]=(0,n.useState)("0"),[lO,lT]=(0,n.useState)("0"),[lZ,lU]=(0,n.useState)("0"),[lL,lA]=(0,n.useState)(),[lP,lI]=(0,n.useState)([]),[lE,lq]=(0,n.useState)(0),[lR,lH]=(0,n.useState)({}),[lV,lF]=(0,n.useState)(!1),[lW,lD]=(0,n.useState)(!1),[lB,lG]=(0,n.useState)(!1),[lQ,lY]=(0,n.useState)(!1),[lJ,lK]=(0,n.useState)(!1),[lX,l$]=(0,n.useState)(!1),[l0,l1]=(0,n.useState)(!1),[l2,l4]=(0,n.useState)(!1),[l3,l6]=(0,n.useState)(!1),[l5,l8]=(0,n.useState)(!1),[l7,l9]=(0,n.useState)(!1),[te,tl]=(0,n.useState)(!1),[tt,ti]=(0,n.useState)(!1),[tn,ts]=(0,n.useState)(null),[to,ta]=(0,n.useState)(null),[tr,tc]=(0,n.useState)(!1),[td,tx]=(0,n.useState)("USD"),[tp,tu]=(0,n.useState)("UTC+00"),tm=(0,n.useMemo)(()=>{var e;return null==e8?void 0:null===(e=e8.switch)||void 0===e?void 0:e.kline_timezone_conf},[e8]),th=(0,n.useMemo)(()=>{var e;return tm&&(null===(e=JSON.parse(tm))||void 0===e?void 0:e.timeZone)||"UTC+08"},[tm]),tv=(0,n.useMemo)(()=>[{code:th,value:th,subValue:eR("trade.kline.text14",{timezone:th})},{code:"UTC+00",value:"UTC",subValue:eR("trade.kline.text14",{timezone:"UTC"})},{code:"24H",value:eR("trade.kline.text15"),subValue:eR("trade.kline.text16")}],[th,eR]),tf=(0,n.useCallback)(e=>{tu(e),(0,C.d8)("klineTimezone",e),window.location.reload()},[]),tg=(0,n.useRef)(null),tb=(0,n.useRef)([]),tj=(0,n.useRef)(null),[tw,tN]=(0,n.useState)([]),[tC,tk]=(0,n.useState)(4),ty=(0,n.useRef)(null),t_=e8.url||{},tz=(0,n.useMemo)(()=>{var e;return(null==e6?void 0:null===(e=e6.contractProInfo)||void 0===e?void 0:e.trim())||"https://futuresdoc.gitbook.io/help-center"},[null==e6?void 0:e6.contractProInfo]),tS=(0,n.useMemo)(()=>{var e,l,t;let i=Number(null!==(l=lR.isSub)&&void 0!==l?l:0),n=(null==e8?void 0:null===(e=e8.switch)||void 0===e?void 0:e.subUserOpen)==="1",s=Number(null!==(t=lR.canChange)&&void 0!==t?t:0);return 0===i?Number(n):s},[lR.isSub,lR.canChange,null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:l.subUserOpen]),[tM,tO]=(0,n.useState)(!1),[tT,tZ]=(0,n.useState)(!1),[tU,tL]=(0,n.useState)(!0),tA=(0,n.useMemo)(()=>null==e1?void 0:e1.myLevel,[e1]),tP=(0,n.useMemo)(()=>"0"!==tA?"VIP ".concat(tA):eR("vip.text45"),[tA,eR]),[tI,tE]=(0,n.useState)(!1),[tq,tR]=(0,n.useState)(""),[tH,tV]=(0,n.useState)(null),tF=(0,n.useMemo)(()=>({SPOT_ASSET_AVG:eR("vip.text26"),CONTRACT_ASSET_AVG:eR("vip.text27"),STAKING_ASSET_AVG:eR("vip.text28"),C2C_ASSET_AVG:eR("vip.text29"),TOTAL_ASSET_AVG:eR("vip.text30"),SPOT_VOLUME:eR("vip.text31"),SPOT_AVG_VOLUME:eR("vip.text32"),LEVERAGE_VOLUME:eR("vip.text33"),CONTRACT_VOLUME:eR("vip.text34"),CONTRACT_AVG_VOLUME:eR("vip.text35"),TOTAL_VOLUME:eR("vip.text36"),TOTAL_AVG_VOLUME:eR("vip.text37")}),[eR]),tW=(0,n.useCallback)(()=>{let{thresholdCategory:e,thresholdType:l}=tH||{};1===e?eZ("/assets/recharge"):"CONTRACT_VOLUME"===l||"CONTRACT_AVG_VOLUME"===l?eZ("/futures"):eZ("/trade")},[tH,eZ]),[tD,tB]=(0,n.useState)(!1),[tG,tQ]=(0,n.useState)(!1),[tY,tJ]=(0,n.useState)(""),[tK,tX]=(0,n.useState)("lan"),[t$,t0]=(0,n.useState)(!1),t1=(0,n.useRef)(!1),t2=(0,n.useMemo)(()=>({0:"text-warning-1 bg[#272014]",1:"text-rise-1 bg-rise-4",2:"text-fall-1 bg-fall-4",3:"text-text-2 bg-fill-3",4:"text-text-2 bg-fill-3"}),[]),t4=(0,n.useMemo)(()=>({0:"fill-warning-1",1:"fill-rise-1",2:"fill-fall-1",3:"fill-text-1",4:"fill-text-1"}),[]),t3=(0,n.useCallback)(()=>{var e;b.Z.post("co_agent_status",{companyId:null==e8?void 0:null===(e=e8.msg)||void 0===e?void 0:e.companyId,originUid:null==e1?void 0:e1.id},{hostType:"co"}).then(e=>{let{code:l,data:t}=e;"0"===l.toString()&&(t1.current=!0,t0(1===t.isCoAgent))})},[null==e8?void 0:null===(t=e8.msg)||void 0===t?void 0:t.companyId,null==e1?void 0:e1.id]),t6=(0,n.useMemo)(()=>({home:(null==t_?void 0:t_.exUrl)?"".concat(null==t_?void 0:t_.exUrl,"/").concat(eH,"/"):"/",exUrl:(null==t_?void 0:t_.exUrl)?"".concat(null==t_?void 0:t_.exUrl,"/").concat(eH):"",otcUrl:(null==t_?void 0:t_.otcUrl)?"".concat(null==t_?void 0:t_.exUrl,"/").concat(eH):"",coUrl:(null==t_?void 0:t_.coUrl)?"".concat(null==t_?void 0:t_.exUrl,"/").concat(eH,"/futures"):""}
1),[null==t_?void 0:t_.coUrl,null==t_?void 0:t_.exUrl,null==t_?void 0:t_.otcUrl,eH]),t5=eR("couponCenter.couponCenter"),t8=(0,n.useMemo)(()=>{let e=(null==eP?void 0:eP.navigationDetailList)||[];return t6?null==e?void 0:e.map(e=>{var l,t;let i={...e},n=(null===(l=i.type)||void 0===l?void 0:l.toString())||"";if("1"===n?i.httpUrl=t6.exUrl+i.httpUrl:"2"===n?i.httpUrl=t6.otcUrl+i.httpUrl:"3"===n&&(i.httpUrl=t6.coUrl),null===(t=i.childNavigationList)||void 0===t?void 0:t.length){let l=!0;i.childNavigationList=i.childNavigationList.map(t=>{var i;t.id===e.id&&(l=!1);let n={...t},s=(null===(i=n.type)||void 0===i?void 0:i.toString())||"";return"1"===s?n.httpUrl=t6.exUrl+n.httpUrl:"2"===s?n.httpUrl=t6.otcUrl+n.httpUrl:"3"===s&&(n.httpUrl=t6.coUrl),n}),l&&i.childNavigationList.unshift({...i,isPushNav:!0})}return i}):e},[t6,eP]),t7=(0,n.useCallback)(e=>{var l,t,i,n;null===(l=tj.current)||void 0===l||l.classList.remove("hidden"),tb.current.forEach(e=>null==e?void 0:e.classList.remove("hidden"));let s=e-((null===(t=tj.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0),o=tb.current[0],a=o?parseFloat(window.getComputedStyle(o).marginInlineEnd):20,r=0,c=0;tb.current.forEach(e=>{if(!e)return;let l=e.getBoundingClientRect().width+a;(c+=l)<=s?(r++,e.classList.add("block"),e.classList.remove("hidden")):(e.classList.add("hidden"),e.classList.remove("block"))}),tk(r),tN(t8.slice(r)),ll(null);let d=r>=tb.current.length;null===(i=tj.current)||void 0===i||i.classList.toggle("hidden",d),null===(n=tj.current)||void 0===n||n.classList.toggle("block",!d)},[t8]),t9=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e;let l=()=>{let e=tg.current;if(window.innerWidth<=768||!e)return;document.body.style.overflow="auto";let l=(0,C.Ds)(e=>{let{width:l}=e.contentRect;t9.current!==l&&(t9.current=l,t7(l))},100),t=new ResizeObserver(e=>{l(e[0])});return t.observe(e),t7(e.getBoundingClientRect().width),()=>{var e;null==l||null===(e=l.cancel)||void 0===e||e.call(l),t.disconnect()}},t=()=>{var e;window.innerWidth<=768&&!t1.current&&(null==e8?void 0:null===(e=e8.msg)||void 0===e?void 0:e.companyId)&&(null==e1?void 0:e1.id)&&t3()};e=l(),t();let i=(0,C.Ds)(()=>{null==e||e(),e=l(),t()},150);return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),i.cancel(),null==e||e()}},[t7,t3,null==e8?void 0:null===(z=e8.msg)||void 0===z?void 0:z.companyId,null==e1?void 0:e1.id]);let ie=(0,n.useMemo)(()=>{var e,l;return(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.exchange_hide)||void 0===e?void 0:e.toString())==="0"},[e8]),il=(0,n.useMemo)(()=>{var e,l;return(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.ieo_pool_hide)||void 0===e?void 0:e.toString())==="1"},[e8]),it=(0,n.useMemo)(()=>{var e,l;return(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.otc_open)||void 0===e?void 0:e.toString())==="1"},[e8]),ii=(0,n.useMemo)(()=>{var e,l;return(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.fiat_trade_open)||void 0===e?void 0:e.toString())==="1"},[e8]),is=(0,n.useMemo)(()=>{var e,l;return(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.lever_open)||void 0===e?void 0:e.toString())==="1"},[e8]),io=(0,n.useMemo)(()=>{var e,l;return(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.lever_cross_open)||void 0===e?void 0:e.toString())==="1"},[e8]),ia=(0,n.useMemo)(()=>{var e,l;return(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.savings_open)||void 0===e?void 0:e.toString())==="1"},[e8]),ir=(0,n.useCallback)(()=>{b.Z.post(C.HQ.mesage.message_count,{},{headers:new s.uu({"exchange-auto":"1"})}).then(e=>{let{code:l,data:t}=e;"0"===l.toString()&&(lA(t.noReadMsgCount),lI(t.userMessageList))}).finally(()=>{})},[]),ic=(0,n.useCallback)(()=>{b.Z.post(C.HQ.taskCenter.task_count,{},{hostType:"task"}).then(e=>{let{code:l,data:t}=e;"0"===l.toString()&&lq(t.count)})},[]),id=(0,n.useCallback)(()=>{b.Z.post(C.HQ.common.change_account_flag).then(e=>{let{code:l,data:t}=e;"0"===l.toString()&&lH(t)})},[]),ix=(0,n.useCallback)(()=>{b.Z.post(C.HQ.vip.config).then(e=>{let{code:l,data:t}=e;"0"===l.toString()&&(tO(1===t.functionSwitch),tZ(t.customizationSwitch))})},[]),ip=(0,n.useCallback)(()=>{b.Z.post(C.HQ.vip.my_level).then(e=>{let{code:l,data:t}=e;if("0"===l.toString()){let{nextLevel:e}=t;tE(!!t.isAccordWithMaxLevel),t.isAccordWithMaxLevel||(tR("VIP ".concat(null==e?void 0:e.levelCode)),tV(t.nextLevel.thresholds.map(e=>({...e,title:tF[e.thresholdType],currentValue:(0,C.Yi)(Number(e.currentValue).toFixed(2)),thresholdValue:(0,C.Yi)(Number(e.thresholdValue).toFixed(2)),progressWidth:"".concat(100*Math.min(e.currentValue/e.thresholdValue,1),"%"),buttonText:1===e.thresholdCategory?eR("vip.text4"):eR("vip.text3")}))[0]))}})},[tF,eR]),iu=(0,n.useCallback)(()=>{tL(!1),(0,C.d8)("isShowVipGuide",!1,new Date(new Date().getTime()+864e5))},[]);(0,n.useEffect)(()=>{e$&&(tL("false"!==(0,C.ej)("isShowVipGuide")),ix(),ip())},[ix,ip,e$]);let im=(0,n.useCallback)(()=>{var e;let l=(null==e1?void 0:null===(e=e1.realAuthType)||void 0===e?void 0:e.toString())==="2"?1:0;b.Z.post("sumsub/questionnaire/config",{type:l}).then(e=>{let{code:l,data:t}=e;"0"===l.toString()&&ts(t)})},[null==e1?void 0:e1.realAuthType]);(0,n.useEffect)(()=>{e$&&e0&&im()},[e$,e0,im]),f(ir,15e3,e$&&e0),f(ic,15e3,e$&&e0),(0,n.useEffect)(()=>{tx((0,C.ej)("user_Currency")||"USD"),tu((0,C.ej)("klineTimezone")||"UTC+00"),ls("true"===(0,C.ej)("header_assets_hide")),b.Z.post("/common/pre_singapore").then(e=>{let{code:l,data:t}=e;"0"!==l.toString()||t||['#common-header [data-link*="financing"]','#common-header [data-link*="manageFinance"]','#common-header [data-link*="financeOrder"]','.common-header-h5 [data-link*="financing"]'].forEach(e
1=>{document.querySelectorAll(e).forEach(e=>{e.style.display="none"})})})},[]);let ih=(0,n.useCallback)(e=>{let l="".concat(window.origin,"/").concat(eH).concat(e);window.location.href=l},[eH]),iv=(0,n.useMemo)(()=>{var e,l,t,i,n;let{otcUrl:s,coUrl:o,exUrl:a}=t6,{switch:r}=e8||{},c=[];ie||c.push({title:eR("order.index.exOrder"),link:"/order/exchangeOrder"}),(null==r?void 0:r.instantSwapOpen)&&c.push({title:eR("instantOrder.title"),link:"/order/instantOrder"});let d=ii?eR("assets.b2c.otcShow.otcOrder"):eR("order.index.otcOrder");return s&&c.push({title:d,link:"/order/otcOrder"}),((null==r?void 0:null===(e=r.buyCryptoOpen)||void 0===e?void 0:e.toString())==="1"||(null==r?void 0:null===(l=r.onRamperOpen)||void 0===l?void 0:l.toString())==="1")&&c.push({title:eR("newOtc.text48"),link:"/order/thirdOrder"}),!s&&it&&c.push({title:d,link:"/order/otcOrder"}),o&&c.push({title:eR("order.coOrder.coOrder"),link:"co"===_.env.HOSTAPI?"/order/coOrder":"".concat(a,"/futures/order/coOrder")}),is&&c.push({title:eR("order.index.isolatedMargin"),link:"/order/isolatedMargin"}),io&&c.push({title:eR("order.index.crossMargin"),link:"/order/crossMargin"}),(null==r?void 0:null===(t=r.mortgage_borrow_hide)||void 0===t?void 0:t.toString())==="1"&&c.push({title:eR("broToloan.common.order"),link:"/order/toLoanOrder"}),(null==r?void 0:null===(i=r.pixOpen)||void 0===i?void 0:i.toString())==="1"&&c.push({title:eR("brlPay.text52"),link:"/order/pixOrder"}),(lo||(null==e8?void 0:null===(n=e8.switch)||void 0===n?void 0:n.grid_trade_switch)==="1")&&c.push({title:eR("gridTrading.robotOrder.robotOrderText"),link:"co"===_.env.HOSTAPI?"/order/robotOrder":"".concat(a,"/futures/order/robotOrder")}),ia&&c.push({title:eR("financeManagement.text1"),link:"/order/financeOrder"}),c.push({title:eR("assets.index.flowingWater"),link:"/order/cashFlow"}),(0,y.u4)(c,eI)},[io,ie,ii,t6,eI,is,ia,e8,lo,it,eR]);(0,n.useEffect)(()=>{ie&&eB.includes("/order/exchangeOrder")&&il&&(iv.length>0&&iv[0].link?eZ(iv[0].link):ih("/sly/order/ipfsOrder"))},[ie,eB,il,ih,eZ,iv,eA]),(0,n.useEffect)(()=>{ie&&eB.indexOf("/order/exchangeOrder")>-1&&il&&(iv.length&&iv[0].link?eZ(iv[0].link):ih("/sly/order/ipfsOrder"))},[ie,eB,il,ih,eZ,iv,eA]);let{data:ig,error:ib,fetchData:ij}=(0,j._)();(0,n.useEffect)(()=>{ib&&eL(ib)},[eL,ib]),(0,n.useEffect)(()=>{e$&&ij()},[ij,e$]),(0,n.useEffect)(()=>{if(ig&&Object.keys(ig).length>0){let e=(0,C.ej)("user_Currency")||"USD",{totalbalance:l,balance:t,c2cBalance:i,futuresBalance:n,leverBalance:s,savingsBalance:o,crossLeverBalance:a,futuresGridBalance:r}=ig,c=(0,C.IH)(s,a),d=(0,C.IH)(ig.leverRatio,ig.crossLeverRatio);la(1===Number(ig.futuresGridSwitch)),lc((0,C.Yi)((0,C.sc)(l,e3,"BTC",e))),lx((0,C.Yi)((0,C.sc)(t,e3,"BTC",e))),lu((0,C.Yi)((0,C.sc)(i,e3,"BTC",e))),lh((0,C.Yi)((0,C.sc)(n,e3,"BTC",e))),lf((0,C.Yi)((0,C.sc)(c,e3,"BTC",e))),lb((0,C.Yi)((0,C.sc)(o,e3,"BTC",e))),lw((0,C.Yi)((0,C.sc)(r,e3,"BTC",e))),lC((0,C.YP)(100*ig.ratio,2)),ly((0,C.YP)(100*ig.c2cRatio,2)),lz((0,C.YP)(100*ig.futuresRatio,2)),lM((0,C.YP)(100*d,2)),lT((0,C.YP)(100*ig.savingsRatio,2)),lU((0,C.YP)(100*ig.futuresGridRatio,2))}},[ig,e3]);let iw=(0,n.useMemo)(()=>{var e,l;let{otcUrl:t,coUrl:i,exUrl:n}=t6,s="co"===_.env.HOSTAPI,o=[];return o.push({title:eR("assets.account.text1"),link:"/assets/exchangeAccount",ratio:lN,balanceFold:ld}),(t||it)&&o.push({title:eR("assets.account.text2"),link:"/assets/otcAccount",ratio:lk,balanceFold:lp}),ii&&o.push({title:eR("assets.account.text2"),link:"/assets/b2cAccount",ratio:lk,balanceFold:lp}),i&&o.push({title:eR("assets.account.text3"),link:s?"/assets/coAccount":"".concat(n,"/futures/assets/coAccount"),accountType:"co",ratio:l_,balanceFold:lm}),(is||io)&&o.push({title:eR("assets.account.text4"),link:"/assets/leverageAccount",ratio:lS,balanceFold:lv}),ia&&o.push({title:eR("assets.account.text5"),link:"/assets/manageFinance",ratio:lO,balanceFold:lg}),(lo||(null==e8?void 0:null===(l=e8.switch)||void 0===l?void 0:null===(e=l.grid_trade_switch)||void 0===e?void 0:e.toString())==="1")&&o.push({title:eR("assets.account.text6"),link:s?"/assets/robotAccount":"".concat(i,"/assets/robotAccount"),ratio:lZ,balanceFold:lj}),o},[lp,lk,io,ii,lm,l_,t6,lv,is,lS,ia,null==e8?void 0:null===(S=e8.switch)||void 0===S?void 0:S.grid_trade_switch,lj,lo,lZ,it,lg,lO,ld,lN,eR]),iN=(0,n.useMemo)(()=>e8&&(null==t_?void 0:t_.coUrl)?"".concat(null==t_?void 0:t_.exUrl,"/").concat(eH,"/futures/futuresData"):"",[null==t_?void 0:t_.coUrl,
1null==t_?void 0:t_.exUrl,eH,e8]),iC=(0,n.useCallback)(e=>["futuresData","coAccount","coFlowingWater","coProfitRecord","coOrder","coBroker","competition","robotOrder","robotAccount"].some(l=>e.includes(l)),[]),ik=(0,n.useCallback)((e,l)=>{if(e.indexOf("javascript:void(0)")>-1)return;if(e.startsWith("http")){window.location.href=e;return}let t={"/order/coOrder":()=>eZ("/order/coOrder"),"/assets/coAccount":()=>eZ("/assets/coAccount"),"/assets/robotAccount":()=>eZ("/assets/robotAccount")};if(t[e]){t[e]();return}let i=iC(e)?"".concat(t6.coUrl,"/").concat(e):"".concat(null==t_?void 0:t_.exUrl,"/").concat(eH);window.location.href="".concat(i).concat(e);let n="".concat(null==t_?void 0:t_.exUrl,"/").concat(eH).concat(e);iC(e)&&(n="".concat(t6.coUrl).concat(e)),l&&"black"===l?window.open(n):window.location.href=n},[t6.coUrl,iC,null==t_?void 0:t_.exUrl,eH,eZ]),iy=(0,n.useCallback)((e,l)=>{if("/futuresData"===e){var t;let e=C.mb.get("futuresMarketCurrent");window.location.href="".concat(iN,"?marginCoin=").concat((null==e6?void 0:null===(t=e6.contractInfo)||void 0===t?void 0:t.marginCoin)||"","&type=").concat(e,"&contractId=").concat(null==e6?void 0:e6.contractId)}else"/futuresTutorial"===e?window.location.href=tz:"co"===_.env.HOSTAPI?ik(e,l):l&&"black"===l?window.open(e):window.location.href=e},[null==e6?void 0:e6.contractId,null==e6?void 0:null===(M=e6.contractInfo)||void 0===M?void 0:M.marginCoin,iN,ik,tz]),i_=(0,n.useCallback)(e=>{let l;if(e.startsWith("http")){window.location.href=e;return}l="co"===_.env.HOSTAPI?"/assets/coAccount"===e||"/assets/robotAccount"===e?t6.coUrl:t6.exUrl:"".concat(window.origin,"/").concat(eH),window.location.href="".concat(l).concat(e)},[t6.coUrl,t6.exUrl,eH]),iz=(0,n.useCallback)((e,l)=>{"assets"===e&&ij(),"more"===e&&ll(l)},[ij]),iS=(0,n.useCallback)(e=>{var l,t;if("order"===e){if(!iv.length)return;"co"===_.env.HOSTAPI?window.location.href="".concat(t6.exUrl).concat(iv[0].link):eZ(iv[0].link);return}if("/register"===e&&(null==e8?void 0:null===(t=e8.msg)||void 0===t?void 0:null===(l=t.companyId)||void 0===l?void 0:l.toString())==="1490"){window.location.href="https://centurioninvest.com/en/register";return}if(e.startsWith("http")){window.location.href=e;return}if("co"===_.env.HOSTAPI){ik(e);return}eZ(e)},[ik,t6.exUrl,eZ,iv,null==e8?void 0:null===(O=e8.msg)||void 0===O?void 0:O.companyId]),iM=(0,n.useCallback)(()=>{C.mb.remove("exTradingViewData"),C.mb.remove("exTradingViewDataH5"),C.mb.remove("futuresTradingViewData"),eF()},[eF]),iO=(0,n.useCallback)(()=>{(null==e1?void 0:e1.authLevel)===1&&(null==e1?void 0:e1.isSumsub)===1?iS("/personal/investorCert".concat((null==tn?void 0:tn.levelName)?"?levelName=".concat(tn.levelName):"")):(null==e1?void 0:e1.authLevel)!==1?ta("kyc"):ta("sumsub")},[null==e1?void 0:e1.authLevel,null==e1?void 0:e1.isSumsub,tn,iS]),iT=(0,n.useMemo)(()=>({0:"text-warning-1 bg-[rgba(233,169,42,0.10)]",1:"text-rise-1 bg-rise-4",2:"text-fall-1 bg-fall-4",3:"text-text-2 bg-fill-6",4:"text-text-2 bg-fill-6"})[(null==e1?void 0:e1.authLevel)||0],[e1]),iZ=(0,n.useMemo)(()=>({0:"fill-warning-1 ",1:"fill-rise-1",2:"fill-fall-1 ",3:"fill-text-2 ",4:"fill-text-2"})[(null==e1?void 0:e1.authLevel)||0],[e1]),iU=(0,n.useMemo)(()=>({0:eR("newPersonal.text5"),1:eR("newPersonal.text10"),2:eR("newPersonal.text7"),3:eR("newPersonal.text11"),4:eR("newPersonal.text11")})[(null==e1?void 0:e1.authLevel)||0],[eR,null==e1?void 0:e1.authLevel]),iL=(0,n.useRef)(!0),iA=(0,n.useCallback)(()=>{iL.current&&b.Z.post(C.HQ.out.login_out).then(e=>{let{code:l,msg:t}=e;iL.current=!0,"0"===l.toString()?(eU(eR("login.logout")),l6(!1),e2(),(null==eY?void 0:eY.mustLogin)?eZ("/login"):window.location.reload()):eL(t)})},[eL,e2,eZ,null==eY?void 0:eY.mustLogin,eU,eR]),iP=(0,n.useMemo)(()=>{var e,l,t;return null!==(t=null==e8?void 0:null===(l=e8.lan)||void 0===l?void 0:null===(e=l.lanList)||void 0===e?void 0:e.filter(e=>1===e.hide))&&void 0!==t?t:[]},[null==e8?void 0:null===(T=e8.lan)||void 0===T?void 0:T.lanList]),iI=(0,n.useCallback)(e=>{if(e!==eH){if(e$)b.Z.post(C.HQ.common.change_language,{language:e}).then(l=>{let{code:t}=l;if(0===Number(t)){(0,C.d8)("lan",e);let l=eB.replace(eH,e+"");window.location.href=l}}).finally(()=>{});else{(0,C.d8)("lan",e);let l=eB.replace(eH,e+"");window.location.href=l}}},[eB,e$,eH]),iE=(0,n.useCallback)(e=>{td!==e&&(tx(e+""),(0,C.nJ)("user_Currency"),(0,C.d8)("user_Currency",e+""),window.location.reload())},[td]),iq=(0,n.useCallback)((e,l,t)=>{if(tY===t?tJ(""):tJ(t),0===e)window.location.href=l;else if(7===e){var i,n,s;let e="";(null==e8?void 0:e8.url)&&(null==e8?void 0:null===(i=e8.url)||void 0===i?void 0:i.coUrl)&&(e=null===(s=e8.url)||void 0===s?void 0:null===(n=s.coUrl)||void 0===n?void 0:n.replace(/futures/,"futuresaffiliate")),window.location.href=e}},[tY,e8.url]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("header",{id:"common-header",className:(0,C.cn)("block h-[64px] w-full  font-medium bg-special-3 text-text-1 sm:hidden px-[20px]",eX&&"sticky top-0 start-0 z-[999]",3===e9.templateId&&"dark","/"===eQ&&"backdrop-blur-[70px] select-none  box-border z-[11] flex items-center bg-special-3 fixed"),children:(0,i.jsxs)("section",{className:"flex items-center h-full w-full",children:[(0,i.jsxs)("div",{className:"flex-1 shrink-0 flex items-center   min-w-[0px]",children:[eE&&(0,i.jsx)("h1",{className:"cursor-pointer  pe-6",children:(0,i.jsx)(x.Z,{src:eE,maxWidth:146,maxHeight:64,alt:"logo"})}),(0,i.jsx)("div",{className:"flex-1 min-w-[0px]",ref:tg,children:(0,i.jsxs)("div",{className:"flex items-center  text-size-14px ",children:[null==t8?void 0:t8.map((e,l)=>{var t;return(0,i.jsxs)("nav",{ref:e=>{tb.current[l]=e},"data-link":e.httpUrl,onClick:()=>{iy(e.httpUrl)},className:(0,C.cn)(" font-medium leading-[64px] me-[20px] relative cursor-pointer flex-shrink-0 group/item whitespace-nowrap hover:text-button-2 group ",l+1>tC&&"hidden"),children:[(0,i.jsxs)("span",{children:[e.title,e.childNavigationList&&e.childNavigationList.length>0&&(0,i.jsx)(c.Z,{className:(0,C.cn)("align-middle	text-size-12px  rotate-90 transition-transform duration-300 group-hover:-rotate-90 ms-[4px]  inl
1ine-block"),name:"public_arrow_right",areaColors:"group-hover:fill-button-2 fill-text-1",lineColors:"group-hover:fill-button-2 fill-text-1"}),!!e.angleMarkType&&("99"!==e.angleMarkType.toString()?(0,i.jsx)("div",{className:"ms-[6px] inline-block  text-center py-[2px] px-2 align-middle  bg-main-1 rounded-[4px] font-normal text-size-12px  text-text-4",children:"1"===e.angleMarkType.toString()?"HOT":"NEW"}):(0,i.jsx)(o.default,{unoptimized:!0,className:"inline max-w-none object-contain  align-middle  ms-1",src:e.angleMark,alt:"angleMark",width:37,height:18}))]}),e.childNavigationList&&e.childNavigationList.length>0&&(0,i.jsx)("div",{className:"min-w-[200px] max-w-[400px] max-h-0 will-change-max-height box-border  overflow-hidden invisible absolute top-[60px] inset-inline-start-0 p-[16px] rounded-[12px] z-[100] text-text-1 bg-fill-3  box-shadow  transition-all duration-300 group-hover/item:max-h-[2000px] group-hover/item:visible group-hover/item:block w-max ",children:null===(t=e.childNavigationList)||void 0===t?void 0:t.map((e,l)=>(0,i.jsxs)("nav",{"data-link":e.httpUrl,onClick:l=>{l.stopPropagation(),iy(e.httpUrl)},className:(0,C.cn)("cursor-pointer flex  text-start p-[16px] box-border rounded-[12px] w-full h-auto group/liitem hover:bg-fill-6",(null==e?void 0:e.isPushNav)&&"hidden"),children:[1===eP.styleId&&(0,i.jsx)("div",{className:"",children:"2"===eV&&3!==e9.templateId?(0,i.jsx)(o.default,{unoptimized:!0,className:"[margin-inline-end:12px] max-w-none object-contain ",width:24,height:24,src:e.logo,sizes:"24px",alt:""}):(0,i.jsx)(o.default,{unoptimized:!0,className:"[margin-inline-end:12px] max-w-none object-contain ",width:24,height:24,src:e.nightLogo||e.logo,alt:"",sizes:"24px"})}),(0,i.jsxs)("dl",{className:"mb-0 flex-1 shrink-0  font-medium overflow-hidden",children:[(0,i.jsxs)("dt",{className:"text-size-16px truncate min-w-0 flex items-center gap-2",children:[e.title,!!e.angleMarkType&&("99"!==e.angleMarkType.toString()?(0,i.jsx)("div",{className:"align-middle   inline-block  text-center py-[2px] px-2 bg-main-1 rounded-[4px] font-normal text-size-12px text-text-4 ",children:"1"===e.angleMarkType.toString()?"HOT":"NEW"}):(0,i.jsx)(o.default,{unoptimized:!0,className:"align-middle inline  object-contain max-w-none ",src:e.angleMark,alt:"angleMark",width:37,height:18,loading:"lazy"}))]}),(0,i.jsx)("dd",{className:"mt-1  text-text-2 text-m-14px  line-clamp-3 min-w-0 whitespace-normal",children:e.subTitle})]})]},l))})]},l)}),(0,i.jsxs)("nav",{className:"cursor-pointer relative leading-[64px] whitespace-nowrap group/more  ",ref:tj,children:[(0,i.jsxs)("div",{className:(0,C.cn)("group-hover/more:text-button-2"),children:[eR("home.more"),(0,i.jsx)("span",{children:(0,i.jsx)(c.Z,{className:(0,C.cn)(" align-middle	text-size-12px  rotate-90 transition-transform duration-300  group-hover/more:-rotate-90 ms-[4px]  inline-block"),name:"public_arrow_right",areaColors:"group-hover/more:fill-button-2 fill-text-1",lineColors:"group-hover/more:fill-button-2 fill-text-1"})})]}),(0,i.jsxs)("div",{className:"max-h-0    will-change-max-height box-border invisible  absolute top-[60px] start-0 rounded-[12px] z-[100] text-text-1 bg-fill-3 box-shadow transition-all duration-300   group-hover:visible group-hover/more:max-h-[2000px]   group-hover/more:visible  flex",onMouseLeave:()=>{ll(null)},children:[(0,i.jsx)("div",{className:"p-[16px]  min-w-[200px] max-w-[240px] w-max ",children:null==tw?void 0:tw.map((e,l)=>(0,i.jsx)("nav",{className:(0,C.cn)("cursor-pointer text-start  p-[16px] rounded-[12px] box-border    whitespace-nowrap group/moreSub hover:bg-fill-6 leading-normal"),"data-link":e.httpUrl,onClick:()=>{iy(e.httpUrl)},onMouseOver:()=>{iz("more",l)},children:(0,i.jsxs)("div",{className:"flex justify-between items-center w-full gap-1  text-size-16px",children:[(0,i.jsxs)("span",{className:" truncate flex-1 min-w-0",children:[e.title," "]}),!!e.childNavigationList&&e.childNavigationList.length>0&&(0,i.jsx)(c.Z,{className:"  align-middle text-size-12px ms-4 inline-block min-w-max ",name:"public_arrow_right",areaColors:"fill-text-1",lineColors:"fill-text-1"})]})},l))}),null!==le&&(null===(U=tw[Number(le)])||void 0===U?void 0:null===(Z=U.childNavigationList)||void 0===Z?void 0:Z.length)>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"min-w-[200px] max-w-[336px] top-0 min-h-full start-[100%] p-[16px] rounded-tr-[12px] rounded-br-[12px] z-[100] text-text-1 bg-fill-4    w-max  rtl:rounded-tr-[0px] rtl:rounded-br-[0px] rtl:rounded-tl-[12px] rtl:rounded-bl-[12px] ",children:null===(L=tw[Number(le)].childNavigationList)||void 0===L?void 0:L.map((e,l)=>(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer flex  text-start p-4 box-border rounded w-full h-auto hover:bg-fill-6  "),"data-link":e.httpUrl,onClick:l=>{l.stopPropagation(),iy(e.httpUrl)},children:[1===eP.styleId&&(0,i.jsx)("div",{children:"2"===eV&&3!==e9.templateId?(0,i.jsx)(o.default,{unoptimized:!0,className:"[margin-inline-end:12px] max-w-none object-contain ",width:24,height:24,src:e.logo,alt:"",sizes:"24px"}):(0,i.jsx)(o.default,{unoptimized:!0,className:"[margin-inline-end:12px] max-w-none object-contain  ",width:24,height:24,src:e.nightLogo||e.logo,alt:"",sizes:"24px"})}),(0,i.jsxs)("dl",{className:"mb-0 flex-1 flex-shrink-0  overflow-hidden",children:[(0,i.jsxs)("dt",{className:"leading-[16
1px]  truncate min-w-0 flex items-center gap-2 text-size-16px",children:[e.title,!!e.angleMarkType&&("99"!==e.angleMarkType.toString()?(0,i.jsx)("div",{className:"  text-center py-[2px] px-2 bg-main-1 rounded-[4px] font-normal text-size-12px text-text-4",children:"1"===e.angleMarkType.toString()?"HOT":"NEW"}):(0,i.jsx)(o.default,{unoptimized:!0,src:e.angleMark,className:"inline-block  align-middle ",alt:"",width:37,height:18}))]}),(0,i.jsx)("dd",{className:"text-text-2 text-m-14px  mt-1 line-clamp-3 min-w-0 whitespace-normal",children:e.subTitle})]})]},l))})})]})]})]})})]}),(0,i.jsxs)("div",{className:"flex h-[64px] items-center text-size-14px ps-[214px]",children:[!e$&&e0&&(0,i.jsx)("div",{className:"[margin-inline-end:10px]",children:0===Number(null===(A=e8.switch)||void 0===A?void 0:A.loginHide)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:(0,C.cn)("me-5 cursor-pointer hover:text-button-2"),onClick:()=>{iS("/login")},children:eR("header.login")}),0===Number(null===(P=e8.switch)||void 0===P?void 0:P.registerHide)&&(0,i.jsx)(r.Z,{type:"solid",paddingW:"15px",height:"30px",className:(0,C.cn)("hover:bg-button-2",2===e9.buttonTemplateId&&"rounded-[8px]"),onClick:()=>{iS("/register")},children:eR("header.register")})]})}),e$&&e0&&eK&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"px-[10px] relative inline-block cursor-pointer leading-[64px] group group-assets ",children:[(0,i.jsx)("div",{className:(0,C.cn)("hover:text-button-2"),onClick:()=>{iS("/assets")},children:eR("header.assets")}),(0,i.jsxs)("div",{className:"max-h-0 will-change-max-height  w-80 absolute top-[60px] end-0   rounded-[12px] overflow-hidden z-[100] box-border bg-fill-3 box-shadow  transition-all duration-300 group-hover:max-h-[2000px]  group-assets-hover leading-normal",children:[(0,i.jsxs)("div",{className:(0,C.cn)("p-[24px_20px_20px] border-b border-solid border-fill-6 hover:bg-special-2"),onClick:()=>{i_("/assets/totalAssets")},children:[(0,i.jsxs)("div",{className:"text-m-14px line-clamp-3 flex justify-between mb-[12px] items-center",children:[(0,i.jsxs)("span",{children:[eR("assets.overview.text1"),(0,i.jsx)("i",{className:(0,C.cn)("w-5 h-5 rounded text-center leading-5 ms-1 inline-block ","eye"===lt&&"bg-special-2"),onMouseOver:e=>{e.stopPropagation(),li("eye")},onMouseLeave:e=>{e.stopPropagation(),li("")},onClick:e=>{e.stopPropagation(),(0,C.d8)("header_assets_hide",!ln),ls(!ln)},children:ln?(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_hide",lineColors:["fill-special-4","stroke-special-4"],areaColors:"fill-special-4"}):(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_show",lineColors:"fill-special-4",areaColors:"fill-special-4"})})]}),(0,i.jsx)(c.Z,{className:"align-middle text-size-12px rtl-reverse  ",name:"public_arrow_right",lineColors:"fill-text-1",areaColors:"fill-text-1"})]}),(0,i.jsx)("div",{className:"    text-size-20px  mb-[20px]",children:ln?(0,i.jsx)(i.Fragment,{children:"******"}):(0,i.jsx)(i.Fragment,{children:lr})}),(0,i.jsxs)("div",{className:"flex justify-between",onClick:e=>{e.stopPropagation()},onMouseOver:e=>{e.stopPropagation(),li("")},children:[(0,i.jsx)(r.Z,{className:"flex-1 me-3 last:me-0",height:"32px",onClick:()=>{i_("/assets/recharge")},children:eR("assets.exchangeAccount.Recharge")}),e1&&(null==e1?void 0:e1.openAuditReport)&&(0,i.jsx)(r.Z,{className:"flex-1 me-3 last:me-0",height:"32px",type:"hollow",onClick:()=>{i_("/assets/balanceAudit")},children:eR("balanceAudit.text")})]})]}),(0,i.jsx)("div",{className:" px-0 text-text-1",children:null==iw?void 0:iw.map((e,l)=>(0,i.jsxs)("nav",{className:(0,C.cn)("p-[16px_20px] text-size-16px  flex justify-between items-center hover:bg-special-2"),onClick:()=>{i_(e.link)},onMouseOver:()=>{iz("assets",l)},children:[(0,i.jsxs)("div",{className:"item-title",children:[(0,i.jsx)("div",{className:"mb-[4px]",children:e.title}),ln?(0,i.jsx)("div",{className:"text-size-12px text-text-2",children:"******"}):(0,i.jsxs)("div",{className:"text-size-12px text-text-2",children:[e.ratio,"%"]})]}),(0,i.jsx)("div",{className:"item-num",children:ln?"******":e.balanceFold})]},l))})]})]}),(0,i.jsxs)("div",{className:(0,C.cn)("pe-[10px] ps-[10px] relative inline-block cursor-pointer leading-[64px] group group-order "),children:[(0,i.jsx)("div",{className:"text-text-1 hover:text-button-2",onClick:()=>{iS("order")},children:eR("header.order")}),(0,i.jsx)("div",{className:" max-h-[0px] absolute top-[60px] end-0 px-2 rounded-[12px]  overflow-hidden z-[100] box-border bg-fill-3 box-shadow  transition-all duration-300 group-hover:max-h-[2000px] group-hover:block group-order-hover group-hover:py-3",children:null==iv?void 0:iv.map((e,l)=>(0,i.jsx)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] px-3 leading-9 h-9 box-border rounded whitespace-nowrap hover:bg-special-2"),onClick:()=>{i_(e.link)},children:e.title},l))})]})]}),(null==e5?void 0:e5.app_page_url)&&(0,i.jsxs)("div",{className:"pe-[10px] ps-[10px] relative inline-block cursor-pointer leading-[64px] group group-download",children:[(0,i.jsx)("div",{className:"cursor-pointer leading-[64px]",onClick:()=>{iS("/appDownload")},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"header_download",lineColors:"fill-text-1 group-hover:fill-button-2",areaColors:"fill-text-1 group-hover:fill-button-2"})}),(0,i.jsxs)("div",{className:"absolute end-0 w-40 h-auto rounded-[12px] top-[60
1px] max-h-[0px] overflow-hidden  box-border text-center z-[100]  text-text-1 bg-fill-3 box-shadow group-hover:block transition-all duration-300 group-hover:max-h-[2000px] group-download-hover group-hover:py-3",children:[(0,i.jsx)(o.default,{unoptimized:!0,src:e5.app_page_url,alt:"",width:136,height:136,className:"rounded-[4px] mx-auto"}),(0,i.jsx)("p",{className:"text-size-12px mt-[12px] ",children:eR("appDownLoad.headerCode")}),(0,i.jsx)("div",{children:0===Number(null===(I=e8.switch)||void 0===I?void 0:I.registerHide)&&(0,i.jsx)(r.Z,{type:"solid",width:"136px",paddingW:"0",height:"30px",fontSize:"12px",marginTop:"12px",onClick:()=>{iS("/appDownload")},children:eR("appDownLoad.more")})})]})]}),(0,i.jsxs)("div",{className:"pe-[10px] ps-[10px] relative inline-block cursor-pointer leading-[64px] group group-setting",children:[(0,i.jsx)("div",{onClick:()=>{iM()},className:"group-hover:hidden group-setting-hover",children:"1"===eV?(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"header_sun",lineColors:"fill-text-1 ",areaColors:"fill-text-1"}):(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"header_moon",lineColors:"fill-text-1 ",areaColors:"fill-text-1"})}),(0,i.jsx)("div",{onClick:()=>{iM()},className:"hidden group-hover:block group-setting-hove",children:"1"===eV?(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"header_sun",lineColors:"fill-button-2 ",areaColors:"fill-button-2"}):(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"header_moon",lineColors:"fill-button-2 ",areaColors:"fill-button-2"})})]}),e$&&e0&&(0,i.jsxs)("div",{className:"pe-[10px] ps-[10px] relative inline-block cursor-pointer leading-[64px] group  group-message",children:[!!lL&&(0,i.jsx)("div",{className:"absolute w-1.5 h-1.5 rounded-full top-[22px] right-[6px] bg-[red] rtl:right-auto rtl:left-[6px]"}),(0,i.jsx)("div",{className:" group-hover:hidden group-message-hover",onClick:()=>{iS("/mesage")},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"public_information",lineColors:"fill-text-1",areaColors:"fill-text-1"})}),(0,i.jsx)("div",{className:"hidden  group-hover:block group-message-hover",onClick:()=>{iS("/mesage")},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"public_information",lineColors:"fill-button-2",areaColors:"fill-button-2"})}),!!lL&&(0,i.jsxs)("div",{className:"top-[60px] invisible overflow-hidden absolute w-80 max-h-[0px] end-[-90px] z-[100] rounded-[12px] pb-3 text-text-1 bg-fill-3 box-shadow  transition-all duration-300 group-hover:max-h-[2000px] group-hover:block group-message-hover group-hover:visible group-hover/message:visible ",children:[(0,i.jsx)("div",{className:"p-[16px_22px_12px] box-border   text-start text-size-12px max-h-[260px] overflow-y-auto  ",children:null==lP?void 0:lP.map((e,l)=>(0,i.jsx)("nav",{className:" overflow-hidden text-m-12px line-clamp-3 cursor-pointer",onClick:()=>{iS("/mesage")},children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.messageContent}})},l))}),(0,i.jsx)("div",{className:"h-10 leading-10  px-[22px]  text-start text-size-12px cursor-pointer rounded",children:(0,i.jsx)(r.Z,{type:"text",paddingW:"0",height:"14px",fontSize:"12px",onClick:()=>{iS("/mesage")},children:eR("header.more")})})]})]}),e$&&e0&&(0,i.jsxs)("div",{className:"pe-[10px] ps-[10px] relative inline-block cursor-pointer leading-[64px] group group-userinfo",children:[!!(!eI&&lE&&(null==e8?void 0:null===(q=e8.switch)||void 0===q?void 0:null===(E=q.taskCenterIsShowUser)||void 0===E?void 0:E.toString())==="1")&&(0,i.jsx)("div",{className:"absolute w-1.5 h-1.5 rounded-full top-[22px]  right-[6px] bg-[red] rtl:right-auto rtl:left-[6px]"}),(0,i.jsx)("div",{className:"group-userinfo-hover",onClick:()=>{iS("/personal/personalOverview")},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"header_personal",lineColors:"fill-text-1  group-hover:fill-button-2",areaColors:"fill-text-1 group-hover:fill-button-2"})}),(0,i.jsxs)("div",{className:"top-[60px] max-h-[0px] absolute overflow-hidden w-[240px] end-0 z-[100] rounded-[12px] text-text-1 bg-fill-3 box-shadow transition-all duration-300 group-hover:max-h-[2000px] group-hover:block group-hover:overflow-visible group-userinfo-hover ",children:[(0,i.jsxs)("div",{className:"pt-4 pb-3 ps-4 pe-4 flex gap-[10px] items-center",onClick:()=>{iS("/personal/personalOverview")},children:[(0,i.jsx)(o.default,{unoptimized:!0,src:(null==e1?void 0:e1.profileImgUrl)?null==e1?void 0:e1.profileImgUrl:null===(R=k.V1[e9.artisticTemplateId])||void 0===R?void 0:R[3!==e9.templateId&&"2"===eV?"light":"dark"],width:40,height:40,className:"rounded-full",alt:"profileImgUrl"}),(0,i.jsx)("div",{className:"leading-normal",children:(0,i.jsx)("div",{className:"text-size-16px overflow-hidden text-ellipsis whitespace-nowrap w-[150px]",children:(0,i.jsx)("span",{className:"ltr-lock-block overflow-hidden text-ellipsis whitespace-nowrap",children:(null==e1?void 0:e1.userAccount)||""})})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-[12px] px-[16px] mb-[12px] flex-wrap",children:[(0,i.jsxs)("div",{className:(0,C.cn)("inline-flex items-center p-[3px_8px] leading-normal gap-1 rounded text-size-12px",iT),onClick:e=>{e.stopPropagation(),eZ("/personal/verification")},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-14px  ",name:"personal_attestation_certified",lineColors:iZ,areaColors:iZ}),(0,i.jsx)("span",{children:iU})]}),!eI&&tM&&(null==e1?void 0:null===(H=e1.isSub)||void 0===H?void 0:H.toString())!=="1"&&(0,i.jsxs)("div",{className:"group/next-level relative",children:[(0,i.jsx)("div",{className:(0,C.cn)("h-[24px] leading-[24px] px-[12px] text-size-12px rounded-[100px] group","0"===tA?tT?"border border-fill-5 text-text-1 hover:border-fill-6 hover:text-text-2":"bg-fill-5 text-text-1":tT?"border border-main-1 text-main-1 hover:border-main-2 hover:text-main-2":"bg-campaign-fill-2 text-campaign-text-2"),onClick:e=>
1{e.stopPropagation(),tT?eZ("/vipFeeRate"):eZ("/vip")},children:tP}),!tI&&(0,i.jsx)("div",{className:"w-[280px] hidden group-hover/next-level:block absolute top-[24px] pt-[8px] right-0 cursor-default",onClick:e=>{e.stopPropagation()},children:(0,i.jsxs)("div",{className:"bg-fill-6 box-shadow leading-normal rounded-[8px] p-[16px]",children:[(0,i.jsx)("div",{className:(0,C.cn)("items-center gap-[8px] justify-between mb-[16px] text-text-1 cursor-pointer",tT?"hover:text-main-5":"hover:text-campaign-text-3"),children:(0,i.jsxs)("div",{className:"flex items-center justify-between flex-1",onClick:()=>{eZ("/vip")},children:[(0,i.jsx)("span",{children:eR("vip.text44",{level:tq})}),(0,i.jsx)(c.Z,{className:"align-middle text-size-14px inline-block",name:"public_positions_arrow_right"})]})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"text-text-1 text-size-14px font-regular mb-[8px]",children:null==tH?void 0:tH.title}),(0,i.jsxs)("div",{className:"flex items-center justify-between gap-[8px]",children:[(0,i.jsxs)("dl",{className:"flex-1",children:[(0,i.jsxs)("dt",{className:"text-text-2 flex items-center font-regular text-size-12px mb-[8px]",children:[null==tH?void 0:tH.currentValue,"/",null==tH?void 0:tH.thresholdValue,"\xa0",null==tH?void 0:tH.thresholdUnit]}),(0,i.jsx)("dd",{className:"bg-fill-2 h-[4px] rounded-[8px]",children:(0,i.jsx)("div",{className:(0,C.cn)("h-[4px] rounded-[8px]",tT?"bg-main-1":"bg-campaign-fill-3"),style:{width:null==tH?void 0:tH.progressWidth}})})]}),(0,i.jsx)(r.Z,{width:"72px",height:"28px",paddingW:"0",defaultColorClass:tT?"":"bg-campaign-fill-1 text-campaign-text-1",hoverColorClass:tT?"":"bg-campaign-fill-1 text-campaign-text-1",activeColorClass:tT?"":"bg-campaign-fill-1 text-campaign-text-1",isHoverEffect:!0,onClick:()=>{tW()},children:null==tH?void 0:tH.buttonText})]})]})]})})]}),!eI&&(null==e1?void 0:e1.questionnaireTagName)&&(null==tn?void 0:tn.open)===1&&(0,i.jsxs)("div",{className:"h-[24px] flex items-center gap-[4px] pl-[12px] pr-[8px] rounded-[20px] bg-rise-4 text-rise-1 text-size-12px font-medium cursor-pointer",onClick:e=>{e.stopPropagation(),iO()},children:[(0,i.jsx)("span",{className:"whitespace-nowrap",children:e1.questionnaireTagName}),(0,i.jsx)(c.Z,{className:"align-middle text-size-12px inline-block",name:"public_arrow_right",lineColors:"fill-rise-1",areaColors:"fill-rise-1"})]})]}),(0,i.jsxs)("div",{children:[eJ&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("nav",{className:"group cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center hover:bg-special-2",onClick:()=>{i_("/assets/exchangeAccount")},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px me-[12px] inline-block",name:"assets_view",lineColors:"fill-special-4 group-hover:fill-button-2",areaColors:"fill-special-4 group-hover:fill-button-2"}),eR("header.assets")]}),(0,i.jsxs)("nav",{className:"group cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center hover:bg-special-2",onClick:()=>{iS("order")},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px me-[12px] inline-block",name:"public_orderordraft",lineColors:"fill-special-4 group-hover:fill-button-2",areaColors:"fill-special-4 group-hover:fill-button-2"}),eR("header.order")]})]}),eI&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("nav",{className:"group cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center hover:bg-special-2",onClick:()=>{iS("/personal/personalOverview")},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px me-[12px] inline-block",name:"personal_securitycenter",lineColors:"fill-special-4 group-hover:fill-button-2",areaColors:"fill-special-4 group-hover:fill-button-2"}),eR("newPersonal.text151")]}),(0,i.jsxs)("nav",{className:"group cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center hover:bg-special-2",onClick:()=>{iS("/personal/verification")},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px me-[12px] inline-block",name:"personal_verified",lineColors:"fill-special-4 group-hover:fill-button-2",areaColors:"fill-special-4 group-hover:fill-button-2"}),eR("personal.userManagement.text3")]}),(null==e8?void 0:null===(F=e8.switch)||void 0===F?void 0:null===(V=F.invitationRewardOpen)||void 0===V?void 0:V.toString())==="1"&&(0,i.jsxs)("nav",{className:"group cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center hover:bg-special-2",onClick:()=>{iS("/promotion")},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px me-[12px] inline-block",name:"public_inviteorcreate",lineColors:"fill-special-4 group-hover:fill-button-2",areaColors:"fill-special-4 group-hover:fill-button-2"}),eR("invitePrize.invite_friends")]})]}),!eI&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",lV&&"bg-special-2"),onClick:()=>{iS("/personal/personalOverview")},onMouseOver:()=>{lF(!0)},onMouseOut:()=>{lF(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_overview",lineColors:lV?"fill-button-2":"fill-special-4",areaColors:lV?"fill-button-2":"fill-special-4"}),eR("personal.navMenu.list.personalOverview")]}),(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",lW&&"bg-special-2"),onClick:()=>{iS("/personal/verification")},onMouseOver:()=>{lD(!0)},onMouseOut:()=>{lD(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_verified",lineColors:lW?"fill-button-2":"fill-special-4",areaColors:lW?"fill-button-2":"fill-special-4"}),eR("personal.userManagement.text3")]}),(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",lB&&"bg-special-2"),onClick:()=>{iS("/personal/personalAccountSafety")},onMouseOver:()=>{lG(!0)},onMouseOut:()=>{lG(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_securitycenter",lineColors:lB?"fill-button-2":"fill-special-4",areaColors:lB?"fill-button-2":"fill-special-4"}),eR("personal.navMenu.list.personalAccountSafety")]}),tM&&(null==e1?void 0:null===(W=e1.isSub)||void 0===W?void 0:W.toString())!=="1"&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",l5&&"bg-special-2"),onClick:()=>{iS("/vip")},onMouseOver:()=>{l8(!0)},onMouseOut:()=>{l8(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px me-[12px] inline-block",name:"personal_vip",lineColors:l5?"fill-button-2":"fill-special-4",areaColors:l5?"fill-button-2":"fill-special-4"}),tT?"VIP":eR("vip.text1")]}),tM&&tT&&(null==e1?void 0:null===(D=e1.isSub)||void 0===D?void 0:D.toString())!=="1"&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",l7&&"bg-special-2"),onClick:()=>{iS("/vipFeeRate")},onMouseOver:()=>{l9(!0)},onMouseOut:()=>{l9(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px me-[12px] inline-block",name:"trade_rate",lineColors:l7?"fill-button-2":"fill-special-4",areaColors:l7?"fill-button-2":"fill-special-4"}),eR("vip.text55")]}),((null===(B=e8.url)||void 0===B?void 0:B.otcUrl)||(null===(Q=e8.switch)||void 0===Q?void 0:null===(G=Q.fiatIncomeOpen)||void 0===G?void 0:G.toString())!=="0")&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",lQ&&"bg-special-2"),onClick:()=>{iS("/personal/personalPayment")},onMouseOver:()=>{lY(!0)},onMouseOut:()=>{lY(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_paymentmethod",lineColors:lQ?"fill-button-2":"fill-special-4",areaColors:lQ?"fill-button-2":"fill-special-4"}),eR("personal.navMenu.list.personalPayment")]}),"1"===((null==e8?void 0:null===(J=e8.switch)||void 0===J?void 0:null===(Y=J.openapi_hide)||void 0===Y?void 0:Y.toString())||"1")&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",lJ&&"bg-special-2"),onClick:()=>{iS("/personal/apiManagement")},onMouseOver:()=>{lK(!0)},onMouseOut:()=>{lK(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_api",lineColors:lJ?"fill-button-2":"fill-special-4",areaColors:lJ?"fill-button-2":"fill-special-4"}),eR("personal.navMenu.list.apiManagement")]}),"1"===((null==e8?void 0:null===(X=e8.switch)||void 0===X?void 0:null===(K=X.taskCenterIsShowUser)||void 0===K?void 0:K.toString())||"1")&&(null==e1?void 0:null===($=e1.isSub)||void 0===$?void 0:$.toString())!=="1"&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",l2&&"bg-special-2"),onClick:()=>{iS("/taskCenter")},onMouseOver:()=>{l4(!0)},onMouseOut:()=>{l4(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_taskcenter",lineColors:l2?"fill-button-2":"fill-special-4",areaColors:l2?"fill-button-2":"fill-special-4"}
1),eR("taskCenter.text"),!!lE&&(0,i.jsx)("span",{className:"inline-block w-1.5 h-1.5 bg-[red] rounded-full transform translate-y-[-10px]"})]}),(null==e8?void 0:null===(el=e8.switch)||void 0===el?void 0:null===(ee=el.couponCenterStatus)||void 0===ee?void 0:ee.toString())==="1"&&(null==e1?void 0:null===(et=e1.isSub)||void 0===et?void 0:et.toString())!=="1"&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",l3&&"bg-special-2"),onClick:()=>{iS("/couponCenter")},onMouseOver:()=>{l6(!0)},onMouseOut:()=>{l6(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_couponcenter",lineColors:l3?"fill-button-2":"fill-special-4",areaColors:l3?"fill-button-2":"fill-special-4"}),t5]}),"1"===((null==e8?void 0:null===(en=e8.switch)||void 0===en?void 0:null===(ei=en.invitationRewardOpen)||void 0===ei?void 0:ei.toString())||"1")&&(null==e1?void 0:null===(es=e1.isSub)||void 0===es?void 0:es.toString())!=="1"&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",lX&&"bg-special-2"),onClick:()=>{iS("/promotion")},onMouseOver:()=>{l$(!0)},onMouseOut:()=>{l$(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"public_inviteorcreate",lineColors:lX?"fill-button-2":"fill-special-4",areaColors:lX?"fill-button-2":"fill-special-4"}),eR("invitePrize.invite_friends")]}),(null==tn?void 0:tn.open)===1&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",te&&"bg-special-2"),onClick:()=>{iO()},onMouseOver:()=>{tl(!0)},onMouseOut:()=>{tl(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_investorcertified",lineColors:te?"stroke-button-2":"stroke-special-4",areaColors:te?"fill-button-2":"fill-special-4"}),eR("newPersonal.text139")]}),(null==e1?void 0:e1.authLevel)===1&&(null==e1?void 0:null===(eo=e1.isSub)||void 0===eo?void 0:eo.toString())!=="1"&&(null==e8?void 0:null===(er=e8.switch)||void 0===er?void 0:null===(ea=er.subUserOpen)||void 0===ea?void 0:ea.toString())==="1"&&(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px] p-4 leading-normal box-border mb-1 flex items-center",l0&&"bg-special-2"),onClick:()=>{iS("/personal/subManagement")},onMouseOver:()=>{l1(!0)},onMouseOut:()=>{l1(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_subaccount",lineColors:l0?"fill-button-2":"fill-special-4",areaColors:l0?"fill-button-2":"fill-special-4"}),eR("subAccount.nav.nav1")]})]})]}),(0,i.jsxs)("div",{className:(0,C.cn)("cursor-pointer text-start min-w-[144px]  box-border mb-1 border-t border-solid px-4 p-[0_16px] h-12 leading-[48px] border-fill-6 flex items-center",tt&&"bg-special-2"),onClick:()=>{iA()},onMouseOver:()=>{ti(!0)},onMouseOut:()=>{ti(!1)},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-[12px] inline-block",name:"personal_quit",lineColors:tt?"fill-button-2":"fill-special-4",areaColors:tt?"fill-button-2":"fill-special-4"}),eR("header.out")]})]})]}),(0,i.jsxs)("div",{className:"ps-2.5 relative group group-language",children:[(0,i.jsx)("div",{className:(0,C.cn)("cursor-pointer leading-[64px]"),children:(0,i.jsx)(c.Z,{className:"align-middle text-size-18px  ",name:"public_language",lineColors:"fill-text-1  group-hover:fill-button-2",areaColors:"fill-text-1  group-hover:fill-button-2"})}),(0,i.jsxs)("div",{className:" will-change-max-height transition-all  absolute top-[60px] end-0  overflow-hidden  rounded-[12px] z-[100] text-text-1 bg-fill-3 box-shadow  max-h-0  flex group-hover:max-h-[333px]  group-language-hover  shadow-[0_4px_18px_0_rgba(0,0,0,0.25)]",children:[(0,i.jsxs)("div",{className:"p-[12px] flex flex-col bg-fill-3",children:[(0,i.jsx)("div",{className:"text-size-14px mb-[16px] text-text-2 font-medium px-3",children:"Language"}),(0,i.jsx)("div",{className:"flex-1 overflow-y-auto",children:null==iP?void 0:iP.map((e,l)=>(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[330px]  px-3 py-[10px] rounded-[8px] overflow-hidden flex items-center justify-between   text-m-14px   font-medium  hover:bg-fill-6  group hover:text-main-2",eH===e.id?"text-main-1 bg-fill-6":"text-text-1"),onClick:()=>{iI(e.id)},children:[e.name,eH===e.id&&(0,i.jsx)(c.Z,{className:"align-middle text-size-14px   ",name:"public_selected",lineColors:"fill-main-1",areaColors:"fill-main-1"})]},l))})]}),!!(null==e7?void 0:e7.length)&&(0,i.jsxs)("div",{className:"p-[12px] flex flex-col bg-fill-4",children:[(0,i.jsx)("div",{className:"text-size-14px mb-[16px] text-text-2 font-medium  px-3",children:"Currency"}),(0,i.jsx)("div",{className:"flex-1 overflow-y-auto",children:null==e7?void 0:e7.map((e,l)=>(0,i.jsxs)("nav",{className:(0,C.cn)("cursor-pointer text-start min-w-[167px]  px-3 py-[10px] rounded-[8px] overflow-hidden flex items-center justify-between   text-m-14px   font-medium  hover:bg-fill-6 hover:text-main-2",td===e.lan?"text-main-1 bg-fill-6":"text-text-1"),onClick:()=>{iE(e.lan)},children:[e.text,td===e.lan&&(0,i.jsx)(c.Z,{className:"align-middle text-size-14px   ",name:"public_selected",lineColors:"fill-main-1",areaColors:"fill-main-1"})]},l))})]})]})]})]})]})}),"/"===eG&&(0,i.jsxs)(i.Fragment,{children:[e4&&(0,i.jsx)(i.Fragment,{children:e4}),(0,i.jsxs)("header",{id:"common-header-h5",className:(0,C.cn)("hidden sm:block bg-special-3",3===e9.templateId&&"dark"),children:[(0,i.jsxs)("div",{className:(0,C.cn)("w-full h-11 flex justify-between items-center px-4 box-border "),children:[(0,i.jsx)("a",{href:t6.home,children:(0,i.jsx)(x.Z,{src:eq,alt:"1"===eV?"dark-logo":"light-logo",maxHeight:36})}),(0,i.jsxs)("div",{className:"flex gap-[16px]",children:[e$&&(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   cursor-pointer p-[4px] inline-block",name:"header_personal",lineColors:"fill-text-1 ",areaColors:"fill-text-1",onClick:async()=>{eI||await id(),document.body.style.overflow="hidden",tQ(!0)}}),(0,i.jsx)(c.Z,{className:"align-middle text-size-16px cursor-pointer p-[4px] inline-block",name:"h5_home_more",lineColors:"fill-text-1",areaColors:"fill-text-1",onClick:()=>{document.body.style.overflow="hidden",tB(!0)}})]})]}),(0,i.jsxs)("div",{className:(0,C.cn)("fixed  top-0 w-full h-full z-[1000] transition-all duration-300 flex flex-col bg-fill-2 ",tD?"right-0 rtl:left-0 rtl:right-auto":"-right-full  rtl:-left-full rtl:right-auto"),children:[(0,i.jsxs)("div",{className:"flex justify-between items-center h-12 px-4 sticky top-0 left-0 z-10 bg-fill-2",children:[(0,i.jsxs)("div",{className:"flex border border-solid rounded p-px border-fill-5",dir:"ltr",children:[(0,i.jsx)("nav",{className:(0,C.cn)("first:rounded-l-sm w-[38px] h-6 text-center rounded-r-sm cursor-pointer px-2.5  box-border","2"===eV&&"bg-fill-3"),onClick:()=>{"1"===eV&&iM()},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  cursor-pointer ",name:"header_sun",lineColors:"fill-text-1 ",areaColors:"fill-text-1"})}),(0,i.jsx)("nav",{className:(0,C.cn)("w-[38px] h-6 text-center rounded-r-sm cursor-pointer px-2.5  box-border","1"===eV&&"bg-fill-3"),onClick:()=>{"2"===eV&&iM()},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  cursor-pointer",name:"header_moon",lineColors:"fill-text-1 ",areaColors:"fill-text-1"})})]}),(0,i.jsx)("div",{className:"w-5 h-5 flex items-center justify-center cursor-pointer",onClick:()=>{document.body.style.overflow="auto",tB(!1)},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-20px  ",name:"public_close_20",lineColors:"fill-text-1",areaColors:"fill-text-1"})})]}),(0,i.jsxs)("div",{className:"flex-1 overflow-auto pt-3",children:[(0===Number(null==e8?void 0:null===(ec=e8.switch)||void 0===ec?void 0:ec.loginHide)||0===Number(null==e8?void 0:null===(ed=e8.switch)||void 0===ed?void 0:ed.registerHide))&&!e$&&(0,i.jsx)("div",{className:"px-4 mb-5 flex gap-3",children:(0,i.jsxs)(i.Fragment,{children:[0===Number(null==e8?void 0:null===(ex=e8.switch)||void 0===ex?void 0:ex.loginHide)&&(0,i.jsx)(r.Z,{className:"flex-1 ",colorType:"config",height:"40px",fontSize:"12px",onClick:()=>{eZ("/login")},children:eR("header.login")}),0===Number(null==e8?void 0:null===(ep=e8.switch)||void 0===ep?void 0:ep.registerHide)&&(0,i.jsx)(r.Z,{className:"flex-1 ",height:"40px",fontSize:"12px",onClick:()=>{eZ("/register")},children:eR("header.register")})]})}),(0,i.jsxs)("div",{className:"sideBar-navList text-text-1",children:[null==t8?void 0:t8.map((e,l)=>{var t;return(0,i.jsxs)("nav",{className:"cursor-pointer",children:[(0,i.jsxs)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px  ","data-link":e.httpUrl,onClick:()=>{iq(e.childNavigationList.length,e.httpUrl,e.id)},children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[e.title,!!e.angleMarkType&&("99"!==e.angleMarkType.toString()?(0,i.jsx)("div",{className:" align-middle   text-center py-[2px] px-2 bg-main-1 rounded-[4px] font-normal text-size-12px text-text-4",children:"1"===e.angleMarkType.toString()?"HOT":"NEW"}):(0,i.jsx)(o.default,{unoptimized:!0,className:"inline max-w-none object-contain  align-middle ",src:e.angleMark,alt:"angleMark",width:37,height:18}))]}),e.childNavigationList.length>0&&(0,i.jsx)(c.Z,{className:(0,C.cn)("align-middle text-size-12px  p-[2px] transition-all duration-300 inline-block",tY===e.id&&"rotate-180"),name:"public_arrow_down_triangle",lineColors:"fill-text-3",areaColors:"fill-text-3"})]}),e.childNavigationList.length>0&&(0,i.jsx)("ol",{className:(0,C.cn)("max-h-0  will-change-max-height transition-all duration-300 origin-top overflow-hidden",tY===e.id&&"max-h-[1000px]"),children:null===(t=e.childNavigationList)||void 0===t?void 0:t.map((e,l)=>(0,i.jsxs)("nav",{className:"h-12  px-6 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{window.location.href=e.httpUrl},"data-link":e.httpUrl,children:[1===eP.styleId&&(0,i.jsx)(i.Fragment,{children:"2"===eV&&3!==e9.templateId?(0,i.jsx)(o.default,{unoptimized:!0,className:"[margin-inline-end:12px] max-w-none object-contain align-middle",width:24,height:24,src:e.logo,alt:""}):(0,i.jsx)(o.default,{unoptimized:!0,className:"[margin-inline-end:12px] max-w-none object-contain align-middle",width:24,height:24,src:e.nightLogo||e.logo,alt:""})}),e.title,!!e.angleMarkType&&("99"!==e.angleMarkType.toString()?(0,i.jsx)("div",{className:"ms-[8px]  py-[2px] px-2   text-center bg-main-1 rounded-[4px] font-normal text-size-12px  text-text-4",children:"1"===e.angleMarkType.toString()?"HOT":"NEW"}):(0,i.jsx)(o.default,{unoptimized:!0,src:e.angleMark,className:"inline max-w-none object-contain ms-[8px] align-middle",alt:"",width:37,height:18}))]},l))})]},l)}),(0,i.jsx)("nav",{className:"cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/noticeInfo",onClick:()=>{iq(0,"/noticeInfo","")},children:(0,i.jsx)("span",{children:eR("header.noticeTxt")})})}),(null==e8?void 0:null===(eu=e8.msg)||void 0===eu?void 0:eu.online_service_url)&&(0,i.jsx)("nav",{className:"cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0",onClick:()=>{iq(0,e8.msg.online_service_url,"")},children:(0,i.jsx)("span",{children:eR("header.customer")})})}),(0,i.jsx)("nav",{className:"h-[1px] my-[12px] box-content scale-y-[0.5] bg-fill-6"}),(0,i.jsx)("nav",{className:" cursor-pointer flex h-[52px] items-center px-4 text-size-16px  gap-2",onClick:()=>{tJ("lan"),tX("lan")},children:null==e8?void 0:null===(eh=e8.lan)||void 0===eh?void 0:null===(em=eh.lanList.find(e=>e.id===eH))||void 0===em?void 0:em.name}),e7.length>0&&(0,i.jsx)("nav",{className:" cursor-pointer flex h-[52px] items-center px-[16px] text-size-16px gap-[8px]",onClick:()=>{tJ("currency"),tX("currency")},children:td}),!eI&&(0,i.jsxs)("nav",{className:"cursor-pointer flex justify-between h-[52px] items-center px-[16px] text-size-16px gap-[8px]",onClick:()=>{tJ("klineTimezone")},children:[(0,i.jsx)("span",{children:eR("trade.kline.text12")}),(0,i.jsx)("span",{className:"text-text-2",children:null===(ev=tv.find(e=>e.code===tp))||void 0===ev?void 0:ev.value})]})]})]})]}),(0,i.jsxs)("div",{className:(0,C.cn)(" fixed  top-0 w-full h-full z-[1001] transition-all duration-300  flex-col bg-fill-2 flex ","lan"===tY||"currency"===tY?"right-0 rtl:right-auto rtl:left-0":"-right-full rtl:right-auto  rtl:-left-full"),children:[(0,i.jsxs)("div",{className:"flex justify-between items-center h-12 px-4 sticky top-0 left-0 z-[203]",children:[(0,i.jsxs)("div",{className:"relative","data-tab":"1",children:[(0,i.jsxs)("div",{className:"flex gap-[32px] text-text-2",children:[(0,i.jsx)("nav",{className:(0,C.cn)("text-size-16px  py-4  cursor-pointer block ","lan"===tK&&"text-text-1"),onClick:()=>{tX("lan")},children:"Language"}),e7.length>0&&(0,i.jsx)("nav",{className:(0,C.cn)("text-size-16px  py-4  cursor-pointer block ","currency"===tK&&"text-text-1"),onClick:()=>{tX("currency")},children:"Currency"})]}),(0,i.jsx)("div",{className:(0,C.cn)("w-6 h-1 absolute left-[25px] transition-all duration-300 bottom-0 bg-button-1 rtl:right-[25px] rtl:left-auto","currency"===tK&&"left-[120px] rtl:right-[128px] rtl:left-auto ")})]}),(0,i.jsx)("div",{className:"w-5 h-5 flex items-center justify-center",onClick:()=>{tX(""),tJ("")},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-20px    cursor-pointer mt-[3px] me-[3px] inline-block",name:"public_close_20",lineColors:"fill-text-1",areaColors:"fill-text-1"})})]}),(0,i.jsx)("div",{className:(0,C.cn)("block text-text-1 overflow-y-scroll","currency"===tK&&"hidden"),children:null==iP?void 0:iP.map((e,l)=>(0,i.jsxs)("nav",{className:"text-size-14px  p-4 flex justify-between items-center cursor-pointer  hover:bg-fill-4 ",onClick:()=>{iI(e.id)},children:[(0,i.jsx)("span",{children:e.name}),eH===e.id&&(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_selected",lineColors:"fill-button-2",areaColors:"fill-button-2"})]},l))}),(0,i.jsx)("div",{className:(0,C.cn)("block text-text-1 overflow-y-scroll","lan"===tK&&"hidden"),children:null==e7?void 0:e7.map(e=>(0,i.jsxs)("nav",{className:"text-size-14px  p-4 flex justify-between items-center cursor-pointer  hover:bg-fill-4 ",onClick:()=>{iE(e.lan)},children:[(0,i.jsx)("span",{children:e.text}),td===e.lan&&(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_selected",lineColors:"fill-button-2",areaColors:"fill-button-2"})]},e.lan))})]}),!eI&&(0,i.jsxs)("div",{className:(0,C.cn)("fixed top-0 w-full h-full z-[1001] transition-all duration-300  flex-col bg-fill-2 flex ","klineTimezone"===tY?"right-0 rtl:right-auto rtl:left-0":"-right-full rtl:right-auto  rtl:-left-full"),children:[(0,i.jsxs)("div",{className:"flex justify-between items-center h-12 px-4 sticky top-0 left-0 z-[203]",children:[(0,i.jsx)("div",{className:"relative","data-tab":"1",children:(0,i.jsx)("div",{className:"flex gap-[32px] text-text-2",children:(0,i.jsx)("nav",{className:"text-size-16px py-4 cursor-pointer block text-text-1",children:eR("trade.kline.text13")})})}),(0,i.jsx)("div",{className:"w-5 h-5 flex items-center justify-center",onClick:()=>{tJ("")},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-14px  cursor-pointer mt-[3px] me-[3px]",name:"public_close",lineColors:"fill-text-1",areaColors:"fill-text-1"})})]}),(0,i.jsx)("div",{className:"block text-text-1 overflow-y-scroll",children:null==tv?void 0:tv.map((e,l)=>(0,i.jsxs)("nav",{className:"text-size-14px p-4 flex justify-between items-center cursor-pointer hover:bg-fill-4 ",onClick:()=>{tf(e.code)},children:[(0,i.jsx)("span",{children:e.value}),tp===e.code&&(0,i.jsx)(c.Z,{className:"align-middle text-size-16px ",name:"public_selected",lineColors:"fill-button-2",areaColors:"fill-button-2"})]},l))})]}),(0,i.jsxs)("div",{className:(0,C.cn)("overflow-auto fixed  top-0 w-full h-full z-[1000] transition-all duration-300 bg-fill-2 ",tG?"right-0 rtl:left-0 rtl:right-auto":"-right-full  rtl:-left-full rtl:right-auto"),children:[(0,i.jsx)("div",{className:"flex justify-end items-center h-12 px-4 sticky top-0 left-0 z-[20] bg-fill-2",
1children:(0,i.jsx)("div",{className:"sideBar-close cursor-pointer",onClick:()=>{document.body.style.overflow="auto",tQ(!1)},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-20px  ",name:"public_close_20",lineColors:"fill-text-1",areaColors:"fill-text-1"})})}),(0,i.jsxs)("div",{className:"pt-0",children:[(0,i.jsxs)("div",{className:"text-size-14px py-5",children:[(0,i.jsxs)("div",{className:"flex justify-between w-full  mb-[11px]",children:[(0,i.jsxs)("dl",{className:(0,C.cn)("flex items-center px-4 gap-[12px] min-w-0 flex-1",eI&&"cursor-pointer"),onClick:e=>{!e.target.closest("[data-copy-user-id]")&&eI&&eZ("/personal/personalOverview")},children:[(0,i.jsx)("dt",{className:"flex-shrink-0",children:(0,i.jsx)(o.default,{unoptimized:!0,width:50,height:50,src:(null==e1?void 0:e1.profileImgUrl)||(null===(ef=k.V1[e9.templateId])||void 0===ef?void 0:ef["2"===eV&&3!==e9.templateId?"light":"dark"]),alt:""})}),(0,i.jsxs)("dd",{className:"min-w-0 flex-1",children:[(0,i.jsx)("div",{className:"text-text-1 text-size-20px mb-1",children:(0,i.jsx)("span",{className:"ltr-lock-block account-text overflow-hidden text-ellipsis whitespace-nowrap",children:null==e1?void 0:e1.userAccount})}),(0,i.jsxs)("div",{className:"text-text-2 personal-id flex items-center",children:["ID:",(0,i.jsx)("span",{className:"personal-id-num",ref:ty,children:null==e1?void 0:e1.id}),(0,i.jsx)("span",{"data-copy-user-id":!0,children:(0,i.jsx)(c.Z,{className:"align-middle text-size-12px   ms-1  inline-block",name:"public_copy",lineColors:"fill-text-2 ",areaColors:"fill-text-2 ",onClick:()=>{let e=document.createElement("textarea");e.value=null==e1?void 0:e1.id,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),e.setSelectionRange(0,99999);try{document.execCommand("copy")?eU(eR("invitePrize.copySuccess")):eL(eR("invitePrize.copyError"))}catch(e){eL(eR("invitePrize.copyError"))}finally{document.body.removeChild(e)}}})})]})]})]}),(0,i.jsxs)("div",{className:(0,C.cn)("flex items-center h-[32px] gap-[4px] rounded-s-[20px] px-[12px] flex-shrink-0",t2[null==e1?void 0:e1.authLevel]),onClick:()=>{eZ("/personal/verification")},children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   me-1  inline-block",name:"personal_attestation_certified",lineColors:t4[null==e1?void 0:e1.authLevel],areaColors:t4[null==e1?void 0:e1.authLevel]}),(0,i.jsx)("span",{className:"status-text",children:iU})]})]}),(0,i.jsxs)("div",{className:"flex gap-[12px] items-center flex-wrap ps-[74px]",children:[!eI&&(null==e1?void 0:e1.questionnaireTagName)&&(null==tn?void 0:tn.open)===1&&(0,i.jsxs)("div",{className:"h-[24px] flex items-center gap-[4px] ps-[12px] pe-[8px] rounded-[20px] bg-rise-4 text-rise-1 text-size-12px font-medium cursor-pointer",onClick:e=>{e.stopPropagation(),iO()},children:[(0,i.jsx)("span",{className:"whitespace-nowrap",children:e1.questionnaireTagName}),(0,i.jsx)(c.Z,{className:"align-middle text-size-12px inline-block",name:"public_arrow_right",lineColors:"fill-rise-1",areaColors:"fill-rise-1"})]}),!eI&&tM&&(null==e1?void 0:null===(eg=e1.isSub)||void 0===eg?void 0:eg.toString())!=="1"&&(0,i.jsx)("div",{className:(0,C.cn)("h-[24px] px-[12px] flex items-center justify-center gap-[4px] text-size-12px rounded-[100px] group","0"===tA?tT?"border border-fill-5 text-text-1":"bg-fill-5 text-text-1":tT?"border border-main-1 text-main-1":"bg-campaign-fill-2 text-campaign-text-2"),onClick:e=>{e.stopPropagation(),tT?eZ("/vipFeeRate"):eZ("/vip")},children:tP})]}),!eI&&tM&&(null==e1?void 0:null===(eb=e1.isSub)||void 0===eb?void 0:eb.toString())!=="1"&&!tI&&tU&&(0,i.jsxs)("div",{className:"px-[16px] rounded-[20px] mt-[20px] relative min-h-[140px]",children:[(0,i.jsx)(o.default,{unoptimized:!0,width:100,height:100,className:"w-full h-auto",src:tT?k.LT[eV][e9.templateId]:k.TQ[eV][e9.templateId],alt:""}),(0,i.jsxs)("div",{className:"absolute top-0 left-[16px] right-[16px] h-full px-[16px] py-[20px] box-border",children:[(0,i.jsxs)("div",{className:"flex items-center gap-[8px] justify-between mb-[24px] text-text-1 cursor-pointer",children:[(0,i.jsxs)("div",{className:"flex items-center",onClick:()=>
1{tT?eZ("/vipFeeRate"):eZ("/vip")},children:[(0,i.jsx)("span",{children:eR("vip.text44",{level:tq})}),(0,i.jsx)(c.Z,{className:"align-middle text-size-14px inline-block",name:"public_positions_arrow_right",lineColors:"fill-text-1",areaColors:"fill-text-1"})]}),(0,i.jsx)("i",{onMouseOver:()=>{tc(!0)},onMouseLeave:()=>{tc(!1)},onClick:()=>{iu()},children:(0,i.jsx)(c.Z,{className:"align-middle text-size-16px inline-block",name:"public_close_20",lineColors:tr?"fill-special-5":"fill-special-4",areaColors:tr?"fill-special-5":"fill-special-4"})})]}),(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"flex items-end justify-between gap-[16px]",children:[(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsx)("div",{className:"text-text-1 text-size-14px font-regular mb-[16px]",children:null==tH?void 0:tH.title}),(0,i.jsxs)("dl",{className:"flex-1",children:[(0,i.jsxs)("dt",{className:"text-text-2 flex items-center font-regular text-size-12px mb-[8px]",children:[null==tH?void 0:tH.currentValue,"/",null==tH?void 0:tH.thresholdValue,"\xa0",null==tH?void 0:tH.thresholdUnit]}),(0,i.jsx)("dd",{className:"bg-fill-2 h-[4px] rounded-[8px]",children:(0,i.jsx)("div",{className:(0,C.cn)("h-[4px] rounded-[8px]",tT?"bg-main-1":"bg-campaign-fill-3"),style:{width:null==tH?void 0:tH.progressWidth}})})]})]}),(0,i.jsx)(r.Z,{width:"72px",height:"28px",paddingW:"0",defaultColorClass:tT?"":"bg-campaign-fill-1 text-campaign-text-1",hoverColorClass:tT?"":"bg-campaign-fill-1 text-campaign-text-1",activeColorClass:tT?"":"bg-campaign-fill-1 text-campaign-text-1",onClick:()=>{tW()},children:null==tH?void 0:tH.buttonText})]})})]})]})]}),(0,i.jsx)("div",{className:"sideBar-navList text-text-1",children:(0,i.jsxs)(i.Fragment,{children:[!eI&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ",onClick:()=>{iq(0,"/personal/personalOverview","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px   ",name:"personal_overview",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("personal.navMenu.list.personalOverview")})]})})}),(0,i.jsxs)("nav",{className:"nav-item cursor-pointer",children:[(0,i.jsxs)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ",onClick:()=>{iq(1,"","personAccountSetting")},children:[(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"personal_accountoverview",lineColors:"personAccountSetting"===tY?"fill-text-1":"fill-special-4",areaColors:"personAccountSetting"===tY?"fill-text-1":"fill-special-4"}),(0,i.jsx)("dd",{children:eR("personal.navMenu.list.personalAccount")})]}),(0,i.jsx)(c.Z,{className:(0,C.cn)("align-middle text-size-12px   p-[2px]   transition-all duration-300 inline-block","personAccountSetting"===tY&&"rotate-180"),name:"public_arrow_down_triangle",lineColors:"fill-text-3",areaColors:"fill-text-3"})]}),(0,i.jsxs)("ol",{className:(0,C.cn)("max-h-0  will-change-max-height  transition-all duration-300 origin-top overflow-hidden","personAccountSetting"===tY&&"max-h-[1000px]"),children:[eI&&(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/personalOverview","")},children:eR("newPersonal.text151")}),(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/verification","")},children:eR("personal.userManagement.text3")}),!eI&&(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/personalAccountSafety","")},children:eR("personal.navMenu.list.personalAccountSafety")}),!eI&&(Number(null==e8?void 0:null===(ej=e8.switch)||void 0===ej?void 0:ej.fiatIncomeOpen)||(null===(ew=e8.url)||void 0===ew?void 0:ew.otcUrl))&&(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/personalPayment","")},children:eR("personal.navMenu.list.personalPayment")}),!eI&&1===Number(null==e8?void 0:null===(eN=e8.switch)||void 0===eN?void 0:eN.openapi_hide)&&(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/apiManagement","")},children:eR("personal.navMenu.list.apiManagement")})]})]}),(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/order/exchangeOrder",onClick:()=>{eI?iS("order"):iq(0,"/order/exchangeOrder","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_orderordraft",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("header.order")})]})})}),eI&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ",onClick:()=>{i_("/assets/exchangeAccount")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"assets_view",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("header.assets")})]})})}),(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsxs)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/mesage",onClick:()=>{iq(0,"/mesage","")},children:[(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_information",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("message.mesage")})]}),!!lL&&(0,i.jsx)("div",{className:" w-[6px] h-[6px] me-[5px] rounded-full  bg-[red]"})]})}),!eI&&1===Number(null==e8?void 0:null===(eC=e8.switch)||void 0===eC?void 0:eC.taskCenterIsShowUser)&&(null==e1?void 0:null===(ek=e1.isSub)||void 0===ek?void 0:ek.toString())!=="1"&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/taskCenter",onClick:()=>{iq(0,"/taskCenter","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"personal_taskcenter",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("taskCenter.text")})]})})}),!eI&&1===Number(null==e8?void 0:null===(ey=e8.switch)||void 0===ey?void 0:ey.couponCenterStatus)&&(null==e1?void 0:null===(e_=e1.isSub)||void 0===e_?void 0:e_.toString())!=="1"&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/couponCenter",onClick:()=>{iq(0,"/couponCenter","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"personal_couponcenter",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:t5})]})})}),1===Number(null==e8?void 0:null===(ez=e8.switch)||void 0===ez?void 0:ez.invitationRewardOpen)&&(null==e1?void 0:null===(eS=e1.isSub)||void 0===eS?void 0:eS.toString())!=="1"&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/taskCenter",onClick:()=>{iq(0,"/promotion","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_inviteorcreate",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("invitePrize.invite_friends")})]})})}),!eI&&(null==tn?void 0:tn.open)===1&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0",onClick:()=>{iO()},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"personal_investorcertified",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("newPersonal.text139")})]})})}),!eI&&1===Number(null==e1?void 0:e1.agentStatus)&&1===Number(null==e8?void 0:null===(eM=e8.switch)||void 0===eM?void 0:eM.agentUserOpen)&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/taskCenter",onClick:()=>{iq(0,"/personal/exBroker","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_spotbroker",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("brokerSystem.overviewTitle[2]")})]})})}),!eI&&tM&&(null==e1?void 0:null===(eO=e1.isSub)||void 0===eO?void 0:eO.toString())!=="1"&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/vip",onClick:()=>{iq(0,"/vip","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"personal_vip",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:tT?"VIP":eR("vip.text1")})]})})}),!eI&&tM&&(null==e1?void 0:null===(eT=e1.isSub)||void 0===eT?void 0:eT.toString())!=="1"&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/vipFeeRate",onClick:()=>{iq(0,"/vipFeeRate","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"trade_rate",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("vip.text55")})]})})}),!eI&&!!t$&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0","data-link":"/coBroker/overview",onClick:()=>{iq(0,t6.coUrl+"/coBroker/overview","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"personal_contractbroker",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("coAgent.broker")})]})})}),!eI&&!((null==e1?void 0:e1.authLevel)!==1)&&(0,i.jsxs)("nav",{className:"nav-item cursor-pointer",children:[(0,i.jsxs)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ",onClick:()=>{iq(1,"","subAccountSetting")},children:[(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"personal_subaccount",lineColors:"subAccountSetting"===tY?"fill-text-1":"fill-special-4",areaColors:"subAccountSetting"===tY?"fill-text-1":"fill-special-4"}),(0,i.jsx)("dd",{children:eR("subAccount.nav.nav1")})]}),(0,i.jsx)(c.Z,{className:(0,C.cn)("align-middle text-size-12px    p-[2px] transition-all duration-300 inline-block","subAccountSetting"===tY&&"rotate-180"),name:"public_arrow_down_triangle",lineColors:"fill-text-3",areaColors:"fill-text-3"})]}),(0,i.jsxs)("ol",{className:(0,C.cn)("max-h-0  will-change-max-height  transition-all duration-300 origin-top overflow-hidden","subAccountSetting"===tY&&"max-h-[1000px]"),children:[(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/subManagement","")},children:eR("subAccount.nav.nav2")}),(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/subApiManagement","")},children:eR("subAccount.nav.nav_api")}),(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/subAssetManagement","")},children:eR("subAccount.nav.nav3")}),(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/subOrderManagement","")},children:eR("subAccount.nav.nav4")}),(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/subWalletHistory","")},children:eR("subAccount.nav.nav5")}),(0,i.jsx)("nav",{className:"h-12 ps-11 pe-4 text-size-14px hover:bg-fill-4 flex items-center cursor-pointer ",onClick:()=>{iq(0,"/personal/subLoginRecord","")},children:eR("subAccount.nav.nav6")})]})]}),!eI&&(0,i.jsx)("nav",{className:"nav-item cursor-pointer",children:(0,i.jsx)("div",{className:"flex h-[52px] justify-between items-center px-4 text-size-16px ","data-expand":"0",onClick:()=>{iq(0,"/personal/personalSetting","")},children:(0,i.jsxs)("dl",{className:"flex items-center gap-3",children:[(0,i.jsx)(c.Z,{className:"align-middle text-size-16px  ",name:"public_set",lineColors:"fill-special-4",areaColors:"fill-special-4"}),(0,i.jsx)("dd",{children:eR("personal.navMenu.list.personalSetting")})]})})})]})})]}),!eI&&1===tS&&(0,i.jsx)("div",{className:"pt-2 px-4 ",children:(0,i.jsx)("button",{className:"w-full h-[44px] font-[14px] rounded-[4px] bg-fill-3 hover:bg-fill-6 text-text-1",onClick:()=>{iq(0,"/personal/h5ChangeAccount","")},children:eR("changeAccount.text22")})}),(0,i.jsx)("div",{className:"pt-3 px-4 pb-3",children:(0,i.jsx)("button",{className:"w-full h-[44px] font-[14px] rounded-[4px] bg-fill-3 hover:bg-fill-6 text-text-1",onClick:()=>{iA()},children:eR("header.out")})})]})]})]}),to&&(0,i.jsx)(d,{type:to,title:eR("newPersonal.text140"),content:"kyc"===to?eR("newPersonal.text141"):eR("newPersonal.text142"),btnText:"kyc"===to?eR("newPersonal.text143"):eR("common.confirm"),onClose:()=>ta(null),onConfirm:()=>{ta(null),"kyc"===to&&iS("/personal/verification")}})]})}},9982:function(e,l,t){"use strict";t.r(l);var i=t(7437),n=t(2265),s=t(9376),o=t(5265),a=t(24),r=t(43),c=t(9842),d=t(5850),x=t(8765),p=t(8046);let u=[1857,1563,1006],m="IpRestrictionBannerDismissed";l.default=()=>{var e;let{t:l}=(0,r.Q)(),{publicInfo:t}=(0,x.s)(),{navigate:h}=(0,c.O)(),v=(0,s.usePathname)(),f=(0,p.Ww)(v),{isH5:g}
1=(0,a.F)(),b=g?44:64,[j,w]=(0,n.useState)(!1),[N,C]=(0,n.useState)(b),k=(0,n.useCallback)(()=>{let e=g?44:64;if(!g){C(e);return}let l=document.getElementById("guide-download-section");if(!l){C(e);return}let t=l.getBoundingClientRect();t.bottom>e?C(Math.round(t.bottom)+4):C(e)},[g]),y=(0,n.useMemo)(()=>{var e;let l=null==t?void 0:null===(e=t.msg)||void 0===e?void 0:e.companyId;return void 0!==l&&u.includes(l)},[t]),_=null==t?void 0:null===(e=t.msg)||void 0===e?void 0:e.companyId;return((0,n.useEffect)(()=>{void 0!==_&&"/serviceLimit"!==f&&d.Z.post("common/checkVisitStatus").then(e=>{var l;let{code:t,data:i}=e;(null==t?void 0:t.toString())==="0"&&((null==i?void 0:null===(l=i.status)||void 0===l?void 0:l.toString())!=="1"||(y?window.sessionStorage.getItem(m)||w(!0):(window.sessionStorage.setItem("LimitCountryNames",i.countryNames||""),h("/serviceLimit"))))})},[_,f]),(0,n.useEffect)(()=>{if(!j)return;k();let e=document.getElementById("guide-download-section");if(!e)return;let l=new ResizeObserver(k);return l.observe(e),window.addEventListener("scroll",k,{passive:!0}),()=>{l.disconnect(),window.removeEventListener("scroll",k)}},[j,k]),j)?(0,i.jsxs)("div",{className:(0,p.cn)("fixed inset-x-0 z-[10] sm:absolute","flex justify-center sm:justify-between items-center sm:items-start gap-[20px] sm:gap-[16px]","p-[16px]","bg-fill-3 text-text-1","text-size-14px","sm:text-m-14px"),style:{top:N},role:"alert",children:[(0,i.jsxs)("div",{className:"flex items-center sm:items-start gap-[8px] min-w-0",children:[(0,i.jsx)(o.Z,{name:"public_tip_warning",className:"flex-shrink-0 text-size-14px sm:mt-[3px]",areaColors:"fill-warning-1",lineColors:"fill-warning-1"}),(0,i.jsx)("span",{className:"break-words",children:l("serviceLimit.bannerText")})]}),(0,i.jsx)(o.Z,{name:"public_close_20",className:"text-size-16px cursor-pointer sm:mt-[3px]",areaColors:"fill-special-4",lineColors:"fill-special-4",onClick:()=>{window.sessionStorage.setItem(m,"1"),w(!1)}})]}):null}},6855:function(e,l,t){"use strict";var i=t(7437),n=t(2265),s=t(3145),o=t(8046);l.Z=e=>{let{src:l,alt:t,maxWidth:a,maxHeight:r,className:c="",style:d={}
1,priority:x=!1,quality:p=75,onLoadingComplete:u,objectFit:m="contain"}=e,[h,v]=(0,n.useState)(null),[f,g]=(0,n.useState)(!0),[b,j]=(0,n.useState)(!1),w=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!l){j(!0),g(!1);return}g(!0),j(!1),v(null);let e=new window.Image;return e.src=l,e.onload=()=>{let l=e.width,t=e.height,i=1;if(a&&r&&(l>a||t>r))i=Math.min(a/l,r/t),l*=i,t*=i;else if(a&&l>a){let e=a/l;l*=e,t*=e}else if(r&&t>r){let e=r/t;l*=e,t*=e}v({width:l,height:t,ratio:i}),g(!1)},e.onerror=()=>{j(!0),g(!1)},()=>{e.onload=null,e.onerror=null}},[l,a,r]);let N={position:"relative",overflow:"hidden",width:h?"".concat(h.width,"px"):"".concat(a,"px"),height:h?"".concat(h.height,"px"):"".concat(r,"px"),maxWidth:"".concat(a,"px"),maxHeight:"".concat(r,"px"),...d};return!l||b?(0,i.jsx)("div",{ref:w,className:(0,o.cn)("image-placeholder",c,f?"bg-special-3":""),style:{...N,display:"flex",alignItems:"center",justifyContent:"center"}}):f?(0,i.jsx)("div",{ref:w,className:"".concat(c," image-loading"),style:{...N,display:"flex",alignItems:"center",justifyContent:"center"}}):(0,i.jsx)("div",{ref:w,className:"".concat(c," image-container"),style:N,children:(0,i.jsx)(s.default,{unoptimized:!0,src:l||"",alt:t,width:null==h?void 0:h.width,height:null==h?void 0:h.height,priority:x,quality:p,style:{objectFit:m,width:"100%",height:"100%"},onLoadingComplete:u,onError:()=>j(!0)})})}},2642:function(e,l,t){"use strict";t.d(l,{default:function(){return o}});var i=t(7437),n=t(2265),s=t(24);function o(e){let{children:l,locale:t}=e,{windowWidth:o,isH5:a}=(0,s.F)(),[r,c]=(0,n.useState)(1),d=(0,n.useRef)(null),x=(0,n.useRef)(null);return(0,n.useEffect)(()=>{o>=1280||o<768?(c(1),d.current.style.height="auto"):768===o?c(.6):c(.6+.4*(o-768)/512)},[o]),(0,n.useEffect)(()=>{if(!x.current||!d.current)return;let e=new ResizeObserver(()=>{let e=x.current.getBoundingClientRect().height;d.current.style.height="".concat(e+60,"px")});return e.observe(x.current),()=>e.disconnect()},[a]),(0,i.jsx)("div",{ref:d,className:"overflow-hidden mt-[60px] sm:mt-0 sm:pb-[50px]   ",children:(0,i.jsx)("div",{ref:x,style:{"--page-scale":a?1:r,zoom:a?"1":"".concat(r),transformOrigin:"ar_AE"===t?"top right ":"top left"},children:l})})}},4110:function(e,l,t){"use strict";t.d(l,{ToastContainer:function(){return u}});var i=t(7437),n=t(2265),s=t(7802),o=t(5265);t(4108);var a=t(2953),r=t(7194),c=e=>{let{name:l="tip",tag:t="div",children:s,className:o=""}=e,c=n.Children.toArray(s).filter(n.isValidElement);return(0,i.jsx)(a.Z,{component:t,className:o,children:null==c?void 0:c.map(e=>(0,i.jsx)(r.Z,{timeout:300,classNames:{enter:"".concat(l,"-enter-from"),enterActive:"".concat(l,"-enter-active"),enterDone:"".concat(l,"-enter-to"),exit:"".concat(l,"-leave-from"),exitActive:"".concat(l,"-leave-active"),exitDone:"".concat(l,"-leave-to")},children:e},e.key))})},d=t(8046);let x={success:{name:"public_result_success",areaColors:"fill-rise-1",lineColors:"fill-rise-1"},error:{name:"public_result_fail",areaColors:"fill-fall-1",lineColors:"fill-fall-1"},warning:{name:"public_result_warning",areaColors:"fill-warning-1",lineColors:"fill-warning-1"},info:{name:"",areaColors:"",lineColors:""}};var p=e=>{let{toast:l}=e,{type:t,message:n,colorType:s=""}=l,a=x[t];return(0,i.jsx)(c,{children:(0,i.jsxs)("div",{className:(0,d.cn)("shadow-[0px_2px_10px_rgba(0,0,0,0.15)] max-w-[300px] min-h-[40px] mb-[26px] box-border transition-all duration-300 p-[10px_20px] flex rounded-[4px]  overflow-hidden   gap-[8px] sm:max-w-[calc(100vw-80px)]","dark"===s?"bg-[#303133] text-text-6":"bg-fill-3 text-text-1"),role:"alert",children:["info"!==t&&(0,i.jsx)("div",{className:"flex-shrink-0 h-[20px] flex items-center",children:(0,i.jsx)(o.Z,{className:"  align-middle text-size-20px ",name:a.name,areaColors:a.areaColors,lineColors:a.lineColors})}),(0,i.jsx)("div",{className:"font-medium  text-m-14px tracking-[0] text-center ",children:n})]})})};let u=()=>{let e=(0,s.E)(e=>e.toasts);return(0,i.jsx)("div",{className:"fixed left-1/2 top-[100px] z-[9999] -translate-x-1/2  sm:top-1/2 sm:translate-x-0 sm:left-0 sm:w-full sm:flex sm:flex-col sm:items-center",children:null==e?void 0:e.map(e=>(0,i.jsx)(p,{toast:e},e.id))})}},4963:function(e,l,t){"use strict";t.r(l);
1var i=t(7437),n=t(2265),s=t(5265),o=t(6855),a=t(24),r=t(43),c=t(9734),d=t(9842),x=t(5850),p=t(8765),u=t(8046),m=t(7885);l.default=e=>{let{customerJs:l}=e,{t}=(0,r.Q)(),h=(0,n.useRef)(!1),{publicInfo:v,baseConfig:f}=(0,p.s)(),{taskCenterFloatingLayer:g=null}=v.switch||{},[b,j]=(0,n.useState)(""),[w,N]=(0,n.useState)(""),[C,k]=(0,n.useState)(""),[y,_]=(0,n.useState)(!1),{isH5:z,deviceSure:S}=(0,a.F)(),{theme:M}=(0,c.F)(),O=(0,n.useRef)(""),{navigate:T}=(0,d.O)(),Z=(0,n.useCallback)(e=>{_(e)},[]);return((0,n.useEffect)(()=>{if(!z&&!h.current&&l&&S){if(h.current=!0,-1!==l.indexOf("</script>")){let e=document.createElement("div");e.innerHTML=l;let t=e.getElementsByTagName("script");for(let e=0;e<t.length;e++){let l=t[e],i=document.createElement("script");if(l.src)i.async=!0,i.defer=!0,i.src=l.src,i.type="text/javascript",l.id&&(i.id=l.id);else if(l.textContent){let e=document.createTextNode(l.textContent);i.appendChild(e)}i.onload=()=>{},i.onerror=()=>{},document.head.appendChild(i)}}else{var e;let t=document.createElement("script");t.innerHTML=l,t.onload=()=>{},t.onerror=()=>{},null===(e=document.getElementsByTagName("head")[0])||void 0===e||e.appendChild(t)}}},[l,S,z]),(0,n.useEffect)(()=>{g&&g.indexOf("1")>-1&&!z&&x.Z.post("common/get_flow_layer").then(e=>{let{code:l,data:i}=e;if("0"===l.toString()){let{icon:e,flowLayerMainTitle:l,flowLayerSubTitle:n,linkAddress:s}=i;j(e||m.C8[M][f.artisticTemplateId]),N(l||t("taskCenter.text81")),k(n||t("taskCenter.text82")),O.current=s||"/taskCenter"}setTimeout(()=>{Z(!1)},500)})},[f.artisticTemplateId,z,Z,t,g,M]),!(g&&g.indexOf("1")>-1)||z)?null:(0,i.jsx)("div",{className:(0,u.cn)("home-floatLayer fixed right-0 z-[1001] transition-all duration-300   bottom-[20%]  sm:hidden  translate-x-[calc(100%-60px)] rtl:right-auto rtl:left-0 rtl:translate-x-[calc(60px-100%)]",y&&"translate-x-[-20px] rtl:translate-x-[20px]"),id:"home-floatLayer",onClick:()=>{O.current&&T(O.current)},onMouseOver:()=>{Z(!0)},onMouseLeave:()=>{Z(!1)},children:(0,i.jsx)("div",{className:"flex cursor-pointer items-center h-16 rounded-full p-2 px-3   box-border bg-main-1",children:(0,i.jsxs)("dl",{className:"layer-wrap flex items-center",children:[(0,i.jsx)("dt",{className:"w-[48px] h-[48px] flex justify-center items-center bg-text-4 rounded-full  me-2 overflow-hidden",children:b&&(0,i.jsx)(o.Z,{src:b,maxWidth:32,maxHeight:32,alt:"logo"})}),(0,i.jsxs)("dd",{className:"layer-text ",children:[(0,i.jsxs)("div",{className:"main-text text-m-18px mb-[4px] flex items-center ",children:[(0,i.jsx)("span",{className:"text-text-4 font-bold ",children:w}),(0,i.jsx)(s.Z,{className:"align-middle text-size-16px   ms-1 inline-block",name:"trade_swiper_arrow_right",lineColors:"fill-text-4",areaColors:"fill-text-4"})]}),(0,i.jsx)("div",{className:"sub-text text-m-12px text-text-4 font-medium",children:C})]})]})})})}},7885:function(e,l,t){"use strict";t.d(l,{C8:function(){return n},LT:function(){return o},TQ:function(){return s},V1:function(){return i}});let i={1:{dark:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/1/dark/headImg.webp",light:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/1/light/headImg.webp"},2:{dark:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/2/dark/headImg.webp",light:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/2/light/headImg.webp"},3:{dark:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/3/dark/headImg.webp",light:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/3/light/headImg.webp"},4:{dark:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/4/dark/headImg.webp",light:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/4/light/headImg.webp"}},n={1:{1:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/5efcf61592ac64392d649f59e09b1c8e.webp",2:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/12c5646f4e2e4c25675ab5a3a9e2048b.webp",3:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/d3fb8a64d5eb61bd204aff43dc6bd1c0.webp",4:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/390e0f89c0c4dd818bc76ca016607870.webp"},2:{1:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/706adf130beef0960f2f74acc9fd2cd1.webp",2:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/12c5646f4e2e4c25675ab5a3a9e2048b.webp",3:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/d3fb8a64d5eb61bd204aff43dc6bd1c0.webp",4:"https://d1bv9t3fnouri2.cloudfront.net/1006/upload/390e0f89c0c4dd818bc76ca016607870.webp"}},s={1:{1:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/1/dark/personal_vip_card.webp",2:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/2/dark/personal_vip_card.webp",3:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/3/dark/personal_vip_card.webp",4:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/4/dark/personal_vip_card.webp"},2:{1:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/1/light/personal_vip_card.webp",2:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/2/light/personal_vip_card.webp",3:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/3/light/personal_vip_card.webp",4:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/4/light/personal_vip_card.webp"}},o={1:{1:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/1/dark/personal_vip_card_custom.webp",2:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/2/dark/personal_vip_card_custom.webp",3:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/3/dark/personal_vip_card_custom.webp",4:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/4/dark/personal_vip_card_custom.webp"},2:{1:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/1/light/personal_vip_card_custom.webp",2:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/2/light/personal_vip_card_custom.webp",3:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/3/light/personal_vip_card_custom.webp",4:"https://d3j7ho7qyau2gq.cloudfront.net/fe-theme/img/4/light/personal_vip_card_custom.webp"}}},4108:function(e){e.exports={"tip-enter-from":"transitions_tip-enter-from__4Kfot","tip-leave-to":"transitions_tip-leave-to__NDSXB","tip-enter-active":"transitions_tip-enter-active__ritbW","tip-leave-active":"transitions_tip-leave-active__zL1UJ"}}},function(e){e.O(0,[362,672,345,301,752,971,117,744],function(){return e(e.s=5935)}),_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.