PageSourceSearch

https://gowheelo.com/_next/static/chunks/pages/checkout-d04645eb3032f96d.js

js gowheelo.com collected 2026-10-02 16:26:29 UTC 51,020 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{874:function(e,a,t){"use strict";var n=t(64836);a.Z=void 0;var i=n(t(64938)),s=t(85893),r=(0,i.default)([(0,s.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"},"0"),(0,s.jsx)("circle",{cx:"12",cy:"9",r:"2.5"},"1")],"LocationOnOutlined");a.Z=r},31812:function(e,a,t){"use strict";t.d(a,{Z:function(){return b}});var n=t(63366),i=t(87462),s=t(67294),r=t(36622),o=t(15391),c=t(94780),l=t(67074),d=t(45959),u=t(75084),m=t(90149),p=t(34867),h=t(1588);function getLoadingButtonUtilityClass(e){return(0,p.Z)("MuiLoadingButton",e)}let _=(0,h.Z)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]);var y=t(85893);let x=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],useUtilityClasses=e=>{let{loading:a,loadingPosition:t,classes:n}=e,s={root:["root",a&&"loading"],startIcon:[a&&`startIconLoading${(0,r.Z)(t)}`],endIcon:[a&&`endIconLoading${(0,r.Z)(t)}`],loadingIndicator:["loadingIndicator",a&&`loadingIndicator${(0,r.Z)(t)}`]},o=(0,c.Z)(s,getLoadingButtonUtilityClass,n);return(0,i.Z)({},n,o)},rootShouldForwardProp=e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e,g=(0,l.ZP)(u.Z,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,a)=>[a.root,a.startIconLoadingStart&&{[`& .${_.startIconLoadingStart}`]:a.startIconLoadingStart},a.endIconLoadingEnd&&{[`& .${_.endIconLoadingEnd}`]:a.endIconLoadingEnd}]})(({ownerState:e,theme:a})=>(0,i.Z)({[`& .${_.startIconLoadingStart}, & .${_.endIconLoadingEnd}`]:{transition:a.transitions.create(["opacity"],{duration:a.transitions.duration.short}),opacity:0}},"center"===e.loadingPosition&&{transition:a.transitions.create(["background-color","box-shadow","border-color"],{duration:a.transitions.duration.short}),[`&.${_.loading}`]:{color:"transparent"}},"start"===e.loadingPosition&&e.fullWidth&&{[`& .${_.startIconLoadingStart}, & .${_.endIconLoadingEnd}`]:{transition:a.transitions.create(["opacity"],{duration:a.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===e.loadingPosition&&e.fullWidth&&{[`& .${_.startIconLoadingStart}, & .${_.endIconLoadingEnd}`]:{transition:a.transitions.create(["opacity"],{duration:a.transitions.duration.short}),opacity:0,marginLeft:-8}})),j=(0,l.ZP)("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,a)=>{let{ownerState:t}=e;return[a.loadingIndicator,a[`loadingIndicator${(0,r.Z)(t.loadingPosition)}`]]}})(({theme:e,ownerState:a})=>(0,i.Z)({position:"absolute",visibility:"visible",display:"flex"},"start"===a.loadingPosition&&("outlined"===a.variant||"contained"===a.variant)&&{left:"small"===a.size?10:14},"start"===a.loadingPosition&&"text"===a.variant&&{left:6},"center"===a.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},"end"===a.loadingPosition&&("outlined"===a.variant||"contained"===a.variant)&&{right:"small"===a.size?10:14},"end"===a.loadingPosition&&"text"===a.variant&&{right:6},"start"===a.loadingPosition&&a.fullWidth&&{position:"relative",left:-10},"end"===a.loadingPosition&&a.fullWidth&&{position:"relative",right:-10})),N=s.forwardRef(function(e,a){let t=(0,d.Z)({props:e,name:"MuiLoadingButton"}),{children:s,disabled:r=!1,id:c,loading:l=!1,loadingIndicator:u,loadingPosition:p="center",variant:h="text"}=t,_=(0,n.Z)(t,x),N=(0,o.Z)(c),b=null!=u?u:(0,y.jsx)(m.Z,{"aria-labelledby":N,color:"inherit",size:16}),v=(0,i.Z)({},t,{disabled:r,loading:l,loadingIndicator:b,loadingPosition:p,variant:h}),k=useUtilityClasses(v),S=l?(0,y.jsx)(j,{className:k.loadingIndicator,ownerState:v,children:b}):null;return(0,y.jsxs)(g,(0,i.Z)({disabled:r||l,id:N,ref:a},_,{variant:h,classes:k,ownerState:v,children:["end"===v.loadingPosition?s:S,"end"===v.loadingPosition?S:s]}))});var b=N},62013:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return t(64792)}])},23364:function(e){"use strict";e.exports=function(e,a){var t=a.prototype,n=t.format;t.format=function(e){var a=this,t=this.$locale();if(!this.isValid())return n.bind(this)(e);var i=this.$utils(),s=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return t.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return t.ordinal(a.week(),"W");case"w":case"ww":return i.s(a.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(a.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===a.$H?24:a.$H),"k"===e?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return e}});return n.bind(this)(s)}}},64792:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return checkout}});var n=t(85893),i=t(52200),s=t(81506),r=t(90149),o=t(78945),c=t(9008),l=t.
1n(c),d=t(11163),u=t(67294),m=t(47149),p=t(83613),h=t(1921),_=t(12842),y=t(21535),x=t(79623),g=t(97583),j=t(25762),N=t.n(j),AddonSummary_AddonSummary=e=>{let{accessories:a,addonMap:t,checkoutPrices:i,quantity:s,setAddonMap:r}=e,o=(0,h.TL)(),c=(e=>{let a=(0,u.useRef)();return(0,u.useEffect)(()=>{a.current=e}),a.current})(s),modifyAddon=(e,a,n,i)=>{if(t[e].quantity+a>n&&i!==x.NM.TRIP){o((0,y.fz)({type:x.pC.WARNING,message:"You can't add more"}));return}r({...t,[e]:{quantity:0===t[e].quantity&&-1===a?0:t[e].quantity+a,price:t[e].price}})};return((0,u.useEffect)(()=>{if(c&&c<s)return;let e={};for(let n of a)e[n.id]={quantity:t[n.id].quantity>n.maxQuantityPerBike*s?n.maxQuantityPerBike*s:t[n.id].quantity,price:n.hub_accessories.prices[i.package]};r(e)},[s]),!a||a.length<=0)?null:(0,n.jsxs)("div",{className:N().container,children:[(0,n.jsxs)("div",{className:N().header,children:[(0,n.jsx)("div",{className:N().title,children:"Addons"}),(0,n.jsxs)("div",{className:N().note,children:[(0,n.jsx)("span",{children:"Note : "}),"Includes 1 complementary helmet per bike."]})]}),(0,n.jsx)("div",{className:N().addons,children:a.map(e=>{let a=e.hub_accessories.prices[i.package];return(0,n.jsxs)("div",{className:N().addon,children:[(0,n.jsx)("div",{className:N().name,children:e.name}),(0,n.jsxs)("div",{className:N().priceWrap,children:[a&&(0,n.jsxs)("div",{className:N().price,children:[(0,n.jsx)("span",{className:"rupee",children:"₹ "}),a," ",p.k_[i.package].unit]}),(0,n.jsxs)("div",{className:N().quantityBtn,children:[(0,n.jsx)("button",{onClick:()=>modifyAddon(e.id,-1,e.maxQuantityPerBike*s,e.hub_accessories.accessoryType),children:(0,n.jsx)("img",{src:p.Wn.MINUS_ICON,alt:"Subtract"})}),(0,n.jsx)("div",{className:N().quantity,children:t[e.id].quantity}),(0,n.jsx)("button",{onClick:()=>modifyAddon(e.id,1,e.maxQuantityPerBike*s,e.hub_accessories.accessoryType),children:(0,n.jsx)("img",{src:p.Wn.PLUS_ICON,alt:"Add"})})]})]})]},`accessory-${e.id}`)})})]})},b=t(75146),v=t.n(b),ApplyCoupon_ApplyCoupon=e=>{let{cart:a,coupon:t,couponList:i,paymentMode:s,setCoupon:r}=e,[o,c]=(0,u.useState)(!1),[l,d]=(0,u.useState)(""),m=(0,h.CG)(e=>e.root.city),_=(0,h.CG)(e=>e.user.userProfile),y=a.cartData.orderStart,j=a.cartData.orderEnd,toggleDropdown=e=>{g.nT.track("CHECKOUT_PAGE__APPLY_COUPON_CLICK",{..._&&{userData:_},cityName:m,pickupDate:(0,g.SB)(y??new Date),dropoffDate:(0,g.SB)(j??new Date),bikeName:`${a?.bikeData?.brand} ${a?.bikeData?.name}`,gohubName:a?.bikeData?.hubs?.[0]?.landmark,...t&&{couponCode:t?.code}}),c(e)},handleApplyCoupon=e=>{r(e),toggleDropdown(!1),d("")};return s===x.x6.OFFLINE||i.length<=0?null:(0,n.jsxs)("div",{className:v().container,children:[(0,n.jsx)("div",{className:`${v().header} ${t?"":v().pointer} ${o?v().active:""}`,onClick:()=>{t||toggleDropdown(!o)},children:t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:v().couponInfo,children:[(0,n.jsx)("span",{className:v().couponCode,children:t.code}),(0,n.jsx)("span",{className:v().couponDiscount,children:t.description})]}),(0,n.jsx)("button",{className:v().removeBtn,onClick:()=>r(null),children:"Remove"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{children:"Apply Coupons"}),(0,n.jsx)("button",{className:`${v().dropdownBtn} ${o?v().active:""}`,onClick:()=>toggleDropdown(!o),children:(0,n.jsx)("img",{src:p.Wn.CARET_GREEN,alt:"Caret Icon"})})]})}),o&&(0,n.jsxs)("ul",{className:v().dropdown,children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("div",{className:v().couponInfo,children:(0,n.jsx)("input",{type:"text",name:"custom-coupon",id:"custom-coupon",className:v().customCoupon,placeholder:"Type coupon code here",value:l,onChange:e=>d(e.target.value.toUpperCase())})}),(0,n.jsx)("button",{className:v().applyBtn,onClick:()=>handleApplyCoupon({code:l}),children:"Apply"})]},"dropdown-custom-coupon"),i.map((e,a)=>(0,n.jsxs)("li",{children:[(0,n.jsxs)("div",{className:v().couponInfo,children:[(0,n.jsx)("div",{className:v().couponCode,children:(0,n.jsx)("span",{className:v().code,children:e.code})}),(0,n.jsx)("div",{className:v().couponDiscount,title:e?.description,children:e?.description})]}),(0,n.jsx)("button",{className:`${v().applyBtn} ${e.offerType===x.m_.CUSTOM?v().hide:""}`,onClick:()=>handleApplyCoupon(e),children:"Apply"})]},`dropdown-item-${a}`))]})]})},k=t(45350),S=t(19154),f=t(66085),C=t.n(f);let D={container:e=>({...e,width:"100%"}),valueContainer:e=>({...e,borderRadius:0,padding:8}),control:e=>({...e,borderRadius:2,borderColor:"#EBEDEF",cursor:"pointer"}),menu:e=>({...e,zIndex:1003}),indicatorSeparator:()=>({})},DropdownIndicator=e=>(0,n.jsx)(k.c.DropdownIndicator,{...e,children:(0,n.jsx)("img",{src:p.Wn.CARET_GREEN,alt:"Dropdown Icon",style:{transform:"rotate(180deg)"}})});var BikeSummary_BikeSummary=e=>{let{bike:a,checkoutPrices:t,quantity:i,setQuantity:s}=e,r=(0,h.TL)(),o=(0,h.CG)(e=>e.bikeDetails.paymentMode),modifyQuantity=e=>{if(i+e>a.hubs[0].hub_bikes.quantity){r((0,y.fz)({type:x.pC.WARNING,message:"No more bikes available!"}));return}s(1===i&&-1===e?1:i+e)},changePaymentMode=e=>{e===x.x6.ONLINE?r((0,_.hL)(x.x6.ONLINE)):r((0,_.hL)(x.x6.PARTIAL))};return a?(0,n.jsxs)("div",{className:C().bikeSummary,children:[(0,n.jsxs)("div",{className:C().bikeDetails,children:[(0,n.jsx)("div",{className:C().bikeImg,children:(0,n.jsx)("img",{src:a.image,alt:`${a.brand} ${a.name}`})}),(0,n.jsxs)("div",{className:C().fareDetails,children:[(0,n.jsxs)("div",{className:C().bikeName,children:[a.brand," ",a.name]}),(0,n.jsxs)("div",{className:C().breakup,children:["Rent Amount :"," ",(0,n.jsxs)("span",{className:C().amount,children:["₹ ",t.totalPayableAmount]})," ",(0,n.jsx)("br",{}),"Refundable Deposit :"," ",(0,n.jsxs)("span",{className:C().amount,children:["₹ ",t.depositAmount??0]})]}),(0,n.jsxs)("div",{className:C().mobileBreakup,children:[(0,n.jsxs)("div",{className:C().price,children:[(0,n.jsx)("div",{className:C().title,children:"Rental"}),(0,n.jsxs)("div",{className:C().amount,children:["₹ ",t.totalPayableAmount]})]}),(0,n.jsx)("div",{children:"+"}),(0,n.jsxs)("div",{className:C().price,children:[(0,n.jsx)("div",{className:C().title,children:"Deposit"}),(0,n.jsxs)("div",{className:C().amount,children:["₹ ",t.depositAmount??0]})]})]}),(0,n.jsxs)("div",{className:C().quantityWrap,children:[(0,n.jsxs)("div",{className:C().quantityBtn,children:[(0,n.jsx)("button",{onClick:()=>modifyQuantity(-1),children:(0,n.jsx)("img",{src:p.Wn.MINUS_ICON,alt:"Subtract"})}),(0,n.jsx)("div",{className:C().quantity,children:i}),(0,n.jsx)("button",{onClick:()=>modifyQuantity(1),children:(0,n.jsx)("img",{src:p.Wn.PLUS_ICON,alt:"Add"})})]}
1),(a?.hubs?.[0]?.vendor?.paymentMode===x.Do.PREPAID_AND_POSTPAID||a?.hubs?.[0]?.vendor?.paymentMode===x.Do.ALL_ONLINE_AND_OFFLINE)&&(0,n.jsx)("div",{className:C().paymentMode,children:(0,n.jsx)(S.ZP,{placeholder:"Payment Mode",value:{label:o===x.x6.ONLINE?"Payment Mode : Full Payment":"Payment Mode : Partial Payment",value:o},options:[{label:"Payment Mode : Full Payment",value:x.x6.ONLINE},{label:"Payment Mode : Partial Payment",value:x.x6.PARTIAL}],onChange:e=>changePaymentMode(e?.value??""),styles:D,isSearchable:!1,components:{DropdownIndicator}})})]})]})]}),(a?.hubs?.[0]?.vendor?.paymentMode===x.Do.PREPAID_AND_POSTPAID||a?.hubs?.[0]?.vendor?.paymentMode===x.Do.ALL_ONLINE_AND_OFFLINE)&&(0,n.jsx)("div",{className:`${C().paymentMode} ${C().mobile}`,children:(0,n.jsx)(S.ZP,{placeholder:"Payment Mode",value:{label:o===x.x6.ONLINE?"Payment Mode : Full Payment":"Payment Mode : Partial Payment",value:o},options:[{label:"Payment Mode : Full Payment",value:x.x6.ONLINE},{label:"Payment Mode : Partial Payment",value:x.x6.PARTIAL}],onChange:e=>changePaymentMode(e?.value??""),styles:D,isSearchable:!1,components:{DropdownIndicator}})})]}):null},P=t(75158),L=t(75084),A=t(1097),I=t(84480),T=t.n(I),DeliverySummary_DeliverySummary=e=>{let{bike:a,setDeliveryData:t,deliveryCharge:i}=e,s=(0,h.TL)(),r=(0,h.CG)(e=>e.root.pickupDate),o=(0,h.CG)(e=>e.root.selectedLocation),c=(0,h.CG)(e=>e.root.city),l=!r||new Date(r).getTime()-Date.now()>=108e5,[d,m]=(0,u.useState)({active:!1,address:""}),[p,_]=(0,u.useState)(!1),[g,j]=(0,u.useState)(!1);return l?(0,n.jsxs)("div",{className:T().container,children:[(0,n.jsxs)("div",{className:T().checkboxWrap,children:[(0,n.jsx)(P.Z,{checked:d?.active,onClick:()=>m({...d,active:!d.active}),sx:{padding:0}}),(0,n.jsxs)("label",{htmlFor:"delivery-checkbox",children:[(0,n.jsx)("div",{className:T().title,children:"Doorstep Delivery"}),null!==i?(0,n.jsxs)("p",{children:["Delivery Charges Applicable :"," ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),i]}):(0,n.jsxs)(n.Fragment,{children:[!!a?.hubs?.[0]?.deliveryCharges?.upto05&&(0,n.jsxs)("p",{children:["Upto 5 kms : ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),a.hubs[0].deliveryCharges.upto05]}),!!a?.hubs?.[0]?.deliveryCharges?.upto10&&(0,n.jsxs)("p",{children:["Upto 10 kms : ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),a.hubs[0].deliveryCharges.upto10]}),!!a?.hubs?.[0]?.deliveryCharges?.upto20&&(0,n.jsxs)("p",{children:["Upto 20 kms : ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),a.hubs[0].deliveryCharges.upto20]}),(0,n.jsx)("p",{children:"Above 20 kms : Not Available"})]})]})]}),(0,n.jsxs)("div",{className:T().locationRow,children:[(0,n.jsx)("span",{className:T().locationLabel,children:o?o.label:"No location selected"}),(0,n.jsx)("button",{type:"button",className:T().changeLocationBtn,onClick:()=>j(!0),children:o?"Change Location":"Enter area, airport, landmark, or resort... (Optional)"})]}),(0,n.jsx)(A.default,{open:g,onClose:()=>j(!1),city:c||void 0}),d?.active&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:T().inputWrap,children:[(0,n.jsx)("input",{type:"text",name:"delivery-address",id:"delivery-address",value:d.address,onChange:e=>{m({...d,address:e.target.value}),_(!0)}}),(0,n.jsx)("label",{htmlFor:"delivery-address",children:"Delivery Address *"})]}),p&&(0,n.jsx)("div",{className:T().inputWrap,children:(0,n.jsx)(L.Z,{className:T().saveBtn,onClick:()=>{d?.address&&d?.address?.length>0?(t({...d,active:!0}),_(!1)):s((0,y.fz)({message:"Please enter valid delivery details.",type:x.pC.ERROR}))},disableElevation:!0,type:"button",variant:"contained",children:"Save"})})]}),(0,n.jsx)("div",{className:T().note,children:"Note - We require at least 3 hours ahead of booking time in case of deliveries. So please make the booking accordingly."})]}):null},w=t(23450),E=t.n(w),B=t(41514),M=t.n(B),FareSummary_FareSummary=e=>{let{bike:a,checkoutPrices:t,deliveryCharge:i}=e,s=a?.hubs?.[0],r=(0,h.CG)(e=>e.user.userProfile?.goCoins??0),o=(0,h.CG)(e=>e.bikeDetails.paymentMode),[c,l]=(0,u.useState)(!1),descriptionFromDiscount=e=>{switch(e.discountType){case x.qR.PERCENT:return(0,n.jsxs)(n.Fragment,{children:[(100*e.value).toFixed(0),"% off",e.maxValue?(0,n.jsxs)(n.Fragment,{children:["\xa0upto\xa0",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),e.maxValue]}):""]});case x.qR.FLAT:return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"rupee",children:"₹ "}),e.value," off"]});default:return null}},d=(0,u.useMemo)(()=>t.defaultDiscountPercent?descriptionFromDiscount({discountType:x.qR.PERCENT,value:t?.defaultDiscountPercent}):s.discount?descriptionFromDiscount(s.discount):null,[s,t]);return a&&t?(0,n.jsxs)("div",{className:M().container,children:[(0,n.jsx)("div",{className:M().title,children:"Fare Details"}),(0,n.jsxs)("div",{className:M().body,children:[(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsxs)("div",{className:M().heading,children:[(0,n.jsx)("button",{className:M().rentBreakupBtn,onClick:()=>l(!c),children:c?"-":"+"})," ","Rent Amount"]}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.undiscountedAmount.toFixed(2)]})]}),c&&(0,n.jsx)("div",{className:M().rentBreakup,children:t?.priceBreakdown?.map((e,a)=>n.jsxs("div",{className:M().row,children:[n.jsx("p",{children:p.k_[e.package].title}),n.jsxs("p",{children:[e.quantity," unit(s) * ",e.unitQty," ",E()(p.IX[e.unitName],e.unitQty)," *"," ",n.jsx("span",{className:"rupee",children:"₹ "}),e.unitPrice.toFixed(2)," ="," ",n.jsx("span",{className:"rupee",children:"₹ "}),e.amount.toFixed(2)]})]},`rent-breakup-${a}`))}),(0,n.jsx)("div",{className:`${M().rentBreakup} ${M().mobile}`,children:t?.priceBreakdown?.map((e,a)=>n.jsxs("div",{className:M().row,children:[n.jsx("p",{children:p.k_[e.package].title}),n.jsxs("p",{children:[e.unitQty," ",E()(p.IX[e.unitName],e.unitQty)," *"," ",n.jsx("span",{className:"rupee",children:"₹ "}),e.unitPrice.toFixed(2)," ="," ",n.jsx("span",{className:"rupee",children:"₹ "}),e.amount.toFixed(2)]})]},`rent-breakup-${a}`))}),t.accessoryAmount>0&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsx)("div",{className:M().heading,children:"Addons Charge"}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"}),t.accessoryAmount.toFixed(2)]})]}),t.kmPackageAmount>0&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsx)("div",{className:M().heading,children:"Extra KM Charge"}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"}),t.kmPackageAmount.toFixed(2)]})]}),(t.defaultDiscountPercent>0||t.defaultDiscount>0)&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsxs)("div",{className:M().heading,children:["Gohub Discount ",(0,n.jsxs)("span",{className:M().fareNote,children:["(",d,")"]})]}),(0,n.jsxs)("div",{className:`${M().price} ${M().green}`,children:["- ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),t.defaultDiscountPercent?(t.undiscountedAmount-t.totalPayableAmount-(t.couponDiscount??0)).toFixed(2):t.defaultDiscount.toFixed(2)]})]}),t.couponDiscount>0&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsx)("div",{className:M().heading,children:"Coupon Discount"}),(0,n.jsxs)("div",{className:`${M().price} ${M().green}`,children:["- ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),t.couponDiscount.toFixed(2)]})]})]}),o===x.x6.ONLINE?(0,n.jsxs)(n.Fragment,{children:[t.goCoinsUsed>
10&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsxs)("div",{className:M().heading,children:["Go Coins Used"," ",(0,n.jsxs)("span",{className:M().fareNote,children:["(Available: ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),r.toFixed(2),")"]})]}),(0,n.jsxs)("div",{className:`${M().price} ${M().green}`,children:["- ",(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.goCoinsUsed.toFixed(2)]})]}),(0,n.jsx)("hr",{className:M().hr}),(0,n.jsxs)("div",{className:M().title,children:[(0,n.jsx)("div",{children:"Total Payable Amount"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.amountPayableOnline.toFixed(2)]})]}),null!==i&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsx)("div",{className:M().heading,children:"Delivery Charges Applicable"}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",i.toFixed(2)]})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{className:M().hr}),(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsx)("div",{className:M().heading,children:"Total"}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.totalPayableAmount.toFixed(2)]})]}),null!==i&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsx)("div",{className:`${M().heading} ${M().indent}`,children:"Delivery Charges Applicable"}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",i.toFixed(2)]})]}),(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsxs)("div",{className:`${M().heading} ${M().indent}`,children:["Rent Remaining"," ",(0,n.jsx)("span",{className:M().fareNote,children:"(To be paid at the time of Pickup)"})]}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.offlineCashAmount.toFixed(2)]})]}),(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsx)("div",{className:`${M().heading} ${M().indent}`,children:"Advance Payment"}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.onlineAmount.toFixed(2)]})]}),t.goCoinsUsed>0&&(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsxs)("div",{className:`${M().heading} ${M().indent}`,children:["Go Coins Used"," ",(0,n.jsxs)("span",{className:M().fareNote,children:["(Available: ",(0,n.jsx)("span",{className:"rupee",children:"₹ "}),r.toFixed(2),")"]})]}),(0,n.jsxs)("div",{className:`${M().price} ${M().green}`,children:["- ",(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.goCoinsUsed.toFixed(2)]})]}),(0,n.jsx)("hr",{className:M().hr}),(0,n.jsxs)("div",{className:M().title,children:[(0,n.jsx)("div",{children:"Total Payable Amount"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.amountPayableOnline.toFixed(2)]})]})]}),(0,n.jsx)("div",{className:M().depositWrap,children:(0,n.jsxs)("div",{className:M().row,children:[(0,n.jsxs)("div",{className:M().heading,children:["Refundable Deposit ",(0,n.jsx)("br",{})," ",(0,n.jsx)("span",{children:"(To be paid at the time of pickup)"})]}),(0,n.jsxs)("div",{className:`${M().price} ${M().black}`,children:[(0,n.jsx)("span",{className:"rupee",children:"₹"})," ",t.depositAmount?.toFixed(2)]})]})})]}):null},$=t(20666),F=t.n($),KmPackageSummary_KmPackageSummary=e=>{let{kmPackages:a,distanceLimit:t,selectedKmPackages:i,setSelectedKmPackages:s}=e;if(!a||a.length<=0)return null;let modifyKmPackage=(e,a)=>{let t=Math.max((i[e]??0)+a,0);s({...i,[e]:t})};return(0,n.jsxs)("div",{className:F().container,children:[(0,n.jsxs)("div",{className:F().header,children:[(0,n.jsx)("div",{className:F().title,children:"Extra KM Packages"}),(t??0)>0&&(0,n.jsxs)("div",{className:F().note,children:[(0,n.jsx)("span",{children:"Kilometer Limit : "}),t," kms"]})]}),(0,n.jsx)("div",{className:F().packages,children:a.map((e,a)=>(0,n.jsxs)("div",{className:F().package,children:[(0,n.jsxs)("div",{className:F().name,children:[e.extraKm," extra km"]}),(0,n.jsxs)("div",{className:F().priceWrap,children:[(0,n.jsxs)("div",{className:F().price,children:[(0,n.jsx)("span",{className:"rupee",children:"₹ "}),e.charge]}),(0,n.jsxs)("div",{className:F().quantityBtn,children:[(0,n.jsx)("button",{onClick:()=>modifyKmPackage(a,-1),children:(0,n.jsx)("img",{src:p.Wn.MINUS_ICON,alt:"Subtract"})}),(0,n.jsx)("div",{className:F().quantity,children:i[a]??0}),(0,n.jsx)("button",{onClick:()=>modifyKmPackage(a,1),children:(0,n.jsx)("img",{src:p.Wn.PLUS_ICON,alt:"Add"})})]})]})]},`km-package-${a}`))})]})},O=t(31812),W=t(41664),G=t.n(W),R=t(67289),Z=t.n(R),TncPopup_TncPopup=e=>{let{isVisible:a,makePayment:t,togglePaymentBtn:i,togglePopup:s,tncs:r}=e;return r&&a?(0,n.jsx)("div",{className:Z().container,onClick:()=>s(!1),children:(0,n.jsxs)("div",{className:Z().popup,onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("div",{className:Z().title,children:"GoHub's terms and conditions"}),(0,n.jsxs)("ul",{className:Z().tncs,children:[r.map((e,a)=>(0,n.jsx)("li",{className:Z().tnc,children:e},`tnc-${a}`)),(0,n.jsx)("li",{className:`${Z().tnc} ${Z().link}`,children:(0,n.jsx)(G(),{href:"/terms-and-conditions",target:"_blank",rel:"noreferrer",children:"Other Terms & Conditions"})})]}),(0,n.jsx)(L.Z,{className:Z().acceptBtn,onClick:()=>{i(!0),s(!1),t()},disableElevation:!0,type:"button",variant:"contained",children:"Accept & Proceed to Payment"})]})}):null},q=t(97026),U=t.n(q),Payment_Payment=e=>{let{cart:a,checkoutPrices:t,paymentLoading:i,paymentMode:s,makePayment:r}=e,o=(0,h.CG)(e=>e.root.city),c=(0,h.CG)(e=>e.user.userProfile),l=a.bikeData,d=a.cartData.orderStart,m=a.cartData.orderEnd,[p,_]=(0,u.useState)(!1),[y,j]=(0,u.useState)(!1);return l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(TncPopup_TncPopup,{isVisible:y,makePayment:r,togglePaymentBtn:_,togglePopup:j,tncs:[...l.hubs[0].tnc??[],...l.hubs[0].hub_bikes.tnc??[],..."boolean"==typeof l.hubs[0].hub_bikes.outstationAllowed?[l.hubs[0].hub_bikes.outstationAllowed?"Outstation trips are allowed":"Outstation trips are not allowed"]:[]]}),(0,n.jsxs)("div",{className:U().container,children:[(0,n.jsxs)("div",{className:U().checkbox,children:[(0,n.jsx)(P.Z,{checked:p,onClick:()=>{p?_(!1):(g.nT.track("CHECKOUT_PAGE__TNC_CLICK",{...c&&{userData:c},cityName:o,pickupDate:(0,g.SB)(d??new Date),dropoffDate:(0,g.SB)(m??new Date),bikeName:`${l?.brand} ${l?.name}
1`,gohubName:l?.hubs?.[0]?.landmark}),j(!0))},sx:{padding:0}}),(0,n.jsx)("label",{htmlFor:"payment-checkbox",children:"I have read the terms and conditions"})]}),(0,n.jsx)(O.Z,{className:U().paymentBtn,disabled:!p,loading:i,onClick:r,disableElevation:!0,type:"button",variant:"contained",children:s===x.x6.OFFLINE?"Book Now":"Pay Now"})]}),(0,n.jsxs)("div",{className:U().mobileContainer,children:[(0,n.jsxs)("div",{className:U().price,children:["₹ ",t?.amountPayableOnline?.toFixed(2)]}),(0,n.jsx)(O.Z,{className:U().paymentBtn,onClick:()=>{p?r():j(!0)},disableElevation:!0,loading:i,type:"button",variant:"contained",children:s===x.x6.OFFLINE?"Book Now":"Pay Now"})]})]}):null},K=t(874),z=t(76144),H=t.n(z),Q=t(23364),X=t.n(Q),Y=t(21189),V=t.n(Y);H().extend(X());var TimeLocationSummary_TimeLocationSummary=e=>{let{hub:a}=e,t=(0,h.CG)(e=>e.root.pickupDate),i=(0,h.CG)(e=>e.root.dropoffDate),getDateWrap=e=>{let a=new Date(e);return(0,n.jsxs)("div",{className:V().dateWrap,children:[(0,n.jsx)("div",{className:V().day,children:a.getDate()}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:V().month,children:[H()(a).format("MMMM")," ",a.getFullYear()]}),(0,n.jsx)("div",{className:V().time,children:H()(a).format("hh:mm A")})]})]})},dateToString=e=>H()(e).format("Do MMMM YYYY, h:mm A");return a?(0,n.jsxs)("div",{className:V().container,children:[(0,n.jsx)("h2",{children:"Pickup and Drop Date"}),(0,n.jsxs)("div",{className:V().dateSummary,children:[getDateWrap(t??Date.now()),(0,n.jsxs)("div",{className:V().durationWrap,children:[(0,n.jsx)("div",{className:V().bar}),(0,n.jsx)("div",{className:V().duration,children:(0,g.j$)(t??Date.now(),i??Date.now())}),(0,n.jsx)("div",{className:V().bar})]}),getDateWrap(i??Date.now())]}),(0,n.jsxs)("div",{className:V().mobileDateSummary,children:[(0,n.jsxs)("div",{className:V().date,children:[(0,n.jsx)("img",{src:p.Wn.TIME_ICON,alt:"Time"})," ",dateToString(t??Date.now())]}),(0,n.jsxs)("div",{className:V().date,children:[(0,n.jsx)("img",{src:p.Wn.TIME_ICON,alt:"Time"})," ",dateToString(i??Date.now())]})]}),(0,n.jsxs)("div",{className:V().locationSummary,children:[(0,n.jsx)("h2",{children:"Pickup and Drop Location"}),(0,n.jsxs)("p",{children:[(0,n.jsx)(K.Z,{htmlColor:"#959cae",fontSize:"small",className:V().locationIcon})," ",a.landmark]})]})]}):null},J=t(54361),ee=t(7301),ea=t.n(ee),Checkout_Checkout=()=>{let e=(0,h.TL)(),a=(0,d.useRouter)(),t=a.query.token,c=t?.split("-")?.[1],{trackEvent:j}=(0,h.tH)(),N=(0,h.CG)(e=>e.user.isAuthenticated),b=(0,h.CG)(e=>e.cart.cart),v=(0,h.CG)(e=>e.root.city),k=(0,h.CG)(e=>e.root.cityMap),S=(0,h.CG)(e=>e.root.country),f=(0,h.CG)(e=>e.bikeDetails.paymentMode),C=(0,h.CG)(e=>e.user.userProfile),D=(0,h.CG)(e=>e.root.selectedLocation),[P,L]=(0,u.useState)([]),[A,I]=(0,u.useState)(x.rA.IDLE),[T,w]=(0,u.useState)(),[E,B]=(0,u.useState)(null),[M,$]=(0,u.useState)([]),[F,O]=(0,u.useState)(x.rA.IDLE),[W,G]=(0,u.useState)({}),[R,Z]=(0,u.useState)({}),[q,U]=(0,u.useState)({active:!1,address:""}),[K,z]=(0,u.useState)(1),[H,Q]=(0,u.useState)(),[X,Y]=(0,u.useState)(x.rA.IDLE),[V,ee]=(0,u.useState)(!1),et=T?.cartData.orderStart,en=T?.cartData.orderEnd,ei=(0,u.useMemo)(()=>{let e=T?.bikeData?.hubs?.[0];if(!e?.delivery||!e?.deliveryCharges||!e?.latitude||!e?.longitude||!D?.lat||!D?.lng)return null;let a=(0,g.d2)(e.latitude,e.longitude,D.lat,D.lng);if(isNaN(a))return null;let{upto05:t,upto10:n,upto20:i}=e.deliveryCharges;return a<=5&&t?t:a<=10&&n?n:a<=20&&i?i:null},[T,D]),es=(0,u.useMemo)(()=>{let e=T?.bikeData?.hubs?.[0]?.hub_bikes;if(!e)return;let a=H?.package?e.distanceLimits?.[H.package]:e.dynamicDistanceLimit,t=(e.kmPackages??[]).reduce((e,a,t)=>e+a.extraKm*(R[t]??0),0);return(a??0)+t},[T,H,R]),fetchCartDetails=async()=>{let[a,n]=await (0,m.iS)(t??b.cartKey);n&&a&&"string"!=typeof a?w(a):e((0,y.Qf)(!0))};(0,u.useEffect)(()=>{(t||b)&&fetchCartDetails()},[b,t,N]),(0,u.useEffect)(()=>{T&&(g.nT.track("CHECKOUT_PAGE_VISIT",{...C&&{userData:C},cityName:v,pickupDate:(0,g.SB)(et??new Date),dropoffDate:(0,g.SB)(en??new Date),gohubName:T?.bikeData?.hubs?.[0]?.landmark,bikeId:`${T?.bikeData?.brand} ${T?.bikeData?.name}`,paymentMode:T.cartData?.paymentMode}),e((0,_.hL)(T.cartData?.paymentMode)))},[T]),(0,u.useEffect)(()=>{A===x.rA.IDLE&&F===x.rA.IDLE&&T&&T.bikeData.hubs.length>0&&(async()=>{I(x.rA.LOADING),O(x.rA.LOADING);
1let[e,a]=await Promise.all([(0,m.hj)(T.bikeData.hubs[0].id),(0,m.Uo)({vendorId:T?.bikeData?.hubs?.[0]?.vendor?.id})]);if(e){let a={};for(let t of e)a[t.id]={quantity:0,price:t.hub_accessories.price};G(a),L(e),I(x.rA.SUCCESS)}else I(x.rA.FAILURE);a?($(a?.[1]??[]),O(x.rA.SUCCESS)):O(x.rA.FAILURE)})()},[A,F,T]),(0,u.useEffect)(()=>{X===x.rA.IDLE&&T&&et&&en&&f&&(async()=>{Y(x.rA.LOADING);let t={hubId:T.bikeData.hubs[0].id,bikeId:T.bikeData.id,...E&&{coupon:E.code},quantity:K,orderStart:et,orderEnd:en,delivery:q.active,...q.address&&q.address.length>0&&{address:q.address},accessories:Object.keys(W).reduce((e,a)=>(W[a].quantity>0&&e.push({id:a,quantity:W[a].quantity}),e),[]),kmPackages:Object.entries(R).flatMap(e=>{let[a,t]=e;return Array(t).fill(Number(a))}),paymentMode:f,orderSource:"GOWHEELO",saveCartCache:!0,cartCacheId:c??b.cartId},[n,i]=await (0,m.Jh)(t);i&&"string"!=typeof n?Q(n.priceData):n&&(n.includes("future time")||n.includes("within")?a.push(`/${S}/${(0,g.W0)(v)}/bike-rentals/search`):(e((0,y.fz)({type:x.pC.ERROR,message:n})),B(null))),Y(x.rA.IDLE)})()},[T,W,R,E,q.active,f,K]);let getDeviceLocation=async()=>{if(!navigator.geolocation)return null;let e=await new Promise(e=>{navigator.geolocation.getCurrentPosition(a=>e(a),()=>e(null),{enableHighAccuracy:!1,timeout:1e4,maximumAge:0})});if(!e)return null;let{latitude:a,longitude:t}=e.coords;try{let{data:e}=await o.Z.get("/api/places/geocode",{params:{lat:a,lng:t}});return{label:e.label??"Current Location",lat:a,lng:t}}catch{return{label:"Current Location",lat:a,lng:t}}},makePayment=async()=>{if(ee(!0),g.nT.track("CHECKOUT_PAGE__PAY_NOW_CLICK",{...C&&{userData:C},cityName:v,pickupDate:(0,g.SB)(et??new Date),dropoffDate:(0,g.SB)(en??new Date),bikeName:`${T?.bikeData?.brand} ${T?.bikeData?.name}`,gohubName:T?.bikeData?.hubs?.[0]?.landmark,paymentMode:f,...E&&{couponCode:E?.code}}),j("InitiateCheckout",{currency:"INR",value:H?.amountPayableOnline}),!N){e((0,y.Qf)(!0)),ee(!1);return}if(!T||!(T.bikeData.hubs.length>0)||!et||!en){ee(!1);return}let t=await getDeviceLocation(),n=t??D,s={hubId:T.bikeData.hubs[0].id,bikeId:T.bikeData.id,...E&&{coupon:E.code},quantity:K,orderStart:et,orderEnd:en,delivery:q.active,...q.address&&q.address.length>0&&{address:q.address},accessories:Object.keys(W).reduce((e,a)=>(W[a].quantity>0&&e.push({id:a,quantity:W[a].quantity}),e),[]),kmPackages:Object.entries(R).flatMap(e=>{let[a,t]=e;return Array(t).fill(Number(a))}),paymentMode:f,orderSource:"GOWHEELO",...n&&{bookingLocation:{label:n.label,lat:n.lat,lng:n.lng}}},[r,o]=await (0,m.JE)(s);if(o&&"string"!=typeof r){if(r.sessionId){let a=await (0,i.z)({mode:"production"}),t={paymentSessionId:r.sessionId,returnUrl:r.returnUrl};a.checkout(t).then(function(a){a.error&&(console.error(a.error.message),e((0,y.fz)({type:x.pC.ERROR,message:"Payment failed."})))})}else a.push(`/order-completed?orderId=${r.id}`)}else e((0,y.fz)({type:x.pC.ERROR,message:r.toString()}));ee(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{children:(0,n.jsx)("title",{children:"Order Summary | GoWheelo"})}),(0,n.jsx)(s.Z,{sx:{zIndex:1100},open:A===x.rA.LOADING||F===x.rA.LOADING,children:(0,n.jsx)(r.Z,{})}),(0,n.jsxs)("div",{className:ea().container,children:[(0,n.jsx)("h1",{children:"Summary"}),(0,n.jsx)("div",{className:ea().depositNote,children:"Pay security deposit at the time of pickup."}),T&&H&&(0,n.jsxs)("div",{className:ea().summary,children:[(0,n.jsxs)("div",{className:ea().bikeSummary,children:[(0,n.jsx)(BikeSummary_BikeSummary,{bike:T?.bikeData,checkoutPrices:H,quantity:K,setQuantity:z}),(0,n.jsx)(TimeLocationSummary_TimeLocationSummary,{hub:T.bikeData.hubs[0]}),T.bikeData.hubs[0].delivery&&(0,n.jsx)(DeliverySummary_DeliverySummary,{bike:T?.bikeData,setDeliveryData:U,deliveryCharge:ei}),(0,n.jsx)(AddonSummary_AddonSummary,{accessories:P,addonMap:W,checkoutPrices:H,quantity:K,setAddonMap:G}),(0,n.jsx)(KmPackageSummary_KmPackageSummary,{kmPackages:T.bikeData.hubs[0].hub_bikes.kmPackages||[],distanceLimit:es,selectedKmPackages:R,setSelectedKmPackages:Z}),(0,n.jsx)(J.Z,{hub:T.bikeData.hubs[0],distanceLimit:es})]}),(0,n.jsxs)("div",{className:ea().fareSummary,children:[k?.[v]?.showCoupon!==!1&&!k?.[v]?.disableGoogleMapSearch&&!p.wz.includes(T.bikeData.hubs[0].vendor?.id.toString()??"NA")&&(0,n.jsx)(ApplyCoupon_ApplyCoupon,{cart:T,coupon:E,couponList:M,paymentMode:f,setCoupon:B}),(0,n.jsx)(FareSummary_FareSummary,{bike:T?.bikeData,checkoutPrices:H,deliveryCharge:q.active?ei:null}),(0,n.jsx)(Payment_Payment,{cart:T,checkoutPrices:H,paymentLoading:V,paymentMode:f,makePayment:makePayment})]})]})]})]})},et=t(82286),checkout=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(et.Z,{transparentHeader:!1,showCitySelect:!1,showHeaderBoxShadow:!0,children:(0,n.jsx)(Checkout_Checkout,{})})})},54361:function(e,a,t){"use strict";var n=t(85893);t(67294);var i=t(97583),s=t(75434),r=t.n(s);a.Z=e=>{let{distanceLimit:a,hub:t,hideTitle:s}=e;return t?(0,n.jsxs)("div",{className:r().container,children:[!s&&(0,n.jsx)("div",{className:r().title,children:"Things to remember"}),(0,n.jsxs)("div",{className:r().thingsToRemember,children:[(0,n.jsxs)("div",{className:r().thing,children:[(0,n.jsx)("p",{children:"Kilometer Limit"}),(0,n.jsx)("p",{children:(a??t?.hub_bikes?.dynamicDistanceLimit)>0?`${a??t?.hub_bikes?.dynamicDistanceLimit} kms`:"NA"})]}),(0,n.jsxs)("div",{className:r().thing,children:[(0,n.jsx)("p",{children:"Excess Kilometer Charges"}),(0,n.jsx)("p",{children:t?.hub_bikes?.penalty?.distance?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"rupee",children:"₹ "}),t?.hub_bikes?.penalty?.distance,"/km"]}):"NA"})]})]}),(0,n.jsxs)("div",{className:r().thingsToRemember,children:[(0,n.jsxs)("div",{className:r().thing,children:[(0,n.jsx)("p",{children:"Location Timings"}),(0,n.jsxs)("p",{children:[(0,i.Vr)(t?.opStart)," to"," ",(0,i.Vr)(t?.opEnd)]})]}),(0,n.jsxs)("div",{className:r().thing,children:[(0,n.jsx)("p",{children:"Late Drop Fee"}),(0,n.jsx)("p",{children:t?.hub_bikes?.penalty?.late?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"rupee",children:"₹ "}),t?.hub_bikes?.penalty?.late,"/hr"]}):"NA"})]})]})]}):null}},1097:function(e,a,t){"use strict";t.r(a);var n=t(85893),i=t(2934),s=t(30120),r=t(78945),o=t(67294),c=t(83613),l=t(1921),d=t(21535),u=t(77230),m=t(97583),p=t(64806),h=t.n(p);a.default=e=>{let{open:a,onClose:t,city:p,onCityChange:_}=e,y=(0,l.TL)(),x=(0,l.CG)(e=>e.root.selectedLocation),g=(0,l.CG)(e=>e.root.cityMap),j=!!p&&!!g?.[p]?.disableGoogleMapSearch,[N,b]=(0,o.useState)(""),[v,k]=(0,o.useState)([]),[S,f]=(0,o.useState)("SUGGESTED LOCATIONS"),[C,D]=(0,o.useState)(!1),[P,L]=(0,o.useState)(!1),[A,I]=(0,o.useState)(""),[T,w]=(0,o.useState)(null),[E,B]=(0,o.useState)(null),[M,$]=(0,o.useState)(!1),F=(0,o.useRef)(),O=(0,o.useRef)(null),W=(0,o.useRef)(!1),G=(0,o.useCallback)((e,a)=>{let t=Object.keys(g??{}),n=1/0,i=null;for(let s of t){let t=c.Xv[s];if(!t)continue;let r=(0,m.d2)(e,a,t.lat,t.lng);r<n&&(n=r,i=s)}return i?{city:i,distanceKm:n}:null},[g]),R=(0,o.useCallback)(async(e,a,t)=>{D(!0);try{let{data:n}=await r.Z.get("/api/places/autocomplete",{params:{seed:"true",input:t,lat:e,lng:a}});k(n.predictions??[]),f(`SUGGESTED IN ${t.toUpperCase()}`)}catch{k([])}finally{D(!1)}},[]),Z=(0,o.useCallback)(async(e,a)=>{D(!0);try{let t=p?c.Xv[p]:null,{data:n}=await r.Z.get("/api/places/autocomplete",{params:{input:e,...t&&{lat:t.lat,lng:t.lng}}});k(n.predictions??[]),f(a)}catch{k([])}finally{D(!1)}},[p]);(0,o.useEffect)(()=>
1{if(!a){W.current=!1;return}if(b(x?.label??""),I(""),B(null),$(!1),w(x??null),W.current=!1,setTimeout(()=>O.current?.focus(),80),j){k([]);return}if(p){let e=c.Xv[p];e?R(e.lat,e.lng,p):Z(p,`SUGGESTED IN ${p.toUpperCase()}`)}else k([])},[a]);let handleSelectPrediction=async e=>{k([]),b(e.description),B(null),$(!1);let applyCoords=(a,t)=>{let n=G(a,t);if(n&&n.distanceKm>50){w(null),$(!0);return}w({label:e.description,lat:a,lng:t}),n&&n.city!==p&&B(n.city)};if(void 0!==e.lat&&void 0!==e.lng){applyCoords(e.lat,e.lng);return}D(!0);try{let{data:a}=await r.Z.get("/api/places/geocode",{params:{placeId:e.place_id}});a.lat&&a.lng&&applyCoords(a.lat,a.lng)}catch{}finally{D(!1)}},applySelection=(e,a)=>{y((0,d.St)(e)),a&&a!==p&&_&&_(a),u.Z.post(c.G8.SAVE_LOCATION_HISTORY,{location:e}).catch(e=>void 0)};return(0,n.jsx)(i.Z,{open:a,onClose:t,children:(0,n.jsxs)(s.Z,{className:`popup-container ${h().modal}`,children:[(0,n.jsx)("button",{className:h().closeBtn,onClick:t,"aria-label":"Close",children:"✕"}),!j&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:h().inputWrap,children:(0,n.jsx)("input",{ref:O,type:"text",className:h().searchInput,placeholder:"Search for an area, landmark, or address...",value:N,onChange:e=>{let a=e.target.value;if(b(a),w(null),B(null),W.current=!0,clearTimeout(F.current),a.trim().length<4){if(W.current=!1,p){let e=c.Xv[p];e?R(e.lat,e.lng,p):Z(p,`SUGGESTED IN ${p.toUpperCase()}`)}else k([]);return}F.current=setTimeout(()=>{Z(a,"SUGGESTIONS")},400)}})}),(0,n.jsxs)("button",{className:`${h().currentLocationBtn} ${P?h().currentLocationBtnLoading:""}`,onClick:()=>{if(!navigator.geolocation){I("Geolocation is not supported by your browser.");return}I(""),B(null),$(!1),L(!0),k([]),b("Detecting your location..."),navigator.geolocation.getCurrentPosition(async e=>{let{latitude:a,longitude:n}=e.coords;L(!1);let i=G(a,n);if(i&&i.distanceKm>50){$(!0),b("");return}b("Fetching address..."),i&&i.city!==p&&B(i.city);let s="Current Location";try{let{data:e}=await r.Z.get("/api/places/geocode",{params:{lat:a,lng:n}});s=e.label??s}catch{}b(s);let o={label:s,lat:a,lng:n};w(o),applySelection(o,i?i.city:null),t()},e=>{let a=e.code===e.PERMISSION_DENIED?"Location access denied. Please allow location or search manually.":"Could not detect location. Please search manually.";I(a),b(""),L(!1)},{enableHighAccuracy:!0,timeout:1e4,maximumAge:6e4})},disabled:P,children:[(0,n.jsx)("span",{className:h().locationDot,children:"⊙"}),P?"Detecting location...":"Current Location"]}),A&&(0,n.jsx)("p",{className:h().geoError,children:A}),M&&(0,n.jsx)("p",{className:h().geoError,children:"We're not operational in this area yet. Please search for a different location."}),E&&E!==p&&(0,n.jsxs)("p",{className:h().cityDetected,children:["Your location is in ",(0,n.jsx)("strong",{children:E})," — city will switch on Continue."]}),C&&0===v.length&&(0,n.jsxs)("div",{className:h().suggestionsSection,children:[(0,n.jsx)("p",{className:h().suggestionsLabel,children:S}),(0,n.jsx)("ul",{className:h().suggestionsList,children:[1,2,3,4].map(e=>(0,n.jsxs)("li",{className:`${h().suggestionItem} ${h().skeleton}`,children:[(0,n.jsx)("span",{className:h().pinIcon,children:"\uD83D\uDCCD"}),(0,n.jsxs)("div",{className:h().skeletonLines,children:[(0,n.jsx)("span",{className:h().skeletonMain}),(0,n.jsx)("span",{className:h().skeletonSub})]})]},e))})]}),!C&&v.length>0&&(0,n.jsxs)("div",{className:h().suggestionsSection,children:[(0,n.jsx)("p",{className:h().suggestionsLabel,children:S}),(0,n.jsx)("ul",{className:h().suggestionsList,children:v.map(e=>(0,n.jsxs)("li",{className:h().suggestionItem,onClick:()=>handleSelectPrediction(e),children:[(0,n.jsx)("span",{className:h().pinIcon,children:"\uD83D\uDCCD"}),(0,n.jsxs)("div",{className:h().suggestionText,children:[(0,n.jsx)("span",{className:h().mainText,children:e.structured_formatting?.main_text??e.description}),e.structured_formatting?.secondary_text&&(0,n.jsx)("span",{className:h().secondaryText,children:e.structured_formatting.secondary_text})]})]},e.place_id))})]})]}),(0,n.jsx)("div",{className:h().footer,children:(0,n.jsx)("button",{className:h().continueBtn,onClick:()=>
1{if(!T)return;let e=N.trim()||T.label,a={...T,label:e};applySelection(a,E),t()},disabled:!T,children:"CONTINUE"})})]})})}},25762:function(e){e.exports={container:"AddonSummary_container__fsf7Z",header:"AddonSummary_header__qxSvR",title:"AddonSummary_title__0ssP5",note:"AddonSummary_note__D3psi",addons:"AddonSummary_addons__vZyEA",addon:"AddonSummary_addon__BEAfW",name:"AddonSummary_name__033x8",priceWrap:"AddonSummary_priceWrap__F97E1",price:"AddonSummary_price__OXnmW",quantityBtn:"AddonSummary_quantityBtn__Oe5jP",quantity:"AddonSummary_quantity__GOvGW"}},66085:function(e){e.exports={bikeSummary:"BikeSummary_bikeSummary__QDdWH",bikeDetails:"BikeSummary_bikeDetails__kMHWy",bikeImg:"BikeSummary_bikeImg__IjyP0",fareDetails:"BikeSummary_fareDetails__LOE1Z",bikeName:"BikeSummary_bikeName__xQAvH",breakup:"BikeSummary_breakup__jiAuY",mobileBreakup:"BikeSummary_mobileBreakup__eeFZz",amount:"BikeSummary_amount__ZH72U",paymentMode:"BikeSummary_paymentMode__1qsO9",mobile:"BikeSummary_mobile__NIEKT",totalAmount:"BikeSummary_totalAmount__Zepqm",discounted:"BikeSummary_discounted__8UFU4",strikeThrough:"BikeSummary_strikeThrough__zGWST",quantityWrap:"BikeSummary_quantityWrap__l4_c9",quantityBtn:"BikeSummary_quantityBtn__tN5G0",quantity:"BikeSummary_quantity__2zcTW",price:"BikeSummary_price__akaWW",title:"BikeSummary_title__P0Wo_"}},84480:function(e){e.exports={container:"DeliverySummary_container__vundb",checkboxWrap:"DeliverySummary_checkboxWrap__57zHN",title:"DeliverySummary_title__17Q3G",locationRow:"DeliverySummary_locationRow__nlXm3",locationLabel:"DeliverySummary_locationLabel__jG8qX",changeLocationBtn:"DeliverySummary_changeLocationBtn__0mmw8",inputWrap:"DeliverySummary_inputWrap__XsX_l",saveBtn:"DeliverySummary_saveBtn__pH1bt",note:"DeliverySummary_note__H83Xj"}},41514:function(e){e.exports={container:"FareSummary_container__c12Nm",title:"FareSummary_title__U5570",row:"FareSummary_row__r8XSn",heading:"FareSummary_heading__hL6tB",indent:"FareSummary_indent__Wu7WS",price:"FareSummary_price__HaEcy",fareNote:"FareSummary_fareNote__RhTam",black:"FareSummary_black__dChEK",grey:"FareSummary_grey__63fqZ",green:"FareSummary_green__Y9SCy",hr:"FareSummary_hr__MIdSn",rentBreakup:"FareSummary_rentBreakup__fJ8tT",mobile:"FareSummary_mobile__1QTwI",rentBreakupBtn:"FareSummary_rentBreakupBtn__W1X31"}},20666:function(e){e.exports={container:"KmPackageSummary_container__gvi3n",header:"KmPackageSummary_header__Wrk4t",title:"KmPackageSummary_title__suonD",note:"KmPackageSummary_note__VG0jr",packages:"KmPackageSummary_packages__M93KP",package:"KmPackageSummary_package__5tDMI",name:"KmPackageSummary_name__J9z7L",priceWrap:"KmPackageSummary_priceWrap__L0GDj",price:"KmPackageSummary_price__GiwT9",quantityBtn:"KmPackageSummary_quantityBtn__wUp_k",quantity:"KmPackageSummary_quantity__N5PYz"}},97026:function(e){e.exports={container:"Payment_container__dl_gj",mobileContainer:"Payment_mobileContainer__QAhWm",checkbox:"Payment_checkbox___nEm0",paymentBtn:"Payment_paymentBtn__eiA17",price:"Payment_price__qy_2f"}},21189:function(e){e.exports={container:"TimeLocationSummary_container__cSGBm",dateSummary:"TimeLocationSummary_dateSummary__CvKBx",mobileDateSummary:"TimeLocationSummary_mobileDateSummary__1vnQj",dateWrap:"TimeLocationSummary_dateWrap__BLb_m",day:"TimeLocationSummary_day__CgJqY",month:"TimeLocationSummary_month__hZ29e",time:"TimeLocationSummary_time__3GHXa",durationWrap:"TimeLocationSummary_durationWrap__ze_gw",duration:"TimeLocationSummary_duration__lYM8L",bar:"TimeLocationSummary_bar__U_0vl",locationSummary:"TimeLocationSummary_locationSummary__nqpnO",locationIcon:"TimeLocationSummary_locationIcon__rJe4l",date:"TimeLocationSummary_date__zJxf_"}},75434:function(e){e.exports={container:"TncSummary_container__Tolw0",title:"TncSummary_title__4JQhf",thingsToRemember:"TncSummary_thingsToRemember__EuyAj",thing:"TncSummary_thing__Jzc7T"}},64806:function(e){e.exports={modal:"LocationSelectModal_modal__pIbzf",closeBtn:"LocationSelectModal_closeBtn__lYWRx",inputWrap:"LocationSelectModal_inputWrap__mkdx_",searchInput:"LocationSelectModal_searchInput__6CMB_",currentLocationBtn:"LocationSelectModal_currentLocationBtn__D9Vk0",currentLocationBtnLoading:"LocationSelectModal_currentLocationBtnLoading___fCSs",locationDot:"LocationSelectModal_locationDot__rySmj",pulse:"LocationSelectModal_pulse__oxlGe",geoError:"LocationSelectModal_geoError__OfKLs",disabledNotice:"LocationSelectModal_disabledNotice__WTUVx",suggestionsError:"LocationSelectModal_suggestionsError__i85Lo",cityDetected:"LocationSelectModal_cityDetected__avdUX",suggestionsSection:"LocationSelectModal_suggestionsSection__rkowv",suggestionsLabel:"LocationSelectModal_suggestionsLabel__TG4Nh",suggestionsList:"LocationSelectModal_suggestionsList__PUR18",suggestionItem:"LocationSelectModal_suggestionItem__mVz9E",pinIcon:"LocationSelectModal_pinIcon__zUEgc",suggestionText:"LocationSelectModal_suggestionText__COLDK",mainText:"LocationSelectModal_mainText__ZKxm_",secondaryText:"LocationSelectModal_secondaryText__2pdbz",loadingText:"LocationSelectModal_loadingText__kHTSF",skeleton:"LocationSelectModal_skeleton__0soll",skeletonLines:"LocationSelectModal_skeletonLines__feRu8",skeletonMain:"LocationSelectModal_skeletonMain__0EecS",skeletonSub:"LocationSelectModal_skeletonSub__uBFde",shimmer:"LocationSelectModal_shimmer__eUdUB",footer
1:"LocationSelectModal_footer__vfAGk",continueBtn:"LocationSelectModal_continueBtn__68XR9"}},7301:function(e){e.exports={container:"Checkout_container__wZMC_",depositNote:"Checkout_depositNote__FVsNH",emailQuote:"Checkout_emailQuote__ynwc4",summary:"Checkout_summary__DGmTM",bikeSummary:"Checkout_bikeSummary__jCJck",fareSummary:"Checkout_fareSummary__BLbXk"}},67289:function(e){e.exports={container:"TncPopup_container__ZRl5u",popup:"TncPopup_popup___ZBLr",title:"TncPopup_title__EwERU",tncs:"TncPopup_tncs__omI4X",tnc:"TncPopup_tnc__Sa9mw",link:"TncPopup_link__I3pl_",acceptBtn:"TncPopup_acceptBtn__AhNcR"}},75146:function(e){e.exports={container:"ApplyCoupon_container__gyMqB",header:"ApplyCoupon_header__RTfWb",dropdownBtn:"ApplyCoupon_dropdownBtn__1cWnP",active:"ApplyCoupon_active__kihCS",pointer:"ApplyCoupon_pointer__oTWjF",dropdown:"ApplyCoupon_dropdown__rfgdK",couponInfo:"ApplyCoupon_couponInfo__rBpG5",couponCode:"ApplyCoupon_couponCode__XNhQc",code:"ApplyCoupon_code__qMhTH",customCoupon:"ApplyCoupon_customCoupon__2WHU4",couponDiscount:"ApplyCoupon_couponDiscount___bJ0G",applyBtn:"ApplyCoupon_applyBtn__46_b5",hide:"ApplyCoupon_hide__Tm5nP",removeBtn:"ApplyCoupon_removeBtn__W1RG_"}},30907:function(e,a,t){"use strict";function _arrayLikeToArray(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}t.d(a,{Z:function(){return _arrayLikeToArray}})},15671:function(e,a,t){"use strict";function _classCallCheck(e,a){if(!(e instanceof a))throw TypeError("Cannot call a class as a function")}t.d(a,{Z:function(){return _classCallCheck}})},43144:function(e,a,t){"use strict";t.d(a,{Z:function(){return _createClass}});var n=t(83997);function _defineProperties(e,a){for(var t=0;t<a.length;t++){var i=a[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,n.Z)(i.key),i)}}function _createClass(e,a,t){return a&&_defineProperties(e.prototype,a),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}},73568:function(e,a,t){"use strict";function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}t.d(a,{Z:function(){return _createSuper}});var n=t(71002),i=t(97326);function _createSuper(e){var a=_isNativeReflectConstruct();return function(){var t,s=_getPrototypeOf(e);if(a){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(s,arguments,r)}else t=s.apply(this,arguments);return function(e,a){if(a&&("object"==(0,n.Z)(a)||"function"==typeof a))return a;if(void 0!==a)throw TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}(this,t)}}},60136:function(e,a,t){"use strict";t.d(a,{Z:function(){return _inherits}});var n=t(89611);function _inherits(e,a){if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&(0,n.Z)(e,a)}},40181:function(e,a,t){"use strict";t.d(a,{Z:function(){return _unsupportedIterableToArray}});var n=t(30907);function _unsupportedIterableToArray(e,a){if(e){if("string"==typeof e)return(0,n.Z)(e,a);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?(0,n.Z)(e,a):void 0}}}},function(e){e.O(0,[9853,5975,2161,3187,4933,9154,3261,1005,5654,2286,1762,9774,2888,179],function(){return e(e.s=62013)}),_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.