1import{ar as h,as as k,T as z,p as s,q as d,w as q,v as t,a5 as l,ai as o,s as n,av as $,t as u,a8 as c,a6 as p,ab as f,aj as w,ao as _,aa as j,P as C,c as S,at as m}from"./BbUASWUm.js";const P={slots:{root:"relative flex flex-col items-center justify-center gap-4 rounded-lg p-4 sm:p-6 lg:p-8 min-w-0",header:"flex flex-col items-center gap-2 max-w-sm text-center",avatar:"shrink-0 mb-2",title:"text-highlighted text-pretty font-medium",description:"text-balance text-center",body:"flex flex-col items-center gap-4 max-w-sm",actions:"flex flex-wrap justify-center gap-2 shrink-0",footer:"flex flex-col items-center gap-2 max-w-sm"},variants:{size:{xs:{avatar:"size-8 text-base",title:"text-sm",description:"text-xs"},sm:{avatar:"size-9 text-lg",title:"text-sm",description:"text-xs"},md:{avatar:"size-10 text-xl",title:"text-base",description:"text-sm"},lg:{avatar:"size-11 text-[22px]",title:"text-base",description:"text-sm"},xl:{avatar:"size-12 text-2xl",title:"text-lg",description:"text-base"}},variant:{solid:{root:"bg-inverted",title:"text-inverted",description:"text-dimmed"},outline:{root:"bg-default ring ring-default",description:"text-muted"},soft:{root:"bg-elevated/50",description:"text-toned"},subtle:{root:"bg-elevated/50 ring ring-default",description:"text-toned"},naked:{description:"text-muted"}}},defaultVariants:{variant:"outline",size:"md"}},A={__name:"UEmpty",props:{as:{type:null,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},actions:{type:Array,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(x){const v=x,a=h(),e=k("empty",v),y=z(),i=S(()=>m({extend:m(P),...y.ui?.empty||{}})({variant:e.variant,size:e.size}));return(r,B)=>(s(),d(t(C),{as:t(e).as,"data-slot":"root",class:o(i.value.root({class:[t(e).ui?.root,t(e).class]}))},{default:q(()=>[a.header||t(e).icon||t(e).avatar||a.leading||t(e).title||a.title||t(e).description||a.description?(s(),l("div",{key:0,"data-slot":"header",class:o(i.value.header({class:t(e).ui?.header}))},[n(r.$slots,"header",{},()=>[n(r.$slots,"leading",{ui:i.value},()=>[t(e).icon||t(e).avatar?(s(),d($,u({key:0,icon:t(e).icon},typeof t(e).avatar=="object"?t(e).avatar:{},{"data-slot":"avatar",class:i.value.avatar({class:t(e).ui?.avatar})}),null,16,["icon","class"])):c("",!0)]),t(e).title||a.title?(s(),l("h2",{key:0,"data-slot":"title",class:o(i.value.title({class:t(e).ui?.title}))},[n(r.$slots,"title",{},()=>[p(f(t(e).title),1)])],2)):c("",!0),t(e).description||a.description?(s(),l("div",{key:1,"data-slot":"description",class:o(i.value.description({class:t(e).ui?.description}))},[n(r.$slots,"description",{},()=>[p(f(t(e).description),1)])],2)):c("",!0)])],2)):c("",!0),a.body||t(e).actions?.length||a.actions?(s(),l("div",{key:1,"data-slot":"body",class:o(i.value.body({class:t(e).ui?.body}))},[n(r.$slots,"body",{},()=>[t(e).actions?.length||a.actions?(s(),l("div",{key:0,"data-slot":"actions",class:o(i.value.actions({class:t(e).ui?.actions}))},[n(r.$slots,"actions",{},()=>[(s(!0),l(w,null,_(t(e).actions,(g,b)=>(s(),d(j,u({key:b,size:t(e).size},{ref_for:!0},g),null,16,["size"]))),128))])],2)):c("",!0)])],2)):c("",!0),a.footer?(s(),l("div",{key:2,"data-slot":"footer",class:o(i.value.footer({class:t(e).ui?.footer}))},[n(r.$slots,"footer")],2)):c("",!0)]),_:3},8,["as","class"]))}};export{A as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.