!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="90264b6f-132b-4fe0-b7e2-5a53973280f4",e._sentryDebugIdIdentifier="sentry-dbid-90264b6f-132b-4fe0-b7e2-5a53973280f4")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9813,5563],{57932:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/guide/[...slug]",function(){return r(33182)}])},33182:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return P},default:function(){return D}});var i=r(85893),n=r(5716),a=r(4452),s=r(84743),l=r(45456),o=r(30120),d=r(11163),c=r(67294),m=r(31304),p=r.n(m),u=r(59527);let x=e=>{let{make:t,mod:r,title:n}=e,a=(0,d.useRouter)(),s=(0,c.useMemo)(()=>t,[a.asPath]),m=(0,c.useMemo)(()=>{if(!(a.asPath.split("/").length<4))return r},[a.asPath]),x=(0,c.useMemo)(()=>{if(!(a.asPath.split("/").length<5))return n},[a.asPath]),h=(0,c.useMemo)(()=>"Guide",[a.asPath]),g=(0,c.useMemo)(()=>{var e=[{label:h,url:"/".concat(p()(h,l.cx)),disabled:!1}];return s&&(e.push({label:s,disabled:!1,url:"/".concat(p()(h,l.cx),"/").concat(p()(s,l.cx))}),m&&e.push({label:m,disabled:!0,url:"/".concat(p()(h,l.cx),"/").concat(p()(s,l.cx),"/").concat(p()(m,l.cx))})),x&&e.push({disabled:!1,label:x,url:"/".concat(p()(h,l.cx),"/").concat(p()(s,l.cx),"/").concat(p()(m,l.cx),"/").concat(p()(x.replace(",","-").replace("+","plus"),l.cx))}),e},[h,s,m,x]);return(0,i.jsx)(o.Z,{marginY:"23px","data-sentry-element":"Box","data-sentry-component":"CmsBreadCrumbs","data-sentry-source-file":"cms-breadcrumbs.tsx",children:(0,i.jsx)(u.Z,{pages:g,"data-sentry-element":"BreadcrumbSection","data-sentry-source-file":"cms-breadcrumbs.tsx"})})};var h=r(79196),g=r(5092),y=r(20612),f=r(26921),b=r(78016),v=r(79072),k=r(29630),j=r(31177),Z=e=>{var t;return e.models&&0!=e.models.length?(0,i.jsx)(o.Z,{padding:1,flexGrow:1,bgcolor:a.w.White,"data-sentry-element":"Box","data-sentry-component":"CMSVariantList","data-sentry-source-file":"cms-variant-list.tsx",children:(0,i.jsx)(b.Z,{style:{padding:0},"data-sentry-element":"Container","data-sentry-source-file":"cms-variant-list.tsx",children:(0,i.jsx)(v.ZP,{container:!0,spacing:2,"data-sentry-element":"Grid","data-sentry-source-file":"cms-variant-list.tsx",children:null===(t=e.models.sort((e,t)=>e.properties.makeModel<t.properties.makeModel?-1:e.properties.makeModel==t.properties.makeModel?e.name.length-t.name.length:1))||void 0===t?void 0:t.map((e,t,r)=>{var n,a;return(0,i.jsx)(i.Fragment,{children:e.properties.sektioner?(0,i.jsx)(j.Z,{name:null!==(n=e.properties.header)&&void 0!==n?n:e.name,path:e.route.path,imageUrl:e.properties.nyhedsbillede[0].url.split("?")[0]+"?width=389&height=300"},e.id):(0,i.jsx)(v.ZP,{item:!0,xs:12,children:(0,i.jsx)(k.Z,{variant:"h4",component:"h2",children:e.name})})})})})})}):null},M=r(55196),w=r(5152),S=r.n(w);let B=S()(()=>Promise.resolve().then(r.bind(r,78801)),{loadableGenerated:{webpack:()=>[78801]},ssr:!1}),C=S()(()=>Promise.resolve().then(r.bind(r,73692)),{loadableGenerated:{webpack:()=>[73692]},ssr:!1});var P=!0,D=e=>{var t,r,m,u,j,w,S,P,D,_;let I=(0,c.useRef)(null),O=(0,c.useMemo)(()=>{var t,r,i;return(0,s.kC)(null===(i=e.item.properties.makeModel)||void 0===i?void 0:null===(r=i.split("|")[0])||void 0===r?void 0:null===(t=r.split(";")[0])||void 0===t?void 0:t.replaceAll("-"," "))},[e.item.properties.makeModel]),T=(0,c.useMemo)(()=>{try{var t,r=null===(t=e.item.properties.makeModel)||void 0===t?void 0:t.split("|")[1];return r.includes("Alfa Romeo")?r.split(" ")[0].trim()+" "+r.split(" ")[1].trim():r.split(" ")[0].trim()}catch(e){return O}},[e.item.properties.makeModel,O]),L=(0,c.useMemo)(()=>{var t,r,i;return(0,s.kC)(null===(i=e.item.properties.makeModel)||void 0===i?void 0:null===(r=i.split("|")[0])||void 0===r?void 0:null===(t=r.split(";")[1])||void 0===t?void 0:t.replaceAll("-"," "))},[e.item.properties.makeModel]),G=(0,c.useMemo)(()=>{try{var t;return null===(t=e.item.properties.makeModel)||void 0===t?void 0:t.split("|")[1].replace(T,"").trim()}catch(e){return L}},[e.item.properties.makeModel,L,T]),F=(0,c.useMemo)(()=>({brand:{value:p()(O,l.cx),label:T},model:{value:p()(L,l.cx),label:G},variant:""}),[O,T,L,G]),R=(0,d.useRouter)(),{submitSearch:A}=(0,n.gP)({router:R,updateUrlOnChange:!1}),E=null===(r=e.item.properties)||void 0===r?void 0:null===(t=r.sektioner)||void 0===t?void 0:t.items.some(e=>"sektionRelated"===e.content.contentType),z=(null===(m=e.item.properties)||void 0===m?void 0:m.articles)&&e.item.properties.articles.some(t=>t.name.includes(e.item.properties.makeModel.split("|")[1]))?"Guides til andre varianter af ".concat(e.item.properties.makeModel.split("|")[1]):"Guides til andre ".concat(e.item.properties.makeModel.split("|")[1].split(" ")[0],"-modeller");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y.Z,{item:e.item,"data-sentry-element":"CMSSEO","data-sentry-source-file":"[...slug].tsx"}),e.item.properties.nyhedsbillede&&(0,i.jsx)(M.$5.Provider,{value:{submitSearch:A},children:(0,i.jsx)(f.D,{aiSeo:!0,makeModelVariantOption:F,imageUrl:e.item.properties.nyhedsbillede[0].url})}),e.children&&0!==e.children.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B,{isSRP:!1}),(0,i.jsx)(C,{})]}),(0,i.jsxs)(o.Z,{ref:I,"data-sentry-element":"Box","data-sentry-source-file":"[...slug].tsx",children:[(0,i.jsx)(o.Z,{padding:1,bgcolor:a.w.White,"data-sentry-element":"Box","data-sentry-source-file":"[...slug].tsx",children:(0,i.jsxs)(b.Z,{style:{padding:0},"data-sentry-element":"Container","data-sentry-source-file":"[...slug].tsx",children:[(0,i.jsx)(x,{make:T,mod:G,title:e.item.name,"data-sentry-element":"CmsBreadCrumbs","data-sentry-source-file":"[...slug].tsx"}),e.item.properties.header&&(0,i.jsxs)(k.Z,{variant:"body1",children:["Guiden handler om ",e.item.properties.header]})]})}),e.children&&0!==e.children.length?(0,i.jsx)(i.Fragment,{children:null===(j=e.item.properties)||void 0===j?void 0:null===(u=j.sektioner)||void 0===u?void 0:u.items.filter((e,t)=>0==t).map((t,r)=>(0,i.jsx)(g.Z,{autoAi:!0,makeModel:e.item.properties.makeModel,refObject:I,index:r,sektion:t},r))}):(0,i.jsx)(i.Fragment,{children:null===(S=e.item.properties)||void 0===S?void 0:null===(w=S.sektioner)||void 0===w?void 0:w.items.map((t,r)=>{var n;return(0,i.jsx)(c.Fragment,{children:"sektionRelated"==t.content.contentType?(0,i.jsxs)(i.Fragment,{children:[(null===(n=e.item.properties)||void 0===n?void 0:n.articles)&&(0,i.jsx)(o.Z,{padding:1,marginBottom:2,bgcolor:a.w.White,children:(0,i.jsx)(b.Z,{style:{padding:0},children:(0,i.jsx)(k.Z,{variant:"h2",fontSize:24,id:z,children:z})})}),(0,i.jsx)(h.Z,{relatedArticles:e.item.properties.articles,ai:!0})]}):(0,i.jsx)(g.Z,{cmsContentId:e.item.id,autoAi:!0,makeModel:e.item.properties.makeModel,refObject:I,index:r,sektion:t},r)},r)})}),e.children&&0!==e.children.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Z,{make:O,models:e.children}),null===(D=e.item.properties)||void 0===D?void 0:null===(P=D.sektioner)||void 0===P?void 0:P.items.filter((e,t)=>0!=t).map((t,r)=>(0,i.jsx)(g.Z,{autoAi:!0,makeModel:e.item.properties.makeModel,refObject:I,index:r,sektion:t},r))]})]}),!E&&(0,i.jsxs)(i.Fragment,{children:[(null===(_=e.item.properties)||void 0===_?void 0:_.articles)&&(0,i.jsx)(o.Z,{padding:1,marginBottom:2,bgcolor:a.w.White,children:(0,i.jsx)(b.Z,{style:{padding:0},children:(0,i.jsx)(k.Z,{variant:"h2",fontSize:24,id:z,children:z})})}),(0,i.jsx)(h.Z,{relatedArticles:e.item.properties.articles,ai:!0})]}),(0,i.jsx)(o.Z,{padding:1,bgcolor:a.w.White,"data-sentry-element":"Box","data-sentry-source-file":"[...slug].tsx",children:(0,i.jsxs)(b.Z,{style:{padding:0},"data-sentry-element":"Container","data-sentry-source-file":"[...slug].tsx",children:[(0,i.jsx)(v.ZP,{container:!0,"data-sentry-element":"Grid","data-sentry-source-file":"[...slug].tsx",children:(0,i.jsx)(v.ZP,{item:!0,xs:12,sm:6,"data-sentry-element":"Grid","data-sentry-source-file":"[...slug].tsx",children:(0,i.jsx)(k.Z,{variant:"body1","data-sentry-element":"Typography","data-sentry-source-file":"[...slug].tsx",children:"Hvis du skal ud at investere i en ny bil, er det en god id\xe9 at dobbelttjekke oplysningerne fra denne side, da specifikationerne kan variere p\xe5 de enkelte varianter der s\xe6lges i Danmark. Bilhandel kan ikke holdes ansvarlig for rigtigheden af indholdet. Oplysningerne p\xe5 denne side er baseret p\xe5 en r\xe6kke forskellige kilder, som kan v\xe6re ufuldst\xe6ndige, og der kan derfor forekomme ukorrekt information."})})}),(0,i.jsxs)(k.Z,{variant:"body1",marginTop:1,"data-sentry-element":"Typography","data-sentry-source-file":"[...slug].tsx",children:["Oprettet"," ",new Date(e.item.createDate).toLocaleDateString("da",{month:"2-digit",day:"2-digit",year:"numeric",minute:"2-digit",hour:"2-digit",second:"2-digit"})]}),(0,i.jsxs)(k.Z,{variant:"body1","data-sentry-element":"Typography","data-sentry-source-file":"[...slug].tsx",children:["Opdateret"," ",new Date(e.item.updateDate).toLocaleDateString("da",{month:"2-digit",day:"2-digit",year:"numeric",minute:"2-digit",hour:"2-digit",second:"2-digit"})]})]})})]})}},26921:function(e,t,r){"use strict";r.d(t,{D:function(){return u}});var i=r(85893),n=r(29138),a=r(4452),s=r(59058),l=r(30120),o=r(78016),d=r(43150),c=r(41664),m=r.n(c);r(67294);var p=r(2041);let u=e=>(0,n.useScreenSizeContext)().isMobile?(0,i.jsx)(x,{hideLogo:e.hideLogo,aiSeo:e.aiSeo,largeImage:e.imageUrl.split("?")[0]+"?height=300&mode=crop&scale=both&quality=20"}):(0,i.jsx)(h,{makeModelVariantOption:e.makeModelVariantOption,hideLogo:e.hideLogo,aiSeo:e.aiSeo,largeImage:e.imageUrl.split("?")[0]+"?height=500&mode=crop&scale=both&quality=70"}),x=e=>{let{logo:t,name:r}=(0,n.useSiteSettingContext)();return(0,i.jsx)(l.Z,{"data-sentry-element":"Box","data-sentry-component":"TopBarMobile","data-sentry-source-file":"cms-top-bar.tsx",children:(0,i.jsxs)(l.Z,{height:300,width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",sx:{backgroundImage:"url('".concat(e.largeImage,"')"),backgroundSize:"cover",backgroundPosition:"center"},"data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx",children:[(0,i.jsx)(l.Z,{height:"100%",width:"100%",position:"absolute",style:{background:"linear-gradient(".concat(a.w.LightBlue,", ").concat(a.w.Primary,")"),opacity:.6},"data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx"}),(0,i.jsx)(l.Z,{paddingX:"8px",paddingTop:3,"data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx",children:!0!==e.hideLogo&&(0,i.jsx)(m(),{href:"/",children:(0,i.jsx)(l.Z,{sx:s.Rx,display:"flex",flexDirection:"row",children:(0,i.jsx)(d.Z,{priority:!0,loading:"eager",src:t.src,alt:r,width:136,height:20,style:{zIndex:1e3}})})})}),(0,i.jsx)(l.Z,{display:"flex",height:"100%",alignItems:"center","data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx",children:(0,i.jsx)(l.Z,{width:"100%",paddingX:2,"data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx"})})]})})},h=e=>{let{logo:t,name:r}=(0,n.useSiteSettingContext)();return(0,i.jsxs)(l.Z,{display:"flex",height:500,width:"100%",position:"relative",sx:{backgroundImage:"url('".concat(e.largeImage,"')"),backgroundSize:"cover",backgroundPosition:"center"},"data-sentry-element":"Box","data-sentry-component":"TopBarDesktop","data-sentry-source-file":"cms-top-bar.tsx",children:[(0,i.jsx)(l.Z,{height:"100%",width:"100%",position:"absolute",style:{background:"linear-gradient(".concat(a.w.LightBlue,", ").concat(a.w.Primary,")"),opacity:.6},"data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx"}),(0,i.jsx)(o.Z,{"data-sentry-element":"Container","data-sentry-source-file":"cms-top-bar.tsx",children:(0,i.jsxs)(l.Z,{height:450,display:"flex",flexDirection:"column",justifyContent:"space-between","data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx",children:[(0,i.jsx)(l.Z,{paddingTop:3,display:"flex",flexDirection:"row",justifyContent:"space-between","data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx",children:!0!==e.hideLogo&&(0,i.jsx)(m(),{href:"/",children:(0,i.jsx)(l.Z,{sx:s.Rx,alignItems:"center",display:"flex",flexDirection:"row",children:(0,i.jsx)(d.Z,{priority:!0,loading:"eager",src:t.src,alt:r,width:149,height:45,style:{zIndex:1e3}})})})}),(0,i.jsx)(l.Z,{"data-sentry-element":"Box","data-sentry-source-file":"cms-top-bar.tsx",children:e.aiSeo&&(0,i.jsx)(p.E,{makeModelVariantOption:e.makeModelVariantOption,aiSeo:!0})})]})})]})}}},function(e){e.O(0,[2196,1293,9932,9296,8176,5168,611,8860,3853,8801,1168,6016,5824,8464,4505,9711,6931,521,6028,9774,2888,179],function(){return e(e.s=57932)}),_N_E=e.O()}]);