@roomstay/frontend 2.1.6 → 2.1.8
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/dist/14.bundle.js +1 -0
- package/dist/151.bundle.js +1 -0
- package/dist/201.bundle.js +1 -1
- package/dist/279.bundle.js +1 -1
- package/dist/370.bundle.js +1 -1
- package/dist/399.bundle.js +2 -0
- package/dist/399.bundle.js.LICENSE.txt +30 -0
- package/dist/449.bundle.js +1 -1
- package/dist/559.bundle.js +1 -0
- package/dist/760.bundle.js +1 -1
- package/dist/815.bundle.js +1 -0
- package/dist/855.bundle.js +1 -0
- package/dist/873.bundle.js +1 -1
- package/dist/882.bundle.js +1 -1
- package/dist/962.bundle.js +1 -0
- package/dist/972.bundle.js +1 -1
- package/dist/main.bundle.js +1 -1
- package/dist/src/animations/AutoAutoHeight.d.ts +1 -1
- package/dist/src/animations/AutoAutoHeight.js +11 -34
- package/dist/src/animations/AutoAutoHeight.js.map +1 -1
- package/dist/src/animations/Fade.d.ts +1 -1
- package/dist/src/animations/Fade.js +3 -4
- package/dist/src/animations/Fade.js.map +1 -1
- package/dist/src/api/AddonAPI.js +3 -2
- package/dist/src/api/AddonAPI.js.map +1 -1
- package/dist/src/api/AvailabilityAPI.d.ts +2 -2
- package/dist/src/api/AvailabilityAPI.js +6 -6
- package/dist/src/api/AvailabilityAPI.js.map +1 -1
- package/dist/src/api/BaseAPI.d.ts +4 -4
- package/dist/src/api/BaseAPI.js +30 -24
- package/dist/src/api/BaseAPI.js.map +1 -1
- package/dist/src/api/ExchangeRateAPI.d.ts +1 -1
- package/dist/src/api/ExchangeRateAPI.js.map +1 -1
- package/dist/src/api/HotelAPI.js +1 -1
- package/dist/src/api/HotelAPI.js.map +1 -1
- package/dist/src/api/ReservationAPI.d.ts +1 -1
- package/dist/src/api/ReservationAPI.js +2 -1
- package/dist/src/api/ReservationAPI.js.map +1 -1
- package/dist/src/api/SessionAPI.d.ts +1 -1
- package/dist/src/api/SessionAPI.js +2 -2
- package/dist/src/api/SessionAPI.js.map +1 -1
- package/dist/src/components/User/Forms/ForgotPasswordForm.js +19 -23
- package/dist/src/components/User/Forms/ForgotPasswordForm.js.map +1 -1
- package/dist/src/components/User/Forms/SignInForm.js +50 -52
- package/dist/src/components/User/Forms/SignInForm.js.map +1 -1
- package/dist/src/components/User/Forms/SignUpForm.js +61 -62
- package/dist/src/components/User/Forms/SignUpForm.js.map +1 -1
- package/dist/src/components/generic/Alert.js +3 -26
- package/dist/src/components/generic/Alert.js.map +1 -1
- package/dist/src/components/generic/BEButton.d.ts +1 -1
- package/dist/src/components/generic/BEButton.js +8 -7
- package/dist/src/components/generic/BEButton.js.map +1 -1
- package/dist/src/components/generic/BESelect.js +2 -0
- package/dist/src/components/generic/BESelect.js.map +1 -0
- package/dist/src/components/generic/BackButton.js +2 -26
- package/dist/src/components/generic/BackButton.js.map +1 -1
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.d.ts +2 -1
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.js +9 -9
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.d.ts +1 -3
- package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardContent.js +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardContent.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardContext.d.ts +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardContext.js +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardContext.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js +6 -4
- package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js +5 -4
- package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js.map +1 -1
- package/dist/src/components/generic/Card/Card/Card.js +4 -27
- package/dist/src/components/generic/Card/Card/Card.js.map +1 -1
- package/dist/src/components/generic/Card/IconNavCard/IconNavCard.d.ts +1 -1
- package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js +8 -8
- package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js.map +1 -1
- package/dist/src/components/generic/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/generic/Checkbox/Checkbox.js +8 -8
- package/dist/src/components/generic/Checkbox/Checkbox.js.map +1 -1
- package/dist/src/components/generic/Countdown.js +6 -29
- package/dist/src/components/generic/Countdown.js.map +1 -1
- package/dist/src/components/generic/Currency.js +10 -10
- package/dist/src/components/generic/Currency.js.map +1 -1
- package/dist/src/components/generic/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/src/components/generic/DateRangePicker/DateRangePicker.js +28 -28
- package/dist/src/components/generic/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.d.ts +13 -7
- package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.js +4 -39
- package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.js.map +1 -1
- package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.js +18 -16
- package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.js.map +1 -1
- package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.js +4 -27
- package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.js.map +1 -1
- package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js +10 -10
- package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js.map +1 -1
- package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.d.ts +3 -3
- package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js +13 -36
- package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js.map +1 -1
- package/dist/src/components/generic/Distance.js +5 -28
- package/dist/src/components/generic/Distance.js.map +1 -1
- package/dist/src/components/generic/ForwardedSelect.d.ts +1 -1
- package/dist/src/components/generic/ForwardedSelect.js +9 -29
- package/dist/src/components/generic/ForwardedSelect.js.map +1 -1
- package/dist/src/components/generic/Headline.d.ts +1 -1
- package/dist/src/components/generic/Headline.js +5 -30
- package/dist/src/components/generic/Headline.js.map +1 -1
- package/dist/src/components/generic/Icon/Icon.d.ts +1 -0
- package/dist/src/components/generic/Icon/Icon.js +6 -28
- package/dist/src/components/generic/Icon/Icon.js.map +1 -1
- package/dist/src/components/generic/IconText/IconText.js +5 -4
- package/dist/src/components/generic/IconText/IconText.js.map +1 -1
- package/dist/src/components/generic/InputGroup/InputGroup.js +6 -29
- package/dist/src/components/generic/InputGroup/InputGroup.js.map +1 -1
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutContainer.d.ts +3 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutContainer.js +28 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutContainer.js.map +1 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutLeftContent.d.ts +3 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutLeftContent.js +25 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutLeftContent.js.map +1 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutRightContent.d.ts +3 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutRightContent.js +25 -0
- package/dist/src/components/generic/Layout/StepLayout/StepLayoutRightContent.js.map +1 -0
- package/dist/src/components/generic/Layout/StepLayout/index.d.ts +3 -0
- package/dist/src/components/generic/Layout/StepLayout/index.js +13 -0
- package/dist/src/components/generic/Layout/StepLayout/index.js.map +1 -0
- package/dist/src/components/generic/LineBreak.js +2 -25
- package/dist/src/components/generic/LineBreak.js.map +1 -1
- package/dist/src/components/generic/Notification.d.ts +2 -3
- package/dist/src/components/generic/Notification.js +16 -13
- package/dist/src/components/generic/Notification.js.map +1 -1
- package/dist/src/components/generic/NumberIncrement.js +10 -10
- package/dist/src/components/generic/NumberIncrement.js.map +1 -1
- package/dist/src/components/generic/Overlay/Overlay.d.ts +3 -3
- package/dist/src/components/generic/Overlay/Overlay.js +16 -40
- package/dist/src/components/generic/Overlay/Overlay.js.map +1 -1
- package/dist/src/components/generic/PasswordBox/PasswordBox.d.ts +1 -1
- package/dist/src/components/generic/PasswordBox/PasswordBox.js +8 -8
- package/dist/src/components/generic/PasswordBox/PasswordBox.js.map +1 -1
- package/dist/src/components/generic/PaymentCard/CardTypeSelect.js +9 -28
- package/dist/src/components/generic/PaymentCard/CardTypeSelect.js.map +1 -1
- package/dist/src/components/generic/PaymentCard/PaymentCard.js +18 -41
- package/dist/src/components/generic/PaymentCard/PaymentCard.js.map +1 -1
- package/dist/src/components/generic/PaymentCard/PaymentCardInput.js +66 -51
- package/dist/src/components/generic/PaymentCard/PaymentCardInput.js.map +1 -1
- package/dist/src/components/generic/Pill.d.ts +1 -1
- package/dist/src/components/generic/Pill.js +4 -27
- package/dist/src/components/generic/Pill.js.map +1 -1
- package/dist/src/components/generic/Placeholder.js +4 -27
- package/dist/src/components/generic/Placeholder.js.map +1 -1
- package/dist/src/components/generic/PlanpayButton/PlanpayButton.js +2 -25
- package/dist/src/components/generic/PlanpayButton/PlanpayButton.js.map +1 -1
- package/dist/src/components/generic/Portal/Portal.d.ts +1 -1
- package/dist/src/components/generic/Portal/Portal.js +4 -24
- package/dist/src/components/generic/Portal/Portal.js.map +1 -1
- package/dist/src/components/generic/PromoCodeInput.js +27 -28
- package/dist/src/components/generic/PromoCodeInput.js.map +1 -1
- package/dist/src/components/generic/RadioButtonGroup/RadioButton.js +9 -32
- package/dist/src/components/generic/RadioButtonGroup/RadioButton.js.map +1 -1
- package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.d.ts +6 -6
- package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js +6 -29
- package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/src/components/generic/RecentSearchesCard.js +19 -18
- package/dist/src/components/generic/RecentSearchesCard.js.map +1 -1
- package/dist/src/components/generic/RoomstayMark.d.ts +1 -0
- package/dist/src/components/generic/RoomstayMark.js +49 -0
- package/dist/src/components/generic/RoomstayMark.js.map +1 -0
- package/dist/src/components/generic/ScrollToTop.d.ts +2 -0
- package/dist/src/components/generic/ScrollToTop.js +3 -3
- package/dist/src/components/generic/ScrollToTop.js.map +1 -1
- package/dist/src/components/generic/Select/Select.d.ts +4 -4
- package/dist/src/components/generic/Select/Select.js +16 -6
- package/dist/src/components/generic/Select/Select.js.map +1 -1
- package/dist/src/components/generic/Select.d.ts +0 -0
- package/dist/src/components/generic/Select.js +2 -0
- package/dist/src/components/generic/Select.js.map +1 -0
- package/dist/src/components/generic/Slider/Slider.d.ts +3 -3
- package/dist/src/components/generic/Slider/Slider.js +23 -45
- package/dist/src/components/generic/Slider/Slider.js.map +1 -1
- package/dist/src/components/generic/Tabs/ElementChildren.d.ts +1 -1
- package/dist/src/components/generic/Tabs/ElementChildren.js +6 -26
- package/dist/src/components/generic/Tabs/ElementChildren.js.map +1 -1
- package/dist/src/components/generic/Tabs/Tab.d.ts +1 -1
- package/dist/src/components/generic/Tabs/Tab.js +4 -24
- package/dist/src/components/generic/Tabs/Tab.js.map +1 -1
- package/dist/src/components/generic/Tabs/TabContext.d.ts +5 -6
- package/dist/src/components/generic/Tabs/TabContext.js +11 -31
- package/dist/src/components/generic/Tabs/TabContext.js.map +1 -1
- package/dist/src/components/generic/Tabs/TabLink.d.ts +1 -1
- package/dist/src/components/generic/Tabs/TabLink.js +7 -30
- package/dist/src/components/generic/Tabs/TabLink.js.map +1 -1
- package/dist/src/components/generic/Tabs/TabRouteContainer.js +10 -33
- package/dist/src/components/generic/Tabs/TabRouteContainer.js.map +1 -1
- package/dist/src/components/generic/Tabs/Tabs.d.ts +2 -2
- package/dist/src/components/generic/Tabs/Tabs.js +9 -32
- package/dist/src/components/generic/Tabs/Tabs.js.map +1 -1
- package/dist/src/components/generic/Text.d.ts +1 -1
- package/dist/src/components/generic/Text.js +3 -26
- package/dist/src/components/generic/Text.js.map +1 -1
- package/dist/src/components/generic/TextArea.d.ts +1 -1
- package/dist/src/components/generic/TextArea.js +6 -26
- package/dist/src/components/generic/TextArea.js.map +1 -1
- package/dist/src/components/generic/TextBox.d.ts +2 -2
- package/dist/src/components/generic/TextBox.js +11 -34
- package/dist/src/components/generic/TextBox.js.map +1 -1
- package/dist/src/components/generic/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/generic/Tooltip/Tooltip.js +8 -31
- package/dist/src/components/generic/Tooltip/Tooltip.js.map +1 -1
- package/dist/src/components/generic/badging/SSLSecureBadge.js +3 -26
- package/dist/src/components/generic/badging/SSLSecureBadge.js.map +1 -1
- package/dist/src/components/generic/buttons/NextStepButton.js +5 -28
- package/dist/src/components/generic/buttons/NextStepButton.js.map +1 -1
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.d.ts +3 -4
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +23 -32
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -1
- package/dist/src/components/generic/date/DatePicker.js +49 -50
- package/dist/src/components/generic/date/DatePicker.js.map +1 -1
- package/dist/src/components/generic/date/DatePickerDay.js +27 -27
- package/dist/src/components/generic/date/DatePickerDay.js.map +1 -1
- package/dist/src/components/generic/date/DatePickerDays.js +4 -27
- package/dist/src/components/generic/date/DatePickerDays.js.map +1 -1
- package/dist/src/components/generic/date/DatePickerMonth.js +9 -9
- package/dist/src/components/generic/date/DatePickerMonth.js.map +1 -1
- package/dist/src/components/generic/date/DatePickerWeek.js +26 -26
- package/dist/src/components/generic/date/DatePickerWeek.js.map +1 -1
- package/dist/src/components/generic/date/FloatingDatePicker.d.ts +1 -1
- package/dist/src/components/generic/date/FloatingDatePicker.js +11 -11
- package/dist/src/components/generic/date/FloatingDatePicker.js.map +1 -1
- package/dist/src/components/generic/date/WeekViewSkeleton.js +23 -46
- package/dist/src/components/generic/date/WeekViewSkeleton.js.map +1 -1
- package/dist/src/components/generic/loader/ImageLoader.d.ts +1 -1
- package/dist/src/components/generic/loader/ImageLoader.js +8 -8
- package/dist/src/components/generic/loader/ImageLoader.js.map +1 -1
- package/dist/src/components/generic/loader/LargeLoader.js +15 -38
- package/dist/src/components/generic/loader/LargeLoader.js.map +1 -1
- package/dist/src/components/generic/loader/SmallSpinner.js +6 -3
- package/dist/src/components/generic/loader/SmallSpinner.js.map +1 -1
- package/dist/src/components/generic/map/HotelLocationMap.js +3 -26
- package/dist/src/components/generic/map/HotelLocationMap.js.map +1 -1
- package/dist/src/components/generic/modal/ConfirmationModal.js +8 -8
- package/dist/src/components/generic/modal/ConfirmationModal.js.map +1 -1
- package/dist/src/components/generic/modal/ErrorModal.d.ts +2 -2
- package/dist/src/components/generic/modal/ErrorModal.js +5 -5
- package/dist/src/components/generic/modal/ErrorModal.js.map +1 -1
- package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.d.ts +3 -2
- package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js +16 -16
- package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js.map +1 -1
- package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.d.ts +1 -1
- package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js +26 -26
- package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js.map +1 -1
- package/dist/src/components/generic/modal/SimpleModal.d.ts +2 -2
- package/dist/src/components/generic/modal/SimpleModal.js +21 -22
- package/dist/src/components/generic/modal/SimpleModal.js.map +1 -1
- package/dist/src/components/generic/modal/TabbedModal.d.ts +1 -1
- package/dist/src/components/generic/modal/TabbedModal.js +12 -12
- package/dist/src/components/generic/modal/TabbedModal.js.map +1 -1
- package/dist/src/components/generic/radio/RadioFields.js +11 -11
- package/dist/src/components/generic/radio/RadioFields.js.map +1 -1
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.js +16 -36
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.js.map +1 -1
- package/dist/src/components/members/EditMyProfile.d.ts +1 -1
- package/dist/src/components/members/EditMyProfile.js +35 -59
- package/dist/src/components/members/EditMyProfile.js.map +1 -1
- package/dist/src/components/navigation/Header.js +69 -64
- package/dist/src/components/navigation/Header.js.map +1 -1
- package/dist/src/components/navigation/StepSelector.js +27 -27
- package/dist/src/components/navigation/StepSelector.js.map +1 -1
- package/dist/src/components/navigation/StepSelectorModal.js +14 -13
- package/dist/src/components/navigation/StepSelectorModal.js.map +1 -1
- package/dist/src/components/pages/Account/Card/CardList.js +10 -33
- package/dist/src/components/pages/Account/Card/CardList.js.map +1 -1
- package/dist/src/components/pages/Account/Card/MemberCardItem.js +10 -10
- package/dist/src/components/pages/Account/Card/MemberCardItem.js.map +1 -1
- package/dist/src/components/pages/PageColorComponent.js +4 -27
- package/dist/src/components/pages/PageColorComponent.js.map +1 -1
- package/dist/src/components/reservation/EmptyReservation.d.ts +6 -0
- package/dist/src/components/reservation/EmptyReservation.js +52 -0
- package/dist/src/components/reservation/EmptyReservation.js.map +1 -0
- package/dist/src/components/reservation/ReservationItem.js +56 -56
- package/dist/src/components/reservation/ReservationItem.js.map +1 -1
- package/dist/src/components/reservation/ReservationList.d.ts +3 -2
- package/dist/src/components/reservation/ReservationList.js +7 -26
- package/dist/src/components/reservation/ReservationList.js.map +1 -1
- package/dist/src/components/steps/DaysSelectedInformer.js +9 -6
- package/dist/src/components/steps/DaysSelectedInformer.js.map +1 -1
- package/dist/src/components/steps/MinimumNightStayPill.d.ts +1 -1
- package/dist/src/components/steps/MinimumNightStayPill.js +8 -8
- package/dist/src/components/steps/MinimumNightStayPill.js.map +1 -1
- package/dist/src/components/steps/addons/AddonCard.js +59 -58
- package/dist/src/components/steps/addons/AddonCard.js.map +1 -1
- package/dist/src/components/steps/addons/AddonList.js +12 -15
- package/dist/src/components/steps/addons/AddonList.js.map +1 -1
- package/dist/src/components/steps/addons/AddonsNotFound.js +38 -61
- package/dist/src/components/steps/addons/AddonsNotFound.js.map +1 -1
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +1 -1
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js +19 -19
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js.map +1 -1
- package/dist/src/components/steps/confirmation/AccountDetails.js +11 -34
- package/dist/src/components/steps/confirmation/AccountDetails.js.map +1 -1
- package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js +5 -27
- package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js.map +1 -1
- package/dist/src/components/steps/confirmation/PaymentDetails/CardPaymentDetails.js +1 -0
- package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js +12 -32
- package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js.map +1 -1
- package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.d.ts +1 -1
- package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js +26 -25
- package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js.map +1 -1
- package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js +35 -58
- package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js.map +1 -1
- package/dist/src/components/steps/confirmation/RoomContactDetails.js +72 -68
- package/dist/src/components/steps/confirmation/RoomContactDetails.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js +14 -14
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js +36 -35
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js +7 -30
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.d.ts +2 -2
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +29 -24
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationForm.js +94 -89
- package/dist/src/components/steps/confirmation/StepConfirmationForm.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js +3 -26
- package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js +13 -13
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js +16 -16
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js +25 -20
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js.map +1 -1
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js +26 -26
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js.map +1 -1
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js +13 -9
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js.map +1 -1
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js +61 -61
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js.map +1 -1
- package/dist/src/components/steps/date/PeoplePicker.js +11 -7
- package/dist/src/components/steps/date/PeoplePicker.js.map +1 -1
- package/dist/src/components/steps/date/PeoplePickerRow.js +18 -18
- package/dist/src/components/steps/date/PeoplePickerRow.js.map +1 -1
- package/dist/src/components/steps/date/StepDatePricePerRoom.js +16 -16
- package/dist/src/components/steps/date/StepDatePricePerRoom.js.map +1 -1
- package/dist/src/components/steps/date/StepOneDateRange.js +10 -10
- package/dist/src/components/steps/date/StepOneDateRange.js.map +1 -1
- package/dist/src/components/steps/date/StepOneDateRangePicker.js +6 -6
- package/dist/src/components/steps/date/StepOneDateRangePicker.js.map +1 -1
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js +6 -6
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js.map +1 -1
- package/dist/src/components/steps/date/StepOneNextStepButton.js +5 -5
- package/dist/src/components/steps/date/StepOneNextStepButton.js.map +1 -1
- package/dist/src/components/steps/date/StepOneStatusPeople.js +4 -27
- package/dist/src/components/steps/date/StepOneStatusPeople.js.map +1 -1
- package/dist/src/components/steps/hotel/HotelCard.js +61 -48
- package/dist/src/components/steps/hotel/HotelCard.js.map +1 -1
- package/dist/src/components/steps/hotel/HotelCardList.js +5 -28
- package/dist/src/components/steps/hotel/HotelCardList.js.map +1 -1
- package/dist/src/components/steps/hotel/HotelCardModal.d.ts +1 -1
- package/dist/src/components/steps/hotel/HotelCardModal.js +45 -45
- package/dist/src/components/steps/hotel/HotelCardModal.js.map +1 -1
- package/dist/src/components/steps/hotel/HotelSearchParameters.js +40 -40
- package/dist/src/components/steps/hotel/HotelSearchParameters.js.map +1 -1
- package/dist/src/components/steps/hotel/NoHotelsAvailable.js +57 -80
- package/dist/src/components/steps/hotel/NoHotelsAvailable.js.map +1 -1
- package/dist/src/components/steps/room/AvailableUpgradesModal.d.ts +2 -1
- package/dist/src/components/steps/room/AvailableUpgradesModal.js +40 -42
- package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -1
- package/dist/src/components/steps/room/ImageGallerySlider.js +21 -21
- package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -1
- package/dist/src/components/steps/room/InactivityWindow.js +20 -20
- package/dist/src/components/steps/room/InactivityWindow.js.map +1 -1
- package/dist/src/components/steps/room/LargeRoomCard.js +36 -35
- package/dist/src/components/steps/room/LargeRoomCard.js.map +1 -1
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js +44 -48
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js.map +1 -1
- package/dist/src/components/steps/room/NoRoomsFoundBlock.js +52 -52
- package/dist/src/components/steps/room/NoRoomsFoundBlock.js.map +1 -1
- package/dist/src/components/steps/room/RatesNotFound.js +39 -62
- package/dist/src/components/steps/room/RatesNotFound.js.map +1 -1
- package/dist/src/components/steps/room/RoomList.js +13 -36
- package/dist/src/components/steps/room/RoomList.js.map +1 -1
- package/dist/src/components/steps/room/RoomListAlert.d.ts +1 -1
- package/dist/src/components/steps/room/RoomListAlert.js +11 -34
- package/dist/src/components/steps/room/RoomListAlert.js.map +1 -1
- package/dist/src/components/steps/room/RoomListCrossSellBlock.d.ts +2 -1
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js +38 -38
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -1
- package/dist/src/components/steps/room/RoomModal.js +32 -32
- package/dist/src/components/steps/room/RoomModal.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js +9 -9
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomBestRateAlert.js +6 -6
- package/dist/src/components/steps/room/StepRoomBestRateAlert.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomErrorForm.js +34 -34
- package/dist/src/components/steps/room/StepRoomErrorForm.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomHotelDetails.js +18 -18
- package/dist/src/components/steps/room/StepRoomHotelDetails.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomNextStepButton.js +4 -4
- package/dist/src/components/steps/room/StepRoomNextStepButton.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomSortBy.js +6 -6
- package/dist/src/components/steps/room/StepRoomSortBy.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.js +15 -38
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.js.map +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js +2 -25
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js.map +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js +2 -25
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js.map +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js +9 -9
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js.map +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +71 -69
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js +42 -39
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +18 -15
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js +6 -7
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js +16 -16
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js +37 -36
- package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js +8 -31
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +26 -26
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +43 -43
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +34 -34
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js +8 -8
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js +11 -11
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js +8 -10
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +32 -32
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js +16 -39
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js.map +1 -1
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js +10 -9
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js.map +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js +32 -31
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js.map +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js +20 -21
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js.map +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js +17 -17
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js.map +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js +20 -18
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js.map +1 -1
- package/dist/src/components/summary/BEMapWidget.d.ts +1 -1
- package/dist/src/components/summary/BEMapWidget.js +29 -27
- package/dist/src/components/summary/BEMapWidget.js.map +1 -1
- package/dist/src/components/summary/BEMobileSummary.js +22 -22
- package/dist/src/components/summary/BEMobileSummary.js.map +1 -1
- package/dist/src/components/summary/BEMobileSummaryModal.js +62 -60
- package/dist/src/components/summary/BEMobileSummaryModal.js.map +1 -1
- package/dist/src/components/summary/BESummary.js +42 -41
- package/dist/src/components/summary/BESummary.js.map +1 -1
- package/dist/src/components/summary/BESummaryAddonRow.js +22 -21
- package/dist/src/components/summary/BESummaryAddonRow.js.map +1 -1
- package/dist/src/components/summary/BESummaryPerkBlock.js +11 -11
- package/dist/src/components/summary/BESummaryPerkBlock.js.map +1 -1
- package/dist/src/components/summary/BESummaryPrivacyPolicy.js +11 -8
- package/dist/src/components/summary/BESummaryPrivacyPolicy.js.map +1 -1
- package/dist/src/components/summary/BESummaryRoomRow.js +57 -57
- package/dist/src/components/summary/BESummaryRoomRow.js.map +1 -1
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.js +12 -12
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.js.map +1 -1
- package/dist/src/components/temp/Login.js +29 -29
- package/dist/src/components/temp/Login.js.map +1 -1
- package/dist/src/containers/PrivateRoute.js +6 -26
- package/dist/src/containers/PrivateRoute.js.map +1 -1
- package/dist/src/contexts/BasketContext/BasketContext.js +1 -1
- package/dist/src/contexts/BasketContext/BasketContext.js.map +1 -1
- package/dist/src/contexts/BasketContext/BasketContextType.d.ts +4 -3
- package/dist/src/contexts/BasketContext/BasketContextType.js.map +1 -1
- package/dist/src/contexts/BasketContext/BasketContextWrapper.d.ts +1 -1
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js +73 -67
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js.map +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js.map +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.d.ts +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.js.map +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js +3 -4
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js.map +1 -1
- package/dist/src/contexts/CompanyContext/CompanyContext.js +1 -1
- package/dist/src/contexts/CompanyContext/CompanyContext.js.map +1 -1
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js +24 -47
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js.map +1 -1
- package/dist/src/contexts/ConfirmationFormContext.d.ts +2 -2
- package/dist/src/contexts/ConfirmationFormContext.js +8 -28
- package/dist/src/contexts/ConfirmationFormContext.js.map +1 -1
- package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js +11 -10
- package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js.map +1 -1
- package/dist/src/contexts/DatePickerContext.d.ts +12 -11
- package/dist/src/contexts/DatePickerContext.js +4 -41
- package/dist/src/contexts/DatePickerContext.js.map +1 -1
- package/dist/src/contexts/ErrorContext.d.ts +2 -2
- package/dist/src/contexts/ErrorContext.js +10 -10
- package/dist/src/contexts/ErrorContext.js.map +1 -1
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js +1 -1
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js.map +1 -1
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.d.ts +1 -1
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +43 -49
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js.map +1 -1
- package/dist/src/contexts/HotelOverridesContext.d.ts +1 -1
- package/dist/src/contexts/HotelOverridesContext.js +14 -37
- package/dist/src/contexts/HotelOverridesContext.js.map +1 -1
- package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.d.ts +7 -7
- package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.js +18 -6
- package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.js.map +1 -1
- package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.d.ts +1 -1
- package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js +38 -53
- package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js.map +1 -1
- package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.d.ts +1 -1
- package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js +29 -49
- package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js.map +1 -1
- package/dist/src/contexts/ModalContext.d.ts +1 -1
- package/dist/src/contexts/ModalContext.js +4 -5
- package/dist/src/contexts/ModalContext.js.map +1 -1
- package/dist/src/contexts/NotificationContext.d.ts +1 -1
- package/dist/src/contexts/NotificationContext.js +8 -31
- package/dist/src/contexts/NotificationContext.js.map +1 -1
- package/dist/src/engines/BaseEngine.js.map +1 -1
- package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js +4 -27
- package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js.map +1 -1
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +15 -35
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -1
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +67 -66
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -1
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js.map +1 -1
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +20 -20
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -1
- package/dist/src/events/RoomstayEvent.d.ts +0 -1
- package/dist/src/events/RoomstayEvent.js +0 -1
- package/dist/src/events/RoomstayEvent.js.map +1 -1
- package/dist/src/events/RoomstayEventManager.d.ts +2 -2
- package/dist/src/events/RoomstayEventManager.js +1 -1
- package/dist/src/events/RoomstayEventManager.js.map +1 -1
- package/dist/src/hooks/AutoFocusOnSelect.d.ts +1 -1
- package/dist/src/hooks/AutoFocusOnSelect.js.map +1 -1
- package/dist/src/hooks/BodyClickHook.d.ts +2 -4
- package/dist/src/hooks/BodyClickHook.js +3 -3
- package/dist/src/hooks/BodyClickHook.js.map +1 -1
- package/dist/src/hooks/CombineState.d.ts +1 -1
- package/dist/src/hooks/CombineState.js.map +1 -1
- package/dist/src/hooks/ConfirmationQuery.d.ts +3 -3
- package/dist/src/hooks/CurrentHotelHook.d.ts +1 -1
- package/dist/src/hooks/ElementSortHook.d.ts +1 -1
- package/dist/src/hooks/ElementSortHook.js +7 -27
- package/dist/src/hooks/ElementSortHook.js.map +1 -1
- package/dist/src/hooks/EventHook.d.ts +1 -1
- package/dist/src/hooks/EventHook.js.map +1 -1
- package/dist/src/hooks/KeyboardControlOnSelect.d.ts +3 -3
- package/dist/src/hooks/LoggedInUserHook.d.ts +6 -6
- package/dist/src/hooks/LoggedInUserHook.js.map +1 -1
- package/dist/src/hooks/Query.js +5 -25
- package/dist/src/hooks/Query.js.map +1 -1
- package/dist/src/hooks/VGSHooks.d.ts +4 -4
- package/dist/src/hooks/VGSHooks.js +16 -11
- package/dist/src/hooks/VGSHooks.js.map +1 -1
- package/dist/src/icons/Check.js +7 -27
- package/dist/src/icons/Check.js.map +1 -1
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.js +5 -18
- package/dist/src/index.js.map +1 -1
- package/dist/src/mockApi/AddonAPI.js +2 -1
- package/dist/src/mockApi/AddonAPI.js.map +1 -1
- package/dist/src/mockApi/MockAPI.d.ts +1 -1
- package/dist/src/mockApi/ReservationAPI.d.ts +1 -1
- package/dist/src/mockApi/ReservationAPI.js +2 -1
- package/dist/src/mockApi/ReservationAPI.js.map +1 -1
- package/dist/src/models/Addon/Addon.d.ts +1 -0
- package/dist/src/models/Addon/Addon.js +11 -2
- package/dist/src/models/Addon/Addon.js.map +1 -1
- package/dist/src/models/BasketAddonRow.d.ts +2 -2
- package/dist/src/models/BasketAddonRow.js +27 -20
- package/dist/src/models/BasketAddonRow.js.map +1 -1
- package/dist/src/models/BasketRow.d.ts +6 -6
- package/dist/src/models/BasketRow.js +3 -2
- package/dist/src/models/BasketRow.js.map +1 -1
- package/dist/src/models/BookingWizard/BookingWizardProperty.d.ts +1 -1
- package/dist/src/models/BookingWizard/BookingWizardProperty.js.map +1 -1
- package/dist/src/models/Client/Client.js.map +1 -1
- package/dist/src/models/Currency.d.ts +1 -1
- package/dist/src/models/Currency.js.map +1 -1
- package/dist/src/models/Room/Filters/BudgetFilter.d.ts +1 -1
- package/dist/src/models/Room/Filters/RoomTypeFilter.d.ts +1 -1
- package/dist/src/models/Room/Filters/RoomTypeFilter.js.map +1 -1
- package/dist/src/models/Room/Room.d.ts +10 -10
- package/dist/src/models/Room/Room.js +10 -8
- package/dist/src/models/Room/Room.js.map +1 -1
- package/dist/src/models/Room/RoomRate.d.ts +1 -1
- package/dist/src/models/Room/RoomRate.js +1 -1
- package/dist/src/models/Room/RoomRate.js.map +1 -1
- package/dist/src/models/Room/RoomRateNight.js.map +1 -1
- package/dist/src/models/RoomstaySession.d.ts +2 -2
- package/dist/src/models/RoomstaySession.js.map +1 -1
- package/dist/src/pages/account/AccountHome/AccountHomePage.js +31 -31
- package/dist/src/pages/account/AccountHome/AccountHomePage.js.map +1 -1
- package/dist/src/pages/account/AccountOutlet.d.ts +1 -1
- package/dist/src/pages/account/AccountOutlet.js +5 -25
- package/dist/src/pages/account/AccountOutlet.js.map +1 -1
- package/dist/src/pages/account/AccountRouter.js +12 -37
- package/dist/src/pages/account/AccountRouter.js.map +1 -1
- package/dist/src/pages/account/Details/AccountDetailsCardsPage.js +24 -28
- package/dist/src/pages/account/Details/AccountDetailsCardsPage.js.map +1 -1
- package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js +8 -8
- package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js.map +1 -1
- package/dist/src/pages/account/Details/AccountDetailsProfilePage.js +41 -42
- package/dist/src/pages/account/Details/AccountDetailsProfilePage.js.map +1 -1
- package/dist/src/pages/account/Help/AccountHelpPage.js +42 -44
- package/dist/src/pages/account/Help/AccountHelpPage.js.map +1 -1
- package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js +78 -82
- package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js.map +1 -1
- package/dist/src/pages/account/Reservations/AccountReservationsPage.js +17 -40
- package/dist/src/pages/account/Reservations/AccountReservationsPage.js.map +1 -1
- package/dist/src/pages/findReservation/FindReservation.js +81 -76
- package/dist/src/pages/findReservation/FindReservation.js.map +1 -1
- package/dist/src/pages/findReservation/FindReservationResults.js +33 -33
- package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -1
- package/dist/src/pages/findReservation/ReservationRow.js +66 -65
- package/dist/src/pages/findReservation/ReservationRow.js.map +1 -1
- package/dist/src/pages/findReservation/ReservationRowModal.js +52 -52
- package/dist/src/pages/findReservation/ReservationRowModal.js.map +1 -1
- package/dist/src/pages/hotel/HotelInfo.js +88 -88
- package/dist/src/pages/hotel/HotelInfo.js.map +1 -1
- package/dist/src/pages/hotel/HotelInfoPlaceholder.js +4 -27
- package/dist/src/pages/hotel/HotelInfoPlaceholder.js.map +1 -1
- package/dist/src/pages/steps/Step.d.ts +2 -2
- package/dist/src/pages/steps/Step.js.map +1 -1
- package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +1 -1
- package/dist/src/pages/steps/StepAddon/StepAddon.js.map +1 -1
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.js +14 -14
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.js.map +1 -1
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.js +51 -50
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.js.map +1 -1
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.d.ts +1 -1
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js.map +1 -1
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js +24 -24
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js.map +1 -1
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js +71 -71
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js.map +1 -1
- package/dist/src/pages/steps/StepDate/StepDate.d.ts +14 -0
- package/dist/src/pages/steps/StepDate/StepDate.js.map +1 -1
- package/dist/src/pages/steps/StepDate/StepDateComponent.d.ts +2 -0
- package/dist/src/pages/steps/StepDate/StepDateComponent.js +46 -48
- package/dist/src/pages/steps/StepDate/StepDateComponent.js.map +1 -1
- package/dist/src/pages/steps/StepGuide.d.ts +1 -1
- package/dist/src/pages/steps/StepGuide.js +3 -26
- package/dist/src/pages/steps/StepGuide.js.map +1 -1
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.js +21 -21
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.js.map +1 -1
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.js +43 -43
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.js.map +1 -1
- package/dist/src/pages/steps/StepRoom/StepRoom.d.ts +1 -1
- package/dist/src/pages/steps/StepRoom/StepRoom.js.map +1 -1
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +34 -34
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.js.map +1 -1
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.js +73 -73
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.js.map +1 -1
- package/dist/src/pages/steps/StepThanks/StepThanks.d.ts +1 -1
- package/dist/src/pages/steps/StepThanks/StepThanks.js.map +1 -1
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +28 -29
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.js.map +1 -1
- package/dist/src/providers/CurrencyProvider.d.ts +1 -1
- package/dist/src/providers/DIProvider.js +5 -25
- package/dist/src/providers/DIProvider.js.map +1 -1
- package/dist/src/providers/FeatureProvider.js +2 -0
- package/dist/src/providers/FeatureProvider.js.map +1 -1
- package/dist/src/providers/FilterProvider.d.ts +1 -1
- package/dist/src/providers/FilterProvider.js +3 -2
- package/dist/src/providers/FilterProvider.js.map +1 -1
- package/dist/src/providers/LanguageProvider.d.ts +1 -1
- package/dist/src/providers/LanguageProvider.js.map +1 -1
- package/dist/src/providers/PromotionProvider.d.ts +1 -1
- package/dist/src/providers/PromotionProvider.js +1 -1
- package/dist/src/providers/PromotionProvider.js.map +1 -1
- package/dist/src/providers/RoomstayThemeEngine.d.ts +2 -2
- package/dist/src/providers/RoomstayThemeEngine.js +5 -7
- package/dist/src/providers/RoomstayThemeEngine.js.map +1 -1
- package/dist/src/providers/SessionProvider.js +4 -4
- package/dist/src/providers/SessionProvider.js.map +1 -1
- package/dist/src/providers/feature/Feature.d.ts +1 -1
- package/dist/src/providers/feature/Feature.js +3 -0
- package/dist/src/providers/feature/Feature.js.map +1 -1
- package/dist/src/providers/feature/FullPageEngineSmallSpacingFeature.d.ts +6 -0
- package/dist/src/providers/feature/FullPageEngineSmallSpacingFeature.js +10 -0
- package/dist/src/providers/feature/FullPageEngineSmallSpacingFeature.js.map +1 -0
- package/dist/src/providers/feature/InlineAddonStepFeature.js.map +1 -1
- package/dist/src/providers/feature/MemberPortalFeature.d.ts +0 -1
- package/dist/src/providers/feature/MemberPortalFeature.js +0 -1
- package/dist/src/providers/feature/MemberPortalFeature.js.map +1 -1
- package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.d.ts +0 -1
- package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.js +0 -1
- package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.js.map +1 -1
- package/dist/src/providers/storage/LocalStorageProvider.d.ts +2 -2
- package/dist/src/providers/storage/LocalStorageProvider.js.map +1 -1
- package/dist/src/reducers/BasketReducer.d.ts +2 -1
- package/dist/src/reducers/BasketReducer.js +10 -2
- package/dist/src/reducers/BasketReducer.js.map +1 -1
- package/dist/src/routes/NaturallyProgressedStepRoute.js +6 -29
- package/dist/src/routes/NaturallyProgressedStepRoute.js.map +1 -1
- package/dist/src/stories/Alert.stories.d.ts +2 -2
- package/dist/src/stories/Alert.stories.js +2 -25
- package/dist/src/stories/Alert.stories.js.map +1 -1
- package/dist/src/stories/BEButton.stories.d.ts +2 -2
- package/dist/src/stories/BEButton.stories.js +2 -25
- package/dist/src/stories/BEButton.stories.js.map +1 -1
- package/dist/src/stories/BackButton.stories.d.ts +2 -2
- package/dist/src/stories/BackButton.stories.js +2 -25
- package/dist/src/stories/BackButton.stories.js.map +1 -1
- package/dist/src/stories/BookNowPayLaterInfoBlock.stories.d.ts +2 -2
- package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js +4 -24
- package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js.map +1 -1
- package/dist/src/stories/BookingWizard.stories.d.ts +5 -5
- package/dist/src/stories/BookingWizard.stories.js +25 -9
- package/dist/src/stories/BookingWizard.stories.js.map +1 -1
- package/dist/src/stories/Card.stories.d.ts +6 -3
- package/dist/src/stories/CardTypeSelect.stories.d.ts +3 -3
- package/dist/src/stories/CardTypeSelect.stories.js +4 -24
- package/dist/src/stories/CardTypeSelect.stories.js.map +1 -1
- package/dist/src/stories/Checkbox.stories.d.ts +3 -3
- package/dist/src/stories/Checkbox.stories.js +2 -25
- package/dist/src/stories/Checkbox.stories.js.map +1 -1
- package/dist/src/stories/ConfirmationModal.stories.js +6 -29
- package/dist/src/stories/ConfirmationModal.stories.js.map +1 -1
- package/dist/src/stories/Countdown.stories.d.ts +2 -2
- package/dist/src/stories/Countdown.stories.js +4 -27
- package/dist/src/stories/Countdown.stories.js.map +1 -1
- package/dist/src/stories/Currency.stories.d.ts +2 -2
- package/dist/src/stories/Currency.stories.js +2 -25
- package/dist/src/stories/Currency.stories.js.map +1 -1
- package/dist/src/stories/DateRangePicker.stories.js +25 -15
- package/dist/src/stories/DateRangePicker.stories.js.map +1 -1
- package/dist/src/stories/Distance.stories.d.ts +2 -2
- package/dist/src/stories/Distance.stories.js +2 -25
- package/dist/src/stories/Distance.stories.js.map +1 -1
- package/dist/src/stories/EnhancedPhoneNumberField.stories.d.ts +5 -0
- package/dist/src/stories/EnhancedPhoneNumberField.stories.js +2 -25
- package/dist/src/stories/EnhancedPhoneNumberField.stories.js.map +1 -1
- package/dist/src/stories/ErrorModal.stories.js +7 -30
- package/dist/src/stories/ErrorModal.stories.js.map +1 -1
- package/dist/src/stories/FloatingDateRangePicker.stories.d.ts +1 -1
- package/dist/src/stories/FloatingDateRangePicker.stories.js +15 -38
- package/dist/src/stories/FloatingDateRangePicker.stories.js.map +1 -1
- package/dist/src/stories/ForwardedSelect.stories.d.ts +3 -3
- package/dist/src/stories/ForwardedSelect.stories.js +4 -27
- package/dist/src/stories/ForwardedSelect.stories.js.map +1 -1
- package/dist/src/stories/Headline.stories.d.ts +2 -2
- package/dist/src/stories/Headline.stories.js +2 -25
- package/dist/src/stories/Headline.stories.js.map +1 -1
- package/dist/src/stories/Icon.stories.d.ts +2 -2
- package/dist/src/stories/Icon.stories.js +5 -2
- package/dist/src/stories/Icon.stories.js.map +1 -1
- package/dist/src/stories/IconNavCard.stories.d.ts +18 -8
- package/dist/src/stories/IconNavCard.stories.js +5 -25
- package/dist/src/stories/IconNavCard.stories.js.map +1 -1
- package/dist/src/stories/IconText.stories.d.ts +5 -0
- package/dist/src/stories/IconText.stories.js +4 -6
- package/dist/src/stories/IconText.stories.js.map +1 -1
- package/dist/src/stories/ImageLoader.stories.d.ts +2 -2
- package/dist/src/stories/ImageLoader.stories.js +2 -25
- package/dist/src/stories/ImageLoader.stories.js.map +1 -1
- package/dist/src/stories/InputGroup.stories.d.ts +2 -2
- package/dist/src/stories/InputGroup.stories.js +3 -26
- package/dist/src/stories/InputGroup.stories.js.map +1 -1
- package/dist/src/stories/LargeLoader.stories.d.ts +2 -2
- package/dist/src/stories/LargeLoader.stories.js +2 -25
- package/dist/src/stories/LargeLoader.stories.js.map +1 -1
- package/dist/src/stories/LineBreak.stories.d.ts +2 -2
- package/dist/src/stories/LineBreak.stories.js +2 -25
- package/dist/src/stories/LineBreak.stories.js.map +1 -1
- package/dist/src/stories/Notification.stories.d.ts +2 -2
- package/dist/src/stories/Notification.stories.js +2 -25
- package/dist/src/stories/Notification.stories.js.map +1 -1
- package/dist/src/stories/NumberIncrement.stories.js +6 -28
- package/dist/src/stories/NumberIncrement.stories.js.map +1 -1
- package/dist/src/stories/PasswordBox.stories.d.ts +3 -3
- package/dist/src/stories/PasswordBox.stories.js +4 -24
- package/dist/src/stories/PasswordBox.stories.js.map +1 -1
- package/dist/src/stories/PaymentCard.stories.d.ts +2 -2
- package/dist/src/stories/PaymentCard.stories.js +4 -24
- package/dist/src/stories/PaymentCard.stories.js.map +1 -1
- package/dist/src/stories/PaymentCardInput.stories.d.ts +4 -4
- package/dist/src/stories/PaymentCardInput.stories.js +13 -25
- package/dist/src/stories/PaymentCardInput.stories.js.map +1 -1
- package/dist/src/stories/Pill.stories.d.ts +2 -2
- package/dist/src/stories/Pill.stories.js +2 -25
- package/dist/src/stories/Pill.stories.js.map +1 -1
- package/dist/src/stories/Placeholder.stories.d.ts +2 -2
- package/dist/src/stories/Placeholder.stories.js +2 -25
- package/dist/src/stories/Placeholder.stories.js.map +1 -1
- package/dist/src/stories/PlanpayButton.stories.d.ts +3 -3
- package/dist/src/stories/PlanpayButton.stories.js +4 -24
- package/dist/src/stories/PlanpayButton.stories.js.map +1 -1
- package/dist/src/stories/PromoCodeInput.stories.d.ts +2 -2
- package/dist/src/stories/PromoCodeInput.stories.js +2 -25
- package/dist/src/stories/PromoCodeInput.stories.js.map +1 -1
- package/dist/src/stories/RadioButton.stories.d.ts +4 -4
- package/dist/src/stories/RadioButton.stories.js +4 -24
- package/dist/src/stories/RadioButton.stories.js.map +1 -1
- package/dist/src/stories/RadioButtonGroup.stories.d.ts +2 -2
- package/dist/src/stories/RadioButtonGroup.stories.js +4 -27
- package/dist/src/stories/RadioButtonGroup.stories.js.map +1 -1
- package/dist/src/stories/RadioFields.stories.d.ts +2 -2
- package/dist/src/stories/RadioFields.stories.js +2 -25
- package/dist/src/stories/RadioFields.stories.js.map +1 -1
- package/dist/src/stories/SSLSecureBadge.stories.d.ts +2 -2
- package/dist/src/stories/SSLSecureBadge.stories.js +1 -1
- package/dist/src/stories/SSLSecureBadge.stories.js.map +1 -1
- package/dist/src/stories/Select.stories.d.ts +14 -14
- package/dist/src/stories/Select.stories.js +18 -38
- package/dist/src/stories/Select.stories.js.map +1 -1
- package/dist/src/stories/SimpleModal.stories.js +11 -33
- package/dist/src/stories/SimpleModal.stories.js.map +1 -1
- package/dist/src/stories/Slider.stories.d.ts +4 -4
- package/dist/src/stories/Slider.stories.js +6 -26
- package/dist/src/stories/Slider.stories.js.map +1 -1
- package/dist/src/stories/SmallSpinner.stories.d.ts +2 -2
- package/dist/src/stories/SmallSpinner.stories.js +2 -25
- package/dist/src/stories/SmallSpinner.stories.js.map +1 -1
- package/dist/src/stories/TabbedModal.stories.js +6 -29
- package/dist/src/stories/TabbedModal.stories.js.map +1 -1
- package/dist/src/stories/Tabs.stories.d.ts +1 -1
- package/dist/src/stories/Tabs.stories.js +7 -30
- package/dist/src/stories/Tabs.stories.js.map +1 -1
- package/dist/src/stories/Text.stories.d.ts +2 -2
- package/dist/src/stories/Text.stories.js +2 -25
- package/dist/src/stories/Text.stories.js.map +1 -1
- package/dist/src/stories/TextArea.stories.d.ts +3 -3
- package/dist/src/stories/TextArea.stories.js +2 -25
- package/dist/src/stories/TextArea.stories.js.map +1 -1
- package/dist/src/stories/TextBox.stories.d.ts +3 -3
- package/dist/src/stories/TextBox.stories.js +2 -25
- package/dist/src/stories/TextBox.stories.js.map +1 -1
- package/dist/src/stories/Tooltip.stories.d.ts +2 -2
- package/dist/src/stories/Tooltip.stories.js +2 -25
- package/dist/src/stories/Tooltip.stories.js.map +1 -1
- package/dist/src/translations/Translation.d.ts +4 -0
- package/dist/src/translations/Translation.js +4 -0
- package/dist/src/translations/Translation.js.map +1 -1
- package/dist/src/translations/languages/en-gb.js +4 -0
- package/dist/src/translations/languages/en-gb.js.map +1 -1
- package/dist/src/util/AsyncAuth.d.ts +5 -0
- package/dist/src/util/AsyncAuth.js +44 -0
- package/dist/src/util/AsyncAuth.js.map +1 -0
- package/dist/src/util/DataLayer.js +3 -3
- package/dist/src/util/DataLayer.js.map +1 -1
- package/dist/src/util/EnumHelper.d.ts +1 -1
- package/dist/src/util/EnumHelper.js +1 -1
- package/dist/src/util/EnumHelper.js.map +1 -1
- package/dist/src/util/ObjectHelper.d.ts +1 -1
- package/dist/src/util/PaymentCardHelper.js +2 -1
- package/dist/src/util/PaymentCardHelper.js.map +1 -1
- package/dist/src/util/StepManager.d.ts +1 -1
- package/dist/src/util/TotalCalculator.js +7 -1
- package/dist/src/util/TotalCalculator.js.map +1 -1
- package/dist/src/util/Validation.d.ts +0 -1
- package/dist/src/util/Validation.js +3 -4
- package/dist/src/util/Validation.js.map +1 -1
- package/dist/test.bundle.js +1 -1
- package/dist/vendors.bundle.js +1 -1
- package/dist/vendors.bundle.js.LICENSE.txt +0 -31
- package/package.json +11 -5
- package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.d.ts +0 -1
- package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js +0 -133
- package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js.map +0 -1
- package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.d.ts +0 -2
- package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js +0 -158
- package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js.map +0 -1
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.d.ts +0 -1
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.js +0 -39
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.js.map +0 -1
- package/dist/tests/jest/events/EventManager.test.d.ts +0 -1
- package/dist/tests/jest/events/EventManager.test.js +0 -101
- package/dist/tests/jest/events/EventManager.test.js.map +0 -1
- package/dist/tests/jest/helpers/ObjectHelper.test.d.ts +0 -1
- package/dist/tests/jest/helpers/ObjectHelper.test.js +0 -72
- package/dist/tests/jest/helpers/ObjectHelper.test.js.map +0 -1
- package/dist/tests/jest/models/RoomRate.test.d.ts +0 -1
- package/dist/tests/jest/models/RoomRate.test.js +0 -133
- package/dist/tests/jest/models/RoomRate.test.js.map +0 -1
- package/dist/tests/jest/providers/LanguageProvider.test.d.ts +0 -1
- package/dist/tests/jest/providers/LanguageProvider.test.js +0 -30
- package/dist/tests/jest/providers/LanguageProvider.test.js.map +0 -1
- package/dist/tests/jest/providers/SessionProvider.test.d.ts +0 -1
- package/dist/tests/jest/providers/SessionProvider.test.js +0 -228
- package/dist/tests/jest/providers/SessionProvider.test.js.map +0 -1
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.d.ts +0 -1
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.js +0 -126
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.js.map +0 -1
- package/dist/tests/jest/reducers/BasketReducer.test.d.ts +0 -1
- package/dist/tests/jest/reducers/BasketReducer.test.js +0 -102
- package/dist/tests/jest/reducers/BasketReducer.test.js.map +0 -1
- package/dist/tests/offline/RoomstayBestRateAlert.d.ts +0 -1
- package/dist/tests/offline/RoomstayBestRateAlert.js +0 -48
- package/dist/tests/offline/RoomstayBestRateAlert.js.map +0 -1
- package/dist/tests/offline/entry/ReactWrapper.d.ts +0 -1
- package/dist/tests/offline/entry/ReactWrapper.js +0 -159
- package/dist/tests/offline/entry/ReactWrapper.js.map +0 -1
- package/dist/tests/offline/entry/allEngines.d.ts +0 -1
- package/dist/tests/offline/entry/allEngines.js +0 -50
- package/dist/tests/offline/entry/allEngines.js.map +0 -1
- package/dist/tests/offline/entry/components/TestPicker.d.ts +0 -1
- package/dist/tests/offline/entry/components/TestPicker.js +0 -166
- package/dist/tests/offline/entry/components/TestPicker.js.map +0 -1
- package/dist/tests/setupTests.js +0 -11
- package/dist/tests/setupTests.js.map +0 -1
- /package/dist/{tests/setupTests.d.ts → src/components/generic/BESelect.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepRoomSortBy.js","sourceRoot":"/","sources":["src/components/steps/room/StepRoomSortBy.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"StepRoomSortBy.js","sourceRoot":"/","sources":["src/components/steps/room/StepRoomSortBy.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,iCAA6C;AAC7C,mEAAwD;AACxD,8DAA+E;AAC/E,iDAA0D;AAC1D,4DAAoC;AACpC,mEAA2C;AAC3C,+DAA4D;AAO5D,SAAwB,cAAc;IAClC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,+BAAoB,CAAC,CAAC;IACjD,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAU,CAAC,MAAM,CAAC;IACzD,MAAM,SAAS,GAAG,IAAA,kBAAU,EAAC,+BAAoB,CAAC,CAAC;IACnD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAChE,MAAM,eAAe,GAAG,CAAC,QAAkB,EAAE,EAAE;QAC3C,mBAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,aAAa,EAAE,2BAAe,CAAC,QAAQ,EAAE,2BAAe,CAAC,KAAK,CAAC,CAAC;QACnG,SAAS,CAAC,QAAQ,CAAC,CAAC;QACpB,SAAS,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC,CAAC;IACF,OAAO,CACH,8BAAC,eAAM,IACH,cAAc,QACd,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,2BAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC9C,OAAO;gBACH,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;aAClB,CAAC;QACN,CAAC,CAAC,EACF,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAC,OAAO,EACf,SAAS,EAAC,MAAM,EAChB,SAAS,EAAE,IAAA,oBAAU,EAAC,2BAA2B,EAAE;YAC/C,YAAY,EAAE,QAAQ;SACzB,CAAC,GACJ,CACL,CAAC;AACN,CAAC;AA5BD,iCA4BC","sourcesContent":["import React from 'react';\nimport { useContext, useState } from 'react';\nimport { RoomSort } from '@/providers/RoomSortProvider';\nimport DataLayer, { InteractionStep, InteractionType } from '@/util/DataLayer';\nimport { BookingEngineContext } from '@frontend/contexts';\nimport classNames from 'classnames';\nimport ScreenSize from '@/util/ScreenSize';\nimport { Select } from '@/components/generic/Select/Select';\n\ninterface ISortSelectOption {\n value: RoomSort;\n text: string;\n}\n\nexport default function StepRoomSortBy() {\n const context = useContext(BookingEngineContext);\n const isMobile = context.screenSize <= ScreenSize.Medium;\n const beContext = useContext(BookingEngineContext);\n const [sortBy, setSortBy] = useState(beContext.currentRoomSort);\n const onChangeHandler = (selected: RoomSort) => {\n DataLayer.instance.sendInteraction('Change Sort', InteractionType.DROPDOWN, InteractionStep.ROOMS);\n setSortBy(selected);\n beContext.setCurrentRoomSort(selected);\n };\n return (\n <Select<ISortSelectOption, 'value'>\n nativeOnMobile\n options={Object.values(RoomSort).map((sortName) => {\n return {\n text: sortName,\n value: sortName,\n };\n })}\n value={sortBy}\n onChange={onChangeHandler}\n keyName=\"value\"\n labelName=\"text\"\n className={classNames('u-flex align-items-center', {\n 'text-small': isMobile,\n })}\n />\n );\n}\n"]}
|
|
@@ -1,49 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
30
7
|
const StepRoomNextStepButton_1 = __importDefault(require("./StepRoomNextStepButton"));
|
|
31
8
|
const react_router_dom_1 = require("react-router-dom");
|
|
32
9
|
const ScreenSize_1 = __importDefault(require("../../../util/ScreenSize"));
|
|
33
|
-
const
|
|
10
|
+
const react_2 = require("react");
|
|
34
11
|
const BESummary_1 = require("../../summary/BESummary");
|
|
35
12
|
const react_use_measure_1 = __importDefault(require("react-use-measure"));
|
|
36
13
|
const contexts_1 = require("../../../contexts/index.js");
|
|
37
14
|
const BESummaryPrivacyPolicy_1 = __importDefault(require("../../summary/BESummaryPrivacyPolicy"));
|
|
38
15
|
const contexts_2 = require("../../../contexts/index.js");
|
|
39
16
|
function StepRoomSummaryAndButton() {
|
|
40
|
-
const context = (0,
|
|
41
|
-
const basketContext = (0,
|
|
42
|
-
const { currentStep } = (0,
|
|
17
|
+
const context = (0, react_2.useContext)(contexts_1.BookingEngineContext);
|
|
18
|
+
const basketContext = (0, react_2.useContext)(contexts_1.BasketContext);
|
|
19
|
+
const { currentStep } = (0, react_2.useContext)(contexts_2.FullPageEngineContext);
|
|
43
20
|
const history = (0, react_router_dom_1.useHistory)();
|
|
44
|
-
const [styles, setStyles] = (0,
|
|
21
|
+
const [styles, setStyles] = (0, react_2.useState)({ top: 0 });
|
|
45
22
|
const [measureBind, bounds] = (0, react_use_measure_1.default)();
|
|
46
|
-
(0,
|
|
23
|
+
(0, react_2.useEffect)(() => {
|
|
47
24
|
const screenHeight = window.innerHeight;
|
|
48
25
|
const { height } = bounds;
|
|
49
26
|
if (screenHeight < height) {
|
|
@@ -53,14 +30,14 @@ function StepRoomSummaryAndButton() {
|
|
|
53
30
|
setStyles({ top: 150 });
|
|
54
31
|
}
|
|
55
32
|
}, [bounds]);
|
|
56
|
-
return (0,
|
|
57
|
-
!!basketContext.getAllValidRows().length && (
|
|
58
|
-
|
|
59
|
-
context.screenSize > ScreenSize_1.default.Medium &&
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
context.screenSize > ScreenSize_1.default.Medium && (
|
|
63
|
-
|
|
33
|
+
return (0, react_2.useMemo)(() => (react_1.default.createElement("div", { ref: measureBind, style: Object.assign({ position: 'sticky' }, styles) },
|
|
34
|
+
!!basketContext.getAllValidRows().length && (react_1.default.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
35
|
+
react_1.default.createElement(StepRoomNextStepButton_1.default, { currentStep: currentStep, history: history }))),
|
|
36
|
+
context.screenSize > ScreenSize_1.default.Medium && react_1.default.createElement(BESummary_1.BESummary, null),
|
|
37
|
+
react_1.default.createElement("div", { className: "u-marg-top--heavy" },
|
|
38
|
+
react_1.default.createElement(StepRoomNextStepButton_1.default, { currentStep: currentStep, history: history })),
|
|
39
|
+
context.screenSize > ScreenSize_1.default.Medium && (react_1.default.createElement("div", { className: "u-marg-top--heavy" },
|
|
40
|
+
react_1.default.createElement(BESummaryPrivacyPolicy_1.default, null))))), [context.screenSize, styles.top]);
|
|
64
41
|
}
|
|
65
42
|
exports.default = StepRoomSummaryAndButton;
|
|
66
43
|
//# sourceMappingURL=StepRoomSummaryAndButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepRoomSummaryAndButton.js","sourceRoot":"/","sources":["src/components/steps/room/StepRoomSummaryAndButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepRoomSummaryAndButton.js","sourceRoot":"/","sources":["src/components/steps/room/StepRoomSummaryAndButton.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,4GAAoF;AACpF,uDAA8C;AAC9C,mEAA2C;AAC3C,iCAAiE;AACjE,8DAA2D;AAC3D,0EAA2C;AAC3C,iDAAyE;AACzE,yGAAiF;AACjF,iDAA2D;AAE3D,SAAwB,wBAAwB;IAC5C,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,+BAAoB,CAAC,CAAC;IACjD,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAEhD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAU,EAAC,gCAAqB,CAAC,CAAC;IAE1D,MAAM,OAAO,GAAG,IAAA,6BAAU,GAAE,CAAC;IAE7B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAkB,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAClE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,IAAA,2BAAU,GAAE,CAAC;IAE3C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC;QAExC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAE1B,IAAI,YAAY,GAAG,MAAM,EAAE;YACvB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,GAAG,YAAY,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;SACrD;aAAM;YACH,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;SAC3B;IACL,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,IAAA,eAAO,EACV,GAAG,EAAE,CAAC,CACF,uCAAK,GAAG,EAAE,WAAW,EAAE,KAAK,kBAAI,QAAQ,EAAE,QAAQ,IAAK,MAAM;QACxD,CAAC,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC,MAAM,IAAI,CACzC,uCAAK,SAAS,EAAC,sBAAsB;YACjC,8BAAC,gCAAsB,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,CACpE,CACT;QACA,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,MAAM,IAAI,8BAAC,qBAAS,OAAG;QACxD,uCAAK,SAAS,EAAC,mBAAmB;YAC9B,8BAAC,gCAAsB,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,CACpE;QACL,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,MAAM,IAAI,CACvC,uCAAK,SAAS,EAAC,mBAAmB;YAC9B,8BAAC,gCAAsB,OAAG,CACxB,CACT,CACC,CACT,EACD,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,CACnC,CAAC;AACN,CAAC;AA5CD,2CA4CC","sourcesContent":["import React from 'react';\nimport StepRoomNextStepButton from '@/components/steps/room/StepRoomNextStepButton';\nimport { useHistory } from 'react-router-dom';\nimport ScreenSize from '@/util/ScreenSize';\nimport { useContext, useState, useEffect, useMemo } from 'react';\nimport { BESummary } from '@/components/summary/BESummary';\nimport useMeasure from 'react-use-measure';\nimport { BasketContext, BookingEngineContext } from '@frontend/contexts';\nimport BESummaryPrivacyPolicy from '@/components/summary/BESummaryPrivacyPolicy';\nimport { FullPageEngineContext } from '@frontend/contexts';\n\nexport default function StepRoomSummaryAndButton() {\n const context = useContext(BookingEngineContext);\n const basketContext = useContext(BasketContext);\n\n const { currentStep } = useContext(FullPageEngineContext);\n\n const history = useHistory();\n\n const [styles, setStyles] = useState<{ top: number }>({ top: 0 });\n const [measureBind, bounds] = useMeasure();\n\n useEffect(() => {\n const screenHeight = window.innerHeight;\n\n const { height } = bounds;\n\n if (screenHeight < height) {\n setStyles({ top: -(height - screenHeight + 40) });\n } else {\n setStyles({ top: 150 });\n }\n }, [bounds]);\n\n return useMemo(\n () => (\n <div ref={measureBind} style={{ position: 'sticky', ...styles }}>\n {!!basketContext.getAllValidRows().length && (\n <div className=\"u-marg-bottom--heavy\">\n <StepRoomNextStepButton currentStep={currentStep} history={history} />\n </div>\n )}\n {context.screenSize > ScreenSize.Medium && <BESummary />}\n <div className=\"u-marg-top--heavy\">\n <StepRoomNextStepButton currentStep={currentStep} history={history} />\n </div>\n {context.screenSize > ScreenSize.Medium && (\n <div className=\"u-marg-top--heavy\">\n <BESummaryPrivacyPolicy />\n </div>\n )}\n </div>\n ),\n [context.screenSize, styles.top]\n );\n}\n"]}
|
|
@@ -1,32 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
30
7
|
const react_i18next_1 = require("react-i18next");
|
|
31
8
|
const hooks_1 = require("../../../../hooks/index.js");
|
|
32
9
|
const Translation_1 = require("translations/Translation");
|
|
@@ -42,7 +19,7 @@ function NumberOfAdultsPicker(props) {
|
|
|
42
19
|
if (maxOccupancy < 1 || isNaN(maxOccupancy)) {
|
|
43
20
|
maxOccupancy = 1;
|
|
44
21
|
}
|
|
45
|
-
return (
|
|
22
|
+
return (react_1.default.createElement(Select_1.Select, { nativeOnMobile: true, options: [...Array(maxOccupancy)].map((v, value) => {
|
|
46
23
|
value += 1;
|
|
47
24
|
return {
|
|
48
25
|
text: StringHelper_1.default.pluralWithDictAndCount(value, Translation_1.Translation.Step.Date.Adult, t),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberOfAdultsPicker.js","sourceRoot":"/","sources":["src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberOfAdultsPicker.js","sourceRoot":"/","sources":["src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,iDAA+C;AAE/C,2CAAkD;AAElD,0DAAuD;AACvD,uEAA+C;AAC/C,+DAAkF;AAOlF,SAAwB,oBAAoB,CAAC,KAAgC;;IACzE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,uBAAe,GAAE,CAAC;IAEpC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,aAAa,GAAG,MAAA,MAAA,KAAK,CAAC,GAAG,0CAAE,SAAS,EAAE,mCAAI,CAAC,CAAC;IAClD,IAAI,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAuB,KAAG,MAAA,KAAK,CAAC,GAAG,0CAAE,WAAW,EAAE,CAAA,EAAE,aAAa,CAAC,CAAC;IACvG,eAAe;IACf,IAAI,YAAY,GAAG,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,EAAE;QACzC,YAAY,GAAG,CAAC,CAAC;KACpB;IAED,OAAO,CACH,8BAAC,eAAM,IACH,cAAc,QACd,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,KAAa,EAAE,EAAE;YAC5D,KAAK,IAAI,CAAC,CAAC;YACX,OAAO;gBACH,IAAI,EAAE,sBAAY,CAAC,sBAAsB,CAAC,KAAK,EAAE,yBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;gBAChF,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;aAC1B,CAAC;QACN,CAAC,CAAC,EACF,KAAK,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,EAAE,EAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,OAAO,EAAC,OAAO,EACf,SAAS,EAAC,MAAM,GAClB,CACL,CAAC;AACN,CAAC;AA5BD,uCA4BC","sourcesContent":["import React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { useCurrentHotel } from '@frontend/hooks';\nimport BasketRow from '@/models/BasketRow';\nimport { Translation } from 'translations/Translation';\nimport StringHelper from '@/util/StringHelper';\nimport { IDefaultSelectOption, Select } from '@/components/generic/Select/Select';\n\ninterface NumberOfAdultsPickerProps {\n row: BasketRow;\n onChange: (value: string) => void;\n}\n\nexport default function NumberOfAdultsPicker(props: NumberOfAdultsPickerProps) {\n const { hotel } = useCurrentHotel();\n\n const { t } = useTranslation();\n\n const selectedValue = props.row?.getAdults() ?? 1;\n let maxOccupancy = Math.max((hotel?.maxOccupancy as number) - props.row?.getChildren(), selectedValue);\n // Just in Case\n if (maxOccupancy < 1 || isNaN(maxOccupancy)) {\n maxOccupancy = 1;\n }\n\n return (\n <Select<IDefaultSelectOption, 'value'>\n nativeOnMobile\n options={[...Array(maxOccupancy)].map((v: any, value: number) => {\n value += 1;\n return {\n text: StringHelper.pluralWithDictAndCount(value, Translation.Step.Date.Adult, t),\n value: value.toString(),\n };\n })}\n value={selectedValue?.toString()}\n onChange={props.onChange}\n keyName=\"value\"\n labelName=\"text\"\n />\n );\n}\n"]}
|
|
@@ -1,32 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
30
7
|
const react_i18next_1 = require("react-i18next");
|
|
31
8
|
const hooks_1 = require("../../../../hooks/index.js");
|
|
32
9
|
const Translation_1 = require("translations/Translation");
|
|
@@ -42,7 +19,7 @@ function NumberOfChildrenPicker(props) {
|
|
|
42
19
|
if (maxOccupancy < 1 || isNaN(maxOccupancy)) {
|
|
43
20
|
maxOccupancy = 1;
|
|
44
21
|
}
|
|
45
|
-
return (
|
|
22
|
+
return (react_1.default.createElement(Select_1.Select, { nativeOnMobile: true, options: [...Array(maxOccupancy)].map((v, value) => {
|
|
46
23
|
return {
|
|
47
24
|
text: StringHelper_1.default.pluralWithDictAndCount(value, Translation_1.Translation.Step.Date.Child, t),
|
|
48
25
|
value: value.toString(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberOfChildrenPicker.js","sourceRoot":"/","sources":["src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberOfChildrenPicker.js","sourceRoot":"/","sources":["src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,iDAA+C;AAE/C,2CAAkD;AAElD,0DAAuD;AACvD,uEAA+C;AAC/C,+DAAkF;AAOlF,SAAwB,sBAAsB,CAAC,KAAkC;;IAC7E,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,uBAAe,GAAE,CAAC;IAEpC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,aAAa,GAAG,MAAA,MAAA,KAAK,CAAC,GAAG,0CAAE,WAAW,EAAE,mCAAI,CAAC,CAAC;IACpD,IAAI,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAuB,IAAG,CAAC,IAAG,MAAA,KAAK,CAAC,GAAG,0CAAE,SAAS,EAAE,CAAA,CAAC,CAAC;IAC1F,eAAe;IACf,IAAI,YAAY,GAAG,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,EAAE;QACzC,YAAY,GAAG,CAAC,CAAC;KACpB;IAED,OAAO,CACH,8BAAC,eAAM,IACH,cAAc,QACd,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,KAAa,EAAE,EAAE;YAC5D,OAAO;gBACH,IAAI,EAAE,sBAAY,CAAC,sBAAsB,CAAC,KAAK,EAAE,yBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;gBAChF,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;aAC1B,CAAC;QACN,CAAC,CAAC,EACF,KAAK,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,EAAE,EAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,OAAO,EAAC,OAAO,EACf,SAAS,EAAC,MAAM,GAClB,CACL,CAAC;AACN,CAAC;AA3BD,yCA2BC","sourcesContent":["import React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { useCurrentHotel } from '@frontend/hooks';\nimport BasketRow from '@/models/BasketRow';\nimport { Translation } from 'translations/Translation';\nimport StringHelper from '@/util/StringHelper';\nimport { IDefaultSelectOption, Select } from '@/components/generic/Select/Select';\n\ninterface NumberOfChildrenPickerProps {\n row: BasketRow;\n onChange: (value: string) => void;\n}\n\nexport default function NumberOfChildrenPicker(props: NumberOfChildrenPickerProps) {\n const { hotel } = useCurrentHotel();\n\n const { t } = useTranslation();\n\n const selectedValue = props.row?.getChildren() ?? 1;\n let maxOccupancy = Math.max((hotel?.maxOccupancy as number) + 1 - props.row?.getAdults());\n // Just in Case\n if (maxOccupancy < 1 || isNaN(maxOccupancy)) {\n maxOccupancy = 1;\n }\n\n return (\n <Select<IDefaultSelectOption, 'value'>\n nativeOnMobile\n options={[...Array(maxOccupancy)].map((v: any, value: number) => {\n return {\n text: StringHelper.pluralWithDictAndCount(value, Translation.Step.Date.Child, t),\n value: value.toString(),\n };\n })}\n value={selectedValue?.toString()}\n onChange={props.onChange}\n keyName=\"value\"\n labelName=\"text\"\n />\n );\n}\n"]}
|
|
@@ -26,8 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
30
|
-
const
|
|
29
|
+
const react_1 = __importDefault(require("react"));
|
|
30
|
+
const react_2 = require("react");
|
|
31
31
|
const BasketRow_1 = __importDefault(require("../../../../models/BasketRow"));
|
|
32
32
|
const RoomBuilderProgressRow_1 = __importDefault(require("./RoomBuilderProgressRow"));
|
|
33
33
|
const BEButton_1 = __importDefault(require("../../../generic/BEButton"));
|
|
@@ -37,21 +37,21 @@ const react_i18next_1 = require("react-i18next");
|
|
|
37
37
|
const Translation_1 = require("translations/Translation");
|
|
38
38
|
const DataLayer_1 = __importStar(require("../../../../util/DataLayer"));
|
|
39
39
|
function RoomBuilderProgress() {
|
|
40
|
-
const { currentBasketRows, addBasketRow, selectedBasketRow } = (0,
|
|
40
|
+
const { currentBasketRows, addBasketRow, selectedBasketRow } = (0, react_2.useContext)(contexts_1.BasketContext);
|
|
41
41
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
42
42
|
const addRoomRowOnClick = () => {
|
|
43
43
|
DataLayer_1.default.instance.sendInteraction('Add Room Row', DataLayer_1.InteractionType.BUTTON, DataLayer_1.InteractionStep.ROOMS);
|
|
44
44
|
addBasketRow(new BasketRow_1.default());
|
|
45
45
|
};
|
|
46
|
-
return (0,
|
|
47
|
-
|
|
46
|
+
return (0, react_2.useMemo)(() => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
47
|
+
react_1.default.createElement("div", { className: "room-builder-progress" },
|
|
48
48
|
!!currentBasketRows.length &&
|
|
49
49
|
currentBasketRows.map((row, index) => {
|
|
50
|
-
return
|
|
50
|
+
return react_1.default.createElement(RoomBuilderProgressRow_1.default, { row: row, key: row.getID(), number: index });
|
|
51
51
|
}),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
react_1.default.createElement("div", { className: "u-flex justify-content-end" },
|
|
53
|
+
react_1.default.createElement(BEButton_1.default, { icon: Icon_1.IconType.Add, onClick: addRoomRowOnClick, stopIconAnimation: true }, t(Translation_1.Translation.Step.Room.RoomInfo.AddRoom)))),
|
|
54
|
+
react_1.default.createElement("script", { type: "application/ld+json" }, JSON.stringify({
|
|
55
55
|
'@context': 'https://structured-data.triptease.io',
|
|
56
56
|
'@type': 'LodgingSearch',
|
|
57
57
|
checkinTime: selectedBasketRow === null || selectedBasketRow === void 0 ? void 0 : selectedBasketRow.getStartDate().format('YYYY-M-D'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomBuilderProgress.js","sourceRoot":"/","sources":["src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RoomBuilderProgress.js","sourceRoot":"/","sources":["src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,iCAA4C;AAC5C,mEAA2C;AAC3C,gIAAwG;AACxG,6EAAqD;AACrD,yDAA0D;AAC1D,iDAAmD;AACnD,iDAA+C;AAC/C,0DAAuD;AACvD,8DAA+E;AAE/E,SAAwB,mBAAmB;IACvC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAEzF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC3B,mBAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,cAAc,EAAE,2BAAe,CAAC,MAAM,EAAE,2BAAe,CAAC,KAAK,CAAC,CAAC;QAClG,YAAY,CAAC,IAAI,mBAAS,EAAE,CAAC,CAAC;IAClC,CAAC,CAAC;IACF,OAAO,IAAA,eAAO,EACV,GAAG,EAAE,CAAC,CACF;QACI,uCAAK,SAAS,EAAC,uBAAuB;YACjC,CAAC,CAAC,iBAAiB,CAAC,MAAM;gBACvB,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAc,EAAE,KAAa,EAAE,EAAE;oBACpD,OAAO,8BAAC,gCAAsB,IAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI,CAAC;gBACjF,CAAC,CAAC;YACN,uCAAK,SAAS,EAAC,4BAA4B;gBACvC,8BAAC,kBAAQ,IAAC,IAAI,EAAE,eAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,UACtE,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CACnC,CACT,CACJ;QACN,0CAAQ,IAAI,EAAC,qBAAqB,IAC7B,IAAI,CAAC,SAAS,CAAC;YACZ,UAAU,EAAE,sCAAsC;YAClD,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC;YACjE,YAAY,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YAChE,SAAS,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,SAAS,EAAE;YACzC,WAAW,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE;YAC7C,QAAQ,EAAE,GAAG;SAChB,CAAC,CACG,CACV,CACN,EACD,CAAC,iBAAiB,EAAE,CAAC,CAAC,CACzB,CAAC;AACN,CAAC;AArCD,sCAqCC","sourcesContent":["import React from 'react';\nimport { useContext, useMemo } from 'react';\nimport BasketRow from '@/models/BasketRow';\nimport RoomBuilderProgressRow from '@/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow';\nimport BEButton from '@/components/generic/BEButton';\nimport { IconType } from '@/components/generic/Icon/Icon';\nimport { BasketContext } from '@frontend/contexts';\nimport { useTranslation } from 'react-i18next';\nimport { Translation } from 'translations/Translation';\nimport DataLayer, { InteractionStep, InteractionType } from '@/util/DataLayer';\n\nexport default function RoomBuilderProgress() {\n const { currentBasketRows, addBasketRow, selectedBasketRow } = useContext(BasketContext);\n\n const { t } = useTranslation();\n const addRoomRowOnClick = () => {\n DataLayer.instance.sendInteraction('Add Room Row', InteractionType.BUTTON, InteractionStep.ROOMS);\n addBasketRow(new BasketRow());\n };\n return useMemo(\n () => (\n <>\n <div className=\"room-builder-progress\">\n {!!currentBasketRows.length &&\n currentBasketRows.map((row: BasketRow, index: number) => {\n return <RoomBuilderProgressRow row={row} key={row.getID()} number={index} />;\n })}\n <div className=\"u-flex justify-content-end\">\n <BEButton icon={IconType.Add} onClick={addRoomRowOnClick} stopIconAnimation>\n {t(Translation.Step.Room.RoomInfo.AddRoom)}\n </BEButton>\n </div>\n </div>\n <script type=\"application/ld+json\">\n {JSON.stringify({\n '@context': 'https://structured-data.triptease.io',\n '@type': 'LodgingSearch',\n checkinTime: selectedBasketRow?.getStartDate().format('YYYY-M-D'),\n checkoutTime: selectedBasketRow?.getEndDate().format('YYYY-M-D'),\n numAdults: selectedBasketRow?.getAdults(),\n numChildren: selectedBasketRow?.getChildren(),\n numRooms: '1',\n })}\n </script>\n </>\n ),\n [currentBasketRows, t]\n );\n}\n"]}
|
|
@@ -26,8 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
30
|
-
const
|
|
29
|
+
const react_1 = __importDefault(require("react"));
|
|
30
|
+
const react_2 = require("react");
|
|
31
31
|
const classnames_1 = __importDefault(require("classnames"));
|
|
32
32
|
const BEButton_1 = __importDefault(require("../../../generic/BEButton"));
|
|
33
33
|
const react_i18next_1 = require("react-i18next");
|
|
@@ -48,20 +48,20 @@ const NumberOfAdultsPicker_1 = __importDefault(require("./NumberOfAdultsPicker")
|
|
|
48
48
|
const Overlay_1 = require("../../../generic/Overlay/Overlay");
|
|
49
49
|
function RoomBuilderProgressRow(props) {
|
|
50
50
|
var _a, _b, _c;
|
|
51
|
-
const context = (0,
|
|
52
|
-
const engineContext = (0,
|
|
51
|
+
const context = (0, react_2.useContext)(contexts_1.BasketContext);
|
|
52
|
+
const engineContext = (0, react_2.useContext)(contexts_1.BookingEngineContext);
|
|
53
53
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
54
|
-
const [isEditing, setIsEditing] = (0,
|
|
54
|
+
const [isEditing, setIsEditing] = (0, react_2.useState)(false);
|
|
55
55
|
const { row } = props;
|
|
56
56
|
const isCurrent = context.selectedBasketRow && context.selectedBasketRow.getID() === row.getID();
|
|
57
57
|
const classes = (0, classnames_1.default)('room-builder-progress--item', {
|
|
58
58
|
'--current': isCurrent,
|
|
59
59
|
'--complete': row.isValid(),
|
|
60
60
|
});
|
|
61
|
-
const [promoCode, setPromoCode] = (0,
|
|
62
|
-
const thisElement = (0,
|
|
63
|
-
const [isPromoModalOpen, setIsPromoModalOpen] = (0,
|
|
64
|
-
(0,
|
|
61
|
+
const [promoCode, setPromoCode] = (0, react_2.useState)(row.getPromoCode());
|
|
62
|
+
const thisElement = (0, react_2.useRef)(null);
|
|
63
|
+
const [isPromoModalOpen, setIsPromoModalOpen] = (0, react_2.useState)(false);
|
|
64
|
+
(0, react_2.useEffect)(() => {
|
|
65
65
|
if (isEditing && !isCurrent) {
|
|
66
66
|
setIsEditing(false);
|
|
67
67
|
}
|
|
@@ -105,9 +105,9 @@ function RoomBuilderProgressRow(props) {
|
|
|
105
105
|
DataLayer_1.default.instance.sendInteraction('Remove Room', DataLayer_1.InteractionType.BUTTON, DataLayer_1.InteractionStep.ROOMS);
|
|
106
106
|
context.removeBasketRow(row);
|
|
107
107
|
};
|
|
108
|
-
const removeButton = (
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
const removeButton = (react_1.default.createElement(Tooltip_1.default, { title: isRemovable ? 'Remove this room' : 'Cannot remove this room as at least one must be selected.' },
|
|
109
|
+
react_1.default.createElement("div", { className: "room-builder-progress--remove" },
|
|
110
|
+
react_1.default.createElement(BEButton_1.default, { isText: true, icon: Icon_1.IconType.Close, iconPosition: "right", stopIconAnimation: true, disabled: !isRemovable, onClick: removeRoomOnClick }))));
|
|
111
111
|
const isLargerThanLarge = engineContext.screenSize > ScreenSize_1.default.ExtraLarge;
|
|
112
112
|
const showEditSection = isLargerThanLarge || isCurrent;
|
|
113
113
|
const roomLabel = context.currentBasketRows.length !== 1 ? props.number + 1 : '';
|
|
@@ -159,71 +159,73 @@ function RoomBuilderProgressRow(props) {
|
|
|
159
159
|
const updateNumberOfChildrenOnChange = (value) => {
|
|
160
160
|
updatePeopleValues({ children: +value });
|
|
161
161
|
};
|
|
162
|
-
return (
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
return (react_1.default.createElement("div", { className: classes }, isCurrent || !row.isValid() ? (react_1.default.createElement("div", { className: "u-flex w-100" },
|
|
163
|
+
react_1.default.createElement("div", { className: "u-flex flex-wrap flex-xl-nowrap flex-row u-w-100@xl- align-items-center" },
|
|
164
|
+
react_1.default.createElement("div", null, row.isValid() ? (react_1.default.createElement(Text_1.default, null,
|
|
165
|
+
react_1.default.createElement("strong", { className: "u-nowrap" },
|
|
166
166
|
t(Translation_1.Translation.Step.Room.EditingRoom),
|
|
167
167
|
" ",
|
|
168
|
-
roomLabel))) : (
|
|
169
|
-
|
|
168
|
+
roomLabel))) : (react_1.default.createElement(Text_1.default, null,
|
|
169
|
+
react_1.default.createElement("strong", { className: "u-nowrap" },
|
|
170
170
|
t(Translation_1.Translation.Step.Room.SelectRoom),
|
|
171
171
|
" ",
|
|
172
172
|
roomLabel)))),
|
|
173
|
-
showEditSection ? (
|
|
174
|
-
!isLargerThanLarge && (
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
173
|
+
showEditSection ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
174
|
+
!isLargerThanLarge && (react_1.default.createElement("div", { className: 'w-100 d-flex' + (showEditSection ? ' u-marg-bottom@xl-' : '') },
|
|
175
|
+
react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small, color: Color_1.Color.DarkGrey, inline: true }, "Choose room below"))),
|
|
176
|
+
react_1.default.createElement(Tooltip_1.default, { title: "Update number of adults", wrapperClasses: "u-w-100@xl- d-flex" },
|
|
177
|
+
react_1.default.createElement("div", { className: "room-builder-progress--value u-flex-justify-center u-flex" },
|
|
178
|
+
react_1.default.createElement(NumberOfAdultsPicker_1.default, { row: row, onChange: updateNumberOfAdultsOnChange }))),
|
|
179
|
+
react_1.default.createElement(Tooltip_1.default, { title: "Update number of children", wrapperClasses: "u-w-100@xl- d-flex" },
|
|
180
|
+
react_1.default.createElement("div", { className: "room-builder-progress--value u-flex-justify-center u-flex" },
|
|
181
|
+
react_1.default.createElement(NumberOfChildrenPicker_1.default, { row: row, onChange: updateNumberOfChildrenOnChange }))),
|
|
182
|
+
react_1.default.createElement(react_1.default.Fragment, null,
|
|
183
|
+
react_1.default.createElement("div", { className: "room-builder-progress--value" },
|
|
184
|
+
react_1.default.createElement(FloatingDatePicker_1.default, { startDate: row.getStartDate(), selectedDateChanged: updateDateValues, className: "u-w-100@xl- d-flex align-items-center justify-content-center" },
|
|
185
|
+
react_1.default.createElement(Tooltip_1.default, { title: "Select Arrival and departure dates by clicking here" },
|
|
186
|
+
react_1.default.createElement("div", { className: "u-flex align-items-center justify-content-center u-w-100@xl- u-cursor-pointer" },
|
|
187
|
+
react_1.default.createElement(Text_1.default, { color: Color_1.Color.Accent, bold: true, className: "u-nowrap" }, row.getArrivalDate()),
|
|
188
|
+
react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.ArrowRight2 }),
|
|
189
|
+
react_1.default.createElement(Text_1.default, { color: Color_1.Color.Accent, bold: true, className: "u-nowrap" }, row.getDepartureDate()))))),
|
|
190
|
+
react_1.default.createElement(Tooltip_1.default, { title: promoCodeTooltip, wrapperClasses: "u-w-100@xl- d-flex" },
|
|
191
|
+
react_1.default.createElement("div", { className: "room-builder-progress--value u-cursor-pointer", ref: thisElement, onClick: openPromoModalOnClick },
|
|
192
|
+
react_1.default.createElement("div", { className: "u-flex align-items-center justify-content-center u-w-100@xl-" },
|
|
193
|
+
react_1.default.createElement(Text_1.default, { className: "u-pad-right--light", type: Text_1.TextType.Body, color: row.getPromoCode() ? row.getPromoCodeColour() : Color_1.Color.Navy }, row.getPromoCode() ? row.getPromoCode() : 'Promo Code'),
|
|
194
|
+
react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.Dropdown, color: Color_1.Color.DarkGrey }))))),
|
|
195
|
+
react_1.default.createElement(Overlay_1.Overlay, { open: isPromoModalOpen, followElement: thisElement.current, onClose: setPromoCodeOnClose },
|
|
196
|
+
react_1.default.createElement("div", { className: "u-pad--heavy" },
|
|
197
|
+
react_1.default.createElement("div", null,
|
|
198
|
+
react_1.default.createElement(PromoCodeInput_1.default, { value: (_a = context.selectedBasketRow) === null || _a === void 0 ? void 0 : _a.getPromoCode(), onChange: changePromoCode, valid: ((_b = context.selectedBasketRow) === null || _b === void 0 ? void 0 : _b.getPromoCodeStatus()) !== 'new'
|
|
199
|
+
? ((_c = context.selectedBasketRow) === null || _c === void 0 ? void 0 : _c.getPromoCodeStatus()) === 'valid'
|
|
200
|
+
: undefined })),
|
|
201
|
+
react_1.default.createElement("div", { className: "u-flex justify-content-end align-items-center u-marg-top" },
|
|
202
|
+
react_1.default.createElement(BEButton_1.default, { isText: true, size: "small", onClick: cancelPromoPopupOnClick }, "Cancel")))),
|
|
203
|
+
!isLargerThanLarge && row.isValid() && (react_1.default.createElement(BEButton_1.default, { wide: true, primary: true, filled: true, onClick: saveRoomChangesOnClick }, "Save")))) : (react_1.default.createElement("div", { className: "w-100" },
|
|
204
|
+
react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small, color: Color_1.Color.DarkGrey }, t(Translation_1.Translation.Step.Room.NextRoom))))),
|
|
205
|
+
react_1.default.createElement("div", { className: "u-flex align-items-center" },
|
|
206
|
+
row.isValid() && (react_1.default.createElement("div", { className: "u-none@xl-" },
|
|
207
|
+
react_1.default.createElement(Tooltip_1.default, { title: "Cancel changes" },
|
|
208
|
+
react_1.default.createElement("div", { className: "u-flex align-items-center" },
|
|
209
|
+
react_1.default.createElement(BEButton_1.default, { isText: true, size: "tiny", onClick: cancelRoomChangesOnClick }, t(Translation_1.Translation.Misc.Cancel).toUpperCase()))))),
|
|
210
|
+
removeButton))) : (react_1.default.createElement("div", { className: "u-flex w-100" },
|
|
211
|
+
react_1.default.createElement("div", { className: "u-flex justify-content-start" },
|
|
212
|
+
react_1.default.createElement("div", { className: "u-flex flex-column" },
|
|
213
|
+
react_1.default.createElement("span", null,
|
|
214
|
+
react_1.default.createElement(Text_1.default, { inline: isLargerThanLarge },
|
|
215
|
+
react_1.default.createElement("strong", null, row.getRoom().name)),
|
|
216
|
+
react_1.default.createElement(Text_1.default, { inline: isLargerThanLarge, type: isLargerThanLarge ? Text_1.TextType.Body : Text_1.TextType.Small },
|
|
217
|
+
react_1.default.createElement("span", { className: "u-marg-left--light@xl" },
|
|
216
218
|
StringHelper_1.default.pluralWithDictAndCount(row.getAdults(), Translation_1.Translation.Step.Date.Adult, t),
|
|
217
219
|
",\u00A0",
|
|
218
220
|
StringHelper_1.default.pluralWithDictAndCount(row.getChildren(), Translation_1.Translation.Step.Date.Child, t)))),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
row.isPromoCodeValid() && (
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
221
|
+
react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Caption, color: Color_1.Color.DarkGrey },
|
|
222
|
+
react_1.default.createElement("strong", null, row.getStayDateRange('ddd, MMM D, YYYY', ' -')))),
|
|
223
|
+
row.isPromoCodeValid() && (react_1.default.createElement("div", { className: "u-marg-left d-flex align-items-center" },
|
|
224
|
+
react_1.default.createElement(Pill_1.default, { type: Pill_1.PillType.Success, icon: Icon_1.IconType.Money }, row.getPromoCode())))),
|
|
225
|
+
react_1.default.createElement("div", { className: "u-flex align-items-center" },
|
|
226
|
+
react_1.default.createElement(Tooltip_1.default, { title: "Edit this room" },
|
|
227
|
+
react_1.default.createElement("div", { className: "u-flex align-items-center room-builder-progress--edit" },
|
|
228
|
+
react_1.default.createElement(BEButton_1.default, { isText: true, size: "tiny", onClick: editRoomOnClick }, t(Translation_1.Translation.Misc.Edit).toUpperCase()))),
|
|
227
229
|
removeButton)))));
|
|
228
230
|
}
|
|
229
231
|
exports.default = RoomBuilderProgressRow;
|