(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6577],{46947:function(t,e,r){"use strict";r.r(e);var i=r(57437),n=r(81158),o=r(86153);e.default=t=>{let{layoutProps:e,children:r}=t,{appRouter:s}=(0,o.useGlobal)();return s?r:(0,i.jsx)(n.Z,{...e,children:r})}},60451:function(t,e,r){"use strict";r.r(e),r.d(e,{OffersRow:function(){return c}});var i=r(57437),n=r(47907),o=r(51091);let s=t=>{let{title:e="No Results Available",description:r="There appears to be no offers currently available that meet the conditions of your search",refreshPath:s="/special-offers"}=t,a=(0,n.useRouter)();return(0,i.jsx)("div",{className:"mt-5 row justify-content-center",children:(0,i.jsx)("div",{className:"col-12 col-lg-4",children:(0,i.jsxs)(o.Zb,{children:[(0,i.jsxs)(o.Ol,{children:[(0,i.jsx)(o.ll,{children:e}),(0,i.jsx)(o.SZ,{children:r})]}),(0,i.jsx)(o.eW,{className:"justify-content-end",children:(0,i.jsx)("button",{className:"btn btn-primary",onClick:()=>{a.push(s)},children:"Clear Filters"})})]})})})};var a=r(57927),l=r(69645);let c=t=>{let{hits:e,isSearch:r}=t,o=(0,n.usePathname)();return e&&(null==e?void 0:e.length)!==0?(0,i.jsx)("div",{className:(0,l.cn)("row",e.length<3&&!r&&"justify-content-center"),children:e.map((t,e)=>(0,i.jsx)(a.Z,{offer:t,isFirst:0===e},t.id))}):(null==o?void 0:o.includes("special-offers"))?(0,i.jsx)(s,{}):null}},87732:function(t,e,r){"use strict";r.d(e,{LI:function(){return u},ci:function(){return d},v8:function(){return l},wk:function(){return c}});var i=r(62569),n=r(90949),o=r(19188),s=r(73799),a=r(66496);let l=t=>a.yg[t];async function c(t){return await (0,o.sY)({...t,indexUid:n.Vf,facets:a.GK})}async function u(t){let{facets:e,hits:r,count:n,ms:s,pagination:a}=await (0,o.qp)({...t,fetchHits:c});return{facets:e,offers:(0,i.z8)(r),count:n,ms:s,...a}}let d=t=>{var e,r;let{validFacets:i,refinedKeys:n,facets:o,attribute:a}=t,l=null!==(r=null!==(e=i[a])&&void 0!==e?e:o[a])&&void 0!==r?r:[],c=Object.keys(l).sort((t,e)=>{if(s.k2r)return 0;let r=n.includes(t),i=n.includes(e);return r&&!i?-1:!r&&i?1:l[t]>l[e]?-1:1});return n.forEach(t=>{c.includes(t)||(l[t]=0,c.push(t))}),{items:l,keys:c}}},20146:function(t,e,r){"use strict";r.d(e,{H4:function(){return m},KP:function(){return h},O$:function(){return f},cr:function(){return y},dj:function(){return c},i4:function(){return a},nS:function(){return p},s_:function(){return u},tO:function(){return l},vu:function(){return d}});var i=r(21180),n=r(69645),o=r(87732),s=r(66496);let a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=parseInt(t,10);return!isNaN(e)&&e.toString()===t&&e>1?e-1:0},l=(t,e)=>e.filter(e=>Math.abs(t+1-e)<(0===t?3:2)),c=t=>{let{params:e,routeState:r}=t;for(let t of(0,n.RR)(e)){let i=e[t],n=r[t];if("string"==typeof i){if(i!==n)return!0}else if(Array.isArray(i)&&Array.isArray(n)){if((null==i?void 0:i.length)!==(null==n?void 0:n.length))return!0;if((null==i?void 0:i.length)===0&&(null==n?void 0:n.length)===0)continue;let t=[...i].sort(),e=[...n].sort();if(t.toString()!==e.toString())return!0}else if("currentPath"===t&&((null==i?void 0:i.path)!==(null==n?void 0:n.path)||(null==i?void 0:i.attribute)!==(null==n?void 0:n.attribute)))return!0}return!1};function u(t){var e;let{key:r,params:i}=t;if(s.Ue.includes(r)){let t=i.get(r);return t?t.split(","):[]}return null!==(e=i.get(r))&&void 0!==e?e:""}let d=t=>{let{key:e,value:r,multi:i,removeKey:n,params:o}=t,s=new URLSearchParams(o.toString());if(r){let t=r;if(i){let i=o.get(e);if(i){let e=i.split(",");t=e.includes(r)?e.filter(t=>t!==r).join(","):[...e,r].join(",")}}t?s.set(e,t):s.delete(e)}else s.delete(e);return n&&s.get(n)&&s.delete(n),s.toString()},h=t=>{var e,r;let{page:i,params:s}=t,a=null!==(r=null==i?void 0:null===(e=i.searchState)||void 0===e?void 0:e.refinementList)&&void 0!==r?r:{},l=Object.keys(a),c={attribute:l[0],path:i.slug[0]},u={...s,currentPath:c};return l.forEach(t=>{var e;let r=(0,o.v8)(t),i=(0,n.Tw)([...null!==(e=s[r])&&void 0!==e?e:[],...a[t]]);u[r]=i}),u},f=()=>{let t=i.default.dealership_websites.filter(t=>t.make).map(t=>'manufacturer.name="'.concat(t.make,'"')).join(" OR ");return"(".concat(t,') AND (state="').concat(i.default.address.state,'" OR state="Undefined")')},p=t=>{let{cache:e,offset:r,query:i,sort:o,refinements:s}=t,a={};r&&(a.offset=r),i&&(a.query=i),o&&(a.sort=o),(0,n.Cg)(s).forEach(t=>{let[e,r]=t;Array.isArray(r)?r.length&&(a[e]=r):r&&(a[e]=r)});let l=JSON.stringify(a);return e.has(l)?{cachedResult:e.get(l),cacheKey:l}:{cachedResult:null,cacheKey:l}},y=t=>{let{state:e,attribute:r,value:i,isSingleSelect:n}=t,o=e[r].includes(i);return n||(o?e[r].filter(t=>t!==i):[...e[r]]),n?o?[]:[i]:o?e[r].filter(t=>t!==i):[...e[r],i]},m=t=>({...t.state,[t.attribute]:y(t)})},66496:function(t,e,r){"use strict";r.d(e,{GK:function(){return a},Ue:function(){return l},Y8:function(){return o},yg:function(){return s}});var i=r(69645);let n={badge:"badge",car_type:"car_type",categories:"categories",city:"city",colour:"colour",dealership_name:"dealership_name",filtered_features:"filtered_features",item_type:"item_type",km:"km",location_name:"location_name",make:"make",make_model:"make_model",model:"model",price:"price",price_range:"price_range",subscription_price:"subscription_price",seats:"seats",simple_body:"body",simple_drive:"drive",simple_fuel:"fuel",simple_transmission:"transmission",state:"state",tag:"tag",weekly_price_range:"weekly_price_range",year:"year"},o=(0,i.RR)(n);(0,i.Cg)(n);let s={"manufacturer.name":"make","model.name":"model","model.body":"body"},a=(0,i.RR)(s);(0,i.Cg)(s);let l=[...(0,i.KX)(n),...(0,i.KX)(n)]},29299:function(t,e,r){"use strict";r.d(e,{v:function(){return n}});var i=r(2265);let n=()=>{let t=(0,i.useRef)(null);return{ref:t,handleScroll:()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}}}},60257:function(t,e,r){"use strict";r.r(e),r.d(e,{ContactDetails:function(){return u},GooglePlaceDetails:function(){return c}});var i=r(57437),n=r(61468),o=r(31911),s=r(49839),a=r(73799),l=r(53139);let c=t=>{let{type:e}=t,{locations:r}=(0,n.Z)(),o=r.filter(t=>!0===t.primary)[0];if(e&&r.length>0){let t=r.filter(t=>t.location_type===e)[0],i=r.filter(t=>"service"===t.location_type)[0];t?o=t:!t&&"parts"===e&&i&&(o=i)}return!o||a._EE?null:(0,i.jsx)(s.Z,{location:o})},u=t=>{let{type:e,show_all_locations_if_one_dealership:r=!1,filterList:n=[]}=t;return(0,o.fQ)(r)||n.length?(0,i.jsx)(l.Z,{type:e,filterList:n}):(0,i.jsx)(c,{type:e})};e.default=c},21625:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return f},renderImage:function(){return h}});var i=r(57437),n=r(99577),o=r.n(n);let s=t=>{let{src:e,width:r,quality:i=75}=t;if(e.endsWith(".gif"))return e;let n=e;e.startsWith("https://res.cloudinary.com")&&(n=e.split("td_next/").pop());let o="2.0";return r>2e3&&(o="3.0"),r>3e3&&(o="4.0"),"https://res.cloudinary.com/total-dealer/image/upload/ar_".concat(o,",c_crop/w_").concat(r,",f_auto,q_").concat(i,"/v1644660263/td_next/").concat(n)},a=t=>{let{src:e,alt:r,...n}=t;return(0,i.jsx)(o(),{src:e,objectFit:"cover",layout:"responsive",alt:r,loader:s,...n})};var l=r(45912),c=t=>{let{buttons:e}=t;return(0,i.jsx)(i.Fragment,{children:e.map(t=>{let e=t.icon;return(0,i.jsxs)(l.default,{className:"btn ".concat(t.class," btn-lg mr-3"),href:t.route,children:[t.title,e&&(0,i.jsx)(e,{size:60,className:"p-2"})]},t._key)})})},u=r(10981),d=r.n(u);function h(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cover",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"center";return!0===(t&&"string"==typeof t&&t.startsWith("https://res.cloudinary.com/")&&!r)?(0,i.jsx)(a,{src:t,layout:"fill",objectFit:e,objectPosition:s,alt:(null==t?void 0:t.alt)||"Vehicle background"}):(0,i.jsx)(o(),{src:t,layout:r?"intrinsic":"fill",objectFit:e,objectPosition:s,alt:(null==t?void 0:t.alt)||"Vehicle background",style:{width:"100%"},height:r,width:n})}var f=t=>{let{title:e="",subtitle:r="",image:n,imageObjectFit:o,imageHeight:s,imageWidth:a,buttons:l,objectPosition:u="center",overlay:f=!1}=t;return(0,i.jsx)("div",{className:f?d().Overlay:"",children:(0,i.jsxs)("div",{className:d().BannerStyle,style:{height:s&&"auto"},children:[n&&h(n,o,s,a,u),e&&(0,i.jsx)("div",{className:d().TextContainer,children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)("h1",{className:"px-4",children:e}),(0,i.jsx)("p",{className:"px-4",children:r}),(0,i.jsx)(c,{buttons:l})]})})]})})}},2537:function(t,e,r){"use strict";var i=r(57437),n=r(2265),o=r(66679),s=r(56829),a=r(99577),l=r.n(a),c=r(71611),u=r(73799),d=r(92460),h=r(35406),f=r(45912),p=r(35670),y=r.n(p);let m=t=>{let{src:e,height:r,width:n,layout:o="responsive",objectFit:s,priority:a=!1,alt:c,loader:u=d.HT}=t;return(0,i.jsx)(l(),{src:e,layout:o,loader:u,width:n,height:r,objectFit:s,priority:a,alt:c})},v=t=>{let{onClick:e}=t;return(0,i.jsx)(h.Z,{left:!0,inside:!0,className:"",onClick:e})},g=t=>{let{onClick:e}=t;return(0,i.jsx)(h.Z,{right:!0,inside:!0,className:"",onClick:e})},b=t=>{var e;let{slide:r,hide:n}=t;return r.custom_overlay?(0,i.jsx)(r.custom_overlay,{slide:r}):u.gzc?(0,i.jsx)(c.default.slider.Overlay,{slide:r}):n||!(null===(e=c.default.slider)||void 0===e?void 0:e.Overlay)||r.hide_overlay?null:(0,i.jsx)(c.default.slider.Overlay,{slide:r})};e.Z=t=>{let{slides:e,height:r,showControls:a=!0,hideDots:l=!1,overrideDelay:u=4e3,slideObjectFit:d="cover",loader:h,hideOverlay:p=!1}=t,x=e&&e.filter(t=>{var e,i;let n=!!t.image.key,o=(null===(e=t.image)||void 0===e?void 0:e.width)&&(null===(i=t.image)||void 0===i?void 0:i.height);return!n||!!o||!!r}).map((t,e)=>{let n=!!t.image.key;return(0,i.jsxs)("div",{className:y().emblaSlide+" position-relative h-100",children:[(0,i.jsx)(f.default,{href:t.url,className:"unstyled",children:n?(0,i.jsx)(m,{alt:t.name,src:t.image.key,priority:0===e,width:"intrinsic"===r?t.image.width:c.default.promotionsSlider.width,height:"intrinsic"===r?t.image.height:c.default.promotionsSlider.height,objectFit:d,loader:h}):(0,i.jsx)("video",{className:y().LgVideo,src:t.video.url,height:t.video.height,width:t.video.width,playsInline:!0,autoPlay:!0,loop:!0,muted:!0})}),(0,i.jsx)(b,{hide:p,slide:t})]},e)}),[_,w]=(0,s.Z)({skipSnaps:!1,loop:!0},[(0,o.Z)({delay:u})]),j=!!a&&x.length>1,[S,E]=(0,n.useState)(!1),[T,O]=(0,n.useState)(!1),[A,B]=(0,n.useState)(0),[P,R]=(0,n.useState)([]),k=(0,n.useCallback)(()=>w&&w.scrollPrev(),[w]),N=(0,n.useCallback)(()=>w&&w.scrollNext(),[w]),D=(0,n.useCallback)(t=>w&&w.scrollTo(t),[w]),C=(0,n.useCallback)(()=>{w&&(B(w.selectedScrollSnap()),E(w.canScrollPrev()),O(w.canScrollNext()))},[w,B]);return(0,n.useEffect)(()=>{w&&(C(),R(w.scrollSnapList()),w.on("select",C))},[w,R,C]),(0,i.jsxs)("div",{className:"position-relative",children:[(0,i.jsxs)("div",{className:"overflow-hidden",ref:_,children:[(0,i.jsx)("div",{className:"d-flex",children:x}),j&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{onClick:k,enabled:S}),(0,i.jsx)(g,{onClick:N,enabled:T})]})]}),j&&!l&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:y().Dots,children:P.map((t,e)=>(0,i.jsx)("button",{onClick:()=>D(e),className:y().button+" "+(e===A?y().active:"")},e))})})]})}},19199:function(t,e,r){var i=r(19276).w_;t.exports.L=function(t){return i({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"}}]})(t)}},2329:function(t,e,r){var i=r(19276).w_;t.exports.B=function(t){return i({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"}}]})(t)}},64741:function(t,e,r){var i=r(19276).w_;t.exports.t=function(t){return i({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}}]})(t)}},31076:function(t,e,r){var i=r(19276).w_;t.exports.Z=function(t){return i({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}}]})(t)}},81124:function(){var t;t="undefined"!=typeof self?self:this,function(e){var r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function o(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(TypeError("Already read"));t.bodyUsed=!0}function u(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function d(t){var e=new FileReader,r=u(e);return e.readAsArrayBuffer(t),r}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t){if("string"==typeof t)this._bodyText=t;else if(r.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(r.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else{var e;r.arrayBuffer&&r.blob&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t,e,r,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,r=u(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=Array(e.length),i=0;i<e.length;i++)r[i]=String.fromCharCode(e[i]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=o(t),e=s(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},l.prototype.delete=function(t){delete this.map[o(t)]},l.prototype.get=function(t){return t=o(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(o(t))},l.prototype.set=function(t,e){this.map[o(t)]=s(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),a(t)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),a(t)},l.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),a(t)},r.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var r,i,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new l(e.headers)),this.method=(i=(r=e.method||this.method||"GET").toUpperCase(),p.indexOf(i)>-1?i:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function m(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(n))}}),e}function v(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},f.call(y.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];v.redirect=function(t,e){if(-1===g.indexOf(e))throw RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(t,i){return new Promise(function(n,o){var s=new y(t,i);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),i=r.shift().trim();if(i){var n=r.join(":").trim();e.append(i,n)}}),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL"),n(new v("response"in a?a.response:a.responseText,r))},a.onerror=function(){o(TypeError("Network request failed"))},a.ontimeout=function(){o(TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),s.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}b.polyfill=!0,t.fetch||(t.fetch=b,t.Headers=l,t.Request=y,t.Response=v),e.Headers=l,e.Request=y,e.Response=v,e.fetch=b,Object.defineProperty(e,"__esModule",{value:!0})}({})},54983:function(t,e,r){"use strict";r.d(e,{default:function(){return n.a}});var i=r(85935),n=r.n(i)},95601:function(t,e){"use strict";function r(){return null}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}}),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},19188:function(t,e,r){"use strict";r.d(e,{Rn:function(){return h},VX:function(){return p},Z2:function(){return f},jg:function(){return y},qp:function(){return d},sY:function(){return u}});var i=r(66496),n=r(21180),o=r(89312),s=r(90949),a=r(69645);"".concat(s.Bq,":").concat("created_at_timestamp:desc"),(0,a.S)(["(".concat(n.default.search_filters,")"),"(status=in_stock OR status=coming_soon OR sold_date_timestamp>".concat(new Date(Date.now()-2592e5).getTime()/1e3,") AND show_on_dealer_website:true"),(0,a.e2)(null===n.default||void 0===n.default?void 0:n.default.manufacturer)].filter(t=>t).join(" AND "));let l={Authorization:"Bearer ".concat(s.AK),"Content-Type":"application/json"},c="".concat(s.gk,"multi-search");async function u(t){let{filters:e={},facetKeys:r=[],query:i="",limit:n=100,offset:s=0,sort:u=[],search_filters:d,indexUid:h,facets:f,customUrl:p,customHeaders:y}=t,m=[],v=r.length>0?r:(0,o.R)(e);v.forEach(t=>{let r=e[t];if("string"==typeof r)m.push("".concat(t,'="').concat(r,'"'));else if(Array.isArray(r)){let e=[];r.forEach(r=>{r.includes("<")||r.includes(">")?m.push(r):e.push("".concat(t,'="').concat(r,'"'))}),e.length>0&&m.push(e)}}),d&&m.push(d);let g={indexUid:h,facets:f,attributesToHighlight:["*"],highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>",limit:n,offset:s,filter:m,sort:u.length>0?u:[],q:i},b=v.map(t=>({...g,limit:1,offset:0,facets:[t],filter:m.filter(e=>{var r;return e===d||("string"==typeof e?!(null==e?void 0:e.includes(t)):!(null===(r=e[0])||void 0===r?void 0:r.includes(t)))})})),x={queries:[g,...b]},_=await fetch(null!=p?p:c,{method:"POST",headers:null!=y?y:l,body:JSON.stringify(x)});return await (0,a.pd)(_)}async function d(t){var e,r,i,n,s,a,l,c,u;let{search_filters:d,filters:h={},hitsPerPage:f,offset:p=0,query:m,sort:v,fetchHits:g}=t,b=(0,o.R)(h).sort().filter(t=>{var e;return(null===(e=h[t])||void 0===e?void 0:e.length)>0}),x=await g({search_filters:d,filters:h,facetKeys:b,limit:f,offset:p,query:m,sort:v}),_=null!==(a=null==x?void 0:x.results)&&void 0!==a?a:[],w=null===(e=_[0])||void 0===e?void 0:e.estimatedTotalHits,j=null===(r=_[0])||void 0===r?void 0:r.processingTimeMs,S=null!==(l=null===(i=_[0])||void 0===i?void 0:i.hits)&&void 0!==l?l:[],E=null!==(c=null===(n=_[0])||void 0===n?void 0:n.facetStats)&&void 0!==c?c:{},T=null!==(u=null===(s=_[0])||void 0===s?void 0:s.facetDistribution)&&void 0!==u?u:{};(0,o.R)(E).forEach(t=>{T[t]={...T[t],facetStats:E[t]}}),b.forEach((t,e)=>{var r,i;(null===(r=_[e+1])||void 0===r?void 0:r.facetDistribution)&&(T={...T,[t]:_[e+1].facetDistribution[t]}),(null===(i=_[e+1])||void 0===i?void 0:i.facetStats)&&(T={...T,[t]:{...T[t],facetStats:_[e+1].facetStats[t]}})});let O=y(_[0]);return{hits:S,count:w,ms:j,facets:T,facetStats:E,pagination:O}}async function h(t){let e,{filters:r={},query:n="",params:u={},limit:d=12,offset:h=0,search_filters:f,revalidate:p}=t,y=[],m=(0,s.JZ)();(0,o.R)(r).forEach(t=>{y.push("".concat(t,'="').concat(r[t],'"'))}),(0,o.R)(u).forEach(t=>{let r=u[t];if("sort"===t&&r)m=r;else if("q"===t&&r)e=r;else{if("recent"===t)return;let e=null==r?void 0:r.split(",");if(e){let r=[];null==e||e.forEach(e=>{e&&r.push("".concat(t,'="').concat(e,'"'))}),y.push(r)}}}),n&&y.push(n),y.push(f.replace(/:/g,"="));let v=[m],g={queries:[{indexUid:s.Bq,facets:i.Y8,attributesToHighlight:["*"],highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__",limit:d,offset:h,filter:y,sort:v,q:e}]},b=await fetch(c,{method:"POST",headers:l,body:JSON.stringify(g),next:{revalidate:p}});return await (0,a.pd)(b)}async function f(t){let{filters:e={},query:r="",limit:i=21,offset:n=0,search_filters:l}=t,u=[];(0,o.R)(e).forEach(t=>{let r=e[t];if("string"==typeof r)u.push("".concat(t,'="').concat(r,'"'));else if("object"==typeof r){let e=[];r.forEach(r=>{e.push("".concat(t,'="').concat(r,'"'))}),u.push(e)}}),l&&u.push(l);let d={queries:[{indexUid:s.qx,facets:[],attributesToHighlight:["*"],highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>",limit:i,offset:n,filter:u,q:r}]},h=await fetch(c,{method:"POST",headers:{Authorization:"Bearer 2e71a5b86c91e00b9e33609d5f91b73ee9c1baee259f948465e276940a81f606","Content-Type":"application/json"},body:JSON.stringify(d)});return await (0,a.pd)(h)}let p=async t=>{var e;let r=await h({search_filters:n.default.search_filters+" AND id=".concat(t),limit:1});return(null==r?void 0:r.results)?null==r?void 0:null===(e=r.results[0])||void 0===e?void 0:e.hits[0]:null};function y(t){if(!t)return{pages:[]};let{limit:e,estimatedTotalHits:r}=t;return{pages:Array.from({length:Math.ceil(r/e)},(t,e)=>e+1)}}},10981:function(t){t.exports={xs:"min-width: 400px",sm:"min-width: 576px","sm-down":"max-width: 576px",md:"min-width: 768px","md-down":"max-width: 768px",lg:"min-width: 992px","lg-down":"max-width: 992px",xl:"min-width: 1200px","xl-down":"max-width: 1200px",xxl:"min-width: 1400px",TextContainer:"ImageBanner_TextContainer__q0SGg",BannerStyle:"ImageBanner_BannerStyle__jrWdT",Overlay:"ImageBanner_Overlay__HoUTe"}},35670:function(t){t.exports={xs:"min-width: 400px",sm:"min-width: 576px","sm-down":"max-width: 576px",md:"min-width: 768px","md-down":"max-width: 768px",lg:"min-width: 992px","lg-down":"max-width: 992px",xl:"min-width: 1200px","xl-down":"max-width: 1200px",xxl:"min-width: 1400px",emblaSlide:"Slider_emblaSlide__vY_Uj",Dots:"Slider_Dots__xyoEW",button:"Slider_button__2JQRD",active:"Slider_active__0tylR",LgVideo:"Slider_LgVideo__hQc_0"}}}]);