1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d3cdda6f-3523-593b-9747-e9c2b2dfb349")}catch(e){}}(); 3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d3ec-ec4c-78a1-894d-41d08c78a4f5")}catch(e){}}();(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a8094e049e03f829f1c2e300bc93708abe9374a5`}}catch{}})();import{a as e}from"./chunk-DUZrb5sI.js";import{n as t}from"./preload-helper-BwnrSaRm.js";import{t as n}from"./jsx-runtime-BJ_8nwS3.js";import{Q as r,X as i,Z as a,l as o,n as s,u as c}from"./useBaseUiId-BQ3lzqs8.js";import{i as l,k as u,n as d,o as f,r as p,s as m}from"./inertValue-BB8nXyGZ.js";import{t as h}from"./DirectionContext-DY2hnG5Z.js";import{t as g}from"./isElementDisabled-DBZjwaCi.js";import{r as _}from"./useButton-DdymfiDl.js";import{n as v}from"./useCompositeListItem-C4b6lrT0.js";import{a as y,c as b,i as x,l as S,n as C,r as w,s as T,t as E}from"./composite-DAsBCISi.js";var D=e(t(),1),O=`data-composite-item-active`,k=[];function A(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:a,direction:s,highlightedIndex:h,onHighlightedIndexChange:_,rootRef:v,enableHomeAndEndKeys:T=!1,stopEventPropagation:O,disabledIndices:A,modifierKeys:M=k}=e,[N,P]=D.useState(0),F=r!=null,I=D.useRef(null),L=c(I,v),R=D.useRef([]),z=D.useRef(!1),B=h??N,V=o((e,t=!1)=>{if((_??P)(e),t){let t=R.current[e];S(I.current,t,s,n)}}),H=o(e=>{if(e.size===0||z.current)return;z.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)V(i);else if(m(t,B,A)){let e=d(t,{disabledIndices:A});f(t,e)||V(e)}S(I.current,r,s,n)});i(()=>{if(A==null||h!=null||!z.current)return;let e=R.current;if(m(e,B,A)){let t=d(e,{disabledIndices:A});f(e,t)||V(t)}},[A,h,B,R,V]);let U=o((e,t,n)=>a?a(e,t,n,R):n),W=o(e=>{let i=e.key===`Home`||e.key===`End`;if(!y.has(e.key)||!T&&i||j(e,M)||!I.current)return;let o=s===`rtl`,c=o?C:w,m=o?w:C,h=n===`vertical`?E:c,_=n===`vertical`?x:m,v=u(e.nativeEvent);if(v!=null&&b(v)&&!g(v)){let t=v.selectionStart,n=v.selectionEnd,r=v.value;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==h&&t>0)return}let S=B,D=l(R,A),k=p(R,A);r!=null&&(S=r({disabledIndices:A,elementsRef:R,event:e,highlightedIndex:B,loopFocus:t,maxIndex:k,minIndex:D,onLoop:U,orientation:n,rtl:o}));let N=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,P=n!==`vertical`&&e.key===m||n!==`horizontal`&&e.key===`ArrowUp`;T&&(e.key===`Home`?S=D:e.key===`End`&&(S=k)),S===B&&(N||P)&&(t&&S===k&&N?(S=D,a&&(S=a(e,B,S,R))):t&&S===D&&P?(S=k,a&&(S=a(e,B,S,R))):S=d(R.current,{startingIndex:S,decrement:P,disabledIndices:A})),S!==B&&!f(R.current,S)&&(O&&e.stopPropagation(),(F||i||N||P)&&e.preventDefault(),V(S,!0),queueMicrotask(()=>{R.current[S]?.focus()}))});return{props:{ref:L,onFocus(e){let t=I.current,n=u(e.nativeEvent);!t||n==null||!b(n)||n.setSelectionRange(0,n.value.length)},onKeyDown:W},highlightedIndex:B,onHighlightedIndexChange:V,elementsRef:R,onMapChange:H,relayKeyboardEvent:W}}function j(e,t){for(let n of T)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var M=n();function N(e){let{render:t,className:n,style:i,refs:o=a,props:c=a,state:l=r,stateAttributesMapping:u,highlightedIndex:d,onHighlightedIndexChange:f,orientation:p,grid:m,loopFocus:g,onLoop:y,enableHomeAndEndKeys:b,onMapChange:x,stopEventPropagation:S=!0,rootRef:C,disabledIndices:w,modifierKeys:T,highlightItemOnHover:E=!1,tag:O=`div`,...k}=e,{props:j,highlightedIndex:N,onHighlightedIndexChange:P,elementsRef:F,onMapChange:I,relayKeyboardEvent:L}=A({grid:m,loopFocus:g,onLoop:y,orientation:p,highlightedIndex:d,onHighlightedIndexChange:f,rootRef:C,stopEventPropagation:S,enableHomeAndEndKeys:b,direction:h(),disabledIndices:w,modifierKeys:T}),R=s(O,e,{state:l,ref:o,props:[j,...c,k],stateAttributesMapping:u}),z=D.useMemo(()=>({highlightedIndex:N,onHighlightedIndexChange:P,highlightItemOnHover:E,relayKeyboardEvent:L}),[N,P,E,L]);return(0,M.jsx)(_.Provider,{value:z,children:(0,M.jsx)(v,{elementsRef:F,onMapChange:e=>{x?.(e),I(e)},children:R})})}export{O as n,N as t}; 4//# sourceMappingURL=CompositeRoot-C-lDuoiT.js.map 5//# chunkId=01a0d3ec-ec4c-78a1-894d-41d08c78a4f5 6//# debugId=d3cdda6f-3523-593b-9747-e9c2b2dfb349
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.