@roomstay/frontend 2.1.6 → 2.1.7

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 (872) hide show
  1. package/dist/14.bundle.js +1 -0
  2. package/dist/151.bundle.js +1 -0
  3. package/dist/201.bundle.js +1 -1
  4. package/dist/279.bundle.js +1 -1
  5. package/dist/370.bundle.js +1 -1
  6. package/dist/399.bundle.js +2 -0
  7. package/dist/399.bundle.js.LICENSE.txt +30 -0
  8. package/dist/449.bundle.js +1 -1
  9. package/dist/559.bundle.js +1 -0
  10. package/dist/760.bundle.js +1 -1
  11. package/dist/815.bundle.js +1 -0
  12. package/dist/855.bundle.js +1 -0
  13. package/dist/873.bundle.js +1 -1
  14. package/dist/882.bundle.js +1 -1
  15. package/dist/962.bundle.js +1 -0
  16. package/dist/972.bundle.js +1 -1
  17. package/dist/main.bundle.js +1 -1
  18. package/dist/src/animations/AutoAutoHeight.d.ts +1 -1
  19. package/dist/src/animations/AutoAutoHeight.js +11 -34
  20. package/dist/src/animations/AutoAutoHeight.js.map +1 -1
  21. package/dist/src/animations/Fade.d.ts +1 -1
  22. package/dist/src/animations/Fade.js +3 -4
  23. package/dist/src/animations/Fade.js.map +1 -1
  24. package/dist/src/api/AddonAPI.js +3 -2
  25. package/dist/src/api/AddonAPI.js.map +1 -1
  26. package/dist/src/api/AvailabilityAPI.d.ts +2 -2
  27. package/dist/src/api/AvailabilityAPI.js +6 -6
  28. package/dist/src/api/AvailabilityAPI.js.map +1 -1
  29. package/dist/src/api/BaseAPI.d.ts +4 -4
  30. package/dist/src/api/BaseAPI.js +30 -24
  31. package/dist/src/api/BaseAPI.js.map +1 -1
  32. package/dist/src/api/ExchangeRateAPI.d.ts +1 -1
  33. package/dist/src/api/ExchangeRateAPI.js.map +1 -1
  34. package/dist/src/api/HotelAPI.js +1 -1
  35. package/dist/src/api/HotelAPI.js.map +1 -1
  36. package/dist/src/api/ReservationAPI.d.ts +1 -1
  37. package/dist/src/api/ReservationAPI.js +2 -1
  38. package/dist/src/api/ReservationAPI.js.map +1 -1
  39. package/dist/src/api/SessionAPI.d.ts +1 -1
  40. package/dist/src/api/SessionAPI.js +2 -2
  41. package/dist/src/api/SessionAPI.js.map +1 -1
  42. package/dist/src/components/User/Forms/ForgotPasswordForm.js +19 -23
  43. package/dist/src/components/User/Forms/ForgotPasswordForm.js.map +1 -1
  44. package/dist/src/components/User/Forms/SignInForm.js +50 -52
  45. package/dist/src/components/User/Forms/SignInForm.js.map +1 -1
  46. package/dist/src/components/User/Forms/SignUpForm.js +61 -62
  47. package/dist/src/components/User/Forms/SignUpForm.js.map +1 -1
  48. package/dist/src/components/generic/Alert.js +3 -26
  49. package/dist/src/components/generic/Alert.js.map +1 -1
  50. package/dist/src/components/generic/BEButton.d.ts +1 -1
  51. package/dist/src/components/generic/BEButton.js +8 -7
  52. package/dist/src/components/generic/BEButton.js.map +1 -1
  53. package/dist/src/components/generic/BESelect.d.ts +0 -0
  54. package/dist/src/components/generic/BESelect.js +2 -0
  55. package/dist/src/components/generic/BESelect.js.map +1 -0
  56. package/dist/src/components/generic/BackButton.js +2 -26
  57. package/dist/src/components/generic/BackButton.js.map +1 -1
  58. package/dist/src/components/generic/BookNowPayLaterInfoBlock.d.ts +2 -1
  59. package/dist/src/components/generic/BookNowPayLaterInfoBlock.js +9 -9
  60. package/dist/src/components/generic/BookNowPayLaterInfoBlock.js.map +1 -1
  61. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.d.ts +1 -3
  62. package/dist/src/components/generic/BookingWizard/BookingWizardBottomSheet/BookingWizardBottomSheet.js.map +1 -1
  63. package/dist/src/components/generic/BookingWizard/BookingWizardContent.js +1 -1
  64. package/dist/src/components/generic/BookingWizard/BookingWizardContent.js.map +1 -1
  65. package/dist/src/components/generic/BookingWizard/BookingWizardContext.d.ts +1 -1
  66. package/dist/src/components/generic/BookingWizard/BookingWizardContext.js +1 -1
  67. package/dist/src/components/generic/BookingWizard/BookingWizardContext.js.map +1 -1
  68. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js +6 -4
  69. package/dist/src/components/generic/BookingWizard/BookingWizardDateSelector/BookingWizardDateSelector.js.map +1 -1
  70. package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js +1 -1
  71. package/dist/src/components/generic/BookingWizard/BookingWizardGuestSelector/BookingWizardGuestSelector.js.map +1 -1
  72. package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js +5 -4
  73. package/dist/src/components/generic/BookingWizard/BookingWizardHotelSelector/BookingWizardHotelSelector.js.map +1 -1
  74. package/dist/src/components/generic/Card/Card/Card.js +4 -27
  75. package/dist/src/components/generic/Card/Card/Card.js.map +1 -1
  76. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.d.ts +1 -1
  77. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js +8 -8
  78. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js.map +1 -1
  79. package/dist/src/components/generic/Checkbox/Checkbox.d.ts +1 -1
  80. package/dist/src/components/generic/Checkbox/Checkbox.js +8 -8
  81. package/dist/src/components/generic/Checkbox/Checkbox.js.map +1 -1
  82. package/dist/src/components/generic/Countdown.js +6 -29
  83. package/dist/src/components/generic/Countdown.js.map +1 -1
  84. package/dist/src/components/generic/Currency.js +10 -10
  85. package/dist/src/components/generic/Currency.js.map +1 -1
  86. package/dist/src/components/generic/DateRangePicker/DateRangePicker.d.ts +3 -3
  87. package/dist/src/components/generic/DateRangePicker/DateRangePicker.js +28 -28
  88. package/dist/src/components/generic/DateRangePicker/DateRangePicker.js.map +1 -1
  89. package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.d.ts +13 -7
  90. package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.js +4 -39
  91. package/dist/src/components/generic/DateRangePicker/DateRangePickerContext.js.map +1 -1
  92. package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.js +18 -16
  93. package/dist/src/components/generic/DateRangePicker/DateRangePickerDay.js.map +1 -1
  94. package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.js +4 -27
  95. package/dist/src/components/generic/DateRangePicker/DateRangePickerDays.js.map +1 -1
  96. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js +10 -10
  97. package/dist/src/components/generic/DateRangePicker/DateRangePickerMonth.js.map +1 -1
  98. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.d.ts +3 -3
  99. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js +13 -36
  100. package/dist/src/components/generic/DateRangePicker/FloatingDateRangePicker.js.map +1 -1
  101. package/dist/src/components/generic/Distance.js +5 -28
  102. package/dist/src/components/generic/Distance.js.map +1 -1
  103. package/dist/src/components/generic/ForwardedSelect.d.ts +1 -1
  104. package/dist/src/components/generic/ForwardedSelect.js +9 -29
  105. package/dist/src/components/generic/ForwardedSelect.js.map +1 -1
  106. package/dist/src/components/generic/Headline.d.ts +1 -1
  107. package/dist/src/components/generic/Headline.js +5 -30
  108. package/dist/src/components/generic/Headline.js.map +1 -1
  109. package/dist/src/components/generic/Icon/Icon.js +5 -28
  110. package/dist/src/components/generic/Icon/Icon.js.map +1 -1
  111. package/dist/src/components/generic/IconText/IconText.js +5 -4
  112. package/dist/src/components/generic/IconText/IconText.js.map +1 -1
  113. package/dist/src/components/generic/InputGroup/InputGroup.js +6 -29
  114. package/dist/src/components/generic/InputGroup/InputGroup.js.map +1 -1
  115. package/dist/src/components/generic/LineBreak.js +2 -25
  116. package/dist/src/components/generic/LineBreak.js.map +1 -1
  117. package/dist/src/components/generic/Notification.d.ts +2 -3
  118. package/dist/src/components/generic/Notification.js +16 -13
  119. package/dist/src/components/generic/Notification.js.map +1 -1
  120. package/dist/src/components/generic/NumberIncrement.js +10 -10
  121. package/dist/src/components/generic/NumberIncrement.js.map +1 -1
  122. package/dist/src/components/generic/Overlay/Overlay.d.ts +3 -3
  123. package/dist/src/components/generic/Overlay/Overlay.js +16 -40
  124. package/dist/src/components/generic/Overlay/Overlay.js.map +1 -1
  125. package/dist/src/components/generic/PasswordBox/PasswordBox.d.ts +1 -1
  126. package/dist/src/components/generic/PasswordBox/PasswordBox.js +8 -8
  127. package/dist/src/components/generic/PasswordBox/PasswordBox.js.map +1 -1
  128. package/dist/src/components/generic/PaymentCard/CardTypeSelect.js +9 -28
  129. package/dist/src/components/generic/PaymentCard/CardTypeSelect.js.map +1 -1
  130. package/dist/src/components/generic/PaymentCard/PaymentCard.js +18 -41
  131. package/dist/src/components/generic/PaymentCard/PaymentCard.js.map +1 -1
  132. package/dist/src/components/generic/PaymentCard/PaymentCardInput.js +66 -51
  133. package/dist/src/components/generic/PaymentCard/PaymentCardInput.js.map +1 -1
  134. package/dist/src/components/generic/Pill.d.ts +1 -1
  135. package/dist/src/components/generic/Pill.js +4 -27
  136. package/dist/src/components/generic/Pill.js.map +1 -1
  137. package/dist/src/components/generic/Placeholder.js +4 -27
  138. package/dist/src/components/generic/Placeholder.js.map +1 -1
  139. package/dist/src/components/generic/PlanpayButton/PlanpayButton.js +2 -25
  140. package/dist/src/components/generic/PlanpayButton/PlanpayButton.js.map +1 -1
  141. package/dist/src/components/generic/Portal/Portal.d.ts +1 -1
  142. package/dist/src/components/generic/Portal/Portal.js +4 -24
  143. package/dist/src/components/generic/Portal/Portal.js.map +1 -1
  144. package/dist/src/components/generic/PromoCodeInput.js +27 -28
  145. package/dist/src/components/generic/PromoCodeInput.js.map +1 -1
  146. package/dist/src/components/generic/RadioButtonGroup/RadioButton.js +9 -32
  147. package/dist/src/components/generic/RadioButtonGroup/RadioButton.js.map +1 -1
  148. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.d.ts +6 -6
  149. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js +6 -29
  150. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  151. package/dist/src/components/generic/RecentSearchesCard.js +19 -18
  152. package/dist/src/components/generic/RecentSearchesCard.js.map +1 -1
  153. package/dist/src/components/generic/RoomstayMark.d.ts +1 -0
  154. package/dist/src/components/generic/RoomstayMark.js +49 -0
  155. package/dist/src/components/generic/RoomstayMark.js.map +1 -0
  156. package/dist/src/components/generic/ScrollToTop.d.ts +2 -0
  157. package/dist/src/components/generic/ScrollToTop.js +3 -3
  158. package/dist/src/components/generic/ScrollToTop.js.map +1 -1
  159. package/dist/src/components/generic/Select/Select.d.ts +4 -4
  160. package/dist/src/components/generic/Select/Select.js +16 -6
  161. package/dist/src/components/generic/Select/Select.js.map +1 -1
  162. package/dist/src/components/generic/Select.d.ts +0 -0
  163. package/dist/src/components/generic/Select.js +2 -0
  164. package/dist/src/components/generic/Select.js.map +1 -0
  165. package/dist/src/components/generic/Slider/Slider.d.ts +3 -3
  166. package/dist/src/components/generic/Slider/Slider.js +23 -45
  167. package/dist/src/components/generic/Slider/Slider.js.map +1 -1
  168. package/dist/src/components/generic/Tabs/ElementChildren.d.ts +1 -1
  169. package/dist/src/components/generic/Tabs/ElementChildren.js +6 -26
  170. package/dist/src/components/generic/Tabs/ElementChildren.js.map +1 -1
  171. package/dist/src/components/generic/Tabs/Tab.d.ts +1 -1
  172. package/dist/src/components/generic/Tabs/Tab.js +4 -24
  173. package/dist/src/components/generic/Tabs/Tab.js.map +1 -1
  174. package/dist/src/components/generic/Tabs/TabContext.d.ts +5 -6
  175. package/dist/src/components/generic/Tabs/TabContext.js +11 -31
  176. package/dist/src/components/generic/Tabs/TabContext.js.map +1 -1
  177. package/dist/src/components/generic/Tabs/TabLink.d.ts +1 -1
  178. package/dist/src/components/generic/Tabs/TabLink.js +7 -30
  179. package/dist/src/components/generic/Tabs/TabLink.js.map +1 -1
  180. package/dist/src/components/generic/Tabs/TabRouteContainer.js +10 -33
  181. package/dist/src/components/generic/Tabs/TabRouteContainer.js.map +1 -1
  182. package/dist/src/components/generic/Tabs/Tabs.d.ts +2 -2
  183. package/dist/src/components/generic/Tabs/Tabs.js +9 -32
  184. package/dist/src/components/generic/Tabs/Tabs.js.map +1 -1
  185. package/dist/src/components/generic/Text.d.ts +1 -1
  186. package/dist/src/components/generic/Text.js +3 -26
  187. package/dist/src/components/generic/Text.js.map +1 -1
  188. package/dist/src/components/generic/TextArea.d.ts +1 -1
  189. package/dist/src/components/generic/TextArea.js +6 -26
  190. package/dist/src/components/generic/TextArea.js.map +1 -1
  191. package/dist/src/components/generic/TextBox.d.ts +2 -2
  192. package/dist/src/components/generic/TextBox.js +11 -34
  193. package/dist/src/components/generic/TextBox.js.map +1 -1
  194. package/dist/src/components/generic/Tooltip/Tooltip.d.ts +1 -1
  195. package/dist/src/components/generic/Tooltip/Tooltip.js +8 -31
  196. package/dist/src/components/generic/Tooltip/Tooltip.js.map +1 -1
  197. package/dist/src/components/generic/badging/SSLSecureBadge.js +3 -26
  198. package/dist/src/components/generic/badging/SSLSecureBadge.js.map +1 -1
  199. package/dist/src/components/generic/buttons/NextStepButton.js +5 -28
  200. package/dist/src/components/generic/buttons/NextStepButton.js.map +1 -1
  201. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.d.ts +3 -4
  202. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +23 -32
  203. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -1
  204. package/dist/src/components/generic/date/DatePicker.js +42 -42
  205. package/dist/src/components/generic/date/DatePicker.js.map +1 -1
  206. package/dist/src/components/generic/date/DatePickerDay.js +27 -27
  207. package/dist/src/components/generic/date/DatePickerDay.js.map +1 -1
  208. package/dist/src/components/generic/date/DatePickerDays.js +4 -27
  209. package/dist/src/components/generic/date/DatePickerDays.js.map +1 -1
  210. package/dist/src/components/generic/date/DatePickerMonth.js +9 -9
  211. package/dist/src/components/generic/date/DatePickerMonth.js.map +1 -1
  212. package/dist/src/components/generic/date/DatePickerWeek.js +26 -26
  213. package/dist/src/components/generic/date/DatePickerWeek.js.map +1 -1
  214. package/dist/src/components/generic/date/FloatingDatePicker.d.ts +1 -1
  215. package/dist/src/components/generic/date/FloatingDatePicker.js +11 -11
  216. package/dist/src/components/generic/date/FloatingDatePicker.js.map +1 -1
  217. package/dist/src/components/generic/date/WeekViewSkeleton.js +23 -46
  218. package/dist/src/components/generic/date/WeekViewSkeleton.js.map +1 -1
  219. package/dist/src/components/generic/loader/ImageLoader.d.ts +1 -1
  220. package/dist/src/components/generic/loader/ImageLoader.js +8 -8
  221. package/dist/src/components/generic/loader/ImageLoader.js.map +1 -1
  222. package/dist/src/components/generic/loader/LargeLoader.js +15 -38
  223. package/dist/src/components/generic/loader/LargeLoader.js.map +1 -1
  224. package/dist/src/components/generic/loader/SmallSpinner.js +6 -3
  225. package/dist/src/components/generic/loader/SmallSpinner.js.map +1 -1
  226. package/dist/src/components/generic/map/HotelLocationMap.js +3 -26
  227. package/dist/src/components/generic/map/HotelLocationMap.js.map +1 -1
  228. package/dist/src/components/generic/modal/ConfirmationModal.js +8 -8
  229. package/dist/src/components/generic/modal/ConfirmationModal.js.map +1 -1
  230. package/dist/src/components/generic/modal/ErrorModal.d.ts +2 -2
  231. package/dist/src/components/generic/modal/ErrorModal.js +5 -5
  232. package/dist/src/components/generic/modal/ErrorModal.js.map +1 -1
  233. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.d.ts +3 -2
  234. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js +16 -16
  235. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js.map +1 -1
  236. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.d.ts +1 -1
  237. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js +26 -26
  238. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js.map +1 -1
  239. package/dist/src/components/generic/modal/SimpleModal.d.ts +2 -2
  240. package/dist/src/components/generic/modal/SimpleModal.js +21 -22
  241. package/dist/src/components/generic/modal/SimpleModal.js.map +1 -1
  242. package/dist/src/components/generic/modal/TabbedModal.d.ts +1 -1
  243. package/dist/src/components/generic/modal/TabbedModal.js +12 -12
  244. package/dist/src/components/generic/modal/TabbedModal.js.map +1 -1
  245. package/dist/src/components/generic/radio/RadioFields.js +11 -11
  246. package/dist/src/components/generic/radio/RadioFields.js.map +1 -1
  247. package/dist/src/components/iconComponents/BookNowPayLaterIcon.js +16 -36
  248. package/dist/src/components/iconComponents/BookNowPayLaterIcon.js.map +1 -1
  249. package/dist/src/components/members/EditMyProfile.d.ts +1 -1
  250. package/dist/src/components/members/EditMyProfile.js +35 -59
  251. package/dist/src/components/members/EditMyProfile.js.map +1 -1
  252. package/dist/src/components/navigation/Header.js +69 -64
  253. package/dist/src/components/navigation/Header.js.map +1 -1
  254. package/dist/src/components/navigation/StepSelector.js +27 -27
  255. package/dist/src/components/navigation/StepSelector.js.map +1 -1
  256. package/dist/src/components/navigation/StepSelectorModal.js +14 -13
  257. package/dist/src/components/navigation/StepSelectorModal.js.map +1 -1
  258. package/dist/src/components/pages/Account/Card/CardList.js +10 -33
  259. package/dist/src/components/pages/Account/Card/CardList.js.map +1 -1
  260. package/dist/src/components/pages/Account/Card/MemberCardItem.js +10 -10
  261. package/dist/src/components/pages/Account/Card/MemberCardItem.js.map +1 -1
  262. package/dist/src/components/pages/PageColorComponent.js +4 -27
  263. package/dist/src/components/pages/PageColorComponent.js.map +1 -1
  264. package/dist/src/components/reservation/EmptyReservation.d.ts +6 -0
  265. package/dist/src/components/reservation/EmptyReservation.js +52 -0
  266. package/dist/src/components/reservation/EmptyReservation.js.map +1 -0
  267. package/dist/src/components/reservation/ReservationItem.js +56 -56
  268. package/dist/src/components/reservation/ReservationItem.js.map +1 -1
  269. package/dist/src/components/reservation/ReservationList.d.ts +3 -2
  270. package/dist/src/components/reservation/ReservationList.js +7 -26
  271. package/dist/src/components/reservation/ReservationList.js.map +1 -1
  272. package/dist/src/components/steps/DaysSelectedInformer.js +9 -6
  273. package/dist/src/components/steps/DaysSelectedInformer.js.map +1 -1
  274. package/dist/src/components/steps/MinimumNightStayPill.d.ts +1 -1
  275. package/dist/src/components/steps/MinimumNightStayPill.js +8 -8
  276. package/dist/src/components/steps/MinimumNightStayPill.js.map +1 -1
  277. package/dist/src/components/steps/addons/AddonCard.js +59 -58
  278. package/dist/src/components/steps/addons/AddonCard.js.map +1 -1
  279. package/dist/src/components/steps/addons/AddonList.js +16 -39
  280. package/dist/src/components/steps/addons/AddonList.js.map +1 -1
  281. package/dist/src/components/steps/addons/AddonsNotFound.js +38 -61
  282. package/dist/src/components/steps/addons/AddonsNotFound.js.map +1 -1
  283. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +1 -1
  284. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js +19 -19
  285. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js.map +1 -1
  286. package/dist/src/components/steps/confirmation/AccountDetails.js +11 -34
  287. package/dist/src/components/steps/confirmation/AccountDetails.js.map +1 -1
  288. package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js +5 -27
  289. package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js.map +1 -1
  290. package/dist/src/components/steps/confirmation/PaymentDetails/CardPaymentDetails.js +1 -0
  291. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js +12 -32
  292. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js.map +1 -1
  293. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.d.ts +1 -1
  294. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js +26 -25
  295. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js.map +1 -1
  296. package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js +35 -58
  297. package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js.map +1 -1
  298. package/dist/src/components/steps/confirmation/RoomContactDetails.js +72 -68
  299. package/dist/src/components/steps/confirmation/RoomContactDetails.js.map +1 -1
  300. package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js +14 -14
  301. package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js.map +1 -1
  302. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js +36 -35
  303. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js.map +1 -1
  304. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js +7 -30
  305. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js.map +1 -1
  306. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.d.ts +2 -2
  307. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +29 -24
  308. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -1
  309. package/dist/src/components/steps/confirmation/StepConfirmationForm.js +94 -89
  310. package/dist/src/components/steps/confirmation/StepConfirmationForm.js.map +1 -1
  311. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js +3 -26
  312. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js.map +1 -1
  313. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js +13 -13
  314. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js.map +1 -1
  315. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js +16 -16
  316. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js.map +1 -1
  317. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js +25 -20
  318. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js.map +1 -1
  319. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js +26 -26
  320. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js.map +1 -1
  321. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js +13 -9
  322. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js.map +1 -1
  323. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js +61 -61
  324. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js.map +1 -1
  325. package/dist/src/components/steps/date/PeoplePicker.js +11 -7
  326. package/dist/src/components/steps/date/PeoplePicker.js.map +1 -1
  327. package/dist/src/components/steps/date/PeoplePickerRow.js +18 -18
  328. package/dist/src/components/steps/date/PeoplePickerRow.js.map +1 -1
  329. package/dist/src/components/steps/date/StepDatePricePerRoom.js +16 -16
  330. package/dist/src/components/steps/date/StepDatePricePerRoom.js.map +1 -1
  331. package/dist/src/components/steps/date/StepOneDateRange.js +10 -10
  332. package/dist/src/components/steps/date/StepOneDateRange.js.map +1 -1
  333. package/dist/src/components/steps/date/StepOneDateRangePicker.js +6 -6
  334. package/dist/src/components/steps/date/StepOneDateRangePicker.js.map +1 -1
  335. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js +6 -6
  336. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js.map +1 -1
  337. package/dist/src/components/steps/date/StepOneNextStepButton.js +5 -5
  338. package/dist/src/components/steps/date/StepOneNextStepButton.js.map +1 -1
  339. package/dist/src/components/steps/date/StepOneStatusPeople.js +4 -27
  340. package/dist/src/components/steps/date/StepOneStatusPeople.js.map +1 -1
  341. package/dist/src/components/steps/hotel/HotelCard.js +56 -56
  342. package/dist/src/components/steps/hotel/HotelCard.js.map +1 -1
  343. package/dist/src/components/steps/hotel/HotelCardList.js +5 -28
  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 +45 -45
  347. package/dist/src/components/steps/hotel/HotelCardModal.js.map +1 -1
  348. package/dist/src/components/steps/hotel/HotelSearchParameters.js +40 -40
  349. package/dist/src/components/steps/hotel/HotelSearchParameters.js.map +1 -1
  350. package/dist/src/components/steps/hotel/NoHotelsAvailable.js +57 -80
  351. package/dist/src/components/steps/hotel/NoHotelsAvailable.js.map +1 -1
  352. package/dist/src/components/steps/room/AvailableUpgradesModal.d.ts +2 -1
  353. package/dist/src/components/steps/room/AvailableUpgradesModal.js +40 -42
  354. package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -1
  355. package/dist/src/components/steps/room/ImageGallerySlider.js +21 -21
  356. package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -1
  357. package/dist/src/components/steps/room/InactivityWindow.js +20 -20
  358. package/dist/src/components/steps/room/InactivityWindow.js.map +1 -1
  359. package/dist/src/components/steps/room/LargeRoomCard.js +36 -35
  360. package/dist/src/components/steps/room/LargeRoomCard.js.map +1 -1
  361. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js +44 -48
  362. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js.map +1 -1
  363. package/dist/src/components/steps/room/NoRoomsFoundBlock.js +52 -52
  364. package/dist/src/components/steps/room/NoRoomsFoundBlock.js.map +1 -1
  365. package/dist/src/components/steps/room/RatesNotFound.js +39 -62
  366. package/dist/src/components/steps/room/RatesNotFound.js.map +1 -1
  367. package/dist/src/components/steps/room/RoomList.js +13 -36
  368. package/dist/src/components/steps/room/RoomList.js.map +1 -1
  369. package/dist/src/components/steps/room/RoomListAlert.d.ts +1 -1
  370. package/dist/src/components/steps/room/RoomListAlert.js +11 -34
  371. package/dist/src/components/steps/room/RoomListAlert.js.map +1 -1
  372. package/dist/src/components/steps/room/RoomListCrossSellBlock.d.ts +2 -1
  373. package/dist/src/components/steps/room/RoomListCrossSellBlock.js +38 -38
  374. package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -1
  375. package/dist/src/components/steps/room/RoomModal.js +32 -32
  376. package/dist/src/components/steps/room/RoomModal.js.map +1 -1
  377. package/dist/src/components/steps/room/StepRoomAlertBlocks.js +9 -9
  378. package/dist/src/components/steps/room/StepRoomAlertBlocks.js.map +1 -1
  379. package/dist/src/components/steps/room/StepRoomBestRateAlert.js +6 -6
  380. package/dist/src/components/steps/room/StepRoomBestRateAlert.js.map +1 -1
  381. package/dist/src/components/steps/room/StepRoomErrorForm.js +34 -34
  382. package/dist/src/components/steps/room/StepRoomErrorForm.js.map +1 -1
  383. package/dist/src/components/steps/room/StepRoomHotelDetails.js +18 -18
  384. package/dist/src/components/steps/room/StepRoomHotelDetails.js.map +1 -1
  385. package/dist/src/components/steps/room/StepRoomNextStepButton.js +4 -4
  386. package/dist/src/components/steps/room/StepRoomNextStepButton.js.map +1 -1
  387. package/dist/src/components/steps/room/StepRoomSortBy.js +6 -6
  388. package/dist/src/components/steps/room/StepRoomSortBy.js.map +1 -1
  389. package/dist/src/components/steps/room/StepRoomSummaryAndButton.js +15 -38
  390. package/dist/src/components/steps/room/StepRoomSummaryAndButton.js.map +1 -1
  391. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js +2 -25
  392. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js.map +1 -1
  393. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js +2 -25
  394. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js.map +1 -1
  395. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js +9 -9
  396. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js.map +1 -1
  397. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +71 -69
  398. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js.map +1 -1
  399. package/dist/src/components/steps/room/roomDetails/RoomDetails.js +42 -39
  400. package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -1
  401. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +18 -15
  402. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js.map +1 -1
  403. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js +6 -7
  404. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js.map +1 -1
  405. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js +16 -16
  406. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js.map +1 -1
  407. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.d.ts +1 -1
  408. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js +37 -36
  409. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js.map +1 -1
  410. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js +8 -31
  411. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js.map +1 -1
  412. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +26 -26
  413. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js.map +1 -1
  414. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +43 -43
  415. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js.map +1 -1
  416. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +34 -34
  417. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js.map +1 -1
  418. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js +8 -8
  419. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js.map +1 -1
  420. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js +11 -11
  421. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js.map +1 -1
  422. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js +8 -10
  423. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js.map +1 -1
  424. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +32 -32
  425. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js.map +1 -1
  426. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js +16 -39
  427. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js.map +1 -1
  428. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js +10 -9
  429. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js.map +1 -1
  430. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js +32 -31
  431. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js.map +1 -1
  432. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +1 -1
  433. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js +20 -21
  434. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js.map +1 -1
  435. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +1 -1
  436. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js +17 -17
  437. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js.map +1 -1
  438. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +1 -1
  439. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js +20 -18
  440. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js.map +1 -1
  441. package/dist/src/components/summary/BEMapWidget.d.ts +1 -1
  442. package/dist/src/components/summary/BEMapWidget.js +29 -27
  443. package/dist/src/components/summary/BEMapWidget.js.map +1 -1
  444. package/dist/src/components/summary/BEMobileSummary.js +22 -22
  445. package/dist/src/components/summary/BEMobileSummary.js.map +1 -1
  446. package/dist/src/components/summary/BEMobileSummaryModal.js +62 -60
  447. package/dist/src/components/summary/BEMobileSummaryModal.js.map +1 -1
  448. package/dist/src/components/summary/BESummary.js +42 -41
  449. package/dist/src/components/summary/BESummary.js.map +1 -1
  450. package/dist/src/components/summary/BESummaryAddonRow.js +18 -18
  451. package/dist/src/components/summary/BESummaryAddonRow.js.map +1 -1
  452. package/dist/src/components/summary/BESummaryPerkBlock.js +11 -11
  453. package/dist/src/components/summary/BESummaryPerkBlock.js.map +1 -1
  454. package/dist/src/components/summary/BESummaryPrivacyPolicy.js +11 -8
  455. package/dist/src/components/summary/BESummaryPrivacyPolicy.js.map +1 -1
  456. package/dist/src/components/summary/BESummaryRoomRow.js +57 -57
  457. package/dist/src/components/summary/BESummaryRoomRow.js.map +1 -1
  458. package/dist/src/components/summary/TransportDistanceFromHotelBlock.js +12 -12
  459. package/dist/src/components/summary/TransportDistanceFromHotelBlock.js.map +1 -1
  460. package/dist/src/components/temp/Login.js +29 -29
  461. package/dist/src/components/temp/Login.js.map +1 -1
  462. package/dist/src/containers/PrivateRoute.js +6 -26
  463. package/dist/src/containers/PrivateRoute.js.map +1 -1
  464. package/dist/src/contexts/BasketContext/BasketContext.js +1 -1
  465. package/dist/src/contexts/BasketContext/BasketContext.js.map +1 -1
  466. package/dist/src/contexts/BasketContext/BasketContextType.d.ts +3 -3
  467. package/dist/src/contexts/BasketContext/BasketContextType.js.map +1 -1
  468. package/dist/src/contexts/BasketContext/BasketContextWrapper.d.ts +1 -1
  469. package/dist/src/contexts/BasketContext/BasketContextWrapper.js +35 -59
  470. package/dist/src/contexts/BasketContext/BasketContextWrapper.js.map +1 -1
  471. package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js +1 -1
  472. package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js.map +1 -1
  473. package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.d.ts +1 -1
  474. package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.js.map +1 -1
  475. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.d.ts +1 -1
  476. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js +3 -4
  477. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js.map +1 -1
  478. package/dist/src/contexts/CompanyContext/CompanyContext.js +1 -1
  479. package/dist/src/contexts/CompanyContext/CompanyContext.js.map +1 -1
  480. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js +24 -47
  481. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js.map +1 -1
  482. package/dist/src/contexts/ConfirmationFormContext.d.ts +2 -2
  483. package/dist/src/contexts/ConfirmationFormContext.js +8 -28
  484. package/dist/src/contexts/ConfirmationFormContext.js.map +1 -1
  485. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js +10 -10
  486. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js.map +1 -1
  487. package/dist/src/contexts/DatePickerContext.d.ts +12 -11
  488. package/dist/src/contexts/DatePickerContext.js +4 -41
  489. package/dist/src/contexts/DatePickerContext.js.map +1 -1
  490. package/dist/src/contexts/ErrorContext.d.ts +2 -2
  491. package/dist/src/contexts/ErrorContext.js +10 -10
  492. package/dist/src/contexts/ErrorContext.js.map +1 -1
  493. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js +1 -1
  494. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js.map +1 -1
  495. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.d.ts +1 -1
  496. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +43 -49
  497. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js.map +1 -1
  498. package/dist/src/contexts/HotelOverridesContext.d.ts +1 -1
  499. package/dist/src/contexts/HotelOverridesContext.js +14 -37
  500. package/dist/src/contexts/HotelOverridesContext.js.map +1 -1
  501. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.d.ts +7 -7
  502. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.js +18 -6
  503. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.js.map +1 -1
  504. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.d.ts +1 -1
  505. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js +38 -53
  506. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js.map +1 -1
  507. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.d.ts +1 -1
  508. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js +29 -49
  509. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js.map +1 -1
  510. package/dist/src/contexts/ModalContext.d.ts +1 -1
  511. package/dist/src/contexts/ModalContext.js +4 -5
  512. package/dist/src/contexts/ModalContext.js.map +1 -1
  513. package/dist/src/contexts/NotificationContext.d.ts +1 -1
  514. package/dist/src/contexts/NotificationContext.js +8 -31
  515. package/dist/src/contexts/NotificationContext.js.map +1 -1
  516. package/dist/src/engines/BaseEngine.js.map +1 -1
  517. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js +4 -27
  518. package/dist/src/engines/BookingWizardEngine/BookingWizardEngineElement.js.map +1 -1
  519. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +15 -35
  520. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -1
  521. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +67 -66
  522. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -1
  523. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js.map +1 -1
  524. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +20 -20
  525. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -1
  526. package/dist/src/events/RoomstayEvent.d.ts +0 -1
  527. package/dist/src/events/RoomstayEvent.js +0 -1
  528. package/dist/src/events/RoomstayEvent.js.map +1 -1
  529. package/dist/src/events/RoomstayEventManager.d.ts +2 -2
  530. package/dist/src/events/RoomstayEventManager.js +1 -1
  531. package/dist/src/events/RoomstayEventManager.js.map +1 -1
  532. package/dist/src/hooks/AutoFocusOnSelect.d.ts +1 -1
  533. package/dist/src/hooks/AutoFocusOnSelect.js.map +1 -1
  534. package/dist/src/hooks/BodyClickHook.d.ts +2 -4
  535. package/dist/src/hooks/BodyClickHook.js +3 -3
  536. package/dist/src/hooks/BodyClickHook.js.map +1 -1
  537. package/dist/src/hooks/CombineState.d.ts +1 -1
  538. package/dist/src/hooks/CombineState.js.map +1 -1
  539. package/dist/src/hooks/ConfirmationQuery.d.ts +3 -3
  540. package/dist/src/hooks/CurrentHotelHook.d.ts +1 -1
  541. package/dist/src/hooks/ElementSortHook.d.ts +1 -1
  542. package/dist/src/hooks/ElementSortHook.js +7 -27
  543. package/dist/src/hooks/ElementSortHook.js.map +1 -1
  544. package/dist/src/hooks/EventHook.d.ts +1 -1
  545. package/dist/src/hooks/EventHook.js.map +1 -1
  546. package/dist/src/hooks/KeyboardControlOnSelect.d.ts +3 -3
  547. package/dist/src/hooks/LoggedInUserHook.d.ts +6 -6
  548. package/dist/src/hooks/LoggedInUserHook.js.map +1 -1
  549. package/dist/src/hooks/Query.js +5 -25
  550. package/dist/src/hooks/Query.js.map +1 -1
  551. package/dist/src/hooks/VGSHooks.d.ts +4 -4
  552. package/dist/src/hooks/VGSHooks.js +16 -11
  553. package/dist/src/hooks/VGSHooks.js.map +1 -1
  554. package/dist/src/icons/Check.js +7 -27
  555. package/dist/src/icons/Check.js.map +1 -1
  556. package/dist/src/index.d.ts +3 -3
  557. package/dist/src/index.js +2 -17
  558. package/dist/src/index.js.map +1 -1
  559. package/dist/src/mockApi/AddonAPI.js +2 -1
  560. package/dist/src/mockApi/AddonAPI.js.map +1 -1
  561. package/dist/src/mockApi/MockAPI.d.ts +1 -1
  562. package/dist/src/mockApi/ReservationAPI.d.ts +1 -1
  563. package/dist/src/mockApi/ReservationAPI.js +2 -1
  564. package/dist/src/mockApi/ReservationAPI.js.map +1 -1
  565. package/dist/src/models/Addon/Addon.js +1 -1
  566. package/dist/src/models/Addon/Addon.js.map +1 -1
  567. package/dist/src/models/BasketAddonRow.d.ts +2 -2
  568. package/dist/src/models/BasketAddonRow.js +1 -1
  569. package/dist/src/models/BasketAddonRow.js.map +1 -1
  570. package/dist/src/models/BasketRow.d.ts +6 -6
  571. package/dist/src/models/BasketRow.js +3 -2
  572. package/dist/src/models/BasketRow.js.map +1 -1
  573. package/dist/src/models/BookingWizard/BookingWizardProperty.d.ts +1 -1
  574. package/dist/src/models/BookingWizard/BookingWizardProperty.js.map +1 -1
  575. package/dist/src/models/Client/Client.js.map +1 -1
  576. package/dist/src/models/Currency.d.ts +1 -1
  577. package/dist/src/models/Currency.js.map +1 -1
  578. package/dist/src/models/Room/Filters/BudgetFilter.d.ts +1 -1
  579. package/dist/src/models/Room/Filters/RoomTypeFilter.d.ts +1 -1
  580. package/dist/src/models/Room/Filters/RoomTypeFilter.js.map +1 -1
  581. package/dist/src/models/Room/Room.d.ts +10 -10
  582. package/dist/src/models/Room/Room.js +10 -8
  583. package/dist/src/models/Room/Room.js.map +1 -1
  584. package/dist/src/models/Room/RoomRate.d.ts +1 -1
  585. package/dist/src/models/Room/RoomRate.js +1 -1
  586. package/dist/src/models/Room/RoomRate.js.map +1 -1
  587. package/dist/src/models/Room/RoomRateNight.js.map +1 -1
  588. package/dist/src/models/RoomstaySession.d.ts +2 -2
  589. package/dist/src/models/RoomstaySession.js.map +1 -1
  590. package/dist/src/pages/account/AccountHome/AccountHomePage.js +31 -31
  591. package/dist/src/pages/account/AccountHome/AccountHomePage.js.map +1 -1
  592. package/dist/src/pages/account/AccountOutlet.d.ts +1 -1
  593. package/dist/src/pages/account/AccountOutlet.js +5 -25
  594. package/dist/src/pages/account/AccountOutlet.js.map +1 -1
  595. package/dist/src/pages/account/AccountRouter.js +12 -37
  596. package/dist/src/pages/account/AccountRouter.js.map +1 -1
  597. package/dist/src/pages/account/Details/AccountDetailsCardsPage.js +24 -28
  598. package/dist/src/pages/account/Details/AccountDetailsCardsPage.js.map +1 -1
  599. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js +8 -8
  600. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js.map +1 -1
  601. package/dist/src/pages/account/Details/AccountDetailsProfilePage.js +41 -42
  602. package/dist/src/pages/account/Details/AccountDetailsProfilePage.js.map +1 -1
  603. package/dist/src/pages/account/Help/AccountHelpPage.js +42 -44
  604. package/dist/src/pages/account/Help/AccountHelpPage.js.map +1 -1
  605. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js +78 -82
  606. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js.map +1 -1
  607. package/dist/src/pages/account/Reservations/AccountReservationsPage.js +17 -40
  608. package/dist/src/pages/account/Reservations/AccountReservationsPage.js.map +1 -1
  609. package/dist/src/pages/findReservation/FindReservation.js +81 -76
  610. package/dist/src/pages/findReservation/FindReservation.js.map +1 -1
  611. package/dist/src/pages/findReservation/FindReservationResults.js +33 -33
  612. package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -1
  613. package/dist/src/pages/findReservation/ReservationRow.js +66 -65
  614. package/dist/src/pages/findReservation/ReservationRow.js.map +1 -1
  615. package/dist/src/pages/findReservation/ReservationRowModal.js +52 -52
  616. package/dist/src/pages/findReservation/ReservationRowModal.js.map +1 -1
  617. package/dist/src/pages/hotel/HotelInfo.js +88 -88
  618. package/dist/src/pages/hotel/HotelInfo.js.map +1 -1
  619. package/dist/src/pages/hotel/HotelInfoPlaceholder.js +4 -27
  620. package/dist/src/pages/hotel/HotelInfoPlaceholder.js.map +1 -1
  621. package/dist/src/pages/steps/Step.d.ts +2 -2
  622. package/dist/src/pages/steps/Step.js.map +1 -1
  623. package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +1 -1
  624. package/dist/src/pages/steps/StepAddon/StepAddon.js.map +1 -1
  625. package/dist/src/pages/steps/StepAddon/StepAddonComponent.js +18 -41
  626. package/dist/src/pages/steps/StepAddon/StepAddonComponent.js.map +1 -1
  627. package/dist/src/pages/steps/StepAddon/StepAddonLoader.js +51 -51
  628. package/dist/src/pages/steps/StepAddon/StepAddonLoader.js.map +1 -1
  629. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.d.ts +1 -1
  630. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js.map +1 -1
  631. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js +28 -51
  632. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js.map +1 -1
  633. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js +72 -72
  634. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js.map +1 -1
  635. package/dist/src/pages/steps/StepDate/StepDate.d.ts +14 -0
  636. package/dist/src/pages/steps/StepDate/StepDate.js.map +1 -1
  637. package/dist/src/pages/steps/StepDate/StepDateComponent.d.ts +2 -0
  638. package/dist/src/pages/steps/StepDate/StepDateComponent.js +46 -48
  639. package/dist/src/pages/steps/StepDate/StepDateComponent.js.map +1 -1
  640. package/dist/src/pages/steps/StepGuide.d.ts +1 -1
  641. package/dist/src/pages/steps/StepGuide.js +3 -26
  642. package/dist/src/pages/steps/StepGuide.js.map +1 -1
  643. package/dist/src/pages/steps/StepHotel/StepHotelComponent.js +21 -21
  644. package/dist/src/pages/steps/StepHotel/StepHotelComponent.js.map +1 -1
  645. package/dist/src/pages/steps/StepHotel/StepHotelLoader.js +43 -43
  646. package/dist/src/pages/steps/StepHotel/StepHotelLoader.js.map +1 -1
  647. package/dist/src/pages/steps/StepRoom/StepRoom.d.ts +1 -1
  648. package/dist/src/pages/steps/StepRoom/StepRoom.js.map +1 -1
  649. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +33 -33
  650. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js.map +1 -1
  651. package/dist/src/pages/steps/StepRoom/StepRoomLoader.js +74 -74
  652. package/dist/src/pages/steps/StepRoom/StepRoomLoader.js.map +1 -1
  653. package/dist/src/pages/steps/StepThanks/StepThanks.d.ts +1 -1
  654. package/dist/src/pages/steps/StepThanks/StepThanks.js.map +1 -1
  655. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +28 -29
  656. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js.map +1 -1
  657. package/dist/src/providers/CurrencyProvider.d.ts +1 -1
  658. package/dist/src/providers/DIProvider.js +5 -25
  659. package/dist/src/providers/DIProvider.js.map +1 -1
  660. package/dist/src/providers/FilterProvider.d.ts +1 -1
  661. package/dist/src/providers/FilterProvider.js +3 -2
  662. package/dist/src/providers/FilterProvider.js.map +1 -1
  663. package/dist/src/providers/LanguageProvider.d.ts +1 -1
  664. package/dist/src/providers/LanguageProvider.js.map +1 -1
  665. package/dist/src/providers/PromotionProvider.d.ts +1 -1
  666. package/dist/src/providers/PromotionProvider.js +1 -1
  667. package/dist/src/providers/PromotionProvider.js.map +1 -1
  668. package/dist/src/providers/RoomstayThemeEngine.d.ts +2 -2
  669. package/dist/src/providers/RoomstayThemeEngine.js +5 -7
  670. package/dist/src/providers/RoomstayThemeEngine.js.map +1 -1
  671. package/dist/src/providers/SessionProvider.js +4 -4
  672. package/dist/src/providers/SessionProvider.js.map +1 -1
  673. package/dist/src/providers/feature/Feature.d.ts +1 -1
  674. package/dist/src/providers/feature/Feature.js +3 -0
  675. package/dist/src/providers/feature/Feature.js.map +1 -1
  676. package/dist/src/providers/feature/InlineAddonStepFeature.js.map +1 -1
  677. package/dist/src/providers/feature/MemberPortalFeature.d.ts +0 -1
  678. package/dist/src/providers/feature/MemberPortalFeature.js +0 -1
  679. package/dist/src/providers/feature/MemberPortalFeature.js.map +1 -1
  680. package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.d.ts +0 -1
  681. package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.js +0 -1
  682. package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.js.map +1 -1
  683. package/dist/src/providers/storage/LocalStorageProvider.d.ts +2 -2
  684. package/dist/src/providers/storage/LocalStorageProvider.js.map +1 -1
  685. package/dist/src/reducers/BasketReducer.js +3 -2
  686. package/dist/src/reducers/BasketReducer.js.map +1 -1
  687. package/dist/src/routes/NaturallyProgressedStepRoute.js +6 -29
  688. package/dist/src/routes/NaturallyProgressedStepRoute.js.map +1 -1
  689. package/dist/src/stories/Alert.stories.d.ts +2 -2
  690. package/dist/src/stories/Alert.stories.js +2 -25
  691. package/dist/src/stories/Alert.stories.js.map +1 -1
  692. package/dist/src/stories/BEButton.stories.d.ts +2 -2
  693. package/dist/src/stories/BEButton.stories.js +2 -25
  694. package/dist/src/stories/BEButton.stories.js.map +1 -1
  695. package/dist/src/stories/BackButton.stories.d.ts +2 -2
  696. package/dist/src/stories/BackButton.stories.js +2 -25
  697. package/dist/src/stories/BackButton.stories.js.map +1 -1
  698. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.d.ts +2 -2
  699. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js +4 -24
  700. package/dist/src/stories/BookNowPayLaterInfoBlock.stories.js.map +1 -1
  701. package/dist/src/stories/BookingWizard.stories.d.ts +5 -5
  702. package/dist/src/stories/BookingWizard.stories.js +25 -9
  703. package/dist/src/stories/BookingWizard.stories.js.map +1 -1
  704. package/dist/src/stories/Card.stories.d.ts +6 -3
  705. package/dist/src/stories/CardTypeSelect.stories.d.ts +3 -3
  706. package/dist/src/stories/CardTypeSelect.stories.js +4 -24
  707. package/dist/src/stories/CardTypeSelect.stories.js.map +1 -1
  708. package/dist/src/stories/Checkbox.stories.d.ts +3 -3
  709. package/dist/src/stories/Checkbox.stories.js +2 -25
  710. package/dist/src/stories/Checkbox.stories.js.map +1 -1
  711. package/dist/src/stories/ConfirmationModal.stories.js +6 -29
  712. package/dist/src/stories/ConfirmationModal.stories.js.map +1 -1
  713. package/dist/src/stories/Countdown.stories.d.ts +2 -2
  714. package/dist/src/stories/Countdown.stories.js +4 -27
  715. package/dist/src/stories/Countdown.stories.js.map +1 -1
  716. package/dist/src/stories/Currency.stories.d.ts +2 -2
  717. package/dist/src/stories/Currency.stories.js +2 -25
  718. package/dist/src/stories/Currency.stories.js.map +1 -1
  719. package/dist/src/stories/DateRangePicker.stories.js +25 -15
  720. package/dist/src/stories/DateRangePicker.stories.js.map +1 -1
  721. package/dist/src/stories/Distance.stories.d.ts +2 -2
  722. package/dist/src/stories/Distance.stories.js +2 -25
  723. package/dist/src/stories/Distance.stories.js.map +1 -1
  724. package/dist/src/stories/EnhancedPhoneNumberField.stories.d.ts +5 -0
  725. package/dist/src/stories/EnhancedPhoneNumberField.stories.js +2 -25
  726. package/dist/src/stories/EnhancedPhoneNumberField.stories.js.map +1 -1
  727. package/dist/src/stories/ErrorModal.stories.js +7 -30
  728. package/dist/src/stories/ErrorModal.stories.js.map +1 -1
  729. package/dist/src/stories/FloatingDateRangePicker.stories.d.ts +1 -1
  730. package/dist/src/stories/FloatingDateRangePicker.stories.js +15 -38
  731. package/dist/src/stories/FloatingDateRangePicker.stories.js.map +1 -1
  732. package/dist/src/stories/ForwardedSelect.stories.d.ts +3 -3
  733. package/dist/src/stories/ForwardedSelect.stories.js +4 -27
  734. package/dist/src/stories/ForwardedSelect.stories.js.map +1 -1
  735. package/dist/src/stories/Headline.stories.d.ts +2 -2
  736. package/dist/src/stories/Headline.stories.js +2 -25
  737. package/dist/src/stories/Headline.stories.js.map +1 -1
  738. package/dist/src/stories/Icon.stories.d.ts +2 -2
  739. package/dist/src/stories/Icon.stories.js +5 -2
  740. package/dist/src/stories/Icon.stories.js.map +1 -1
  741. package/dist/src/stories/IconNavCard.stories.d.ts +18 -8
  742. package/dist/src/stories/IconNavCard.stories.js +5 -25
  743. package/dist/src/stories/IconNavCard.stories.js.map +1 -1
  744. package/dist/src/stories/IconText.stories.d.ts +5 -0
  745. package/dist/src/stories/IconText.stories.js +4 -6
  746. package/dist/src/stories/IconText.stories.js.map +1 -1
  747. package/dist/src/stories/ImageLoader.stories.d.ts +2 -2
  748. package/dist/src/stories/ImageLoader.stories.js +2 -25
  749. package/dist/src/stories/ImageLoader.stories.js.map +1 -1
  750. package/dist/src/stories/InputGroup.stories.d.ts +2 -2
  751. package/dist/src/stories/InputGroup.stories.js +3 -26
  752. package/dist/src/stories/InputGroup.stories.js.map +1 -1
  753. package/dist/src/stories/LargeLoader.stories.d.ts +2 -2
  754. package/dist/src/stories/LargeLoader.stories.js +2 -25
  755. package/dist/src/stories/LargeLoader.stories.js.map +1 -1
  756. package/dist/src/stories/LineBreak.stories.d.ts +2 -2
  757. package/dist/src/stories/LineBreak.stories.js +2 -25
  758. package/dist/src/stories/LineBreak.stories.js.map +1 -1
  759. package/dist/src/stories/Notification.stories.d.ts +2 -2
  760. package/dist/src/stories/Notification.stories.js +2 -25
  761. package/dist/src/stories/Notification.stories.js.map +1 -1
  762. package/dist/src/stories/NumberIncrement.stories.js +6 -28
  763. package/dist/src/stories/NumberIncrement.stories.js.map +1 -1
  764. package/dist/src/stories/PasswordBox.stories.d.ts +3 -3
  765. package/dist/src/stories/PasswordBox.stories.js +4 -24
  766. package/dist/src/stories/PasswordBox.stories.js.map +1 -1
  767. package/dist/src/stories/PaymentCard.stories.d.ts +2 -2
  768. package/dist/src/stories/PaymentCard.stories.js +4 -24
  769. package/dist/src/stories/PaymentCard.stories.js.map +1 -1
  770. package/dist/src/stories/PaymentCardInput.stories.d.ts +4 -4
  771. package/dist/src/stories/PaymentCardInput.stories.js +13 -25
  772. package/dist/src/stories/PaymentCardInput.stories.js.map +1 -1
  773. package/dist/src/stories/Pill.stories.d.ts +2 -2
  774. package/dist/src/stories/Pill.stories.js +2 -25
  775. package/dist/src/stories/Pill.stories.js.map +1 -1
  776. package/dist/src/stories/Placeholder.stories.d.ts +2 -2
  777. package/dist/src/stories/Placeholder.stories.js +2 -25
  778. package/dist/src/stories/Placeholder.stories.js.map +1 -1
  779. package/dist/src/stories/PlanpayButton.stories.d.ts +3 -3
  780. package/dist/src/stories/PlanpayButton.stories.js +4 -24
  781. package/dist/src/stories/PlanpayButton.stories.js.map +1 -1
  782. package/dist/src/stories/PromoCodeInput.stories.d.ts +2 -2
  783. package/dist/src/stories/PromoCodeInput.stories.js +2 -25
  784. package/dist/src/stories/PromoCodeInput.stories.js.map +1 -1
  785. package/dist/src/stories/RadioButton.stories.d.ts +4 -4
  786. package/dist/src/stories/RadioButton.stories.js +4 -24
  787. package/dist/src/stories/RadioButton.stories.js.map +1 -1
  788. package/dist/src/stories/RadioButtonGroup.stories.d.ts +2 -2
  789. package/dist/src/stories/RadioButtonGroup.stories.js +4 -27
  790. package/dist/src/stories/RadioButtonGroup.stories.js.map +1 -1
  791. package/dist/src/stories/RadioFields.stories.d.ts +2 -2
  792. package/dist/src/stories/RadioFields.stories.js +2 -25
  793. package/dist/src/stories/RadioFields.stories.js.map +1 -1
  794. package/dist/src/stories/SSLSecureBadge.stories.d.ts +2 -2
  795. package/dist/src/stories/SSLSecureBadge.stories.js +1 -1
  796. package/dist/src/stories/SSLSecureBadge.stories.js.map +1 -1
  797. package/dist/src/stories/Select.stories.d.ts +14 -14
  798. package/dist/src/stories/Select.stories.js +18 -38
  799. package/dist/src/stories/Select.stories.js.map +1 -1
  800. package/dist/src/stories/SimpleModal.stories.js +11 -33
  801. package/dist/src/stories/SimpleModal.stories.js.map +1 -1
  802. package/dist/src/stories/Slider.stories.d.ts +4 -4
  803. package/dist/src/stories/Slider.stories.js +6 -26
  804. package/dist/src/stories/Slider.stories.js.map +1 -1
  805. package/dist/src/stories/SmallSpinner.stories.d.ts +2 -2
  806. package/dist/src/stories/SmallSpinner.stories.js +2 -25
  807. package/dist/src/stories/SmallSpinner.stories.js.map +1 -1
  808. package/dist/src/stories/TabbedModal.stories.js +6 -29
  809. package/dist/src/stories/TabbedModal.stories.js.map +1 -1
  810. package/dist/src/stories/Tabs.stories.d.ts +1 -1
  811. package/dist/src/stories/Tabs.stories.js +7 -30
  812. package/dist/src/stories/Tabs.stories.js.map +1 -1
  813. package/dist/src/stories/Text.stories.d.ts +2 -2
  814. package/dist/src/stories/Text.stories.js +2 -25
  815. package/dist/src/stories/Text.stories.js.map +1 -1
  816. package/dist/src/stories/TextArea.stories.d.ts +3 -3
  817. package/dist/src/stories/TextArea.stories.js +2 -25
  818. package/dist/src/stories/TextArea.stories.js.map +1 -1
  819. package/dist/src/stories/TextBox.stories.d.ts +3 -3
  820. package/dist/src/stories/TextBox.stories.js +2 -25
  821. package/dist/src/stories/TextBox.stories.js.map +1 -1
  822. package/dist/src/stories/Tooltip.stories.d.ts +2 -2
  823. package/dist/src/stories/Tooltip.stories.js +2 -25
  824. package/dist/src/stories/Tooltip.stories.js.map +1 -1
  825. package/dist/src/translations/Translation.d.ts +4 -0
  826. package/dist/src/translations/Translation.js +4 -0
  827. package/dist/src/translations/Translation.js.map +1 -1
  828. package/dist/src/translations/languages/en-gb.js +4 -0
  829. package/dist/src/translations/languages/en-gb.js.map +1 -1
  830. package/dist/src/util/AsyncAuth.d.ts +5 -0
  831. package/dist/src/util/AsyncAuth.js +44 -0
  832. package/dist/src/util/AsyncAuth.js.map +1 -0
  833. package/dist/src/util/DataLayer.js +3 -3
  834. package/dist/src/util/DataLayer.js.map +1 -1
  835. package/dist/src/util/EnumHelper.d.ts +1 -1
  836. package/dist/src/util/EnumHelper.js +1 -1
  837. package/dist/src/util/EnumHelper.js.map +1 -1
  838. package/dist/src/util/ObjectHelper.d.ts +1 -1
  839. package/dist/src/util/PaymentCardHelper.js +2 -1
  840. package/dist/src/util/PaymentCardHelper.js.map +1 -1
  841. package/dist/src/util/StepManager.d.ts +1 -1
  842. package/dist/src/util/Validation.d.ts +0 -1
  843. package/dist/src/util/Validation.js +3 -4
  844. package/dist/src/util/Validation.js.map +1 -1
  845. package/dist/test.bundle.js +1 -1
  846. package/dist/tests/jest/engines/RoomstayThemeEngine.test.js +5 -3
  847. package/dist/tests/jest/engines/RoomstayThemeEngine.test.js.map +1 -1
  848. package/dist/tests/jest/providers/LanguageProvider.test.js +6 -4
  849. package/dist/tests/jest/providers/LanguageProvider.test.js.map +1 -1
  850. package/dist/tests/jest/providers/SessionProvider.test.js +12 -10
  851. package/dist/tests/jest/providers/SessionProvider.test.js.map +1 -1
  852. package/dist/tests/jest/reducers/BasketReducer.test.js +2 -1
  853. package/dist/tests/jest/reducers/BasketReducer.test.js.map +1 -1
  854. package/dist/tests/offline/RoomstayBestRateAlert.js +6 -6
  855. package/dist/tests/offline/RoomstayBestRateAlert.js.map +1 -1
  856. package/dist/tests/offline/entry/ReactWrapper.js +26 -49
  857. package/dist/tests/offline/entry/ReactWrapper.js.map +1 -1
  858. package/dist/tests/offline/entry/allEngines.js +2 -2
  859. package/dist/tests/offline/entry/allEngines.js.map +1 -1
  860. package/dist/tests/offline/entry/components/TestPicker.js +42 -52
  861. package/dist/tests/offline/entry/components/TestPicker.js.map +1 -1
  862. package/dist/tests/setupTests.js +1 -0
  863. package/dist/tests/setupTests.js.map +1 -1
  864. package/dist/vendors.bundle.js +1 -1
  865. package/dist/vendors.bundle.js.LICENSE.txt +0 -31
  866. package/package.json +11 -5
  867. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.d.ts +0 -1
  868. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js +0 -133
  869. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js.map +0 -1
  870. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.d.ts +0 -2
  871. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js +0 -158
  872. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js.map +0 -1
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- const React = __importStar(require("react"));
29
+ const react_1 = __importDefault(require("react"));
30
30
  const SimpleModal_1 = __importStar(require("../../components/generic/modal/SimpleModal"));
