@mirai/core 0.2.19 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (750) hide show
  1. package/build/Core.Notifications.js +67 -50
  2. package/build/Core.Notifications.js.map +1 -1
  3. package/build/Core.constants.js +13 -11
  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 +69 -48
  8. package/build/Core.js.map +1 -1
  9. package/build/Core.provider.js +91 -41
  10. package/build/Core.provider.js.map +1 -1
  11. package/build/components/Booking/Booking.constants.js +48 -0
  12. package/build/components/Booking/Booking.constants.js.map +1 -0
  13. package/build/components/Booking/Booking.js +226 -0
  14. package/build/components/Booking/Booking.js.map +1 -0
  15. package/build/components/Booking/Booking.l10n.js +233 -0
  16. package/build/components/Booking/Booking.l10n.js.map +1 -0
  17. package/build/components/Booking/Booking.module.css +273 -0
  18. package/build/components/{user → Booking}/Booking.skeleton.js +12 -14
  19. package/build/components/Booking/Booking.skeleton.js.map +1 -0
  20. package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +83 -0
  21. package/build/components/Booking/components/Field/Field.js +70 -0
  22. package/build/components/Booking/components/Field/Field.js.map +1 -0
  23. package/build/components/Booking/components/Field/Field.l10n.js +12 -0
  24. package/build/components/Booking/components/Field/Field.l10n.js.map +1 -0
  25. package/build/components/Booking/components/Field/Field.module.css +48 -0
  26. package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +139 -0
  27. package/build/components/Booking/components/Field/index.js +17 -0
  28. package/build/components/Booking/components/Field/index.js.map +1 -0
  29. package/build/components/Booking/components/index.js +17 -0
  30. package/build/components/Booking/components/index.js.map +1 -0
  31. package/build/components/Booking/helpers/getOccupationCaption.js +64 -0
  32. package/build/components/Booking/helpers/getOccupationCaption.js.map +1 -0
  33. package/build/components/Booking/helpers/index.js +28 -0
  34. package/build/components/Booking/helpers/index.js.map +1 -0
  35. package/build/components/Booking/helpers/trackStateChange.js +97 -0
  36. package/build/components/Booking/helpers/trackStateChange.js.map +1 -0
  37. package/build/components/Booking/index.js +13 -0
  38. package/build/components/Booking/index.js.map +1 -0
  39. package/build/components/Booking/mocks/booking.json +176 -0
  40. package/build/components/Booking/partials/Booking.Details.js +133 -0
  41. package/build/components/Booking/partials/Booking.Details.js.map +1 -0
  42. package/build/components/Booking/partials/Booking.FormCancel.js +107 -0
  43. package/build/components/Booking/partials/Booking.FormCancel.js.map +1 -0
  44. package/build/components/Booking/partials/Booking.FormEdit.js +22 -0
  45. package/build/components/Booking/partials/Booking.FormEdit.js.map +1 -0
  46. package/build/components/Booking/partials/Booking.FormResend.js +53 -0
  47. package/build/components/Booking/partials/Booking.FormResend.js.map +1 -0
  48. package/build/components/Booking/partials/Booking.Menu.js +98 -0
  49. package/build/components/Booking/partials/Booking.Menu.js.map +1 -0
  50. package/build/components/Booking/partials/Booking.Modal.js +181 -0
  51. package/build/components/Booking/partials/Booking.Modal.js.map +1 -0
  52. package/build/components/Booking/partials/Booking.ModalAgency.js +65 -0
  53. package/build/components/Booking/partials/Booking.ModalAgency.js.map +1 -0
  54. package/build/components/Booking/partials/Booking.Others.js +115 -0
  55. package/build/components/Booking/partials/Booking.Others.js.map +1 -0
  56. package/build/components/Booking/partials/Booking.PriceBreakdown.js +150 -0
  57. package/build/components/Booking/partials/Booking.PriceBreakdown.js.map +1 -0
  58. package/build/components/Booking/partials/Booking.Summary.js +255 -0
  59. package/build/components/Booking/partials/Booking.Summary.js.map +1 -0
  60. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Details.test.js.snap +4677 -0
  61. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +638 -0
  62. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +400 -0
  63. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap +442 -0
  64. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Summary.test.js.snap +1066 -0
  65. package/build/components/Booking/partials/index.js +72 -0
  66. package/build/components/Booking/partials/index.js.map +1 -0
  67. package/build/components/BookingQuery/BookingQuery.constants.js +11 -0
  68. package/build/components/BookingQuery/BookingQuery.constants.js.map +1 -0
  69. package/build/components/BookingQuery/BookingQuery.js +199 -0
  70. package/build/components/BookingQuery/BookingQuery.js.map +1 -0
  71. package/build/components/BookingQuery/BookingQuery.l10n.js +36 -0
  72. package/build/components/BookingQuery/BookingQuery.l10n.js.map +1 -0
  73. package/build/components/BookingQuery/BookingQuery.module.css +17 -0
  74. package/build/components/{user → BookingQuery}/BookingQuery.skeleton.js +4 -3
  75. package/build/components/BookingQuery/BookingQuery.skeleton.js.map +1 -0
  76. package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +1106 -0
  77. package/build/components/BookingQuery/helpers/getErrorText.js +12 -0
  78. package/build/components/BookingQuery/helpers/getErrorText.js.map +1 -0
  79. package/build/components/BookingQuery/helpers/index.js +17 -0
  80. package/build/components/BookingQuery/helpers/index.js.map +1 -0
  81. package/build/components/BookingQuery/index.js +13 -0
  82. package/build/components/BookingQuery/index.js.map +1 -0
  83. package/build/components/Checkout/Checkout.constants.js +45 -0
  84. package/build/components/Checkout/Checkout.constants.js.map +1 -0
  85. package/build/components/Checkout/Checkout.js +182 -0
  86. package/build/components/Checkout/Checkout.js.map +1 -0
  87. package/build/components/Checkout/Checkout.l10n.js +125 -0
  88. package/build/components/Checkout/Checkout.l10n.js.map +1 -0
  89. package/build/components/Checkout/Checkout.module.css +250 -0
  90. package/build/components/{user → Checkout}/Checkout.skeleton.js +10 -12
  91. package/build/components/Checkout/Checkout.skeleton.js.map +1 -0
  92. package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +133 -0
  93. package/build/components/Checkout/components/InputRadio/InputRadio.js +67 -0
  94. package/build/components/Checkout/components/InputRadio/InputRadio.js.map +1 -0
  95. package/build/components/Checkout/components/InputRadio/InputRadio.module.css +3 -0
  96. package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +323 -0
  97. package/build/components/Checkout/components/InputRadio/index.js +17 -0
  98. package/build/components/Checkout/components/InputRadio/index.js.map +1 -0
  99. package/build/components/Checkout/components/index.js +17 -0
  100. package/build/components/Checkout/components/index.js.map +1 -0
  101. package/build/components/Checkout/helpers/generateId.js +21 -0
  102. package/build/components/Checkout/helpers/generateId.js.map +1 -0
  103. package/build/components/Checkout/helpers/getFieldProps.js +79 -0
  104. package/build/components/Checkout/helpers/getFieldProps.js.map +1 -0
  105. package/build/components/Checkout/helpers/getVariant.js +34 -0
  106. package/build/components/Checkout/helpers/getVariant.js.map +1 -0
  107. package/build/components/Checkout/helpers/index.js +61 -0
  108. package/build/components/Checkout/helpers/index.js.map +1 -0
  109. package/build/components/Checkout/helpers/testDNI.js +12 -0
  110. package/build/components/Checkout/helpers/testDNI.js.map +1 -0
  111. package/build/components/Checkout/helpers/trackDataSource.js +117 -0
  112. package/build/components/Checkout/helpers/trackDataSource.js.map +1 -0
  113. package/build/components/Checkout/helpers/trackForm.js +25 -0
  114. package/build/components/Checkout/helpers/trackForm.js.map +1 -0
  115. package/build/components/Checkout/index.js +13 -0
  116. package/build/components/Checkout/index.js.map +1 -0
  117. package/build/components/Checkout/mocks/checkout.json +519 -0
  118. package/build/components/Checkout/partials/Checkout.Confirmation.js +237 -0
  119. package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -0
  120. package/build/components/Checkout/partials/Checkout.Details.js +172 -0
  121. package/build/components/Checkout/partials/Checkout.Details.js.map +1 -0
  122. package/build/components/Checkout/partials/Checkout.Form.js +215 -0
  123. package/build/components/Checkout/partials/Checkout.Form.js.map +1 -0
  124. package/build/components/Checkout/partials/Checkout.Session.js +108 -0
  125. package/build/components/Checkout/partials/Checkout.Session.js.map +1 -0
  126. package/build/components/Checkout/partials/Checkout.Summary.Line.js +56 -0
  127. package/build/components/Checkout/partials/Checkout.Summary.Line.js.map +1 -0
  128. package/build/components/Checkout/partials/Checkout.Summary.js +196 -0
  129. package/build/components/Checkout/partials/Checkout.Summary.js.map +1 -0
  130. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +1580 -0
  131. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Details.test.js.snap +1636 -0
  132. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +5650 -0
  133. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Session.test.js.snap +770 -0
  134. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Summary.test.js.snap +798 -0
  135. package/build/components/Checkout/partials/index.js +61 -0
  136. package/build/components/Checkout/partials/index.js.map +1 -0
  137. package/build/components/Deals/Deals.Calendar.js +180 -0
  138. package/build/components/Deals/Deals.Calendar.js.map +1 -0
  139. package/build/components/Deals/Deals.constants.js +16 -0
  140. package/build/components/Deals/Deals.constants.js.map +1 -0
  141. package/build/components/Deals/Deals.js +281 -0
  142. package/build/components/Deals/Deals.js.map +1 -0
  143. package/build/components/Deals/Deals.l10n.js +43 -0
  144. package/build/components/Deals/Deals.l10n.js.map +1 -0
  145. package/build/components/Deals/Deals.module.css +106 -0
  146. package/build/components/{finder → Deals}/Deals.skeleton.js +17 -19
  147. package/build/components/Deals/Deals.skeleton.js.map +1 -0
  148. package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +4584 -0
  149. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +7893 -0
  150. package/build/components/Deals/helpers/__tests__/__mocks__/deal.json +25 -0
  151. package/build/components/Deals/helpers/calcFromDate.js +20 -0
  152. package/build/components/Deals/helpers/calcFromDate.js.map +1 -0
  153. package/build/components/Deals/helpers/calcMinStay.js +24 -0
  154. package/build/components/Deals/helpers/calcMinStay.js.map +1 -0
  155. package/build/components/Deals/helpers/calcNightWithDeals.js +17 -0
  156. package/build/components/Deals/helpers/calcNightWithDeals.js.map +1 -0
  157. package/build/components/Deals/helpers/calcToDate.js +19 -0
  158. package/build/components/Deals/helpers/calcToDate.js.map +1 -0
  159. package/build/components/Deals/helpers/calcTooltips.js +59 -0
  160. package/build/components/Deals/helpers/calcTooltips.js.map +1 -0
  161. package/build/components/Deals/helpers/getCurrency.js +19 -0
  162. package/build/components/Deals/helpers/getCurrency.js.map +1 -0
  163. package/build/components/Deals/helpers/index.js +83 -0
  164. package/build/components/Deals/helpers/index.js.map +1 -0
  165. package/build/components/Deals/helpers/validate.js +37 -0
  166. package/build/components/Deals/helpers/validate.js.map +1 -0
  167. package/build/components/Deals/index.js +13 -0
  168. package/build/components/Deals/index.js.map +1 -0
  169. package/build/components/Environment/Environment.js +47 -0
  170. package/build/components/Environment/Environment.js.map +1 -0
  171. package/build/components/Environment/Environment.module.css +6 -0
  172. package/build/components/Environment/index.js +13 -0
  173. package/build/components/Environment/index.js.map +1 -0
  174. package/build/components/Finder/Finder.constants.js +37 -0
  175. package/build/components/Finder/Finder.constants.js.map +1 -0
  176. package/build/components/Finder/Finder.js +242 -0
  177. package/build/components/Finder/Finder.js.map +1 -0
  178. package/build/components/Finder/Finder.l10n.js +21 -0
  179. package/build/components/Finder/Finder.l10n.js.map +1 -0
  180. package/build/components/Finder/Finder.module.css +46 -0
  181. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +11469 -0
  182. package/build/components/Finder/components/Calendar/Calendar.constants.js +19 -0
  183. package/build/components/Finder/components/Calendar/Calendar.constants.js.map +1 -0
  184. package/build/components/Finder/components/Calendar/Calendar.js +209 -0
  185. package/build/components/Finder/components/Calendar/Calendar.js.map +1 -0
  186. package/build/components/Finder/components/Calendar/Calendar.l10n.js +25 -0
  187. package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +1 -0
  188. package/build/components/Finder/components/Calendar/Calendar.module.css +28 -0
  189. package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +11 -0
  190. package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +10164 -0
  191. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +86 -0
  192. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +1 -0
  193. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +15 -0
  194. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +1 -0
  195. package/build/components/Finder/components/Calendar/helpers/index.js +28 -0
  196. package/build/components/Finder/components/Calendar/helpers/index.js.map +1 -0
  197. package/build/components/Finder/components/Calendar/index.js +17 -0
  198. package/build/components/Finder/components/Calendar/index.js.map +1 -0
  199. package/build/components/Finder/components/Places/Places.js +108 -0
  200. package/build/components/Finder/components/Places/Places.js.map +1 -0
  201. package/build/components/Finder/components/Places/Places.l10n.js +12 -0
  202. package/build/components/Finder/components/Places/Places.l10n.js.map +1 -0
  203. package/build/components/Finder/components/Places/Places.module.css +83 -0
  204. package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +44 -0
  205. package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +288 -0
  206. package/build/components/Finder/components/Places/helpers/calcColumns.js +40 -0
  207. package/build/components/Finder/components/Places/helpers/calcColumns.js.map +1 -0
  208. package/build/components/Finder/components/Places/helpers/index.js +17 -0
  209. package/build/components/Finder/components/Places/helpers/index.js.map +1 -0
  210. package/build/components/Finder/components/Places/index.js +17 -0
  211. package/build/components/Finder/components/Places/index.js.map +1 -0
  212. package/build/components/Finder/components/index.js +28 -0
  213. package/build/components/Finder/components/index.js.map +1 -0
  214. package/build/components/Finder/helpers/__tests__/__mocks__/chain.json +1113 -0
  215. package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +1382 -0
  216. package/build/components/Finder/helpers/__tests__/__mocks__/hotel.json +199 -0
  217. package/build/components/Finder/helpers/getDataSource.js +65 -0
  218. package/build/components/Finder/helpers/getDataSource.js.map +1 -0
  219. package/build/components/Finder/helpers/getHotels.js +41 -0
  220. package/build/components/Finder/helpers/getHotels.js.map +1 -0
  221. package/build/components/Finder/helpers/getOccupationDataSource.js +107 -0
  222. package/build/components/Finder/helpers/getOccupationDataSource.js.map +1 -0
  223. package/build/components/Finder/helpers/getPlaceCaption.js +15 -0
  224. package/build/components/Finder/helpers/getPlaceCaption.js.map +1 -0
  225. package/build/components/Finder/helpers/getPlacesOptions.js +50 -0
  226. package/build/components/Finder/helpers/getPlacesOptions.js.map +1 -0
  227. package/build/components/Finder/helpers/index.js +94 -0
  228. package/build/components/Finder/helpers/index.js.map +1 -0
  229. package/build/components/Finder/helpers/parseCalendarProps.js +29 -0
  230. package/build/components/Finder/helpers/parseCalendarProps.js.map +1 -0
  231. package/build/components/Finder/helpers/parseValue.js +20 -0
  232. package/build/components/Finder/helpers/parseValue.js.map +1 -0
  233. package/build/components/Finder/helpers/validate.js +15 -0
  234. package/build/components/Finder/helpers/validate.js.map +1 -0
  235. package/build/components/Finder/index.js +13 -0
  236. package/build/components/Finder/index.js.map +1 -0
  237. package/build/components/Profile/Profile.Account.js +224 -0
  238. package/build/components/Profile/Profile.Account.js.map +1 -0
  239. package/build/components/Profile/Profile.Password.js +173 -0
  240. package/build/components/Profile/Profile.Password.js.map +1 -0
  241. package/build/components/Profile/Profile.Signout.js +137 -0
  242. package/build/components/Profile/Profile.Signout.js.map +1 -0
  243. package/build/components/Profile/Profile.constants.js +13 -0
  244. package/build/components/Profile/Profile.constants.js.map +1 -0
  245. package/build/components/Profile/Profile.js +75 -0
  246. package/build/components/Profile/Profile.js.map +1 -0
  247. package/build/components/Profile/Profile.l10n.js +100 -0
  248. package/build/components/Profile/Profile.l10n.js.map +1 -0
  249. package/build/components/Profile/Profile.module.css +70 -0
  250. package/build/components/Profile/Profile.skeleton.js +120 -0
  251. package/build/components/Profile/Profile.skeleton.js.map +1 -0
  252. package/build/components/Profile/components/Bookings/Booking.constants.js +20 -0
  253. package/build/components/Profile/components/Bookings/Booking.constants.js.map +1 -0
  254. package/build/components/Profile/components/Bookings/Booking.l10n.js +47 -0
  255. package/build/components/Profile/components/Bookings/Booking.l10n.js.map +1 -0
  256. package/build/components/Profile/components/Bookings/Bookings.Item.js +110 -0
  257. package/build/components/Profile/components/Bookings/Bookings.Item.js.map +1 -0
  258. package/build/components/Profile/components/Bookings/Bookings.Search.js +98 -0
  259. package/build/components/Profile/components/Bookings/Bookings.Search.js.map +1 -0
  260. package/build/components/Profile/components/Bookings/Bookings.js +184 -0
  261. package/build/components/Profile/components/Bookings/Bookings.js.map +1 -0
  262. package/build/components/Profile/components/Bookings/Bookings.module.css +171 -0
  263. package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +9 -0
  264. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +31 -0
  265. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +1 -0
  266. package/build/components/Profile/components/Bookings/helpers/index.js +17 -0
  267. package/build/components/Profile/components/Bookings/helpers/index.js.map +1 -0
  268. package/build/components/Profile/components/Bookings/index.js +17 -0
  269. package/build/components/Profile/components/Bookings/index.js.map +1 -0
  270. package/build/components/Profile/components/index.js +17 -0
  271. package/build/components/Profile/components/index.js.map +1 -0
  272. package/build/components/Profile/index.js +13 -0
  273. package/build/components/Profile/index.js.map +1 -0
  274. package/build/components/Session/Session.Account.js +161 -0
  275. package/build/components/Session/Session.Account.js.map +1 -0
  276. package/build/components/Session/Session.Login.Modal.js +334 -0
  277. package/build/components/Session/Session.Login.Modal.js.map +1 -0
  278. package/build/components/Session/Session.Login.js +85 -0
  279. package/build/components/Session/Session.Login.js.map +1 -0
  280. package/build/components/Session/Session.constants.js +26 -0
  281. package/build/components/Session/Session.constants.js.map +1 -0
  282. package/build/components/Session/Session.js +50 -0
  283. package/build/components/Session/Session.js.map +1 -0
  284. package/build/components/Session/Session.l10n.js +81 -0
  285. package/build/components/Session/Session.l10n.js.map +1 -0
  286. package/build/components/Session/Session.module.css +41 -0
  287. package/build/components/Session/Session.skeleton.js +19 -0
  288. package/build/components/Session/Session.skeleton.js.map +1 -0
  289. package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +1075 -0
  290. package/build/components/Session/helpers/getDomain.js +14 -0
  291. package/build/components/Session/helpers/getDomain.js.map +1 -0
  292. package/build/components/Session/helpers/getSignupUrl.js +19 -0
  293. package/build/components/Session/helpers/getSignupUrl.js.map +1 -0
  294. package/build/components/Session/helpers/index.js +50 -0
  295. package/build/components/Session/helpers/index.js.map +1 -0
  296. package/build/components/Session/helpers/template.js +18 -0
  297. package/build/components/Session/helpers/template.js.map +1 -0
  298. package/build/components/Session/helpers/trackLogin.js +23 -0
  299. package/build/components/Session/helpers/trackLogin.js.map +1 -0
  300. package/build/components/Session/index.js +13 -0
  301. package/build/components/Session/index.js.map +1 -0
  302. package/build/components/Signup/Signup.constants.js +8 -0
  303. package/build/components/Signup/Signup.constants.js.map +1 -0
  304. package/build/components/Signup/Signup.js +266 -0
  305. package/build/components/Signup/Signup.js.map +1 -0
  306. package/build/components/Signup/Signup.l10n.js +67 -0
  307. package/build/components/Signup/Signup.l10n.js.map +1 -0
  308. package/build/components/Signup/Signup.module.css +25 -0
  309. package/build/components/Signup/Signup.skeleton.js +93 -0
  310. package/build/components/Signup/Signup.skeleton.js.map +1 -0
  311. package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +1023 -0
  312. package/build/components/Signup/index.js +13 -0
  313. package/build/components/Signup/index.js.map +1 -0
  314. package/build/components/State/State.js +104 -0
  315. package/build/components/State/State.js.map +1 -0
  316. package/build/components/State/State.module.css +34 -0
  317. package/build/components/State/index.js +13 -0
  318. package/build/components/State/index.js.map +1 -0
  319. package/build/components/__shared__/BookingDates/BookingDates.constants.js +12 -0
  320. package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +1 -0
  321. package/build/components/__shared__/BookingDates/BookingDates.js +74 -0
  322. package/build/components/__shared__/BookingDates/BookingDates.js.map +1 -0
  323. package/build/components/__shared__/BookingDates/BookingDates.l10n.js +27 -0
  324. package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +1 -0
  325. package/build/components/__shared__/BookingDates/BookingDates.module.css +13 -0
  326. package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +208 -0
  327. package/build/components/__shared__/BookingDates/index.js +17 -0
  328. package/build/components/__shared__/BookingDates/index.js.map +1 -0
  329. package/build/components/__shared__/BookingTable/BookingTable.Row.js +123 -0
  330. package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -0
  331. package/build/components/__shared__/BookingTable/BookingTable.constants.js +18 -0
  332. package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +1 -0
  333. package/build/components/__shared__/BookingTable/BookingTable.js +93 -0
  334. package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -0
  335. package/build/components/__shared__/BookingTable/BookingTable.l10n.js +15 -0
  336. package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -0
  337. package/build/components/__shared__/BookingTable/BookingTable.module.css +125 -0
  338. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +456 -0
  339. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +619 -0
  340. package/build/components/__shared__/BookingTable/index.js +17 -0
  341. package/build/components/__shared__/BookingTable/index.js.map +1 -0
  342. package/build/components/__shared__/ButtonMore/ButtonMore.js +46 -0
  343. package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -0
  344. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +12 -0
  345. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +1 -0
  346. package/build/components/__shared__/ButtonMore/ButtonMore.module.css +9 -0
  347. package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +110 -0
  348. package/build/components/__shared__/ButtonMore/index.js +17 -0
  349. package/build/components/__shared__/ButtonMore/index.js.map +1 -0
  350. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +21 -0
  351. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -0
  352. package/build/components/__shared__/ButtonPayment/ButtonPayment.js +278 -0
  353. package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -0
  354. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +13 -0
  355. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +1 -0
  356. package/build/components/__shared__/ButtonPayment/ButtonPayment.module.css +3 -0
  357. package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +195 -0
  358. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +95 -0
  359. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +1 -0
  360. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +21 -0
  361. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +1 -0
  362. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.module.css +9 -0
  363. package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +68 -0
  364. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +18 -0
  365. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +1 -0
  366. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +17 -0
  367. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +1 -0
  368. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +17 -0
  369. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +1 -0
  370. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +37 -0
  371. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +1 -0
  372. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +198 -0
  373. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +1 -0
  374. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +30 -0
  375. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +1 -0
  376. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.module.css +27 -0
  377. package/build/components/__shared__/ButtonPayment/components/FormCheckout/__tests__/__snapshots__/FormCheckout.test.js.snap +308 -0
  378. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +35 -0
  379. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +1 -0
  380. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +17 -0
  381. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +1 -0
  382. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +17 -0
  383. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +1 -0
  384. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +8 -0
  385. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +1 -0
  386. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +230 -0
  387. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +1 -0
  388. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +30 -0
  389. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +1 -0
  390. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.module.css +26 -0
  391. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +148 -0
  392. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +17 -0
  393. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +1 -0
  394. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +24 -0
  395. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +1 -0
  396. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +17 -0
  397. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +1 -0
  398. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +16 -0
  399. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +1 -0
  400. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +136 -0
  401. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +1 -0
  402. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +21 -0
  403. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +1 -0
  404. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.module.css +17 -0
  405. package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +149 -0
  406. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +22 -0
  407. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +1 -0
  408. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +17 -0
  409. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +1 -0
  410. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +17 -0
  411. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +1 -0
  412. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +54 -0
  413. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +1 -0
  414. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.module.css +60 -0
  415. package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +166 -0
  416. package/build/components/__shared__/ButtonPayment/components/InputField/index.js +17 -0
  417. package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +1 -0
  418. package/build/components/__shared__/ButtonPayment/components/index.js +50 -0
  419. package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -0
  420. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +26 -0
  421. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -0
  422. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +32 -0
  423. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +1 -0
  424. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +29 -0
  425. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +1 -0
  426. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +25 -0
  427. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +1 -0
  428. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +39 -0
  429. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +1 -0
  430. package/build/components/__shared__/ButtonPayment/helpers/index.js +39 -0
  431. package/build/components/__shared__/ButtonPayment/helpers/index.js.map +1 -0
  432. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +25 -0
  433. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +1 -0
  434. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +20 -0
  435. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +1 -0
  436. package/build/components/__shared__/ButtonPayment/index.js +17 -0
  437. package/build/components/__shared__/ButtonPayment/index.js.map +1 -0
  438. package/build/components/__shared__/Field/Field.js +91 -0
  439. package/build/components/__shared__/Field/Field.js.map +1 -0
  440. package/build/components/__shared__/Field/Field.module.css +105 -0
  441. package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +799 -0
  442. package/build/components/__shared__/Field/index.js +17 -0
  443. package/build/components/__shared__/Field/index.js.map +1 -0
  444. package/build/components/__shared__/FieldOccupation/FieldOccupation.js +87 -0
  445. package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -0
  446. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +12 -0
  447. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +1 -0
  448. package/build/components/__shared__/FieldOccupation/FieldOccupation.module.css +5 -0
  449. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +2179 -0
  450. package/build/components/__shared__/FieldOccupation/helpers/__tests__/__mocks__/en.json +15 -0
  451. package/build/components/__shared__/FieldOccupation/helpers/__tests__/__mocks__/hotels.json +87 -0
  452. package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js +41 -0
  453. package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js.map +1 -0
  454. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +51 -0
  455. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +1 -0
  456. package/build/components/__shared__/FieldOccupation/helpers/index.js +28 -0
  457. package/build/components/__shared__/FieldOccupation/helpers/index.js.map +1 -0
  458. package/build/components/__shared__/FieldOccupation/index.js +17 -0
  459. package/build/components/__shared__/FieldOccupation/index.js.map +1 -0
  460. package/build/components/__shared__/FieldPromocode/FieldPromocode.js +47 -0
  461. package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -0
  462. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +12 -0
  463. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +1 -0
  464. package/build/components/__shared__/FieldPromocode/FieldPromocode.module.css +19 -0
  465. package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +272 -0
  466. package/build/components/__shared__/FieldPromocode/index.js +17 -0
  467. package/build/components/__shared__/FieldPromocode/index.js.map +1 -0
  468. package/build/components/__shared__/Occupation/Occupation.Group.js +110 -0
  469. package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -0
  470. package/build/components/__shared__/Occupation/Occupation.constants.js +76 -0
  471. package/build/components/__shared__/Occupation/Occupation.constants.js.map +1 -0
  472. package/build/components/__shared__/Occupation/Occupation.js +252 -0
  473. package/build/components/__shared__/Occupation/Occupation.js.map +1 -0
  474. package/build/components/__shared__/Occupation/Occupation.l10n.js +65 -0
  475. package/build/components/__shared__/Occupation/Occupation.l10n.js.map +1 -0
  476. package/build/components/__shared__/Occupation/Occupation.module.css +124 -0
  477. package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +17 -0
  478. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +3591 -0
  479. package/build/components/__shared__/Occupation/helpers/checkRoom.js +36 -0
  480. package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +1 -0
  481. package/build/components/__shared__/Occupation/helpers/consolidateValue.js +92 -0
  482. package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +1 -0
  483. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +31 -0
  484. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +1 -0
  485. package/build/components/__shared__/Occupation/helpers/getGroupHint.js +32 -0
  486. package/build/components/__shared__/Occupation/helpers/getGroupHint.js.map +1 -0
  487. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +17 -0
  488. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +1 -0
  489. package/build/components/__shared__/Occupation/helpers/index.js +72 -0
  490. package/build/components/__shared__/Occupation/helpers/index.js.map +1 -0
  491. package/build/components/__shared__/Occupation/helpers/prepareRoom.js +32 -0
  492. package/build/components/__shared__/Occupation/helpers/prepareRoom.js.map +1 -0
  493. package/build/components/__shared__/Occupation/helpers/toParties.js +41 -0
  494. package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -0
  495. package/build/components/__shared__/Occupation/index.js +28 -0
  496. package/build/components/__shared__/Occupation/index.js.map +1 -0
  497. package/build/components/__shared__/Payment/Payment.constants.js +39 -0
  498. package/build/components/__shared__/Payment/Payment.constants.js.map +1 -0
  499. package/build/components/__shared__/Payment/Payment.js +197 -0
  500. package/build/components/__shared__/Payment/Payment.js.map +1 -0
  501. package/build/components/__shared__/Payment/Payment.l10n.js +84 -0
  502. package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -0
  503. package/build/components/__shared__/Payment/Payment.module.css +61 -0
  504. package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +750 -0
  505. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +43 -0
  506. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +1 -0
  507. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +188 -0
  508. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -0
  509. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +18 -0
  510. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +1 -0
  511. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.module.css +8 -0
  512. package/build/components/__shared__/Payment/components/AmazonPay/__tests__/__snapshots__/AmazonPay.test.js.snap +23 -0
  513. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +16 -0
  514. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +1 -0
  515. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +17 -0
  516. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +1 -0
  517. package/build/components/__shared__/Payment/components/AmazonPay/index.js +17 -0
  518. package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +1 -0
  519. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +96 -0
  520. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -0
  521. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +12 -0
  522. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +1 -0
  523. package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +30 -0
  524. package/build/components/__shared__/Payment/components/Aplazame/index.js +17 -0
  525. package/build/components/__shared__/Payment/components/Aplazame/index.js.map +1 -0
  526. package/build/components/__shared__/Payment/components/Card/Card.constants.js +29 -0
  527. package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +1 -0
  528. package/build/components/__shared__/Payment/components/Card/Card.js +149 -0
  529. package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -0
  530. package/build/components/__shared__/Payment/components/Card/Card.l10n.js +27 -0
  531. package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +1 -0
  532. package/build/components/__shared__/Payment/components/Card/Card.module.css +23 -0
  533. package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +887 -0
  534. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +46 -0
  535. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -0
  536. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +12 -0
  537. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +1 -0
  538. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +26 -0
  539. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +1 -0
  540. package/build/components/__shared__/Payment/components/Card/helpers/index.js +61 -0
  541. package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +1 -0
  542. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +10 -0
  543. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +1 -0
  544. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +13 -0
  545. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +1 -0
  546. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +12 -0
  547. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +1 -0
  548. package/build/components/__shared__/Payment/components/Card/index.js +17 -0
  549. package/build/components/__shared__/Payment/components/Card/index.js.map +1 -0
  550. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +25 -0
  551. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -0
  552. package/build/components/__shared__/Payment/components/PCI/PCI.js +317 -0
  553. package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -0
  554. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +30 -0
  555. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +1 -0
  556. package/build/components/__shared__/Payment/components/PCI/PCI.module.css +9 -0
  557. package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +399 -0
  558. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +27 -0
  559. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -0
  560. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +30 -0
  561. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +1 -0
  562. package/build/components/__shared__/Payment/components/PCI/helpers/index.js +28 -0
  563. package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +1 -0
  564. package/build/components/__shared__/Payment/components/PCI/index.js +17 -0
  565. package/build/components/__shared__/Payment/components/PCI/index.js.map +1 -0
  566. package/build/components/__shared__/Payment/components/Tpv/Tpv.js +75 -0
  567. package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +1 -0
  568. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +12 -0
  569. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +1 -0
  570. package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +92 -0
  571. package/build/components/__shared__/Payment/components/Tpv/index.js +17 -0
  572. package/build/components/__shared__/Payment/components/Tpv/index.js.map +1 -0
  573. package/build/components/__shared__/Payment/components/index.js +61 -0
  574. package/build/components/__shared__/Payment/components/index.js.map +1 -0
  575. package/build/components/__shared__/Payment/helpers/getCaption.js +38 -0
  576. package/build/components/__shared__/Payment/helpers/getCaption.js.map +1 -0
  577. package/build/components/__shared__/Payment/helpers/getComponent.js +29 -0
  578. package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -0
  579. package/build/components/__shared__/Payment/helpers/getImage.js +15 -0
  580. package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -0
  581. package/build/components/__shared__/Payment/helpers/index.js +39 -0
  582. package/build/components/__shared__/Payment/helpers/index.js.map +1 -0
  583. package/build/components/__shared__/Payment/index.js +49 -0
  584. package/build/components/__shared__/Payment/index.js.map +1 -0
  585. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +50 -0
  586. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +1 -0
  587. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +122 -0
  588. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -0
  589. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +78 -0
  590. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -0
  591. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.module.css +30 -0
  592. package/build/components/__shared__/PriceBreakdown/index.js +17 -0
  593. package/build/components/__shared__/PriceBreakdown/index.js.map +1 -0
  594. package/build/components/__shared__/Skeleton/Skeleton.js +35 -0
  595. package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -0
  596. package/build/components/__shared__/Skeleton/index.js +17 -0
  597. package/build/components/__shared__/Skeleton/index.js.map +1 -0
  598. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +32 -0
  599. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +1 -0
  600. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +13 -0
  601. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +1 -0
  602. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.module.css +8 -0
  603. package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +41 -0
  604. package/build/components/__shared__/TextRequiredFields/index.js +17 -0
  605. package/build/components/__shared__/TextRequiredFields/index.js.map +1 -0
  606. package/build/components/__shared__/index.js +138 -0
  607. package/build/components/__shared__/index.js.map +1 -0
  608. package/build/components/helpers/ICON.js +33 -0
  609. package/build/components/helpers/ICON.js.map +1 -0
  610. package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +313 -0
  611. package/build/components/helpers/constants.js +62 -0
  612. package/build/components/helpers/constants.js.map +1 -0
  613. package/build/components/helpers/getButtonPaymentKey.js +23 -0
  614. package/build/components/helpers/getButtonPaymentKey.js.map +1 -0
  615. package/build/components/helpers/getButtonPaymentKey.l10n.js +18 -0
  616. package/build/components/helpers/getButtonPaymentKey.l10n.js.map +1 -0
  617. package/build/components/helpers/getCalendarCaption.js +37 -0
  618. package/build/components/helpers/getCalendarCaption.js.map +1 -0
  619. package/build/components/helpers/getCountryCode.js +11 -0
  620. package/build/components/helpers/getCountryCode.js.map +1 -0
  621. package/build/components/helpers/index.js +138 -0
  622. package/build/components/helpers/index.js.map +1 -0
  623. package/build/components/helpers/isJest.js +9 -0
  624. package/build/components/helpers/isJest.js.map +1 -0
  625. package/build/components/helpers/parseHtml.js +76 -0
  626. package/build/components/helpers/parseHtml.js.map +1 -0
  627. package/build/components/helpers/testPassword.js +11 -0
  628. package/build/components/helpers/testPassword.js.map +1 -0
  629. package/build/components/helpers/toQueryString.js +23 -0
  630. package/build/components/helpers/toQueryString.js.map +1 -0
  631. package/build/components/helpers/toUrlParams.js +23 -0
  632. package/build/components/helpers/toUrlParams.js.map +1 -0
  633. package/build/components/helpers/trace.js +19 -0
  634. package/build/components/helpers/trace.js.map +1 -0
  635. package/build/components/helpers/translate.js +27 -0
  636. package/build/components/helpers/translate.js.map +1 -0
  637. package/build/components/index.js +75 -30
  638. package/build/components/index.js.map +1 -1
  639. package/build/helpers/checkSession.js +42 -20
  640. package/build/helpers/checkSession.js.map +1 -1
  641. package/build/helpers/consolidateStore.js +113 -98
  642. package/build/helpers/consolidateStore.js.map +1 -1
  643. package/build/helpers/fetchConfig.js +58 -16
  644. package/build/helpers/fetchConfig.js.map +1 -1
  645. package/build/helpers/fetchCookies.js +13 -12
  646. package/build/helpers/fetchCookies.js.map +1 -1
  647. package/build/helpers/fetchSession.js +30 -33
  648. package/build/helpers/fetchSession.js.map +1 -1
  649. package/build/helpers/fetchUrlParams.js +2 -3
  650. package/build/helpers/fetchUrlParams.js.map +1 -1
  651. package/build/helpers/findComponents.js +26 -21
  652. package/build/helpers/findComponents.js.map +1 -1
  653. package/build/helpers/findDangerousCSSRules.js +48 -21
  654. package/build/helpers/findDangerousCSSRules.js.map +1 -1
  655. package/build/helpers/findInstance.js +34 -20
  656. package/build/helpers/findInstance.js.map +1 -1
  657. package/build/helpers/getAccommodationType.js +4 -4
  658. package/build/helpers/getAccommodationType.js.map +1 -1
  659. package/build/helpers/getGhost.js +13 -6
  660. package/build/helpers/getGhost.js.map +1 -1
  661. package/build/helpers/getLocale.js +23 -12
  662. package/build/helpers/getLocale.js.map +1 -1
  663. package/build/helpers/getTags.js +30 -24
  664. package/build/helpers/getTags.js.map +1 -1
  665. package/build/helpers/index.js +12 -12
  666. package/build/helpers/index.js.map +1 -1
  667. package/build/helpers/loadEnvironment.js +8 -9
  668. package/build/helpers/loadEnvironment.js.map +1 -1
  669. package/build/helpers/loadSentry.js +6 -6
  670. package/build/helpers/loadSentry.js.map +1 -1
  671. package/build/helpers/theme.js +27 -16
  672. package/build/helpers/theme.js.map +1 -1
  673. package/build/index.js +120 -71
  674. package/build/index.js.map +1 -1
  675. package/build/services/Club/constants.js +2 -2
  676. package/build/services/Club/constants.js.map +1 -1
  677. package/build/services/Club/get.js +49 -21
  678. package/build/services/Club/get.js.map +1 -1
  679. package/build/services/Club/index.js +1 -1
  680. package/build/services/Club/index.js.map +1 -1
  681. package/build/services/Engine/constants.js +2 -2
  682. package/build/services/Engine/constants.js.map +1 -1
  683. package/build/services/Engine/get.js +54 -22
  684. package/build/services/Engine/get.js.map +1 -1
  685. package/build/services/Engine/index.js +1 -1
  686. package/build/services/Engine/index.js.map +1 -1
  687. package/build/services/index.js +2 -2
  688. package/build/services/index.js.map +1 -1
  689. package/package.json +13 -14
  690. package/public/App.Container.jsx +129 -0
  691. package/public/App.jsx +28 -0
  692. package/public/App.module.css +141 -0
  693. package/public/index.html +7 -51
  694. package/public/index.template.html +19 -0
  695. package/public/routes/Deals.jsx +19 -0
  696. package/public/routes/Home.jsx +36 -0
  697. package/public/routes/NotFound.jsx +18 -0
  698. package/public/routes/Profile.jsx +20 -0
  699. package/public/routes/Signup.jsx +19 -0
  700. package/public/routes/Step0-Accommodations.jsx +4 -0
  701. package/public/routes/Step1-Rates.jsx +4 -0
  702. package/public/routes/Step2-Checkout.jsx +4 -0
  703. package/public/routes/Step3-Booking.jsx +4 -0
  704. package/public/routes/index.js +9 -0
  705. package/public/routes/routes.module.css +93 -0
  706. package/public/themes/monalisa.theme.css +25 -0
  707. package/build/components/__internal__/Environment.js +0 -45
  708. package/build/components/__internal__/Environment.js.map +0 -1
  709. package/build/components/__internal__/Environment.module.css +0 -4
  710. package/build/components/__internal__/Skeleton.js +0 -30
  711. package/build/components/__internal__/Skeleton.js.map +0 -1
  712. package/build/components/__internal__/State.js +0 -59
  713. package/build/components/__internal__/State.js.map +0 -1
  714. package/build/components/__internal__/State.module.css +0 -36
  715. package/build/components/finder/Deals.js +0 -9
  716. package/build/components/finder/Deals.js.map +0 -1
  717. package/build/components/finder/Deals.skeleton.js.map +0 -1
  718. package/build/components/finder/Finder.js +0 -31
  719. package/build/components/finder/Finder.js.map +0 -1
  720. package/build/components/user/Booking.js +0 -9
  721. package/build/components/user/Booking.js.map +0 -1
  722. package/build/components/user/Booking.skeleton.js.map +0 -1
  723. package/build/components/user/BookingQuery.js +0 -9
  724. package/build/components/user/BookingQuery.js.map +0 -1
  725. package/build/components/user/BookingQuery.skeleton.js.map +0 -1
  726. package/build/components/user/Checkout.js +0 -9
  727. package/build/components/user/Checkout.js.map +0 -1
  728. package/build/components/user/Checkout.skeleton.js.map +0 -1
  729. package/build/components/user/Profile.js +0 -9
  730. package/build/components/user/Profile.js.map +0 -1
  731. package/build/components/user/Profile.skeleton.js +0 -119
  732. package/build/components/user/Profile.skeleton.js.map +0 -1
  733. package/build/components/user/Session.js +0 -9
  734. package/build/components/user/Session.js.map +0 -1
  735. package/build/components/user/Session.skeleton.js +0 -18
  736. package/build/components/user/Session.skeleton.js.map +0 -1
  737. package/build/components/user/Signup.js +0 -9
  738. package/build/components/user/Signup.js.map +0 -1
  739. package/build/components/user/Signup.skeleton.js +0 -92
  740. package/build/components/user/Signup.skeleton.js.map +0 -1
  741. package/public/customer.css +0 -124
  742. package/site/booking/index.html +0 -20
  743. package/site/checkout/index.html +0 -20
  744. package/site/core.css +0 -8
  745. package/site/customer.css +0 -147
  746. package/site/deals/index.html +0 -34
  747. package/site/index.html +0 -58
  748. package/site/profile/index.html +0 -32
  749. package/site/signup/index.html +0 -32
  750. /package/build/components/{__internal__ → __shared__/Skeleton}/Skeleton.module.css +0 -0
