import{d as y,ar as s,e as w,e7 as C,o as h,c as j,C as a,G as r,f as l,B as q,E as p,ac as R,a as t,dL as i,av as B,_ as E,cd as G,__tla as L}from"./index-92ad187a.js";import{_ as M,__tla as P}from"./CountTo.vue_vue_type_script_setup_true_lang-9a3709fd.js";let x,k=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return P}catch{}})()]).then(async()=>{let c,f,d,o,m;c={class:"flex flex-col gap-2 bg-[var(--el-bg-color-overlay)] p-6"},f={class:"flex items-center justify-between text-gray-500"},d={class:"flex flex-row items-baseline justify-between"},o={class:"flex flex-row items-center justify-between text-sm"},m=a("span",{class:"text-gray-500"},"\u6628\u65E5\u6570\u636E",-1),x=y({name:"ComparisonCard",__name:"ComparisonCard",props:{title:s.string.def("").isRequired,tag:s.string.def(""),prefix:s.string.def(""),value:s.number.def(0).isRequired,reference:s.number.def(0).isRequired,decimals:s.number.def(0)},setup(e){const u=e,n=w(()=>C(u.value,u.reference));return(z,A)=>{const _=B,b=M,v=E,g=G;return h(),j("div",c,[a("div",f,[a("span",null,r(e.title),1),l(_,null,{default:q(()=>[p(r(e.tag),1)]),_:1})]),a("div",d,[l(b,{prefix:e.prefix,"end-val":e.value,decimals:e.decimals,class:"text-3xl"},null,8,["prefix","end-val","decimals"]),a("span",{class:R(t(i)(t(n))>0?"text-red-500":"text-green-500")},[p(r(Math.abs(t(i)(t(n))))+"% ",1),l(v,{icon:t(i)(t(n))>0?"ep:caret-top":"ep:caret-bottom",class:"!text-sm"},null,8,["icon"])],2)]),l(g,{class:"mb-1! mt-2!"}),a("div",o,[m,a("span",null,r(e.prefix||"")+r(e.reference),1)])])}}})});export{x as _,k as __tla};
