1import{a5 as G,a6 as Z,a7 as q,a8 as J,a9 as K,aa as Q}from"./default-CRd4Zm9w.js";import{_ as ee}from"./NuxtLinkLocale-DI4ZV847.js";import{defineComponent as I,computed as d,openBlock as g,createElementBlock as b,normalizeStyle as D,createElementVNode as t,ref as te,onMounted as oe,unref as o,withModifiers as $,createVNode as v,createTextVNode as C,toDisplayString as y,normalizeClass as T,createBlock as se,withCtx as A,Fragment as B,isRef as re,createCommentVNode as N,renderList as ne,nextTick as ie}from"../shared/vue-fb74e52b2d.js";/* empty css */import{T as le}from"./index-DbOEcZDK.js";import{T as ae}from"./index-thuBIvw4.js";import{u as ce}from"./index-CEc_dPAP.js";import{u as pe}from"./index-KpM-S7KR.js";import{o as de,i as me,aL as ue,aF as fe,N as he}from"./entry-D8N10Ulb.js";import{storeToRefs as M}from"../shared/vue-fb74e52b2d.js";import{z as _e}from"../shared/lib-8c94f98034.js";import{u as ve}from"./useBitNumberFormat-BCx38A9g.js";import"./routes-DvK16Y-n.js";import"./index-DM2vlRQJ.js";import"./index-DF20vA8e.js";import"./index-DiSgAh9-.js";import"./IconIconCloseS-BbmqJrrN.js";import"../shared/vue-fb74e52b2d.js";import"./index-CZpXlSJt.js";import"./index-BHmXe4Eb.js";import"./useAlertModal-DHf1cfzK.js";import"./help-center-doc-Dc3HwgHm.js";import"./calculate-D3wTcK8C.js";import"../shared/vendor-5dd27d1f95.js";import"./logger-BHXHfIuj.js";import"./useClipboard-ZartQJlh.js";import"./imageProcess-BkMEZlXw.js";import"./IconIconGoS-BnzvoSah.js";import"./IconIconInputCloseS-DQQnEr4z.js";import"./IconIconUidCopyS-otFoX3K1.js";import"./useRedirectQuery-CuiuPDsS.js";import"./index-Cfe4TD2K.js";import"./productChangelogBizTracking-1qraJUeH.js";import"./track-events-DoBQN2WN.js";import"./resource-slot-sdk.es-Xk2hwtib.js";import"./IconIconCorrectS-vellJfbG.js";import"./index-CDfPIuB2.js";import"./index-C0LrgCQj.js";import"./index-CIZj33qx.js";import"./use-merge-state-CE77fbP0.js";import"./index-aniEunVY.js";import"./index-BrmkLDOz.js";import"./index-DA-u5WRy.js";import"./useLanguageDirection-B3MXBKHN.js";import"./loading-B6ATSxsj.js";import"./index.vue-D4ao4OAk.js";import"./index-DvkFpNev.js";import"./index-EB3XdG25.js";import"./index-BAFazOsE.js";import"./index-CNdAykdC.js";import"./index-BAFpSv7R.js";import"../shared/track-c1c5e94a12.js";import"./IconIconList_placeholder-DYfvw2VN.js";import"./IconNoDataSearch-DejArX09.js";import"./index-BjxqLl3v.js";import"./grid-col-omcBHGTB.js";import"./responsive-observe-J-9Qlw03.js";import"./useBuQrcode-De77VWoy.js";import"./interval-CAoZlQL_.js";import"./openModal-rNqIXVPp.js";import"./nuxt-link-DGUzJGw0.js";import"./useUnifiedResize-DwntOElF.js";import"./IconIconClosePopS-CGO1zptt.js";import"./registrationLoginModule-CjjQnoq1.js";import"./useLoginRecord-WcSko6aq.js";import"../shared/vue-fb74e52b2d.js";import"./socketUserId-Deg7Vsvb.js";import"./request-D8oB7PjQ.js";/* empty css */import"../shared/vue-fb74e52b2d.js";(function(){try{var a=[],e=typeof globalThis<"u"?globalThis:void 0,r=typeof window<"u"?window:void 0,u=typeof self<"u"?self:void 0,_=typeof global<"u"?global:void 0,n=typeof document<"u"?document:void 0,p=e&&e.Error||r&&r.Error||u&&u.Error||_&&_.Error||Error,m=new p().stack,c=function(i){try{i&&a.indexOf(i)===-1&&a.push(i)}catch{}};c(e),c(r),c(u),c(_);try{n&&c(n.defaultView)}catch{}try{r&&(c(r.window),c(r.parent),c(r.top))}catch{}if(m)for(var x=0;x<a.length;x++)try{var s=a[x];s._armsRumDebugIds=s._armsRumDebugIds||{},s._armsRumDebugIds[m]="dc63a5f7-ec00-4163-95a6-9ed613b7d810",s._armsRumDebugIdIdentifier="armsRum-uuid-dc63a5f7-ec00-4163-95a6-9ed613b7d810"}catch{}}catch{}})();const ge=["width","height","preserveAspectRatio"],we=["fill"],be=["fill"],xe=["fill"],ye=["fill"],ke=!1,Ae=I({name:"IconTotalAssetsIcon",__name:"IconTotalAssetsIcon",props:{name:{},width:{},height:{},size:{},scale:{},mirror:{type:Boolean,default:!1},color:{},pathColors:{},strokeColors:{},preserveAspectRatio:{default:"xMidYMid meet"},title:{},"aria-label":{},"aria-hidden":{type:[Boolean,String]},role:{},"aria-describedby":{},"aria-labelledby":{}},setup(a){const e=a,r=d(()=>e.width||e.size||"100%"),u=d(()=>e.height||e.size||"100%"),_=d(()=>{const m={};return e.scale&&e.scale!==1&&(m.transform=`scale(${e.scale})`),e.mirror&&(m.transform=(m.transform||"")+" scaleX(-1)"),e.color,m}),n=["#4AA9FF","#993CFC","#63D3A5","#DA6ADE"],p=m=>{const c=e.pathColors?.[m];if(c!=null)return c;const x=n[m];return!!x?x:void 0};return(m,c)=>(g(),b("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r.value,height:u.value,preserveAspectRatio:a.preserveAspectRatio,style:D(_.value),fill:"none"},[t("rect",{width:"6",height:"6",x:"12.192",y:"3",rx:"3",transform:"rotate(45 12.192 3)",fill:p(0)},null,8,we),t("rect",{width:"6",height:"6",x:"17.142",y:"7.95",rx:"3",transform:"rotate(45 17.142 7.95)",fill:p(1)},null,8,be),t("rect",{width:"6",height:"6",x:"7.243",y:"7.95",rx:"3",transform:"rotate(45 7.243 7.95)",fill:p(2)},null,8,xe),t("rect",{width:"6",height:"6",x:"12.192",y:"12.899",rx:"3",transform:"rotate(45 12.192 12.9)",fill:p(3)},null,8,ye)],12,ge))}}),Ce=Object.assign(Ae,{__name:"IconTotalAssetsIcon"}),Ie=["width","height","preserveAspectRatio","fill"],De=["fill"],Se=!1,$e=I({name:"IconIconDownS",__name:"IconIconDownS",props:{name:{},width:{},height:{},size:{},scale:{},mirror:{type:Boolean,default:!1},color:{},pathColors:{},strokeColors:{},preserveAspectRatio:{default:"xMidYMid meet"},title:{},"aria-label":{},"aria-hidden":{type:[Boolean,String]},role:{},"aria-describedby":{},"aria-labelledby":{}},setup(a){const e=a,r=d(()=>e.width||e.size||"100%"),u=d(()=>e.height||e.size||"100%"),_=d(()=>{const s={};return e.scale&&e.scale!==1&&(s.transform=`scale(${e.scale})`),e.mirror&&(s.transform=(s.transform||"")+" scaleX(-1)"),e.color,s}),n=[""],p=s=>(s??"").trim().toLowerCase(),m=s=>p(s)==="none",c=s=>{const i=p(s);return!!i&&i!=="none"&&i!=="transparent"&&i!=="inherit"&&i!=="currentColor"},x=s=>{const i=e.pathColors?.[s];if(i!=null)return i;const f=n[s],k=!!f;return e.color?k?e.color:void 0:m(f)?"none":c(f)?f:e.color?e.color:p(f)==="currentcolor"?"currentColor":void 0};return(s,i)=>(g(),b("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:r.value,height:u.value,preserveAspectRatio:a.preserveAspectRatio,style:D(_.value),fill:e.color!=null&&e.color!==""?e.color:"currentColor"},[t("path",{d:"M492.032 657.664c10.24 12.8 29.696 12.8 39.936 0l288-360.064A25.6 25.6 0 0 0 800.256 256H223.872a25.6 25.6 0 0 0-19.968 41.6l288 360.064z",fill:x(0)},null,8,De)],12,Ie))}}),Te=Object.assign($e,{__name:"IconIconDownS"}),Re=["width","height","preserveAspectRatio"],ze=["fill"],Be=["fill"],Me=["fill"],Le=["fill"],Ve=I({name:"IconIconABuycoinsL",__name:"IconIconABuycoinsL",props:{name:{},width:{},height:{},size:{},scale:{},mirror:{type:Boolean,default:!1},preserveAspectRatio:{default:"xMidYMid meet"},title:{},"aria-label":{},"aria-hidden":{type:[Boolean,String]},role:{},"aria-describedby":{},"aria-labelledby":{},color:{}},setup(a){const e=a,r=d(()=>e.width||e.size||"100%"),u=d(()=>e.height||e.size||"100%"),_=d(()=>{const n={};return e.scale&&e.scale!==1&&(n.transform=`scale(${e.scale})`),e.mirror&&(n.transform=(n.transform||"")+" scaleX(-1)"),n});return(n,p)=>(g(),b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:r.value,height:u.value,preserveAspectRatio:a.preserveAspectRatio,style:D(_.value)},[t("path",{d:"M844.8 382.72v51.2l-657.92 2.56v-51.2l657.92-2.56z",fill:e.color||"#111111"},null,8,ze),t("path",{d:"M187.648 238.848h648.448V563.2h51.2V187.648H136.448v648.448H640v-51.2H187.648V238.848z",fill:e.color||"#111111"},null,8,Be),t("path",{d:"M819.2 631.552c-70.656 0-128 57.344-128 128s57.344 128 128 128 128-57.344 128-128-57.344-128-128-128z m0 212.48l-84.48-84.48 84.48-84.48 84.48 84.48-84.48 84.48z",fill:e.color||"#0D0D0D"},null,8,Me),t("path",{d:"M819.2 887.552c-70.656 0-128-57.344-128-128s57.344-128 128-128v43.52l-84.48 84.48 84.48 84.48v43.52z",fill:e.color||"#0D0D0D"},null,8,Le)],12,Re))}}),Ee=Object.assign(Ve,{__name:"IconIconABuycoinsL"}
1),je=["width","height","preserveAspectRatio"],Fe=["fill"],Ne=["fill"],Ue=I({name:"IconIconTransferL",__name:"IconIconTransferL",props:{name:{},width:{},height:{},size:{},scale:{},mirror:{type:Boolean,default:!1},preserveAspectRatio:{default:"xMidYMid meet"},title:{},"aria-label":{},"aria-hidden":{type:[Boolean,String]},role:{},"aria-describedby":{},"aria-labelledby":{},color:{}},setup(a){const e=a,r=d(()=>e.width||e.size||"100%"),u=d(()=>e.height||e.size||"100%"),_=d(()=>{const n={};return e.scale&&e.scale!==1&&(n.transform=`scale(${e.scale})`),e.mirror&&(n.transform=(n.transform||"")+" scaleX(-1)"),n});return(n,p)=>(g(),b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:r.value,height:u.value,preserveAspectRatio:a.preserveAspectRatio,style:D(_.value)},[t("path",{d:"M504.685714 54.857143C256 54.857143 54.857143 256 54.857143 504.685714S256 950.857143 504.685714 950.857143 950.857143 749.714286 950.857143 504.685714 749.714286 54.857143 504.685714 54.857143z m0 822.857143C296.228571 877.714286 128 709.485714 128 504.685714c0-208.457143 168.228571-373.028571 373.028571-373.028571C709.485714 128 877.714286 296.228571 877.714286 504.685714 877.714286 709.485714 709.485714 877.714286 504.685714 877.714286z",fill:e.color||"#0D0D0D"},null,8,Fe),t("path",{d:"M314.514286 555.885714h373.028571v80.457143H314.514286zM314.514286 369.371429h373.028571v80.457142H314.514286z",fill:e.color||"#0D0D0D"},null,8,Ne)],12,je))}}),He=Object.assign(Ue,{__name:"IconIconTransferL"}),Pe={class:"asset-common-content"},Oe={class:"asset-module-content"},Ye={class:"max-w-88%"},We={class:"flex select-none"},Xe={class:"flex items-center my-8"},Ge={class:"w-96 brd-all-color-border-1 border-rd-8 color-bg-2 px-16 fs-14 text-center color-text-1"},Ze={class:"fs-14 color-text-2 select-none"},qe={key:0,dir:"ltr"},Je={key:0,class:"h-60 px-12 my-12 flex justify-between items-center max-md:px-0"},Ke={class:"flex flex-col justify-center items-center gap-6 w-88"},Qe={class:"fs-12 color-text-2 lh-100% inline-block max-w-100% truncate"},et={class:"flex flex-col justify-center items-center gap-6 w-88"},tt={class:"fs-12 color-text-2 lh-100% inline-block max-w-100% truncate"},ot={class:"flex flex-col justify-center items-center gap-6 w-88"},st={class:"fs-12 color-text-2 lh-100% inline-block max-w-100% truncate"},rt=["onClick"],nt={class:"flex-col-start-end"},it={class:"fs-12 color-text-2"},lt=I({__name:"index",emits:["jumpPage","checkUserPage","openDrawer"],setup(a,{emit:e}){const r=de(),{accountType:u}=M(r),{loginStatus:_}=me(),n=d(()=>u?.value==="GENERAL"||u?.value==="VIRTUALLY"),{exchangeRate:p,balanceListView:m,currentDisplayAsset:c}=G(),x=pe(),{preferences:s}=M(x),i=ce(),{assets_showInfo:f}=M(i),k=e,{isMaxMiddle:R}=ue(),S=te(!1),{format:U}=ve(),L=d(()=>s.value.coin==="USDT"?2:8),V=d(()=>U(c.value,{precision:L.value,thousand:!0,fillZero:!1,roundMode:"floor"})),H=d(()=>R.value?16:11),E=w=>{fe(w),ie(()=>{k("jumpPage")})},P=()=>{const w=_e("transferClickedInUserHeader",!1);w.value=!0,k("jumpPage")},O=()=>{k("jumpPage"),window.buTracker?.track("crypto_deposit_entry_click",{deposit_coin:"",order_source:"1",entry_type:"unified",entry_source:"assets-menu"})},j=w=>{s.value.coin=w,S.value=!1};return oe(()=>{_.value&&r.ensureBalance()}),(w,l)=>{const F=q,Y=le,W=ae,z=ee;return g(),b("div",Pe,[t("div",Oe,[t("section",{class:"asset-module-header px-12 py-14 flex-row-between-center hover-bg-[var(--color-bg-4)] fs-14 color-text-1 border-rd-8 cursor-pointer max-md:color-bg-4",onClick:l[5]||(l[5]=()=>{o(R)||E("/assets/overview")})},[t("div",Ye,[t("p",We,[t("span",{class:"flex items-center",onClick:l[0]||(l[0]=$(h=>f.value=!o(f),["stop"]))},[v(o(Ce),{class:"mb-2 mr-4",name:"total-assets-icon",width:"24",height:"24"}),C(" "+y(w.$t("assets.overview.totalValue"))+" ",1),v(Z,{width:16,height:16,active:o(f),class:"cursor-pointer ml-4",color:"var(--color_text_2)"},null,8,["active"])])]),t("p",Xe,[t("span",{class:T(["mr-8 fs-24 fm-bold overflow-hidden select-none",[{"text-ellipsis fs-20!":o(V).length>o(H)}]]),dir:"ltr"},[o(f)?(g(),se(Y,{key:0,content:o(V)},{default:A(()=>[v(F,{value:o(c),precision:o(L),thousand:!0,"fill-zero":!1},null,8,["value","precision"])]),_:1},8,["content"])):(g(),b(B,{key:1},[C(" **** ")],64))],2),v(W,{"popup-visible":o(S),"onUpdate:popupVisible":l[4]||(l[4]=h=>re(S)?S.value=h:null),"popup-offset":8,trigger:o(R)?"click":"hover"},{content:A(()=>[t("div",Ge,[t("p",{class:T(["py-16 cursor-pointer",[{"color-text-button":o(s).coin==="USDT"}]]),onClick:l[2]||(l[2]=$(h=>j("USDT"),["stop"]))}," USDT ",2),l[7]||(l[7]=t("p",{class:"h-1 bg-[var(--color-border-1)]"},null,-1)),t("p",{class:T(["py-16 cursor-pointer",[{"color-text-button":o(s).coin==="BTC"}]]),onClick:l[3]||(l[3]=$(h=>j("BTC"),["stop"]))}," BTC ",2)])]),default:A(()=>[t("span",{class:"flex items-center fs-14 select-none",onClick:l[1]||(l[1]=$(()=>{},["stop"]))},[t("span",null,y(o(s).coin),1),v(o(Te),{class:"min-w-16",name:"icon-down-s",width:"16",height:"16",color:"var(--color-text-2)"})])]),_:1},8,["popup-visible","trigger"])]),t("p",Ze,[l[8]||(l[8]=C(" â",-1)),o(f)?(g(),b("span",qe,[C(y(o(p).suffix)+" ",1),v(F,{value:o(p).count,precision:o(p).coinPrecision,"fill-zero":!0},null,8,["value","precision"])])):(g(),b(B,{key:1},[C(" **** ")],64))])])]),o(n)?N("",!0):(g(),b("div",Je,[t("div",Ke,[v(z,{class:T([{noDeposit:+o(r).totalAssets<=0},"operation-button"]),to:"/assets/recharge",onClick:O},{default:A(()=>[v(o(J),{name:"icon-deposit-s",width:"24",height:"24",color:+o(r).totalAssets<=0?"var(--color_text_btn)":"var(--color_text_1)"},null,8,["color"])]),_:1},8,["class"]),t("span",Qe,y(w.$t("assets.recharge")),1)]),t("div",et,[v(z,{class:"operation-button",onClick:l[6]||(l[6]=h=>k("openDrawer",("DepositDrawerSceneEnum"in w?w.DepositDrawerSceneEnum:o(K)).BUY_CRYPTO))},{default:A(()=>[v(o(Ee),{name:"icon-abuycoins-l",width:"24",height:"24",color:"var(--color_text_1)"})]),_:1}
1),t("span",tt,y(w.$t("assets.menu.buyCoins")),1)]),t("div",ot,[v(z,{class:"operation-button",to:"/assets/overview",onClick:P},{default:A(()=>[v(o(He),{name:"icon-transfer-l",width:"24",height:"24",color:"var(--color_text_1)"})]),_:1}),t("span",st,y(w.$t("assets.transfer")),1)])]))]),(g(!0),b(B,null,ne(o(m).filter(h=>h.show===!0),(h,X)=>(g(),b("div",{key:X,class:"nav-item flex-row-between-center color-text-1 max-md:px-0!",onClick:at=>E(h.link)},[t("span",null,y(h.label),1),t("p",nt,[t("span",it,[v(Q,{value:h.value,masked:!o(f)},null,8,["value","masked"])]),o(f)?(g(),b("span",{key:0,class:"inline-block h-2 mt-2",style:D({backgroundColor:h.color,width:Number(h.process)>108?108:h.process+"px"})},null,4)):N("",!0)])],8,rt))),128))])}}}),Io=he(lt,[["__scopeId","data-v-d87b6be4"]]);export{Io as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.