import{d as f,bS as g,aT as r,Q as d,bK as e,a3 as a,u as t,bU as m,aD as b,b3 as w,bV as _,X as y,U as C,bW as h}from"./vendor-reka-Edfq1EPl.js";import{r as B,o as v,c as x,X as D}from"./registry-DyIszw9-.js";const O=f({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:i}){const s=o,u=i,c=B(s,"class","showCloseButton"),p=g(c,u);return(n,l)=>(r(),d(t(h),null,{default:e(()=>[a(v),a(t(m),b({"data-slot":"dialog-content"},{...n.$attrs,...t(p)},{class:t(x)("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-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",s.class)}),{default:e(()=>[w(n.$slots,"default"),o.showCloseButton?(r(),d(t(_),{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:e(()=>[a(t(D)),l[0]||(l[0]=y("span",{class:"sr-only"},"Close",-1))]),_:1})):C("",!0)]),_:3},16,["class"])]),_:3}))}});export{O as _};
