PageSourceSearch

https://www.phonehouse.nl/_nuxt/Bm7C0XqW.js

js phonehouse.nl collected 2026-10-04 09:25:43 UTC 2,656 bytes, 1 lines download raw bytes

1import{ao as I,K as O,a1 as q,bH as x,cs as B,bS as N,b9 as P,I as U,cy as S,Z as D,bN as d,e as G,bp as L,bm as v}from"./C3392HEM.js";import{u as M}from"./BZsgAdiS.js";const V="rovingFocusGroup.onEntryFocus",K={bubbles:!1,cancelable:!0},k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Y(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function J(e,o,a){const t=Y(e.key,a);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return k[t]}function $(e,o=!1){const a=I();for(const t of e)if(t===a||(t.focus({preventScroll:o}),I()!==a))return}function Q(e,o){return e.map((a,t)=>e[(o+t)%e.length])}const[W,H]=O("RovingFocusGroup");var j=q({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:o,emit:a}){const t=e,g=a,{loop:w,orientation:b,dir:T}=x(t),m=M(T),f=B(t,"currentTabStopId",g,{defaultValue:t.defaultCurrentTabStopId,passive:t.currentTabStopId===void 0}),i=v(!1),l=v(!1),p=v(0),{getItems:F,CollectionSlot:A}=N({isProvider:!0});function h(r){const s=!l.value;if(r.currentTarget&&r.target===r.currentTarget&&s&&!i.value){const u=new CustomEvent(V,K);if(r.currentTarget.dispatchEvent(u),g("entryFocus",u),!u.defaultPrevented){const c=F().map(n=>n.ref).filter(n=>n.dataset.disabled!==""),y=c.find(n=>n.getAttribute("data-active")===""),C=c.find(n=>n.getAttribute("data-highlighted")===""),_=c.find(n=>n.id===f.value),R=[y,C,_,...c].filter(Boolean);$(R,t.preventScrollOnEntryFocus)}}l.value=!1}function E(){setTimeout(()=>{l.value=!1},1)}return o({getItems:F}),H({loop:w,dir:m,orientation:b,currentTabStopId:f,onItemFocus:r=>{f.value=r},onItemShiftTab:()=>{i.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(r,s)=>(P(),U(d(A),null,{default:S(()=>[D(d(G),{tabindex:i.value||p.value===0?-1:0,"data-orientation":d(b),as:r.as,"as-child":r.asChild,dir:d(m),style:{outline:"none"},onMousedown:s[0]||(s[0]=u=>l.value=!0),onMouseup:E,onFocus:h,onBlur:s[1]||(s[1]=u=>i.value=!1)},{default:S(()=>[L(r.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),X=j;export{X as R,$ as f,J as g,W as i,Q as w};

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.