@@ -1,24 +1,66 @@
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); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.fetchConfig = void 0;
7
8
  var _services = require("../services");
8
- const IS_JEST = !!process?.env?.JEST_WORKER_ID;
9
- const fetchConfig = async function () {
10
- let {
11
- id,
12
- type = 'hotel'
13
- } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
- if (!id) return undefined;
15
- const club = !IS_JEST ? await _services.ServiceClub.get(id) : undefined;
16
- const config = await _services.ServiceEngine.get({
17
- id,
18
- type
19
- });
20
- if (config && club) config.club = club;
21
- return config;
22
- };
23
- exports.fetchConfig = fetchConfig;
9
+ var _process, _process$env;
10
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
+ var IS_JEST = !!((_process = process) !== null && _process !== void 0 && (_process$env = _process.env) !== null && _process$env !== void 0 && _process$env.JEST_WORKER_ID);
14
+ var fetchConfig = exports.fetchConfig = /*#__PURE__*/function () {
15
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16
+ var _ref2,
17
+ id,
18
+ _ref2$type,
19
+ type,
20
+ club,
21
+ config,
22
+ _args = arguments;
23
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
24
+ while (1) switch (_context.prev = _context.next) {
25
+ case 0:
26
+ _ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, id = _ref2.id, _ref2$type = _ref2.type, type = _ref2$type === void 0 ? 'hotel' : _ref2$type;
27
+ if (id) {
28
+ _context.next = 3;
29
+ break;
30
+ }
31
+ return _context.abrupt("return", undefined);
32
+ case 3:
33
+ if (IS_JEST) {
34
+ _context.next = 9;
35
+ break;
36
+ }
37
+ _context.next = 6;
38
+ return _services.ServiceClub.get(id);
39
+ case 6:
40
+ _context.t0 = _context.sent;
41
+ _context.next = 10;
42
+ break;
43
+ case 9:
44
+ _context.t0 = undefined;
45
+ case 10:
46
+ club = _context.t0;
47
+ _context.next = 13;
48
+ return _services.ServiceEngine.get({
49
+ id: id,
50
+ type: type
51
+ });
52
+ case 13:
53
+ config = _context.sent;
54
+ if (config && club) config.club = club;
55
+ return _context.abrupt("return", config);
56
+ case 16:
57
+ case "end":
58
+ return _context.stop();
59
+ }
60
+ }, _callee);
61
+ }));
62
+ return function fetchConfig() {
63
+ return _ref.apply(this, arguments);
64
+ };
65
+ }();
24
66
  //# sourceMappingURL=fetchConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchConfig.js","names":["_services","require","IS_JEST","process","env","JEST_WORKER_ID","fetchConfig","id","type","arguments","length","undefined","club","ServiceClub","get","config","ServiceEngine","exports"],"sources":["../../src/helpers/fetchConfig.js"],"sourcesContent":["const IS_JEST = !!process?.env?.JEST_WORKER_ID;\n\nimport { ServiceClub, ServiceEngine } from '../services';\n\nexport const fetchConfig = async ({ id, type = 'hotel' } = {}) => {\n if (!id) return undefined;\n\n const club = !IS_JEST ? await ServiceClub.get(id) : undefined;\n const config = await ServiceEngine.get({ id, type });\n\n if (config && club) config.club = club;\n\n return config;\n};\n"],"mappings":";;;;;;AAEA,IAAAA,SAAA,GAAAC,OAAA;AAFA,MAAMC,OAAO,GAAG,CAAC,CAACC,OAAO,EAAEC,GAAG,EAAEC,cAAc;AAIvC,MAAMC,WAAW,GAAG,eAAAA,CAAA,EAAuC;EAAA,IAAhC;IAAEC,EAAE;IAAEC,IAAI,GAAG;EAAQ,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC3D,IAAI,CAACF,EAAE,EAAE,OAAOI,SAAS;EAEzB,MAAMC,IAAI,GAAG,CAACV,OAAO,GAAG,MAAMW,qBAAW,CAACC,GAAG,CAACP,EAAE,CAAC,GAAGI,SAAS;EAC7D,MAAMI,MAAM,GAAG,MAAMC,uBAAa,CAACF,GAAG,CAAC;IAAEP,EAAE;IAAEC;EAAK,CAAC,CAAC;EAEpD,IAAIO,MAAM,IAAIH,IAAI,EAAEG,MAAM,CAACH,IAAI,GAAGA,IAAI;EAEtC,OAAOG,MAAM;AACf,CAAC;AAACE,OAAA,CAAAX,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"file":"fetchConfig.js","names":["_services","require","_process","_process$env","_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","_catch","delegateYield","asyncGeneratorStep","gen","reject","_next","_throw","key","info","error","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","IS_JEST","process","env","JEST_WORKER_ID","fetchConfig","exports","_ref","_callee","_ref2","id","_ref2$type","club","config","_args","_callee$","_context","ServiceClub","get","t0","ServiceEngine"],"sources":["../../src/helpers/fetchConfig.js"],"sourcesContent":["const IS_JEST = !!process?.env?.JEST_WORKER_ID;\n\nimport { ServiceClub, ServiceEngine } from '../services';\n\nexport const fetchConfig = async ({ id, type = 'hotel' } = {}) => {\n if (!id) return undefined;\n\n const club = !IS_JEST ? await ServiceClub.get(id) : undefined;\n const config = await ServiceEngine.get({ id, type });\n\n if (config && club) config.club = club;\n\n return config;\n};\n"],"mappings":";;;;;;;AAEA,IAAAA,SAAA,GAAAC,OAAA;AAAyD,IAAAC,QAAA,EAAAC,YAAA;AAAA,SAAAC,oBAAA,kBADzD,qJAAAA,mBAAA,YAAAA,oBAAA,WAAAC,CAAA,SAAAC,CAAA,EAAAD,CAAA,OAAAE,CAAA,GAAAC,MAAA,CAAAC,SAAA,EA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AAM,GAAAG,QAAA,CAAA5E,IAAA;UAEZ,IAAIyE,MAAM,IAAID,IAAI,EAAEC,MAAM,CAACD,IAAI,GAAGA,IAAI;UAAC,OAAAI,QAAA,CAAAzE,MAAA,WAEhCsE,MAAM;QAAA;QAAA;UAAA,OAAAG,QAAA,CAAAvC,IAAA;MAAA;IAAA,GAAA+B,OAAA;EAAA,CACd;EAAA,gBATYH,WAAWA,CAAA;IAAA,OAAAE,IAAA,CAAAT,KAAA,OAAAD,SAAA;EAAA;AAAA,GASvB"}
