@mirai/core 0.3.37 → 0.3.38

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 (695) hide show
  1. package/build/Core.Notifications.js +50 -67
  2. package/build/Core.Notifications.js.map +1 -1
  3. package/build/Core.constants.js +11 -14
  4. package/build/Core.constants.js.map +1 -1
  5. package/build/Core.definition.js +3 -3
  6. package/build/Core.definition.js.map +1 -1
  7. package/build/Core.js +46 -73
  8. package/build/Core.js.map +1 -1
  9. package/build/Core.provider.js +41 -91
  10. package/build/Core.provider.js.map +1 -1
  11. package/build/components/Booking/Booking.constants.js +14 -14
  12. package/build/components/Booking/Booking.constants.js.map +1 -1
  13. package/build/components/Booking/Booking.js +100 -134
  14. package/build/components/Booking/Booking.js.map +1 -1
  15. package/build/components/Booking/Booking.l10n.js +37 -29
  16. package/build/components/Booking/Booking.l10n.js.map +1 -1
  17. package/build/components/Booking/Booking.skeleton.js +6 -4
  18. package/build/components/Booking/Booking.skeleton.js.map +1 -1
  19. package/build/components/Booking/components/Field/Field.js +23 -23
  20. package/build/components/Booking/components/Field/Field.js.map +1 -1
  21. package/build/components/Booking/components/Field/Field.l10n.js +1 -1
  22. package/build/components/Booking/components/Field/Field.l10n.js.map +1 -1
  23. package/build/components/Booking/components/Field/index.js +1 -1
  24. package/build/components/Booking/components/Field/index.js.map +1 -1
  25. package/build/components/Booking/components/index.js +1 -1
  26. package/build/components/Booking/components/index.js.map +1 -1
  27. package/build/components/Booking/helpers/getOccupationCaption.js +39 -44
  28. package/build/components/Booking/helpers/getOccupationCaption.js.map +1 -1
  29. package/build/components/Booking/helpers/index.js +2 -2
  30. package/build/components/Booking/helpers/index.js.map +1 -1
  31. package/build/components/Booking/helpers/trackStateChange.js +45 -41
  32. package/build/components/Booking/helpers/trackStateChange.js.map +1 -1
  33. package/build/components/Booking/index.js +2 -2
  34. package/build/components/Booking/index.js.map +1 -1
  35. package/build/components/Booking/partials/Booking.Details.js +56 -57
  36. package/build/components/Booking/partials/Booking.Details.js.map +1 -1
  37. package/build/components/Booking/partials/Booking.FormCancel.js +30 -32
  38. package/build/components/Booking/partials/Booking.FormCancel.js.map +1 -1
  39. package/build/components/Booking/partials/Booking.FormEdit.js +5 -3
  40. package/build/components/Booking/partials/Booking.FormEdit.js.map +1 -1
  41. package/build/components/Booking/partials/Booking.FormResend.js +16 -13
  42. package/build/components/Booking/partials/Booking.FormResend.js.map +1 -1
  43. package/build/components/Booking/partials/Booking.Menu.js +56 -79
  44. package/build/components/Booking/partials/Booking.Menu.js.map +1 -1
  45. package/build/components/Booking/partials/Booking.Modal.js +70 -107
  46. package/build/components/Booking/partials/Booking.Modal.js.map +1 -1
  47. package/build/components/Booking/partials/Booking.ModalAgency.js +17 -17
  48. package/build/components/Booking/partials/Booking.ModalAgency.js.map +1 -1
  49. package/build/components/Booking/partials/Booking.Others.js +31 -45
  50. package/build/components/Booking/partials/Booking.Others.js.map +1 -1
  51. package/build/components/Booking/partials/Booking.PriceBreakdown.js +62 -87
  52. package/build/components/Booking/partials/Booking.PriceBreakdown.js.map +1 -1
  53. package/build/components/Booking/partials/Booking.Summary.js +48 -63
  54. package/build/components/Booking/partials/Booking.Summary.js.map +1 -1
  55. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Details.test.js.snap +12 -12
  56. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +20 -20
  57. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +4 -4
  58. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap +4 -4
  59. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Summary.test.js.snap +4 -4
  60. package/build/components/Booking/partials/index.js +6 -6
  61. package/build/components/Booking/partials/index.js.map +1 -1
  62. package/build/components/BookingQuery/BookingQuery.constants.js +2 -2
  63. package/build/components/BookingQuery/BookingQuery.constants.js.map +1 -1
  64. package/build/components/BookingQuery/BookingQuery.js +53 -106
  65. package/build/components/BookingQuery/BookingQuery.js.map +1 -1
  66. package/build/components/BookingQuery/BookingQuery.l10n.js +1 -1
  67. package/build/components/BookingQuery/BookingQuery.l10n.js.map +1 -1
  68. package/build/components/BookingQuery/BookingQuery.skeleton.js +2 -3
  69. package/build/components/BookingQuery/BookingQuery.skeleton.js.map +1 -1
  70. package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +12 -12
  71. package/build/components/BookingQuery/helpers/getErrorText.js +2 -3
  72. package/build/components/BookingQuery/helpers/getErrorText.js.map +1 -1
  73. package/build/components/BookingQuery/helpers/index.js +1 -1
  74. package/build/components/BookingQuery/helpers/index.js.map +1 -1
  75. package/build/components/BookingQuery/index.js +2 -2
  76. package/build/components/BookingQuery/index.js.map +1 -1
  77. package/build/components/Checkout/Checkout.constants.js +12 -12
  78. package/build/components/Checkout/Checkout.constants.js.map +1 -1
  79. package/build/components/Checkout/Checkout.js +84 -118
  80. package/build/components/Checkout/Checkout.js.map +1 -1
  81. package/build/components/Checkout/Checkout.l10n.js +12 -13
  82. package/build/components/Checkout/Checkout.l10n.js.map +1 -1
  83. package/build/components/Checkout/Checkout.skeleton.js +6 -4
  84. package/build/components/Checkout/Checkout.skeleton.js.map +1 -1
  85. package/build/components/Checkout/components/InputRadio/InputRadio.js +24 -30
  86. package/build/components/Checkout/components/InputRadio/InputRadio.js.map +1 -1
  87. package/build/components/Checkout/components/InputRadio/index.js +1 -1
  88. package/build/components/Checkout/components/InputRadio/index.js.map +1 -1
  89. package/build/components/Checkout/components/index.js +1 -1
  90. package/build/components/Checkout/components/index.js.map +1 -1
  91. package/build/components/Checkout/helpers/generateId.js +6 -5
  92. package/build/components/Checkout/helpers/generateId.js.map +1 -1
  93. package/build/components/Checkout/helpers/getFieldProps.js +24 -31
  94. package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
  95. package/build/components/Checkout/helpers/getVariant.js +11 -17
  96. package/build/components/Checkout/helpers/getVariant.js.map +1 -1
  97. package/build/components/Checkout/helpers/index.js +5 -5
  98. package/build/components/Checkout/helpers/index.js.map +1 -1
  99. package/build/components/Checkout/helpers/testDNI.js +3 -2
  100. package/build/components/Checkout/helpers/testDNI.js.map +1 -1
  101. package/build/components/Checkout/helpers/trackDataSource.js +72 -72
  102. package/build/components/Checkout/helpers/trackDataSource.js.map +1 -1
  103. package/build/components/Checkout/helpers/trackForm.js +13 -11
  104. package/build/components/Checkout/helpers/trackForm.js.map +1 -1
  105. package/build/components/Checkout/index.js +2 -2
  106. package/build/components/Checkout/index.js.map +1 -1
  107. package/build/components/Checkout/partials/Checkout.Confirmation.js +123 -160
  108. package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
  109. package/build/components/Checkout/partials/Checkout.Details.js +72 -82
  110. package/build/components/Checkout/partials/Checkout.Details.js.map +1 -1
  111. package/build/components/Checkout/partials/Checkout.Form.js +102 -146
  112. package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
  113. package/build/components/Checkout/partials/Checkout.Session.js +35 -43
  114. package/build/components/Checkout/partials/Checkout.Session.js.map +1 -1
  115. package/build/components/Checkout/partials/Checkout.Summary.Line.js +21 -20
  116. package/build/components/Checkout/partials/Checkout.Summary.Line.js.map +1 -1
  117. package/build/components/Checkout/partials/Checkout.Summary.js +86 -80
  118. package/build/components/Checkout/partials/Checkout.Summary.js.map +1 -1
  119. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +6 -6
  120. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Details.test.js.snap +6 -6
  121. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +4 -4
  122. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Session.test.js.snap +8 -8
  123. package/build/components/Checkout/partials/index.js +5 -5
  124. package/build/components/Checkout/partials/index.js.map +1 -1
  125. package/build/components/Deals/Deals.Calendar.js +82 -97
  126. package/build/components/Deals/Deals.Calendar.js.map +1 -1
  127. package/build/components/Deals/Deals.constants.js +5 -5
  128. package/build/components/Deals/Deals.constants.js.map +1 -1
  129. package/build/components/Deals/Deals.js +111 -165
  130. package/build/components/Deals/Deals.js.map +1 -1
  131. package/build/components/Deals/Deals.l10n.js +11 -9
  132. package/build/components/Deals/Deals.l10n.js.map +1 -1
  133. package/build/components/Deals/Deals.skeleton.js +5 -3
  134. package/build/components/Deals/Deals.skeleton.js.map +1 -1
  135. package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +3 -3
  136. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +17 -17
  137. package/build/components/Deals/helpers/calcFromDate.js +7 -6
  138. package/build/components/Deals/helpers/calcFromDate.js.map +1 -1
  139. package/build/components/Deals/helpers/calcMinStay.js +6 -7
  140. package/build/components/Deals/helpers/calcMinStay.js.map +1 -1
  141. package/build/components/Deals/helpers/calcNightWithDeals.js +5 -4
  142. package/build/components/Deals/helpers/calcNightWithDeals.js.map +1 -1
  143. package/build/components/Deals/helpers/calcToDate.js +5 -10
  144. package/build/components/Deals/helpers/calcToDate.js.map +1 -1
  145. package/build/components/Deals/helpers/calcTooltips.js +15 -14
  146. package/build/components/Deals/helpers/calcTooltips.js.map +1 -1
  147. package/build/components/Deals/helpers/getCurrency.js +11 -9
  148. package/build/components/Deals/helpers/getCurrency.js.map +1 -1
  149. package/build/components/Deals/helpers/index.js +7 -7
  150. package/build/components/Deals/helpers/index.js.map +1 -1
  151. package/build/components/Deals/helpers/validate.js +15 -24
  152. package/build/components/Deals/helpers/validate.js.map +1 -1
  153. package/build/components/Deals/index.js +2 -2
  154. package/build/components/Deals/index.js.map +1 -1
  155. package/build/components/Environment/Environment.State.js +60 -68
  156. package/build/components/Environment/Environment.State.js.map +1 -1
  157. package/build/components/Environment/Environment.constants.js +1 -1
  158. package/build/components/Environment/Environment.constants.js.map +1 -1
  159. package/build/components/Environment/Environment.js +22 -25
  160. package/build/components/Environment/Environment.js.map +1 -1
  161. package/build/components/Environment/index.js +2 -2
  162. package/build/components/Environment/index.js.map +1 -1
  163. package/build/components/Finder/Finder.compact.js +54 -74
  164. package/build/components/Finder/Finder.compact.js.map +1 -1
  165. package/build/components/Finder/Finder.constants.js +9 -7
  166. package/build/components/Finder/Finder.constants.js.map +1 -1
  167. package/build/components/Finder/Finder.js +121 -152
  168. package/build/components/Finder/Finder.js.map +1 -1
  169. package/build/components/Finder/Finder.l10n.js +1 -1
  170. package/build/components/Finder/Finder.l10n.js.map +1 -1
  171. package/build/components/Finder/Finder.skeleton.js +24 -23
  172. package/build/components/Finder/Finder.skeleton.js.map +1 -1
  173. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +44 -44
  174. package/build/components/Finder/components/Calendar/Calendar.constants.js +6 -6
  175. package/build/components/Finder/components/Calendar/Calendar.constants.js.map +1 -1
  176. package/build/components/Finder/components/Calendar/Calendar.js +77 -125
  177. package/build/components/Finder/components/Calendar/Calendar.js.map +1 -1
  178. package/build/components/Finder/components/Calendar/Calendar.l10n.js +13 -13
  179. package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +1 -1
  180. package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +8 -8
  181. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +37 -74
  182. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +1 -1
  183. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +4 -3
  184. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +1 -1
  185. package/build/components/Finder/components/Calendar/helpers/index.js +2 -2
  186. package/build/components/Finder/components/Calendar/helpers/index.js.map +1 -1
  187. package/build/components/Finder/components/Calendar/index.js +1 -1
  188. package/build/components/Finder/components/Calendar/index.js.map +1 -1
  189. package/build/components/Finder/components/Places/Places.js +38 -46
  190. package/build/components/Finder/components/Places/Places.js.map +1 -1
  191. package/build/components/Finder/components/Places/Places.l10n.js +1 -1
  192. package/build/components/Finder/components/Places/Places.l10n.js.map +1 -1
  193. package/build/components/Finder/components/Places/helpers/calcColumns.js +27 -26
  194. package/build/components/Finder/components/Places/helpers/calcColumns.js.map +1 -1
  195. package/build/components/Finder/components/Places/helpers/index.js +1 -1
  196. package/build/components/Finder/components/Places/helpers/index.js.map +1 -1
  197. package/build/components/Finder/components/Places/index.js +1 -1
  198. package/build/components/Finder/components/Places/index.js.map +1 -1
  199. package/build/components/Finder/components/index.js +2 -2
  200. package/build/components/Finder/components/index.js.map +1 -1
  201. package/build/components/Finder/helpers/getDataSource.js +35 -42
  202. package/build/components/Finder/helpers/getDataSource.js.map +1 -1
  203. package/build/components/Finder/helpers/getForwarderUrl.js +37 -51
  204. package/build/components/Finder/helpers/getForwarderUrl.js.map +1 -1
  205. package/build/components/Finder/helpers/getHotels.js +17 -29
  206. package/build/components/Finder/helpers/getHotels.js.map +1 -1
  207. package/build/components/Finder/helpers/getOccupationDataSource.js +53 -67
  208. package/build/components/Finder/helpers/getOccupationDataSource.js.map +1 -1
  209. package/build/components/Finder/helpers/getPlaceCaption.js +6 -6
  210. package/build/components/Finder/helpers/getPlaceCaption.js.map +1 -1
  211. package/build/components/Finder/helpers/getPlacesOptions.js +24 -30
  212. package/build/components/Finder/helpers/getPlacesOptions.js.map +1 -1
  213. package/build/components/Finder/helpers/index.js +9 -9
  214. package/build/components/Finder/helpers/index.js.map +1 -1
  215. package/build/components/Finder/helpers/parseCalendarProps.js +13 -14
  216. package/build/components/Finder/helpers/parseCalendarProps.js.map +1 -1
  217. package/build/components/Finder/helpers/parseValue.js +12 -10
  218. package/build/components/Finder/helpers/parseValue.js.map +1 -1
  219. package/build/components/Finder/helpers/validate.js +5 -4
  220. package/build/components/Finder/helpers/validate.js.map +1 -1
  221. package/build/components/Finder/index.js +2 -2
  222. package/build/components/Finder/index.js.map +1 -1
  223. package/build/components/Profile/Profile.Account.js +59 -118
  224. package/build/components/Profile/Profile.Account.js.map +1 -1
  225. package/build/components/Profile/Profile.Password.js +55 -105
  226. package/build/components/Profile/Profile.Password.js.map +1 -1
  227. package/build/components/Profile/Profile.Signout.js +31 -68
  228. package/build/components/Profile/Profile.Signout.js.map +1 -1
  229. package/build/components/Profile/Profile.constants.js +3 -3
  230. package/build/components/Profile/Profile.constants.js.map +1 -1
  231. package/build/components/Profile/Profile.js +20 -30
  232. package/build/components/Profile/Profile.js.map +1 -1
  233. package/build/components/Profile/Profile.l10n.js +1 -1
  234. package/build/components/Profile/Profile.l10n.js.map +1 -1
  235. package/build/components/Profile/Profile.skeleton.js +108 -109
  236. package/build/components/Profile/Profile.skeleton.js.map +1 -1
  237. package/build/components/Profile/components/Bookings/Booking.constants.js +5 -5
  238. package/build/components/Profile/components/Bookings/Booking.constants.js.map +1 -1
  239. package/build/components/Profile/components/Bookings/Booking.l10n.js +1 -1
  240. package/build/components/Profile/components/Bookings/Booking.l10n.js.map +1 -1
  241. package/build/components/Profile/components/Bookings/Bookings.Item.js +36 -35
  242. package/build/components/Profile/components/Bookings/Bookings.Item.js.map +1 -1
  243. package/build/components/Profile/components/Bookings/Bookings.Search.js +23 -34
  244. package/build/components/Profile/components/Bookings/Bookings.Search.js.map +1 -1
  245. package/build/components/Profile/components/Bookings/Bookings.js +62 -92
  246. package/build/components/Profile/components/Bookings/Bookings.js.map +1 -1
  247. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +12 -18
  248. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +1 -1
  249. package/build/components/Profile/components/Bookings/helpers/index.js +1 -1
  250. package/build/components/Profile/components/Bookings/helpers/index.js.map +1 -1
  251. package/build/components/Profile/components/Bookings/index.js +1 -1
  252. package/build/components/Profile/components/Bookings/index.js.map +1 -1
  253. package/build/components/Profile/components/index.js +1 -1
  254. package/build/components/Profile/components/index.js.map +1 -1
  255. package/build/components/Profile/index.js +2 -2
  256. package/build/components/Profile/index.js.map +1 -1
  257. package/build/components/Rates/Rates.Filter.js +83 -96
  258. package/build/components/Rates/Rates.Filter.js.map +1 -1
  259. package/build/components/Rates/Rates.Footer.js +70 -87
  260. package/build/components/Rates/Rates.Footer.js.map +1 -1
  261. package/build/components/Rates/Rates.Skeleton.js +66 -66
  262. package/build/components/Rates/Rates.Skeleton.js.map +1 -1
  263. package/build/components/Rates/Rates.js +88 -191
  264. package/build/components/Rates/Rates.js.map +1 -1
  265. package/build/components/Rates/Rates.l10n.js +1 -1
  266. package/build/components/Rates/Rates.l10n.js.map +1 -1
  267. package/build/components/Rates/components/Item/Item.js +96 -131
  268. package/build/components/Rates/components/Item/Item.js.map +1 -1
  269. package/build/components/Rates/components/Item/Item.l10n.js +1 -1
  270. package/build/components/Rates/components/Item/Item.l10n.js.map +1 -1
  271. package/build/components/Rates/components/Item/components/Amenities/Amenities.js +15 -17
  272. package/build/components/Rates/components/Item/components/Amenities/Amenities.js.map +1 -1
  273. package/build/components/Rates/components/Item/components/Amenities/index.js +1 -1
  274. package/build/components/Rates/components/Item/components/Amenities/index.js.map +1 -1
  275. package/build/components/Rates/components/Item/components/Discount/Discount.js +48 -43
  276. package/build/components/Rates/components/Item/components/Discount/Discount.js.map +1 -1
  277. package/build/components/Rates/components/Item/components/Discount/index.js +1 -1
  278. package/build/components/Rates/components/Item/components/Discount/index.js.map +1 -1
  279. package/build/components/Rates/components/Item/components/Features/Features.js +21 -28
  280. package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
  281. package/build/components/Rates/components/Item/components/Features/index.js +1 -1
  282. package/build/components/Rates/components/Item/components/Features/index.js.map +1 -1
  283. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +23 -21
  284. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
  285. package/build/components/Rates/components/Item/components/ModalInfo/index.js +1 -1
  286. package/build/components/Rates/components/Item/components/ModalInfo/index.js.map +1 -1
  287. package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +16 -16
  288. package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +1 -1
  289. package/build/components/Rates/components/Item/components/ModalRateInfo/index.js +1 -1
  290. package/build/components/Rates/components/Item/components/ModalRateInfo/index.js.map +1 -1
  291. package/build/components/Rates/components/Item/components/index.js +5 -5
  292. package/build/components/Rates/components/Item/components/index.js.map +1 -1
  293. package/build/components/Rates/components/Item/index.js +3 -3
  294. package/build/components/Rates/components/Item/index.js.map +1 -1
  295. package/build/components/Rates/components/index.js +1 -1
  296. package/build/components/Rates/components/index.js.map +1 -1
  297. package/build/components/Rates/helpers/getForwarderUrl.js +39 -52
  298. package/build/components/Rates/helpers/getForwarderUrl.js.map +1 -1
  299. package/build/components/Rates/helpers/index.js +1 -1
  300. package/build/components/Rates/helpers/index.js.map +1 -1
  301. package/build/components/Rates/index.js +2 -2
  302. package/build/components/Rates/index.js.map +1 -1
  303. package/build/components/Session/Session.Account.js +51 -60
  304. package/build/components/Session/Session.Account.js.map +1 -1
  305. package/build/components/Session/Session.Login.Modal.js +104 -205
  306. package/build/components/Session/Session.Login.Modal.js.map +1 -1
  307. package/build/components/Session/Session.Login.js +27 -36
  308. package/build/components/Session/Session.Login.js.map +1 -1
  309. package/build/components/Session/Session.constants.js +5 -5
  310. package/build/components/Session/Session.constants.js.map +1 -1
  311. package/build/components/Session/Session.js +18 -31
  312. package/build/components/Session/Session.js.map +1 -1
  313. package/build/components/Session/Session.l10n.js +1 -1
  314. package/build/components/Session/Session.l10n.js.map +1 -1
  315. package/build/components/Session/Session.skeleton.js +7 -8
  316. package/build/components/Session/Session.skeleton.js.map +1 -1
  317. package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +15 -15
  318. package/build/components/Session/helpers/getDomain.js +4 -3
  319. package/build/components/Session/helpers/getDomain.js.map +1 -1
  320. package/build/components/Session/helpers/getSignupUrl.js +6 -4
  321. package/build/components/Session/helpers/getSignupUrl.js.map +1 -1
  322. package/build/components/Session/helpers/index.js +4 -4
  323. package/build/components/Session/helpers/index.js.map +1 -1
  324. package/build/components/Session/helpers/template.js +7 -9
  325. package/build/components/Session/helpers/template.js.map +1 -1
  326. package/build/components/Session/helpers/trackLogin.js +12 -9
  327. package/build/components/Session/helpers/trackLogin.js.map +1 -1
  328. package/build/components/Session/index.js +2 -2
  329. package/build/components/Session/index.js.map +1 -1
  330. package/build/components/Signup/Signup.constants.js +1 -1
  331. package/build/components/Signup/Signup.constants.js.map +1 -1
  332. package/build/components/Signup/Signup.js +54 -122
  333. package/build/components/Signup/Signup.js.map +1 -1
  334. package/build/components/Signup/Signup.l10n.js +1 -1
  335. package/build/components/Signup/Signup.l10n.js.map +1 -1
  336. package/build/components/Signup/Signup.skeleton.js +81 -82
  337. package/build/components/Signup/Signup.skeleton.js.map +1 -1
  338. package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +9 -9
  339. package/build/components/Signup/index.js +2 -2
  340. package/build/components/Signup/index.js.map +1 -1
  341. package/build/components/__shared__/BookingDates/BookingDates.constants.js +1 -1
  342. package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +1 -1
  343. package/build/components/__shared__/BookingDates/BookingDates.js +29 -30
  344. package/build/components/__shared__/BookingDates/BookingDates.js.map +1 -1
  345. package/build/components/__shared__/BookingDates/BookingDates.l10n.js +1 -1
  346. package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +1 -1
  347. package/build/components/__shared__/BookingDates/index.js +1 -1
  348. package/build/components/__shared__/BookingDates/index.js.map +1 -1
  349. package/build/components/__shared__/BookingTable/BookingTable.Row.js +46 -53
  350. package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -1
  351. package/build/components/__shared__/BookingTable/BookingTable.constants.js +3 -3
  352. package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +1 -1
  353. package/build/components/__shared__/BookingTable/BookingTable.js +34 -51
  354. package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -1
  355. package/build/components/__shared__/BookingTable/BookingTable.l10n.js +1 -1
  356. package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -1
  357. package/build/components/__shared__/BookingTable/index.js +1 -1
  358. package/build/components/__shared__/BookingTable/index.js.map +1 -1
  359. package/build/components/__shared__/ButtonMore/ButtonMore.js +16 -15
  360. package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -1
  361. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +1 -1
  362. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +1 -1
  363. package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +3 -3
  364. package/build/components/__shared__/ButtonMore/index.js +1 -1
  365. package/build/components/__shared__/ButtonMore/index.js.map +1 -1
  366. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +5 -5
  367. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -1
  368. package/build/components/__shared__/ButtonPayment/ButtonPayment.js +132 -218
  369. package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -1
  370. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +1 -1
  371. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +1 -1
  372. package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +4 -4
  373. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +30 -45
  374. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +1 -1
  375. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +1 -1
  376. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +1 -1
  377. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +11 -8
  378. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +1 -1
  379. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +1 -1
  380. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +1 -1
  381. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +1 -1
  382. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +1 -1
  383. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +2 -2
  384. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +1 -1
  385. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +74 -91
  386. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +1 -1
  387. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +1 -1
  388. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +1 -1
  389. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +9 -7
  390. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +1 -1
  391. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +1 -1
  392. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +1 -1
  393. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +1 -1
  394. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +1 -1
  395. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +1 -1
  396. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +1 -1
  397. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +63 -83
  398. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +1 -1
  399. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +1 -1
  400. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +1 -1
  401. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +1 -1
  402. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +1 -1
  403. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +7 -8
  404. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +1 -1
  405. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +1 -1
  406. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +1 -1
  407. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +11 -9
  408. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +1 -1
  409. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +49 -66
  410. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +1 -1
  411. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +1 -1
  412. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +1 -1
  413. package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +3 -3
  414. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +7 -5
  415. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +1 -1
  416. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +1 -1
  417. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +1 -1
  418. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +1 -1
  419. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +1 -1
  420. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +13 -15
  421. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +1 -1
  422. package/build/components/__shared__/ButtonPayment/components/InputField/index.js +1 -1
  423. package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +1 -1
  424. package/build/components/__shared__/ButtonPayment/components/index.js +4 -4
  425. package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -1
  426. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +19 -14
  427. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -1
  428. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +5 -16
  429. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +1 -1
  430. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +24 -22
  431. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +1 -1
  432. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +10 -7
  433. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +1 -1
  434. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +23 -21
  435. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +1 -1
  436. package/build/components/__shared__/ButtonPayment/helpers/index.js +3 -3
  437. package/build/components/__shared__/ButtonPayment/helpers/index.js.map +1 -1
  438. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +11 -9
  439. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +1 -1
  440. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +7 -9
  441. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +1 -1
  442. package/build/components/__shared__/ButtonPayment/index.js +1 -1
  443. package/build/components/__shared__/ButtonPayment/index.js.map +1 -1
  444. package/build/components/__shared__/Field/Field.js +32 -36
  445. package/build/components/__shared__/Field/Field.js.map +1 -1
  446. package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +14 -14
  447. package/build/components/__shared__/Field/index.js +1 -1
  448. package/build/components/__shared__/Field/index.js.map +1 -1
  449. package/build/components/__shared__/FieldOccupation/FieldOccupation.js +34 -39
  450. package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -1
  451. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +1 -1
  452. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +1 -1
  453. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +16 -16
  454. package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js +21 -25
  455. package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js.map +1 -1
  456. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +31 -29
  457. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +1 -1
  458. package/build/components/__shared__/FieldOccupation/helpers/index.js +2 -2
  459. package/build/components/__shared__/FieldOccupation/helpers/index.js.map +1 -1
  460. package/build/components/__shared__/FieldOccupation/index.js +1 -1
  461. package/build/components/__shared__/FieldOccupation/index.js.map +1 -1
  462. package/build/components/__shared__/FieldPromocode/FieldPromocode.js +12 -12
  463. package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -1
  464. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +1 -1
  465. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +1 -1
  466. package/build/components/__shared__/FieldPromocode/index.js +1 -1
  467. package/build/components/__shared__/FieldPromocode/index.js.map +1 -1
  468. package/build/components/__shared__/Occupation/Occupation.Group.js +32 -36
  469. package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -1
  470. package/build/components/__shared__/Occupation/Occupation.constants.js +22 -19
  471. package/build/components/__shared__/Occupation/Occupation.constants.js.map +1 -1
  472. package/build/components/__shared__/Occupation/Occupation.js +71 -118
  473. package/build/components/__shared__/Occupation/Occupation.js.map +1 -1
  474. package/build/components/__shared__/Occupation/Occupation.l10n.js +18 -16
  475. package/build/components/__shared__/Occupation/Occupation.l10n.js.map +1 -1
  476. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +7 -7
  477. package/build/components/__shared__/Occupation/helpers/checkRoom.js +19 -19
  478. package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +1 -1
  479. package/build/components/__shared__/Occupation/helpers/consolidateValue.js +47 -51
  480. package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +1 -1
  481. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +5 -16
  482. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +1 -1
  483. package/build/components/__shared__/Occupation/helpers/getGroupHint.js +7 -15
  484. package/build/components/__shared__/Occupation/helpers/getGroupHint.js.map +1 -1
  485. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +8 -9
  486. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +1 -1
  487. package/build/components/__shared__/Occupation/helpers/index.js +6 -6
  488. package/build/components/__shared__/Occupation/helpers/index.js.map +1 -1
  489. package/build/components/__shared__/Occupation/helpers/prepareRoom.js +17 -15
  490. package/build/components/__shared__/Occupation/helpers/prepareRoom.js.map +1 -1
  491. package/build/components/__shared__/Occupation/helpers/toParties.js +18 -19
  492. package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -1
  493. package/build/components/__shared__/Occupation/index.js +2 -2
  494. package/build/components/__shared__/Occupation/index.js.map +1 -1
  495. package/build/components/__shared__/Payment/Payment.constants.js +6 -6
  496. package/build/components/__shared__/Payment/Payment.constants.js.map +1 -1
  497. package/build/components/__shared__/Payment/Payment.js +78 -94
  498. package/build/components/__shared__/Payment/Payment.js.map +1 -1
  499. package/build/components/__shared__/Payment/Payment.l10n.js +1 -1
  500. package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -1
  501. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +10 -10
  502. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +1 -1
  503. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +64 -85
  504. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -1
  505. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +1 -1
  506. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +1 -1
  507. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +8 -5
  508. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +1 -1
  509. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +1 -1
  510. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +1 -1
  511. package/build/components/__shared__/Payment/components/AmazonPay/index.js +1 -1
  512. package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +1 -1
  513. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +29 -46
  514. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -1
  515. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +1 -1
  516. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +1 -1
  517. package/build/components/__shared__/Payment/components/Aplazame/index.js +1 -1
  518. package/build/components/__shared__/Payment/components/Aplazame/index.js.map +1 -1
  519. package/build/components/__shared__/Payment/components/Card/Card.constants.js +1 -1
  520. package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +1 -1
  521. package/build/components/__shared__/Payment/components/Card/Card.js +34 -54
  522. package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
  523. package/build/components/__shared__/Payment/components/Card/Card.l10n.js +1 -1
  524. package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +1 -1
  525. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +23 -31
  526. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
  527. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +3 -4
  528. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +1 -1
  529. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +17 -12
  530. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +1 -1
  531. package/build/components/__shared__/Payment/components/Card/helpers/index.js +5 -5
  532. package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +1 -1
  533. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +2 -3
  534. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +1 -1
  535. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +4 -5
  536. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +1 -1
  537. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +3 -2
  538. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +1 -1
  539. package/build/components/__shared__/Payment/components/Card/index.js +1 -1
  540. package/build/components/__shared__/Payment/components/Card/index.js.map +1 -1
  541. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +6 -6
  542. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
  543. package/build/components/__shared__/Payment/components/PCI/PCI.js +136 -155
  544. package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
  545. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +1 -1
  546. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +1 -1
  547. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +15 -15
  548. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
  549. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +9 -7
  550. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +1 -1
  551. package/build/components/__shared__/Payment/components/PCI/helpers/index.js +2 -2
  552. package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +1 -1
  553. package/build/components/__shared__/Payment/components/PCI/index.js +1 -1
  554. package/build/components/__shared__/Payment/components/PCI/index.js.map +1 -1
  555. package/build/components/__shared__/Payment/components/Tpv/Tpv.js +19 -36
  556. package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +1 -1
  557. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +1 -1
  558. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +1 -1
  559. package/build/components/__shared__/Payment/components/Tpv/index.js +1 -1
  560. package/build/components/__shared__/Payment/components/Tpv/index.js.map +1 -1
  561. package/build/components/__shared__/Payment/components/index.js +5 -5
  562. package/build/components/__shared__/Payment/components/index.js.map +1 -1
  563. package/build/components/__shared__/Payment/helpers/getCaption.js +31 -25
  564. package/build/components/__shared__/Payment/helpers/getCaption.js.map +1 -1
  565. package/build/components/__shared__/Payment/helpers/getComponent.js +23 -17
  566. package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -1
  567. package/build/components/__shared__/Payment/helpers/getImage.js +6 -4
  568. package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -1
  569. package/build/components/__shared__/Payment/helpers/index.js +3 -3
  570. package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
  571. package/build/components/__shared__/Payment/index.js +5 -5
  572. package/build/components/__shared__/Payment/index.js.map +1 -1
  573. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +21 -20
  574. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +1 -1
  575. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +63 -66
  576. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -1
  577. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +1 -1
  578. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -1
  579. package/build/components/__shared__/PriceBreakdown/index.js +1 -1
  580. package/build/components/__shared__/PriceBreakdown/index.js.map +1 -1
  581. package/build/components/__shared__/Skeleton/Skeleton.js +13 -19
  582. package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -1
  583. package/build/components/__shared__/Skeleton/index.js +1 -1
  584. package/build/components/__shared__/Skeleton/index.js.map +1 -1
  585. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +10 -8
  586. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +1 -1
  587. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +1 -1
  588. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +1 -1
  589. package/build/components/__shared__/TextRequiredFields/index.js +1 -1
  590. package/build/components/__shared__/TextRequiredFields/index.js.map +1 -1
  591. package/build/components/__shared__/index.js +12 -12
  592. package/build/components/__shared__/index.js.map +1 -1
  593. package/build/components/helpers/ICON.AMENITIES.js +123 -83
  594. package/build/components/helpers/ICON.AMENITIES.js.map +1 -1
  595. package/build/components/helpers/ICON.js +43 -29
  596. package/build/components/helpers/ICON.js.map +1 -1
  597. package/build/components/helpers/constants.js +15 -13
  598. package/build/components/helpers/constants.js.map +1 -1
  599. package/build/components/helpers/getButtonPaymentKey.js +17 -11
  600. package/build/components/helpers/getButtonPaymentKey.js.map +1 -1
  601. package/build/components/helpers/getButtonPaymentKey.l10n.js +1 -1
  602. package/build/components/helpers/getButtonPaymentKey.l10n.js.map +1 -1
  603. package/build/components/helpers/getCalendarCaption.js +13 -25
  604. package/build/components/helpers/getCalendarCaption.js.map +1 -1
  605. package/build/components/helpers/getCountryCode.js +3 -2
  606. package/build/components/helpers/getCountryCode.js.map +1 -1
  607. package/build/components/helpers/index.js +13 -13
  608. package/build/components/helpers/index.js.map +1 -1
  609. package/build/components/helpers/isJest.js +1 -1
  610. package/build/components/helpers/isJest.js.map +1 -1
  611. package/build/components/helpers/parseHtml.js +37 -38
  612. package/build/components/helpers/parseHtml.js.map +1 -1
  613. package/build/components/helpers/parseToParties.js +5 -4
  614. package/build/components/helpers/parseToParties.js.map +1 -1
  615. package/build/components/helpers/testPassword.js +3 -2
  616. package/build/components/helpers/testPassword.js.map +1 -1
  617. package/build/components/helpers/toQueryString.js +9 -12
  618. package/build/components/helpers/toQueryString.js.map +1 -1
  619. package/build/components/helpers/toUrlParams.js +7 -9
  620. package/build/components/helpers/toUrlParams.js.map +1 -1
  621. package/build/components/helpers/trace.js +8 -8
  622. package/build/components/helpers/trace.js.map +1 -1
  623. package/build/components/helpers/translate.js +11 -10
  624. package/build/components/helpers/translate.js.map +1 -1
  625. package/build/components/index.js +22 -80
  626. package/build/components/index.js.map +1 -1
  627. package/build/helpers/checkSession.js +20 -42
  628. package/build/helpers/checkSession.js.map +1 -1
  629. package/build/helpers/consolidateStore.js +148 -160
  630. package/build/helpers/consolidateStore.js.map +1 -1
  631. package/build/helpers/fetchConfig.js +16 -57
  632. package/build/helpers/fetchConfig.js.map +1 -1
  633. package/build/helpers/fetchCookies.js +12 -13
  634. package/build/helpers/fetchCookies.js.map +1 -1
  635. package/build/helpers/fetchSession.js +33 -30
  636. package/build/helpers/fetchSession.js.map +1 -1
  637. package/build/helpers/fetchUrlParams.js +3 -2
  638. package/build/helpers/fetchUrlParams.js.map +1 -1
  639. package/build/helpers/findComponents.js +20 -25
  640. package/build/helpers/findComponents.js.map +1 -1
  641. package/build/helpers/findDangerousCSSRules.js +21 -48
  642. package/build/helpers/findDangerousCSSRules.js.map +1 -1
  643. package/build/helpers/findInstance.js +20 -34
  644. package/build/helpers/findInstance.js.map +1 -1
  645. package/build/helpers/getAccommodationType.js +4 -4
  646. package/build/helpers/getAccommodationType.js.map +1 -1
  647. package/build/helpers/getGhost.js +6 -13
  648. package/build/helpers/getGhost.js.map +1 -1
  649. package/build/helpers/getLocale.js +12 -22
  650. package/build/helpers/getLocale.js.map +1 -1
  651. package/build/helpers/getTags.js +24 -30
  652. package/build/helpers/getTags.js.map +1 -1
  653. package/build/helpers/index.js +12 -12
  654. package/build/helpers/index.js.map +1 -1
  655. package/build/helpers/loadEnvironment.js +9 -8
  656. package/build/helpers/loadEnvironment.js.map +1 -1
  657. package/build/helpers/loadSentry.js +6 -7
  658. package/build/helpers/loadSentry.js.map +1 -1
  659. package/build/helpers/theme.js +17 -24
  660. package/build/helpers/theme.js.map +1 -1
  661. package/build/helpers/toOccupation.js +36 -48
  662. package/build/helpers/toOccupation.js.map +1 -1
  663. package/build/index.js +71 -120
  664. package/build/index.js.map +1 -1
  665. package/build/services/Club/constants.js +2 -2
  666. package/build/services/Club/constants.js.map +1 -1
  667. package/build/services/Club/get.js +21 -49
  668. package/build/services/Club/get.js.map +1 -1
  669. package/build/services/Club/index.js +1 -1
  670. package/build/services/Club/index.js.map +1 -1
  671. package/build/services/Engine/constants.js +2 -2
  672. package/build/services/Engine/constants.js.map +1 -1
  673. package/build/services/Engine/get.js +22 -54
  674. package/build/services/Engine/get.js.map +1 -1
  675. package/build/services/Engine/index.js +1 -1
  676. package/build/services/Engine/index.js.map +1 -1
  677. package/build/services/Rates/constants.js +8 -8
  678. package/build/services/Rates/constants.js.map +1 -1
  679. package/build/services/Rates/get.js +195 -227
  680. package/build/services/Rates/get.js.map +1 -1
  681. package/build/services/Rates/helpers/getPrice.js +9 -7
  682. package/build/services/Rates/helpers/getPrice.js.map +1 -1
  683. package/build/services/Rates/helpers/index.js +4 -4
  684. package/build/services/Rates/helpers/index.js.map +1 -1
  685. package/build/services/Rates/helpers/normalizePrice.js +4 -3
  686. package/build/services/Rates/helpers/normalizePrice.js.map +1 -1
  687. package/build/services/Rates/helpers/parseAmenities.js +67 -89
  688. package/build/services/Rates/helpers/parseAmenities.js.map +1 -1
  689. package/build/services/Rates/helpers/parseDiscount.js +21 -21
  690. package/build/services/Rates/helpers/parseDiscount.js.map +1 -1
  691. package/build/services/Rates/index.js +1 -1
  692. package/build/services/Rates/index.js.map +1 -1
  693. package/build/services/index.js +3 -3
  694. package/build/services/index.js.map +1 -1
  695. package/package.json +6 -6
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -10,236 +9,205 @@ var _services = require("@mirai/services");
10
9
  var _jsSha = _interopRequireDefault(require("js-sha1"));
