1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3565],{13565:function(e,a,t){t.r(a),t.d(a,{FormPageStock:function(){return O}});var o=t(10898),l=t(91144),i=t(5130),s=t(97074),n=t(44938),r=t(90287),d=t(63327),c=t(65479),m=t(9546),p=t(59611),h=t(47652),f=t(62173),g=t(78635),u=t(91785),b=t(15903),x=t(16996),C=t(5826),y=t(72721),k=t(650),T=t(72515),L=t(36557),H=t(28405),S=t(85437);const w=(0,u.AH)((0,b.c)(),";",(0,y.r)(),";.classTwoColLeft &,.classThreeColMiddle &{display:flex;flex-wrap:wrap;}",""),V=(0,u.AH)("padding:",H.h.fpsHeaderWrapperPadding,";background-color:",H.h.fpsHeaderWrapperBgCol,";.classTwoColLeft &,.classThreeColMiddle &{width:100%;}",""),v=(0,u.AH)(H.h.fpsHeadingFontStack,";line-height:",H.h.fpsHeadingLineHeight,";font-size:",H.h.fpsHeadingSize,";text-transform:",H.h.fpsHeadingTransform,";letter-spacing:",H.h.fpsHeadingLetterSpacing,";text-align:center;margin:0;color:",L.X.white,";",(0,C.HG)(k.f.sm),"{text-align:left;}",""),Y=(0,u.AH)("padding:0 ",S.c.gapMedium," ",S.c.gapMedium," ",S.c.gapMedium,";width:100%;",(0,C.HG)(k.f.md),"{padding:",H.h.fpsFormWrapperPadding,";}>*+*{margin-block-start:",H.h.formVerticalRhythmMobile,";@container imFormItem (inline-size >= ",H.h.formContainerQueryWidth,"){margin-block-start:",H.h.formVerticalRhythm,";}}",""),F=(0,u.AH)("justify-content:space-evenly;margin:",H.h.formVerticalRhythmMobile," auto;max-width:400px;grid-template-columns:repeat(3, 1fr);gap:2px;",(0,C.HG)(k.f.md),"{margin-bottom:0;}.classThreeColLeft &{",(0,C.px)(k.f.sm,k.f.xl),"{max-width:250px;margin:0;}}.classTwoColLeft &,.classOneCol &{",(0,C.HG)(k.f.sm),"{max-width:250px;margin:",H.h.formVerticalRhythm," 0;}}",""),M=(0,u.AH)("padding:10px 5px 6px 5px;background-color:",L.X.black7,";flex-direction:column;flex:1;align-items:center;transition:background-color 150ms ease-in-out;&:first-of-type{border-radius:5px 0 0 5px;}&:last-of-type{border-radius:0 5px 5px 0;margin-top:0;}&:only-of-type{border-radius:5px;}&:hover{background-color:",L.X.black15,";}",""),N=(0,u.AH)(H.h.fpsLabelTextFontStack," font-size:",H.h.fpsLabelTextSize,";text-transform:",H.h.fpsLabelTextTransform,";input[type='checkbox']+&{margin:3px 0 0 0;}",""),P=(0,u.AH)(".classTwoColLeft &,.classThreeColMiddle &{",(0,C.HG)(k.f.md),"{display:flex;flex-wrap:wrap;}}",""),G=(0,u.AH)("margin-bottom:",H.h.formVerticalRhythmMobile,";",(0,C.HG)(k.f.md),"{margin-bottom:",H.h.formVerticalRhythm,";}label{width:100%;}.classTwoColLeft &,.classThreeColMiddle &{",(0,C.HG)(k.f.md),"{",(0,x.BE)(3,2),";}}",""),R={name:"skgbeu",styles:"display:flex;justify-content:flex-end"},A=(0,u.AH)(T.U.formPageStockBtnVariant,";",T.U.formPageStockBtnSize,";","");var K=t(29197),B=t(66936),z=t(72418);const O=()=>{if(!(0,p.b)("stock"))return null;const{generalSettings:e}=(0,f.e)(),{enableStockLocations:a,enableDemoFilter:t,enableNewFilter:b,enableUsedFilter:x}=e||{},C=s.ec.FormPageStock,{formShortName:y}=C,k=[b,t,x],T=s.$u.filter(((e,a)=>k[a])),L=(0,r.X6)(T),{formInfo:H,isPending:S,locationOptions:O,makeOptions:W,modelOptions:X,bodyTypeOptions:I,price:U,handleFormInfoChange:$,handleVehicleTypesChange:j,handlePriceRangeChange:D,handleSubmit:E}=(0,h.K)(L),Q=(0,m.x)();return(0,o.uG)(T)?(0,u.Y)(i.m,{className:"classStandardComponent classStandardForm",wrapperCustom:w},(0,u.Y)(i.m,{wrapperCustom:V},(0,u.Y)(l._B,{css:v},"Vehicle Search")),(0,u.Y)("form",{css:Y,id:y,name:y,acceptCharset:"utf-8",onSubmit:e=>E({event:e})},(0,u.Y)(K.CheckboxLabelGroupNested,{groupName:y+"TypeCheckbox",checkboxGroupValue:H.vehTypes,handleChange:j,checkboxOptions:T,imFormChecksGroupRowCustom:F,imFormCheckLabelCustom:M,imFormCheckTextCustom:N,disableTheLastCheckbox:(0,d.b)(H.vehTypes)}),(0,u.Y)("div",{css:P},a&&(0,u.Y)("div",{css:G},(0,u.Y)(z.SelectLabelNestedControlled,{idName:y+"Location",selectValue:H.location||"",handleChange:$,options:S?[{text:"Loading...",value:""}]:(0,c.PK)(O),selectValueKey:"location",disabled:S},"Location")),(0,u.Y)("div",{css:G},(0,u.Y)(z.SelectLabelNestedControlled,{idName:y+"Make",options:S?[{text:"Loading...",value:""}]:(0,c.PK)(W,!0),selectValueKey:"make",selectValue:H.make,handleChange:$,disabled:S},"Make")),(0,u.Y)("div",{css:G},(0,u.Y)(z.SelectLabelNestedControlled,{idName:y+"Model",options:S?[{text:"Loading...",value:""}]:(0,c.PK)(X,!0),selectValueKey:"model",selectValue:H.model,handleChange:$,disabled:S},"Model")),(0,u.Y)("div",{css:G},(0,u.Y)(z.SelectLabelNestedControlled,{idName:y+"BodyType",selectValue:H.bodyType,handleChange:$,options:(0,c.PK)(I),selectValueKey:"bodyType",disabled:S},"Body Type")),(0,u.Y)("div",{css:G},(0,u.Y)(B.s,{className:"classFsfRangeSlider",sliderLabel:"Price",sliderValue:H.priceRange,valueRange:[U.min,U.max],step:1e3,handleChange:D,getSliderText:r.$l,textTransformFunction:n.Z,allowCross:!1,ariaLabelForHandle:["minimum price","maximum price"]}))),(0,u.Y)("div",{css:R},(0,u.Y)(g.$,{type:"submit",buttonLinkCustom:A,"aria-label":"Search Vehicles",disabled:!Q},"Search Vehicles")))):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.