PageSourceSearch

https://www.byrneford.com.au/_next/static/immutable/chunks/3hd43dpvsmy9-.js

js byrneford.com.au collected 2026-09-30 15:07:28 UTC 25,154 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,337546,e=>{"use strict";var t=e.i(563705),a=e.i(464645),l=e.i(890017),r=e.i(271104),s=e.i(974036),o=e.i(749846),i=e.i(180),n=e.i(619867),u=e.i(98187),d=e.i(481992),c=e.i(940372),m=e.i(470636),f=e.i(141974),h=e.i(615190);e.s(["SearchButtonJotai",0,({className:e,style:r,variableStart:b=!1,preText:x="Show Me",customText:p,variant:v="primary",customTextBeforeSelections:g,allowedMakes:j,disabled:y})=>{let C=(0,o.useRouter)(),{count:k}=(0,d.useStockCount)(j),[w,S]=(0,a.useState)(0),[B,R]=(0,a.useState)(0),A=(0,s.useSetAtom)(u.carSearchScrollAtom),{hasRefinements:M}=(0,c.useCarRouteState)(),N=(0,n.useEnabledCarSearchRoutes)(),{carRouteState:T}=(0,c.useCarRouteState)(),D=(0,a.useMemo)(()=>{let e=(0,i.convertPriceRangeToPriceForURL)(T);return j?.length&&!(0,d.hasUserSelectedCarMake)(T.make)&&(e={...e,make:[...j]}),(0,i.carRouteStateToUrl)(e,N)},[j,T,N]);return(0,a.useEffect)(()=>{C.prefetch(D)},[C,D]),(0,a.useEffect)(()=>{S(B),R(k)},[B,k]),(0,t.jsx)(m.Button,{variant:v,className:e,style:r,disabled:y,onClick:()=>{A(!0),C.push(D)},children:(0,t.jsx)(()=>p||(g&&!M?g:(0,t.jsxs)("span",{children:[x," ",(0,t.jsx)(l.default,{start:b?w:0,duration:1,end:k})," ",(0,f.capitalize)((0,h.pluralize)((0,h.getPrimaryVehicle)().toLowerCase(),k))]})),{})})},"handleHits",0,function(e){return e>1999&&r.default?.stock?.count?r.default?.stock?.count:e||0}])},136930,e=>{"use strict";e.s(["BlockRenderer",()=>V,"ResolveBlock",()=>U,"default",()=>q],136930);var t=e.i(563705),a=e.i(464645),l=e.i(271104);e.i(829493);var r=e.i(913722),s=e.i(293899),o=e.i(548915),i=e.i(615190),n=e.i(491315);e.i(486837);var u=e.i(591760),d=e.i(844435),c=e.i(20131),m=e.i(917063),f=e.i(213720),h=e.i(801486),b=e.i(639540);e.i(546246);var x=e.i(728005),p=e.i(708773),v=e.i(747386);e.i(365988);var g=e.i(823435),j=e.i(194887),y=e.i(417971),C=e.i(941053),k=e.i(137878),w=e.i(383765),S=e.i(928227);let B=({block:e,page_id:a})=>{let{content:l}=e.data;return(0,t.jsx)(S.default,{block:e,children:(0,t.jsx)(V,{blocks:l.blocks,hideDefaultClassName:!0,page_id:a})})};var R=e.i(575375),A=e.i(593084),M=e.i(822564),N=e.i(314578),T=e.i(85392),D=e.i(327390),_=e.i(114582),F=e.i(196346),O=e.i(229934);e.i(222127);var I=e.i(309879),L=e.i(211258),J=e.i(437604),P=e.i(441607),E=e.i(879009);let U=({page_id:e,blog_id:l,block:i,isInRow:n=!1,isText:S,title:P,modelsSSR:E,modelSSR:U,model:V,enableTextContainer:q=!0,publishedDate:G,customBlocks:$,...H})=>{switch(i.type){case"columns":return(0,t.jsx)(x.default,{block:i,publishedDate:G,page_id:e,oemBanner:H?.oemBanner});case"form":return(0,t.jsx)(y.default,{block:i,page_id:e,blog_id:l,pageTitle:P,publishedDate:G});case"formBuilder":return(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)(p.default,{tunes:i.tunes,children:(0,t.jsx)("div",{className:"row justify-content-center",children:(0,t.jsx)("div",{className:"col-lg-8 col-12",children:(0,t.jsx)(s.FormStepSkeleton,{className:"w-100"})})})}),children:(0,t.jsx)(C.default,{block:i,page_id:e,blog_id:l,pageTitle:P,isInRow:n,publishedDate:G})});case"cars":return(0,t.jsx)(h.default,{searchState:i.data?.searchState,hideButton:i.data?.hideButton,hideSearch:i.data?.hideSearch,multiSelect:i.data?.multiSelect,minPhotos:i.data?.minPhotos,heading:i.data?.heading,buttonColor:i.data?.buttonColor,background:i.data?.background,tunes:i?.tunes,publishedDate:G,numColumns:i.data?.numColumns,carousel:i.data?.carousel});case"offers":return(0,t.jsx)(O.default,{block:i});case"faq":return(0,t.jsx)(g.default,{block:i,publishedDate:G,isText:S,isInRow:n});case"reviews":return(0,t.jsx)(F.default,{block:i,publishedDate:G});case"locations":return(0,t.jsx)(A.default,{block:i,noContainer:!q});case"team":return(0,t.jsx)(J.default,{block:i});case"search":return null;case"buttonsTool":case"buttons":return(0,t.jsx)(m.default,{block:i,isInRow:n,isText:S});case"cardsTool":return(0,t.jsx)(f.default,{block:i,enableTextContainer:q,publishedDate:G});case"alternatingColumns":return(0,t.jsx)(u.default,{block:i,publishedDate:G});case"imageBanner":return(0,t.jsx)(r.default,{block:i,oemBanner:H?.oemBanner});
1case"imageBackground":return(0,t.jsx)(B,{block:i,page_id:e});case"imageSlider":return(0,t.jsx)(R.default,{block:i,isEditorRenderer:!0,publishedDate:G,isInRow:n});case"websiteBrands":return(0,t.jsx)(c.default,{block:i,publishedDate:G});case"brandModels":return(0,t.jsx)(T.default,{block:i,models:E});case"brandDescription":return(0,t.jsx)(d.default,{block:i});case"iconButtonsTool":return(0,t.jsx)(w.default,{block:i,publishedDate:G});case"twgSalesCounter":return(0,t.jsx)(o.SalesCounter,{});case"modelFeatures":return(0,t.jsx)(N.default,{block:i});case"modelVariants":return(0,t.jsx)(D.default,{block:i,model:U,publishedDate:G,isEditorRenderer:!0});case"modelColors":return(0,t.jsx)(M.default,{block:i,model:U,publishedDate:G});case"video":return(0,t.jsx)(b.default,{block:i});case"tag":return(0,t.jsx)(L.default,{block:i});case"financeCalculator":return(0,t.jsx)(j.default,{block:i});case"customComponent":return(0,t.jsx)(v.default,{block:i,customBlocks:$,...H});case"success":return(0,t.jsx)(I.default,{block:i,publishedDate:G});case"nestedSection":return(0,t.jsx)(_.default,{block:i,customBlocks:$,publishedDate:G,page_id:e,title:P,isInRow:n,isText:S,enableTextContainer:q,model:V,modelsSSR:E,modelSSR:U,...H});default:let W=k.htmlBlocks[i.type];if(!W)return null;return(0,t.jsx)(W,{block:i,isInRow:n||!q,isText:S,publishedDate:G})}},V=({page_id:e,blog_id:a,blocks:l,hideDefaultClassName:r=!1,publishedDate:s,customBlocks:o,wrapperClassName:u="w-100",...d})=>(0,t.jsx)("div",{className:(0,i.cn)((0,n.editorClassNameWrapper)(r),u),children:l.map((l,r)=>(0,t.jsx)(U,{page_id:e,blog_id:a,block:{...l,index:r},publishedDate:s,customBlocks:o,...d},l.id))}),q=({page:e,isPreview:a=!1,className:r,customBlocks:s,blocksToFilter:o,...i})=>{let{id:n,title:u,blocks_json:d,draft_blocks_json:c,last_live_updated_at:m}=e,f=a?c:d,h=Object.keys(f??{}).length>0?JSON.parse((0,E.cleanHtml)(f)):{};if("tony-white-group"===l.default.slug&&"Corporate Team"!==u&&h.blocks.splice(1,0,{id:"twg",type:"twgSalesCounter",data:{}}),!h?.blocks)return null;let b=Array.isArray(o)?h.blocks.filter(e=>!o.includes(e.type)):h.blocks;return(0,t.jsxs)("main",{className:r,children:[(0,t.jsx)(V,{page_id:n,blocks:b,title:u,publishedDate:m,customBlocks:s,...i}),f?.includes("#podium")&&(0,t.jsx)(P.default,{})]})}},441607,e=>{"use strict";var t=e.i(464645);e.s(["default",0,()=>((0,t.useEffect)(()=>{let e=document.querySelector('a[href="#podium"]'),t=()=>{console.log("Link to #podium clicked!"),window?.PodiumWebChat?.open()};return e?.addEventListener("click",t),()=>{e?.removeEventListener("click",t)}},[]),null)])},486837,591760,e=>{"use strict";e.s([],486837),e.s(["default",()=>r],591760);var t=e.i(563705),a=e.i(136930);e.i(598122),e.i(615190);var l=e.i(623226);let r=({block:e,isContainerFluid:r,publishedDate:s})=>(0,t.jsx)(l.default,{block:e,BlockRendererComponent:a.BlockRenderer,isContainerFluid:r,publishedDate:s})},546246,728005,e=>{"use strict";e.s([],546246),e.s(["default",()=>r],728005);var t=e.i(563705),a=e.i(136930),l=e.i(256549);let r=({block:e,publishedDate:r,isContainerFluid:s,page_id:o,oemBanner:i})=>(0,t.jsx)(l.default,{block:e,ResolveBlock:a.ResolveBlock,publishedDate:r,isContainerFluid:s,page_id:o,oemBanner:i})},365988,823435,e=>{"use strict";e.s([],365988),e.s(["default",()=>r],823435);var t=e.i(563705),a=e.i(136930),l=e.i(238680);let r=({block:e,publishedDate:r,isContainerFluid:s,isInRow:o,isText:i,customShortcodeComponents:n})=>(0,t.jsx)(l.default,{block:e,BlockRenderer:a.BlockRenderer,publishedDate:r,isContainerFluid:s,isInRow:o,isText:i,customShortcodeComponents:n})},913722,e=>{"use strict";var t=e.i(563705),a=e.i(917063),l=e.i(429801),r=e.i(137878),s=e.i(741553);let o=({block:e})=>{let s=(0,l.getButtonAlignment)(e);switch(e.type){case"buttonsTool":case"buttons":return(0,t.jsx)(a.default,{block:e,btnAlignment:s});default:{let a=r.htmlBlocks[e.type];if(!a)return null;return(0,t.jsx)(a,{block:e})}}};e.s(["default",0,({block:e,oemBanner:a})=>{let{content:l}=e.data;return(0,t.jsx)(s.default,{block:e,oemBanner:a,children:(0,t.jsx)("div",{className:"w-100",children:l.blocks.map((e,a)=>(0,t.jsx)(o,{block:{...e,index:a}},e.id))})})}])},829493,e=>{"use strict";e.i(913722),e.s([])},822564,e=>{"use strict";var t=e.i(563705),a=e.i(951942);e.i(870334);var l=e.i(843341),r=e.i(879009),s=e.i(708773);let o=({children:e,block:a,publishedDate:l})=>(0,t.jsxs)("div",{className:`${l&&(0,r.isBeforeDate)(l,"2024-03-13T00:00:00")?"my-5":""}`,children:[" ",(0,t.jsx)(s.default,{tunes:a?.tunes,children:(0,t.jsx)("div",{className:"row justify-content-center",children:(0,t.jsx)("div",{className:"col-xl-10 col-12 text-center",children:e})})})]});e.s(["default",0,({model:e,block:r,publishedDate:s})=>{let i=r.data?.model,{data:n,error:u,isLoading:d}=(0,a.useTanstackQuery)({queryFn:async()=>{let e=await fetch(`/api/models/${i}`);if(!e.ok)throw Error("Failed to fetch model");return e.json()},queryKey:[`${i}`]});return e&&e.colours&&e.colours.length>0?(0,t.jsxs)(o,{block:r,publishedDate:s,children:[(0,t.jsx)("h2",{children:"Colour Options"}),(0,t.jsx)(l.default,{modelColourData:e.colours,manufacturer:e.manufacturer_name})]}):d?null:(u&&console.log("An error occured when fetching model: ",u),n&&n.colours&&n.colours.length>0?(0,t.jsxs)(o,{block:r,publishedDate:s,children:[(0,t.jsx)("h2",{children:"Colour Options"}),(0,t.jsx)(l.default,{modelColourData:n.colours,manufacturer:n.manufacturer_name})]}):null)}])},327390,e=>{"use strict";var t=e.i(563705),a=e.i(951942),l=e.i(500228);e.s(["default",0,({model:e,block:r,isEditorRenderer:s,publishedDate:o})=>{let i=r.data.model,{data:n,error:u,isLoading:d}=(0,a.useTanstackQuery)({queryFn:async()=>{let e=await fetch(`/api/models/${i}`);if(!e.ok)throw Error("Failed to fetch model");return e.json()},queryKey:[`${i}`]});return e?(0,t.jsx)(l.ModelVariants,{model:e,block:r,isEditorRenderer:s,publishedDate:o}):d?null:(u&&console.log("An error occured when fetching model: ",u),n)?(0,t.jsx)(l.ModelVariants,{model:n,block:r,isEditorRenderer:s,publishedDate:o}):null}])},85392,e=>{"use strict";var t=e.i(563705),a=e.i(71799),l=e.i(913985),r=e.i(708773),s=e.i(704934);e.s(["default",0,({block:e,models:o})=>{let i=e.data?.brand,{data:n,error:u,isLoading:d}=(0,a.default)(i,l.getManufacturer);return o?(0,t.jsx)(r.default,{tunes:e?.tunes,isInRow:!0,children:(0,t.jsx)(s.default,{models:o,toUpperCase:!0})}):d?null:(u&&console.log("An error occured when fetching models: ",u),n?.models)?(0,t.jsx)(r.default,{tunes:e?.tunes,isInRow:!0,children:(0,t.jsx)(s.default,{models:n.models,toUpperCase:!0})}):null}])},229934,e=>{"use strict";var t=e.i(563705),a=e.i(112119),l=e.i(976544),r=e.i(708773);e.s(["default",0,({block:e})=>{let s=e?.data?.selectionMode,o=e?.data?.selectedOfferIds,i=(0,a.getOfferFiltersFromSearchState)(e?.data?.searchState),n=e?.data?.searchState?.hitsPerPage?parseInt(e?.data?.searchState?.hitsPerPage):void 0;return(0,t.jsx)(r.default,{tunes:e.tunes,children:(0,t.jsx)(l.default,{defaultHits:[],filters:i,hitsPerPage:n,selectionMode:s,selectedOfferIds:o,includeModelTabs:e?.data?.includeModelTabs,headingText:e?.data?.headingText,headingColor:e?.data?.headingColor,customHeadingColor:e?.data?.customHeadingColor,headingLevel:e?.data?.headingLevel})})}])},437604,e=>{"use strict";var t=e.i(563705),a=e.i(464645),l=e.i(997303),r=e.i(174471);let s=()=>(0,t.jsx)("div",{className:"bg-light",children:(0,t.jsx)("div",{className:"container py-5",children:(0,t.jsx)("div",{className:"row",children:Array.from({length:4}).map((e,a)=>(0,t.jsxs)("div",{className:"col-md-6 col-lg-4 col-xl-3 mb-4",children:[(0,t.jsx)("div",{className:"aspect-square w-full animate-pulse rounded bg-gray-200"}),(0,t.jsx)("div",{className:"mt-3 h-4 w-3/4 animate-pulse rounded bg-gray-200"}),(0,t.jsx)("div",{className:"mt-2 h-3 w-1/2 animate-pulse rounded bg-gray-200"})]},a))})})});var o=e.i(630751),i=e.i(708773);e.s(["default",0,({block:e})=>{let[n,u]=(0,a.useState)([]),[d,c]=(0,a.useState)(null),[m,f]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{(async()=>{b(!1);try{let t=await fetch("/api/team");if(!t.ok)throw Error("Failed to fetch team data");let a=await t.json();if(a){let{activeTeamMembers:t,activeCategories:l}
1=(0,o.generateActiveTeamMembersAndCategories)(a,e?.data?.filteredLocations??[],e?.data?.includeFilteredLocations??!1,e?.data?.categories??{});u(t),c(l)}}catch(e){console.error("Error fetching team:",e),b(!0)}finally{f(!0)}})()},[e?.data?.filteredLocations,e?.data?.categories,e?.data?.includeFilteredLocations]),m)?h?null:(0,o.getVisibleTeamMembers)(n).length?(0,t.jsx)(i.default,{tunes:e?.tunes,isInRow:!0,children:(0,t.jsx)(r.default,{variant:e?.data?.variant,teamMembers:n,activeCategories:d})}):(0,t.jsx)(i.default,{tunes:e?.tunes,isInRow:!0,children:(0,t.jsx)(l.default,{})}):(0,t.jsx)(i.default,{tunes:e?.tunes,isInRow:!0,children:(0,t.jsx)(s,{})})}],437604)},940372,e=>{"use strict";var t=e.i(464645),a=e.i(974036);e.i(180);var l=e.i(316607),r=e.i(98187),s=e.i(116997),o=e.i(615190);e.s(["useCarRouteState",0,()=>{let[e,i]=(0,a.useAtom)(r.carRouteStateAtom),n=(0,t.useMemo)(()=>(0,o.getValues)(e).some(e=>Array.isArray(e)?e.length>0:"string"==typeof e?""!==e:"boolean"==typeof e&&e),[e]),u=(0,t.useCallback)(({attribute:t,value:a})=>{let r=(0,l.getCarRouteStateKey)(t),o={...e,[r]:(0,s.getNewRefinementValue)({state:e,attribute:r,value:a,isSingleSelect:(0,s.isSingleSelectOnly)(t)})};return i(o),o},[e,i]),d=(0,t.useCallback)(()=>{i(r.defaultRouteState)},[i]),c=(0,t.useCallback)(t=>{let a=(0,l.getCarRouteStateKey)(t);i({...e,[a]:r.defaultRouteState[a]})},[e,i]),m=(0,t.useCallback)(e=>{i(t=>{let a=Object.fromEntries(e.map(e=>{let t=(0,l.getCarRouteStateKey)(e);return[t,r.defaultRouteState[t]]}));return{...t,...a}})},[i]);return(0,t.useMemo)(()=>({carRouteState:e,hasRefinements:n,setCarRouteState:i,refineCarRouteState:u,clearCarRouteState:d,resetSingleParameter:c,resetParameters:m}),[e,n,i,u,d,c,m])}])},382135,e=>{"use strict";var t=e.i(563705),a=e.i(525541);e.s(["default",0,e=>(0,t.jsx)(a.ColorSVGComponent,{colorOverride:"var(--nav-button-svg-color)",cloudinaryURI:"assets/car",width:60,height:60,alt:"Car",...e})])},672632,e=>{"use strict";var t=e.i(563705),a=e.i(525541);e.s(["default",0,e=>(0,t.jsx)(a.ColorSVGComponent,{colorOverride:"var(--nav-button-svg-color)",cloudinaryURI:"assets/cash",width:60,height:60,alt:"Cash",...e})])},674342,e=>{"use strict";var t=e.i(563705),a=e.i(525541);e.s(["default",0,e=>(0,t.jsx)(a.ColorSVGComponent,{colorOverride:"var(--nav-button-svg-color)",cloudinaryURI:"assets/dashboard",width:60,height:60,alt:"Dashboard",...e})])},876384,e=>{"use strict";var t=e.i(563705),a=e.i(525541);e.s(["default",0,e=>(0,t.jsx)(a.ColorSVGComponent,{colorOverride:"var(--nav-button-svg-color)",cloudinaryURI:"assets/phone",width:60,height:60,alt:"Phone",...e})])},286462,e=>{"use strict";var t=e.i(563705),a=e.i(525541);e.s(["default",0,e=>(0,t.jsx)(a.ColorSVGComponent,{colorOverride:"var(--nav-button-svg-color)",cloudinaryURI:"assets/wrench",width:60,height:60,alt:"Wrench",...e})])},704934,e=>{"use strict";var t=e.i(563705),a=e.i(464645),l=e.i(756718),r=e.i(667999),s=e.i(639084),o=e.i(667568),i=e.i(969570),n=e.i(614944),u=e.i(491315);let d=({bodies:e,lower:a,upper:l,body:s,setBody:i,useDefaultBtns:n,toUpperCase:d})=>{let c=e.filter((t,r)=>(l?r>=a&&r<=l:r>=a)&&e.length>2),m=o.default.models.range?.categoryButton&&!n?o.default.models.range.categoryButton:r.default;return(0,t.jsx)("div",{className:"row d-flex justify-content-center",children:c.map(e=>(0,t.jsx)(m,{body:e,selectedBody:s,setBody:i,toUpperCase:d,largeBtn:!u.isRockdaleGWM},e))})};e.s(["default",0,({models:e,rowClass:r="row mb-3 text-center justify-content-center",containerClass:u="container py-3 py-sm-4",modelBody:c=!0,includeAll:m=!0,singleLineButtons:f=!1,includeCategories:h=!0,useDefaultBtns:b,toUpperCase:x=!1,defaultBody:p,...v})=>{let g=(0,i.useClientsideRouter)(),j=(0,l.getBodies)({includeAll:m,modelBody:c,models:e}),[y,C]=(0,a.useState)(p??j[0]),k=e=>{if(C(e),!g?.query&&!g?.pathname)return;let t=g.query.slug,a=g.pathname.replace("/templatePages","").replace("[slug]",t);g.push({pathname:a,query:{body:e.toLowerCase()}},void 0,{shallow:!0})},w=(0,a.useMemo)(()=>{if(!y||"All"===y)return e;if(!c)return e.filter(e=>e.body[0]===y);{let t=Array.from({length:3}).map((e,t)=>`manufacturer_body${t+1}`);return Array.from(new Map(e.filter(e=>{let a=[...t,"manufacturer_body"].map(t=>e[t]?.toLowerCase()).filter(e=>!!e&&""!==e);return e.manufacturer_body?a.includes(y.toLowerCase()):e.body.length>0&&e.body.map(e=>e.toLowerCase()).includes(y.toLowerCase())}).map(e=>[e.id,e])).values())}},[y,c,e]);(0,a.useEffect)(()=>{let e=g?.query?.body;if(e){let t=j.filter(t=>t.toLowerCase()===e.toLowerCase());t.length>0&&t[0]!==e&&k(t[0])}},[g?.query?.body]);let S=s.default.models?.rangeItem?s.default.models?.rangeItem:n.default;return(0,t.jsxs)("div",{className:u,children:[j&&j.length>1&&h&&(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:j.length>4?o.default.models.rangeButtonWidthFull?"col-xl-12 m-auto pb-4":"col-xl-10 m-auto pb-4":o.default.models.rangeButtonCol10?"col-xl-10 m-auto pb-4":"col-xl-8 m-auto pb-4",children:f?(0,t.jsx)(d,{bodies:j,lower:0,upper:j.length,body:y,setBody:k,useDefaultBtns:b,toUpperCase:x}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{bodies:j,lower:0,upper:4==j.length?2:3,body:y,setBody:k,useDefaultBtns:b,toUpperCase:x}),(0,t.jsx)(d,{bodies:j,lower:4==j.length?3:4,upper:8,body:y,setBody:k,useDefaultBtns:b,toUpperCase:x}),(0,t.jsx)(d,{bodies:j,lower:9,body:y,setBody:k,useDefaultBtns:b,toUpperCase:x})]})})}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:r,children:w.map((e,a)=>(0,t.jsx)(S,{model:e,className:o.default.models.rangeItemGridClasses,...v},e.slug+a))})})]})}])},651142,617493,e=>{"use strict";var t=e.i(563705),a=e.i(464645),l=e.i(755131),r=e.i(914800),s=e.i(998380),o=e.i(615190);let i=({hardcodedItems:e,currentRefinement:a,refine:r,refineMulti:i,joinNewAndDemo:n,textColor:u="text-white",getItemClassName:d,evHybridIconUrl:c})=>{let m,f=e.findIndex(e=>e.value===a),h=(m=100/e.length,{width:`${m}%`,left:`${f*m}%`});return(0,t.jsx)("div",{className:"row align-items-center justify-content-center borderBottomClass",children:(0,t.jsxs)("div",{className:(0,o.cn)("relative flex items-center justify-between rounded-full transition-all duration-250","border border-[var(--hero-filter-container-border-color)]","bg-[var(--hero-filter-container-background-color)]","text-[var(--hero-filter-text-color)]"),"data-selected-value":a,children:[(0,t.jsx)("div",{className:"absolute z-[1] h-full rounded-full bg-[var(--hero-filter-buttons-background-color)] transition-all duration-250",style:{width:h.width,left:h.left}}),e.map((e,m)=>{let f=e.value||`item-${m}`,h=e.value===a,b=(0,o.cn)("border-none rounded-full px-4 py-2 text-xs font-bold min-w-[70px] sm:min-w-[125px] lg:min-w-[100px]","cursor-pointer z-[2] transition-all duration-250 text-center","inline-block focus:outline-none relative","!no-underline hover:!no-underline visited:!no-underline active:!no-underline","!text-[var(--hero-filter-text-color)]","visited:!text-[var(--hero-filter-text-color)] active:!text-[var(--hero-filter-text-color)] active:hover:!text-[var(--hero-filter-text-color)] hover:text-[var(--hero-filter-text-color)]",h&&u&&"!text-[var(--hero-filter-active-text-color)]",d?.(e.value,h)),x="hybrid"===e.value&&c?(0,t.jsxs)("span",{className:"inline-flex flex-nowrap items-center justify-center gap-1",children:[(0,t.jsx)(l.default,{src:c,alt:"",width:10,height:10,unoptimized:!0,className:"shrink-0 object-contain"}),e.label]}):e.label;return e.href?(0,t.jsx)(s.default,{href:e.href,className:b,"data-value":e.value,children:x},f):(0,t.jsx)("div",{className:b,onClick:()=>{e.href||(n&&"new"===e.value&&i?i(["new","demo"]):r(e.value))},"aria-label":e.label,tabIndex:0,role:"button","data-value":e.value,children:x},f)})]})})};
1e.s(["CarTypeSliderJotai",0,({hasAll:e=!0,hasNew:l=!0,hasDemo:s=!1,hasUsed:o=!0,joinNewAndDemo:n=!1,customOrder:u=[],textColor:d="!text-white",serverState:c,customItems:m})=>{let{currentRefinement:f,refine:h,refineMulti:b}=(0,r.useCarSearchMenu)("car_type",c),{items:x}=(({hasAll:e,hasNew:t,hasDemo:l,hasUsed:r,joinNewAndDemo:s,customOrder:o,customItems:i})=>({items:(0,a.useMemo)(()=>i&&i.length>0?i:[e?{value:"",label:"All"}:null,s?{value:"new",label:"New / Demo"}:null,t&&!s?{value:"new",label:"New"}:null,r?{value:"used",label:"Used"}:null,l&&!s?{value:"demo",label:"Demo"}:null].filter(e=>null!==e).sort((e,t)=>o.indexOf(e.value)-o.indexOf(t.value)),[e,t,l,r,s,o,i])}))({hasAll:e,hasNew:l,hasDemo:s,hasUsed:o,joinNewAndDemo:n,customOrder:u,customItems:m});return((0,a.useEffect)(()=>{e||f||h(x[0].value)},[f,e,x,h]),x.length<3)?null:(0,t.jsx)(i,{hardcodedItems:x,currentRefinement:f,refine:h,refineMulti:b,joinNewAndDemo:n,textColor:d})},"SliderItems",0,i],651142);var n=e.i(302093),u=e.i(667568),d=e.i(113751),c=e.i(491315);let m=["New","Demo","Pre-Owned"],f=e=>e.map(e=>c.isMotorama?{...e,label:(e=>{switch(e){case"new":return"New";case"demo":return"Demo";default:return"Pre-Owned"}})(e.label)}:{...e}).sort((e,t)=>m.indexOf(e.label)-m.indexOf(t.label));e.s(["BodyCategoryFieldJotai",0,({serverState:e})=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Body Style",attribute:"body_subcategory",translations:{seeAllOption:"All Body Styles"},limit:30,serverState:e}),"BodyFieldJotai",0,({serverState:e,...a})=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Body",attribute:"simple_body",translations:{seeAllOption:"All Body Types"},limit:30,serverState:e,...a}),"CarConditionFieldJotai",0,e=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:c.isMotorama?"Car Type":"Car Condition",attribute:"car_type",translations:{seeAllOption:c.isMotorama?"All Car Types":"All Conditions"},sortByName:!0,transformItems:f,...e}),"ColourFieldJotai",0,e=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Colour",attribute:"colour",translations:{seeAllOption:"All Colours"},limit:30,...e}),"FuelTypeFieldJotai",0,e=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Fuel Type",attribute:"simple_fuel",translations:{seeAllOption:"All Fuel Types"},limit:30,...e}),"LocationFieldJotai",0,e=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Location",attribute:u.default.algolia.locationFieldAttribute,translations:{seeAllOption:"All Locations"},sortByName:!0,limit:30,...e}),"MachineryCategoryFieldJotai",0,({serverState:e,seeAllOption:a="All Categories",ariaLabel:l="Category",...r})=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:l,attribute:d.MACHINERY_CATEGORY_FACET_ATTRIBUTE,translations:{seeAllOption:a},limit:30,serverState:e,...r}),"MakeFieldJotai",0,({seeAllOptionsTranslation:e="All Makes",uiSelectProps:a={},serverState:l,allowedMakes:r,...s})=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Make",attribute:"make",translations:{seeAllOption:e},sortMakeModel:!u.default.search.sortMakeByVolume,limit:100,serverState:l,uiSelectProps:a,allowedFacetValues:r,...s}),"ModelFieldJotai",0,({seeAllOptionsTranslation:e="All Models",uiSelectProps:a={},serverState:l,...r})=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Model",attribute:"make_model",translations:{seeAllOption:e},sortMakeModel:!0,limit:250,serverState:l,uiSelectProps:a,...r}),"PriceRangeFieldJotai",0,e=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Price Range",attribute:"price_range",translations:{seeAllOption:"Any Price"},sortByName:!0,limit:30,...e}),"TypeFieldJotai",0,e=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Type",attribute:"car_type",translations:{seeAllOption:"All Types"},limit:6,sortByCarType:!0,...e}),"WeeklyPriceRangeFieldJotai",0,e=>(0,t.jsx)(n.CustomMenuJotai,{ariaLabel:"Car Weekly Price Range",attribute:"weekly_price_range",translations:{seeAllOption:"Weekly Price"},sortByName:!0,...e})],617493)},179267,e=>{"use strict";var t=e.i(563705),a=e.i(464645),l=e.i(667568),r=e.i(382135),s=e.i(672632),o=e.i(674342),i=e.i(862502),n=e.i(876384),u=e.i(525541),d=e.i(286462),c=e.i(141974),m=e.i(747431);let f={testDrive:o.default,finance:s.default,service:d.default,sellYourCar:r.default,tradeIn:r.default,contact:n.default,buyNow:r.default,download:i.default,search:e=>(0,t.jsx)(u.ColorSVGComponent,{colorOverride:"var(--nav-button-svg-color)",cloudinaryURI:"assets/search",width:50,height:50,...e})};e.s(["default",0,({heading:e,circle:r=!0,make:s,containerClass:o="container pt-5 pb-2",compact:i,customLinks:n})=>{let u=n??(0,c.filter_object)(l.default.links,([e,t])=>t&&t.showInHomeNav),d=Object.keys(u),h=d.filter(e=>("Holden"!==s||"testDrive"!==e&&"finance"!==e)&&(!!l.default.showFinance||"finance"!==e)&&u[e]?.url).map((e,t)=>{let o=u[e];return(0,a.createElement)(m.default,{...o,IconComponent:f[e],circle:r,lgCol:Math.floor(12/d.length),key:"nav-item"+t,make:s,compact:!!l.default.links.compactButtons||i})});return(0,t.jsx)("div",{className:o,children:(0,t.jsx)("div",{className:"row",children:(0,t.jsxs)("div",{className:"col-xl-10 m-auto",children:[e&&(0,t.jsx)("h4",{className:"mb-4 text-center",children:e}),(0,t.jsx)("div",{className:"row justify-content-center",children:h})]})})})}],179267)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.