import{B as e,D as t,Dt as n,E as r,Et as i,K as a,M as o,P as s,T as c,Y as l,j as u,ot as d,w as f,wt as p}from"./dist-B4ulKgpj.js";import{i as m}from"./Primitive-CN38JRWA.js";import{A as h,D as g,E as _,F as v,O as y,P as b,T as x,j as S,k as C,u as w,v as T}from"./app-DUC9tg6Z.js";var E=o({__name:`Dialog`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`],setup(t,{emit:r}){let i=b(t,r);return(t,r)=>(a(),c(p(S),e({"data-slot":`dialog`},p(i)),{default:d(e=>[l(t.$slots,`default`,n(s(e)))]),_:3},16))}}),D=o({__name:`DialogOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t,r=T(n,`class`);return(t,i)=>(a(),c(p(g),e({"data-slot":`dialog-overlay`},p(r),{class:p(m)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,n.class)}),{default:d(()=>[l(t.$slots,`default`)]),_:3},16,[`class`]))}}),O=o({inheritAttrs:!1,__name:`DialogContent`,props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(t,{emit:n}){let i=t,o=n,s=b(T(i,`class`),o);return(n,o)=>(a(),c(p(_),null,{default:d(()=>[u(D),u(p(C),e({"data-slot":`dialog-content`},{...n.$attrs,...p(s)},{class:p(m)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,i.class)}),{default:d(()=>[l(n.$slots,`default`),t.showCloseButton?(a(),c(p(h),{key:0,"data-slot":`dialog-close`,class:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`},{default:d(()=>[u(p(w)),o[0]||=f(`span`,{class:`sr-only`},`Close`,-1)]),_:1})):r(``,!0)]),_:3},16,[`class`])]),_:3}))}}),k=o({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t,r=v(T(n,`class`));return(t,i)=>(a(),c(p(y),e({"data-slot":`dialog-description`},p(r),{class:p(m)(`text-muted-foreground text-sm`,n.class)}),{default:d(()=>[l(t.$slots,`default`)]),_:3},16,[`class`]))}}),A=o({__name:`DialogHeader`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let n=e;return(e,r)=>(a(),t(`div`,{"data-slot":`dialog-header`,class:i(p(m)(`flex flex-col gap-2 text-center sm:text-left`,n.class))},[l(e.$slots,`default`)],2))}}),j=o({__name:`DialogTitle`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(t){let n=t,r=v(T(n,`class`));return(t,i)=>(a(),c(p(x),e({"data-slot":`dialog-title`},p(r),{class:p(m)(`text-lg leading-none font-semibold`,n.class)}),{default:d(()=>[l(t.$slots,`default`)]),_:3},16,[`class`]))}});export{E as a,O as i,A as n,k as r,j as t};