PageSourceSearch

https://swiss-academies.ch/_nuxt/D6SiLBhx.js

js swiss-academies.ch collected 2026-10-02 15:01:58 UTC 2,344 bytes, 2 lines download raw bytes

1import{b as L,E as N,_ as T,j as V}from"./C677hslQ.js";import{_ as D}from"./b59VrHHm.js";import{i as S,b as v,k as w,G as j,n as A,u as f,M as a,P as h,X as x,V as E,N as l,J as k,_ as C,R as b,Y as R,Z as W,L as $,Q as g,z as F,ad as I,a0 as M}from"./CrQeYvpp.js";const O={key:0,class:"slide-left relative mx-2 shrink-0"},K={__name:"Breadcrumbs",props:{withCurrentPage:{type:Boolean,default:!0}},setup(y){const i=y,n=L(),m=S(N,null),_=v(!1),r=v(null),t=w(()=>{var o,p;const e=((o=m.value)==null?void 0:o.breadcrumbs)||((p=m.value)==null?void 0:p.breadcrumbsFrmStructure)||[];return i.withCurrentPage?e:(e==null?void 0:e.filter(d=>d.url!==n.path))||[]});w(()=>{let e=t.value.length-1;return i.withCurrentPage&&(e=t.value.length-2),e<0?0:t.value[e]});function u(e){var o;return e.url&&n.path!==e.url&&((o=e.entry)!=null&&o.published)?T:"span"}j(async()=>{await A(),B(),await new Promise(e=>setTimeout(e,500)),_.value=!0});function c(){return r.value.scrollWidth>=r.value.clientWidth}async function B(){c()&&(await new Promise(e=>setTimeout(e,500)),r.value.scrollLeft=r.value.scrollWidth)}return(e,o)=>{const p=V,d=D;return f(t)?(a(),h(d,{key:0},{default:x(()=>[E("ul",{ref_key:"element",ref:r,class:"hide-scrollbar link -mx-6 mb-12 flex max-w-full items-center overflow-x-auto px-6 py-1 text-base text-red-500 transition-opacity print:mb-8"},[(a(!0),l(k,null,C(f(t),(s,P)=>(a(),l("li",{key:s.url,class:"flex items-center"},[(a(),h(b(u(s)),{class:"slide-left whitespace-nowrap",to:s.url,"aria-label":s.title},{default:x(()=>[R(W(s.title),1)]),_:2},1032,["to","aria-label"])),P<f(t).length-1?(a(),l("span",O,[$(p,{class:"h-[0.7em]"})])):g("",!0)]))),128))],512)]),_:1})):g("",!0)}}},Q=F({__name:"LoaderComponents",props:{components:{}},setup(y){function i(n){return n.type?n.type.replaceAll(/_/g,"-"):(console.error("ComponentLoader: Could not find component with type of",n),null)}return(n,m)=>{const _=I("editor-target");return a(),l("div",null,[(a(!0),l(k,null,C(n.components,(r,t)=>{var u,c;return M((a(),h(b(i(r)),{key:r.id??t,data:r,"scroll-to-index":t,index:t,"prev-component":(u=n.components[t-1])==null?void 0:u.type,"next-component":(c=n.components[t+1])==null?void 0:c.type},null,8,["data","scroll-to-index","index","prev-component","next-component"])),[[_,t]])}),128))])}}});export{K as _,Q as a};
2//# sourceMappingURL=D6SiLBhx.js.map

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.