import{g as l,ah as g,i as r,W as o,D as d,h as i,A as p,Z as b,l as c,e as f,z as m,b as u,N as s,a1 as y,a4 as k,a3 as v}from"./D7LY3N47.js";import{u as h}from"./DqW9UKXb.js";import{_ as $}from"./DlAUqK2U.js";const C={base:"",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}},w=m(u.ui.strategy,u.ui.card,C),S=c({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(a){const{ui:e,attrs:n}=h("card",y(a,"ui"),w),t=f(()=>k(v(e.value.base,e.value.rounded,e.value.divide,e.value.ring,e.value.shadow,e.value.background),a.class));return{ui:e,attrs:n,cardClass:t}}});function A(a,e,n,t,B,j){return s(),l(b(a.$attrs.onSubmit?"form":a.as),p({class:a.cardClass},a.attrs),{default:g(()=>[a.$slots.header?(s(),r("div",{key:0,class:d([a.ui.header.base,a.ui.header.padding,a.ui.header.background])},[o(a.$slots,"header")],2)):i("",!0),a.$slots.default?(s(),r("div",{key:1,class:d([a.ui.body.base,a.ui.body.padding,a.ui.body.background])},[o(a.$slots,"default")],2)):i("",!0),a.$slots.footer?(s(),r("div",{key:2,class:d([a.ui.footer.base,a.ui.footer.padding,a.ui.footer.background])},[o(a.$slots,"footer")],2)):i("",!0)]),_:3},16,["class"])}const O=$(S,[["render",A]]);export{O as _};
