@sabstravtech/obtservices 0.2.2505201645 → 0.2.2506041247

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/base/lib/vendor/classes/carhire-enterprise-search.d.ts +1 -0
  2. package/base/lib/vendor/classes/management-info-and-valid.d.ts +2 -0
  3. package/base/lib/vendor/classes/user-favourite.enum.d.ts +1 -0
  4. package/base/lib/vendor/interfaces/Icarhire-enterprise-search.d.ts +1 -0
  5. package/base/lib/vendor/interfaces/Iflight-enterprise-search.d.ts +2 -0
  6. package/base/lib/vendor/interfaces/Ihotel-enterprise-search.d.ts +2 -1
  7. package/base/lib/vendor/interfaces/hotel-stars-to-hide.interface.d.ts +7 -0
  8. package/base/lib/vendor/types/types.d.ts +5 -1
  9. package/base/sabstravtech-obtservices-base.metadata.json +1 -1
  10. package/bundles/sabstravtech-obtservices-base.umd.js +285 -190
  11. package/bundles/sabstravtech-obtservices-base.umd.js.map +1 -1
  12. package/esm2015/base/lib/vendor/classes/cabhire-enterprise-search.js +4 -3
  13. package/esm2015/base/lib/vendor/classes/carhire-enterprise-search.js +36 -9
  14. package/esm2015/base/lib/vendor/classes/eurostar-enterprise-search.js +58 -26
  15. package/esm2015/base/lib/vendor/classes/fast-track-enterprise-search.js +4 -3
  16. package/esm2015/base/lib/vendor/classes/helpers.js +5 -5
  17. package/esm2015/base/lib/vendor/classes/hotel-enterprise-search.js +22 -31
  18. package/esm2015/base/lib/vendor/classes/management-info-and-valid.js +17 -7
  19. package/esm2015/base/lib/vendor/classes/user-favourite.enum.js +2 -1
  20. package/esm2015/base/lib/vendor/interfaces/Icarhire-enterprise-search.js +1 -1
  21. package/esm2015/base/lib/vendor/interfaces/Iflight-enterprise-search.js +1 -1
  22. package/esm2015/base/lib/vendor/interfaces/Ihotel-enterprise-search.js +1 -1
  23. package/esm2015/base/lib/vendor/interfaces/hotel-stars-to-hide.interface.js +1 -1
  24. package/esm2015/base/lib/vendor/services/hotel-avallibility.service.js +5 -3
  25. package/esm2015/base/lib/vendor/services/logon.service.js +6 -3
  26. package/esm2015/base/lib/vendor/services/search.service.js +25 -14
  27. package/esm2015/base/lib/vendor/types/types.js +10 -2
  28. package/fesm2015/sabstravtech-obtservices-base.js +179 -93
  29. package/fesm2015/sabstravtech-obtservices-base.js.map +1 -1
  30. package/package.json +1 -1
@@ -1786,11 +1786,13 @@
1786
1786
  _this.search = function (terms) {
1787
1787
  return rxjs.of([]);
1788
1788
  };
1789
+ _this.searchByTriggerValue = function () {
1790
+ return Promise.resolve([]);
1791
+ };
1789
1792
  Object.assign(_this, managementInfo); // This will automatically call _isValid()
1790
1793
  return _this;
1791
1794
  }
1792
1795
  ;
1793
- ;
1794
1796
  Object.defineProperty(ManagementInfoAndIsValid.prototype, "value", {
1795
1797
  get: function () {
1796
1798
  return this.getValue();
@@ -1817,9 +1819,7 @@
1817
1819
  ManagementInfoAndIsValid.prototype.hasErrors = function (value) {
1818
1820
  var _this = this;
1819
1821
  return new Promise(function (resolve, reject) {
1820
- resolve(_this.mandatory && (!value || value.length === 0)
1821
- ? { hasErrors: true }
1822
- : null);
1822
+ resolve(_this.mandatory && (!value || value.length === 0) ? { hasErrors: true } : null);
1823
1823
  });
1824
1824
  };
1825
1825
  return ManagementInfoAndIsValid;
@@ -1884,6 +1884,23 @@
1884
1884
  _this.availableItems = sugestions;
1885
1885
  }));
1886
1886
  };
