1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8527],{69872:function(e,n,t){t.d(n,{Z:function(){return o}});const o=(0,t(88790).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},3568:function(e,n,t){t.d(n,{Dx:function(){return oe},VY:function(){return te},aV:function(){return ne},dk:function(){return re},fC:function(){return Q},h_:function(){return ee},jm:function(){return K},p8:function(){return _},x8:function(){return ie},xz:function(){return $}});var o=t(89944),r=t(18538),i=t(7553),a=t(17970),u=t(88928),s=t(8787),c=t(84150),l=t(3326),d=t(48365),f=t(30200),p=t(78161),g=t(11030),m=t(28603),v=t(67632),D=t(54409),y=t(71437),N="Dialog",[h,_]=(0,a.b)(N),[R,O]=h(N),M=e=>{const{__scopeDialog:n,children:t,open:r,defaultOpen:i,onOpenChange:a,modal:c=!0}=e,l=o.useRef(null),d=o.useRef(null),[f,p]=(0,s.T)({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:a,caller:N});return(0,y.jsx)(R,{scope:n,triggerRef:l,contentRef:d,contentId:(0,u.M)(),titleId:(0,u.M)(),descriptionId:(0,u.M)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback((()=>p((e=>!e))),[p]),modal:c,children:t})};M.displayName=N;var b="DialogTrigger",I=o.forwardRef(((e,n)=>{const{__scopeDialog:t,...o}=e,a=O(b,t),u=(0,i.e)(n,a.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":q(a.open),...o,ref:u,onClick:(0,r.M)(e.onClick,a.onOpenToggle)})}));I.displayName=b;var w="DialogPortal",[x,j]=h(w,{forceMount:void 0}),C=e=>{const{__scopeDialog:n,forceMount:t,children:r,container:i}=e,a=O(w,n);return(0,y.jsx)(x,{scope:n,forceMount:t,children:o.Children.map(r,(e=>(0,y.jsx)(f.z,{present:t||a.open,children:(0,y.jsx)(d.h,{asChild:!0,container:i,children:e})})))})};C.displayName=w;var E="DialogOverlay",T=o.forwardRef(((e,n)=>{const t=j(E,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,i=O(E,e.__scopeDialog);return i.modal?(0,y.jsx)(f.z,{present:o||i.open,children:(0,y.jsx)(A,{...r,ref:n})}):null}));T.displayName=E;var F=(0,D.Z8)("DialogOverlay.RemoveScroll"),A=o.forwardRef(((e,n)=>{const{__scopeDialog:t,...o}=e,r=O(E,t);return(0,y.jsx)(m.Z,{as:F,allowPinchZoom:!0,shards:[r.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":q(r.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})})),k="DialogContent",P=o.forwardRef(((e,n)=>{const t=j(k,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,i=O(k,e.__scopeDialog);return(0,y.jsx)(f.z,{present:o||i.open,children:i.modal?(0,y.jsx)(W,{...r,ref:n}):(0,y.jsx)(U,{...r,ref:n})})}));P.displayName=k;var W=o.forwardRef(((e,n)=>{const t=O(k,e.__scopeDialog),a=o.useRef(null),u=(0,i.e)(n,t.contentRef,a);return o.useEffect((()=>{const e=a.current;if(e)return(0,v.Ry)(e)}),[]),(0,y.jsx)(V,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.M)(e.onCloseAutoFocus,(e=>{var n;e.preventDefault(),null===(n=t.triggerRef.current)||void 0===n||n.focus()})),onPointerDownOutside:(0,r.M)(e.onPointerDownOutside,(e=>{const n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()})),onFocusOutside:(0,r.M)(e.onFocusOutside,(e=>e.preventDefault()))})})),U=o.forwardRef(((e,n)=>{const t=O(k,e.__scopeDialog),r=o.useRef(!1),i=o.useRef(!1);return(0,y.jsx)(V,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var o,a;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,n),n.defaultPrevented)||(r.current||null===(a=t.triggerRef.current)||void 0===a||a.focus(),n.preventDefault());r.current=!1,i.current=!1},onInteractOutside:n=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,n),n.defaultPrevented||(r.current=!0,"pointerdown"===n.detail.originalEvent.type&&(i.current=!0));const u=n.target;(null===(a=t.triggerRef.current)||void 0===a?void 0:a.contains(u))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&i.current&&n.preventDefault()}})})),V=o.forwardRef(((e,n)=>{const{__scopeDialog:t,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:u,...s}=e,d=O(k,t),f=o.useRef(null),p=(0,i.e)(n,f);return(0,g.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:u,children:(0,y.jsx)(c.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":q(d.open),...s,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(G,{titleId:d.titleId}),(0,y.jsx)(J,{contentRef:f,descriptionId:d.descriptionId})]})]})})),S="DialogTitle",L=o.forwardRef(((e,n)=>{const{__scopeDialog:t,...o}=e,r=O(S,t);return(0,y.jsx)(p.WV.h2,{id:r.titleId,...o,ref:n})}));L.displayName=S;var z="DialogDescription",Z=o.forwardRef(((e,n)=>{const{__scopeDialog:t,...o}=e,r=O(z,t);
1return(0,y.jsx)(p.WV.p,{id:r.descriptionId,...o,ref:n})}));Z.displayName=z;var B="DialogClose",X=o.forwardRef(((e,n)=>{const{__scopeDialog:t,...o}=e,i=O(B,t);return(0,y.jsx)(p.WV.button,{type:"button",...o,ref:n,onClick:(0,r.M)(e.onClick,(()=>i.onOpenChange(!1)))})}));function q(e){return e?"open":"closed"}X.displayName=B;var H="DialogTitleWarning",[K,Y]=(0,a.k)(H,{contentName:k,titleName:S,docsSlug:"dialog"}),G=e=>{let{titleId:n}=e;const t=Y(H),r="`".concat(t.contentName,"` requires a `").concat(t.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(t.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(t.docsSlug);return o.useEffect((()=>{if(n){document.getElementById(n)||console.error(r)}}),[r,n]),null},J=e=>{let{contentRef:n,descriptionId:t}=e;const r=Y("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return o.useEffect((()=>{var e;const o=null===(e=n.current)||void 0===e?void 0:e.getAttribute("aria-describedby");if(t&&o){document.getElementById(t)||console.warn(i)}}),[i,n,t]),null},Q=M,$=I,ee=C,ne=T,te=P,oe=L,re=Z,ie=X},30200:function(e,n,t){t.d(n,{z:function(){return a}});var o=t(89944),r=t(7553),i=t(59822);var a=e=>{const{present:n,children:t}=e,a=function(e){const[n,t]=o.useState(),r=o.useRef(null),a=o.useRef(e),s=o.useRef("none"),c=e?"mounted":"unmounted",[l,d]=function(e,n){return o.useReducer(((e,t)=>{const o=n[e][t];return null!==o&&void 0!==o?o:e}),e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect((()=>{const e=u(r.current);s.current="mounted"===l?e:"none"}),[l]),(0,i.b)((()=>{const n=r.current,t=a.current;if(t!==e){const o=s.current,r=u(n);if(e)d("MOUNT");else if("none"===r||"none"===(null===n||void 0===n?void 0:n.display))d("UNMOUNT");else{d(t&&o!==r?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,d]),(0,i.b)((()=>{if(n){let t;var e;const o=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,i=e=>{const i=u(r.current).includes(e.animationName);if(e.target===n&&i&&(d("ANIMATION_END"),!a.current)){const e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=o.setTimeout((()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)}))}},c=e=>{e.target===n&&(s.current=u(r.current))};return n.addEventListener("animationstart",c),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i),()=>{o.clearTimeout(t),n.removeEventListener("animationstart",c),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i)}}d("ANIMATION_END")}),[n,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:o.useCallback((e=>{r.current=e?getComputedStyle(e):null,t(e)}),[])}}(n),s="function"===typeof t?t({present:a.isPresent}):o.Children.only(t),c=(0,r.e)(a.ref,function(e){var n,t;let o=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,r=o&&"isReactWarning"in o&&o.isReactWarning;if(r)return e.ref;if(o=null===(t=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===t?void 0:t.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(s));return"function"===typeof t||a.isPresent?o.cloneElement(s,{ref:c}):null};function u(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}a.displayName="Presence"}}]); 2//# sourceMappingURL=8527-b39029e9617d2f9b.js.map
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.