import{f as g,K as t,L as c,T as k,q as o,O as a,x as n,n as i,R as h,P as w,V as x,_ as V,F as y,U as C,a1 as d,e as v}from"./vue-CPEHuaRL.js";import{V as p}from"./VSheet-Br_0hONz.js";import{o as $,E as B,V as S,k as b,l as N}from"./index-vmUNdjsE.js";const E=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=v(()=>e.color?`text-${e.color}`:""),u=v(()=>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]=k(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(y,{key:0},V(e.value,(r,m)=>(t(),x(y,{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{E as _,F as a};
