1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2388],{599:function(e,t,a){a.d(t,{H:function(){return s}});var i=a(91785),n=a(3703),o=a(20967);const s=()=>(0,i.AH)(".classPageStandard &,.classPageHome &{line-height:",n.w.cmsTextLineHeight,";letter-spacing:",n.w.cmsTextLetterSpacing,";",(0,o.Vn)(n.w,n.w.featureItemGaps,n.w.cmsTextCol,n.w.cmsHeadingColour),";>*+*{margin-block-start:",n.w.featureItemGaps,";}p,strong,ul,ol{font-size:",n.w.cmsTextSize,";}}","")},2388:function(e,t,a){a.r(t),a.d(t,{VehicleFinderTabbed:function(){return ge}});var i=a(63696),n=a(74122),o=a(10898),s=a(5130),r=a(81706),l=a(35324),d=a(71048),c=a(7543),m=a(21354),g=a(25097),v=a(7226),u=a(55697),f=a(38056),p=a(3703),w=a(72418),b=a(18456),h=a.n(b),C=a(27487),I=a(20045),x=a(441),k=a(31318),y=a(60503),T=a(57536),S=a(91785),H=a(5826),L=a(650),A=a(72515);const W=(0,S.AH)("position:relative;margin-inline:auto;max-width:",p.w.vfPaneWrapperMaxWidth,";",""),Y={name:"zneyt6",styles:"margin:0;padding:0;display:block;width:100%"},N=(0,S.AH)("list-style-type:none;margin:",p.w.vfPaneItemMarginMobile,";padding:",p.w.vfPaneItemPadding,";container:vfPaneItem/inline-size;",(0,H.HG)(L.f.md),"{margin:",p.w.vfPaneItemMarginDesktop,";}",""),P=(0,S.AH)("text-decoration:none;display:",p.w.vfItemLinkDisplay,";flex-direction:",p.w.vfItemLinkFlexDirection,";justify-content:",p.w.vfItemLinkFlexJustify,";margin:",p.w.vfItemLinkMargin,";padding:",p.w.vfItemLinkPadding,";width:",p.w.vfItemLinkWidth,";height:",p.w.vfItemLinkHeight,";box-shadow:",p.w.vfItemLinkShadow,";border-radius:",p.w.vfItemLinkBorderRadius,";background-color:",p.w.vfItemLinkBgCol,";transition:",p.w.vfItemLinkTransition,";position:",p.w.vfItemLinkPosition,";overflow:",p.w.vfItemLinkOverflow,";>*{position:",p.w.vfItemLinkElementPosition,";}&:before{content:",p.w.vfItemLinkPseudoContent,";background:",p.w.vfItemLinkPseudoBgCol,";opacity:",p.w.vfItemLinkPseudoOpacity,";inset:",p.w.vfItemLinkPseudoInset,";position:",p.w.vfItemLinkPseudoPosition,";transition:",p.w.vfItemLinkPseudoTransitionOpacity,";z-index:",p.w.vfItemLinkPseudoZIndex,";}&:hover{text-decoration:none;background:",p.w.vfItemLinkHoverBgCol,";&:before{opacity:",p.w.vfItemLinkPseudoHoverOpacity,";}.classCardCtaNoLink{background-color:",p.w.vfItemNoLinkHoverBgCol,";}}>*+*{margin-block-start:",p.w.vfItemLinkItemsGaps,";}",""),M=(0,S.AH)("top:",p.w.vfImageWrapperTop,";box-shadow:",p.w.vfImageWrapperBoxShadow,";border-radius:",p.w.vfImageWrapperBorderRadius,";transition:",p.w.vfImageWrapperTransitionBgCol,";&:hover{background-color:",p.w.vfImageWrapperHoverBgCol,";}",""),z=(0,S.AH)("position:",p.w.vfItemTextWrapperPosition,";top:",p.w.vfItemTextWrapperTop,";bottom:",p.w.vfItemTextWrapperBottom,";margin:",p.w.vfItemTextWrapperMargin,";padding:",p.w.vfItemTextWrapperPadding,";width:",p.w.vfItemTextWrapperWidth,";height:",p.w.vfItemTextWrapperHeight,";background:",p.w.vfItemTextWrapperBg,";>*+*{margin-block-start:",p.w.vfItemTextItemsGaps,";}",""),B=(0,S.AH)(p.w.vfItemHeadingFontStack,";font-size:",p.w.vfItemHeadingSizeMobile,";line-height:",p.w.vfItemHeadingLineHeight,";text-align:",p.w.vfItemHeadingAlign,";text-transform:",p.w.vfItemHeadingTextTransform,";letter-spacing:",p.w.vfItemHeadingLetterSpacing,";color:",p.w.vfItemHeadingCol,";margin-block-end:0;margin-block-start:",p.w.vfItemHeadingMarginTop,";",p.w.vfItemModelNameExceptions,";",(0,H.HG)(L.f.md),"{font-size:",p.w.vfItemHeadingSizeDesktop,";}.classLinkBasic:hover &{color:",p.w.vfItemHeadingHoverCol,";}",""),F=(0,S.AH)(p.w.vfItemSubheadingFontStack,";font-size:",p.w.vfItemSubheadingSizeMobile,";line-height:",p.w.vfItemSubheadingLineHeight,";text-align:",p.w.vfItemSubheadingAlign,";text-transform:",p.w.vfItemSubheadingTextTransform,";letter-spacing:",p.w.vfItemSubheadingLetterSpacing,";color:",p.w.vfItemSubheadingCol,";margin-block-end:0;margin-block-start:",p.w.vfItemSubheadingMarginTop,";",(0,H.HG)(L.f.md),"{font-size:",p.w.vfItemSubheadingSizeDesktop,";}.classLinkBasic:hover &{color:",p.w.vfItemSubheadingHoverCol,";}",""),G=(0,S.AH)("text-align:",p.w.vfCtaWrapperTextAlign,";margin-block-start:",p.w.vfCtaWrapperMarginTop,";",""),V=(0,S.AH)(A.U.vehiclesFinderTabbedCarouselItemBtnVariant,";",A.U.vehiclesFinderTabbedCarouselItemBtnSize,";width:",p.w.vfCtaWidth,";",""),U=(0,S.AH)("display:grid;grid-template-columns:",p.w.vfModelCtasWrapGridCols,";gap:",p.w.vfModelCtasWrapGap,";max-width:",p.w.vfModelCtasWrapMaxWidthSm,";margin-inline:auto;margin-block-start:16px;@container vfPaneItem (inline-size >= ",p.w.vfModelCtasMinWidthThreshold,"){max-width:",p.w.vfModelCtasWrapMaxWidthLg,";}",""),D=(0,S.AH)(A.U.vehicleFinderTabbedCarouselPrimaryBtnVariant,";",A.U.vehicleFinderTabbedCarouselPrimaryBtnSize,";min-width:auto;",""),O=(0,S.AH)(A.U.vehicleFinderTabbedCarouselSecondaryBtnVariant,";",A.U.vehicleFinderTabbedCarouselSecondaryBtnSize,";min-width:auto;",""),E=e=>{let{categoryArray:t,modelCategory:a,activeIndex:i,templatePagePath:n}=e;return(0,S.Y)("div",{css:W}
1,(0,S.Y)("div",{css:Y,key:a.id,"data-active-index":i,"data-category-id":a.id},(0,S.Y)(C.F,{carouselComponentName:"vehicles-finder-carousel",carouselSettings:k.f.vehicleFinderTabbed},t.map((e=>{const{id:t,fields:a,name:i,displayName:o,showroomCarouselImage:s,remoteId:r,tagline:l,modelCta:d}=e,{labelText:c,linkUrl:m,externalLinkNewWindow:g}=d||{},v=(0,y.$)(o),u=h()(v);return(0,S.Y)("div",{css:N,key:t},(0,S.Y)(I.b,{to:""+n+(null==a?void 0:a.slug),css:P,"aria-label":i},s&&(0,S.Y)(T.i,{srcWebp:s.srcWebp,srcFallback:s.srcFallback,width:s.width,height:s.height,alt:s.imageAlt,ilImagesWrapperCustom:M}),(0,S.Y)("div",{css:z},(0,S.Y)("h4",{css:B,"data-modelname":u,"data-modelid":r},(0,S.Y)(x.$,{disallowedElements:["p","div"],unwrapDisallowed:!0},o)),l&&(0,S.Y)("p",{css:F},(0,S.Y)(x.$,{disallowedElements:["p","div"],unwrapDisallowed:!0},l))),!d&&(0,S.Y)("div",{css:G},(0,S.Y)("span",{className:"classCardCtaNoLink",css:V},"Overview"))),d&&(0,S.Y)("div",{css:U},(0,S.Y)(I.b,{linkBasicCustom:[D],"aria-label":"Explore",to:""+n+(null==a?void 0:a.slug)},"Explore"),(0,S.Y)(I.b,{linkBasicCustom:[O],"aria-label":c||"Our Stock",to:m||"",externalLinkNewWindow:g,rel:"noreferrer"},c)))})))))};var $=a(91144),R=a(88232),j=a(26885);var J=a(37388),q=a(599),Q=a(53088),Z=a(74821);const _=(0,S.AH)("max-width:",p.w.vfTextWrapperMaxWidth,";",(0,Z.s)(),";margin-inline-end:",p.w.vfTextWrapperMarginInline,";margin-inline-start:",p.w.vfTextWrapperMarginInline,";",(0,Q.CU)(),";",""),K=(0,S.AH)(p.w.vfHeadingFontStack,";font-size:",p.w.vfHeadingSizeMobile,";line-height:",p.w.vfHeadingLineHeight,";text-transform:",p.w.vfHeadingTransform,";text-align:",p.w.vfHeadingAlign,";letter-spacing:",p.w.vfHeadingLetterSpacing,";color:",p.w.vfHeadingColour,";margin-block-end:0;",(0,H.HG)(L.f.lg),"{font-size:",p.w.vfHeadingSizeDesktop,";}",""),X=(0,S.AH)(p.w.vfTextFontStack,";font-size:",p.w.vfTextSizeMobile,";line-height:",p.w.vfTextLineHeight,";text-align:",p.w.vfTextAlign,";color:",p.w.vfTextColour,";max-width:",p.w.vfTextWrapperMaxWidth,";margin-inline-end:",p.w.vfTextWrapperMarginInline,";margin-inline-start:",p.w.vfTextWrapperMarginInline,";margin-block-end:0;",(0,H.HG)(L.f.lg),"{font-size:",p.w.vfTextSizeDesktop,";}",(0,q.H)(),";",""),ee={name:"1azakc",styles:"text-align:center"},te=(0,S.AH)(A.U.vehiclesFinderTabbedHeadingBtnVariant,";",A.U.vehiclesFinderTabbedHeadingBtnSize,";",""),ae=e=>{let{templatePagePath:t}=e;const a=(0,j.GR)("2627755905").allCmsVehicleFinderContent.nodes[0],{ctaText:i,heading:n,summaryText:o}=a,r=(0,R.r)(n),l=(0,R.r)(o);return(r||l||i)&&(0,S.Y)(s.m,{css:_},r&&(0,S.Y)($._B,{heading3Custom:K},(0,S.Y)(x.$,{disallowedElements:["p","div"],unwrapDisallowed:!0},r)),l&&(0,S.Y)(x.$,{css:X},l),i&&(0,S.Y)(s.m,{className:"classVfHeadingCtaWrapper",css:ee},(0,S.Y)(J.v,{to:t||"/",className:"classCardCtaNoLink",buttonLinkCustom:te},i)))};var ie=a(80945);const ne=(0,S.AH)((0,ie.$)(),";background-color:",p.w.vfBgColour,";",(0,Q.CU)(),";","");var oe=a(42282);const se=(0,S.AH)("display:block;margin-inline:auto;max-width:",p.w.vfTabbedTabsSelectLabelMaxWidth,";font-size:",p.w.vfTabbedTabsSelectLabelFontSize,";",(0,H.HG)(L.f.sm),"{font-size:",p.w.vfTabbedTabsSelectLabelFontSize,";}",(0,H.HG)(L.f.lg),"{display:none;}",""),re=(0,S.AH)("",""),le=(0,S.AH)("display:none;",(0,H.HG)(L.f.lg),"{",(0,oe.T6)("center"),";&.classVftSubCategory{padding-top:0;}}",""),de=(0,S.AH)((0,oe.iQ)(),";&.classActiveCategory{.classNsvsTabsButton{",(0,oe.xy)(),";}}&:hover{.classNsvsTabsButton{",(0,oe.N7)(".classActiveCategory"),";}}",""),ce=(0,S.AH)((0,oe.gw)(),";.classVftSubCategory &{",(0,oe.U8)(),";}",""),me=e=>{let{modelCategories:t,modelSubCategories:a,vehicleCategorisedArray:n,activeCategoryIndex:s,activeSubCategoryId:r,handleTabChange:d,handleActiveSubCat:c,hasSubCategoryAssociations:m}=e;const g="classActiveCategory",v="classNotActiveCategory";return(0,o.uG)(t)?(0,S.Y)(i.Fragment,null,(0,S.Y)("ul",{css:le},t.map(((e,t)=>e.name&&n[t].length>=1&&(0,S.Y)("li",{css:de,key:e.id,className:s===t?g:v,"data-active-index":s,"data-category-id":e.id,"data-index":t},(0,S.Y)("button",{type:"button",css:ce,className:"classNsvsTabsButton",onClick:()=>d(t)},e.name))))),m&&(0,S.Y)("ul",{css:le,className:"classVftSubCategory"},(0,o.uG)(a)?a.map(((e,t)=>{var a;const i=null!==(a=e.remoteId)&&void 0!==a?a:e.id,n=i===r;return e.name?(0,S.Y)("li",{css:de,key:e.id,className:n?g:v,"data-active-index":r,"data-category-id":e.id,"data-index":t},(0,S.Y)("button",{className:"classNsvsTabsButton classVftSubCategory",type:"button",css:ce,onClick:()=>c(i)},e.name)):null})):(0,S.Y)("li",{css:de,className:g,"data-active-index":r,"data-category-id":r,"data-index":r},(0,S.Y)("button",{className:"classNsvsTabsButton classVftSubCategory",type:"button",css:ce},l.v.navSubCategoryFallbackText)))):null},ge=e=>{let{componentTypeClassName:t=""}=e;const a=(0,u.b)(),b=(0,f.T)(),h=(0,v.b)().filter((e=>e.displayInNavigation)),{templatePagePath:C,isIndex:I}=(0,g.u)(r.J.newVehicles)||{},{categorizedModelsArray:x,sortedModelCategories:k,hasNoCategoryAssociations:y,hasOneCategoryAssociation:T,subCategoriesByCategory:H,hasSubCategoryAssociations:L}=(0,i.useMemo)((()=>(0,d.e)(a,h,b)),[a,h,b]),{0:A,1:W}=(0,i.useState)((()=>T?k.length-1:x.findIndex((e=>(0,o.uG)(e))))),{0:Y,1:N}=(0,i.useState)((()=>{var e,t;const a=null==H||null===(e=H.find((e=>(0,o.uG)(e))))||void 0===e?void 0:e[0];return a?null!==(t=a.remoteId)&&void 0!==t?t:a.id:null})),{subCategories:P,hasSubCategories:M}=(0,m.c)(H,A),z=Y?P.findIndex((e=>{var t;return(null!==(t=e.remoteId)&&void 0!==t?t:e.id)===Y})):0,B=x[A]?M?Y?x[A].filter((e=>{var t;return null==e||null===(t=e.modelsSubCategories)||void 0===t?void 0:t.some((e=>(null==e?void 0:e.id)===Y))})):[]:x[A]:[],F=e=>{var t;if("object"==typeof e)return;const a=Number(e);W(a);const i=((null==H?void 0:H[a])||[])[0];
1N(i?null!==(t=i.remoteId)&&void 0!==t?t:i.id:null)},G=k.map(((e,t)=>x[t]&&x[t].length>0?{value:t,text:e.name}:null)).filter(n.T),V=M?P.map(((e,t)=>({value:t,text:e.name}))):[{value:0,text:l.v.navSubCategoryFallbackText}],U=p.w.vfIsGapMandatory;return(0,o.uG)(x)&&!y?(0,S.Y)(s.m,{className:"classItemRequiresPadding "+t+" "+(0,c.a)(!1,U),css:ne},(0,S.Y)(ae,{templatePagePath:I?"/":C}),(0,S.Y)(w.SelectLabelNestedControlled,{idName:"idVehicleFinderTabbedSelect",selectValue:A,handleChange:F,options:G,"aria-label":"Options to show models by category",imFormInputLabelCustom:se,imFormSelectCustom:re},"Choose a Category"),L&&(0,S.Y)(w.SelectLabelNestedControlled,{idName:"idVehicleFinderSubCatTabbedSelect",selectValue:z,handleChange:e=>{var t;if("object"==typeof e)return;const a=P[Number(e)];N(a?null!==(t=a.remoteId)&&void 0!==t?t:a.id:null)},options:V,"aria-label":"Options to show models by sub category",imFormInputLabelCustom:se,imFormSelectCustom:re},"Choose a Sub Category"),!T&&(0,S.Y)(me,{modelCategories:k,modelSubCategories:P,activeSubCategoryId:Y,vehicleCategorisedArray:x,activeCategoryIndex:A,handleTabChange:F,handleActiveSubCat:e=>{var t;const a=P.find((t=>{var a;return(null!==(a=t.remoteId)&&void 0!==a?a:t.id)===e}));N(a?null!==(t=a.remoteId)&&void 0!==t?t:a.id:null)},hasSubCategoryAssociations:L}),(0,o.uG)(B)&&(0,S.Y)(E,{key:A+(Y?"-"+Y:""),categoryArray:B,activeIndex:A,modelCategory:k[A],templatePagePath:C})):null}}}]);
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.