import{as as y,at as g,i as b,aw as p,c as h,b as t,w as k,f as l,a as i,E as o,ac as d,u as C,am as q}from"./B2UyoCas.js";const w={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"}},_={__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,r=y(),m=g(),s=b(()=>{var a;return p({extend:p(w),...((a=m.ui)==null?void 0:a.card)||{}})({variant:e.variant})});return(a,x)=>{var n;return t(),h(C(q),{as:u.as,class:o(s.value.root({class:[(n=e.ui)==null?void 0:n.root,e.class]}))},{default:k(()=>{var c,f,v;return[r.header?(t(),l("div",{key:0,class:o(s.value.header({class:(c=e.ui)==null?void 0:c.header}))},[d(a.$slots,"header")],2)):i("",!0),r.default?(t(),l("div",{key:1,class:o(s.value.body({class:(f=e.ui)==null?void 0:f.body}))},[d(a.$slots,"default")],2)):i("",!0),r.footer?(t(),l("div",{key:2,class:o(s.value.footer({class:(v=e.ui)==null?void 0:v.footer}))},[d(a.$slots,"footer")],2)):i("",!0)]}),_:3},8,["as","class"])}}};export{_};
