import{_ as w,__tla as C}from"./CountTo-1e1877a3.js";import{d as k,ac as a,o as n,c as u,g as t,f as s,T as g,t as _,x as S,w as j,a0 as v,a as r,ar as i,j as B,at as T,_ as $,__tla as z}from"./index-8dc1e40a.js";let y,D=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return z}catch{}})()]).then(async()=>{let c,o,p,d,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"},p={class:"flex items-center gap-1 text-gray-500"},d={class:"text-3.5"},f={class:"flex flex-row items-baseline gap-2"},m={class:"text-7"},x={class:"text-sm"},y=$(k({name:"SummaryCard",__name:"index",props:{title:a.string.def(""),tooltip:a.string.def(""),icon:a.string.def(""),iconColor:a.string.def(""),iconBgColor:a.string.def(""),prefix:a.string.def(""),value:a.number.def(0),decimals:a.number.def(0),percent:a.oneOfType([Number,String]).def(void 0)},setup:e=>(H,M)=>{const l=B,b=T,h=w;return n(),u("div",c,[t("div",{class:g(["h-12 w-12 flex flex-shrink-0 items-center justify-center rounded-1",`${e.iconColor} ${e.iconBgColor}`])},[s(l,{icon:e.icon,class:"!text-6"},null,8,["icon"])],2),t("div",o,[t("div",p,[t("span",d,_(e.title),1),e.tooltip?(n(),S(b,{key:0,content:e.tooltip,placement:"top-start"},{default:j(()=>[s(l,{icon:"ep:warning",class:"item-center flex !text-3"})]),_:1},8,["content"])):v("",!0)]),t("div",f,[t("div",m,[s(h,{prefix:e.prefix,"end-val":e.value,decimals:e.decimals},null,8,["prefix","end-val","decimals"])]),e.percent!=null?(n(),u("span",{key:0,class:g(r(i)(e.percent)>0?"text-red-500":"text-green-500")},[t("span",x,_(Math.abs(r(i)(e.percent)))+"%",1),s(l,{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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/SummaryCard/index.vue"]])});export{y as S,D as __tla};
