1import{a as Ue}from"./chunk-KSP3JTWR.js";import{a as Ie}from"./chunk-CBKCLXCN.js";import{a as Te}from"./chunk-RJUS6BOZ.js";import{a as Be}from"./chunk-SBGOI54C.js";import{b as Me}from"./chunk-FRRZBO73.js";import{b as d}from"./chunk-OA5GKU5O.js";import{a as Ne}from"./chunk-MJ4Y67YW.js";import{a as ke}from"./chunk-LT2NQL6J.js";import{a as Oe}from"./chunk-LGSDJCGQ.js";import{a as Ae}from"./chunk-5BYY3CUG.js";import{c as F,h as Se,l as S}from"./chunk-BZRY3WX3.js";import{d as w,ib as De,l as Ce,n as be,o as fe}from"./chunk-NGFOYMLE.js";import{a as _e,c as ge}from"./chunk-FCZ6MCLW.js";import{f as ve}from"./chunk-ABACGHJ4.js";import{c as ue}from"./chunk-GDB2PFOH.js";import{u as Pe}from"./chunk-7NUAVIFX.js";import{a as Le}from"./chunk-4MVYGVQH.js";import{Ac as M,Ca as z,Da as Z,Ec as x,Ib as u,Jb as _,Kb as ie,Lb as re,Mb as ne,Rc as oe,Tb as B,Tg as de,Wb as N,Yc as se,Zc as ae,cc as U,dc as y,dd as ce,fb as C,fc as j,gb as l,he as pe,ka as Q,kd as le,ob as ee,p as G,pe as Re,ta as q,te as me,ub as A,uh as Ee,v as Y,vb as te,vh as he,w as X,wb as v,zc as T}from"./chunk-ZIECK5QA.js";function rt(i,r){i&1&&(re(0),u(1,"ol",4)(2,"li")(3,"span"),ie(4,"sip-skeleton"),_()()(),ne())}function nt(i,r){if(i&1&&(u(0,"a",7),T(1,"decodeURIComponent"),y(2),_()),i&2){let p=B().$implicit;N("title",p.label),v("sipRouterLink",M(1,3,p.link)),C(2),j(" ",p.label," ")}}function ot(i,r){if(i&1&&(u(0,"span",8),y(1),_()),i&2){let p=B().$implicit;N("title",p.label),C(),j(" ",p.label," ")}}function st(i,r){if(i&1&&(u(0,"li"),A(1,nt,3,5,"a",6)(2,ot,2,2,"ng-template",null,1,x),_()),i&2){let p=r.$implicit,e=U(3);C(),v("ngIf",p.link)("ngIfElse",e)}}function at(i,r){if(i&1&&(u(0,"ol",4),A(1,st,4,2,"li",5),T(2,"async"),_()),i&2){let p=B();C(),v("ngForOf",M(2,1,p.crumbs$))}}var ye=(()=>{let r=class r{constructor(e,a,s,h,R,E,L,b,P,k,f,D){this.translation=e,this.sipPageMetaService=a,this.sipSiteConfigService=s,this.sipTireProductSearchService=h,this.renderer=R,this.cmsComponentService=E,this.tireService=L,this.myAccountService=b,this.onlineRegisterService=P,this.routingService=k,this.sipProductCompareService=f,this.document=D,this.BREADCRUMB_HOME="breadcrumb.home",this.BREADCRUMB_MY_ACCOUNT="header.link.account",this.BREADCRUMB_ONLINE_REGISTRATION="onlineregister.multi.breadcrumb",this.BREADCRUMB_COMPARE_PRODUCTS="product-compare.compare-page-breadcrumb",this.BREADCRUMB_ORDERS="text.account.orderHistory.viewOrders",this.BREADCRUMB_ORDER_DETAILS="text.account.order.title.details",this.BREADCRUMB_ORDER_CANCEL=d.ORDER_CANCEL?.labelKey??"",this.BREADCRUMB_ORDER_CANCEL_REVIEW=d.ORDER_CANCEL_REVIEW?.labelKey??"",this.BREADCRUMB_ORDER_CANCEL_CONFIRMATION=d.ORDER_CANCEL_CONFIRMATION?.labelKey??"",this.BREADCRUMB_ORDER_RETURN=d.ORDER_RETURNS?.labelKey??"",this.BREADCRUMB_ORDER_RETURN_REVIEW=d.ORDER_RETURN_REVIEW?.labelKey??"",this.BREADCRUMB_ORDER_RETURN_METHOD=d.ORDER_RETURN_METHOD?.labelKey??"",this.BREADCRUMB_ORDER_RETURN_COMPLETED=d.ORDER_RETURN_COMPLETED?.labelKey??"",this.pageType=me,this.jsonLdId="schemaorg_breadcrumb",this.shouldRenderSkeleton=this.cmsComponentService.shouldRenderSkeleton()}ngOnInit(){this.shouldRenderSkeleton||(this.crumbs$=X([this.sipPageMetaService.getMeta(),this.translation.translate(this.BREADCRUMB_HOME),this.sipSiteConfigService.getConfig(Ce),this.tireService.isTirePdp(),this.translation.translate("text.search.results"),this.getStoreFinderPageLabel(),this.translation.translate(this.BREADCRUMB_MY_ACCOUNT),this.myAccountService.isMyAccountPage(),this.onlineRegisterService.isOnlineRegisterPage(),this.translation.translate(this.BREADCRUMB_ONLINE_REGISTRATION),this.routingService.getParams(),this.tireService.getSessionSearchType(),this.tireService.isBatteriesPlp$,this.tireService.isBatteryPdp(),this.sipSiteConfigService.getConfig(fe),this.sipSiteConfigService.getConfig(be),this.translation.translate("automotive.breadcrumb.search.chooseservice"),this.sipProductCompareService.isCompareProductPage(),this.translation.translate(this.BREADCRUMB_COMPARE_PRODUCTS),this.translation.translate(this.BREADCRUMB_ORDERS),this.translation.translate(this.BREADCRUMB_ORDER_DETAILS),this.routingService.currentUrl$,this.translation.translate(this.BREADCRUMB_ORDER_CANCEL),this.translation.translate(this.BREADCRUMB_ORDER_CANCEL_REVIEW),this.translation.translate(this.BREADCRUMB_ORDER_CANCEL_CONFIRMATION),this.translation.translate(this.BREADCRUMB_ORDER_RETURN),this.translation.translate(this.BREADCRUMB_ORDER_RETURN_REVIEW),this.translation.translate(this.BREADCRUMB_ORDER_RETURN_METHOD),this.translation.translate(this.BREADCRUMB_ORDER_RETURN_COMPLETED)]).pipe(Y(([e,a,s,h,R,E,L,b,P,k,f,D,je,xe,Fe,we,He,Ve,$e,Ke,We,c,Je,Ge,Ye,Xe,Qe,qe,ze])=>{let o={label:a,link:"/"},O={label:He,link:we+"/selectservice"},g=this.tireService.isAutomotiveVehicleSearchEnabled&&D===w.VEHICLE,H="?isBatteriesSearch="+this.tireService.tireSearchCriteriaValue$.getValue();if(!e)return[o];if(h){let n={label:R,link:this.tireService.tireSearchURLFromCookie(s,S.FRONT)},t={label:e.heading,link:new URL(e.canonicalLink).pathname},m=g?[o,O,n,t]:[o,n,t];return this.injectJsonLd(m),m}else if(xe){let n={label:R,link:D===w.VEHICLE?Fe+H:s},t={label:e.heading,link:new URL(e.canonicalLink).pathname},m=g?[o,O,n,t]:[o,n,t];return this.injectJsonLd(m),m}else if(!E&&g&&f.fitmentType){let n={label:R,link:new URL(e.canonicalLink).pathname},t={label:R,link:this.tireService.tireSearchURLFromCookie(s,S.FRONT)},m=g?[o,O,t]:[o,n];return this.injectJsonLd(m),m}else if(!E&&g&&je){let n={label:R,link:new URL(e.canonicalLink).pathname+H},t=[o,O,n];return this.injectJsonLd(t),t}
1else if(P){let n={label:k,link:F.ONLINE_REGISTER};return[o,n]}else if(Ve){let n={label:$e,link:F.COMPARE_PRODUCTS};return[o,n]}else{e.breadcrumbs.forEach(t=>{t.link=t.link!=null&&t.link.length>0?t.link.indexOf("results/"+S.FRONT)>-1?this.sipTireProductSearchService.getURL(s,S.FRONT):t.link.indexOf("results/"+S.REAR)>-1?this.getTireProductSearchUrl(s):t.link:t.link,E&&(t.label=E)});let n=e.breadcrumbs?[o,...e.breadcrumbs]:[o];if(b){let t={label:L,link:"/my-account"},m=d.ORDERDETAILS?.pageId,Ze=d.REORDER?.pageId;if(b.pageId===m||b.pageId===Ze){let V={label:Ke,link:"/my-account/orders"},$=!!c&&c.includes("/cancel/"),et=!!c&&c.includes("/reorder/"),K=!!c&&c.includes("/return-"),W=($||et||K)&&f.orderCode?{label:We,link:`/my-account/order/${f.orderCode}`}:null,J=W?[o,t,V,W]:[o,t,V],I=e.breadcrumbs;$?I=[{label:c.includes("/cancel-review")?Ge:c.includes("/cancel-confirmation")?Ye:Je,link:c}]:K&&(I=[{label:c.includes("/return-review")?Qe:c.includes("/return-delivery-method")?qe:c.includes("/return-completed")?ze:Xe,link:c}]),n=I?[...J,...I]:J}else n=e.breadcrumbs?[o,t,...e.breadcrumbs]:[o,t]}return this.injectJsonLd(n),n}})))}getStoreFinderPageLabel(){return this.tireService.currentPage$.pipe(Q(e=>e.label===Se?this.translation.translate("storeFinder.link"):G(null)))}getTireProductSearchUrl(e){return this.sipTireProductSearchService.getURL(e,S.REAR)}injectJsonLd(e){let a=this.document.getElementById(this.jsonLdId);a&&this.document.body.removeChild(a);let s=this.renderer.createElement("script"),h=this.document.location.host?"https://"+this.document.location.host:"";s.type="application/ld+json",s.id=this.jsonLdId,s.text=ue({"@context":"https://schema.org","@type":"BreadcrumbList",name:"Breadcrumb",itemListElement:e.map((R,E)=>({"@type":"ListItem",position:E+1,item:{"@id":h+R.link,name:R.label}}))}),this.renderer.appendChild(this.document.body,s)}};r.\u0275fac=function(a){return new(a||r)(l(de),l(Te),l(ve),l(Ie),l(ee),l(ge),l(De),l(Me),l(Ue),l(_e),l(Be),l(oe))},r.\u0275cmp=z({type:r,selectors:[["sip-cms-breadcrumb"]],decls:5,vars:5,consts:[["breadcrumbs",""],["crumbWithoutLink",""],["role","region",1,"breadcrumb-section"],[4,"ngIf","ngIfElse"],[1,"breadcrumb"],[4,"ngFor","ngForOf"],[3,"sipRouterLink","title",4,"ngIf","ngIfElse"],[3,"sipRouterLink","title"],[3,"title"]],template:function(a,s){if(a&1&&(u(0,"div",2),T(1,"cxTranslate"),A(2,rt,5,0,"ng-container",3)(3,at,3,3,"ng-template",null,0,x),_()),a&2){let h=U(4);te("aria-label",M(1,3,"text.headline.breadcrumbs")),C(2),v("ngIf",s.shouldRenderSkeleton)("ngIfElse",h)}},dependencies:[se,ae,Ae,Oe,ce,Ee,Le],styles:["[_nghost-%COMP%] sip-skeleton[_ngcontent-%COMP%]{width:15em;height:20px}"],changeDetection:0});let i=r;return i})();var wt=(()=>{let r=class r{};r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=Z({type:r}),r.\u0275inj=q({providers:[Re({cmsComponents:{BreadcrumbComponent:{component:ye}}})],imports:[le,he,pe,ke,Ne,Pe]});let i=r;return i})();export{wt as a};
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.