31
31
  const ImageGallerySlider_1 = __importDefault(require("../../components/steps/room/ImageGallerySlider"));
32
32
  const Headline_1 = __importDefault(require("../../components/generic/Headline"));
@@ -55,73 +55,73 @@ function ReservationRowModal(props) {
55
55
  const lastNight = (0, dayjs_1.default)(nightKeys[nightKeys.length - 1]).add(1, 'day');
56
56
  const guaranteePolicy = reservation.guaranteePolicy;
57
57
  const cancelPolicy = reservation.cancelPolicy;
58
- const roomName = reservation.roomType ? reservation.roomType : (_b = hotel.rooms[reservation.roomCode]) === null || _b === void 0 ? void 0 : _b.name;
59
- return (React.createElement(SimpleModal_1.default, { open: props.open, onClose: props.onClose, title: `Reservation #${props.reservation.reservationNumber}`, size: SimpleModal_1.SimpleModalSize.Small },
60
- React.createElement(React.Fragment, null,
61
- React.createElement("div", { style: { height: '300px' } },
62
- React.createElement(ImageGallerySlider_1.default, { images: images })),
63
- React.createElement("div", { className: "u-marg-heavy u-marg@m-" },
64
- React.createElement("div", { className: "u-marg-bottom" },
65
- React.createElement(Headline_1.default, { size: 'large', bold: true }, roomName),
66
- React.createElement(Text_1.default, { type: Text_1.TextType.Small }, reservation.rate)),
67
- React.createElement("ul", null,
68
- React.createElement("li", { className: "u-flex justify-content-start u-marg-bottom--light" },
69
- React.createElement(Icon_1.default, { color: Color_1.Color.Grey, icon: Icon_1.IconType.Person }),
70
- React.createElement("div", { className: "u-marg-left--light" },
71
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
58
+ const roomName = reservation.roomType ? reservation.roomType : (_b = hotel === null || hotel === void 0 ? void 0 : hotel.rooms[reservation.roomCode]) === null || _b === void 0 ? void 0 : _b.name;
59
+ return (react_1.default.createElement(SimpleModal_1.default, { open: props.open, onClose: props.onClose, title: `Reservation #${props.reservation.reservationNumber}`, size: SimpleModal_1.SimpleModalSize.Small },
60
+ react_1.default.createElement(react_1.default.Fragment, null,
61
+ react_1.default.createElement("div", { style: { height: '300px' } },
62
+ react_1.default.createElement(ImageGallerySlider_1.default, { images: images })),
63
+ react_1.default.createElement("div", { className: "u-marg-heavy u-marg@m-" },
64
+ react_1.default.createElement("div", { className: "u-marg-bottom" },
65
+ react_1.default.createElement(Headline_1.default, { size: "large", bold: true }, roomName),
66
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small }, reservation.rate)),
67
+ react_1.default.createElement("ul", null,
68
+ react_1.default.createElement("li", { className: "u-flex justify-content-start u-marg-bottom--light" },
69
+ react_1.default.createElement(Icon_1.default, { color: Color_1.Color.Grey, icon: Icon_1.IconType.Person }),
70
+ react_1.default.createElement("div", { className: "u-marg-left--light" },
71
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
72
72
  reservation.guest.firstName,
73
73
  " ",
74
74
  reservation.guest.lastName,
75
75
  " ",
76
- React.createElement("span", { style: { color: Color_1.Color.DarkGrey } },
76
+ react_1.default.createElement("span", { style: { color: Color_1.Color.DarkGrey } },
77
77
  "- ",
78
78
  adultsAndChildren)))),
79
- React.createElement("li", { className: "u-flex justify-content-start u-marg-bottom--light" },
80
- React.createElement(Icon_1.default, { icon: Icon_1.IconType.Email, color: Color_1.Color.Grey }),
81
- React.createElement("div", { className: "u-marg-left--light" },
82
- React.createElement(Text_1.default, { type: Text_1.TextType.Small }, reservation.guest.email))),
83
- React.createElement("li", { className: "u-flex justify-content-start u-marg-bottom--light" },
84
- React.createElement(Icon_1.default, { icon: Icon_1.IconType.Calendar, color: Color_1.Color.Grey }),
85
- React.createElement("div", { className: "u-marg-left--light" },
86
- React.createElement(Text_1.default, { type: Text_1.TextType.Small }, firstNight.format('dddd, MMM D, YYYY')),
87
- React.createElement(Text_1.default, { type: Text_1.TextType.Small }, lastNight.format('dddd, MMM D, YYYY')))),
88
- React.createElement("li", { className: "u-flex justify-content-start" },
89
- React.createElement(Icon_1.default, { icon: Icon_1.IconType.CreditCard, color: Color_1.Color.Grey }),
90
- React.createElement("div", { className: "u-marg-left--light" },
91
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
79
+ react_1.default.createElement("li", { className: "u-flex justify-content-start u-marg-bottom--light" },
80
+ react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.Email, color: Color_1.Color.Grey }),
81
+ react_1.default.createElement("div", { className: "u-marg-left--light" },
82
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small }, reservation.guest.email))),
83
+ react_1.default.createElement("li", { className: "u-flex justify-content-start u-marg-bottom--light" },
84
+ react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.Calendar, color: Color_1.Color.Grey }),
85
+ react_1.default.createElement("div", { className: "u-marg-left--light" },
86
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small }, firstNight.format('dddd, MMM D, YYYY')),
87
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small }, lastNight.format('dddd, MMM D, YYYY')))),
88
+ react_1.default.createElement("li", { className: "u-flex justify-content-start" },
89
+ react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.CreditCard, color: Color_1.Color.Grey }),
90
+ react_1.default.createElement("div", { className: "u-marg-left--light" },
91
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
92
92
  "\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ",
93
93
  reservation.paymentCard.last4,
94
94
  " ",
95
- React.createElement("span", { style: { color: Color_1.Color.DarkGrey } },
95
+ react_1.default.createElement("span", { style: { color: Color_1.Color.DarkGrey } },
96
96
  "(",
97
97
  reservation.paymentCard.type,
98
98
  ")"))))),
