vendor: 4,591 bytes, line 1
1import{d as e,l as t,r as n}from"./useRouter-D-xeXV9i.js";import{s as r}from"./site-shell-Wrplo8by.js";import{i,r as a,t as o}from"./utils-B4hz5F_c.js";import{a as s,c,f as l,h as u,i as d,l as ee,m as f,n as te,o as p,p as ne,r as re,t as m,u as ie}from"./dist-6jp33zbR.js";var h=e(t(),1),g=n();function ae(e){let t=_(e),n=h.forwardRef((e,n)=>{let{children:r,...i}=e,a=h.Children.toArray(r),o=a.find(se);if(o){let e=o.props.children,r=a.map(t=>t===o?h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null:t);return(0,g.jsx)(t,{...i,ref:n,children:h.isValidElement(e)?h.cloneElement(e,void 0,r):null})}return(0,g.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function _(e){let t=h.forwardRef((e,t)=>{let{children:n,...r}=e;if(h.isValidElement(n)){let e=y(n),i=v(r,n.props);return n.type!==h.Fragment&&(i.ref=t?a(t,e):e),h.cloneElement(n,i)}return h.Children.count(n)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oe=Symbol(`radix.slottable`);function se(e){return h.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===oe}function v(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function y(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 b=`Dialog`,[x,ce]=f(b),[le,S]=x(b),C=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=h.useRef(null),c=h.useRef(null),[l,u]=d({prop:r,defaultProp:i??!1,onChange:a,caller:b});return(0,g.jsx)(le,{scope:t,triggerRef:s,contentRef:c,contentId:p(),titleId:p(),descriptionId:p(),open:l,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};C.displayName=b;var w=`DialogTrigger`,T=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=S(w,n),o=i(t,a.triggerRef);return(0,g.jsx)(l.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":H(a.open),...r,ref:o,onClick:u(e.onClick,a.onOpenToggle)})});T.displayName=w;var E=`DialogPortal`,[D,O]=x(E,{forceMount:void 0}),k=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=S(E,t);return(0,g.jsx)(D,{scope:t,forceMount:n,children:h.Children.map(r,e=>(0,g.jsx)(m,{present:n||a.open,children:(0,g.jsx)(s,{asChild:!0,container:i,children:e})}))})};k.displayName=E;var A=`DialogOverlay`,j=h.forwardRef((e,t)=>{let n=O(A,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=S(A,e.__scopeDialog);return a.modal?(0,g.jsx)(m,{present:r||a.open,children:(0,g.jsx)(de,{...i,ref:t})}):null});j.displayName=A;var ue=ae(`DialogOverlay.RemoveScroll`),de=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(A,n);return(0,g.jsx)(te,{as:ue,allowPinchZoom:!0,shards:[i.contentRef],children:(0,g.jsx)(l.div,{"data-state":H(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),M=`DialogContent`,N=h.forwardRef((e,t)=>{let n=O(M,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=S(M,e.__scopeDialog);return(0,g.jsx)(m,{present:r||a.open,children:a.modal?(0,g.jsx)(P,{...i,ref:t}):(0,g.jsx)(fe,{...i,ref:t})})});N.displayName=M;var P=h.forwardRef((e,t)=>{let n=S(M,e.__scopeDialog),r=h.useRef(null),a=i(t,n.contentRef,r);return h.useEffect(()=>{let e=r.current;if(e)return re(e)},[]),(0,g.jsx)(F,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,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())})}),fe=h.forwardRef((e,t)=>{let n=S(M,e.__scopeDialog),r=h.useRef(!1),i=h.useRef(!1);return(0,g.jsx)(F,{...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()}})}),F=h.forwardRef((e,t)=>
1{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,l=S(M,n),u=h.useRef(null),d=i(t,u);return ee(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,g.jsx)(ie,{role:`dialog`,id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":H(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(me,{titleId:l.titleId}),(0,g.jsx)(ge,{contentRef:u,descriptionId:l.descriptionId})]})]})}),I=`DialogTitle`,L=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(I,n);return(0,g.jsx)(l.h2,{id:i.titleId,...r,ref:t})});L.displayName=I;var R=`DialogDescription`,z=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(R,n);return(0,g.jsx)(l.p,{id:i.descriptionId,...r,ref:t})});z.displayName=R;var B=`DialogClose`,V=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(B,n);return(0,g.jsx)(l.button,{type:`button`,...r,ref:t,onClick:u(e.onClick,()=>i.onOpenChange(!1))})});V.displayName=B;function H(e){return e?`open`:`closed`}var U=`DialogTitleWarning`,[pe,W]=ne(U,{contentName:M,titleName:I,docsSlug:`dialog`}),me=({titleId:e})=>{let t=W(U),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},he=`DialogDescriptionWarning`,ge=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${W(he).contentName}}.`;return h.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},_e=C,ve=k,G=j,K=N,q=L,J=z,ye=V,be=_e,xe=ve,Y=h.forwardRef(({className:e,...t},n)=>(0,g.jsx)(G,{ref:n,className:o(`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`,e),...t}));Y.displayName=G.displayName;var X=h.forwardRef(({className:e,children:t,...n},i)=>(0,g.jsxs)(xe,{children:[(0,g.jsx)(Y,{}),(0,g.jsxs)(K,{ref:i,className:o(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] 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 sm:rounded-lg`,e),...n,children:[t,(0,g.jsxs)(ye,{className:`absolute right-4 top-4 roun
5ded-sm opacity-70 ring-offset-background cursor-pointer 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`,children:[(0,g.jsx)(r,{className:`h-4 w-4`}),(0,g.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));X.displayName=K.displayName;var Z=({className:e,...t})=>(0,g.jsx)(`div`,{className:o(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});Z.displayName=`DialogHeader`;var Se=({className:e,...t})=>(0,g.jsx)(`div`,{className:o(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Se.displayName=`DialogFooter`;var Q=h.forwardRef(({className:e,...t},n)=>(0,g.jsx)(q,{ref:n,className:o(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Q.displayName=q.displayName;var $=h.forwardRef(({className:e,...t},n)=>(0,g.jsx)(J,{ref:n,className:o(`text-sm text-muted-foreground`,e),...t}));$.displayName=J.displayName;export{Q as a,Z as i,X as n,$ as r,be 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.