import{_ as w,__tla as C}from"./CountTo-49fe9310.js";import{d as k,ai as t,o as s,c as u,h as a,g as l,a0 as g,t as _,x as S,w as j,R as v,a as r,dD as i,k as z,b6 as B,_ as D,__tla as $}from"./index-7d5b26d3.js";let y,M=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return $}catch{}})()]).then(async()=>{let c,o,d,p,f,m,x;c={class:"flex flex-row items-center gap-3 rounded bg-[var(--el-bg-color-overlay)] p-4"},o={class:"flex flex-col gap-1"},d={class:"flex items-center gap-1 text-gray-500"},p={class:"text-3.5"},f={class:"flex flex-row items-baseline gap-2"},m={class:"text-7"},x={class:"text-sm"},y=D(k({name:"SummaryCard",__name:"index",props:{title:t.string.def(""),tooltip:t.string.def(""),icon:t.string.def(""),iconColor:t.string.def(""),iconBgColor:t.string.def(""),prefix:t.string.def(""),value:t.number.def(0),decimals:t.number.def(0),percent:t.oneOfType([Number,String]).def(void 0)},setup:e=>(N,O)=>{const n=z,b=B,h=w;return s(),u("div",c,[a("div",{class:g(["h-12 w-12 flex flex-shrink-0 items-center justify-center rounded-1",`${e.iconColor} ${e.iconBgColor}`])},[l(n,{icon:e.icon,class:"!text-6"},null,8,["icon"])],2),a("div",o,[a("div",d,[a("span",p,_(e.title),1),e.tooltip?(s(),S(b,{key:0,content:e.tooltip,placement:"top-start"},{default:j(()=>[l(n,{icon:"ep:warning",class:"item-center flex !text-3"})]),_:1},8,["content"])):v("",!0)]),a("div",f,[a("div",m,[l(h,{prefix:e.prefix,"end-val":e.value,decimals:e.decimals},null,8,["prefix","end-val","decimals"])]),e.percent!=null?(s(),u("span",{key:0,class:g(r(i)(e.percent)>0?"text-red-500":"text-green-500")},[a("span",x,_(Math.abs(r(i)(e.percent)))+"%",1),l(n,{icon:r(i)(e.percent)>0?"ep:caret-top":"ep:caret-bottom",class:"ml-0.5 !text-3"},null,8,["icon"])],2)):v("",!0)])])])}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/components/SummaryCard/index.vue"]])});export{y as S,M as __tla};
