import{l as L,p as U,aa as x,g as h,M as n,s as B,c as i,o as a,z as d,b as f,h as H,x as o,t as r,u as t,v as s,y as c,a as P,N as z,C as E}from"./index-CdEV5Lsj.js";import{d as F}from"./BasePage-aJlR_RJI.js";import{_ as M}from"./UDivider.vue_vue_type_script_setup_true_lang-CBOjoWJ-.js";const m={wrapper:"p-4 md:p-5 border rounded-dynamic-lg border-gray-200 bg-white space-y-4 w-full",header:"flex justify-between",headerLeft:"flex items-center gap-2 w-fit",headerLeftFallback:"flex flex-col w-fit",title:"{UHeader}",description:"mt-1 text-sm font-normal text-gray-500",content:"text-sm",cardDivider:"{UDivider}",footer:"flex justify-between",defaults:{}},T="UCard",V=["data-test"],j=["textContent"],q=L({inheritAttrs:!1,__name:"UCard",props:U({title:{},description:{},config:{},dataTest:{}},{...E(m,T)}),setup(g){const v=g,l=x(),y=h(()=>{const e=n(l["header-left"]),u=n(l["header-left"]);return v.title||e||u}),p=h(()=>n(l["footer-left"])||n(l["footer-right"])),{getDataTest:b,wrapperAttrs:A,titleAttrs:w,cardDividerAttrs:C,headerAttrs:k,headerLeftAttrs:$,headerLeftFallbackAttrs:S,descriptionAttrs:D,contentAttrs:N,footerAttrs:_}=B(m);return(e,u)=>(a(),i("div",r(t(A),{"data-test":t(b)()}),[y.value?(a(),i("div",o(r({key:0},t(k))),[f("div",o(c(t($))),[s(e.$slots,"header-left-before"),s(e.$slots,"header-left",{},()=>[f("div",o(c(t(S))),[P(F,r({label:e.title,size:"xs"},t(w)),null,16,["label"]),e.description?(a(),i("div",r({key:0},t(D),{textContent:z(e.description)}),null,16,j)):d("",!0)],16)]),s(e.$slots,"header-left-after")],16),s(e.$slots,"header-right")],16)):d("",!0),f("div",o(c(t(N))),[s(e.$slots,"default")],16),p.value?(a(),H(M,r({key:1,padding:"none"},t(C)),null,16)):d("",!0),p.value?(a(),i("div",o(r({key:2},t(_))),[s(e.$slots,"footer-left"),s(e.$slots,"footer-right")],16)):d("",!0)],16,V))}});export{q as _};
