import{b,d as h}from"./VisuallyHidden-0BfmsMPn.js";import{D as x,h as D,j as w,k as B,l as v,X as C,m as P}from"./AppLayout.vue_vue_type_script_setup_true_lang-BwuDxc8O.js";import{d as r,o as c,g as f,e,N as g,w as d,M as i,m as y,b as u,f as $,a as k,q as z}from"./app-bWy6VYs1.js";import{c as m}from"./index-C32fBP6Q.js";const A=r({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(t,{emit:a}){const o=b(t,a);return(l,_)=>(c(),f(e(x),g({"data-slot":"dialog"},e(o)),{default:d(()=>[i(l.$slots,"default")]),_:3},16))}}),O=r({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(t){const a=t,s=y(()=>{const{class:n,...o}=a;return o});return(n,o)=>(c(),f(e(D),g({"data-slot":"dialog-overlay"},s.value,{class:e(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",a.class)}),{default:d(()=>[i(n.$slots,"default")]),_:3},16,["class"]))}}),T=r({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:a}){const s=t,n=a,o=y(()=>{const{class:_,...p}=s;return p}),l=b(o,n);return(_,p)=>(c(),f(e(w),null,{default:d(()=>[u(O),u(e(B),g({"data-slot":"dialog-content"},e(l),{class:e(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",s.class)}),{default:d(()=>[i(_.$slots,"default"),u(e(v),{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(e(C)),p[0]||(p[0]=$("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),V=r({__name:"DialogHeader",props:{class:{}},setup(t){const a=t;return(s,n)=>(c(),k("div",{"data-slot":"dialog-header",class:z(e(m)("flex flex-col gap-2 text-center sm:text-left",a.class))},[i(s.$slots,"default")],2))}}),j=r({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(t){const a=t,s=y(()=>{const{class:o,...l}=a;return l}),n=h(s);return(o,l)=>(c(),f(e(P),g({"data-slot":"dialog-title"},e(n),{class:e(m)("text-lg leading-none font-semibold",a.class)}),{default:d(()=>[i(o.$slots,"default")]),_:3},16,["class"]))}});export{A as _,T as a,V as b,j as c};
