1import{aW as V,b6 as z,aX as E,bC as R,bd as W,bw as X}from"./_yozwv_M.js";import{_ as D}from"./DvdIVYZI.js";import{z as $,d as f,M as c,a6 as y,u as e,R as n,a9 as v,a7 as o,V as A,aa as F,X as g,Y as M,a8 as S}from"./bHGN7eKL.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new r.Error().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="367fa61e-5a6c-476a-9aa5-452854d6300f",r._sentryDebugIdIdentifier="sentry-dbid-367fa61e-5a6c-476a-9aa5-452854d6300f")}catch{}})();const U={key:0,class:"pointer-events-auto sm:container"},Y={class:"scrollbar-hidden overflow-x-scroll py-2 pl-1"},j={key:1,class:"sr-only"},K=$({__name:"Breadcrumbs",setup(r){const l=V(),{t:i,locale:H}=z(),d=E(),L=R(),N=f(()=>{var a,m,p,h;return(a=d==null?void 0:d.path)!=null&&a.includes("/search")?i("contentType.search"):(m=d==null?void 0:d.path)!=null&&m.includes("/events")?i("contentType.events"):i(`contentType.${(h=(p=l.currentStory)==null?void 0:p.content)==null?void 0:h.component}`)}),u=f(()=>[{icon:"i-heroicons-home",label:"",to:`/${H.value}`},{label:l.currentBreadcrumbs.length<1?N.value:""},...l.currentBreadcrumbs.filter(a=>a.label)].filter(a=>!!a.label||!!a.icon)),s=f(()=>{var a;return((a=L.ui)==null?void 0:a.breadcrumb)??{}}),_=f(()=>{var a;return((a=s.value.default)==null?void 0:a.divider)??"·"}),T=f(()=>typeof _.value=="string"&&_.value.startsWith("i-")),w=(a,m)=>m===0&&a.icon==="i-heroicons-home";return(a,m)=>{const p=W,h=X;return e(u)&&e(u).length>0?(n(),c("div",U,[v("div",Y,[v("div",{class:o(e(s).wrapper)},[v("ol",{class:o(e(s).ol)},[(n(!0),c(A,null,F(e(u),(t,b)=>{var I,k,B;return n(),c("li",{key:b,class:o(e(s).li)},[t.to?(n(),g(h,{key:0,to:t.to,class:o([e(s).base,b===e(u).length-1?e(s).active:e(s).inactive]),"aria-label":w(t,b)?e(i)("breadcrumb.home.ariaLabel"):void 0},{default:M(()=>{var C;return[t.icon?(n(),g(p,{key:0,name:t.icon,class:o((C=e(s).icon)==null?void 0:C.base),mode:"svg"},null,8,["name","class"])):y("",!0),w(t,b)?(n(),c("span",j,S(e(i)("breadcrumb.home.label")),1)):t.label?(n(),c("span",{key:2,class:o(e(s).label)},S(("decodeSoftHyphen"in a?a.decodeSoftHyphen:e(D))(t.label)),3)):y("",!0)]}),_:2},1032,["to","class","aria-label"])):(n(),c("span",{key:1,class:o([e(s).base,e(s).active])},[t.icon?(n(),g(p,{key:0,name:t.icon,class:o((I=e(s).icon)==null?void 0:I.base)},null,8,["name","class"])):y("",!0),v("span",{class:o(e(s).label)},S(("decodeSoftHyphen"in a?a.decodeSoftHyphen:e(D))(t.label)),3)],2)),b<e(u).length-1&&e(T)?(n(),g(p,{key:2,name:e(_),class:o((k=e(s).divider)==null?void 0:k.base)},null,8,["name","class"])):b<e(u).length-1?(n(),c("span",{key:3,class:o((B=e(s).divider)==null?void 0:B.base),"aria-hidden":"true"},S(e(_)),3)):y("",!0)],2)}),128))],2)],2)])])):y("",!0)}}});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.