1import{n as D,_ as E,u as $,cK as F}from"./entry-HKDfTNag.js";import{defineComponent as x,computed as L,openBlock as p,createBlock as k,withCtx as v,createVNode as f,unref as m,createTextVNode as I,toDisplayString as h,createElementBlock as b,createElementVNode as y,Fragment as M,renderList as R,normalizeClass as j,ref as C,renderSlot as O}from"../shared/vue-fb74e52b2d.js";import{_ as P}from"./NuxtLinkLocale-Cu6Qsk5V.js";/* empty css *//* empty css */import{B as Q,a as H}from"./index-BOT-i2Dn.js";import{I as V}from"./index-CC6Pspqt.js";import{a as S,b as K,d as N,u as B,e as q,c as A,f as U,g as z}from"./coinIntroduceShareData-YmJWhjOL.js";import{a as G,u as _}from"./hooks-B_wKJP6F.js";import{s as J}from"./854235-D7PYkVC6.js";import{useI18n as g}from"../shared/vue-fb74e52b2d.js";import{P as W}from"./index-DoSdE1of.js";import{c as X}from"./index-D9Zq8YJ9.js";import{u as T}from"./useServerFetch-9g7GTHsN.js";import"../shared/lib-37f092f0a7.js";/* empty css */import"../shared/vue-fb74e52b2d.js";import"./routes-DhmYHDMv.js";import"../shared/track-d38d16ec9e.js";import"../shared/vue-fb74e52b2d.js";import"../shared/vue-fb74e52b2d.js";import"../shared/vendor-c844df931c.js";import"./index-BS5oX3KC.js";import"./index-DLmEas-B.js";import"./index-CqCnN_cu.js";import"./index-DjMrilG1.js";import"./index-BArBTenc.js";import"./use-trigger-ZoZNCs71.js";(function(){try{var s=[],o=typeof globalThis<"u"?globalThis:void 0,t=typeof window<"u"?window:void 0,a=typeof self<"u"?self:void 0,r=typeof global<"u"?global:void 0,c=typeof document<"u"?document:void 0,d=o&&o.Error||t&&t.Error||a&&a.Error||r&&r.Error||Error,e=new d().stack,n=function(l){try{l&&s.indexOf(l)===-1&&s.push(l)}catch{}};n(o),n(t),n(a),n(r);try{c&&n(c.defaultView)}catch{}try{t&&(n(t.window),n(t.parent),n(t.top))}catch{}if(e)for(var u=0;u<s.length;u++)try{var i=s[u];i._armsRumDebugIds=i._armsRumDebugIds||{},i._armsRumDebugIds[e]="1bbc4b3b-a91a-4566-bd5c-602368d45a79",i._armsRumDebugIdIdentifier="armsRum-uuid-1bbc4b3b-a91a-4566-bd5c-602368d45a79"}catch{}}catch{}})();const Y=x({__name:"crumbs",setup(s){const o=G(),t=S(),a=_(),r=L(()=>`${a.value}${t.value}`);return(c,d)=>{const e=V,n=P,u=H,i=Q;return p(),k(i,{class:"fs-12 mt-40"},{separator:v(()=>[f(e)]),default:v(()=>[f(u,null,{default:v(()=>[f(n,{class:"cursor-pointer",to:`/spot-trade/${m(r)}`},{default:v(()=>[I(h(c.$t("currencyIntroduction.currency_price")),1)]),_:1},8,["to"])]),_:1}),f(u,null,{default:v(()=>[I(h(m(o)),1)]),_:1})]),_:1})}}}),Z={class:"flex justify-between items-center"},tt={class:"flex items-center"},et={class:"w-40 h-40 m-r16px rounded-50% overflow-hidden max-[678px]:w-32px max-[678px]:h-32px"},ot=["src"],at={class:"color-text-1 fs-32 fw-700 max-[678px]:fs-24"},nt={class:"color-text-2 not-italic fs-16 max-[678px]:fs-12"},ct=x({__name:"currency",setup(s){const o=_(),t=S(),a=K(),r=N(),c=()=>{D({path:`/spot-trade/${o.value}${t.value}`})};return(d,e)=>(p(),b("div",Z,[y("div",tt,[y("div",et,[y("img",{src:m(a)||m(J),class:"w-100% h-100%",alt:"defaultLogo"},null,8,ot)]),y("span",at,[I(h(m(r))+" ",1),y("i",nt,"("+h(m(o))+")",1)])]),y("div",{class:"color-text-button-new fs-14 fw-500 py-12px px-40px color-bg-button-new rounded-20 max-md:rounded-16 cursor-pointer max-[678px]:py-8px max-[678px]:px-24px",onClick:c},h(d.$t("activity.Trade")),1)]))}}),rt={class:"introduce-tabs flex color-text-2 mb-32px brd-bottom-color-border-1 fs-20 fw-500"},st=x({__name:"tabs",setup(s){const o=B(),t=q(),a=_(),{t:r}=g(),c=L(()=>[{key:"1",label:r("coinIntroduce.Project_introduction"),show:t.value.isShowIntroduce,link:`/coin-introduce/${a.value}`},{key:"2",label:r("header.markets"),show:t.value.isShowPrice,link:`/coin-price/${a.value}`},{key:"3",label:r("currencyIntroduction.tabs_howToBuy"),show:t.value.isShowHowToBuy,link:`/how-to-buy/${a.value}`}]),d=L(()=>c.value.filter(n=>n.show)),e=n=>{o.value=n};return(n,u)=>{const i=P;return p(),b("ul",rt,[(p(!0),b(M,null,R(m(d),(l,w)=>(p(),k(i,{key:w,class:j(["tabs-link relative py-16px mr-32px cursor-pointer inline-block color-text-2 max-[678px]:mr-24px max-[678px]:fs-14",{active:m(o)===l.ke
1y}]),to:l.link,onClick:_t=>e(l.key)},{default:v(()=>[I(h(l.label),1)]),_:2},1032,["class","to","onClick"]))),128))])}}}),it=E(st,[["__scopeId","data-v-56811d12"]]),ut=x({__name:"index",setup(s){return(o,t)=>(p(),b(M,null,[f(Y),f(ct,{class:"mt-49px mb-49px max-[678px]:mt-25px max-[678px]:mb-25px"}),f(it)],64))}}),lt=()=>{const s=A(),o=C(!1),t=_(),a=q(),r=$(),c=_(),d=B(),{locale:e}=g(),n=(i,l,w)=>{i?d.value=l:(D({path:w}),d.value="1")};return{isLoading:o,fetchMarketSymbolList:async()=>{o.value=!0;try{if(!t.value)return;const i=await T("/api/v1/common/coin_detail",{key:"common_coin_detail",watch:[e],query:{coin:t.value}});s.value=i.data?.value?.data,r.fullPath.includes("coin-introduce")&&(d.value="1"),r.fullPath.includes("coin-price")&&n(i.data.value?.data?.coinPriceInfo?.description,"2",`/coin-introduce/${c.value}`),r.fullPath.includes("how-to-buy")&&n(i.data.value?.data?.coinHowToBuyInfo?.description,"3",`/coin-introduce/${c.value}`),a.value.isShowIntroduce=!0,a.value.isShowPrice=!!i.data.value?.data?.coinPriceInfo?.description,a.value.isShowHowToBuy=!!i.data.value?.data?.coinHowToBuyInfo?.description}catch{}finally{o.value=!1}}}},dt=()=>{const s=U(),o=_(),t=C(!1),a=S();return{isLoading:t,fetchCoinPriceMarketMatrixData:async()=>{t.value=!0;try{if(!o.value||!a.value)return;const c=await X({symbol:o.value+a.value});c&&c.data&&(s.value=c.data)}catch{}finally{t.value=!1}}}},mt=()=>{const s=S(),o=C(!1),t=C(!0),a=_(),{locale:r}=g(),c=$();return{isLoading:o,isExit:t,fetchQuoteKey:async()=>{o.value=!0;try{if(!a.value)return;const e=await T("/api/v1/common/coin_pair/list",{key:"common_coin_coin_pair_list",watch:[r],query:{coin:a.value}}),n=e.data.value?.data.map(u=>u.base);if(t.value=n.includes(c.params.symbol),e.data.value&&Array.isArray(e.data.value.data)){const u=e.data.value.data.find(i=>i.quote==="USDT");u?.quote?s.value=u.quote:e.data.value.data.length>0&&e.data.value.data[0]?.quote?s.value=e.data.value.data[0].quote:s.value="USDT"}else e.data.value?.data}catch{}finally{o.value=!1}}}},pt=()=>{const s=z(),o=K(),t=N(),a=_(),r="/api/v1/common/coin/list",{locale:c}=g();return{fetchCommonCoinList:async()=>{try{const e=await T(r,{key:"common_coin_list",watch:[c]});e.data.value&&e.data.value.data&&(s.value=e.data.value.data,o.value=e.data?.value?.data.find(n=>n.name===a.value)?.logo,t.value=e.data.value.data.find(n=>n.name===a.value)?.fullName)}catch{}}}},ft={key:0,class:"max-w-1200px m-auto max-[1200px]:px-15px min-h700px pb-200px"},Vt=x({__name:"coin-introduce",setup(s){const{fetchMarketSymbolList:o}=lt(),{fetchCoinPriceMarketMatrixData:t}=dt(),{fetchQuoteKey:a,isExit:r}=mt(),{fetchCommonCoinList:c}=pt();return a(),o(),c(),t(),(e,n)=>{const u=F;return p(),k(u,{name:"default"},{default:v(()=>[m(r)?(p(),b("section",ft,[f(ut),O(e.$slots,"default")])):(p(),k(W,{key:1}))]),_:3})}}});export{Vt 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.