99
- React.createElement(LineBreak_1.default, null),
99
+ react_1.default.createElement(LineBreak_1.default, null),
100
100
  nightKeys.map((night) => {
101
101
  const currentDay = (0, dayjs_1.default)(night);
102
102
  const currentDayFormatted = currentDay.format('dddd, MMM DD, YYYY');
103
- return (React.createElement("div", { className: "u-flex u-marg-bottom", key: reservation.reservationNumber },
104
- React.createElement(Text_1.default, null, currentDayFormatted),
105
- React.createElement(Text_1.default, { color: Color_1.Color.DarkGrey },
106
- React.createElement(Currency_1.default, null, reservation.nights[night].total))));
103
+ return (react_1.default.createElement("div", { className: "u-flex u-marg-bottom", key: reservation.reservationNumber },
104
+ react_1.default.createElement(Text_1.default, null, currentDayFormatted),
105
+ react_1.default.createElement(Text_1.default, { color: Color_1.Color.DarkGrey },
106
+ react_1.default.createElement(Currency_1.default, null, reservation.nights[night].total))));
107
107
  }),
108
- React.createElement("div", { className: "u-flex" },
109
- React.createElement(Text_1.default, null, lastNight.format('dddd, MMM DD, YYYY')),
110
- React.createElement(Text_1.default, { color: Color_1.Color.Success }, "Check Out")),
111
- React.createElement(LineBreak_1.default, null),
112
- React.createElement("div", null,
113
- guaranteePolicy && (React.createElement("div", { className: "u-marg-bottom--heavy" },
114
- React.createElement("div", { className: "u-marg-bottom--light" },
115
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
116
- React.createElement("strong", null, t(Translation_1.Translation.Misc.GuaranteePolicy)))),
117
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
118
- React.createElement("span", { className: "u-clear-font-weight", dangerouslySetInnerHTML: { __html: guaranteePolicy } })))),
119
- React.createElement("div", { className: "u-marg-bottom--heavy" },
120
- React.createElement("div", { className: "u-marg-bottom--light" },
121
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
122
- React.createElement("strong", null, t(Translation_1.Translation.Misc.CancellationPolicy)))),
123
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
124
- React.createElement("span", { className: "u-clear-font-weight", dangerouslySetInnerHTML: { __html: cancelPolicy } }))))))));
108
+ react_1.default.createElement("div", { className: "u-flex" },
109
+ react_1.default.createElement(Text_1.default, null, lastNight.format('dddd, MMM DD, YYYY')),
110
+ react_1.default.createElement(Text_1.default, { color: Color_1.Color.Success }, "Check Out")),
111
+ react_1.default.createElement(LineBreak_1.default, null),
112
+ react_1.default.createElement("div", null,
113
+ guaranteePolicy && (react_1.default.createElement("div", { className: "u-marg-bottom--heavy" },
114
+ react_1.default.createElement("div", { className: "u-marg-bottom--light" },
115
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
116
+ react_1.default.createElement("strong", null, t(Translation_1.Translation.Misc.GuaranteePolicy)))),
117
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
118
+ react_1.default.createElement("span", { className: "u-clear-font-weight", dangerouslySetInnerHTML: { __html: guaranteePolicy } })))),
119
+ react_1.default.createElement("div", { className: "u-marg-bottom--heavy" },
120
+ react_1.default.createElement("div", { className: "u-marg-bottom--light" },
121
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
122
+ react_1.default.createElement("strong", null, t(Translation_1.Translation.Misc.CancellationPolicy)))),
123
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
124
+ react_1.default.createElement("span", { className: "u-clear-font-weight", dangerouslySetInnerHTML: { __html: cancelPolicy } }))))))));
125
125
  }
