PageSourceSearch

https://www.salesmagic.com/_next/static/chunks/8877-2d419633eb03b9cd.js

js salesmagic.com collected 2026-10-09 22:59:24 UTC 24,426 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8877],{32400:function(e,t,l){l.d(t,{G:function(){return i}});var n=l(2265),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},3960:function(e,t,l){l.d(t,{Jv:function(){return o},q6:function(){return r}});var n=l(18064),i=l(27650);function r(e){var t;let l,r;let s=(t=(0,n.r3)(e),(r=null==(l=(0,i.vY)(t))?void 0:l.getAttribute("aria-activedescendant"))&&t.getElementById(r)||l);s!==e&&(s&&(s.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))),e&&o(e,s))}function o(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}},46468:function(e,t,l){l.d(t,{X:function(){return r}});var n=l(25311);let i=new Map;function r(e){let{locale:t}=(0,n.j)(),l=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(i.has(l))return i.get(l);let r=new Intl.Collator(t,e);return i.set(l,r),r}},52808:function(e,t,l){l.d(t,{k:function(){return i}});var n=l(6832);class i{getItemRect(e){let t=this.ref.current;if(!t)return null;let l=null!=e?(0,n.D0)(this.ref,e):null;if(!l)return null;let i=t.getBoundingClientRect(),r=l.getBoundingClientRect();return{x:r.left-i.left+t.scrollLeft,y:r.top-i.top+t.scrollTop,width:r.width,height:r.height}}getContentSize(){var e,t;let l=this.ref.current;return{width:null!==(e=null==l?void 0:l.scrollWidth)&&void 0!==e?e:0,height:null!==(t=null==l?void 0:l.scrollHeight)&&void 0!==t?t:0}}getVisibleRect(){var e,t,l,n;let i=this.ref.current;return{x:null!==(e=null==i?void 0:i.scrollLeft)&&void 0!==e?e:0,y:null!==(t=null==i?void 0:i.scrollTop)&&void 0!==t?t:0,width:null!==(l=null==i?void 0:i.offsetWidth)&&void 0!==l?l:0,height:null!==(n=null==i?void 0:i.offsetHeight)&&void 0!==n?n:0}}constructor(e){this.ref=e}}},34272:function(e,t,l){l.d(t,{g:function(){return w}});var n=l(6832),i=l(4300),r=l(18311),o=l(14234),s=l(40852),u=l(8047),c=l(98536),a=l(21809),d=l(36582),f=l(2265);function y(e,t){let l=(0,f.useRef)(!0),n=(0,f.useRef)(null);(0,d.b)(()=>(l.current=!0,()=>{l.current=!1}),[]),(0,d.b)(()=>{l.current?l.current=!1:(!n.current||t.some((e,t)=>!Object.is(e,n[t])))&&e(),n.current=t},t)}var h=l(5376),v=l(54887),g=l(45246),p=l(36105),K=l(50767),m=l(3960),S=l(25311);function w(e){let t,{selectionManager:l,keyboardDelegate:d,ref:w,autoFocus:b=!1,shouldFocusWrap:F=!1,disallowEmptySelection:k=!1,disallowSelectAll:E=!1,escapeKeyBehavior:I="clearSelection",selectOnFocus:C="replace"===l.selectionBehavior,disallowTypeAhead:M=!1,shouldUseVirtualFocus:D,allowsTabNavigation:x=!1,isVirtualized:A,scrollRef:T=w,linkBehavior:R="action"}=e,{direction:L}=(0,S.j)(),P=(0,r.tv)(),B=(0,f.useRef)({top:0,left:0});(0,u.z)(T,"scroll",A?void 0:()=>{var e,t,l,n;B.current={top:null!==(l=null===(e=T.current)||void 0===e?void 0:e.scrollTop)&&void 0!==l?l:0,left:null!==(n=null===(t=T.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==n?n:0}});let z=(0,f.useRef)(!1);(0,u.z)(w,"react-aria-focus",D?e=>{let{detail:t}=e;e.stopPropagation(),l.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&(z.current=!0)}:void 0);let N=(0,a.i)(()=>{var e,t;let n=null!==(t=null===(e=d.getFirstKey)||void 0===e?void 0:e.call(d))&&void 0!==t?t:null;null==n?((0,m.q6)(w.current),l.collection.size>0&&(z.current=!1)):(l.setFocusedKey(n),z.current=!1)});y(()=>{z.current&&N()},[l.collection,N]);let $=(0,a.i)(()=>{l.collection.size>0&&(z.current=!1)});y(()=>{$()},[l.focusedKey,$]),(0,u.z)(w,"react-aria-clear-focus",D?e=>{var t;e.stopPropagation(),l.setFocused(!1),(null===(t=e.detail)||void 0===t?void 0:t.clearFocusKey)&&l.setFocusedKey(null)}:void 0);let O=(0,f.useRef)(b),_=(0,f.useRef)(!1);(0,f.useEffect)(()=>{if(O.current){var e,t,n,i;let r=null;"first"===b&&(r=null!==(n=null===(e=d.getFirstKey)||void 0===e?void 0:e.call(d))&&void 0!==n?n:null),"last"===b&&(r=null!==(i=null===(t=d.getLastKey)||void 0===t?void 0:t.call(d))&&void 0!==i?i:null);let o=l.selectedKeys;if(o.size){for(let e of o)if(l.canSelectItem(e)){r=e;break}}l.setFocused(!0),l.setFocusedKey(r),null==r&&!D&&w.current&&(0,p.e)(w.current),l.collection.size>0&&(O.current=!1,_.current=!0)}});let V=(0,f.useRef)(l.focusedKey),Y=(0,f.useRef)(null);(0,f.useEffect)(()=>
1{if(l.isFocused&&null!=l.focusedKey&&(l.focusedKey!==V.current||_.current)&&T.current&&w.current){let e=(0,g.Jz)(),t=(0,n.D0)(w,l.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||_.current)&&(Y.current&&cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{T.current&&(0,c.z)(T.current,t)}),"virtual"!==e&&(0,c.G)(t,{containingElement:w.current}))}!D&&l.isFocused&&null==l.focusedKey&&null!=V.current&&w.current&&(0,p.e)(w.current),V.current=l.focusedKey,_.current=!1}),(0,f.useEffect)(()=>()=>{Y.current&&cancelAnimationFrame(Y.current)},[]),(0,u.z)(w,"react-aria-focus-scope-restore",e=>{e.preventDefault(),l.setFocused(!0)});let W={onKeyDown:e=>{var t,i,r,u,c,a,f,y,h,g,p,m,S;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(t=w.current)||void 0===t?void 0:t.contains(e.target)))return;let b=(t,i)=>{if(null!=t){if(l.isLink(t)&&"selection"===R&&C&&!(0,n.FJ)(e)){(0,v.flushSync)(()=>{l.setFocusedKey(t,i)});let r=(0,n.D0)(w,t),o=l.getItemProps(t);r&&P.open(r,e,o.href,o.routerOptions);return}l.setFocusedKey(t,i),l.isLink(t)&&"override"===R||(e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):C&&!(0,n.FJ)(e)&&l.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(d.getKeyBelow){let t=null!=l.focusedKey?null===(i=d.getKeyBelow)||void 0===i?void 0:i.call(d,l.focusedKey):null===(r=d.getFirstKey)||void 0===r?void 0:r.call(d);null==t&&F&&(t=null===(u=d.getFirstKey)||void 0===u?void 0:u.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),b(t))}break;case"ArrowUp":if(d.getKeyAbove){let t=null!=l.focusedKey?null===(c=d.getKeyAbove)||void 0===c?void 0:c.call(d,l.focusedKey):null===(a=d.getLastKey)||void 0===a?void 0:a.call(d);null==t&&F&&(t=null===(f=d.getLastKey)||void 0===f?void 0:f.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),b(t))}break;case"ArrowLeft":if(d.getKeyLeftOf){let t=null!=l.focusedKey?null===(y=d.getKeyLeftOf)||void 0===y?void 0:y.call(d,l.focusedKey):null;null==t&&F&&(t="rtl"===L?null===(h=d.getFirstKey)||void 0===h?void 0:h.call(d,l.focusedKey):null===(g=d.getLastKey)||void 0===g?void 0:g.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),b(t,"rtl"===L?"first":"last"))}break;case"ArrowRight":if(d.getKeyRightOf){let t=null!=l.focusedKey?null===(p=d.getKeyRightOf)||void 0===p?void 0:p.call(d,l.focusedKey):null;null==t&&F&&(t="rtl"===L?null===(m=d.getLastKey)||void 0===m?void 0:m.call(d,l.focusedKey):null===(S=d.getFirstKey)||void 0===S?void 0:S.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),b(t,"rtl"===L?"last":"first"))}break;case"Home":if(d.getFirstKey){if(null===l.focusedKey&&e.shiftKey)return;e.preventDefault();let t=d.getFirstKey(l.focusedKey,(0,o.y)(e));l.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):C&&l.replaceSelection(t))}break;case"End":if(d.getLastKey){if(null===l.focusedKey&&e.shiftKey)return;e.preventDefault();let t=d.getLastKey(l.focusedKey,(0,o.y)(e));l.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):C&&l.replaceSelection(t))}break;case"PageDown":if(d.getKeyPageBelow&&null!=l.focusedKey){let t=d.getKeyPageBelow(l.focusedKey);null!=t&&(e.preventDefault(),b(t))}break;case"PageUp":if(d.getKeyPageAbove&&null!=l.focusedKey){let t=d.getKeyPageAbove(l.focusedKey);null!=t&&(e.preventDefault(),b(t))}break;case"a":(0,o.y)(e)&&"multiple"===l.selectionMode&&!0!==E&&(e.preventDefault(),l.selectAll());break;case"Escape":"clearSelection"!==I||k||0===l.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),l.clearSelection());break;case"Tab":if(!x){if(e.shiftKey)w.current.focus();else{let e,t,l=(0,K.QL)(w.current,{tabbable:!0});do(t=l.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,s.A)(e)}}}},onFocus:e=>{if(l.isFocused){e.currentTarget.contains(e.target)||l.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(l.setFocused(!0),null==l.focusedKey){var t,i,r,o;let n=e=>{null!=e&&(l.setFocusedKey(e),C&&!l.isSelected(e)&&l.replaceSelection(e))},s=e.relatedTarget;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?n(null!==(r=l.lastSelectedKey)&&void 0!==r?r:null===(t=d.getLastKey)||void 0===t?void 0:t.call(d)):n(null!==(o=l.firstSelectedKey)&&void 0!==o?o:null===(i=d.getFirstKey)||void 0===i?void 0:i.call(d))}else!A&&T.current&&(T.current.scrollTop=B.current.top,T.current.scrollLeft=B.current.left);if(null!=l.focusedKey&&T.current){let e=(0,n.D0)(w,l.focusedKey);e instanceof HTMLElement&&(e.contains(document.activeElement)||D||(0,s.A)(e),"keyboard"===(0,g.Jz)()&&(0,c.G)(e,{containingElement:w.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||l.setFocused(!1)},onMouseDown(e){T.current===e.target&&e.preventDefault()}}
1,{typeSelectProps:H}=(0,i.i)({keyboardDelegate:d,selectionManager:l});M||(W=(0,h.d)(H,W)),D||(t=null==l.focusedKey?0:-1);let U=(0,n.Mm)(l.collection);return{collectionProps:(0,h.d)(W,{tabIndex:t,"data-collection":U})}}},4300:function(e,t,l){l.d(t,{i:function(){return i}});var n=l(2265);function i(e){let{keyboardDelegate:t,selectionManager:l,onTypeSelect:i}=e,r=(0,n.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var n;let o=1!==(n=e.key).length&&/^[A-Z]/i.test(n)?"":n;if(o&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)){if(" "!==o||!(r.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),r.search+=o,null!=t.getKeyForSearch){let e=t.getKeyForSearch(r.search,l.focusedKey);null==e&&(e=t.getKeyForSearch(r.search)),null!=e&&(l.setFocusedKey(e),i&&i(e))}clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},1e3)}}:void 0}}}},6832:function(e,t,l){l.d(t,{D0:function(){return o},FJ:function(){return r},Mm:function(){return u},Zx:function(){return c}});var n=l(65463),i=l(40641);function r(e){return(0,n.ad)()?e.altKey:e.ctrlKey}function o(e,t){var l,n;let i=`[data-key="${CSS.escape(String(t))}"]`,r=null===(l=e.current)||void 0===l?void 0:l.dataset.collection;return r&&(i=`[data-collection="${CSS.escape(r)}"]${i}`),null===(n=e.current)||void 0===n?void 0:n.querySelector(i)}let s=new WeakMap;function u(e){let t=(0,i.Me)();return s.set(e,t),t}function c(e){return s.get(e)}},14234:function(e,t,l){l.d(t,{y:function(){return i}});var n=l(65463);function i(e){return(0,n.V5)()?e.metaKey:e.ctrlKey}},98536:function(e,t,l){l.d(t,{z:function(){return i},G:function(){return o}});var n=l(25348);function i(e,t){let l=r(e,t,"left"),n=r(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:a,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:y,scrollPaddingLeft:h}=getComputedStyle(e),v=s+parseInt(a,10),g=u+parseInt(c,10),p=v+e.clientWidth,K=g+e.clientHeight,m=parseInt(d,10)||0,S=parseInt(y,10)||0,w=parseInt(f,10)||0,b=parseInt(h,10)||0;l<=s+b?s=l-parseInt(a,10)-b:l+i>p-w&&(s+=l+i-p+w),n<=g+m?u=n-parseInt(c,10)-m:n+o>K-S&&(u+=n+o-K+S),e.scrollLeft=s,e.scrollTop=u}function r(e,t,l){let n="left"===l?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}function o(e,t){if(e&&document.contains(e)){let u=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(u).overflow)for(let t of function(e,t){let l=[];for(;e&&e!==document.documentElement;)(0,n.a)(e,void 0)&&l.push(e),e=e.parentElement;return l}(e))i(t,e);else{var l,r,o,s;let{left:n,top:i}=e.getBoundingClientRect();null==e||null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();(Math.abs(n-u)>1||Math.abs(i-c)>1)&&(null==t||null===(o=t.containingElement)||void 0===o||null===(r=o.scrollIntoView)||void 0===r||r.call(o,{block:"center",inline:"center"}),null===(s=e.scrollIntoView)||void 0===s||s.call(e,{block:"nearest"}))}}}},8047:function(e,t,l){l.d(t,{z:function(){return r}});var n=l(21809),i=l(2265);function r(e,t,l,r){let o=(0,n.i)(l),s=null==l;(0,i.useEffect)(()=>{if(s||!e.current)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,s,o])}},63259:function(e,t,l){function n(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function i(e){return r(e,0)}function r(e,t){if(t<0)return;let l=0;for(let n of e){if(l===t)return n;l++}}function o(e){let t;for(let l of e)t=l;return t}function s(e,t,l){if(t.parentKey===l.parentKey)return t.index-l.index;let n=[...u(e,t),t],i=[...u(e,l),l],r=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==r?(t=n[r],l=i[r],t.index-l.index):n.findIndex(e=>e===l)>=0?1:(i.findIndex(e=>e===t),-1)}function u(e,t){let l=[],n=t;for(;(null==n?void 0:n.parentKey)!=null;)(n=e.getItem(n.parentKey))&&l.unshift(n);return l}l.d(t,{Em:function(){return r},_P:function(){return n},eg:function(){return s},l8:function(){return i},s:function(){return o}})},22603:function(e,t,l){l.d(t,{K:function(){return s}});var n=l(2265);class i{build(e,t){return this.context=t,r(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(n.isValidElement(t)&&t.type===n.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if("function"==typeof t){if(!l)throw Error("props.children was a function but props.items is missing");let e=0;for(let n of l)yield*this.getFullNode({value:n,index:e},{renderer:t}),e++}else{let e=[];
1n.Children.forEach(t,t=>{t&&e.push(t)});let l=0;for(let t of e)for(let e of this.getFullNode({element:t,index:l},{}))l++,yield e}}getKey(e,t,l,n){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${n}${t.key}`;let i=t.value;if(null!=i){var r;let e=null!==(r=i.key)&&void 0!==r?r:i.id;if(null==e)throw Error("No key found for item");return e}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,i){var s,u,c,a,d,f,y,h;if(n.isValidElement(e.element)&&e.element.type===n.Fragment){let r=[];n.Children.forEach(e.element.props.children,e=>{r.push(e)});let o=null!==(s=e.index)&&void 0!==s?s:0;for(let e of r)yield*this.getFullNode({element:e,index:o++},t,l,i);return}let v=e.element;if(!v&&e.value&&t&&t.renderer){let l=this.cache.get(e.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=e.index,l.parentKey=i?i.key:null,yield l;return}v=t.renderer(e.value)}if(n.isValidElement(v)){let n=v.type;if("function"!=typeof n&&"function"!=typeof n.getCollectionNode){let e=v.type;throw Error(`Unknown element <${e}> in collection.`)}let r=n.getCollectionNode(v.props,this.context),s=null!==(u=e.index)&&void 0!==u?u:0,y=r.next();for(;!y.done&&y.value;){let n=y.value;e.index=s;let u=null!==(c=n.key)&&void 0!==c?c:null;null==u&&(u=n.element?null:this.getKey(v,e,t,l));let h=[...this.getFullNode({...n,key:u,index:s,wrapper:function(e,t){return e&&t?l=>e(t(l)):e||t||void 0}(e.wrapper,n.wrapper)},this.getChildState(t,n),l?`${l}${v.key}`:v.key,i)];for(let t of h){if(t.value=null!==(d=null!==(a=n.value)&&void 0!==a?a:e.value)&&void 0!==d?d:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${o(t.type)}> in <${o(null!==(f=null==i?void 0:i.type)&&void 0!==f?f:"unknown parent type")}>. Only <${o(e.type)}> is supported.`);s++,yield t}y=r.next(h)}return}if(null==e.key||null==e.type)return;let g=this,p={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:null!==(y=e.value)&&void 0!==y?y:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:null!==(h=e.textValue)&&void 0!==h?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:r(function*(){if(!e.hasChildNodes||!e.childNodes)return;let l=0;for(let n of e.childNodes())for(let e of(null!=n.key&&(n.key=`${p.key}${n.key}`),g.getFullNode({...n,index:l},g.getChildState(t,n),p.key,p)))l++,yield e})};yield p}constructor(){this.cache=new WeakMap}}function r(e){let t=[],l=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let n of(l||(l=e()),l))t.push(n),yield n}}}function o(e){return e[0].toUpperCase()+e.slice(1)}function s(e,t,l){let r=(0,n.useMemo)(()=>new i,[]),{children:o,items:s,collection:u}=e;return(0,n.useMemo)(()=>u||t(r.build({children:o,items:s},l)),[r,o,s,u,l,t])}},61801:function(e,t,l){l.d(t,{Y:function(){return n}});class n extends Set{constructor(e,t,l){super(e),e instanceof n?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=l?l:e.currentKey):(this.anchorKey=null!=t?t:null,this.currentKey=null!=l?l:null)}}},47834:function(e,t,l){l.d(t,{Z:function(){return r}});var n=l(61801),i=l(63259);class r{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;
1if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let l=this.collection.getItem(e);(!t||l&&0>(0,i.eg)(this.collection,l,t))&&(t=l)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let l=this.collection.getItem(e);(!t||l&&(0,i.eg)(this.collection,l,t)>0)&&(t=l)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode){this.replaceSelection(e);return}let l=this.getKey(e);if(null!=l){if("all"===this.state.selectedKeys)t=new n.Y([l],l,l);else{var i,r;let e=this.state.selectedKeys,o=null!==(i=e.anchorKey)&&void 0!==i?i:l;for(let i of(t=new n.Y(e,o,l),this.getKeyRange(o,null!==(r=e.currentKey)&&void 0!==r?r:l)))t.delete(i);for(let e of this.getKeyRange(l,o))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?0>=(0,i.eg)(this.collection,l,n)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(null===(l=this.layoutDelegate)||void 0===l?void 0:l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(i),i===t)return n;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(null==t)return;let l=new n.Y("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),this.disallowEmptySelection&&0===l.size||this.state.setSelectedKeys(l)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let l=this.canSelectItem(t)?new n.Y([t],t,t):new n.Y;this.state.setSelectedKeys(l)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new n.Y;for(let l of e){let e=this.getKey(l);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;null!=l;){if(this.canSelectItem(l)){var n,r;let o=this.collection.getItem(l);(null==o?void 0:o.type)==="item"&&e.push(l),(null==o?void 0:o.hasChildNodes)&&(this.allowsCellSelection||"item"!==o.type)&&t(null!==(r=null===(n=(0,i.l8)((0,i._P)(o,this.collection)))||void 0===n?void 0:n.key)&&void 0!==r?r:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new n.Y)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!!l&&(null==l||null===(t=l.props)||void 0===t||!t.isDisabled)&&("cell"!==l.type||!!this.allowsCellSelection)}isDisabled(e){var t,l;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(l=this.collection.getItem(e))||void 0===l?void 0:null===(t=l.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,l;return!!(null===(l=this.collection.getItem(e))||void 0===l?void 0:null===(t=l.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}withCollection(e){return new r(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){var n;this.collection=e,this.state=t,this.allowsCellSelection=null!==(n=null==l?void 0:l.allowsCellSelection)&&void 0!==n&&n,this._isSelectAll=null,this.layoutDelegate=(null==l?void 0:l.layoutDelegate)||null}}},88970:function(e,t,l){l.d(t,{q:function(){return o}});var n=l(61801),i=l(45614),r=l(2265);function o(e){let{selectionMode:t="none",disallowEmptySelection:l=!1,allowDuplicateSelectionEvents:o,selectionBehavior:u="toggle",disabledBehavior:c="all"}=e,a=(0,r.useRef)(!1),[,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),y=(0,r.useRef)(null),[,h]=(0,r.useState)(null),v=(0,r.useMemo)(()=>s(e.selectedKeys),[e.selectedKeys]),g=(0,r.useMemo)(()=>s(e.defaultSelectedKeys,new n.Y),[e.defaultSelectedKeys]),[p,K]=(0,i.z)(v,g,e.onSelectionChange),m=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,w]=(0,r.useState)(u);"replace"===u&&"toggle"===S&&"object"==typeof p&&0===p.size&&w("replace");let b=(0,r.useRef)(u);return(0,r.useEffect)(()=>{u!==b.current&&(w(u),b.current=u)},[u]),{selectionMode:t,disallowEmptySelection:l,selectionBehavior:S,setSelectionBehavior:w,get isFocused(){return a.current},setFocused(e){a.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return y.current},setFocusedKey(e,t="first"){f.current=e,y.current=t,h(e)},selectedKeys:p,setSelectedKeys(e){(o||!function(e,t){if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;return!0}(e,p))&&K(e)},disabledKeys:m,disabledBehavior:c}}function s(e,t){return e?"all"===e?"all":new n.Y(e):t}}}]);

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.