1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,740689,e=>{e.v({EmptyCarCard:"EmptyCarCard-module-scss-module__nH1ZwW__EmptyCarCard",EmptyNumber:"EmptyCarCard-module-scss-module__nH1ZwW__EmptyNumber"})},301440,e=>{e.v({EmptyHitsContainer:"HeroFavourites-module-scss-module__IOd4Cq__EmptyHitsContainer",Hero:"HeroFavourites-module-scss-module__IOd4Cq__Hero",MinHeightStock:"HeroFavourites-module-scss-module__IOd4Cq__MinHeightStock"})},764180,e=>{"use strict";var t=e.i(563705),s=e.i(220560),a=e.i(667568),r=e.i(271104),i=e.i(974036),l=e.i(755131),n=e.i(950708),c=e.i(880854),o=e.i(324831),d=e.i(475688),m=e.i(141974),u=e.i(998380),x=e.i(615190),h=e.i(740689);let p=({id:e,getStartedUrl:s})=>(0,t.jsx)("div",{className:h.default.EmptyCarCard,children:e>1?(0,t.jsx)("div",{className:"d-flex align-items-center justify-content-center h-100 w-100",children:(0,t.jsx)("p",{className:h.default.EmptyNumber,children:e})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("h5",{className:"text-bold font-weight-bold",children:["No Saved ",(0,m.capitalize)((0,x.pluralize)((0,x.getPrimaryVehicle)()||"Car"))]}),(0,t.jsx)("div",{className:"my-4",children:(0,t.jsx)(d.RiHeartAddFill,{size:60,className:"text-primary"})}),s&&(0,t.jsx)(u.default,{href:s,className:"btn btn-outline-primary",children:"Get Started"})]})}),f=({ready:e})=>e?(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("div",{className:"pt-4 row",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"mb-5 d-sm-flex justify-content-center col-12 col-sm-6 col-lg-3 "+(e>3?"d-none":"d-flex"),children:(0,t.jsx)(p,{id:e,getStartedUrl:o.defaultSearchPath})},"empty-card-"+e))})}):null;var j=e.i(465316),v=e.i(491315),y=e.i(481992),b=e.i(267052),N=e.i(969570),g=e.i(732618),C=e.i(301440);let w=({initialLoad:e=!1})=>{let s=(0,N.useClientsideRouter)(),a=(0,i.useSetAtom)(c.favouriteCarsAtom);return(0,t.jsx)("div",{className:"row justify-content-center",children:e?(0,t.jsxs)("div",{className:(0,x.cn)(C.default.EmptyHitsContainer,"my-2"),children:[(0,t.jsx)("h4",{className:"text-white",children:"No Results Found"}),(0,t.jsx)("p",{className:"text-white-50",children:"It appears that the cars you have saved are no longer available. Keep searching to see what else we have in stock!"}),(0,t.jsx)("button",{className:"btn btn-primary",onClick:()=>{a([]),s.push(o.defaultSearchPath)},children:"Search For Vehicles In Stock"})]}):(0,t.jsx)("div",{className:(0,x.cn)(C.default.EmptyHitsContainer,"my-2 p-4"),children:(0,t.jsx)(g.LucideSpinner,{size:24})})})},H=({search_filters:e})=>{let{hits:s,initialLoad:a}=(0,y.useHits)({limit:20,search_filters:e,serverHits:[]});return s.length>0?(0,t.jsx)("div",{className:"py-2",children:(0,t.jsx)("div",{className:"px-md-4 col-12",children:(0,t.jsx)(b.default,{cars:s,variant:"favourite"})})}):(0,t.jsx)(w,{initialLoad:a})},_=a.default.links.contact.url,S=()=>{let[e,s]=(0,i.useAtom)(c.favouriteCarsAtom),o=e?.map(e=>`id=${e.id}`).join(" OR ")??"",d=!!e?.length&&o,h=v.isTonyWhiteGroup?"option":"favourite";return(0,t.jsxs)("div",{className:C.default.Hero,children:[(0,t.jsx)(l.default,{src:a.default.defaultImages.favourites,alt:r.default.name+" page hero background image",fill:!0,objectFit:"cover",priority:!0}),(0,t.jsx)("div",{className:"container py-5",children:(0,t.jsx)("div",{className:"row py-md-5 py-1",children:(0,t.jsxs)("div",{className:"col-xl-10 m-auto",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(j.ResponsiveH1,{className:"mb-4 text-white",children:v.isTonyWhiteGroup?"Your Options":v.isAustralianMotorsGroup?"Your Favourite Cars":`Your Favourites ${(0,m.capitalize)((0,x.pluralize)((0,x.getPrimaryVehicle)()))}`}),(0,t.jsx)(j.ResponsiveH5,{className:"text-light mb-5",children:d?`EXPLORE YOUR ${(0,x.pluralize)(h).toUpperCase()} OR START FROM SCRATCH`:`YOUR ${(0,x.pluralize)(h).toUpperCase()} LIST IS EMPTY`}),d?(0,t.jsxs)("div",{className:"mt-4 mb-5",children:[(0,t.jsx)(u.default,{href:_,className:(0,x.cn)("btn mr-2",v.isGWM?"btn-outline-primary text-white":"btn-primary"),children:"Contact Us"}),(0,t.jsx)("button",{onClick:()=>s([]),className:"btn btn-outline-primary text-white",children:"Reset Your List"})]}):(0,t.jsxs)("div",{className:"mt-4 mb-5",children:[(0,t.jsx)(u.default,{href:"/",className:(0,x.cn)("btn mr-2",v.isGWM?"btn-outline-primary text-white":"btn-primary"),children:"Return Home"}),(0,t.jsx)(u.default,{href:_,className:"btn btn-outline-primary mr-2 text-white",children:"Contact Us"})]})]}),d?(0,t.jsx)("section",{className:C.default.MinHeightStock,children:(0,t.jsx)(H,{search_filters:`${n.searchFilters} AND (${o})`})}):(0,t.jsx)(f,{ready:!0})]})})})]})};var R=e.i(259674);e.s(["default",0,()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S,{}),a.default.storage?.hideMap?null:s.default.storage?.customMap?(0,t.jsx)(s.default.storage.customMap,{}):a.default.location?.customMapComponent?(0,t.jsx)(a.default.location.customMapComponent,{}):(0,t.jsx)(R.default,{})]})],764180)},826251,e=>{"use strict";var t=e.i(563705),s=e.i(974036),a=e.i(481992),r=e.i(950708),i=e.i(521313),l=e.i(880854);e.i(546151);var n=e.i(548486),c=e.i(998380),o=e.i(732618),d=e.i(615190);let m=({search_filters:e})=>{let{data:s}=(0,a.useCustomHitsAndFacets)({limit:20,search_filters:e});return void 0===s?(0,t.jsx)("div",{className:"flex justify-center py-8",children:(0,t.jsx)(o.LucideSpinner,{size:24})}):0===s.length?(0,t.jsx)("p",{className:"py-8 text-center text-sm text-neutral-600",children:"The vehicles you saved are no longer available."}):(0,t.jsx)("div",{className:"-mx-4 flex snap-x snap-mandatory gap-4 overflow-x-auto px-4 pb-2 sm:mx-0 sm:grid sm:snap-none sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 xl:gr
1id-cols-3",children:s.map(e=>(0,t.jsx)(i.default,{wrapperClassName:"h-full w-full shrink-0 snap-center carSearchCard sm:w-auto sm:shrink",car:e,image_url:(0,d.carSearchImage)(e)},e.id))})};e.s(["default",0,()=>{let[e,a]=(0,s.useAtom)(l.favouriteCarsAtom),i=e?.map(e=>`id=${e.id}`).join(" OR ")??"",o=!!e?.length&&i;return(0,t.jsx)("section",{className:"bg-white",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12 md:py-20",children:[(0,t.jsxs)("header",{className:"mb-10 text-center",children:[(0,t.jsxs)("h1",{className:"flex flex-wrap items-center justify-center gap-x-2 font-extrabold uppercase lg:gap-x-3 lg:pb-3",children:[(0,t.jsx)("span",{children:"Your Saved"}),(0,t.jsx)("span",{className:"bg-primary mb-2 inline-block -rotate-1 rounded-xl px-3 py-1 leading-none text-white",children:"Dreams"})]}),(0,t.jsx)("p",{className:"mt-6 text-sm font-semibold tracking-widest text-neutral-700 uppercase",children:"Your Shortlist"})]}),o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-4 flex justify-center",children:(0,t.jsxs)("button",{type:"button",onClick:()=>a([]),className:"text-primary hover:text-primary/80 inline-flex items-center gap-2 border-0 bg-transparent text-sm font-bold transition-colors",children:[(0,t.jsx)(n.Trash2,{width:16,height:16}),"Clear List"]})}),(0,t.jsx)(m,{search_filters:`${r.searchFilters} AND (${i})`}),(0,t.jsx)("div",{className:"mt-10 flex justify-center",children:(0,t.jsx)(c.default,{href:"/search",className:"bg-primary text-secondary! hover:bg-primary/90 inline-flex w-full max-w-xs items-center justify-center rounded border border-transparent px-6 py-3 text-center text-sm font-semibold tracking-widest uppercase no-underline! transition-colors sm:w-auto",children:"Browse More"})})]}):(0,t.jsx)("div",{className:"flex flex-col items-center gap-4",children:(0,t.jsx)(c.default,{href:"/search",className:"bg-primary text-secondary! hover:bg-primary/90 inline-flex items-center rounded px-6 py-3 text-sm font-semibold tracking-widest uppercase no-underline! transition-colors",children:"Browse Caravans"})})]})})}])}]);
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.