import{ao as f,aq as v,g as p,at as n,c as m,o as s,w as g,e as l,l as i,E as t,ag as d,m as y,ai as h}from"./Dk4AzF7j.js";const b={slots:{root:"rounded-lg overflow-hidden",header:"p-4 sm:px-6",body:"p-4 sm:p-6",footer:"p-4 sm:px-6"},variants:{variant:{solid:{root:"bg-inverted text-inverted"},outline:{root:"bg-default ring ring-default divide-y divide-default"},soft:{root:"bg-elevated/50 divide-y divide-default"},subtle:{root:"bg-elevated/50 ring ring-default divide-y divide-default"}}},defaultVariants:{variant:"outline"}},q={__name:"UCard",props:{as:{type:null,required:!1},variant:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(u){const e=u,o=f(),c=v(),a=p(()=>n({extend:n(b),...c.ui?.card||{}})({variant:e.variant}));return(r,k)=>(s(),m(y(h),{as:u.as,class:t(a.value.root({class:[e.ui?.root,e.class]}))},{default:g(()=>[o.header?(s(),l("div",{key:0,class:t(a.value.header({class:e.ui?.header}))},[d(r.$slots,"header")],2)):i("",!0),o.default?(s(),l("div",{key:1,class:t(a.value.body({class:e.ui?.body}))},[d(r.$slots,"default")],2)):i("",!0),o.footer?(s(),l("div",{key:2,class:t(a.value.footer({class:e.ui?.footer}))},[d(r.$slots,"footer")],2)):i("",!0)]),_:3},8,["as","class"]))}};export{q as _};
