1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9156],{7083:(e,t,r)=>{"use strict";r.d(t,{AbtestContextProvider:()=>l,G:()=>c});var s=r(95155),n=r(12115),a=r(20063);let o=n.createContext(null);function i(e){if("undefined"==typeof document)return null;let t=e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1"),r=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));return r?decodeURIComponent(r[1]):null}function l(e){let{abtestName:t,children:r}=e,l=(0,a.usePathname)(),c=(0,n.useMemo)(()=>{if(!t||!(null==l?void 0:l.includes("/p/")))return null;let e="ab_variant_".concat(t.replaceAll(" ","_")),r=i(e);return r?{name:t,variant:r,id:i("".concat(e,"_id"))}:null},[t,l]);return(0,s.jsx)(o.Provider,{value:c,children:r})}let c=()=>(0,n.useContext)(o)},7143:e=>{e.exports={"back-to-top":"BackToTop_back-to-top__GeWkD","back-to-top--right":"BackToTop_back-to-top--right__7md1e","back-to-top--left":"BackToTop_back-to-top--left__EBtIL","back-to-top--visible":"BackToTop_back-to-top--visible__B_Ugm","back-to-top__icon":"BackToTop_back-to-top__icon__bWti2"}},8703:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});let s=6},20456:(e,t,r)=>{"use strict";r.d(t,{CustomVariablesContextProvider:()=>a});var s=r(95155);let n=r(12115).createContext({});function a(e){let{children:t,variables:r={}}=e;return(0,s.jsx)(n.Provider,{value:r,children:t})}},24751:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var s=r(95155),n=r(12115),a=r(42536),o=r(45089);function i(e){let{children:t}=e,[r]=(0,n.useState)(()=>new a.E({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}}));return(0,s.jsx)(o.QueryClientProvider,{client:r,children:t})}},25810:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var s=r(12115);function n(){return(0,s.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t={source:e.get("utm_source"),medium:e.get("utm_medium"),campaign:e.get("utm_campaign"),id:e.get("utm_id"),term:e.get("utm_term"),content:e.get("utm_content")};Object.entries(t).forEach(e=>{let[r,s]=e;s||delete t[r]}),0!==Object.keys(t).length&&sessionStorage.setItem("dm-utm",JSON.stringify(t))},[]),null}},27285:(e,t,r)=>{"use strict";r.d(t,{UserDataLayer:()=>o});var s=r(12115),n=r(11929),a=r(7083);function o(){let e=function(){let e=(0,a.G)();return()=>{var t,r,s;let a=JSON.parse(window.localStorage.getItem("dm-portal")||'{ "state": { "customer": null } }'),o=null!=(s=null==a||null==(r=a.state)||null==(t=r.customer)?void 0:t.customerId)?s:"",i=window.localStorage.getItem("dm-user-id")||(0,n.A)();window.localStorage.setItem("dm-user-id",i),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user",user_id:i,user_login:o?"logged_in":"logged_out",customer_id:o,customer_group:o?"private":"",country_language:window.navigator.language,...(null==e?void 0:e.name)&&{abtest:e}})}}();return(0,s.useEffect)(()=>{e()},[]),null}},29234:(e,t,r)=>{"use strict";r.d(t,{WebspaceSettingsSnippetContextProvider:()=>o,p:()=>i});var s=r(95155),n=r(12115);let a=n.createContext(null);function o(e){let{children:t,webspaceSettingsSnippet:r}=e;return(0,s.jsx)(a.Provider,{value:r,children:t})}let i=()=>(0,n.useContext)(a)},30218:(e,t,r)=>{"use strict";r.d(t,{FavoriteStoreInitializer:()=>_,qx:()=>d,P7:()=>u,Ph:()=>m});var s=r(12115),n=r(95988),a=r(89863),o=r(13778),i=r(27476);async function l(){try{var e,t;return null!=(t=null==(e=(await (0,i.A)().get("/vehicle/favorites")).data)?void 0:e.slugs)?t:null}catch(e){return null}}async function c(e){try{return await (0,i.A)().post("/vehicle/favorites",{slugs:e}),!0}catch(e){return!1}}let u=(0,n.vt)()((0,a.eh)((0,a.Zr)((e,t)=>({slugs:[],addVehicle:r=>!t().isFavorite(r)&&(e({slugs:[...t().slugs,r]}),!0),removeVehicle:t=>{e(e=>({slugs:e.slugs.filter(e=>e!==t)}))},isFavorite:e=>t().slugs.includes(e),toggleVehicle:e=>{let{isFavorite:r,addVehicle:s,removeVehicle:n}=t();return r(e)?(n(e),!1):s(e)},setSlugs:t=>{e({slugs:t})},clearVehicles:()=>{e({slugs:[]})}}),{name:"dm-favorite-vehicles"}))),d=e=>{let{token:t}=o.usePortalStore.getState();t&&c(e)},m=()=>{let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=u.persist.onHydrate(()=>t(!1)),r=u.persist.onFinishHydration(()=>t(!0));return t(u.persist.hasHydrated()),()=>{e(),r()}},[]),e},_=()=>{let e=m(),t=!!(0,o.usePortalStore)(e=>e.token),r=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{e&&t&&!r.current&&(r.current=!0,l().then(e=>{if(!e)return;let t=Array.from(new Set([...e,...u.getState().slugs]));u.getState().setSlugs(t),t.length===e.length&&t.every(t=>e.includes(t))||c(t)}))},[e,t]),(0,s.useEffect)(()=>{t||(r.current=!1)},[t]),(0,s.useEffect)(()=>{let e=e=>{"dm-favorite-vehicles"===e.key&&u.persist.rehydrate()};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),null}},31281:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var s=r(12115);function n(){return(0,s.useEffect)(()=>
1{if(null!==new URLSearchParams(window.location.search).get("no-analytics")||window.__benchmarkMirrorInitialized)return;window.__benchmarkMirrorInitialized=!0,window.dataLayer=window.dataLayer||[],window.benchmarkLayer=window.benchmarkLayer||[];let e=e=>{try{if(e&&"object"==typeof e&&!e.__bm_synced){let t="function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e));t.__bm_synced=!0,window.benchmarkLayer.push(t)}}catch(e){}};window.benchmarkLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});let t=window.dataLayer,r=t.push.bind(t);t.push=function(){for(var s=arguments.length,n=Array(s),a=0;a<s;a++)n[a]=arguments[a];return n.forEach(e),r.apply(t,n)},Array.isArray(t)&&t.length&&t.forEach(e);let s=document.createElement("script");s.async=!0,s.src="https://www.googletagmanager.com/gtm.js?id=".concat("GTM-PD4LRJMW","&l=benchmarkLayer"),document.head.appendChild(s)},[]),null}},34770:e=>{e.exports={"toast-container":"Toast_toast-container__jYr7D",toast:"Toast_toast__OegpC","toast-in":"Toast_toast-in__ECdtu","toast--has-icon":"Toast_toast--has-icon__qwVZJ","toast--dismissing":"Toast_toast--dismissing__GhCTD","toast-out":"Toast_toast-out__LQsxa",toast__icon:"Toast_toast__icon__DwFzl",toast__body:"Toast_toast__body__8P1w9",toast__text:"Toast_toast__text__x9cF8",toast__link:"Toast_toast__link__fx7Dw",toast__close:"Toast_toast__close__Kfc4E"}},47434:(e,t,r)=>{"use strict";r.d(t,{xt:()=>_,Dc:()=>h,U5:()=>l,Fz:()=>m,Mx:()=>c,ag:()=>u,vs:()=>d});var s=r(82496),n=r(55120),a=r(3369),o=r(98988);function i(){let{token:e,setToken:t}=o.H_.getState(),r=a.A.create({baseURL:"".concat((0,n.A)("DATAMOTIVE_API_ENDPOINT"),"/api/v1/b2b"),headers:{authorization:"Bearer ".concat(e)}});return r.interceptors.response.use(e=>e,async e=>{var r;return(null==(r=e.response)?void 0:r.status)===401&&t(null),Promise.reject(e)}),r}let l=async(e,t)=>(0,s.A)().post("".concat((0,n.A)("DATAMOTIVE_API_ENDPOINT"),"/api/b2b/token"),{username:e,password:t,tenant:(0,n.A)("TENANT")}).then(e=>e).catch(e=>Promise.reject(e)),c=async(e,t,r)=>(0,s.A)().put("/b2b/current/password-forget",{email:e,resetUrl:t.href,tenant:(0,n.A)("TENANT")},{headers:{"accept-language":r}}).then(e=>e).catch(e=>Promise.reject(e)),u=async(e,t)=>(0,s.A)().put("/b2b/current/password-reset",{password:e},{headers:{authorization:"Bearer ".concat(t)}}).then(e=>e).catch(e=>Promise.reject(e)),d=async(e,t)=>(0,s.A)().put("/b2b/current/set-password",{password:e},{headers:{authorization:"Bearer ".concat(t)}}).then(e=>e).catch(e=>Promise.reject(e)),m=async(e,t)=>i().put("/current/change-password",{password:e,newPassword:t}).then(e=>e).catch(e=>Promise.reject(e)),_=async()=>i().get("/current/user").then(e=>e).catch(e=>Promise.reject(e)),h=async e=>i().get("/vehicle/".concat(e,"/prices")).then(e=>e).catch(e=>Promise.reject(e))},48765:(e,t,r)=>{"use strict";r.d(t,{SearchSnippetContextProvider:()=>o,e:()=>i});var s=r(95155),n=r(12115);let a=n.createContext(null);function o(e){let{children:t,searchSnippet:r}=e;return(0,s.jsx)(a.Provider,{value:r,children:t})}let i=()=>(0,n.useContext)(a)},50782:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(95155),n=r(12115),a=r(68321),o=r(9856);let i="new URLSearchParams(location.search).has('no-analytics')";function l(e){let{analytics:t,position:r,benchmarkGtmId:l}=e;return(0,s.jsxs)(s.Fragment,{children:[l&&"headOpen"===r?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.default,{id:"benchmark-gtm-".concat(l),strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"\n(function(w,d,s,l,i){if(".concat(i,")return;w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
1j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','").concat(l,"');\n ")}})}):null,l&&"bodyOpen"===r?(0,s.jsx)("noscript",{children:(0,s.jsx)("iframe",{src:"https://www.googletagmanager.com/ns.html?id=".concat(l),height:"0",width:"0",style:{display:"none",visibility:"hidden"}})}):null,t.map((e,t)=>"custom"===e.type&&r===e.content.position?(0,s.jsx)(o.default,{html:e.content.value},t):"google_tag_manager"===e.type&&"headOpen"===r?(0,s.jsx)(n.Fragment,{children:(0,s.jsx)(a.default,{id:"gtm",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"\n(function(w,d,s,l,i){if(".concat(i,")return;w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','").concat(e.content,"');\n ")}})},t):"google_tag_manager"===e.type&&"bodyOpen"===r?(0,s.jsx)("noscript",{children:(0,s.jsx)("iframe",{sandbox:"allow-same-origin allow-forms",src:"https://www.googletagmanager.com/ns.html?id=".concat(e.content),height:"0",width:"0",style:{display:"none",visibility:"hidden"}})},t):"google"===e.type&&"headClose"===r?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(a.default,{src:"https://www.google-analytics.com/analytics.js",strategy:"afterInteractive"}),(0,s.jsx)(a.default,{id:"analytic-".concat(t,"-google-analytics"),strategy:"afterInteractive",children:"\n if (!(".concat(i,")) {\n window.GoogleAnalyticsObject = 'ga';\n window.ga = window.ga || function () {\n (window.ga.q = window.ga.q || []).push(arguments);\n };\n window.ga.l = new Date().getTime();\n window.ga('create', '").concat(e.content,"', 'auto');\n window.ga('set', 'anonymizeIp', true);\n window.ga('send', 'pageview');\n }\n ")})]},t):"matomo"===e.type&&"headClose"===r?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(a.default,{src:"".concat(e.content.url,"/piwik.js"),strategy:"afterInteractive"}),(0,s.jsx)(a.default,{id:"analytic-".concat(t,"-matomo"),strategy:"afterInteractive",children:"\n if (!(".concat(i,")) {\n let _paq = _paq || [];\n _paq.push(['trackPageView']);\n _paq.push(['enableLinkTracking']);\n _paq.push(['setTrackerUrl', '").concat(e.content.url,"/piwik.php']);\n _paq.push(['setSiteId', '").concat(e.content.siteId,"']);\n }\n ")})]},t):"matomo"===e.type&&"bodyOpen"===r?(0,s.jsx)("noscript",{children:(0,s.jsx)("p",{children:(0,s.jsx)("img",{src:"".concat(e.content.url,"/piwik.php?idsite=").concat(e.content.siteId),style:{border:0},alt:""})})},t):null)]})}},62077:(e,t,r)=>{Promise.resolve().then(r.bind(r,65084)),Promise.resolve().then(r.bind(r,50782)),Promise.resolve().then(r.bind(r,31281)),Promise.resolve().then(r.bind(r,76144)),Promise.resolve().then(r.bind(r,25810)),Promise.resolve().then(r.bind(r,86636)),Promise.resolve().then(r.bind(r,27285)),Promise.resolve().then(r.bind(r,90810)),Promise.resolve().then(r.bind(r,66559)),Promise.resolve().then(r.bind(r,70075)),Promise.resolve().then(r.bind(r,7083)),Promise.resolve().then(r.bind(r,25874)),Promise.resolve().then(r.bind(r,20456)),Promise.resolve().then(r.bind(r,48765)),Promise.resolve().then(r.bind(r,72346)),Promise.resolve().then(r.bind(r,29234)),Promise.resolve().then(r.bind(r,79930)),Promise.resolve().then(r.bind(r,99283)),Promise.resolve().then(r.bind(r,24751)),Promise.resolve().then(r.bind(r,98988)),Promise.resolve().then(r.bind(r,83123)),Promise.resolve().then(r.bind(r,30218)),Promise.resolve().then(r.bind(r,88992)),Promise.resolve().then(r.bind(r,13778)),Promise.resolve().then(r.bind(r,85745))},62139:e=>{e.exports={resume:"ResumeFlowCard_resume__vDE3e",resume__card:"ResumeFlowCard_resume__card__NWtr6","resume-in":"ResumeFlowCard_resume-in__x9Ex6","resume__card--leave":"ResumeFlowCard_resume__card--leave__KQiyP","resume-out":"ResumeFlowCard_resume-out__2Pf5G",resume__bar:"ResumeFlowCard_resume__bar__DV0IH",resume__toggle:"ResumeFlowCard_resume__toggle__o5ep4",resume__badge:"ResumeFlowCard_resume__badge__Vh4jd","resume__badge-icon":"ResumeFlowCard_resume__badge-icon__mR9VR",resume__title:"ResumeFlowCard_resume__title__d_5gl",resume__chevron:"ResumeFlowCard_resume__chevron__76LDI","resume--open":"ResumeFlowCard_resume--open___TmX8",resume__collapse:"ResumeFlowCard_resume__collapse__19RY0",resume__body:"ResumeFlowCard_resume__body__NQyN6",resume__subtext:"ResumeFlowCard_resume__subtext__dTxdp",resume__vehicle:"ResumeFlowCard_resume__vehicle__elFua",resume__thumb:"ResumeFlowCard_resume__thumb__LapL6","resume__thumb-image":"ResumeFlowCard_resume__thumb-image__WHzHx","resume__thumb--placeholder":"ResumeFlowCard_resume__thumb--placeholder__PkHsM","resume__thumb-icon":"ResumeFlowCard_resume__thumb-icon__4W_1p","resume__vehicle-info":"ResumeFlowCard_resume__vehicle-info__FoaL8","resume__vehicle-name":"ResumeFlowCard_resume__vehicle-name__byAjB",resume__updated:"ResumeFlowCard_resume__updated__ZkgPD",resume__progress:"ResumeFlowCard_resume__progress__DswQV","resume__progress-head":"ResumeFlowCard_resume__progress-head__NyWBg",resume__step:"ResumeFlowCard_resume__step__8OveW","resume__progress-percent":"ResumeFlowCard_resume__progress-percent__mY
1VMd","resume__progress-track":"ResumeFlowCard_resume__progress-track__J9QQU","resume__progress-bar":"ResumeFlowCard_resume__progress-bar__D4fiL",resume__actions:"ResumeFlowCard_resume__actions__fmETt",resume__primary:"ResumeFlowCard_resume__primary__4CNag",resume__secondary:"ResumeFlowCard_resume__secondary__r48sG"}},66559:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(95155),n=r(72346),a=r(98463);function o(){let{entityUrl:e,config:t,orgName:r}=(0,n.t)(),o=(0,a.I)(null==t?void 0:t.logoLightBackgroundUrl,{force_format:"original"}).href,i={"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"".concat(e,"#organization"),name:r,url:e,...o?{logo:o}:{}},{"@type":"WebSite","@id":"".concat(e,"#website"),name:r,url:e,publisher:{"@id":"".concat(e,"#organization")}}]};return(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i)}})}},70075:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var s=r(95155),n=r(95387),a=r(95415),o=r(5519),i=r(79121),l=r(34770),c=r.n(l);function u(e){let{toast:t,onDismiss:r}=e;return(0,s.jsxs)("div",{className:(0,i.A)(c().toast,t.icon?c()["toast--has-icon"]:void 0,t.dismissing?c()["toast--dismissing"]:void 0,t.className),role:"alert",children:[t.icon?(0,s.jsx)(a.A,{icon:t.icon,className:c().toast__icon}):null,(0,s.jsxs)("div",{className:c().toast__body,children:[(0,s.jsx)("span",{className:c().toast__text,children:t.message}),t.link?(0,s.jsx)(o.default,{href:t.link.href,className:c().toast__link,addWebspace:!0,children:t.link.label}):null]}),(0,s.jsx)("button",{type:"button",className:c().toast__close,onClick:()=>r(t.id),"aria-label":"Close",children:(0,s.jsx)(a.A,{icon:"close"})})]})}function d(){let{toasts:e,dismissToast:t}=(0,n.W)();return 0===e.length?null:(0,s.jsx)("div",{className:c()["toast-container"],children:e.map(e=>(0,s.jsx)(u,{toast:e,onDismiss:t},e.id))})}},79930:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(95155),n=r(12115);function a(){let e=(0,n.useRef)(null),t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let r=e.current,s=t.current;if(!r||!s)return;let n=new ResizeObserver(()=>{window.document.documentElement.style.setProperty("--scrollbar-width","".concat(r.offsetWidth-s.offsetWidth,"px"))});return n.observe(s),n.observe(r),()=>{n.disconnect()}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:e,id:"scrollbar-width-outer",style:{overflow:"scroll",visibility:"hidden",position:"absolute",insetInline:"0",
1insetBlockStart:"0"},children:(0,s.jsx)("div",{ref:t,id:"scrollbar-width-inner"})}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:'\n const outer = document.getElementById("scrollbar-width-outer");\n const inner = document.getElementById("scrollbar-width-inner");\n if (outer && inner) {\n window.document.documentElement.style.setProperty("--scrollbar-width", outer.offsetWidth - inner.offsetWidth + "px");\n }\n '}})]})}},81609:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(3369);function n(){return s.A.create({timeout:1e4,headers:{"referrer-policy":"no-referrer-when-downgrade"}})}},83123:(e,t,r)=>{"use strict";r.d(t,{CompareStoreInitializer:()=>c,Gr:()=>l,IB:()=>i});var s=r(12115),n=r(95988),a=r(89863),o=r(8703);let i=(0,n.vt)()((0,a.eh)((0,a.Zr)((e,t)=>({vehicles:[],addVehicle:r=>{let{vehicles:s,isVehicleInComparison:n}=t();return!n(r.slug)&&!(s.length>=o.F)&&(e({vehicles:[...s,r]}),!0)},removeVehicle:t=>{e(e=>({vehicles:e.vehicles.filter(e=>e.slug!==t)}))},isVehicleInComparison:e=>t().vehicles.some(t=>t.slug===e),clearVehicles:()=>{e({vehicles:[]})},toggleVehicle:e=>{let{isVehicleInComparison:r,addVehicle:s,removeVehicle:n}=t();return r(e.slug)?(n(e.slug),!1):s(e)}}),{name:"dm-compare-vehicles"}))),l=()=>{let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=i.persist.onHydrate(()=>t(!1)),r=i.persist.onFinishHydration(()=>t(!0));return t(i.persist.hasHydrated()),()=>{e(),r()}},[]),e},c=()=>((0,s.useEffect)(()=>{let e=e=>{"dm-compare-vehicles"===e.key&&i.persist.rehydrate()};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),null)},86636:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var s=r(95155),n=r(12115),a=r(95604),o=r(79121),i=r(95415),l=r(7143),c=r.n(l);function u(e){let{threshold:t=320,className:r="",position:l="right"}
1=e,u=(0,a.useTranslations)(),[d,m]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=()=>{m(window.scrollY>t)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[t]);let _=(0,n.useCallback)(()=>{let e=document.getElementById("main"),t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";e?e.scrollIntoView({behavior:t,block:"start"}):window.scrollTo({top:0,behavior:t})},[]),h=u("back_to_top.label");return(0,s.jsx)("button",{type:"button","aria-label":h,title:h,onClick:_,className:(0,o.A)(c()["back-to-top"],c()["back-to-top--".concat(l)],d?c()["back-to-top--visible"]:"",r),tabIndex:d?0:-1,"aria-hidden":!d||void 0,children:(0,s.jsx)(i.A,{icon:"arrow_upward",className:c()["back-to-top__icon"]})})}},90810:(e,t,r)=>{"use strict";r.d(t,{default:()=>A});var s=r(95155),n=r(12115),a=r(95604),o=r(89615),i=r(85745),l=r(25874),c=r(72346),u=r(70522);let d=e=>{try{return"1"===window.sessionStorage.getItem(e)}catch(e){return!1}},m=e=>{try{var t;let r=JSON.parse(null!=(t=window.sessionStorage.getItem(e))?t:"[]");return Array.isArray(r)?r.filter(e=>"string"==typeof e):[]}catch(e){return[]}},_=(e,t)=>{try{window.sessionStorage.setItem(e,t)}catch(e){}};var h=r(85508),p=r(75598),g=r(79121),w=r(95415),f=r(60115),v=r(84795),b=r(62139),y=r.n(b);let x={vehicle:"directions_car",form:"schedule",workshop:"build"};function j(e){let{variant:t,href:r,itemName:n,imageUrl:o,updatedLabel:i,progress:l,open:c,leaving:u=!1,onToggle:d,onResume:m,onClose:_}=e,h=(0,a.useTranslations)(),b=l?Math.min(1,Math.max(0,l.done/l.total)):0,j=Math.round(100*b);return(0,s.jsx)("aside",{className:(0,g.A)(y().resume,c?y()["resume--open"]:void 0),"aria-label":h("resume.".concat(t,".title")),children:(0,s.jsxs)("div",{className:(0,g.A)(y().resume__card,u?y()["resume__card--leave"]:void 0),children:[(0,s.jsx)("div",{className:(0,g.A)(y().resume__bar),children:(0,s.jsxs)("button",{type:"button",className:(0,g.A)(y().resume__toggle),onClick:()=>d(!c),"aria-expanded":c,"aria-controls":"resume-flow-body",title:h(c?"resume.collapse":"resume.expand"),children:[(0,s.jsx)("span",{className:(0,g.A)(y().resume__badge),children:(0,s.jsx)(w.A,{icon:x[t],className:(0,g.A)(y()["resume__badge-icon"])})}),(0,s.jsx)("span",{className:(0,g.A)("h6",y().resume__title),children:h("resume.".concat(t,".title"))}),(0,s.jsx)(w.A,{icon:"expand_more",className:(0,g.A)(y().resume__chevron)})]})}),(0,s.jsx)(p.S,{isOpened:c,theme:{collapse:(0,g.A)(y().resume__collapse),content:(0,g.A)(y()["resume__collapse-content"])},children:(0,s.jsxs)("div",{className:(0,g.A)(y().resume__body),id:"resume-flow-body",children:[(0,s.jsx)("p",{className:(0,g.A)(y().resume__subtext),children:h("resume.".concat(t,".subtext"))}),(0,s.jsxs)("div",{className:(0,g.A)(y().resume__vehicle),children:[(0,s.jsx)("div",{className:(0,g.A)(y().resume__thumb,o?void 0:y()["resume__thumb--placeholder"]),children:o?(0,s.jsx)(v.A,{url:o,alt:n,width:"72px",ratio:4/3,objectFit:"cover",className:(0,g.A)(y()["resume__thumb-image"])}):(0,s.jsx)(w.A,{icon:"directions_car",className:(0,g.A)(y()["resume__thumb-icon"])})}),(0,s.jsxs)("div",{className:(0,g.A)(y()["resume__vehicle-info"]),children:[(0,s.jsx)("p",{className:(0,g.A)(y()["resume__vehicle-name"]),children:n}),i?(0,s.jsx)("p",{className:(0,g.A)(y().resume__updated),children:h("resume.".concat(t,".updated"),{time:i})}):null]})]}),l?(0,s.jsxs)("div",{className:(0,g.A)(y().resume__progress),style:{"--progress-ratio":b},children:[(0,s.jsxs)("div",{className:(0,g.A)(y()["resume__progress-head"]),children:[(0,s.jsx)("span",{className:(0,g.A)(y().resume__step),children:h("resume.step_status",{done:l.done,total:l.total})}),(0,s.jsxs)("span",{className:(0,g.A)(y()["resume__progress-percent"]),children:[j,"%"]})]}),(0,s.jsx)("div",{className:(0,g.A)(y()["resume__progress-track"]),role:"progressbar","aria-label":h("resume.progress_label"),"aria-valuenow":j,"aria-valuemin":0,"aria-valuemax":100,children:(0,s.jsx)("div",{className:(0,g.A)(y()["resume__progress-bar"])})})]}):null,(0,s.jsxs)("div",{className:(0,g.A)(y().resume__actions),children:[(0,s.jsx)(f.default,{theme:"primary",title:h("resume.".concat(t,".resume")),icon:"arrow_forward",href:r,onClick:m,fullWidth:!0,className:(0,g.A)(y().resume__primary)}),(0,s.jsx)("button",{type:"button",className:(0,g.A)(y().resume__secondary),onClick:_,children:h("resume.close")})]})]})})]})})}let k=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")};function A(){let e=(0,a.useTranslations)(),t=(0,a.useLocale)(),r=(0,h.A)(),p=(0,n.useCallback)((e,t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"resume",resume_action:e,resume_type:t})},[]),{entry:g,href:w,now:f,firstShowOfEntry:v,defaultOpen:b,persistOpen:y,close:x,markResumed:A}=function(){var e;let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=(0,i.Ac)(),s=(0,i.O6)(e=>e.vehicle),a=(0,i.O6)(e=>e.form),o=(0,i.O6)(e=>e.dismissedWorkshopUuid),h=(0,i.O6)(e=>
1e.markShown),p=(0,i.O6)(e=>e.dismiss),{plannerUrl:g}=(0,l.j)(),{basePath:w}=(0,c.t)(),[f,v]=(0,n.useState)(null),[b,y]=(0,n.useState)([]),[x,j]=(0,n.useState)(!1),k=(0,n.useRef)(null);(0,n.useEffect)(()=>{t&&r&&(y(m(u.el)),v({now:Date.now(),pathname:window.location.pathname,workshop:(0,u.fu)(function(e){if("undefined"==typeof document)return null;let t=e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1"),r=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));return r?r[1]:null}(u.N6)),lastShownAt:i.O6.getState().lastShownAt,shownIds:m(u.Af),collapsed:d(u.mi),closed:d(u.vw)}))},[t,r]);let A=(0,n.useMemo)(()=>{if(!t||!f||x)return null;let{now:e,pathname:r,workshop:n,lastShownAt:i,shownIds:l}=f;if(!(0,u.jd)({closedThisSession:f.closed,shownThisSession:l.length>0,lastShownAt:i,now:e}))return null;let c=o?[...b,"workshop:".concat(o)]:b,d=(0,u.yb)([n,a,s],e,c);return!d||(0,u.Kv)(d,{pathname:r,basePath:w,plannerUrl:g})||!(0,u.n5)(d,{plannerUrl:g,basePath:w})?null:d},[t,f,x,o,b,a,s,w,g]),C=!!A&&!(null==f?void 0:f.shownIds.includes((0,u.Pw)(A)));(0,n.useEffect)(()=>{var e;if(!A||!f)return;let t=null!=(e=k.current)?e:f.shownIds,r=(0,u.Pw)(A);t.includes(r)||(k.current=(0,u.f_)(t,r),_(u.Af,JSON.stringify(k.current)),0===t.length&&h())},[A,f,h]);let P=(0,n.useCallback)(e=>{_(u.mi,e?"0":"1")},[]),N=(0,n.useCallback)(()=>{A&&p(A),_(u.vw,"1"),j(!0)},[A,p]),T=(0,n.useCallback)(()=>{if(!A)return;let e=(0,u.f_)(b,(0,u.Pw)(A));_(u.S3,JSON.stringify({type:A.type,key:(0,u.Mc)(A)})),_(u.el,JSON.stringify(e)),y(e)},[A,b]);return{entry:A,href:A?(0,u.n5)(A,{plannerUrl:g,basePath:w}):null,now:null!=(e=null==f?void 0:f.now)?e:null,firstShowOfEntry:C,defaultOpen:!(null==f?void 0:f.collapsed),persistOpen:P,close:N,markResumed:T}}
1(r),[C,P]=(0,n.useState)(null),[N,T]=(0,n.useState)(!1),[E,S]=(0,n.useState)(!1),I=(0,n.useRef)([]);(0,n.useEffect)(()=>{if(!g||!v)return;let e=(0,u.Pw)(g);I.current.includes(e)||(I.current=[...I.current,e],p("impression",g.type))},[g,v,p]);let F=(0,n.useCallback)(()=>{var e,t;if(g&&p("dismiss",g.type),null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)return void x();S(!0),window.setTimeout(x,300)},[g,p,x]);if(N||!g||!w)return null;let L=k(g.brand,g.model,"workshop"===g.type?void 0:g.edition)||("form"===g.type?g.formName:e("resume.workshop.fallback_name"));return(0,s.jsx)(j,{variant:g.type,href:w,itemName:L,imageUrl:"workshop"===g.type?void 0:g.imageUrl,updatedLabel:f?new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format((0,o.A)(g.createdAt,f),"day"):void 0,progress:(e=>{if("form"===e.type||"workshop"===e.type&&void 0!==e.stepIndex&&e.stepCount)return{done:e.stepIndex,total:e.stepCount}})(g),open:null!=C?C:b,leaving:E,onToggle:e=>{P(e),y(e),p(e?"expand":"collapse",g.type)},onResume:e=>{p("click",g.type),e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(T(!0),A())},onClose:F})}},95387:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var s=r(95988);let n=0,a=(0,s.vt)()((e,t)=>({toasts:[],addToast:function(r){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a="toast-".concat(++n),{icon:o,link:i,className:l,duration:c=3e3}=s;return e(e=>({toasts:[...e.toasts,{id:a,message:r,icon:o,link:i,className:l}]})),setTimeout(()=>t().dismissToast(a),c),a},dismissToast:r=>{e(e=>({toasts:e.toasts.map(e=>e.id===r?{...e,dismissing:!0}:e)})),setTimeout(()=>t().removeToast(r),300)},removeToast:t=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))}}))},98988:(e,t,r)=>{"use strict";r.d(t,{B2bPrivateListenerInitializer:()=>h,B2bPublicListenerInitializer:()=>p,B2bStoreInitializer:()=>_,H_:()=>u,pD:()=>g});var s=r(72346),n=r(47434),a=r(35867),o=r(12115),i=r(95988),l=r(89863),c=r(81609);let u=(0,i.vt)()((0,l.eh)((0,l.Zr)(e=>({token:null,setToken:t=>e({token:t}),customer:null,setCustomer:t=>e({customer:t}),pages:[],setPages:t=>e({pages:t})}),{name:"dm-b2b"}))),d=()=>{u.persist.rehydrate()},m=async(e,t,r)=>{try{var s,n;let a=(await (0,c.A)().get("".concat(e,"/api").concat(t,"/snippet-areas/b2b_navigation"))).data;return null!=(n=null==a||null==(s=a.content.pages)?void 0:s.map(s=>({title:s.content.title,url:s.content.url.replace(e+t,r)})))?n:[]}catch(e){return console.error("Failed to fetch B2B navigation:",e),[]}},_=()=>{let e=g(),{token:t,setToken:r,setCustomer:a,setPages:i}=u(e=>({token:e.token,setToken:e.setToken,setCustomer:e.setCustomer,setPages:e.setPages})),{origin:l,basePath:c}=(0,s.t)();return(0,o.useEffect)(()=>{if(e){if(t){(0,n.xt)().then(e=>{e.data&&a(e.data)});let e=l+c;m(l,c,e).then(e=>{i(e)});return}r(null),a(null),i([])}},[e,t,l,c]),(0,o.useEffect)(()=>(document.addEventListener("visibilitychange",d),window.addEventListener("focus",d),()=>{document.removeEventListener("visibilitychange",d),window.removeEventListener("focus",d)}),[]),null},h=()=>{let e=g(),{token:t}=u(e=>{let{token:t}=e;return{token:t}}),{basePath:r}=(0,s.t)();return(0,o.useEffect)(()=>{if(e&&!t){let e=new URL(r+(0,a.ZK)(),window.location.href);window.location.href=e.href}},[e,t]),null},p=()=>{let e=g(),{token:t}=u(e=>{let{token:t}=e;return{token:t}}),{basePath:r}=(0,s.t)();return(0,o.useEffect)(()=>{if(e&&t){let e=new URL(r+(0,a.xq)(),window.location.href);window.location.href=e.href}},[e,t]),null},g=()=>{let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=u.persist.onHydrate(()=>t(!1)),r=u.persist.onFinishHydration(()=>t(!0));return t(u.persist.hasHydrated()),()=>{e(),r()}},[]),e}},99283:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(95155),n=r(95604);function a(e){let{locale:t,messages:r,children:a}=e;return(0,s.jsx)(n.NextIntlClientProvider,{locale:t,messages:r,formats:{},timeZone:"Europe/Amsterdam",onError:e=>{e.code!==n.IntlErrorCode.MISSING_MESSAGE&&console.error(e)},children:a})}}},e=>{e.O(0,[5579,2545,5604,7121,1124,9799,538,4186,5622,115,8441,1255,7358],()=>e(e.s=62077)),_N_E=e.O()}]);
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.