1import{_ as F}from"./CYgIEGmB.js";import A from"./CdW0Cn4D.js";import{d as I,C as J,D as L,z as N,r as p,a as O,J as V,p as f,c as n,e as s,l as v,f as a,h as i,F as h,i as k,j as y,B as x,t as w,k as q,n as z,m as T}from"./Dv1iPJXt.js";const D={key:0,class:"desktop"},M={class:"position-bottom items"},P={key:1,class:"mobile"},R={class:"items"},U=I({__name:"section-jump-to",props:{items:{},fetch:{type:Boolean},name:{}},async setup(C){let r,m;const t=C,{data:c}=([r,m]=J(()=>L("/menus",{query:{name:t.name},onResponseError({error:e}){console.warn("<wp-menu> Fetch Error:",e)},immediate:t.fetch})),r=await r,m(),r),b=N(),l=p(!1),d=p(!1),g=Array.isArray(c==null?void 0:c.value)?c.value.map(e=>({to:(e==null?void 0:e.url)||"",text:(e==null?void 0:e.title)||""})):[];O(()=>{const e=()=>{d.value=b.sTop>10};window.addEventListener("scroll",e,{passive:!0}),e(),V(()=>window.removeEventListener("scroll",e))});const B=f(()=>["section-jump-to",{"is-open":l.value},{"is-scrolled":d.value}]),_=f(()=>t!=null&&t.fetch?g:(t==null?void 0:t.items)||[]),S=()=>{l.value=!l.value},j=()=>{l.value=!1};return(e,W)=>{const u=F,E=A;return s(),n("div",{class:z(a(B))},[a(_).length?(s(),n("div",D,[i("div",M,[(s(!0),n(h,null,k(a(_),o=>(s(),y(u,x({key:o.to},{ref_for:!0},o),null,16))),128))])])):v("",!0),a(_).length?(s(),n("div",P,[w(u,{class:"position-bottom btn-jump-to",text:"Jump to",onClick:S},{after:q(()=>[w(E,{class:"icon-karat"})]),_:1}),i("div",{class:"menu-overlay",onClick:j},[i("div",R,[(s(!0),n(h,null,k(a(_),o=>(s(),y(u,x({key:o.to},{ref_for:!0},o,{class:"item"}),null,16))),128))])])])):v("",!0)],2)}}}),K=Object.assign(T(U,[["__scopeId","data-v-627d6dab"]]),{__name:"SectionJumpTo"});export{K as _};
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.