1"use strict";(globalThis.webpackChunkzoomcar_com=globalThis.webpackChunkzoomcar_com||[]).push([[7807,8488],{38488(t,e,a){a.r(e),a.d(e,{default:()=>i});const s={name:"page-loader",props:{loaderText:{type:String,default:""},isTransparent:{default:!0},loaderTextColor:{default:"inherit"}}};const i=(0,a(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},69295(t,e,a){a.r(e),a.d(e,{default:()=>C});var s=a(72346),i=a(61394);function o(){const{Cart:t,User:e,Search:a}=this.$store.state,o=JSON.parse(sessionStorage.getItem("utm_params"))||{},n=sessionStorage.getItem("referrer")||"";return{get onLoad(){let r,l;try{r=(0,s.A)(t.data.starts,"yyyy-MM-dd HH:mm:ss"),l=(0,s.A)(t.data.ends,"yyyy-MM-dd HH:mm:ss")}catch(t){r="",l=""}return{Category:"page","New Event Screen":"PaymentOptions",Category_ID:"payment_options_page",device_id:i.Ay.getItem("device_id"),track:"page","Start time":r,"End time":l,Location:t.data.location_name,context_traits_user_id:e.info.user_id,context_traits_phone:e.info.phone,context_traits_email:e.info.email,City:e.currentCity.link_name,Cargroup:t.data.car_id,Booking_Type:t.data.type,"Location Type":a.product,...o,referrer:n}},pageLoaded:t=>({Category:"API_Response",context_traits_email:e.info.email,City:e.currentCity.link_name,Category_ID:"payment_response",User_ID:e.info.user_id,device_id:i.Ay.getItem("device_id"),response:t,...o,referrer:n}),onPaymentOptionClick:()=>({Category:"Link_Clicked",Category_ID:"payment_screen_option_toggled",device_id:i.Ay.getItem("device_id"),"Event Bucket":"New Payment Option click","New Event Screen":"New Payment Screen",...o,referrer:n}),get backButtonClicked(){return{"Event Bucket":"New Payment Option","New Event Screen":"New Payment Screen",Category:"Link_Clicked",device_id:i.Ay.getItem("device_id"),Category_ID:"payment_back_button",context_traits_user_id:e.info.user_id,context_traits_phone:e.info.phone,context_traits_email:e.info.email,City:e.currentCity.link_name,...o,referrer:n}},onPayButtonClick:()=>({"Event Bucket":"New Payment Mode","New Event Screen":"New Payment Screen",device_id:i.Ay.getItem("device_id"),Category:"Link_Clicked",Category_ID:"payment_screen_pay_now",context_traits_user_id:e.info.user_id,context_traits_phone:e.info.phone,context_traits_email:e.info.email,City:e.currentCity.link_name,...o,referrer:n}),onRetryPayment:t=>({"Event Bucket":"New Payment Option",Category:"Link_Clicked",Category_ID:"Retry_Payment",device_id:i.Ay.getItem("device_id"),context_traits_user_id:e.info.user_id,...o,referrer:n})}}var n=a(38488),r=a(10834);const l=a(4886).A;var c=a(31302);const d={name:"AssuredInfoPopup",props:{showPopup:Boolean,assuredSheetData:{type:Object,default:null}},components:{ChargesTimeline:c.A},methods:{handleClose(){this.$emit("close")}}};var p=a(14486);const u=(0,p.A)(d,function(){var t=this,e=t._self._c;return e("div",{class:["pop-up-container assured-info-popup",{"show-popup":t.showPopup}]},[e("div",{staticClass:"bg-transparent"}),t._v(" "),e("div",{staticClass:"pop-up-content-container slide-up"},[e("div",{staticClass:"close-btn",on:{click:function(e){return t.$emit("close")}}},[e("i",{staticClass:"z-close"})]),t._v(" "),e("div",{staticClass:"pop-up-content"},[e("div",{staticClass:"popup__zc-assured-popup--container"},[e("img",{staticClass:"popup__zc-assured-popup--img",attrs:{src:t.assuredSheetData.image_url,alt:"zoomcar assured"}}),t._v(" "),e("div",{staticClass:"popup__zc-assured-popup--info"},[e("div",{staticClass:"popup__zc-assured-popup--title"},[t._v("\n "+t._s(t.assuredSheetData.title)+"\n ")]),t._v(" "),t._l(t.assuredSheetData.items,function(a,s){return e("div",{key:s,staticClass:"popup__zc-assured-popup--content"},[e("img",{staticClass:"popup__zc-assured-popup--content-img",attrs:{src:a.image_url}}),t._v(" "),e("div",{staticClass:"popup__zc-assured-popup--content-text"},[e("div",{staticClass:"popup__zc-assured-popup--content-title"},[t._v("\n "+t._s(a.title)+"\n "),a.tag?e("span",[t._v(t._s(a.tag))]):t._e()]),t._v(" "),e("div",{staticClass:"popup__zc-assured-popup--content-desc"},[t._v("\n "+t._s(a.description)+"\n ")]),t._v(" "),a.charges_timeline?e("ChargesTimeline",{attrs:{chargesTimelineData:a.charges_timeline}}):t._e()],1)])}),t._v(" "),e("div",{staticClass:"popup__zc-assured-popup--button",on:{click:function(e){return t.$emit("close")}}},[t._v("\n "+t._s(t.assuredSheetData.cta)+"\n ")])],2)])])])])},[],!1,null,"1bd3bba9",null).exports;var m=a(91606);const _={name:"CarTripCard",components:{FareSummaryPopup:l,AssuredInfoPopup:u},props:{bookingDetailsData:{type:Object,required:!0},cancellationTitleData:{type:String}},data:()=>({showSummaryPopup:!1,showAssuredPopup:!1}),computed:{booking(){return this.bookingDetailsData?.booking||{}},starts_epoch(){return this.booking.starts_epoch||null},ends_epoch(){return this.booking.ends_epoch||null},displayLocation(){return this.booking.location||""},displayPickupLocation(){return this.booking.pickup_location||""},finalAmount(){return this.booking.pricing?.normal_text||""},oldPrice(){return this.booking.pricing?.striked_text||null},savingsText(){return this.booking.pricing?.discounted_info_text||null},cancellationText(){return this.bookingDetailsData?.highlighted_text||""}},watch:{showSummaryPopup(t){t?this.$store.commit("App/setAppPopupState",!0):this.$store.commit("App/setAppPopupState",!1)}},methods:{formatDateParts(t){if(!t||isNaN(Number(t)))return{date:"",time:""};if(!(0,m.Eg)(Number(t),"yyyy-MM-dd HH:mm"))return{date:"",time:""};return{date:(0,m.Eg)(Number(t),"EEE, dd MMM yyyy"),time:(0,m.Eg)(Number(t),"hh a").replace(/\b(am|pm)\b/,t=>t.toUpperCase())}},getStartDate(){return this.formatDateParts(this.starts_epoch)},getEndDate(){return this.formatDateParts(this.ends_epoch)}
1,getBackgroundColor(){const t=this.bookingDetailsData.booking.new_rating.color;return"GOOD"===t?"#117A41":"AVERAGE"===t?"#0b7a07":"BAD"===t?"#e09f2d":"#1f2166"},toggleFareSummaryPopup(){this.showSummaryPopup=!this.showSummaryPopup}}};const h={name:"payments-booking-details",components:{CarTripCard:(0,p.A)(_,function(){var t=this,e=t._self._c;t._self._setupProxy;return t.bookingDetailsData?e("div",{staticClass:"car-trip-details",class:{"car-trip-details--with-saving-strip":!!t.savingsText}},[e("div",{staticClass:"car-trip-details-content"},[e("div",{staticClass:"header-row"},[e("h2",{staticClass:"car-title"},[t._v(t._s(t.booking.name))]),t._v(" "),t.booking.new_rating?e("div",{staticClass:"rating-badge",style:{backgroundColor:t.getBackgroundColor()}},[e("span",{staticClass:"rating-value"},[t._v("\n "+t._s(t.booking.new_rating?.value)+"\n ")]),t._v(" "),e("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10.313 1.25 12.5 7.5h6.25v.625l-5 3.75 1.875 6.875H15L10 15l-5 3.75h-.625l1.875-6.875-5-3.75c0-.279.002-.345 0-.625H7.5l2.188-6.25h.624z",fill:"#fff","fill-rule":"evenodd"}})]),t._v(" "),e("span",{staticClass:"rating-trips"},[t._v("\n | "+t._s(t.booking.new_rating?.trips)+" trips\n ")])]):t._e()]),t._v(" "),e("hr",{staticClass:"divider"}),t._v(" "),t.starts_epoch&&t.ends_epoch?e("div",{staticClass:"date-row"},[e("div",{staticClass:"date-col"},[e("div",{staticClass:"date-main"},[t._v(t._s(t.getStartDate().date))]),t._v(" "),e("div",{staticClass:"date-sub"},[t._v(t._s(t.getStartDate().time))])]),t._v(" "),e("div",{staticClass:"date-separator"},[t._v("â")]),t._v(" "),e("div",{staticClass:"date-col"},[e("div",{staticClass:"date-main"},[t._v(t._s(t.getEndDate().date))]),t._v(" "),e("div",{staticClass:"date-sub"},[t._v(t._s(t.getEndDate().time))])])]):t._e(),t._v(" "),t.booking.location_header?e("div",{staticClass:"car-trip-details__address-header"},[t._v(t._s(t.booking.location_header))]):t._e(),t._v(" "),t.booking.location?e("div",{staticClass:"car-trip-details__location"},[e("div",{staticClass:"address-text"},[t._v(t._s(t.displayLocation))])]):t._e(),t._v(" "),t.booking.pickup_location?e("div",{staticClass:"car-trip-details__location"},[e("div",{staticClass:"address-text"},[t._v(t._s(t.displayPickupLocation))])]):t._e(),t._v(" "),t.booking.tags?.length?e("div",{staticClass:"tag-row"},t._l(t.booking.tags,function(a,s){return e("span",{key:s,staticClass:"delivery-tag"},[t._v("\n "+t._s(a.text)+"\n ")])}),0):t._e(),t._v(" "),e("hr",{staticClass:"divider thin"}),t._v(" "),t.booking.assured?.assured_info?e("div",{staticClass:"car-trip-details__zc-assured",on:{click:function(e){t.showAssuredPopup=!0}}},[e("div",{staticClass:"car-trip-details__zc-assured--icon"},[e("img",{attrs:{src:t.booking.assured.assured_info.image_url,alt:"zoomcar assured"}})]),t._v(" "),e("div",{staticClass:"car-trip-details__zc-assured-text-wrapper"},[e("div",{staticClass:"car-trip-details__zc-assured--title"},[t._v("\n "+t._s(t.booking.assured.assured_info.title)+"\n ")]),t._v(" "),e("div",{staticClass:"car-trip-details__zc-assured--text"},[t._v("\n "+t._s(t.booking.assured.assured_info.description)+"\n ")])]),t._v(" "),t.booking.assured.assured_info.primary_action?e("div",{staticClass:"car-trip-details__zc-assured--button-chevron"},[e("i",{class:`z-${t.booking.assured.assured_info.primary_action.ui_type?.toLowerCase()||"chevron_right"}`})]):t._e()]):t._e(),t._v(" "),t.cancellationTitleData?e("div",{staticClass:"location-disclaimer"},[t._v("\n "+t._s(t.cancellationTitleData)+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"fare-container"},[e("div",{staticClass:"pay-now"},[e("span",{staticClass:"final-amount"},[t._v(t._s(t.finalAmount))]),t._v(" "),e("span",{staticClass:"old-price"},[t._v(t._s(t.oldPrice))])]),t._v(" "),e("div",{staticClass:"view-details",on:{click:function(e){t.showSummaryPopup=!0}}},[t._v("\n View Details\n ")])]),t._v(" "),t.savingsText?e("div",{staticClass:"saving-strip"},[t.savingsText?e("div",[t._v(t._s(t.savingsText)+" ð ")]):t._e()]):t._e(),t._v(" "),t.showSummaryPopup?e("FareSummaryPopup",{attrs:{showSummaryPopup:t.showSummaryPopup,final_amount:t.finalAmount,fare_breakup:t.bookingDetailsData.fare_breakup},on:{close:t.toggleFareSummaryPopup}}):t._e(),t._v(" "),t.showAssuredPopup?e("AssuredInfoPopup",{attrs:{showPopup:t.showAssuredPopup,assuredSheetData:t.booking.assured.assured_sheet_data},on:{close:function(e){t.showAssuredPopup=!1}}}):t._e()],1):t._e()},[],!1,null,null,null).exports},props:["bookingId","cancellationTitleData"],data:()=>({bookingDetailsData:null}),computed:{...(0,r.mapGetters)({isMobile:"App/isMobile"}),carImage(){return this.bookingDetailsData?.booking?.car_images}},mounted(){this.bookingId&&this.$store.state.Cart.getBookingDetails(this.bookingId).then(t=>{this.bookingDetailsData=t}).catch(()=>{this.bookingDetailsData={}})}};const g=(0,p.A)(h,function(){var t=this,e=t._self._c;t._self._setupProxy;return t.bookingDetailsData?e("div",{staticClass:"fare-summary"},[e("div",{staticClass:"fare-summary__container"},[t.carImage&&t.carImage.length?e("div",{staticClass:"fare-summary__images"},t._l(t.carImage.slice(0,2),function(a,s){return e("div",{key:s,staticClass:"fare-summary__image-wrapper",class:{"fare-summary__image-wrapper--primary":0===s}},[0===s&&"guest_favourite"===t.bookingDetailsData?.booking?.decoration?e("div",{staticClass:"fare-summary__badge"},[e("img",{staticClass:"fare-summary__badge-icon",attrs:{src:"/img/guest-favourite-with-crown.svg"}})]):t._e(),t._v(" "),e("img",{staticClass:"fare-summary__image",attrs:{src:a}})])}),0):t._e(),t._v(" "),t.bookingDetailsData?.booking?.confirmation_key?e("car-trip-card",{attrs:{bookingDetailsData:t.bookingDetailsData,cancellationTitleData:t.cancellationTitleData}}):t._e()],1)]):t._e()},[],!1,null,null,null).exports;var y=a(26298),v=a(85165);a(2191);const f={name:"page-payment",components:{PageLoader:n.default,PaymentsBookingDetails:g},beforeCreate(){},computed:{...(0,r.mapState)("App",["locale"]),...(0,r.mapGetters)("App",["isMobile"]),...(0,r.mapGetters)({countryApiCode:"App
1/countryApiCode",currency:"App/currency",routeBack:"App/routeBack"}),isTab(){return this.$store.state.App.windowWidth<=900},segment(){return o.call(this)},startTime(){const{Cart:t}=this.$store.state;return t.data.starts},endTime(){const{Cart:t}=this.$store.state;return t.data.ends},type(){const{Cart:t}=this.$store.state;return t.data.type},payableAmount(){const t=this.paymentHandoff;if(t)return Number(t.amount);const{Cart:e}=this.$store.state;return sessionStorage.getItem("cart")?JSON.parse(sessionStorage.getItem("cart")).payableAmount:e.data.payableAmount?e.data.payableAmount:null},paymentHandoff(){return"true"!==this.$route.query.payment_handoff?null:(0,v.I)(this.$route.query.booking_id||this.$route.query.id)},paymentBookingId(){const t=this.paymentHandoff;if(t)return t.booking_id;if("undefined"!=typeof window){const t=new URLSearchParams(window.location.search).get("booking_id");if(t)return t}return this.$route.query.booking_id||this.$route.query.id||""},paymentHandoffProps(){const t=this.paymentHandoff;return t?{remainingPayableAmount:Number(t.amount)}:{}},location(){const{Cart:t}=this.$store.state;return{name:decodeURIComponent(t.data.location_name),lat:t.data.lat,lng:t.data.lng}},city(){return this.$route.params.city_link},userInfo(){const{User:t}=this.$store.state;let e;return t.info&&t.info.email?(e=t.info,sessionStorage.setItem("user-info",JSON.stringify(e))):sessionStorage.getItem("user-info")&&(e=JSON.parse(sessionStorage.getItem("user-info")),t.info={...e}),t.info},isPaymentFailed(){return!!this.$route.params.is_failed},isWebview(){return"true"==this.$route.query.is_webview},checkoutData:()=>JSON.parse((0,i.Gq)("checkoutData")),referrer:()=>sessionStorage.getItem("referrer")||"",paymentHandoffError(){const t=this.$route.params.paymentHandoffError;return"expired"===t?"This payment link has expired or was already used. Please request a new payment link.":"unavailable"===t?"Payment login is temporarily unavailable. Please try again shortly.":""},paymentPageError(){return this.paymentHandoffError?this.paymentHandoffError:this.paymentBookingId?"":"The booking ID is missing. Please reopen the payment link."}},data:()=>({showLoader:!1,loaderText:"Confirming Payment Status...",showNewPaymentComponent:!0,showPaymentToolbaar:!0,isPayModLoading:!0,isIOS:!1,isMobileOfferActive:!1,time:600,displayTime:"10:00",apiUrl:"https://api.zoomcar.com"}),methods:{ensureBookingIdInUrl(){const t=new URL(window.location.href);t.searchParams.get("id")!==this.paymentBookingId&&(t.searchParams.set("id",this.paymentBookingId),window.history.replaceState(window.history.state,document.title,t.pathname+t.search))},cretio(){const{User:t,Cart:e}=this.$store.state;if("undefined"!=typeof dataLayer){const a=new URL(this.$route.fullPath,window.location.origin).href;window.dataLayer.push({event:"Pageview",pagePath:a,pageTitle:"Payment Page"}),window.dataLayer.push({event:"Payment Page",userEmail:`${t.info?t.info.email:""}`,cargroupId:`${e._data?e._data.cargroup_id:""}`,carId:`${e._data?e._data.car_id:""}`,bookingTotalFare:`${e._data?e._data.car_price:""}`})}},vizury(){window.vizLayer={type:"payment_page"}},setMobileOffer(t){t?(this.isMobileOfferActive=!0,this.showPaymentToolbaar=!1):(this.isMobileOfferActive=!1,this.showPaymentToolbaar=!0)},onSegment(t){const[e]=t.detail;e.Type&&"api_response"==e.Type&&this.$emit("segment",this.segment.pageLoaded(e)),e.Type&&"Retry_Payment"==e.Type&&this.$emit("segment",this.segment.onRetryPayment()),e.Type&&"payment_option"==e.Type?this.$emit("segment",{...this.segment.onPaymentOptionClick(),...e}):e.Type&&"pay_button"==e.Type&&this.$emit("segment",{...this.segment.onPayButtonClick(),...e})},onBackButtonClick(){this.$emit("segment",this.segment.backButtonClicked)},setPaymentComp(){"IND"===this.countryApiCode?(this.showNewPaymentComponent=!0,"matchMedia"in window&&window.matchMedia("(max-width:950px)").matches?this.showPaymentToolbaar=!0:this.showPaymentToolbaar=!1):(this.showNewPaymentComponent=!1,this.showPaymentToolbaar=!0)},myEventHandler(t){if(this.showNewPaymentComponent||this.isMobileOfferActive)if("matchMedia"in window&&window.matchMedia("(max-width:950px)").matches){if(this.isMobileOfferActive)return;this.showPaymentToolbaar=!0}else this.isMobileOfferActive=!1,this.showPaymentToolbaar=!1;else this.showPaymentToolbaar=!0},handlePayModLoading(t){const[e]=t.detail;this.isPayModLoading=e},handleBackClickFromPayment(t){const e=JSON.parse(sessionStorage.getItem("routeBack"));t?this.timeOut=setTimeout(()=>this.$router.replace({name:e.name,params:e.params,query:e.query}),1e3):(this.isPaymentFailed||!this.routeBack)&&this.$router.replace({name:e.name,params:e.params,query:e.query})},countdown(){this.time--;let t=parseInt(this.time/60,10),e=parseInt(this.time%60,10);if(this.displayTime=`0${t}:${e>9?e:`0${e}`}`,0===this.time){const t=JSON.parse(sessionStorage.getItem("routeBack"));clearInterval(this.timer),this.$router.replace({name:t.name,params:t.params,query:t.query})}}},created(){if(this.paymentPageError)return;if(this.ensureBookingIdInUrl(),this.routeBack&&"BookingConfirmationPage"!==this.routeBack.name&&"BookingStatusPage"!==this.routeBack.name){const t={name:this.routeBack.name,params:this.routeBack.params,query:this.routeBack.query,path:this.routeBack.path};sessionStorage.setItem("routeBack",JSON.stringify(t))}this.setPaymentComp(),this.timer=setInterval(this.countdown,1e3),window.addEventListener("resize",this.myEventHandler);const{Cart:t}=this.$store.state;window.zcDB.cart.toArray(e=>{t.data=e.pop()}),this.isPaymentFailed;let e=sessionStorage.getItem("cart")?JSON.parse(sessionStorage.getItem("cart")):{};t.data={...e},this.$emit("segment",this.segment.onLoad),this.cretio(),this.vizury()},destroyed(){window.removeEventListener("resize",this.myEventHandler),clearInterval(this.timeOut),clearInterval(this.timer)}
1,mounted(){const t=(0,y.$3)();this.isIOS="iOS"===t}};const C=(0,p.A)(f,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"page page-payment sub-page",class:{"no-scroll":!t.showNewPaymentComponent,bgColor:t.showNewPaymentComponent}},[t.showLoader?e("page-loader",{attrs:{loaderText:t.loaderText,isTransparent:"false"}}):t._e(),t._v(" "),e("div",{staticClass:"payment-toolbar d-f ai-c",class:{"m-b0":t.showNewPaymentComponent}},[e("div",{staticClass:"toolbar-left"},[e("div",{on:{click:t.onBackButtonClick}},[e("router-back",{staticClass:"z-arrow_left",attrs:{customRoute:!(!t.isPaymentFailed&&t.routeBack),to:t.isPaymentFailed?{path:"/"}:{path:t.$route.path,query:t.$route.query}},on:{action:t.handleBackClickFromPayment}})],1),t._v(" "),e("div",{staticClass:"payment-toolbar__logo"},[e("router-link",{attrs:{to:{name:"LandingPageNew"}}},[e("img",{attrs:{src:"/img/zoomcar-logo-new-green-164.png",alt:"zoomcar logo"}})])],1),t._v(" "),t.isMobile?t._e():e("div",{staticClass:"toolbar-details-container"},[e("div",{staticClass:"toolbar-heading"},[t._v("\n Complete Payment\n ")])])]),t._v(" "),e("div",{staticClass:"toolbar-timer"},[e("p",[t._v("Price Locked for")]),t._v(" "),e("span",{staticClass:"timer"},[e("strong",[t._v(t._s(t.displayTime))]),t._v(" Minutes")])])]),t._v(" "),t.isMobile?e("div",{staticClass:"toolbar-details-container"},[e("div",{staticClass:"toolbar-heading"},[t._v("\n Complete Payment\n ")])]):t._e(),t._v(" "),e("div",{staticClass:"container-main"},[t.paymentPageError?e("div",{staticClass:"payment-handoff-error"},[e("h2",[t._v("Unable to continue payment")]),t._v(" "),e("p",[t._v(t._s(t.paymentPageError))])]):[e("web-payments",t._b({staticClass:"payment-options wrapping",staticStyle:{display:"block"},attrs:{"is-payment-failed":t.isPaymentFailed,country:t.countryApiCode,locale:t.locale,city:t.city,currency:t.currency,referrer:t.referrer,"api-url":t.apiUrl},on:{onSegment:t.onSegment,handlePayModLoading:t.handlePayModLoading,handleRouteBack:()=>t.handleBackClickFromPayment(!0)}},"web-payments",t.paymentHandoffProps,!1)),t._v(" "),t.showNewPaymentComponent?e("payments-booking-details",{attrs:{bookingId:t.paymentBookingId,cancellationTitleData:t.checkoutData?.cancellation_policy?.header.title}}):t._e()]],2)],1)},[],!1,null,null,null).exports},31302(t,e,a){a.d(e,{A:()=>o});var s=a(91606);const i={name:"ChargesTimeline",props:{chargesTimelineData:{type:Array,required:!0},showArrows:{type:Boolean,default:!1}},methods:{progressSectionStyle(t,e){let a;switch(t){case"GREY_SIX":a="#666";break;case"GREY_EIGHT":a="#383838";break;case"GREEN_SIX":a="#117A41";break;case"YELLOW_SIX":a="#CC9E1B";break;case"YELLOW_FOUR":a="#FEF8E6";break;default:a="transparent"}return{inlineSize:100*e+"%",backgroundColor:a}},formatedDate:t=>(0,s.Eg)(t,"MMM dd hh:mm a")}};const o=(0,a(14486).A)(i,function(){var t=this,e=t._self._c;return e("div",{staticClass:"charges-timeline"},t._l(t.chargesTimelineData,function(a,s){return e("div",{key:s,staticClass:"charges-timeline__progress",class:{"charges-timeline__section--first":0===s,"charges-timeline__section--last":s===t.chargesTimelineData.length-1},style:t.progressSectionStyle(a.state,a.fraction)},[e("span",[t._v(t._s(a.refund))]),t._v(" "),t.showArrows&&s!==t.chargesTimelineData.length-1?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"41",viewBox:"0 0 9 41",fill:"none"}},[e("path",{attrs:{d:"M4.06149 40.3536C4.25675 40.5488 4.57333 40.5488 4.7686 40.3536L7.95058 37.1716C8.14584 36.9763 8.14584 36.6597 7.95058 36.4645C7.75531 36.2692 7.43873 36.2692 7.24347 36.4645L4.41504 39.2929L1.58662 36.4645C1.39135 36.2692 1.07477 36.2692 0.879508 36.4645C0.684246 36.6597 0.684246 36.9763 0.879508 37.1716L4.06149 40.3536ZM3.91504 1.1201e-08L3.91504 40L4.91504 40L4.91504 -1.1201e-08L3.91504 1.1201e-08Z",fill:"#A8A8A8"}})]):t._e(),t._v(" "),s!==t.chargesTimelineData.length-1&&a.upto_epoch?e("div",{staticClass:"charges-timeline__date"},[t._v("\n "+t._s(t.formatedDate(a.upto_epoch))+"\n ")]):t._e(),t._v(" "),a.text?e("div",{staticClass:"charges-timeline__text"},[t._v("\n "+t._s(a.text)+"\n ")]):t._e()])}),0)},[],!1,null,"28accba8",null).exports},4886(t,e,a){a.d(e,{A:()=>i});const s={name:"FareSummaryPopup",props:{showSummaryPopup:Boolean,final_amount:String,fare_breakup:Array,isCheckoutPage:{type:Boolean,default:!1},isCtaDisabled:{type:Boolean,default:!1},loadingPayment:{type:Boolean,default:!1},summaryData:{type:Object,default:null}},methods:{handleClose(){this.$emit("close")}}};const i=(0,a(14486).A)(s,function(){var t=this,e=t._self._c;return e("div",{class:["pop-up-container fare-summary",{"show-popup":t.showSummaryPopup}]},[e("div",{staticClass:"bg-transparent"}),t._v(" "),e("div",{staticClass:"pop-up-content-container slide-up"},[e("div",{staticClass:"close-btn",on:{click:function(e){return t.$emit("close")}}},[e("i",{staticClass:"z-close"})]),t._v(" "),e("div",{staticClass:"popup-header"},[t.final_amount?e("div",{staticClass:"content"},[e("div",{staticClass:"popup-heading"},[t._v(t._s(t.$t("fare_summary")))]),t._v("\n "+t._s(t.final_amount)+"\n ")]):t._e()]),t._v(" "),t.final_amount&&t.fare_breakup?e("div",{staticClass:"pop-up-content"},[t._l(t.fare_breakup,function(a,s){return e("div",{key:s,class:["fare",{"no-border":s===t.fare_breakup.length-1}]},t._l(a.fare_item,function(a,s){return e("div",{key:s},[a.value?e("div",{class:["fare-item",{highlighted:a.is_highlighted}]},[e("div",{staticClass:"fare-item__info"},[e("div",{staticClass:"fare-item__info-header"},[t._v(t._s(a.header))]),t._v(" "),a.sub_header?e("div",{staticClass:"fare-item__sub-header"},[t._v("\n "+t._s(a.sub_header)+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"value"},[t._v(t._s(a.value))])]):t._e(),t._v(" "),a.disclaimer?e("div",{staticClass:"fare-item__disclaimer"},[e("span",{staticClass:"fare-item__disclaimer-text"},[t._v(t._s(a.disclaimer))])]):t._e()])}),0)}),t._v(" "),t.isCheckoutPage?e("div",{staticClass:"btn-container",on:{click:function(e){return t.$emit("proceed")}}},[e("div",{staticClass:"payment-btn"},[e("div",{staticClass:"button-wrapper"},[e("button",{staticClass:"button-primary",attrs:{disabled:t.isCtaDisabled}},[t.loadingPayment?e("span",{staticClass:"loader-ellipsis"},[t._v(t._s(t.$t("loading")))]):t.summaryData?e("span",[t._v(t._s(t.summaryData.cta&&t.summaryData.cta.action?t.summaryData.cta.action.text:t.$t("proceed_to_pay")))]):t._e()])])])]):t._e()],2):t._e()])])},[],!1,null,"55835450",null).exports}}]);
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.