import{p as L,q as U,ab as x,k as h,N as n,t as B,c as i,o as a,A as d,b as f,h as H,y as o,v as r,u as t,x as s,z as c,a as P,O as z,D as E}from"./index-DRopsKkO.js";import{d as F}from"./BasePage-C3DiNX0e.js";import{_ as O}from"./UDivider.vue_vue_type_script_setup_true_lang-CGxguuHo.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"],I=L({inheritAttrs:!1,__name:"UCard",props:U({title:{},description:{},config:{},dataTest:{}},{...E(m,T)}),setup(g){const v=g,l=x(),b=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:y,wrapperAttrs:A,titleAttrs:k,cardDividerAttrs:w,headerAttrs:C,headerLeftAttrs:$,headerLeftFallbackAttrs:D,descriptionAttrs:S,contentAttrs:N,footerAttrs:_}=B(m);return(e,u)=>(a(),i("div",r(t(A),{"data-test":t(y)()}),[b.value?(a(),i("div",o(r({key:0},t(C))),[f("div",o(c(t($))),[s(e.$slots,"header-left-before"),s(e.$slots,"header-left",{},()=>[f("div",o(c(t(D))),[P(F,r({label:e.title,size:"xs"},t(k)),null,16,["label"]),e.description?(a(),i("div",r({key:0},t(S),{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(O,r({key:1,padding:"none"},t(w)),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{I as _};
