@sabstravtech/obtservices 0.2.2407041720 → 0.2.2407121220
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.
- package/bundles/sabstravtech-obtservices-base.umd.js +4 -4
- package/bundles/sabstravtech-obtservices-base.umd.js.map +1 -1
- package/esm2015/base/lib/vendor/classes/rail-enterprise-search.js +4 -4
- package/esm2015/base/lib/vendor/services/enterprise-basket.service.js +2 -2
- package/fesm2015/sabstravtech-obtservices-base.js +4 -4
- package/fesm2015/sabstravtech-obtservices-base.js.map +1 -1
- package/package.json +1 -1
|
@@ -25101,7 +25101,7 @@
|
|
|
25101
25101
|
RailEnterpriseSearch.prototype.addReturnJourneyToBasket = function (serviceId, tempParams, outbound, inbound, outboundFare, inboundFare, ingoreInvoked, gmt) {
|
|
25102
25102
|
if (ingoreInvoked === void 0) { ingoreInvoked = false; }
|
|
25103
25103
|
if (gmt === void 0) { gmt = false; }
|
|
25104
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
25104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
25105
25105
|
return __awaiter(this, void 0, void 0, function () {
|
|
25106
25106
|
var railQuery, _y, adults, children, newTravellers, ticketExtras, intBasket, basket, outboundFareList, inboundFareList, serviceName, termsAndConditions, outboundLegs, inboundLegs, lowestTicket, applyReturnPrice, returnPrice, returnFullPrice, basketItem, whatHappened;
|
|
25107
25107
|
return __generator(this, function (_z) {
|
|
@@ -25230,7 +25230,7 @@
|
|
|
25230
25230
|
lowestPriceCurrency: lowestTicket.amount || lowestTicket.currencyCode !== outboundFare.currency
|
|
25231
25231
|
? lowestTicket.currencyCode
|
|
25232
25232
|
: null,
|
|
25233
|
-
reasonKeys: outboundFare.requiresReasonKeys.concat(inboundFare.requiresReasonKeys),
|
|
25233
|
+
reasonKeys: (_u = outboundFare.requiresReasonKeys) === null || _u === void 0 ? void 0 : _u.concat(inboundFare.requiresReasonKeys),
|
|
25234
25234
|
agentOverrodeUnavailable: outboundFare.unavailable || inboundFare.unavailable
|
|
25235
25235
|
};
|
|
25236
25236
|
// if ticketExtras exists add the object to basketItem
|
|
@@ -25242,7 +25242,7 @@
|
|
|
25242
25242
|
return [4 /*yield*/, this.basketService.addToBasket(basketItem, intBasket, this.searchService, this.travellers, outboundFare.requiresReasonKeys || inboundFare.requiresReasonKeys, false, ingoreInvoked)];
|
|
25243
25243
|
case 2:
|
|
25244
25244
|
whatHappened = _z.sent();
|
|
25245
|
-
if (!((
|
|
25245
|
+
if (!((_v = outboundFare.requiresReasonKeys) === null || _v === void 0 ? void 0 : _v.length) && !((_w = inboundFare.requiresReasonKeys) === null || _w === void 0 ? void 0 : _w.length)) {
|
|
25246
25246
|
this.basketService.toggleMenu();
|
|
25247
25247
|
}
|
|
25248
25248
|
if (whatHappened === exports.DifferentInvokdedUserReasons.research) {
|
|
@@ -31397,7 +31397,7 @@
|
|
|
31397
31397
|
BaseEnterpriseBasketService.prototype.formatSavedMi = function (mi) {
|
|
31398
31398
|
return mi.reduce(function (acc, item) {
|
|
31399
31399
|
var _a, _b;
|
|
31400
|
-
if (item.selectedValue && item.valueEditable) {
|
|
31400
|
+
if (item.selectedValue && item.valueEditable && item.required) {
|
|
31401
31401
|
// if (item.selectedValue.freeValue) {
|
|
31402
31402
|
acc.push({
|
|
31403
31403
|
miId: item.id,
|