(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{75557:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(8842)}])},54943:function(e,t,a){"use strict";a.d(t,{Wc:function(){return r},V2:function(){return s}});var l=a(59965),i=a(45028),n=a(83346);a(41132),a(86747),a(97385);let s=function(e){var t,a;let l=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("object"!=typeof e)return{title:"",description:""};let r=l?" | ".concat(n.cy.name):"",c=/<span[^>]*>(.*?)Isuzu UTE<\/span>/gi,o=s?"":"".concat((0,i.fT)(e.title)).concat(r);null==e||!e.meta_title||(null===(t=e.meta_title)||void 0===t?void 0:t.includes("null"))||(null===(a=e.meta_title)||void 0===a?void 0:a.includes("undefined"))||(o="".concat((0,i.fT)(e.meta_title)).concat(r)),c.test(o)&&(o=o.replace(c,"Isuzu UTE"));let d=(null==e?void 0:e.meta_description)&&!e.meta_description.includes(null)&&!e.meta_description.includes("undefined")?(0,i.fT)(e.meta_description):void 0;return c.test(d)&&(d=d.replace(c,"Isuzu UTE")),{title:o,description:d}};function r(e,t,a,i){let{title:n,description:r}=s(e,!0,!0),c="",o="";return(null==i?void 0:i.includes("https:"))?(c=i,o=(0,l.Sf)(i)):o=i,{title:n||t,metaDescription:r||a,metaImage:c,cloudinaryMetaImageKey:o}}},8842:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return eQ},default:function(){return e$}});var l=a(85893),i=a(54943),n=a(10993),s=a(67294),r=a(37496),c=a(89755),o=a.n(c),d=a(82480),m=a(41132),x=a(26335),h=a(22951),u=a(86688),p=a(27763),v=a(94605);let j=e=>{let{seeAllOptionsTranslation:t="All Makes"}=e;return(0,l.jsx)(u.ZP,{attribute:"make",translations:{seeAllOption:t},sortMakeModel:!p.Z.search.sortMakeByVolume,limit:100})},_=e=>{let{seeAllOptionsTranslation:t="All Models"}=e;return(0,l.jsx)(u.ZP,{attribute:"make_model",translations:{seeAllOption:t},sortMakeModel:!0,limit:250})},g=()=>(0,l.jsx)(u.ZP,{attribute:"price_range",translations:{seeAllOption:"Any Price"},sortByName:!0,limit:30});var w=a(83853),b=a(39778),f=a(42436),y=a(4490),N=a.n(y),C=()=>{let{refine:e}=(0,b.H)({attribute:"car_type"}),t=(0,f.zH)("car_type"),a=[{value:"",label:"All"},{value:"new",label:"New"},{value:"used",label:"Pre-Owned"},{value:"demo",label:"Demo"}],i=a.findIndex(e=>e.value===t);return(0,l.jsx)("div",{className:"d-none d-sm-flex row align-items-center justify-content-center",children:(0,l.jsx)("div",{className:(0,m.cn)(N().SortContainer,"option".concat(i)),children:a.map(a=>(0,l.jsx)("div",{className:(0,m.cn)(N().SortButton,a.value===t&&"text-white"),onClick:()=>e(a.value),onKeyPress:()=>e(a.value),"aria-label":a.label,children:a.label},a.value))})})},S=a(53159),k=a.n(S);let I=e=>{let{children:t,className:a}=e;return(0,l.jsx)("div",{className:(0,m.cn)("col-12 col-lg-3",a),children:t})};var F=e=>{let{outerClass:t="container py-4 py-md-5",className:a,style:i={},heading:n,serverState:s}=e;return(0,l.jsx)("div",{className:t,children:(0,l.jsx)("div",{className:a,style:i,children:(0,l.jsxs)(h.tJ,{serverState:s,children:[(0,l.jsx)(w.T7,{className:"text-center text-white",children:n}),(0,l.jsx)("div",{className:"text-white mt-5 mb-3",children:(0,l.jsx)(C,{})}),(0,l.jsx)("div",{className:k().OuterSearchContainer,children:(0,l.jsxs)("div",{className:k().InnerSearchContainer,children:[(0,l.jsx)(I,{className:"mb-3 mb-lg-0",children:(0,l.jsx)(j,{})}),(0,l.jsx)(I,{className:"mb-3 mb-lg-0",children:(0,l.jsx)(_,{})}),(0,l.jsx)(I,{className:"mb-3 mb-lg-0",children:(0,l.jsx)(g,{})}),(0,l.jsx)(I,{className:"h-100 pr-lg-0 overflow-hidden",children:(0,l.jsx)("div",{className:k().SearchButtonContainer,children:(0,l.jsx)(x.Z,{className:(0,m.cn)("btn btn-block",k().SearchButton)})})})]})})]})})})};let P=e=>{let{src:t,width:a,quality:l}=e;return"https://res.cloudinary.com/total-dealer/image/upload/w_".concat(a,",f_auto,q_").concat(l,"/").concat(t)},Z=e=>{let{src:t,width:a,quality:l=80}=e;return"https://res.cloudinary.com/total-dealer/w_".concat(a,",f_auto,q_").concat(l,",c_limit/v1684803561/td_next/motorama/").concat(t)};var A=e=>{let{images:t,image:a,background:i,heading:n="Choose. Buy. Enjoy.",features:c,mobileImage:d,width:m,containerPadding:x="py-5",...h}=e,[u,p]=(0,s.useState)(0);return(0,s.useEffect)(()=>{if((null==t?void 0:t.length)>1){let e=setInterval(()=>{p((u+1)%(null==t?void 0:t.length))},7e3);return()=>clearInterval(e)}},[u,null==t?void 0:t.length]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:k().HeroBaseStyle,style:{background:i},children:[d&&(0,l.jsx)("div",{className:"d-md-none d-block",children:(0,l.jsx)(o(),{src:d,width:d.width,layout:"fill",objectFit:"cover",alt:r.default.name,quality:75,priority:!0,loader:P})}),(null==t?void 0:t.length)>1?(0,l.jsx)("div",{className:d&&"d-none d-md-block",children:t.map((e,t)=>(0,l.jsx)("div",{className:"".concat(k().HeroImageWrapper," ").concat(u===t?k().Active:""),children:(0,l.jsx)(o(),{src:e.src,width:e.width,layout:"fill",objectFit:"cover",alt:e.alt,quality:75,priority:!0,loader:P})},t))}):i?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)("div",{className:d&&"d-none d-md-block",children:(0,l.jsx)(o(),{src:a,width:m,layout:"fill",objectFit:"cover",alt:a.alt,quality:75,priority:!0,loader:P})}),(0,l.jsx)("div",{className:k().heroOverlay,children:(0,l.jsx)("div",{className:"container ".concat(x),children:(0,l.jsxs)("div",{className:"row pt-4 ".concat(!c&&"pb-5"),children:[(0,l.jsx)("div",{className:"col-xl-10 m-auto",children:(0,l.jsx)(F,{heading:n,outerClass:"mb-3 mb-md-4",className:"p-3 p-lg-4 position-relative z-100",...h})}),c]})})})]}),(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsx)("div",{className:"col-12 d-flex justify-content-center position-relative car-hero-container",children:(0,l.jsx)("div",{style:{position:"absolute",transform:"translateY(-50%)",zIndex:99,maxWidth:1e3},children:(0,l.jsx)(o(),{src:"Motorama_Hero_Cars_zshfi3",alt:"3 Cars",width:1312,height:422,layout:"intrinsic",priority:!0,sizes:"(max-width: 767px) 100vw, (max-width: 1200px) 80vw, 65vw",loader:Z})})})})})]})},T=a(89382),B=a(25675),H=a.n(B),O=a(47441),z=a(79936),E=a(84320);let L=e=>{let{onClick:t}=e;return(0,l.jsx)(O.Z,{left:!0,inside:!0,arrowClassName:"d-flex",className:"",onClick:t})},M=e=>{let{onClick:t}=e;return(0,l.jsx)(O.Z,{right:!0,inside:!0,arrowClassName:"d-flex",className:"",onClick:t})},D=e=>{var t,a;let{location:i}=e;return(0,l.jsxs)("div",{className:"col-12 d-flex flex-column px-0",style:{height:"100%"},children:[(0,l.jsx)("div",{className:"position-relative flex-fill locationSlide",style:{height:400},children:(0,l.jsx)(H(),{src:null==i?void 0:null===(a=i.image)||void 0===a?void 0:null===(t=a.image)||void 0===t?void 0:t.url,alt:i.name,unoptimized:!0,fill:!0})}),(0,l.jsxs)("div",{className:"p-3 d-flex justify-content-between align-items-center",style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0,0,0,0.8)"},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h5",{className:"mb-1 text-light",children:i.name}),(0,l.jsx)(E.Z,{stars:parseFloat(i.reviews.average_rating),count:i.reviews.count,textClassName:"ml-2 small text-white",flexJustifyClassname:"justify-content-start mb-0"})]}),(0,l.jsx)(z.Z,{href:"/our-locations/".concat(i.slug),className:"btn btn-light btn-sm font-weight-bold ml-4",children:"View Details"})]})]})};var V=e=>{let{locations:t,showControls:a=!0}=e,[i,n]=(0,T.Z)({skipSnaps:!1,loop:!0,align:"start"},[]),[r,c]=(0,s.useState)(!1),[o,d]=(0,s.useState)(!1),m=(0,s.useCallback)(()=>n&&n.scrollPrev(),[n]),x=(0,s.useCallback)(()=>n&&n.scrollNext(),[n]),h=(0,s.useCallback)(()=>{n&&(c(n.canScrollPrev()),d(n.canScrollNext()))},[n]);return(0,s.useEffect)(()=>{n&&(h(),n.on("select",h))},[n,h]),(0,l.jsx)("div",{className:"container",children:(0,l.jsxs)("div",{className:"row px-3",children:[(0,l.jsxs)("div",{className:"col-12 col-lg-6 d-flex flex-column align-items-center justify-content-center bg-white p-5 text-center locationsSliderLeft",children:[(0,l.jsx)("h6",{className:"text-primary",children:"Find Us"}),(0,l.jsx)("h3",{children:"Our Locations"}),(0,l.jsx)("p",{children:"With 15 locations conveniently in and around Brisbane, there is sure to be a Motorama location near you."}),(0,l.jsx)(z.Z,{href:"/our-locations",className:"btn btn-primary btn-rounded px-4 py-2",children:"View Locations"})]}),(0,l.jsx)("div",{className:"col-12 col-lg-6 position-relative px-0 locationsSliderRight",children:(0,l.jsxs)("div",{className:"overflow-hidden h-100",ref:i,children:[(0,l.jsx)("div",{className:"d-flex h-100",children:t.filter(e=>{var t,a;return null===(a=e.data[0].image)||void 0===a?void 0:null===(t=a.image)||void 0===t?void 0:t.url}).map((e,t)=>(0,l.jsx)(D,{location:e.data[0]},t))}),a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(L,{onClick:m,enabled:r}),(0,l.jsx)(M,{onClick:x,enabled:o})]})]})})]})})},W=a(67882),q=a(11513),R=a(48583),U=a(95495),Y=a(2589),G=a(86145),X=a(13215),J=a(41664),K=a.n(J),Q=a(39870),$=a(81999),ee=a.n($);let et=p.Z.algolia.searchPath;var ea=e=>{let{car:t,dark:a=!0,previousSearch:i}=e,n=et+"?menu[simple_body]=".concat(t.simple_body,"&menu[make]=").concat(t.make);return(0,l.jsxs)("div",{className:(0,m.cn)("my-2 previous-search-card",a?ee().DarkCard:ee().LightCard),children:[(0,l.jsx)(X.U41,{className:(0,m.cn)("mb-2",ee().IconStyle),size:24}),(0,l.jsx)(w.Db,{className:"d-inline d-md-block ml-2 ml-md-0",children:t?"".concat(t.make," ").concat(t.model):"Used Cars"}),t.simple_body&&(0,l.jsxs)(w.Db,{className:"mb-3",children:["and other ",(0,Q.kC)((0,m._6)(t.simple_body))]}),(0,l.jsx)(K(),{href:(null==i?void 0:i.url)||n,className:ee().Link,children:"Search Again?"})]})},el=a(81848),ei=a(11353),en=a(28078),es=a(553),er=a(1557),ec=a(48558),eo=a(41809),ed=a(46769),em=a(43828),ex=a.n(em),eh=e=>{var t,a,i,n,r,c,o,d,m,x;let{carHit:h,showAll:u}=e,[p,v]=(0,s.useState)(null),j="/cars/"+h.slug;(0,s.useEffect)(()=>{!async function(){if(u&&!p){let e=await (0,eo.oX)(h.id.toString()).then(e=>e);e&&v(e)}}()},[h.id,p,u]);let _=u&&p?p:h;return(0,l.jsx)(z.Z,{href:j,className:"unstyled",children:(0,l.jsxs)("table",{className:ex().Table,children:[(0,l.jsxs)("tbody",{children:[(null==_?void 0:_.km)?(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Kilometres"}),(0,l.jsx)("td",{children:(0,ed.oC)(null==_?void 0:_.km)})]}):null,(null==_?void 0:_.simple_transmission)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Transmission"}),(0,l.jsx)("td",{children:_.simple_transmission})]}),(null==_?void 0:_.simple_body)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Body"}),(0,l.jsx)("td",{children:_.simple_body})]}),(null==_?void 0:_.drive)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Drive"}),(0,l.jsx)("td",{children:_.drive})]}),(null==_?void 0:_.seats)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Number of Seats"}),(0,l.jsx)("td",{children:_.seats})]}),(null==_?void 0:_.simple_fuel)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Fuel Type"}),(0,l.jsx)("td",{children:null==_?void 0:_.simple_fuel})]}),u&&(0,l.jsxs)(l.Fragment,{children:[(null==_?void 0:null===(t=_.variant)||void 0===t?void 0:t.ancaprating)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"ANCAP safety rating"}),(0,l.jsx)("td",{children:null==_?void 0:null===(a=_.variant)||void 0===a?void 0:a.ancaprating})]}),(null==_?void 0:null===(i=_.variant)||void 0===i?void 0:i.fuelconsumptioncombined)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Fuel Consumption"}),(0,l.jsxs)("td",{children:[null==_?void 0:null===(n=_.variant)||void 0===n?void 0:n.fuelconsumptioncombined," L/100km"]})]}),(null==_?void 0:null===(r=_.variant)||void 0===r?void 0:r.fuelcapacity)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Tank Capacity"}),(0,l.jsxs)("td",{children:[null==_?void 0:null===(c=_.variant)||void 0===c?void 0:c.fuelcapacity," L"]})]}),(null==_?void 0:null===(o=_.variant)||void 0===o?void 0:o.torque)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Torque"}),(0,l.jsxs)("td",{children:[null==_?void 0:null===(d=_.variant)||void 0===d?void 0:d.torque," Nm"]})]}),(null==_?void 0:null===(m=_.variant)||void 0===m?void 0:m.cylinders)&&(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:"Cylinders"}),(0,l.jsx)("td",{children:null==_?void 0:null===(x=_.variant)||void 0===x?void 0:x.cylinders})]})]})]}),!u&&(0,l.jsx)("tfoot",{className:ex().FadeGradient})]})})},eu=e=>{let{car:t,image_url:a,showDescription:i=!0,showTable:n=!1,wrapperClassName:r="col-lg-6 mb-3 col-xl-4 carSearchCard"}=e,[c,o]=(0,s.useState)(!1),d="/cars/"+t.slug;return(0,l.jsx)("div",{className:"p-2 ".concat(r," ").concat(n?"align-self-start align-self-sm-stretch":""),children:(0,l.jsxs)("div",{className:ex().CarWrapper+" position-relative rounded h-100 d-flex flex-column border",children:[(0,l.jsx)(en.Z,{car:t,image_url:a}),(0,l.jsxs)("div",{className:"p-2 pt-4 d-flex flex-column justify-content-between h-100 position-relative",children:[(0,l.jsx)(es.default,{absolute:!0,whiteBG:!0,outline:!0,car:t,parentName:"FavouriteCarSearchItem"}),(0,l.jsxs)("div",{className:"h-100",children:[(0,l.jsxs)(z.Z,{href:d,className:"unstyled",children:[(0,l.jsx)("h6",{className:ex().CarTitle,children:t.make+" "+t.model}),(0,l.jsxs)("div",{className:"d-flex align-items-center",children:[(0,l.jsx)("span",{className:ex().PillMain+" favourite-car-search-item-year",children:t.year}),t.km?(0,l.jsxs)("span",{className:ex().Pill+" favourite-car-search-item-kms",children:[t.km.toFixed(0).replace(/(\d)(?=(\d{3})+$)/g,"$1,")+" ","kms"]}):null,t.simple_body&&(0,l.jsx)("span",{className:ex().Pill+" favourite-car-search-item-body",children:t.simple_body})]}),i&&(0,l.jsx)("p",{className:ex().CarModel+" mt-3",children:(0,Q.aS)("The ".concat(t.name," is a ").concat(t.drive," vehicle with ").concat(t.trans," transmission."),80)})]}),(0,er.pz)(t)?(0,l.jsxs)("div",{className:"my-2 d-flex justify-content-between align-items-center",children:[(null==t?void 0:t.price)&&t.price>250||t.price&&"motopool"===t.dealership_slug?(0,l.jsxs)("div",{className:"d-flex flex-column",children:[p.Z.cars.CarPriceComponent?(0,l.jsx)(p.Z.cars.CarPriceComponent,{car:t}):(0,l.jsx)("h2",{className:"mb-0 font-weight-bold mr-1",children:(0,l.jsx)(er.VP,{car:t})}),p.Z.cars.overridePriceType?(0,l.jsx)(p.Z.cars.overridePriceType,{car:t}):t.price_type]}):(0,l.jsx)("h5",{className:"mt-1",children:"Please enquire for price."}),(0,l.jsxs)(z.Z,{href:d,className:"flex-shrink-0 btn btn-primary",children:["View ",t.simple_body]})]}):(0,l.jsx)("div",{children:(0,l.jsx)("h1",{className:"mt-3 mb-2 font-weight-bold",children:"SOLD"})}),n&&(0,l.jsx)(eh,{carHit:t,showAll:c})]}),n&&(0,l.jsx)("div",{className:"d-flex justify-content-center",children:c?(0,l.jsxs)("button",{className:"w-100 btn btn-outline-dark d-flex align-items-center justify-content-center",onClick:()=>o(!1),children:[(0,l.jsx)("span",{className:"mr-3",children:"Hide Details"}),(0,l.jsx)(X.tgn,{size:24})]}):(0,l.jsxs)("button",{className:"w-100 btn btn-outline-dark d-flex align-items-center justify-content-center",onClick:()=>o(!0),children:[(0,l.jsx)("span",{className:"mr-3",children:"Show Details"}),(0,l.jsx)(X.dSq,{size:24})]})}),!(0,ec.RT)(t)&&(0,l.jsx)("div",{className:"d-flex justify-content-center",children:"in_stock"===t.status&&p.Z.showFinance?(0,l.jsxs)(z.Z,{href:(0,er.Bq)(t),className:"w-100 my-2 btn btn-outline-primary",children:["Get ",(0,Q.NM)("Pre-Approval")]}):(0,l.jsx)(z.Z,{className:"btn btn-block btn-outline-danger my-2",href:"/cars/".concat(t.slug),children:"Find Me Something Similar"})})]})]})})},ep=a(97482),ev=a(68875),ej=a.n(ev);let e_=p.Z.cars.CarSearchItemComponent?p.Z.cars.CarSearchItemComponent:ei.Z,eg=e=>{var t,a,i,n,s,r,c,o,d;let{car:m,variant:x}=e;return"original"===x?(0,l.jsx)(e_,{car:m,image_url:m.primary_image_url?m.primary_image_url:null==m?void 0:null===(d=m.images[0])||void 0===d?void 0:null===(o=d.image)||void 0===o?void 0:null===(c=o.thumb)||void 0===c?void 0:c.url,wrapperClassName:"mb-3 carSearchCard h-100"},m.id):(0,l.jsx)(l.Fragment,{children:v.I3j?(0,l.jsx)(e_,{car:m,image_url:m.primary_image_url?m.primary_image_url:null==m?void 0:null===(i=m.images[0])||void 0===i?void 0:null===(a=i.image)||void 0===a?void 0:null===(t=a.thumb)||void 0===t?void 0:t.url,wrapperClassName:"carSearchItem h-100",showDescription:!1},m.id):(0,l.jsx)(eu,{wrapperClassName:"carSearchItem",showDescription:"favourite"!==x,showTable:"favourite"===x,car:m,image_url:m.primary_image_url?m.primary_image_url:null==m?void 0:null===(r=m.images[0])||void 0===r?void 0:null===(s=r.image)||void 0===s?void 0:null===(n=s.thumb)||void 0===n?void 0:n.url},m.id)})},ew=e=>{let{cars:t,variant:a,top:i}=e,n=!v.ZId;return(0,l.jsxs)(ep.lr,{className:"mx-2",opts:{startIndex:0,align:"start",loop:!0},children:[(0,l.jsx)(ep.KI,{className:ej().CarouselContent,children:t.map(e=>(0,l.jsx)(ep.d$,{className:(0,m.cn)("mt-2","viewed"===a?ej().ViewedCarsCarouselItem:ej().CarouselItem),children:(0,l.jsx)(eg,{car:e,variant:a},e.id)},e.id))}),(0,l.jsx)(ep.am,{inside:!1,top:i,white:n,arrowClassName:i?"d-none d-lg-flex":"d-none d-sm-flex"}),(0,l.jsx)(ep.Pz,{inside:!1,top:i,white:n,arrowClassName:i?"d-none d-lg-flex":"d-none d-sm-flex"})]})};var eb=e=>{let{cars:t,variant:a,top:i=!1}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)(ew,{cars:t,variant:a,top:i}),t.length>1&&(0,l.jsx)("p",{className:(0,m.cn)(ej().SwipeText,"mt-2 d-block d-lg-none"),children:"← Swipe →"})]})},ef=a(37191);let ey=e=>{let{handleReset:t}=e,[,a]=(0,R.KO)(G.k_);return(0,s.useEffect)(()=>{localStorage.removeItem(eF)},[]),(0,l.jsxs)("div",{className:ee().EmptyHitsContainer+" my-2",children:[(0,l.jsx)("h4",{className:"text-white",children:"No Results Found"}),(0,l.jsx)("p",{className:"text-white-50",children:"It appears that some of your recently viewed cars are no longer available. Keep searching to see what else we have in stock!"}),(0,l.jsx)("button",{className:"btn btn-primary",onClick:()=>{a(U.td),t()},children:"Search For Vehicles In Stock"})]})};var eN=e=>{let{handleReset:t}=e,{hits:a}=(0,el.O)(),[i,n]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{let e=setTimeout(()=>{n(!0)},3e3);return()=>{clearTimeout(e)}},[]),a.length>0)?(0,l.jsx)("div",{children:(0,l.jsx)(eb,{cars:a,variant:"viewed"})}):i?(0,l.jsx)(ey,{handleReset:t}):(0,l.jsx)("div",{className:"ml-5",children:(0,l.jsx)(ef.Z,{style:{color:"rgba(255,255,255,0.3)"},size:52})})},eC=a(24325),eS=a.n(eC);let ek=r.default,eI=e=>{let{search_filters:t="",handleReset:a}=e;return(0,l.jsx)(Y.ol,{search_filters:t,hitsPerPage:6,children:(0,l.jsx)(eN,{handleReset:a})})},eF=ek.slug+"-ViewCar";ek.slug;let eP=e=>(e&&"string"==typeof e&&e.startsWith("https://res.cloudinary.com/"),(0,l.jsx)(o(),{src:e,layout:"fill",objectFit:"cover",alt:ek.name,priority:!0}));var eZ=e=>{let{image:t,secondaryImage:a,heroComponent:i,dark:n}=e,[r,c]=(0,R.KO)(G.k_),o=()=>{c([]),c(U.td)},d=(0,s.useMemo)(()=>{let e="";return(null==r?void 0:r.length)&&r.forEach((t,a)=>{a>0?e+=" OR stocknum=".concat(t.stocknum):e+="stocknum=".concat(t.stocknum)}),e},[r]);return(0,l.jsx)(l.Fragment,{children:0===r.length?i:(0,l.jsxs)("div",{className:eS().Hero,children:[eP(a||t),(0,l.jsx)("div",{className:"container py-5",children:(0,l.jsx)("div",{className:"row py-1 py-md-5",children:(0,l.jsxs)("div",{className:"col-xl-10 m-auto",children:[(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)(w.mt,{className:"mb-4 text-white",children:"Welcome Back"}),(0,l.jsxs)(w.Db,{className:"mb-5 text-light",children:["EXPLORE YOUR VIEWED"," ",(0,l.jsx)("span",{className:"text-uppercase",children:(0,m._6)(p.Z.primaryVehicle)})," OR START A NEW SEARCH"]})]}),(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:"col-12 col-md-4 col-lg-3 d-flex flex-wrap justify-content-center flex-md-column justify-content-md-start",children:[(0,l.jsx)("div",{className:"w-100",children:(0,l.jsx)(ea,{car:r[0],dark:n,previousSearch:null})}),(0,l.jsx)("button",{className:(0,m.cn)("mt-4 mb-5 mb-lg-0 btn btn-block py-3 px-4",v.ZId?"btn-light text-primary":"btn-primary"),onClick:o,children:"Start A New Search"})]}),(0,l.jsxs)("div",{className:"col-12 px-md-5 col-md-8 col-lg-9",children:[(0,l.jsx)(q.FU5,{onClick:o,className:eS().Close}),(0,l.jsx)(eI,{search_filters:"".concat(Y.LS," AND (").concat(d,")"),handleReset:o})]})]})]})})})]})})},eA=a(78152),eT=a(84713),eB=a(84901),eH=a(96006),eO=a(95149),ez=a(20729),eE=a.n(ez);let eL=eH.Z,eM=e=>{let t,{item:a,attribute:i,hideCount:n,hideLabel:s}=e,r="";if("make"===i){let e=eL.filter(e=>e.slug===(0,Q.XB)(a.label))[0];e&&(r=e.logo.url)}if("simple_body"===i){let e=(0,Q._A)(a.label.toLowerCase());eO.U.includes(e)&&(r="/body/".concat(e,".png"))}t=["simple_body","make"].includes(i)?"/search/".concat((0,Q.XB)(a.value.toLowerCase())):(0,Y.Bn)({menu:{[i]:a.value}});let c=!s||!r;return(0,l.jsx)("div",{className:"col d-flex justify-content-center",children:(0,l.jsx)("div",{className:eE().FacetContainer,children:(0,l.jsx)("div",{className:(0,m.cn)(eE().FacetContents,"d-flex align-items-center justify-content-center"),children:(0,l.jsx)(z.Z,{href:t,className:"unstyled",children:(0,l.jsxs)("div",{className:" d-flex flex-column align-items-center",children:[r&&(0,l.jsx)("div",{className:(0,m.cn)(eE().ImageClass,"mb-0",i,"simple_body"!==i&&"mb-sm-2"),children:(0,l.jsx)(H(),{src:"Chery"===a.value?"https://res.cloudinary.com/total-dealer/image/upload/v1678783752/td_next/chery/Chery_Vertical_Logo_n6ubbt":"Honda"===a.value?"https://res.cloudinary.com/total-dealer/image/upload/v1715665657/td_next/honda/honda_Logo_oez23i.png":"Jaguar"===a.value?"https://res.cloudinary.com/total-dealer/image/upload/v1715913518/td_next/Jaguar/Jaguar_new_logo.png":"Ford"===a.value?v.mdO?"https://res.cloudinary.com/total-dealer/image/upload/v1729037496/td_next/ford/sz44dttvir5odhkwkcup.svg":"https://res.cloudinary.com/total-dealer/image/upload/v1723062656/td_next/ford/Ford_Signature_u06ngb":"SsangYong"===a.value?"https://res.cloudinary.com/total-dealer/image/upload/v1728538501/td_next/ssangyong/kgm-logo-c_taxzal":r,alt:a.label,loading:"lazy",fill:!0,unoptimized:!0,style:{objectFit:"contain"}})}),c&&(0,l.jsxs)("div",{className:"text-center font-weight-bold ".concat(r?"d-none d-sm-block":""," ").concat(eE().FacetLabel),children:[a.label," ",!n&&(0,l.jsxs)("small",{className:"text-secondary",children:["(",a.count,")"]})]}),!n&&(0,l.jsx)("div",{className:"d-block d-sm-none",children:(0,l.jsxs)("small",{className:"text-secondary",children:["(",a.count,")"]})})]})})})})})},eD=e=>{let{item:t,attribute:a,hideCount:i}=e,n=(0,Y.Bn)({menu:{[a]:t.value}});return(0,l.jsx)("div",{className:"col-6 col-sm-4 col-md-3 d-flex justify-content-center",children:(0,l.jsx)("div",{className:eE().FacetContainer,children:(0,l.jsx)("div",{className:eE().FacetContents+" d-flex align-items-center justify-content-center",children:(0,l.jsx)(z.Z,{href:n,className:"unstyled",children:(0,l.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,l.jsx)("div",{className:(0,m.cn)("d-block text-center font-weight-bold",eE().FacetLabel),children:t.label}),"weekly_price_range"===a?(0,l.jsx)("small",{className:"text-secondary",children:"Per Week"}):"",!i&&(0,l.jsxs)("small",{className:"text-secondary",children:["(",t.count,")"]})]})})})})})};var eV=e=>{let{attribute:t,limit:a,className:i,hideCount:n=!1,hideLabel:s}=e,{items:r}=(0,b.H)({attribute:t,limit:a,sortBy:["count:desc"]});"weekly_price_range"===t&&(0,u.Yi)(r);let c="row row-cols-2 rol-cols-md-3 row-cols-lg-4 row-cols-xl-5";return"simple_body"===t&&(c="row row-cols-2 row-cols-md-3"),(0,l.jsx)("div",{className:i,children:(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:c,children:r.map((e,a)=>["make","simple_body"].includes(t)?(0,l.jsx)(eM,{attribute:t,item:e,hideCount:n,hideLabel:s},t+a):(0,l.jsx)(eD,{attribute:t,item:e,hideCount:n},t+a))})})})},eW=a(75252),eq=a.n(eW);let eR=e=>{let{setCurrentAttribute:t,currentAttribute:a,attribute:i,title:n,className:s}=e;return(0,l.jsx)("div",{className:s,children:(0,l.jsx)("div",{className:(0,m.cn)(eq().SearchAttributeStyle,a===i&&eq().active),onClick:()=>{t(i)},children:(0,l.jsx)("h4",{className:(0,m.cn)("my-2",v.YN3?eq().SearchAttributeText:""),children:n})})})},eU=e=>{let{title:t="Find the perfect car for you",textPrimary:a=!0,subtitle:i,hideCount:n,hideLabel:c,hideBody:o=!1}=e,[d,x]=(0,s.useState)("make");return(0,l.jsxs)("div",{className:"pb-3 overflow-hidden mx-auto",style:{maxWidth:1e3},children:[t&&(0,l.jsx)("h4",{className:"text-center ".concat(a&&"text-primary"," mb-4 px-1 ").concat(eq().searchImportantTitle),children:t}),i&&(0,l.jsx)("h6",{className:"text-center ".concat(a&&"text-primary"," mb-4 px-1"),children:i}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"container p-0",children:(0,l.jsxs)("div",{className:(0,m.cn)("row mx-2",eq().searchAttributeContainer),children:[(0,l.jsx)(eR,{currentAttribute:d,setCurrentAttribute:x,attribute:"make",title:"Brand"}),!o&&(0,l.jsx)(eR,{currentAttribute:d,setCurrentAttribute:x,attribute:"simple_body",title:"Body"}),r.default.finance_provider&&(0,l.jsx)(eR,{currentAttribute:d,setCurrentAttribute:x,attribute:"price_range",title:"Price"}),(0,l.jsx)(eR,{currentAttribute:d,setCurrentAttribute:x,attribute:"simple_fuel",title:"Fuel Type"}),(0,l.jsx)(eR,{currentAttribute:d,setCurrentAttribute:x,attribute:"make_model",title:"Model"})]})}),(0,l.jsxs)(eB.S,{isOpen:!0,children:[(0,l.jsx)(eV,{attribute:"make",limit:20,className:"make"===d?"my-2":"d-none",hideCount:n,hideLabel:c}),!o&&(0,l.jsx)(eV,{attribute:"simple_body",limit:20,className:"simple_body"===d?"my-2":"d-none",hideCount:n}),r.default.finance_provider&&(0,l.jsx)(eV,{attribute:"weekly_price_range",limit:20,className:"price_range"===d?"my-2":"d-none",hideCount:n}),(0,l.jsx)(eV,{attribute:"simple_fuel",limit:20,className:"simple_fuel"===d?"my-2":"d-none",hideCount:n}),(0,l.jsx)(eV,{attribute:"make_model",limit:20,className:"make_model"===d?"my-2":"d-none",hideCount:n})]})]})]})};var eY=e=>{let{...t}=e;return(0,l.jsx)(h.tJ,{serverState:null==t?void 0:t.serverState,children:(0,l.jsx)(eU,{...t})})},eG=a(84929);let eX=e=>{let{src:t,width:a,quality:l=60}=e;return"https://res.cloudinary.com/total-dealer/w_".concat(a,",f_auto,q_").concat(l,",c_limit/v1684803561/td_next/motorama/").concat(t)},eJ=[{src:"v1676408231/td_next/big-box-cars/homepage-banner-01_dvizol",alt:"Big Box Cars Banner 1"}];var eK=e=>{let{tdPage:t,...a}=e,[i,n]=(0,s.useState)([]),c=["ford","toyota","kia","mitsubishi","mg","jeep","nissan","mazda","chery","holden"],m=r.default.dealership_websites.sort((e,t)=>{let a=e.make.toLowerCase(),l=t.make.toLowerCase();return c.indexOf(a)-c.indexOf(l)});return(0,s.useEffect)(()=>{n(r.default.locations.reduce((e,t)=>{let a=e.find(e=>e.name.replace(/ Parts| Service| Sales/g,"")===t.name.replace(/ Parts| Service| Sales/g,""));return a?a.data.push(t):e.push({name:t.name.replace(/ Parts| Service| Sales/g,""),slug:t.slug,data:[t]}),e},[]).filter(e=>null!==e.data[0].image&&"motorama"!==e.name).sort(()=>.5-Math.random())||[])},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eZ,{heroComponent:(0,l.jsx)("div",{className:"overflow-hidden",children:(0,l.jsx)(A,{images:eJ,background:"linear-gradient(#000000, var(--primary))",heading:(0,l.jsx)(eG.hZ,{}),containerPadding:"pb-5 mb-md-5",...a})}),secondaryImage:"https://res.cloudinary.com/total-dealer/image/upload/f_auto,q_auto/v1682989991/td_next/motorama/motoramabanner_wvir38",...a}),(null==t?void 0:t.blocks_json)&&(0,l.jsx)("div",{className:"editorjs-home-component",children:(0,l.jsx)(W.ZP,{page:t,className:"my-4 mb-md-5"})}),(0,l.jsxs)("div",{className:"py-5 text-center text-white",style:{background:"black"},children:[(0,l.jsx)("h1",{className:"h2 mb-4 pb-2",children:"Discover Our New Car Showroom"}),(0,l.jsx)(eT.Z,{padding:"",customBrands:m})]}),(0,l.jsx)("div",{className:"container pt-5",children:(0,l.jsxs)("div",{className:"row",children:[(0,l.jsx)("div",{className:"col-12 col-xl-6 pb-xl-5",children:eG.YP.map((e,t)=>(0,l.jsx)(eG.sI,{index:t,image:e.image,heading:e.heading,content:e.content},"InfoSectionRow ".concat(t)))}),(0,l.jsx)("div",{className:"col-12 col-xl-6 d-flex align-items-end justify-content-center",children:(0,l.jsx)("div",{style:{marginBottom:"-7px"},children:(0,l.jsx)(o(),{src:"Smiling_Couple_pggspf",alt:"Smiling Couple",width:704,height:544,layout:"intrinsic",sizes:"(max-width: 767px) 100vw, 50vw",loader:eX})})})]})}),(0,l.jsx)("div",{className:"py-5 bg-light",children:(0,l.jsx)(eY,{title:"Find the Car Just Right for You",textPrimary:!1,...a})}),(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row px-3",children:eG.rz.map((e,t)=>(0,l.jsx)(eG.t7,{index:t,...e},"CTASection ".concat(t)))})}),(0,l.jsx)("div",{className:"py-5",style:{background:"black"},children:i.length>0&&(0,l.jsx)(V,{locations:i})}),(0,l.jsx)(eA.Z,{heading:"See What Our Customers Are Saying"}),(0,l.jsxs)("div",{className:"py-5",children:[(0,l.jsx)("h3",{className:"text-center mb-1",children:"Helpful Links"}),(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row",children:eG.Wp.map((e,t)=>(0,l.jsx)(d.Z,{...e},"HelpfulLink ".concat(t)))})})]})]})},eQ=!0,e$=e=>{let{title:t,metaDescription:a,metaImage:s}=(0,i.Wc)(e.tdPage,"Brisbane's Most recommended New & Pre-Owned Dealer | Motorama","Welcome to the Motorama Group - Brisbane's most recommended & Award Winning New & Pre-Owned car retailer & servicing centre. 3 convenient locations at Moorooka, Browns Plains & Springwood.","https://res.cloudinary.com/total-dealer/image/upload/f_auto,q_auto/v1684722467/td_next/motorama/motorama_news_p3bhio");return(0,l.jsx)("div",{className:"indexPage",children:(0,l.jsx)(n.Z,{title:t,metaDescription:a,metaImage:s,children:(0,l.jsx)(eK,{...e})})})}},82480:function(e,t,a){"use strict";var l=a(85893),i=a(79936);t.Z=e=>{let{Icon:t,text:a,url:n}=e;return(0,l.jsx)("div",{className:"col-12 col-md-6 col-lg-4 col-xl-3 mt-4",children:(0,l.jsxs)(i.Z,{href:n,className:"d-flex flex-row justify-content-start align-items-center py-3 px-4 font-weight-bold btn btn-light",children:[(0,l.jsx)(t,{size:30,className:"mr-2",color:"var(--primary)"}),(0,l.jsx)("span",{children:a})]})})}},43828: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",ResponsiveBtn:"FavouriteCarSearchItem_ResponsiveBtn__37QzP",CarWrapper:"FavouriteCarSearchItem_CarWrapper__vZTun",ImageContainer:"FavouriteCarSearchItem_ImageContainer__TH_4Y",CarTitle:"FavouriteCarSearchItem_CarTitle__l9djZ",CarModel:"FavouriteCarSearchItem_CarModel__rTSph",CarPrice:"FavouriteCarSearchItem_CarPrice__uQuOG",Pill:"FavouriteCarSearchItem_Pill__cK0B1",PillMain:"FavouriteCarSearchItem_PillMain__abnyr",Table:"FavouriteCarSearchItem_Table__vf5k4",FadeGradient:"FavouriteCarSearchItem_FadeGradient__9zYbe"}},24325: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",Hero:"HeroStored_Hero__pCdBf",Close:"HeroStored_Close__79ZTv"}},81999: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",DarkCard:"PreviousSearchCard_DarkCard__5REH5",LightCard:"PreviousSearchCard_LightCard__ZgjHT",Link:"PreviousSearchCard_Link__4i66q",EmptyHitsContainer:"PreviousSearchCard_EmptyHitsContainer__Zpvre",IconStyle:"PreviousSearchCard_IconStyle__MwrJK"}},20729: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",FacetContainer:"FacetVariant_FacetContainer__OgiVc",FacetLabel:"FacetVariant_FacetLabel__4N8QV",ImageClass:"FacetVariant_ImageClass__rtlz3",FacetContents:"FacetVariant_FacetContents__lWeyr"}},75252: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",SearchAttributeStyle:"SearchImportantVariant_SearchAttributeStyle__QSXhP",active:"SearchImportantVariant_active__qbIkX",SearchAttributeText:"SearchImportantVariant_SearchAttributeText__veGj3",searchAttributeContainer:"SearchImportantVariant_searchAttributeContainer__LduIz",searchImportantTitle:"SearchImportantVariant_searchImportantTitle__gkxEF"}},4490: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",SortContainer:"CarTypeSlider_SortContainer__wDU0D",SortButton:"CarTypeSlider_SortButton__qsNDb"}},53159: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",heroOverlay:"Hero_heroOverlay__Pg7SA",HeroBaseStyle:"Hero_HeroBaseStyle__tPiSa",h2:"Hero_h2__2cVUy",quickeasyBefore:"Hero_quickeasyBefore__k8yt8",OuterSearchContainer:"Hero_OuterSearchContainer__CbAlR",InnerSearchContainer:"Hero_InnerSearchContainer__pRTcu",SearchButtonContainer:"Hero_SearchButtonContainer__kEYNs",SearchButton:"Hero_SearchButton__XDEMh",HeroImageWrapper:"Hero_HeroImageWrapper__pHyn_",Active:"Hero_Active__E7ZBz"}}},function(e){e.O(0,[5937,9401,6556,6955,652,6152,123,1848,7585,7385,3155,7161,5759,6372,4328,8989,9609,5919,8152,2888,9774,179],function(){return e(e.s=75557)}),_N_E=e.O()}]);