@roomstay/frontend 1.6.1 → 2.0.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1056) hide show
  1. package/dist/201.bundle.js +1 -1
  2. package/dist/218.bundle.js +1 -0
  3. package/dist/279.bundle.js +1 -1
  4. package/dist/370.bundle.js +1 -1
  5. package/dist/423.bundle.js +1 -0
  6. package/dist/449.bundle.js +1 -1
  7. package/dist/625.bundle.js +1 -1
  8. package/dist/873.bundle.js +1 -1
  9. package/dist/882.bundle.js +1 -0
  10. package/dist/972.bundle.js +1 -1
  11. package/dist/main.bundle.js +1 -1
  12. package/dist/src/animations/AutoAutoHeight.d.ts +1 -0
  13. package/dist/src/animations/AutoAutoHeight.js +14 -8
  14. package/dist/src/animations/AutoAutoHeight.js.map +1 -1
  15. package/dist/src/animations/Fade.d.ts +7 -3
  16. package/dist/src/animations/Fade.js +14 -3
  17. package/dist/src/animations/Fade.js.map +1 -1
  18. package/dist/src/api/AddonAPI.d.ts +3 -3
  19. package/dist/src/api/AddonAPI.js +3 -3
  20. package/dist/src/api/AddonAPI.js.map +1 -1
  21. package/dist/src/api/AvailabilityAPI.d.ts +3 -3
  22. package/dist/src/api/AvailabilityAPI.js +9 -8
  23. package/dist/src/api/AvailabilityAPI.js.map +1 -1
  24. package/dist/src/api/BaseAPI.d.ts +8 -3
  25. package/dist/src/api/BaseAPI.js +22 -9
  26. package/dist/src/api/BaseAPI.js.map +1 -1
  27. package/dist/src/api/BookingAPI.d.ts +9 -7
  28. package/dist/src/api/BookingAPI.js +9 -7
  29. package/dist/src/api/BookingAPI.js.map +1 -1
  30. package/dist/src/api/ErrorAPI.d.ts +6 -0
  31. package/dist/src/api/ErrorAPI.js +15 -0
  32. package/dist/src/api/ErrorAPI.js.map +1 -1
  33. package/dist/src/api/ExchangeRateAPI.d.ts +2 -2
  34. package/dist/src/api/ExchangeRateAPI.js +14 -8
  35. package/dist/src/api/ExchangeRateAPI.js.map +1 -1
  36. package/dist/src/api/HotelAPI.d.ts +5 -5
  37. package/dist/src/api/HotelAPI.js +7 -3
  38. package/dist/src/api/HotelAPI.js.map +1 -1
  39. package/dist/src/api/MemberAPI.d.ts +1 -1
  40. package/dist/src/api/MemberAPI.js +1 -1
  41. package/dist/src/api/MemberAPI.js.map +1 -1
  42. package/dist/src/api/ReservationAPI.d.ts +19 -9
  43. package/dist/src/api/ReservationAPI.js +15 -7
  44. package/dist/src/api/ReservationAPI.js.map +1 -1
  45. package/dist/src/api/SessionAPI.d.ts +4 -0
  46. package/dist/src/api/SessionAPI.js +23 -0
  47. package/dist/src/api/SessionAPI.js.map +1 -0
  48. package/dist/src/api/members-service/MembersServiceAPI.d.ts +6 -0
  49. package/dist/src/api/members-service/MembersServiceAPI.js +77 -0
  50. package/dist/src/api/members-service/MembersServiceAPI.js.map +1 -0
  51. package/dist/src/components/User/Forms/ForgotPasswordForm.d.ts +6 -0
  52. package/dist/src/components/User/Forms/ForgotPasswordForm.js +108 -0
  53. package/dist/src/components/User/Forms/ForgotPasswordForm.js.map +1 -0
  54. package/dist/src/components/User/Forms/SignInForm.d.ts +6 -0
  55. package/dist/src/components/User/Forms/SignInForm.js +113 -0
  56. package/dist/src/components/User/Forms/SignInForm.js.map +1 -0
  57. package/dist/src/components/User/Forms/SignUpForm.d.ts +6 -0
  58. package/dist/src/components/User/Forms/SignUpForm.js +159 -0
  59. package/dist/src/components/User/Forms/SignUpForm.js.map +1 -0
  60. package/dist/src/components/generic/Alert.d.ts +11 -3
  61. package/dist/src/components/generic/Alert.js +9 -5
  62. package/dist/src/components/generic/Alert.js.map +1 -1
  63. package/dist/src/components/generic/BEButton.d.ts +9 -4
  64. package/dist/src/components/generic/BEButton.js +12 -12
  65. package/dist/src/components/generic/BEButton.js.map +1 -1
  66. package/dist/src/components/generic/BESelect.d.ts +4 -1
  67. package/dist/src/components/generic/BESelect.js +5 -40
  68. package/dist/src/components/generic/BESelect.js.map +1 -1
  69. package/dist/src/components/generic/BackButton.js +4 -4
  70. package/dist/src/components/generic/BackButton.js.map +1 -1
  71. package/dist/src/components/generic/BookNowPayLaterInfoBlock.js +6 -6
  72. package/dist/src/components/generic/BookNowPayLaterInfoBlock.js.map +1 -1
  73. package/dist/src/components/generic/Card/Card/Card.d.ts +7 -0
  74. package/dist/src/components/generic/Card/Card/Card.js +14 -0
  75. package/dist/src/components/generic/Card/Card/Card.js.map +1 -0
  76. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.d.ts +15 -0
  77. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js +33 -0
  78. package/dist/src/components/generic/Card/IconNavCard/IconNavCard.js.map +1 -0
  79. package/dist/src/components/generic/{Checkbox.d.ts → Checkbox/Checkbox.d.ts} +1 -1
  80. package/dist/src/components/generic/Checkbox/Checkbox.js +35 -0
  81. package/dist/src/components/generic/Checkbox/Checkbox.js.map +1 -0
  82. package/dist/src/components/generic/Countdown.js +3 -3
  83. package/dist/src/components/generic/Countdown.js.map +1 -1
  84. package/dist/src/components/generic/Currency.js +9 -9
  85. package/dist/src/components/generic/Currency.js.map +1 -1
  86. package/dist/src/components/generic/Distance.js +4 -4
  87. package/dist/src/components/generic/Distance.js.map +1 -1
  88. package/dist/src/components/generic/ForwardedSelect.d.ts +12 -0
  89. package/dist/src/components/generic/ForwardedSelect.js +16 -0
  90. package/dist/src/components/generic/ForwardedSelect.js.map +1 -0
  91. package/dist/src/components/generic/Headline.d.ts +5 -3
  92. package/dist/src/components/generic/Headline.js +2 -1
  93. package/dist/src/components/generic/Headline.js.map +1 -1
  94. package/dist/src/components/generic/{Icon.d.ts → Icon/Icon.d.ts} +6 -2
  95. package/dist/src/components/generic/{Icon.js → Icon/Icon.js} +10 -5
  96. package/dist/src/components/generic/Icon/Icon.js.map +1 -0
  97. package/dist/src/components/generic/IconText/IconText.d.ts +10 -0
  98. package/dist/src/components/generic/IconText/IconText.js +21 -0
  99. package/dist/src/components/generic/IconText/IconText.js.map +1 -0
  100. package/dist/src/components/generic/InputGroup/InputGroup.d.ts +1 -1
  101. package/dist/src/components/generic/InputGroup/InputGroup.js.map +1 -1
  102. package/dist/src/components/generic/InputGroup/InputGroup.types.d.ts +1 -1
  103. package/dist/src/components/generic/LineBreak.d.ts +1 -0
  104. package/dist/src/components/generic/LineBreak.js +1 -0
  105. package/dist/src/components/generic/LineBreak.js.map +1 -1
  106. package/dist/src/components/generic/Notification.d.ts +1 -1
  107. package/dist/src/components/generic/Notification.js +5 -5
  108. package/dist/src/components/generic/Notification.js.map +1 -1
  109. package/dist/src/components/generic/NumberIncrement.js +5 -5
  110. package/dist/src/components/generic/NumberIncrement.js.map +1 -1
  111. package/dist/src/components/generic/Overlay/Overlay.d.ts +18 -0
  112. package/dist/src/components/generic/Overlay/Overlay.js +93 -0
  113. package/dist/src/components/generic/Overlay/Overlay.js.map +1 -0
  114. package/dist/src/components/generic/PasswordBox/PasswordBox.d.ts +3 -0
  115. package/dist/src/components/generic/PasswordBox/PasswordBox.js +20 -0
  116. package/dist/src/components/generic/PasswordBox/PasswordBox.js.map +1 -0
  117. package/dist/src/components/generic/PaymentCard/CardTypeSelect.d.ts +9 -0
  118. package/dist/src/components/generic/PaymentCard/CardTypeSelect.js +30 -0
  119. package/dist/src/components/generic/PaymentCard/CardTypeSelect.js.map +1 -0
  120. package/dist/src/components/generic/PaymentCard/PaymentCard.d.ts +6 -0
  121. package/dist/src/components/generic/PaymentCard/PaymentCard.js +54 -0
  122. package/dist/src/components/generic/PaymentCard/PaymentCard.js.map +1 -0
  123. package/dist/src/components/generic/PaymentCard/PaymentCardInput.d.ts +11 -0
  124. package/dist/src/components/generic/PaymentCard/PaymentCardInput.js +201 -0
  125. package/dist/src/components/generic/PaymentCard/PaymentCardInput.js.map +1 -0
  126. package/dist/src/components/generic/Pill.d.ts +11 -3
  127. package/dist/src/components/generic/Pill.js +10 -3
  128. package/dist/src/components/generic/Pill.js.map +1 -1
  129. package/dist/src/components/generic/Placeholder.d.ts +2 -1
  130. package/dist/src/components/generic/Placeholder.js +2 -1
  131. package/dist/src/components/generic/Placeholder.js.map +1 -1
  132. package/dist/src/components/generic/PlanpayButton/PlanpayButton.d.ts +6 -0
  133. package/dist/src/components/generic/PlanpayButton/PlanpayButton.js +11 -0
  134. package/dist/src/components/generic/PlanpayButton/PlanpayButton.js.map +1 -0
  135. package/dist/src/components/generic/Portal/Portal.d.ts +9 -0
  136. package/dist/src/components/generic/Portal/Portal.js +10 -0
  137. package/dist/src/components/generic/Portal/Portal.js.map +1 -0
  138. package/dist/src/components/generic/PromoCodeInput.js +22 -20
  139. package/dist/src/components/generic/PromoCodeInput.js.map +1 -1
  140. package/dist/src/components/generic/RadioButtonGroup/RadioButton.d.ts +11 -0
  141. package/dist/src/components/generic/RadioButtonGroup/RadioButton.js +21 -0
  142. package/dist/src/components/generic/RadioButtonGroup/RadioButton.js.map +1 -0
  143. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.d.ts +15 -0
  144. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js +20 -0
  145. package/dist/src/components/generic/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  146. package/dist/src/components/generic/RecentSearchesCard.d.ts +1 -1
  147. package/dist/src/components/generic/RecentSearchesCard.js +9 -9
  148. package/dist/src/components/generic/RecentSearchesCard.js.map +1 -1
  149. package/dist/src/components/generic/ScrollToTop.js +3 -3
  150. package/dist/src/components/generic/ScrollToTop.js.map +1 -1
  151. package/dist/src/components/generic/Select/Select.d.ts +24 -0
  152. package/dist/src/components/generic/Select/Select.js +64 -0
  153. package/dist/src/components/generic/Select/Select.js.map +1 -0
  154. package/dist/src/components/generic/Select.js +2 -2
  155. package/dist/src/components/generic/Select.js.map +1 -1
  156. package/dist/src/components/generic/Slider/Slider.d.ts +22 -0
  157. package/dist/src/components/generic/Slider/Slider.js +111 -0
  158. package/dist/src/components/generic/Slider/Slider.js.map +1 -0
  159. package/dist/src/components/generic/Tabs/ElementChildren.d.ts +3 -0
  160. package/dist/src/components/generic/Tabs/ElementChildren.js +18 -0
  161. package/dist/src/components/generic/Tabs/ElementChildren.js.map +1 -0
  162. package/dist/src/components/generic/Tabs/Tab.d.ts +9 -0
  163. package/dist/src/components/generic/Tabs/Tab.js +13 -0
  164. package/dist/src/components/generic/Tabs/Tab.js.map +1 -0
  165. package/dist/src/components/generic/Tabs/TabContext.d.ts +16 -0
  166. package/dist/src/components/generic/Tabs/TabContext.js +39 -0
  167. package/dist/src/components/generic/Tabs/TabContext.js.map +1 -0
  168. package/dist/src/components/generic/Tabs/TabLink.d.ts +1 -0
  169. package/dist/src/components/generic/Tabs/TabLink.js +30 -0
  170. package/dist/src/components/generic/Tabs/TabLink.js.map +1 -0
  171. package/dist/src/components/generic/Tabs/TabRouteContainer.d.ts +6 -0
  172. package/dist/src/components/generic/Tabs/TabRouteContainer.js +30 -0
  173. package/dist/src/components/generic/Tabs/TabRouteContainer.js.map +1 -0
  174. package/dist/src/components/generic/Tabs/Tabs.d.ts +12 -0
  175. package/dist/src/components/generic/Tabs/Tabs.js +39 -0
  176. package/dist/src/components/generic/Tabs/Tabs.js.map +1 -0
  177. package/dist/src/components/generic/Text.d.ts +6 -3
  178. package/dist/src/components/generic/Text.js +2 -2
  179. package/dist/src/components/generic/Text.js.map +1 -1
  180. package/dist/src/components/generic/TextArea.d.ts +2 -1
  181. package/dist/src/components/generic/TextArea.js +3 -3
  182. package/dist/src/components/generic/TextArea.js.map +1 -1
  183. package/dist/src/components/generic/TextBox.d.ts +5 -3
  184. package/dist/src/components/generic/TextBox.js +18 -14
  185. package/dist/src/components/generic/TextBox.js.map +1 -1
  186. package/dist/src/components/generic/Tooltip/Tooltip.d.ts +8 -0
  187. package/dist/src/components/generic/Tooltip/Tooltip.js +26 -0
  188. package/dist/src/components/generic/Tooltip/Tooltip.js.map +1 -0
  189. package/dist/src/components/generic/badging/SSLSecureBadge.js +3 -3
  190. package/dist/src/components/generic/badging/SSLSecureBadge.js.map +1 -1
  191. package/dist/src/components/generic/buttons/NextStepButton.d.ts +1 -1
  192. package/dist/src/components/generic/buttons/NextStepButton.js +5 -5
  193. package/dist/src/components/generic/buttons/NextStepButton.js.map +1 -1
  194. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.d.ts +10 -7
  195. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js +37 -58
  196. package/dist/src/components/generic/custom/EnhancedPhoneNumberField/EnhancedPhoneNumberField.js.map +1 -1
  197. package/dist/src/components/generic/date/DatePicker.js +29 -28
  198. package/dist/src/components/generic/date/DatePicker.js.map +1 -1
  199. package/dist/src/components/generic/date/DatePickerDay.js +21 -22
  200. package/dist/src/components/generic/date/DatePickerDay.js.map +1 -1
  201. package/dist/src/components/generic/date/DatePickerDays.js +5 -5
  202. package/dist/src/components/generic/date/DatePickerDays.js.map +1 -1
  203. package/dist/src/components/generic/date/DatePickerMonth.js +8 -8
  204. package/dist/src/components/generic/date/DatePickerMonth.js.map +1 -1
  205. package/dist/src/components/generic/date/DatePickerWeek.js +23 -24
  206. package/dist/src/components/generic/date/DatePickerWeek.js.map +1 -1
  207. package/dist/src/components/generic/date/FloatingDatePicker.js +14 -45
  208. package/dist/src/components/generic/date/FloatingDatePicker.js.map +1 -1
  209. package/dist/src/components/generic/loader/ImageLoader.d.ts +1 -1
  210. package/dist/src/components/generic/loader/ImageLoader.js +6 -6
  211. package/dist/src/components/generic/loader/ImageLoader.js.map +1 -1
  212. package/dist/src/components/generic/loader/LargeLoader.js +5 -5
  213. package/dist/src/components/generic/loader/LargeLoader.js.map +1 -1
  214. package/dist/src/components/generic/loader/SmallSpinner.d.ts +1 -1
  215. package/dist/src/components/generic/loader/SmallSpinner.js +2 -2
  216. package/dist/src/components/generic/loader/SmallSpinner.js.map +1 -1
  217. package/dist/src/components/generic/map/HotelLocationMap.js +2 -2
  218. package/dist/src/components/generic/map/HotelLocationMap.js.map +1 -1
  219. package/dist/src/components/generic/modal/ConfirmationModal.js +3 -3
  220. package/dist/src/components/generic/modal/ConfirmationModal.js.map +1 -1
  221. package/dist/src/components/generic/modal/ErrorModal.js +3 -3
  222. package/dist/src/components/generic/modal/ErrorModal.js.map +1 -1
  223. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.d.ts +8 -0
  224. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js +73 -0
  225. package/dist/src/components/generic/modal/SigninModal/AuthenticatedUserModal.js.map +1 -0
  226. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.d.ts +15 -0
  227. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js +82 -0
  228. package/dist/src/components/generic/modal/SigninModal/UnauthenticatedUserModal.js.map +1 -0
  229. package/dist/src/components/generic/modal/SimpleModal.d.ts +2 -3
  230. package/dist/src/components/generic/modal/SimpleModal.js +67 -55
  231. package/dist/src/components/generic/modal/SimpleModal.js.map +1 -1
  232. package/dist/src/components/generic/modal/TabbedModal.js +3 -3
  233. package/dist/src/components/generic/modal/TabbedModal.js.map +1 -1
  234. package/dist/src/components/generic/radio/RadioFields.js +2 -2
  235. package/dist/src/components/generic/radio/RadioFields.js.map +1 -1
  236. package/dist/src/components/members/EditMyProfile.d.ts +3 -0
  237. package/dist/src/components/members/EditMyProfile.js +103 -0
  238. package/dist/src/components/members/EditMyProfile.js.map +1 -0
  239. package/dist/src/components/navigation/Header.js +73 -32
  240. package/dist/src/components/navigation/Header.js.map +1 -1
  241. package/dist/src/components/navigation/StepSelector.js +15 -14
  242. package/dist/src/components/navigation/StepSelector.js.map +1 -1
  243. package/dist/src/components/navigation/StepSelectorModal.js +9 -9
  244. package/dist/src/components/navigation/StepSelectorModal.js.map +1 -1
  245. package/dist/src/components/pages/Account/Card/CardList.d.ts +15 -0
  246. package/dist/src/components/pages/Account/Card/CardList.js +36 -0
  247. package/dist/src/components/pages/Account/Card/CardList.js.map +1 -0
  248. package/dist/src/components/pages/Account/Card/MemberCardItem.d.ts +8 -0
  249. package/dist/src/components/pages/Account/Card/MemberCardItem.js +38 -0
  250. package/dist/src/components/pages/Account/Card/MemberCardItem.js.map +1 -0
  251. package/dist/src/components/pages/PageColorComponent.d.ts +1 -0
  252. package/dist/src/components/pages/PageColorComponent.js +18 -0
  253. package/dist/src/components/pages/PageColorComponent.js.map +1 -0
  254. package/dist/src/components/reservation/ReservationItem.d.ts +16 -0
  255. package/dist/src/components/reservation/ReservationItem.js +145 -0
  256. package/dist/src/components/reservation/ReservationItem.js.map +1 -0
  257. package/dist/src/components/reservation/ReservationList.d.ts +11 -0
  258. package/dist/src/components/reservation/ReservationList.js +10 -0
  259. package/dist/src/components/reservation/ReservationList.js.map +1 -0
  260. package/dist/src/components/steps/DaysSelectedInformer.js +4 -4
  261. package/dist/src/components/steps/DaysSelectedInformer.js.map +1 -1
  262. package/dist/src/components/steps/MinimumNightStayPill.js +14 -14
  263. package/dist/src/components/steps/MinimumNightStayPill.js.map +1 -1
  264. package/dist/src/components/steps/addons/AddonCard.d.ts +1 -1
  265. package/dist/src/components/steps/addons/AddonCard.js +22 -22
  266. package/dist/src/components/steps/addons/AddonCard.js.map +1 -1
  267. package/dist/src/components/steps/addons/AddonList.js +12 -12
  268. package/dist/src/components/steps/addons/AddonList.js.map +1 -1
  269. package/dist/src/components/steps/addons/AddonsNotFound.js +5 -5
  270. package/dist/src/components/steps/addons/AddonsNotFound.js.map +1 -1
  271. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.d.ts +1 -1
  272. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js +4 -3
  273. package/dist/src/components/steps/common/CommonAddonSummary/CommonAddonSummary.js.map +1 -1
  274. package/dist/src/components/steps/confirmation/AccountDetails.js +9 -9
  275. package/dist/src/components/steps/confirmation/AccountDetails.js.map +1 -1
  276. package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.d.ts +8 -0
  277. package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js +31 -0
  278. package/dist/src/components/steps/confirmation/PaymentDetails/AcceptablePaymentCard.js.map +1 -0
  279. package/dist/src/components/steps/confirmation/PaymentDetails/CardPaymentDetails.d.ts +0 -0
  280. package/dist/src/components/steps/confirmation/PaymentDetails/CardPaymentDetails.js +1 -0
  281. package/dist/src/components/steps/confirmation/PaymentDetails/CardPaymentDetails.js.map +1 -0
  282. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.d.ts +6 -0
  283. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js +41 -0
  284. package/dist/src/components/steps/confirmation/PaymentDetails/ExistingCardPicker.js.map +1 -0
  285. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.d.ts +3 -0
  286. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js +196 -0
  287. package/dist/src/components/steps/confirmation/PaymentDetails/StepConfirmationPaymentDetails.js.map +1 -0
  288. package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.d.ts +2 -0
  289. package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js +58 -0
  290. package/dist/src/components/steps/confirmation/PlanpayPaymentMethod.js.map +1 -0
  291. package/dist/src/components/steps/confirmation/RoomContactDetails.d.ts +3 -8
  292. package/dist/src/components/steps/confirmation/RoomContactDetails.js +262 -201
  293. package/dist/src/components/steps/confirmation/RoomContactDetails.js.map +1 -1
  294. package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.d.ts +3 -6
  295. package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js +29 -19
  296. package/dist/src/components/steps/confirmation/StepConfirmationAcknowledgement.js.map +1 -1
  297. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.d.ts +1 -1
  298. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js +13 -13
  299. package/dist/src/components/steps/confirmation/StepConfirmationCheckoutDifferencesModal.js.map +1 -1
  300. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.d.ts +2 -1
  301. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js +22 -10
  302. package/dist/src/components/steps/confirmation/StepConfirmationCommentsComponent.js.map +1 -1
  303. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.d.ts +10 -8
  304. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js +82 -54
  305. package/dist/src/components/steps/confirmation/StepConfirmationCountrySelector.js.map +1 -1
  306. package/dist/src/components/steps/confirmation/StepConfirmationForm.js +229 -302
  307. package/dist/src/components/steps/confirmation/StepConfirmationForm.js.map +1 -1
  308. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.d.ts +1 -0
  309. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js +11 -0
  310. package/dist/src/components/steps/confirmation/StepConfirmationFormProvider.js.map +1 -0
  311. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js +7 -7
  312. package/dist/src/components/steps/confirmation/StepConfirmationLimitedOffer.js.map +1 -1
  313. package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.js +31 -34
  314. package/dist/src/components/steps/confirmation/StepConfirmationPaymentDetails.js.map +1 -1
  315. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js +5 -5
  316. package/dist/src/components/steps/confirmation/StepConfirmationPoliciesSection.js.map +1 -1
  317. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js +5 -5
  318. package/dist/src/components/steps/confirmation/StepConfirmationPolicyBlock.js.map +1 -1
  319. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js +23 -23
  320. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffers.js.map +1 -1
  321. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.d.ts +1 -1
  322. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js +3 -3
  323. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersColumn.js.map +1 -1
  324. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.d.ts +2 -2
  325. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js +17 -17
  326. package/dist/src/components/steps/confirmation/additionalOffers/AdditionalOffersModal.js.map +1 -1
  327. package/dist/src/components/steps/date/PeoplePicker.js +9 -9
  328. package/dist/src/components/steps/date/PeoplePicker.js.map +1 -1
  329. package/dist/src/components/steps/date/PeoplePickerRow.js +13 -13
  330. package/dist/src/components/steps/date/PeoplePickerRow.js.map +1 -1
  331. package/dist/src/components/steps/date/StepDatePricePerRoom.js +15 -15
  332. package/dist/src/components/steps/date/StepDatePricePerRoom.js.map +1 -1
  333. package/dist/src/components/steps/date/StepOneDateRange.js +7 -7
  334. package/dist/src/components/steps/date/StepOneDateRange.js.map +1 -1
  335. package/dist/src/components/steps/date/StepOneDateRangePicker.js +6 -6
  336. package/dist/src/components/steps/date/StepOneDateRangePicker.js.map +1 -1
  337. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js +6 -6
  338. package/dist/src/components/steps/date/StepOneDateRangePickerLegend.js.map +1 -1
  339. package/dist/src/components/steps/date/StepOneNextStepButton.js +6 -6
  340. package/dist/src/components/steps/date/StepOneNextStepButton.js.map +1 -1
  341. package/dist/src/components/steps/date/StepOneStatusPeople.js +1 -1
  342. package/dist/src/components/steps/date/StepOneStatusPeople.js.map +1 -1
  343. package/dist/src/components/steps/hotel/HotelCard.d.ts +1 -1
  344. package/dist/src/components/steps/hotel/HotelCard.js +31 -31
  345. package/dist/src/components/steps/hotel/HotelCard.js.map +1 -1
  346. package/dist/src/components/steps/hotel/HotelCardList.d.ts +1 -1
  347. package/dist/src/components/steps/hotel/HotelCardList.js +2 -2
  348. package/dist/src/components/steps/hotel/HotelCardList.js.map +1 -1
  349. package/dist/src/components/steps/hotel/HotelCardModal.d.ts +2 -3
  350. package/dist/src/components/steps/hotel/HotelCardModal.js +20 -20
  351. package/dist/src/components/steps/hotel/HotelCardModal.js.map +1 -1
  352. package/dist/src/components/steps/hotel/HotelSearchParameters.js +24 -31
  353. package/dist/src/components/steps/hotel/HotelSearchParameters.js.map +1 -1
  354. package/dist/src/components/steps/hotel/NoHotelsAvailable.js +4 -4
  355. package/dist/src/components/steps/hotel/NoHotelsAvailable.js.map +1 -1
  356. package/dist/src/components/steps/room/AvailableUpgradesModal.js +23 -24
  357. package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -1
  358. package/dist/src/components/steps/room/ImageGallerySlider.d.ts +1 -1
  359. package/dist/src/components/steps/room/ImageGallerySlider.js +14 -14
  360. package/dist/src/components/steps/room/ImageGallerySlider.js.map +1 -1
  361. package/dist/src/components/steps/room/InactivityWindow.js +22 -22
  362. package/dist/src/components/steps/room/InactivityWindow.js.map +1 -1
  363. package/dist/src/components/steps/room/LargeRoomCard.d.ts +1 -1
  364. package/dist/src/components/steps/room/LargeRoomCard.js +14 -14
  365. package/dist/src/components/steps/room/LargeRoomCard.js.map +1 -1
  366. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js +39 -45
  367. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.js.map +1 -1
  368. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.d.ts +1 -1
  369. package/dist/src/components/steps/room/MemberSignInModal/MemberSignInModal.types.js.map +1 -1
  370. package/dist/src/components/steps/room/NoRoomsFoundBlock.js +22 -22
  371. package/dist/src/components/steps/room/NoRoomsFoundBlock.js.map +1 -1
  372. package/dist/src/components/steps/room/RatesNotFound.js +3 -3
  373. package/dist/src/components/steps/room/RatesNotFound.js.map +1 -1
  374. package/dist/src/components/steps/room/RoomList.js +53 -23
  375. package/dist/src/components/steps/room/RoomList.js.map +1 -1
  376. package/dist/src/components/steps/room/RoomListAlert.d.ts +2 -0
  377. package/dist/src/components/steps/room/RoomListAlert.js +27 -0
  378. package/dist/src/components/steps/room/RoomListAlert.js.map +1 -0
  379. package/dist/src/components/steps/room/RoomListCrossSellBlock.js +24 -26
  380. package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -1
  381. package/dist/src/components/steps/room/RoomModal.d.ts +2 -2
  382. package/dist/src/components/steps/room/RoomModal.js +12 -12
  383. package/dist/src/components/steps/room/RoomModal.js.map +1 -1
  384. package/dist/src/components/steps/room/StepRoomAlertBlocks.js +8 -8
  385. package/dist/src/components/steps/room/StepRoomAlertBlocks.js.map +1 -1
  386. package/dist/src/components/steps/room/StepRoomBestRateAlert.js +8 -8
  387. package/dist/src/components/steps/room/StepRoomBestRateAlert.js.map +1 -1
  388. package/dist/src/components/steps/room/StepRoomErrorForm.js +10 -10
  389. package/dist/src/components/steps/room/StepRoomErrorForm.js.map +1 -1
  390. package/dist/src/components/steps/room/StepRoomHotelDetails.js +8 -9
  391. package/dist/src/components/steps/room/StepRoomHotelDetails.js.map +1 -1
  392. package/dist/src/components/steps/room/StepRoomNextStepButton.js +5 -5
  393. package/dist/src/components/steps/room/StepRoomNextStepButton.js.map +1 -1
  394. package/dist/src/components/steps/room/StepRoomSortBy.js +6 -6
  395. package/dist/src/components/steps/room/StepRoomSortBy.js.map +1 -1
  396. package/dist/src/components/steps/room/StepRoomSummaryAndButton.js +13 -13
  397. package/dist/src/components/steps/room/StepRoomSummaryAndButton.js.map +1 -1
  398. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.d.ts +1 -1
  399. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js +6 -6
  400. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfAdultsPicker.js.map +1 -1
  401. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.d.ts +1 -1
  402. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js +6 -6
  403. package/dist/src/components/steps/room/roomBuilderProgress/NumberOfChildrenPicker.js.map +1 -1
  404. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js +9 -9
  405. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgress.js.map +1 -1
  406. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.d.ts +1 -1
  407. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +35 -42
  408. package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js.map +1 -1
  409. package/dist/src/components/steps/room/roomDetails/RoomDetails.d.ts +1 -1
  410. package/dist/src/components/steps/room/roomDetails/RoomDetails.js +37 -37
  411. package/dist/src/components/steps/room/roomDetails/RoomDetails.js.map +1 -1
  412. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.d.ts +3 -1
  413. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +9 -8
  414. package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js.map +1 -1
  415. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.d.ts +1 -1
  416. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js +5 -5
  417. package/dist/src/components/steps/room/roomDetails/RoomDetailsPerkBlock.js.map +1 -1
  418. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js +10 -10
  419. package/dist/src/components/steps/room/roomDetails/RoomDetailsPriceBlock.js.map +1 -1
  420. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.d.ts +7 -0
  421. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js +99 -0
  422. package/dist/src/components/steps/room/roomDetails/RoomDetailsRetargeting.js.map +1 -0
  423. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.d.ts +1 -1
  424. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js +4 -4
  425. package/dist/src/components/steps/room/roomDetails/roomRates/BookNowButton.js.map +1 -1
  426. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +11 -11
  427. package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js.map +1 -1
  428. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.d.ts +1 -1
  429. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js +15 -14
  430. package/dist/src/components/steps/room/roomDetails/roomRates/PriceBreakdownBlock.js.map +1 -1
  431. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.d.ts +1 -1
  432. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js +16 -15
  433. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDescriptionTab.js.map +1 -1
  434. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.d.ts +1 -1
  435. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js +4 -4
  436. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateDetailsAndPriceBreakdownModal.js.map +1 -1
  437. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.d.ts +2 -3
  438. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js +16 -16
  439. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRatePills.js.map +1 -1
  440. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.d.ts +1 -1
  441. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js +22 -22
  442. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateRow.js.map +1 -1
  443. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.d.ts +1 -1
  444. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js +25 -32
  445. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRates.js.map +1 -1
  446. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js +7 -7
  447. package/dist/src/components/steps/room/roomFilter/AppliedFiltersBlock.js.map +1 -1
  448. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.d.ts +1 -1
  449. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js +22 -39
  450. package/dist/src/components/steps/room/roomFilter/RoomFilterOverlay.js.map +1 -1
  451. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.d.ts +2 -2
  452. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js +65 -27
  453. package/dist/src/components/steps/room/roomFilter/RoomFilterPriceSlider.js.map +1 -1
  454. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.d.ts +2 -2
  455. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js +13 -13
  456. package/dist/src/components/steps/room/roomFilter/RoomFilterRateType.js.map +1 -1
  457. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.d.ts +2 -2
  458. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js +13 -13
  459. package/dist/src/components/steps/room/roomFilter/RoomFilterRoomType.js.map +1 -1
  460. package/dist/src/components/summary/BEMapWidget.js +7 -7
  461. package/dist/src/components/summary/BEMapWidget.js.map +1 -1
  462. package/dist/src/components/summary/BEMobileSummary.js +15 -15
  463. package/dist/src/components/summary/BEMobileSummary.js.map +1 -1
  464. package/dist/src/components/summary/BEMobileSummaryModal.js +25 -26
  465. package/dist/src/components/summary/BEMobileSummaryModal.js.map +1 -1
  466. package/dist/src/components/summary/BESummary.d.ts +1 -1
  467. package/dist/src/components/summary/BESummary.js +22 -25
  468. package/dist/src/components/summary/BESummary.js.map +1 -1
  469. package/dist/src/components/summary/BESummaryAddonRow.d.ts +1 -1
  470. package/dist/src/components/summary/BESummaryAddonRow.js +9 -9
  471. package/dist/src/components/summary/BESummaryAddonRow.js.map +1 -1
  472. package/dist/src/components/summary/BESummaryPerkBlock.js +8 -8
  473. package/dist/src/components/summary/BESummaryPerkBlock.js.map +1 -1
  474. package/dist/src/components/summary/BESummaryPrivacyPolicy.js +5 -5
  475. package/dist/src/components/summary/BESummaryPrivacyPolicy.js.map +1 -1
  476. package/dist/src/components/summary/BESummaryRoomRow.d.ts +1 -1
  477. package/dist/src/components/summary/BESummaryRoomRow.js +19 -19
  478. package/dist/src/components/summary/BESummaryRoomRow.js.map +1 -1
  479. package/dist/src/components/summary/TransportDistanceFromHotelBlock.d.ts +1 -1
  480. package/dist/src/components/summary/TransportDistanceFromHotelBlock.js +7 -7
  481. package/dist/src/components/summary/TransportDistanceFromHotelBlock.js.map +1 -1
  482. package/dist/src/components/temp/Login.d.ts +2 -0
  483. package/dist/src/components/temp/Login.js +53 -0
  484. package/dist/src/components/temp/Login.js.map +1 -0
  485. package/dist/src/containers/PrivateRoute.d.ts +3 -0
  486. package/dist/src/containers/PrivateRoute.js +31 -0
  487. package/dist/src/containers/PrivateRoute.js.map +1 -0
  488. package/dist/src/contexts/BasketContext/BasketContext.d.ts +2 -1
  489. package/dist/src/contexts/BasketContext/BasketContext.js +4 -2
  490. package/dist/src/contexts/BasketContext/BasketContext.js.map +1 -1
  491. package/dist/src/contexts/BasketContext/BasketContextType.d.ts +7 -7
  492. package/dist/src/contexts/BasketContext/BasketContextType.js.map +1 -1
  493. package/dist/src/contexts/BasketContext/BasketContextWrapper.js +70 -56
  494. package/dist/src/contexts/BasketContext/BasketContextWrapper.js.map +1 -1
  495. package/dist/src/contexts/BookingEngineContext/BookingEngineContext.d.ts +1 -0
  496. package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js +4 -2
  497. package/dist/src/contexts/BookingEngineContext/BookingEngineContext.js.map +1 -1
  498. package/dist/src/contexts/BookingEngineContext/BookingEngineContextType.types.d.ts +2 -2
  499. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js +4 -4
  500. package/dist/src/contexts/BookingEngineContext/BookingEngineContextWrapper.js.map +1 -1
  501. package/dist/src/contexts/CompanyContext/CompanyContext.js +1 -1
  502. package/dist/src/contexts/CompanyContext/CompanyContext.js.map +1 -1
  503. package/dist/src/contexts/CompanyContext/CompanyContextType.type.d.ts +13 -9
  504. package/dist/src/contexts/CompanyContext/CompanyContextType.type.js.map +1 -1
  505. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.d.ts +1 -1
  506. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js +37 -42
  507. package/dist/src/contexts/CompanyContext/CompanyContextWrapper.js.map +1 -1
  508. package/dist/src/contexts/ConfirmationFormContext.d.ts +3 -3
  509. package/dist/src/contexts/ConfirmationFormContext.js +4 -5
  510. package/dist/src/contexts/ConfirmationFormContext.js.map +1 -1
  511. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContext.d.ts +4 -0
  512. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContext.js +8 -0
  513. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContext.js.map +1 -0
  514. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextTypes.d.ts +12 -0
  515. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextTypes.js +3 -0
  516. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextTypes.js.map +1 -0
  517. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.d.ts +2 -0
  518. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js +188 -0
  519. package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js.map +1 -0
  520. package/dist/src/contexts/ErrorContext.js +3 -3
  521. package/dist/src/contexts/ErrorContext.js.map +1 -1
  522. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js +1 -1
  523. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContext.js.map +1 -1
  524. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js +46 -35
  525. package/dist/src/contexts/FullPageEngineContext/FullPageEngineContextWrapper.js.map +1 -1
  526. package/dist/src/contexts/HotelOverridesContext.d.ts +1 -1
  527. package/dist/src/contexts/HotelOverridesContext.js +15 -15
  528. package/dist/src/contexts/HotelOverridesContext.js.map +1 -1
  529. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.d.ts +36 -0
  530. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.js +28 -0
  531. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContext.js.map +1 -0
  532. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.d.ts +2 -0
  533. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js +227 -0
  534. package/dist/src/contexts/Members/AuthenticationContext/AuthenticationContextProvider.js.map +1 -0
  535. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContext.d.ts +20 -0
  536. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContext.js +8 -0
  537. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContext.js.map +1 -0
  538. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.d.ts +2 -0
  539. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js +155 -0
  540. package/dist/src/contexts/Members/RoomstayMemberContext/RoomstayMemberContextProvider.js.map +1 -0
  541. package/dist/src/contexts/ModalContext.js +1 -1
  542. package/dist/src/contexts/ModalContext.js.map +1 -1
  543. package/dist/src/contexts/NotificationContext.d.ts +3 -3
  544. package/dist/src/contexts/NotificationContext.js +5 -6
  545. package/dist/src/contexts/NotificationContext.js.map +1 -1
  546. package/dist/src/contexts/index.d.ts +22 -19
  547. package/dist/src/contexts/index.js +28 -21
  548. package/dist/src/contexts/index.js.map +1 -1
  549. package/dist/src/engines/BaseEngine.d.ts +3 -3
  550. package/dist/src/engines/BaseEngine.js +2 -2
  551. package/dist/src/engines/BaseEngine.js.map +1 -1
  552. package/dist/src/engines/CustomEngine/CustomEngine.d.ts +1 -1
  553. package/dist/src/engines/CustomEngine/CustomEngine.js +1 -1
  554. package/dist/src/engines/CustomEngine/CustomEngine.js.map +1 -1
  555. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.d.ts +1 -1
  556. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js +4 -4
  557. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngine.js.map +1 -1
  558. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.d.ts +1 -1
  559. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js +25 -14
  560. package/dist/src/engines/FullPageBookingEngine/FullPageBookingEngineElement.js.map +1 -1
  561. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.d.ts +1 -1
  562. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js +4 -4
  563. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngine.js.map +1 -1
  564. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.d.ts +1 -1
  565. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js +46 -121
  566. package/dist/src/engines/InlineRoomMiniEngine/InlineRoomMiniEngineElement.js.map +1 -1
  567. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.d.ts +1 -1
  568. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js +4 -4
  569. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngine.js.map +1 -1
  570. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.d.ts +1 -1
  571. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js +17 -15
  572. package/dist/src/engines/RecentSearchesEngine/RecentSearchesEngineElement.js.map +1 -1
  573. package/dist/src/errors/GetAvailabilityError.d.ts +1 -1
  574. package/dist/src/errors/GetAvailabilityError.js +4 -4
  575. package/dist/src/errors/GetAvailabilityError.js.map +1 -1
  576. package/dist/src/errors/NoCompanyContextError.d.ts +1 -1
  577. package/dist/src/errors/NoCompanyContextError.js +1 -1
  578. package/dist/src/errors/NoCompanyContextError.js.map +1 -1
  579. package/dist/src/errors/NoHotelSelectedError.d.ts +1 -1
  580. package/dist/src/errors/NoHotelSelectedError.js +1 -1
  581. package/dist/src/errors/NoHotelSelectedError.js.map +1 -1
  582. package/dist/src/events/RoomstayEventManager.d.ts +3 -3
  583. package/dist/src/events/RoomstayEventManager.js +5 -24
  584. package/dist/src/events/RoomstayEventManager.js.map +1 -1
  585. package/dist/src/events/actions/AddToCartEvent.d.ts +2 -2
  586. package/dist/src/events/actions/AddToCartEvent.js +1 -1
  587. package/dist/src/events/actions/AddToCartEvent.js.map +1 -1
  588. package/dist/src/events/actions/RemoveFromCartEvent.d.ts +2 -2
  589. package/dist/src/events/actions/RemoveFromCartEvent.js +1 -1
  590. package/dist/src/events/actions/RemoveFromCartEvent.js.map +1 -1
  591. package/dist/src/events/index.d.ts +13 -14
  592. package/dist/src/events/index.js +19 -16
  593. package/dist/src/events/index.js.map +1 -1
  594. package/dist/src/events/views/StepCheckoutViewEvent.d.ts +2 -2
  595. package/dist/src/events/views/StepCheckoutViewEvent.js +1 -1
  596. package/dist/src/events/views/StepCheckoutViewEvent.js.map +1 -1
  597. package/dist/src/hooks/AutoFocusOnSelect.d.ts +13 -0
  598. package/dist/src/hooks/AutoFocusOnSelect.js +76 -0
  599. package/dist/src/hooks/AutoFocusOnSelect.js.map +1 -0
  600. package/dist/src/hooks/BodyClickHook.d.ts +10 -0
  601. package/dist/src/hooks/BodyClickHook.js +36 -0
  602. package/dist/src/hooks/BodyClickHook.js.map +1 -0
  603. package/dist/src/hooks/CombineState.d.ts +2 -0
  604. package/dist/src/hooks/CombineState.js +10 -0
  605. package/dist/src/hooks/CombineState.js.map +1 -0
  606. package/dist/src/hooks/ConfirmationQuery.d.ts +5 -0
  607. package/dist/src/hooks/ConfirmationQuery.js +17 -0
  608. package/dist/src/hooks/ConfirmationQuery.js.map +1 -0
  609. package/dist/src/hooks/CurrentHotelHook.js +4 -3
  610. package/dist/src/hooks/CurrentHotelHook.js.map +1 -1
  611. package/dist/src/hooks/ElementSortHook.d.ts +2 -2
  612. package/dist/src/hooks/ElementSortHook.js +4 -3
  613. package/dist/src/hooks/ElementSortHook.js.map +1 -1
  614. package/dist/src/hooks/EventHook.d.ts +3 -3
  615. package/dist/src/hooks/EventHook.js +5 -4
  616. package/dist/src/hooks/EventHook.js.map +1 -1
  617. package/dist/src/hooks/KeyboardControlOnSelect.d.ts +13 -0
  618. package/dist/src/hooks/KeyboardControlOnSelect.js +111 -0
  619. package/dist/src/hooks/KeyboardControlOnSelect.js.map +1 -0
  620. package/dist/src/hooks/LoggedInUserHook.d.ts +10 -0
  621. package/dist/src/hooks/LoggedInUserHook.js +43 -0
  622. package/dist/src/hooks/LoggedInUserHook.js.map +1 -0
  623. package/dist/src/hooks/Query.d.ts +2 -0
  624. package/dist/src/hooks/Query.js +15 -0
  625. package/dist/src/hooks/Query.js.map +1 -0
  626. package/dist/src/hooks/ScrollFocusHook.js +2 -1
  627. package/dist/src/hooks/ScrollFocusHook.js.map +1 -1
  628. package/dist/src/hooks/VGSHooks.d.ts +47 -0
  629. package/dist/src/hooks/VGSHooks.js +207 -0
  630. package/dist/src/hooks/VGSHooks.js.map +1 -0
  631. package/dist/src/hooks/WindowSize.d.ts +4 -0
  632. package/dist/src/hooks/WindowSize.js +24 -0
  633. package/dist/src/hooks/WindowSize.js.map +1 -0
  634. package/dist/src/hooks/index.d.ts +6 -5
  635. package/dist/src/hooks/index.js +12 -7
  636. package/dist/src/hooks/index.js.map +1 -1
  637. package/dist/src/icons/Check.js +1 -1
  638. package/dist/src/icons/Check.js.map +1 -1
  639. package/dist/src/index.d.ts +62 -64
  640. package/dist/src/index.js +73 -72
  641. package/dist/src/index.js.map +1 -1
  642. package/dist/src/mockApi/AddonAPI.d.ts +3 -3
  643. package/dist/src/mockApi/AddonAPI.js +3 -3
  644. package/dist/src/mockApi/AddonAPI.js.map +1 -1
  645. package/dist/src/mockApi/BookingAPI.d.ts +6 -6
  646. package/dist/src/mockApi/BookingAPI.js +6 -6
  647. package/dist/src/mockApi/BookingAPI.js.map +1 -1
  648. package/dist/src/mockApi/ExchangeRateAPI.d.ts +2 -2
  649. package/dist/src/mockApi/ExchangeRateAPI.js +1 -1
  650. package/dist/src/mockApi/ExchangeRateAPI.js.map +1 -1
  651. package/dist/src/mockApi/HotelAPI.d.ts +3 -3
  652. package/dist/src/mockApi/HotelAPI.js +1 -1
  653. package/dist/src/mockApi/HotelAPI.js.map +1 -1
  654. package/dist/src/mockApi/MemberAPI.d.ts +1 -1
  655. package/dist/src/mockApi/MemberAPI.js +1 -1
  656. package/dist/src/mockApi/MemberAPI.js.map +1 -1
  657. package/dist/src/mockApi/MockAPI.d.ts +1 -1
  658. package/dist/src/mockApi/MockAPI.js +1 -1
  659. package/dist/src/mockApi/MockAPI.js.map +1 -1
  660. package/dist/src/mockApi/ReservationAPI.d.ts +6 -6
  661. package/dist/src/mockApi/ReservationAPI.js +1 -1
  662. package/dist/src/mockApi/ReservationAPI.js.map +1 -1
  663. package/dist/src/models/Addon/Addon.d.ts +2 -2
  664. package/dist/src/models/Addon/Addon.js.map +1 -1
  665. package/dist/src/models/Api/ExchangeRateDTO.d.ts +1 -1
  666. package/dist/src/models/Api/HotelDTO.d.ts +19 -11
  667. package/dist/src/models/Api/HotelDTO.js.map +1 -1
  668. package/dist/src/models/Api/HotelOverrideDTO.d.ts +1 -1
  669. package/dist/src/models/Api/HotelOverrideDTO.js.map +1 -1
  670. package/dist/src/models/Api/IEventReservation.d.ts +1 -1
  671. package/dist/src/models/Api/RatePlanDTO.d.ts +1 -1
  672. package/dist/src/models/Api/ReservationsDTO.d.ts +17 -4
  673. package/dist/src/models/Api/ReservationsDTO.js.map +1 -1
  674. package/dist/src/models/Api/RoomNightDTO.d.ts +2 -2
  675. package/dist/src/models/Api/RoomNightDTO.js.map +1 -1
  676. package/dist/src/models/Api/RoomNightRateDTO.d.ts +1 -1
  677. package/dist/src/models/Api/RoomTypeDTO.d.ts +1 -1
  678. package/dist/src/models/BasketAddonRow.d.ts +1 -1
  679. package/dist/src/models/BasketAddonRow.js +2 -2
  680. package/dist/src/models/BasketAddonRow.js.map +1 -1
  681. package/dist/src/models/BasketRow.d.ts +9 -6
  682. package/dist/src/models/BasketRow.js +4 -1
  683. package/dist/src/models/BasketRow.js.map +1 -1
  684. package/dist/src/models/BasketRowDifferences.d.ts +2 -2
  685. package/dist/src/models/Client/Hotel/ColorProfile.d.ts +1 -1
  686. package/dist/src/models/Client/Hotel/Company.d.ts +2 -2
  687. package/dist/src/models/Client/Hotel/Company.js.map +1 -1
  688. package/dist/src/models/Client/Hotel/Hotel.d.ts +28 -15
  689. package/dist/src/models/Client/Hotel/Hotel.js +8 -0
  690. package/dist/src/models/Client/Hotel/Hotel.js.map +1 -1
  691. package/dist/src/models/Client/Hotel/HotelAddress.d.ts +1 -1
  692. package/dist/src/models/Client/Hotel/HotelPerk.d.ts +3 -3
  693. package/dist/src/models/Client/Hotel/HotelPerk.js.map +1 -1
  694. package/dist/src/models/Client/Hotel/HotelRoomOverwrite.d.ts +1 -1
  695. package/dist/src/models/Confirmation.d.ts +31 -0
  696. package/dist/src/models/Confirmation.js +15 -0
  697. package/dist/src/models/Confirmation.js.map +1 -0
  698. package/dist/src/models/PaymentCard.d.ts +15 -2
  699. package/dist/src/models/PaymentCard.js +13 -0
  700. package/dist/src/models/PaymentCard.js.map +1 -1
  701. package/dist/src/models/Reservation/Reservation.d.ts +16 -0
  702. package/dist/src/models/{Promotion/IPromotion.type.js → Reservation/Reservation.js} +1 -1
  703. package/dist/src/models/Reservation/Reservation.js.map +1 -0
  704. package/dist/src/models/Room/Filters/BudgetFilter.d.ts +2 -2
  705. package/dist/src/models/Room/Filters/BudgetFilter.js +1 -1
  706. package/dist/src/models/Room/Filters/BudgetFilter.js.map +1 -1
  707. package/dist/src/models/Room/Filters/Filter.d.ts +1 -1
  708. package/dist/src/models/Room/Filters/Filter.js.map +1 -1
  709. package/dist/src/models/Room/Filters/RateTypeFilter.d.ts +2 -2
  710. package/dist/src/models/Room/Filters/RateTypeFilter.js +1 -1
  711. package/dist/src/models/Room/Filters/RateTypeFilter.js.map +1 -1
  712. package/dist/src/models/Room/Filters/RoomTypeFilter.d.ts +2 -2
  713. package/dist/src/models/Room/Filters/RoomTypeFilter.js +1 -1
  714. package/dist/src/models/Room/Filters/RoomTypeFilter.js.map +1 -1
  715. package/dist/src/models/Room/Room.d.ts +3 -3
  716. package/dist/src/models/Room/Room.js +1 -1
  717. package/dist/src/models/Room/Room.js.map +1 -1
  718. package/dist/src/models/Room/RoomRate.d.ts +4 -4
  719. package/dist/src/models/Room/RoomRate.js +3 -3
  720. package/dist/src/models/Room/RoomRate.js.map +1 -1
  721. package/dist/src/models/Room/RoomRateNight.d.ts +1 -1
  722. package/dist/src/models/Room/RoomRateNight.js +1 -1
  723. package/dist/src/models/Room/RoomRateNight.js.map +1 -1
  724. package/dist/src/models/RoomListSearch.d.ts +3 -3
  725. package/dist/src/models/RoomstayMembers/IRoomstayMemberBooking.d.ts +21 -0
  726. package/dist/src/models/RoomstayMembers/IRoomstayMemberBooking.js +3 -0
  727. package/dist/src/models/RoomstayMembers/IRoomstayMemberBooking.js.map +1 -0
  728. package/dist/src/models/RoomstayMembers/IRoomstayMemberCard.d.ts +2 -0
  729. package/dist/src/models/RoomstayMembers/IRoomstayMemberCard.js +3 -0
  730. package/dist/src/models/RoomstayMembers/IRoomstayMemberCard.js.map +1 -0
  731. package/dist/src/models/RoomstaySession.d.ts +9 -6
  732. package/dist/src/models/RoomstaySession.js.map +1 -1
  733. package/dist/src/models/SearchParameters.d.ts +1 -1
  734. package/dist/src/models/UserProfile.d.ts +2 -1
  735. package/dist/src/models/UserProfile.js.map +1 -1
  736. package/dist/src/pages/account/AccountHome/AccountHomePage.d.ts +1 -0
  737. package/dist/src/pages/account/AccountHome/AccountHomePage.js +82 -0
  738. package/dist/src/pages/account/AccountHome/AccountHomePage.js.map +1 -0
  739. package/dist/src/pages/account/AccountOutlet.d.ts +6 -0
  740. package/dist/src/pages/account/AccountOutlet.js +10 -0
  741. package/dist/src/pages/account/AccountOutlet.js.map +1 -0
  742. package/dist/src/pages/account/AccountRouter.d.ts +1 -0
  743. package/dist/src/pages/account/AccountRouter.js +32 -0
  744. package/dist/src/pages/account/AccountRouter.js.map +1 -0
  745. package/dist/src/pages/account/AccountRoutes.d.ts +22 -0
  746. package/dist/src/pages/account/AccountRoutes.js +26 -0
  747. package/dist/src/pages/account/AccountRoutes.js.map +1 -0
  748. package/dist/src/pages/account/Details/AccountDetailsCardsPage.d.ts +1 -0
  749. package/dist/src/pages/account/Details/AccountDetailsCardsPage.js +125 -0
  750. package/dist/src/pages/account/Details/AccountDetailsCardsPage.js.map +1 -0
  751. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.d.ts +7 -0
  752. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js +25 -0
  753. package/dist/src/pages/account/Details/AccountDetailsNoCardsPage.js.map +1 -0
  754. package/dist/src/pages/account/Details/AccountDetailsProfilePage.d.ts +1 -0
  755. package/dist/src/pages/account/Details/AccountDetailsProfilePage.js +127 -0
  756. package/dist/src/pages/account/Details/AccountDetailsProfilePage.js.map +1 -0
  757. package/dist/src/pages/account/Help/AccountHelpPage.d.ts +1 -0
  758. package/dist/src/pages/account/Help/AccountHelpPage.js +140 -0
  759. package/dist/src/pages/account/Help/AccountHelpPage.js.map +1 -0
  760. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.d.ts +1 -0
  761. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js +107 -0
  762. package/dist/src/pages/account/Reservations/AccountReservationCancelledPage.js.map +1 -0
  763. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.d.ts +2 -0
  764. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js +132 -0
  765. package/dist/src/pages/account/Reservations/AccountReservationMultiplePage.js.map +1 -0
  766. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.d.ts +1 -0
  767. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js +245 -0
  768. package/dist/src/pages/account/Reservations/AccountReservationSinglePage.js.map +1 -0
  769. package/dist/src/pages/account/Reservations/AccountReservationsPage.d.ts +1 -0
  770. package/dist/src/pages/account/Reservations/AccountReservationsPage.js +38 -0
  771. package/dist/src/pages/account/Reservations/AccountReservationsPage.js.map +1 -0
  772. package/dist/src/pages/findReservation/FindReservation.d.ts +7 -0
  773. package/dist/src/pages/findReservation/FindReservation.js +149 -73
  774. package/dist/src/pages/findReservation/FindReservation.js.map +1 -1
  775. package/dist/src/pages/findReservation/FindReservationResults.js +29 -29
  776. package/dist/src/pages/findReservation/FindReservationResults.js.map +1 -1
  777. package/dist/src/pages/findReservation/ReservationRow.d.ts +1 -1
  778. package/dist/src/pages/findReservation/ReservationRow.js +24 -23
  779. package/dist/src/pages/findReservation/ReservationRow.js.map +1 -1
  780. package/dist/src/pages/findReservation/ReservationRowModal.d.ts +1 -1
  781. package/dist/src/pages/findReservation/ReservationRowModal.js +12 -12
  782. package/dist/src/pages/findReservation/ReservationRowModal.js.map +1 -1
  783. package/dist/src/pages/hotel/HotelInfo.js +23 -30
  784. package/dist/src/pages/hotel/HotelInfo.js.map +1 -1
  785. package/dist/src/pages/hotel/HotelInfoPlaceholder.js +1 -1
  786. package/dist/src/pages/hotel/HotelInfoPlaceholder.js.map +1 -1
  787. package/dist/src/pages/steps/Step.d.ts +4 -4
  788. package/dist/src/pages/steps/Step.js.map +1 -1
  789. package/dist/src/pages/steps/StepAddon/StepAddon.d.ts +6 -7
  790. package/dist/src/pages/steps/StepAddon/StepAddon.js +4 -4
  791. package/dist/src/pages/steps/StepAddon/StepAddon.js.map +1 -1
  792. package/dist/src/pages/steps/StepAddon/StepAddonComponent.js +17 -17
  793. package/dist/src/pages/steps/StepAddon/StepAddonComponent.js.map +1 -1
  794. package/dist/src/pages/steps/StepAddon/StepAddonLoader.d.ts +2 -1
  795. package/dist/src/pages/steps/StepAddon/StepAddonLoader.js +7 -7
  796. package/dist/src/pages/steps/StepAddon/StepAddonLoader.js.map +1 -1
  797. package/dist/src/pages/steps/StepAddon/StepAddonValidator.d.ts +1 -1
  798. package/dist/src/pages/steps/StepAddon/StepAddonValidator.js +1 -1
  799. package/dist/src/pages/steps/StepAddon/StepAddonValidator.js.map +1 -1
  800. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.d.ts +6 -6
  801. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js +4 -4
  802. package/dist/src/pages/steps/StepConfirmation/StepConfirmation.js.map +1 -1
  803. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js +23 -26
  804. package/dist/src/pages/steps/StepConfirmation/StepConfirmationComponent.js.map +1 -1
  805. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js +2 -2
  806. package/dist/src/pages/steps/StepConfirmation/StepConfirmationLoader.js.map +1 -1
  807. package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.d.ts +1 -1
  808. package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js +1 -1
  809. package/dist/src/pages/steps/StepConfirmation/StepConfirmationValidator.js.map +1 -1
  810. package/dist/src/pages/steps/StepDate/StepDate.js +4 -4
  811. package/dist/src/pages/steps/StepDate/StepDate.js.map +1 -1
  812. package/dist/src/pages/steps/StepDate/StepDateComponent.js +30 -28
  813. package/dist/src/pages/steps/StepDate/StepDateComponent.js.map +1 -1
  814. package/dist/src/pages/steps/StepDate/StepDateValidator.d.ts +2 -3
  815. package/dist/src/pages/steps/StepDate/StepDateValidator.js +2 -2
  816. package/dist/src/pages/steps/StepDate/StepDateValidator.js.map +1 -1
  817. package/dist/src/pages/steps/StepGuide.d.ts +1 -1
  818. package/dist/src/pages/steps/StepGuide.js +8 -8
  819. package/dist/src/pages/steps/StepGuide.js.map +1 -1
  820. package/dist/src/pages/steps/StepHotel/StepHotel.d.ts +5 -6
  821. package/dist/src/pages/steps/StepHotel/StepHotel.js +4 -4
  822. package/dist/src/pages/steps/StepHotel/StepHotel.js.map +1 -1
  823. package/dist/src/pages/steps/StepHotel/StepHotelComponent.js +26 -26
  824. package/dist/src/pages/steps/StepHotel/StepHotelComponent.js.map +1 -1
  825. package/dist/src/pages/steps/StepHotel/StepHotelLoader.d.ts +2 -1
  826. package/dist/src/pages/steps/StepHotel/StepHotelLoader.js +10 -10
  827. package/dist/src/pages/steps/StepHotel/StepHotelLoader.js.map +1 -1
  828. package/dist/src/pages/steps/StepHotel/StepHotelValidator.d.ts +1 -1
  829. package/dist/src/pages/steps/StepHotel/StepHotelValidator.js +1 -1
  830. package/dist/src/pages/steps/StepHotel/StepHotelValidator.js.map +1 -1
  831. package/dist/src/pages/steps/StepRoom/StepRoom.d.ts +6 -6
  832. package/dist/src/pages/steps/StepRoom/StepRoom.js +4 -4
  833. package/dist/src/pages/steps/StepRoom/StepRoom.js.map +1 -1
  834. package/dist/src/pages/steps/StepRoom/StepRoomComponent.d.ts +2 -1
  835. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js +25 -35
  836. package/dist/src/pages/steps/StepRoom/StepRoomComponent.js.map +1 -1
  837. package/dist/src/pages/steps/StepRoom/StepRoomLoader.js +2 -2
  838. package/dist/src/pages/steps/StepRoom/StepRoomLoader.js.map +1 -1
  839. package/dist/src/pages/steps/StepRoom/StepRoomValidator.d.ts +1 -1
  840. package/dist/src/pages/steps/StepRoom/StepRoomValidator.js +1 -1
  841. package/dist/src/pages/steps/StepRoom/StepRoomValidator.js.map +1 -1
  842. package/dist/src/pages/steps/StepThanks/StepThanks.d.ts +6 -6
  843. package/dist/src/pages/steps/StepThanks/StepThanks.js +5 -5
  844. package/dist/src/pages/steps/StepThanks/StepThanks.js.map +1 -1
  845. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js +17 -17
  846. package/dist/src/pages/steps/StepThanks/StepThanksComponent.js.map +1 -1
  847. package/dist/src/pages/steps/StepThanks/StepThanksValidator.d.ts +1 -1
  848. package/dist/src/pages/steps/StepThanks/StepThanksValidator.js +1 -1
  849. package/dist/src/pages/steps/StepThanks/StepThanksValidator.js.map +1 -1
  850. package/dist/src/providers/CurrencyProvider.js +128 -3
  851. package/dist/src/providers/CurrencyProvider.js.map +1 -1
  852. package/dist/src/providers/DistanceProvider.d.ts +1 -1
  853. package/dist/src/providers/DistanceProvider.js +1 -1
  854. package/dist/src/providers/DistanceProvider.js.map +1 -1
  855. package/dist/src/providers/FeatureProvider.js +11 -7
  856. package/dist/src/providers/FeatureProvider.js.map +1 -1
  857. package/dist/src/providers/FilterProvider.d.ts +3 -3
  858. package/dist/src/providers/FilterProvider.js +3 -1
  859. package/dist/src/providers/FilterProvider.js.map +1 -1
  860. package/dist/src/providers/ImageProvider.js +1 -1
  861. package/dist/src/providers/ImageProvider.js.map +1 -1
  862. package/dist/src/providers/LanguageProvider.d.ts +1 -1
  863. package/dist/src/providers/LanguageProvider.js +2 -2
  864. package/dist/src/providers/LanguageProvider.js.map +1 -1
  865. package/dist/src/providers/RatePillProvider.d.ts +8 -8
  866. package/dist/src/providers/RatePillProvider.js.map +1 -1
  867. package/dist/src/providers/RoomSortProvider.d.ts +1 -1
  868. package/dist/src/providers/RoomSortProvider.js.map +1 -1
  869. package/dist/src/providers/RoomstayThemeEngine.d.ts +6 -10
  870. package/dist/src/providers/RoomstayThemeEngine.js +14 -25
  871. package/dist/src/providers/RoomstayThemeEngine.js.map +1 -1
  872. package/dist/src/providers/SessionProvider.d.ts +3 -1
  873. package/dist/src/providers/SessionProvider.js +19 -7
  874. package/dist/src/providers/SessionProvider.js.map +1 -1
  875. package/dist/src/providers/feature/ConfirmationVerifyFeature.d.ts +1 -1
  876. package/dist/src/providers/feature/ConfirmationVerifyFeature.js +1 -1
  877. package/dist/src/providers/feature/ConfirmationVerifyFeature.js.map +1 -1
  878. package/dist/src/providers/feature/DatePickerTypeFeature.d.ts +1 -1
  879. package/dist/src/providers/feature/DatePickerTypeFeature.js +2 -2
  880. package/dist/src/providers/feature/DatePickerTypeFeature.js.map +1 -1
  881. package/dist/src/providers/feature/E164PhoneNumberFieldFeature.d.ts +1 -1
  882. package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js +1 -1
  883. package/dist/src/providers/feature/E164PhoneNumberFieldFeature.js.map +1 -1
  884. package/dist/src/providers/feature/Feature.js +3 -1
  885. package/dist/src/providers/feature/Feature.js.map +1 -1
  886. package/dist/src/providers/feature/FeaturedPromoFeature.d.ts +1 -1
  887. package/dist/src/providers/feature/FeaturedPromoFeature.js +2 -2
  888. package/dist/src/providers/feature/FeaturedPromoFeature.js.map +1 -1
  889. package/dist/src/providers/feature/InlineAddonStepFeature.d.ts +1 -1
  890. package/dist/src/providers/feature/InlineAddonStepFeature.js +1 -1
  891. package/dist/src/providers/feature/InlineAddonStepFeature.js.map +1 -1
  892. package/dist/src/providers/feature/MemberPortalFeature.d.ts +7 -0
  893. package/dist/src/providers/feature/MemberPortalFeature.js +11 -0
  894. package/dist/src/providers/feature/MemberPortalFeature.js.map +1 -0
  895. package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.d.ts +7 -0
  896. package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.js +11 -0
  897. package/dist/src/providers/feature/NumberOfPeopleBookedPillFeature.js.map +1 -0
  898. package/dist/src/providers/feature/RoomUpsellFeature.d.ts +1 -1
  899. package/dist/src/providers/feature/RoomUpsellFeature.js +1 -1
  900. package/dist/src/providers/feature/RoomUpsellFeature.js.map +1 -1
  901. package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.d.ts +1 -1
  902. package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js +1 -1
  903. package/dist/src/providers/feature/ShowIATANumberOnCheckoutFeature.js.map +1 -1
  904. package/dist/src/providers/storage/LocalStorageProvider.d.ts +2 -2
  905. package/dist/src/providers/storage/LocalStorageProvider.js +25 -24
  906. package/dist/src/providers/storage/LocalStorageProvider.js.map +1 -1
  907. package/dist/src/reducers/BasketReducer.d.ts +3 -3
  908. package/dist/src/reducers/BasketReducer.js +5 -4
  909. package/dist/src/reducers/BasketReducer.js.map +1 -1
  910. package/dist/src/routes/NaturallyProgressedStepRoute.d.ts +1 -1
  911. package/dist/src/routes/NaturallyProgressedStepRoute.js +5 -3
  912. package/dist/src/routes/NaturallyProgressedStepRoute.js.map +1 -1
  913. package/dist/src/stories/Button.stories.d.ts +5 -0
  914. package/dist/src/stories/Button.stories.js +17 -0
  915. package/dist/src/stories/Button.stories.js.map +1 -0
  916. package/dist/src/stories/Card.stories.d.ts +8 -0
  917. package/dist/src/stories/Card.stories.js +17 -0
  918. package/dist/src/stories/Card.stories.js.map +1 -0
  919. package/dist/src/stories/Checkbox.stories.d.ts +5 -0
  920. package/dist/src/stories/Checkbox.stories.js +17 -0
  921. package/dist/src/stories/Checkbox.stories.js.map +1 -0
  922. package/dist/src/stories/EnhancedPhoneNumberField.stories.js +16 -0
  923. package/dist/src/stories/EnhancedPhoneNumberField.stories.js.map +1 -0
  924. package/dist/src/stories/Icon.stories.d.ts +5 -0
  925. package/dist/src/stories/Icon.stories.js +16 -0
  926. package/dist/src/stories/Icon.stories.js.map +1 -0
  927. package/dist/src/stories/IconNavCard.stories.d.ts +16 -0
  928. package/dist/src/stories/IconNavCard.stories.js +28 -0
  929. package/dist/src/stories/IconNavCard.stories.js.map +1 -0
  930. package/dist/src/stories/IconText.stories.js +18 -0
  931. package/dist/src/stories/IconText.stories.js.map +1 -0
  932. package/dist/src/stories/ImageLoader.stories.d.ts +5 -0
  933. package/dist/src/stories/ImageLoader.stories.js +16 -0
  934. package/dist/src/stories/ImageLoader.stories.js.map +1 -0
  935. package/dist/src/stories/InputGroup.stories.d.ts +5 -0
  936. package/dist/src/stories/InputGroup.stories.js +16 -0
  937. package/dist/src/stories/InputGroup.stories.js.map +1 -0
  938. package/dist/src/stories/LargeLoader.stories.d.ts +5 -0
  939. package/dist/src/stories/LargeLoader.stories.js +14 -0
  940. package/dist/src/stories/LargeLoader.stories.js.map +1 -0
  941. package/dist/src/stories/PasswordBox.stories.d.ts +5 -0
  942. package/dist/src/stories/PasswordBox.stories.js +14 -0
  943. package/dist/src/stories/PasswordBox.stories.js.map +1 -0
  944. package/dist/src/stories/SSLSecureBadge.stories.d.ts +5 -0
  945. package/dist/src/stories/SSLSecureBadge.stories.js +14 -0
  946. package/dist/src/stories/SSLSecureBadge.stories.js.map +1 -0
  947. package/dist/src/stories/SmallSpinner.stories.d.ts +5 -0
  948. package/dist/src/stories/SmallSpinner.stories.js +14 -0
  949. package/dist/src/stories/SmallSpinner.stories.js.map +1 -0
  950. package/dist/src/translations/Translation.d.ts +111 -1
  951. package/dist/src/translations/Translation.js +111 -1
  952. package/dist/src/translations/Translation.js.map +1 -1
  953. package/dist/src/translations/languages/en-gb.d.ts +1 -1
  954. package/dist/src/translations/languages/en-gb.js +112 -2
  955. package/dist/src/translations/languages/en-gb.js.map +1 -1
  956. package/dist/src/translations/languages/es.js +1 -1
  957. package/dist/src/translations/languages/es.js.map +1 -1
  958. package/dist/src/translations/languages/fr.js +1 -1
  959. package/dist/src/translations/languages/fr.js.map +1 -1
  960. package/dist/src/translations/languages/template.js +1 -1
  961. package/dist/src/translations/languages/template.js.map +1 -1
  962. package/dist/src/translations/languages/zh-cn.js +1 -1
  963. package/dist/src/translations/languages/zh-cn.js.map +1 -1
  964. package/dist/src/translations/languages/zh-tw.js +1 -1
  965. package/dist/src/translations/languages/zh-tw.js.map +1 -1
  966. package/dist/src/util/CalendarHelper.d.ts +1 -1
  967. package/dist/src/util/CalendarHelper.js +2 -1
  968. package/dist/src/util/CalendarHelper.js.map +1 -1
  969. package/dist/src/util/Color.d.ts +15 -14
  970. package/dist/src/util/Color.js +15 -14
  971. package/dist/src/util/Color.js.map +1 -1
  972. package/dist/src/util/DataLayer.d.ts +7 -7
  973. package/dist/src/util/DataLayer.js.map +1 -1
  974. package/dist/src/util/Debounce.d.ts +2 -0
  975. package/dist/src/util/Debounce.js +14 -0
  976. package/dist/src/util/Debounce.js.map +1 -0
  977. package/dist/src/util/EnumHelper.d.ts +3 -0
  978. package/dist/src/util/EnumHelper.js +10 -0
  979. package/dist/src/util/EnumHelper.js.map +1 -0
  980. package/dist/src/util/PaymentCardHelper.d.ts +9 -0
  981. package/dist/src/util/PaymentCardHelper.js +37 -0
  982. package/dist/src/util/PaymentCardHelper.js.map +1 -0
  983. package/dist/src/util/StepManager.d.ts +1 -1
  984. package/dist/src/util/StepManager.js +1 -3
  985. package/dist/src/util/StepManager.js.map +1 -1
  986. package/dist/src/util/StringHelper.js +1 -1
  987. package/dist/src/util/StringHelper.js.map +1 -1
  988. package/dist/src/util/TotalCalculator.js +5 -3
  989. package/dist/src/util/TotalCalculator.js.map +1 -1
  990. package/dist/src/util/Validation.d.ts +17 -1
  991. package/dist/src/util/Validation.js +25 -2
  992. package/dist/src/util/Validation.js.map +1 -1
  993. package/dist/test.bundle.js +1 -1
  994. package/dist/tests/jest/events/EventManager.test.js +4 -5
  995. package/dist/tests/jest/events/EventManager.test.js.map +1 -1
  996. package/dist/tests/jest/providers/LanguageProvider.test.d.ts +1 -1
  997. package/dist/tests/jest/providers/LanguageProvider.test.js +6 -7
  998. package/dist/tests/jest/providers/LanguageProvider.test.js.map +1 -1
  999. package/dist/tests/jest/reducers/BasketReducer.test.js +11 -11
  1000. package/dist/tests/jest/reducers/BasketReducer.test.js.map +1 -1
  1001. package/dist/tests/offline/RoomstayBestRateAlert.js +3 -3
  1002. package/dist/tests/offline/RoomstayBestRateAlert.js.map +1 -1
  1003. package/dist/tests/offline/entry/RSCompany.d.ts +1 -1
  1004. package/dist/tests/offline/entry/RSCompany.js +15 -55
  1005. package/dist/tests/offline/entry/RSCompany.js.map +1 -1
  1006. package/dist/tests/offline/entry/ReactWrapper.js +11 -6
  1007. package/dist/tests/offline/entry/ReactWrapper.js.map +1 -1
  1008. package/dist/tests/offline/entry/allEngines.js +2 -2
  1009. package/dist/tests/offline/entry/allEngines.js.map +1 -1
  1010. package/dist/tests/offline/entry/components/TestPicker.js +32 -8
  1011. package/dist/tests/offline/entry/components/TestPicker.js.map +1 -1
  1012. package/dist/tests/setupTests.d.ts +0 -0
  1013. package/dist/tests/setupTests.js +9 -0
  1014. package/dist/tests/setupTests.js.map +1 -0
  1015. package/dist/vendors.bundle.js +1 -1
  1016. package/dist/vendors.bundle.js.LICENSE.txt +33 -8
  1017. package/package.json +31 -43
  1018. package/dist/661.bundle.js +0 -1
  1019. package/dist/7.bundle.js +0 -1
  1020. package/dist/845.bundle.js +0 -1
  1021. package/dist/876.bundle.js +0 -1
  1022. package/dist/src/components/generic/BETooltip.d.ts +0 -7
  1023. package/dist/src/components/generic/BETooltip.js +0 -44
  1024. package/dist/src/components/generic/BETooltip.js.map +0 -1
  1025. package/dist/src/components/generic/Checkbox.js +0 -22
  1026. package/dist/src/components/generic/Checkbox.js.map +0 -1
  1027. package/dist/src/components/generic/Icon.js.map +0 -1
  1028. package/dist/src/components/generic/ScrollToTop.d.ts +0 -2
  1029. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.d.ts +0 -7
  1030. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js +0 -30
  1031. package/dist/src/components/steps/room/roomDetails/roomRates/RoomRateListPromotion/RoomRateListPromotion.js.map +0 -1
  1032. package/dist/src/events/actions/MemberOnlyFence/MemberOnlyFenceSignUp.d.ts +0 -7
  1033. package/dist/src/events/actions/MemberOnlyFence/MemberOnlyFenceSignUp.js +0 -15
  1034. package/dist/src/events/actions/MemberOnlyFence/MemberOnlyFenceSignUp.js.map +0 -1
  1035. package/dist/src/events/actions/Promotion/PromotionAddedEvent.d.ts +0 -7
  1036. package/dist/src/events/actions/Promotion/PromotionAddedEvent.js +0 -15
  1037. package/dist/src/events/actions/Promotion/PromotionAddedEvent.js.map +0 -1
  1038. package/dist/src/events/actions/Promotion/PromotionClickedEvent.d.ts +0 -7
  1039. package/dist/src/events/actions/Promotion/PromotionClickedEvent.js +0 -15
  1040. package/dist/src/events/actions/Promotion/PromotionClickedEvent.js.map +0 -1
  1041. package/dist/src/events/actions/Promotion/PromotionRemovedEvent.d.ts +0 -7
  1042. package/dist/src/events/actions/Promotion/PromotionRemovedEvent.js +0 -15
  1043. package/dist/src/events/actions/Promotion/PromotionRemovedEvent.js.map +0 -1
  1044. package/dist/src/handlers/HotelContextEventHandler.d.ts +0 -3
  1045. package/dist/src/handlers/HotelContextEventHandler.js +0 -9
  1046. package/dist/src/handlers/HotelContextEventHandler.js.map +0 -1
  1047. package/dist/src/hooks/ScrollLock.d.ts +0 -1
  1048. package/dist/src/hooks/ScrollLock.js +0 -17
  1049. package/dist/src/hooks/ScrollLock.js.map +0 -1
  1050. package/dist/src/models/Promotion/IPromotion.type.d.ts +0 -27
  1051. package/dist/src/models/Promotion/IPromotion.type.js.map +0 -1
  1052. package/dist/src/pages/steps/StepDate/StepDate.d.ts +0 -14
  1053. package/dist/src/pages/steps/StepDate/StepDateComponent.d.ts +0 -2
  1054. package/dist/src/providers/PromotionProvider.d.ts +0 -14
  1055. package/dist/src/providers/PromotionProvider.js +0 -210
  1056. package/dist/src/providers/PromotionProvider.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StepGuide.js","sourceRoot":"/","sources":["src/pages/steps/StepGuide.tsx"],"names":[],"mappings":";;AAAA,iCAAuD;AACvD,iDAAmD;AACnD,uDAA4C;AAC5C,+BAA+B;AAE/B,wDAAiD;AACjD,iDAAoD;AAEpD,2CAAkD;AAClD,iDAA2D;AAC3D,6EAAsE;AAOtE,SAAwB,SAAS,CAAC,KAAqB;IACnD,MAAM,EAAE,cAAc,EAAE,GAAG,kBAAU,CAAC,gCAAqB,CAAC,CAAC;IAC7D,MAAM,aAAa,GAAG,kBAAU,CAAC,wBAAa,CAAC,CAAC;IAEhD,MAAM,GAAG,GAAG,kBAAU,CAAC,yBAAc,CAAC,CAAC;IACvC,MAAM,EAAE,KAAK,EAAE,GAAG,uBAAe,EAAE,CAAC;IAEpC,iBAAS,CAAC,GAAG,EAAE;QACX,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAE3B,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAE5D,IAAI,YAAY,EAAE;YACd,6BAAmB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;SACjD;IACL,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAE7C,OAAO,eAAO,CAAC,GAAG,EAAE;QAChB,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;QAE5C,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,CAAC,aAAa,GAAG;YACnC,OAAO,0CAAG,KAAK,CAAC,QAAQ,CAAI,CAAC;SAChC;aAAM;YACH,OAAO,oBAAC,2BAAQ,IAAC,EAAE,EAAE,qBAAW,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,GAAI,CAAC;SACvE;IACL,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;AACxB,CAAC;AA1BD,4BA0BC","sourcesContent":["import { useContext, useEffect, useMemo } from 'react';\nimport { BasketContext } from '@frontend/contexts';\nimport { Redirect } from 'react-router-dom';\nimport * as React from 'react';\nimport Step from './Step';\nimport StepManager from '../../util/StepManager';\nimport { CompanyContext } from '@frontend/contexts';\n\nimport { useCurrentHotel } from '@frontend/hooks';\nimport { FullPageEngineContext } from '@frontend/contexts';\nimport RoomstayThemeEngine from '../../providers/RoomstayThemeEngine';\n\nexport interface StepGuideProps {\n step: Step;\n children: React.ReactNode;\n}\n\nexport default function StepGuide(props: StepGuideProps) {\n const { setCurrentStep } = useContext(FullPageEngineContext);\n const basketContext = useContext(BasketContext);\n\n const ccx = useContext(CompanyContext);\n const { hotel } = useCurrentHotel();\n\n useEffect(() => {\n setCurrentStep(props.step);\n\n const colorProfile = props.step.getColorProfile(ccx, hotel);\n\n if (colorProfile) {\n RoomstayThemeEngine.changeTheme(colorProfile);\n }\n }, [props.step.getColorProfile(ccx, hotel)]);\n\n return useMemo(() => {\n const validator = props.step.getValidator();\n\n if (validator?.isValid(basketContext)) {\n return <>{props.children}</>;\n } else {\n return <Redirect to={StepManager.getPreviousStepUrl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AC,KAAK,CAAC,IAAI,CAAC,GAAI,CAAC;SACvE;IACL,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;AACxB,CAAC;AA1BD,4BA0BC","sourcesContent":["import { useContext, useEffect, useMemo } from 'react';\nimport { BasketContext } from '@frontend/contexts';\nimport { Redirect } from 'react-router-dom';\nimport * as React from 'react';\nimport Step from 'pages/steps/Step';\nimport StepManager from 'util/StepManager';\nimport { CompanyContext } from '@frontend/contexts';\n\nimport { useCurrentHotel } from '@frontend/hooks';\nimport { FullPageEngineContext } from '@frontend/contexts';\nimport RoomstayThemeEngine from 'providers/RoomstayThemeEngine';\n\nexport interface StepGuideProps {\n step: Step;\n children: React.ReactNode;\n}\n\nexport default function StepGuide(props: StepGuideProps) {\n const { setCurrentStep } = useContext(FullPageEngineContext);\n const basketContext = useContext(BasketContext);\n\n const ccx = useContext(CompanyContext);\n const { hotel } = useCurrentHotel();\n\n useEffect(() => {\n setCurrentStep(props.step);\n\n const colorProfile = props.step.getColorProfile(ccx, hotel);\n\n if (colorProfile) {\n RoomstayThemeEngine.changeTheme(colorProfile);\n }\n }, [props.step.getColorProfile(ccx, hotel)]);\n\n return useMemo(() => {\n const validator = props.step.getValidator();\n\n if (validator?.isValid(basketContext)) {\n return <>{props.children}</>;\n } else {\n return <Redirect to={StepManager.getPreviousStepUrl(props.step)} />;\n }\n }, [basketContext]);\n}\n"]}
@@ -1,11 +1,10 @@
1
- import ColorProfile from '../../../models/Client/Hotel/ColorProfile';
2
- import { Company } from '../../../models/Client/Hotel/Company';
3
- import Step from '../Step';
4
- import StepHotelLoader from './StepHotelLoader';
5
- import StepHotelValidator from './StepHotelValidator';
1
+ import ColorProfile from 'models/Client/Hotel/ColorProfile';
2
+ import { Company } from 'models/Client/Hotel/Company';
3
+ import Step from 'pages/steps/Step';
4
+ import StepHotelValidator from 'pages/steps/StepHotel/StepHotelValidator';
6
5
  declare class StepHotel extends Step {
7
6
  constructor();
8
- getComponent(): typeof StepHotelLoader;
7
+ getComponent(): () => JSX.Element;
9
8
  getValidator(): StepHotelValidator;
10
9
  getStepTranslation(): string;
11
10
  getColorProfile(company: Company): ColorProfile;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Translation_1 = require("../../../translations/Translation");
4
- const Step_1 = require("../Step");
5
- const StepHotelLoader_1 = require("./StepHotelLoader");
6
- const StepHotelValidator_1 = require("./StepHotelValidator");
3
+ const Translation_1 = require("translations/Translation");
4
+ const Step_1 = require("pages/steps/Step");
5
+ const StepHotelLoader_1 = require("pages/steps/StepHotel/StepHotelLoader");
6
+ const StepHotelValidator_1 = require("pages/steps/StepHotel/StepHotelValidator");
7
7
  class StepHotel extends Step_1.default {
8
8
  constructor() {
9
9
  super('Hotel');
@@ -1 +1 @@
1
- {"version":3,"file":"StepHotel.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotel.ts"],"names":[],"mappings":";;AAEA,mEAAgE;AAChE,kCAA2B;AAC3B,uDAAgD;AAChD,6DAAsD;AAEtD,MAAM,SAAU,SAAQ,cAAI;IACxB;QACI,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEM,YAAY;QACf,OAAO,yBAAe,CAAC;IAC3B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,4BAAkB,EAAE,CAAC;IACpC,CAAC;IAEM,kBAAkB;QACrB,OAAO,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9C,CAAC;IAEM,eAAe,CAAC,OAAgB;QACnC,OAAO,OAAO,CAAC,MAAM,CAAC;IAC1B,CAAC;CACJ;AAED,kBAAe,IAAI,SAAS,EAAE,CAAC","sourcesContent":["import ColorProfile from '../../../models/Client/Hotel/ColorProfile';\nimport { Company } from '../../../models/Client/Hotel/Company';\nimport { Translation } from '../../../translations/Translation';\nimport Step from '../Step';\nimport StepHotelLoader from './StepHotelLoader';\nimport StepHotelValidator from './StepHotelValidator';\n\nclass StepHotel extends Step {\n public constructor() {\n super('Hotel');\n }\n\n public getComponent() {\n return StepHotelLoader;\n }\n\n public getValidator() {\n return new StepHotelValidator();\n }\n\n public getStepTranslation() {\n return Translation.Navigation.Steps.Hotel;\n }\n\n public getColorProfile(company: Company): ColorProfile {\n return company.colors;\n }\n}\n\nexport default new StepHotel();\n"]}
1
+ {"version":3,"file":"StepHotel.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotel.ts"],"names":[],"mappings":";;AAEA,0DAAuD;AACvD,2CAAoC;AACpC,2EAAoE;AACpE,iFAA0E;AAE1E,MAAM,SAAU,SAAQ,cAAI;IACxB;QACI,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAEM,YAAY;QACf,OAAO,yBAAe,CAAC;IAC3B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,4BAAkB,EAAE,CAAC;IACpC,CAAC;IAEM,kBAAkB;QACrB,OAAO,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC;IAC9C,CAAC;IAEM,eAAe,CAAC,OAAgB;QACnC,OAAO,OAAO,CAAC,MAAM,CAAC;IAC1B,CAAC;CACJ;AAED,kBAAe,IAAI,SAAS,EAAE,CAAC","sourcesContent":["import ColorProfile from 'models/Client/Hotel/ColorProfile';\nimport { Company } from 'models/Client/Hotel/Company';\nimport { Translation } from 'translations/Translation';\nimport Step from 'pages/steps/Step';\nimport StepHotelLoader from 'pages/steps/StepHotel/StepHotelLoader';\nimport StepHotelValidator from 'pages/steps/StepHotel/StepHotelValidator';\n\nclass StepHotel extends Step {\n public constructor() {\n super('Hotel');\n }\n\n public getComponent() {\n return StepHotelLoader;\n }\n\n public getValidator() {\n return new StepHotelValidator();\n }\n\n public getStepTranslation() {\n return Translation.Navigation.Steps.Hotel;\n }\n\n public getColorProfile(company: Company): ColorProfile {\n return company.colors;\n }\n}\n\nexport default new StepHotel();\n"]}
@@ -4,18 +4,18 @@ const dayjs = require("dayjs");
4
4
  const React = require("react");
5
5
  const react_1 = require("react");
6
6
  const react_i18next_1 = require("react-i18next");
7
- const BEButton_1 = require("../../../components/generic/BEButton");
8
- const Text_1 = require("../../../components/generic/Text");
9
- const BESelect_1 = require("../../../components/generic/BESelect");
10
- const LineBreak_1 = require("../../../components/generic/LineBreak");
11
- const HotelCardList_1 = require("../../../components/steps/hotel/HotelCardList");
12
- const HotelSearchParameters_1 = require("../../../components/steps/hotel/HotelSearchParameters");
13
7
  const contexts_1 = require("@frontend/contexts");
14
- const Translation_1 = require("../../../translations/Translation");
15
- const Color_1 = require("../../../util/Color");
16
- const ScreenSize_1 = require("../../../util/ScreenSize");
17
- const hooks_1 = require("@frontend/hooks");
18
- const events_1 = require("../../../events");
8
+ const BEButton_1 = require("components/generic/BEButton");
9
+ const Text_1 = require("components/generic/Text");
10
+ const BESelect_1 = require("components/generic/BESelect");
11
+ const LineBreak_1 = require("components/generic/LineBreak");
12
+ const HotelCardList_1 = require("components/steps/hotel/HotelCardList");
13
+ const HotelSearchParameters_1 = require("components/steps/hotel/HotelSearchParameters");
14
+ const Translation_1 = require("translations/Translation");
15
+ const Color_1 = require("util/Color");
16
+ const ScreenSize_1 = require("util/ScreenSize");
17
+ const EventHook_1 = require("hooks/EventHook");
18
+ const events_1 = require("@frontend/events");
19
19
  var SortByOptions;
20
20
  (function (SortByOptions) {
21
21
  SortByOptions["Recommended"] = "R";
@@ -29,21 +29,21 @@ const StepHotelComponent = () => {
29
29
  { value: SortByOptions.LowestPrice, text: 'Lowest Price' },
30
30
  { value: SortByOptions.HighestPrice, text: 'Highest Price' },
31
31
  ];
32
- const ccx = react_1.useContext(contexts_1.CompanyContext);
33
- const context = react_1.useContext(contexts_1.BookingEngineContext);
34
- const basketContext = react_1.useContext(contexts_1.BasketContext);
35
- const fullPageContext = react_1.useContext(contexts_1.FullPageEngineContext);
36
- const [sortBy, setSortBy] = react_1.useState(sortByValues[0].value);
37
- const [city, setCity] = react_1.useState((_a = fullPageContext.urlParameters.defaultCity) !== null && _a !== void 0 ? _a : 'All');
38
- const [cityOptions, setCityOptions] = react_1.useState([]);
39
- const [sortedHotels, setSortedHotels] = react_1.useState();
32
+ const ccx = (0, react_1.useContext)(contexts_1.CompanyContext);
33
+ const context = (0, react_1.useContext)(contexts_1.BookingEngineContext);
34
+ const basketContext = (0, react_1.useContext)(contexts_1.BasketContext);
35
+ const fullPageContext = (0, react_1.useContext)(contexts_1.FullPageEngineContext);
36
+ const [sortBy, setSortBy] = (0, react_1.useState)(sortByValues[0].value);
37
+ const [city, setCity] = (0, react_1.useState)((_a = fullPageContext.urlParameters.defaultCity) !== null && _a !== void 0 ? _a : 'All');
38
+ const [cityOptions, setCityOptions] = (0, react_1.useState)([]);
39
+ const [sortedHotels, setSortedHotels] = (0, react_1.useState)();
40
40
  const basketRow = (_b = basketContext.selectedBasketRow) !== null && _b !== void 0 ? _b : basketContext.currentBasketRows[0];
41
- const { raise } = hooks_1.useEvent();
42
- react_1.useEffect(() => {
41
+ const { raise } = (0, EventHook_1.useEvent)();
42
+ (0, react_1.useEffect)(() => {
43
43
  const event = new events_1.StepHotelViewEvent();
44
44
  raise(event);
45
45
  }, []);
46
- react_1.useEffect(() => {
46
+ (0, react_1.useEffect)(() => {
47
47
  const hotelsToShow = ccx.hotels.filter((hotel) => {
48
48
  var _a;
49
49
  if (((_a = hotel.address) === null || _a === void 0 ? void 0 : _a.city) === city) {
@@ -68,7 +68,7 @@ const StepHotelComponent = () => {
68
68
  }));
69
69
  }
70
70
  }, [ccx.hotels, sortBy, city]);
71
- react_1.useEffect(() => {
71
+ (0, react_1.useEffect)(() => {
72
72
  const cities = {};
73
73
  ccx.hotels.forEach((hotel) => {
74
74
  // We must wait till address is loaded
@@ -78,12 +78,12 @@ const StepHotelComponent = () => {
78
78
  });
79
79
  setCityOptions([{ value: 'All', text: 'All' }, ...Object.values(cities)]);
80
80
  }, [ccx.hotels]);
81
- react_1.useEffect(() => {
81
+ (0, react_1.useEffect)(() => {
82
82
  ccx.hotels.forEach((hotel) => {
83
83
  ccx.updateLowestPricePerNight(hotel, basketRow);
84
84
  });
85
85
  }, [basketRow === null || basketRow === void 0 ? void 0 : basketRow.getStartDate(), basketRow === null || basketRow === void 0 ? void 0 : basketRow.getEndDate(), basketRow === null || basketRow === void 0 ? void 0 : basketRow.getAdults(), basketRow === null || basketRow === void 0 ? void 0 : basketRow.getChildren(), basketRow === null || basketRow === void 0 ? void 0 : basketRow.getPromoCode()]);
86
- const { t } = react_i18next_1.useTranslation();
86
+ const { t } = (0, react_i18next_1.useTranslation)();
87
87
  const changeCountry = (selected) => {
88
88
  setCity(selected);
89
89
  };
@@ -95,7 +95,7 @@ const StepHotelComponent = () => {
95
95
  setCity((_a = cityOptions[0]) === null || _a === void 0 ? void 0 : _a.value);
96
96
  setSortBy(sortByValues[0].value);
97
97
  };
98
- react_1.useEffect(() => {
98
+ (0, react_1.useEffect)(() => {
99
99
  const startDate = basketRow.getStartDate();
100
100
  const endDate = basketRow.getEndDate();
101
101
  if (!startDate || !endDate) {
@@ -1 +1 @@
1
- {"version":3,"file":"StepHotelComponent.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotelComponent.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAwD;AACxD,iDAA+C;AAC/C,mEAA4D;AAC5D,2DAAkE;AAClE,mEAA4D;AAC5D,qEAA8D;AAC9D,iFAA0E;AAC1E,iGAA0F;AAC1F,iDAAgH;AAGhH,mEAAgE;AAChE,+CAA4C;AAC5C,yDAAkD;AAClD,2CAA2C;AAC3C,4CAAqD;AAErD,IAAK,aAIJ;AAJD,WAAK,aAAa;IACd,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,mCAAkB,CAAA;AACtB,CAAC,EAJI,aAAa,KAAb,aAAa,QAIjB;AAED,MAAM,kBAAkB,GAAG,GAAG,EAAE;;IAC5B,MAAM,YAAY,GAAG;QACjB,EAAE,KAAK,EAAE,aAAa,CAAC,WAAW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4BACrE,oBAAC,kBAAQ,IAAC,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,GAAI,CAC5E,CACJ,CACJ;gBACN,6BAAK,SAAS,EAAE,qDAAqD,GAAG,CAAC,OAAO,CAAC,UAAU,IAAI,oBAAU,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;oBACxI,oBAAC,kBAAQ,IAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,YAAK,WAAW,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAA,IAAI,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,gBAE7H,CACT,CACJ,CAER,CACJ;QACN,oBAAC,mBAAS,OAAG;QACZ,oBAAC,+BAAqB,OAAG;QAC1B,oBAAC,uBAAa,IAAC,SAAS,EAAE,YAAY,GAAI,CACxC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport * as React from 'react';\nimport { useEffect, useContext, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport BEButton from '../../../components/generic/BEButton';\nimport Text, { TextType } from '../../../components/generic/Text';\nimport BESelect from '../../../components/generic/BESelect';\nimport LineBreak from '../../../components/generic/LineBreak';\nimport HotelCardList from '../../../components/steps/hotel/HotelCardList';\nimport HotelSearchParameters from '../../../components/steps/hotel/HotelSearchParameters';\nimport { BasketContext, BookingEngineContext, CompanyContext, FullPageEngineContext } from '@frontend/contexts';\nimport type { Hotel } from '../../../models/Client/Hotel/Hotel';\n\nimport { Translation } from '../../../translations/Translation';\nimport { Color } from '../../../util/Color';\nimport ScreenSize from '../../../util/ScreenSize';\nimport { useEvent } from '@frontend/hooks';\nimport { StepHotelViewEvent } from '../../../events';\n\nenum SortByOptions {\n Recommended = 'R',\n LowestPrice = 'L',\n HighestPrice = 'H',\n}\n\nconst StepHotelComponent = () => {\n const sortByValues = [\n { value: SortByOptions.Recommended, text: 'Recommended' },\n { value: SortByOptions.LowestPrice, text: 'Lowest Price' },\n { value: SortByOptions.HighestPrice, text: 'Highest Price' },\n ];\n\n const ccx = useContext(CompanyContext);\n const context = useContext(BookingEngineContext);\n const basketContext = useContext(BasketContext);\n const fullPageContext = useContext(FullPageEngineContext);\n\n const [sortBy, setSortBy] = useState<SortByOptions>(sortByValues[0].value);\n const [city, setCity] = useState(fullPageContext.urlParameters.defaultCity ?? 'All');\n\n const [cityOptions, setCityOptions] = useState([]);\n\n const [sortedHotels, setSortedHotels] = useState<Hotel[]>();\n\n const basketRow = basketContext.selectedBasketRow ?? basketContext.currentBasketRows[0];\n\n const { raise } = useEvent();\n\n useEffect(() => {\n const event = new StepHotelViewEvent();\n raise(event);\n }, []);\n\n useEffect(() => {\n const hotelsToShow = ccx.hotels.filter((hotel: Hotel) => {\n if (hotel.address?.city === city) {\n return hotel;\n } else if (city === 'All') {\n return hotel;\n }\n });\n\n if (sortBy === SortByOptions.Recommended) {\n setSortedHotels(hotelsToShow);\n } else {\n setSortedHotels(\n [...hotelsToShow].sort((a: Hotel, b: Hotel) => {\n switch (sortBy) {\n case SortByOptions.LowestPrice:\n return a.lowestPrice?.value - b.lowestPrice?.value;\n case SortByOptions.HighestPrice:\n return b.lowestPrice?.value - a.lowestPrice?.value;\n }\n })\n );\n }\n }, [ccx.hotels, sortBy, city]);\n\n useEffect(() => {\n const cities: { [cityName: string]: any } = {};\n\n ccx.hotels.forEach((hotel: Hotel) => {\n // We must wait till address is loaded\n if (hotel.address) {\n cities[hotel.address.city] = { value: hotel.address.city, text: hotel.address.city };\n }\n });\n\n setCityOptions([{ value: 'All', text: 'All' }, ...Object.values(cities)]);\n }, [ccx.hotels]);\n\n useEffect(() => {\n ccx.hotels.forEach((hotel) => {\n ccx.updateLowestPricePerNight(hotel, basketRow);\n });\n }, [basketRow?.getStartDate(), basketRow?.getEndDate(), basketRow?.getAdults(), basketRow?.getChildren(), basketRow?.getPromoCode()]);\n\n const { t } = useTranslation();\n\n const changeCountry = (selected: string) => {\n setCity(selected);\n };\n\n const changeFilter = (selected: SortByOptions) => {\n setSortBy(selected);\n };\n\n const clearFilters = () => {\n setCity(cityOptions[0]?.value);\n setSortBy(sortByValues[0].value);\n };\n\n useEffect(() => {\n const startDate = basketRow.getStartDate();\n const endDate = basketRow.getEndDate();\n\n if (!startDate || !endDate) {\n if (startDate) {\n basketRow.setEndDate(startDate.add(1, 'day'));\n } else {\n basketRow.setStartDate(dayjs().add(1, 'day'));\n basketRow.setEndDate(dayjs().add(2, 'day'));\n }\n\n basketContext.updateBasketRow(basketRow);\n }\n }, []);\n\n return (\n <div className=\"container\">\n <div className={'row' + (context.screenSize > ScreenSize.ExtraLarge ? ' no-gutters' : '')}>\n <div className=\"col-md-8\">\n {\n <div className=\"row align-items-end\">\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Text type={TextType.Label} color={Color.DarkGrey}>\n <strong>{t(Translation.Step.Room.SortBy)}</strong>\n </Text>\n <div>\n <BESelect items={sortByValues} selectedValue={sortBy} onChange={changeFilter} />\n </div>\n </div>\n <div className=\"col-6 col-md-2 col-lg-2\">\n <div>\n <Text type={TextType.Label} color={Color.DarkGrey}>\n <strong>Cities</strong>\n </Text>\n <div className=\"filter-button d-flex align-items-center u-cursor-pointer\">\n <BESelect items={cityOptions} selectedValue={city} onChange={changeCountry} />\n </div>\n </div>\n </div>\n <div className={'col-sm-12 col-md-2 col-lg-1 u-flex u-flex-flex-end ' + (context.screenSize <= ScreenSize.Medium ? 'u-marg-top--light' : '')}>\n <BEButton rounded={true} size=\"tiny\" onClick={clearFilters} disabled={city === cityOptions[0]?.value && sortBy === sortByValues[0].value}>\n Clear all\n </BEButton>\n </div>\n </div>\n }\n </div>\n </div>\n <LineBreak />\n {<HotelSearchParameters />}\n <HotelCardList hotelList={sortedHotels} />\n </div>\n );\n};\n\nexport default StepHotelComponent;\n"]}
1
+ {"version":3,"file":"StepHotelComponent.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotelComponent.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAwD;AACxD,iDAA+C;AAC/C,iDAAgH;AAChH,0DAAmD;AACnD,kDAAyD;AACzD,0DAAmD;AACnD,4DAAqD;AACrD,wEAAiE;AACjE,wFAAiF;AAGjF,0DAAuD;AACvD,sCAAmC;AACnC,gDAAyC;AACzC,+CAA2C;AAC3C,6CAAsD;AAEtD,IAAK,aAIJ;AAJD,WAAK,aAAa;IACd,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,mCAAkB,CAAA;AACtB,CAAC,EAJI,aAAa,KAAb,aAAa,QAIjB;AAED,MAAM,kBAAkB,GAAG,GAAG,EAAE;;IAC5B,MAAM,YAAY,GAAG;QACjB,EAAE,KAAK,EAAE,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE;QACzD,EAAE,KAAK,EAAE,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE;QAC1D,EAAE,KAAK,EAAE,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE;KAC/D,CAAC;IAEF,MAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,yBAAc,CAAC,CAAC;IACvC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,+BAAoB,CAAC,CAAC;IACjD,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAChD,MAAM,eAAe,GAAG,IAAA,kBAAU,EAAC,gCAAqB,CAAC,CAAC;IAE1D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAgB,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC3E,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAA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,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,gBAE7H,CACT,CACJ,CAER,CACJ;QACN,oBAAC,mBAAS,OAAG;QACZ,oBAAC,+BAAqB,OAAG;QAC1B,oBAAC,uBAAa,IAAC,SAAS,EAAE,YAAY,GAAI,CACxC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport * as React from 'react';\nimport { useEffect, useContext, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { BasketContext, BookingEngineContext, CompanyContext, FullPageEngineContext } from '@frontend/contexts';\nimport BEButton from 'components/generic/BEButton';\nimport Text, { TextType } from 'components/generic/Text';\nimport BESelect from 'components/generic/BESelect';\nimport LineBreak from 'components/generic/LineBreak';\nimport HotelCardList from 'components/steps/hotel/HotelCardList';\nimport HotelSearchParameters from 'components/steps/hotel/HotelSearchParameters';\nimport type { Hotel } from 'models/Client/Hotel/Hotel';\n\nimport { Translation } from 'translations/Translation';\nimport { Color } from 'util/Color';\nimport ScreenSize from 'util/ScreenSize';\nimport { useEvent } from 'hooks/EventHook';\nimport { StepHotelViewEvent } from '@frontend/events';\n\nenum SortByOptions {\n Recommended = 'R',\n LowestPrice = 'L',\n HighestPrice = 'H',\n}\n\nconst StepHotelComponent = () => {\n const sortByValues = [\n { value: SortByOptions.Recommended, text: 'Recommended' },\n { value: SortByOptions.LowestPrice, text: 'Lowest Price' },\n { value: SortByOptions.HighestPrice, text: 'Highest Price' },\n ];\n\n const ccx = useContext(CompanyContext);\n const context = useContext(BookingEngineContext);\n const basketContext = useContext(BasketContext);\n const fullPageContext = useContext(FullPageEngineContext);\n\n const [sortBy, setSortBy] = useState<SortByOptions>(sortByValues[0].value);\n const [city, setCity] = useState(fullPageContext.urlParameters.defaultCity ?? 'All');\n\n const [cityOptions, setCityOptions] = useState([]);\n\n const [sortedHotels, setSortedHotels] = useState<Hotel[]>();\n\n const basketRow = basketContext.selectedBasketRow ?? basketContext.currentBasketRows[0];\n\n const { raise } = useEvent();\n\n useEffect(() => {\n const event = new StepHotelViewEvent();\n raise(event);\n }, []);\n\n useEffect(() => {\n const hotelsToShow = ccx.hotels.filter((hotel: Hotel) => {\n if (hotel.address?.city === city) {\n return hotel;\n } else if (city === 'All') {\n return hotel;\n }\n });\n\n if (sortBy === SortByOptions.Recommended) {\n setSortedHotels(hotelsToShow);\n } else {\n setSortedHotels(\n [...hotelsToShow].sort((a: Hotel, b: Hotel) => {\n switch (sortBy) {\n case SortByOptions.LowestPrice:\n return a.lowestPrice?.value - b.lowestPrice?.value;\n case SortByOptions.HighestPrice:\n return b.lowestPrice?.value - a.lowestPrice?.value;\n }\n })\n );\n }\n }, [ccx.hotels, sortBy, city]);\n\n useEffect(() => {\n const cities: { [cityName: string]: any } = {};\n\n ccx.hotels.forEach((hotel: Hotel) => {\n // We must wait till address is loaded\n if (hotel.address) {\n cities[hotel.address.city] = { value: hotel.address.city, text: hotel.address.city };\n }\n });\n\n setCityOptions([{ value: 'All', text: 'All' }, ...Object.values(cities)]);\n }, [ccx.hotels]);\n\n useEffect(() => {\n ccx.hotels.forEach((hotel) => {\n ccx.updateLowestPricePerNight(hotel, basketRow);\n });\n }, [basketRow?.getStartDate(), basketRow?.getEndDate(), basketRow?.getAdults(), basketRow?.getChildren(), basketRow?.getPromoCode()]);\n\n const { t } = useTranslation();\n\n const changeCountry = (selected: string) => {\n setCity(selected);\n };\n\n const changeFilter = (selected: SortByOptions) => {\n setSortBy(selected);\n };\n\n const clearFilters = () => {\n setCity(cityOptions[0]?.value);\n setSortBy(sortByValues[0].value);\n };\n\n useEffect(() => {\n const startDate = basketRow.getStartDate();\n const endDate = basketRow.getEndDate();\n\n if (!startDate || !endDate) {\n if (startDate) {\n basketRow.setEndDate(startDate.add(1, 'day'));\n } else {\n basketRow.setStartDate(dayjs().add(1, 'day'));\n basketRow.setEndDate(dayjs().add(2, 'day'));\n }\n\n basketContext.updateBasketRow(basketRow);\n }\n }, []);\n\n return (\n <div className=\"container\">\n <div className={'row' + (context.screenSize > ScreenSize.ExtraLarge ? ' no-gutters' : '')}>\n <div className=\"col-md-8\">\n {\n <div className=\"row align-items-end\">\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Text type={TextType.Label} color={Color.DarkGrey}>\n <strong>{t(Translation.Step.Room.SortBy)}</strong>\n </Text>\n <div>\n <BESelect items={sortByValues} selectedValue={sortBy} onChange={changeFilter} />\n </div>\n </div>\n <div className=\"col-6 col-md-2 col-lg-2\">\n <div>\n <Text type={TextType.Label} color={Color.DarkGrey}>\n <strong>Cities</strong>\n </Text>\n <div className=\"filter-button d-flex align-items-center u-cursor-pointer\">\n <BESelect items={cityOptions} selectedValue={city} onChange={changeCountry} />\n </div>\n </div>\n </div>\n <div className={'col-sm-12 col-md-2 col-lg-1 u-flex u-flex-flex-end ' + (context.screenSize <= ScreenSize.Medium ? 'u-marg-top--light' : '')}>\n <BEButton rounded={true} size=\"tiny\" onClick={clearFilters} disabled={city === cityOptions[0]?.value && sortBy === sortByValues[0].value}>\n Clear all\n </BEButton>\n </div>\n </div>\n }\n </div>\n </div>\n <LineBreak />\n {<HotelSearchParameters />}\n <HotelCardList hotelList={sortedHotels} />\n </div>\n );\n};\n\nexport default StepHotelComponent;\n"]}
@@ -1 +1,2 @@
1
- export default function (): JSX.Element;
1
+ declare const StepHotelLoader: () => JSX.Element;
2
+ export default StepHotelLoader;
@@ -4,12 +4,12 @@ const contexts_1 = require("@frontend/contexts");
4
4
  const React = require("react");
5
5
  const react_1 = require("react");
6
6
  const react_2 = require("react");
7
- const LineBreak_1 = require("../../../components/generic/LineBreak");
8
- const Placeholder_1 = require("../../../components/generic/Placeholder");
9
- const ScreenSize_1 = require("../../../util/ScreenSize");
10
- const StepHotelComponent = react_2.lazy(() => Promise.resolve().then(() => require('./StepHotelComponent')));
11
- const StepHotelLoader = () => {
12
- const { screenSize } = react_1.useContext(contexts_1.BookingEngineContext);
7
+ const LineBreak_1 = require("components/generic/LineBreak");
8
+ const Placeholder_1 = require("components/generic/Placeholder");
9
+ const ScreenSize_1 = require("util/ScreenSize");
10
+ const StepHotelComponent = (0, react_2.lazy)(() => Promise.resolve().then(() => require('pages/steps/StepHotel/StepHotelComponent')));
11
+ const Loader = () => {
12
+ const { screenSize } = (0, react_1.useContext)(contexts_1.BookingEngineContext);
13
13
  return screenSize > ScreenSize_1.default.Medium ? (React.createElement("div", { className: "container" },
14
14
  React.createElement("div", { className: "u-marg-bottom--heavy" },
15
15
  React.createElement(Placeholder_1.default, { blink: true, type: "text", w: "xs", h: "xs" }),
@@ -48,9 +48,9 @@ const StepHotelLoader = () => {
48
48
  React.createElement(Placeholder_1.default, { type: "text", w: "md", h: "xl", blink: true }),
49
49
  React.createElement(Placeholder_1.default, { type: "text", w: "xl", h: "md", blink: true }))));
50
50
  };
51
- function default_1() {
52
- return (React.createElement(react_2.Suspense, { fallback: React.createElement(StepHotelLoader, null) },
51
+ const StepHotelLoader = () => {
52
+ return (React.createElement(react_2.Suspense, { fallback: React.createElement(Loader, null) },
53
53
  React.createElement(StepHotelComponent, null)));
54
- }
55
- exports.default = default_1;
54
+ };
55
+ exports.default = StepHotelLoader;
56
56
  //# sourceMappingURL=StepHotelLoader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepHotelLoader.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotelLoader.tsx"],"names":[],"mappings":";;AAAA,iDAA0D;AAC1D,+BAA+B;AAC/B,iCAAmC;AAEnC,iCAAuC;AACvC,qEAA8D;AAC9D,yEAAkE;AAClE,yDAAkD;AAElD,MAAM,kBAAkB,GAAG,YAAI,CAAC,GAAG,EAAE,sCAAQ,sBAAsB,EAAC,CAAC,CAAC;AAEtE,MAAM,eAAe,GAAG,GAAG,EAAE;IACzB,MAAM,EAAE,UAAU,EAAE,GAAG,kBAAU,CAAC,+BAAoB,CAAC,CAAC;IAExD,OAAO,UAAU,GAAG,oBAAU,CAAC,MAAM,CAAC,CAAC,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AC,CAAC;AAEF;IACI,OAAO,CACH,oBAAC,gBAAQ,IAAC,QAAQ,EAAE,oBAAC,eAAe,OAAG;QACnC,oBAAC,kBAAkB,OAAG,CACf,CACd,CAAC;AACN,CAAC;AAND,4BAMC","sourcesContent":["import { BookingEngineContext } from '@frontend/contexts';\nimport * as React from 'react';\nimport { useContext } from 'react';\n\nimport { lazy, Suspense } from 'react';\nimport LineBreak from '../../../components/generic/LineBreak';\nimport Placeholder from '../../../components/generic/Placeholder';\nimport ScreenSize from '../../../util/ScreenSize';\n\nconst StepHotelComponent = lazy(() => import('./StepHotelComponent'));\n\nconst StepHotelLoader = () => {\n const { screenSize } = useContext(BookingEngineContext);\n\n return screenSize > ScreenSize.Medium ? (\n <div className=\"container\">\n <div className=\"u-marg-bottom--heavy\">\n <Placeholder blink={true} type=\"text\" w=\"xs\" h=\"xs\" />\n <Placeholder blink={true} type=\"text\" w=\"sm\" h=\"md\" />\n </div>\n <div>\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"lg\" />\n </div>\n <LineBreak />\n <div>\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"lg\" />\n </div>\n <div className=\"row\">\n {[0, 1, 2].map((index) => (\n <div className=\"col-md-4\" key={index}>\n <Placeholder blink={true} rounded=\"lg\" type=\"block\" blockSize=\"sm\" />\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"lg\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"xs\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"xs\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"xs\" />\n <Placeholder blink={true} type=\"block\" blockSize=\"xs\" rounded=\"md\" />\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"xl\" />\n </div>\n ))}\n </div>\n </div>\n ) : (\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-6\">\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n </div>\n <div className=\"col-6\">\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n </div>\n </div>\n <LineBreak />\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n <div className=\"u-marg-top--xl\">\n <Placeholder type=\"block\" blockSize=\"xs\" rounded=\"lg\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top--heavy\">\n <Placeholder type=\"text\" w=\"md\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"xs\" blink={true} />\n </div>\n <Placeholder type=\"block\" blockSize=\"xs\" rounded=\"lg\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"xl\" blink={true} />\n <Placeholder type=\"text\" w=\"xl\" h=\"md\" blink={true} />\n </div>\n </div>\n );\n};\n\nexport default function () {\n return (\n <Suspense fallback={<StepHotelLoader />}>\n <StepHotelComponent />\n </Suspense>\n );\n}\n"]}
1
+ {"version":3,"file":"StepHotelLoader.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotelLoader.tsx"],"names":[],"mappings":";;AAAA,iDAA0D;AAC1D,+BAA+B;AAC/B,iCAAmC;AAEnC,iCAAuC;AACvC,4DAAqD;AACrD,gEAAyD;AACzD,gDAAyC;AAEzC,MAAM,kBAAkB,GAAG,IAAA,YAAI,EAAC,GAAG,EAAE,sCAAQ,0CAA0C,EAAC,CAAC,CAAC;AAE1F,MAAM,MAAM,GAAG,GAAG,EAAE;IAChB,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,kBAAU,EAAC,+BAAoB,CAAC,CAAC;IAExD,OAAO,UAAU,GAAG,oBAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACpC,6BAAK,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M,eAAe,GAAG,GAAG,EAAE;IACzB,OAAO,CACH,oBAAC,gBAAQ,IAAC,QAAQ,EAAE,oBAAC,MAAM,OAAG;QAC1B,oBAAC,kBAAkB,OAAG,CACf,CACd,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import { BookingEngineContext } from '@frontend/contexts';\nimport * as React from 'react';\nimport { useContext } from 'react';\n\nimport { lazy, Suspense } from 'react';\nimport LineBreak from 'components/generic/LineBreak';\nimport Placeholder from 'components/generic/Placeholder';\nimport ScreenSize from 'util/ScreenSize';\n\nconst StepHotelComponent = lazy(() => import('pages/steps/StepHotel/StepHotelComponent'));\n\nconst Loader = () => {\n const { screenSize } = useContext(BookingEngineContext);\n\n return screenSize > ScreenSize.Medium ? (\n <div className=\"container\">\n <div className=\"u-marg-bottom--heavy\">\n <Placeholder blink={true} type=\"text\" w=\"xs\" h=\"xs\" />\n <Placeholder blink={true} type=\"text\" w=\"sm\" h=\"md\" />\n </div>\n <div>\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"lg\" />\n </div>\n <LineBreak />\n <div>\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"lg\" />\n </div>\n <div className=\"row\">\n {[0, 1, 2].map((index) => (\n <div className=\"col-md-4\" key={index}>\n <Placeholder blink={true} rounded=\"lg\" type=\"block\" blockSize=\"sm\" />\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"lg\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"xs\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"xs\" />\n <Placeholder blink={true} type=\"text\" w=\"xl\" h=\"xs\" />\n <Placeholder blink={true} type=\"block\" blockSize=\"xs\" rounded=\"md\" />\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"xl\" />\n </div>\n ))}\n </div>\n </div>\n ) : (\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-6\">\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n </div>\n <div className=\"col-6\">\n <Placeholder blink={true} type=\"text\" w=\"md\" h=\"md\" />\n </div>\n </div>\n <LineBreak />\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n <div className=\"u-marg-top--xl\">\n <Placeholder type=\"block\" blockSize=\"xs\" rounded=\"lg\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top--heavy\">\n <Placeholder type=\"text\" w=\"md\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"xs\" blink={true} />\n </div>\n <Placeholder type=\"block\" blockSize=\"xs\" rounded=\"lg\" blink={true} />\n <Placeholder type=\"text\" w=\"md\" h=\"xl\" blink={true} />\n <Placeholder type=\"text\" w=\"xl\" h=\"md\" blink={true} />\n </div>\n </div>\n );\n};\n\nconst StepHotelLoader = () => {\n return (\n <Suspense fallback={<Loader />}>\n <StepHotelComponent />\n </Suspense>\n );\n};\n\nexport default StepHotelLoader;\n"]}
@@ -1,4 +1,4 @@
1
- import StepValidator from '../StepValidator';
1
+ import StepValidator from 'pages/steps/StepValidator';
2
2
  export default class StepHotelValidator extends StepValidator {
3
3
  isValid(): boolean;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const StepValidator_1 = require("../StepValidator");
3
+ const StepValidator_1 = require("pages/steps/StepValidator");
4
4
  class StepHotelValidator extends StepValidator_1.default {
5
5
  isValid() {
6
6
  return true;
@@ -1 +1 @@
1
- {"version":3,"file":"StepHotelValidator.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotelValidator.ts"],"names":[],"mappings":";;AAAA,oDAA6C;AAE7C,MAAqB,kBAAmB,SAAQ,uBAAa;IAClD,OAAO;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAJD,qCAIC","sourcesContent":["import StepValidator from '../StepValidator';\n\nexport default class StepHotelValidator extends StepValidator {\n public isValid() {\n return true;\n }\n}\n"]}
1
+ {"version":3,"file":"StepHotelValidator.js","sourceRoot":"/","sources":["src/pages/steps/StepHotel/StepHotelValidator.ts"],"names":[],"mappings":";;AAAA,6DAAsD;AAEtD,MAAqB,kBAAmB,SAAQ,uBAAa;IAClD,OAAO;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAJD,qCAIC","sourcesContent":["import StepValidator from 'pages/steps/StepValidator';\n\nexport default class StepHotelValidator extends StepValidator {\n public isValid() {\n return true;\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
- import ColorProfile from '../../../models/Client/Hotel/ColorProfile';
2
- import { Company } from '../../../models/Client/Hotel/Company';
3
- import { Hotel } from '../../../models/Client/Hotel/Hotel';
4
- import Step from '../Step';
5
- import StepRoomLoader from './StepRoomLoader';
6
- import StepRoomValidator from './StepRoomValidator';
1
+ import ColorProfile from 'models/Client/Hotel/ColorProfile';
2
+ import { Company } from 'models/Client/Hotel/Company';
3
+ import { Hotel } from 'models/Client/Hotel/Hotel';
4
+ import Step from 'pages/steps/Step';
5
+ import StepRoomLoader from 'pages/steps/StepRoom/StepRoomLoader';
6
+ import StepRoomValidator from 'pages/steps/StepRoom/StepRoomValidator';
7
7
  declare class StepRoom extends Step {
8
8
  constructor();
9
9
  getComponent(): typeof StepRoomLoader;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Translation_1 = require("../../../translations/Translation");
4
- const Step_1 = require("../Step");
5
- const StepRoomLoader_1 = require("./StepRoomLoader");
6
- const StepRoomValidator_1 = require("./StepRoomValidator");
3
+ const Translation_1 = require("translations/Translation");
4
+ const Step_1 = require("pages/steps/Step");
5
+ const StepRoomLoader_1 = require("pages/steps/StepRoom/StepRoomLoader");
6
+ const StepRoomValidator_1 = require("pages/steps/StepRoom/StepRoomValidator");
7
7
  class StepRoom extends Step_1.default {
8
8
  constructor() {
9
9
  super('Room');
@@ -1 +1 @@
1
- {"version":3,"file":"StepRoom.js","sourceRoot":"/","sources":["src/pages/steps/StepRoom/StepRoom.ts"],"names":[],"mappings":";;AAGA,mEAAgE;AAChE,kCAA2B;AAC3B,qDAA8C;AAC9C,2DAAoD;AAEpD,MAAM,QAAS,SAAQ,cAAI;IACvB;QACI,KAAK,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEM,YAAY;QACf,OAAO,wBAAc,CAAC;IAC1B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,2BAAiB,EAAE,CAAC;IACnC,CAAC;IAEM,kBAAkB;QACrB,OAAO,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;IAC7C,CAAC;IAEM,eAAe,CAAC,OAAgB,EAAE,KAAa;QAClD,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,MAAM,CAAC;SACvB;IACL,CAAC;CACJ;AAED,kBAAe,IAAI,QAAQ,EAAE,CAAC","sourcesContent":["import ColorProfile from '../../../models/Client/Hotel/ColorProfile';\nimport { Company } from '../../../models/Client/Hotel/Company';\nimport { Hotel } from '../../../models/Client/Hotel/Hotel';\nimport { Translation } from '../../../translations/Translation';\nimport Step from '../Step';\nimport StepRoomLoader from './StepRoomLoader';\nimport StepRoomValidator from './StepRoomValidator';\n\nclass StepRoom extends Step {\n public constructor() {\n super('Room');\n }\n\n public getComponent() {\n return StepRoomLoader;\n }\n\n public getValidator() {\n return new StepRoomValidator();\n }\n\n public getStepTranslation() {\n return Translation.Navigation.Steps.Room;\n }\n\n public getColorProfile(company: Company, hotel?: Hotel): ColorProfile {\n if (hotel) {\n return hotel.colors;\n }\n }\n}\n\nexport default new StepRoom();\n"]}
1
+ {"version":3,"file":"StepRoom.js","sourceRoot":"/","sources":["src/pages/steps/StepRoom/StepRoom.ts"],"names":[],"mappings":";;AAGA,0DAAuD;AACvD,2CAAoC;AACpC,wEAAiE;AACjE,8EAAuE;AAEvE,MAAM,QAAS,SAAQ,cAAI;IACvB;QACI,KAAK,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEM,YAAY;QACf,OAAO,wBAAc,CAAC;IAC1B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,2BAAiB,EAAE,CAAC;IACnC,CAAC;IAEM,kBAAkB;QACrB,OAAO,yBAAW,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;IAC7C,CAAC;IAEM,eAAe,CAAC,OAAgB,EAAE,KAAa;QAClD,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,MAAM,CAAC;SACvB;IACL,CAAC;CACJ;AAED,kBAAe,IAAI,QAAQ,EAAE,CAAC","sourcesContent":["import ColorProfile from 'models/Client/Hotel/ColorProfile';\nimport { Company } from 'models/Client/Hotel/Company';\nimport { Hotel } from 'models/Client/Hotel/Hotel';\nimport { Translation } from 'translations/Translation';\nimport Step from 'pages/steps/Step';\nimport StepRoomLoader from 'pages/steps/StepRoom/StepRoomLoader';\nimport StepRoomValidator from 'pages/steps/StepRoom/StepRoomValidator';\n\nclass StepRoom extends Step {\n public constructor() {\n super('Room');\n }\n\n public getComponent() {\n return StepRoomLoader;\n }\n\n public getValidator() {\n return new StepRoomValidator();\n }\n\n public getStepTranslation() {\n return Translation.Navigation.Steps.Room;\n }\n\n public getColorProfile(company: Company, hotel?: Hotel): ColorProfile {\n if (hotel) {\n return hotel.colors;\n }\n }\n}\n\nexport default new StepRoom();\n"]}
@@ -1 +1,2 @@
1
- export default function (): JSX.Element;
1
+ declare const StepRoomComponent: () => JSX.Element;
2
+ export default StepRoomComponent;
@@ -4,33 +4,30 @@ const react_1 = require("react");
4
4
  const React = require("react");
5
5
  const react_i18next_1 = require("react-i18next");
6
6
  const react_router_dom_1 = require("react-router-dom");
7
- const BackButton_1 = require("../../../components/generic/BackButton");
8
- const Headline_1 = require("../../../components/generic/Headline");
9
- const Icon_1 = require("../../../components/generic/Icon");
10
- const LineBreak_1 = require("../../../components/generic/LineBreak");
11
- const Text_1 = require("../../../components/generic/Text");
12
- const RoomBuilderProgress_1 = require("../../../components/steps/room/roomBuilderProgress/RoomBuilderProgress");
13
- const AppliedFiltersBlock_1 = require("../../../components/steps/room/roomFilter/AppliedFiltersBlock");
14
- const RoomFilterOverlay_1 = require("../../../components/steps/room/roomFilter/RoomFilterOverlay");
15
- const RoomList_1 = require("../../../components/steps/room/RoomList");
16
- const StepRoomAlertBlocks_1 = require("../../../components/steps/room/StepRoomAlertBlocks");
17
- const StepRoomHotelDetails_1 = require("../../../components/steps/room/StepRoomHotelDetails");
18
- const StepRoomSortBy_1 = require("../../../components/steps/room/StepRoomSortBy");
19
- const StepRoomSummaryAndButton_1 = require("../../../components/steps/room/StepRoomSummaryAndButton");
20
- const BEMobileSummary_1 = require("../../../components/summary/BEMobileSummary");
21
- const Translation_1 = require("../../../translations/Translation");
22
- const Color_1 = require("../../../util/Color");
23
- const ScreenSize_1 = require("../../../util/ScreenSize");
24
- const StepManager_1 = require("../../../util/StepManager");
25
- const DataLayer_1 = require("../../../util/DataLayer");
7
+ const BackButton_1 = require("components/generic/BackButton");
8
+ const Headline_1 = require("components/generic/Headline");
9
+ const Icon_1 = require("components/generic/Icon/Icon");
10
+ const LineBreak_1 = require("components/generic/LineBreak");
11
+ const Text_1 = require("components/generic/Text");
12
+ const AppliedFiltersBlock_1 = require("components/steps/room/roomFilter/AppliedFiltersBlock");
13
+ const RoomFilterOverlay_1 = require("components/steps/room/roomFilter/RoomFilterOverlay");
14
+ const RoomList_1 = require("components/steps/room/RoomList");
15
+ const StepRoomHotelDetails_1 = require("components/steps/room/StepRoomHotelDetails");
16
+ const StepRoomSortBy_1 = require("components/steps/room/StepRoomSortBy");
17
+ const StepRoomSummaryAndButton_1 = require("components/steps/room/StepRoomSummaryAndButton");
18
+ const BEMobileSummary_1 = require("components/summary/BEMobileSummary");
19
+ const Translation_1 = require("translations/Translation");
20
+ const Color_1 = require("util/Color");
21
+ const ScreenSize_1 = require("util/ScreenSize");
22
+ const StepManager_1 = require("util/StepManager");
23
+ const DataLayer_1 = require("util/DataLayer");
26
24
  const contexts_1 = require("@frontend/contexts");
27
- function default_1() {
28
- const context = react_1.useContext(contexts_1.BookingEngineContext);
29
- const { t } = react_i18next_1.useTranslation();
30
- const filterButton = react_1.useRef();
31
- const [filtersOpen, setFiltersOpen] = react_1.useState(false);
32
- const { currentStep } = react_1.useContext(contexts_1.FullPageEngineContext);
33
- const alertBlocks = React.createElement(StepRoomAlertBlocks_1.default, null);
25
+ const StepRoomComponent = () => {
26
+ const context = (0, react_1.useContext)(contexts_1.BookingEngineContext);
27
+ const { t } = (0, react_i18next_1.useTranslation)();
28
+ const filterButton = (0, react_1.useRef)();
29
+ const [filtersOpen, setFiltersOpen] = (0, react_1.useState)(false);
30
+ const { currentStep } = (0, react_1.useContext)(contexts_1.FullPageEngineContext);
34
31
  const openFilter = () => {
35
32
  DataLayer_1.default.instance.sendInteraction('Show Filters', DataLayer_1.InteractionType.DROPDOWN, DataLayer_1.InteractionStep.ROOMS);
36
33
  setFiltersOpen(true);
@@ -66,16 +63,9 @@ function default_1() {
66
63
  context.screenSize > ScreenSize_1.default.Medium && React.createElement(LineBreak_1.default, null),
67
64
  React.createElement("div", { className: 'row' + (context.screenSize > ScreenSize_1.default.ExtraLarge ? ' no-gutters' : '') },
68
65
  React.createElement("div", { className: "col-md-7 col-lg-8" },
69
- context.screenSize <= ScreenSize_1.default.Medium ? (React.createElement(React.Fragment, null,
70
- alertBlocks,
71
- React.createElement(LineBreak_1.default, { smallMargins: true }),
72
- React.createElement(RoomBuilderProgress_1.default, null),
73
- React.createElement(LineBreak_1.default, { smallMargins: true }))) : (React.createElement(React.Fragment, null,
74
- React.createElement(RoomBuilderProgress_1.default, null),
75
- alertBlocks)),
76
66
  React.createElement(RoomList_1.default, null)),
77
67
  React.createElement("div", { className: "col-xl-3 col-md-5 col-lg-4 offset-xl-1" },
78
68
  React.createElement(StepRoomSummaryAndButton_1.default, null)))));
79
- }
80
- exports.default = default_1;
69
+ };
70
+ exports.default = StepRoomComponent;
81
71
  //# sourceMappingURL=StepRoomComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepRoomComponent.js","sourceRoot":"/","sources":["src/pages/steps/StepRoom/StepRoomComponent.tsx"],"names":[],"mappings":";;AAAA,iCAAqD;AACrD,+BAA+B;AAC/B,iDAA+C;AAC/C,uDAAwC;AACxC,uEAAgE;AAChE,mEAA4D;AAC5D,2DAAkE;AAClE,qEAA8D;AAC9D,2DAAkE;AAClE,gHAAyG;AACzG,uGAAgG;AAChG,mGAA4F;AAC5F,sEAA+D;AAC/D,4FAAqF;AACrF,8FAAuF;AACvF,kFAA2E;AAC3E,sGAA+F;AAC/F,iFAA0E;AAE1E,mEAAgE;AAChE,+CAA4C;AAC5C,yDAAkD;AAClD,2DAAoD;AACpD,uDAAsF;AACtF,iDAAiF;AAEjF;IACI,MAAM,OAAO,GAAG,kBAAU,CAAC,+BAAoB,CAAC,CAAC;IAEjD,MAAM,EAAE,CAAC,EAAE,GAAG,8BAAc,EAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,cAAM,EAAE,CAAC;IAC9B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,gBAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,EAAE,WAAW,EAAE,GAAG,kBAAU,CAAC,gCAAqB,CAAC,CAAC;IAE1D,MAAM,WAAW,GAAG,oBAAC,6BAAmB,OAAG,CAAC;IAE5C,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,mBAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,cAAc,EAAE,2BAAe,CAAC,QAAQ,EAAE,2BAAe,CAAC,KAAK,CAAC,CAAC;QACpG,cAAc,CAAC,IAAI,CAAC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AG,CAC1B,CACJ,CACJ,CACT,CAAC;AACN,CAAC;AAzFD,4BAyFC","sourcesContent":["import { useContext, useRef, useState } from 'react';\nimport * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Link } from 'react-router-dom';\nimport BackButton from '../../../components/generic/BackButton';\nimport Headline from '../../../components/generic/Headline';\nimport Icon, { IconType } from '../../../components/generic/Icon';\nimport LineBreak from '../../../components/generic/LineBreak';\nimport Text, { TextType } from '../../../components/generic/Text';\nimport RoomBuilderProgress from '../../../components/steps/room/roomBuilderProgress/RoomBuilderProgress';\nimport AppliedFiltersBlock from '../../../components/steps/room/roomFilter/AppliedFiltersBlock';\nimport RoomFilterOverlay from '../../../components/steps/room/roomFilter/RoomFilterOverlay';\nimport RoomList from '../../../components/steps/room/RoomList';\nimport StepRoomAlertBlocks from '../../../components/steps/room/StepRoomAlertBlocks';\nimport StepRoomHotelDetails from '../../../components/steps/room/StepRoomHotelDetails';\nimport StepRoomSortBy from '../../../components/steps/room/StepRoomSortBy';\nimport StepRoomSummaryAndButton from '../../../components/steps/room/StepRoomSummaryAndButton';\nimport BEMobileSummary from '../../../components/summary/BEMobileSummary';\n\nimport { Translation } from '../../../translations/Translation';\nimport { Color } from '../../../util/Color';\nimport ScreenSize from '../../../util/ScreenSize';\nimport StepManager from '../../../util/StepManager';\nimport DataLayer, { InteractionType, InteractionStep } from '../../../util/DataLayer';\nimport { BookingEngineContext, FullPageEngineContext } from '@frontend/contexts';\n\nexport default function () {\n const context = useContext(BookingEngineContext);\n\n const { t } = useTranslation();\n\n const filterButton = useRef();\n const [filtersOpen, setFiltersOpen] = useState(false);\n\n const { currentStep } = useContext(FullPageEngineContext);\n\n const alertBlocks = <StepRoomAlertBlocks />;\n\n const openFilter = () => {\n DataLayer.instance.sendInteraction('Show Filters', InteractionType.DROPDOWN, InteractionStep.ROOMS);\n setFiltersOpen(true);\n };\n\n const closeFilter = () => {\n setFiltersOpen(false);\n };\n\n return (\n <div className=\"container\">\n <BEMobileSummary />\n <div className={'row' + (context.screenSize > ScreenSize.ExtraLarge ? ' no-gutters' : '')}>\n <div className=\"col-md-8\">\n {context.screenSize > ScreenSize.Medium && (\n <>\n <Link to={StepManager.getPreviousStepUrl(currentStep)}>\n <BackButton />\n </Link>\n <div className=\"u-marg-top--light u-marg-bottom--heavy\">\n <Headline bold={true}>{t(Translation.Step.Room.ChooseRoom)}</Headline>\n </div>\n </>\n )}\n <div className=\"row align-items-end\">\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Text type={TextType.Label} color={Color.DarkGrey}>\n <strong>{t(Translation.Step.Room.SortBy)}</strong>\n </Text>\n <div>\n <StepRoomSortBy />\n </div>\n </div>\n <div className=\"col-6 col-md-2 col-lg-2\">\n <div ref={filterButton}>\n <div className=\"filter-button d-flex align-items-center u-cursor-pointer\" onClick={openFilter}>\n <Text>{context.screenSize > ScreenSize.Medium ? t(Translation.Step.Room.FilterBy) : t(Translation.Step.Room.Filter.ShowFilters)}</Text>\n <Icon icon={IconType.Dropdown} color={Color.DarkGrey} />\n </div>\n {<RoomFilterOverlay open={filtersOpen} anchorEl={filterButton.current} onClose={closeFilter} />}\n </div>\n </div>\n <div className=\"col-md-12 col-lg-7 u-align-right u-marg-top@l- u-empty-none filter-push-down\">\n <AppliedFiltersBlock />\n </div>\n </div>\n </div>\n {context.screenSize > ScreenSize.Medium && (\n <div className=\"col-xl-3 col-md-4 offset-xl-1 align-self-end\">\n <StepRoomHotelDetails />\n </div>\n )}\n </div>\n {context.screenSize > ScreenSize.Medium && <LineBreak />}\n <div className={'row' + (context.screenSize > ScreenSize.ExtraLarge ? ' no-gutters' : '')}>\n <div className=\"col-md-7 col-lg-8\">\n {context.screenSize <= ScreenSize.Medium ? (\n <>\n {alertBlocks}\n <LineBreak smallMargins={true} />\n <RoomBuilderProgress />\n <LineBreak smallMargins={true} />\n </>\n ) : (\n <>\n <RoomBuilderProgress />\n {alertBlocks}\n </>\n )}\n <RoomList />\n </div>\n <div className=\"col-xl-3 col-md-5 col-lg-4 offset-xl-1\">\n <StepRoomSummaryAndButton />\n </div>\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"StepRoomComponent.js","sourceRoot":"/","sources":["src/pages/steps/StepRoom/StepRoomComponent.tsx"],"names":[],"mappings":";;AAAA,iCAAqD;AACrD,+BAA+B;AAC/B,iDAA+C;AAC/C,uDAAwC;AACxC,8DAAuD;AACvD,0DAAmD;AACnD,uDAA8D;AAC9D,4DAAqD;AACrD,kDAAyD;AACzD,8FAAuF;AACvF,0FAAmF;AACnF,6DAAsD;AACtD,qFAA8E;AAC9E,yEAAkE;AAClE,6FAAsF;AACtF,wEAAiE;AAEjE,0DAAuD;AACvD,sCAAmC;AACnC,gDAAyC;AACzC,kDAA2C;AAC3C,8CAA6E;AAC7E,iDAAiF;AAEjF,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC3B,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,+BAAoB,CAAC,CAAC;IAEjD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,IAAA,cAAM,GAAE,CAAC;IAC9B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAEtD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAU,EAAC,gCAAqB,CAAC,CAAC;IAE1D,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,mBAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,cAAc,EAAE,2BAAe,CAAC,QAAQ,EAAE,2BAAe,CAAC,KAAK,CAAC,CAAC;QACpG,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,cAAc,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC;IAEF,OAAO,CACH,6BAAK,SAAS,EAAC,WAAW;QACtB,oBAAC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I,EAAE,eAAQ,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAK,CAAC,QAAQ,GAAI,CACtD;4BACL,oBAAC,2BAAiB,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,GAAI,CAC7F,CACJ;oBACN,6BAAK,SAAS,EAAC,8EAA8E;wBACzF,oBAAC,6BAAmB,OAAG,CACrB,CACJ,CACJ;YACL,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,MAAM,IAAI,CACvC,6BAAK,SAAS,EAAC,8CAA8C;gBACzD,oBAAC,8BAAoB,OAAG,CACtB,CACT,CACC;QACL,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,MAAM,IAAI,oBAAC,mBAAS,OAAG;QACxD,6BAAK,SAAS,EAAE,KAAK,GAAG,CAAC,OAAO,CAAC,UAAU,GAAG,oBAAU,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YACrF,6BAAK,SAAS,EAAC,mBAAmB;gBAC9B,oBAAC,kBAAQ,OAAG,CACV;YACN,6BAAK,SAAS,EAAC,wCAAwC;gBACnD,oBAAC,kCAAwB,OAAG,CAC1B,CACJ,CACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC","sourcesContent":["import { useContext, useRef, useState } from 'react';\nimport * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Link } from 'react-router-dom';\nimport BackButton from 'components/generic/BackButton';\nimport Headline from 'components/generic/Headline';\nimport Icon, { IconType } from 'components/generic/Icon/Icon';\nimport LineBreak from 'components/generic/LineBreak';\nimport Text, { TextType } from 'components/generic/Text';\nimport AppliedFiltersBlock from 'components/steps/room/roomFilter/AppliedFiltersBlock';\nimport RoomFilterOverlay from 'components/steps/room/roomFilter/RoomFilterOverlay';\nimport RoomList from 'components/steps/room/RoomList';\nimport StepRoomHotelDetails from 'components/steps/room/StepRoomHotelDetails';\nimport StepRoomSortBy from 'components/steps/room/StepRoomSortBy';\nimport StepRoomSummaryAndButton from 'components/steps/room/StepRoomSummaryAndButton';\nimport BEMobileSummary from 'components/summary/BEMobileSummary';\n\nimport { Translation } from 'translations/Translation';\nimport { Color } from 'util/Color';\nimport ScreenSize from 'util/ScreenSize';\nimport StepManager from 'util/StepManager';\nimport DataLayer, { InteractionType, InteractionStep } from 'util/DataLayer';\nimport { BookingEngineContext, FullPageEngineContext } from '@frontend/contexts';\n\nconst StepRoomComponent = () => {\n const context = useContext(BookingEngineContext);\n\n const { t } = useTranslation();\n\n const filterButton = useRef();\n const [filtersOpen, setFiltersOpen] = useState(false);\n\n const { currentStep } = useContext(FullPageEngineContext);\n\n const openFilter = () => {\n DataLayer.instance.sendInteraction('Show Filters', InteractionType.DROPDOWN, InteractionStep.ROOMS);\n setFiltersOpen(true);\n };\n\n const closeFilter = () => {\n setFiltersOpen(false);\n };\n\n return (\n <div className=\"container\">\n <BEMobileSummary />\n <div className={'row' + (context.screenSize > ScreenSize.ExtraLarge ? ' no-gutters' : '')}>\n <div className=\"col-md-8\">\n {context.screenSize > ScreenSize.Medium && (\n <>\n <Link to={StepManager.getPreviousStepUrl(currentStep)}>\n <BackButton />\n </Link>\n <div className=\"u-marg-top--light u-marg-bottom--heavy\">\n <Headline bold={true}>{t(Translation.Step.Room.ChooseRoom)}</Headline>\n </div>\n </>\n )}\n <div className=\"row align-items-end\">\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Text type={TextType.Label} color={Color.DarkGrey}>\n <strong>{t(Translation.Step.Room.SortBy)}</strong>\n </Text>\n <div>\n <StepRoomSortBy />\n </div>\n </div>\n <div className=\"col-6 col-md-2 col-lg-2\">\n <div ref={filterButton}>\n <div className=\"filter-button d-flex align-items-center u-cursor-pointer\" onClick={openFilter}>\n <Text>{context.screenSize > ScreenSize.Medium ? t(Translation.Step.Room.FilterBy) : t(Translation.Step.Room.Filter.ShowFilters)}</Text>\n <Icon icon={IconType.Dropdown} color={Color.DarkGrey} />\n </div>\n {<RoomFilterOverlay open={filtersOpen} anchorEl={filterButton.current} onClose={closeFilter} />}\n </div>\n </div>\n <div className=\"col-md-12 col-lg-7 u-align-right u-marg-top@l- u-empty-none filter-push-down\">\n <AppliedFiltersBlock />\n </div>\n </div>\n </div>\n {context.screenSize > ScreenSize.Medium && (\n <div className=\"col-xl-3 col-md-4 offset-xl-1 align-self-end\">\n <StepRoomHotelDetails />\n </div>\n )}\n </div>\n {context.screenSize > ScreenSize.Medium && <LineBreak />}\n <div className={'row' + (context.screenSize > ScreenSize.ExtraLarge ? ' no-gutters' : '')}>\n <div className=\"col-md-7 col-lg-8\">\n <RoomList />\n </div>\n <div className=\"col-xl-3 col-md-5 col-lg-4 offset-xl-1\">\n <StepRoomSummaryAndButton />\n </div>\n </div>\n </div>\n );\n};\n\nexport default StepRoomComponent;\n"]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const React = require("react");
4
- const Placeholder_1 = require("../../../components/generic/Placeholder");
4
+ const Placeholder_1 = require("components/generic/Placeholder");
5
5
  const react_1 = require("react");
6
- const StepRoomComponent = react_1.lazy(() => Promise.resolve().then(() => require('./StepRoomComponent')));
6
+ const StepRoomComponent = (0, react_1.lazy)(() => Promise.resolve().then(() => require('pages/steps/StepRoom/StepRoomComponent')));
7
7
  function StepRoomPlaceholder() {
8
8
  return (React.createElement("div", { className: "container" },
9
9
  React.createElement("div", { className: "row no-gutters" },
@@ -1 +1 @@
1
- {"version":3,"file":"StepRoomLoader.js","sourceRoot":"/","sources":["src/pages/steps/StepRoom/StepRoomLoader.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,yEAAkE;AAElE,iCAAuC;AACvC,MAAM,iBAAiB,GAAG,YAAI,CAAC,GAAG,EAAE,sCAAQ,qBAAqB,EAAC,CAAC,CAAC;AAEpE,SAAS,mBAAmB;IACxB,OAAO,CACH,6BAAK,SAAS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ACJ,CACJ,CACJ;YACN,6BAAK,SAAS,EAAC,wCAAwC;gBACnD,6BAAK,SAAS,EAAC,OAAO;oBAClB;wBACI,oBAAC,qBAAW,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACnE;oBACN;wBACI,oBAAC,qBAAW,IAAC,IAAI,EAAC,MAAM,EAAC,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACpD;oBACN,6BAAK,SAAS,EAAC,mBAAmB;wBAC9B,oBAAC,qBAAW,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACnE,CACJ,CACJ,CACJ,CACJ,CACT,CAAC;AACN,CAAC;AAED,SAAwB,cAAc;IAClC,OAAO,CACH,oBAAC,gBAAQ,IAAC,QAAQ,EAAE,oBAAC,mBAAmB,OAAG;QACvC,oBAAC,iBAAiB,OAAG,CACd,CACd,CAAC;AACN,CAAC;AAND,iCAMC","sourcesContent":["import * as React from 'react';\nimport Placeholder from '../../../components/generic/Placeholder';\n\nimport { lazy, Suspense } from 'react';\nconst StepRoomComponent = lazy(() => import('./StepRoomComponent'));\n\nfunction StepRoomPlaceholder() {\n return (\n <div className=\"container\">\n <div className=\"row no-gutters\">\n <div className=\"col-sm-12 col-md-8\">\n <div className=\"d-none d-md-block u-marg-top--light u-marg-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"md\" blink={true} />\n </div>\n <br />\n <div className=\"row\">\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n </div>\n </div>\n <div className=\"d-none d-md-block col-xl-3 col-md-4 offset-xl-1 align-self-end\">\n <div className=\"u-marg-bottom\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <div className=\"row\">\n <div className=\"col-6\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n <div className=\"col-6\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n <div className=\"line-break\" />\n <div className=\"row no-gutters\">\n <div className=\"col-md-7 col-lg-8\">\n <div className=\"u-w-100 u-flex u-flex-direction-column u-flex-align-flex-end\">\n <Placeholder type=\"text\" w=\"lg\" h=\"lg\" blink={true} />\n <Placeholder type=\"text\" w=\"xs\" h=\"md\" blink={true} />\n </div>\n <br />\n <div className=\"u-marg-bottom\">\n <div className=\"row\">\n <div className=\"col-lg-12 col-xl-5 u-flex\">\n <Placeholder type=\"block\" blockSize=\"md\" rounded=\"lg\" blink={true} />\n </div>\n <div className=\"col-lg-7 col-xl-7\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n </div>\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <Placeholder type=\"text\" w=\"sm\" h=\"xs\" blink={true} />\n </div>\n </div>\n </div>\n <div className=\"u-marg-bottom\">\n <div className=\"row\">\n <div className=\"col-lg-12 col-xl-5 u-flex\">\n <Placeholder type=\"block\" blockSize=\"md\" rounded=\"lg\" blink={true} />\n </div>\n <div className=\"col-lg-7 col-xl-7\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n </div>\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <Placeholder type=\"text\" w=\"sm\" h=\"xs\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n <div className=\"col-xl-3 col-md-5 col-lg-4 offset-xl-1\">\n <div className=\"u-pad\">\n <div>\n <Placeholder type=\"block\" blockSize=\"lg\" rounded=\"lg\" blink={true} />\n </div>\n <div>\n <Placeholder type=\"text\" w=\"xl\" h=\"lg\" blink={true} />\n </div>\n <div className=\"u-marg-top--heavy\">\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nexport default function StepRoomLoader() {\n return (\n <Suspense fallback={<StepRoomPlaceholder />}>\n <StepRoomComponent />\n </Suspense>\n );\n}\n"]}
1
+ {"version":3,"file":"StepRoomLoader.js","sourceRoot":"/","sources":["src/pages/steps/StepRoom/StepRoomLoader.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,gEAAyD;AAEzD,iCAAuC;AACvC,MAAM,iBAAiB,GAAG,IAAA,YAAI,EAAC,GA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AC,MAAM,EAAC,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACpD,CACJ,CACJ,CACJ;YACN,6BAAK,SAAS,EAAC,wCAAwC;gBACnD,6BAAK,SAAS,EAAC,OAAO;oBAClB;wBACI,oBAAC,qBAAW,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACnE;oBACN;wBACI,oBAAC,qBAAW,IAAC,IAAI,EAAC,MAAM,EAAC,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACpD;oBACN,6BAAK,SAAS,EAAC,mBAAmB;wBAC9B,oBAAC,qBAAW,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAE,IAAI,GAAI,CACnE,CACJ,CACJ,CACJ,CACJ,CACT,CAAC;AACN,CAAC;AAED,SAAwB,cAAc;IAClC,OAAO,CACH,oBAAC,gBAAQ,IAAC,QAAQ,EAAE,oBAAC,mBAAmB,OAAG;QACvC,oBAAC,iBAAiB,OAAG,CACd,CACd,CAAC;AACN,CAAC;AAND,iCAMC","sourcesContent":["import * as React from 'react';\nimport Placeholder from 'components/generic/Placeholder';\n\nimport { lazy, Suspense } from 'react';\nconst StepRoomComponent = lazy(() => import('pages/steps/StepRoom/StepRoomComponent'));\n\nfunction StepRoomPlaceholder() {\n return (\n <div className=\"container\">\n <div className=\"row no-gutters\">\n <div className=\"col-sm-12 col-md-8\">\n <div className=\"d-none d-md-block u-marg-top--light u-marg-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"md\" blink={true} />\n </div>\n <br />\n <div className=\"row\">\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n <div className=\"col-6 col-md-4 col-lg-3\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n </div>\n </div>\n <div className=\"d-none d-md-block col-xl-3 col-md-4 offset-xl-1 align-self-end\">\n <div className=\"u-marg-bottom\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <div className=\"row\">\n <div className=\"col-6\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n <div className=\"col-6\">\n <Placeholder type=\"text\" w=\"lg\" h=\"md\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n <div className=\"line-break\" />\n <div className=\"row no-gutters\">\n <div className=\"col-md-7 col-lg-8\">\n <div className=\"u-w-100 u-flex u-flex-direction-column u-flex-align-flex-end\">\n <Placeholder type=\"text\" w=\"lg\" h=\"lg\" blink={true} />\n <Placeholder type=\"text\" w=\"xs\" h=\"md\" blink={true} />\n </div>\n <br />\n <div className=\"u-marg-bottom\">\n <div className=\"row\">\n <div className=\"col-lg-12 col-xl-5 u-flex\">\n <Placeholder type=\"block\" blockSize=\"md\" rounded=\"lg\" blink={true} />\n </div>\n <div className=\"col-lg-7 col-xl-7\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n </div>\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <Placeholder type=\"text\" w=\"sm\" h=\"xs\" blink={true} />\n </div>\n </div>\n </div>\n <div className=\"u-marg-bottom\">\n <div className=\"row\">\n <div className=\"col-lg-12 col-xl-5 u-flex\">\n <Placeholder type=\"block\" blockSize=\"md\" rounded=\"lg\" blink={true} />\n </div>\n <div className=\"col-lg-7 col-xl-7\">\n <Placeholder type=\"text\" w=\"md\" h=\"md\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"sm\" blink={true} />\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n <Placeholder type=\"text\" w=\"lg\" h=\"xs\" blink={true} />\n </div>\n <div className=\"u-marg-top-bottom--heavy\">\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n <Placeholder type=\"text\" w=\"sm\" h=\"sm\" blink={true} />\n </div>\n <Placeholder type=\"text\" w=\"sm\" h=\"xs\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n <div className=\"col-xl-3 col-md-5 col-lg-4 offset-xl-1\">\n <div className=\"u-pad\">\n <div>\n <Placeholder type=\"block\" blockSize=\"lg\" rounded=\"lg\" blink={true} />\n </div>\n <div>\n <Placeholder type=\"text\" w=\"xl\" h=\"lg\" blink={true} />\n </div>\n <div className=\"u-marg-top--heavy\">\n <Placeholder type=\"block\" blockSize=\"sm\" rounded=\"lg\" blink={true} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nexport default function StepRoomLoader() {\n return (\n <Suspense fallback={<StepRoomPlaceholder />}>\n <StepRoomComponent />\n </Suspense>\n );\n}\n"]}