import{_ as g,__tla as b}from"./CountTo.vue_vue_type_script_setup_true_lang-9a3709fd.js";import{d as v,ar as a,o as f,c as y,C as t,G as m,A as h,B as w,f as s,D as S,ac as T,a as l,dL as r,E as j,_ as V,bh as k,__tla as A}from"./index-92ad187a.js";let x,B=Promise.all([(()=>{try{return b}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{let n,c,i,o,p;n={class:"flex flex-col gap-2 bg-[var(--el-bg-color-overlay)] p-6"},c={class:"flex items-center justify-between text-gray-500"},i={class:"mb-4 text-3xl"},o={class:"flex flex-row gap-1 text-sm"},p=t("span",{class:"text-gray-500"},"\u73AF\u6BD4",-1),x=v({name:"TradeStatisticValue",__name:"TradeStatisticValue",props:{tooltip:a.string.def(""),title:a.string.def(""),prefix:a.string.def(""),value:a.number.def(0),decimals:a.number.def(0),percent:a.oneOfType([Number,String]).def(0)},setup:e=>(C,D)=>{const d=V,_=k,u=g;return f(),y("div",n,[t("div",c,[t("span",null,m(e.title),1),e.tooltip?(f(),h(_,{key:0,content:e.tooltip,placement:"top-start"},{default:w(()=>[s(d,{icon:"ep:warning"})]),_:1},8,["content"])):S("",!0)]),t("div",i,[s(u,{prefix:e.prefix,"end-val":e.value,decimals:e.decimals},null,8,["prefix","end-val","decimals"])]),t("div",o,[p,t("span",{class:T(l(r)(e.percent)>0?"text-red-500":"text-green-500")},[j(m(Math.abs(l(r)(e.percent)))+"% ",1),s(d,{icon:l(r)(e.percent)>0?"ep:caret-top":"ep:caret-bottom",class:"!text-sm"},null,8,["icon"])],2)])])}})});export{x as _,B as __tla};
