1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3f6db9a8-1d5a-4863-90b4-5a4b265d8a62`,e._sentryDebugIdIdentifier=`sentry-dbid-3f6db9a8-1d5a-4863-90b4-5a4b265d8a62`)}catch{}})();import{s as e}from"./rolldown-runtime-DeIdhg0z.js";import{c as t,l as n}from"./fingerprint-DoNmKyyW.js";import{a as r,c as i,d as a,f as o,l as s,n as c,o as l,p as u,r as d,s as f,t as p}from"./Combination-CzgOSJn_.js";import{a as m,c as h,r as g,s as _,t as v}from"./dist-GlVLjAsg.js";var y=e(n(),1),b=t(),x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0}),C=`Dialog`,[w,T]=o(C),[E,D]=w(C),O=S(e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,l=y.useRef(null),u=y.useRef(null),[d,f]=a({prop:i,defaultProp:o??!1,onChange:s,caller:C}),[p,m]=y.useState(0),[h,g]=y.useState(0);return(0,b.jsx)(E,{scope:t,triggerRef:l,contentRef:u,contentId:r(),titleId:r(),descriptionId:r(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(e=>!e),[f]),modal:c,children:n})},`Dialog`),k=`DialogPortal`,[A,j]=w(k,{forceMount:void 0}),M=S(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=D(k,t);return(0,b.jsx)(A,{scope:t,forceMount:n,children:y.Children.map(r,e=>(0,b.jsx)(d,{present:n||a.open,children:(0,b.jsx)(v,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),N=`DialogOverlay`,P=y.forwardRef(S(function(e,t){let n=j(N,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=D(N,e.__scopeDialog);return a.modal?(0,b.jsx)(d,{present:r||a.open,children:(0,b.jsx)(I,{...i,ref:t})}):null},`DialogOverlay`)),F=m(`DialogOverlay.RemoveScroll`),I=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...r}=e,i=D(N,n),a=s(),o=h(t,a);return(0,b.jsx)(p,{as:F,allowPinchZoom:!0,shards:[i.contentRef],children:(0,b.jsx)(g.div,{"data-state":J(i.open),...r,ref:o,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),L=`DialogContent`,R=y.forwardRef(S(function(e,t){let n=j(L,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=D(L,e.__scopeDialog);return(0,b.jsx)(d,{present:r||a.open,children:a.modal?(0,b.jsx)(z,{...i,ref:t}):(0,b.jsx)(B,{...i,ref:t})})},`DialogContent`)),z=y.forwardRef(S(function(e,t){let n=D(L,e.__scopeDialog),r=y.useRef(null),i=h(t,n.contentRef,r);return y.useEffect(()=>{let e=r.current;if(e)return c(e)},[]),(0,b.jsx)(V,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),B=y.forwardRef(S(function(e,t){let n=D(L,e.__scopeDialog),r=y.useRef(!1),i=y.useRef(!1);return(0,b.jsx)(V,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),V=y.forwardRef(S(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,c=D(L,n);return f(),(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(l,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,b.jsx)(i,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionPresent?c.descriptionId:void 0,"aria-labelledby":c.titlePresent?c.titleId:void 0,"data-state":J(c.open),...s,ref:t,deferPointerDownOutside:!0,onDismiss:()=>c.onOpenChange(!1)})})})},`DialogContentImpl`)),H=`DialogTitle`,U=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...r}=e,i=D(H,n),{setTitleCount:a}=i;return _(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,b.jsx)(g.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),W=`DialogDescription`,G=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...r}=e,i=D(W,n),{setDescriptionCount:a}=i;return _(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,b.jsx)(g.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),K=`DialogClose`,q=y.forwardRef(S(function(e,t){let{__scopeDialog:n,...r}=e,i=D(K,n);return(0,b.jsx)(g.button,{type:`button`,...r,ref:t,onClick:u(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function J(e){return e?`open`:`closed`}S(J,`getState`);export{P as a,G as i,q as n,M as o,R as r,U as s,O as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.