"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42113],{11321:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(85979).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},45359:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(85979).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},24064:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(85979).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},12569:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return l},findSourceMapURL:function(){return o.findSourceMapURL}});let n=r(92146),o=r(27934),l=r(76774).createServerReference},39359:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(52114),o=r(21762),l=r(74768),i=r(4302),a=r(19002);function s(e){let t=e+"CollectionProvider",[r,s]=(0,o.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),l=n.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:l,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),s=(0,l.s)(t,o.collectionRef);return(0,a.jsx)(i.DX,{ref:s,children:n})});p.displayName=f;let v=e+"CollectionItemSlot",g="data-radix-collection-item",m=n.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,u=n.useRef(null),d=(0,l.s)(t,u),f=c(v,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...s}),()=>void f.itemMap.delete(u))),(0,a.jsx)(i.DX,{[g]:"",ref:d,children:o})});return m.displayName=v,[{Provider:d,Slot:p,ItemSlot:m},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}},76050:(e,t,r)=>{r.d(t,{G$:()=>Z,Hs:()=>b,UC:()=>et,VY:()=>en,ZL:()=>Q,bL:()=>Y,bm:()=>eo,hE:()=>er,hJ:()=>ee,l9:()=>$});var n=r(52114),o=r(13483),l=r(74768),i=r(21762),a=r(2441),s=r(32617),u=r(93025),c=r(72840),d=r(12821),f=r(64033),p=r(63324),v=r(4160),g=r(89377),m=r(48735),h=r(4302),y=r(19002),x="Dialog",[R,b]=(0,i.A)(x),[C,D]=R(x),j=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:l,onOpenChange:i,modal:u=!0}=e,c=n.useRef(null),d=n.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:l,onChange:i});return(0,y.jsx)(C,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:r})};j.displayName=x;var w="DialogTrigger",A=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=D(w,r),a=(0,l.s)(t,i.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":L(i.open),...n,ref:a,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});A.displayName=w;var N="DialogPortal",[I,O]=R(N,{forceMount:void 0}),k=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:l}=e,i=D(N,t);return(0,y.jsx)(I,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,y.jsx)(f.C,{present:r||i.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:l,children:e})}))})};k.displayName=N;var M="DialogOverlay",S=n.forwardRef((e,t)=>{let r=O(M,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=D(M,e.__scopeDialog);return l.modal?(0,y.jsx)(f.C,{present:n||l.open,children:(0,y.jsx)(_,{...o,ref:t})}):null});S.displayName=M;var _=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(M,r);return(0,y.jsx)(g.A,{as:h.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":L(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),E="DialogContent",F=n.forwardRef((e,t)=>{let r=O(E,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=D(E,e.__scopeDialog);return(0,y.jsx)(f.C,{present:n||l.open,children:l.modal?(0,y.jsx)(P,{...o,ref:t}):(0,y.jsx)(z,{...o,ref:t})})});F.displayName=E;var P=n.forwardRef((e,t)=>{let r=D(E,e.__scopeDialog),i=n.useRef(null),a=(0,l.s)(t,r.contentRef,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,m.Eq)(e)},[]),(0,y.jsx)(q,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),z=n.forwardRef((e,t)=>{let r=D(E,e.__scopeDialog),o=n.useRef(!1),l=n.useRef(!1);return(0,y.jsx)(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var n,i;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let a=t.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),q=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,d=D(E,r),f=n.useRef(null),p=(0,l.s)(t,f);return(0,v.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":L(d.open),...s,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(J,{titleId:d.titleId}),(0,y.jsx)(K,{contentRef:f,descriptionId:d.descriptionId})]})]})}),B="DialogTitle",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(B,r);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...n,ref:t})});G.displayName=B;var W="DialogDescription",H=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(W,r);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...n,ref:t})});H.displayName=W;var T="DialogClose",X=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=D(T,r);return(0,y.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,o.m)(e.onClick,()=>l.onOpenChange(!1))})});function L(e){return e?"open":"closed"}X.displayName=T;var U="DialogTitleWarning",[Z,V]=(0,i.q)(U,{contentName:E,titleName:B,docsSlug:"dialog"}),J=e=>{let{titleId:t}=e,r=V(U),o="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},K=e=>{let{contentRef:t,descriptionId:r}=e,o=V("DialogDescriptionWarning"),l="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");r&&n&&!document.getElementById(r)&&console.warn(l)},[l,t,r]),null},Y=j,$=A,Q=k,ee=S,et=F,er=G,en=H,eo=X},23793:(e,t,r)=>{r.d(t,{jH:()=>l});var n=r(52114);r(19002);var o=n.createContext(void 0);function l(e){let t=n.useContext(o);return e||t||"ltr"}},1241:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(52114);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},74881:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(52114),o=r(25173);function l(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}}]);