@roomstay/frontend 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.bundle.js +1 -1
- package/dist/src/api/AddonAPI.d.ts +3 -3
- package/dist/src/api/AddonAPI.js +3 -3
- package/dist/src/api/AvailabilityAPI.d.ts +3 -3
- package/dist/src/api/AvailabilityAPI.js +5 -5
- package/dist/src/api/BaseAPI.js +1 -1
- package/dist/src/api/BookingAPI.d.ts +7 -7
- package/dist/src/api/BookingAPI.js +7 -7
- package/dist/src/api/ExchangeRateAPI.d.ts +2 -2
- package/dist/src/api/ExchangeRateAPI.js +1 -1
- package/dist/src/api/HotelAPI.d.ts +5 -5
- package/dist/src/api/HotelAPI.js +1 -1
- package/dist/src/api/MemberAPI.d.ts +1 -1
- package/dist/src/api/MemberAPI.js +1 -1
- package/dist/src/api/ReservationAPI.d.ts +6 -6
- package/dist/src/api/ReservationAPI.js +1 -1
- package/dist/src/api/SessionAPI.d.ts +1 -1
- package/dist/src/api/SessionAPI.js +1 -1
- package/dist/src/api/members-service/MembersServiceAPI.js +1 -1
- package/dist/src/components/User/Forms/ForgotPasswordForm.js +7 -7
- package/dist/src/components/User/Forms/ForgotPasswordForm.js.map +1 -1
- package/dist/src/components/User/Forms/SignInForm.js +10 -10
- package/dist/src/components/User/Forms/SignInForm.js.map +1 -1
- package/dist/src/components/User/Forms/SignUpForm.js +12 -12
- package/dist/src/components/User/Forms/SignUpForm.js.map +1 -1
- package/dist/src/components/generic/Alert.d.ts +1 -1
- package/dist/src/components/generic/Alert.js +1 -1
- package/dist/src/components/generic/BEButton.d.ts +2 -2
- package/dist/src/components/generic/BEButton.js +2 -2
- package/dist/src/components/generic/BackButton.js +2 -2
- package/dist/src/components/generic/BookNowPayLaterInfoBlock.js +4 -4
- package/dist/src/components/generic/BookingWizard/BookingWizard.d.ts +2 -2
- package/dist/src/components/generic/BookingWizard/BookingWizard.js +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardContent.d.ts +2 -2
- package/dist/src/components/generic/BookingWizard/BookingWizardContent.js +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardContext.d.ts +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js +10 -13
- package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js +13 -13
- package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js.map +1 -1
- package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.d.ts +2 -2
- package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js +5 -5
- package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js.map +1 -1
- package/dist/src/components/generic/Card/Card/Card.js +1 -1
- package/dist/src/components/generic/Card/IconNavCard/IconNavCard.d.ts +2 -2
- package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js +4 -4
- package/dist/src/components/generic/Checkbox/Checkbox.js +2 -2
- package/dist/src/components/generic/Currency.js +5 -5
- package/dist/src/components/generic/DateRangePicker/DateRangePicker.js +4 -4
- package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.d.ts +1 -1
- package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.js +2 -2
- package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.js +3 -3
- package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js +7 -7
- package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.d.ts +1 -1
- package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js +2 -2
- package/dist/src/components/generic/Distance.js +2 -2
- package/dist/src/components/generic/Headline.d.ts +2 -2
- package/dist/src/components/generic/Icon/Icon.d.ts +1 -1
- package/dist/src/components/generic/Icon/Icon.js +1 -1
- package/dist/src/components/generic/IconText/IconText.d.ts +2 -2
- package/dist/src/components/generic/IconText/IconText.js +3 -3
- package/dist/src/components/generic/InputGroup/InputGroup.d.ts +1 -1
- package/dist/src/components/generic/Notification.d.ts +1 -1
- package/dist/src/components/generic/Notification.js +2 -2
- package/dist/src/components/generic/NumberIncrement.d.ts +2 -0
- package/dist/src/components/generic/NumberIncrement.js +5 -4
- package/dist/src/components/generic/NumberIncrement.js.map +1 -1
- package/dist/src/components/generic/Overlay/Overlay.js +3 -3
- package/dist/src/components/generic/Overlay/Overlay.js.map +1 -1
- package/dist/src/components/generic/PasswordBox/PasswordBox.js +1 -1
- package/dist/src/components/generic/PaymentCard/CardTypeSelect.d.ts +1 -1
- package/dist/src/components/generic/PaymentCard/CardTypeSelect.js +4 -4
- package/dist/src/components/generic/PaymentCard/PaymentCard.d.ts +1 -1
- package/dist/src/components/generic/PaymentCard/PaymentCard.js +3 -3
- package/dist/src/components/generic/PaymentCard/PaymentCardInput.d.ts +1 -1
- package/dist/src/components/generic/PaymentCard/PaymentCardInput.js +10 -10
- package/dist/src/components/generic/PaymentCard/PaymentCardInput.js.map +1 -1
- package/dist/src/components/generic/Pill.d.ts +1 -1
- package/dist/src/components/generic/Pill.js +1 -1
- package/dist/src/components/generic/PromoCodeInput.js +6 -6
- package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/src/components/generic/RecentSearchesCard.d.ts +1 -1
- package/dist/src/components/generic/RecentSearchesCard.js +7 -7
- package/dist/src/components/generic/Select/Select.d.ts +1 -1
- package/dist/src/components/generic/Select/Select.js +6 -6
- package/dist/src/components/generic/Tabs/TabContext.d.ts +1 -1
- package/dist/src/components/generic/Tabs/TabLink.js +3 -3
- package/dist/src/components/generic/Tabs/TabRouteContainer.js +2 -2
- package/dist/src/components/generic/Tabs/Tabs.js +5 -5
- package/dist/src/components/generic/Text.d.ts +2 -2
- package/dist/src/components/generic/TextBox.d.ts +1 -1
- package/dist/src/components/generic/TextBox.js +1 -1
- package/dist/src/components/generic/Tooltip/Tooltip.js +1 -1
- package/dist/src/components/generic/badging/SSLSecureBadge.js +2 -2
- package/dist/src/components/generic/buttons/NextStepButton.d.ts +1 -1
- package/dist/src/components/generic/buttons/NextStepButton.js +5 -5
- package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +3 -3
- package/dist/src/components/generic/date/DatePicker.js +12 -12
- package/dist/src/components/generic/date/DatePickerDay.js +8 -8
- package/dist/src/components/generic/date/DatePickerDays.js +4 -4
- package/dist/src/components/generic/date/DatePickerMonth.js +6 -6
- package/dist/src/components/generic/date/DatePickerWeek.js +9 -9
- package/dist/src/components/generic/date/FloatingDatePicker.js +3 -3
- package/dist/src/components/generic/date/WeekViewSkeleton.js +3 -3
- package/dist/src/components/generic/loader/ImageLoader.d.ts +1 -1
- package/dist/src/components/generic/loader/ImageLoader.js +2 -2
- package/dist/src/components/generic/loader/LargeLoader.js +1 -1
- package/dist/src/components/generic/loader/SmallSpinner.d.ts +1 -1
- package/dist/src/components/generic/loader/SmallSpinner.js +2 -2
- package/dist/src/components/generic/map/HotelLocationMap.js +2 -2
- package/dist/src/components/generic/modal/ConfirmationModal.js +3 -3
- package/dist/src/components/generic/modal/ErrorModal.js +3 -3
- package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js +8 -8
- package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js +12 -12
- package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js.map +1 -1
- package/dist/src/components/generic/modal/SimpleModal.js +8 -8
- package/dist/src/components/generic/modal/SimpleModal.js.map +1 -1
- package/dist/src/components/generic/modal/TabbedModal.js +1 -1
- package/dist/src/components/generic/radio/RadioFields.js +2 -2
- package/dist/src/components/members/EditMyProfile.js +7 -7
- package/dist/src/components/navigation/Header.js +17 -17
- package/dist/src/components/navigation/Header.js.map +1 -1
- package/dist/src/components/navigation/StepSelector.js +8 -8
- package/dist/src/components/navigation/StepSelectorModal.js +7 -7
- package/dist/src/components/pages/Account/Card/MemberCardItem.js +8 -8
- package/dist/src/components/pages/PageColorComponent.js +2 -2
- package/dist/src/components/reservation/ReservationItem.d.ts +1 -1
- package/dist/src/components/reservation/ReservationItem.js +13 -13
- package/dist/src/components/reservation/ReservationList.d.ts +2 -2
- package/dist/src/components/reservation/ReservationList.js +1 -1
- package/dist/src/components/steps/DaysSelectedInformer.js +3 -3
- package/dist/src/components/steps/MinimumNightStayPill.js +6 -6
- package/dist/src/components/steps/addons/AddonCard.d.ts +1 -1
- package/dist/src/components/steps/addons/AddonCard.js +10 -10
- package/dist/src/components/steps/addons/AddonList.js +9 -9
- package/dist/src/components/steps/addons/AddonsNotFound.js +3 -3
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +1 -1
- package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js +4 -4
- package/dist/src/components/steps/confirmation/AccountDetails.js +4 -4
- package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js +3 -3
- package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js +3 -3
- package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js +9 -9
- package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js.map +1 -1
- package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js +3 -3
- package/dist/src/components/steps/confirmation/RoomContactDetails.js +16 -16
- package/dist/src/components/steps/confirmation/RoomContactDetails.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js +8 -8
- package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js.map +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.d.ts +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js +11 -11
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.d.ts +1 -1
- package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js +4 -4
- package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +2 -2
- package/dist/src/components/steps/confirmation/StepConfirmationForm.js +27 -27
- package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js +6 -6
- package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js +3 -3
- package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js +2 -2
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js +12 -12
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js.map +1 -1
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.d.ts +1 -1
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js +3 -3
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.d.ts +2 -2
- package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js +9 -9
- package/dist/src/components/steps/date/PeoplePicker.js +7 -7
- package/dist/src/components/steps/date/PeoplePickerRow.js +6 -6
- package/dist/src/components/steps/date/StepDatePricePerRoom.js +9 -9
- package/dist/src/components/steps/date/StepOneDateRange.js +4 -4
- package/dist/src/components/steps/date/StepOneDateRangePicker.js +4 -4
- package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js +4 -4
- package/dist/src/components/steps/date/StepOneNextStepButton.js +4 -4
- package/dist/src/components/steps/date/StepOneStatusPeople.js +2 -2
- package/dist/src/components/steps/hotel/HotelCard.d.ts +1 -1
- package/dist/src/components/steps/hotel/HotelCard.js +14 -14
- package/dist/src/components/steps/hotel/HotelCardList.d.ts +1 -1
- package/dist/src/components/steps/hotel/HotelCardList.js +2 -2
- package/dist/src/components/steps/hotel/HotelCardModal.d.ts +1 -1
- package/dist/src/components/steps/hotel/HotelCardModal.js +13 -13
- package/dist/src/components/steps/hotel/HotelSearchParameters.js +13 -13
- package/dist/src/components/steps/hotel/NoHotelsAvailable.js +2 -2
- package/dist/src/components/steps/room/AvailableUpgradesModal.js +14 -14
- package/dist/src/components/steps/room/ImageGallerySlider.d.ts +1 -1
- package/dist/src/components/steps/room/ImageGallerySlider.js +5 -5
- package/dist/src/components/steps/room/InactivityWindow.js +13 -13
- package/dist/src/components/steps/room/LargeRoomCard.d.ts +1 -1
- package/dist/src/components/steps/room/LargeRoomCard.js +11 -11
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js +15 -15
- package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.d.ts +1 -1
- package/dist/src/components/steps/room/NoRoomsFoundBlock.js +13 -13
- package/dist/src/components/steps/room/NoRoomsFoundBlock.js.map +1 -1
- package/dist/src/components/steps/room/RatesNotFound.js +3 -3
- package/dist/src/components/steps/room/RoomList.js +12 -12
- package/dist/src/components/steps/room/RoomListAlert.js +3 -3
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js +10 -10
- package/dist/src/components/steps/room/RoomModal.d.ts +2 -2
- package/dist/src/components/steps/room/RoomModal.js +10 -10
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js +6 -6
- package/dist/src/components/steps/room/StepRoomAlertBlocks.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomBestRateAlert.js +5 -5
- package/dist/src/components/steps/room/StepRoomErrorForm.js +12 -12
- package/dist/src/components/steps/room/StepRoomErrorForm.js.map +1 -1
- package/dist/src/components/steps/room/StepRoomHotelDetails.js +5 -5
- package/dist/src/components/steps/room/StepRoomNextStepButton.js +3 -3
- package/dist/src/components/steps/room/StepRoomSortBy.js +5 -5
- package/dist/src/components/steps/room/StepRoomSummaryAndButton.js +6 -6
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.d.ts +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js +3 -3
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.d.ts +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js +3 -3
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js +6 -6
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.d.ts +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +15 -15
- package/dist/src/components/steps/room/roomDetails/RoomDetails.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js +21 -21
- package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.d.ts +2 -2
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +4 -4
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js +4 -4
- package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js +8 -8
- package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js +13 -13
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js +3 -3
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +8 -8
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +10 -10
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +10 -10
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js +4 -4
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js +6 -6
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.d.ts +2 -2
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js +9 -9
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +17 -17
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.d.ts +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js +11 -11
- package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js +5 -5
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.d.ts +1 -1
- package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js +15 -15
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +2 -2
- package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js +7 -7
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +2 -2
- package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js +5 -5
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +2 -2
- package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js +5 -5
- package/dist/src/components/summary/BEMapWidget.js +5 -5
- package/dist/src/components/summary/BEMobileSummary.js +11 -11
- package/dist/src/components/summary/BEMobileSummaryModal.js +20 -20
- package/dist/src/components/summary/BESummary.d.ts +1 -1
- package/dist/src/components/summary/BESummary.js +15 -15
- package/dist/src/components/summary/BESummaryAddonRow.d.ts +1 -1
- package/dist/src/components/summary/BESummaryAddonRow.js +6 -6
- package/dist/src/components/summary/BESummaryPerkBlock.js +5 -5
- package/dist/src/components/summary/BESummaryPrivacyPolicy.js +4 -4
- package/dist/src/components/summary/BESummaryRoomRow.d.ts +1 -1
- package/dist/src/components/summary/BESummaryRoomRow.js +12 -12
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.d.ts +1 -1
- package/dist/src/components/summary/TransportDistanceFromHotelBlock.js +6 -6
- package/dist/src/components/temp/Login.js +2 -2
- package/dist/src/containers/PrivateRoute.js +1 -1
- package/dist/src/contexts/BasketContext/BasketContext.d.ts +1 -1
- package/dist/src/contexts/BasketContext/BasketContextType.d.ts +6 -6
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js +17 -17
- package/dist/src/contexts/BookingEngineContext/BookingEngineContext.d.ts +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.d.ts +5 -5
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +1 -1
- package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js +3 -3
- package/dist/src/contexts/CompanyContext/CompanyContext.d.ts +1 -1
- package/dist/src/contexts/CompanyContext/CompanyContextType.type.d.ts +5 -5
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.d.ts +1 -1
- package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js +13 -13
- package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js +3 -3
- package/dist/src/contexts/ErrorContext.js +2 -2
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.d.ts +1 -1
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.d.ts +1 -1
- package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +22 -22
- package/dist/src/contexts/HotelOverridesContext.d.ts +1 -1
- package/dist/src/contexts/HotelOverridesContext.js +4 -4
- package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js +2 -2
- package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js +2 -2
- package/dist/src/contexts/NotificationContext.d.ts +1 -1
- package/dist/src/contexts/NotificationContext.js +1 -1
- package/dist/src/engines/BaseEngine.d.ts +2 -2
- package/dist/src/engines/BaseEngine.js +2 -2
- package/dist/src/engines/BookingWizardEngine/BookingWizardEngine.d.ts +4 -4
- package/dist/src/engines/BookingWizardEngine/BookingWizardEngine.js +2 -2
- package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js +2 -2
- package/dist/src/engines/CustomEngine/CustomEngine.d.ts +1 -1
- package/dist/src/engines/CustomEngine/CustomEngine.js +1 -1
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.d.ts +2 -2
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js +3 -3
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.d.ts +1 -1
- package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +3 -3
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.d.ts +2 -2
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js +3 -3
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.d.ts +1 -1
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +24 -24
- package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -1
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.d.ts +2 -2
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js +3 -3
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.d.ts +1 -1
- package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +10 -10
- package/dist/src/errors/GetAvailabilityError.js +2 -2
- package/dist/src/events/RoomstayEventManager.d.ts +1 -1
- package/dist/src/events/actions/AddToCartEvent.d.ts +2 -2
- package/dist/src/events/actions/AddToCartEvent.js +1 -1
- package/dist/src/events/actions/GuestSearchEvent.d.ts +1 -1
- package/dist/src/events/actions/InitialHotelDetailsEvent.d.ts +1 -1
- package/dist/src/events/actions/MemberOnlyFence/MemberOnlyFenceSignUp.d.ts +1 -1
- package/dist/src/events/actions/Promotion/PromotionAddedEvent.d.ts +1 -1
- package/dist/src/events/actions/Promotion/PromotionClickedEvent.d.ts +1 -1
- package/dist/src/events/actions/Promotion/PromotionRemovedEvent.d.ts +1 -1
- package/dist/src/events/actions/RemoveFromCartEvent.d.ts +2 -2
- package/dist/src/events/actions/RemoveFromCartEvent.js +1 -1
- package/dist/src/events/actions/RoomListSearchEvent.d.ts +2 -2
- package/dist/src/events/index.d.ts +13 -13
- package/dist/src/events/index.js +13 -13
- package/dist/src/events/views/FindReservationResultsViewEvent.d.ts +1 -1
- package/dist/src/events/views/StepCheckoutViewEvent.d.ts +2 -2
- package/dist/src/events/views/StepCheckoutViewEvent.js +1 -1
- package/dist/src/events/views/StepThanksViewEvent.d.ts +1 -1
- package/dist/src/hooks/CurrentHotelHook.js +1 -1
- package/dist/src/hooks/EventHook.d.ts +2 -2
- package/dist/src/hooks/EventHook.js +1 -1
- package/dist/src/hooks/KeyboardControlOnSelect.d.ts +1 -1
- package/dist/src/hooks/LoggedInUserHook.d.ts +3 -3
- package/dist/src/hooks/LoggedInUserHook.js +1 -1
- package/dist/src/hooks/VGSHooks.d.ts +1 -1
- package/dist/src/hooks/VGSHooks.js +1 -1
- package/dist/src/hooks/WindowSize.js +2 -2
- package/dist/src/hooks/index.d.ts +6 -6
- package/dist/src/hooks/index.js +6 -6
- package/dist/src/icons/Check.js +1 -1
- package/dist/src/index.d.ts +67 -67
- package/dist/src/index.js +72 -72
- package/dist/src/index.js.map +1 -1
- package/dist/src/mockApi/AddonAPI.d.ts +2 -2
- package/dist/src/mockApi/AddonAPI.js +2 -2
- package/dist/src/mockApi/BookingAPI.d.ts +1 -1
- package/dist/src/mockApi/BookingAPI.js +1 -1
- package/dist/src/mockApi/ExchangeRateAPI.d.ts +1 -1
- package/dist/src/mockApi/HotelAPI.d.ts +2 -2
- package/dist/src/mockApi/MockAPI.js +1 -1
- package/dist/src/mockApi/ReservationAPI.d.ts +5 -5
- package/dist/src/models/Api/HotelDTO.d.ts +6 -6
- package/dist/src/models/Api/HotelOverrideDTO.d.ts +1 -1
- package/dist/src/models/Api/ReservationsDTO.d.ts +1 -1
- package/dist/src/models/Api/RoomNightDTO.d.ts +1 -1
- package/dist/src/models/BasketAddonRow.d.ts +1 -1
- package/dist/src/models/BasketAddonRow.js +1 -1
- package/dist/src/models/BasketRow.d.ts +5 -5
- package/dist/src/models/BasketRow.js +1 -1
- package/dist/src/models/BookingWizard/BookingWizardProperty.d.ts +1 -1
- package/dist/src/models/Client/Hotel/Company.d.ts +2 -2
- package/dist/src/models/Client/Hotel/Hotel.d.ts +12 -12
- package/dist/src/models/Client/Hotel/HotelPerk.d.ts +1 -1
- package/dist/src/models/Room/Filters/BudgetFilter.d.ts +2 -2
- package/dist/src/models/Room/Filters/BudgetFilter.js +1 -1
- package/dist/src/models/Room/Filters/Filter.d.ts +1 -1
- package/dist/src/models/Room/Filters/RateTypeFilter.d.ts +2 -2
- package/dist/src/models/Room/Filters/RateTypeFilter.js +1 -1
- package/dist/src/models/Room/Filters/RoomTypeFilter.d.ts +2 -2
- package/dist/src/models/Room/Filters/RoomTypeFilter.js +1 -1
- package/dist/src/models/Room/Room.d.ts +3 -3
- package/dist/src/models/Room/Room.js +1 -1
- package/dist/src/models/Room/RoomRate.d.ts +4 -4
- package/dist/src/models/Room/RoomRate.js +3 -3
- package/dist/src/models/Room/RoomRateNight.d.ts +1 -1
- package/dist/src/models/Room/RoomRateNight.js +1 -1
- package/dist/src/models/RoomstaySession.d.ts +3 -3
- package/dist/src/pages/account/AccountHome/AccountHomePage.js +13 -13
- package/dist/src/pages/account/AccountRouter.js +9 -9
- package/dist/src/pages/account/Details/AccountDetailsCardsPage.js +11 -11
- package/dist/src/pages/account/Details/AccountDetailsCardsPage.js.map +1 -1
- package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.d.ts +1 -1
- package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js +6 -6
- package/dist/src/pages/account/Details/AccountDetailsProfilePage.js +10 -10
- package/dist/src/pages/account/Help/AccountHelpPage.js +12 -12
- package/dist/src/pages/account/Help/AccountHelpPage.js.map +1 -1
- package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js +14 -14
- package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js +14 -14
- package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js +18 -18
- package/dist/src/pages/account/Reservations/AccountReservationsPage.js +8 -8
- package/dist/src/pages/findReservation/FindReservation.js +21 -21
- package/dist/src/pages/findReservation/FindReservation.js.map +1 -1
- package/dist/src/pages/findReservation/FindReservationResults.js +16 -16
- package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -1
- package/dist/src/pages/findReservation/ReservationRow.d.ts +1 -1
- package/dist/src/pages/findReservation/ReservationRow.js +13 -13
- package/dist/src/pages/findReservation/ReservationRowModal.d.ts +1 -1
- package/dist/src/pages/findReservation/ReservationRowModal.js +10 -10
- package/dist/src/pages/hotel/HotelInfo.js +11 -11
- package/dist/src/pages/hotel/HotelInfoPlaceholder.js +1 -1
- package/dist/src/pages/steps/Step.d.ts +4 -4
- package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +5 -5
- package/dist/src/pages/steps/StepAddon/StepAddon.js +3 -3
- package/dist/src/pages/steps/StepAddon/StepAddonComponent.js +11 -11
- package/dist/src/pages/steps/StepAddon/StepAddonLoader.js +2 -2
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.d.ts +2 -2
- package/dist/src/pages/steps/StepAddon/StepAddonValidator.js +1 -1
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.d.ts +6 -6
- package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js +3 -3
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js +15 -15
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js +2 -2
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.d.ts +2 -2
- package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js +1 -1
- package/dist/src/pages/steps/StepDate/StepDate.js +3 -3
- package/dist/src/pages/steps/StepDate/StepDateComponent.js +17 -17
- package/dist/src/pages/steps/StepDate/StepDateValidator.d.ts +1 -1
- package/dist/src/pages/steps/StepDate/StepDateValidator.js +1 -1
- package/dist/src/pages/steps/StepGuide.d.ts +1 -1
- package/dist/src/pages/steps/StepGuide.js +6 -6
- package/dist/src/pages/steps/StepHotel/StepHotel.d.ts +4 -4
- package/dist/src/pages/steps/StepHotel/StepHotel.js +3 -3
- package/dist/src/pages/steps/StepHotel/StepHotelComponent.js +11 -11
- package/dist/src/pages/steps/StepHotel/StepHotelLoader.js +5 -5
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.d.ts +1 -1
- package/dist/src/pages/steps/StepHotel/StepHotelValidator.js +1 -1
- package/dist/src/pages/steps/StepRoom/StepRoom.d.ts +6 -6
- package/dist/src/pages/steps/StepRoom/StepRoom.js +3 -3
- package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +17 -17
- package/dist/src/pages/steps/StepRoom/StepRoomLoader.js +2 -2
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.d.ts +2 -2
- package/dist/src/pages/steps/StepRoom/StepRoomValidator.js +1 -1
- package/dist/src/pages/steps/StepThanks/StepThanks.d.ts +6 -6
- package/dist/src/pages/steps/StepThanks/StepThanks.js +4 -4
- package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +13 -13
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.d.ts +2 -2
- package/dist/src/pages/steps/StepThanks/StepThanksValidator.js +1 -1
- package/dist/src/pages/steps/StepValidator.d.ts +1 -1
- package/dist/src/providers/CurrencyProvider.js +3 -3
- package/dist/src/providers/DistanceProvider.d.ts +1 -1
- package/dist/src/providers/DistanceProvider.js +1 -1
- package/dist/src/providers/FeatureProvider.js +8 -8
- package/dist/src/providers/FilterProvider.d.ts +3 -3
- package/dist/src/providers/FilterProvider.js +1 -1
- package/dist/src/providers/LanguageProvider.js +1 -1
- package/dist/src/providers/PromotionProvider.d.ts +3 -3
- package/dist/src/providers/PromotionProvider.js +7 -7
- package/dist/src/providers/RatePillProvider.d.ts +5 -5
- package/dist/src/providers/RoomSortProvider.d.ts +1 -1
- package/dist/src/providers/RoomstayThemeEngine.d.ts +3 -3
- package/dist/src/providers/RoomstayThemeEngine.js +1 -1
- package/dist/src/providers/SessionProvider.d.ts +1 -1
- package/dist/src/providers/SessionProvider.js +5 -5
- package/dist/src/providers/feature/ConfirmationVerifyFeature.d.ts +1 -1
- package/dist/src/providers/feature/ConfirmationVerifyFeature.js +1 -1
- package/dist/src/providers/feature/DatePickerTypeFeature.d.ts +1 -1
- package/dist/src/providers/feature/DatePickerTypeFeature.js +2 -2
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.d.ts +1 -1
- package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js +1 -1
- package/dist/src/providers/feature/FeaturedPromoFeature.d.ts +1 -1
- package/dist/src/providers/feature/FeaturedPromoFeature.js +2 -2
- package/dist/src/providers/feature/InlineAddonStepFeature.d.ts +1 -1
- package/dist/src/providers/feature/InlineAddonStepFeature.js +3 -3
- package/dist/src/providers/feature/MemberPortalFeature.d.ts +1 -1
- package/dist/src/providers/feature/MemberPortalFeature.js +1 -1
- package/dist/src/providers/feature/RoomUpsellFeature.d.ts +1 -1
- package/dist/src/providers/feature/RoomUpsellFeature.js +1 -1
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.d.ts +1 -1
- package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js +1 -1
- package/dist/src/providers/storage/LocalStorageProvider.d.ts +1 -1
- package/dist/src/providers/storage/LocalStorageProvider.js +1 -1
- package/dist/src/reducers/BasketReducer.d.ts +2 -2
- package/dist/src/reducers/BasketReducer.js +3 -3
- package/dist/src/routes/NaturallyProgressedStepRoute.d.ts +1 -1
- package/dist/src/routes/NaturallyProgressedStepRoute.js +6 -6
- package/dist/src/stories/Alert.stories.d.ts +1 -1
- package/dist/src/stories/Alert.stories.js +1 -1
- package/dist/src/stories/BackButton.stories.d.ts +1 -1
- package/dist/src/stories/BackButton.stories.js +1 -1
- package/dist/src/stories/BookNowPayLaterInfoBlock.stories.d.ts +1 -1
- package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js +1 -1
- package/dist/src/stories/BookingWizard.stories.d.ts +1 -1
- package/dist/src/stories/BookingWizard.stories.js +1 -1
- package/dist/src/stories/Card.stories.js +1 -1
- package/dist/src/stories/CardTypeSelect.stories.d.ts +1 -1
- package/dist/src/stories/CardTypeSelect.stories.js +1 -1
- package/dist/src/stories/ConfirmationModal.stories.d.ts +1 -1
- package/dist/src/stories/ConfirmationModal.stories.js +1 -1
- package/dist/src/stories/Countdown.stories.d.ts +1 -1
- package/dist/src/stories/Countdown.stories.js +1 -1
- package/dist/src/stories/Currency.stories.d.ts +1 -1
- package/dist/src/stories/Currency.stories.js +1 -1
- package/dist/src/stories/DateRangePicker.stories.d.ts +1 -1
- package/dist/src/stories/DateRangePicker.stories.js +1 -1
- package/dist/src/stories/Distance.stories.d.ts +1 -1
- package/dist/src/stories/Distance.stories.js +1 -1
- package/dist/src/stories/ErrorModal.stories.d.ts +1 -1
- package/dist/src/stories/ErrorModal.stories.js +1 -1
- package/dist/src/stories/FloatingDateRangePicker.stories.d.ts +1 -1
- package/dist/src/stories/FloatingDateRangePicker.stories.js +2 -2
- package/dist/src/stories/ForwardedSelect.stories.d.ts +1 -1
- package/dist/src/stories/ForwardedSelect.stories.js +1 -1
- package/dist/src/stories/Headline.stories.d.ts +1 -1
- package/dist/src/stories/Headline.stories.js +1 -1
- package/dist/src/stories/LineBreak.stories.d.ts +1 -1
- package/dist/src/stories/LineBreak.stories.js +1 -1
- package/dist/src/stories/Notification.stories.d.ts +1 -1
- package/dist/src/stories/Notification.stories.js +2 -2
- package/dist/src/stories/NumberIncrement.stories.d.ts +1 -1
- package/dist/src/stories/NumberIncrement.stories.js +1 -1
- package/dist/src/stories/PaymentCard.stories.d.ts +1 -1
- package/dist/src/stories/PaymentCard.stories.js +1 -1
- package/dist/src/stories/PaymentCardInput.stories.d.ts +1 -1
- package/dist/src/stories/PaymentCardInput.stories.js +1 -1
- package/dist/src/stories/Pill.stories.d.ts +1 -1
- package/dist/src/stories/Pill.stories.js +1 -1
- package/dist/src/stories/Placeholder.stories.d.ts +1 -1
- package/dist/src/stories/Placeholder.stories.js +1 -1
- package/dist/src/stories/PlanpayButton.stories.d.ts +1 -1
- package/dist/src/stories/PlanpayButton.stories.js +1 -1
- package/dist/src/stories/PromoCodeInput.stories.d.ts +1 -1
- package/dist/src/stories/PromoCodeInput.stories.js +1 -1
- package/dist/src/stories/RadioButton.stories.d.ts +1 -1
- package/dist/src/stories/RadioButton.stories.js +1 -1
- package/dist/src/stories/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/src/stories/RadioButtonGroup.stories.js +1 -1
- package/dist/src/stories/RadioFields.stories.d.ts +1 -1
- package/dist/src/stories/RadioFields.stories.js +1 -1
- package/dist/src/stories/Select.stories.d.ts +2 -2
- package/dist/src/stories/Select.stories.js +1 -1
- package/dist/src/stories/SimpleModal.stories.d.ts +1 -1
- package/dist/src/stories/SimpleModal.stories.js +1 -1
- package/dist/src/stories/Slider.stories.d.ts +3 -3
- package/dist/src/stories/Slider.stories.js +1 -1
- package/dist/src/stories/TabbedModal.stories.d.ts +1 -1
- package/dist/src/stories/TabbedModal.stories.js +1 -1
- package/dist/src/stories/Tabs.stories.d.ts +1 -1
- package/dist/src/stories/Tabs.stories.js +2 -2
- package/dist/src/stories/Text.stories.d.ts +1 -1
- package/dist/src/stories/Text.stories.js +1 -1
- package/dist/src/stories/TextArea.stories.js +1 -1
- package/dist/src/stories/TextBox.stories.d.ts +1 -1
- package/dist/src/stories/TextBox.stories.js +1 -1
- package/dist/src/stories/Tooltip.stories.d.ts +1 -1
- package/dist/src/stories/Tooltip.stories.js +1 -1
- package/dist/src/util/CalendarHelper.d.ts +1 -1
- package/dist/src/util/DataLayer.d.ts +6 -6
- package/dist/src/util/PaymentCardHelper.d.ts +1 -1
- package/dist/src/util/PaymentCardHelper.js +2 -2
- package/dist/src/util/StepManager.d.ts +1 -1
- package/dist/src/util/StepManager.js +1 -1
- package/dist/src/util/TotalCalculator.d.ts +2 -2
- package/dist/src/util/TotalCalculator.js +1 -1
- package/dist/test.bundle.js +1 -1
- package/dist/tests/jest/events/EventManager.test.js +1 -1
- package/dist/tests/offline/RoomstayBestRateAlert.js +1 -1
- package/dist/tests/offline/entry/RSCompany.js +1 -1
- package/dist/tests/offline/entry/ReactWrapper.js +1 -1
- package/dist/tests/offline/entry/components/TestPicker.js +5 -5
- package/package.json +2 -2
|
@@ -37,42 +37,42 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
const React = __importStar(require("react"));
|
|
39
39
|
const react_1 = require("react");
|
|
40
|
-
const Headline_1 = __importDefault(require("
|
|
40
|
+
const Headline_1 = __importDefault(require("../../generic/Headline"));
|
|
41
41
|
const Translation_1 = require("translations/Translation");
|
|
42
|
-
const Text_1 = __importStar(require("
|
|
43
|
-
const Color_1 = require("
|
|
42
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
43
|
+
const Color_1 = require("../../../util/Color");
|
|
44
44
|
const react_hook_form_1 = require("react-hook-form");
|
|
45
|
-
const RoomContactDetails_1 = __importDefault(require("
|
|
46
|
-
const LineBreak_1 = __importDefault(require("
|
|
47
|
-
const StepConfirmationPoliciesSection_1 = __importDefault(require("
|
|
48
|
-
const NextStepButton_1 = __importDefault(require("
|
|
45
|
+
const RoomContactDetails_1 = __importDefault(require("./RoomContactDetails"));
|
|
46
|
+
const LineBreak_1 = __importDefault(require("../../generic/LineBreak"));
|
|
47
|
+
const StepConfirmationPoliciesSection_1 = __importDefault(require("./StepConfirmationPoliciesSection"));
|
|
48
|
+
const NextStepButton_1 = __importDefault(require("../../generic/buttons/NextStepButton"));
|
|
49
49
|
const react_i18next_1 = require("react-i18next");
|
|
50
|
-
const contexts_1 = require("
|
|
51
|
-
const Icon_1 = __importStar(require("
|
|
52
|
-
const SSLSecureBadge_1 = __importDefault(require("
|
|
53
|
-
const StepConfirmationCheckoutDifferencesModal_1 = __importDefault(require("
|
|
50
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
51
|
+
const Icon_1 = __importStar(require("../../generic/Icon/Icon"));
|
|
52
|
+
const SSLSecureBadge_1 = __importDefault(require("../../generic/badging/SSLSecureBadge"));
|
|
53
|
+
const StepConfirmationCheckoutDifferencesModal_1 = __importDefault(require("./StepConfirmationCheckoutDifferencesModal"));
|
|
54
54
|
const react_router_dom_1 = require("react-router-dom");
|
|
55
|
-
const ErrorModal_1 = __importDefault(require("
|
|
56
|
-
const StepConfirmationPolicyBlock_1 = __importDefault(require("
|
|
57
|
-
const StepConfirmationAcknowledgement_1 = __importDefault(require("
|
|
58
|
-
const BEButton_1 = __importDefault(require("
|
|
59
|
-
const Alert_1 = __importStar(require("
|
|
60
|
-
const StepConfirmation_1 = __importDefault(require("
|
|
61
|
-
const StepRoom_1 = __importDefault(require("
|
|
62
|
-
const ConfirmationVerifyFeature_1 = __importDefault(require("
|
|
63
|
-
const TextBox_1 = __importDefault(require("
|
|
64
|
-
const ShowIATANumberOnCheckoutFeature_1 = __importDefault(require("
|
|
55
|
+
const ErrorModal_1 = __importDefault(require("../../generic/modal/ErrorModal"));
|
|
56
|
+
const StepConfirmationPolicyBlock_1 = __importDefault(require("./StepConfirmationPolicyBlock"));
|
|
57
|
+
const StepConfirmationAcknowledgement_1 = __importDefault(require("./StepConfirmationAcknowledgement"));
|
|
58
|
+
const BEButton_1 = __importDefault(require("../../generic/BEButton"));
|
|
59
|
+
const Alert_1 = __importStar(require("../../generic/Alert"));
|
|
60
|
+
const StepConfirmation_1 = __importDefault(require("../../../pages/steps/StepConfirmation/StepConfirmation"));
|
|
61
|
+
const StepRoom_1 = __importDefault(require("../../../pages/steps/StepRoom/StepRoom"));
|
|
62
|
+
const ConfirmationVerifyFeature_1 = __importDefault(require("../../../providers/feature/ConfirmationVerifyFeature"));
|
|
63
|
+
const TextBox_1 = __importDefault(require("../../generic/TextBox"));
|
|
64
|
+
const ShowIATANumberOnCheckoutFeature_1 = __importDefault(require("../../../providers/feature/ShowIATANumberOnCheckoutFeature"));
|
|
65
65
|
const PlanpayPaymentMethod_1 = require("./PlanpayPaymentMethod");
|
|
66
66
|
const TextArea_1 = __importDefault(require("../../generic/TextArea"));
|
|
67
67
|
const ConfirmationStepContext_1 = require("contexts/ConfirmationStepContext/ConfirmationStepContext");
|
|
68
|
-
const ConfirmationQuery_1 = require("
|
|
69
|
-
const LargeLoader_1 = __importDefault(require("
|
|
68
|
+
const ConfirmationQuery_1 = require("../../../hooks/ConfirmationQuery");
|
|
69
|
+
const LargeLoader_1 = __importDefault(require("../../generic/loader/LargeLoader"));
|
|
70
70
|
const StepConfirmationPaymentDetails_1 = __importDefault(require("./PaymentDetails/StepConfirmationPaymentDetails"));
|
|
71
71
|
const core_1 = require("@roomstay/core");
|
|
72
|
-
const RadioButtonGroup_1 = __importDefault(require("
|
|
73
|
-
const AcceptablePaymentCard_1 = __importDefault(require("
|
|
74
|
-
const RoomstayThemeEngine_1 = __importDefault(require("
|
|
75
|
-
const hooks_1 = require("
|
|
72
|
+
const RadioButtonGroup_1 = __importDefault(require("../../generic/RadioButtonGroup/RadioButtonGroup"));
|
|
73
|
+
const AcceptablePaymentCard_1 = __importDefault(require("./PaymentDetails/AcceptablePaymentCard"));
|
|
74
|
+
const RoomstayThemeEngine_1 = __importDefault(require("../../../providers/RoomstayThemeEngine"));
|
|
75
|
+
const hooks_1 = require("../../../hooks/index.js");
|
|
76
76
|
const dayjs_1 = __importDefault(require("dayjs"));
|
|
77
77
|
function StepConfirmationForm() {
|
|
78
78
|
const [differenceWarning, setDifferenceWarning] = (0, react_1.useState)({
|
|
@@ -27,13 +27,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
|
-
const Alert_1 = __importStar(require("
|
|
31
|
-
const Text_1 = __importDefault(require("
|
|
32
|
-
const Headline_1 = __importDefault(require("
|
|
33
|
-
const Countdown_1 = __importDefault(require("
|
|
34
|
-
const Color_1 = require("
|
|
30
|
+
const Alert_1 = __importStar(require("../../generic/Alert"));
|
|
31
|
+
const Text_1 = __importDefault(require("../../generic/Text"));
|
|
32
|
+
const Headline_1 = __importDefault(require("../../generic/Headline"));
|
|
33
|
+
const Countdown_1 = __importDefault(require("../../generic/Countdown"));
|
|
34
|
+
const Color_1 = require("../../../util/Color");
|
|
35
35
|
const react_1 = require("react");
|
|
36
|
-
const DataLayer_1 = __importStar(require("
|
|
36
|
+
const DataLayer_1 = __importStar(require("../../../util/DataLayer"));
|
|
37
37
|
function StepConfirmationLimitedOffer(props) {
|
|
38
38
|
const [flash, setFlash] = (0, react_1.useState)(false);
|
|
39
39
|
const countdownEndSeen = () => {
|
|
@@ -27,11 +27,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
|
-
const Headline_1 = __importDefault(require("
|
|
30
|
+
const Headline_1 = __importDefault(require("../../generic/Headline"));
|
|
31
31
|
const Translation_1 = require("translations/Translation");
|
|
32
|
-
const Text_1 = __importStar(require("
|
|
32
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
33
33
|
const react_i18next_1 = require("react-i18next");
|
|
34
|
-
const hooks_1 = require("
|
|
34
|
+
const hooks_1 = require("../../../hooks/index.js");
|
|
35
35
|
function StepConfirmationPoliciesSection() {
|
|
36
36
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
37
37
|
const { hotel } = (0, hooks_1.useCurrentHotel)();
|
|
@@ -24,9 +24,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
const React = __importStar(require("react"));
|
|
27
|
-
const contexts_1 = require("
|
|
27
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
28
28
|
const react_1 = require("react");
|
|
29
|
-
const Text_1 = __importStar(require("
|
|
29
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
30
30
|
const react_i18next_1 = require("react-i18next");
|
|
31
31
|
const Translation_1 = require("translations/Translation");
|
|
32
32
|
function StepConfirmationPolicyBlock() {
|
|
@@ -28,23 +28,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
30
|
const react_1 = require("react");
|
|
31
|
-
const AdditionalOffersColumn_1 = __importDefault(require("
|
|
31
|
+
const AdditionalOffersColumn_1 = __importDefault(require("./AdditionalOffersColumn"));
|
|
32
32
|
const web_1 = require("@react-spring/web");
|
|
33
33
|
const react_use_measure_1 = __importDefault(require("react-use-measure"));
|
|
34
34
|
const react_use_gesture_1 = require("react-use-gesture");
|
|
35
|
-
const AdditionalOffersModal_1 = __importDefault(require("
|
|
36
|
-
const Icon_1 = __importStar(require("
|
|
37
|
-
const Color_1 = require("
|
|
38
|
-
const Headline_1 = __importDefault(require("
|
|
35
|
+
const AdditionalOffersModal_1 = __importDefault(require("./AdditionalOffersModal"));
|
|
36
|
+
const Icon_1 = __importStar(require("../../../generic/Icon/Icon"));
|
|
37
|
+
const Color_1 = require("../../../../util/Color");
|
|
38
|
+
const Headline_1 = __importDefault(require("../../../generic/Headline"));
|
|
39
39
|
const Translation_1 = require("translations/Translation");
|
|
40
40
|
const react_i18next_1 = require("react-i18next");
|
|
41
|
-
const BookingAPI_1 = __importDefault(require("
|
|
42
|
-
const contexts_1 = require("
|
|
43
|
-
const AutoAutoHeight_1 = __importDefault(require("animations/AutoAutoHeight"));
|
|
44
|
-
const LargeLoader_1 = __importDefault(require("
|
|
45
|
-
const Text_1 = __importDefault(require("
|
|
46
|
-
const hooks_1 = require("
|
|
47
|
-
const contexts_2 = require("
|
|
41
|
+
const BookingAPI_1 = __importDefault(require("../../../../api/BookingAPI"));
|
|
42
|
+
const contexts_1 = require("../../../../contexts/index.js");
|
|
43
|
+
const AutoAutoHeight_1 = __importDefault(require("../../../../animations/AutoAutoHeight"));
|
|
44
|
+
const LargeLoader_1 = __importDefault(require("../../../generic/loader/LargeLoader"));
|
|
45
|
+
const Text_1 = __importDefault(require("../../../generic/Text"));
|
|
46
|
+
const hooks_1 = require("../../../../hooks/index.js");
|
|
47
|
+
const contexts_2 = require("../../../../contexts/index.js");
|
|
48
48
|
function AdditionalOffers() {
|
|
49
49
|
const basketContext = (0, react_1.useContext)(contexts_1.BasketContext);
|
|
50
50
|
const ccx = (0, react_1.useContext)(contexts_2.CompanyContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionalOffers.js","sourceRoot":"/","sources":["src/components/steps/confirmation/additionalOffers/AdditionalOffers.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,iCAA6C;AAC7C,qIAA6G;AAC7G,2CAAwD;AACxD,0EAA2C;AAC3C,yDAA4C;AAC5C,mIAA2G;AAC3G,uEAAgE;AAChE,wCAAqC;AACrC,6EAAqD;AACrD,0DAAuD;AACvD,iDAA+C;AAC/C,kEAAmC;AACnC,iDAAmD;AAEnD,+EAAuD;AACvD,0FAAkE;AAClE,qEAA6C;AAC7C,2CAAkD;AAClD,iDAAoD;AAEpD,SAAwB,gBAAgB;IACpC,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAChD,MAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAC;IAEvC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,uBAAe,GAAE,CAAC;IA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AAC,oCAAoC;oBAC/C,oBAAC,cAAQ,CAAC,GAAG,kBAAC,SAAS,EAAC,0BAA0B,IAAK,IAAI,EAAE,IAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,KAC5E,MAAM,CAAC,GAAG,CAAC,CAAC,KAAY,EAAE,KAAa,EAAE,EAAE;wBACxC,MAAM,oBAAoB,GAAG,GAAG,EAAE;4BAC9B,cAAc,CAAC,IAAI,CAAC,CAAC;4BACrB,gBAAgB,CAAC,KAAK,CAAC,CAAC;wBAC5B,CAAC,CAAC;wBACF,OAAO,oBAAC,gCAAsB,IAAC,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,GAAI,CAAC;oBACpJ,CAAC,CAAC,CACS,CACb,CACJ,CACT;YACD,oBAAC,+BAAqB,IAClB,MAAM,EAAE,WAAW,IAAI,CAAC,CAAC,aAAa,EACtC,KAAK,EAAE,aAAa,EACpB,cAAc,EAAE,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,EAC3D,OAAO,EAAE,iBAAiB,GAC5B,CACA,CACO,CACpB,CAAC;AACN,CAAC;AAtJD,mCAsJC","sourcesContent":["import * as React from 'react';\nimport { useContext, useState } from 'react';\nimport AdditionalOffersColumn from '@/components/steps/confirmation/additionalOffers/AdditionalOffersColumn';\nimport { animated, useSpring } from '@react-spring/web';\nimport useMeasure from 'react-use-measure';\nimport { useDrag } from 'react-use-gesture';\nimport AdditionalOffersModal from '@/components/steps/confirmation/additionalOffers/AdditionalOffersModal';\nimport Icon, { IconType } from '@/components/generic/Icon/Icon';\nimport { Color } from '@/util/Color';\nimport Headline from '@/components/generic/Headline';\nimport { Translation } from 'translations/Translation';\nimport { useTranslation } from 'react-i18next';\nimport API from '@/api/BookingAPI';\nimport { BasketContext } from '@frontend/contexts';\nimport { Addon } from '@/models/Addon/Addon';\nimport AutoAutoHeight from 'animations/AutoAutoHeight';\nimport LargeLoader from '@/components/generic/loader/LargeLoader';\nimport Text from '@/components/generic/Text';\nimport { useCurrentHotel } from '@frontend/hooks';\nimport { CompanyContext } from '@frontend/contexts';\n\nexport default function AdditionalOffers() {\n const basketContext = useContext(BasketContext);\n const ccx = useContext(CompanyContext);\n\n const { hotel } = useCurrentHotel();\n\n const [{ x }, set] = useSpring(() => ({ x: 0 }));\n const [ref, bounds] = useMeasure();\n const { t } = useTranslation();\n\n const [addons, setAddons] = React.useState<Addon[]>([]);\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [selectedAddon, setSelectedAddon] = useState(null);\n const [isLoading, setIsLoading] = useState(false);\n\n const [lastReleaseX, setLastReleaseX] = useState(0);\n const [lastIndex, setLastIndex] = useState(0);\n\n // -1 can't go back\n // 0 default,\n // 1 can't go forward;\n const [buttonDisabled, setButtonDisabled] = useState(-1);\n\n React.useEffect(() => {\n let isCancelled = false;\n\n const rows = basketContext.getAllValidRows();\n\n setIsLoading(true);\n API.Addons.findAddons(rows, hotel.hotelID).then((foundedAddons) => {\n if (!isCancelled) {\n setIsLoading(false);\n setAddons(foundedAddons);\n }\n });\n\n return () => {\n setIsLoading(false);\n isCancelled = true;\n };\n }, [ccx.currentLanguage]);\n\n const cardWidth = 222;\n\n const isScrollable = cardWidth * addons.length >= bounds.width;\n\n const bind = useDrag(({ down, movement: [mx] }) => {\n animateTrack(down, mx);\n });\n\n const animateTrack = (down: boolean, mx: number) => {\n if (!isScrollable) return;\n\n if (!down) {\n const releasePosition = lastReleaseX + mx;\n const maxX = (addons.length - 1) * cardWidth;\n\n let restingLocation = 0;\n\n if (releasePosition > 0) {\n restingLocation = 0;\n setButtonDisabled(-1);\n } else if (releasePosition < -(maxX - bounds.width + cardWidth)) {\n restingLocation = -(maxX - bounds.width + cardWidth);\n setButtonDisabled(1);\n } else {\n const magic = -releasePosition / cardWidth;\n const lastTempIndex = releasePosition % cardWidth > -cardWidth / 2 ? Math.floor(magic) : Math.ceil(magic);\n restingLocation = -(lastTempIndex * cardWidth);\n\n setLastIndex(lastTempIndex);\n setButtonDisabled(0);\n }\n\n set({ x: restingLocation });\n\n setLastReleaseX(restingLocation);\n } else {\n set({ x: lastReleaseX + mx * 1.5 });\n }\n };\n\n const nextImage = () => {\n animateTrack(false, -cardWidth);\n };\n\n const prevImage = () => {\n animateTrack(false, cardWidth);\n };\n\n const closeModalOnClose = () => {\n setIsModalOpen(false);\n };\n\n return (\n <AutoAutoHeight open={(!isLoading && addons?.length !== 0) || hotel?.showAddonLoader}>\n <div className=\"u-pad-bottom--heavy \">\n <div className=\"u-marg-bottom\">\n <Headline bold={true}>{t(Translation.Step.Confirmation.AdditionalOfferings)}</Headline>\n </div>\n {isLoading && hotel?.showAddonLoader ? (\n <LargeLoader />\n ) : addons?.length === 0 ? (\n <div>\n <Text color={Color.DarkGrey}>Sorry, there are currently no additional offerings available.</Text>\n </div>\n ) : (\n <div className={'additional-offers' + (addons.length > 2 ? '' : ' --wide')} ref={ref}>\n {isScrollable && (\n <div className=\"additional-offers--navigation\">\n <Icon\n icon={IconType.ArrowLeft2}\n onClick={prevImage}\n color={buttonDisabled === -1 ? Color.DarkGrey : Color.White}\n backgroundColor={Color.Navy}\n borderRadius=\"round\"\n size=\"24px\"\n />\n <Icon\n icon={IconType.ArrowRight2}\n onClick={nextImage}\n color={buttonDisabled === 1 ? Color.DarkGrey : Color.White}\n backgroundColor={Color.Navy}\n borderRadius=\"round\"\n size=\"24px\"\n />\n </div>\n )}\n <div className=\"additional-offers--track-container\">\n <animated.div className=\"additional-offers--track\" {...bind()} style={{ left: x }}>\n {addons.map((addon: Addon, index: number) => {\n const onCardClickedHandler = () => {\n setIsModalOpen(true);\n setSelectedAddon(addon);\n };\n return <AdditionalOffersColumn selected={!!basketContext.getRowForAddon(addon)} key={index} addon={addon} cardClicked={onCardClickedHandler} />;\n })}\n </animated.div>\n </div>\n </div>\n )}\n <AdditionalOffersModal\n isOpen={isModalOpen && !!selectedAddon}\n addon={selectedAddon}\n basketAddonRow={basketContext.getRowForAddon(selectedAddon)}\n onClose={closeModalOnClose}\n />\n </div>\n </AutoAutoHeight>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AdditionalOffers.js","sourceRoot":"/","sources":["src/components/steps/confirmation/additionalOffers/AdditionalOffers.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,iCAA6C;AAC7C,qIAA6G;AAC7G,2CAAwD;AACxD,0EAA2C;AAC3C,yDAA4C;AAC5C,mIAA2G;AAC3G,uEAAgE;AAChE,wCAAqC;AACrC,6EAAqD;AACrD,0DAAuD;AACvD,iDAA+C;AAC/C,kEAAmC;AACnC,iDAAmD;AAEnD,iFAAyD;AACzD,0FAAkE;AAClE,qEAA6C;AAC7C,2CAAkD;AAClD,iDAAoD;AAEpD,SAAwB,gBAAgB;IACpC,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAChD,MAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAC;IAEvC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,uBAAe,GAAE,CAAC;IAEpC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,IAAA,eAAS,EAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjD,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,IAAA,2BAAU,GAAE,CAAC;IACnC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAU,EAAE,CAAC,CAAC;IACxD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC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,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,GAAI,CAAC;oBACpJ,CAAC,CAAC,CACS,CACb,CACJ,CACT;YACD,oBAAC,+BAAqB,IAClB,MAAM,EAAE,WAAW,IAAI,CAAC,CAAC,aAAa,EACtC,KAAK,EAAE,aAAa,EACpB,cAAc,EAAE,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,EAC3D,OAAO,EAAE,iBAAiB,GAC5B,CACA,CACO,CACpB,CAAC;AACN,CAAC;AAtJD,mCAsJC","sourcesContent":["import * as React from 'react';\nimport { useContext, useState } from 'react';\nimport AdditionalOffersColumn from '@/components/steps/confirmation/additionalOffers/AdditionalOffersColumn';\nimport { animated, useSpring } from '@react-spring/web';\nimport useMeasure from 'react-use-measure';\nimport { useDrag } from 'react-use-gesture';\nimport AdditionalOffersModal from '@/components/steps/confirmation/additionalOffers/AdditionalOffersModal';\nimport Icon, { IconType } from '@/components/generic/Icon/Icon';\nimport { Color } from '@/util/Color';\nimport Headline from '@/components/generic/Headline';\nimport { Translation } from 'translations/Translation';\nimport { useTranslation } from 'react-i18next';\nimport API from '@/api/BookingAPI';\nimport { BasketContext } from '@frontend/contexts';\nimport { Addon } from '@/models/Addon/Addon';\nimport AutoAutoHeight from '@/animations/AutoAutoHeight';\nimport LargeLoader from '@/components/generic/loader/LargeLoader';\nimport Text from '@/components/generic/Text';\nimport { useCurrentHotel } from '@frontend/hooks';\nimport { CompanyContext } from '@frontend/contexts';\n\nexport default function AdditionalOffers() {\n const basketContext = useContext(BasketContext);\n const ccx = useContext(CompanyContext);\n\n const { hotel } = useCurrentHotel();\n\n const [{ x }, set] = useSpring(() => ({ x: 0 }));\n const [ref, bounds] = useMeasure();\n const { t } = useTranslation();\n\n const [addons, setAddons] = React.useState<Addon[]>([]);\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [selectedAddon, setSelectedAddon] = useState(null);\n const [isLoading, setIsLoading] = useState(false);\n\n const [lastReleaseX, setLastReleaseX] = useState(0);\n const [lastIndex, setLastIndex] = useState(0);\n\n // -1 can't go back\n // 0 default,\n // 1 can't go forward;\n const [buttonDisabled, setButtonDisabled] = useState(-1);\n\n React.useEffect(() => {\n let isCancelled = false;\n\n const rows = basketContext.getAllValidRows();\n\n setIsLoading(true);\n API.Addons.findAddons(rows, hotel.hotelID).then((foundedAddons) => {\n if (!isCancelled) {\n setIsLoading(false);\n setAddons(foundedAddons);\n }\n });\n\n return () => {\n setIsLoading(false);\n isCancelled = true;\n };\n }, [ccx.currentLanguage]);\n\n const cardWidth = 222;\n\n const isScrollable = cardWidth * addons.length >= bounds.width;\n\n const bind = useDrag(({ down, movement: [mx] }) => {\n animateTrack(down, mx);\n });\n\n const animateTrack = (down: boolean, mx: number) => {\n if (!isScrollable) return;\n\n if (!down) {\n const releasePosition = lastReleaseX + mx;\n const maxX = (addons.length - 1) * cardWidth;\n\n let restingLocation = 0;\n\n if (releasePosition > 0) {\n restingLocation = 0;\n setButtonDisabled(-1);\n } else if (releasePosition < -(maxX - bounds.width + cardWidth)) {\n restingLocation = -(maxX - bounds.width + cardWidth);\n setButtonDisabled(1);\n } else {\n const magic = -releasePosition / cardWidth;\n const lastTempIndex = releasePosition % cardWidth > -cardWidth / 2 ? Math.floor(magic) : Math.ceil(magic);\n restingLocation = -(lastTempIndex * cardWidth);\n\n setLastIndex(lastTempIndex);\n setButtonDisabled(0);\n }\n\n set({ x: restingLocation });\n\n setLastReleaseX(restingLocation);\n } else {\n set({ x: lastReleaseX + mx * 1.5 });\n }\n };\n\n const nextImage = () => {\n animateTrack(false, -cardWidth);\n };\n\n const prevImage = () => {\n animateTrack(false, cardWidth);\n };\n\n const closeModalOnClose = () => {\n setIsModalOpen(false);\n };\n\n return (\n <AutoAutoHeight open={(!isLoading && addons?.length !== 0) || hotel?.showAddonLoader}>\n <div className=\"u-pad-bottom--heavy \">\n <div className=\"u-marg-bottom\">\n <Headline bold={true}>{t(Translation.Step.Confirmation.AdditionalOfferings)}</Headline>\n </div>\n {isLoading && hotel?.showAddonLoader ? (\n <LargeLoader />\n ) : addons?.length === 0 ? (\n <div>\n <Text color={Color.DarkGrey}>Sorry, there are currently no additional offerings available.</Text>\n </div>\n ) : (\n <div className={'additional-offers' + (addons.length > 2 ? '' : ' --wide')} ref={ref}>\n {isScrollable && (\n <div className=\"additional-offers--navigation\">\n <Icon\n icon={IconType.ArrowLeft2}\n onClick={prevImage}\n color={buttonDisabled === -1 ? Color.DarkGrey : Color.White}\n backgroundColor={Color.Navy}\n borderRadius=\"round\"\n size=\"24px\"\n />\n <Icon\n icon={IconType.ArrowRight2}\n onClick={nextImage}\n color={buttonDisabled === 1 ? Color.DarkGrey : Color.White}\n backgroundColor={Color.Navy}\n borderRadius=\"round\"\n size=\"24px\"\n />\n </div>\n )}\n <div className=\"additional-offers--track-container\">\n <animated.div className=\"additional-offers--track\" {...bind()} style={{ left: x }}>\n {addons.map((addon: Addon, index: number) => {\n const onCardClickedHandler = () => {\n setIsModalOpen(true);\n setSelectedAddon(addon);\n };\n return <AdditionalOffersColumn selected={!!basketContext.getRowForAddon(addon)} key={index} addon={addon} cardClicked={onCardClickedHandler} />;\n })}\n </animated.div>\n </div>\n </div>\n )}\n <AdditionalOffersModal\n isOpen={isModalOpen && !!selectedAddon}\n addon={selectedAddon}\n basketAddonRow={basketContext.getRowForAddon(selectedAddon)}\n onClose={closeModalOnClose}\n />\n </div>\n </AutoAutoHeight>\n );\n}\n"]}
|
|
@@ -24,9 +24,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
const React = __importStar(require("react"));
|
|
27
|
-
const Icon_1 = __importStar(require("
|
|
28
|
-
const Text_1 = __importStar(require("
|
|
29
|
-
const Color_1 = require("
|
|
27
|
+
const Icon_1 = __importStar(require("../../../generic/Icon/Icon"));
|
|
28
|
+
const Text_1 = __importStar(require("../../../generic/Text"));
|
|
29
|
+
const Color_1 = require("../../../../util/Color");
|
|
30
30
|
function AdditionalOffersColumn(props) {
|
|
31
31
|
const { addon } = props;
|
|
32
32
|
const onCardClickHandler = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Addon } from '
|
|
2
|
-
import BasketAddonRow from '
|
|
1
|
+
import { Addon } from '../../../../models/Addon/Addon';
|
|
2
|
+
import BasketAddonRow from '../../../../models/BasketAddonRow';
|
|
3
3
|
export interface AdditionalOffersModalProps {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
addon: Addon;
|
|
@@ -28,16 +28,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
30
|
const react_1 = require("react");
|
|
31
|
-
const SimpleModal_1 = __importStar(require("
|
|
32
|
-
const Headline_1 = __importDefault(require("
|
|
33
|
-
const Text_1 = __importStar(require("
|
|
34
|
-
const NumberIncrement_1 = __importDefault(require("
|
|
31
|
+
const SimpleModal_1 = __importStar(require("../../../generic/modal/SimpleModal"));
|
|
32
|
+
const Headline_1 = __importDefault(require("../../../generic/Headline"));
|
|
33
|
+
const Text_1 = __importStar(require("../../../generic/Text"));
|
|
34
|
+
const NumberIncrement_1 = __importDefault(require("../../../generic/NumberIncrement"));
|
|
35
35
|
const react_i18next_1 = require("react-i18next");
|
|
36
|
-
const BEButton_1 = __importDefault(require("
|
|
37
|
-
const Currency_1 = __importDefault(require("
|
|
38
|
-
const contexts_1 = require("
|
|
39
|
-
const Color_1 = require("
|
|
40
|
-
const Select_1 = require("
|
|
36
|
+
const BEButton_1 = __importDefault(require("../../../generic/BEButton"));
|
|
37
|
+
const Currency_1 = __importDefault(require("../../../generic/Currency"));
|
|
38
|
+
const contexts_1 = require("../../../../contexts/index.js");
|
|
39
|
+
const Color_1 = require("../../../../util/Color");
|
|
40
|
+
const Select_1 = require("../../../generic/Select/Select");
|
|
41
41
|
function AdditionalOffersModal(props) {
|
|
42
42
|
var _a;
|
|
43
43
|
const { addon } = props;
|
|
@@ -28,15 +28,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const react_1 = require("react");
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
|
-
const BasketRow_1 = __importDefault(require("
|
|
32
|
-
const PeoplePickerRow_1 = __importDefault(require("
|
|
33
|
-
const Icon_1 = require("
|
|
34
|
-
const BEButton_1 = __importDefault(require("
|
|
35
|
-
const contexts_1 = require("
|
|
31
|
+
const BasketRow_1 = __importDefault(require("../../../models/BasketRow"));
|
|
32
|
+
const PeoplePickerRow_1 = __importDefault(require("./PeoplePickerRow"));
|
|
33
|
+
const Icon_1 = require("../../generic/Icon/Icon");
|
|
34
|
+
const BEButton_1 = __importDefault(require("../../generic/BEButton"));
|
|
35
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
36
36
|
const Translation_1 = require("translations/Translation");
|
|
37
37
|
const react_i18next_1 = require("react-i18next");
|
|
38
|
-
const DataLayer_1 = __importStar(require("
|
|
39
|
-
const PromoCodeInput_1 = __importDefault(require("
|
|
38
|
+
const DataLayer_1 = __importStar(require("../../../util/DataLayer"));
|
|
39
|
+
const PromoCodeInput_1 = __importDefault(require("../../generic/PromoCodeInput"));
|
|
40
40
|
function PeoplePicker() {
|
|
41
41
|
var _a, _b;
|
|
42
42
|
const context = (0, react_1.useContext)(contexts_1.BasketContext);
|
|
@@ -29,14 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
30
|
const Translation_1 = require("translations/Translation");
|
|
31
31
|
const react_i18next_1 = require("react-i18next");
|
|
32
|
-
const NumberIncrement_1 = __importDefault(require("
|
|
33
|
-
const Text_1 = __importStar(require("
|
|
34
|
-
const Icon_1 = __importStar(require("
|
|
35
|
-
const Color_1 = require("
|
|
32
|
+
const NumberIncrement_1 = __importDefault(require("../../generic/NumberIncrement"));
|
|
33
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
34
|
+
const Icon_1 = __importStar(require("../../generic/Icon/Icon"));
|
|
35
|
+
const Color_1 = require("../../../util/Color");
|
|
36
36
|
const react_1 = require("react");
|
|
37
37
|
const web_1 = require("@react-spring/web");
|
|
38
|
-
const LineBreak_1 = __importDefault(require("
|
|
39
|
-
const hooks_1 = require("
|
|
38
|
+
const LineBreak_1 = __importDefault(require("../../generic/LineBreak"));
|
|
39
|
+
const hooks_1 = require("../../../hooks/index.js");
|
|
40
40
|
function PeoplePickerRow(pickerProps) {
|
|
41
41
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
42
42
|
const { adults, children } = pickerProps.details;
|
|
@@ -27,18 +27,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
|
-
const Text_1 = __importStar(require("
|
|
31
|
-
const TextAlignment_1 = require("
|
|
32
|
-
const Color_1 = require("
|
|
30
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
31
|
+
const TextAlignment_1 = require("../../../util/TextAlignment");
|
|
32
|
+
const Color_1 = require("../../../util/Color");
|
|
33
33
|
const Translation_1 = require("translations/Translation");
|
|
34
|
-
const Headline_1 = __importDefault(require("
|
|
35
|
-
const Currency_1 = __importDefault(require("
|
|
34
|
+
const Headline_1 = __importDefault(require("../../generic/Headline"));
|
|
35
|
+
const Currency_1 = __importDefault(require("../../generic/Currency"));
|
|
36
36
|
const react_i18next_1 = require("react-i18next");
|
|
37
37
|
const react_1 = require("react");
|
|
38
|
-
const contexts_1 = require("
|
|
39
|
-
const BookingAPI_1 = __importDefault(require("
|
|
40
|
-
const Icon_1 = __importStar(require("
|
|
41
|
-
const hooks_1 = require("
|
|
38
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
39
|
+
const BookingAPI_1 = __importDefault(require("../../../api/BookingAPI"));
|
|
40
|
+
const Icon_1 = __importStar(require("../../generic/Icon/Icon"));
|
|
41
|
+
const hooks_1 = require("../../../hooks/index.js");
|
|
42
42
|
function StepDatePricePerRoom(props) {
|
|
43
43
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
44
44
|
const basketContext = (0, react_1.useContext)(contexts_1.BasketContext);
|
|
@@ -28,11 +28,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
30
|
const react_1 = require("react");
|
|
31
|
-
const contexts_1 = require("
|
|
32
|
-
const Headline_1 = __importDefault(require("
|
|
33
|
-
const Color_1 = require("
|
|
31
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
32
|
+
const Headline_1 = __importDefault(require("../../generic/Headline"));
|
|
33
|
+
const Color_1 = require("../../../util/Color");
|
|
34
34
|
const Translation_1 = require("translations/Translation");
|
|
35
|
-
const Icon_1 = __importStar(require("
|
|
35
|
+
const Icon_1 = __importStar(require("../../generic/Icon/Icon"));
|
|
36
36
|
const react_i18next_1 = require("react-i18next");
|
|
37
37
|
function StepOneDateRange() {
|
|
38
38
|
const context = (0, react_1.useContext)(contexts_1.BasketContext);
|
|
@@ -26,12 +26,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const DatePicker_1 = __importDefault(require("
|
|
29
|
+
const DatePicker_1 = __importDefault(require("../../generic/date/DatePicker"));
|
|
30
30
|
const React = __importStar(require("react"));
|
|
31
31
|
const react_1 = require("react");
|
|
32
|
-
const ScreenSize_1 = __importDefault(require("
|
|
33
|
-
const contexts_1 = require("
|
|
34
|
-
const DataLayer_1 = __importStar(require("
|
|
32
|
+
const ScreenSize_1 = __importDefault(require("../../../util/ScreenSize"));
|
|
33
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
34
|
+
const DataLayer_1 = __importStar(require("../../../util/DataLayer"));
|
|
35
35
|
function StepOneDateRangePicker() {
|
|
36
36
|
const context = (0, react_1.useContext)(contexts_1.BasketContext);
|
|
37
37
|
const appContext = (0, react_1.useContext)(contexts_1.BookingEngineContext);
|
|
@@ -27,12 +27,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
|
-
const Color_1 = require("
|
|
30
|
+
const Color_1 = require("../../../util/Color");
|
|
31
31
|
const Translation_1 = require("translations/Translation");
|
|
32
|
-
const Text_1 = __importStar(require("
|
|
32
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
33
33
|
const react_i18next_1 = require("react-i18next");
|
|
34
|
-
const RoomstayThemeEngine_1 = require("
|
|
35
|
-
const RoomstayThemeEngine_2 = __importDefault(require("
|
|
34
|
+
const RoomstayThemeEngine_1 = require("../../../providers/RoomstayThemeEngine");
|
|
35
|
+
const RoomstayThemeEngine_2 = __importDefault(require("../../../providers/RoomstayThemeEngine"));
|
|
36
36
|
function StepOneDateRangePickerLegend() {
|
|
37
37
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
38
38
|
return (React.createElement("div", { className: "diji-calendar-legend u-marg-top u-marg-bottom" },
|
|
@@ -35,14 +35,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
const NextStepButton_1 = __importDefault(require("
|
|
38
|
+
const NextStepButton_1 = __importDefault(require("../../generic/buttons/NextStepButton"));
|
|
39
39
|
const React = __importStar(require("react"));
|
|
40
40
|
const react_1 = require("react");
|
|
41
41
|
const Translation_1 = require("translations/Translation");
|
|
42
42
|
const react_i18next_1 = require("react-i18next");
|
|
43
|
-
const contexts_1 = require("
|
|
44
|
-
const DataLayer_1 = __importStar(require("
|
|
45
|
-
const contexts_2 = require("
|
|
43
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
44
|
+
const DataLayer_1 = __importStar(require("../../../util/DataLayer"));
|
|
45
|
+
const contexts_2 = require("../../../contexts/index.js");
|
|
46
46
|
function StepOneNextStepButton(props) {
|
|
47
47
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
48
48
|
const context = (0, react_1.useContext)(contexts_1.BasketContext);
|
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
|
-
const contexts_1 = require("
|
|
31
|
-
const Text_1 = __importDefault(require("
|
|
30
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
31
|
+
const Text_1 = __importDefault(require("../../generic/Text"));
|
|
32
32
|
function StepOneStatusPeople() {
|
|
33
33
|
const context = React.useContext(contexts_1.BasketContext);
|
|
34
34
|
return (React.createElement("div", { className: "step-one-status--people" },
|
|
@@ -39,21 +39,21 @@ const React = __importStar(require("react"));
|
|
|
39
39
|
const react_1 = require("react");
|
|
40
40
|
const react_i18next_1 = require("react-i18next");
|
|
41
41
|
const Translation_1 = require("translations/Translation");
|
|
42
|
-
const Color_1 = require("
|
|
43
|
-
const ScreenSize_1 = __importDefault(require("
|
|
44
|
-
const BEButton_1 = __importDefault(require("
|
|
45
|
-
const Currency_1 = __importDefault(require("
|
|
46
|
-
const Headline_1 = __importDefault(require("
|
|
47
|
-
const Icon_1 = __importStar(require("
|
|
48
|
-
const Text_1 = __importStar(require("
|
|
49
|
-
const ImageGallerySlider_1 = __importDefault(require("
|
|
42
|
+
const Color_1 = require("../../../util/Color");
|
|
43
|
+
const ScreenSize_1 = __importDefault(require("../../../util/ScreenSize"));
|
|
44
|
+
const BEButton_1 = __importDefault(require("../../generic/BEButton"));
|
|
45
|
+
const Currency_1 = __importDefault(require("../../generic/Currency"));
|
|
46
|
+
const Headline_1 = __importDefault(require("../../generic/Headline"));
|
|
47
|
+
const Icon_1 = __importStar(require("../../generic/Icon/Icon"));
|
|
48
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
49
|
+
const ImageGallerySlider_1 = __importDefault(require("../room/ImageGallerySlider"));
|
|
50
50
|
const react_router_dom_1 = require("react-router-dom");
|
|
51
|
-
const Placeholder_1 = __importDefault(require("
|
|
52
|
-
const HotelCardModal_1 = __importDefault(require("
|
|
53
|
-
const contexts_1 = require("
|
|
54
|
-
const Tooltip_1 = __importDefault(require("
|
|
55
|
-
const SmallSpinner_1 = __importDefault(require("
|
|
56
|
-
const StepRoom_1 = __importDefault(require("
|
|
51
|
+
const Placeholder_1 = __importDefault(require("../../generic/Placeholder"));
|
|
52
|
+
const HotelCardModal_1 = __importDefault(require("./HotelCardModal"));
|
|
53
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
54
|
+
const Tooltip_1 = __importDefault(require("../../generic/Tooltip/Tooltip"));
|
|
55
|
+
const SmallSpinner_1 = __importDefault(require("../../generic/loader/SmallSpinner"));
|
|
56
|
+
const StepRoom_1 = __importDefault(require("../../../pages/steps/StepRoom/StepRoom"));
|
|
57
57
|
const HotelCard = ({ hotel }) => {
|
|
58
58
|
var _a, _b, _c;
|
|
59
59
|
const beContext = (0, react_1.useContext)(contexts_1.BookingEngineContext);
|
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const React = __importStar(require("react"));
|
|
30
|
-
const HotelCard_1 = __importDefault(require("
|
|
31
|
-
const NoHotelsAvailable_1 = __importDefault(require("
|
|
30
|
+
const HotelCard_1 = __importDefault(require("./HotelCard"));
|
|
31
|
+
const NoHotelsAvailable_1 = __importDefault(require("./NoHotelsAvailable"));
|
|
32
32
|
function HotelCardList({ hotelList }) {
|
|
33
33
|
return (hotelList === null || hotelList === void 0 ? void 0 : hotelList.length) > 0 ? (React.createElement("div", { className: "row" }, hotelList.map((hotel, index) => {
|
|
34
34
|
return (React.createElement("div", { key: `${hotel.hotelID}-${index}`, className: "col-md-4 u-marg-bottom--heavy" },
|
|
@@ -30,20 +30,20 @@ const React = __importStar(require("react"));
|
|
|
30
30
|
const react_1 = require("react");
|
|
31
31
|
const react_i18next_1 = require("react-i18next");
|
|
32
32
|
const react_router_dom_1 = require("react-router-dom");
|
|
33
|
-
const contexts_1 = require("
|
|
34
|
-
const StepHotel_1 = __importDefault(require("
|
|
33
|
+
const contexts_1 = require("../../../contexts/index.js");
|
|
34
|
+
const StepHotel_1 = __importDefault(require("../../../pages/steps/StepHotel/StepHotel"));
|
|
35
35
|
const Translation_1 = require("translations/Translation");
|
|
36
|
-
const Color_1 = require("
|
|
37
|
-
const StepManager_1 = __importDefault(require("
|
|
38
|
-
const BEButton_1 = __importDefault(require("
|
|
39
|
-
const Currency_1 = __importDefault(require("
|
|
40
|
-
const Headline_1 = __importDefault(require("
|
|
41
|
-
const Icon_1 = __importStar(require("
|
|
42
|
-
const LineBreak_1 = __importDefault(require("
|
|
43
|
-
const SimpleModal_1 = __importStar(require("
|
|
44
|
-
const Text_1 = __importStar(require("
|
|
45
|
-
const TransportDistanceFromHotelBlock_1 = __importDefault(require("
|
|
46
|
-
const ImageGallerySlider_1 = __importDefault(require("
|
|
36
|
+
const Color_1 = require("../../../util/Color");
|
|
37
|
+
const StepManager_1 = __importDefault(require("../../../util/StepManager"));
|
|
38
|
+
const BEButton_1 = __importDefault(require("../../generic/BEButton"));
|
|
39
|
+
const Currency_1 = __importDefault(require("../../generic/Currency"));
|
|
40
|
+
const Headline_1 = __importDefault(require("../../generic/Headline"));
|
|
41
|
+
const Icon_1 = __importStar(require("../../generic/Icon/Icon"));
|
|
42
|
+
const LineBreak_1 = __importDefault(require("../../generic/LineBreak"));
|
|
43
|
+
const SimpleModal_1 = __importStar(require("../../generic/modal/SimpleModal"));
|
|
44
|
+
const Text_1 = __importStar(require("../../generic/Text"));
|
|
45
|
+
const TransportDistanceFromHotelBlock_1 = __importDefault(require("../../summary/TransportDistanceFromHotelBlock"));
|
|
46
|
+
const ImageGallerySlider_1 = __importDefault(require("../room/ImageGallerySlider"));
|
|
47
47
|
const HotelCardModal = (props) => {
|
|
48
48
|
var _a;
|
|
49
49
|
const hotel = props.hotel;
|