1"use strict";(self["webpackChunkontrack_website"]=self["webpackChunkontrack_website"]||[]).push([[1636],{61636:function(t,a,e){e.r(a),e.d(a,{default:function(){return b}});var s=e(33740),i=e(3698),o=e(54414),l=e(3449),n=e(36930),r=e(35420),c=e(51554),d=e(2756),m=function(){var t=this,a=t._self._c;return a("div",[a("div",{staticStyle:{"min-height":"80vh"}},[t.loading?a(i.A,{staticClass:"mx-auto",staticStyle:{"max-width":"600px"},attrs:{flat:"",rounded:"xl",height:"50vh"}},[a(l.A,{attrs:{"fill-height":""}},[a("div",{staticClass:"mx-auto text-center"},[a(c.A,{attrs:{indeterminate:""}}),a("div",{staticClass:"ot-subtitle-2 my-2"},[t._v("Checking booking status..")])],1)])],1):a("div",[1==t.paymentDone?a(i.A,{staticClass:"text-center py-5",attrs:{flat:"",color:"#F7DADE"}},[a(l.A,{staticStyle:{"max-width":"600px"}},[a(n.A,{attrs:{size:"50",color:"warning"}},[t._v("mdi-alert-circle-outline")]),a("div",{staticClass:"ot-text-h5 my-2"},[t._v("Booking Pending")]),a("div",{staticClass:"my-2 ot-subtitle-2"},[t._v(" The payment for this booking is still pending. Please check back later or refresh the page after some time to see the status. Rest assured, your money is safe with us. ")])],1)],1):a(i.A,{staticClass:"text-center py-5",attrs:{flat:"",color:"#D5E7F7"}},[a(l.A,{staticStyle:{"max-width":"600px"}},[a(n.A,{attrs:{size:"50",color:"success"}},[t._v("mdi-check-circle-outline")]),a("div",{staticClass:"ot-text-h5 my-2"},[t._v("Booking Confirmed")]),a("div",{staticClass:"ot-subtitle-1 text--disabled"},[t._v(" Order ID: "+t._s(t.bookingId)+" ")])],1)],1),a(i.A,{staticClass:"my-2 mx-auto",attrs:{flat:"","max-width":"600"}},[a(l.A,[a("div",{staticClass:"d-flex",staticStyle:{"justify-content":"space-between"}},[a("div",{staticClass:"ot-subtitle-1"},[t._v("Model Name")]),a("div",{staticClass:"ot-subtitle-1"},[t._v(t._s(t.paymentData.model?.name))])]),a("div",{staticClass:"d-flex",staticStyle:{"justify-content":"space-between"}},[a("div",{staticClass:"ot-subtitle-1"},[t._v("Ref Id")]),a("div",{staticClass:"ot-subtitle-1"},[t._v(" "+t._s(t.paymentData.paymentId||t.paymentData.razorpay_order_id)+" ")])]),a("div",{staticClass:"d-flex",staticStyle:{"justify-content":"space-between"}},[a("div",{staticClass:"ot-subtitle-1"},[t._v("Payment Status")]),a("div",{staticClass:"ot-subtitle-1"},[t._v(" "+t._s(0==t.paymentData.paymentStatus?"Paid":"Pending")+" ")])]),a("div",{staticClass:"d-flex",staticStyle:{"justify-content":"space-between"}},[a("div",{staticClass:"ot-subtitle-1"},[t._v("Start Date")]),a("div",{staticClass:"ot-subtitle-1"},[t._v(" "+t._s(t._f("moment")(t.paymentData.startDate,"ll"))+" , "+t._s(t._f("moment")(t.paymentData.pickupTime,"hh:mm A"))+" ")])]),a("div",{staticClass:"d-flex",staticStyle:{"justify-content":"space-between"}},[a("div",{staticClass:"ot-subtitle-1"},[t._v("Drop Date")]),a("div",{staticClass:"ot-subtitle-1"},[t._v(" "+t._s(t._f("moment")(t.paymentData.endDate,"ll"))+", "+t._s(t._f("moment")(t.paymentData.dropTime,"hh:mm A"))+" ")])]),a("div",{staticClass:"d-flex",staticStyle:{"justify-content":"space-between"}},[a("div",{staticClass:"ot-subtitle-1"},[t._v("Amount")]),a("div",{staticClass:"ot-subtitle-1"},[a("span",{staticClass:"font-weight-bold"},[t._v(t._s(t._f("currency")(t.paymentData.amount))+" ")])])])])],1),a(i.A,{staticClass:"my-2 mx-auto",attrs:{outlined:"","max-width":"600"}},[a(l.A,[a("div",{staticClass:"ot-subtitle-1 mb-2"},[a("span",{staticClass:"font-weight-bold"},[t._v("Pickup At:")]),t._v(" "+t._s(t.paymentData.providerLocation.address)+" ")]),t.paymentData.providerLocation?.gMapLink?a(s.A,{attrs:{outlined:"",href:t.paymentData.providerLocation?.gMapLink,target:"_blank",text:"",color:"primary"}},[a(n.A,{attrs:{left:""}},[t._v("mdi-open-in-new")]),t._v(" Open in map ")],1):t._e()],1)],1),a(i.A,{staticClass:"my-2 mx-auto",attrs:{outlined:"","max-width":"600"}},[a(l.A,[a(d.A,[a(o.A,{staticClass:"my-auto",attrs:{cols:"3"}},[a(r.A,{staticStyle:{"border-radius":"20px"},attrs:{src:"https://on-track-jarvis.s3.ap-south-1.amazonaws.com/explore_bg-1734331459529.webp",alt:"Image Description",cover:""}})],1),a(o.A,[a("div",{staticClass:"ot-subtitle-1"}
1,[t._v(" Explore Bangalore with your two-wheeler ")]),a("div",{staticClass:"ot-subtitle-2"},[t._v(" Exploring Bangalore on a two-wheeler is an unforgettable experience. It gives you the freedom to move at your ... ")]),a(s.A,{staticClass:"my-4",attrs:{outlined:"",flat:"",text:"",color:"primary",small:"",target:"_blank",href:"https://book.on-track.in/two-wheeler-services/blogs/explore-bangalore-with-a-two-wheeler"}},[a(n.A,{attrs:{left:""}},[t._v("mdi-open-in-new")]),t._v(" Read More")],1)],1)],1)],1)],1),a("div",{staticClass:"my-2 mx-auto text-center",attrs:{"max-width":"600"}},[a(s.A,{attrs:{depressed:"",color:"primary",to:"/"}},[t._v(" Go to homepage ")]),0==t.paymentDone?a(s.A,{attrs:{depressed:"",color:"secondary"},on:{click:t.refreshPage}},[a(n.A,{attrs:{left:""}},[t._v("mdi-refresh")]),t._v(" Refresh ")],1):t._e()],1)],1)],1)])},u=[],p=e(37194),v={data(){return{loading:!1,paymentDone:!1,paymentData:null,bookingId:""}},mounted(){this.bookingId=this.$route.params.id,this.checkForStatus()},methods:{refreshPage(){this.checkForStatus()},async checkForStatus(){this.loading=!0;try{const{data:t}=await p.Bo.get("/daily-rentals/booking/"+this.bookingId);this.paymentData=t.bookingDetails,this.paymentDone=this.paymentData?.paymentStatus}catch{alert("Something went wrong!!")}finally{this.loading=!1}}}},h=v,y=e(81656),_=(0,y.A)(h,m,u,!1,null,"353cd337",null),b=_.exports}}]); 2//# sourceMappingURL=1636.4490fe07.js.map
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.