(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8989],{38989:function(e,t,n){"use strict";n.d(t,{Z:function(){return eN}});var a=n(85893),r=n(67294),s=n(37496),i=n(27763),c=n(87385),l=n(71301),o=n(39521),d=n(79936),m=n(41132),x=n(94605),h=n(98465),p=n.n(h);let u=e=>{let{location:t}=e;return(0,a.jsx)(d.Z,{href:t.address.place_url,className:p().LinkText,children:(0,a.jsxs)("span",{children:[t.address.street,(0,a.jsx)("br",{}),t.address.city," ",t.address.state," ",t.address.postcode]})})},w=e=>{let{first:t,second:n}=e;return(0,a.jsxs)("div",{className:"row pb-2 "+p().ResponsiveText,children:[(0,a.jsx)("div",{className:n?"col-4":"col-12",children:t}),(0,a.jsx)("div",{className:"col-8",children:n})]})};var j=e=>{var t;let{location:n,additionalDetails:r=[],map:s=!1,dark:c=!1}=e;return(0,a.jsxs)(o.Zb,{className:(0,m.cn)(c?"bg-dark":"bg-white","mb-3"),children:[(0,a.jsx)(o.Ol,{className:"my-0 pb-0",children:(0,a.jsx)(o.ll,{className:(0,m.cn)(c?"text-white":"","mb-0"),children:n.name})}),(0,a.jsxs)("div",{className:"pt-4 px-4 pb-3 ".concat(c?"text-white":"text-muted"),children:[n.visible&&(0,a.jsx)(w,{first:(0,a.jsx)("b",{children:"Address"}),second:(0,a.jsx)(u,{location:n})}),(null===(t=i.Z.location)||void 0===t?void 0:t.additionalAddress)&&(0,a.jsx)(w,{first:(0,a.jsx)("b",{children:"Address"}),second:(0,a.jsx)(u,{location:i.Z.location.additionalAddress})}),(0,a.jsx)(w,{first:(0,a.jsx)("b",{children:"Phone"}),second:i.Z.overrideContactUsPhone?(0,a.jsx)(d.Z,{href:"tel:".concat(i.Z.overrideContactUsPhone),className:p().LinkText,children:i.Z.overrideContactUsPhone}):(0,a.jsx)(d.Z,{href:"tel:".concat(n.contact_detail.phone),className:p().LinkText,children:n.contact_detail.phone})}),null==r?void 0:r.map((e,t)=>(0,a.jsx)(w,{first:(0,a.jsx)("b",{children:e.name}),second:(null==e?void 0:e.isEmail)?(0,a.jsx)(d.Z,{href:"mailto:".concat(e.address),children:e.address}):(0,a.jsx)(d.Z,{href:"tel:".concat(e.address.replace(/ /g,"")),children:e.address})},"extra-detail"+t))]}),s&&!x.RDo&&(0,a.jsx)(l.Z,{location:n})]})},v=n(39870),b=n(3339),f=n(25675),g=n.n(f),y=n(90465),C=n(39506),_=n.n(C),N=e=>{let{imageSrc:t,imageAlt:n,linkHref:r,background:s}=e,{src:i,loader:c}=(0,y.t)("https://res.cloudinary.com/total-dealer/image/upload/".concat(t));return(0,a.jsx)("div",{className:(0,m.cn)("col-12 col-lg-6 mb-3 carSearchCard",x.el2?"col-xl-4":" col-xl-3"),children:(0,a.jsx)(d.o,{href:r,children:(0,a.jsx)("div",{className:(0,m.cn)(_().CarWrapper,"h-100 d-flex align-item-center rounded"),style:s={background:s},children:(0,a.jsx)("div",{className:(0,m.cn)("w-100 d-flex position-relative my-auto"),children:(0,a.jsx)(g(),{src:i,alt:n,width:1e3,height:1e3,style:{width:"100%",height:"auto",objectFit:"fill"},sizes:"(max-width: 767px) 100vw, 30vw",loader:c})})})})})};let k={warranty:"3 Year Standard warranty",calls:"Can't get to us? Ask for a video call to give you the peace of minds you need buying from afar",trade:"Trade in your car with confidence",freight:"We can freight your vehicle anywhere in Australia using trusted freight companies.",finance:"Need finance? WE can offer personalised finance packages to suit your needs",twg:"Buy your car with confidence knowing that we are experts in our field and have served Brisbane since 1969.",service:"3 Year peace-of-mind mechanical protection plan on all used vehicles.",toyotaCertified:"Enjoy the peace of mind that comes with owning a Toyota Certified Pre-Owned vehicle",qualityAsured:"Every car Quality Assured"},Z=(()=>{switch(!0){case x.pL8:return[["byrne-ford-warranty",k.warranty,"linear-gradient(to bottom , rgb(67,98,175)50%, rgb(37,33,98) 50%)",["used"]],["byrne-ford-video-calls",k.calls,"rgb(67,98,175)"],["byrne-ford-trade-in",k.trade,"linear-gradient(135deg , rgb(203,28,34)32%, rgb(69,91,158) 68%)"],["byrne-ford-freight",k.freight,"rgb(255,255,255)"],["byrne-ford-finance",k.finance,"rgb(67,98,175)"],["byrne-ford-1",k.twg,"rgb(37,33,98)"],["byrne-ford-3-year",k.service,"rgb(37,33,98)"]];case x.sDV:return[["kedron-warranty-special",k.warranty,"rgb(0, 0, 0)",["new","demo"]],["gwm-warranty",k.warranty,"rgb(0, 0, 0)",["used"]],["gwm-video-call",k.calls,"rgb(77, 77, 77)"],["gwm-trade-in",k.trade,"rgb(204, 29, 36)"],["gwm-frieght",k.freight,"rgb(255, 255, 255)"],["gwm-finance",k.finance,"rgb(255, 255, 255)"],["gwm-hero",k.twg,"rgb(0, 0, 0)"],["gwm-3-year",k.service,"rgb(0, 0, 0)",["used"],!0]];case x.el2:return[["TWGCars-50years-nov",k.twg,"rgb(38,39,109)"],["TWGCars-trade-in-nov",k.trade,"rgb(255,196,11)"],["TWGCars-3-year",k.service,"rgb(3, 0, 103)"],["TWGCars-finance-nov",k.finance,"rgb(29, 92, 250)"],["TWGCars-video-nov",k.calls,"rgb(255, 126, 11)"],["TWGCars-freight-nov",k.freight,"rgb(29, 92, 250)"]];case x.RuW:return[["ch-quality-assured",k.qualityAsured,"rgb(236, 10, 30)",["used"],!0],["ch-finance",k.finance,"rgb(128,128,128)",["used"],!0],["ch-toyota-cetified",k.toyotaCertified,"linear-gradient(to bottom ,rgb(55,67,93)50%, rgb(145,126,169) 50%)",["used"],!0],["ch-freight",k.freight,"rgb(236, 10, 30)",["used"],!0]];default:return[]}})().map(e=>{let[t,n,a,r,s]=e;return{src:t,alt:n,background:a,display:r,strictDisplay:s}});var S=n(13215),B=n(93133),I=n(49327),T=n(58122),F=n.n(T),R=n(5152),D=n.n(R),L=n(43990),W=n(49831),A=n(22606),E=n(28078),P=n(94634),G=n(86820),M=n(23232),q=n.n(M);let Y=D()(()=>Promise.resolve().then(n.bind(n,553)),{loadableGenerated:{webpack:()=>[553]},ssr:!1});var V=n(74190),z=n(65885),O=n(1557),U=n(58719),J=n(98087),K=n(85585),Q=n(54040),X=n(48558);let $=(0,m.cn)("btn btn-lg btn-block btn-primary d-flex align-items-center justify-content-center h-100",x.hE3?"custom-navlink":" "),H=e=>{let{car:t}=e;if(!(0,J.eP)(t))return null;let n=(0,J.$i)(t),r=null===n||"$0"===n?"":n;return(0,a.jsx)("div",{className:"col-12 mt-2",children:(0,a.jsxs)(d.Z,{href:"/cars/".concat(t.slug,"/").concat(x.TRD?"buy-online":"checkout"),className:(0,m.cn)(q().ResponsiveBtn,i.Z.cars.reserveCarBtnClass,$,x.sDV?"reserve-now-kedron":"reserve-now"),children:["Reserve Now\xa0",null!=r?r:"- ".concat(r)]})})},ee=e=>(0,J.eP)(e)&&i.Z.cars.showCarSearchItemReserveBtn,et=e=>{let{car:t}=e;return(0,a.jsx)(K.Z,{title:"Enquiry",btnClassName:(0,m.cn)(q().ResponsiveBtn,$,x.sDV&&"enquiry-button"),form:(0,a.jsx)(z.ZP,{car:t})})};var en=n(41664),ea=n.n(en),er=n(2431),es=n(42851),ei=n(20900),ec=n(50077),el=n(46769),eo=n(83853),ed=n(26931),em=n.n(ed);let ex=["year","km"],eh="btn exclude-override text-left btn-block d-flex flex-column justify-content-start align-items-start py-3 px-4 position-relative rounded-0",ep=e=>{let{car:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(eo.mt,{className:"m-0 text-primary mg-custom-sidebar-price",children:(0,a.jsx)(O.VP,{car:t})})})},eu=e=>{let{car:t,selected:n,mobile:r=!1}=e,s=(0,J.$i)(t);return(0,a.jsx)(a.Fragment,{children:r?(0,a.jsxs)("h6",{className:(0,m.cn)(n&&"text-white","w-100 text-center my-auto"),children:["Reserve Now\xa0",null!=s?s:"- ".concat(s)]}):(0,a.jsxs)("h5",{className:(0,m.cn)(n&&"text-white"),children:["Reserve Now\xa0",null!=s?s:"- ".concat(s)]})})},ew=e=>(0,J.eP)(e)&&i.Z.cars.showCarSearchItemReserveBtn,ej=e=>{let{car:t}=e,[n,s]=(0,r.useState)("enquire"),c=(0,r.useMemo)(()=>[{mount:!0,type:"enquire",title:"Enquire",description:"Book a test drive or start the purchase process.",icon:(0,a.jsx)(S.SRX,{className:"mr-2"}),ContinueWrapper:e=>(0,a.jsx)(K.Z,{btnClassName:(0,m.cn)(eh,em().ContinueButton,"btn-primary"),form:(0,a.jsx)(z.ZP,{car:t}),children:e})},{mount:!0,type:"finance",title:"Get Finance",description:"Apply for pre-approval. Approval within minutes.",icon:(0,a.jsx)(S.LkT,{className:"mr-1"}),ContinueWrapper:e=>(0,a.jsx)(ea(),{className:(0,m.cn)(eh,em().ContinueButton,"btn-primary"),href:(0,O.Bq)(t),children:e})},{mount:ew(t),type:"reserve",node:e=>ew(t)&&(0,a.jsx)(eu,{car:t,selected:"reserve"===e}),ContinueWrapper:e=>(0,a.jsx)(ea(),{href:"/cars/".concat(t.slug,"/").concat(x.TRD?"buy-online":"checkout"),className:(0,m.cn)(em().ResponsiveBtn,em().ContinueButton,i.Z.cars.reserveCarBtnClass,eh),children:e})}],[t]);return(0,r.useEffect)(()=>{s(c[0].type)},[c]),(0,a.jsxs)("div",{className:"d-none d-md-block",children:[(0,a.jsx)("div",{className:"my-3 overflow-hidden ".concat(em().rounded),style:{background:"var(--car-sidebar-background)"},children:c.map((e,t)=>e.mount&&(0,a.jsx)("div",{onClick:()=>s(e.type),children:(null==e?void 0:e.node)?(0,a.jsxs)("button",{className:(0,m.cn)(eh,"reserve"===e.type&&i.Z.cars.reserveCarBtnClass,n===e.type||x.sDV?"btn-primary text-white":"btn-light"),children:[e.node(n),(0,a.jsx)("div",{className:(0,m.cn)(em().SideBarTick,"w-100 d-flex justify-content-end",e.type===n?"text-white":"text-secondary"),children:n===e.type?(0,a.jsx)(S.FJM,{}):(0,a.jsx)(S.gbA,{})})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("button",{className:(0,m.cn)(eh,n===e.type?"btn-primary text-white":"btn-light"),children:[(0,a.jsxs)("h5",{className:(0,m.cn)(n===e.type&&"text-white"),children:[e.icon,e.title]}),(0,a.jsx)("span",{children:e.description}),(0,a.jsx)("div",{className:(0,m.cn)(em().SideBarTick,"w-100 d-flex justify-content-end",e.type===n?"text-white":"text-secondary"),children:n===e.type?(0,a.jsx)(S.FJM,{}):(0,a.jsx)(S.gbA,{})})]})})},"sidebar-buttons-".concat(e.title,"-").concat(t)))}),(0,a.jsx)("div",{className:"w-100",children:c.find(e=>{let{type:t}=e;return t===n}).ContinueWrapper("Continue")})]})},ev=e=>{let{car:t}=e,n=(0,G.I)(),r=(0,m.Y8)(n),s=ew(t)?"col-4":"col-6";return(0,a.jsxs)("div",{className:(0,m.cn)("row d-md-none position-fixed w-100",r),style:{bottom:"0",zIndex:5,borderTop:"1px solid var(--primary-brightened)"},children:[(0,a.jsx)("div",{className:(0,m.cn)(s,"py-2 pl-2 pr-0"),children:(0,a.jsx)(K.Z,{btnClassName:(0,m.cn)(eh,"btn-primary h-100"),form:(0,a.jsx)(z.ZP,{car:t}),children:(0,a.jsxs)("h6",{className:"text-white my-auto w-100 text-center",children:[(0,a.jsx)(S.SRX,{className:"mr-2"}),"Enquire"]})})}),(0,a.jsx)("div",{className:(0,m.cn)(s,"py-2 px-2"),children:(0,a.jsx)(ea(),{className:(0,m.cn)(eh,"btn-primary mt-0 h-100"),href:"tel:".concat(t.location.phone),children:(0,a.jsxs)("h6",{className:"text-white my-auto w-100 text-center",children:[(0,a.jsx)(S.I7T,{className:"mr-2"}),"Call Now"]})})}),ew(t)&&(0,a.jsx)("div",{className:"col-4 py-2 pl-0 pr-2",children:(0,a.jsx)(ea(),{href:"/cars/".concat(t.slug,"/").concat(x.TRD?"buy-online":"checkout"),className:(0,m.cn)(em().ResponsiveBtn,i.Z.cars.reserveCarBtnClass,eh,"mt-0 h-100"),children:(0,a.jsx)(eu,{car:t,selected:!0,mobile:!0})})})]})},eb=RegExp("".concat(s.default.name," | - Service"),"gmi");s.default.locations.filter(e=>{let{location_type:t,visible:n}=e;return"service"===t&&n}).map(e=>{let{name:t,...n}=e;return{name:t.replace(eb,""),...n}});let ef={sales:1,service:2,parts:3},eg={"Byrne Ford":s.default.locations.map(e=>{let t=e;return e.name.toLowerCase().includes(e.location_type)||(t={...e,name:"".concat(e.name," ").concat((0,v.Qs)(e.location_type))}),"parts"===e.location_type&&(t={...e,name:e.name.replace("Geebung ","")}),t={...t,name:t.name.replace(" -","")}}).sort((e,t)=>ef[e.location_type]-ef[t.location_type]),"Kedron GWM":s.default.locations.sort((e,t)=>ef[e.location_type]-ef[t.location_type])};x.Utj&&(x.Utj,()=>{let{locations:e}=(0,I.v7)(),t=e.map(t=>{var n;let a=i.Z.header.useAddressName?t.name:null===(n=t.address)||void 0===n?void 0:n.city;return{address:(i.Z.header.useLocationType?e.filter(e=>{let{location_type:n}=e;return t.location_type===n}).length>=2?"".concat(a," ").concat(t.location_type):t.location_type:a).split(" ").map(v.kC).join(" "),phone:t.contact_detail.phone}}).map((e,t)=>(0,a.jsxs)(d.Z,{href:"/contact",className:"nav-dropdown-item ".concat(F().DropdownLink," row"),activeClassName:"active",children:[(0,a.jsxs)("div",{className:"col-6",children:[(0,a.jsx)(S.Nh4,{className:"mr-1"})," ",e.address]}),(0,a.jsxs)("div",{className:"col-6",children:[(0,a.jsx)(S.DNl,{className:"mr-1"})," ",e.phone]})]},"".concat(e.address,"-").concat(t)));return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(B.fC,{modal:!1,children:[(0,a.jsx)(B.xz,{asChild:!0,className:(0,m.cn)(F().buttonColor,"mr-0 mr-sm-2 mr-lg-2 d-none d-lg-flex align-items-center"),children:(0,a.jsxs)("button",{className:"btn",children:[(0,a.jsx)(S.Nh4,{className:"mr-1"})," Locations"]})}),(0,a.jsx)(B.Uv,{children:(0,a.jsx)(B.VY,{className:(0,m.cn)("nav-dropdown-menu",F().DropdownContent),side:"bottom",align:"end",alignOffset:5,children:t})})]})})});var ey=n(22281),eC=n.n(ey);let e_=s.default;var eN=e=>{var t;let{form:n,title:s="Submit an Enquiry",disclaimer:l,locations:d=e_.locations,manufacturer:h,hideMap:p=!1,additionalFields:u=null,submitBtnID:w,containerClassName:v,...b}=e,f=!i.Z.halfDarkMode&&i.Z.darkMode,[g,y]=(0,r.useState)([]);(0,r.useEffect)(()=>{y(i.Z.offers.filterLocations&&h?d.filter(e=>e.manufacturers.includes(null==h?void 0:h.toLowerCase())).length>3?[]:d.filter(e=>e.manufacturers.includes(null==h?void 0:h.toLowerCase())):d.length>3?[]:d)},[d,h]);let C=p||i.Z.contact.hideMapBox;return(0,a.jsx)("div",{className:(0,m.cn)(v||"container py-5"),children:(0,a.jsxs)("div",{className:"row justify-content-center",children:[(0,a.jsxs)("div",{className:"mx-auto "+i.Z.contact.leftCol,children:[x.JoZ&&(0,a.jsx)("div",{className:"mx-auto col-12 col-xl-8 text-center",children:(0,a.jsx)("button",{onClick:()=>{window.zE.activate()},className:"text-center btn shadow "+eC().chatBtn,children:"Real staff online now to answer your questions instantly"})}),(0,a.jsxs)(o.Zb,{className:(0,m.cn)(f?"bg-dark text-white border":"bg-white"),children:[(0,a.jsxs)(o.Ol,{children:[(0,a.jsx)(o.ll,{className:"mb-0",children:s}),l]}),(0,a.jsx)(o.aY,{children:n||(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c.Z,{locationInputHidden:null===(t=i.Z.contact)||void 0===t?void 0:t.hideLocationInput,additionalFields:u,submitBtnID:w,hardcodedLocations:x.Utj?eg[e_.name]:[],...b})})})]})]}),!C&&(i.Z.contact.customContactDetails&&!i.Z.models.overrideCustomContactDetails?(0,a.jsx)("div",{className:"mx-auto "+i.Z.contact.rightCol,children:(0,a.jsx)(i.Z.contact.customContactDetails,{})}):g.length>0?(0,a.jsx)("div",{className:"mx-auto "+i.Z.contact.rightCol,children:g.map(e=>{var t,n;return x._Lo&&("service"===e.location_type||"parts"===e.location_type)?null:(0,a.jsx)(j,{location:e,additionalDetails:null===(t=i.Z.contact)||void 0===t?void 0:t.additionalDetails,map:null===(n=i.Z.contact)||void 0===n?void 0:n.hideBottomMap,dark:f},e.id)})}):null)]})})}},98465: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",ResponsiveText:"LocationCard2_ResponsiveText__V1Yzc",LinkText:"LocationCard2_LinkText__CYR_P"}},22281: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",chatBtn:"FormRow_chatBtn__nrrxI",scale:"FormRow_scale__YLYiV"}},58122: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",buttonColor:"BannerLocations_buttonColor__8bfrC",DropdownContent:"BannerLocations_DropdownContent__UO7Kc",DropdownLink:"BannerLocations_DropdownLink__pSmIt"}},23232: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",StyledCol:"CarSearchItem_StyledCol__yd_2A",ResponsiveBtn:"CarSearchItem_ResponsiveBtn__pMkSn",Colored:"CarSearchItem_Colored__wgbDY",CarWrapper:"CarSearchItem_CarWrapper__ojUdl",btn:"CarSearchItem_btn__zSGLR",ImageContainer:"CarSearchItem_ImageContainer__M1l_f",TooltipWidth:"CarSearchItem_TooltipWidth__wFATx"}},39506: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",StyledCol:"SharedCTAItem_StyledCol__4W9vj",CarWrapper:"SharedCTAItem_CarWrapper__Fp8dk",btn:"SharedCTAItem_btn___3LQO"}},26931: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",pills:"SideBarComponent_pills__h93hY",pill_primary:"SideBarComponent_pill_primary__nKbdG",pill:"SideBarComponent_pill__DTBuf",rounded:"SideBarComponent_rounded__Dmel1",FavouriteItem:"SideBarComponent_FavouriteItem__nxVEF",InfoItem:"SideBarComponent_InfoItem__f4snQ",SideBarTick:"SideBarComponent_SideBarTick__vnBfr",ContinueButton:"SideBarComponent_ContinueButton__1g4sS"}}}]);