@roomstay/frontend 2.0.12 → 2.1.1

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 (1037) hide show
  1. package/dist/201.bundle.js +1 -1
  2. package/dist/423.bundle.js +1 -1
  3. package/dist/449.bundle.js +1 -1
  4. package/dist/760.bundle.js +1 -0
  5. package/dist/873.bundle.js +1 -1
  6. package/dist/882.bundle.js +1 -1
  7. package/dist/main.bundle.js +1 -1
  8. package/dist/src/animations/AutoAutoHeight.js +28 -2
  9. package/dist/src/animations/AutoAutoHeight.js.map +1 -1
  10. package/dist/src/animations/Fade.js +24 -1
  11. package/dist/src/animations/Fade.js.map +1 -1
  12. package/dist/src/api/AddonAPI.d.ts +3 -3
  13. package/dist/src/api/AddonAPI.js +30 -4
  14. package/dist/src/api/AddonAPI.js.map +1 -1
  15. package/dist/src/api/AvailabilityAPI.d.ts +4 -4
  16. package/dist/src/api/AvailabilityAPI.js +42 -16
  17. package/dist/src/api/AvailabilityAPI.js.map +1 -1
  18. package/dist/src/api/BaseAPI.d.ts +1 -1
  19. package/dist/src/api/BaseAPI.js +7 -4
  20. package/dist/src/api/BaseAPI.js.map +1 -1
  21. package/dist/src/api/BookingAPI.d.ts +7 -7
  22. package/dist/src/api/BookingAPI.js +12 -9
  23. package/dist/src/api/BookingAPI.js.map +1 -1
  24. package/dist/src/api/ErrorAPI.js +4 -1
  25. package/dist/src/api/ErrorAPI.js.map +1 -1
  26. package/dist/src/api/ExchangeRateAPI.d.ts +2 -2
  27. package/dist/src/api/ExchangeRateAPI.js +4 -1
  28. package/dist/src/api/ExchangeRateAPI.js.map +1 -1
  29. package/dist/src/api/HotelAPI.d.ts +5 -5
  30. package/dist/src/api/HotelAPI.js +4 -1
  31. package/dist/src/api/HotelAPI.js.map +1 -1
  32. package/dist/src/api/MemberAPI.d.ts +1 -1
  33. package/dist/src/api/MemberAPI.js +24 -1
  34. package/dist/src/api/MemberAPI.js.map +1 -1
  35. package/dist/src/api/ReservationAPI.d.ts +6 -6
  36. package/dist/src/api/ReservationAPI.js +24 -1
  37. package/dist/src/api/ReservationAPI.js.map +1 -1
  38. package/dist/src/api/SessionAPI.d.ts +1 -1
  39. package/dist/src/api/SessionAPI.js +24 -1
  40. package/dist/src/api/SessionAPI.js.map +1 -1
  41. package/dist/src/api/members-service/MembersServiceAPI.js +4 -1
  42. package/dist/src/api/members-service/MembersServiceAPI.js.map +1 -1
  43. package/dist/src/components/User/Forms/ForgotPasswordForm.js +34 -8
  44. package/dist/src/components/User/Forms/ForgotPasswordForm.js.map +1 -1
  45. package/dist/src/components/User/Forms/SignInForm.js +36 -10
  46. package/dist/src/components/User/Forms/SignInForm.js.map +1 -1
  47. package/dist/src/components/User/Forms/SignUpForm.js +38 -12
  48. package/dist/src/components/User/Forms/SignUpForm.js.map +1 -1
  49. package/dist/src/components/generic/Alert.d.ts +1 -1
  50. package/dist/src/components/generic/Alert.js +30 -4
  51. package/dist/src/components/generic/Alert.js.map +1 -1
  52. package/dist/src/components/generic/BEButton.d.ts +2 -2
  53. package/dist/src/components/generic/BEButton.js +31 -5
  54. package/dist/src/components/generic/BEButton.js.map +1 -1
  55. package/dist/src/components/generic/BackButton.js +29 -3
  56. package/dist/src/components/generic/BackButton.js.map +1 -1
  57. package/dist/src/components/generic/BookNowPayLaterInfoBlock.js +30 -4
  58. package/dist/src/components/generic/BookNowPayLaterInfoBlock.js.map +1 -1
  59. package/dist/src/components/generic/BookingWizard/BookingWizard.d.ts +19 -0
  60. package/dist/src/components/generic/BookingWizard/BookingWizard.js +106 -0
  61. package/dist/src/components/generic/BookingWizard/BookingWizard.js.map +1 -0
  62. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.d.ts +6 -0
  63. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.js +28 -0
  64. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.js.map +1 -0
  65. package/dist/src/components/generic/BookingWizard/BookingWizardContent.d.ts +10 -0
  66. package/dist/src/components/generic/BookingWizard/BookingWizardContent.js +113 -0
  67. package/dist/src/components/generic/BookingWizard/BookingWizardContent.js.map +1 -0
  68. package/dist/src/components/generic/BookingWizard/BookingWizardContext.d.ts +35 -0
  69. package/dist/src/components/generic/BookingWizard/BookingWizardContext.js +8 -0
  70. package/dist/src/components/generic/BookingWizard/BookingWizardContext.js.map +1 -0
  71. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.d.ts +7 -0
  72. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js +146 -0
  73. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js.map +1 -0
  74. package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.d.ts +9 -0
  75. package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js +111 -0
  76. package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js.map +1 -0
  77. package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.d.ts +10 -0
  78. package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js +144 -0
  79. package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js.map +1 -0
  80. package/dist/src/components/generic/Card/Card/Card.js +30 -4
  81. package/dist/src/components/generic/Card/Card/Card.js.map +1 -1
  82. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.d.ts +2 -2
  83. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js +32 -6
  84. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js.map +1 -1
  85. package/dist/src/components/generic/Checkbox/Checkbox.js +30 -4
  86. package/dist/src/components/generic/Checkbox/Checkbox.js.map +1 -1
  87. package/dist/src/components/generic/Countdown.d.ts +1 -1
  88. package/dist/src/components/generic/Countdown.js +29 -3
  89. package/dist/src/components/generic/Countdown.js.map +1 -1
  90. package/dist/src/components/generic/Currency.js +30 -4
  91. package/dist/src/components/generic/Currency.js.map +1 -1
  92. package/dist/src/components/generic/DateRangePicker/DateRangePicker.d.ts +14 -0
  93. package/dist/src/components/generic/DateRangePicker/DateRangePicker.js +155 -0
  94. package/dist/src/components/generic/DateRangePicker/DateRangePicker.js.map +1 -0
  95. package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.d.ts +10 -0
  96. package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.js +44 -0
  97. package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.js.map +1 -0
  98. package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.d.ts +21 -0
  99. package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.js +134 -0
  100. package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.js.map +1 -0
  101. package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.d.ts +6 -0
  102. package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.js +44 -0
  103. package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.js.map +1 -0
  104. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.d.ts +7 -0
  105. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js +57 -0
  106. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js.map +1 -0
  107. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.d.ts +25 -0
  108. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js +87 -0
  109. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js.map +1 -0
  110. package/dist/src/components/generic/Distance.js +28 -2
  111. package/dist/src/components/generic/Distance.js.map +1 -1
  112. package/dist/src/components/generic/ForwardedSelect.d.ts +1 -1
  113. package/dist/src/components/generic/ForwardedSelect.js +24 -1
  114. package/dist/src/components/generic/ForwardedSelect.js.map +1 -1
  115. package/dist/src/components/generic/Headline.d.ts +2 -2
  116. package/dist/src/components/generic/Headline.js +29 -3
  117. package/dist/src/components/generic/Headline.js.map +1 -1
  118. package/dist/src/components/generic/Icon/Icon.d.ts +1 -1
  119. package/dist/src/components/generic/Icon/Icon.js +31 -5
  120. package/dist/src/components/generic/Icon/Icon.js.map +1 -1
  121. package/dist/src/components/generic/IconText/IconText.d.ts +2 -2
  122. package/dist/src/components/generic/IconText/IconText.js +32 -6
  123. package/dist/src/components/generic/IconText/IconText.js.map +1 -1
  124. package/dist/src/components/generic/InputGroup/InputGroup.d.ts +1 -1
  125. package/dist/src/components/generic/InputGroup/InputGroup.js +29 -3
  126. package/dist/src/components/generic/InputGroup/InputGroup.js.map +1 -1
  127. package/dist/src/components/generic/LineBreak.js +29 -3
  128. package/dist/src/components/generic/LineBreak.js.map +1 -1
  129. package/dist/src/components/generic/Notification.d.ts +1 -1
  130. package/dist/src/components/generic/Notification.js +26 -3
  131. package/dist/src/components/generic/Notification.js.map +1 -1
  132. package/dist/src/components/generic/NumberIncrement.js +30 -4
  133. package/dist/src/components/generic/NumberIncrement.js.map +1 -1
  134. package/dist/src/components/generic/Overlay/Overlay.d.ts +3 -2
  135. package/dist/src/components/generic/Overlay/Overlay.js +34 -7
  136. package/dist/src/components/generic/Overlay/Overlay.js.map +1 -1
  137. package/dist/src/components/generic/PasswordBox/PasswordBox.js +30 -4
  138. package/dist/src/components/generic/PasswordBox/PasswordBox.js.map +1 -1
  139. package/dist/src/components/generic/PaymentCard/CardTypeSelect.d.ts +2 -3
  140. package/dist/src/components/generic/PaymentCard/CardTypeSelect.js +33 -7
  141. package/dist/src/components/generic/PaymentCard/CardTypeSelect.js.map +1 -1
  142. package/dist/src/components/generic/PaymentCard/PaymentCard.d.ts +2 -3
  143. package/dist/src/components/generic/PaymentCard/PaymentCard.js +32 -6
  144. package/dist/src/components/generic/PaymentCard/PaymentCard.js.map +1 -1
  145. package/dist/src/components/generic/PaymentCard/PaymentCardInput.d.ts +2 -3
  146. package/dist/src/components/generic/PaymentCard/PaymentCardInput.js +40 -14
  147. package/dist/src/components/generic/PaymentCard/PaymentCardInput.js.map +1 -1
  148. package/dist/src/components/generic/Pill.d.ts +1 -1
  149. package/dist/src/components/generic/Pill.js +30 -4
  150. package/dist/src/components/generic/Pill.js.map +1 -1
  151. package/dist/src/components/generic/Placeholder.js +29 -3
  152. package/dist/src/components/generic/Placeholder.js.map +1 -1
  153. package/dist/src/components/generic/PlanpayButton/PlanpayButton.d.ts +1 -2
  154. package/dist/src/components/generic/PlanpayButton/PlanpayButton.js +28 -2
  155. package/dist/src/components/generic/PlanpayButton/PlanpayButton.js.map +1 -1
  156. package/dist/src/components/generic/Portal/Portal.js +24 -1
  157. package/dist/src/components/generic/Portal/Portal.js.map +1 -1
  158. package/dist/src/components/generic/PromoCodeInput.js +33 -7
  159. package/dist/src/components/generic/PromoCodeInput.js.map +1 -1
  160. package/dist/src/components/generic/RadioButtonGroup/RadioButton.js +30 -4
  161. package/dist/src/components/generic/RadioButtonGroup/RadioButton.js.map +1 -1
  162. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js +31 -5
  163. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  164. package/dist/src/components/generic/RecentSearchesCard.d.ts +2 -2
  165. package/dist/src/components/generic/RecentSearchesCard.js +36 -10
  166. package/dist/src/components/generic/RecentSearchesCard.js.map +1 -1
  167. package/dist/src/components/generic/Select/Select.d.ts +20 -6
  168. package/dist/src/components/generic/Select/Select.js +97 -30
  169. package/dist/src/components/generic/Select/Select.js.map +1 -1
  170. package/dist/src/components/generic/Slider/Slider.js +29 -3
  171. package/dist/src/components/generic/Slider/Slider.js.map +1 -1
  172. package/dist/src/components/generic/Tabs/ElementChildren.js +24 -1
  173. package/dist/src/components/generic/Tabs/ElementChildren.js.map +1 -1
  174. package/dist/src/components/generic/Tabs/Tab.js +24 -1
  175. package/dist/src/components/generic/Tabs/Tab.js.map +1 -1
  176. package/dist/src/components/generic/Tabs/TabContext.d.ts +1 -1
  177. package/dist/src/components/generic/Tabs/TabContext.js +24 -1
  178. package/dist/src/components/generic/Tabs/TabContext.js.map +1 -1
  179. package/dist/src/components/generic/Tabs/TabLink.js +31 -5
  180. package/dist/src/components/generic/Tabs/TabLink.js.map +1 -1
  181. package/dist/src/components/generic/Tabs/TabRouteContainer.js +29 -3
  182. package/dist/src/components/generic/Tabs/TabRouteContainer.js.map +1 -1
  183. package/dist/src/components/generic/Tabs/Tabs.js +33 -7
  184. package/dist/src/components/generic/Tabs/Tabs.js.map +1 -1
  185. package/dist/src/components/generic/Text.d.ts +2 -2
  186. package/dist/src/components/generic/Text.js +29 -3
  187. package/dist/src/components/generic/Text.js.map +1 -1
  188. package/dist/src/components/generic/TextArea.js +24 -1
  189. package/dist/src/components/generic/TextArea.js.map +1 -1
  190. package/dist/src/components/generic/TextBox.d.ts +1 -1
  191. package/dist/src/components/generic/TextBox.js +30 -4
  192. package/dist/src/components/generic/TextBox.js.map +1 -1
  193. package/dist/src/components/generic/Tooltip/Tooltip.js +29 -3
  194. package/dist/src/components/generic/Tooltip/Tooltip.js.map +1 -1
  195. package/dist/src/components/generic/badging/SSLSecureBadge.js +29 -3
  196. package/dist/src/components/generic/badging/SSLSecureBadge.js.map +1 -1
  197. package/dist/src/components/generic/buttons/NextStepButton.d.ts +1 -1
  198. package/dist/src/components/generic/buttons/NextStepButton.js +31 -5
  199. package/dist/src/components/generic/buttons/NextStepButton.js.map +1 -1
  200. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +35 -9
  201. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -1
  202. package/dist/src/components/generic/date/DatePicker.d.ts +1 -1
  203. package/dist/src/components/generic/date/DatePicker.js +43 -17
  204. package/dist/src/components/generic/date/DatePicker.js.map +1 -1
  205. package/dist/src/components/generic/date/DatePickerDay.d.ts +1 -1
  206. package/dist/src/components/generic/date/DatePickerDay.js +34 -8
  207. package/dist/src/components/generic/date/DatePickerDay.js.map +1 -1
  208. package/dist/src/components/generic/date/DatePickerDays.d.ts +1 -1
  209. package/dist/src/components/generic/date/DatePickerDays.js +30 -4
  210. package/dist/src/components/generic/date/DatePickerDays.js.map +1 -1
  211. package/dist/src/components/generic/date/DatePickerMonth.d.ts +1 -1
  212. package/dist/src/components/generic/date/DatePickerMonth.js +32 -6
  213. package/dist/src/components/generic/date/DatePickerMonth.js.map +1 -1
  214. package/dist/src/components/generic/date/DatePickerWeek.js +41 -15
  215. package/dist/src/components/generic/date/DatePickerWeek.js.map +1 -1
  216. package/dist/src/components/generic/date/FloatingDatePicker.d.ts +1 -1
  217. package/dist/src/components/generic/date/FloatingDatePicker.js +30 -4
  218. package/dist/src/components/generic/date/FloatingDatePicker.js.map +1 -1
  219. package/dist/src/components/generic/date/WeekViewSkeleton.js +31 -5
  220. package/dist/src/components/generic/date/WeekViewSkeleton.js.map +1 -1
  221. package/dist/src/components/generic/loader/ImageLoader.d.ts +1 -1
  222. package/dist/src/components/generic/loader/ImageLoader.js +29 -3
  223. package/dist/src/components/generic/loader/ImageLoader.js.map +1 -1
  224. package/dist/src/components/generic/loader/LargeLoader.js +28 -2
  225. package/dist/src/components/generic/loader/LargeLoader.js.map +1 -1
  226. package/dist/src/components/generic/loader/SmallSpinner.d.ts +1 -1
  227. package/dist/src/components/generic/loader/SmallSpinner.js +26 -3
  228. package/dist/src/components/generic/loader/SmallSpinner.js.map +1 -1
  229. package/dist/src/components/generic/map/HotelLocationMap.js +28 -2
  230. package/dist/src/components/generic/map/HotelLocationMap.js.map +1 -1
  231. package/dist/src/components/generic/modal/ConfirmationModal.d.ts +1 -2
  232. package/dist/src/components/generic/modal/ConfirmationModal.js +30 -4
  233. package/dist/src/components/generic/modal/ConfirmationModal.js.map +1 -1
  234. package/dist/src/components/generic/modal/ErrorModal.js +30 -4
  235. package/dist/src/components/generic/modal/ErrorModal.js.map +1 -1
  236. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js +35 -9
  237. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js.map +1 -1
  238. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js +38 -12
  239. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js.map +1 -1
  240. package/dist/src/components/generic/modal/SimpleModal.d.ts +2 -0
  241. package/dist/src/components/generic/modal/SimpleModal.js +38 -11
  242. package/dist/src/components/generic/modal/SimpleModal.js.map +1 -1
  243. package/dist/src/components/generic/modal/TabbedModal.js +29 -3
  244. package/dist/src/components/generic/modal/TabbedModal.js.map +1 -1
  245. package/dist/src/components/generic/radio/RadioFields.js +32 -6
  246. package/dist/src/components/generic/radio/RadioFields.js.map +1 -1
  247. package/dist/src/components/iconComponents/BookNowPayLaterIcon.js +24 -1
  248. package/dist/src/components/iconComponents/BookNowPayLaterIcon.js.map +1 -1
  249. package/dist/src/components/members/EditMyProfile.js +33 -7
  250. package/dist/src/components/members/EditMyProfile.js.map +1 -1
  251. package/dist/src/components/navigation/Header.js +45 -19
  252. package/dist/src/components/navigation/Header.js.map +1 -1
  253. package/dist/src/components/navigation/StepSelector.js +35 -9
  254. package/dist/src/components/navigation/StepSelector.js.map +1 -1
  255. package/dist/src/components/navigation/StepSelectorModal.js +34 -8
  256. package/dist/src/components/navigation/StepSelectorModal.js.map +1 -1
  257. package/dist/src/components/pages/Account/Card/CardList.js +30 -4
  258. package/dist/src/components/pages/Account/Card/CardList.js.map +1 -1
  259. package/dist/src/components/pages/Account/Card/MemberCardItem.js +37 -11
  260. package/dist/src/components/pages/Account/Card/MemberCardItem.js.map +1 -1
  261. package/dist/src/components/pages/PageColorComponent.js +28 -2
  262. package/dist/src/components/pages/PageColorComponent.js.map +1 -1
  263. package/dist/src/components/reservation/ReservationItem.js +47 -21
  264. package/dist/src/components/reservation/ReservationItem.js.map +1 -1
  265. package/dist/src/components/reservation/ReservationList.d.ts +1 -1
  266. package/dist/src/components/reservation/ReservationList.js +28 -2
  267. package/dist/src/components/reservation/ReservationList.js.map +1 -1
  268. package/dist/src/components/steps/DaysSelectedInformer.js +26 -3
  269. package/dist/src/components/steps/DaysSelectedInformer.js.map +1 -1
  270. package/dist/src/components/steps/MinimumNightStayPill.js +31 -5
  271. package/dist/src/components/steps/MinimumNightStayPill.js.map +1 -1
  272. package/dist/src/components/steps/addons/AddonCard.d.ts +1 -1
  273. package/dist/src/components/steps/addons/AddonCard.js +39 -14
  274. package/dist/src/components/steps/addons/AddonCard.js.map +1 -1
  275. package/dist/src/components/steps/addons/AddonList.js +33 -7
  276. package/dist/src/components/steps/addons/AddonList.js.map +1 -1
  277. package/dist/src/components/steps/addons/AddonsNotFound.js +30 -4
  278. package/dist/src/components/steps/addons/AddonsNotFound.js.map +1 -1
  279. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +1 -1
  280. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js +31 -5
  281. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js.map +1 -1
  282. package/dist/src/components/steps/confirmation/AccountDetails.js +31 -5
  283. package/dist/src/components/steps/confirmation/AccountDetails.js.map +1 -1
  284. package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js +31 -5
  285. package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js.map +1 -1
  286. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js +26 -3
  287. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js.map +1 -1
  288. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js +35 -9
  289. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js.map +1 -1
  290. package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js +29 -3
  291. package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js.map +1 -1
  292. package/dist/src/components/steps/confirmation/RoomContactDetails.js +43 -17
  293. package/dist/src/components/steps/confirmation/RoomContactDetails.js.map +1 -1
  294. package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js +35 -9
  295. package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js.map +1 -1
  296. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.d.ts +1 -1
  297. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js +39 -13
  298. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js.map +1 -1
  299. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.d.ts +1 -1
  300. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js +31 -5
  301. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js.map +1 -1
  302. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +32 -6
  303. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -1
  304. package/dist/src/components/steps/confirmation/StepConfirmationForm.js +56 -30
  305. package/dist/src/components/steps/confirmation/StepConfirmationForm.js.map +1 -1
  306. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js +28 -2
  307. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js.map +1 -1
  308. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.d.ts +1 -1
  309. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js +33 -7
  310. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js.map +1 -1
  311. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js +29 -3
  312. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js.map +1 -1
  313. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js +25 -2
  314. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js.map +1 -1
  315. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js +37 -11
  316. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js.map +1 -1
  317. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.d.ts +1 -1
  318. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js +27 -4
  319. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js.map +1 -1
  320. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.d.ts +2 -2
  321. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js +38 -13
  322. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js.map +1 -1
  323. package/dist/src/components/steps/date/PeoplePicker.js +33 -7
  324. package/dist/src/components/steps/date/PeoplePicker.js.map +1 -1
  325. package/dist/src/components/steps/date/PeoplePickerRow.js +32 -6
  326. package/dist/src/components/steps/date/PeoplePickerRow.js.map +1 -1
  327. package/dist/src/components/steps/date/StepDatePricePerRoom.js +34 -8
  328. package/dist/src/components/steps/date/StepDatePricePerRoom.js.map +1 -1
  329. package/dist/src/components/steps/date/StepOneDateRange.js +30 -4
  330. package/dist/src/components/steps/date/StepOneDateRange.js.map +1 -1
  331. package/dist/src/components/steps/date/StepOneDateRangePicker.js +30 -4
  332. package/dist/src/components/steps/date/StepOneDateRangePicker.js.map +1 -1
  333. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js +31 -5
  334. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js.map +1 -1
  335. package/dist/src/components/steps/date/StepOneNextStepButton.js +29 -3
  336. package/dist/src/components/steps/date/StepOneNextStepButton.js.map +1 -1
  337. package/dist/src/components/steps/date/StepOneStatusPeople.js +28 -2
  338. package/dist/src/components/steps/date/StepOneStatusPeople.js.map +1 -1
  339. package/dist/src/components/steps/hotel/HotelCard.d.ts +1 -1
  340. package/dist/src/components/steps/hotel/HotelCard.js +40 -14
  341. package/dist/src/components/steps/hotel/HotelCard.js.map +1 -1
  342. package/dist/src/components/steps/hotel/HotelCardList.d.ts +1 -1
  343. package/dist/src/components/steps/hotel/HotelCardList.js +29 -3
  344. package/dist/src/components/steps/hotel/HotelCardList.js.map +1 -1
  345. package/dist/src/components/steps/hotel/HotelCardModal.d.ts +1 -1
  346. package/dist/src/components/steps/hotel/HotelCardModal.js +39 -13
  347. package/dist/src/components/steps/hotel/HotelCardModal.js.map +1 -1
  348. package/dist/src/components/steps/hotel/HotelSearchParameters.js +49 -23
  349. package/dist/src/components/steps/hotel/HotelSearchParameters.js.map +1 -1
  350. package/dist/src/components/steps/hotel/NoHotelsAvailable.js +29 -3
  351. package/dist/src/components/steps/hotel/NoHotelsAvailable.js.map +1 -1
  352. package/dist/src/components/steps/room/AvailableUpgradesModal.js +38 -12
  353. package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -1
  354. package/dist/src/components/steps/room/ImageGallerySlider.d.ts +1 -1
  355. package/dist/src/components/steps/room/ImageGallerySlider.js +33 -7
  356. package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -1
  357. package/dist/src/components/steps/room/InactivityWindow.js +37 -11
  358. package/dist/src/components/steps/room/InactivityWindow.js.map +1 -1
  359. package/dist/src/components/steps/room/LargeRoomCard.d.ts +1 -1
  360. package/dist/src/components/steps/room/LargeRoomCard.js +36 -10
  361. package/dist/src/components/steps/room/LargeRoomCard.js.map +1 -1
  362. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js +40 -14
  363. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js.map +1 -1
  364. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.d.ts +1 -1
  365. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.js.map +1 -1
  366. package/dist/src/components/steps/room/NoRoomsFoundBlock.js +39 -13
  367. package/dist/src/components/steps/room/NoRoomsFoundBlock.js.map +1 -1
  368. package/dist/src/components/steps/room/RatesNotFound.js +30 -4
  369. package/dist/src/components/steps/room/RatesNotFound.js.map +1 -1
  370. package/dist/src/components/steps/room/RoomList.js +40 -14
  371. package/dist/src/components/steps/room/RoomList.js.map +1 -1
  372. package/dist/src/components/steps/room/RoomListAlert.js +31 -5
  373. package/dist/src/components/steps/room/RoomListAlert.js.map +1 -1
  374. package/dist/src/components/steps/room/RoomListCrossSellBlock.js +36 -10
  375. package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -1
  376. package/dist/src/components/steps/room/RoomModal.d.ts +2 -2
  377. package/dist/src/components/steps/room/RoomModal.js +36 -10
  378. package/dist/src/components/steps/room/RoomModal.js.map +1 -1
  379. package/dist/src/components/steps/room/StepRoomAlertBlocks.js +32 -6
  380. package/dist/src/components/steps/room/StepRoomAlertBlocks.js.map +1 -1
  381. package/dist/src/components/steps/room/StepRoomBestRateAlert.js +31 -5
  382. package/dist/src/components/steps/room/StepRoomBestRateAlert.js.map +1 -1
  383. package/dist/src/components/steps/room/StepRoomErrorForm.js +40 -14
  384. package/dist/src/components/steps/room/StepRoomErrorForm.js.map +1 -1
  385. package/dist/src/components/steps/room/StepRoomHotelDetails.js +30 -4
  386. package/dist/src/components/steps/room/StepRoomHotelDetails.js.map +1 -1
  387. package/dist/src/components/steps/room/StepRoomNextStepButton.js +29 -3
  388. package/dist/src/components/steps/room/StepRoomNextStepButton.js.map +1 -1
  389. package/dist/src/components/steps/room/StepRoomSortBy.js +35 -10
  390. package/dist/src/components/steps/room/StepRoomSortBy.js.map +1 -1
  391. package/dist/src/components/steps/room/StepRoomSummaryAndButton.js +32 -6
  392. package/dist/src/components/steps/room/StepRoomSummaryAndButton.js.map +1 -1
  393. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.d.ts +2 -2
  394. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js +32 -7
  395. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js.map +1 -1
  396. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.d.ts +2 -2
  397. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js +32 -7
  398. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js.map +1 -1
  399. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js +32 -6
  400. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js.map +1 -1
  401. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.d.ts +1 -1
  402. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +45 -19
  403. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js.map +1 -1
  404. package/dist/src/components/steps/room/roomDetails/RoomDetails.d.ts +1 -1
  405. package/dist/src/components/steps/room/roomDetails/RoomDetails.js +47 -21
  406. package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -1
  407. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.d.ts +2 -2
  408. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +27 -4
  409. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js.map +1 -1
  410. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.d.ts +1 -1
  411. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js +32 -6
  412. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js.map +1 -1
  413. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js +36 -10
  414. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js.map +1 -1
  415. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.d.ts +1 -1
  416. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js +41 -15
  417. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js.map +1 -1
  418. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.d.ts +1 -1
  419. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js +29 -3
  420. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js.map +1 -1
  421. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +36 -10
  422. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js.map +1 -1
  423. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.d.ts +1 -1
  424. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +35 -9
  425. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js.map +1 -1
  426. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.d.ts +1 -1
  427. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +36 -10
  428. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js.map +1 -1
  429. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.d.ts +1 -1
  430. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js +30 -4
  431. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js.map +1 -1
  432. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.d.ts +1 -1
  433. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js +33 -7
  434. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js.map +1 -1
  435. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.d.ts +2 -2
  436. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js +33 -7
  437. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js.map +1 -1
  438. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.d.ts +1 -1
  439. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +43 -17
  440. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js.map +1 -1
  441. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.d.ts +1 -1
  442. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js +35 -9
  443. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js.map +1 -1
  444. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js +31 -5
  445. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js.map +1 -1
  446. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.d.ts +1 -1
  447. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js +40 -14
  448. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js.map +1 -1
  449. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +2 -2
  450. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js +35 -9
  451. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js.map +1 -1
  452. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +2 -2
  453. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js +32 -6
  454. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js.map +1 -1
  455. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +2 -2
  456. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js +32 -6
  457. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js.map +1 -1
  458. package/dist/src/components/summary/BEMapWidget.d.ts +3 -5
  459. package/dist/src/components/summary/BEMapWidget.js +66 -18
  460. package/dist/src/components/summary/BEMapWidget.js.map +1 -1
  461. package/dist/src/components/summary/BEMobileSummary.js +37 -11
  462. package/dist/src/components/summary/BEMobileSummary.js.map +1 -1
  463. package/dist/src/components/summary/BEMobileSummaryModal.js +45 -19
  464. package/dist/src/components/summary/BEMobileSummaryModal.js.map +1 -1
  465. package/dist/src/components/summary/BESummary.js +41 -15
  466. package/dist/src/components/summary/BESummary.js.map +1 -1
  467. package/dist/src/components/summary/BESummaryAddonRow.d.ts +1 -1
  468. package/dist/src/components/summary/BESummaryAddonRow.js +36 -10
  469. package/dist/src/components/summary/BESummaryAddonRow.js.map +1 -1
  470. package/dist/src/components/summary/BESummaryPerkBlock.js +31 -5
  471. package/dist/src/components/summary/BESummaryPerkBlock.js.map +1 -1
  472. package/dist/src/components/summary/BESummaryPrivacyPolicy.js +26 -3
  473. package/dist/src/components/summary/BESummaryPrivacyPolicy.js.map +1 -1
  474. package/dist/src/components/summary/BESummaryRoomRow.d.ts +1 -1
  475. package/dist/src/components/summary/BESummaryRoomRow.js +37 -11
  476. package/dist/src/components/summary/BESummaryRoomRow.js.map +1 -1
  477. package/dist/src/components/summary/TransportDistanceFromHotelBlock.d.ts +1 -1
  478. package/dist/src/components/summary/TransportDistanceFromHotelBlock.js +32 -6
  479. package/dist/src/components/summary/TransportDistanceFromHotelBlock.js.map +1 -1
  480. package/dist/src/components/temp/Login.js +29 -3
  481. package/dist/src/components/temp/Login.js.map +1 -1
  482. package/dist/src/containers/PrivateRoute.js +24 -1
  483. package/dist/src/containers/PrivateRoute.js.map +1 -1
  484. package/dist/src/contexts/BasketContext/BasketContextType.d.ts +7 -7
  485. package/dist/src/contexts/BasketContext/BasketContextType.js.map +1 -1
  486. package/dist/src/contexts/BasketContext/BasketContextWrapper.js +44 -18
  487. package/dist/src/contexts/BasketContext/BasketContextWrapper.js.map +1 -1
  488. package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.d.ts +5 -5
  489. package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.js.map +1 -1
  490. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +1 -1
  491. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js +29 -3
  492. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js.map +1 -1
  493. package/dist/src/contexts/CompanyContext/CompanyContextType.type.d.ts +5 -5
  494. package/dist/src/contexts/CompanyContext/CompanyContextType.type.js.map +1 -1
  495. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.d.ts +1 -1
  496. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js +37 -11
  497. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js.map +1 -1
  498. package/dist/src/contexts/ConfirmationFormContext.js +24 -1
  499. package/dist/src/contexts/ConfirmationFormContext.js.map +1 -1
  500. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js +31 -5
  501. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js.map +1 -1
  502. package/dist/src/contexts/DatePickerContext.d.ts +1 -1
  503. package/dist/src/contexts/DatePickerContext.js +24 -1
  504. package/dist/src/contexts/DatePickerContext.js.map +1 -1
  505. package/dist/src/contexts/ErrorContext.js +29 -3
  506. package/dist/src/contexts/ErrorContext.js.map +1 -1
  507. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.d.ts +2 -2
  508. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextTypes.js.map +1 -1
  509. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +56 -30
  510. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js.map +1 -1
  511. package/dist/src/contexts/HotelOverridesContext.d.ts +1 -1
  512. package/dist/src/contexts/HotelOverridesContext.js +29 -3
  513. package/dist/src/contexts/HotelOverridesContext.js.map +1 -1
  514. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js +30 -4
  515. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js.map +1 -1
  516. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js +31 -5
  517. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js.map +1 -1
  518. package/dist/src/contexts/ModalContext.js +24 -1
  519. package/dist/src/contexts/ModalContext.js.map +1 -1
  520. package/dist/src/contexts/NotificationContext.d.ts +1 -1
  521. package/dist/src/contexts/NotificationContext.js +28 -2
  522. package/dist/src/contexts/NotificationContext.js.map +1 -1
  523. package/dist/src/engines/BaseEngine.d.ts +6 -7
  524. package/dist/src/engines/BaseEngine.js +6 -2
  525. package/dist/src/engines/BaseEngine.js.map +1 -1
  526. package/dist/src/engines/BookingWizardEngine/BookingWizardEngine.d.ts +17 -0
  527. package/dist/src/engines/BookingWizardEngine/BookingWizardEngine.js +31 -0
  528. package/dist/src/engines/BookingWizardEngine/BookingWizardEngine.js.map +1 -0
  529. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.d.ts +6 -0
  530. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js +54 -0
  531. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js.map +1 -0
  532. package/dist/src/engines/CustomEngine/CustomEngine.d.ts +1 -1
  533. package/dist/src/engines/CustomEngine/CustomEngine.js +1 -1
  534. package/dist/src/engines/CustomEngine/CustomEngine.js.map +1 -1
  535. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.d.ts +7 -3
  536. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js +26 -3
  537. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js.map +1 -1
  538. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.d.ts +1 -1
  539. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +25 -2
  540. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -1
  541. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.d.ts +7 -3
  542. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js +6 -3
  543. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js.map +1 -1
  544. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.d.ts +1 -1
  545. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +65 -39
  546. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -1
  547. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.d.ts +7 -3
  548. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js +6 -3
  549. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js.map +1 -1
  550. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.d.ts +1 -1
  551. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +37 -11
  552. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -1
  553. package/dist/src/errors/GetAvailabilityError.d.ts +1 -1
  554. package/dist/src/errors/GetAvailabilityError.js +1 -1
  555. package/dist/src/errors/GetAvailabilityError.js.map +1 -1
  556. package/dist/src/events/RoomstayEventManager.d.ts +1 -1
  557. package/dist/src/events/RoomstayEventManager.js.map +1 -1
  558. package/dist/src/events/actions/AddToCartEvent.d.ts +2 -2
  559. package/dist/src/events/actions/AddToCartEvent.js +1 -1
  560. package/dist/src/events/actions/AddToCartEvent.js.map +1 -1
  561. package/dist/src/events/actions/GuestSearchEvent.d.ts +1 -1
  562. package/dist/src/events/actions/GuestSearchEvent.js.map +1 -1
  563. package/dist/src/events/actions/InitialHotelDetailsEvent.d.ts +1 -1
  564. package/dist/src/events/actions/InitialHotelDetailsEvent.js.map +1 -1
  565. package/dist/src/events/actions/MemberOnlyFence/MemberOnlyFenceSignUp.d.ts +1 -1
  566. package/dist/src/events/actions/MemberOnlyFence/MemberOnlyFenceSignUp.js.map +1 -1
  567. package/dist/src/events/actions/Promotion/PromotionAddedEvent.d.ts +1 -1
  568. package/dist/src/events/actions/Promotion/PromotionAddedEvent.js.map +1 -1
  569. package/dist/src/events/actions/Promotion/PromotionClickedEvent.d.ts +1 -1
  570. package/dist/src/events/actions/Promotion/PromotionClickedEvent.js.map +1 -1
  571. package/dist/src/events/actions/Promotion/PromotionRemovedEvent.d.ts +1 -1
  572. package/dist/src/events/actions/Promotion/PromotionRemovedEvent.js.map +1 -1
  573. package/dist/src/events/actions/RemoveFromCartEvent.d.ts +2 -2
  574. package/dist/src/events/actions/RemoveFromCartEvent.js +1 -1
  575. package/dist/src/events/actions/RemoveFromCartEvent.js.map +1 -1
  576. package/dist/src/events/actions/RoomListSearchEvent.d.ts +2 -2
  577. package/dist/src/events/actions/RoomListSearchEvent.js.map +1 -1
  578. package/dist/src/events/index.d.ts +13 -13
  579. package/dist/src/events/index.js +13 -13
  580. package/dist/src/events/index.js.map +1 -1
  581. package/dist/src/events/views/FindReservationResultsViewEvent.d.ts +1 -1
  582. package/dist/src/events/views/FindReservationResultsViewEvent.js.map +1 -1
  583. package/dist/src/events/views/StepCheckoutViewEvent.d.ts +2 -2
  584. package/dist/src/events/views/StepCheckoutViewEvent.js +1 -1
  585. package/dist/src/events/views/StepCheckoutViewEvent.js.map +1 -1
  586. package/dist/src/events/views/StepThanksViewEvent.d.ts +1 -1
  587. package/dist/src/events/views/StepThanksViewEvent.js.map +1 -1
  588. package/dist/src/hooks/AutoFocusOnSelect.d.ts +2 -0
  589. package/dist/src/hooks/AutoFocusOnSelect.js +1 -0
  590. package/dist/src/hooks/AutoFocusOnSelect.js.map +1 -1
  591. package/dist/src/hooks/ConfirmationQuery.js +2 -2
  592. package/dist/src/hooks/ConfirmationQuery.js.map +1 -1
  593. package/dist/src/hooks/ElementSortHook.js +24 -1
  594. package/dist/src/hooks/ElementSortHook.js.map +1 -1
  595. package/dist/src/hooks/EventHook.d.ts +2 -2
  596. package/dist/src/hooks/EventHook.js +4 -1
  597. package/dist/src/hooks/EventHook.js.map +1 -1
  598. package/dist/src/hooks/KeyboardControlOnSelect.d.ts +14 -8
  599. package/dist/src/hooks/KeyboardControlOnSelect.js +45 -37
  600. package/dist/src/hooks/KeyboardControlOnSelect.js.map +1 -1
  601. package/dist/src/hooks/Query.d.ts +1 -1
  602. package/dist/src/hooks/Query.js +29 -6
  603. package/dist/src/hooks/Query.js.map +1 -1
  604. package/dist/src/hooks/VGSHooks.d.ts +1 -1
  605. package/dist/src/hooks/VGSHooks.js +6 -3
  606. package/dist/src/hooks/VGSHooks.js.map +1 -1
  607. package/dist/src/hooks/WindowSize.d.ts +9 -3
  608. package/dist/src/hooks/WindowSize.js +13 -2
  609. package/dist/src/hooks/WindowSize.js.map +1 -1
  610. package/dist/src/hooks/index.d.ts +6 -6
  611. package/dist/src/hooks/index.js +6 -6
  612. package/dist/src/hooks/index.js.map +1 -1
  613. package/dist/src/icons/Check.js +25 -2
  614. package/dist/src/icons/Check.js.map +1 -1
  615. package/dist/src/index.d.ts +65 -64
  616. package/dist/src/index.js +124 -108
  617. package/dist/src/index.js.map +1 -1
  618. package/dist/src/mockApi/AddonAPI.d.ts +2 -2
  619. package/dist/src/mockApi/AddonAPI.js +6 -3
  620. package/dist/src/mockApi/AddonAPI.js.map +1 -1
  621. package/dist/src/mockApi/BookingAPI.d.ts +1 -1
  622. package/dist/src/mockApi/BookingAPI.js +9 -6
  623. package/dist/src/mockApi/BookingAPI.js.map +1 -1
  624. package/dist/src/mockApi/ExchangeRateAPI.d.ts +1 -1
  625. package/dist/src/mockApi/ExchangeRateAPI.js +4 -1
  626. package/dist/src/mockApi/ExchangeRateAPI.js.map +1 -1
  627. package/dist/src/mockApi/HotelAPI.d.ts +2 -2
  628. package/dist/src/mockApi/HotelAPI.js +4 -1
  629. package/dist/src/mockApi/HotelAPI.js.map +1 -1
  630. package/dist/src/mockApi/MemberAPI.js +24 -1
  631. package/dist/src/mockApi/MemberAPI.js.map +1 -1
  632. package/dist/src/mockApi/MockAPI.d.ts +1 -1
  633. package/dist/src/mockApi/MockAPI.js +6 -3
  634. package/dist/src/mockApi/MockAPI.js.map +1 -1
  635. package/dist/src/mockApi/ReservationAPI.d.ts +5 -5
  636. package/dist/src/mockApi/ReservationAPI.js +24 -1
  637. package/dist/src/mockApi/ReservationAPI.js.map +1 -1
  638. package/dist/src/models/Addon/Addon.d.ts +1 -1
  639. package/dist/src/models/Addon/Addon.js +7 -4
  640. package/dist/src/models/Addon/Addon.js.map +1 -1
  641. package/dist/src/models/Api/HotelDTO.d.ts +6 -6
  642. package/dist/src/models/Api/HotelDTO.js.map +1 -1
  643. package/dist/src/models/Api/HotelOverrideDTO.d.ts +1 -1
  644. package/dist/src/models/Api/HotelOverrideDTO.js.map +1 -1
  645. package/dist/src/models/Api/ReservationsDTO.d.ts +1 -1
  646. package/dist/src/models/Api/ReservationsDTO.js.map +1 -1
  647. package/dist/src/models/Api/RoomNightDTO.d.ts +1 -1
  648. package/dist/src/models/Api/RoomNightDTO.js.map +1 -1
  649. package/dist/src/models/BasketAddonRow.d.ts +1 -1
  650. package/dist/src/models/BasketAddonRow.js +1 -1
  651. package/dist/src/models/BasketAddonRow.js.map +1 -1
  652. package/dist/src/models/BasketRow.d.ts +6 -6
  653. package/dist/src/models/BasketRow.js +1 -1
  654. package/dist/src/models/BasketRow.js.map +1 -1
  655. package/dist/src/models/BookingWizard/BookingWizardProperty.d.ts +6 -0
  656. package/dist/src/models/BookingWizard/BookingWizardProperty.js +3 -0
  657. package/dist/src/models/BookingWizard/BookingWizardProperty.js.map +1 -0
  658. package/dist/src/models/BookingWizard/BookingWizardTypes.d.ts +4 -0
  659. package/dist/src/models/BookingWizard/BookingWizardTypes.js +3 -0
  660. package/dist/src/models/BookingWizard/BookingWizardTypes.js.map +1 -0
  661. package/dist/src/models/Client/Hotel/Company.d.ts +2 -2
  662. package/dist/src/models/Client/Hotel/Company.js.map +1 -1
  663. package/dist/src/models/Client/Hotel/Hotel.d.ts +12 -12
  664. package/dist/src/models/Client/Hotel/Hotel.js.map +1 -1
  665. package/dist/src/models/Client/Hotel/HotelPerk.d.ts +1 -1
  666. package/dist/src/models/Client/Hotel/HotelPerk.js.map +1 -1
  667. package/dist/src/models/Promotion/IPromotion.type.d.ts +1 -1
  668. package/dist/src/models/Promotion/IPromotion.type.js.map +1 -1
  669. package/dist/src/models/Reservation/Reservation.d.ts +1 -1
  670. package/dist/src/models/Reservation/Reservation.js.map +1 -1
  671. package/dist/src/models/Room/Filters/BudgetFilter.d.ts +2 -2
  672. package/dist/src/models/Room/Filters/BudgetFilter.js +4 -1
  673. package/dist/src/models/Room/Filters/BudgetFilter.js.map +1 -1
  674. package/dist/src/models/Room/Filters/Filter.d.ts +1 -1
  675. package/dist/src/models/Room/Filters/Filter.js.map +1 -1
  676. package/dist/src/models/Room/Filters/RateTypeFilter.d.ts +2 -2
  677. package/dist/src/models/Room/Filters/RateTypeFilter.js +4 -1
  678. package/dist/src/models/Room/Filters/RateTypeFilter.js.map +1 -1
  679. package/dist/src/models/Room/Filters/RoomTypeFilter.d.ts +2 -2
  680. package/dist/src/models/Room/Filters/RoomTypeFilter.js +4 -1
  681. package/dist/src/models/Room/Filters/RoomTypeFilter.js.map +1 -1
  682. package/dist/src/models/Room/Room.d.ts +3 -3
  683. package/dist/src/models/Room/Room.js +1 -1
  684. package/dist/src/models/Room/Room.js.map +1 -1
  685. package/dist/src/models/Room/RoomRate.d.ts +4 -4
  686. package/dist/src/models/Room/RoomRate.js +6 -3
  687. package/dist/src/models/Room/RoomRate.js.map +1 -1
  688. package/dist/src/models/Room/RoomRateNight.d.ts +2 -2
  689. package/dist/src/models/Room/RoomRateNight.js +6 -3
  690. package/dist/src/models/Room/RoomRateNight.js.map +1 -1
  691. package/dist/src/models/RoomstaySession.d.ts +4 -4
  692. package/dist/src/models/RoomstaySession.js.map +1 -1
  693. package/dist/src/pages/account/AccountHome/AccountHomePage.js +38 -12
  694. package/dist/src/pages/account/AccountHome/AccountHomePage.js.map +1 -1
  695. package/dist/src/pages/account/AccountOutlet.js +24 -1
  696. package/dist/src/pages/account/AccountOutlet.js.map +1 -1
  697. package/dist/src/pages/account/AccountRouter.js +33 -10
  698. package/dist/src/pages/account/AccountRouter.js.map +1 -1
  699. package/dist/src/pages/account/Details/AccountDetailsCardsPage.js +38 -12
  700. package/dist/src/pages/account/Details/AccountDetailsCardsPage.js.map +1 -1
  701. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.d.ts +1 -1
  702. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js +33 -7
  703. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js.map +1 -1
  704. package/dist/src/pages/account/Details/AccountDetailsProfilePage.js +36 -10
  705. package/dist/src/pages/account/Details/AccountDetailsProfilePage.js.map +1 -1
  706. package/dist/src/pages/account/Help/AccountHelpPage.js +38 -12
  707. package/dist/src/pages/account/Help/AccountHelpPage.js.map +1 -1
  708. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js +43 -17
  709. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js.map +1 -1
  710. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js +43 -17
  711. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js.map +1 -1
  712. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js +44 -18
  713. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js.map +1 -1
  714. package/dist/src/pages/account/Reservations/AccountReservationsPage.js +34 -8
  715. package/dist/src/pages/account/Reservations/AccountReservationsPage.js.map +1 -1
  716. package/dist/src/pages/findReservation/FindReservation.js +46 -20
  717. package/dist/src/pages/findReservation/FindReservation.js.map +1 -1
  718. package/dist/src/pages/findReservation/FindReservationResults.js +44 -18
  719. package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -1
  720. package/dist/src/pages/findReservation/ReservationRow.d.ts +1 -1
  721. package/dist/src/pages/findReservation/ReservationRow.js +41 -15
  722. package/dist/src/pages/findReservation/ReservationRow.js.map +1 -1
  723. package/dist/src/pages/findReservation/ReservationRowModal.d.ts +1 -1
  724. package/dist/src/pages/findReservation/ReservationRowModal.js +40 -14
  725. package/dist/src/pages/findReservation/ReservationRowModal.js.map +1 -1
  726. package/dist/src/pages/hotel/HotelInfo.js +37 -11
  727. package/dist/src/pages/hotel/HotelInfo.js.map +1 -1
  728. package/dist/src/pages/hotel/HotelInfoPlaceholder.js +28 -2
  729. package/dist/src/pages/hotel/HotelInfoPlaceholder.js.map +1 -1
  730. package/dist/src/pages/steps/Step.d.ts +4 -4
  731. package/dist/src/pages/steps/Step.js.map +1 -1
  732. package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +5 -5
  733. package/dist/src/pages/steps/StepAddon/StepAddon.js +6 -3
  734. package/dist/src/pages/steps/StepAddon/StepAddon.js.map +1 -1
  735. package/dist/src/pages/steps/StepAddon/StepAddonComponent.js +36 -10
  736. package/dist/src/pages/steps/StepAddon/StepAddonComponent.js.map +1 -1
  737. package/dist/src/pages/steps/StepAddon/StepAddonLoader.js +29 -3
  738. package/dist/src/pages/steps/StepAddon/StepAddonLoader.js.map +1 -1
  739. package/dist/src/pages/steps/StepAddon/StepAddonValidator.d.ts +1 -1
  740. package/dist/src/pages/steps/StepAddon/StepAddonValidator.js +4 -1
  741. package/dist/src/pages/steps/StepAddon/StepAddonValidator.js.map +1 -1
  742. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.d.ts +6 -6
  743. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js +6 -3
  744. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js.map +1 -1
  745. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js +43 -17
  746. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js.map +1 -1
  747. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js +29 -3
  748. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js.map +1 -1
  749. package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.d.ts +1 -1
  750. package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js +4 -1
  751. package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js.map +1 -1
  752. package/dist/src/pages/steps/StepDate/StepDate.js +6 -3
  753. package/dist/src/pages/steps/StepDate/StepDate.js.map +1 -1
  754. package/dist/src/pages/steps/StepDate/StepDateComponent.js +40 -14
  755. package/dist/src/pages/steps/StepDate/StepDateComponent.js.map +1 -1
  756. package/dist/src/pages/steps/StepDate/StepDateValidator.d.ts +1 -1
  757. package/dist/src/pages/steps/StepDate/StepDateValidator.js +4 -1
  758. package/dist/src/pages/steps/StepDate/StepDateValidator.js.map +1 -1
  759. package/dist/src/pages/steps/StepGuide.d.ts +1 -1
  760. package/dist/src/pages/steps/StepGuide.js +29 -3
  761. package/dist/src/pages/steps/StepGuide.js.map +1 -1
  762. package/dist/src/pages/steps/StepHotel/StepHotel.d.ts +4 -4
  763. package/dist/src/pages/steps/StepHotel/StepHotel.js +6 -3
  764. package/dist/src/pages/steps/StepHotel/StepHotel.js.map +1 -1
  765. package/dist/src/pages/steps/StepHotel/StepHotelComponent.js +41 -15
  766. package/dist/src/pages/steps/StepHotel/StepHotelComponent.js.map +1 -1
  767. package/dist/src/pages/steps/StepHotel/StepHotelLoader.js +31 -5
  768. package/dist/src/pages/steps/StepHotel/StepHotelLoader.js.map +1 -1
  769. package/dist/src/pages/steps/StepHotel/StepHotelValidator.d.ts +1 -1
  770. package/dist/src/pages/steps/StepHotel/StepHotelValidator.js +4 -1
  771. package/dist/src/pages/steps/StepHotel/StepHotelValidator.js.map +1 -1
  772. package/dist/src/pages/steps/StepRoom/StepRoom.d.ts +6 -6
  773. package/dist/src/pages/steps/StepRoom/StepRoom.js +6 -3
  774. package/dist/src/pages/steps/StepRoom/StepRoom.js.map +1 -1
  775. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +43 -17
  776. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js.map +1 -1
  777. package/dist/src/pages/steps/StepRoom/StepRoomLoader.js +29 -3
  778. package/dist/src/pages/steps/StepRoom/StepRoomLoader.js.map +1 -1
  779. package/dist/src/pages/steps/StepRoom/StepRoomValidator.d.ts +1 -1
  780. package/dist/src/pages/steps/StepRoom/StepRoomValidator.js +4 -1
  781. package/dist/src/pages/steps/StepRoom/StepRoomValidator.js.map +1 -1
  782. package/dist/src/pages/steps/StepThanks/StepThanks.d.ts +6 -6
  783. package/dist/src/pages/steps/StepThanks/StepThanks.js +7 -4
  784. package/dist/src/pages/steps/StepThanks/StepThanks.js.map +1 -1
  785. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +43 -17
  786. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js.map +1 -1
  787. package/dist/src/pages/steps/StepThanks/StepThanksValidator.d.ts +1 -1
  788. package/dist/src/pages/steps/StepThanks/StepThanksValidator.js +4 -1
  789. package/dist/src/pages/steps/StepThanks/StepThanksValidator.js.map +1 -1
  790. package/dist/src/providers/CurrencyProvider.js +6 -3
  791. package/dist/src/providers/CurrencyProvider.js.map +1 -1
  792. package/dist/src/providers/DIProvider.js +24 -1
  793. package/dist/src/providers/DIProvider.js.map +1 -1
  794. package/dist/src/providers/DistanceProvider.d.ts +1 -1
  795. package/dist/src/providers/DistanceProvider.js +1 -1
  796. package/dist/src/providers/DistanceProvider.js.map +1 -1
  797. package/dist/src/providers/FeatureProvider.d.ts +2 -2
  798. package/dist/src/providers/FeatureProvider.js +12 -9
  799. package/dist/src/providers/FeatureProvider.js.map +1 -1
  800. package/dist/src/providers/FilterProvider.d.ts +3 -3
  801. package/dist/src/providers/FilterProvider.js +4 -1
  802. package/dist/src/providers/FilterProvider.js.map +1 -1
  803. package/dist/src/providers/LanguageProvider.js +6 -3
  804. package/dist/src/providers/LanguageProvider.js.map +1 -1
  805. package/dist/src/providers/PromotionProvider.d.ts +2 -2
  806. package/dist/src/providers/PromotionProvider.js +12 -9
  807. package/dist/src/providers/PromotionProvider.js.map +1 -1
  808. package/dist/src/providers/RatePillProvider.d.ts +5 -5
  809. package/dist/src/providers/RatePillProvider.js.map +1 -1
  810. package/dist/src/providers/RoomSortProvider.d.ts +1 -1
  811. package/dist/src/providers/RoomSortProvider.js.map +1 -1
  812. package/dist/src/providers/RoomstayThemeEngine.d.ts +3 -3
  813. package/dist/src/providers/RoomstayThemeEngine.js +36 -10
  814. package/dist/src/providers/RoomstayThemeEngine.js.map +1 -1
  815. package/dist/src/providers/SessionProvider.d.ts +1 -1
  816. package/dist/src/providers/SessionProvider.js +13 -10
  817. package/dist/src/providers/SessionProvider.js.map +1 -1
  818. package/dist/src/providers/feature/ConfirmationVerifyFeature.d.ts +1 -1
  819. package/dist/src/providers/feature/ConfirmationVerifyFeature.js +1 -1
  820. package/dist/src/providers/feature/ConfirmationVerifyFeature.js.map +1 -1
  821. package/dist/src/providers/feature/DatePickerTypeFeature.d.ts +1 -1
  822. package/dist/src/providers/feature/DatePickerTypeFeature.js +2 -2
  823. package/dist/src/providers/feature/DatePickerTypeFeature.js.map +1 -1
  824. package/dist/src/providers/feature/E164PhoneNumberFieldFeature.d.ts +1 -1
  825. package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js +1 -1
  826. package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js.map +1 -1
  827. package/dist/src/providers/feature/FeaturedPromoFeature.d.ts +1 -1
  828. package/dist/src/providers/feature/FeaturedPromoFeature.js +2 -2
  829. package/dist/src/providers/feature/FeaturedPromoFeature.js.map +1 -1
  830. package/dist/src/providers/feature/InlineAddonStepFeature.d.ts +1 -1
  831. package/dist/src/providers/feature/InlineAddonStepFeature.js +6 -3
  832. package/dist/src/providers/feature/InlineAddonStepFeature.js.map +1 -1
  833. package/dist/src/providers/feature/MemberPortalFeature.d.ts +1 -1
  834. package/dist/src/providers/feature/MemberPortalFeature.js +1 -1
  835. package/dist/src/providers/feature/MemberPortalFeature.js.map +1 -1
  836. package/dist/src/providers/feature/RoomUpsellFeature.d.ts +1 -1
  837. package/dist/src/providers/feature/RoomUpsellFeature.js +1 -1
  838. package/dist/src/providers/feature/RoomUpsellFeature.js.map +1 -1
  839. package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.d.ts +1 -1
  840. package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js +1 -1
  841. package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js.map +1 -1
  842. package/dist/src/providers/storage/LocalStorageProvider.d.ts +1 -1
  843. package/dist/src/providers/storage/LocalStorageProvider.js +25 -2
  844. package/dist/src/providers/storage/LocalStorageProvider.js.map +1 -1
  845. package/dist/src/reducers/BasketReducer.d.ts +2 -2
  846. package/dist/src/reducers/BasketReducer.js +8 -5
  847. package/dist/src/reducers/BasketReducer.js.map +1 -1
  848. package/dist/src/routes/NaturallyProgressedStepRoute.d.ts +1 -1
  849. package/dist/src/routes/NaturallyProgressedStepRoute.js +33 -7
  850. package/dist/src/routes/NaturallyProgressedStepRoute.js.map +1 -1
  851. package/dist/src/stories/Alert.stories.d.ts +5 -0
  852. package/dist/src/stories/Alert.stories.js +42 -0
  853. package/dist/src/stories/Alert.stories.js.map +1 -0
  854. package/dist/src/stories/{Button.stories.d.ts → BEButton.stories.d.ts} +1 -1
  855. package/dist/src/stories/BEButton.stories.js +43 -0
  856. package/dist/src/stories/BEButton.stories.js.map +1 -0
  857. package/dist/src/stories/BackButton.stories.d.ts +5 -0
  858. package/dist/src/stories/BackButton.stories.js +40 -0
  859. package/dist/src/stories/BackButton.stories.js.map +1 -0
  860. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.d.ts +5 -0
  861. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js +37 -0
  862. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js.map +1 -0
  863. package/dist/src/stories/BookingWizard.stories.d.ts +9 -0
  864. package/dist/src/stories/BookingWizard.stories.js +58 -0
  865. package/dist/src/stories/BookingWizard.stories.js.map +1 -0
  866. package/dist/src/stories/Card.stories.d.ts +3 -3
  867. package/dist/src/stories/Card.stories.js +5 -2
  868. package/dist/src/stories/Card.stories.js.map +1 -1
  869. package/dist/src/stories/CardTypeSelect.stories.d.ts +5 -0
  870. package/dist/src/stories/CardTypeSelect.stories.js +37 -0
  871. package/dist/src/stories/CardTypeSelect.stories.js.map +1 -0
  872. package/dist/src/stories/Checkbox.stories.js +28 -2
  873. package/dist/src/stories/Checkbox.stories.js.map +1 -1
  874. package/dist/src/stories/ConfirmationModal.stories.d.ts +5 -0
  875. package/dist/src/stories/ConfirmationModal.stories.js +45 -0
  876. package/dist/src/stories/ConfirmationModal.stories.js.map +1 -0
  877. package/dist/src/stories/Countdown.stories.d.ts +5 -0
  878. package/dist/src/stories/Countdown.stories.js +43 -0
  879. package/dist/src/stories/Countdown.stories.js.map +1 -0
  880. package/dist/src/stories/Currency.stories.d.ts +5 -0
  881. package/dist/src/stories/Currency.stories.js +42 -0
  882. package/dist/src/stories/Currency.stories.js.map +1 -0
  883. package/dist/src/stories/DateRangePicker.stories.d.ts +8 -0
  884. package/dist/src/stories/DateRangePicker.stories.js +80 -0
  885. package/dist/src/stories/DateRangePicker.stories.js.map +1 -0
  886. package/dist/src/stories/Distance.stories.d.ts +5 -0
  887. package/dist/src/stories/Distance.stories.js +42 -0
  888. package/dist/src/stories/Distance.stories.js.map +1 -0
  889. package/dist/src/stories/EnhancedPhoneNumberField.stories.js +28 -2
  890. package/dist/src/stories/EnhancedPhoneNumberField.stories.js.map +1 -1
  891. package/dist/src/stories/ErrorModal.stories.d.ts +5 -0
  892. package/dist/src/stories/ErrorModal.stories.js +46 -0
  893. package/dist/src/stories/ErrorModal.stories.js.map +1 -0
  894. package/dist/src/stories/FloatingDateRangePicker.stories.d.ts +6 -0
  895. package/dist/src/stories/FloatingDateRangePicker.stories.js +75 -0
  896. package/dist/src/stories/FloatingDateRangePicker.stories.js.map +1 -0
  897. package/dist/src/stories/ForwardedSelect.stories.d.ts +5 -0
  898. package/dist/src/stories/ForwardedSelect.stories.js +51 -0
  899. package/dist/src/stories/ForwardedSelect.stories.js.map +1 -0
  900. package/dist/src/stories/Headline.stories.d.ts +5 -0
  901. package/dist/src/stories/Headline.stories.js +42 -0
  902. package/dist/src/stories/Headline.stories.js.map +1 -0
  903. package/dist/src/stories/Icon.stories.js +25 -2
  904. package/dist/src/stories/Icon.stories.js.map +1 -1
  905. package/dist/src/stories/IconNavCard.stories.js +24 -1
  906. package/dist/src/stories/IconNavCard.stories.js.map +1 -1
  907. package/dist/src/stories/IconText.stories.js +28 -2
  908. package/dist/src/stories/IconText.stories.js.map +1 -1
  909. package/dist/src/stories/ImageLoader.stories.js +28 -2
  910. package/dist/src/stories/ImageLoader.stories.js.map +1 -1
  911. package/dist/src/stories/InputGroup.stories.js +28 -2
  912. package/dist/src/stories/InputGroup.stories.js.map +1 -1
  913. package/dist/src/stories/LargeLoader.stories.js +28 -2
  914. package/dist/src/stories/LargeLoader.stories.js.map +1 -1
  915. package/dist/src/stories/LineBreak.stories.d.ts +5 -0
  916. package/dist/src/stories/LineBreak.stories.js +40 -0
  917. package/dist/src/stories/LineBreak.stories.js.map +1 -0
  918. package/dist/src/stories/Notification.stories.d.ts +5 -0
  919. package/dist/src/stories/Notification.stories.js +46 -0
  920. package/dist/src/stories/Notification.stories.js.map +1 -0
  921. package/dist/src/stories/NumberIncrement.stories.d.ts +5 -0
  922. package/dist/src/stories/NumberIncrement.stories.js +46 -0
  923. package/dist/src/stories/NumberIncrement.stories.js.map +1 -0
  924. package/dist/src/stories/PasswordBox.stories.js +24 -1
  925. package/dist/src/stories/PasswordBox.stories.js.map +1 -1
  926. package/dist/src/stories/PaymentCard.stories.d.ts +4 -0
  927. package/dist/src/stories/PaymentCard.stories.js +47 -0
  928. package/dist/src/stories/PaymentCard.stories.js.map +1 -0
  929. package/dist/src/stories/PaymentCardInput.stories.d.ts +6 -0
  930. package/dist/src/stories/PaymentCardInput.stories.js +51 -0
  931. package/dist/src/stories/PaymentCardInput.stories.js.map +1 -0
  932. package/dist/src/stories/Pill.stories.d.ts +5 -0
  933. package/dist/src/stories/Pill.stories.js +42 -0
  934. package/dist/src/stories/Pill.stories.js.map +1 -0
  935. package/dist/src/stories/Placeholder.stories.d.ts +5 -0
  936. package/dist/src/stories/Placeholder.stories.js +45 -0
  937. package/dist/src/stories/Placeholder.stories.js.map +1 -0
  938. package/dist/src/stories/PlanpayButton.stories.d.ts +5 -0
  939. package/dist/src/stories/PlanpayButton.stories.js +39 -0
  940. package/dist/src/stories/PlanpayButton.stories.js.map +1 -0
  941. package/dist/src/stories/PromoCodeInput.stories.d.ts +5 -0
  942. package/dist/src/stories/PromoCodeInput.stories.js +40 -0
  943. package/dist/src/stories/PromoCodeInput.stories.js.map +1 -0
  944. package/dist/src/stories/RadioButton.stories.d.ts +6 -0
  945. package/dist/src/stories/RadioButton.stories.js +47 -0
  946. package/dist/src/stories/RadioButton.stories.js.map +1 -0
  947. package/dist/src/stories/RadioButtonGroup.stories.d.ts +5 -0
  948. package/dist/src/stories/RadioButtonGroup.stories.js +55 -0
  949. package/dist/src/stories/RadioButtonGroup.stories.js.map +1 -0
  950. package/dist/src/stories/RadioFields.stories.d.ts +5 -0
  951. package/dist/src/stories/RadioFields.stories.js +54 -0
  952. package/dist/src/stories/RadioFields.stories.js.map +1 -0
  953. package/dist/src/stories/SSLSecureBadge.stories.js +5 -2
  954. package/dist/src/stories/SSLSecureBadge.stories.js.map +1 -1
  955. package/dist/src/stories/Select.stories.d.ts +25 -0
  956. package/dist/src/stories/Select.stories.js +96 -0
  957. package/dist/src/stories/Select.stories.js.map +1 -0
  958. package/dist/src/stories/SimpleModal.stories.d.ts +5 -0
  959. package/dist/src/stories/SimpleModal.stories.js +52 -0
  960. package/dist/src/stories/SimpleModal.stories.js.map +1 -0
  961. package/dist/src/stories/Slider.stories.d.ts +10 -0
  962. package/dist/src/stories/Slider.stories.js +53 -0
  963. package/dist/src/stories/Slider.stories.js.map +1 -0
  964. package/dist/src/stories/SmallSpinner.stories.js +28 -2
  965. package/dist/src/stories/SmallSpinner.stories.js.map +1 -1
  966. package/dist/src/stories/TabbedModal.stories.d.ts +5 -0
  967. package/dist/src/stories/TabbedModal.stories.js +61 -0
  968. package/dist/src/stories/TabbedModal.stories.js.map +1 -0
  969. package/dist/src/stories/Tabs.stories.d.ts +5 -0
  970. package/dist/src/stories/Tabs.stories.js +52 -0
  971. package/dist/src/stories/Tabs.stories.js.map +1 -0
  972. package/dist/src/stories/Text.stories.d.ts +5 -0
  973. package/dist/src/stories/Text.stories.js +42 -0
  974. package/dist/src/stories/Text.stories.js.map +1 -0
  975. package/dist/src/stories/TextArea.stories.d.ts +5 -0
  976. package/dist/src/stories/TextArea.stories.js +40 -0
  977. package/dist/src/stories/TextArea.stories.js.map +1 -0
  978. package/dist/src/stories/TextBox.stories.d.ts +5 -0
  979. package/dist/src/stories/TextBox.stories.js +40 -0
  980. package/dist/src/stories/TextBox.stories.js.map +1 -0
  981. package/dist/src/stories/Tooltip.stories.d.ts +5 -0
  982. package/dist/src/stories/Tooltip.stories.js +43 -0
  983. package/dist/src/stories/Tooltip.stories.js.map +1 -0
  984. package/dist/src/util/CalendarHelper.d.ts +2 -2
  985. package/dist/src/util/CalendarHelper.js +5 -2
  986. package/dist/src/util/CalendarHelper.js.map +1 -1
  987. package/dist/src/util/DataLayer.d.ts +6 -6
  988. package/dist/src/util/DataLayer.js +30 -4
  989. package/dist/src/util/DataLayer.js.map +1 -1
  990. package/dist/src/util/ObjectHelper.js +1 -1
  991. package/dist/src/util/ObjectHelper.js.map +1 -1
  992. package/dist/src/util/PaymentCardHelper.d.ts +1 -1
  993. package/dist/src/util/PaymentCardHelper.js +5 -2
  994. package/dist/src/util/PaymentCardHelper.js.map +1 -1
  995. package/dist/src/util/StepManager.d.ts +1 -1
  996. package/dist/src/util/StepManager.js +1 -1
  997. package/dist/src/util/StepManager.js.map +1 -1
  998. package/dist/src/util/TotalCalculator.d.ts +2 -2
  999. package/dist/src/util/TotalCalculator.js +1 -1
  1000. package/dist/src/util/TotalCalculator.js.map +1 -1
  1001. package/dist/test.bundle.js +1 -1
  1002. package/dist/tests/jest/engines/RoomstayThemeEngine.test.js +4 -1
  1003. package/dist/tests/jest/engines/RoomstayThemeEngine.test.js.map +1 -1
  1004. package/dist/tests/jest/events/EventManager.test.js +5 -2
  1005. package/dist/tests/jest/events/EventManager.test.js.map +1 -1
  1006. package/dist/tests/jest/models/RoomRate.test.js +5 -2
  1007. package/dist/tests/jest/models/RoomRate.test.js.map +1 -1
  1008. package/dist/tests/jest/providers/LanguageProvider.test.js +11 -0
  1009. package/dist/tests/jest/providers/LanguageProvider.test.js.map +1 -1
  1010. package/dist/tests/jest/providers/SessionProvider.test.js +26 -15
  1011. package/dist/tests/jest/providers/SessionProvider.test.js.map +1 -1
  1012. package/dist/tests/jest/reducers/BasketReducer.test.js +4 -1
  1013. package/dist/tests/jest/reducers/BasketReducer.test.js.map +1 -1
  1014. package/dist/tests/offline/RoomstayBestRateAlert.js +29 -3
  1015. package/dist/tests/offline/RoomstayBestRateAlert.js.map +1 -1
  1016. package/dist/tests/offline/entry/RSCompany.js +14 -2
  1017. package/dist/tests/offline/entry/RSCompany.js.map +1 -1
  1018. package/dist/tests/offline/entry/ReactWrapper.js +105 -9
  1019. package/dist/tests/offline/entry/ReactWrapper.js.map +1 -1
  1020. package/dist/tests/offline/entry/allEngines.js +32 -6
  1021. package/dist/tests/offline/entry/allEngines.js.map +1 -1
  1022. package/dist/tests/offline/entry/components/TestPicker.js +80 -37
  1023. package/dist/tests/offline/entry/components/TestPicker.js.map +1 -1
  1024. package/dist/tests/setupTests.js +3 -1
  1025. package/dist/tests/setupTests.js.map +1 -1
  1026. package/dist/vendors.bundle.js +1 -1
  1027. package/dist/vendors.bundle.js.LICENSE.txt +5 -9
  1028. package/package.json +13 -8
  1029. package/dist/218.bundle.js +0 -1
  1030. package/dist/src/components/generic/BESelect.d.ts +0 -16
  1031. package/dist/src/components/generic/BESelect.js +0 -12
  1032. package/dist/src/components/generic/BESelect.js.map +0 -1
  1033. package/dist/src/components/generic/Select.d.ts +0 -11
  1034. package/dist/src/components/generic/Select.js +0 -18
  1035. package/dist/src/components/generic/Select.js.map +0 -1
  1036. package/dist/src/stories/Button.stories.js +0 -17
  1037. package/dist/src/stories/Button.stories.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Feature } from 'providers/feature/Feature';
