@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 +1 @@
1
- {"version":3,"file":"getPrice.js","names":["_services","require","_normalizePrice","getPrice","exports","_ref","_ref2","currency","hotelCurrency","_ref$normalize","normalize","propPrice","price","normalizePrice","ServiceCurrency","convert","toFixed"],"sources":["../../../../src/services/Rates/helpers/getPrice.js"],"sourcesContent":["import { ServiceCurrency } from '@mirai/services';\n\nimport { normalizePrice } from './normalizePrice';\n\nexport const getPrice = ({ currency, hotelCurrency, normalize = true, price: propPrice }) => {\n if (!propPrice) return;\n\n const price = normalize ? normalizePrice(propPrice, hotelCurrency) : propPrice;\n\n return +(currency !== hotelCurrency ? ServiceCurrency.convert(currency, hotelCurrency, price, true) : price)?.toFixed(\n 2,\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AAEO,IAAME,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,SAAXA,QAAQA,CAAAE,IAAA,EAAwE;EAAA,IAAAC,KAAA;EAAA,IAAlEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IAAAC,cAAA,GAAAJ,IAAA,CAAEK,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,IAAI,GAAAA,cAAA;IAASE,SAAS,GAAAN,IAAA,CAAhBO,KAAK;EACzE,IAAI,CAACD,SAAS,EAAE;EAEhB,IAAMC,KAAK,GAAGF,SAAS,GAAG,IAAAG,8BAAc,EAACF,SAAS,EAAEH,aAAa,CAAC,GAAGG,SAAS;EAE9E,OAAO,GAAAL,KAAA,GAAEC,QAAQ,KAAKC,aAAa,GAAGM,yBAAe,CAACC,OAAO,CAACR,QAAQ,EAAEC,aAAa,EAAEI,KAAK,EAAE,IAAI,CAAC,GAAGA,KAAK,cAAAN,KAAA,uBAAnGA,KAAA,CAAsGU,OAAO,CACnH,CACF,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"getPrice.js","names":["_services","require","_normalizePrice","getPrice","_ref","_ref2","currency","hotelCurrency","normalize","price","propPrice","normalizePrice","ServiceCurrency","convert","toFixed","exports"],"sources":["../../../../src/services/Rates/helpers/getPrice.js"],"sourcesContent":["import { ServiceCurrency } from '@mirai/services';\n\nimport { normalizePrice } from './normalizePrice';\n\nexport const getPrice = ({ currency, hotelCurrency, normalize = true, price: propPrice }) => {\n if (!propPrice) return;\n\n const price = normalize ? normalizePrice(propPrice, hotelCurrency) : propPrice;\n\n return +(currency !== hotelCurrency ? ServiceCurrency.convert(currency, hotelCurrency, price, true) : price)?.toFixed(\n 2,\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AAEO,MAAME,QAAQ,GAAGC,IAAA,IAAqE;EAAA,IAAAC,KAAA;EAAA,IAApE;IAAEC,QAAQ;IAAEC,aAAa;IAAEC,SAAS,GAAG,IAAI;IAAEC,KAAK,EAAEC;EAAU,CAAC,GAAAN,IAAA;EACtF,IAAI,CAACM,SAAS,EAAE;EAEhB,MAAMD,KAAK,GAAGD,SAAS,GAAG,IAAAG,8BAAc,EAACD,SAAS,EAAEH,aAAa,CAAC,GAAGG,SAAS;EAE9E,OAAO,GAAAL,KAAA,GAAEC,QAAQ,KAAKC,aAAa,GAAGK,yBAAe,CAACC,OAAO,CAACP,QAAQ,EAAEC,aAAa,EAAEE,KAAK,EAAE,IAAI,CAAC,GAAGA,KAAK,cAAAJ,KAAA,uBAAnGA,KAAA,CAAsGS,OAAO,CACnH,CACF,CAAC;AACH,CAAC;AAACC,OAAA,CAAAZ,QAAA,GAAAA,QAAA"}
@@ -9,7 +9,7 @@ Object.keys(_getPrice).forEach(function (key) {
9
9
  if (key in exports && exports[key] === _getPrice[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
- get: function get() {
12
+ get: function () {
13
13
  return _getPrice[key];
14
14
  }
15
15
  });
@@ -20,7 +20,7 @@ Object.keys(_normalizePrice).forEach(function (key) {
20
20
  if (key in exports && exports[key] === _normalizePrice[key]) return;
21
21
  Object.defineProperty(exports, key, {
22
22
  enumerable: true,
23
- get: function get() {
23
+ get: function () {
24
24
  return _normalizePrice[key];
25
25
  }
26
26
  });
@@ -31,7 +31,7 @@ Object.keys(_parseAmenities).forEach(function (key) {
31
31
  if (key in exports && exports[key] === _parseAmenities[key]) return;
32
32
  Object.defineProperty(exports, key, {
33
33
  enumerable: true,
34
- get: function get() {
34
+ get: function () {
35
35
  return _parseAmenities[key];
36
36
  }
37
37
  });
@@ -42,7 +42,7 @@ Object.keys(_parseDiscount).forEach(function (key) {
42
42
  if (key in exports && exports[key] === _parseDiscount[key]) return;
43
43
  Object.defineProperty(exports, key, {
44
44
  enumerable: true,
45
- get: function get() {
45
+ get: function () {
46
46
  return _parseDiscount[key];
47
47
  }
48
48
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_getPrice","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_normalizePrice","_parseAmenities","_parseDiscount"],"sources":["../../../../src/services/Rates/helpers/index.js"],"sourcesContent":["export * from './getPrice';\nexport * from './normalizePrice';\nexport * from './parseAmenities';\nexport * from './parseDiscount';\n"],"mappings":";;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,SAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,eAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,eAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,cAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,cAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,cAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAG,cAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_getPrice","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_normalizePrice","_parseAmenities","_parseDiscount"],"sources":["../../../../src/services/Rates/helpers/index.js"],"sourcesContent":["export * from './getPrice';\nexport * from './normalizePrice';\nexport * from './parseAmenities';\nexport * from './parseDiscount';\n"],"mappings":";;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,SAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,eAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,eAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,cAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,cAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,cAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,cAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
@@ -5,10 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.normalizePrice = void 0;
7
7
  var _constants = require("../constants");
8
- var normalizePrice = exports.normalizePrice = function normalizePrice(price) {
9
- var currency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'EUR';
8
+ const normalizePrice = function (price) {
9
+ let currency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'EUR';
10
10
  if (!price || typeof price !== 'number') return undefined;
11
- var decimals = _constants.CURRENCIES_WITHOUT_DECIMALS.includes(currency) ? 0 : 2;
11
+ const decimals = _constants.CURRENCIES_WITHOUT_DECIMALS.includes(currency) ? 0 : 2;
12
12
  return +Number.parseFloat(price / Math.pow(10, decimals)).toFixed(decimals);
13
13
  };
14
+ exports.normalizePrice = normalizePrice;
14
15
  //# sourceMappingURL=normalizePrice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalizePrice.js","names":["_constants","require","normalizePrice","exports","price","currency","arguments","length","undefined","decimals","CURRENCIES_WITHOUT_DECIMALS","includes","Number","parseFloat","Math","pow","toFixed"],"sources":["../../../../src/services/Rates/helpers/normalizePrice.js"],"sourcesContent":["import { CURRENCIES_WITHOUT_DECIMALS } from '../constants';\n\nexport const normalizePrice = (price, currency = 'EUR') => {\n if (!price || typeof price !== 'number') return undefined;\n\n const decimals = CURRENCIES_WITHOUT_DECIMALS.includes(currency) ? 0 : 2;\n\n return +Number.parseFloat(price / Math.pow(10, decimals)).toFixed(decimals);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,IAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAIE,KAAK,EAAuB;EAAA,IAArBC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EACpD,IAAI,CAACF,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAOI,SAAS;EAEzD,IAAMC,QAAQ,GAAGC,sCAA2B,CAACC,QAAQ,CAACN,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC;EAEvE,OAAO,CAACO,MAAM,CAACC,UAAU,CAACT,KAAK,GAAGU,IAAI,CAACC,GAAG,CAAC,EAAE,EAAEN,QAAQ,CAAC,CAAC,CAACO,OAAO,CAACP,QAAQ,CAAC;AAC7E,CAAC"}
1
+ {"version":3,"file":"normalizePrice.js","names":["_constants","require","normalizePrice","price","currency","arguments","length","undefined","decimals","CURRENCIES_WITHOUT_DECIMALS","includes","Number","parseFloat","Math","pow","toFixed","exports"],"sources":["../../../../src/services/Rates/helpers/normalizePrice.js"],"sourcesContent":["import { CURRENCIES_WITHOUT_DECIMALS } from '../constants';\n\nexport const normalizePrice = (price, currency = 'EUR') => {\n if (!price || typeof price !== 'number') return undefined;\n\n const decimals = CURRENCIES_WITHOUT_DECIMALS.includes(currency) ? 0 : 2;\n\n return +Number.parseFloat(price / Math.pow(10, decimals)).toFixed(decimals);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,MAAMC,cAAc,GAAG,SAAAA,CAACC,KAAK,EAAuB;EAAA,IAArBC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EACpD,IAAI,CAACF,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAOI,SAAS;EAEzD,MAAMC,QAAQ,GAAGC,sCAA2B,CAACC,QAAQ,CAACN,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC;EAEvE,OAAO,CAACO,MAAM,CAACC,UAAU,CAACT,KAAK,GAAGU,IAAI,CAACC,GAAG,CAAC,EAAE,EAAEN,QAAQ,CAAC,CAAC,CAACO,OAAO,CAACP,QAAQ,CAAC;AAC7E,CAAC;AAACQ,OAAA,CAAAd,cAAA,GAAAA,cAAA"}
@@ -1,109 +1,87 @@
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
  });
7
6
  exports.parseAmenities = void 0;
8
- var _excluded = ["text"];
9
- 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; }
10
- 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; }
11
- 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; }
12
- 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; }
13
- 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; }
14
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
- 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); }
16
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
17
- 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."); }
18
- 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); }
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 _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; }
22
- var parseAmenities = exports.parseAmenities = function parseAmenities() {
23
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
24
- _ref$bathroomServices = _ref.bathroomServicesIdsAndTranslation,
25
- bathroomAmenities = _ref$bathroomServices === void 0 ? {} : _ref$bathroomServices,
26
- _ref$installationServ = _ref.installationServicesIdsAndTranslation,
27
- generalAmenities = _ref$installationServ === void 0 ? {} : _ref$installationServ,
28
- _ref$roomTypeInfo = _ref.roomTypeInfo,
29
- _ref$roomTypeInfo2 = _ref$roomTypeInfo === void 0 ? {} : _ref$roomTypeInfo,
30
- _ref$roomTypeInfo2$ba = _ref$roomTypeInfo2.bathroomServices,
31
- bathroomAmenitiesOrdered = _ref$roomTypeInfo2$ba === void 0 ? [] : _ref$roomTypeInfo2$ba,
32
- _ref$roomTypeInfo2$fe = _ref$roomTypeInfo2.featuredInstallations,
33
- _ref$roomTypeInfo2$fe2 = _ref$roomTypeInfo2$fe === void 0 ? {} : _ref$roomTypeInfo2$fe,
34
- _ref$roomTypeInfo2$fe3 = _ref$roomTypeInfo2$fe2.installationsCustomized,
35
- customizedAmenities = _ref$roomTypeInfo2$fe3 === void 0 ? [] : _ref$roomTypeInfo2$fe3,
36
- _ref$roomTypeInfo2$fe4 = _ref$roomTypeInfo2$fe2.installationsStandard,
37
- featuredAmenities = _ref$roomTypeInfo2$fe4 === void 0 ? {} : _ref$roomTypeInfo2$fe4,
38
- _ref$roomTypeInfo2$fe5 = _ref$roomTypeInfo2$fe2.order,
39
- featuredAmenitiesOrdered = _ref$roomTypeInfo2$fe5 === void 0 ? [] : _ref$roomTypeInfo2$fe5,
40
- _ref$roomTypeInfo2$in = _ref$roomTypeInfo2.installationServices,
41
- generalAmenitiesOrdered = _ref$roomTypeInfo2$in === void 0 ? [] : _ref$roomTypeInfo2$in;
42
- var amenities = [];
43
- amenities.push.apply(amenities, _toConsumableArray(featuredAmenitiesOrdered.map(function () {
7
+ const parseAmenities = function () {
8
+ let {
9
+ bathroomServicesIdsAndTranslation: bathroomAmenities = {},
10
+ installationServicesIdsAndTranslation: generalAmenities = {},
11
+ roomTypeInfo: {
12
+ bathroomServices: bathroomAmenitiesOrdered = [],
13
+ featuredInstallations: {
14
+ installationsCustomized: customizedAmenities = [],
15
+ installationsStandard: featuredAmenities = {},
16
+ order: featuredAmenitiesOrdered = []
17
+ } = {},
18
+ installationServices: generalAmenitiesOrdered = []
19
+ } = {}
20
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
21
+ const amenities = [];
22
+ amenities.push(...featuredAmenitiesOrdered.map(function () {
44
23
  var _customizedAmenities$;
45
- var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
24
+ let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
46
25
  return {
47
26
  highlight: true,
48
27
  id: parseInt(id.replace(/\w_/g, '')),
49
28
  text: featuredAmenities[id] || ((_customizedAmenities$ = customizedAmenities[id]) === null || _customizedAmenities$ === void 0 ? void 0 : _customizedAmenities$.name)
50
29
  };
51
- })));
52
- amenities.push.apply(amenities, _toConsumableArray(generalAmenitiesOrdered.filter(function (id) {
53
- return !amenities.some(function () {
54
- var _generalAmenities$id, _generalAmenities$id$;
55
- var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
56
- amenity = _ref2.id,
57
- _ref2$text = _ref2.text,
58
- text = _ref2$text === void 0 ? '' : _ref2$text;
59
- return amenity == id || ((_generalAmenities$id = generalAmenities[id]) === null || _generalAmenities$id === void 0 ? void 0 : (_generalAmenities$id$ = _generalAmenities$id.name) === null || _generalAmenities$id$ === void 0 ? void 0 : _generalAmenities$id$.trim()) === (text === null || text === void 0 ? void 0 : text.trim());
60
- });
61
- }).map(function (id) {
62
- return _objectSpread({
63
- id: id
64
- }, generalAmenities[id]);
65
- }).map(function () {
66
- var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
67
- id = _ref3.id,
68
- text = _ref3.name,
69
- exclusive = _ref3.onlyForThisRoomType;
30
+ }));
31
+ amenities.push(...generalAmenitiesOrdered.filter(id => !amenities.some(function () {
32
+ var _generalAmenities$id, _generalAmenities$id$;
33
+ let {
34
+ id: amenity,
35
+ text = ''
36
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
37
+ return amenity == id || ((_generalAmenities$id = generalAmenities[id]) === null || _generalAmenities$id === void 0 ? void 0 : (_generalAmenities$id$ = _generalAmenities$id.name) === null || _generalAmenities$id$ === void 0 ? void 0 : _generalAmenities$id$.trim()) === (text === null || text === void 0 ? void 0 : text.trim());
38
+ })).map(id => ({
39
+ id,
40
+ ...generalAmenities[id]
41
+ })).map(function () {
42
+ let {
43
+ id,
44
+ name: text,
45
+ onlyForThisRoomType: exclusive
46
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
70
47
  return {
71
- exclusive: exclusive,
72
- id: id,
73
- text: text
48
+ exclusive,
49
+ id,
50
+ text
74
51
  };
75
- })));
76
- amenities.push.apply(amenities, _toConsumableArray(bathroomAmenitiesOrdered.filter(function (id) {
77
- return !amenities.some(function () {
78
- var _bathroomAmenities$id, _bathroomAmenities$id2;
79
- var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
80
- amenity = _ref4.id,
81
- _ref4$text = _ref4.text,
82
- text = _ref4$text === void 0 ? '' : _ref4$text;
83
- return amenity == id || ((_bathroomAmenities$id = bathroomAmenities[id]) === null || _bathroomAmenities$id === void 0 ? void 0 : (_bathroomAmenities$id2 = _bathroomAmenities$id.name) === null || _bathroomAmenities$id2 === void 0 ? void 0 : _bathroomAmenities$id2.trim()) === text.trim();
84
- });
85
- }).map(function (id) {
86
- return _objectSpread({
87
- id: id
88
- }, bathroomAmenities[id]);
89
- }).map(function () {
90
- var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
91
- id = _ref5.id,
92
- text = _ref5.name,
93
- exclusive = _ref5.onlyForThisRoomType;
52
+ }));
53
+ amenities.push(...bathroomAmenitiesOrdered.filter(id => !amenities.some(function () {
54
+ var _bathroomAmenities$id, _bathroomAmenities$id2;
55
+ let {
56
+ id: amenity,
57
+ text = ''
58
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
59
+ return amenity == id || ((_bathroomAmenities$id = bathroomAmenities[id]) === null || _bathroomAmenities$id === void 0 ? void 0 : (_bathroomAmenities$id2 = _bathroomAmenities$id.name) === null || _bathroomAmenities$id2 === void 0 ? void 0 : _bathroomAmenities$id2.trim()) === text.trim();
60
+ })).map(id => ({
61
+ id,
62
+ ...bathroomAmenities[id]
63
+ })).map(function () {
64
+ let {
65
+ id,
66
+ name: text,
67
+ onlyForThisRoomType: exclusive
68
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
94
69
  return {
95
- exclusive: exclusive,
96
- id: id,
97
- text: text
70
+ exclusive,
71
+ id,
72
+ text
98
73
  };
99
- })));
100
- return amenities.map(function (_ref6) {
101
- var _ref6$text = _ref6.text,
102
- text = _ref6$text === void 0 ? '' : _ref6$text,
103
- others = _objectWithoutProperties(_ref6, _excluded);
104
- return _objectSpread(_objectSpread({}, others), {}, {
74
+ }));
75
+ return amenities.map(_ref => {
76
+ let {
77
+ text = '',
78
+ ...others
79
+ } = _ref;
80
+ return {
81
+ ...others,
105
82
  text: text.replace(/\r?\n|\r/g, '').trim()
106
- });
83
+ };
107
84
  });
108
85
  };
86
+ exports.parseAmenities = parseAmenities;
109
87
  //# sourceMappingURL=parseAmenities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseAmenities.js","names":["parseAmenities","exports","_ref","arguments","length","undefined","_ref$bathroomServices","bathroomServicesIdsAndTranslation","bathroomAmenities","_ref$installationServ","installationServicesIdsAndTranslation","generalAmenities","_ref$roomTypeInfo","roomTypeInfo","_ref$roomTypeInfo2","_ref$roomTypeInfo2$ba","bathroomServices","bathroomAmenitiesOrdered","_ref$roomTypeInfo2$fe","featuredInstallations","_ref$roomTypeInfo2$fe2","_ref$roomTypeInfo2$fe3","installationsCustomized","customizedAmenities","_ref$roomTypeInfo2$fe4","installationsStandard","featuredAmenities","_ref$roomTypeInfo2$fe5","order","featuredAmenitiesOrdered","_ref$roomTypeInfo2$in","installationServices","generalAmenitiesOrdered","amenities","push","apply","_toConsumableArray","map","_customizedAmenities$","id","highlight","parseInt","replace","text","name","filter","some","_generalAmenities$id","_generalAmenities$id$","_ref2","amenity","_ref2$text","trim","_objectSpread","_ref3","exclusive","onlyForThisRoomType","_bathroomAmenities$id","_bathroomAmenities$id2","_ref4","_ref4$text","_ref5","_ref6","_ref6$text","others","_objectWithoutProperties","_excluded"],"sources":["../../../../src/services/Rates/helpers/parseAmenities.js"],"sourcesContent":["export const parseAmenities = ({\n bathroomServicesIdsAndTranslation: bathroomAmenities = {},\n installationServicesIdsAndTranslation: generalAmenities = {},\n roomTypeInfo: {\n bathroomServices: bathroomAmenitiesOrdered = [],\n featuredInstallations: {\n installationsCustomized: customizedAmenities = [],\n installationsStandard: featuredAmenities = {},\n order: featuredAmenitiesOrdered = [],\n } = {},\n installationServices: generalAmenitiesOrdered = [],\n } = {},\n} = {}) => {\n const amenities = [];\n\n amenities.push(\n ...featuredAmenitiesOrdered.map((id = '') => ({\n highlight: true,\n id: parseInt(id.replace(/\\w_/g, '')),\n text: featuredAmenities[id] || customizedAmenities[id]?.name,\n })),\n );\n\n amenities.push(\n ...generalAmenitiesOrdered\n .filter(\n (id) =>\n !amenities.some(\n ({ id: amenity, text = '' } = {}) => amenity == id || generalAmenities[id]?.name?.trim() === text?.trim(),\n ),\n )\n .map((id) => ({ id, ...generalAmenities[id] }))\n .map(({ id, name: text, onlyForThisRoomType: exclusive } = {}) => ({ exclusive, id, text })),\n );\n\n amenities.push(\n ...bathroomAmenitiesOrdered\n .filter(\n (id) =>\n !amenities.some(\n ({ id: amenity, text = '' } = {}) => amenity == id || bathroomAmenities[id]?.name?.trim() === text.trim(),\n ),\n )\n .map((id) => ({ id, ...bathroomAmenities[id] }))\n .map(({ id, name: text, onlyForThisRoomType: exclusive } = {}) => ({ exclusive, id, text })),\n );\n\n return amenities.map(({ text = '', ...others }) => ({ ...others, text: text.replace(/\\r?\\n|\\r/g, '').trim() }));\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAO,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAA,EAYhB;EAAA,IAAAE,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAP,CAAC,CAAC;IAAAG,qBAAA,GAAAJ,IAAA,CAXJK,iCAAiC;IAAEC,iBAAiB,GAAAF,qBAAA,cAAG,CAAC,CAAC,GAAAA,qBAAA;IAAAG,qBAAA,GAAAP,IAAA,CACzDQ,qCAAqC;IAAEC,gBAAgB,GAAAF,qBAAA,cAAG,CAAC,CAAC,GAAAA,qBAAA;IAAAG,iBAAA,GAAAV,IAAA,CAC5DW,YAAY;IAAAC,kBA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C,CAAC,CAChG,CAAC;EAED,OAAOV,SAAS,CAACI,GAAG,CAAC,UAAAyB,KAAA;IAAA,IAAAC,UAAA,GAAAD,KAAA,CAAGnB,IAAI;MAAJA,IAAI,GAAAoB,UAAA,cAAG,EAAE,GAAAA,UAAA;MAAKC,MAAM,GAAAC,wBAAA,CAAAH,KAAA,EAAAI,SAAA;IAAA,OAAAb,aAAA,CAAAA,aAAA,KAAaW,MAAM;MAAErB,IAAI,EAAEA,IAAI,CAACD,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAACU,IAAI,CAAC;IAAC;EAAA,CAAG,CAAC;AACjH,CAAC"}
1
+ {"version":3,"file":"parseAmenities.js","names":["parseAmenities","bathroomServicesIdsAndTranslation","bathroomAmenities","installationServicesIdsAndTranslation","generalAmenities","roomTypeInfo","bathroomServices","bathroomAmenitiesOrdered","featuredInstallations","installationsCustomized","customizedAmenities","installationsStandard","featuredAmenities","order","featuredAmenitiesOrdered","installationServices","generalAmenitiesOrdered","arguments","length","undefined","amenities","push","map","_customizedAmenities$","id","highlight","parseInt","replace","text","name","filter","some","_generalAmenities$id","_generalAmenities$id$","amenity","trim","onlyForThisRoomType","exclusive","_bathroomAmenities$id","_bathroomAmenities$id2","_ref","others","exports"],"sources":["../../../../src/services/Rates/helpers/parseAmenities.js"],"sourcesContent":["export const parseAmenities = ({\n bathroomServicesIdsAndTranslation: bathroomAmenities = {},\n installationServicesIdsAndTranslation: generalAmenities = {},\n roomTypeInfo: {\n bathroomServices: bathroomAmenitiesOrdered = [],\n featuredInstallations: {\n installationsCustomized: customizedAmenities = [],\n installationsStandard: featuredAmenities = {},\n order: featuredAmenitiesOrdered = [],\n } = {},\n installationServices: generalAmenitiesOrdered = [],\n } = {},\n} = {}) => {\n const amenities = [];\n\n amenities.push(\n ...featuredAmenitiesOrdered.map((id = '') => ({\n highlight: true,\n id: parseInt(id.replace(/\\w_/g, '')),\n text: featuredAmenities[id] || customizedAmenities[id]?.name,\n })),\n );\n\n amenities.push(\n ...generalAmenitiesOrdered\n .filter(\n (id) =>\n !amenities.some(\n ({ id: amenity, text = '' } = {}) => amenity == id || generalAmenities[id]?.name?.trim() === text?.trim(),\n ),\n )\n .map((id) => ({ id, ...generalAmenities[id] }))\n .map(({ id, name: text, onlyForThisRoomType: exclusive } = {}) => ({ exclusive, id, text })),\n );\n\n amenities.push(\n ...bathroomAmenitiesOrdered\n .filter(\n (id) =>\n !amenities.some(\n ({ id: amenity, text = '' } = {}) => amenity == id || bathroomAmenities[id]?.name?.trim() === text.trim(),\n ),\n )\n .map((id) => ({ id, ...bathroomAmenities[id] }))\n .map(({ id, name: text, onlyForThisRoomType: exclusive } = {}) => ({ exclusive, id, text })),\n );\n\n return amenities.map(({ text = '', ...others }) => ({ ...others, text: text.replace(/\\r?\\n|\\r/g, '').trim() }));\n};\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAG,SAAAA,CAAA,EAYnB;EAAA,IAZoB;IAC7BC,iCAAiC,EAAEC,iBAAiB,GAAG,CAAC,CAAC;IACzDC,qCAAqC,EAAEC,gBAAgB,GAAG,CAAC,CAAC;IAC5DC,YAAY,EAAE;MACZC,gBAAgB,EAAEC,wBAAwB,GAAG,EAAE;MAC/CC,qBAAqB,EAAE;QACrBC,uBAAuB,EAAEC,mBAAmB,GAAG,EAAE;QACjDC,qBAAqB,EAAEC,iBAAiB,GAAG,CAAC,CAAC;QAC7CC,KAAK,EAAEC,wBAAwB,GAAG;MACpC,CAAC,GAAG,CAAC,CAAC;MACNC,oBAAoB,EAAEC,uBAAuB,GAAG;IAClD,CAAC,GAAG,CAAC;EACP,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACJ,MAAMG,SAAS,GAAG,EAAE;EAEpBA,SAAS,CAACC,IAAI,CACZ,GAAGP,wBAAwB,CAACQ,GAAG,CAAC;IAAA,IAAAC,qBAAA;IAAA,IAACC,EAAE,GAAAP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,EAAEA,IAAI,CAACD,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAACQ,IAAI,CAAC;IAAE,CAAC;EAAA,CAAC,CAAC;AACjH,CAAC;AAACO,OAAA,CAAA1C,cAAA,GAAAA,cAAA"}
@@ -5,44 +5,44 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.parseDiscount = void 0;
7
7
  var _getPrice = require("./getPrice");
8
- var parseDiscount = exports.parseDiscount = function parseDiscount() {
9
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
10
- promoCodeValue = _ref.clientCodeDiscountPercentInCents,
11
- promoCode = _ref.clientCodeTotal,
12
- clubValue = _ref.clubDiscountPercentInCents,
13
- club = _ref.clubTotal,
14
- currency = _ref.currency,
15
- hotelCurrency = _ref.hotelCurrency,
16
- dealValue = _ref.offerDiscountPercentInCents,
17
- deal = _ref.offerTotal,
18
- originalPrice = _ref.originalPrice,
19
- totalPrice = _ref.totalPrice;
8
+ const parseDiscount = function () {
9
+ let {
10
+ clientCodeDiscountPercentInCents: promoCodeValue,
11
+ clientCodeTotal: promoCode,
12
+ clubDiscountPercentInCents: clubValue,
13
+ clubTotal: club,
14
+ currency,
15
+ hotelCurrency,
16
+ offerDiscountPercentInCents: dealValue,
17
+ offerTotal: deal,
18
+ originalPrice,
19
+ totalPrice
20
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
20
21
  return {
21
22
  percentage: +Number.parseFloat((originalPrice - totalPrice) * 100 / originalPrice).toFixed(0),
22
23
  breakdown: [club ? {
23
24
  type: 0,
24
25
  value: (0, _getPrice.getPrice)({
25
- currency: currency,
26
- hotelCurrency: hotelCurrency,
26
+ currency,
27
+ hotelCurrency,
27
28
  price: club.withTaxes * (clubValue / 10000)
28
29
  })
29
30
  } : undefined, deal ? {
30
31
  type: 1,
31
32
  value: (0, _getPrice.getPrice)({
32
- currency: currency,
33
- hotelCurrency: hotelCurrency,
33
+ currency,
34
+ hotelCurrency,
34
35
  price: deal.withTaxes * (dealValue / 10000)
35
36
  })
36
37
  } : undefined, promoCode ? {
37
38
  type: 2,
38
39
  value: (0, _getPrice.getPrice)({
39
- currency: currency,
40
- hotelCurrency: hotelCurrency,
40
+ currency,
41
+ hotelCurrency,
41
42
  price: promoCode.withTaxes * (promoCodeValue / 10000)
42
43
  })
43
- } : undefined].filter(function (value) {
44
- return !!value;
45
- })
44
+ } : undefined].filter(value => !!value)
46
45
  };
47
46
  };
47
+ exports.parseDiscount = parseDiscount;
48
48
  //# sourceMappingURL=parseDiscount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseDiscount.js","names":["_getPrice","require","parseDiscount","exports","_ref","arguments","length","undefined","promoCodeValue","clientCodeDiscountPercentInCents","promoCode","clientCodeTotal","clubValue","clubDiscountPercentInCents","club","clubTotal","currency","hotelCurrency","dealValue","offerDiscountPercentInCents","deal","offerTotal","originalPrice","totalPrice","percentage","Number","parseFloat","toFixed","breakdown","type","value","getPrice","price","withTaxes","filter"],"sources":["../../../../src/services/Rates/helpers/parseDiscount.js"],"sourcesContent":["import { getPrice } from './getPrice';\n\nexport const parseDiscount = ({\n clientCodeDiscountPercentInCents: promoCodeValue,\n clientCodeTotal: promoCode,\n clubDiscountPercentInCents: clubValue,\n clubTotal: club,\n currency,\n hotelCurrency,\n offerDiscountPercentInCents: dealValue,\n offerTotal: deal,\n originalPrice,\n totalPrice,\n} = {}) => ({\n percentage: +Number.parseFloat(((originalPrice - totalPrice) * 100) / originalPrice).toFixed(0),\n breakdown: [\n club\n ? {\n type: 0,\n value: getPrice({ currency, hotelCurrency, price: club.withTaxes * (clubValue / 10000) }),\n }\n : undefined,\n deal\n ? {\n type: 1,\n value: getPrice({ currency, hotelCurrency, price: deal.withTaxes * (dealValue / 10000) }),\n }\n : undefined,\n promoCode\n ? {\n type: 2,\n value: getPrice({ currency, hotelCurrency, price: promoCode.withTaxes * (promoCodeValue / 10000) }),\n }\n : undefined,\n ].filter((value) => !!value),\n});\n"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AAK;MAAE,CAAC;IAC1F,CAAC,GACDX,SAAS,EACbG,SAAS,GACL;MACEmB,IAAI,EAAE,CAAC;MACPC,KAAK,EAAE,IAAAC,kBAAQ,EAAC;QAAEf,QAAQ,EAARA,QAAQ;QAAEC,aAAa,EAAbA,aAAa;QAAEe,KAAK,EAAEtB,SAAS,CAACuB,SAAS,IAAIzB,cAAc,GAAG,KAAK;MAAE,CAAC;IACpG,CAAC,GACDD,SAAS,CACd,CAAC2B,MAAM,CAAC,UAACJ,KAAK;MAAA,OAAK,CAAC,CAACA,KAAK;IAAA;EAC7B,CAAC;AAAA,CAAC"}
1
+ {"version":3,"file":"parseDiscount.js","names":["_getPrice","require","parseDiscount","clientCodeDiscountPercentInCents","promoCodeValue","clientCodeTotal","promoCode","clubDiscountPercentInCents","clubValue","clubTotal","club","currency","hotelCurrency","offerDiscountPercentInCents","dealValue","offerTotal","deal","originalPrice","totalPrice","arguments","length","undefined","percentage","Number","parseFloat","toFixed","breakdown","type","value","getPrice","price","withTaxes","filter","exports"],"sources":["../../../../src/services/Rates/helpers/parseDiscount.js"],"sourcesContent":["import { getPrice } from './getPrice';\n\nexport const parseDiscount = ({\n clientCodeDiscountPercentInCents: promoCodeValue,\n clientCodeTotal: promoCode,\n clubDiscountPercentInCents: clubValue,\n clubTotal: club,\n currency,\n hotelCurrency,\n offerDiscountPercentInCents: dealValue,\n offerTotal: deal,\n originalPrice,\n totalPrice,\n} = {}) => ({\n percentage: +Number.parseFloat(((originalPrice - totalPrice) * 100) / originalPrice).toFixed(0),\n breakdown: [\n club\n ? {\n type: 0,\n value: getPrice({ currency, hotelCurrency, price: club.withTaxes * (clubValue / 10000) }),\n }\n : undefined,\n deal\n ? {\n type: 1,\n value: getPrice({ currency, hotelCurrency, price: deal.withTaxes * (dealValue / 10000) }),\n }\n : undefined,\n promoCode\n ? {\n type: 2,\n value: getPrice({ currency, hotelCurrency, price: promoCode.withTaxes * (promoCodeValue / 10000) }),\n }\n : undefined,\n ].filter((value)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AACW,MAAM,CAAEJ,KAAK,IAAK,CAAC,CAACA,KAAK;EAC7B,CAAC;AAAA,CAAC;AAACK,OAAA,CAAA/B,aAAA,GAAAA,aAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ServiceRates = void 0;
7
7
  var _get = require("./get");
8
- var ServiceRates = exports.ServiceRates = {
8
+ const ServiceRates = exports.ServiceRates = {
9
9
  get: _get.get
10
10
  };
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_get","require","ServiceRates","exports","get"],"sources":["../../../src/services/Rates/index.js"],"sourcesContent":["import { get } from './get';\n\nexport const ServiceRates = {\n get,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAEO,IAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,GAAG,EAAHA;AACF,CAAC"}
1
+ {"version":3,"file":"index.js","names":["_get","require","ServiceRates","exports","get"],"sources":["../../../src/services/Rates/index.js"],"sourcesContent":["import { get } from './get';\n\nexport const ServiceRates = {\n get,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,GAAG,EAAHA;AACF,CAAC"}
@@ -9,7 +9,7 @@ Object.keys(_Club).forEach(function (key) {
9
9
  if (key in exports && exports[key] === _Club[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
- get: function get() {
12
+ get: function () {
13
13
  return _Club[key];
14
14
  }
15
15
  });
@@ -20,7 +20,7 @@ Object.keys(_Engine).forEach(function (key) {
20
20
  if (key in exports && exports[key] === _Engine[key]) return;
21
21
  Object.defineProperty(exports, key, {
22
22
  enumerable: true,
23
- get: function get() {
23
+ get: function () {
24
24
  return _Engine[key];
25
25
  }
26
26
  });
@@ -31,7 +31,7 @@ Object.keys(_Rates).forEach(function (key) {
31
31
  if (key in exports && exports[key] === _Rates[key]) return;
32
32
  Object.defineProperty(exports, key, {
33
33
  enumerable: true,
34
- get: function get() {
34
+ get: function () {
35
35
  return _Rates[key];
36
36
  }
37
37
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Club","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Engine","_Rates"],"sources":["../../src/services/index.js"],"sourcesContent":["export * from './Club';\nexport * from './Engine';\nexport * from './Rates';\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_Club","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Engine","_Rates"],"sources":["../../src/services/index.js"],"sourcesContent":["export * from './Club';\nexport * from './Engine';\nexport * from './Rates';\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/core",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "source": "src/index.js",
5
5
  "repository": "https://gitlab.com/miraicorp/dev/frontend/core",
6
6
  "author": "JΛVI <hello@soyjavi.com>",
@@ -27,12 +27,12 @@
27
27
  "@mirai/locale": "^0.2",
28
28
  "@mirai/services": "^0.2",
29
29
  "@mirai/ui": "^1.0",
30
+ "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.0.1/react-icons-all-files-5.0.1.tgz",
30
31
  "@sentry/react": "^7.57.0",
31
32
  "js-sha1": "^0.6.0",
32
33
  "prop-types": "^15.8.1",
33
34
  "react": "^17.0.2",
34
- "react-dom": "^17.0.2",
35
- "react-icons": "^4.10.1"
35
+ "react-dom": "^17.0.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/cli": "7.19.3",
@@ -44,7 +44,7 @@
44
44
  "@testing-library/react": "12.1.5",
45
45
  "@testing-library/react-hooks": "7.0.2",
46
46
  "jest-fetch-mock": "^3.0.3",
47
- "parcel": "2.8.3",
47
+ "parcel": "2.11.0",
48
48
  "process": "0.11.10",
49
49
  "react-scripts": "5.0.1",
50
50
  "serve": "14.2.0",
@@ -59,9 +59,9 @@
59
59
  "@mirai/locale": "^0.2",
60
60
  "@mirai/services": "^0.2",
61
61
  "@mirai/ui": "^1.0",
62
+ "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.0.1/react-icons-all-files-5.0.1.tgz",
62
63
  "react": "^17.0.2",
63
- "react-dom": "^17.0.2",
64
- "react-icons": "^4.10.1"
64
+ "react-dom": "^17.0.2"
65
65
  },
66
66
  "browserslist": [
67
67
  ">0.2%",