(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{75557:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(84707)}])},84707:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return eb},default:function(){return eg}});var a=i(85893),l=i(69018),s=i(94303),n=i(6791),r=i(49649),d=i(75946),o=i(89755),c=i.n(o),h=i(6168),m=i(41011);let x=[{name:"Mahindra Slide 1",src:(0,m.cH)("v1673826992/td_next/Mahindra/Slide1_lgmpyi",1200),height:675,width:1200},{name:"Mahindra Slide 2",src:(0,m.cH)("v1673826992/td_next/Mahindra/Slide2_ovrhdk",1200),height:675,width:1200},{name:"Mahindra Slide 3",src:(0,m.cH)("v1673826992/td_next/Mahindra/Slide3_ptzsxk",1200),height:675,width:1200},{name:"Mahindra Slide 4",src:(0,m.cH)("v1673826992/td_next/Mahindra/Slide4_paauwk",1200),height:675,width:1200},{name:"Mahindra Slide 5",src:(0,m.cH)("v1673826992/td_next/Mahindra/Slide5_xhbock",1200),height:675,width:1200},{name:"Mahindra Slide 7",src:(0,m.cH)("v1673826992/td_next/Mahindra/Slide7_ranlj5",1200),height:675,width:1200},{name:"Mahindra Slide 9",src:(0,m.cH)("v1673826992/td_next/Mahindra/Slide9_pmso1v",1200),height:675,width:1200},{name:"Mahindra Slide 10",src:(0,m.cH)("v1673826991/td_next/Mahindra/Slide10_eymi4y",1200),height:675,width:1200},{name:"Mahindra Slide 12",src:(0,m.cH)("v1673826991/td_next/Mahindra/Slide12_r8r2tc",1200),height:675,width:1200},{name:"Mahindra Slide 13",src:(0,m.cH)("v1673826991/td_next/Mahindra/Slide13_mlzt2u",1200),height:675,width:1200},{name:"Mahindra Slide 25",src:(0,m.cH)("v1673826989/td_next/Mahindra/Slide25_q6ti6p",1200),height:675,width:1200}];var u=i(44558),p=i(50881),w=i(95433),j=i(93647),v=i(66653),f=i(12133),_=i(59036),b=i(67294),g=i(77451),y=i(47151),S=i(98486),N=i(69267),k=i(96520),M=i.n(k);let C=e=>{let{src:t,height:i,width:l,layout:s="responsive",objectFit:n,priority:r=!1,alt:d,loader:o=m.HT}=e;return(0,a.jsx)(c(),{src:t,layout:s,loader:o,width:l,height:i,objectFit:n,priority:r,alt:d})},Z=e=>{let{onClick:t}=e;return(0,a.jsx)(S.Z,{left:!0,inside:!0,className:"",onClick:t})},A=e=>{let{onClick:t}=e;return(0,a.jsx)(S.Z,{right:!0,inside:!0,className:"",onClick:t})},F=e=>{var t;let{slide:i,hide:l}=e;return i.custom_overlay?(0,a.jsx)(i.custom_overlay,{slide:i}):r.gzc?(0,a.jsx)(n.Z.slider.Overlay,{slide:i}):l||!(null===(t=n.Z.slider)||void 0===t?void 0:t.Overlay)||i.hide_overlay?null:(0,a.jsx)(n.Z.slider.Overlay,{slide:i})};var O=e=>{let{slides:t,height:i,showControls:l=!0,hideDots:s=!1,overrideDelay:r=4e3,slideObjectFit:d="cover",loader:o,hideOverlay:c=!1}=e,h=t&&t.filter(e=>{var t,a;let l=!!e.image.key,s=(null===(t=e.image)||void 0===t?void 0:t.width)&&(null===(a=e.image)||void 0===a?void 0:a.height);return!l||!!s||!!i}).map((e,t)=>{let l=!!e.image.key;return(0,a.jsxs)("div",{className:M().emblaSlide+" position-relative h-100",children:[(0,a.jsx)(N.Z,{href:e.url,className:"unstyled",children:l?(0,a.jsx)(C,{alt:e.name,src:e.image.key,priority:0===t,width:"intrinsic"===i?e.image.width:n.Z.promotionsSlider.width,height:"intrinsic"===i?e.image.height:n.Z.promotionsSlider.height,objectFit:d,loader:o}):(0,a.jsx)("video",{className:M().LgVideo,src:e.video.url,height:e.video.height,width:e.video.width,playsInline:!0,autoPlay:!0,loop:!0,muted:!0})}),(0,a.jsx)(F,{hide:c,slide:e})]},t)}),[m,x]=(0,y.Z)({skipSnaps:!1,loop:!0},[(0,g.Z)({delay:r})]),u=!!l&&h.length>1,[p,w]=(0,b.useState)(!1),[j,v]=(0,b.useState)(!1),[f,_]=(0,b.useState)(0),[S,k]=(0,b.useState)([]),O=(0,b.useCallback)(()=>x&&x.scrollPrev(),[x]),V=(0,b.useCallback)(()=>x&&x.scrollNext(),[x]),P=(0,b.useCallback)(e=>x&&x.scrollTo(e),[x]),H=(0,b.useCallback)(()=>{x&&(_(x.selectedScrollSnap()),w(x.canScrollPrev()),v(x.canScrollNext()))},[x,_]);return(0,b.useEffect)(()=>{x&&(H(),k(x.scrollSnapList()),x.on("select",H))},[x,k,H]),(0,a.jsxs)("div",{className:"position-relative",children:[(0,a.jsxs)("div",{className:"overflow-hidden",ref:m,children:[(0,a.jsx)("div",{className:"d-flex",children:h}),u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{onClick:O,enabled:p}),(0,a.jsx)(A,{onClick:V,enabled:j})]})]}),u&&!s&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:M().Dots,children:S.map((e,t)=>(0,a.jsx)("button",{onClick:()=>P(t),className:M().button+" "+(t===f?M().active:"")},t))})})]})},V=e=>{let{promotions:t,slideObjectFit:i,showControls:l,loader:s}=e;return(0,a.jsx)(O,{slides:t,slideObjectFit:i,showControls:l,loader:s})},P=i(25675),H=i.n(P),D=i(73280),U=i(15137),B=i(60762),T=i(39778),I=i(62712),R=i(73747),E=i(71624),L=i.n(E),z=e=>{let{hasAll:t=!0,hasNew:i=!0,hasDemo:l=!1,hasUsed:s=!0,customOrder:n=[]}=e,{refine:r}=(0,T.H)({attribute:"car_type"}),d=(0,I.zH)("car_type"),o=[t?{value:"",label:"All"}:null,i?{value:"new",label:"New"}:null,s?{value:"used",label:"Used"}:null,l?{value:"demo",label:"Demo"}:null].filter(e=>null!==e);if((0,b.useEffect)(()=>{t||d||r(o[0].value)},[]),o.length<3)return(0,a.jsx)(a.Fragment,{});let c=o.sort((e,t)=>n.indexOf(e.value)-n.indexOf(t.value)).findIndex(e=>e.value===d);return(0,a.jsx)("div",{className:"row align-items-center justify-content-center",children:(0,a.jsx)("div",{className:(0,R.cn)(L().SortContainer,"option".concat(c),4===o.length&&L().SortContainer4),children:o.map(e=>(0,a.jsx)("div",{className:(0,R.cn)(L().SortButton,e.value===d&&"text-white"),onClick:()=>r(e.value),onKeyPress:()=>r(e.value),"aria-label":e.label,tabIndex:0,role:"button",children:e.label},e.value))})})},Y=i(61350);let q=()=>(0,a.jsx)(Y.ZP,{attribute:"simple_body",translations:{seeAllOption:"All Body Types"},limit:30}),W=e=>{let{seeAllOptionsTranslation:t="All Makes"}=e;return(0,a.jsx)(Y.ZP,{attribute:"make",translations:{seeAllOption:t},sortMakeModel:!n.Z.search.sortMakeByVolume,limit:100})},X=e=>{let{seeAllOptionsTranslation:t="All Models"}=e;return(0,a.jsx)(Y.ZP,{attribute:"make_model",translations:{seeAllOption:t},sortMakeModel:!0,limit:250})},K=()=>(0,a.jsx)(Y.ZP,{attribute:"colour",translations:{seeAllOption:"All Colours"},limit:30}),J=e=>(0,a.jsx)(Y.ZP,{attribute:"car_type",translations:{seeAllOption:"All Types"},limit:6,...e}),G=()=>(0,a.jsx)(Y.ZP,{attribute:"price_range",translations:{seeAllOption:"Any Price"},sortByName:!0,limit:30}),Q=e=>(0,a.jsx)(Y.ZP,{attribute:n.Z.algolia.locationFieldAttribute,translations:{seeAllOption:"All Locations"},sortByName:!0,limit:30,...e}),$=()=>(0,a.jsx)(Y.ZP,{attribute:"simple_fuel",translations:{seeAllOption:"All Fuel Types"},sortByName:!0,limit:30});var ee=i(70440),et=i(32295),ei=i.n(et),ea=()=>{let{refine:e}=(0,T.H)({attribute:"car_type"}),t=(0,I.zH)("car_type"),i=[{value:"",label:"All"},{value:"new",label:"New"},{value:"demo",label:"Demo"},{value:"used",label:"Used"}];return(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:ei().SortContainer,children:i&&i.map((i,l)=>(0,a.jsx)("div",{id:l,className:(0,R.cn)(ei().SortButton,"font-weight-bold",i.value===t?" bg-primary":""),onClick:()=>e(i.value),onKeyPress:()=>e(i.value),"aria-label":i.label,children:i.label},i.value))})})},el=i(40983),es=i.n(el);let en=e=>{let{children:t,className:i="mb-3"}=e;return(0,a.jsx)("div",{className:(0,R.cn)("col-md-4",i),children:t})},er=e=>{let{heading:t,...i}=e;return(0,a.jsx)("div",{className:"text-center mt-3 mb-4 mt-xl-0 ",children:(0,a.jsxs)("div",{className:"d-flex flex-column flex-sm-row justify-content-center align-items-center",children:[(0,a.jsx)("h3",{className:"text-white text-center mx-3 mb-2 mb-sm-0",style:{lineHeight:1.2},children:t}),(0,a.jsx)(ea,{...i})]})})};var ed=e=>{let{outerClass:t="container py-4 py-md-5",className:i,style:l={background:"rgba(0,0,0,.55)"},heading:s,headingWithButtons:d=!1,serverState:o,carTypeSlider:c=!1,...h}=e,m=null!==r.k2r&&void 0!==r.k2r?r.k2r:c,x=r.SVi&&!r.idm;return(0,a.jsx)("div",{className:t,children:(0,a.jsx)("div",{className:i,style:l,children:(0,a.jsxs)(B.tJ,{serverState:o,children:[d?(0,a.jsx)(er,{heading:s,...h}):(0,a.jsx)(ee.T7,{className:(0,R.cn)(es().SearchFormHeader,"text-center mb-4"),children:s}),m&&(0,a.jsx)("div",{className:"row justify-content-center text-white mb-3",children:(0,a.jsx)(z,{hasAll:!x,hasNew:!r.idm,hasDemo:!0,customOrder:r.k2r?["","new","demo","used"]:void 0})}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)(en,{className:"d-none d-md-inline",children:r.k2r?(0,a.jsx)(Q,{}):(0,a.jsx)(q,{})}),(0,a.jsx)(en,{children:(0,a.jsx)(W,{})}),(0,a.jsx)(en,{children:(0,a.jsx)(X,{})}),n.Z.search.showType?(0,a.jsx)(en,{children:(0,a.jsx)(J,{})}):(0,a.jsx)(en,{className:"d-none d-md-inline",children:r.k2r?(0,a.jsx)($,{}):(0,a.jsx)(K,{})}),(0,a.jsx)(en,{children:r.KeM?(0,a.jsx)(Q,{}):(0,a.jsx)(G,{})}),(0,a.jsx)(en,{className:"",children:(0,a.jsx)(U.Z,{className:(0,R.cn)("hero-search-btn btn btn-primary btn-block",es().btnStyles)})})]})]})})})},eo=i(48185),ec=i.n(eo),eh=e=>{let{heading:t="Search Our New & Used Vehicles",image:i,overlay:l=!1,priority:s=!0,...n}=e,{src:d,loader:o}=(0,D.t)(i);return(0,a.jsxs)("div",{className:"position-relative overflow-hidden",children:[(0,a.jsx)("div",{className:l?ec().Overlay+" img":"img",children:i?(0,a.jsx)(H(),{src:d,alt:(null==i?void 0:i.alt)||"Vehicle background",loader:o,fill:!0,style:{objectFit:"cover"},priority:s}):null}),(0,a.jsx)("div",{className:ec().searchFormContainer,children:(0,a.jsx)(ed,{heading:r.k2r?"Search Our Stock":t,className:"py-3 py-md-4 px-4 rounded position-relative z-100",...n})})]})},em=i(37077),ex=i.n(em),eu=e=>{let{id:t,src:i,allow:l,className:s,...n}=e;return(0,a.jsx)("iframe",{className:s||ex().iframe,src:i||"https://www.youtube.com/embed/".concat(t,"?rel=0"),allow:l||"autoplay; encrypted-media",style:{width:"100%",border:"0"},title:"youtube-".concat(t),allowFullScreen:!0,...n})},ep=i(61585),ew=i(89910);let ej=r.I4R;var ev=e=>{let{promotions:t,tdPage:i,...s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"promotions",children:(0,a.jsx)(V,{promotions:t})}),ej&&(0,a.jsx)(h.Z,{}),r.c3g?(0,a.jsx)(ew.$,{}):(null==i?void 0:i.blocks_json)?(0,a.jsx)(p.ZP,{title:i.title,data:null==i?void 0:i.blocks_json,publishedDate:null==i?void 0:i.last_draft_edited_at}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"container text-center py-5",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-lg-10 col-xl-9 m-auto",children:[(0,a.jsxs)(ee.mt,{className:"text-primary",children:["Welcome to ",l.default.name]}),(0,a.jsxs)("h5",{className:"text-dark",children:["New & Used Mahindra Car Sales |"," ",l.default.override_city?l.default.override_city:l.default.address.city," ",l.default.address.state]}),(0,a.jsxs)("p",{children:["As a Mahindra dealer, ",l.default.name," wants to help you take the next step in redefining convenience and comfort in the commercial transport space."]}),(0,a.jsxs)("p",{children:["Use our website to explore the latest ",(0,a.jsx)(N.Z,{href:"/models",children:"range"})," of Mahindra models. You can also browse our"," ",(0,a.jsx)(N.Z,{href:"/search/used-cars",children:"used cars"})," stock,"," ",(0,a.jsx)(N.Z,{href:"/special-offers",children:"special offers"}),","," ",(0,a.jsx)(N.Z,{href:"/service",children:"book a service"})," or purchase"," ",(0,a.jsx)(N.Z,{href:"/vehicle-parts-and-accessories",children:"Mahindra Genuine Parts and Accessories"})," ","from our comprehensive range."]}),(0,a.jsxs)("p",{children:["No matter what you need, our team of experienced sales staff at ",l.default.name," are here to help."]}),(0,a.jsx)(N.Z,{href:"/search/new-used-and-demo-cars",className:"btn btn-primary",children:"View Stock"}),(0,ep.lU)()?(0,a.jsx)(N.Z,{href:"/special-offers",className:"btn btn-outline-primary ml-2",children:"View Offers"}):(0,a.jsx)(N.Z,{href:"/about-us",className:"btn btn-outline-primary ml-2",children:"About Us"})]})})}),(r.x6j||r.e5n)&&(0,a.jsx)(eh,{hitsPerPage:3,image:"https://res.cloudinary.com/total-dealer/image/upload/v1673831861/td_next/Mahindra/Scorpio-N_eouoao",...s}),r.e5n&&(0,a.jsxs)("div",{className:"container py-5",children:[(0,a.jsxs)("h3",{className:"text-center mb-3",children:["Featured Cars at ",l.default.name]}),(0,a.jsx)(u.Z,{search_filters:"".concat(l.default.search_filters," AND make:Mahindra AND status:in_stock")})]}),(0,a.jsx)("div",{className:"bg-light",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"row text-center",children:(0,a.jsxs)("div",{className:"col-12 py-5",children:[(0,a.jsx)("h2",{children:"The Mahindra Vehicle Range"}),(0,a.jsx)("p",{children:"We have been building 4x4s since 1949. We are the number 1 selling ute and number 1 selling SUV manufacturer in India today."}),(0,a.jsx)("p",{className:"mb-0",children:"We offer a range of light commercial 4\xd74 Dual Cab Utes and range of SUVs including the Scorpio and XUV700. Browse the Range below, by clicking on the vehicle image."})]})})})}),(0,a.jsx)("div",{className:"bg-light range-container",children:(0,a.jsx)(w.Z,{title:"",models:d.Z,includeCategories:!1,rowClass:"row justify-content-center mb-3 text-center"})})]}),!r.I4R&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"container-md py-0 py-md-5 youtube-container",children:(0,a.jsx)("div",{className:"row justify-content-center px-0 px-md-2",children:(0,a.jsx)("div",{className:"col-12 col-lg-10 px-0 px-md-2",children:(0,a.jsx)(eu,{src:"https://www.youtube.com/embed/9OvlvaUVYaw"})})})}),(0,a.jsx)("div",{className:"container py-md-5",children:(0,a.jsx)("div",{className:"row justify-content-center",children:(0,a.jsx)("div",{className:"col-12 col-lg-10 px-0 px-md-3",children:(0,a.jsx)(f.Z,{images:x})})})})]}),!r.x6j&&!r.e5n&&(0,a.jsx)(eh,{image:"https://res.cloudinary.com/total-dealer/image/upload/v1673831861/td_next/Mahindra/Scorpio-N_eouoao",...s}),!r.e5n&&(0,a.jsxs)("div",{className:"container py-5",children:[(0,a.jsxs)("h3",{className:"text-center mb-3",children:["Featured Cars at ",l.default.name]}),(0,a.jsx)(u.Z,{search_filters:"".concat(l.default.search_filters," AND make:Mahindra AND status:in_stock")})]}),!r.I4R&&(0,a.jsx)(N.Z,{href:"/service",children:(0,a.jsx)(c(),{src:"https://res.cloudinary.com/total-dealer/image/upload/v1673825022/td_next/Mahindra/Mahindra-AUS_Peace-of-Mind-Banners_Desktop_dmqplt",width:1920,height:460,layout:"responsive",alt:"testing"})}),r.LVo||r.tAk?(0,a.jsx)("div",{style:{background:"#f0f0f0"},children:(0,a.jsx)("div",{className:"container pt-5 pb-4",children:(0,a.jsx)(_.Z,{locations:l.default.locations})})}):r.I4R?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"container pt-5 pb-3",children:(0,a.jsx)("div",{className:"row justify-content-center",children:(0,a.jsxs)("div",{className:"col-lg-10 col-xl-9 m-auto",children:[(0,a.jsxs)("h3",{className:"text-center mb-3",children:["Contact ",l.default.name]}),(0,a.jsxs)("p",{className:"text-center",children:["Our team of experts at ",l.default.name," is ready to assist you in finding the perfect model that meets your needs and preferences. Contact us today for sales enquiries or authorised Mahindra dealership servicing and repairs in Melbourne."," "]})]})})}),(0,a.jsx)(j.mv,{})]}):(0,a.jsx)(j.mv,{filterList:r.L9h?["rockingham-mahindra-sales","rockingham-mahindra-service"]:void 0}),r.x6j&&(0,a.jsx)(v.default,{})]})};let ef=r.I4R?"".concat(l.default.name,": Mahindra Dealer in Melbourne"):null,e_=r.I4R?"Discover quality Mahindra sales and servicing at ".concat(l.default.name," in Melbourne's eastern suburbs. Specialists in new & used models and authorised repairs."):null;var eb=!0,eg=e=>{var t,i;return(0,a.jsx)(s.Z,{outerClassName:"indexPage",title:ef||"".concat(l.default.name," | ").concat(n.Z.address.city," ").concat(n.Z.address.state," | Mahindra 4x4s, Utes, and SUVs"),metaDescription:e_||"".concat(l.default.name," in ").concat(l.default.address.city,", ").concat(l.default.address.state,", offers Mahindra's range of light commercial 4\xd74 (Dual Cab & Single Cab), 4\xd72 (Single Cab) Utes, and SUVs. Visit us today!"),cloudinaryMetaImageKey:null===(i=e.promotions[0])||void 0===i?void 0:null===(t=i.image)||void 0===t?void 0:t.key,children:(0,a.jsx)(ev,{...e})})}},32295: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:"CarTypeButtons_SortContainer__BVuAy",SortButton:"CarTypeButtons_SortButton__VhwFD"}},71624: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__wX97S",SortContainer4:"CarTypeSlider_SortContainer4__ZqdNU",SortButton:"CarTypeSlider_SortButton__jHPJh"}},40983: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",btnStyles:"SearchForm_btnStyles__Y5xdO",SearchFormHeader:"SearchForm_SearchFormHeader__e5A39"}},48185: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",searchFormContainer:"VehicleSearchForm_searchFormContainer__d9MVX",Overlay:"VehicleSearchForm_Overlay__AHc8a"}},96520: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",emblaSlide:"Slider_emblaSlide__vY_Uj",Dots:"Slider_Dots__xyoEW",button:"Slider_button__2JQRD",active:"Slider_active__0tylR",LgVideo:"Slider_LgVideo__hQc_0"}},37077: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",iframe:"Youtube_iframe__f10VY"}}},function(e){e.O(0,[5937,9401,6955,652,3874,5648,6064,4886,5073,6635,9944,5261,6913,9621,438,1698,5522,9396,2888,9774,179],function(){return e(e.s=75557)}),_N_E=e.O()}]);