(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39],{96159:function(e,n,a){"use strict";var t,r,i,l,c,s=a(67294);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},o.apply(this,arguments)}n.Z=function(e){return s.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=s.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),r||(r=s.createElement("path",{d:"M16.5 21.75C18.1569 21.75 19.5 20.4069 19.5 18.75C19.5 17.0931 18.1569 15.75 16.5 15.75C14.8431 15.75 13.5 17.0931 13.5 18.75C13.5 20.4069 14.8431 21.75 16.5 21.75Z",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),i||(i=s.createElement("path",{d:"M16.5 8.25C18.1569 8.25 19.5 6.90685 19.5 5.25C19.5 3.59315 18.1569 2.25 16.5 2.25C14.8431 2.25 13.5 3.59315 13.5 5.25C13.5 6.90685 14.8431 8.25 16.5 8.25Z",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=s.createElement("path",{d:"M13.9777 6.87189L8.52148 10.3781",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),c||(c=s.createElement("path",{d:"M8.52148 13.6219L13.9777 17.1281",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))}},66948:function(e,n,a){"use strict";a.d(n,{ri:function(){return T},Wh:function(){return P}});var t=a(14924),r=a(26042),i=a(69396),l=a(85893),c=a(67294),s=a(94184),o=a.n(s),d=a(25675),u=a.n(d),m=a(73778),p=a(15712),h=a(9657),f=a(190),y=a(87423),v=a(19865),x=a(16358),_=a(71746),g=a.n(_),j=a(91381),b=a(32494),k=a(4289),w=a(99262),N=a.n(w),I=function(e){var n=e.embedId;return(0,l.jsx)("div",{className:o()(N().youtubeEmbed),children:(0,l.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(n,"?enablejsapi=1"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})},C=a(97860),T=function(e){var n=e.galleryImages,a=e.overlayId,s=(0,c.useRef)(null),d=(0,c.useRef)(null),u=(0,c.useRef)(null),m=(0,c.useState)(0),p=m[0],y=m[1],_=(0,c.useState)(!1),w=_[0],N=_[1],I=n.length>=4?3:n.length,T=n.length>4,F=n.length>=3?2:n.length,H=n.length>3;(0,c.useEffect)((function(){var e;w&&(null===(e=d.current)||void 0===e||e.focus())}),[w]),(0,c.useEffect)((function(){var e,n;null===(n=null===(e=s.current)||void 0===e?void 0:e.children[p])||void 0===n||n.scrollIntoView({behavior:"smooth",inline:"center"})}),[p]);var M=(0,c.useCallback)((function(e){switch(e.key){case"Escape":case"Esc":return N(!1),void e.preventDefault();case"Tab":var a,t;return d.current&&document.activeElement===d.current?null===(a=u.current)||void 0===a||a.focus():null===(t=d.current)||void 0===t||t.focus(),void e.preventDefault()}if(window.matchMedia((0,f.dx)("md")).matches)switch(e.key){case"Home":return y(0),void e.preventDefault();case"End":return y(n.length-1),void e.preventDefault();case"ArrowLeft":case"Left":return y((function(e){return Math.max(0,e-1)})),void e.preventDefault();case"ArrowRight":case"Right":return y((function(e){return Math.min(n.length-1,e+1)})),void e.preventDefault()}}),[n]);return(0,l.jsxs)("div",{className:g().gallery,children:[(0,l.jsxs)("div",{className:g().default,children:[(0,l.jsx)("button",{className:"w-full",type:"button",onClick:function(){return N(!0)},children:(0,l.jsx)(P,(0,i.Z)((0,r.Z)({},n[p]),{overlayId:a,defaultWidth:800,defaultHeight:600,sizes:(0,h.J7)(["xl","800px"],["md","55vw"],"100vw"),aspect:[4,3]}))}),(0,l.jsx)("div",{className:g().galleryThumbnails,children:n.slice(0,I+1).map((function(e,t){return(0,l.jsx)(D,{onClick:function(){T&&t===I?N(!0):y(t)},overlayId:a,image:e.image,overlayText:T&&t===I?"+".concat(n.length-I," more"):void 0,defaultWidth:194,defaultHeight:145,sizes:(0,h.J7)(["xl","194px"],"13vw"),aspect:[4,3]},t)}))}),(0,l.jsx)("div",{className:o()(g().galleryThumbnails,g().galleryMobileThumbnails),children:n.slice(0,F+1).map((function(e,t){return(0,l.jsx)(D,{onClick:function(){H&&t===F?N(!0):y(t)},image:e.image,overlayId:a,overlayText:H&&t===F?"+".concat(n.length-F," more"):void 0,defaultWidth:121,defaultHeight:91,sizes:"32vw",aspect:[4,3]},t)}))})]}),(0,l.jsx)(x.Y,{hint:"dark",children:(0,l.jsxs)("div",{className:"jaguar"===(0,C.lf)()?o()(g().modal,"bg-gray-800 text-text",(0,t.Z)({},g().modalActive,w)):"landrover"===(0,C.lf)()?o()(g().modal,"bg-landroverbg text-text",(0,t.Z)({},g().modalActive,w)):o()(g().modal,"bg-goAutoBlue-900 text-text",(0,t.Z)({},g().modalActive,w)),ref:d,onKeyDown:M,tabIndex:0,children:[(0,l.jsx)("div",{className:g().modalClose,children:(0,l.jsx)(v.z,{ref:u,importance:"primary",inheritColor:!0,size:"large",variant:"text",onClick:function(){return N(!1)},className:g().modalCloseButton,children:(0,l.jsxs)("span",{className:g().modalCloseInner,children:[(0,l.jsx)(j.Z,{className:"w-16 h-16"}),"Close"]})})}),(0,l.jsxs)("div",{className:g().modalInner,children:[(0,l.jsx)(v.z,{icon:!0,importance:"primary",size:"large",variant:"outline",className:g().modalPrev,onClick:function(){return y(p-1)},disabled:0===p,"aria-label":"Previous Image",children:(0,l.jsx)(b.Z,{})}),(0,l.jsx)(v.z,{icon:!0,importance:"primary",size:"large",variant:"outline",className:g().modalNext,onClick:function(){return y(p+1)},disabled:p===n.length-1,"aria-label":"Next Image",children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("div",{className:g().modalImage,children:(0,l.jsx)(P,(0,i.Z)((0,r.Z)({},n[p]),{defaultWidth:1144,defaultHeight:858,sizes:"75vw",aspect:[4,3]}))}),(0,l.jsx)("div",{className:g().modalThumbnails,ref:s,children:n.map((function(e,n){return(0,l.jsx)(D,{onClick:function(){return y(n)},image:e.image,current:p===n,defaultWidth:256,defaultHeight:192,aspect:[4,3],sizes:(0,h.J7)(["lg","15vw"],"11vw")},n)}))}),(0,l.jsx)("div",{className:g().modalMobileImages,children:n.map((function(e,n){return(0,l.jsx)(P,{image:e.image,defaultWidth:640,defaultHeight:480,sizes:"100vw",aspect:[4,3]},n)}))})]})]})})]})},P=function(e){var n=e.image,a=e.caption,t=e.defaultWidth,r=e.defaultHeight,i=e.sizes,c=e.aspect,s=e.overlayId;return"string"===typeof n?(0,l.jsxs)("div",{className:g().galleryImage,children:[(0,l.jsx)(I,{embedId:n}),a&&(0,l.jsx)("span",{className:o()(g().caption,"typ-body-3"),children:a})]}):(0,l.jsxs)("div",{className:g().galleryImage,children:[(0,l.jsx)(F,{image:n,overlayId:s,defaultWidth:t,defaultHeight:r,sizes:i,aspect:c}),a&&(0,l.jsx)("span",{className:o()(g().caption,"typ-body-3"),children:a})]})},F=function(e){var n,a=e.image,t=e.defaultWidth,c=e.defaultHeight,s=e.sizes,o=e.aspect,d=e.layout,f=e.overlayId;return"photo_service_id"in a?(0,l.jsx)(u(),{src:a.photo_service_id,alt:"",loader:(0,p.MC)(o,f),width:"fill"===d?void 0:t,height:"fill"===d?void 0:c,sizes:s,layout:d}):(0,l.jsx)(m.ZP,{imgixParams:(0,i.Z)((0,r.Z)({},(0,h.$j)(a)),{ar:"".concat(o[0],":").concat(o[1])}),src:a.url,htmlAttributes:{alt:null!==(n=a.alt)&&void 0!==n?n:void 0,width:a.width,height:a.height},sizes:s})},D=function(e){var n=e.image,a=e.current,r=void 0!==a&&a,i=e.overlayText,s=e.onClick,d=e.defaultHeight,u=e.defaultWidth,m=e.sizes,p=e.aspect,h=e.overlayId,f=(0,c.useRef)(null),v=(0,y.i)({poolRef:f}),x=(0,c.useCallback)((function(e){v(e),s()}),[v,s]);return(0,l.jsxs)("button",{className:o()(g().thumbnail,(0,t.Z)({},g().current,r)),onClick:x,type:"button",children:["string"===typeof n?(0,l.jsx)("img",{src:"https://img.youtube.com/vi/".concat(n,"/0.jpg"),width:u,height:d}):(0,l.jsx)(F,{image:n,overlayId:h,defaultWidth:u,defaultHeight:d,sizes:m,aspect:p,layout:"fill"}),(0,l.jsx)("div",{ref:f,className:o()("ripple-pool",g().pool)}),i&&(0,l.jsx)("span",{className:g().thumbnailOverlay,children:(0,l.jsx)("span",{children:i})})]})}},92332:function(e,n,a){"use strict";a.d(n,{Y:function(){return v}});var t=a(85893),r=a(94184),i=a.n(r),l=a(67294),c=a(16358),s=a(19865),o=a(21139),d=a.n(o),u=a(90181),m=a(6158),p=a.n(m),h=(a(81634),a(48936)),f=a(56902),y=a(97860);p().accessToken="pk.eyJ1IjoiZ29hdXRvIiwiYSI6ImNsMzF5cGt0aDI0NDMzanAybXhsMTBydG4ifQ.2p7BOxbCajHVlXqzFac8gw";var v=function(e){var n=e.lng,a=e.lat,r=e.zoom,o=void 0===r?12:r,m=e.directionsHref,v=e.children,x=(0,l.useRef)({lng:n,lat:a,zoom:o}),_=(0,l.useRef)(null),g=(0,l.useRef)(null),j=(0,l.useRef)(null);return(0,l.useEffect)((function(){var e,t;if(null!=n&&null!=a){if(null==g.current||null==j.current)return x.current.lng=n,void(x.current.lat=a);null===(e=g.current)||void 0===e||e.setCenter([n,a]),null===(t=j.current)||void 0===t||t.setLngLat([n,a])}}),[n,a]),(0,l.useEffect)((function(){var e;null!=g.current&&null!=j.current?null===(e=g.current)||void 0===e||e.setZoom(o):x.current.zoom=o}),[o]),(0,l.useEffect)((function(){if(null!=x.current.lng&&null!=x.current.lat&&null!=_.current&&null==g.current){var e=[x.current.lng,x.current.lat];g.current=new(p().Map)({container:_.current,style:"mapbox://styles/mapbox/streets-v11",center:e,zoom:x.current.zoom,logoPosition:"top-left",cooperativeGestures:!0});var n=document.createElement("div");return n.className=d().marker,j.current=new(p().Marker)(n).setLngLat(e).addTo(g.current),function(){var e,n;null===(e=j.current)||void 0===e||e.remove(),j.current=null,null===(n=g.current)||void 0===n||n.remove(),g.current=null}}}),[]),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:i()(d().headline,"typ-headline-6 md:typ-headline-4"),children:"Location"}),(0,t.jsxs)("div",{className:d().inner,children:[(0,t.jsxs)("div",{className:d().mapWrapper,children:[(0,t.jsx)("div",{ref:_,className:d().map}),(0,t.jsx)(c.Y,{hint:"dark",children:(0,t.jsx)(s.Z,{importance:"primary",size:"small",variant:"fill",href:m,className:d().button,target:"_blank",rel:"noopener noreferrer",appendExternalIcon:!1,onClick:function(){h.c.track(f.uJ.GET_DIRECTIONS,{global_site_id:(0,y.EZ)()})},children:(0,t.jsxs)("span",{className:"flex items-center gap-4",children:[(0,t.jsx)(u.Z,{}),(0,t.jsx)("span",{children:"Get directions"})]})})})]}),(0,t.jsx)("div",{className:i()(d().content,"typ-body-2"),children:v})]})]})}},97390:function(e,n,a){"use strict";a.d(n,{XP:function(){return M},o6:function(){return p},n9:function(){return h},UG:function(){return P}});var t=a(85893),r=a(94184),i=a.n(r),l=a(41181),c=a(72288),s=a(16358),o=a(39427),d=a(79860),u=a.n(d),m=a(86883),p=function(e){var n=e.formHeadline,a=e.form,r=e.paymentDetailsHeadline,l=e.children,c=e.showCallForPrice,d=void 0!==c&&c;return(0,t.jsx)(s.Y,{hint:"light",children:(0,t.jsx)("div",{className:i()(u().paymentOption,"bg-gray-50 text-text"),children:d?(0,t.jsx)("h4",{className:"typ-headline-4 center-text",children:"Call for price"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:u().form,children:[n&&(0,t.jsx)("h4",{className:i()(u().formHeadline,"typ-headline-6"),children:n}),a]}),(0,t.jsx)(o.i,{color:"gray",width:"1",className:"mt-16 mb-24 md:mx-48 md:my-0 md:border-l md:h-full"}),(0,t.jsxs)("div",{className:u().paymentDetails,children:[r&&(0,t.jsx)("h4",{className:i()(u().paymentDetailsHeadline,"typ-headline-6"),children:r}),l]})]})})})},h=function(e){var n=e.price,a=e.period,r=e.moreInformation,s=e.aprRate;return(0,t.jsxs)("div",{className:u().paymentOptionDetailsWrapper,children:[(0,t.jsxs)("div",{className:u().paymentOptionDetails,children:[(0,t.jsxs)("h5",{className:i()(u().pricing,"typ-headline-3"),children:[(0,l.Mn)(Math.max(0,n)),!a&&(0,t.jsx)("span",{className:"typ-body-3",children:"plus taxes"})]}),a&&(0,t.jsxs)("span",{className:u().priceFrequency,children:["/ ",a," ",(0,t.jsx)("span",{className:"typ-body-3",children:"plus taxes"})]}),r&&(0,t.jsx)("div",{className:u().moreInformation,children:(0,t.jsxs)(c.DY,{children:[(0,t.jsx)("span",{children:(0,t.jsx)(m.Z,{})}),(0,t.jsx)(c.u,{anchorSide:"top",anchorAlignment:"end",children:r})]})})]}),(0,t.jsx)("p",{className:i()(u().aprRate,"typ-body-3"),children:s})]})},f=a(67294),y=a(1010),v=a(40129),x=a(97860),_=a(73534),g=a(64203),j=a(95025),b=a(99030),k=a(19865),w=a(25201),N=a(48936),I=a(56902),C=(0,t.jsx)(b.SQ,{position:"left","aria-label":"currency",children:(0,t.jsx)(w.Z,{})}),T=function(e){return e.map((function(e,n){var a="discount"==e.price_modifier_type_name||"rebate"==e.price_modifier_type_name,r="addon"==e.price_modifier_type_name?"Add-ons (".concat((0,_.LF)(e.price_description),")"):e.price_description?(0,_.LF)(e.price_description):"discount"==e.price_modifier_type_name?"Dealer Discounts":"rebate"==e.price_modifier_type_name?"Manufacturer Rebates":"",i=(0,y.id)("list_price",e.value);return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:a?(0,t.jsx)("strong",{children:r}):r}),(0,t.jsx)("td",{children:a?(0,t.jsx)("strong",{children:"(".concat(i,")")}):i})]},n)}))},P=function(e){var n,a,r,i,c,s,o,d,u,m,_,w,P=e.currentTab,F=e.onCurrentTabChange,D=e.vehicle,H=e.getTradeInValuePage,M=e.vdpGetFinancingPage,z=e.contactUrl,Z=e.showCallForPriceOnLeaseRate,E=void 0!==Z&&Z,L=function(e){var n=e.vehicle,a=e.siteId,t=e.formType,r=e.leadId,i=e.prefContact;N.c.track(I.uJ.FORM_SHOWN,{global_site_id:a,formType:t,displayType:"in-page",formVehicle:{status:n.stock_type||"",year:n.year||"",make:n.make_name||"",model:n.model_name||"",trim:n.trim||n.trim||"",vin:n.vin||"",msrp:n.msrp||"",displayPrice:n.list_price||""},leadId:r,leadType:"lead",prefContact:i})},S=(0,f.useState)(null!==(s=null===D||void 0===D?void 0:D.default_down_payment)&&void 0!==s?s:0),O=S[0],W=S[1],R=(0,f.useState)(0),A=R[0],q=R[1],B=null===D||void 0===D||null===(n=D.detailed_pricing)||void 0===n?void 0:n.filter((function(e){return!0===e.finance})),V=(0,f.useState)(D.lowest_biweekly_finance_payment_term&&D.lowest_biweekly_finance_payment_rate?"".concat(D.lowest_biweekly_finance_payment_term,"@").concat(D.lowest_biweekly_finance_payment_rate):"default"),X=V[0],G=V[1],Y=(0,f.useState)(null!==(o=D.lowest_biweekly_finance_payment_term)&&void 0!==o?o:0),U=Y[0],Q=Y[1],J=(0,f.useState)(null!==(d=D.lowest_biweekly_finance_payment_rate)&&void 0!==d?d:0),K=J[0],$=J[1],ee=(0,f.useState)(26),ne=ee[0],ae=ee[1],te=(0,f.useState)("bi-weekly"),re=te[0],ie=te[1],le=null===D||void 0===D||null===(a=D.detailed_pricing)||void 0===a?void 0:a.filter((function(e){return!0===e.lease})),ce=(0,f.useState)(null!==(u=D.lowest_lease_apr_term)&&void 0!==u?u:0),se=ce[0],oe=ce[1],de=(0,f.useState)(null!==(m=D.lowest_lease_apr)&&void 0!==m?m:0),ue=de[0],me=de[1],pe=(0,f.useState)(26),he=pe[0],fe=pe[1],ye=(0,f.useState)("bi-weekly"),ve=ye[0],xe=ye[1],_e=(0,f.useState)(null!==(_=null===(r=D.lease_rates.filter((function(e){var n=e.months,a=e.rate;return se===n&&ue===a}))[0])||void 0===r?void 0:r.id.toString())&&void 0!==_?_:"default"),ge=_e[0],je=_e[1],be=(0,f.useState)(null!==(w=null===(i=D.lease_rates.filter((function(e){var n=e.months,a=e.rate;return se===n&&ue===a}))[0])||void 0===i?void 0:i.residual_percent)&&void 0!==w?w:0),ke=be[0],we=be[1],Ne=null===D||void 0===D||null===(c=D.detailed_pricing)||void 0===c?void 0:c.filter((function(e){return!0===e.cash})),Ie=[],Ce={tab:(0,f.useId)(),panel:(0,f.useId)(),finance:{downPayment:(0,f.useId)(),tradeInValue:(0,f.useId)(),paymentTerm:(0,f.useId)(),frequency:{weekly:(0,f.useId)(),biWeekly:(0,f.useId)(),monthly:(0,f.useId)()}},lease:{downPayment:(0,f.useId)(),tradeInValue:(0,f.useId)(),paymentTerm:(0,f.useId)(),frequency:{weekly:(0,f.useId)(),biWeekly:(0,f.useId)(),monthly:(0,f.useId)()}},cash:{tradeInValue:(0,f.useId)()}};if(D.detailed_price_finance){var Te=v.r5.payment(D.detailed_price_finance-O-A,.01*K,U/12*ne,0,0,ne),Pe=Te*(U/12)*ne-(D.detailed_price_finance-O-A),Fe=(0,t.jsx)("p",{children:"The cost of borrowing for this vehicle is ".concat((0,l.Mn)(Math.max(0,Pe))," plus taxes based on financing for ").concat(U," months at ").concat((0,y.id)("lowest_finance_apr",K),".")}),De=(0,x.xS)();Ie.push({handle:"finance",label:"Finance",contents:(0,t.jsx)(p,{formHeadline:"Calculate your payment",form:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(b.gN,{className:"mb-24",children:[(0,t.jsx)(b.oH,{id:Ce.finance.downPayment,label:"Down payment",iconLeft:C,type:"number",step:500,min:0,value:O||"",onChange:function(e){return W(e.currentTarget.value?parseInt(e.currentTarget.value):0)}}),(0,t.jsx)(b.oH,{id:Ce.finance.tradeInValue,label:"Trade-in value",iconLeft:C,type:"number",step:500,min:0,value:A||"",onChange:function(e){return q(e.currentTarget.value?parseInt(e.currentTarget.value):0)},actionBelow:H?(0,t.jsx)(g.r,{className:"underline text-goAutoBlue-500",href:"/vehicles/".concat(D.item_key,"/get-estimate"),children:"Get trade-in value"}):void 0})]}),(null===D||void 0===D?void 0:D.finance_rates)&&(0,t.jsx)(b.gN,{className:"mb-24",children:(0,t.jsxs)(b.JD,{id:Ce.finance.paymentTerm,label:"Payment term",value:X,onChange:function(e){G(e),e.indexOf("@")&&(Q(parseInt(e.substring(0,e.indexOf("@")))),$(parseFloat(e.substring(e.indexOf("@")+1))))},children:[(0,t.jsx)(b.H4,{value:"default",disabled:!0,children:"Please select"}),(0===D.finance_rates.length?[{months:D.lowest_biweekly_finance_payment_term,rate:D.lowest_biweekly_finance_payment_rate,id:"lowest"}]:D.finance_rates).map((function(e){var n=e.months,a=e.rate,r=e.id;return(0,t.jsx)(b.H4,{value:"".concat(n,"@").concat(a),children:(0,t.jsxs)(t.Fragment,{children:[n," months @ ",a,"%"]})},r)}))]})}),(0,t.jsx)(b.gN,{className:"md:mb-24",children:(0,t.jsxs)(b.Ds,{legend:"Payment frequency",children:[(0,t.jsx)(b.X3,{id:Ce.finance.frequency.weekly,label:"Weekly",value:"weekly",name:"payment-finance",checked:52===ne,onChange:function(e){ae(52),ie(e.currentTarget.value)}}),(0,t.jsx)(b.X3,{id:Ce.finance.frequency.biWeekly,label:"Bi\u2011weekly",value:"bi-weekly",name:"payment-finance",checked:26===ne,onChange:function(e){ae(26),ie(e.currentTarget.value)}}),(0,t.jsx)(b.X3,{id:Ce.finance.frequency.monthly,label:"Monthly",value:"monthly",name:"payment-finance",checked:12===ne,onChange:function(e){ae(12),ie(e.currentTarget.value)}})]})})]}),paymentDetailsHeadline:"Your payment",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{price:Te,period:re,aprRate:"at our best rate ".concat((0,y.id)("lowest_finance_apr",K)," APR"),moreInformation:Fe}),B&&(0,t.jsx)("table",{className:"mx-auto",children:(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,x.hk)()&&"NEW"===D.stock_type?"MSRP":D.regular_price===D.detailed_price_finance?"Vehicle Price":"Original Price"}),(0,t.jsx)("td",{children:null==D.regular_price?void 0:(0,y.id)("regular_price",D.regular_price)})]}),T(B),!(0,x.tN)((0,x.EZ)())&&(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:20===(0,x.EZ)()?"Documentation Fees":"Extra Fees"}),(0,t.jsx)("td",{children:"Never"})]})]})}),M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Z,{href:"/vehicles/".concat(D.item_key,"/pre-approval"),importance:"primary",size:"large",variant:"fill",width:"standard",className:"block max-w-[300px] mx-auto mt-24 md:mt-32",onClick:function(){return L({vehicle:D,siteId:(0,x.EZ)(),formType:I.e5.FINANCE,leadId:(0,I.GQ)("Pre-Approval-Finance-Tab",I.e5.FINANCE,(0,x.$2)()),prefContact:I.xL.PHONE})},children:"Start pre-approval"}),De&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Z,{importance:"primary",variant:"outline",size:"large",className:"block max-w-[300px] mx-auto mt-24 md:mt-16",href:"/vehicles/".concat(D.item_key,"/pre-qualify"),children:"Check my credit"}),(0,t.jsxs)("div",{className:"flex items-center justify-center mx-auto md:max-w-[360px] mt-8",children:[(0,t.jsx)("p",{className:"typ-body-3 mr-8 ",children:"Powered by"}),(0,t.jsx)("img",{src:"/images/equifax/equifax_logo_dark.png",alt:"Equifax Logo"})]}),(0,t.jsx)("p",{className:"typ-legal flex justify-center mx-auto md:max-w-[360px]",children:"This has no impact on your credit score"})]})]})]})})})}if(D.detailed_price_lease&&D.lease_rates.length>0){var He,Me=v.r5.leasePayment(D.detailed_price_lease-O-A,.01*ue,se,ke/100*(null!==(He=D.msrp)&&void 0!==He?He:D.regular_price),he,0),ze=Math.max(0,ke/100*(D.detailed_price_lease-O-A)),Ze=(0,t.jsxs)("p",{children:["Lease payment calculated at ",(0,y.id)("lowest_finance_apr",ue)," ","for ",se," months with ",(0,l.Mn)(Math.max(0,O))," ","down",A>0&&" and ".concat((0,l.Mn)(A)," from your trade-in"),". Residual value is ",(0,l.Mn)(ze),". Annual kilometre restrictions apply. See dealer for details."]});Ie.push({handle:"lease",label:"Lease",contents:(0,t.jsx)(p,{formHeadline:"Calculate your payment",form:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(b.gN,{className:"mb-24",children:[(0,t.jsx)(b.oH,{id:Ce.lease.downPayment,label:"Down payment",iconLeft:C,type:"number",step:500,min:0,value:O||"",onChange:function(e){return W(e.currentTarget.value?parseInt(e.currentTarget.value):0)}}),(0,t.jsx)(b.oH,{id:Ce.lease.tradeInValue,label:"Trade-in value",iconLeft:C,type:"number",step:500,min:0,value:A||"",onChange:function(e){return q(e.currentTarget.value?parseInt(e.currentTarget.value):0)},actionBelow:H?(0,t.jsx)(g.r,{className:"underline text-goAutoBlue-500",href:"/vehicles/".concat(D.item_key,"/get-estimate"),children:"Get trade-in value"}):void 0})]}),(null===D||void 0===D?void 0:D.lease_rates)&&(0,t.jsx)(b.gN,{className:"mb-24",children:(0,t.jsxs)(b.JD,{id:Ce.lease.paymentTerm,label:"Payment term",value:ge||"",onChange:function(e){je(e);var n,a=D.lease_rates.filter((function(n){var a=n.id;return e===a.toString()}))[0];oe(a.months),me(a.rate),we(null!==(n=null===a||void 0===a?void 0:a.residual_percent)&&void 0!==n?n:0)},children:[(0,t.jsx)(b.H4,{value:"default",disabled:!0,children:"Please select"}),D.lease_rates.map((function(e){var n=e.months,a=e.rate,r=e.id;return(0,t.jsxs)(b.H4,{value:r.toString(),children:[n," months @ ",a,"%"]},r)}))]})}),(0,t.jsx)(b.gN,{className:"md:mb-24",children:(0,t.jsxs)(b.Ds,{legend:"Payment frequency",children:[(0,t.jsx)(b.X3,{id:Ce.lease.frequency.weekly,label:"Weekly",value:"weekly",name:"payment-lease",checked:52===he,onChange:function(e){fe(52),xe(e.currentTarget.value)}}),(0,t.jsx)(b.X3,{id:Ce.lease.frequency.biWeekly,label:"Bi\u2011weekly",value:"bi-weekly",name:"payment-lease",checked:26===he,onChange:function(e){fe(26),xe(e.currentTarget.value)}}),(0,t.jsx)(b.X3,{id:Ce.lease.frequency.monthly,label:"Monthly",value:"monthly",name:"payment-lease",checked:12===he,onChange:function(e){fe(12),xe(e.currentTarget.value)}})]})})]}),showCallForPrice:E,paymentDetailsHeadline:"Your payment",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{price:Me,period:ve,aprRate:"at our best rate ".concat((0,y.id)("lowest_lease_apr",ue)," APR"),moreInformation:Ze}),le&&(0,t.jsx)("table",{className:"mx-auto",children:(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,x.hk)()&&"NEW"===D.stock_type?"MSRP":D.regular_price===D.detailed_price_finance?"Vehicle Price":"Original Price"}),(0,t.jsx)("td",{children:null==D.regular_price?void 0:(0,y.id)("regular_price",D.regular_price)})]}),T(le)]})}),M&&(0,t.jsx)(k.Z,{href:"/vehicles/".concat(D.item_key,"/pre-approval"),importance:"primary",size:"large",variant:"fill",width:"standard",className:"block max-w-[300px] mx-auto mt-24 md:mt-32",onClick:function(){return L({vehicle:D,siteId:(0,x.EZ)(),formType:I.e5.FINANCE,leadId:(0,I.GQ)("Pre-Approval-Lease-Tab",I.e5.FINANCE,(0,x.$2)()),prefContact:I.xL.PHONE})},children:"Start pre-approval"})]})})})}return D.list_price&&Ie.push({handle:"cash",label:"Price",contents:(0,t.jsx)(p,{formHeadline:"Apply your trade-in",form:(0,t.jsx)(b.gN,{children:(0,t.jsx)(b.oH,{id:Ce.cash.tradeInValue,label:"Trade-in value",iconLeft:C,type:"number",step:500,min:0,value:A||"",onChange:function(e){return q(e.currentTarget.value?parseInt(e.currentTarget.value):0)},actionBelow:H?(0,t.jsx)(g.r,{className:"underline text-goAutoBlue-500",href:"/vehicles/".concat(D.item_key,"/get-estimate"),children:"Get trade-in value"}):void 0})}),paymentDetailsHeadline:"Your price",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{price:D.detailed_price_cash-A}),Ne&&(0,t.jsx)("table",{className:"mx-auto",children:(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,x.hk)()&&"NEW"===D.stock_type?"MSRP":D.regular_price===D.detailed_price_finance?"Vehicle Price":"Original Price"}),(0,t.jsx)("td",{children:null==D.regular_price?void 0:(0,y.id)("regular_price",D.regular_price)})]}),T(Ne)]})}),z&&(0,t.jsx)(k.Z,{href:z,importance:"primary",size:"large",variant:"outline",width:"standard",className:"block max-w-[300px] mx-auto mt-16",children:"Request information"})]})})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.mQ,{"aria-label":"Payment Option Details",onTabChange:function(e){return F(e.dataset.handle)},children:Ie.map((function(e){var n=e.handle,a=e.label;return(0,t.jsx)(j.OK,{"data-handle":n,id:"".concat(Ce.tab,"--").concat(n),"aria-controls":"".concat(Ce.panel,"--").concat(n),selected:P===n,children:a},n)}))}),Ie.map((function(e){var n=e.handle,a=e.contents;return(0,t.jsx)("div",{id:"".concat(Ce.panel,"--").concat(n),"aria-labelledby":"".concat(Ce.tab,"--").concat(n),hidden:P!==n,children:a},n)}))]})},F=a(67370),D=(0,t.jsx)(b.SQ,{position:"left","aria-label":"currency",children:(0,t.jsx)(w.Z,{})}),H=function(e){return e.map((function(e,n){var a="discount"==e.priceModifierTypeName||"rebate"==e.priceModifierTypeName,r="addon"==e.priceModifierTypeName?"Add-ons (".concat((0,_.LF)(e.priceDescription),")"):e.priceDescription?(0,_.LF)(e.priceDescription):"discount"==e.priceModifierTypeName?"Dealer Discounts":"rebate"==e.priceModifierTypeName?"Manufacturer Rebates":"",i=(0,F.id)("listPrice",e.value);return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:a?(0,t.jsx)("strong",{children:r}):r}),(0,t.jsx)("td",{children:a?(0,t.jsx)("strong",{children:"(".concat(i,")")}):i})]},n)}))},M=function(e){var n,a,r,i,c,s=e.currentTab,o=e.onCurrentTabChange,d=e.vehicle,u=e.getTradeInValueComponent,m=e.vdpGetFinancingPage,y=e.contactUrl,x=(0,f.useState)(null!==(r=null===d||void 0===d?void 0:d.defaultDownPayment)&&void 0!==r?r:0),_=x[0],g=x[1],w=(0,f.useState)(0),N=w[0],I=w[1],C=null===d||void 0===d||null===(n=d.detailedPricing)||void 0===n?void 0:n.filter((function(e){return!0===e.allowFinance})),T=null!==(i=d.lowestBiweeklyFinancePaymentTerm)&&void 0!==i?i:0,P=null!==(c=d.lowestBiweeklyFinancePaymentRate)&&void 0!==c?c:0,M=(0,f.useState)(26),z=M[0],Z=M[1],E=(0,f.useState)("bi-weekly"),L=E[0],S=E[1],O=null===d||void 0===d||null===(a=d.detailedPricing)||void 0===a?void 0:a.filter((function(e){return!0===e.allowCash})),W=[],R={tab:(0,f.useId)(),panel:(0,f.useId)(),finance:{downPayment:(0,f.useId)(),tradeInValue:(0,f.useId)(),paymentTerm:(0,f.useId)(),frequency:{weekly:(0,f.useId)(),biWeekly:(0,f.useId)(),monthly:(0,f.useId)()}},cash:{tradeInValue:(0,f.useId)()}};if(d.specialPriceFinance){var A=v.r5.payment(d.specialPriceFinance-_-N,.01*P,T/12*z,0,0,z),q=A*(T/12)*z-(d.specialPriceFinance-_-N),B=(0,t.jsx)("p",{children:"The cost of borrowing for this vehicle is ".concat((0,l.Mn)(Math.max(0,q))," plus taxes based on financing for ").concat(T," months at ").concat((0,F.id)("lowest_finance_apr",P),".")});W.push({handle:"finance",label:"Finance",contents:(0,t.jsx)(p,{formHeadline:"Calculate your payment",form:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(b.gN,{className:"mb-24",children:[(0,t.jsx)(b.oH,{id:R.finance.downPayment,label:"Down payment",iconLeft:D,type:"number",step:500,min:0,value:_||"",onChange:function(e){return g(e.currentTarget.value?parseInt(e.currentTarget.value):0)}}),(0,t.jsx)(b.oH,{id:R.finance.tradeInValue,label:"Trade-in value",iconLeft:D,type:"number",step:500,min:0,value:N||"",onChange:function(e){return I(e.currentTarget.value?parseInt(e.currentTarget.value):0)},actionBelow:u})]}),(0,t.jsx)(b.gN,{className:"md:mb-24",children:(0,t.jsxs)(b.Ds,{legend:"Payment frequency",children:[(0,t.jsx)(b.X3,{id:R.finance.frequency.weekly,label:"Weekly",value:"weekly",name:"payment-finance",checked:52===z,onChange:function(e){Z(52),S(e.currentTarget.value)}}),(0,t.jsx)(b.X3,{id:R.finance.frequency.biWeekly,label:"Bi\u2011weekly",value:"bi-weekly",name:"payment-finance",checked:26===z,onChange:function(e){Z(26),S(e.currentTarget.value)}}),(0,t.jsx)(b.X3,{id:R.finance.frequency.monthly,label:"Monthly",value:"monthly",name:"payment-finance",checked:12===z,onChange:function(e){Z(12),S(e.currentTarget.value)}})]})})]}),paymentDetailsHeadline:"Your payment",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{price:A,period:L,aprRate:"at our best rate ".concat((0,F.id)("lowest_finance_apr",P)," APR"),moreInformation:B}),C&&(0,t.jsx)("table",{className:"mx-auto",children:(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:d.regularPrice===d.specialPriceFinance?"Vehicle Price":"Original Price"}),(0,t.jsx)("td",{children:null==d.regularPrice?void 0:(0,F.id)("regularPrice",d.regularPrice)})]}),H(C),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:"Extra Fees"}),(0,t.jsx)("td",{children:"Never"})]})]})}),m]})})})}return d.listPrice&&W.push({handle:"cash",label:"Cash",contents:(0,t.jsx)(p,{formHeadline:"Apply your trade-in",form:(0,t.jsx)(b.gN,{children:(0,t.jsx)(b.oH,{id:R.cash.tradeInValue,label:"Trade-in value",iconLeft:D,type:"number",step:500,min:0,value:N||"",onChange:function(e){return I(e.currentTarget.value?parseInt(e.currentTarget.value):0)},actionBelow:u})}),paymentDetailsHeadline:"Your price",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{price:d.specialPriceCash-N}),O&&(0,t.jsx)("table",{className:"mx-auto",children:(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:d.regularPrice===d.specialPriceCash?"Vehicle Price":"Original Price"}),(0,t.jsx)("td",{children:null==d.regularPrice?void 0:(0,F.id)("regularPrice",d.regularPrice)})]}),H(O)]})}),y&&(0,t.jsx)(k.Z,{href:y,importance:"primary",size:"large",variant:"outline",width:"standard",className:"block max-w-[300px] mx-auto mt-16",children:"Request information"})]})})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.mQ,{"aria-label":"Payment Option Details",onTabChange:function(e){return o(e.dataset.handle)},children:W.map((function(e){var n=e.handle,a=e.label;return(0,t.jsx)(j.OK,{"data-handle":n,id:"".concat(R.tab,"--").concat(n),"aria-controls":"".concat(R.panel,"--").concat(n),selected:s===n,children:a},n)}))}),W.map((function(e){var n=e.handle,a=e.contents;return(0,t.jsx)("div",{id:"".concat(R.panel,"--").concat(n),"aria-labelledby":"".concat(R.tab,"--").concat(n),hidden:s!==n,children:a},n)}))]})};a(28937)},67493:function(e,n,a){"use strict";a.d(n,{q:function(){return h}});var t=a(14924),r=a(85893),i=a(67294),l=a(94184),c=a.n(l),s=a(190),o=a(16358),d=a(19865),u=a(35973),m=a.n(u),p=a(95424),h=(0,i.forwardRef)((function(e,n){var a=e.className,i=e.year,l=e.make,u=e.model,h=e.trim,f=e.onBook,y=e.favorited,v=void 0!==y&&y,x=e.onFavorite,_=e.bookingUrl,g=e.contactUrl,j=(0,s.Gc)("md")?"large":"small";return(0,r.jsx)("div",{className:c()(a,m().wrapper,"light"===(0,o.T)()?m().contextLight:m().contextDark),ref:n,children:(0,r.jsxs)("div",{className:c()(m().inner,"container"),children:[(0,r.jsxs)("div",{className:"typ-body-3",children:[(0,r.jsxs)("h5",{className:"md:typ-headline-6",children:[i," ",l," ",u]}),h&&(0,r.jsx)("p",{className:c()(m().trim,"md:typ-body-2"),children:h})]}),(0,r.jsxs)("div",{className:m().buttons,children:[g&&(0,r.jsx)(d.Z,{importance:"primary",size:j,variant:"outline",className:m().contact,href:g,children:"Contact us"}),_&&(0,r.jsx)(d.Z,{importance:"primary",size:j,variant:"fill",onClick:f,className:c()(m().book,"lg:px-48"),href:_,children:"Book a test drive"}),(0,r.jsx)(d.z,{icon:!0,importance:"primary",size:"small",variant:"outline",onClick:x,className:c()(m().favorite,"hidden",(0,t.Z)({},m().filled,v)),children:(0,r.jsx)(p.Z,{width:"24",height:"24"})})]})]})})}))},71746:function(e){e.exports={gallery:"gallery_gallery__5rJR5",galleryImage:"gallery_galleryImage__2twE6",caption:"gallery_caption__IUPL_",galleryThumbnails:"gallery_galleryThumbnails__yRUP9",galleryMobileThumbnails:"gallery_galleryMobileThumbnails__dpZ1B",thumbnail:"gallery_thumbnail__HFFZ_",thumbnailOverlay:"gallery_thumbnailOverlay__FsxSK",modal:"gallery_modal__OXovm",modalActive:"gallery_modalActive__ZlSL5",modalInner:"gallery_modalInner__sdpO0",modalClose:"gallery_modalClose__234yr",modalCloseInner:"gallery_modalCloseInner__AapMx",modalPrev:"gallery_modalPrev__5aH_w",modalNext:"gallery_modalNext__QxX51",modalImage:"gallery_modalImage__58UUi",modalMobileImages:"gallery_modalMobileImages__CpSQB",modalThumbnails:"gallery_modalThumbnails__jwLDc",current:"gallery_current__a_XsN",pool:"gallery_pool__fWScU"}},21139:function(e){e.exports={headline:"location_headline__SUO2Z",inner:"location_inner__NSX8U",mapWrapper:"location_mapWrapper__jf6QQ",map:"location_map__S8MMs",marker:"location_marker__S5YIm",button:"location_button__zX7JH",content:"location_content__CFlMS"}},79860:function(e){e.exports={paymentOption:"payment-option_paymentOption__4E8rQ",formHeadline:"payment-option_formHeadline__byVMx",paymentDetailsHeadline:"payment-option_paymentDetailsHeadline__dvbcO",paymentOptionDetailsWrapper:"payment-option_paymentOptionDetailsWrapper__qGNWA",paymentOptionDetails:"payment-option_paymentOptionDetails__ayyfh",pricing:"payment-option_pricing__LOECL",moreInformation:"payment-option_moreInformation__I0P0Y",aprRate:"payment-option_aprRate__xfRCh",discountText:"payment-option_discountText__kWtJX",detailButton:"payment-option_detailButton__9GAz_",text:"payment-option_text__VjUmm",stackedPaymentOption:"payment-option_stackedPaymentOption__KYFu_",mazdaOutline:"payment-option_mazdaOutline__DNgYW",mazdaText:"payment-option_mazdaText__swx9Z",mazdaIcon:"payment-option_mazdaIcon__3ZGnC"}},35973:function(e){e.exports={wrapper:"vdp-navigation_wrapper__0UPjT",contextDark:"vdp-navigation_contextDark__wzYbm",inner:"vdp-navigation_inner__mptFv",trim:"vdp-navigation_trim__y461z",buttons:"vdp-navigation_buttons__6WvTL",book:"vdp-navigation_book__gRD_1",contact:"vdp-navigation_contact__uRmT4",favorite:"vdp-navigation_favorite__K7y5Z",filled:"vdp-navigation_filled__igAT1"}},99262:function(e){e.exports={youtubeEmbed:"youtube-embed_youtubeEmbed__EjKWk"}}}]);