126
126
  exports.default = ReservationRowModal;
127
127
  //# sourceMappingURL=ReservationRowModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReservationRowModal.js","sourceRoot":"/","sources":["src/pages/findReservation/ReservationRowModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,sFAAsF;AACtF,oGAA4E;AAC5E,6EAAqD;AACrD,kEAA2D;AAC3D,uEAAgE;AAChE,wCAAqC;AACrC,uEAA+C;AAC/C,0DAAuD;AACvD,kDAA0B;AAC1B,iDAA+C;AAC/C,+EAAuD;AACvD,6EAAqD;AACrD,2CAAkD;AASlD,SAAwB,mBAAmB,CAAC,KAA+B;;IACvE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,uBAAe,GAAE,CAAC;IAEpC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,MAAM,mCAAI,EAAE,CAAC;IAEzG,IAAI,iBAAiB,GAAG,sBAAY,CAAC,sBAAsB,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,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Eb;oBACK,eAAe,IAAI,CAChB,6BAAK,SAAS,EAAC,sBAAsB;wBACjC,6BAAK,SAAS,EAAC,sBAAsB;4BACjC,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK;gCACtB,oCAAS,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,eAAe,CAAC,CAAU,CACnD,CACL;wBACN,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK;4BACtB,8BAAM,SAAS,EAAC,qBAAqB,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,GAAI,CAC3F,CACL,CACT;oBAEG,6BAAK,SAAS,EAAC,sBAAsB;wBACjC,6BAAK,SAAS,EAAC,sBAAsB;4BACjC,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK;gCACtB,oCAAS,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAU,CACtD,CACL;wBACN,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK;4BACtB,8BAAM,SAAS,EAAC,qBAAqB,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,GAAI,CACxF,CACL,CAER,CACJ,CACP,CACO,CACjB,CAAC;AACN,CAAC;AA1HD,sCA0HC","sourcesContent":["import * as React from 'react';\nimport { ReservationDTO } from '@/models/Api/ReservationsDTO';\nimport SimpleModal, { SimpleModalSize } from '@/components/generic/modal/SimpleModal';\nimport ImageGallerySlider from '@/components/steps/room/ImageGallerySlider';\nimport Headline from '@/components/generic/Headline';\nimport Text, { TextType } from '@/components/generic/Text';\nimport Icon, { IconType } from '@/components/generic/Icon/Icon';\nimport { Color } from '@/util/Color';\nimport StringHelper from '@/util/StringHelper';\nimport { Translation } from 'translations/Translation';\nimport dayjs from 'dayjs';\nimport { useTranslation } from 'react-i18next';\nimport LineBreak from '@/components/generic/LineBreak';\nimport Currency from '@/components/generic/Currency';\nimport { useCurrentHotel } from '@frontend/hooks';\n\ninterface ReservationRowModalProps {\n reservation: ReservationDTO;\n onClose: () => void;\n open: boolean;\n images?: string[];\n}\n\nexport default function ReservationRowModal(props: ReservationRowModalProps) {\n const { hotel } = useCurrentHotel();\n\n const { reservation } = props;\n const { t } = useTranslation();\n\n const images = reservation.images && reservation.images.length ? reservation.images : props.images ?? [];\n\n let adultsAndChildren = StringHelper.pluralWithDictAndCount(reservation.guestCounts.adults, Translation.Step.Date.Adult, t);\n\n if (reservation.guestCounts.children) {\n adultsAndChildren += ', ' + StringHelper.pluralWithDictAndCount(reservation.guestCounts.children, Translation.Step.Date.Child, t);\n }\n\n const nightKeys = Object.keys(reservation.nights);\n\n const firstNight = dayjs(nightKeys[0]);\n const lastNight = dayjs(nightKeys[nightKeys.length - 1]).add(1, 'day');\n\n const guaranteePolicy = reservation.guaranteePolicy;\n const cancelPolicy = reservation.cancelPolicy;\n\n const roomName = reservation.roomType ? reservation.roomType : hotel.rooms[reservation.roomCode]?.name;\n\n return (\n <SimpleModal open={props.open} onClose={props.onClose} title={`Reservation #${props.reservation.reservationNumber}`} size={SimpleModalSize.Small}>\n <>\n <div style={{ height: '300px' }}>\n <ImageGallerySlider images={images} />\n </div>\n <div className=\"u-marg-heavy u-marg@m-\">\n <div className=\"u-marg-bottom\">\n <Headline size={'large'} bold={true}>\n {roomName}\n </Headline>\n <Text type={TextType.Small}>{reservation.rate}</Text>\n </div>\n\n <ul>\n <li className=\"u-flex justify-content-start u-marg-bottom--light\">\n <Icon color={Color.Grey} icon={IconType.Person} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>\n {reservation.guest.firstName} {reservation.guest.lastName} <span style={{ color: Color.DarkGrey }}>- {adultsAndChildren}</span>\n </Text>\n </div>\n </li>\n <li className=\"u-flex justify-content-start u-marg-bottom--light\">\n <Icon icon={IconType.Email} color={Color.Grey} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>{reservation.guest.email}</Text>\n </div>\n </li>\n <li className=\"u-flex justify-content-start u-marg-bottom--light\">\n <Icon icon={IconType.Calendar} color={Color.Grey} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>{firstNight.format('dddd, MMM D, YYYY')}</Text>\n <Text type={TextType.Small}>{lastNight.format('dddd, MMM D, YYYY')}</Text>\n </div>\n </li>\n <li className=\"u-flex justify-content-start\">\n <Icon icon={IconType.CreditCard} color={Color.Grey} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>\n •••• •••• •••• {reservation.paymentCard.last4} <span style={{ color: Color.DarkGrey }}>({reservation.paymentCard.type})</span>\n </Text>\n </div>\n </li>\n </ul>\n\n <LineBreak />\n\n {nightKeys.map((night) => {\n const currentDay = dayjs(night);\n const currentDayFormatted = currentDay.format('dddd, MMM DD, YYYY');\n\n return (\n <div className=\"u-flex u-marg-bottom\" key={reservation.reservationNumber}>\n <Text>{currentDayFormatted}</Text>\n <Text color={Color.DarkGrey}>\n <Currency>{reservation.nights[night].total}</Currency>\n </Text>\n </div>\n );\n })}\n <div className=\"u-flex\">\n <Text>{lastNight.format('dddd, MMM DD, YYYY')}</Text>\n <Text color={Color.Success}>Check Out</Text>\n </div>\n\n <LineBreak />\n\n <div>\n {guaranteePolicy && (\n <div className=\"u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Small}>\n <strong>{t(Translation.Misc.GuaranteePolicy)}</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>\n <span className=\"u-clear-font-weight\" dangerouslySetInnerHTML={{ __html: guaranteePolicy }} />\n </Text>\n </div>\n )}\n {\n <div className=\"u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Small}>\n <strong>{t(Translation.Misc.CancellationPolicy)}</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>\n <span className=\"u-clear-font-weight\" dangerouslySetInnerHTML={{ __html: cancelPolicy }} />\n </Text>\n </div>\n }\n </div>\n </div>\n </>\n </SimpleModal>\n );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AAS,EAAC,sBAAsB;wBACjC,uCAAK,SAAS,EAAC,sBAAsB;4BACjC,8BAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK;gCACtB,8CAAS,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAU,CACtD,CACL;wBACN,8BAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,KAAK;4BACtB,wCAAM,SAAS,EAAC,qBAAqB,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,GAAI,CACxF,CACL,CACJ,CACJ,CACP,CACO,CACjB,CAAC;AACN,CAAC;AAxHD,sCAwHC","sourcesContent":["import React from 'react';\nimport { ReservationDTO } from '@/models/Api/ReservationsDTO';\nimport SimpleModal, { SimpleModalSize } from '@/components/generic/modal/SimpleModal';\nimport ImageGallerySlider from '@/components/steps/room/ImageGallerySlider';\nimport Headline from '@/components/generic/Headline';\nimport Text, { TextType } from '@/components/generic/Text';\nimport Icon, { IconType } from '@/components/generic/Icon/Icon';\nimport { Color } from '@/util/Color';\nimport StringHelper from '@/util/StringHelper';\nimport { Translation } from 'translations/Translation';\nimport dayjs from 'dayjs';\nimport { useTranslation } from 'react-i18next';\nimport LineBreak from '@/components/generic/LineBreak';\nimport Currency from '@/components/generic/Currency';\nimport { useCurrentHotel } from '@frontend/hooks';\n\ninterface ReservationRowModalProps {\n reservation: ReservationDTO;\n onClose: () => void;\n open: boolean;\n images?: string[];\n}\n\nexport default function ReservationRowModal(props: ReservationRowModalProps) {\n const { hotel } = useCurrentHotel();\n\n const { reservation } = props;\n const { t } = useTranslation();\n\n const images = reservation.images && reservation.images.length ? reservation.images : props.images ?? [];\n\n let adultsAndChildren = StringHelper.pluralWithDictAndCount(reservation.guestCounts.adults, Translation.Step.Date.Adult, t);\n\n if (reservation.guestCounts.children) {\n adultsAndChildren += ', ' + StringHelper.pluralWithDictAndCount(reservation.guestCounts.children, Translation.Step.Date.Child, t);\n }\n\n const nightKeys = Object.keys(reservation.nights);\n\n const firstNight = dayjs(nightKeys[0]);\n const lastNight = dayjs(nightKeys[nightKeys.length - 1]).add(1, 'day');\n\n const guaranteePolicy = reservation.guaranteePolicy;\n const cancelPolicy = reservation.cancelPolicy;\n\n const roomName = reservation.roomType ? reservation.roomType : hotel?.rooms[reservation.roomCode]?.name;\n\n return (\n <SimpleModal open={props.open} onClose={props.onClose} title={`Reservation #${props.reservation.reservationNumber}`} size={SimpleModalSize.Small}>\n <>\n <div style={{ height: '300px' }}>\n <ImageGallerySlider images={images} />\n </div>\n <div className=\"u-marg-heavy u-marg@m-\">\n <div className=\"u-marg-bottom\">\n <Headline size=\"large\" bold>\n {roomName}\n </Headline>\n <Text type={TextType.Small}>{reservation.rate}</Text>\n </div>\n\n <ul>\n <li className=\"u-flex justify-content-start u-marg-bottom--light\">\n <Icon color={Color.Grey} icon={IconType.Person} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>\n {reservation.guest.firstName} {reservation.guest.lastName} <span style={{ color: Color.DarkGrey }}>- {adultsAndChildren}</span>\n </Text>\n </div>\n </li>\n <li className=\"u-flex justify-content-start u-marg-bottom--light\">\n <Icon icon={IconType.Email} color={Color.Grey} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>{reservation.guest.email}</Text>\n </div>\n </li>\n <li className=\"u-flex justify-content-start u-marg-bottom--light\">\n <Icon icon={IconType.Calendar} color={Color.Grey} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>{firstNight.format('dddd, MMM D, YYYY')}</Text>\n <Text type={TextType.Small}>{lastNight.format('dddd, MMM D, YYYY')}</Text>\n </div>\n </li>\n <li className=\"u-flex justify-content-start\">\n <Icon icon={IconType.CreditCard} color={Color.Grey} />\n <div className=\"u-marg-left--light\">\n <Text type={TextType.Small}>\n •••• •••• •••• {reservation.paymentCard.last4} <span style={{ color: Color.DarkGrey }}>({reservation.paymentCard.type})</span>\n </Text>\n </div>\n </li>\n </ul>\n\n <LineBreak />\n\n {nightKeys.map((night) => {\n const currentDay = dayjs(night);\n const currentDayFormatted = currentDay.format('dddd, MMM DD, YYYY');\n\n return (\n <div className=\"u-flex u-marg-bottom\" key={reservation.reservationNumber}>\n <Text>{currentDayFormatted}</Text>\n <Text color={Color.DarkGrey}>\n <Currency>{reservation.nights[night].total}</Currency>\n </Text>\n </div>\n );\n })}\n <div className=\"u-flex\">\n <Text>{lastNight.format('dddd, MMM DD, YYYY')}</Text>\n <Text color={Color.Success}>Check Out</Text>\n </div>\n\n <LineBreak />\n\n <div>\n {guaranteePolicy && (\n <div className=\"u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Small}>\n <strong>{t(Translation.Misc.GuaranteePolicy)}</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>\n <span className=\"u-clear-font-weight\" dangerouslySetInnerHTML={{ __html: guaranteePolicy }} />\n </Text>\n </div>\n )}\n <div className=\"u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--light\">\n <Text type={TextType.Small}>\n <strong>{t(Translation.Misc.CancellationPolicy)}</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>\n <span className=\"u-clear-font-weight\" dangerouslySetInnerHTML={{ __html: cancelPolicy }} />\n </Text>\n </div>\n </div>\n </div>\n </>\n </SimpleModal>\n );\n}\n"]}
