@mirai/core 0.3.36 → 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 -100
  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 -12
  132. package/build/components/Deals/Deals.l10n.js.map +1 -1
  133. package/build/components/Deals/Deals.skeleton.js +5 -3
  134. package/build/components/Deals/Deals.skeleton.js.map +1 -1
  135. package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +3 -3
  136. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +17 -17
  137. package/build/components/Deals/helpers/calcFromDate.js +7 -6
  138. package/build/components/Deals/helpers/calcFromDate.js.map +1 -1
  139. package/build/components/Deals/helpers/calcMinStay.js +6 -7
  140. package/build/components/Deals/helpers/calcMinStay.js.map +1 -1
  141. package/build/components/Deals/helpers/calcNightWithDeals.js +5 -4
  142. package/build/components/Deals/helpers/calcNightWithDeals.js.map +1 -1
  143. package/build/components/Deals/helpers/calcToDate.js +5 -10
  144. package/build/components/Deals/helpers/calcToDate.js.map +1 -1
  145. package/build/components/Deals/helpers/calcTooltips.js +15 -14
  146. package/build/components/Deals/helpers/calcTooltips.js.map +1 -1
  147. package/build/components/Deals/helpers/getCurrency.js +11 -9
  148. package/build/components/Deals/helpers/getCurrency.js.map +1 -1
  149. package/build/components/Deals/helpers/index.js +7 -7
  150. package/build/components/Deals/helpers/index.js.map +1 -1
  151. package/build/components/Deals/helpers/validate.js +15 -24
  152. package/build/components/Deals/helpers/validate.js.map +1 -1
  153. package/build/components/Deals/index.js +2 -2
  154. package/build/components/Deals/index.js.map +1 -1
  155. package/build/components/Environment/Environment.State.js +60 -68
  156. package/build/components/Environment/Environment.State.js.map +1 -1
  157. package/build/components/Environment/Environment.constants.js +1 -1
  158. package/build/components/Environment/Environment.constants.js.map +1 -1
  159. package/build/components/Environment/Environment.js +22 -25
  160. package/build/components/Environment/Environment.js.map +1 -1
  161. package/build/components/Environment/index.js +2 -2
  162. package/build/components/Environment/index.js.map +1 -1
  163. package/build/components/Finder/Finder.compact.js +54 -74
  164. package/build/components/Finder/Finder.compact.js.map +1 -1
  165. package/build/components/Finder/Finder.constants.js +9 -7
  166. package/build/components/Finder/Finder.constants.js.map +1 -1
  167. package/build/components/Finder/Finder.js +121 -152
  168. package/build/components/Finder/Finder.js.map +1 -1
  169. package/build/components/Finder/Finder.l10n.js +1 -1
  170. package/build/components/Finder/Finder.l10n.js.map +1 -1
  171. package/build/components/Finder/Finder.skeleton.js +24 -23
  172. package/build/components/Finder/Finder.skeleton.js.map +1 -1
  173. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +44 -44
  174. package/build/components/Finder/components/Calendar/Calendar.constants.js +6 -6
  175. package/build/components/Finder/components/Calendar/Calendar.constants.js.map +1 -1
  176. package/build/components/Finder/components/Calendar/Calendar.js +77 -125
  177. package/build/components/Finder/components/Calendar/Calendar.js.map +1 -1
  178. package/build/components/Finder/components/Calendar/Calendar.l10n.js +13 -13
  179. package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +1 -1
  180. package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +8 -8
  181. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +37 -74
  182. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +1 -1
  183. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +4 -3
  184. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +1 -1
  185. package/build/components/Finder/components/Calendar/helpers/index.js +2 -2
  186. package/build/components/Finder/components/Calendar/helpers/index.js.map +1 -1
  187. package/build/components/Finder/components/Calendar/index.js +1 -1
  188. package/build/components/Finder/components/Calendar/index.js.map +1 -1
  189. package/build/components/Finder/components/Places/Places.js +38 -46
  190. package/build/components/Finder/components/Places/Places.js.map +1 -1
  191. package/build/components/Finder/components/Places/Places.l10n.js +1 -1
  192. package/build/components/Finder/components/Places/Places.l10n.js.map +1 -1
  193. package/build/components/Finder/components/Places/helpers/calcColumns.js +27 -26
  194. package/build/components/Finder/components/Places/helpers/calcColumns.js.map +1 -1
  195. package/build/components/Finder/components/Places/helpers/index.js +1 -1
  196. package/build/components/Finder/components/Places/helpers/index.js.map +1 -1
  197. package/build/components/Finder/components/Places/index.js +1 -1
  198. package/build/components/Finder/components/Places/index.js.map +1 -1
  199. package/build/components/Finder/components/index.js +2 -2
  200. package/build/components/Finder/components/index.js.map +1 -1
  201. package/build/components/Finder/helpers/getDataSource.js +35 -42
  202. package/build/components/Finder/helpers/getDataSource.js.map +1 -1
  203. package/build/components/Finder/helpers/getForwarderUrl.js +37 -51
  204. package/build/components/Finder/helpers/getForwarderUrl.js.map +1 -1
  205. package/build/components/Finder/helpers/getHotels.js +17 -29
  206. package/build/components/Finder/helpers/getHotels.js.map +1 -1
  207. package/build/components/Finder/helpers/getOccupationDataSource.js +53 -67
  208. package/build/components/Finder/helpers/getOccupationDataSource.js.map +1 -1
  209. package/build/components/Finder/helpers/getPlaceCaption.js +6 -6
  210. package/build/components/Finder/helpers/getPlaceCaption.js.map +1 -1
  211. package/build/components/Finder/helpers/getPlacesOptions.js +24 -30
  212. package/build/components/Finder/helpers/getPlacesOptions.js.map +1 -1
  213. package/build/components/Finder/helpers/index.js +9 -9
  214. package/build/components/Finder/helpers/index.js.map +1 -1
  215. package/build/components/Finder/helpers/parseCalendarProps.js +13 -14
  216. package/build/components/Finder/helpers/parseCalendarProps.js.map +1 -1
  217. package/build/components/Finder/helpers/parseValue.js +12 -10
  218. package/build/components/Finder/helpers/parseValue.js.map +1 -1
  219. package/build/components/Finder/helpers/validate.js +5 -4
  220. package/build/components/Finder/helpers/validate.js.map +1 -1
  221. package/build/components/Finder/index.js +2 -2
  222. package/build/components/Finder/index.js.map +1 -1
  223. package/build/components/Profile/Profile.Account.js +59 -118
  224. package/build/components/Profile/Profile.Account.js.map +1 -1
  225. package/build/components/Profile/Profile.Password.js +55 -105
  226. package/build/components/Profile/Profile.Password.js.map +1 -1
  227. package/build/components/Profile/Profile.Signout.js +31 -68
  228. package/build/components/Profile/Profile.Signout.js.map +1 -1
  229. package/build/components/Profile/Profile.constants.js +3 -3
  230. package/build/components/Profile/Profile.constants.js.map +1 -1
  231. package/build/components/Profile/Profile.js +20 -30
  232. package/build/components/Profile/Profile.js.map +1 -1
  233. package/build/components/Profile/Profile.l10n.js +1 -1
  234. package/build/components/Profile/Profile.l10n.js.map +1 -1
  235. package/build/components/Profile/Profile.skeleton.js +108 -109
  236. package/build/components/Profile/Profile.skeleton.js.map +1 -1
  237. package/build/components/Profile/components/Bookings/Booking.constants.js +5 -5
  238. package/build/components/Profile/components/Bookings/Booking.constants.js.map +1 -1
  239. package/build/components/Profile/components/Bookings/Booking.l10n.js +1 -1
  240. package/build/components/Profile/components/Bookings/Booking.l10n.js.map +1 -1
  241. package/build/components/Profile/components/Bookings/Bookings.Item.js +36 -35
  242. package/build/components/Profile/components/Bookings/Bookings.Item.js.map +1 -1
  243. package/build/components/Profile/components/Bookings/Bookings.Search.js +23 -34
  244. package/build/components/Profile/components/Bookings/Bookings.Search.js.map +1 -1
  245. package/build/components/Profile/components/Bookings/Bookings.js +62 -92
  246. package/build/components/Profile/components/Bookings/Bookings.js.map +1 -1
  247. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +12 -18
  248. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +1 -1
  249. package/build/components/Profile/components/Bookings/helpers/index.js +1 -1
  250. package/build/components/Profile/components/Bookings/helpers/index.js.map +1 -1
  251. package/build/components/Profile/components/Bookings/index.js +1 -1
  252. package/build/components/Profile/components/Bookings/index.js.map +1 -1
  253. package/build/components/Profile/components/index.js +1 -1
  254. package/build/components/Profile/components/index.js.map +1 -1
  255. package/build/components/Profile/index.js +2 -2
  256. package/build/components/Profile/index.js.map +1 -1
  257. package/build/components/Rates/Rates.Filter.js +83 -96
  258. package/build/components/Rates/Rates.Filter.js.map +1 -1
  259. package/build/components/Rates/Rates.Footer.js +70 -87
  260. package/build/components/Rates/Rates.Footer.js.map +1 -1
  261. package/build/components/Rates/Rates.Skeleton.js +66 -66
  262. package/build/components/Rates/Rates.Skeleton.js.map +1 -1
  263. package/build/components/Rates/Rates.js +88 -191
  264. package/build/components/Rates/Rates.js.map +1 -1
  265. package/build/components/Rates/Rates.l10n.js +1 -1
  266. package/build/components/Rates/Rates.l10n.js.map +1 -1
  267. package/build/components/Rates/components/Item/Item.js +96 -131
  268. package/build/components/Rates/components/Item/Item.js.map +1 -1
  269. package/build/components/Rates/components/Item/Item.l10n.js +1 -1
  270. package/build/components/Rates/components/Item/Item.l10n.js.map +1 -1
  271. package/build/components/Rates/components/Item/components/Amenities/Amenities.js +15 -17
  272. package/build/components/Rates/components/Item/components/Amenities/Amenities.js.map +1 -1
  273. package/build/components/Rates/components/Item/components/Amenities/index.js +1 -1
  274. package/build/components/Rates/components/Item/components/Amenities/index.js.map +1 -1
  275. package/build/components/Rates/components/Item/components/Discount/Discount.js +48 -43
  276. package/build/components/Rates/components/Item/components/Discount/Discount.js.map +1 -1
  277. package/build/components/Rates/components/Item/components/Discount/index.js +1 -1
  278. package/build/components/Rates/components/Item/components/Discount/index.js.map +1 -1
  279. package/build/components/Rates/components/Item/components/Features/Features.js +21 -28
  280. package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
  281. package/build/components/Rates/components/Item/components/Features/index.js +1 -1
  282. package/build/components/Rates/components/Item/components/Features/index.js.map +1 -1
  283. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +23 -21
  284. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
  285. package/build/components/Rates/components/Item/components/ModalInfo/index.js +1 -1
  286. package/build/components/Rates/components/Item/components/ModalInfo/index.js.map +1 -1
  287. package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +16 -16
  288. package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +1 -1
  289. package/build/components/Rates/components/Item/components/ModalRateInfo/index.js +1 -1
  290. package/build/components/Rates/components/Item/components/ModalRateInfo/index.js.map +1 -1
  291. package/build/components/Rates/components/Item/components/index.js +5 -5
  292. package/build/components/Rates/components/Item/components/index.js.map +1 -1
  293. package/build/components/Rates/components/Item/index.js +3 -3
  294. package/build/components/Rates/components/Item/index.js.map +1 -1
  295. package/build/components/Rates/components/index.js +1 -1
  296. package/build/components/Rates/components/index.js.map +1 -1
  297. package/build/components/Rates/helpers/getForwarderUrl.js +39 -52
  298. package/build/components/Rates/helpers/getForwarderUrl.js.map +1 -1
  299. package/build/components/Rates/helpers/index.js +1 -1
  300. package/build/components/Rates/helpers/index.js.map +1 -1
  301. package/build/components/Rates/index.js +2 -2
  302. package/build/components/Rates/index.js.map +1 -1
  303. package/build/components/Session/Session.Account.js +51 -60
  304. package/build/components/Session/Session.Account.js.map +1 -1
  305. package/build/components/Session/Session.Login.Modal.js +104 -205
  306. package/build/components/Session/Session.Login.Modal.js.map +1 -1
  307. package/build/components/Session/Session.Login.js +27 -36
  308. package/build/components/Session/Session.Login.js.map +1 -1
  309. package/build/components/Session/Session.constants.js +5 -5
  310. package/build/components/Session/Session.constants.js.map +1 -1
  311. package/build/components/Session/Session.js +18 -31
  312. package/build/components/Session/Session.js.map +1 -1
  313. package/build/components/Session/Session.l10n.js +1 -1
  314. package/build/components/Session/Session.l10n.js.map +1 -1
  315. package/build/components/Session/Session.skeleton.js +7 -8
  316. package/build/components/Session/Session.skeleton.js.map +1 -1
  317. package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +15 -15
  318. package/build/components/Session/helpers/getDomain.js +4 -3
  319. package/build/components/Session/helpers/getDomain.js.map +1 -1
  320. package/build/components/Session/helpers/getSignupUrl.js +6 -4
  321. package/build/components/Session/helpers/getSignupUrl.js.map +1 -1
  322. package/build/components/Session/helpers/index.js +4 -4
  323. package/build/components/Session/helpers/index.js.map +1 -1
  324. package/build/components/Session/helpers/template.js +7 -9
  325. package/build/components/Session/helpers/template.js.map +1 -1
  326. package/build/components/Session/helpers/trackLogin.js +12 -9
  327. package/build/components/Session/helpers/trackLogin.js.map +1 -1
  328. package/build/components/Session/index.js +2 -2
  329. package/build/components/Session/index.js.map +1 -1
  330. package/build/components/Signup/Signup.constants.js +1 -1
  331. package/build/components/Signup/Signup.constants.js.map +1 -1
  332. package/build/components/Signup/Signup.js +54 -122
  333. package/build/components/Signup/Signup.js.map +1 -1
  334. package/build/components/Signup/Signup.l10n.js +1 -1
  335. package/build/components/Signup/Signup.l10n.js.map +1 -1
  336. package/build/components/Signup/Signup.skeleton.js +81 -82
  337. package/build/components/Signup/Signup.skeleton.js.map +1 -1
  338. package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +9 -9
  339. package/build/components/Signup/index.js +2 -2
  340. package/build/components/Signup/index.js.map +1 -1
  341. package/build/components/__shared__/BookingDates/BookingDates.constants.js +1 -1
  342. package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +1 -1
  343. package/build/components/__shared__/BookingDates/BookingDates.js +29 -30
  344. package/build/components/__shared__/BookingDates/BookingDates.js.map +1 -1
  345. package/build/components/__shared__/BookingDates/BookingDates.l10n.js +1 -1
  346. package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +1 -1
  347. package/build/components/__shared__/BookingDates/index.js +1 -1
  348. package/build/components/__shared__/BookingDates/index.js.map +1 -1
  349. package/build/components/__shared__/BookingTable/BookingTable.Row.js +46 -53
  350. package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -1
  351. package/build/components/__shared__/BookingTable/BookingTable.constants.js +3 -3
  352. package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +1 -1
  353. package/build/components/__shared__/BookingTable/BookingTable.js +34 -51
  354. package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -1
  355. package/build/components/__shared__/BookingTable/BookingTable.l10n.js +1 -1
  356. package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -1
  357. package/build/components/__shared__/BookingTable/index.js +1 -1
  358. package/build/components/__shared__/BookingTable/index.js.map +1 -1
  359. package/build/components/__shared__/ButtonMore/ButtonMore.js +16 -15
  360. package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -1
  361. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +1 -1
  362. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +1 -1
  363. package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +3 -3
  364. package/build/components/__shared__/ButtonMore/index.js +1 -1
  365. package/build/components/__shared__/ButtonMore/index.js.map +1 -1
  366. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +5 -5
  367. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -1
  368. package/build/components/__shared__/ButtonPayment/ButtonPayment.js +132 -218
  369. package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -1
  370. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +1 -1
  371. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +1 -1
  372. package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +4 -4
  373. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +30 -45
  374. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +1 -1
  375. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +1 -1
  376. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +1 -1
  377. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +11 -8
  378. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +1 -1
  379. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +1 -1
  380. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +1 -1
  381. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +1 -1
  382. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +1 -1
  383. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +2 -2
  384. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +1 -1
  385. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +74 -91
  386. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +1 -1
  387. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +1 -1
  388. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +1 -1
  389. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +9 -7
  390. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +1 -1
  391. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +1 -1
  392. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +1 -1
  393. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +1 -1
  394. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +1 -1
  395. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +1 -1
  396. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +1 -1
  397. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +63 -83
  398. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +1 -1
  399. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +1 -1
  400. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +1 -1
  401. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +1 -1
  402. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +1 -1
  403. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +7 -8
  404. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +1 -1
  405. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +1 -1
  406. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +1 -1
  407. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +11 -9
  408. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +1 -1
  409. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +49 -66
  410. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +1 -1
  411. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +1 -1
  412. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +1 -1
  413. package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +3 -3
  414. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +7 -5
  415. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +1 -1
  416. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +1 -1
  417. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +1 -1
  418. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +1 -1
  419. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +1 -1
  420. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +13 -15
  421. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +1 -1
  422. package/build/components/__shared__/ButtonPayment/components/InputField/index.js +1 -1
  423. package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +1 -1
  424. package/build/components/__shared__/ButtonPayment/components/index.js +4 -4
  425. package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -1
  426. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +19 -14
  427. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -1
  428. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +5 -16
  429. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +1 -1
  430. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +24 -22
  431. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +1 -1
  432. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +10 -7
  433. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +1 -1
  434. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +23 -21
  435. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +1 -1
  436. package/build/components/__shared__/ButtonPayment/helpers/index.js +3 -3
  437. package/build/components/__shared__/ButtonPayment/helpers/index.js.map +1 -1
  438. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +11 -9
  439. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +1 -1
  440. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +7 -9
  441. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +1 -1
  442. package/build/components/__shared__/ButtonPayment/index.js +1 -1
  443. package/build/components/__shared__/ButtonPayment/index.js.map +1 -1
  444. package/build/components/__shared__/Field/Field.js +32 -36
  445. package/build/components/__shared__/Field/Field.js.map +1 -1
  446. package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +14 -14
  447. package/build/components/__shared__/Field/index.js +1 -1
  448. package/build/components/__shared__/Field/index.js.map +1 -1
  449. package/build/components/__shared__/FieldOccupation/FieldOccupation.js +34 -39
  450. package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -1
  451. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +1 -1
  452. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +1 -1
  453. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +16 -16
  454. package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js +21 -25
  455. package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js.map +1 -1
  456. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +31 -29
  457. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +1 -1
  458. package/build/components/__shared__/FieldOccupation/helpers/index.js +2 -2
  459. package/build/components/__shared__/FieldOccupation/helpers/index.js.map +1 -1
  460. package/build/components/__shared__/FieldOccupation/index.js +1 -1
  461. package/build/components/__shared__/FieldOccupation/index.js.map +1 -1
  462. package/build/components/__shared__/FieldPromocode/FieldPromocode.js +12 -12
  463. package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -1
  464. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +1 -1
  465. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +1 -1
  466. package/build/components/__shared__/FieldPromocode/index.js +1 -1
  467. package/build/components/__shared__/FieldPromocode/index.js.map +1 -1
  468. package/build/components/__shared__/Occupation/Occupation.Group.js +32 -36
  469. package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -1
  470. package/build/components/__shared__/Occupation/Occupation.constants.js +22 -19
  471. package/build/components/__shared__/Occupation/Occupation.constants.js.map +1 -1
  472. package/build/components/__shared__/Occupation/Occupation.js +71 -118
  473. package/build/components/__shared__/Occupation/Occupation.js.map +1 -1
  474. package/build/components/__shared__/Occupation/Occupation.l10n.js +18 -16
  475. package/build/components/__shared__/Occupation/Occupation.l10n.js.map +1 -1
  476. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +7 -7
  477. package/build/components/__shared__/Occupation/helpers/checkRoom.js +19 -19
  478. package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +1 -1
  479. package/build/components/__shared__/Occupation/helpers/consolidateValue.js +47 -51
  480. package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +1 -1
  481. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +5 -16
  482. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +1 -1
  483. package/build/components/__shared__/Occupation/helpers/getGroupHint.js +7 -15
  484. package/build/components/__shared__/Occupation/helpers/getGroupHint.js.map +1 -1
  485. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +8 -9
  486. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +1 -1
  487. package/build/components/__shared__/Occupation/helpers/index.js +6 -6
  488. package/build/components/__shared__/Occupation/helpers/index.js.map +1 -1
  489. package/build/components/__shared__/Occupation/helpers/prepareRoom.js +17 -15
  490. package/build/components/__shared__/Occupation/helpers/prepareRoom.js.map +1 -1
  491. package/build/components/__shared__/Occupation/helpers/toParties.js +18 -19
  492. package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -1
  493. package/build/components/__shared__/Occupation/index.js +2 -2
  494. package/build/components/__shared__/Occupation/index.js.map +1 -1
  495. package/build/components/__shared__/Payment/Payment.constants.js +6 -6
  496. package/build/components/__shared__/Payment/Payment.constants.js.map +1 -1
  497. package/build/components/__shared__/Payment/Payment.js +78 -94
  498. package/build/components/__shared__/Payment/Payment.js.map +1 -1
  499. package/build/components/__shared__/Payment/Payment.l10n.js +1 -1
  500. package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -1
  501. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +10 -10
  502. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +1 -1
  503. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +64 -85
  504. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -1
  505. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +1 -1
  506. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +1 -1
  507. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +8 -5
  508. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +1 -1
  509. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +1 -1
  510. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +1 -1
  511. package/build/components/__shared__/Payment/components/AmazonPay/index.js +1 -1
  512. package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +1 -1
  513. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +29 -46
  514. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -1
  515. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +1 -1
  516. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +1 -1
  517. package/build/components/__shared__/Payment/components/Aplazame/index.js +1 -1
  518. package/build/components/__shared__/Payment/components/Aplazame/index.js.map +1 -1
  519. package/build/components/__shared__/Payment/components/Card/Card.constants.js +1 -1
  520. package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +1 -1
  521. package/build/components/__shared__/Payment/components/Card/Card.js +34 -54
  522. package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
  523. package/build/components/__shared__/Payment/components/Card/Card.l10n.js +1 -1
  524. package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +1 -1
  525. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +23 -31
  526. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
  527. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +3 -4
  528. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +1 -1
  529. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +17 -12
  530. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +1 -1
  531. package/build/components/__shared__/Payment/components/Card/helpers/index.js +5 -5
  532. package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +1 -1
  533. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +2 -3
  534. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +1 -1
  535. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +4 -5
  536. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +1 -1
  537. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +3 -2
  538. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +1 -1
  539. package/build/components/__shared__/Payment/components/Card/index.js +1 -1
  540. package/build/components/__shared__/Payment/components/Card/index.js.map +1 -1
  541. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +6 -6
  542. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
  543. package/build/components/__shared__/Payment/components/PCI/PCI.js +136 -155
  544. package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
  545. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +1 -1
  546. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +1 -1
  547. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +15 -15
  548. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
  549. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +9 -7
  550. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +1 -1
  551. package/build/components/__shared__/Payment/components/PCI/helpers/index.js +2 -2
  552. package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +1 -1
  553. package/build/components/__shared__/Payment/components/PCI/index.js +1 -1
  554. package/build/components/__shared__/Payment/components/PCI/index.js.map +1 -1
  555. package/build/components/__shared__/Payment/components/Tpv/Tpv.js +19 -36
  556. package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +1 -1
  557. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +1 -1
  558. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +1 -1
  559. package/build/components/__shared__/Payment/components/Tpv/index.js +1 -1
  560. package/build/components/__shared__/Payment/components/Tpv/index.js.map +1 -1
  561. package/build/components/__shared__/Payment/components/index.js +5 -5
  562. package/build/components/__shared__/Payment/components/index.js.map +1 -1
  563. package/build/components/__shared__/Payment/helpers/getCaption.js +31 -25
  564. package/build/components/__shared__/Payment/helpers/getCaption.js.map +1 -1
  565. package/build/components/__shared__/Payment/helpers/getComponent.js +23 -17
  566. package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -1
  567. package/build/components/__shared__/Payment/helpers/getImage.js +6 -4
  568. package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -1
  569. package/build/components/__shared__/Payment/helpers/index.js +3 -3
  570. package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
  571. package/build/components/__shared__/Payment/index.js +5 -5
  572. package/build/components/__shared__/Payment/index.js.map +1 -1
  573. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +21 -20
  574. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +1 -1
  575. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +63 -66
  576. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -1
  577. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +1 -1
  578. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -1
  579. package/build/components/__shared__/PriceBreakdown/index.js +1 -1
  580. package/build/components/__shared__/PriceBreakdown/index.js.map +1 -1
  581. package/build/components/__shared__/Skeleton/Skeleton.js +13 -19
  582. package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -1
  583. package/build/components/__shared__/Skeleton/index.js +1 -1
  584. package/build/components/__shared__/Skeleton/index.js.map +1 -1
  585. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +10 -8
  586. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +1 -1
  587. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +1 -1
  588. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +1 -1
  589. package/build/components/__shared__/TextRequiredFields/index.js +1 -1
  590. package/build/components/__shared__/TextRequiredFields/index.js.map +1 -1
  591. package/build/components/__shared__/index.js +12 -12
  592. package/build/components/__shared__/index.js.map +1 -1
  593. package/build/components/helpers/ICON.AMENITIES.js +123 -83
  594. package/build/components/helpers/ICON.AMENITIES.js.map +1 -1
  595. package/build/components/helpers/ICON.js +43 -29
  596. package/build/components/helpers/ICON.js.map +1 -1
  597. package/build/components/helpers/constants.js +15 -13
  598. package/build/components/helpers/constants.js.map +1 -1
  599. package/build/components/helpers/getButtonPaymentKey.js +17 -11
  600. package/build/components/helpers/getButtonPaymentKey.js.map +1 -1
  601. package/build/components/helpers/getButtonPaymentKey.l10n.js +1 -1
  602. package/build/components/helpers/getButtonPaymentKey.l10n.js.map +1 -1
  603. package/build/components/helpers/getCalendarCaption.js +13 -25
  604. package/build/components/helpers/getCalendarCaption.js.map +1 -1
  605. package/build/components/helpers/getCountryCode.js +3 -2
  606. package/build/components/helpers/getCountryCode.js.map +1 -1
  607. package/build/components/helpers/index.js +13 -13
  608. package/build/components/helpers/index.js.map +1 -1
  609. package/build/components/helpers/isJest.js +1 -1
  610. package/build/components/helpers/isJest.js.map +1 -1
  611. package/build/components/helpers/parseHtml.js +37 -38
  612. package/build/components/helpers/parseHtml.js.map +1 -1
  613. package/build/components/helpers/parseToParties.js +5 -4
  614. package/build/components/helpers/parseToParties.js.map +1 -1
  615. package/build/components/helpers/testPassword.js +3 -2
  616. package/build/components/helpers/testPassword.js.map +1 -1
  617. package/build/components/helpers/toQueryString.js +9 -12
  618. package/build/components/helpers/toQueryString.js.map +1 -1
  619. package/build/components/helpers/toUrlParams.js +7 -9
  620. package/build/components/helpers/toUrlParams.js.map +1 -1
  621. package/build/components/helpers/trace.js +8 -8
  622. package/build/components/helpers/trace.js.map +1 -1
  623. package/build/components/helpers/translate.js +11 -10
  624. package/build/components/helpers/translate.js.map +1 -1
  625. package/build/components/index.js +22 -80
  626. package/build/components/index.js.map +1 -1
  627. package/build/helpers/checkSession.js +20 -42
  628. package/build/helpers/checkSession.js.map +1 -1
  629. package/build/helpers/consolidateStore.js +148 -160
  630. package/build/helpers/consolidateStore.js.map +1 -1
  631. package/build/helpers/fetchConfig.js +16 -57
  632. package/build/helpers/fetchConfig.js.map +1 -1
  633. package/build/helpers/fetchCookies.js +12 -13
  634. package/build/helpers/fetchCookies.js.map +1 -1
  635. package/build/helpers/fetchSession.js +33 -30
  636. package/build/helpers/fetchSession.js.map +1 -1
  637. package/build/helpers/fetchUrlParams.js +3 -2
  638. package/build/helpers/fetchUrlParams.js.map +1 -1
  639. package/build/helpers/findComponents.js +20 -25
  640. package/build/helpers/findComponents.js.map +1 -1
  641. package/build/helpers/findDangerousCSSRules.js +21 -48
  642. package/build/helpers/findDangerousCSSRules.js.map +1 -1
  643. package/build/helpers/findInstance.js +20 -34
  644. package/build/helpers/findInstance.js.map +1 -1
  645. package/build/helpers/getAccommodationType.js +4 -4
  646. package/build/helpers/getAccommodationType.js.map +1 -1
  647. package/build/helpers/getGhost.js +6 -13
  648. package/build/helpers/getGhost.js.map +1 -1
  649. package/build/helpers/getLocale.js +12 -22
  650. package/build/helpers/getLocale.js.map +1 -1
  651. package/build/helpers/getTags.js +24 -30
  652. package/build/helpers/getTags.js.map +1 -1
  653. package/build/helpers/index.js +12 -12
  654. package/build/helpers/index.js.map +1 -1
  655. package/build/helpers/loadEnvironment.js +9 -8
  656. package/build/helpers/loadEnvironment.js.map +1 -1
  657. package/build/helpers/loadSentry.js +6 -7
  658. package/build/helpers/loadSentry.js.map +1 -1
  659. package/build/helpers/theme.js +17 -24
  660. package/build/helpers/theme.js.map +1 -1
  661. package/build/helpers/toOccupation.js +36 -48
  662. package/build/helpers/toOccupation.js.map +1 -1
  663. package/build/index.js +71 -120
  664. package/build/index.js.map +1 -1
  665. package/build/services/Club/constants.js +2 -2
  666. package/build/services/Club/constants.js.map +1 -1
  667. package/build/services/Club/get.js +21 -49
  668. package/build/services/Club/get.js.map +1 -1
  669. package/build/services/Club/index.js +1 -1
  670. package/build/services/Club/index.js.map +1 -1
  671. package/build/services/Engine/constants.js +2 -2
  672. package/build/services/Engine/constants.js.map +1 -1
  673. package/build/services/Engine/get.js +22 -54
  674. package/build/services/Engine/get.js.map +1 -1
  675. package/build/services/Engine/index.js +1 -1
  676. package/build/services/Engine/index.js.map +1 -1
  677. package/build/services/Rates/constants.js +8 -8
  678. package/build/services/Rates/constants.js.map +1 -1
  679. package/build/services/Rates/get.js +195 -227
  680. package/build/services/Rates/get.js.map +1 -1
  681. package/build/services/Rates/helpers/getPrice.js +9 -7
  682. package/build/services/Rates/helpers/getPrice.js.map +1 -1
  683. package/build/services/Rates/helpers/index.js +4 -4
  684. package/build/services/Rates/helpers/index.js.map +1 -1
  685. package/build/services/Rates/helpers/normalizePrice.js +4 -3
  686. package/build/services/Rates/helpers/normalizePrice.js.map +1 -1
  687. package/build/services/Rates/helpers/parseAmenities.js +67 -89
  688. package/build/services/Rates/helpers/parseAmenities.js.map +1 -1
  689. package/build/services/Rates/helpers/parseDiscount.js +21 -21
  690. package/build/services/Rates/helpers/parseDiscount.js.map +1 -1
  691. package/build/services/Rates/index.js +1 -1
  692. package/build/services/Rates/index.js.map +1 -1
  693. package/build/services/index.js +3 -3
  694. package/build/services/index.js.map +1 -1
  695. package/package.json +6 -6
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -13,58 +12,53 @@ var _react = _interopRequireDefault(require("react"));
13
12
  var _BookingTable = require("./BookingTable.constants");
