import{_ as C,__tla as w}from"./CountTo.vue_vue_type_script_setup_true_lang-9a3709fd.js";import{d as k,ar as t,o as n,c as g,C as a,f as s,ac as u,G as _,A as B,B as j,D as v,a as r,dL as c,_ as S,bh as $,__tla as A}from"./index-92ad187a.js";let y,D=Promise.all([(()=>{try{return w}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{let i,o,p,d,f,m,x;i={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: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=>(G,L)=>{const l=S,b=$,h=C;return n(),g("div",i,[a("div",{class:u(["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),a("div",o,[a("div",p,[a("span",d,_(e.title),1),e.tooltip?(n(),B(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)]),a("div",f,[a("div",m,[s(h,{prefix:e.prefix,"end-val":e.value,decimals:e.decimals},null,8,["prefix","end-val","decimals"])]),e.percent!=null?(n(),g("span",{key:0,class:u(r(c)(e.percent)>0?"text-red-500":"text-green-500")},[a("span",x,_(Math.abs(r(c)(e.percent)))+"%",1),s(l,{icon:r(c)(e.percent)>0?"ep:caret-top":"ep:caret-bottom",class:"ml-0.5 !text-3"},null,8,["icon"])],2)):v("",!0)])])])}})});export{y as _,D as __tla};
