(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5267],{88324:function(e,t,r){"use strict";var a=r(57437);r(2265),t.Z=e=>(0,a.jsxs)("svg",{viewBox:"0 0 512 512",...e,children:[(0,a.jsx)("path",{fill:"currentColor",d:"M344.131 104.918c-56.755 0-106.985 28.338-137.383 71.579-21.62-13.893-46.536-21.219-72.453-21.219C60.245 155.279 0 215.523 0 289.574c0 47.844 25.767 92.44 67.246 116.383a8.376 8.376 0 0 0 4.196 1.125h125.706c1.473 0 2.92-.387 4.197-1.125a134.495 134.495 0 0 0 22.365-16.188 170.933 170.933 0 0 0 17.369 15.542 8.393 8.393 0 0 0 5.157 1.771h195.791a8.395 8.395 0 0 0 5.157-1.771C488.375 373.238 512 324.935 512 272.787c0-92.564-75.305-167.869-167.869-167.869zM194.858 390.295h-52.169v-25.18a8.393 8.393 0 0 0-16.786 0v25.18h-52.17a117.201 117.201 0 0 1-24.425-19.632L69.71 350.26a8.39 8.39 0 0 0-.001-11.869 8.391 8.391 0 0 0-11.87 0l-19.251 19.252c-13.923-19.609-21.8-43.341-21.8-68.07h25.18a8.393 8.393 0 0 0 0-16.786H18.005c3.57-24.842 14.942-47.183 31.541-64.486l16.686 16.686a8.368 8.368 0 0 0 5.935 2.459c2.147 0 4.296-.82 5.934-2.459a8.39 8.39 0 0 0 .001-11.869l-16.09-16.09c17.883-13.999 39.897-22.927 63.889-24.63v24.847a8.393 8.393 0 0 0 16.786 0V172.37c19.689 1.384 38.509 7.633 55.1 18.319-13.681 24.291-21.526 52.287-21.526 82.097 0 38.574 12.94 75.037 36.342 104.391a117.824 117.824 0 0 1-17.745 13.118zm261.892-16.758l-23.593-23.594a8.394 8.394 0 0 0-11.871 11.869l23.575 23.576a154.704 154.704 0 0 1-5.759 4.908h-86.577v-25.18a8.393 8.393 0 0 0-16.786 0v25.18h-86.577a153.756 153.756 0 0 1-5.759-4.908l23.574-23.576a8.39 8.39 0 0 0-.001-11.869 8.391 8.391 0 0 0-11.87 0l-23.592 23.594c-.141-.157-.287-.311-.427-.469a8.475 8.475 0 0 0-1.068-1.283c-.055-.054-.121-.09-.178-.143-21.835-25.134-34.724-56.708-36.561-90.462h33.344a8.393 8.393 0 0 0 0-16.786h-33.329c1.945-35.345 16.099-67.48 38.301-92.274l23.509 23.511a8.368 8.368 0 0 0 5.935 2.459c2.147 0 4.296-.82 5.934-2.459a8.39 8.39 0 0 0 .001-11.869l-23.51-23.512c24.794-22.201 56.928-36.355 92.273-38.3v33.329a8.393 8.393 0 0 0 16.786 0V121.95c35.345 1.945 67.479 16.099 92.272 38.3l-23.511 23.512a8.392 8.392 0 0 0 0 11.869c1.639 1.639 3.787 2.459 5.935 2.459s4.296-.82 5.935-2.459l23.51-23.511c22.202 24.794 36.356 56.929 38.301 92.274h-33.328a8.393 8.393 0 0 0 0 16.786h33.344c-1.882 34.609-15.382 66.925-38.232 92.357z"}),(0,a.jsx)("path",{fill:"currentColor",d:"M391.103 221.619a8.392 8.392 0 0 0-8.763-1.969c-9.556 3.42-57.764 21.016-68.392 31.646-6.341 6.34-9.834 14.771-9.834 23.74 0 8.967 3.493 17.398 9.834 23.738h-.001c6.342 6.342 14.773 9.834 23.741 9.834s17.4-3.492 23.74-9.832c10.629-10.627 28.224-58.838 31.643-68.394a8.398 8.398 0 0 0-1.968-8.763zm-41.547 65.285a16.676 16.676 0 0 1-11.87 4.916c-4.484 0-8.7-1.746-11.87-4.916h-.001a16.675 16.675 0 0 1-4.916-11.869c0-4.486 1.746-8.701 4.917-11.871 4.481-4.482 25.44-13.65 45.023-21.283-7.631 19.58-16.798 40.539-21.283 45.023zM150.796 268.095c-7.927-7.928-41.023-20.166-50.978-23.728a8.393 8.393 0 0 0-10.73 10.731c3.563 9.955 15.8 43.051 23.727 50.976 5.073 5.074 11.816 7.867 18.991 7.867 7.173 0 13.917-2.793 18.99-7.865 5.073-5.072 7.867-11.818 7.867-18.992-.001-7.172-2.794-13.918-7.867-18.989zm-11.87 26.108l-.001.002c-1.902 1.901-4.43 2.949-7.12 2.949a10 10 0 0 1-7.121-2.951c-2.457-2.455-7.871-14.186-13.204-27.443 13.257 5.332 24.988 10.746 27.445 13.203a10.006 10.006 0 0 1 2.95 7.121 9.998 9.998 0 0 1-2.949 7.119z"})]})},54393:function(e,t,r){"use strict";var a=r(57437);r(2265),t.Z=e=>(0,a.jsxs)("svg",{viewBox:"0 0 512 512",...e,children:[(0,a.jsx)("path",{fill:"currentColor",d:"M256 0C114.84 0 0 114.841 0 256s114.84 256 256 256 256-114.841 256-256S397.16 0 256 0zm0 491.52C126.135 491.52 20.48 385.866 20.48 256S126.135 20.48 256 20.48 491.52 126.134 491.52 256 385.865 491.52 256 491.52z"}),(0,a.jsx)("path",{fill:"currentColor",d:"M389.12 92.16c-16.94 0-30.72 13.743-30.72 30.635v92.245h-30.72v-92.245c0-16.892-13.78-30.635-30.72-30.635-16.94 0-30.72 13.743-30.72 30.635v92.245h-30.72v-92.245c0-16.892-13.78-30.635-30.72-30.635-16.94 0-30.72 13.743-30.72 30.635v92.245h-30.72v-51.281c0-16.894-13.78-30.639-30.72-30.639-16.94 0-30.72 13.745-30.72 30.639V276.48c0 5.655 4.585 10.24 10.24 10.24h81.92v102.486c0 16.891 13.78 30.634 30.72 30.634 16.94 0 30.72-13.743 30.72-30.634V286.72h30.72v102.486c0 16.891 13.78 30.634 30.72 30.634 16.94 0 30.72-13.743 30.72-30.634V286.72h30.72v102.486c0 16.891 13.78 30.634 30.72 30.634s30.72-13.743 30.72-30.634V122.795c0-16.892-13.78-30.635-30.72-30.635zm10.24 297.046c0 5.694-4.497 10.154-10.24 10.154-5.648 0-10.24-4.555-10.24-10.154V276.48c0-5.655-4.585-10.24-10.24-10.24h-51.2c-5.655 0-10.24 4.585-10.24 10.24v112.726c0 5.694-4.497 10.154-10.24 10.154-5.648 0-10.24-4.555-10.24-10.154V276.48c0-5.655-4.585-10.24-10.24-10.24h-51.2c-5.655 0-10.24 4.585-10.24 10.24v112.726c0 5.694-4.497 10.154-10.24 10.154-5.648 0-10.24-4.555-10.24-10.154V276.48c0-5.655-4.585-10.24-10.24-10.24H102.4V163.759c0-5.696 4.497-10.159 10.24-10.159 5.648 0 10.24 4.558 10.24 10.159v61.521c0 5.655 4.585 10.24 10.24 10.24h51.2c5.655 0 10.24-4.585 10.24-10.24V122.795c0-5.695 4.497-10.155 10.24-10.155 5.648 0 10.24 4.555 10.24 10.155V225.28c0 5.655 4.585 10.24 10.24 10.24h51.2c5.655 0 10.24-4.585 10.24-10.24V122.795c0-5.695 4.497-10.155 10.24-10.155 5.648 0 10.24 4.555 10.24 10.155V225.28c0 5.655 4.585 10.24 10.24 10.24h51.2c5.655 0 10.24-4.585 10.24-10.24V122.795c0-5.695 4.497-10.155 10.24-10.155 5.648 0 10.24 4.555 10.24 10.155v266.411z"})]})},26555:function(e,t,r){"use strict";var a=r(57437);r(2265),t.Z=e=>(0,a.jsx)("svg",{viewBox:"0 0 395.024 395.024",...e,children:(0,a.jsx)("path",{d:"M394.91 229.818l-4.136-42.421c-1.995-20.467-13.039-38.638-29.933-49.721a9.994 9.994 0 0 0 3.888-9.527c-.842-5.459-5.946-9.205-11.408-8.358l-23.06 3.558c-47.529-17.26-127.164-26.702-235.951 27.036-10.438 5.155-21.633 8.53-33.275 10.029-24.36 3.136-41.809 12.833-51.86 28.822-16.428 26.133-5.878 58.798-5.421 60.176a10 10 0 0 0 9.491 6.851h33.208c4.426 16.642 19.619 28.942 37.635 28.942s33.209-12.3 37.635-28.942H293.33c4.426 16.642 19.619 28.942 37.635 28.942s33.209-12.3 37.635-28.942h2.319a24.154 24.154 0 0 0 17.853-7.908 24.152 24.152 0 0 0 6.138-18.537zm-45.002 16.444c0 10.445-8.498 18.942-18.943 18.942-10.445 0-18.943-8.497-18.943-18.942s8.498-18.943 18.943-18.943c10.445 0 18.943 8.498 18.943 18.943zm-246.876 0c0 10.445-8.498 18.942-18.943 18.942s-18.943-8.497-18.943-18.942 8.498-18.943 18.943-18.943 18.943 8.498 18.943 18.943zm265.569-10c-4.426-16.643-19.619-28.943-37.635-28.943s-33.209 12.301-37.635 28.943H121.724c-4.426-16.643-19.619-28.943-37.635-28.943S50.88 219.62 46.454 236.262H21.136c-1.572-8.758-2.728-24.221 5.029-36.474 6.732-10.635 19.323-17.209 37.424-19.539 13.839-1.782 27.155-5.797 39.579-11.934 102.926-50.841 177.047-41.996 220.72-26.003.961.561 2.018.96 3.132 1.176 7.254 2.804 13.612 5.781 19.055 8.665 13.978 7.407 23.247 21.308 24.795 37.184l4.136 42.422a4.071 4.071 0 0 1-1.045 3.156 4.07 4.07 0 0 1-3.041 1.347h-2.319z",fill:"currentColor"})})},96314:function(e,t,r){"use strict";var a=r(57437),s=r(92526),n=r(94094),i=r(86727),c=r(76834),l=r(59988),o=r(33008),d=r(96027),x=r(45912),m=r(69645),h=r(73799),u=r(39022),p=r.n(u);let f=(0,m.cn)("btn btn-block btn-primary d-flex align-items-center justify-content-center h-100",h.hE3?"custom-navlink":" ",h.maD?"btn-lg":" "),j=e=>{let{car:t}=e;if(!(0,i.eP)(t))return null;let r=(0,i.$i)(t),s=null===r||"$0"===r?"":r;return(0,a.jsx)("div",{className:"col-12 mt-2",children:(0,a.jsxs)(x.default,{href:"/cars/".concat(t.slug,"/").concat(h.TRD?"buy-online":"checkout"),className:p().ResponsiveBtn+" "+c.default.cars.reserveCarBtnClass+" "+f,children:["Reserve Now\xa0",null!=s?s:"- ".concat(s)]})})},w=e=>(0,i.eP)(e)&&c.default.cars.showCarSearchItemReserveBtn,v=e=>{let{car:t}=e;return c.default.showFinance?(0,a.jsx)(x.default,{href:c.default.cars.defaultFinanceLink?c.default.cars.defaultFinanceLink:(0,n.carToTaurusFinanceParams)(t),className:p().ResponsiveBtn+" "+f,children:c.default.cars.financeButtonText?c.default.cars.financeButtonText:"Get ".concat((0,d.NM)("Finance"))}):null};t.Z=e=>{let{car:t,href:r,variant:i,type:d}=e;return(0,a.jsx)(a.Fragment,{children:(0,n.inStock)(t)?(0,a.jsxs)("div",{className:"row mt-2 no-gutters"+(1===i||(null==t?void 0:t.tag)==="Test Drive Only"?" mt-auto":""),children:[(0,o.RT)(t)?(0,a.jsx)(l.Z,{title:"Book a Test Drive",btnClassName:"btn btn-primary d-flex align-items-center justify-content-center col-12",form:(0,s.O)(t)}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"col-12",children:h.Cq3&&"SimilarCars"===d?(0,a.jsx)(l.Z,{title:"Book a Test Drive",btnClassName:"btn btn-primary d-flex align-items-center justify-content-center col-12",form:(0,s.O)(t)}):!h.Nr3&&(0,a.jsx)(v,{car:t})}),(c.default.cars.carSearchDetailsButton||h.oPR)&&(0,a.jsx)("div",{className:"col-12",children:(0,a.jsx)(x.default,{className:p().ResponsiveBtn+" mt-2 btn btn-primary btn-block",href:r,children:"View Details"})})]}),w(t)&&(0,a.jsx)(j,{car:t})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(x.default,{className:p().ResponsiveBtn+" btn btn-lg btn-block btn-outline-danger",href:r,children:h.L_I?"Find me something similar":"Find Me Something Similar"})})})}},80107:function(e,t,r){"use strict";var a=r(57437),s=r(2265),n=r(21180),i=r(94094),c=r(32411),l=r(76834),o=r(77494),d=r(61682),x=r(56426),m=r(45912),h=r(69645),u=r(73799);let p=u.frR?["car_type","simple_body","km","simple_transmission"]:["car_type","simple_body","km","simple_transmission","stocknum"],f=e=>{let{attribute:t,index:r,colored:s}=e,i=s?"-".concat(n.default.slug):"",c="--first-tab-background-color".concat(i);return(0,a.jsx)("div",{className:"small px-2 py-1 mr-1 mb-1",style:{borderRadius:"3px",border:0===r?"1px solid var(".concat(c,")"):"1px solid var(".concat("--other-tabs-border-color".concat(i),")"),background:0===r?"var(".concat(c,")"):"none",color:0===r?"var(--first-tab-text-color".concat(i,")"):"var(--other-tabs-text-color".concat(i,")")},children:t})};t.Z=e=>{var t,r;let{car:n,href:j}=e,w=(0,d.X)(n),[v,g]=(0,s.useState)(p),b=(0,o.r)(),N=(0,h.ur)(b);return(0,s.useEffect)(()=>{l.default.cars.carSearchItemAttributes&&g(l.default.cars.carSearchItemAttributes)},[]),(0,a.jsxs)("div",{className:"d-flex flex-column flex-grow-1 ".concat(u.YN3?"text-light":""),children:[(0,a.jsxs)(m.default,{href:j,className:"d-flex flex-column unstyled ".concat(u.F2C&&"h-100"),children:[(0,a.jsxs)("h4",{className:"font-weight-bold mb-0",children:[n.year," ",n.make," ",n.model]}),(null===(r=l.default.cars)||void 0===r?void 0:null===(t=r.CarSearchItemCard)||void 0===t?void 0:t.CustomBadgeDetail)?(0,a.jsx)(l.default.cars.CarSearchItemCard.CustomBadgeDetail,{car:n}):(0,a.jsxs)("h6",{className:"mb-2",children:[n.badge," ",n.series]}),(0,a.jsx)("div",{className:"d-flex flex-grow-1",children:(0,a.jsx)("div",{className:"mr-auto d-flex flex-grow-1 flex-column justify-content-start",children:(0,i.inStock)(n)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"d-flex mb-1",style:{textTransform:"capitalize",flexWrap:"wrap"},children:[l.default.cars.carSearchCardShowStockNo&&(0,a.jsxs)("div",{className:"w-100 mb-2 small",children:["Stock No: ",null==n?void 0:n.stocknum]}),v.map((e,t)=>n[e]?(0,a.jsx)(f,{colored:b,index:t,attribute:"km"===e?"".concat((0,x.oC)(n[e]),"kms"):"views"===e?"".concat(n[e]," views"):"stocknum"===e?"Stock No: ".concat(n[e]):"seats"===e?"".concat(n[e]," Seats"):n[e]},"car-".concat(t)):null),u.frR&&(0,a.jsx)(f,{attribute:n.fuel,index:1})]}),(0,a.jsx)(i.WasCarPrice,{car:n,reducedPrice:w,nowWording:"with trade in"}),(0,a.jsx)("div",{className:"d-flex flex-row justify-content-between align-items-center row",children:(0,a.jsxs)("div",{className:"d-flex flex-row flex-wrap align-items-end col-12",children:[l.default.cars.CarPriceComponent?(0,a.jsx)(l.default.cars.CarPriceComponent,{car:n}):(0,a.jsx)("p",{className:"h2 mb-0 font-weight-bold mr-1 ".concat(N),children:(0,a.jsx)(i.CarPrice,{car:n})}),u.ieG&&0===n.price?null:(0,a.jsx)("small",{className:u.h0t?"d-flex flex-grow-1 mb-1 mr-2":"d-flex flex-grow-1 text-muted mb-1 mr-2",children:l.default.cars.overridePriceType?(0,a.jsx)(l.default.cars.overridePriceType,{car:n}):n.price_type}),(0,a.jsx)(i.MarketPriceIndicator,{car:n})]})})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("p",{children:"Like this and want something similar?"})})})})]}),(0,c.Ki)(n)&&(!u.Zkx&&!u.E6n||u.baD)&&(0,a.jsx)(c.l7,{car:n,outerClassName:"bg-primary-faded d-flex mt-2"})]})}},81921:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var a=r(57437),s=r(78757),n=r(92456),i=r(48764),c=r(69645),l=r(34485),o=r(2265),d=r(99782),x=r(84284),m=r.n(x),h=e=>{let{id:t="plus-button",label:r,checked:s,toggle:n,value:i,isRefined:l}=e,[x,h]=(0,o.useState)(s);return(0,o.useEffect)(()=>{void 0!==l&&h(l)},[l,i]),(0,o.useEffect)(()=>{h(s)},[s]),(0,a.jsxs)("button",{className:(0,c.cn)(m().Container,x?"btn-primary":"btn-light","btn px-3 py-1 no-color-override"),onClick:n,children:[(0,a.jsx)("label",{className:m().SVG,children:x?(0,a.jsx)(d.G5m,{className:m().Slider}):(0,a.jsx)(d.EIY,{className:m().Slider})}),r&&(0,a.jsx)("label",{className:(0,c.cn)(m().Label),htmlFor:t,children:r})]})},u=r(61521),p=r.n(u),f=e=>{let{absolute:t=!1,whiteBG:r=!1,dark:o=!1,car:d,parentName:x="",className:m=""}=e,[u,f]=(0,s.KO)(n.V_),{show:j}=(0,i.o)(),w=(0,n.eM)(d,u);return(0,l.c)({show:j,car:d})?null:(0,a.jsx)("div",{className:(0,c.cn)(m,p().CompareButton,t&&p().Absolute,r&&p().WhiteBG,"small font-weight-bold d-flex align-items-center rounded-pill"),children:(0,a.jsx)(h,{id:"plus-button-"+d.id+x,label:"Compare",checked:w,toggle:()=>f((0,n.RE)(d,u)),dark:o})})}},34485:function(e,t,r){"use strict";r.d(t,{c:function(){return w}});var a=r(57437),s=r(99782),n=r(69719),i=r(78757),c=r(62565),l=r(94094),o=r(92456),d=r(76834),x=r(48764),m=r(69645),h=r(73799),u=r(81921),p=r(62590),f=r.n(p);let j=e=>{let{absolute:t=!1,outline:r=!1,whiteBG:n=!1,dark:l=!1,car:d,parentName:h="",className:u="",modern:p=!1}=e,[j,v]=(0,i.KO)(o.V_),{show:g}=(0,x.o)(),b=(0,o.eM)(d,j);return w({show:g,car:d})?null:p?(0,a.jsxs)("div",{className:(0,m.cn)("d-flex align-items-center",f().ModernFavouriteButton),onClick:()=>v((0,o.RE)(d,j)),style:{height:30},children:[b&&(0,a.jsx)(s.QJe,{size:25,className:(0,m.cn)(f().Selected,"mr-2")}),!b&&(0,a.jsx)(s.jJN,{size:25,className:(0,m.cn)(f().Unselected,"mr-2")}),(0,a.jsx)("span",{children:"Favourite"})]}):(0,a.jsx)("div",{className:"".concat(u,"\n      ").concat(f().FavouriteSwitch," ").concat(t?f().Absolute:"","\n      ").concat(r?f().Outline:""," ").concat(n?f().WhiteBG:"","\n      small font-weight-bold d-flex align-items-center rounded-pill"),children:(0,a.jsx)(c.Z,{id:"switch-"+d.id+h,label:"Favourite",checked:b,toggle:()=>v((0,o.RE)(d,j)),dark:l})})},w=e=>{var t,r,a;let{show:s,car:i}=e;return n.FJ?!s||!(0,l.inStock)(i)||h.vFG&&"used"!==i.car_type||i.price<=0||!(null===(t=i.thumbnails)||void 0===t?void 0:t.length)&&!(null===(r=i.images)||void 0===r?void 0:r.length):!s||!(null===(a=d.default.storage)||void 0===a?void 0:a.storeFavourites)||!(0,l.inStock)(i)};t.Z=e=>n.FJ?(0,a.jsx)(u.Z,{...e}):(0,a.jsx)(j,{...e})},10755:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a.Z}});var a=r(34485)},62565:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var a=r(57437),s=r(2265),n=r(77494),i=r(69645),c=r(43798),l=r.n(c),o=e=>{let{id:t="switch",label:r,checked:c,toggle:o,dark:d=!1,value:x,isRefined:m}=e,h=(0,s.useRef)(null),u=(0,n.r)(),p=(0,i.WE)(u);return(0,s.useEffect)(()=>{void 0!==m&&(m?h.current.checked=!0:h.current.checked=!1)},[m,x]),(0,a.jsxs)("div",{className:l().Container,children:[r&&(0,a.jsx)("label",{className:l().Label+(d?" text-white":""),htmlFor:t,children:r}),(0,a.jsxs)("label",{className:l().Switch,children:[(0,a.jsx)("input",{id:t,ref:h,type:"checkbox",checked:c,onChange:o}),(0,a.jsx)("span",{className:"".concat(l().Slider," ").concat(p)})]})]})}},88364:function(e,t,r){"use strict";r.d(t,{Z:function(){return a.Z}});var a=r(44851)},30579:function(e,t,r){"use strict";var a,s=r(57437),n=r(21180),i=r(7911),c=r(53933);let l="peter-stevens-mg"===n.default.slug,o=(null===(a=window)||void 0===a?void 0:a.PodiumWebChat)&&l;t.Z=e=>{let{car:t,btnClassName:r="btn btn-primary btn-lg w-100",btnTitle:a="Enquire Now",title:n="Enquire Now",Form:l}=e;return(0,s.jsxs)(c.Vq,{children:[o?(0,s.jsx)("button",{className:r,onClick:()=>{var e;return null===(e=window)||void 0===e?void 0:e.PodiumWebChat.open()},children:a}):(0,s.jsx)(c.hg,{asChild:!0,children:(0,s.jsx)("button",{className:r,children:a})}),(0,s.jsxs)(c.cZ,{children:[(0,s.jsx)(c.fK,{children:(0,s.jsx)(c.$N,{children:n})}),l?(0,s.jsx)(l,{car:t}):(0,s.jsx)(i.ZP,{car:t})]})]})}},37337:function(e,t,r){"use strict";r.d(t,{Z:function(){return a.Z}});var a=r(30579)},32411:function(e,t,r){"use strict";r.d(t,{l7:function(){return a.l7},Zs:function(){return s.Zs},xg:function(){return v},gx:function(){return n.gx},Ki:function(){return n.Ki},q6:function(){return n.q6},Gv:function(){return n.Gv},E3:function(){return n.E3},bv:function(){return n.bv},kX:function(){return n.kX}});var a=r(21535),s=r(53280),n=r(7061),i=r(57437),c=r(99782),l=r(21180),o=r(96027),d=r(45912),x=r(73799),m=r(94094),h=r(19885),u=r.n(h);let p=l.default,f=e=>{let{car:t,halfCard:r=!1}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h5",{children:"Car Finance"}),(0,i.jsx)("div",{className:"border rounded p-4 mb-3",children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(r?"col-12":"col-sm-8")+" d-flex mb-3 mb-sm-0",children:[(0,i.jsx)(c.T_s,{className:"text-primary mr-3",size:35}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{className:"font-weight-bold mr-2",children:["$",parseFloat((0,n.kX)(t)).toFixed(0)," per week."]}),(0,i.jsxs)("span",{className:"text-secondary",children:["5 year term at ",(0,n.gx)(t),"% comparison rate."]}),(0,i.jsx)(s.Zs,{car:t,financeLender:(0,n.q6)(t),hideAsterix:!1})]})]}),(0,i.jsx)("div",{className:(r?"col-12 mt-3":"col-sm-4")+" d-flex align-items-center",children:(0,i.jsx)("div",{className:"w-100",children:(0,i.jsxs)(d.default,{href:(0,m.carToTaurusFinanceParams)(t),className:u()["w-sm-auto"]+" w-100 ml-auto btn btn-outline-primary d-flex align-items-center justify-content-center",children:["Get ",(0,o.NM)("Pre-Approved"),(0,i.jsx)(c.H_v,{className:"ml-2"})]})})})]})})]})},j=e=>{let{car:t,halfCard:r=!1}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h5",{children:"Car Finance"}),(0,i.jsx)("div",{className:"border rounded p-4 mb-3",children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(r?"col-12":"col-sm-8")+" d-flex mb-3 mb-sm-0",children:[(0,i.jsx)(c.T_s,{className:"text-primary mr-3",size:35}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{className:"font-weight-bold mr-2",children:["from $",(0,n.kX)(t)," per week*"]}),(0,i.jsxs)("span",{className:"text-secondary",children:["5 year term at ",(0,n.gx)(t),"% comparison rate."]}),(0,i.jsx)(s.Pq,{car:t})]})]}),(0,i.jsx)("div",{className:(r?"col-12 mt-3":"col-sm-4")+" d-flex align-items-center",children:(0,i.jsx)("div",{className:"w-100",children:(0,i.jsxs)(d.default,{href:(0,m.carToTaurusFinanceParams)(t),className:u()["w-sm-auto"]+" w-100 ml-auto btn btn-outline-primary d-flex align-items-center justify-content-center",children:["Get ",(0,o.NM)("Pre-Approved"),(0,i.jsx)(c.H_v,{className:"ml-2"})]})})})]})})]})},w=e=>{let{car:t,halfCard:r=!1}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h5",{children:"Car Finance"}),(0,i.jsx)("div",{className:"bg-light text-primary rounded p-4 mb-3",children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(r?"col-12":"col-sm-8")+" d-flex mb-3 mb-sm-0",children:[(0,i.jsx)(c.T_s,{className:"text-primary mr-3",size:35}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{className:"font-weight-bold mr-2",children:["$",parseFloat((0,n.kX)(t)).toFixed(0)," per week."]}),(0,i.jsxs)("span",{className:"text-dark mr-3",children:["5 year term at ",(0,n.gx)(t),"% comparison rate."]}),(0,i.jsx)("span",{className:"text-dark",children:(0,i.jsx)(s.Zs,{car:t,financeLender:(0,n.q6)(t),hideAsterix:!1})})]})]}),(0,i.jsx)("div",{className:(r?"col-12 mt-3":"col-sm-4")+" d-flex align-items-center",children:(0,i.jsx)("div",{className:"w-100",children:(0,i.jsxs)(d.default,{href:(0,m.carToTaurusFinanceParams)(t),className:u()["w-sm-auto"]+" w-100 ml-auto btn btn-primary d-flex align-items-center justify-content-center",children:["Get ",(0,o.NM)("Pre-Approved"),(0,i.jsx)(c.H_v,{className:"ml-2"})]})})})]})})]})};var v=e=>{if(x.YN3||x.j3b)return(0,i.jsx)(w,{...e});switch(null==p?void 0:p.finance_provider){case"Taurus":return(0,i.jsx)(f,{...e});case"360 Finance":return(0,i.jsx)(j,{...e});default:return null}}},54475:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S}});var a=r(57437),s=r(2265),n=r(60976),i=r(21180),c=r(8792),l=r(76834),o=r(90710),d=r.n(o);let x=e=>!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,m=(e,t)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}),h=(e,t)=>({top:(window.screen.height-t)/2,left:(window.screen.width-e)/2});class u extends s.Component{render(){let{children:e,className:t,disabled:r,disabledStyle:s,forwardedRef:n,networkName:i,resetButtonStyle:c,style:l,...o}=this.props,x=d()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!r,disabled:!!r},t),m=c?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer",...l,...r&&s}:{...l,...r&&s};return(0,a.jsx)("button",{"aria-label":o["aria-label"]||i,className:x,onClick:this.handleClick,ref:n,style:m,children:e})}constructor(...e){super(...e),this.openShareDialog=e=>{let{onShareWindowClose:t,windowHeight:r=400,windowPosition:a="windowCenter",windowWidth:s=550}=this.props;!function(e,t,r){let{height:a,width:s,...n}=t,i={height:a,width:s,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes",...n},c=window.open(e,"",Object.keys(i).map(e=>"".concat(e,"=").concat(i[e])).join(", "));if(r){let e=window.setInterval(()=>{try{(null===c||c.closed)&&(window.clearInterval(e),r(c))}catch(e){console.error(e)}},1e3)}}(e,{height:r,width:s,..."windowCenter"===a?m(s,r):h(s,r)},t)},this.handleClick=async e=>{let{beforeOnClick:t,disabled:r,networkLink:a,onClick:s,url:n,openShareDialogOnClick:i,opts:c}=this.props,l=a(n,c);if(!r){if(e.preventDefault(),t){let e=t();x(e)&&await e}i&&this.openShareDialog(l),s&&s(e,l)}}}}u.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0};var p=function(e,t,r,n){function i(s,i){let c=r(s),l={...s};return Object.keys(c).forEach(e=>{delete l[e]}),(0,a.jsx)(u,{...n,...l,forwardedRef:i,networkName:e,networkLink:t,opts:r(s)})}return i.displayName="ShareButton-".concat(e),(0,s.forwardRef)(i)};class f extends Error{constructor(e){super(e),this.name="AssertionError"}}function j(e,t){if(!e)throw new f(t)}function w(e){let t=Object.entries(e).filter(e=>{let[,t]=e;return null!=t}).map(e=>{let[t,r]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(String(r)))});return t.length>0?"?".concat(t.join("&")):""}let v=p("email",function(e,t){let{subject:r,body:a,separator:s}=t;return"mailto:"+w({subject:r,body:a?a+s+e:e})},e=>({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,t)=>{window.location.href=t}}),g=p("facebook",function(e,t){let{quote:r,hashtag:a}=t;return j(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+w({u:e,quote:r,hashtag:a})},e=>({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400}),b=p("twitter",function(e,t){let{title:r,via:a,hashtags:s=[],related:n=[]}=t;return j(e,"twitter.url"),j(Array.isArray(s),"twitter.hashtags is not an array"),j(Array.isArray(n),"twitter.related is not an array"),"https://twitter.com/share"+w({url:e,text:r,via:a,hashtags:s.length>0?s.join(","):void 0,related:n.length>0?n.join(","):void 0})},e=>({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400}),N=p("whatsapp",function(e,t){let{title:r,separator:a}=t;return j(e,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/send"+w({text:r?r+a+e:e})},e=>({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400});var k=r(28802),_=r.n(k);let y=e=>{let{children:t}=e;return(0,a.jsx)("span",{className:_().socialShareIcon,children:t})},C=e=>{let t=/\/$/;return t.test(e)?e.replace(t,""):e};var S=e=>{var t;let{carSlug:r}=e,[o,d]=(0,s.useState)(!1);if((null===i.default||void 0===i.default?void 0:i.default.url)===void 0)return null;let x="".concat(C(null===i.default||void 0===i.default?void 0:i.default.url),"/cars/").concat(r);return(0,a.jsxs)("div",{children:[(0,a.jsx)(y,{children:(0,a.jsx)(g,{url:x,children:(0,a.jsx)(n.s5I,{size:"30",color:"#4267B2"})})}),!(null===(t=l.default.socialShare)||void 0===t?void 0:t.hideTwitter)&&(0,a.jsx)(y,{children:(0,a.jsx)(b,{url:x,children:(0,a.jsx)(n.JMB,{size:"30",color:"#1DA1F2"})})}),(0,a.jsx)(y,{children:(0,a.jsx)(N,{url:x,children:(0,a.jsx)(n.thF,{size:"30",color:"#075e54"})})}),(0,a.jsx)(y,{children:(0,a.jsx)(v,{url:x,children:(0,a.jsx)(n.Dme,{size:"30"})})}),(0,a.jsx)(y,{children:(0,a.jsx)(c.default,{href:"sms:?&body=".concat(x),children:(0,a.jsx)(n.e$J,{size:"30"})})}),(0,a.jsxs)(y,{children:[(0,a.jsx)("button",{className:_().clipBoardButton,onClick:()=>{navigator.clipboard.writeText(x),d(!0),setTimeout(()=>{d(!1)},1500)},children:(0,a.jsx)(n.uFt,{size:30})}),o&&(0,a.jsx)("small",{className:_().alert,children:"Copied"})]})]})}},26161:function(e,t,r){"use strict";r.d(t,{Yg:function(){return P},bs:function(){return I},rA:function(){return z},Nk:function(){return L},ZP:function(){return V}});var a=r(57437),s=r(2265),n=r(75036),i=r(60976),c=r(69719),l=r(88324),o=r(54393),d=e=>(0,a.jsxs)("svg",{viewBox:"-2.84 0 512 512",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",...e,children:[(0,a.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,a.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("g",{id:"SVGRepo_iconCarrier",children:(0,a.jsx)("g",{"data-name":"Layer 2",id:"Layer_2",children:(0,a.jsxs)("g",{"data-name":"E404, gear, Media, media player, multimedia",id:"E404_gear_Media_media_player_multimedia",children:[(0,a.jsx)("path",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"20px",d:"M373.59,340.89V299.52a18.84,18.84,0,0,0-18.84-18.84H333.48A18.92,18.92,0,0,1,316,268.91l-.1-.24a19,19,0,0,1,4-20.71l15-15a18.83,18.83,0,0,0,0-26.64L305.72,177a18.83,18.83,0,0,0-26.64,0l-15,15a19,19,0,0,1-20.71,4l-.24-.1a18.92,18.92,0,0,1-11.77-17.46V157.25a18.84,18.84,0,0,0-18.84-18.84H171.11a18.84,18.84,0,0,0-18.84,18.84v21.27A18.92,18.92,0,0,1,140.5,196l-.24.1a19,19,0,0,1-20.71-4l-15-15a18.83,18.83,0,0,0-26.64,0L48.62,206.28a18.83,18.83,0,0,0,0,26.64l15,15a19,19,0,0,1,4,20.71l-.1.24a18.92,18.92,0,0,1-17.46,11.77H28.84A18.84,18.84,0,0,0,10,299.52v41.37a18.84,18.84,0,0,0,18.84,18.84H50.11A18.92,18.92,0,0,1,67.57,371.5l.1.24a19,19,0,0,1-4,20.71l-15,15a18.83,18.83,0,0,0,0,26.64l29.25,29.25a18.83,18.83,0,0,0,26.64,0l15-15a19,19,0,0,1,20.71-4l.24.1a18.92,18.92,0,0,1,11.77,17.46v21.27A18.84,18.84,0,0,0,171.11,502h41.37a18.84,18.84,0,0,0,18.84-18.84V461.89a18.92,18.92,0,0,1,11.77-17.46l.24-.1a19,19,0,0,1,20.71,4l15,15a18.83,18.83,0,0,0,26.64,0L335,434.13a18.83,18.83,0,0,0,0-26.64l-15-15a19,19,0,0,1-4-20.71l.1-.24a18.92,18.92,0,0,1,17.46-11.77h21.27A18.84,18.84,0,0,0,373.59,340.89Z"}),(0,a.jsx)("circle",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"20px",cx:"191.8",cy:"320.2",r:"74.8"}),(0,a.jsx)("path",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"20px",d:"M207.45,138.41V138a15,15,0,0,1,15-15h16.9a15,15,0,0,0,13.88-9.35c0-.06.05-.13.08-.19A15.06,15.06,0,0,0,250.09,97l-12-11.94a15,15,0,0,1,0-21.17l23.24-23.24a15,15,0,0,1,21.16,0l11.95,12a15.07,15.07,0,0,0,16.45,3.18l.19-.08a15,15,0,0,0,9.36-13.88V25a15,15,0,0,1,15-15h32.87a15,15,0,0,1,15,15v16.9a15,15,0,0,0,9.35,13.88l.18.08a15.09,15.09,0,0,0,16.46-3.18l12-12a15,15,0,0,1,21.16,0l23.24,23.24a15,15,0,0,1,0,21.17L453.68,97a15.05,15.05,0,0,0-3.17,16.46l.07.19A15,15,0,0,0,464.45,123h16.9a15,15,0,0,1,15,15v32.86a15,15,0,0,1-15,15h-16.9a15,15,0,0,0-13.87,9.36l-.07.18a15,15,0,0,0,3.17,16.46l11.95,11.95a15,15,0,0,1,0,21.16l-23.24,23.24a15,15,0,0,1-21.16,0l-12-11.95a15,15,0,0,0-16.46-3.18l-.18.07A15,15,0,0,0,383.29,267v16.9a15,15,0,0,1-9.77,14"}),(0,a.jsx)("circle",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"20px",cx:"351.88",cy:"154.43",r:"48.69"})]})})})]}),x=r(26555),m=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 467.161 467.161",...e,children:[(0,a.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,a.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("g",{id:"SVGRepo_iconCarrier",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M391.083,210.102c-10.262,0-20.05,2.054-28.991,5.754l-4.204-7.886c10.289-4.373,21.533-6.766,33.195-6.766 c14.523,0,28.863,3.744,41.472,10.826c3.608,2.028,8.183,0.746,10.212-2.866c2.028-3.611,0.745-8.184-2.866-10.212 c-14.846-8.339-31.727-12.748-48.817-12.748c-14.184,0-27.84,3.01-40.273,8.49l-7.419-13.917c0.697,0.047,1.398,0.08,2.107,0.08 h17.363c4.143,0,7.5-3.358,7.5-7.5v-48.49c0-4.142-3.357-7.5-7.5-7.5h-17.363c-11.763,0-22.005,6.624-27.203,16.335l-13.238-24.832 c-1.303-2.445-3.848-3.972-6.618-3.972H263.11c-4.143,0-7.5,3.358-7.5,7.5s3.357,7.5,7.5,7.5h30.828l12.748,23.913 c-1.641-1.205-3.383-2.306-5.232-3.278c-11.296-5.936-24.958-6.282-36.543-0.927l-23.357,10.8 c-8.455,3.909-15.074,10.358-19.271,18.091c-6.716-7.44-16.062-12.511-26.711-13.715L81.73,141.913h0 c-5.808-0.657-11.636,1.2-15.994,5.092c-4.357,3.893-6.857,9.477-6.857,15.32v32.943c-1.436,0.62-2.85,1.281-4.235,1.995 c-25.867,13.334-44.631,37.128-51.48,65.28c-0.979,4.025,1.49,8.081,5.515,9.061c0.596,0.145,1.192,0.214,1.779,0.214 c3.379,0,6.447-2.3,7.282-5.729c5.821-23.925,21.777-44.152,43.778-55.493c7.854-4.049,16.868-6.189,26.068-6.189h10.355h120.262 v21.75h-71.313c-12.899-10.042-29.069-16.052-46.575-16.052c-39.079,0-71.561,29.868-75.634,67.969H7.5c-4.142,0-7.5,3.358-7.5,7.5 v24.938c0,4.142,3.358,7.5,7.5,7.5h23.716c12.314,26.667,39.442,44.25,69.1,44.25s56.786-17.583,69.1-44.25H221.1 c16.36,0,29.842-12.538,31.354-28.509c13.915-5.003,25.737-15.026,32.921-28.55l35.532-69.341 c2.005-5.34,2.823-10.867,2.584-16.278l14.085,26.421c-18.799,11.922-33.568,30.048-41.125,52.147 c-1.34,3.919,0.751,8.183,4.67,9.523c0.804,0.275,1.622,0.405,2.428,0.405c3.118,0,6.03-1.96,7.096-5.075 c6.297-18.414,18.478-33.591,34.006-43.729l4.212,7.902c-20.399,13.661-33.859,36.912-33.859,63.252 c0,41.95,34.129,76.078,76.078,76.078s76.078-34.128,76.078-76.078S433.032,210.102,391.083,210.102z M329.664,148.199 c0-8.73,7.104-15.833,15.834-15.833h9.863v33.49h-9.863c-8.73,0-15.834-7.103-15.834-15.833V148.199z M247.848,164.021l23.357-10.8 c7.379-3.411,16.077-3.19,23.271,0.59c11.715,6.155,17.041,20.139,12.388,32.528l-1.152,3.069h-73.178 c-0.101-0.567-0.216-1.129-0.339-1.688C232.504,177.704,238.391,168.394,247.848,164.021z M97.942,189.408H87.586H73.88v-27.083 c0-2.159,1.159-3.516,1.85-4.134c0.691-0.617,2.174-1.616,4.315-1.374h0l113.841,12.869c11.285,1.276,20.311,9.268,23.278,19.721 H97.942z M175.95,278.075c-1.466-13.71-6.618-26.346-14.425-36.917h30.533l19.21,36.917H175.95z M100.316,225.106 c30.824,0,56.523,23.15,60.514,52.969H39.802C43.793,248.257,69.491,225.106,100.316,225.106z M100.316,347.263 c-21.4,0-41.16-11.401-52.12-29.25h9.511c10.045,13.46,25.669,21.391,42.609,21.391c16.939,0,32.564-7.931,42.609-21.391h9.511 C141.477,335.862,121.716,347.263,100.316,347.263z M79.176,318.013h42.28c-6.162,4.108-13.462,6.391-21.14,6.391 C92.638,324.403,85.338,322.121,79.176,318.013z M236.239,293.075c-2.542,5.843-8.371,9.938-15.139,9.938H15v-9.938H236.239z M272.129,253.917c-7.917,14.901-23.317,24.159-40.191,24.159h-3.76l-19.21-36.917h16.737c4.142,0,7.5-3.358,7.5-7.5v-29.25h65.227 L272.129,253.917z M391.083,347.258c-33.679,0-61.078-27.399-61.078-61.078c0-20.614,10.275-38.862,25.962-49.928l3.726,6.989 c-13.222,9.692-21.828,25.326-21.828,42.939c0,29.345,23.874,53.219,53.219,53.219s53.219-23.874,53.219-53.219 c0-29.345-23.874-53.219-53.219-53.219c-6.378,0-12.496,1.13-18.168,3.197l-3.723-6.984c6.801-2.621,14.178-4.073,21.891-4.073 c33.679,0,61.078,27.4,61.078,61.079S424.761,347.258,391.083,347.258z M375.128,272.196c1.35,2.531,3.943,3.973,6.625,3.973 c1.19,0,2.397-0.284,3.521-0.883c3.655-1.948,5.038-6.491,3.09-10.146l-8.292-15.555c3.489-1.052,7.183-1.624,11.01-1.624 c21.074,0,38.219,17.145,38.219,38.219c0,21.074-17.145,38.219-38.219,38.219s-38.219-17.145-38.219-38.219 c0-11.88,5.45-22.511,13.979-29.526L375.128,272.196z"})," ",(0,a.jsx)("path",{d:"M384.153,289.049c2.018,4.77,8.537,6.235,12.23,2.43c2.896-2.815,2.893-7.783,0-10.6c-2.452-2.526-6.564-2.878-9.47-0.94 C383.954,281.913,382.844,285.772,384.153,289.049C384.343,289.499,383.973,288.599,384.153,289.049z"})," "]})})]}),h=r(10755),u=r(88364),p=r(37337),f=r(94094),j=r(32411),w=r(88088),v=r(76834),g=r(39745),b=r(53066),N=r(23428),k=r(16046),_=r(14050),y=r(69645),C=r(73799),S=r(25464),F=r.n(S);let B=e=>{let{Icon:t,detail:r}=e;return(0,a.jsxs)("div",{className:F().CarIcon+" col-4 justify-content-start d-flex flex-column",children:[(0,a.jsx)(t,{className:"mb-2"}),(0,a.jsx)("span",{className:"text-center",children:r})]})},P=e=>{let{car:t}=e,r="Motorcycle"===v.default.primaryVehicle;return(0,a.jsxs)("div",{className:"row pt-4",style:{color:"var(--car-sidebar-price-type"},children:[(0,a.jsx)(B,{Icon:l.Z,detail:t.km.toLocaleString()+" kms"}),(0,a.jsx)(B,{Icon:r?d:o.Z,detail:t.simple_transmission}),(0,a.jsx)(B,{Icon:r?m:x.Z,detail:t.simple_body})]})},z=e=>{var t;let{car:r}=e,[n,c]=(0,s.useState)(!1),l=()=>{c(!0);let e="".concat(w.baseAPI,"/cars/").concat(r.slug,"/print");fetch(e).then(e=>{if(e.ok)return e.blob();throw Error("Network response was not ok.")}).then(e=>{let t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download="".concat(r.slug,".pdf"),document.body.appendChild(a),a.click(),c(!1)}).catch(()=>{c(!1)})};return(null===v.default||void 0===v.default?void 0:null===(t=v.default.cars)||void 0===t?void 0:t.printPDF)?(0,a.jsx)("div",{className:"d-flex flex-row justify-content-end",children:(0,a.jsxs)("div",{className:"d-none d-lg-block text-dark",children:[n?(0,a.jsx)("div",{className:"spinner-border spinner-border-sm text-dark mr-1",style:{width:"25px",height:"25px",borderWidth:"2px"}}):(0,a.jsx)("span",{onClick:l,className:"mr-2",children:(0,a.jsx)(i.jhm,{size:30})}),n?(0,a.jsx)("span",{className:(0,y.cn)("btn btn-sm",v.default.darkMode&&!C.$NU?"text-light":"text-dark"),children:"Preparing..."}):(0,a.jsx)("button",{className:(0,y.cn)("btn font-weight-bold px-0",v.default.darkMode&&!C.$NU?"text-light":"text-dark"),type:"button",onClick:l,children:"Print PDF"})]})}):(0,a.jsx)("div",{children:(0,a.jsxs)("a",{href:"/print?car_id=".concat(r.slug),rel:"noreferrer",target:"_blank",className:C.$NU||C.YN3?"text-light":"text-dark",children:[(0,a.jsx)(i.jhm,{size:30,className:"mr-2"}),"Print"]})})},I=e=>{var t,r;let{car:s}=e;if(C.dci||C.Q2O||C.SL0||C.yUK||C.kp4||C.y8P)return null;let c=(null===(t=v.default.cars)||void 0===t?void 0:t.largeViewIcon)?40:30;return(0,a.jsxs)("div",{className:F().InfoItem,children:[(0,a.jsx)(i.Zju,{size:c,className:"mr-2"}),(0,a.jsxs)("span",{className:"d-flex align-items-center",children:[(0,a.jsx)(n.ZP,{style:{marginRight:"5px"},start:0,duration:1,end:s.views})," ",(null===(r=v.default.cars)||void 0===r?void 0:r.customViewCountText)||"views"]})]})},M=e=>{let{car:t,isPrintable:r}=e;return(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center align-items-sm-start",children:[(0,a.jsx)("div",{className:"align-self-start",children:(0,a.jsxs)("span",{className:"d-flex flex-column",children:[(0,a.jsx)(f.WasCarPrice,{car:t}),v.default.cars.CarPriceComponent?(0,a.jsx)(v.default.cars.CarPriceComponent,{car:t}):(0,a.jsx)(b.n$,{className:"m-0 text-primary mg-custom-sidebar-price",children:(0,a.jsx)(f.CarPrice,{car:t})}),v.default.cars.priceTypePrefix&&(0,a.jsx)(v.default.cars.priceTypePrefix,{}),(0,a.jsx)("span",{style:{color:"var(--car-sidebar-price-type"},children:v.default.cars.overridePriceType?(0,a.jsx)(v.default.cars.overridePriceType,{car:t}):t.price_type})]})}),C.k2r?(0,a.jsx)(_.Z,{car:t}):(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)(I,{car:t}),r&&(0,a.jsx)("div",{className:F().InfoItem+"d-none d-md-flex justify-content-end text-right",children:(0,a.jsx)(z,{car:t})}),c.QW&&(0,a.jsx)("div",{className:F().InfoItem,children:(0,a.jsx)(h.default,{className:"my-3 pb-1 pr-0",car:t,parentName:"carSidebar"})})]})]}),(0,a.jsx)("div",{className:"mt-1 d-flex",children:(0,a.jsx)(f.MarketPriceIndicator,{car:t})})]})},L=()=>{let e=v.default.primaryVehicle.toLowerCase();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:(0,y.cn)("mb-4",C.k2r?(0,k.qz)():"text-danger"),children:"SOLD"}),(0,a.jsxs)("h5",{children:[(0,a.jsxs)("b",{children:["Unfortunately this ",e," recently sold."]}),(0,a.jsx)("br",{})]}),(0,a.jsxs)("h5",{children:["But don’t worry, we can help you find a similar ",e,"!"]})]})};var V=e=>{let{title:t,car:r,Buttons:s,hasCarIcons:n=!0}=e;return(0,a.jsxs)("div",{className:"p-4 p-xl-3 h-100 d-flex flex-column overflow-hidden",style:{background:"var(--car-sidebar-background)"},children:[(0,a.jsxs)("div",{className:"d-flex flex-column flex-grow-1",children:[(0,a.jsx)("h1",{className:(0,y.cn)(F().title,"mg-custom-sidebar-title"),children:t}),(0,f.inStock)(r)?(0,a.jsx)(M,{car:r,isPrintable:v.default.cars.isPrintable}):(0,a.jsx)(L,{}),C.zkE&&(0,a.jsx)(N.Z,{car:r}),(0,a.jsx)(f.LocatedAt,{car:r}),(0,j.Ki)(r)&&(0,a.jsx)(j.l7,{car:r,outerClassName:"border mt-4 emphasis ".concat(C.YN3?"rounded":""),carPage:!0}),"Header"===v.default.cars.callTheDealerPosition&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(u.Z,{car:r})})]}),C.kqo||C.hL3?(0,a.jsx)(g.Z,{}):null,(0,a.jsxs)("div",{children:[(0,f.inStock)(r)?v.default.cars.customSideBarButtons?(0,a.jsx)(v.default.cars.customSideBarButtons,{car:r}):(0,a.jsx)(s,{car:r}):(0,a.jsx)(p.Z,{car:r,btnClassName:(0,y.cn)("btn",C.k2r?(0,k.EK)():"btn-outline-danger btn-lg","btn-block"),btnTitle:"Find Me Something Similar",title:"Find Me Something Similar"}),n&&(v.default.cars.carInfoIcons?(0,a.jsx)(v.default.cars.carInfoIcons,{car:r}):(0,a.jsx)(P,{car:r}))]})]})}},39745:function(e,t,r){"use strict";var a=r(57437),s=r(69645),n=r(23395),i=r.n(n);t.Z=e=>{let{maestro:t=!0,visa:r=!0,mastercard:n=!0,google_pay:c=!0,apple_pay:l=!0,marginTop:o=!0}=e;return(0,a.jsx)("div",{className:(0,s.cn)("container-fluid bg-white text-dark py-2 px-3 overflow-hidden",o&&"mt-3"),children:(0,a.jsxs)("div",{className:"row align-items-center",children:[(0,a.jsx)("h6",{className:"col-12 col-md-4 text-center mb-2 text-md-left mb-md-0 small",children:"We accept:"}),(0,a.jsx)("div",{className:"col-12 col-md-8",children:(0,a.jsxs)("div",{className:"row justify-content-around "+i().Payments,children:[n&&(0,a.jsx)("img",{src:"/icons/mastercard.svg",alt:"Mastercard-logo"}),r&&(0,a.jsx)("img",{src:"/icons/visa.svg",alt:"Visa logo"}),t&&(0,a.jsx)("img",{src:"/icons/maestro.svg",alt:"Maestro logo"}),c&&(0,a.jsx)("img",{src:"/icons/google-pay.svg",alt:"Google Pay logo"}),l&&(0,a.jsx)("img",{src:"/icons/apple-pay.svg",alt:"Apple Pay logo"})]})})]})})}},23428:function(e,t,r){"use strict";var a=r(57437),s=r(20703),n=r(22801);t.Z=e=>{let{car:t,small:r=!1}=e,{src:i,loader:c}=(0,n.t)("https://res.cloudinary.com/total-dealer/image/upload/v1717732570/td_next/mercedes-benz/mb-certified_j5kkaa");return"Mercedes Benz"===t.make&&"used"===t.car_type?(0,a.jsx)("div",{className:"mb-tag-container",children:(0,a.jsx)(s.default,{className:r?"mb-tag-image-sm":"",src:i,alt:"Mercedes Benz Certified Tag",loader:c,width:107,height:40})}):(0,a.jsx)(a.Fragment,{})}},14050:function(e,t,r){"use strict";r.d(t,{U:function(){return h},Z:function(){return u}});var a=r(57437),s=r(10755),n=r(26161),i=r(25464),c=r.n(i),l=r(40802),o=r(54475),d=r(53933),x=e=>{let{car:t,btnClassName:r="unstyled-link text-dark",btnTitle:s="Share",title:n="Share this car"}=e;return(0,a.jsxs)(d.Vq,{children:[(0,a.jsx)(d.hg,{asChild:!0,children:(0,a.jsxs)("div",{className:r,children:[(0,a.jsx)(l.A8q,{size:20,className:"mr-2"}),s]})}),(0,a.jsxs)(d.cZ,{children:[(0,a.jsx)(d.fK,{children:(0,a.jsx)(d.$N,{children:n})}),(0,a.jsx)(o.default,{carSlug:t.slug})]})]})},m=r(76834);let h=e=>{let{car:t}=e;return(0,a.jsx)("div",{className:"d-none d-md-block position-absolute",style:{right:"15px"},children:(0,a.jsx)("div",{className:c().InfoItem,children:(0,a.jsx)(n.rA,{car:t})})})};var u=e=>{var t;let{car:r}=e;return(0,a.jsxs)("div",{className:"ml-auto",children:[(null===(t=m.default.storage)||void 0===t?void 0:t.storeFavourites)&&(0,a.jsx)("div",{className:c().InfoItem,children:(0,a.jsx)(s.default,{className:"my-3 pb-1 pr-0",car:r,parentName:"carSidebar"})}),(0,a.jsx)("div",{className:c().InfoItem+"d-none d-md-flex justify-content-end text-right",children:(0,a.jsx)(x,{car:r})})]})}},61521:function(e){e.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",CompareButton:"CompareButton_CompareButton__Ekctj",Absolute:"CompareButton_Absolute__hn8Lm",WhiteBG:"CompareButton_WhiteBG__qFr_h"}},62590:function(e){e.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",FavouriteSwitch:"FavouritesSwitch_FavouriteSwitch__pnfkA",Outline:"FavouritesSwitch_Outline__CFyNF",Absolute:"FavouritesSwitch_Absolute__V78lC",WhiteBG:"FavouritesSwitch_WhiteBG____ZCP",ModernFavouriteButton:"FavouritesSwitch_ModernFavouriteButton__eUXQK",Selected:"FavouritesSwitch_Selected__J5IpD",Unselected:"FavouritesSwitch_Unselected__OFT0x"}},84284:function(e){e.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",Container:"PlusButton_Container__Wi2a9",Label:"PlusButton_Label__1jBJq",Switch:"PlusButton_Switch__RR_XR",SVG:"PlusButton_SVG__AGVSA"}},43798:function(e){e.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",Container:"Switch_Container__OEWkb",Label:"Switch_Label__gabRq",Switch:"Switch_Switch__7ep8d",Slider:"Switch_Slider__7GIcV"}},25464:function(e){e.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",CarIcon:"CarSidebar_CarIcon__ILAXX",title:"CarSidebar_title__GrgY7",InfoItem:"CarSidebar_InfoItem__HFSb1"}},28802:function(e){e.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",socialShareIcon:"VehicleSocialShare_socialShareIcon__pS8sz",clipBoardButton:"VehicleSocialShare_clipBoardButton__M65Th",alert:"VehicleSocialShare_alert__IEyL2"}},23395:function(e){e.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",Payments:"PaymentMethods_Payments__rKBrC"}}}]);