PageSourceSearch

https://web.zillertalarena.com/_nuxt/useKeyboardListNavigation.xcwQhFBM.js

js zillertalarena.com collected 2026-10-02 17:27:03 UTC 1,010 bytes, 1 lines download raw bytes

1import{r as y,w as A}from"./entry.cP-YiLbM.js";function K({items:f,loop:o=!1,onFocusChange:v,onEdgeNavigation:a,horizontal:s=!1,initialIndex:t=0}){t<0&&(t=0),t>=f.value.length&&(t=f.value.length-1);const e=y(t);let n=t;A(f,(r,u)=>{const l=r?.length??0,d=u?.length??0;if(l){if(d===0&&l>0){e.value=0;return}if(l===0){e.value=0;return}e.value>=l&&(e.value=l-1),n>-1&&l>=n&&(e.value=n)}},{deep:!0});const w=s?["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"];function c(r){return r===(s?"ArrowLeft":"ArrowUp")}function h(r){return r===(s?"ArrowRight":"ArrowDown")}function i(r){e.value=r,n=r}function g(r){if(!w.includes(r.key))return;r.preventDefault();let u=e.value;const l=f?.value||f;if(c(r.key)){if(e.value>0)u=e.value-1;else if(o)u=l.length-1;else if(e.value===0){a?.("up");return}}else if(h(r.key)){if(e.value<l.length-1)u=e.value+1;else if(o)u=0;else if(e.value===l.length-1){a?.("down");return}}u!==e.value&&(e.value=u,n=u,v?.(u))}return{focusedIndex:e,handleKeyDown:g,setFocusedIndex:i}}export{K as u};

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.