"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4972],{33513:(e,t,r)=>{r.d(t,{G$:()=>U,Hs:()=>x,UC:()=>er,VY:()=>eo,ZL:()=>ee,bL:()=>z,bm:()=>ea,hE:()=>en,hJ:()=>et,l9:()=>Q});var n=r(60857),o=r(44217),a=r(27708),l=r(69270),i=r(9417),s=r(35517),u=r(60776),c=r(36619),f=r(41842),d=r(56164),p=r(5951),g=r(46543),y=r(84585),b=r(49941),h=r(52422),v=r(90637),m="Dialog",[w,x]=(0,l.A)(m),[j,D]=w(m),O=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,c=n.useRef(null),f=n.useRef(null),[d,p]=(0,s.i)({prop:o,defaultProp:a??!1,onChange:l,caller:m});return(0,v.jsx)(j,{scope:t,triggerRef:c,contentRef:f,contentId:(0,i.B)(),titleId:(0,i.B)(),descriptionId:(0,i.B)(),open:d,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:r})};O.displayName=m;var C="DialogTrigger",R=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=D(C,r),i=(0,a.s)(t,l.triggerRef);return(0,v.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":Z(l.open),...n,ref:i,onClick:(0,o.mK)(e.onClick,l.onOpenToggle)})});R.displayName=C;var I="DialogPortal",[E,N]=w(I,{forceMount:void 0}),_=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:a}=e,l=D(I,t);return(0,v.jsx)(E,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,v.jsx)(d.C,{present:r||l.open,children:(0,v.jsx)(f.Z,{asChild:!0,container:a,children:e})}))})};_.displayName=I;var P="DialogOverlay",k=n.forwardRef((e,t)=>{let r=N(P,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=D(P,e.__scopeDialog);return a.modal?(0,v.jsx)(d.C,{present:n||a.open,children:(0,v.jsx)(S,{...o,ref:t})}):null});k.displayName=P;var F=(0,h.TL)("DialogOverlay.RemoveScroll"),S=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(P,r);return(0,v.jsx)(y.A,{as:F,allowPinchZoom:!0,shards:[o.contentRef],children:(0,v.jsx)(p.sG.div,{"data-state":Z(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),A="DialogContent",T=n.forwardRef((e,t)=>{let r=N(A,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=D(A,e.__scopeDialog);return(0,v.jsx)(d.C,{present:n||a.open,children:a.modal?(0,v.jsx)(G,{...o,ref:t}):(0,v.jsx)(M,{...o,ref:t})})});T.displayName=A;var G=n.forwardRef((e,t)=>{let r=D(A,e.__scopeDialog),l=n.useRef(null),i=(0,a.s)(t,r.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,b.Eq)(e)},[]),(0,v.jsx)(K,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),M=n.forwardRef((e,t)=>{let r=D(A,e.__scopeDialog),o=n.useRef(!1),a=n.useRef(!1);return(0,v.jsx)(K,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),K=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:i,...s}=e,f=D(A,r),d=n.useRef(null),p=(0,a.s)(t,d);return(0,g.Oh)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:i,children:(0,v.jsx)(u.qW,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Z(f.open),...s,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Y,{titleId:f.titleId}),(0,v.jsx)(X,{contentRef:d,descriptionId:f.descriptionId})]})]})}),$="DialogTitle",B=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D($,r);return(0,v.jsx)(p.sG.h2,{id:o.titleId,...n,ref:t})});B.displayName=$;var q="DialogDescription",H=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(q,r);return(0,v.jsx)(p.sG.p,{id:o.descriptionId,...n,ref:t})});H.displayName=q;var L="DialogClose",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=D(L,r);return(0,v.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>a.onOpenChange(!1))})});function Z(e){return e?"open":"closed"}W.displayName=L;var J="DialogTitleWarning",[U,V]=(0,l.q)(J,{contentName:A,titleName:$,docsSlug:"dialog"}),Y=({titleId:e})=>{let t=V(J),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},X=({contentRef:e,descriptionId:t})=>{let r=V("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},z=O,Q=R,ee=_,et=k,er=T,en=B,eo=H,ea=W},67169:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(60857),o=r(5951),a=r(90637),l=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var i=l},82756:(e,t,r)=>{r.d(t,{Cl:()=>n,Ju:()=>i,Tt:()=>o,YH:()=>l,fX:()=>s,sH:()=>a});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function a(e,t,r,n){return new(r||(r=Promise))(function(o,a){function l(e){try{s(n.next(e))}catch(e){a(e)}}function i(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(l,i)}s((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=i(0),l.throw=i(1),l.return=i(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function i(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function i(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t,r){if(r||2==arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}}]);