import{f as g,K as t,L as c,T as w,q as o,O as a,x as n,n as i,R as h,P as k,V as y,_ as C,F as v,U as V,a1 as d,e as x}from"./vue-fWJEtAed.js";import{Z as p,k as B,B as $,V as S,h as b,i as N}from"./index-D68FyEHD.js";const D=g({__name:"BaseCard",props:{active:{type:Boolean,default:!1},grow:{type:Boolean},title:{},icon:{},orientation:{default:"column"},color:{},value:{}},emits:["click"],setup(e){const s=x(()=>e.color?`text-${e.color}`:""),u=x(()=>e.orientation==="row"?"flex-row":"flex-column");return(l,f)=>(t(),c(p,{title:e.title,class:o(["flex-grow-1","pa-2",l.$.vnode.props?.onClick?"cursor-pointer":""]),color:e.active?"secondary-lighten-1":"secondary","min-width":"48px",rounded:"lg",onClick:f[0]||(f[0]=w(r=>l.$emit("click",r),["stop"]))},{default:a(()=>[n("div",{class:o(["d-flex","align-center","justify-space-evenly",u.value,"ga-1","h-100","w-100"])},[i(B,{"data-testid":"card-icon",color:e.color},{default:a(()=>[h(k(e.icon),1)]),_:1},8,["color"]),n("div",{"data-testid":"card-content",class:o(["flex-row","text-center","text-select","wrap-anywhere",s.value])},[Array.isArray(e.value)?(t(!0),y(v,{key:0},C(e.value,(r,m)=>(t(),y(v,{key:m},[m>0?(t(),c($,{key:0,opacity:".75",thickness:"2",style:{"border-top-style":"dashed"}})):V("",!0),n("div",null,[d(l.$slots,"default",{value:r})])],64))),128)):d(l.$slots,"default",{key:1,value:e.value})],2)],2)]),_:3},8,["title","class","color"]))}}),F=g({__name:"StatSection",props:{title:{},columns:{}},setup(e){return(s,u)=>(t(),c(S,{flat:"",class:"inherit-bg"},{default:a(()=>[i(b,{class:"px-0 text-white ml-1 text-body-large"},{default:a(()=>[h(k(e.title),1)]),_:1}),i(N,{class:o(["px-0","pb-0","d-grid",`grid-columns-${e.columns}`,"ga-2"])},{default:a(()=>[d(s.$slots,"default")]),_:3},8,["class"])]),_:3}))}});export{D as _,F as a};
