import{_ as w,__tla as C}from"./CountTo-fee865c4.js";import{d as S,p as a,o as n,c as u,g as t,i as s,W as g,t as _,l as k,w as j,a2 as v,a as r,au as i,v as B,aw as O,_ as P,__tla as $}from"./index-2c56227b.js";let y,A=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return $}catch{}})()]).then(async()=>{let o,c,d,p,f,m,x;o={class:"flex flex-row items-center gap-3 rounded bg-[var(--el-bg-color-overlay)] p-4"},c={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=P(S({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=>(E,G)=>{const l=B,b=O,h=w;return n(),u("div",o,[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",c,[t("div",d,[t("span",p,_(e.title),1),e.tooltip?(n(),k(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","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/components/SummaryCard/index.vue"]])});export{y as S,A as __tla};
