@qite/tide-booking-component 1.4.80 → 1.4.82
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 +280 -150
- 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/search-results/types.d.ts +1 -0
- 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 +281 -144
- 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/search-results/types.d.ts +1 -0
- 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 +2 -2
- 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/featured-trips/featured-trip-card.tsx +18 -16
- 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/round-trip/round-trip-results.tsx +15 -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 +39 -13
- package/src/search-results/types.ts +1 -0
- package/src/shared/components/flyin/flyin.tsx +1 -1
- package/src/shared/types.ts +0 -14
- package/styles/booking-search-results-variables.scss +1 -1
- package/styles/components/_content.scss +7 -0
- package/styles/components/_search.scss +134 -441
package/build/build-esm/index.js
CHANGED
|
@@ -6713,20 +6713,6 @@ var jaJson = {
|
|
|
6713
6713
|
SRP: SRP
|
|
6714
6714
|
};
|
|
6715
6715
|
|
|
6716
|
-
var PortalQsmType;
|
|
6717
|
-
(function (PortalQsmType) {
|
|
6718
|
-
PortalQsmType[(PortalQsmType['Multidestination'] = 0)] = 'Multidestination';
|
|
6719
|
-
PortalQsmType[(PortalQsmType['Accommodation'] = 1)] = 'Accommodation';
|
|
6720
|
-
PortalQsmType[(PortalQsmType['AccommodationAndFlight'] = 2)] = 'AccommodationAndFlight';
|
|
6721
|
-
PortalQsmType[(PortalQsmType['Flight'] = 3)] = 'Flight';
|
|
6722
|
-
PortalQsmType[(PortalQsmType['RoundTrip'] = 4)] = 'RoundTrip';
|
|
6723
|
-
PortalQsmType[(PortalQsmType['GroupTour'] = 5)] = 'GroupTour';
|
|
6724
|
-
PortalQsmType[(PortalQsmType['Package'] = 6)] = 'Package';
|
|
6725
|
-
PortalQsmType[(PortalQsmType['Ticket'] = 7)] = 'Ticket';
|
|
6726
|
-
PortalQsmType[(PortalQsmType['Car'] = 8)] = 'Car';
|
|
6727
|
-
PortalQsmType[(PortalQsmType['Transfer'] = 9)] = 'Transfer';
|
|
6728
|
-
PortalQsmType[(PortalQsmType['Cruise'] = 10)] = 'Cruise';
|
|
6729
|
-
})(PortalQsmType || (PortalQsmType = {}));
|
|
6730
6716
|
var DepartureRange;
|
|
6731
6717
|
(function (DepartureRange) {
|
|
6732
6718
|
DepartureRange[(DepartureRange['Morning'] = 0)] = 'Morning';
|
|
@@ -13268,6 +13254,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
13268
13254
|
var ENDPOINT_WEBSITE_CONFIGURATION = function (portalId) {
|
|
13269
13255
|
return ENDPOINT$3 + '/website/' + portalId + '/configuration';
|
|
13270
13256
|
};
|
|
13257
|
+
var ENDPOINT_WEBSITE_STYLESHEET = function (styleSheetId) {
|
|
13258
|
+
return ENDPOINT$3 + '/style-sheet/' + styleSheetId;
|
|
13259
|
+
};
|
|
13271
13260
|
/**
|
|
13272
13261
|
* api/web/crmcontact
|
|
13273
13262
|
* Creates a CRM contact.
|
|
@@ -13330,6 +13319,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
13330
13319
|
var apiKey = config.apiKey;
|
|
13331
13320
|
return get(url, apiKey, config.token, signal, true);
|
|
13332
13321
|
};
|
|
13322
|
+
var getStyleSheet = function (config, id, signal) {
|
|
13323
|
+
var url = '' + config.host + ENDPOINT_WEBSITE_STYLESHEET(id);
|
|
13324
|
+
var apiKey = config.apiKey;
|
|
13325
|
+
return get(url, apiKey, config.token, signal, true);
|
|
13326
|
+
};
|
|
13333
13327
|
|
|
13334
13328
|
var ENDPOINT$2 = '/api/web/contact';
|
|
13335
13329
|
var ENDPOINT_CONTACT_FORM = ENDPOINT$2 + '/contact-form';
|
|
@@ -13449,6 +13443,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
13449
13443
|
exports.getMolliePayment = getMolliePayment;
|
|
13450
13444
|
exports.getPortal = getPortal;
|
|
13451
13445
|
exports.getPrintActions = getPrintActions;
|
|
13446
|
+
exports.getStyleSheet = getStyleSheet;
|
|
13452
13447
|
exports.getTranslationDictionary = getTranslationDictionary;
|
|
13453
13448
|
exports.getWebsiteConfiguration = getWebsiteConfiguration;
|
|
13454
13449
|
exports.login = login;
|
|
@@ -17532,10 +17527,25 @@ var fetchAccommodationViews$1 = function (request, signal, apiSettings) {
|
|
|
17532
17527
|
});
|
|
17533
17528
|
});
|
|
17534
17529
|
};
|
|
17530
|
+
var fetchCountries$1 = function (signal, apiSettings) {
|
|
17531
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
17532
|
+
var tideClientConfig;
|
|
17533
|
+
return __generator(this, function (_a) {
|
|
17534
|
+
switch (_a.label) {
|
|
17535
|
+
case 0:
|
|
17536
|
+
tideClientConfig = buildTideClientConfig(apiSettings);
|
|
17537
|
+
return [4 /*yield*/, build.getCountries(tideClientConfig, signal)];
|
|
17538
|
+
case 1:
|
|
17539
|
+
return [2 /*return*/, _a.sent()];
|
|
17540
|
+
}
|
|
17541
|
+
});
|
|
17542
|
+
});
|
|
17543
|
+
};
|
|
17535
17544
|
var packageApi = {
|
|
17536
17545
|
fetchDetails: fetchDetails,
|
|
17537
17546
|
fetchAgents: fetchAgents$1,
|
|
17538
|
-
fetchAccommodationViews: fetchAccommodationViews$1
|
|
17547
|
+
fetchAccommodationViews: fetchAccommodationViews$1,
|
|
17548
|
+
fetchCountries: fetchCountries$1
|
|
17539
17549
|
};
|
|
17540
17550
|
|
|
17541
17551
|
var ROOM_OPTIONS_FORM_STEP = 1;
|
|
@@ -18165,6 +18175,9 @@ var selectStartDate = function (state) {
|
|
|
18165
18175
|
var selectAgents = function (state) {
|
|
18166
18176
|
return state.booking.agents;
|
|
18167
18177
|
};
|
|
18178
|
+
var selectCountries = function (state) {
|
|
18179
|
+
return state.booking.countries;
|
|
18180
|
+
};
|
|
18168
18181
|
var selectProductCode = function (state) {
|
|
18169
18182
|
var _a;
|
|
18170
18183
|
return (_a = state.booking.productAttributes) === null || _a === void 0 ? void 0 : _a.productCode;
|
|
@@ -18456,7 +18469,8 @@ var initialState$5 = {
|
|
|
18456
18469
|
translations: undefined,
|
|
18457
18470
|
travelersFirstStep: false,
|
|
18458
18471
|
isFetching: false,
|
|
18459
|
-
hasMounted: false
|
|
18472
|
+
hasMounted: false,
|
|
18473
|
+
countries: undefined
|
|
18460
18474
|
};
|
|
18461
18475
|
var fetchPackage = createAsyncThunk('booking/fetchPackage', function (_1, _a) {
|
|
18462
18476
|
return __awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
@@ -18468,11 +18482,14 @@ var fetchPackage = createAsyncThunk('booking/fetchPackage', function (_1, _a) {
|
|
|
18468
18482
|
return [4 /*yield*/, dispatch(fetchAgents())];
|
|
18469
18483
|
case 1:
|
|
18470
18484
|
_c.sent();
|
|
18471
|
-
return [4 /*yield*/, dispatch(
|
|
18485
|
+
return [4 /*yield*/, dispatch(fetchCountries())];
|
|
18472
18486
|
case 2:
|
|
18473
18487
|
_c.sent();
|
|
18474
|
-
return [4 /*yield*/, dispatch(
|
|
18488
|
+
return [4 /*yield*/, dispatch(fetchPackageDetails())];
|
|
18475
18489
|
case 3:
|
|
18490
|
+
_c.sent();
|
|
18491
|
+
return [4 /*yield*/, dispatch(fetchAccommodationViews())];
|
|
18492
|
+
case 4:
|
|
18476
18493
|
_c.sent();
|
|
18477
18494
|
dispatch(setFetchingPackage(false));
|
|
18478
18495
|
return [2 /*return*/];
|
|
@@ -18480,6 +18497,23 @@ var fetchPackage = createAsyncThunk('booking/fetchPackage', function (_1, _a) {
|
|
|
18480
18497
|
});
|
|
18481
18498
|
});
|
|
18482
18499
|
});
|
|
18500
|
+
var fetchCountries = createAsyncThunk('booking/countries', function (_1, _a) {
|
|
18501
|
+
return __awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
18502
|
+
var settings;
|
|
18503
|
+
_b.dispatch;
|
|
18504
|
+
var getState = _b.getState,
|
|
18505
|
+
signal = _b.signal;
|
|
18506
|
+
return __generator(this, function (_c) {
|
|
18507
|
+
switch (_c.label) {
|
|
18508
|
+
case 0:
|
|
18509
|
+
settings = getState();
|
|
18510
|
+
return [4 /*yield*/, packageApi.fetchCountries(signal, settings.apiSettings)];
|
|
18511
|
+
case 1:
|
|
18512
|
+
return [2 /*return*/, _c.sent()];
|
|
18513
|
+
}
|
|
18514
|
+
});
|
|
18515
|
+
});
|
|
18516
|
+
});
|
|
18483
18517
|
var fetchAgents = createAsyncThunk('booking/agents', function (_1, _a) {
|
|
18484
18518
|
return __awaiter(void 0, [_1, _a], void 0, function (_, _b) {
|
|
18485
18519
|
var settings;
|
|
@@ -19027,6 +19061,11 @@ var bookingSlice = createSlice({
|
|
|
19027
19061
|
state.accommodationViews = action.payload;
|
|
19028
19062
|
}
|
|
19029
19063
|
});
|
|
19064
|
+
builder.addCase(fetchCountries.fulfilled, function (state, action) {
|
|
19065
|
+
if (action.payload.items) {
|
|
19066
|
+
state.countries = action.payload.items;
|
|
19067
|
+
}
|
|
19068
|
+
});
|
|
19030
19069
|
}
|
|
19031
19070
|
});
|
|
19032
19071
|
var setOfficeId = ((_a$3 = bookingSlice.actions), _a$3.setOfficeId),
|
|
@@ -19087,7 +19126,8 @@ var SettingsContext = React__default.createContext({
|
|
|
19087
19126
|
},
|
|
19088
19127
|
travellers: {
|
|
19089
19128
|
pathSuffix: '/reizigers',
|
|
19090
|
-
travelersFirstStep: false
|
|
19129
|
+
travelersFirstStep: false,
|
|
19130
|
+
showAllCountries: false
|
|
19091
19131
|
},
|
|
19092
19132
|
summary: {
|
|
19093
19133
|
pathSuffix: '/samenvatting',
|
|
@@ -26686,7 +26726,7 @@ function createInitialValues(formRooms, startDate, agentAdressId, personTranslat
|
|
|
26686
26726
|
return initialValues;
|
|
26687
26727
|
}
|
|
26688
26728
|
var TravelersForm = function () {
|
|
26689
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
26729
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
26690
26730
|
var dispatch = useAppDispatch();
|
|
26691
26731
|
var navigate = useNavigate();
|
|
26692
26732
|
var settings = useContext(SettingsContext);
|
|
@@ -26702,17 +26742,19 @@ var TravelersForm = function () {
|
|
|
26702
26742
|
var bookingAttributes = useSelector(selectBookingAttributes);
|
|
26703
26743
|
var isFetching = useSelector(selectIsFetching);
|
|
26704
26744
|
var hasMounted = useSelector(selectHasMounted);
|
|
26745
|
+
var countries = useSelector(selectCountries);
|
|
26705
26746
|
var useCompactForm = !!settings.travellers.compactForm && !!settings.agentAdressId;
|
|
26747
|
+
var showAllCountries = !!settings.travellers.showAllCountries;
|
|
26706
26748
|
var initialValues =
|
|
26707
26749
|
(_a = useSelector(selectTravelersFormValues)) !== null && _a !== void 0
|
|
26708
26750
|
? _a
|
|
26709
26751
|
: createInitialValues(formRooms, startDate, agentAdressId, translations.TRAVELERS_FORM.PERSON, useCompactForm);
|
|
26710
|
-
var
|
|
26711
|
-
showAgents =
|
|
26712
|
-
setShowAgents =
|
|
26713
|
-
var
|
|
26714
|
-
showAgentSelection =
|
|
26715
|
-
setShowAgentSelection =
|
|
26752
|
+
var _k = useState((_b = settings.agentRequired) !== null && _b !== void 0 ? _b : false),
|
|
26753
|
+
showAgents = _k[0],
|
|
26754
|
+
setShowAgents = _k[1];
|
|
26755
|
+
var _l = useState(!settings.agentAdressId && !settings.hideAgentSelection),
|
|
26756
|
+
showAgentSelection = _l[0],
|
|
26757
|
+
setShowAgentSelection = _l[1];
|
|
26716
26758
|
var typeaheadAgents =
|
|
26717
26759
|
(_c = sortBy(
|
|
26718
26760
|
agents === null || agents === void 0
|
|
@@ -26728,9 +26770,9 @@ var TravelersForm = function () {
|
|
|
26728
26770
|
)) !== null && _c !== void 0
|
|
26729
26771
|
? _c
|
|
26730
26772
|
: [];
|
|
26731
|
-
var
|
|
26732
|
-
filteredAgents =
|
|
26733
|
-
setFilteredAgents =
|
|
26773
|
+
var _m = useState(typeaheadAgents),
|
|
26774
|
+
filteredAgents = _m[0],
|
|
26775
|
+
setFilteredAgents = _m[1];
|
|
26734
26776
|
var formik = useCompactForm
|
|
26735
26777
|
? useFormik({
|
|
26736
26778
|
initialValues: initialValues,
|
|
@@ -26986,7 +27028,7 @@ var TravelersForm = function () {
|
|
|
26986
27028
|
return get(formik.errors, key) && get(formik.touched, key);
|
|
26987
27029
|
};
|
|
26988
27030
|
var getControl = function (type, value, name) {
|
|
26989
|
-
var _a, _b, _c, _d, _e;
|
|
27031
|
+
var _a, _b, _c, _d, _e, _f;
|
|
26990
27032
|
switch (type) {
|
|
26991
27033
|
case 'gender': {
|
|
26992
27034
|
return React__default.createElement(GenderControl, { translations: translations, value: value, formik: formik, name: name });
|
|
@@ -27045,17 +27087,30 @@ var TravelersForm = function () {
|
|
|
27045
27087
|
label: translations.TRAVELERS_FORM.SELECT_COUNTRY
|
|
27046
27088
|
}
|
|
27047
27089
|
],
|
|
27048
|
-
|
|
27049
|
-
|
|
27050
|
-
|
|
27051
|
-
|
|
27052
|
-
|
|
27053
|
-
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27090
|
+
showAllCountries
|
|
27091
|
+
? (_a =
|
|
27092
|
+
countries === null || countries === void 0
|
|
27093
|
+
? void 0
|
|
27094
|
+
: countries.map(function (country) {
|
|
27095
|
+
return {
|
|
27096
|
+
key: country.iso2,
|
|
27097
|
+
value: country.iso2,
|
|
27098
|
+
label: country.name
|
|
27099
|
+
};
|
|
27100
|
+
})) !== null && _a !== void 0
|
|
27101
|
+
? _a
|
|
27102
|
+
: []
|
|
27103
|
+
: (_d =
|
|
27104
|
+
(_c = (_b = settings.travellers) === null || _b === void 0 ? void 0 : _b.countries) === null || _c === void 0
|
|
27105
|
+
? void 0
|
|
27106
|
+
: _c.map(function (country) {
|
|
27107
|
+
return {
|
|
27108
|
+
key: country.iso2,
|
|
27109
|
+
value: country.iso2,
|
|
27110
|
+
label: country.name
|
|
27111
|
+
};
|
|
27112
|
+
})) !== null && _d !== void 0
|
|
27113
|
+
? _d
|
|
27059
27114
|
: [],
|
|
27060
27115
|
true
|
|
27061
27116
|
)
|
|
@@ -27063,7 +27118,7 @@ var TravelersForm = function () {
|
|
|
27063
27118
|
}
|
|
27064
27119
|
case 'phone': {
|
|
27065
27120
|
return React__default.createElement(PhoneInput, {
|
|
27066
|
-
countries: (
|
|
27121
|
+
countries: (_f = (_e = settings.travellers) === null || _e === void 0 ? void 0 : _e.countries) !== null && _f !== void 0 ? _f : [],
|
|
27067
27122
|
countryIso2: formik.values.country,
|
|
27068
27123
|
hasError: hasVisibleError('phone'),
|
|
27069
27124
|
label: translations.TRAVELERS_FORM.PHONE,
|
|
@@ -27692,28 +27747,46 @@ var TravelersForm = function () {
|
|
|
27692
27747
|
onChange: formik.handleChange,
|
|
27693
27748
|
onBlur: formik.handleBlur,
|
|
27694
27749
|
value: formik.values.country,
|
|
27695
|
-
options:
|
|
27696
|
-
|
|
27697
|
-
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
|
|
27712
|
-
|
|
27713
|
-
|
|
27714
|
-
|
|
27715
|
-
|
|
27716
|
-
|
|
27750
|
+
options: __spreadArray(
|
|
27751
|
+
[
|
|
27752
|
+
{
|
|
27753
|
+
key: 'empty',
|
|
27754
|
+
value: undefined,
|
|
27755
|
+
label: translations.TRAVELERS_FORM.SELECT_COUNTRY
|
|
27756
|
+
}
|
|
27757
|
+
],
|
|
27758
|
+
showAllCountries
|
|
27759
|
+
? (_j =
|
|
27760
|
+
countries === null || countries === void 0
|
|
27761
|
+
? void 0
|
|
27762
|
+
: countries.map(function (country) {
|
|
27763
|
+
return {
|
|
27764
|
+
key: country.iso2,
|
|
27765
|
+
value: country.iso2,
|
|
27766
|
+
label: country.name
|
|
27767
|
+
};
|
|
27768
|
+
})) !== null && _j !== void 0
|
|
27769
|
+
? _j
|
|
27770
|
+
: []
|
|
27771
|
+
: [
|
|
27772
|
+
{
|
|
27773
|
+
key: 'be',
|
|
27774
|
+
value: 'be',
|
|
27775
|
+
label: translations.TRAVELERS_FORM.COUNTRIES.BELGIUM
|
|
27776
|
+
},
|
|
27777
|
+
{
|
|
27778
|
+
key: 'nl',
|
|
27779
|
+
value: 'nl',
|
|
27780
|
+
label: translations.TRAVELERS_FORM.COUNTRIES.NETHERLANDS
|
|
27781
|
+
},
|
|
27782
|
+
{
|
|
27783
|
+
key: 'fr',
|
|
27784
|
+
value: 'fr',
|
|
27785
|
+
label: translations.TRAVELERS_FORM.COUNTRIES.FRANCE
|
|
27786
|
+
}
|
|
27787
|
+
],
|
|
27788
|
+
true
|
|
27789
|
+
)
|
|
27717
27790
|
})
|
|
27718
27791
|
)
|
|
27719
27792
|
)
|
|
@@ -30311,7 +30384,7 @@ var Footer = function (_a) {
|
|
|
30311
30384
|
};
|
|
30312
30385
|
|
|
30313
30386
|
var QSMConfigurationContext = React__default.createContext({
|
|
30314
|
-
type: PortalQsmType.Accommodation,
|
|
30387
|
+
type: build.PortalQsmType.Accommodation,
|
|
30315
30388
|
searchConfigurations: [],
|
|
30316
30389
|
askTravelers: false,
|
|
30317
30390
|
askNationality: false,
|
|
@@ -30354,7 +30427,7 @@ var useMediaQuery = function (query) {
|
|
|
30354
30427
|
|
|
30355
30428
|
var _a$1;
|
|
30356
30429
|
var initialState$2 = {
|
|
30357
|
-
qsmType: PortalQsmType.AccommodationAndFlight,
|
|
30430
|
+
qsmType: build.PortalQsmType.AccommodationAndFlight,
|
|
30358
30431
|
selectedOrigin: undefined,
|
|
30359
30432
|
selectedDestination: undefined,
|
|
30360
30433
|
selectedAirport: undefined,
|
|
@@ -31757,7 +31830,7 @@ var TravelInput = function () {
|
|
|
31757
31830
|
babies = _b.babies,
|
|
31758
31831
|
rooms = _b.rooms,
|
|
31759
31832
|
qsmType = _b.qsmType;
|
|
31760
|
-
var areTravelersInRooms = qsmType !== PortalQsmType.Flight && askRooms;
|
|
31833
|
+
var areTravelersInRooms = qsmType !== build.PortalQsmType.Flight && askRooms;
|
|
31761
31834
|
var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
|
|
31762
31835
|
var getTravelerButtonClass = function (disabled) {
|
|
31763
31836
|
return 'button button--increment '.concat(disabled ? 'button--disabled' : '');
|
|
@@ -32713,7 +32786,7 @@ var TravelInputGroup = function () {
|
|
|
32713
32786
|
rooms = _c.rooms,
|
|
32714
32787
|
qsmType = _c.qsmType;
|
|
32715
32788
|
var translations = getTranslations(languageCode !== null && languageCode !== void 0 ? languageCode : 'en-GB');
|
|
32716
|
-
var areTravelersInRooms = qsmType !== PortalQsmType.Flight && askRooms;
|
|
32789
|
+
var areTravelersInRooms = qsmType !== build.PortalQsmType.Flight && askRooms;
|
|
32717
32790
|
var initDone = useRef(false);
|
|
32718
32791
|
var travelerSummary = useSelector(function (state) {
|
|
32719
32792
|
return selectTravelerSummary(state, areTravelersInRooms);
|
|
@@ -32966,7 +33039,7 @@ var QSMContainer = function () {
|
|
|
32966
33039
|
if (fromDate || toDate) return;
|
|
32967
33040
|
var startDate = addMonths(new Date(), 1);
|
|
32968
33041
|
var endDate = addDays(startDate, 7);
|
|
32969
|
-
if (qsmType === PortalQsmType.GroupTour) {
|
|
33042
|
+
if (qsmType === build.PortalQsmType.GroupTour) {
|
|
32970
33043
|
startDate = new Date();
|
|
32971
33044
|
endDate = addYears(startDate, 1);
|
|
32972
33045
|
}
|
|
@@ -32998,7 +33071,7 @@ var QSMContainer = function () {
|
|
|
32998
33071
|
// Default fallback
|
|
32999
33072
|
var startDate = addMonths(now, 1);
|
|
33000
33073
|
var endDate = addDays(startDate, 7);
|
|
33001
|
-
if (value === PortalQsmType.GroupTour) {
|
|
33074
|
+
if (value === build.PortalQsmType.GroupTour) {
|
|
33002
33075
|
startDate = now;
|
|
33003
33076
|
endDate = addYears(startDate, 1);
|
|
33004
33077
|
}
|
|
@@ -33057,7 +33130,7 @@ var QSMContainer = function () {
|
|
|
33057
33130
|
nationality: selectedNationality,
|
|
33058
33131
|
tripType: tripType
|
|
33059
33132
|
};
|
|
33060
|
-
if (askRooms && qsmType !== PortalQsmType.Flight) {
|
|
33133
|
+
if (askRooms && qsmType !== build.PortalQsmType.Flight) {
|
|
33061
33134
|
payload.rooms = rooms;
|
|
33062
33135
|
} else {
|
|
33063
33136
|
payload.travelers = { adults: adults, kids: kids, babies: babies };
|
|
@@ -33124,47 +33197,47 @@ var QSMContainer = function () {
|
|
|
33124
33197
|
);
|
|
33125
33198
|
var qsmTypeMeta =
|
|
33126
33199
|
((_a = {}),
|
|
33127
|
-
(_a[PortalQsmType.Multidestination] = {
|
|
33200
|
+
(_a[build.PortalQsmType.Multidestination] = {
|
|
33128
33201
|
icon: 'ui-location',
|
|
33129
33202
|
label: translations.QSM.MULTIDESTINATION
|
|
33130
33203
|
}),
|
|
33131
|
-
(_a[PortalQsmType.Package] = {
|
|
33204
|
+
(_a[build.PortalQsmType.Package] = {
|
|
33132
33205
|
icon: 'ui-suitcase',
|
|
33133
33206
|
label: translations.QSM.PACKAGES
|
|
33134
33207
|
}),
|
|
33135
|
-
(_a[PortalQsmType.AccommodationAndFlight] = {
|
|
33208
|
+
(_a[build.PortalQsmType.AccommodationAndFlight] = {
|
|
33136
33209
|
icon: ['ui-backforward', 'ui-bed'],
|
|
33137
33210
|
label: translations.QSM.TRANSPORT_HOTEL
|
|
33138
33211
|
}),
|
|
33139
|
-
(_a[PortalQsmType.Accommodation] = {
|
|
33212
|
+
(_a[build.PortalQsmType.Accommodation] = {
|
|
33140
33213
|
icon: 'ui-bed',
|
|
33141
33214
|
label: translations.QSM.ACCOMMODATION
|
|
33142
33215
|
}),
|
|
33143
|
-
(_a[PortalQsmType.Flight] = {
|
|
33216
|
+
(_a[build.PortalQsmType.Flight] = {
|
|
33144
33217
|
icon: 'ui-flight',
|
|
33145
33218
|
label: translations.QSM.TRANSPORTS
|
|
33146
33219
|
}),
|
|
33147
|
-
(_a[PortalQsmType.GroupTour] = {
|
|
33220
|
+
(_a[build.PortalQsmType.GroupTour] = {
|
|
33148
33221
|
icon: 'ui-group',
|
|
33149
33222
|
label: translations.QSM.GROUP_TOUR
|
|
33150
33223
|
}),
|
|
33151
|
-
(_a[PortalQsmType.RoundTrip] = {
|
|
33224
|
+
(_a[build.PortalQsmType.RoundTrip] = {
|
|
33152
33225
|
icon: 'ui-group',
|
|
33153
33226
|
label: translations.QSM.ROUNDTRIP
|
|
33154
33227
|
}),
|
|
33155
|
-
(_a[PortalQsmType.Ticket] = {
|
|
33228
|
+
(_a[build.PortalQsmType.Ticket] = {
|
|
33156
33229
|
icon: 'ui-ticket',
|
|
33157
33230
|
label: translations.QSM.TICKET_ONLY
|
|
33158
33231
|
}),
|
|
33159
|
-
(_a[PortalQsmType.Car] = {
|
|
33232
|
+
(_a[build.PortalQsmType.Car] = {
|
|
33160
33233
|
icon: 'ui-car',
|
|
33161
33234
|
label: translations.QSM.RENT_A_CAR
|
|
33162
33235
|
}),
|
|
33163
|
-
(_a[PortalQsmType.Transfer] = {
|
|
33236
|
+
(_a[build.PortalQsmType.Transfer] = {
|
|
33164
33237
|
icon: 'ui-backforward',
|
|
33165
33238
|
label: translations.QSM.TRANSFERS
|
|
33166
33239
|
}),
|
|
33167
|
-
(_a[PortalQsmType.Cruise] = {
|
|
33240
|
+
(_a[build.PortalQsmType.Cruise] = {
|
|
33168
33241
|
icon: 'ui-ship',
|
|
33169
33242
|
label: translations.QSM.CRUISES
|
|
33170
33243
|
}),
|
|
@@ -33207,7 +33280,9 @@ var QSMContainer = function () {
|
|
|
33207
33280
|
React__default.createElement(
|
|
33208
33281
|
'div',
|
|
33209
33282
|
{ className: 'qsm__filter' },
|
|
33210
|
-
(qsmType === PortalQsmType.Accommodation ||
|
|
33283
|
+
(qsmType === build.PortalQsmType.Accommodation ||
|
|
33284
|
+
qsmType === build.PortalQsmType.AccommodationAndFlight ||
|
|
33285
|
+
qsmType === build.PortalQsmType.GroupTour) &&
|
|
33211
33286
|
React__default.createElement(
|
|
33212
33287
|
'div',
|
|
33213
33288
|
{ className: 'radiobutton-group qsm__filter__inputgroup' },
|
|
@@ -33249,7 +33324,7 @@ var QSMContainer = function () {
|
|
|
33249
33324
|
)
|
|
33250
33325
|
)
|
|
33251
33326
|
),
|
|
33252
|
-
qsmType === PortalQsmType.Flight &&
|
|
33327
|
+
qsmType === build.PortalQsmType.Flight &&
|
|
33253
33328
|
React__default.createElement(
|
|
33254
33329
|
'div',
|
|
33255
33330
|
{ className: 'radiobutton-group qsm__filter__inputgroup' },
|
|
@@ -33317,18 +33392,18 @@ var QSMContainer = function () {
|
|
|
33317
33392
|
React__default.createElement(
|
|
33318
33393
|
'div',
|
|
33319
33394
|
{ className: 'qsm__filter__classgroup' },
|
|
33320
|
-
qsmType !== PortalQsmType.Accommodation &&
|
|
33321
|
-
qsmType !== PortalQsmType.Car &&
|
|
33322
|
-
qsmType !== PortalQsmType.Ticket &&
|
|
33323
|
-
qsmType !== PortalQsmType.Cruise &&
|
|
33324
|
-
qsmType !== PortalQsmType.Transfer &&
|
|
33325
|
-
qsmType !== PortalQsmType.GroupTour &&
|
|
33395
|
+
qsmType !== build.PortalQsmType.Accommodation &&
|
|
33396
|
+
qsmType !== build.PortalQsmType.Car &&
|
|
33397
|
+
qsmType !== build.PortalQsmType.Ticket &&
|
|
33398
|
+
qsmType !== build.PortalQsmType.Cruise &&
|
|
33399
|
+
qsmType !== build.PortalQsmType.Transfer &&
|
|
33400
|
+
qsmType !== build.PortalQsmType.GroupTour &&
|
|
33326
33401
|
askTravelClass &&
|
|
33327
33402
|
React__default.createElement(TravelClassPicker, null),
|
|
33328
|
-
qsmType !== PortalQsmType.Multidestination &&
|
|
33329
|
-
qsmType !== PortalQsmType.Car &&
|
|
33330
|
-
qsmType !== PortalQsmType.Flight &&
|
|
33331
|
-
qsmType !== PortalQsmType.Transfer &&
|
|
33403
|
+
qsmType !== build.PortalQsmType.Multidestination &&
|
|
33404
|
+
qsmType !== build.PortalQsmType.Car &&
|
|
33405
|
+
qsmType !== build.PortalQsmType.Flight &&
|
|
33406
|
+
qsmType !== build.PortalQsmType.Transfer &&
|
|
33332
33407
|
askTravelType &&
|
|
33333
33408
|
React__default.createElement(TravelTypePicker, null),
|
|
33334
33409
|
askNationality && React__default.createElement(TravelNationalityPicker, null)
|
|
@@ -33337,17 +33412,17 @@ var QSMContainer = function () {
|
|
|
33337
33412
|
React__default.createElement(
|
|
33338
33413
|
'div',
|
|
33339
33414
|
{ className: 'qsm__input-group' },
|
|
33340
|
-
(qsmType == PortalQsmType.Flight || qsmType == PortalQsmType.AccommodationAndFlight) &&
|
|
33415
|
+
(qsmType == build.PortalQsmType.Flight || qsmType == build.PortalQsmType.AccommodationAndFlight) &&
|
|
33341
33416
|
originDestinationField &&
|
|
33342
33417
|
React__default.createElement(DoubleSearchInputGroup, { fieldConfig: originDestinationField, showReverse: originDestinationField.showReverse }),
|
|
33343
|
-
qsmType == PortalQsmType.Flight &&
|
|
33418
|
+
qsmType == build.PortalQsmType.Flight &&
|
|
33344
33419
|
tripType == 'openjaw' &&
|
|
33345
33420
|
openJawReturnDestinationField &&
|
|
33346
33421
|
React__default.createElement(DoubleSearchInputGroup, {
|
|
33347
33422
|
fieldConfig: openJawReturnDestinationField,
|
|
33348
33423
|
showReverse: openJawReturnDestinationField.showReverse
|
|
33349
33424
|
}),
|
|
33350
|
-
(qsmType == PortalQsmType.Accommodation || qsmType == PortalQsmType.AccommodationAndFlight || qsmType == PortalQsmType.GroupTour) &&
|
|
33425
|
+
(qsmType == build.PortalQsmType.Accommodation || qsmType == build.PortalQsmType.AccommodationAndFlight || qsmType == build.PortalQsmType.GroupTour) &&
|
|
33351
33426
|
destination &&
|
|
33352
33427
|
React__default.createElement(SearchInputGroup, { fieldConfig: destination }),
|
|
33353
33428
|
React__default.createElement(Dates, { value: dateRange, onChange: handleDateChange }),
|
|
@@ -37815,7 +37890,7 @@ var FlyIn = function (_a) {
|
|
|
37815
37890
|
);
|
|
37816
37891
|
var handleClose = function () {
|
|
37817
37892
|
if (isOpen && panelRef.current) {
|
|
37818
|
-
if (srpType === PortalQsmType.Flight) {
|
|
37893
|
+
if (srpType === build.PortalQsmType.Flight) {
|
|
37819
37894
|
dispatch(setSelectedFlight(null));
|
|
37820
37895
|
dispatch(setSelectedFlightDetails(null));
|
|
37821
37896
|
onCancelSearch();
|
|
@@ -37848,8 +37923,8 @@ var FlyIn = function (_a) {
|
|
|
37848
37923
|
)
|
|
37849
37924
|
)
|
|
37850
37925
|
),
|
|
37851
|
-
srpType === PortalQsmType.Flight && React__default.createElement(FlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen }),
|
|
37852
|
-
(srpType === PortalQsmType.Accommodation || srpType === PortalQsmType.GroupTour) &&
|
|
37926
|
+
srpType === build.PortalQsmType.Flight && React__default.createElement(FlightsFlyIn, { isOpen: isOpen, setIsOpen: setIsOpen }),
|
|
37927
|
+
(srpType === build.PortalQsmType.Accommodation || srpType === build.PortalQsmType.GroupTour) &&
|
|
37853
37928
|
React__default.createElement(AccommodationFlyIn, { isLoading: true, isOpen: isOpen, setIsOpen: setIsOpen })
|
|
37854
37929
|
)
|
|
37855
37930
|
);
|
|
@@ -37869,7 +37944,16 @@ var HotelCard = function (_a) {
|
|
|
37869
37944
|
if ((_b = result.contents) === null || _b === void 0 ? void 0 : _b.length) {
|
|
37870
37945
|
return React__default.createElement(
|
|
37871
37946
|
'div',
|
|
37872
|
-
{
|
|
37947
|
+
{
|
|
37948
|
+
key: result.id,
|
|
37949
|
+
className: 'search__result-card__wrapper search__result-card__wrapper--custom',
|
|
37950
|
+
onMouseEnter: function (e) {
|
|
37951
|
+
return (e.currentTarget.style.transform = 'scale(1.02)');
|
|
37952
|
+
},
|
|
37953
|
+
onMouseLeave: function (e) {
|
|
37954
|
+
return (e.currentTarget.style.transform = 'scale(1)');
|
|
37955
|
+
}
|
|
37956
|
+
},
|
|
37873
37957
|
React__default.createElement('div', {
|
|
37874
37958
|
dangerouslySetInnerHTML: {
|
|
37875
37959
|
__html: result.contents
|
|
@@ -38227,6 +38311,7 @@ var HotelAccommodationResults = function (_a) {
|
|
|
38227
38311
|
// return <div className="search__results__cards">{renderedResults}</div>;
|
|
38228
38312
|
// };
|
|
38229
38313
|
|
|
38314
|
+
// search__results__cards--list
|
|
38230
38315
|
var RoundTripResults = function () {
|
|
38231
38316
|
return React__default.createElement(
|
|
38232
38317
|
'div',
|
|
@@ -38237,6 +38322,15 @@ var RoundTripResults = function () {
|
|
|
38237
38322
|
React__default.createElement(
|
|
38238
38323
|
'div',
|
|
38239
38324
|
{ className: 'search__result-card__allotment' },
|
|
38325
|
+
React__default.createElement(
|
|
38326
|
+
'div',
|
|
38327
|
+
{ className: 'search__result-card__allotment__img-wrapper' },
|
|
38328
|
+
React__default.createElement('img', {
|
|
38329
|
+
src: 'https://cdn.pixabay.com/photo/2024/05/15/12/31/lake-8763490_1280.jpg',
|
|
38330
|
+
alt: 'river',
|
|
38331
|
+
className: 'search__result-card__allotment__img'
|
|
38332
|
+
})
|
|
38333
|
+
),
|
|
38240
38334
|
React__default.createElement(
|
|
38241
38335
|
'div',
|
|
38242
38336
|
{ className: 'search__result-card__allotment__title__wrapper' },
|
|
@@ -38320,6 +38414,15 @@ var RoundTripResults = function () {
|
|
|
38320
38414
|
React__default.createElement(
|
|
38321
38415
|
'div',
|
|
38322
38416
|
{ className: 'search__result-card__allotment' },
|
|
38417
|
+
React__default.createElement(
|
|
38418
|
+
'div',
|
|
38419
|
+
{ className: 'search__result-card__allotment__img-wrapper' },
|
|
38420
|
+
React__default.createElement('img', {
|
|
38421
|
+
src: 'https://cdn.pixabay.com/photo/2024/05/15/12/31/lake-8763490_1280.jpg',
|
|
38422
|
+
alt: 'river',
|
|
38423
|
+
className: 'search__result-card__allotment__img'
|
|
38424
|
+
})
|
|
38425
|
+
),
|
|
38323
38426
|
React__default.createElement(
|
|
38324
38427
|
'div',
|
|
38325
38428
|
{ className: 'search__result-card__allotment__title__wrapper' },
|
|
@@ -38334,6 +38437,11 @@ var RoundTripResults = function () {
|
|
|
38334
38437
|
'BIJNA GAR'
|
|
38335
38438
|
)
|
|
38336
38439
|
),
|
|
38440
|
+
React__default.createElement(
|
|
38441
|
+
'p',
|
|
38442
|
+
{ className: 'search__result-card__allotment__description' },
|
|
38443
|
+
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod quis explicabo, animi illum expedita molestias quae atque laboriosam consequatur nulla error non delectus nesciunt id voluptatem quia nobis? Debitis, rerum!'
|
|
38444
|
+
),
|
|
38337
38445
|
React__default.createElement(
|
|
38338
38446
|
'div',
|
|
38339
38447
|
{ className: 'search__result-card__allotment__container' },
|
|
@@ -38403,6 +38511,15 @@ var RoundTripResults = function () {
|
|
|
38403
38511
|
React__default.createElement(
|
|
38404
38512
|
'div',
|
|
38405
38513
|
{ className: 'search__result-card__allotment' },
|
|
38514
|
+
React__default.createElement(
|
|
38515
|
+
'div',
|
|
38516
|
+
{ className: 'search__result-card__allotment__img-wrapper' },
|
|
38517
|
+
React__default.createElement('img', {
|
|
38518
|
+
src: 'https://cdn.pixabay.com/photo/2024/05/15/12/31/lake-8763490_1280.jpg',
|
|
38519
|
+
alt: 'river',
|
|
38520
|
+
className: 'search__result-card__allotment__img'
|
|
38521
|
+
})
|
|
38522
|
+
),
|
|
38406
38523
|
React__default.createElement(
|
|
38407
38524
|
'div',
|
|
38408
38525
|
{ className: 'search__result-card__allotment__title__wrapper' },
|
|
@@ -40634,7 +40751,7 @@ var FlightResultsContainer = function (_a) {
|
|
|
40634
40751
|
useEffect(
|
|
40635
40752
|
function () {
|
|
40636
40753
|
if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
|
|
40637
|
-
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === PortalQsmType.Flight && isHubReady) {
|
|
40754
|
+
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.Flight && isHubReady) {
|
|
40638
40755
|
onFlightSearch();
|
|
40639
40756
|
}
|
|
40640
40757
|
}
|
|
@@ -40774,7 +40891,7 @@ var FlightResultsContainer = function (_a) {
|
|
|
40774
40891
|
'div',
|
|
40775
40892
|
{ className: 'search__results__wrapper' },
|
|
40776
40893
|
flightsLoading && React__default.createElement(Spinner, null),
|
|
40777
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) == PortalQsmType.Flight &&
|
|
40894
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) == build.PortalQsmType.Flight &&
|
|
40778
40895
|
(context === null || context === void 0 ? void 0 : context.showFlightAccommodationResults) &&
|
|
40779
40896
|
results &&
|
|
40780
40897
|
results.length > 0 &&
|
|
@@ -41477,12 +41594,15 @@ var SearchResultsContainer = function () {
|
|
|
41477
41594
|
}),
|
|
41478
41595
|
results = _b.results,
|
|
41479
41596
|
filteredResults = _b.filteredResults,
|
|
41597
|
+
packagingAccoResults = _b.packagingAccoResults,
|
|
41598
|
+
filteredPackagingAccoResults = _b.filteredPackagingAccoResults,
|
|
41480
41599
|
bookingPackageDetails = _b.bookingPackageDetails,
|
|
41481
41600
|
entry = _b.entry,
|
|
41482
41601
|
isLoading = _b.isLoading,
|
|
41483
41602
|
filters = _b.filters,
|
|
41484
41603
|
sortKey = _b.sortKey,
|
|
41485
41604
|
selectedSearchResultId = _b.selectedSearchResultId,
|
|
41605
|
+
selectedPackagingAccoResultCode = _b.selectedPackagingAccoResultCode,
|
|
41486
41606
|
flyInIsOpen = _b.flyInIsOpen;
|
|
41487
41607
|
var isMobile = useMediaQuery('(max-width: 1200px)');
|
|
41488
41608
|
var _c = useState(false),
|
|
@@ -41563,11 +41683,12 @@ var SearchResultsContainer = function () {
|
|
|
41563
41683
|
payload: {
|
|
41564
41684
|
catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
|
|
41565
41685
|
serviceType:
|
|
41566
|
-
context.searchConfiguration.qsmType === PortalQsmType.Accommodation ||
|
|
41686
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation ||
|
|
41687
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight
|
|
41567
41688
|
? 3
|
|
41568
|
-
: context.searchConfiguration.qsmType === PortalQsmType.Flight
|
|
41689
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.Flight
|
|
41569
41690
|
? 7
|
|
41570
|
-
: context.searchConfiguration.qsmType === PortalQsmType.RoundTrip
|
|
41691
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.RoundTrip
|
|
41571
41692
|
? 1
|
|
41572
41693
|
: 0,
|
|
41573
41694
|
searchType: 0,
|
|
@@ -41637,14 +41758,15 @@ var SearchResultsContainer = function () {
|
|
|
41637
41758
|
payload: {
|
|
41638
41759
|
catalogueIds: (_a = context.tideConnection.catalogueIds) !== null && _a !== void 0 ? _a : [],
|
|
41639
41760
|
serviceType:
|
|
41640
|
-
context.searchConfiguration.qsmType === PortalQsmType.Accommodation ||
|
|
41761
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation ||
|
|
41762
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight
|
|
41641
41763
|
? 3
|
|
41642
|
-
: context.searchConfiguration.qsmType === PortalQsmType.Flight
|
|
41764
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.Flight
|
|
41643
41765
|
? 7
|
|
41644
|
-
: context.searchConfiguration.qsmType === PortalQsmType.RoundTrip
|
|
41766
|
+
: context.searchConfiguration.qsmType === build.PortalQsmType.RoundTrip
|
|
41645
41767
|
? 1
|
|
41646
41768
|
: undefined,
|
|
41647
|
-
searchType: context.searchConfiguration.qsmType === PortalQsmType.GroupTour ? 1 : 0,
|
|
41769
|
+
searchType: context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour ? 1 : 0,
|
|
41648
41770
|
destination: {
|
|
41649
41771
|
id: Number(destinationId),
|
|
41650
41772
|
isCountry: destinationIsCountry,
|
|
@@ -41657,7 +41779,7 @@ var SearchResultsContainer = function () {
|
|
|
41657
41779
|
toDate: to,
|
|
41658
41780
|
earliestFromOffset: 0,
|
|
41659
41781
|
latestToOffset: 0,
|
|
41660
|
-
includeFlights: context.searchConfiguration.qsmType === PortalQsmType.AccommodationAndFlight ? true : false,
|
|
41782
|
+
includeFlights: context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight ? true : false,
|
|
41661
41783
|
// regimeCodes:
|
|
41662
41784
|
// filters
|
|
41663
41785
|
// .find((f) => f.property === 'regime')
|
|
@@ -41665,7 +41787,7 @@ var SearchResultsContainer = function () {
|
|
|
41665
41787
|
// .flatMap((o) => o.value.toString()) || [],
|
|
41666
41788
|
// minPrice: filters.find((f) => f.property === 'price')?.selectedMin,
|
|
41667
41789
|
// maxPrice: filters.find((f) => f.property === 'price')?.selectedMax,
|
|
41668
|
-
useExactDates: (context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === PortalQsmType.GroupTour ? false : true,
|
|
41790
|
+
useExactDates: (context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.GroupTour ? false : true,
|
|
41669
41791
|
onlyCachedResults: false,
|
|
41670
41792
|
includeAllAllotments: true,
|
|
41671
41793
|
productIds: hotel ? [hotel] : [],
|
|
@@ -41892,7 +42014,7 @@ var SearchResultsContainer = function () {
|
|
|
41892
42014
|
dispatch(setSelectedSearchResult(matching.productId));
|
|
41893
42015
|
}
|
|
41894
42016
|
} else {
|
|
41895
|
-
if (context.searchConfiguration.qsmType === PortalQsmType.AccommodationAndFlight) {
|
|
42017
|
+
if (context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight) {
|
|
41896
42018
|
dispatch(setSelectedSearchResult((_b = packageSearchResults[0]) === null || _b === void 0 ? void 0 : _b.productId));
|
|
41897
42019
|
}
|
|
41898
42020
|
}
|
|
@@ -41935,6 +42057,7 @@ var SearchResultsContainer = function () {
|
|
|
41935
42057
|
throw new Error('Invalid search parameters');
|
|
41936
42058
|
}
|
|
41937
42059
|
searchRequest = rq;
|
|
42060
|
+
searchRequest.portalId = context.portalId;
|
|
41938
42061
|
return [4 /*yield*/, build.searchPackagingAccommodations(config, searchRequest)];
|
|
41939
42062
|
case 2:
|
|
41940
42063
|
packageAccoSearchResults = _b.sent();
|
|
@@ -41967,12 +42090,12 @@ var SearchResultsContainer = function () {
|
|
|
41967
42090
|
};
|
|
41968
42091
|
if (!(context === null || context === void 0 ? void 0 : context.showMockup)) {
|
|
41969
42092
|
if (
|
|
41970
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === PortalQsmType.AccommodationAndFlight ||
|
|
41971
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === PortalQsmType.GroupTour
|
|
42093
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.AccommodationAndFlight ||
|
|
42094
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.GroupTour
|
|
41972
42095
|
) {
|
|
41973
42096
|
runSearch();
|
|
41974
42097
|
}
|
|
41975
|
-
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === PortalQsmType.Accommodation) {
|
|
42098
|
+
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.Accommodation) {
|
|
41976
42099
|
runHotelSearch();
|
|
41977
42100
|
}
|
|
41978
42101
|
}
|
|
@@ -41989,10 +42112,10 @@ var SearchResultsContainer = function () {
|
|
|
41989
42112
|
return __generator(this, function (_c) {
|
|
41990
42113
|
switch (_c.label) {
|
|
41991
42114
|
case 0:
|
|
41992
|
-
if (!selectedSearchResultId || !context) return [2 /*return*/];
|
|
42115
|
+
if ((!selectedSearchResultId && !selectedPackagingAccoResultCode) || !context) return [2 /*return*/];
|
|
41993
42116
|
if (
|
|
41994
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === PortalQsmType.Accommodation ||
|
|
41995
|
-
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === PortalQsmType.GroupTour
|
|
42117
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.Accommodation ||
|
|
42118
|
+
(context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.GroupTour
|
|
41996
42119
|
) {
|
|
41997
42120
|
handleFlyInToggle(true);
|
|
41998
42121
|
}
|
|
@@ -42028,7 +42151,7 @@ var SearchResultsContainer = function () {
|
|
|
42028
42151
|
productCode: selectedItem.code,
|
|
42029
42152
|
fromDate: selectedItem.fromDate,
|
|
42030
42153
|
toDate: selectedItem.toDate,
|
|
42031
|
-
includeFlights: context.searchConfiguration.qsmType === PortalQsmType.AccommodationAndFlight ? true : false,
|
|
42154
|
+
includeFlights: context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight ? true : false,
|
|
42032
42155
|
includeHotels: true,
|
|
42033
42156
|
includePaxTypes: true,
|
|
42034
42157
|
checkExternalAvailability: true,
|
|
@@ -42082,14 +42205,19 @@ var SearchResultsContainer = function () {
|
|
|
42082
42205
|
};
|
|
42083
42206
|
fetchPackageDetails();
|
|
42084
42207
|
},
|
|
42085
|
-
[selectedSearchResultId]
|
|
42208
|
+
[selectedSearchResultId, selectedPackagingAccoResultCode]
|
|
42086
42209
|
);
|
|
42087
42210
|
useEffect(
|
|
42088
42211
|
function () {
|
|
42089
|
-
|
|
42090
|
-
|
|
42212
|
+
if ((context === null || context === void 0 ? void 0 : context.searchConfiguration.qsmType) === build.PortalQsmType.Accommodation) {
|
|
42213
|
+
var filteredPackageAccoResults = applyFiltersToPackageAccoResults(packagingAccoResults, filters);
|
|
42214
|
+
dispatch(setFilteredPackagingAccoResults(filteredPackageAccoResults));
|
|
42215
|
+
} else {
|
|
42216
|
+
var filteredResults_1 = applyFilters(results, filters);
|
|
42217
|
+
dispatch(setFilteredResults(filteredResults_1));
|
|
42218
|
+
}
|
|
42091
42219
|
},
|
|
42092
|
-
[filters, results]
|
|
42220
|
+
[filters, results, packagingAccoResults]
|
|
42093
42221
|
);
|
|
42094
42222
|
return React__default.createElement(
|
|
42095
42223
|
'div',
|
|
@@ -42101,7 +42229,7 @@ var SearchResultsContainer = function () {
|
|
|
42101
42229
|
React__default.createElement(
|
|
42102
42230
|
'div',
|
|
42103
42231
|
{ className: 'search__container' },
|
|
42104
|
-
context.searchConfiguration.qsmType === PortalQsmType.Flight &&
|
|
42232
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Flight &&
|
|
42105
42233
|
React__default.createElement(
|
|
42106
42234
|
FlightSearchProvider,
|
|
42107
42235
|
{ tideConnection: context.tideConnection },
|
|
@@ -42116,14 +42244,14 @@ var SearchResultsContainer = function () {
|
|
|
42116
42244
|
}
|
|
42117
42245
|
})
|
|
42118
42246
|
),
|
|
42119
|
-
(context.searchConfiguration.qsmType === PortalQsmType.AccommodationAndFlight ||
|
|
42120
|
-
context.searchConfiguration.qsmType === PortalQsmType.Accommodation ||
|
|
42121
|
-
context.searchConfiguration.qsmType === PortalQsmType.GroupTour ||
|
|
42122
|
-
context.searchConfiguration.qsmType === PortalQsmType.RoundTrip) &&
|
|
42247
|
+
(context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight ||
|
|
42248
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation ||
|
|
42249
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour ||
|
|
42250
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.RoundTrip) &&
|
|
42123
42251
|
React__default.createElement(
|
|
42124
42252
|
React__default.Fragment,
|
|
42125
42253
|
null,
|
|
42126
|
-
context.searchConfiguration.qsmType != PortalQsmType.AccommodationAndFlight &&
|
|
42254
|
+
context.searchConfiguration.qsmType != build.PortalQsmType.AccommodationAndFlight &&
|
|
42127
42255
|
context.showFilters &&
|
|
42128
42256
|
React__default.createElement(Filters, {
|
|
42129
42257
|
initialFilters: initialFilters,
|
|
@@ -42135,7 +42263,7 @@ var SearchResultsContainer = function () {
|
|
|
42135
42263
|
// handleApplyFilters={() => setSearchTrigger((prev) => prev + 1)}
|
|
42136
42264
|
isLoading: isLoading
|
|
42137
42265
|
}),
|
|
42138
|
-
context.searchConfiguration.qsmType === PortalQsmType.AccommodationAndFlight &&
|
|
42266
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42139
42267
|
React__default.createElement(Itinerary, {
|
|
42140
42268
|
isOpen: itineraryOpen,
|
|
42141
42269
|
handleSetIsOpen: function () {
|
|
@@ -42153,7 +42281,7 @@ var SearchResultsContainer = function () {
|
|
|
42153
42281
|
React__default.createElement(
|
|
42154
42282
|
'div',
|
|
42155
42283
|
{ className: 'search__results__actions' },
|
|
42156
|
-
context.searchConfiguration.qsmType != PortalQsmType.AccommodationAndFlight &&
|
|
42284
|
+
context.searchConfiguration.qsmType != build.PortalQsmType.AccommodationAndFlight &&
|
|
42157
42285
|
context.showFilters &&
|
|
42158
42286
|
React__default.createElement(
|
|
42159
42287
|
'div',
|
|
@@ -42166,7 +42294,7 @@ var SearchResultsContainer = function () {
|
|
|
42166
42294
|
React__default.createElement(Icon$1, { name: 'ui-filter', className: 'mobile-filters-button__icon', height: 16 }),
|
|
42167
42295
|
translations.SRP.FILTERS
|
|
42168
42296
|
),
|
|
42169
|
-
context.searchConfiguration.qsmType === PortalQsmType.AccommodationAndFlight &&
|
|
42297
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42170
42298
|
React__default.createElement(
|
|
42171
42299
|
'div',
|
|
42172
42300
|
{
|
|
@@ -42200,8 +42328,13 @@ var SearchResultsContainer = function () {
|
|
|
42200
42328
|
React__default.createElement(
|
|
42201
42329
|
React__default.Fragment,
|
|
42202
42330
|
null,
|
|
42203
|
-
|
|
42204
|
-
|
|
42331
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.Accommodation &&
|
|
42332
|
+
(filteredPackagingAccoResults === null || filteredPackagingAccoResults === void 0 ? void 0 : filteredPackagingAccoResults.length) &&
|
|
42333
|
+
(filteredPackagingAccoResults === null || filteredPackagingAccoResults === void 0 ? void 0 : filteredPackagingAccoResults.length),
|
|
42334
|
+
context.searchConfiguration.qsmType !== build.PortalQsmType.Accommodation &&
|
|
42335
|
+
(filteredResults === null || filteredResults === void 0 ? void 0 : filteredResults.length) &&
|
|
42336
|
+
filteredResults.length,
|
|
42337
|
+
'\u00A0',
|
|
42205
42338
|
translations.SRP.TOTAL_RESULTS_LABEL
|
|
42206
42339
|
)
|
|
42207
42340
|
),
|
|
@@ -42226,8 +42359,9 @@ var SearchResultsContainer = function () {
|
|
|
42226
42359
|
{ className: 'search__results__wrapper' },
|
|
42227
42360
|
context.showTabViews && React__default.createElement(TabViews, null),
|
|
42228
42361
|
context.showRoundTripResults && context.showMockup && React__default.createElement(RoundTripResults, null),
|
|
42229
|
-
context.searchConfiguration.qsmType === PortalQsmType.GroupTour &&
|
|
42230
|
-
|
|
42362
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.GroupTour &&
|
|
42363
|
+
React__default.createElement(GroupTourResults, { isLoading: isLoading }),
|
|
42364
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42231
42365
|
context.showFlightResults &&
|
|
42232
42366
|
(bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.outwardFlights) &&
|
|
42233
42367
|
React__default.createElement(FlightResults, {
|
|
@@ -42235,7 +42369,7 @@ var SearchResultsContainer = function () {
|
|
|
42235
42369
|
isDeparture: true
|
|
42236
42370
|
}),
|
|
42237
42371
|
context.showHotelAccommodationResults && React__default.createElement(HotelAccommodationResults, { isLoading: isLoading }),
|
|
42238
|
-
context.searchConfiguration.qsmType === PortalQsmType.AccommodationAndFlight &&
|
|
42372
|
+
context.searchConfiguration.qsmType === build.PortalQsmType.AccommodationAndFlight &&
|
|
42239
42373
|
context.showFlightResults &&
|
|
42240
42374
|
(bookingPackageDetails === null || bookingPackageDetails === void 0 ? void 0 : bookingPackageDetails.returnFlights) &&
|
|
42241
42375
|
React__default.createElement(FlightResults, {
|
|
@@ -45726,15 +45860,19 @@ var FeaturedTripCard = function (_a) {
|
|
|
45726
45860
|
React__default.createElement(
|
|
45727
45861
|
'div',
|
|
45728
45862
|
{ className: 'image-card__content' },
|
|
45729
|
-
React__default.createElement('h3', { className: 'image-card__title' }, title),
|
|
45730
45863
|
React__default.createElement(
|
|
45731
45864
|
'div',
|
|
45732
|
-
{ className: 'image-
|
|
45865
|
+
{ className: 'image-card__top' },
|
|
45866
|
+
React__default.createElement('h3', { className: 'image-card__title' }, title),
|
|
45733
45867
|
React__default.createElement(
|
|
45734
45868
|
'div',
|
|
45735
|
-
{ className: 'image-
|
|
45736
|
-
React__default.createElement(
|
|
45737
|
-
|
|
45869
|
+
{ className: 'image-card__options' },
|
|
45870
|
+
React__default.createElement(
|
|
45871
|
+
'div',
|
|
45872
|
+
{ className: 'image-card__option' },
|
|
45873
|
+
React__default.createElement(Icon$3, { name: 'ui-location', width: 16, height: 16 }),
|
|
45874
|
+
React__default.createElement('span', null, location)
|
|
45875
|
+
)
|
|
45738
45876
|
)
|
|
45739
45877
|
),
|
|
45740
45878
|
React__default.createElement(
|
|
@@ -49676,7 +49814,6 @@ export {
|
|
|
49676
49814
|
Login,
|
|
49677
49815
|
Navbar,
|
|
49678
49816
|
PhotoGallery,
|
|
49679
|
-
PortalQsmType,
|
|
49680
49817
|
QSM,
|
|
49681
49818
|
SearchResults,
|
|
49682
49819
|
Slider
|