1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[257],{9110:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},3565:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},1466:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},2792:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},7668:(e,t,r)=>{r.d(t,{B:()=>l});var n,o=r(2115),a=r(6611),u=(n||(n=r.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),i=0;function l(e){let[t,r]=o.useState(u());return(0,a.N)(()=>{e||r(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}},7028:(e,t,r)=>{r.d(t,{C:()=>u});var n=r(2115),o=r(8068),a=r(6611),u=e=>{let{present:t,children:r}=e,u=function(e){var t,r;let[o,u]=n.useState(),l=n.useRef(null),s=n.useRef(e),d=n.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=i(l.current);d.current="mounted"===c?e:"none"},[c]),(0,a.N)(()=>{let t=l.current,r=s.current;if(r!==e){let n=d.current,o=i(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=i(l.current).includes(CSS.escape(e.animationName));if(e.target===o&&n&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(d.current=i(l.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,u(e)},[])}}(t),l="function"==typeof r?r({present:u.isPresent}):n.Children.only(r),s=(0,o.s)(u.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||u.isPresent?n.cloneElement(l,{ref:s}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},852:(e,t,r)=>{r.d(t,{C1:()=>U,bL:()=>G,q7:()=>K});var n=r(2115),o=r(3610),a=r(8068),u=r(8166),i=r(9997),l=r(7357),s=r(1488),d=r(4256),c=r(7510),f=r(858),p=r(7028),v=r(5155),m="Radio",[h,y]=(0,u.A)(m),[w,b]=h(m),g=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:u,checked:l=!1,required:s,disabled:d,value:c="on",onCheck:f,form:p,...m}=e,[h,y]=n.useState(null),b=(0,a.s)(t,e=>y(e)),g=n.useRef(!1),R=!h||p||!!h.closest("form");return(0,v.jsxs)(w,{scope:r,checked:l,disabled:d,children:[(0,v.jsx)(i.sG.button,{type:"button",role:"radio","aria-checked":l,"data-state":A(l),"data-disabled":d?"":void 0,disabled:d,value:c,...m,ref:b,onClick:(0,o.mK)(e.onClick,e=>{l||null==f||f(),R&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),R&&(0,v.jsx)(N,{control:h,bubbles:!g.current,name:u,value:c,checked:l,required:s,disabled:d,form:p,style:{transform:"translateX(-100%)"}})]})});g.displayName=m;var R="RadioIndicator",k=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...o}=e,a=b(R,r);return(0,v.jsx)(p.C,{present:n||a.checked,children:(0,v.jsx)(i.sG.span,{"data-state":A(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});k.displayName=R;var N=n.forwardRef((e,t)=>{let{__scopeRadio:r,control:o,checked:u,bubbles:l=!0,...s}=e,d=n.useRef(null),p=(0,a.s)(d,t),m=(0,f.Z)(u),h=(0,c.X)(o);return n.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==u&&t){let r=new Event("click",{bubbles:l});t.call(e,u),e.dispatchEvent(r)}},[m,u,l]),(0,v.jsx)(i.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:u,...s,tabIndex:-1,ref:p,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function A(e){return e?"checked":"unchecked"}N.displayName="RadioBubbleInput";var E=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],M="RadioGroup",[x,I]=(0,u.A)(M,[l.RG,y]),T=(0,l.RG)(),j=y(),[C,D]=x(M),F=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:u=!1,disabled:c=!1,orientation:f,dir:p,loop:m=!0,onValueChange:h,...y}=e,w=T(r),b=(0,d.jH)(p),[g,R]=(0,s.i)({prop:a,defaultProp:null!=o?o:null,onChange:h,caller:M});return(0,v.jsx)(C,{scope:r,name:n,required:u,disabled:c,value:g,onValueChange:R,children:(0,v.jsx)(l.bL,{asChild:!0,...w,orientation:f,dir:b,loop:m,children:(0,v.jsx)(i.sG.div,{role:"radiogroup","aria-required":u,"aria-orientation":f,"data-disabled":c?"":void 0,dir:b,...y,ref:t})})})});F.displayName=M;var L="RadioGroupItem",S=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:u,...i}=e,s=D(L,r),d=s.disabled||u,c=T(r),f=j(r),p=n.useRef(null),m=(0,a.s)(t,p),h=s.value===i.value,y=n.useRef(!1);return n.useEffect(()=>{let e=e=>{E.includes(e.key)&&(y.current=!0)},t=()=>y.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,v.jsx)(l.q7,{asChild:!0,...c,focusable:!d,active:h,children:(0,v.jsx)(g,{disabled:d,required:s.required,checked:h,...f,...i,name:s.name,ref:m,onCheck:()=>s.onValueChange(i.value),onKeyDown:(0,o.mK)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,o.mK)(i.onFocus,()=>{var e;y.current&&(null===(e=p.current)||void 0===e||e.click())})})})});S.displayName=L;var O=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,o=j(r);return(0,v.jsx)(k,{...o,...n,ref:t})});O.displayName="RadioGroupIndicator";var G=F,K=S,U=O},7357:(e,t,r)=>{r.d(t,{RG:()=>R,bL:()=>j,q7:()=>C});var n=r(2115),o=r(3610),a=r(1295),u=r(8068),i=r(8166),l=r(7668),s=r(9997),d=r(1524),c=r(1488),f=r(4256),p=r(5155),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[y,w,b]=(0,a.N)(h),[g,R]=(0,i.A)(h,[b]),[k,N]=g(h),A=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(E,{...e,ref:t})})}));A.displayName=h;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:i=!1,dir:l,currentTabStopId:y,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:g,onEntryFocus:R,preventScrollOnEntryFocus:N=!1,...A}=e,E=n.useRef(null),M=(0,u.s)(t,E),x=(0,f.jH)(l),[I,j]=(0,c.i)({prop:y,defaultProp:null!=b?b:null,onChange:g,caller:h}),[C,D]=n.useState(!1),F=(0,d.c)(R),L=w(r),S=n.useRef(!1),[O,G]=n.useState(0);return n.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(v,F),()=>e.removeEventListener(v,F)},[F]),(0,p.jsx)(k,{scope:r,orientation:a,dir:x,loop:i,currentTabStopId:I,onItemFocus:n.useCallback(e=>j(e),[j]),onItemShiftTab:n.useCallback(()=>D(!0),[]),onFocusableItemAdd:n.useCallback(()=>G(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>G(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:C||0===O?-1:0,"data-orientation":a,...A,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{S.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),N)}}S.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>D(!1))})})}),M="RovingFocusGroupItem",x=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:u=!1,tabStopId:i,children:d,...c}=e,f=(0,l.B)(),v=i||f,m=N(M,r),h=m.currentTabStopId===v,b=w(r),{onFocusableItemAdd:g,onFocusableItemRemove:R,currentTabStopId:k}=m;return n.useEffect(()=>{if(a)return g(),()=>R()},[a,g,R]),(0,p.jsx)(y.ItemSlot,{scope:r,id:v,focusable:a,active:u,children:(0,p.jsx)(s.sG.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{a?m.onItemFocus(v):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>m.onItemFocus(v)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return I[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>T(r))}}),children:"function"==typeof d?d({isCurrentTabStop:h,hasTabStop:null!=k}):d})})});x.displayName=M;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var j=A,C=x},1524:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(2115);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},858:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(2115);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])}}}]); |