1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dcee5314-b62e-427a-893f-b9c039e65156",e._sentryDebugIdIdentifier="sentry-dbid-dcee5314-b62e-427a-893f-b9c039e65156")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[75425,7016,87764],{7016:function(e,t,a){"use strict";a.r(t),a.d(t,{__iconNode:function(){return l},default:function(){return s}});var r=a(72919);/** 2 * @license lucide-react v0.525.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let l=[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}]],s=(0,r.Z)("bed",l)},87764:function(e,t,a){"use strict";a.r(t),a.d(t,{__iconNode:function(){return l},default:function(){return s}});var r=a(72919);/** 7 * @license lucide-react v0.525.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let l=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],s=(0,r.Z)("search",l)},6889:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/book",function(){return a(1782)}])},31312:function(e,t,a){"use strict";a.d(t,{C:function(){return o}});var r=a(85893);a(67294);var l=a(12003),s=a(26806);let n=(0,l.j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:a,...l}=e;return(0,r.jsx)("div",{className:(0,s.cn)(n({variant:a}),t),...l})}},24078:function(e,t,a){"use strict";a.d(t,{f:function(){return d}});var r=a(85893);a(67294);var l=a(98814),s=a(64998),n=a(43113),o=a(26806),i=a(14685);function d(e){let{className:t,classNames:a,showOutsideDays:d=!0,...c}=e;return(0,r.jsx)(n._W,{showOutsideDays:d,className:(0,o.cn)("p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:(0,o.cn)((0,i.d)({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:(0,o.cn)("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md","range"===c.mode?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:(0,o.cn)((0,i.d)({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},components:{IconLeft:e=>{let{className:t,...a}=e;return(0,r.jsx)(l.default,{className:(0,o.cn)("h-4 w-4",t),...a})},IconRight:e=>{let{className:t,...a}=e;return(0,r.jsx)(s.default,{className:(0,o.cn)("h-4 w-4",t),...a})}},...c})}
11d.displayName="Calendar"},9383:function(e,t,a){"use strict";a.d(t,{Ol:function(){return o},Zb:function(){return n},aY:function(){return c},ll:function(){return i}});var r=a(85893),l=a(67294),s=a(26806);let n=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...l})});n.displayName="Card";let o=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",a),...l})});o.displayName="CardHeader";let i=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",a),...l})});i.displayName="CardTitle";let d=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",a),...l})});d.displayName="CardDescription";let c=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",a),...l})});c.displayName="CardContent";let u=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",a),...l})});u.displayName="CardFooter"},6075:function(e,t,a){"use strict";a.d(t,{KI:function(){return m},Pz:function(){return p},am:function(){return h},d$:function(){return x},lr:function(){return f}});var r=a(85893),l=a(67294),s=a(89382),n=a(53219),o=a(82701),i=a(26806),d=a(14685);let c=l.createContext(null);function u(){let e=l.useContext(c);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let f=l.forwardRef((e,t)=>{let{orientation:a="horizontal",opts:n,setApi:o,plugins:d,className:u,children:f,...m}=e,[x,h]=(0,s.Z)({...n,axis:"horizontal"===a?"x":"y"},d),[p,v]=l.useState(!1),[g,y]=l.useState(!1),b=l.useCallback(e=>{e&&(v(e.canScrollPrev()),y(e.canScrollNext()))},[]),w=l.useCallback(()=>{null==h||h.scrollPrev()},[h]),j=l.useCallback(()=>{null==h||h.scrollNext()},[h]),N=l.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[w,j]);return l.useEffect(()=>{h&&o&&o(h)},[h,o]),l.useEffect(()=>{if(h)return b(h),h.on("reInit",b),h.on("select",b),()=>{null==h||h.off("select",b)}},[h,b]),(0,r.jsx)(c.Provider,{value:{carouselRef:x,api:h,opts:n,orientation:a||((null==n?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:j,canScrollPrev:p,canScrollNext:g},children:(0,r.jsx)("div",{ref:t,onKeyDownCapture:N,className:(0,i.cn)("relative",u),role:"region","aria-roledescription":"carousel",...m,children:f})})});f.displayName="Carousel";let m=l.forwardRef((e,t)=>{let{className:a,...l}=e,{carouselRef:s,orientation:n}=u();return(0,r.jsx)("div",{ref:s,className:"overflow-hidden",children:(0,r.jsx)("div",{ref:t,className:(0,i.cn)("flex","horizontal"===n?"-ml-4":"-mt-4 flex-col",a),...l})})});m.displayName="CarouselContent";let x=l.forwardRef((e,t)=>{let{className:a,...l}=e,{orientation:s}=u();return(0,r.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:(0,i.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===s?"pl-4":"pt-4",a),...l})});x.displayName="CarouselItem";let h=l.forwardRef((e,t)=>{let{className:a,variant:l="outline",size:s="icon",...o}=e,{orientation:c,scrollPrev:f,canScrollPrev:m}=u();return(0,r.jsxs)(d.z,{ref:t,variant:l,size:s,className:(0,i.cn)("absolute h-8 w-8 rounded-full","horizontal"===c?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,onClick:f,...o,children:[(0,r.jsx)(n.default,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});h.displayName="CarouselPrevious";let p=l.forwardRef((e,t)=>{let{className:a,variant:l="outline",size:s="icon",...n}=e,{orientation:c,scrollNext:f,canScrollNext:m}=u();return(0,r.jsxs)(d.z,{ref:t,variant:l,size:s,className:(0,i.cn)("absolute h-8 w-8 rounded-full","horizontal"===c?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,onClick:f,...n,children:[(0,r.jsx)(o.default,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Next slide"})]})});
11p.displayName="CarouselNext"},98826:function(e,t,a){"use strict";a.d(t,{J2:function(){return o},xo:function(){return i},yk:function(){return d}});var r=a(85893),l=a(67294),s=a(86419),n=a(26806);let o=s.fC,i=s.xz;s.ee;let d=l.forwardRef((e,t)=>{let{className:a,align:l="center",sideOffset:o=4,...i}=e;return(0,r.jsx)(s.h_,{children:(0,r.jsx)(s.VY,{ref:t,align:l,sideOffset:o,className:(0,n.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...i})})});d.displayName=s.VY.displayName},49235:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var r=a(85893),l=a(67294),s=a(63452),n=a(26806);let o=l.forwardRef((e,t)=>{let{className:a,orientation:l="horizontal",decorative:o=!0,...i}=e;return(0,r.jsx)(s.f,{ref:t,decorative:o,orientation:l,className:(0,n.cn)("shrink-0 bg-border","horizontal"===l?"h-[1px] w-full":"h-full w-[1px]",a),...i})});o.displayName=s.f.displayName},42660:function(e,t,a){"use strict";a.d(t,{T:function(){return r}});let r={bookingHero:"bookingHero",homeGallery:"homeGallery"}},1782:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return W}});var r=a(85893),l=a(78237),s=a(12642),n=a(79309),o=a(25675),i=a.n(o),d=a(41664),c=a.n(d),u=a(7016),f=a(34622),m=a(82627),x=a(9383),h=a(31312),p=a(6075),v=a(49235);let g=e=>{let{van:t,fromDate:a,toDate:o,vanVariation:d}=e,{price:g}=(0,l.U)(d,a);return(0,r.jsxs)(x.Zb,{className:"overflow-hidden border-0 shadow-lg bg-white",children:[(0,r.jsxs)("div",{className:"relative aspect-[4/3] w-full overflow-hidden",children:[(0,r.jsxs)(p.lr,{className:"w-full h-full",opts:{loop:!0},children:[(0,r.jsx)(p.KI,{className:"h-full",children:(null==d?void 0:d.images)&&d.images.length>0?d.images.map((e,t)=>e?(0,r.jsx)(p.d$,{className:"pl-0 h-full",children:(0,r.jsx)("div",{className:"relative w-full h-full overflow-hidden",children:(0,r.jsx)(i(),{src:e.replace(/.heic/g,".jpg"),alt:"".concat(d.name," - image ").concat(t+1),width:400,height:300,loading:"eager",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover w-full h-full",priority:0===t,onError:a=>{console.error("Error loading image ".concat(t," for van ").concat(d.name,":"),e,a)},onLoad:()=>{console.log("Successfully loaded image ".concat(t,":"),e)}})})},t):null):(0,r.jsx)(p.d$,{className:"pl-0 h-full",children:(0,r.jsxs)("div",{className:"relative w-full h-full overflow-hidden bg-gradient-to-br from-blue-50 to-indigo-100",children:[(0,r.jsx)(i(),{src:"/coast.webp",alt:"".concat(d.name," - placeholder"),width:400,height:300,loading:"eager",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover w-full h-full opacity-60",priority:!0}),(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 bg-white/20 rounded-full flex items-center justify-center backdrop-blur-sm border border-white/30",children:(0,r.jsx)(u.default,{className:"w-8 h-8 text-white"})}),(0,r.jsx)("p",{className:"text-gray-700 mb-2 font-semibold text-lg",children:"No images available"}),(0,r.jsxs)("p",{className:"text-gray-600 text-sm",children:["Van: ",d.name]})]})})]})})}),(null==d?void 0:d.images)&&d.images.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.am,{className:"left-3 bg-white/90 hover:bg-white border-0 shadow-lg"}),(0,r.jsx)(p.Pz,{className:"right-3 bg-white/90 hover:bg-white border-0 shadow-lg"})]})]}),(0,r.jsx)("div",{className:"absolute top-3 right-3",children:(0,r.jsxs)(h.C,{className:"bg-white/95 backdrop-blur-sm text-gray-900 font-semibold px-3 py-1 shadow-lg border-0 hover:bg-white/90",children:["\xa3",g,"/day"]})})]}),(0,r.jsxs)(c(),{href:{pathname:"/vans/".concat(null==d?void 0:d.id),query:{fromDate:a?(0,s.WU)(a,"dd-M
11M-yyy"):null,toDate:o?(0,s.WU)(o,"dd-MM-yyy"):null,vanId:null==t?void 0:t.id}},className:"block hover:no-underline",children:[(0,r.jsxs)(x.Ol,{className:"pb-3 pt-4",children:[(0,r.jsx)(x.ll,{className:"text-xl font-bold text-gray-900",children:d.name}),d.blurb&&(0,r.jsx)("p",{className:"text-sm text-gray-600 overflow-hidden leading-relaxed",style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:d.blurb})]}),(0,r.jsxs)(x.aY,{className:"pt-0 pb-4",children:[d.keyFeatures&&d.keyFeatures.length>0&&(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:d.keyFeatures.map(e=>(0,r.jsx)(h.C,{variant:"outline",className:"text-xs px-3 py-1 bg-blue-50 text-blue-700 border-blue-200",children:null==e?void 0:e.name},null==e?void 0:e.id))})}),(0,r.jsx)(v.Z,{className:"my-4"}),(0,r.jsxs)("div",{className:"flex gap-4 mb-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-gray-600",children:[(0,r.jsx)(u.default,{className:"h-4 w-4 text-blue-600"}),(0,r.jsxs)("span",{className:"text-sm font-medium",children:["Sleeps ",d.sleeps]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-gray-600",children:[(0,r.jsx)(f.default,{className:"h-4 w-4 text-green-600"}),(0,r.jsxs)("span",{className:"text-sm font-medium",children:[(0,n.j)(o,a)," days"]})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm text-gray-600 font-medium",children:"Total price"}),(0,r.jsxs)("p",{className:"text-lg font-bold text-gray-900",children:["\xa3",(0,m.e)(a,o,null!=g?g:0)]})]})]})]})]})};var y=a(14685),b=a(24078),w=a(98826),j=a(26806),N=a(55447),k=a(21860),_=a(87764),D=a(11163),C=a(67294),S=a(87536);let z=e=>{let{onSubmit:t,loading:a,setFromDate:l,setToDate:o}=e,{handleSubmit:i,setValue:d}=(0,S.cI)(),[c,u]=(0,C.useState)(),[m,x]=(0,C.useState)(null),[h,p]=(0,C.useState)(!1),v=(0,D.useRouter)(),{fromDate:g,toDate:z}=v.query;(0,C.useEffect)(()=>{p(window.innerWidth<640);let e=()=>p(window.innerWidth<640);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,C.useEffect)(()=>{if(g&&z){let e=new Date(g),a=new Date(z);d("fromDate",e),d("toDate",a),u({from:e,to:a}),l(e),o(a),t({variables:{fromDate:e,toDate:a}})}},[g,z,d,l,o,t]);let E=e=>{if((null==e?void 0:e.from)&&(null==e?void 0:e.to)){let t=(0,n.j)(e.to,e.from);if(t<2){x("Minimum booking duration is 2 days");return}}x(null),u(e),(null==e?void 0:e.from)&&l(e.from),(null==e?void 0:e.to)&&o(e.to)},M=()=>{u(void 0),l(null),o(null)};return(0,r.jsx)("div",{className:"w-full px-4 sm:px-0 sm:flex sm:justify-center",children:(0,r.jsx)("form",{onSubmit:i(()=>{(null==c?void 0:c.from)&&(null==c?void 0:c.to)&&(v.push({pathname:"/book",query:{fromDate:(0,s.WU)(c.from,"yyyy-MM-dd"),toDate:(0,s.WU)(c.to,"yyyy-MM-dd")}}),t({variables:{fromDate:c.from,toDate:c.to}}))}),className:"w-full sm:w-auto bg-white rounded-2xl sm:rounded-full shadow-custom p-4 sm:p-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:gap-2",children:[(0,r.jsxs)(w.J2,{children:[(0,r.jsx)(w.xo,{asChild:!0,children:(0,r.jsxs)(y.z,{variant:"ghost",className:(0,j.cn)("w-full sm:w-[300px] justify-start text-left font-normal",!c&&"text-muted-foreground"),children:[(0,r.jsx)(f.default,{className:"mr-2 h-4 w-4 flex-shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:(null==c?void 0:c.from)?c.to?(0,r.jsxs)(r.Fragment,{children:[(0,s.WU)(c.from,"LLL dd, y")," -"," ",(0,s.WU)(c.to,"LLL dd, y")]}):(0,s.WU)(c.from,"LLL dd, y"):(0,r.jsx)("span",{children:"Pick a date range"})})]})}),(0,r.jsx)(w.yk,{className:"sm:w-auto p-0 flex flex-col z-[1000]",align:"start",children:(0,r.jsxs)("div",{className:"p-3",children:[m&&(0,r.jsx)("p",{className:"text-red-500 text-sm mb-2",children:m}),c&&(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(y.z,{disabled:!c,variant:"outline",onClick:M,className:"text-xs",children:"Clear"})}),(0,r.jsx)(b.f,{initialFocus:!0,mode:"range",defaultMonth:null==c?void 0:c.from,selected:c,onSelect:E,numberOfMonths:h?1:2,disabled:e=>(0,N.z)(e)||e<new Date,fromDate:new Date,toDate:(0,k.E)(new Date,365)})]})})]}),(0,r.jsx)(y.z,{type:"submit",className:"w-full sm:w-auto rounded-full bg-acid text-black hover:bg-acid/90",disabled:!(null==c?void 0:c.from)||!(null==c?void 0:c.to)||a||!!m,children:a?(0,r.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-black border-t-transparent"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.default,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:"Search"})]})})]})})})};var E=a(42660),M=a(61667),L=a(56967),P=a(36316),R=a(9008),I=a.n(R);function W(){var e;let[t,a]=(0,C.useState)(null),[l,s]=(0,C.useState)(null),{toast:n}=(0,L.pm)(),[o,{data:d,loading:c,error:u}]=(0,M.m$)({fetchPolicy:"no-cache"}),f=(0,C.useRef)(null),[m,{data:x,loading:h}]=(0,M.nU)({variables:{type:E.T.bookingHero}}),p=null==d?void 0:d.findAvailableVanVariations,v=()=>{var e;null===(e=f.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})};if((0,C.useEffect)(()=>{p&&v(),m()},[m,p]),u)return(0,r.jsx)("div",{className:"h-screen flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center max-w-xs",children:[(0,r.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"Something went wrong"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Please try again later or contact us if the issue persists."})]})});let y=t&&l,b=(null==x?void 0:null===(e=x.findOne)||void 0===e?void 0:e.content)&&(null==x?void 0:x.findOne.content[0])?null==x?void 0:x.findOne.content[0].replace(/.heic/g,".jpg"):"/coast.webp";return(0,r.jsxs)("div",{children:[(0,r.jsxs)(I(),{children:[(0,r.jsx)("title",{children:"Book a van"}),(0,r.jsx)("meta",{name:"description",content:"Book your dream trip with us today"})]}),(0,r.jsxs)("div",{className:"h-[100svh] flex justify-center items-center relative ",children:[(0,r.jsx)(i(),{src:b,alt:"hero-image",fill:!0,style:{objectFit:"cover",objectPosition:"center"}}),(0,r.jsx)("div",{className:"bg-black absolute top-0 left-0 w-full h-full opacity-20 z-10"}),(0,r.jsxs)("div",{className:"p-5 flex flex-col items-center justify-center relative z-20",children:[(0,r.jsx)("h1",{className:"text-5xl font-bold text-center mb-14 text-white lg:text-6xl max-w-lg",children:"Book your dream trip with us today"}),(0,r.jsx)(z,{onSubmit:o,loading:c,setFromDate:a,setToDate:s})]})]}),(0,r.jsxs)("div",{className:"lg:p-20 2xl:px-40 p-4 empty:hidden",ref:f,children:[c&&(0,r.jsx)("div",{className:"flex justify-center text-acid",children:(0,r.jsx)(P.default,{className:"h-5 w-5 animate-spin"})}),y&&(null==p?void 0:p.length)===0&&(0,r.jsx)("p",{className:"text-2xl font-bold text-center col-span-full",children:"Sorry, we have no vans available for those dates!"}),y&&p&&p.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"lg:text-3xl font-bold lg:mb-20 mb-10",children:"".concat(p.length," van").concat(p.length>
111?"s":""," available")}),(0,r.jsx)("div",{className:"grid sm:grid-cols-3 2xl:grid-cols-3 gap-10 grid-cols-1",children:null==p?void 0:p.map(e=>e&&(0,r.jsx)(g,{vanVariation:e,fromDate:t,toDate:l,van:e.van},e.id))})]})]})]})}},82627:function(e,t,a){"use strict";a.d(t,{e:function(){return l}});var r=a(10146);let l=(e,t,a,l)=>{var s;let n=null==l?void 0:l.reduce((e,t)=>e+(null!==(s=t.price)&&void 0!==s?s:0),0),o=(0,r.w)(t,e);return a*o+(n?n*o:0)}},78237:function(e,t,a){"use strict";a.d(t,{U:function(){return o}});var r=a(61667),l=a(79318),s=a(44123);let n=()=>({shoulderSeasonEarly:{startMonth:3,startDay:1,endMonth:4,endDay:31},peakSeason:{startMonth:5,startDay:1,endMonth:7,endDay:31},shoulderSeasonLate:{startMonth:8,startDay:1,endMonth:8,endDay:30}}),o=(e,t)=>{let a=n(),o=e=>{let{startMonth:a,startDay:r,endMonth:n,endDay:o}=e,i=(0,l.j)(t),d=(0,s._)(t);return i===a&&i===n?d>=r&&d<=o:i===a?d>=r:i===n?d<=o:i>a&&i<n};return o(a.shoulderSeasonEarly)?{season:r.iZ.ShoulderSeasonEarly,price:null==e?void 0:e.shoulderSeasonEarlyPrice}:o(a.peakSeason)?{season:r.iZ.PeakSeason,price:null==e?void 0:e.peakSeasonPrice}:o(a.shoulderSeasonLate)?{season:r.iZ.ShoulderSeasonLate,price:null==e?void 0:e.shoulderSeasonLatePrice}:{season:r.iZ.LowSeason,price:null==e?void 0:e.lowSeasonPrice}}}},function(e){e.O(0,[45738,87536,33397,49341,46255,3341,24325,73683,61667,49774,92888,40179],function(){return e(e.s=6889)}
11),_N_E=e.O()}]);
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.