PageSourceSearch

https://www.hirenride.com/_next/static/chunks/14c3z4zjs7ksi.js

js hirenride.com collected 2026-10-01 13:11:19 UTC 69,947 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72328,e=>{"use strict";var t=e.i(71164),i=e.i(38544),a=e.i(71645);e.s(["useReducedMotion",0,function(){t.hasReducedMotionListener.current||(0,i.initPrefersReducedMotion)();let[e]=(0,a.useState)(t.prefersReducedMotion.current);return e}])},68774,e=>{"use strict";e.s(["BRAND",0,{logo:"/hirenride-logo.png",logoWhite:"/whitelogo.png",logoAlt:"hirenride - Your Travel Partner logo"},"appLinks",0,{customer:{appStore:"https://apps.apple.com/in/app/hire-n-ride-bike-car-rental/id6667101740",googlePlay:"https://play.google.com/store/apps/details?id=com.hirenride.app"},host:{appStore:"https://apps.apple.com/in/app/hire-n-ride-host-app/id6744389464",googlePlay:"https://play.google.com/store/apps/details?id=com.hosthirenride.app"},appStore:"https://apps.apple.com/in/app/hire-n-ride-bike-car-rental/id6667101740",googlePlay:"https://play.google.com/store/apps/details?id=com.hirenride.app"},"features",0,[{icon:"secure",title:"Transparent Pricing",description:"No hidden fees. No 'oh, we forgot to mention that' charges. Just honest, all-inclusive rates from booking to drop-off — for every car, bike, or scooty rental."},{icon:"kyc",title:"Instant Booking & KYC",description:"Skip the paperwork pile-up. Verify your KYC and confirm your booking digitally, from anywhere — whether you're renting a self-drive car or a two-wheeler."},{icon:"insurance",title:"Safety-First Vehicles",description:"Every two-wheeler comes with a helmet and a full safety check. Every car passes inspection before it's listed. Nothing skipped."},{icon:"support",title:"Doorstep Delivery",description:"No need to travel to pick up your ride. Tell us where you are, and your car, bike, or scooty shows up ready to go."}
1,{icon:"users",title:"Professional Hosts",description:"Behind every vehicle is a professional host who's done this right, again and again. Every host on Hire N Ride treats this as their craft."},{icon:"shield-check",title:"Fully Compliant Vehicles",description:"Car, bike, or scooty — every vehicle on Hire N Ride comes with valid government insurance. Because your safety matters a lot."}],"navLinks",0,[{label:"Locations",href:"/locations"},{label:"About Us",href:"/about-us"},{label:"Blog",href:"/blog"},{label:"Gallery",href:"/gallery"},{label:"Contact Us",href:"/contact-us"}],"navReferralLinks",0,[{label:"Volvo Referral",href:"/volvo-referral"},{label:"Hotel Referral",href:"/hotel-referral"},{label:"Restaurant Referral",href:"/restaurant-referral"}],"navVehicleRentalLinks",0,[{label:"Bike Rentals",href:"/bike-rental"},{label:"Scooter Rentals",href:"/scooter-rental"},{label:"Car Rentals",href:"/car-rental"}]])},19737,e=>{"use strict";function t(e){let t=e.trim();if(t.length<=125)return t;let i=t.slice(0,125),a=i.lastIndexOf(" ");return(a>10?i.slice(0,a):i).trim()}let i=[[/Royal-Enfield-Himalayan-450/i,"Royal Enfield Himalayan 450 on rent in Manali for mountain road adventures"],[/BikeRentalManali\(4\)/i,"Manali mountain scenery in peak season — best time to visit for bike rental"],[/BikeRentalManali\(3\)/i,"Scenic Manali valleys and roads for self-drive bike rental explorations"],[/BikeRentalManali\(18\)/i,"Rent a bike in Manali instead of bringing your own — rental fleet ready"],[/BikeRentalManali\(16\)/i,"Hire N Ride Manali bike rental fleet for tourists planning Himalayan trips"],[/BikeRentalManali\(17\)/i,"Manali bike rental bikes prepared for mountain road trips and sightseeing"],[/Bike-Rental-36-/i,"Manali to Leh Ladakh bike rental bikes ready for June peak season trips"]];e.s(["APP_STORE_BADGE_ALT",0,"Download Hire N Ride on the App Store","GOOGLE_PLAY_BADGE_ALT",0,"Get Hire N Ride on Google Play","IPHONE_APP_MOCKUP_FRAME_ALT",0,"Hire N Ride mobile app displayed on an iPhone","RATING_LAUREL_LEFT_ALT",0,"Left rating laurel decoration","RATING_LAUREL_RIGHT_ALT",0,"Right rating laurel decoration","activityImageAlt",0,function(e,t){let i=e.trim()||"Local experience",a=t.trim()||"the region";return`${i} in ${a} — things to do on a Hire N Ride trip`},"blogInlineImageAlt",0,function(e,a,n){let r=e.trim(),s=function(e){try{let a=decodeURIComponent(new URL(e,"https://www.hirenride.com").pathname.split("/").pop()??"");for(let[e,n]of i)if(e.test(a))return t(n)}catch{}return null}(a);if(s)return s;let l=function(e){try{let t=new URL(e,"https://www.hirenride.com").pathname,i=decodeURIComponent(t.split("/").pop()??"").replace(/\.[^.]+$/i,"");return(i=(i=(i=(i=(i=i.replace(/^\d+[-_]?/,"")).replace(/[()]/g," ")).replace(/[-_+]+/g," ")).replace(/([a-z])([A-Z])/g,"$1 $2")).replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2")).replace(/\s+/g," ").trim()}catch{return""}}(a),o="";return(o=t(o=l.length>=10?`${l} — Hire N Ride bike rental blog photo`:r?0===n?`${r} — in-article photo on Hire N Ride blog`:`${r} — blog photo ${n+1} on Hire N Ride`:`Hire N Ride blog photo ${n+1}`)).length<10&&r&&(o=t(`${r} — Hire N Ride blog`)),o},"categoryImageAlt",0,function(e){return`${e} available for self-drive rental on Hire N Ride`},"complianceBadgeAlt",0,function(e){return`${e.trim()||"Certification"} badge for Hire N Ride`},"featureIconAlt",0,function(e){return`${e} — Hire N Ride service illustration`},"listingVehicleImageAlt",0,function(e,t){let i=e.trim()||"Vehicle",a=t?.locationName?.trim(),n=t?.isCar?"car":"bike or scooter";return a?`${i} available for self-drive ${n} rental in ${a} on Hire N Ride`:`${i} available for self-drive rental on Hire N Ride`},"locationCardImageAlt",0,function(e,t){let i=e.trim()||"India";return"car"===t?`Self-drive car rental in ${i}, India — Hire N Ride`:`Self-drive bike and scooter rental in ${i}, India — Hire N Ride`},"locationGalleryImageAlt",0,function(e,t){let i=e.trim()||"India",a=t?.caption?.trim();return a?`${a} — scenic travel photo from ${i} on Hire N Ride`:"number"==typeof t?.index?`Scenic view of ${i} — travel photo ${t.index+1} on Hire N Ride`:`Scenic travel photo from ${i} — Hire N Ride`},"locationGalleryLightboxAlt",0,function(e,t){let i=e.trim()||"the destination";return`Photo ${t} of ${i} — scenic destination gallery on Hire N Ride`},"locationGalleryThumbnailAlt",0,function(e,t){let i=e.trim()||"the destination";return`${i} — gallery photo ${t} thumbnail`},"locationHeroImageAlt",0,function(e){let t=e.trim()||"India";return`${t} — scenic destination for Hire N Ride self-drive rentals`},"moreLocationCardImageAlt",0,function(e,t){let i=e.trim()||"Destination",a=t?.trim();return a?`Self-drive car and bike rental in ${i} — ${a}`:`Self-drive car and bike rental in ${i}, India — Hire N Ride`},"partnerLogoAlt",0,function(e){return`${e.trim()||"Partner"} — Hire N Ride trusted partner logo`},"placeExploreImageAlt",0,function(e,t){let i=e.trim()||"Scenic spot",a=t.trim()||"the destination";return`${i} near ${a} — top place to explore on a Hire N Ride trip`},"socialIconAlt",0,function(e){return`Hire N Ride on ${e.trim()||"social media"}`},"vehicleGalleryPhotoAlt",0,function(e,t){return`Photo ${t} of ${e} available for rent on Hire N Ride`},"vehicleGalleryThumbnailAlt",0,function(e,t){return`${e} — photo ${t} thumbnail`},"vehicleSpecIconAlt",0,function(e){return`${e} specification icon`}])},61911,e=>{"use strict";
1let t=(0,e.i(75254).default)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);e.s(["Users",0,t],61911)},3116,e=>{"use strict";let t=(0,e.i(75254).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",0,t],3116)},73264,e=>{"use strict";let t=(0,e.i(75254).default)("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);e.s(["LayoutGrid",0,t],73264)},28035,e=>{"use strict";var t=e.i(75254);e.s(["createLucideIcon",()=>t.default])},34858,e=>{"use strict";let t=(0,e.i(75254).default)("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);e.s(["Navigation",0,t],34858)},78583,e=>{"use strict";let t=(0,e.i(75254).default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],78583)},73375,e=>{"use strict";let t=(0,e.i(75254).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],73375)},31278,e=>{"use strict";let t=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],31278)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],63059)},64659,e=>{"use strict";let t=(0,e.i(75254).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],64659)},55436,e=>{"use strict";let t=(0,e.i(75254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",0,t],55436)},43432,e=>{"use strict";let t=(0,e.i(75254).default)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);e.s(["Phone",0,t],43432)},7486,e=>{"use strict";let t=(0,e.i(75254).default)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);e.s(["Building2",0,t],7486)},63488,e=>{"use strict";let t=(0,e.i(75254).default)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);e.s(["Mail",0,t],63488)},83107,58015,e=>{"use strict";var t=e.i(43476);e.i(47167);var i=e.i(71645),a=e.i(10750);function n(e){}function r(){return(0,i.useCallback)(()=>{(0,a.getGtag)()?a.GOOGLE_ADS_CALL_LABEL?(0,a.trackCallFromWebsiteConversion)():n("NEXT_PUBLIC_GOOGLE_ADS_CALL_LABEL missing; call conversion not sent"):n("gtag unavailable; Call From Website conversion not sent")},[])}e.s(["usePhoneCallConversion",0,r,"useWhatsAppClickConversion",0,function(){return(0,i.useCallback)(()=>{a.GOOGLE_ADS_WHATSAPP_LABEL?(0,a.getGtag)()?(0,a.trackWhatsAppClickConversion)():n("gtag unavailable; WhatsApp conversion not sent"):n("WhatsApp conversion label unset (TODO: NEXT_PUBLIC_GOOGLE_ADS_WHATSAPP_LABEL); not firing")},[])}],58015),e.s(["TrackedTelLink",0,function({href:e,children:i,onClick:a,...n}){let s=r();return(0,t.jsx)("a",{href:e,...n,onClick:e=>{s(),a?.(e)},children:i})}],83107)},5125,e=>{"use strict";
1let t=(0,e.i(75254).default)("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);e.s(["Car",0,t],5125)},40921,e=>{"use strict";let t=(0,e.i(75254).default)("Bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]);e.s(["Bike",0,t],40921)},47182,e=>{"use strict";var t=e.i(43476),i=e.i(22016),a=e.i(73860);e.s(["default",0,function({location:e,persistOnly:n=!0,href:r,children:s,className:l,onClick:o,...c}){let{selectHubLocation:d}=(0,a.useApplySelectedLocation)();return"string"==typeof r&&r?(0,t.jsx)(i.default,{href:r,onClick:t=>{e&&d(e,{navigate:!n,closePicker:!0}),o?.(t)},className:l,...c,children:s}):(0,t.jsx)("div",{className:l,children:s})}])},92425,e=>{"use strict";var t=e.i(43476);e.s(["WhatsAppIcon",0,function({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{fill:"currentColor",d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.884 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})})}])},23172,e=>{"use strict";var t=e.i(43476),i=e.i(71645),a=e.i(88653),n=e.i(46932),r=e.i(73375),s=e.i(63059),l=e.i(75157),o=e.i(90786),c=e.i(67798),d=e.i(25854),u=e.i(52104),m=e.i(88194),h=e.i(60894);function p(e,t,i){let a=(0,h.startOfDay)(new Date),n=(0,h.parseDateValue)(e);if(!n||!(0,h.isSameDay)(n,a))return t.filter(e=>Number(e.split(":")[0])>=i);let r=new Date,s=60*r.getHours()+r.getMinutes();return t.filter(e=>
1{let[t,a]=e.split(":").map(Number);return t>=i&&60*t+a>s})}function x(e){let t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${a}`}function f({label:e,date:i,value:a,options:n,onChange:r,compact:s=!1}){let o=(0,h.formatDisplayDate)(i);return(0,t.jsxs)("div",{className:(0,l.cn)(s&&"shrink-0"),children:[(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-accent",children:e}),o?(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted",children:o}):null]}),(0,t.jsx)("div",{className:(0,l.cn)("grid grid-cols-3 gap-2 sm:grid-cols-4",s?"gap-2.5 pb-1":"max-h-[200px] overflow-y-auto overscroll-contain"),"data-lenis-prevent":!0,children:n.map(e=>{let i=e===a;return(0,t.jsx)("button",{type:"button",onClick:()=>r(e),className:(0,l.cn)("rounded-xl border px-2 font-medium transition-colors",s?"min-h-11 px-2 py-2.5 text-[13px]":"px-2 py-2.5 text-xs",i?"border-accent bg-accent text-white":"border-[#ebebeb] bg-white text-accent hover:border-accent"),children:(0,u.formatTripTimeLabel)(e)},e)})})]})}e.s(["VehicleTripDatePanel",0,function({pickupDate:e,returnDate:g,pickupTime:y,returnTime:b,onChangePickup:v,onChangeReturn:k,onChangePickupTime:N,onChangeReturnTime:w,onApply:j,onClose:C,isOpen:_=!0,applyLabel:E="Save trip",vehicleType:S="",locationId:R,compact:A=!1,pageScroll:D=!1,className:T}){let{businessHours:L,isHourBased:I,minBookingHours:P,isResolved:M,isLocationScoped:H}=(0,m.useBusinessHours)({vehicleType:S,locationId:R}),O=L.startHour,$=L.endHour,B=(0,i.useMemo)(()=>(0,h.parseDateValue)((0,d.getCalendarMinDate)($))??(0,h.startOfDay)(new Date),[$]),W=(0,h.parseDateValue)(e),U=(0,h.parseDateValue)(g),G=(0,i.useMemo)(()=>(0,u.generateHourlyTimeOptions)(O,$),[O,$]),z=!!(e&&g),[F,V]=(0,i.useState)("dates"),[K,q]=(0,i.useState)(()=>{let e=W??B;return{year:e.getFullYear(),month:e.getMonth()}}),[X,Y]=(0,i.useState)(e&&!g?"return":"pickup"),Z=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(!_){Z.current=!1;return}if(Z.current)return;Z.current=!0,V("dates"),Y(e&&!g?"return":"pickup");let t=(0,h.parseDateValue)(e)??(0,h.startOfDay)(new Date);q({year:t.getFullYear(),month:t.getMonth()})},[_,e,g]);let J=e?(0,d.getMinPickupHourForDate)(e,O):O,Q=(0,i.useMemo)(()=>{if(!e)return G;let t=p(e,G,J);return t.length>0?t:G},[G,J,e]),ee=(0,i.useMemo)(()=>{if(!g||!e)return G;let t=p(g,G,O);return(t=function(e,t,i,a,n){let r=a.filter(e=>Number(e.split(":")[0])>=n);if(e!==t)return r;let s=(0,u.combineDateAndTime)(t,i);return r.filter(t=>(0,u.combineDateAndTime)(e,t).getTime()>s.getTime())}(g,e,y,t,O)).length>0?t:G},[G,e,y,g,O]),et=M&&H;(0,i.useEffect)(()=>{z&&et&&(Q.includes(y)||N(Q[0]))},[et,z,N,y,Q]),(0,i.useEffect)(()=>{z&&et&&(ee.includes(b)||w(ee[0]))},[et,ee,z,w,b]);let ei=z&&y?(0,u.combineDateAndTime)(e,y):null,ea=z&&b?(0,u.combineDateAndTime)(g,b):null,en=z&&!!(y&&b)&&null!=ei&&null!=ea&&ea.getTime()>ei.getTime()&&(0,d.meetsMinBookingHours)(ei,ea,L),er=A?[{year:K.year,month:K.month}]:[{year:K.year,month:K.month},{year:11===K.month?K.year+1:K.year,month:11===K.month?0:K.month+1}],es=z?`${(0,h.formatDisplayDate)(e)} – ${(0,h.formatDisplayDate)(g)}`:null,el=`${(0,u.formatTripTimeLabel)((0,d.toHourTimeString)(O))} – ${(0,u.formatTripTimeLabel)((0,d.toHourTimeString)($))}`;return(0,t.jsxs)(n.motion.div,{"data-vehicle-trip-panel":!0,initial:!A&&{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:A?void 0:{opacity:0,y:8,scale:.98},transition:{duration:.22,ease:[.22,1,.36,1]},className:(0,l.cn)("flex flex-col border border-[#ebebeb] bg-white shadow-[0_8px_28px_rgba(0,0,0,0.12)]",D?"h-auto w-full overflow-visible":"min-h-0 overflow-hidden",!D&&(A?"h-full w-full rounded-none border-x-0 border-b-0":"h-auto w-[min(100vw-2rem,720px)] max-h-[min(calc(100dvh-6.5rem),560px)] rounded-3xl"),T),children:[(0,t.jsxs)("div",{className:(0,l.cn)("flex shrink-0 gap-2 border-b border-[#ebebeb] px-3 py-2.5 sm:gap-3 sm:px-5 sm:py-3",A?"flex-col items-stretch":"items-center justify-between"),children:[(0,t.jsx)("div",{className:"inline-flex w-fit shrink-0 rounded-full bg-[#f7f7f7] p-1",children:["dates","time"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{("time"!==e||z)&&V(e)},disabled:"time"===e&&!z,className:(0,l.cn)("rounded-full px-3.5 py-2 text-sm font-medium capitalize transition-all duration-200 sm:px-4 sm:py-1.5",F===e?"bg-white text-accent shadow-sm":"text-muted hover:text-accent","time"===e&&!z&&"cursor-not-allowed opacity-40 hover:text-muted"),children:e},e))}),(0,t.jsxs)("div",{className:(0,l.cn)("flex min-w-0 gap-2",A?"w-full flex-row items-center justify-between":"flex-col items-end gap-0.5"),children:[(0,t.jsxs)("p",{className:(0,l.cn)("min-w-0 text-muted",A?"text-xs leading-snug":"truncate text-[11px]"),children:["Operating hours ",el]}),(e||g)&&"dates"===F?(0,t.jsx)("button",{type:"button",onClick:()=>{v(""),k(""),Y("pickup"),V("dates"),q({year:B.getFullYear(),month:B.getMonth()})},className:(0,l.cn)("shrink-0 font-medium text-accent underline-offset-4 hover:underline",A?"min-h-10 px-1 text-sm":"text-sm"),children:"Clear dates"}):es&&"time"===F?(0,t.jsx)("p",{className:(0,l.cn)("shrink-0 text-muted",A?"text-xs font-medium":"truncate text-xs"),children:es}):null]})]}),(0,t.jsx)("div",{className:(0,l.cn)("flex flex-col",!D&&"min-h-0 flex-1 overflow-hidden"),children:(0,t.jsx)(a.AnimatePresence,{mode:"wait",initial:!1,children:"dates"===F?(0,t.jsxs)(n.motion.div,{initial:{opacity:0,x:-20}
1,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.22,ease:[.22,1,.36,1]},className:(0,l.cn)("flex flex-col p-4 sm:p-5",!D&&"min-h-0 flex-1 overflow-y-auto overscroll-contain touch-pan-y"),...!D?{"data-lenis-prevent":!0,"data-lenis-prevent-wheel":!0}:{},children:[(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{let e=new Date(K.year,K.month-1,1);e<new Date(B.getFullYear(),B.getMonth(),1)||q({year:e.getFullYear(),month:e.getMonth()})},className:"flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:bg-[#f7f7f7]","aria-label":"Previous month",children:(0,t.jsx)(r.ChevronLeft,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:(0,l.cn)("flex flex-1 items-center justify-center",A?"gap-4":"gap-4 sm:gap-10"),children:er.map(({year:e,month:i})=>(0,t.jsx)("p",{className:(0,l.cn)("text-center text-sm font-semibold text-accent",A?"min-w-0":"min-w-0 flex-1 sm:min-w-[120px]"),children:new Date(e,i,1).toLocaleDateString("en-IN",{month:"long",year:"numeric"})},`${e}-${i}`))}),(0,t.jsx)("button",{type:"button",onClick:()=>{q(e=>11===e.month?{year:e.year+1,month:0}:{year:e.year,month:e.month+1})},className:"flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:bg-[#f7f7f7]","aria-label":"Next month",children:(0,t.jsx)(s.ChevronRight,{className:"h-4 w-4"})})]}),(0,t.jsx)("div",{className:(0,l.cn)("grid gap-4 sm:gap-6",A?"grid-cols-1":"grid-cols-2"),children:er.map(({year:i,month:a})=>{let{weekdays:n,cells:r}=(0,h.getMonthMatrix)(i,a);return(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"mb-2 grid grid-cols-7 gap-0.5 sm:gap-1",children:n.map(e=>(0,t.jsx)("div",{className:"py-1 text-center text-[11px] font-medium text-muted",children:e},e))}),(0,t.jsx)("div",{className:"grid grid-cols-7 gap-0.5 sm:gap-1",children:r.map(({date:i,key:a})=>{if(!i)return(0,t.jsx)("div",{className:"h-8 sm:h-9 md:h-10"},a);let n=(0,h.isBeforeDay)(i,B),r=!!W&&(0,h.isSameDay)(i,W),s=!!U&&(0,h.isSameDay)(i,U),o=!!W&&!!U&&(0,h.isBetweenDays)(i,W,U),d=r||s;return(0,t.jsx)("button",{type:"button",disabled:n,onClick:()=>(t=>{if(!(0,h.isBeforeDay)(t,B)){if("pickup"===X||!W||W&&U||(0,h.isBeforeDay)(t,W)){v((0,h.toDateValue)(t)),k(""),Y("return");return}((e,t,i,a,n=!1)=>{let r=(0,c.applyBusinessDefaultsToDateRange)(e,t,L,n?void 0:{preserveTimes:!0,pickupTime:i,returnTime:a});v(r.pickup),k(r.returnDate),N(r.pickupTime),w(r.returnTime)})(e,(0,h.toDateValue)(t),y,b,!0),Y("pickup"),V("time")}})(i),className:(0,l.cn)("relative flex h-8 items-center justify-center text-sm transition-colors sm:h-9 md:h-10",n&&"cursor-not-allowed text-[#b0b0b0]",!n&&!d&&!o&&"text-accent hover:rounded-full hover:bg-[#f7f7f7]",o&&"bg-[#f7f7f7] text-accent",d&&"rounded-full bg-accent text-white hover:bg-[#000000]"),children:i.getDate()},a)})})]},`${i}-${a}`)})}),(0,t.jsx)("p",{className:"mt-4 text-center text-xs text-muted",children:"pickup"===X?"Select pickup date":"Select return date"})]},"dates-tab"):(0,t.jsxs)(n.motion.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.22,ease:[.22,1,.36,1]},className:(0,l.cn)("flex flex-col p-4 sm:p-5",!D&&"min-h-0 flex-1 overflow-y-auto overscroll-contain touch-pan-y"),...!D?{"data-lenis-prevent":!0,"data-lenis-prevent-wheel":!0}:{},children:[(0,t.jsxs)("div",{className:(0,l.cn)("grid gap-6",A?"grid-cols-1":"grid-cols-1 sm:grid-cols-2"),children:[(0,t.jsx)(f,{label:"Start time",date:e,value:y,options:Q,onChange:t=>{if(!e||!g)return void N(t);let i=(0,u.combineDateAndTime)(e,t),a=(0,u.combineDateAndTime)(g,b);if(I){a=(0,d.ensureMinBookingDuration)(i,a,P),N((0,d.toHourTimeString)(i.getHours())),k(x(a)),w((0,d.toHourTimeString)(a.getHours()));return}if(e===g&&a.getTime()<=i.getTime()){let e=Math.min($,i.getHours()+1);w((0,d.toHourTimeString)(e))}N(t)},compact:A}),(0,t.jsx)(f,{label:"End time",date:g,value:b,options:ee,onChange:t=>{if(!e||!g)return void w(t);let i=(0,u.combineDateAndTime)(e,y),a=(0,u.combineDateAndTime)(g,t);if(I){k(x(a=(0,d.ensureMinBookingDuration)(i,a,P))),w((0,d.toHourTimeString)(a.getHours()));return}a.getTime()<=i.getTime()||w(t)},compact:A})]}),!en&&z?(0,t.jsx)("p",{className:"mt-4 text-center text-xs text-rose-600",children:I?`Minimum booking duration is ${P} hours. Adjust your return time.`:"End time must be after start time."}):null]},"time-tab")})}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-[#ebebeb] px-4 py-3 sm:px-5",children:[(0,t.jsx)("button",{type:"button",onClick:C,className:"text-sm font-medium text-accent hover:underline",children:"Cancel"}),(0,t.jsx)("button",{type:"button",disabled:!en,onClick:()=>{en&&(j(e,g,y,b),C())},className:(0,l.cn)("ml-auto inline-flex h-10 min-h-10 shrink-0 items-center justify-center px-6 text-[13px] font-semibold leading-none tracking-normal sm:h-11 sm:min-h-11 sm:px-6 sm:text-[14px]",en?o.exploreVehiclesShinyVisualClassName:"cursor-not-allowed rounded-[12px] border-none bg-[#f0f0f0] text-[#b0b0b0]"),children:E})]})]})}])},26489,e=>{"use strict";let t="hirenride_search_vehicle_type",i="hnr:search-vehicle-type-changed";e.s(["SEARCH_VEHICLE_TYPE_CHANGED_EVENT",0,i,"readSearchVehicleType",0,function(){try{let e=sessionStorage.getItem(t);if("bike"===e||"car"===e)return e;return null}catch{return null}},"saveSearchVehicleType",0,function(e){try{sessionStorage.setItem(t,e)}catch{}window.dispatchEvent(new CustomEvent(i,{detail:e}))}])},89952,e=>{"use strict";var t=e.i(71645),i=e.i(67798),a=e.i(94268),n=e.i(88194);e.s(["useSyncTripSchedule",0,function({schedule:e,onScheduleChange:r,vehicleType:s="",locationId:l,enabled:o=!0}){let{businessHours:c,isResolved:d,isLocationScoped:u}=(0,n.useBusinessHours)({vehicleType:s,locationId:l,enabled:o}),m=(0,t.useRef)("");(0,t.useEffect)(()=>
1{if(!o||!d||!u||!e.pickupDate&&!e.returnDate)return;let t=(0,i.syncTripScheduleToBusinessRules)({pickup:e.pickupDate,returnDate:e.returnDate,pickupTime:e.pickupTime,returnTime:e.returnTime},c),n={pickupDate:t.pickup,returnDate:t.returnDate,pickupTime:t.pickupTime,returnTime:t.returnTime},s=JSON.stringify(n);if(s!==m.current){if(e.pickupDate===n.pickupDate&&e.returnDate===n.returnDate&&e.pickupTime===n.pickupTime&&e.returnTime===n.returnTime){m.current=s;return}m.current=s,r(n),(0,a.saveSearchDateSelection)(t)}},[c,o,u,d,r,e.pickupDate,e.pickupTime,e.returnDate,e.returnTime])}])},52793,e=>{"use strict";let t=/^\/vehicle\/[^/]+$/,i=/^\/vehicle\/[^/]+\/checkout\/?$/,a="/__ssgoi_skip__";e.s(["isVehicleCheckoutPath",0,function(e){return i.test(e)},"isVehicleDetailPath",0,function(e){return t.test(e)},"ssgoiVehicleCardMiddleware",0,function(e,t){return{from:a,to:a}}])},84614,e=>{"use strict";let t=(0,e.i(75254).default)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],84614)},92270,17391,e=>{"use strict";let t=(0,e.i(75254).default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);async function i(e,t=400,a=.82){let n=URL.createObjectURL(e);try{let e=await new Promise((e,t)=>{let i=new Image;i.onload=()=>e(i),i.onerror=()=>t(Error("Could not load image")),i.src=n}),i=Math.min(1,t/Math.max(e.width,e.height)),r=Math.round(e.width*i),s=Math.round(e.height*i),l=document.createElement("canvas");l.width=r,l.height=s;let o=l.getContext("2d");if(!o)throw Error("Could not process image");return o.drawImage(e,0,0,r,s),l.toDataURL("image/jpeg",a)}finally{URL.revokeObjectURL(n)}}e.s(["LogOut",0,t],92270),e.s(["compressProfileImage",0,i,"formatProfilePhone",0,function(e){let t=e.replace(/\D/g,"");return 10===t.length?`+91 ${t.slice(0,5)} ${t.slice(5)}`:12===t.length&&t.startsWith("91")?`+91 ${t.slice(2,7)} ${t.slice(7)}`:e},"getProfileDisplayName",0,function(e){return[e.firstName,e.lastName].filter(Boolean).join(" ").trim()||"Guest"}],17391)},91834,e=>{"use strict";var t=e.i(71645);e.s(["useOtpInput",0,function({length:e=6,onComplete:i,onDigitChange:a}={}){let[n,r]=(0,t.useState)(()=>Array(e).fill("")),s=(0,t.useRef)([]),l=(0,t.useRef)(i),o=(0,t.useRef)(a);l.current=i,o.current=a;let c=(0,t.useCallback)(()=>{r(Array(e).fill(""))},[e]),d=(0,t.useCallback)(e=>{s.current[e]?.focus()},[]),u=(0,t.useCallback)(()=>{d(0)},[d]),m=(0,t.useCallback)(t=>{let i=t.join("");t.every(Boolean)&&i.length===e&&l.current?.(i)},[e]),h=(0,t.useCallback)((t,i)=>{let a=i.replace(/\D/g,"");a&&(o.current?.(),r(i=>{let n=[...i],r=t;for(let t of a){if(r>=e)break;n[r]=t,r+=1}let s=Math.min(r,e-1);return queueMicrotask(()=>d(s)),queueMicrotask(()=>m(n)),n}))},[d,e,m]),p=(0,t.useCallback)((t,i)=>{let a=i.replace(/\D/g,"");a.length>1?h(t,a):(o.current?.(),r(i=>{let n=[...i];return n[t]=a,a&&t<e-1&&queueMicrotask(()=>d(t+1)),queueMicrotask(()=>m(n)),n}))},[h,d,e,m]),x=(0,t.useCallback)((e,t)=>{"Backspace"===t.key&&r(i=>{if(i[e])return i;if(e>0){t.preventDefault();let a=[...i];return a[e-1]="",queueMicrotask(()=>d(e-1)),o.current?.(),a}return i})},[d]),f=(0,t.useCallback)((e,t)=>{t.preventDefault(),h(e,t.clipboardData.getData("text"))},[h]),g=(0,t.useCallback)(e=>({ref:t=>{s.current[e]=t},type:"text",inputMode:"numeric",autoComplete:0===e?"one-time-code":"off",maxLength:1,value:n[e],onChange:t=>p(e,t.target.value),onKeyDown:t=>x(e,t),onPaste:t=>f(e,t)}),[n,p,x,f]);return{digits:n,setDigits:r,reset:c,inputRefs:s,focusFirst:u,getInputProps:g}}])},37727,e=>{"use strict";let t=(0,e.i(75254).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],37727)},88653,e=>{"use strict";e.i(47167);var t=e.i(43476),i=e.i(71645),a=e.i(31178),n=e.i(47414),r=e.i(74008),s=e.i(21476),l=e.i(72846),o=i,c=e.i(37806);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,l.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,
1i=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,a=(0,l.isHTMLElement)(e)&&e.offsetHeight||0,n=getComputedStyle(t),r=this.props.sizeRef.current;r.height=parseFloat(n.height),r.width=parseFloat(n.width),r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left,r.bottom=a-r.height-r.top,r.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:a,anchorX:n,anchorY:r,root:s,pop:l}){let h=(0,o.useId)(),p=(0,o.useRef)(null),x=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:f}=(0,o.useContext)(c.MotionConfigContext),g=function(...e){return i.useCallback(function(...e){return t=>{let i=!1,a=e.map(e=>{let a=d(e,t);return i||"function"!=typeof a||(i=!0),a});if(i)return()=>{for(let t=0;t<a.length;t++){let i=a[t];"function"==typeof i?i():d(e[t],null)}}}}(...e),e)}(p,!1!==l?e.props?.ref??e?.ref:void 0);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:o,right:c,bottom:d,direction:u}=x.current;if(a||!1===l||!p.current||!e||!t)return;let m="rtl"===u,g="left"===n?m?`right: ${c}`:`left: ${o}`:m?`left: ${o}`:`right: ${c}`,y="bottom"===r?`bottom: ${d}`:`top: ${i}`;p.current.dataset.motionPopId=h;let b=document.createElement("style");f&&(b.nonce=f);let v=s??document.head;return v.appendChild(b),b.sheet&&b.sheet.insertRule(`
2          [data-motion-pop-id="${h}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${t}px !important;
6            ${g}px !important;
7            ${y}px !important;
8          }
9        `),()=>{p.current?.removeAttribute("data-motion-pop-id"),v.contains(b)&&v.removeChild(b)}},[a]),(0,t.jsx)(u,{isPresent:a,childRef:p,sizeRef:x,pop:l,children:!1===l?e:o.cloneElement(e,{ref:g})})}let h=({children:e,initial:a,isPresent:l,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:u,anchorX:h,anchorY:x,root:f})=>{let g=(0,n.useConstant)(p),y=(0,i.useId)(),b=(0,i.useRef)(l),v=(0,i.useRef)(o);(0,r.useIsomorphicLayoutEffect)(()=>{b.current=l,v.current=o});let k=!0,N=(0,i.useMemo)(()=>(k=!1,{id:y,initial:a,isPresent:l,custom:c,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>{g.delete(e),b.current||g.size||v.current?.()})}),[l,g,o]);return d&&k&&(N={...N}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[l]),i.useEffect(()=>{l||g.size||!o||o()},[l]),e=(0,t.jsx)(m,{pop:"popLayout"===u,isPresent:l,anchorX:h,anchorY:x,root:f,children:e}),(0,t.jsx)(s.PresenceContext.Provider,{value:N,children:e})};function p(){return new Map}var x=e.i(64978);let f=e=>e.key||"";function g(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:s,initial:l=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:m="left",anchorY:p="top",root:y})=>{let[b,v]=(0,x.usePresence)(u),k=(0,i.useMemo)(()=>g(e),[e]),N=u&&!b?[]:k.map(f),w=(0,i.useRef)(!0),j=(0,i.useRef)(k),C=(0,n.useConstant)(()=>new Map),_=(0,i.useRef)(new Set),[E,S]=(0,i.useState)(k),[R,A]=(0,i.useState)(k);(0,r.useIsomorphicLayoutEffect)(()=>{w.current=!1,j.current=k;for(let e=0;e<R.length;e++){let t=f(R[e]);N.includes(t)?(C.delete(t),_.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[R,N.length,N.join("-")]);let D=[];if(k!==E){let e=[...k];for(let t=0;t<R.length;t++){let i=R[t],a=f(i);N.includes(a)||(e.splice(t,0,i),D.push(i))}return"wait"===d&&D.length&&(e=D),A(g(e)),S(k),null}let{forceRender:T}=(0,i.useContext)(a.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:R.map(e=>{let i=f(e),a=(!u||!!b)&&(k===R||N.includes(i));return(0,t.jsx)(h,{isPresent:a,initial:(!w.current||!!l)&&void 0,custom:s,presenceAffectsLayout:c,mode:d,root:y,onExitComplete:a?void 0:()=>{if(_.current.has(i)||!C.has(i))return;_.current.add(i),C.set(i,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(T?.(),A(j.current),u&&v?.(),o&&o())},anchorX:m,anchorY:p,children:e},i)})})}],88653)},81418,e=>{"use strict";let t=(0,e.i(75254).default)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
9y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],81418)},98919,e=>{"use strict";let t=(0,e.i(75254).default)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",0,t],98919)},88699,e=>{"use strict";let t=(0,e.i(75254).default)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],88699)},29314,e=>{"use strict";var t=e.i(43476),i=e.i(71645),a=e.i(74080),n=e.i(46932),r=e.i(88653),s=e.i(91834),l=e.i(22016),o=e.i(72520),c=e.i(3116),d=e.i(31278),u=e.i(88699),m=e.i(98919),h=e.i(81418);let p=(0,e.i(75254).default)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);var x=e.i(37727),f=e.i(75157),g=e.i(90786),y=e.i(75786),b=e.i(67825),v=e.i(43174),k=e.i(57873),N=e.i(25806);function w(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",className:"shrink-0","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"#25D366",d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.884 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})})}function j({onSuccess:e,onClose:a,className:n,showLegalFooter:r=!1}){let C=(0,y.useAppDispatch)(),[_,E]=(0,i.useState)("phone"),[S,R]=(0,i.useState)(""),[A,D]=(0,i.useState)(null),[T,L]=(0,i.useState)(null),[I,P]=(0,i.useState)(!1),[M,H]=(0,i.useState)(0);(0,i.useEffect)(()=>{if(M<=0)return;let e=window.setInterval(()=>{H(e=>e>0?e-1:0)},1e3);return()=>window.clearInterval(e)},[M]);let O=(0,i.useRef)(async()=>{}),{digits:$,reset:B,focusFirst:W,getInputProps:U}=(0,s.useOtpInput)({onComplete:e=>O.current(e),onDigitChange:()=>D(null)}),G=(0,i.useCallback)(async t=>{P(!0),D(null),L(null);try{let{token:i,user:a}=await (0,v.loginCustomer)(S,t),n=(0,v.persistAuthSession)(i,a,S);C((0,b.setAuthSession)({token:i,user:n})),(0,k.trackGa4Login)({method:"phone"}),(0,N.trackMetaCompleteRegistration)({method:"phone"}),e?.()}catch(e){D(e instanceof Error?e.message:"Login failed. Try again."),B(),W()}finally{P(!1)}},[C,W,e,S,B]);(0,i.useEffect)(()=>{O.current=G},[G]),(0,i.useEffect)(()=>{"otp"===_&&window.setTimeout(()=>W(),100)},[W,_]);let z=async e=>{let t=e.trim();if(t.includes("@"))return D("Email login is coming soon. Please use your phone number."),!1;let i=t.replace(/\D/g,"").slice(-10);if(!/^[6-9]\d{9}$/.test(i))return D("Enter a valid 10-digit phone number"),!1;P(!0),D(null),L(null);try{let e=await (0,v.sendCustomerLoginOtp)(i);if(!1===e.success)throw Error(e.message||"Failed to send OTP");return R(i),E("otp"),B(),H(30),L("We've sent your verification code to WhatsApp."),!0}catch(e){return D(e instanceof Error?e.message:"Failed to send OTP"),!1}finally{P(!1)}},F=async()=>{await z(S)},V=async()=>
9{if(!(M>0)){P(!0),D(null);try{let e=await (0,v.sendCustomerLoginOtp)(S);if(!1===e.success)throw Error(e.message||"Failed to resend OTP");B(),H(30),L("A new code has been sent."),W()}catch(e){D(e instanceof Error?e.message:"Could not resend OTP")}finally{P(!1)}}},K=(0,f.cn)(g.exploreVehiclesCtaClassName,"w-full sm:w-full disabled:cursor-not-allowed disabled:opacity-60"),q=a?(0,t.jsx)("button",{type:"button",onClick:a,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-accent transition-colors hover:bg-[#f7f7f7]","aria-label":"Close login",children:(0,t.jsx)(x.X,{className:"h-4 w-4",strokeWidth:2})}):null,X=(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-2.5",children:[(0,t.jsx)(h.ShieldCheck,{className:"h-3.5 w-3.5 text-primary",strokeWidth:2,"aria-hidden":!0}),(0,t.jsx)("span",{className:"text-xs text-accent",children:"Safe Rides"})]}),(0,t.jsx)("div",{className:"h-3.5 w-px bg-[#e0e0e0]","aria-hidden":!0}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-2.5",children:[(0,t.jsx)(c.Clock,{className:"h-3.5 w-3.5 text-primary",strokeWidth:2,"aria-hidden":!0}),(0,t.jsx)("span",{className:"text-xs text-accent",children:"On-time Pickup"})]}),(0,t.jsx)("div",{className:"h-3.5 w-px bg-[#e0e0e0]","aria-hidden":!0}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-2.5",children:[(0,t.jsx)(p,{className:"h-3.5 w-3.5 text-primary",strokeWidth:2,"aria-hidden":!0}),(0,t.jsx)("span",{className:"text-xs text-accent",children:"Best Prices"})]})]});return(0,t.jsxs)("div",{className:(0,f.cn)("flex flex-col gap-4 p-5",n),children:["phone"===_?(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#FFF4D6] px-3 py-1.5",children:[(0,t.jsx)(m.Shield,{className:"h-3.5 w-3.5 text-[#c9a000]",strokeWidth:2,"aria-hidden":!0}),(0,t.jsx)("span",{className:"text-sm font-medium text-[#c9a000]",children:"Let's get you started"})]}),q]}),(0,t.jsx)("h2",{className:"text-[22px] font-bold leading-tight text-accent",children:"Enter your mobile number"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex h-14 w-full items-center overflow-hidden rounded-xl border border-[#e0e0e0] transition-colors focus-within:border-accent",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-r border-[#e0e0e0] px-3","aria-hidden":!0,children:[(0,t.jsx)("span",{className:"text-base leading-none",children:"🇮🇳"}),(0,t.jsx)("span",{className:"text-base font-medium text-accent",children:"+91"})]}),(0,t.jsx)("input",{id:"login-phone",type:"text",inputMode:"tel",autoComplete:"tel email",placeholder:"Mobile number",value:S,onChange:e=>{R(e.target.value),D(null)},onKeyDown:e=>{"Enter"===e.key&&F()},className:"min-w-0 flex-1 bg-transparent px-4 text-base text-accent outline-none placeholder:text-muted"})]}),(A||T)&&(0,t.jsx)("p",{className:(0,f.cn)("text-sm",A?"text-rose-600":"text-muted"),children:A??T})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(w,{}),(0,t.jsx)("p",{className:"text-left text-sm leading-snug text-muted",children:"We'll send a secure OTP to your WhatsApp in just a few seconds."})]}),(0,t.jsx)("button",{type:"button",disabled:I,onClick:()=>void F(),className:K,children:I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Loader2,{className:(0,f.cn)(g.exploreVehiclesCtaIconClassName,"animate-spin")}),"Continuing..."]}):(0,t.jsxs)(t.Fragment,{children:["Continue",(0,t.jsx)(o.ArrowRight,{className:g.exploreVehiclesCtaIconClassName,strokeWidth:2,"aria-hidden":!0})]})}),X]}):(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{className:"text-[22px] font-bold leading-tight text-accent",children:"Confirm your number"}),q]}),(0,t.jsxs)("p",{className:"text-sm text-muted",children:["Enter the code sent to"," ",(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center justify-center gap-1.5",children:[(0,t.jsxs)("span",{className:"font-semibold text-accent",children:["+91 ",S]}),(0,t.jsxs)("button",{type:"button",onClick:()=>{E("phone"),B(),D(null),L(null)},className:"inline-flex items-center gap-1 font-semibold text-primary underline-offset-2 hover:underline",children:[(0,t.jsx)(u.Pencil,{className:"h-3.5 w-3.5",
9strokeWidth:2.25,"aria-hidden":"true"}),"Edit"]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("div",{className:"flex justify-center gap-2",children:$.map((e,i)=>(0,t.jsx)("input",{...U(i),className:(0,f.cn)("h-12 w-11 rounded-xl border border-[#e0e0e0] text-center text-[18px] font-semibold text-accent outline-none focus:border-accent",A&&"border-rose-400"),"aria-label":`OTP digit ${i+1}`},i))}),(A||T)&&(0,t.jsx)("p",{className:(0,f.cn)("text-center text-sm",A?"text-rose-600":"text-muted"),children:A??T})]}),(0,t.jsx)("button",{type:"button",disabled:I||$.some(e=>!e),onClick:()=>void G($.join("")),className:K,children:I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Loader2,{className:(0,f.cn)(g.exploreVehiclesCtaIconClassName,"animate-spin")}),"Verifying..."]}):(0,t.jsxs)(t.Fragment,{children:["Continue",(0,t.jsx)(o.ArrowRight,{className:g.exploreVehiclesCtaIconClassName,strokeWidth:2,"aria-hidden":!0})]})}),(0,t.jsxs)("p",{className:"text-center text-sm text-muted",children:["Didn't get a code?"," ",(0,t.jsx)("button",{type:"button",onClick:()=>void V(),disabled:I||M>0,className:"font-semibold text-accent underline-offset-2 hover:underline disabled:opacity-50",children:M>0?`Resend in ${M}s`:"Resend"})]})]}),r&&(0,t.jsxs)("p",{className:"text-center text-xs leading-5 text-muted",children:["By continuing, you agree to our"," ",(0,t.jsx)(l.default,{href:"/terms-and-conditions",className:"font-medium text-[#c9a000] hover:underline",onClick:()=>a?.(),children:"Terms"})," ","and"," ",(0,t.jsx)(l.default,{href:"/privacy-policy",className:"font-medium text-[#c9a000] hover:underline",onClick:()=>a?.(),children:"Privacy Policy"})]})]})}var C=e.i(60418);e.s(["LoginModal",0,function({isOpen:e,onClose:s,onSuccess:l}){let[o,c]=(0,i.useState)(!1);(0,C.useScrollLock)(e),(0,i.useEffect)(()=>(document.documentElement.classList.toggle("login-modal-open",e),()=>{document.documentElement.classList.remove("login-modal-open")}),[e]),(0,i.useEffect)(()=>{c(!0)},[]),(0,i.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,s]);let d=(0,i.useCallback)(e=>{e.target===e.currentTarget&&s()},[s]),u=(0,i.useCallback)(()=>{l?.(),s()},[s,l]);return o?(0,a.createPortal)((0,t.jsx)(r.AnimatePresence,{mode:"wait",children:e&&(0,t.jsx)(n.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},className:"interactive-backdrop fixed inset-0 z-[110] flex items-center justify-center bg-black/50 px-3 py-4 sm:p-4",onClick:d,role:"dialog","aria-modal":"true","aria-label":"Log in or sign up","data-lenis-prevent":!0,children:(0,t.jsx)(n.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},className:"relative w-[calc(100%-1rem)] max-w-[460px] cursor-default overflow-hidden rounded-3xl bg-white shadow-[0_8px_28px_rgba(0,0,0,0.16)] sm:w-[calc(100%-3rem)]","data-lenis-prevent":!0,onClick:e=>e.stopPropagation(),children:(0,t.jsx)(j,{onSuccess:u,onClose:s,showLegalFooter:!0})})},"login-modal")}),document.body):null}],29314)},3408,e=>{"use strict";let t=(0,e.i(75254).default)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["default",0,t])},64101,e=>{"use strict";let t=(0,e.i(75254).default)("CarFront",[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]);e.s(["CarFront",0,t],64101)},43516,e=>{"use strict";let t=(0,e.i(75254).default)("Bus",[["path",{d:"M8 6v6",key:"18i7km"}],["path",{d:"M15 6v6",key:"1sg6z9"}],["path",{d:"M2 12h19.6",key:"de5uta"}],["path",{d:"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3",key:"1wwztk"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}]]);e.s(["Bus",0,t],43516)},66270,e=>{"use strict";let t=(0,e.i(75254).default)("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);e.s(["UtensilsCrossed",0,t],66270)},71689,e=>{"use strict";let t=(0,e.i(75254).default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],71689)},49280,e=>{e.v({className:"caveat_ec624b16-module__wpJM_a__className",variable:"caveat_ec624b16-module__wpJM_a__variable"})},67944,e=>{"use strict";var t=e.i(43476),i=e.i(22016),a=e.i(46932),n=e.i(72328),r=e.i(71689),s=e.i(97426),l=e.i(49280);let o={className:l.default.className,style:{fontFamily:"'Caveat', 'Caveat Fallback'",fontWeight:700,fontStyle:"normal"}};null!=l.default.variable&&(o.variable=l.default.variable);var c=e.i(75157);let d=[.22,1,.36,1];function u({reduceMotion:e}){return(0,t.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 blur-3xl",style:{background:"radial-gradient(ellipse 70% 60% at 50% 50%, rgba(247,203,70,0.2) 0%, transparent 70%)"}}),(0,t.jsxs)("div",{className:"relative inline-flex items-center justify-center",children:[(0,t.jsx)("div",{className:"flex items-end",children:["4","0","4"].map((i,n)=>(0,t.jsx)(a.motion.span,{initial:e?{opacity:1,y:0}:{opacity:0,y:32,rotate:1===n?-6:0===n?4:-3},animate:{opacity:1,y:0,rotate:0},transition:e?{duration:0}:{delay:.1*n,type:"spring",stiffness:120,damping:14},className:"select-none bg-gradient-to-b from-[#fff8d6] via-primary to-[#c9a020] bg-clip-text text-[clamp(4.5rem,18vw,7.5rem)] font-bold leading-none tracking-[-0.06em] text-transparent",children:i},`${i}-${n}`))}),(0,t.jsx)(a.motion.span,{initial:e?{opacity:1}:{opacity:0,rotate:-10},animate:{opacity:1,rotate:8},transition:e?{duration:0}:{delay:.4,duration:.5,ease:d},className:(0,c.cn)("absolute -right-2 -top-1 hidden whitespace-nowrap text-lg font-bold text-primary sm:-right-6 sm:-top-2 sm:block sm:text-2xl",o.className),children:"Wrong turn!"})]}),(0,t.jsx)(a.motion.span,{initial:e?{opacity:1}:{opacity:0,y:6}
9,animate:{opacity:1,y:0},transition:e?{duration:0}:{delay:.4,duration:.45,ease:d},className:(0,c.cn)("mt-2 text-lg font-bold text-primary sm:hidden",o.className),children:"Wrong turn!"})]})}e.s(["NotFoundPage",0,function(){let e=(0,n.useReducedMotion)();return(0,t.jsx)("main",{className:"bg-black",children:(0,t.jsx)("section",{className:"relative flex min-h-[calc(100svh-var(--header-visual-height,76px))] items-center justify-center overflow-hidden bg-black",children:(0,t.jsxs)("div",{className:"relative z-10 flex w-full max-w-2xl flex-col items-center justify-center px-4 py-12 text-center sm:py-16",children:[(0,t.jsx)(a.motion.div,{initial:e?{opacity:1}:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,ease:d},className:"mx-auto h-28 w-28 sm:h-36 sm:w-36",children:(0,t.jsx)(s.DotLottieReact,{src:"https://lottie.host/8cf4ba71-e5fb-44f3-8134-178c4d389417/0CCsdcgNIP.json",loop:!0,autoplay:!0,style:{width:"100%",height:"100%"}})}),(0,t.jsxs)(a.motion.div,{initial:e?{opacity:1}:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.08,duration:.5,ease:d},className:"mt-5 inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/5 px-4 py-1.5 text-[11px] font-semibold uppercase tracking-[0.16em] text-white",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-primary","aria-hidden":!0}),"Error 404"]}),(0,t.jsx)("div",{className:"mt-4 sm:mt-5",children:(0,t.jsx)(u,{reduceMotion:!!e})}),(0,t.jsx)(a.motion.h1,{initial:e?{opacity:1}:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.18,duration:.5,ease:d},className:"mt-6 text-[22px] font-semibold leading-tight text-white sm:text-[26px]",children:"Page not found"}),(0,t.jsxs)(a.motion.div,{initial:e?{opacity:1}:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.22,duration:.5,ease:d},className:"mt-3 max-w-lg space-y-1",children:[(0,t.jsx)("p",{className:"text-[15px] leading-relaxed text-white/90 sm:text-base",children:"Looks like the page you are looking for does not exist or may have been moved."}),(0,t.jsx)("p",{className:"text-[15px] leading-relaxed text-white/90 sm:text-base",children:"Let's get you back on track."})]}),(0,t.jsx)(a.motion.div,{initial:e?{opacity:1}:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.3,duration:.55,ease:d},className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row sm:gap-4",children:(0,t.jsxs)(i.default,{href:"/",className:(0,c.cn)("inline-flex min-w-[200px] items-center justify-center gap-2 rounded-[12px] border border-white/25 bg-transparent px-6 py-3 text-[14px] font-semibold text-white transition-colors hover:border-white/40 hover:bg-white/5 sm:text-[15px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:ring-offset-2 focus-visible:ring-offset-black"),children:[(0,t.jsx)(r.ArrowLeft,{className:"h-4 w-4","aria-hidden":!0}),"Back to Home"]})})]})})})}],67944)},70042,e=>{"use strict";e.s(["PICKER_DESTINATION_CARD_GRID_SIZES",0,"(max-width: 640px) 45vw, (max-width: 1024px) 30vw, 25vw","PICKER_DESTINATION_CARD_IMAGE",0,"absolute inset-0 h-full w-full object-cover object-bottom transition-transform duration-500 group-hover:scale-[1.03]","PICKER_DESTINATION_CARD_LABEL",0,"mt-2 truncate text-[14px] font-semibold leading-[18px] text-accent sm:text-[15px] sm:leading-[19px]","PICKER_DESTINATION_CARD_SHELL",0,"group relative block aspect-[3/2] w-full min-w-0 overflow-hidden rounded-[16px] bg-[#0b0f17] text-left","PICKER_DESTINATION_CARD_SIZES",0,"(max-width: 640px) 180px, (max-width: 768px) 200px, 220px","PICKER_DESTINATION_CARD_SKELETON",0,"aspect-[3/2] min-w-0 animate-pulse overflow-hidden rounded-[16px] bg-[#eeeeee]","PICKER_DESTINATION_CAROUSEL_CARD_WIDTH",0,"w-[180px] shrink-0 sm:w-[200px] md:w-[220px]","PICKER_DESTINATION_CAROUSEL_CARD_WIDTH_PX",0,220,"PICKER_DESTINATION_CAROUSEL_GAP_PX",0,12])},40466,e=>{"use strict";var t=e.i(43476),i=e.i(71645),a=e.i(57688),n=e.i(18566),r=e.i(73375),s=e.i(63059),l=e.i(46897),o=e.i(34858),c=e.i(55436),d=e.i(37727),u=e.i(75157),m=e.i(60418),h=e.i(73860),p=e.i(25806),x=e.i(75786),f=e.i(92401),g=e.i(80482),y=e.i(61399),b=e.i(42705),v=e.i(78308),k=e.i(70042);let N=k.PICKER_DESTINATION_CAROUSEL_GAP_PX,w="duration-[380ms] ease-[cubic-bezier(0.32,0.72,0,1)]";function j({direction:e,onClick:i,disabled:a=!1,label:n}
9){let l="left"===e?r.ChevronLeft:s.ChevronRight;return(0,t.jsx)("button",{type:"button",onClick:i,disabled:a,"aria-label":n,className:"hidden h-7 w-7 shrink-0 items-center justify-center rounded-full border border-[#dddddd] bg-white text-accent shadow-[0_1px_2px_rgba(0,0,0,0.04)] transition-all duration-200 hover:border-[#cccccc] hover:bg-[#f7f7f7] hover:shadow-[0_2px_8px_rgba(0,0,0,0.06)] active:scale-95 disabled:pointer-events-none disabled:opacity-35 sm:flex",children:(0,t.jsx)(l,{className:"h-3.5 w-3.5",strokeWidth:2.25})})}function C(){return(0,t.jsx)("div",{className:k.PICKER_DESTINATION_CARD_SKELETON,"aria-hidden":!0})}function _({region:e,onSelect:i}){return(0,t.jsxs)("button",{type:"button",onClick:i,"aria-label":`Explore ${e.name}`,className:k.PICKER_DESTINATION_CARD_SHELL,children:[e.image?(0,t.jsx)(a.default,{src:e.image,alt:e.name,width:500,height:350,className:k.PICKER_DESTINATION_CARD_IMAGE,sizes:k.PICKER_DESTINATION_CARD_SIZES}):null,(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-[55%] bg-gradient-to-t from-black/75 via-black/35 to-transparent","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 z-10 flex items-end justify-between gap-2 p-2.5 sm:p-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-1",children:[(0,t.jsx)(l.MapPin,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-white drop-shadow",strokeWidth:2.25,"aria-hidden":"true"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-[14px] font-semibold leading-[18px] text-white [text-shadow:0_1px_8px_rgba(0,0,0,0.65)] sm:text-[15px] sm:leading-[19px]",children:e.name}),(0,t.jsxs)("p",{className:"mt-0.5 whitespace-normal text-[11px] leading-[14px] text-white [text-shadow:0_1px_6px_rgba(0,0,0,0.55)] sm:text-[12px] sm:leading-[15px]",children:[e.destinationCount,"+ Destinations"]})]})]}),(0,t.jsx)(s.ChevronRight,{className:"mb-0.5 h-4 w-4 shrink-0 text-white drop-shadow transition-transform duration-200 group-hover:translate-x-0.5",strokeWidth:2.25,"aria-hidden":"true"})]})]})}function E({item:e,onSelect:i}){return(0,t.jsxs)("button",{type:"button","data-destination-card":!0,onClick:()=>i(e),"aria-label":e.name,className:k.PICKER_DESTINATION_CARD_SHELL,children:[e.image?(0,t.jsx)(a.default,{src:e.image,alt:`${e.name} — scenic destination`,width:500,height:350,className:k.PICKER_DESTINATION_CARD_IMAGE,sizes:k.PICKER_DESTINATION_CARD_SIZES}):null,(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-[45%] bg-gradient-to-t from-black/70 via-black/25 to-transparent","aria-hidden":"true"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-10 p-2.5 sm:p-3",children:(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1",children:[(0,t.jsx)(l.MapPin,{className:"h-3.5 w-3.5 shrink-0 text-white drop-shadow",strokeWidth:2.25,"aria-hidden":"true"}),(0,t.jsx)("p",{className:"truncate text-[14px] font-semibold leading-[18px] text-white [text-shadow:0_1px_8px_rgba(0,0,0,0.65)] sm:text-[15px] sm:leading-[19px]",children:e.name})]})})]})}e.s(["default",0,function(){let e=(0,x.useAppDispatch)(),a=(0,n.usePathname)(),{applySelectedLocation:s,persistSelectedLocation:S}=(0,h.useApplySelectedLocation)(),{hasSelectedLocation:R,isHydrated:A,pickerOpen:D}=(0,h.useSelectedLocation)(),T=(0,g.isLocationLandingPath)(a),L=(0,i.useCallback)(()=>{e((0,f.closeLocationPicker)())},[e]),[I,P]=(0,i.useState)(!0),[M,H]=(0,i.useState)([]),[O,$]=(0,i.useState)([]),[B,W]=(0,i.useState)([]),[U,G]=(0,i.useState)(!1),[z,F]=(0,i.useState)(null),[V,K]=(0,i.useState)(""),[q,X]=(0,i.useState)(!1),[Y,Z]=(0,i.useState)(null),[J,Q]=(0,i.useState)(null),ee=(0,i.useRef)(null),et=(0,i.useRef)(null),ei=(0,i.useRef)(null),[ea,en]=(0,i.useState)(!1),[er,es]=(0,i.useState)(!1),[el,eo]=(0,i.useState)(!1),[ec,ed]=(0,i.useState)(!1),[eu,em]=(0,i.useState)(!1),[eh,ep]=(0,i.useState)(!1),ex=(0,i.useRef)(null),ef=(0,i.useRef)(null),eg=(0,i.useRef)(null),ey=B[0]??M[0]??null;(0,m.useScrollLock)(D);let eb=(0,i.useCallback)(e=>{Q(e),Z(e)},[]),ev=(0,i.useCallback)(()=>{Z(null)},[]);(0,i.useEffect)(()=>
9{if(Y||!J)return;let e=window.setTimeout(()=>{Q(null)},380);return()=>window.clearTimeout(e)},[Y,J]),(0,i.useEffect)(()=>{if(!A||R||T)return;let t=window.setTimeout(()=>{e((0,f.openLocationPicker)({dismissible:!1}))},2e3);return()=>window.clearTimeout(t)},[e,R,A,T]),(0,i.useEffect)(()=>{if(!A)return;let e=!1;return(0,b.getLocationPickerData)().then(t=>{e||(H(t.allDestinations),$(t.regions.filter(e=>e.image||e.destinationCount>0)),W(t.popularDestinations))}).catch(()=>{e||(H([]),$([]),W([]))}).finally(()=>{e||P(!1)}),()=>{e=!0}},[A]),(0,i.useEffect)(()=>{D||(K(""),X(!1),Z(null),Q(null))},[D]),(0,i.useEffect)(()=>{if(!q)return;let e=e=>{ee.current?.contains(e.target)||X(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[q]);let ek=(0,i.useCallback)(e=>{s(e),G(!1)},[s]),eN=(0,i.useCallback)(e=>{let t=e.name.trim();ek({id:Number(e.id),name:t,lat:String(e.lat),long:String(e.long),pickupDefinedBy:"hub"}),(0,p.trackMetaFindLocation)({city:t})},[ek]),ew=(0,i.useCallback)(()=>{if(R)return void L();if(ey){s({id:Number(ey.id),name:ey.name.trim(),lat:String(ey.lat),long:String(ey.long),pickupDefinedBy:"hub"},{navigate:!1}),G(!1);return}L()},[s,L,ey,R]);(0,i.useEffect)(()=>{if(!D)return;let e=e=>{if("Escape"===e.key){if(Y)return void ev();ew()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[D,Y,ev,ew]);let ej=(0,i.useMemo)(()=>{let e;return(e=V.trim().toLowerCase())?M.filter(t=>{let i=(t.name??"").toLowerCase(),a=(t.subtitle??"").toLowerCase();return i.includes(e)||a.includes(e)}):M},[V,M]),eC=(0,i.useCallback)(e=>{eN(e),K(""),X(!1)},[eN]),e_=(0,i.useCallback)(()=>{navigator.geolocation?(F(null),G(!0),navigator.geolocation.getCurrentPosition(e=>{let t=e.coords.latitude,i=e.coords.longitude;(async()=>{let e=await (0,v.fetchNearbyServiceLocation)(t,i),a={name:"Current location",lat:String(t),long:String(i),pickupDefinedBy:"gps",...e?{id:e.id}:{}};if(!e){F("No Hire N Ride hub near your current location. Pick a destination instead."),G(!1);return}ek(a),(0,y.reverseGeocodeCoordinates)(t,i).then(e=>{e&&S({...a,name:e})})})().catch(()=>{F("Could not check your location. Please try again."),G(!1)})},e=>{F(e.message||"Location permission denied."),G(!1)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:1e4})):F("Geolocation is not supported in this browser.")},[ek,S]),eE=I||U,eS=q&&V.trim().length>0,eR=(0,i.useCallback)(()=>{let e=et.current;if(!e)return;let{scrollLeft:t,scrollWidth:i,clientWidth:a}=e,n=i>a+1;eo(n),en(n&&t>4),es(n&&t+a<i-4)},[]),eA=(0,i.useCallback)(()=>{let e=ei.current;if(!e)return;let{scrollLeft:t,scrollWidth:i,clientWidth:a}=e,n=i>a+1;ep(n),ed(n&&t>4),em(n&&t+a<i-4)},[]),eD=(0,i.useCallback)(e=>{let t=et.current;if(!t)return;let i=t.querySelector("[data-carousel-card]"),a=i?.offsetWidth??k.PICKER_DESTINATION_CAROUSEL_CARD_WIDTH_PX,n="left"===e?-(a+k.PICKER_DESTINATION_CAROUSEL_GAP_PX):a+k.PICKER_DESTINATION_CAROUSEL_GAP_PX;t.scrollBy({left:n,behavior:"smooth"})},[]),eT=(0,i.useCallback)(e=>{let t=ei.current;if(!t)return;let i=t.querySelector("[data-region-carousel-card]"),a=(i?.offsetWidth??k.PICKER_DESTINATION_CAROUSEL_CARD_WIDTH_PX)*3+2*N;t.scrollBy({left:"left"===e?-a:a,behavior:"smooth"})},[]);(0,i.useLayoutEffect)(()=>{if(!D)return;eR();let e=et.current;if(!e)return;let t=new ResizeObserver(eR);return t.observe(e),()=>t.disconnect()},[D,I,B.length,eR]);let eL=(0,i.useMemo)(()=>O.find(e=>e.name===J)??null,[O,J]),eI=!!Y;return((0,i.useLayoutEffect)(()=>{if(!D||eI)return;eA();let e=ei.current;if(!e)return;let t=new ResizeObserver(eA);return t.observe(e),()=>t.disconnect()},[D,I,O.length,eI,eA]),(0,i.useLayoutEffect)(()=>{let e=ex.current;if(!e)return;if(!D){e.style.height="";return}let t=eI?eg.current:ef.current;t&&(e.style.height=`${Math.ceil(t.getBoundingClientRect().height)}px`)},[D,eI,J,eL,O,I]),D)?(0,t.jsx)("div",{className:"fixed inset-0 z-[200] overflow-y-auto bg-black/45 overscroll-contain",role:"dialog","aria-modal":"true","aria-label":"Select location","aria-busy":U,onMouseDown:e=>{e.target===e.currentTarget&&ew()},children:(0,t.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"flex w-full max-w-[900px] max-h-[calc(100dvh-2rem)] flex-col overflow-hidden rounded-3xl bg-white shadow-[0_22px_70px_rgba(0,0,0,0.28)]",onMouseDown:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-4 px-5 pb-4 pt-6 sm:px-8 sm:pb-5 sm:pt-8",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold tracking-[0.18em] text-primary",children:"BEFORE YOU BROWSE"}),(0,t.jsx)("h2",{className:"mt-2 text-balance break-words text-[22px] font-semibold leading-[1.2] tracking-[-0.01em] text-accent sm:text-[24px] lg:text-[26px]",children:"Where would you like to ride?"}),(0,t.jsx)("p",{className:"mt-2 max-w-[520px] text-[14px] leading-[19px] text-muted sm:text-[15px] sm:leading-[20px]",children:"Pick a destination and we'll show bikes, cars and pricing that are actually available there."})]}),(0,t.jsx)("button",{type:"button",className:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-[#e9e9e9] text-accent transition-colors hover:bg-[#f7f7f7] disabled:pointer-events-none disabled:opacity-40",onClick:ew,disabled:!R&&(I||!ey),"aria-label":R?"Close location picker":"Close and use the first destination",children:(0,t.jsx)(d.X,{className:"h-4 w-4"})})]}),(0,t.jsx)("div",{className:"shrink-0 px-5 pb-4 sm:px-8",children:(0,t.jsxs)("div",{ref:ee,className:"relative z-30",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-xl border border-[#e0e0e0] bg-white px-3 py-2.5 sm:gap-2.5 sm:px-4",children:[(0,t.jsx)(c.Search,{className:"h-4 w-4 shrink-0 text-muted",strokeWidth:2.25,"aria-hidden":"true"}),(0,t.jsx)("input",{type:"search",role:"combobox",value:V,onChange:e=>K(e.target.value),onFocus:()=>X(!0),placeholder:"Search for location",disabled:eE,className:"min-w-0 flex-1 bg-transparent text-[14px] leading-[18px] text-accent outline-none placeholder:text-[#a0a0a0] sm:text-[15px] sm:leading-[19px]","aria-label":"Search for location","aria-autocomplete":"list","aria-expanded":eS,"aria-controls":"location-picker-city-list","aria-haspopup":"listbox"}),(0,t.jsx)("button",{type:"button",onClick:e_,disabled:eE,className:(0,u.cn)("inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-[#e9e9e9] text-accent transition-colors hover:bg-[#f7f7f7]",eE&&"opacity-70"),"aria-label":"Use my current location",title:"Use my current location",children:(0,t.jsx)(o.Navigation,{className:"h-4 w-4"})})]}),eS?(0,t.jsx)("div",{id:"location-picker-city-list",className:"mt-2 w-full overflow-hidden rounded-xl border border-[#ebebeb] bg-white shadow-[0_8px_28px_rgba(0,0,0,0.12)]",role:"listbox","aria-label":"City suggestions",children:(0,t.jsx)("ul",{className:"max-h-[min(36vh,240px)] overflow-y-auto overscroll-contain py-1 sm:max-h-[min(40vh,280px)]","data-lenis-prevent":!0,children:0===ej.length?(0,t.jsx)("li",{className:"px-4 py-3 text-center text-[13px] text-muted sm:text-[14px]",children:"No locations foun
9d."}):ej.map(e=>(0,t.jsx)("li",{role:"option",children:(0,t.jsxs)("button",{type:"button",disabled:eE,onMouseDown:e=>e.preventDefault(),onClick:()=>eC(e),className:"flex w-full items-center gap-2.5 px-3 py-2.5 text-left text-[14px] leading-[18px] text-accent transition-colors hover:bg-[#f7f7f7] sm:px-4 sm:text-[15px] sm:leading-[19px]",children:[(0,t.jsx)(l.MapPin,{className:"h-4 w-4 shrink-0 text-muted",strokeWidth:2,"aria-hidden":"true"}),(0,t.jsx)("span",{children:e.name})]})},e.id))})}):null,z?(0,t.jsx)("p",{className:"mt-2 text-[12px] leading-[16px] text-[#c0392b] sm:text-[13px]",children:z}):null]})}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-5 pb-[max(1.25rem,env(safe-area-inset-bottom))] sm:px-8 sm:pb-7",children:(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("section",{"aria-labelledby":"popular-destinations-heading",children:[(0,t.jsx)("h3",{id:"popular-destinations-heading",className:"text-[17px] font-semibold leading-[22px] text-accent sm:text-[18px] sm:leading-[24px]",children:"Popular destinations"}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[el?(0,t.jsx)(j,{direction:"left",onClick:()=>eD("left"),disabled:!ea,label:"Scroll popular destinations left"}):null,(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("div",{ref:et,onScroll:eR,className:"hide-scrollbar flex flex-nowrap items-stretch gap-3 overflow-x-auto overflow-y-hidden overscroll-x-contain scroll-smooth py-1 touch-pan-x","aria-busy":I,children:I?Array.from({length:5}).map((e,i)=>(0,t.jsx)("div",{className:k.PICKER_DESTINATION_CAROUSEL_CARD_WIDTH,children:(0,t.jsx)(C,{})},`destination-skeleton-${i}`)):B.length>0?B.map(e=>(0,t.jsx)("div",{"data-carousel-card":!0,className:k.PICKER_DESTINATION_CAROUSEL_CARD_WIDTH,children:(0,t.jsx)(E,{item:e,onSelect:eN})},e.id)):(0,t.jsx)("p",{className:"w-full py-6 text-center text-[14px] text-muted",children:"No locations available right now."})})}),el?(0,t.jsx)(j,{direction:"right",onClick:()=>eD("right"),disabled:!er,label:"Scroll popular destinations right"}):null]})]}),(0,t.jsx)("section",{"aria-labelledby":"explore-by-region-heading",children:(0,t.jsx)("div",{ref:ex,className:(0,u.cn)("overflow-hidden transition-[height]",w),children:(0,t.jsxs)("div",{className:(0,u.cn)("flex w-full will-change-transform transition-transform",w,eI?"-translate-x-full":"translate-x-0"),children:[(0,t.jsxs)("div",{ref:ef,className:"w-full shrink-0","aria-hidden":eI,inert:!!eI||void 0,children:[(0,t.jsx)("h3",{id:"explore-by-region-heading",className:"text-[17px] font-semibold leading-[22px] text-accent sm:text-[18px] sm:leading-[24px]",children:"Explore by region"}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[eh?(0,t.jsx)(j,{direction:"left",onClick:()=>eT("left"),disabled:!ec,label:"Scroll regions left"}):null,(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("div",{ref:ei,onScroll:eA,className:"hide-scrollbar flex flex-nowrap items-stretch gap-3 overflow-x-auto overflow-y-hidden overscroll-x-contain scroll-smooth py-1 touch-pan-x","aria-busy":I,children:I?Array.from({length:4}).map((e,i)=>(0,t.jsx)("div",{className:k.PICKER_DESTINATION_CAROUSEL_CARD_WIDTH,children:(0,t.jsx)(C,{})},`region-skeleton-${i}`)):O.length>0?O.map(e=>(0,t.jsx)("div",{"data-region-carousel-card":!0,className:k.PICKER_DESTINATION_CAROUSEL_CARD_WIDTH,children:(0,t.jsx)(_,{region:e,onSelect:()=>eb(e.name)}
9)},e.name)):null})}),eh?(0,t.jsx)(j,{direction:"right",onClick:()=>eT("right"),disabled:!eu,label:"Scroll regions right"}):null]})]}),(0,t.jsx)("div",{ref:eg,className:"w-full shrink-0","aria-hidden":!eI,inert:!eI||void 0,children:eL?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("button",{type:"button",onClick:ev,className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-[#e9e9e9] text-accent transition-colors hover:bg-[#f7f7f7]","aria-label":"Back to regions",children:(0,t.jsx)(r.ChevronLeft,{className:"h-4 w-4",strokeWidth:2.25,"aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"truncate text-[14px] font-semibold leading-[18px] text-accent sm:text-[15px] sm:leading-[19px]",children:eL.name}),(0,t.jsxs)("p",{className:"text-[12px] leading-[15px] text-muted sm:text-[13px] sm:leading-[16px]",children:[eL.destinationCount,"+ destinations"]})]})]}),(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-3",children:eL.destinations.map(e=>(0,t.jsx)("div",{className:k.PICKER_DESTINATION_CAROUSEL_CARD_WIDTH,children:(0,t.jsx)(E,{item:e,onSelect:eN})},e.id))})]}):null})]})})})]})})]})})}):null}])},94149,e=>{e.v(t=>Promise.all(["static/chunks/2820s1tba_rux.js"].map(t=>e.l(t))).then(()=>t(8221)))}]);

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.