1887
+ _this.searchByTriggerValue = function () { return __awaiter(_this, void 0, void 0, function () {
1888
+ var _a, values;
1889
+ return __generator(this, function (_c) {
1890
+ switch (_c.label) {
1891
+ case 0:
1892
+ if (!(!((_a = this.availableItems) === null || _a === void 0 ? void 0 : _a.length) ||
1893
+ (this.tempTriggerMIValueId && this.triggerMIValueId !== this.tempTriggerMIValueId))) return [3 /*break*/, 2];
1894
+ return [4 /*yield*/, rxjs.firstValueFrom(this.basketService.getMiAutoSugestions(this.id, '', this.isLoading, this.serviceId, this.managementInfoValueGroup, this.triggerMIValueId))];
1895
+ case 1:
1896
+ values = _c.sent();
1897
+ this.availableItems = values;
1898
+ this.tempTriggerMIValueId = this.triggerMIValueId;
1899
+ return [2 /*return*/, values];
1900
+ case 2: return [2 /*return*/];
1901
+ }
1902
+ });
1903
+ }); };
1887
1904
  _this.searchNoHash = function (terms) {
1888
1905
  return terms.pipe(operators.debounceTime(300), operators.distinctUntilChanged(), operators.switchMap(function (term) {
1889
1906
  var ob = term.length > 0
@@ -3146,7 +3163,9 @@
3146
3163
  'exel Breakfast',
3147
3164
  'Breakfast Costs',
3148
3165
  'no breakfast',
3149
- 'ROOM ONL'
3166
+ 'ROOM ONL',
3167
+ 'Fee for buffet breakfast',
3168
+ 'RO/RO'
3150
3169
  ];
3151
3170
  var AccessibleIncluded = [
3152
3171
  'Accessibility',
@@ -3331,7 +3350,13 @@
3331
3350
  ServiceProvider["Trenitalia"] = "Trenitalia";
3332
3351
  ServiceProvider["Renfe"] = "Renfe";
3333
3352
  ServiceProvider["Italo"] = "NTV";
3353
+ ServiceProvider["AmadeusCarHire"] = "Amadeus Car Hire";
3334
3354
  })(exports.ServiceProvider || (exports.ServiceProvider = {}));
3355
+ var nonEnterpriseCarServices = [
3356
+ exports.ServiceProvider.SabreCarHire,
3357
+ exports.ServiceProvider.TravelportCarHire,
3358
+ exports.ServiceProvider.AmadeusCarHire
3359
+ ];
3335
3360
  exports.ResendConfirmationEmailOption = void 0;
3336
3361
  (function (ResendConfirmationEmailOption) {
3337
3362
  ResendConfirmationEmailOption["Agent"] = "Agent";
@@ -7008,7 +7033,7 @@
7008
7033
  };
7009
7034
  BaseHelperRoutines.prototype.createFlightFilters = function (journeys, defaultFilters, via) {
7010
7035
  return journeys.reduce(function (filters, result1) {
7011
- var _a;
7036
+ var _a, _b;
7012
7037
  var outStops = result1.outboundFlights.length - 1;
7013
7038
  filters.stops[outStops] = filters.stops[outStops] || {
7014
7039
  display: outStops === 0 ? 'Direct' : outStops + " stop" + (outStops !== 1 ? 's' : ''),
@@ -7017,7 +7042,7 @@
7017
7042
  };
7018
7043
  var requiresReason = result1.unavailable
7019
7044
  ? exports.TravelPolicies.UNAVAILABLE
7020
- : result1.requiresReasonKeys
7045
+ : ((_a = result1.requiresReasonKeys) === null || _a === void 0 ? void 0 : _a.length)
7021
7046
  ? exports.TravelPolicies.ALLOW_WITH_REASON
7022
7047
  : exports.TravelPolicies.IN_POLICY;
7023
7048
  if (requiresReason !== 'Unavailable') {
@@ -7047,7 +7072,7 @@
7047
7072
  // };
7048
7073
  if (flight.fareInfo.type === 'Private') {
7049
7074
  filters.privateFares[flight.fareInfo.title] = filters.privateFares[flight.fareInfo.title] || {
7050
- display: flight.fareInfo.title,
7075
+ display: flight.fareInfo.title === "Corporate Fare" ? "Client" : flight.fareInfo.title,
7051
7076
  selected: false,
7052
7077
  value: flight.fareInfo.title
7053
7078
  };
@@ -7072,7 +7097,7 @@
7072
7097
  result1.outboundFlights.forEach(getAirline);
7073
7098
  }
7074
7099
  result1.outboundFlights.forEach(updateFlightItems);
7075
- var baggageArray = (_a = result1.baggageAllowance) === null || _a === void 0 ? void 0 : _a.filter(function (a) { return (a === null || a === void 0 ? void 0 : a.type) === 'CheckIn'; }).map(function (a) { return a === null || a === void 0 ? void 0 : a.qty; });
7100
+ var baggageArray = (_b = result1.baggageAllowance) === null || _b === void 0 ? void 0 : _b.filter(function (a) { return (a === null || a === void 0 ? void 0 : a.type) === 'CheckIn'; }).map(function (a) { return a === null || a === void 0 ? void 0 : a.qty; });
7076
7101
  var baggage = baggageArray.length ? Math.min.apply(Math, __spreadArray([], __read(baggageArray))) : 0;
7077
7102
  filters.baggage[baggage] = filters.baggage[baggage] || {
7078
7103
  selected: false,
@@ -8553,6 +8578,7 @@
8553
8578
  return this.cabfetcher.fetchList(query);
8554
8579
  };
8555
8580
  CabHireEnterpriseSearch.prototype.gmtGetCabSearchQuery = function (fromLocation, toLocation, dateTme) {
8581
+ var _a, _b;
8556
8582
  var createLocation = function (location) {
8557
8583
  var _a, _b;
8558
8584
  return {
@@ -8577,14 +8603,14 @@
8577
8603
  countryCode: from.countryCode,
8578
8604
  postcode: from.postcode,
8579
8605
  streetAndNumber: from.streetAndNumber,
8580
- town: from.town,
8606
+ town: (_a = from.town) !== null && _a !== void 0 ? _a : undefined,
8581
8607
  },
8582
8608
  toLocation: {
8583
8609
  buildingName: to.buildingName,
8584
8610
  countryCode: to.countryCode,
8585
8611
  postcode: to.postcode,
8586
8612
  streetAndNumber: to.streetAndNumber,
8587
- town: to.town,
8613
+ town: (_b = to.town) !== null && _b !== void 0 ? _b : undefined,
8588
8614
  },
8589
8615
  travellers: this.travellers.map(function (traveller) { return { id: traveller.id }; })
8590
8616
  };
@@ -9455,6 +9481,7 @@
9455
9481
  UserFavorurite.ReplaceBasketWithIntinerary = new UserFavorurite('replaceBasketWithIntinerary');
9456
9482
  UserFavorurite.useKmForCarHire = new UserFavorurite('useKmForCarHire');
9457
9483
  UserFavorurite.distanceUnit = new UserFavorurite('distanceUnit');
9484
+ UserFavorurite.eurostarSearchDefaults = new UserFavorurite('eurostarSearchDefaults');
9458
9485
  var Suppliers = /** @class */ (function () {
9459
9486
  function Suppliers(value) {
9460
9487
  this.value = value;
@@ -9717,6 +9744,13 @@
9717
9744
  _this._cheapestResultPrice = _this.updateLowestPrice(results);
9718
9745
  _this.averageCo2PerItem = _this.helpers.calculateAverageCo2PerItem(results);
9719
9746
  _this.results.next(results);
9747
+ _this.userService.changeUser.subscribe(function () {
9748
+ var isEnterpriseCarHire = _this.userService.userHasServiceProvider(ServiceType.Car, exports.ServiceProvider.EnterpriseCarHire);
9749
+ _this.hasNonEnterpriseCarAccess = isEnterpriseCarHire ? nonEnterpriseCarServices.some(function (provider) { return _this.userService.userHasServiceProvider(ServiceType.Car, provider); }) : true;
9750
+ if (!_this.hasNonEnterpriseCarAccess) {
9751
+ _this.checkAndSetDriverAgeAndPickupTime();
9752
+ }
9753
+ });
9720
9754
  return _this;
9721
9755
  }
9722
9756
  Object.defineProperty(CarhireEnterpriseSearch.prototype, "adults", {
@@ -10222,7 +10256,7 @@
10222
10256
  });
10223
10257
  CarhireEnterpriseSearch.prototype.checkAndSetDriverAgeAndPickupTime = function () {
10224
10258
  var _a;
10225
- if (this._delivery || this._collection) {
10259
+ if (this._delivery || this._collection || !this.hasNonEnterpriseCarAccess) {
10226
10260
  var minDate = moment__default["default"](this.helpers.momentRoundMinutes(this.helpers.makeMomentDayTime(), 30)).add(24, 'hours');
10227
10261
  this._minDate = {
10228
10262
  day: minDate.date(),
@@ -10254,7 +10288,11 @@
10254
10288
  configurable: true
10255
10289
  });
10256
10290
  CarhireEnterpriseSearch.prototype.resetQuery = function () {
10257
- this.updateTempParams(this.searchService.makeCarHireQuery());
10291
+ var query = this.searchService.makeCarHireQuery();
10292
+ if (!this.hasNonEnterpriseCarAccess) {
10293
+ query.driverAge = this.driverAges[0].value;
10294
+ }
10295
+ this.updateTempParams(query);
10258
10296
  this.estimatedMileage = null;
10259
10297
  this._isValid();
10260
10298
  };
@@ -10310,7 +10348,7 @@
10310
10348
  if ((_a = this.dropoff_datetime) === null || _a === void 0 ? void 0 : _a.isSameOrBefore(this.pickup_datetime, 'minute')) {
10311
10349
  this.addValidationMessage('Dropoff date/time cannot be before or the same as pickup date/time');
10312
10350
  }
10313
- if ((this.delivery || this.collection) && ((_b = this.pickup_datetime) === null || _b === void 0 ? void 0 : _b.isBefore(moment__default["default"]().add(24, 'hours')))) {
10351
+ if ((this.delivery || this.collection || !this.hasNonEnterpriseCarAccess) && ((_b = this.pickup_datetime) === null || _b === void 0 ? void 0 : _b.isBefore(moment__default["default"]().add(24, 'hours')))) {
10314
10352
  this.validationMessages.push('Pickup date/time must be at least 24 hours from now');
10315
10353
  }
10316
10354
  if ((_c = this.pickup_datetime) === null || _c === void 0 ? void 0 : _c.isBefore(moment__default["default"]())) {
@@ -10369,6 +10407,22 @@
10369
10407
  dropoffDateTime: options === null || options === void 0 ? void 0 : options.dropoffDateTime,
10370
10408
  class: options === null || options === void 0 ? void 0 : options.class
10371
10409
  };
10410
+ _this.searchService.getAirportByCode(dropoffDepot.locationCode).pipe(operators.map(function (result) { return result; })).subscribe(function (result) {
10411
+ var _a, _b;
10412
+ if (result.iataMatch) {
10413
+ var match = result.iataMatch;
10414
+ var test = {
10415
+ gateway: match.iata,
10416
+ locationType: LocationType.A,
10417
+ destination: match.name,
10418
+ terminals: match.terminals,
10419
+ country: (_a = match.locationDetails) === null || _a === void 0 ? void 0 : _a.country,
10420
+ countryCode: (_b = match.locationDetails) === null || _b === void 0 ? void 0 : _b.countryCode
10421
+ };
10422
+ _this.pickup_location = test;
10423
+ _this.dropoff_location = test;
10424
+ }
10425
+ });
10372
10426
  return _this.gmtSearch(query).pipe(operators.switchMap(function (result) {
10373
10427
  if (result.length) {
10374
10428
  var preferredOptions = result.filter(function (option) { return option.companyPreferred || option.tmcPreferred; });
@@ -10604,7 +10658,7 @@
10604
10658
  query.airport.dropoffCountryCode = this.dropoff_location.countryCode;
10605
10659
  break;
10606
10660
  case exports.LocationTypes.City:
10607
- if (this.delivery || this.collection) {
10661
+ if (this.delivery || this.collection || !this.hasNonEnterpriseCarAccess) {
10608
10662
  query.location = {
10609
10663
  dropoffCountryCode: this.cityDropoffDepot.countryCode,
10610
10664
  dropoffPostalCode: this.cityDropoffDepot.locationCode,
@@ -10636,7 +10690,7 @@
10636
10690
  // };
10637
10691
  break;
10638
10692
  case exports.LocationTypes.Postcode:
10639
- if (this.delivery || this.collection) {
10693
+ if (this.delivery || this.collection || !this.hasNonEnterpriseCarAccess) {
10640
10694
  query.location = {
10641
10695
  dropoffCountryCode: this.postcodeDropoff.countryCode,
10642
10696
  dropoffPostalCode: this.postcodeDropoff.locationCode,
@@ -10674,7 +10728,7 @@
10674
10728
  query.travellers = this.travellers.map(function (traveller) { return { id: traveller.id }; });
10675
10729
  query.collection = this.collection || null;
10676
10730
  query.delivery = this.delivery || null;
10677
- query.driverAge = this.delivery || this.collection ? this.driverAge : null;
10731
+ query.driverAge = this.delivery || this.collection || !this.hasNonEnterpriseCarAccess ? this.driverAge : null;
10678
10732
  return this.helpers.removeNulls(query);
10679
10733
  };
10680
10734
  /**
@@ -17065,7 +17119,7 @@
17065
17119
  var HotelEnterpriseSearch = /** @class */ (function (_super) {
17066
17120
  __extends(HotelEnterpriseSearch, _super);
17067
17121
  function HotelEnterpriseSearch(hotelFetcher, helpers, userService, environment, avaliabilityService, basketService, storageService, searchService, httpCallService, quickListFetcher, getRailStationFetcher, applyHotelRulesFetcher, getRequestedHotelUpdateFetcher) {
17068
- var _x, _y, _z;
17122
+ var _y, _z, _0;
17069
17123
  var _this = _super.call(this, storageService, helpers, searchService, userService) || this;
17070
17124
  _this.hotelFetcher = hotelFetcher;
17071
17125
  _this.environment = environment;
@@ -17115,38 +17169,38 @@
17115
17169
  month: moment__default["default"]().month() + 1,
17116
17170
  day: moment__default["default"]().date() + 1 // min 1 night stay
17117
17171
  };
17118
- _this.hiddenExtraFilters = (_x = {},
17119
- _x[exports.ExtraSearchHandler.FEMALE_FRIENDLY] = true,
17120
- _x[exports.ExtraSearchHandler.GREEN_HOTEL] = true,
17121
- _x[exports.ExtraSearchHandler.CTM_PARTNERS] = true,
17122
- _x[exports.ExtraSearchHandler.FCDO_HOTEL] = true,
17123
- _x[exports.ExtraSearchHandler.REFUNDABLE] = true,
17124
- _x[exports.ExtraSearchHandler.NON_REFUNDABLE] = true,
17125
- _x[exports.ExtraSearchHandler.ACCESSIBLE_ROOM] = true,
17126
- _x[exports.ExtraSearchHandler.AVAILABILITY] = true,
17127
- _x);
17128
- _this.hiddenAmenitiesFilters = (_y = {},
17129
- _y[exports.AmenitiesSearchHandler.AIR_CONDITIONING] = true,
17130
- _y[exports.AmenitiesSearchHandler.BUSINESS_CENTRE] = true,
17131
- _y[exports.AmenitiesSearchHandler.ELECTRIC_CAR_CHARGING_POINT] = true,
17132
- _y[exports.AmenitiesSearchHandler.EXPRESS_CHECKOUT] = true,
17133
- _y[exports.AmenitiesSearchHandler.GOLF_FACILITIES] = true,
17134
- _y[exports.AmenitiesSearchHandler.ON_SITE_SAFE] = true,
17135
- _y[exports.AmenitiesSearchHandler.PARKING] = true,
17136
- _y[exports.AmenitiesSearchHandler.RESTAURANT] = true,
17137
- _y[exports.AmenitiesSearchHandler.ROOM_SERVICE_24_HOUR] = true,
17138
- _y[exports.AmenitiesSearchHandler.SWIMMING_POOL] = true,
17139
- _y[exports.AmenitiesSearchHandler.WHEELCHAIR_ACCESS] = true,
17140
- _y[exports.AmenitiesSearchHandler.WIFI] = true,
17141
- _y[exports.AmenitiesSearchHandler.ECO_FRIENDLY] = true,
17172
+ _this.hiddenExtraFilters = (_y = {},
17173
+ _y[exports.ExtraSearchHandler.FEMALE_FRIENDLY] = true,
17174
+ _y[exports.ExtraSearchHandler.GREEN_HOTEL] = true,
17175
+ _y[exports.ExtraSearchHandler.CTM_PARTNERS] = true,
17176
+ _y[exports.ExtraSearchHandler.FCDO_HOTEL] = true,
17177
+ _y[exports.ExtraSearchHandler.REFUNDABLE] = true,
17178
+ _y[exports.ExtraSearchHandler.NON_REFUNDABLE] = true,
17179
+ _y[exports.ExtraSearchHandler.ACCESSIBLE_ROOM] = true,
17180
+ _y[exports.ExtraSearchHandler.AVAILABILITY] = true,
17142
17181
  _y);
17143
- _this.hiddenStarRatingFilters = (_z = {},
17144
- _z[exports.StarRating.TwoStar] = true,
17145
- _z[exports.StarRating.ThreeStar] = true,
17146
- _z[exports.StarRating.FourStar] = true,
17147
- _z[exports.StarRating.FiveStar] = true,
17148
- _z[exports.StarRating.Unrated] = true,
17182
+ _this.hiddenAmenitiesFilters = (_z = {},
17183
+ _z[exports.AmenitiesSearchHandler.AIR_CONDITIONING] = true,
17184
+ _z[exports.AmenitiesSearchHandler.BUSINESS_CENTRE] = true,
17185
+ _z[exports.AmenitiesSearchHandler.ELECTRIC_CAR_CHARGING_POINT] = true,
17186
+ _z[exports.AmenitiesSearchHandler.EXPRESS_CHECKOUT] = true,
17187
+ _z[exports.AmenitiesSearchHandler.GOLF_FACILITIES] = true,
17188
+ _z[exports.AmenitiesSearchHandler.ON_SITE_SAFE] = true,
17189
+ _z[exports.AmenitiesSearchHandler.PARKING] = true,
17190
+ _z[exports.AmenitiesSearchHandler.RESTAURANT] = true,
17191
+ _z[exports.AmenitiesSearchHandler.ROOM_SERVICE_24_HOUR] = true,
17192
+ _z[exports.AmenitiesSearchHandler.SWIMMING_POOL] = true,
17193
+ _z[exports.AmenitiesSearchHandler.WHEELCHAIR_ACCESS] = true,
17194
+ _z[exports.AmenitiesSearchHandler.WIFI] = true,
17195
+ _z[exports.AmenitiesSearchHandler.ECO_FRIENDLY] = true,
17149
17196
  _z);
17197
+ _this.hiddenStarRatingFilters = (_0 = {},
17198
+ _0[exports.StarRating.TwoStar] = true,
17199
+ _0[exports.StarRating.ThreeStar] = true,
17200
+ _0[exports.StarRating.FourStar] = true,
17201
+ _0[exports.StarRating.FiveStar] = true,
17202
+ _0[exports.StarRating.Unrated] = true,
17203
+ _0);
17150
17204
  // private variables
17151
17205
  // don't need to worry about times here - maybe normalise these in the request body?
17152
17206
  _this.localFilters = new HotelFilters();
@@ -17199,6 +17253,7 @@
17199
17253
  // console.log('lightning sort results');
17200
17254
  // console.log(this.results.value);
17201
17255
  var filteredResults = _this.resultsFilterMethod(_this.fullResults);
17256
+ console.log(filteredResults);
17202
17257
  _this.results.next(filteredResults);
17203
17258
  _this.reapplySorting.next(true);
17204
17259
  };
@@ -17253,22 +17308,13 @@
17253
17308
  _this._isValid();
17254
17309
  _this.userService.changeUser.subscribe(function () {
17255
17310
  var propertyNumber = _this.userService.userIsAgent() ? [exports.LocationTypes.PropertyNumber] : [];
17256
- if (_this.userService.userHasServiceProvider(ServiceType.Hotel, exports.ServiceProvider.Confirma)) {
17257
- _this.location_types.next(__spreadArray([
17258
- exports.LocationTypes.Airport,
17259
- exports.LocationTypes.City,
17260
- exports.LocationTypes.Office,
17261
- exports.LocationTypes.Shortlist,
17262
- exports.LocationTypes.TrainStation
17263
- ], __read(propertyNumber)));
17264
- }
17265
- else {
17266
- _this.location_types.next(__spreadArray([
17267
- exports.LocationTypes.Airport,
17268
- exports.LocationTypes.City,
17269
- exports.LocationTypes.TrainStation
17270
- ], __read(propertyNumber)));
17271
- }
17311
+ _this.location_types.next(__spreadArray([
17312
+ exports.LocationTypes.Airport,
17313
+ exports.LocationTypes.City,
17314
+ exports.LocationTypes.Office,
17315
+ exports.LocationTypes.Shortlist,
17316
+ exports.LocationTypes.TrainStation
17317
+ ], __read(propertyNumber)));
17272
17318
  if (searchService.shouldFetchAllOffices()) {
17273
17319
  _this.offices.next([]); // TODO fetch offices
17274
17320
  }
@@ -17918,12 +17964,12 @@
17918
17964
  // Combine the observables
17919
17965
  if (availabilityObservables.length) {
17920
17966
  return rxjs.combineLatest(availabilityObservables).pipe(operators.map(function (combinedResults) {
17921
- combinedResults.forEach(function (_x) {
17922
- var hotelAvaliability = _x.hotelAvaliability, hotelDetails = _x.hotelDetails;
17967
+ combinedResults.forEach(function (_y) {
17968
+ var hotelAvaliability = _y.hotelAvaliability, hotelDetails = _y.hotelDetails;
17923
17969
  hotelDetails.availableRates = hotelAvaliability;
17924
17970
  });
17925
- return combinedResults.map(function (_x) {
17926
- var hotelDetails = _x.hotelDetails;
17971
+ return combinedResults.map(function (_y) {
17972
+ var hotelDetails = _y.hotelDetails;
17927
17973
  return hotelDetails;
17928
17974
  });
17929
17975
  }));
@@ -18987,8 +19033,8 @@
18987
19033
  return __awaiter(this, void 0, void 0, function () {
18988
19034
  var fullHotel, searchQuery, roomCsl, detailRooms, intBasket, basket, paxPerRoom, roomArray, numberToSplit_1, bookedTravellersChunks_1, hotelAaddress_1, termsAndConditions_1;
18989
19035
  var _this = this;
18990
- return __generator(this, function (_x) {
18991
- switch (_x.label) {
19036
+ return __generator(this, function (_y) {
19037
+ switch (_y.label) {
18992
19038
  case 0:
18993
19039
  console.log(hotel);
18994
19040
  console.log(hotelRoom);
@@ -19024,7 +19070,7 @@
19024
19070
  });
19025
19071
  return [4 /*yield*/, this.basketService.getDefaultBasket()];
19026
19072
  case 1:
19027
- intBasket = _x.sent();
19073
+ intBasket = _y.sent();
19028
19074
  basket = intBasket === null || intBasket === void 0 ? void 0 : intBasket.subject.value;
19029
19075
  if (!basket) return [3 /*break*/, 3];
19030
19076
  paxPerRoom = this.tempParams.no_of_occupants;
@@ -19034,12 +19080,12 @@
19034
19080
  hotelAaddress_1 = hotel.address;
19035
19081
  termsAndConditions_1 = this.getTermsAndCond(hotelRoom, hotelQuery, hotel.source === exports.ServiceProvider.SabreCSL);
19036
19082
  return [4 /*yield*/, roomArray.reduce(function (current, chunk, index) { return __awaiter(_this, void 0, void 0, function () {
19037
- var _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, wh;
19038
- return __generator(this, function (_x) {
19039
- switch (_x.label) {
19083
+ var _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, wh;
19084
+ return __generator(this, function (_y) {
19085
+ switch (_y.label) {
19040
19086
  case 0: return [4 /*yield*/, current];
19041
19087
  case 1:
19042
- switch (_x.sent()) {
19088
+ switch (_y.sent()) {
19043
19089
  case exports.DifferentInvokdedUserReasons.cancel:
19044
19090
  return [2 /*return*/, exports.DifferentInvokdedUserReasons.cancel];
19045
19091
  case exports.DifferentInvokdedUserReasons.research:
@@ -19063,11 +19109,11 @@
19063
19109
  : 'Conferma',
19064
19110
  county: hotelAaddress_1.addressLine3,
19065
19111
  postcode: hotelAaddress_1.postOrZipCode,
19066
- countryCode: this.location_type_select === exports.LocationTypes.TrainStation &&
19067
- !hotelAaddress_1.countryCode
19068
- ? ((_k = this.trainsStation) === null || _k === void 0 ? void 0 : _k.countryCode) ||
19069
- ((_l = this.trainsStation) === null || _l === void 0 ? void 0 : _l.railstation.locationDetails.countryCode)
19070
- : this.location_type_select === exports.LocationTypes.Airport && !hotelAaddress_1.countryCode ? (_o = (_m = this.location) === null || _m === void 0 ? void 0 : _m.locationDetails) === null || _o === void 0 ? void 0 : _o.countryCode : hotelAaddress_1.countryCode
19112
+ countryCode: this.location_type_select === exports.LocationTypes.TrainStation && !hotelAaddress_1.countryCode
19113
+ ? ((_k = this.trainsStation) === null || _k === void 0 ? void 0 : _k.countryCode) || ((_l = this.trainsStation) === null || _l === void 0 ? void 0 : _l.railstation.locationDetails.countryCode)
19114
+ : this.location_type_select === exports.LocationTypes.Airport && !hotelAaddress_1.countryCode
19115
+ ? ((_o = (_m = this.location) === null || _m === void 0 ? void 0 : _m.airport) === null || _o === void 0 ? void 0 : _o.countryCode) || ((_p = this.location) === null || _p === void 0 ? void 0 : _p.locationDetails.countryCode)
19116
+ : hotelAaddress_1.countryCode,
19071
19117
  },
19072
19118
  hotelDescription: hotel.group,
19073
19119
  hotelFaxNumber: hotelAaddress_1.facsimile,
@@ -19082,9 +19128,9 @@
19082
19128
  hotelPreferred: hotel.preferred,
19083
19129
  hotelDistance: {
19084
19130
  search: hotel.location.distance.toFixed(2),
19085
- airport: (_q = (_p = hotel.transports) === null || _p === void 0 ? void 0 : _p.find(function (a) { return a.type == exports.HotelDetailTypes.AIRPORT; })) === null || _q === void 0 ? void 0 : _q.distance.toFixed(2),
19086
- train: (_s = (_r = hotel.transports) === null || _r === void 0 ? void 0 : _r.find(function (a) { return a.type == exports.HotelDetailTypes.TRAIN; })) === null || _s === void 0 ? void 0 : _s.distance.toFixed(2),
19087
- metro: (_u = (_t = hotel.transports) === null || _t === void 0 ? void 0 : _t.find(function (a) { return a.type == exports.HotelDetailTypes.METRO; })) === null || _u === void 0 ? void 0 : _u.distance.toFixed(2)
19131
+ airport: (_r = (_q = hotel.transports) === null || _q === void 0 ? void 0 : _q.find(function (a) { return a.type == exports.HotelDetailTypes.AIRPORT; })) === null || _r === void 0 ? void 0 : _r.distance.toFixed(2),
19132
+ train: (_t = (_s = hotel.transports) === null || _s === void 0 ? void 0 : _s.find(function (a) { return a.type == exports.HotelDetailTypes.TRAIN; })) === null || _t === void 0 ? void 0 : _t.distance.toFixed(2),
19133
+ metro: (_v = (_u = hotel.transports) === null || _u === void 0 ? void 0 : _u.find(function (a) { return a.type == exports.HotelDetailTypes.METRO; })) === null || _v === void 0 ? void 0 : _v.distance.toFixed(2)
19088
19134
  },
19089
19135
  location: {
19090
19136
  longitude: hotel.location.longitude,
@@ -19097,8 +19143,8 @@
19097
19143
  searchQuery: searchQuery,
19098
19144
  outboundDate: hotelQuery.startDate,
19099
19145
  inboundDate: hotelQuery.endDate,
19100
- lowestPrice: (_v = this.cheapestPrice) === null || _v === void 0 ? void 0 : _v.amount,
19101
- lowestPriceCurrency: (_w = this.cheapestPrice) === null || _w === void 0 ? void 0 : _w.currencyCode,
19146
+ lowestPrice: (_w = this.cheapestPrice) === null || _w === void 0 ? void 0 : _w.amount,
19147
+ lowestPriceCurrency: (_x = this.cheapestPrice) === null || _x === void 0 ? void 0 : _x.currencyCode,
19102
19148
  lowestPriceDetail: this.createLowestPriceDetail(hotelQuery),
19103
19149
  co2PerItem: hotel.co2PerItem,
19104
19150
  co2PerPassenger: hotel.co2PerPassenger,
@@ -19109,7 +19155,7 @@
19109
19155
  // chunk
19110
19156
  bookedTravellersChunks_1[index] || [], hotelRoom.requiresReasonKeys, false, ignoreInvoked)];
19111
19157
  case 2:
19112
- wh = _x.sent();
19158
+ wh = _y.sent();
19113
19159
  if (wh === exports.DifferentInvokdedUserReasons.research) {
19114
19160
  this.researchWithNewUser();
19115
19161
  }
@@ -19119,7 +19165,7 @@
19119
19165
  }); }, exports.DifferentInvokdedUserReasons.continue)];
19120
19166
  case 2:
19121
19167
  // bookedTravellersChunks.forEach((chunk: Traveller[], index: number) => {
19122
- return [2 /*return*/, _x.sent()];
19168
+ return [2 /*return*/, _y.sent()];
19123
19169
  case 3: return [2 /*return*/, exports.DifferentInvokdedUserReasons.cancel];
19124
19170
  }
19125
19171
  });
@@ -19182,7 +19228,7 @@
19182
19228
  };
19183
19229
  HotelEnterpriseSearch.prototype.applyFavourite = function (fav) {
19184
19230
  return __awaiter(this, void 0, void 0, function () {
19185
- return __generator(this, function (_x) {
19231
+ return __generator(this, function (_y) {
19186
19232
  this.checkin_date = moment__default["default"]().set('hour', 23).set('minute', 59);
19187
19233
  this.checkout_date = moment__default["default"]().add(1, 'day').set('hour', 23).set('minute', 59);
19188
19234
  this.applySearchQuery(fav);
@@ -19279,7 +19325,7 @@
19279
19325
  return detail;
19280
19326
  };
19281
19327
  HotelEnterpriseSearch.prototype.noRoomFilterSelected = function () {
19282
- var _x = this.filters, refundableRoomType = _x.refundableRoomType, priceRange = _x.priceRange, roomType = _x.roomType, accessibleRoomType = _x.accessibleRoomType, breakfastType = _x.breakfastType, crownPreferred = _x.crownPreferred;
19328
+ var _y = this.filters, refundableRoomType = _y.refundableRoomType, priceRange = _y.priceRange, roomType = _y.roomType, accessibleRoomType = _y.accessibleRoomType, breakfastType = _y.breakfastType, crownPreferred = _y.crownPreferred;
19283
19329
  return !accessibleRoomType.length && !refundableRoomType.length && !roomType.length && priceRange.min === 0 && priceRange.max === Number.MAX_SAFE_INTEGER && (!breakfastType.length || breakfastType.length === 2) && !crownPreferred.length;
19284
19330
  };
19285
19331
  // We use this method for features: RecentSearch, FavouriteSearch, ExpiredBasket, CopyBasket, CloneBasket
@@ -19288,10 +19334,10 @@
19288
19334
  if (startSearch === void 0) { startSearch = false; }
19289
19335
  if (cloneBasketItem === void 0) { cloneBasketItem = false; }
19290
19336
  return __awaiter(this, void 0, void 0, function () {
19291
- var _x, fetchLocation$, offices;
19337
+ var _y, fetchLocation$, offices;
19292
19338
  var _this = this;
19293
- return __generator(this, function (_y) {
19294
- switch (_y.label) {
19339
+ return __generator(this, function (_z) {
19340
+ switch (_z.label) {
19295
19341
  case 0:
19296
19342
  this.currency = query.currency;
19297
19343
  this.distance = query.distance;
@@ -19318,8 +19364,8 @@
19318
19364
  else {
19319
19365
  this.location_type_select = exports.LocationTypes.City;
19320
19366
  }
19321
- _x = this.location_type_select;
19322
- switch (_x) {
19367
+ _y = this.location_type_select;
19368
+ switch (_y) {
19323
19369
  case exports.LocationTypes.Airport: return [3 /*break*/, 1];
19324
19370
  case exports.LocationTypes.City: return [3 /*break*/, 2];
19325
19371
  case exports.LocationTypes.Office: return [3 /*break*/, 3];
@@ -19351,7 +19397,7 @@
19351
19397
  : null;
19352
19398
  fetchLocation$.subscribe(function (locations) {
19353
19399
  var locationMatch = query.postOrZipCode
19354
- ? locations.find(function (loc) { return loc.postcode === query.postOrZipCode; })
19400
+ ? locations.find(function (loc) { return loc.postcode === query.postOrZipCode || loc.name === query.postOrZipCode; })
19355
19401
  : locations.find(function (loc) { return loc.name === query.cityName; });
19356
19402
  if (query.postOrZipCode) {
19357
19403
  _this.postcode = locationMatch || null;
@@ -19369,7 +19415,7 @@
19369
19415
  return [3 /*break*/, 8];
19370
19416
  case 3: return [4 /*yield*/, this.searchService.getOfficeLocationsNoUserAddresses().toPromise()];
19371
19417
  case 4:
19372
- offices = _y.sent();
19418
+ offices = _z.sent();
19373
19419
  this.office = offices.find(function (office) { return Number(office.id) === Number(query.officeId); });
19374
19420
  if (startSearch) {
19375
19421
  this.searchService.startSearches();
@@ -21312,8 +21358,10 @@
21312
21358
  });
21313
21359
  }
21314
21360
  userService.changeUser.subscribe(function (user) {
21361
+ var _a;
21315
21362
  _this.timeCriteriaOptions.next([exports.TimeWindow.Anytime, exports.TimeWindow.Arrive, exports.TimeWindow.Depart]); // TODO update with any UFs
21316
- _this.updateAvaliableClasses();
21363
+ var classesToHide = (_a = _this.userService.getUserFavoriteObject(UserFavorurite.eurostarSearchDefaults)) === null || _a === void 0 ? void 0 : _a.hideEurostarClasses;
21364
+ _this.updateAvaliableClasses(classesToHide);
21317
21365
  });
21318
21366
  _this.updateTravellers();
21319
21367
  var results = storageService.getSessionItem(_this.resultsSessionName) || {
@@ -21325,7 +21373,6 @@
21325
21373
  _this.fullResults = _this.helpers.clone(results.results);
21326
21374
  _this.flightsToGroup = results.groupData || {};
21327
21375
  _this.resultQuery = results.query;
21328
- var isFlightsGrouped = _this.searchService.isEuroStarGrouped();
21329
21376
  _this.results.next((results.results || []));
21330
21377
  var resultsClone = _this.helpers.clone(results.results);
21331
21378
  // get around the annoying type restrictions - I KNOW JOURNEYS IS THERE I CAN SEE IT STOP TELLING ME IT ISN'T TYPESCRIPT!
@@ -22069,6 +22116,7 @@
22069
22116
  returnObject.standardFare.unavailableMessage = hasField(journeyHash, 'unavailableMessage', '');
22070
22117
  returnObject.standardFare.requiresReasonKeys = hasField(journeyHash, 'requiresReasonKeys', []);
22071
22118
  returnObject.standardFare.requiresReasonMessages = hasField(journeyHash, 'requiresReasonMessages', []);
22119
+ break;
22072
22120
  case 'standardPremierFare':
22073
22121
  returnObject.standardPremierFare.companyPreferred =
22074
22122
  ((_y = this._ruleActionSummary.journeyWhenSelected[journeyHash]) === null || _y === void 0 ? void 0 : _y.companyPreferred) ||
@@ -22111,6 +22159,7 @@
22111
22159
  returnObject.standardPremierFare.unavailableMessage = hasField(journeyHash, 'unavailableMessage', '');
22112
22160
  returnObject.standardPremierFare.requiresReasonKeys = hasField(journeyHash, 'requiresReasonKeys', []);
22113
22161
  returnObject.standardPremierFare.requiresReasonMessages = hasField(journeyHash, 'requiresReasonMessages', []);
22162
+ break;
22114
22163
  case 'businessPremierFare':
22115
22164
  returnObject.businessPremierFare.companyPreferred =
22116
22165
  ((_19 = this._ruleActionSummary.journeyWhenSelected[journeyHash]) === null || _19 === void 0 ? void 0 : _19.companyPreferred) ||
@@ -22354,25 +22403,53 @@
22354
22403
  this._passengers = travellers;
22355
22404
  this._isValid();
22356
22405
  };
22357
- EurostarEnterpriseSearch.prototype.updateAvaliableClasses = function () {
22358
- this.avaliableClasses.next([
22359
- {
22406
+ EurostarEnterpriseSearch.prototype.updateAvaliableClasses = function (classesToHide) {
22407
+ var allowedClasses = [{
22360
22408
  name: 'Any',
22361
22409
  type: FlightCabinClass.Any
22362
- },
22363
- {
22364
- name: 'Standard (semi flexible)',
22365
- type: FlightCabinClass.Economy
22366
- },
22367
- {
22368
- name: 'Standard premier (semi flexible)',
22369
- type: FlightCabinClass.PremiumEconomy
22370
- },
22371
- {
22372
- name: 'Business premier (fully flexible)',
22373
- type: FlightCabinClass.Business
22410
+ }];
22411
+ if (classesToHide && Object.keys(classesToHide)) {
22412
+ var business_premier = classesToHide.business_premier, standard = classesToHide.standard, standard_premier = classesToHide.standard_premier;
22413
+ if (!standard) {
22414
+ allowedClasses.push({
22415
+ name: 'Standard (semi flexible)',
22416
+ type: FlightCabinClass.Economy
22417
+ });
22374
22418
  }
22375
- ]);
22419
+ if (!standard_premier) {
22420
+ allowedClasses.push({
22421
+ name: 'Standard premier (semi flexible)',
22422
+ type: FlightCabinClass.PremiumEconomy
22423
+ });
22424
+ }
22425
+ if (!business_premier) {
22426
+ allowedClasses.push({
22427
+ name: 'Business premier (fully flexible)',
22428
+ type: FlightCabinClass.Business
22429
+ });
22430
+ }
22431
+ }
22432
+ else {
22433
+ allowedClasses = [
22434
+ {
22435
+ name: 'Any',
22436
+ type: FlightCabinClass.Any
22437
+ },
22438
+ {
22439
+ name: 'Standard (semi flexible)',
22440
+ type: FlightCabinClass.Economy
22441
+ },
22442
+ {
22443
+ name: 'Standard premier (semi flexible)',
22444
+ type: FlightCabinClass.PremiumEconomy
22445
+ },
22446
+ {
22447
+ name: 'Business premier (fully flexible)',
22448
+ type: FlightCabinClass.Business
22449
+ }
22450
+ ];
22451
+ }
22452
+ this.avaliableClasses.next(allowedClasses);
22376
22453
  };
22377
22454
  /**
22378
22455
  * @description - sort the flight results
@@ -22790,7 +22867,7 @@
22790
22867
  var inJourneyTesters = [];
22791
22868
  inJourneyTesters.push(tester(filters.classes, fieldHasValue('cabinClass')));
22792
22869
  // !- Itineraries
22793
- var outFilterItineraries = function (flightItinerary, groupIndex) {
22870
+ var outFilterItineraries = function (flightItinerary) {
22794
22871
  return (outItineraryTesters.reduce(function (acc, tester1) {
22795
22872
  acc = acc && tester1(flightItinerary);
22796
22873
  return acc;
@@ -22802,7 +22879,7 @@
22802
22879
  }, true);
22803
22880
  })));
22804
22881
  };
22805
- var inFilterItineraries = function (flightItinerary, groupIndex) {
22882
+ var inFilterItineraries = function (flightItinerary) {
22806
22883
  var _a;
22807
22884
  return (inItineraryTesters.reduce(function (acc, tester1) {
22808
22885
  return acc && tester1(flightItinerary);
@@ -33538,6 +33615,7 @@
33538
33615
  }
33539
33616
  else {
33540
33617
  // add the data to the array
33618
+ console.log("+++ Add hotel: " + fullHotel.id + " to behaviours +++");
33541
33619
  this.behaviours[fullHotel.id] =
33542
33620
  new rxjs.BehaviorSubject(null);
33543
33621
  var newBehaviourObject = fullHotel.availableRates;
@@ -33578,6 +33656,7 @@
33578
33656
  {});
33579
33657
  };
33580
33658
  BaseHotelAvalibilityService.prototype.updateHotel = function (hotel) {
33659
+ console.log('updating hotels');
33581
33660
  if (!hotel.availableRates) {
33582
33661
  hotel.availableRates = this.getAvailabilityValue(hotel);
33583
33662
  }
@@ -33612,7 +33691,6 @@
33612
33691
  return hotel;
33613
33692
  };
33614
33693
  BaseHotelAvalibilityService.prototype._getAvailabilityForId = function (hotel) {
33615
- // console.log('+++ Fetching availabilty for: ', hotel, ' +++');
33616
33694
  if (this.timeout) {
33617
33695
  window.clearTimeout(this.timeout);
33618
33696
  this.timeout = 0;
@@ -33713,7 +33791,8 @@
33713
33791
  _this.lowestPriceHotel.price = hotel.minprice;
33714
33792
  }
33715
33793
  hotel.rooms = hotel.rooms;
33716
- hotel.fullRooms = hotel.rooms;
33794
+ hotel.fullRooms = _this.helpers.clone(hotel.rooms);
33795
+ _this.data[hotel.hotelId] = _this.helpers.clone(hotel);
33717
33796
  if ((hotel === null || hotel === void 0 ? void 0 : hotel.hotelId) && _this.behaviours[hotel.hotelId]) {
33718
33797
  _this.data[hotel.hotelId] = hotel;
33719
33798
  _this.behaviours[hotel.hotelId].next(hotel);
@@ -36793,14 +36872,15 @@
36793
36872
  return this.fasttrackFetcher.fetchList(query);
36794
36873
  };
36795
36874
  FastTrackEnterpriseSearch.prototype.getSearchQuery = function () {
36875
+ var _a, _b;
36796
36876
  var query = {
36797
36877
  adults: this.tempParams.adults,
36798
36878
  children: this.tempParams.children ? this.tempParams.children : null,
36799
- locationCode: this._locationCode,
36879
+ locationCode: this._locationCode || ((_a = this.originalUserSearch.locationCode) === null || _a === void 0 ? void 0 : _a.gateway),
36800
36880
  flight: this.tempParams.flightNumber,
36801
36881
  terminal: this.tempParams.terminal === 'Any' ? null : this.tempParams.terminal,
36802
36882
  arrivalDatetime: this.tempParams.arrivalDatetime,
36803
- airportFullName: this.locationCode.destination,
36883
+ airportFullName: this.locationCode.destination || ((_b = this.originalUserSearch.locationCode) === null || _b === void 0 ? void 0 : _b.destination),
36804
36884
  travellers: this.travellers.map(function (traveller) { return { id: traveller.id }; })
36805
36885
  };
36806
36886
  return this.helpers.removeNulls(query);
@@ -38709,7 +38789,7 @@
38709
38789
  })(exports.TravellerSearchTypes || (exports.TravellerSearchTypes = {}));
38710
38790
  var BaseEnterpriseSearchService = /** @class */ (function () {
38711
38791
  function BaseEnterpriseSearchService(searchAirportsFetcher, searchAirlinesFetcher, storageService, userService, modalService, router, helpers, hotelAvalibilityService, citiesFetcher, postcodeFetcher, railStationFetcher, saveUserAddressUpdater, editUserAddressUpdater, userAddressesFetcher, basketService, getUserCompanyOfficesFetcher, searchHotelChainsFetcher, getConfermaRoomImagesFetcher, baseValidateIsPostcodeValidTester, depotFetcher, baseDeleteUserAddressUpdater, baseDeleteRecentSearchUpdater, baseSaveRecentSearchUpdater, getUserCarbonAllowanceFetcher, baseSaveFavouriteSearchUpdater, environment, loungeFetcher, parkingFetcher, httpCallService, flightFetcher, hotelFetcher, carhireFetcher, carHireAvailabilityDetailFetcher, cabhireFetcher, railFetcher, irlFetcher, getRailStationInfoFetcher, getRailStationFetcher, getIrlSupplierStationFetcher, webTokenService, riskAlertsFetcher, quicklistFetcher, getUserRecentSearchesFetcher, getRailCardsFetcher, getCovidMicrositeTokenFetcher, eurostarFetcher, searchUsersCanBookForFetcher, searchIrlStationsFetcher, irlDiscountCardsFetcher, getFlightFareRulesFetcher, getFlightSeatMapFetcher, getRailLiveDeparturesFetcher, applyHotelRulesFetcher, applyFlightRules, getUserFavouriteSearchesFetcher, deleteFavouriteSearchUpdater, emailBasketFetcher, fasttrackFetcher, sendOfflineNotificationFetcher, getHotelChainsFetcher, getRailProvidersFetcher, getAllAirlinesFetcher, getCarHireProvidersFetcher, baseGenerateBasketPdfFetcher, emailFerryFetcher, getFlightExtrasOptions, getRequestedHotelUpdateFetcher, convertCurrencyFetcher, getCurrencyConversionRatesFetcher, getHotelDetailsFetcher, getServiceFetcher, getFlightBrandedFaresFetcher, getTrainlineSearchConfigFetcher, searchRailInwardFetcher, railSearchExchangeFetcher, createItineraryExchangeUpdater, getAirAvailabilityFetcher, getFlightAtNewClassFetcher, getFlightUpsellOffersFetcher, getOfficesFetcher, emailApartmentBookingFetcher, emailSeasonTicketFetcher, suggestPlaces, latLonFromHereID, getGMTItineraryOptions, getGUTCitySuggestions, getGUTLocationSuggestions, getRouteHappyFetcher, getMultipleHotelRatingFetcher, emailMeetingRoomBookingFetcher, flightSearchExchangeFetcher, flighExchangeDetailsFetcher, getEntLocationsByPostcode, getEntLocationsByCity, getUserRecentBoltSearchesFetcher, saveRecentBoltSearchUpdater, getFerryPortsFetcher, getBannerFetcher, updateDOB, updateFlightSeatMapUpdater, deleteAllRecentSearchesUpdater, getOfficeDivisionsFetcher) {
38712
- var _e;
38792
+ var _j;
38713
38793
  var _this = this;
38714
38794
  this.searchAirportsFetcher = searchAirportsFetcher;
38715
38795
  this.searchAirlinesFetcher = searchAirlinesFetcher;
@@ -38834,23 +38914,23 @@
38834
38914
  console.log('Enterpise search service being inited');
38835
38915
  console.log('Newly created search objects: ', this.searches);
38836
38916
  this.search_objects = {};
38837
- this.searches = (_e = {},
38838
- _e[ServiceType.Cab] = null,
38839
- _e[ServiceType.Car] = null,
38840
- _e[ServiceType.Coach] = null,
38841
- _e[ServiceType.Eurostar] = null,
38842
- _e[ServiceType.FastTrack] = null,
38843
- _e[ServiceType.Ferry] = null,
38844
- _e[ServiceType.Flight] = null,
38845
- _e[ServiceType.Hotel] = null,
38846
- _e[ServiceType.InternationalRail] = null,
38847
- _e[ServiceType.Lounge] = null,
38848
- _e[ServiceType.Parking] = null,
38849
- _e[ServiceType.Rail] = null,
38850
- _e[ServiceType.LongStays] = null,
38851
- _e[ServiceType.SeasonTicket] = null,
38852
- _e[ServiceType.MeetingRoom] = null,
38853
- _e);
38917
+ this.searches = (_j = {},
38918
+ _j[ServiceType.Cab] = null,
38919
+ _j[ServiceType.Car] = null,
38920
+ _j[ServiceType.Coach] = null,
38921
+ _j[ServiceType.Eurostar] = null,
38922
+ _j[ServiceType.FastTrack] = null,
38923
+ _j[ServiceType.Ferry] = null,
38924
+ _j[ServiceType.Flight] = null,
38925
+ _j[ServiceType.Hotel] = null,
38926
+ _j[ServiceType.InternationalRail] = null,
38927
+ _j[ServiceType.Lounge] = null,
38928
+ _j[ServiceType.Parking] = null,
38929
+ _j[ServiceType.Rail] = null,
38930
+ _j[ServiceType.LongStays] = null,
38931
+ _j[ServiceType.SeasonTicket] = null,
38932
+ _j[ServiceType.MeetingRoom] = null,
38933
+ _j);
38854
38934
  this.selectedTravellers = this.storageService.getSessionItemAsList(BaseEnterpriseSearchService.SESSION_TRAVELLER);
38855
38935
  this.travellerInformation.next(this.selectedTravellers);
38856
38936
  userService.fullUserDetails.userServices.subscribe(function (services) {
@@ -38923,29 +39003,29 @@
38923
39003
  configurable: true
38924
39004
  });
38925
39005
  BaseEnterpriseSearchService.prototype.createSearchObjects = function (loungeFetcher, helpers, basketService, storageService, userService, parkingFetcher, flightFetcher, applyFlightRules, modalService, hotelFetcher, environment, hotelAvalibilityService, httpCallService, quicklistFetcher, getRailStationFetcher, applyHotelRulesFetcher, carhireFetcher, carHireAvailabilityDetailFetcher, cabhireFetcher, irlFetcher, irlDiscountCardsFetcher, getIrlSupplierStationFetcher, fasttrackFetcher, emailFerryFetcher, railFetcher, eurostarFetcher, getFlightExtrasOptionsFetcher, getRequestedHotelUpdateFetcher, emailApartmentBookingFetcher, emailSeasonTicketFetcher, getFlightSearchExchangeFetcher, getFlightExchangeDetailsFetcher, emailMeetingRoomBookingFetcher, updateFlightSeatMapUpdater) {
38926
- var _e;
39006
+ var _j;
38927
39007
  var searchesAreNull = this.checkIfSearchesAreNull();
38928
39008
  if (!this.search_objects ||
38929
39009
  Object.values(this.search_objects).length === 0 ||
38930
39010
  searchesAreNull) {
38931
39011
  this.search_objects = this.helpers.clone(this.init_search_objects());
38932
- this.searches = (_e = {},
38933
- _e[ServiceType.Lounge] = new LoungesEnterpriseSearch(loungeFetcher, helpers, basketService, storageService, this, userService),
38934
- _e[ServiceType.Parking] = new ParkingEnterpriseSearch(parkingFetcher, helpers, basketService, storageService, this, userService),
38935
- _e[ServiceType.Flight] = new FlightEnterpriseSearch(flightFetcher, helpers, userService, basketService, storageService, this, applyFlightRules, modalService, getFlightExtrasOptionsFetcher, getFlightSearchExchangeFetcher, getFlightExchangeDetailsFetcher, updateFlightSeatMapUpdater),
38936
- _e[ServiceType.Hotel] = new HotelEnterpriseSearch(hotelFetcher, helpers, userService, environment, hotelAvalibilityService, basketService, storageService, this, httpCallService, quicklistFetcher, getRailStationFetcher, applyHotelRulesFetcher, getRequestedHotelUpdateFetcher),
38937
- _e[ServiceType.Car] = new CarhireEnterpriseSearch(carhireFetcher, carHireAvailabilityDetailFetcher, helpers, basketService, storageService, this, userService),
38938
- _e[ServiceType.Cab] = new CabHireEnterpriseSearch(cabhireFetcher, helpers, storageService, this, basketService, userService),
38939
- _e[ServiceType.InternationalRail] = new IRLEnterpriseSearch(irlFetcher, irlDiscountCardsFetcher, helpers, basketService, storageService, this, getIrlSupplierStationFetcher, userService),
38940
- _e[ServiceType.FastTrack] = new FastTrackEnterpriseSearch(fasttrackFetcher, helpers, basketService, storageService, this, userService),
38941
- _e[ServiceType.Coach] = null,
38942
- _e[ServiceType.Ferry] = new FerryEnterpriseSearch(emailFerryFetcher, helpers, basketService, storageService, this, userService),
38943
- _e[ServiceType.Rail] = new RailEnterpriseSearch(railFetcher, getRailStationFetcher, helpers, basketService, storageService, this, userService, modalService),
38944
- _e[ServiceType.Eurostar] = new EurostarEnterpriseSearch(eurostarFetcher, helpers, userService, basketService, storageService, this, modalService, applyFlightRules),
38945
- _e[ServiceType.LongStays] = new ApartmentEnterpriseSearch(emailApartmentBookingFetcher, helpers, basketService, storageService, this, userService),
38946
- _e[ServiceType.SeasonTicket] = new SeasonTicketsEnterpriseSearch(emailSeasonTicketFetcher, helpers, basketService, storageService, this, userService),
38947
- _e[ServiceType.MeetingRoom] = new MeetingRoomEnterpriseSearch(emailMeetingRoomBookingFetcher, helpers, basketService, storageService, this, userService),
38948
- _e);
39012
+ this.searches = (_j = {},
39013
+ _j[ServiceType.Lounge] = new LoungesEnterpriseSearch(loungeFetcher, helpers, basketService, storageService, this, userService),
39014
+ _j[ServiceType.Parking] = new ParkingEnterpriseSearch(parkingFetcher, helpers, basketService, storageService, this, userService),
39015
+ _j[ServiceType.Flight] = new FlightEnterpriseSearch(flightFetcher, helpers, userService, basketService, storageService, this, applyFlightRules, modalService, getFlightExtrasOptionsFetcher, getFlightSearchExchangeFetcher, getFlightExchangeDetailsFetcher, updateFlightSeatMapUpdater),
39016
+ _j[ServiceType.Hotel] = new HotelEnterpriseSearch(hotelFetcher, helpers, userService, environment, hotelAvalibilityService, basketService, storageService, this, httpCallService, quicklistFetcher, getRailStationFetcher, applyHotelRulesFetcher, getRequestedHotelUpdateFetcher),
39017
+ _j[ServiceType.Car] = new CarhireEnterpriseSearch(carhireFetcher, carHireAvailabilityDetailFetcher, helpers, basketService, storageService, this, userService),
39018
+ _j[ServiceType.Cab] = new CabHireEnterpriseSearch(cabhireFetcher, helpers, storageService, this, basketService, userService),
39019
+ _j[ServiceType.InternationalRail] = new IRLEnterpriseSearch(irlFetcher, irlDiscountCardsFetcher, helpers, basketService, storageService, this, getIrlSupplierStationFetcher, userService),
39020
+ _j[ServiceType.FastTrack] = new FastTrackEnterpriseSearch(fasttrackFetcher, helpers, basketService, storageService, this, userService),
39021
+ _j[ServiceType.Coach] = null,
39022
+ _j[ServiceType.Ferry] = new FerryEnterpriseSearch(emailFerryFetcher, helpers, basketService, storageService, this, userService),
39023
+ _j[ServiceType.Rail] = new RailEnterpriseSearch(railFetcher, getRailStationFetcher, helpers, basketService, storageService, this, userService, modalService),
39024
+ _j[ServiceType.Eurostar] = new EurostarEnterpriseSearch(eurostarFetcher, helpers, userService, basketService, storageService, this, modalService, applyFlightRules),
39025
+ _j[ServiceType.LongStays] = new ApartmentEnterpriseSearch(emailApartmentBookingFetcher, helpers, basketService, storageService, this, userService),
39026
+ _j[ServiceType.SeasonTicket] = new SeasonTicketsEnterpriseSearch(emailSeasonTicketFetcher, helpers, basketService, storageService, this, userService),
39027
+ _j[ServiceType.MeetingRoom] = new MeetingRoomEnterpriseSearch(emailMeetingRoomBookingFetcher, helpers, basketService, storageService, this, userService),
39028
+ _j);
38949
39029
  }
38950
39030
  };
38951
39031
  BaseEnterpriseSearchService.prototype.checkIfSearchesAreNull = function () {
@@ -39059,7 +39139,7 @@
39059
39139
  // : airport;
39060
39140
  // })
39061
39141
  .map(function (airport) {
39062
- var _a, _b, _c, _d;
39142
+ var _a, _b, _c, _d, _e, _f, _g, _h;
39063
39143
  return {
39064
39144
  destination: airport.name,
39065
39145
  gateway: airport.iata,
@@ -39067,7 +39147,9 @@
39067
39147
  country: (_a = airport === null || airport === void 0 ? void 0 : airport.locationDetails) === null || _a === void 0 ? void 0 : _a.country,
39068
39148
  postcode: (_b = airport === null || airport === void 0 ? void 0 : airport.locationDetails) === null || _b === void 0 ? void 0 : _b.postcode,
39069
39149
  countryCode: (_c = airport === null || airport === void 0 ? void 0 : airport.locationDetails) === null || _c === void 0 ? void 0 : _c.countryCode,
39070
- locationType: (_d = airport === null || airport === void 0 ? void 0 : airport.locationDetails) === null || _d === void 0 ? void 0 : _d.locationType
39150
+ locationType: (_d = airport === null || airport === void 0 ? void 0 : airport.locationDetails) === null || _d === void 0 ? void 0 : _d.locationType,
39151
+ latitude: (_f = (_e = airport === null || airport === void 0 ? void 0 : airport.locationDetails) === null || _e === void 0 ? void 0 : _e.coordinates) === null || _f === void 0 ? void 0 : _f.latitude,
39152
+ longitude: (_h = (_g = airport === null || airport === void 0 ? void 0 : airport.locationDetails) === null || _g === void 0 ? void 0 : _g.coordinates) === null || _h === void 0 ? void 0 : _h.longitude
39071
39153
  };
39072
39154
  }));
39073
39155
  }
@@ -39109,7 +39191,9 @@
39109
39191
  return {
39110
39192
  name: result.destination,
39111
39193
  type: exports.LocationTypes.Airport,
39112
- airport: result
39194
+ airport: result,
39195
+ latitude: result.latitude,
39196
+ longitude: result.longitude
39113
39197
  };
39114
39198
  });
39115
39199
  };
@@ -39295,13 +39379,16 @@
39295
39379
  return results
39296
39380
  ? results
39297
39381
  .map(function (result) {
39382
+ var _a, _b, _c, _d;
39298
39383
  if (!euOnly ||
39299
39384
  result.locationDetails.countryCode !== 'GB' ||
39300
39385
  result.stationCode === 'STP') {
39301
39386
  return {
39302
39387
  type: exports.LocationTypes.TrainStation,
39303
39388
  name: result.name,
39304
- railstation: result
39389
+ railstation: result,
39390
+ latitude: (_b = (_a = result.locationDetails) === null || _a === void 0 ? void 0 : _a.coordinates) === null || _b === void 0 ? void 0 : _b.latitude,
39391
+ longitude: (_d = (_c = result.locationDetails) === null || _c === void 0 ? void 0 : _c.coordinates) === null || _d === void 0 ? void 0 : _d.longitude
39305
39392
  };
39306
39393
  }
39307
39394
  })
@@ -39555,8 +39642,8 @@
39555
39642
  };
39556
39643
  BaseEnterpriseSearchService.prototype._getHighestSearchPriorityObject = function (basketItems) {
39557
39644
  if (basketItems === void 0) { basketItems = {}; }
39558
- return Object.values(this.search_objects).reduce(function (_e, item) {
39559
- var highest = _e.highest, currentItem = _e.currentItem;
39645
+ return Object.values(this.search_objects).reduce(function (_j, item) {
39646
+ var highest = _j.highest, currentItem = _j.currentItem;
39560
39647
  if (item.chosen && item.priority < highest) {
39561
39648
  if (!basketItems[item.type]) {
39562
39649
  return { highest: item.priority, currentItem: item };
@@ -39632,8 +39719,8 @@
39632
39719
  BaseEnterpriseSearchService.prototype.getAllErrorMessages = function (isFavourite) {
39633
39720
  var _this = this;
39634
39721
  if (isFavourite === void 0) { isFavourite = false; }
39635
- var concattedErrors = Object.entries(this.search_objects).reduce(function (accum, _e) {
39636
- var _f = __read(_e, 2), type = _f[0], searchObject = _f[1];
39722
+ var concattedErrors = Object.entries(this.search_objects).reduce(function (accum, _j) {
39723
+ var _k = __read(_j, 2), type = _k[0], searchObject = _k[1];
39637
39724
  var search = _this.searches[type];
39638
39725
  var messages = search ?
39639
39726
  (!isFavourite ? search.validationMessages : search.validationFavouriteMessages) :
@@ -40035,8 +40122,8 @@
40035
40122
  BaseEnterpriseSearchService.prototype.saveUserAddress = function (formAddress) {
40036
40123
  return __awaiter(this, void 0, void 0, function () {
40037
40124
  var House, Street, Town, PostCode, Country, descArr, description, address, value;
40038
- return __generator(this, function (_e) {
40039
- switch (_e.label) {
40125
+ return __generator(this, function (_j) {
40126
+ switch (_j.label) {
40040
40127
  case 0:
40041
40128
  House = formAddress.House, Street = formAddress.Street, Town = formAddress.Town, PostCode = formAddress.PostCode, Country = formAddress.Country;
40042
40129
  descArr = [];
@@ -40062,7 +40149,7 @@
40062
40149
  if (!address) return [3 /*break*/, 2];
40063
40150
  return [4 /*yield*/, this.saveUserAddressUpdater.updateOne(address).toPromise()];
40064
40151
  case 1:
40065
- value = _e.sent();
40152
+ value = _j.sent();
40066
40153
  return [2 /*return*/, value];
40067
40154
  case 2: return [2 /*return*/];
40068
40155
  }
@@ -40863,11 +40950,11 @@
40863
40950
  };
40864
40951
  BaseEnterpriseSearchService.prototype.simultaneousSearchesCheck = function (ignoreChosen) {
40865
40952
  if (ignoreChosen === void 0) { ignoreChosen = false; }
40866
- var _a, _b, _c, _d;
40953
+ var _a, _b, _c, _d, _e, _f;
40867
40954
  return __awaiter(this, void 0, void 0, function () {
40868
- var search_objects_copy, trainlineConfig, hasTLEnabled;
40869
- return __generator(this, function (_e) {
40870
- switch (_e.label) {
40955
+ var search_objects_copy, trainlineConfig, hasTLEnabled, flightSearchQuery, outCc, inCc, notUKRail;
40956
+ return __generator(this, function (_j) {
40957
+ switch (_j.label) {
40871
40958
  case 0:
40872
40959
  search_objects_copy = this.helpers.clone(this.init_search_objects());
40873
40960
  if (this.userService.canBook(ServiceType.Flight) && this.searches[ServiceType.Flight]) {
@@ -40893,47 +40980,51 @@
40893
40980
  (!this.search_objects[ServiceType.Rail].chosen || ignoreChosen))) return [3 /*break*/, 8];
40894
40981
  trainlineConfig = '';
40895
40982
  hasTLEnabled = this.userService.userHasServiceProvider(ServiceType.Rail, exports.ServiceProvider.Trainline);
40896
- if (!hasTLEnabled) return [3 /*break*/, 2];
40983
+ flightSearchQuery = this.searches[ServiceType.Flight];
40984
+ outCc = (_b = flightSearchQuery.departLocation) === null || _b === void 0 ? void 0 : _b.countryCode;
40985
+ inCc = (_c = flightSearchQuery.arriveLocation) === null || _c === void 0 ? void 0 : _c.countryCode;
40986
+ notUKRail = outCc !== 'GB' && inCc !== 'GB';
40987
+ if (!(hasTLEnabled && notUKRail)) return [3 /*break*/, 2];
40897
40988
  return [4 /*yield*/, this.getTrainlineSearchConfig().toPromise()];
40898
40989
  case 1:
40899
- trainlineConfig = _e.sent();
40900
- _e.label = 2;
40990
+ trainlineConfig = _j.sent();
40991
+ _j.label = 2;
40901
40992
  case 2: return [4 /*yield*/, this.searches[ServiceType.Flight].canBeRailSearched(this.searches[ServiceType.Flight].chosenSearchType, trainlineConfig)];
40902
40993
  case 3:
40903
- if (!_e.sent()) return [3 /*break*/, 8];
40904
- if (!(trainlineConfig && hasTLEnabled)) return [3 /*break*/, 5];
40994
+ if (!_j.sent()) return [3 /*break*/, 8];
40995
+ if (!(trainlineConfig && trainlineConfig !== 'UK_only' && hasTLEnabled)) return [3 /*break*/, 5];
40905
40996
  // do a specific trainline one
40906
- return [4 /*yield*/, this.searches[ServiceType.Rail].generateQueryFromFlightQueryTrainline(this.searches[ServiceType.Flight].getSearchQuery(), this.searches[ServiceType.Flight].outboundSameSearchTrainlineStations, this.searches[ServiceType.Flight].inboundSameSearchTrainlineStations, this.searches[ServiceType.Flight].departLocation, this.searches[ServiceType.Flight].arriveLocation)];
40997
+ return [4 /*yield*/, this.searches[ServiceType.Rail].generateQueryFromFlightQueryTrainline(flightSearchQuery.getSearchQuery(), flightSearchQuery.outboundSameSearchTrainlineStations, flightSearchQuery.inboundSameSearchTrainlineStations, flightSearchQuery.departLocation, flightSearchQuery.arriveLocation)];
40907
40998
  case 4:
40908
40999
  // do a specific trainline one
40909
- _e.sent();
41000
+ _j.sent();
40910
41001
  return [3 /*break*/, 7];
40911
- case 5: return [4 /*yield*/, this.searches[ServiceType.Rail].generateQueryFromFlightQuery(this.searches[ServiceType.Flight].getSearchQuery())];
41002
+ case 5: return [4 /*yield*/, this.searches[ServiceType.Rail].generateQueryFromFlightQuery(flightSearchQuery.getSearchQuery())];
40912
41003
  case 6:
40913
- _e.sent();
40914
- _e.label = 7;
41004
+ _j.sent();
41005
+ _j.label = 7;
40915
41006
  case 7:
40916
41007
  console.log(this.searches[ServiceType.Rail]);
40917
- this.searches[ServiceType.Flight].railFromFlightSearchPerformed = true;
41008
+ flightSearchQuery.railFromFlightSearchPerformed = true;
40918
41009
  this.search_objects[ServiceType.Rail].priority = this.search_objects.FLIGHT.priority;
40919
41010
  this.search_objects[ServiceType.Rail].resultUrl = this.search_objects.FLIGHT.resultUrl;
40920
- _e.label = 8;
41011
+ _j.label = 8;
40921
41012
  case 8:
40922
- if (!(((_b = this.search_objects[ServiceType.Flight]) === null || _b === void 0 ? void 0 : _b.chosen) &&
41013
+ if (!(((_d = this.search_objects[ServiceType.Flight]) === null || _d === void 0 ? void 0 : _d.chosen) &&
40923
41014
  this.userService.canBook(ServiceType.Eurostar) &&
40924
41015
  (!this.search_objects[ServiceType.Eurostar].chosen || ignoreChosen))) return [3 /*break*/, 10];
40925
41016
  if (!this.searches[ServiceType.Flight].canBeEuroSearched()) return [3 /*break*/, 10];
40926
41017
  return [4 /*yield*/, this.searches[ServiceType.Eurostar].generateQueryFromFlightQuery(this.searches[ServiceType.Flight].getSearchQuery(), this.searches[ServiceType.Flight].departLocation.gateway, this.searches[ServiceType.Flight].arriveLocation.gateway)];
40927
41018
  case 9:
40928
- _e.sent();
41019
+ _j.sent();
40929
41020
  this.searches[ServiceType.Flight].eurostarFromFlightSearchPerformed = true;
40930
41021
  this.search_objects[ServiceType.Eurostar].priority = this.search_objects.FLIGHT.priority;
40931
41022
  this.search_objects[ServiceType.Eurostar].resultUrl = this.search_objects.FLIGHT.resultUrl;
40932
- _e.label = 10;
41023
+ _j.label = 10;
40933
41024
  case 10:
40934
- if ((_c = this.search_objects[ServiceType.Flight]) === null || _c === void 0 ? void 0 : _c.chosen) {
41025
+ if ((_e = this.search_objects[ServiceType.Flight]) === null || _e === void 0 ? void 0 : _e.chosen) {
40935
41026
  this.searches[ServiceType.Flight].hotelFromFlightSearchPerformed =
40936
- (_d = this.search_objects[ServiceType.Hotel]) === null || _d === void 0 ? void 0 : _d.chosen;
41027
+ (_f = this.search_objects[ServiceType.Hotel]) === null || _f === void 0 ? void 0 : _f.chosen;
40937
41028
  }
40938
41029
  return [2 /*return*/];
40939
41030
  }
@@ -41440,7 +41531,9 @@
41440
41531
  _this.router.navigate(['logOutDigitsUser']);
41441
41532
  }
41442
41533
  else if (ssoUser) {
41443
- _this.router.navigate(['sso-logout']);
41534
+ // App doesnt have sso-logout route
41535
+ // this.router.navigate(['sso-logout']);
41536
+ _this.router.navigate(['logon']);
41444
41537
  }
41445
41538
  else {
41446
41539
  _this.router.navigate(['logon']);
@@ -41448,7 +41541,8 @@
41448
41541
  });
41449
41542
  }
41450
41543
  else if (ssoUser) {
41451
- this.router.navigate(['sso-logout']);
41544
+ // this.router.navigate(['sso-logout']);
41545
+ this.router.navigate(['logon']);
41452
41546
  }
41453
41547
  else {
41454
41548
  this.router.navigate(['logon']);
@@ -43970,6 +44064,7 @@
43970
44064
  exports.makeDraftManagamentInfo = makeDraftManagamentInfo;
43971
44065
  exports.makeManagamentInfo = makeManagamentInfo;
43972
44066
  exports.maxTravellerWellbeing = maxTravellerWellbeing;
44067
+ exports.nonEnterpriseCarServices = nonEnterpriseCarServices;
43973
44068
  exports["ɵ0"] = ɵ0;
43974
44069
  exports["ɵk"] = FetchableList;
43975
44070
  exports["ɵl"] = FetchableObject;