1import{_ as q,H as j,o as r,c as n,a as u,F as _,m as h,f as x,t as C,d as H,e as d,z as L,J as N,g as V}from"./app-D7q6L0nY.js";const F={class:"layout-container"},O={class:"groups-grid"},Q={key:0,class:"links-list"},R=["href","onClick"],S={__name:"QuickAccess",props:{config:{type:Object,required:!0},block:{type:Object,required:!0}},setup(g){const m=g,v=j("leafletBlocks",[]),y=V(),k=d(()=>y.props.locale||"en"),f=L(null),{scrollToAnchor:A}=N(),B=(t,e)=>{var l;const s=((l=f.value)==null?void 0:l.offsetHeight)||0;A(t,e,s)},T=d(()=>v.reduce((t,e)=>(t[e.id]=e,t),{})),b=d(()=>{var t;return(((t=m.config)==null?void 0:t.groups)||[]).map(e=>{var c,a;const s=typeof e.title=="string"?e.title:((c=e.title)==null?void 0:c[k.value])||((a=e.title)==null?void 0:a.en)||"",l=(e.links||[]).map(i=>{const p=T.value[i.id];if(!p)return null;let o=p.title;return o&&typeof o=="object"&&(o=o[k.value]||o.en),{id:i.id,title:o,url:`#block-${i.id}`}}).filter(i=>i!==null);return{title:s,links:l}})});return(t,e)=>(r(),n("div",{ref_key:"quickAccessRef",ref:f,class:"quick-access"},[u("div",F,[u("div",O,[(r(!0),n(_,null,h(b.value,(s,l)=>(r(),n("div",{key:l,class:"group"},[s.links&&s.links.length?(r(),n("ul",Q,[(r(!0),n(_,null,h(s.links,c=>(r(),n("li",{key:c.id,class:"link-item"},[u("a",{href:c.url,class:"link-anchor",onClick:a=>B(a,`block-${c.id}`)},[e[0]||(e[0]=u("i",{class:"icon-right-tiny"},null,-1)),x(C(c.title),1)],8,R)]))),128))])):H("",!0)]))),128))])])],512))}},z=q(S,[["__scopeId","data-v-2578401c"]]);export{z as default};
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.