@roomstay/frontend 2.5.7 → 2.5.8-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.
Files changed (427) hide show
  1. package/dist/201.bundle.js +1 -1
  2. package/dist/279.bundle.js +1 -1
  3. package/dist/370.bundle.js +1 -1
  4. package/dist/387.bundle.js +1 -1
  5. package/dist/411.bundle.js +2 -0
  6. package/dist/{535.bundle.js.LICENSE.txt → 411.bundle.js.LICENSE.txt} +1 -1
  7. package/dist/446.bundle.js +1 -1
  8. package/dist/449.bundle.js +1 -1
  9. package/dist/468.bundle.js +1 -1
  10. package/dist/{151.bundle.js → 481.bundle.js} +1 -1
  11. package/dist/537.bundle.js +1 -1
  12. package/dist/572.bundle.js +1 -1
  13. package/dist/619.bundle.js +1 -1
  14. package/dist/625.bundle.js +1 -1
  15. package/dist/686.bundle.js +1 -1
  16. package/dist/736.bundle.js +1 -1
  17. package/dist/815.bundle.js +1 -1
  18. package/dist/855.bundle.js +1 -1
  19. package/dist/873.bundle.js +1 -1
  20. package/dist/903.bundle.js +1 -1
  21. package/dist/972.bundle.js +1 -1
  22. package/dist/main.bundle.js +1 -1
  23. package/dist/src/animations/AutoAutoHeight.d.ts +1 -1
  24. package/dist/src/components/User/Forms/ForgotPasswordForm.d.ts +2 -1
  25. package/dist/src/components/User/Forms/SignUpForm.d.ts +2 -1
  26. package/dist/src/components/generic/Alert.d.ts +2 -2
  27. package/dist/src/components/generic/BEButton.d.ts +4 -4
  28. package/dist/src/components/generic/BEButton.js.map +1 -1
  29. package/dist/src/components/generic/BackButton.d.ts +2 -1
  30. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.js +28 -2
  31. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.js.map +1 -1
  32. package/dist/src/components/generic/BookingWizard/BookingWizardContent.d.ts +1 -1
  33. package/dist/src/components/generic/BookingWizard/BookingWizardContent.js +1 -1
  34. package/dist/src/components/generic/BookingWizard/BookingWizardContent.js.map +1 -1
  35. package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.d.ts +2 -1
  36. package/dist/src/components/generic/Card/Card/Card.d.ts +3 -3
  37. package/dist/src/components/generic/Card/Card/Card.js.map +1 -1
  38. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.d.ts +2 -1
  39. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js.map +1 -1
  40. package/dist/src/components/generic/Countdown.d.ts +2 -1
  41. package/dist/src/components/generic/Currency.d.ts +2 -1
  42. package/dist/src/components/generic/DateRangePicker/DateRangePicker.d.ts +2 -1
  43. package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.d.ts +2 -1
  44. package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.d.ts +2 -1
  45. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.d.ts +2 -1
  46. package/dist/src/components/generic/Distance.d.ts +2 -1
  47. package/dist/src/components/generic/Headline.d.ts +1 -1
  48. package/dist/src/components/generic/Icon/Icon.d.ts +4 -3
  49. package/dist/src/components/generic/InputGroup/InputGroup.d.ts +2 -2
  50. package/dist/src/components/generic/LineBreak.d.ts +2 -1
  51. package/dist/src/components/generic/Notification.d.ts +1 -1
  52. package/dist/src/components/generic/NumberIncrement.d.ts +2 -1
  53. package/dist/src/components/generic/Overlay/Overlay.d.ts +2 -2
  54. package/dist/src/components/generic/Overlay/Overlay.js +2 -1
  55. package/dist/src/components/generic/Overlay/Overlay.js.map +1 -1
  56. package/dist/src/components/generic/PaymentCard/PaymentCard.d.ts +2 -1
  57. package/dist/src/components/generic/Pill.d.ts +3 -4
  58. package/dist/src/components/generic/Pill.js.map +1 -1
  59. package/dist/src/components/generic/Placeholder.d.ts +2 -1
  60. package/dist/src/components/generic/PromoCodeInput.d.ts +2 -1
  61. package/dist/src/components/generic/RecentSearchesCard.d.ts +2 -1
  62. package/dist/src/components/generic/RoomstayMark.d.ts +2 -1
  63. package/dist/src/components/generic/Select/Select.d.ts +2 -2
  64. package/dist/src/components/generic/Select/Select.js +1 -1
  65. package/dist/src/components/generic/Select/Select.js.map +1 -1
  66. package/dist/src/components/generic/Slider/Slider.d.ts +1 -1
  67. package/dist/src/components/generic/Tabs/Tab.d.ts +3 -3
  68. package/dist/src/components/generic/Tabs/Tab.js.map +1 -1
  69. package/dist/src/components/generic/Tabs/TabLink.d.ts +2 -1
  70. package/dist/src/components/generic/Tabs/TabRouteContainer.d.ts +2 -2
  71. package/dist/src/components/generic/Text.d.ts +1 -2
  72. package/dist/src/components/generic/Text.js.map +1 -1
  73. package/dist/src/components/generic/TextArea.d.ts +1 -1
  74. package/dist/src/components/generic/Tooltip/Tooltip.d.ts +2 -2
  75. package/dist/src/components/generic/TravelerNotfound.d.ts +2 -1
  76. package/dist/src/components/generic/badging/SSLSecureBadge.d.ts +2 -1
  77. package/dist/src/components/generic/buttons/NextStepButton.d.ts +2 -1
  78. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.d.ts +2 -2
  79. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +1 -1
  80. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -1
  81. package/dist/src/components/generic/date/DatePicker.d.ts +2 -1
  82. package/dist/src/components/generic/date/DatePickerDay.d.ts +2 -1
  83. package/dist/src/components/generic/date/DatePickerDays.d.ts +2 -1
  84. package/dist/src/components/generic/date/DatePickerMonth.d.ts +2 -1
  85. package/dist/src/components/generic/date/DatePickerWeek.d.ts +2 -1
  86. package/dist/src/components/generic/date/FloatingDatePicker.d.ts +1 -1
  87. package/dist/src/components/generic/date/WeekViewSkeleton.d.ts +2 -1
  88. package/dist/src/components/generic/loader/ImageLoader.d.ts +1 -1
  89. package/dist/src/components/generic/loader/LargeLoader.d.ts +2 -1
  90. package/dist/src/components/generic/loader/OverlayLoader.d.ts +2 -1
  91. package/dist/src/components/generic/loader/SmallSpinner.d.ts +2 -1
  92. package/dist/src/components/generic/map/HotelLocationMap.d.ts +2 -1
  93. package/dist/src/components/generic/modal/ConfirmationModal.d.ts +2 -1
  94. package/dist/src/components/generic/modal/ErrorModal.d.ts +1 -1
  95. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.d.ts +2 -1
  96. package/dist/src/components/generic/modal/SimpleModal.d.ts +1 -1
  97. package/dist/src/components/generic/modal/SimpleModal.js +2 -1
  98. package/dist/src/components/generic/modal/SimpleModal.js.map +1 -1
  99. package/dist/src/components/generic/modal/TabbedModal.d.ts +1 -1
  100. package/dist/src/components/generic/radio/RadioFields.d.ts +2 -1
  101. package/dist/src/components/iconComponents/BookNowPayLaterIcon.d.ts +2 -1
  102. package/dist/src/components/navigation/Header.d.ts +2 -1
  103. package/dist/src/components/navigation/StepSelector.d.ts +2 -1
  104. package/dist/src/components/navigation/StepSelectorModal.d.ts +2 -1
  105. package/dist/src/components/pages/Account/Card/MemberCardItem.d.ts +2 -1
  106. package/dist/src/components/pages/PageColorComponent.d.ts +2 -1
  107. package/dist/src/components/reservation/ReservationItem.d.ts +2 -1
  108. package/dist/src/components/reservation/ReservationItem.js +0 -1
  109. package/dist/src/components/reservation/ReservationItem.js.map +1 -1
  110. package/dist/src/components/steps/DaysSelectedInformer.d.ts +2 -1
  111. package/dist/src/components/steps/MinimumNightStayPill.d.ts +2 -1
  112. package/dist/src/components/steps/addons/AddonCard.d.ts +2 -1
  113. package/dist/src/components/steps/addons/AddonList.d.ts +2 -1
  114. package/dist/src/components/steps/addons/AddonsNotFound.d.ts +2 -1
  115. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +2 -1
  116. package/dist/src/components/steps/confirmation/AccountDetails.d.ts +2 -1
  117. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.d.ts +2 -1
  118. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.d.ts +1 -1
  119. package/dist/src/components/steps/confirmation/PlanpayLabel.d.ts +2 -1
  120. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.d.ts +2 -1
  121. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.d.ts +2 -1
  122. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.d.ts +1 -1
  123. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +1 -1
  124. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -1
  125. package/dist/src/components/steps/confirmation/StepConfirmationForm.d.ts +2 -1
  126. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.d.ts +2 -1
  127. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.d.ts +2 -1
  128. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.d.ts +2 -1
  129. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.d.ts +2 -1
  130. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.d.ts +2 -1
  131. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.d.ts +2 -1
  132. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.d.ts +2 -1
  133. package/dist/src/components/steps/date/PeoplePicker.d.ts +2 -1
  134. package/dist/src/components/steps/date/PeoplePickerRow.d.ts +2 -1
  135. package/dist/src/components/steps/date/StepDatePricePerRoom.d.ts +2 -1
  136. package/dist/src/components/steps/date/StepOneDateRange.d.ts +2 -1
  137. package/dist/src/components/steps/date/StepOneDateRangePicker.d.ts +2 -1
  138. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.d.ts +2 -1
  139. package/dist/src/components/steps/date/StepOneNextStepButton.d.ts +2 -1
  140. package/dist/src/components/steps/date/StepOneStatusPeople.d.ts +2 -1
  141. package/dist/src/components/steps/hotel/HotelCard.d.ts +2 -1
  142. package/dist/src/components/steps/hotel/HotelCardList.d.ts +2 -1
  143. package/dist/src/components/steps/hotel/HotelCardModal.d.ts +2 -1
  144. package/dist/src/components/steps/hotel/HotelSearchParameters.d.ts +2 -1
  145. package/dist/src/components/steps/hotel/NoHotelsAvailable.d.ts +2 -1
  146. package/dist/src/components/steps/room/ImageGallerySlider.d.ts +2 -1
  147. package/dist/src/components/steps/room/ImageGallerySlider.js +2 -1
  148. package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -1
  149. package/dist/src/components/steps/room/InactivityWindow.d.ts +2 -1
  150. package/dist/src/components/steps/room/LargeRoomCard.d.ts +2 -1
  151. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.d.ts +2 -1
  152. package/dist/src/components/steps/room/NoRoomsFoundBlock.d.ts +2 -1
  153. package/dist/src/components/steps/room/RatesNotFound.d.ts +2 -1
  154. package/dist/src/components/steps/room/RoomList.d.ts +2 -1
  155. package/dist/src/components/steps/room/RoomListAlert.d.ts +2 -2
  156. package/dist/src/components/steps/room/RoomListAlert.js.map +1 -1
  157. package/dist/src/components/steps/room/RoomModal.d.ts +2 -1
  158. package/dist/src/components/steps/room/StepRoomAlertBlocks.d.ts +2 -1
  159. package/dist/src/components/steps/room/StepRoomBestRateAlert.d.ts +2 -1
  160. package/dist/src/components/steps/room/StepRoomErrorForm.d.ts +2 -1
  161. package/dist/src/components/steps/room/StepRoomHotelDetails.d.ts +2 -1
  162. package/dist/src/components/steps/room/StepRoomSortBy.d.ts +2 -1
  163. package/dist/src/components/steps/room/StepRoomSummaryAndButton.d.ts +2 -1
  164. package/dist/src/components/steps/room/TabGroupedRooms/TabGroupedRoomList.d.ts +2 -1
  165. package/dist/src/components/steps/room/TabGroupedRooms/TabGroupedRooms.d.ts +2 -1
  166. package/dist/src/components/steps/room/TripteaseLodgingSearchSchema.d.ts +2 -1
  167. package/dist/src/components/steps/room/UserSearchSummary/UserSearchSummary.d.ts +2 -1
  168. package/dist/src/components/steps/room/UserSearchSummary/UserSearchSummaryPromocodeInput.d.ts +2 -1
  169. package/dist/src/components/steps/room/UserSearchSummary/UserSearchSummaryRow.d.ts +2 -1
  170. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.d.ts +2 -1
  171. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.d.ts +2 -1
  172. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfInfantsPicker.d.ts +2 -1
  173. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.d.ts +2 -1
  174. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.d.ts +2 -1
  175. package/dist/src/components/steps/room/roomDetails/RoomDetails.d.ts +2 -1
  176. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.d.ts +2 -1
  177. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.d.ts +2 -1
  178. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.d.ts +2 -1
  179. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.d.ts +2 -1
  180. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.d.ts +2 -1
  181. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.d.ts +3 -2
  182. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.d.ts +3 -2
  183. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.d.ts +2 -1
  184. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.d.ts +3 -2
  185. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js +1 -1
  186. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js.map +1 -1
  187. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.d.ts +2 -1
  188. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.d.ts +2 -1
  189. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.d.ts +2 -1
  190. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.d.ts +2 -1
  191. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.d.ts +2 -1
  192. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +2 -1
  193. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +2 -1
  194. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +2 -1
  195. package/dist/src/components/summary/BEMobileSummary.d.ts +2 -1
  196. package/dist/src/components/summary/BEMobileSummaryModal.d.ts +2 -1
  197. package/dist/src/components/summary/BESummary.d.ts +2 -1
  198. package/dist/src/components/summary/BESummary.js +1 -1
  199. package/dist/src/components/summary/BESummary.js.map +1 -1
  200. package/dist/src/components/summary/BESummaryAddonRow.d.ts +2 -1
  201. package/dist/src/components/summary/BESummaryPerkBlock.d.ts +2 -1
  202. package/dist/src/components/summary/BESummaryPrivacyPolicy.d.ts +2 -1
  203. package/dist/src/components/summary/BESummaryRoomRow.d.ts +2 -1
  204. package/dist/src/components/summary/TransportDistanceFromHotelBlock.d.ts +2 -1
  205. package/dist/src/contexts/BasketContext/BasketContextWrapper.d.ts +1 -1
  206. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +1 -1
  207. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.d.ts +2 -2
  208. package/dist/src/contexts/ConfirmationFormContext.d.ts +1 -1
  209. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepErrorModal.d.ts +2 -1
  210. package/dist/src/contexts/ErrorContext.d.ts +1 -1
  211. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.d.ts +2 -1
  212. package/dist/src/contexts/HotelOverridesContext.d.ts +1 -1
  213. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.d.ts +2 -2
  214. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js.map +1 -1
  215. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.d.ts +2 -2
  216. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js.map +1 -1
  217. package/dist/src/contexts/ModalContext.d.ts +1 -1
  218. package/dist/src/contexts/NotificationContext.d.ts +1 -1
  219. package/dist/src/engines/BaseEngine.js +32 -3
  220. package/dist/src/engines/BaseEngine.js.map +1 -1
  221. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.d.ts +2 -1
  222. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js +3 -2
  223. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js.map +1 -1
  224. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.d.ts +4 -2
  225. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +5 -3
  226. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -1
  227. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.d.ts +2 -1
  228. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +4 -3
  229. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -1
  230. package/dist/src/engines/MemberPortalWidget/MemberPortalWidgetElement.d.ts +2 -1
  231. package/dist/src/engines/MemberPortalWidget/MemberPortalWidgetElement.js +5 -4
  232. package/dist/src/engines/MemberPortalWidget/MemberPortalWidgetElement.js.map +1 -1
  233. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.d.ts +2 -1
  234. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +4 -3
  235. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -1
  236. package/dist/src/icons/Check.d.ts +2 -1
  237. package/dist/src/pages/account/AccountHome/AccountHomePage.d.ts +2 -1
  238. package/dist/src/pages/account/AccountOutlet.d.ts +1 -1
  239. package/dist/src/pages/account/AccountRouter.d.ts +2 -1
  240. package/dist/src/pages/account/Details/AccountDetailsCardsPage.d.ts +2 -1
  241. package/dist/src/pages/account/Details/AccountDetailsProfilePage.d.ts +2 -1
  242. package/dist/src/pages/account/Help/AccountHelpPage.d.ts +2 -1
  243. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.d.ts +2 -1
  244. package/dist/src/pages/account/Reservations/AccountReservationsPage.d.ts +2 -1
  245. package/dist/src/pages/findReservation/FindReservation.d.ts +2 -1
  246. package/dist/src/pages/findReservation/FindReservation.js +1 -1
  247. package/dist/src/pages/findReservation/FindReservation.js.map +1 -1
  248. package/dist/src/pages/findReservation/FindReservationResults.d.ts +2 -1
  249. package/dist/src/pages/findReservation/ReservationRow.d.ts +2 -1
  250. package/dist/src/pages/findReservation/ReservationRowModal.d.ts +2 -1
  251. package/dist/src/pages/hotel/HotelInfo.d.ts +2 -1
  252. package/dist/src/pages/hotel/HotelInfoPlaceholder.d.ts +2 -1
  253. package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +2 -1
  254. package/dist/src/pages/steps/StepAddon/StepAddonComponent.d.ts +2 -1
  255. package/dist/src/pages/steps/StepAddon/StepAddonLoader.d.ts +2 -1
  256. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.d.ts +2 -1
  257. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.d.ts +2 -1
  258. package/dist/src/pages/steps/StepDate/StepDate.d.ts +2 -1
  259. package/dist/src/pages/steps/StepDate/StepDateComponent.d.ts +2 -1
  260. package/dist/src/pages/steps/StepGroupedRoom/StepGroupedRoomComponent.d.ts +2 -1
  261. package/dist/src/pages/steps/StepGroupedRoom/StepGroupedRoomLoader.d.ts +2 -1
  262. package/dist/src/pages/steps/StepGuide.d.ts +1 -1
  263. package/dist/src/pages/steps/StepHotel/StepHotel.d.ts +2 -1
  264. package/dist/src/pages/steps/StepHotel/StepHotelComponent.d.ts +2 -1
  265. package/dist/src/pages/steps/StepHotel/StepHotelLoader.d.ts +2 -1
  266. package/dist/src/pages/steps/StepRoom/StepRoomComponent.d.ts +2 -1
  267. package/dist/src/pages/steps/StepRoom/StepRoomLoader.d.ts +2 -1
  268. package/dist/src/pages/steps/StepThanks/StepThanksComponent.d.ts +2 -1
  269. package/dist/src/providers/DIProvider.d.ts +2 -1
  270. package/dist/src/providers/RoomstayThemeEngine.js +1 -1
  271. package/dist/src/providers/RoomstayThemeEngine.js.map +1 -1
  272. package/dist/src/routes/NaturallyProgressedStepRoute.d.ts +2 -1
  273. package/dist/test.bundle.js +1 -1
  274. package/dist/vendors.bundle.js +1 -1
  275. package/dist/vendors.bundle.js.LICENSE.txt +11 -14
  276. package/package.json +8 -8
  277. package/dist/535.bundle.js +0 -2
  278. package/dist/src/stories/Alert.stories.d.ts +0 -5
  279. package/dist/src/stories/Alert.stories.js +0 -19
  280. package/dist/src/stories/Alert.stories.js.map +0 -1
  281. package/dist/src/stories/BEButton.stories.d.ts +0 -5
  282. package/dist/src/stories/BEButton.stories.js +0 -20
  283. package/dist/src/stories/BEButton.stories.js.map +0 -1
  284. package/dist/src/stories/BackButton.stories.d.ts +0 -5
  285. package/dist/src/stories/BackButton.stories.js +0 -17
  286. package/dist/src/stories/BackButton.stories.js.map +0 -1
  287. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.d.ts +0 -5
  288. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js +0 -17
  289. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js.map +0 -1
  290. package/dist/src/stories/BookingWizard.stories.d.ts +0 -10
  291. package/dist/src/stories/BookingWizard.stories.js +0 -67
  292. package/dist/src/stories/BookingWizard.stories.js.map +0 -1
  293. package/dist/src/stories/Card.stories.d.ts +0 -11
  294. package/dist/src/stories/Card.stories.js +0 -20
  295. package/dist/src/stories/Card.stories.js.map +0 -1
  296. package/dist/src/stories/CardTypeSelect.stories.d.ts +0 -5
  297. package/dist/src/stories/CardTypeSelect.stories.js +0 -17
  298. package/dist/src/stories/CardTypeSelect.stories.js.map +0 -1
  299. package/dist/src/stories/Checkbox.stories.d.ts +0 -5
  300. package/dist/src/stories/Checkbox.stories.js +0 -20
  301. package/dist/src/stories/Checkbox.stories.js.map +0 -1
  302. package/dist/src/stories/ConfirmationModal.stories.d.ts +0 -5
  303. package/dist/src/stories/ConfirmationModal.stories.js +0 -44
  304. package/dist/src/stories/ConfirmationModal.stories.js.map +0 -1
  305. package/dist/src/stories/Countdown.stories.d.ts +0 -5
  306. package/dist/src/stories/Countdown.stories.js +0 -20
  307. package/dist/src/stories/Countdown.stories.js.map +0 -1
  308. package/dist/src/stories/Currency.stories.d.ts +0 -5
  309. package/dist/src/stories/Currency.stories.js +0 -19
  310. package/dist/src/stories/Currency.stories.js.map +0 -1
  311. package/dist/src/stories/DateRangePicker.stories.d.ts +0 -8
  312. package/dist/src/stories/DateRangePicker.stories.js +0 -90
  313. package/dist/src/stories/DateRangePicker.stories.js.map +0 -1
  314. package/dist/src/stories/Distance.stories.d.ts +0 -5
  315. package/dist/src/stories/Distance.stories.js +0 -19
  316. package/dist/src/stories/Distance.stories.js.map +0 -1
  317. package/dist/src/stories/EnhancedPhoneNumberField.stories.d.ts +0 -5
  318. package/dist/src/stories/EnhancedPhoneNumberField.stories.js +0 -19
  319. package/dist/src/stories/EnhancedPhoneNumberField.stories.js.map +0 -1
  320. package/dist/src/stories/ErrorModal.stories.d.ts +0 -5
  321. package/dist/src/stories/ErrorModal.stories.js +0 -45
  322. package/dist/src/stories/ErrorModal.stories.js.map +0 -1
  323. package/dist/src/stories/EventCarousel.stories.d.ts +0 -6
  324. package/dist/src/stories/EventCarousel.stories.js +0 -236
  325. package/dist/src/stories/EventCarousel.stories.js.map +0 -1
  326. package/dist/src/stories/FloatingDateRangePicker.stories.d.ts +0 -6
  327. package/dist/src/stories/FloatingDateRangePicker.stories.js +0 -74
  328. package/dist/src/stories/FloatingDateRangePicker.stories.js.map +0 -1
  329. package/dist/src/stories/ForwardedSelect.stories.d.ts +0 -5
  330. package/dist/src/stories/ForwardedSelect.stories.js +0 -28
  331. package/dist/src/stories/ForwardedSelect.stories.js.map +0 -1
  332. package/dist/src/stories/Headline.stories.d.ts +0 -5
  333. package/dist/src/stories/Headline.stories.js +0 -19
  334. package/dist/src/stories/Headline.stories.js.map +0 -1
  335. package/dist/src/stories/Icon.stories.d.ts +0 -5
  336. package/dist/src/stories/Icon.stories.js +0 -42
  337. package/dist/src/stories/Icon.stories.js.map +0 -1
  338. package/dist/src/stories/IconNavCard.stories.d.ts +0 -26
  339. package/dist/src/stories/IconNavCard.stories.js +0 -31
  340. package/dist/src/stories/IconNavCard.stories.js.map +0 -1
  341. package/dist/src/stories/IconText.stories.d.ts +0 -5
  342. package/dist/src/stories/IconText.stories.js +0 -42
  343. package/dist/src/stories/IconText.stories.js.map +0 -1
  344. package/dist/src/stories/ImageLoader.stories.d.ts +0 -5
  345. package/dist/src/stories/ImageLoader.stories.js +0 -19
  346. package/dist/src/stories/ImageLoader.stories.js.map +0 -1
  347. package/dist/src/stories/InputGroup.stories.d.ts +0 -5
  348. package/dist/src/stories/InputGroup.stories.js +0 -19
  349. package/dist/src/stories/InputGroup.stories.js.map +0 -1
  350. package/dist/src/stories/LargeLoader.stories.d.ts +0 -5
  351. package/dist/src/stories/LargeLoader.stories.js +0 -17
  352. package/dist/src/stories/LargeLoader.stories.js.map +0 -1
  353. package/dist/src/stories/LineBreak.stories.d.ts +0 -5
  354. package/dist/src/stories/LineBreak.stories.js +0 -17
  355. package/dist/src/stories/LineBreak.stories.js.map +0 -1
  356. package/dist/src/stories/Notification.stories.d.ts +0 -5
  357. package/dist/src/stories/Notification.stories.js +0 -23
  358. package/dist/src/stories/Notification.stories.js.map +0 -1
  359. package/dist/src/stories/NumberIncrement.stories.d.ts +0 -5
  360. package/dist/src/stories/NumberIncrement.stories.js +0 -46
  361. package/dist/src/stories/NumberIncrement.stories.js.map +0 -1
  362. package/dist/src/stories/PasswordBox.stories.d.ts +0 -5
  363. package/dist/src/stories/PasswordBox.stories.js +0 -17
  364. package/dist/src/stories/PasswordBox.stories.js.map +0 -1
  365. package/dist/src/stories/PaymentCard.stories.d.ts +0 -4
  366. package/dist/src/stories/PaymentCard.stories.js +0 -27
  367. package/dist/src/stories/PaymentCard.stories.js.map +0 -1
  368. package/dist/src/stories/PaymentCardInput.stories.d.ts +0 -6
  369. package/dist/src/stories/PaymentCardInput.stories.js +0 -39
  370. package/dist/src/stories/PaymentCardInput.stories.js.map +0 -1
  371. package/dist/src/stories/Pill.stories.d.ts +0 -5
  372. package/dist/src/stories/Pill.stories.js +0 -19
  373. package/dist/src/stories/Pill.stories.js.map +0 -1
  374. package/dist/src/stories/Placeholder.stories.d.ts +0 -5
  375. package/dist/src/stories/Placeholder.stories.js +0 -22
  376. package/dist/src/stories/Placeholder.stories.js.map +0 -1
  377. package/dist/src/stories/PlanpayButton.stories.d.ts +0 -5
  378. package/dist/src/stories/PlanpayButton.stories.js +0 -19
  379. package/dist/src/stories/PlanpayButton.stories.js.map +0 -1
  380. package/dist/src/stories/PromoCodeInput.stories.d.ts +0 -5
  381. package/dist/src/stories/PromoCodeInput.stories.js +0 -17
  382. package/dist/src/stories/PromoCodeInput.stories.js.map +0 -1
  383. package/dist/src/stories/RadioButton.stories.d.ts +0 -6
  384. package/dist/src/stories/RadioButton.stories.js +0 -27
  385. package/dist/src/stories/RadioButton.stories.js.map +0 -1
  386. package/dist/src/stories/RadioButtonGroup.stories.d.ts +0 -8
  387. package/dist/src/stories/RadioButtonGroup.stories.js +0 -126
  388. package/dist/src/stories/RadioButtonGroup.stories.js.map +0 -1
  389. package/dist/src/stories/RadioFields.stories.d.ts +0 -5
  390. package/dist/src/stories/RadioFields.stories.js +0 -31
  391. package/dist/src/stories/RadioFields.stories.js.map +0 -1
  392. package/dist/src/stories/SSLSecureBadge.stories.d.ts +0 -5
  393. package/dist/src/stories/SSLSecureBadge.stories.js +0 -17
  394. package/dist/src/stories/SSLSecureBadge.stories.js.map +0 -1
  395. package/dist/src/stories/Select.stories.d.ts +0 -9
  396. package/dist/src/stories/Select.stories.js +0 -95
  397. package/dist/src/stories/Select.stories.js.map +0 -1
  398. package/dist/src/stories/SimpleModal.stories.d.ts +0 -5
  399. package/dist/src/stories/SimpleModal.stories.js +0 -52
  400. package/dist/src/stories/SimpleModal.stories.js.map +0 -1
  401. package/dist/src/stories/Slider.stories.d.ts +0 -10
  402. package/dist/src/stories/Slider.stories.js +0 -52
  403. package/dist/src/stories/Slider.stories.js.map +0 -1
  404. package/dist/src/stories/SmallSpinner.stories.d.ts +0 -5
  405. package/dist/src/stories/SmallSpinner.stories.js +0 -17
  406. package/dist/src/stories/SmallSpinner.stories.js.map +0 -1
  407. package/dist/src/stories/TabbedModal.stories.d.ts +0 -5
  408. package/dist/src/stories/TabbedModal.stories.js +0 -60
  409. package/dist/src/stories/TabbedModal.stories.js.map +0 -1
  410. package/dist/src/stories/Tabs.stories.d.ts +0 -5
  411. package/dist/src/stories/Tabs.stories.js +0 -29
  412. package/dist/src/stories/Tabs.stories.js.map +0 -1
  413. package/dist/src/stories/Text.stories.d.ts +0 -5
  414. package/dist/src/stories/Text.stories.js +0 -19
  415. package/dist/src/stories/Text.stories.js.map +0 -1
  416. package/dist/src/stories/TextArea.stories.d.ts +0 -5
  417. package/dist/src/stories/TextArea.stories.js +0 -17
  418. package/dist/src/stories/TextArea.stories.js.map +0 -1
  419. package/dist/src/stories/TextBox.stories.d.ts +0 -5
  420. package/dist/src/stories/TextBox.stories.js +0 -17
  421. package/dist/src/stories/TextBox.stories.js.map +0 -1
  422. package/dist/src/stories/Tooltip.stories.d.ts +0 -5
  423. package/dist/src/stories/Tooltip.stories.js +0 -20
  424. package/dist/src/stories/Tooltip.stories.js.map +0 -1
  425. package/dist/tests/offline/entry/OfflineEngineDefaults.d.ts +0 -3
  426. package/dist/tests/offline/entry/OfflineEngineDefaults.js +0 -143
  427. package/dist/tests/offline/entry/OfflineEngineDefaults.js.map +0 -1
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ReservationDTO } from '../../models/Api/ReservationsDTO';
2
3
  interface ReservationRowModalProps {
3
4
  reservation: ReservationDTO;
@@ -5,5 +6,5 @@ interface ReservationRowModalProps {
5
6
  open: boolean;
6
7
  images?: string[];
7
8
  }
8
- export default function ReservationRowModal(props: ReservationRowModalProps): JSX.Element;
9
+ export default function ReservationRowModal(props: ReservationRowModalProps): React.JSX.Element;
9
10
  export {};
@@ -1 +1,2 @@
1
- export default function HotelInfo(): JSX.Element;
1
+ import React from 'react';
2
+ export default function HotelInfo(): React.JSX.Element;
@@ -1 +1,2 @@
1
- export default function HotelInfoPlaceholder(): JSX.Element;
1
+ import React from 'react';
2
+ export default function HotelInfoPlaceholder(): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IHotelColorScheme } from '@roomstay/core';
2
3
  import { Company } from '../../../models/Client/Hotel/Company';