@@ -6,23 +6,24 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.fetchCookies = void 0;
7
7
  var _dataSources = require("@mirai/data-sources");
8
8
  var _Core = require("../Core.definition");
9
- const fetchCookies = function () {
10
- let cookies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9
+ 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); }
10
+ 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; }
11
+ 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; }
12
+ 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; }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ 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); }
15
+ var fetchCookies = exports.fetchCookies = function fetchCookies() {
16
+ var cookies = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11
17
  if (!Array.isArray(cookies)) return {};
12
- let values = {};
13
- const storage = new _dataSources.Storage({
18
+ var values = {};
19
+ var storage = new _dataSources.Storage({
14
20
  adapter: _dataSources.CookieAdapter
15
21
  });
16
- cookies.forEach(cookie => {
17
- if (cookie === _Core.COOKIE_PESTANA) values = {
18
- ...values,
22
+ cookies.forEach(function (cookie) {
23
+ if (cookie === _Core.COOKIE_PESTANA) values = _objectSpread(_objectSpread({}, values), {}, {
19
24
  pestana: (0, _dataSources.getCookie)(cookie)
20
- };else values = {
21
- ...values,
22
- ...storage.get(cookie)
23
- };
25
+ });else values = _objectSpread(_objectSpread({}, values), storage.get(cookie));
24
26
  });
25
27
  return values;
26
28
  };
27
- exports.fetchCookies = fetchCookies;
28
29
  //# sourceMappingURL=fetchCookies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchCookies.js","names":["_dataSources","require","_Core","fetchCookies","cookies","arguments","length","undefined","Array","isArray","values","storage","Storage","adapter","CookieAdapter","forEach","cookie","COOKIE_PESTANA","pestana","getCookie","get","exports"],"sources":["../../src/helpers/fetchCookies.js"],"sourcesContent":["import { CookieAdapter, getCookie, Storage } from '@mirai/data-sources';\n\nimport { COOKIE_PESTANA } from '../Core.definition';\n\nexport const fetchCookies = (cookies = []) => {\n if (!Array.isArray(cookies)) return {};\n\n let values = {};\n const storage = new Storage({ adapter: CookieAdapter });\n cookies.forEach((cookie) => {\n if (cookie === COOKIE_PESTANA) values = { ...values, pestana: getCookie(cookie) };\n else values = { ...values, ...storage.get(cookie) };\n });\n\n return values;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAG,SAAAA,CAAA,EAAkB;EAAA,IAAjBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACvC,IAAI,CAACG,KAAK,CAACC,OAAO,CAACL,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;EAEtC,IAAIM,MAAM,GAAG,CAAC,CAAC;EACf,MAAMC,OAAO,GAAG,IAAIC,oBAAO,CAAC;IAAEC,OAAO,EAAEC;EAAc,CAAC,CAAC;EACvDV,OAAO,CAACW,OAAO,CAAEC,MAAM,IAAK;IAC1B,IAAIA,MAAM,KAAKC,oBAAc,EAAEP,MAAM,GAAG;MAAE,GAAGA,MAAM;MAAEQ,OAAO,EAAE,IAAAC,sBAAS,EAACH,MAAM;IAAE,CAAC,CAAC,KAC7EN,MAAM,GAAG;MAAE,GAAGA,MAAM;MAAE,GAAGC,OAAO,CAACS,GAAG,CAACJ,MAAM;IAAE,CAAC;EACrD,CAAC,CAAC;EAEF,OAAON,MAAM;AACf,CAAC;AAACW,OAAA,CAAAlB,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"file":"fetchCookies.js","names":["_dataSources","require","_Core","_typeof","o","Symbol","iterator","constructor","prototype","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","call","TypeError","Number","fetchCookies","exports","cookies","Array","isArray","values","storage","Storage","adapter","CookieAdapter","cookie","COOKIE_PESTANA","pestana","getCookie","get"],"sources":["../../src/helpers/fetchCookies.js"],"sourcesContent":["import { CookieAdapter, getCookie, Storage } from '@mirai/data-sources';\n\nimport { COOKIE_PESTANA } from '../Core.definition';\n\nexport const fetchCookies = (cookies = []) => {\n if (!Array.isArray(cookies)) return {};\n\n let values = {};\n const storage = new Storage({ adapter: CookieAdapter });\n cookies.forEach((cookie) => {\n if (cookie === COOKIE_PESTANA) values = { ...values, pestana: getCookie(cookie) };\n else values = { ...values, ...storage.get(cookie) };\n });\n\n return values;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAAoD,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAAA,SAAAK,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAX,CAAA,GAAAS,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAP,CAAA,GAAAA,CAAA,CAAAY,MAAA,WAAAL,CAAA,WAAAE,MAAA,CAAAI,wBAAA,CAAAP,CAAA,EAAAC,CAAA,EAAAO,UAAA,OAAAN,CAAA,CAAAO,IAAA,CAAAC,KAAA,CAAAR,CAAA,EAAAR,CAAA,YAAAQ,CAAA;AAAA,SAAAS,cAAAX,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAW,SAAA,CAAAC,MAAA,EAAAZ,CAAA,UAAAC,CAAA,WAAAU,SAAA,CAAAX,CAAA,IAAAW,SAAA,CAAAX,CAAA,QAAAA,CAAA,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S,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,SAAfA,YAAYA,CAAA,EAAqB;EAAA,IAAjBE,OAAO,GAAA3B,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAoB,SAAA,GAAApB,SAAA,MAAG,EAAE;EACvC,IAAI,CAAC4B,KAAK,CAACC,OAAO,CAACF,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;EAEtC,IAAIG,MAAM,GAAG,CAAC,CAAC;EACf,IAAMC,OAAO,GAAG,IAAIC,oBAAO,CAAC;IAAEC,OAAO,EAAEC;EAAc,CAAC,CAAC;EACvDP,OAAO,CAACzB,OAAO,CAAC,UAACiC,MAAM,EAAK;IAC1B,IAAIA,MAAM,KAAKC,oBAAc,EAAEN,MAAM,GAAA/B,aAAA,CAAAA,aAAA,KAAQ+B,MAAM;MAAEO,OAAO,EAAE,IAAAC,sBAAS,EAACH,MAAM;IAAC,EAAE,CAAC,KAC7EL,MAAM,GAAA/B,aAAA,CAAAA,aAAA,KAAQ+B,MAAM,GAAKC,OAAO,CAACQ,GAAG,CAACJ,MAAM,CAAC,CAAE;EACrD,CAAC,CAAC;EAEF,OAAOL,MAAM;AACf,CAAC"}
@@ -5,16 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.fetchSession = void 0;
7
7
  var _dataSources = require("@mirai/data-sources");
8
- const CACHE_LIMIT = 1000 * 60 * 60 * 24 * 7;
9
- const SESSION_STORAGE_LEGACY_ID = 'CLUB';
10
- const SESSION_STORAGE_ID = 'MIRAI:SERVICE:USER:session';
11
- const fetchSession = function () {
12
- let urlParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
13
- let storage = new _dataSources.Storage({
8
+ var CACHE_LIMIT = 1000 * 60 * 60 * 24 * 7;
9
+ var SESSION_STORAGE_LEGACY_ID = 'CLUB';
10
+ var SESSION_STORAGE_ID = 'MIRAI:SERVICE:USER:session';
11
+ var fetchSession = exports.fetchSession = function fetchSession() {
12
+ var urlParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
13
+ var storage = new _dataSources.Storage({
14
14
  adapter: _dataSources.LocalAdapter,
15
15
  cache: CACHE_LIMIT
16
16
  });
17
- let session = storage.get(SESSION_STORAGE_ID);
17
+ var session = storage.get(SESSION_STORAGE_ID);
18
18
 
19
19
  //TODO: it`s possible that this never occurs. Remove when don`t exists legacy CLUB
20
20
  if (!session) {
@@ -31,39 +31,36 @@ const fetchSession = function () {
31
31
  console.error('', error);
32
32
  }
33
33
  }
34
- const {
35
- accessToken,
36
- authorization,
37
- club: {
38
- id,
39
- name
40
- } = {},
41
- clubName,
42
- clubLevel,
43
- country,
44
- dateOfBirth,
45
- email,
46
- firstName,
47
- // ? Not sure we should get this data from legacy
48
- idClub: clubId,
49
- lastName,
50
- level,
51
- subscribed
52
- } = session || {};
34
+ var _ref = session || {},
35
+ accessToken = _ref.accessToken,
36
+ authorization = _ref.authorization,
37
+ _ref$club = _ref.club,
38
+ _ref$club2 = _ref$club === void 0 ? {} : _ref$club,
39
+ id = _ref$club2.id,
40
+ name = _ref$club2.name,
41
+ clubName = _ref.clubName,
42
+ clubLevel = _ref.clubLevel,
43
+ country = _ref.country,
44
+ dateOfBirth = _ref.dateOfBirth,
45
+ email = _ref.email,
46
+ firstName = _ref.firstName,
47
+ clubId = _ref.idClub,
48
+ lastName = _ref.lastName,
49
+ level = _ref.level,
50
+ subscribed = _ref.subscribed;
53
51
  return accessToken || authorization ? {
54
52
  authorization: authorization || accessToken,
55
53
  club: {
56
54
  id: id || clubId,
57
55
  name: name || clubName
58
56
  },
59
- country,
60
- dateOfBirth,
61
- email,
62
- firstName,
63
- lastName,
57
+ country: country,
58
+ dateOfBirth: dateOfBirth,
59
+ email: email,
60
+ firstName: firstName,
61
+ lastName: lastName,
64
62
  level: level || clubLevel,
65
- subscribed
63
+ subscribed: subscribed
66
64
  } : undefined;
67
65
  };
68
- exports.fetchSession = fetchSession;
69
66
  //# sourceMappingURL=fetchSession.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchSession.js","names":["_dataSources","require","CACHE_LIMIT","SESSION_STORAGE_LEGACY_ID","SESSION_STORAGE_ID","fetchSession","urlParams","arguments","length","undefined","storage","Storage","adapter","LocalAdapter","cache","session","get","SessionAdapter","JSON","parse","error","console","accessToken","authorization","club","id","name","clubName","clubLevel","country","dateOfBirth","email","firstName","idClub","clubId","lastName","level","subscribed","exports"],"sources":["../../src/helpers/fetchSession.js"],"sourcesContent":["import { LocalAdapter, SessionAdapter, Storage } from '@mirai/data-sources';\n\nconst CACHE_LIMIT = 1000 * 60 * 60 * 24 * 7;\nconst SESSION_STORAGE_LEGACY_ID = 'CLUB';\nconst SESSION_STORAGE_ID = 'MIRAI:SERVICE:USER:session';\n\nexport const fetchSession = (urlParams = {}) => {\n let storage = new Storage({ adapter: LocalAdapter, cache: CACHE_LIMIT });\n let session = storage.get(SESSION_STORAGE_ID);\n\n //TODO: it`s possible that this never occurs. Remove when don`t exists legacy CLUB\n if (!session) {\n storage = new Storage({ adapter: SessionAdapter });\n session = storage.get(SESSION_STORAGE_LEGACY_ID);\n }\n\n if (!session && urlParams.session) {\n try {\n session = JSON.parse(urlParams.session);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error('', error);\n }\n }\n\n const {\n accessToken,\n authorization,\n club: { id, name } = {},\n clubName,\n clubLevel,\n country,\n dateOfBirth,\n email,\n firstName,\n // ? Not sure we should get this data from legacy\n idClub: clubId,\n lastName,\n level,\n subscribed,\n } = session || {};\n\n return accessToken || authorization\n ? {\n authorization: authorization || accessToken,\n club: { id: id || clubId, name: name || clubName },\n country,\n dateOfBirth,\n email,\n firstName,\n lastName,\n level: level || clubLevel,\n subscribed,\n }\n : undefined;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,WAAW,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;AAC3C,MAAMC,yBAAyB,G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AI,EAAEA,IAAI,IAAIC;IAAS,CAAC;IAClDE,OAAO;IACPC,WAAW;IACXC,KAAK;IACLC,SAAS;IACTG,QAAQ;IACRC,KAAK,EAAEA,KAAK,IAAIR,SAAS;IACzBS;EACF,CAAC,GACD5B,SAAS;AACf,CAAC;AAAC6B,OAAA,CAAAjC,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"file":"fetchSession.js","names":["_dataSources","require","CACHE_LIMIT","SESSION_STORAGE_LEGACY_ID","SESSION_STORAGE_ID","fetchSession","exports","urlParams","arguments","length","undefined","storage","Storage","adapter","LocalAdapter","cache","session","get","SessionAdapter","JSON","parse","error","console","_ref","accessToken","authorization","_ref$club","club","_ref$club2","id","name","clubName","clubLevel","country","dateOfBirth","email","firstName","clubId","idClub","lastName","level","subscribed"],"sources":["../../src/helpers/fetchSession.js"],"sourcesContent":["import { LocalAdapter, SessionAdapter, Storage } from '@mirai/data-sources';\n\nconst CACHE_LIMIT = 1000 * 60 * 60 * 24 * 7;\nconst SESSION_STORAGE_LEGACY_ID = 'CLUB';\nconst SESSION_STORAGE_ID = 'MIRAI:SERVICE:USER:session';\n\nexport const fetchSession = (urlParams = {}) => {\n let storage = new Storage({ adapter: LocalAdapter, cache: CACHE_LIMIT });\n let session = storage.get(SESSION_STORAGE_ID);\n\n //TODO: it`s possible that this never occurs. Remove when don`t exists legacy CLUB\n if (!session) {\n storage = new Storage({ adapter: SessionAdapter });\n session = storage.get(SESSION_STORAGE_LEGACY_ID);\n }\n\n if (!session && urlParams.session) {\n try {\n session = JSON.parse(urlParams.session);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error('', error);\n }\n }\n\n const {\n accessToken,\n authorization,\n club: { id, name } = {},\n clubName,\n clubLevel,\n country,\n dateOfBirth,\n email,\n firstName,\n // ? Not sure we should get this data from legacy\n idClub: clubId,\n lastName,\n level,\n subscribed,\n } = session || {};\n\n return accessToken || authorization\n ? {\n authorization: authorization || accessToken,\n club: { id: id || clubId, name: name || clubName },\n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C,UAAA,GAAAF,SAAA,cAAiB,CAAC,CAAC,GAAAA,SAAA;IAAfG,EAAE,GAAAD,UAAA,CAAFC,EAAE;IAAEC,IAAI,GAAAF,UAAA,CAAJE,IAAI;IAChBC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,OAAO,GAAAV,IAAA,CAAPU,OAAO;IACPC,WAAW,GAAAX,IAAA,CAAXW,WAAW;IACXC,KAAK,GAAAZ,IAAA,CAALY,KAAK;IACLC,SAAS,GAAAb,IAAA,CAATa,SAAS;IAEDC,MAAM,GAAAd,IAAA,CAAde,MAAM;IACNC,QAAQ,GAAAhB,IAAA,CAARgB,QAAQ;IACRC,KAAK,GAAAjB,IAAA,CAALiB,KAAK;IACLC,UAAU,GAAAlB,IAAA,CAAVkB,UAAU;EAGZ,OAAOjB,WAAW,IAAIC,aAAa,GAC/B;IACEA,aAAa,EAAEA,aAAa,IAAID,WAAW;IAC3CG,IAAI,EAAE;MAAEE,EAAE,EAAEA,EAAE,IAAIQ,MAAM;MAAEP,IAAI,EAAEA,IAAI,IAAIC;IAAS,CAAC;IAClDE,OAAO,EAAPA,OAAO;IACPC,WAAW,EAAXA,WAAW;IACXC,KAAK,EAALA,KAAK;IACLC,SAAS,EAATA,SAAS;IACTG,QAAQ,EAARA,QAAQ;IACRC,KAAK,EAAEA,KAAK,IAAIR,SAAS;IACzBS,UAAU,EAAVA;EACF,CAAC,GACD/B,SAAS;AACf,CAAC"}
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.fetchUrlParams = void 0;
7
- const fetchUrlParams = function () {
8
- let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
7
+ var fetchUrlParams = exports.fetchUrlParams = function fetchUrlParams() {
8
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9
9
  return Object.fromEntries(new URLSearchParams(value));
10
10
  };
11
- exports.fetchUrlParams = fetchUrlParams;
12
11
  //# sourceMappingURL=fetchUrlParams.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchUrlParams.js","names":["fetchUrlParams","value","arguments","length","undefined","Object","fromEntries","URLSearchParams","exports"],"sources":["../../src/helpers/fetchUrlParams.js"],"sourcesContent":["export const fetchUrlParams = (value = '') => Object.fromEntries(new URLSearchParams(value));\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAG,SAAAA,CAAA;EAAA,IAACC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAAKG,MAAM,CAACC,WAAW,CAAC,IAAIC,eAAe,CAACN,KAAK,CAAC,CAAC;AAAA;AAACO,OAAA,CAAAR,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"file":"fetchUrlParams.js","names":["fetchUrlParams","exports","value","arguments","length","undefined","Object","fromEntries","URLSearchParams"],"sources":["../../src/helpers/fetchUrlParams.js"],"sourcesContent":["export const fetchUrlParams = (value = '') => Object.fromEntries(new URLSearchParams(value));\n"],"mappings":";;;;;;AAAO,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAA;EAAA,IAAIE,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAAKG,MAAM,CAACC,WAAW,CAAC,IAAIC,eAAe,CAACN,KAAK,CAAC,CAAC;AAAA"}
@@ -1,36 +1,41 @@
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); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.findComponents = void 0;
7
8
  var _package = require("../../package.json");
8
9
  var _components = require("../components");
9
- /* eslint-disable no-console */
10
-
11
- const NAMESPACE = '[data-mirai-component]';
12
- const COMPONENT_KEY = 'miraiComponent';
13
- const findComponents = () => {
14
- const components = [];
15
- [...document.querySelectorAll(NAMESPACE)].forEach(el => {
16
- const properties = Object.keys(el.dataset).reduce((current, name) => {
17
- const key = name === COMPONENT_KEY ? 'component' : name;
18
- return {
19
- ...current,
20
- [key]: el.dataset[name]
21
- };
10
+ 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; }
11
+ 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; }
12
+ 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; }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ 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); }
15
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
16
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+ 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); }
18
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
19
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
20
+ 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; } /* eslint-disable no-console */
21
+ var NAMESPACE = '[data-mirai-component]';
22
+ var COMPONENT_KEY = 'miraiComponent';
23
+ var findComponents = exports.findComponents = function findComponents() {
24
+ var components = [];
25
+ _toConsumableArray(document.querySelectorAll(NAMESPACE)).forEach(function (el) {
26
+ var properties = Object.keys(el.dataset).reduce(function (current, name) {
27
+ var key = name === COMPONENT_KEY ? 'component' : name;
28
+ return _objectSpread(_objectSpread({}, current), {}, _defineProperty({}, key, el.dataset[name]));
22
29
  }, {});
23
- const isComponent = Object.keys(_components.COMPONENTS).includes(properties?.component);
30
+ var isComponent = Object.keys(_components.COMPONENTS).includes(properties === null || properties === void 0 ? void 0 : properties.component);
24
31
  if (isComponent) {
25
- components.push({
26
- ...properties,
27
- el
28
- });
29
- } else if (properties?.component)
32
+ components.push(_objectSpread(_objectSpread({}, properties), {}, {
33
+ el: el
34
+ }));
35
+ } else if (properties !== null && properties !== void 0 && properties.component)
30
36
  // eslint-disable-next-line no-console
31
- console.error(`Component <${properties?.component}> is not part of Mirai:Engine v${_package.version}`);
37
+ console.error("Component <".concat(properties === null || properties === void 0 ? void 0 : properties.component, "> is not part of Mirai:Engine v").concat(_package.version));
32
38
  });
33
39
  return components;
34
40
  };
35
- exports.findComponents = findComponents;
36
41
  //# sourceMappingURL=findComponents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"findComponents.js","names":["_package","require","_components","NAMESPACE","COMPONENT_KEY","findComponents","components","document","querySelectorAll","forEach","el","properties","Object","keys","dataset","reduce","current","name","key","isComponent","COMPONENTS","includes","component","push","console","error","version","exports"],"sources":["../../src/helpers/findComponents.js"],"sourcesContent":["/* eslint-disable no-console */\nimport { version } from '../../package.json';\nimport { COMPONENTS } from '../components';\n\nconst NAMESPACE = '[data-mirai-component]';\nconst COMPONENT_KEY = 'miraiComponent';\n\nexport const findComponents = () => {\n const components = [];\n\n [...document.querySelectorAll(NAMESPACE)].forEach((el) => {\n const properties = Object.keys(el.dataset).reduce((current, name) => {\n const key = name === COMPONENT_KEY ? 'component' : name;\n\n return { ...current, [key]: el.dataset[name] };\n }, {});\n\n const isComponent = Object.keys(COMPONENTS).includes(properties?.component);\n if (isComponent) {\n components.push({ ...properties, el });\n } else if (properties?.component)\n // eslint-disable-next-line no-console\n console.error(`Component <${properties?.component}> is not part of Mirai:Engine v${version}`);\n });\n\n return components;\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAFA;;AAIA,MAAME,SAAS,GAAG,wBAAwB;AAC1C,MAAMC,aAAa,GAAG,gBAAgB;AAE/B,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMC,UAAU,GAAG,EAAE;EAErB,CAAC,GAAGC,QAAQ,CAACC,gBAAgB,CAACL,SAAS,CAAC,CAAC,CAACM,OAAO,CAAEC,EAAE,IAAK;IACxD,MAAMC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACH,EAAE,CAACI,OAAO,CAAC,CAACC,MAAM,CAAC,CAACC,OAAO,EAAEC,IAAI,KAAK;MACnE,MAAMC,GAAG,GAAGD,IAAI,KAAKb,aAAa,GAAG,WAAW,GAAGa,IAAI;MAEvD,OAAO;QAAE,GAAGD,OAAO;QAAE,CAACE,GAAG,GAAGR,EAAE,CAACI,OAAO,CAACG,IAAI;MAAE,CAAC;IAChD,CAAC,EAAE,CAAC,CAAC,CAAC;IAEN,MAAME,WAAW,GAAGP,MAAM,CAACC,IAAI,CAACO,sBAAU,CAAC,CAACC,QAAQ,CAACV,UAAU,EAAEW,SAAS,CAAC;IAC3E,IAAIH,WAAW,EAAE;MACfb,UAAU,CAACiB,IAAI,CAAC;QAAE,GAAGZ,UAAU;QAAED;MAAG,CAAC,CAAC;IACxC,CAAC,MAAM,IAAIC,UAAU,EAAEW,SAAS;MAC9B;MACAE,OAAO,CAACC,KAAK,CAAE,cAAad,UAAU,EAAEW,SAAU,kCAAiCI,gBAAQ,EAAC,CAAC;EACjG,CAAC,CAAC;EAEF,OAAOpB,UAAU;AACnB,CAAC;AAACqB,OAAA,CAAAtB,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"file":"findComponents.js","names":["_package","require","_components","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","_typeof","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","minLen","_arrayLikeToArray","n","prototype","toString","slice","constructor","name","Array","from","test","iter","iterator","isArray","len","i","arr2","NAMESPACE","COMPONENT_KEY","findComponents","exports","components","document","querySelectorAll","el","properties","dataset","reduce","current","isComponent","COMPONENTS","includes","component","console","error","concat","version"],"sources":["../../src/helpers/findComponents.js"],"sourcesContent":["/* eslint-disable no-console */\nimport { version } from '../../package.json';\nimport { COMPONENTS } from '../components';\n\nconst NAMESPACE = '[data-mirai-component]';\nconst COMPONENT_KEY = 'miraiComponent';\n\nexport const findComponents = () => {\n const components = [];\n\n [...document.querySelectorAll(NAMESPACE)].forEach((el) => {\n const properties = Object.keys(el.dataset).reduce((current, name) => {\n const key = name === COMPONENT_KEY ? 'component' : name;\n\n return { ...current, [key]: el.dataset[name] };\n }, {});\n\n const isComponent = Object.keys(COMPONENTS).includes(properties?.component);\n if (isComponent) {\n components.push({ ...properties, el });\n } else if (properties?.component)\n // eslint-disable-next-line no-console\n console.error(`Component <${properties?.component}> is not part of Mirai:Engine v${version}`);\n });\n\n return components;\n};\n"],"mappings":";;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAA2C,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,IAAAe,eAAA,CAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAA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E,EAAK;IACxD,IAAMC,UAAU,GAAGpE,MAAM,CAACC,IAAI,CAACkE,EAAE,CAACE,OAAO,CAAC,CAACC,MAAM,CAAC,UAACC,OAAO,EAAErB,IAAI,EAAK;MACnE,IAAMhC,GAAG,GAAGgC,IAAI,KAAKW,aAAa,GAAG,WAAW,GAAGX,IAAI;MAEvD,OAAAzC,aAAA,CAAAA,aAAA,KAAY8D,OAAO,OAAA1D,eAAA,KAAGK,GAAG,EAAGiD,EAAE,CAACE,OAAO,CAACnB,IAAI,CAAC;IAC9C,CAAC,EAAE,CAAC,CAAC,CAAC;IAEN,IAAMsB,WAAW,GAAGxE,MAAM,CAACC,IAAI,CAACwE,sBAAU,CAAC,CAACC,QAAQ,CAACN,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEO,SAAS,CAAC;IAC3E,IAAIH,WAAW,EAAE;MACfR,UAAU,CAACzD,IAAI,CAAAE,aAAA,CAAAA,aAAA,KAAM2D,UAAU;QAAED,EAAE,EAAFA;MAAE,EAAE,CAAC;IACxC,CAAC,MAAM,IAAIC,UAAU,aAAVA,UAAU,eAAVA,UAAU,CAAEO,SAAS;MAC9B;MACAC,OAAO,CAACC,KAAK,eAAAC,MAAA,CAAeV,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEO,SAAS,qCAAAG,MAAA,CAAkCC,gBAAO,CAAE,CAAC;EACjG,CAAC,CAAC;EAEF,OAAOf,UAAU;AACnB,CAAC"}
@@ -4,30 +4,57 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.findDangerousCSSRules = void 0;
7
- const NATIVE_TAGS = ['iframe', 'img', 'input', 'textarea', 'select', 'option', 'a', 'button', 'form', 'table', 'thead', 'tbody', 'tr', 'th', 'td'];
8
- const findDangerousCSSRules = () => {
9
- const {
10
- styleSheets
11
- } = document;
12
- let value = [];
13
- const checkRules = function (rules) {
14
- let fileName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'inline';
15
- const dangerousRules = Array.from(rules).filter(rule => {
16
- return rule.selectorText && NATIVE_TAGS.some(selector => new RegExp(`\\b${selector}\\b`).test(rule.selectorText));
17
- }).map(rule => ({
18
- selector: rule.selectorText,
19
- fileName
20
- }));
21
- value = [...value, ...dangerousRules];
22
- for (const rule of rules) {
23
- if (rule.cssRules) checkRules(rule.cssRules, fileName);
7
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ 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); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ 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; }
14
+ var NATIVE_TAGS = ['iframe', 'img', 'input', 'textarea', 'select', 'option', 'a', 'button', 'form', 'table', 'thead', 'tbody', 'tr', 'th', 'td'];
15
+ var findDangerousCSSRules = exports.findDangerousCSSRules = function findDangerousCSSRules() {
16
+ var _document = document,
17
+ styleSheets = _document.styleSheets;
18
+ var value = [];
19
+ var checkRules = function checkRules(rules) {
20
+ var fileName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'inline';
21
+ var dangerousRules = Array.from(rules).filter(function (rule) {
22
+ return rule.selectorText && NATIVE_TAGS.some(function (selector) {
23
+ return new RegExp("\\b".concat(selector, "\\b")).test(rule.selectorText);
24
+ });
25
+ }).map(function (rule) {
26
+ return {
27
+ selector: rule.selectorText,
28
+ fileName: fileName
29
+ };
30
+ });
31
+ value = [].concat(_toConsumableArray(value), _toConsumableArray(dangerousRules));
32
+ var _iterator = _createForOfIteratorHelper(rules),
33
+ _step;
34
+ try {
35
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
36
+ var rule = _step.value;
37
+ if (rule.cssRules) checkRules(rule.cssRules, fileName);
38
+ }
39
+ } catch (err) {
40
+ _iterator.e(err);
41
+ } finally {
42
+ _iterator.f();
24
43
  }
25
44
  };
26
- for (const styleSheet of styleSheets) {
27
- const rules = styleSheet.cssRules || styleSheet.rules;
28
- if (rules) checkRules(rules, styleSheet.href);
45
+ var _iterator2 = _createForOfIteratorHelper(styleSheets),
46
+ _step2;
47
+ try {
48
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
49
+ var styleSheet = _step2.value;
50
+ var rules = styleSheet.cssRules || styleSheet.rules;
51
+ if (rules) checkRules(rules, styleSheet.href);
52
+ }
53
+ } catch (err) {
54
+ _iterator2.e(err);
55
+ } finally {
56
+ _iterator2.f();
29
57
  }
30
58
  return value;
31
59
  };
32
- exports.findDangerousCSSRules = findDangerousCSSRules;
33
60
  //# sourceMappingURL=findDangerousCSSRules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"findDangerousCSSRules.js","names":["NATIVE_TAGS","findDangerousCSSRules","styleSheets","document","value","checkRules","rules","fileName","arguments","length","undefined","dangerousRules","Array","from","filter","rule","selectorText","some","selector","RegExp","test","map","cssRules","styleSheet","href","exports"],"sources":["../../src/helpers/findDangerousCSSRules.js"],"sourcesContent":["const NATIVE_TAGS = [\n 'iframe',\n 'img',\n 'input',\n 'textarea',\n 'select',\n 'option',\n 'a',\n 'button',\n 'form',\n 'table',\n 'thead',\n 'tbody',\n 'tr',\n 'th',\n 'td',\n];\n\nexport const findDangerousCSSRules = () => {\n const { styleSheets } = document;\n let value = [];\n\n const checkRules = (rules, fileName = 'inline') => {\n const dangerousRules = Array.from(rules)\n .filter((rule) => {\n return (\n rule.selectorText && NATIVE_TAGS.some((selector) => new RegExp(`\\\\b${selector}\\\\b`).test(rule.selectorText))\n );\n })\n .map((rule) => ({ selector: rule.selectorText, fileName }));\n\n value = [...value, ...dangerousRules];\n\n for (const rule of rules) {\n if (rule.cssRules) checkRules(rule.cssRules, fileName);\n }\n };\n\n for (const styleSheet of styleSheets) {\n const rules = styleSheet.cssRules || styleSheet.rules;\n if (rules) checkRules(rules, styleSheet.href);\n }\n\n return value;\n};\n"],"mappings":";;;;;;AAAA,MAAMA,WAAW,GAAG,CAClB,QAAQ,EACR,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,CACL;AAEM,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAM;IAAEC;EAAY,CAAC,GAAGC,QAAQ;EAChC,IAAIC,KAAK,GAAG,EAAE;EAEd,MAAMC,UAAU,GAAG,SAAAA,CAACC,KAAK,EAA0B;IAAA,IAAxBC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,QAAQ;IAC5C,MAAMG,cAAc,GAAGC,KAAK,CAACC,IAAI,CAACP,KAAK,CAAC,CACrCQ,MAAM,CAAEC,IAAI,IAAK;MAChB,OACEA,IAAI,CAACC,YAAY,IAAIhB,WAAW,CAACiB,IAAI,CAAEC,QAAQ,IAAK,IAAIC,MAAM,CAAE,MAAKD,QAAS,KAAI,CAAC,CAACE,IAAI,CAACL,IAAI,CAACC,YAAY,CAAC,CAAC;IAEhH,CAAC,CAAC,CACDK,GAAG,CAAEN,IAAI,KAAM;MAAEG,QAAQ,EAAEH,IAAI,CAACC,YAAY;MAAET;IAAS,CAAC,CAAC,CAAC;IAE7DH,KAAK,GAAG,CAAC,GAAGA,KAAK,EAAE,GAAGO,cAAc,CAAC;IAErC,KAAK,MAAMI,IAAI,IAAIT,KAAK,EAAE;MACxB,IAAIS,IAAI,CAACO,QAAQ,EAAEjB,UAAU,CAACU,IAAI,CAACO,QAAQ,EAAEf,QAAQ,CAAC;IACxD;EACF,CAAC;EAED,KAAK,MAAMgB,UAAU,IAAIrB,WAAW,EAAE;IACpC,MAAMI,KAAK,GAAGiB,UAAU,CAACD,QAAQ,IAAIC,UAAU,CAACjB,KAAK;IACrD,IAAIA,KAAK,EAAED,UAAU,CAACC,KAAK,EAAEiB,UAAU,CAACC,IAAI,CAAC;EAC/C;EAEA,OAAOpB,KAAK;AACd,CAAC;AAACqB,OAAA,CAAAxB,qBAAA,GAAAA,qBAAA"}
1
+ {"version":3,"file":"findDangerousCSSRules.js","names":["NATIVE_TAGS","findDangerousCSSRules","exports","_document","document","styleSheets","value","checkRules","rules","fileName","arguments","length","undefined","dangerousRules","Array","from","filter","rule","selectorText","some","selector","RegExp","concat","test","map","_toConsumableArray","_iterator","_createForOfIteratorHelper","_step","s","n","done","cssRules","err","e","f","_iterator2","_step2","styleSheet","href"],"sources":["../../src/helpers/findDangerousCSSRules.js"],"sourcesContent":["const NATIVE_TAGS = [\n 'iframe',\n 'img',\n 'input',\n 'textarea',\n 'select',\n 'option',\n 'a',\n 'button',\n 'form',\n 'table',\n 'thead',\n 'tbody',\n 'tr',\n 'th',\n 'td',\n];\n\nexport const findDangerousCSSRules = () => {\n const { styleSheets } = document;\n let value = [];\n\n const checkRules = (rules, fileName = 'inline') => {\n const dangerousRules = Array.from(rules)\n .filter((rule) => {\n return (\n rule.selectorText && NATIVE_TAGS.some((selector) => new RegExp(`\\\\b${selector}\\\\b`).test(rule.selectorText))\n );\n })\n .map((rule) => ({ selector: rule.selectorText, fileName }));\n\n value = [...value, ...dangerousRules];\n\n for (const rule of rules) {\n if (rule.cssRules) checkRules(rule.cssRules, fileName);\n }\n };\n\n for (const styleSheet of styleSheets) {\n const rules = styleSheet.cssRules || styleSheet.rules;\n if (rules) checkRules(rules, styleSheet.href);\n }\n\n return value;\n};\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAMA,WAAW,GAAG,CAClB,QAAQ,EACR,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,CACL;AAEM,IAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,SAAxBA,qBAAqBA,CAAA,EAAS;EACzC,IAAAE,SAAA,GAAwBC,QAAQ;IAAxBC,WAAW,GAAAF,SAAA,CAAXE,WAAW;EACnB,IAAIC,KAAK,GAAG,EAAE;EAEd,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,KAAK,EAA0B;IAAA,IAAxBC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SA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