@roomstay/frontend 1.3.0
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/README.md +0 -0
- package/dist/src/animations/AutoAutoHeight.d.ts +8 -0
- package/dist/src/animations/AutoAutoHeight.js +48 -0
- package/dist/src/animations/AutoAutoHeight.js.map +1 -0
- package/dist/src/animations/Fade.d.ts +9 -0
- package/dist/src/animations/Fade.js +35 -0
- package/dist/src/animations/Fade.js.map +1 -0
- package/dist/src/api/AddonAPI.d.ts +7 -0
- package/dist/src/api/AddonAPI.js +68 -0
- package/dist/src/api/AddonAPI.js.map +1 -0
- package/dist/src/api/AvailabilityAPI.d.ts +40 -0
- package/dist/src/api/AvailabilityAPI.js +362 -0
- package/dist/src/api/AvailabilityAPI.js.map +1 -0
- package/dist/src/api/BaseAPI.d.ts +32 -0
- package/dist/src/api/BaseAPI.js +111 -0
- package/dist/src/api/BaseAPI.js.map +1 -0
- package/dist/src/api/BookingAPI.d.ts +17 -0
- package/dist/src/api/BookingAPI.js +22 -0
- package/dist/src/api/BookingAPI.js.map +1 -0
- package/dist/src/api/ExchangeRateAPI.d.ts +5 -0
- package/dist/src/api/ExchangeRateAPI.js +23 -0
- package/dist/src/api/ExchangeRateAPI.js.map +1 -0
- package/dist/src/api/HotelAPI.d.ts +12 -0
- package/dist/src/api/HotelAPI.js +47 -0
- package/dist/src/api/HotelAPI.js.map +1 -0
- package/dist/src/api/MemberAPI.d.ts +4 -0
- package/dist/src/api/MemberAPI.js +28 -0
- package/dist/src/api/MemberAPI.js.map +1 -0
- package/dist/src/api/ReservationAPI.d.ts +14 -0
- package/dist/src/api/ReservationAPI.js +113 -0
- package/dist/src/api/ReservationAPI.js.map +1 -0
- package/dist/src/components/generic/Alert.d.ts +21 -0
- package/dist/src/components/generic/Alert.js +31 -0
- package/dist/src/components/generic/Alert.js.map +1 -0
- package/dist/src/components/generic/BEButton.d.ts +24 -0
- package/dist/src/components/generic/BEButton.js +60 -0
- package/dist/src/components/generic/BEButton.js.map +1 -0
- package/dist/src/components/generic/BESelect.d.ts +13 -0
- package/dist/src/components/generic/BESelect.js +47 -0
- package/dist/src/components/generic/BESelect.js.map +1 -0
- package/dist/src/components/generic/BETooltip.d.ts +7 -0
- package/dist/src/components/generic/BETooltip.js +44 -0
- package/dist/src/components/generic/BETooltip.js.map +1 -0
- package/dist/src/components/generic/BackButton.d.ts +6 -0
- package/dist/src/components/generic/BackButton.js +14 -0
- package/dist/src/components/generic/BackButton.js.map +1 -0
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.d.ts +2 -0
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.js +32 -0
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.js.map +1 -0
- package/dist/src/components/generic/Checkbox.d.ts +8 -0
- package/dist/src/components/generic/Checkbox.js +22 -0
- package/dist/src/components/generic/Checkbox.js.map +1 -0
- package/dist/src/components/generic/Countdown.d.ts +8 -0
- package/dist/src/components/generic/Countdown.js +35 -0
- package/dist/src/components/generic/Countdown.js.map +1 -0
- package/dist/src/components/generic/Currency.d.ts +12 -0
- package/dist/src/components/generic/Currency.js +71 -0
- package/dist/src/components/generic/Currency.js.map +1 -0
- package/dist/src/components/generic/Distance.d.ts +6 -0
- package/dist/src/components/generic/Distance.js +22 -0
- package/dist/src/components/generic/Distance.js.map +1 -0
- package/dist/src/components/generic/Headline.d.ts +13 -0
- package/dist/src/components/generic/Headline.js +28 -0
- package/dist/src/components/generic/Headline.js.map +1 -0
- package/dist/src/components/generic/Icon.d.ts +79 -0
- package/dist/src/components/generic/Icon.js +105 -0
- package/dist/src/components/generic/Icon.js.map +1 -0
- package/dist/src/components/generic/InputGroup/InputGroup.d.ts +7 -0
- package/dist/src/components/generic/InputGroup/InputGroup.js +26 -0
- package/dist/src/components/generic/InputGroup/InputGroup.js.map +1 -0
- package/dist/src/components/generic/InputGroup/InputGroup.types.d.ts +1 -0
- package/dist/src/components/generic/InputGroup/InputGroup.types.js +3 -0
- package/dist/src/components/generic/InputGroup/InputGroup.types.js.map +1 -0
- package/dist/src/components/generic/LineBreak.d.ts +7 -0
- package/dist/src/components/generic/LineBreak.js +14 -0
- package/dist/src/components/generic/LineBreak.js.map +1 -0
- package/dist/src/components/generic/Notification.d.ts +14 -0
- package/dist/src/components/generic/Notification.js +44 -0
- package/dist/src/components/generic/Notification.js.map +1 -0
- package/dist/src/components/generic/NumberIncrement.d.ts +8 -0
- package/dist/src/components/generic/NumberIncrement.js +45 -0
- package/dist/src/components/generic/NumberIncrement.js.map +1 -0
- package/dist/src/components/generic/Pill.d.ts +18 -0
- package/dist/src/components/generic/Pill.js +29 -0
- package/dist/src/components/generic/Pill.js.map +1 -0
- package/dist/src/components/generic/Placeholder.d.ts +13 -0
- package/dist/src/components/generic/Placeholder.js +23 -0
- package/dist/src/components/generic/Placeholder.js.map +1 -0
- package/dist/src/components/generic/PromoCodeInput.d.ts +9 -0
- package/dist/src/components/generic/PromoCodeInput.js +113 -0
- package/dist/src/components/generic/PromoCodeInput.js.map +1 -0
- package/dist/src/components/generic/RecentSearchesCard.d.ts +9 -0
- package/dist/src/components/generic/RecentSearchesCard.js +47 -0
- package/dist/src/components/generic/RecentSearchesCard.js.map +1 -0
- package/dist/src/components/generic/ScrollToTop.d.ts +4 -0
- package/dist/src/components/generic/ScrollToTop.js +18 -0
- package/dist/src/components/generic/ScrollToTop.js.map +1 -0
- package/dist/src/components/generic/Select.d.ts +12 -0
- package/dist/src/components/generic/Select.js +18 -0
- package/dist/src/components/generic/Select.js.map +1 -0
- package/dist/src/components/generic/Text.d.ts +25 -0
- package/dist/src/components/generic/Text.js +37 -0
- package/dist/src/components/generic/Text.js.map +1 -0
- package/dist/src/components/generic/TextArea.d.ts +3 -0
- package/dist/src/components/generic/TextArea.js +9 -0
- package/dist/src/components/generic/TextArea.js.map +1 -0
- package/dist/src/components/generic/TextBox.d.ts +16 -0
- package/dist/src/components/generic/TextBox.js +50 -0
- package/dist/src/components/generic/TextBox.js.map +1 -0
- package/dist/src/components/generic/badging/SSLSecureBadge.d.ts +2 -0
- package/dist/src/components/generic/badging/SSLSecureBadge.js +11 -0
- package/dist/src/components/generic/badging/SSLSecureBadge.js.map +1 -0
- package/dist/src/components/generic/buttons/NextStepButton.d.ts +13 -0
- package/dist/src/components/generic/buttons/NextStepButton.js +30 -0
- package/dist/src/components/generic/buttons/NextStepButton.js.map +1 -0
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.d.ts +10 -0
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +120 -0
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -0
- package/dist/src/components/generic/date/DatePicker.d.ts +18 -0
- package/dist/src/components/generic/date/DatePicker.js +200 -0
- package/dist/src/components/generic/date/DatePicker.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerDay.d.ts +21 -0
- package/dist/src/components/generic/date/DatePickerDay.js +188 -0
- package/dist/src/components/generic/date/DatePickerDay.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerDays.d.ts +7 -0
- package/dist/src/components/generic/date/DatePickerDays.js +21 -0
- package/dist/src/components/generic/date/DatePickerDays.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerMonth.d.ts +8 -0
- package/dist/src/components/generic/date/DatePickerMonth.js +28 -0
- package/dist/src/components/generic/date/DatePickerMonth.js.map +1 -0
- package/dist/src/components/generic/date/DatePickerWeek.d.ts +2 -0
- package/dist/src/components/generic/date/DatePickerWeek.js +161 -0
- package/dist/src/components/generic/date/DatePickerWeek.js.map +1 -0
- package/dist/src/components/generic/date/FloatingDatePicker.d.ts +10 -0
- package/dist/src/components/generic/date/FloatingDatePicker.js +68 -0
- package/dist/src/components/generic/date/FloatingDatePicker.js.map +1 -0
- package/dist/src/components/generic/loader/ImageLoader.d.ts +11 -0
- package/dist/src/components/generic/loader/ImageLoader.js +37 -0
- package/dist/src/components/generic/loader/ImageLoader.js.map +1 -0
- package/dist/src/components/generic/loader/LargeLoader.d.ts +2 -0
- package/dist/src/components/generic/loader/LargeLoader.js +50 -0
- package/dist/src/components/generic/loader/LargeLoader.js.map +1 -0
- package/dist/src/components/generic/loader/SmallSpinner.d.ts +3 -0
- package/dist/src/components/generic/loader/SmallSpinner.js +11 -0
- package/dist/src/components/generic/loader/SmallSpinner.js.map +1 -0
- package/dist/src/components/generic/map/HotelLocationMap.d.ts +2 -0
- package/dist/src/components/generic/map/HotelLocationMap.js +11 -0
- package/dist/src/components/generic/map/HotelLocationMap.js.map +1 -0
- package/dist/src/components/generic/modal/ConfirmationModal.d.ts +9 -0
- package/dist/src/components/generic/modal/ConfirmationModal.js +27 -0
- package/dist/src/components/generic/modal/ConfirmationModal.js.map +1 -0
- package/dist/src/components/generic/modal/ErrorModal.d.ts +10 -0
- package/dist/src/components/generic/modal/ErrorModal.js +15 -0
- package/dist/src/components/generic/modal/ErrorModal.js.map +1 -0
- package/dist/src/components/generic/modal/SimpleModal.d.ts +21 -0
- package/dist/src/components/generic/modal/SimpleModal.js +82 -0
- package/dist/src/components/generic/modal/SimpleModal.js.map +1 -0
- package/dist/src/components/generic/modal/TabbedModal.d.ts +16 -0
- package/dist/src/components/generic/modal/TabbedModal.js +33 -0
- package/dist/src/components/generic/modal/TabbedModal.js.map +1 -0
- package/dist/src/components/generic/radio/RadioFields.d.ts +14 -0
- package/dist/src/components/generic/radio/RadioFields.js +34 -0
- package/dist/src/components/generic/radio/RadioFields.js.map +1 -0
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.d.ts +7 -0
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.js +20 -0
- package/dist/src/components/iconComponents/BookNowPayLaterIcon.js.map +1 -0
- package/dist/src/components/navigation/Header.d.ts +2 -0
- package/dist/src/components/navigation/Header.js +124 -0
- package/dist/src/components/navigation/Header.js.map +1 -0
- package/dist/src/components/navigation/StepSelector.d.ts +2 -0
- package/dist/src/components/navigation/StepSelector.js +75 -0
- package/dist/src/components/navigation/StepSelector.js.map +1 -0
- package/dist/src/components/navigation/StepSelectorModal.d.ts +6 -0
- package/dist/src/components/navigation/StepSelectorModal.js +63 -0
- package/dist/src/components/navigation/StepSelectorModal.js.map +1 -0
- package/dist/src/components/steps/DaysSelectedInformer.d.ts +2 -0
- package/dist/src/components/steps/DaysSelectedInformer.js +25 -0
- package/dist/src/components/steps/DaysSelectedInformer.js.map +1 -0
- package/dist/src/components/steps/MinimumNightStayPill.d.ts +2 -0
- package/dist/src/components/steps/MinimumNightStayPill.js +62 -0
- package/dist/src/components/steps/MinimumNightStayPill.js.map +1 -0
- package/dist/src/components/steps/addons/AddonCard.d.ts +8 -0
- package/dist/src/components/steps/addons/AddonCard.js +194 -0
- package/dist/src/components/steps/addons/AddonCard.js.map +1 -0
- package/dist/src/components/steps/addons/AddonList.d.ts +3 -0
- package/dist/src/components/steps/addons/AddonList.js +38 -0
- package/dist/src/components/steps/addons/AddonList.js.map +1 -0
- package/dist/src/components/steps/addons/AddonsNotFound.d.ts +2 -0
- package/dist/src/components/steps/addons/AddonsNotFound.js +50 -0
- package/dist/src/components/steps/addons/AddonsNotFound.js.map +1 -0
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +7 -0
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js +42 -0
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js.map +1 -0
- package/dist/src/components/steps/confirmation/AccountDetails.d.ts +2 -0
- package/dist/src/components/steps/confirmation/AccountDetails.js +31 -0
- package/dist/src/components/steps/confirmation/AccountDetails.js.map +1 -0
- package/dist/src/components/steps/confirmation/RoomContactDetails.d.ts +9 -0
- package/dist/src/components/steps/confirmation/RoomContactDetails.js +224 -0
- package/dist/src/components/steps/confirmation/RoomContactDetails.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.d.ts +6 -0
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js +33 -0
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.d.ts +11 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js +76 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.d.ts +6 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js +25 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.d.ts +10 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +65 -0
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationForm.d.ts +2 -0
- package/dist/src/components/steps/confirmation/StepConfirmationForm.js +343 -0
- package/dist/src/components/steps/confirmation/StepConfirmationForm.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.d.ts +7 -0
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js +29 -0
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.d.ts +8 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.js +244 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.d.ts +2 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js +33 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js.map +1 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.d.ts +2 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js +56 -0
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js.map +1 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.d.ts +2 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js +117 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js.map +1 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.d.ts +8 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js +21 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js.map +1 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.d.ts +10 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js +145 -0
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js.map +1 -0
- package/dist/src/components/steps/date/PeoplePicker.d.ts +2 -0
- package/dist/src/components/steps/date/PeoplePicker.js +69 -0
- package/dist/src/components/steps/date/PeoplePicker.js.map +1 -0
- package/dist/src/components/steps/date/PeoplePickerRow.d.ts +13 -0
- package/dist/src/components/steps/date/PeoplePickerRow.js +69 -0
- package/dist/src/components/steps/date/PeoplePickerRow.js.map +1 -0
- package/dist/src/components/steps/date/StepDatePricePerRoom.d.ts +6 -0
- package/dist/src/components/steps/date/StepDatePricePerRoom.js +68 -0
- package/dist/src/components/steps/date/StepDatePricePerRoom.js.map +1 -0
- package/dist/src/components/steps/date/StepOneDateRange.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneDateRange.js +24 -0
- package/dist/src/components/steps/date/StepOneDateRange.js.map +1 -0
- package/dist/src/components/steps/date/StepOneDateRangePicker.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneDateRangePicker.js +25 -0
- package/dist/src/components/steps/date/StepOneDateRangePicker.js.map +1 -0
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js +37 -0
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js.map +1 -0
- package/dist/src/components/steps/date/StepOneNextStepButton.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneNextStepButton.js +51 -0
- package/dist/src/components/steps/date/StepOneNextStepButton.js.map +1 -0
- package/dist/src/components/steps/date/StepOneStatusPeople.d.ts +2 -0
- package/dist/src/components/steps/date/StepOneStatusPeople.js +17 -0
- package/dist/src/components/steps/date/StepOneStatusPeople.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelCard.d.ts +7 -0
- package/dist/src/components/steps/hotel/HotelCard.js +145 -0
- package/dist/src/components/steps/hotel/HotelCard.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelCardList.d.ts +6 -0
- package/dist/src/components/steps/hotel/HotelCardList.js +13 -0
- package/dist/src/components/steps/hotel/HotelCardList.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelCardModal.d.ts +10 -0
- package/dist/src/components/steps/hotel/HotelCardModal.js +90 -0
- package/dist/src/components/steps/hotel/HotelCardModal.js.map +1 -0
- package/dist/src/components/steps/hotel/HotelSearchParameters.d.ts +3 -0
- package/dist/src/components/steps/hotel/HotelSearchParameters.js +149 -0
- package/dist/src/components/steps/hotel/HotelSearchParameters.js.map +1 -0
- package/dist/src/components/steps/hotel/NoHotelsAvailable.d.ts +2 -0
- package/dist/src/components/steps/hotel/NoHotelsAvailable.js +68 -0
- package/dist/src/components/steps/hotel/NoHotelsAvailable.js.map +1 -0
- package/dist/src/components/steps/room/AvailableUpgradesModal.d.ts +3 -0
- package/dist/src/components/steps/room/AvailableUpgradesModal.js +148 -0
- package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -0
- package/dist/src/components/steps/room/ImageGallerySlider.d.ts +9 -0
- package/dist/src/components/steps/room/ImageGallerySlider.js +126 -0
- package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -0
- package/dist/src/components/steps/room/InactivityWindow.d.ts +3 -0
- package/dist/src/components/steps/room/InactivityWindow.js +80 -0
- package/dist/src/components/steps/room/InactivityWindow.js.map +1 -0
- package/dist/src/components/steps/room/LargeRoomCard.d.ts +9 -0
- package/dist/src/components/steps/room/LargeRoomCard.js +82 -0
- package/dist/src/components/steps/room/LargeRoomCard.js.map +1 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.d.ts +7 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js +260 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js.map +1 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.d.ts +13 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.js +3 -0
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.js.map +1 -0
- package/dist/src/components/steps/room/RatesNotFound.d.ts +2 -0
- package/dist/src/components/steps/room/RatesNotFound.js +48 -0
- package/dist/src/components/steps/room/RatesNotFound.js.map +1 -0
- package/dist/src/components/steps/room/RoomList.d.ts +2 -0
- package/dist/src/components/steps/room/RoomList.js +84 -0
- package/dist/src/components/steps/room/RoomList.js.map +1 -0
- package/dist/src/components/steps/room/RoomListCrossSellBlock.d.ts +5 -0
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js +124 -0
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -0
- package/dist/src/components/steps/room/RoomModal.d.ts +12 -0
- package/dist/src/components/steps/room/RoomModal.js +63 -0
- package/dist/src/components/steps/room/RoomModal.js.map +1 -0
- package/dist/src/components/steps/room/RoomNotFound.d.ts +3 -0
- package/dist/src/components/steps/room/RoomNotFound.js +108 -0
- package/dist/src/components/steps/room/RoomNotFound.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomAlertBlocks.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js +27 -0
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomBestRateAlert.d.ts +3 -0
- package/dist/src/components/steps/room/StepRoomBestRateAlert.js +29 -0
- package/dist/src/components/steps/room/StepRoomBestRateAlert.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomHotelDetails.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomHotelDetails.js +43 -0
- package/dist/src/components/steps/room/StepRoomHotelDetails.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomNextStepButton.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomNextStepButton.js +21 -0
- package/dist/src/components/steps/room/StepRoomNextStepButton.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomSortBy.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomSortBy.js +26 -0
- package/dist/src/components/steps/room/StepRoomSortBy.js.map +1 -0
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.d.ts +2 -0
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.js +40 -0
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.d.ts +8 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js +29 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.d.ts +8 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js +28 -0
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.d.ts +2 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js +39 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js.map +1 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.d.ts +7 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +211 -0
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetails.d.ts +7 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js +151 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.d.ts +7 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +34 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.d.ts +7 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js +33 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.d.ts +10 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js +44 -0
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.d.ts +10 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js +28 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.d.ts +2 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +57 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.d.ts +15 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +120 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.d.ts +14 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +76 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.d.ts +16 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js +34 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.d.ts +11 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js +86 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.d.ts +9 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +119 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js.map +1 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.d.ts +12 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js +103 -0
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.d.ts +2 -0
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js +42 -0
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.d.ts +9 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js +106 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +10 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js +99 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +10 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js +65 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js.map +1 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +10 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js +63 -0
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js.map +1 -0
- package/dist/src/components/summary/BEMapWidget.d.ts +12 -0
- package/dist/src/components/summary/BEMapWidget.js +50 -0
- package/dist/src/components/summary/BEMapWidget.js.map +1 -0
- package/dist/src/components/summary/BEMobileSummary.d.ts +2 -0
- package/dist/src/components/summary/BEMobileSummary.js +55 -0
- package/dist/src/components/summary/BEMobileSummary.js.map +1 -0
- package/dist/src/components/summary/BEMobileSummaryModal.d.ts +7 -0
- package/dist/src/components/summary/BEMobileSummaryModal.js +142 -0
- package/dist/src/components/summary/BEMobileSummaryModal.js.map +1 -0
- package/dist/src/components/summary/BESummary.d.ts +7 -0
- package/dist/src/components/summary/BESummary.js +106 -0
- package/dist/src/components/summary/BESummary.js.map +1 -0
- package/dist/src/components/summary/BESummaryAddonRow.d.ts +8 -0
- package/dist/src/components/summary/BESummaryAddonRow.js +88 -0
- package/dist/src/components/summary/BESummaryAddonRow.js.map +1 -0
- package/dist/src/components/summary/BESummaryPerkBlock.d.ts +6 -0
- package/dist/src/components/summary/BESummaryPerkBlock.js +34 -0
- package/dist/src/components/summary/BESummaryPerkBlock.js.map +1 -0
- package/dist/src/components/summary/BESummaryPrivacyPolicy.d.ts +2 -0
- package/dist/src/components/summary/BESummaryPrivacyPolicy.js +24 -0
- package/dist/src/components/summary/BESummaryPrivacyPolicy.js.map +1 -0
- package/dist/src/components/summary/BESummaryRoomRow.d.ts +10 -0
- package/dist/src/components/summary/BESummaryRoomRow.js +113 -0
- package/dist/src/components/summary/BESummaryRoomRow.js.map +1 -0
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.d.ts +10 -0
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.js +48 -0
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.js.map +1 -0
- package/dist/src/contexts/BasketContext/BasketContext.d.ts +3 -0
- package/dist/src/contexts/BasketContext/BasketContext.js +6 -0
- package/dist/src/contexts/BasketContext/BasketContext.js.map +1 -0
- package/dist/src/contexts/BasketContext/BasketContextType.d.ts +39 -0
- package/dist/src/contexts/BasketContext/BasketContextType.js +3 -0
- package/dist/src/contexts/BasketContext/BasketContextType.js.map +1 -0
- package/dist/src/contexts/BasketContext/BasketContextWrapper.d.ts +5 -0
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js +383 -0
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js.map +1 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.d.ts +3 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js +6 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js.map +1 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.d.ts +17 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.js +3 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.js.map +1 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +7 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js +46 -0
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js.map +1 -0
- package/dist/src/contexts/CompanyContext/CompanyContext.d.ts +3 -0
- package/dist/src/contexts/CompanyContext/CompanyContext.js +6 -0
- package/dist/src/contexts/CompanyContext/CompanyContext.js.map +1 -0
- package/dist/src/contexts/CompanyContext/CompanyContextType.type.d.ts +19 -0
- package/dist/src/contexts/CompanyContext/CompanyContextType.type.js +3 -0
- package/dist/src/contexts/CompanyContext/CompanyContextType.type.js.map +1 -0
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.d.ts +8 -0
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js +270 -0
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js.map +1 -0
- package/dist/src/contexts/ConfirmationFormContext.d.ts +16 -0
- package/dist/src/contexts/ConfirmationFormContext.js +33 -0
- package/dist/src/contexts/ConfirmationFormContext.js.map +1 -0
- package/dist/src/contexts/DatePickerContext.d.ts +14 -0
- package/dist/src/contexts/DatePickerContext.js +23 -0
- package/dist/src/contexts/DatePickerContext.js.map +1 -0
- package/dist/src/contexts/ErrorContext.d.ts +19 -0
- package/dist/src/contexts/ErrorContext.js +43 -0
- package/dist/src/contexts/ErrorContext.js.map +1 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.d.ts +3 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js +6 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js.map +1 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.d.ts +19 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.js +3 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.js.map +1 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.d.ts +6 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +204 -0
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js.map +1 -0
- package/dist/src/contexts/HotelOverridesContext.d.ts +10 -0
- package/dist/src/contexts/HotelOverridesContext.js +63 -0
- package/dist/src/contexts/HotelOverridesContext.js.map +1 -0
- package/dist/src/contexts/ModalContext.d.ts +14 -0
- package/dist/src/contexts/ModalContext.js +34 -0
- package/dist/src/contexts/ModalContext.js.map +1 -0
- package/dist/src/contexts/NotificationContext.d.ts +14 -0
- package/dist/src/contexts/NotificationContext.js +34 -0
- package/dist/src/contexts/NotificationContext.js.map +1 -0
- package/dist/src/contexts/index.d.ts +19 -0
- package/dist/src/contexts/index.js +32 -0
- package/dist/src/contexts/index.js.map +1 -0
- package/dist/src/engines/BaseEngine.d.ts +20 -0
- package/dist/src/engines/BaseEngine.js +62 -0
- package/dist/src/engines/BaseEngine.js.map +1 -0
- package/dist/src/engines/CustomEngine/CustomEngine.d.ts +4 -0
- package/dist/src/engines/CustomEngine/CustomEngine.js +23 -0
- package/dist/src/engines/CustomEngine/CustomEngine.js.map +1 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.d.ts +5 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js +31 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js.map +1 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.d.ts +8 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +34 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents.d.ts +3 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents.js +9 -0
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents.js.map +1 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.d.ts +7 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js +32 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js.map +1 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.d.ts +7 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +246 -0
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.d.ts +7 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js +31 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js.map +1 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.d.ts +7 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +112 -0
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -0
- package/dist/src/errors/GetAvailabilityError.d.ts +7 -0
- package/dist/src/errors/GetAvailabilityError.js +21 -0
- package/dist/src/errors/GetAvailabilityError.js.map +1 -0
- package/dist/src/errors/NoCompanyContextError.d.ts +4 -0
- package/dist/src/errors/NoCompanyContextError.js +11 -0
- package/dist/src/errors/NoCompanyContextError.js.map +1 -0
- package/dist/src/errors/NoHotelSelectedError.d.ts +4 -0
- package/dist/src/errors/NoHotelSelectedError.js +11 -0
- package/dist/src/errors/NoHotelSelectedError.js.map +1 -0
- package/dist/src/errors/RoomstayError.d.ts +3 -0
- package/dist/src/errors/RoomstayError.js +10 -0
- package/dist/src/errors/RoomstayError.js.map +1 -0
- package/dist/src/events/RoomstayEvent.d.ts +4 -0
- package/dist/src/events/RoomstayEvent.js +11 -0
- package/dist/src/events/RoomstayEvent.js.map +1 -0
- package/dist/src/events/RoomstayEventManager.d.ts +13 -0
- package/dist/src/events/RoomstayEventManager.js +72 -0
- package/dist/src/events/RoomstayEventManager.js.map +1 -0
- package/dist/src/events/actions/AddToCartEvent.d.ts +8 -0
- package/dist/src/events/actions/AddToCartEvent.js +16 -0
- package/dist/src/events/actions/AddToCartEvent.js.map +1 -0
- package/dist/src/events/actions/RemoveFromCartEvent.d.ts +8 -0
- package/dist/src/events/actions/RemoveFromCartEvent.js +16 -0
- package/dist/src/events/actions/RemoveFromCartEvent.js.map +1 -0
- package/dist/src/events/index.d.ts +3 -0
- package/dist/src/events/index.js +16 -0
- package/dist/src/events/index.js.map +1 -0
- package/dist/src/events/views/StepCheckoutViewEvent.d.ts +7 -0
- package/dist/src/events/views/StepCheckoutViewEvent.js +15 -0
- package/dist/src/events/views/StepCheckoutViewEvent.js.map +1 -0
- package/dist/src/handlers/BasketContextErrorHandler.d.ts +4 -0
- package/dist/src/handlers/BasketContextErrorHandler.js +5 -0
- package/dist/src/handlers/BasketContextErrorHandler.js.map +1 -0
- package/dist/src/handlers/HotelContextEventHandler.d.ts +3 -0
- package/dist/src/handlers/HotelContextEventHandler.js +9 -0
- package/dist/src/handlers/HotelContextEventHandler.js.map +1 -0
- package/dist/src/hooks/CurrentHotelHook.d.ts +4 -0
- package/dist/src/hooks/CurrentHotelHook.js +26 -0
- package/dist/src/hooks/CurrentHotelHook.js.map +1 -0
- package/dist/src/hooks/ElementSortHook.d.ts +11 -0
- package/dist/src/hooks/ElementSortHook.js +20 -0
- package/dist/src/hooks/ElementSortHook.js.map +1 -0
- package/dist/src/hooks/EventHook.d.ts +6 -0
- package/dist/src/hooks/EventHook.js +16 -0
- package/dist/src/hooks/EventHook.js.map +1 -0
- package/dist/src/hooks/ScrollFocusHook.d.ts +3 -0
- package/dist/src/hooks/ScrollFocusHook.js +14 -0
- package/dist/src/hooks/ScrollFocusHook.js.map +1 -0
- package/dist/src/hooks/ScrollLock.d.ts +1 -0
- package/dist/src/hooks/ScrollLock.js +17 -0
- package/dist/src/hooks/ScrollLock.js.map +1 -0
- package/dist/src/hooks/index.d.ts +5 -0
- package/dist/src/hooks/index.js +18 -0
- package/dist/src/hooks/index.js.map +1 -0
- package/dist/src/icons/Check.d.ts +6 -0
- package/dist/src/icons/Check.js +12 -0
- package/dist/src/icons/Check.js.map +1 -0
- package/dist/src/index.d.ts +71 -0
- package/dist/src/index.js +152 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mockApi/AddonAPI.d.ts +7 -0
- package/dist/src/mockApi/AddonAPI.js +78 -0
- package/dist/src/mockApi/AddonAPI.js.map +1 -0
- package/dist/src/mockApi/BookingAPI.d.ts +15 -0
- package/dist/src/mockApi/BookingAPI.js +18 -0
- package/dist/src/mockApi/BookingAPI.js.map +1 -0
- package/dist/src/mockApi/ExchangeRateAPI.d.ts +5 -0
- package/dist/src/mockApi/ExchangeRateAPI.js +23 -0
- package/dist/src/mockApi/ExchangeRateAPI.js.map +1 -0
- package/dist/src/mockApi/HotelAPI.d.ts +6 -0
- package/dist/src/mockApi/HotelAPI.js +23 -0
- package/dist/src/mockApi/HotelAPI.js.map +1 -0
- package/dist/src/mockApi/MemberAPI.d.ts +4 -0
- package/dist/src/mockApi/MemberAPI.js +26 -0
- package/dist/src/mockApi/MemberAPI.js.map +1 -0
- package/dist/src/mockApi/MockAPI.d.ts +31 -0
- package/dist/src/mockApi/MockAPI.js +110 -0
- package/dist/src/mockApi/MockAPI.js.map +1 -0
- package/dist/src/mockApi/ReservationAPI.d.ts +14 -0
- package/dist/src/mockApi/ReservationAPI.js +109 -0
- package/dist/src/mockApi/ReservationAPI.js.map +1 -0
- package/dist/src/models/Addon/Addon.d.ts +131 -0
- package/dist/src/models/Addon/Addon.js +76 -0
- package/dist/src/models/Addon/Addon.js.map +1 -0
- package/dist/src/models/Api/ExchangeRateDTO.d.ts +3 -0
- package/dist/src/models/Api/ExchangeRateDTO.js +3 -0
- package/dist/src/models/Api/ExchangeRateDTO.js.map +1 -0
- package/dist/src/models/Api/HotelDTO.d.ts +68 -0
- package/dist/src/models/Api/HotelDTO.js +13 -0
- package/dist/src/models/Api/HotelDTO.js.map +1 -0
- package/dist/src/models/Api/HotelOverrideDTO.d.ts +18 -0
- package/dist/src/models/Api/HotelOverrideDTO.js +3 -0
- package/dist/src/models/Api/HotelOverrideDTO.js.map +1 -0
- package/dist/src/models/Api/RatePlanDTO.d.ts +8 -0
- package/dist/src/models/Api/RatePlanDTO.js +3 -0
- package/dist/src/models/Api/RatePlanDTO.js.map +1 -0
- package/dist/src/models/Api/ReservationsDTO.d.ts +66 -0
- package/dist/src/models/Api/ReservationsDTO.js +3 -0
- package/dist/src/models/Api/ReservationsDTO.js.map +1 -0
- package/dist/src/models/Api/RoomNightDTO.d.ts +11 -0
- package/dist/src/models/Api/RoomNightDTO.js +3 -0
- package/dist/src/models/Api/RoomNightDTO.js.map +1 -0
- package/dist/src/models/Api/RoomNightRateDTO.d.ts +8 -0
- package/dist/src/models/Api/RoomNightRateDTO.js +3 -0
- package/dist/src/models/Api/RoomNightRateDTO.js.map +1 -0
- package/dist/src/models/Api/RoomTypeDTO.d.ts +8 -0
- package/dist/src/models/Api/RoomTypeDTO.js +3 -0
- package/dist/src/models/Api/RoomTypeDTO.js.map +1 -0
- package/dist/src/models/BasketAddonRow.d.ts +36 -0
- package/dist/src/models/BasketAddonRow.js +125 -0
- package/dist/src/models/BasketAddonRow.js.map +1 -0
- package/dist/src/models/BasketRow.d.ts +49 -0
- package/dist/src/models/BasketRow.js +155 -0
- package/dist/src/models/BasketRow.js.map +1 -0
- package/dist/src/models/BasketRowDifferences.d.ts +9 -0
- package/dist/src/models/BasketRowDifferences.js +3 -0
- package/dist/src/models/BasketRowDifferences.js.map +1 -0
- package/dist/src/models/Client/Client.d.ts +4 -0
- package/dist/src/models/Client/Client.js +7 -0
- package/dist/src/models/Client/Client.js.map +1 -0
- package/dist/src/models/Client/Hotel/ColorProfile.d.ts +12 -0
- package/dist/src/models/Client/Hotel/ColorProfile.js +3 -0
- package/dist/src/models/Client/Hotel/ColorProfile.js.map +1 -0
- package/dist/src/models/Client/Hotel/Company.d.ts +25 -0
- package/dist/src/models/Client/Hotel/Company.js +3 -0
- package/dist/src/models/Client/Hotel/Company.js.map +1 -0
- package/dist/src/models/Client/Hotel/DistanceUnitType.types.d.ts +5 -0
- package/dist/src/models/Client/Hotel/DistanceUnitType.types.js +10 -0
- package/dist/src/models/Client/Hotel/DistanceUnitType.types.js.map +1 -0
- package/dist/src/models/Client/Hotel/Hotel.d.ts +89 -0
- package/dist/src/models/Client/Hotel/Hotel.js +3 -0
- package/dist/src/models/Client/Hotel/Hotel.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelAddress.d.ts +10 -0
- package/dist/src/models/Client/Hotel/HotelAddress.js +3 -0
- package/dist/src/models/Client/Hotel/HotelAddress.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelDataSource.types.d.ts +4 -0
- package/dist/src/models/Client/Hotel/HotelDataSource.types.js +9 -0
- package/dist/src/models/Client/Hotel/HotelDataSource.types.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelPerk.d.ts +9 -0
- package/dist/src/models/Client/Hotel/HotelPerk.js +3 -0
- package/dist/src/models/Client/Hotel/HotelPerk.js.map +1 -0
- package/dist/src/models/Client/Hotel/HotelRoomOverwrite.d.ts +3 -0
- package/dist/src/models/Client/Hotel/HotelRoomOverwrite.js +3 -0
- package/dist/src/models/Client/Hotel/HotelRoomOverwrite.js.map +1 -0
- package/dist/src/models/Client/Hotel/WeekdayStartsOn.types.d.ts +4 -0
- package/dist/src/models/Client/Hotel/WeekdayStartsOn.types.js +9 -0
- package/dist/src/models/Client/Hotel/WeekdayStartsOn.types.js.map +1 -0
- package/dist/src/models/CountryCodesAndNumbers.d.ts +8 -0
- package/dist/src/models/CountryCodesAndNumbers.js +259 -0
- package/dist/src/models/CountryCodesAndNumbers.js.map +1 -0
- package/dist/src/models/Currency.d.ts +11 -0
- package/dist/src/models/Currency.js +13 -0
- package/dist/src/models/Currency.js.map +1 -0
- package/dist/src/models/PaymentCard.d.ts +8 -0
- package/dist/src/models/PaymentCard.js +3 -0
- package/dist/src/models/PaymentCard.js.map +1 -0
- package/dist/src/models/Room/Filters/BudgetFilter.d.ts +11 -0
- package/dist/src/models/Room/Filters/BudgetFilter.js +35 -0
- package/dist/src/models/Room/Filters/BudgetFilter.js.map +1 -0
- package/dist/src/models/Room/Filters/Filter.d.ts +5 -0
- package/dist/src/models/Room/Filters/Filter.js +6 -0
- package/dist/src/models/Room/Filters/Filter.js.map +1 -0
- package/dist/src/models/Room/Filters/RateTypeFilter.d.ts +9 -0
- package/dist/src/models/Room/Filters/RateTypeFilter.js +21 -0
- package/dist/src/models/Room/Filters/RateTypeFilter.js.map +1 -0
- package/dist/src/models/Room/Filters/RoomTypeFilter.d.ts +9 -0
- package/dist/src/models/Room/Filters/RoomTypeFilter.js +23 -0
- package/dist/src/models/Room/Filters/RoomTypeFilter.js.map +1 -0
- package/dist/src/models/Room/Room.d.ts +40 -0
- package/dist/src/models/Room/Room.js +117 -0
- package/dist/src/models/Room/Room.js.map +1 -0
- package/dist/src/models/Room/RoomRate.d.ts +72 -0
- package/dist/src/models/Room/RoomRate.js +179 -0
- package/dist/src/models/Room/RoomRate.js.map +1 -0
- package/dist/src/models/Room/RoomRateNight.d.ts +22 -0
- package/dist/src/models/Room/RoomRateNight.js +31 -0
- package/dist/src/models/Room/RoomRateNight.js.map +1 -0
- package/dist/src/models/Room/RoomRateSortable.d.ts +3 -0
- package/dist/src/models/Room/RoomRateSortable.js +3 -0
- package/dist/src/models/Room/RoomRateSortable.js.map +1 -0
- package/dist/src/models/RoomstaySession.d.ts +37 -0
- package/dist/src/models/RoomstaySession.js +5 -0
- package/dist/src/models/RoomstaySession.js.map +1 -0
- package/dist/src/models/Serializable.d.ts +4 -0
- package/dist/src/models/Serializable.js +3 -0
- package/dist/src/models/Serializable.js.map +1 -0
- package/dist/src/models/UserProfile.d.ts +20 -0
- package/dist/src/models/UserProfile.js +3 -0
- package/dist/src/models/UserProfile.js.map +1 -0
- package/dist/src/pages/findReservation/FindReservation.d.ts +2 -0
- package/dist/src/pages/findReservation/FindReservation.js +142 -0
- package/dist/src/pages/findReservation/FindReservation.js.map +1 -0
- package/dist/src/pages/findReservation/FindReservationResults.d.ts +2 -0
- package/dist/src/pages/findReservation/FindReservationResults.js +102 -0
- package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -0
- package/dist/src/pages/findReservation/ReservationRow.d.ts +8 -0
- package/dist/src/pages/findReservation/ReservationRow.js +147 -0
- package/dist/src/pages/findReservation/ReservationRow.js.map +1 -0
- package/dist/src/pages/findReservation/ReservationRowModal.d.ts +10 -0
- package/dist/src/pages/findReservation/ReservationRowModal.js +101 -0
- package/dist/src/pages/findReservation/ReservationRowModal.js.map +1 -0
- package/dist/src/pages/hotel/HotelInfo.d.ts +2 -0
- package/dist/src/pages/hotel/HotelInfo.js +164 -0
- package/dist/src/pages/hotel/HotelInfo.js.map +1 -0
- package/dist/src/pages/hotel/HotelInfoPlaceholder.d.ts +2 -0
- package/dist/src/pages/hotel/HotelInfoPlaceholder.js +11 -0
- package/dist/src/pages/hotel/HotelInfoPlaceholder.js.map +1 -0
- package/dist/src/pages/steps/Step.d.ts +22 -0
- package/dist/src/pages/steps/Step.js +32 -0
- package/dist/src/pages/steps/Step.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +15 -0
- package/dist/src/pages/steps/StepAddon/StepAddon.js +27 -0
- package/dist/src/pages/steps/StepAddon/StepAddon.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.d.ts +2 -0
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.js +35 -0
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.js +60 -0
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.js.map +1 -0
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.js +10 -0
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.d.ts +15 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js +27 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.d.ts +3 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js +62 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js +81 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js.map +1 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js +14 -0
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js.map +1 -0
- package/dist/src/pages/steps/StepDate/StepDate.d.ts +15 -0
- package/dist/src/pages/steps/StepDate/StepDate.js +27 -0
- package/dist/src/pages/steps/StepDate/StepDate.js.map +1 -0
- package/dist/src/pages/steps/StepDate/StepDateComponent.d.ts +3 -0
- package/dist/src/pages/steps/StepDate/StepDateComponent.js +78 -0
- package/dist/src/pages/steps/StepDate/StepDateComponent.js.map +1 -0
- package/dist/src/pages/steps/StepDate/StepDateValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepDate/StepDateValidator.js +10 -0
- package/dist/src/pages/steps/StepDate/StepDateValidator.js.map +1 -0
- package/dist/src/pages/steps/StepGuide.d.ts +7 -0
- package/dist/src/pages/steps/StepGuide.js +35 -0
- package/dist/src/pages/steps/StepGuide.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotel.d.ts +14 -0
- package/dist/src/pages/steps/StepHotel/StepHotel.js +25 -0
- package/dist/src/pages/steps/StepHotel/StepHotel.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.d.ts +3 -0
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.js +128 -0
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.js +56 -0
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.js.map +1 -0
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.d.ts +4 -0
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.js +10 -0
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoom.d.ts +15 -0
- package/dist/src/pages/steps/StepRoom/StepRoom.js +27 -0
- package/dist/src/pages/steps/StepRoom/StepRoom.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.d.ts +2 -0
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +81 -0
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.d.ts +2 -0
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.js +83 -0
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.js.map +1 -0
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.js +13 -0
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.js.map +1 -0
- package/dist/src/pages/steps/StepThanks/StepThanks.d.ts +16 -0
- package/dist/src/pages/steps/StepThanks/StepThanks.js +32 -0
- package/dist/src/pages/steps/StepThanks/StepThanks.js.map +1 -0
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.d.ts +2 -0
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +92 -0
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.js.map +1 -0
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.d.ts +5 -0
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.js +13 -0
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.js.map +1 -0
- package/dist/src/pages/steps/StepValidator.d.ts +4 -0
- package/dist/src/pages/steps/StepValidator.js +6 -0
- package/dist/src/pages/steps/StepValidator.js.map +1 -0
- package/dist/src/providers/CurrencyProvider.d.ts +22 -0
- package/dist/src/providers/CurrencyProvider.js +180 -0
- package/dist/src/providers/CurrencyProvider.js.map +1 -0
- package/dist/src/providers/DIProvider.d.ts +3 -0
- package/dist/src/providers/DIProvider.js +20 -0
- package/dist/src/providers/DIProvider.js.map +1 -0
- package/dist/src/providers/DistanceProvider.d.ts +13 -0
- package/dist/src/providers/DistanceProvider.js +32 -0
- package/dist/src/providers/DistanceProvider.js.map +1 -0
- package/dist/src/providers/FeatureProvider.d.ts +5 -0
- package/dist/src/providers/FeatureProvider.js +36 -0
- package/dist/src/providers/FeatureProvider.js.map +1 -0
- package/dist/src/providers/FilterProvider.d.ts +8 -0
- package/dist/src/providers/FilterProvider.js +40 -0
- package/dist/src/providers/FilterProvider.js.map +1 -0
- package/dist/src/providers/ImageProvider.d.ts +31 -0
- package/dist/src/providers/ImageProvider.js +65 -0
- package/dist/src/providers/ImageProvider.js.map +1 -0
- package/dist/src/providers/LanguageProvider.d.ts +26 -0
- package/dist/src/providers/LanguageProvider.js +105 -0
- package/dist/src/providers/LanguageProvider.js.map +1 -0
- package/dist/src/providers/RatePillProvider.d.ts +33 -0
- package/dist/src/providers/RatePillProvider.js +68 -0
- package/dist/src/providers/RatePillProvider.js.map +1 -0
- package/dist/src/providers/RoomSortProvider.d.ts +9 -0
- package/dist/src/providers/RoomSortProvider.js +28 -0
- package/dist/src/providers/RoomSortProvider.js.map +1 -0
- package/dist/src/providers/RoomstayThemeEngine.d.ts +46 -0
- package/dist/src/providers/RoomstayThemeEngine.js +184 -0
- package/dist/src/providers/RoomstayThemeEngine.js.map +1 -0
- package/dist/src/providers/SessionProvider.d.ts +55 -0
- package/dist/src/providers/SessionProvider.js +245 -0
- package/dist/src/providers/SessionProvider.js.map +1 -0
- package/dist/src/providers/StaticContextProvider.d.ts +5 -0
- package/dist/src/providers/StaticContextProvider.js +11 -0
- package/dist/src/providers/StaticContextProvider.js.map +1 -0
- package/dist/src/providers/feature/ConfirmationVerifyFeature.d.ts +10 -0
- package/dist/src/providers/feature/ConfirmationVerifyFeature.js +16 -0
- package/dist/src/providers/feature/ConfirmationVerifyFeature.js.map +1 -0
- package/dist/src/providers/feature/DatePickerTypeFeature.d.ts +7 -0
- package/dist/src/providers/feature/DatePickerTypeFeature.js +18 -0
- package/dist/src/providers/feature/DatePickerTypeFeature.js.map +1 -0
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.d.ts +7 -0
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js +13 -0
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js.map +1 -0
- package/dist/src/providers/feature/Feature.d.ts +11 -0
- package/dist/src/providers/feature/Feature.js +26 -0
- package/dist/src/providers/feature/Feature.js.map +1 -0
- package/dist/src/providers/feature/FeaturedPromoFeature.d.ts +7 -0
- package/dist/src/providers/feature/FeaturedPromoFeature.js +14 -0
- package/dist/src/providers/feature/FeaturedPromoFeature.js.map +1 -0
- package/dist/src/providers/feature/InlineAddonStepFeature.d.ts +9 -0
- package/dist/src/providers/feature/InlineAddonStepFeature.js +26 -0
- package/dist/src/providers/feature/InlineAddonStepFeature.js.map +1 -0
- package/dist/src/providers/feature/RoomUpsellFeature.d.ts +7 -0
- package/dist/src/providers/feature/RoomUpsellFeature.js +13 -0
- package/dist/src/providers/feature/RoomUpsellFeature.js.map +1 -0
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.d.ts +7 -0
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js +13 -0
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js.map +1 -0
- package/dist/src/providers/storage/LocalStorageProvider.d.ts +16 -0
- package/dist/src/providers/storage/LocalStorageProvider.js +95 -0
- package/dist/src/providers/storage/LocalStorageProvider.js.map +1 -0
- package/dist/src/providers/storage/StorageProvider.d.ts +9 -0
- package/dist/src/providers/storage/StorageProvider.js +13 -0
- package/dist/src/providers/storage/StorageProvider.js.map +1 -0
- package/dist/src/reducers/BasketReducer.d.ts +8 -0
- package/dist/src/reducers/BasketReducer.js +76 -0
- package/dist/src/reducers/BasketReducer.js.map +1 -0
- package/dist/src/routes/NaturallyProgressedStepRoute.d.ts +7 -0
- package/dist/src/routes/NaturallyProgressedStepRoute.js +17 -0
- package/dist/src/routes/NaturallyProgressedStepRoute.js.map +1 -0
- package/dist/src/translations/Translation.d.ts +301 -0
- package/dist/src/translations/Translation.js +305 -0
- package/dist/src/translations/Translation.js.map +1 -0
- package/dist/src/translations/languages/en-gb.d.ts +3 -0
- package/dist/src/translations/languages/en-gb.js +305 -0
- package/dist/src/translations/languages/en-gb.js.map +1 -0
- package/dist/src/translations/languages/es.d.ts +2 -0
- package/dist/src/translations/languages/es.js +5 -0
- package/dist/src/translations/languages/es.js.map +1 -0
- package/dist/src/translations/languages/fr.d.ts +2 -0
- package/dist/src/translations/languages/fr.js +5 -0
- package/dist/src/translations/languages/fr.js.map +1 -0
- package/dist/src/translations/languages/template.d.ts +2 -0
- package/dist/src/translations/languages/template.js +5 -0
- package/dist/src/translations/languages/template.js.map +1 -0
- package/dist/src/translations/languages/zh-cn.d.ts +2 -0
- package/dist/src/translations/languages/zh-cn.js +5 -0
- package/dist/src/translations/languages/zh-cn.js.map +1 -0
- package/dist/src/translations/languages/zh-tw.d.ts +2 -0
- package/dist/src/translations/languages/zh-tw.js +5 -0
- package/dist/src/translations/languages/zh-tw.js.map +1 -0
- package/dist/src/util/CalendarHelper.d.ts +16 -0
- package/dist/src/util/CalendarHelper.js +81 -0
- package/dist/src/util/CalendarHelper.js.map +1 -0
- package/dist/src/util/Color.d.ts +16 -0
- package/dist/src/util/Color.js +21 -0
- package/dist/src/util/Color.js.map +1 -0
- package/dist/src/util/CurrencyHelper.d.ts +3 -0
- package/dist/src/util/CurrencyHelper.js +9 -0
- package/dist/src/util/CurrencyHelper.js.map +1 -0
- package/dist/src/util/DataLayer.d.ts +65 -0
- package/dist/src/util/DataLayer.js +322 -0
- package/dist/src/util/DataLayer.js.map +1 -0
- package/dist/src/util/ScreenSize.d.ts +9 -0
- package/dist/src/util/ScreenSize.js +13 -0
- package/dist/src/util/ScreenSize.js.map +1 -0
- package/dist/src/util/StepManager.d.ts +19 -0
- package/dist/src/util/StepManager.js +67 -0
- package/dist/src/util/StepManager.js.map +1 -0
- package/dist/src/util/StringHelper.d.ts +7 -0
- package/dist/src/util/StringHelper.js +30 -0
- package/dist/src/util/StringHelper.js.map +1 -0
- package/dist/src/util/TextAlignment.d.ts +4 -0
- package/dist/src/util/TextAlignment.js +9 -0
- package/dist/src/util/TextAlignment.js.map +1 -0
- package/dist/src/util/TimeHelper.d.ts +3 -0
- package/dist/src/util/TimeHelper.js +16 -0
- package/dist/src/util/TimeHelper.js.map +1 -0
- package/dist/src/util/TotalCalculator.d.ts +9 -0
- package/dist/src/util/TotalCalculator.js +57 -0
- package/dist/src/util/TotalCalculator.js.map +1 -0
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.d.ts +1 -0
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.js +36 -0
- package/dist/tests/jest/engines/RoomstayThemeEngine.test.js.map +1 -0
- package/dist/tests/jest/events/EventManager.test.d.ts +1 -0
- package/dist/tests/jest/events/EventManager.test.js +99 -0
- package/dist/tests/jest/events/EventManager.test.js.map +1 -0
- package/dist/tests/jest/models/RoomRate.test.d.ts +1 -0
- package/dist/tests/jest/models/RoomRate.test.js +130 -0
- package/dist/tests/jest/models/RoomRate.test.js.map +1 -0
- package/dist/tests/jest/providers/LanguageProvider.test.d.ts +1 -0
- package/dist/tests/jest/providers/LanguageProvider.test.js +20 -0
- package/dist/tests/jest/providers/LanguageProvider.test.js.map +1 -0
- package/dist/tests/jest/providers/SessionProvider.test.d.ts +1 -0
- package/dist/tests/jest/providers/SessionProvider.test.js +217 -0
- package/dist/tests/jest/providers/SessionProvider.test.js.map +1 -0
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.d.ts +1 -0
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.js +126 -0
- package/dist/tests/jest/providers/storage/LocalStorageProvider.test.js.map +1 -0
- package/dist/tests/jest/reducers/BasketReducer.test.d.ts +1 -0
- package/dist/tests/jest/reducers/BasketReducer.test.js +99 -0
- package/dist/tests/jest/reducers/BasketReducer.test.js.map +1 -0
- package/dist/tests/offline/RoomstayBestRateAlert.d.ts +2 -0
- package/dist/tests/offline/RoomstayBestRateAlert.js +22 -0
- package/dist/tests/offline/RoomstayBestRateAlert.js.map +1 -0
- package/dist/tests/offline/entry/RSCompany.d.ts +2 -0
- package/dist/tests/offline/entry/RSCompany.js +111 -0
- package/dist/tests/offline/entry/RSCompany.js.map +1 -0
- package/dist/tests/offline/entry/ReactWrapper.d.ts +2 -0
- package/dist/tests/offline/entry/ReactWrapper.js +59 -0
- package/dist/tests/offline/entry/ReactWrapper.js.map +1 -0
- package/dist/tests/offline/entry/allEngines.d.ts +1 -0
- package/dist/tests/offline/entry/allEngines.js +24 -0
- package/dist/tests/offline/entry/allEngines.js.map +1 -0
- package/dist/tests/offline/entry/components/TestPicker.d.ts +2 -0
- package/dist/tests/offline/entry/components/TestPicker.js +99 -0
- package/dist/tests/offline/entry/components/TestPicker.js.map +1 -0
- package/package.json +180 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const SimpleModal_1 = require("../../generic/modal/SimpleModal");
|
|
5
|
+
const BEButton_1 = require("../../generic/BEButton");
|
|
6
|
+
const Currency_1 = require("../../generic/Currency");
|
|
7
|
+
const Text_1 = require("../../generic/Text");
|
|
8
|
+
const Color_1 = require("../../../util/Color");
|
|
9
|
+
const react_1 = require("react");
|
|
10
|
+
const contexts_1 = require("@frontend/contexts");
|
|
11
|
+
const Headline_1 = require("../../generic/Headline");
|
|
12
|
+
const LineBreak_1 = require("../../generic/LineBreak");
|
|
13
|
+
const Icon_1 = require("../../generic/Icon");
|
|
14
|
+
const Countdown_1 = require("../../generic/Countdown");
|
|
15
|
+
const dayjs = require("dayjs");
|
|
16
|
+
const Pill_1 = require("../../generic/Pill");
|
|
17
|
+
function StepConfirmationCheckoutDifferencesModal(props) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const basketContext = react_1.useContext(contexts_1.BasketContext);
|
|
20
|
+
const [endTime, setEndTime] = react_1.useState(dayjs().add(14, 'minute'));
|
|
21
|
+
react_1.useEffect(() => {
|
|
22
|
+
var _a;
|
|
23
|
+
let cancelled = false;
|
|
24
|
+
let timeout = null;
|
|
25
|
+
if (!!props.differences.length || !!((_a = props.warnings) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
26
|
+
timeout = setTimeout(() => {
|
|
27
|
+
if (!cancelled) {
|
|
28
|
+
props.onClose();
|
|
29
|
+
}
|
|
30
|
+
}, 740000);
|
|
31
|
+
}
|
|
32
|
+
return () => {
|
|
33
|
+
cancelled = true;
|
|
34
|
+
clearTimeout(timeout);
|
|
35
|
+
};
|
|
36
|
+
}, [props.differences.length, (_a = props.warnings) === null || _a === void 0 ? void 0 : _a.length]);
|
|
37
|
+
const mobileFooter = (React.createElement("div", { className: "u-flex" },
|
|
38
|
+
React.createElement(BEButton_1.default, { isText: true, size: 'small', icon: Icon_1.IconType.ArrowLeft, onClick: props.onClose, isLoading: props.isLoading }, "Take me back"),
|
|
39
|
+
React.createElement(BEButton_1.default, { primary: true, filled: true, icon: Icon_1.IconType.ArrowRight, iconPosition: 'right', onClick: props.onProceed, isLoading: props.isLoading }, "Continue with reservation")));
|
|
40
|
+
return (React.createElement(SimpleModal_1.default, { open: !!props.differences.length || !!((_b = props.warnings) === null || _b === void 0 ? void 0 : _b.length), title: 'Your total price has Changed!', mobileFooter: mobileFooter, desktopFooter: React.createElement("div", { className: "u-marg-heavy u-marg@m-" }, mobileFooter), size: SimpleModal_1.SimpleModalSize.Small, alignCenter: true },
|
|
41
|
+
React.createElement("div", { className: "u-marg-heavy u-marg@m-" },
|
|
42
|
+
React.createElement("div", { className: "row" },
|
|
43
|
+
React.createElement("div", { className: "col-md-8" },
|
|
44
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small }, "We apologize for any inconvenience, but the price for your selected reservation has changed during your checkout, please confirm that you accept the new total shown below.")),
|
|
45
|
+
React.createElement("div", { className: "col-md-4" },
|
|
46
|
+
React.createElement(Pill_1.default, { icon: Icon_1.IconType.Time, type: Pill_1.PillType.Primary },
|
|
47
|
+
React.createElement("span", { className: "u-marg-right--light" }, "Reverts in"),
|
|
48
|
+
React.createElement(Countdown_1.default, { endTimeDate: endTime })))),
|
|
49
|
+
React.createElement(LineBreak_1.default, null),
|
|
50
|
+
!!(props.differences && props.differences.length) &&
|
|
51
|
+
props.differences.map((difference) => {
|
|
52
|
+
const basketRow = basketContext.getAllValidRows().find((row) => row.getID() === difference.id);
|
|
53
|
+
return (React.createElement("div", { key: difference.id },
|
|
54
|
+
!!basketRow && (React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
55
|
+
React.createElement("div", { className: "u-marg-bottom--light" },
|
|
56
|
+
React.createElement(Headline_1.default, null, basketRow.getRoom().name)),
|
|
57
|
+
React.createElement(Text_1.default, null, basketRow.getRate().name))),
|
|
58
|
+
React.createElement("div", { className: "u-flex u-marg-bottom--light" },
|
|
59
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Body },
|
|
60
|
+
React.createElement("strong", null, "Displayed price:")),
|
|
61
|
+
React.createElement(Text_1.default, { color: Color_1.Color.Alert },
|
|
62
|
+
React.createElement(Currency_1.default, null, difference.totalPrice.before))),
|
|
63
|
+
React.createElement("div", { className: "u-flex" },
|
|
64
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Body },
|
|
65
|
+
React.createElement("strong", null, "Actual price:")),
|
|
66
|
+
React.createElement(Text_1.default, { color: Color_1.Color.Success },
|
|
67
|
+
React.createElement(Currency_1.default, null, difference.totalPrice.after))),
|
|
68
|
+
React.createElement(LineBreak_1.default, null)));
|
|
69
|
+
}),
|
|
70
|
+
!!(props.warnings && props.warnings.length) &&
|
|
71
|
+
props.warnings.map((warning, index) => {
|
|
72
|
+
return React.createElement(Text_1.default, { key: index }, warning);
|
|
73
|
+
}))));
|
|
74
|
+
}
|
|
75
|
+
exports.default = StepConfirmationCheckoutDifferencesModal;
|
|
76
|
+
//# sourceMappingURL=StepConfirmationCheckoutDifferencesModal.js.map
|
package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepConfirmationCheckoutDifferencesModal.js","sourceRoot":"/","sources":["src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.tsx"],"names":[],"mappings":"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","sourcesContent":["import * as React from 'react';\nimport SimpleModal, { SimpleModalSize } from '../../generic/modal/SimpleModal';\nimport BEButton from '../../generic/BEButton';\nimport BasketRowDifferences from '../../../models/BasketRowDifferences';\nimport Currency from '../../generic/Currency';\nimport Text, { TextType } from '../../generic/Text';\nimport { Color } from '../../../util/Color';\nimport { useContext, useState, useEffect } from 'react';\nimport { BasketContext } from '@frontend/contexts';\nimport Headline from '../../generic/Headline';\nimport LineBreak from '../../generic/LineBreak';\nimport { IconType } from '../../generic/Icon';\nimport Countdown from '../../generic/Countdown';\nimport * as dayjs from 'dayjs';\nimport Pill, { PillType } from '../../generic/Pill';\n\ninterface StepConfirmationCheckoutDifferencesModalProps {\n differences: BasketRowDifferences[];\n warnings: string[];\n\n onClose: () => void;\n onProceed: () => void;\n isLoading?: boolean;\n}\n\nexport default function StepConfirmationCheckoutDifferencesModal(props: StepConfirmationCheckoutDifferencesModalProps) {\n const basketContext = useContext(BasketContext);\n\n const [endTime, setEndTime] = useState(dayjs().add(14, 'minute'));\n\n useEffect(() => {\n let cancelled = false;\n let timeout: any = null;\n\n if (!!props.differences.length || !!props.warnings?.length) {\n timeout = setTimeout(() => {\n if (!cancelled) {\n props.onClose();\n }\n }, 740000);\n }\n\n return () => {\n cancelled = true;\n clearTimeout(timeout);\n };\n }, [props.differences.length, props.warnings?.length]);\n\n const mobileFooter = (\n <div className=\"u-flex\">\n <BEButton isText={true} size={'small'} icon={IconType.ArrowLeft} onClick={props.onClose} isLoading={props.isLoading}>\n Take me back\n </BEButton>\n <BEButton primary={true} filled={true} icon={IconType.ArrowRight} iconPosition={'right'} onClick={props.onProceed} isLoading={props.isLoading}>\n Continue with reservation\n </BEButton>\n </div>\n );\n\n return (\n <SimpleModal\n open={!!props.differences.length || !!props.warnings?.length}\n title={'Your total price has Changed!'}\n mobileFooter={mobileFooter}\n desktopFooter={<div className=\"u-marg-heavy u-marg@m-\">{mobileFooter}</div>}\n size={SimpleModalSize.Small}\n alignCenter={true}\n >\n <div className=\"u-marg-heavy u-marg@m-\">\n <div className=\"row\">\n <div className=\"col-md-8\">\n <Text type={TextType.Small}>\n We apologize for any inconvenience, but the price for your selected reservation has changed during your checkout, please confirm that you accept the new\n total shown below.\n </Text>\n </div>\n <div className=\"col-md-4\">\n <Pill icon={IconType.Time} type={PillType.Primary}>\n <span className=\"u-marg-right--light\">Reverts in</span>\n <Countdown endTimeDate={endTime} />\n </Pill>\n </div>\n </div>\n <LineBreak />\n {!!(props.differences && props.differences.length) &&\n props.differences.map((difference) => {\n const basketRow = basketContext.getAllValidRows().find((row) => row.getID() === difference.id);\n\n return (\n <div key={difference.id}>\n {!!basketRow && (\n <div className=\"u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--light\">\n <Headline>{basketRow.getRoom().name}</Headline>\n </div>\n <Text>{basketRow.getRate().name}</Text>\n </div>\n )}\n <div className=\"u-flex u-marg-bottom--light\">\n <Text type={TextType.Body}>\n <strong>Displayed price:</strong>\n </Text>\n <Text color={Color.Alert}>\n <Currency>{difference.totalPrice.before}</Currency>\n </Text>\n </div>\n <div className=\"u-flex\">\n <Text type={TextType.Body}>\n <strong>Actual price:</strong>\n </Text>\n <Text color={Color.Success}>\n <Currency>{difference.totalPrice.after}</Currency>\n </Text>\n </div>\n <LineBreak />\n </div>\n );\n })}\n {!!(props.warnings && props.warnings.length) &&\n props.warnings.map((warning: string, index: number) => {\n return <Text key={index}>{warning}</Text>;\n })}\n </div>\n </SimpleModal>\n );\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface StepConfirmationCommentsComponentProps {
|
|
3
|
+
inputRef: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const BE_CONFIRMATION_COMMENTS_BLOCK = "BEConfirmationCommentsBlock";
|
|
6
|
+
export declare function StepConfirmationCommentsComponent(props: StepConfirmationCommentsComponentProps): JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepConfirmationCommentsComponent = exports.BE_CONFIRMATION_COMMENTS_BLOCK = void 0;
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const react_i18next_1 = require("react-i18next");
|
|
6
|
+
const DIProvider_1 = require("../../../providers/DIProvider");
|
|
7
|
+
const Translation_1 = require("../../../translations/Translation");
|
|
8
|
+
const Headline_1 = require("../../generic/Headline");
|
|
9
|
+
const LineBreak_1 = require("../../generic/LineBreak");
|
|
10
|
+
const TextArea_1 = require("../../generic/TextArea");
|
|
11
|
+
function OriginalComponent(props) {
|
|
12
|
+
const { t } = react_i18next_1.useTranslation();
|
|
13
|
+
return (React.createElement(React.Fragment, null,
|
|
14
|
+
React.createElement(LineBreak_1.default, null),
|
|
15
|
+
React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
16
|
+
React.createElement("div", { className: "u-marg-bottom" },
|
|
17
|
+
React.createElement(Headline_1.default, { bold: true }, t(Translation_1.Translation.Step.Confirmation.Comments))),
|
|
18
|
+
React.createElement(TextArea_1.default, { ref: props.inputRef, placeholder: t(Translation_1.Translation.Step.Confirmation.Inputs.EnterSpecialRequestsHere) }))));
|
|
19
|
+
}
|
|
20
|
+
exports.BE_CONFIRMATION_COMMENTS_BLOCK = 'BEConfirmationCommentsBlock';
|
|
21
|
+
function StepConfirmationCommentsComponent(props) {
|
|
22
|
+
return DIProvider_1.withDI(exports.BE_CONFIRMATION_COMMENTS_BLOCK, OriginalComponent, props);
|
|
23
|
+
}
|
|
24
|
+
exports.StepConfirmationCommentsComponent = StepConfirmationCommentsComponent;
|
|
25
|
+
//# sourceMappingURL=StepConfirmationCommentsComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepConfirmationCommentsComponent.js","sourceRoot":"/","sources":["src/components/steps/confirmation/StepConfirmationCommentsComponent.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,iDAA+C;AAC/C,8DAAuD;AACvD,mEAAgE;AAChE,qDAA8C;AAC9C,uDAAgD;AAEhD,qDAA8C;AAK9C,SAAS,iBAAiB,CAAC,KAA6C;IACpE,MAAM,EAAE,CAAC,EAAE,GAAG,8BAAc,EAAE,CAAC;IAE/B,OAAO,CACH;QACI,oBAAC,mBAAS,OAAG;QACb,6BAAK,SAAS,EAAC,sBAAsB;YACjC,6BAAK,SAAS,EAAC,eAAe;gBAC1B,oBAAC,kBAAQ,IAAC,IAAI,EAAE,IAAI,IAAG,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAY,CAC1E;YACN,oBAAC,kBAAQ,IAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,wBAAwB,CAAC,GAAI,CAC9G,CACP,CACN,CAAC;AACN,CAAC;AAEY,QAAA,8BAA8B,GAAG,6BAA6B,CAAC;AAC5E,SAAgB,iCAAiC,CAAC,KAA6C;IAC3F,OAAO,mBAAM,CAAC,sCAA8B,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAC5E,CAAC;AAFD,8EAEC","sourcesContent":["import * as React from 'react';\n\nimport { useTranslation } from 'react-i18next';\nimport { withDI } from '../../../providers/DIProvider';\nimport { Translation } from '../../../translations/Translation';\nimport Headline from '../../generic/Headline';\nimport LineBreak from '../../generic/LineBreak';\n\nimport TextArea from '../../generic/TextArea';\nexport interface StepConfirmationCommentsComponentProps {\n inputRef: any;\n}\n\nfunction OriginalComponent(props: StepConfirmationCommentsComponentProps) {\n const { t } = useTranslation();\n\n return (\n <>\n <LineBreak />\n <div className=\"u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom\">\n <Headline bold={true}>{t(Translation.Step.Confirmation.Comments)}</Headline>\n </div>\n <TextArea ref={props.inputRef} placeholder={t(Translation.Step.Confirmation.Inputs.EnterSpecialRequestsHere)} />\n </div>\n </>\n );\n}\n\nexport const BE_CONFIRMATION_COMMENTS_BLOCK = 'BEConfirmationCommentsBlock';\nexport function StepConfirmationCommentsComponent(props: StepConfirmationCommentsComponentProps) {\n return withDI(BE_CONFIRMATION_COMMENTS_BLOCK, OriginalComponent, props);\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AutocompleteProps } from '@material-ui/lab';
|
|
3
|
+
interface CountrySelectorProps extends AutocompleteProps<undefined, undefined, undefined, undefined> {
|
|
4
|
+
validationStatus?: any;
|
|
5
|
+
inputPlaceholder?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
onChange?: (e: React.ChangeEvent) => void;
|
|
8
|
+
}
|
|
9
|
+
export default function StepConfirmationCountrySelector(props: Partial<CountrySelectorProps>): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
const React = require("react");
|
|
15
|
+
const core_1 = require("@material-ui/core");
|
|
16
|
+
const lab_1 = require("@material-ui/lab");
|
|
17
|
+
const Icon_1 = require("../../generic/Icon");
|
|
18
|
+
const classNames = require("classnames");
|
|
19
|
+
const RoomstayThemeEngine_1 = require("../../../providers/RoomstayThemeEngine");
|
|
20
|
+
const react_i18next_1 = require("react-i18next");
|
|
21
|
+
const Translation_1 = require("../../../translations/Translation");
|
|
22
|
+
const CountryCodesAndNumbers_1 = require("../../../models/CountryCodesAndNumbers");
|
|
23
|
+
function StepConfirmationCountrySelector(props) {
|
|
24
|
+
const { validationStatus: validationFields } = props, rest = __rest(props, ["validationStatus"]);
|
|
25
|
+
const classes = classNames('textbox c-input h-100', {
|
|
26
|
+
'--success': validationFields === 'success',
|
|
27
|
+
'--error': validationFields === 'error',
|
|
28
|
+
});
|
|
29
|
+
const { t } = react_i18next_1.useTranslation();
|
|
30
|
+
const popperComponentHandler = (propsForPopperComponent) => {
|
|
31
|
+
return (React.createElement(core_1.Popper, Object.assign({ container: RoomstayThemeEngine_1.default.EngineContainer, placement: "bottom", disablePortal: false, modifiers: {
|
|
32
|
+
flip: {
|
|
33
|
+
enabled: true,
|
|
34
|
+
},
|
|
35
|
+
preventOverflow: {
|
|
36
|
+
enabled: false,
|
|
37
|
+
boundariesElement: 'scrollParent',
|
|
38
|
+
},
|
|
39
|
+
} }, propsForPopperComponent)));
|
|
40
|
+
};
|
|
41
|
+
const getOptionLabelHandler = (option) => {
|
|
42
|
+
return option.label;
|
|
43
|
+
};
|
|
44
|
+
const renderOptionHandler = (option) => {
|
|
45
|
+
return (React.createElement(React.Fragment, null,
|
|
46
|
+
React.createElement("span", null, CountryCodesAndNumbers_1.convertCountryCodeToFlag(option.code)),
|
|
47
|
+
React.createElement("span", { className: "u-marg-left" },
|
|
48
|
+
option.label,
|
|
49
|
+
" (",
|
|
50
|
+
option.code,
|
|
51
|
+
")")));
|
|
52
|
+
};
|
|
53
|
+
const renderInputHandler = (params) => {
|
|
54
|
+
var _a;
|
|
55
|
+
const placeholder = (_a = props.inputPlaceholder) !== null && _a !== void 0 ? _a : t(Translation_1.Translation.Step.Confirmation.Inputs.Country) + ' *';
|
|
56
|
+
return (React.createElement(core_1.TextField, Object.assign({}, params, { placeholder: placeholder, inputProps: Object.assign(Object.assign({}, params.inputProps), { autoComplete: 'new-password' }) })));
|
|
57
|
+
};
|
|
58
|
+
if (typeof rest.value === 'undefined') {
|
|
59
|
+
rest.value = null;
|
|
60
|
+
}
|
|
61
|
+
return (React.createElement("div", { className: classes },
|
|
62
|
+
React.createElement(lab_1.Autocomplete, Object.assign({ options: CountryCodesAndNumbers_1.ListOfCountriesAndCodes, style: { width: '100%' }, autoHighlight: true, getOptionLabel: getOptionLabelHandler, closeIcon: React.createElement(Icon_1.default, { icon: Icon_1.IconType.Close }), popupIcon: React.createElement(Icon_1.default, { icon: Icon_1.IconType.Dropdown }), PopperComponent: popperComponentHandler, renderOption: renderOptionHandler, renderInput: renderInputHandler }, rest, { onChange: (a, b, c) => rest.onChange({ target: { name: rest.name, value: b !== null && b !== void 0 ? b : undefined } }) }))));
|
|
63
|
+
}
|
|
64
|
+
exports.default = StepConfirmationCountrySelector;
|
|
65
|
+
//# sourceMappingURL=StepConfirmationCountrySelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepConfirmationCountrySelector.js","sourceRoot":"/","sources":["src/components/steps/confirmation/StepConfirmationCountrySelector.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,4CAAsD;AACtD,0CAAmE;AACnE,6CAAoD;AAEpD,yCAAyC;AACzC,gFAAyE;AACzE,iDAA+C;AAC/C,mEAAgE;AAChE,mFAA2G;AAW3G,SAAwB,+BAA+B,CAAC,KAAoC;IACxF,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAvD,oBAA+C,CAAQ,CAAC;IAE9D,MAAM,OAAO,GAAG,UAAU,CAAC,uBAAuB,EAAE;QAChD,WAAW,EAAE,gBAAgB,KAAK,SAAS;QAC3C,SAAS,EAAE,gBAAgB,KAAK,OAAO;KAC1C,CAAC,CAAC;IAEH,MAAM,EAAE,CAAC,EAAE,GAAG,8BAAc,EAAE,CAAC;IAC/B,MAAM,sBAAsB,GAAG,CAAC,uBAA4B,EAAE,EAAE;QAC5D,OAAO,CACH,oBAAC,aAAM,kBACH,SAAS,EAAE,6BAAmB,CAAC,eAAe,EAC9C,SAAS,EAAC,QAAQ,EAClB,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE;gBACP,IAAI,EAAE;oBACF,OAAO,EAAE,IAAI;iBAChB;gBACD,eAAe,EAAE;oBACb,OAAO,EAAE,KAAK;oBACd,iBAAiB,EAAE,cAAc;iBACpC;aACJ,IACG,uBAAuB,EAC7B,CACL,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,qBAAqB,GAAG,CAAC,MAAW,EAAE,EAAE;QAC1C,OAAO,MAAM,CAAC,KAAK,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,CAAC,MAAW,EAAE,EAAE;QACxC,OAAO,CACH,oBAAC,KAAK,CAAC,QAAQ;YACX,kCAAO,iDAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAQ;YACpD,8BAAM,SAAS,EAAC,aAAa;gBACxB,MAAM,CAAC,KAAK;;gBAAI,MAAM,CAAC,IAAI;oBACzB,CACM,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,CAAC,MAAW,EAAE,EAAE;;QACvC,MAAM,WAAW,SAAG,KAAK,CAAC,gBAAgB,mCAAI,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;QAErG,OAAO,CACH,oBAAC,gBAAS,oBACF,MAAM,IACV,WAAW,EAAE,WAAW,EACxB,UAAU,kCACH,MAAM,CAAC,UAAU,KACpB,YAAY,EAAE,cAAc,OAElC,CACL,CAAC;IACN,CAAC,CAAC;IAEF,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;KACrB;IAED,OAAO,CACH,6BAAK,SAAS,EAAE,OAAO;QACnB,oBAAC,kBAAY,kBACT,OAAO,EAAE,gDAAuB,EAChC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,aAAa,EAAE,IAAI,EACnB,cAAc,EAAE,qBAAqB,EACrC,SAAS,EAAE,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK,GAAI,EACzC,SAAS,EAAE,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,QAAQ,GAAI,EAC5C,eAAe,EAAE,sBAAsB,EACvC,YAAY,EAAE,mBAAmB,EACjC,WAAW,EAAE,kBAAkB,IAC3B,IAAI,IACR,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,aAAD,CAAC,cAAD,CAAC,GAAI,SAAS,EAAE,EAAS,CAAC,IACrG,CACA,CACT,CAAC;AACN,CAAC;AAhFD,kDAgFC","sourcesContent":["import * as React from 'react';\nimport { TextField, Popper } from '@material-ui/core';\nimport { Autocomplete, AutocompleteProps } from '@material-ui/lab';\nimport Icon, { IconType } from '../../generic/Icon';\n\nimport * as classNames from 'classnames';\nimport RoomstayThemeEngine from '../../../providers/RoomstayThemeEngine';\nimport { useTranslation } from 'react-i18next';\nimport { Translation } from '../../../translations/Translation';\nimport { convertCountryCodeToFlag, ListOfCountriesAndCodes } from '../../../models/CountryCodesAndNumbers';\n\ninterface CountrySelectorProps extends AutocompleteProps<undefined, undefined, undefined, undefined> {\n validationStatus?: any;\n\n inputPlaceholder?: string;\n\n name: string;\n onChange?: (e: React.ChangeEvent) => void;\n}\n\nexport default function StepConfirmationCountrySelector(props: Partial<CountrySelectorProps>) {\n const { validationStatus: validationFields, ...rest } = props;\n\n const classes = classNames('textbox c-input h-100', {\n '--success': validationFields === 'success',\n '--error': validationFields === 'error',\n });\n\n const { t } = useTranslation();\n const popperComponentHandler = (propsForPopperComponent: any) => {\n return (\n <Popper\n container={RoomstayThemeEngine.EngineContainer}\n placement=\"bottom\"\n disablePortal={false}\n modifiers={{\n flip: {\n enabled: true,\n },\n preventOverflow: {\n enabled: false,\n boundariesElement: 'scrollParent',\n },\n }}\n {...propsForPopperComponent}\n />\n );\n };\n\n const getOptionLabelHandler = (option: any) => {\n return option.label;\n };\n\n const renderOptionHandler = (option: any) => {\n return (\n <React.Fragment>\n <span>{convertCountryCodeToFlag(option.code)}</span>\n <span className=\"u-marg-left\">\n {option.label} ({option.code})\n </span>\n </React.Fragment>\n );\n };\n\n const renderInputHandler = (params: any) => {\n const placeholder = props.inputPlaceholder ?? t(Translation.Step.Confirmation.Inputs.Country) + ' *';\n\n return (\n <TextField\n {...params}\n placeholder={placeholder}\n inputProps={{\n ...params.inputProps,\n autoComplete: 'new-password', // disable autocomplete and autofill\n }}\n />\n );\n };\n\n if (typeof rest.value === 'undefined') {\n rest.value = null;\n }\n\n return (\n <div className={classes}>\n <Autocomplete\n options={ListOfCountriesAndCodes}\n style={{ width: '100%' }}\n autoHighlight={true}\n getOptionLabel={getOptionLabelHandler}\n closeIcon={<Icon icon={IconType.Close} />}\n popupIcon={<Icon icon={IconType.Dropdown} />}\n PopperComponent={popperComponentHandler}\n renderOption={renderOptionHandler}\n renderInput={renderInputHandler}\n {...rest}\n onChange={(a, b, c) => rest.onChange({ target: { name: rest.name, value: b ?? undefined } } as any)}\n />\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const React = require("react");
|
|
13
|
+
const react_1 = require("react");
|
|
14
|
+
const Headline_1 = require("../../generic/Headline");
|
|
15
|
+
const Translation_1 = require("../../../translations/Translation");
|
|
16
|
+
const Text_1 = require("../../generic/Text");
|
|
17
|
+
const Color_1 = require("../../../util/Color");
|
|
18
|
+
const react_hook_form_1 = require("react-hook-form");
|
|
19
|
+
const RoomContactDetails_1 = require("./RoomContactDetails");
|
|
20
|
+
const StepConfirmationPaymentDetails_1 = require("./StepConfirmationPaymentDetails");
|
|
21
|
+
const LineBreak_1 = require("../../generic/LineBreak");
|
|
22
|
+
const StepConfirmationPoliciesSection_1 = require("./StepConfirmationPoliciesSection");
|
|
23
|
+
const NextStepButton_1 = require("../../generic/buttons/NextStepButton");
|
|
24
|
+
const react_i18next_1 = require("react-i18next");
|
|
25
|
+
const contexts_1 = require("@frontend/contexts");
|
|
26
|
+
const Checkbox_1 = require("../../generic/Checkbox");
|
|
27
|
+
const BookingAPI_1 = require("../../../api/BookingAPI");
|
|
28
|
+
const Icon_1 = require("../../generic/Icon");
|
|
29
|
+
const SSLSecureBadge_1 = require("../../generic/badging/SSLSecureBadge");
|
|
30
|
+
const StepConfirmationCheckoutDifferencesModal_1 = require("./StepConfirmationCheckoutDifferencesModal");
|
|
31
|
+
const react_router_1 = require("react-router");
|
|
32
|
+
const ErrorModal_1 = require("../../generic/modal/ErrorModal");
|
|
33
|
+
const DataLayer_1 = require("../../../util/DataLayer");
|
|
34
|
+
const Sentry = require("@sentry/browser");
|
|
35
|
+
const severity_1 = require("@sentry/types/dist/severity");
|
|
36
|
+
const StepConfirmationPolicyBlock_1 = require("./StepConfirmationPolicyBlock");
|
|
37
|
+
const ErrorContext_1 = require("../../../contexts/ErrorContext");
|
|
38
|
+
const StepConfirmationAcknowledgement_1 = require("./StepConfirmationAcknowledgement");
|
|
39
|
+
const BEButton_1 = require("../../generic/BEButton");
|
|
40
|
+
const Alert_1 = require("../../generic/Alert");
|
|
41
|
+
const StepConfirmation_1 = require("../../../pages/steps/StepConfirmation/StepConfirmation");
|
|
42
|
+
const StepRoom_1 = require("../../../pages/steps/StepRoom/StepRoom");
|
|
43
|
+
const StepConfirmationCommentsComponent_1 = require("./StepConfirmationCommentsComponent");
|
|
44
|
+
const ConfirmationFormContext_1 = require("../../../contexts/ConfirmationFormContext");
|
|
45
|
+
const hooks_1 = require("@frontend/hooks");
|
|
46
|
+
const ConfirmationVerifyFeature_1 = require("../../../providers/feature/ConfirmationVerifyFeature");
|
|
47
|
+
const TextBox_1 = require("../../generic/TextBox");
|
|
48
|
+
const ShowIATANumberOnCheckoutFeature_1 = require("../../../providers/feature/ShowIATANumberOnCheckoutFeature");
|
|
49
|
+
const ScrollFocusHook_1 = require("../../../hooks/ScrollFocusHook");
|
|
50
|
+
function StepConfirmationForm() {
|
|
51
|
+
var _a;
|
|
52
|
+
const { t } = react_i18next_1.useTranslation();
|
|
53
|
+
const { hotel } = hooks_1.useCurrentHotel();
|
|
54
|
+
const context = react_1.useContext(contexts_1.BookingEngineContext);
|
|
55
|
+
const formContext = react_1.useContext(ConfirmationFormContext_1.default);
|
|
56
|
+
const [source, setSource] = react_1.useState('');
|
|
57
|
+
context.engine
|
|
58
|
+
.getSessionProvider()
|
|
59
|
+
.getSession()
|
|
60
|
+
.then((session) => {
|
|
61
|
+
setSource(session.source);
|
|
62
|
+
});
|
|
63
|
+
const basketContext = react_1.useContext(contexts_1.BasketContext);
|
|
64
|
+
const [isLoading, setIsLoading] = react_1.useState(false);
|
|
65
|
+
const [differences, setDifferences] = react_1.useState([]);
|
|
66
|
+
const [warnings, setWarnings] = react_1.useState([]);
|
|
67
|
+
const [reservationData, setReservationData] = react_1.useState(null);
|
|
68
|
+
const [apiErrors, setApiErrors] = react_1.useState('');
|
|
69
|
+
const [confirmationPolicyError, setConfirmationPolicyError] = react_1.useState(false);
|
|
70
|
+
const commentTextbox = react_1.useRef(null);
|
|
71
|
+
const tokenizerRef = react_1.useRef(null);
|
|
72
|
+
const confirmationPolicy = react_1.useRef(null);
|
|
73
|
+
const { focusElement } = ScrollFocusHook_1.useWindowScroll();
|
|
74
|
+
const history = react_router_1.useHistory();
|
|
75
|
+
const methods = react_hook_form_1.useForm({
|
|
76
|
+
mode: 'onChange',
|
|
77
|
+
reValidateMode: 'onChange',
|
|
78
|
+
});
|
|
79
|
+
const parseReservationIdsFromData = (data) => {
|
|
80
|
+
var _a;
|
|
81
|
+
return (_a = data === null || data === void 0 ? void 0 : data.reservations) === null || _a === void 0 ? void 0 : _a.map((reservation) => reservation.reservationNumber);
|
|
82
|
+
};
|
|
83
|
+
const apiErrorsOnClose = () => {
|
|
84
|
+
return setApiErrors('');
|
|
85
|
+
};
|
|
86
|
+
const onCheckoutClose = () => {
|
|
87
|
+
try {
|
|
88
|
+
rollbackReservation();
|
|
89
|
+
}
|
|
90
|
+
catch (ex) {
|
|
91
|
+
console.log('Failed to rollback reservations');
|
|
92
|
+
Sentry.captureException(ex);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const onCheckoutProceed = () => {
|
|
96
|
+
try {
|
|
97
|
+
commitReservation();
|
|
98
|
+
}
|
|
99
|
+
catch (ex) {
|
|
100
|
+
console.log('Failed to commit reservation');
|
|
101
|
+
Sentry.captureException(ex);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
const commitReservation = (initialReservationData) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const resData = reservationData !== null && reservationData !== void 0 ? reservationData : initialReservationData;
|
|
106
|
+
setIsLoading(true);
|
|
107
|
+
if (resData) {
|
|
108
|
+
const reservationIds = parseReservationIdsFromData(resData);
|
|
109
|
+
if (reservationIds.length) {
|
|
110
|
+
BookingAPI_1.default.Reservation.commit(reservationIds, hotel.hotelID)
|
|
111
|
+
.then((response) => {
|
|
112
|
+
try {
|
|
113
|
+
DataLayer_1.default.instance.sendReservationConfirmed(basketContext.getAllValidRows(), basketContext.basketAddonRows, response);
|
|
114
|
+
}
|
|
115
|
+
catch (ex) {
|
|
116
|
+
Sentry.captureException('Failed to read reservations from GTM code: ' + JSON.stringify(ex));
|
|
117
|
+
}
|
|
118
|
+
basketContext.checkedOut(response);
|
|
119
|
+
})
|
|
120
|
+
.catch((ex) => {
|
|
121
|
+
console.log(ex);
|
|
122
|
+
setIsLoading(false);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
setIsLoading(false);
|
|
127
|
+
ErrorContext_1.ErrorHandler.add({ message: 'Committing reservation failed due to an unexpected error' });
|
|
128
|
+
Sentry.captureException('No reservation IDs found when attempting to commit: ' + JSON.stringify(resData));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const rollbackReservation = () => __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const reservationIds = parseReservationIdsFromData(reservationData);
|
|
134
|
+
if (reservationIds.length) {
|
|
135
|
+
setIsLoading(true);
|
|
136
|
+
yield BookingAPI_1.default.Reservation.rollback(reservationIds, hotel.hotelID);
|
|
137
|
+
setIsLoading(false);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
Sentry.captureException('No reservation IDs found when attempting to rollback: ' + JSON.stringify(reservationData));
|
|
141
|
+
}
|
|
142
|
+
history.push(StepRoom_1.default.getStepUrl());
|
|
143
|
+
});
|
|
144
|
+
const returnToPickRooms = () => __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
history.push(StepRoom_1.default.getStepUrl());
|
|
146
|
+
});
|
|
147
|
+
const makeReservation = () => __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
var _b;
|
|
149
|
+
if (ConfirmationVerifyFeature_1.default.isActive() && !((_b = confirmationPolicy === null || confirmationPolicy === void 0 ? void 0 : confirmationPolicy.current) === null || _b === void 0 ? void 0 : _b.checked)) {
|
|
150
|
+
setConfirmationPolicyError(true);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
let adhocValid = true;
|
|
154
|
+
formContext.errorChecks.forEach((check) => {
|
|
155
|
+
if (!check().validate()) {
|
|
156
|
+
adhocValid = false;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
if (!adhocValid) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
setConfirmationPolicyError(false);
|
|
163
|
+
setIsLoading(true);
|
|
164
|
+
try {
|
|
165
|
+
const card = yield tokenizerRef.current.getTokenizedCode();
|
|
166
|
+
const allDetails = methods.getValues();
|
|
167
|
+
const userProfiles = basketRows.map((row, i) => {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
const rowNumber = i + 1;
|
|
170
|
+
return {
|
|
171
|
+
FirstName: allDetails[`Forename${rowNumber}`],
|
|
172
|
+
LastName: allDetails[`Surname${rowNumber}`],
|
|
173
|
+
Phone: (_a = allDetails[`Phone${rowNumber}`]) === null || _a === void 0 ? void 0 : _a.replace(' ', ''),
|
|
174
|
+
Email: allDetails[`Email${rowNumber}`],
|
|
175
|
+
Address: {
|
|
176
|
+
Line1: allDetails[`Address${rowNumber}`],
|
|
177
|
+
City: allDetails[`City${rowNumber}`],
|
|
178
|
+
PostalCode: allDetails[`PostCode${rowNumber}`],
|
|
179
|
+
Country: (_b = allDetails[`Country${rowNumber}`]) === null || _b === void 0 ? void 0 : _b.label,
|
|
180
|
+
},
|
|
181
|
+
MarketingOptIn: false,
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
DataLayer_1.default.instance.sendInteraction('Complete Booking', DataLayer_1.InteractionType.BUTTON, DataLayer_1.InteractionStep.GUEST_DETAILS);
|
|
185
|
+
BookingAPI_1.default.Reservation.bookNow(basketRows, userProfiles, card, basketAddonRows, commentTextbox.current.value, allDetails.IATANumber, hotel.hotelID)
|
|
186
|
+
.then((data) => {
|
|
187
|
+
setReservationData(data);
|
|
188
|
+
const apiDifferences = [];
|
|
189
|
+
if (data.reservations) {
|
|
190
|
+
data.reservations.forEach((reservation, index) => {
|
|
191
|
+
const diff = basketContext.currentBasketRows[index].checkDiffFromReservation(reservation);
|
|
192
|
+
if (diff) {
|
|
193
|
+
apiDifferences.push(diff);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
Sentry.addBreadcrumb({
|
|
199
|
+
level: severity_1.Severity.Error,
|
|
200
|
+
message: 'No reservation data: ' + JSON.stringify(data),
|
|
201
|
+
});
|
|
202
|
+
throw new Error('The reservation could not be completed due to an unexpected issue, please try again');
|
|
203
|
+
}
|
|
204
|
+
// If there are differences, we want to display them to make sure the booking still needs to proceed
|
|
205
|
+
if (apiDifferences.length || (data.warnings && data.warnings.length)) {
|
|
206
|
+
setIsLoading(false);
|
|
207
|
+
setDifferences(apiDifferences);
|
|
208
|
+
setWarnings(data.warnings);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
// Everything is clear, re-run the totals and commit to the booking
|
|
212
|
+
commitReservation(data);
|
|
213
|
+
}
|
|
214
|
+
})
|
|
215
|
+
.catch((error) => {
|
|
216
|
+
var _a;
|
|
217
|
+
setIsLoading(false);
|
|
218
|
+
setApiErrors((_a = error === null || error === void 0 ? void 0 : error.Message) !== null && _a !== void 0 ? _a : 'Unexpected error returned from the booking database.');
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
catch (ex) {
|
|
222
|
+
setIsLoading(false);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
const onSubmit = () => __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
yield makeReservation();
|
|
227
|
+
});
|
|
228
|
+
const basketRows = basketContext.getAllValidRows();
|
|
229
|
+
const basketAddonRows = basketContext.basketAddonRows;
|
|
230
|
+
const [copyCheckBox, setCheckBox] = react_1.useState(true);
|
|
231
|
+
const [showErrors, setShowErrors] = react_1.useState(false);
|
|
232
|
+
react_1.useEffect(() => {
|
|
233
|
+
['Forename', 'Surname', 'Email', 'Phone', 'Country', 'City', 'Address', 'PostCode'].forEach((input) => {
|
|
234
|
+
updateRepeatingValues(input, methods.getValues(`${input}1`));
|
|
235
|
+
});
|
|
236
|
+
}, [copyCheckBox]);
|
|
237
|
+
react_1.useEffect(() => {
|
|
238
|
+
DataLayer_1.default.instance.sendCheckoutView(basketRows, basketAddonRows);
|
|
239
|
+
const { unsubscribe } = methods.watch((allFields, { name, type }) => {
|
|
240
|
+
if (type === 'change') {
|
|
241
|
+
onFormChangeHandler(name, allFields[name]);
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
return () => {
|
|
245
|
+
unsubscribe();
|
|
246
|
+
};
|
|
247
|
+
}, []);
|
|
248
|
+
react_1.useEffect(() => {
|
|
249
|
+
scrollFirstErrorIntoView();
|
|
250
|
+
}, [(_a = methods === null || methods === void 0 ? void 0 : methods.formState) === null || _a === void 0 ? void 0 : _a.errors]);
|
|
251
|
+
const updateRepeatingValues = (field, value) => {
|
|
252
|
+
if (basketRows.length >= 2) {
|
|
253
|
+
for (let i = 2; i <= basketRows.length; i++) {
|
|
254
|
+
methods.setValue(`${field}${i}`, value);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
const onFormChangeHandler = (fieldName, value) => {
|
|
259
|
+
if (fieldName === null || fieldName === void 0 ? void 0 : fieldName.endsWith('1')) {
|
|
260
|
+
if (copyCheckBox) {
|
|
261
|
+
updateRepeatingValues(fieldName.replace('1', ''), value);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
const scrollFirstErrorIntoView = () => {
|
|
266
|
+
var _a;
|
|
267
|
+
if ((_a = methods === null || methods === void 0 ? void 0 : methods.formState) === null || _a === void 0 ? void 0 : _a.errors) {
|
|
268
|
+
setTimeout(() => {
|
|
269
|
+
var _a, _b;
|
|
270
|
+
const values = Object.values((_a = methods === null || methods === void 0 ? void 0 : methods.formState) === null || _a === void 0 ? void 0 : _a.errors);
|
|
271
|
+
if (values.length > 0 && ((_b = values[0]) === null || _b === void 0 ? void 0 : _b.ref)) {
|
|
272
|
+
focusElement(values[0].ref);
|
|
273
|
+
}
|
|
274
|
+
}, 350);
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
const onNextStepClicked = () => __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
yield methods.handleSubmit(onSubmit)();
|
|
279
|
+
scrollFirstErrorIntoView();
|
|
280
|
+
setShowErrors(true);
|
|
281
|
+
return false;
|
|
282
|
+
});
|
|
283
|
+
return (React.createElement(React.Fragment, null,
|
|
284
|
+
React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
285
|
+
React.createElement("div", { className: "u-marg-bottom--light" },
|
|
286
|
+
React.createElement(Headline_1.default, { bold: true }, t(Translation_1.Translation.Step.Confirmation.GuestDetails))),
|
|
287
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small, color: Color_1.Color.Success },
|
|
288
|
+
React.createElement("strong", null, t(Translation_1.Translation.Step.Confirmation.AlmostDone, { required: '*' })))),
|
|
289
|
+
React.createElement(react_hook_form_1.FormProvider, Object.assign({}, methods),
|
|
290
|
+
React.createElement("form", { onSubmit: methods.handleSubmit(onSubmit) }, basketRows.map((room, index) => {
|
|
291
|
+
const checkboxOnChange = (value) => {
|
|
292
|
+
setCheckBox(value);
|
|
293
|
+
};
|
|
294
|
+
return (React.createElement("div", { key: room.getID() },
|
|
295
|
+
React.createElement("div", { className: index === 0 ? '' : 'u-marg-bottom--heavy' },
|
|
296
|
+
React.createElement(RoomContactDetails_1.default, { showErrors: showErrors, basketRow: room, roomNumber: index + 1, expandable: basketRows.length !== 1 })),
|
|
297
|
+
basketRows.length > 1 && index === 0 ? (React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
298
|
+
React.createElement(Checkbox_1.default, { label: t(Translation_1.Translation.Step.Confirmation.ApplySameInfoToOtherRooms), checked: copyCheckBox, onChange: checkboxOnChange }))) : null));
|
|
299
|
+
}))),
|
|
300
|
+
source === 'inline' ? (React.createElement(Alert_1.default, { type: Alert_1.AlertType.Accent2, heavyPadding: true },
|
|
301
|
+
React.createElement("div", { className: "u-flex u-w-100 flex-wrap flex-xl-nowrap" },
|
|
302
|
+
React.createElement("div", null,
|
|
303
|
+
React.createElement(Text_1.default, { color: Color_1.Color.Accent, bold: true }, t(Translation_1.Translation.Step.Confirmation.WantMoreRooms)),
|
|
304
|
+
React.createElement(Text_1.default, { color: Color_1.Color.Navy }, t(Translation_1.Translation.Step.Confirmation.YouCanAddAndEditRooms))),
|
|
305
|
+
React.createElement("div", { className: "d-flex align-items-center u-marg-top@xl-" },
|
|
306
|
+
React.createElement(BEButton_1.default, { filled: true, primary: true, icon: Icon_1.IconType.Add, iconPosition: "left", onClick: returnToPickRooms }, t(Translation_1.Translation.Step.Confirmation.AddMoreRooms)))))) : (React.createElement(React.Fragment, null)),
|
|
307
|
+
React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
308
|
+
React.createElement("div", { className: "u-marg-bottom" },
|
|
309
|
+
React.createElement(Headline_1.default, { bold: true }, t(Translation_1.Translation.Step.Confirmation.PaymentInformation))),
|
|
310
|
+
React.createElement(StepConfirmationPaymentDetails_1.default, { ref: tokenizerRef }),
|
|
311
|
+
React.createElement("div", { className: "u-marg-top u-flex align-items-center" },
|
|
312
|
+
React.createElement("div", { className: "u-flex align-items-center justify-content-start" },
|
|
313
|
+
React.createElement(Icon_1.default, { icon: Icon_1.IconType.Lock, color: Color_1.Color.Success }),
|
|
314
|
+
React.createElement("div", { className: "u-marg-left--light" },
|
|
315
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small, color: Color_1.Color.Success },
|
|
316
|
+
React.createElement("strong", null, "Secured")))),
|
|
317
|
+
React.createElement(SSLSecureBadge_1.default, null))),
|
|
318
|
+
ShowIATANumberOnCheckoutFeature_1.default.isActive() && (React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
319
|
+
React.createElement("div", { className: "u-marg-bottom" },
|
|
320
|
+
React.createElement(Headline_1.default, { bold: true }, "Travel Agent")),
|
|
321
|
+
React.createElement("div", { className: "u-marg-bottom--light" },
|
|
322
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small },
|
|
323
|
+
React.createElement("strong", null, t(Translation_1.Translation.Step.Confirmation.Inputs.IATANumber)))),
|
|
324
|
+
React.createElement("div", { className: "u-marg-bottom--light" },
|
|
325
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small }, t(Translation_1.Translation.Step.Confirmation.Inputs.IATANumberGuide))),
|
|
326
|
+
React.createElement(TextBox_1.default, Object.assign({ placeholder: t(Translation_1.Translation.Step.Confirmation.Inputs.IATANumber), wide: true }, methods.register('IATANumber'))))),
|
|
327
|
+
React.createElement(StepConfirmationCommentsComponent_1.StepConfirmationCommentsComponent, { inputRef: commentTextbox }),
|
|
328
|
+
React.createElement(LineBreak_1.default, null),
|
|
329
|
+
React.createElement(StepConfirmationPoliciesSection_1.default, null),
|
|
330
|
+
React.createElement("div", { className: "u-pad-top--light u-marg-bottom" },
|
|
331
|
+
React.createElement(StepConfirmationPolicyBlock_1.default, null)),
|
|
332
|
+
ConfirmationVerifyFeature_1.default.isActive() && (React.createElement(React.Fragment, null,
|
|
333
|
+
React.createElement(LineBreak_1.default, null),
|
|
334
|
+
React.createElement("div", null,
|
|
335
|
+
React.createElement(StepConfirmationAcknowledgement_1.default, { ref: confirmationPolicy, confirmationPolicyError: confirmationPolicyError })))),
|
|
336
|
+
React.createElement("div", { className: "u-flex u-marg-top--heavy justify-content-end" },
|
|
337
|
+
React.createElement(NextStepButton_1.default, { text: t(Translation_1.Translation.Step.Confirmation.ConfirmReservation), history: null, isLoading: isLoading, currentStep: StepConfirmation_1.default, onClick: onNextStepClicked })),
|
|
338
|
+
React.createElement(ErrorModal_1.default, { open: !!apiErrors, onClose: apiErrorsOnClose },
|
|
339
|
+
React.createElement(Text_1.default, null, apiErrors)),
|
|
340
|
+
React.createElement(StepConfirmationCheckoutDifferencesModal_1.default, { differences: differences, warnings: warnings, isLoading: isLoading, onClose: onCheckoutClose, onProceed: onCheckoutProceed })));
|
|
341
|
+
}
|
|
342
|
+
exports.default = StepConfirmationForm;
|
|
343
|
+
//# sourceMappingURL=StepConfirmationForm.js.map
|