@qite/tide-booking-component 1.4.80 → 1.4.81
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 +208 -138
- package/build/build-cjs/src/booking-wizard/features/booking/api.d.ts +4 -0
- package/build/build-cjs/src/booking-wizard/features/booking/booking-slice.d.ts +16 -0
- package/build/build-cjs/src/booking-wizard/features/booking/selectors.d.ts +1 -0
- package/build/build-cjs/src/booking-wizard/types.d.ts +1 -0
- package/build/build-cjs/src/qsm/store/qsm-slice.d.ts +2 -1
- package/build/build-cjs/src/qsm/types.d.ts +2 -2
- package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +1 -1
- package/build/build-cjs/src/shared/types.d.ts +0 -13
- package/build/build-esm/index.js +209 -132
- package/build/build-esm/src/booking-wizard/features/booking/api.d.ts +4 -0
- package/build/build-esm/src/booking-wizard/features/booking/booking-slice.d.ts +16 -0
- package/build/build-esm/src/booking-wizard/features/booking/selectors.d.ts +1 -0
- package/build/build-esm/src/booking-wizard/types.d.ts +1 -0
- package/build/build-esm/src/qsm/store/qsm-slice.d.ts +2 -1
- package/build/build-esm/src/qsm/types.d.ts +2 -2
- package/build/build-esm/src/shared/components/flyin/flyin.d.ts +1 -1
- package/build/build-esm/src/shared/types.d.ts +0 -13
- package/package.json +1 -1
- package/src/booking-wizard/features/booking/api.ts +8 -2
- package/src/booking-wizard/features/booking/booking-slice.ts +15 -1
- package/src/booking-wizard/features/booking/selectors.ts +2 -0
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +46 -23
- package/src/booking-wizard/settings-context.ts +2 -1
- package/src/booking-wizard/types.ts +1 -0
- package/src/content/features/content-page/content-page-self-contained.tsx +2 -2
- package/src/qsm/components/QSMContainer/qsm-container.tsx +1 -2
- package/src/qsm/components/travel-input/index.tsx +1 -1
- package/src/qsm/components/travel-input-group/index.tsx +1 -1
- package/src/qsm/qsm-configuration-context.ts +1 -1
- package/src/qsm/store/qsm-slice.ts +2 -1
- package/src/qsm/types.ts +2 -2
- package/src/search-results/components/hotel/hotel-card.tsx +5 -1
- package/src/search-results/components/search-results-container/flight-search-results.tsx +1 -1
- package/src/search-results/components/search-results-container/search-results-container.tsx +9 -4
- package/src/shared/components/flyin/flyin.tsx +1 -1
- package/src/shared/types.ts +0 -14
package/build/build-cjs/index.js
CHANGED
|
@@ -6681,20 +6681,6 @@ var jaJson = {
|
|
|
6681
6681
|
SRP: SRP
|
|
6682
6682
|
};
|
|
6683
6683
|
|
|
6684
|
-
exports.PortalQsmType = void 0;
|
|
6685
|
-
(function (PortalQsmType) {
|
|
6686
|
-
PortalQsmType[(PortalQsmType['Multidestination'] = 0)] = 'Multidestination';
|
|
6687
|
-
PortalQsmType[(PortalQsmType['Accommodation'] = 1)] = 'Accommodation';
|
|
6688
|
-
PortalQsmType[(PortalQsmType['AccommodationAndFlight'] = 2)] = 'AccommodationAndFlight';
|
|
6689
|
-
PortalQsmType[(PortalQsmType['Flight'] = 3)] = 'Flight';
|
|
6690
|
-
PortalQsmType[(PortalQsmType['RoundTrip'] = 4)] = 'RoundTrip';
|
|
6691
|
-
PortalQsmType[(PortalQsmType['GroupTour'] = 5)] = 'GroupTour';
|
|
6692
|
-
PortalQsmType[(PortalQsmType['Package'] = 6)] = 'Package';
|
|
6693
|
-
PortalQsmType[(PortalQsmType['Ticket'] = 7)] = 'Ticket';
|
|
6694
|
-
PortalQsmType[(PortalQsmType['Car'] = 8)] = 'Car';
|
|
6695
|
-
PortalQsmType[(PortalQsmType['Transfer'] = 9)] = 'Transfer';
|
|
6696
|
-
PortalQsmType[(PortalQsmType['Cruise'] = 10)] = 'Cruise';
|
|
6697
|
-
})(exports.PortalQsmType || (exports.PortalQsmType = {}));
|
|
6698
6684
|
exports.DepartureRange = void 0;
|
|
6699
6685
|
(function (DepartureRange) {
|
|
6700
6686
|
DepartureRange[(DepartureRange['Morning'] = 0)] = 'Morning';
|
|
@@ -17520,10 +17506,25 @@ var fetchAccommodationViews$1 = function (request, signal, apiSettings) {
|
|
|
17520
17506
|
});
|
|
17521
17507
|
});
|
|
17522
17508
|
};
|
|
17509
|
+
var fetchCountries$1 = function (signal, apiSettings) {
|
|
17510
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
17511
|
+
var tideClientConfig;
|
|
17512
|
+
return __generator(this, function (_a) {
|
|
17513
|
+
switch (_a.label) {
|
|
17514
|
+
case 0:
|
|
17515
|
+
tideClientConfig = buildTideClientConfig(apiSettings);
|
|
17516
|
+
return [4 /*yield*/, build.getCountries(tideClientConfig, signal)];
|
|
17517
|
+
case 1:
|
|
17518
|
+
return [2 /*return*/, _a.sent()];
|
|
17519
|
+
}
|
|
17520
|
+
});
|
|
17521
|
+
});
|
|
17522
|
+
};
|
|
17523
17523
|
var packageApi = {
|
|
17524
17524
|
fetchDetails: fetchDetails,
|
|
17525
17525
|
fetchAgents: fetchAgents$1,
|
|
17526
|
-
fetchAccommodationViews: fetchAccommodationViews$1
|
|
17526
|
+
fetchAccommodationViews: fetchAccommodationViews$1,
|
|
17527
|
+
fetchCountries: fetchCountries$1
|
|
17527
17528
|
};
|
|
17528
17529
|
|
|
17529
17530
|
var ROOM_OPTIONS_FORM_STEP = 1;
|
|
@@ -18153,6 +18154,9 @@ var selectStartDate = function (state) {
|
|
|
18153
18154
|
var selectAgents = function (state) {
|
|
18154
18155
|
return state.booking.agents;
|
|
18155
18156
|
};
|
|
18157
|
+
var selectCountries = function (state) {
|
|
18158
|
+
return state.booking.countries;
|
|
18159
|
+
};
|
|
18156
18160
|
var selectProductCode = function (state) {
|
|
18157
18161
|
var _a;
|
|
18158
18162
|
return (_a = state.booking.productAttributes) === null || _a === void 0 ? void 0 : _a.productCode;
|
|
@@ -18449,7 +18453,8 @@ var initialState$5 = {
|
|
|
18449
18453
|
translations: undefined,
|
|
18450
18454
|
travelersFirstStep: false,
|
|
18451
18455
|
isFetching: false,
|
|
18452
|
-
hasMounted: false
|
|
18456
|
+
hasMounted: false,
|
|
18457
|
+
countries: undefined
|
|
18453
18458
|
};
|
|
18454
18459
|
var fetchPackage = toolkit.createAsyncThunk('booking/fetchPackage', function (_1, _a) {
|
|
18455
18460
|
return __awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
@@ -18461,11 +18466,14 @@ var fetchPackage = toolkit.createAsyncThunk('booking/fetchPackage', function (_1
|
|
|
18461
18466
|
return [4 /*yield*/, dispatch(fetchAgents())];
|
|
18462
18467
|
case 1:
|
|
18463
18468
|
_c.sent();
|
|
18464
|
-
return [4 /*yield*/, dispatch(
|
|
18469
|
+
return [4 /*yield*/, dispatch(fetchCountries())];
|
|
18465
18470
|
case 2:
|
|
18466
18471
|
_c.sent();
|
|
18467
|
-
return [4 /*yield*/, dispatch(
|
|
18472
|
+
return [4 /*yield*/, dispatch(fetchPackageDetails())];
|
|
18468
18473
|
case 3:
|
|
18474
|
+
_c.sent();
|
|
18475
|
+
return [4 /*yield*/, dispatch(fetchAccommodationViews())];
|
|
18476
|
+
case 4:
|
|
18469
18477
|
_c.sent();
|
|
18470
18478
|
dispatch(setFetchingPackage(false));
|
|
18471
18479
|
return [2 /*return*/];
|
|
@@ -18473,6 +18481,23 @@ var fetchPackage = toolkit.createAsyncThunk('booking/fetchPackage', function (_1
|
|
|
18473
18481
|
});
|
|
18474
18482
|
});
|
|
18475
18483
|
});
|
|
18484
|
+
var fetchCountries = toolkit.createAsyncThunk('booking/countries', function (_1, _a) {
|
|
18485
|
+
return __awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
18486
|
+
var settings;
|
|
18487
|
+
_b.dispatch;
|
|
18488
|
+
var getState = _b.getState,
|
|
18489
|
+
signal = _b.signal;
|
|
18490
|
+
return __generator(this, function (_c) {
|
|
18491
|
+
switch (_c.label) {
|
|
18492
|
+
case 0:
|
|
18493
|
+
settings = getState();
|
|
18494
|
+
return [4 /*yield*/, packageApi.fetchCountries(signal, settings.apiSettings)];
|
|
18495
|
+
case 1:
|
|
18496
|
+
return [2 /*return*/, _c.sent()];
|
|
18497
|
+
}
|
|
18498
|
+
});
|
|
18499
|
+
});
|
|
18500
|
+
});
|
|
18476
18501
|
var fetchAgents = toolkit.createAsyncThunk('booking/agents', function (_1, _a) {
|
|
18477
18502
|
return __awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
18478
18503
|
var settings;
|
|
@@ -19020,6 +19045,11 @@ var bookingSlice = toolkit.createSlice({
|
|
|
19020
19045
|
state.accommodationViews = action.payload;
|
|
19021
19046
|
}
|
|
19022
19047
|
});
|
|
19048
|
+
builder.addCase(fetchCountries.fulfilled, function (state, action) {
|
|
19049
|
+
if (action.payload.items) {
|
|
19050
|
+
state.countries = action.payload.items;
|
|
19051
|
+
}
|
|
19052
|
+
});
|
|
19023
19053
|
}
|
|
19024
19054
|
});
|
|
19025
19055
|
var setOfficeId = ((_a$3 = bookingSlice.actions), _a$3.setOfficeId),
|
|
@@ -19080,7 +19110,8 @@ var SettingsContext = React__default['default'].createContext({
|
|
|
19080
19110
|
},
|
|
19081
19111
|
travellers: {
|
|
19082
19112
|
pathSuffix: '/reizigers',
|
|
19083
|
-
travelersFirstStep: false
|
|
19113
|
+
travelersFirstStep: false,
|
|
19114
|
+
showAllCountries: false
|
|
19084
19115
|
},
|
|
19085
19116
|
summary: {
|
|
19086
19117
|
pathSuffix: '/samenvatting',
|
|
@@ -26776,7 +26807,7 @@ function createInitialValues(formRooms, startDate, agentAdressId, personTranslat
|
|
|
26776
26807
|
return initialValues;
|
|
26777
26808
|
}
|
|
26778
26809
|
var TravelersForm = function () {
|
|
26779
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
26810
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
26780
26811
|
var dispatch = useAppDispatch();
|
|
26781
26812
|
var navigate = reactRouter.useNavigate();
|
|
26782
26813
|
var settings = React.useContext(SettingsContext);
|
|
@@ -26792,17 +26823,19 @@ var TravelersForm = function () {
|
|
|
26792
26823
|
var bookingAttributes = reactRedux.useSelector(selectBookingAttributes);
|
|
26793
26824
|
var isFetching = reactRedux.useSelector(selectIsFetching);
|
|
26794
26825
|
var hasMounted = reactRedux.useSelector(selectHasMounted);
|
|
26826
|
+
var countries = reactRedux.useSelector(selectCountries);
|
|
26795
26827
|
var useCompactForm = !!settings.travellers.compactForm && !!settings.agentAdressId;
|
|
26828
|
+
var showAllCountries = !!settings.travellers.showAllCountries;
|
|
26796
26829
|
var initialValues =
|
|
26797
26830
|
(_a = reactRedux.useSelector(selectTravelersFormValues)) !== null && _a !== void 0
|
|
26798
26831
|
? _a
|
|
26799
26832
|
: createInitialValues(formRooms, startDate, agentAdressId, translations.TRAVELERS_FORM.PERSON, useCompactForm);
|
|
26800
|
-
var
|
|
26801
|
-
showAgents =
|
|
26802
|
-
setShowAgents =
|
|
26803
|
-
var
|
|
26804
|
-
showAgentSelection =
|
|
26805
|
-
setShowAgentSelection =
|
|
26833
|
+
var _k = React.useState((_b = settings.agentRequired) !== null && _b !== void 0 ? _b : false),
|
|
26834
|
+
showAgents = _k[0],
|
|
26835
|
+
setShowAgents = _k[1];
|
|
26836
|
+
var _l = React.useState(!settings.agentAdressId && !settings.hideAgentSelection),
|
|
26837
|
+
showAgentSelection = _l[0],
|
|
26838
|
+
setShowAgentSelection = _l[1];
|
|
26806
26839
|
var typeaheadAgents =
|
|
26807
26840
|
(_c = lodash.sortBy(
|
|
26808
26841
|
agents === null || agents === void 0
|
|
@@ -26818,9 +26851,9 @@ var TravelersForm = function () {
|
|
|
26818
26851
|
)) !== null && _c !== void 0
|
|
26819
26852
|
? _c
|
|
26820
26853
|
: [];
|
|
26821
|
-
var
|
|
26822
|
-
filteredAgents =
|
|
26823
|
-
setFilteredAgents =
|
|
26854
|
+
var _m = React.useState(typeaheadAgents),
|
|
26855
|
+
filteredAgents = _m[0],
|
|
26856
|
+
setFilteredAgents = _m[1];
|
|
26824
26857
|
var formik$1 = useCompactForm
|
|
26825
26858
|
? formik.useFormik({
|
|
26826
26859
|
initialValues: initialValues,
|
|
@@ -27076,7 +27109,7 @@ var TravelersForm = function () {
|
|
|
27076
27109
|
return lodash.get(formik$1.errors, key) && lodash.get(formik$1.touched, key);
|
|
27077
27110
|
};
|
|
27078
27111
|
var getControl = function (type, value, name) {
|
|
27079
|
-
var _a, _b, _c, _d, _e;
|
|
27112
|
+
var _a, _b, _c, _d, _e, _f;
|
|
27080
27113
|
switch (type) {
|
|
27081
27114
|
case 'gender': {
|
|
27082
27115
|
return React__default['default'].createElement(GenderControl, { translations: translations, value: value, formik: formik$1, name: name });
|
|
@@ -27135,17 +27168,30 @@ var TravelersForm = function () {
|
|
|
27135
27168
|
label: translations.TRAVELERS_FORM.SELECT_COUNTRY
|
|
27136
27169
|
}
|
|
27137
27170
|
],
|
|
27138
|
-
|
|
27139
|
-
|
|
27140
|
-
|
|
27141
|
-
|
|
27142
|
-
|
|
27143
|
-
|
|
27144
|
-
|
|
27145
|
-
|
|
27146
|
-
|
|
27147
|
-
|
|
27148
|
-
|
|
27171
|
+
showAllCountries
|
|
27172
|
+
? (_a =
|
|
27173
|
+
countries === null || countries === void 0
|
|
27174
|
+
? void 0
|
|
27175
|
+
: countries.map(function (country) {
|
|
27176
|
+
return {
|
|
27177
|
+
key: country.iso2,
|
|
27178
|
+
value: country.iso2,
|
|
27179
|
+
label: country.name
|
|
27180
|
+
};
|
|
27181
|
+
})) !== null && _a !== void 0
|
|
27182
|
+
? _a
|
|
27183
|
+
: []
|
|
27184
|
+
: (_d =
|
|
27185
|
+
(_c = (_b = settings.travellers) === null || _b === void 0 ? void 0 : _b.countries) === null || _c === void 0
|
|
27186
|
+
? void 0
|
|
27187
|
+
: _c.map(function (country) {
|
|
27188
|
+
return {
|
|
27189
|
+
key: country.iso2,
|
|
27190
|
+
value: country.iso2,
|
|
27191
|
+
label: country.name
|
|
27192
|
+
};
|
|
27193
|
+
})) !== null && _d !== void 0
|
|
27194
|
+
? _d
|
|
27149
27195
|
: [],
|
|
27150
27196
|
true
|
|
27151
27197
|
)
|
|
@@ -27153,7 +27199,7 @@ var TravelersForm = function () {
|
|
|
27153
27199
|
}
|
|
27154
27200
|
case 'phone': {
|
|
27155
27201
|
return React__default['default'].createElement(PhoneInput, {
|
|
27156
|
-
countries: (
|
|
27202
|
+
countries: (_f = (_e = settings.travellers) === null || _e === void 0 ? void 0 : _e.countries) !== null && _f !== void 0 ? _f : [],
|
|
27157
27203
|
countryIso2: formik$1.values.country,
|
|
27158
27204
|
hasError: hasVisibleError('phone'),
|
|
27159
27205
|
label: translations.TRAVELERS_FORM.PHONE,
|
|
@@ -27796,28 +27842,46 @@ var TravelersForm = function () {
|
|
|
27796
27842
|
onChange: formik$1.handleChange,
|
|
27797
27843
|
onBlur: formik$1.handleBlur,
|
|
27798
27844
|
value: formik$1.values.country,
|
|
27799
|
-
options:
|
|
27800
|
-
|
|
27801
|
-
|
|
27802
|
-
|
|
27803
|
-
|
|
27804
|
-
|
|
27805
|
-
|
|
27806
|
-
|
|
27807
|
-
|
|
27808
|
-
|
|
27809
|
-
|
|
27810
|
-
|
|
27811
|
-
|
|
27812
|
-
|
|
27813
|
-
|
|
27814
|
-
|
|
27815
|
-
|
|
27816
|
-
|
|
27817
|
-
|
|
27818
|
-
|
|
27819
|
-
|
|
27820
|
-
|
|
27845
|
+
options: __spreadArray(
|
|
27846
|
+
[
|
|
27847
|
+
{
|
|
27848
|
+
key: 'empty',
|
|
27849
|
+
value: undefined,
|
|
27850
|
+
label: translations.TRAVELERS_FORM.SELECT_COUNTRY
|
|
27851
|
+
}
|
|
27852
|
+
],
|
|
27853
|
+
showAllCountries
|
|
27854
|
+
? (_j =
|
|
27855
|
+
countries === null || countries === void 0
|
|
27856
|
+
? void 0
|
|
27857
|
+
: countries.map(function (country) {
|
|
27858
|
+
return {
|
|
27859
|
+
key: country.iso2,
|
|
27860
|
+
value: country.iso2,
|
|
27861
|
+
label: country.name
|
|
27862
|
+
};
|
|
27863
|
+
})) !== null && _j !== void 0
|
|
27864
|
+
? _j
|
|
27865
|
+
: []
|
|
27866
|
+
: [
|
|
27867
|
+
{
|
|
27868
|
+
key: 'be',
|
|
27869
|
+
value: 'be',
|
|
27870
|
+
label: translations.TRAVELERS_FORM.COUNTRIES.BELGIUM
|
|
27871
|
+
},
|
|
27872
|
+
{
|
|
27873
|
+
key: 'nl',
|
|
27874
|
+
value: 'nl',
|
|
27875
|
+
label: translations.TRAVELERS_FORM.COUNTRIES.NETHERLANDS
|
|
27876
|
+
},
|
|
27877
|
+
{
|
|
27878
|
+
key: 'fr',
|
|
27879
|
+
value: 'fr',
|
|
27880
|
+
label: translations.TRAVELERS_FORM.COUNTRIES.FRANCE
|
|
27881
|
+
}
|
|
27882
|
+
],
|
|
27883
|
+
true
|
|
27884
|
+
)
|
|
27821
27885
|
})
|
|
27822
27886
|
)
|
|
27823
27887
|
)
|
|
@@ -30423,7 +30487,7 @@ var Footer = function (_a) {
|
|
|
30423
30487
|
};
|
|
30424
30488
|
|
|
30425
30489
|
var QSMConfigurationContext = React__default['default'].createContext({
|
|
30426
|
-
type:
|
|
30490
|
+
type: build.PortalQsmType.Accommodation,
|
|
30427
30491
|
searchConfigurations: [],
|
|
30428
30492
|
askTravelers: false,
|
|
30429
30493
|
askNationality: false,
|
|
@@ -30466,7 +30530,7 @@ var useMediaQuery = function (query) {
|
|
|
30466
30530
|
|
|
30467
30531
|
var _a$1;
|
|
30468
30532
|
var initialState$2 = {
|
|
30469
|
-
qsmType:
|
|
30533
|
+
qsmType: build.PortalQsmType.AccommodationAndFlight,
|
|
30470
30534
|
selectedOrigin: undefined,
|
|
30471
30535
|
selectedDestination: undefined,
|
|
30472
30536
|
selectedAirport: undefined,
|
|
@@ -31879,7 +31943,7 @@ var TravelInput = function () {
|
|
|
31879
31943
|
babies = _b.babies,
|
|
31880
31944
|
rooms = _b.rooms,
|
|
31881
31945
|
qsmType = _b.qsmType;
|
|
31882
|
-
var areTravelersInRooms = qsmType !==
|
|
31946
|
+
var areTravelersInRooms = qsmType !== build.PortalQsmType.Flight && askRooms;
|
|
31883
31947
|
var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
|
|
31884
31948
|
var getTravelerButtonClass = function (disabled) {
|
|
31885
31949
|
return 'button button--increment '.concat(disabled ? 'button--disabled' : '');
|
|
@@ -32847,7 +32911,7 @@ var TravelInputGroup = function () {
|
|
|
32847
32911
|
rooms = _c.rooms,
|
|
32848
32912
|
qsmType = _c.qsmType;
|
|
32849
32913
|
var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
|
|
32850
|
-
var areTravelersInRooms = qsmType !==
|
|
32914
|
+
var areTravelersInRooms = qsmType !== build.PortalQsmType.Flight && askRooms;
|
|
32851
32915
|
var initDone = React.useRef(false);
|
|
32852
32916
|
var travelerSummary = reactRedux.useSelector(function (state) {
|
|
32853
32917
|
return selectTravelerSummary(state, areTravelersInRooms);
|
|
@@ -33100,7 +33164,7 @@ var QSMContainer = function () {
|
|
|
33100
33164
|
if (fromDate || toDate) return;
|
|
33101
33165
|
var startDate = dateFns.addMonths(new Date(), 1);
|
|
33102
33166
|
var endDate = dateFns.addDays(startDate, 7);
|
|
33103
|
-
if (qsmType ===
|
|
33167
|
+
if (qsmType === build.PortalQsmType.GroupTour) {
|
|
33104
33168
|
startDate = new Date();
|
|
33105
33169
|
endDate = dateFns.addYears(startDate, 1);
|
|
33106
33170
|
}
|
|
@@ -33132,7 +33196,7 @@ var QSMContainer = function () {
|
|
|
33132
33196
|
// Default fallback
|
|
33133
33197
|
var startDate = dateFns.addMonths(now, 1);
|
|
33134
33198
|
var endDate = dateFns.addDays(startDate, 7);
|
|
33135
|
-
if (value ===
|
|
33199
|
+
if (value === build.PortalQsmType.GroupTour) {
|
|
33136
33200
|
startDate = now;
|
|
33137
33201
|
endDate = dateFns.addYears(startDate, 1);
|
|
33138
33202
|
}
|
|
@@ -33191,7 +33255,7 @@ var QSMContainer = function () {
|
|
|
33191
33255
|
nationality: selectedNationality,
|
|
33192
33256
|
tripType: tripType
|
|
33193
33257
|
};
|
|
33194
|
-
if (askRooms && qsmType !==
|
|
33258
|
+
if (askRooms && qsmType !== build.PortalQsmType.Flight) {
|
|
33195
33259
|
payload.rooms = rooms;
|
|
33196
33260
|
} else {
|
|
33197
33261
|
payload.travelers = { adults: adults, kids: kids, babies: babies };
|
|
@@ -33258,47 +33322,47 @@ var QSMContainer = function () {
|
|
|
33258
33322
|
);
|
|
33259
33323
|
var qsmTypeMeta =
|
|
33260
33324
|
((_a = {}),
|
|
33261
|
-
(_a[
|
|
33325
|
+
(_a[build.PortalQsmType.Multidestination] = {
|
|
33262
33326
|
icon: 'ui-location',
|
|
33263
33327
|
label: translations.QSM.MULTIDESTINATION
|
|
33264
33328
|
}),
|
|
33265
|
-
(_a[
|
|
33329
|
+
(_a[build.PortalQsmType.Package] = {
|
|
33266
33330
|
icon: 'ui-suitcase',
|
|
33267
33331
|
label: translations.QSM.PACKAGES
|
|
33268
33332
|
}),
|
|
33269
|
-
(_a[
|
|
33333
|
+
(_a[build.PortalQsmType.AccommodationAndFlight] = {
|
|
33270
33334
|
icon: ['ui-backforward', 'ui-bed'],
|
|
33271
33335
|
label: translations.QSM.TRANSPORT_HOTEL
|
|
33272
33336
|
}),
|
|
33273
|
-
(_a[
|
|
33337
|
+
(_a[build.PortalQsmType.Accommodation] = {
|
|
33274
33338
|
icon: 'ui-bed',
|
|
33275
33339
|
label: translations.QSM.ACCOMMODATION
|
|
33276
33340
|
}),
|
|
33277
|
-
(_a[
|
|
33341
|
+
(_a[build.PortalQsmType.Flight] = {
|
|
33278
33342
|
icon: 'ui-flight',
|
|
33279
33343
|
label: translations.QSM.TRANSPORTS
|
|
33280
33344
|
}),
|
|
33281
|
-
(_a[
|
|
33345
|
+
(_a[build.PortalQsmType.GroupTour] = {
|
|
33282
33346
|
icon: 'ui-group',
|
|
33283
33347
|
label: translations.QSM.GROUP_TOUR
|
|
33284
33348
|
}),
|
|
33285
|
-
(_a[
|
|
33349
|
+
(_a[build.PortalQsmType.RoundTrip] = {
|
|
33286
33350
|
icon: 'ui-group',
|
|
33287
33351
|
label: translations.QSM.ROUNDTRIP
|
|
33288
33352
|
}),
|
|
33289
|
-
(_a[
|
|
33353
|
+
(_a[build.PortalQsmType.Ticket] = {
|
|
33290
33354
|
icon: 'ui-ticket',
|
|
33291
33355
|
label: translations.QSM.TICKET_ONLY
|
|
33292
33356
|
}),
|
|
33293
|
-
(_a[
|
|
33357
|
+
(_a[build.PortalQsmType.Car] = {
|
|
33294
33358
|
icon: 'ui-car',
|
|
33295
33359
|
label: translations.QSM.RENT_A_CAR
|
|
33296
33360
|
}),
|
|
33297
|
-
(_a[
|
|
33361
|
+
(_a[build.PortalQsmType.Transfer] = {
|
|
33298
33362
|
icon: 'ui-backforward',
|
|
33299
33363
|
label: translations.QSM.TRANSFERS
|
|
33300
33364
|
}),
|
|
33301
|
-
(_a[
|
|
33365
|
+
(_a[build.PortalQsmType.Cruise] = {
|
|
33302
33366
|
icon: 'ui-ship',
|
|
33303
33367
|
label: translations.QSM.CRUISES
|
|
33304
33368
|
}),
|
|
@@ -33341,9 +33405,9 @@ var QSMContainer = function () {
|
|
|
33341
33405
|
React__default['default'].createElement(
|
|
33342
33406
|
'div',
|
|
33343
33407
|
{ className: 'qsm__filter' },
|
|
33344
|
-
(qsmType ===
|
|
33345
|
-
qsmType ===
|
|
33346
|
-
qsmType ===
|
|
33408
|
+
(qsmType === build.PortalQsmType.Accommodation ||
|
|
33409
|
+
qsmType === build.PortalQsmType.AccommodationAndFlight ||
|
|
33410
|
+
qsmType === build.PortalQsmType.GroupTour) &&
|
|
33347
33411
|
React__default['default'].createElement(
|
|
33348
33412
|
'div',
|
|
33349
33413
|
{ className: 'radiobutton-group qsm__filter__inputgroup' },
|
|
@@ -33385,7 +33449,7 @@ var QSMContainer = function () {
|
|
|
33385
33449
|
)
|
|
33386
33450
|
)
|
|
33387
33451
|
),
|
|
33388
|
-
qsmType ===
|
|
33452
|
+
qsmType === build.PortalQsmType.Flight &&
|
|
33389
33453
|
React__default['default'].createElement(
|
|
33390
33454
|
'div',
|
|
33391
33455
|
{ className: 'radiobutton-group qsm__filter__inputgroup' },
|
|
@@ -33453,18 +33517,18 @@ var QSMContainer = function () {
|
|
|
33453
33517
|
React__default['default'].createElement(
|
|
33454
33518
|
'div',
|
|
33455
33519
|
{ className: 'qsm__filter__classgroup' },
|
|
33456
|
-
qsmType !==
|
|
33457
|
-
qsmType !==
|
|
33458
|
-
qsmType !==
|
|
33459
|
-
qsmType !==
|
|
33460
|
-
qsmType !==
|
|
33461
|
-
qsmType !==
|
|
33520
|
+
qsmType !== build.PortalQsmType.Accommodation &&
|
|
33521
|
+
qsmType !== build.PortalQsmType.Car &&
|
|
33522
|
+
qsmType !== build.PortalQsmType.Ticket &&
|
|
33523
|
+
qsmType !== build.PortalQsmType.Cruise &&
|
|
33524
|
+
qsmType !== build.PortalQsmType.Transfer &&
|
|
33525
|
+
qsmType !== build.PortalQsmType.GroupTour &&
|
|
33462
33526
|
askTravelClass &&
|
|
33463
33527
|
React__default['default'].createElement(TravelClassPicker, null),
|
|
33464
|
-
qsmType !==
|
|
33465
|
-
qsmType !==
|
|
33466
|
-
qsmType !==
|
|
33467
|
-
qsmType !==
|
|
33528
|
+
qsmType !== build.PortalQsmType.Multidestination &&
|
|
33529
|
+
qsmType !== build.PortalQsmType.Car &&
|
|
33530
|
+
qsmType !== build.PortalQsmType.Flight &&
|
|
33531
|
+
qsmType !== build.PortalQsmType.Transfer &&
|
|
33468
33532
|
askTravelType &&
|
|
33469
33533
|
React__default['default'].createElement(TravelTypePicker, null),
|
|
33470
33534
|
askNationality && React__default['default'].createElement(TravelNationalityPicker, null)
|
|
@@ -33473,22 +33537,20 @@ var QSMContainer = function () {
|
|
|
33473
33537
|
React__default['default'].createElement(
|
|
33474
33538
|
'div',
|
|
33475
33539
|
{ className: 'qsm__input-group' },
|
|
33476
|
-
(qsmType ==
|
|
33540
|
+
(qsmType == build.PortalQsmType.Flight || qsmType == build.PortalQsmType.AccommodationAndFlight) &&
|
|
33477
33541
|
originDestinationField &&
|
|
33478
33542
|
React__default['default'].createElement(DoubleSearchInputGroup, {
|
|
33479
33543
|
fieldConfig: originDestinationField,
|
|
33480
33544
|
showReverse: originDestinationField.showReverse
|
|
33481
33545
|
}),
|
|
33482
|
-
qsmType ==
|
|
33546
|
+
qsmType == build.PortalQsmType.Flight &&
|
|
33483
33547
|
tripType == 'openjaw' &&
|
|
33484
33548
|
openJawReturnDestinationField &&
|
|
33485
33549
|
React__default['default'].createElement(DoubleSearchInputGroup, {
|
|
33486
33550
|
fieldConfig: openJawReturnDestinationField,
|
|
33487
33551
|
showReverse: openJawReturnDestinationField.showReverse
|
|
33488
33552
|
}),
|
|
33489
|
-
(qsmType ==
|
|
33490
|
-
qsmType == exports.PortalQsmType.AccommodationAndFlight ||
|
|
33491
|
-
qsmType == exports.PortalQsmType.GroupTour) &&
|
|
33553
|
+
(qsmType == build.PortalQsmType.Accommodation || qsmType == build.PortalQsmType.AccommodationAndFlight || qsmType == build.PortalQsmType.GroupTour) &&
|
|
33492
33554
|
destination &&
|
|
33493
33555
|
React__default['default'].createElement(SearchInputGroup, { fieldConfig: destination }),
|
|
33494
33556
|
React__default['default'].createElement(Dates, { value: dateRange, onChange: handleDateChange }),
|
|
@@ -38000,7 +38062,7 @@ var FlyIn = function (_a) {
|
|
|
38000
38062
|
);
|
|
38001
38063
|
var handleClose = function () {
|
|
38002
38064
|
if (isOpen && panelRef.current) {
|
|
38003
|
-
if (srpType ===
|
|
38065
|
+
if (srpType === build.PortalQsmType.Flight) {
|
|
38004
38066
|
dispatch(setSelectedFlight(null));
|
|
38005
38067
|
dispatch(setSelectedFlightDetails(null));
|
|
38006
38068
|
onCancelSearch();
|
|
@@ -38033,8 +38095,8 @@ var FlyIn = function (_a) {
|
|
|
38033
38095
|
)
|
|
38034
38096
|
)
|
|
38035
38097
|
),
|
|
38036
|
-
srpType ===
|
|
38037
|
-
(srpType ===
|
|
38098
|
+
srpType === build.PortalQsmType.Flight && React__default['default'].createElement(FlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen }),
|
|
38099
|
+
(srpType === build.PortalQsmType.Accommodation || srpType === build.PortalQsmType.GroupTour) &&
|
|
38038
38100
|
React__default['default'].createElement(AccommodationFlyIn, { isLoading: true, isOpen: isOpen, setIsOpen: setIsOpen })
|
|
38039
38101
|
)
|
|
38040
38102
|
);
|
|
@@ -38054,7 +38116,16 @@ var HotelCard = function (_a) {
|
|
|
38054
38116
|
if ((_b = result.contents) === null || _b === void 0 ? void 0 : _b.length) {
|
|
38055
38117
|
return React__default['default'].createElement(
|
|
38056
38118
|
'div',
|
|
38057
|
-
{
|
|
38119
|
+
{
|
|
38120
|
+
key: result.id,
|
|
38121
|
+
className: 'search__result-card__wrapper',
|
|
38122
|
+
onMouseEnter: function (e) {
|
|
38123
|
+
return (e.currentTarget.style.transform = 'scale(1.02)');
|
|
38124
|
+
},
|
|
38125
|
+
onMouseLeave: function (e) {
|
|
38126
|
+
return (e.currentTarget.style.transform = 'scale(1)');
|
|
38127
|
+
}
|
|
38128
|
+
},
|
|
38058
38129
|
React__default['default'].createElement('div', {
|
|
38059
38130
|
dangerouslySetInnerHTML: {
|
|
38060
38131
|
__html: result.contents
|
|
@@ -40896,7 +40967,7 @@ var FlightResultsContainer = function (_a) {
|
|
|
40896
40967
|
React.useEffect(
|
|
40897
40968
|
function () {
|
|
40898
40969
|
if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
|
|
40899
|
-
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) ===
|
|
40970
|
+
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.Flight && isHubReady) {
|
|
40900
40971
|
onFlightSearch();
|
|
40901
40972
|
}
|
|
40902
40973
|
}
|
|
@@ -41036,7 +41107,7 @@ var FlightResultsContainer = function (_a) {
|
|
|
41036
41107
|
'div',
|
|
41037
41108
|
{ className: 'search__results__wrapper' },
|
|
41038
41109
|
flightsLoading && React__default['default'].createElement(Spinner, null),
|
|
41039
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) ==
|
|
41110
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) == build.PortalQsmType.Flight &&
|
|
41040
41111
|
(context === null || context === void 0 ? void 0 : context.showFlightAccommodationResults) &&
|
|
41041
41112
|
results &&
|
|
41042
41113
|
results.length > 0 &&
|
|
@@ -41825,12 +41896,12 @@ var SearchResultsContainer = function () {
|
|
|
41825
41896
|
payload: {
|
|
41826
41897
|
catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
|
|
41827
41898
|
serviceType:
|
|
41828
|
-
context.searchConfiguration.qsmType ===
|
|
41829
|
-
context.searchConfiguration.qsmType ===
|
|
41899
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation ||
|
|
41900
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight
|
|
41830
41901
|
? 3
|
|
41831
|
-
: context.searchConfiguration.qsmType ===
|
|
41902
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.Flight
|
|
41832
41903
|
? 7
|
|
41833
|
-
: context.searchConfiguration.qsmType ===
|
|
41904
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.RoundTrip
|
|
41834
41905
|
? 1
|
|
41835
41906
|
: 0,
|
|
41836
41907
|
searchType: 0,
|
|
@@ -41900,15 +41971,15 @@ var SearchResultsContainer = function () {
|
|
|
41900
41971
|
payload: {
|
|
41901
41972
|
catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
|
|
41902
41973
|
serviceType:
|
|
41903
|
-
context.searchConfiguration.qsmType ===
|
|
41904
|
-
context.searchConfiguration.qsmType ===
|
|
41974
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation ||
|
|
41975
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight
|
|
41905
41976
|
? 3
|
|
41906
|
-
: context.searchConfiguration.qsmType ===
|
|
41977
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.Flight
|
|
41907
41978
|
? 7
|
|
41908
|
-
: context.searchConfiguration.qsmType ===
|
|
41979
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.RoundTrip
|
|
41909
41980
|
? 1
|
|
41910
41981
|
: undefined,
|
|
41911
|
-
searchType: context.searchConfiguration.qsmType ===
|
|
41982
|
+
searchType: context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour ? 1 : 0,
|
|
41912
41983
|
destination: {
|
|
41913
41984
|
id: Number(destinationId),
|
|
41914
41985
|
isCountry: destinationIsCountry,
|
|
@@ -41921,7 +41992,7 @@ var SearchResultsContainer = function () {
|
|
|
41921
41992
|
toDate: to,
|
|
41922
41993
|
earliestFromOffset: 0,
|
|
41923
41994
|
latestToOffset: 0,
|
|
41924
|
-
includeFlights: context.searchConfiguration.qsmType ===
|
|
41995
|
+
includeFlights: context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight ? true : false,
|
|
41925
41996
|
// regimeCodes:
|
|
41926
41997
|
// filters
|
|
41927
41998
|
// .find((f) => f.property === 'regime')
|
|
@@ -41929,8 +42000,7 @@ var SearchResultsContainer = function () {
|
|
|
41929
42000
|
// .flatMap((o) => o.value.toString()) || [],
|
|
41930
42001
|
// minPrice: filters.find((f) => f.property === 'price')?.selectedMin,
|
|
41931
42002
|
// maxPrice: filters.find((f) => f.property === 'price')?.selectedMax,
|
|
41932
|
-
useExactDates:
|
|
41933
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === exports.PortalQsmType.GroupTour ? false : true,
|
|
42003
|
+
useExactDates: (context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.GroupTour ? false : true,
|
|
41934
42004
|
onlyCachedResults: false,
|
|
41935
42005
|
includeAllAllotments: true,
|
|
41936
42006
|
productIds: hotel ? [hotel] : [],
|
|
@@ -42157,7 +42227,7 @@ var SearchResultsContainer = function () {
|
|
|
42157
42227
|
dispatch(setSelectedSearchResult(matching.productId));
|
|
42158
42228
|
}
|
|
42159
42229
|
} else {
|
|
42160
|
-
if (context.searchConfiguration.qsmType ===
|
|
42230
|
+
if (context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight) {
|
|
42161
42231
|
dispatch(setSelectedSearchResult((_b = packageSearchResults[0]) === null || _b === void 0 ? void 0 : _b.productId));
|
|
42162
42232
|
}
|
|
42163
42233
|
}
|
|
@@ -42232,12 +42302,12 @@ var SearchResultsContainer = function () {
|
|
|
42232
42302
|
};
|
|
42233
42303
|
if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
|
|
42234
42304
|
if (
|
|
42235
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) ===
|
|
42236
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) ===
|
|
42305
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.AccommodationAndFlight ||
|
|
42306
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.GroupTour
|
|
42237
42307
|
) {
|
|
42238
42308
|
runSearch();
|
|
42239
42309
|
}
|
|
42240
|
-
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) ===
|
|
42310
|
+
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.Accommodation) {
|
|
42241
42311
|
runHotelSearch();
|
|
42242
42312
|
}
|
|
42243
42313
|
}
|
|
@@ -42256,8 +42326,8 @@ var SearchResultsContainer = function () {
|
|
|
42256
42326
|
case 0:
|
|
42257
42327
|
if (!selectedSearchResultId || !context) return [2 /*return*/];
|
|
42258
42328
|
if (
|
|
42259
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) ===
|
|
42260
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) ===
|
|
42329
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.Accommodation ||
|
|
42330
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.GroupTour
|
|
42261
42331
|
) {
|
|
42262
42332
|
handleFlyInToggle(true);
|
|
42263
42333
|
}
|
|
@@ -42293,7 +42363,7 @@ var SearchResultsContainer = function () {
|
|
|
42293
42363
|
productCode: selectedItem.code,
|
|
42294
42364
|
fromDate: selectedItem.fromDate,
|
|
42295
42365
|
toDate: selectedItem.toDate,
|
|
42296
|
-
includeFlights: context.searchConfiguration.qsmType ===
|
|
42366
|
+
includeFlights: context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight ? true : false,
|
|
42297
42367
|
includeHotels: true,
|
|
42298
42368
|
includePaxTypes: true,
|
|
42299
42369
|
checkExternalAvailability: true,
|
|
@@ -42366,7 +42436,7 @@ var SearchResultsContainer = function () {
|
|
|
42366
42436
|
React__default['default'].createElement(
|
|
42367
42437
|
'div',
|
|
42368
42438
|
{ className: 'search__container' },
|
|
42369
|
-
context.searchConfiguration.qsmType ===
|
|
42439
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Flight &&
|
|
42370
42440
|
React__default['default'].createElement(
|
|
42371
42441
|
FlightSearchProvider,
|
|
42372
42442
|
{ tideConnection: context.tideConnection },
|
|
@@ -42381,14 +42451,14 @@ var SearchResultsContainer = function () {
|
|
|
42381
42451
|
}
|
|
42382
42452
|
})
|
|
42383
42453
|
),
|
|
42384
|
-
(context.searchConfiguration.qsmType ===
|
|
42385
|
-
context.searchConfiguration.qsmType ===
|
|
42386
|
-
context.searchConfiguration.qsmType ===
|
|
42387
|
-
context.searchConfiguration.qsmType ===
|
|
42454
|
+
(context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight ||
|
|
42455
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation ||
|
|
42456
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour ||
|
|
42457
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.RoundTrip) &&
|
|
42388
42458
|
React__default['default'].createElement(
|
|
42389
42459
|
React__default['default'].Fragment,
|
|
42390
42460
|
null,
|
|
42391
|
-
context.searchConfiguration.qsmType !=
|
|
42461
|
+
context.searchConfiguration.qsmType != build.PortalQsmType.AccommodationAndFlight &&
|
|
42392
42462
|
context.showFilters &&
|
|
42393
42463
|
React__default['default'].createElement(Filters, {
|
|
42394
42464
|
initialFilters: initialFilters,
|
|
@@ -42400,7 +42470,7 @@ var SearchResultsContainer = function () {
|
|
|
42400
42470
|
// handleApplyFilters={() => setSearchTrigger((prev) => prev + 1)}
|
|
42401
42471
|
isLoading: isLoading
|
|
42402
42472
|
}),
|
|
42403
|
-
context.searchConfiguration.qsmType ===
|
|
42473
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42404
42474
|
React__default['default'].createElement(Itinerary, {
|
|
42405
42475
|
isOpen: itineraryOpen,
|
|
42406
42476
|
handleSetIsOpen: function () {
|
|
@@ -42418,7 +42488,7 @@ var SearchResultsContainer = function () {
|
|
|
42418
42488
|
React__default['default'].createElement(
|
|
42419
42489
|
'div',
|
|
42420
42490
|
{ className: 'search__results__actions' },
|
|
42421
|
-
context.searchConfiguration.qsmType !=
|
|
42491
|
+
context.searchConfiguration.qsmType != build.PortalQsmType.AccommodationAndFlight &&
|
|
42422
42492
|
context.showFilters &&
|
|
42423
42493
|
React__default['default'].createElement(
|
|
42424
42494
|
'div',
|
|
@@ -42431,7 +42501,7 @@ var SearchResultsContainer = function () {
|
|
|
42431
42501
|
React__default['default'].createElement(Icon$1, { name: 'ui-filter', className: 'mobile-filters-button__icon', height: 16 }),
|
|
42432
42502
|
translations.SRP.FILTERS
|
|
42433
42503
|
),
|
|
42434
|
-
context.searchConfiguration.qsmType ===
|
|
42504
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42435
42505
|
React__default['default'].createElement(
|
|
42436
42506
|
'div',
|
|
42437
42507
|
{
|
|
@@ -42491,9 +42561,9 @@ var SearchResultsContainer = function () {
|
|
|
42491
42561
|
{ className: 'search__results__wrapper' },
|
|
42492
42562
|
context.showTabViews && React__default['default'].createElement(TabViews, null),
|
|
42493
42563
|
context.showRoundTripResults && context.showMockup && React__default['default'].createElement(RoundTripResults, null),
|
|
42494
|
-
context.searchConfiguration.qsmType ===
|
|
42564
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour &&
|
|
42495
42565
|
React__default['default'].createElement(GroupTourResults, { isLoading: isLoading }),
|
|
42496
|
-
context.searchConfiguration.qsmType ===
|
|
42566
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42497
42567
|
context.showFlightResults &&
|
|
42498
42568
|
(bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.outwardFlights) &&
|
|
42499
42569
|
React__default['default'].createElement(FlightResults, {
|
|
@@ -42501,7 +42571,7 @@ var SearchResultsContainer = function () {
|
|
|
42501
42571
|
isDeparture: true
|
|
42502
42572
|
}),
|
|
42503
42573
|
context.showHotelAccommodationResults && React__default['default'].createElement(HotelAccommodationResults, { isLoading: isLoading }),
|
|
42504
|
-
context.searchConfiguration.qsmType ===
|
|
42574
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42505
42575
|
context.showFlightResults &&
|
|
42506
42576
|
(bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.returnFlights) &&
|
|
42507
42577
|
React__default['default'].createElement(FlightResults, {
|