PageSourceSearch

https://nksecure.ru/_nuxt/DTqwSRLk.js

js nksecure.ru collected 2026-10-05 18:53:38 UTC 2,103 bytes, 1 lines download raw bytes

1import{c as B}from"./1ekxlOvJ.js";import{u as x}from"./CXTdxDR-.js";import{d as G,aa as O,ab as k,o as M,e as N,g,a as P,f as i,ad as V,D as w,r as c}from"./kXpdzr-E.js";import{a as A}from"./3s04bOqP.js";import{f as D,E as $,a as U}from"./C00tNdvy.js";const[Q,j]=B("RovingFocusGroup");var K=G({__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(b,{expose:F,emit:I}){const a=b,f=I,{loop:S,orientation:p,dir:y}=O(a),v=x(y),l=k(a,"currentTabStopId",f,{defaultValue:a.defaultCurrentTabStopId,passive:a.currentTabStopId===void 0}),s=c(!1),n=c(!1),d=c(0),{getItems:m,CollectionSlot:T}=A({isProvider:!0});function C(e){const o=!n.value;if(e.currentTarget&&e.target===e.currentTarget&&o&&!s.value){const r=new CustomEvent($,U);if(e.currentTarget.dispatchEvent(r),f("entryFocus",r),!r.defaultPrevented){const u=m().map(t=>t.ref).filter(t=>t.dataset.disabled!==""),R=u.find(t=>t.getAttribute("data-active")===""),_=u.find(t=>t.getAttribute("data-highlighted")===""),E=u.find(t=>
1t.id===l.value),q=[R,_,E,...u].filter(Boolean);D(q,a.preventScrollOnEntryFocus)}}n.value=!1}function h(){setTimeout(()=>{n.value=!1},1)}return F({getItems:m}),j({loop:S,dir:v,orientation:p,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{s.value=!0},onFocusableItemAdd:()=>{d.value++},onFocusableItemRemove:()=>{d.value--}}),(e,o)=>(M(),N(i(T),null,{default:g(()=>[P(i(V),{tabindex:s.value||d.value===0?-1:0,"data-orientation":i(p),as:e.as,"as-child":e.asChild,dir:i(v),style:{outline:"none"},onMousedown:o[0]||(o[0]=r=>n.value=!0),onMouseup:h,onFocus:C,onBlur:o[1]||(o[1]=r=>s.value=!1)},{default:g(()=>[w(e.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),W=K;export{W as R,Q as i};

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.