1"use strict";(globalThis.webpackChunkzoomcar_com=globalThis.webpackChunkzoomcar_com||[]).push([[524,3987,8153,8488,8560],{67077(t,e,i){i.r(e),i.d(e,{default:()=>r});var s=i(10834),a=i(9124),o=i(92890);const n={components:{SlidePopUp:a.default,CalendarV3:()=>i.e(6171).then(i.bind(i,66674)),CalendarWeekday:()=>i.e(1197).then(i.bind(i,71197))},data:()=>({}),computed:{...(0,s.mapGetters)({isMobile:"App/isMobile",isSubscription:"Search/isSubscription",starts:"Search/starts",ends:"Search/ends",minSubscriptionDuration:"Search/minSubscriptionDuration"})},props:{showCalendar:{type:Boolean,default:!1},availabilityCalendar:{type:Boolean,default:!1},showTimeSlider:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},isWeekdayCalendar:{type:Boolean,default:!1}},methods:{...(0,s.mapActions)({setSubscription:"Search/setSubscription"}),handleDateUpdate(t){},handleDateSubmit(t){this.$emit("submit",{start:t.start,end:t.end})},handleClose(){this.$store.commit("App/setAppPopupState",!1),this.autoSwitch&&!this.isWeekdayCalendar&&((0,o.A)(new Date(this.starts),this.minSubscriptionDuration)<=new Date(this.ends)?this.setSubscription(!0):this.setSubscription(!1)),this.$emit("close")}}};const r=(0,i(14486).A)(n,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[t.showCalendar&&!t.isMobile?e("div",{staticClass:"calendar-popup"},[e("div",{staticClass:"calendar-popup-background"},[e("div",{staticClass:"calendar-popup__close-button",on:{click:t.handleClose}},[e("i",{staticClass:"z-close"})]),t._v(" "),t.isSubscription?e("div",{staticClass:"calendar-popup__subscription"},[t._v("\n ⨠This is a Subscription booking! Continue to search for details.\n ")]):t._e(),t._v(" "),t.isWeekdayCalendar?e("div",{staticClass:"calendar-popup__subscription"},[t._v("\n ⨠This is a Weekday Commute booking! Continue to search for details.\n ")]):t._e(),t._v(" "),e("div",{staticClass:"calendar-popup-container"},[e("div",{staticClass:"calendar-popup-calendar-v2-container"},[t.isWeekdayCalendar?e("calendar-weekday",{attrs:{availabilityCalendar:t.availabilityCalendar,showContinueButton:!0,showTimeSlider:t.showTimeSlider},on:{update:t.handleDateUpdate,submit:t.handleDateSubmit}}):e("calendar-v3",{attrs:{availabilityCalendar:t.availabilityCalendar,showContinueButton:!0,showTimeSlider:t.showTimeSlider,autoSwitch:t.autoSwitch},on:{update:t.handleDateUpdate,submit:t.handleDateSubmit}})],1)])])]):t._e(),t._v(" "),t.showCalendar&&t.isMobile?e("SlidePopUp",{staticClass:"calendar-popup__popup",attrs:{isCustomLayout:!0,showPopUp:t.showCalendar&&t.isMobile,showTopBorder:!1},on:{modalClosed:t.handleClose}},[e("div",{staticClass:"calendar-popup__banner",class:{"calendar-popup__banner--hidden":!t.isSubscription&&!t.isWeekdayCalendar}},[t.isSubscription?[t._v("\n ⨠This is a Subscription booking! Continue to search for details.\n ")]:t.isWeekdayCalendar?[t._v("\n ⨠This is a Weekday Commute booking! Continue to search for details.\n ")]:t._e()],2),t._v(" "),t.isWeekdayCalendar?e("calendar-weekday",{attrs:{availabilityCalendar:t.availabilityCalendar,showContinueButton:!0,showTimeSlider:t.showTimeSlider},on:{update:t.handleDateUpdate,submit:t.handleDateSubmit}}):e("calendar-v3",{attrs:{availabilityCalendar:t.availabilityCalendar,showContinueButton:!0,showTimeSlider:t.showTimeSlider,autoSwitch:t.autoSwitch},on:{update:t.handleDateUpdate,submit:t.handleDateSubmit}})],1):t._e()],1)},[],!1,null,null,null).exports},16289(t,e,i){i.d(e,{A:()=>a});const s={name:"check-box",props:{checked:{type:Boolean,default:!1}},data(){return{isChecked:this.checked||!1}},computed:{},methods:{handleCheckboxClick(){this.$emit("CheckboxClick",this.isChecked)}},watch:{checked(){this.isChecked=this.checked}}};const a=(0,i(14486).A)(s,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"check-box-main"},[e("div",{staticClass:"check-box"},[e("div",{staticClass:"check"},[e("div",{staticClass:"checkbox"},[e("label",{class:["checkbox-container"]},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isChecked,expression:"isChecked"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.isChecked)?t._i(t.isChecked,null)>-1:t.isChecked},on:{change:[function(e){var i=t.isChecked,s=e.target,a=!!s.checked;if(Array.isArray(i)){var o=t._i(i,null);s.checked?o<0&&(t.isChecked=i.concat([null])):o>
1-1&&(t.isChecked=i.slice(0,o).concat(i.slice(o+1)))}else t.isChecked=a},function(e){return t.handleCheckboxClick()}]}}),t._v(" "),e("div",{staticClass:"control-indicator"})])])])])])},[],!1,null,null,null).exports},43241(t,e,i){i.d(e,{A:()=>a});const s={name:"FavButton",props:{isFav:{type:Boolean,default:!1}}};const a=(0,i(14486).A)(s,function(){var t=this,e=t._self._c;return e("button",{staticClass:"fav-button",attrs:{type:"button",tabindex:"0","aria-pressed":t.isFav?"true":"false","aria-label":t.isFav?"Remove from saved cars":"Save this car"},on:{click:function(e){return e.stopPropagation(),t.$emit("toggle")}}},[t.isFav?e("span",{staticClass:"fav-button__fav"},[e("i",{staticClass:"z-love_filled"})]):e("span",{staticClass:"fav-button__stack"},[e("i",{staticClass:"z-love_filled fav-button__base-icon"}),t._v(" "),e("i",{class:["fav-button__top-icon","z-love"]})])])},[],!1,null,"1eb36cda",null).exports},38488(t,e,i){i.r(e),i.d(e,{default:()=>a});const s={name:"page-loader",props:{loaderText:{type:String,default:""},isTransparent:{default:!0},loaderTextColor:{default:"inherit"}}};const a=(0,i(14486).A)(s,function(){var t=this,e=t._self._c;return e("div",{class:["page-loader",{"bg-white":"false"==t.isTransparent}]},[e("div",{staticClass:"loader"}),t._v(" "),t.loaderText&&""!=t.loaderText?e("div",{class:["loader-text",{"text-black":"false"==t.isTransparent}],style:{color:t.loaderTextColor}},[t._v("\n "+t._s(t.loaderText)+"\n ")]):t._e()])},[],!1,null,null,null).exports},67052(t,e,i){i.r(e),i.d(e,{default:()=>n});var s=i(9124),a=i(10834);const o={components:{SlidePopUp:s.default},props:["showPopup"],data:()=>({subscription_data:[],popupData:{},pendingMobileCloseEvent:null}),methods:{...(0,a.mapActions)({fetchProductDetails:"Search/fetchProductDetails"}),handleMobileCtaClick(){this.pendingMobileCloseEvent="ctaClick",this.$refs.mobilePopup?this.$refs.mobilePopup.onModalClose():this.$emit("ctaClick")},handleMobilePopupClosed(){const t=this.pendingMobileCloseEvent||"close";this.pendingMobileCloseEvent=null,this.$emit(t)}},computed:{...(0,a.mapGetters)({isMobile:"App/isMobile",selectedProductType:"Search/selectedProductType"})},mounted(){const t=localStorage.getItem("product_type")||this.$route.query.product_type||this.selectedProductType||"NORMAL";this.fetchProductDetails(t).then(t=>{this.subscription_data=t?.benefits||[],this.popupData=t||{}})}};const n=(0,i(14486).A)(o,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"subscription-popup"},[e("transition",{attrs:{name:"subscription-popup-fade"}},[t.showPopup&&!t.isMobile?e("div",{staticClass:"subscription-popup__desktop-popup"},[e("div",{staticClass:"subscription-popup__desktop-popup--close-btn",on:{click:function(e){return t.$emit("close")}}},[e("i",{staticClass:"z-close"})]),t._v(" "),e("div",{staticClass:"subscription-popup__container"},[e("img",{staticClass:"subscription-popup__img",attrs:{src:t.popupData.banner_img,alt:"zoomcar subscription"}}),t._v(" "),e("div",{staticClass:"subscription-popup__info"},[e("div",{staticClass:"subscription-popup__title"},[t._v("\n Benefits\n ")]),t._v(" "),t._l(t.subscription_data,function(i,s){return e("div",{key:s,staticClass:"subscription-popup__content"},[e("div",{staticClass:"subscription-popup__content-img"},[e("img",{attrs:{src:i.image_url}})]),t._v(" "),e("div",{staticClass:"subscription-popup__content-text"},[e("div",{staticClass:"subscription-popup__content-title"},[t._v("\n "+t._s(i.title)+"\n ")]),t._v(" "),e("div",{staticClass:"subscription-popup__content-desc"},[t._v("\n "+t._s(i.description)+"\n ")])])])}),t._v(" "),e("div",{staticClass:"subscription-popup__button",on:{click:function(e){return t.$emit("ctaClick")}}},[t._v("\n Got it\n ")])],2)])]):t._e()]),t._v(" "),t.isMobile?e("SlidePopUp",{ref:"mobilePopup",staticClass:"subscription-popup__popup",attrs:{isCustomLayout:!0,showPopUp:t.showPopup,showTopBorder:!1},on:{modalClosed:t.handleMobilePopupClosed}},[e("div",{staticClass:"subscription-popup__container"},[e("img",{staticClass:"subscription-popup__img",attrs:{src:t.popupData.banner_img,alt:"zoomcar subscription"}}),t._v(" "),e("div",{staticClass:"subscription-popup__info"},[e("div",{staticClass:"subscription-popup__title"},[t._v("\n Benefits\n ")]),t._v(" "),t._l(t.subscription_data,function(i,s){return e("div",{key:s,staticClass:"subscription-popup__content"},[e("div",{staticClass:"subscription-popup__content-img"},[e("img",{attrs:{src:i.image_url}})]),t._v(" "),e("div",{staticClass:"subscription-popup__content-text"},[e("div",{staticClass:"subscription-popup__content-title"},[t._v("\n "+t._s(i.title)+"\n ")]),t._v(" "),e("div",{staticClass:"subscription-popup__content-desc"},[t._v("\n "+t._s(i.description)+"\n ")])])])}),t._v(" "),e("div",{staticClass:"subscription-popup__button",on:{click:t.handleMobileCtaClick}},[t._v("\n Got it\n ")])],2)])]):t._e()],1)},[],!1,null,null,null).exports},85680(t,e,i){i.d(e,{A:()=>s});const s=i(45811).A},73247(t,e,i){i.d(e,{A:()=>l});i(74423);var s=i(39296),a=i(85680),o=i(43241),n=i(85046);const r={__name:"car-card",props:{car:{type:Object,required:!0},borderless:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const i=t,r=(0,s.ref)(null),c=(0,s.ref)(!1);let l;
1const d=(0,s.getCurrentInstance)().proxy.$store,u=(0,s.computed)(()=>d.getters["User/favIds"]||[]),p=(0,s.computed)(()=>Boolean(d.getters["User/authToken"])),h=(0,s.ref)(!1);(0,s.watch)(u,t=>{h.value=t.includes(i.car.car_id)},{immediate:!0});const _=()=>{const t=!h.value;h.value=t,d.dispatch("User/setFavUnfav",{id:i.car.car_id,isFav:t}).then(()=>d.dispatch("User/fetchFavIds")).catch(()=>{h.value=!t})};return(0,s.onMounted)(()=>{l=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(c.value=!0,l.unobserve(t.target))})}),r.value&&l.observe(r.value)}),(0,s.onBeforeUnmount)(()=>{l&&r.value&&l.unobserve(r.value)}),{__sfc:!0,props:i,emits:e,placeholder:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Crect width='600' height='400' fill='%23EBEBEB'/%3E%3C/svg%3E",imgRef:r,loaded:c,observer:l,store:d,favIds:u,isLoggedIn:p,isFav:h,saveFav:_,handleFavClick:()=>{p.value?_():n.q.$emit("showLoginPrompt",()=>_())},handleKeydown:t=>{t.target===t.currentTarget&&("Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),e("click",i.car)))},handlePriceLineClick:()=>{const t=i.car.price_line_2?.fare_breakup;t&&n.q.$emit("showPriceBreakup",t)},CarCardRatings:a.A,FavButton:o.A}}};var c=(0,i(14486).A)(r,function(){var t=this,e=t._self._c,i=t._self._setupProxy;return e("div",{class:["car-card",{"car-card--borderless":t.borderless,"car-card--professional-host":t.car.is_professional_host,"car-card--guest-favourite":!t.car.is_professional_host&&"guest_favourite"==t.car.decoration}],attrs:{"data-card-nav-item":"",role:"button",tabindex:"0","aria-label":`Open ${t.car.name}`},on:{click:function(e){return t.$emit("click",t.car)},keydown:i.handleKeydown}},[e("div",{staticClass:"car-image-wrapper"},[e("div",{staticClass:"car-img-frame"},[e("img",{ref:"imgRef",staticClass:"car-img",attrs:{src:i.loaded?t.car.images?.[0]:i.placeholder,alt:t.car.name,width:"306",height:"200",loading:"lazy",decoding:"async"}}),t._v(" "),e("div",{staticClass:"car-card__fav"},[e(i.FavButton,{attrs:{isFav:i.isFav},on:{toggle:i.handleFavClick}})],1),t._v(" "),t.car&&t.car.rating?e("div",{staticClass:"car-card__rating"},[e(i.CarCardRatings,{attrs:{carData:t.car,"new-card":!0}})],1):t._e()])]),t._v(" "),e("div",{staticClass:"car-card__body"},[e("div",{staticClass:"car-details"},[e("h3",{staticClass:"car-name"},[t._v(t._s(t.car.name))]),t._v(" "),e("div",{staticClass:"pricing-row"},[e("span",{staticClass:"price-current"},[t._v("\n "+t._s(t.car.price_line_1&&t.car.price_line_1.normal_text)+"\n ")]),t._v(" "),t.car.price_line_1&&t.car.price_line_1.striked_text?e("span",{staticClass:"price-striked"},[t._v("\n "+t._s(t.car.price_line_1.striked_text)+"\n ")]):t._e(),t._v(" "),t.car.discount?e("span",{staticClass:"price-discount"},[t._v("\n "+t._s(t.car.discount.text)+"\n ")]):t._e(),t._v(" "),t.car.price_line_2&&t.car.price_line_2.header&&t.car.price_line_2.fare_breakup?e("button",{staticClass:"price-fees",attrs:{type:"button","aria-haspopup":"dialog"},on:{click:function(t){return t.stopPropagation(),i.handlePriceLineClick.apply(null,arguments)}}},[t._v("\n "+t._s(t.car.price_line_2.header)+"\n ")]):t._e()]),t._v(" "),t.borderless?t._e():[e("div",{staticClass:"specifications"},t._l(t.car.accessories,function(i,s){return e("span",{key:s,staticClass:"spec-item"},[t._v("\n "+t._s(i)),s<t.car.accessories.length-1?e("span",{staticClass:"dot"},[t._v(" . ")]):t._e()])}),0),t._v(" "),e("div",{staticClass:"delivery-row"},t._l(t.car.delivery_info,function(i,s){return e("div",{key:s,staticClass:"delivery-chip",style:i.color?{color:i.color}:null},[i.icon?e("i",{class:`z-${i.icon.toLowerCase()}`}):t._e(),t._v(" "),e("span",[t._v(t._s(i.text))])])}),0)]],2),t._v(" "),t.car.is_professional_host?e("div",{staticClass:"car-card__tag"},[e("img",{attrs:{src:"https://zoomcar-assets.zoomcar.com/images/original/a5fbbf45998ec31529b80d13d5d533f5813c90ce.png?1777101414",alt:"professional host tag",width:"24",height:"24",loading:"lazy",decoding:"async"}}),t._v(" "),e("span",{staticClass:"car-card__tag-text"},[t._v("Professional Host")])]):"guest_favourite"==t.car.decoration?e("div",{staticClass:"car-card__tag car-card__tag--guest-favourite"},[e("img",{attrs:{src:"/img/guest-favourite-with-crown.svg",alt:"guest favourite",width:"119",height:"24",loading:"lazy",decoding:"async"}})]):t._e()])])},[],!1,null,"30c3325f",null);const l=c.exports},90743(t,e,i){i.d(e,{A:()=>
1o});var s=i(62061);const a={name:"HomeCarouselNew",props:{cards:{type:Array,default:()=>[]},heading:{type:String},subheading:{type:String,default:null},subheadingLink:{type:String,default:null},subheadingLinkText:{type:String,default:null},headingLink:{type:String,default:null},visibleCards:{type:Number,default:4},buttonText:{type:String},id:{type:String,required:!0},filters:{type:Array,default:()=>[]},category:{type:String,default:null}},data:()=>({carouselViewWidth:0,currentSlide:0,totalSlides:0,visibleCardCount:0,cardWidth:0,isLoaded:!1,visibilityWatcher:null,hasStartedWatching:!1,scrollSyncListener:null}),updated(){this.isLoaded&&this.cards.length&&(this.setupCarousel(),this.hasStartedWatching||(this.watchForVisibility(),this.hasStartedWatching=!0))},beforeDestroy(){if(this.visibilityWatcher&&this.visibilityWatcher.disconnect(),this.scrollSyncListener){const t=document.querySelector(`.home-carousel-new-container-visible-${this.id}`);t&&t.removeEventListener("scroll",this.scrollSyncListener)}},methods:{setupCarousel(){const t=document.querySelector(`.home-carousel-new-container-visible-${this.id}`),e=document.querySelector(`.home-carousel-new-container-carousel-element-${this.id}`);if(!e||!t)return;const i=e.offsetWidth;this.cardWidth=i+20,this.carouselViewWidth=t.offsetWidth||0,this.visibleCardCount=Math.floor(this.carouselViewWidth/this.cardWidth)||1,this.cards.length<=this.visibleCardCount?this.totalSlides=1:this.totalSlides=this.cards.length-this.visibleCardCount+1,this.currentSlide>=this.totalSlides&&(this.currentSlide=Math.max(0,this.totalSlides-1))},goToSearchPage(t){t?.metaKey||t?.ctrlKey||t?.shiftKey||t?.altKey||t?.button>0||(t?.preventDefault(),this.$emit("go-to-search",this.category))},loadMyComponent(){this.isLoaded=!0,this.$nextTick(()=>{this.setupCarousel();const t=document.querySelector(`.home-carousel-new-container-visible-${this.id}`);t&&!this.scrollSyncListener&&(this.scrollSyncListener=this.syncSlideFromScroll.bind(this),t.addEventListener("scroll",this.scrollSyncListener,{passive:!0}))})},syncSlideFromScroll(){const t=document.querySelector(`.home-carousel-new-container-visible-${this.id}`);if(!t||!this.cardWidth)return;const e=t.scrollLeft,i=Math.round(e/this.cardWidth),s=Math.max(0,Math.min(i,this.totalSlides-1));this.currentSlide!==s&&(this.currentSlide=s)},scrollToSlide(t){this.$nextTick(()=>{const e=document.querySelector(`.home-carousel-new-container-visible-${this.id}`);e&&this.cardWidth&&e.scrollTo({left:t*this.cardWidth,behavior:"smooth"})})},watchForVisibility(){const t=new IntersectionObserver(t=>{t.forEach(t=>{1===t.intersectionRatio&&this.$emit("segment",s.A.call(this).onClickEvent(`${this.id}_section_visible`))})},{threshold:[1]}),e=document.getElementById(`carousel-${this.id}`);e&&(t.observe(e),this.visibilityWatcher=t)},goToNextSlide(){this.$emit("segment",s.A.call(this).onClickEvent(`next_slide_${this.id}`)),this.currentSlide<this.totalSlides-1&&(this.currentSlide++,this.scrollToSlide(this.currentSlide))},goToPreviousSlide(){this.$emit("segment",s.A.call(this).onClickEvent(`previous_slide_${this.id}`)),this.currentSlide>0&&(this.currentSlide--,this.scrollToSlide(this.currentSlide))},goToSlide(t){t>=0&&t<this.totalSlides&&(this.currentSlide=t,this.scrollToSlide(t),this.$emit("segment",s.A.call(this).onClickEvent(`go_to_slide_${t}_${this.id}`)))}}};const o=(0,i(14486).A)(a,function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"lazy-load-comp",rawName:"v-lazy-load-comp",value:{load:t.loadMyComponent,threshold:.1},expression:"{ load: loadMyComponent, threshold: 0.1 }"}],staticStyle:{width:"100%"}},[e("section",{staticClass:"home-carousel-new",attrs:{tabindex:"0","aria-labelledby":`carousel-title-${t.id}`}},[t.heading?e("div",{staticClass:"home-carousel-new-header"},[e("div",{staticClass:"home-carousel-new-header-left"},[e("h2",{staticClass:"home-carousel-new-header-text",class:{"home-carou
1sel-new-header-text--linked":t.headingLink},attrs:{id:`carousel-title-${t.id}`},on:{click:t.goToSearchPage}},[t._v("\n "+t._s(t.heading)+"\n "),t.headingLink?e("i",[e("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}},[e("path",{attrs:{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])]):t._e()]),t._v(" "),t.subheading?e("p",{staticClass:"home-carousel-new-header-subheading"},[t._v("\n "+t._s(t.subheading)+"\n "),t.subheadingLink&&t.subheadingLinkText?e("a",{staticClass:"home-carousel-new-header-subheading-link",attrs:{href:t.subheadingLink},on:{click:t.goToSearchPage}},[t._v("\n "+t._s(t.subheadingLinkText)+"\n ")]):t._e()]):t._e()]),t._v(" "),t.totalSlides>1?e("div",{staticClass:"home-carousel-new-header-arrows"},[e("button",{staticClass:"home-carousel-new-header-arrow home-carousel-new-header-arrow-left",attrs:{type:"button","aria-label":"Show previous cars"},on:{click:t.goToPreviousSlide}},[e("i",{class:["z-chevron_left",{inactive:0===t.currentSlide}]})]),t._v(" "),e("button",{staticClass:"home-carousel-new-header-arrow home-carou
1sel-new-header-arrow-right",attrs:{type:"button","aria-label":"Show next cars"},on:{click:t.goToNextSlide}},[e("i",{class:["z-chevron_right",{inactive:t.currentSlide===t.totalSlides-1}]})])]):t._e()]):t._e(),t._v(" "),t.$slots.filters||t.filters.length?e("div",{staticClass:"home-carousel-new-filters-container"},t._l(t.filters,function(i,s){return e("div",{key:s},[t._t("filters",null,{filter:i})],2)}),0):t._e(),t._v(" "),e("div",{staticClass:"home-carousel-new-container"},[e("div",{class:`home-carousel-new-container-visible home-carousel-new-container-visible-${t.id}`},[e("div",{staticClass:"home-carousel-new-container-carousel",attrs:{id:"carousel-"+t.id}},t._l(t.cards,function(i,s){return e("div",{key:s,class:`home-carousel-new-container-carousel-element home-carousel-new-container-carousel-element-${t.id}`},[t._t("default",null,{card:i,index:s})],2)}),0)])]),t._v(" "),t._t("error"),t._v(" "),t.buttonText?e("div",{staticClass:"home-carousel-new-button",on:{click:function(e){return t.$emit("click")}}},[t._v("\n "+t._s(t.buttonText)+"\n ")]):t._e()],2)])},[],!1,null,"49202e88",null).exports},52652(t,e,i){i.d(e,{X:()=>s});const s=(t,e)=>{let i=e.find(e=>t?.zc_city?.toLowerCase()==e.link_name.toLowerCase()||t?.zc_city?.toLowerCase()==e.name.toLowerCase());if(i)return i;let s={distance:1/0};return e.map(e=>{let i=Math.abs(a(e.lat,e.lng,t.lat,t.lng));return i<=e.radius/1e3&&(s=s.distance>i?{...e,distance:i}:s,!0)}),s},a=(t,e,i,s)=>{const a=t=>t*(Math.PI/180),o=a(i-t),n=a(s-e),r=Math.sin(o/2)*Math.sin(o/2)+Math.cos(a(t))*Math.cos(a(i))*Math.sin(n/2)*Math.sin(n/2);return 6371*(2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r)))}},46190(t,e,i){function s(){return window.loadGoogleApi?window.loadGoogleApi:window.loadGoogleApi=new Promise((t,e)=>{var i=document.createElement("script");i.type="text/javascript",i.onload=i.onreadystatechange=t,i.addEventListener("error",()=>e,!0),document.getElementsByTagName("head")[0].appendChild(i);const s=["key=AIzaSyBzOA4YX3DuJPfYZex3Hd4ejxIZlnblTbc","libraries=places"];i.src=`https://maps.googleapis.com/maps/api/js?${s.join("&")}`})}i.d(e,{Ay:()=>a,fd:()=>s}),window.loadGoogleApi||(window.loadGoogleApi=Promise.resolve()),window.loadMapplsApi||(window.loadMapplsApi=Promise.resolve()),void 0===window.google&&(window.google={}),window.loadGoogleApi=void 0,window.loadMapplsApi=void 0;const a={loadGoogleApiScript:s,loadMapplsApiScript:function(){return window.loadMapplsApi?window.loadMapplsApi:window.loadMapplsApi=new Promise((t,e)=>{var i=document.createElement("script");i.type="text/javascript",i.onload=i.onreadystatechange=t,i.addEventListener("error",()=>e,!0),document.getElementsByTagName("head")[0].appendChild(i),i.src="https://sdk.mappls.com/map/sdk/web?v=3.0&access_token=xyayncsphvgskqumgugmcqrmtabpvxolfbul"})},getCurrentPosition:function(){return new Promise((t,e)=>{navigator.geolocation.getCurrentPosition(({coords:e})=>{t(e)},t=>{e(t)})})}}},9124(t,e,i){i.r(e),i.d(e,{default:()=>n});const s={__name:"ButtonCta",props:{buttonText:{type:String,default:""},isDisabled:{type:Boolean,default:!1},callbackData:{type:[String,Number,Boolean,Array,Object,Date],default:void 0}},emits:["buttonClicked"],setup:(t,{emit:e})=>(defineOptions({name:"ButtonCta"}),{__sfc:!0,emit:e})};var a=i(14486);const o={name:"SlidePopUp",components:{ButtonCta:(0,a.A)(s,function(){var t=this,e=t._self._c,i=t._self._setupProxy;return e("div",{class:["button-container",{disabled:t.isDisabled}],on:{click:function(e){return i.emit("buttonClicked",t.callbackData)}}},[e("div",[t._v(t._s(t.buttonText))])])},[],!1,null,"2f6e4f41",null).exports},props:{isSuccess:{type:Boolean,default:!0},showTopBorder:{type:Boolean,default:!1},showPopUp:{type:Boolean,default:!1},isCustomLayout:{type:Boolean,default:!1},heading:{type:String,default:""},content:{type:String,default:""},buttonText:{type:String,default:""},isBtnDisabled:{type:Boolean,default:!1},isRtl:{type:Boolean,default:!1}},computed:{isMobileViewport(){return this.$store.getters["App/isMobile"]}},data:()=>({showModalBg:!1,showModal:!1,isCloseTransitionActive:!1,closeFallbackTimer:null}),watch:{showPopUp(t,e){if(t!==e)return t?(this.clearCloseFallbackTimer(),this.isCloseTransitionActive=!1,this.showModalBg=!0,void(this.showModal=!0)):void this.onModalClose()}},mounted(){this.$refs.slidePopupRef&&this.$refs.slidePopupRef.addEventListener("transitionend",this.handleTransitionsEnd),this.showPopUp&&setTimeout(()=>{this.showModal=this.showPopUp,this.showModalBg=this.showPopUp},100)},beforeDestroy(){this.clearCloseFallbackTimer(),this.$refs.slidePopupRef&&this.$refs.slidePopupRef.removeEventListener("transitionend",this.handleTransitionsEnd)},methods:{onModalClose(){if(this.showModalBg)return this.isMobileViewport?void(this.isCloseTransitionActive||(this.isCloseTransitionActive=!0,this.showModal=!1,this.closeFallbackTimer=setTimeout(this.completeCloseTransition,650))):(this.showModal=!1,this.showModalBg=!1,void this.$emit("modalClosed"))},handleTransitionsEnd(t){this.isCloseTransitionActive&&t.target===this.$refs.popupPanelRef&&this.completeCloseTransition()},completeCloseTransition(){this.isCloseTransitionActive&&(this.clearCloseFallbackTimer(),this.showModalBg=!1,this.isCloseTransitionActive=!1,this.$emit("modalClosed"))},clearCloseFallbackTimer(){this.closeFallbackTimer&&(clearTimeout(this.closeFallbackTimer),this.closeFallbackTimer=null)},emitButtonClick(){this.$emit("popUpBtnClicked")}}};const n=(0,a.A)(o,function(){var t=this,e=t._self._c;return e("div",{ref:"slidePopupRef",class:["slide-popup",{"show-popup":t.showModalBg},{"closing-popup":t.isCloseTransitionActive}],attrs:{"aria-hidden":t.showModalBg?"false":"true"}},[e("div",{staticClass:"bg-transparent"}),t._v(" "),e("div",{ref:"popupPanelRef",class:["pop-up-content-container",{"slide-up":t.showModal},{"success-border":t.showTopBorder&&t.isSuccess},{"failure-border":t.showTopBorder&&!t.isSuccess}]},[e("div",{class:{"close-btn":!0,"close-btn-rtl":t.isRtl},on:{click:t.onModalClose}},[e("i",{staticClass:"z-close"})]),t._v(" "),t.isCustomLayout?e("div",[t._t("default")],2):e("div",[t.heading?e("div",{class:["popup-heading",{success:t.isSuccess},{failure:!t.isSuccess}]},[t._v("\n "+t._s(t.heading)+"\n ")]):t._e(),t._v(" "),t.content?e("div",{staticClass:"pop-up-content"},[t._v(t._s(t.content))]):t._e(),t._v(" "),t.buttonText?e("ButtonCta",{attrs:{buttonText:t.buttonText,isDisabled:t.isBtnDisabled},on:{buttonClicked:t.emitButtonClick}}):t._e()],1)])])},[],!1,null,null,null).exports},23469(t,e,i){i.r(e),i.d(e,{default:()=>P});var s=[function(){var t=this._self._c;return t("div",{staticClass:"product-page__banner-daily"},[t("picture",[t("source",{attrs:{srcset:"/img/website-revamp/daily_drive_new.avif",type:"image/avif"}}),this._v(" "),t("img",{attrs:{src:"/img/website-revamp/daily_drive_new.png",alt:"Book self-drive cars n
1ow. Drive daily, anywhere - anytime"}})])])},function(){var t=this._self._c;return t("picture",[t("source",{attrs:{srcset:"/img/website-revamp/subscription_new.avif",type:"image/avif"}}),this._v(" "),t("img",{staticClass:"product-page__banner-subscription",attrs:{src:"/img/website-revamp/subscription_new.png",alt:"More days means more benefits with Zoomcar Subscription"}})])},function(){var t=this._self._c;return t("div",{staticClass:"product-page__banner-weekday"},[t("picture",[t("source",{attrs:{srcset:"/img/website-revamp/weekday_commute_new.avif",type:"image/avif"}}),this._v(" "),t("img",{staticClass:"product-page__banner-weekday__bg",attrs:{src:"/img/website-revamp/weekday_commute_new.png",alt:"Lowest price guaranteed on weekdays"}})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"weekday__use-cases"},[e("div",{staticClass:"weekday__use-case"},[e("img",{staticClass:"weekday__use-case-img",attrs:{src:"/img/weekday-commute/office-commute.png",alt:"Office Commutes"}}),t._v(" "),e("span",{staticClass:"weekday__use-case-label"},[t._v("Office Commutes")])]),t._v(" "),e("div",{staticClass:"weekday__use-case"},[e("img",{staticClass:"weekday__use-case-img",attrs:{src:"/img/weekday-commute/short-city-errands.png",alt:"Short city errands"}}),t._v(" "),e("span",{staticClass:"weekday__use-case-label"},[t._v("Short city errands")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"weekday__perks-banner"},[e("img",{staticClass:"weekday__perks-banner-bg",attrs:{src:i(57150),alt:""}}),t._v(" "),e("span",{staticClass:"weekday__perks-banner-text"},[e("img",{staticClass:"weekday__perks-banner-star",attrs:{src:i(38865),alt:""}}),t._v("\n Enjoy up to 30% lower prices with 50kms/day included\n ")])])}],a=(i(74423),i(10834)),o=i(26298),n=i(46190),r=i(49612),c=i(9124),l=i(35798),d=i(52652),u=i(67077),p=i(67052),h=i(31616),_=i(28652),m=i(16289),g=i(90743),v=i(73247),C=i(38488);const y={__name:"weekday-perks",setup:t=>({__sfc:!0,features:[{image:"/img/weekday-commute/Car2.svg",title:"Save on Weekdays",description:"Get special MonâFri pricing on in-city tripsâperfect for office and errands"},{image:"/img/weekday-commute/Pricing1.svg",title:"Flexible Packages and Doorstep Delivery",description:"Modify dates easily if plans change."},{image:"/img/weekday-commute/Quality1.svg",title:"Trusted Cars & Hosts",description:"Curated, well-rated hosts for smoother handovers and predictable weekday availability."}]})};var b=i(14486);const f=(0,b.A)(y,function(){var t=this,e=t._self._c,i=t._self._setupProxy;return e("div",{staticClass:"feature-list"},t._l(i.features,function(i,s){return e("div",{key:s,staticClass:"feature-item",style:{animationDelay:.1*s+"s"}},[e("div",{staticClass:"feature-icon"},[e("img",{attrs:{src:i.image,alt:i.title,loading:"lazy"}})]),t._v(" "),e("div",{staticClass:"feature-content"},[e("h3",{staticClass:"feature-title"},[t._v(t._s(i.title))]),t._v(" "),e("p",{staticClass:"feature-description"},[t._v(t._s(i.description))])])])}),0)},[],!1,null,"2addde28",null).exports,w=window.zcDB,S={name:"ProductPage",components:{CheckBox:m.A,SlidePopUp:c.default,CalendarPopup:u.default,SubscriptionPopup:p.default,HomeCarouselNew:g.A,PageLoader:C.default,WeekdayPerks:f,CarCard:v.A,LocationList:()=>i.e(9303).then(i.bind(i,49627))},data(){return{product:{type:this.$store.getters["Search/selectedProductType"]||localStorage.getItem("product_type")||"NORMAL"},carsData:[],loading:!1,isApiCalled:!1,error:null,showCalendar:!1,showLocation:!1,showCitySelection:!1,showSubscriptionPopup:!1,currentLocationFetching:!1,isFocused:!1,inputOrigin:"",dateStarts:void 0,dateEnds:void 0,citySearch:"",filteredCities:[],places:[],recentPlaces:[],cityData:null,homeProducts:[{title:"Daily Drives",sub_title:"Upto 7 days",type:"NORMAL"},{title:"Subscription",sub_title:"7 day+ rides",type:"ZOOMCAR_SUBSCRIPTION",new_tag:!0,min_duration:10080,enabled:!0,default_start_time:480}],mapplsSession:(0,h.A)()}},created(){const t=this.$store.getters["App/city"];t&&w.history.where({city:t}).sortBy("last_used").then(t=>{this.recentPlaces=t.map(t=>({lat:t.coords.lat,lng:t.coords.lng,title:t.name}))}).catch(t=>{})},mounted(){window.scrollTo({top:0,behavior:"instant"}),this.product.type||(this.product={type:this.selectedProductType||localStorage.getItem("product_type")||"NORMAL"}),this.fetchSuggested();let t=null;this.countries.find(t=>"India"===t.name)?.cities&&(t=this.countries.find(t=>"India"===t.name)?.cities?.find(t=>t.city_link_name===(this.city||this.userCityLinkName)),!t||this.origin?.lat&&this.origin?.lng||this.$store.commit("Search/updateOrigin",t)),this.homeProducts=this.homeProductsTabs,this.setAddressFromCoords({lat:t?.lat,lng:t?.lng}),this.setDefaultLocations(),this.setAndUpdateOrigin(this.defaultLoc?.round_trip,t),window.history.pushState({productPage:!0},""),window.addEventListener("popstate",this.handlePopState)},beforeDestroy(){window.removeEventListener("popstate",this.handlePopState),this.$store.commit("App/setAppPopupState",!1)},computed:{...(0,a.mapGetters)({countries:"Location/countries",city:"App/city",origin:"Search/origin",searchProduct:"Search/product",minDate:"Search/minStarts",suggested:"Search/suggested",starts:"Search/starts",ends:"Search/ends",cities:"Location/cities",country:"App/country",countryCode:"App
1/countryCode",isCitiesLoaded:"Location/isCitiesLoaded",cityDetail:"Location/cityDetail",selectedCar:"HomeNew/selectedCar",userCityLinkName:"User/userCityLinkName",isSubscription:"Search/isSubscription",user:"User/user",homeProductsTabs:"Search/homeProductsTabs",selectedProductType:"Search/selectedProductType",isHDChecked:"Search/isHDChecked"}),productType(){return this.selectedProductType||this.product?.type||"NORMAL"},searchedPlaces(){return this.places},recentPlacesList(){return this.recentPlaces},isWeekdayCalendar(){return"WEEKDAY_COMMUTE"===this.productType},segment(){return l.A.call(this)}},methods:{...(0,a.mapActions)({fetchSuggested:"Search/fetchSuggested",fetchSearched:"Search/fetchSearched",fetchPlaceDetails:"Search/fetchPlaceDetails",fetchGeoAddress:"Search/fetchGeoAddress",setProductData:"Search/setProductData",setSubscription:"Search/setSubscription",setAddressFromCoords:"Search/setAddressFromCoords"}),isProperOriginName:t=>!!t&&(t.includes(" ")||t.includes(",")),syncInputOrigin(){const t=this.origin?.name||"";this.isProperOriginName(t)?this.inputOrigin=t:this.inputOrigin||(this.inputOrigin="")},handlePopState(){this.$store.commit("Search/setActiveProductPage",!1)},handleBack(){this.$store.commit("Search/setActiveProductPage",!1),sessionStorage.setItem("fromProductPage","false"),window.history.state?.productPage&&window.history.back()},handleCarClick(t){this.$store.commit("HomeNew/setSelectedCar",{car_id:t.car_id,cargroup_id:t.cargroup_id})},handleViewAllCars(){this.$emit("segment",this.segment.onClickEvent("view_all_cars_click")),this.handleGetCarClick()},formatDate(t){if(!t)return"";const e=new Date(t),i=e.getDate(),s=e.toLocaleString("en-US",{month:"short"}),a=String(e.getFullYear()).slice(-2);let o=e.getHours();const n=e.getMinutes(),r=o>=12?"pm":"am";o=o%12||12;return`${i} ${s}'${a}, ${o}${`:${String(n).padStart(2,"0")}`} ${r}`},HDClicked(){const t=!this.isHDChecked;this.$emit("segment",this.segment.onClickEvent("hd_clicked")),this.$store.commit("Search/setHDChecked",t);let e=JSON.parse(sessionStorage.getItem("searchQuery"))||{};t?e.delivery_type="home":delete e.delivery_type,sessionStorage.setItem("searchQuery",JSON.stringify(e)),globalThis.dispatchEvent(new Event("deliveryTypeChanged"))},setDefaultLocations(){const t=this.countries.find(t=>"India"===t.name)?.cities;this.defaultLoc={round_trip:this.getselectedProductLocation(t,this.city,"round_trip"),airport:this.getselectedProductLocation(t,this.city,"airport")}},getselectedProductLocation(t,e,i){const s=t?.find(t=>t.city_link_name===e);this.homeProducts=this.homeProductsTabs;const a=s?.home_ingress?.find(t=>t?.type?.toLowerCase()===i?.toLowerCase());return"round_trip"===i&&(this.inputOrigin=a?.location.name,this.$store.commit("Search/setOrigin",{name:a?.location?.name,lat:a?.location?.lat,lng:a?.location?.lng})),a?.location},setAndUpdateOrigin(t,e){this.$store.commit("Search/setOrigin",{name:t?.name,lat:t?.lat,lng:t?.lng}),this.$store.commit("Search/updateOrigin",e),this.$store.commit("Search/resetEndDateTime"),this.inputOrigin=this.origin.name},showLocationSelectionPopup(){this.$store.commit("App/setAppPopupState",!0),this.showLocation=!0,this.$emit("segment",this.segment.onClickEvent("change_location_click"))},showDateSelectionPopup(){this.$store.commit("App/setAppPopupState",!0),this.showCalendar=!0,this.$emit("segment",this.segment.onClickEvent("change_date_click"))},handleSlidePopupClose(){this.$store.commit("App/setAppPopupState",!1),this.showCitySelection=!1,this.showCalendar=!1,this.showLocation=!1},handleDateUpdate(t){this.$emit("segment",this.segment.onClickEvent("date_updated_click")),this.$store.commit("Search/setDateTime",{point:"starts",date:t.start}),this.$store.commit("Search/setDateTime",{point:"ends",date:t.end})},handleDateSubmit(t){this.$emit("segment",this.segment.onClickEvent("date_continue_click")),this.$store.commit("Search/setDateTime",{point:"starts",date:t.start}),this.$store.commit("Search/setDateTime",{point:"ends",date:t.end}),this.showCalendar=!1,this.$store.commit("App/setAppPopupState",!1),this.handleGetCarClick()},autocompleteApiCall:(0,o.sg)(function(t){!t||t.length<4?this.places=[]:this.fetchSearched({text:t}).then(t=>{this.places=t||[]})},300),handleLocationChange(t){this.autocompleteApiCall(t.target.value)},handleLocationSelect(t){this.$emit("segment",this.segment.onClickEvent("location_selected_click")),t.lng||t.lat?(this.$store.commit("Search/setOrigin",{name:t.title,lat:t.lat,lng:t.lng}),this.inputOrigin=t.title):this.fetchPlaceDetails({place_id:t.place_id}).then(e=>{if(e){if(e.zc_city!==this.userCityLinkName){let t={};if(this.cityDetail[e.zc_city])t=this.cityDetail[e.zc_city];else{const i=(0,d.X)(e,this.countries.find(t=>"India"===t.name)?.cities||[]);i?(t={...e,country_code:"IND",countryCode:"in",countryApiCode:"IND",link_name:i.link_name},e.zc_city=i.link_name):(t={...e,country_code:"IND",countryCode:"in",countryApiCode:"IND",link_name:this.userCityLinkName},e.zc_city=this.userCityLinkName)}this.$store.commit("App/setCountry",t.country),this.$store.commit("App/setCountryCode",t.countryCode),this.$store.commit("App/setCountryApiCode",t.countryApiCode),this.$store.commit("App/setCity",e.zc_city),this.$store.commit("User/setUserCityLinkName",e.zc_city),this.$store.commit("Search/setOriginCity",e.zc_city),this.$store.commit("User/setCityData",t),this.$store.commit("App/setIsCitySelected",!0),this.$store.commit("App/setCityNotFound",!1),this.$store.commit("HomeNew/setCarSelectionToSearchFlow",!1),this.$store.commit("HomeNew/setAvailableDates",[]),this.$store.commit("HomeNew/clearSelectedCar"),this.userCityLinkName!=e.zc_city&&this.$router.replace({name:"HomePage",params:{country_code:t.countryCode,city_link:t.link_name}})}this.$store.commit("Search/setOrigin",{name:t.title,lat:e.lat,lng:e.lng}),this.inputOrigin=t.title}}
1),this.showLocation=!1},handleCurrentLocationClick(){this.$emit("segment",this.segment.onClickEvent("current_location_click"));let t=null;this.currentLocationFetching=!0,this.loading=!0,this.showLocation=!1,n.Ay.getCurrentPosition().then(e=>{t=e;const i=(0,o.ol)(e,this.countries.find(t=>"India"===t.name)?.cities),s=i&&i.length?i[0]:null;return this.fetchGeoAddress({coords:{lat:e.latitude,lng:e.longitude}}).then(e=>!(!e||!e[0])&&(this.inputOrigin=e[0]?.display_name,this.$store.commit("Search/setOrigin",{name:e[0]?.display_name,lat:t.latitude,lng:t.longitude}),s&&this.userCityLinkName!==s?.link_name&&(this.$store.commit("App/setCountry",s.country),this.$store.commit("App/setCountryCode",s.countryCode),this.$store.commit("App/setCountryApiCode",s.countryApiCode),this.$store.commit("App/setCity",s.link_name),this.$store.commit("User/setUserCityLinkName",s.link_name),this.$store.commit("Search/setOriginCity",s.link_name),this.$store.commit("User/setCityData",s),this.$store.commit("App/setIsCitySelected",!0),this.$store.commit("App/setCityNotFound",!1),this.$store.commit("HomeNew/setCarSelectionToSearchFlow",!1),this.$store.commit("HomeNew/setAvailableDates",[]),this.$store.commit("HomeNew/clearSelectedCar"),this.$router.replace({params:{country_code:s.countryCode,city_link:s.link_name}})),!0))}).finally(()=>{this.loading=!1,this.currentLocationFetching=!1})},handleCityClick(t,e,i,s,a){this.$emit("segment",this.segment.onClickEvent("city_selected")),this.cityData=a,this.showCitySelection=!1;this.$store.commit("Search/updateOrigin",a),_.Ay.create("city",i),this.setAddressFromCoords({lat:a?.lat,lng:a?.lng}),this.$store.commit("App/setCity",e),this.$store.commit("App/setCountryCode","in");const o="undefined"!==s&&s?s:"IND";this.$store.commit("App/setCountryApiCode",o),this.$store.commit("App/setIsCitySelected",!0),this.$store.commit("Search/setOriginCity",e),this.$store.commit("User/setCityData",a),this.$store.commit("App/setLocale","en"),this.$i18n.locale="en"},filterCities(){const t=this.countries.find(t=>"India"===t.name)?.cities;this.filteredCities=t.filter(t=>t.city_link_name.toLowerCase().indexOf(this.citySearch?.toLowerCase())>-1)},handleGetCarClick(){this.$emit("segment",this.segment.onClickEvent("search_car_click")),sessionStorage.setItem("search_session_id",(0,r.A)()),sessionStorage.setItem("location",JSON.stringify(this.origin)),sessionStorage.setItem("fromProductPage","true"),this.$store.commit("HomeNew/setCarSelectionToSearchFlow",!1);const t=this.origin,e=localStorage.getItem("product_type")||this.productType,i="ZOOMCAR_SUBSCRIPTION"===e;this.$store.commit("Search/setSelectedProductType",e),"NORMAL"!==e&&"ZOOMCAR_SUBSCRIPTION"!==e||this.setSubscription(i),this.$router.push({name:"SearchPage",query:{lat:t.lat,lng:t.lng,type:e,starts:new Date(this.starts).getTime(),ends:new Date(this.ends).getTime(),car_id:this.selectedCar.car_id,delivery_type:this.isHDChecked?"home%2Cairport":"",subscription:i,product_type:e},params:{city_link:this.city||this.userCityLinkName,country_code:this.countryCode}})},switchToSubscription(){const t=new Date(this.starts),e=new Date(this.ends);e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),this.$store.commit("Search/setDateTime",{point:"starts",date:t}),this.$store.commit("Search/setDateTime",{point:"ends",date:e}),this.setSubscription(!0),this.handleGetCarClick()},onFocus(){this.isFocused=!0,this.showLocation=!0},onBlur(){this.isFocused=!1,this.inputOrigin=this.origin.name}},watch:{origin(){this.syncInputOrigin()},selectedProductType(t){this.product={type:t||localStorage.getItem("product_type")||"NORMAL"}},city(){this.fetchSuggested()},countries(){const t=this.countries.find(t=>"India"===t.name)?.cities?.find(t=>t.city_link_name===(this.city||this.userCityLinkName));t&&(this.homeProducts=this.homeProductsTabs,this.origin?.lat&&this.origin?.lng||this.$store.commit("Search/updateOrigin",t),!this.isProperOriginName(this.origin?.name)&&t.lat&&t.lng&&this.setAddressFromCoords({lat:t.lat,lng:t.lng}))},homeProductsTabs(t){this.homeProducts=t}}};var k=(0,b.A)(S,function(){var t=this,e=t._self._c;return e("section",{staticClass:"product-page"},[t.loading?e("div",[e("PageLoader")],1):e("div",{staticClass:"product-page__banner",class:`product-page__banner--${t.productType}`},[e("button",{staticClass:"product-page__back",attrs:{"aria-label":"Go back"},on:{click:t.handleBack}},[e("i",{staticClass:"z-chevron_left",attrs:{"aria-hidden":"true"}})]),t._v(" "),"NORMAL"===t.productType?[t._m(0)]:"ZOOMCAR_SUBSCRIPTION"===t.productType?[t._m(1)]:"WEEKDAY_COMMUTE"===t.productType?[t._m(2)]:t._e()],2),t._v(" "),e("div",{staticClass:"search"},[e("form",{staticClass:"search__form"},[e("div",{staticClass:"search__main"},[e("div",{staticClass:"search__input-group",attrs:{"aria-label":"Change Selected location"},on:{click:t.showLocationSelectionPopup}},[e("i",{staticClass:"z-search",attrs:{"aria-hidden":"true"}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputOrigin,expression:"inputOrigin"}],staticClass:"search__input",attrs:{type:"text",placeholder:"Search for the car location","aria-label":"Selected location",readonly:""},domProps:{value:t.inputOrigin},on:{input:[function(e){e.target.composing||(t.inputOrigin=e.target.value)},t.handleLocationChange]}}),t._v(" "),e("button",{staticClass:"search__icon-btn",attrs:{"aria-label":"Select Current Location"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.handleCurrentLocationClick.apply(null,arguments)}}},[e("i",{staticClass:"z-my_location",attrs:{"aria-hidden":"true"}})])]),t._v(" "),e("div",{staticClass:"search__dates",on:{click:t.showDateSelectionPopup}},[e("div",{staticClass:"search__date"},[e("label",{staticClass:"search__date-label"},[t._v("Trip Starts")]),t._v(" "),e("time",{staticClass:"search__date-value"},[t._v(t._s(t.formatDate(t.starts)))])]),t._v(" "),e("div",{staticClass:"search__date"},[e("label",{staticClass:"search__date-label"},[t._v("Trip Ends")]),t._v(" "),e("time",{staticClass:"search__date-value"},[t._v(t._s(t.formatDate(t.ends)))])])]),t._v(" "),e("div",{staticClass:"search__hd"},[e("check-box",{attrs:{checked:t.isHDChecked},on:{CheckboxClick:t.HDClicked}}),t._v(" "),e("div",{staticClass:"search__hd-label"},[t._v("\n Delivery & Pick-up, from anywhere\n ")])],1),t._v(" "),e("button",{staticClass:"search__submit",attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.handleGetCarClick.apply(null,arguments)}}},[t._v("\n Search Cars\n ")])])])]),t._v(" "),"WEEKDAY_COMMUTE"===t.productType?e("div",{staticClass:"weekday"},[e("p",{staticClass:"weekday__title"},[t._v("Perfectly tailored for")]),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),e("weekday-perks")],1):t._e(),t._v(" "),e("calendar-popup",{staticClass:"calendar-popup--tall-mobile",attrs:{showCalendar:t.showCalendar,autoSwitch:!0,isWeekdayCalendar:t.isWeekdayCalendar},on:{update:t.handleDateUpdate,submit:t.handleDateSubmit,close:function(e){t.showCalendar=!1}}}),t._v(" "),e("subscription-popup",{attrs:{showPopup:t.showSubscriptionPopup},on:{close:function(e){t.showSubscriptionPopup=!1},ctaClick:function(e){return t.switchToSubscription()}}}),t._v(" "),e("SlidePopUp",{staticClass:"search__popup",attrs:{isCustomLayout:!0,showPopUp:t.showLocation||t.showCitySelection,showTopBorder:!1},on:{modalClosed:t.handleSlidePopupClose}},[t.showLocation?e("section",{staticClass:"search__popup-content"},[e("div",{staticClass:"search__input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputOrigin,expression:"inputOrigin"}],staticClass:"search__input",attrs:{type:"text",placeholder:"Search for the car location","aria-label":"Search location"},domProps:{value:t.inputOrigin},on:{input:[function(e){e.target.composing||(t.inputOrigin=e.target.value)}
1,t.handleLocationChange],focus:t.onFocus,blur:t.onBlur}}),t._v(" "),e("i",{staticClass:"z-search",attrs:{"aria-hidden":"true"}})]),t._v(" "),e("button",{staticClass:"search__current-location-btn",on:{click:t.handleCurrentLocationClick}},[e("i",{staticClass:"z-my_location"}),t._v(" "),e("p",{staticClass:"search__current-location-label"},[t._v("\n "+t._s(t.currentLocationFetching?"Fetching location...":"Current Location")+"\n ")])]),t._v(" "),t.searchedPlaces.length?t._e():e("location-list",{attrs:{list:t.suggested.suggested_pickup_locations,title:"Suggested Locations"},on:{update:t.handleLocationSelect}}),t._v(" "),t.searchedPlaces.length?t._e():e("location-list",{attrs:{list:t.recentPlacesList,title:"Recently searched locations"},on:{update:t.handleLocationSelect}}),t._v(" "),e("location-list",{attrs:{list:t.searchedPlaces,title:"Search Results"},on:{update:t.handleLocationSelect}})],1):t._e(),t._v(" "),t.countries&&t.showCitySelection?e("section",{staticClass:"search__popup-content"},[e("span",{staticClass:"search__city-heading"},[t._v("Select City")]),t._v(" "),e("div",{staticClass:"search__input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.citySearch,expression:"citySearch"}],staticClass:"search__input",attrs:{type:"text",placeholder:"Search","aria-label":"Search City"},domProps:{value:t.citySearch},on:{input:[function(e){e.target.composing||(t.citySearch=e.target.value)},t.filterCities]}}),t._v(" "),e("i",{staticClass:"z-search",attrs:{"aria-hidden":"true"}})]),t._v(" "),e("section",{staticClass:"search__city-results"},t._l(t.filteredCities,function(i){return e("button",{key:i.id,staticClass:"search__city-btn",class:{"search__city-btn--selected":t.city===i.link_name},on:{click:function(e){return t.handleCityClick(t.country[0].name,i.link_name,i.name,t.country[0].iso_alpha_3,i)}}},[t._v("\n "+t._s(i.name||"bangalore")+"\n ")])}),0)]):t._e()])],1)},s,!1,null,"19c10de6",null);const P=k.exports},45811(t,e,i){i.d(e,{A:()=>a});const s={__name:"CarCardRatings",props:{carData:{type:Object,required:!0},newCard:{type:Boolean,default:!1}},setup:t=>({__sfc:!0,props:t})};const a=(0,i(14486).A)(s,function(){var t=this,e=t._self._c;t._self._setupProxy;return t.carData.rating?e("section",{staticClass:"car-card-ratings__action"},[e("section",{class:{"car-card-ratings__action-rating":!0,"guest-fav":t.carData.decoration&&"guest_favourite"===t.carData.decoration,bad:t.carData.rating&&"BAD"===t.carData.rating.type,new:t.carData.rating&&"NEW"===t.carData.rating.type}},[t.carData&&t.carData.rating?e("section",{staticClass:"car-card-ratings__action-rating-text"},[e("i",{class:{"z-crown_fill":t.carData.decoration&&"guest_favourite"===t.carData.decoration,"z-star_fill":"guest_favourite"!==t.carData.decoration}}),t._v(" "),e("span",[t._v(t._s(t.carData.rating.value||t.carData.rating.type))]),t._v(" "),t.carData.rating.trips?e("span",[t._v("("+t._s(t.carData.rating.trips)+")")]):t._e()]):t._e()]),t._v(" "),t.carData.rating&&"NEW"===t.carData.rating.type&&t.carData.rating.value&&!t.newCard?e("span",{staticClass:"car-card-ratings__new"},[t._v("\n "+t._s(t.carData.rating.text))]):t.carData.rating&&"GUEST_FAVORITE"===t.carData.rating.type&&!t.newCard?e("span",{staticClass:"car-card-ratings__guest-fav"},[e("img",{attrs:{src:"/img/guest-favourite.svg",alt:"Guest Favourite",loading:"lazy",decoding:"async"}})]):t.carData.rating&&"BAD"===t.carData.rating.type&&t.carData.rating.value&&!t.newCard?e("span",{staticClass:"car-card-ratings__bad"}):t.carData.rating.value&&!t.newCard?e("span",{staticClass:"car-card-ratings__rating-text"},[t._v("\n "+t._s(t.carData.rating.text||t.carData.rating.color.charAt(0).toUpperCase()+t.carData.rating.color.slice(1).toLowerCase()))]):t._e()]):t._e()},[],!1,null,"99c56068",null).exports},57150(t,e,i){t.exports=i.p+"d826a977970e28277c75.png"},38865(t,e,i){t.exports=i.p+"1dd9202abe2e976bbd69.svg"}}]);
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.