@@ -26,13 +26,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- const React = __importStar(require("react"));
29
+ const react_1 = __importDefault(require("react"));
30
30
  const Color_1 = require("../../util/Color");
31
31
  const Icon_1 = __importStar(require("../../components/generic/Icon/Icon"));
32
32
  const Text_1 = __importStar(require("../../components/generic/Text"));
33
33
  const Headline_1 = __importDefault(require("../../components/generic/Headline"));
34
34
  const HotelLocationMap_1 = __importDefault(require("../../components/generic/map/HotelLocationMap"));
35
- const react_1 = require("react");
35
+ const react_2 = require("react");
36
36
  const fslightbox_react_1 = __importDefault(require("fslightbox-react"));
37
37
  const TransportDistanceFromHotelBlock_1 = __importDefault(require("../../components/summary/TransportDistanceFromHotelBlock"));
38
38
  const hooks_1 = require("../../hooks/index.js");
@@ -50,8 +50,8 @@ function HotelInfo() {
50
50
  const { t } = (0, react_i18next_1.useTranslation)();
51
51
  const imageUrl = hotel === null || hotel === void 0 ? void 0 : hotel.heroImage;
52
52
  const { line1, line2, postalCode, country } = (_a = hotel === null || hotel === void 0 ? void 0 : hotel.address) !== null && _a !== void 0 ? _a : {};
53
- const [lightboxController, setLightboxController] = (0, react_1.useState)({ toggler: false, slide: 1 });
54
- const [images, setImages] = (0, react_1.useState)([]);
53
+ const [lightboxController, setLightboxController] = (0, react_2.useState)({ toggler: false, slide: 1 });
54
+ const [images, setImages] = (0, react_2.useState)([]);
55
55
  const openSlider = (slide) => {
56
56
  setLightboxController((controller) => ({ toggler: !controller.toggler, slide: slide + 1 }));
57
57
  };
@@ -59,15 +59,15 @@ function HotelInfo() {
59
59
  openSlider(4);
60
60
  };
61
61
  const { raise } = (0, hooks_1.useEvent)();
62
- (0, react_1.useEffect)(() => {
62
+ (0, react_2.useEffect)(() => {
63
63
  const event = new events_1.StepHotelInfoViewEvent();
64
64
  raise(event);
65
65
  }, []);
66
- (0, react_1.useEffect)(() => {
66
+ (0, react_2.useEffect)(() => {
67
67
  var _a, _b;
68
68
  const newImages = [];
69
69
  if ((_a = hotel === null || hotel === void 0 ? void 0 : hotel.images) === null || _a === void 0 ? void 0 : _a.length) {
70
- newImages.push(...hotel === null || hotel === void 0 ? void 0 : hotel.images);
70
+ newImages.push(...hotel.images);
71
71
  }
72
72
  else if (hotel === null || hotel === void 0 ? void 0 : hotel.rooms) {
73
73
  for (const room of Object.values(hotel === null || hotel === void 0 ? void 0 : hotel.rooms)) {
@@ -86,104 +86,104 @@ function HotelInfo() {
86
86
  openSlider(index);
87
87
  };
88
88
  const resizedUrl = ImageProvider_1.default.resizeImage(images[index], ImageProvider_1.ImageSize.Small);
89
- return (React.createElement("div", { style: { backgroundImage: `url('${resizedUrl}')`, paddingTop: '75%' }, className: "c-images u-block u-w-100 u-marg-bottom u-marg-bottom--heavy", onClick: openSliderOnClickHandler }));
89
+ return (react_1.default.createElement("div", { style: { backgroundImage: `url('${resizedUrl}')`, paddingTop: '75%' }, className: "c-images u-block u-w-100 u-marg-bottom u-marg-bottom--heavy", onClick: openSliderOnClickHandler }));
90
90
  };
91
- return (React.createElement(React.Fragment, null,
92
- React.createElement("div", { style: { backgroundImage: `url('${imageUrl}')` }, className: "c-masthead has-tint" },
93
- React.createElement("div", { className: "container" },
94
- React.createElement("div", { className: "c-masthead__body u-fill-white u-pad--heavy u-shadow-accent" },
95
- React.createElement("h1", { className: "c-masthead__header" }, hotel === null || hotel === void 0 ? void 0 : hotel.name),
96
- React.createElement("h2", { className: "c-masthead__sub-header" }, (_b = hotel === null || hotel === void 0 ? void 0 : hotel.address) === null || _b === void 0 ? void 0 : _b.country)))),
97
- React.createElement("div", { className: "u-fill-snow u-pad--heavy-med u-pad-top-bottom--heavy@m-" },
98
- React.createElement("div", { className: "container" },
99
- React.createElement("div", { className: "row" },
100
- React.createElement("div", { className: "col-md-6 u-flex align-items-center" },
101
- React.createElement("ul", null,
102
- React.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
103
- React.createElement(Icon_1.default, { icon: Icon_1.IconType.Map, size: "1.3em", color: Color_1.Color.Accent }),
104
- React.createElement("span", { className: "u-flex__item u-marg-left" },
91
+ return (react_1.default.createElement(react_1.default.Fragment, null,
92
+ react_1.default.createElement("div", { style: { backgroundImage: `url('${imageUrl}')` }, className: "c-masthead has-tint" },
93
+ react_1.default.createElement("div", { className: "container" },
94
+ react_1.default.createElement("div", { className: "c-masthead__body u-fill-white u-pad--heavy u-shadow-accent" },
95
+ react_1.default.createElement("h1", { className: "c-masthead__header" }, hotel === null || hotel === void 0 ? void 0 : hotel.name),
96
+ react_1.default.createElement("h2", { className: "c-masthead__sub-header" }, (_b = hotel === null || hotel === void 0 ? void 0 : hotel.address) === null || _b === void 0 ? void 0 : _b.country)))),
97
+ react_1.default.createElement("div", { className: "u-fill-snow u-pad--heavy-med u-pad-top-bottom--heavy@m-" },
98
+ react_1.default.createElement("div", { className: "container" },
99
+ react_1.default.createElement("div", { className: "row" },
100
+ react_1.default.createElement("div", { className: "col-md-6 u-flex align-items-center" },
101
+ react_1.default.createElement("ul", null,
102
+ react_1.default.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
103
+ react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.Map, size: "1.3em", color: Color_1.Color.Accent }),
104
+ react_1.default.createElement("span", { className: "u-flex__item u-marg-left" },
105
105
  line1,
106
- React.createElement("br", null),
106
+ react_1.default.createElement("br", null),
107
107
  line2,
108
108
  " ",
109
109
  postalCode,
110
110
  ", ",
111
111
  country)),
112
- React.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
113
- React.createElement(Icon_1.default, { icon: Icon_1.IconType.Phone, size: "1.3em", color: Color_1.Color.Accent }),
114
- React.createElement("span", { className: "u-flex__item u-marg-left" }, hotel === null || hotel === void 0 ? void 0 : hotel.phone)),
115
- React.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
116
- React.createElement(Icon_1.default, { icon: Icon_1.IconType.Hotel2, size: "1.3em", color: Color_1.Color.Accent }),
117
- React.createElement("span", { className: "u-flex__item u-marg-left" },
118
- React.createElement("a", { href: hotel === null || hotel === void 0 ? void 0 : hotel.hotelUrl, style: { color: 'var(--rs-color-accent-1)' } }, hotel === null || hotel === void 0 ? void 0 : hotel.name))),
119
- React.createElement("li", { className: "u-flex" },
120
- React.createElement(BEButton_1.default, { icon: Icon_1.IconType.ArrowRight, primary: true, filled: true, iconPosition: 'right', onClick: onBookNowClick }, t(Translation_1.Translation.HotelInfo.BookNowButton))))),
121
- React.createElement("div", { className: "col-md-6" },
122
- React.createElement("div", { className: "c-overlap" },
123
- React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy u-marg-top u-marg-top--heavy", style: { height: '240px' } },
124
- React.createElement(HotelLocationMap_1.default, null)),
125
- React.createElement("div", { className: "u-flex u-flex-column justify-content-center" },
126
- React.createElement(TransportDistanceFromHotelBlock_1.default, { hotel: hotel }))))))),
127
- React.createElement("div", { className: "u-pad u-pad--heavy-plus u-pad-top-bottom--heavy@m-" },
128
- React.createElement("div", { className: "container" },
129
- React.createElement("div", { className: "row" },
130
- React.createElement("div", { className: "col-lg-6" },
131
- React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
132
- React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
133
- React.createElement(Headline_1.default, { bold: true }, "About")),
134
- React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
135
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
136
- React.createElement("span", { dangerouslySetInnerHTML: { __html: (_c = hotel === null || hotel === void 0 ? void 0 : hotel.description) === null || _c === void 0 ? void 0 : _c.replace('\r\n', '<br/><br/>') } })),
137
- !!(hotel === null || hotel === void 0 ? void 0 : hotel.locationDescription) && (React.createElement(React.Fragment, null,
138
- React.createElement("div", { className: "u-marg-top" },
139
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
140
- React.createElement("strong", null, "Location"))),
141
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
142
- React.createElement("span", { dangerouslySetInnerHTML: { __html: (_d = hotel === null || hotel === void 0 ? void 0 : hotel.locationDescription) === null || _d === void 0 ? void 0 : _d.replace('\r\n', '<br/><br/>') } }))))),
143
- !!((_e = hotel === null || hotel === void 0 ? void 0 : hotel.perks) === null || _e === void 0 ? void 0 : _e.length) && (React.createElement(React.Fragment, null,
144
- React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
145
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
146
- React.createElement("strong", null, "And you get all these for free:"))),
147
- React.createElement("div", { className: "row" }, hotel === null || hotel === void 0 ? void 0 : hotel.perks.map((perk) => {
148
- return (React.createElement("div", { className: "col-6 col-md-4", key: perk.name },
149
- React.createElement("div", { className: "u-flex u-marg-bottom" },
150
- React.createElement("div", { className: "room-perk-icon" }, perk.iconElement ? perk.iconElement : React.createElement(Icon_1.default, { icon: perk.icon })),
151
- React.createElement("span", { className: "u-flex__item" },
152
- React.createElement(Text_1.default, { type: Text_1.TextType.Small }, perk.name)))));
112
+ react_1.default.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
113
+ react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.Phone, size: "1.3em", color: Color_1.Color.Accent }),
114
+ react_1.default.createElement("span", { className: "u-flex__item u-marg-left" }, hotel === null || hotel === void 0 ? void 0 : hotel.phone)),
115
+ react_1.default.createElement("li", { className: "u-flex u-marg-bottom--heavy" },
116
+ react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.Hotel2, size: "1.3em", color: Color_1.Color.Accent }),
117
+ react_1.default.createElement("span", { className: "u-flex__item u-marg-left" },
118
+ react_1.default.createElement("a", { href: hotel === null || hotel === void 0 ? void 0 : hotel.hotelUrl, style: { color: 'var(--rs-color-accent-1)' } }, hotel === null || hotel === void 0 ? void 0 : hotel.name))),
119
+ react_1.default.createElement("li", { className: "u-flex" },
120
+ react_1.default.createElement(BEButton_1.default, { icon: Icon_1.IconType.ArrowRight, primary: true, filled: true, iconPosition: "right", onClick: onBookNowClick }, t(Translation_1.Translation.HotelInfo.BookNowButton))))),
121
+ react_1.default.createElement("div", { className: "col-md-6" },
122
+ react_1.default.createElement("div", { className: "c-overlap" },
123
+ react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy u-marg-top u-marg-top--heavy", style: { height: '240px' } },
124
+ react_1.default.createElement(HotelLocationMap_1.default, null)),
125
+ react_1.default.createElement("div", { className: "u-flex u-flex-column justify-content-center" },
126
+ react_1.default.createElement(TransportDistanceFromHotelBlock_1.default, { hotel: hotel }))))))),
127
+ react_1.default.createElement("div", { className: "u-pad u-pad--heavy-plus u-pad-top-bottom--heavy@m-" },
128
+ react_1.default.createElement("div", { className: "container" },
129
+ react_1.default.createElement("div", { className: "row" },
130
+ react_1.default.createElement("div", { className: "col-lg-6" },
131
+ react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
132
+ react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
133
+ react_1.default.createElement(Headline_1.default, { bold: true }, "About")),
134
+ react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
135
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
136
+ react_1.default.createElement("span", { dangerouslySetInnerHTML: { __html: ((_c = hotel === null || hotel === void 0 ? void 0 : hotel.description) === null || _c === void 0 ? void 0 : _c.replace('\r\n', '<br/><br/>')) || '' } })),
137
+ !!(hotel === null || hotel === void 0 ? void 0 : hotel.locationDescription) && (react_1.default.createElement(react_1.default.Fragment, null,
138
+ react_1.default.createElement("div", { className: "u-marg-top" },
139
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
140
+ react_1.default.createElement("strong", null, "Location"))),
141
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
142
+ react_1.default.createElement("span", { dangerouslySetInnerHTML: { __html: (_d = hotel === null || hotel === void 0 ? void 0 : hotel.locationDescription) === null || _d === void 0 ? void 0 : _d.replace('\r\n', '<br/><br/>') } }))))),
143
+ !!((_e = hotel === null || hotel === void 0 ? void 0 : hotel.perks) === null || _e === void 0 ? void 0 : _e.length) && (react_1.default.createElement(react_1.default.Fragment, null,
144
+ react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
145
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
146
+ react_1.default.createElement("strong", null, "And you get all these for free:"))),
147
+ react_1.default.createElement("div", { className: "row" }, hotel === null || hotel === void 0 ? void 0 : hotel.perks.map((perk) => {
148
+ return (react_1.default.createElement("div", { className: "col-6 col-md-4", key: perk.name },
149
+ react_1.default.createElement("div", { className: "u-flex u-marg-bottom" },
150
+ react_1.default.createElement("div", { className: "room-perk-icon" }, perk.iconElement ? perk.iconElement : react_1.default.createElement(Icon_1.default, { icon: perk.icon })),
151
+ react_1.default.createElement("span", { className: "u-flex__item" },
152
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small }, perk.name)))));
153
153
  }))))),
