import{d as y,ai as s,L as w,e1 as h,o as C,c as q,h as a,t as l,g as r,w as j,q as p,a0 as R,a as t,dD as i,am as z,k as D,bi as k,_ as L,__tla as M}from"./index-7d5b26d3.js";import{_ as P,__tla as A}from"./CountTo-49fe9310.js";let x,B=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{let c,f,m,o,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"},m={class:"flex flex-row items-baseline justify-between"},o={class:"flex flex-row items-center justify-between text-sm"},d=a("span",{class:"text-gray-500"},"\u6628\u65E5\u6570\u636E",-1),x=L(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(E,F)=>{const _=z,b=P,v=D,g=k;return C(),q("div",c,[a("div",f,[a("span",null,l(e.title),1),r(_,null,{default:j(()=>[p(l(e.tag),1)]),_:1})]),a("div",m,[r(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(l(Math.abs(t(i)(t(n))))+"% ",1),r(v,{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",o,[d,a("span",null,l(e.prefix||"")+l(e.reference),1)])])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/home/components/ComparisonCard.vue"]])});export{B as __tla,x as default};
