@qite/tide-booking-component 1.4.111 → 1.4.112
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 +109 -134
- package/build/build-cjs/src/shared/booking/travelers-form.d.ts +3 -3
- package/build/build-esm/index.js +109 -134
- package/build/build-esm/src/shared/booking/travelers-form.d.ts +3 -3
- package/package.json +1 -1
- package/src/search-results/components/book-packaging-entry/index.tsx +59 -60
- package/src/search-results/components/search-results-container/search-results-container.tsx +2 -4
- package/src/shared/booking/booking-panel.tsx +1 -1
- package/src/shared/booking/travelers-form.tsx +12 -14
- package/styles/components/_booking.scss +33 -15
- package/styles/components/_cta.scss +2 -2
- package/styles/components/_flight-option.scss +1 -1
- package/styles/components/_step-indicators.scss +41 -15
- package/styles/components/_tree.scss +2 -2
package/build/build-cjs/index.js
CHANGED
|
@@ -20848,7 +20848,7 @@ var BookingPanel = function (_a) {
|
|
|
20848
20848
|
StepIndicatorsComponent = _a.StepIndicatorsComponent;
|
|
20849
20849
|
return React__default['default'].createElement(
|
|
20850
20850
|
'div',
|
|
20851
|
-
{ className: '
|
|
20851
|
+
{ className: 'booking__panel__wrapper' },
|
|
20852
20852
|
React__default['default'].createElement(StepIndicatorsComponent, { currentStep: currentStep, stepLabels: stepLabels }),
|
|
20853
20853
|
React__default['default'].createElement(
|
|
20854
20854
|
'div',
|
|
@@ -28086,52 +28086,23 @@ function createInitialValuesFromRooms(formRooms, startDate, agentAdressId, perso
|
|
|
28086
28086
|
return initialValues;
|
|
28087
28087
|
}
|
|
28088
28088
|
function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry, agentAdressId) {
|
|
28089
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v
|
|
28090
|
-
|
|
28091
|
-
(_a = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.lines) === null || _a === void 0
|
|
28092
|
-
? void 0
|
|
28093
|
-
: _a.find(function (line) {
|
|
28094
|
-
var _a;
|
|
28095
|
-
return (_a = line.pax) === null || _a === void 0 ? void 0 : _a.length;
|
|
28096
|
-
});
|
|
28089
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
28090
|
+
console.log('editablePackagingEntry?.pax:', editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.pax);
|
|
28097
28091
|
var pax =
|
|
28098
|
-
(
|
|
28099
|
-
var
|
|
28100
|
-
|
|
28101
|
-
|
|
28102
|
-
|
|
28103
|
-
) {
|
|
28104
|
-
var _a;
|
|
28105
|
-
return (_a = x.room) !== null && _a !== void 0 ? _a : 0;
|
|
28106
|
-
})
|
|
28107
|
-
)
|
|
28108
|
-
);
|
|
28109
|
-
var rooms = (roomNumbers.length ? roomNumbers : [0]).map(function (roomNumber) {
|
|
28110
|
-
var _a;
|
|
28111
|
-
var roomPax = ((_a = accommodationLine === null || accommodationLine === void 0 ? void 0 : accommodationLine.pax) !== null && _a !== void 0 ? _a : [])
|
|
28112
|
-
.filter(function (x) {
|
|
28113
|
-
var _a;
|
|
28114
|
-
return ((_a = x.room) !== null && _a !== void 0 ? _a : 0) === roomNumber;
|
|
28115
|
-
})
|
|
28116
|
-
.sort(function (a, b) {
|
|
28117
|
-
var _a, _b;
|
|
28118
|
-
return ((_a = a.order) !== null && _a !== void 0 ? _a : 0) - ((_b = b.order) !== null && _b !== void 0 ? _b : 0);
|
|
28119
|
-
});
|
|
28092
|
+
(_a = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.pax) !== null && _a !== void 0 ? _a : [];
|
|
28093
|
+
var rooms = editablePackagingEntry.rooms.map(function (room) {
|
|
28094
|
+
var roomPax = pax.filter(function (x) {
|
|
28095
|
+
return room.paxIds.includes(x.id);
|
|
28096
|
+
});
|
|
28120
28097
|
return {
|
|
28121
28098
|
adults: roomPax.map(function (roomTraveler) {
|
|
28122
|
-
var _a, _b
|
|
28123
|
-
var entryPax =
|
|
28124
|
-
(_a = pax.find(function (x) {
|
|
28125
|
-
return x.id === roomTraveler.paxId;
|
|
28126
|
-
})) !== null && _a !== void 0
|
|
28127
|
-
? _a
|
|
28128
|
-
: {};
|
|
28099
|
+
var _a, _b;
|
|
28129
28100
|
return {
|
|
28130
|
-
id:
|
|
28131
|
-
firstName: (
|
|
28132
|
-
lastName: (
|
|
28133
|
-
birthDate:
|
|
28134
|
-
gender:
|
|
28101
|
+
id: roomTraveler.id,
|
|
28102
|
+
firstName: (_a = roomTraveler.firstName) !== null && _a !== void 0 ? _a : '',
|
|
28103
|
+
lastName: (_b = roomTraveler.lastName) !== null && _b !== void 0 ? _b : '',
|
|
28104
|
+
birthDate: roomTraveler.dateOfBirth ? dateFns.format(new Date(roomTraveler.dateOfBirth), 'yyyy-MM-dd') : '',
|
|
28105
|
+
gender: ''
|
|
28135
28106
|
};
|
|
28136
28107
|
}),
|
|
28137
28108
|
children: []
|
|
@@ -28141,43 +28112,43 @@ function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry, a
|
|
|
28141
28112
|
rooms.map(function (room) {
|
|
28142
28113
|
return { adults: room.adults, children: room.children };
|
|
28143
28114
|
}),
|
|
28144
|
-
(
|
|
28145
|
-
(
|
|
28115
|
+
(_c =
|
|
28116
|
+
(_b = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.lines) === null || _b === void 0
|
|
28146
28117
|
? void 0
|
|
28147
|
-
:
|
|
28118
|
+
: _b[0]) === null || _c === void 0
|
|
28148
28119
|
? void 0
|
|
28149
|
-
:
|
|
28120
|
+
: _c.from,
|
|
28150
28121
|
agentAdressId
|
|
28151
28122
|
);
|
|
28152
28123
|
values.rooms = rooms;
|
|
28153
28124
|
values.mainBookerId =
|
|
28154
|
-
(
|
|
28155
|
-
(
|
|
28156
|
-
(
|
|
28125
|
+
(_j =
|
|
28126
|
+
(_e =
|
|
28127
|
+
(_d = pax.find(function (x) {
|
|
28157
28128
|
return x.isMainBooker;
|
|
28158
|
-
})) === null ||
|
|
28129
|
+
})) === null || _d === void 0
|
|
28159
28130
|
? void 0
|
|
28160
|
-
:
|
|
28161
|
-
?
|
|
28162
|
-
: (
|
|
28131
|
+
: _d.id) !== null && _e !== void 0
|
|
28132
|
+
? _e
|
|
28133
|
+
: (_h = (_g = (_f = rooms[0]) === null || _f === void 0 ? void 0 : _f.adults) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0
|
|
28163
28134
|
? void 0
|
|
28164
|
-
:
|
|
28165
|
-
?
|
|
28135
|
+
: _h.id) !== null && _j !== void 0
|
|
28136
|
+
? _j
|
|
28166
28137
|
: -1;
|
|
28167
28138
|
var address = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.address;
|
|
28168
|
-
values.street = (
|
|
28169
|
-
values.houseNumber = (
|
|
28170
|
-
values.box = (
|
|
28171
|
-
values.zipCode = (
|
|
28172
|
-
values.place = (
|
|
28173
|
-
values.country = (
|
|
28174
|
-
values.phone = (
|
|
28175
|
-
values.email = (
|
|
28176
|
-
values.emailConfirmation = (
|
|
28139
|
+
values.street = (_k = address === null || address === void 0 ? void 0 : address.street) !== null && _k !== void 0 ? _k : '';
|
|
28140
|
+
values.houseNumber = (_l = address === null || address === void 0 ? void 0 : address.houseNumber) !== null && _l !== void 0 ? _l : '';
|
|
28141
|
+
values.box = (_m = address === null || address === void 0 ? void 0 : address.box) !== null && _m !== void 0 ? _m : '';
|
|
28142
|
+
values.zipCode = (_o = address === null || address === void 0 ? void 0 : address.zipCode) !== null && _o !== void 0 ? _o : '';
|
|
28143
|
+
values.place = (_p = address === null || address === void 0 ? void 0 : address.place) !== null && _p !== void 0 ? _p : '';
|
|
28144
|
+
values.country = (_q = address === null || address === void 0 ? void 0 : address.country) !== null && _q !== void 0 ? _q : '';
|
|
28145
|
+
values.phone = (_r = address === null || address === void 0 ? void 0 : address.phone) !== null && _r !== void 0 ? _r : '';
|
|
28146
|
+
values.email = (_s = address === null || address === void 0 ? void 0 : address.email) !== null && _s !== void 0 ? _s : '';
|
|
28147
|
+
values.emailConfirmation = (_t = address === null || address === void 0 ? void 0 : address.email) !== null && _t !== void 0 ? _t : '';
|
|
28177
28148
|
values.travelAgentId =
|
|
28178
|
-
(
|
|
28179
|
-
|
|
28180
|
-
?
|
|
28149
|
+
(_v = (_u = address === null || address === void 0 ? void 0 : address.travelAgentId) !== null && _u !== void 0 ? _u : agentAdressId) !== null &&
|
|
28150
|
+
_v !== void 0
|
|
28151
|
+
? _v
|
|
28181
28152
|
: 0;
|
|
28182
28153
|
return values;
|
|
28183
28154
|
}
|
|
@@ -47681,73 +47652,77 @@ var BookPackagingEntry = function (_a) {
|
|
|
47681
47652
|
'div',
|
|
47682
47653
|
{ className: 'booking__content' },
|
|
47683
47654
|
React__default['default'].createElement(
|
|
47684
|
-
|
|
47685
|
-
{
|
|
47686
|
-
|
|
47687
|
-
|
|
47688
|
-
|
|
47689
|
-
|
|
47690
|
-
|
|
47691
|
-
|
|
47692
|
-
|
|
47693
|
-
|
|
47694
|
-
React__default['default'].createElement(SharedTravelersForm, {
|
|
47695
|
-
formik: formik$1,
|
|
47696
|
-
translations: translations,
|
|
47697
|
-
travellersSettings: travellersSettings,
|
|
47698
|
-
countries: countries,
|
|
47699
|
-
travelersFirstStep: false,
|
|
47700
|
-
isUnavailable: false,
|
|
47701
|
-
useCompactForm: false,
|
|
47702
|
-
showAgentSelection: false
|
|
47703
|
-
}),
|
|
47704
|
-
currentStep === 1 &&
|
|
47705
|
-
React__default['default'].createElement(SharedSummary, {
|
|
47706
|
-
translations: translations,
|
|
47707
|
-
travelerFormValues: formik$1.values,
|
|
47708
|
-
isSubmitting: isSubmitting,
|
|
47709
|
-
userValidated: userValidated,
|
|
47710
|
-
remarks: remarks,
|
|
47711
|
-
enableVoucher: false,
|
|
47712
|
-
allowOption: false,
|
|
47713
|
-
isOffer: false,
|
|
47714
|
-
onUserValidatedChange: setUserValidated,
|
|
47715
|
-
onRemarksChange: setRemarks,
|
|
47716
|
-
onSubmit: handleSummarySubmit,
|
|
47717
|
-
renderOptions: function () {
|
|
47718
|
-
return renderEditablePackagingEntrySummaryOptions(editablePackagingEntry, priceDetails);
|
|
47719
|
-
},
|
|
47720
|
-
renderPreviousButton: function () {
|
|
47721
|
-
return React__default['default'].createElement(
|
|
47722
|
-
'button',
|
|
47723
|
-
{
|
|
47724
|
-
type: 'button',
|
|
47725
|
-
title: translations.STEPS.PREVIOUS,
|
|
47726
|
-
onClick: function () {
|
|
47727
|
-
return dispatch(setCurrentStep(0));
|
|
47728
|
-
},
|
|
47729
|
-
className: 'cta cta--secondary'
|
|
47730
|
-
},
|
|
47731
|
-
translations.STEPS.PREVIOUS
|
|
47732
|
-
);
|
|
47655
|
+
'div',
|
|
47656
|
+
{ className: 'booking__panel' },
|
|
47657
|
+
React__default['default'].createElement(
|
|
47658
|
+
BookingPanel,
|
|
47659
|
+
{
|
|
47660
|
+
currentStep: currentStep,
|
|
47661
|
+
stepLabels: stepLabels,
|
|
47662
|
+
StepIndicatorsComponent: StepIndicators$1,
|
|
47663
|
+
renderTitle: function (step) {
|
|
47664
|
+
return React__default['default'].createElement(React__default['default'].Fragment, null, step + 1, '.\u00A0', stepLabels[step]);
|
|
47733
47665
|
}
|
|
47734
|
-
}
|
|
47735
|
-
|
|
47736
|
-
|
|
47737
|
-
|
|
47738
|
-
|
|
47739
|
-
|
|
47740
|
-
|
|
47741
|
-
|
|
47742
|
-
|
|
47743
|
-
|
|
47744
|
-
|
|
47745
|
-
|
|
47746
|
-
|
|
47747
|
-
|
|
47748
|
-
|
|
47749
|
-
|
|
47750
|
-
|
|
47666
|
+
},
|
|
47667
|
+
currentStep === 0 &&
|
|
47668
|
+
React__default['default'].createElement(SharedTravelersForm, {
|
|
47669
|
+
formik: formik$1,
|
|
47670
|
+
translations: translations,
|
|
47671
|
+
travellersSettings: travellersSettings,
|
|
47672
|
+
countries: countries,
|
|
47673
|
+
travelersFirstStep: false,
|
|
47674
|
+
isUnavailable: false,
|
|
47675
|
+
useCompactForm: false,
|
|
47676
|
+
showAgentSelection: false
|
|
47677
|
+
}),
|
|
47678
|
+
currentStep === 1 &&
|
|
47679
|
+
React__default['default'].createElement(SharedSummary, {
|
|
47680
|
+
translations: translations,
|
|
47681
|
+
travelerFormValues: formik$1.values,
|
|
47682
|
+
isSubmitting: isSubmitting,
|
|
47683
|
+
userValidated: userValidated,
|
|
47684
|
+
remarks: remarks,
|
|
47685
|
+
enableVoucher: false,
|
|
47686
|
+
allowOption: false,
|
|
47687
|
+
isOffer: false,
|
|
47688
|
+
onUserValidatedChange: setUserValidated,
|
|
47689
|
+
onRemarksChange: setRemarks,
|
|
47690
|
+
onSubmit: handleSummarySubmit,
|
|
47691
|
+
renderOptions: function () {
|
|
47692
|
+
return renderEditablePackagingEntrySummaryOptions(editablePackagingEntry, priceDetails);
|
|
47693
|
+
},
|
|
47694
|
+
renderPreviousButton: function () {
|
|
47695
|
+
return React__default['default'].createElement(
|
|
47696
|
+
'button',
|
|
47697
|
+
{
|
|
47698
|
+
type: 'button',
|
|
47699
|
+
title: translations.STEPS.PREVIOUS,
|
|
47700
|
+
onClick: function () {
|
|
47701
|
+
return dispatch(setCurrentStep(0));
|
|
47702
|
+
},
|
|
47703
|
+
className: 'cta cta--secondary'
|
|
47704
|
+
},
|
|
47705
|
+
translations.STEPS.PREVIOUS
|
|
47706
|
+
);
|
|
47707
|
+
}
|
|
47708
|
+
}),
|
|
47709
|
+
currentStep === 2 &&
|
|
47710
|
+
React__default['default'].createElement(SharedConfirmation, {
|
|
47711
|
+
bookingNumber:
|
|
47712
|
+
(_c =
|
|
47713
|
+
bookingNumber !== null && bookingNumber !== void 0
|
|
47714
|
+
? bookingNumber
|
|
47715
|
+
: editablePackagingEntry === null || editablePackagingEntry === void 0
|
|
47716
|
+
? void 0
|
|
47717
|
+
: editablePackagingEntry.dossierNumber) !== null && _c !== void 0
|
|
47718
|
+
? _c
|
|
47719
|
+
: '',
|
|
47720
|
+
isOption: false,
|
|
47721
|
+
isOffer: false,
|
|
47722
|
+
translations: translations.CONFIRMATION
|
|
47723
|
+
}),
|
|
47724
|
+
currentStep === 3 && React__default['default'].createElement('div', null)
|
|
47725
|
+
)
|
|
47751
47726
|
),
|
|
47752
47727
|
React__default['default'].createElement('div', { className: 'backdrop', id: 'backdrop' }),
|
|
47753
47728
|
React__default['default'].createElement(WLSidebar, { activeSearchSeed: activeSearchSeed })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { FormikProps } from 'formik';
|
|
3
3
|
import { Country, RoomTraveler, Traveler, TravelersFormValues } from '../../booking-wizard/types';
|
|
4
|
-
import { CountryItem, PackagingEntry } from '@qite/tide-client';
|
|
4
|
+
import { CountryItem, PackagingEntry, PackagingEntryPax } from '@qite/tide-client';
|
|
5
5
|
export type TravelersFormField = {
|
|
6
6
|
type: string;
|
|
7
7
|
};
|
|
@@ -56,12 +56,12 @@ export declare function createInitialValuesFromRooms(
|
|
|
56
56
|
personTranslation?: string,
|
|
57
57
|
isCompact?: boolean
|
|
58
58
|
): TravelersFormValues;
|
|
59
|
-
export declare function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry:
|
|
59
|
+
export declare function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry: PackagingEntry, agentAdressId?: number): TravelersFormValues;
|
|
60
60
|
export declare function applyTravelersFormValuesToEditablePackagingEntry(
|
|
61
61
|
editablePackagingEntry: PackagingEntry,
|
|
62
62
|
values: TravelersFormValues
|
|
63
63
|
): {
|
|
64
|
-
pax:
|
|
64
|
+
pax: PackagingEntryPax[];
|
|
65
65
|
address: {
|
|
66
66
|
street: string;
|
|
67
67
|
houseNumber: string;
|
package/build/build-esm/index.js
CHANGED
|
@@ -20855,7 +20855,7 @@ var BookingPanel = function (_a) {
|
|
|
20855
20855
|
StepIndicatorsComponent = _a.StepIndicatorsComponent;
|
|
20856
20856
|
return React__default.createElement(
|
|
20857
20857
|
'div',
|
|
20858
|
-
{ className: '
|
|
20858
|
+
{ className: 'booking__panel__wrapper' },
|
|
20859
20859
|
React__default.createElement(StepIndicatorsComponent, { currentStep: currentStep, stepLabels: stepLabels }),
|
|
20860
20860
|
React__default.createElement(
|
|
20861
20861
|
'div',
|
|
@@ -28015,52 +28015,23 @@ function createInitialValuesFromRooms(formRooms, startDate, agentAdressId, perso
|
|
|
28015
28015
|
return initialValues;
|
|
28016
28016
|
}
|
|
28017
28017
|
function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry, agentAdressId) {
|
|
28018
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v
|
|
28019
|
-
|
|
28020
|
-
(_a = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.lines) === null || _a === void 0
|
|
28021
|
-
? void 0
|
|
28022
|
-
: _a.find(function (line) {
|
|
28023
|
-
var _a;
|
|
28024
|
-
return (_a = line.pax) === null || _a === void 0 ? void 0 : _a.length;
|
|
28025
|
-
});
|
|
28018
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
28019
|
+
console.log('editablePackagingEntry?.pax:', editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.pax);
|
|
28026
28020
|
var pax =
|
|
28027
|
-
(
|
|
28028
|
-
var
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
|
|
28032
|
-
) {
|
|
28033
|
-
var _a;
|
|
28034
|
-
return (_a = x.room) !== null && _a !== void 0 ? _a : 0;
|
|
28035
|
-
})
|
|
28036
|
-
)
|
|
28037
|
-
);
|
|
28038
|
-
var rooms = (roomNumbers.length ? roomNumbers : [0]).map(function (roomNumber) {
|
|
28039
|
-
var _a;
|
|
28040
|
-
var roomPax = ((_a = accommodationLine === null || accommodationLine === void 0 ? void 0 : accommodationLine.pax) !== null && _a !== void 0 ? _a : [])
|
|
28041
|
-
.filter(function (x) {
|
|
28042
|
-
var _a;
|
|
28043
|
-
return ((_a = x.room) !== null && _a !== void 0 ? _a : 0) === roomNumber;
|
|
28044
|
-
})
|
|
28045
|
-
.sort(function (a, b) {
|
|
28046
|
-
var _a, _b;
|
|
28047
|
-
return ((_a = a.order) !== null && _a !== void 0 ? _a : 0) - ((_b = b.order) !== null && _b !== void 0 ? _b : 0);
|
|
28048
|
-
});
|
|
28021
|
+
(_a = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.pax) !== null && _a !== void 0 ? _a : [];
|
|
28022
|
+
var rooms = editablePackagingEntry.rooms.map(function (room) {
|
|
28023
|
+
var roomPax = pax.filter(function (x) {
|
|
28024
|
+
return room.paxIds.includes(x.id);
|
|
28025
|
+
});
|
|
28049
28026
|
return {
|
|
28050
28027
|
adults: roomPax.map(function (roomTraveler) {
|
|
28051
|
-
var _a, _b
|
|
28052
|
-
var entryPax =
|
|
28053
|
-
(_a = pax.find(function (x) {
|
|
28054
|
-
return x.id === roomTraveler.paxId;
|
|
28055
|
-
})) !== null && _a !== void 0
|
|
28056
|
-
? _a
|
|
28057
|
-
: {};
|
|
28028
|
+
var _a, _b;
|
|
28058
28029
|
return {
|
|
28059
|
-
id:
|
|
28060
|
-
firstName: (
|
|
28061
|
-
lastName: (
|
|
28062
|
-
birthDate:
|
|
28063
|
-
gender:
|
|
28030
|
+
id: roomTraveler.id,
|
|
28031
|
+
firstName: (_a = roomTraveler.firstName) !== null && _a !== void 0 ? _a : '',
|
|
28032
|
+
lastName: (_b = roomTraveler.lastName) !== null && _b !== void 0 ? _b : '',
|
|
28033
|
+
birthDate: roomTraveler.dateOfBirth ? format$2(new Date(roomTraveler.dateOfBirth), 'yyyy-MM-dd') : '',
|
|
28034
|
+
gender: ''
|
|
28064
28035
|
};
|
|
28065
28036
|
}),
|
|
28066
28037
|
children: []
|
|
@@ -28070,43 +28041,43 @@ function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry, a
|
|
|
28070
28041
|
rooms.map(function (room) {
|
|
28071
28042
|
return { adults: room.adults, children: room.children };
|
|
28072
28043
|
}),
|
|
28073
|
-
(
|
|
28074
|
-
(
|
|
28044
|
+
(_c =
|
|
28045
|
+
(_b = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.lines) === null || _b === void 0
|
|
28075
28046
|
? void 0
|
|
28076
|
-
:
|
|
28047
|
+
: _b[0]) === null || _c === void 0
|
|
28077
28048
|
? void 0
|
|
28078
|
-
:
|
|
28049
|
+
: _c.from,
|
|
28079
28050
|
agentAdressId
|
|
28080
28051
|
);
|
|
28081
28052
|
values.rooms = rooms;
|
|
28082
28053
|
values.mainBookerId =
|
|
28083
|
-
(
|
|
28084
|
-
(
|
|
28085
|
-
(
|
|
28054
|
+
(_j =
|
|
28055
|
+
(_e =
|
|
28056
|
+
(_d = pax.find(function (x) {
|
|
28086
28057
|
return x.isMainBooker;
|
|
28087
|
-
})) === null ||
|
|
28058
|
+
})) === null || _d === void 0
|
|
28088
28059
|
? void 0
|
|
28089
|
-
:
|
|
28090
|
-
?
|
|
28091
|
-
: (
|
|
28060
|
+
: _d.id) !== null && _e !== void 0
|
|
28061
|
+
? _e
|
|
28062
|
+
: (_h = (_g = (_f = rooms[0]) === null || _f === void 0 ? void 0 : _f.adults) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0
|
|
28092
28063
|
? void 0
|
|
28093
|
-
:
|
|
28094
|
-
?
|
|
28064
|
+
: _h.id) !== null && _j !== void 0
|
|
28065
|
+
? _j
|
|
28095
28066
|
: -1;
|
|
28096
28067
|
var address = editablePackagingEntry === null || editablePackagingEntry === void 0 ? void 0 : editablePackagingEntry.address;
|
|
28097
|
-
values.street = (
|
|
28098
|
-
values.houseNumber = (
|
|
28099
|
-
values.box = (
|
|
28100
|
-
values.zipCode = (
|
|
28101
|
-
values.place = (
|
|
28102
|
-
values.country = (
|
|
28103
|
-
values.phone = (
|
|
28104
|
-
values.email = (
|
|
28105
|
-
values.emailConfirmation = (
|
|
28068
|
+
values.street = (_k = address === null || address === void 0 ? void 0 : address.street) !== null && _k !== void 0 ? _k : '';
|
|
28069
|
+
values.houseNumber = (_l = address === null || address === void 0 ? void 0 : address.houseNumber) !== null && _l !== void 0 ? _l : '';
|
|
28070
|
+
values.box = (_m = address === null || address === void 0 ? void 0 : address.box) !== null && _m !== void 0 ? _m : '';
|
|
28071
|
+
values.zipCode = (_o = address === null || address === void 0 ? void 0 : address.zipCode) !== null && _o !== void 0 ? _o : '';
|
|
28072
|
+
values.place = (_p = address === null || address === void 0 ? void 0 : address.place) !== null && _p !== void 0 ? _p : '';
|
|
28073
|
+
values.country = (_q = address === null || address === void 0 ? void 0 : address.country) !== null && _q !== void 0 ? _q : '';
|
|
28074
|
+
values.phone = (_r = address === null || address === void 0 ? void 0 : address.phone) !== null && _r !== void 0 ? _r : '';
|
|
28075
|
+
values.email = (_s = address === null || address === void 0 ? void 0 : address.email) !== null && _s !== void 0 ? _s : '';
|
|
28076
|
+
values.emailConfirmation = (_t = address === null || address === void 0 ? void 0 : address.email) !== null && _t !== void 0 ? _t : '';
|
|
28106
28077
|
values.travelAgentId =
|
|
28107
|
-
(
|
|
28108
|
-
|
|
28109
|
-
?
|
|
28078
|
+
(_v = (_u = address === null || address === void 0 ? void 0 : address.travelAgentId) !== null && _u !== void 0 ? _u : agentAdressId) !== null &&
|
|
28079
|
+
_v !== void 0
|
|
28080
|
+
? _v
|
|
28110
28081
|
: 0;
|
|
28111
28082
|
return values;
|
|
28112
28083
|
}
|
|
@@ -47446,73 +47417,77 @@ var BookPackagingEntry = function (_a) {
|
|
|
47446
47417
|
'div',
|
|
47447
47418
|
{ className: 'booking__content' },
|
|
47448
47419
|
React__default.createElement(
|
|
47449
|
-
|
|
47450
|
-
{
|
|
47451
|
-
|
|
47452
|
-
|
|
47453
|
-
|
|
47454
|
-
|
|
47455
|
-
|
|
47456
|
-
|
|
47457
|
-
|
|
47458
|
-
|
|
47459
|
-
React__default.createElement(SharedTravelersForm, {
|
|
47460
|
-
formik: formik,
|
|
47461
|
-
translations: translations,
|
|
47462
|
-
travellersSettings: travellersSettings,
|
|
47463
|
-
countries: countries,
|
|
47464
|
-
travelersFirstStep: false,
|
|
47465
|
-
isUnavailable: false,
|
|
47466
|
-
useCompactForm: false,
|
|
47467
|
-
showAgentSelection: false
|
|
47468
|
-
}),
|
|
47469
|
-
currentStep === 1 &&
|
|
47470
|
-
React__default.createElement(SharedSummary, {
|
|
47471
|
-
translations: translations,
|
|
47472
|
-
travelerFormValues: formik.values,
|
|
47473
|
-
isSubmitting: isSubmitting,
|
|
47474
|
-
userValidated: userValidated,
|
|
47475
|
-
remarks: remarks,
|
|
47476
|
-
enableVoucher: false,
|
|
47477
|
-
allowOption: false,
|
|
47478
|
-
isOffer: false,
|
|
47479
|
-
onUserValidatedChange: setUserValidated,
|
|
47480
|
-
onRemarksChange: setRemarks,
|
|
47481
|
-
onSubmit: handleSummarySubmit,
|
|
47482
|
-
renderOptions: function () {
|
|
47483
|
-
return renderEditablePackagingEntrySummaryOptions(editablePackagingEntry, priceDetails);
|
|
47484
|
-
},
|
|
47485
|
-
renderPreviousButton: function () {
|
|
47486
|
-
return React__default.createElement(
|
|
47487
|
-
'button',
|
|
47488
|
-
{
|
|
47489
|
-
type: 'button',
|
|
47490
|
-
title: translations.STEPS.PREVIOUS,
|
|
47491
|
-
onClick: function () {
|
|
47492
|
-
return dispatch(setCurrentStep(0));
|
|
47493
|
-
},
|
|
47494
|
-
className: 'cta cta--secondary'
|
|
47495
|
-
},
|
|
47496
|
-
translations.STEPS.PREVIOUS
|
|
47497
|
-
);
|
|
47420
|
+
'div',
|
|
47421
|
+
{ className: 'booking__panel' },
|
|
47422
|
+
React__default.createElement(
|
|
47423
|
+
BookingPanel,
|
|
47424
|
+
{
|
|
47425
|
+
currentStep: currentStep,
|
|
47426
|
+
stepLabels: stepLabels,
|
|
47427
|
+
StepIndicatorsComponent: StepIndicators$1,
|
|
47428
|
+
renderTitle: function (step) {
|
|
47429
|
+
return React__default.createElement(React__default.Fragment, null, step + 1, '.\u00A0', stepLabels[step]);
|
|
47498
47430
|
}
|
|
47499
|
-
}
|
|
47500
|
-
|
|
47501
|
-
|
|
47502
|
-
|
|
47503
|
-
|
|
47504
|
-
|
|
47505
|
-
|
|
47506
|
-
|
|
47507
|
-
|
|
47508
|
-
|
|
47509
|
-
|
|
47510
|
-
|
|
47511
|
-
|
|
47512
|
-
|
|
47513
|
-
|
|
47514
|
-
|
|
47515
|
-
|
|
47431
|
+
},
|
|
47432
|
+
currentStep === 0 &&
|
|
47433
|
+
React__default.createElement(SharedTravelersForm, {
|
|
47434
|
+
formik: formik,
|
|
47435
|
+
translations: translations,
|
|
47436
|
+
travellersSettings: travellersSettings,
|
|
47437
|
+
countries: countries,
|
|
47438
|
+
travelersFirstStep: false,
|
|
47439
|
+
isUnavailable: false,
|
|
47440
|
+
useCompactForm: false,
|
|
47441
|
+
showAgentSelection: false
|
|
47442
|
+
}),
|
|
47443
|
+
currentStep === 1 &&
|
|
47444
|
+
React__default.createElement(SharedSummary, {
|
|
47445
|
+
translations: translations,
|
|
47446
|
+
travelerFormValues: formik.values,
|
|
47447
|
+
isSubmitting: isSubmitting,
|
|
47448
|
+
userValidated: userValidated,
|
|
47449
|
+
remarks: remarks,
|
|
47450
|
+
enableVoucher: false,
|
|
47451
|
+
allowOption: false,
|
|
47452
|
+
isOffer: false,
|
|
47453
|
+
onUserValidatedChange: setUserValidated,
|
|
47454
|
+
onRemarksChange: setRemarks,
|
|
47455
|
+
onSubmit: handleSummarySubmit,
|
|
47456
|
+
renderOptions: function () {
|
|
47457
|
+
return renderEditablePackagingEntrySummaryOptions(editablePackagingEntry, priceDetails);
|
|
47458
|
+
},
|
|
47459
|
+
renderPreviousButton: function () {
|
|
47460
|
+
return React__default.createElement(
|
|
47461
|
+
'button',
|
|
47462
|
+
{
|
|
47463
|
+
type: 'button',
|
|
47464
|
+
title: translations.STEPS.PREVIOUS,
|
|
47465
|
+
onClick: function () {
|
|
47466
|
+
return dispatch(setCurrentStep(0));
|
|
47467
|
+
},
|
|
47468
|
+
className: 'cta cta--secondary'
|
|
47469
|
+
},
|
|
47470
|
+
translations.STEPS.PREVIOUS
|
|
47471
|
+
);
|
|
47472
|
+
}
|
|
47473
|
+
}),
|
|
47474
|
+
currentStep === 2 &&
|
|
47475
|
+
React__default.createElement(SharedConfirmation, {
|
|
47476
|
+
bookingNumber:
|
|
47477
|
+
(_c =
|
|
47478
|
+
bookingNumber !== null && bookingNumber !== void 0
|
|
47479
|
+
? bookingNumber
|
|
47480
|
+
: editablePackagingEntry === null || editablePackagingEntry === void 0
|
|
47481
|
+
? void 0
|
|
47482
|
+
: editablePackagingEntry.dossierNumber) !== null && _c !== void 0
|
|
47483
|
+
? _c
|
|
47484
|
+
: '',
|
|
47485
|
+
isOption: false,
|
|
47486
|
+
isOffer: false,
|
|
47487
|
+
translations: translations.CONFIRMATION
|
|
47488
|
+
}),
|
|
47489
|
+
currentStep === 3 && React__default.createElement('div', null)
|
|
47490
|
+
)
|
|
47516
47491
|
),
|
|
47517
47492
|
React__default.createElement('div', { className: 'backdrop', id: 'backdrop' }),
|
|
47518
47493
|
React__default.createElement(WLSidebar, { activeSearchSeed: activeSearchSeed })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { FormikProps } from 'formik';
|
|
3
3
|
import { Country, RoomTraveler, Traveler, TravelersFormValues } from '../../booking-wizard/types';
|
|
4
|
-
import { CountryItem, PackagingEntry } from '@qite/tide-client';
|
|
4
|
+
import { CountryItem, PackagingEntry, PackagingEntryPax } from '@qite/tide-client';
|
|
5
5
|
export type TravelersFormField = {
|
|
6
6
|
type: string;
|
|
7
7
|
};
|
|
@@ -56,12 +56,12 @@ export declare function createInitialValuesFromRooms(
|
|
|
56
56
|
personTranslation?: string,
|
|
57
57
|
isCompact?: boolean
|
|
58
58
|
): TravelersFormValues;
|
|
59
|
-
export declare function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry:
|
|
59
|
+
export declare function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry: PackagingEntry, agentAdressId?: number): TravelersFormValues;
|
|
60
60
|
export declare function applyTravelersFormValuesToEditablePackagingEntry(
|
|
61
61
|
editablePackagingEntry: PackagingEntry,
|
|
62
62
|
values: TravelersFormValues
|
|
63
63
|
): {
|
|
64
|
-
pax:
|
|
64
|
+
pax: PackagingEntryPax[];
|
|
65
65
|
address: {
|
|
66
66
|
street: string;
|
|
67
67
|
houseNumber: string;
|
package/package.json
CHANGED
|
@@ -16,12 +16,9 @@ import { useFormik } from 'formik';
|
|
|
16
16
|
import { TravelersFormValues } from '../../../booking-wizard/types';
|
|
17
17
|
import { setBookingNumber, setCurrentStep, setEditablePackagingEntry } from '../../store/search-results-slice';
|
|
18
18
|
import validateForm from '../../../booking-wizard/features/travelers-form/validate-form';
|
|
19
|
-
import { bookPackagingEntry, CountryItem, getCountries, PackagingEntry, TideClientConfig } from '@qite/tide-client';
|
|
19
|
+
import { bookPackagingEntry, CountryItem, getCountries, PackagingEntry, PackagingRequestBase, TideClientConfig } from '@qite/tide-client';
|
|
20
20
|
import SharedSummary from '../../../shared/booking/summary';
|
|
21
21
|
import { renderEditablePackagingEntrySummaryOptions } from '../../../shared/utils/booking-summary';
|
|
22
|
-
|
|
23
|
-
// TODO; fix import
|
|
24
|
-
import { PackagingRequestBase } from '@qite/tide-client/build/types/booking-v2/request/packaging/packaging-request-base';
|
|
25
22
|
import SharedConfirmation from '../../../shared/booking/shared-confirmation';
|
|
26
23
|
|
|
27
24
|
interface BookPackagingEntryProps {
|
|
@@ -163,62 +160,64 @@ const BookPackagingEntry: React.FC<BookPackagingEntryProps> = ({ activeSearchSee
|
|
|
163
160
|
return (
|
|
164
161
|
<div className="booking">
|
|
165
162
|
<div className="booking__content">
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
{translations.STEPS.PREVIOUS}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
163
|
+
<div className="booking__panel">
|
|
164
|
+
<BookingPanel
|
|
165
|
+
currentStep={currentStep}
|
|
166
|
+
stepLabels={stepLabels}
|
|
167
|
+
StepIndicatorsComponent={StepIndicators}
|
|
168
|
+
renderTitle={(step) => (
|
|
169
|
+
<>
|
|
170
|
+
{step + 1}. {stepLabels[step]}
|
|
171
|
+
</>
|
|
172
|
+
)}>
|
|
173
|
+
{currentStep === 0 && (
|
|
174
|
+
<SharedTravelersForm
|
|
175
|
+
formik={formik}
|
|
176
|
+
translations={translations}
|
|
177
|
+
travellersSettings={travellersSettings}
|
|
178
|
+
countries={countries}
|
|
179
|
+
travelersFirstStep={false}
|
|
180
|
+
isUnavailable={false}
|
|
181
|
+
useCompactForm={false}
|
|
182
|
+
showAgentSelection={false}
|
|
183
|
+
/>
|
|
184
|
+
)}
|
|
185
|
+
|
|
186
|
+
{currentStep === 1 && (
|
|
187
|
+
<SharedSummary
|
|
188
|
+
translations={translations}
|
|
189
|
+
travelerFormValues={formik.values}
|
|
190
|
+
isSubmitting={isSubmitting}
|
|
191
|
+
userValidated={userValidated}
|
|
192
|
+
remarks={remarks}
|
|
193
|
+
enableVoucher={false}
|
|
194
|
+
allowOption={false}
|
|
195
|
+
isOffer={false}
|
|
196
|
+
onUserValidatedChange={setUserValidated}
|
|
197
|
+
onRemarksChange={setRemarks}
|
|
198
|
+
onSubmit={handleSummarySubmit}
|
|
199
|
+
renderOptions={() => renderEditablePackagingEntrySummaryOptions(editablePackagingEntry, priceDetails, translations)}
|
|
200
|
+
renderPreviousButton={() => (
|
|
201
|
+
<button type="button" title={translations.STEPS.PREVIOUS} onClick={() => dispatch(setCurrentStep(0))} className="cta cta--secondary">
|
|
202
|
+
{translations.STEPS.PREVIOUS}
|
|
203
|
+
</button>
|
|
204
|
+
)}
|
|
205
|
+
/>
|
|
206
|
+
)}
|
|
207
|
+
{currentStep === 2 && (
|
|
208
|
+
<SharedConfirmation
|
|
209
|
+
bookingNumber={bookingNumber ?? editablePackagingEntry?.dossierNumber ?? ''}
|
|
210
|
+
isOption={false}
|
|
211
|
+
isOffer={false}
|
|
212
|
+
translations={translations.CONFIRMATION}
|
|
213
|
+
// companyContactPhone={context?.companyContactPhone || ''}
|
|
214
|
+
// companyContactEmail={context?.companyContactEmail || ''}
|
|
215
|
+
// homeUrl={context?.homeUrl || '/'}
|
|
216
|
+
/>
|
|
217
|
+
)}
|
|
218
|
+
{currentStep === 3 && <div>{/* error */}</div>}
|
|
219
|
+
</BookingPanel>
|
|
220
|
+
</div>
|
|
222
221
|
<div className="backdrop" id="backdrop"></div>
|
|
223
222
|
<WLSidebar activeSearchSeed={activeSearchSeed} />
|
|
224
223
|
</div>
|
|
@@ -62,7 +62,8 @@ import {
|
|
|
62
62
|
PackagingEntryLineFlightLine,
|
|
63
63
|
PackagingEntryAddress,
|
|
64
64
|
PackagingEntryPax,
|
|
65
|
-
PackagingEntryRoom
|
|
65
|
+
PackagingEntryRoom,
|
|
66
|
+
PackagingRequestBase
|
|
66
67
|
} from '@qite/tide-client';
|
|
67
68
|
import { getDateFromParams, getNumberFromParams, getRoomsFromParams, getStringFromParams } from '../../../shared/utils/query-string-util';
|
|
68
69
|
import { concat, first, isEmpty, last, range } from 'lodash';
|
|
@@ -116,9 +117,6 @@ import DayByDayExcursions from '../excursions/day-by-day-excursions';
|
|
|
116
117
|
import BookPackagingEntry from '../book-packaging-entry';
|
|
117
118
|
import { format } from 'date-fns';
|
|
118
119
|
|
|
119
|
-
// TODO; fix import
|
|
120
|
-
import { PackagingRequestBase } from '@qite/tide-client/build/types/booking-v2/request/packaging/packaging-request-base';
|
|
121
|
-
|
|
122
120
|
type BuildPackagingEntryPartialArgs = {
|
|
123
121
|
sourceEntry: PackagingEntry | null | undefined;
|
|
124
122
|
selectedHotelCode: string | null | undefined;
|
|
@@ -10,7 +10,7 @@ interface BookingPanelProps {
|
|
|
10
10
|
|
|
11
11
|
const BookingPanel: React.FC<BookingPanelProps> = ({ currentStep, stepLabels, renderTitle, children, StepIndicatorsComponent }) => {
|
|
12
12
|
return (
|
|
13
|
-
<div className="
|
|
13
|
+
<div className="booking__panel__wrapper">
|
|
14
14
|
<StepIndicatorsComponent currentStep={currentStep} stepLabels={stepLabels} />
|
|
15
15
|
<div className="booking__panel-frame booking__panel-frame--transparent">
|
|
16
16
|
<div className="booking__panel-heading">
|
|
@@ -10,7 +10,7 @@ import PhoneInput from '../../booking-wizard/components/phone-input';
|
|
|
10
10
|
import GenderControl from '../../booking-wizard/features/travelers-form/controls/gender-control';
|
|
11
11
|
import TypeAheadInput from '../../booking-wizard/features/travelers-form/type-ahead-input';
|
|
12
12
|
import { buildClassName } from '../utils/class-util';
|
|
13
|
-
import { CountryItem, PackagingEntry } from '@qite/tide-client';
|
|
13
|
+
import { CountryItem, PackagingEntry, PackagingEntryPax } from '@qite/tide-client';
|
|
14
14
|
|
|
15
15
|
export type TravelersFormField = { type: string };
|
|
16
16
|
export type AgentOption = { id: number | string; name: string; postalCode?: string; location?: string };
|
|
@@ -97,22 +97,20 @@ export function createInitialValuesFromRooms(
|
|
|
97
97
|
return initialValues;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry:
|
|
101
|
-
|
|
100
|
+
export function createInitialValuesFromEditablePackagingEntry(editablePackagingEntry: PackagingEntry, agentAdressId?: number): TravelersFormValues {
|
|
101
|
+
console.log('editablePackagingEntry?.pax:', editablePackagingEntry?.pax);
|
|
102
102
|
const pax = editablePackagingEntry?.pax ?? [];
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
const rooms = editablePackagingEntry.rooms.map((room) => {
|
|
104
|
+
const roomPax = pax.filter((x: PackagingEntryPax) => room.paxIds.includes(x.id));
|
|
105
|
+
// TODO children/dateofbirth is missing at this point
|
|
107
106
|
return {
|
|
108
|
-
adults: roomPax.map((roomTraveler:
|
|
109
|
-
const entryPax = pax.find((x: any) => x.id === roomTraveler.paxId) ?? {};
|
|
107
|
+
adults: roomPax.map((roomTraveler: PackagingEntryPax) => {
|
|
110
108
|
return {
|
|
111
|
-
id:
|
|
112
|
-
firstName:
|
|
113
|
-
lastName:
|
|
114
|
-
birthDate:
|
|
115
|
-
gender:
|
|
109
|
+
id: roomTraveler.id,
|
|
110
|
+
firstName: roomTraveler.firstName ?? '',
|
|
111
|
+
lastName: roomTraveler.lastName ?? '',
|
|
112
|
+
birthDate: roomTraveler.dateOfBirth ? format(new Date(roomTraveler.dateOfBirth), 'yyyy-MM-dd') : '',
|
|
113
|
+
gender: ''
|
|
116
114
|
} as Traveler;
|
|
117
115
|
}),
|
|
118
116
|
children: [] as Traveler[]
|
|
@@ -44,17 +44,23 @@
|
|
|
44
44
|
|
|
45
45
|
&__navigator {
|
|
46
46
|
gap: 15px;
|
|
47
|
+
position: fixed;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
background-color: var(--tide-booking-white);
|
|
51
|
+
// outline: 2px solid var(--tide-booking-bg);
|
|
52
|
+
z-index: 11;
|
|
53
|
+
width: 100%;
|
|
47
54
|
|
|
48
55
|
@include row--xs;
|
|
49
56
|
justify-content: flex-end;
|
|
50
|
-
|
|
51
|
-
padding
|
|
52
|
-
padding-bottom: 60px;
|
|
53
|
-
// background-color: $gray-light;
|
|
57
|
+
align-items: center;
|
|
58
|
+
padding: 15px;
|
|
54
59
|
|
|
55
60
|
@include media-lg {
|
|
56
|
-
|
|
57
|
-
padding
|
|
61
|
+
position: relative;
|
|
62
|
+
padding: 30px 15px;
|
|
63
|
+
background: var(--tide-booking-transparent);
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
.cta--secondary {
|
|
@@ -64,11 +70,17 @@
|
|
|
64
70
|
margin-right: auto;
|
|
65
71
|
}
|
|
66
72
|
}
|
|
73
|
+
|
|
74
|
+
button {
|
|
75
|
+
@include media-xs {
|
|
76
|
+
max-width: 150px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
67
79
|
}
|
|
68
80
|
|
|
69
81
|
&__panel {
|
|
70
|
-
width:
|
|
71
|
-
max-width:
|
|
82
|
+
width: 100%;
|
|
83
|
+
max-width: 1200px;
|
|
72
84
|
@include column;
|
|
73
85
|
border-radius: 15px * 0.3;
|
|
74
86
|
|
|
@@ -79,6 +91,14 @@
|
|
|
79
91
|
@include media-xl {
|
|
80
92
|
padding-right: 40px;
|
|
81
93
|
}
|
|
94
|
+
|
|
95
|
+
&__wrapper {
|
|
96
|
+
margin-bottom: 155px;
|
|
97
|
+
|
|
98
|
+
@include media-lg {
|
|
99
|
+
margin-bottom: 0px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
82
102
|
}
|
|
83
103
|
|
|
84
104
|
&__panel-heading {
|
|
@@ -221,8 +241,8 @@
|
|
|
221
241
|
&__sidebar {
|
|
222
242
|
position: fixed;
|
|
223
243
|
width: calc(100% - 0px);
|
|
224
|
-
max-height: calc(
|
|
225
|
-
bottom:
|
|
244
|
+
max-height: calc(100dvh - 90px);
|
|
245
|
+
bottom: 75px;
|
|
226
246
|
right: 0;
|
|
227
247
|
transform: translate3D(0, calc(100% - 80px), 0);
|
|
228
248
|
margin-left: auto;
|
|
@@ -240,11 +260,10 @@
|
|
|
240
260
|
@include media-lg {
|
|
241
261
|
position: sticky;
|
|
242
262
|
width: 400px;
|
|
243
|
-
|
|
263
|
+
height: calc(100vh - 86px);
|
|
244
264
|
top: 40px;
|
|
245
265
|
bottom: initial;
|
|
246
266
|
transform: none;
|
|
247
|
-
min-height: 93vh;
|
|
248
267
|
}
|
|
249
268
|
|
|
250
269
|
.booking__product-heading {
|
|
@@ -256,7 +275,6 @@
|
|
|
256
275
|
&__sidebar-frame {
|
|
257
276
|
border-radius: var(--tide-booking-sidebar-frame-radius);
|
|
258
277
|
background-color: var(--tide-booking-sidebar-body-background);
|
|
259
|
-
height: calc(100vh - 86px);
|
|
260
278
|
}
|
|
261
279
|
|
|
262
280
|
&__sidebar--active {
|
|
@@ -583,7 +601,7 @@
|
|
|
583
601
|
|
|
584
602
|
&.booking-card__group--package {
|
|
585
603
|
padding: 40px 10px 20px;
|
|
586
|
-
margin-top: -25px;
|
|
604
|
+
// margin-top: -25px;
|
|
587
605
|
margin-bottom: 15px;
|
|
588
606
|
transition: all 0.4s ease;
|
|
589
607
|
|
|
@@ -721,7 +739,7 @@
|
|
|
721
739
|
|
|
722
740
|
&__tag {
|
|
723
741
|
position: absolute;
|
|
724
|
-
top:
|
|
742
|
+
top: 15px;
|
|
725
743
|
left: 0;
|
|
726
744
|
padding: 6px 5px 6px 10px;
|
|
727
745
|
font-size: 14px;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
max-width: 100%;
|
|
5
5
|
display: flex;
|
|
6
|
-
padding-bottom: 15px;
|
|
7
|
-
margin-bottom: 20px;
|
|
6
|
+
// padding-bottom: 15px;
|
|
7
|
+
// margin-bottom: 20px;
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
|
|
10
10
|
&__items {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
max-width: 100vw;
|
|
14
14
|
padding-bottom: 15px;
|
|
15
|
-
margin-bottom:
|
|
15
|
+
margin-bottom: 30px;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-grow: 0;
|
|
18
18
|
justify-content: space-between;
|
|
@@ -24,8 +24,12 @@
|
|
|
24
24
|
width: 95%;
|
|
25
25
|
height: 0;
|
|
26
26
|
left: 2.5%;
|
|
27
|
-
top:
|
|
27
|
+
top: 15px;
|
|
28
28
|
border-bottom: var(--tide-booking-step-indicators-line-trough);
|
|
29
|
+
|
|
30
|
+
@include media-xs {
|
|
31
|
+
top: 20px;
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -70,14 +74,21 @@
|
|
|
70
74
|
&:before {
|
|
71
75
|
content: '';
|
|
72
76
|
position: absolute;
|
|
73
|
-
width:
|
|
74
|
-
height:
|
|
75
|
-
margin-top: -
|
|
76
|
-
margin-left:
|
|
77
|
+
width: 11px;
|
|
78
|
+
height: 5px;
|
|
79
|
+
margin-top: -6px;
|
|
80
|
+
margin-left: 0px;
|
|
77
81
|
border-left: 2px solid;
|
|
78
82
|
border-bottom: 2px solid;
|
|
79
83
|
border-color: var(--tide-booking-step-indicators-icon-check-color-active);
|
|
80
84
|
transform: rotate(-45deg);
|
|
85
|
+
|
|
86
|
+
@include media-xs {
|
|
87
|
+
width: 17px;
|
|
88
|
+
height: 6px;
|
|
89
|
+
margin-top: -5px;
|
|
90
|
+
margin-left: -2px;
|
|
91
|
+
}
|
|
81
92
|
}
|
|
82
93
|
}
|
|
83
94
|
|
|
@@ -106,14 +117,21 @@
|
|
|
106
117
|
&:before {
|
|
107
118
|
content: '';
|
|
108
119
|
position: absolute;
|
|
109
|
-
width:
|
|
110
|
-
height:
|
|
111
|
-
margin-top: -
|
|
112
|
-
margin-left:
|
|
120
|
+
width: 11px;
|
|
121
|
+
height: 5px;
|
|
122
|
+
margin-top: -6px;
|
|
123
|
+
margin-left: 0px;
|
|
113
124
|
border-left: 2px solid;
|
|
114
125
|
border-bottom: 2px solid;
|
|
115
126
|
border-color: var(--tide-booking-step-indicators-icon-check-color-completed);
|
|
116
127
|
transform: rotate(-45deg);
|
|
128
|
+
|
|
129
|
+
@include media-xs {
|
|
130
|
+
width: 17px;
|
|
131
|
+
height: 6px;
|
|
132
|
+
margin-top: -5px;
|
|
133
|
+
margin-left: -2px;
|
|
134
|
+
}
|
|
117
135
|
}
|
|
118
136
|
}
|
|
119
137
|
}
|
|
@@ -121,17 +139,23 @@
|
|
|
121
139
|
&__icon {
|
|
122
140
|
@extend %reset;
|
|
123
141
|
position: relative;
|
|
124
|
-
width:
|
|
125
|
-
height:
|
|
142
|
+
width: 30px;
|
|
143
|
+
height: 30px;
|
|
126
144
|
padding-top: 2px;
|
|
127
145
|
@include flex--centerXY;
|
|
128
|
-
flex: 0 0
|
|
146
|
+
flex: 0 0 30px;
|
|
129
147
|
border-radius: var(--tide-booking-step-indicators-icon-border-radius);
|
|
130
148
|
font-family: var(--tide-booking-step-indicators-icon-font-family);
|
|
131
149
|
color: var(--tide-booking-step-indicators-icon-color);
|
|
132
150
|
background-color: var(--tide-booking-step-indicators-icon-background);
|
|
133
151
|
@extend %transition-easing;
|
|
134
152
|
z-index: 1;
|
|
153
|
+
|
|
154
|
+
@include media-xs {
|
|
155
|
+
width: 40px;
|
|
156
|
+
height: 40px;
|
|
157
|
+
flex: 0 0 40px;
|
|
158
|
+
}
|
|
135
159
|
}
|
|
136
160
|
|
|
137
161
|
&__text {
|
|
@@ -144,6 +168,7 @@
|
|
|
144
168
|
line-height: 1.2;
|
|
145
169
|
text-overflow: ellipsis;
|
|
146
170
|
overflow: hidden;
|
|
171
|
+
display: none;
|
|
147
172
|
|
|
148
173
|
@include media-xs {
|
|
149
174
|
font-size: 12px;
|
|
@@ -151,6 +176,7 @@
|
|
|
151
176
|
|
|
152
177
|
@include media-sm {
|
|
153
178
|
font-size: 14px;
|
|
179
|
+
display: block;
|
|
154
180
|
}
|
|
155
181
|
|
|
156
182
|
@include media-md {
|