PageSourceSearch

https://www.cvilletaxi.com/wp-content/plugins/limolabs-icabbi/js/models/booking.js?ver=0.2.92

js cvilletaxi.com collected 2026-10-09 21:31:32 UTC 2,511 bytes, 69 lines download raw bytes

1if (typeof LimoLabs === 'undefined') {
2    LimoLabs = {};
3}
4if (typeof LimoLabs.ICabbi === 'undefined') {
5    LimoLabs.ICabbi = {};
6}
7if (typeof LimoLabs.ICabbi.Model === 'undefined') {
8    LimoLabs.ICabbi.Model = {};
9}
10
11LimoLabs.ICabbi.Model.Booking = function() {
12};
13
14LimoLabs.ICabbi.Model.Booking.prototype.DOAddress = null;
15LimoLabs.ICabbi.Model.Booking.prototype.DODetails = null;
16LimoLabs.ICabbi.Model.Booking.prototype.NumberOfLuggage = null;
17LimoLabs.ICabbi.Model.Booking.prototype.NumberOfPax = null;
18LimoLabs.ICabbi.Model.Booking.prototype.PUAddress = null;
19LimoLabs.ICabbi.Model.Booking.prototype.PUDetails = null;
20LimoLabs.ICabbi.Model.Booking.prototype.Account = null;
21LimoLabs.ICabbi.Model.Booking.prototype.AccountUser = null;
22LimoLabs.ICabbi.Model.Booking.prototype.PickUpDate = new Date();
23LimoLabs.ICabbi.Model.Booking.prototype.rideLater = false;
24LimoLabs.ICabbi.Model.Booking.prototype.selectVehicleData = null;
25LimoLabs.ICabbi.Model.Booking.prototype.promoCode = null;
26LimoLabs.ICabbi.Model.Booking.prototype.DOAddressEnable = true;
27LimoLabs.ICabbi.Model.Booking.prototype.wheelchair = 'no';
28LimoLabs.ICabbi.Model.Booking.prototype.manualWheelchair = 'yes';
29
30LimoLabs.ICabbi.Model.Booking.prototype.isValidForQuoting = function() {
31
32    if(this.DOAddressEnable){
33        return this.PUDetails && this.DODetails && null !== this.NumberOfLuggage && null !== this.NumberOfPax;
34    }
35
36    return this.PUDetails && null !== this.NumberOfLuggage && null !== this.NumberOfPax;
37
38};
39
40LimoLabs.ICabbi.Model.Booking.prototype.isValidForCheckout = function() {
41    return this.selectVehicleData && this.isValidForQuoting();
42};
43
44LimoLabs.ICabbi.Model.Booking.prototype.invalidateForCheckout = function() {
45    this.selectVehicleData = null;
46};
47
48LimoLabs.ICabbi.Model.Booking.prototype.hasSameBookingDetailsAs = function(booking) {
49    return angular.equals(this.selectVehicleData, booking.selectVehicleData);
50};
51
52LimoLabs.ICabbi.Model.Booking.prototype.isRideForLater = function(booking) {
53    return (this.PickUpDate.getTime() - Date.now()) > (1000 * 60 * 15) && this.rideLater;
54};
55
56LimoLabs.ICabbi.Model.Booking.prototype.serialize = function() {
57    return angular.toJson(this);
58};
59
60LimoLabs.ICabbi.Model.Booking.unserialize = function(json) {
61    var tmp = angular.fromJson(json);
62
63    var me = new LimoLabs.ICabbi.Model.Booking();
64
65    angular.extend(me, tmp);
66    me.PickUpDate = new Date(me.PickUpDate);
67    
68    return me;
69};

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.