1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["commons/resources/BranchfinderOverlay.component.5UUDJgSz.js","commons/resources/ui.store.CS1T3WPe.js","commons/resources/Shared.constants.BTZvZKtd.js","commons/resources/ContiLitElement.Dq57odma.js","commons/resources/i18nContext.DVJtxAdt.js","commons/resources/MediaQueryService.OgE5-Rsx.js","commons/resources/breakpoints.Cf3V0t-l.js","commons/resources/componentErrorHandler.D8797G22.js","commons/resources/Modal.template.C0-4bqav.js","commons/resources/bundle-mjs.CShF8ZT6.js","commons/resources/ModalHeader.template.BqRscxMY.js","commons/resources/ScrollOverlay.component.BUApStKR.js","commons/resources/CustomerGroup.component.DS2w1HPZ.js","commons/resources/when.CI7b_ccM.js","commons/resources/branchfinder.store.BmNd2QoE.js","commons/resources/Button.template.BINrGeyW.js","commons/resources/ModalButtons.template.5EcL6VT6.js","commons/resources/ScrollToTop.component.KsZiRmrv.js","commons/resources/IntersectingObserver.service.D0KXK_0B.js","commons/resources/sendToSecondaryThread.DGUMvHr3.js","commons/resources/AppointmentOverlay.component.BnAM_hjz.js","commons/resources/task.BnN3loeR.js","commons/resources/query.x48B6FB_.js","commons/resources/ref.8WLt9OzH.js","commons/resources/async-directive.C8tFD7F4.js","commons/resources/directive.CwRn8Fwj.js","commons/resources/S4TItemApi.2hNGXpAV.js","commons/resources/forms.x8opVoKG.js","commons/resources/getI18nTextOrUndefined.BmosXKhZ.js","commons/resources/dateTimeUtilities.BzeweYZO.js","commons/resources/parseISO.DBkoYoqG.js","commons/resources/Easing.constants.D_q5jE8X.js","commons/resources/Calendar.component.BrmMtCSQ.js","commons/resources/Label.template.CXC6dI0J.js","commons/resources/getDetailsLink.CGAHDwlx.js","commons/resources/init.services.C3stmOaW.js","commons/resources/bike.store.ChbHNUha.js","commons/resources/rim.store.BD2jgqa0.js","commons/resources/service.store.BpWxaQ_w.js","commons/resources/ServiceApi.types.hOxeXwF6.js","commons/resources/ErrorPage.component.BjwrGnho.js","commons/resources/unsafe-html.njlgIC4A.js"])))=>i.map(i=>d[i]); 2import{J as d,x as S,v as w,b,d as L,D as I,_ as l,X as O,U as y,G as A,av as R,aw as C,ax as m,u as M,ay as x,E as B,t as N,N as P}from"./commons/resources/ui.store.CS1T3WPe.js";import{j as F,r as D,t as T,C as Y,s as u,x as v,a as V,n as o,d as j,b as k,c as e,e as U}from"./commons/resources/ContiLitElement.Dq57odma.js";import{l as H,a as $}from"./commons/resources/loadAsyncScript.DDW2Exsf.js";import{s as h}from"./commons/resources/sendToSecondaryThread.DGUMvHr3.js";import{H as _,B as z,R as G,A as K,w as W}from"./commons/resources/Shared.constants.BTZvZKtd.js";import{c as Z,G as q}from"./commons/resources/i18nContext.DVJtxAdt.js";import{t as J}from"./commons/resources/bundle-mjs.CShF8ZT6.js";import{g as X}from"./commons/resources/getI18nTextOrUndefined.BmosXKhZ.js";import{L as Q}from"./commons/resources/Link.template.DDTxkTR6.js";const ee=i=>{const a=document.createElement("div");return F(i,a),a.innerHTML};var te=Object.defineProperty,re=Object.getOwnPropertyDescriptor,E=(i,a,s,n)=>{for(var p=n>1?void 0:n?re(a,s):a,c=i.length-1,g;c>=0;c--)(g=i[c])&&(p=(n?g(a,s,p):g(p))||p);return n&&p&&te(a,s,p),p};const oe=15e3;let f=class extends Y{constructor(){super(...arguments),this.unsubscribeShopError=()=>{},this.renderSnackbar=()=>{const{type:i,caption:a}=this.snackbarContent,s=u(d).shopError;return v` 3 <div class="fixed w-full top-0 z-[60]"> 4 <conti-snackbar 5 type="${i}" 6 caption="${a}" 7 class="absolute w-full duration-300 ease-navigation ${this.shopErrorSnackbarClasses}" 8 ?show="${!!a}" 9 withCloseButton 10 @close="${()=>{s?.hasError?S.dismissShopErrorSnackbar():s?.isRecovered&&S.dismissShopRecoveredSnackbar()}}" 11 ></conti-snackbar> 12 </div> 13 `}}firstUpdated(i){this.contiApp=document.querySelector("conti-app"),this.handleShopError()}disconnectedCallback(){this.unsubscribeShopError()}handleShopRecovery(){S.setShopError(!1)}handleShopError(){this.shopError=u(d).shopError,this.unsubscribeShopError=V(d,()=>{const i=u(d).shopError;this.shopError!==i&&(this.shopError=i,(i?.isRecovered||i===null)&&this.contiApp?.removeAttribute("showErrorPageContentOnShopError"))}),this.shopError&&this.waitForHealthyShopService(this.handleShopRecovery)}async checkHealth(){try{return await w.checkHealth()}catch{return!1}}async waitForHealthyShopService(i){if(await this.checkHealth()){i?.();return}setTimeout(()=>this.waitForHealthyShopService(i),oe)}get shopErrorSnackbarClasses(){const i="translate-y-0 opacity-100 visible",a="-translate-y-16 opacity-0 invisible",s=u(d).shopError,n=s?.hasError&&!s?.userDismissedError,p=s?.isRecovered&&!s?.userDismissedRecovered;return J(a,(n||p)&&i)}get snackbarContent(){const i=u(d).shopError;if(i?.hasError&&!i?.userDismissedError)return{type:"warning",caption:this.$t("shop.health.check.error")};if(i?.isRecovered&&!i?.userDismissedRecovered){const a=X(this.$t,"shop.health.check.recovered.linkText");if(a){const n=this.$t("shop.health.check.recovered",a).split(a);return{type:"success",caption:`${n[0]}${ee(Q({text:a,href:window.location.href}))}${n[1]||""}`}}else return{type:"success",caption:this.$t("shop.health.check.recovered")}}return{type:"warning",caption:""}}render(){return v`${this.renderSnackbar()}`}};E([D()],f.prototype,"shopError",2);E([Z({context:q.context,subscribe:!0})],f.prototype,"$t",2);f=E([T(_)],f);var ie=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,r=(i,a,s,n)=>{for(var p=n>1?void 0:n?ae(a,s):a,c=i.length-1,g;c>=0;c--)(g=i[c])&&(p=(n?g(a,s,p):g(p))||p);return n&&p&&ie(a,s,p),p};let t=class extends j{constructor(){super(...arguments),this.disabledEditMode=!1,this.authorRunMode=!1,this.hideBranchNextAppointment=!1,this.hideAlternateLicencePlate=!1,this.deactivatedShop=!1,this.showErrorPageContentOnShopError=!1,this.unsubscribeGlobalError=()=>{},this.unsubscribe=()=>{},this.checkLoginStatus=async(i=b.isLoggedIn||!1)=>{L.customComponentPush({eventName:I.USER_DATA,component:"user",payload:{loginStatus:i}})},this.initI18nService=async()=>{const{default:i}=await l(async()=>{const{default:s}=await import("./commons/resources/i18nContext.DVJtxAdt.js").then(n=>n.a);return{default:s}},[]),a=O;await a.init(),i.contextProvider.setValue(a.$t)},this.showWebsite=()=>{this.classList.contains("visible")||this.classList.add("visible")},this.activateGlobalError=async()=>{this.disabledEditMode&&(this.unsubscribeGlobalError=k(d,"globalError",i=>{i&&this.showErrorPage(i)}))},this.verifyIfHasFixedAppointment=()=>{!this.campaignFixedAppointmentUrlParameter||!y.hasUrlParameterValue(this.campaignFixedAppointmentUrlParameter)||A.setUseCampaignAppointmentDate(!0)},this.initEventListener=()=>{this.addEventListener(R,this.handleLayoutChange)},this.userInteractionEvents=["scroll","mousemove"],this.addUserInteractionListener=()=>{const a=()=>
13{this.userInteractionEvents.forEach(n=>document.removeEventListener(n,a)),Promise.resolve().then(()=>{h(this.loadAsyncScriptsOnInteraction),h(this.appendBranchFinderOverlay)}),clearTimeout(s)},s=setTimeout(a,6e3);this.userInteractionEvents.forEach(n=>document.addEventListener(n,a,{passive:!0})),this.shouldLoadScriptsFirst()&&a()},this.loadAsyncScriptsOnInteraction=()=>{H("[data-js-delay-loading-container]"),$("[data-js-delay-loading-additional-scripts]"),h(this.loadLazyComponents),h(this.preventAutoZoom)},this.loadLazyComponents=()=>{Promise.all([l(()=>import("./commons/resources/BranchfinderOverlay.component.5UUDJgSz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),l(()=>import("./commons/resources/ScrollOverlay.component.BUApStKR.js"),__vite__mapDeps([11,3,9,1,2])),l(()=>import("./commons/resources/CustomerGroup.component.DS2w1HPZ.js"),__vite__mapDeps([12,1,2,3,4,13,9,14,15,8,16])),l(()=>import("./commons/resources/ScrollToTop.component.KsZiRmrv.js"),__vite__mapDeps([17,1,2,3,9,18,5,6,19,15]))]).catch(i=>console.error("Error loading scripts:",i))},this.appendBranchFinderOverlay=()=>{if(u(d).shopError?.hasError)return;const a=document.createElement(z);this.appendChild(a)},this.preventAutoZoom=()=>{navigator.userAgent.indexOf("iPhone")>-1&&document.querySelector("[name=viewport]")?.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1")},this.openEditAppointment=async()=>{if(this.querySelector(G))return;const a=y.getUrlParameterValue("t");if(!a)return;await l(()=>import("./commons/resources/AppointmentOverlay.component.BnAM_hjz.js").then(p=>p.A),__vite__mapDeps([20,4,21,3,22,23,24,25,13,1,2,26,27,28,29,30,31,32,9,33,15,34,8]));const s=document.createElement(K);Object.entries({visible:"",secretKey:a,allowLoggedOutAppointmentUpdate:""}).forEach(([p,c])=>s.setAttribute(p,c)),this.appendChild(s)}}async connectedCallback(){super.connectedCallback(),this.shopApiUrl&&(e.shopApiUrl=this.shopApiUrl),this.shopApiVersion&&(e.shopApiVersion=this.shopApiVersion),this.jfNetworkCDNUrl&&(e.jfNetworkCDNUrl=this.jfNetworkCDNUrl),this.jfNetworkApiUrl&&(e.jfNetworkApiUrl=this.jfNetworkApiUrl),this.i18nApiUrl&&(e.i18nApiUrl=this.i18nApiUrl),this.homepageUrl&&(e.homepageUrl=this.homepageUrl),this.checkoutPageUrl&&(e.checkoutPageUrl=this.checkoutPageUrl),this.shopThankYouPageUrl&&(e.shopThankYouPageUrl=this.shopThankYouPageUrl),this.shopThankYouPageUrlFranchise&&(e.shopThankYouPageUrlFranchise=this.shopThankYouPageUrlFranchise),this.registerThankYouPageUrl&&(e.registerThankYouPageUrl=this.registerThankYouPageUrl),this.contactThankYouPageUrl&&(e.contactThankYouPageUrl=this.contactThankYouPageUrl),this.cartOverviewPageUrl&&(e.cartOverviewPageUrl=this.cartOverviewPageUrl),this.googleMapsKey&&(e.googleMapsKey=this.googleMapsKey),this.reCaptchaSiteKey&&(e.reCaptchaSiteKey=this.reCaptchaSiteKey),this.loginUrl&&(e.loginUrl=this.loginUrl),this.apiUrl&&(e.apiUrl=this.apiUrl),this.loginRedirectUrl&&(e.loginRedirectUrl=this.loginRedirectUrl),this.defaultBranchId&&(e.defaultBranchId=this.defaultBranchId),e.hideBranchNextAppointment=this.hideBranchNextAppointment,this.vatPercentage&&(e.vatPercentage=this.vatPercentage),this.branchDetailPageUrl&&(e.branchDetailPageUrl=this.branchDetailPageUrl),this.componentErrorImgUrl&&(e.componentErrorImgUrl=this.componentErrorImgUrl),this.licensePlateInfoUrl&&(e.licensePlateInfoUrl=this.licensePlateInfoUrl),this.branchFinderUrl&&(e.branchFinderUrl=this.branchFinderUrl),this.jFNetCarModelApiToken&&(e.jFNetCarModelApiToken=this.jFNetCarModelApiToken),this.dashboardUrl&&(e.dashboardUrl=this.dashboardUrl),this.yourOrdersUrl&&(e.yourOrdersUrl=this.yourOrdersUrl),this.personalInformationUrl&&(e.personalInformationUrl=this.personalInformationUrl),this.productListingPageUrl&&(e.productListingPageUrl=this.productListingPageUrl),this.productMixedListingPageUrl&&(e.productMixedListingPageUrl=this.productMixedListingPageUrl),this.productBikeListingPageUrl&&(e.productBikeListingPageUrl=this.productBikeListingPageUrl),this.storageUrl&&(e.storageUrl=this.storageUrl),this.completeWheelConfiguratorUrl&&(e.completeWheelConfiguratorUrl=this.completeWheelConfiguratorUrl),this.disabledEditMode&&(e.disabledEditMode=this.disabledEditMode),this.authorRunMode&&(e.authorRunMode=this.authorRunMode),e.disabledEditMode=this.disabledEditMode,e.hideAlternateLicencePlate=this.hideAlternateLicencePlate,this.deactivatedShop&&(e.deactivatedShop=this.deactivatedShop),this.priceComparisonUrl&&(e.priceComparisonUrl=this.priceComparisonUrl),this.heureka&&(e.heureka=this.heureka),this.zbozi&&(e.zbozi=this.zbozi),this.servicesUrl&&(e.servicesUrl=this.servicesUrl),this.serviceCategoriesUrl&&(e.serviceCategoriesUrl=this.serviceCategoriesUrl),this.extraCostsLabel&&(e.extraCostsLabel=this.extraCostsLabel),this.extraCostsModalContentUrl&&(e.extraCostsModalContentUrl=this.extraCostsModalContentUrl),this.tpmsModalContentUrl&&(e.tpmsModalContentUrl=this.tpmsModalContentUrl),this.branchMapZoomLevel&&(e.branchMapZoomLevel=this.branchMapZoomLevel),this.carServiceErrorPageUrl&&(e.carServiceErrorPageUrl=this.carServiceErrorPageUrl),this.backendType&&(e.backendType=this.backendType),this.bmfAuthUrl&&(e.bmfAuthUrl=this.bmfAuthUrl),this.bmfApiUrl&&(e.bmfApiUrl=this.bmfApiUrl),this.contactFormUrl&&(e.contactFormUrl=this.contactFormUrl),this.adobeTargetProperty&&(e.adobeTargetProperty=this.adobeTargetProperty,C.init()),e.tpmsIsMandatory=!!this.tpmsIsMandatory,e.tireStorageShowReplaceTiresPerAxle=!!this.tireStorageShowReplaceTiresPerAxle,e.tireStorageShowBalancingOption=!!this.tireStorageShowBalancingOption,e.error404Url=this.errorPage404Url,e.error500Url=this.errorPage500Url,await this.initI18nService(),await l(()=>import("./commons/resources/init.services.C3stmOaW.js"),__vite__mapDeps([35,5,1,2,3,6,14,36,37,38,39])),await m.checkHealth(),await m.hydrateShopConfig(),this.setupCheckoutVariant(),this.prepareBranchStore(),await W(100),m.setUserSelectedLanguage(),h(this.activateGlobalError),h(this.initEventListener),await M.validateLogin(),window.localStorage.getItem(x)||h(A.fetchShoppingCart),h(this.addUserInteractionListener),this.unsubscribe=k(b,"isLoggedIn",i=>{this.checkLoginStatus(i)}),h(this.showWebsite),h(this.checkLoginStatus),h(this.openEditAppointment),h(this.verifyIfHasFixedAppointment),e.initialized=!0}updated(i){this.showErrorPageContentOnShopError&&this.showErrorPage(B.HTTP500)}disconnectedCallback(){this.unsubscribeGlobalError(),this.unsubscribe(),super.disconnectedCallback()}createRenderRoot(){return this}shouldLoadScriptsFirst(){return!!(e.shopThankYouPageUrl&&y.isRouteMatch(e.shopThankYouPageUrl))||!!(e.shopThankYouPageUrlFranchise&&y.isRouteMatch(e.shopThankYouPageUrlFranchise))}handleLayoutChange(i){i.stopImmediatePropagation();const a=i.detail.name;this.style.setProperty(a,i.detail.value)}async showErrorPage(i){await l(()=>import("./commons/resources/ErrorPage.component.BjwrGnho.js"),__vite__mapDeps([40,3,41,25,1,2]));const a=document.createElement("conti-error-page");
13a.setAttribute("errorType",i),Array.from(this.children).forEach(s=>{s.tagName.toLowerCase()!==_&&s.remove()}),this.appendChild(a)}async prepareBranchStore(){const i=N.selectedBranchId,a=this.defaultBranchId||e.defaultBranchId,s=y.getUrlParameterValue("branch");s?await P.selectBranch(s,!0):i?await P.loadBranchData():await P.selectBranch(a)}async setupCheckoutVariant(){if(document.querySelector("conti-checkout-app"))U.setCheckoutPageUrl(this.checkoutPageUrl);else if(document.querySelector("conti-checkout-app-v2"))U.setCheckoutPageUrl(this.checkoutPageUrlV2);else if(this.adobeTargetProperty){const i=await C.getVariant("checkout");i==="B"&&this.checkoutPageUrlV2?U.setCheckoutPageUrl(this.checkoutPageUrlV2):i==="A"&&this.checkoutPageUrl&&U.setCheckoutPageUrl(this.checkoutPageUrl)}}render(){return v`<conti-health-check-shop></conti-health-check-shop>`}};r([o({type:Boolean})],t.prototype,"disabledEditMode",2);r([o({type:Boolean})],t.prototype,"authorRunMode",2);r([o({type:String})],t.prototype,"shopApiUrl",2);r([o({type:String})],t.prototype,"shopApiVersion",2);r([o({type:String})],t.prototype,"jfNetworkApiUrl",2);r([o({type:String})],t.prototype,"jfNetworkCDNUrl",2);r([o({type:String})],t.prototype,"i18nApiUrl",2);r([o({type:String})],t.prototype,"homepageUrl",2);r([o({type:String})],t.prototype,"checkoutPageUrl",2);r([o({type:String})],t.prototype,"checkoutPageUrlV2",2);r([o({type:String})],t.prototype,"shopThankYouPageUrl",2);r([o({type:String})],t.prototype,"shopThankYouPageUrlFranchise",2);r([o({type:String})],t.prototype,"registerThankYouPageUrl",2);r([o({type:String})],t.prototype,"contactThankYouPageUrl",2);r([o({type:String})],t.prototype,"cartOverviewPageUrl",2);r([o({type:String})],t.prototype,"googleMapsKey",2);r([o({type:String})],t.prototype,"reCaptchaSiteKey",2);r([o({type:String})],t.prototype,"defaultBranchId",2);r([o({type:Boolean})],t.prototype,"hideBranchNextAppointment",2);r([o({type:String})],t.prototype,"errorPage404Url",2);r([o({type:String})],t.prototype,"errorPage500Url",2);r([o({type:String})],t.prototype,"componentErrorImgUrl",2);r([o({type:String})],t.prototype,"apiUrl",2);r([o({type:String})],t.prototype,"loginUrl",2);r([o({type:String})],t.prototype,"loginRedirectUrl",2);r([o({type:String})],t.prototype,"vatPercentage",2);r([o({type:String})],t.prototype,"branchDetailPageUrl",2);r([o({type:String})],t.prototype,"licensePlateInfoUrl",2);r([o({type:String})],t.prototype,"branchFinderUrl",2);r([o({type:String})],t.prototype,"jFNetCarModelApiToken",2);r([o({type:String})],t.prototype,"dashboardUrl",2);r([o({type:String})],t.prototype,"yourOrdersUrl",2);r([o({type:String})],t.prototype,"personalInformationUrl",2);r([o({type:String})],t.prototype,"storageUrl",2);r([o({type:String})],t.prototype,"productListingPageUrl",2);r([o({type:String})],t.prototype,"productMixedListingPageUrl",2);r([o({type:String})],t.prototype,"productBikeListingPageUrl",2);r([o({type:String})],t.prototype,"completeWheelConfiguratorUrl",2);r([o({type:Boolean})],t.prototype,"hideAlternateLicencePlate",2);r([o({type:Boolean})],t.prototype,"deactivatedShop",2);r([o({type:String})],t.prototype,"priceComparisonUrl",2);r([o({type:String})],t.prototype,"heureka",2);r([o({type:String})],t.prototype,"zbozi",2);r([o({type:String})],t.prototype,"servicesUrl",2);r([o({type:String})],t.prototype,"serviceCategoriesUrl",2);r([o({type:String})],t.prototype,"extraCostsLabel",2);r([o({type:String})],t.prototype,"extraCostsModalContentUrl",2);r([o({type:Boolean})],t.prototype,"tpmsIsMandatory",2);r([o({type:String})],t.prototype,"tpmsModalContentUrl",2);r([o({type:Boolean})],t.prototype,"tireStorageShowReplaceTiresPerAxle",2);r([o({type:Boolean})],t.prototype,"tireStorageShowBalancingOption",2);r([o({type:Number})],t.prototype,"branchMapZoomLevel",2);r([o({type:String})],t.prototype,"campaignFixedAppointmentUrlParameter",2);r([o({type:String})],t.prototype,"carServiceErrorPageUrl",2);r([o({type:Boolean})],t.prototype,"showErrorPageContentOnShopError",2);r([o({type:String})],t.prototype,"bmfApiUrl",2);r([o({type:String})],t.prototype,"bmfAuthUrl",2);r([o({type:String})],t.prototype,"backendType",2);r([o({type:String})],t.prototype,"contactFormUrl",2);r([o({type:String})],t.prototype,"adobeTargetProperty",2);t=r([T("conti-app")],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.