@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
  });
@@ -15,41 +14,34 @@ var _Session2 = require("./Session.l10n");
15
14
  var _SessionLogin = require("./Session.Login.Modal");
16
15
  var style = _interopRequireWildcard(require("./Session.module.css"));
17
16
  var _helpers = require("../helpers");
18
- var _excluded = ["ghost"];
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; }
17
+ 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); }
18
+ 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
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
20
  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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
24
- 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."); }
25
- 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); }
26
- 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; }
27
- 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; } }
28
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
- 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; }
30
- 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; }
31
- var Login = exports.Login = function Login(_ref) {
32
- var ghost = _ref.ghost,
33
- others = _objectWithoutProperties(_ref, _excluded);
34
- var _useLocale = (0, _locale.useLocale)(),
35
- translate = _useLocale.translate;
36
- var _useStore = (0, _dataSources.useStore)(),
37
- _useStore$value = _useStore.value,
38
- _useStore$value$club = _useStore$value.club,
39
- club = _useStore$value$club === void 0 ? {} : _useStore$value$club,
40
- id = _useStore$value.id,
41
- language = _useStore$value.language;
42
- var _useState = (0, _react.useState)(false),
43
- _useState2 = _slicedToArray(_useState, 2),
44
- modal = _useState2[0],
45
- setModal = _useState2[1];
46
- var handlePress = function handlePress() {
47
- var _club$authentication = club.authentication,
48
- _club$authentication2 = _club$authentication === void 0 ? {} : _club$authentication,
49
- _club$authentication3 = _club$authentication2.type,
50
- type = _club$authentication3 === void 0 ? _Session.AUTH_TYPE.MIRAI : _club$authentication3;
21
+ const Login = _ref => {
22
+ let {
23
+ ghost,
24
+ ...others
25
+ } = _ref;
26
+ const {
27
+ translate
28
+ } = (0, _locale.useLocale)();
29
+ const {
30
+ value: {
31
+ club = {},
32
+ id,
33
+ language
34
+ }
35
+ } = (0, _dataSources.useStore)();
36
+ const [modal, setModal] = (0, _react.useState)(false);
37
+ const handlePress = () => {
38
+ const {
39
+ authentication: {
40
+ type = _Session.AUTH_TYPE.MIRAI
41
+ } = {}
42
+ } = club;
51
43
  if (type === _Session.AUTH_TYPE.MIRAI) return setModal(true);
52
- var url = "".concat(process.env.SERVICE_USER, "/").concat(_Session.ENDPOINT.EXTERNAL_LOGIN).concat((0, _helpers.toUrlParams)({
44
+ const url = "".concat(process.env.SERVICE_USER, "/").concat(_Session.ENDPOINT.EXTERNAL_LOGIN).concat((0, _helpers.toUrlParams)({
53
45
  idtokenprovider: id,
54
46
  domain: document.location.href,
55
47
  lang: language
@@ -73,11 +65,10 @@ var Login = exports.Login = function Login(_ref) {
73
65
  className: style.label
74
66
  }, translate(_Session2.L10N.ACTION_MODAL))) : undefined), /*#__PURE__*/_react.default.createElement(_SessionLogin.Modal, _extends({}, others, {
75
67
  visible: modal,
76
- onClose: function onClose() {
77
- return setModal(false);
78
- }
68
+ onClose: () => setModal(false)
79
69
  })));
80
70
  };
71
+ exports.Login = Login;
81
72
  Login.displayName = 'Mirai:User:Session:Login';
82
73
  Login.propTypes = {
83
74
  ghost: _propTypes.default.any
@@ -1 +1 @@
1
- {"version":3,"file":"Session.Login.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Session","_Session2","_SessionLogin","style","_helpers","_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","_slicedToArray","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","arr2","r","l","t","Symbol","iterator","e","u","a","f","next","done","push","value","return","isArray","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","keys","Login","exports","_ref","ghost","others","_useLocale","useLocale","translate","_useStore","useStore","_useStore$value","_useStore$value$club","club","id","language","_useState","useState","_useState2","modal","setModal","handlePress","_club$authentication","authentication","_club$authentication2","_club$authentication3","type","AUTH_TYPE","MIRAI","url","concat","process","env","SERVICE_USER","ENDPOINT","EXTERNAL_LOGIN","toUrlParams","idtokenprovider","domain","document","location","href","lang","createElement","Fragment","Pressable","role","onPress","dangerouslySetInnerHTML","__html","outerHTML","undefined","View","row","Icon","ICON","ACCOUNT","className","icon","Text","label","L10N","ACTION_MODAL","Modal","visible","onClose","displayName","propTypes","PropTypes","any"],"sources":["../../../src/components/Session/Session.Login.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { Icon, Pressable, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { AUTH_TYPE, ENDPOINT } from './Session.constants';\nimport { L10N } from './Session.l10n';\nimport { Modal } from './Session.Login.Modal';\nimport * as style from './Session.module.css';\nimport { ICON, toUrlParams } from '../helpers';\n\nconst Login = ({ ghost, ...others }) => {\n const { translate } = useLocale();\n const {\n value: { club = {}, id, language },\n } = useStore();\n\n const [modal, setModal] = useState(false);\n\n const handlePress = () => {\n const { authentication: { type = AUTH_TYPE.MIRAI } = {} } = club;\n if (type === AUTH_TYPE.MIRAI) return setModal(true);\n\n const url = `${process.env.SERVICE_USER}/${ENDPOINT.EXTERNAL_LOGIN}${toUrlParams({\n idtokenprovider: id,\n domain: document.location.href,\n lang: language,\n })}`;\n document.location.href = url;\n };\n\n return (\n <>\n <Pressable\n role=\"login\"\n onPress={handlePress}\n dangerouslySetInnerHTML={ghost ? { __html: ghost.outerHTML } : undefined}\n >\n {!ghost ? (\n <View row>\n <Icon role=\"content\" value={ICON.ACCOUNT} className={style.icon} />\n <Text role=\"content\" className={style.label}>\n {translate(L10N.ACTION_MODAL)}\n </Text>\n </View>\n ) : undefined}\n </Pressable>\n\n <Modal {...others} visible={modal} onClose={() => setModal(false)} />\n </>\n );\n};\n\nLogin.displayName = 'Mirai:User:Session:Login';\n\nLogin.propTypes = {\n ghost: PropTypes.any,\n};\n\nexport { Login };\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,QAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA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,IAAI,EAAC,OAAO;IACZC,OAAO,EAAE1B,WAAY;IACrB2B,uBAAuB,EAAE5C,KAAK,GAAG;MAAE6C,MAAM,EAAE7C,KAAK,CAAC8C;IAAU,CAAC,GAAGC;EAAU,GAExE,CAAC/C,KAAK,gBACLvF,MAAA,CAAAgB,OAAA,CAAA8G,aAAA,CAACjI,GAAA,CAAA0I,IAAI;IAACC,GAAG;EAAA,gBACPxI,MAAA,CAAAgB,OAAA,CAAA8G,aAAA,CAACjI,GAAA,CAAA4I,IAAI;IAACR,IAAI,EAAC,SAAS;IAACzD,KAAK,EAAEkE,aAAI,CAACC,OAAQ;IAACC,SAAS,EAAEvI,KAAK,CAACwI;EAAK,CAAE,CAAC,eACnE7I,MAAA,CAAAgB,OAAA,CAAA8G,aAAA,CAACjI,GAAA,CAAAiJ,IAAI;IAACb,IAAI,EAAC,SAAS;IAACW,SAAS,EAAEvI,KAAK,CAAC0I;EAAM,GACzCpD,SAAS,CAACqD,cAAI,CAACC,YAAY,CACxB,CACF,CAAC,GACLX,SACK,CAAC,eAEZtI,MAAA,CAAAgB,OAAA,CAAA8G,aAAA,CAAC1H,aAAA,CAAA8I,KAAK,EAAAnH,QAAA,KAAKyD,MAAM;IAAE2D,OAAO,EAAE7C,KAAM;IAAC8C,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAM7C,QAAQ,CAAC,KAAK,CAAC;IAAA;EAAC,EAAE,CACpE,CAAC;AAEP,CAAC;AAEDnB,KAAK,CAACiE,WAAW,GAAG,0BAA0B;AAE9CjE,KAAK,CAACkE,SAAS,GAAG;EAChB/D,KAAK,EAAEgE,kBAAS,CAACC;AACnB,CAAC"}
1
+ {"version":3,"file":"Session.Login.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Session","_Session2","_SessionLogin","style","_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","Login","_ref","ghost","others","translate","useLocale","value","club","id","language","useStore","modal","setModal","useState","handlePress","authentication","type","AUTH_TYPE","MIRAI","url","concat","process","env","SERVICE_USER","ENDPOINT","EXTERNAL_LOGIN","toUrlParams","idtokenprovider","domain","document","location","href","lang","createElement","Fragment","Pressable","role","onPress","dangerouslySetInnerHTML","__html","outerHTML","undefined","View","row","Icon","ICON","ACCOUNT","className","icon","Text","label","L10N","ACTION_MODAL","Modal","visible","onClose","exports","displayName","propTypes","PropTypes","any"],"sources":["../../../src/components/Session/Session.Login.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { Icon, Pressable, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { AUTH_TYPE, ENDPOINT } from './Session.constants';\nimport { L10N } from './Session.l10n';\nimport { Modal } from './Session.Login.Modal';\nimport * as style from './Session.module.css';\nimport { ICON, toUrlParams } from '../helpers';\n\nconst Login = ({ ghost, ...others }) => {\n const { translate } = useLocale();\n const {\n value: { club = {}, id, language },\n } = useStore();\n\n const [modal, setModal] = useState(false);\n\n const handlePress = () => {\n const { authentication: { type = AUTH_TYPE.MIRAI } = {} } = club;\n if (type === AUTH_TYPE.MIRAI) return setModal(true);\n\n const url = `${process.env.SERVICE_USER}/${ENDPOINT.EXTERNAL_LOGIN}${toUrlParams({\n idtokenprovider: id,\n domain: document.location.href,\n lang: language,\n })}`;\n document.location.href = url;\n };\n\n return (\n <>\n <Pressable\n role=\"login\"\n onPress={handlePress}\n dangerouslySetInnerHTML={ghost ? { __html: ghost.outerHTML } : undefined}\n >\n {!ghost ? (\n <View row>\n <Icon role=\"content\" value={ICON.ACCOUNT} className={style.icon} />\n <Text role=\"content\" className={style.label}>\n {translate(L10N.ACTION_MODAL)}\n </Text>\n </View>\n ) : undefined}\n </Pressable>\n\n <Modal {...others} visible={modal} onCl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EAAK,CAAE,CAAC,eACnEtF,MAAA,CAAAa,OAAA,CAAA0D,aAAA,CAAC1E,GAAA,CAAA0F,IAAI;IAACb,IAAI,EAAC,SAAS;IAACW,SAAS,EAAEhF,KAAK,CAACmF;EAAM,GACzC9C,SAAS,CAAC+C,cAAI,CAACC,YAAY,CACxB,CACF,CAAC,GACLX,SACK,CAAC,eAEZ/E,MAAA,CAAAa,OAAA,CAAA0D,aAAA,CAACnE,aAAA,CAAAuF,KAAK,EAAA9D,QAAA,KAAKY,MAAM;IAAEmD,OAAO,EAAE3C,KAAM;IAAC4C,OAAO,EAAEA,CAAA,KAAM3C,QAAQ,CAAC,KAAK;EAAE,EAAE,CACpE,CAAC;AAEP,CAAC;AAAC4C,OAAA,CAAAxD,KAAA,GAAAA,KAAA;AAEFA,KAAK,CAACyD,WAAW,GAAG,0BAA0B;AAE9CzD,KAAK,CAAC0D,SAAS,GAAG;EAChBxD,KAAK,EAAEyD,kBAAS,CAACC;AACnB,CAAC"}
@@ -4,23 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.URL_PARAMS = exports.TRACKING = exports.MODE = exports.ENDPOINT = exports.AUTH_TYPE = void 0;
7
- var AUTH_TYPE = exports.AUTH_TYPE = {
7
+ const AUTH_TYPE = exports.AUTH_TYPE = {
8
8
  MIRAI: 1,
9
9
  PESTANA: 3
10
10
  };
11
- var ENDPOINT = exports.ENDPOINT = {
11
+ const ENDPOINT = exports.ENDPOINT = {
12
12
  EXTERNAL_LOGIN: 'club/v1/forwarder/login',
13
13
  EXTERNAL_LOGOUT: 'club/v1/forwarder/logout',
14
14
  PROFILE: 'club/v1/forwarder/members_area',
15
15
  SIGNUP: 'club/v1/forwarder/registration_process'
16
16
  };
17
- var MODE = exports.MODE = {
17
+ const MODE = exports.MODE = {
18
18
  ACTIVATE: 'ACTIVATE',
19
19
  ACTIVATE_ERROR: 'ACTIVATE_ERROR',
20
20
  FINISH_SIGNUP: 'FINISH_SIGNUP'
21
21
  };
22
- var TRACKING = exports.TRACKING = 'SESSION';
23
- var URL_PARAMS = exports.URL_PARAMS = {
22
+ const TRACKING = exports.TRACKING = 'SESSION';
23
+ const URL_PARAMS = exports.URL_PARAMS = {
24
24
  login: [MODE.FINISH_SIGNUP]
25
25
  };
26
26
  //# sourceMappingURL=Session.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Session.constants.js","names":["AUTH_TYPE","exports","MIRAI","PESTANA","ENDPOINT","EXTERNAL_LOGIN","EXTERNAL_LOGOUT","PROFILE","SIGNUP","MODE","ACTIVATE","ACTIVATE_ERROR","FINISH_SIGNUP","TRACKING","URL_PARAMS","login"],"sources":["../../../src/components/Session/Session.constants.js"],"sourcesContent":["const AUTH_TYPE = {\n MIRAI: 1,\n PESTANA: 3,\n};\n\nconst ENDPOINT = {\n EXTERNAL_LOGIN: 'club/v1/forwarder/login',\n EXTERNAL_LOGOUT: 'club/v1/forwarder/logout',\n PROFILE: 'club/v1/forwarder/members_area',\n SIGNUP: 'club/v1/forwarder/registration_process',\n};\n\nconst MODE = {\n ACTIVATE: 'ACTIVATE',\n ACTIVATE_ERROR: 'ACTIVATE_ERROR',\n FINISH_SIGNUP: 'FINISH_SIGNUP',\n};\n\nconst TRACKING = 'SESSION';\n\nconst URL_PARAMS = {\n login: [MODE.FINISH_SIGNUP],\n};\n\nexport { AUTH_TYPE, ENDPOINT, MODE, TRACKING, URL_PARAMS };\n"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG;EAChBE,KAAK,EAAE,CAAC;EACRC,OAAO,EAAE;AACX,CAAC;AAED,IAAMC,QAAQ,GAAAH,OAAA,CAAAG,QAAA,GAAG;EACfC,cAAc,EAAE,yBAAyB;EACzCC,eAAe,EAAE,0BAA0B;EAC3CC,OAAO,EAAE,gCAAgC;EACzCC,MAAM,EAAE;AACV,CAAC;AAED,IAAMC,IAAI,GAAAR,OAAA,CAAAQ,IAAA,GAAG;EACXC,QAAQ,EAAE,UAAU;EACpBC,cAAc,EAAE,gBAAgB;EAChCC,aAAa,EAAE;AACjB,CAAC;AAED,IAAMC,QAAQ,GAAAZ,OAAA,CAAAY,QAAA,GAAG,SAAS;AAE1B,IAAMC,UAAU,GAAAb,OAAA,CAAAa,UAAA,GAAG;EACjBC,KAAK,EAAE,CAACN,IAAI,CAACG,aAAa;AAC5B,CAAC"}
1
+ {"version":3,"file":"Session.constants.js","names":["AUTH_TYPE","exports","MIRAI","PESTANA","ENDPOINT","EXTERNAL_LOGIN","EXTERNAL_LOGOUT","PROFILE","SIGNUP","MODE","ACTIVATE","ACTIVATE_ERROR","FINISH_SIGNUP","TRACKING","URL_PARAMS","login"],"sources":["../../../src/components/Session/Session.constants.js"],"sourcesContent":["const AUTH_TYPE = {\n MIRAI: 1,\n PESTANA: 3,\n};\n\nconst ENDPOINT = {\n EXTERNAL_LOGIN: 'club/v1/forwarder/login',\n EXTERNAL_LOGOUT: 'club/v1/forwarder/logout',\n PROFILE: 'club/v1/forwarder/members_area',\n SIGNUP: 'club/v1/forwarder/registration_process',\n};\n\nconst MODE = {\n ACTIVATE: 'ACTIVATE',\n ACTIVATE_ERROR: 'ACTIVATE_ERROR',\n FINISH_SIGNUP: 'FINISH_SIGNUP',\n};\n\nconst TRACKING = 'SESSION';\n\nconst URL_PARAMS = {\n login: [MODE.FINISH_SIGNUP],\n};\n\nexport { AUTH_TYPE, ENDPOINT, MODE, TRACKING, URL_PARAMS };\n"],"mappings":";;;;;;AAAA,MAAMA,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG;EAChBE,KAAK,EAAE,CAAC;EACRC,OAAO,EAAE;AACX,CAAC;AAED,MAAMC,QAAQ,GAAAH,OAAA,CAAAG,QAAA,GAAG;EACfC,cAAc,EAAE,yBAAyB;EACzCC,eAAe,EAAE,0BAA0B;EAC3CC,OAAO,EAAE,gCAAgC;EACzCC,MAAM,EAAE;AACV,CAAC;AAED,MAAMC,IAAI,GAAAR,OAAA,CAAAQ,IAAA,GAAG;EACXC,QAAQ,EAAE,UAAU;EACpBC,cAAc,EAAE,gBAAgB;EAChCC,aAAa,EAAE;AACjB,CAAC;AAED,MAAMC,QAAQ,GAAAZ,OAAA,CAAAY,QAAA,GAAG,SAAS;AAE1B,MAAMC,UAAU,GAAAb,OAAA,CAAAa,UAAA,GAAG;EACjBC,KAAK,EAAE,CAACN,IAAI,CAACG,aAAa;AAC5B,CAAC"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -10,39 +9,27 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
10
9
  var _react = _interopRequireDefault(require("react"));
11
10
  var _Session = require("./Session.Account");
12
11
  var _Session2 = require("./Session.Login");
13
- var _excluded = ["ghost"];
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- 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; }
16
- 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; }
17
- 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; }
18
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
- 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); }
20
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
- 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."); }
22
- 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); }
23
- 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; }
24
- 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; } }
25
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
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 Session = exports.Session = function Session(_ref) {
29
- var ghost = _ref.ghost,
30
- others = _objectWithoutProperties(_ref, _excluded);
31
- var _useStore = (0, _dataSources.useStore)(),
32
- _useStore$value = _useStore.value,
33
- session = _useStore$value.session,
34
- _useStore$value$club = _useStore$value.club,
35
- _useStore$value$club2 = _useStore$value$club === void 0 ? {} : _useStore$value$club,
36
- _useStore$value$club3 = _useStore$value$club2.active,
37
- active = _useStore$value$club3 === void 0 ? true : _useStore$value$club3;
38
- var _ref2 = (ghost === null || ghost === void 0 ? void 0 : ghost.children) || [],
39
- _ref3 = _slicedToArray(_ref2, 2),
40
- ghostLogin = _ref3[0],
41
- ghostAccount = _ref3[1];
42
- return active ? /*#__PURE__*/_react.default.createElement(session ? _Session.Account : _Session2.Login, _objectSpread(_objectSpread({}, others), {}, {
13
+ const Session = _ref => {
14
+ let {
15
+ ghost,
16
+ ...others
17
+ } = _ref;
18
+ const {
19
+ value: {
20
+ session,
21
+ club: {
22
+ active = true
23
+ } = {}
24
+ }
25
+ } = (0, _dataSources.useStore)();
26
+ const [ghostLogin, ghostAccount] = (ghost === null || ghost === void 0 ? void 0 : ghost.children) || [];
27
+ return active ? /*#__PURE__*/_react.default.createElement(session ? _Session.Account : _Session2.Login, {
28
+ ...others,
43
29
  ghost: session ? ghostAccount : ghostLogin
44
- })) : null;
30
+ }) : null;
45
31
  };
32
+ exports.Session = Session;
46
33
  Session.displayName = 'Mirai:User:Session';
47
34
  Session.propTypes = {
48
35
  ghost: _propTypes.default.any
@@ -1 +1 @@
1
- {"version":3,"file":"Session.js","names":["_dataSources","require","_propTypes","_interopRequireDefault","_react","_Session","_Session2","_excluded","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","_typeof","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","minLen","_arrayLikeToArray","n","prototype","toString","slice","constructor","name","Array","from","test","len","arr2","l","iterator","u","a","f","next","done","return","isArray","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","Session","exports","_ref","ghost","others","_useStore","useStore","_useStore$value","session","_useStore$value$club","club","_useStore$value$club2","_useStore$value$club3","active","_ref2","children","_ref3","ghostLogin","ghostAccount","React","createElement","Account","Login","displayName","propTypes","PropTypes","any"],"sources":["../../../src/components/Session/Session.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Account } from './Session.Account';\nimport { Login } from './Session.Login';\n\nconst Session = ({ ghost, ...others }) => {\n const {\n value: { session, club: { active = true } = {} },\n } = useStore();\n\n const [ghostLogin, ghostAccount] = ghost?.children || [];\n\n return active\n ? React.createElement(session ? Account : Login, { ...others, ghost: session ? ghostAccount : ghostLogin })\n : null;\n};\n\nSession.displayName = 'Mirai:User:Session';\n\nSession.propTypes = {\n ghost: PropTypes.any,\n};\n\nexport { Session };\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,I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AAA,CAAAD,OAAA,GAAG,SAAVA,OAAOA,CAAAE,IAAA,EAA6B;EAAA,IAAvBC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAKC,MAAM,GAAAb,wBAAA,CAAAW,IAAA,EAAApF,SAAA;EACjC,IAAAuF,SAAA,GAEI,IAAAC,qBAAQ,EAAC,CAAC;IAAAC,eAAA,GAAAF,SAAA,CADZ7D,KAAK;IAAIgE,OAAO,GAAAD,eAAA,CAAPC,OAAO;IAAAC,oBAAA,GAAAF,eAAA,CAAEG,IAAI;IAAAC,qBAAA,GAAAF,oBAAA,cAAsB,CAAC,CAAC,GAAAA,oBAAA;IAAAG,qBAAA,GAAAD,qBAAA,CAApBE,MAAM;IAANA,MAAM,GAAAD,qBAAA,cAAG,IAAI,GAAAA,qBAAA;EAGzC,IAAAE,KAAA,GAAmC,CAAAX,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEY,QAAQ,KAAI,EAAE;IAAAC,KAAA,GAAAtD,cAAA,CAAAoD,KAAA;IAAjDG,UAAU,GAAAD,KAAA;IAAEE,YAAY,GAAAF,KAAA;EAE/B,OAAOH,MAAM,gBACTM,cAAK,CAACC,aAAa,CAACZ,OAAO,GAAGa,gBAAO,GAAGC,eAAK,EAAAvF,aAAA,CAAAA,aAAA,KAAOqE,MAAM;IAAED,KAAK,EAAEK,OAAO,GAAGU,YAAY,GAAGD;EAAU,EAAE,CAAC,GACzG,IAAI;AACV,CAAC;AAEDjB,OAAO,CAACuB,WAAW,GAAG,oBAAoB;AAE1CvB,OAAO,CAACwB,SAAS,GAAG;EAClBrB,KAAK,EAAEsB,kBAAS,CAACC;AACnB,CAAC"}
1
+ {"version":3,"file":"Session.js","names":["_dataSources","require","_propTypes","_interopRequireDefault","_react","_Session","_Session2","obj","__esModule","default","Session","_ref","ghost","others","value","session","club","active","useStore","ghostLogin","ghostAccount","children","React","createElement","Account","Login","exports","displayName","propTypes","PropTypes","any"],"sources":["../../../src/components/Session/Session.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Account } from './Session.Account';\nimport { Login } from './Session.Login';\n\nconst Session = ({ ghost, ...others }) => {\n const {\n value: { session, club: { active = true } = {} },\n } = useStore();\n\n const [ghostLogin, ghostAccount] = ghost?.children || [];\n\n return active\n ? React.createElement(session ? Account : Login, { ...others, ghost: session ? ghostAccount : ghostLogin })\n : null;\n};\n\nSession.displayName = 'Mirai:User:Session';\n\nSession.propTypes = {\n ghost: PropTypes.any,\n};\n\nexport { Session };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAAwC,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAExC,MAAMG,OAAO,GAAGC,IAAA,IAA0B;EAAA,IAAzB;IAAEC,KAAK;IAAE,GAAGC;EAAO,CAAC,GAAAF,IAAA;EACnC,MAAM;IACJG,KAAK,EAAE;MAAEC,OAAO;MAAEC,IAAI,EAAE;QAAEC,MAAM,GAAG;MAAK,CAAC,GAAG,CAAC;IAAE;EACjD,CAAC,GAAG,IAAAC,qBAAQ,EAAC,CAAC;EAEd,MAAM,CAACC,UAAU,EAAEC,YAAY,CAAC,GAAG,CAAAR,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAES,QAAQ,KAAI,EAAE;EAExD,OAAOJ,MAAM,gBACTK,cAAK,CAACC,aAAa,CAACR,OAAO,GAAGS,gBAAO,GAAGC,eAAK,EAAE;IAAE,GAAGZ,MAAM;IAAED,KAAK,EAAEG,OAAO,GAAGK,YAAY,GAAGD;EAAW,CAAC,CAAC,GACzG,IAAI;AACV,CAAC;AAACO,OAAA,CAAAhB,OAAA,GAAAA,OAAA;AAEFA,OAAO,CAACiB,WAAW,GAAG,oBAAoB;AAE1CjB,OAAO,CAACkB,SAAS,GAAG;EAClBhB,KAAK,EAAEiB,kBAAS,CAACC;AACnB,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_ACCOUNT: {
9
9
  id: 'user.action.my_account'
10
10
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Session.l10n.js","names":["L10N","exports","ACTION_ACCOUNT","id","ACTION_MODAL","ACTION_BACK","ACTION_BOOKINGS","ACTION_CHANGE_PASSWORD","ACTION_PROFILE","ACTION_RESET","ACTION_SIGNUP","CTA","CTA_RESET","CTA_LOGOUT","FORM_DESCRIPTION","FORM_RESET_DESCRIPTION","EMAIL_LABEL","LEVEL","PASSWORD_LABEL","TITLE","TITLE_RESET","TITLE_WELCOME","NOTIFICATION_ERROR","NOTIFICATION_FINISH_SIGNUP_TITLE","NOTIFICATION_FINISH_SIGNUP_DESCRIPTION","NOTIFICATION_FINISH_SIGNUP_ERROR","NOTIFICATION_SUCCESS_RESET"],"sources":["../../../src/components/Session/Session.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_ACCOUNT: { id: 'user.action.my_account' },\n ACTION_MODAL: { id: 'common.action.login' },\n ACTION_BACK: { id: 'user.action.back_login' },\n ACTION_BOOKINGS: { id: 'user.action.view_bookings' },\n ACTION_CHANGE_PASSWORD: { id: 'user.action.change_login_password' },\n ACTION_PROFILE: { id: 'user.action.view_profile' },\n ACTION_RESET: { id: 'user.action.reset' },\n ACTION_SIGNUP: { id: 'user.action.signup' },\n CTA: { id: 'common.action.login' },\n CTA_RESET: { id: 'user.action.cta_reset' },\n CTA_LOGOUT: { id: 'common.action.logout' },\n FORM_DESCRIPTION: { id: 'user.label.form_description' },\n FORM_RESET_DESCRIPTION: { id: 'user.label.form_reset_description' },\n EMAIL_LABEL: { id: 'common.label.email' },\n LEVEL: { id: 'user.label.level' },\n PASSWORD_LABEL: { id: 'common.label.password' },\n TITLE: { id: 'user.label.title_session' },\n TITLE_RESET: { id: 'user.action.reset' },\n TITLE_WELCOME: { id: 'user.label.title_welcome' },\n NOTIFICATION_ERROR: { id: 'common.notification.error_unknown' },\n NOTIFICATION_FINISH_SIGNUP_TITLE: { id: 'user.notification.activation_success' },\n NOTIFICATION_FINISH_SIGNUP_DESCRIPTION: { id: 'user.notification.finish_signup_description' },\n NOTIFICATION_FINISH_SIGNUP_ERROR: { id: 'user.notification.validation_error' },\n NOTIFICATION_SUCCESS_RESET: { id: 'user.notification.success_reset' },\n};\n"],"mappings":";;;;;;AAAO,IAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,cAAc,EAAE;IAAEC,EAAE,EAAE;EAAyB,CAAC;EAChDC,YAAY,EAAE;IAAED,EAAE,EAAE;EAAsB,CAAC;EAC3CE,WAAW,EAAE;IAAEF,EAAE,EAAE;EAAyB,CAAC;EAC7CG,eAAe,EAAE;IAAEH,EAAE,EAAE;EAA4B,CAAC;EACpDI,sBAAsB,EAAE;IAAEJ,EAAE,EAAE;EAAoC,CAAC;EACnEK,cAAc,EAAE;IAAEL,EAAE,EAAE;EAA2B,CAAC;EAClDM,YAAY,EAAE;IAAEN,EAAE,EAAE;EAAoB,CAAC;EACzCO,aAAa,EAAE;IAAEP,EAAE,EAAE;EAAqB,CAAC;EAC3CQ,GAAG,EAAE;IAAER,EAAE,EAAE;EAAsB,CAAC;EAClCS,SAAS,EAAE;IAAET,EAAE,EAAE;EAAwB,CAAC;EAC1CU,UAAU,EAAE;IAAEV,EAAE,EAAE;EAAuB,CAAC;EAC1CW,gBAAgB,EAAE;IAAEX,EAAE,EAAE;EAA8B,CAAC;EACvDY,sBAAsB,EAAE;IAAEZ,EAAE,EAAE;EAAoC,CAAC;EACnEa,WAAW,EAAE;IAAEb,EAAE,EAAE;EAAqB,CAAC;EACzCc,KAAK,EAAE;IAAEd,EAAE,EAAE;EAAmB,CAAC;EACjCe,cAAc,EAAE;IAAEf,EAAE,EAAE;EAAwB,CAAC;EAC/CgB,KAAK,EAAE;IAAEhB,EAAE,EAAE;EAA2B,CAAC;EACzCiB,WAAW,EAAE;IAAEjB,EAAE,EAAE;EAAoB,CAAC;EACxCkB,aAAa,EAAE;IAAElB,EAAE,EAAE;EAA2B,CAAC;EACjDmB,kBAAkB,EAAE;IAAEnB,EAAE,EAAE;EAAoC,CAAC;EAC/DoB,gCAAgC,EAAE;IAAEpB,EAAE,EAAE;EAAuC,CAAC;EAChFqB,sCAAsC,EAAE;IAAErB,EAAE,EAAE;EAA8C,CAAC;EAC7FsB,gCAAgC,EAAE;IAAEtB,EAAE,EAAE;EAAqC,CAAC;EAC9EuB,0BAA0B,EAAE;IAAEvB,EAAE,EAAE;EAAkC;AACtE,CAAC"}
1
+ {"version":3,"file":"Session.l10n.js","names":["L10N","exports","ACTION_ACCOUNT","id","ACTION_MODAL","ACTION_BACK","ACTION_BOOKINGS","ACTION_CHANGE_PASSWORD","ACTION_PROFILE","ACTION_RESET","ACTION_SIGNUP","CTA","CTA_RESET","CTA_LOGOUT","FORM_DESCRIPTION","FORM_RESET_DESCRIPTION","EMAIL_LABEL","LEVEL","PASSWORD_LABEL","TITLE","TITLE_RESET","TITLE_WELCOME","NOTIFICATION_ERROR","NOTIFICATION_FINISH_SIGNUP_TITLE","NOTIFICATION_FINISH_SIGNUP_DESCRIPTION","NOTIFICATION_FINISH_SIGNUP_ERROR","NOTIFICATION_SUCCESS_RESET"],"sources":["../../../src/components/Session/Session.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_ACCOUNT: { id: 'user.action.my_account' },\n ACTION_MODAL: { id: 'common.action.login' },\n ACTION_BACK: { id: 'user.action.back_login' },\n ACTION_BOOKINGS: { id: 'user.action.view_bookings' },\n ACTION_CHANGE_PASSWORD: { id: 'user.action.change_login_password' },\n ACTION_PROFILE: { id: 'user.action.view_profile' },\n ACTION_RESET: { id: 'user.action.reset' },\n ACTION_SIGNUP: { id: 'user.action.signup' },\n CTA: { id: 'common.action.login' },\n CTA_RESET: { id: 'user.action.cta_reset' },\n CTA_LOGOUT: { id: 'common.action.logout' },\n FORM_DESCRIPTION: { id: 'user.label.form_description' },\n FORM_RESET_DESCRIPTION: { id: 'user.label.form_reset_description' },\n EMAIL_LABEL: { id: 'common.label.email' },\n LEVEL: { id: 'user.label.level' },\n PASSWORD_LABEL: { id: 'common.label.password' },\n TITLE: { id: 'user.label.title_session' },\n TITLE_RESET: { id: 'user.action.reset' },\n TITLE_WELCOME: { id: 'user.label.title_welcome' },\n NOTIFICATION_ERROR: { id: 'common.notification.error_unknown' },\n NOTIFICATION_FINISH_SIGNUP_TITLE: { id: 'user.notification.activation_success' },\n NOTIFICATION_FINISH_SIGNUP_DESCRIPTION: { id: 'user.notification.finish_signup_description' },\n NOTIFICATION_FINISH_SIGNUP_ERROR: { id: 'user.notification.validation_error' },\n NOTIFICATION_SUCCESS_RESET: { id: 'user.notification.success_reset' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,cAAc,EAAE;IAAEC,EAAE,EAAE;EAAyB,CAAC;EAChDC,YAAY,EAAE;IAAED,EAAE,EAAE;EAAsB,CAAC;EAC3CE,WAAW,EAAE;IAAEF,EAAE,EAAE;EAAyB,CAAC;EAC7CG,eAAe,EAAE;IAAEH,EAAE,EAAE;EAA4B,CAAC;EACpDI,sBAAsB,EAAE;IAAEJ,EAAE,EAAE;EAAoC,CAAC;EACnEK,cAAc,EAAE;IAAEL,EAAE,EAAE;EAA2B,CAAC;EAClDM,YAAY,EAAE;IAAEN,EAAE,EAAE;EAAoB,CAAC;EACzCO,aAAa,EAAE;IAAEP,EAAE,EAAE;EAAqB,CAAC;EAC3CQ,GAAG,EAAE;IAAER,EAAE,EAAE;EAAsB,CAAC;EAClCS,SAAS,EAAE;IAAET,EAAE,EAAE;EAAwB,CAAC;EAC1CU,UAAU,EAAE;IAAEV,EAAE,EAAE;EAAuB,CAAC;EAC1CW,gBAAgB,EAAE;IAAEX,EAAE,EAAE;EAA8B,CAAC;EACvDY,sBAAsB,EAAE;IAAEZ,EAAE,EAAE;EAAoC,CAAC;EACnEa,WAAW,EAAE;IAAEb,EAAE,EAAE;EAAqB,CAAC;EACzCc,KAAK,EAAE;IAAEd,EAAE,EAAE;EAAmB,CAAC;EACjCe,cAAc,EAAE;IAAEf,EAAE,EAAE;EAAwB,CAAC;EAC/CgB,KAAK,EAAE;IAAEhB,EAAE,EAAE;EAA2B,CAAC;EACzCiB,WAAW,EAAE;IAAEjB,EAAE,EAAE;EAAoB,CAAC;EACxCkB,aAAa,EAAE;IAAElB,EAAE,EAAE;EAA2B,CAAC;EACjDmB,kBAAkB,EAAE;IAAEnB,EAAE,EAAE;EAAoC,CAAC;EAC/DoB,gCAAgC,EAAE;IAAEpB,EAAE,EAAE;EAAuC,CAAC;EAChFqB,sCAAsC,EAAE;IAAErB,EAAE,EAAE;EAA8C,CAAC;EAC7FsB,gCAAgC,EAAE;IAAEtB,EAAE,EAAE;EAAqC,CAAC;EAC9EuB,0BAA0B,EAAE;IAAEvB,EAAE,EAAE;EAAkC;AACtE,CAAC"}
@@ -8,12 +8,11 @@ var _ui = require("@mirai/ui");
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _shared__ = require("../__shared__");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- var _default = exports.default = function _default() {
12
- return /*#__PURE__*/_react.default.createElement(_ui.View, {
13
- row: true,
14
- style: {
15
- gap: '1rem'
16
- }
17
- }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, null), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, null, "Login"));
18
- };
11
+ var _default = () => /*#__PURE__*/_react.default.createElement(_ui.View, {
12
+ row: true,
13
+ style: {
14
+ gap: '1rem'
15
+ }
16
+ }, /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, null), /*#__PURE__*/_react.default.createElement(_shared__.Skeleton, null, "Login"));
17
+ exports.default = _default;
19
18
  //# sourceMappingURL=Session.skeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Session.skeleton.js","names":["_ui","require","_react","_interopRequireDefault","_shared__","obj","__esModule","default","_default","exports","createElement","View","row","style","gap","Skeleton"],"sources":["../../../src/components/Session/Session.skeleton.jsx"],"sourcesContent":["import { View } from '@mirai/ui';\nimport React from 'react';\n\nimport { Skeleton } from '../__shared__';\n\nexport default () => (\n <View row style={{ gap: '1rem' }}>\n <Skeleton />\n <Skeleton>Login</Skeleton>\n </View>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AAAyC,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAE1B,SAAAC,SAAA;EAAA,oBACbN,MAAA,CAAAK,OAAA,CAAAG,aAAA,CAACV,GAAA,CAAAW,IAAI;IAACC,GAAG;IAACC,KAAK,EAAE;MAAEC,GAAG,EAAE;IAAO;EAAE,gBAC/BZ,MAAA,CAAAK,OAAA,CAAAG,aAAA,CAACN,SAAA,CAAAW,QAAQ,MAAE,CAAC,eACZb,MAAA,CAAAK,OAAA,CAAAG,aAAA,CAACN,SAAA,CAAAW,QAAQ,QAAC,OAAe,CACrB,CAAC;AAAA,CACR"}
1
+ {"version":3,"file":"Session.skeleton.js","names":["_ui","require","_react","_interopRequireDefault","_shared__","obj","__esModule","default","_default","createElement","View","row","style","gap","Skeleton","exports"],"sources":["../../../src/components/Session/Session.skeleton.jsx"],"sourcesContent":["import { View } from '@mirai/ui';\nimport React from 'react';\n\nimport { Skeleton } from '../__shared__';\n\nexport default () => (\n <View row style={{ gap: '1rem' }}>\n <Skeleton />\n <Skeleton>Login</Skeleton>\n </View>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AAAyC,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAE1BA,CAAA,kBACbN,MAAA,CAAAK,OAAA,CAAAE,aAAA,CAACT,GAAA,CAAAU,IAAI;EAACC,GAAG;EAACC,KAAK,EAAE;IAAEC,GAAG,EAAE;EAAO;AAAE,gBAC/BX,MAAA,CAAAK,OAAA,CAAAE,aAAA,CAACL,SAAA,CAAAU,QAAQ,MAAE,CAAC,eACZZ,MAAA,CAAAK,OAAA,CAAAE,aAAA,CAACL,SAAA,CAAAU,QAAQ,QAAC,OAAe,CACrB,CACP;AAAAC,OAAA,CAAAR,OAAA,GAAAC,QAAA"}
@@ -44,7 +44,7 @@ exports[`component:<Session> Using ghost feature renders 1`] = `
44
44
  fill="none"
45
45
  />
46
46
  <path
47
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
47
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
48
48
  />
49
49
  </svg>
50
50
  </span>
@@ -123,7 +123,7 @@ exports[`component:<Session> Using ghost feature renders 1`] = `
123
123
  fill="none"
124
124
  />
125
125
  <path
126
- d="M12 6a9.77 9.77 0 018.82 5.5 9.647 9.647 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 001 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
126
+ d="M12 6a9.77 9.77 0 0 1 8.82 5.5 9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
127
127
  />
128
128
  </svg>
129
129
  </span>
@@ -222,7 +222,7 @@ exports[`component:<Session> inherit:className 1`] = `
222
222
  fill="none"
223
223
  />
224
224
  <path
225
- d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 00-12.28 0A7.957 7.957 0 014 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
225
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 0 0-12.28 0A7.957 7.957 0 0 1 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
226
226
  />
227
227
  <path
228
228
  d="M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
@@ -271,7 +271,7 @@ exports[`component:<Session> inherit:className 1`] = `
271
271
  fill="none"
272
272
  />
273
273
  <path
274
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
274
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
275
275
  />
276
276
  </svg>
277
277
  </span>
@@ -350,7 +350,7 @@ exports[`component:<Session> inherit:className 1`] = `
350
350
  fill="none"
351
351
  />
352
352
  <path
353
- d="M12 6a9.77 9.77 0 018.82 5.5 9.647 9.647 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 001 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
353
+ d="M12 6a9.77 9.77 0 0 1 8.82 5.5 9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
354
354
  />
355
355
  </svg>
356
356
  </span>
@@ -420,7 +420,7 @@ exports[`component:<Session> renders 1`] = `
420
420
  fill="none"
421
421
  />
422
422
  <path
423
- d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 00-12.28 0A7.957 7.957 0 014 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
423
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 0 0-12.28 0A7.957 7.957 0 0 1 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
424
424
  />
425
425
  <path
426
426
  d="M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
@@ -469,7 +469,7 @@ exports[`component:<Session> renders 1`] = `
469
469
  fill="none"
470
470
  />
471
471
  <path
472
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
472
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
473
473
  />
474
474
  </svg>
475
475
  </span>
@@ -548,7 +548,7 @@ exports[`component:<Session> renders 1`] = `
548
548
  fill="none"
549
549
  />
550
550
  <path
551
- d="M12 6a9.77 9.77 0 018.82 5.5 9.647 9.647 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 001 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
551
+ d="M12 6a9.77 9.77 0 0 1 8.82 5.5 9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
552
552
  />
553
553
  </svg>
554
554
  </span>
@@ -618,7 +618,7 @@ exports[`component:<Session> testID 1`] = `
618
618
  fill="none"
619
619
  />
620
620
  <path
621
- d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 00-12.28 0A7.957 7.957 0 014 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
621
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 0 0-12.28 0A7.957 7.957 0 0 1 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
622
622
  />
623
623
  <path
624
624
  d="M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
@@ -667,7 +667,7 @@ exports[`component:<Session> testID 1`] = `
667
667
  fill="none"
668
668
  />
669
669
  <path
670
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
670
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
671
671
  />
672
672
  </svg>
673
673
  </span>
@@ -748,7 +748,7 @@ exports[`component:<Session> testID 1`] = `
748
748
  fill="none"
749
749
  />
750
750
  <path
751
- d="M12 6a9.77 9.77 0 018.82 5.5 9.647 9.647 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 001 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
751
+ d="M12 6a9.77 9.77 0 0 1 8.82 5.5 9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
752
752
  />
753
753
  </svg>
754
754
  </span>
@@ -822,7 +822,7 @@ exports[`component:<Session> with an stored session 1`] = `
822
822
  fill="none"
823
823
  />
824
824
  <path
825
- d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 00-12.28 0A7.957 7.957 0 014 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
825
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 0 0-12.28 0A7.957 7.957 0 0 1 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
826
826
  />
827
827
  <path
828
828
  d="M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
@@ -866,7 +866,7 @@ exports[`component:<Session> with mode finishing signup 1`] = `
866
866
  fill="none"
867
867
  />
868
868
  <path
869
- d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 00-12.28 0A7.957 7.957 0 014 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
869
+ d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 0 0-12.28 0A7.957 7.957 0 0 1 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"
870
870
  />
871
871
  <path
872
872
  d="M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"
@@ -915,7 +915,7 @@ exports[`component:<Session> with mode finishing signup 1`] = `
915
915
  fill="none"
916
916
  />
917
917
  <path
918
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
918
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
919
919
  />
920
920
  </svg>
921
921
  </span>
@@ -1034,7 +1034,7 @@ exports[`component:<Session> with mode finishing signup 1`] = `
1034
1034
  fill="none"
1035
1035
  />
1036
1036
  <path
1037
- d="M12 6a9.77 9.77 0 018.82 5.5 9.647 9.647 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 001 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
1037
+ d="M12 6a9.77 9.77 0 0 1 8.82 5.5 9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
1038
1038
  />
1039
1039
  </svg>
1040
1040
  </span>
@@ -4,11 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getDomain = void 0;
7
- var getDomain = exports.getDomain = function getDomain(url) {
7
+ const getDomain = url => {
8
8
  if (!url) return;
9
- var hostname = new URL(url).hostname;
10
- var parts = hostname.split('.');
9
+ const hostname = new URL(url).hostname;
10
+ const parts = hostname.split('.');
11
11
  if (parts.length > 2) return parts.slice(-2).join('.');
12
12
  return hostname;
13
13
  };
14
+ exports.getDomain = getDomain;
14
15
  //# sourceMappingURL=getDomain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDomain.js","names":["getDomain","exports","url","hostname","URL","parts","split","length","slice","join"],"sources":["../../../../src/components/Session/helpers/getDomain.js"],"sourcesContent":["export const getDomain = (url) => {\n if (!url) return;\n\n const hostname = new URL(url).hostname;\n const parts = hostname.split('.');\n\n if (parts.length > 2) return parts.slice(-2).join('.');\n\n return hostname;\n};\n"],"mappings":";;;;;;AAAO,IAAMA,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,SAAZA,SAASA,CAAIE,GAAG,EAAK;EAChC,IAAI,CAACA,GAAG,EAAE;EAEV,IAAMC,QAAQ,GAAG,IAAIC,GAAG,CAACF,GAAG,CAAC,CAACC,QAAQ;EACtC,IAAME,KAAK,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EAEjC,IAAID,KAAK,CAACE,MAAM,GAAG,CAAC,EAAE,OAAOF,KAAK,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;EAEtD,OAAON,QAAQ;AACjB,CAAC"}
1
+ {"version":3,"file":"getDomain.js","names":["getDomain","url","hostname","URL","parts","split","length","slice","join","exports"],"sources":["../../../../src/components/Session/helpers/getDomain.js"],"sourcesContent":["export const getDomain = (url) => {\n if (!url) return;\n\n const hostname = new URL(url).hostname;\n const parts = hostname.split('.');\n\n if (parts.length > 2) return parts.slice(-2).join('.');\n\n return hostname;\n};\n"],"mappings":";;;;;;AAAO,MAAMA,SAAS,GAAIC,GAAG,IAAK;EAChC,IAAI,CAACA,GAAG,EAAE;EAEV,MAAMC,QAAQ,GAAG,IAAIC,GAAG,CAACF,GAAG,CAAC,CAACC,QAAQ;EACtC,MAAME,KAAK,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EAEjC,IAAID,KAAK,CAACE,MAAM,GAAG,CAAC,EAAE,OAAOF,KAAK,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;EAEtD,OAAON,QAAQ;AACjB,CAAC;AAACO,OAAA,CAAAT,SAAA,GAAAA,SAAA"}
@@ -6,14 +6,16 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getSignupUrl = void 0;
7
7
  var _helpers = require("../../helpers");
8
8
  var _Session = require("../Session.constants");
9
- var getSignupUrl = exports.getSignupUrl = function getSignupUrl() {
10
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
11
- id = _ref.id,
12
- language = _ref.language;
9
+ const getSignupUrl = function () {
10
+ let {
11
+ id,
12
+ language
13
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
13
14
  if (!id || !language) return;
14
15
  return "".concat(process.env.SERVICE_USER, "/").concat(_Session.ENDPOINT.SIGNUP).concat((0, _helpers.toUrlParams)({
15
16
  idtokenprovider: id,
16
17
  lang: language
17
18
  }));
18
19
  };
20
+ exports.getSignupUrl = getSignupUrl;
19
21
  //# sourceMappingURL=getSignupUrl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSignupUrl.js","names":["_helpers","require","_Session","getSignupUrl","exports","_ref","arguments","length","undefined","id","language","concat","process","env","SERVICE_USER","ENDPOINT","SIGNUP","toUrlParams","idtokenprovider","lang"],"sources":["../../../../src/components/Session/helpers/getSignupUrl.js"],"sourcesContent":["import { toUrlParams } from '../../helpers';\nimport { ENDPOINT } from '../Session.constants';\n\nexport const getSignupUrl = ({ id, language } = {}) => {\n if (!id || !language) return;\n\n return `${process.env.SERVICE_USER}/${ENDPOINT.SIGNUP}${toUrlParams({\n idtokenprovider: id,\n lang: language,\n })}`;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,IAAME,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,SAAfA,YAAYA,CAAA,EAA8B;EAAA,IAAAE,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAP,CAAC,CAAC;IAAnBG,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;EACzC,IAAI,CAACD,EAAE,IAAI,CAACC,QAAQ,EAAE;EAEtB,UAAAC,MAAA,CAAUC,OAAO,CAACC,GAAG,CAACC,YAAY,OAAAH,MAAA,CAAII,iBAAQ,CAACC,MAAM,EAAAL,MAAA,CAAG,IAAAM,oBAAW,EAAC;IAClEC,eAAe,EAAET,EAAE;IACnBU,IAAI,EAAET;EACR,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"getSignupUrl.js","names":["_helpers","require","_Session","getSignupUrl","id","language","arguments","length","undefined","concat","process","env","SERVICE_USER","ENDPOINT","SIGNUP","toUrlParams","idtokenprovider","lang","exports"],"sources":["../../../../src/components/Session/helpers/getSignupUrl.js"],"sourcesContent":["import { toUrlParams } from '../../helpers';\nimport { ENDPOINT } from '../Session.constants';\n\nexport const getSignupUrl = ({ id, language } = {}) => {\n if (!id || !language) return;\n\n return `${process.env.SERVICE_USER}/${ENDPOINT.SIGNUP}${toUrlParams({\n idtokenprovider: id,\n lang: language,\n })}`;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAG,SAAAA,CAAA,EAA2B;EAAA,IAA1B;IAAEC,EAAE;IAAEC;EAAS,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAChD,IAAI,CAACF,EAAE,IAAI,CAACC,QAAQ,EAAE;EAEtB,UAAAI,MAAA,CAAUC,OAAO,CAACC,GAAG,CAACC,YAAY,OAAAH,MAAA,CAAII,iBAAQ,CAACC,MAAM,EAAAL,MAAA,CAAG,IAAAM,oBAAW,EAAC;IAClEC,eAAe,EAAEZ,EAAE;IACnBa,IAAI,EAAEZ;EACR,CAAC,CAAC;AACJ,CAAC;AAACa,OAAA,CAAAf,YAAA,GAAAA,YAAA"}
@@ -9,7 +9,7 @@ Object.keys(_getDomain).forEach(function (key) {
9
9
  if (key in exports && exports[key] === _getDomain[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
- get: function get() {
12
+ get: function () {
13
13
  return _getDomain[key];
14
14
  }
15
15
  });
@@ -20,7 +20,7 @@ Object.keys(_getSignupUrl).forEach(function (key) {
20
20
  if (key in exports && exports[key] === _getSignupUrl[key]) return;
21
21
  Object.defineProperty(exports, key, {
22
22
  enumerable: true,
23
- get: function get() {
23
+ get: function () {
24
24
  return _getSignupUrl[key];
25
25
  }
26
26
  });
@@ -31,7 +31,7 @@ Object.keys(_template).forEach(function (key) {
31
31
  if (key in exports && exports[key] === _template[key]) return;
32
32
  Object.defineProperty(exports, key, {
33
33
  enumerable: true,
34
- get: function get() {
34
+ get: function () {
35
35
  return _template[key];
36
36
  }
37
37
  });
@@ -42,7 +42,7 @@ Object.keys(_trackLogin).forEach(function (key) {
42
42
  if (key in exports && exports[key] === _trackLogin[key]) return;
43
43
  Object.defineProperty(exports, key, {
44
44
  enumerable: true,
45
- get: function get() {
45
+ get: function () {
46
46
  return _trackLogin[key];
47
47
  }
48
48
  });