PageSourceSearch

https://www.gokanic.com/assets/ListBox-a8Ty2P5Q.js

js gokanic.com collected 2026-10-02 01:30:59 UTC 20,132 bytes, 1 lines download raw bytes

1import{af as O,r as s,E as oe,F as z,aS as W,$ as w,J as K,am as xe,aT as Ee,aU as Pe,ap as De,a1 as re,ac as ee,K as Me,ay as Ve,ag as Ie,R as $,P as B,aJ as Se,X as Y,Q as C,N as we,T as Ce,V as ne,as as Ke,a0 as de,aV as Le,al as ke,au as Be,Y as Fe}from"./index-DSd_KA67.js";import{a4 as Te,l as Oe,a5 as Ae,a0 as Ue,k as Ne,a6 as Re,a7 as ze,a8 as We,o as He,s as je,a9 as qe,aa as Je,ab as Qe,J as Ye,u as X,K as Xe,ac as Ge,A as Ze,ad as _e,x as et,ae as tt,q as se,af as at,r as lt,ag as it}from"./Dialog-ChwbEPk_.js";function St(a,e,t){let l=O(()=>{t&&t(e)});s.useEffect(()=>{var o;let r=a==null||(o=a.current)===null||o===void 0?void 0:o.form;return r?.addEventListener("reset",l),()=>{r?.removeEventListener("reset",l)}},[a])}function ot(a,e){let{collection:t,onLoadMore:l,scrollOffset:o=1}=a,r=s.useRef(null),i=O(n=>{for(let c of n)c.isIntersecting&&l&&l()});oe(()=>(e.current&&(r.current=new IntersectionObserver(i,{root:Te(e?.current),rootMargin:`0px ${100*o}% ${100*o}% ${100*o}%`}),r.current.observe(e.current)),()=>{r.current&&r.current.disconnect()}),[t,e,o])}function rt(a){const e=s.version.split(".");return parseInt(e[0],10)>=19?a:a?"true":void 0}const G=new WeakMap;function nt(a){return typeof a=="string"?a.replace(/\s*/g,""):""+a}function dt(a,e){let t=G.get(a);if(!t)throw new Error("Unknown list");return`${t.id}-option-${nt(e)}`}function ce(a){let{id:e,label:t,"aria-labelledby":l,"aria-label":o,labelElementType:r="label"}=a;e=z(e);let i=z(),n={};t&&(l=l?`${i} ${l}`:i,n={id:i,htmlFor:r==="label"?e:void 0});let c=Oe({id:e,"aria-label":o,"aria-labelledby":l});return{labelProps:n,fieldProps:c}}function wt(a){let{description:e,errorMessage:t,isInvalid:l,validationState:o}=a,{labelProps:r,fieldProps:i}=ce(a),n=W([!!e,!!t,l,o]),c=W([!!e,!!t,l,o]);return i=w(i,{"aria-describedby":[n,c,a["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:r,fieldProps:i,descriptionProps:{id:n},errorMessageProps:{id:c}}}function st(a,e,t){let l=K(a,{labelable:!0}),o=a.selectionBehavior||"toggle",r=a.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&r==="action"&&(r="override");let{listProps:i}=Ae({...a,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:r}),{focusWithinProps:n}=xe({onFocusWithin:a.onFocus,onBlurWithin:a.onBlur,onFocusWithinChange:a.onFocusChange}),c=z(a.id);G.set(e,{id:c,shouldUseVirtualFocus:a.shouldUseVirtualFocus,shouldSelectOnPressUp:a.shouldSelectOnPressUp,shouldFocusOnHover:a.shouldFocusOnHover,isVirtualized:a.isVirtualized,onAction:a.onAction,linkBehavior:r,UNSTABLE_itemBehavior:a.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:d}=ce({...a,id:c,labelElementType:"span"});return{labelProps:u,listBoxProps:w(l,n,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...w(d,i)})}}function ct(a,e,t){var l,o;let{key:r}=a,i=G.get(e);var n;let c=(n=a.isDisabled)!==null&&n!==void 0?n:e.selectionManager.isDisabled(r);var u;let d=(u=a.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(r);var f;let v=(f=a.shouldSelectOnPressUp)!==null&&f!==void 0?f:i?.shouldSelectOnPressUp;var h;let g=(h=a.shouldFocusOnHover)!==null&&h!==void 0?h:i?.shouldFocusOnHover;var x;let D=(x=a.shouldUseVirtualFocus)!==null&&x!==void 0?x:i?.shouldUseVirtualFocus;var m;let b=(m=a.isVirtualized)!==null&&m!==void 0?m:i?.isVirtualized,V=W(),E=W(),M={role:"option","aria-disabled":c||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};Ee()&&Pe()||(M["aria-label"]=a["aria-label"],M["aria-labelledby"]=V,M["aria-describedby"]=E);let p=e.collection.getItem(r);if(b){let S=Number(p?.index);M["aria-posinset"]=Number.isNaN(S)?void 0:S+1,M["aria-setsize"]=Ue(e.collection)}let P=i?.onAction?()=>{var S;return i==null||(S=i.onAction)===null||S===void 0?void 0:S.call(i,r)}:void 0,I=dt(e,r),{itemProps:L,isPressed:y,isFocused:F,hasAction:j,allowsSelection:U}=Ne({selectionManager:e.selectionManager,key:r,ref:t,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&g,isVirtualized:b,shouldUseVirtualFocus:D,isDisabled:c,onAction:P||!(p==null||(l=p.props)===null||l===void 0)&&l.onAction?De(p==null||(o=p.props)===null||o===void 0?void 0:o.onAction,P):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:I}),{hoverProps:N}=re({isDisabled:c||!g,onHoverStart(){ee()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r))}}),k=K(p?.props);delete k.id;let R=Me(p?.props);return{optionProps:{...M,...w(k,L,N,R),id:I},labelProps:{id:V},descriptionProps:{id:E},isFocused:F,isFocusVisible:F&&e.selectionManager.isFocused&&ee(),isSelected:d,isDisabled:c,isPressed:y,allowsSelection:U,hasAction:j}}function ut(a){let{heading:e,"aria-label":t}=a,l=z();return{itemProps:{role:"presentation"},headingProps:e?{id:l,role:"presentation",onMouseDown:o=>{o.preventDefault()}}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?l:void 0}}}const Z={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ue={...Z,customError:!0,valid:!1}
1,T={isInvalid:!1,validationDetails:Z,validationErrors:[]},fe=s.createContext({}),te="__formValidationState"+Date.now();function Ct(a){if(a[te]){let{realtimeValidation:e,displayValidation:t,updateValidation:l,resetValidation:o,commitValidation:r}=a[te];return{realtimeValidation:e,displayValidation:t,updateValidation:l,resetValidation:o,commitValidation:r}}return ft(a)}function ft(a){let{isInvalid:e,validationState:t,name:l,value:o,builtinValidation:r,validate:i,validationBehavior:n="aria"}=a;t&&(e||(e=t==="invalid"));let c=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:ue}:null,u=s.useMemo(()=>{if(!i||o==null)return null;let y=vt(i,o);return ae(y)},[i,o]);r?.validationDetails.valid&&(r=void 0);let d=s.useContext(fe),f=s.useMemo(()=>l?Array.isArray(l)?l.flatMap(y=>Q(d[y])):Q(d[l]):[],[d,l]),[v,h]=s.useState(d),[g,x]=s.useState(!1);d!==v&&(h(d),x(!1));let D=s.useMemo(()=>ae(g?[]:f),[g,f]),m=s.useRef(T),[b,V]=s.useState(T),E=s.useRef(T),M=()=>{if(!p)return;P(!1);let y=u||r||m.current;J(y,E.current)||(E.current=y,V(y))},[p,P]=s.useState(!1);return s.useEffect(M),{realtimeValidation:c||D||u||r||T,displayValidation:n==="native"?c||D||b:c||D||u||r||b,updateValidation(y){n==="aria"&&!J(b,y)?V(y):m.current=y},resetValidation(){let y=T;J(y,E.current)||(E.current=y,V(y)),n==="native"&&P(!1),x(!0)},commitValidation(){n==="native"&&P(!0),x(!0)}}}function Q(a){return a?Array.isArray(a)?a:[a]:[]}function vt(a,e){if(typeof a=="function"){let t=a(e);if(t&&typeof t!="boolean")return Q(t)}return[]}function ae(a){return a.length?{isInvalid:!0,validationErrors:a,validationDetails:ue}:null}function J(a,e){return a===e?!0:!!a&&!!e&&a.isInvalid===e.isInvalid&&a.validationErrors.length===e.validationErrors.length&&a.validationErrors.every((t,l)=>t===e.validationErrors[l])&&Object.entries(a.validationDetails).every(([t,l])=>e.validationDetails[t]===l)}function Kt(...a){let e=new Set,t=!1,l={...Z};for(let i of a){var o,r;for(let n of i.validationErrors)e.add(n);t||(t=i.isInvalid);for(let n in l)(o=l)[r=n]||(o[r]=i.validationDetails[n])}return l.valid=!t,{isInvalid:t,validationErrors:[...e],validationDetails:l}}function Lt(a,e,t){let{validationBehavior:l,focus:o}=a;oe(()=>{if(l==="native"&&t?.current&&!t.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(u),t.current.hasAttribute("title")||(t.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(bt(t.current))}});let r=s.useRef(!1),i=O(()=>{r.current||e.resetValidation()}),n=O(u=>{var d;e.displayValidation.isInvalid||e.commitValidation();let f=t==null||(d=t.current)===null||d===void 0?void 0:d.form;if(!u.defaultPrevented&&t&&f&&gt(f)===t.current){var v;o?o():(v=t.current)===null||v===void 0||v.focus(),Ve("keyboard")}u.preventDefault()}),c=O(()=>{e.commitValidation()});s.useEffect(()=>{let u=t?.current;if(!u)return;let d=u.form,f=d?.reset;return d&&(d.reset=()=>{r.current=!window.event||window.event.type==="message"&&Ie(window.event)instanceof MessagePort,f?.call(d),r.current=!1}),u.addEventListener("invalid",n),u.addEventListener("change",c),d?.addEventListener("reset",i),()=>{u.removeEventListener("invalid",n),u.removeEventListener("change",c),d?.removeEventListener("reset",i),d&&(d.reset=f)}},[t,l])}function $t(a){let e=a.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function bt(a){return{isInvalid:!a.validity.valid,validationDetails:$t(a),validationErrors:a.validationMessage?[a.validationMessage]:[]}}function gt(a){for(let t=0;t<a.elements.length;t++){var e;let l=a.elements[t];if(((e=l.validity)===null||e===void 0?void 0:e.valid)===!1)return l}return null}class le{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var l;return t&&(l=t.prevKey)!==null&&l!==void 0?l:null}getKeyAfter(e){let t=this.keyMap.get(e);var l;return t&&(l=t.nextKey)!==null&&l!==void 0?l:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=n=>{if(this.keyMap.set(n.key,n),n.childNodes&&n.type==="section")for(let c of n.childNodes)t(c)};for(let n of e)t(n);let l=null,o=0,r=0;for(let[n,c]of this.keyMap)l?(l.nextKey=n,c.prevKey=l.key):(this.firstKey=n,c.prevKey=void 0),c.type==="item"&&(c.index=o++),(c.type==="section"||c.type==="item")&&r++,l=c,l.nextKey=void 0;this._size=r;var i;this.lastKey=(i=l?.key)!==null&&i!==void 0?i:null}}function pt(a){let{filter:e,layoutDelegate:t}=a,l=Re(a),o=s.useMemo(()=>a.disabledKeys?new Set(a.disabledKeys):new Set,[a.disabledKeys]),r=s.useCallback(u=>e?new le(e(u)):new le(u),[e]),i=s.useMemo(()=>({suppressTextValueWarning:a.suppressTextValueWarning}),[a.suppressTextValueWarning]),n=ze(a,r,i),c=s.useMemo(()=>new We(n,l,{layoutDelegate:t}),[n,l,t]);return ve(n,c),{collection:n,disabledKeys:o,selectionManager:c}}function mt(a,e){let t=s.useMemo(()=>e?a.collection.filter(e):a.collection,[a.collection,e]),l=a.selectionManager.withCollection(t);return ve(t,l),{collection:t,selectionManager:l,disabledKeys:a.disabledKeys}}function ve(a,e){const t=s.useRef(null);s.useEffect(()=>{if(e.focusedKey!=null&&!a.getItem(e.focusedKey)&&t.current){const d=t.current.getItem(e.focusedKey),f=[...t.current.getKeys()].map(m=>{const b=t.current.getItem(m);return b?.type==="item"?b:null}).filter(m=>m!==null),v=[...a.getKeys()].map(m=>{const b=a.getItem(m);return b?.type==="item"?b:null}).filter(m=>m!==null);var l,o;const h=((l=f?.length)!==null&&l!==void 0?l:0)-((o=v?.length)!==null&&o!==void 0?o:0);var r,i,n;let g=Math.min(h>1?Math.max(((r=d?.index)!==null&&r!==void 0?r:0)-h+1,0):(i=d?.index)!==null&&i!==void 0?i:0,((n=v?.length)!==null&&n!==void 0?n:0)-1),x=null,D=!1;for(;g>=0;){if(!e.isDisabled(v[g].key)){x=v[g];break}if(g<v.length-1&&!D)g++;else{D=!0;var c,u;g>((c=d?.index)!==null&&c!==void 0?c:0)&&(g=(u=d?.index)!==null&&u!==void 0?u:0),g--}}e.setFocusedKey(x?x.key:null)}t.current=a},[a,e])}const $e=s.createContext(null),kt=s.forwardRef(function(e,t){let l=s.useContext($e);return l?.isInvalid?$.createElement(yt,{...e,ref:t}):null}),yt=s.forwardRef((a,e)=>{let t=s.useContext($e),l=K(a,{global:!0}),o=B({...a,defaultClassName:"react-aria-FieldError",defaultChildren:t.validationErrors.length===0?void 0:t.validationErrors.join(" "),values:t});return o.children==null?null:$.createElement(Se,{slot:"errorMessage",...l,...o,ref:e})}),ie=s.createContext(null),Bt=s.forwardRef(function(e,t){[e,t]=Y(e,t,ie);let{validationErrors:l,validationBehavior:o="native",children:r,className:i,...n}=e;return $.createElement(C.form,{noValidate:o!=="native",...n,ref:t,className:i||"react-aria-Form"},$.createElement(ie.Provider,{value:{...e,validationBehavior:o}},$.createElement(fe.Provider,{value:l??{}},r)))}),H=s.createContext({}),be=s.createContext(null),ht=s.forwardRef(function(e,t){let{render:l}=s.useContext(be);return $.createElement($.Fragment,null,l(e,t))});function ge(a,e){var t;let l=a?.renderDropIndicator,o=a==null||(t=a.isVirtualDragging)===null||t===void 0?void 0:t.call(a),r=s.useCallback(i=>{if(o||e?.isDropTarget(i))return l?l(i):$.createElement(ht,{target:i})},[e?.target,o,l]);return a?.useDropIndicator?r:void 0}function xt(a,e,t){var l,o;let r=a.focusedKey,i=null;if(!(e==null||(l=e.isVirtualDragging)===null||l===void 0)&&l.call(e)&&(t==null||(o=t.target)===null||o===void 0?void 0:o.type)==="item"&&(i=t.target.key,t.target.dropPosition==="after")){let f=t.collection.getKeyAfter(i),v=null;if(f!=null){var n,c;let h=(c=(n=t.collection.getItem(i))===null||n===void 0?void 0:n.level)!==null&&c!==void 0?c:0;for(;f;){let g=t.collection.getItem(f);if(!g)break;
1if(g.type!=="item"){f=t.collection.getKeyAfter(f);continue}var u;if(((u=g.level)!==null&&u!==void 0?u:0)<=h)break;v=f,f=t.collection.getKeyAfter(f)}}var d;i=(d=f??v)!==null&&d!==void 0?d:i}return s.useMemo(()=>new Set([r,i].filter(f=>f!=null)),[r,i])}const pe=s.createContext(null),A=s.createContext(null),Ft=s.forwardRef(function(e,t){[e,t]=Y(e,t,pe);let l=s.useContext(A);return l?$.createElement(me,{state:l,props:e,listBoxRef:t}):$.createElement(He,{content:$.createElement(je,e)},o=>$.createElement(Et,{props:e,listBoxRef:t,collection:o}))});function Et({props:a,listBoxRef:e,collection:t}){a={...a,collection:t,children:null,items:null};let{layoutDelegate:l}=s.useContext(X),o=pt({...a,layoutDelegate:l});return $.createElement(me,{state:o,props:a,listBoxRef:e})}function me({state:a,props:e,listBoxRef:t}){[e,t]=Y(e,t,Qe);let{dragAndDropHooks:l,layout:o="stack",orientation:r="vertical",filter:i}=e,n=mt(a,i),{collection:c,selectionManager:u}=n,d=!!l?.useDraggableCollectionState,f=!!l?.useDroppableCollectionState,{direction:v}=we(),{disabledBehavior:h,disabledKeys:g}=u,x=Ye({usage:"search",sensitivity:"base"}),{isVirtualized:D,layoutDelegate:m,dropTargetDelegate:b,CollectionRoot:V}=s.useContext(X),E=s.useMemo(()=>e.keyboardDelegate||new Xe({collection:c,collator:x,ref:t,disabledKeys:g,disabledBehavior:h,layout:o,orientation:r,direction:v,layoutDelegate:m}),[c,x,t,h,g,r,v,e.keyboardDelegate,o,m]),{listBoxProps:M}=st({...e,shouldSelectOnPressUp:d||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:D},n,t);s.useRef(d),s.useRef(f),s.useEffect(()=>{},[d,f]);let p,P,I,L=!1,y=null,F=s.useRef(null);if(d&&l){p=l.useDraggableCollectionState({collection:c,selectionManager:u,preview:l.renderDragPreview?F:void 0}),l.useDraggableCollection({},p,t);let q=l.DragPreview;y=l.renderDragPreview?$.createElement(q,{ref:F},l.renderDragPreview):null}if(f&&l){P=l.useDroppableCollectionState({collection:c,selectionManager:u});let q=l.dropTargetDelegate||b||new l.ListDropTargetDelegate(c,t,{orientation:r,layout:o,direction:v});I=l.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:q},P,t),L=P.isDropTarget({type:"root"})}let{focusProps:j,isFocused:U,isFocusVisible:N}=Ce(),k=n.collection.size===0,R={isDropTarget:L,isEmpty:k,isFocused:U,isFocusVisible:N,layout:e.layout||"stack",state:n},S=B({...e,children:void 0,defaultClassName:"react-aria-ListBox",values:R}),_=null;k&&e.renderEmptyState&&(_=$.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(R)));let he=K(e,{global:!0});return $.createElement(Ge,null,$.createElement(C.div,{...w(he,S,M,j,I?.collectionProps),ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":k||void 0,"data-focused":U||void 0,"data-focus-visible":N||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},$.createElement(ne,{values:[[pe,e],[A,n],[H,{dragAndDropHooks:l,dragState:p,dropState:P}],[Ze,{elementType:"div"}],[be,{render:Pt}],[_e,{name:"ListBoxSection",render:ye}]]},$.createElement(et,null,$.createElement(V,{collection:c,scrollRef:t,persistedKeys:xt(u,l,P),renderDropIndicator:ge(l,P)}))),_,y))}function ye(a,e,t,l="react-aria-ListBoxSection"){let o=s.useContext(A),{dragAndDropHooks:r,dropState:i}=s.useContext(H),{CollectionBranch:n}=s.useContext(X),[c,u]=Ke();var d;let{headingProps:f,groupProps:v}=ut({heading:u,"aria-label":(d=a["aria-label"])!==null&&d!==void 0?d:void 0}),h=B({...a,id:void 0,children:void 0,defaultClassName:l,values:void 0}),g=K(a,{global:!0});return delete g.id,$.createElement(C.section,{...w(g,h,v),ref:e},$.createElement(tt.Provider,{value:{...f,ref:c}},$.createElement(n,{collection:o.collection,parent:t,renderDropIndicator:ge(r,i)})))}const Tt=qe(Je,ye),Ot=se(at,function(e,t,l){let o=de(t),r=s.useContext(A),{dragAndDropHooks:i,dragState:n,dropState:c}=s.useContext(H),{optionProps:u,labelProps:d,descriptionProps:f,...v}=ct({key:l.key,"aria-label":e?.["aria-label"]},r,o),{hoverProps:h,isHovered:g}=re({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:l.props.onHoverStart,onHoverChange:l.props.onHoverChange,onHoverEnd:l.props.onHoverEnd}),{keyboardProps:x}=Le(e),{focusProps:D}=ke(e),m=null;n&&i&&(m=i.useDraggableItem({key:l.key,hasAction:v.hasAction},n));let b=null;c&&i&&(b=i.useDroppableItem({target:{type:"item",key:l.key,dropPosition:"on"}},c,o));let V=n&&n.isDragging(l.key),E=B({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...v,isHovered:g,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!n,isDragging:V,isDropTarget:b?.isDropTarget}});s.useEffect(()=>{l.textValue},[l.textValue]);let M=e.href?C.a:C.div,p=K(e,{global:!0});return delete p.id,delete p.onClick,e.href&&u.tabIndex==null&&(u.tabIndex=-1),$.createElement(M,{...w(p,E,u,h,x,D,m?.dragProps,b?.dropProps),ref:o,"data-allows-dragging":!!n||void 0,"data-selected":v.isSelected||void 0,"data-disabled":v.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-dragging":V||void 0,"data-drop-target":b?.isDropTarget||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},$.createElement(ne,{values:[[Be,{slots:{[Fe]:d,label:d,description:f}}],[lt,{isSelected:v.isSelected}]]},E.children))});function Pt(a,e){e=de(e);let{dragAndDropHooks:t,dropState:l}=s.useContext(H),{dropIndicatorProps:o,isHidden:r,isDropTarget:i}=t.useDropIndicator(a,l,e);return r?null:$.createElement(Mt,{...a,dropIndicatorProps:o,isDropTarget:i,ref:e})}function Dt(a,e){let{dropIndicatorProps:t,isDropTarget:l,...o}=a,r=B({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:l}});return $.createElement(C.div,{...t,...r,role:"option",ref:e,"data-drop-target":l||void 0})}const Mt=s.forwardRef(Dt);se(it,function(e,t,l){let o=s.useContext(A),{isLoading:r,onLoadMore:i,scrollOffset:n,...c}=e,u=s.useRef(null),d=s.useMemo(()=>({onLoadMore:i,collection:o?.collection,sentinelRef:u,scrollOffset:n}),[i,n,o?.collection]);ot(d,u);let f=B({...c,id:void 0,children:l.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),v={tabIndex:-1};return $.createElement($.Fragment,null,$.createElement("div",{style:{position:"relative",width:0,height:0},inert:rt(!0)},$.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),r&&f.children&&$.createElement(C.div,{...w(K(e,{global:!0}),v),...f,role:"option",ref:t},f.children))});export{pt as $,rt as a,Bt as b,kt as c,Ct as d,te as e,St as f,ie as g,$e as h,wt as i,Lt as j,pe as k,A as l,T as m,Kt as n,Ot as o,Tt as p,Ft as q,G as r,dt as s,le as 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.