154
- !!((_f = hotel === null || hotel === void 0 ? void 0 : hotel.hotelServices) === null || _f === void 0 ? void 0 : _f.length) && (React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
155
- React.createElement("div", { className: "u-marg-bottom--heavy" },
156
- React.createElement(Headline_1.default, { bold: true }, "Hotel Amenities")),
157
- React.createElement("div", { className: "row" }, hotel === null || hotel === void 0 ? void 0 : hotel.hotelServices.map((hotelService, index) => {
158
- return (React.createElement("div", { key: index, className: "col-md-6" },
159
- React.createElement("div", { className: "u-flex u-marg-bottom" },
160
- React.createElement(Icon_1.default, { icon: Icon_1.IconType.Check, color: Color_1.Color.White, backgroundColor: Color_1.Color.Accent, borderRadius: 'round', noPadding: true, size: "16px" }),
161
- React.createElement("span", { className: "u-flex__item u-marg-left--light" },
162
- React.createElement(Text_1.default, { type: Text_1.TextType.Small }, hotelService.name)))));
154
+ !!((_f = hotel === null || hotel === void 0 ? void 0 : hotel.hotelServices) === null || _f === void 0 ? void 0 : _f.length) && (react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
155
+ react_1.default.createElement("div", { className: "u-marg-bottom--heavy" },
156
+ react_1.default.createElement(Headline_1.default, { bold: true }, "Hotel Amenities")),
157
+ react_1.default.createElement("div", { className: "row" }, hotel === null || hotel === void 0 ? void 0 : hotel.hotelServices.map((hotelService, index) => {
158
+ return (react_1.default.createElement("div", { key: index, className: "col-md-6" },
159
+ react_1.default.createElement("div", { className: "u-flex u-marg-bottom" },
160
+ react_1.default.createElement(Icon_1.default, { icon: Icon_1.IconType.Check, color: Color_1.Color.White, backgroundColor: Color_1.Color.Accent, borderRadius: "round", noPadding: true, size: "16px" }),
161
+ react_1.default.createElement("span", { className: "u-flex__item u-marg-left--light" },
162
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small }, hotelService.name)))));
163
163
  })))),
164
- !!(hotel === null || hotel === void 0 ? void 0 : hotel.policies) && (React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
165
- React.createElement("div", { className: "u-marg-bottom--heavy" },
166
- React.createElement(Headline_1.default, { bold: true }, "Policies")),
167
- React.createElement(Text_1.default, { type: Text_1.TextType.Small },
168
- React.createElement("a", { href: hotel === null || hotel === void 0 ? void 0 : hotel.policies, target: "_blank", style: { color: hotel === null || hotel === void 0 ? void 0 : hotel.colors.accent }, rel: "noreferrer" }, hotel === null || hotel === void 0 ? void 0 : hotel.policies))))),
169
- React.createElement("div", { className: "col-lg-6" },
170
- React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
171
- React.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
172
- React.createElement(Headline_1.default, { bold: true }, "Gallery")),
164
+ !!(hotel === null || hotel === void 0 ? void 0 : hotel.policies) && (react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
165
+ react_1.default.createElement("div", { className: "u-marg-bottom--heavy" },
166
+ react_1.default.createElement(Headline_1.default, { bold: true }, "Policies")),
167
+ react_1.default.createElement(Text_1.default, { type: Text_1.TextType.Small },
168
+ react_1.default.createElement("a", { href: hotel === null || hotel === void 0 ? void 0 : hotel.policies, target: "_blank", style: { color: hotel === null || hotel === void 0 ? void 0 : hotel.colors.accent }, rel: "noreferrer" }, hotel === null || hotel === void 0 ? void 0 : hotel.policies))))),
169
+ react_1.default.createElement("div", { className: "col-lg-6" },
170
+ react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
171
+ react_1.default.createElement("div", { className: "u-marg-bottom u-marg-bottom--heavy" },
172
+ react_1.default.createElement(Headline_1.default, { bold: true }, "Gallery")),
173
173
  images.length >= 1 && getImage(0),
174
- React.createElement("div", { className: "row" },
174
+ react_1.default.createElement("div", { className: "row" },
175
175
  [1, 2, 3].map((index) => {
176
176
  if (images.length > index) {
177
- return (React.createElement("div", { key: index, className: "col-6" }, getImage(index)));
177
+ return (react_1.default.createElement("div", { key: index, className: "col-6" }, getImage(index)));
178
178
  }
179
179
  }),
180
- images.length > 5 && (React.createElement("div", { className: "col-6" },
181
- React.createElement("div", { className: "c-images c-images--more", onClick: openSliderOnClick },
180
+ images.length > 5 && (react_1.default.createElement("div", { className: "col-6" },
181
+ react_1.default.createElement("div", { className: "c-images c-images--more", onClick: openSliderOnClick },
182
182
  getImage(4),
183
- React.createElement("span", null,
183
+ react_1.default.createElement("span", null,
184
184
  "+ ",
185
185
  images.length - 5)))))))))),
186
- !!(images === null || images === void 0 ? void 0 : images.length) && React.createElement(fslightbox_react_1.default, { toggler: lightboxController.toggler, slide: lightboxController.slide, sources: images, type: "image" })));
186
+ !!(images === null || images === void 0 ? void 0 : images.length) && react_1.default.createElement(fslightbox_react_1.default, { toggler: lightboxController.toggler, slide: lightboxController.slide, sources: images, type: "image" })));
187
187
  }