3
4
  import { Hotel } from '../../../models/Client/Hotel/Hotel';
@@ -5,7 +6,7 @@ import Step from '../Step';
5
6
  import StepAddonValidator from './StepAddonValidator';
6
7
  declare class StepAddon extends Step {
7
8
  constructor();
8
- getComponent(): () => JSX.Element;
9
+ getComponent(): () => import("react").JSX.Element;
9
10
  getValidator(): StepAddonValidator;
10
11
  getStepTranslation(): string;
11
12
  getColorProfile(company: Company, hotel?: Hotel): IHotelColorScheme | undefined;
@@ -1 +1,2 @@
1
- export default function StepAddonComponent(): JSX.Element;
1
+ import React from 'react';
2
+ export default function StepAddonComponent(): React.JSX.Element;
@@ -1,2 +1,3 @@
1
- declare const StepAddonPlaceholder: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const StepAddonPlaceholder: () => React.JSX.Element;
2
3
  export default StepAddonPlaceholder;
@@ -1,2 +1,3 @@
1
- declare function StepConfirmationComponent(): JSX.Element;
1
+ import React from 'react';
2
+ declare function StepConfirmationComponent(): React.JSX.Element;
2
3
  export default StepConfirmationComponent;
@@ -1 +1,2 @@
1
- export default function StepConfirmationLoader(): JSX.Element;
1
+ import React from 'react';
2
+ export default function StepConfirmationLoader(): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IHotelColorScheme } from '@roomstay/core';
2
3
  import { Company } from '../../../models/Client/Hotel/Company';
