@qite/tide-booking-component 1.4.74 → 1.4.76
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/build/build-cjs/index.js +148 -86
- package/build/build-cjs/src/qsm/store/qsm-slice.d.ts +3 -3
- package/build/build-cjs/src/qsm/types.d.ts +2 -2
- package/build/build-cjs/src/search-results/types.d.ts +2 -2
- package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +2 -2
- package/build/build-cjs/src/shared/types.d.ts +13 -12
- package/build/build-esm/index.js +145 -86
- package/build/build-esm/src/qsm/store/qsm-slice.d.ts +3 -3
- package/build/build-esm/src/qsm/types.d.ts +2 -2
- package/build/build-esm/src/search-results/types.d.ts +2 -2
- package/build/build-esm/src/shared/components/flyin/flyin.d.ts +2 -2
- package/build/build-esm/src/shared/types.d.ts +13 -12
- package/package.json +2 -2
- package/src/content/features/content-page/content-page-self-contained.tsx +2 -2
- package/src/qsm/components/QSMContainer/qsm-container.tsx +59 -29
- package/src/qsm/components/travel-input/index.tsx +2 -1
- package/src/qsm/components/travel-input-group/index.tsx +2 -1
- package/src/qsm/qsm-configuration-context.ts +2 -1
- package/src/qsm/store/qsm-slice.ts +4 -4
- package/src/qsm/types.ts +2 -2
- package/src/search-results/components/filters/utility.tsx +10 -10
- package/src/search-results/components/search-results-container/flight-search-results.tsx +3 -2
- package/src/search-results/components/search-results-container/search-results-container.tsx +39 -18
- package/src/search-results/features/flights/flight-search-results-self-contained.tsx +2 -2
- package/src/search-results/features/hotels/hotel-flight-search-results-self-contained.tsx +2 -2
- package/src/search-results/features/hotels/hotel-search-results-self-contained.tsx +2 -2
- package/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.tsx +2 -2
- package/src/search-results/types.ts +2 -2
- package/src/shared/components/flyin/flyin.tsx +7 -5
- package/src/shared/types.ts +13 -12
package/build/build-esm/index.js
CHANGED
|
@@ -6712,6 +6712,20 @@ var jaJson = {
|
|
|
6712
6712
|
SRP: SRP
|
|
6713
6713
|
};
|
|
6714
6714
|
|
|
6715
|
+
var PortalQsmType;
|
|
6716
|
+
(function (PortalQsmType) {
|
|
6717
|
+
PortalQsmType[(PortalQsmType['Multidestination'] = 0)] = 'Multidestination';
|
|
6718
|
+
PortalQsmType[(PortalQsmType['Accommodation'] = 1)] = 'Accommodation';
|
|
6719
|
+
PortalQsmType[(PortalQsmType['AccommodationAndFlight'] = 2)] = 'AccommodationAndFlight';
|
|
6720
|
+
PortalQsmType[(PortalQsmType['Flight'] = 3)] = 'Flight';
|
|
6721
|
+
PortalQsmType[(PortalQsmType['RoundTrip'] = 4)] = 'RoundTrip';
|
|
6722
|
+
PortalQsmType[(PortalQsmType['GroupTour'] = 5)] = 'GroupTour';
|
|
6723
|
+
PortalQsmType[(PortalQsmType['Package'] = 6)] = 'Package';
|
|
6724
|
+
PortalQsmType[(PortalQsmType['Ticket'] = 7)] = 'Ticket';
|
|
6725
|
+
PortalQsmType[(PortalQsmType['Car'] = 8)] = 'Car';
|
|
6726
|
+
PortalQsmType[(PortalQsmType['Transfer'] = 9)] = 'Transfer';
|
|
6727
|
+
PortalQsmType[(PortalQsmType['Cruise'] = 10)] = 'Cruise';
|
|
6728
|
+
})(PortalQsmType || (PortalQsmType = {}));
|
|
6715
6729
|
var DepartureRange;
|
|
6716
6730
|
(function (DepartureRange) {
|
|
6717
6731
|
DepartureRange[(DepartureRange['Morning'] = 0)] = 'Morning';
|
|
@@ -7025,10 +7039,13 @@ var build = {};
|
|
|
7025
7039
|
allotment: 2
|
|
7026
7040
|
};
|
|
7027
7041
|
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7042
|
+
exports.AvailabilitySearchType = void 0;
|
|
7043
|
+
(function (AvailabilitySearchType) {
|
|
7044
|
+
AvailabilitySearchType[(AvailabilitySearchType['default'] = 0)] = 'default';
|
|
7045
|
+
AvailabilitySearchType[(AvailabilitySearchType['allotment'] = 1)] = 'allotment';
|
|
7046
|
+
AvailabilitySearchType[(AvailabilitySearchType['fixedDuration'] = 2)] = 'fixedDuration';
|
|
7047
|
+
AvailabilitySearchType[(AvailabilitySearchType['flight'] = 3)] = 'flight';
|
|
7048
|
+
})(exports.AvailabilitySearchType || (exports.AvailabilitySearchType = {}));
|
|
7032
7049
|
|
|
7033
7050
|
var DataType = {
|
|
7034
7051
|
text: 'text',
|
|
@@ -7230,6 +7247,27 @@ var build = {};
|
|
|
7230
7247
|
sunnyCars: 20
|
|
7231
7248
|
};
|
|
7232
7249
|
|
|
7250
|
+
exports.DateAmountType = void 0;
|
|
7251
|
+
(function (DateAmountType) {
|
|
7252
|
+
DateAmountType[(DateAmountType['days'] = 0)] = 'days';
|
|
7253
|
+
DateAmountType[(DateAmountType['months'] = 1)] = 'months';
|
|
7254
|
+
})(exports.DateAmountType || (exports.DateAmountType = {}));
|
|
7255
|
+
|
|
7256
|
+
exports.PortalQsmType = void 0;
|
|
7257
|
+
(function (PortalQsmType) {
|
|
7258
|
+
PortalQsmType[(PortalQsmType['Multidestination'] = 0)] = 'Multidestination';
|
|
7259
|
+
PortalQsmType[(PortalQsmType['Accommodation'] = 1)] = 'Accommodation';
|
|
7260
|
+
PortalQsmType[(PortalQsmType['AccommodationAndFlight'] = 2)] = 'AccommodationAndFlight';
|
|
7261
|
+
PortalQsmType[(PortalQsmType['Flight'] = 3)] = 'Flight';
|
|
7262
|
+
PortalQsmType[(PortalQsmType['RoundTrip'] = 4)] = 'RoundTrip';
|
|
7263
|
+
PortalQsmType[(PortalQsmType['GroupTour'] = 5)] = 'GroupTour';
|
|
7264
|
+
PortalQsmType[(PortalQsmType['Package'] = 6)] = 'Package';
|
|
7265
|
+
PortalQsmType[(PortalQsmType['Ticket'] = 7)] = 'Ticket';
|
|
7266
|
+
PortalQsmType[(PortalQsmType['Car'] = 8)] = 'Car';
|
|
7267
|
+
PortalQsmType[(PortalQsmType['Transfer'] = 9)] = 'Transfer';
|
|
7268
|
+
PortalQsmType[(PortalQsmType['Cruise'] = 10)] = 'Cruise';
|
|
7269
|
+
})(exports.PortalQsmType || (exports.PortalQsmType = {}));
|
|
7270
|
+
|
|
7233
7271
|
/******************************************************************************
|
|
7234
7272
|
Copyright (c) Microsoft Corporation.
|
|
7235
7273
|
|
|
@@ -13226,6 +13264,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
13226
13264
|
var ENDPOINT_TRANSLATION_DICTIONARY = ENDPOINT$2 + '/translation-dictionary';
|
|
13227
13265
|
var ENDPOINT_BOOKING_ACCOMMODATION = ENDPOINT$2 + '/booking-accommodation';
|
|
13228
13266
|
var ENDPOINT_LOCATIONS = ENDPOINT$2 + '/entity/locations';
|
|
13267
|
+
var ENDPOINT_WEBSITE_CONFIGURATION = function (portalId) {
|
|
13268
|
+
return ENDPOINT$2 + '/website/' + portalId + '/configuration';
|
|
13269
|
+
};
|
|
13229
13270
|
/**
|
|
13230
13271
|
* api/web/crmcontact
|
|
13231
13272
|
* Creates a CRM contact.
|
|
@@ -13283,6 +13324,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
13283
13324
|
var body = JSON.stringify(request);
|
|
13284
13325
|
return post(url, apiKey, body, config.token, signal);
|
|
13285
13326
|
};
|
|
13327
|
+
var getWebsiteConfiguration = function (config, id, signal) {
|
|
13328
|
+
var url = '' + config.host + ENDPOINT_WEBSITE_CONFIGURATION(id);
|
|
13329
|
+
var apiKey = config.apiKey;
|
|
13330
|
+
return get(url, apiKey, config.token, signal, true);
|
|
13331
|
+
};
|
|
13286
13332
|
|
|
13287
13333
|
var ENDPOINT$1 = '/api/web/contact';
|
|
13288
13334
|
var ENDPOINT_CONTACT_FORM = ENDPOINT$1 + '/contact-form';
|
|
@@ -13339,7 +13385,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
13339
13385
|
};
|
|
13340
13386
|
|
|
13341
13387
|
exports.AllotmentType = AllotmentType;
|
|
13342
|
-
exports.AvailabilitySearchType = AvailabilitySearchType;
|
|
13343
13388
|
exports.ContactForm = ContactForm;
|
|
13344
13389
|
exports.DataType = DataType;
|
|
13345
13390
|
exports.DossierType = DossierType;
|
|
@@ -13394,6 +13439,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
13394
13439
|
exports.getPortal = getPortal;
|
|
13395
13440
|
exports.getPrintActions = getPrintActions;
|
|
13396
13441
|
exports.getTranslationDictionary = getTranslationDictionary;
|
|
13442
|
+
exports.getWebsiteConfiguration = getWebsiteConfiguration;
|
|
13397
13443
|
exports.login = login;
|
|
13398
13444
|
exports.logout = logout;
|
|
13399
13445
|
exports.priceDetails = priceDetails;
|
|
@@ -30253,7 +30299,7 @@ var Footer = function (_a) {
|
|
|
30253
30299
|
};
|
|
30254
30300
|
|
|
30255
30301
|
var QSMConfigurationContext = React__default.createContext({
|
|
30256
|
-
type:
|
|
30302
|
+
type: PortalQsmType.Accommodation,
|
|
30257
30303
|
askTravelers: false,
|
|
30258
30304
|
askNationality: false,
|
|
30259
30305
|
askTravelClass: false,
|
|
@@ -30295,7 +30341,7 @@ var useMediaQuery = function (query) {
|
|
|
30295
30341
|
|
|
30296
30342
|
var _a$1;
|
|
30297
30343
|
var initialState$2 = {
|
|
30298
|
-
qsmType:
|
|
30344
|
+
qsmType: PortalQsmType.AccommodationAndFlight,
|
|
30299
30345
|
selectedOrigin: undefined,
|
|
30300
30346
|
selectedDestination: undefined,
|
|
30301
30347
|
selectedAirport: undefined,
|
|
@@ -31698,7 +31744,7 @@ var TravelInput = function () {
|
|
|
31698
31744
|
babies = _b.babies,
|
|
31699
31745
|
rooms = _b.rooms,
|
|
31700
31746
|
qsmType = _b.qsmType;
|
|
31701
|
-
var areTravelersInRooms = qsmType !==
|
|
31747
|
+
var areTravelersInRooms = qsmType !== PortalQsmType.Flight && askRooms;
|
|
31702
31748
|
var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
|
|
31703
31749
|
var getTravelerButtonClass = function (disabled) {
|
|
31704
31750
|
return 'button button--increment '.concat(disabled ? 'button--disabled' : '');
|
|
@@ -32654,7 +32700,7 @@ var TravelInputGroup = function () {
|
|
|
32654
32700
|
rooms = _c.rooms,
|
|
32655
32701
|
qsmType = _c.qsmType;
|
|
32656
32702
|
var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
|
|
32657
|
-
var areTravelersInRooms = qsmType !==
|
|
32703
|
+
var areTravelersInRooms = qsmType !== PortalQsmType.Flight && askRooms;
|
|
32658
32704
|
var initDone = useRef(false);
|
|
32659
32705
|
var travelerSummary = useSelector(function (state) {
|
|
32660
32706
|
return selectTravelerSummary(state, areTravelersInRooms);
|
|
@@ -32894,7 +32940,7 @@ var QSMContainer = function () {
|
|
|
32894
32940
|
if (fromDate || toDate) return;
|
|
32895
32941
|
var startDate = addMonths(new Date(), 1);
|
|
32896
32942
|
var endDate = addDays(startDate, 7);
|
|
32897
|
-
if (qsmType ===
|
|
32943
|
+
if (qsmType === PortalQsmType.GroupTour) {
|
|
32898
32944
|
startDate = new Date();
|
|
32899
32945
|
endDate = addYears(startDate, 1);
|
|
32900
32946
|
}
|
|
@@ -32924,7 +32970,7 @@ var QSMContainer = function () {
|
|
|
32924
32970
|
dispatch(setSelectedQsmType(value));
|
|
32925
32971
|
var startDate = addMonths(new Date(), 1);
|
|
32926
32972
|
var endDate = addDays(startDate, 7);
|
|
32927
|
-
if (value ===
|
|
32973
|
+
if (value === PortalQsmType.GroupTour) {
|
|
32928
32974
|
startDate = new Date();
|
|
32929
32975
|
endDate = addYears(startDate, 1);
|
|
32930
32976
|
}
|
|
@@ -32961,7 +33007,7 @@ var QSMContainer = function () {
|
|
|
32961
33007
|
nationality: selectedNationality,
|
|
32962
33008
|
tripType: tripType
|
|
32963
33009
|
};
|
|
32964
|
-
if (askRooms && qsmType !==
|
|
33010
|
+
if (askRooms && qsmType !== PortalQsmType.Flight) {
|
|
32965
33011
|
payload.rooms = rooms;
|
|
32966
33012
|
} else {
|
|
32967
33013
|
payload.travelers = { adults: adults, kids: kids, babies: babies };
|
|
@@ -33039,9 +33085,9 @@ var QSMContainer = function () {
|
|
|
33039
33085
|
'button',
|
|
33040
33086
|
{
|
|
33041
33087
|
type: 'button',
|
|
33042
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33088
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Multidestination ? 'qsm__tab--active' : ''),
|
|
33043
33089
|
onClick: function () {
|
|
33044
|
-
return handleQsmTypeChange(
|
|
33090
|
+
return handleQsmTypeChange(PortalQsmType.Multidestination);
|
|
33045
33091
|
}
|
|
33046
33092
|
},
|
|
33047
33093
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-location', height: 16 })),
|
|
@@ -33051,9 +33097,9 @@ var QSMContainer = function () {
|
|
|
33051
33097
|
'button',
|
|
33052
33098
|
{
|
|
33053
33099
|
type: 'button',
|
|
33054
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33100
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Package ? 'qsm__tab--active' : ''),
|
|
33055
33101
|
onClick: function () {
|
|
33056
|
-
return handleQsmTypeChange(
|
|
33102
|
+
return handleQsmTypeChange(PortalQsmType.Package);
|
|
33057
33103
|
}
|
|
33058
33104
|
},
|
|
33059
33105
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-suitcase', height: 16 })),
|
|
@@ -33063,9 +33109,9 @@ var QSMContainer = function () {
|
|
|
33063
33109
|
'button',
|
|
33064
33110
|
{
|
|
33065
33111
|
type: 'button',
|
|
33066
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33112
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.AccommodationAndFlight ? 'qsm__tab--active' : ''),
|
|
33067
33113
|
onClick: function () {
|
|
33068
|
-
return handleQsmTypeChange(
|
|
33114
|
+
return handleQsmTypeChange(PortalQsmType.AccommodationAndFlight);
|
|
33069
33115
|
}
|
|
33070
33116
|
},
|
|
33071
33117
|
React__default.createElement(
|
|
@@ -33081,9 +33127,9 @@ var QSMContainer = function () {
|
|
|
33081
33127
|
'button',
|
|
33082
33128
|
{
|
|
33083
33129
|
type: 'button',
|
|
33084
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33130
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Accommodation ? 'qsm__tab--active' : ''),
|
|
33085
33131
|
onClick: function () {
|
|
33086
|
-
return handleQsmTypeChange(
|
|
33132
|
+
return handleQsmTypeChange(PortalQsmType.Accommodation);
|
|
33087
33133
|
}
|
|
33088
33134
|
},
|
|
33089
33135
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-bed', height: 16 })),
|
|
@@ -33093,9 +33139,9 @@ var QSMContainer = function () {
|
|
|
33093
33139
|
'button',
|
|
33094
33140
|
{
|
|
33095
33141
|
type: 'button',
|
|
33096
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33142
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Flight ? 'qsm__tab--active' : ''),
|
|
33097
33143
|
onClick: function () {
|
|
33098
|
-
return handleQsmTypeChange(
|
|
33144
|
+
return handleQsmTypeChange(PortalQsmType.Flight);
|
|
33099
33145
|
}
|
|
33100
33146
|
},
|
|
33101
33147
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-flight', height: 16 })),
|
|
@@ -33105,9 +33151,9 @@ var QSMContainer = function () {
|
|
|
33105
33151
|
'button',
|
|
33106
33152
|
{
|
|
33107
33153
|
type: 'button',
|
|
33108
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33154
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.GroupTour ? 'qsm__tab--active' : ''),
|
|
33109
33155
|
onClick: function () {
|
|
33110
|
-
return handleQsmTypeChange(
|
|
33156
|
+
return handleQsmTypeChange(PortalQsmType.GroupTour);
|
|
33111
33157
|
}
|
|
33112
33158
|
},
|
|
33113
33159
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-group', height: 16 })),
|
|
@@ -33117,9 +33163,9 @@ var QSMContainer = function () {
|
|
|
33117
33163
|
'button',
|
|
33118
33164
|
{
|
|
33119
33165
|
type: 'button',
|
|
33120
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33166
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Ticket ? 'qsm__tab--active' : ''),
|
|
33121
33167
|
onClick: function () {
|
|
33122
|
-
return handleQsmTypeChange(
|
|
33168
|
+
return handleQsmTypeChange(PortalQsmType.Ticket);
|
|
33123
33169
|
}
|
|
33124
33170
|
},
|
|
33125
33171
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-ticket', height: 16 })),
|
|
@@ -33129,9 +33175,9 @@ var QSMContainer = function () {
|
|
|
33129
33175
|
'button',
|
|
33130
33176
|
{
|
|
33131
33177
|
type: 'button',
|
|
33132
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33178
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Car ? 'qsm__tab--active' : ''),
|
|
33133
33179
|
onClick: function () {
|
|
33134
|
-
return handleQsmTypeChange(
|
|
33180
|
+
return handleQsmTypeChange(PortalQsmType.Car);
|
|
33135
33181
|
}
|
|
33136
33182
|
},
|
|
33137
33183
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-car', height: 16 })),
|
|
@@ -33141,9 +33187,9 @@ var QSMContainer = function () {
|
|
|
33141
33187
|
'button',
|
|
33142
33188
|
{
|
|
33143
33189
|
type: 'button',
|
|
33144
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33190
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Transfer ? 'qsm__tab--active' : ''),
|
|
33145
33191
|
onClick: function () {
|
|
33146
|
-
return handleQsmTypeChange(
|
|
33192
|
+
return handleQsmTypeChange(PortalQsmType.Transfer);
|
|
33147
33193
|
}
|
|
33148
33194
|
},
|
|
33149
33195
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-backforward', height: 16 })),
|
|
@@ -33153,9 +33199,9 @@ var QSMContainer = function () {
|
|
|
33153
33199
|
'button',
|
|
33154
33200
|
{
|
|
33155
33201
|
type: 'button',
|
|
33156
|
-
className: 'qsm__tab '.concat(qsmType ==
|
|
33202
|
+
className: 'qsm__tab '.concat(qsmType == PortalQsmType.Cruise ? 'qsm__tab--active' : ''),
|
|
33157
33203
|
onClick: function () {
|
|
33158
|
-
return handleQsmTypeChange(
|
|
33204
|
+
return handleQsmTypeChange(PortalQsmType.Cruise);
|
|
33159
33205
|
}
|
|
33160
33206
|
},
|
|
33161
33207
|
React__default.createElement('span', { className: 'qsm__tab__icons' }, React__default.createElement(Icon$2, { name: 'ui-ship', height: 16 })),
|
|
@@ -33165,7 +33211,7 @@ var QSMContainer = function () {
|
|
|
33165
33211
|
React__default.createElement(
|
|
33166
33212
|
'div',
|
|
33167
33213
|
{ className: 'qsm__filter' },
|
|
33168
|
-
(qsmType ===
|
|
33214
|
+
(qsmType === PortalQsmType.Accommodation || qsmType === PortalQsmType.AccommodationAndFlight || qsmType === PortalQsmType.GroupTour) &&
|
|
33169
33215
|
React__default.createElement(
|
|
33170
33216
|
'div',
|
|
33171
33217
|
{ className: 'radiobutton-group qsm__filter__inputgroup' },
|
|
@@ -33207,7 +33253,7 @@ var QSMContainer = function () {
|
|
|
33207
33253
|
)
|
|
33208
33254
|
)
|
|
33209
33255
|
),
|
|
33210
|
-
qsmType ===
|
|
33256
|
+
qsmType === PortalQsmType.Flight &&
|
|
33211
33257
|
React__default.createElement(
|
|
33212
33258
|
'div',
|
|
33213
33259
|
{ className: 'radiobutton-group qsm__filter__inputgroup' },
|
|
@@ -33275,18 +33321,18 @@ var QSMContainer = function () {
|
|
|
33275
33321
|
React__default.createElement(
|
|
33276
33322
|
'div',
|
|
33277
33323
|
{ className: 'qsm__filter__classgroup' },
|
|
33278
|
-
qsmType !==
|
|
33279
|
-
qsmType !==
|
|
33280
|
-
qsmType !==
|
|
33281
|
-
qsmType !==
|
|
33282
|
-
qsmType !==
|
|
33283
|
-
qsmType !==
|
|
33324
|
+
qsmType !== PortalQsmType.Accommodation &&
|
|
33325
|
+
qsmType !== PortalQsmType.Car &&
|
|
33326
|
+
qsmType !== PortalQsmType.Ticket &&
|
|
33327
|
+
qsmType !== PortalQsmType.Cruise &&
|
|
33328
|
+
qsmType !== PortalQsmType.Transfer &&
|
|
33329
|
+
qsmType !== PortalQsmType.GroupTour &&
|
|
33284
33330
|
askTravelClass &&
|
|
33285
33331
|
React__default.createElement(TravelClassPicker, null),
|
|
33286
|
-
qsmType !==
|
|
33287
|
-
qsmType !==
|
|
33288
|
-
qsmType !==
|
|
33289
|
-
qsmType !==
|
|
33332
|
+
qsmType !== PortalQsmType.Multidestination &&
|
|
33333
|
+
qsmType !== PortalQsmType.Car &&
|
|
33334
|
+
qsmType !== PortalQsmType.Flight &&
|
|
33335
|
+
qsmType !== PortalQsmType.Transfer &&
|
|
33290
33336
|
askTravelType &&
|
|
33291
33337
|
React__default.createElement(TravelTypePicker, null),
|
|
33292
33338
|
askNationality && React__default.createElement(TravelNationalityPicker, null)
|
|
@@ -33295,17 +33341,17 @@ var QSMContainer = function () {
|
|
|
33295
33341
|
React__default.createElement(
|
|
33296
33342
|
'div',
|
|
33297
33343
|
{ className: 'qsm__input-group' },
|
|
33298
|
-
(qsmType ==
|
|
33344
|
+
(qsmType == PortalQsmType.Flight || qsmType == PortalQsmType.AccommodationAndFlight) &&
|
|
33299
33345
|
originDestinationField &&
|
|
33300
33346
|
React__default.createElement(DoubleSearchInputGroup, { fieldConfig: originDestinationField, showReverse: originDestinationField.showReverse }),
|
|
33301
|
-
qsmType ==
|
|
33347
|
+
qsmType == PortalQsmType.Flight &&
|
|
33302
33348
|
tripType == 'openjaw' &&
|
|
33303
33349
|
openJawReturnDestinationField &&
|
|
33304
33350
|
React__default.createElement(DoubleSearchInputGroup, {
|
|
33305
33351
|
fieldConfig: openJawReturnDestinationField,
|
|
33306
33352
|
showReverse: openJawReturnDestinationField.showReverse
|
|
33307
33353
|
}),
|
|
33308
|
-
(qsmType ==
|
|
33354
|
+
(qsmType == PortalQsmType.Accommodation || qsmType == PortalQsmType.AccommodationAndFlight || qsmType == PortalQsmType.GroupTour) &&
|
|
33309
33355
|
destination &&
|
|
33310
33356
|
React__default.createElement(SearchInputGroup, { fieldConfig: destination }),
|
|
33311
33357
|
React__default.createElement(Dates, { value: dateRange, onChange: handleDateChange }),
|
|
@@ -37758,7 +37804,7 @@ var FlyIn = function (_a) {
|
|
|
37758
37804
|
);
|
|
37759
37805
|
var handleClose = function () {
|
|
37760
37806
|
if (isOpen && panelRef.current) {
|
|
37761
|
-
if (srpType ===
|
|
37807
|
+
if (srpType === PortalQsmType.Flight) {
|
|
37762
37808
|
dispatch(setSelectedFlight(null));
|
|
37763
37809
|
dispatch(setSelectedFlightDetails(null));
|
|
37764
37810
|
onCancelSearch();
|
|
@@ -37791,8 +37837,8 @@ var FlyIn = function (_a) {
|
|
|
37791
37837
|
)
|
|
37792
37838
|
)
|
|
37793
37839
|
),
|
|
37794
|
-
srpType ===
|
|
37795
|
-
(srpType ===
|
|
37840
|
+
srpType === PortalQsmType.Flight && React__default.createElement(FlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen }),
|
|
37841
|
+
(srpType === PortalQsmType.Accommodation || srpType === PortalQsmType.GroupTour) &&
|
|
37796
37842
|
React__default.createElement(AccommodationFlyIn, { isLoading: true, isOpen: isOpen, setIsOpen: setIsOpen })
|
|
37797
37843
|
)
|
|
37798
37844
|
);
|
|
@@ -38376,7 +38422,8 @@ var enrichFiltersWithResults = function (results, filters, tags) {
|
|
|
38376
38422
|
if (!results || results.length === 0 || !filters) {
|
|
38377
38423
|
return filters !== null && filters !== void 0 ? filters : [];
|
|
38378
38424
|
}
|
|
38379
|
-
|
|
38425
|
+
return filters.map(function (filter) {
|
|
38426
|
+
var updatedFilter = __assign({}, filter);
|
|
38380
38427
|
if (filter.property === 'price' && (filter.min == null || filter.max == null)) {
|
|
38381
38428
|
var prices = results
|
|
38382
38429
|
.map(function (r) {
|
|
@@ -38387,8 +38434,8 @@ var enrichFiltersWithResults = function (results, filters, tags) {
|
|
|
38387
38434
|
return p > 0;
|
|
38388
38435
|
});
|
|
38389
38436
|
if (prices.length > 0) {
|
|
38390
|
-
|
|
38391
|
-
|
|
38437
|
+
updatedFilter.min = Math.floor(Math.min.apply(Math, prices));
|
|
38438
|
+
updatedFilter.max = Math.ceil(Math.max.apply(Math, prices));
|
|
38392
38439
|
}
|
|
38393
38440
|
}
|
|
38394
38441
|
if (filter.property === 'accommodation') {
|
|
@@ -38401,8 +38448,7 @@ var enrichFiltersWithResults = function (results, filters, tags) {
|
|
|
38401
38448
|
});
|
|
38402
38449
|
}
|
|
38403
38450
|
});
|
|
38404
|
-
|
|
38405
|
-
filter.options = Array.from(map_1.values()).map(function (accommodation) {
|
|
38451
|
+
updatedFilter.options = Array.from(map_1.values()).map(function (accommodation) {
|
|
38406
38452
|
var _a;
|
|
38407
38453
|
return {
|
|
38408
38454
|
label: (_a = accommodation.name) !== null && _a !== void 0 ? _a : accommodation.code,
|
|
@@ -38421,7 +38467,7 @@ var enrichFiltersWithResults = function (results, filters, tags) {
|
|
|
38421
38467
|
});
|
|
38422
38468
|
}
|
|
38423
38469
|
});
|
|
38424
|
-
|
|
38470
|
+
updatedFilter.options = Array.from(map_2.values()).map(function (regime) {
|
|
38425
38471
|
var _a;
|
|
38426
38472
|
return {
|
|
38427
38473
|
label: (_a = regime.name) !== null && _a !== void 0 ? _a : regime.code,
|
|
@@ -38445,7 +38491,7 @@ var enrichFiltersWithResults = function (results, filters, tags) {
|
|
|
38445
38491
|
}
|
|
38446
38492
|
});
|
|
38447
38493
|
});
|
|
38448
|
-
|
|
38494
|
+
updatedFilter.options = Array.from(map_3.values()).map(function (theme) {
|
|
38449
38495
|
return {
|
|
38450
38496
|
label: theme.name,
|
|
38451
38497
|
value: theme.id,
|
|
@@ -38453,12 +38499,8 @@ var enrichFiltersWithResults = function (results, filters, tags) {
|
|
|
38453
38499
|
};
|
|
38454
38500
|
});
|
|
38455
38501
|
}
|
|
38456
|
-
|
|
38457
|
-
|
|
38458
|
-
var filter = filters_1[_i];
|
|
38459
|
-
_loop_1(filter);
|
|
38460
|
-
}
|
|
38461
|
-
return filters;
|
|
38502
|
+
return updatedFilter;
|
|
38503
|
+
});
|
|
38462
38504
|
};
|
|
38463
38505
|
|
|
38464
38506
|
var ticksToMinutes = function (ticks) {
|
|
@@ -40622,7 +40664,7 @@ var FlightResultsContainer = function (_a) {
|
|
|
40622
40664
|
useEffect(
|
|
40623
40665
|
function () {
|
|
40624
40666
|
if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
|
|
40625
|
-
if ((context === null || context === void 0 ? void 0 : context.type) ===
|
|
40667
|
+
if ((context === null || context === void 0 ? void 0 : context.type) === PortalQsmType.Flight && isHubReady) {
|
|
40626
40668
|
onFlightSearch();
|
|
40627
40669
|
}
|
|
40628
40670
|
}
|
|
@@ -40762,7 +40804,7 @@ var FlightResultsContainer = function (_a) {
|
|
|
40762
40804
|
'div',
|
|
40763
40805
|
{ className: 'search__results__wrapper' },
|
|
40764
40806
|
flightsLoading && React__default.createElement(Spinner, null),
|
|
40765
|
-
(context === null || context === void 0 ? void 0 : context.type) ==
|
|
40807
|
+
(context === null || context === void 0 ? void 0 : context.type) == PortalQsmType.Flight &&
|
|
40766
40808
|
(context === null || context === void 0 ? void 0 : context.showFlightAccommodationResults) &&
|
|
40767
40809
|
results &&
|
|
40768
40810
|
results.length > 0 &&
|
|
@@ -41336,7 +41378,14 @@ var SearchResultsContainer = function () {
|
|
|
41336
41378
|
officeId: 1,
|
|
41337
41379
|
payload: {
|
|
41338
41380
|
catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
|
|
41339
|
-
serviceType:
|
|
41381
|
+
serviceType:
|
|
41382
|
+
context.type === PortalQsmType.Accommodation || context.type === PortalQsmType.AccommodationAndFlight
|
|
41383
|
+
? 3
|
|
41384
|
+
: context.type === PortalQsmType.Flight
|
|
41385
|
+
? 7
|
|
41386
|
+
: context.type === PortalQsmType.RoundTrip
|
|
41387
|
+
? 1
|
|
41388
|
+
: 0,
|
|
41340
41389
|
searchType: 0,
|
|
41341
41390
|
destination: {
|
|
41342
41391
|
id: Number(destinationId),
|
|
@@ -41404,8 +41453,14 @@ var SearchResultsContainer = function () {
|
|
|
41404
41453
|
payload: {
|
|
41405
41454
|
catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
|
|
41406
41455
|
serviceType:
|
|
41407
|
-
context.type ===
|
|
41408
|
-
|
|
41456
|
+
context.type === PortalQsmType.Accommodation || context.type === PortalQsmType.AccommodationAndFlight
|
|
41457
|
+
? 3
|
|
41458
|
+
: context.type === PortalQsmType.Flight
|
|
41459
|
+
? 7
|
|
41460
|
+
: context.type === PortalQsmType.RoundTrip
|
|
41461
|
+
? 1
|
|
41462
|
+
: undefined,
|
|
41463
|
+
searchType: context.type === PortalQsmType.GroupTour ? 1 : 0,
|
|
41409
41464
|
destination: {
|
|
41410
41465
|
id: Number(destinationId),
|
|
41411
41466
|
isCountry: destinationIsCountry,
|
|
@@ -41418,7 +41473,7 @@ var SearchResultsContainer = function () {
|
|
|
41418
41473
|
toDate: to,
|
|
41419
41474
|
earliestFromOffset: 0,
|
|
41420
41475
|
latestToOffset: 0,
|
|
41421
|
-
includeFlights: context.type ===
|
|
41476
|
+
includeFlights: context.type === PortalQsmType.AccommodationAndFlight ? true : false,
|
|
41422
41477
|
// regimeCodes:
|
|
41423
41478
|
// filters
|
|
41424
41479
|
// .find((f) => f.property === 'regime')
|
|
@@ -41426,7 +41481,7 @@ var SearchResultsContainer = function () {
|
|
|
41426
41481
|
// .flatMap((o) => o.value.toString()) || [],
|
|
41427
41482
|
// minPrice: filters.find((f) => f.property === 'price')?.selectedMin,
|
|
41428
41483
|
// maxPrice: filters.find((f) => f.property === 'price')?.selectedMax,
|
|
41429
|
-
useExactDates: (context === null || context === void 0 ? void 0 : context.type) ===
|
|
41484
|
+
useExactDates: (context === null || context === void 0 ? void 0 : context.type) === PortalQsmType.GroupTour ? false : true,
|
|
41430
41485
|
onlyCachedResults: false,
|
|
41431
41486
|
includeAllAllotments: true,
|
|
41432
41487
|
productIds: hotel ? [hotel] : [],
|
|
@@ -41563,7 +41618,7 @@ var SearchResultsContainer = function () {
|
|
|
41563
41618
|
dispatch(setSelectedSearchResult(matching.productId));
|
|
41564
41619
|
}
|
|
41565
41620
|
} else {
|
|
41566
|
-
if (context.type ===
|
|
41621
|
+
if (context.type === PortalQsmType.AccommodationAndFlight) {
|
|
41567
41622
|
dispatch(setSelectedSearchResult((_b = packageSearchResults[0]) === null || _b === void 0 ? void 0 : _b.productId));
|
|
41568
41623
|
}
|
|
41569
41624
|
}
|
|
@@ -41583,9 +41638,9 @@ var SearchResultsContainer = function () {
|
|
|
41583
41638
|
};
|
|
41584
41639
|
if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
|
|
41585
41640
|
if (
|
|
41586
|
-
(context === null || context === void 0 ? void 0 : context.type) ===
|
|
41587
|
-
(context === null || context === void 0 ? void 0 : context.type) ===
|
|
41588
|
-
(context === null || context === void 0 ? void 0 : context.type) ===
|
|
41641
|
+
(context === null || context === void 0 ? void 0 : context.type) === PortalQsmType.AccommodationAndFlight ||
|
|
41642
|
+
(context === null || context === void 0 ? void 0 : context.type) === PortalQsmType.Accommodation ||
|
|
41643
|
+
(context === null || context === void 0 ? void 0 : context.type) === PortalQsmType.GroupTour
|
|
41589
41644
|
) {
|
|
41590
41645
|
runSearch();
|
|
41591
41646
|
}
|
|
@@ -41605,8 +41660,8 @@ var SearchResultsContainer = function () {
|
|
|
41605
41660
|
case 0:
|
|
41606
41661
|
if (!selectedSearchResultId || !context) return [2 /*return*/];
|
|
41607
41662
|
if (
|
|
41608
|
-
(context === null || context === void 0 ? void 0 : context.type) ===
|
|
41609
|
-
(context === null || context === void 0 ? void 0 : context.type) ===
|
|
41663
|
+
(context === null || context === void 0 ? void 0 : context.type) === PortalQsmType.Accommodation ||
|
|
41664
|
+
(context === null || context === void 0 ? void 0 : context.type) === PortalQsmType.GroupTour
|
|
41610
41665
|
) {
|
|
41611
41666
|
handleFlyInToggle(true);
|
|
41612
41667
|
}
|
|
@@ -41642,7 +41697,7 @@ var SearchResultsContainer = function () {
|
|
|
41642
41697
|
productCode: selectedItem.code,
|
|
41643
41698
|
fromDate: selectedItem.fromDate,
|
|
41644
41699
|
toDate: selectedItem.toDate,
|
|
41645
|
-
includeFlights: context.type ===
|
|
41700
|
+
includeFlights: context.type === PortalQsmType.AccommodationAndFlight ? true : false,
|
|
41646
41701
|
includeHotels: true,
|
|
41647
41702
|
includePaxTypes: true,
|
|
41648
41703
|
checkExternalAvailability: true,
|
|
@@ -41715,7 +41770,7 @@ var SearchResultsContainer = function () {
|
|
|
41715
41770
|
React__default.createElement(
|
|
41716
41771
|
'div',
|
|
41717
41772
|
{ className: 'search__container' },
|
|
41718
|
-
context.type ===
|
|
41773
|
+
context.type === PortalQsmType.Flight &&
|
|
41719
41774
|
React__default.createElement(
|
|
41720
41775
|
FlightSearchProvider,
|
|
41721
41776
|
{ tideConnection: context.tideConnection },
|
|
@@ -41730,11 +41785,14 @@ var SearchResultsContainer = function () {
|
|
|
41730
41785
|
}
|
|
41731
41786
|
})
|
|
41732
41787
|
),
|
|
41733
|
-
(context.type ===
|
|
41788
|
+
(context.type === PortalQsmType.AccommodationAndFlight ||
|
|
41789
|
+
context.type === PortalQsmType.Accommodation ||
|
|
41790
|
+
context.type === PortalQsmType.GroupTour ||
|
|
41791
|
+
context.type === PortalQsmType.RoundTrip) &&
|
|
41734
41792
|
React__default.createElement(
|
|
41735
41793
|
React__default.Fragment,
|
|
41736
41794
|
null,
|
|
41737
|
-
context.type !=
|
|
41795
|
+
context.type != PortalQsmType.AccommodationAndFlight &&
|
|
41738
41796
|
context.showFilters &&
|
|
41739
41797
|
React__default.createElement(Filters, {
|
|
41740
41798
|
initialFilters: initialFilters,
|
|
@@ -41746,7 +41804,7 @@ var SearchResultsContainer = function () {
|
|
|
41746
41804
|
// handleApplyFilters={() => setSearchTrigger((prev) => prev + 1)}
|
|
41747
41805
|
isLoading: isLoading
|
|
41748
41806
|
}),
|
|
41749
|
-
context.type ===
|
|
41807
|
+
context.type === PortalQsmType.AccommodationAndFlight &&
|
|
41750
41808
|
React__default.createElement(Itinerary, {
|
|
41751
41809
|
isOpen: itineraryOpen,
|
|
41752
41810
|
handleSetIsOpen: function () {
|
|
@@ -41764,7 +41822,7 @@ var SearchResultsContainer = function () {
|
|
|
41764
41822
|
React__default.createElement(
|
|
41765
41823
|
'div',
|
|
41766
41824
|
{ className: 'search__results__actions' },
|
|
41767
|
-
context.type !=
|
|
41825
|
+
context.type != PortalQsmType.AccommodationAndFlight &&
|
|
41768
41826
|
context.showFilters &&
|
|
41769
41827
|
React__default.createElement(
|
|
41770
41828
|
'div',
|
|
@@ -41777,7 +41835,7 @@ var SearchResultsContainer = function () {
|
|
|
41777
41835
|
React__default.createElement(Icon$1, { name: 'ui-filter', className: 'mobile-filters-button__icon', height: 16 }),
|
|
41778
41836
|
translations.SRP.FILTERS
|
|
41779
41837
|
),
|
|
41780
|
-
context.type ===
|
|
41838
|
+
context.type === PortalQsmType.AccommodationAndFlight &&
|
|
41781
41839
|
React__default.createElement(
|
|
41782
41840
|
'div',
|
|
41783
41841
|
{
|
|
@@ -41837,8 +41895,8 @@ var SearchResultsContainer = function () {
|
|
|
41837
41895
|
{ className: 'search__results__wrapper' },
|
|
41838
41896
|
context.showTabViews && React__default.createElement(TabViews, null),
|
|
41839
41897
|
context.showRoundTripResults && context.showMockup && React__default.createElement(RoundTripResults, null),
|
|
41840
|
-
context.type ===
|
|
41841
|
-
context.type ===
|
|
41898
|
+
context.type === PortalQsmType.GroupTour && React__default.createElement(GroupTourResults, { isLoading: isLoading }),
|
|
41899
|
+
context.type === PortalQsmType.AccommodationAndFlight &&
|
|
41842
41900
|
context.showFlightResults &&
|
|
41843
41901
|
(bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.outwardFlights) &&
|
|
41844
41902
|
React__default.createElement(FlightResults, {
|
|
@@ -41846,7 +41904,7 @@ var SearchResultsContainer = function () {
|
|
|
41846
41904
|
isDeparture: true
|
|
41847
41905
|
}),
|
|
41848
41906
|
context.showHotelAccommodationResults && React__default.createElement(HotelAccommodationResults, { isLoading: isLoading }),
|
|
41849
|
-
context.type ===
|
|
41907
|
+
context.type === PortalQsmType.AccommodationAndFlight &&
|
|
41850
41908
|
context.showFlightResults &&
|
|
41851
41909
|
(bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.returnFlights) &&
|
|
41852
41910
|
React__default.createElement(FlightResults, {
|
|
@@ -49287,6 +49345,7 @@ export {
|
|
|
49287
49345
|
Login,
|
|
49288
49346
|
Navbar,
|
|
49289
49347
|
PhotoGallery,
|
|
49348
|
+
PortalQsmType,
|
|
49290
49349
|
QSM,
|
|
49291
49350
|
SearchResults,
|
|
49292
49351
|
Slider
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MobileFilterType, Room, TravelerType, TypeaheadOption } from '../types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { TravelType, TravelClass,
|
|
3
|
+
import { TravelType, TravelClass, PortalQsmType } from '../../shared/types';
|
|
4
4
|
export interface QSMState {
|
|
5
|
-
qsmType?:
|
|
5
|
+
qsmType?: PortalQsmType;
|
|
6
6
|
selectedOrigin?: string;
|
|
7
7
|
selectedDestination?: string;
|
|
8
8
|
selectedAirport?: string;
|
|
@@ -48,7 +48,7 @@ export interface QSMState {
|
|
|
48
48
|
rooms: Room[];
|
|
49
49
|
[key: string]: any;
|
|
50
50
|
}
|
|
51
|
-
export declare const setSelectedQsmType: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
51
|
+
export declare const setSelectedQsmType: import('@reduxjs/toolkit').ActionCreatorWithPayload<PortalQsmType, 'qsm/setSelectedQsmType'>,
|
|
52
52
|
setOrigin: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, 'qsm/setOrigin'>,
|
|
53
53
|
setDestination: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, 'qsm/setDestination'>,
|
|
54
54
|
setAirport: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, 'qsm/setAirport'>,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PortalQsmType, TravelClass, TravelType } from '../shared/types';
|
|
3
3
|
export interface QSMConfiguration {
|
|
4
|
-
type?:
|
|
4
|
+
type?: PortalQsmType;
|
|
5
5
|
askRooms?: boolean;
|
|
6
6
|
askTravelType?: boolean;
|
|
7
7
|
allowOneWay?: boolean;
|