PageSourceSearch

https://www.o-velmar.gr/_next/static/chunks/07d62a9d669eb52b.js

js o-velmar.gr collected 2026-09-27 03:00:54 UTC 67,710 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,389080,e=>{"use strict";var t=e.i(843476),a=e.i(811703),l=e.i(988805);e.i(154520);var s=e.i(113745),r=e.i(763371),n=e.i(757512),i=e.i(945060),o=e.i(33336),d=e.i(288083),c=e.i(890289);let x={single:{width:1920,height:800,className:"h-auto w-full object-cover"},splitDesktop:{width:1920,height:800,className:"hidden h-auto w-full object-cover md:block"},splitMobile:{width:768,height:600,className:"h-auto w-full object-cover md:hidden"},videoDesktopSlotClassName:"hidden aspect-1920/800 w-full overflow-hidden md:block",videoMobileSlotClassName:"aspect-768/1266 w-full overflow-hidden md:hidden",videoBreakpointPx:768,videoFallbackDesktop:{width:1920,height:800,className:"hidden h-auto w-full object-cover md:block"},videoFallbackMobile:{width:768,height:600,className:"h-auto w-full object-cover md:hidden"}},h=e=>`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none"><path d="M9.00001 0.599976C13.6392 0.599976 17.4 4.36078 17.4 8.99998C17.4 13.6392 13.6392 17.4 9.00001 17.4C4.36081 17.4 0.600006 13.6392 0.600006 8.99998C0.600006 4.36078 4.36081 0.599976 9.00001 0.599976ZM9.00001 1.31998C4.75846 1.31998 1.32001 4.75843 1.32001 8.99998C1.32001 13.2415 4.75846 16.68 9.00001 16.68C11.0369 16.68 12.9903 15.8708 14.4306 14.4306C15.8709 12.9903 16.68 11.0368 16.68 8.99998C16.68 4.75843 13.2416 1.31998 9.00001 1.31998ZM9.56641 7.02957V13.8816H8.41921V7.02957H9.56641ZM9.62641 4.03198V5.29678H8.36161V4.03198H9.62641Z" fill="${e}"/></svg>`;function m(e){var m,u;let{item:p,index:b,isAdmin:f}=e,{isDarkText:v,isCustomPosition:j,positionClasses:g,textAlignClass:w,buttonJustifyClass:N,mobileJustifyClass:C,hasImageLink:k,isFirstSlide:y,hasPrimaryBtn:L,hasSecondaryBtn:T,tooltipIconColor:S,onReplace:M,desktopIsVideo:B,mobileIsVideo:H,desktopUrl:F,mobileUrl:V,alt:P,videoAlt:Z,mobilePoster:E,mobileMediaUrl:_}=(0,d.useBannerSlideContent)({item:p,index:b,isAdmin:f}),I=v?"text-(--brand-text)":"text-white",$=v?"text-(--brand-text)":"text-white/90",D=(0,r.useBasePath)(),z=(0,t.jsx)(o.BannerSlideMedia,{item:p,isFirstSlide:y,desktopIsVideo:B,mobileIsVideo:H,desktopUrl:F,mobileUrl:V,mobileMediaUrl:_,alt:P,videoAlt:Z,mobilePoster:E,config:x}),O=function(){let{fullWidth:e=!1,forOverlay:l=!1,justify:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!L&&!T)return null;let r=!!p.darkModeCta&&l;return(0,t.jsxs)("div",{className:(0,i.cn)("mt-5 flex gap-3",e?"flex-col":"flex-wrap",s||"",k&&l?"pointer-events-auto":""),children:[L&&(0,t.jsx)(a.CmsButton,{variant:p.buttonType,href:p.buttonUrl,target:p.newWindow?"_blank":void 0,rel:p.newWindow?"noopener noreferrer":void 0,className:e?"w-full":void 0,children:p.buttonText}),T&&(0,t.jsx)(a.CmsButton,{variant:p.buttonTypeSecondary,inverse:r,href:p.buttonUrlSecondary,target:p.newWindowSecondary?"_blank":void 0,rel:p.newWindowSecondary?"noopener noreferrer":void 0,className:e?"w-full":void 0,children:p.buttonTextSecondary})]})};return(0,t.jsxs)("div",{className:"w-full bg-white",children:[(0,t.jsxs)("div",{className:"relative",children:[k?(0,t.jsx)("a",{href:(0,n.resolveCmsHref)(p.buttonUrl??"",D),className:"block",children:z}):z,f&&(0,t.jsx)(s.ImageUploadOverlay,{slots:[{kind:"desktop",width:1920,height:800,currentUrl:null==(m=p.image)?void 0:m.imageUrl},{kind:"mobile",width:390,height:610,currentUrl:null==(u=p.mobileImage)?void 0:u.imageUrl}],onReplace:M,corner:"bottom-left"}),p.gradientEnabled&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden lg:block",style:{background:d.BANNER_GRADIENT}}),(0,t.jsx)("div",{className:(0,i.cn)("absolute inset-0 z-[1] hidden lg:block",j?"":"p-[80px] lg:flex",j?"":g,w,k?"pointer-events-none":""),children:(0,t.jsxs)("div",{style:j?{position:"absolute",left:`${p.positionX}%`,top:`${p.positionY}%`}:void 0,children:[p.headline&&(0,t.jsx)(l.Text,{variant:"spwBannerHeadline",className:I,html:(0,c.appendTooltip)(p.headline,h(S),p.headlineTooltip)}),p.text&&(0,t.jsx)(l.Text,{variant:"labelMedium3",as:"div",className:(0,i.cn)("mt-3",$),html:(0,c.appendTooltip)(p.text,h(S),p.textTooltip)}),O({forOverlay:!0,justify:N})]})}),(0,t.jsxs)("div",{className:(0,i.cn)("absolute inset-0 z-[1] flex flex-col space-y-3 px-4 pt-6 pb-16 text-left md:hidden",C,k?"pointer-events-none":""),children:[p.headlineMobile&&(0,t.jsx)(l.Text,{variant:"spwBannerHeadline",className:I,html:(0,c.appendTooltip)(p.headlineMobile,h(S),p.headlineMobileTooltip??void 0)}),p.textMobile&&(0,t.jsx)(l.Text,{variant:"labelMedium3",as:"div",className:$,html:(0,c.appendTooltip)(p.textMobile,h(S),p.textTooltip)}),O({fullWidth:!0,forOverlay:!0})]})]}),(0,t.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,t.jsxs)("div",{className:(0,i.cn)("space-y-2 px-6 py-4",w),children:[p.headline&&(0,t.jsx)(l.Text,{variant:"spwBannerHeadline",className:"text-black",html:(0,c.appendTooltip)(p.headline,h(S),p.headlineTooltip)}),p.text&&(0,t.jsx)(l.Text,{variant:"labelMedium3",as:"div",className:"text-black",html:(0,c.appendTooltip)(p.text,h(S),p.textTooltip)}),O({justify:N})]})})]})}var u=e.i(614865),p=e.i(505364),b=e.i(574689);function f(e){let{items:a,isAdmin:s}=e;return(0,t.jsx)(u.BannerSliderShell,{items:a,isAdmin:s,navigation:{prevEl:".opel-banner-prev",nextEl:".opel-banner-next"},initVideosOnSwiper:!0,renderSlide:(e,a)=>(0,t.jsx)(m,{item:e,index:a,isAdmin:s}),prevButtonClassName:"opel-banner-prev absolute left-5 z-10 hidden -translate-y-1/2 cursor-pointer md:top-1/3 md:block lg:top-1/2",nextButtonClassName:"opel-banner-next absolute right-5 z-10 hidden -translate-y-1/2 cursor-pointer md:top-1/3 md:block lg:top-1/2",prevArrow:(0,t.jsx)(b.SliderPrevArrow,{}),nextArrow:(0,t.jsx)(b.SliderNextArrow,{}),renderIndicators:e=>{let{sortedItems:a,activeIndex:l,goToSlide:s,singleSlide:r,isActiveVideo:n,isPlaying:i,progress:o,toggleAutoplay:d}=e;return(0,t.jsx)("div",{className:"absolute bottom-6 left-1/2 z-10 -translate-x-1/2",children:(0,t.jsxs)("div",{className:"flex h-[30px] items-center justify-center gap-2 rounded-[30px] bg-black/40 pr-[10px] pl-[15px]",children:[!r&&a.map((e,a)=>{let r=l===a,i=r?n?100*o:100:0;return(0,t.jsx)("button",{type:"button",onClick:()=>s(a),"aria-label":`Ugr\xe1s a ${a+1}. di\xe1ra`,"aria-current":r?"true":void 0,className:"relative h-[3px] w-8 cursor-pointer overflow-hidden rounded-[2px] bg-white/50",children:(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 bg-white",style:{width:`${i}%`}})},a)}),(0,t.jsx)(p.BannerVideoPlaybackControl,{isActiveVideo:n,isPlaying:i,toggleAutoplay:d})]})})},renderLegalNote:(e,a)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Text,{variant:"footnote",as:"div",className:"hidden bg-(--background) px-20 py-10 text-(--brand-text-light) lg:block",html:e||""}),(0,t.jsx)(l.Text,{variant:"footnote",as:"div",className:"hidden bg-(--background) px-10 py-5 text-(--brand-text-light) md:block lg:hidden",html:e||""}),(0,t.jsx)(l.Text,{variant:"footnote",as:"div",className:"bg-(--background) px-4 py-4 text-(--brand-text-light) md:hidden",html:a||e||""})]})})}e.s(["OpelBannerSlider",()=>f],389080)},861685,e=>{"use strict";var t=e.i(843476),a=e.i(522016),l=e.i(988805),s=e.i(800505),r=e.i(823995),n=e.i(945060),i=e.i(763371),o=e.i(757512);function d(e){let{className:a="h-14 w-auto"}=e;return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 58 56",fill:"none",className:a,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M57.0149 31.3333L2
16.0718 27.9733L17.5946 32.3935C17.5921 32.3944 17.59 32.3959 17.5884 32.3981C17.5869 32.4002 17.5861 32.4027 17.5861 32.4054C17.5861 32.408 17.5869 32.4105 17.5884 32.4126C17.59 32.4148 17.5921 32.4164 17.5946 32.4172H54.9777L57.0136 31.3544C57.0155 31.3534 57.0171 31.3519 57.0182 31.3502C57.0194 31.3484 57.02 31.3463 57.0202 31.3442C57.0203 31.3421 57.0199 31.34 57.019 31.338C57.018 31.3361 57.0166 31.3345 57.0149 31.3333Z",fill:"black"}),(0,t.jsx)("path",{d:"M28.9925 11.8092C33.2809 11.8092 37.3937 13.5127 40.4262 16.5449C43.4587 19.5772 45.1625 23.6898 45.1628 27.9783C45.1628 28.252 45.1566 28.5233 45.1429 28.7946L46.3873 28.929C46.4048 28.6146 46.4135 28.2977 46.4135 27.9783C46.4083 23.8617 44.9457 19.8799 42.2848 16.7388C39.624 13.5978 35.9369 11.5004 31.8771 10.8185C27.8174 10.1366 23.6474 10.9143 20.1063 13.0136C16.5653 15.113 13.882 18.3984 12.5322 22.2874H13.86C15.0185 19.2099 17.0874 16.5585 19.7909 14.6865C22.4944 12.8145 25.7041 11.8108 28.9925 11.8092Z",fill:"black"}),(0,t.jsx)("path",{d:"M28.9925 44.1486C24.704 44.1482 20.5914 42.4444 17.5591 39.412C14.5269 36.3795 12.8234 32.2667 12.8234 27.9783C12.8234 27.7032 12.8309 27.4307 12.8445 27.1582L11.6001 27.0238C11.5827 27.3399 11.574 27.658 11.574 27.9783C11.5783 32.0958 13.0409 36.0787 15.7022 39.2206C18.3635 42.3625 22.0516 44.4602 26.1123 45.1418C30.1731 45.8234 34.344 45.0447 37.8853 42.9438C41.4265 40.843 44.1093 37.5558 45.4577 33.6654H44.1286C42.9707 36.7444 40.9017 39.3973 38.1974 41.2703C35.4931 43.1432 32.282 44.1473 28.9925 44.1486Z",fill:"black"}),(0,t.jsx)("path",{d:"M31.9144 27.9745L40.3853 23.5568C40.3878 23.556 40.39 23.5544 40.3915 23.5522C40.3931 23.5501 40.3939 23.5476 40.3939 23.5449C40.3939 23.5423 40.3931 23.5398 40.3915 23.5377C40.39 23.5355 40.3878 23.5339 40.3853 23.5331H3.00221L0.967544 24.5959C0.965055 24.5967 0.962883 24.5983 0.961347 24.6004C0.95981 24.6025 0.958984 24.6051 0.958984 24.6077C0.958984 24.6103 0.95981 24.6129 0.961347 24.615C0.962883 24.6171 0.965055 24.6187 0.967544 24.6195L31.9144 27.9745Z",fill:"black"})]})}function c(e){let{className:a="w-8 h-8"}=e;return(0,t.jsx)("svg",{viewBox:"0 0 32 32",className:a,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M26.5599 9H5.43994V8H26.5599V9ZM26.5599 23.08H5.43994V24.08H26.5599V23.08ZM26.5599 15.48H5.43994V16.48H26.5599V15.48Z",fill:"#333333"})})}function x(e){let{className:a="w-8 h-8"}=e;return(0,t.jsxs)("svg",{viewBox:"0 0 32 32",className:a,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,t.jsx)("line",{x1:"8",y1:"8",x2:"24",y2:"24",stroke:"black",strokeWidth:"2"}),(0,t.jsx)("line",{x1:"24",y1:"8",x2:"8",y2:"24",stroke:"black",strokeWidth:"2"})]})}function h(e){let{className:a="w-8 h-8"}=e;return(0,t.jsxs)("svg",{viewBox:"0 0 32 32",className:a,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,t.jsx)("g",{clipPath:"url(#opel-header-location-clip)",children:(0,t.jsx)("path",{d:"M16.0001 6.43004C17.8026 6.42286 19.5345 7.13095 20.8156 8.399C22.0968 9.66704 22.8227 11.3915 22.8341 13.194C22.8341 16.827 19.0781 21.905 16.3341 25.613L16.0001 26.067L15.6641 25.613C12.9221 21.905 9.16405 16.827 9.16405 13.194C9.17543 11.3911 9.90159 9.66639 11.1832 8.39829C12.4648 7.13019 14.1971 6.42232 16.0001 6.43004ZM16.0001 5.47004C13.9429 5.46286 11.9669 6.2721 10.5057 7.72018C9.04446 9.16826 8.21743 11.1369 8.20605 13.194C8.20605 17.664 13.0061 23.572 16.0001 27.694C18.9891 23.575 23.7941 17.667 23.7941 13.194C23.7843 11.1364 22.9577 9.16684 21.4962 7.71842C20.0346 6.27 18.0577 5.46127 16.0001 5.47004ZM16.0001 11.63C16.3481 11.63 16.6884 11.7333 16.9779 11.9267C17.2673 12.12 17.4929 12.3949 17.6261 12.7165C17.7593 13.0381 17.7941 13.392 17.7262 13.7334C17.6583 14.0748 17.4907 14.3884 17.2446 14.6346C16.9984 14.8807 16.6848 15.0483 16.3434 15.1162C16.002 15.1841 15.6481 15.1493 15.3265 15.0161C15.0049 14.8829 14.7301 14.6573 14.5367 14.3678C14.3433 14.0784 14.2401 13.7381 14.2401 13.39C14.2403 12.9233 14.4258 12.4758 14.7558 12.1458C15.0858 11.8158 15.5334 11.6303 16.0001 11.63ZM16.0001 10.67C15.4621 10.67 14.9362 10.8296 14.4889 11.1284C14.0416 11.4273 13.693 11.8521 13.4871 12.3491C13.2812 12.8462 13.2274 13.3931 13.3323 13.9207C13.4373 14.4483 13.6963 14.933 14.0767 15.3134C14.4571 15.6938 14.9418 15.9528 15.4694 16.
10578C15.997 16.1627 16.5439 16.1089 17.041 15.903C17.538 15.6971 17.9628 15.3485 18.2617 14.9012C18.5605 14.4539 18.7201 13.928 18.7201 13.39C18.7201 12.6687 18.4335 11.9768 17.9234 11.4667C17.4133 10.9566 16.7214 10.67 16.0001 10.67Z",fill:"black"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"opel-header-location-clip",children:(0,t.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})}function m(e){let{className:a="w-8 h-8"}=e;return(0,t.jsx)("svg",{viewBox:"0 0 32 32",className:a,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M16 5.76001C13.9747 5.76001 11.9949 6.36058 10.311 7.48576C8.62702 8.61095 7.31453 10.2102 6.53949 12.0813C5.76445 13.9524 5.56166 16.0114 5.95677 17.9977C6.35189 19.9841 7.32715 21.8087 8.75924 23.2408C10.1913 24.6729 12.0159 25.6481 14.0023 26.0433C15.9887 26.4384 18.0476 26.2356 19.9187 25.4605C21.7898 24.6855 23.3891 23.373 24.5143 21.689C25.6394 20.0051 26.24 18.0253 26.24 16C26.24 13.2842 25.1612 10.6796 23.2408 8.75924C21.3204 6.83886 18.7158 5.76001 16 5.76001ZM16.48 25.27V23.47H15.48V25.27C13.1878 25.1496 11.0213 24.1849 9.39821 22.5618C7.77513 20.9387 6.8104 18.7722 6.69001 16.48H8.49001V15.48H6.73001C6.8504 13.1878 7.81513 11.0213 9.43821 9.3982C11.0613 7.77512 13.2278 6.81039 15.52 6.69001V8.49001H16.52V6.73001C18.8122 6.85039 20.9787 7.81512 22.6018 9.4382C24.2249 11.0613 25.1896 13.2278 25.31 15.52H23.51V16.52H25.31C25.1896 18.8122 24.2249 20.9787 22.6018 22.6018C20.9787 24.2249 18.8122 25.1896 16.52 25.31M16.68 15.78L21 20.06L20.09 20.97L15.39 16.26V11.55H16.67L16.68 15.78Z",fill:"#292B35"})})}function u(e){let{className:a="w-8 h-8"}=e;return(0,t.jsx)("svg",{viewBox:"-5 -5 32 32",className:a,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5.09417 1.32L7.96417 6.02L5.24417 8.02C5.72967 9.97589 6.72717 11.7672 8.13418 13.21C9.56767 14.6073 11.3495 15.5949 13.2942 16.07L15.2942 13.34L20.0042 16.23L18.1642 19.28C17.9645 19.6081 17.6841 19.8796 17.3497 20.0686C17.0154 20.2577 16.6383 20.358 16.2542 20.36H16.0342C13.6842 20.11 8.92418 19.2 5.51417 15.79C2.10417 12.38 1.20417 7.65 0.964175 5.29C0.922751 4.87011 1.0013 4.44707 1.1907 4.07004C1.38011 3.69301 1.67259 3.37744 2.03417 3.16L5.09417 1.32ZM5.41417 0L4.59417 0.5L1.59418 2.34C1.0656 2.64283 0.635469 3.09154 0.355262 3.63245C0.0750536 4.17336 -0.0433655 4.78355 0.0141747 5.39C0.274175 7.99 1.25417 12.88 4.83417 16.46C8.41418 20.04 13.3242 21.04 15.9342 21.31H16.2642C16.8141 21.308 17.3541 21.1643 17.8323 20.8928C18.3105 20.6213 18.7106 20.2311 18.9942 19.76L20.8342 16.73L21.3242 15.92L20.5142 15.42L15.8342 12.53L15.0842 12.08L14.5542 12.78L12.9542 14.96C11.4019 14.5064 9.9863 13.6749 8.83418 12.54C7.68913 11.3788 6.84768 9.95353 6.38417 8.39L8.55418 6.79L9.26418 6.27L8.83418 5.52L5.96417 0.82L5.41417 0Z",fill:"black"})})}function p(e){let{className:a="w-6 h-6"}=e;return(0,t.jsx)("svg",{viewBox:"0 0 32 32",className:a,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M18.2 16L13.5 20.7L14.3 21.5L19.8 16L14.3 10.5L13.5 11.3L18.2 16Z",fill:"black"})})}function b(e){let{className:a="w-8 h-8"}=e;return(0,t.jsx)("svg",{viewBox:"0 0 32 32",className:a,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M20 6L10 16L20 26",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function f(e){let{items:a,className:s}=e;return(0,t.jsx)("ul",{className:(0,n.cn)("m-0 flex list-none items-center p-0",s),children:a.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(l.Text,{as:"a",variant:"label2",href:e.url,className:"text-black hover:text-[#333]",children:e.label})},`${e.label}-${e.url}`))})}let v=e=>{var t;return!!(null==(t=e.children)?void 0:t.length)};function j(e){let{dealerName:j,dealerAddress:g,mobileHeaderAddress:w,locationUrl:N,dealerPhone1:C,navigation:k,brandLogoLink:y,brandLogoLinkOpenInNewWindow:L,openClosedText:T,languageItems:S,consumerRightsLink:M,labels:B}=e,{isMenuOpen:H,selectedParent:F,mobileSubmenu:V,menuRef:P,menuToggleRef:Z,mobileMenuRef:E,toggleMenu:_,closeMenu:I,setSelectedParent:$,setMobileSubmenu:D}=(0,s.useHeaderMenu)(),z=(0,i.useBasePath)(),O=(0,o.resolveCmsHref)(N??"/kapcsolat",z),A=y?(0,o.resolveCmsHref)(y,z):(0,o.withBasePath)("/",z);return(0,t.jsxs)("header",{ref:P,className:"relative z-3000 w-full bg-white",children:[(0,t.jsxs)("div",{className:"hidden min-h-[72px] flex-row items-center px-20 max-md:px-6 md:flex",children:[(0,t.jsxs)("div",{className:"flex w-full max-w-[50%] flex-[0_1_auto] items-center gap-10",children:[(0,t.jsx)("button",{ref:Z,onClick:_,className:"flex shrink-0 cursor-pointer items-center","aria-label":"Menü megnyitása","aria-expanded":H,"aria-controls":"desktop-menu-panel",children:(0,t.jsx)(c,{})}),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(l.Text,{variant:"bold2",as:"span",className:"truncate text-black",children:j}),g&&(0,t.jsx)(l.Text,{variant:"bold2",as:"span",className:"truncate text-[#787878]",children:g})]})]}),(0,t.jsx)("div",{className:"flex flex-[0_0_auto] items-center",children:y?(0,t.jsx)("a",{href:A,"aria-label":"Főoldal",...L?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,t.jsx)(d,{className:"h-14 w-auto"})}):(0,t.jsx)(a.default,{href:A,"aria-label":"Főoldal",children:(0,t.jsx)(d,{className:"h-14 w-auto"})})}),(0,t.jsxs)("div",{className:"flex w-full max-w-[50%] flex-[0_1_auto] items-center justify-end text-black",children:[M&&(0,t.jsx)(l.Text,{as:"a",variant:"label3",href:M.href,target:"_blank",rel:"noopener noreferrer",className:"flex min-h-14 items-center pr-10 hover:text-[#333]",children:M.label}),(0,t.jsxs)(a.default,{href:O,className:"flex min-h-14 cursor-pointer items-center gap-2 pr-10 hover:text-[#333]",children:[(0,t.jsx)(h,{className:"h-8 w-8 shrink-0"}),(0,t.jsx)(l.Text,{variant:"label3",as:"span",className:"max-md:hidden",children:B.callBack})]}),C&&(0,t.jsxs)("a",{href:`tel:${C}`,className:"flex min-h-14 cursor-pointer items-center gap-2 pr-10 hover:text-[#333]","aria-label":`H\xedv\xe1s: ${C}`,children:[(0,t.jsx)(u,{className:"h-8 w-8 shrink-0"}),(0,t.jsx)(l.Text,{variant:"label3",as:"span",className:"max-md:hidden",children:C})]}),T&&(0,t.jsxs)("div",{className:"flex min-h-14 items-center gap-2 pr-5",children:[(0,t.jsx)(m,{className:"h-8 w-8 shrink-0"}),(0,t.jsx)(l.Text,{variant:"label3",as:"span",children:T})]}),S.length>0&&(0,t.jsx)(f,{items:S,className:"min-h-14 gap-3 pl-5"})]})]}),H&&(0,t.jsxs)("div",{id:"desktop-menu-panel",className:"absolute top-[72px] left-0 z-50 hidden min-w-[400px] bg-white shadow-lg md:flex",role:"region","aria-label":"Főmenü",children:[(0,t.jsx)("nav",{className:"w-[400px] shrink-0 px-20 py-10",children:(0,t.jsx)("ul",{className:"m-0 flex max-w-60 list-none flex-col gap-5 p-0",children:k.map(e=>{let a=(null==F?void 0:F.id)===e.id;return(0,t.jsx)("li",{onMouseEnter:()=>$(v(e)?e:null),className:"flex min-h-[52px] items-center border-b border-[#787878] pb-5",children:v(e)?(0,t.jsxs)("button",{onClick:()=>$(a?null:e),"aria-expanded":a,"aria-controls":`submenu-${e.id}`,className:(0,n.cn)("flex w-full cursor-pointer items-center transition-colors",a?"text-[#034D70]":"text-black hover:text-[#333]"),children:[(0,t.jsx)(l.Text,{variant:"bodyLarge",as:"span",className:"flex-1 text-left",html:e.label}),(0,t.jsx)(p,{className:"h-8 w-8 shrink-0"})]}):(0,t.jsx)(r.NavLink,{item:e,onClick:I,className:"flex w-full items-center text-black transition-colors hover:text-[#333]",children:(0,t.jsx)(l.Text,{variant:"bodyLarge",as:"span",html:e.label})})},e.id)})})}),(null==F?void 0:F.children)&&(0,t.jsx)("div",{id:`submenu-${F.id}`,role:"region","aria-label":`${F.label} almen\xfc`,className:"-ml-20 w-[400px] bg-white px-20 py-10",children:(0,t.jsx)("ul",{className:"m-0 flex max-w-60 list-none flex-col gap-5 p-0",children:F.children.map(e=>(0,t.jsx)("li",{className:"flex min-h-[52px] items-center pb-5",children:(0,t.jsx)(r.NavLink,{item:e,onClick:I,className:"flex w-full items-center text-black transition-colors hover:text-[#333]",children:(0,t.jsx)(l.Text,{variant:"label2",as:"span",html:e.label})})},e.id))})})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-4 border-b border-[#
1EEEEEE] px-4 py-6 md:hidden",children:[y?(0,t.jsx)("a",{href:A,className:"flex shrink-0 items-center","aria-label":"Főoldal",...L?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,t.jsx)(d,{className:"h-14 w-14"})}):(0,t.jsx)(a.default,{href:A,className:"flex shrink-0 items-center","aria-label":"Főoldal",children:(0,t.jsx)(d,{className:"h-14 w-14"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col justify-center gap-1",children:[(0,t.jsx)(l.Text,{variant:"bold2",as:"span",className:"truncate text-black",children:j}),w&&(0,t.jsx)(l.Text,{variant:"label3",as:"span",className:"truncate text-[#787878]",children:w})]}),M&&(0,t.jsx)(l.Text,{as:"a",variant:"label3",href:M.href,target:"_blank",rel:"noopener noreferrer",className:"ml-auto max-w-[45%] text-right text-black hover:text-[#333]",children:M.label})]}),(0,t.jsxs)("div",{className:"flex min-h-[56px] md:hidden",children:[(0,t.jsx)("button",{onClick:_,className:"flex basis-[17%] cursor-pointer items-center justify-center border-r border-[#EEEEEE]","aria-label":"Menü megnyitása","aria-expanded":H,"aria-controls":"mobile-menu-overlay",children:(0,t.jsx)(c,{className:"h-8 w-8"})}),(0,t.jsxs)("div",{className:"flex flex-1",children:[(0,t.jsx)(a.default,{href:O,className:"flex flex-1 items-center justify-center border-r border-[#EEEEEE]","aria-label":B.callBack,children:(0,t.jsx)(h,{className:"h-6 w-6"})}),C&&(0,t.jsx)("a",{href:`tel:${C}`,className:"flex flex-1 items-center justify-center","aria-label":`H\xedv\xe1s: ${C}`,children:(0,t.jsx)(u,{className:"h-6 w-6"})})]})]}),H&&(0,t.jsxs)("div",{ref:E,id:"mobile-menu-overlay",role:"dialog","aria-modal":"true","aria-label":"Navigációs menü",className:"fixed inset-0 z-50 overflow-y-auto bg-white md:hidden",children:[(0,t.jsxs)("div",{className:"flex min-h-10 items-center justify-between px-4",children:[S.length>0?(0,t.jsx)(f,{items:S,className:"max-h-10 gap-6"}):(0,t.jsx)("div",{}),(0,t.jsx)("button",{onClick:I,className:"flex h-8 w-8 cursor-pointer items-center justify-center","aria-label":"Menü bezárása",children:(0,t.jsx)(x,{})})]}),T&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 pb-4",children:[(0,t.jsx)(m,{className:"h-8 w-8"}),(0,t.jsx)(l.Text,{variant:"label3",as:"span",children:T})]}),V?(0,t.jsxs)("div",{className:"bg-white",children:[(0,t.jsxs)("button",{onClick:()=>D(null),className:"flex min-h-[74px] w-full cursor-pointer items-center border-b border-[#BDBDBD] px-4","aria-label":`Vissza a főmen\xfcbe - ${V.label}`,children:[(0,t.jsx)(b,{className:"mr-4 h-8 w-8 shrink-0"}),(0,t.jsx)(l.Text,{variant:"title4",as:"span",className:"text-black",html:V.label})]}),(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col p-0",children:V.children.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(r.NavLink,{item:e,onClick:I,className:"flex min-h-16 items-center justify-between px-4",children:[(0,t.jsx)(l.Text,{variant:"title4",as:"span",className:"text-black",html:e.label}),(0,t.jsx)(p,{className:"mr-6 h-8 w-8 shrink-0"})]})},e.id))})]}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col p-0",children:k.map(e=>(0,t.jsx)("li",{className:"flex min-h-[76px] items-center",children:v(e)?(0,t.jsxs)("button",{onClick:()=>D(e),className:"flex w-full cursor-pointer items-center justify-between px-4 py-5 text-left","aria-expanded":!1,children:[(0,t.jsx)(l.Text,{variant:"title4",as:"span",className:"text-black",html:e.label}),(0,t.jsx)(p,{className:"h-8 w-8 shrink-0"})]}):(0,t.jsxs)(r.NavLink,{item:e,onClick:I,className:"flex w-full items-center justify-between px-4 py-5",children:[(0,t.jsx)(l.Text,{variant:"title4",as:"span",className:"text-black",html:e.label}),(0,t.jsx)(p,{className:"h-8 w-8 shrink-0"})]})},e.id))})]})]})}e.s(["OpelHeaderClient",()=>j])},479593,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(657688),s=e.i(988805),r=e.i(659544),n=e.i(811703),i=e.i(945060);function o(){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,t.jsx)("path",{d:"M11.2599 5.66998L14.1299 10.37L11.4099 12.37C11.8954 14.3259 12.8929 16.1172 14.2999 17.56C15.7334 18.9573 17.5153 19.9449 19.4599 20.42L21.4599 17.69L26.1699 20.58L24.3299 23.63C24.1302 23.958 23.8499 24.2295 23.5155 24.4186C23.1812 24.6076 22.804 24.7079 22.4199 24.71H22.1999C19.8499 24.46 15.0899 23.55 11.6799 20.14C8.26995 16.73 7.36995 12 7.12995 9.63998C7.08852 9.22008 7.16707 8.79705 7.35648 8.42002C7.54588 8.04298 7.83836 7.72742 8.19995 7.50998L11.2599 5.66998ZM11.5799 4.34998L10.7599 4.84998L7.75995 6.68998C7.23137 6.9928 6.80124 7.44152 6.52103 7.98242C6.24083 8.52333 6.12241 9.13352 6.17995 9.73998C6.43995 12.34 7.41995 17.23 10.9999 20.81C14.5799 24.39 19.4899 25.39 22.0999 25.66H22.4299C22.9798 25.6579 23.5199 25.5143 23.9981 25.2428C24.4763 24.9713 24.8764 24.5811 25.1599 24.11L26.9999 21.08L27.4899 20.27L26.6799 19.77L21.9999 16.88L21.2499 16.43L20.7199 17.13L19.1199 19.31C17.5677 18.8564 16.1521 18.0249 14.9999 16.89C13.8549 15.7288 13.0135 14.3035 12.5499 12.74L14.7199 11.14L15.4299 10.62L14.9999 9.86998L12.1299 5.16998L11.5799 4.34998Z",fill:"#292B35"})})}function d(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_teams_fax)",children:[(0,t.jsx)("path",{d:"M10 6H6.66667C5.19391 6 4 7.19391 4 8.66667V28.6667C4 30.1395 5.19391 31.3333 6.66667 31.3333H10C11.4728 31.3333 12.6667 30.1395 12.6667 28.6667V8.66667C12.6667 7.19391 11.4728 6 10 6Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M12.6667 10H30.0001C30.3537 10 30.6929 10.1405 30.9429 10.3905C31.1929 10.6406 31.3334 10.9797 31.3334 11.3333V27.3333C31.3334 27.6869 31.1929 28.0261 30.9429 28.2761C30.6929 28.5261 30.3537 28.6667 30.0001 28.6667H12.6667",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M4.00008 28.6667H2.00008C1.64645 28.6667 1.30732 28.5261 1.05727 28.2761C0.807224 28.0261 0.666748 27.6869 0.666748 27.3333V11.3333C0.666748 10.9797 0.807224 10.6406 1.05727 10.3905C1.30732 10.1405 1.64645 10 2.00008 10H4.00008",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M27.3334 12.6667C27.3334 13.0203 27.1929 13.3595 26.9429 13.6095C26.6929 13.8595 26.3537 14 26.0001 14H18.0001C17.6465 14 17.3073 13.8595 17.0573 13.6095C16.8073 13.3595 16.6667 13.0203 16.6667 12.6667V10H27.3334V12.6667Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M6.66675 5.99996V2.66663",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M15.3333 7.33329V1.99996C15.3333 1.64633 15.4738 1.3072 15.7238 1.05715C1
15.9738 0.807102 16.313 0.666626 16.6666 0.666626H24.8666C25.1674 0.66837 25.4587 0.771745 25.6933 0.959959L28.1599 2.93329C28.3206 3.06024 28.4499 3.22249 28.5378 3.40748C28.6257 3.59245 28.6698 3.7952 28.6666 3.99996V7.33329",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M19.3333 3.33337H22.6666",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M19.3333 6H24.6666",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_teams_fax",children:(0,t.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})}function c(){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"35",viewBox:"0 0 30 35",fill:"none",children:(0,t.jsx)("path",{d:"M22.0324 20.7466C26.187 21.0447 29.4073 24.6095 29.4 28.9024V34.2999H0.59998V28.9024C0.595449 24.6086 3.81734 21.0446 7.97278 20.7466C9.91971 22.1139 12.22 22.8472 14.5758 22.8517H15.4241C17.7814 22.8463 20.0831 22.1131 22.0324 20.7466ZM22.4147 22.4361C20.3129 23.7701 17.8924 24.4747 15.4241 24.4709H14.5758C12.1077 24.4738 9.68738 23.7693 7.58529 22.4361C4.47553 22.919 2.17463 25.6715 2.17089 28.9132V32.6915H27.829V28.9132C27.8253 25.6715 25.5244 22.919 22.4147 22.4361ZM16.0001 0.699951C19.6151 0.699951 22.5456 3.72068 22.5456 7.44694V11.2738C22.5511 13.0675 21.8641 14.7897 20.6362 16.0605C19.4082 17.3314 17.7402 18.0464 16.0001 18.0478H13.9998C10.3861 18.0448 7.45727 15.0258 7.45438 11.3008V7.44694C7.45438 3.72068 10.3849 0.699951 13.9998 0.699951H16.0001ZM16.0001 2.31923H13.9998C11.2537 2.3222 9.02817 4.61622 9.02528 7.44694V11.2738C9.02817 14.1046 11.2537 16.3986 13.9998 16.4015H16.0001C18.7463 16.3986 20.9718 14.1046 20.9747 11.2738V7.44694C20.9718 4.61622 18.7463 2.3222 16.0001 2.31923Z",fill:"black"})})}function x(e){var a;let{member:i,labels:x}=e;return(0,t.jsx)("div",{className:"box-border flex w-[308px] justify-center gap-4 roun
1ded-2xl bg-white p-4",children:(0,t.jsxs)("div",{className:"flex w-full flex-col items-start gap-2 bg-white text-left",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col items-start gap-2 bg-white text-left",children:[(null==(a=i.avatar)?void 0:a.url)?(0,t.jsx)(l.default,{src:i.avatar.url,alt:i.avatar.alt??`${i.firstName} ${i.lastName}`,title:i.avatar.tooltip,width:276,height:212,className:"max-h-[212px] w-full max-w-[276px] rounded-lg object-cover"}):(0,t.jsx)("div",{className:"flex h-[212px] w-[276px] items-center justify-center bg-neutral-50",children:(0,t.jsx)(c,{})}),(0,t.jsxs)(s.Text,{variant:"label1",children:[i.firstName," ",i.lastName]}),(0,t.jsx)(s.Text,{variant:"label2",children:i.role}),i.salesmanUrl&&(0,t.jsx)(n.CmsButton,{variant:"primary",href:i.salesmanUrl,children:(null==x?void 0:x.contact)??"Kapcsolatfelvétel"}),i.phone&&(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(o,{}),(0,t.jsx)("a",{href:`tel:${i.phone}`,className:"text-[#292b35] no-underline",children:(0,t.jsx)(s.Text,{variant:"label3",as:"span",children:i.phone})})]}),i.phoneMobile&&(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(o,{}),(0,t.jsx)("a",{href:`tel:${i.phoneMobile}`,className:"text-[#292b35] no-underline",children:(0,t.jsx)(s.Text,{variant:"label3",as:"span",children:i.phoneMobile})})]}),i.phoneFax&&(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(d,{}),(0,t.jsx)(s.Text,{variant:"label3",as:"span",className:"text-[#292b35]",children:i.phoneFax})]})]}),i.email&&(0,t.jsx)("div",{className:"mt-2 flex h-full w-full items-end justify-end",children:(0,t.jsx)(r.Button,{variant:"primary",inverse:!0,href:`mailto:${i.email}`,children:(null==x?void 0:x.email)??"Email"})})]})})}function h(e){let{members:a,labels:l}=e,s=[...a].sort((e,t)=>(e.position??0)-(t.position??0));return(0,t.jsx)("div",{className:"flex w-full flex-col items-center justify-start gap-4 max-md:items-center",children:(0,t.jsx)("div",{className:"flex w-full max-w-[1280px] flex-row flex-wrap justify-center gap-4",children:s.map((e,a)=>(0,t.jsx)(x,{member:e,labels:l},a))})})}function m(e){let{data:l,labels:r}=e,[n,o]=(0,a.useState)(0),[d,c]=(0,a.useState)(!1),{title:x,subtitle:m,memberGroups:u}=l,p=(0,a.useMemo)(()=>[...u].sort((e,t)=>e.position-t.position).filter(e=>e.members.length>0),[u]);return((0,a.useEffect)(()=>{let e=()=>{let e=window.location.hash;if(!e)return;let t=decodeURIComponent(e),a=p.findIndex(e=>"#"+e.anchor===t);if(-1!==a){var l;o(a),null==(l=document.querySelector(t))||l.scrollIntoView({behavior:"smooth"})}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[p]),0===p.length)?null:p.length<=1?(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1280px] flex-col items-center max-sm:bg-white",children:[(0,t.jsxs)("div",{className:"max-sm:flex max-sm:w-full max-sm:flex-col max-sm:bg-neutral-200",children:[x&&(0,t.jsx)(s.Text,{variant:"title1",className:"text-left max-sm:text-center",children:x}),m&&(0,t.jsx)(s.Text,{variant:"title2",className:"text-center text-neutral-400",children:m})]}),p.map((e,a)=>(0,t.jsx)(h,{members:e.members,labels:r},a))]}):(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1280px] flex-col items-center max-sm:bg-white",children:[(0,t.jsxs)("div",{className:"max-sm:flex max-sm:w-full max-sm:flex-col max-sm:bg-neutral-200",children:[x&&(0,t.jsx)(s.Text,{variant:"title1",className:"text-left max-sm:text-center",children:x}),m&&(0,t.jsx)(s.Text,{variant:"title2",className:"text-center text-neutral-400",children:m})]}),(0,t.jsxs)("div",{className:"relative mx-auto my-5 flex flex-wrap justify-center gap-[19px] rounded-[30px] bg-[#F3F3F3] p-2 max-sm:w-full max-sm:flex-col max-sm:gap-0",children:[p.map((e,a)=>{let l=n===a;return(0,t.jsx)("div",{id:e.anchor||void 0,"data-active":l?"true":void 0,"data-open":d?"true":void 0,className:(0,i.cn)("max-sm:hidden max-sm:data-[active]:block max-sm:data-[open]:block",l?"max-sm:order-first":"max-sm:order-last"),children:(0,t.jsx)("button",{type:"button",onClick:()=>
1{if(l)c(e=>!e);else{let t=window.location.href.split("#")[0];window.history.replaceState(null,"",e.anchor?t+"#"+e.anchor:t),o(a),c(!1)}},className:(0,i.cn)("w-full cursor-pointer rounded-3xl px-5 whitespace-nowrap transition-colors max-sm:px-4 max-sm:py-2.5",l?"bg-white text-[#034D70] shadow-[0_2px_4px_0_rgba(17,29,34,0.08),0_4px_12px_0_rgba(17,29,34,0.12)]":"text-black"),children:(0,t.jsx)(s.Text,{variant:"label2",as:"span",children:e.name})})},a)}),(0,t.jsx)("button",{type:"button","aria-label":"Toggle category menu",onClick:()=>c(e=>!e),className:"absolute bottom-0 left-1/2 hidden -translate-x-1/2 cursor-pointer max-sm:block",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",className:(0,i.cn)("transition-transform duration-300",d?"rotate-0":"rotate-180"),children:(0,t.jsx)("path",{d:"M16.5 13.6L21.2 18.3L22 17.5L16.5 12L11 17.5L11.8 18.3L16.5 13.6Z",fill:"#333333"})})})]}),p[n]&&(0,t.jsx)(h,{members:p[n].members,labels:r})]})}e.s(["OpelTeamsClient",()=>m])},508522,e=>{"use strict";var t=e.i(843476),a=e.i(67073);let l={dropdownIndicator:e=>({...e,cursor:"pointer",padding:0,color:"#787878"}),indicatorSeparator:e=>({...e,display:"none"}),placeholder:e=>({...e,color:"black",fontSize:16,fontWeight:400,lineHeight:"150%"}),option:(e,t)=>({...e,borderRadius:0,cursor:"pointer",backgroundColor:t.isSelected?"#000000":"white",fontFamily:t.isSelected?"var(--brand-font-heading)":"var(--brand-font-body)",color:t.isDisabled?"#bdbdbd":t.isSelected?"white":"#000000",padding:"12px 16px","&:hover":{backgroundColor:t.isSelected?"#333333":"#F9F9F9",color:t.isSelected?"white":"#000000"}}),control:e=>({...e,borderRadius:6,height:46,cursor:"pointer",fontSize:16,fontWeight:"normal",lineHeight:"150%",padding:"7px 8px 7px 16px",color:"hsl(0,0%,0%)",boxShadow:"unset",border:"1px solid #bdbdbd","&:hover":{borderColor:"#bdbdbd"}}),menuList:e=>({...e,paddingTop:0,paddingBottom:0}),menu:e=>({...e,marginTop:0,borderRadius:6,zIndex:50}),valueContainer:e=>({...e,paddingLeft:0}),singleValue:e=>({...e,marginLeft:0,color:"#4D4D4D"})};function s(e){return(0,t.jsx)(a.Select,{...e,customStyles:l})}e.s(["OpelSelect",()=>s])},496315,e=>{"use strict";var t=e.i(843476),a=e.i(988805),l=e.i(142517),s=e.i(508522),r=e.i(317613);function n(e){return(0,t.jsx)(r.PriceRangeInput,{...e,inputClassName:"rounded-md border-[#bdbdbd] focus:border-[#131313] text-[#4D4D4D] placeholder:text-right"})}function i(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:[(0,t.jsx)("path",{d:"M13.9351 0.142273L14.6422 0.84938L1.20718 14.2844L0.500074 13.5773L13.9351 0.142273Z",fill:"#131313"}),(0,t.jsx)("path",{d:"M14.6421 13.5773L13.935 14.2844L0.5 0.849409L1.20711 0.142302L14.6421 13.5773Z",fill:"#131313"})]})}function o(e){let{onReset:l,label:s}=e;return(0,t.jsxs)("button",{type:"button",onClick:l,className:"flex items-center gap-2.5 text-[#131313] hover:cursor-pointer",children:[(0,t.jsx)(i,{}),(0,t.jsx)(a.Text,{variant:"label2",as:"p",className:"m-0",children:s})]})}function d(e){let{data:a,labels:r}=e;return(0,t.jsx)(l.CarSearchForm,{data:a,labels:r,SelectComponent:s.OpelSelect,PriceRangeComponent:n,className:"box-border min-h-[140px] px-4 py-4 md:px-10 md:py-10 lg:px-20 lg:py-10",titleVariant:"title1",gridClassName:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-[repeat(auto-fit,minmax(160px,1fr))] w-[95%] mx-auto mb-4",buttonClassName:"flex items-end mt-6",renderResetButton:e=>(0,t.jsx)(o,{onReset:e,label:r.resetAll})})}e.s(["OpelCarSearchForm",()=>d],496315)},929456,e=>{"use strict";var t=e.i(843476),a=e.i(657688),l=e.i(578463),s=e.i(763371),r=e.i(757512);function n(e){let{item:n}=e,{extension:i,href:o,handleClick:d}=(0,l.useDownloadLink)(n),c=(0,s.useBasePath)();return(0,t.jsxs)("a",{href:o,onClick:d,style:{display:"flex",flexFlow:"row nowrap",cursor:"pointer",textDecoration:"unset",color:"unset"},children:[(0,t.jsxs)("div",{style:{position:"relative",marginRight:12},children:[(0,t.jsx)("div",{style:{position:"absolute",top:11,left:4,fontSize:8,fontWeight:"bold",cursor:"pointer",color:"white"},children:i}),(0,t.jsx)(a.default,{src:(0,r.withBasePath)("/icons/extension.svg",c),alt:i,width:32,height:32})]}),(0,t.jsx)("span",{style:{fontSize:16,fontStyle:"normal",fontWeight:400,lineHeight:"150%",padding:0},children:n.title})]})}e.s(["OpelDownloadLink",()=>n])},637553,e=>{"use strict";var t=e.i(843476);let a=(0,e.i(770703).default)(()=>e.A(775848).then(e=>({default:e.OpelFinanceCalculator})),{loadableGenerated:{modules:[848825]},ssr:!1,loading:()=>(0,t.jsxs)("div",{className:"mx-auto max-w-[1000px] animate-pulse px-5 py-10",children:[(0,t.jsx)("div",{className:"bg-brand-surface mb-8 h-7 w-48 rounded"}),[0,1].map(e=>(0,t.jsxs)("div",{className:"mb-8 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("div",{className:"bg-brand-surface h-4 w-24 rounded"}),(0,t.jsx)("div",{className:"bg-brand-surface h-4 w-20 rounded"})]}),(0,t.jsx)("div",{className:"bg-brand-surface h-2 w-full rounded-full"})]},e)),(0,t.jsx)("div",{className:"mt-5 flex justify-end",children:(0,t.jsx)("div",{className:"bg-brand-surface h-10 w-40 rounded-full"})})]})});function l(e){return(0,t.jsx)(a,{...e})}e.s(["OpelFinanceCalculatorClient",()=>l])},314292,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(657688),s=e.i(811703),r=e.i(988805),n=e.i(508522),i=e.i(945060);function o(e){let{checked:a,onChange:l,label:s}=e;return(0,t.jsxs)("label",{className:"flex cursor-pointer items-center gap-3",children:[(0,t.jsxs)("span",{className:"relative flex h-[30px] w-[30px] shrink-0 items-center justify-center",children:[(0,t.jsx)("input",{type:"checkbox",checked:a,onChange:e=>l(e.target.checked),className:"absolute inset-0 cursor-pointer opacity-0"}),(0,t.jsx)("span",{className:(0,i.cn)("flex h-full w-full items-center justify-center transition-colors duration-200",a?"border-transparent bg-(--brand-accent)":"border border-black bg-transparent"),children:(0,t.jsx)("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,i.cn)("transition-opacity duration-200",a?"opacity-100":"opacity-0"),children:(0,t.jsx)("path",{d:"M5.6 8.6L1.4 4.4L0 5.8L5.6 11.4L16 1L14.6 -0.4L5.6 8.6Z",fill:"black"})})})]}),s&&(0,t.jsx)("span",{className:"typo-brand-label3",children:s})]})}var d=e.i(408847),c=e.i(896508);function x(e){let{filterDefinition:a,filterSettings:l,filters:n,basePath:d,currencyCode:x,priceDefaults:f,extraButtonSettings:v,labels:j}=e,{isPending:g,isVisible:w,setIsVisible:N,handleSelectChange:C,handleRangeCommit:k,handleStringChange:y,handleCheckboxChange:L,handleColorChange:T,handleClearAll:S,visibleSelects:M,visibleRanges:B,yearSetting:H,yearVisible:F,yearMin:V,yearMax:P,discountSetting:Z,zipCodeSetting:E,identifierSetting:_,colorVisible:I}=(0,c.useStockListFilters)({filterDefinition:a,filterSettings:l,filters:n,basePath:d,currencyCode:x,priceDefaults:f,labels:j});return(0,t.jsxs)("aside",{className:(0,i.cn)("box-border flex min-w-[397px] flex-col gap-4 self-start rounded-2xl bg-(--brand-bg) p-4 text-(--brand-text) shadow-[0px_4px_12px_0px_rgba(17,29,34,0.12),0px_2px_4px_0px_rgba(17,29,34,0.08)] transition-opacity max-md:w-full max-md:min-w-0",g?"opacity-60":""),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(r.Text,{variant:"title4",as:"h2",children:j.searchRefine}),(0,t.jsx)("button",{onClick:()=>N(!w),className:"hidden h-7 w-7 cursor-pointer items-center justify-center max-md:flex","aria-label":w?j.hideFilters:j.showFilters,children:(0,t.jsx)("svg",{className:(0,i.cn)("h-4 w-4 transition-transform",w?"rotate-180":""),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})})]}),(0,t.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-4",w?"":"max-md:hidden"),children:[M.map(e=>{let l=a[e.optionsKey],s=n[e.filterStateKey],r=e.showZeroMatchingValues?[...l].sort((e,t)=>
1t.count-e.count):l;return(0,t.jsx)("div",{style:{order:e.order},children:(0,t.jsx)(h,{label:e.label,options:r,selectedIds:s,showZeroMatchingValues:e.showZeroMatchingValues,onChange:t=>C(e.paramKey,e.filterStateKey,t)})},e.settingsKey)}),B.map(e=>(0,t.jsx)("div",{style:{order:e.order},children:(0,t.jsx)(u,{label:e.label,initialFrom:n[e.fromStateKey],initialTo:n[e.toStateKey],min:e.min,max:e.max,unit:e.unit,onCommit:(t,a)=>k(e.fromParam,e.toParam,e.fromStateKey,e.toStateKey,t,a)})},e.settingsKey)),F&&(0,t.jsx)("div",{style:{order:H.order},children:(0,t.jsx)(m,{label:j.year,fromLabel:j.from,toLabel:j.to,min:V,max:P,fromValue:n.yearFrom,toValue:n.yearTo,onCommit:(e,t)=>k("yearFrom","yearTo","yearFrom","yearTo",e,t)})}),(null==Z?void 0:Z.visible)&&(0,t.jsx)("div",{className:"mb-5 flex items-center justify-between",style:{order:Z.order},children:(0,t.jsx)(o,{checked:n.discountPrice,onChange:e=>L("discountPrice","discountPrice",e),label:j.discountPrice})}),(null==E?void 0:E.visible)&&(0,t.jsx)("div",{style:{order:E.order},children:(0,t.jsx)(p,{label:j.zipCode,value:n.zipCode??"",type:E.type??"text",onChange:e=>y("zipCode","zipCode",e)})}),(null==_?void 0:_.visible)&&(0,t.jsx)("div",{style:{order:_.order},children:(0,t.jsx)(p,{label:j.identifier,value:n.identifier??"",type:"text",onChange:e=>y("identifier","identifier",e)})}),I&&(0,t.jsx)("div",{style:{order:999},children:(0,t.jsx)(b,{label:j.color,options:a.colorOptions,selectedIds:n.colorIds,onChange:T})}),(0,t.jsx)("div",{className:"flex",style:{order:1e3},children:(0,t.jsx)("button",{onClick:S,className:"relative cursor-pointer pl-6 text-(--brand-text) before:absolute before:top-1 before:left-[6px] before:h-[17px] before:w-px before:rotate-45 before:bg-(--brand-text) before:content-[''] after:absolute after:top-1 after:left-[6px] after:h-[17px] after:w-px after:-rotate-45 after:bg-(--brand-text) after:content-['']",children:(0,t.jsx)(r.Text,{variant:"label3",as:"span",children:j.resetAll})})}),(null==v?void 0:v.showButton)&&(0,t.jsx)("div",{style:{order:1001},children:(0,t.jsx)(s.CmsButton,{variant:"primary",href:v.buttonTarget,target:v.newTab?"_blank":"_self",children:v.buttonText})})]})]})}function h(e){let{label:a,options:l,selectedIds:s,showZeroMatchingValues:r,onChange:i}=e,o=(0,d.mapFilterOptions)(l);return(0,t.jsx)(n.OpelSelect,{label:a,options:o,value:s.length>0?s[0]:void 0,onChange:e=>i(void 0!==e?[e]:[]),isOptionDisabled:e=>r&&0!==e.id&&0===e.count,formatOptionLabel:e=>r&&e.count>0?(0,t.jsxs)(t.Fragment,{children:[e.name," (",e.count,")"]}):(0,t.jsx)(t.Fragment,{children:e.name}),isModified:s.length>0})}function m(e){let{label:a,fromLabel:l,toLabel:s,min:i,max:o,fromValue:d,toValue:c,onCommit:x}=e,h=[];for(let e=o;e>=i;e--)h.push({id:e,name:String(e)});return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(r.Text,{variant:"label3",as:"label",className:"text-(--brand-text)",children:a}),(0,t.jsxs)("div",{className:"flex items-center gap-5",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(n.OpelSelect,{placeholder:l,options:h,value:d??void 0,onChange:e=>x(e??null,c),isModified:null!==d})}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(n.OpelSelect,{placeholder:s,options:h,value:c??void 0,onChange:e=>x(d,e??null),isModified:null!==c})})]})]})}function u(e){let{label:l,initialFrom:s,initialTo:n,min:i,max:o,unit:d,onCommit:c}=e,[x,h]=(0,a.useState)(null!==s?String(s):""),[m,u]=(0,a.useState)(null!==n?String(n):""),p=(e,t)=>{let a=""===e?null:Number(e),l=""===t?null:Number(t);c(null===a||isNaN(a)?null:a,null===l||isNaN(l)?null:l)};return(0,t.jsxs)("div",{children:[(0,t.jsx)(r.Text,{variant:"label3",as:"label",className:"mb-2 block text-(--brand-text)",children:l}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-1 rounded-(--brand-input-radius,6px) border border-(--brand-input-border) bg-(--brand-bg) px-3 py-3 focus-within:border-(--brand-input-border-focus)",children:[(0,t.jsx)("input",{type:"number",value:x,placeholder:String(i),min:i,max:o,onChange:e=>h(e.target.value),onBlur:()=>p(x,m),className:"typo-brand-input-text w-full min-w-0 bg-transparent text-right text-(--brand-input-color) focus:outline-none"}),(0,t.jsx)(r.Text,{variant:"footnote",as:"span",className:"shrink-0 text-(--brand-text-light)",children:d})]}),(0,t.jsx)("span",{className:"text-(--brand-text-light)",children:"-"}),(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-1 rounded-(--brand-input-radius,6px) border border-(--brand-input-border) bg-(--brand-bg) px-3 py-3 focus-within:border-(--brand-input-border-focus)",children:[(0,t.jsx)("input",{type:"number",value:m,placeholder:String(o),min:i,max:o,onChange:e=>u(e.target.value),onBlur:()=>p(x,m),className:"typo-brand-input-text w-full min-w-0 bg-transparent text-right text-(--brand-input-color) focus:outline-none"}),(0,t.jsx)(r.Text,{variant:"footnote",as:"span",className:"shrink-0 text-(--brand-text-light)",children:d})]})]})]})}function p(e){let{label:l,value:s,type:n,onChange:o}=e,[d,c]=(0,a.useState)(s),x=(0,a.useRef)(null),h=""!==d,m=(0,a.useCallback)(e=>{x.current&&clearTimeout(x.current),e!==s&&o(e)},[o,s]);return(0,a.useEffect)(()=>()=>{x.current&&clearTimeout(x.current)},[]),(0,t.jsxs)("div",{children:[(0,t.jsx)(r.Text,{variant:"label3",as:"label",className:"mb-1 block text-(--brand-text)",children:l}),(0,t.jsx)("input",{type:n,value:d,placeholder:l,onChange:e=>{let t=e.target.value;c(t),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>m(t),500)},onBlur:()=>m(d),onKeyDown:e=>{"Enter"===e.key&&m(d)},className:(0,i.cn)("typo-brand-input-text w-full rounded-(--brand-input-radius,6px) border bg-(--brand-bg) px-4 py-3 text-(--brand-input-color) placeholder:text-(--brand-input-color) focus:border-(--brand-input-border-focus) focus:outline-none",h?"border-(--brand-input-border-focus)":"border-(--brand-input-border)")})]})}function b(e){let{label:a,options:s,selectedIds:n,onChange:o}=e;return(0,t.jsxs)("div",{children:[(0,t.jsx)(r.Text,{variant:"label3",as:"label",className:"mb-3 block text-(--brand-text)",children:a}),(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(40px,1fr))] gap-2",children:s.map(e=>{let a=n.includes(e.id);return(0,t.jsxs)("button",{onClick:()=>{var t;return t=e.id,void(n.includes(t)?o(n.filter(e=>e!==t)):o([...n,t]))},title:`${e.title} (${e.count})`,className:(0,i.cn)("relative h-10 w-10 overflow-hidden rounded-full border-2 transition-all",a?"border-black":"border-transparent hover:border-black"),children:[e.url?(0,t.jsx)(l.default,{src:e.url,alt:e.title,width:40,height:40,className:"h-full w-full rounded-full object-cover"}):(0,t.jsx)("div",{className:"h-full w-full rounded-full bg-(--brand-border-strong)"}),a&&(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M5.6 8.6L1.4 4.4L0 5.8L5.6 11.4L16 1L14.6 -0.4L5.6 8.6Z",fill:"white"})})})]},e.id)})})]})}e.s(["OpelStocklistFilterPanel",()=>x],314292)},399925,e=>{"use strict";var t=e.i(843476),a=e.i(988805),l=e.i(945060),s=e.i(186662);function r(e){let r,{showCounter:n,labels:i,vehicleCount:o,orderSettings:d,currentSort:c}=e,{isPending:x,handleChange:h}
1=(0,s.useStockListCountAndSort)(e);return(0,t.jsxs)("div",{className:(0,l.cn)("box-border flex w-full items-center bg-(--brand-surface) max-sm:flex-col max-sm:gap-4",n?"justify-between":"justify-end"),children:[n&&(0,t.jsx)(a.Text,{variant:"label2",as:"div",className:"flex items-center gap-1 text-(--brand-text)",children:(r=i.resultsCount.split("${num}"),(0,t.jsxs)(t.Fragment,{children:[r[0],(0,t.jsx)(a.Text,{variant:"bold1",as:"span",children:o}),r[1]]}))}),d&&d.orderSettings.length>0&&(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{value:c,onChange:h,disabled:x,className:"typo-brand-input-text min-w-[250px] cursor-pointer appearance-none rounded-(--brand-input-radius,6px) border border-(--brand-input-border) bg-(--brand-bg) px-4 py-3 pr-10 text-(--brand-input-color) focus:border-(--brand-input-border-focus) focus:outline-none disabled:opacity-50",children:d.orderSettings.map(e=>(0,t.jsx)("option",{value:e.orderLabel,children:i.sortLabels[e.orderLabel]??e.orderLabel},e.orderLabel))}),(0,t.jsx)("svg",{className:"pointer-events-none absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 text-(--brand-text-light)",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]})]})}e.s(["OpelStocklistCountAndSort",()=>r])},275639,e=>{"use strict";var t=e.i(843476),a=e.i(22905),l=e.i(639057),s=e.i(917798),r=e.i(440444);function n(e){let{categories:n,initialCategory:i,basePath:o,moreInfoLabel:d,isAdmin:c,brand:x}=e,{track:h}=(0,l.useTracking)(),{selectedAlias:m,setSelectedAlias:u,filteredItems:p}=(0,r.useShowroomCategorySelector)(n,i);return(0,t.jsxs)("section",{className:"mx-auto max-w-[1440px] pb-20",children:[(0,t.jsx)(s.PillTabs,{className:"pb-8",tabs:n.map(e=>({key:String(e.id),label:e.name,active:e.alias===m,onClick:()=>{u(e.alias),h("showroom.list.tabSwitch",{tabTitle:e.name})}}))}),(0,t.jsx)("div",{className:"mt-[30px] grid grid-cols-1 gap-[30px] px-5 max-sm:px-0 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:p.map(e=>(0,t.jsx)(a.ShowroomCard,{item:e,basePath:o,moreInfoLabel:d,isAdmin:c,brand:x},e.id))})]})}e.s(["OpelShowroomGridClient",()=>n])},242490,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(770703),s=e.i(657688),r=e.i(980401),n=e.i(579053),i=e.i(945060),o=e.i(763371),d=e.i(757512);let c=(0,l.default)(()=>e.A(469937).then(e=>({default:e.StockImageGalleryModal})),{loadableGenerated:{modules:[789600]},ssr:!1});function x(){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M19.32 25.262L20.141 24.441L11.781 16.091L20.041 7.821L19.22 7L10.139 16.091L19.32 25.262Z",fill:"currentColor"})})}function h(){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12.7 7L11.9 7.8L20.3 16.2L12 24.4L12.8 25.2L21.9 16.1L12.7 7Z",fill:"currentColor"})})}function m(e){let{images:l,title:m,modelType:u,price:p,dealer:b,labels:f,reservedVehicle:v}=e,[j,g]=(0,a.useState)(!1),[w,N]=(0,a.useState)(0),C=(0,o.useBasePath)();if(0===l.length)return(0,t.jsx)(s.default,{src:(0,d.withBasePath)("/images/no-image-placeholder.png",C),alt:m,width:640,height:480,className:"h-[300px] w-full rounded-2xl bg-(--brand-surface) object-contain"});let k=l.length>1;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"stock-details-slider relative w-full overflow-hidden select-none",children:[(0,t.jsx)(r.Swiper,{modules:[n.Navigation],navigation:!!k&&{prevEl:".stock-slider-prev",nextEl:".stock-slider-next"},loop:k,slidesPerView:1,className:"w-full",children:l.map((e,a)=>(0,t.jsx)(r.SwiperSlide,{children:(0,t.jsx)(s.default,{src:e.url,alt:e.alt??`${m} - k\xe9p ${a+1}`,width:1200,height:600,sizes:"(max-width: 768px) 100vw, (max-width: 1280px) 80vw, 1200px",className:(0,i.cn)("h-auto max-h-[600px] w-full cursor-pointer object-cover",v&&"opacity-60"),loading:0===a?"eager":"lazy",onClick:()=>{N(a),g(!0)}})},a))}),k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:"stock-slider-prev absolute top-1/2 left-3 z-10 flex h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full bg-(--brand-bg) text-(--brand-text) shadow-md transition-colors hover:bg-(--brand-accent)","aria-label":(null==f?void 0:f.previousImage)??"Előző kép",children:(0,t.jsx)(x,{})}),(0,t.jsx)("button",{type:"button",className:"stock-slider-next absolute top-1/2 right-3 z-10 flex h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full bg-(--brand-bg) text-(--brand-text) shadow-md transition-colors hover:bg-(--brand-accent)","aria-label":(null==f?void 0:f.nextImage)??"Következő kép",children:(0,t.jsx)(h,{})})]})]}),j&&(0,t.jsx)(c,{images:l,title:m,modelType:u,price:p,dealer:b,initialSlideIndex:w,onClose:()=>g(!1),labels:{callDealer:(null==f?void 0:f.callDealer)??"Hívás",previousImage:(null==f?void 0:f.previousImage)??"Előző kép",nextImage:(null==f?void 0:f.nextImage)??"Következő kép"}})]})}
1e.s(["StockDetailsImageSlider",()=>m],242490)},102592,e=>{"use strict";var t=e.i(843476),a=e.i(639057),l=e.i(591003),s=e.i(945060),r=e.i(281571);function n(e){let{title:n,trackTitle:i,defaultOpen:o=!1,children:d,variant:c="card"}=e,{track:x}=(0,a.useTracking)(),{open:h,toggle:m}=(0,l.useAccordion)(o);return(0,t.jsxs)("div",{className:"card"===c?"flex flex-col gap-2 rounded-2xl bg-(--brand-bg) p-4":"flex flex-col gap-2",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{m(),h||x("vacs.details.content.tabSwitch",{tabTitle:i??("string"==typeof n?n:"")})},className:(0,s.cn)("flex cursor-pointer items-center justify-between text-(--brand-text)",h?"border-b border-(--brand-border) pb-2":""),"aria-expanded":h,children:[n,(0,t.jsx)(r.PlusMinusIcon,{open:h})]}),h&&d]})}e.s(["StockDetailsAccordion",()=>n])},319327,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(659544),s=e.i(988805),r=e.i(639057),n=e.i(657688),i=e.i(653145),o=e.i(945060),d=e.i(763371),c=e.i(757512);function x(e){let{onDealerSelect:r,selectedDealerId:n,labels:i,advancedSetting:x}=e,[h,m]=(0,a.useState)(""),[u,p]=(0,a.useState)([]),[b,f]=(0,a.useState)(!1),[v,j]=(0,a.useState)(null),[g,w]=(0,a.useState)(0),[N,C]=(0,a.useState)(!1),k=(0,d.useBasePath)(),y=async()=>{if(h.trim()){f(!0),j(null),w(0);try{let e=await fetch((0,c.withBasePath)(`/api/stock/dealers?location=${encodeURIComponent(h.trim())}&advancedSetting=${encodeURIComponent(x)}`,k));if(!e.ok)throw Error(i.dealerSearchFailed);let t=await e.json();p(t),C(!0)}catch{j(i.dealerLoadFailed),p([])}finally{f(!1)}}},L=Math.ceil(u.length/6),T=u.slice(6*g,(g+1)*6);return(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(s.Text,{variant:"bold1",className:"m-0! text-(--brand-text)",children:i.dealerSearch}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{type:"text",value:h,onChange:e=>m(e.target.value),onKeyDown:e=>{"Enter"===e.key&&y()},placeholder:i.dealerSearchPlaceholder,className:"typo-brand-input-text flex-1 rounded-lg border border-(--brand-border) bg-(--brand-bg) px-4 py-2.5 text-(--brand-text) outline-none placeholder:text-(--brand-text)/50 focus:border-(--brand-accent)"}),(0,t.jsx)(l.Button,{variant:"primary",onClick:y,disabled:b||!h.trim(),children:b?"...":i.dealerSearchButton})]}),v&&(0,t.jsx)(s.Text,{variant:"label3",as:"p",className:"text-red-600",children:v}),N&&0===u.length&&!b&&!v&&(0,t.jsx)(s.Text,{variant:"label3",as:"p",className:"text-(--brand-text) opacity-60",children:i.dealerNotFound}),T.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-2",children:T.map(e=>{let a=e.id===n;return(0,t.jsxs)("button",{type:"button",onClick:()=>r(e),className:(0,o.cn)("flex cursor-pointer flex-col gap-0.5 rounded-xl border p-3 text-left transition-colors",a?"border-(--brand-accent) bg-(--brand-accent)/5":"border-(--brand-border) bg-(--brand-bg) hover:border-(--brand-accent)"),children:[(0,t.jsx)(s.Text,{variant:"bold2",as:"span",className:"text-(--brand-text)",children:e.companyName||e.title}),(0,t.jsxs)(s.Text,{variant:"footnote",as:"span",className:"text-(--brand-text) opacity-70",children:[e.mainZipCode," ",e.mainTown,", ",e.mainAddress]}),e.phone1&&(0,t.jsx)(s.Text,{variant:"footnote",as:"span",className:"text-(--brand-text) opacity-60",children:e.phone1})]},e.id)})}),L>1&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>w(e=>Math.max(0,e-1)),disabled:0===g,className:"cursor-pointer rounded px-3 py-1 hover:bg-(--brand-surface) disabled:cursor-not-allowed disabled:opacity-40",children:(0,t.jsxs)(s.Text,{variant:"label3",as:"span",className:"text-(--brand-text)",children:["‹ ",i.previous]})}),(0,t.jsxs)(s.Text,{variant:"label3",as:"span",className:"text-(--brand-text) opacity-60",children:[g+1," / ",L]}),(0,t.jsx)("button",{type:"button",onClick:()=>w(e=>Math.min(L-1,e+1)),disabled:g>=L-1,className:"cursor-pointer rounded px-3 py-1 hover:bg-(--brand-surface) disabled:cursor-not-allowed disabled:opacity-40",children:(0,t.jsxs)(s.Text,{variant:"label3",as:"span",className:"text-(--brand-text)",children:[i.nextPage," ›"]}
1)})]})]})}var h=e.i(856984);function m(e){var o,d,c,m;let{vehicleId:f,vehicleTitle:v,vehicleImage:j,vehiclePrice:g,displayDealerLocator:w,defaultLocationId:N,onClose:C,labels:k,advancedSetting:y}=e,{track:L}=(0,r.useTracking)(),[T,S]=(0,a.useState)(w?"dealer":"form"),[M,B]=(0,a.useState)(null),[H,F]=(0,a.useState)(N),{register:V,handleSubmit:P,getValues:Z,formState:{errors:E}}=(0,i.useForm)({defaultValues:{firstName:"",lastName:"",email:"",phone:""}}),_=async()=>{let e=Z();L("ga.reservation.started",{label:v});try{await (0,h.submitWebform)("CONTACT_STOCK",{vehicleId:f,locationId:H,firstName:e.firstName,lastName:e.lastName,email:e.email,phone:e.phone||void 0,message:k.reservationMessage}),L("ga.vacs.details.contactForm.submit",{interestedInContact:null,conditionType:"NEW",isNSM:!1,carline:v}),S("success")}catch{S("error")}};return(0,t.jsx)("div",{className:"fixed inset-0 z-9998 flex items-center justify-center bg-black/50",children:(0,t.jsxs)("div",{className:"relative mx-4 flex max-h-[90vh] w-full max-w-lg flex-col overflow-y-auto rounded-2xl bg-(--brand-bg) p-6 shadow-xl",children:[(0,t.jsx)("button",{type:"button",onClick:C,className:"absolute top-4 right-4 cursor-pointer text-2xl leading-none text-(--brand-text) opacity-50 hover:opacity-100","aria-label":k.close,children:"×"}),(0,t.jsx)(s.Text,{variant:"sectionHeading",as:"h2",className:"mb-4 text-(--brand-text)",children:k.reservationTitle}),"dealer"===T&&(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(x,{onDealerSelect:e=>{B(e),F(e.id)},selectedDealerId:null==M?void 0:M.id,advancedSetting:y,labels:{dealerSearch:k.dealerSearch,dealerSearchPlaceholder:k.dealerSearchPlaceholder,dealerSearchButton:k.dealerSearchButton,dealerNotFound:k.dealerNotFound,dealerSearchFailed:k.dealerSearchFailed,dealerLoadFailed:k.dealerLoadFailed,previous:k.previous,nextPage:k.nextPage}}),(0,t.jsx)(l.Button,{variant:"primary",onClick:()=>S("form"),disabled:!M,className:"w-full",children:k.next})]}),"form"===T&&(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(u,{label:k.lastName,error:null==(o=E.firstName)?void 0:o.message,children:(0,t.jsx)("input",{type:"text",...V("firstName",{required:k.required}),className:b(!!E.firstName)})}),(0,t.jsx)(u,{label:k.firstName,error:null==(d=E.lastName)?void 0:d.message,children:(0,t.jsx)("input",{type:"text",...V("lastName",{required:k.required}),className:b(!!E.lastName)})}),(0,t.jsx)(u,{label:k.email,error:null==(c=E.email)?void 0:c.message,children:(0,t.jsx)("input",{type:"email",...V("email",{required:k.required,pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:k.invalidEmail}}),className:b(!!E.email)})}),(0,t.jsx)(u,{label:k.phone,error:null==(m=E.phone)?void 0:m.message,children:(0,t.jsx)("input",{type:"tel",...V("phone"),className:b(!1),placeholder:k.optional})}),(0,t.jsxs)("div",{className:"flex gap-2 pt-2",children:[w&&(0,t.jsx)(l.Button,{variant:"secondary",onClick:()=>S("dealer"),className:"flex-1",children:k.back}),(0,t.jsx)(l.Button,{variant:"primary",onClick:()=>{P(()=>S("summary"))()},className:"flex-1",children:k.next})]})]}),"summary"===T&&(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 roun
1ded-xl bg-(--brand-surface) p-3",children:[(null==j?void 0:j.url)&&(0,t.jsx)(n.default,{src:j.url,alt:v,width:96,height:64,className:"h-16 w-24 rounded object-cover"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(s.Text,{variant:"bold2",as:"span",className:"text-(--brand-text)",children:v}),g&&(0,t.jsx)(s.Text,{variant:"label3",as:"span",className:"text-(--brand-text) opacity-70",children:g})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 text-(--brand-text)",children:[(0,t.jsx)(p,{label:k.name,value:`${Z("firstName")} ${Z("lastName")}`}),(0,t.jsx)(p,{label:k.email,value:Z("email")}),Z("phone")&&(0,t.jsx)(p,{label:k.phone,value:Z("phone")}),M&&(0,t.jsx)(p,{label:k.dealer,value:M.companyName||M.title})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.Button,{variant:"secondary",onClick:()=>S("form"),className:"flex-1",children:k.back}),(0,t.jsx)(l.Button,{variant:"primary",onClick:_,className:"flex-1",children:k.confirm})]})]}),"success"===T&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 py-6 text-center",children:[(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-green-100",children:(0,t.jsx)("svg",{className:"h-7 w-7 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,t.jsx)(s.Text,{variant:"sectionHeading",as:"h3",className:"text-(--brand-text)",children:k.success}),(0,t.jsx)(s.Text,{variant:"label3",as:"p",className:"text-(--brand-text) opacity-70",children:k.successMessage}),(0,t.jsx)(l.Button,{variant:"secondary",onClick:C,children:k.close})]}),"error"===T&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 py-6 text-center",children:[(0,t.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-red-100",children:(0,t.jsx)("svg",{className:"h-7 w-7 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsx)(s.Text,{variant:"sectionHeading",as:"h3",className:"text-(--brand-text)",children:k.error}),(0,t.jsx)(s.Text,{variant:"label3",as:"p",className:"text-(--brand-text) opacity-70",children:k.errorMessage}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l.Button,{variant:"secondary",onClick:()=>S("summary"),children:k.retry}),(0,t.jsx)(l.Button,{variant:"primary",onClick:C,children:k.close})]})]})]})})}function u(e){let{label:a,error:l,children:r}=e;return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(s.Text,{variant:"caption",as:"label",className:"text-(--brand-text)",children:a}),r,l&&(0,t.jsx)(s.Text,{variant:"footnote",as:"span",className:"text-red-600",children:l})]})}function p(e){let{label:a,value:l}=e;return(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(s.Text,{variant:"label3",as:"span",className:"opacity-60",children:a}),(0,t.jsx)(s.Text,{variant:"bold2",as:"span",children:l})]})}function b(e){return`typo-brand-input-text w-full rounded-lg border px-3 py-2 text-(--brand-text) bg-(--brand-bg) outline-none transition-colors ${e?"border-red-400 focus:border-red-500":"border-(--brand-border) focus:border-(--brand-accent)"}`}function f(e){let{vehicleId:n,vehicleStatus:i,reservationEnabled:o,reservationFee:d,displayDealerLocator:c,defaultLocationId:x,vehicleTitle:h,vehicleImage:u,vehiclePrice:p,labels:b,advancedSetting:f}=e,{track:j}=(0,r.useTracking)(),[g,w]=(0,a.useState)(!1),[N,C]=(0,a.useState)(!1);return o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)(l.Button,{variant:"secondary",onClick:()=>{j("ga.vacs.details.contactForm.load",{interestedInContact:null,conditionType:i,isNSM:!1}),w(!0)},className:"w-full",children:b.form}),(0,t.jsx)(l.Button,{variant:"primary",onClick:()=>w(!0),disabled:("Reserved"===i||"Blocked"===i)&&o,className:"w-full",children:d?b.reserveWithFee.replace("{fee}",String(d)):b.reserve}),(0,t.jsxs)("button",{type:"button",onClick:()=>C(e=>!e),className:"flex cursor-pointer items-center justify-center gap-2 py-3",children:[(0,t.jsx)(s.Text,{variant:"bold1",as:"span",className:"text-(--brand-text) underline",children:b.reservationProcess}),(0,t.jsx)(v,{})]})]}),N&&(0,t.jsxs)("div",{className:"rounded-2xl bg-(--brand-bg) p-4 shadow-lg",children:[(0,t.jsx)(s.Text,{variant:"bold2",as:"h4",className:"mb-2 text-(--brand-text)",children:b.howItWorks}),(0,t.jsxs)("ol",{className:"flex flex-col gap-1.5 text-(--brand-text) opacity-80",children:[(0,t.jsxs)("li",{children:[(0,t.jsx)(s.Text,{variant:"footnoteBold",as:"span",className:"mr-1",children:"1."}),(0,t.jsx)(s.Text,{variant:"footnote",as:"span",children:b.step1})]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(s.Text,{variant:"footnoteBold",as:"span",className:"mr-1",children:"2."}),(0,t.jsx)(s.Text,{variant:"footnote",as:"span",children:b.step2})]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(s.Text,{variant:"footnoteBold",as:"span",className:"mr-1",children:"3."}),(0,t.jsx)(s.Text,{variant:"footnote",as:"span",children:b.step3})]})]})]}),g&&(0,t.jsx)(m,{vehicleId:n,vehicleTitle:h,vehicleImage:u,vehiclePrice:p,displayDealerLocator:c,defaultLocationId:x,onClose:()=>w(!1),advancedSetting:f,labels:{reservationTitle:b.reservationTitle,close:b.close,next:b.next,back:b.back,lastName:b.lastName,firstName:b.firstName,email:b.email,phone:b.phone,required:b.required,invalidEmail:b.invali
1dEmail,optional:b.optional,name:b.name,dealer:b.dealer,confirm:b.confirm,success:b.success,successMessage:b.successMessage,error:b.error,errorMessage:b.errorMessage,retry:b.retry,reservationMessage:b.reservationMessage,reservationFailed:b.reservationFailed,dealerSearch:b.dealerSearch,dealerSearchPlaceholder:b.dealerSearchPlaceholder,dealerSearchButton:b.dealerSearchButton,dealerNotFound:b.dealerNotFound,dealerSearchFailed:b.dealerSearchFailed,dealerLoadFailed:b.dealerLoadFailed,previous:b.previous,nextPage:b.nextPage}})]}):null}function v(){return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"1.46739",y:"1.46739",width:"15.0652",height:"15.0652",rx:"7.53261",stroke:"black",strokeWidth:"1.43478"}),(0,t.jsx)("path",{d:"M9.70039 12.4141H8.30434V7.69363H9.70039V12.4141ZM9.00739 7.14124C8.42486 7.14124 8.1336 6.86671 8.1336 6.31767C8.1336 5.78871 8.42486 5.52424 9.00739 5.52424C9.2886 5.52424 9.50286 5.59119 9.65017 5.72511C9.79747 5.85902 9.87112 6.05654 9.87112 6.31767C9.87112 6.59219 9.79747 6.79976 9.65017 6.94037C9.50286 7.07428 9.2886 7.14124 9.00739 7.14124Z",fill:"black"})]})}e.s(["StockDetailsSidebarActions",()=>f],319327)}]);

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.