PageSourceSearch

https://niagaramodules.com/_nuxt/BsxYcWGP.js

js niagaramodules.com collected 2026-10-04 07:51:42 UTC 2,735 bytes, 1 lines download raw bytes

1import{At as e,Mt as t,Or as n,Xn as r,_n as i,jr as a,wn as o,xr as s,xt as c}from"./Lso9-JEW.js";import{n as l}from"./BMvglN7Y.js";import{f as u}from"./BmvEpY4N.js";import{t as d}from"./DWEoD8ZB.js";import{y as f}from"./h13Zn_Ha.js";import{t as p}from"./DOtnkwFO.js";import{t as m}from"./xxcwgNow.js";var h=`rovingFocusGroup.onEntryFocus`,g={bubbles:!1,cancelable:!0},_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function v(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function y(e,t,n){let r=v(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return _[r]}function b(e,t=!1){let n=d();for(let r of e)if(r===n||(r.focus({preventScroll:t}),d()!==n))return}function x(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[S,C]=u(`RovingFocusGroup`),w=t({__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(t,{expose:u,emit:d}){let _=t,v=d,{loop:y,orientation:x,dir:S}=n(_),w=p(S),T=f(_,`currentTabStopId`,v,{defaultValue:_.defaultCurrentTabStopId,passive:_.currentTabStopId===void 0}),E=s(!1),D=s(!1),O=s(0),{getItems:k,CollectionSlot:A}=m({isProvider:!0});function j(e){let t=!D.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!E.value){let t=new CustomEvent(h,g);if(e.currentTarget.dispatchEvent(t),v(`entryFocus`,t),!t.defaultPrevented){let e=k().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);b([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===T.value),...e].filter(Boolean),_.preventScrollOnEntryFocus)}}D.value=!1}function M(){setTimeout(()=>{D.value=!1},1)}return u({getItems:k}
vendor: 594 bytes, line 1
1),C({loop:y,dir:w,orientation:x,currentTabStopId:T,onItemFocus:e=>{T.value=e},onItemShiftTab:()=>{E.value=!0},onFocusableItemAdd:()=>{O.value++},onFocusableItemRemove:()=>{O.value--}}),(t,n)=>(i(),c(a(A),null,{default:r(()=>[e(a(l),{tabindex:E.value||O.value===0?-1:0,"data-orientation":a(x),as:t.as,"as-child":t.asChild,dir:a(w),style:{outline:`none`},onMousedown:n[0]||=e=>D.value=!0,onMouseup:M,onFocus:j,onBlur:n[1]||=e=>E.value=!1},{default:r(()=>[o(t.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}});export{x as a,y as i,S as n,b as r,w 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.