3
4
  import { Hotel } from '../../../models/Client/Hotel/Hotel';
@@ -5,7 +6,7 @@ import Step from '../Step';
5
6
  import StepDateValidator from './StepDateValidator';
6
7
  declare class StepDate extends Step {
7
8
  constructor();
8
- getComponent(): () => JSX.Element;
9
+ getComponent(): () => import("react").JSX.Element;
9
10
  getValidator(): StepDateValidator;
10
11
  getStepTranslation(): string;
11
12
  getColorProfile(company: Company, hotel?: Hotel): IHotelColorScheme | undefined;
@@ -1,2 +1,3 @@
1
- declare const StepDate: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const StepDate: () => React.JSX.Element;
2
3
  export default StepDate;
@@ -1,2 +1,3 @@
1
- declare const StepGroupedRoomComponent: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const StepGroupedRoomComponent: () => React.JSX.Element;
2
3
  export default StepGroupedRoomComponent;
@@ -1 +1,2 @@
1
- export default function StepGroupedRoomLoader(): JSX.Element;
1
+ import React from 'react';
2
+ export default function StepGroupedRoomLoader(): React.JSX.Element;
@@ -4,4 +4,4 @@ export interface StepGuideProps {
4
4
  step: Step;
5
5
  children: React.ReactNode;
6
6
  }
7
- export default function StepGuide(props: StepGuideProps): JSX.Element;
7
+ export default function StepGuide(props: StepGuideProps): React.JSX.Element;
@@ -1,10 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import { IHotelColorScheme } from '@roomstay/core';
2
3
  import { Company } from '../../../models/Client/Hotel/Company';
3
4
  import Step from '../Step';
4
5
  import StepHotelValidator from './StepHotelValidator';
5
6
  declare class StepHotel extends Step {
6
7
  constructor();
7
- getComponent(): () => JSX.Element;
8
+ getComponent(): () => import("react").JSX.Element;
8
9
  getValidator(): StepHotelValidator;
9
10
  getStepTranslation(): string;
10
11
  getColorProfile(company: Company): IHotelColorScheme;
@@ -1,2 +1,3 @@
1
- declare const StepHotelComponent: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const StepHotelComponent: () => React.JSX.Element;
2
3
  export default StepHotelComponent;
@@ -1,2 +1,3 @@
1
- declare const StepHotelLoader: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const StepHotelLoader: () => React.JSX.Element;
2
3
  export default StepHotelLoader;
@@ -1,2 +1,3 @@
1
- declare const StepRoomComponent: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const StepRoomComponent: () => React.JSX.Element;
2
3
  export default StepRoomComponent;
@@ -1 +1,2 @@
1
- export default function StepRoomLoader(): JSX.Element;
1
+ import React from 'react';
2
+ export default function StepRoomLoader(): React.JSX.Element;
@@ -1 +1,2 @@
1
- export default function StepThanksComponent(): JSX.Element;
1
+ import React from 'react';
2
+ export default function StepThanksComponent(): React.JSX.Element;
@@ -1,2 +1,3 @@
1
- export declare function withDI(name: string, OriginalObject: any, props: any): JSX.Element;
1
+ import React from 'react';
2
+ export declare function withDI(name: string, OriginalObject: any, props: any): React.JSX.Element;
2
3
  export declare function registerReplacement(name: string, component: any): void;
@@ -73,7 +73,7 @@ class RoomstayThemeEngine {
73
73
  const styleOverrides = this.createElementOrReuseExisting('style', 'engine-styles');
74
74
  styleOverrides.setAttribute('rel', 'preload');
75
75
  styleOverrides.innerHTML = `
76
- :root {
76
+ :host {
77
77
  ${(0, Color_1.getAccentOverrideStyleContent)(profile)}
78
78
  }`;
79
79
  });
@@ -1 +1 @@
1
- {"version":3,"file":"RoomstayThemeEngine.js","sourceRoot":"/","sources":["src/providers/RoomstayThemeEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA+C;AAE/C,wDAA0C;AAC1C,kDAA0B;AAC1B,+EAAuD;AACvD,iFAAyD;AACzD,sDAA2B;AAC3B,iDAAiD;AAGjD,mEAA0E;AAC1E,wCAA6D;AAY7D,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;IACvC,MAAM,CAAC,cAAc,GAAG,GAAG,CAAC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cAAc,EAAE,CAAC;QAC1B,CAAC,CAAC;QApIE,OAAO,CAAC,GAAG,CAAC,yCAAyC,kBAAU,EAAE,CAAC,CAAC;IACvE,CAAC;CAoIJ;AAED,kBAAe,IAAI,mBAAmB,EAAE,CAAC","sourcesContent":["import * as ROP from '@juggle/resize-observer';\nimport { IHotelColorScheme } from '@roomstay/core';\nimport * as Sentry from '@sentry/browser';\nimport dayjs from 'dayjs';\nimport isSameOrAfter from 'dayjs/plugin/isSameOrAfter';\nimport isSameOrBefore from 'dayjs/plugin/isSameOrBefore';\nimport i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\nimport type { Company } from '@/models/Client/Hotel/Company';\nimport { Language, LanguageProvider } from '@/providers/LanguageProvider';\nimport { getAccentOverrideStyleContent } from '@/util/Color';\n\ndeclare global {\n interface Window {\n ResizeObserver: any;\n }\n}\n\ndeclare const ASSET_URL: string;\n\nexport declare const RS_VERSION: string;\n\nif (typeof ResizeObserver === 'undefined') {\n window.ResizeObserver = ROP.ResizeObserver;\n}\n\nexport enum RoomstayTheme {\n Medium = 'medium',\n Light = 'light',\n}\n\nclass RoomstayThemeEngine {\n public currentCompany: Company | null = null;\n\n public EngineContainer!: HTMLElement;\n\n public ScriptContainer: Element | null = null;\n public StyleContainer: Element | null = null;\n\n public selectedLang: Language = Language.en_us;\n\n // TODO This needs to be changed, not ideal to just check for localhost\n public isLocalhost: boolean = location.hostname === 'localhost';\n\n // TODO: This needs to be refactored to not be a fixed string.\n public ThemeType = RoomstayTheme.Light;\n\n public ExternalStyles: string[] = [];\n public ExternalScripts: string[] = ['https://js.verygoodvault.com/vgs-collect/1/AC7dReJwJ6EWF1L9FHdcCw7n.js'];\n\n public constructor() {\n console.log(`Initializing Roomstay Booking Engine v${RS_VERSION}`);\n }\n\n public changeCompany = (newCompany: Company) => {\n this.currentCompany = newCompany;\n this.registerStyles(newCompany.colors);\n };\n\n public changeTheme = async (profile: IHotelColorScheme) => {\n const styleOverrides = this.createElementOrReuseExisting('style', 'engine-styles');\n\n styleOverrides.setAttribute('rel', 'preload');\n\n styleOverrides.innerHTML = `\n :root {\n ${getAccentOverrideStyleContent(profile)}\n }`;\n };\n\n public registerStyles = async (profile?: IHotelColorScheme) => {\n console.log('Loading custom Theme Styles');\n if (profile) {\n this.changeTheme(profile);\n }\n\n this.ExternalStyles.forEach((url, index) => {\n const style = this.createElementOrReuseExisting('link', `engine-external-style-${index}`);\n style.setAttribute('rel', 'stylesheet');\n style.setAttribute('href', this.getAssetUrl() + url);\n });\n };\n\n public getAssetUrl = () => {\n return this.isLocalhost ? '/' : ASSET_URL;\n };\n\n public getImageAssetUrl = (url = '') => {\n return this.getAssetUrl() + 'assets/img/' + url;\n };\n\n /**\n * Detects if URL is absolute, and needs to be\n * @param url string\n */\n public wrapAssetUrl = (url: string) => {\n if (url.match(/^(?:[a-z]+:)?\\/\\//)) {\n return url;\n }\n\n return this.getAssetUrl() + url;\n };\n\n public registerScripts = async () => {\n this.ExternalScripts.forEach((url: string, index) => {\n this.loadScript(url, `legacy-${index}`);\n });\n };\n\n public loadScript = (src: string, name: string): Promise<void> =>\n new Promise((resolve) => {\n const script = this.createElementOrReuseExisting('script', `script-${name}`);\n if (script.hasAttribute('src') && script.getAttribute('src') === src) {\n resolve();\n } else {\n script.setAttribute('src', src);\n script.addEventListener('load', () => {\n resolve();\n });\n }\n\n this.ScriptContainer?.appendChild(script);\n });\n\n public createElementOrReuseExisting = <K extends keyof HTMLElementTagNameMap>(type: K, name: string) => {\n const container = this.EngineContainer;\n const findingElement = container.querySelector(`${type}[name=\"roomstay-${name}\"]`);\n\n if (findingElement) {\n return findingElement;\n } else {\n const target = document.createElement(type);\n target.setAttribute('name', `roomstay-${name}`);\n container.appendChild(target);\n return target;\n }\n };\n\n public init = async () => {\n dayjs.extend(isSameOrBefore);\n dayjs.extend(isSameOrAfter);\n\n if (i18n) {\n i18n.use(initReactI18next).init({\n interpolation: { escapeValue: false },\n lng: Language.en_us,\n resources: LanguageProvider.getI18nMappedLanguages(),\n });\n }\n\n if (!this.isLocalhost) {\n Sentry.init({\n dsn: 'https://3bfba949561e48f1862c843ce8254a2d@o398412.ingest.sentry.io/5254086',\n beforeSend: (event, hint) => {\n event.tags = event.tags ?? { logger: '_default_' };\n\n try {\n if (hint?.originalException instanceof Error) {\n if ((hint.originalException.stack?.indexOf('www.googletagmanager.com/gtm.js?id=') as number) > -1) {\n event.tags.logger = 'gtm';\n event.level = Sentry.Severity.Warning;\n }\n }\n } catch (ex) {\n console.log(ex);\n }\n\n return event;\n },\n });\n }\n\n this.reloadScriptAndStyleContainers();\n };\n\n private reloadScriptAndStyleContainers = () => {\n this.StyleContainer = this.createElementOrReuseExisting('div', 'style-container');\n this.ScriptContainer = this.createElementOrReuseExisting('div', 'script-container');\n\n this.ScriptContainer.innerHTML = '';\n this.StyleContainer.innerHTML = '';\n\n this.registerStyles();\n };\n}\n\nexport default new RoomstayThemeEngine();\n"]}
1
+ {"version":3,"file":"RoomstayThemeEngine.js","sourceRoot":"/","sources":["src/providers/RoomstayThemeEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA+C;AAE/C,wDAA0C;AAC1C,kDAA0B;AAC1B,+EAAuD;AACvD,iFAAyD;AACzD,sDAA2B;AAC3B,iDAAiD;AAGjD,mEAA0E;AAC1E,wCAA6D;AAY7D,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;IACvC,MAAM,CAAC,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;CAC9C;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;AACnB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,MAAM,mBAAmB;IAmBrB;QAlBO,mBAAc,GAAmB,IAAI,CAAC;QAItC,oBAAe,GAAmB,IAAI,CAAC;QACvC,mBAAc,GAAmB,IAAI,CAAC;QAEtC,iBAAY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,MAAM,EAAE,WAAW,EAAE,CAAC;wBAEnD,IAAI;4BACA,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,iBAAiB,aAAY,KAAK,EAAE;gCAC1C,IAAI,CAAC,MAAA,IAAI,CAAC,iBAAiB,CAAC,KAAK,0CAAE,OAAO,CAAC,qCAAqC,CAAY,IAAG,CAAC,CAAC,EAAE;oCAC/F,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;oCAC1B,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC;iCACzC;6BACJ;yBACJ;wBAAC,OAAO,EAAE,EAAE;4BACT,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;yBACnB;wBAED,OAAO,KAAK,CAAC;oBACjB,CAAC;iBACJ,CAAC,CAAC;aACN;YAED,IAAI,CAAC,8BAA8B,EAAE,CAAC;QAC1C,CAAC,CAAA,CAAC;QAEM,mCAA8B,GAAG,GAAG,EAAE;YAC1C,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,4BAA4B,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;YAClF,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,4BAA4B,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;YAEpF,IAAI,CAAC,eAAe,CAAC,SAAS,GAAG,EAAE,CAAC;YACpC,IAAI,CAAC,cAAc,CAAC,SAAS,GAAG,EAAE,CAAC;YAEnC,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1B,CAAC,CAAC;QApIE,OAAO,CAAC,GAAG,CAAC,yCAAyC,kBAAU,EAAE,CAAC,CAAC;IACvE,CAAC;CAoIJ;AAED,kBAAe,IAAI,mBAAmB,EAAE,CAAC","sourcesContent":["import * as ROP from '@juggle/resize-observer';\nimport { IHotelColorScheme } from '@roomstay/core';\nimport * as Sentry from '@sentry/browser';\nimport dayjs from 'dayjs';\nimport isSameOrAfter from 'dayjs/plugin/isSameOrAfter';\nimport isSameOrBefore from 'dayjs/plugin/isSameOrBefore';\nimport i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\nimport type { Company } from '@/models/Client/Hotel/Company';\nimport { Language, LanguageProvider } from '@/providers/LanguageProvider';\nimport { getAccentOverrideStyleContent } from '@/util/Color';\n\ndeclare global {\n interface Window {\n ResizeObserver: any;\n }\n}\n\ndeclare const ASSET_URL: string;\n\nexport declare const RS_VERSION: string;\n\nif (typeof ResizeObserver === 'undefined') {\n window.ResizeObserver = ROP.ResizeObserver;\n}\n\nexport enum RoomstayTheme {\n Medium = 'medium',\n Light = 'light',\n}\n\nclass RoomstayThemeEngine {\n public currentCompany: Company | null = null;\n\n public EngineContainer!: HTMLElement;\n\n public ScriptContainer: Element | null = null;\n public StyleContainer: Element | null = null;\n\n public selectedLang: Language = Language.en_us;\n\n // TODO This needs to be changed, not ideal to just check for localhost\n public isLocalhost: boolean = location.hostname === 'localhost';\n\n // TODO: This needs to be refactored to not be a fixed string.\n public ThemeType = RoomstayTheme.Light;\n\n public ExternalStyles: string[] = [];\n public ExternalScripts: string[] = ['https://js.verygoodvault.com/vgs-collect/1/AC7dReJwJ6EWF1L9FHdcCw7n.js'];\n\n public constructor() {\n console.log(`Initializing Roomstay Booking Engine v${RS_VERSION}`);\n }\n\n public changeCompany = (newCompany: Company) => {\n this.currentCompany = newCompany;\n this.registerStyles(newCompany.colors);\n };\n\n public changeTheme = async (profile: IHotelColorScheme) => {\n const styleOverrides = this.createElementOrReuseExisting('style', 'engine-styles');\n\n styleOverrides.setAttribute('rel', 'preload');\n\n styleOverrides.innerHTML = `\n :host {\n ${getAccentOverrideStyleContent(profile)}\n }`;\n };\n\n public registerStyles = async (profile?: IHotelColorScheme) => {\n console.log('Loading custom Theme Styles');\n if (profile) {\n this.changeTheme(profile);\n }\n\n this.ExternalStyles.forEach((url, index) => {\n const style = this.createElementOrReuseExisting('link', `engine-external-style-${index}`);\n style.setAttribute('rel', 'stylesheet');\n style.setAttribute('href', this.getAssetUrl() + url);\n });\n };\n\n public getAssetUrl = () => {\n return this.isLocalhost ? '/' : ASSET_URL;\n };\n\n public getImageAssetUrl = (url = '') => {\n return this.getAssetUrl() + 'assets/img/' + url;\n };\n\n /**\n * Detects if URL is absolute, and needs to be\n * @param url string\n */\n public wrapAssetUrl = (url: string) => {\n if (url.match(/^(?:[a-z]+:)?\\/\\//)) {\n return url;\n }\n\n return this.getAssetUrl() + url;\n };\n\n public registerScripts = async () => {\n this.ExternalScripts.forEach((url: string, index) => {\n this.loadScript(url, `legacy-${index}`);\n });\n };\n\n public loadScript = (src: string, name: string): Promise<void> =>\n new Promise((resolve) => {\n const script = this.createElementOrReuseExisting('script', `script-${name}`);\n if (script.hasAttribute('src') && script.getAttribute('src') === src) {\n resolve();\n } else {\n script.setAttribute('src', src);\n script.addEventListener('load', () => {\n resolve();\n });\n }\n\n this.ScriptContainer?.appendChild(script);\n });\n\n public createElementOrReuseExisting = <K extends keyof HTMLElementTagNameMap>(type: K, name: string) => {\n const container = this.EngineContainer;\n const findingElement = container.querySelector(`${type}[name=\"roomstay-${name}\"]`);\n\n if (findingElement) {\n return findingElement;\n } else {\n const target = document.createElement(type);\n target.setAttribute('name', `roomstay-${name}`);\n container.appendChild(target);\n return target;\n }\n };\n\n public init = async () => {\n dayjs.extend(isSameOrBefore);\n dayjs.extend(isSameOrAfter);\n\n if (i18n) {\n i18n.use(initReactI18next).init({\n interpolation: { escapeValue: false },\n lng: Language.en_us,\n resources: LanguageProvider.getI18nMappedLanguages(),\n });\n }\n\n if (!this.isLocalhost) {\n Sentry.init({\n dsn: 'https://3bfba949561e48f1862c843ce8254a2d@o398412.ingest.sentry.io/5254086',\n beforeSend: (event, hint) => {\n event.tags = event.tags ?? { logger: '_default_' };\n\n try {\n if (hint?.originalException instanceof Error) {\n if ((hint.originalException.stack?.indexOf('www.googletagmanager.com/gtm.js?id=') as number) > -1) {\n event.tags.logger = 'gtm';\n event.level = Sentry.Severity.Warning;\n }\n }\n } catch (ex) {\n console.log(ex);\n }\n\n return event;\n },\n });\n }\n\n this.reloadScriptAndStyleContainers();\n };\n\n private reloadScriptAndStyleContainers = () => {\n this.StyleContainer = this.createElementOrReuseExisting('div', 'style-container');\n this.ScriptContainer = this.createElementOrReuseExisting('div', 'script-container');\n\n this.ScriptContainer.innerHTML = '';\n this.StyleContainer.innerHTML = '';\n\n this.registerStyles();\n };\n}\n\nexport default new RoomstayThemeEngine();\n"]}
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import Step from '../pages/steps/Step';
2
3
  export interface StepRouteProps {
3
4
  step: Step;
4
5
  }
5
- declare const StepRoute: (props: StepRouteProps) => JSX.Element;
6
+ declare const StepRoute: (props: StepRouteProps) => React.JSX.Element;
6
7
  export default StepRoute;