1import{g as m}from"./FUKBWQwh.js";import{a as p}from"./Co8AAB2-.js";import{S as v}from"./_pQ04Iv9.js";import{r as d,i as T,c as A,d as w,j as h,G as E,C as I,p as N,N as O}from"./Rn1tUdXN.js";const L="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function y(e,r){return r!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function j(e,r,n){const t=y(e.key,n);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return P[t]}function k(e,r=!1){const n=m();for(const t of e)if(t===n||(t.focus({preventScroll:r}),m()!==n))return}function z(e,r){return e.map((n,t)=>e[(r+t)%e.length])}const g="data-reka-collection-item";function K(e={}){const{key:r="",isProvider:n=!1}=e,t=`${r}CollectionProvider`;let o;if(n){const s=d(new Map);o={collectionRef:d(),itemMap:s},N(t,o)}else o=T(t);const R=(s=!1)=>{const i=o.collectionRef.value;if(!i)return[];const a=Array.from(i.querySelectorAll(`[${g}]`)),l=Array.from(o.itemMap.value.values()).sort((u,f)=>a.indexOf(u.ref)-a.indexOf(f.ref));return s?l:l.filter(u=>u.ref.dataset.disabled!=="")},_=w({name:"CollectionSlot",setup(s,{slots:i}){const{primitiveElement:a,currentElement:c}=p();return I(c,()=>{o.collectionRef.value=c.value}),()=>E(v,{ref:a},i)}}),C=w({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(s,{slots:i,attrs:a}){const{primitiveElement:c,currentElement:l}=p();return h(u=>{if(l.value){const f=O(l.value);o.itemMap.value.set(f,{ref:l.value,value:s.value}),u(()=>o.itemMap.value.delete(f))}}),()=>E(v,{...a,[g]:"",ref:c},i)}}),M=A(()=>
1Array.from(o.itemMap.value.values())),S=A(()=>o.itemMap.value.size);return{getItems:R,reactiveItems:M,itemMapSize:S,CollectionSlot:_,CollectionItem:C}}export{L as E,b as a,k as f,j as g,K as u,z as w}; 2//# sourceMappingURL=BxR66awv.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.