PageSourceSearch

https://www.finn.com/_next/static/chunks/app/%5Blang%5D/layout-2d8f60aad0ce30e9.js

js finn.com collected 2026-09-24 18:31:12 UTC 118,513 bytes, 117 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5160],{2037:(e,t,a)=>{"use strict";a.d(t,{ExternalScripts:()=>w});var s=a(54568),o=a(20645),r=a(38272),n=a(66192),i=a(59770),c=a(85402),l=a(96971),p=a(71255),u=a(67371),d=a(61299),_=a.n(d),g=a(96311),h=a.n(g),m=a(79748),f=a(25177),y=a(7620);let v=()=>(0,m.useSearchParams)().get("skipusercentrics")?null:(0,s.jsx)(f.default,{id:"usercentrics-cmp",strategy:"lazyOnload",src:"https://app.usercentrics.eu/browser-ui/latest/loader.js","data-settings-id":c.A.USERCENTRICS_ID}),b=["Script error.","ResizeObserver loop","AbortError","ChunkLoadError","Loading chunk","Can't write cookie","_pk_testcookie_domain","Failed to fetch","Load failed","NetworkError","Failed to load","Failed to connect to MetaMask","Failed to create PluginFactory","User not loaded in time","Error sending segment performance metrics","GSI_LOGGER"],w=()=>{let e=(0,m.usePathname)(),t=i.r5.some(t=>h()(e,t)),[a,d]=(0,y.useState)(!1),[g,w]=(0,y.useState)(!1),[x,E]=(0,y.useState)(!1),{consentDetail:C}=(0,o.uC)();return(0,y.useEffect)(()=>{window?.analytics||w(!0),(_().get(l.$K.TERMINAL_EVENT)||(0,p.K)())&&E(!0),(0,n.e)()},[]),(0,y.useEffect)(()=>{let e=C?.[r.FR.DATADOG_REAL_USER_MONITORING];if(a&&e){window.DD_RUM.init({clientToken:"pub3ba7a11ecc7e9f18f2ef5dd41364a444",applicationId:"a3422b68-51d0-4ec3-a45c-2bb483409d25",version:c.A.DATADOG_VERSION,site:"datadoghq.eu",service:"finn.com",env:c.A.DEPLOY_URL,sessionSampleRate:10,sessionReplaySampleRate:5,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",beforeSend:e=>{let t;return!("error"===e.type&&(t=e.error?.message||"",b.some(e=>t.includes(e))))}});try{let e=performance.getEntriesByType("navigation")[0];if(e?.serverTiming){let t=e.serverTiming.find(e=>"platform"===e.name)?.description||"netlify";window.DD_RUM.setGlobalContextProperty("platform",t)}}catch{}}},[a,C]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.default,{src:"/error-listener.js",strategy:"beforeInteractive"}),(0,s.jsx)(f.default,{src:"https://www.datadoghq-browser-agent.com/eu1/v5/datadog-rum.js",async:!0,strategy:"lazyOnload",onLoad:()=>d(!0)}),(0,s.jsx)(f.default,{src:"https://accounts.google.com/gsi/client",strategy:"lazyOnload",crossOrigin:"anonymous"}),g&&(0,s.jsx)(f.default,{strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:(0,u.vi)()||""}}),t||x?(0,s.jsx)(f.default,{children:"var UC_UI_SUPPRESS_CMP_DISPLAY=true;"}):null,(0,s.jsx)(y.Suspense,{children:(0,s.jsx)(v,{})})]})}},4319:()=>{},5216:(e,t,a)=>{"use strict";a.d(t,{Q:()=>i});var s=a(46879),o=a(33611),r=a(38039),n=a(96971);let i=async({session:e})=>{if(!e||(0,r.S)())return;let t=String((0,n.ok)(n.$K.HUBSPOT_ID)||""),a=String(e.user?.hs_contact_id);t||(0,n.Sp)(n.$K.HUBSPOT_ID,a,90),t&&a&&t!==a&&((0,s._J)(o.fC.ACCOUNT_SWITCHED,{previousAccountId:t,newAccountId:a}),(0,n.Sp)(n.$K.HUBSPOT_ID,a,90))}},8057:(e,t,a)=>{"use strict";a.d(t,{X:()=>s});let s=e=>{let t=e?.voucher_image_direct_url;if(t&&(e=>{try{let{protocol:t}=new URL(e);return"http:"===t||"https:"===t}catch{return!1}})(t))return t}},8828:(e,t,a)=>{"use strict";a.d(t,{S:()=>l});var s=a(54568),o=a(12001),r=a(59786),n=a(6913),i=a(7620),c=a(58593);let l=i.forwardRef(({className:e,error:t,label:a,labelClassName:i,selected:l,subtitle:p,subtitleClassName:u,testId:d,checked:_,...g},h)=>{let m=g.id??`${a}-${g.value}`,f="boolean"==typeof g.value?!!g.value:void 0;return(0,s.jsxs)("div",{className:(0,c.cn)(a?"grid grid-cols-[min-content_1fr] grid-rows-[minmax(1.25rem,max-content)] gap-x-2":"flex h-5 min-w-5 items-center justify-center",{"grid-rows-[minmax(1.25rem,max-content)_max-content] gap-y-3":p}),"data-testid":d??`checkbox-${g.name??m}`,children:[(0,s.jsx)(r.bL,{ref:h,className:(0,c.cn)("focus group peer border-pewter hover:ring-pearl row-span-2 size-5 cursor-pointer rounded-xs border border-solid bg-transparent p-0 hover:ring-1 active:border-black active:ring-1 active:ring-black disabled:pointer-events-none data-[state=checked]:border-0","focus-visible:ring-trustedBlue focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-0",{"!border-red !ring-red ring-1":t,"grid-rows-[1.25rem_max-content] gap-y-3":p},e),checked:"boolean"==typeof l?l:_??f,id:m,"data-testid":`checkbox-button-${g.name??m}`,...g,children:(0,s.jsx)(r.C1,{children:(0,s.jsx)(o.D,{className:(0,
1c.cn)("group-disabled:fill-steel size-5 align-top",{"fill-red":t})})})}),a?(0,s.jsx)(n.b,{className:(0,c.cn)("peer-disabled:text-steel [&_a]:body-14-semibold inline-block cursor-pointer self-center peer-disabled:pointer-events-none before:inline after:inline [&_a]:underline [&_a]:before:inline [&_a]:after:inline [&_p]:inline",p?"body-14-semibold":"body-14-regular",{"text-red peer-disabled:text-red":t},i),htmlFor:m,children:a}):null,p?(0,s.jsx)(n.b,{className:(0,c.cn)("body-14-regular peer-disabled:text-steel -mt-[5px] inline-block cursor-pointer peer-disabled:pointer-events-none",u,{"text-red":t}),htmlFor:m,children:p}):null]})});l.displayName=r.bL.displayName},12001:(e,t,a)=>{"use strict";a.d(t,{D:()=>n});var s,o=a(7620);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(null,arguments)}var n=function(e){return o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14"},e),s||(s=o.createElement("path",{fillRule:"evenodd",d:"M2 0a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm3.267 11.083 6.4-6.786-.752-.797-5.648 5.983-2.182-2.307-.752.797z",clipRule:"evenodd"})))}},12093:(e,t,a)=>{Promise.resolve().then(a.bind(a,15045)),Promise.resolve().then(a.bind(a,2037)),Promise.resolve().then(a.bind(a,75127)),Promise.resolve().then(a.t.bind(a,61280,23)),Promise.resolve().then(a.bind(a,57392)),Promise.resolve().then(a.t.bind(a,70677,23)),Promise.resolve().then(a.t.bind(a,31594,23)),Promise.resolve().then(a.t.bind(a,81897,23)),Promise.resolve().then(a.t.bind(a,24227,23)),Promise.resolve().then(a.t.bind(a,4319,23)),Promise.resolve().then(a.t.bind(a,74799,23))},15045:(e,t,a)=>{"use strict";a.d(t,{CoreClientProviders:()=>e2});var s=a(54568),o=a(66866),r=a(92088),n=a(7620),i=a(69047),c=a(60974),l=a(21975),p=a(60233),u=a(66913),d=a(47995),_=a(57392),g=a(765),h=a(95834),m=a(77401),f=a(89718),y=a(85402),v=a(61299),b=a.n(v),w=a(42584);let x=JSON.parse('{"de-DE":{"exp-mdp-compare":{"name":"exp-mdp-compare","enabled":false,"pages":[],"buckets":["a","b","c","d"]},"exp-pcp-km-calculator-v1":{"name":"exp-pcp-km-calculator-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-pcp-km-calculator-v2":{"name":"exp-pcp-km-calculator-v2","enabled":false,"pages":[],"buckets":["a","b"]},"exp-delivery-step-cards-v1":{"name":"exp-delivery-step-cards-v1","enabled":true,"pages":["checkout"],"buckets":["a","b"]},"feat-pickup-stations":{"name":"feat-pickup-stations","enabled":true,"pages":[],"buckets":["enabled"]},"feat-b2b-driver-swap":{"name":"feat-b2b-driver-swap","enabled":false,"pages":[],"buckets":["b"]},"feat-b2b-driver-prolongation-request":{"name":"feat-b2b-driver-prolongation-request","enabled":false,"pages":[],"buckets":["b"]},"exp-test-lifecycle-automation":{"name":"exp-test-lifecycle-automation","enabled":false,"pages":[],"buckets":["a","b","c"]},"feat-b2b-driver-checkout":{"name":"feat-b2b-driver-checkout","enabled":true,"pages":[],"buckets":["b"]},"exp-plp-price-usp-v1":{"name":"exp-plp-price-usp-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-plp-remove-dp-discount":{"name":"exp-plp-remove-dp-discount","enabled":true,"pages":["subscribe","leasing","models"],"buckets":["a","b"]},"exp-confirmation-deposit-modal-v1":{"name":"exp-confirmation-deposit-modal-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-address-sticky-cta-v1":{"name":"exp-address-sticky-cta-v1","enabled":false,"pages":[],"buckets":["a","b"]},"exp-home-returning-cart-popup-v2":{"name":"exp-home-returning-cart-popup-v2","enabled":true,"pages":[],"buckets":["a","b"]},"exp-home-usp-above-car-slider":{"name":"exp-home-usp-above-car-slider","enabled":false,"pages":["home-new"],"buckets":["a","b"]},"feat-self-serve-repair-order-creation-change-workshop":{"name":"feat-self-serve-repair-order-creation-change-workshop","enabled":true,"pages":[],"buckets":["b"]},"exp-plp-viewed-together-v2":{"name":"exp-plp-viewed-together-v2","enabled":true,"pages":[],"buckets":["a","b"]},"exp-plp-fast-available-redirect-v1":{"name":"exp-plp-fast-available-redirect-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-pcp-restore-previous-config-v1":{"name":"exp-pcp-restore-previous-config-v1","enabled":false,"pages":[],"buckets":["a","b"]},"exp-insurance-pre-handover-protection-v1":{"name":"exp-insurance-pre-handover-protection-v1","enabled":false,"pages":[],"buckets":["a","b"]},"exp-home-sticky-cta-scroll-v2":{"name":"exp-home-sticky-cta-scroll-v2","enabled":true,"pages":[],"buckets":["a","b"]}
1,"exp-mdp-redirect-v1":{"name":"exp-mdp-redirect-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-pcp-strikethrough-price-v1":{"name":"exp-pcp-strikethrough-price-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-plp-paid-price-sort-v1":{"name":"exp-plp-paid-price-sort-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp_home_finn_vs_leasing_comparison_module":{"name":"exp_home_finn_vs_leasing_comparison_module","enabled":false,"pages":[],"buckets":["a","b"]},"feat-paypal-bnpl":{"name":"feat-paypal-bnpl","enabled":true,"pages":[],"buckets":["b"]},"exp-lp-auto-abo-hero-lead-gen-primary-cta":{"name":"exp-lp-auto-abo-hero-lead-gen-primary-cta","enabled":true,"pages":[],"buckets":["a","b"]},"exp-verification-persona":{"name":"exp-verification-persona","enabled":true,"pages":[],"buckets":["b","b","b","b","b","b","b","b","b","b"]},"feat-damages-and-services":{"name":"feat-damages-and-services","enabled":true,"pages":[],"buckets":["b"]},"feat-show-final-invoice-section":{"name":"feat-show-final-invoice-section","enabled":true,"pages":[],"buckets":["b"]},"exp-e2e-b2b-lp-productgrid":{"name":"exp-e2e-b2b-lp-productgrid","enabled":true,"pages":[],"buckets":["a","a","a","a","a","a","a","a","a","b"]}},"en-DE":{"exp-confirmation-deposit-modal-v1":{"name":"exp-confirmation-deposit-modal-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-address-sticky-cta-v1":{"name":"exp-address-sticky-cta-v1","enabled":false,"pages":[],"buckets":["a","b"]},"exp-plp-viewed-together-v2":{"name":"exp-plp-viewed-together-v2","enabled":true,"pages":[],"buckets":["a","b"]},"exp-plp-fast-available-redirect-v1":{"name":"exp-plp-fast-available-redirect-v1","enabled":true,"pages":[],"buckets":["a","b"]},"exp-insurance-pre-handover-protection-v1":{"name":"exp-insurance-pre-handover-protection-v1","enabled":false,"pages":[],"buckets":["a","b"]},"exp-mdp-redirect-v1":{"name":"exp-mdp-redirect-v1","enabled":true,"pages":[],"buckets":["a","b"]}}}');var E=a(15961),C=a(55918);let S=({text:e,hotkey:t,helperText:a,onClick:o,isActive:r})=>((0,C.A)(t,e=>o?.(e)),(0,s.jsxs)("div",{className:"md:hover:bg-cotton flex cursor-pointer items-center md:w-auto md:py-2",onClick:o,children:[(0,s.jsxs)("div",{className:"w-full",onClick:e=>{e.stopPropagation()},children:[(0,s.jsx)("p",{className:"body-14-regular pr-8",children:e}),(a||t)&&(0,s.jsx)("p",{className:"text-steel body-14-regular mt-1 pr-8",children:a||t})]}),(0,s.jsx)(E.d,{checked:!!r,value:"checkedA",color:"default"})]}));var k=a(96971),A=a(21088);let T=new Set(d.V),N=n.memo(({open:e,onClose:t})=>{let{isCosmicHelperActive:a,toggleCosmicHelper:o}=(()=>{let[e,t]=(0,n.useState)(b().get(k.$K.DEV_PASS)===b().get(k.$K.COSMIC_HELPER)),a=(0,n.useCallback)(()=>{e?(b().set(k.$K.COSMIC_HELPER,"no"),t(!1)):(b().set(k.$K.COSMIC_HELPER,b().get(k.$K.DEV_PASS)??""),t(!0))},[e]);return{isCosmicHelperActive:e,toggleCosmicHelper:a}})(),r=(0,_.At)(),{handleSignOut:d}=(0,u.R)({session:r??null}),{isCheckoutHelperActive:v,toggleCheckoutHelper:E}=(()=>{let[e,t]=(0,n.useState)(b().get(k.$K.DEV_PASS)===b().get(k.$K.CHECKOUT_HELPER)),a=(0,n.useCallback)(()=>{e?(b().set(k.$K.CHECKOUT_HELPER,"no"),t(!1)):(b().set(k.$K.CHECKOUT_HELPER,b().get(k.$K.DEV_PASS)??""),t(!0))},[e]);
1return{isCheckoutHelperActive:e,toggleCheckoutHelper:a}})(),{isTestStripeEnabled:C,toggleTestStripe:N}=(()=>{let[e,t]=(0,n.useState)("yes"===b().get(k.$K.E2E_TEST_IN_PROGRESS)),a=(0,n.useCallback)(()=>{e?(b().set(k.$K.E2E_TEST_IN_PROGRESS,"no"),t(!1)):(b().set(k.$K.E2E_TEST_IN_PROGRESS,"yes"),t(!0))},[e]);return{isTestStripeEnabled:e,toggleTestStripe:a}})(),{isCosmicS3:I,toggleCosmicS3:P}=(()=>{let[e]=(0,n.useState)("yes"===y.A.COSMIC_USE_S3);return{isCosmicS3:e,toggleCosmicS3:(0,n.useCallback)(()=>{alert("Can't set using browser as this is based on env variable and not with cookies to support getStaticProps.\nSet COSMIC_USE_S3=yes (or no) in your .env variable")},[])}})(),{isDirectCheckoutDisabled:O,toggleDirectCheckoutDisabling:L}=(()=>{let[e,t]=(0,n.useState)("yes"===b().get(k.$K.DISABLE_DIRECT_CHECKOUT_FOR_E2E)),a=(0,n.useCallback)(()=>{e?(b().set(k.$K.DISABLE_DIRECT_CHECKOUT_FOR_E2E,"no"),t(!1)):(b().set(k.$K.DISABLE_DIRECT_CHECKOUT_FOR_E2E,"yes"),t(!0))},[e]);return{isDirectCheckoutDisabled:e,toggleDirectCheckoutDisabling:a}})(),{isPDPHelperActive:D,togglePDPHelper:R}=(0,A.A)(),{isAllowImpersonationTracking:M,toggleAllowImpersonationTracking:j}=(()=>{let[e,t]=(0,n.useState)("yes"===(0,g.gp)(g.cY.ALLOW_IMPERSONATION_TRACKING)),a=(0,n.useCallback)(()=>{e?((0,g.q2)(g.cY.ALLOW_IMPERSONATION_TRACKING,null),t(!1)):((0,g.q2)(g.cY.ALLOW_IMPERSONATION_TRACKING,"yes",1),t(!0))},[e]);return{isAllowImpersonationTracking:e,toggleAllowImpersonationTracking:a}})(),{isAllowImpersonationPopups:$,toggleAllowImpersonationPopups:K}=(()=>{let[e,t]=(0,n.useState)("yes"===(0,g.gp)(g.cY.ALLOW_IMPERSONATION_POPUPS)),a=(0,n.useCallback)(()=>{e?((0,g.q2)(g.cY.ALLOW_IMPERSONATION_POPUPS,null),t(!1)):((0,g.q2)(g.cY.ALLOW_IMPERSONATION_POPUPS,"yes",1),t(!0))},[e]);return{isAllowImpersonationPopups:e,toggleAllowImpersonationPopups:a}})(),{isSimilarityScoreEnabled:U,toggleSimilarityScore:V}=(0,h.L)(),{isPLPRerankingDebugEnabled:z,togglePLPRerankingDebug:G}=(0,m.c)(),{isTerminalActive:F,terminalSlug:H,toggleTerminalMode:W,updateSlug:Y}=(()=>{let[e,t]=(0,n.useState)(!!b().get(k.$K.TERMINAL_EVENT)),[a,s]=(0,n.useState)(b().get(k.$K.TERMINAL_EVENT)||""),o=(0,n.useCallback)(()=>{e?(b().remove(k.$K.TERMINAL_EVENT),t(!1),s("")):a&&(b().set(k.$K.TERMINAL_EVENT,a,{expires:30}),t(!0))},[e,a]),r=(0,n.useCallback)(t=>{s(t),e&&t&&b().set(k.$K.TERMINAL_EVENT,t,{expires:30})},[e]);return{isTerminalActive:e,terminalSlug:a,toggleTerminalMode:o,updateSlug:r}})(),[B,X]=(0,n.useState)(),{locale:q}=(0,f.n)(),[Q,J,Z]=(0,n.useMemo)(()=>{let e=x[q];if(!e)return[[],[],e];let t=[],a=[];for(let[s,o]of Object.entries(e)){let e=new Set(o?.buckets||[]).size,r=T.has(s);e>1&&!r?t.push(s):a.push(s)}return[t,a,e]},[q]),ee=(0,w.mN)({mode:"onChange",defaultValues:Q.reduce((e,t)=>(e[t]=b().get(`${q}_${t}`)??"",e),{})});return(0,n.useEffect)(()=>{let e={};Q.forEach(t=>{e[t]=b().get(`${q}_${t}`)??""}),X(e)},[]),(0,s.jsx)(p.aF,{open:e,onOpenChange:e=>{e||(t(),window.setTimeout(()=>{window.location.reload()},250))},children:(0,s.jsxs)(p.$m,{children:[(0,s.jsx)(p.rQ,{children:(0,s.jsx)(p.wt,{children:"Dev Controls"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(S,{text:"Content Helper",hotkey:"Control+1",isActive:a,onClick:o}),(0,s.jsx)(S,{text:"PDP Helper",hotkey:"Control+2",isActive:D,onClick:R}),(0,s.jsx)(S,{text:"Checkout Helper",hotkey:"Control+3",isActive:v,onClick:E}),(0,s.jsx)(S,{text:"Test Stripe on Prod",hotkey:"Control+4",helperText:"Control+4: non-prod ENVs always use test stripe",isActive:C,onClick:N}),(0,s.jsx)(S,{text:"Disable Direct Checkout",hotkey:"Control+5",isActive:O,onClick:L}),(0,s.jsx)(S,{text:"Allow tracking impersonated user",helperText:"Control+6: Allow tracking even when impersonating (for 1 hour)",hotkey:"Control+6",isActive:M,onClick:j}),(0,s.jsx)(S,{text:"Allow popups while impersonating",helperText:"Control+9: Auto-popups (NPS/CSAT/retention) show during impersonation and track to separate -imp settings keys, so the real customer's popup state is untouched (for 1 hour)",hotkey:"Control+9",isActive:$,onClick:K}),(0,s.jsx)(S,{text:"Show Similarity Score",helperText:"Control+7: Show ML similarity score badge on product cards",hotkey:"Control+7",isActive:U,onClick:V}),(0,s.jsx)(S,{text:"Terminal Mode",helperText:"Control+8: Activate kiosk/event terminal mode",hotkey:"Control+8",isActive:F,onClick:W}),(0,s.jsx)("div",{className:"mb-2 ml-4",children:(0,s.jsx)(l.p,{label:"Event Slug",value:H,onChange:e=>Y(e.target.value),placeholder:"e.g. dvv-pokalfinale"})}),(0,s.jsx)(S,{text:"Show PLP Reranking Debug",helperText:"Control+9: Show old/new rank and reranking reasons on product cards",hotkey:"Control+9",isActive:z,onClick:G}),"development"===y.A.APP_STAGE?(0,s.jsx)(S,{text:"Use Cosmic Directly From S3 Backup",helperText:"To toggle, Set COSMIC_USE_S3=yes (or no) in your .env variable",hotkey:"Control+Shift+Option+9",isActive:I,onClick:P}):null,B&&(0,s.jsx)(w.Op,{...ee,children:(0,s.jsxs)("form",{children:[(0,s.jsx)("div",{className:"my-6",children:(0,s.jsx)("h5",{className:"global-t5-semibold",children:"Experiments"})}),Q.map(e=>(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsxs)("div",{className:"grid grid-cols-2 items-center",children:[(0,s.jsx)("div",{children:e}),(0,s.jsx)("div",{children:(0,s.jsx)(i.z,{name:e,placeholder:"",options:(Z[e]?.buckets||[]).map(e=>({label:e,value:e})).reduce((e,t)=>
1{let a=e.find(e=>e.value===t.value);return a?a.count=(a.count||1)+1:e.push({...t,count:1}),e},[]).map(t=>({...t,label:`${t.value} (${Math.round(t.count/(Z[e]?.buckets?.length||NaN)*100)}%)`})),onChange:t=>{b().set(`${q}_${e}`,t),ee.setValue(e,t)}})})]})},e)),(0,s.jsx)("div",{className:"mt-10 mb-4",children:(0,s.jsx)("h5",{className:"global-t5-semibold",children:"Disabled Experiments"})}),(0,s.jsx)("span",{className:"body-14-light",children:J.join(", ")})]})})]}),(0,s.jsx)(p.jl,{children:(0,s.jsxs)("div",{className:"flex gap-8",children:[(0,s.jsx)(c.$,{className:"w-full",onClick:()=>{t(),window.location.reload()},children:"Close & Reload"}),(0,s.jsx)(c.$,{className:"w-full",variant:"ghost",onClick:()=>{d()},children:"Logout"})]})})]})})}),I=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.Bs,{modalKey:r.t.DEV_MODAL,ModalComponent:N})});var P=a(26947),O=a(36631),L=a(20645),D=a(38272),R=a(94301),M=a(77049),j=a(37417),$=a(91736);a(66192);var K=a(34e3),U=a(87596),V=a(38039),z=a(45371),G=a(86103),F=a(79748),H=a(21153),W=a(78632),Y=a(34113);let B=async({contactId:e,expoToken:t,deviceToken:a})=>{await fetch("/api/savePushToken",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contact_id:e,push_token:t,device_push_token:a})})};var X=a(50184);let q=()=>(0,s.jsx)("style",{children:`
2    html {
3      -webkit-tap-highlight-color: transparent;
4      max-width: calc(100vw - 2px);
5    }
6    body {
7      -webkit-tap-highlight-color: transparent;
8    }
9    body.pdp.region-de-DE {
10      margin-top: -24px;
11    }
12    body.checkout {
13      max-width: 100%;
14      overflow-x: hidden;
15    }
16
17    div[data-appid='product-details'] {
18      padding-bottom: calc(88px + var(--bottom-inset) + 16px);
19      padding-top: 24px;
20  
21      width: 100%;
22      height: 100%;
23      margin: 0 auto;
24      max-width: calc(100vw - 32px);
25    }
26
27    /* 
28      Web putting sticky bars to the top, which
29      does not really work for app, so we move it back to bottom
30    */
31    [data-appid='product-details'] [data-appid='sticky-bar'] {
32      bottom: 0;
33      height:88px !important;
34      top: calc(
35        var(--webview-height) - 88px - var(--bottom-inset) !important;
36      );
37      transform: translate(0px, 0px);
38    }
39
40    body:not(.home) :not([data-testid='drawer-header']) [role='dialog'] button:has(svg .menu-close-icon),
41    body:not(.home) :not([data-testid='drawer-header']) [role='dialog'] button:has(svg[aria-label='close-icon']):not(.bottom-sheet),
42    body:not(.home) :not([data-testid='drawer-header']) [data-appid='image-gallery-mobile-close-button'],
43    .my_cars [data-testid='header'] {
44      visibility: hidden;
45    }
46
47    .my_car [data-appid='heading'] div span {
48      font-weight: 600;
49      font-size: 24px;
50      line-height: 32px;
51    }
52
53    div[data-appid='image-gallery-mobile-fullScreen'] {
54      top: calc((88px + var(--bottom-inset)) * -1);
55    }
56  
57    div[data-appid='emission-modal-content'] {
58      padding-top: 48px;
59      margin-top: calc((88px + var(--bottom-inset)) * -1);
60    }
61  
62    div[data-appid='bottom-marker'] {
63      height: 1px;
64    }
65  
66    .order_status [data-cy='steps-module'], 
67    .thank_you [data-cy='steps-module'],
68    .my_cars [data-appid='mycars'],
69    .report_damage [data-appid='info-modal-header'] + div {
70      margin-top: 16px;
71    }
72  
73    .my_cars [data-appid='mycars'] h1,
74    .my_cars [data-appid='service-selector-dialog-header'],
75    .my_cars [data-appid='retention-modal-dialog-header'],
76    .my_car [data-appid='service-selector-dialog-header'],
77    .my_car [data-appid='retention-modal-dialog-header'],
78    .report_damage [role='dialog'] button,
79    .report_damage [data-appid='info-modal-header'] {
80      display: none;
81    }
82  
83    .my_cars [role='dialog'],
84    .my_car [role='dialog'] {
85      padding-top: 32px;
86    }
87  
88    .my_cars [data-appid='service-selector-dialog-header'] + div,
89    .my_cars [data-appid='retention-modal-dialog-header'] + div,
90    .my_car [data-appid='service-selector-dialog-header'] + div,
91    .my_car [data-appid='retention-modal-dialog-header'] + div {
92      margin-top: 32px;
93    }
94
95    .my_car [data-appid='spacing_wrapper'] {
96      margin-top: 0px;
97    }
98  
99    .my_car [data-appid='heading'] {
100      margin-bottom: 0px;
101    }
102  
103    .schedule_service [data-appid='schedule-service-container'],
104    .report_damage [data-appid='report-damage-container'],
105    .return [data-appid='return-container'] {
106      margin-bottom: 16px;
107    }
108  }
109  `}),Q=async(e,t)=>{let a=(0,Y.c)();try{let s=await (0,H.signIn)(e,{redirect:!1,...a?{appVersion:a.getTrackingProps().app_version}:{},...t});return s.ok=s.ok&&!s.error,s}catch(e){return{status:500,ok:!1,error:"server_error",url:null}}},J=`${!(0,V.S)?.()?window.origin:"https://auth-new.netlify.app"}/api/auth`,Z=async(e,t)=>{let a=500,s=null;try{let o=await G.A.post(`${J}/custom/${e}`,t,{headers:(0,z.Gb)()});a=o.status,s=o.data}catch(e){return{status:a,ok:!1,error:404===e.response.status&&e.response?.data?.message||"server_error",url:null}}return{status:a,ok:200===a&&s.success,error:s.message,url:null}},ee=async(e,t)=>Q("login",{email:e,password:t}),et=async e=>Q("loginWithCode",{code:e}),ea=async e=>Q("loginWithToken",{token:e}),es=async()=>(0,H.signOut)({redirect:!1}),eo=async()=>Z("refreshCode",{}),er=async e=>Z("verifyCode",{code:e}),en=({announceNavigations:e=!1}={})=>
109{let[t,a]=(0,_.wV)(),{modalStatus:r,setModalStatus:i}=(0,n.useContext)(K.uu),c=(0,n.useRef)(!1),l=r?.isModalOpen&&r?.modalType,p=(0,F.usePathname)(),u=(0,o.t6)(),d=(0,n.useRef)(null),g=(0,n.useRef)(null);return(0,n.useEffect)(()=>{navigator.userAgent.toLowerCase()?.includes("android")&&(0,X.ub)();let t=(0,Y.c)();return t&&(t.signIn=ee,t.signOut=async()=>{(0,W.WN)(),await es?.(),t.sendMessageToApp({type:"event:signout_successful"}),window.location.reload()},t.signInWithToken=async(e,a)=>{if("token"!==e&&"emptyToken"!==e){let s=await ea?.(e);a&&t.sendMessageToApp({requestId:a,type:"event:login_with_token",value:s.ok})}},t.savePushToken=B,e&&p&&null!==d.current&&d.current!==p&&t.sendMessageToApp({type:"event:navigate",value:`${p}${window.location.search||""}`}),t?.sendMessageToApp({type:"event:sdk_initialized"}),g.current=setTimeout(()=>{(0,W.$l)()||(0,Y.c)()?.sendMessageToApp({type:"event:sdk_initialized"})},W.hC)),p&&(d.current=p),()=>{g.current&&(clearTimeout(g.current),g.current=null)}},[p,e]),(0,n.useEffect)(()=>{let e=(0,Y.c)();e&&(e.userSession=t,e.openModal=e=>{u?.(e)},e.showVerifyEmailModal=()=>{i({isModalOpen:!0,modalType:U.S.EMAIL_VERIFICATION})},e.verifyEmail=async e=>{(await er(e)).ok&&(await et?.(e),await eo(),i({isModalOpen:!0,modalType:U.S.EMAIL_VERIFIED_SUCCESSFULLY}))})},[t,i,u]),(0,n.useEffect)(()=>{a||(0,Y.c)()?.sendMessageToApp({type:"event:user_authenticated",value:t})},[t,a]),(0,o.WZ)(e=>{(0,Y.c)()?.sendMessageToApp?.({type:"event:open_modal",value:e}),c.current=!0}),(0,o.I2)(e=>{(0,Y.c)()?.sendMessageToApp?.({type:"event:close_modal",value:e}),c.current=!1}),(0,n.useEffect)(()=>{let e=(0,Y.c)();e&&(l&&!c.current?(e.sendMessageToApp?.({type:"event:open_modal",value:l}),c.current=!0):c.current&&(e.sendMessageToApp?.({type:"event:close_modal"}),c.current=!1))},[l]),(0,s.jsx)(q,{})};var ei=a(27795),ec=a(33611),el=a(71255),ep=a(67371),eu=a(52817),ed=a(19851),e_=a(59055),eg=a(25556);let eh=(0,ed.vt)()((0,e_.lt)((0,eg.D)(e=>({isOneTapDismissed:!1,setIsOneTapDismissed:()=>{e(e=>{e.isOneTapDismissed=!0})}})),{name:"LoginNudgeStore"})),em=({hasCookieConsent:e})=>((e=>{let[t]=(0,_.wV)(),a=null===t,{parentContainerId:s}=e||{},o=(0,ei.i)(e=>
109e.track),[r,i]=(0,n.useState)(!1),[c,l]=(0,n.useState)(0),p=eh(e=>e.setIsOneTapDismissed);return(0,n.useEffect)(()=>{if(!(0,el.K)()&&e?.hasCookieConsent&&!r&&a&&c<5){let{google:t}=window;t?(t.accounts.id.initialize({client_id:"88912289849-93l2n1lk8vsuub4pf0b99hu27bujsvtr.apps.googleusercontent.com",callback:async t=>{i(!0),o(ec.fC.LOGIN_METHOD_CLICKED,{additionalProps:{loginMethod:"googleonetap"}}),await (0,eu.Hr)(t.credential,e),(0,ep.sx)("Account Logged In",{loginMethod:"googleonetap"}),i(!1)},prompt_parent_id:s,use_fedcm_for_prompt:!0,use_fedcm_for_button:!0}),t.accounts.id.prompt(e=>{if(e?.isNotDisplayed?.()||e?.isDismissedMoment?.()||e?.isSkippedMoment?.()){let t=e?.getNotDisplayedReason?.()||e?.getDismissedReason?.()||e?.getSkippedReason?.();"credential_returned"!==t&&(p(),o(ec.fC.GOOGLE_ONE_TAP_LOGIN_MESSAGE,{additionalProps:{type:"dismissed",message:t,notDisplayedReason:e?.getNotDisplayedReason?.(),dismissedReason:e?.getDismissedReason?.(),skippedReason:e?.getSkippedReason?.()}}))}})):setTimeout(()=>{l(e=>e+1)},2e3)}},[r,a,e,s,c,o,p])})({redirect:!1,parentContainerId:"oneTap",hasCookieConsent:e}),(0,s.jsx)("div",{id:"oneTap",className:"absolute top-0 right-0"}));var ef=a(3764),ey=a(51744);let ev=({open:e,onClose:t,onCloseCallback:a,isNewCustomer:n})=>{let i=(0,ei.i)(e=>e.track),l=(0,ey.t)(),u=n?"newCustomer":"returningCustomer",d=l.formatMessage(`general.loginNudgeModal.${u}.title`),_=l.formatMessage(`general.loginNudgeModal.${u}.benefitTitle`),g=l.formatMessage(`general.loginNudgeModal.${u}.benefits`),h=l.formatMessage(`general.loginNudgeModal.${u}.ctaLabel`),m=l.formatMessage(`general.loginNudgeModal.${u}.description`),f=(0,o.t6)(),y=(0,o.Hl)(),v=[];try{v=JSON.parse(g)}catch{console.error("Failed to parse benefits JSON:",g)}return(0,s.jsx)(p.aF,{variant:"small",open:e,onOpenChange:e=>{e||t(),e||a?.()},children:(0,s.jsxs)(p.$m,{children:[(0,s.jsx)(p.rQ,{children:(0,s.jsx)(p.wt,{children:d})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)("p",{className:"body-16-light",children:m}),(0,s.jsx)("h3",{className:"body-16-semibold",children:_}),(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(v||[]).map(e=>(0,s.jsxs)("div",{className:"body-16-light flex",children:[(0,s.jsx)(ef.P,{width:24,height:24,className:"max-w-6 min-w-6 shrink-0 grow-0 basis-0"}),(0,s.jsx)("span",{className:"grow pl-2",children:e})]},e))})]}),(0,s.jsx)(p.jl,{children:(0,s.jsx)(c.$,{onClick:()=>{i(ec.fC.CTA_CLICKED,{location:"Login Nudge Modal",additionalProps:{isNewCustomer:n}}),y(r.t.LOGIN_NUDGE),f(r.t.LOGIN)},children:h})})]})})},eb=()=>{let e=(0,ei.i)(e=>e.track),[t]=(0,_.wV)(),[a,i]=(0,n.useState)(),c=eh(e=>e.isOneTapDismissed),l=(0,o.t6)(),p=(0,o.P0)(),u=(0,n.useRef)(!1),d=(0,n.useRef)(null);return(0,n.useEffect)(()=>{u.current=p},[p]),(0,n.useEffect)(()=>{let e=localStorage.getItem("ajs_user_id");e&&"null"!==e&&"undefined"!==e?i(!1):i(!0)},[]),(0,n.useEffect)(()=>{let s="yes"===(0,k.ok)(k.$K.IsE2ETest),o="yes"===(0,g.gp)(g.cY.LOGIN_NUDGE_SHOWN);if(void 0!==t&&!o&&!s&&!a&&!window.location.pathname.includes("business")){if(null===t&&c){(0,g.q2)(g.cY.LOGIN_NUDGE_SHOWN,"yes",1);let t=()=>{if(u.current){d.current=setTimeout(t,500);return}l(r.t.LOGIN_NUDGE),e(ec.fC.MODAL_OPENED,{name:"Login Nudge",additionalProps:{isNewCustomer:a}})};d.current=setTimeout(t,a?2e4:5e3)}return()=>{d.current&&(clearTimeout(d.current),d.current=null)}}},[c,a,t,e,l]),(0,s.jsx)(o.Bs,{modalKey:r.t.LOGIN_NUDGE,ModalComponent:ev,isNewCustomer:a,onCloseCallback:()=>{e(ec.fC.MODAL_CLOSED,{name:"Login Nudge",additionalProps:{isNewCustomer:a}})}})};var ew=a(27003),ex=a(74738);let eE=e=>({user:{name:e.name||"",email:e.email||"",email_verified:e.emailVerified?"true":"",hs_contact_id:e.hsContactId||void 0,hs_first_name:e.hsFirstName||void 0,hs_last_name:e.hsLastName||void 0,hs_country:e.hsCountry||void 0,hs_postalcode:e.hsPostalcode||void 0,loyalty_level:e.loyaltyLevel||null,user_role:e.userRole||void 0,is_job_auto:e.isJobAuto||!1,job_auto_company:e.jobAutoCompany||void 0}}),eC=()=>{let{data:e,isPending:t}=ex.y.useSession(),a=(0,n.useMemo)(()=>()=>e?.user?.email?[eE(e.user),t]:[null,t],[e,t]);return(0,n.useEffect)(()=>((0,_.m9)(a),()=>{(0,_.m9)(null)}),[a]),null},eS=({active:e=(0,ew.E1)(),children:t})=>
109{let a=(0,n.useSyncExternalStore)(ew.W_,ew.mK,()=>!1);return(0,n.useEffect)(()=>((0,ew.Ir)(e),()=>{(0,ew.Ir)(!1)}),[e]),(0,n.useEffect)(()=>e?((0,_.a2)(async()=>{if(!(0,ew.mK)())return null;try{let{data:e}=await ex.y.getSession();return e?.user?eE(e.user):null}catch{return null}}),()=>{(0,_.a2)(null)}):void(0,_.a2)(null),[e]),(0,s.jsxs)(s.Fragment,{children:[e&&a&&(0,s.jsx)(eC,{}),t]})},ek=({children:e,enabled:t=(0,ew.E1)()})=>(0,s.jsx)(H.SessionProvider,{refetchOnWindowFocus:!1,children:(0,s.jsx)(eS,{active:t,children:e})});var eA=a(80974),eT=a(88625),eN=a(36922),eI=a(45868),eP=a(17175),eO=a(74982),eL=a(25980),eD=a(27128);let eR=JSON.parse('{"de-DE":{"availability":[],"brands":[{"id":"Fiat","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/KYnjJ1.svg","filename":"fiat.svg","type":"image/svg+xml","size":495},"models":[{"id":"Grande Panda","available":true,"cheapest_price":304,"cheapest_downpayment_price":169,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":7524249},{"id":"500 Cabrio","available":true,"cheapest_price":274,"cheapest_downpayment_price":139,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":4471582},{"id":"Grande Panda Elektro","available":true,"cheapest_price":384,"cheapest_downpayment_price":249,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":4147884},{"id":"500","available":true,"cheapest_price":334,"cheapest_downpayment_price":199,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":3335502},{"id":"600","available":true,"cheapest_price":364,"cheapest_downpayment_price":229,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2953669}],"available":true,"popularity":7524249},{"id":"MG","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/dldiKn.svg","filename":"MG.svg","type":"image/svg+xml","size":560},"models":[{"id":"4 Urban","available":true,"cheapest_price":376.5,"cheapest_downpayment_price":269,"configs_count":4,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":6999965},{"id":"ZS","available":true,"cheapest_price":306.5,"cheapest_downpayment_price":199,"configs_count":19,"versions_count":4,"grouped_configs_count":6,"has_early_access":true,"popularity":6194743},{"id":"S5","available":true,"cheapest_price":486.5,"cheapest_downpayment_price":389,"configs_count":4,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":6115287},{"id":"HS","available":true,"cheapest_price":346.5,"cheapest_downpayment_price":239,"configs_count":14,"versions_count":4,"grouped_configs_count":5,"has_early_access":false,"popularity":5379181},{"id":"4","available":true,"cheapest_price":396.5,"cheapest_downpayment_price":289,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":4095905},{"id":"3","available":true,"cheapest_price":296.5,"cheapest_downpayment_price":189,"configs_count":10,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":3932736},{"id":"S9 PHEV","available":true,"cheapest_price":536.5,"cheapest_downpayment_price":439,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2915831},{"id":"S6","available":true,"cheapest_price":506.5,"cheapest_downpayment_price":409,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2592763},{"id":"Cyberster","available":true,"cheapest_price":836.5,"cheapest_downpayment_price":769,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2126860}],"available":true,"popularity":6999965},{"id":"Porsche","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/rG_ASK.svg","filename":"porsche.svg","type":"image/svg+xml","size":11142},"models":[{"id":"911 Carrera Cabriolet","available":true,"cheapest_price":2846,"cheapest_downpayment_price":2711,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":6133250}],"available":true,"popularity":6133250},{"id":"Kia","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/msazmf.svg","filename":"kia.svg","type":"image/svg+xml","size":961},"models":[{"id":"EV4","available":true,"cheapest_price":604,"cheapest_downpayment_price":469,"configs_count":12,"versions_count":1,"grouped_configs_count":4,"has_early_access":false,"popularity":5793271},{"id":"EV3","available":true,"cheapest_price":554,"cheapest_downpayment_price":419,"configs_count":5,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":2040516},{"id":"Sportage","available":true,"cheapest_price":484,"cheapest_downpayment_price":349,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1999976},{"id":"K4 Sportswagon","available":true,"cheapest_price":404,"cheapest_downpayment_price":269,"configs_count":5,"versions_count":1,"grouped_configs_count":2,"has_early_access":false,"popularity":1999662},{"id":"Picanto","available":true,"cheapest_price":364,"cheapest_downpayment_price":229,"configs_count":7,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":1959121},{"id":"EV2","available":true,"cheapest_price":464,"cheapest_downpayment_price":329,"configs_count":13,"versions_count":3,"grouped_configs_count":7,"has_early_access":false,"popularity":1945922},{"id":"EV6","available":true,"cheapest_price":694,"cheapest_downpayment_price":559,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1945608},{"id":"Ceed","available":true,"cheapest_price":494,"cheapest_downpayment_price":359,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1837500},{"id":"EV5","available":true,"cheapest_price":604,"cheapest_downpayment_price":469,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1717858},{"id":"Stonic","available":true,"cheapest_price":394,"cheapest_downpayment_price":259,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1514527}],"available":true,"popularity":5793271},{"id":"Nissan","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/LRFCwZ.svg","filename":"nissan.svg","type":"image/svg+xml","size":1793},"models":[{"id":"Qashqai","available":true,"cheapest_price":354,"cheapest_downpayment_price":219,"configs_count":5,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":5372549},{"id":"X-TRAIL","available":true,"cheapest_price":424,"cheapest_downpayment_price":289,"configs_count":15,"versions_count":4,"grouped_configs_count":6,"has_early_access":false,"popularity":2608713}],"available":true,"popularity":5372549},{"id":"Opel","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/ywXYF8.svg","filename":"opel.svg","type":"image/svg+xml","size":982},"models":[{"id":"Corsa","available":true,"cheapest_price":324,"cheapest_downpayment_price":189,"configs_count":6,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":5335847},{"id":"Mokka","available":true,"cheapest_price":344,"cheapest_downpayment_price":209,"configs_count":6,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":4484496},{"id":"Frontera","available":true,"cheapest_price":344,"cheapest_downpayment_price":209,"configs_count":6,"versions_count":4,"grouped_configs_count":4,"has_early_access":false,"popularity":4479234},{"id":"Grandland","available":true,"cheapest_price":364,"cheapest_downpayment_price":229,"configs_count":3,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":3809402},{"id":"Astra Sports Tourer","available":true,"cheapest_price":404,"cheapest_downpayment_price":269,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":3417196},{"id":"Astra","available":true,"cheapest_price":394,"cheapest_downpayment_price":259,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2494209}],"available":true,"popularity":5335847},{"id":"Dacia","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/TjNV9y.svg","filename":"dacia.svg","type":"image/svg+xml","size":508},"models":[{"id":"Bigster","available":true,"cheapest_price":364,"cheapest_downpayment_price":229,"configs_count":9,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":5305117},{"id":"Duster","available":true,"cheapest_price":314,"cheapest_downpayment_price":179,"configs_count":11,"versions_count":4,"grouped_configs_count":4,"has_early_access":true,"popularity":2700169},{"id":"Jogger","available":true,"cheapest_price":374,"cheapest_downpayment_price":239,"configs_count":6,"versions_count":1,"grouped_configs_count":2,"has_early_access":false,"popularity":2213391}],"available":true,"popularity":5305117},{"id":"Jeep","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/QkGF5c.svg","filename":"jeep.svg","type":"image/svg+xml","size":1805},"models":[{"id":"Compass","available":true,"cheapest_price":414,"cheapest_downpayment_price":279,"configs_count":6,"versions_count":3,"grouped_configs_count":4,"has_early_access":false,"popularity":5239038},{"id":"Avenger","available":true,"cheapest_price":334,"cheapest_downpayment_price":199,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":5044767}],"available":true,"popularity":5239038},{"id":"MINI","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/gQNGDt.svg","filename":"mini.svg","type":"image/svg+xml","size":1049},"models":[{"id":"Countryman","available":true,"cheapest_price":514,"cheapest_downpayment_price":379,"configs_count":42,"versions_count":6,"grouped_configs_count":25,"has_early_access":false,"popularity":5185153},{"id":"3-T\xfcrer Cooper","available":true,"cheapest_price":384,"cheapest_downpayment_price":249,"configs_count":27,"versions_count":6,"grouped_configs_count":19,"has_early_access":false,"popularity":1999976},{"id":"5-T\xfcrer Cooper","available":true,"cheapest_price":474,"cheapest_downpayment_price":299,"configs_count":1
1097,"versions_count":5,"grouped_configs_count":11,"has_early_access":false,"popularity":1914527}],"available":true,"popularity":5185153},{"id":"Citroen","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/h6vPc_.svg","filename":"Citroen.svg","type":"image/svg+xml","size":1044},"models":[{"id":"C5 Aircross","available":true,"cheapest_price":404,"cheapest_downpayment_price":269,"configs_count":3,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":4934509},{"id":"C3 Aircross","available":true,"cheapest_price":344,"cheapest_downpayment_price":209,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":3135763},{"id":"C3","available":true,"cheapest_price":304,"cheapest_downpayment_price":169,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2974206},{"id":"\xeb-C3 Aircross","available":true,"cheapest_price":374,"cheapest_downpayment_price":239,"configs_count":2,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2841098}],"available":true,"popularity":4934509},{"id":"Mazda","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/r4KRzT.svg","filename":"mazda.svg","type":"image/svg+xml","size":799},"models":[{"id":"CX-30","available":true,"cheapest_price":434,"cheapest_downpayment_price":299,"configs_count":3,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":4802246},{"id":"CX-60","available":true,"cheapest_price":554,"cheapest_downpayment_price":419,"configs_count":9,"versions_count":2,"grouped_configs_count":6,"has_early_access":false,"popularity":2375160},{"id":"CX-80","available":true,"cheapest_price":714,"cheapest_downpayment_price":579,"configs_count":10,"versions_count":2,"grouped_configs_count":4,"has_early_access":false,"popularity":2040202},{"id":"CX-5","available":true,"cheapest_price":454,"cheapest_downpayment_price":319,"configs_count":23,"versions_count":3,"grouped_configs_count":12,"has_early_access":true,"popularity":1918581},{"id":"Mazda3","available":true,"cheapest_price":374,"cheapest_downpayment_price":239,"configs_count":6,"versions_count":2,"grouped_configs_count":2,"has_early_access":true,"popularity":1707071},{"id":"CX-6e","available":true,"cheapest_price":624,"cheapest_downpayment_price":489,"configs_count":8,"versions_count":1,"grouped_configs_count":6,"has_early_access":false,"popularity":1693557}],"available":true,"popularity":4802246},{"id":"Hyundai","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/TCq1JE.svg","filename":"Hyundai.svg","type":"image/svg+xml","size":1342},"models":[{"id":"Santa Fe","available":true,"cheapest_price":576.5,"cheapest_downpayment_price":489,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":4698136},{"id":"i30 Kombi","available":true,"cheapest_price":336.5,"cheapest_downpayment_price":229,"configs_count":6,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":3068801},{"id":"i20","available":true,"cheapest_price":306.5,"cheapest_downpayment_price":199,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2975149},{"id":"Inster","available":true,"cheapest_price":376.5,"cheapest_downpayment_price":269,"configs_count":6,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2611462},{"id":"Tucson","available":true,"cheapest_price":376.5,"cheapest_downpayment_price":269,"configs_count":20,"versions_count":4,"grouped_configs_count":7,"has_early_access":false,"popularity":2549525},{"id":"i30","available":true,"cheapest_price":336.5,"cheapest_downpayment_price":239,"configs_count":6,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2526689},{"id":"IONIQ 5","available":true,"cheapest_price":606.5,"cheapest_downpayment_price":519,"configs_count":12,"versions_count":2,"grouped_configs_count":4,"has_early_access":false,"popularity":2284703},{"id":"Bayon","available":true,"cheapest_price":336.5,"cheapest_downpayment_price":229,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2162138},{"id":"IONIQ 6","available":true,"cheapest_price":676.5,"cheapest_downpayment_price":599,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2135111},{"id":"IONIQ 9","available":true,"cheapest_price":1046.5,"cheapest_downpayment_price":979,"configs_count":2,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":1932408}],"available":true,"popularity":4698136},{"id":"BYD","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/PE-bWV.svg","filename":"BYD.svg","type":"image/svg+xml","size":2326},"models":[{"id":"Dolphin Surf","available":true,"cheapest_price":326.5,"cheapest_downpayment_price":259,"configs_count":5,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":4671802},{"id":"Sealion 7","available":true,"cheapest_price":646.5,"cheapest_downpayment_price":579,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":3734514},{"id":"Seal 6 DM-i Touring","available":true,"cheapest_price":366.5,"cheapest_downpayment_price":299,"configs_count":7,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":3707628},{"id":"Seal U DM-I","available":true,"cheapest_price":486.5,"cheapest_downpayment_price":419,"configs_count":3,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":3192858},{"id":"Atto 2","available":true,"cheapest_price":476.5,"cheapest_downpayment_price":409,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2923845},{"id":"Dolphin","available":true,"cheapest_price":416.5,"cheapest_downpayment_price":349,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2666459}],"available":true,"popularity":4671802},{"id":"Skoda","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/YdfOrY.svg","filename":"skoda.svg","type":"image/svg+xml","size":4815},"models":[{"id":"Elroq","available":true,"cheapest_price":654,"cheapest_downpayment_price":519,"configs_count":15,"versions_count":5,"grouped_configs_count":6,"has_early_access":false,"popularity":4095922},{"id":"Enyaq","available":true,"cheapest_price":754,"cheapest_downpayment_price":619,"configs_count":14,"versions_count":4,"grouped_configs_count":5,"has_early_access":false,"popularity":3161426},{"id":"Enyaq Coup\xe9","available":true,"cheapest_price":724,"cheapest_downpayment_price":589,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2306498}],"available":true,"popularity":4095922},{"id":"Ford","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/s5SpAt.svg","filename":"ford (1).svg","type":"image/svg+xml","size":4109},"models":[{"id":"Puma","available":true,"cheapest_price":354,"cheapest_downpayment_price":219,"configs_count":6,"versions_count":1,"grouped_configs_count":3,"has_early_access":false,"popularity":3723057},{"id":"Kuga","available":true,"cheapest_price":454,"cheapest_downpayment_price":319,"configs_count":5,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":3001638},{"id":"Explorer","available":true,"cheapest_price":604,"cheapest_downpayment_price":469,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2987061},{"id":"Tourneo Custom","available":true,"cheapest_price":724,"cheapest_downpayment_price":589,"configs_count":7,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2975730},{"id":"Capri","available":true,"cheapest_price":604,"cheapest_downpayment_price":469,"configs_count":5,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":2428119},{"id":"Mustang","available":true,"cheapest_price":1074,"cheapest_downpayment_price":939,"configs_count":4,"versions_count":1,"grouped_configs_count":3,"has_early_access":false,"popularity":2257385},{"id":"Grand Tourneo Connect","available":true,"cheapest_price":614,"cheapest_downpayment_price":479,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1908422}],"available":true,"popularity":3723057},{"id":"Cupra","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/TMvK5C.svg","filename":"Cupra.svg","type":"image/svg+xml","size":1624},"models":[{"id":"Terramar","available":true,"cheapest_price":456.5,"cheapest_downpayment_price":369,"configs_count":7,"versions_count":2,"grouped_configs_count":5,"has_early_access":false,"popularity":3503692},{"id":"Leon Sportstourer","available":true,"cheapest_price":376.5,"cheapest_downpayment_price":279,"configs_count":13,"versions_count":3,"grouped_configs_count":8,"has_early_access":false,"popularity":3256418},{"id":"Formentor","available":true,"cheapest_price":436.5,"cheapest_downpayment_price":319,"configs_count":12,"versions_count":4,"grouped_configs_count":6,"has_early_access":false,"popularity":3188851},{"id":"Born","available":true,"cheapest_price":536.5,"cheapest_downpayment_price":469,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2716821},{"id":"Leon","available":true,"cheapest_price":396.5,"cheapest_downpayment_price":299,"configs_count":3,"versions_count":1,"grouped_configs_count":3,"has_early_access":false,"popularity":2257047},{"id":"Ateca","available":true,"cheapest_price":484,"cheapest_downpayment_price":349,"configs_count":8,"ver
109sions_count":3,"grouped_configs_count":5,"has_early_access":false,"popularity":2112694}],"available":true,"popularity":3503692},{"id":"BMW","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/KIFt7R.svg","filename":"bmw.svg","type":"image/svg+xml","size":1784},"models":[{"id":"5er Limousine","available":true,"cheapest_price":864,"cheapest_downpayment_price":729,"configs_count":27,"versions_count":4,"grouped_configs_count":17,"has_early_access":false,"popularity":3388237},{"id":"3er Touring","available":true,"cheapest_price":644,"cheapest_downpayment_price":509,"configs_count":32,"versions_count":8,"grouped_configs_count":17,"has_early_access":false,"popularity":3166360},{"id":"5er Touring","available":true,"cheapest_price":754,"cheapest_downpayment_price":619,"configs_count":30,"versions_count":5,"grouped_configs_count":18,"has_early_access":true,"popularity":2920306},{"id":"X1","available":true,"cheapest_price":614,"cheapest_downpayment_price":479,"configs_count":47,"versions_count":11,"grouped_configs_count":28,"has_early_access":false,"popularity":2866479},{"id":"3er Limousine","available":true,"cheapest_price":584,"cheapest_downpayment_price":449,"configs_count":30,"versions_count":6,"grouped_configs_count":1
1097,"has_early_access":false,"popularity":2818608},{"id":"X3","available":true,"cheapest_price":764,"cheapest_downpayment_price":589,"configs_count":86,"versions_count":5,"grouped_configs_count":51,"has_early_access":false,"popularity":2590902},{"id":"2er Active Tourer","available":true,"cheapest_price":454,"cheapest_downpayment_price":319,"configs_count":4,"versions_count":3,"grouped_configs_count":4,"has_early_access":false,"popularity":2427590},{"id":"X2","available":true,"cheapest_price":644,"cheapest_downpayment_price":509,"configs_count":39,"versions_count":5,"grouped_configs_count":22,"has_early_access":false,"popularity":2267366},{"id":"4er Cabrio","available":true,"cheapest_price":754,"cheapest_downpayment_price":619,"configs_count":15,"versions_count":4,"grouped_configs_count":10,"has_early_access":true,"popularity":2147000},{"id":"4er Gran Coup\xe9","available":true,"cheapest_price":724,"cheapest_downpayment_price":589,"configs_count":21,"versions_count":6,"grouped_configs_count":13,"has_early_access":true,"popularity":1975000},{"id":"2er Gran Coup\xe9","available":true,"cheapest_price":564,"cheapest_downpayment_price":429,"configs_count":1
1097,"versions_count":4,"grouped_configs_count":14,"has_early_access":false,"popularity":1945608},{"id":"1er","available":true,"cheapest_price":514,"cheapest_downpayment_price":379,"configs_count":43,"versions_count":6,"grouped_configs_count":26,"has_early_access":true,"popularity":1936439},{"id":"7er Limousine","available":true,"cheapest_price":1504,"cheapest_downpayment_price":1349,"configs_count":10,"versions_count":2,"grouped_configs_count":8,"has_early_access":false,"popularity":1878040},{"id":"X5","available":true,"cheapest_price":1609,"cheapest_downpayment_price":1339,"configs_count":30,"versions_count":5,"grouped_configs_count":19,"has_early_access":true,"popularity":1873235},{"id":"X6","available":true,"cheapest_price":1134,"cheapest_downpayment_price":999,"configs_count":44,"versions_count":8,"grouped_configs_count":22,"has_early_access":true,"popularity":1851013},{"id":"2er Coup\xe9","available":true,"cheapest_price":634,"cheapest_downpayment_price":489,"configs_count":18,"versions_count":4,"grouped_configs_count":12,"has_early_access":false,"popularity":1837500},{"id":"X7","available":true,"cheapest_price":1294,"cheapest_downpayment_price":1159,"configs_count":46,"versions_count":3,"grouped_configs_count":19,"has_early_access":false,"popularity":1837500},{"id":"iX1","available":true,"cheapest_price":774,"cheapest_downpayment_price":609,"configs_count":9,"versions_count":2,"grouped_configs_count":6,"has_early_access":true,"popularity":1638513},{"id":"4er Coup\xe9","available":true,"cheapest_price":764,"cheapest_downpayment_price":629,"configs_count":7,"versions_count":3,"grouped_configs_count":7,"has_early_access":false,"popularity":1625000},{"id":"i5 Touring","available":true,"cheapest_price":1114,"cheapest_downpayment_price":979,"configs_count":2,"versions_count":2,"grouped_configs_count":2,"has_early_access":true,"popularity":1187500},{"id":"i5 Limousine","available":true,"cheapest_price":1094,"cheapest_downpayment_price":959,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":true,"popularity":151013}],"available":true,"popularity":3388237},{"id":"Peugeot","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/7QuRBt.svg","filename":"peugeot.svg","type":"image/svg+xml","size":7959},"models":[{"id":"208","available":true,"cheapest_price":344,"cheapest_downpayment_price":209,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":3147117},{"id":"2008","available":true,"cheapest_price":354,"cheapest_downpayment_price":219,"configs_count":4,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":3043773},{"id":"308 SW","available":true,"cheapest_price":414,"cheapest_downpayment_price":279,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2960302},{"id":"3008","available":true,"cheapest_price":444,"cheapest_downpayment_price":309,"configs_count":4,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":2826862},{"id":"5008","available":true,"cheapest_price":474,"cheapest_downpayment_price":339,"configs_count":3,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2766363},{"id":"308","available":true,"cheapest_price":354,"cheapest_downpayment_price":219,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2630822}],"available":true,"popularity":3147117},{"id":"Toyota","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/kNlgHa.svg","filename":"toyota.svg","type":"image/svg+xml","size":926},"models":[{"id":"Corolla Touring Sports","available":true,"cheapest_price":364,"cheapest_downpayment_price":229,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2892811},{"id":"C-HR","available":true,"cheapest_price":354,"cheapest_downpayment_price":219,"configs_count":6,"versions_count":1,"grouped_configs_count":3,"has_early_access":false,"popularity":2689794},{"id":"Yaris","available":true,"cheapest_price":344,"cheapest_downpayment_price":209,"configs_count":5,"versions_count":1,"grouped_configs_count":2,"has_early_access":false,"popularity":2527003},{"id":"Aygo X","available":true,"cheapest_price":334,"cheapest_downpayment_price":199,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2501233},{"id":"Yaris Cross","available":true,"cheapest_price":364,"cheapest_downpayment_price":229,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2392496},{"id":"Corolla","available":true,"cheapest_price":354,"cheapest_downpayment_price":219,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2378669},{"id":"Proace Verso","available":true,"cheapest_price":544,"cheapest_downpayment_price":409,"configs_count":6,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2348887},{"id":"Urban Cruiser","available":true,"cheapest_price":484,"cheapest_downpayment_price":349,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1677003}],"available":true,"popularity":2892811},{"id":"Mercedes-Benz","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/VTfzLF.svg","filename":"NocoDB.svg","type":"image/svg+xml","size":499},"models":[{"id":"GLA","available":true,"cheapest_price":584,"cheapest_downpayment_price":449,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":2865469},{"id":"GLC","available":true,"cheapest_price":774,"cheapest_downpayment_price":639,"configs_count":5,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":2765127},{"id":"CLA","available":true,"cheapest_price":604,"cheapest_downpayment_price":469,"configs_count":7,"versions_count":3,"grouped_configs_count":4,"has_early_access":false,"popularity":2475000}
109,{"id":"GLC Coup\xe9","available":true,"cheapest_price":994,"cheapest_downpayment_price":859,"configs_count":4,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":2432094},{"id":"E-Klasse","available":true,"cheapest_price":694,"cheapest_downpayment_price":559,"configs_count":12,"versions_count":6,"grouped_configs_count":6,"has_early_access":false,"popularity":2392811},{"id":"V-Klasse","available":true,"cheapest_price":834,"cheapest_downpayment_price":699,"configs_count":4,"versions_count":1,"grouped_configs_count":2,"has_early_access":false,"popularity":2378354},{"id":"CLE","available":true,"cheapest_price":824,"cheapest_downpayment_price":689,"configs_count":10,"versions_count":3,"grouped_configs_count":5,"has_early_access":false,"popularity":2191891},{"id":"Vito","available":true,"cheapest_price":714,"cheapest_downpayment_price":579,"configs_count":3,"versions_count":1,"grouped_configs_count":2,"has_early_access":false,"popularity":2053716},{"id":"T-Klasse","available":true,"cheapest_price":579,"cheapest_downpayment_price":399,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2029054},{"id":"GLE","available":true,"cheapest_price":1154,"cheapest_downpayment_price":1019,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1859773},{"id":"CLA Elektro","available":true,"cheapest_price":894,"cheapest_downpayment_price":759,"configs_count":3,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":1767567},{"id":"GLE Coup\xe9","available":true,"cheapest_price":1394,"cheapest_downpayment_price":1259,"configs_count":2,"versions_count":2,"grouped_configs_count":2,"has_early_access":true,"popularity":1657071},{"id":"S-Klasse","available":true,"cheapest_price":1954,"cheapest_downpayment_price":1819,"configs_count":3,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":1501013},{"id":"C-Klasse","available":true,"cheapest_price":744,"cheapest_downpayment_price":609,"configs_count":4,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":1490540}],"available":true,"popularity":2865469},{"id":"Renault","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/6ia9Ks.svg","filename":"renault.svg","type":"image/svg+xml","size":321},"models":[{"id":"Captur","available":true,"cheapest_price":354,"cheapest_downpayment_price":219,"configs_count":4,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2639415},{"id":"Rafale","available":true,"cheapest_price":444,"cheapest_downpayment_price":309,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2469087},{"id":"Espace","available":true,"cheapest_price":534,"cheapest_downpayment_price":399,"configs_count":3,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":1988466},{"id":"Clio","available":true,"cheapest_price":334,"cheapest_downpayment_price":199,"configs_count":16,"versions_count":6,"grouped_configs_count":6,"has_early_access":false,"popularity":1959121},{"id":"Austral","available":true,"cheapest_price":434,"cheapest_downpayment_price":299,"configs_count":6,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":1851013},{"id":"Symbioz","available":true,"cheapest_price":364,"cheapest_downpayment_price":229,"configs_count":8,"versions_count":2,"grouped_configs_count":2,"has_early_access":false,"popularity":1383422}],"available":true,"popularity":2639415},{"id":"Audi","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/43dQDf.svg","filename":"audi.svg","type":"image/svg+xml","size":732},"models":[{"id":"A6 Avant","available":true,"cheapest_price":779,"cheapest_downpayment_price":599,"configs_count":11,"versions_count":5,"grouped_configs_count":6,"has_early_access":false,"popularity":2492629},{"id":"Q5 Sportback","available":true,"cheapest_price":744,"cheapest_downpayment_price":609,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2382637},{"id":"Q8","available":true,"cheapest_price":934,"cheapest_downpayment_price":799,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2360866},{"id":"S3 Sportback","available":true,"cheapest_price":654,"cheapest_downpayment_price":519,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2334958},{"id":"Q2","available":true,"cheapest_price":524,"cheapest_downpayment_price":389,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2314462},{"id":"S3 Limousine","available":true,"cheapest_price":674,"cheapest_downpayment_price":539,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2211589},{"id":"Q3","available":true,"cheapest_price":634,"cheapest_downpayment_price":499,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2116680}],"available":true,"popularity":2492629},{"id":"Honda","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/vPeA3Z.svg","filename":"Honda.svg","type":"image/svg+xml","size":3052},"models":[{"id":"Jazz","available":true,"cheapest_price":344,"cheapest_downpayment_price":209,"configs_count":9,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":2122226},{"id":"ZR-V","available":true,"cheapest_price":484,"cheapest_downpayment_price":349,"configs_count":4,"versions_count":2,"grouped_configs_count":3,"has_early_access":false,"popularity":2015540},{"id":"CR-V","available":true,"cheapest_price":524,"cheapest_downpayment_price":389,"configs_count":6,"versions_count":3,"grouped_configs_count":3,"has_early_access":false,"popularity":1988513},{"id":"Civic","available":true,"cheapest_price":474,"cheapest_downpayment_price":339,"configs_count":4,"versions_count":2,"grouped_configs_count":2,"has_early_access":true,"popularity":1837500}],"available":true,"popularity":2122226},{"id":"Alfa Romeo","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/_jfGhS.svg","filename":"alfaromeo.svg","type":"image/svg+xml","size":3887},"models":[{"id":"Junior","available":true,"cheapest_price":404,"cheapest_downpayment_price":269,"configs_count":2,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2115202}],"available":true,"popularity":2115202},{"id":"Genesis","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/M8LJWj.svg","filename":"Genesis.svg","type":"image/svg+xml","size":7748},"models":[{"id":"Electrified G80","available":true,"cheapest_price":954,"cheapest_downpayment_price":819,"configs_count":1,"versions_count":1,"grouped_configs_count":1,"has_early_access":false,"popularity":2083422}],"available":true,"popularity":2083422},{"id":"Seat","helper_brand_logo":{"url":"https://dataops-nocodb-s3-bucket-production.s3.eu-central-1.amazonaws.com/nc/uploads/noco/ua_main_restapi_de/brands/logo/kdSYfW.svg","filename":"seat (1).svg","type":"image/svg+xml","size":974},"models":[{"id":"Ibiza","available":true,"cheapest_price":374,"cheapest_downpayment_price":239,"configs_count":10,"versions_count":4,"grouped_configs_count":4,"has_early_access":false,"popularity":2046935}],"available":true,"popularity":2046935}],"cartypes":["SUV","Klein- und Kompaktwagen","Kombi","Van","Limousine","Cabriolet","Coup\xe9","Estate","Sedan"],"colors":[],"fuels":["Benzin","Diesel","Elektro","Plug-In-Hybrid"],"gearshifts":["Automatik","Manuell"],"has_hitch":[false,true],"is_young_driver":[false,true],"indexable":[true],"max_price":2711,"min_price":139,"min_price_msrp":19550,"max_price_msrp":182518.63,"models":["Grande Panda","4 Urban","ZS","911 Carrera Cabriolet","S5","EV4","HS","Qashqai","Corsa","Bigster","Compass","Countryman","Avenger","C5 Aircross","CX-30","Santa Fe","Dolphin Surf","Mokka","Frontera","500 Cabrio","Grande Panda Elektro","Elroq","4","3","Grandland","Sealion 7","Puma","Seal 6 DM-i Touring","Terramar","Astra Sports Tourer","5er Limousine","500","Leon Sportstourer","Seal U DM-I","Formentor","3er Touring","Enyaq","208","C3 Aircross","i30 Kombi","2008","Kuga","Explorer","Tourneo Custom","i20","C3","308 SW","600","Atto 2","5er Touring","S9 PHEV","Corolla Touring Sports","X1","GLA","\xeb-C3 Aircross","3008","3er Limousine","5008","GLC","Born","Duster","C-HR","Dolphin","Captur","308","Inster","X-TRAIL","S6","X3","Tucson","Yaris","i30","Aygo X","Astra","A6 Avant","CLA","Rafale","GLC Coup\xe9","Capri","2er Active Tourer","E-Klasse","Yaris Cross","Q5 Sportback","Corolla","V-Klasse","CX-60","Q8","Proace Verso","S3 Sportback","Q2","Enyaq Coup\xe9","IONIQ 5","X2","Mustang","Leon","Jogger","S3 Limousine","CLE","Bayon","4er Cabrio","IONIQ 6","Cyberster","Jazz","Q3","Junior","Ateca","Electrified G80","Vito","Ibiza","EV3","CX-80","T-Klasse","ZR-V","Sportage","3-T\xfcrer Cooper","K4 Sportswagon","CR-V","Espace","4er Gran Coup\xe9","Picanto","Clio","EV2","2er Gran Coup\xe9","EV6","1er","IONIQ 9","CX-5","5-T\xfcrer Cooper","Grand Tourneo Connect","7er Limousine","X5","GLE","X6","Austral","2er Coup\xe9","X7","Civic","Ceed","CLA Elektro","EV5","Mazda3","CX-6e","Urban Cruiser","GLE Coup\xe9","iX1","4er Coup\xe9","Stonic","S-Klasse","C-Klasse","Symbioz","i5 Touring","i5 Limousine"],"payment_method":["stripe_credit_card","stripe_debit_sepa"],"product_group":["BMWDEALS","earlybooking","MILAGEDEAL"],"product_id":[],"terms":[6,9,12,13,18,24],"total_results":1335,"has_deal
109s":[false],"features":["360_camera","4WD","adaptive_cruise_control","automatic_parking","glass_roof","head_up_display","heated_seats","hitch","mobile_integration"],"min_power":48,"max_power":390,"min_ev_range":63,"max_ev_range":791,"seats":[2,4,5,6,7,8],"doors":[2,3,4,5],"taxable_benefit_bev":[false,true],"taxable_benefit_phev":[false,true]},"en-US":{"availability":[],"brands":[],"cartypes":[],"colors":[],"doors":[],"features":[],"fuels":[],"gearshifts":[],"has_deals":[],"has_hitch":[],"has_retention_deals":[],"indexable":[],"is_for_business":[],"is_young_driver":[],"max_ev_range":0,"max_power":0,"max_price":0,"max_price_msrp":0,"min_ev_range":0,"min_power":0,"min_price":0,"min_price_msrp":0,"models":[],"payment_method":[],"prices":{"items":[],"prices_step":0},"product_group":[],"product_id":[],"seats":[],"terms":[],"total_results":0}}');var eM=a(94661),ej=a(59770);let e$=["/hilfe","/reset-password","/terms","/privacy","/imprint","/terms-of-use","/cancelation"],eK=()=>{let[e,t]=(0,_.wV)(),{locale:a}=(0,f.n)(),s=(0,F.usePathname)(),o=e?.user?.user_role;return(0,n.useEffect)(()=>{let e=(({pathname:e,locale:t,userRole:a,isLoadingSession:s})=>{let o=e$.some(a=>{let s=`/${t}${a}`;return e===s||e?.startsWith(`${s}/`)});return s||"driver"!==a||(0,el.K)()||o?null:`/portal/${t}${ej.Ko.MY_CARS}`})({pathname:s,locale:a,userRole:o,isLoadingSession:t});e&&(window.location.href=e)},[t,o,a,s]),null},eU="fast-available-redirect-exposed",eV=["campaign","utm_source","utm_medium","utm_campaign","gclid"],ez=()=>((0,n.useEffect)(()=>{let e,t=b().get(eU);if(!t)return;if("a"!==t&&"b"!==t)return void b().remove(eU,{path:"/"});let a={},s=new URLSearchParams(window.location.search);for(let e of eV){let t=s.get(e);t&&(a[e]=t)}let o=0,r=()=>{if(!(0,ep.et)()){(o+=500)>=3e4&&e&&clearInterval(e);return}(0,ep.sx)(ec.fC.FAST_AVAILABLE_REDIRECT_EXPOSED,{experiment_key:"exp-plp-fast-available-redirect-v1",variant:"b"===t?"plp":"control",destination:"b"===t?"plp":"lp",...a}),b().remove(eU,{path:"/"}),e&&clearInterval(e)};return r(),b().get(eU)&&(e=setInterval(r,500)),()=>{e&&clearInterval(e)}},[]),null);var eG=a(46876),eF=a(48761);let eH=()=>{let{deals:e,dealsStatus:t}=(0,eG.t)(),a=(0,eF.Q)();return(0,n.useEffect)(()=>{"success"===t&&(e?.length??0)>0&&a(d.O.ExpPlpRemoveDpDiscount,"a")},[e,t,a]),null},eW="mdp-redirect-exposed",eY=["campaign","utm_source","utm_medium","utm_campaign","gclid"],eB=()=>((0,n.useEffect)(()=>{let e=b().get(eW);if(!e)return;let[t,a,s,o]=e.split("|");if("a"!==t&&"b"!==t)return void b().remove(eW,{path:"/"});let r={},n=new URLSearchParams(window.location.search);for(let e of eY){let t=n.get(e);t&&(r[e]=t)}(0,ep.sx)(ec.fC.MDP_REDIRECT_EXPOSED,{experiment_key:"exp-mdp-redirect-v1",variant:"b"===t?"mdp":"control",destination:"b"===t?"mdp":"plp",brand:a,model:s,landing_slug:o,...r}),b().remove(eW,{path:"/"})},[]),null);var eX=a(1132),eq=a(46879),eQ=a(86461),eJ=a(94134);let eZ="swap_for",e0=()=>{let e=new URLSearchParams(window.location.search);e.delete(eZ);let t=e.toString();return`${window.location.pathname}${t?`?${t}`:""}`},e1=()=>((()=>{let{deals:e,dealsStatus:t}=(0,eG.t)(),[a]=(0,_.wV)(),s=(0,eQ.Y)(),o=(0,n.useRef)(!1),r=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(o.current)return;null===r.current&&(r.current=new URLSearchParams(window.location.search).get(eZ)??"");let n=r.current;if(!n||!window.location.pathname.includes(`/${ej.Oz}`)||!a||"loading"===t||"error"===t)return;let i=e?.find(e=>String(e.id)===n&&"ACTIVE"===e.state);if(!i){o.current=!0,s.replace(e0());return}o.current=!0;let c=(0,g.gp)(g.cY.SWAPPABLE_SUB),l=String(c?.id??"")===String(i.id);(0,eX.A)(i)?((0,eq._J)(ec.fC.SWAP_OPTION_CLICKED,{location:"swap_for URL param",SubscriptionId:i.id}),l)?s.replace(e0()):(0,eJ.W)(e0()):s.replace(e0())},[a,t,e,s])})(),null),e2=({children:e})=>{let t=(0,F.usePathname)(),{hasFunctionalConsent:a,consentDetail:r}=(0,L.uC)(),[i,c]=(0,n.useState)(!1),[l,p]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{d((0,ew.m$)())},[]),(0,n.useEffect)(()=>{c(!!b().get(k.$K.TERMINAL_EVENT)),p((!t?.includes("/mobile")||t?.includes("/register")||t?.includes("/authv2"))&&!!(0,el.K)())},[t]);let g=(0,o.t6)(),h=(0,F.useSearchParams)(),m=h?.get("modalName");return(0,n.useEffect)(()=>{m&&g(m)},[g,m]),(0,s.jsx)(eN.t,{children:(0,s.jsx)(eD.BE,{value:{revalidateOnFocus:!1,revalidateOnReconnect:!1},children:(0,s.jsx)(ek,{enabled:u,children:(0,s.jsx)(eP.I.Provider,{value:_.wV,children:(0,s.jsx)(K.wb,{children:(0,s.jsxs)(eO.b,{brandModels:eR,children:[(0,s.jsx)(eA.Ci,{allFeatures:x,hasFunctionalConsent:a,children:(0,s.jsx)(eL.D,{children:(0,s.jsx)(eI.Q9,{children:(0,s.jsx)(P.O,{children:(0,s.jsxs)(eM.nU,{children:[!i&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(em,{hasCookieConsent:!!r?.[D.FR.GOOGLE_SIGN_IN]}),(0,s.jsx)(eb,{}),(0,s.jsx)(eH,{}),(0,s.jsx)(eT.RetentionModalPopup,{autoTrigger:!1}),(0,s.jsx)(R.m,{surveysEnabled:!1})]}),(0,s.jsx)(M.s,{}),(0,s.jsx)(eK,{}),(0,s.jsx)(eB,{}),(0,s.jsx)(ez,{}),(0,s.jsx)(e1,{}),e,!i&&(0,s.jsx)(I,{}),l&&(0,s.jsx)(en,{announceNavigations:!0}
109),!i&&(0,s.jsx)(j.G,{modals:[null].filter(Boolean),children:(0,s.jsx)($.v,{})})]})})})})}),(0,s.jsx)(O.tx,{})]})})})})})})}},17175:(e,t,a)=>{"use strict";a.d(t,{I:()=>o,w:()=>r});var s=a(7620);let o=(0,s.createContext)(void 0);function r(){return(0,s.useContext)(o)?.()}},17217:(e,t,a)=>{"use strict";a.d(t,{Hi:()=>u,Ty:()=>l,kM:()=>p,xN:()=>c});var s=a(54568),o=a(7620),r=a(58593),n=a(46395),i=a(99906);let c=({asChild:e,className:t,...a})=>{let o=e?i.D:"h2";return(0,s.jsx)(o,{className:(0,r.cn)("body-14-semibold",t),...a})},l=({asChild:e,className:t,...a})=>{let o="string"==typeof a.children?"p":"div",n=e?i.D:o;return(0,s.jsx)(n,{className:(0,r.cn)("body-14-light",t),...a})},p=({className:e,...t})=>(0,s.jsx)(i.D,{className:(0,r.cn)("row-span-3 size-6 self-center",e),...t});p.displayName="BannerModuleIcon";let u=({asChild:e,children:t,className:a,...c})=>{let l=e?i.D:"section",p=null,u=[];return o.Children.forEach(t,e=>{"BannerModuleIcon"===(0,n.H)(e)?p=e:u.push(e)}),(0,s.jsx)(l,{className:(0,r.cn)("bg-snow grid gap-x-4 rounded-xs px-4 py-6",p?"grid-cols-[max-content_1fr]":"",a),"aria-live":"polite",...c,children:e?(0,s.jsxs)("div",{children:[p,o.Children.map(u,e=>e&&(0,o.cloneElement)(e,{className:(0,r.cn)(p?"col-start-2":"","mb-4 last:mb-0",e?.props?.className)}))]}):(0,s.jsxs)(s.Fragment,{children:[p,o.Children.map(u,e=>e&&(0,o.cloneElement)(e,{className:(0,r.cn)(p?"col-start-2":"","mb-4 last:mb-0",e?.props?.className)}))]})})}},19890:(e,t,a)=>{"use strict";a.d(t,{V:()=>s});let s=()=>window},21088:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(7620);let o="pdp-helper",r=()=>{let[e,t]=(0,s.useState)(!1);(0,s.useEffect)(()=>{"yes"===localStorage.getItem(o)&&t(!0)},[]);let a=(0,s.useCallback)(()=>{e?(localStorage.setItem(o,"no"),t(!1)):(localStorage.setItem(o,"yes"),t(!0))},[e]);return{isPDPHelperActive:e,togglePDPHelper:a}}},24227:()=>{},25980:(e,t,a)=>{"use strict";a.d(t,{D:()=>b,A:()=>w});var s=a(54568),o=a(27775),r=a(7620),n=a(66866),i=a(92088),c=a(96971),l=a(28547);let p="8075cc17eaf2b1fd73e527dcdb3e914ac10f81f30e48a1dc32c7dfa87b6c3a1d";var u=a(55918),d=a(61299),_=a.n(d),g=a(34113),h=a(79748),m=a(19559),f=a.n(m);f().configure({showSpinner:!1});let y=()=>{let e=(0,h.useRouter)(),t=(0,h.usePathname)(),a=(0,h.useSearchParams)();return(0,r.useEffect)(()=>{let a={push:e.push,replace:e.replace,back:e.back,forward:e.forward};return["push","replace","back","forward"].forEach(s=>{e[s]=(...e)=>{if(e[0]?.replaceAll?.("/","")!==t?.replaceAll("/","")){f().start();let a="string"==typeof e[0]?e[0]:e[0]?.pathname??t??"";a&&a.replaceAll("/","")!==t?.replaceAll("/","")&&(0,g.c)()?.sendMessageToApp?.({type:"event:navigate",value:a})}a[s](...e)}}),()=>{Object.entries(a).forEach(([t,a])=>e[t]=a)}},[e,t]),(0,r.useEffect)(()=>{f().done()},[t,a]),null};f().configure({showSpinner:!1});let v=(0,r.createContext)({startProgress:()=>{},endProgress:()=>{},triggerDevModal:()=>{}}),b=({children:e})=>{(0,o.s)();let t=(()=>{let[e,t]=(0,r.useState)(_().get(c.$K.DEV_PASS)),a=(0,n.t6)(),[s,o]=(0,r.useState)(!1),[d,g]=(0,r.useState)(0),h=(0,r.useCallback)(()=>{g(e=>e+1)},[]);(0,r.useEffect)(()=>{(async()=>{await (0,l.s)(e||"")===p?o(!0):o(!1)})()},[e]);let m=(0,r.useCallback)(async()=>{if(s)a(i.t.DEV_MODAL);else{let e=prompt("Please enter Dev Password","");await (0,l.s)(e||"")===p&&a(i.t.DEV_MODAL),_().set(c.$K.DEV_PASS,e||""),t(e||"")}},[s,a]);return(0,r.useEffect)(()=>{let e=null;return d>=9?(m(),g(0)):d>0&&(e=setTimeout(()=>{g(0)},3e3)),()=>{e&&clearTimeout(e)}},[m,d]),(0,u.A)(["Control+F6","d e v","Meta+F6"],m),h})(),{startProgress:a,endProgress:d}={startProgress:(0,r.useCallback)((e=0)=>{f().start(),f().set(e)},[]),endProgress:(0,r.useCallback)(()=>{f().done()},[])};return(0,s.jsxs)(v.Provider,{value:{startProgress:a,endProgress:d,triggerDevModal:t},children:[e,(0,s.jsx)(r.Suspense,{fallback:null,children:(0,s.jsx)(y,{})})]})},w=v},27003:(e,t,a)=>{"use strict";a.d(t,{E1:()=>r,Ir:()=>c,W_:()=>g,m$:()=>n,mK:()=>d,sA:()=>l,yI:()=>_});var s=a(40459);let o="feat-use-better-auth",r=()=>"true"!==s.env.NEXT_PUBLIC_BETTER_AUTH_DISABLED&&"true"===s.env.NEXT_PUBLIC_USE_BETTER_AUTH,n=()=>"true"!==s.env.NEXT_PUBLIC_BETTER_AUTH_DISABLED&&(r()||"true"!==s.env.NEXT_PUBLIC_BETTER_AUTH_DISABLED&&
109!("u"<typeof document)&&document.cookie.split("; ").some(e=>{let t=e.indexOf("=");if(-1===t)return!1;let a=e.slice(0,t),s=e.slice(t+1);return(a===o||a.endsWith(`_${o}`))&&"enabled"===s})),i=!1,c=e=>{i=e},l=()=>i,p="finn_ba_session",u="finn:better-auth-changed",d=()=>!("u"<typeof document)&&document.cookie.split("; ").some(e=>{let t=e.indexOf("=");return -1!==t&&e.slice(0,t)===p&&e.slice(t+1).length>0}),_=e=>{"u">typeof document&&(document.cookie=e?`${p}=y; path=/; max-age=34560000; SameSite=Lax`:`${p}=; path=/; max-age=0; SameSite=Lax`,window.dispatchEvent(new Event(u)))},g=e=>{let t=[u,"focus","visibilitychange","pageshow"];return t.forEach(t=>window.addEventListener(t,e)),()=>t.forEach(t=>window.removeEventListener(t,e))}},27153:(e,t,a)=>{"use strict";a.d(t,{W:()=>k});var s=a(54568),o=a(60233),r=a(79764),n=a(15545),i=a(33993),c=a(49228),l=a(18367),p=a(25895),u=a(1132),d=a(86483),_=a(59770),g=a(66866),h=a(92088),m=a(46879),f=a(33611),y=a(51744),v=a(89718),b=a(51084),w=a(32133),x=a(7620),E=a(27795),C=a(58593);let S=({Icon:e,title:t,description:a,onClick:o,isDisabled:r,disabledDescription:n,location:i,badge:c})=>{let l=(0,E.i)(e=>e.track);return(0,x.useEffect)(()=>
109{l(f.fC.CTA_SHOWN,{name:t,additionalProps:{isDisabled:r,location:i}})},[]),(0,s.jsxs)("a",{className:(0,C.cn)({"border-pewter grid cursor-pointer grid-cols-[min-content_1fr_min-content] rounded border p-4 hover:border-black sm:px-4 sm:py-6":!0,"pointer-events-none cursor-default opacity-50":r}),onClick:r?()=>{}:o,children:[(0,s.jsx)(e,{className:"mr-4 min-w-6"}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 text-left",children:[(0,s.jsx)("span",{className:"body-16-semibold",children:t}),c,(0,s.jsx)("span",{className:"body-14-light",children:r&&n||a})]})]})},k=({open:e,onClose:t,onCloseCallback:a,selectedSubscription:E,autoOpened:C,location:k})=>{let A=(0,y.t)(),T=(0,g.t6)(),N=(0,g.Hl)(),{locale:I}=(0,v.n)(),P=E?.id,O=(0,l.S)(P),L=!!E&&!(0,p.Km)(E),D=(0,x.useCallback)(()=>{(0,u.A)(E)&&((0,m._J)(f.fC.SWAP_OPTION_CLICKED,{location:"Retention Campaign Card PLP",SubscriptionId:E?.id}),window.location.pathname.includes(`/${_.Oz}/`)?window.location.reload():window.location.href=`/${I}/${_.Oz}`)},[E,I]),R=(0,x.useCallback)(()=>{(0,m._J)(f.fC.PROLONGATION_OPTION_CLICKED,{location:"Retention Campaign Card PLP",SubscriptionId:P}),N(h.t.RETENTION_MODAL),T("prolongation",{dealId:P||""},{exclusive:!0})},[N,T,P]),M=A.formatMessage(C?"plp.retentionModal.titleLong":"plp.retentionModal.title"),j=A.formatMessage(C?"plp.retentionModal.descriptionLong":"plp.retentionModal.description",{endDate:(0,w.Yq)(E?.auto_renewal_end_date??E?.minimum_commitment_end_date,"DD.MM.YYYY")}),$=A.formatMessage("plp.retentionModal.prolong.title"),K=A.formatMessage("plp.retentionModal.prolong.description"),U=A.formatMessage("plp.retentionModal.prolong.disabledDescription"),V=A.formatMessage("plp.retentionModal.swap.title"),z=A.formatMessage("plp.retentionModal.swap.description"),G=C&&E?.is_return_window_open&&!E?.return_type;return(0,s.jsx)(o.aF,{variant:"small",open:e,onOpenChange:e=>{e||t(),e||a?.()},children:(0,s.jsxs)(o.$m,{onPointerDownOutside:e=>{C&&e.preventDefault()},children:[(0,s.jsxs)(o.rQ,{children:[(0,s.jsx)(o.wt,{children:M}),C&&(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[E?.car?.picture?(0,s.jsx)("img",{className:"bg-snow my-2 w-0 max-w-full basis-2/5 mix-blend-multiply transition-transform sm:my-4",src:(0,b.$)(E.car.picture),alt:`${E.car.oem} ${E.car.model}`}):(0,s.jsx)(i.$,{className:"mx-8 my-2 h-full w-0 max-w-[192px] basis-1/2 opacity-50 sm:mx-12 sm:my-4"}),(0,s.jsxs)("div",{className:"flex w-0 basis-3/5 flex-col gap-2",children:[(0,s.jsx)("p",{className:"body-16-semibold",children:`${E?.car?.oem} ${E?.car?.model}`}),(0,s.jsx)("p",{className:"body-16-light",children:E?.car?.license_plate})]})]}),(0,s.jsx)(o.Wn,{children:j})]}),(0,s.jsxs)("div",{className:"mb-12 flex flex-col gap-4 md:mb-0",children:[O.isLoading?(0,s.jsx)(r.E,{className:"bg-pearl !mb-4 h-[60px] w-full !rounded-xs"}):(0,s.jsx)(S,{Icon:n.Z,title:$,description:K,disabledDescription:U,onClick:R,isDisabled:!O.data?.prolongation_options?.length,location:k}),L&&(0,s.jsx)(S,{Icon:c.Y,title:V,description:z,badge:(0,s.jsx)(d.i,{}),onClick:D}),G&&(0,s.jsxs)("p",{className:"body-14-light mt-4",children:["Falls du dein"," ",(0,s.jsx)("a",{className:"body-14-semibold inline-block underline",href:`${_.Ko.MY_CARS}/${P}?modalName=MULTISTEP_EDIT_RETURN`,children:"Auto zur\xfcckgeben"})," ","m\xf6chtest, hoffen wir, dir bald wieder ein passendes Auto Abo anbieten zu k\xf6nnen."]})]})]})})}},29547:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let s=a(7620);function o(e,t){let a=(0,s.useRef)(null),o=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=a.current;e&&(a.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(a.current=r(e,s)),t&&(o.current=r(t,s))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let a=e(t);return"function"==typeof a?a:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
109dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31594:()=>{},33177:()=>{"use strict";if(!("u"<typeof self)&&self.document){var e=KeyboardEvent.prototype,t=Object.getOwnPropertyDescriptor(e,"key");if(t){var a={Win:"Meta",Scroll:"ScrollLock",Spacebar:" ",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Del:"Delete",Apps:"ContextMenu",Esc:"Escape",Multiply:"*",Add:"+",Subtract:"-",Decimal:".",Divide:"/"};Object.defineProperty(e,"key",{get:function(){var e=t.get.call(this);return a.hasOwnProperty(e)?a[e]:e}})}}},34113:(e,t,a)=>{"use strict";a.d(t,{c:()=>r});var s=a(38039),o=a(19890);let r=e=>{if(!(0,s.S)()){if((0,o.V)().nativeAppSDK)return(0,o.V)().nativeAppSDK;if(e){let t=0,a=setInterval(()=>{++t>30&&clearInterval(a),(0,o.V)().nativeAppSDK&&(clearInterval(a),e((0,o.V)().nativeAppSDK))},1e3)}}}},34457:(e,t,a)=>{"use strict";a.d(t,{$$:()=>h,AC:()=>x,Ry:()=>v,c6:()=>E,dS:()=>m,ne:()=>y,ny:()=>b,po:()=>w,vB:()=>f,vd:()=>_,xx:()=>g});var s=a(28461),o=a.n(s),r=a(19027),n=a.n(r),i=a(81570),c=a.n(i),l=a(62109),p=a.n(l),u=a(4572),d=a.n(u);o()?.extend(c()),o()?.extend(n()),o()?.extend(d()),o()?.extend(p()),a(75402),o()?.locale("de");let _=(e,t,a)=>o()(e,t,a).isValid(),g=(e,t,a)=>_(e,t,a)?t?o()(e,t,a):o()(e):"",h=e=>{if(o().isDayjs(e))return e.toISOString();if(!e)return h(new Date);let t=g(e);return t?t.toISOString():""},m=(e,t,a)=>o()(e).isAfter(t,a),f=e=>{if(!_(e))throw Error("Invalid date");return m(o()(),e,"day")},y=e=>{if(!e)return NaN;let t=o()(),a=o()(e);return a=a.startOf("day"),t=t.startOf("day"),Math.ceil(a.diff(t,"days"))},v=e=>o()().diff(e,"year"),b=(e,t,a="minute")=>!!o().isDayjs(e)&&!!o().isDayjs(t)&&e.isSame(t,a),w=(e,t="DD.MM.YYYY")=>{let a=o().isDayjs(e)?e:g(e);return e&&a?a.format(t):""},x=(e,t)=>{let a=Number(g(e).valueOf());return Math.round((Number(g(t).valueOf())-a)/864e5)},E=()=>new Date().getTime().toString(36)+Math.random().toString(36).substr(2,9)},39464:(e,t,a)=>{var s=a(2601),o=1/0;e.exports=function(e){return e?(e=s(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},44122:(e,t,a)=>{"use strict";function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e){if("string"==typeof e)return e;try{if("object"==typeof e){if(e instanceof Map)return JSON.stringify([...e.entries()]);if(e instanceof Set)return JSON.stringify([...e]);if(e instanceof Error)return e?.message;return JSON.stringify(e)}return e?.toString?.()||e||""}catch{return"exception while converting to string"}}a.d(t,{Zr:()=>s,dI:()=>o})},45868:(e,t,a)=>{"use strict";a.d(t,{A1:()=>n,Q9:()=>i});var s=a(54568),o=a(23267),r=a(65513);let n=(0,a(7620).createContext)({}),i=({children:e})=>{let t=(0,r.qA)(),a=o.vB[t],i=o.CU[t],c=o.pQ[t],l=o.db[t],p=o.S6[t];return(0,s.jsx)(n.Provider,{value:{dateFormat:a,dateFormatLong:i,dateLabel:c,dateMask:l,dateMonthYear:p},children:e})}},48761:(e,t,a)=>{"use strict";a.d(t,{C:()=>o,Q:()=>r});var s=a(7620);let o=(0,s.createContext)({forceVariant:()=>void 0}),r=()=>(0,s.useContext)(o).forceVariant},52817:(e,t,a)=>{"use strict";a.d(t,{CI:()=>p,Hr:()=>l,iD:()=>n,kz:()=>i,l3:()=>c});var s=a(5573),o=a(27003);let r=(e,t)=>{console.warn(`[ua-auth] write dispatched to next-auth (legacy) — reason: ${e}`,t??"")},n=async(e,t)=>{if((0,o.sA)())try{let{betterAuthLogin:s}=await Promise.all([a.e(6772),a.e(3216)]).then(a.bind(a,23216));return await s(e,t)}catch(a){return r("chunk-load-failed",a),(0,s.iD)(e,t)}return(0,o.m$)()&&r("writes-disabled-unexpectedly"),(0,s.iD)(e,t)},i=async(e,t,r,n,i="",c)=>{if((0,o.sA)())try{let{betterAuthRegister:s}=await Promise.all([a.e(6772),a.e(3216)]).then(a.bind(a,23216));return await s(e,t,r,n,i,c)}catch{}return(0,s.kz)(e,t,r,n,i,c)},c=async(e,t)=>{if((0,o.sA)())try{let{betterAuthSocialLogin:s}=await Promise.all([a.e(6772),a.e(3216)]).then(a.bind(a,23216));return await s(e,t)}catch(t){return r("chunk-load-failed",t),(0,s.l3)(e)}return(0,o.m$)()&&r("writes-disabled-unexpectedly"),(0,s.l3)(e)},l=async(e,t)=>{if((0,o.sA)())try{let{betterAuthOneTapLogin:t}=await Promise.all([a.e(6772),a.e(3216)]).then(a.bind(a,23216));return await t(e)}catch(a){return r("chunk-load-failed",a),(0,s.Hr)(e,t)}return(0,o.m$)()&&r("writes-disabled-unexpectedly"),(0,s.Hr)(e,t)},p=async e=>{try{let{betterAuthSignOut:t}=await Promise.all([a.e(6772),a.e(3216)]).then(a.bind(a,23216));return await t(e)}catch{return(0,s.CI)(e)}}},55918:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(7620);let o=function(e){var t=[];
109return e.ctrlKey&&t.push("ctrlKey"),e.shiftKey&&t.push("shiftKey"),e.altKey&&t.push("altKey"),e.metaKey&&t.push("metaKey"),t};var r=function(e,t,a){if(a||2==arguments.length)for(var s,o=0,r=t.length;o<r;o++)!s&&o in t||(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))};let n=function(e){var t=e.toLowerCase();return 1===t.length?[t]:t.includes("+")?t.replace(/\s+/g,"").split(/\b\+/g):r([],t.match(/[^\s"']+|"([^"]*)"|'([^']*)'/g)||[],!0).map(function(e){return e.replace(/("|').*?("|')/," ")})};var i={control:"ctrlKey",shift:"shiftKey",alt:"altKey",meta:"metaKey"};let c=function(e){return e.altKey||e.ctrlKey||e.shiftKey||e.metaKey};var l=["INPUT","TEXTAREA"];let p=function(e,t,a){if(!e.key&&!c(e))return!0;var s=e.target||{};return!!s.isContentEditable&&!t||l.includes(s.nodeName)&&!(null==a?void 0:a.includes(s.nodeName))};a(33177);let u=function(e,t,a){var r=(0,s.useMemo)(function(){return Array.isArray(e)?e.map(n):[n(e)]},[e]);(0,s.useEffect)(function(){var e={},s={},n=a||{},l=n.enabled,u=n.enableOnContentEditable,d=n.ignoredElementWhitelist,_=n.eventListenerOptions,g=function(e){clearTimeout(s[e])},h=function(t){g(t),e[t]=[]},m=function(a,o,r){g(r),e[r]=e[r]||[],s[r]=window.setTimeout(function(){h(r)},1e3);var n=e[r];n.push(a.key.toLowerCase()),n.length===o.length&&n.every(function(e,t){return e===o[t]})&&(h(r),t(a))},f=function(e,a){var s=a[a.length-1],r=a.slice(0,-1).map(function(e){return i[e]}),n=o(e);r.length===n.length&&r.every(function(e){return n.includes(e)})&&e.key.toLowerCase()===s&&t(e)},y=function(e){p(e,u,d)||r.forEach(function(a,s){1===a.length&&"*"===a[0]?t(e):c(e)?f(e,a):a.length>1&&!c(e)?m(e,a,s):e.key.toLowerCase()===a[0]&&t(e)})};return!1!==l&&window.addEventListener("keydown",y,_),function(){window.removeEventListener("keydown",y,_)}},[r,t,null==a?void 0:a.enabled,null==a?void 0:a.enableOnContentEditable,null==a?void 0:a.ignoredElementWhitelist,null==a?void 0:a.eventListenerOptions])}},59596:(e,t,a)=>{var s=a(39464);e.exports=function(e){var t=s(e),a=t%1;return t==t?a?t-a:t:0}},60393:e=>{e.exports=function(e,t,a){return e==e&&(void 0!==a&&(e=e<=a?e:a),void 0!==t&&(e=e>=t?e:t)),e}},61280:()=>{},65459:(e,t,a)=>{"use strict";a.d(t,{n:()=>p});var s=a(11712),o=a(96971),r=a(57392),n=a(38039),i=a(85402),c=a(765);let l=()=>Number((0,o.ok)(o.$K.AMP_SESSION_ID)||0),p=async()=>{let e=(0,r.Pv)(),t="true"===(0,c.gp)(c.cY.IMPERSONATION_ACTIVE),a=(0,o.ok)(o.$K.IsE2ETest),p=(0,o.ok)(o.$K.ForceSessionReplay),u=!(0,n.S)()&&!["www.finn.com","business.finn.com"].includes(window.location.hostname);if(!p&&(e||a||t||u))return void console.log("Skipping session replay request",{isInternalUser:e,isImpersonating:t,isE2ETest:a,isForcingSessionReplay:p,isNonProduction:u});if("business.finn.com"!==window.location.hostname){let e=Date.now();for(;Date.now()-e<3e4;){let e=window.location.pathname.includes("/subscribe"),t=window.location.pathname.includes("/pdp"),a=window.location.pathname.includes("/models"),s=window.location.pathname.includes("/checkout"),o=window.location.pathname.includes("/portal");if(e||t||a||s||o)break;await new Promise(e=>setTimeout(e,3e3))}}let d=null,_=Date.now();for(;Date.now()-_<5e3&&(console.log("Checking for user",d=window.analytics?.user?.()),!d);)await new Promise(e=>setTimeout(e,500));if(!d)return void console.error("User not loaded in time. Skipping Amplitude Session Replay");let g=l();await s.Ts(i.A.AMPLITUDE_API_KEY,{serverZone:"US",sessionId:g,deviceId:d?.anonymousId?.()}).promise,await window.analytics?.addSourceMiddleware?.(({payload:e,next:t})=>{setTimeout(()=>{let t=e?.obj?.integrations?.["Actions Amplitude"]?.session_id||0;l()<t&&((0,o.Sp)(o.$K.AMP_SESSION_ID,t),s.mY(t))},500),t(e)}),await window.analytics?.addSourceMiddleware?.(({payload:e,next:t})=>{let a=s.Lc();"track"===e.type()&&(e.obj={...e.obj,...a}),t(e)})}},66192:(e,t,a)=>{"use strict";let s,o,r,n;a.d(t,{e:()=>N});var i=a(50184),c=a(19890),l=a(78632),p=a(43574);let u={PLP:"plp",PDP:"pdp",Checkout:"checkout",Home:"home",ThankYou:"thank_you",OrderStatus:"order_status",MyCars:"my_cars",MyCar:"my_car",Auth:"auth",Landing:"landing",ReportDamage:"report_damage",ScheduleService:"schedule_service",Return:"return"},d={PLP:"subscribe",PDP:"pdp",Checkout:"checkout",Home:"",ThankYou:"thank_you",OrderStatus:"order_status",MyCars:"mycars",MyCar:"mycars/",Landing:"landing"},_=e=>u[e],g=e=>e.includes("is_direct_checkout=true")&&e.includes("checkout/confirmation"),h=({url:e,screenName:t,ver
109sion:a})=>{if(0>(0,p.Z)(a,"1.47.0")&&!e.includes(d[t]))return e;if(e&&!e.includes("/mobile")){let t=e.split("/");return t.includes("de-DE")||e.includes("en-US")?t.splice(2,0,"mobile"):t.splice(1,0,"mobile"),t.join("/")}return e},m=e=>{let t="string"==typeof e?e:e.pathname;if(t.endsWith("/mobile")||t.endsWith("/mobile/")||t.endsWith("/mobile?")||t.endsWith("/mobile/?")||t.includes("/home"))return"home";if(t.includes("pdp")&&!t.includes("[vehicleId]"))return"pdp";if(t.includes("thank_you"))return"thank_you";if(t.includes("order-status"))return"order_status";if(t.includes("checkout"))return"checkout";if(t.includes("contactdetails"))return"contactdetails";if(t.includes("changepassword"))return"changepassword";if(t.includes("companydetails"))return"companydetails";if(t.includes("contact"))return"contact";if(t.includes("myaccount"))return"myaccount";if(t.includes("veriff"))return"veriff";let[a,s]=t.split("/").reverse()||[];if(a&&"mycars"===s)return"my_car";let[o,r]=t.split("/").reverse()||[];if(r&&"return"===o)return"return";if(t.includes("/404"))return"error";let[n,i]=t.split("?")?.[0]?.split("/")?.reverse()||[];if(i&&"schedule-service"===n)return"schedule_service";if(i&&"report-damage"===n)return"report_damage";let c=t.includes("subscribe");return c||t.includes("[vehicleId]")||t.includes("home")?c?"plp":"unknown":"landing"},f=(e,t)=>{let a=m(e);if("error"===a||"pdp"===a&&t.withWebPDPColorChange&&(e=>{let t=(0,c.V)(),a="string"==typeof e?e:e?.pathname,s=t?.next?.router?.state?.asPath;if(!a||!s)return!1;let[o,r]=[a,s].map(e=>{let t=e.split("-");return t.pop(),t.join("-").replace("/mobile","")});return o===r})(e))return!0;if("landing"===_(t.screenName)){let t;return t="string"==typeof e?e:e.pathname,(({currentURL:e,url:t})=>{if(t.includes("[...slug]")||t.includes("[slug]")&&t.includes("/mobile")||/\/[(\w\-)]*deals/.test(t)||t.includes("[...slug]")&&t.includes("deals")||t.includes("partnerships/paypal"))return!0;let a=e.replace(/\/\//g,"/");return!!t.endsWith("?")&&a.includes(t.replace("?",""))})({currentURL:window.location.href,url:t})}return!!t.allowSamePageWebNavigation&&_(t.screenName)===a||"unknown"===a},y=e=>e.includes("loginredirect")?`${window.origin}${e}`:e;var v=a(34113);let b=e=>{let t=document.querySelector(`[data-appid=${e}] a[href^=tel]`);t&&(t.onclick=e=>{e.preventDefault(),(0,v.c)()?.sendMessageToApp({type:"event:tel_link_pressed",value:t.href})})},w={[u.PDP]:()=>{let e;b("flipper-module-content"),(e=document.querySelector("[data-appid='flipper-module-content'] > p:nth-child(6) > a:nth-child(1)"))&&(e.onclick=t=>{t.preventDefault(),(0,v.c)()?.sendMessageToApp({type:"event:email_link_pressed",value:e.href})})},[u.Checkout]:()=>{b("checkout-header")}},x=()=>{let e=document.querySelector("[role='dialog']");e&&document.querySelectorAll(".menu-close-icon").length>0&&(e.querySelectorAll("button:not([type='submit'])")[0].style.visibility="hidden")},E=e=>e.match(/.*stripe.com.*linked-accounts-inner.*/)?"ACH":e.match(/.*stripe.com.*three-ds-2.*/)?"3DS":"unknown",C={[u.PDP]:()=>{let e,t;e=new MutationObserver(e=>{for(let t of e){let e=t.addedNodes?.[0];e?.childNodes?.[0]&&x()}}),(t=document.querySelector("body"))&&e.observe(t,{childList:!0})},[u.Checkout]:()=>{let e=new MutationObserver(e=>{for(let t of e){let e=t.addedNodes?.[0],a=e?.childNodes?.[0];if(a&&x(),a?.nodeName==="IFRAME"){let t=E(a.src);if("unknown"===t)return;r=e,n=t,(0,v.c)()?.sendMessageToApp({type:"event:iframe_opened",value:t})}let s=t.removedNodes?.[0];s&&s===r&&(0,v.c)()?.sendMessageToApp({type:"event:iframe_closed",value:n})}}),t=document.querySelector("body");if(t){let a;e.observe(t,{childList:!0}),a=(e,t=0)=>e.dataset?.cy==="submit"||!(t>5)&&!!e.parentElement&&a(e.parentElement,t+1),document.addEventListener("click",e=>{if(e.target&&a(e.target)&&[...document.querySelectorAll('[data-cy="payment-method-stripe_debit_ach"] circle')].length>1){e.stopPropagation(),e.preventDefault();let t=(0,c.V)();(0,v.c)()?.sendMessageToApp({type:"event:continue_payment",value:"ACH",href:t.location?.href})}})}}},S=e=>async(t,a,[s,o,r])=>{let n=await (async(t,a,s)=>{let o="string"==typeof t?t:t.pathname;return s?.appFirst?delete s.appFirst:(e({type:"event:navigate",value:o}),await new Promise(e=>setTimeout(e,33))),[o,a,s]})(s,o,r);return t.apply(a,n)},k={location:!0}
109,A=e=>{let t=()=>A(e),a=0>(0,p.Z)(e.version,"1.47.0");if(((e,t)=>{let a,s=(0,c.V)();Object.defineProperty(s,"localStorage",{value:new Proxy(s.localStorage,{get(t,a){if("function"!=typeof t[a])return t[a];if("setItem"===a){let s;return(s=t[a],new Proxy(s,{apply:(t,a,s)=>{let[o,r]=s;return k[o]&&e({type:"event:storage_set_item",payload:{key:o,value:r}}),t.apply(a,s)}})).bind(t)}return t[a].bind(t)}}),writable:!0});let o=(0,c.V)();try{a=t?JSON.parse(t):[]}catch(e){a=[]}a.forEach?.(({key:e,value:t})=>{o?.localStorage.setItem(e,t)})})(e.emitEvent,e.localState),(({isNativeNavigationFirst:e,bottom:t})=>{let a,s=(0,c.V)(),o=document.querySelector(":root");if(o?.style.setProperty("--bottom-inset",`${t}px`),o?.style.setProperty("--webview-height",`${s.innerHeight}px`),!e){let e=document.createElement("style");e.innerHTML=`
110      [data-appid="sticky-bar"], [data-appid="direct-checkout-button-group"] {
111        box-sizing: content-box;
112        padding-bottom: ${t}px;
113      }
114      [data-appid="close-icon"] {
115        visibility: hidden;
116      }
117    `,document.head.appendChild(e)}document.head.appendChild(((a=document.createElement("meta")).name="viewport",a.content="initial-scale=1.0, maximum-scale=1.0",a))})({isNativeNavigationFirst:a,bottom:e.bottom||"0"}),document?.readyState==="complete"){var r;let t,n,i,l,u;r=e.emitEvent,n=(t=(0,c.V)()).console.log,i=t.console.error,l=t.console.warn,u=t.console.info,t.console.log=function(...e){r({type:"log",message:JSON.stringify(e)}),n(...e)},t.console.error=function(...e){r({type:"log:error",message:JSON.stringify(e)}),i(...e)},t.console.warn=function(...e){r({type:"log:warn",message:JSON.stringify(e)}),l(...e)},t.console.info=function(...e){r({type:"log:info",message:JSON.stringify(e)}),u(...e)},(({screenName:e,allowSamePageWebNavigation:t,isNativeNavigationFirst:a,withWebPDPColorChange:r,locale:n,version:i,emitEvent:l})=>{var u;let d,v,b,x,E,k=_(e);if(document.documentElement.classList.add("native-app-screen"),document.body?.classList?.add(k,`region-${n}`),v=(d=(0,c.V)()).fetch,d.fetch=(...e)=>{let t=e?.[0];return("string"==typeof t&&t?.includes("/login")&&l({type:"event:login"}),"string"==typeof t&&t?.includes("/register"))?v(...e).then(e=>(l({type:"event:login"}),e)):v(...e)},(b=e=>{let t=(0,c.V)();t?.UC_UI&&(t?.UC_UI?.denyAndCloseCcpa(),clearInterval(e))})(),x=setInterval(()=>{b(x)},20),(E=(0,c.V)()).UC_Integrations={},Object.defineProperties(E,{analytics:{writable:!0,value:{track:(e,t,a)=>{l({type:"event:track",event:e,properties:t,options:a})},page:(e,t,a)=>{l({type:"event:page",path:e,properties:t,options:a})},group:(e,t,a)=>{l({type:"event:group",groupId:e,properties:t,options:a})},identify:(...e)=>{let t={userId:"",properties:{},options:void 0};if("string"==typeof e[0]){let[a,s,o]=e;t.userId=a,t.properties=s,t.options=o}else{let[a,s]=e;t.properties=a,t.options=s}l({type:"event:identify",...t,properties:{...t.properties,app_version:E.nativeAppSDK?.getTrackingProps()?.app_version}})},load:()=>{l({type:"event:load"})}}}}),MutationObserver&&new MutationObserver(e=>{e.forEach(()=>{l({type:"scroll",value:"hidden"!==document.body.style.overflow}),l({type:"event:stripe_modal",value:[...document.querySelectorAll("iframe")].filter(e=>e?.src?.includes("stripe")&&e?.name?.includes("Frame")).length>0})})}).observe(document.body,{attributes:!0,attributeFilter:["style"]}),a){let a;u={screenName:e,allowSamePageWebNavigation:t,withWebPDPColorChange:r,version:i},a=(0,c.V)(),!s&&a.next&&(s=a?.next?.router.push,o=a?.next?.router.replace,a.next?.router?.events?.on("routeChangeStart",e=>{l({type:"navigation",url:g(e)?e.replace("checkout/confirmation","checkout/contact"):y(e),page_type:e.includes("loginredirect")?"pdf":m(e)})}),a.next.router.push=function(e,t,a){let o="string"==typeof e?e:e.pathname;return!f(o,u)&&(l({type:"navigation",url:g(o)?o.replace("checkout/confirmation","checkout/contact"):y(o),page_type:o.includes("loginredirect")?"pdf":m(o)}),0>(0,p.Z)(u.version,"1.47.0"))?Promise.resolve():o.includes("/mobile/")?s?.bind(this)(o,t,a):s?.bind(this)(h({url:o,screenName:u.screenName,version:u.version}),t?h({url:t,screenName:u.screenName,version:u.version}):t,a)},a.next.router.replace=function(e,t,a){let s="string"==typeof e?e:e.pathname;return!f(s,u)&&(l({type:"navigation",url:g(s)?s.replace("checkout/confirmation","checkout/contact"):y(s),page_type:s.includes("loginredirect")?"pdf":m(s)}),0>(0,p.Z)(u.version,"1.47.0"))?Promise.resolve():s.includes("/mobile")?o?.bind(this)(s,t,a):o?.bind(this)(h({url:s,screenName:u.screenName,version:u.version}),t,a)}),a?.next?.router}else{let e,t;e=(0,c.V)(),t=()=>{e.next&&(e.next.router.push=new Proxy(e.next.router.push,{apply:S(l)}),e.next.router.replace=new Proxy(e.next.router.push,{apply:S(l)}))},e?.next?.router?.push?t():setTimeout(t,500)}w[k]?.(),C[k]?.(),l({type:"ready"})})({...e,isNativeNavigationFirst:a})}else document.addEventListener("readystatechange",t);return()=>{document.removeEventListener("readystatechange",t)}},T=()=>{},N=()=>
117{if((0,i.S$)())return;let e=(0,c.V)();e?.onWebReadyToConnectToApp?.(t=>{let a,s,o,r,n,p,u,d,_=(s=[],o=e=>{window?.ReactNativeWebView?.postMessage?.(JSON.stringify(e))},r=(e,t)=>{let a={name:e,cb:t};return s.push(a),()=>{s=s.filter(e=>e!==a)}},n={all:{closeTooltip:()=>{document.querySelector("[role=tooltip] button")?.click?.()},closeDialog:()=>{document.querySelector('div:not([style*="visibility: hidden"]) [role=dialog] button')?.click?.(),document.querySelector('[data-appid="image-gallery-mobile-close-button"]')?.click?.()},fecthCachedZipcode:()=>{try{let e=JSON.parse(window.localStorage.getItem("location")||"")?.state?.zipCode;if(e){let t=parseInt(e,10);o({type:"cached_zipcode",value:t})}}catch(e){o({type:"cached_zipcode",value:void 0})}},fetchZipcode:()=>{let e=document?.querySelector?.("button p")?.innerHTML;e?o({type:"zipcode",value:parseInt(e,10)}):o({type:"zipcode"})}},pdp:{showContinueFooter:()=>{let e=document.querySelector('[data-appid="sticky-bar"]');e&&(e.style.display="block")},hideContinueFooter:()=>{let e=document.querySelector('[data-appid="sticky-bar"]');e&&(e.style.display="none")},closeFullScreenGallery:()=>{document.querySelector("[data-appid='image-gallery-mobile-close-button']")?.click?.()}}},p={getTrackingProps:()=>({app_type:"native",app_locale:t.locale,app_platform:t.platform,app_version:t.version,app_build_number:t.buildNumber,app_codepush_id:t.codepushId,app_device_model:t.deviceModel,app_device_name:t.deviceName,app_device_type:t.deviceType,app_device_network:t.deviceNetwork,app_os:t.os,app_os_version:t.osVersion,app_screen_width:t.screenWidth,app_screen_height:t.screenHeight,app_feature_flags:t.features,locale:t.locale,app:{build:t.buildNumber,version:t.version,codepushId:t.codepushId},device:{model:t.deviceModel,name:t.deviceName,type:t.platform},network:{cellular:"cellular"===t.deviceNetwork,wifi:"wifi"===t.deviceNetwork},os:{name:t.os,version:t.osVersion},screen:{height:t.screenHeight,width:t.screenWidth}}),setUserTrackingId:e=>{let t=setInterval(()=>{window.analytics?.user&&(window.analytics.user()?.anonymousId?.(e),clearInterval(t))},50)}},u=e=>e.startsWith("/")?e:`/${e}`,d={init:()=>A({...t,addListener:r,emitEvent:o}),navigate:(e,s)=>{let r=(0,c.V)(),n=r.location.href,i=/^\/?portal(?=\/|$|\?)/.test(e),p=s||(i?"portal":void 0),d=i?e.replace(/^\/?portal\/?/,"/").replace(/^\/\//,"/"):e;e.startsWith("http")?r.location.href=e:"portal"!==p||n?.includes("/portal")?!p&&n?.includes("/portal")?r.location.href=`${t.baseUrl}/${t.locale}${u(d)}`:(r.next?.router.push(d,void 0,{appFirst:!0}),a&&clearTimeout(a),a=setTimeout(()=>{a=void 0,(0,l.$l)()||o({type:"event:sdk_initialized"})},l.hC)):r.location.href=`${t.baseUrl}/portal/${t.locale}${u(d)}`},isReady:()=>!0,sendMessageToApp:o,sendMessageToAppSDK:e=>{"checkout_ready"===e&&"android"===t.platform&&(0,i.ub)()},on:r,showContinueFooter:n.pdp.showContinueFooter,hideContinueFooter:n.pdp.hideContinueFooter,closeTooltip:n.all.closeTooltip,closeDialog:n.all.closeDialog,closeFullScreenGallery:n.pdp.closeFullScreenGallery,fecthCachedZipcode:n.all.fecthCachedZipcode,fetchZipcode:n.all.fetchZipcode,getTrackingProps:p.getTrackingProps,setUserTrackingId:p.setUserTrackingId,updatePLPFilter:T,fetchFilterValues:T,getAuthenticationStatus:T,getCurrentUrl:()=>{d.sendMessageToApp({type:"event:current_url",value:window?.location?.href})},callListener:(e,t)=>{s.find(t=>t.name===e)?.cb(t)},push:e=>{(0,c.V)()?.next?.router.push(e,void 0)},goToURL:e=>{let t=(0,c.V)();t&&(t.location.href=e)},verifyEmail:T,prefetchUrl:e=>{let t=`prefetch-link-${e}`;if(!document.getElementById(t)){let a=document.createElement("link");a.rel="prefetch",a.href=e,a.id=t,document.head.appendChild(a)}}});_.init(),e.nativeAppSDK=_})}},68440:(e,t,a)=>{"use strict";a.d(t,{U:()=>r,g:()=>n});var s=a(96971),o=a(44122);let r=e=>{let t=e;return"meta"===t&&(t="Facebook"),encodeURIComponent(`Inbound - ${(0,o.Zr)(t)}`)},n=e=>decodeURIComponent((0,s.ok)(s.$K.UTM_SOURCE)??"")||`Inbound - ${e}`},70677:()=>{},74738:(e,t,a)=>{"use strict";a.d(t,{y:()=>o});var s=a(44725);let o=(0,a(30950).M)({basePath:"/api/v2/auth",plugins:[(0,s.t)()]})},74799:()=>{},75127:(e,t,a)=>{"use strict";a.d(t,{SetupSideEffects:()=>$});var s=a(54568),o=a(56912),r=a(7620),n=a(34615),i=a(36631),c=a(81605),l=a(8057),p=a(89718),u=a(86461),d=a(96971),_=a(82993),g=a(45371),h=a(765),m=a(54967);let f="VoucherCode",y=(e,t)=>{let a=e.get(t);if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return"";let s=new Date(a);return Number.isNaN(s.getTime())||s.toISOString().slice(0,10)!==a?"":a};var v=a(59770),b=a(46879),w=a(33611),x=a(65459),E=a(67371),C=a(85402),S=a(95781),k=a(61299),A=a.n(k),T=a(20645),N=a(96695),I=a(9094),P=a(65513),O=a(23267),L=a(68440),D=a(79748);let R=JSON.parse('{"supportedLocales":["de-DE","en-DE"],"defaultLocale":"de-DE"}'),M=()=>{let e=(0,D.usePathname)(),t=(0,D.useSearchParams)(),a=(0,r.useRef)({}),s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=()=>{s.current&&(a.current[s.current]=[window.scrollX,window.scrollY])};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[]),(0,r.useEffect)(()=>{let o=e+t.toString();s.current&&(a.current[s.current]=[window.scrollX,window.scrollY]),s.current=o;let r=a.current[o];window.location.hash||(window?.history?.state?.scrollY?window.scrollTo(0,window.history.state.scrollY):r?window.scrollTo(r[0],r[1]):window.scrollTo(0,0))},[e,t]),null},j=(0,N.k)(),$=({locale:e})=>{let t,a,k,N=(0,D.usePathname)(),$=(t=(0,u.Y)(),(0,r.useCallback)(e=>{(0,d.rQ)(e),t?.push("/")},[t])),{messages:K}=(0,r.useMemo)(()=>(0,I.S)(e),[e]),{hasFunctionalConsent:U}=(0,T.uC)();return(0,P.uk)(e),(0,P.FB)(K),(0,P.T9)({...j}),(0,r.useEffect)(()=>
117{if(!U)return;let e=window.location.pathname?.split("/")?.[1],t=R.supportedLocales?.includes(e);("/"!==N||t)&&(t?(0,d.rQ)(e):(0,d.rQ)(O.iC));let a=(0,d.ok)(d.$K.NEXT_LOCALE);a===O.hT.ENGLISH_USA&&e!==O.hT.ENGLISH_USA&&$(a)},[e,N,$,U]),(0,r.useEffect)(()=>{if(!U)return;let e=S.parse(window.location.search)["b2b-multiplier"];e&&(0,d.Sp)(d.$K.B2B_MULTIPLIER,e,30)},[U]),(0,r.useEffect)(()=>{if(!U)return;let e=S.parse(window.location.search).utm_source;Array.isArray(e)&&(e=e[0]);let t=(0,d.A8)(d.$K.UTM_SOURCE);if(e&&!t){let t=(0,L.U)(e);(0,d.Sp)(d.$K.UTM_SOURCE,t,30)}},[U]),(0,r.useEffect)(()=>{(0,d.CE)()},[]),(0,r.useEffect)(()=>{(0,E.gO)(N)},[N]),(0,r.useEffect)(()=>{"localhost"===window.location.hostname&&(window.UC_Integrations={"Segment.io":!0,"Facebook Pixel":!0},(0,E.HD)(window.UC_Integrations),window.analytics||console.warn("window.analytics is not defined. try refreshing the page"),window.analytics?.load?.(C.A.ANALYTICS_WRITE_KEY,{integrations:window.UC_Integrations,cdnURL:C.A.SEGMENT_CDN_URL}),window.dispatchEvent(new Event("afterSegmentLoad"))),window.addEventListener("afterConsent",e=>{let t={...e.detail};t?.type!=="explicit"&&Object.values(t||{}).some(e=>!1===e)||(delete t.event,delete t.type,delete t.action,(0,E.HD)(t),window.analytics?.load?.(C.A.ANALYTICS_WRITE_KEY,{integrations:window.UC_Integrations,cdnURL:C.A.SEGMENT_CDN_URL}),(0,x.n)(),window.dispatchEvent(new Event("afterSegmentLoad")))})},[]),a=(0,o.Z)(e=>e.referralVoucherData),(0,r.useEffect)(()=>{if(!a)return;let e=(0,d.MW)(d.$K.IS_REFERRAL_VOUCHER_TRACKED);if(a&&!e){(0,d.mz)(d.$K.IS_REFERRAL_VOUCHER_TRACKED,!0,v.oN);try{(0,b._J)(w.fC.REFERRAL_VOUCHER,a)}catch(e){console.error("Error parsing or decoding referral voucher",e)}}},[a]),(0,r.useEffect)(()=>{["development","staging","preview"].includes(C.A.APP_STAGE)&&(A().get(d.$K.E2E_TEST_IN_PROGRESS)||A().set(d.$K.E2E_TEST_IN_PROGRESS,"yes"))},[]),(()=>{let[e,t]=(0,r.useState)(null),a=(0,r.useRef)(!1),s=(0,o.Z)(e=>e.setReferralVoucherData),n=(0,o.Z)(e=>e.clearReferralVoucher),v=(0,o.Z)(e=>e.referralVoucherData),{locale:b}=(0,p.n)(),w=(0,u.Y)();(0,r.useEffect)(()=>{let t=new URLSearchParams(window.location.search),a=(0,d.ok)(d.$K.VOUCHER_CODE),o=(0,_.d)()?null:(0,d.ok)(d.$K.REFERRAL_VOUCHER_HASH),r=e||t.get(f)||a,l=r||o,p=!r;l&&(0,m.Ol)(l,b,(0,g.Gb)()).then(e=>{if(200===e.status&&e.is_valid){if(s(e,l),(0,c.ww)(e.class)&&(0,d.d5)(d.$K.CLOSED_USER_GROUP_ID),[c.Fp.delay_management,c.Fp.alternative_car_offering].includes(e.class)){let a=e.class===c.Fp.alternative_car_offering?y(t,"max_available_to"):"";(0,h.q2)(h.cY.DELAY_MANAGEMENT,{available_from:y(t,"available_from"),available_to:y(t,"available_to"),...a?{max_available_to:a}:{}},72)}}else{if(p)return void n();(0,i.P0)({status:"error",title:"Angebot abgelaufen",description:"Dieses Angebot ist nicht mehr verf\xfcgbar.",duration:6e4});let e=new URLSearchParams(window.location.search);if(e.has(f)){e.delete(f);let t=e.toString(),a=`${w.pathname}${t?`?${t}`:""}`;w.replace(a)}n()}}).catch(()=>{n()})},[e]);let x=v?.image?.url;(0,r.useEffect)(()=>{!x||(0,l.X)(v)||a.current||(a.current=!0,t((0,d.ok)(d.$K.REFERRAL_VOUCHER_HASH)||null))},[v,x])})(),k=(0,o.Z)(e=>e.initFromBrowserCookie),(0,r.useEffect)(()=>{k()},[k]),(0,r.useEffect)(()=>{let{utm_source:e,awc:t,clickid:a,li_fat_id:s,rdt_cid:o}=S.parse(window.location.search),r=s&&s.length>0;"awin"===e&&t&&(0,d.Xg)(d.$K.AWIN_CLID,t,30),"tisoomi"===e&&a&&(0,d.Xg)(d.$K.TISOOMI_CLID,a,30),("Reddit"===e||"reddit"===e)&&o&&(0,d.Xg)(d.$K.REDDIT_CLID,o,30),r&&(0,d.Xg)(d.$K.LINKEDIN_CLID,s,30)},[]),(0,n.x)(),(0,r.useEffect)(()=>{window.UC_Integrations&&window.dataLayer&&window.dataLayer.push(["consent","update",{ad_storage:window.UC_Integrations["Adwords Remarketing Lists"]||window.UC_Integrations.AdWords?"granted":"denied",analytics_storage:window.UC_Integrations["Google Analytics"]?"granted":"denied"}]),window.dispatchEvent(new Event("afterSegmentLoad"))},[]),(0,s.jsx)(r.Suspense,{children:(0,s.jsx)(M,{})})}},78632:(e,t,a)=>{"use strict";a.d(t,{$l:()=>n,WN:()=>r,hC:()=>s});let s=600,o=!1,r=()=>{o=!0},n=()=>o},80974:(e,t,a)=>{"use strict";a.d(t,{Ci:()=>T,BH:()=>x});var s=a(54568),o=a(38039),r=a(67371),n=a(86461),i=a(89718),c=a(61299),l=a.n(c),p=a(79748),u=a(7620),d=a(57120);let _="disabled",g="__Secure-finnid",h=(e,t,a)=>{let s=(e=>{let t=0x811c9dc5;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,0x1000193);return t^=t>>>
11713,t=Math.imul(t,0x5bd1e995),(t^=t>>>15)>>>0})(`${a}:${t}`)%e.length;return e[s]};var m=a(47995);let f=e=>{if(!e)return{};let t={},a=e.split("?")[0].split("/").filter(Boolean),s=a.findIndex(e=>"ab"===e);if(-1===s)return t;let o=a.slice(s+1);if(o.length<3)return t;let r=e=>/^[a-z]$/.test(e)||"disabled"===e;if("models"===o[0]||"subscribe"===o[0]){if(o.length>=3){let e=o[1],a=o[2];a&&r(a)&&(t[e]=a)}return t}if(o.length>=3){let e=o[1],a=o[2];a&&r(a)&&(t[e]=a)}return t};var y=a(24863),v=a(48761);let b={},w=(e,t)=>{void 0!==e&&void 0!==t&&(b[e]=t)},x=(e,t)=>{void 0!==e&&void 0!==t&&w(e,t)},E="finn_ab_seed",C=()=>{try{return window.localStorage.getItem(E)||void 0}catch{return}},S=e=>{try{window.localStorage.setItem(E,e)}catch{}},k=()=>{let e=C();if(e)return e;let t=l().get(g);if(t)return S(t),t;let a="u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Math.random().toString(36).slice(2)}${Math.random().toString(36).slice(2)}`;return S(a),C()===a?a:void 0},A=null,T=({allFeatures:e,children:t,hasFunctionalConsent:a})=>{let{isReady:c,query:x}=(0,n.Y)()||{isReady:!0},E=(0,p.useSearchParams)(),C=(0,p.usePathname)(),S=(0,p.useSelectedLayoutSegments)(),T=S&&S.length>0?`/${S.join("/")}`:null,N=(0,u.useMemo)(()=>x||Object.fromEntries(E||new Map),[E,x]),{locale:I}=(0,i.n)(),P=(0,u.useMemo)(()=>{let e=f(T);return Object.keys(e).length>0?e:f(C)},[T,C]);(0,u.useEffect)(()=>{(0,o.S)()||Object.entries(P).forEach(([e,t])=>{w(e,t)})},[P]);let O=!(0,o.S)()&&!!l().get("terminal_event");A||(A=((e,t,a,s)=>{if((0,o.S)())return{computedFeatures:b,updatedBuckets:{}};let{updatedBuckets:n,bucketValues:i}=((e,t,a,s)=>{let o={},r={},n=e[t]||{},i=s?.forceControl?void 0:s&&"seed"in s?s.seed:a(g);for(let e of Object.keys(n)){if(s?.forceControl){r[e]="a";continue}let c=a(`${t}_${e}`),{buckets:l,enabled:p}=n[e];if(!l.length){r[e]="a";continue}let u=l.includes(String(c));if(!p&&!u){r[e]=_,c&&l.includes(_)&&(o[e]=_);continue}if(u&&c){r[e]=c,i&&c!==h(l,e,i)&&(o[e]=c);continue}let d=[...new Set(l)];if(1===d.length){r[e]=d[0],o[e]=d[0];continue}if(!i){r[e]=_;continue}let g=h(l,e,i);r[e]=g,o[e]=g}return{updatedBuckets:o,bucketValues:r}})(e,t,l().get,{forceControl:s,seed:k()}),c={...i,...a,...b};return(0,r.RK)(c),{computedFeatures:c,updatedBuckets:{...n,...a,...b}}})(e,I,P,O));let{computedFeatures:L,updatedBuckets:D}=A;(0,u.useEffect)(()=>
117{if(O){for(let t of Object.keys(e[I]||{}))l().remove(`${I}_${t}`);l().remove(`${I}_ab_enabled`);return}let t=k();if(t&&l().get(g)!==t&&l().set(g,t,{expires:180,sameSite:"lax",secure:!0}),a){for(let[e,t]of Object.entries(D))l().set(`${I}_${e}`,t,{expires:180});for(let e of m.V)l().remove(`${I}_${e}`);l().set(`${I}_ab_enabled`,"true",{expires:180})}},[D,a,I,O,e]);let[R,M]=u.useState(L);(0,o.S)()||(0,d.q5)(R,e[I]),(0,u.useEffect)(()=>{c&&Object.keys(e[I]||{}).forEach(e=>{let t=N?.[e];t&&l().get(`${I}_${e}`)!==t&&(l().set(`${I}_${e}`,t),M(a=>({...a,[e]:t})))})},[c]);let j=(0,u.useCallback)((e,t)=>{(0,o.S)()||(l().get(`${I}_${e}`)!==t&&l().set(`${I}_${e}`,t,{expires:180}),M(a=>a[e]===t?a:{...a,[e]:t}))},[I]),$=(0,u.useMemo)(()=>({forceVariant:j}),[j]);return(0,s.jsx)(v.C.Provider,{value:$,children:(0,s.jsx)(y.u.Provider,{value:R,children:t})})}},81897:()=>{},82993:(e,t,a)=>{"use strict";a.d(t,{d:()=>r});var s=a(96971),o=a(765);let r=()=>{try{let e=(0,o.gp)(o.cY.REFERRAL_VOUCHER_DATA);if("string"==typeof e?.code&&e.code)return e;let t=(0,s.eM)(s.$K.REFERRAL_VOUCHER_CODE);return"string"==typeof t?.code&&t.code?t:null}catch{return null}}},86461:(e,t,a)=>{"use strict";a.d(t,{Y:()=>i});var s=a(79748),o=a(7620),r=a(86401),n=a(89718);let i=()=>{let e=(0,s.useRouter)(),t=(0,s.usePathname)(),a=(0,s.useSearchParams)(),i=(0,r.S)(),c=a?.toString()?`?${a.toString()}`:"",{locale:l}=(0,n.n)();return(0,o.useMemo)(()=>({locale:l,asPath:`${t}${c}`,pathname:t,isReady:!0,query:Object.fromEntries(a||new Map),reload:e.refresh,...e,push:(t,a)=>{let s=t?.startsWith("/")||t?.includes("http")?t:`/${t}`;return e.push(s?.startsWith(`/${l}`)||s?.includes("http")||"b2b"===i?t:`/${l}${t}`,a),Promise.resolve(!0)},replace:(t,a)=>{let s=t?.startsWith("/")||t?.includes("http")?t:`/${t}`;return e.replace(s?.startsWith(`/${l}`)||s?.includes("http")||"b2b"===i?t:`/${l}${t}`,a),Promise.resolve(!0)}}),[e,t,c,a,l])}},88625:(e,t,a)=>{"use strict";a.d(t,{RetentionModalPopup:()=>_});var s=a(54568),o=a(99498),r=a(66866),n=a(92088),i=a(27795),c=a(33611),l=a(96971),p=a(765),u=a(7620),d=a(27153);let _=({autoTrigger:e=!0})=>{let{readyForRetentionDeals:t}=(0,o.b)(),a=t?.length>0?t[0]:null,_=a?.id,g=(0,r.t6)(),h=(0,i.i)(e=>e.track);return(0,u.useEffect)(()=>{if(!e)return;let t=window.location.pathname.includes("/checkout/");!_||(0,l.MW)(l.$K.RETENTION_POPUP_SHOWED)||"true"!==(0,p.gp)(p.cY.PORTAL_AUTO_POPUP_SHOWN)&&((0,l.mz)(l.$K.RETENTION_POPUP_SHOWED,!0),t||((0,p.q2)(p.cY.PORTAL_AUTO_POPUP_SHOWN,"true"),g(n.t.RETENTION_MODAL_POPUP)),h(c.fC.MODAL_OPENED,{name:"auto_pop_up_extend_subscription_selector"}))},[e,g,_,h]),(0,s.jsx)(r.Bs,{modalKey:n.t.RETENTION_MODAL_POPUP,ModalComponent:d.W,selectedSubscription:a,onCloseCallback:()=>{h(c.fC.MODAL_CLOSED,{name:"auto_pop_up_extend_subscription_selector"})},autoOpened:!0,location:"Retention Modal Popup"})}},94134:(e,t,a)=>{"use strict";a.d(t,{W:()=>s});let s=e=>{window.location.replace(e)}},96311:(e,t,a)=>{var s=a(60393),o=a(58470),r=a(59596),n=a(2702);e.exports=function(e,t,a){return e=n(e),a=null==a?0:s(r(a),0,e.length),t=o(t),e.slice(a,a+t.length)==t}},99906:(e,t,a)=>{"use strict";a.d(t,{D:()=>r});var s=a(7620),o=a(2809);let r=({children:e,...t})=>(0,s.isValidElement)(e)?(0,s.cloneElement)(e,{...t,...e.props,style:{...t.style,...e.props.style},className:(0,o.QP)(t.className,e?.props?.className)}):null}},e=>{e.O(0,[8925,2131,1153,6733,1973,5220,2016,5096,7128,3327,9915,4551,4821,9734,1126,9186,3512,6267,1712,6772,9580,6619,9661,7961,2081,1795,2491,587,1968,7358],()=>e(e.s=12093)),_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.