188
188
  exports.default = HotelInfo;
189
189
  //# sourceMappingURL=HotelInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HotelInfo.js","sourceRoot":"/","sources":["src/pages/hotel/HotelInfo.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,wCAAqC;AACrC,uEAAgE;AAChE,kEAA2D;AAC3D,6EAAqD;AACrD,iGAAyE;AACzE,iCAA4C;AAC5C,wEAA0C;AAC1C,2HAAmG;AACnG,2CAA4D;AAC5D,6EAAqD;AACrD,uDAA8C;AAC9C,qEAA6C;AAC7C,iDAA+C;AAC/C,0DAAuD;AACvD,2EAAqE;AACrE,6CAA0D;AAE1D,SAAwB,SAAS;;IAC7B,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,uBAAe,GAAE,CAAC;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IAAI,EAAC,OAAO,GAAG,CACxI,CACN,CAAC;AACN,CAAC;AAhPD,4BAgPC","sourcesContent":["import * as React from 'react';\nimport { Color } from '@/util/Color';\nimport Icon, { IconType } from '@/components/generic/Icon/Icon';\nimport Text, { TextType } from '@/components/generic/Text';\nimport Headline from '@/components/generic/Headline';\nimport HotelLocationMap from '@/components/generic/map/HotelLocationMap';\nimport { useState, useEffect } from 'react';\nimport FsLightbox from 'fslightbox-react';\nimport TransportDistanceFromHotelBlock from '@/components/summary/TransportDistanceFromHotelBlock';\nimport { useCurrentHotel, useEvent } from '@frontend/hooks';\nimport BEButton from '@/components/generic/BEButton';\nimport { useHistory } from 'react-router-dom';\nimport StepManager from '@/util/StepManager';\nimport { useTranslation } from 'react-i18next';\nimport { Translation } from 'translations/Translation';\nimport ImageProvider, { ImageSize } from '@/providers/ImageProvider';\nimport { StepHotelInfoViewEvent } from '@frontend/events';\n\nexport default function HotelInfo() {\n const { hotel } = useCurrentHotel();\n const history = useHistory();\n const { t } = useTranslation();\n\n const imageUrl = hotel?.heroImage;\n\n const { line1, line2, postalCode, country } = hotel?.address ?? {};\n\n const [lightboxController, setLightboxController] = useState({ toggler: false, slide: 1 });\n const [images, setImages] = useState<string[]>([]);\n\n const openSlider = (slide: number) => {\n setLightboxController((controller) => ({ toggler: !controller.toggler, slide: slide + 1 }));\n };\n const openSliderOnClick = () => {\n openSlider(4);\n };\n\n const { raise } = useEvent();\n\n useEffect(() => {\n const event = new StepHotelInfoViewEvent();\n raise(event);\n }, []);\n\n useEffect(() => {\n const newImages: string[] = [];\n\n if (hotel?.images?.length) {\n newImages.push(...hotel?.images);\n } else if (hotel?.rooms) {\n for (const room of Object.values(hotel?.rooms)) {\n room.images?.forEach((image) => {\n newImages.push(image);\n });\n }\n }\n\n setImages(newImages);\n }, [hotel?.rooms]);\n\n const onBookNowClick = () => {\n history.push(StepManager.getFirstStep().getStepUrl());\n };\n\n const getImage = (index: number) => {\n const openSliderOnClickHandler = () => {\n openSlider(index);\n };\n\n const resizedUrl = ImageProvider.resizeImage(images[index], ImageSize.Small);\n\n return (\n <div\n style={{ backgroundImage: `url('${resizedUrl}')`, paddingTop: '75%' }}\n className=\"c-images u-block u-w-100 u-marg-bottom u-marg-bottom--heavy\"\n onClick={openSliderOnClickHandler}\n />\n );\n };\n\n return (\n <>\n <div style={{ backgroundImage: `url('${imageUrl}')` }} className=\"c-masthead has-tint\">\n <div className=\"container\">\n <div className=\"c-masthead__body u-fill-white u-pad--heavy u-shadow-accent\">\n <h1 className=\"c-masthead__header\">{hotel?.name}</h1>\n <h2 className=\"c-masthead__sub-header\">{hotel?.address?.country}</h2>\n </div>\n </div>\n </div>\n <div className=\"u-fill-snow u-pad--heavy-med u-pad-top-bottom--heavy@m-\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-md-6 u-flex align-items-center\">\n <ul>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Map} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">\n {line1}\n <br />\n {line2} {postalCode}, {country}\n </span>\n </li>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Phone} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">{hotel?.phone}</span>\n </li>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Hotel2} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">\n <a href={hotel?.hotelUrl} style={{ color: 'var(--rs-color-accent-1)' }}>\n {hotel?.name}\n </a>\n </span>\n </li>\n <li className=\"u-flex\">\n <BEButton icon={IconType.ArrowRight} primary={true} filled={true} iconPosition={'right'} onClick={onBookNowClick}>\n {t(Translation.HotelInfo.BookNowButton)}\n </BEButton>\n </li>\n </ul>\n </div>\n <div className=\"col-md-6\">\n <div className=\"c-overlap\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy u-marg-top u-marg-top--heavy\" style={{ height: '240px' }}>\n <HotelLocationMap />\n </div>\n <div className=\"u-flex u-flex-column justify-content-center\">\n <TransportDistanceFromHotelBlock hotel={hotel} />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div className=\"u-pad u-pad--heavy-plus u-pad-top-bottom--heavy@m-\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-lg-6\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Headline bold={true}>About</Headline>\n </div>\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Text type={TextType.Small}>\n <span dangerouslySetInnerHTML={{ __html: hotel?.description?.replace('\\r\\n', '<br/><br/>') }} />\n </Text>\n {!!hotel?.locationDescription && (\n <>\n <div className=\"u-marg-top\">\n <Text type={TextType.Small}>\n <strong>Location</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>\n <span dangerouslySetInnerHTML={{ __html: hotel?.locationDescription?.replace('\\r\\n', '<br/><br/>') }} />\n </Text>\n </>\n )}\n </div>\n {!!hotel?.perks?.length && (\n <>\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Text type={TextType.Small}>\n <strong>And you get all these for free:</strong>\n </Text>\n </div>\n <div className=\"row\">\n {hotel?.perks.map((perk) => {\n return (\n <div className=\"col-6 col-md-4\" key={perk.name}>\n <div className=\"u-flex u-marg-bottom\">\n <div className=\"room-perk-icon\">{perk.iconElement ? perk.iconElement : <Icon icon={perk.icon} />}</div>\n <span className=\"u-flex__item\">\n <Text type={TextType.Small}>{perk.name}</Text>\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </>\n )}\n </div>\n {!!hotel?.hotelServices?.length && (\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--heavy\">\n <Headline bold={true}>Hotel Amenities</Headline>\n </div>\n <div className=\"row\">\n {hotel?.hotelServices.map((hotelService, index) => {\n return (\n <div key={index} className=\"col-md-6\">\n <div className=\"u-flex u-marg-bottom\">\n <Icon\n icon={IconType.Check}\n color={Color.White}\n backgroundColor={Color.Accent}\n borderRadius={'round'}\n noPadding={true}\n size=\"16px\"\n />\n <span className=\"u-flex__item u-marg-left--light\">\n <Text type={TextType.Small}>{hotelService.name}</Text>\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n )}\n {!!hotel?.policies && (\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--heavy\">\n <Headline bold={true}>Policies</Headline>\n </div>\n <Text type={TextType.Small}>\n <a href={hotel?.policies} target=\"_blank\" style={{ color: hotel?.colors.accent }} rel=\"noreferrer\">\n {hotel?.policies}\n </a>\n </Text>\n </div>\n )}\n </div>\n <div className=\"col-lg-6\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Headline bold={true}>Gallery</Headline>\n </div>\n {images.length >= 1 && getImage(0)}\n <div className=\"row\">\n {[1, 2, 3].map((index) => {\n if (images.length > index) {\n return (\n <div key={index} className=\"col-6\">\n {getImage(index)}\n </div>\n );\n }\n })}\n {images.length > 5 && (\n <div className=\"col-6\">\n <div className=\"c-images c-images--more\" onClick={openSliderOnClick}>\n {getImage(4)}\n <span>+ {images.length - 5}</span>\n </div>\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n {!!images?.length && <FsLightbox toggler={lightboxController.toggler} slide={lightboxController.slide} sources={images} type=\"image\" />}\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"HotelInfo.js","sourceRoot":"/","sources":["src/pages/hotel/HotelInfo.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,wCAAqC;AACrC,uEAAgE;AAChE,kEAA2D;AAC3D,6EAAqD;AACrD,iGAAyE;AACzE,iCAA4C;AAC5C,wEAA0C;AAC1C,2HAAmG;AACnG,2CAA4D;AAC5D,6EAAqD;AACrD,uDAA8C;AAC9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AAO,EAAE,KAAK,EAAE,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAC,OAAO,GAAG,CACxI,CACN,CAAC;AACN,CAAC;AAzOD,4BAyOC","sourcesContent":["import React from 'react';\nimport { Color } from '@/util/Color';\nimport Icon, { IconType } from '@/components/generic/Icon/Icon';\nimport Text, { TextType } from '@/components/generic/Text';\nimport Headline from '@/components/generic/Headline';\nimport HotelLocationMap from '@/components/generic/map/HotelLocationMap';\nimport { useState, useEffect } from 'react';\nimport FsLightbox from 'fslightbox-react';\nimport TransportDistanceFromHotelBlock from '@/components/summary/TransportDistanceFromHotelBlock';\nimport { useCurrentHotel, useEvent } from '@frontend/hooks';\nimport BEButton from '@/components/generic/BEButton';\nimport { useHistory } from 'react-router-dom';\nimport StepManager from '@/util/StepManager';\nimport { useTranslation } from 'react-i18next';\nimport { Translation } from 'translations/Translation';\nimport ImageProvider, { ImageSize } from '@/providers/ImageProvider';\nimport { StepHotelInfoViewEvent } from '@frontend/events';\n\nexport default function HotelInfo() {\n const { hotel } = useCurrentHotel();\n const history = useHistory();\n const { t } = useTranslation();\n\n const imageUrl = hotel?.heroImage;\n\n const { line1, line2, postalCode, country } = hotel?.address ?? {};\n\n const [lightboxController, setLightboxController] = useState({ toggler: false, slide: 1 });\n const [images, setImages] = useState<string[]>([]);\n\n const openSlider = (slide: number) => {\n setLightboxController((controller) => ({ toggler: !controller.toggler, slide: slide + 1 }));\n };\n const openSliderOnClick = () => {\n openSlider(4);\n };\n\n const { raise } = useEvent();\n\n useEffect(() => {\n const event = new StepHotelInfoViewEvent();\n raise(event);\n }, []);\n\n useEffect(() => {\n const newImages: string[] = [];\n\n if (hotel?.images?.length) {\n newImages.push(...hotel.images);\n } else if (hotel?.rooms) {\n for (const room of Object.values(hotel?.rooms)) {\n room.images?.forEach((image) => {\n newImages.push(image);\n });\n }\n }\n\n setImages(newImages);\n }, [hotel?.rooms]);\n\n const onBookNowClick = () => {\n history.push(StepManager.getFirstStep().getStepUrl());\n };\n\n const getImage = (index: number) => {\n const openSliderOnClickHandler = () => {\n openSlider(index);\n };\n\n const resizedUrl = ImageProvider.resizeImage(images[index], ImageSize.Small);\n\n return (\n <div\n style={{ backgroundImage: `url('${resizedUrl}')`, paddingTop: '75%' }}\n className=\"c-images u-block u-w-100 u-marg-bottom u-marg-bottom--heavy\"\n onClick={openSliderOnClickHandler}\n />\n );\n };\n\n return (\n <>\n <div style={{ backgroundImage: `url('${imageUrl}')` }} className=\"c-masthead has-tint\">\n <div className=\"container\">\n <div className=\"c-masthead__body u-fill-white u-pad--heavy u-shadow-accent\">\n <h1 className=\"c-masthead__header\">{hotel?.name}</h1>\n <h2 className=\"c-masthead__sub-header\">{hotel?.address?.country}</h2>\n </div>\n </div>\n </div>\n <div className=\"u-fill-snow u-pad--heavy-med u-pad-top-bottom--heavy@m-\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-md-6 u-flex align-items-center\">\n <ul>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Map} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">\n {line1}\n <br />\n {line2} {postalCode}, {country}\n </span>\n </li>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Phone} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">{hotel?.phone}</span>\n </li>\n <li className=\"u-flex u-marg-bottom--heavy\">\n <Icon icon={IconType.Hotel2} size=\"1.3em\" color={Color.Accent} />\n <span className=\"u-flex__item u-marg-left\">\n <a href={hotel?.hotelUrl} style={{ color: 'var(--rs-color-accent-1)' }}>\n {hotel?.name}\n </a>\n </span>\n </li>\n <li className=\"u-flex\">\n <BEButton icon={IconType.ArrowRight} primary filled iconPosition=\"right\" onClick={onBookNowClick}>\n {t(Translation.HotelInfo.BookNowButton)}\n </BEButton>\n </li>\n </ul>\n </div>\n <div className=\"col-md-6\">\n <div className=\"c-overlap\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy u-marg-top u-marg-top--heavy\" style={{ height: '240px' }}>\n <HotelLocationMap />\n </div>\n <div className=\"u-flex u-flex-column justify-content-center\">\n <TransportDistanceFromHotelBlock hotel={hotel} />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div className=\"u-pad u-pad--heavy-plus u-pad-top-bottom--heavy@m-\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-lg-6\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Headline bold>About</Headline>\n </div>\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Text type={TextType.Small}>\n <span dangerouslySetInnerHTML={{ __html: hotel?.description?.replace('\\r\\n', '<br/><br/>') || '' }} />\n </Text>\n {!!hotel?.locationDescription && (\n <>\n <div className=\"u-marg-top\">\n <Text type={TextType.Small}>\n <strong>Location</strong>\n </Text>\n </div>\n <Text type={TextType.Small}>\n <span dangerouslySetInnerHTML={{ __html: hotel?.locationDescription?.replace('\\r\\n', '<br/><br/>') }} />\n </Text>\n </>\n )}\n </div>\n {!!hotel?.perks?.length && (\n <>\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Text type={TextType.Small}>\n <strong>And you get all these for free:</strong>\n </Text>\n </div>\n <div className=\"row\">\n {hotel?.perks.map((perk) => {\n return (\n <div className=\"col-6 col-md-4\" key={perk.name}>\n <div className=\"u-flex u-marg-bottom\">\n <div className=\"room-perk-icon\">{perk.iconElement ? perk.iconElement : <Icon icon={perk.icon as IconType} />}</div>\n <span className=\"u-flex__item\">\n <Text type={TextType.Small}>{perk.name}</Text>\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </>\n )}\n </div>\n {!!hotel?.hotelServices?.length && (\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--heavy\">\n <Headline bold>Hotel Amenities</Headline>\n </div>\n <div className=\"row\">\n {hotel?.hotelServices.map((hotelService, index) => {\n return (\n <div key={index} className=\"col-md-6\">\n <div className=\"u-flex u-marg-bottom\">\n <Icon icon={IconType.Check} color={Color.White} backgroundColor={Color.Accent} borderRadius=\"round\" noPadding size=\"16px\" />\n <span className=\"u-flex__item u-marg-left--light\">\n <Text type={TextType.Small}>{hotelService.name}</Text>\n </span>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n )}\n {!!hotel?.policies && (\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom--heavy\">\n <Headline bold>Policies</Headline>\n </div>\n <Text type={TextType.Small}>\n <a href={hotel?.policies} target=\"_blank\" style={{ color: hotel?.colors.accent }} rel=\"noreferrer\">\n {hotel?.policies}\n </a>\n </Text>\n </div>\n )}\n </div>\n <div className=\"col-lg-6\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <div className=\"u-marg-bottom u-marg-bottom--heavy\">\n <Headline bold>Gallery</Headline>\n </div>\n {images.length >= 1 && getImage(0)}\n <div className=\"row\">\n {[1, 2, 3].map((index) => {\n if (images.length > index) {\n return (\n <div key={index} className=\"col-6\">\n {getImage(index)}\n </div>\n );\n }\n })}\n {images.length > 5 && (\n <div className=\"col-6\">\n <div className=\"c-images c-images--more\" onClick={openSliderOnClick}>\n {getImage(4)}\n <span>+ {images.length - 5}</span>\n </div>\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n {!!images?.length && <FsLightbox toggler={lightboxController.toggler} slide={lightboxController.slide} sources={images} type=\"image\" />}\n </>\n );\n}\n"]}