import{f as g,e as y,K as c,L as t,T as V,q as o,O as a,y as n,n as i,R as h,P as w,V as x,a1 as d,_ as k,F as v,U as C}from"./vue-CbNcDebW.js";import{V as p}from"./VSheet-BfDvhXPb.js";import{x as $,K as B,V as S,q as b,r as N}from"./index-Ct76C36l.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=y(()=>e.color?`text-${e.color}`:""),u=y(()=>{switch(e.orientation){case"row":return"flex-row";case"column":default:return"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]=V(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($,{"data-testid":"card-icon",color:e.color},{default:a(()=>[h(w(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),x(v,{key:0},k(e.value,(r,m)=>(t(),x(v,{key:m},[m>0?(t(),c(B,{key:0,opacity:".75",thickness:"2",style:{"border-top-style":"dashed"}})):C("",!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-uppercase text-white ml-1 font-weight-light text-subtitle-2"},{default:a(()=>[h(w(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};
