PageSourceSearch

https://www.athertonnissan.com.au/_next/static/immutable/chunks/1lolr4jn710s_.js

js athertonnissan.com.au collected 2026-09-29 21:54:50 UTC 16,369 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,496283,e=>{"use strict";var t=e.i(563705),a=e.i(749846),r=e.i(820376);e.i(232193);var o=e.i(473838),s=e.i(491315);e.s(["default",0,({children:e})=>{let i=(0,a.usePathname)(),l="/book-test-drive"===i&&s.hasFullscreenBookTestDrivePage,n=i.startsWith("/dealerships")&&s.isPeninsulaGroupSite;return l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{stepIndex:0}),e]}):(0,t.jsx)(o.default,{appRouter:!0,outerClassName:n?"indexPage":void 0,children:e})}])},820376,e=>{"use strict";var t=e.i(563705),a=e.i(222304),r=e.i(389415),o=e.i(361904);e.s(["default",0,({previousStep:e,stepIndex:s,progress:i,backHref:l})=>(0,t.jsxs)("div",{className:"flex h-16 flex-wrap items-center justify-start px-4 sm:justify-between",style:{backgroundColor:"var(--header-background-color)"},children:[(0,t.jsx)(a.Logo,{}),o.showConfiguratorExitButton&&0===s&&l&&(0,t.jsx)(r.default,{fallbackHref:l}),s>0&&100!==i&&(0,t.jsx)(r.default,{onClick:e})]})])},389415,e=>{"use strict";var t=e.i(563705),a=e.i(749846),r=e.i(470636);e.s(["default",0,({fallbackHref:e,onClick:o})=>{let s=(0,a.useRouter)();return(0,t.jsx)(r.Button,{type:"button",className:"order-2 hidden! sm:flex! lg:min-w-50",size:"lg",variant:"outline",onClick:()=>{if(o)o();else{let t;((t=window.navigation?.currentEntry)?t.index>0:window.history.length>1&&document.referrer.startsWith(window.location.origin))?s.back():e&&s.push(e)}},children:"Back"})}])},361904,e=>{"use strict";var t=e.i(464645),a=e.i(271104),r=e.i(512211),o=e.i(974036),s=e.i(774116),i=e.i(129182),l=e.i(615190),n=e.i(491315);let d=["denza","byd-nz"].includes(i.WEBSITE.template)&&!n.isDenzaShowcase,u=n.isNZWebsite&&d,c=n.isBYDNZ,m=n.isBYDNZ,p=!n.isDenza,h=n.isBYDNZ,f=n.isAndrewSimmsByd,g=n.isBYDNZ,w=(0,s.atomWithStorage)("configurator-postcode",""),y=(0,r.atom)(""),v=(0,r.atom)([]),_=(0,r.atom)(0),b=(0,r.atom)({groupedConfiguratorSelections:[],subtotal:0,registrationState:null,registrationType:null,groupedGovernmentCharges:[],dealerDeliveryFee:{label:`${i.WEBSITE.manufacturer||""} Preparation Fee`,amount:0},onRoadFeesSubtotal:0,driveawayTotal:0,isLoading:!1}),C=e=>{let t="interior"===e.colour_type?e.allowed_exterior_colour_ids:e.allowed_interior_colour_ids;return!!(t&&t.length>0)};e.s(["buildGroupedSelections",0,e=>
1{let{selectedVariant:t,selectedColour:r,selectedInterior:o,selectedWheel:s,selectedAccessories:i=[],dealerDeliveryFee:l=0,variantPrice:n=0}=e,d=[],c=[];n&&c.push({label:"Vehicle Price (Excl. LCT)",amount:n}),l>0&&c.push({label:`${a.default.manufacturer?.name||""} Preparation Fee (Excl. LCT)`,amount:l}),c.length>0&&d.push({category:`Model - ${t?.name||""}`,items:c,total_amount:c.reduce((e,t)=>e+t.amount,0)});let m=[];r&&m.push({label:`Exterior - ${r.name} (Excl. LCT)`,amount:r.price?parseFloat(r.price):0}),o&&m.push({label:`Interior - ${o.name} (Excl. LCT)`,amount:o.price?parseFloat(o.price):0}),m.length>0&&d.push({category:"Colour & Trim",items:m,total_amount:m.reduce((e,t)=>e+t.amount,0)}),s&&d.push({category:"Wheels",items:[{label:s.name,amount:s.price??0}],total_amount:s.price??0});let p=i.filter(e=>e?.category!=="service plan"),h=i.filter(e=>e?.category==="service plan");if(p.length>0){let e=p.map(e=>({label:e.name,amount:e.price??0}));d.push({category:"Accessories",items:e,total_amount:e.reduce((e,t)=>e+t.amount,0)})}if(h.length>0){let e=h.map(e=>({label:e.name,amount:e.price??0}));d.push({category:"Pre-Paid Service Plan",items:e,total_amount:e.reduce((e,t)=>e+t.amount,0)})}return u?d.map(e=>({...e,items:e.items.map(e=>({...e,label:e.label.replace(" (Excl. LCT)","")}))})):d},"calculateSelectionSubtotal",0,e=>{let{variantPrice:t,selectedColour:a,selectedInterior:r,selectedWheel:o,selectedAccessories:s=[]}=e;return t+(a?.price?parseFloat(a.price):0)+(r?.price?parseFloat(r.price):0)+(o?.price??0)+s.reduce((e,t)=>e+(t.price??0),0)},"configuratorLocationAtom",0,y,"configuratorPostcodeAtom",0,w,"containedCarouselImage",0,c,"formatPrice",0,e=>null==e||0===e?"Included":(0,l.money)(e),"getColoursWithAvailability",0,(e,t,a,r,o)=>{let s=e.find(e=>e.id===r&&("exterior"===e.colour_type||!e.colour_type)),i=e.find(e=>e.id===o&&"interior"===e.colour_type),l=(t,a)=>{if(!t)return null;let r=e.filter(e=>e.name===t.name&&e.hexCode===t.hexCode&&e.colour_type===t.colour_type),o=new Set;for(let e of r)for(let t of e[a]||[])o.add(t);return o.size>0?o:null},n=l(i,"allowed_exterior_colour_ids"),d=l(s,"allowed_interior_colour_ids");return e.filter(e=>{let r=t?e.colour_type===t:!e.colour_type||"exterior"===e.colour_type,o=e.model_variant_id===a;return r&&o}).map(e=>{let a="exterior"===t?n:d,r=!a||a.has(e.id);return{...e,isAvailable:r}})},"getConfiguratorCarObject",0,(e,t)=>e&&t?{id:0,make:e.manufacturer_name||"",model:e.name||"",dealership_id:i.WEBSITE.dealership_id,dealership_slug:"",car_type:"new",status:"in_stock",stocknum:"",payment_processors:[t]}:null,"getDefaultColourId",0,(e,t,a)=>e.find(e=>e.colour_type===a&&e.model_variant_id===t&&C(e))?.id,"hasAllowedPairing",0,C,"isNZConfigurator",0,u,"nonRefundableDeposit",0,f,"showConfiguratorExitButton",0,p,"showConfiguratorLocationSelect",0,g,"showNZGovernmentCharges",0,h,"showSelectedColourPrice",0,m,"useCarouselImage",0,()=>{let[e,a]=(0,o.useAtom)(v),[r,s]=(0,o.useAtom)(_),i=(0,t.useCallback)((e,t)=>{let r=[];e?.photo_url&&r.push(e.photo_url),t?.photo_url&&r.push(t.photo_url),a(r)},[a]);return{carouselImages:e,carouselIndex:r,setCarouselImages:a,setCarouselIndex:s,updateCarouselImages:i}},"usePriceSummary",0,()=>{let[e,r]=(0,o.useAtom)(b),s=(0,t.useCallback)(e=>{let{groupedConfiguratorSelections:t,selectionSubtotal:o,registrationState:s=null,registrationType:i=null,groupedGovernmentCharges:l=[],dealerDeliveryFee:n=0,isLoading:d=!1}=e,u=o+n,c=l.reduce((e,t)=>e+(t.total_amount??0),0);r({groupedConfiguratorSelections:t,subtotal:u,registrationState:s,registrationType:i,groupedGovernmentCharges:l,dealerDeliveryFee:{label:`${a.default.manufacturer?.name||""} Preparation Fee`,amount:n},onRoadFeesSubtotal:c,driveawayTotal:u+c,isLoading:d})},[r]);return{priceSummary:e,setPriceSummary:r,updatePriceSummary:s}}])},625849,e=>{e.v({SubFooter:"SubFooter-module-scss-module__gLFWjG__SubFooter"})},524197,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2osf4y-eei9lm.css","static/immutable/chunks/2d0bfeyeuy_4p.js"].map(t=>e.l(t))).then(()=>t(934302)))},865274,962799,e=>{"use strict";var t=e.i(563705),a=e.i(464645),r=e.i(782804),o=e.i(424622),s=e.i(271104),i=e.i(667568),l=e.i(517021),n=e.i(125651),d=e.i(135427),u=e.i(615190),c=e.i(172252),m=e.i(491315),p=e.i(72003);let h=({starRating:e,count:a,lineHeight:r="16px"})=>{let o=i.default.reviews?.showReviewCount&&i.default.reviews?.customText?i.default.reviews.customText((0,p.addComma)(a)):i.default.reviews?.showReviewCount?`out of ${(0,p.addComma)(a)} reviews`:"",s=`${e} rating${o?` ${o}`:""}`;return(0,t.jsx)("span",{className:"small text-uppercase ml-2 whitespace-nowrap",style:{lineHeight:r},children:s})};e.s(["default",0,h],962799),e.s(["default",0,({showOnMobile:e=i.default.header?.showReviewOnMobile,hideReviewTextOnMobile:p=i.default.header?.hideReviewTextOnMobile,size:f="18px",starMarginTop:g="-2px",showStars:w=!0})=>{let{count:y,averageRating:v}=(0,d.useReviewCount)(),_=parseFloat(v).toFixed(1),[b,C]=(0,a.useState)(void 0),[x,S]=(0,a.useState)(!1),I=(0,l.calculateParti
1alStarPercentage)(_),k=(0,a.useMemo)(()=>{let e=i.default.header.starComponent&&!isNaN(_)&&3!=(0,n.buildUniqueLocations)().length&&_>=i.default.reviews.MINIMUM_RATING;return i.default.reviews?.forceStarRating&&(e=!0),e},[i.default.header.starComponent,_,v,i.default.reviews.MINIMUM_RATING,i.default.reviews?.forceStarRating]);(0,a.useEffect)(()=>{document?.getElementById("googleReviewsComponent")!==null&&S(!0),C((0,l.generatePartialStarStyle)(I))},[]);let T=m.isHuntermotiveDealer||m.isHarriganGroup||m.isBrightonJeep||m.isBurwoodMazda||m.isFrankstonMazda||m.isEastCoastCommercials||m.isEastCoastCommercialsBrisbane||m.isBartons;return(0,t.jsx)(t.Fragment,{children:k&&b&&(0,t.jsxs)("div",{className:(0,u.cn)(e?"d-flex":"d-none d-lg-flex","align-items-center star-rating-container mr-3 flex-row"),onClick:()=>{let e=s.default.gmb_profiles?.find(e=>e.review_url)?.review_url;m.isSharpMotorGroupWebsite&&(e="https://share.google/NfqvmiALFU0H9aMuO"),m.isGoldCoastIsuzuUTE&&(e=s.default.gmb_profiles?.find(e=>647===e.id)?.review_url),e&&!T?(0,c.isSafeUrl)(e)&&window.open(e,"_blank"):document?.getElementById("googleReviewsComponent")?.scrollIntoView({behavior:"smooth"})},style:x?{cursor:"pointer"}:void 0,children:[w?(0,t.jsxs)("div",{className:"d-flex",style:{marginRight:I>0?`calc(-${f}*(${100-I}/100))`:0},children:[!m.isWesternFord&&(0,t.jsx)(r.default,{style:{height:f},className:"mr-2"}),!m.isWesternFord&&[...Array(parseInt(_))].map((e,a)=>(0,t.jsx)(o.default,{color:"#ffdd00",style:{height:f,marginTop:g}},a)),I>0&&!m.isWesternFord&&(0,t.jsx)("div",{className:"d-flex overflow-hidden",style:b,children:(0,t.jsx)(o.default,{color:"#ffdd00",style:{height:f,width:f,marginTop:g}})})]}):(0,t.jsx)("div",{className:"d-flex",children:!m.isWesternFord&&(0,t.jsx)(r.default,{style:{height:f},className:"mr-2"})}),(0,t.jsx)("span",{className:(0,u.cn)(p&&"d-none d-md-inline"),children:(0,t.jsx)(h,{count:y,starRating:_})})]})})}],865274)},365363,e=>{"use strict";var t=e.i(271104),a=e.i(180),r=e.i(951942),o=e.i(971821),s=e.i(615190);let i=Object.keys(t.default.stock.car_types).filter(e=>t.default.stock.car_types[e]>0);e.s(["defaultCarTypeArray",0,i,"useDynamicCarTypes",0,()=>{let{data:e}=(0,r.useTanstackQuery)({queryKey:["car-types"],queryFn:async()=>{let e=await (0,a.getCarTypeStockCounts)((0,s.getStockDropdownSearchFilters)(t.default.manufacturer,o.DEFAULT_SEARCH_FILTERS,t.default.search_filters));return Object.keys(e).filter(t=>e[t]>0)}});return Array.isArray(e)&&e.length>0?e:(0,s.getStockDropdownFallbackCarTypes)(t.default.manufacturer,i)}])},731471,598095,e=>{"use strict";var t=e.i(464645),a=e.i(271104),r=e.i(464173),o=e.i(232587),s=e.i(667568),i=e.i(327142),l=e.i(756718),n=e.i(491315);let d=e=>{let t=(e?.name??"").toLowerCase();return t.includes("pre-owned")||t.includes("preowned")||t.includes("used")?2:t.includes("demo")?1:t.includes("new")?0:-1};var u=e.i(365363),c=e.i(569925),m=e.i(666971),p=e.i(615190),h=e.i(144637);let f=(0,m.withAltoArtarmonUnpublishedModels)(i.default),g=[],w=["New Cars","Demo Cars","Pre-Owned Cars","Virtual Showroom"],y=(e,t={carTypes:u.defaultCarTypeArray})=>{let r,o,i=(r=(r=JSON.stringify(e)).replace(/\[(\w+)\]/g,(e,t)=>"website_name"===t?a.default.name:e),o="string"==typeof a.default.retailer_code?a.default.retailer_code:"",JSON.parse(r=r.replace(/\{\{retailer_code\}\}/g,o)));return i.filter(e=>e.dynamicDropdown).map(e=>{switch(e.dynamicDropdown){case"models":void 0===e.dropdownItems&&(e.dropdownItems=f.map(e=>{let t=`/${l.modelsBasePath}/${(0,l.getModelUrlSlug)(e)}`,a=e.status&&("new"===e.status||"all_new"===e.status),r="coming_soon"===e.status;return{name:(0,l.formatModelDisplayName)(e.name,n.websiteManufacturerName),url:t,logo:e.image.src,className:a?"new":r?"coming-soon":""}}).concat(e.dropdownItems||[]));break;case"modelsByBody":{let t,a,r,o,s=i.indexOf(e);if(-1===s)break;let d=(t=new Map,f.forEach(e=>{let a=e?.manufacturer_body||"Other",r=e?.override_url,o=n.isToyota&&r?r.replace("thomasbrostoyota","[toyota_domain]"):`/${l.modelsBasePath}/${(0,l.getModelUrlSlug)(e)}`,s={name:(0,l.formatModelDisplayName)(e.name,n.websiteManufacturerName),url:o},i=t.get(a)??[];i.push(s),t.set(a,i)}),r=(a=Array.from(t.entries())).find(([e])=>"Other"===e),o=a.filter(([e])=>"Other"!==e),(r?[...o,r]:o).map(([e,t])=>({name:e,dropdownItems:t})));i.splice(s,1,...d);break}case"configurator":void 0===e.dropdownItems&&(e.dropdownItems=f.map(e=>{let t=`/configurator/${(0,l.getModelUrlSlug)(e)}`;return{name:(0,l.formatModelDisplayName)(e.name,n.websiteManufacturerName),url:t,className:e.status?"new":""}}).concat(e.dropdownItems||[]));break;case"tractors":void 0===e.dropdownItems&&(n.isMahindraGoldCoast||n.isPickeringAutomotiveGroup?e.dropdownItems=g.map(e=>{let t;return t=n.isPickeringAutomotiveGroup?"/models/"+e.slug:n.isMahindraGoldCoast?"/pages/"+e.slug:"/"+e.slug,{name:(0,l.formatModelDisplayName)(e.name,a.default.manufacturer?.name||"Mahindra"),url:t,logo:e.image.url,className:e.status?"new":""}}).concat(e.dropdownItems||[]):e.dropdownItems=[]);break;case"stock":if(void 0===e.dropdownItems||Array.isArray(e.dropdownItems)&&e.dropdownItems.length<t.carTypes?.length){e.dropdownItems=[];let a=(0,p.pluralize)((0,p.getPrimaryVehicle)());t.carTypes.includes("new")&&e.dropdownItems.push({name:`New ${a}`,url:`/search/new-${p.primaryVehicleSlug}`}),t.carTypes.includes("demo")&&e.dropdownItems.push({name:`Demo ${a}`,url:`/search/demo-${p.primaryVehicleSlug}`}),t.carTypes.includes("used")&&e.dropdownItems.push({name:n.isMotorama||n.isRingwoodMahindra||n.isWerribeeMahindra?"Pre-Owned Cars":`Used ${a}`,url:`/search/used-${p.primaryVehicleSlug}`}),s.default.electricCars&&e.dropdownItems.push({name:"Electric Cars",url:"/electric-cars"}),s.default.header.allCarsStockDropdown&&e.dropdownItems.unshift({name:`All ${a}`,url:`/search/new-used-and-demo-${p.primaryVehicleSlug}`}),s.default.header.customStockDropdown&&e.dropdownItems.push({name:s.default.header.customStockDropdown.name,url:s.default.header.customStockDropdown.url}),s.default.header?.sortStockDropdownAlphabetically&&e.dropdownItems.sort((e,t)=>
1e.name>t.name?1:-1),s.default.header?.reverseStockDropdown&&e.dropdownItems.reverse()}e.dropdownItems=(e=>{if(!Array.isArray(e))return e;let t=e.filter(e=>-1!==d(e));if(t.length<2)return e;let a=[...t].sort((e,t)=>d(e)-d(t)),r=0;return e.map(e=>-1!==d(e)?a[r++]:e)})(e.dropdownItems),n.isMotorama&&e.dropdownItems.sort((e,t)=>w.indexOf(e.name)-w.indexOf(t.name));break;case"brands":if(!s.default.header?.useNavBrandsChildren){void 0===e.dropdownItems&&(e.dropdownItems=(0,c.buildSsrBrandsDropdownItemsMinimal)(e));break}e.dropdownItems=(0,c.resolveBrandDropdownItems)(e);break;case"socials":void 0===e.dropdownItems&&(e.dropdownItems=(0,h.getSocialPlatforms)());break;default:return}}),i};e.s(["default",0,y],598095);var v=e.i(884102),_=e.i(129182);e.s(["useHeaderMenuItems",0,()=>{let{navigation:e}=(0,o.useNavigation)(),i=(()=>{let{getLinkForGatedRoute:e}=(0,v.useGatedRoutes)();return{_key:"favourites_link",_type:"menuItem",name:a.default.garage_enabled?"myGarage":r.hasCompare?"Compare":"Favourites",url:a.default.garage_enabled?e(_.GARAGE_ROUTE.replace("/","")??"my-garage"):r.hasCompare?"/compare":"/favourites",className:" d-inline d-lg-none"}})(),l=(0,u.useDynamicCarTypes)(),d=a.default?.navigation?.header?a.default.navigation:s.default.navigation;return(0,t.useMemo)(()=>{let t=e?.header??d?.header;r.hasFavouriteTurnedOn&&!s.default.storage.hideFavouritesNav&&t?.filter(e=>"favourites_link"===e._key).length===0&&t.push(i);let a=t;return a=y(a,{carTypes:l}),n.isToyota&&(a=(0,p.addQueryParamsToNavItems)(a,{root:"referring_cta=primary_header",nested:"referring_cta=secondary_header"})),a},[d?.header,l,i,e?.header])}],731471)},998867,e=>{"use strict";var t=e.i(464645);e.s(["useIsMobile",0,function({breakpoint:e=768}){let[a,r]=t.useState(void 0);return t.useEffect(()=>{let t=window.matchMedia(`(max-width: ${e-1}px)`),a=()=>{r(window.innerWidth<e)};return t.addEventListener("change",a),r(window.innerWidth<e),()=>t.removeEventListener("change",a)},[e]),!!a}])},135427,e=>{"use strict";var t=e.i(464645),a=e.i(243828),r=e.i(512211),o=e.i(974036),s=e.i(232587),i=e.i(667568),l=e.i(615190);let n=(0,r.atom)({rating:null,stars:null,isFetched:!1});e.s(["useReviewCount",0,e=>{let r=e?.isUsingSnap21Reviews??!1,d=i.default?.reviews?.snap21?.snap21OrgId,[u,c]=(0,o.useAtom)(n);(0,t.useEffect)(()=>{let e=async()=>{try{let e=await fetch(`/api/reviews/snap21?orgId=${d}`),t=await (0,l.handleFetch)(e);c({rating:t.rating,stars:t.stars,isFetched:!0})}catch(e){console.log("Unable to fetch Snap 21 ratings at this moment.",e)}};r&&!u.isFetched&&d&&e()},[u.isFetched,c,d,r]);let{websiteSession:m}=(0,s.useWebsiteSession)(),p=m?.reviews?.count??a.default.count,h=m?.reviews?.average_rating??a.default.average_rating;return r?u:{count:p,averageRating:h}}])},7232,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0n9e_no_5voys.js"].map(t=>e.l(t))).then(()=>t(915741)))},232193,e=>{"use strict";e.i(473838),e.s([])}]);

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.