(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5518],{32953:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var a=n(57437),r=n(1817),s=n(70985),i=n(51091),l=n(45912),c=n(69645),d=n(73799),o=n(9641),m=n.n(o);let x=e=>{let{location:t}=e;return(0,a.jsx)(l.default,{href:t.address.place_url,className:m().LinkText,children:(0,a.jsxs)("span",{children:[t.address.street,(0,a.jsx)("br",{}),t.address.city," ",t.address.state," ",t.address.postcode]})})},h=e=>{let{first:t,second:n}=e;return(0,a.jsxs)("div",{className:"row pb-2 "+m().ResponsiveText,children:[(0,a.jsx)("div",{className:n?"col-4":"col-12",children:t}),(0,a.jsx)("div",{className:"col-8",children:n})]})};var u=e=>{var t;let{location:n,additionalDetails:o=[],map:u=!1,dark:p=!1}=e;return(0,a.jsxs)(i.Zb,{className:(0,c.cn)(p?"bg-dark":"bg-white","mb-3"),children:[(0,a.jsx)(i.Ol,{className:"my-0 pb-0",children:(0,a.jsx)(i.ll,{className:(0,c.cn)(p?"text-white":"","mb-0"),children:n.name})}),(0,a.jsxs)("div",{className:"pt-4 px-4 pb-3 ".concat(p?"text-white":"text-muted"),children:[n.visible&&(0,a.jsx)(h,{first:(0,a.jsx)("b",{children:"Address"}),second:(0,a.jsx)(x,{location:n})}),(null===(t=r.default.location)||void 0===t?void 0:t.additionalAddress)&&(0,a.jsx)(h,{first:(0,a.jsx)("b",{children:"Address"}),second:(0,a.jsx)(x,{location:r.default.location.additionalAddress})}),(0,a.jsx)(h,{first:(0,a.jsx)("b",{children:"Phone"}),second:r.default.overrideContactUsPhone?(0,a.jsx)(l.default,{href:"tel:".concat(r.default.overrideContactUsPhone),className:m().LinkText,children:r.default.overrideContactUsPhone}):(0,a.jsx)(l.default,{href:"tel:".concat(n.contact_detail.phone),className:m().LinkText,children:n.contact_detail.phone})}),null==o?void 0:o.map((e,t)=>(0,a.jsx)(h,{first:(0,a.jsx)("b",{children:e.name}),second:(null==e?void 0:e.isEmail)?(0,a.jsx)(l.default,{href:"mailto:".concat(e.address),children:e.address}):(0,a.jsx)(l.default,{href:"tel:".concat(e.address.replace(/ /g,"")),children:e.address})},"extra-detail"+t))]}),u&&!d.RDo&&(0,a.jsx)(s.Z,{location:n})]})}},85518:function(e,t,n){"use strict";n.r(t);var a=n(57437),r=n(2265),s=n(21180),i=n(1817),l=n(69298),c=n(32953),d=n(51091),o=n(12424),m=n(69645),x=n(73799),h=n(89764),u=n.n(h);let p=s.default;t.default=e=>{var t;let{form:n,title:s="Submit an Enquiry",disclaimer:h,locations:f=p.locations,manufacturer:w,hideMap:j=!1,additionalFields:v=null,submitBtnID:b,containerClassName:y,...g}=e,C=!i.default.halfDarkMode&&i.default.darkMode,[_,N]=(0,r.useState)([]);(0,r.useEffect)(()=>{N(i.default.offers.filterLocations&&w?f.filter(e=>e.manufacturers.includes(null==w?void 0:w.toLowerCase())).length>3?[]:f.filter(e=>e.manufacturers.includes(null==w?void 0:w.toLowerCase())):f.length>3?[]:f)},[f,w]);let k=j||i.default.contact.hideMapBox;return(0,a.jsx)("div",{className:(0,m.cn)(y||"container py-5"),children:(0,a.jsxs)("div",{className:"row justify-content-center",children:[(0,a.jsxs)("div",{className:"mx-auto "+i.default.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 "+u().chatBtn,children:"Real staff online now to answer your questions instantly"})}),(0,a.jsxs)(d.Zb,{className:(0,m.cn)(C?"bg-dark text-white border":"bg-white"),children:[(0,a.jsxs)(d.Ol,{children:[(0,a.jsx)(d.ll,{className:"mb-0",children:s}),h]}),(0,a.jsx)(d.aY,{children:n||(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(l.default,{locationInputHidden:null===(t=i.default.contact)||void 0===t?void 0:t.hideLocationInput,additionalFields:v,submitBtnID:b,hardcodedLocations:x.Utj?o.QP[p.name]:[],...g})})})]})]}),!k&&(i.default.contact.customContactDetails&&!i.default.models.overrideCustomContactDetails?(0,a.jsx)("div",{className:"mx-auto "+i.default.contact.rightCol,children:(0,a.jsx)(i.default.contact.customContactDetails,{})}):_.length>0?(0,a.jsx)("div",{className:"mx-auto "+i.default.contact.rightCol,children:_.map(e=>{var t,n;return x._Lo&&("service"===e.location_type||"parts"===e.location_type)?null:(0,a.jsx)(c.Z,{location:e,additionalDetails:null===(t=i.default.contact)||void 0===t?void 0:t.additionalDetails,map:null===(n=i.default.contact)||void 0===n?void 0:n.hideBottomMap,dark:C},e.id)})}):null)]})})}},12424:function(e,t,n){"use strict";n.d(t,{gc:function(){return em},QP:function(){return eh}});var a=n(57437),r=n(21180),s=n(96027),i=n(73799),l=n(40713);let c=e=>{var t;let{position:n,nodes:a,cardPosition:r,random:s=!1}=e,i=Array.from(new Set((0,l._E)("car_type"))),c=["new","used","demo"].every(e=>!i.includes(e))?a.filter(e=>{let{strictDisplay:t}=e;return!t}):a.filter(e=>{let{display:t,strictDisplay:n}=e;return!t||!n&&t.some(e=>i.includes(e))||n&&t.some(e=>i.includes(e))&&t.some(e=>!i.some(t=>t!==e))}),d=c.length;return 0===c.length?null:null!==(t=c[s?Math.round(Math.random()*(d-1)):Math.floor((n-1)/r)%d].node)&&void 0!==t?t:null};var d=n(20703),o=n(92460),m=n(45912),x=n(69645),h=n(74979),u=n.n(h);let p=e=>{let{src:t,width:n,quality:a=100}=e;return"".concat((0,o.cH)(t,n,a))};var f=e=>{let{imageSrc:t,imageAlt:n,linkHref:r}=e,s=(0,a.jsx)("div",{className:(0,x.cn)("h-100","d-flex position-relative my-auto",i.pL8&&"rounded"),children:(0,a.jsx)(d.default,{src:t,alt:n,style:{width:"100%",height:"auto"},width:1e3,height:1e3,sizes:"(max-width: 767px) 100vw, 30vw",loader:p})});return(0,a.jsx)("div",{className:(0,x.cn)(u().StyledCol," col-12 col-lg-6 mb-3 col-xl-3 carSearchCard unstyled",i.pL8&&u().StyledColRounded),children:r?(0,a.jsx)(m.default,{href:r,className:(0,x.cn)(u().CarWrapper,"d-block","h-100"),children:s}):(0,a.jsx)(a.Fragment,{children:s})})};let w={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."},j=(()=>{switch(!0){case i.pL8:return[["byrne-ford-warranty",w.warranty,["used"]],["byrne-ford-video-calls",w.calls],["byrne-ford-trade-in",w.trade],["byrne-ford-freight",w.freight],["byrne-ford-finance",w.finance],["byrne-ford-1",w.twg],["byrne-ford-3-year",w.service]];case i.sDV:return[["kedron-warranty-special",w.warranty,["new","demo"]],["gwm-warranty",w.warranty,["used"]],["gwm-video-call",w.calls],["gwm-trade-in",w.trade],["gwm-frieght",w.freight],["gwm-finance",w.finance],["gwm-hero",w.twg],["gwm-3-year",w.service,["used"],!0]];case i.el2:return[["TWGCars-50years",w.twg],["TWGCars-trading",w.trade],["TWGCars-warranty",w.warranty],["TWGCars-finance",w.finance],["TWGCars-video",w.calls],["TWGCars-freight",w.freight]];default:return[]}})().map(e=>{let[t,n,a,r]=e;return{src:t,alt:n,display:a,strictDisplay:r}});var v=n(99782),b=n(67147),y=n(1817),g=n(21581),C=n(2871),_=n.n(C),N=n(69719),k=n(24232),S=n(96314),B=n(80107),I=n(26304),T=n(2905),F=n(77494),L=n(29940),R=n.n(L);let D=(0,k.default)(()=>Promise.resolve().then(n.bind(n,10755)),{loadableGenerated:{webpack:()=>[10755]},ssr:!1});var W=n(92526),Z=n(7911),A=n(94094),P=n(7061),M=n(86727),E=n(59988),G=n(33259),Y=n(33008);let q=(0,x.cn)("btn btn-lg btn-block btn-primary d-flex align-items-center justify-content-center h-100",i.hE3?"custom-navlink":" "),O=e=>{let{car:t}=e;if(!(0,M.eP)(t))return null;let n=(0,M.$i)(t),r=null===n||"$0"===n?"":n;return(0,a.jsx)("div",{className:"col-12 mt-2",children:(0,a.jsxs)(m.default,{href:"/cars/".concat(t.slug,"/").concat(i.TRD?"buy-online":"checkout"),className:(0,x.cn)(R().ResponsiveBtn,y.default.cars.reserveCarBtnClass,q,i.sDV?"reserve-now-kedron":"reserve-now"),children:["Reserve Now\xa0",null!=r?r:"- ".concat(r)]})})},U=e=>(0,M.eP)(e)&&y.default.cars.showCarSearchItemReserveBtn,V=e=>{let{car:t}=e;return(0,a.jsx)(E.Z,{title:"Enquiry",btnClassName:(0,x.cn)(R().ResponsiveBtn,q,i.sDV&&"enquiry-button"),form:(0,a.jsx)(Z.ZP,{car:t})})};var z=n(2265),J=n(8792),Q=n(81921),X=n(37337),K=n(26161),$=n(61682),H=n(56426),ee=n(53066),et=n(22779),en=n.n(et);let ea=["year","km"],er="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",es=e=>{let{car:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(ee.mt,{className:"m-0 text-primary mg-custom-sidebar-price",children:(0,a.jsx)(A.CarPrice,{car:t})})})},ei=e=>{let{car:t,selected:n,mobile:r=!1}=e,s=(0,M.$i)(t);return(0,a.jsx)(a.Fragment,{children:r?(0,a.jsxs)("h6",{className:(0,x.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,x.cn)(n&&"text-white"),children:["Reserve Now\xa0",null!=s?s:"- ".concat(s)]})})},el=e=>(0,M.eP)(e)&&y.default.cars.showCarSearchItemReserveBtn,ec=e=>{let{car:t}=e,[n,r]=(0,z.useState)("enquire"),s=(0,z.useMemo)(()=>[{mount:!0,type:"enquire",title:"Enquire",description:"Book a test drive or start the purchase process.",icon:(0,a.jsx)(v.SRX,{className:"mr-2"}),ContinueWrapper:e=>(0,a.jsx)(E.Z,{btnClassName:(0,x.cn)(er,en().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)(v.LkT,{className:"mr-1"}),ContinueWrapper:e=>(0,a.jsx)(J.default,{className:(0,x.cn)(er,en().ContinueButton,"btn-primary"),href:(0,A.carToTaurusFinanceParams)(t),children:e})},{mount:el(t),type:"reserve",node:e=>el(t)&&(0,a.jsx)(ei,{car:t,selected:"reserve"===e}),ContinueWrapper:e=>(0,a.jsx)(J.default,{href:"/cars/".concat(t.slug,"/").concat(i.TRD?"buy-online":"checkout"),className:(0,x.cn)(en().ResponsiveBtn,en().ContinueButton,y.default.cars.reserveCarBtnClass,er),children:e})}],[t]);return(0,z.useEffect)(()=>{r(s[0].type)},[s]),(0,a.jsxs)("div",{className:"d-none d-md-block",children:[(0,a.jsx)("div",{className:"my-3 overflow-hidden ".concat(en().rounded),style:{background:"var(--car-sidebar-background)"},children:s.map((e,t)=>e.mount&&(0,a.jsx)("div",{onClick:()=>r(e.type),children:(null==e?void 0:e.node)?(0,a.jsxs)("button",{className:(0,x.cn)(er,"reserve"===e.type&&y.default.cars.reserveCarBtnClass,n===e.type||i.sDV?"btn-primary text-white":"btn-light"),children:[e.node(n),(0,a.jsx)("div",{className:(0,x.cn)(en().SideBarTick,"w-100 d-flex justify-content-end",e.type===n?"text-white":"text-secondary"),children:n===e.type?(0,a.jsx)(v.FJM,{}):(0,a.jsx)(v.gbA,{})})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("button",{className:(0,x.cn)(er,n===e.type?"btn-primary text-white":"btn-light"),children:[(0,a.jsxs)("h5",{className:(0,x.cn)(n===e.type&&"text-white"),children:[e.icon,e.title]}),(0,a.jsx)("span",{children:e.description}),(0,a.jsx)("div",{className:(0,x.cn)(en().SideBarTick,"w-100 d-flex justify-content-end",e.type===n?"text-white":"text-secondary"),children:n===e.type?(0,a.jsx)(v.FJM,{}):(0,a.jsx)(v.gbA,{})})]})})},"sidebar-buttons-".concat(e.title,"-").concat(t)))}),(0,a.jsx)("div",{className:"w-100",children:s.find(e=>{let{type:t}=e;return t===n}).ContinueWrapper("Continue")})]})},ed=e=>{let{car:t}=e,n=(0,F.I)(),r=(0,x.Y8)(n),s=el(t)?"col-4":"col-6";return(0,a.jsxs)("div",{className:(0,x.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,x.cn)(s,"py-2 pl-2 pr-0"),children:(0,a.jsx)(E.Z,{btnClassName:(0,x.cn)(er,"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)(v.SRX,{className:"mr-2"}),"Enquire"]})})}),(0,a.jsx)("div",{className:(0,x.cn)(s,"py-2 px-2"),children:(0,a.jsx)(J.default,{className:(0,x.cn)(er,"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)(v.I7T,{className:"mr-2"}),"Call Now"]})})}),el(t)&&(0,a.jsx)("div",{className:"col-4 py-2 pl-0 pr-2",children:(0,a.jsx)(J.default,{href:"/cars/".concat(t.slug,"/").concat(i.TRD?"buy-online":"checkout"),className:(0,x.cn)(en().ResponsiveBtn,y.default.cars.reserveCarBtnClass,er,"mt-0 h-100"),children:(0,a.jsx)(ei,{car:t,selected:!0,mobile:!0})})})]})},eo=RegExp("".concat(r.default.name," | - Service"),"gmi"),em=r.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(eo,""),...n}}),ex={sales:1,service:2,parts:3},eh={"Byrne Ford":r.default.locations.map(e=>{let t=e;return e.name.toLowerCase().includes(e.location_type)||(t={...e,name:"".concat(e.name," ").concat((0,s.Qs)(e.location_type))}),"parts"===e.location_type&&(t={...e,name:e.name.replace("Geebung ","")}),t={...t,name:t.name.replace(" -","")}}).sort((e,t)=>ex[e.location_type]-ex[t.location_type]),"Kedron GWM":r.default.locations.sort((e,t)=>ex[e.location_type]-ex[t.location_type])};i.Utj&&(i.Utj,()=>{let{locations:e}=(0,g.v7)(),t=e.map(t=>{var n;let a=y.default.header.useAddressName?t.name:null===(n=t.address)||void 0===n?void 0:n.city;return{address:(y.default.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(s.kC).join(" "),phone:t.contact_detail.phone}}).map((e,t)=>(0,a.jsxs)(m.default,{href:"/contact",className:"nav-dropdown-item ".concat(_().DropdownLink," row"),activeClassName:"active",children:[(0,a.jsxs)("div",{className:"col-6",children:[(0,a.jsx)(v.Nh4,{className:"mr-1"})," ",e.address]}),(0,a.jsxs)("div",{className:"col-6",children:[(0,a.jsx)(v.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,x.cn)(_().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)(v.Nh4,{className:"mr-1"})," Locations"]})}),(0,a.jsx)(b.Uv,{children:(0,a.jsx)(b.VY,{className:(0,x.cn)("nav-dropdown-menu",_().DropdownContent),side:"bottom",align:"end",alignOffset:5,children:t})})]})})})},9641: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"}},89764: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"}},2871: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"}},29940: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"}},74979: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",StyledColRounded:"SharedCTAItem_StyledColRounded__zhXLN",CarWrapper:"SharedCTAItem_CarWrapper__Fp8dk",btn:"SharedCTAItem_btn___3LQO"}},22779: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"}}}]);