1import{g as $}from"./chunk-D3VLNOII.js";import{oa as H}from"./chunk-ROAQJP46.js";import{$d as F,F as x,Gd as k,H as g,He as y,Me as M,Ne as j,Oe as B,Qa as T,Qc as v,R as _,Sc as b,Ud as C,Vd as L,Wa as D,Wd as G,a as P,aa as S,c as f,d as A,ga as m,ja as N,kd as O,md as w,na as U,sa as E,v as R,va as a}from"./chunk-ADQO3XXX.js";import{m as I}from"./chunk-3JMZ37NM.js";var X="theMenu",V="page",z={ADD_TO_CART:"/cart/add",ADD_TO_CART_PICKUP:"/store-pickup/cart/add",CHECKOUT:"/checkout/single",LEGACY_CHECKOUT:"/costcocheckout/single",LEGACY_CHECKOUT_ORDER_CONFIRMATION:"/checkout/orderConfirmation",CHECKOUT_ORDER_CONFIRMATION:"/checkout/confirmation",CART:"/cart",LOGIN:"/login",ONLINE_REGISTER:"/onlineregister/steps",ONLINE_REGISTER_CONFIRMATION:"/onlineregister/confirmation",COMPARE_PRODUCTS:"/compare-products",MY_ORDERS:"/my-account/orders",ORDER_DETAILS:"/my-account/order"},J={PDP:"productDetails",PDP_TIRES:"productDetails-tires",NO_RESULT_PAGE:"searchEmpty",NOT_FOUND_PAGE:"productNotFound"},q={NOT_FOUND_PAGE:"categoryNotFound"},Q={CART_PAGE:"cartPage"},Z="storefinder",ee={FRONT:"front",REAR:"rear",MULTI:"multi"},te={TIRE_SEARCH_PAGE:"tiresearch"},oe={PAGE_ID_SUFFIX:"MembershipPage",PAGE_ID_SUFFIX_ONLINE:"OnlineRegistrationPage"},ie="ShopMenu",re={PAGE_ID_SUFFIX:"compare-products"},ne="md";var fe=(()=>{let r=class r extends B{constructor(e,t,i,s,n,c,h,d,p){super(t,i,s,d,c,p),this.loggerFactory=e,this.injector=n,this.router=c,this.viewportScroller=h,this.routingParamsService=d,this.location=p,this.log=this.loggerFactory.getLogger("SipRoutingService"),this._currentUrl$=this.router.events.pipe(g(o=>o instanceof C),R(o=>this.router.url.split("#")[0]),U(o=>this.log.log("CurrentUrl","Changed",o)),m(1)),this.sub=new P,this.internalNextPageContext=new f,this.mergedNextPageContext=x(this.internalNextPageContext,super.getNextPageContext()).pipe(m(1)),this.internalPageContext=new f,this.mergedPageContext=x(this.internalPageContext,super.getPageContext()).pipe(m(1)),this.continueShoppingUrl=new A("/"),this.continueShoppingUrl$=this.continueShoppingUrl.asObservable(),this._navigationHistory$=this.router.events.pipe(g(o=>o instanceof C),N({}),S(),R(o=>{let l=o[0]?.url?.split("?")[0],Y=o[1]?.url?.split("?")[0];return{previousUrl:l,currentUrl:Y}})),this.init()}init(){this.winRef.nativeWindow&&this.handleNavigationErrors()}back(e){if(e){this.location.back();return}super.back()}pushNewPageContext(e){return I(this,null,function*(){let t=this.router.routerState.root.snapshot;this.internalNextPageContext.next(e),(yield this.cmsPageGuard.canActivate(t,this.router.routerState.snapshot).pipe(_(1)).toPromise())&&this.internalPageContext.next(e)})}get cmsPageGuard(){return this._cmsPageGuard||(this.cmsPageGuard=this.injector.get(H)),this._cmsPageGuard}set cmsPageGuard(e){this._cmsPageGuard=e}getPageContext(){return this.mergedPageContext}getUntamperedPageContext(){return super.getPageContext()}getNextPageContext(){return this.mergedNextPageContext}handleNavigationErrors(){this.sub.add(this.router.events.pipe(g(e=>e instanceof G)).subscribe(e=>{this.log.info("unhandled navigation error, reloading page with updated url"),this.winRef.nativeWindow.location.href=e.url}))}routeParagraphLinks(e){e.forEach(t=>{t.addEventListener("click",i=>{let s=i.currentTarget;if(window.location.host===s.host){i.preventDefault();let n=s.pathname,c;try{let h=new URL(s.href);n=h.pathname+h.search+h.hash,c=h.hash?.split("#")[1]??""}finally{c&&window.location.pathname===n?this.viewportScroller.scrollToAnchor(c):this.router.navigateByUrl(n)}}})})}get currentUrl$(){return this._currentUrl$}ngOnDestroy(){this.sub.unsubscribe()}pushContinueShoppingUrl(e){this.continueShoppingUrl.next(e)}getContinueShoppingUrl(){return this.continueShoppingUrl$}get navigationHistory$(){return this._navigationHistory$}redirectSafely(e,t){this.router.events.pipe(g(i=>i instanceof L),_(1)).subscribe(()=>{this.router.navigate(e,{queryParams:t})})}};r.\u0275fac=function(t){return new(t||r)(a($),a(k),a(y),a(M),a(T),a(F),a(w),a(j),a(b))},r.\u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"});let u=r;return u})();var Ae=(()=>
1{let r=class r{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=O(this.platformId)}static getCookieRegExp(e){let t=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),r.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);let i=r.getCookieRegExp(e).exec(this.document.cookie);return i[1]?r.safeDecodeURIComponent(i[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},t=this.document;return t.cookie&&t.cookie!==""&&t.cookie.split(";").forEach(i=>{let[s,n]=i.split("=");e[r.safeDecodeURIComponent(s.replace(/^ /,""))]=r.safeDecodeURIComponent(n)}),e}set(e,t,i,s,n,c,h,d){if(!this.documentIsAccessible)return;if(typeof i=="number"||i instanceof Date||s||n||c||h){let l={expires:i,path:s,domain:n,secure:c,sameSite:h||"Lax",partitioned:d};this.set(e,t,l);return}let p=encodeURIComponent(e)+"="+encodeURIComponent(t)+";",o=i||{};if(o.expires)if(typeof o.expires=="number"){let l=new Date(new Date().getTime()+o.expires*1e3*60*60*24);p+="expires="+l.toUTCString()+";"}else p+="expires="+o.expires.toUTCString()+";";o.path&&(p+="path="+o.path+";"),o.domain&&(p+="domain="+o.domain+";"),o.secure===!1&&o.sameSite==="None"&&(o.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),o.secure&&(p+="secure;"),o.sameSite||(o.sameSite="Lax"),p+="sameSite="+o.sameSite+";",o.partitioned&&(p+="Partitioned;"),this.document.cookie=p}delete(e,t,i,s,n="Lax"){if(!this.documentIsAccessible)return;let c=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:c,path:t,domain:i,secure:s,sameSite:n})}deleteAll(e,t,i,s="Lax"){if(!this.documentIsAccessible)return;let n=this.getAll();for(let c in n)n.hasOwnProperty(c)&&this.delete(c,e,t,i,s)}};r.\u0275fac=function(t){return new(t||r)(a(v),a(D))},r.\u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"});let u=r;return u})();function Ne(u){return u.replace(/%2B/g,"+").replace(/%2B/g,"+").replace(/%25(2[1-9A-F]|3[A-F]|40|5[B-F]|60|7[B-E])/g,"%$1")}var Ue=/^https?:\/\/|^\/\/|javascript:|mailto:"/i;var K=class{};var ve="enable_entra",be="general_login_pw_strip_regex",Oe="enable_spa_single_checkout",we="search_service_enabled",ke="search_service_tires_enabled";export{fe as a,X as b,V as c,z as d,J as e,q as f,Q as g,Z as h,ee as i,te as j,oe as k,ie as l,re as m,ne as n,Ae as o,K as p,ve as q,be as r,Oe as s,we as t,ke as u,Ne as v,Ue as w};
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.