@theroutingcompany/components 0.0.26-alpha.10 → 0.0.26-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1887,7 +1887,7 @@ object-assign
1887
1887
  `,m9=P(ve.Edit)`
1888
1888
  display: none !important;
1889
1889
  position: absolute;
1890
- `,Gy=({children:e,placeholder:t,defaultValue:r="",minWidth:n,hideIcon:o,fullWidth:a,textAlign:i="left",p:s,...c})=>{const[d,u]=l.useState(!1),[f,p]=l.useState(!1),h=Ho(c,zn.propNames??[]),b=Ho(c,ja.propNames??[]),g=l.useCallback(()=>{p(!f)},[f]),v=l.useCallback(_=>{console.log(_),console.log("save")},[]);if(f)return w(rc,{fullWidth:!0,right:w(sn,{ml:m.spacing_100,children:w(Hy,{onClick:v,disabled:d,children:d?w(ve.Loop,{}):w(ve.Check,{})})}),children:e});const y={p:s,minWidth:n,fullWidth:a,textAlign:i,...h,...b};return re(p9,{onClick:g,...y,"data-id":c["data-id"],children:[r||w(f9,{children:t}),!o&&w(m9,{})]})};Gy.displayName="InlineEdit";function Yy(e){return null}Yy.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:a}=t,i=t.title||t.children,s=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!s&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:i,textValue:s,"aria-label":t["aria-label"],hasChildNodes:h9(t),*childNodes(){if(n)for(let c of n)yield{type:"item",value:c};else if(o){let c=[];l.Children.forEach(a,d=>{c.push({type:"item",element:d})}),yield*c}}}};function h9(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&l.Children.count(e.children)>0)}let Di=Yy;function qy(e){return null}qy.getCollectionNode=function*(t){let{children:r,title:n,items:o}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:n,"aria-label":t["aria-label"],*childNodes(){if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let a of o)yield{type:"item",value:a,renderer:r}}else{let a=[];l.Children.forEach(r,i=>{a.push({type:"item",element:i})}),yield*a}}}};let Ac=qy;class b9{build(t,r){return this.context=r,Zy(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:r})}else{let o=[];l.Children.forEach(r,i=>{o.push(i)});let a=0;for(let i of o){let s=this.getFullNode({element:i,index:a},{});for(let c of s)a++,yield c}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let a=r.value;if(a!=null){var i;let s=(i=a.key)!==null&&i!==void 0?i:a.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){let a=t.element;if(!a&&t.value&&r&&r.renderer){let c=this.cache.get(t.value);if(c&&(!c.shouldInvalidate||!c.shouldInvalidate(this.context))){c.index=t.index,c.parentKey=o?o.key:null,yield c;return}a=r.renderer(t.value)}if(l.isValidElement(a)){let c=a.type;if(typeof c!="function"&&typeof c.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let d=c.getCollectionNode(a.props,this.context),u=t.index,f=d.next();for(;!f.done&&f.value;){let p=f.value;t.index=u;let h=p.key;h||(h=p.element?null:this.getKey(a,t,r,n));let g=[...this.getFullNode({...p,key:h,index:u,wrapper:g9(t.wrapper,p.wrapper)},this.getChildState(r,p),n?`${n}${a.key}`:a.key,o)];for(let v of g){if(v.value=p.value||t.value,v.value&&this.cache.set(v.value,v),t.type&&v.type!==t.type)throw new Error(`Unsupported type <${Mc(v.type)}> in <${Mc(o.type)}>. Only <${Mc(t.type)}> is supported.`);u++,yield v}f=d.next(g)}return}if(t.key==null)return;let i=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Zy(function*(){if(!t.hasChildNodes)return;let c=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${s.key}${d.key}`),d.index=c;let u=i.getFullNode(d,i.getChildState(r,d),s.key,s);for(let f of u)c++,yield f}})};yield s}constructor(){Me(this,"cache",new WeakMap)}}function Zy(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function g9(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Mc(e){return e[0].toUpperCase()+e.slice(1)}function v9(e,t,r){let n=l.useMemo(()=>new b9,[]),{children:o,items:a,collection:i}=e;return l.useMemo(()=>{if(i)return i;let c=n.build({children:o,items:a},r);return t(c)},[n,o,a,i,r,t])}function Jy(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function y9(e){return $9(e,0)}function $9(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function Oc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=Xy(e,t),o=Xy(e,r),a=n.slice(0,o.length).findIndex((i,s)=>i!==o[s]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):-1}function Xy(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}const Qy=new WeakMap;function _9(e){let t=Qy.get(e);if(t!=null)return t;t=0;let r=n=>{for(let o of n)o.type==="section"?r(Jy(o,e)):t++};return r(e),Qy.set(e,t),t}function e$(e){return aE()?e.altKey:e.ctrlKey}function yn(e){return $r()?e.metaKey:e.ctrlKey}const x9=1e3;function Nc(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=l.useRef({search:"",timeout:null}).current,a=i=>{let s=w9(i.key);if(!s||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))return;s===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=s;let c=t.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=t.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},x9)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function w9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function D9(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:s=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:u,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=n}=e,{direction:b}=Le(),g=S=>{if(S.altKey&&S.key==="Tab"&&S.preventDefault(),!n.current.contains(S.target))return;const A=(K,q)=>{K!=null&&(t.setFocusedKey(K,q),S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):c&&!e$(S)&&t.replaceSelection(K))};switch(S.key){case"ArrowDown":if(r.getKeyBelow){var M,R;S.preventDefault();let K=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r);K==null&&a&&(K=(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey)),A(K)}break;case"ArrowUp":if(r.getKeyAbove){var T,N;S.preventDefault();let K=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(T=r.getLastKey)===null||T===void 0?void 0:T.call(r);K==null&&a&&(K=(N=r.getLastKey)===null||N===void 0?void 0:N.call(r,t.focusedKey)),A(K)}break;case"ArrowLeft":if(r.getKeyLeftOf){var D,I;S.preventDefault();let K=r.getKeyLeftOf(t.focusedKey);K==null&&a&&(K=b==="rtl"?(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r,t.focusedKey):(I=r.getLastKey)===null||I===void 0?void 0:I.call(r,t.focusedKey)),A(K,b==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,W;S.preventDefault();let K=r.getKeyRightOf(t.focusedKey);K==null&&a&&(K=b==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey):(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,t.focusedKey)),A(K,b==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){S.preventDefault();let K=r.getFirstKey(t.focusedKey,yn(S));t.setFocusedKey(K),yn(S)&&S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):c&&t.replaceSelection(K)}break;case"End":if(r.getLastKey){S.preventDefault();let K=r.getLastKey(t.focusedKey,yn(S));t.setFocusedKey(K),yn(S)&&S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):c&&t.replaceSelection(K)}break;case"PageDown":if(r.getKeyPageBelow){S.preventDefault();let K=r.getKeyPageBelow(t.focusedKey);A(K)}break;case"PageUp":if(r.getKeyPageAbove){S.preventDefault();let K=r.getKeyPageAbove(t.focusedKey);A(K)}break;case"a":yn(S)&&t.selectionMode==="multiple"&&s!==!0&&(S.preventDefault(),t.selectAll());break;case"Escape":S.preventDefault(),i||t.clearSelection();break;case"Tab":if(!f){if(S.shiftKey)n.current.focus();else{let K=Ge(n.current,{tabbable:!0}),q,B;do B=K.lastChild(),B&&(q=B);while(B);q&&!q.contains(document.activeElement)&&Nt(q)}break}}},v=l.useRef({top:0,left:0});er(h,"scroll",p?null:()=>{v.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let y=S=>{if(t.isFocused){S.currentTarget.contains(S.target)||t.setFocused(!1);return}if(S.currentTarget.contains(S.target)){if(t.setFocused(!0),t.focusedKey==null){let R=N=>{N!=null&&(t.setFocusedKey(N),c&&t.replaceSelection(N))},T=S.relatedTarget;var A,M;T&&S.currentTarget.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?R((A=t.lastSelectedKey)!==null&&A!==void 0?A:r.getLastKey()):R((M=t.firstSelectedKey)!==null&&M!==void 0?M:r.getFirstKey())}else p||(h.current.scrollTop=v.current.top,h.current.scrollLeft=v.current.left);if(!p&&t.focusedKey!=null){let R=h.current.querySelector(`[data-key="${t.focusedKey}"]`);R&&(Nt(R),Is(h.current,R))}}},_=S=>{S.currentTarget.contains(S.relatedTarget)||t.setFocused(!1)};const x=l.useRef(o);l.useEffect(()=>{if(x.current){let S=null;o==="first"&&(S=r.getFirstKey()),o==="last"&&(S=r.getLastKey());let A=t.selectedKeys;A.size&&(S=A.values().next().value),t.setFocused(!0),t.setFocusedKey(S),S==null&&!u&&ya(n.current)}x.current=!1},[]),l.useEffect(()=>{let S=Rs();if(!p&&t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let A=h.current.querySelector(`[data-key="${t.focusedKey}"]`);A&&(Is(h.current,A),S==="keyboard"&&As(A,{containingElement:n.current}))}},[p,h,t.focusedKey,t.isFocused,n]);let $={onKeyDown:g,onFocus:y,onBlur:_,onMouseDown(S){h.current===S.target&&S.preventDefault()}},{typeSelectProps:k}=Nc({keyboardDelegate:r,selectionManager:t});d||($=fe(k,$));let O;return u||(O=t.focusedKey==null?0:-1),{collectionProps:{...$,tabIndex:O}}}function S9(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:o,isVirtualized:a,shouldUseVirtualFocus:i,focus:s,isDisabled:c,onAction:d,allowsDifferentPressOrigin:u}=e,f=N=>{if(N.pointerType==="keyboard"&&e$(N))t.toggleSelection(r);else{if(t.selectionMode==="none")return;t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):N&&N.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||N&&(yn(N)||N.pointerType==="touch"||N.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};l.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!i&&(s?s():document.activeElement!==n.current&&ya(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),c=c||t.isDisabled(r);let p={};!i&&!c?p={tabIndex:r===t.focusedKey?0:-1,onFocus(N){N.target===n.current&&t.setFocusedKey(r)}}:c&&(p.onMouseDown=N=>{N.preventDefault()});let h=!c&&t.canSelectItem(r),b=d&&!c,g=b&&(t.selectionBehavior==="replace"?!h:t.isEmpty),v=b&&h&&t.selectionBehavior==="replace",y=g||v,_=l.useRef(null),x=y&&h,$=l.useRef(!1),k=l.useRef(!1),O={};o?(O.onPressStart=N=>{_.current=N.pointerType,$.current=x,N.pointerType==="keyboard"&&(!y||r$())&&f(N)},u?(O.onPressUp=N=>{N.pointerType!=="keyboard"&&f(N)},O.onPress=g?()=>d():null):O.onPress=N=>{if(g||v&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!t$())return;d()}else N.pointerType!=="keyboard"&&f(N)}):(O.onPressStart=N=>{_.current=N.pointerType,$.current=x,k.current=g,(N.pointerType==="mouse"&&!g||N.pointerType==="keyboard"&&(!d||r$()))&&f(N)},O.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&y&&t$()||N.pointerType==="mouse"&&k.current)&&(y?d():f(N))}),a||(p["data-key"]=r),O.preventFocusOnPress=i;let{pressProps:S,isPressed:A}=_r(O),M=v?N=>{_.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),d())}:void 0,{longPressProps:R}=cp({isDisabled:!x,onLongPress(N){N.pointerType==="touch"&&(f(N),t.setSelectionBehavior("toggle"))}});return{itemProps:fe(p,h||g?S:{},x?R:{},{onDoubleClick:M,onDragStartCapture:N=>{_.current==="touch"&&$.current&&N.preventDefault()}}),isPressed:A,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:c,allowsSelection:h,hasAction:y}}function t$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function r$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class zc{getKeyBelow(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getKeyAbove(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getKeyRightOf(t){return this.orientation==="horizontal"?this.direction==="rtl"?this.getKeyAbove(t):this.getKeyBelow(t):null}getKeyLeftOf(t){return this.orientation==="horizontal"?this.direction==="rtl"?this.getKeyBelow(t):this.getKeyAbove(t):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!da(r))return this.getFirstKey();let o=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-r.scrollLeft,s=Math.max(0,a.x-i+a.width-o.width);for(;n&&a.x-i>s;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}else{let i=o.y-r.scrollTop,s=Math.max(0,a.y-i+a.height-o.height);for(;n&&a.y-i>s;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!da(r))return this.getLastKey();let o=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-r.scrollLeft,s=Math.min(r.scrollWidth,a.x-i-a.width+o.width);for(;n&&a.x-i<s;)t=this.getKeyBelow(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}else{let i=o.y-r.scrollTop,s=Math.min(r.scrollHeight,a.y-i-a.height+o.height);for(;n&&a.y-i<s;)t=this.getKeyBelow(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let a=n.getItem(o),i=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(i,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3]}}function E9(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,autoFocus:i,shouldFocusWrap:s,isVirtualized:c,disallowEmptySelection:d,selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:f,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,b=Ba({usage:"search",sensitivity:"base"}),g=t.disabledBehavior,v=l.useMemo(()=>a||new zc(r,g==="selection"?new Set:n,o,b),[a,r,n,o,b,g]),{collectionProps:y}=D9({ref:o,selectionManager:t,keyboardDelegate:v,autoFocus:i,shouldFocusWrap:s,disallowEmptySelection:d,selectOnFocus:u,disallowTypeAhead:f,shouldUseVirtualFocus:p,allowsTabNavigation:h,isVirtualized:c,scrollRef:o});return{listProps:y}}const Fc=new WeakMap;function P9(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function k9(e,t){let r=Fc.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${P9(t)}`}function n$(e,t,r){let n=Dt(e,{labelable:!0}),{listProps:o}=E9({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys}),{focusWithinProps:a}=tn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),i=Xe(e.id);Fc.set(t,{id:i,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:s,fieldProps:c}=lb({...e,id:i,labelElementType:"span"});return{labelProps:s,listBoxProps:fe(n,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...fe(c,o)})}}function o$(e,t,r){let{key:n}=e,o=Fc.get(t);var a;let i=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(n);var s;let c=(s=e.isSelected)!==null&&s!==void 0?s:t.selectionManager.isSelected(n);var d;let u=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:o==null?void 0:o.shouldSelectOnPressUp;var f;let p=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:o==null?void 0:o.shouldFocusOnHover;var h;let b=(h=e.shouldUseVirtualFocus)!==null&&h!==void 0?h:o==null?void 0:o.shouldUseVirtualFocus;var g;let v=(g=e.isVirtualized)!==null&&g!==void 0?g:o==null?void 0:o.isVirtualized,y=Wn(),_=Wn(),x={role:"option","aria-disabled":i||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};if($r()&&iE()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=y,x["aria-describedby"]=_),v){var $;let T=Number(($=t.collection.getItem(n))===null||$===void 0?void 0:$.index);x["aria-posinset"]=Number.isNaN(T)?void 0:T+1,x["aria-setsize"]=_9(t.collection)}let{itemProps:k,isPressed:O,isFocused:S,hasAction:A,allowsSelection:M}=S9({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&p,isVirtualized:v,shouldUseVirtualFocus:b,isDisabled:i,onAction:o!=null&&o.onAction?()=>{var T;return o==null||(T=o.onAction)===null||T===void 0?void 0:T.call(o,n)}:void 0}),{hoverProps:R}=wE({isDisabled:i||!p,onHoverStart(){ba()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n))}});return{optionProps:{...x,...fe(k,R),id:k9(t,n)},labelProps:{id:y},descriptionProps:{id:_},isFocused:S,isFocusVisible:S&&ba(),isSelected:c,isDisabled:i,isPressed:O,allowsSelection:M,hasAction:A}}const a$=P.ul`
1890
+ `,Gy=({children:e,placeholder:t,defaultValue:r="",minWidth:n,hideIcon:o,fullWidth:a,textAlign:i="left",p:s,onChange:c,...d})=>{const[u,f]=l.useState(!1),[p,h]=l.useState(!1),b=Ho(d,zn.propNames??[]),g=Ho(d,ja.propNames??[]),v=l.useCallback(()=>{h(!p)},[p]),y=l.useCallback(x=>{c(),h(!1)},[c]);if(p)return w(rc,{fullWidth:!0,right:w(sn,{ml:m.spacing_100,children:w(Hy,{onClick:y,disabled:u,children:u?w(ve.Loop,{}):w(ve.Check,{})})}),children:e});const _={p:s,minWidth:n,fullWidth:a,textAlign:i,...b,...g};return re(p9,{onClick:v,..._,"data-id":d["data-id"],children:[r||w(f9,{children:t}),!o&&w(m9,{})]})};Gy.displayName="InlineEdit";function Yy(e){return null}Yy.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:a}=t,i=t.title||t.children,s=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!s&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:i,textValue:s,"aria-label":t["aria-label"],hasChildNodes:h9(t),*childNodes(){if(n)for(let c of n)yield{type:"item",value:c};else if(o){let c=[];l.Children.forEach(a,d=>{c.push({type:"item",element:d})}),yield*c}}}};function h9(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&l.Children.count(e.children)>0)}let Di=Yy;function qy(e){return null}qy.getCollectionNode=function*(t){let{children:r,title:n,items:o}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:n,"aria-label":t["aria-label"],*childNodes(){if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let a of o)yield{type:"item",value:a,renderer:r}}else{let a=[];l.Children.forEach(r,i=>{a.push({type:"item",element:i})}),yield*a}}}};let Ac=qy;class b9{build(t,r){return this.context=r,Zy(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:r})}else{let o=[];l.Children.forEach(r,i=>{o.push(i)});let a=0;for(let i of o){let s=this.getFullNode({element:i,index:a},{});for(let c of s)a++,yield c}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let a=r.value;if(a!=null){var i;let s=(i=a.key)!==null&&i!==void 0?i:a.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){let a=t.element;if(!a&&t.value&&r&&r.renderer){let c=this.cache.get(t.value);if(c&&(!c.shouldInvalidate||!c.shouldInvalidate(this.context))){c.index=t.index,c.parentKey=o?o.key:null,yield c;return}a=r.renderer(t.value)}if(l.isValidElement(a)){let c=a.type;if(typeof c!="function"&&typeof c.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let d=c.getCollectionNode(a.props,this.context),u=t.index,f=d.next();for(;!f.done&&f.value;){let p=f.value;t.index=u;let h=p.key;h||(h=p.element?null:this.getKey(a,t,r,n));let g=[...this.getFullNode({...p,key:h,index:u,wrapper:g9(t.wrapper,p.wrapper)},this.getChildState(r,p),n?`${n}${a.key}`:a.key,o)];for(let v of g){if(v.value=p.value||t.value,v.value&&this.cache.set(v.value,v),t.type&&v.type!==t.type)throw new Error(`Unsupported type <${Mc(v.type)}> in <${Mc(o.type)}>. Only <${Mc(t.type)}> is supported.`);u++,yield v}f=d.next(g)}return}if(t.key==null)return;let i=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Zy(function*(){if(!t.hasChildNodes)return;let c=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${s.key}${d.key}`),d.index=c;let u=i.getFullNode(d,i.getChildState(r,d),s.key,s);for(let f of u)c++,yield f}})};yield s}constructor(){Me(this,"cache",new WeakMap)}}function Zy(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function g9(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Mc(e){return e[0].toUpperCase()+e.slice(1)}function v9(e,t,r){let n=l.useMemo(()=>new b9,[]),{children:o,items:a,collection:i}=e;return l.useMemo(()=>{if(i)return i;let c=n.build({children:o,items:a},r);return t(c)},[n,o,a,i,r,t])}function Jy(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function y9(e){return $9(e,0)}function $9(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function Oc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=Xy(e,t),o=Xy(e,r),a=n.slice(0,o.length).findIndex((i,s)=>i!==o[s]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):-1}function Xy(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}const Qy=new WeakMap;function _9(e){let t=Qy.get(e);if(t!=null)return t;t=0;let r=n=>{for(let o of n)o.type==="section"?r(Jy(o,e)):t++};return r(e),Qy.set(e,t),t}function e$(e){return aE()?e.altKey:e.ctrlKey}function yn(e){return $r()?e.metaKey:e.ctrlKey}const x9=1e3;function Nc(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=l.useRef({search:"",timeout:null}).current,a=i=>{let s=w9(i.key);if(!s||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))return;s===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=s;let c=t.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=t.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},x9)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function w9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function D9(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:s=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:u,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=n}=e,{direction:b}=Le(),g=S=>{if(S.altKey&&S.key==="Tab"&&S.preventDefault(),!n.current.contains(S.target))return;const A=(K,q)=>{K!=null&&(t.setFocusedKey(K,q),S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):c&&!e$(S)&&t.replaceSelection(K))};switch(S.key){case"ArrowDown":if(r.getKeyBelow){var M,R;S.preventDefault();let K=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r);K==null&&a&&(K=(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey)),A(K)}break;case"ArrowUp":if(r.getKeyAbove){var T,N;S.preventDefault();let K=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(T=r.getLastKey)===null||T===void 0?void 0:T.call(r);K==null&&a&&(K=(N=r.getLastKey)===null||N===void 0?void 0:N.call(r,t.focusedKey)),A(K)}break;case"ArrowLeft":if(r.getKeyLeftOf){var D,I;S.preventDefault();let K=r.getKeyLeftOf(t.focusedKey);K==null&&a&&(K=b==="rtl"?(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r,t.focusedKey):(I=r.getLastKey)===null||I===void 0?void 0:I.call(r,t.focusedKey)),A(K,b==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var V,W;S.preventDefault();let K=r.getKeyRightOf(t.focusedKey);K==null&&a&&(K=b==="rtl"?(V=r.getLastKey)===null||V===void 0?void 0:V.call(r,t.focusedKey):(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,t.focusedKey)),A(K,b==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){S.preventDefault();let K=r.getFirstKey(t.focusedKey,yn(S));t.setFocusedKey(K),yn(S)&&S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):c&&t.replaceSelection(K)}break;case"End":if(r.getLastKey){S.preventDefault();let K=r.getLastKey(t.focusedKey,yn(S));t.setFocusedKey(K),yn(S)&&S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):c&&t.replaceSelection(K)}break;case"PageDown":if(r.getKeyPageBelow){S.preventDefault();let K=r.getKeyPageBelow(t.focusedKey);A(K)}break;case"PageUp":if(r.getKeyPageAbove){S.preventDefault();let K=r.getKeyPageAbove(t.focusedKey);A(K)}break;case"a":yn(S)&&t.selectionMode==="multiple"&&s!==!0&&(S.preventDefault(),t.selectAll());break;case"Escape":S.preventDefault(),i||t.clearSelection();break;case"Tab":if(!f){if(S.shiftKey)n.current.focus();else{let K=Ge(n.current,{tabbable:!0}),q,B;do B=K.lastChild(),B&&(q=B);while(B);q&&!q.contains(document.activeElement)&&Nt(q)}break}}},v=l.useRef({top:0,left:0});er(h,"scroll",p?null:()=>{v.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let y=S=>{if(t.isFocused){S.currentTarget.contains(S.target)||t.setFocused(!1);return}if(S.currentTarget.contains(S.target)){if(t.setFocused(!0),t.focusedKey==null){let R=N=>{N!=null&&(t.setFocusedKey(N),c&&t.replaceSelection(N))},T=S.relatedTarget;var A,M;T&&S.currentTarget.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?R((A=t.lastSelectedKey)!==null&&A!==void 0?A:r.getLastKey()):R((M=t.firstSelectedKey)!==null&&M!==void 0?M:r.getFirstKey())}else p||(h.current.scrollTop=v.current.top,h.current.scrollLeft=v.current.left);if(!p&&t.focusedKey!=null){let R=h.current.querySelector(`[data-key="${t.focusedKey}"]`);R&&(Nt(R),Is(h.current,R))}}},_=S=>{S.currentTarget.contains(S.relatedTarget)||t.setFocused(!1)};const x=l.useRef(o);l.useEffect(()=>{if(x.current){let S=null;o==="first"&&(S=r.getFirstKey()),o==="last"&&(S=r.getLastKey());let A=t.selectedKeys;A.size&&(S=A.values().next().value),t.setFocused(!0),t.setFocusedKey(S),S==null&&!u&&ya(n.current)}x.current=!1},[]),l.useEffect(()=>{let S=Rs();if(!p&&t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let A=h.current.querySelector(`[data-key="${t.focusedKey}"]`);A&&(Is(h.current,A),S==="keyboard"&&As(A,{containingElement:n.current}))}},[p,h,t.focusedKey,t.isFocused,n]);let $={onKeyDown:g,onFocus:y,onBlur:_,onMouseDown(S){h.current===S.target&&S.preventDefault()}},{typeSelectProps:k}=Nc({keyboardDelegate:r,selectionManager:t});d||($=fe(k,$));let O;return u||(O=t.focusedKey==null?0:-1),{collectionProps:{...$,tabIndex:O}}}function S9(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:o,isVirtualized:a,shouldUseVirtualFocus:i,focus:s,isDisabled:c,onAction:d,allowsDifferentPressOrigin:u}=e,f=N=>{if(N.pointerType==="keyboard"&&e$(N))t.toggleSelection(r);else{if(t.selectionMode==="none")return;t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):N&&N.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||N&&(yn(N)||N.pointerType==="touch"||N.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};l.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!i&&(s?s():document.activeElement!==n.current&&ya(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),c=c||t.isDisabled(r);let p={};!i&&!c?p={tabIndex:r===t.focusedKey?0:-1,onFocus(N){N.target===n.current&&t.setFocusedKey(r)}}:c&&(p.onMouseDown=N=>{N.preventDefault()});let h=!c&&t.canSelectItem(r),b=d&&!c,g=b&&(t.selectionBehavior==="replace"?!h:t.isEmpty),v=b&&h&&t.selectionBehavior==="replace",y=g||v,_=l.useRef(null),x=y&&h,$=l.useRef(!1),k=l.useRef(!1),O={};o?(O.onPressStart=N=>{_.current=N.pointerType,$.current=x,N.pointerType==="keyboard"&&(!y||r$())&&f(N)},u?(O.onPressUp=N=>{N.pointerType!=="keyboard"&&f(N)},O.onPress=g?()=>d():null):O.onPress=N=>{if(g||v&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!t$())return;d()}else N.pointerType!=="keyboard"&&f(N)}):(O.onPressStart=N=>{_.current=N.pointerType,$.current=x,k.current=g,(N.pointerType==="mouse"&&!g||N.pointerType==="keyboard"&&(!d||r$()))&&f(N)},O.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&y&&t$()||N.pointerType==="mouse"&&k.current)&&(y?d():f(N))}),a||(p["data-key"]=r),O.preventFocusOnPress=i;let{pressProps:S,isPressed:A}=_r(O),M=v?N=>{_.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),d())}:void 0,{longPressProps:R}=cp({isDisabled:!x,onLongPress(N){N.pointerType==="touch"&&(f(N),t.setSelectionBehavior("toggle"))}});return{itemProps:fe(p,h||g?S:{},x?R:{},{onDoubleClick:M,onDragStartCapture:N=>{_.current==="touch"&&$.current&&N.preventDefault()}}),isPressed:A,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:c,allowsSelection:h,hasAction:y}}function t$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function r$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class zc{getKeyBelow(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getKeyAbove(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getKeyRightOf(t){return this.orientation==="horizontal"?this.direction==="rtl"?this.getKeyAbove(t):this.getKeyBelow(t):null}getKeyLeftOf(t){return this.orientation==="horizontal"?this.direction==="rtl"?this.getKeyBelow(t):this.getKeyAbove(t):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!da(r))return this.getFirstKey();let o=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-r.scrollLeft,s=Math.max(0,a.x-i+a.width-o.width);for(;n&&a.x-i>s;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}else{let i=o.y-r.scrollTop,s=Math.max(0,a.y-i+a.height-o.height);for(;n&&a.y-i>s;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!da(r))return this.getLastKey();let o=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=o.x-r.scrollLeft,s=Math.min(r.scrollWidth,a.x-i-a.width+o.width);for(;n&&a.x-i<s;)t=this.getKeyBelow(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}else{let i=o.y-r.scrollTop,s=Math.min(r.scrollHeight,a.y-i-a.height+o.height);for(;n&&a.y-i<s;)t=this.getKeyBelow(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let a=n.getItem(o),i=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(i,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3]}}function E9(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,autoFocus:i,shouldFocusWrap:s,isVirtualized:c,disallowEmptySelection:d,selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:f,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,b=Ba({usage:"search",sensitivity:"base"}),g=t.disabledBehavior,v=l.useMemo(()=>a||new zc(r,g==="selection"?new Set:n,o,b),[a,r,n,o,b,g]),{collectionProps:y}=D9({ref:o,selectionManager:t,keyboardDelegate:v,autoFocus:i,shouldFocusWrap:s,disallowEmptySelection:d,selectOnFocus:u,disallowTypeAhead:f,shouldUseVirtualFocus:p,allowsTabNavigation:h,isVirtualized:c,scrollRef:o});return{listProps:y}}const Fc=new WeakMap;function P9(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function k9(e,t){let r=Fc.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${P9(t)}`}function n$(e,t,r){let n=Dt(e,{labelable:!0}),{listProps:o}=E9({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys}),{focusWithinProps:a}=tn({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),i=Xe(e.id);Fc.set(t,{id:i,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:s,fieldProps:c}=lb({...e,id:i,labelElementType:"span"});return{labelProps:s,listBoxProps:fe(n,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...fe(c,o)})}}function o$(e,t,r){let{key:n}=e,o=Fc.get(t);var a;let i=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(n);var s;let c=(s=e.isSelected)!==null&&s!==void 0?s:t.selectionManager.isSelected(n);var d;let u=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:o==null?void 0:o.shouldSelectOnPressUp;var f;let p=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:o==null?void 0:o.shouldFocusOnHover;var h;let b=(h=e.shouldUseVirtualFocus)!==null&&h!==void 0?h:o==null?void 0:o.shouldUseVirtualFocus;var g;let v=(g=e.isVirtualized)!==null&&g!==void 0?g:o==null?void 0:o.isVirtualized,y=Wn(),_=Wn(),x={role:"option","aria-disabled":i||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};if($r()&&iE()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=y,x["aria-describedby"]=_),v){var $;let T=Number(($=t.collection.getItem(n))===null||$===void 0?void 0:$.index);x["aria-posinset"]=Number.isNaN(T)?void 0:T+1,x["aria-setsize"]=_9(t.collection)}let{itemProps:k,isPressed:O,isFocused:S,hasAction:A,allowsSelection:M}=S9({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&p,isVirtualized:v,shouldUseVirtualFocus:b,isDisabled:i,onAction:o!=null&&o.onAction?()=>{var T;return o==null||(T=o.onAction)===null||T===void 0?void 0:T.call(o,n)}:void 0}),{hoverProps:R}=wE({isDisabled:i||!p,onHoverStart(){ba()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n))}});return{optionProps:{...x,...fe(k,R),id:k9(t,n)},labelProps:{id:y},descriptionProps:{id:_},isFocused:S,isFocusVisible:S&&ba(),isSelected:c,isDisabled:i,isPressed:O,allowsSelection:M,hasAction:A}}const a$=P.ul`
1891
1891
  max-height: 300px;
1892
1892
  overflow: auto;
1893
1893
  list-style: none;