PageSourceSearch

https://book.on-track.in/js/9469.cfc21b68.js

js on-track.in collected 2026-10-01 16:19:18 UTC 7,208 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkontrack_website"]=self["webpackChunkontrack_website"]||[]).push([[9469],{13180:function(t,s,e){e.d(s,{A:function(){return d}});e(28743),e(83725),e(35019);var a=e(95803),i=e(45961),l=e(90569),o=e(58743),r=e(37515),c=e(73381),n=e(30428),h=e(48418),u=e(79785),p=e(86988),d=(0,a.A)(o.A,u.A,h.A,c.A,(0,r.P)("chipGroup"),(0,n.P)("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...h.A.options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return Boolean(this.close)},isClickable(){return Boolean(h.A.options.computed.isClickable.call(this)||this.chipGroup)}},created(){const t=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];t.forEach(([t,s])=>{this.$attrs.hasOwnProperty(t)&&(0,p.q4)(t,s,this)})},methods:{click(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter(){const t=[];return this.isActive&&t.push(this.$createElement(l.A,{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(i.SM,t)},genClose(){return this.$createElement(l.A,{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:t=>{t.stopPropagation(),t.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render(t){const s=[this.genContent()];let{tag:e,data:a}=this.generateRouteLink();a.attrs={...a.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:a.attrs.tabindex},a.directives.push({name:"show",value:this.active}),a=this.setBackgroundColor(this.color,a);const i=this.textColor||this.outlined&&this.color;return t(e,this.setTextColor(i,a),s)}})},89469:function(t,s,e){e.r(s),e.d(s,{default:function(){return f}});var a=e(33740),i=e(3698),l=e(13180),o=e(54414),r=e(3449),c=e(99991),n=e(59483),h=e(36930),u=e(51554),p=e(2756),d=function(){var t=this,s=t._self._c;return s(r.A,{staticClass:"ma-0 pa-0"},[t.loading?s(p.A,[s(o.A,{staticClass:"d-flex justify-center py-15",attrs:{cols:"12"}},[s(u.A,{attrs:{indeterminate:"",color:"primary",size:"64"}})],1)],1):[s("div",{staticClass:"d-flex align-center justify-space-between mb-4"},[s("h2",{staticClass:"mb-0"},[t._v(t._s(t.$t("Purchases")))]),s(l.A,{attrs:{color:"grey lighten-3",small:""}},[t._v(" "+t._s(t.purchaseData.count||0)+" "+t._s(t.$t("total"))+" ")])],1),t.purchaseData.rows&&0!==t.purchaseData.rows.length?t._e():s(i.A,{staticClass:"text-center py-15",attrs:{outlined:"",rounded:"xl"}},[s(h.A,{attrs:{size:"50",color:"grey lighten-1"}},[t._v("mdi-motorbike-off")]),s("div",{staticClass:"mb-0 ot-text-16 mt-2"},[t._v(" "+t._s(t.$t("You haven't purchased any vehicle yet."))+" ")])],1),t._l(t.purchaseData.rows,function(e,o){return s(i.A,{key:o,staticClass:"mb-4",attrs:{outlined:"",rounded:"xl"}},[s("div",{staticClass:"pa-5"},[s("div",{staticClass:"d-flex justify-space-between align-start"},[s("div",[s("div",{staticClass:"ot-text-13 text--disabled"},[t._v(" "+t._s(t.$t("Purchase ID"))+" ")]),s("div",{staticClass:"ot-text-16 font-weight-bold"},[t._v(" "+t._s(e.purchaseId)+" ")])]),s(l.A,{attrs:{small:"",color:t.paymentStatus(e.paymentStatus).color,"text-color":"white"}},[t._v(" "+t._s(t.paymentStatus(e.paymentStatus).label)+" ")])],1),s(n.A,{staticClass:"my-3"}),s("div",{staticClass:"d-flex justify-space-between py-1"},[s("span",{staticClass:"ot-text-14 text--disabled"},[t._v(t._s(t.$t("Registration Number")))]),s("span",{staticClass:"ot-text-14 font-weight-medium"},[t._v(t._s(e.registrationNumber||"-"))])]),s("div",{staticClass:"d-flex justify-space-between py-1"},[s("span",{staticClass:"ot-text-14 text--disabled"},[t._v(t._s(t.$t("Total Amount")))]),s("span",{staticClass:"ot-text-16 font-weight-bold"},[t._v(t._s(t._f("currency")(e.payable)))])]),s(a.A,{staticClass:"mt-2 px-0",attrs:{color:"primary",text:""}
1,on:{click:function(t){e.showDetails=!0}}},[t._v(" "+t._s(t.$t("View More Details"))+" "),s(h.A,{attrs:{right:"",size:"18"}},[t._v("mdi-chevron-right")])],1)],1),s(c.A,{attrs:{"max-width":"420"},model:{value:e.showDetails,callback:function(s){t.$set(e,"showDetails",s)},expression:"row.showDetails"}},[s(i.A,{attrs:{rounded:"xl"}},[s(r.A,{staticClass:"pa-6"},[s("div",{staticClass:"d-flex justify-space-between align-center mb-2"},[s("h3",{staticClass:"mb-0"},[t._v(t._s(t.$t("Purchase Details")))]),s(a.A,{attrs:{icon:""},on:{click:function(t){e.showDetails=!1}}},[s(h.A,[t._v("mdi-close")])],1)],1),t._l({"ReSale Price":e.reSalePrice,"RSA Cost":e.rsaCost,"Insurance Cost":e.insuranceCost,"Warranty Cost":e.warrantyCost,"RTO Cost":e.rtoCost,Miscellaneous:e.miscCost},function(e,a){return s("div",{key:a,staticClass:"d-flex justify-space-between py-1"},[s("span",{staticClass:"ot-text-14 text--disabled"},[t._v(t._s(t.$t(a)))]),s("span",{staticClass:"ot-text-14 font-weight-medium"},[t._v(t._s(t._f("currency")(e)))])])}),s(n.A,{staticClass:"my-3"}),s("div",{staticClass:"d-flex justify-space-between"},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.$t("Total")))]),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t._f("currency")(e.payable)))])]),s("div",{staticClass:"text-center mt-4"},[s(l.A,{attrs:{small:"",color:t.paymentStatus(e.paymentStatus).color,"text-color":"white"}},[t._v(" "+t._s(t.$t("Payment"))+": "+t._s(t.paymentStatus(e.paymentStatus).label)+" ")])],1)],2)],1)],1)],1)})]],2)},v=[],C=(e(83725),e(51339),e(37194)),m={data(){return{purchaseData:{},loading:!0}},mounted(){this.getPurchases()},methods:{paymentStatus(t){return 0===t?{label:this.$t("Pending"),color:"warning"}:1===t?{label:this.$t("Completed"),color:"success"}:{label:this.$t("Failed"),color:"error"}},async getPurchases(){try{this.loading=!0;const{data:t}=await C.t6.get("/app/customer/purchases");this.purchaseData={count:t.count,rows:t.rows.map(t=>({purchaseId:t.purchaseId,registrationNumber:t.registrationNumber,payable:t.payable,reSalePrice:t.reSalePrice,insuranceCost:t.insuranceCost,rtoCost:t.rtoCost,rsaCost:t.rsaCost,warrantyCost:t.warrantyCost,paymentStatus:t.paymentStatus,showDetails:!1}))}}catch(t){console.error(t)}finally{this.loading=!1}}}},b=m,g=e(81656),y=(0,g.A)(b,d,v,!1,null,null,null),f=y.exports}}]);
2//# sourceMappingURL=9469.cfc21b68.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.