PageSourceSearch

https://www.rosebikes.com/_nuxt/NavigationBreadcrumb-DjSZVlhV.js

js rosebikes.com collected 2026-09-29 05:58:52 UTC 3,387 bytes, 1 lines download raw bytes

1import{o as N}from"./nuxt-CUHYhotn.js";import{$t as v,B as O,C as P,K as z,U as o,Xt as c,b as k,ct as S,f as T,g as s,h as K,i as d,kt as r,p as y,x as L,xt as $}from"./runtime-core.esm-bundler-s8AntrsW.js";import{p as E}from"./error-DEOTGMvs.js";import{h as I}from"./useApi-BPuI6ZR9-BUF9jjaR.js";import{t as w}from"./RouteEnum-CQbj0FUZ.js";import{n as M}from"./vue-i18n-C5Raox96.js";import{t as V}from"./TextLink-Bf9e2vyq.js";import{F as j}from"#entry";var A=()=>{const{t:p}=M(),m=I(),f=[{name:p("global.home"),url:w.Home}],x=T(()=>{const e=[...f];for(const a of m.matched)if(a.path!==w.Home){let l=a.meta?.translationKey?p(a.meta.translationKey):void 0,u;const t=B(a),h=b(t);if(h&&h?.length>0&&(u=i(m.params,h)),!l&&u){const n=b(C(a));n&&(l=R(n)?.join(" - "))}let g={name:a.name,params:u};a.meta.redirect&&(g=a.meta.redirect),e.push({name:l||a.name,url:g})}return e}),B=e=>e?.path?.match(/:[a-zA-Z0-9]+\(\)/g),C=e=>e?.path?.match(/(:[a-zA-Z0-9]+\(\)([a-zA-Z0-9-_])*)+$/g)?.[0]?.split(/-|_/g),b=e=>e?.map(a=>a.substring(1,a.length-2)),R=e=>e.map(a=>m.params?.[a]),i=(e,a)=>Object.fromEntries(Object.entries(e).filter(([l])=>a.includes(l)));return{breadcrumbItems:x}},Z={key:0,class:"flex gap-1 h-full","data-test":"breadcrumb-list"},D={"data-test":"breadcrumb-static"},F=P({__name:"NavigationBreadcrumb",props:{items:{},inverted:{type:Boolean,default:!1},width:{},bgColor:{},padding:{type:Boolean,default:!0},mode:{default:"link"},homeTitle:{}},emits:["click"],setup(p,{emit:m}){const f=p,x=m,{public:B}=N(),{MGNL_STORE:C}=B,{name:b}=E(),{breadcrumbItems:R}=A(),i=T(()=>f.items||R.value),e=T(()=>f.bgColor?.field==="black"),a=$();function l(t){x("click",t)}function u(t){return"canonicals"in t}return O(()=>{a.value?.scroll({left:1e3})}),(t,h)=>{const g=V;return o(),s("div",{class:c({"bg-black pt-5 -mb-px":r(e),"content-wrapper-header":t.width==="header"&&!r(e),"content-wrapper-full":t.width==="full"&&!r(e)})},[y("div",{class:c(r(e)?"content-wrapper-full":"")},[y("nav",{ref_key:"scrollContainer",ref:a,"data-test":"breadcrumb-navigation",class:c(["flex items-strech overflow-x-auto scrollbar-hide",{"py-5 ml:py-8 px-5 xl:px-2":t.padding&&(t.width!=="header"||r(e)),"py-5 ml:py-8 px-0 xl:px-0":t.padding&&t.width==="header"&&!r(e)}])},[r(i)?(o(),s("ul",Z,[(o(!0),s(d,null,z(r(i).slice(0,-1),(n,_)=>(o(),s("li",{key:`breadcrumb-item-${n.name}-${_}`,class:c(["flex h-full gap-1 after:content-['/'] after:text-t-xs",[t.inverted?"after:text-gray-70":"after:text-gray-50"]]),"data-test":"breadcrumb-list-item"},[L(g,{to:u(n)?n.canonicals?.[r(C)]??n.url:n.url,"is-button":t.mode==="button","in-list":!0,inverted:t.inverted,"color-mode":"medium",sizes:{xs:r(j).SM},"data-test":"breadcrumb-link","link-item":{context:r(b)?.toString(),component:"Breadcrumb",value:n.name},onClick:H=>l(n)},{default:S(()=>[t.homeTitle&&_==0?(o(),s(d,{key:0},[k(v(t.homeTitle),1)],64)):(o(),s(d,{key:1},[k(v(n.name),1)],64))]),_:2},1032,["to","is-button","inverted","sizes","link-item","onClick"])],2))),128)),y("li",{class:c(["text-t-xs whitespace-nowrap",[t.inverted?"text-gray-90":"text-h-pri",r(e)?"text-h-pri-inv":""]]),"data-test":"breadcrumb-list-item"},[y("span",D,[t.homeTitle&&r(i).length==1?(o(),s(d,{key:0},[k(v(t.homeTitle),1)],64)):(o(),s(d,{key:1},[k(v(r(i)?.[r(i).length-1]?.name),1)],64))])],2)])):K("",!0)],2)],2)],2)}}}),ee=Object.assign(F,{__name:"NavigationBreadcrumb"});export{ee 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.