import{e as r,m as u,o as d,w as l,X as i,ag as g,ah as y,n as e,ax as h,af as b,dB as x,ai as B,b as p,dC as w,dD as v,a6 as D,W as f,dE as P,a as k,c as C,I as $,aj as O,bB as z}from"./BoB2h2qv.js";import{c as q}from"./CkkkpqTL.js";var E=r({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const a=t;return(s,o)=>(d(),u(e(h),g(y(a)),{default:l(()=>[i(s.$slots,"default")]),_:3},16))}}),F=E;/**
 * @license lucide-vue-next v0.487.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M=q("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),I=r({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(t,{emit:a}){const n=b(t,a);return(c,m)=>(d(),u(e(x),g(y(e(n))),{default:l(()=>[i(c.$slots,"default")]),_:3},16))}}),N=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,o=a,n=B(s,"class"),c=b(n,o);return(m,_)=>(d(),u(e(F),null,{default:l(()=>[p(e(w),{class:"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),p(e(v),D(e(c),{class:e(f)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s.class)}),{default:l(()=>[i(m.$slots,"default"),p(e(P),{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:l(()=>[p(e(M),{class:"w-4 h-4"}),_[0]||(_[0]=k("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),R=r({__name:"DialogHeader",props:{class:{}},setup(t){const a=t;return(s,o)=>(d(),C("div",{class:$(e(f)("flex flex-col gap-y-1.5 text-center sm:text-left",a.class))},[i(s.$slots,"default")],2))}}),V=r({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(t){const a=t,s=B(a,"class"),o=O(s);return(n,c)=>(d(),u(e(z),D(e(o),{class:e(f)("text-lg font-semibold leading-none tracking-tight",a.class)}),{default:l(()=>[i(n.$slots,"default")]),_:3},16,["class"]))}});export{F as D,M as X,I as _,R as a,V as b,N as c};
