(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8901,187],{11353:function(e,t,r){"use strict";var a=r(85893),l=r(37496),s=r(5152),i=r.n(s),n=r(14340),o=r.n(n),d=r(49831),c=r(22606),m=r(28078),u=r(2899),h=r(94634),x=r(4276),p=r(13299),v=r(45993),g=r(41132),_=r(94605);let f=i()(()=>Promise.resolve().then(r.bind(r,553)),{loadableGenerated:{webpack:()=>[553]},ssr:!1});t.Z=e=>{let{car:t,image_url:r,Buttons:s=d.Z,wrapperClassName:i="col-12 col-lg-6 mb-3 col-xl-4 carSearchCard",type:n="",priority:j=!1}=e,C=(0,g.QM)(t),w=(0,v.A)(["cars","carSearchItemButtons"]);return(0,a.jsx)("div",{className:o().StyledCol+" ".concat(i," ")+t.status,children:(0,a.jsxs)("div",{className:o().CarWrapper+" position-relative rounded h-100 d-flex flex-column",children:[(0,a.jsx)(m.Z,{car:t,image_url:r,priority:j}),"block"===x.Z.cars.CarSearchItemCard.LocationOverlay&&(0,a.jsx)(h.Z,{car:t,absolute:!1}),(0,a.jsxs)("div",{className:(0,g.cn)("p-2 d-flex flex-column h-100 position-relative",x.Z.storage.storeFavourites&&"pt-3"),children:[l.default.garage_enabled&&!_.sKx?(0,a.jsx)(u.Z,{absolute:!0,car:t}):(0,a.jsx)(f,{absolute:!0,whiteBG:!0,outline:!0,car:t,parentName:"carSearchItem"}),(0,a.jsx)(c.Z,{car:t,href:C}),_.zkE&&(0,a.jsx)(p.Z,{car:t,small:!0}),w?(0,a.jsx)(w,{car:t,href:C,type:n}):(0,a.jsx)(s,{car:t,href:C,type:n})]})]})})}},98564:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var a=r(85893),l=r(67294),s=r(81848),i=r(11353),n=r(68875),o=r.n(n),d=r(4276),c=r(12897),m=r(97482),u=r(41132);let h=e=>{let{right:t=!1,enabled:r=!1,top:l=!1,onClick:s}=e;return t?(0,a.jsx)(c.Z1,{size:48,onClick:s,className:(0,u.cn)(o().ArrowsSimiarCars,l?o().TopRight:o().RightBottom,!r&&o().Disabled)}):(0,a.jsx)(c.x_,{size:48,onClick:s,className:(0,u.cn)(o().ArrowsSimiarCars,l?o().TopLeft:o().LeftBottom,r?"":o().Disabled)})},x=()=>{let{scrollNext:e,scrollPrev:t}=(0,m.vr)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h,{onClick:t,enabled:!0}),(0,a.jsx)(h,{right:!0,onClick:e,enabled:!0})]})};var p=e=>{let{hits:t,...r}=e,s=d.Z.cars.CarSearchItemComponent?d.Z.cars.CarSearchItemComponent:i.Z;return(0,a.jsxs)(m.lr,{opts:{align:"start",startIndex:0},children:[(0,a.jsx)(m.KI,{children:t.map(e=>(0,a.jsx)(l.Fragment,{children:(0,a.jsx)(s,{car:e,image_url:e.primary_image_url,...r})},e.id))}),(0,a.jsx)(x,{})]})},v=r(89755),g=r.n(v),_=r(14340),f=r.n(_),j=r(79936),C=()=>{let e=d.Z.cars.CTAItem.CTAhref;return(0,a.jsx)(j.Z,{href:e,className:f().StyledCol+" col-lg-6 mb-3 col-xl-4 carSearchCard unstyled",children:(0,a.jsx)("div",{className:f().CarWrapper+" position-relative rounded h-100 d-flex flex-column bg-primary",children:(0,a.jsx)("div",{className:"h-100 w-100",children:(0,a.jsxs)("div",{className:"p-2 d-flex flex-column h-100 position-relative text-white text-center",children:[(0,a.jsxs)("div",{className:"pb-3 pt-5",children:[(0,a.jsx)("h2",{className:"font-weight-bold mb-0",children:"We Want Your Car!"}),(0,a.jsx)("h5",{className:"font-weight-bold",children:"We buy all types of cars"})]}),(0,a.jsx)("div",{className:"flex-fill d-flex align-items-center justify-content-center px-5",children:(0,a.jsx)("div",{className:"w-100 h-100 p-4",children:(0,a.jsx)(g(),{alt:"",src:"https://res.cloudinary.com/total-dealer/image/upload/f_auto,q_auto/v1/public/finance",className:"img-fluid",width:201,height:140,layout:"responsive",unoptimized:!0})})}),(0,a.jsx)("div",{className:"pt-3 pb-5 px-3",children:(0,a.jsx)("h4",{className:"font-weight-bold mb-0",children:"Our high turnover means we can pay more"})})]})})})})},w=r(93619),y=r(42436),N=r(94605);let b=[N.Utj,N.Zkx,N.EY6,N.VcP,N.QQ1,N.hOE,N.wrW,N.i32,N.Asv,N.o9C],I=e=>{let{promoCardCount:t}=e,r=d.Z.cars.CTAItem.CustomCard?d.Z.cars.CTAItem.CustomCard:C,l=(0,y._E)("car_type");return 1===l.length&&l.includes("used")||b.some(e=>e)?(0,a.jsx)(r,{promoCardCount:t}):null};var S=e=>{let{type:t,hits:r,wrapperClassName:s,promoOn:i=!0}=e,n=(0,w.V)(),o=d.Z.cars.CTAItem.CardPosition;if(!r||(null==r?void 0:r.length)===0)return(0,a.jsxs)("div",{className:"m-3 w-100 text-center text-muted",children:[(0,a.jsx)(c.U4,{size:25}),(0,a.jsx)("h5",{className:"m-3 text-muted",children:"No results found for your search at this time. Please try adjusting the filters for more results."})]});let m=N.Utj?Math.floor(3*Math.random())+o:r.length>=("number"==typeof o?o:o[0])?o:r.length,u=0;return r.map((e,r)=>{var o;return(0,a.jsxs)(l.Fragment,{children:[i&&(null===(o=d.Z.cars.CTAItem)||void 0===o?void 0:o.isOn)&&("number"==typeof m?(r+1+u)%m==0:m.includes(r+1+u))&&(u+=1)&&(0,a.jsx)(I,{promoCardCount:u}),(0,a.jsx)(n,{car:e,image_url:(e.thumbnails.length,e.primary_image_url),type:t,wrapperClassName:s})]},e.id)})},Z=e=>{let{carousel:t=!1,handleSoldHits:r=!N.bIO&&!N.liu,wrapperClassName:i=N.Utj?"col-12 col-lg-6 mb-3 col-xl-3 px-1 carSearchCard":"col-12 col-lg-6 mb-3 col-xl-4 carSearchCard",promoOn:n=!0,nonCarouselClasses:o=N.Utj?"row justify-content-center":"row",...d}=e,c=(0,l.useCallback)(e=>{if(r){let t=[],r=!1;return null==e||e.forEach(e=>{(null==e?void 0:e.status)==="sold"?r||(t.push((0,u.vO)(e)),r=!0):(t.push((0,u.vO)(e)),r=!1)}),t}return e},[r]),{hits:m}=(0,s.O)({transformItems:c,...d}),h=N.JlT?null==m?void 0:m.sort((e,t)=>{let r={duo:1,city:2,sport:3};return r[e.series]-r[t.series]}):m;return(0,a.jsx)("div",{className:t?"":o,children:t?(0,a.jsx)("div",{children:h.length>0&&(0,a.jsx)(p,{hits:h,...d})}):(0,a.jsx)(S,{hits:m,wrapperClassName:i,promoOn:n})})}},93619:function(e,t,r){"use strict";r.d(t,{V:function(){return s}});var a=r(11353),l=r(45993);let s=()=>(0,l.A)(["cars","CarSearchItemComponent"])||a.Z},59965:function(e,t,r){"use strict";r.d(t,{HT:function(){return c},Sf:function(){return m}});var a=r(85893),l=r(25675),s=r.n(l),i=r(41664),n=r.n(i),o=r(90465);let d=e=>{if(e)return e.startsWith("https://res.cloudinary.com")&&!e.includes("q_")?e.replace("upload/","upload/q_auto,f_auto/"):e},c=e=>{let{src:t,width:r=640,quality:a=75}=e;return"https://res.cloudinary.com/total-dealer/image/upload/w_".concat(r,",f_auto,q_").concat(a,"/v1/production/").concat(t)},m=e=>e.split("/").pop().split(".")[0],u=(e,t)=>"number"==typeof e&&"number"==typeof t,h=e=>{var t,r,l,i,n;let{image:m,alt:h,style:x,className:p,sizes:v,enableFill:g,priority:_,id:f}=e,{src:j,loader:C}=(0,o.t)(null!==(i=null==m?void 0:m.image_key)&&void 0!==i?i:null==m?void 0:m.url,(null==m?void 0:m.image_key)?c:void 0);if(!m)return null;let w=null===(t=m.url)||void 0===t?void 0:t.endsWith(".gif"),y=null===(r=m.url)||void 0===r?void 0:r.includes("/video/");return((null==m?void 0:m.image_key)||j&&C&&!w&&!y)&&((null==m?void 0:m.image_key)||j)?u(m.height,m.width)?(0,a.jsx)(s(),{src:j,height:m.height,width:m.width,alt:h,style:x,className:p,sizes:v,priority:_,loader:C,"data-testid":"image-".concat(f)}):g?(0,a.jsx)(s(),{src:j,alt:h,style:x,className:p,sizes:v,priority:_,loader:C,fill:!0}):(0,a.jsx)("img",{src:d(null==m?void 0:null===(n=m.url)||void 0===n?void 0:n.replace("http:","https:")),alt:null!=h?h:null==m?void 0:m.alt,style:x,className:p}):y?(0,a.jsx)("video",{src:m.url,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:x,className:p}):(0,a.jsx)("img",{src:d(null==m?void 0:null===(l=m.url)||void 0===l?void 0:l.replace("http:","https:")),alt:null!=h?h:null==m?void 0:m.alt,style:x,className:p})};t.ZP=e=>{var t;let r=null!==(t=null==e?void 0:e.alt)&&void 0!==t?t:"";return(null==r?void 0:r.startsWith("https"))?(0,a.jsx)(n(),{href:r,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(h,{...e})}):(0,a.jsx)(h,{...e})}},6811:function(e,t,r){"use strict";r.d(t,{i:function(){return d}});var a=r(85893),l=r(25675),s=r.n(l),i=r(59965),n=r(62742),o=r.n(n);let d=e=>{let{image:t,overlay:r=!0,children:l}=e;return(0,a.jsxs)("div",{className:"position-relative",children:[(0,a.jsx)("div",{className:o().ImageContainer,children:(0,a.jsx)(i.ZP,{className:o().Img,image:t,alt:t.alt})}),r&&(0,a.jsx)("div",{"aria-hidden":"true",className:o().ImageOverlay}),(0,a.jsx)("div",{className:"position-relative py-0 py-lg-5",children:l})]})};t.Z=e=>{let{image:t,imageType:r="Image",overlay:l=!0,children:i}=e;return(0,a.jsxs)("div",{className:"position-relative",children:[(0,a.jsx)("div",{className:o().ImageContainer,children:"img"===r?(0,a.jsx)("img",{src:t.src,className:o().Img,alt:t.alt}):(0,a.jsx)(s(),{...t,className:o().Img,alt:t.alt})}),l&&(0,a.jsx)("div",{"aria-hidden":"true",className:o().ImageOverlay}),(0,a.jsx)("div",{className:"position-relative py-0 py-lg-5",children:i})]})}},50187:function(e,t,r){"use strict";r.r(t);var a=r(85893),l=r(87536),s=r(93967),i=r.n(s),n=r(5152),o=r.n(n),d=r(94605),c=r(85);let m=o()(()=>Promise.resolve().then(r.bind(r,57333)).then(e=>e.NumericFormat),{loadableGenerated:{webpack:()=>[57333]}}),u=["$5,000","$10,000","$15,000","$20,000","$25,000","$30,000","$40,000","$50,000","$70,000"],h=["$300,000","$400,000","$500,000","$600,000","$700,000","$800,000"];t.default=(0,c.Z)({})(e=>{let{value:t,fieldState:r,formItem:s,placeholder:n,onChange:o,options:c=d.amI?h:u,...x}=e,{specialValue:p,...v}=x,{setValue:g}=(0,l.Gc)();return(0,a.jsxs)("div",{id:null==s?void 0:s.name,children:[(0,a.jsx)(m,{value:t,className:i()({"form-control":!0,"is-invalid":null==r?void 0:r.error}),displayType:"input",thousandSeparator:!0,prefix:"$",placeholder:n||(null==s?void 0:s.name),onChange:o,...v}),(0,a.jsx)("div",{className:"mt-2",children:c.map((e,r)=>(0,a.jsx)("div",{className:i()({"btn-outline-secondary":e!==t,"btn-primary":e===t},"btn btn-sm mr-2 mb-2 btn-money"),onClick:()=>g(s.name,e),children:e},"option-".concat(r)))})]})})},23585:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var a=r(85893),l=r(67294),s=r(17857),i=r(46155),n=r.n(i);let o=()=>{let[e,t]=(0,l.useState)(0),[r,i]=(0,l.useState)(0),o="Australia/Brisbane",d=new Date,c=parseInt(d.toLocaleString("en-GB",{timeZone:o}).split(",")[0].split("/")[0]),m=d.toLocaleString("en-GB",{timeZone:o}).split(",")[1].split(":"),u=3600*parseInt(m[0])+60*parseInt(m[1])+parseInt(m[2]),[h,x]=(0,l.useState)((c-1)*192+Math.floor(u/450));return(0,l.useEffect)(()=>{let e=setTimeout(()=>{let e=new Date().toLocaleString("en-GB",{timeZone:o}).split(",")[1].split(":"),a=Math.floor((3600*parseInt(e[0])+60*parseInt(e[1])+parseInt(e[2]))/450);x((c-1)*192+a),t((c-1)*192+a),i(r+1)},15e4);return()=>clearTimeout(e)},[r]),(0,a.jsxs)("div",{className:n().Wrapper,children:[(0,a.jsx)("h4",{className:"mr-3 text-uppercase",children:"Sales this Month"}),(0,a.jsx)("div",{className:"d-flex",children:(0,a.jsx)("div",{className:n().Digit,children:(0,a.jsx)("h4",{className:"card-inner",children:(0,a.jsx)(s.ZP,{start:e,duration:2,end:h,separator:""})})})})]})}},68875: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",Arrow:"CarsSlider_Arrow__1fY51",ArrowsSimiarCars:"CarsSlider_ArrowsSimiarCars__vR9uN",Left:"CarsSlider_Left__SP1yC",Right:"CarsSlider_Right___qzrn",LeftBottom:"CarsSlider_LeftBottom__uQz6j",RightBottom:"CarsSlider_RightBottom__ERk1y",TopRight:"CarsSlider_TopRight__uGC5a",TopLeft:"CarsSlider_TopLeft__JHGmM",Disabled:"CarsSlider_Disabled__ov_7O",SwipeText:"CarsSlider_SwipeText__8eYX6",CarouselContent:"CarsSlider_CarouselContent__TQD9d",CarouselItem:"CarsSlider_CarouselItem__P_4xE",ViewedCarsCarouselItem:"CarsSlider_ViewedCarsCarouselItem__Z9OQd"}},62742: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:"ImageBackground_Container__DQmbV",ImageContainer:"ImageBackground_ImageContainer__7481P",ImageOverlay:"ImageBackground_ImageOverlay__RL61r",Img:"ImageBackground_Img__Lbovb"}},46155: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",Wrapper:"SalesCounter_Wrapper__cVOYO",Digit:"SalesCounter_Digit__SLA5_"}}}]);