import{_ as h,__tla as C}from"./CountTo-5c16575b.js";import{d as k,p as a,o as n,c as u,g as t,i as s,W as g,t as _,l as S,w as j,a2 as v,a as r,au as i,v as B,aw as $,_ as z,__tla as D}from"./index-b2b3c6c4.js";let y,H=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return D}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=z(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=>(M,N)=>{const l=B,b=$,w=h;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(w,{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,H as __tla};
