PageSourceSearch

https://www.fashionpersonnel.co.uk/_next/static/chunks/319-7b55c0233f273b0c.js

js fashionpersonnel.co.uk collected 2026-10-05 21:34:12 UTC 23,241 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e811a038-004f-4261-a3a5-3aa8f85ee30c",e._sentryDebugIdIdentifier="sentry-dbid-e811a038-004f-4261-a3a5-3aa8f85ee30c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[319],{32575:(e,t,r)=>{"use strict";r.d(t,{B8:()=>ed,UC:()=>ev,bL:()=>ec,l9:()=>ep,q7:()=>ef});var n=r(14232),o=r(98477),a=r(35602),i=r(78782),l=r(72288),s=r(32608),u=r(45308),c=r(82088),d=r(73364),f=r(69084),p=r(85513),v=r(95103),m=r(73990),w=r(3211),h=r(98196),g=r(59319),b=r(37876),y="NavigationMenu",[x,R,C]=(0,p.N)(y),[j,E,N]=(0,p.N)(y),[k,T]=(0,a.A)(y,[C,N]),[A,M]=k(y),[_,I]=k(y),D=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,onValueChange:a,defaultValue:i,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:v,...m}=e,[w,h]=n.useState(null),g=(0,u.s)(t,e=>h(e)),x=(0,c.jH)(v),R=n.useRef(0),C=n.useRef(0),j=n.useRef(0),[E,N]=n.useState(!0),[k,T]=(0,s.i)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(j.current),t&&N(!1)):(window.clearTimeout(j.current),j.current=window.setTimeout(()=>N(!0),f)),a?.(e)},defaultProp:i??"",caller:y}),A=n.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>T(""),150)},[T]),M=n.useCallback(e=>{window.clearTimeout(C.current),T(e)},[T]),_=n.useCallback(e=>{k===e?window.clearTimeout(C.current):R.current=window.setTimeout(()=>{window.clearTimeout(C.current),T(e)},d)},[k,T,d]);return n.useEffect(()=>()=>{window.clearTimeout(R.current),window.clearTimeout(C.current),window.clearTimeout(j.current)},[]),(0,b.jsx)(K,{scope:r,isRootMenu:!0,value:k,dir:x,orientation:p,rootNavigationMenu:w,onTriggerEnter:e=>{window.clearTimeout(R.current),E?_(e):M(e)},onTriggerLeave:()=>{window.clearTimeout(R.current),A()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:A,onItemSelect:e=>{T(t=>t===e?"":e)},onItemDismiss:()=>T(""),children:(0,b.jsx)(l.sG.nav,{"aria-label":"Main","data-orientation":p,dir:x,...m,ref:g})})});D.displayName=y;var P="NavigationMenuSub";n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...u}=e,c=M(P,r),[d,f]=(0,s.i)({prop:n,onChange:o,defaultProp:a??"",caller:P});return(0,b.jsx)(K,{scope:r,isRootMenu:!1,value:d,dir:c.dir,orientation:i,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,b.jsx)(l.sG.div,{"data-orientation":i,...u,ref:t})})}).displayName=P;var K=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:o,dir:a,orientation:i,children:l,value:s,onItemSelect:u,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:w}=e,[g,y]=n.useState(null),[R,C]=n.useState(new Map),[j,E]=n.useState(null);return(0,b.jsx)(A,{scope:t,isRootMenu:r,rootNavigationMenu:o,value:s,previousValue:(0,m.Z)(s),baseId:(0,f.B)(),dir:a,orientation:i,viewport:g,onViewportChange:y,indicatorTrack:j,onIndicatorTrackChange:E,onTriggerEnter:(0,h.c)(d),onTriggerLeave:(0,h.c)(p),onContentEnter:(0,h.c)(v),onContentLeave:(0,h.c)(w),onItemSelect:(0,h.c)(u),onItemDismiss:(0,h.c)(c),onViewportContentChange:n.useCallback((e,t)=>{C(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,b.jsx)(x.Provider,{scope:t,children:(0,b.jsx)(_,{scope:t,items:R,children:l})})})},O="NavigationMenuList",L=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=M(O,r),a=(0,b.jsx)(l.sG.ul,{"data-orientation":o.orientation,...n,ref:t});return(0,b.jsx)(l.sG.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,b.jsx)(x.Slot,{scope:r,children:o.isRootMenu?(0,b.jsx)(ee,{asChild:!0,children:a}):a})})});L.displayName=O;var S="NavigationMenuItem",[F,G]=k(S),z=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,...a}=e,i=(0,f.B)(),s=n.useRef(null),u=n.useRef(null),c=n.useRef(null),d=n.useRef(()=>{}),p=n.useRef(!1),v=n.useCallback((e="start")=>{if(s.current){d.current();let t=en(s.current);t.length&&eo("start"===e?t:t.reverse())}},[]),m=n.useCallback(()=>
1{if(s.current){var e;let t=en(s.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),d.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,b.jsx)(F,{scope:r,value:o||i||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:m,onContentFocusOutside:m,children:(0,b.jsx)(l.sG.li,{...a,ref:t})})});z.displayName=S;var B="NavigationMenuTrigger",H=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:o,...a}=e,s=M(B,e.__scopeNavigationMenu),c=G(B,e.__scopeNavigationMenu),d=n.useRef(null),f=(0,u.s)(d,c.triggerRef,t),p=el(s.baseId,c.value),v=es(s.baseId,c.value),m=n.useRef(!1),w=n.useRef(!1),h=c.value===s.value;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.ItemSlot,{scope:r,value:c.value,children:(0,b.jsx)(er,{asChild:!0,children:(0,b.jsx)(l.sG.button,{id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":ei(h),"aria-expanded":h,"aria-controls":v,...a,ref:f,onPointerEnter:(0,i.mK)(e.onPointerEnter,()=>{w.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,i.mK)(e.onPointerMove,eu(()=>{o||w.current||c.wasEscapeCloseRef.current||m.current||(s.onTriggerEnter(c.value),m.current=!0)})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eu(()=>{o||(s.onTriggerLeave(),m.current=!1)})),onClick:(0,i.mK)(e.onClick,()=>{s.onItemSelect(c.value),w.current=h}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===s.dir?"ArrowLeft":"ArrowRight"}[s.orientation];h&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),h&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.bL,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,r=e.relatedTarget,n=r===d.current,o=t?.contains(r);(n||!o)&&c.onFocusProxyEnter(n?"start":"end")}}),s.viewport&&(0,b.jsx)("span",{"aria-owns":v})]})]})});H.displayName=B;var V="navigationMenu.linkSelect";n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return(0,b.jsx)(er,{asChild:!0,children:(0,b.jsx)(l.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:(0,i.mK)(e.onClick,e=>{let t=e.target,r=new CustomEvent(V,{bubbles:!0,cancelable:!0});if(t.addEventListener(V,e=>o?.(e),{once:!0}),(0,l.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Z,{bubbles:!0,cancelable:!0});(0,l.hO)(t,e)}},{checkForDefaultPrevented:!1})})})}).displayName="NavigationMenuLink";var U="NavigationMenuIndicator";n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=M(U,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?o.createPortal((0,b.jsx)(d.C,{present:r||i,children:(0,b.jsx)($,{...n,ref:t})}),a.indicatorTrack):null}).displayName=U;var $=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...o}=e,a=M(U,r),i=R(r),[s,u]=n.useState(null),[c,d]=n.useState(null),f="horizontal"===a.orientation,p=!!a.value;n.useEffect(()=>{let e=i(),t=e.find(e=>e.value===a.value)?.ref.current;t&&u(t)},[i,a.value]);let v=()=>{s&&d({size:f?s.offsetWidth:s.offsetHeight,offset:f?s.offsetLeft:s.offsetTop})};return ea(s,v),ea(a.indicatorTrack,v),c?(0,b.jsx)(l.sG.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...o.style}}):null}),q="NavigationMenuContent",W=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=M(q,e.__scopeNavigationMenu),a=G(q,e.__scopeNavigationMenu),l=(0,u.s)(a.contentRef,t),s=a.value===o.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...n};return o.viewport?(0,b.jsx)(Y,{forceMount:r,...c,ref:l}):(0,b.jsx)(d.C,{present:r||s,children:(0,b.jsx)(X,{"data-state":ei(s),...c,ref:l,onPointerEnter:(0,i.mK)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,i.mK)(e.onPointerLeave,eu(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...c.style}})})});W.displayName=q;var Y=n.forwardRef((e,t)=>
1{let{onViewportContentChange:r,onViewportContentRemove:n}=M(q,e.__scopeNavigationMenu);return(0,w.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,w.N)(()=>()=>n(e.value),[e.value,n]),null}),Z="navigationMenu.rootContentDismiss",X=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,triggerRef:a,focusProxyRef:l,wasEscapeCloseRef:s,onRootContentClose:c,onContentFocusOutside:d,...f}=e,p=M(q,r),m=n.useRef(null),w=(0,u.s)(m,t),h=el(p.baseId,o),g=es(p.baseId,o),y=R(r),x=n.useRef(null),{onItemDismiss:C}=p;n.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=()=>{C(),c(),e.contains(document.activeElement)&&a.current?.focus()};return e.addEventListener(Z,t),()=>e.removeEventListener(Z,t)}},[p.isRootMenu,e.value,a,C,c]);let j=n.useMemo(()=>{let e=y().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),r=e.indexOf(p.previousValue),n=o===p.value,a=r===e.indexOf(o);if(!n&&!a)return x.current;let i=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(a&&-1!==t)return t>r?"to-start":"to-end"}return null})();return x.current=i,i},[p.previousValue,p.value,p.dir,y,o]);return(0,b.jsx)(ee,{asChild:!0,children:(0,b.jsx)(v.qW,{id:g,"aria-labelledby":h,"data-motion":j,"data-orientation":p.orientation,...f,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(Z,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(e)},onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{d();let t=e.target;p.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.target,r=y().some(e=>e.ref.current?.contains(t)),n=p.isRootMenu&&p.viewport?.contains(t);(r||n||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=en(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);eo(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():l.current?.focus()}}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{s.current=!0})})})}),J="NavigationMenuViewport";n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=!!M(J,e.__scopeNavigationMenu).value;return(0,b.jsx)(d.C,{present:r||o,children:(0,b.jsx)(Q,{...n,ref:t})})}).displayName=J;var Q=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:o,...a}=e,s=M(J,r),c=(0,u.s)(t,s.onViewportChange),f=I(q,e.__scopeNavigationMenu),[p,v]=n.useState(null),[m,w]=n.useState(null),h=p?p?.width+"px":void 0,g=p?p?.height+"px":void 0,y=!!s.value,x=y?s.value:s.previousValue;return ea(m,()=>{m&&v({width:m.offsetWidth,height:m.offsetHeight})}),(0,b.jsx)(l.sG.div,{"data-state":ei(y),"data-orientation":s.orientation,...a,ref:c,style:{pointerEvents:!y&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":g,...a.style},onPointerEnter:(0,i.mK)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,i.mK)(e.onPointerLeave,eu(s.onContentLeave)),children:Array.from(f.items).map(([e,{ref:t,forceMount:r,...n}])=>{let o=x===e;return(0,b.jsx)(d.C,{present:r||o,children:(0,b.jsx)(X,{...n,ref:(0,u.t)(t,e=>{o&&e&&w(e)})})},e)})})}),ee=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=M("FocusGroup",r);return(0,b.jsx)(j.Provider,{scope:r,children:(0,b.jsx)(j.Slot,{scope:r,children:(0,b.jsx)(l.sG.div,{dir:o.dir,...n,ref:t})})})}),et=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],er=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=E(r),a=M("FocusGroupItem",r);return(0,b.jsx)(j.ItemSlot,{scope:r,children:(0,b.jsx)(l.sG.button,{...n,ref:t,onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if(["Home","End",...et].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),et.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>eo(t)),e.preventDefault()}})})})});function en(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eo(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let r=(0,h.c)(t);(0,w.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function ei(e){return e?"open":"closed"}function el(e,t){return`${e}-trigger-${t}`}function es(e,t){return`${e}-content-${t}`}function eu(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}var ec=D,ed=L,ef=z,ep=H,ev=W},43062:function(e,t,r){!function(e,t){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(t);function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},a=function(e){function t(){for(var t,r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).state=o,t.resetErrorBoundary=function(){for(var e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,n(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var a=t.prototype;return a.reset=function(){this.setState(o)},a.componentDidCatch=function(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)},a.componentDidUpdate=function(e,t){var r,n,o,a,i=this.state.error,l=this.props.resetKeys;null!==i&&null!==t.error&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(n=l)&&(n=[]),r.length!==n.length||r.some(function(e,t){return!Object.is(e,n[t])}))&&(null==(o=(a=this.props).onResetKeysChange)||o.call(a,e.resetKeys,l),this.reset())},a.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,o=t.FallbackComponent,a=t.fallback;if(null!==e){var i={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(a))return a;if("function"==typeof n)return n(i);if(o)return r.createElement(o,i);else throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(r.Component);e.ErrorBoundary=a,e.useErrorHandler=function(e){var t=r.useState(null),n=t[0],o=t[1];if(null!=e)throw e;if(null!=n)throw n;return o},e.withErrorBoundary=function(e,t){var n=function(n){return r.createElement(a,t,r.createElement(e,n))};return n.displayName="withErrorBoundary("+(e.displayName||e.name||"Unknown")+")",n},Object.defineProperty(e,"__esModule",{value:!0})}(t,r(14232))},59319:(e,t,r)=>{"use strict";r.d(t,{bL:()=>s});var n=r(14232),o=r(72288),a=r(37876),i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.span,{...e,ref:t,style:{...i,...e.style}}));l.displayName="VisuallyHidden";var s=l},73990:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(14232);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])}},74100:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ei,Y9:()=>eo,q7:()=>en,bL:()=>er,l9:()=>ea});var n=r(14232),o=r(35602),a=r(85513),i=r(45308),l=r(78782),s=r(32608),u=r(72288),c=r(3211),d=r(73364),f=r(69084),p=r(37876),v="Collapsible",[m,w]=(0,o.A)(v),[h,g]=m(v),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:a,disabled:i,onOpenChange:l,...c}=e,[d,m]=(0,s.i)({prop:o,defaultProp:a??!1,onChange:l,caller:v});return(0,p.jsx)(h,{scope:r,disabled:i,contentId:(0,f.B)(),open:d,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,p.jsx)(u.sG.div,{"data-state":E(d),"data-disabled":i?"":void 0,...c,ref:t})})});b.displayName=v;var y="CollapsibleTrigger",x=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,o=g(y,r);return(0,p.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":E(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,l.mK)(e.onClick,o.onOpenToggle)})});x.displayName=y;var R="CollapsibleContent",C=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=g(R,e.__scopeCollapsible);return(0,p.jsx)(d.C,{present:r||o.open,children:({present:e})=>(0,p.jsx)(j,{...n,ref:t,present:e})})});C.displayName=R;var j=n.forwardRef((e,t)=>
1{let{__scopeCollapsible:r,present:o,children:a,...l}=e,s=g(R,r),[d,f]=n.useState(o),v=n.useRef(null),m=(0,i.s)(t,v),w=n.useRef(0),h=w.current,b=n.useRef(0),y=b.current,x=s.open||d,C=n.useRef(x),j=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=v.current;if(e){j.current=j.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();w.current=t.height,b.current=t.width,C.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),f(o)}},[s.open,o]),(0,p.jsx)(u.sG.div,{"data-state":E(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...l,ref:m,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:x&&a})});function E(e){return e?"open":"closed"}var N=r(82088),k="Accordion",T=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A,M,_]=(0,a.N)(k),[I,D]=(0,o.A)(k,[_,w]),P=w(),K=n.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,p.jsx)(A.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,p.jsx)(z,{...n,ref:t}):(0,p.jsx)(G,{...n,ref:t})})});K.displayName=k;var[O,L]=I(k),[S,F]=I(k,{collapsible:!1}),G=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:a=()=>{},collapsible:i=!1,...l}=e,[u,c]=(0,s.i)({prop:r,defaultProp:o??"",onChange:a,caller:k});return(0,p.jsx)(O,{scope:e.__scopeAccordion,value:n.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:n.useCallback(()=>i&&c(""),[i,c]),children:(0,p.jsx)(S,{scope:e.__scopeAccordion,collapsible:i,children:(0,p.jsx)(V,{...l,ref:t})})})}),z=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:a=()=>{},...i}=e,[l,u]=(0,s.i)({prop:r,defaultProp:o??[],onChange:a,caller:k}),c=n.useCallback(e=>u((t=[])=>[...t,e]),[u]),d=n.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,p.jsx)(O,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:d,children:(0,p.jsx)(S,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(V,{...i,ref:t})})})}),[B,H]=I(k),V=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:o,dir:a,orientation:s="vertical",...c}=e,d=n.useRef(null),f=(0,i.s)(d,t),v=M(r),m="ltr"===(0,N.jH)(a),w=(0,l.mK)(e.onKeyDown,e=>{if(!T.includes(e.key))return;let t=e.target,r=v().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===n)return;e.preventDefault();let a=n,i=o-1,l=()=>{(a=n+1)>i&&(a=0)},u=()=>{(a=n-1)<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===s&&(m?l():u());break;case"ArrowDown":"vertical"===s&&l();break;case"ArrowLeft":"horizontal"===s&&(m?u():l());break;case"ArrowUp":"vertical"===s&&u()}let c=a%o;r[c].ref.current?.focus()});return(0,p.jsx)(B,{scope:r,disabled:o,direction:a,orientation:s,children:(0,p.jsx)(A.Slot,{scope:r,children:(0,p.jsx)(u.sG.div,{...c,"data-orientation":s,ref:f,onKeyDown:o?void 0:w})})})}),U="AccordionItem",[$,q]=I(U),W=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...o}=e,a=H(U,r),i=L(U,r),l=P(r),s=(0,f.B)(),u=n&&i.value.includes(n)||!1,c=a.disabled||e.disabled;return(0,p.jsx)($,{scope:r,open:u,disabled:c,triggerId:s,children:(0,p.jsx)(b,{"data-orientation":a.orientation,"data-state":et(u),...l,...o,ref:t,disabled:c,open:u,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});W.displayName=U;var Y="AccordionHeader",Z=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=H(k,r),a=q(Y,r);return(0,p.jsx)(u.sG.h3,{"data-orientation":o.orientation,"data-state":et(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});Z.displayName=Y;var X="AccordionTrigger",J=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=H(k,r),a=q(X,r),i=F(X,r),l=P(r);return(0,p.jsx)(A.ItemSlot,{scope:r,children:(0,p.jsx)(x,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...n,ref:t})})});J.displayName=X;var Q="AccordionContent",ee=n.forwardRef((e,t)=>
1{let{__scopeAccordion:r,...n}=e,o=H(k,r),a=q(Q,r),i=P(r);return(0,p.jsx)(C,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var er=K,en=W,eo=Z,ea=J,ei=ee},82088:(e,t,r)=>{"use strict";r.d(t,{jH:()=>a});var n=r(14232);r(37876);var o=n.createContext(void 0);function a(e){let t=n.useContext(o);return e||t||"ltr"}},85513:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var n=r(14232),o=r(35602),a=r(45308),i=r(83737),l=r(37876);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),a=n.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=(0,i.TL)(f),v=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(f,r),i=(0,a.s)(t,o.collectionRef);return(0,l.jsx)(p,{ref:i,children:n})});v.displayName=f;let m=e+"CollectionItemSlot",w="data-radix-collection-item",h=(0,i.TL)(m),g=n.forwardRef((e,t)=>{let{scope:r,children:o,...i}=e,s=n.useRef(null),u=(0,a.s)(t,s),d=c(m,r);return n.useEffect(()=>(d.itemMap.set(s,{ref:s,...i}),()=>void d.itemMap.delete(s))),(0,l.jsx)(h,{...{[w]:""},ref:u,children:o})});return g.displayName=m,[{Provider:d,Slot:v,ItemSlot:g},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(`[${w}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}}}]);
2//# sourceMappingURL=319-7b55c0233f273b0c.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.