1
+ import { Feature } from '@/providers/feature/Feature';
2
2
  declare class MemberPortalFeature extends Feature {
3
3
  constructor();
4
4
  protected onLoad(): void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Feature_1 = require("providers/feature/Feature");
3
+ const Feature_1 = require("@/providers/feature/Feature");
4
4
  class MemberPortalFeature extends Feature_1.Feature {
5
5
  constructor() {
6
6
  super('MemberPortalFeature');
@@ -1 +1 @@
1
- {"version":3,"file":"MemberPortalFeature.js","sourceRoot":"/","sources":["src/providers/feature/MemberPortalFeature.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AAEpD,MAAM,mBAAoB,SAAQ,iBAAO;IACrC;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACjC,CAAC;IACS,MAAM,KAAI,CAAC;CACxB;AAED,kBAAe,IAAI,mBAAmB,EAAE,CAAC","sourcesContent":["import { Feature } from 'providers/feature/Feature';\n\nclass MemberPortalFeature extends Feature {\n constructor() {\n super('MemberPortalFeature');\n }\n protected onLoad() {}\n}\n\nexport default new MemberPortalFeature();\n"]}
1
+ {"version":3,"file":"MemberPortalFeature.js","sourceRoot":"/","sources":["src/providers/feature/MemberPortalFeature.ts"],"names":[],"mappings":";;AAAA,yDAAsD;AAEtD,MAAM,mBAAoB,SAAQ,iBAAO;IACrC;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACjC,CAAC;IACS,MAAM,KAAI,CAAC;CACxB;AAED,kBAAe,IAAI,mBAAmB,EAAE,CAAC","sourcesContent":["import { Feature } from '@/providers/feature/Feature';\n\nclass MemberPortalFeature extends Feature {\n constructor() {\n super('MemberPortalFeature');\n }\n protected onLoad() {}\n}\n\nexport default new MemberPortalFeature();\n"]}
@@ -1,4 +1,4 @@
1
- import { Feature } from 'providers/feature/Feature';
1
+ import { Feature } from '@/providers/feature/Feature';
2
2
  declare class RoomUpsellFeature extends Feature {
3
3
  constructor();
4
4
  protected onLoad(): void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Feature_1 = require("providers/feature/Feature");
3
+ const Feature_1 = require("@/providers/feature/Feature");
4
4
  class RoomUpsellFeature extends Feature_1.Feature {
5
5
  constructor() {
6
6
  super('RoomUpsellFeature');
@@ -1 +1 @@
1
- {"version":3,"file":"RoomUpsellFeature.js","sourceRoot":"/","sources":["src/providers/feature/RoomUpsellFeature.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AAEpD,MAAM,iBAAkB,SAAQ,iBAAO;IACnC;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC/B,CAAC;IAES,MAAM;QACZ,kBAAkB;IACtB,CAAC;CACJ;AAED,kBAAe,IAAI,iBAAiB,EAAE,CAAC","sourcesContent":["import { Feature } from 'providers/feature/Feature';\n\nclass RoomUpsellFeature extends Feature {\n public constructor() {\n super('RoomUpsellFeature');\n }\n\n protected onLoad() {\n // no empty blocks\n }\n}\n\nexport default new RoomUpsellFeature();\n"]}
1
+ {"version":3,"file":"RoomUpsellFeature.js","sourceRoot":"/","sources":["src/providers/feature/RoomUpsellFeature.ts"],"names":[],"mappings":";;AAAA,yDAAsD;AAEtD,MAAM,iBAAkB,SAAQ,iBAAO;IACnC;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC/B,CAAC;IAES,MAAM;QACZ,kBAAkB;IACtB,CAAC;CACJ;AAED,kBAAe,IAAI,iBAAiB,EAAE,CAAC","sourcesContent":["import { Feature } from '@/providers/feature/Feature';\n\nclass RoomUpsellFeature extends Feature {\n public constructor() {\n super('RoomUpsellFeature');\n }\n\n protected onLoad() {\n // no empty blocks\n }\n}\n\nexport default new RoomUpsellFeature();\n"]}
@@ -1,4 +1,4 @@
1
- import { Feature } from 'providers/feature/Feature';
1
+ import { Feature } from '@/providers/feature/Feature';
2
2
  declare class ShowIATANumberOnCheckoutFeature extends Feature {
3
3
  constructor();
4
4
  protected onLoad(): void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Feature_1 = require("providers/feature/Feature");
3
+ const Feature_1 = require("@/providers/feature/Feature");
4
4
  class ShowIATANumberOnCheckoutFeature extends Feature_1.Feature {
5
5
  constructor() {
6
6
  super('ShowIATANumberOnCheckoutFeature');
@@ -1 +1 @@
1
- {"version":3,"file":"ShowIATANumberOnCheckoutFeature.js","sourceRoot":"/","sources":["src/providers/feature/ShowIATANumberOnCheckoutFeature.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AAEpD,MAAM,+BAAgC,SAAQ,iBAAO;IACjD;QACI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IAC7C,CAAC;IAES,MAAM;QACZ,yBAAyB;IAC7B,CAAC;CACJ;AAED,kBAAe,IAAI,+BAA+B,EAAE,CAAC","sourcesContent":["import { Feature } from 'providers/feature/Feature';\n\nclass ShowIATANumberOnCheckoutFeature extends Feature {\n public constructor() {\n super('ShowIATANumberOnCheckoutFeature');\n }\n\n protected onLoad(): void {\n // Nothing to do on load.\n }\n}\n\nexport default new ShowIATANumberOnCheckoutFeature();\n"]}
1
+ {"version":3,"file":"ShowIATANumberOnCheckoutFeature.js","sourceRoot":"/","sources":["src/providers/feature/ShowIATANumberOnCheckoutFeature.ts"],"names":[],"mappings":";;AAAA,yDAAsD;AAEtD,MAAM,+BAAgC,SAAQ,iBAAO;IACjD;QACI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IAC7C,CAAC;IAES,MAAM;QACZ,yBAAyB;IAC7B,CAAC;CACJ;AAED,kBAAe,IAAI,+BAA+B,EAAE,CAAC","sourcesContent":["import { Feature } from '@/providers/feature/Feature';\n\nclass ShowIATANumberOnCheckoutFeature extends Feature {\n public constructor() {\n super('ShowIATANumberOnCheckoutFeature');\n }\n\n protected onLoad(): void {\n // Nothing to do on load.\n }\n}\n\nexport default new ShowIATANumberOnCheckoutFeature();\n"]}
@@ -1,4 +1,4 @@
1
- import { StorageProvider } from 'providers/storage/StorageProvider';
1
+ import { StorageProvider } from '@/providers/storage/StorageProvider';
2
2
  export declare class LocalStorageProvider extends StorageProvider {
3
3
  private readonly enginePrefix;
4
4
  /**
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
26
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
27
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
33
  };
11
34
  Object.defineProperty(exports, "__esModule", { value: true });
12
35
  exports.LocalStorageProvider = void 0;
13
- const StorageProvider_1 = require("providers/storage/StorageProvider");
14
- const Sentry = require("@sentry/browser");
36
+ const StorageProvider_1 = require("@/providers/storage/StorageProvider");
37
+ const Sentry = __importStar(require("@sentry/browser"));
15
38
  class LocalStorageProvider extends StorageProvider_1.StorageProvider {
16
39
  constructor(storageMethod) {
17
40
  super();
@@ -1 +1 @@
1
- {"version":3,"file":"LocalStorageProvider.js","sourceRoot":"/","sources":["src/providers/storage/LocalStorageProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAiF;AACjF,0CAA0C;AAE1C,MAAa,oBAAqB,SAAQ,iCAAe;IASrD,YAAmB,aAAuB;QACtC,KAAK,EAAE,CAAC;QATK,iBAAY,GAAG,UAAU,CAAC;QAcnC,cAAS,GAAG,CAAC,GAAW,EAAE,EAAE;YAChC,OAAO,GAAG,IAAI,CAAC,YAAY,IAAI,GAAG,EAAE,CAAC;QACzC,CAAC,CAAC;QA2BK,YAAO,GAAG,CAAU,IAAc,EAAgB,EAAE;YACvD,MAAM,OAAO,GAAQ,EAAE,CAAC;YAExB,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAO,GAAG,EAAE,EAAE;gBACpC,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC,EAAE;oBACzC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,YAAY,GAAG,EAAE,EAAE,CAAC,CAAC;iBAClD;gBAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAI,GAAG,CAAC,CAAC;gBAEzC,IAAI,QAAQ,EAAE;oBACV,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC1B;YACL,CAAC,CAAA,CAAC,CAAC;YAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAE5B,OAAO,OAAO,CAAC;QACnB,CAAC,CAAA,CAAC;QAyBK,WAAM,GAAG,CAAC,GAAW,EAAE,EAAE;YAC5B,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,CAAC,CAAC;QAEK,eAAU,GAAG,CAAC,MAAmC,EAAY,EAAE;YAClE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/H,CAAC,CAAC;QAjFE,IAAI,CAAC,aAAa,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC;IACvE,CAAC;IAMY,IAAI,CAAI,GAAW;;YAC5B,IAAI,WAAmB,CAAC;YAExB,IAAI;gBACA,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;aACjE;YAAC,OAAO,EAAE,EAAE;gBACT,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;gBAC5B,OAAO,IAAI,CAAC;aACf;YAED,IAAI,WAAW,EAAE;gBACb,IAAI;oBACA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;oBAEvC,IAAI,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE;wBACxB,OAAO,MAAM,CAAC,KAAK,CAAC;qBACvB;iBACJ;gBAAC,OAAO,EAAE,EAAE;oBACT,OAAO,IAAI,CAAC;iBACf;aACJ;iBAAM;gBACH,OAAO,IAAI,CAAC;aACf;QACL,CAAC;KAAA;IAsBY,KAAK,CAAC,GAAW,EAAE,KAAU;;YACtC,IAAI,cAA2B,CAAC;YAEhC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC3B,cAAc,GAAG,6BAAW,CAAC,MAAM,CAAC;aACvC;iBAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAClC,cAAc,GAAG,6BAAW,CAAC,MAAM,CAAC;aACvC;iBAAM;gBACH,cAAc,GAAG,6BAAW,CAAC,MAAM,CAAC;aACvC;YAED,MAAM,WAAW,GAAG;gBAChB,IAAI,EAAE,cAAc;gBACpB,KAAK;aACR,CAAC;YAEF,IAAI;gBACA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;aAChF;YAAC,OAAO,EAAE,EAAE;gBACT,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;aAC/B;QACL,CAAC;KAAA;CASJ;AA9FD,oDA8FC","sourcesContent":["import { StorageProvider, StorageType } from 'providers/storage/StorageProvider';\nimport * as Sentry from '@sentry/browser';\n\nexport class LocalStorageProvider extends StorageProvider {\n private readonly enginePrefix = 'roomstay';\n\n /**\n * This is important. We're either going to be using localStorage or sessionStorage\n * by default it's localStorage\n */\n private storageMethod: Storage;\n\n public constructor(storageMethod?: Storage) {\n super();\n\n this.storageMethod = !storageMethod ? localStorage : storageMethod;\n }\n\n private prefixKey = (key: string) => {\n return `${this.enginePrefix}-${key}`;\n };\n\n public async read<T>(key: string): Promise<T> {\n let fromStorage: string;\n\n try {\n fromStorage = this.storageMethod.getItem(this.prefixKey(key));\n } catch (ex) {\n Sentry.captureException(ex);\n return null;\n }\n\n if (fromStorage) {\n try {\n const pretty = JSON.parse(fromStorage);\n\n if (pretty && pretty.value) {\n return pretty.value;\n }\n } catch (ex) {\n return null;\n }\n } else {\n return null;\n }\n }\n\n public readAll = async <T>(keys: string[]): Promise<T[]> => {\n const objects: T[] = [];\n\n const promises = keys.map(async (key) => {\n if (key.startsWith(`${this.enginePrefix}-`)) {\n key = key.replace(`${this.enginePrefix}-`, '');\n }\n\n const response = await this.read<T>(key);\n\n if (response) {\n objects.push(response);\n }\n });\n\n await Promise.all(promises);\n\n return objects;\n };\n\n public async write(key: string, value: any) {\n let objStorageType: StorageType;\n\n if (typeof value === 'object') {\n objStorageType = StorageType.Object;\n } else if (typeof value === 'string') {\n objStorageType = StorageType.String;\n } else {\n objStorageType = StorageType.Number;\n }\n\n const insertValue = {\n type: objStorageType,\n value,\n };\n\n try {\n this.storageMethod.setItem(this.prefixKey(key), JSON.stringify(insertValue));\n } catch (ex) {\n Sentry.captureException(ex);\n }\n }\n\n public delete = (key: string) => {\n this.storageMethod.removeItem(this.prefixKey(key));\n };\n\n public getAllKeys = (filter?: (match: string) => boolean): string[] => {\n return Object.keys(this.storageMethod).filter((key) => key.startsWith('roomstay') && ((filter && filter(key)) || !filter));\n };\n}\n"]}
1
+ {"version":3,"file":"LocalStorageProvider.js","sourceRoot":"/","sources":["src/providers/storage/LocalStorageProvider.ts"],"names":[],"mappings":"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","sourcesContent":["import { StorageProvider, StorageType } from '@/providers/storage/StorageProvider';\nimport * as Sentry from '@sentry/browser';\n\nexport class LocalStorageProvider extends StorageProvider {\n private readonly enginePrefix = 'roomstay';\n\n /**\n * This is important. We're either going to be using localStorage or sessionStorage\n * by default it's localStorage\n */\n private storageMethod: Storage;\n\n public constructor(storageMethod?: Storage) {\n super();\n\n this.storageMethod = !storageMethod ? localStorage : storageMethod;\n }\n\n private prefixKey = (key: string) => {\n return `${this.enginePrefix}-${key}`;\n };\n\n public async read<T>(key: string): Promise<T> {\n let fromStorage: string;\n\n try {\n fromStorage = this.storageMethod.getItem(this.prefixKey(key));\n } catch (ex) {\n Sentry.captureException(ex);\n return null;\n }\n\n if (fromStorage) {\n try {\n const pretty = JSON.parse(fromStorage);\n\n if (pretty && pretty.value) {\n return pretty.value;\n }\n } catch (ex) {\n return null;\n }\n } else {\n return null;\n }\n }\n\n public readAll = async <T>(keys: string[]): Promise<T[]> => {\n const objects: T[] = [];\n\n const promises = keys.map(async (key) => {\n if (key.startsWith(`${this.enginePrefix}-`)) {\n key = key.replace(`${this.enginePrefix}-`, '');\n }\n\n const response = await this.read<T>(key);\n\n if (response) {\n objects.push(response);\n }\n });\n\n await Promise.all(promises);\n\n return objects;\n };\n\n public async write(key: string, value: any) {\n let objStorageType: StorageType;\n\n if (typeof value === 'object') {\n objStorageType = StorageType.Object;\n } else if (typeof value === 'string') {\n objStorageType = StorageType.String;\n } else {\n objStorageType = StorageType.Number;\n }\n\n const insertValue = {\n type: objStorageType,\n value,\n };\n\n try {\n this.storageMethod.setItem(this.prefixKey(key), JSON.stringify(insertValue));\n } catch (ex) {\n Sentry.captureException(ex);\n }\n }\n\n public delete = (key: string) => {\n this.storageMethod.removeItem(this.prefixKey(key));\n };\n\n public getAllKeys = (filter?: (match: string) => boolean): string[] => {\n return Object.keys(this.storageMethod).filter((key) => key.startsWith('roomstay') && ((filter && filter(key)) || !filter));\n };\n}\n"]}
@@ -1,5 +1,5 @@
1
- import BasketRow from 'models/BasketRow';
2
- import { RoomRate } from 'models/Room/RoomRate';
1
+ import BasketRow from '@/models/BasketRow';
2
+ import { RoomRate } from '@/models/Room/RoomRate';
3
3
  export type BasketReducerType = {
4
4
  method: 'Add' | 'Remove' | 'Update' | 'Clear' | 'AddRate';
5
5
  row?: BasketRow;
@@ -1,17 +1,20 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.BasketReducer = void 0;
4
- const dayjs = require("dayjs");
5
- const RemoveFromCartEvent_1 = require("events/actions/RemoveFromCartEvent");
6
- const RoomstayEventManager_1 = require("events/RoomstayEventManager");
7
+ const dayjs_1 = __importDefault(require("dayjs"));
8
+ const RemoveFromCartEvent_1 = require("@/events/actions/RemoveFromCartEvent");
9
+ const RoomstayEventManager_1 = __importDefault(require("@/events/RoomstayEventManager"));
7
10
  const events_1 = require("@frontend/events");
8
11
  const BasketReducer = (rows, action) => {
9
12
  const checkAndSetRowDates = (row) => {
10
13
  if (!row.getStartDate()) {
11
- row.setStartDate(dayjs('now'));
14
+ row.setStartDate((0, dayjs_1.default)('now'));
12
15
  }
13
16
  if (!row.getEndDate()) {
14
- row.setEndDate(dayjs('now').add(1, 'day'));
17
+ row.setEndDate((0, dayjs_1.default)('now').add(1, 'day'));
15
18
  }
16
19
  };
17
20
  switch (action.method) {
@@ -1 +1 @@
1
- {"version":3,"file":"BasketReducer.js","sourceRoot":"/","sources":["src/reducers/BasketReducer.ts"],"names":[],"mappings":"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","sourcesContent":["import BasketRow from 'models/BasketRow';\nimport * as dayjs from 'dayjs';\nimport { RemoveFromCartEvent } from 'events/actions/RemoveFromCartEvent';\nimport RoomstayEventManager from 'events/RoomstayEventManager';\nimport { RoomRate } from 'models/Room/RoomRate';\nimport { AddToCartEvent } from '@frontend/events';\n\nexport type BasketReducerType = {\n method: 'Add' | 'Remove' | 'Update' | 'Clear' | 'AddRate';\n row?: BasketRow;\n rate?: RoomRate;\n};\n\nexport const BasketReducer = (rows: BasketRow[], action: BasketReducerType): BasketRow[] => {\n const checkAndSetRowDates = (row: BasketRow) => {\n if (!row.getStartDate()) {\n row.setStartDate(dayjs('now'));\n }\n\n if (!row.getEndDate()) {\n row.setEndDate(dayjs('now').add(1, 'day'));\n }\n };\n\n switch (action.method) {\n case 'Add':\n if (action.row) {\n const { row } = action;\n\n checkAndSetRowDates(row);\n\n return [...rows, row];\n }\n return rows;\n case 'AddRate':\n if (action.row && action.rate) {\n const { row } = action;\n\n checkAndSetRowDates(row);\n\n row.setRate(action.rate);\n\n let hasRowIncluded = false;\n // Let us loop through all of our rows and see if it's in array\n // if target row isn't included, we'll add it to the end.\n const newRows = rows.map((mappedRow) => {\n if (mappedRow.getID() === action.row.getID()) {\n hasRowIncluded = true;\n return action.row;\n } else {\n return mappedRow;\n }\n });\n\n if (!hasRowIncluded) {\n newRows.push(row);\n }\n\n // Reason we raise this event here, and not in the reducer for example is\n // this is the only sure way we can trust a room is being added to the cart\n const addToCartEvent = new AddToCartEvent(row, newRows);\n RoomstayEventManager.raise(addToCartEvent);\n\n return [...newRows];\n }\n\n return rows;\n case 'Remove':\n if (action.row) {\n const newRows = rows.filter((item) => item.getID() !== action.row.getID());\n\n const removeFromCartEvent = new RemoveFromCartEvent(action.row, newRows);\n RoomstayEventManager.raise(removeFromCartEvent);\n\n return newRows;\n }\n\n return rows;\n case 'Clear':\n return [];\n case 'Update':\n if (action.row) {\n return rows.map((row) => {\n if (row.getID() === action.row.getID()) {\n return action.row;\n } else {\n return row;\n }\n });\n }\n\n return rows;\n }\n};\n"]}
1
+ {"version":3,"file":"BasketReducer.js","sourceRoot":"/","sources":["src/reducers/BasketReducer.ts"],"names":[],"mappings":"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","sourcesContent":["import BasketRow from '@/models/BasketRow';\nimport dayjs from 'dayjs';\nimport { RemoveFromCartEvent } from '@/events/actions/RemoveFromCartEvent';\nimport RoomstayEventManager from '@/events/RoomstayEventManager';\nimport { RoomRate } from '@/models/Room/RoomRate';\nimport { AddToCartEvent } from '@frontend/events';\n\nexport type BasketReducerType = {\n method: 'Add' | 'Remove' | 'Update' | 'Clear' | 'AddRate';\n row?: BasketRow;\n rate?: RoomRate;\n};\n\nexport const BasketReducer = (rows: BasketRow[], action: BasketReducerType): BasketRow[] => {\n const checkAndSetRowDates = (row: BasketRow) => {\n if (!row.getStartDate()) {\n row.setStartDate(dayjs('now'));\n }\n\n if (!row.getEndDate()) {\n row.setEndDate(dayjs('now').add(1, 'day'));\n }\n };\n\n switch (action.method) {\n case 'Add':\n if (action.row) {\n const { row } = action;\n\n checkAndSetRowDates(row);\n\n return [...rows, row];\n }\n return rows;\n case 'AddRate':\n if (action.row && action.rate) {\n const { row } = action;\n\n checkAndSetRowDates(row);\n\n row.setRate(action.rate);\n\n let hasRowIncluded = false;\n // Let us loop through all of our rows and see if it's in array\n // if target row isn't included, we'll add it to the end.\n const newRows = rows.map((mappedRow) => {\n if (mappedRow.getID() === action.row.getID()) {\n hasRowIncluded = true;\n return action.row;\n } else {\n return mappedRow;\n }\n });\n\n if (!hasRowIncluded) {\n newRows.push(row);\n }\n\n // Reason we raise this event here, and not in the reducer for example is\n // this is the only sure way we can trust a room is being added to the cart\n const addToCartEvent = new AddToCartEvent(row, newRows);\n RoomstayEventManager.raise(addToCartEvent);\n\n return [...newRows];\n }\n\n return rows;\n case 'Remove':\n if (action.row) {\n const newRows = rows.filter((item) => item.getID() !== action.row.getID());\n\n const removeFromCartEvent = new RemoveFromCartEvent(action.row, newRows);\n RoomstayEventManager.raise(removeFromCartEvent);\n\n return newRows;\n }\n\n return rows;\n case 'Clear':\n return [];\n case 'Update':\n if (action.row) {\n return rows.map((row) => {\n if (row.getID() === action.row.getID()) {\n return action.row;\n } else {\n return row;\n }\n });\n }\n\n return rows;\n }\n};\n"]}
@@ -1,4 +1,4 @@
1
- import Step from 'pages/steps/Step';
1
+ import Step from '@/pages/steps/Step';
2
2
  export interface StepRouteProps {
3
3
  step: Step;
4
4
  }
@@ -1,13 +1,39 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
2
28
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const React = require("react");
29
+ const React = __importStar(require("react"));
4
30
  const react_router_1 = require("react-router");
5
- const StepGuide_1 = require("pages/steps/StepGuide");
6
- const StepSelector_1 = require("components/navigation/StepSelector");
7
- const InactivityWindow_1 = require("components/steps/room/InactivityWindow");
8
- const StepRoom_1 = require("pages/steps/StepRoom/StepRoom");
9
- const StepAddon_1 = require("pages/steps/StepAddon/StepAddon");
10
- const StepConfirmation_1 = require("pages/steps/StepConfirmation/StepConfirmation");
31
+ const StepGuide_1 = __importDefault(require("@/pages/steps/StepGuide"));
32
+ const StepSelector_1 = __importDefault(require("@/components/navigation/StepSelector"));
33
+ const InactivityWindow_1 = __importDefault(require("@/components/steps/room/InactivityWindow"));
34
+ const StepRoom_1 = __importDefault(require("@/pages/steps/StepRoom/StepRoom"));
35
+ const StepAddon_1 = __importDefault(require("@/pages/steps/StepAddon/StepAddon"));
36
+ const StepConfirmation_1 = __importDefault(require("@/pages/steps/StepConfirmation/StepConfirmation"));
11
37
  const StepRoute = (props) => {
12
38
  const renderFunction = (routeProps) => {
13
39
  return (React.createElement(StepGuide_1.default, { step: props.step },
@@ -1 +1 @@
1
- {"version":3,"file":"NaturallyProgressedStepRoute.js","sourceRoot":"/","sources":["src/routes/NaturallyProgressedStepRoute.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,+CAAqC;AACrC,qDAA8C;AAC9C,qEAA8D;AAE9D,6EAAsE;AACtE,4DAAqD;AACrD,+DAAwD;AACxD,oFAA6E;AAM7E,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxC,MAAM,cAAc,GAAG,CAAC,UAAe,EAAE,EAAE;QACvC,OAAO,CACH,oBAAC,mBAAS,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI;YACvB,oBAAC,sBAAY,OAAG;YAChB,oBAAC,WAAW,oBAAK,UAAU,EAAI;YAC9B,CAAC,kBAAQ,CAAC,OAAO,EAAE,EAAE,mBAAS,CAAC,OAAO,EAAE,EAAE,0BAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,oBAAC,0BAAgB,OAAG,CACrH,CACf,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,EAAS,CAAC;IAErD,OAAO,oBAAC,oBAAK,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,cAAc,GAAI,CAAC;AAC5E,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["import * as React from 'react';\nimport { Route } from 'react-router';\nimport StepGuide from 'pages/steps/StepGuide';\nimport StepSelector from 'components/navigation/StepSelector';\nimport Step from 'pages/steps/Step';\nimport InactivityWindow from 'components/steps/room/InactivityWindow';\nimport StepRoom from 'pages/steps/StepRoom/StepRoom';\nimport StepAddon from 'pages/steps/StepAddon/StepAddon';\nimport StepConfirmation from 'pages/steps/StepConfirmation/StepConfirmation';\n\nexport interface StepRouteProps {\n step: Step;\n}\n\nconst StepRoute = (props: StepRouteProps) => {\n const renderFunction = (routeProps: any) => {\n return (\n <StepGuide step={props.step}>\n <StepSelector />\n <StepContent {...routeProps} />\n {[StepRoom.getName(), StepAddon.getName(), StepConfirmation.getName()].includes(props.step.getName()) && <InactivityWindow />}\n </StepGuide>\n );\n };\n\n const StepContent = props.step.getComponent() as any;\n\n return <Route path={props.step.getStepUrl()} render={renderFunction} />;\n};\n\nexport default StepRoute;\n"]}
1
+ {"version":3,"file":"NaturallyProgressedStepRoute.js","sourceRoot":"/","sources":["src/routes/NaturallyProgressedStepRoute.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,+CAAqC;AACrC,wEAAgD;AAChD,wFAAgE;AAEhE,gGAAwE;AACxE,+EAAuD;AACvD,kFAA0D;AAC1D,uGAA+E;AAM/E,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxC,MAAM,cAAc,GAAG,CAAC,UAAe,EAAE,EAAE;QACvC,OAAO,CACH,oBAAC,mBAAS,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI;YACvB,oBAAC,sBAAY,OAAG;YAChB,oBAAC,WAAW,oBAAK,UAAU,EAAI;YAC9B,CAAC,kBAAQ,CAAC,OAAO,EAAE,EAAE,mBAAS,CAAC,OAAO,EAAE,EAAE,0BAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,oBAAC,0BAAgB,OAAG,CACrH,CACf,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,EAAS,CAAC;IAErD,OAAO,oBAAC,oBAAK,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,cAAc,GAAI,CAAC;AAC5E,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["import * as React from 'react';\nimport { Route } from 'react-router';\nimport StepGuide from '@/pages/steps/StepGuide';\nimport StepSelector from '@/components/navigation/StepSelector';\nimport Step from '@/pages/steps/Step';\nimport InactivityWindow from '@/components/steps/room/InactivityWindow';\nimport StepRoom from '@/pages/steps/StepRoom/StepRoom';\nimport StepAddon from '@/pages/steps/StepAddon/StepAddon';\nimport StepConfirmation from '@/pages/steps/StepConfirmation/StepConfirmation';\n\nexport interface StepRouteProps {\n step: Step;\n}\n\nconst StepRoute = (props: StepRouteProps) => {\n const renderFunction = (routeProps: any) => {\n return (\n <StepGuide step={props.step}>\n <StepSelector />\n <StepContent {...routeProps} />\n {[StepRoom.getName(), StepAddon.getName(), StepConfirmation.getName()].includes(props.step.getName()) && <InactivityWindow />}\n </StepGuide>\n );\n };\n\n const StepContent = props.step.getComponent() as any;\n\n return <Route path={props.step.getStepUrl()} render={renderFunction} />;\n};\n\nexport default StepRoute;\n"]}
@@ -0,0 +1,5 @@
1
+ import { ComponentMeta } 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: any;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Default = void 0;
30
+ const React = __importStar(require("react"));
31
+ const Alert_1 = __importDefault(require("@/components/generic/Alert"));
32
+ exports.default = {
33
+ title: 'generic/Alert',
34
+ component: Alert_1.default,
35
+ argTypes: {},
36
+ };
37
+ const Template = (args) => React.createElement(Alert_1.default, Object.assign({}, args));
38
+ exports.Default = Template.bind({});
39
+ exports.Default.args = {
40
+ children: 'Children',
41
+ };
42
+ //# sourceMappingURL=Alert.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.stories.js","sourceRoot":"/","sources":["src/stories/Alert.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAG/B,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,oBAAC,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 * as React from 'react';\nimport { ComponentStory, ComponentMeta } from '@storybook/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"]}
@@ -2,4 +2,4 @@ import { ComponentMeta } from '@storybook/react';
2
2
  import BEButton from '../components/generic/BEButton';
3
3
  declare const _default: ComponentMeta<typeof BEButton>;
4
4
  export default _default;
5
- export declare const Primary: any;
5
+ export declare const Default: any;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Default = void 0;
30
+ const React = __importStar(require("react"));
31
+ const BEButton_1 = __importDefault(require("../components/generic/BEButton"));
32
+ exports.default = {
33
+ title: 'generic/BEButton',
34
+ component: BEButton_1.default,
35
+ argTypes: {},
36
+ };
37
+ const Template = (args) => React.createElement(BEButton_1.default, Object.assign({}, args));
38
+ exports.Default = Template.bind({});
39
+ exports.Default.args = {
40
+ children: 'Text Button',
41
+ primary: true,
42
+ };
43
+ //# sourceMappingURL=BEButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BEButton.stories.js","sourceRoot":"/","sources":["src/stories/BEButton.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAG/B,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,oBAAC,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 * as React from 'react';\nimport { ComponentStory, ComponentMeta } from '@storybook/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 } 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: any;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Default = void 0;
30
+ const React = __importStar(require("react"));
31
+ const BackButton_1 = __importDefault(require("@/components/generic/BackButton"));
32
+ exports.default = {
33
+ title: 'generic/BackButton',
34
+ component: BackButton_1.default,
35
+ argTypes: {},
36
+ };
37
+ const Template = (args) => React.createElement(BackButton_1.default, Object.assign({}, args));
38
+ exports.Default = Template.bind({});
39
+ exports.Default.args = {};
40
+ //# sourceMappingURL=BackButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.stories.js","sourceRoot":"/","sources":["src/stories/BackButton.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAG/B,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,oBAAC,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 * as React from 'react';\nimport { ComponentStory, ComponentMeta } from '@storybook/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 } 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: any;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Default = void 0;
27
+ const React = __importStar(require("react"));
28
+ const BookNowPayLaterInfoBlock_1 = require("@/components/generic/BookNowPayLaterInfoBlock");
29
+ exports.default = {
30
+ title: 'generic/BookNowPayLaterInfoBlock',
31
+ component: BookNowPayLaterInfoBlock_1.BookNowPayLaterInfoBlock,
32
+ argTypes: {},
33
+ };
34
+ const Template = () => React.createElement(BookNowPayLaterInfoBlock_1.BookNowPayLaterInfoBlock, null);
35
+ exports.Default = Template.bind({});
36
+ exports.Default.args = {};
37
+ //# sourceMappingURL=BookNowPayLaterInfoBlock.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookNowPayLaterInfoBlock.stories.js","sourceRoot":"/","sources":["src/stories/BookNowPayLaterInfoBlock.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAG/B,4FAAyF;AAEzF,kBAAe;IACX,KAAK,EAAE,kCAAkC;IACzC,SAAS,EAAE,mDAAwB;IACnC,QAAQ,EAAE,EAAE;CACmC,CAAC;AAEpD,MAAM,QAAQ,GAAoD,GAAG,EAAE,CAAC,oBAAC,mDAAwB,OAAG,CAAC;AAExF,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG,EAAE,CAAC","sourcesContent":["import * as React from 'react';\nimport { ComponentStory, ComponentMeta } from '@storybook/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,9 @@
1
+ import { ComponentMeta } from '@storybook/react';
2
+ import { BookingWizardProps } from '@/components/generic/BookingWizard/BookingWizard';
3
+ import React from 'react';
4
+ declare const _default: ComponentMeta<React.FC<BookingWizardProps>>;
5
+ export default _default;
6
+ export declare const Horizontal: any;
7
+ export declare const Vertical: any;
8
+ export declare const Button: any;
9
+ export declare const FixedCompany: (props: BookingWizardProps) => JSX.Element;
@@ -0,0 +1,58 @@
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.FixedCompany = exports.Button = exports.Vertical = exports.Horizontal = void 0;
7
+ const BookingWizard_1 = __importDefault(require("@/components/generic/BookingWizard/BookingWizard"));
8
+ const react_1 = __importDefault(require("react"));
9
+ const RSCompany_1 = require("../../tests/offline/entry/RSCompany");
10
+ exports.default = {
11
+ title: 'generic/BookingWizard',
12
+ component: BookingWizard_1.default,
13
+ argTypes: {},
14
+ };
15
+ const properties = RSCompany_1.rsCompany.hotels.reduce((map, hotel) => {
16
+ map[hotel.address.city] = map[hotel.address.city] || [];
17
+ map[hotel.address.city].push({ id: hotel.hotelID, name: hotel.name });
18
+ return map;
19
+ }, {});
20
+ const Template = (args) => react_1.default.createElement(BookingWizard_1.default, Object.assign({ hotels: RSCompany_1.rsCompany.hotels || [], properties: properties }, args));
21
+ exports.Horizontal = Template.bind({});
22
+ exports.Horizontal.args = {
23
+ layout: 'horizontal',
24
+ properties,
25
+ };
26
+ // Horizontal.play = async ({ canvasElement }) => {
27
+ // const canvas = within(canvasElement);
28
+ // const hotelInput = await canvas.getByPlaceholderText('Choose hotel');
29
+ // const hotelSelectButton = hotelInput.parentElement.querySelector('i');
30
+ // await userEvent.click(hotelSelectButton);
31
+ // const option1 = await canvas.findByText('Hotel Lorem Ipsum 1');
32
+ // await userEvent.click(option1.parentElement);
33
+ // const guestInput = await canvas.getByPlaceholderText('Guests');
34
+ // await userEvent.click(guestInput);
35
+ // const addButtons = await canvas.findAllByRole('button', { name: /^\+$/i, hidden: true });
36
+ // await userEvent.click(addButtons[0]);
37
+ // await userEvent.click(addButtons[0]);
38
+ // await userEvent.click(addButtons[1]);
39
+ // const applyButton = await canvas.findByRole('button', { name: /Apply/i });
40
+ // await userEvent.click(applyButton);
41
+ // const bookButton = await canvas.findByRole('button', { name: /Book Now/i });
42
+ // await userEvent.click(bookButton);
43
+ // };
44
+ exports.Vertical = Template.bind({});
45
+ exports.Vertical.args = {
46
+ layout: 'vertical',
47
+ properties,
48
+ };
49
+ exports.Button = Template.bind({});
50
+ exports.Button.args = {
51
+ layout: 'button',
52
+ properties,
53
+ };
54
+ const FixedCompany = (props) => {
55
+ return react_1.default.createElement(BookingWizard_1.default, Object.assign({ properties: properties }, props));
56
+ };
57
+ exports.FixedCompany = FixedCompany;
58
+ //# 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,qGAAqG;AAErG,kDAA0B;AAC1B,mEAAgE;AAEhE,kBAAe;IACX,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,uBAAa;IACxB,QAAQ,EAAE,EAAE;CACwB,CAAC;AAEzC,MAAM,UAAU,GAAG,qBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IACtD,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAK,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IAEzD,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAK,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IAEvE,OAAO,GAAG,CAAC;AACf,CAAC,EAAE,EAAE,CAAC,CAAC;AAEP,MAAM,QAAQ,GAAyC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAC,uBAAa,kBAAC,MAAM,EAAE,qBAAS,CAAC,MAAM,IAAI,EAAE,EAAE,UAAU,EAAE,UAAU,IAAM,IAAI,EAAI,CAAC;AAExI,QAAA,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,kBAAU,CAAC,IAAI,GAAG;IACd,MAAM,EAAE,YAAY;IACpB,UAAU;CACb,CAAC;AAEF,mDAAmD;AACnD,4CAA4C;AAE5C,4EAA4E;AAC5E,6EAA6E;AAC7E,gDAAgD;AAChD,sEAAsE;AACtE,oDAAoD;AAEpD,sEAAsE;AACtE,yCAAyC;AACzC,gGAAgG;AAChG,4CAA4C;AAC5C,4CAA4C;AAC5C,4CAA4C;AAE5C,iFAAiF;AACjF,0CAA0C;AAE1C,mFAAmF;AACnF,yCAAyC;AACzC,KAAK;AAEQ,QAAA,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,gBAAQ,CAAC,IAAI,GAAG;IACZ,MAAM,EAAE,UAAU;IAClB,UAAU;CACb,CAAC;AAEW,QAAA,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,cAAM,CAAC,IAAI,GAAG;IACV,MAAM,EAAE,QAAQ;IAChB,UAAU;CACb,CAAC;AAEK,MAAM,YAAY,GAAG,CAAC,KAAyB,EAAE,EAAE;IACtD,OAAO,8BAAC,uBAAa,kBAAC,UAAU,EAAE,UAAU,IAAM,KAAK,EAAI,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB","sourcesContent":["import { ComponentMeta, ComponentStory } from '@storybook/react';\nimport BookingWizard, { BookingWizardProps } from '@/components/generic/BookingWizard/BookingWizard';\nimport { Hotel } from '@/models/Client/Hotel/Hotel';\nimport React from 'react';\nimport { rsCompany } from '../../tests/offline/entry/RSCompany';\n\nexport default {\n title: 'generic/BookingWizard',\n component: BookingWizard,\n argTypes: {},\n} as ComponentMeta<typeof BookingWizard>;\n\nconst properties = rsCompany.hotels.reduce((map, hotel) => {\n map[hotel.address.city!] = map[hotel.address.city] || [];\n\n map[hotel.address.city!].push({ id: hotel.hotelID, name: hotel.name });\n\n return map;\n}, {});\n\nconst Template: ComponentStory<typeof BookingWizard> = (args) => <BookingWizard hotels={rsCompany.hotels || []} properties={properties} {...args} />;\n\nexport const Horizontal = Template.bind({});\nHorizontal.args = {\n layout: 'horizontal',\n properties,\n};\n\n// Horizontal.play = async ({ canvasElement }) => {\n// const canvas = within(canvasElement);\n\n// const hotelInput = await canvas.getByPlaceholderText('Choose hotel');\n// const hotelSelectButton = hotelInput.parentElement.querySelector('i');\n// await userEvent.click(hotelSelectButton);\n// const option1 = await canvas.findByText('Hotel Lorem Ipsum 1');\n// await userEvent.click(option1.parentElement);\n\n// const guestInput = await canvas.getByPlaceholderText('Guests');\n// await userEvent.click(guestInput);\n// const addButtons = await canvas.findAllByRole('button', { name: /^\\+$/i, hidden: true });\n// await userEvent.click(addButtons[0]);\n// await userEvent.click(addButtons[0]);\n// await userEvent.click(addButtons[1]);\n\n// const applyButton = await canvas.findByRole('button', { name: /Apply/i });\n// await userEvent.click(applyButton);\n\n// const bookButton = await canvas.findByRole('button', { name: /Book Now/i });\n// await userEvent.click(bookButton);\n// };\n\nexport const Vertical = Template.bind({});\nVertical.args = {\n layout: 'vertical',\n properties,\n};\n\nexport const Button = Template.bind({});\nButton.args = {\n layout: 'button',\n properties,\n};\n\nexport const FixedCompany = (props: BookingWizardProps) => {\n return <BookingWizard properties={properties} {...props} />;\n};\n"]}
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<import("react").FC<{
4
- title?: import("react").ReactNode;
3
+ declare const _default: ComponentMeta<React.FC<{
4
+ title?: React.ReactNode;
5
5
  className?: string;
6
6
  }>>;
7
7
  export default _default;
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.Default = void 0;
4
- const react_1 = require("react");
5
- const Card_1 = require("components/generic/Card/Card/Card");
7
+ const react_1 = __importDefault(require("react"));
8
+ const Card_1 = require("@/components/generic/Card/Card/Card");
6
9
  exports.default = {
7
10
  title: 'generic/Card/Card',
8
11
  component: Card_1.Card,
@@ -1 +1 @@
1
- {"version":3,"file":"Card.stories.js","sourceRoot":"/","sources":["src/stories/Card.stories.tsx"],"names":[],"mappings":";;;AAAA,iCAA0B;AAG1B,4DAAyD;AAEzD,kBAAe;IACX,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,WAAI;IACf,QAAQ,EAAE,EAAE;CACe,CAAC;AAEhC,MAAM,QAAQ,GAAgC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAC,WAAI,oBAAK,IAAI,EAAI,CAAC;AAE9D,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACvB,CAAC","sourcesContent":["import React from 'react';\nimport { ComponentStory, ComponentMeta } from '@storybook/react';\n\nimport { Card } from 'components/generic/Card/Card/Card';\n\nexport default {\n title: 'generic/Card/Card',\n component: Card,\n argTypes: {},\n} as ComponentMeta<typeof Card>;\n\nconst Template: ComponentStory<typeof Card> = (args) => <Card {...args} />;\n\nexport const Default = Template.bind({});\nDefault.args = {\n title: 'Title',\n children: 'Children',\n};\n"]}
1
+ {"version":3,"file":"Card.stories.js","sourceRoot":"/","sources":["src/stories/Card.stories.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,8DAA2D;AAE3D,kBAAe;IACX,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,WAAI;IACf,QAAQ,EAAE,EAAE;CACe,CAAC;AAEhC,MAAM,QAAQ,GAAgC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAC,WAAI,oBAAK,IAAI,EAAI,CAAC;AAE9D,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,eAAO,CAAC,IAAI,GAAG;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACvB,CAAC","sourcesContent":["import React from 'react';\nimport { ComponentStory, ComponentMeta } from '@storybook/react';\n\nimport { Card } from '@/components/generic/Card/Card/Card';\n\nexport default {\n title: 'generic/Card/Card',\n component: Card,\n argTypes: {},\n} as ComponentMeta<typeof Card>;\n\nconst Template: ComponentStory<typeof Card> = (args) => <Card {...args} />;\n\nexport const Default = Template.bind({});\nDefault.args = {\n title: 'Title',\n children: 'Children',\n};\n"]}