import{d as y,ac as s,Y as w,d$ as h,o as C,c as R,g as a,t as l,f as r,w as j,y as p,T as q,a as t,ar as i,ah as k,j as z,bS as D,_ as H,__tla as M}from"./index-8dc1e40a.js";import{_ as P,__tla as S}from"./CountTo-1e1877a3.js";let x,T=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{let c,f,o,m,d;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"},o={class:"flex flex-row items-baseline justify-between"},m={class:"flex flex-row items-center justify-between text-sm"},d=a("span",{class:"text-gray-500"},"\u6628\u65E5\u6570\u636E",-1),x=H(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(()=>h(u.value,u.reference));return(U,X)=>{const _=k,v=P,b=z,g=D;return C(),R("div",c,[a("div",f,[a("span",null,l(e.title),1),r(_,null,{default:j(()=>[p(l(e.tag),1)]),_:1})]),a("div",o,[r(v,{prefix:e.prefix,"end-val":e.value,decimals:e.decimals,class:"text-3xl"},null,8,["prefix","end-val","decimals"]),a("span",{class:q(t(i)(t(n))>0?"text-red-500":"text-green-500")},[p(l(Math.abs(t(i)(t(n))))+"% ",1),r(b,{icon:t(i)(t(n))>0?"ep:caret-top":"ep:caret-bottom",class:"!text-sm"},null,8,["icon"])],2)]),r(g,{class:"mb-1! mt-2!"}),a("div",m,[d,a("span",null,l(e.prefix||"")+l(e.reference),1)])])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/home/components/ComparisonCard.vue"]])});export{T as __tla,x as default};
