1import{n as e}from"./B_nDuXWP.js";import{s as t}from"./VALu4SJC.js";import{D as n,E as r,On as i,Zn as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,y as m}from"./CJOrt7RF.js";import{p as h}from"./DHNRalsD.js";import{t as g}from"./CPIQkRVN.js";import{f as _}from"./CZS0_kmp.js";import{t as v}from"./BxXNGZbE.js";var y={key:0},b={key:1,class:`hover:bg-gray inline-block aspect-square rounded-full bg-gray-200 px-2 py-1.5 transition duration-300 hover:text-white`},x={key:0},S={__name:`TheBreadcrumbs`,setup(S){let C=t(),w=h(),{t:T,locale:E}=e(),D=_(),O=c(()=>E.value!==C.public.i18n?.defaultLocale),k=c(()=>{let e=`/${E.value}`;return O.value&&(w.path===e||w.path.startsWith(`${e}/`))?w.path.slice(e.length)||`/`:w.path}),A=e=>O.value?`/${E.value}${e}`:e,j=e=>({name:e.title,path:e.slug,to:`/`+T(`routes.products`)+`/`+e.slug,is_linkable:e.is_linkable&&!!e.slug}),M=(e,t=[],n=[])=>{for(let r of t){if(r.slug===e)return n.concat(j(r));if(n.some(e=>e.path===r.slug))continue;let t=M(e,r.children,n.concat(j(r)));if(t)return t}},N=c(()=>{let e=D.categories,t=k.value.split(`/`);return t.includes(T(`routes.products`))?e===void 0?[]:M(t[2],e)||[]:(t.shift(),t.reduce((e,t,n)=>{if(t){let r=t.replace(/-/g,` `),i=e[n-1]?e[n-1].to:``;e.push({path:t,to:i+`/`+t,name:r[0].toUpperCase()+r.substring(1),is_linkable:!0})}return e},[]))});return(e,t)=>{let c=v,h=g;return l(),o(`div`,{class:a(i(C).public.storeCode===`FZ`?`text-xs`:`text-custom`)},[n(h,{to:e.$localePath(`/`),class:a([`mr-1 no-underline`,{"hover:underline":i(C).public.storeCode===`FZ`}]),"aria-label":`Home`},{default:d(()=>[i(C).public.storeCode===`FZ`?(l(),o(`span`,y,f(i(T)(`common.home`)),1)):i(C).public.storeCode===`RL`?(l(),o(`div`,b,[n(c,{icon:`home`,size:`5`,class:`-mt-0.5`})])):(l(),p(c,{key:2,icon:`home`,size:`6`,class:`-mt-0.5`}))]),_:1},8,[`to`,`class`]),(l(!0),o(u,null,s(i(N),(e,t)=>(l(),o(u,null,[e.is_linkable&&e.to!==`/`+i(T)(`routes.pages`)?(l(),o(`span`,{key:t},[i(C).public.storeCode===`FZ`?(l(),o(`span`,x,`/`)):(l(),p(c,{key:1,icon:`right`,size:`5`,class:`-mt-0.5`})),t===i(N).length-1?(l(),o(`span`,{key:3,class:a([`ml-1`,i(C).public.storeCode===`FZ`?`text-gray-400`:`font-bold`])},f(e.name),3)):(l(),p(h,{key:2,to:A(e.to),class:`my-4 ml-1 mr-1 inline-block no-underline hover:underline md:my-0`},{default:d(()=>[r(f(e.name),1)]),_:2},1032,[`to`]))])):m(``,!0)],64))),256))],2)}}};export{S as t};
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.