import{u as _}from"./RovingFocusGroup-CP1IPgEn.js";import{f as v,g as w,j as B,k as D,X as h,l as x}from"./AppLayout.vue_vue_type_script_setup_true_lang-CteAxl0C.js";import{d as u,a as p,o as f,w as l,r as g,m,u as t,c as y,g as r,j as O}from"./app-Cb9hmj6k.js";import{c as b}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-DKWl2XLX.js";const $=u({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(o,{emit:e}){const a=_(o,e);return(i,c)=>(f(),p(t(v),m({"data-slot":"dialog"},t(a)),{default:l(()=>[g(i.$slots,"default")]),_:3},16))}}),C=u({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]},class:{}},setup(o){const e=o,s=y(()=>{const{class:n,...a}=e;return a});return(n,a)=>(f(),p(t(w),m({"data-slot":"dialog-overlay"},s.value,{class:t(b)("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",e.class)}),{default:l(()=>[g(n.$slots,"default")]),_:3},16,["class"]))}}),j=u({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{type:[String,Object,Function]},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:e}){const s=o,n=e,a=y(()=>{const{class:c,...d}=s;return d}),i=_(a,n);return(c,d)=>(f(),p(t(x),null,{default:l(()=>[r(C),r(t(B),m({"data-slot":"dialog-content"},t(i),{class:t(b)("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:l(()=>[g(c.$slots,"default"),r(t(D),{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:l(()=>[r(t(h)),d[0]||(d[0]=O("span",{class:"sr-only"},"Close",-1))]),_:1,__:[0]})]),_:3},16,["class"])]),_:3}))}});export{$ as _,j as a,C as b};
