import{d as g,bS as m,aT as b,Q as w,bK as a,a3 as s,u as e,bT as D,bU as y,aD as _,b3 as v,bV as C,X as O,bW as h}from"./vendor-reka-Edfq1EPl.js";import{r as B,c as P,X as k}from"./registry-DyIszw9-.js";const A=g({inheritAttrs:!1,__name:"DialogScrollContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:u}){const l=d,c=u,f=B(l,"class"),p=m(f,c);return(n,t)=>(b(),w(e(h),null,{default:a(()=>[s(e(D),{class:"fixed inset-0 z-50 grid place-items-center overflow-y-auto 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"},{default:a(()=>[s(e(y),_({class:e(P)("relative z-50 my-8 grid w-full max-w-lg gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200",l.class)},{...n.$attrs,...e(p)},{onPointerDownOutside:t[0]||(t[0]=r=>{const o=r.detail.originalEvent,i=o.target;(o.offsetX>i.clientWidth||o.offsetY>i.clientHeight)&&r.preventDefault()})}),{default:a(()=>[v(n.$slots,"default"),s(e(C),{class:"absolute top-4 right-4 rounded-md p-0.5 transition-colors hover:bg-secondary"},{default:a(()=>[s(e(k),{class:"h-4 w-4"}),t[1]||(t[1]=O("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3})]),_:3}))}});export{A as _};
