1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1368],{30633:function(e,t,n){n.d(t,{x8:function(){return Y},VY:function(){return X},aV:function(){return U},h_:function(){return K},fC:function(){return q},xz:function(){return H}});var r=n(67294),o=n(36206),l=n(28771),i=n(25360),a=n(91276),s=n(77342),u=n(46063),c=n(95420),d=n(42651),f=n(29115),p=n(64757),g=n(27552),m=n(66104),y=n(23541),h=n(85893);function createSlot(e){let t=createSlotClone(e),n=r.forwardRef((e,n)=>{let{children:o,...l}=e,i=r.Children.toArray(o),a=i.find(isSlottable);if(a){let e=a.props.children,o=i.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,h.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}function createSlotClone(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e=getElementRef(n),i=mergeProps(o,n.props);return n.type!==r.Fragment&&(i.ref=t?(0,l.F)(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var b=Symbol("radix.slottable");function isSlottable(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}function mergeProps(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r],i=/^on[A-Z]/.test(r);i?o&&l?n[r]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}var j="Dialog",[D,C]=(0,i.b)(j),[R,x]=D(j),Dialog=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:l,onOpenChange:i,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[f,p]=(0,s.T)({prop:o,defaultProp:l??!1,onChange:i,caller:j});return(0,h.jsx)(R,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.M)(),titleId:(0,a.M)(),descriptionId:(0,a.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};Dialog.displayName=j;var v="DialogTrigger",S=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=x(v,n),a=(0,l.e)(t,i.triggerRef);return(0,h.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":getState(i.open),...r,ref:a,onClick:(0,o.Mj)(e.onClick,i.onOpenToggle)})});S.displayName=v;var _="DialogPortal",[E,w]=D(_,{forceMount:void 0}),DialogPortal=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:l}=e,i=x(_,t);return(0,h.jsx)(E,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,h.jsx)(f.z,{present:n||i.open,children:(0,h.jsx)(d.h,{asChild:!0,container:l,children:e})}))})};DialogPortal.displayName=_;var I="DialogOverlay",N=r.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=x(I,e.__scopeDialog);return l.modal?(0,h.jsx)(f.z,{present:r||l.open,children:(0,h.jsx)(P,{...o,ref:t})}):null});N.displayName=I;var O=createSlot("DialogOverlay.RemoveScroll"),P=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=x(I,n);return(0,h.jsx)(m.Z,{as:O,allowPinchZoom:!0,shards:[o.contentRef],children:(0,h.jsx)(p.WV.div,{"data-state":getState(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),W="DialogContent",F=r.forwardRef((e,t)=>{let n=w(W,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=x(W,e.__scopeDialog);return(0,h.jsx)(f.z,{present:r||l.open,children:l.modal?(0,h.jsx)(V,{...o,ref:t}):(0,h.jsx)(M,{...o,ref:t})})});F.displayName=W;var V=r.forwardRef((e,t)=>{let n=x(W,e.__scopeDialog),i=r.useRef(null),a=(0,l.e)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,y.Ry)(e)},[]),(0,h.jsx)($,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.Mj)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.Mj)(e.onFocusOutside,e=>e.preventDefault())})}),M=r.forwardRef((e,t)=>
1{let n=x(W,e.__scopeDialog),o=r.useRef(!1),l=r.useRef(!1);return(0,h.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let r=t.target,i=n.triggerRef.current?.contains(r);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),$=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,d=x(W,n),f=r.useRef(null),p=(0,l.e)(t,f);return(0,g.EW)(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,h.jsx)(u.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":getState(d.open),...s,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(TitleWarning,{titleId:d.titleId}),(0,h.jsx)(DescriptionWarning,{contentRef:f,descriptionId:d.descriptionId})]})]})}),k="DialogTitle";r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=x(k,n);return(0,h.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})}).displayName=k;var A="DialogDescription";r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=x(A,n);return(0,h.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})}).displayName=A;var z="DialogClose",T=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=x(z,n);return(0,h.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.Mj)(e.onClick,()=>l.onOpenChange(!1))})});function getState(e){return e?"open":"closed"}T.displayName=z;var B="DialogTitleWarning",[L,Z]=(0,i.k)(B,{contentName:W,titleName:k,docsSlug:"dialog"}),TitleWarning=({titleId:e})=>{let t=Z(B),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 r.useEffect(()=>{if(e){let t=document.getElementById(e);t||console.error(n)}},[n,e]),null},DescriptionWarning=({contentRef:e,descriptionId:t})=>{let n=Z("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return r.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");if(t&&n){let e=document.getElementById(t);e||console.warn(o)}},[o,e,t]),null},q=Dialog,H=S,K=DialogPortal,U=N,X=F,Y=T},88426:function(e,t,n){n.d(t,{A4:function(){return d},g7:function(){return u}});var r,o=n(67294),l=n(28771),i=n(85893),a=Symbol.for("react.lazy"),s=(r||(r=n.t(o,2)))[" use ".trim().toString()];function isPromiseLike(e){return"object"==typeof e&&null!==e&&"then"in e}function isLazyComponent(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&isPromiseLike(e._payload)}var u=function(e){let t=createSlotClone(e),n=o.forwardRef((e,n)=>{let{children:r,...l}=e;isLazyComponent(r)&&"function"==typeof s&&(r=s(r._payload));let a=o.Children.toArray(r),u=a.find(isSlottable);if(u){let e=u.props.children,r=a.map(t=>t!==u?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,i.jsx)(t,{...l,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}("Slot");function createSlotClone(e){let t=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(isLazyComponent(n)&&"function"==typeof s&&(n=s(n._payload)),o.isValidElement(n)){let e=getElementRef(n),i=mergeProps(r,n.props);return n.type!==o.Fragment&&(i.ref=t?(0,l.F)(t,e):e),o.cloneElement(n,i)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c=Symbol("radix.slottable"),d=function(e){let Slottable2=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return Slottable2.displayName=`${e}.Slottable`,Slottable2.__radixId=c,Slottable2}("Slottable");function isSlottable(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}function mergeProps(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r],i=/^on[A-Z]/.test(r);i?o&&l?n[r]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}
5:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}}}]);
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.