@roomstay/frontend 2.5.8-0 → 2.5.9

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 (446) hide show
  1. package/dist/{481.bundle.js → 151.bundle.js} +1 -1
  2. package/dist/201.bundle.js +1 -1
  3. package/dist/279.bundle.js +1 -1
  4. package/dist/370.bundle.js +1 -1
  5. package/dist/387.bundle.js +1 -1
  6. package/dist/446.bundle.js +1 -1
  7. package/dist/449.bundle.js +1 -1
  8. package/dist/468.bundle.js +1 -1
  9. package/dist/535.bundle.js +2 -0
  10. package/dist/{411.bundle.js.LICENSE.txt → 535.bundle.js.LICENSE.txt} +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 +1 -2
  25. package/dist/src/components/User/Forms/SignUpForm.d.ts +1 -2
  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 +1 -2
  30. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.js +2 -28
  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 +17 -3
  34. package/dist/src/components/generic/BookingWizard/BookingWizardContent.js.map +1 -1
  35. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.d.ts +2 -1
  36. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js +5 -5
  37. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js.map +1 -1
  38. package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.d.ts +1 -2
  39. package/dist/src/components/generic/Card/Card/Card.d.ts +3 -3
  40. package/dist/src/components/generic/Card/Card/Card.js.map +1 -1
  41. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.d.ts +1 -2
  42. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js.map +1 -1
  43. package/dist/src/components/generic/Countdown.d.ts +1 -2
  44. package/dist/src/components/generic/Currency.d.ts +1 -2
  45. package/dist/src/components/generic/DateRangePicker/DateRangePicker.d.ts +3 -3
  46. package/dist/src/components/generic/DateRangePicker/DateRangePicker.js +3 -2
  47. package/dist/src/components/generic/DateRangePicker/DateRangePicker.js.map +1 -1
  48. package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.d.ts +1 -2
  49. package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.d.ts +1 -2
  50. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.d.ts +3 -3
  51. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js +3 -2
  52. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js.map +1 -1
  53. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js +2 -2
  54. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js.map +1 -1
  55. package/dist/src/components/generic/Distance.d.ts +1 -2
  56. package/dist/src/components/generic/Headline.d.ts +1 -1
  57. package/dist/src/components/generic/Icon/Icon.d.ts +3 -4
  58. package/dist/src/components/generic/InputGroup/InputGroup.d.ts +2 -2
  59. package/dist/src/components/generic/LineBreak.d.ts +1 -2
  60. package/dist/src/components/generic/Notification.d.ts +1 -1
  61. package/dist/src/components/generic/NumberIncrement.d.ts +1 -2
  62. package/dist/src/components/generic/Overlay/Overlay.d.ts +2 -2
  63. package/dist/src/components/generic/Overlay/Overlay.js +1 -2
  64. package/dist/src/components/generic/Overlay/Overlay.js.map +1 -1
  65. package/dist/src/components/generic/PaymentCard/PaymentCard.d.ts +1 -2
  66. package/dist/src/components/generic/Pill.d.ts +4 -3
  67. package/dist/src/components/generic/Pill.js.map +1 -1
  68. package/dist/src/components/generic/Placeholder.d.ts +1 -2
  69. package/dist/src/components/generic/PromoCodeInput.d.ts +1 -2
  70. package/dist/src/components/generic/RecentSearchesCard.d.ts +1 -2
  71. package/dist/src/components/generic/RoomstayMark.d.ts +1 -2
  72. package/dist/src/components/generic/Select/Select.d.ts +2 -2
  73. package/dist/src/components/generic/Select/Select.js +1 -1
  74. package/dist/src/components/generic/Select/Select.js.map +1 -1
  75. package/dist/src/components/generic/Slider/Slider.d.ts +1 -1
  76. package/dist/src/components/generic/Tabs/Tab.d.ts +3 -3
  77. package/dist/src/components/generic/Tabs/Tab.js.map +1 -1
  78. package/dist/src/components/generic/Tabs/TabLink.d.ts +1 -2
  79. package/dist/src/components/generic/Tabs/TabRouteContainer.d.ts +2 -2
  80. package/dist/src/components/generic/Text.d.ts +2 -1
  81. package/dist/src/components/generic/Text.js.map +1 -1
  82. package/dist/src/components/generic/TextArea.d.ts +1 -1
  83. package/dist/src/components/generic/Tooltip/Tooltip.d.ts +2 -2
  84. package/dist/src/components/generic/TravelerNotfound.d.ts +1 -2
  85. package/dist/src/components/generic/badging/SSLSecureBadge.d.ts +1 -2
  86. package/dist/src/components/generic/buttons/NextStepButton.d.ts +1 -2
  87. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.d.ts +2 -2
  88. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +1 -1
  89. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -1
  90. package/dist/src/components/generic/date/DatePicker.d.ts +1 -2
  91. package/dist/src/components/generic/date/DatePickerDay.d.ts +1 -2
  92. package/dist/src/components/generic/date/DatePickerDays.d.ts +1 -2
  93. package/dist/src/components/generic/date/DatePickerMonth.d.ts +1 -2
  94. package/dist/src/components/generic/date/DatePickerMonth.js +4 -1
  95. package/dist/src/components/generic/date/DatePickerMonth.js.map +1 -1
  96. package/dist/src/components/generic/date/DatePickerWeek.d.ts +1 -2
  97. package/dist/src/components/generic/date/FloatingDatePicker.d.ts +1 -1
  98. package/dist/src/components/generic/date/WeekViewSkeleton.d.ts +1 -2
  99. package/dist/src/components/generic/loader/ImageLoader.d.ts +1 -1
  100. package/dist/src/components/generic/loader/LargeLoader.d.ts +1 -2
  101. package/dist/src/components/generic/loader/OverlayLoader.d.ts +1 -2
  102. package/dist/src/components/generic/loader/SmallSpinner.d.ts +1 -2
  103. package/dist/src/components/generic/map/HotelLocationMap.d.ts +1 -2
  104. package/dist/src/components/generic/modal/ConfirmationModal.d.ts +1 -2
  105. package/dist/src/components/generic/modal/ErrorModal.d.ts +1 -1
  106. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.d.ts +1 -2
  107. package/dist/src/components/generic/modal/SimpleModal.d.ts +1 -1
  108. package/dist/src/components/generic/modal/SimpleModal.js +1 -2
  109. package/dist/src/components/generic/modal/SimpleModal.js.map +1 -1
  110. package/dist/src/components/generic/modal/TabbedModal.d.ts +1 -1
  111. package/dist/src/components/generic/radio/RadioFields.d.ts +1 -2
  112. package/dist/src/components/iconComponents/BookNowPayLaterIcon.d.ts +1 -2
  113. package/dist/src/components/navigation/Header.d.ts +1 -2
  114. package/dist/src/components/navigation/StepSelector.d.ts +1 -2
  115. package/dist/src/components/navigation/StepSelectorModal.d.ts +1 -2
  116. package/dist/src/components/pages/Account/Card/MemberCardItem.d.ts +1 -2
  117. package/dist/src/components/pages/PageColorComponent.d.ts +1 -2
  118. package/dist/src/components/reservation/ReservationItem.d.ts +1 -2
  119. package/dist/src/components/reservation/ReservationItem.js +1 -0
  120. package/dist/src/components/reservation/ReservationItem.js.map +1 -1
  121. package/dist/src/components/steps/DaysSelectedInformer.d.ts +1 -2
  122. package/dist/src/components/steps/MinimumNightStayPill.d.ts +1 -2
  123. package/dist/src/components/steps/addons/AddonCard.d.ts +1 -2
  124. package/dist/src/components/steps/addons/AddonList.d.ts +1 -2
  125. package/dist/src/components/steps/addons/AddonsNotFound.d.ts +1 -2
  126. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +1 -2
  127. package/dist/src/components/steps/confirmation/AccountDetails.d.ts +1 -2
  128. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.d.ts +1 -2
  129. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.d.ts +1 -1
  130. package/dist/src/components/steps/confirmation/PlanpayLabel.d.ts +1 -2
  131. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.d.ts +1 -2
  132. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.d.ts +1 -2
  133. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.d.ts +1 -1
  134. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +1 -1
  135. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -1
  136. package/dist/src/components/steps/confirmation/StepConfirmationForm.d.ts +1 -2
  137. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.d.ts +1 -2
  138. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.d.ts +1 -2
  139. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.d.ts +1 -2
  140. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.d.ts +1 -2
  141. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.d.ts +1 -2
  142. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.d.ts +1 -2
  143. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.d.ts +1 -2
  144. package/dist/src/components/steps/date/PeoplePicker.d.ts +1 -2
  145. package/dist/src/components/steps/date/PeoplePickerRow.d.ts +1 -2
  146. package/dist/src/components/steps/date/StepDatePricePerRoom.d.ts +1 -2
  147. package/dist/src/components/steps/date/StepOneDateRange.d.ts +1 -2
  148. package/dist/src/components/steps/date/StepOneDateRangePicker.d.ts +1 -2
  149. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.d.ts +1 -2
  150. package/dist/src/components/steps/date/StepOneNextStepButton.d.ts +1 -2
  151. package/dist/src/components/steps/date/StepOneStatusPeople.d.ts +1 -2
  152. package/dist/src/components/steps/hotel/HotelCard.d.ts +1 -2
  153. package/dist/src/components/steps/hotel/HotelCardList.d.ts +1 -2
  154. package/dist/src/components/steps/hotel/HotelCardModal.d.ts +1 -2
  155. package/dist/src/components/steps/hotel/HotelSearchParameters.d.ts +1 -2
  156. package/dist/src/components/steps/hotel/NoHotelsAvailable.d.ts +1 -2
  157. package/dist/src/components/steps/room/ImageGallerySlider.d.ts +1 -2
  158. package/dist/src/components/steps/room/ImageGallerySlider.js +1 -2
  159. package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -1
  160. package/dist/src/components/steps/room/InactivityWindow.d.ts +1 -2
  161. package/dist/src/components/steps/room/LargeRoomCard.d.ts +1 -2
  162. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.d.ts +1 -2
  163. package/dist/src/components/steps/room/NoRoomsFoundBlock.d.ts +1 -2
  164. package/dist/src/components/steps/room/RatesNotFound.d.ts +1 -2
  165. package/dist/src/components/steps/room/RoomList.d.ts +1 -2
  166. package/dist/src/components/steps/room/RoomListAlert.d.ts +2 -2
  167. package/dist/src/components/steps/room/RoomListAlert.js.map +1 -1
  168. package/dist/src/components/steps/room/RoomModal.d.ts +1 -2
  169. package/dist/src/components/steps/room/StepRoomAlertBlocks.d.ts +1 -2
  170. package/dist/src/components/steps/room/StepRoomBestRateAlert.d.ts +1 -2
  171. package/dist/src/components/steps/room/StepRoomErrorForm.d.ts +1 -2
  172. package/dist/src/components/steps/room/StepRoomHotelDetails.d.ts +1 -2
  173. package/dist/src/components/steps/room/StepRoomSortBy.d.ts +1 -2
  174. package/dist/src/components/steps/room/StepRoomSummaryAndButton.d.ts +1 -2
  175. package/dist/src/components/steps/room/TabGroupedRooms/TabGroupedRoomList.d.ts +1 -2
  176. package/dist/src/components/steps/room/TabGroupedRooms/TabGroupedRooms.d.ts +1 -2
  177. package/dist/src/components/steps/room/TripteaseLodgingSearchSchema.d.ts +1 -2
  178. package/dist/src/components/steps/room/UserSearchSummary/UserSearchSummary.d.ts +1 -2
  179. package/dist/src/components/steps/room/UserSearchSummary/UserSearchSummaryPromocodeInput.d.ts +1 -2
  180. package/dist/src/components/steps/room/UserSearchSummary/UserSearchSummaryRow.d.ts +1 -2
  181. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.d.ts +1 -2
  182. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.d.ts +1 -2
  183. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfInfantsPicker.d.ts +1 -2
  184. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.d.ts +1 -2
  185. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.d.ts +1 -2
  186. package/dist/src/components/steps/room/roomDetails/RoomDetails.d.ts +1 -2
  187. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.d.ts +1 -2
  188. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.d.ts +1 -2
  189. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.d.ts +1 -2
  190. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.d.ts +1 -2
  191. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.d.ts +1 -2
  192. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.d.ts +2 -3
  193. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.d.ts +2 -3
  194. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.d.ts +1 -2
  195. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.d.ts +2 -3
  196. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js +1 -1
  197. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js.map +1 -1
  198. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.d.ts +1 -2
  199. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.d.ts +1 -2
  200. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.d.ts +1 -2
  201. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.d.ts +1 -2
  202. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.d.ts +1 -2
  203. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +1 -2
  204. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +1 -2
  205. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +1 -2
  206. package/dist/src/components/summary/BEMobileSummary.d.ts +1 -2
  207. package/dist/src/components/summary/BEMobileSummaryModal.d.ts +1 -2
  208. package/dist/src/components/summary/BESummary.d.ts +1 -2
  209. package/dist/src/components/summary/BESummary.js +1 -1
  210. package/dist/src/components/summary/BESummary.js.map +1 -1
  211. package/dist/src/components/summary/BESummaryAddonRow.d.ts +1 -2
  212. package/dist/src/components/summary/BESummaryPerkBlock.d.ts +1 -2
  213. package/dist/src/components/summary/BESummaryPrivacyPolicy.d.ts +1 -2
  214. package/dist/src/components/summary/BESummaryRoomRow.d.ts +1 -2
  215. package/dist/src/components/summary/TransportDistanceFromHotelBlock.d.ts +1 -2
  216. package/dist/src/contexts/BasketContext/BasketContextWrapper.d.ts +1 -1
  217. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +1 -1
  218. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.d.ts +2 -2
  219. package/dist/src/contexts/ConfirmationFormContext.d.ts +1 -1
  220. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepErrorModal.d.ts +1 -2
  221. package/dist/src/contexts/ErrorContext.d.ts +1 -1
  222. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.d.ts +1 -2
  223. package/dist/src/contexts/HotelOverridesContext.d.ts +1 -1
  224. package/dist/src/contexts/HotelOverridesContext.js +8 -0
  225. package/dist/src/contexts/HotelOverridesContext.js.map +1 -1
  226. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.d.ts +2 -2
  227. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js.map +1 -1
  228. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.d.ts +2 -2
  229. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js.map +1 -1
  230. package/dist/src/contexts/ModalContext.d.ts +1 -1
  231. package/dist/src/contexts/NotificationContext.d.ts +1 -1
  232. package/dist/src/engines/BaseEngine.js +3 -32
  233. package/dist/src/engines/BaseEngine.js.map +1 -1
  234. package/dist/src/engines/BookingWizardEngine/BookingWizardEngine.d.ts +2 -1
  235. package/dist/src/engines/BookingWizardEngine/BookingWizardEngine.js.map +1 -1
  236. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.d.ts +1 -2
  237. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js +2 -3
  238. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js.map +1 -1
  239. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.d.ts +2 -4
  240. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +3 -5
  241. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -1
  242. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.d.ts +1 -2
  243. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +3 -4
  244. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -1
  245. package/dist/src/engines/MemberPortalWidget/MemberPortalWidgetElement.d.ts +1 -2
  246. package/dist/src/engines/MemberPortalWidget/MemberPortalWidgetElement.js +4 -5
  247. package/dist/src/engines/MemberPortalWidget/MemberPortalWidgetElement.js.map +1 -1
  248. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.d.ts +1 -2
  249. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +3 -4
  250. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -1
  251. package/dist/src/icons/Check.d.ts +1 -2
  252. package/dist/src/models/Api/HotelOverrideDTO.d.ts +7 -1
  253. package/dist/src/models/Api/HotelOverrideDTO.js.map +1 -1
  254. package/dist/src/models/BookingWizard/BookingWizardProperty.d.ts +3 -2
  255. package/dist/src/models/BookingWizard/BookingWizardProperty.js.map +1 -1
  256. package/dist/src/pages/account/AccountHome/AccountHomePage.d.ts +1 -2
  257. package/dist/src/pages/account/AccountOutlet.d.ts +1 -1
  258. package/dist/src/pages/account/AccountRouter.d.ts +1 -2
  259. package/dist/src/pages/account/Details/AccountDetailsCardsPage.d.ts +1 -2
  260. package/dist/src/pages/account/Details/AccountDetailsProfilePage.d.ts +1 -2
  261. package/dist/src/pages/account/Help/AccountHelpPage.d.ts +1 -2
  262. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.d.ts +1 -2
  263. package/dist/src/pages/account/Reservations/AccountReservationsPage.d.ts +1 -2
  264. package/dist/src/pages/findReservation/FindReservation.d.ts +1 -2
  265. package/dist/src/pages/findReservation/FindReservation.js +1 -1
  266. package/dist/src/pages/findReservation/FindReservation.js.map +1 -1
  267. package/dist/src/pages/findReservation/FindReservationResults.d.ts +1 -2
  268. package/dist/src/pages/findReservation/ReservationRow.d.ts +1 -2
  269. package/dist/src/pages/findReservation/ReservationRowModal.d.ts +1 -2
  270. package/dist/src/pages/hotel/HotelInfo.d.ts +1 -2
  271. package/dist/src/pages/hotel/HotelInfoPlaceholder.d.ts +1 -2
  272. package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +1 -2
  273. package/dist/src/pages/steps/StepAddon/StepAddonComponent.d.ts +1 -2
  274. package/dist/src/pages/steps/StepAddon/StepAddonLoader.d.ts +1 -2
  275. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.d.ts +1 -2
  276. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.d.ts +1 -2
  277. package/dist/src/pages/steps/StepDate/StepDate.d.ts +1 -2
  278. package/dist/src/pages/steps/StepDate/StepDateComponent.d.ts +1 -2
  279. package/dist/src/pages/steps/StepGroupedRoom/StepGroupedRoomComponent.d.ts +1 -2
  280. package/dist/src/pages/steps/StepGroupedRoom/StepGroupedRoomLoader.d.ts +1 -2
  281. package/dist/src/pages/steps/StepGuide.d.ts +1 -1
  282. package/dist/src/pages/steps/StepHotel/StepHotel.d.ts +1 -2
  283. package/dist/src/pages/steps/StepHotel/StepHotelComponent.d.ts +1 -2
  284. package/dist/src/pages/steps/StepHotel/StepHotelLoader.d.ts +1 -2
  285. package/dist/src/pages/steps/StepRoom/StepRoomComponent.d.ts +1 -2
  286. package/dist/src/pages/steps/StepRoom/StepRoomLoader.d.ts +1 -2
  287. package/dist/src/pages/steps/StepThanks/StepThanksComponent.d.ts +1 -2
  288. package/dist/src/providers/DIProvider.d.ts +1 -2
  289. package/dist/src/providers/RoomstayThemeEngine.js +1 -1
  290. package/dist/src/providers/RoomstayThemeEngine.js.map +1 -1
  291. package/dist/src/routes/NaturallyProgressedStepRoute.d.ts +1 -2
  292. package/dist/src/stories/Alert.stories.d.ts +5 -0
  293. package/dist/src/stories/Alert.stories.js +19 -0
  294. package/dist/src/stories/Alert.stories.js.map +1 -0
  295. package/dist/src/stories/BEButton.stories.d.ts +5 -0
  296. package/dist/src/stories/BEButton.stories.js +20 -0
  297. package/dist/src/stories/BEButton.stories.js.map +1 -0
  298. package/dist/src/stories/BackButton.stories.d.ts +5 -0
  299. package/dist/src/stories/BackButton.stories.js +17 -0
  300. package/dist/src/stories/BackButton.stories.js.map +1 -0
  301. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.d.ts +5 -0
  302. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js +17 -0
  303. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js.map +1 -0
  304. package/dist/src/stories/BookingWizard.stories.d.ts +10 -0
  305. package/dist/src/stories/BookingWizard.stories.js +67 -0
  306. package/dist/src/stories/BookingWizard.stories.js.map +1 -0
  307. package/dist/src/stories/Card.stories.d.ts +11 -0
  308. package/dist/src/stories/Card.stories.js +20 -0
  309. package/dist/src/stories/Card.stories.js.map +1 -0
  310. package/dist/src/stories/CardTypeSelect.stories.d.ts +5 -0
  311. package/dist/src/stories/CardTypeSelect.stories.js +17 -0
  312. package/dist/src/stories/CardTypeSelect.stories.js.map +1 -0
  313. package/dist/src/stories/Checkbox.stories.d.ts +5 -0
  314. package/dist/src/stories/Checkbox.stories.js +20 -0
  315. package/dist/src/stories/Checkbox.stories.js.map +1 -0
  316. package/dist/src/stories/ConfirmationModal.stories.d.ts +5 -0
  317. package/dist/src/stories/ConfirmationModal.stories.js +44 -0
  318. package/dist/src/stories/ConfirmationModal.stories.js.map +1 -0
  319. package/dist/src/stories/Countdown.stories.d.ts +5 -0
  320. package/dist/src/stories/Countdown.stories.js +20 -0
  321. package/dist/src/stories/Countdown.stories.js.map +1 -0
  322. package/dist/src/stories/Currency.stories.d.ts +5 -0
  323. package/dist/src/stories/Currency.stories.js +19 -0
  324. package/dist/src/stories/Currency.stories.js.map +1 -0
  325. package/dist/src/stories/DateRangePicker.stories.d.ts +8 -0
  326. package/dist/src/stories/DateRangePicker.stories.js +90 -0
  327. package/dist/src/stories/DateRangePicker.stories.js.map +1 -0
  328. package/dist/src/stories/Distance.stories.d.ts +5 -0
  329. package/dist/src/stories/Distance.stories.js +19 -0
  330. package/dist/src/stories/Distance.stories.js.map +1 -0
  331. package/dist/src/stories/EnhancedPhoneNumberField.stories.d.ts +5 -0
  332. package/dist/src/stories/EnhancedPhoneNumberField.stories.js +19 -0
  333. package/dist/src/stories/EnhancedPhoneNumberField.stories.js.map +1 -0
  334. package/dist/src/stories/ErrorModal.stories.d.ts +5 -0
  335. package/dist/src/stories/ErrorModal.stories.js +45 -0
  336. package/dist/src/stories/ErrorModal.stories.js.map +1 -0
  337. package/dist/src/stories/EventCarousel.stories.d.ts +6 -0
  338. package/dist/src/stories/EventCarousel.stories.js +236 -0
  339. package/dist/src/stories/EventCarousel.stories.js.map +1 -0
  340. package/dist/src/stories/FloatingDateRangePicker.stories.d.ts +6 -0
  341. package/dist/src/stories/FloatingDateRangePicker.stories.js +74 -0
  342. package/dist/src/stories/FloatingDateRangePicker.stories.js.map +1 -0
  343. package/dist/src/stories/ForwardedSelect.stories.d.ts +5 -0
  344. package/dist/src/stories/ForwardedSelect.stories.js +28 -0
  345. package/dist/src/stories/ForwardedSelect.stories.js.map +1 -0
  346. package/dist/src/stories/Headline.stories.d.ts +5 -0
  347. package/dist/src/stories/Headline.stories.js +19 -0
  348. package/dist/src/stories/Headline.stories.js.map +1 -0
  349. package/dist/src/stories/Icon.stories.d.ts +5 -0
  350. package/dist/src/stories/Icon.stories.js +42 -0
  351. package/dist/src/stories/Icon.stories.js.map +1 -0
  352. package/dist/src/stories/IconNavCard.stories.d.ts +26 -0
  353. package/dist/src/stories/IconNavCard.stories.js +31 -0
  354. package/dist/src/stories/IconNavCard.stories.js.map +1 -0
  355. package/dist/src/stories/IconText.stories.d.ts +5 -0
  356. package/dist/src/stories/IconText.stories.js +42 -0
  357. package/dist/src/stories/IconText.stories.js.map +1 -0
  358. package/dist/src/stories/ImageLoader.stories.d.ts +5 -0
  359. package/dist/src/stories/ImageLoader.stories.js +19 -0
  360. package/dist/src/stories/ImageLoader.stories.js.map +1 -0
  361. package/dist/src/stories/InputGroup.stories.d.ts +5 -0
  362. package/dist/src/stories/InputGroup.stories.js +19 -0
  363. package/dist/src/stories/InputGroup.stories.js.map +1 -0
  364. package/dist/src/stories/LargeLoader.stories.d.ts +5 -0
  365. package/dist/src/stories/LargeLoader.stories.js +17 -0
  366. package/dist/src/stories/LargeLoader.stories.js.map +1 -0
  367. package/dist/src/stories/LineBreak.stories.d.ts +5 -0
  368. package/dist/src/stories/LineBreak.stories.js +17 -0
  369. package/dist/src/stories/LineBreak.stories.js.map +1 -0
  370. package/dist/src/stories/Notification.stories.d.ts +5 -0
  371. package/dist/src/stories/Notification.stories.js +23 -0
  372. package/dist/src/stories/Notification.stories.js.map +1 -0
  373. package/dist/src/stories/NumberIncrement.stories.d.ts +5 -0
  374. package/dist/src/stories/NumberIncrement.stories.js +46 -0
  375. package/dist/src/stories/NumberIncrement.stories.js.map +1 -0
  376. package/dist/src/stories/PasswordBox.stories.d.ts +5 -0
  377. package/dist/src/stories/PasswordBox.stories.js +17 -0
  378. package/dist/src/stories/PasswordBox.stories.js.map +1 -0
  379. package/dist/src/stories/PaymentCard.stories.d.ts +4 -0
  380. package/dist/src/stories/PaymentCard.stories.js +27 -0
  381. package/dist/src/stories/PaymentCard.stories.js.map +1 -0
  382. package/dist/src/stories/PaymentCardInput.stories.d.ts +6 -0
  383. package/dist/src/stories/PaymentCardInput.stories.js +39 -0
  384. package/dist/src/stories/PaymentCardInput.stories.js.map +1 -0
  385. package/dist/src/stories/Pill.stories.d.ts +5 -0
  386. package/dist/src/stories/Pill.stories.js +19 -0
  387. package/dist/src/stories/Pill.stories.js.map +1 -0
  388. package/dist/src/stories/Placeholder.stories.d.ts +5 -0
  389. package/dist/src/stories/Placeholder.stories.js +22 -0
  390. package/dist/src/stories/Placeholder.stories.js.map +1 -0
  391. package/dist/src/stories/PlanpayButton.stories.d.ts +5 -0
  392. package/dist/src/stories/PlanpayButton.stories.js +19 -0
  393. package/dist/src/stories/PlanpayButton.stories.js.map +1 -0
  394. package/dist/src/stories/PromoCodeInput.stories.d.ts +5 -0
  395. package/dist/src/stories/PromoCodeInput.stories.js +17 -0
  396. package/dist/src/stories/PromoCodeInput.stories.js.map +1 -0
  397. package/dist/src/stories/RadioButton.stories.d.ts +6 -0
  398. package/dist/src/stories/RadioButton.stories.js +27 -0
  399. package/dist/src/stories/RadioButton.stories.js.map +1 -0
  400. package/dist/src/stories/RadioButtonGroup.stories.d.ts +8 -0
  401. package/dist/src/stories/RadioButtonGroup.stories.js +126 -0
  402. package/dist/src/stories/RadioButtonGroup.stories.js.map +1 -0
  403. package/dist/src/stories/RadioFields.stories.d.ts +5 -0
  404. package/dist/src/stories/RadioFields.stories.js +31 -0
  405. package/dist/src/stories/RadioFields.stories.js.map +1 -0
  406. package/dist/src/stories/SSLSecureBadge.stories.d.ts +5 -0
  407. package/dist/src/stories/SSLSecureBadge.stories.js +17 -0
  408. package/dist/src/stories/SSLSecureBadge.stories.js.map +1 -0
  409. package/dist/src/stories/Select.stories.d.ts +9 -0
  410. package/dist/src/stories/Select.stories.js +95 -0
  411. package/dist/src/stories/Select.stories.js.map +1 -0
  412. package/dist/src/stories/SimpleModal.stories.d.ts +5 -0
  413. package/dist/src/stories/SimpleModal.stories.js +52 -0
  414. package/dist/src/stories/SimpleModal.stories.js.map +1 -0
  415. package/dist/src/stories/Slider.stories.d.ts +10 -0
  416. package/dist/src/stories/Slider.stories.js +52 -0
  417. package/dist/src/stories/Slider.stories.js.map +1 -0
  418. package/dist/src/stories/SmallSpinner.stories.d.ts +5 -0
  419. package/dist/src/stories/SmallSpinner.stories.js +17 -0
  420. package/dist/src/stories/SmallSpinner.stories.js.map +1 -0
  421. package/dist/src/stories/TabbedModal.stories.d.ts +5 -0
  422. package/dist/src/stories/TabbedModal.stories.js +60 -0
  423. package/dist/src/stories/TabbedModal.stories.js.map +1 -0
  424. package/dist/src/stories/Tabs.stories.d.ts +5 -0
  425. package/dist/src/stories/Tabs.stories.js +29 -0
  426. package/dist/src/stories/Tabs.stories.js.map +1 -0
  427. package/dist/src/stories/Text.stories.d.ts +5 -0
  428. package/dist/src/stories/Text.stories.js +19 -0
  429. package/dist/src/stories/Text.stories.js.map +1 -0
  430. package/dist/src/stories/TextArea.stories.d.ts +5 -0
  431. package/dist/src/stories/TextArea.stories.js +17 -0
  432. package/dist/src/stories/TextArea.stories.js.map +1 -0
  433. package/dist/src/stories/TextBox.stories.d.ts +5 -0
  434. package/dist/src/stories/TextBox.stories.js +17 -0
  435. package/dist/src/stories/TextBox.stories.js.map +1 -0
  436. package/dist/src/stories/Tooltip.stories.d.ts +5 -0
  437. package/dist/src/stories/Tooltip.stories.js +20 -0
  438. package/dist/src/stories/Tooltip.stories.js.map +1 -0
  439. package/dist/test.bundle.js +1 -1
  440. package/dist/tests/offline/entry/OfflineEngineDefaults.d.ts +3 -0
  441. package/dist/tests/offline/entry/OfflineEngineDefaults.js +145 -0
  442. package/dist/tests/offline/entry/OfflineEngineDefaults.js.map +1 -0
  443. package/dist/vendors.bundle.js +1 -1
  444. package/dist/vendors.bundle.js.LICENSE.txt +14 -11
  445. package/package.json +8 -8
  446. package/dist/411.bundle.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"FindReservation.js","sourceRoot":"/","sources":["src/pages/findReservation/FindReservation.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA4D;AAC5D,2CAA4D;AAC5D,+CAAqE;AACrE,qDAA0C;AAC1C,iDAAsD;AACtD,uDAAyD;AACzD,0DAAuD;AAEvD,iFAAyD;AACzD,6DAA8C;AAC9C,kEAAmC;AACnC,oEAA8D;AAC9D,6EAAqD;AACrD,6EAAqD;AACrD,yDAA0D;AAC1D,+EAAuD;AACvD,4FAAoE;AACpE,8GAAiG;A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AsB,IAC5D,CAAC,CAAC,yBAAW,CAAC,eAAe,CAAC,eAAe,CAAC,CAC5C;QACP,8BAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK;YACtB,8BAAC,qBAAK,IAAC,OAAO,EAAE,yBAAW,CAAC,eAAe,CAAC,gBAAgB,EAAE,UAAU,EAAE,CAAC,8BAAC,kBAAQ,IAAC,GAAG,EAAE,CAAC,EAAE,MAAM,QAAC,IAAI,EAAC,OAAO,EAAC,OAAO,QAAC,OAAO,EAAE,eAAe,GAAI,CAAC,GAAI,CACvJ,CACR,CACN,CAAC;IAEF,OAAO,CACH,uCAAK,SAAS,EAAC,wBAAwB;QACnC,uCAAK,SAAS,EAAC,mDAAmD;YAC9D,uCAAK,SAAS,EAAC,2BAA2B;gBACtC,uCAAK,SAAS,EAAC,oFAAoF;oBAC/F,8BAAC,wBAAc,IAAC,IAAI,QAAC,SAAS;wBAC1B,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,SAAS,EAAE,gBAAgB,EAAE,MAAM,IACrE,eAAe,CACJ;wBAChB,8BAAC,gBAAQ,IAAC,QAAQ,EAAE,8BAAC,sBAAY,OAAG;4BAChC,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,QAAQ,EAAE,gBAAgB,EAAE,MAAM,IACpE,UAAU,CACC;4BAChB,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,QAAQ,EAAE,gBAAgB,EAAE,MAAM,IACpE,UAAU,CACC;4BAChB,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,IAC5E,kBAAkB,CACP,CACT,CACE,CACf,CACJ,CACJ,CACJ,CACT,CAAC;AACN,CAAC;AAtSD,kCAsSC","sourcesContent":["import { FindReservationViewEvent } from '@frontend/events';\nimport { useCurrentHotel, useEvent } from '@frontend/hooks';\nimport React, { Suspense, useEffect, useRef, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { Trans, useTranslation } from 'react-i18next';\nimport { useHistory, useParams } from 'react-router-dom';\nimport { Translation } from 'translations/Translation';\n\nimport AutoAutoHeight from '@/animations/AutoAutoHeight';\nimport FadeAnimation from '@/animations/Fade';\nimport API from '@/api/BookingAPI';\nimport Alert, { AlertType } from '@/components/generic/Alert';\nimport BEButton from '@/components/generic/BEButton';\nimport Headline from '@/components/generic/Headline';\nimport { IconType } from '@/components/generic/Icon/Icon';\nimport LineBreak from '@/components/generic/LineBreak';\nimport SmallSpinner from '@/components/generic/loader/SmallSpinner';\nimport { EViewingScreen } from '@/components/generic/modal/SigninModal/UnauthenticatedUserModal';\nimport Text, { TextType } from '@/components/generic/Text';\nimport TextBox from '@/components/generic/TextBox';\nimport { CognitoLoginState, useAuthentication } from '@/contexts';\nimport MemberPortalFeature from '@/providers/feature/MemberPortalFeature';\nimport ImageProvider, { ImageSize } from '@/providers/ImageProvider';\nimport RoomstayThemeEngine from '@/providers/RoomstayThemeEngine';\nimport { Color } from '@/util/Color';\nimport StepManager from '@/util/StepManager';\nimport { EMAIL_REGEX } from '@/util/Validation';\n\nconst SignInForm = React.lazy(() =>\n import('@/components/User/Forms/SignInForm').then(({ SignInForm }) => ({\n default: SignInForm,\n }))\n);\nconst SignUpForm = React.lazy(() =>\n import('@/components/User/Forms/SignUpForm').then(({ SignUpForm }) => ({\n default: SignUpForm,\n }))\n);\nconst ForgotPasswordForm = React.lazy(() =>\n import('@/components/User/Forms/ForgotPasswordForm').then(({ ForgotPasswordForm }) => ({\n default: ForgotPasswordForm,\n }))\n);\n\nexport const QUERY_PARAM_NAME = 'path';\n\nexport enum EFindReservationPath {\n FindReservation = 'find-reservation',\n Login = 'login',\n Register = 'register',\n Forgot = 'forgot',\n}\n\nconst pathToScreenMapping: { [path in EFindReservationPath]: EViewingScreen } = {\n [EFindReservationPath.FindReservation]: EViewingScreen.Default,\n [EFindReservationPath.Login]: EViewingScreen.SignIn,\n [EFindReservationPath.Register]: EViewingScreen.SignUp,\n [EFindReservationPath.Forgot]: EViewingScreen.ForgotPassword,\n};\n\ninterface IQueryParams {\n [QUERY_PARAM_NAME]: EFindReservationPath;\n}\n\nexport default function FindReservation() {\n const { hotel } = useCurrentHotel();\n\n const { t } = useTranslation();\n\n const { cognitoLoginState } = useAuthentication();\n\n const { register, formState, handleSubmit, getValues } = useForm({\n mode: 'onChange',\n });\n\n const errors = formState.errors;\n\n const getValidationClass = (name: string) => {\n if (errors && formState.touchedFields[name]) {\n if (errors[name]) {\n return 'error';\n } else {\n return 'success';\n }\n }\n };\n\n const { path }: IQueryParams = useParams<IQueryParams>();\n const firstTime = useRef<boolean>(true);\n const nextViewingScreen = useRef<EViewingScreen | null>(null);\n\n const [isLoading, setIsLoading] = useState(false);\n const [apiErrorMessages, setApiErrorMessages] = useState('');\n const [viewingScreen, setViewingScreen] = useState<EViewingScreen | null>(pathToScreenMapping[path]);\n\n useEffect(() => {\n if (cognitoLoginState === CognitoLoginState.Success) {\n history.push(`/${EFindReservationPath.FindReservation}`);\n firstTime.current = false;\n setViewingScreen(EViewingScreen.Default);\n nextViewingScreen.current = EViewingScreen.Default;\n } else {\n if (firstTime.current) {\n firstTime.current = false;\n setViewingScreen(pathToScreenMapping[path]);\n } else {\n if (cognitoLoginState !== CognitoLoginState.ForgotPassword) setViewingScreen(null);\n nextViewingScreen.current = pathToScreenMapping[path];\n }\n }\n }, [path, cognitoLoginState]);\n\n const history = useHistory();\n\n const onSubmit = () => {\n setIsLoading(true);\n setApiErrorMessages('');\n\n API.Reservation.findReservation(getValues('Ref'), getValues('Email'), hotel?.hotelID as string)\n .then((data) => {\n history.push(`/find-reservation/${getValues('Ref')}/${getValues('Email')}`);\n })\n .catch(({ Message }) => {\n console.log(Message);\n setApiErrorMessages(Message);\n setIsLoading(false);\n });\n };\n\n const { raise } = useEvent();\n\n useEffect(() => {\n const background = document.createElement('div');\n background.classList.add('dbe-background');\n background.style.backgroundImage = `url('${hotel?.heroImage && ImageProvider.resizeImage(hotel?.heroImage, ImageSize.Original)}')`;\n\n RoomstayThemeEngine.EngineContainer.classList.add('--transparent-bg');\n RoomstayThemeEngine.EngineContainer.appendChild(background);\n\n const event = new FindReservationViewEvent();\n raise(event);\n\n return () => {\n try {\n RoomstayThemeEngine.EngineContainer.removeChild(background);\n RoomstayThemeEngine.EngineContainer.classList.remove('--transparent-bg');\n } catch (ex) {\n console.log('Unable to remove bg');\n }\n };\n }, []);\n\n useEffect(() => {\n if (hotel?.forwardFindReservationToSynxis) {\n window.open(`https://be.synxis.com/signin?hotel=` + hotel.hotelID);\n }\n }, [hotel]);\n\n const onBack = async () => {\n history.push(StepManager.getFirstStep().getStepUrl());\n };\n\n const handleSubmitOnClick = () => {\n handleSubmit(onSubmit)();\n };\n\n const onSignInClicked = () => {\n history.push(`/${EFindReservationPath.Login}`);\n };\n\n const onBackToItineraryClicked = () => {\n history.push(`/${EFindReservationPath.FindReservation}`);\n };\n\n const onSignUpClicked = () => {\n history.push(`/${EFindReservationPath.Register}`);\n };\n\n const onForgotPasswordClicked = () => {\n history.push(`/${EFindReservationPath.Forgot}`);\n };\n\n const onExit = () => {\n setViewingScreen(nextViewingScreen.current);\n };\n\n const gotoReservationPage = () => {\n history.push(`/account/reservations`);\n };\n\n const defaultContents = (\n <form onSubmit={handleSubmit(onSubmit)}>\n <div className=\"u-marg-bottom--heavy\">\n <Headline size=\"extra-large\">{t(Translation.FindReservation.FindYourReservation)}</Headline>\n </div>\n <AutoAutoHeight open={!!apiErrorMessages}>\n <div className=\"u-flex\">\n <Alert type={AlertType.Danger} icon={IconType.Error}>\n <Text type={TextType.Small}>{apiErrorMessages}</Text>\n </Alert>\n </div>\n </AutoAutoHeight>\n <div className=\"u-marg-bottom\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Label} color={Color.Navy}>\n <strong>{t(Translation.FindReservation.Confirmation)}</strong>\n </Text>\n </div>\n <TextBox\n placeholder=\"51244AB23101\"\n required\n validationStatus={getValidationClass('Ref')}\n {...register('Ref', {\n required: true,\n })}\n />\n </div>\n <div className=\"u-marg-bottom\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Label} color={Color.Navy}>\n <strong>{t(Translation.FindReservation.EmailAddress)}</strong>\n </Text>\n </div>\n <TextBox\n placeholder=\"example@mail.com\"\n required\n validationStatus={getValidationClass('Email')}\n {...register('Email', {\n required: true,\n pattern: {\n value: EMAIL_REGEX,\n message: t(Translation.FindReservation.InvalidEmailAddress),\n },\n })}\n />\n </div>\n <div className=\"u-flex justify-content-end w-100\">\n <BEButton primary filled mobileWidth isLoading={isLoading} icon={IconType.ArrowRight} iconPosition=\"right\" onClick={handleSubmitOnClick}>\n {t(Translation.FindReservation.FindReservation)}\n </BEButton>\n <button type=\"submit\" className=\"u-none\">\n {t(Translation.Misc.Submit)}\n </button>\n </div>\n {MemberPortalFeature.isActive() && cognitoLoginState === CognitoLoginState.Success && (\n <div className=\"u-align-right u-flex u-flex-flex-end u-flex-gap--light u-marg-top--light\">\n <Text type={TextType.Small}>{t(Translation.Navigation.SignIn.Or)}</Text>\n <BEButton isText primary size=\"small\" onClick={gotoReservationPage} icon={IconType.ArrowRight} iconPosition=\"right\">\n {t(Translation.FindReservation.GoToYourReservations)}\n </BEButton>\n </div>\n )}\n <LineBreak />\n {MemberPortalFeature.isActive() && cognitoLoginState !== CognitoLoginState.Success && (\n <div className=\"u-marg-bottom--heavy\">\n <BEButton isText primary size=\"small\" onClick={onSignInClicked}>\n Or sign in for more\n </BEButton>\n </div>\n )}\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Small}>\n <strong>{t(Translation.FindReservation.Question)}</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>{t(Translation.FindReservation.Answer1)}</Text>\n <Text type={TextType.Small}>{t(Translation.FindReservation.Answer2)}</Text>\n <LineBreak />\n <BEButton textColor={Color.Accent} primary={false} filled={false} mobileWidth size=\"small\" icon={IconType.ArrowLeft2} iconPosition=\"left\" onClick={onBack} isText>\n {t(Translation.FindReservation.Back)}\n </BEButton>\n </form>\n );\n\n const signInForm = (\n <>\n <SignInForm\n onForgotPassword={onForgotPasswordClicked}\n onDone={() => {\n gotoReservationPage();\n }}\n />\n <LineBreak />\n <div className=\"u-marg-bottom--heavy\">\n <BEButton isText primary size=\"small\" onClick={onBackToItineraryClicked}>\n {t(Translation.FindReservation.OrUseConfirmationItineraryNumber)}\n </BEButton>\n </div>\n <Text type={TextType.Small} bold className=\"u-marg-bottom--light\">\n {t(Translation.FindReservation.NoOnlineAccount)}\n </Text>\n <Text type={TextType.Small}>\n <Trans i18nKey={Translation.FindReservation.SignUpToSaveTime} components={[<BEButton key={0} isText size=\"small\" primary onClick={onSignUpClicked} />]}></Trans>\n </Text>\n </>\n );\n\n const signUpForm = (\n <>\n <SignUpForm\n onDone={() => {\n gotoReservationPage();\n }}\n />\n <LineBreak />\n <Text type={TextType.Small} bold className=\"u-marg-bottom--light\">\n {t(Translation.Step.Confirmation.AlreadyHaveAccount)}\n </Text>\n <Text type={TextType.Small}>\n <Trans i18nKey={Translation.FindReservation.SignInToLogin} components={[<BEButton key={0} isText size=\"small\" primary onClick={onSignInClicked} />]} />\n </Text>\n </>\n );\n\n const forgotPasswordForm = (\n <>\n <ForgotPasswordForm\n onCancelled={onSignInClicked}\n onDone={() => {\n gotoReservationPage();\n }}\n />\n <LineBreak />\n <Text type={TextType.Small} bold className=\"u-marg-bottom--light\">\n {t(Translation.FindReservation.NoOnlineAccount)}\n </Text>\n <Text type={TextType.Small}>\n <Trans i18nKey={Translation.FindReservation.SignUpToSaveTime} components={[<BEButton key={0} isText size=\"small\" primary onClick={onSignUpClicked} />]} />\n </Text>\n </>\n );\n\n return (\n <div className=\"u-pad-left u-pad-right\">\n <div className=\"container u-marg-top--heavy u-pad-bottom--massive\">\n <div className=\"row u-pad-bottom--massive\">\n <div className=\"col-md-6 col-xl-4 u-fill-white u-pad--heavy u-shadow-accent-large u-border-rounded\">\n <AutoAutoHeight open startOpen>\n <FadeAnimation open={viewingScreen === 'Default'} onExitCompletely={onExit}>\n {defaultContents}\n </FadeAnimation>\n <Suspense fallback={<SmallSpinner />}>\n <FadeAnimation open={viewingScreen === 'SignIn'} onExitCompletely={onExit}>\n {signInForm}\n </FadeAnimation>\n <FadeAnimation open={viewingScreen === 'SignUp'} onExitCompletely={onExit}>\n {signUpForm}\n </FadeAnimation>\n <FadeAnimation open={viewingScreen === 'ForgotPassword'} onExitCompletely={onExit}>\n {forgotPasswordForm}\n </FadeAnimation>\n </Suspense>\n </AutoAutoHeight>\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"FindReservation.js","sourceRoot":"/","sources":["src/pages/findReservation/FindReservation.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA4D;AAC5D,2CAA4D;AAC5D,+CAAqE;AACrE,qDAA0C;AAC1C,iDAAsD;AACtD,uDAAyD;AACzD,0DAAuD;AAEvD,iFAAyD;AACzD,6DAA8C;AAC9C,kEAAmC;AACnC,oEAA8D;AAC9D,6EAAqD;AACrD,6EAAqD;AACrD,yDAA0D;AAC1D,+EAAuD;AACvD,4FAAoE;AACpE,8GAAiG;AACjG,kEAA2D;AAC3D,2EAAmD;AACnD,yCAAkE;AAClE,kGAA0E;AAC1E,2EAAqE;AACrE,0FAAkE;AAClE,wCAAqC;AACrC,qEAA6C;AAC7C,kDAAgD;AAEhD,MAAM,UAAU,GAAG,eAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAC/B,kDAAO,oCAAoC,IAAE,IAAI,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,OAAO,EAAE,UAAU;CACtB,CAAC,CAAC,CACN,CAAC;AACF,MAAM,UAAU,GAAG,eAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAC/B,kDAAO,oCAAoC,IAAE,IAAI,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC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2B;gBACtC,uCAAK,SAAS,EAAC,oFAAoF;oBAC/F,8BAAC,wBAAc,IAAC,IAAI,QAAC,SAAS;wBAC1B,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,SAAS,EAAE,gBAAgB,EAAE,MAAM,IACrE,eAAe,CACJ;wBAChB,8BAAC,gBAAQ,IAAC,QAAQ,EAAE,sBAAY;4BAC5B,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,QAAQ,EAAE,gBAAgB,EAAE,MAAM,IACpE,UAAU,CACC;4BAChB,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,QAAQ,EAAE,gBAAgB,EAAE,MAAM,IACpE,UAAU,CACC;4BAChB,8BAAC,cAAa,IAAC,IAAI,EAAE,aAAa,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,IAC5E,kBAAkB,CACP,CACT,CACE,CACf,CACJ,CACJ,CACJ,CACT,CAAC;AACN,CAAC;AAtSD,kCAsSC","sourcesContent":["import { FindReservationViewEvent } from '@frontend/events';\nimport { useCurrentHotel, useEvent } from '@frontend/hooks';\nimport React, { Suspense, useEffect, useRef, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { Trans, useTranslation } from 'react-i18next';\nimport { useHistory, useParams } from 'react-router-dom';\nimport { Translation } from 'translations/Translation';\n\nimport AutoAutoHeight from '@/animations/AutoAutoHeight';\nimport FadeAnimation from '@/animations/Fade';\nimport API from '@/api/BookingAPI';\nimport Alert, { AlertType } from '@/components/generic/Alert';\nimport BEButton from '@/components/generic/BEButton';\nimport Headline from '@/components/generic/Headline';\nimport { IconType } from '@/components/generic/Icon/Icon';\nimport LineBreak from '@/components/generic/LineBreak';\nimport SmallSpinner from '@/components/generic/loader/SmallSpinner';\nimport { EViewingScreen } from '@/components/generic/modal/SigninModal/UnauthenticatedUserModal';\nimport Text, { TextType } from '@/components/generic/Text';\nimport TextBox from '@/components/generic/TextBox';\nimport { CognitoLoginState, useAuthentication } from '@/contexts';\nimport MemberPortalFeature from '@/providers/feature/MemberPortalFeature';\nimport ImageProvider, { ImageSize } from '@/providers/ImageProvider';\nimport RoomstayThemeEngine from '@/providers/RoomstayThemeEngine';\nimport { Color } from '@/util/Color';\nimport StepManager from '@/util/StepManager';\nimport { EMAIL_REGEX } from '@/util/Validation';\n\nconst SignInForm = React.lazy(() =>\n import('@/components/User/Forms/SignInForm').then(({ SignInForm }) => ({\n default: SignInForm,\n }))\n);\nconst SignUpForm = React.lazy(() =>\n import('@/components/User/Forms/SignUpForm').then(({ SignUpForm }) => ({\n default: SignUpForm,\n }))\n);\nconst ForgotPasswordForm = React.lazy(() =>\n import('@/components/User/Forms/ForgotPasswordForm').then(({ ForgotPasswordForm }) => ({\n default: ForgotPasswordForm,\n }))\n);\n\nexport const QUERY_PARAM_NAME = 'path';\n\nexport enum EFindReservationPath {\n FindReservation = 'find-reservation',\n Login = 'login',\n Register = 'register',\n Forgot = 'forgot',\n}\n\nconst pathToScreenMapping: { [path in EFindReservationPath]: EViewingScreen } = {\n [EFindReservationPath.FindReservation]: EViewingScreen.Default,\n [EFindReservationPath.Login]: EViewingScreen.SignIn,\n [EFindReservationPath.Register]: EViewingScreen.SignUp,\n [EFindReservationPath.Forgot]: EViewingScreen.ForgotPassword,\n};\n\ninterface IQueryParams {\n [QUERY_PARAM_NAME]: EFindReservationPath;\n}\n\nexport default function FindReservation() {\n const { hotel } = useCurrentHotel();\n\n const { t } = useTranslation();\n\n const { cognitoLoginState } = useAuthentication();\n\n const { register, formState, handleSubmit, getValues } = useForm({\n mode: 'onChange',\n });\n\n const errors = formState.errors;\n\n const getValidationClass = (name: string) => {\n if (errors && formState.touchedFields[name]) {\n if (errors[name]) {\n return 'error';\n } else {\n return 'success';\n }\n }\n };\n\n const { path }: IQueryParams = useParams<IQueryParams>();\n const firstTime = useRef<boolean>(true);\n const nextViewingScreen = useRef<EViewingScreen | null>(null);\n\n const [isLoading, setIsLoading] = useState(false);\n const [apiErrorMessages, setApiErrorMessages] = useState('');\n const [viewingScreen, setViewingScreen] = useState<EViewingScreen | null>(pathToScreenMapping[path]);\n\n useEffect(() => {\n if (cognitoLoginState === CognitoLoginState.Success) {\n history.push(`/${EFindReservationPath.FindReservation}`);\n firstTime.current = false;\n setViewingScreen(EViewingScreen.Default);\n nextViewingScreen.current = EViewingScreen.Default;\n } else {\n if (firstTime.current) {\n firstTime.current = false;\n setViewingScreen(pathToScreenMapping[path]);\n } else {\n if (cognitoLoginState !== CognitoLoginState.ForgotPassword) setViewingScreen(null);\n nextViewingScreen.current = pathToScreenMapping[path];\n }\n }\n }, [path, cognitoLoginState]);\n\n const history = useHistory();\n\n const onSubmit = () => {\n setIsLoading(true);\n setApiErrorMessages('');\n\n API.Reservation.findReservation(getValues('Ref'), getValues('Email'), hotel?.hotelID as string)\n .then((data) => {\n history.push(`/find-reservation/${getValues('Ref')}/${getValues('Email')}`);\n })\n .catch(({ Message }) => {\n console.log(Message);\n setApiErrorMessages(Message);\n setIsLoading(false);\n });\n };\n\n const { raise } = useEvent();\n\n useEffect(() => {\n const background = document.createElement('div');\n background.classList.add('dbe-background');\n background.style.backgroundImage = `url('${hotel?.heroImage && ImageProvider.resizeImage(hotel?.heroImage, ImageSize.Original)}')`;\n\n RoomstayThemeEngine.EngineContainer.classList.add('--transparent-bg');\n RoomstayThemeEngine.EngineContainer.appendChild(background);\n\n const event = new FindReservationViewEvent();\n raise(event);\n\n return () => {\n try {\n RoomstayThemeEngine.EngineContainer.removeChild(background);\n RoomstayThemeEngine.EngineContainer.classList.remove('--transparent-bg');\n } catch (ex) {\n console.log('Unable to remove bg');\n }\n };\n }, []);\n\n useEffect(() => {\n if (hotel?.forwardFindReservationToSynxis) {\n window.open(`https://be.synxis.com/signin?hotel=` + hotel.hotelID);\n }\n }, [hotel]);\n\n const onBack = async () => {\n history.push(StepManager.getFirstStep().getStepUrl());\n };\n\n const handleSubmitOnClick = () => {\n handleSubmit(onSubmit)();\n };\n\n const onSignInClicked = () => {\n history.push(`/${EFindReservationPath.Login}`);\n };\n\n const onBackToItineraryClicked = () => {\n history.push(`/${EFindReservationPath.FindReservation}`);\n };\n\n const onSignUpClicked = () => {\n history.push(`/${EFindReservationPath.Register}`);\n };\n\n const onForgotPasswordClicked = () => {\n history.push(`/${EFindReservationPath.Forgot}`);\n };\n\n const onExit = () => {\n setViewingScreen(nextViewingScreen.current);\n };\n\n const gotoReservationPage = () => {\n history.push(`/account/reservations`);\n };\n\n const defaultContents = (\n <form onSubmit={handleSubmit(onSubmit)}>\n <div className=\"u-marg-bottom--heavy\">\n <Headline size=\"extra-large\">{t(Translation.FindReservation.FindYourReservation)}</Headline>\n </div>\n <AutoAutoHeight open={!!apiErrorMessages}>\n <div className=\"u-flex\">\n <Alert type={AlertType.Danger} icon={IconType.Error}>\n <Text type={TextType.Small}>{apiErrorMessages}</Text>\n </Alert>\n </div>\n </AutoAutoHeight>\n <div className=\"u-marg-bottom\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Label} color={Color.Navy}>\n <strong>{t(Translation.FindReservation.Confirmation)}</strong>\n </Text>\n </div>\n <TextBox\n placeholder=\"51244AB23101\"\n required\n validationStatus={getValidationClass('Ref')}\n {...register('Ref', {\n required: true,\n })}\n />\n </div>\n <div className=\"u-marg-bottom\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Label} color={Color.Navy}>\n <strong>{t(Translation.FindReservation.EmailAddress)}</strong>\n </Text>\n </div>\n <TextBox\n placeholder=\"example@mail.com\"\n required\n validationStatus={getValidationClass('Email')}\n {...register('Email', {\n required: true,\n pattern: {\n value: EMAIL_REGEX,\n message: t(Translation.FindReservation.InvalidEmailAddress),\n },\n })}\n />\n </div>\n <div className=\"u-flex justify-content-end w-100\">\n <BEButton primary filled mobileWidth isLoading={isLoading} icon={IconType.ArrowRight} iconPosition=\"right\" onClick={handleSubmitOnClick}>\n {t(Translation.FindReservation.FindReservation)}\n </BEButton>\n <button type=\"submit\" className=\"u-none\">\n {t(Translation.Misc.Submit)}\n </button>\n </div>\n {MemberPortalFeature.isActive() && cognitoLoginState === CognitoLoginState.Success && (\n <div className=\"u-align-right u-flex u-flex-flex-end u-flex-gap--light u-marg-top--light\">\n <Text type={TextType.Small}>{t(Translation.Navigation.SignIn.Or)}</Text>\n <BEButton isText primary size=\"small\" onClick={gotoReservationPage} icon={IconType.ArrowRight} iconPosition=\"right\">\n {t(Translation.FindReservation.GoToYourReservations)}\n </BEButton>\n </div>\n )}\n <LineBreak />\n {MemberPortalFeature.isActive() && cognitoLoginState !== CognitoLoginState.Success && (\n <div className=\"u-marg-bottom--heavy\">\n <BEButton isText primary size=\"small\" onClick={onSignInClicked}>\n Or sign in for more\n </BEButton>\n </div>\n )}\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Small}>\n <strong>{t(Translation.FindReservation.Question)}</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>{t(Translation.FindReservation.Answer1)}</Text>\n <Text type={TextType.Small}>{t(Translation.FindReservation.Answer2)}</Text>\n <LineBreak />\n <BEButton textColor={Color.Accent} primary={false} filled={false} mobileWidth size=\"small\" icon={IconType.ArrowLeft2} iconPosition=\"left\" onClick={onBack} isText>\n {t(Translation.FindReservation.Back)}\n </BEButton>\n </form>\n );\n\n const signInForm = (\n <>\n <SignInForm\n onForgotPassword={onForgotPasswordClicked}\n onDone={() => {\n gotoReservationPage();\n }}\n />\n <LineBreak />\n <div className=\"u-marg-bottom--heavy\">\n <BEButton isText primary size=\"small\" onClick={onBackToItineraryClicked}>\n {t(Translation.FindReservation.OrUseConfirmationItineraryNumber)}\n </BEButton>\n </div>\n <Text type={TextType.Small} bold className=\"u-marg-bottom--light\">\n {t(Translation.FindReservation.NoOnlineAccount)}\n </Text>\n <Text type={TextType.Small}>\n <Trans i18nKey={Translation.FindReservation.SignUpToSaveTime} components={[<BEButton key={0} isText size=\"small\" primary onClick={onSignUpClicked} />]}></Trans>\n </Text>\n </>\n );\n\n const signUpForm = (\n <>\n <SignUpForm\n onDone={() => {\n gotoReservationPage();\n }}\n />\n <LineBreak />\n <Text type={TextType.Small} bold className=\"u-marg-bottom--light\">\n {t(Translation.Step.Confirmation.AlreadyHaveAccount)}\n </Text>\n <Text type={TextType.Small}>\n <Trans i18nKey={Translation.FindReservation.SignInToLogin} components={[<BEButton key={0} isText size=\"small\" primary onClick={onSignInClicked} />]} />\n </Text>\n </>\n );\n\n const forgotPasswordForm = (\n <>\n <ForgotPasswordForm\n onCancelled={onSignInClicked}\n onDone={() => {\n gotoReservationPage();\n }}\n />\n <LineBreak />\n <Text type={TextType.Small} bold className=\"u-marg-bottom--light\">\n {t(Translation.FindReservation.NoOnlineAccount)}\n </Text>\n <Text type={TextType.Small}>\n <Trans i18nKey={Translation.FindReservation.SignUpToSaveTime} components={[<BEButton key={0} isText size=\"small\" primary onClick={onSignUpClicked} />]} />\n </Text>\n </>\n );\n\n return (\n <div className=\"u-pad-left u-pad-right\">\n <div className=\"container u-marg-top--heavy u-pad-bottom--massive\">\n <div className=\"row u-pad-bottom--massive\">\n <div className=\"col-md-6 col-xl-4 u-fill-white u-pad--heavy u-shadow-accent-large u-border-rounded\">\n <AutoAutoHeight open startOpen>\n <FadeAnimation open={viewingScreen === 'Default'} onExitCompletely={onExit}>\n {defaultContents}\n </FadeAnimation>\n <Suspense fallback={SmallSpinner}>\n <FadeAnimation open={viewingScreen === 'SignIn'} onExitCompletely={onExit}>\n {signInForm}\n </FadeAnimation>\n <FadeAnimation open={viewingScreen === 'SignUp'} onExitCompletely={onExit}>\n {signUpForm}\n </FadeAnimation>\n <FadeAnimation open={viewingScreen === 'ForgotPassword'} onExitCompletely={onExit}>\n {forgotPasswordForm}\n </FadeAnimation>\n </Suspense>\n </AutoAutoHeight>\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function FindReservationResults(): React.JSX.Element;
1
+ export default function FindReservationResults(): JSX.Element;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import { ReservationDTO } from '../../models/Api/ReservationsDTO';
3
2
  interface ReservationRowProps {
4
3
  reservation: ReservationDTO;
5
4
  onCancelled?: () => void;
6
5
  }
7
- export default function ReservationRow(props: ReservationRowProps): React.JSX.Element;
6
+ export default function ReservationRow(props: ReservationRowProps): JSX.Element;
8
7
  export {};
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ReservationDTO } from '../../models/Api/ReservationsDTO';
3
2
  interface ReservationRowModalProps {
4
3
  reservation: ReservationDTO;
@@ -6,5 +5,5 @@ interface ReservationRowModalProps {
6
5
  open: boolean;
7
6
  images?: string[];
8
7
  }
9
- export default function ReservationRowModal(props: ReservationRowModalProps): React.JSX.Element;
8
+ export default function ReservationRowModal(props: ReservationRowModalProps): JSX.Element;
10
9
  export {};
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function HotelInfo(): React.JSX.Element;
1
+ export default function HotelInfo(): JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function HotelInfoPlaceholder(): React.JSX.Element;
1
+ export default function HotelInfoPlaceholder(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IHotelColorScheme } from '@roomstay/core';
3
2
  import { Company } from '../../../models/Client/Hotel/Company';
4
3
  import { Hotel } from '../../../models/Client/Hotel/Hotel';
@@ -6,7 +5,7 @@ import Step from '../Step';
6
5
  import StepAddonValidator from './StepAddonValidator';
7
6
  declare class StepAddon extends Step {
8
7
  constructor();
9
- getComponent(): () => import("react").JSX.Element;
8
+ getComponent(): () => JSX.Element;
10
9
  getValidator(): StepAddonValidator;
11
10
  getStepTranslation(): string;
12
11
  getColorProfile(company: Company, hotel?: Hotel): IHotelColorScheme | undefined;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function StepAddonComponent(): React.JSX.Element;
1
+ export default function StepAddonComponent(): JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const StepAddonPlaceholder: () => React.JSX.Element;
1
+ declare const StepAddonPlaceholder: () => JSX.Element;
3
2
  export default StepAddonPlaceholder;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare function StepConfirmationComponent(): React.JSX.Element;
1
+ declare function StepConfirmationComponent(): JSX.Element;
3
2
  export default StepConfirmationComponent;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function StepConfirmationLoader(): React.JSX.Element;
1
+ export default function StepConfirmationLoader(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IHotelColorScheme } from '@roomstay/core';
3
2
  import { Company } from '../../../models/Client/Hotel/Company';
4
3
  import { Hotel } from '../../../models/Client/Hotel/Hotel';
@@ -6,7 +5,7 @@ import Step from '../Step';
6
5
  import StepDateValidator from './StepDateValidator';
7
6
  declare class StepDate extends Step {
8
7
  constructor();
9
- getComponent(): () => import("react").JSX.Element;
8
+ getComponent(): () => JSX.Element;
10
9
  getValidator(): StepDateValidator;
11
10
  getStepTranslation(): string;
12
11
  getColorProfile(company: Company, hotel?: Hotel): IHotelColorScheme | undefined;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const StepDate: () => React.JSX.Element;
1
+ declare const StepDate: () => JSX.Element;
3
2
  export default StepDate;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const StepGroupedRoomComponent: () => React.JSX.Element;
1
+ declare const StepGroupedRoomComponent: () => JSX.Element;
3
2
  export default StepGroupedRoomComponent;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function StepGroupedRoomLoader(): React.JSX.Element;
1
+ export default function StepGroupedRoomLoader(): 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): React.JSX.Element;
7
+ export default function StepGuide(props: StepGuideProps): JSX.Element;
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { IHotelColorScheme } from '@roomstay/core';
3
2
  import { Company } from '../../../models/Client/Hotel/Company';
4
3
  import Step from '../Step';
5
4
  import StepHotelValidator from './StepHotelValidator';
6
5
  declare class StepHotel extends Step {
7
6
  constructor();
8
- getComponent(): () => import("react").JSX.Element;
7
+ getComponent(): () => JSX.Element;
9
8
  getValidator(): StepHotelValidator;
10
9
  getStepTranslation(): string;
11
10
  getColorProfile(company: Company): IHotelColorScheme;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const StepHotelComponent: () => React.JSX.Element;
1
+ declare const StepHotelComponent: () => JSX.Element;
3
2
  export default StepHotelComponent;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const StepHotelLoader: () => React.JSX.Element;
1
+ declare const StepHotelLoader: () => JSX.Element;
3
2
  export default StepHotelLoader;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const StepRoomComponent: () => React.JSX.Element;
1
+ declare const StepRoomComponent: () => JSX.Element;
3
2
  export default StepRoomComponent;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function StepRoomLoader(): React.JSX.Element;
1
+ export default function StepRoomLoader(): JSX.Element;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function StepThanksComponent(): React.JSX.Element;
1
+ export default function StepThanksComponent(): JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare function withDI(name: string, OriginalObject: any, props: any): React.JSX.Element;
1
+ export declare function withDI(name: string, OriginalObject: any, props: any): JSX.Element;
3
2
  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
- :host {
76
+ :root {
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":[],"m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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
+ {"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;A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1B,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,7 +1,6 @@
1
- import React from 'react';
2
1
  import Step from '../pages/steps/Step';
3
2
  export interface StepRouteProps {
4
3
  step: Step;
5
4
  }
6
- declare const StepRoute: (props: StepRouteProps) => React.JSX.Element;
5
+ declare const StepRoute: (props: StepRouteProps) => JSX.Element;
7
6
  export default StepRoute;
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import Alert from '../components/generic/Alert';
3
+ declare const _default: ComponentMeta<typeof Alert>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<typeof Alert>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Default = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Alert_1 = __importDefault(require("../components/generic/Alert"));
9
+ exports.default = {
10
+ title: 'generic/Alert',
11
+ component: Alert_1.default,
12
+ argTypes: {},
13
+ };
14
+ const Template = (args) => react_1.default.createElement(Alert_1.default, Object.assign({}, args));
15
+ exports.Default = Template.bind({});
16
+ exports.Default.args = {
17
+ children: 'Children',
18
+ };
19
+ //# sourceMappingURL=Alert.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.stories.js","sourceRoot":"/","sources":["src/stories/Alert.stories.tsx"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAE1B,uEAA+C;AAE/C,kBAAe;IACX,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,eAAK;IAChB,QAAQ,EAAE,EAAE;CACgB,CAAC;AAEjC,MAAM,QAAQ,GAAiC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAC,eAAK,oBAAK,IAAI,EAAI,CAAC;AAEhE,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG;IACX,QAAQ,EAAE,UAAU;CACvB,CAAC","sourcesContent":["import { ComponentMeta, ComponentStory } from '@storybook/react';\nimport React from 'react';\n\nimport Alert from '@/components/generic/Alert';\n\nexport default {\n title: 'generic/Alert',\n component: Alert,\n argTypes: {},\n} as ComponentMeta<typeof Alert>;\n\nconst Template: ComponentStory<typeof Alert> = (args) => <Alert {...args} />;\n\nexport const Default = Template.bind({});\nDefault.args = {\n children: 'Children',\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import BEButton from '../components/generic/BEButton';
3
+ declare const _default: ComponentMeta<typeof BEButton>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<typeof BEButton>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Default = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const BEButton_1 = __importDefault(require("../components/generic/BEButton"));
9
+ exports.default = {
10
+ title: 'generic/BEButton',
11
+ component: BEButton_1.default,
12
+ argTypes: {},
13
+ };
14
+ const Template = (args) => react_1.default.createElement(BEButton_1.default, Object.assign({}, args));
15
+ exports.Default = Template.bind({});
16
+ exports.Default.args = {
17
+ children: 'Text Button',
18
+ primary: true,
19
+ };
20
+ //# sourceMappingURL=BEButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BEButton.stories.js","sourceRoot":"/","sources":["src/stories/BEButton.stories.tsx"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAE1B,8EAAsD;AAEtD,kBAAe;IACX,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,kBAAQ;IACnB,QAAQ,EAAE,EAAE;CACmB,CAAC;AAEpC,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAC,kBAAQ,oBAAK,IAAI,EAAI,CAAC;AAEtE,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG;IACX,QAAQ,EAAE,aAAa;IACvB,OAAO,EAAE,IAAI;CAChB,CAAC","sourcesContent":["import { ComponentMeta, ComponentStory } from '@storybook/react';\nimport React from 'react';\n\nimport BEButton from '../components/generic/BEButton';\n\nexport default {\n title: 'generic/BEButton',\n component: BEButton,\n argTypes: {},\n} as ComponentMeta<typeof BEButton>;\n\nconst Template: ComponentStory<typeof BEButton> = (args) => <BEButton {...args} />;\n\nexport const Default = Template.bind({});\nDefault.args = {\n children: 'Text Button',\n primary: true,\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import BackButton from '../components/generic/BackButton';
3
+ declare const _default: ComponentMeta<typeof BackButton>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<typeof BackButton>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Default = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const BackButton_1 = __importDefault(require("../components/generic/BackButton"));
9
+ exports.default = {
10
+ title: 'generic/BackButton',
11
+ component: BackButton_1.default,
12
+ argTypes: {},
13
+ };
14
+ const Template = (args) => react_1.default.createElement(BackButton_1.default, Object.assign({}, args));
15
+ exports.Default = Template.bind({});
16
+ exports.Default.args = {};
17
+ //# sourceMappingURL=BackButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.stories.js","sourceRoot":"/","sources":["src/stories/BackButton.stories.tsx"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAE1B,iFAAyD;AAEzD,kBAAe;IACX,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,oBAAU;IACrB,QAAQ,EAAE,EAAE;CACqB,CAAC;AAEtC,MAAM,QAAQ,GAAsC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAC,oBAAU,oBAAK,IAAI,EAAI,CAAC;AAE1E,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG,EAAE,CAAC","sourcesContent":["import { ComponentMeta, ComponentStory } from '@storybook/react';\nimport React from 'react';\n\nimport BackButton from '@/components/generic/BackButton';\n\nexport default {\n title: 'generic/BackButton',\n component: BackButton,\n argTypes: {},\n} as ComponentMeta<typeof BackButton>;\n\nconst Template: ComponentStory<typeof BackButton> = (args) => <BackButton {...args} />;\n\nexport const Default = Template.bind({});\nDefault.args = {};\n"]}
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import { BookNowPayLaterInfoBlock } from '../components/generic/BookNowPayLaterInfoBlock';
3
+ declare const _default: ComponentMeta<typeof BookNowPayLaterInfoBlock>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<typeof BookNowPayLaterInfoBlock>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Default = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const BookNowPayLaterInfoBlock_1 = require("../components/generic/BookNowPayLaterInfoBlock");
9
+ exports.default = {
10
+ title: 'generic/BookNowPayLaterInfoBlock',
11
+ component: BookNowPayLaterInfoBlock_1.BookNowPayLaterInfoBlock,
12
+ argTypes: {},
13
+ };
14
+ const Template = () => react_1.default.createElement(BookNowPayLaterInfoBlock_1.BookNowPayLaterInfoBlock, null);
15
+ exports.Default = Template.bind({});
16
+ exports.Default.args = {};
17
+ //# sourceMappingURL=BookNowPayLaterInfoBlock.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookNowPayLaterInfoBlock.stories.js","sourceRoot":"/","sources":["src/stories/BookNowPayLaterInfoBlock.stories.tsx"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAE1B,4FAAyF;AAEzF,kBAAe;IACX,KAAK,EAAE,kCAAkC;IACzC,SAAS,EAAE,mDAAwB;IACnC,QAAQ,EAAE,EAAE;CACmC,CAAC;AAEpD,MAAM,QAAQ,GAAoD,GAAG,EAAE,CAAC,8BAAC,mDAAwB,OAAG,CAAC;AAExF,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG,EAAE,CAAC","sourcesContent":["import { ComponentMeta, ComponentStory } from '@storybook/react';\nimport React from 'react';\n\nimport { BookNowPayLaterInfoBlock } from '@/components/generic/BookNowPayLaterInfoBlock';\n\nexport default {\n title: 'generic/BookNowPayLaterInfoBlock',\n component: BookNowPayLaterInfoBlock,\n argTypes: {},\n} as ComponentMeta<typeof BookNowPayLaterInfoBlock>;\n\nconst Template: ComponentStory<typeof BookNowPayLaterInfoBlock> = () => <BookNowPayLaterInfoBlock />;\n\nexport const Default = Template.bind({});\nDefault.args = {};\n"]}
@@ -0,0 +1,10 @@
1
+ import { ComponentMeta, ComponentStory } from '@storybook/react';
2
+ import React from 'react';
3
+ import { BookingWizardProps } from '../components/generic/BookingWizard/BookingWizard';
4
+ declare const _default: ComponentMeta<React.FC<BookingWizardProps>>;
5
+ export default _default;
6
+ export declare const Horizontal: ComponentStory<React.FC<BookingWizardProps>>;
7
+ export declare const Vertical: ComponentStory<React.FC<BookingWizardProps>>;
8
+ export declare const Button: ComponentStory<React.FC<BookingWizardProps>>;
9
+ export declare const FixedCompany: ({ properties, ...props }: BookingWizardProps) => JSX.Element;
10
+ export declare const ThemeMini: ComponentStory<React.FC<BookingWizardProps>>;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ThemeMini = exports.FixedCompany = exports.Button = exports.Vertical = exports.Horizontal = void 0;
18
+ const react_1 = __importDefault(require("react"));
19
+ const BookingWizard_1 = __importDefault(require("../components/generic/BookingWizard/BookingWizard"));
20
+ const OfflineEngineDefaults_1 = require("../../tests/offline/entry/OfflineEngineDefaults");
21
+ exports.default = {
22
+ title: 'generic/BookingWizard',
23
+ component: BookingWizard_1.default,
24
+ argTypes: {},
25
+ };
26
+ const globalProperties = OfflineEngineDefaults_1.rsCompany.hotels.reduce((map, hotel) => {
27
+ var _a, _b, _c, _d;
28
+ map[(_a = hotel.address) === null || _a === void 0 ? void 0 : _a.city] = map[(_b = hotel.address) === null || _b === void 0 ? void 0 : _b.city] || [];
29
+ (_d = map[(_c = hotel.address) === null || _c === void 0 ? void 0 : _c.city]) === null || _d === void 0 ? void 0 : _d.push({ id: hotel.hotelID, name: hotel.name });
30
+ return map;
31
+ }, {});
32
+ const Template = (_a) => {
33
+ var { properties } = _a, args = __rest(_a, ["properties"]);
34
+ return react_1.default.createElement(BookingWizard_1.default, Object.assign({ properties: properties }, args));
35
+ };
36
+ exports.Horizontal = Template.bind({});
37
+ exports.Horizontal.args = {
38
+ layout: 'horizontal',
39
+ properties: globalProperties,
40
+ };
41
+ exports.Vertical = Template.bind({});
42
+ exports.Vertical.args = {
43
+ layout: 'vertical',
44
+ properties: globalProperties,
45
+ };
46
+ exports.Button = Template.bind({});
47
+ exports.Button.args = {
48
+ layout: 'button',
49
+ properties: globalProperties,
50
+ };
51
+ const FixedCompany = (_a) => {
52
+ var { properties } = _a, props = __rest(_a, ["properties"]);
53
+ return react_1.default.createElement(BookingWizard_1.default, Object.assign({ properties: globalProperties }, props));
54
+ };
55
+ exports.FixedCompany = FixedCompany;
56
+ exports.ThemeMini = Template.bind({});
57
+ exports.ThemeMini.args = {
58
+ layout: 'horizontal-condensed',
59
+ // theme: EBookingWizardTheme.Specific,
60
+ properties: globalProperties,
61
+ };
62
+ exports.ThemeMini.parameters = {
63
+ backgrounds: {
64
+ default: 'dark',
65
+ },
66
+ };
67
+ //# sourceMappingURL=BookingWizard.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingWizard.stories.js","sourceRoot":"/","sources":["src/stories/BookingWizard.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,kDAA0B;AAE1B,qGAAqG;AAGrG,2FAA4E;AAE5E,kBAAe;IACX,KAAK,EAAE,uBAA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CAAC;AAEK,MAAM,YAAY,GAAG,CAAC,EAA4C,EAAE,EAAE;QAAhD,EAAE,UAAU,OAAgC,EAA3B,KAAK,cAAtB,cAAwB,CAAF;IAC/C,OAAO,8BAAC,uBAAa,kBAAC,UAAU,EAAE,gBAAgB,IAAM,KAAK,EAAI,CAAC;AACtE,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB;AAEW,QAAA,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,iBAAS,CAAC,IAAI,GAAG;IACb,MAAM,EAAE,sBAAsB;IAC9B,uCAAuC;IACvC,UAAU,EAAE,gBAAgB;CAC/B,CAAC;AACF,iBAAS,CAAC,UAAU,GAAG;IACnB,WAAW,EAAE;QACT,OAAO,EAAE,MAAM;KAClB;CACJ,CAAC","sourcesContent":["import { ComponentMeta, ComponentStory } from '@storybook/react';\nimport React from 'react';\n\nimport BookingWizard, { BookingWizardProps } from '@/components/generic/BookingWizard/BookingWizard';\nimport { TBookingWizardProperties } from '@/models/BookingWizard/BookingWizardTypes';\n\nimport { rsCompany } from '../../tests/offline/entry/OfflineEngineDefaults';\n\nexport default {\n title: 'generic/BookingWizard',\n component: BookingWizard,\n argTypes: {},\n} as ComponentMeta<typeof BookingWizard>;\n\nconst globalProperties = rsCompany.hotels.reduce<TBookingWizardProperties>((map, hotel) => {\n map[hotel.address?.city as string] = map[hotel.address?.city as string] || [];\n\n map[hotel.address?.city as string]?.push({ id: hotel.hotelID as string, name: hotel.name });\n\n return map;\n}, {});\n\nconst Template: ComponentStory<typeof BookingWizard> = ({ properties, ...args }) => <BookingWizard properties={properties} {...args} />;\n\nexport const Horizontal = Template.bind({});\nHorizontal.args = {\n layout: 'horizontal',\n properties: globalProperties,\n};\n\nexport const Vertical = Template.bind({});\nVertical.args = {\n layout: 'vertical',\n properties: globalProperties,\n};\n\nexport const Button = Template.bind({});\nButton.args = {\n layout: 'button',\n properties: globalProperties,\n};\n\nexport const FixedCompany = ({ properties, ...props }: BookingWizardProps) => {\n return <BookingWizard properties={globalProperties} {...props} />;\n};\n\nexport const ThemeMini = Template.bind({});\nThemeMini.args = {\n layout: 'horizontal-condensed',\n // theme: EBookingWizardTheme.Specific,\n properties: globalProperties,\n};\nThemeMini.parameters = {\n backgrounds: {\n default: 'dark',\n },\n};\n"]}