11
10
  var _constants = require("./constants");
12
11
  var _helpers = require("./helpers");
13
- var _excluded = ["currency", "locale", "session"];
14
- /* eslint-disable no-async-promise-executor */
15
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
17
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
18
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
20
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
21
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
22
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
24
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
26
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
30
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
31
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
32
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
33
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
34
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
35
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
36
- var DOUBLE = _constants.BED_TYPE.DOUBLE,
37
- SINGLE = _constants.BED_TYPE.SINGLE;
38
- var KEY_HASH = 'm14357';
39
- var get = exports.get = function get() {
40
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
41
- userCurrency = _ref.currency,
42
- locale = _ref.locale,
43
- _ref$session = _ref.session,
44
- session = _ref$session === void 0 ? {} : _ref$session,
45
- others = _objectWithoutProperties(_ref, _excluded);
46
- return new Promise( /*#__PURE__*/function () {
47
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
48
- var id, checkin, nights, params, response, hotelCurrency, unit, roomTypes, currency;
49
- return _regeneratorRuntime().wrap(function _callee$(_context) {
50
- while (1) switch (_context.prev = _context.next) {
51
- case 0:
52
- id = others.idtokenprovider, checkin = others.checkin, nights = others.nights;
53
- params = Object.entries(_objectSpread(_objectSpread({
54
- currency: userCurrency
55
- }, others), {}, {
56
- accessClubToken: session.authorization,
57
- cid: (0, _jsSha.default)("".concat(KEY_HASH, "-").concat(id, "-").concat(checkin, "-").concat(nights)),
58
- lang: locale.split('-')[0]
59
- })).filter(function (_ref3) {
60
- var _ref4 = _slicedToArray(_ref3, 2),
61
- value = _ref4[1];
62
- return value !== undefined;
63
- });
64
- _context.next = 4;
65
- return (0, _dataSources.request)({
66
- hostname: process.env.SERVICE_BOOKING,
67
- endpoint: "/request_availability_v2.json?".concat(new URLSearchParams(params)),
68
- //TODO: back have to change the endpoint for don`t have remove this headers
69
- headers: {
70
- 'Content-Type': undefined,
71
- 'X-Requested-With': undefined
72
- }
73
- }).catch(reject);
74
- case 4:
75
- response = _context.sent;
76
- if (!(!response || response.result === 'EXCEPTION')) {
77
- _context.next = 7;
78
- break;
79
- }
80
- return _context.abrupt("return", reject({
81
- error: 'Upss, something bad happened!'
82
- }));
83
- case 7:
84
- //TODO
85
- hotelCurrency = response.currencyCode, unit = response.measureUnit, roomTypes = response.roomTypes;
86
- currency = userCurrency || hotelCurrency;
87
- _context.next = 11;
88
- return _services.ServiceCurrency.exchange(currency);
89
- case 11:
90
- resolve({
91
- items: Object.values(roomTypes).map(function () {
92
- var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
93
- availability = _ref5.amountAvailable,
94
- name = _ref5.name,
95
- _ref5$newInfoRoom = _ref5.newInfoRoom,
96
- info = _ref5$newInfoRoom === void 0 ? {} : _ref5$newInfoRoom,
97
- _ref5$occupationOptio = _ref5.occupationOptions,
98
- occupationOptions = _ref5$occupationOptio === void 0 ? {} : _ref5$occupationOptio;
99
- var rates = [];
100
- var description = info.description,
101
- _info$roomTypeInfo = info.roomTypeInfo,
102
- _info$roomTypeInfo2 = _info$roomTypeInfo === void 0 ? {} : _info$roomTypeInfo,
103
- _info$roomTypeInfo2$b = _info$roomTypeInfo2.bedDistributions,
104
- bedType = _info$roomTypeInfo2$b === void 0 ? [] : _info$roomTypeInfo2$b,
105
- photos = _info$roomTypeInfo2.photos,
106
- size = _info$roomTypeInfo2.roomSize;
107
- var _Object$values$ = Object.values(occupationOptions)[0],
108
- _Object$values$$occup = _Object$values$.occupationQuantities,
109
- _Object$values$$occup2 = _Object$values$$occup === void 0 ? {} : _Object$values$$occup,
110
- _Object$values$$occup3 = _Object$values$$occup2.numAdults,
111
- adults = _Object$values$$occup3 === void 0 ? 0 : _Object$values$$occup3,
112
- _Object$values$$occup4 = _Object$values$$occup2.totalChildren,
113
- children = _Object$values$$occup4 === void 0 ? 0 : _Object$values$$occup4,
114
- occupationRates = _Object$values$.rates;
115
- Object.values(occupationRates).forEach(function () {
116
- var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
117
- boards = _ref6.boardOptions,
118
- cancelEnd = _ref6.cancellationPolicyDeadline,
119
- cancelName = _ref6.cancellationPolicyName,
120
- cancelText = _ref6.cancellationPolicyText,
121
- cancelTitle = _ref6.cancellationPolicyTooltip,
122
- included = _ref6.includedList,
123
- name = _ref6.name,
124
- paymentConditions = _ref6.paymentText,
125
- restrictions = _ref6.restrictions;
126
- Object.values(boards).forEach(function () {
127
- var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
128
- boardName = _ref7.boardGroupName,
129
- detail = _ref7.detail,
130
- _ref7$discountPricesB = _ref7.discountPricesBefore,
131
- discounts = _ref7$discountPricesB === void 0 ? {} : _ref7$discountPricesB,
132
- id = _ref7.id,
133
- max = _ref7.maxRoomsPerReservation,
134
- min = _ref7.minRoomsPerReservation,
135
- deals = _ref7.offersApplied,
136
- localTaxes = _ref7.totalLocalTaxes,
137
- totalPriceOriginal = _ref7.totalPriceOriginal,
138
- totalPrice = _ref7.totalPriceWithTaxes,
139
- withTaxesAvgPrice = _ref7.withTaxesAvgPrice;
140
- var promoCode = discounts.clientCodeTotal,
141
- club = discounts.clubTotal,
142
- deal = discounts.offerTotal;
143
- var originalPrice = Math.max((deal === null || deal === void 0 ? void 0 : deal.withTaxes) || 0, (club === null || club === void 0 ? void 0 : club.withTaxes) || 0, (promoCode === null || promoCode === void 0 ? void 0 : promoCode.withTaxes) || 0) || totalPrice;
144
- rates.push({
145
- amount: [min, availability < max ? availability : max],
146
- basePrice: (0, _helpers.normalizePrice)(totalPriceOriginal, currency),
147
- boardName: boardName,
148
- cancellation: {
149
- hint: "".concat(cancelName, " ").concat(cancelEnd ? cancelEnd : '').trim(),
150
- title: cancelTitle,
151
- text: cancelText
152
- },
153
- dayPrice: (0, _helpers.getPrice)({
154
- currency: currency,
155
- hotelCurrency: hotelCurrency,
156
- price: withTaxesAvgPrice
157
- }),
158
- days: detail.map(function () {
159
- var _ref8 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
160
- value = _ref8.dayStandardFormat,
161
- deal = _ref8.offerId,
162
- price = _ref8.price;
163
- return {
164
- deal: deal,
165
- price: (0, _helpers.getPrice)({
166
- currency: currency,
167
- hotelCurrency: hotelCurrency,
168
- price: price
169
- }),
170
- value: value
171
- };
172
- }),
173
- deals: deals,
174
- discount: (0, _helpers.parseDiscount)(_objectSpread(_objectSpread({
175
- currency: currency,
176
- hotelCurrency: hotelCurrency
177
- }, discounts), {}, {
178
- originalPrice: originalPrice,
179
- totalPrice: totalPrice
180
- })),
181
- id: id,
182
- included: _toConsumableArray(new Set(Object.values(included).flat())).slice(0, 3),
183
- localTaxes: localTaxes,
184
- originalPrice: (0, _helpers.getPrice)({
185
- currency: currency,
186
- hotelCurrency: hotelCurrency,
187
- price: originalPrice
188
- }),
189
- price: (0, _helpers.getPrice)({
190
- currency: currency,
191
- hotelCurrency: hotelCurrency,
192
- price: totalPrice + localTaxes
193
- }),
194
- name: name,
195
- paymentConditions: paymentConditions,
196
- restrictions: restrictions
197
- });
198
- });
199
- });
13
+ /* eslint-disable no-async-promise-executor */
14
+
15
+ const {
16
+ DOUBLE,
17
+ SINGLE
18
+ } = _constants.BED_TYPE;
19
+ const KEY_HASH = 'm14357';
20
+ const get = function () {
21
+ let {
22
+ currency: userCurrency,
23
+ locale,
24
+ session = {},
25
+ ...others
26
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
27
+ return new Promise(async (resolve, reject) => {
28
+ const {
29
+ idtokenprovider: id,
30
+ checkin,
31
+ nights
32
+ } = others;
33
+ const params = Object.entries({
34
+ currency: userCurrency,
35
+ ...others,
36
+ accessClubToken: session.authorization,
37
+ cid: (0, _jsSha.default)("".concat(KEY_HASH, "-").concat(id, "-").concat(checkin, "-").concat(nights)),
38
+ lang: locale.split('-')[0]
39
+ }).filter(_ref => {
40
+ let [, value] = _ref;
41
+ return value !== undefined;
42
+ });
43
+ const response = await (0, _dataSources.request)({
44
+ hostname: process.env.SERVICE_BOOKING,
45
+ endpoint: "/request_availability_v2.json?".concat(new URLSearchParams(params)),
46
+ //TODO: back have to change the endpoint for don`t have remove this headers
47
+ headers: {
48
+ 'Content-Type': undefined,
49
+ 'X-Requested-With': undefined
50
+ }
51
+ }).catch(reject);
52
+ if (!response || response.result === 'EXCEPTION') return reject({
53
+ error: 'Upss, something bad happened!'
54
+ }); //TODO
55
+
56
+ const {
57
+ currencyCode: hotelCurrency,
58
+ measureUnit: unit,
59
+ roomTypes
60
+ } = response;
61
+ const currency = userCurrency || hotelCurrency;
62
+ await _services.ServiceCurrency.exchange(currency);
63
+ resolve({
64
+ items: Object.values(roomTypes).map(function () {
65
+ let {
66
+ amountAvailable: availability,
67
+ name,
68
+ newInfoRoom: info = {},
69
+ occupationOptions = {}
70
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
71
+ const rates = [];
72
+ const {
73
+ description,
74
+ roomTypeInfo: {
75
+ bedDistributions: bedType = [],
76
+ photos,
77
+ roomSize: size
78
+ } = {}
79
+ } = info;
80
+ const {
81
+ occupationQuantities: {
82
+ numAdults: adults = 0,
83
+ totalChildren: children = 0
84
+ } = {},
85
+ rates: occupationRates
86
+ } = Object.values(occupationOptions)[0];
87
+ Object.values(occupationRates).forEach(function () {
88
+ let {
89
+ boardOptions: boards,
90
+ cancellationPolicyDeadline: cancelEnd,
91
+ cancellationPolicyName: cancelName,
92
+ cancellationPolicyText: cancelText,
93
+ cancellationPolicyTooltip: cancelTitle,
94
+ includedList: included,
95
+ name,
96
+ paymentText: paymentConditions,
97
+ restrictions
98
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
99
+ Object.values(boards).forEach(function () {
100
+ let {
101
+ boardGroupName: boardName,
102
+ detail,
103
+ discountPricesBefore: discounts = {},
104
+ id,
105
+ maxRoomsPerReservation: max,
106
+ minRoomsPerReservation: min,
107
+ offersApplied: deals,
108
+ totalLocalTaxes: localTaxes,
109
+ totalPriceOriginal,
110
+ totalPriceWithTaxes: totalPrice,
111
+ withTaxesAvgPrice
112
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
113
+ const {
114
+ clientCodeTotal: promoCode,
115
+ clubTotal: club,
116
+ offerTotal: deal
117
+ } = discounts;
118
+ const originalPrice = Math.max((deal === null || deal === void 0 ? void 0 : deal.withTaxes) || 0, (club === null || club === void 0 ? void 0 : club.withTaxes) || 0, (promoCode === null || promoCode === void 0 ? void 0 : promoCode.withTaxes) || 0) || totalPrice;
119
+ rates.push({
120
+ amount: [min, availability < max ? availability : max],
121
+ basePrice: (0, _helpers.normalizePrice)(totalPriceOriginal, currency),
122
+ boardName,
123
+ cancellation: {
124
+ hint: "".concat(cancelName, " ").concat(cancelEnd ? cancelEnd : '').trim(),
125
+ title: cancelTitle,
126
+ text: cancelText
127
+ },
128
+ dayPrice: (0, _helpers.getPrice)({
129
+ currency,
130
+ hotelCurrency,
131
+ price: withTaxesAvgPrice
132
+ }),
133
+ days: detail.map(function () {
134
+ let {
135
+ dayStandardFormat: value,
136
+ offerId: deal,
137
+ price
138
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
200
139
  return {
201
- amenities: (0, _helpers.parseAmenities)(info),
202
- availability: availability,
203
- bedDisposition: bedType.map(function (type) {
204
- return _constants.BED_DISPOSITION[type];
205
- }),
206
- bedTypes: bedType.reduce(function (result, next) {
207
- _constants.BED_DISPOSITION[next].forEach(function () {
208
- var _ref9 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
209
- amount = _ref9.amount,
210
- type = _ref9.type;
211
- if ([DOUBLE, SINGLE].includes(type) && amount > 0) result[result.length ? 1 : 0] = type;
212
- });
213
- return result;
214
- }, []),
215
- description: description,
216
- images: photos === null || photos === void 0 ? void 0 : photos.map(function () {
217
- var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
218
- alt = _ref10.photoAltDescription,
219
- large = _ref10.urlLarge,
220
- thumbnail = _ref10.urlMediumRect;
221
- return {
222
- alt: alt,
223
- large: large,
224
- thumbnail: thumbnail
225
- };
140
+ deal,
141
+ price: (0, _helpers.getPrice)({
142
+ currency,
143
+ hotelCurrency,
144
+ price
226
145
  }),
227
- name: name,
228
- maxOccupation: adults + children,
229
- rates: rates,
230
- size: size ? "".concat(size, " ").concat(_constants.UNIT[unit].size) : undefined
146
+ value
231
147
  };
232
- })
148
+ }),
149
+ deals,
150
+ discount: (0, _helpers.parseDiscount)({
151
+ currency,
152
+ hotelCurrency,
153
+ ...discounts,
154
+ originalPrice,
155
+ totalPrice
156
+ }),
157
+ id,
158
+ included: [...new Set(Object.values(included).flat())].slice(0, 3),
159
+ localTaxes,
160
+ originalPrice: (0, _helpers.getPrice)({
161
+ currency,
162
+ hotelCurrency,
163
+ price: originalPrice
164
+ }),
165
+ price: (0, _helpers.getPrice)({
166
+ currency,
167
+ hotelCurrency,
168
+ price: totalPrice + localTaxes
169
+ }),
170
+ name,
171
+ paymentConditions,
172
+ restrictions
173
+ });
174
+ });
175
+ });
176
+ return {
177
+ amenities: (0, _helpers.parseAmenities)(info),
178
+ availability,
179
+ bedDisposition: bedType.map(type => _constants.BED_DISPOSITION[type]),
180
+ bedTypes: bedType.reduce((result, next) => {
181
+ _constants.BED_DISPOSITION[next].forEach(function () {
182
+ let {
183
+ amount,
184
+ type
185
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
186
+ if ([DOUBLE, SINGLE].includes(type) && amount > 0) result[result.length ? 1 : 0] = type;
233
187
  });
234
- case 12:
235
- case "end":
236
- return _context.stop();
237
- }
238
- }, _callee);
239
- }));
240
- return function (_x, _x2) {
241
- return _ref2.apply(this, arguments);
242
- };
243
- }());
188
+ return result;
189
+ }, []),
190
+ description,
191
+ images: photos === null || photos === void 0 ? void 0 : photos.map(function () {
192
+ let {
193
+ photoAltDescription: alt,
194
+ urlLarge: large,
195
+ urlMediumRect: thumbnail
196
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
197
+ return {
198
+ alt,
199
+ large,
200
+ thumbnail
201
+ };
202
+ }),
203
+ name,
204
+ maxOccupation: adults + children,
205
+ rates,
206
+ size: size ? "".concat(size, " ").concat(_constants.UNIT[unit].size) : undefined
207
+ };
208
+ })
209
+ });
210
+ });
244
211
  };
212
+ exports.get = get;
245
213
  //# sourceMappingURL=get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","names":["_dataSources","require","_services","_jsSha","_interopRequireDefault","_constants","_helpers","_excluded","obj","__esModule","default","_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","_catch","delegateYield","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","iter","Array","from","isArray","_arrayLikeToArray","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_nonIterableRest","minLen","toString","test","len","arr2","ownKeys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","apply","_objectSpread","arguments","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","_toPropertyKey","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","asyncGeneratorStep","gen","reject","_next","_throw","info","error","_asyncToGenerator","fn","self","args","err","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","DOUBLE","BED_TYPE","SINGLE","KEY_HASH","get","exports","_ref","userCurrency","currency","locale","_ref$session","session","others","_ref2","_callee","id","checkin","nights","params","response","hotelCurrency","unit","roomTypes","_callee$","_context","idtokenprovider","entries","accessClubToken","authorization","cid","sha1","concat","lang","split","_ref3","_ref4","request","hostname","process","env","SERVICE_BOOKING","endpoint","URLSearchParams","headers","result","currencyCode","measureUnit","ServiceCurrency","exchange","items","map","_ref5","availability","amountAvailable","_ref5$newInfoRoom","newInfoRoom","_ref5$occupationOptio","occupationOptions","rates","description","_info$roomTypeInfo","roomTypeInfo","_info$roomTypeInfo2","_info$roomTypeInfo2$b","bedDistributions","bedType","photos","size","roomSize","_Object$values$","_Object$values$$occup","occupationQuantities","_Object$values$$occup2","_Object$values$$occup3","numAdults","adults","_Object$values$$occup4","totalChildren","children","occupationRates","_ref6","boards","boardOptions","cancelEnd","cancellationPolicyDeadline","cancelName","cancellationPolicyName","cancelText","cancellationPolicyText","cancelTitle","cancellationPolicyTooltip","included","includedList","paymentConditions","paymentText","restrictions","_ref7","boardName","boardGroupName","detail","_ref7$discountPricesB","discountPricesBefore","discounts","max","maxRoomsPerReservation","min","minRoomsPerReservation","deals","offersApplied","localTaxes","totalLocalTaxes","totalPriceOriginal","totalPrice","totalPriceWithTaxes","withTaxesAvgPrice","promoCode","clientCodeTotal","club","clubTotal","deal","offerTotal","originalPrice","Math","withTaxes","amount","basePrice","normalizePrice","cancellation","trim","title","text","dayPrice","getPrice","price","days","_ref8","dayStandardFormat","offerId","discount","parseDiscount","Set","flat","amenities","parseAmenities","bedDisposition","BED_DISPOSITION","bedTypes","reduce","_ref9","includes","images","_ref10","alt","photoAltDescription","large","urlLarge","thumbnail","urlMediumRect","maxOccupation","UNIT","_x","_x2"],"sources":["../../../src/services/Rates/get.js"],"sourcesContent":["/* eslint-disable no-async-promise-executor */\nimport { request } from '@mirai/data-sources';\nimport { ServiceCurrency } from '@mirai/services';\nimport sha1 from 'js-sha1';\n\nimport { BED_DISPOSITION, BED_TYPE, UNIT } from './constants';\nimport { getPrice, normalizePrice, parseAmenities, parseDiscount } from './helpers';\n\nconst { DOUBLE, SINGLE } = BED_TYPE;\n\nconst KEY_HASH = 'm14357';\n\nexport const get = ({ currency: userCurrency, locale, session = {}, ...others } = {}) =>\n new Promise(async (resolve, reject) => {\n const { idtokenprovider: id, checkin, nights } = others;\n const params = Object.entries({\n currency: userCurrency,\n ...others,\n accessClubToken: session.authorization,\n cid: sha1(`${KEY_HASH}-${id}-${checkin}-${nights}`),\n lang: locale.split('-')[0],\n }).filter(([, value]) => value !== undefined);\n\n const response = await request({\n hostname: process.env.SERVICE_BOOKING,\n endpoint: `/request_availability_v2.json?${new URLSearchParams(params)}`,\n //TODO: back have to change the endpoint for don`t have remove this headers\n headers: { 'Content-Type': undefined, 'X-Requested-With': undefined },\n }).catch(reject);\n\n if (!response || response.result === 'EXCEPTION') return reject({ error: 'Upss, something bad happened!' }); //TODO\n\n const { currencyCode: hotelCurrency, measureUnit: unit, roomTypes } = response;\n const currency = userCurrency || hotelCurrency;\n await ServiceCurrency.exchange(currency);\n\n resolve({\n items: Object.values(roomTypes).map(\n ({ amountAvailable: availability, name, newInfoRoom: info = {}, occupationOptions = {} } = {}) => {\n const rates = [];\n const { description, roomTypeInfo: { bedDistributions: bedType = [], photos, roomSize: size } = {} } = info;\n const {\n occupationQuantities: { numAdults: adults = 0, totalChildren: children = 0 } = {},\n rates: occupationRates,\n } = Object.values(occupationOptions)[0];\n\n Object.values(occupationRates).forEach(\n ({\n boardOptions: boards,\n cancellationPolicyDeadline: cancelEnd,\n cancellationPolicyName: cancelName,\n cancellationPolicyText: cancelText,\n cancellationPolicyTooltip: cancelTitle,\n includedList: included,\n name,\n paymentText: paymentConditions,\n restrictions,\n } = {}) => {\n Object.values(boards).forEach(\n ({\n boardGroupName: boardName,\n detail,\n discountPricesBefore: discounts = {},\n id,\n maxRoomsPerReservation: max,\n minRoomsPerReservation: min,\n offersApplied: deals,\n totalLocalTaxes: localTaxes,\n totalPriceOriginal,\n totalPriceWithTaxes: totalPrice,\n withTaxesAvgPrice,\n } = {}) => {\n const { clientCodeTotal: promoCode, clubTotal: club, offerTotal: deal } = discounts;\n const originalPrice =\n Math.max(deal?.withTaxes || 0, club?.withTaxes || 0, promoCode?.withTaxes || 0) || totalPrice;\n\n rates.push({\n amount: [min, availability < max ? availability : max],\n basePrice: normalizePrice(totalPriceOriginal, currency),\n boardName,\n cancellation: {\n hint: `${cancelName} ${cancelEnd ? cancelEnd : ''}`.trim(),\n title: cancelTitle,\n text: cancelText,\n },\n dayPrice: getPrice({ currency, hotelCurrency, price: withTaxesAvgPrice }),\n days: detail.map(({ dayStandardFormat: value, offerId: deal, price } = {}) => ({\n deal,\n price: getPrice({ currency, hotelCurrency, price }),\n value,\n })),\n deals,\n discount: parseDiscount({ currency, hotelCurrency, ...discounts, originalPrice, totalPrice }),\n id,\n included: [...new Set(Object.values(included).flat())].slice(0, 3),\n localTaxes,\n originalPrice: getPrice({ currency, hotelCurrency, price: originalPrice }),\n price: getPrice({ currency, hotelCurrency, price: totalPrice + localTaxes }),\n name,\n paymentConditions,\n restrictions,\n });\n },\n );\n },\n );\n\n return {\n amenities: parseAmenities(info),\n availability,\n bedDisposition: bedType.map((type) => BED_DISPOSITION[type]),\n bedTypes: bedType.reduce((result, next) => {\n BED_DISPOSITION[next].forEach(({ amount, type } = {}) => {\n if ([DOUBLE, SINGLE].includes(type) && amount > 0) result[result.length ? 1 : 0] = type;\n });\n\n return result;\n }, []),\n description,\n images: photos?.map(({ photoAltDescription: alt, urlLarge: large, urlMediumRect: thumbnail } = {}) => ({\n alt,\n large,\n thumbnail,\n })),\n name,\n maxOccupation: adults + children,\n rates,\n size: size ? `${size} ${UNIT[unit].size}` : undefined,\n };\n },\n ),\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
1
+ {"version":3,"file":"get.js","names":["_dataSources","require","_services","_jsSha","_interopRequireDefault","_constants","_helpers","obj","__esModule","default","DOUBLE","SINGLE","BED_TYPE","KEY_HASH","get","currency","userCurrency","locale","session","others","arguments","length","undefined","Promise","resolve","reject","idtokenprovider","id","checkin","nights","params","Object","entries","accessClubToken","authorization","cid","sha1","concat","lang","split","filter","_ref","value","response","request","hostname","process","env","SERVICE_BOOKING","endpoint","URLSearchParams","headers","catch","result","error","currencyCode","hotelCurrency","measureUnit","unit","roomTypes","ServiceCurrency","exchange","items","values","map","amountAvailable","availability","name","newInfoRoom","info","occupationOptions","rates","description","roomTypeInfo","bedDistributions","bedType","photos","roomSize","size","occupationQuantities","numAdults","adults","totalChildren","children","occupationRates","forEach","boardOptions","boards","cancellationPolicyDeadline","cancelEnd","cancellationPolicyName","cancelName","cancellationPolicyText","cancelText","cancellationPolicyTooltip","cancelTitle","includedList","included","paymentText","paymentConditions","restrictions","boardGroupName","boardName","detail","discountPricesBefore","discounts","maxRoomsPerReservation","max","minRoomsPerReservation","min","offersApplied","deals","totalLocalTaxes","localTaxes","totalPriceOriginal","totalPriceWithTaxes","totalPrice","withTaxesAvgPrice","clientCodeTotal","promoCode","clubTotal","club","offerTotal","deal","originalPrice","Math","withTaxes","push","amount","basePrice","normalizePrice","cancellation","hint","trim","title","text","dayPrice","getPrice","price","days","dayStandardFormat","offerId","discount","parseDiscount","Set","flat","slice","amenities","parseAmenities","bedDisposition","type","BED_DISPOSITION","bedTypes","reduce","next","includes","images","photoAltDescription","alt","urlLarge","large","urlMediumRect","thumbnail","maxOccupation","UNIT","exports"],"sources":["../../../src/services/Rates/get.js"],"sourcesContent":["/* eslint-disable no-async-promise-executor */\nimport { request } from '@mirai/data-sources';\nimport { ServiceCurrency } from '@mirai/services';\nimport sha1 from 'js-sha1';\n\nimport { BED_DISPOSITION, BED_TYPE, UNIT } from './constants';\nimport { getPrice, normalizePrice, parseAmenities, parseDiscount } from './helpers';\n\nconst { DOUBLE, SINGLE } = BED_TYPE;\n\nconst KEY_HASH = 'm14357';\n\nexport const get = ({ currency: userCurrency, locale, session = {}, ...others } = {}) =>\n new Promise(async (resolve, reject) => {\n const { idtokenprovider: id, checkin, nights } = others;\n const params = Object.entries({\n currency: userCurrency,\n ...others,\n accessClubToken: session.authorization,\n cid: sha1(`${KEY_HASH}-${id}-${checkin}-${nights}`),\n lang: locale.split('-')[0],\n }).filter(([, value]) => value !== undefined);\n\n const response = await request({\n hostname: process.env.SERVICE_BOOKING,\n endpoint: `/request_availability_v2.json?${new URLSearchParams(params)}`,\n //TODO: back have to change the endpoint for don`t have remove this headers\n headers: { 'Content-Type': undefined, 'X-Requested-With': undefined },\n }).catch(reject);\n\n if (!response || response.result === 'EXCEPTION') return reject({ error: 'Upss, something bad happened!' }); //TODO\n\n const { currencyCode: hotelCurrency, measureUnit: unit, roomTypes } = response;\n const currency = userCurrency || hotelCurrency;\n await ServiceCurrency.exchange(currency);\n\n resolve({\n items: Object.values(roomTypes).map(\n ({ amountAvailable: availability, name, newInfoRoom: info = {}, occupationOptions = {} } = {}) => {\n const rates = [];\n const { description, roomTypeInfo: { bedDistributions: bedType = [], photos, roomSize: size } = {} } = info;\n const {\n occupationQuantities: { numAdults: adults = 0, totalChildren: children = 0 } = {},\n rates: occupationRates,\n } = Object.values(occupationOptions)[0];\n\n Object.values(occupationRates).forEach(\n ({\n boardOptions: boards,\n cancellationPolicyDeadline: cancelEnd,\n cancellationPolicyName: cancelName,\n cancellationPolicyText: cancelText,\n cancellationPolicyTooltip: cancelTitle,\n includedList: included,\n name,\n paymentText: paymentConditions,\n restrictions,\n } = {}) => {\n Object.values(boards).forEach(\n ({\n boardGroupName: boardName,\n detail,\n discountPricesBefore: discounts = {},\n id,\n maxRoomsPerReservation: max,\n minRoomsPerReservation: min,\n offersApplied: deals,\n totalLocalTaxes: localTaxes,\n totalPriceOriginal,\n totalPriceWithTaxes: totalPrice,\n withTaxesAvgPrice,\n } = {}) => {\n const { clientCodeTotal: promoCode, clubTotal: club, offerTotal: deal } = discounts;\n const originalPrice =\n Math.max(deal?.withTaxes || 0, club?.withTaxes || 0, promoCode?.withTaxes || 0) || totalPrice;\n\n rates.push({\n amount: [min, availability < max ? availability : max],\n basePrice: normalizePrice(totalPriceOriginal, currency),\n boardName,\n cancellation: {\n hint: `${cancelName} ${cancelEnd ? cancelEnd : ''}`.trim(),\n title: cancelTitle,\n text: cancelText,\n },\n dayPrice: getPrice({ currency, hotelCurrency, price: withTaxesAvgPrice }),\n days: detail.map(({ dayStandardFormat: value, offerId: deal, price } = {}) => ({\n deal,\n price: getPrice({ currency, hotelCurrency, price }),\n value,\n })),\n deals,\n discount: parseDiscount({ currency, hotelCurrency, ...discounts, originalPrice, totalPrice }),\n id,\n included: [...new Set(Object.values(included).flat())].slice(0, 3),\n localTaxes,\n originalPrice: getPrice({ currency, hotelCurrency, price: originalPrice }),\n price: getPrice({ currency, hotelCurrency, price: totalPrice + localTaxes }),\n name,\n paymentConditions,\n restrictions,\n });\n },\n );\n },\n );\n\n return {\n amenities: parseAmenities(info),\n availability,\n bedDisposition: bedType.map((type) => BED_DISPOSITION[type]),\n bedTypes: bedType.reduce((result, next) => {\n BED_DISPOSITION[next].forEach(({ amount, type } = {}) => {\n if ([DOUBLE, SINGLE].includes(type) && amount > 0) result[result.length ? 1 : 0] = type;\n });\n\n return result;\n }, []),\n description,\n images: photos?.map(({ photoAltDescription: alt, urlLarge: large, urlMediumRect: thumbnail } = {}) => ({\n alt,\n large,\n thumbnail,\n })),\n name,\n maxOccupation: adults + children,\n rates,\n size: size ? `${size} ${UNIT[unit].size}` : undefined,\n };\n },\n ),\n });\n });\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAAoF,SAAAG,u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AAG,CAAC;YAAA,IAAC;cAAE6F,mBAAmB,EAAEC,GAAG;cAAEC,QAAQ,EAAEC,KAAK;cAAEC,aAAa,EAAEC;YAAU,CAAC,GAAA9I,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;YAAA,OAAM;cACrG0I,GAAG;cACHE,KAAK;cACLE;YACF,CAAC;UAAA,CAAC,CAAC;UACH/F,IAAI;UACJgG,aAAa,EAAElF,MAAM,GAAGE,QAAQ;UAChCZ,KAAK;UACLO,IAAI,EAAEA,IAAI,MAAAzC,MAAA,CAAMyC,IAAI,OAAAzC,MAAA,CAAI+H,eAAI,CAAC1G,IAAI,CAAC,CAACoB,IAAI,IAAKxD;QAC9C,CAAC;MACH,CACF;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;AAAA;AAAC+I,OAAA,CAAAvJ,GAAA,GAAAA,GAAA"}
@@ -6,15 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getPrice = void 0;
7
7
  var _services = require("@mirai/services");
8
8
  var _normalizePrice = require("./normalizePrice");
9
- var getPrice = exports.getPrice = function getPrice(_ref) {
9
+ const getPrice = _ref => {
10
10
  var _ref2;
11
- var currency = _ref.currency,
12
- hotelCurrency = _ref.hotelCurrency,
13
- _ref$normalize = _ref.normalize,
14
- normalize = _ref$normalize === void 0 ? true : _ref$normalize,
15
- propPrice = _ref.price;
11
+ let {
12
+ currency,
13
+ hotelCurrency,
14
+ normalize = true,
15
+ price: propPrice
16
+ } = _ref;
16
17
  if (!propPrice) return;
17
- var price = normalize ? (0, _normalizePrice.normalizePrice)(propPrice, hotelCurrency) : propPrice;
18
+ const price = normalize ? (0, _normalizePrice.normalizePrice)(propPrice, hotelCurrency) : propPrice;
18
19
  return +((_ref2 = currency !== hotelCurrency ? _services.ServiceCurrency.convert(currency, hotelCurrency, price, true) : price) === null || _ref2 === void 0 ? void 0 : _ref2.toFixed(2));
19
20
  };
21
+ exports.getPrice = getPrice;
20
22
  //# sourceMappingURL=getPrice.js.map