1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="506ff516-29e3-592b-a349-b21d5920dc6c")}catch(e){}}(); 3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`10598714e174bf0a729243e945712fc0f279887d`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`4afa96a7-6a52-4d1f-a582-c96080a32f7b`,e._sentryDebugIdIdentifier=`sentry-dbid-4afa96a7-6a52-4d1f-a582-c96080a32f7b`)}catch{}})();import{r as e}from"./chunk-CGskIDkR.js";import{t}from"./react-DMp1iRRw.js";import{t as n}from"./jsx-runtime-C5gMzgs6.js";import{n as r}from"./dist-CNggsUBD.js";import{a as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,t as _}from"./es2015-P2o05G5y.js";var v=e(t(),1);function y(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}var b=e=>{let{present:t,children:n}=e,i=x(t),a=typeof n==`function`?n({present:i.isPresent}):v.Children.only(n),o=r(i.ref,C(a));return typeof n==`function`||i.isPresent?v.cloneElement(a,{ref:o}):null};b.displayName=`Presence`;function x(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),[o,s]=y(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{let e=S(r.current);a.current=o===`mounted`?e:`none`},[o]),h(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=S(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),h(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=S(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=S(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:v.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function S(e){return e?.animationName||`none`}function C(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var w=n(),T=`Dialog`,[E,ee]=l(T),[D,O]=E(T),k=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:c=!0}=e,l=v.useRef(null),u=v.useRef(null),[d,f]=o({prop:r,defaultProp:i??!1,onChange:a,caller:T});return(0,w.jsx)(D,{scope:t,triggerRef:l,contentRef:u,contentId:s(),titleId:s(),descriptionId:s(),open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:c,children:n})};k.displayName=T;var A=`DialogTrigger`,j=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,o=O(A,n),s=r(t,o.triggerRef);return(0,w.jsx)(a.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.contentId,"data-state":X(o.open),...i,ref:s,onClick:c(e.onClick,o.onOpenToggle)})});j.displayName=A;var M=`DialogPortal`,[N,P]=E(M,{forceMount:void 0}),F=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=O(M,t);return(0,w.jsx)(N,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,w.jsx)(b,{present:n||a.open,children:(0,w.jsx)(u,{asChild:!0,container:i,children:e})}))})};F.displayName=M;var I=`DialogOverlay`,L=v.forwardRef((e,t)=>{let n=P(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=O(I,e.__scopeDialog);return a.modal?(0,w.jsx)(b,{present:r||a.open,children:(0,w.jsx)(te,{...i,ref:t})}):null});L.displayName=I;var R=d(`DialogOverlay.RemoveScroll`),te=v.forwardRef((e,t)=>
vendor: 3,671 bytes, lines 3-8
3{let{__scopeDialog:n,...r}=e,i=O(I,n);return(0,w.jsx)(p,{as:R,allowPinchZoom:!0,shards:[i.contentRef],children:(0,w.jsx)(a.div,{"data-state":X(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),z=`DialogContent`,B=v.forwardRef((e,t)=>{let n=P(z,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=O(z,e.__scopeDialog);return(0,w.jsx)(b,{present:r||a.open,children:a.modal?(0,w.jsx)(V,{...i,ref:t}):(0,w.jsx)(H,{...i,ref:t})})});B.displayName=z;var V=v.forwardRef((e,t)=>{let n=O(z,e.__scopeDialog),i=v.useRef(null),a=r(t,n.contentRef,i);return v.useEffect(()=>{let e=i.current;if(e)return _(e)},[]),(0,w.jsx)(U,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault())})}),H=v.forwardRef((e,t)=>{let n=O(z,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,w.jsx)(U,{...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()}})}),U=v.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,l=O(z,n),u=v.useRef(null),d=r(t,u);return g(),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(i,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:s,children:(0,w.jsx)(m,{role:`dialog`,id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":X(l.open),...c,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(re,{titleId:l.titleId}),(0,w.jsx)(ae,{contentRef:u,descriptionId:l.descriptionId})]})]})}),W=`DialogTitle`,G=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=O(W,n);return(0,w.jsx)(a.h2,{id:i.titleId,...r,ref:t})});G.displayName=W;var K=`DialogDescription`,q=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=O(K,n);return(0,w.jsx)(a.p,{id:i.descriptionId,...r,ref:t})});q.displayName=K;var J=`DialogClose`,Y=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=O(J,n);return(0,w.jsx)(a.button,{type:`button`,...r,ref:t,onClick:c(e.onClick,()=>i.onOpenChange(!1))})});Y.displayName=J;function X(e){return e?`open`:`closed`}var Z=`DialogTitleWarning`,[ne,Q]=f(Z,{contentName:z,titleName:W,docsSlug:`dialog`}),re=({titleId:e})=>{let t=Q(Z),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 4 5If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 6 7For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ie=`DialogDescriptionWarning`,ae=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Q(ie).contentName}}.`;return v.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},oe=k,$=F,se=L,ce=B,le=G,ue=q,de=Y;export{$ as a,b as c,se as i,ce as n,oe as o,ue as r,le as s,de as t}; 8//# debugId=506ff516-29e3-592b-a349-b21d5920dc6c
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.