@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 +1 @@
1
- {"version":3,"file":"BaseEngine.js","sourceRoot":"/","sources":["src/engines/BaseEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAgE;AAChE,+DAAwD;AAQxD,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,yDAAkC,CAAA;IAClC,4CAAqB,CAAA;AACzB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AACD,MAAsB,UAAU;IAQ5B,YAAY,gBAA6B,EAAE,MAAU;QAarC,UAAK,GAAG,GAAS,EAAE;YAC/B,MAAM,WAAW,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC;YACtF,IAAI,SAAS,GAAQ,IAAI,CAAC;YAC1B,IAAI,WAAW,EAAE;gBACb,IAAI,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;oBAC5B,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;iBAC1C;aACJ;YAED,IAAI,CAAC,eAAe,GAAG,IAAI,yBAAe,EAAE,CAAC;YAC7C,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAS,EAAE;gBACpE,IAAI,CAAC,cAAc,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;gBAC9D,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACrC,CAAC,CAAA,CAAC,CAAC;YAEH,UAAU,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC,MAAM,EAAE,CAAC;YAClB,CAAC,EAAE,CAAC,CAAC,CAAC;QACV,CAAC,CAAA,CAAC;QA9BE,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAElE,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SAC1B;QAED,2BAA2B;QAC3B,6BAAmB,CAAC,eAAe,GAAG,gBAAgB,CAAC;QACvD,6BAAmB,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;IAsBM,iBAAiB;QACpB,IAAI,IAAI,CAAC,cAAc,EAAE;YACrB,OAAO,IAAI,CAAC,cAAc,CAAC;SAC9B;QAED,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAEM,SAAS,CAAC,MAAS;QACtB,kCAAkC;QAClC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;IAC/B,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CAGJ;AApED,gCAoEC","sourcesContent":["import RoomstayThemeEngine from 'providers/RoomstayThemeEngine';\nimport SessionProvider from 'providers/SessionProvider';\nimport { RoomstaySession } from 'models/RoomstaySession';\nimport { ConfigCompany } from 'models/Client/Hotel/Company';\n\nexport interface BaseEngineConfig {\n company: ConfigCompany;\n}\n\nexport enum BookingEngineSource {\n Inline = 'inline',\n RecentSearches = 'recent-searches',\n Fullpage = 'fullpage',\n}\nexport abstract class BaseEngine<C extends BaseEngineConfig> {\n protected source: BookingEngineSource;\n protected readonly bookingContainer: HTMLElement;\n protected sessionProvider: SessionProvider;\n protected initialSession: RoomstaySession;\n\n protected engineConfig: BaseEngineConfig;\n\n constructor(bookingContainer: HTMLElement, config?: C) {\n this.bookingContainer = bookingContainer;\n this.bookingContainer.classList.add('roomstay-booking-container');\n\n if (this.engineConfig) {\n this.setConfig(config);\n }\n\n // TODO: Update these calls\n RoomstayThemeEngine.EngineContainer = bookingContainer;\n RoomstayThemeEngine.init();\n }\n\n public readonly start = async () => {\n const queryParams = new URLSearchParams(window.location.hash.replace(/^#\\/.+\\//, ''));\n let sessionId: any = null;\n if (queryParams) {\n if (queryParams.has('session')) {\n sessionId = queryParams.get('session');\n }\n }\n\n this.sessionProvider = new SessionProvider();\n this.sessionProvider.initialize(sessionId, this.source).then(async () => {\n this.initialSession = await this.sessionProvider.getSession();\n console.log(this.initialSession);\n });\n\n setTimeout(() => {\n this.render();\n }, 1);\n };\n\n public getInitialSession(): RoomstaySession | null {\n if (this.initialSession) {\n return this.initialSession;\n }\n\n console.error('Tried Loading session without engine initializing first.');\n return null;\n }\n\n public getSessionProvider() {\n return this.sessionProvider;\n }\n\n public setConfig(config: C) {\n // TODO: add hook updates in here.\n this.engineConfig = config;\n }\n\n public getConfig() {\n return this.engineConfig;\n }\n\n public getSource(): BookingEngineSource {\n return this.source;\n }\n\n protected abstract render(): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"BaseEngine.js","sourceRoot":"/","sources":["src/engines/BaseEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0FAAkE;AAClE,kFAA0D;AAK1D,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,yDAAkC,CAAA;IAClC,4CAAqB,CAAA;IACrB,uDAAgC,CAAA;AACpC,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B;AACD,MAAsB,UAAU;IAQ5B,YAAY,gBAA6B,EAAE,MAAU;QAarC,UAAK,GAAG,GAAS,EAAE;YAC/B,MAAM,WAAW,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC;YACtF,IAAI,SAAS,GAAQ,IAAI,CAAC;YAC1B,IAAI,WAAW,EAAE;gBACb,IAAI,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;oBAC5B,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;iBAC1C;aACJ;YAED,IAAI,CAAC,eAAe,GAAG,IAAI,yBAAe,EAAE,CAAC;YAC7C,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAS,EAAE;gBACpE,IAAI,CAAC,cAAc,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;gBAC9D,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACrC,CAAC,CAAA,CAAC,CAAC;YAEH,UAAU,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC,MAAM,EAAE,CAAC;YAClB,CAAC,EAAE,CAAC,CAAC,CAAC;QACV,CAAC,CAAA,CAAC;QA9BE,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAElE,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SAC1B;QAED,2BAA2B;QAC3B,6BAAmB,CAAC,eAAe,GAAG,gBAAgB,CAAC;QACvD,6BAAmB,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;IAsBM,iBAAiB;QACpB,IAAI,IAAI,CAAC,cAAc,EAAE;YACrB,OAAO,IAAI,CAAC,cAAc,CAAC;SAC9B;QAED,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAEM,SAAS,CAAC,MAAS;QACtB,kCAAkC;QAClC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;IAC/B,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CAGJ;AApED,gCAoEC","sourcesContent":["import RoomstayThemeEngine from '@/providers/RoomstayThemeEngine';\nimport SessionProvider from '@/providers/SessionProvider';\nimport { RoomstaySession } from '@/models/RoomstaySession';\n\nexport interface BaseEngineConfig {}\n\nexport enum BookingEngineSource {\n Inline = 'inline',\n RecentSearches = 'recent-searches',\n Fullpage = 'fullpage',\n BookingWizard = 'booking-wizard',\n}\nexport abstract class BaseEngine<C extends BaseEngineConfig> {\n protected source: BookingEngineSource;\n protected readonly bookingContainer: HTMLElement;\n protected sessionProvider: SessionProvider;\n protected initialSession: RoomstaySession;\n\n protected engineConfig: C;\n\n constructor(bookingContainer: HTMLElement, config?: C) {\n this.bookingContainer = bookingContainer;\n this.bookingContainer.classList.add('roomstay-booking-container');\n\n if (this.engineConfig) {\n this.setConfig(config);\n }\n\n // TODO: Update these calls\n RoomstayThemeEngine.EngineContainer = bookingContainer;\n RoomstayThemeEngine.init();\n }\n\n public readonly start = async () => {\n const queryParams = new URLSearchParams(window.location.hash.replace(/^#\\/.+\\//, ''));\n let sessionId: any = null;\n if (queryParams) {\n if (queryParams.has('session')) {\n sessionId = queryParams.get('session');\n }\n }\n\n this.sessionProvider = new SessionProvider();\n this.sessionProvider.initialize(sessionId, this.source).then(async () => {\n this.initialSession = await this.sessionProvider.getSession();\n console.log(this.initialSession);\n });\n\n setTimeout(() => {\n this.render();\n }, 1);\n };\n\n public getInitialSession(): RoomstaySession | null {\n if (this.initialSession) {\n return this.initialSession;\n }\n\n console.error('Tried Loading session without engine initializing first.');\n return null;\n }\n\n public getSessionProvider() {\n return this.sessionProvider;\n }\n\n public setConfig(config: C) {\n // TODO: add hook updates in here.\n this.engineConfig = config;\n }\n\n public getConfig() {\n return this.engineConfig;\n }\n\n public getSource(): BookingEngineSource {\n return this.source;\n }\n\n protected abstract render(): Promise<void>;\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import type { BookingWizardContextType } from '@/components/generic/BookingWizard/BookingWizardContext';
2
+ import { BaseEngine, BaseEngineConfig } from '@/engines/BaseEngine';
3
+ import type { BookingWizardProperty } from '@/models/BookingWizard/BookingWizardProperty';
4
+ import type { TBookingWizardProperties } from '@/models/BookingWizard/BookingWizardTypes';
5
+ export interface BookingWizardEngineConfig extends BaseEngineConfig {
6
+ widgetType: 'property' | 'group';
7
+ theme: 'specific' | 'default';
8
+ layout: 'horizontal' | 'vertical' | 'button';
9
+ properties: TBookingWizardProperties;
10
+ selectedProperty?: BookingWizardProperty;
11
+ defaultColors: BookingWizardProperty['colors'];
12
+ onSubmit?: BookingWizardContextType['onSubmit'];
13
+ }
14
+ export declare class BookingWizardEngine extends BaseEngine<BookingWizardEngineConfig> {
15
+ constructor(bookingContainer: HTMLElement, config?: BookingWizardEngineConfig);
16
+ protected render(): Promise<void>;
17
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.BookingWizardEngine = void 0;
16
+ const BaseEngine_1 = require("@/engines/BaseEngine");
17
+ const RoomstayThemeEngine_1 = __importDefault(require("@/providers/RoomstayThemeEngine"));
18
+ const BookingWizardEngineElement_1 = require("./BookingWizardEngineElement");
19
+ class BookingWizardEngine extends BaseEngine_1.BaseEngine {
20
+ constructor(bookingContainer, config) {
21
+ super(bookingContainer, config);
22
+ this.source = BaseEngine_1.BookingEngineSource.BookingWizard;
23
+ }
24
+ render() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ (0, BookingWizardEngineElement_1.renderBookingWizard)(RoomstayThemeEngine_1.default.createElementOrReuseExisting('div', 'booking-wizard'), this);
27
+ });
28
+ }
29
+ }
30
+ exports.BookingWizardEngine = BookingWizardEngine;
31
+ //# sourceMappingURL=BookingWizardEngine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingWizardEngine.js","sourceRoot":"/","sources":["src/engines/BookingWizardEngine/BookingWizardEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,qDAAyF;AAGzF,0FAAkE;AAClE,6EAAmE;AAcnE,MAAa,mBAAoB,SAAQ,uBAAqC;IAC1E,YAAmB,gBAA6B,EAAE,MAAkC;QAChF,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,gCAAmB,CAAC,aAAa,CAAC;IACpD,CAAC;IAEe,MAAM;;YAClB,IAAA,gDAAmB,EAAC,6BAAmB,CAAC,4BAA4B,CAAC,KAAK,EAAE,gBAAgB,CAAC,EAAE,IAAI,CAAC,CAAC;QACzG,CAAC;KAAA;CACJ;AATD,kDASC","sourcesContent":["import type { BookingWizardContextType } from '@/components/generic/BookingWizard/BookingWizardContext';\nimport { BaseEngine, BaseEngineConfig, BookingEngineSource } from '@/engines/BaseEngine';\nimport type { BookingWizardProperty } from '@/models/BookingWizard/BookingWizardProperty';\nimport type { TBookingWizardProperties } from '@/models/BookingWizard/BookingWizardTypes';\nimport RoomstayThemeEngine from '@/providers/RoomstayThemeEngine';\nimport { renderBookingWizard } from './BookingWizardEngineElement';\n\nexport interface BookingWizardEngineConfig extends BaseEngineConfig {\n widgetType: 'property' | 'group';\n theme: 'specific' | 'default';\n layout: 'horizontal' | 'vertical' | 'button';\n\n properties: TBookingWizardProperties;\n selectedProperty?: BookingWizardProperty;\n defaultColors: BookingWizardProperty['colors'];\n\n onSubmit?: BookingWizardContextType['onSubmit'];\n}\n\nexport class BookingWizardEngine extends BaseEngine<BookingWizardEngineConfig> {\n public constructor(bookingContainer: HTMLElement, config?: BookingWizardEngineConfig) {\n super(bookingContainer, config);\n this.source = BookingEngineSource.BookingWizard;\n }\n\n protected async render() {\n renderBookingWizard(RoomstayThemeEngine.createElementOrReuseExisting('div', 'booking-wizard'), this);\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { BookingWizardEngine } from './BookingWizardEngine';
2
+ export interface BookingWizardEngineElementProps {
3
+ engine: BookingWizardEngine;
4
+ }
5
+ export default function BookingWizardEngineElement({ engine }: BookingWizardEngineElementProps): JSX.Element;
6
+ export declare const renderBookingWizard: (container: Element, engine: BookingWizardEngine) => void;
@@ -0,0 +1,54 @@
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.renderBookingWizard = void 0;
30
+ const contexts_1 = require("@frontend/contexts");
31
+ const React = __importStar(require("react"));
32
+ const react_dom_1 = require("react-dom");
33
+ const BookingWizard_1 = __importDefault(require("@/components/generic/BookingWizard/BookingWizard"));
34
+ function BookingWizardEngineElement({ engine }) {
35
+ const engineConfig = engine.getConfig();
36
+ const bwProps = {
37
+ layout: engineConfig.layout,
38
+ theme: engineConfig.theme,
39
+ properties: engineConfig.properties,
40
+ selectedProperty: engineConfig.selectedProperty,
41
+ defaultColors: engineConfig.defaultColors,
42
+ onSubmit: engineConfig.onSubmit,
43
+ };
44
+ // TODO: This will be updated to be configurable (border sizing, padding, etc)
45
+ // const widgetType = engineConfig.widgetType;
46
+ return (React.createElement(contexts_1.BookingEngineContextWrapper, { engine: engine },
47
+ React.createElement(BookingWizard_1.default, Object.assign({}, bwProps))));
48
+ }
49
+ exports.default = BookingWizardEngineElement;
50
+ const renderBookingWizard = (container, engine) => {
51
+ (0, react_dom_1.render)(React.createElement(BookingWizardEngineElement, { engine: engine }), container);
52
+ };
53
+ exports.renderBookingWizard = renderBookingWizard;
54
+ //# sourceMappingURL=BookingWizardEngineElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingWizardEngineElement.js","sourceRoot":"/","sources":["src/engines/BookingWizardEngine/BookingWizardEngineElement.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiE;AACjE,6CAA+B;AAC/B,yCAAmC;AAEnC,qGAAsG;AAOtG,SAAwB,0BAA0B,CAAC,EAAE,MAAM,EAAmC;IAC1F,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAExC,MAAM,OAAO,GAAG;QACZ,MAAM,EAAE,YAAY,CAAC,MAAM;QAC3B,KAAK,EAAE,YAAY,CAAC,KAA4B;QAChD,UAAU,EAAE,YAAY,CAAC,UAAU;QACnC,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;QAC/C,aAAa,EAAE,YAAY,CAAC,aAAa;QACzC,QAAQ,EAAE,YAAY,CAAC,QAAQ;KAClC,CAAC;IAEF,8EAA8E;IAC9E,8CAA8C;IAE9C,OAAO,CACH,oBAAC,sCAA2B,IAAC,MAAM,EAAE,MAAM;QACvC,oBAAC,uBAAa,oBAAK,OAAO,EAAI,CACJ,CACjC,CAAC;AACN,CAAC;AApBD,6CAoBC;AAEM,MAAM,mBAAmB,GAAG,CAAC,SAAkB,EAAE,MAA2B,EAAE,EAAE;IACnF,IAAA,kBAAM,EAAC,oBAAC,0BAA0B,IAAC,MAAM,EAAE,MAAM,GAAI,EAAE,SAAS,CAAC,CAAC;AACtE,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B","sourcesContent":["import { BookingEngineContextWrapper } from '@frontend/contexts';\nimport * as React from 'react';\nimport { render } from 'react-dom';\n\nimport BookingWizard, { EBookingWizardTheme } from '@/components/generic/BookingWizard/BookingWizard';\nimport { BookingWizardEngine } from './BookingWizardEngine';\n\nexport interface BookingWizardEngineElementProps {\n engine: BookingWizardEngine;\n}\n\nexport default function BookingWizardEngineElement({ engine }: BookingWizardEngineElementProps) {\n const engineConfig = engine.getConfig();\n\n const bwProps = {\n layout: engineConfig.layout,\n theme: engineConfig.theme as EBookingWizardTheme,\n properties: engineConfig.properties,\n selectedProperty: engineConfig.selectedProperty,\n defaultColors: engineConfig.defaultColors,\n onSubmit: engineConfig.onSubmit,\n };\n\n // TODO: This will be updated to be configurable (border sizing, padding, etc)\n // const widgetType = engineConfig.widgetType;\n\n return (\n <BookingEngineContextWrapper engine={engine}>\n <BookingWizard {...bwProps} />\n </BookingEngineContextWrapper>\n );\n}\n\nexport const renderBookingWizard = (container: Element, engine: BookingWizardEngine) => {\n render(<BookingWizardEngineElement engine={engine} />, container);\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { BaseEngine, BaseEngineConfig } from 'engines/BaseEngine';
1
+ import { BaseEngine, BaseEngineConfig } from '@/engines/BaseEngine';
2
2
  export declare class CustomEngine extends BaseEngine<BaseEngineConfig> {
3
3
  render(): Promise<void>;
4
4
  }
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CustomEngine = void 0;
13
- const BaseEngine_1 = require("engines/BaseEngine");
13
+ const BaseEngine_1 = require("@/engines/BaseEngine");
14
14
  // Custom engine for custom development using Roomstay functions.
15
15
  class CustomEngine extends BaseEngine_1.BaseEngine {
16
16
  render() {
@@ -1 +1 @@
1
- {"version":3,"file":"CustomEngine.js","sourceRoot":"/","sources":["src/engines/CustomEngine/CustomEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAkE;AAElE,iEAAiE;AACjE,MAAa,YAAa,SAAQ,uBAA4B;IAC7C,MAAM;;YACf,OAAO;QACX,CAAC;KAAA;CACJ;AAJD,oCAIC","sourcesContent":["import { BaseEngine, BaseEngineConfig } from 'engines/BaseEngine';\n\n// Custom engine for custom development using Roomstay functions.\nexport class CustomEngine extends BaseEngine<BaseEngineConfig> {\n public async render() {\n // TODO\n }\n}\n"]}
1
+ {"version":3,"file":"CustomEngine.js","sourceRoot":"/","sources":["src/engines/CustomEngine/CustomEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AAEpE,iEAAiE;AACjE,MAAa,YAAa,SAAQ,uBAA4B;IAC7C,MAAM;;YACf,OAAO;QACX,CAAC;KAAA;CACJ;AAJD,oCAIC","sourcesContent":["import { BaseEngine, BaseEngineConfig } from '@/engines/BaseEngine';\n\n// Custom engine for custom development using Roomstay functions.\nexport class CustomEngine extends BaseEngine<BaseEngineConfig> {\n public async render() {\n // TODO\n }\n}\n"]}
@@ -1,5 +1,9 @@
1
- import { BaseEngine, BaseEngineConfig } from 'engines/BaseEngine';
2
- export declare class FullPageBookingEngine extends BaseEngine<BaseEngineConfig> {
3
- constructor(bookingContainer: HTMLElement, config?: BaseEngineConfig);
1
+ import { BaseEngine, BaseEngineConfig } from '@/engines/BaseEngine';
2
+ import { ConfigCompany } from '@/models/Client/Hotel/Company';
3
+ export interface FullPageBookingEngineConfig extends BaseEngineConfig {
4
+ company: ConfigCompany;
5
+ }
6
+ export declare class FullPageBookingEngine extends BaseEngine<FullPageBookingEngineConfig> {
7
+ constructor(bookingContainer: HTMLElement, config?: FullPageBookingEngineConfig);
4
8
  protected render(): Promise<void>;
5
9
  }
@@ -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,9 +33,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
33
  };
11
34
  Object.defineProperty(exports, "__esModule", { value: true });
12
35
  exports.FullPageBookingEngine = void 0;
13
- const BaseEngine_1 = require("engines/BaseEngine");
14
- const RoomstayThemeEngine_1 = require("providers/RoomstayThemeEngine");
15
- const FullPageBookingEngineElement_1 = require("engines/FullPageBookingEngine/FullPageBookingEngineElement");
36
+ const BaseEngine_1 = require("@/engines/BaseEngine");
37
+ const RoomstayThemeEngine_1 = __importStar(require("@/providers/RoomstayThemeEngine"));
38
+ const FullPageBookingEngineElement_1 = require("@/engines/FullPageBookingEngine/FullPageBookingEngineElement");
16
39
  class FullPageBookingEngine extends BaseEngine_1.BaseEngine {
17
40
  constructor(bookingContainer, config) {
18
41
  super(bookingContainer, config);
@@ -1 +1 @@
1
- {"version":3,"file":"FullPageBookingEngine.js","sourceRoot":"/","sources":["src/engines/FullPageBookingEngine/FullPageBookingEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAuF;AACvF,uEAAmF;AACnF,6GAAiG;AAEjG,MAAa,qBAAsB,SAAQ,uBAA4B;IACnE,YAAmB,gBAA6B,EAAE,MAAyB;QACvE,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,gCAAmB,CAAC,QAAQ,CAAC;IAC/C,CAAC;IAEe,MAAM;;YAClB,IAAI,6BAAmB,CAAC,SAAS,KAAK,mCAAa,CAAC,MAAM,EAAE;gBACxD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;aAClE;YAED,IAAA,kDAAmB,EAAC,6BAAmB,CAAC,4BAA4B,CAAC,KAAK,EAAE,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC;QAC1G,CAAC;KAAA;CACJ;AAbD,sDAaC","sourcesContent":["import { BaseEngine, BaseEngineConfig, BookingEngineSource } from 'engines/BaseEngine';\nimport RoomstayThemeEngine, { RoomstayTheme } from 'providers/RoomstayThemeEngine';\nimport { renderBookingEngine } from 'engines/FullPageBookingEngine/FullPageBookingEngineElement';\n\nexport class FullPageBookingEngine extends BaseEngine<BaseEngineConfig> {\n public constructor(bookingContainer: HTMLElement, config?: BaseEngineConfig) {\n super(bookingContainer, config);\n this.source = BookingEngineSource.Fullpage;\n }\n\n protected async render() {\n if (RoomstayThemeEngine.ThemeType === RoomstayTheme.Medium) {\n this.bookingContainer.classList.toggle('--theme-medium', true);\n }\n\n renderBookingEngine(RoomstayThemeEngine.createElementOrReuseExisting('div', 'fullpage-engine'), this);\n }\n}\n"]}
1
+ {"version":3,"file":"FullPageBookingEngine.js","sourceRoot":"/","sources":["src/engines/FullPageBookingEngine/FullPageBookingEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAyF;AACzF,uFAAqF;AACrF,+GAAmG;AAOnG,MAAa,qBAAsB,SAAQ,uBAAuC;IAC9E,YAAmB,gBAA6B,EAAE,MAAoC;QAClF,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,gCAAmB,CAAC,QAAQ,CAAC;IAC/C,CAAC;IAEe,MAAM;;YAClB,IAAI,6BAAmB,CAAC,SAAS,KAAK,mCAAa,CAAC,MAAM,EAAE;gBACxD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;aAClE;YAED,IAAA,kDAAmB,EAAC,6BAAmB,CAAC,4BAA4B,CAAC,KAAK,EAAE,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC;QAC1G,CAAC;KAAA;CACJ;AAbD,sDAaC","sourcesContent":["import { BaseEngine, BaseEngineConfig, BookingEngineSource } from '@/engines/BaseEngine';\nimport RoomstayThemeEngine, { RoomstayTheme } from '@/providers/RoomstayThemeEngine';\nimport { renderBookingEngine } from '@/engines/FullPageBookingEngine/FullPageBookingEngineElement';\nimport { ConfigCompany } from '@/models/Client/Hotel/Company';\n\nexport interface FullPageBookingEngineConfig extends BaseEngineConfig {\n company: ConfigCompany;\n}\n\nexport class FullPageBookingEngine extends BaseEngine<FullPageBookingEngineConfig> {\n public constructor(bookingContainer: HTMLElement, config?: FullPageBookingEngineConfig) {\n super(bookingContainer, config);\n this.source = BookingEngineSource.Fullpage;\n }\n\n protected async render() {\n if (RoomstayThemeEngine.ThemeType === RoomstayTheme.Medium) {\n this.bookingContainer.classList.toggle('--theme-medium', true);\n }\n\n renderBookingEngine(RoomstayThemeEngine.createElementOrReuseExisting('div', 'fullpage-engine'), this);\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import '../../../assets/scss/main.global.scss';
2
- import type { FullPageBookingEngine } from 'engines/FullPageBookingEngine/FullPageBookingEngine';
2
+ import type { FullPageBookingEngine } from '@/engines/FullPageBookingEngine/FullPageBookingEngine';
3
3
  export interface FullPageBookingEngineElementProps {
4
4
  engine: FullPageBookingEngine;
5
5
  }
@@ -1,13 +1,36 @@
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
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.renderBookingEngine = void 0;
4
27
  require("../../../assets/scss/main.global.scss");
5
- const React = require("react");
28
+ const React = __importStar(require("react"));
6
29
  const react_1 = require("react");
7
30
  const react_dom_1 = require("react-dom");
8
31
  const react_router_dom_1 = require("react-router-dom");
9
32
  const contexts_1 = require("@frontend/contexts");
10
- const FullPageBookingEngineElementEvents_1 = require("engines/FullPageBookingEngine/FullPageBookingEngineElementEvents");
33
+ const FullPageBookingEngineElementEvents_1 = require("@/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents");
11
34
  const contexts_2 = require("@frontend/contexts");
12
35
  function FullPageBookingEngineElement({ engine }) {
13
36
  // TODO: Refactor this to trigger via useEvents hook
@@ -1 +1 @@
1
- {"version":3,"file":"FullPageBookingEngineElement.js","sourceRoot":"/","sources":["src/engines/FullPageBookingEngine/FullPageBookingEngineElement.tsx"],"names":[],"mappings":";;;AAAA,iDAA+C;AAE/C,+BAA+B;AAC/B,iCAAmE;AACnE,yCAAmC;AAEnC,uDAA8C;AAI9C,iDAAmH;AACnH,yHAAsH;AAItH,iDAA4I;AAM5I,SAAwB,4BAA4B,CAAC,EAAE,MAAM,EAAqC;IAC9F,oDAAoD;IACpD,uEAAkC,CAAC,MAAM,GAAG,GAAG,EAAE;QAC7C,cAAc,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,wEAAwE;IACxE,0CAA0C;IAC1C,YAAY;IACZ,4CAA4C;IAC5C,oBAAoB;IACpB,qDAAqD;IACrD,QAAQ;IACR,+BAA+B;IAC/B,UAAU;IAEV,oBAAoB;IACpB,eAAe;IACf,eAAe;IAEf,MAAM,CAAC,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAEvC,OAAO,CACH,oBAAC,gBAAQ,IAAC,QAAQ,EAAE,yCAAK;QACrB,oBAAC,6BAAU;YAMP,oBAAC,sCAA2B,IAAC,MAAM,EAAE,MAAM;gBACvC,oBAAC,qCAA0B;oBACvB,oBAAC,8BAAmB;wBAChB,oBAAC,gCAAqB,IAAC,aAAa,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,OAAO;4BAC5D,oBAAC,uCAA4B;gCACzB,oBAAC,+BAAoB;oCACjB,oBAAC,uCAA4B,OAAG,CACb,CACI,CACX,CACN,CACG,CACH,CAErB,CACN,CACd,CAAC;AACN,CAAC;AA/CD,+CA+CC;AAEM,MAAM,mBAAmB,GAAG,CAAC,SAAkB,EAAE,MAA6B,EAAE,EAAE;IACrF,IAAA,kBAAM,EAAC,oBAAC,4BAA4B,IAAC,MAAM,EAAE,MAAM,GAAI,EAAE,SAAS,CAAC,CAAC;AACxE,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B","sourcesContent":["import '../../../assets/scss/main.global.scss';\n\nimport * as React from 'react';\nimport { Suspense, useCallback, useEffect, useState } from 'react';\nimport { render } from 'react-dom';\n\nimport { HashRouter } from 'react-router-dom';\n\nimport type { FullPageBookingEngine } from 'engines/FullPageBookingEngine/FullPageBookingEngine';\n\nimport { HotelOverridesContextWrapper, ErrorContextWrapper, NotificationContextWrapper } from '@frontend/contexts';\nimport { FullPageBookingEngineElementEvents } from 'engines/FullPageBookingEngine/FullPageBookingEngineElementEvents';\nimport API from 'api/BookingAPI';\nimport LargeLoader from 'components/generic/loader/LargeLoader';\n\nimport { CompanyContextWrapper, BasketContextWrapper, FullPageEngineContextWrapper, BookingEngineContextWrapper } from '@frontend/contexts';\n\nexport interface FullPageBookingEngineElementProps {\n engine: FullPageBookingEngine;\n}\n\nexport default function FullPageBookingEngineElement({ engine }: FullPageBookingEngineElementProps) {\n // TODO: Refactor this to trigger via useEvents hook\n FullPageBookingEngineElementEvents.reload = () => {\n setIncrementor((one) => one + 1);\n };\n\n // const [createdSession, createdSessionSet] = useState<boolean>(false);\n // const setup = useCallback(async () => {\n // try {\n // await API.Session.startSession();\n // } catch (e) {\n // console.error('failed to create session');\n // }\n // createdSessionSet(true);\n // }, []);\n\n // useEffect(() => {\n // setup();\n // }, [setup]);\n\n const [, setIncrementor] = useState(0);\n\n return (\n <Suspense fallback={<></>}>\n <HashRouter>\n {/* {!createdSession ? (\n <div className=\"engine-body\">\n <LargeLoader />\n </div>\n ) : ( */}\n <BookingEngineContextWrapper engine={engine}>\n <NotificationContextWrapper>\n <ErrorContextWrapper>\n <CompanyContextWrapper configCompany={engine.getConfig().company}>\n <HotelOverridesContextWrapper>\n <BasketContextWrapper>\n <FullPageEngineContextWrapper />\n </BasketContextWrapper>\n </HotelOverridesContextWrapper>\n </CompanyContextWrapper>\n </ErrorContextWrapper>\n </NotificationContextWrapper>\n </BookingEngineContextWrapper>\n {/* )} */}\n </HashRouter>\n </Suspense>\n );\n}\n\nexport const renderBookingEngine = (container: Element, engine: FullPageBookingEngine) => {\n render(<FullPageBookingEngineElement engine={engine} />, container);\n};\n"]}
1
+ {"version":3,"file":"FullPageBookingEngineElement.js","sourceRoot":"/","sources":["src/engines/FullPageBookingEngine/FullPageBookingEngineElement.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA+C;AAE/C,6CAA+B;AAC/B,iCAA2C;AAC3C,yCAAmC;AAEnC,uDAA8C;AAI9C,iDAAmH;AACnH,2HAAwH;AAExH,iDAA4I;AAM5I,SAAwB,4BAA4B,CAAC,EAAE,MAAM,EAAqC;IAC9F,oDAAoD;IACpD,uEAAkC,CAAC,MAAM,GAAG,GAAG,EAAE;QAC7C,cAAc,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,wEAAwE;IACxE,0CAA0C;IAC1C,YAAY;IACZ,4CAA4C;IAC5C,oBAAoB;IACpB,qDAAqD;IACrD,QAAQ;IACR,+BAA+B;IAC/B,UAAU;IAEV,oBAAoB;IACpB,eAAe;IACf,eAAe;IAEf,MAAM,CAAC,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAEvC,OAAO,CACH,oBAAC,gBAAQ,IAAC,QAAQ,EAAE,yCAAK;QACrB,oBAAC,6BAAU;YAMP,oBAAC,sCAA2B,IAAC,MAAM,EAAE,MAAM;gBACvC,oBAAC,qCAA0B;oBACvB,oBAAC,8BAAmB;wBAChB,oBAAC,gCAAqB,IAAC,aAAa,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,OAAO;4BAC5D,oBAAC,uCAA4B;gCACzB,oBAAC,+BAAoB;oCACjB,oBAAC,uCAA4B,OAAG,CACb,CACI,CACX,CACN,CACG,CACH,CAErB,CACN,CACd,CAAC;AACN,CAAC;AA/CD,+CA+CC;AAEM,MAAM,mBAAmB,GAAG,CAAC,SAAkB,EAAE,MAA6B,EAAE,EAAE;IACrF,IAAA,kBAAM,EAAC,oBAAC,4BAA4B,IAAC,MAAM,EAAE,MAAM,GAAI,EAAE,SAAS,CAAC,CAAC;AACxE,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B","sourcesContent":["import '../../../assets/scss/main.global.scss';\n\nimport * as React from 'react';\nimport { Suspense, useState } from 'react';\nimport { render } from 'react-dom';\n\nimport { HashRouter } from 'react-router-dom';\n\nimport type { FullPageBookingEngine } from '@/engines/FullPageBookingEngine/FullPageBookingEngine';\n\nimport { HotelOverridesContextWrapper, ErrorContextWrapper, NotificationContextWrapper } from '@frontend/contexts';\nimport { FullPageBookingEngineElementEvents } from '@/engines/FullPageBookingEngine/FullPageBookingEngineElementEvents';\n\nimport { CompanyContextWrapper, BasketContextWrapper, FullPageEngineContextWrapper, BookingEngineContextWrapper } from '@frontend/contexts';\n\nexport interface FullPageBookingEngineElementProps {\n engine: FullPageBookingEngine;\n}\n\nexport default function FullPageBookingEngineElement({ engine }: FullPageBookingEngineElementProps) {\n // TODO: Refactor this to trigger via useEvents hook\n FullPageBookingEngineElementEvents.reload = () => {\n setIncrementor((one) => one + 1);\n };\n\n // const [createdSession, createdSessionSet] = useState<boolean>(false);\n // const setup = useCallback(async () => {\n // try {\n // await API.Session.startSession();\n // } catch (e) {\n // console.error('failed to create session');\n // }\n // createdSessionSet(true);\n // }, []);\n\n // useEffect(() => {\n // setup();\n // }, [setup]);\n\n const [, setIncrementor] = useState(0);\n\n return (\n <Suspense fallback={<></>}>\n <HashRouter>\n {/* {!createdSession ? (\n <div className=\"engine-body\">\n <LargeLoader />\n </div>\n ) : ( */}\n <BookingEngineContextWrapper engine={engine}>\n <NotificationContextWrapper>\n <ErrorContextWrapper>\n <CompanyContextWrapper configCompany={engine.getConfig().company}>\n <HotelOverridesContextWrapper>\n <BasketContextWrapper>\n <FullPageEngineContextWrapper />\n </BasketContextWrapper>\n </HotelOverridesContextWrapper>\n </CompanyContextWrapper>\n </ErrorContextWrapper>\n </NotificationContextWrapper>\n </BookingEngineContextWrapper>\n {/* )} */}\n </HashRouter>\n </Suspense>\n );\n}\n\nexport const renderBookingEngine = (container: Element, engine: FullPageBookingEngine) => {\n render(<FullPageBookingEngineElement engine={engine} />, container);\n};\n"]}
@@ -1,7 +1,11 @@
1
- import { BaseEngine, BaseEngineConfig } from 'engines/BaseEngine';
2
- export declare class InlineRoomMiniEngine extends BaseEngine<BaseEngineConfig> {
1
+ import { BaseEngine, BaseEngineConfig } from '@/engines/BaseEngine';
2
+ import { ConfigCompany } from '@/models/Client/Hotel/Company';
3
+ export interface InlineRoomMiniEngineConfig extends BaseEngineConfig {
4
+ company: ConfigCompany;
5
+ }
6
+ export declare class InlineRoomMiniEngine extends BaseEngine<InlineRoomMiniEngineConfig> {
3
7
  private roomCode;
4
- constructor(bookingContainer: HTMLElement, roomCode: string, config?: BaseEngineConfig);
8
+ constructor(bookingContainer: HTMLElement, roomCode: string, config?: InlineRoomMiniEngineConfig);
5
9
  getRoomCode(): string;
6
10
  protected render(): Promise<void>;
7
11
  }
@@ -8,11 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.InlineRoomMiniEngine = void 0;
13
- const BaseEngine_1 = require("engines/BaseEngine");
14
- const InlineRoomMiniEngineElement_1 = require("engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement");
15
- const RoomstayThemeEngine_1 = require("providers/RoomstayThemeEngine");
16
+ const BaseEngine_1 = require("@/engines/BaseEngine");
17
+ const InlineRoomMiniEngineElement_1 = require("@/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement");
18
+ const RoomstayThemeEngine_1 = __importDefault(require("@/providers/RoomstayThemeEngine"));
16
19
  class InlineRoomMiniEngine extends BaseEngine_1.BaseEngine {
17
20
  constructor(bookingContainer, roomCode, config) {
18
21
  super(bookingContainer, config);
@@ -1 +1 @@
1
- {"version":3,"file":"InlineRoomMiniEngine.js","sourceRoot":"/","sources":["src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAuF;AACvF,0GAA6G;AAC7G,uEAAgE;AAEhE,MAAa,oBAAqB,SAAQ,uBAA4B;IAGlE,YAAY,gBAA6B,EAAE,QAAgB,EAAE,MAAyB;QAClF,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,gCAAmB,CAAC,MAAM,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAEe,MAAM;;YAClB,IAAA,+DAAiC,EAAC,6BAAmB,CAAC,4BAA4B,CAAC,KAAK,EAAE,oBAAoB,CAAC,EAAE,IAAI,CAAC,CAAC;QAC3H,CAAC;KAAA;CACJ;AAhBD,oDAgBC","sourcesContent":["import { BaseEngine, BaseEngineConfig, BookingEngineSource } from 'engines/BaseEngine';\nimport { renderInlineRoomMiniEngineElement } from 'engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement';\nimport RoomstayThemeEngine from 'providers/RoomstayThemeEngine';\n\nexport class InlineRoomMiniEngine extends BaseEngine<BaseEngineConfig> {\n private roomCode: string;\n\n constructor(bookingContainer: HTMLElement, roomCode: string, config?: BaseEngineConfig) {\n super(bookingContainer, config);\n this.source = BookingEngineSource.Inline;\n this.roomCode = roomCode;\n }\n\n public getRoomCode(): string {\n return this.roomCode;\n }\n\n protected async render() {\n renderInlineRoomMiniEngineElement(RoomstayThemeEngine.createElementOrReuseExisting('div', 'inline-mini-engine'), this);\n }\n}\n"]}
1
+ {"version":3,"file":"InlineRoomMiniEngine.js","sourceRoot":"/","sources":["src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qDAAyF;AACzF,4GAA+G;AAC/G,0FAAkE;AAOlE,MAAa,oBAAqB,SAAQ,uBAAsC;IAG5E,YAAY,gBAA6B,EAAE,QAAgB,EAAE,MAAmC;QAC5F,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,gCAAmB,CAAC,MAAM,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAEe,MAAM;;YAClB,IAAA,+DAAiC,EAAC,6BAAmB,CAAC,4BAA4B,CAAC,KAAK,EAAE,oBAAoB,CAAC,EAAE,IAAI,CAAC,CAAC;QAC3H,CAAC;KAAA;CACJ;AAhBD,oDAgBC","sourcesContent":["import { BaseEngine, BaseEngineConfig, BookingEngineSource } from '@/engines/BaseEngine';\nimport { renderInlineRoomMiniEngineElement } from '@/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement';\nimport RoomstayThemeEngine from '@/providers/RoomstayThemeEngine';\nimport { ConfigCompany } from '@/models/Client/Hotel/Company';\n\nexport interface InlineRoomMiniEngineConfig extends BaseEngineConfig {\n company: ConfigCompany;\n}\n\nexport class InlineRoomMiniEngine extends BaseEngine<InlineRoomMiniEngineConfig> {\n private roomCode: string;\n\n constructor(bookingContainer: HTMLElement, roomCode: string, config?: InlineRoomMiniEngineConfig) {\n super(bookingContainer, config);\n this.source = BookingEngineSource.Inline;\n this.roomCode = roomCode;\n }\n\n public getRoomCode(): string {\n return this.roomCode;\n }\n\n protected async render() {\n renderInlineRoomMiniEngineElement(RoomstayThemeEngine.createElementOrReuseExisting('div', 'inline-mini-engine'), this);\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { InlineRoomMiniEngine } from 'engines/InlineRoomMiniEngine/InlineRoomMiniEngine';
1
+ import type { InlineRoomMiniEngine } from '@/engines/InlineRoomMiniEngine/InlineRoomMiniEngine';
2
2
  export interface InlineRoomMiniEngineElementProps {
3
3
  engine: InlineRoomMiniEngine;
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) {
@@ -8,42 +31,45 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
31
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
32
  });
10
33
  };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
11
37
  Object.defineProperty(exports, "__esModule", { value: true });
12
38
  exports.renderInlineRoomMiniEngineElement = void 0;
13
- const React = require("react");
39
+ const React = __importStar(require("react"));
40
+ const react_1 = require("react");
14
41
  const react_dom_1 = require("react-dom");
15
- const BookingAPI_1 = require("api/BookingAPI");
16
- const dayjs = require("dayjs");
17
- const BEButton_1 = require("components/generic/BEButton");
18
- const FloatingDatePicker_1 = require("components/generic/date/FloatingDatePicker");
19
- const Tooltip_1 = require("components/generic/Tooltip/Tooltip");
20
- const StringHelper_1 = require("util/StringHelper");
42
+ const BookingAPI_1 = __importDefault(require("@/api/BookingAPI"));
43
+ const dayjs_1 = __importDefault(require("dayjs"));
44
+ const BEButton_1 = __importDefault(require("@/components/generic/BEButton"));
45
+ const FloatingDatePicker_1 = __importDefault(require("@/components/generic/date/FloatingDatePicker"));
46
+ const Tooltip_1 = __importDefault(require("@/components/generic/Tooltip/Tooltip"));
47
+ const StringHelper_1 = __importDefault(require("@/util/StringHelper"));
21
48
  const Translation_1 = require("translations/Translation");
22
49
  const react_i18next_1 = require("react-i18next");
23
- const Icon_1 = require("components/generic/Icon/Icon");
24
- const Text_1 = require("components/generic/Text");
25
- const Color_1 = require("util/Color");
26
- const DataLayer_1 = require("util/DataLayer");
27
- const RoomRates_1 = require("components/steps/room/roomDetails/roomRates/RoomRates");
28
- const LargeLoader_1 = require("components/generic/loader/LargeLoader");
50
+ const Icon_1 = __importStar(require("@/components/generic/Icon/Icon"));
51
+ const Text_1 = __importStar(require("@/components/generic/Text"));
52
+ const Color_1 = require("@/util/Color");
53
+ const DataLayer_1 = __importStar(require("@/util/DataLayer"));
54
+ const RoomRates_1 = __importDefault(require("@/components/steps/room/roomDetails/roomRates/RoomRates"));
55
+ const LargeLoader_1 = __importDefault(require("@/components/generic/loader/LargeLoader"));
29
56
  const react_router_dom_1 = require("react-router-dom");
30
57
  const NotificationContext_1 = require("contexts/NotificationContext");
31
58
  const ErrorContext_1 = require("contexts/ErrorContext");
32
- const AutoAutoHeight_1 = require("animations/AutoAutoHeight");
33
- const RoomstayThemeEngine_1 = require("providers/RoomstayThemeEngine");
34
- const RatesNotFound_1 = require("components/steps/room/RatesNotFound");
35
- const react_1 = require("react");
36
- const react_use_measure_1 = require("react-use-measure");
37
- const BookNowPayLaterInfoBlock_1 = require("components/generic/BookNowPayLaterInfoBlock");
38
- const StepConfirmation_1 = require("pages/steps/StepConfirmation/StepConfirmation");
39
- const PromoCodeInput_1 = require("components/generic/PromoCodeInput");
40
- const Select_1 = require("components/generic/Select");
59
+ const AutoAutoHeight_1 = __importDefault(require("animations/AutoAutoHeight"));
60
+ const RoomstayThemeEngine_1 = __importDefault(require("@/providers/RoomstayThemeEngine"));
61
+ const RatesNotFound_1 = __importDefault(require("@/components/steps/room/RatesNotFound"));
62
+ const react_use_measure_1 = __importDefault(require("react-use-measure"));
63
+ const BookNowPayLaterInfoBlock_1 = require("@/components/generic/BookNowPayLaterInfoBlock");
64
+ const StepConfirmation_1 = __importDefault(require("@/pages/steps/StepConfirmation/StepConfirmation"));
65
+ const PromoCodeInput_1 = __importDefault(require("@/components/generic/PromoCodeInput"));
66
+ const Select_1 = require("@/components/generic/Select/Select");
41
67
  const hooks_1 = require("@frontend/hooks");
42
- const BasketRow_1 = require("models/BasketRow");
68
+ const BasketRow_1 = __importDefault(require("@/models/BasketRow"));
43
69
  const contexts_1 = require("@frontend/contexts");
44
- const FeaturedPromoFeature_1 = require("providers/feature/FeaturedPromoFeature");
45
- const RoomListSearchEvent_1 = require("events/actions/RoomListSearchEvent");
46
- const Overlay_1 = require("components/generic/Overlay/Overlay");
70
+ const FeaturedPromoFeature_1 = __importDefault(require("@/providers/feature/FeaturedPromoFeature"));
71
+ const RoomListSearchEvent_1 = require("@/events/actions/RoomListSearchEvent");
72
+ const Overlay_1 = require("@/components/generic/Overlay/Overlay");
47
73
  function InlineRoomMiniEngineElement(props) {
48
74
  var _a;
49
75
  const { hotel } = (0, hooks_1.useCurrentHotel)();
@@ -187,8 +213,8 @@ function InlineRoomMiniEngineElement(props) {
187
213
  };
188
214
  if (!(row === null || row === void 0 ? void 0 : row.getArrivalDate()) && !(row === null || row === void 0 ? void 0 : row.getDepartureDate())) {
189
215
  const today = Date.now();
190
- row === null || row === void 0 ? void 0 : row.setStartDate(dayjs(today));
191
- row === null || row === void 0 ? void 0 : row.setEndDate(dayjs(today).add(1, 'day'));
216
+ row === null || row === void 0 ? void 0 : row.setStartDate((0, dayjs_1.default)(today));
217
+ row === null || row === void 0 ? void 0 : row.setEndDate((0, dayjs_1.default)(today).add(1, 'day'));
192
218
  }
193
219
  const isCompact = bounds.width < 1000 ? '--compact' : '';
194
220
  const findRoomsOnClick = () => __awaiter(this, void 0, void 0, function* () {
@@ -200,10 +226,10 @@ function InlineRoomMiniEngineElement(props) {
200
226
  return 'Book Now';
201
227
  };
202
228
  const updateNumberOfAdultsOnChange = (value) => {
203
- updatePeopleValues({ adults: value });
229
+ updatePeopleValues({ adults: +value });
204
230
  };
205
231
  const updateNumberOfChildrenOnChange = (value) => {
206
- updatePeopleValues({ children: value });
232
+ updatePeopleValues({ children: +value });
207
233
  };
208
234
  const updatePromoCode = (code) => {
209
235
  DataLayer_1.default.instance.sendInteraction('Promo Code updated', DataLayer_1.InteractionType.FORM_FIELD, DataLayer_1.InteractionStep.ROOMS);
@@ -246,7 +272,7 @@ function InlineRoomMiniEngineElement(props) {
246
272
  };
247
273
  const maxOccupancy = (_a = hotel === null || hotel === void 0 ? void 0 : hotel.maxOccupancy) !== null && _a !== void 0 ? _a : 1;
248
274
  return (0, react_1.useMemo)(() => {
249
- var _a, _b, _c;
275
+ var _a, _b, _c, _d, _e;
250
276
  return (React.createElement(React.Fragment, null,
251
277
  React.createElement("div", { className: `room-builder-progress ${isCompact}` },
252
278
  React.createElement("div", { className: `u-flex w-100 flex-wrap room-builder-progress--item --current`, ref: ref },
@@ -261,21 +287,21 @@ function InlineRoomMiniEngineElement(props) {
261
287
  React.createElement("span", null, (row === null || row === void 0 ? void 0 : row.getDepartureDate()) ? row.getDepartureDate() : 'Departure Date'))))),
262
288
  React.createElement(Tooltip_1.default, { title: "Update number of adults", wrapperClasses: 'u-w-100@xl-' },
263
289
  React.createElement("div", { className: "room-builder-progress--value --mw-l u-flex justify-content-center" },
264
- React.createElement(Select_1.default, { onChange: updateNumberOfAdultsOnChange, items: [...Array(maxOccupancy - ((row === null || row === void 0 ? void 0 : row.getChildren()) ? row.getChildren() : 0))].map((v, value) => {
290
+ React.createElement(Select_1.Select, { nativeOnMobile: true, options: [...Array(maxOccupancy - ((row === null || row === void 0 ? void 0 : row.getChildren()) ? row.getChildren() : 0))].map((v, value) => {
265
291
  value += 1;
266
292
  return {
267
293
  text: StringHelper_1.default.pluralWithDictAndCount(value, Translation_1.Translation.Step.Date.Adult, t),
268
- value,
294
+ value: value.toString(),
269
295
  };
270
- }) }))),
296
+ }), value: (_a = row === null || row === void 0 ? void 0 : row.getAdults()) === null || _a === void 0 ? void 0 : _a.toString(), onChange: updateNumberOfAdultsOnChange, keyName: "value", labelName: "text" }))),
271
297
  React.createElement(Tooltip_1.default, { title: "Update number of children", wrapperClasses: 'u-w-100@xl-' },
272
298
  React.createElement("div", { className: "room-builder-progress--value --mw-l u-flex justify-content-center" },
273
- React.createElement(Select_1.default, { onChange: updateNumberOfChildrenOnChange, items: [...Array(maxOccupancy + 1 - ((row === null || row === void 0 ? void 0 : row.getAdults()) ? row.getAdults() : 0))].map((v, value) => {
299
+ React.createElement(Select_1.Select, { nativeOnMobile: true, options: [...Array(maxOccupancy + 1 - ((row === null || row === void 0 ? void 0 : row.getAdults()) ? row.getAdults() : 0))].map((v, value) => {
274
300
  return {
275
301
  text: StringHelper_1.default.pluralWithDictAndCount(value, Translation_1.Translation.Step.Date.Child, t),
276
- value,
302
+ value: value.toString(),
277
303
  };
278
- }) }))),
304
+ }), value: (_b = row === null || row === void 0 ? void 0 : row.getChildren()) === null || _b === void 0 ? void 0 : _b.toString(), onChange: updateNumberOfChildrenOnChange, keyName: "value", labelName: "text" }))),
279
305
  React.createElement(Tooltip_1.default, { title: promoCodeTooltip, wrapperClasses: 'u-w-100@xl-' },
280
306
  React.createElement("div", { className: "room-builder-progress--value u-cursor-pointer", ref: thisElement, onClick: openPromoModalOnClick },
281
307
  React.createElement("div", { className: "u-flex align-items-center justify-content-center u-w-100@xl-" },
@@ -284,8 +310,8 @@ function InlineRoomMiniEngineElement(props) {
284
310
  React.createElement(Overlay_1.Overlay, { open: isPromoModalOpen, container: RoomstayThemeEngine_1.default.EngineContainer, followElement: thisElement.current, onClose: setPromoCodeOnClose },
285
311
  React.createElement("div", { className: "u-pad--heavy" },
286
312
  React.createElement("div", null,
287
- React.createElement(PromoCodeInput_1.default, { value: (_a = basketContext.selectedBasketRow) === null || _a === void 0 ? void 0 : _a.getPromoCode(), onChange: changePromoCode, valid: ((_b = basketContext.selectedBasketRow) === null || _b === void 0 ? void 0 : _b.getPromoCodeStatus()) !== 'new'
288
- ? ((_c = basketContext.selectedBasketRow) === null || _c === void 0 ? void 0 : _c.getPromoCodeStatus()) === 'valid'
313
+ React.createElement(PromoCodeInput_1.default, { value: (_c = basketContext.selectedBasketRow) === null || _c === void 0 ? void 0 : _c.getPromoCode(), onChange: changePromoCode, valid: ((_d = basketContext.selectedBasketRow) === null || _d === void 0 ? void 0 : _d.getPromoCodeStatus()) !== 'new'
314
+ ? ((_e = basketContext.selectedBasketRow) === null || _e === void 0 ? void 0 : _e.getPromoCodeStatus()) === 'valid'
289
315
  : null })),
290
316
  React.createElement("div", { className: "u-flex justify-content-end align-items-center u-marg-top" },
291
317
  React.createElement(BEButton_1.default, { isText: true, size: "small", onClick: cancelPromoPopupOnClick }, "Cancel"))))),