"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8379],{2854:function(e,t,n){n.d(t,{Dx:function(){return G},VY:function(){return X},aV:function(){return U},dk:function(){return J},fC:function(){return Y},h_:function(){return H},x8:function(){return Q},xz:function(){return Z}});var r=n(7294),o=n(6206),a=n(5623),i=n(5360),l=n(1276),s=n(7342),u=n(8083),d=n(5420),c=n(2651),f=n(9115),p=n(5320),g=n(7552),v=n(6223),m=n(3541),b=n(8426),h=n(5893),D="Dialog",[x,y]=(0,i.b)(D),[C,j]=x(D),Dialog=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,s.T)({prop:o,defaultProp:a,onChange:i});return(0,h.jsx)(C,{scope:t,triggerRef:d,contentRef:c,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};Dialog.displayName=D;var w="DialogTrigger",I=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=j(w,n),l=(0,a.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:l,onClick:(0,o.M)(e.onClick,i.onOpenToggle)})});I.displayName=w;var R="DialogPortal",[M,N]=x(R,{forceMount:void 0}),DialogPortal=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=j(R,t);return(0,h.jsx)(M,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,h.jsx)(f.z,{present:n||i.open,children:(0,h.jsx)(c.h,{asChild:!0,container:a,children:e})}))})};DialogPortal.displayName=R;var V="DialogOverlay",k=r.forwardRef((e,t)=>{let n=N(V,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=j(V,e.__scopeDialog);return a.modal?(0,h.jsx)(f.z,{present:r||a.open,children:(0,h.jsx)(W,{...o,ref:t})}):null});k.displayName=V;var W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=j(V,n);return(0,h.jsx)(v.Z,{as:b.g7,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}})})}),F="DialogContent",T=r.forwardRef((e,t)=>{let n=N(F,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=j(F,e.__scopeDialog);return(0,h.jsx)(f.z,{present:r||a.open,children:a.modal?(0,h.jsx)(_,{...o,ref:t}):(0,h.jsx)(E,{...o,ref:t})})});T.displayName=F;var _=r.forwardRef((e,t)=>{let n=j(F,e.__scopeDialog),i=r.useRef(null),l=(0,a.e)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,m.Ry)(e)},[]),(0,h.jsx)(P,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(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.M)(e.onFocusOutside,e=>e.preventDefault())})}),E=r.forwardRef((e,t)=>{let n=j(F,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,h.jsx)(P,{...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,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let r=t.target,i=n.triggerRef.current?.contains(r);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),P=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=j(F,n),f=r.useRef(null),p=(0,a.e)(t,f);return(0,g.EW)(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,h.jsx)(u.XB,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":getState(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(TitleWarning,{titleId:c.titleId}),(0,h.jsx)(DescriptionWarning,{contentRef:f,descriptionId:c.descriptionId})]})]})}),O="DialogTitle",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=j(O,n);return(0,h.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});z.displayName=O;var A="DialogDescription",$=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=j(A,n);return(0,h.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});$.displayName=A;var S="DialogClose",K=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=j(S,n);return(0,h.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>a.onOpenChange(!1))})});function getState(e){return e?"open":"closed"}K.displayName=S;var B="DialogTitleWarning",[q,L]=(0,i.k)(B,{contentName:F,titleName:O,docsSlug:"dialog"}),TitleWarning=({titleId:e})=>{let t=L(B),n=`\`${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 r.useEffect(()=>{if(e){let t=document.getElementById(e);t||console.error(n)}},[n,e]),null},DescriptionWarning=({contentRef:e,descriptionId:t})=>{let n=L("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},Y=Dialog,Z=I,H=DialogPortal,U=k,X=T,G=z,J=$,Q=K},9102:function(e,t,n){n.d(t,{f:function(){return l}});var r=n(7294),o=n(5320),a=n(5893),i=r.forwardRef((e,t)=>(0,a.jsx)(o.WV.label,{...e,ref:t,onMouseDown:t=>{let n=t.target;n.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},2780:function(e,t,n){n.d(t,{f:function(){return u}});var r=n(7294),o=n(5320),a=n(5893),i="horizontal",l=["horizontal","vertical"],s=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...s}=e,u=l.includes(r)?r:i;return(0,a.jsx)(o.WV.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...s,ref:t})});s.displayName="Separator";var u=s},434:function(e,t,n){n.d(t,{VY:function(){return V},aV:function(){return M},fC:function(){return R},xz:function(){return N}});var r=n(7294),o=n(6206),a=n(5360),i=n(650),l=n(9115),s=n(5320),u=n(8990),d=n(7342),c=n(1276),f=n(5893),p="Tabs",[g,v]=(0,a.b)(p,[i.Pc]),m=(0,i.Pc)(),[b,h]=g(p),D=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:p="automatic",...g}=e,v=(0,u.gm)(l),[m,h]=(0,d.T)({prop:r,onChange:o,defaultProp:a});return(0,f.jsx)(b,{scope:n,baseId:(0,c.M)(),value:m,onValueChange:h,orientation:i,dir:v,activationMode:p,children:(0,f.jsx)(s.WV.div,{dir:v,"data-orientation":i,...g,ref:t})})});D.displayName=p;var x="TabsList",y=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,a=h(x,n),l=m(n);return(0,f.jsx)(i.fC,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:r,children:(0,f.jsx)(s.WV.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});y.displayName=x;var C="TabsTrigger",j=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...l}=e,u=h(C,n),d=m(n),c=makeTriggerId(u.baseId,r),p=makeContentId(u.baseId,r),g=r===u.value;return(0,f.jsx)(i.ck,{asChild:!0,...d,focusable:!a,active:g,children:(0,f.jsx)(s.WV.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":p,"data-state":g?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...l,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(r)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(r)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==u.activationMode;g||a||!e||u.onValueChange(r)})})})});j.displayName=C;var w="TabsContent",I=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:a,children:i,...u}=e,d=h(w,n),c=makeTriggerId(d.baseId,o),p=makeContentId(d.baseId,o),g=o===d.value,v=r.useRef(g);return r.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(l.z,{present:a||g,children:({present:n})=>(0,f.jsx)(s.WV.div,{"data-state":g?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:n&&i})})});function makeTriggerId(e,t){return`${e}-trigger-${t}`}function makeContentId(e,t){return`${e}-content-${t}`}I.displayName=w;var R=D,M=y,N=j,V=I}}]);