14
13
  var _BookingTable2 = require("./BookingTable.l10n");
15
14
  var style = _interopRequireWildcard(require("./BookingTable.module.css"));
16
- var _excluded = ["children", "currency", "title", "description", "price", "subtitle", "summary", "tracking"];
17
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
- 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; }
22
- 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; }
23
- 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; }
24
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
25
- 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); }
26
- 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; }
27
- 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; }
28
- var Row = exports.Row = function Row(_ref) {
29
- var children = _ref.children,
30
- currency = _ref.currency,
31
- title = _ref.title,
32
- description = _ref.description,
33
- _ref$price = _ref.price,
34
- price = _ref$price === void 0 ? {} : _ref$price,
35
- subtitle = _ref.subtitle,
36
- summary = _ref.summary,
37
- tracking = _ref.tracking,
38
- others = _objectWithoutProperties(_ref, _excluded);
39
- var _useDevice = (0, _ui.useDevice)(),
40
- isMobile = _useDevice.isMobile;
41
- var _useLocale = (0, _locale.useLocale)(),
42
- locale = _useLocale.locale,
43
- translate = _useLocale.translate;
44
- var _useMetrics = (0, _dataSources.useMetrics)(),
45
- track = _useMetrics.track;
46
- var priceProps = _objectSpread(_objectSpread({}, _BookingTable.FORMAT_CURRENCY), {}, {
47
- currency: currency,
48
- locale: locale
49
- });
50
- var renderPrice = function renderPrice() {
51
- return /*#__PURE__*/_react.default.createElement(_ui.Text, {
52
- action: true
53
- }, price.value ? (0, _locale.currencyFormat)(_objectSpread(_objectSpread({}, priceProps), {}, {
54
- value: price.value
55
- })) : translate(_BookingTable2.L10N.LABEL_FREE));
56
- };
57
- var renderPriceSupport = function renderPriceSupport() {
58
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, price.previous && /*#__PURE__*/_react.default.createElement(_ui.Text, {
59
- small: true,
60
- className: (0, _ui.styles)(style.caption, style.lineThrough)
61
- }, (0, _locale.currencyFormat)(_objectSpread(_objectSpread({}, priceProps), {}, {
62
- value: price.previous
63
- }))), price.description && /*#__PURE__*/_react.default.createElement(_ui.Text, {
64
- small: true,
65
- className: style.caption
66
- }, price.description));
19
+ const Row = _ref => {
20
+ let {
21
+ children,
22
+ currency,
23
+ title,
24
+ description,
25
+ price = {},
26
+ subtitle,
27
+ summary,
28
+ tracking,
29
+ ...others
30
+ } = _ref;
31
+ const {
32
+ isMobile
33
+ } = (0, _ui.useDevice)();
34
+ const {
35
+ locale,
36
+ translate
37
+ } = (0, _locale.useLocale)();
38
+ const {
39
+ track
40
+ } = (0, _dataSources.useMetrics)();
41
+ const priceProps = {
42
+ ..._BookingTable.FORMAT_CURRENCY,
43
+ currency,
44
+ locale
67
45
  };
46
+ const renderPrice = () => /*#__PURE__*/_react.default.createElement(_ui.Text, {
47
+ action: true
48
+ }, price.value ? (0, _locale.currencyFormat)({
49
+ ...priceProps,
50
+ value: price.value
51
+ }) : translate(_BookingTable2.L10N.LABEL_FREE));
52
+ const renderPriceSupport = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, price.previous && /*#__PURE__*/_react.default.createElement(_ui.Text, {
53
+ small: true,
54
+ className: (0, _ui.styles)(style.caption, style.lineThrough)
55
+ }, (0, _locale.currencyFormat)({
56
+ ...priceProps,
57
+ value: price.previous
58
+ })), price.description && /*#__PURE__*/_react.default.createElement(_ui.Text, {
59
+ small: true,
60
+ className: style.caption
61
+ }, price.description));
68
62
  return /*#__PURE__*/_react.default.createElement(_ui.View, _extends({}, others, {
69
63
  row: !isMobile,
70
64
  className: (0, _ui.styles)(style.row, others.className)
@@ -90,9 +84,7 @@ var Row = exports.Row = function Row(_ref) {
90
84
  pressable: true,
91
85
  right: !isMobile,
92
86
  text: description,
93
- onPress: function onPress() {
94
- return track("".concat(tracking, ":ACTION:DETAIL_MORE_INFO"));
95
- }
87
+ onPress: () => track("".concat(tracking, ":ACTION:DETAIL_MORE_INFO"))
96
88
  }, /*#__PURE__*/_react.default.createElement(_ui.Text, {
97
89
  small: true,
98
90
  className: (0, _ui.styles)(style.action, style.noPrint)
@@ -105,6 +97,7 @@ var Row = exports.Row = function Row(_ref) {
105
97
  className: style.price
106
98
  }, renderPrice(), renderPriceSupport()), children);
107
99
  };
100
+ exports.Row = Row;
108
101
  Row.displayName = 'Mirai:User:components:BookingTable.Row';
109
102
  Row.propTypes = {
110
103
  children: _propTypes.default.node,
@@ -1 +1 @@
1
- {"version":3,"file":"BookingTable.Row.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_BookingTable","_BookingTable2","style","_interopRequireWildcard","_excluded","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","enumerable","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","Row","exports","_ref","children","currency","title","description","_ref$price","price","subtitle","summary","tracking","others","_useDevice","useDevice","isMobile","_useLocale","useLocale","locale","translate","_useMetrics","useMetrics","track","priceProps","FORMAT_CURRENCY","renderPrice","createElement","Text","action","currencyFormat","L10N","LABEL_FREE","renderPriceSupport","Fragment","previous","small","className","styles","caption","lineThrough","View","row","wide","separator","Tooltip","pressable","right","text","onPress","concat","noPrint","ACTION_MORE_INFO","displayName","propTypes","PropTypes","node","string","shape","number","isRequired"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.Row.jsx"],"sourcesContent":["import { useMetrics } from '@mirai/data-sources';\nimport { currencyFormat, useLocale } from '@mirai/locale';\nimport { styles, Text, Tooltip, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { FORMAT_CURRENCY } from './BookingTable.constants';\nimport { L10N } from './BookingTable.l10n';\nimport * as style from './BookingTable.module.css';\n\nconst Row = ({ children, currency, title, description, price = {}, subtitle, summary, tracking, ...others }) => {\n const { isMobile } = useDevice();\n const { locale, translate } = useLocale();\n const { track } = useMetrics();\n\n const priceProps = { ...FORMAT_CURRENCY, currency, locale };\n\n const renderPrice = () => (\n <Text action>\n {price.value ? currencyFormat({ ...priceProps, value: price.value }) : translate(L10N.LABEL_FREE)}\n </Text>\n );\n\n const renderPriceSupport = () => (\n <>\n {price.previous && (\n <Text small className={styles(style.caption, style.lineThrough)}>\n {currencyFormat({ ...priceProps, value: price.previous })}\n </Text>\n )}\n {price.description && (\n <Text small className={style.caption}>\n {price.description}\n </Text>\n )}\n </>\n );\n\n return (\n <View {...others} row={!isMobile} className={styles(style.row, others.className)}>\n <View className={style.title}>\n <View row>\n <Text action className={style.wide}>\n {title}\n </Text>\n {isMobile && renderPrice()}\n </View>\n <View row className={style.subtitle}>\n <View row wide>\n {subtitle && <Text small>{subtitle}</Text>}\n {subtitle && description && (\n <Text small className={styles(style.caption, style.separator)}>\n -\n </Text>\n )}\n {description && (\n <Tooltip\n pressable\n right={!isMobile}\n text={description}\n onPress={() => track(`${tracking}:ACTION:DETAIL_MORE_INFO`)}\n >\n <Text small className={styles(style.action, style.noPrint)}>\n {translate(L10N.ACTION_MORE_INFO)}\n </Text>\n </Tooltip>\n )}\n </View>\n\n {isMobile && renderPriceSupport()}\n </View>\n </View>\n\n {summary && (\n <View className={style.summary}>\n <Text action={!isMobile} small={isMobile}>\n {summary}\n </Text>\n </View>\n )}\n\n {!isMobile && (\n <View className={style.price}>\n {renderPrice()}\n {renderPriceSupport()}\n </View>\n )}\n\n {children}\n </View>\n );\n};\n\nRow.displayName = 'Mirai:User:components:BookingTable.Row';\n\nRow.propTypes = {\n children: PropTypes.node,\n currency: PropTypes.string,\n description: PropTypes.string,\n price: PropTypes.shape({\n description: PropTypes.string,\n previous: PropTypes.number,\n value: PropTypes.number,\n }),\n summary: PropTypes.string,\n subtitle: PropTypes.string,\n title: PropTypes.string.isRequired,\n tracking: PropTypes.string,\n};\n\nexport { Row };\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAD,sBAAA,C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G,GAAA,CAAAuH,IAAI;IAACJ,SAAS,EAAE7G,KAAK,CAACiF;EAAM,GAC1BiB,WAAW,CAAC,CAAC,EACbO,kBAAkB,CAAC,CAChB,CACP,EAEA7B,QACG,CAAC;AAEX,CAAC;AAEDH,GAAG,CAACoD,WAAW,GAAG,wCAAwC;AAE1DpD,GAAG,CAACqD,SAAS,GAAG;EACdlD,QAAQ,EAAEmD,kBAAS,CAACC,IAAI;EACxBnD,QAAQ,EAAEkD,kBAAS,CAACE,MAAM;EAC1BlD,WAAW,EAAEgD,kBAAS,CAACE,MAAM;EAC7BhD,KAAK,EAAE8C,kBAAS,CAACG,KAAK,CAAC;IACrBnD,WAAW,EAAEgD,kBAAS,CAACE,MAAM;IAC7BtB,QAAQ,EAAEoB,kBAAS,CAACI,MAAM;IAC1BjF,KAAK,EAAE6E,kBAAS,CAACI;EACnB,CAAC,CAAC;EACFhD,OAAO,EAAE4C,kBAAS,CAACE,MAAM;EACzB/C,QAAQ,EAAE6C,kBAAS,CAACE,MAAM;EAC1BnD,KAAK,EAAEiD,kBAAS,CAACE,MAAM,CAACG,UAAU;EAClChD,QAAQ,EAAE2C,kBAAS,CAACE;AACtB,CAAC"}
1
+ {"version":3,"file":"BookingTable.Row.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_BookingTable","_BookingTable2","style","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Row","_ref","children","currency","title","description","price","subtitle","summary","tracking","others","isMobile","useDevice","locale","translate","useLocale","track","useMetrics","priceProps","FORMAT_CURRENCY","renderPrice","createElement","Text","action","value","currencyFormat","L10N","LABEL_FREE","renderPriceSupport","Fragment","previous","small","className","styles","caption","lineThrough","View","row","wide","separator","Tooltip","pressable","right","text","onPress","concat","noPrint","ACTION_MORE_INFO","exports","displayName","propTypes","PropTypes","node","string","shape","number","isRequired"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.Row.jsx"],"sourcesContent":["import { useMetrics } from '@mirai/data-sources';\nimport { currencyFormat, useLocale } from '@mirai/locale';\nimport { styles, Text, Tooltip, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { FORMAT_CURRENCY } from './BookingTable.constants';\nimport { L10N } from './BookingTable.l10n';\nimport * as style from './BookingTable.module.css';\n\nconst Row = ({ children, currency, title, description, price = {}, subtitle, summary, tracking, ...others }) => {\n const { isMobile } = useDevice();\n const { locale, translate } = useLocale();\n const { track } = useMetrics();\n\n const priceProps = { ...FORMAT_CURRENCY, currency, locale };\n\n const renderPrice = () => (\n <Text action>\n {price.value ? currencyFormat({ ...priceProps, value: price.value }) : translate(L10N.LABEL_FREE)}\n </Text>\n );\n\n const renderPriceSupport = () => (\n <>\n {price.previous && (\n <Text small className={styles(style.caption, style.lineThrough)}>\n {currencyFormat({ ...priceProps, value: price.previous })}\n </Text>\n )}\n {price.description && (\n <Text small className={style.caption}>\n {price.description}\n </Text>\n )}\n </>\n );\n\n return (\n <View {...others} row={!isMobile} className={styles(style.row, others.className)}>\n <View className={style.title}>\n <View row>\n <Text action className={style.wide}>\n {title}\n </Text>\n {isMobile && renderPrice()}\n </View>\n <View row className={style.subtitle}>\n <View row wide>\n {subtitle && <Text small>{subtitle}</Text>}\n {subtitle && description && (\n <Text small className={styles(style.caption, style.separator)}>\n -\n </Text>\n )}\n {description && (\n <Tooltip\n pressable\n right={!isMobile}\n text={description}\n onPress={() => track(`${tracking}:ACTION:DETAIL_MORE_INFO`)}\n >\n <Text small className={styles(style.action, style.noPrint)}>\n {translate(L10N.ACTION_MORE_INFO)}\n </Text>\n </Tooltip>\n )}\n </View>\n\n {isMobile && renderPriceSupport()}\n </View>\n </View>\n\n {summary && (\n <View className={style.summary}>\n <Text action={!isMobile} small={isMobile}>\n {summary}\n </Text>\n </View>\n )}\n\n {!isMobile && (\n <View className={style.price}>\n {renderPrice()}\n {renderPriceSupport()}\n </View>\n )}\n\n {children}\n </View>\n );\n};\n\nRow.displayName = 'Mirai:User:components:BookingTable.Row';\n\nRow.propTypes = {\n children: PropTypes.node,\n currency: PropTypes.string,\n description: PropTypes.string,\n price: PropTypes.shape({\n description: PropTypes.string,\n previous: PropTypes.number,\n value: PropTypes.number,\n }),\n summary: PropTypes.string,\n subtitle: PropTypes.string,\n title: PropTypes.string.isRequired,\n tracking: PropTypes.string,\n};\n\nexport { Row };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAEA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAC,uBAAA,CAAAT,OAAA;AAAmD,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAA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AM;EAC1BhD,WAAW,EAAE8C,kBAAS,CAACE,MAAM;EAC7B/C,KAAK,EAAE6C,kBAAS,CAACG,KAAK,CAAC;IACrBjD,WAAW,EAAE8C,kBAAS,CAACE,MAAM;IAC7BvB,QAAQ,EAAEqB,kBAAS,CAACI,MAAM;IAC1B/B,KAAK,EAAE2B,kBAAS,CAACI;EACnB,CAAC,CAAC;EACF/C,OAAO,EAAE2C,kBAAS,CAACE,MAAM;EACzB9C,QAAQ,EAAE4C,kBAAS,CAACE,MAAM;EAC1BjD,KAAK,EAAE+C,kBAAS,CAACE,MAAM,CAACG,UAAU;EAClC/C,QAAQ,EAAE0C,kBAAS,CAACE;AACtB,CAAC"}
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TRACKING = exports.FORMAT_DATE = exports.FORMAT_CURRENCY = void 0;
7
- var FORMAT_CURRENCY = exports.FORMAT_CURRENCY = {
7
+ const FORMAT_CURRENCY = exports.FORMAT_CURRENCY = {
8
8
  currency: 'EUR',
9
9
  symbol: true
10
10
  };
11
- var FORMAT_DATE = exports.FORMAT_DATE = {
11
+ const FORMAT_DATE = exports.FORMAT_DATE = {
12
12
  weekday: 'short',
13
13
  year: 'numeric',
14
14
  month: 'short',
15
15
  day: 'numeric'
16
16
  };
17
- var TRACKING = exports.TRACKING = 'BOOKING';
17
+ const TRACKING = exports.TRACKING = 'BOOKING';
18
18
  //# sourceMappingURL=BookingTable.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookingTable.constants.js","names":["FORMAT_CURRENCY","exports","currency","symbol","FORMAT_DATE","weekday","year","month","day","TRACKING"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.constants.js"],"sourcesContent":["const FORMAT_CURRENCY = { currency: 'EUR', symbol: true };\nconst FORMAT_DATE = { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' };\n\nconst TRACKING = 'BOOKING';\n\nexport { FORMAT_CURRENCY, FORMAT_DATE, TRACKING };\n"],"mappings":";;;;;;AAAA,IAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAAEE,QAAQ,EAAE,KAAK;EAAEC,MAAM,EAAE;AAAK,CAAC;AACzD,IAAMC,WAAW,GAAAH,OAAA,CAAAG,WAAA,GAAG;EAAEC,OAAO,EAAE,OAAO;EAAEC,IAAI,EAAE,SAAS;EAAEC,KAAK,EAAE,OAAO;EAAEC,GAAG,EAAE;AAAU,CAAC;AAEzF,IAAMC,QAAQ,GAAAR,OAAA,CAAAQ,QAAA,GAAG,SAAS"}
1
+ {"version":3,"file":"BookingTable.constants.js","names":["FORMAT_CURRENCY","exports","currency","symbol","FORMAT_DATE","weekday","year","month","day","TRACKING"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.constants.js"],"sourcesContent":["const FORMAT_CURRENCY = { currency: 'EUR', symbol: true };\nconst FORMAT_DATE = { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' };\n\nconst TRACKING = 'BOOKING';\n\nexport { FORMAT_CURRENCY, FORMAT_DATE, TRACKING };\n"],"mappings":";;;;;;AAAA,MAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAAEE,QAAQ,EAAE,KAAK;EAAEC,MAAM,EAAE;AAAK,CAAC;AACzD,MAAMC,WAAW,GAAAH,OAAA,CAAAG,WAAA,GAAG;EAAEC,OAAO,EAAE,OAAO;EAAEC,IAAI,EAAE,SAAS;EAAEC,KAAK,EAAE,OAAO;EAAEC,GAAG,EAAE;AAAU,CAAC;AAEzF,MAAMC,QAAQ,GAAAR,OAAA,CAAAQ,QAAA,GAAG,SAAS"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -14,49 +13,32 @@ var _BookingTable = require("./BookingTable.constants");
14
13
  var style = _interopRequireWildcard(require("./BookingTable.module.css"));
15
14
  var _BookingTable2 = require("./BookingTable.Row");
16
15
  var _ButtonMore = require("../ButtonMore");
17
- var _excluded = ["currency", "expanded", "dataSource", "label", "tracking"],
18
- _excluded2 = ["date", "title"];
19
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
- 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; }
24
- 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; }
25
- 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; }
26
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
- 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); }
28
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
30
- 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); }
31
- 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; }
32
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
33
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
34
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
35
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
36
- var UNEXPANDED_ITEMS = 3;
37
- var BookingTable = exports.BookingTable = function BookingTable(_ref) {
38
- var currency = _ref.currency,
39
- _ref$expanded = _ref.expanded,
40
- expanded = _ref$expanded === void 0 ? false : _ref$expanded,
41
- _ref$dataSource = _ref.dataSource,
42
- dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource,
43
- label = _ref.label,
44
- tracking = _ref.tracking,
45
- others = _objectWithoutProperties(_ref, _excluded);
46
- var _useDevice = (0, _ui.useDevice)(),
47
- isMobile = _useDevice.isMobile;
48
- var _useLocale = (0, _locale.useLocale)(),
49
- dateFormat = _useLocale.dateFormat;
50
- var _useMetrics = (0, _dataSources.useMetrics)(),
51
- track = _useMetrics.track;
52
- var _useState = (0, _react.useState)(dataSource.length <= UNEXPANDED_ITEMS),
53
- _useState2 = _slicedToArray(_useState, 2),
54
- expand = _useState2[0],
55
- setExpand = _useState2[1];
56
- (0, _react.useEffect)(function () {
57
- return setExpand(dataSource.length <= UNEXPANDED_ITEMS);
58
- }, [dataSource]);
59
- var handlePress = function handlePress() {
20
+ const UNEXPANDED_ITEMS = 3;
21
+ const BookingTable = _ref => {
22
+ let {
23
+ currency,
24
+ expanded = false,
25
+ dataSource = [],
26
+ label,
27
+ tracking,
28
+ ...others
29
+ } = _ref;
30
+ const {
31
+ isMobile
32
+ } = (0, _ui.useDevice)();
33
+ const {
34
+ dateFormat
35
+ } = (0, _locale.useLocale)();
36
+ const {
37
+ track
38
+ } = (0, _dataSources.useMetrics)();
39
+ const [expand, setExpand] = (0, _react.useState)(dataSource.length <= UNEXPANDED_ITEMS);
40
+ (0, _react.useEffect)(() => setExpand(dataSource.length <= UNEXPANDED_ITEMS), [dataSource]);
41
+ const handlePress = () => {
60
42
  track("".concat(tracking, ":ACTION:DETAIL_EXPAND"));
61
43
  setExpand(true);
62
44
  };
@@ -65,15 +47,15 @@ var BookingTable = exports.BookingTable = function BookingTable(_ref) {
65
47
  }), label && /*#__PURE__*/_react.default.createElement(_ui.Text, {
66
48
  action: isMobile,
67
49
  bold: true
68
- }, label), dataSource.slice(0, expanded || expand ? dataSource.length : UNEXPANDED_ITEMS).map(function (_ref2, index) {
69
- var date = _ref2.date,
70
- _ref2$title = _ref2.title,
71
- title = _ref2$title === void 0 ? '' : _ref2$title,
72
- item = _objectWithoutProperties(_ref2, _excluded2);
73
- return /*#__PURE__*/_react.default.createElement(_BookingTable2.Row, _extends({}, _objectSpread(_objectSpread({}, item), {}, {
74
- currency: currency,
75
- tracking: tracking
76
- }), {
50
+ }, label), dataSource.slice(0, expanded || expand ? dataSource.length : UNEXPANDED_ITEMS).map((_ref2, index) => {
51
+ let {
52
+ date,
53
+ title = '',
54
+ ...item
55
+ } = _ref2;
56
+ return /*#__PURE__*/_react.default.createElement(_BookingTable2.Row, _extends({}, item, {
57
+ currency,
58
+ tracking,
77
59
  title: date ? dateFormat((0, _locale.parseDate)(date), _BookingTable.FORMAT_DATE) : title,
78
60
  key: index
79
61
  }), !expanded && !expand && index === UNEXPANDED_ITEMS - 1 && /*#__PURE__*/_react.default.createElement(_ButtonMore.ButtonMore, {
@@ -82,6 +64,7 @@ var BookingTable = exports.BookingTable = function BookingTable(_ref) {
82
64
  }));
83
65
  })) : null;
84
66
  };
67
+ exports.BookingTable = BookingTable;
85
68
  BookingTable.displayName = 'Mirai:User:components.BookingTable';
86
69
  BookingTable.propTypes = {
87
70
  currency: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"BookingTable.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_BookingTable","style","_BookingTable2","_ButtonMore","_excluded","_excluded2","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","enumerable","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_slicedToArray","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","arr2","l","iterator","u","a","f","next","done","return","isArray","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","UNEXPANDED_ITEMS","BookingTable","exports","_ref","currency","_ref$expanded","expanded","_ref$dataSource","dataSource","label","tracking","others","_useDevice","useDevice","isMobile","_useLocale","useLocale","dateFormat","_useMetrics","useMetrics","track","_useState","useState","_useState2","expand","setExpand","useEffect","handlePress","concat","createElement","View","className","styles","table","collapsed","Text","action","bold","map","_ref2","index","date","_ref2$title","title","item","Row","parseDate","FORMAT_DATE","ButtonMore","onPress","buttonMore","displayName","propTypes","PropTypes","string","arrayOf","shape","bool"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.jsx"],"sourcesContent":["import { useMetrics } from '@mirai/data-sources';\nimport { parseDate, useLocale } from '@mirai/locale';\nimport { styles, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { FORMAT_DATE } from './BookingTable.constants';\nimport * as style from './BookingTable.module.css';\nimport { Row } from './BookingTable.Row';\nimport { ButtonMore } from '../ButtonMore';\n\nconst UNEXPANDED_ITEMS = 3;\n\nconst BookingTable = ({ currency, expanded = false, dataSource = [], label, tracking, ...others }) => {\n const { isMobile } = useDevice();\n const { dateFormat } = useLocale();\n const { track } = useMetrics();\n\n const [expand, setExpand] = useState(dataSource.length <= UNEXPANDED_ITEMS);\n\n useEffect(() => setExpand(dataSource.length <= UNEXPANDED_ITEMS), [dataSource]);\n\n const handlePress = () => {\n track(`${tracking}:ACTION:DETAIL_EXPAND`);\n setExpand(true);\n };\n\n return dataSource.length > 0 ? (\n <View {...others} className={styles(style.table, !expand && style.collapsed, others.className)}>\n {label && (\n <Text action={isMobile} bold>\n {label}\n </Text>\n )}\n {dataSource\n .slice(0, expanded || expand ? dataSource.length : UNEXPANDED_ITEMS)\n .map(({ date, title = '', ...item }, index) => (\n <Row\n {...{ ...item, currency, tracking }}\n title={date ? dateFormat(parseDate(date), FORMAT_DATE) : title}\n key={index}\n >\n {!expanded && !expand && index === UNEXPANDED_ITEMS - 1 && (\n <ButtonMore onPress={handlePress} className={style.buttonMore} />\n )}\n </Row>\n ))}\n </View>\n ) : null;\n};\n\nBookingTable.displayName = 'Mirai:User:components.BookingTable';\n\nBookingTable.propTypes = {\n currency: PropTypes.string,\n dataSource: PropTypes.arrayOf(PropTypes.shape({})),\n expanded: PropTypes.bool,\n label: PropTypes.string,\n tracking: PropTypes.string,\n};\n\nexport { BookingTable };\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAF,uBAAA,CAAAN,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAA2C,IAAAW,SAAA;EAAAC,UAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAA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AAC;AAEDjD,YAAY,CAACkD,WAAW,GAAG,oCAAoC;AAE/DlD,YAAY,CAACmD,SAAS,GAAG;EACvBhD,QAAQ,EAAEiD,kBAAS,CAACC,MAAM;EAC1B9C,UAAU,EAAE6C,kBAAS,CAACE,OAAO,CAACF,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAClDlD,QAAQ,EAAE+C,kBAAS,CAACI,IAAI;EACxBhD,KAAK,EAAE4C,kBAAS,CAACC,MAAM;EACvB5C,QAAQ,EAAE2C,kBAAS,CAACC;AACtB,CAAC"}
1
+ {"version":3,"file":"BookingTable.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_BookingTable","style","_BookingTable2","_ButtonMore","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","UNEXPANDED_ITEMS","BookingTable","_ref","currency","expanded","dataSource","label","tracking","others","isMobile","useDevice","dateFormat","useLocale","track","useMetrics","expand","setExpand","useState","useEffect","handlePress","concat","createElement","View","className","styles","table","collapsed","Text","action","bold","slice","map","_ref2","index","date","title","item","Row","parseDate","FORMAT_DATE","ButtonMore","onPress","buttonMore","exports","displayName","propTypes","PropTypes","string","arrayOf","shape","bool"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.jsx"],"sourcesContent":["import { useMetrics } from '@mirai/data-sources';\nimport { parseDate, useLocale } from '@mirai/locale';\nimport { styles, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { FORMAT_DATE } from './BookingTable.constants';\nimport * as style from './BookingTable.module.css';\nimport { Row } from './BookingTable.Row';\nimport { ButtonMore } from '../ButtonMore';\n\nconst UNEXPANDED_ITEMS = 3;\n\nconst BookingTable = ({ currency, expanded = false, dataSource = [], label, tracking, ...others }) => {\n const { isMobile } = useDevice();\n const { dateFormat } = useLocale();\n const { track } = useMetrics();\n\n const [expand, setExpand] = useState(dataSource.length <= UNEXPANDED_ITEMS);\n\n useEffect(() => setExpand(dataSource.length <= UNEXPANDED_ITEMS), [dataSource]);\n\n const handlePress = () => {\n track(`${tracking}:ACTION:DETAIL_EXPAND`);\n setExpand(true);\n };\n\n return dataSource.length > 0 ? (\n <View {...others} className={styles(style.table, !expand && style.collapsed, others.className)}>\n {label && (\n <Text action={isMobile} bold>\n {label}\n </Text>\n )}\n {dataSource\n .slice(0, expanded || expand ? dataSource.length : UNEXPANDED_ITEMS)\n .map(({ date, title = '', ...item }, index) => (\n <Row\n {...{ ...item, currency, tracking }}\n title={date ? dateFormat(parseDate(date), FORMAT_DATE) : title}\n key={index}\n >\n {!expanded && !expand && index === UNEXPANDED_ITEMS - 1 && (\n <ButtonMore onPress={handlePress} className={style.buttonMore} />\n )}\n </Row>\n ))}\n </View>\n ) : null;\n};\n\nBookingTable.displayName = 'Mirai:User:components.BookingTable';\n\nBookingTable.propTypes = {\n currency: PropTypes.string,\n dataSource: PropTypes.arrayOf(PropTypes.shape({})),\n expanded: PropTypes.bool,\n label: PropTypes.string,\n tracking: PropTypes.string,\n};\n\nexport { BookingTable };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAF,uBAAA,CAAAN,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAA2C,SAAAW,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,Y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GAAG;EACvB1C,QAAQ,EAAE2C,kBAAS,CAACC,MAAM;EAC1B1C,UAAU,EAAEyC,kBAAS,CAACE,OAAO,CAACF,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAClD7C,QAAQ,EAAE0C,kBAAS,CAACI,IAAI;EACxB5C,KAAK,EAAEwC,kBAAS,CAACC,MAAM;EACvBxC,QAAQ,EAAEuC,kBAAS,CAACC;AACtB,CAAC"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.L10N = void 0;
7
- var L10N = exports.L10N = {
7
+ const L10N = exports.L10N = {
8
8
  LABEL_FREE: {
9
9
  id: 'common.label.free'
10
10
  },
@@ -1 +1 @@
1
- {"version":3,"file":"BookingTable.l10n.js","names":["L10N","exports","LABEL_FREE","id","ACTION_MORE_INFO"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_FREE: { id: 'common.label.free' },\n ACTION_MORE_INFO: { id: 'common.action.more_info' },\n};\n"],"mappings":";;;;;;AAAO,IAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,UAAU,EAAE;IAAEC,EAAE,EAAE;EAAoB,CAAC;EACvCC,gBAAgB,EAAE;IAAED,EAAE,EAAE;EAA0B;AACpD,CAAC"}
1
+ {"version":3,"file":"BookingTable.l10n.js","names":["L10N","exports","LABEL_FREE","id","ACTION_MORE_INFO"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_FREE: { id: 'common.label.free' },\n ACTION_MORE_INFO: { id: 'common.action.more_info' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,UAAU,EAAE;IAAEC,EAAE,EAAE;EAAoB,CAAC;EACvCC,gBAAgB,EAAE;IAAED,EAAE,EAAE;EAA0B;AACpD,CAAC"}
@@ -9,7 +9,7 @@ Object.keys(_BookingTable).forEach(function (key) {
9
9
  if (key in exports && exports[key] === _BookingTable[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
- get: function get() {
12
+ get: function () {
13
13
  return _BookingTable[key];
14
14
  }
15
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_BookingTable","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/BookingTable/index.js"],"sourcesContent":["export * from './BookingTable';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_BookingTable","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/BookingTable/index.js"],"sourcesContent":["export * from './BookingTable';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -12,22 +11,23 @@ var _react = _interopRequireDefault(require("react"));
12
11
  var _ButtonMore = require("./ButtonMore.l10n");
13
12
  var style = _interopRequireWildcard(require("./ButtonMore.module.css"));
14
13
  var _helpers = require("../../helpers");
15
- var _excluded = ["text", "onPress"],
16
- _excluded2 = ["testId"];
17
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
17
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
- 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; }
22
- 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; }
23
- var ButtonMore = exports.ButtonMore = function ButtonMore(_ref) {
24
- var text = _ref.text,
25
- onPress = _ref.onPress,
26
- others = _objectWithoutProperties(_ref, _excluded);
27
- var _useLocale = (0, _locale.useLocale)(),
28
- translate = _useLocale.translate;
29
- var testId = others.testId,
30
- rest = _objectWithoutProperties(others, _excluded2);
18
+ const ButtonMore = _ref => {
19
+ let {
20
+ text,
21
+ onPress,
22
+ ...others
23
+ } = _ref;
24
+ const {
25
+ translate
26
+ } = (0, _locale.useLocale)();
27
+ const {
28
+ testId,
29
+ ...rest
30
+ } = others;
31
31
  return /*#__PURE__*/_react.default.createElement(_ui.View, _extends({}, rest, {
32
32
  wide: true,
33
33
  className: (0, _ui.styles)(style.container, others.className)
@@ -40,6 +40,7 @@ var ButtonMore = exports.ButtonMore = function ButtonMore(_ref) {
40
40
  value: _helpers.ICON.EXPAND_MORE
41
41
  }), text || translate(_ButtonMore.L10N.ACTION_VIEW_MORE)));
42
42
  };
43
+ exports.ButtonMore = ButtonMore;
43
44
  ButtonMore.displayName = 'Mirai:User:components.ButtonMore';
44
45
  ButtonMore.propTypes = {
45
46
  text: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonMore.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_ButtonMore","style","_interopRequireWildcard","_helpers","_excluded","_excluded2","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","keys","ButtonMore","exports","_ref","text","onPress","others","_useLocale","useLocale","translate","testId","rest","createElement","View","wide","className","styles","container","Button","secondary","small","Icon","value","ICON","EXPAND_MORE","L10N","ACTION_VIEW_MORE","displayName","propTypes","PropTypes","string","func"],"sources":["../../../../src/components/__shared__/ButtonMore/ButtonMore.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Icon, styles, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './ButtonMore.l10n';\nimport * as style from './ButtonMore.module.css';\nimport { ICON } from '../../helpers';\n\nconst ButtonMore = ({ text, onPress, ...others }) => {\n const { translate } = useLocale();\n\n const { testId, ...rest } = others;\n\n return (\n <View {...rest} wide className={styles(style.container, others.className)}>\n <Button secondary small onPress={onPress} testId={testId}>\n <Icon value={ICON.EXPAND_MORE} />\n {text || translate(L10N.ACTION_VIEW_MORE)}\n </Button>\n </View>\n );\n};\n\nButtonMore.displayName = 'Mirai:User:components.ButtonMore';\n\nButtonMore.propTypes = {\n text: PropTypes.string,\n onPress: PropTypes.func,\n};\n\nexport { ButtonMore };\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAC,uBAAA,CAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAqC,IAAAS,SAAA;EAAAC,UAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,4BAAAG,OAAA,EAAAH,GAAA,UAAAI,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAL,GAAA,YAAAI,KAAA,CAAAE,GAAA,CAAAN,GAAA,SAAAO,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAZ,GAAA,QAAAY,GAAA,kBAAAH,M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IAAAC,UAAM,EAAC7D,KAAK,CAAC8D,SAAS,EAAEX,MAAM,CAACS,SAAS;EAAE,iBACxE9D,MAAA,CAAAe,OAAA,CAAA4C,aAAA,CAAC9D,GAAA,CAAAoE,MAAM;IAACC,SAAS;IAACC,KAAK;IAACf,OAAO,EAAEA,OAAQ;IAACK,MAAM,EAAEA;EAAO,gBACvDzD,MAAA,CAAAe,OAAA,CAAA4C,aAAA,CAAC9D,GAAA,CAAAuE,IAAI;IAACC,KAAK,EAAEC,aAAI,CAACC;EAAY,CAAE,CAAC,EAChCpB,IAAI,IAAIK,SAAS,CAACgB,gBAAI,CAACC,gBAAgB,CAClC,CACJ,CAAC;AAEX,CAAC;AAEDzB,UAAU,CAAC0B,WAAW,GAAG,kCAAkC;AAE3D1B,UAAU,CAAC2B,SAAS,GAAG;EACrBxB,IAAI,EAAEyB,kBAAS,CAACC,MAAM;EACtBzB,OAAO,EAAEwB,kBAAS,CAACE;AACrB,CAAC"}
1
+ {"version":3,"file":"ButtonMore.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_ButtonMore","style","_interopRequireWildcard","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","ButtonMore","_ref","text","onPress","others","translate","useLocale","testId","rest","createElement","View","wide","className","styles","container","Button","secondary","small","Icon","value","ICON","EXPAND_MORE","L10N","ACTION_VIEW_MORE","exports","displayName","propTypes","PropTypes","string","func"],"sources":["../../../../src/components/__shared__/ButtonMore/ButtonMore.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Icon, styles, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './ButtonMore.l10n';\nimport * as style from './ButtonMore.module.css';\nimport { ICON } from '../../helpers';\n\nconst ButtonMore = ({ text, onPress, ...others }) => {\n const { translate } = useLocale();\n\n const { testId, ...rest } = others;\n\n return (\n <View {...rest} wide className={styles(style.container, others.className)}>\n <Button secondary small onPress={onPress} testId={testId}>\n <Icon value={ICON.EXPAND_MORE} />\n {text || translate(L10N.ACTION_VIEW_MORE)}\n </Button>\n </View>\n );\n};\n\nButtonMore.displayName = 'Mirai:User:components.ButtonMore';\n\nButtonMore.propTypes = {\n text: PropTypes.string,\n onPress: PropTypes.func,\n};\n\nexport { ButtonMore };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAC,uBAAA,CAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAqC,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SA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AGJ,MAAM;EAElC,oBACExC,MAAA,CAAAW,OAAA,CAAAkC,aAAA,CAAChD,GAAA,CAAAiD,IAAI,EAAAnB,QAAA,KAAKiB,IAAI;IAAEG,IAAI;IAACC,SAAS,EAAE,IAAAC,UAAM,EAAC/C,KAAK,CAACgD,SAAS,EAAEV,MAAM,CAACQ,SAAS;EAAE,iBACxEhD,MAAA,CAAAW,OAAA,CAAAkC,aAAA,CAAChD,GAAA,CAAAsD,MAAM;IAACC,SAAS;IAACC,KAAK;IAACd,OAAO,EAAEA,OAAQ;IAACI,MAAM,EAAEA;EAAO,gBACvD3C,MAAA,CAAAW,OAAA,CAAAkC,aAAA,CAAChD,GAAA,CAAAyD,IAAI;IAACC,KAAK,EAAEC,aAAI,CAACC;EAAY,CAAE,CAAC,EAChCnB,IAAI,IAAIG,SAAS,CAACiB,gBAAI,CAACC,gBAAgB,CAClC,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAxB,UAAA,GAAAA,UAAA;AAEFA,UAAU,CAACyB,WAAW,GAAG,kCAAkC;AAE3DzB,UAAU,CAAC0B,SAAS,GAAG;EACrBxB,IAAI,EAAEyB,kBAAS,CAACC,MAAM;EACtBzB,OAAO,EAAEwB,kBAAS,CAACE;AACrB,CAAC"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.L10N = void 0;
7
- var L10N = exports.L10N = {
7
+ const L10N = exports.L10N = {
8
8
  ACTION_VIEW_MORE: {
9
9
  id: 'common.action.view_more'
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonMore.l10n.js","names":["L10N","exports","ACTION_VIEW_MORE","id"],"sources":["../../../../src/components/__shared__/ButtonMore/ButtonMore.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_VIEW_MORE: { id: 'common.action.view_more' },\n};\n"],"mappings":";;;;;;AAAO,IAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,gBAAgB,EAAE;IAAEC,EAAE,EAAE;EAA0B;AACpD,CAAC"}
1
+ {"version":3,"file":"ButtonMore.l10n.js","names":["L10N","exports","ACTION_VIEW_MORE","id"],"sources":["../../../../src/components/__shared__/ButtonMore/ButtonMore.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_VIEW_MORE: { id: 'common.action.view_more' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,gBAAgB,EAAE;IAAEC,EAAE,EAAE;EAA0B;AACpD,CAAC"}
@@ -26,7 +26,7 @@ exports[`component:<ButtonMore> inherit:className 1`] = `
26
26
  opacity=".87"
27
27
  />
28
28
  <path
29
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
29
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
30
30
  />
31
31
  </svg>
32
32
  </span>
@@ -62,7 +62,7 @@ exports[`component:<ButtonMore> renders 1`] = `
62
62
  opacity=".87"
63
63
  />
64
64
  <path
65
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
65
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
66
66
  />
67
67
  </svg>
68
68
  </span>
@@ -99,7 +99,7 @@ exports[`component:<ButtonMore> testID 1`] = `
99
99
  opacity=".87"
100
100
  />
101
101
  <path
102
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
102
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
103
103
  />
104
104
  </svg>
105
105
  </span>
@@ -9,7 +9,7 @@ Object.keys(_ButtonMore).forEach(function (key) {
9
9
  if (key in exports && exports[key] === _ButtonMore[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
- get: function get() {
12
+ get: function () {
13
13
  return _ButtonMore[key];
14
14
  }
15
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_ButtonMore","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/ButtonMore/index.js"],"sourcesContent":["export * from './ButtonMore';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_ButtonMore","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/ButtonMore/index.js"],"sourcesContent":["export * from './ButtonMore';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}