@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,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const Color_1 = require("../../util/Color");
|
|
5
|
+
const Icon_1 = require("../../components/generic/Icon");
|
|
6
|
+
const Text_1 = require("../../components/generic/Text");
|
|
7
|
+
const Headline_1 = require("../../components/generic/Headline");
|
|
8
|
+
const HotelLocationMap_1 = require("../../components/generic/map/HotelLocationMap");
|
|
9
|
+
const react_1 = require("react");
|
|
10
|
+
const fslightbox_react_1 = require("fslightbox-react");
|
|
11
|
+
const TransportDistanceFromHotelBlock_1 = require("../../components/summary/TransportDistanceFromHotelBlock");
|
|
12
|
+
const hooks_1 = require("@frontend/hooks");
|
|
13
|
+
const BEButton_1 = require("../../components/generic/BEButton");
|
|
14
|
+
const react_router_1 = require("react-router");
|
|
15
|
+
const StepManager_1 = require("../../util/StepManager");
|
|
16
|
+
const react_i18next_1 = require("react-i18next");
|
|
17
|
+
const Translation_1 = require("../../translations/Translation");
|
|
18
|
+
const ImageProvider_1 = require("../../providers/ImageProvider");
|
|
19
|
+
const RoomstayThemeEngine_1 = require("../../providers/RoomstayThemeEngine");
|
|
20
|
+
function HotelInfo() {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22
|
+
const { hotel } = hooks_1.useCurrentHotel();
|
|
23
|
+
const history = react_router_1.useHistory();
|
|
24
|
+
const { t } = react_i18next_1.useTranslation();
|
|
25
|
+
const imageUrl = hotel === null || hotel === void 0 ? void 0 : hotel.heroImage;
|
|
26
|
+
const { line1, line2, postalCode, city, country } = (_a = hotel === null || hotel === void 0 ? void 0 : hotel.address) !== null && _a !== void 0 ? _a : {};
|
|
27
|
+
const [lightboxController, setLightboxController] = react_1.useState({ toggler: false, slide: 1 });
|
|
28
|
+
const [images, setImages] = react_1.useState([]);
|
|
29
|
+
const openSlider = (slide) => {
|
|
30
|
+
setLightboxController((controller) => ({ toggler: !controller.toggler, slide: slide + 1 }));
|
|
31
|
+
};
|
|
32
|
+
const openSliderOnClick = () => {
|
|
33
|
+
openSlider(4);
|
|
34
|
+
};
|
|
35
|
+
react_1.useEffect(() => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
const newImages = [];
|
|
38
|
+
if ((_a = hotel === null || hotel === void 0 ? void 0 : hotel.images) === null || _a === void 0 ? void 0 : _a.length) {
|
|
39
|
+
newImages.push(...hotel === null || hotel === void 0 ? void 0 : hotel.images);
|
|
40
|
+
}
|
|
41
|
+
else if (hotel === null || hotel === void 0 ? void 0 : hotel.rooms) {
|
|
42
|
+
for (const room of Object.values(hotel === null || hotel === void 0 ? void 0 : hotel.rooms)) {
|
|
43
|
+
(_b = room.images) === null || _b === void 0 ? void 0 : _b.forEach((image) => {
|
|
44
|
+
newImages.push(image);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
setImages(newImages);
|
|
49
|
+
}, [hotel === null || hotel === void 0 ? void 0 : hotel.rooms]);
|
|
50
|
+
// TODO: Add a generic handler for this to avoid setting it in every new page
|
|
51
|
+
react_1.useEffect(() => {
|
|
52
|
+
if (hotel) {
|
|
53
|
+
RoomstayThemeEngine_1.default.changeTheme(hotel.colors);
|
|
54
|
+
}
|
|
55
|
+
}, [hotel === null || hotel === void 0 ? void 0 : hotel.colors]);
|
|
56
|
+
const onBookNowClick = () => {
|
|
57
|
+
history.push(StepManager_1.default.getFirstStep().getStepUrl());
|
|
58
|
+
};
|
|
59
|
+
const getImage = (index) => {
|
|
60
|
+
const openSliderOnClickHandler = () => {
|
|
61
|
+
openSlider(index);
|
|
62
|
+
};
|
|
63
|
+
const resizedUrl = ImageProvider_1.default.resizeImage(images[index], ImageProvider_1.ImageSize.Small);
|
|
64
|
+
return (React.createElement("div", { style: { backgroundImage: `url('${resizedUrl}')`, paddingTop: '75%' }, className: "c-images u-block u-w-100 u-marg-bottom u-marg-bottom--heavy", onClick: openSliderOnClickHandler }));
|
|
65
|
+
};
|
|
66
|
+
return (React.createElement(React.Fragment, null,
|
|
67
|
+
React.createElement("div", { style: { backgroundImage: `url('${imageUrl}')` }, className: "c-masthead has-tint" },
|
|
68
|
+
React.createElement("div", { className: "container" },
|
|
69
|
+
React.createElement("div", { className: "c-masthead__body u-fill-white u-pad--heavy u-shadow-accent" },
|
|
70
|
+
React.createElement("h1", { className: "c-masthead__header" }, hotel === null || hotel === void 0 ? void 0 : hotel.name),
|
|
71
|
+
React.createElement("h2", { className: "c-masthead__sub-header" }, (_b = hotel === null || hotel === void 0 ? void 0 : hotel.address) === null || _b === void 0 ? void 0 : _b.country)))),
|
|
72
|
+
React.createElement("div", { className: "u-fill-snow u-pad--heavy-med u-pad-top-bottom--heavy@m-" },
|
|
73
|
+
React.createElement("div", { className: "container" },
|
|
74
|
+
React.createElement("div", { className: "row" },
|
|
75
|
+
React.createElement("div", { className: "col-md-6 u-flex align-items-center" },
|
|
76
|
+
React.createElement("ul", null,
|
|
77
|
+
React.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
|
|
78
|
+
React.createElement(Icon_1.default, { icon: Icon_1.IconType.Map, size: "1.3em", color: Color_1.Color.Accent }),
|
|
79
|
+
React.createElement("span", { className: "u-flex__item u-marg-left" },
|
|
80
|
+
line1,
|
|
81
|
+
React.createElement("br", null),
|
|
82
|
+
line2,
|
|
83
|
+
" ",
|
|
84
|
+
postalCode,
|
|
85
|
+
", ",
|
|
86
|
+
country)),
|
|
87
|
+
React.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
|
|
88
|
+
React.createElement(Icon_1.default, { icon: Icon_1.IconType.Phone, size: "1.3em", color: Color_1.Color.Accent }),
|
|
89
|
+
React.createElement("span", { className: "u-flex__item u-marg-left" }, hotel === null || hotel === void 0 ? void 0 : hotel.phone)),
|
|
90
|
+
React.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
|
|
91
|
+
React.createElement(Icon_1.default, { icon: Icon_1.IconType.Hotel2, size: "1.3em", color: Color_1.Color.Accent }),
|
|
92
|
+
React.createElement("span", { className: "u-flex__item u-marg-left" },
|
|
93
|
+
React.createElement("a", { href: hotel === null || hotel === void 0 ? void 0 : hotel.hotelUrl, style: { color: 'var(--color-accent-1)' } }, hotel === null || hotel === void 0 ? void 0 : hotel.name))),
|
|
94
|
+
React.createElement("li", { className: "u-flex" },
|
|
95
|
+
React.createElement(BEButton_1.default, { icon: Icon_1.IconType.ArrowRight, primary: true, filled: true, iconPosition: 'right', onClick: onBookNowClick }, t(Translation_1.Translation.HotelInfo.BookNowButton))))),
|
|
96
|
+
React.createElement("div", { className: "col-md-6" },
|
|
97
|
+
React.createElement("div", { className: "c-overlap" },
|
|
98
|
+
React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy u-marg-top u-marg-top--heavy", style: { height: '240px' } },
|
|
99
|
+
React.createElement(HotelLocationMap_1.default, null)),
|
|
100
|
+
React.createElement("div", { className: "u-flex u-flex-column justify-content-center" },
|
|
101
|
+
React.createElement(TransportDistanceFromHotelBlock_1.default, { hotel: hotel }))))))),
|
|
102
|
+
React.createElement("div", { className: "u-pad u-pad--heavy-plus u-pad-top-bottom--heavy@m-" },
|
|
103
|
+
React.createElement("div", { className: "container" },
|
|
104
|
+
React.createElement("div", { className: "row" },
|
|
105
|
+
React.createElement("div", { className: "col-lg-6" },
|
|
106
|
+
React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
107
|
+
React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
108
|
+
React.createElement(Headline_1.default, { bold: true }, "About")),
|
|
109
|
+
React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
110
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small },
|
|
111
|
+
React.createElement("span", { dangerouslySetInnerHTML: { __html: (_c = hotel === null || hotel === void 0 ? void 0 : hotel.description) === null || _c === void 0 ? void 0 : _c.replace('\r\n', '<br/><br/>') } })),
|
|
112
|
+
!!(hotel === null || hotel === void 0 ? void 0 : hotel.locationDescription) && (React.createElement(React.Fragment, null,
|
|
113
|
+
React.createElement("div", { className: "u-marg-top" },
|
|
114
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small },
|
|
115
|
+
React.createElement("strong", null, "Location"))),
|
|
116
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small },
|
|
117
|
+
React.createElement("span", { dangerouslySetInnerHTML: { __html: (_d = hotel === null || hotel === void 0 ? void 0 : hotel.locationDescription) === null || _d === void 0 ? void 0 : _d.replace('\r\n', '<br/><br/>') } }))))),
|
|
118
|
+
!!((_e = hotel === null || hotel === void 0 ? void 0 : hotel.perks) === null || _e === void 0 ? void 0 : _e.length) && (React.createElement(React.Fragment, null,
|
|
119
|
+
React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
120
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small },
|
|
121
|
+
React.createElement("strong", null, "And you get all these for free:"))),
|
|
122
|
+
React.createElement("div", { className: "row" }, hotel === null || hotel === void 0 ? void 0 : hotel.perks.map((perk) => {
|
|
123
|
+
return (React.createElement("div", { className: "col-6 col-md-4", key: perk.name },
|
|
124
|
+
React.createElement("div", { className: "u-flex u-marg-bottom" },
|
|
125
|
+
React.createElement("div", { className: "room-perk-icon" }, perk.iconElement ? perk.iconElement : React.createElement(Icon_1.default, { icon: perk.icon })),
|
|
126
|
+
React.createElement("span", { className: "u-flex__item" },
|
|
127
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small }, perk.name)))));
|
|
128
|
+
}))))),
|
|
129
|
+
!!((_f = hotel === null || hotel === void 0 ? void 0 : hotel.hotelServices) === null || _f === void 0 ? void 0 : _f.length) && (React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
130
|
+
React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
131
|
+
React.createElement(Headline_1.default, { bold: true }, "Hotel Amenities")),
|
|
132
|
+
React.createElement("div", { className: "row" }, hotel === null || hotel === void 0 ? void 0 : hotel.hotelServices.map((hotelService, index) => {
|
|
133
|
+
return (React.createElement("div", { key: index, className: "col-md-6" },
|
|
134
|
+
React.createElement("div", { className: "u-flex u-marg-bottom" },
|
|
135
|
+
React.createElement(Icon_1.default, { icon: Icon_1.IconType.Check, color: Color_1.Color.White, backgroundColor: Color_1.Color.Accent, borderRadius: 'round', noPadding: true, size: "16px" }),
|
|
136
|
+
React.createElement("span", { className: "u-flex__item u-marg-left--light" },
|
|
137
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small }, hotelService.name)))));
|
|
138
|
+
})))),
|
|
139
|
+
!!(hotel === null || hotel === void 0 ? void 0 : hotel.policies) && (React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
140
|
+
React.createElement("div", { className: "u-marg-bottom--heavy" },
|
|
141
|
+
React.createElement(Headline_1.default, { bold: true }, "Policies")),
|
|
142
|
+
React.createElement(Text_1.default, { type: Text_1.TextType.Small },
|
|
143
|
+
React.createElement("a", { href: hotel === null || hotel === void 0 ? void 0 : hotel.policies, target: "_blank", style: { color: hotel === null || hotel === void 0 ? void 0 : hotel.colors.accent } }, hotel === null || hotel === void 0 ? void 0 : hotel.policies))))),
|
|
144
|
+
React.createElement("div", { className: "col-lg-6" },
|
|
145
|
+
React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
146
|
+
React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
|
|
147
|
+
React.createElement(Headline_1.default, { bold: true }, "Gallery")),
|
|
148
|
+
images.length >= 1 && getImage(0),
|
|
149
|
+
React.createElement("div", { className: "row" },
|
|
150
|
+
[1, 2, 3].map((index) => {
|
|
151
|
+
if (images.length > index) {
|
|
152
|
+
return (React.createElement("div", { key: index, className: "col-6" }, getImage(index)));
|
|
153
|
+
}
|
|
154
|
+
}),
|
|
155
|
+
images.length > 5 && (React.createElement("div", { className: "col-6" },
|
|
156
|
+
React.createElement("div", { className: "c-images c-images--more", onClick: openSliderOnClick },
|
|
157
|
+
getImage(4),
|
|
158
|
+
React.createElement("span", null,
|
|
159
|
+
"+ ",
|
|
160
|
+
images.length - 5)))))))))),
|
|
161
|
+
!!(images === null || images === void 0 ? void 0 : images.length) && React.createElement(fslightbox_react_1.default, { toggler: lightboxController.toggler, slide: lightboxController.slide, sources: images, type: "image" })));
|
|
162
|
+
}
|
|
163
|
+
exports.default = HotelInfo;
|
|
164
|
+
//# sourceMappingURL=HotelInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotelInfo.js","sourceRoot":"/","sources":["src/pages/hotel/HotelInfo.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,4CAAyC;AACzC,wDAA+D;AAC/D,wDAA+D;AAC/D,gEAAyD;AACzD,oFAA6E;AAC7E,iCAA4C;AAC5C,uDAA0C;AAC1C,8GAAuG;AACvG,2CAAkD;AAClD,gEAAyD;AACzD,+CAA0C;AAC1C,wDAAiD;AACjD,iDAA+C;AAC/C,gEAA6D;AAC7D,iEAAyE;AACzE,6EAAsE;AAEtE,SAAwB,SAAS;;IAC7B,MAAM,EAAE,KAAK,EAAE,GAAG,uBAAe,EAAE,CAAC;IACpC,MAAM,OAAO,GAAG,yBAAU,EAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,EA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CACD,CACL,CACT,CACC;oBACN,6BAAK,SAAS,EAAC,UAAU;wBACrB,6BAAK,SAAS,EAAC,oCAAoC;4BAC/C,6BAAK,SAAS,EAAC,oCAAoC;gCAC/C,oBAAC,kBAAQ,IAAC,IAAI,EAAE,IAAI,cAAoB,CACtC;4BACL,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC;4BAClC,6BAAK,SAAS,EAAC,KAAK;gCACf,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;oCACrB,IAAI,MAAM,CAAC,MAAM,GAAG,KAAK,EAAE;wCACvB,OAAO,CACH,6BAAK,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,OAAO,IAC7B,QAAQ,CAAC,KAAK,CAAC,CACd,CACT,CAAC;qCACL;gCACL,CAAC,CAAC;gCACD,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,CAClB,6BAAK,SAAS,EAAC,OAAO;oCAClB,6BAAK,SAAS,EAAC,yBAAyB,EAAC,OAAO,EAAE,iBAAiB;wCAC9D,QAAQ,CAAC,CAAC,CAAC;wCACZ;;4CAAS,MAAM,CAAC,MAAM,GAAG,CAAC,CAAQ,CAChC,CACJ,CACT,CACC,CACJ,CACJ,CACJ,CACJ,CACJ;QACL,CAAC,EAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA,IAAI,oBAAC,0BAAU,IAAC,OAAO,EAAE,kBAAkB,CAAC,OAAO,EAAE,KAAK,EAAE,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAC,OAAO,GAAG,CACxI,CACN,CAAC;AACN,CAAC;AAhPD,4BAgPC","sourcesContent":["import * as React from 'react';\nimport { Color } from '../../util/Color';\nimport Icon, { IconType } from '../../components/generic/Icon';\nimport Text, { TextType } from '../../components/generic/Text';\nimport Headline from '../../components/generic/Headline';\nimport HotelLocationMap from '../../components/generic/map/HotelLocationMap';\nimport { useState, useEffect } from 'react';\nimport FsLightbox from 'fslightbox-react';\nimport TransportDistanceFromHotelBlock from '../../components/summary/TransportDistanceFromHotelBlock';\nimport { useCurrentHotel } from '@frontend/hooks';\nimport BEButton from '../../components/generic/BEButton';\nimport { useHistory } from 'react-router';\nimport StepManager from '../../util/StepManager';\nimport { useTranslation } from 'react-i18next';\nimport { Translation } from '../../translations/Translation';\nimport ImageProvider, { ImageSize } from '../../providers/ImageProvider';\nimport RoomstayThemeEngine from '../../providers/RoomstayThemeEngine';\n\nexport default function HotelInfo() {\n const { hotel } = useCurrentHotel();\n const history = useHistory();\n const { t } = useTranslation();\n\n const imageUrl = hotel?.heroImage;\n\n const { line1, line2, postalCode, city, country } = hotel?.address ?? {};\n\n const [lightboxController, setLightboxController] = useState({ toggler: false, slide: 1 });\n const [images, setImages] = useState<string[]>([]);\n\n const openSlider = (slide: number) => {\n setLightboxController((controller) => ({ toggler: !controller.toggler, slide: slide + 1 }));\n };\n const openSliderOnClick = () => {\n openSlider(4);\n };\n\n useEffect(() => {\n const newImages: string[] = [];\n\n if (hotel?.images?.length) {\n newImages.push(...hotel?.images);\n } else if (hotel?.rooms) {\n for (const room of Object.values(hotel?.rooms)) {\n room.images?.forEach((image) => {\n newImages.push(image);\n });\n }\n }\n\n setImages(newImages);\n }, [hotel?.rooms]);\n\n // TODO: Add a generic handler for this to avoid setting it in every new page\n useEffect(() => {\n if (hotel) {\n RoomstayThemeEngine.changeTheme(hotel.colors);\n }\n }, [hotel?.colors]);\n\n const onBookNowClick = () => {\n history.push(StepManager.getFirstStep().getStepUrl());\n };\n\n const getImage = (index: number) => {\n const openSliderOnClickHandler = () => {\n openSlider(index);\n };\n\n const resizedUrl = ImageProvider.resizeImage(images[index], ImageSize.Small);\n\n return (\n <div\n style={{ backgroundImage: `url('${resizedUrl}')`, paddingTop: '75%' }}\n className=\"c-images u-block u-w-100 u-marg-bottom u-marg-bottom--heavy\"\n onClick={openSliderOnClickHandler}\n />\n );\n };\n\n return (\n <>\n <div style={{ backgroundImage: `url('${imageUrl}')` }} className=\"c-masthead has-tint\">\n <div className=\"container\">\n <div className=\"c-masthead__body u-fill-white u-pad--heavy u-shadow-accent\">\n <h1 className=\"c-masthead__header\">{hotel?.name}</h1>\n <h2 className=\"c-masthead__sub-header\">{hotel?.address?.country}</h2>\n </div>\n </div>\n </div>\n <div className=\"u-fill-snow u-pad--heavy-med u-pad-top-bottom--heavy@m-\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-md-6 u-flex align-items-center\">\n <ul>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Map} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">\n {line1}\n <br />\n {line2} {postalCode}, {country}\n </span>\n </li>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Phone} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">{hotel?.phone}</span>\n </li>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Hotel2} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">\n <a href={hotel?.hotelUrl} style={{ color: 'var(--color-accent-1)' }}>\n {hotel?.name}\n </a>\n </span>\n </li>\n <li className=\"u-flex\">\n <BEButton icon={IconType.ArrowRight} primary={true} filled={true} iconPosition={'right'} onClick={onBookNowClick}>\n {t(Translation.HotelInfo.BookNowButton)}\n </BEButton>\n </li>\n </ul>\n </div>\n <div className=\"col-md-6\">\n <div className=\"c-overlap\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy u-marg-top u-marg-top--heavy\" style={{ height: '240px' }}>\n <HotelLocationMap />\n </div>\n <div className=\"u-flex u-flex-column justify-content-center\">\n <TransportDistanceFromHotelBlock hotel={hotel} />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div className=\"u-pad u-pad--heavy-plus u-pad-top-bottom--heavy@m-\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-lg-6\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Headline bold={true}>About</Headline>\n </div>\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Text type={TextType.Small}>\n <span dangerouslySetInnerHTML={{ __html: hotel?.description?.replace('\\r\\n', '<br/><br/>') }} />\n </Text>\n {!!hotel?.locationDescription && (\n <>\n <div className=\"u-marg-top\">\n <Text type={TextType.Small}>\n <strong>Location</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>\n <span dangerouslySetInnerHTML={{ __html: hotel?.locationDescription?.replace('\\r\\n', '<br/><br/>') }} />\n </Text>\n </>\n )}\n </div>\n {!!hotel?.perks?.length && (\n <>\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Text type={TextType.Small}>\n <strong>And you get all these for free:</strong>\n </Text>\n </div>\n <div className=\"row\">\n {hotel?.perks.map((perk) => {\n return (\n <div className=\"col-6 col-md-4\" key={perk.name}>\n <div className=\"u-flex u-marg-bottom\">\n <div className=\"room-perk-icon\">{perk.iconElement ? perk.iconElement : <Icon icon={perk.icon} />}</div>\n <span className=\"u-flex__item\">\n <Text type={TextType.Small}>{perk.name}</Text>\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </>\n )}\n </div>\n {!!hotel?.hotelServices?.length && (\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--heavy\">\n <Headline bold={true}>Hotel Amenities</Headline>\n </div>\n <div className=\"row\">\n {hotel?.hotelServices.map((hotelService, index) => {\n return (\n <div key={index} className=\"col-md-6\">\n <div className=\"u-flex u-marg-bottom\">\n <Icon\n icon={IconType.Check}\n color={Color.White}\n backgroundColor={Color.Accent}\n borderRadius={'round'}\n noPadding={true}\n size=\"16px\"\n />\n <span className=\"u-flex__item u-marg-left--light\">\n <Text type={TextType.Small}>{hotelService.name}</Text>\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n )}\n {!!hotel?.policies && (\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--heavy\">\n <Headline bold={true}>Policies</Headline>\n </div>\n <Text type={TextType.Small}>\n <a href={hotel?.policies} target=\"_blank\" style={{ color: hotel?.colors.accent }}>\n {hotel?.policies}\n </a>\n </Text>\n </div>\n )}\n </div>\n <div className=\"col-lg-6\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Headline bold={true}>Gallery</Headline>\n </div>\n {images.length >= 1 && getImage(0)}\n <div className=\"row\">\n {[1, 2, 3].map((index) => {\n if (images.length > index) {\n return (\n <div key={index} className=\"col-6\">\n {getImage(index)}\n </div>\n );\n }\n })}\n {images.length > 5 && (\n <div className=\"col-6\">\n <div className=\"c-images c-images--more\" onClick={openSliderOnClick}>\n {getImage(4)}\n <span>+ {images.length - 5}</span>\n </div>\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n {!!images?.length && <FsLightbox toggler={lightboxController.toggler} slide={lightboxController.slide} sources={images} type=\"image\" />}\n </>\n );\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const Placeholder_1 = require("../../components/generic/Placeholder");
|
|
5
|
+
function HotelInfoPlaceholder() {
|
|
6
|
+
return (React.createElement("div", { className: "container" },
|
|
7
|
+
React.createElement("div", { className: "row" },
|
|
8
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "sm", h: "md", blink: true }))));
|
|
9
|
+
}
|
|
10
|
+
exports.default = HotelInfoPlaceholder;
|
|
11
|
+
//# sourceMappingURL=HotelInfoPlaceholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotelInfoPlaceholder.js","sourceRoot":"/","sources":["src/pages/hotel/HotelInfoPlaceholder.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,sEAA+D;AAE/D,SAAwB,oBAAoB;IACxC,OAAO,CACH,6BAAK,SAAS,EAAC,WAAW;QACtB,6BAAK,SAAS,EAAC,KAAK;YAChB,oBAAC,qBAAW,IAAC,IAAI,EAAC,MAAM,EAAC,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACpD,CACJ,CACT,CAAC;AACN,CAAC;AARD,uCAQC","sourcesContent":["import * as React from 'react';\nimport Placeholder from '../../components/generic/Placeholder';\n\nexport default function HotelInfoPlaceholder() {\n return (\n <div className=\"container\">\n <div className=\"row\">\n <Placeholder type=\"text\" w=\"sm\" h=\"md\" blink={true} />\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactFragment } from 'react';
|
|
2
|
+
import type ColorProfile from '../../models/Client/Hotel/ColorProfile';
|
|
3
|
+
import type { Company } from '../../models/Client/Hotel/Company';
|
|
4
|
+
import type { Hotel } from '../../models/Client/Hotel/Hotel';
|
|
5
|
+
import StepValidator from './StepValidator';
|
|
6
|
+
export default abstract class Step {
|
|
7
|
+
protected name: string;
|
|
8
|
+
protected showOnNavigation: boolean;
|
|
9
|
+
constructor(name: string);
|
|
10
|
+
protected getUrlFragment(): string;
|
|
11
|
+
getName(): string;
|
|
12
|
+
getStepUrl(): string;
|
|
13
|
+
getStepTranslation(): string;
|
|
14
|
+
shouldShowOnNavigation(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Method gets called when Step is activated. Return a @type ColorProfile
|
|
17
|
+
* to automatically set theme when step is loaded
|
|
18
|
+
*/
|
|
19
|
+
getColorProfile(company: Company, hotel?: Hotel): ColorProfile;
|
|
20
|
+
abstract getComponent(): ReactFragment;
|
|
21
|
+
abstract getValidator(): StepValidator;
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Step {
|
|
4
|
+
constructor(name) {
|
|
5
|
+
this.name = name;
|
|
6
|
+
this.showOnNavigation = true;
|
|
7
|
+
}
|
|
8
|
+
getUrlFragment() {
|
|
9
|
+
return this.name.toLocaleLowerCase();
|
|
10
|
+
}
|
|
11
|
+
getName() {
|
|
12
|
+
return this.name;
|
|
13
|
+
}
|
|
14
|
+
getStepUrl() {
|
|
15
|
+
return `${'/step/'}${this.getUrlFragment()}/`;
|
|
16
|
+
}
|
|
17
|
+
getStepTranslation() {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
shouldShowOnNavigation() {
|
|
21
|
+
return this.showOnNavigation;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Method gets called when Step is activated. Return a @type ColorProfile
|
|
25
|
+
* to automatically set theme when step is loaded
|
|
26
|
+
*/
|
|
27
|
+
getColorProfile(company, hotel) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = Step;
|
|
32
|
+
//# sourceMappingURL=Step.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Step.js","sourceRoot":"/","sources":["src/pages/steps/Step.ts"],"names":[],"mappings":";;AAMA,MAA8B,IAAI;IAI9B,YAAmB,IAAY;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IACjC,CAAC;IAES,cAAc;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC;IACzC,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,UAAU;QACb,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,GAAG,CAAC;IAClD,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,sBAAsB;QACzB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,eAAe,CAAC,OAAgB,EAAE,KAAa;QAClD,OAAO;IACX,CAAC;CAIJ;AAvCD,uBAuCC","sourcesContent":["import { ReactFragment } from 'react';\nimport type ColorProfile from '../../models/Client/Hotel/ColorProfile';\nimport type { Company } from '../../models/Client/Hotel/Company';\nimport type { Hotel } from '../../models/Client/Hotel/Hotel';\nimport StepValidator from './StepValidator';\n\nexport default abstract class Step {\n protected name: string;\n protected showOnNavigation: boolean;\n\n public constructor(name: string) {\n this.name = name;\n this.showOnNavigation = true;\n }\n\n protected getUrlFragment() {\n return this.name.toLocaleLowerCase();\n }\n\n public getName() {\n return this.name;\n }\n\n public getStepUrl() {\n return `${'/step/'}${this.getUrlFragment()}/`;\n }\n\n public getStepTranslation(): string {\n return null;\n }\n\n public shouldShowOnNavigation() {\n return this.showOnNavigation;\n }\n\n /**\n * Method gets called when Step is activated. Return a @type ColorProfile\n * to automatically set theme when step is loaded\n */\n public getColorProfile(company: Company, hotel?: Hotel): ColorProfile {\n return;\n }\n\n public abstract getComponent(): ReactFragment;\n public abstract getValidator(): StepValidator;\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ColorProfile from '../../../models/Client/Hotel/ColorProfile';
|
|
2
|
+
import { Company } from '../../../models/Client/Hotel/Company';
|
|
3
|
+
import { Hotel } from '../../../models/Client/Hotel/Hotel';
|
|
4
|
+
import Step from '../Step';
|
|
5
|
+
import StepAddonLoader from './StepAddonLoader';
|
|
6
|
+
import StepAddonValidator from './StepAddonValidator';
|
|
7
|
+
declare class StepAddon extends Step {
|
|
8
|
+
constructor();
|
|
9
|
+
getComponent(): typeof StepAddonLoader;
|
|
10
|
+
getValidator(): StepAddonValidator;
|
|
11
|
+
getStepTranslation(): string;
|
|
12
|
+
getColorProfile(company: Company, hotel?: Hotel): ColorProfile;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: StepAddon;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Translation_1 = require("../../../translations/Translation");
|
|
4
|
+
const Step_1 = require("../Step");
|
|
5
|
+
const StepAddonLoader_1 = require("./StepAddonLoader");
|
|
6
|
+
const StepAddonValidator_1 = require("./StepAddonValidator");
|
|
7
|
+
class StepAddon extends Step_1.default {
|
|
8
|
+
constructor() {
|
|
9
|
+
super('Addon');
|
|
10
|
+
}
|
|
11
|
+
getComponent() {
|
|
12
|
+
return StepAddonLoader_1.default;
|
|
13
|
+
}
|
|
14
|
+
getValidator() {
|
|
15
|
+
return new StepAddonValidator_1.default();
|
|
16
|
+
}
|
|
17
|
+
getStepTranslation() {
|
|
18
|
+
return Translation_1.Translation.Navigation.Steps.Addon;
|
|
19
|
+
}
|
|
20
|
+
getColorProfile(company, hotel) {
|
|
21
|
+
if (hotel) {
|
|
22
|
+
return hotel.colors;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.default = new StepAddon();
|
|
27
|
+
//# sourceMappingURL=StepAddon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepAddon.js","sourceRoot":"/","sources":["src/pages/steps/StepAddon/StepAddon.ts"],"names":[],"mappings":";;AAGA,mEAAgE;AAChE,kCAA2B;AAC3B,uDAAgD;AAChD,6DAAsD;AAEtD,MAAM,SAAU,SAAQ,cAAI;IACxB;QACI,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEM,YAAY;QACf,OAAO,yBAAe,CAAC;IAC3B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,4BAAkB,EAAE,CAAC;IACpC,CAAC;IAEM,kBAAkB;QACrB,OAAO,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9C,CAAC;IAEM,eAAe,CAAC,OAAgB,EAAE,KAAa;QAClD,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,MAAM,CAAC;SACvB;IACL,CAAC;CACJ;AAED,kBAAe,IAAI,SAAS,EAAE,CAAC","sourcesContent":["import ColorProfile from '../../../models/Client/Hotel/ColorProfile';\nimport { Company } from '../../../models/Client/Hotel/Company';\nimport { Hotel } from '../../../models/Client/Hotel/Hotel';\nimport { Translation } from '../../../translations/Translation';\nimport Step from '../Step';\nimport StepAddonLoader from './StepAddonLoader';\nimport StepAddonValidator from './StepAddonValidator';\n\nclass StepAddon extends Step {\n public constructor() {\n super('Addon');\n }\n\n public getComponent() {\n return StepAddonLoader;\n }\n\n public getValidator() {\n return new StepAddonValidator();\n }\n\n public getStepTranslation() {\n return Translation.Navigation.Steps.Addon;\n }\n\n public getColorProfile(company: Company, hotel?: Hotel): ColorProfile {\n if (hotel) {\n return hotel.colors;\n }\n }\n}\n\nexport default new StepAddon();\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const react_router_dom_1 = require("react-router-dom");
|
|
6
|
+
const react_i18next_1 = require("react-i18next");
|
|
7
|
+
const BackButton_1 = require("../../../components/generic/BackButton");
|
|
8
|
+
const Headline_1 = require("../../../components/generic/Headline");
|
|
9
|
+
const LineBreak_1 = require("../../../components/generic/LineBreak");
|
|
10
|
+
const AddonList_1 = require("../../../components/steps/addons/AddonList");
|
|
11
|
+
const BEMobileSummary_1 = require("../../../components/summary/BEMobileSummary");
|
|
12
|
+
const StepManager_1 = require("../../../util/StepManager");
|
|
13
|
+
const Translation_1 = require("../../../translations/Translation");
|
|
14
|
+
const ScreenSize_1 = require("../../../util/ScreenSize");
|
|
15
|
+
const StepRoomHotelDetails_1 = require("../../../components/steps/room/StepRoomHotelDetails");
|
|
16
|
+
const contexts_1 = require("@frontend/contexts");
|
|
17
|
+
function StepAddonComponent() {
|
|
18
|
+
const context = react_1.useContext(contexts_1.BookingEngineContext);
|
|
19
|
+
const { currentStep } = react_1.useContext(contexts_1.FullPageEngineContext);
|
|
20
|
+
const { t } = react_i18next_1.useTranslation();
|
|
21
|
+
return (React.createElement("div", { className: "container" },
|
|
22
|
+
React.createElement(BEMobileSummary_1.default, null),
|
|
23
|
+
React.createElement("div", { className: 'row' + (context.screenSize > ScreenSize_1.default.ExtraLarge ? ' no-gutters' : '') },
|
|
24
|
+
React.createElement("div", { className: "col-md-8" }, context.screenSize > ScreenSize_1.default.Medium && (React.createElement(React.Fragment, null,
|
|
25
|
+
React.createElement(react_router_dom_1.Link, { to: StepManager_1.default.getPreviousStepUrl(currentStep) },
|
|
26
|
+
React.createElement(BackButton_1.default, null)),
|
|
27
|
+
React.createElement("div", { className: "u-marg-top--light u-marg-bottom--heavy" },
|
|
28
|
+
React.createElement(Headline_1.default, { bold: true }, t(Translation_1.Translation.Navigation.Steps.Addon)))))),
|
|
29
|
+
context.screenSize > ScreenSize_1.default.Medium && (React.createElement("div", { className: "col-xl-3 col-md-4 offset-xl-1 align-self-end" },
|
|
30
|
+
React.createElement(StepRoomHotelDetails_1.default, null)))),
|
|
31
|
+
context.screenSize > ScreenSize_1.default.Medium && React.createElement(LineBreak_1.default, null),
|
|
32
|
+
React.createElement(AddonList_1.default, null)));
|
|
33
|
+
}
|
|
34
|
+
exports.default = StepAddonComponent;
|
|
35
|
+
//# sourceMappingURL=StepAddonComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepAddonComponent.js","sourceRoot":"/","sources":["src/pages/steps/StepAddon/StepAddonComponent.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,iCAAmC;AACnC,uDAAwC;AACxC,iDAA+C;AAC/C,uEAAgE;AAChE,mEAA4D;AAC5D,qEAA8D;AAC9D,0EAAmE;AACnE,iFAA0E;AAC1E,2DAAoD;AACpD,mEAAgE;AAChE,yDAAkD;AAClD,8FAAuF;AACvF,iDAAiF;AAEjF,SAAwB,kBAAkB;IACtC,MAAM,OAAO,GAAG,kBAAU,CAAC,+BAAoB,CAAC,CAAC;IACjD,MAAM,EAAE,WAAW,EAAE,GAAG,kBAAU,CAAC,gCAAqB,CAAC,CAAC;IAE1D,MAAM,EAAE,CAAC,EAAE,GAAG,8BAAc,EAAE,CAAC;IAE/B,OAAO,CACH,6BAAK,SAAS,EAAC,WAAW;QACtB,oBAAC,yBAAe,OAAG;QACnB,6BAAK,SAAS,EAAE,KAAK,GAAG,CAAC,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YACrF,6BAAK,SAAS,EAAC,UAAU,IACpB,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,MAAM,IAAI,CACvC;gBACI,oBAAC,uBAAI,IAAC,EAAE,EAAE,qBAAW,CAAC,kBAAkB,CAAC,WAAW,CAAC;oBACjD,oBAAC,oBAAU,OAAG,CACX;gBACP,6BAAK,SAAS,EAAC,wCAAwC;oBACnD,oBAAC,kBAAQ,IAAC,IAAI,EAAE,IAAI,IAAG,CAAC,CAAC,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAY,CACtE,CACP,CACN,CACC;YACL,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,MAAM,IAAI,CACvC,6BAAK,SAAS,EAAC,8CAA8C;gBACzD,oBAAC,8BAAoB,OAAG,CACtB,CACT,CACC;QACL,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,MAAM,IAAI,oBAAC,mBAAS,OAAG;QACxD,oBAAC,mBAAS,OAAG,CACX,CACT,CAAC;AACN,CAAC;AAhCD,qCAgCC","sourcesContent":["import * as React from 'react';\nimport { useContext } from 'react';\nimport { Link } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport BackButton from '../../../components/generic/BackButton';\nimport Headline from '../../../components/generic/Headline';\nimport LineBreak from '../../../components/generic/LineBreak';\nimport AddonList from '../../../components/steps/addons/AddonList';\nimport BEMobileSummary from '../../../components/summary/BEMobileSummary';\nimport StepManager from '../../../util/StepManager';\nimport { Translation } from '../../../translations/Translation';\nimport ScreenSize from '../../../util/ScreenSize';\nimport StepRoomHotelDetails from '../../../components/steps/room/StepRoomHotelDetails';\nimport { BookingEngineContext, FullPageEngineContext } from '@frontend/contexts';\n\nexport default function StepAddonComponent() {\n const context = useContext(BookingEngineContext);\n const { currentStep } = useContext(FullPageEngineContext);\n\n const { t } = useTranslation();\n\n return (\n <div className=\"container\">\n <BEMobileSummary />\n <div className={'row' + (context.screenSize > ScreenSize.ExtraLarge ? ' no-gutters' : '')}>\n <div className=\"col-md-8\">\n {context.screenSize > ScreenSize.Medium && (\n <>\n <Link to={StepManager.getPreviousStepUrl(currentStep)}>\n <BackButton />\n </Link>\n <div className=\"u-marg-top--light u-marg-bottom--heavy\">\n <Headline bold={true}>{t(Translation.Navigation.Steps.Addon)}</Headline>\n </div>\n </>\n )}\n </div>\n {context.screenSize > ScreenSize.Medium && (\n <div className=\"col-xl-3 col-md-4 offset-xl-1 align-self-end\">\n <StepRoomHotelDetails />\n </div>\n )}\n </div>\n {context.screenSize > ScreenSize.Medium && <LineBreak />}\n <AddonList />\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const Placeholder_1 = require("../../../components/generic/Placeholder");
|
|
6
|
+
const StepAddonComponent = react_1.lazy(() => Promise.resolve().then(() => require('./StepAddonComponent')));
|
|
7
|
+
const StepAddonPlaceholder = () => {
|
|
8
|
+
return (React.createElement("div", { className: "container" },
|
|
9
|
+
React.createElement("div", { className: "line-break" }),
|
|
10
|
+
React.createElement("div", { className: "row no-gutters" },
|
|
11
|
+
React.createElement("div", { className: "u-w-100 u-flex justify-content-center" },
|
|
12
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "md", h: "lg", blink: true })),
|
|
13
|
+
React.createElement("div", { className: "line-break" }),
|
|
14
|
+
React.createElement("div", { className: "col-md-7 col-lg-8" },
|
|
15
|
+
React.createElement("br", null),
|
|
16
|
+
React.createElement("div", { className: "u-marg-bottom" },
|
|
17
|
+
React.createElement("div", { className: "row" },
|
|
18
|
+
React.createElement("div", { className: "col-lg-12 col-xl-5 u-flex" },
|
|
19
|
+
React.createElement(Placeholder_1.default, { type: "block", blockSize: "sm", rounded: "lg", blink: true })),
|
|
20
|
+
React.createElement("div", { className: "col-lg-7 col-xl-7" },
|
|
21
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "md", h: "md", blink: true }),
|
|
22
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "lg", h: "sm", blink: true }),
|
|
23
|
+
React.createElement("div", { className: "u-marg-top-bottom--heavy" },
|
|
24
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "sm", h: "sm", blink: true })),
|
|
25
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "sm", h: "sm", blink: true })))),
|
|
26
|
+
React.createElement("div", { className: "u-marg-bottom" },
|
|
27
|
+
React.createElement("div", { className: "row" },
|
|
28
|
+
React.createElement("div", { className: "col-lg-12 col-xl-5 u-flex" },
|
|
29
|
+
React.createElement(Placeholder_1.default, { type: "block", blockSize: "sm", rounded: "lg", blink: true })),
|
|
30
|
+
React.createElement("div", { className: "col-lg-7 col-xl-7" },
|
|
31
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "md", h: "md", blink: true }),
|
|
32
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "lg", h: "sm", blink: true }),
|
|
33
|
+
React.createElement("div", { className: "u-marg-top-bottom--heavy" },
|
|
34
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "sm", h: "sm", blink: true })),
|
|
35
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "sm", h: "sm", blink: true })))),
|
|
36
|
+
React.createElement("div", { className: "u-marg-bottom" },
|
|
37
|
+
React.createElement("div", { className: "row" },
|
|
38
|
+
React.createElement("div", { className: "col-lg-12 col-xl-5 u-flex" },
|
|
39
|
+
React.createElement(Placeholder_1.default, { type: "block", blockSize: "sm", rounded: "lg", blink: true })),
|
|
40
|
+
React.createElement("div", { className: "col-lg-7 col-xl-7" },
|
|
41
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "md", h: "md", blink: true }),
|
|
42
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "lg", h: "sm", blink: true }),
|
|
43
|
+
React.createElement("div", { className: "u-marg-top-bottom--heavy" },
|
|
44
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "sm", h: "sm", blink: true })),
|
|
45
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "sm", h: "sm", blink: true }))))),
|
|
46
|
+
React.createElement("div", { className: "col-xl-3 col-md-5 col-lg-4 offset-xl-1" },
|
|
47
|
+
React.createElement("div", { className: "u-pad" },
|
|
48
|
+
React.createElement("div", null,
|
|
49
|
+
React.createElement(Placeholder_1.default, { type: "block", blockSize: "lg", rounded: "lg", blink: true })),
|
|
50
|
+
React.createElement("div", null,
|
|
51
|
+
React.createElement(Placeholder_1.default, { type: "text", w: "xl", h: "lg", blink: true })),
|
|
52
|
+
React.createElement("div", { className: "u-marg-top--heavy" },
|
|
53
|
+
React.createElement(Placeholder_1.default, { type: "block", blockSize: "sm", rounded: "lg", blink: true })))))));
|
|
54
|
+
};
|
|
55
|
+
function default_1() {
|
|
56
|
+
return (React.createElement(react_1.Suspense, { fallback: React.createElement(StepAddonPlaceholder, null) },
|
|
57
|
+
React.createElement(StepAddonComponent, null)));
|
|
58
|
+
}
|
|
59
|
+
exports.default = default_1;
|
|
60
|
+
//# sourceMappingURL=StepAddonLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"St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B,OAAG;QACxC,oBAAC,kBAAkB,OAAG,CACf,CACd,CAAC;AACN,CAAC;AAND,4BAMC","sourcesContent":["import * as React from 'react';\nimport { lazy, Suspense } from 'react';\nimport Placeholder from '../../../components/generic/Placeholder';\n\nconst StepAddonComponent = lazy(() => import('./StepAddonComponent'));\n\nconst StepAddonPlaceholder = () => {\n return (\n <div className=\"container\">\n <div className=\"line-break\" />\n <div className=\"row no-gutters\">\n <div className=\"u-w-100 u-flex justify-content-center\">\n <Placeholder type=\"text\" w=\"md\" h=\"lg\" blink={true} />\n </div>\n <div className=\"line-break\" />\n <div className=\"col-md-7 col-lg-8\">\n <br />\n <div className=\"u-marg-bottom\">\n <div className=\"row\">\n <div className=\"col-lg-12 col-xl-5 u-flex\">\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n </div>\n <div className=\"col-lg-7 col-xl-7\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n </div>\n </div>\n <div className=\"u-marg-bottom\">\n <div className=\"row\">\n <div className=\"col-lg-12 col-xl-5 u-flex\">\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n </div>\n <div className=\"col-lg-7 col-xl-7\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n </div>\n </div>\n <div className=\"u-marg-bottom\">\n <div className=\"row\">\n <div className=\"col-lg-12 col-xl-5 u-flex\">\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n </div>\n <div className=\"col-lg-7 col-xl-7\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n <div className=\"col-xl-3 col-md-5 col-lg-4 offset-xl-1\">\n <div className=\"u-pad\">\n <div>\n <Placeholder type=\"block\" blockSize=\"lg\" rounded=\"lg\" blink={true} />\n </div>\n <div>\n <Placeholder type=\"text\" w=\"xl\" h=\"lg\" blink={true} />\n </div>\n <div className=\"u-marg-top--heavy\">\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default function () {\n return (\n <Suspense fallback={<StepAddonPlaceholder />}>\n <StepAddonComponent />\n </Suspense>\n );\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const StepValidator_1 = require("../StepValidator");
|
|
4
|
+
class StepAddonValidator extends StepValidator_1.default {
|
|
5
|
+
isValid(context) {
|
|
6
|
+
return context.getAllValidRows().length >= 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = StepAddonValidator;
|
|
10
|
+
//# sourceMappingURL=StepAddonValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepAddonValidator.js","sourceRoot":"/","sources":["src/pages/steps/StepAddon/StepAddonValidator.ts"],"names":[],"mappings":";;AACA,oDAA6C;AAE7C,MAAqB,kBAAmB,SAAQ,uBAAa;IAClD,OAAO,CAAC,OAA0B;QACrC,OAAO,OAAO,CAAC,eAAe,EAAE,CAAC,MAAM,IAAI,CAAC,CAAC;IACjD,CAAC;CACJ;AAJD,qCAIC","sourcesContent":["import type { BasketContextType } from '@frontend/contexts';\nimport StepValidator from '../StepValidator';\n\nexport default class StepAddonValidator extends StepValidator {\n public isValid(context: BasketContextType) {\n return context.getAllValidRows().length >= 1;\n }\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ColorProfile from '../../../models/Client/Hotel/ColorProfile';
|
|
2
|
+
import { Company } from '../../../models/Client/Hotel/Company';
|
|
3
|
+
import { Hotel } from '../../../models/Client/Hotel/Hotel';
|
|
4
|
+
import Step from '../Step';
|
|
5
|
+
import StepConfirmationLoader from './StepConfirmationLoader';
|
|
6
|
+
import StepConfirmationValidator from './StepConfirmationValidator';
|
|
7
|
+
declare class StepConfirmation extends Step {
|
|
8
|
+
constructor();
|
|
9
|
+
getComponent(): typeof StepConfirmationLoader;
|
|
10
|
+
getValidator(): StepConfirmationValidator;
|
|
11
|
+
getStepTranslation(): string;
|
|
12
|
+
getColorProfile(company: Company, hotel?: Hotel): ColorProfile;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: StepConfirmation;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Translation_1 = require("../../../translations/Translation");
|
|
4
|
+
const Step_1 = require("../Step");
|
|
5
|
+
const StepConfirmationLoader_1 = require("./StepConfirmationLoader");
|
|
6
|
+
const StepConfirmationValidator_1 = require("./StepConfirmationValidator");
|
|
7
|
+
class StepConfirmation extends Step_1.default {
|
|
8
|
+
constructor() {
|
|
9
|
+
super('Confirmation');
|
|
10
|
+
}
|
|
11
|
+
getComponent() {
|
|
12
|
+
return StepConfirmationLoader_1.default;
|
|
13
|
+
}
|
|
14
|
+
getValidator() {
|
|
15
|
+
return new StepConfirmationValidator_1.default();
|
|
16
|
+
}
|
|
17
|
+
getStepTranslation() {
|
|
18
|
+
return Translation_1.Translation.Navigation.Steps.Confirmation;
|
|
19
|
+
}
|
|
20
|
+
getColorProfile(company, hotel) {
|
|
21
|
+
if (hotel) {
|
|
22
|
+
return hotel.colors;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.default = new StepConfirmation();
|
|
27
|
+
//# sourceMappingURL=StepConfirmation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepConfirmation.js","sourceRoot":"/","sources":["src/pages/steps/StepConfirmation/StepConfirmation.ts"],"names":[],"mappings":";;AAGA,mEAAgE;AAChE,kCAA2B;AAC3B,qEAA8D;AAC9D,2EAAoE;AACpE,MAAM,gBAAiB,SAAQ,cAAI;IAC/B;QACI,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1B,CAAC;IAEM,YAAY;QACf,OAAO,gCAAsB,CAAC;IAClC,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,mCAAyB,EAAE,CAAC;IAC3C,CAAC;IAEM,kBAAkB;QACrB,OAAO,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC;IACrD,CAAC;IAEM,eAAe,CAAC,OAAgB,EAAE,KAAa;QAClD,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,MAAM,CAAC;SACvB;IACL,CAAC;CACJ;AAED,kBAAe,IAAI,gBAAgB,EAAE,CAAC","sourcesContent":["import ColorProfile from '../../../models/Client/Hotel/ColorProfile';\nimport { Company } from '../../../models/Client/Hotel/Company';\nimport { Hotel } from '../../../models/Client/Hotel/Hotel';\nimport { Translation } from '../../../translations/Translation';\nimport Step from '../Step';\nimport StepConfirmationLoader from './StepConfirmationLoader';\nimport StepConfirmationValidator from './StepConfirmationValidator';\nclass StepConfirmation extends Step {\n public constructor() {\n super('Confirmation');\n }\n\n public getComponent() {\n return StepConfirmationLoader;\n }\n\n public getValidator() {\n return new StepConfirmationValidator();\n }\n\n public getStepTranslation() {\n return Translation.Navigation.Steps.Confirmation;\n }\n\n public getColorProfile(company: Company, hotel?: Hotel): ColorProfile {\n if (hotel) {\n return hotel.colors;\n }\n }\n}\n\nexport default new StepConfirmation();\n"]}
|