import{e as r,c as m,o as n,X as c,I as l,n as s,W as o,bz as y,m as u,w as d,b as p,C as f,d as _,t as x}from"./BoB2h2qv.js";import v from"./C5t96Cvs.js";const g=r({__name:"Empty",props:{class:{}},setup(t){const e=t;return(a,i)=>(n(),m("div",{"data-slot":"empty",class:l(s(o)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e.class))},[c(a.$slots,"default")],2))}}),h=r({__name:"EmptyContent",props:{class:{}},setup(t){const e=t;return(a,i)=>(n(),m("div",{"data-slot":"empty-content",class:l(s(o)("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",e.class))},[c(a.$slots,"default")],2))}}),$=r({__name:"EmptyDescription",props:{class:{}},setup(t){const e=t;return(a,i)=>(n(),m("p",{"data-slot":"empty-description",class:l(s(o)("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e.class))},[c(a.$slots,"default")],2))}}),b=r({__name:"EmptyHeader",props:{class:{}},setup(t){const e=t;return(a,i)=>(n(),m("div",{"data-slot":"empty-header",class:l(s(o)("flex max-w-sm flex-col items-center gap-2 text-center",e.class))},[c(a.$slots,"default")],2))}}),k=["data-variant"],w=r({__name:"EmptyMedia",props:{class:{},variant:{}},setup(t){const e=t;return(a,i)=>(n(),m("div",{"data-slot":"empty-icon","data-variant":t.variant,class:l(s(o)(s(C)({variant:t.variant}),e.class))},[c(a.$slots,"default")],10,k))}}),E=r({__name:"EmptyTitle",props:{class:{}},setup(t){const e=t;return(a,i)=>(n(),m("div",{"data-slot":"empty-title",class:l(s(o)("text-lg font-medium tracking-tight",e.class))},[c(a.$slots,"default")],2))}}),C=y("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}}),j=r({__name:"empty-state",props:{title:{default:void 0},description:{default:void 0},icon:{default:void 0},class:{default:void 0}},setup(t){const e=t;return(a,i)=>(n(),u(s(g),{class:l(s(o)("py-10",e.class))},{default:d(()=>[p(s(h),{class:"max-w-sm text-center"},{default:d(()=>[p(s(b),null,{default:d(()=>[e.icon?(n(),u(s(w),{key:0,class:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-muted"},{default:d(()=>[p(s(v),{name:e.icon,class:"h-6 w-6 text-muted-foreground"},null,8,["name"])]),_:1})):f("",!0),t.title?(n(),u(s(E),{key:1},{default:d(()=>[_(x(t.title),1)]),_:1})):f("",!0),t.description?(n(),u(s($),{key:2},{default:d(()=>[_(x(t.description),1)]),_:1})):f("",!0)]),_:1}),c(a.$slots,"default")]),_:3})]),_:3},8,["class"]))}}),S=Object.assign(j,{__name:"EmptyState"});export{S as E};
