@mirai/core 0.4.50 → 0.4.52

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 (1137) hide show
  1. package/build/Core.Notifications.js +1 -4
  2. package/build/Core.Notifications.js.map +1 -1
  3. package/build/Core.constants.js +1 -4
  4. package/build/Core.constants.js.map +1 -1
  5. package/build/Core.js +1 -4
  6. package/build/Core.js.map +1 -1
  7. package/build/Core.provider.js +1 -4
  8. package/build/Core.provider.js.map +1 -1
  9. package/build/components/BannerLoyalty/BannerLoyalty.constants.js +1 -4
  10. package/build/components/BannerLoyalty/BannerLoyalty.constants.js.map +1 -1
  11. package/build/components/BannerLoyalty/BannerLoyalty.js +1 -4
  12. package/build/components/BannerLoyalty/BannerLoyalty.js.map +1 -1
  13. package/build/components/BannerLoyalty/BannerLoyalty.l10n.js +1 -4
  14. package/build/components/BannerLoyalty/BannerLoyalty.l10n.js.map +1 -1
  15. package/build/components/BannerLoyalty/BannerLoyalty.skeleton.js +1 -4
  16. package/build/components/BannerLoyalty/BannerLoyalty.skeleton.js.map +1 -1
  17. package/build/components/BannerLoyalty/index.js +1 -4
  18. package/build/components/BannerLoyalty/index.js.map +1 -1
  19. package/build/components/Booking/Booking.constants.js +1 -4
  20. package/build/components/Booking/Booking.constants.js.map +1 -1
  21. package/build/components/Booking/Booking.js +3 -8
  22. package/build/components/Booking/Booking.js.map +1 -1
  23. package/build/components/Booking/Booking.l10n.js +1 -4
  24. package/build/components/Booking/Booking.l10n.js.map +1 -1
  25. package/build/components/Booking/Booking.skeleton.js +1 -4
  26. package/build/components/Booking/Booking.skeleton.js.map +1 -1
  27. package/build/components/Booking/components/Field/Field.js +1 -4
  28. package/build/components/Booking/components/Field/Field.js.map +1 -1
  29. package/build/components/Booking/components/Field/Field.l10n.js +1 -4
  30. package/build/components/Booking/components/Field/Field.l10n.js.map +1 -1
  31. package/build/components/Booking/components/Field/index.js +1 -4
  32. package/build/components/Booking/components/Field/index.js.map +1 -1
  33. package/build/components/Booking/components/Hotelverse/Hotelverse.js +1 -4
  34. package/build/components/Booking/components/Hotelverse/Hotelverse.js.map +1 -1
  35. package/build/components/Booking/components/Hotelverse/Hotelverse.l10n.js +1 -4
  36. package/build/components/Booking/components/Hotelverse/Hotelverse.l10n.js.map +1 -1
  37. package/build/components/Booking/components/Hotelverse/index.js +1 -4
  38. package/build/components/Booking/components/Hotelverse/index.js.map +1 -1
  39. package/build/components/Booking/components/index.js +1 -4
  40. package/build/components/Booking/components/index.js.map +1 -1
  41. package/build/components/Booking/helpers/getButtonPaymentKey.js +1 -4
  42. package/build/components/Booking/helpers/getButtonPaymentKey.js.map +1 -1
  43. package/build/components/Booking/helpers/getButtonPaymentKey.l10n.js +1 -4
  44. package/build/components/Booking/helpers/getButtonPaymentKey.l10n.js.map +1 -1
  45. package/build/components/Booking/helpers/index.js +1 -4
  46. package/build/components/Booking/helpers/index.js.map +1 -1
  47. package/build/components/Booking/index.js +1 -4
  48. package/build/components/Booking/index.js.map +1 -1
  49. package/build/components/Booking/partials/Booking.FormCancel.js +1 -4
  50. package/build/components/Booking/partials/Booking.FormCancel.js.map +1 -1
  51. package/build/components/Booking/partials/Booking.FormEdit.js +1 -4
  52. package/build/components/Booking/partials/Booking.FormEdit.js.map +1 -1
  53. package/build/components/Booking/partials/Booking.FormResend.js +1 -4
  54. package/build/components/Booking/partials/Booking.FormResend.js.map +1 -1
  55. package/build/components/Booking/partials/Booking.Information.js +1 -4
  56. package/build/components/Booking/partials/Booking.Information.js.map +1 -1
  57. package/build/components/Booking/partials/Booking.Menu.js +1 -4
  58. package/build/components/Booking/partials/Booking.Menu.js.map +1 -1
  59. package/build/components/Booking/partials/Booking.Modal.js +1 -4
  60. package/build/components/Booking/partials/Booking.Modal.js.map +1 -1
  61. package/build/components/Booking/partials/Booking.ModalAgency.js +1 -4
  62. package/build/components/Booking/partials/Booking.ModalAgency.js.map +1 -1
  63. package/build/components/Booking/partials/Booking.Payment.js +1 -4
  64. package/build/components/Booking/partials/Booking.Payment.js.map +1 -1
  65. package/build/components/Booking/partials/index.js +1 -4
  66. package/build/components/Booking/partials/index.js.map +1 -1
  67. package/build/components/BookingQuery/BookingQuery.constants.js +1 -4
  68. package/build/components/BookingQuery/BookingQuery.constants.js.map +1 -1
  69. package/build/components/BookingQuery/BookingQuery.js +1 -4
  70. package/build/components/BookingQuery/BookingQuery.js.map +1 -1
  71. package/build/components/BookingQuery/BookingQuery.l10n.js +1 -4
  72. package/build/components/BookingQuery/BookingQuery.l10n.js.map +1 -1
  73. package/build/components/BookingQuery/helpers/getErrorText.js +1 -4
  74. package/build/components/BookingQuery/helpers/getErrorText.js.map +1 -1
  75. package/build/components/BookingQuery/helpers/index.js +1 -4
  76. package/build/components/BookingQuery/helpers/index.js.map +1 -1
  77. package/build/components/BookingQuery/index.js +1 -4
  78. package/build/components/BookingQuery/index.js.map +1 -1
  79. package/build/components/ButtonFinder/ButtonFinder.js +1 -4
  80. package/build/components/ButtonFinder/ButtonFinder.js.map +1 -1
  81. package/build/components/ButtonFinder/ButtonFinder.l10n.js +1 -4
  82. package/build/components/ButtonFinder/ButtonFinder.l10n.js.map +1 -1
  83. package/build/components/ButtonFinder/index.js +1 -4
  84. package/build/components/ButtonFinder/index.js.map +1 -1
  85. package/build/components/Chat/Chat.ButtonAvatar.js +1 -4
  86. package/build/components/Chat/Chat.ButtonAvatar.js.map +1 -1
  87. package/build/components/Chat/Chat.Header.js +1 -4
  88. package/build/components/Chat/Chat.Header.js.map +1 -1
  89. package/build/components/Chat/Chat.constants.js +1 -4
  90. package/build/components/Chat/Chat.constants.js.map +1 -1
  91. package/build/components/Chat/Chat.js +1 -4
  92. package/build/components/Chat/Chat.js.map +1 -1
  93. package/build/components/Chat/Chat.l10n.js +1 -4
  94. package/build/components/Chat/Chat.l10n.js.map +1 -1
  95. package/build/components/Chat/components/Avatar/Avatar.js +1 -4
  96. package/build/components/Chat/components/Avatar/Avatar.js.map +1 -1
  97. package/build/components/Chat/components/Avatar/index.js +1 -4
  98. package/build/components/Chat/components/Avatar/index.js.map +1 -1
  99. package/build/components/Chat/components/Input/Input.js +1 -4
  100. package/build/components/Chat/components/Input/Input.js.map +1 -1
  101. package/build/components/Chat/components/Input/Input.l10n.js +1 -4
  102. package/build/components/Chat/components/Input/Input.l10n.js.map +1 -1
  103. package/build/components/Chat/components/Input/index.js +1 -4
  104. package/build/components/Chat/components/Input/index.js.map +1 -1
  105. package/build/components/Chat/components/InputRich/InputRich.List.js +1 -4
  106. package/build/components/Chat/components/InputRich/InputRich.List.js.map +1 -1
  107. package/build/components/Chat/components/InputRich/InputRich.js +1 -4
  108. package/build/components/Chat/components/InputRich/InputRich.js.map +1 -1
  109. package/build/components/Chat/components/InputRich/InputRich.l10n.js +1 -4
  110. package/build/components/Chat/components/InputRich/InputRich.l10n.js.map +1 -1
  111. package/build/components/Chat/components/InputRich/helpers/getVerboseList.js +1 -4
  112. package/build/components/Chat/components/InputRich/helpers/getVerboseList.js.map +1 -1
  113. package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js +1 -4
  114. package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js.map +1 -1
  115. package/build/components/Chat/components/InputRich/helpers/index.js +1 -4
  116. package/build/components/Chat/components/InputRich/helpers/index.js.map +1 -1
  117. package/build/components/Chat/components/InputRich/index.js +1 -4
  118. package/build/components/Chat/components/InputRich/index.js.map +1 -1
  119. package/build/components/Chat/components/Message/Message.constants.js +1 -4
  120. package/build/components/Chat/components/Message/Message.constants.js.map +1 -1
  121. package/build/components/Chat/components/Message/Message.js +1 -4
  122. package/build/components/Chat/components/Message/Message.js.map +1 -1
  123. package/build/components/Chat/components/Message/components/Booking.js +1 -4
  124. package/build/components/Chat/components/Message/components/Booking.js.map +1 -1
  125. package/build/components/Chat/components/Message/components/Card.js +1 -4
  126. package/build/components/Chat/components/Message/components/Card.js.map +1 -1
  127. package/build/components/Chat/components/Message/components/Environment.js +1 -4
  128. package/build/components/Chat/components/Message/components/Environment.js.map +1 -1
  129. package/build/components/Chat/components/Message/components/Typewriter.js +1 -4
  130. package/build/components/Chat/components/Message/components/Typewriter.js.map +1 -1
  131. package/build/components/Chat/components/Message/components/index.js +1 -4
  132. package/build/components/Chat/components/Message/components/index.js.map +1 -1
  133. package/build/components/Chat/components/Message/helpers/getActionIcon.js +1 -4
  134. package/build/components/Chat/components/Message/helpers/getActionIcon.js.map +1 -1
  135. package/build/components/Chat/components/Message/helpers/getTime.js +1 -4
  136. package/build/components/Chat/components/Message/helpers/getTime.js.map +1 -1
  137. package/build/components/Chat/components/Message/helpers/index.js +1 -4
  138. package/build/components/Chat/components/Message/helpers/index.js.map +1 -1
  139. package/build/components/Chat/components/Message/index.js +1 -4
  140. package/build/components/Chat/components/Message/index.js.map +1 -1
  141. package/build/components/Chat/components/Message/intents/BookingQuery.js +1 -4
  142. package/build/components/Chat/components/Message/intents/BookingQuery.js.map +1 -1
  143. package/build/components/Chat/components/Message/intents/HotelInfo.js +1 -4
  144. package/build/components/Chat/components/Message/intents/HotelInfo.js.map +1 -1
  145. package/build/components/Chat/components/Message/intents/Offers.js +1 -4
  146. package/build/components/Chat/components/Message/intents/Offers.js.map +1 -1
  147. package/build/components/Chat/components/Message/intents/Unknown.js +1 -4
  148. package/build/components/Chat/components/Message/intents/Unknown.js.map +1 -1
  149. package/build/components/Chat/components/Message/intents/index.js +1 -4
  150. package/build/components/Chat/components/Message/intents/index.js.map +1 -1
  151. package/build/components/Chat/components/index.js +1 -4
  152. package/build/components/Chat/components/index.js.map +1 -1
  153. package/build/components/Chat/helpers/audioNotification.js +1 -4
  154. package/build/components/Chat/helpers/audioNotification.js.map +1 -1
  155. package/build/components/Chat/helpers/getVerboseDate.js +1 -4
  156. package/build/components/Chat/helpers/getVerboseDate.js.map +1 -1
  157. package/build/components/Chat/helpers/index.js +1 -4
  158. package/build/components/Chat/helpers/index.js.map +1 -1
  159. package/build/components/Chat/index.js +1 -4
  160. package/build/components/Chat/index.js.map +1 -1
  161. package/build/components/Checkout/Checkout.constants.js +1 -4
  162. package/build/components/Checkout/Checkout.constants.js.map +1 -1
  163. package/build/components/Checkout/Checkout.js +1 -4
  164. package/build/components/Checkout/Checkout.js.map +1 -1
  165. package/build/components/Checkout/Checkout.l10n.js +1 -4
  166. package/build/components/Checkout/Checkout.l10n.js.map +1 -1
  167. package/build/components/Checkout/Checkout.skeleton.js +1 -4
  168. package/build/components/Checkout/Checkout.skeleton.js.map +1 -1
  169. package/build/components/Checkout/components/InputRadio/InputRadio.js +1 -4
  170. package/build/components/Checkout/components/InputRadio/InputRadio.js.map +1 -1
  171. package/build/components/Checkout/components/InputRadio/index.js +1 -4
  172. package/build/components/Checkout/components/InputRadio/index.js.map +1 -1
  173. package/build/components/Checkout/components/index.js +1 -4
  174. package/build/components/Checkout/components/index.js.map +1 -1
  175. package/build/components/Checkout/helpers/getButtonPaymentKey.js +1 -4
  176. package/build/components/Checkout/helpers/getButtonPaymentKey.js.map +1 -1
  177. package/build/components/Checkout/helpers/getButtonPaymentKey.l10n.js +1 -4
  178. package/build/components/Checkout/helpers/getButtonPaymentKey.l10n.js.map +1 -1
  179. package/build/components/Checkout/helpers/getFieldProps.js +1 -4
  180. package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
  181. package/build/components/Checkout/helpers/getSchemaProps.js +1 -4
  182. package/build/components/Checkout/helpers/getSchemaProps.js.map +1 -1
  183. package/build/components/Checkout/helpers/getVariant.js +1 -4
  184. package/build/components/Checkout/helpers/getVariant.js.map +1 -1
  185. package/build/components/Checkout/helpers/index.js +1 -4
  186. package/build/components/Checkout/helpers/index.js.map +1 -1
  187. package/build/components/Checkout/helpers/testDNI.js +1 -4
  188. package/build/components/Checkout/helpers/testDNI.js.map +1 -1
  189. package/build/components/Checkout/index.js +1 -4
  190. package/build/components/Checkout/index.js.map +1 -1
  191. package/build/components/Checkout/partials/Checkout.Confirmation.js +1 -4
  192. package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
  193. package/build/components/Checkout/partials/Checkout.Form.js +1 -4
  194. package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
  195. package/build/components/Checkout/partials/index.js +1 -4
  196. package/build/components/Checkout/partials/index.js.map +1 -1
  197. package/build/components/Deals/Deals.Calendar.js +1 -4
  198. package/build/components/Deals/Deals.Calendar.js.map +1 -1
  199. package/build/components/Deals/Deals.constants.js +1 -4
  200. package/build/components/Deals/Deals.constants.js.map +1 -1
  201. package/build/components/Deals/Deals.js +1 -4
  202. package/build/components/Deals/Deals.js.map +1 -1
  203. package/build/components/Deals/Deals.l10n.js +1 -4
  204. package/build/components/Deals/Deals.l10n.js.map +1 -1
  205. package/build/components/Deals/Deals.skeleton.js +1 -4
  206. package/build/components/Deals/Deals.skeleton.js.map +1 -1
  207. package/build/components/Deals/helpers/calcFromDate.js +1 -4
  208. package/build/components/Deals/helpers/calcFromDate.js.map +1 -1
  209. package/build/components/Deals/helpers/calcMinStay.js +1 -4
  210. package/build/components/Deals/helpers/calcMinStay.js.map +1 -1
  211. package/build/components/Deals/helpers/calcNightWithDeals.js +1 -4
  212. package/build/components/Deals/helpers/calcNightWithDeals.js.map +1 -1
  213. package/build/components/Deals/helpers/calcToDate.js +1 -4
  214. package/build/components/Deals/helpers/calcToDate.js.map +1 -1
  215. package/build/components/Deals/helpers/calcTooltips.js +1 -4
  216. package/build/components/Deals/helpers/calcTooltips.js.map +1 -1
  217. package/build/components/Deals/helpers/getCurrency.js +1 -4
  218. package/build/components/Deals/helpers/getCurrency.js.map +1 -1
  219. package/build/components/Deals/helpers/index.js +1 -4
  220. package/build/components/Deals/helpers/index.js.map +1 -1
  221. package/build/components/Deals/helpers/validate.js +1 -4
  222. package/build/components/Deals/helpers/validate.js.map +1 -1
  223. package/build/components/Deals/index.js +1 -4
  224. package/build/components/Deals/index.js.map +1 -1
  225. package/build/components/Environment/Environment.State.js +1 -4
  226. package/build/components/Environment/Environment.State.js.map +1 -1
  227. package/build/components/Environment/Environment.js +1 -4
  228. package/build/components/Environment/Environment.js.map +1 -1
  229. package/build/components/Environment/index.js +1 -4
  230. package/build/components/Environment/index.js.map +1 -1
  231. package/build/components/Finder/Finder.compact.js +1 -4
  232. package/build/components/Finder/Finder.compact.js.map +1 -1
  233. package/build/components/Finder/Finder.constants.js +1 -4
  234. package/build/components/Finder/Finder.constants.js.map +1 -1
  235. package/build/components/Finder/Finder.js +1 -4
  236. package/build/components/Finder/Finder.js.map +1 -1
  237. package/build/components/Finder/Finder.l10n.js +1 -4
  238. package/build/components/Finder/Finder.l10n.js.map +1 -1
  239. package/build/components/Finder/components/Calendar/Calendar.constants.js +1 -4
  240. package/build/components/Finder/components/Calendar/Calendar.constants.js.map +1 -1
  241. package/build/components/Finder/components/Calendar/Calendar.js +1 -4
  242. package/build/components/Finder/components/Calendar/Calendar.js.map +1 -1
  243. package/build/components/Finder/components/Calendar/Calendar.l10n.js +1 -4
  244. package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +1 -1
  245. package/build/components/Finder/components/Calendar/helpers/calcMinStay.js +1 -4
  246. package/build/components/Finder/components/Calendar/helpers/calcMinStay.js.map +1 -1
  247. package/build/components/Finder/components/Calendar/helpers/calcTooltips.js +1 -4
  248. package/build/components/Finder/components/Calendar/helpers/calcTooltips.js.map +1 -1
  249. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +1 -4
  250. package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +1 -1
  251. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +1 -4
  252. package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +1 -1
  253. package/build/components/Finder/components/Calendar/helpers/index.js +1 -4
  254. package/build/components/Finder/components/Calendar/helpers/index.js.map +1 -1
  255. package/build/components/Finder/components/Calendar/index.js +1 -4
  256. package/build/components/Finder/components/Calendar/index.js.map +1 -1
  257. package/build/components/Finder/components/Places/Places.js +1 -4
  258. package/build/components/Finder/components/Places/Places.js.map +1 -1
  259. package/build/components/Finder/components/Places/Places.l10n.js +1 -4
  260. package/build/components/Finder/components/Places/Places.l10n.js.map +1 -1
  261. package/build/components/Finder/components/Places/helpers/calcColumns.js +1 -4
  262. package/build/components/Finder/components/Places/helpers/calcColumns.js.map +1 -1
  263. package/build/components/Finder/components/Places/helpers/index.js +1 -4
  264. package/build/components/Finder/components/Places/helpers/index.js.map +1 -1
  265. package/build/components/Finder/components/Places/index.js +1 -4
  266. package/build/components/Finder/components/Places/index.js.map +1 -1
  267. package/build/components/Finder/components/index.js +1 -4
  268. package/build/components/Finder/components/index.js.map +1 -1
  269. package/build/components/Finder/helpers/getAvailableWidth.js +1 -4
  270. package/build/components/Finder/helpers/getAvailableWidth.js.map +1 -1
  271. package/build/components/Finder/helpers/getDataSource.js +1 -4
  272. package/build/components/Finder/helpers/getDataSource.js.map +1 -1
  273. package/build/components/Finder/helpers/getFieldPosition.js +1 -4
  274. package/build/components/Finder/helpers/getFieldPosition.js.map +1 -1
  275. package/build/components/Finder/helpers/getForwarderUrl.js +1 -4
  276. package/build/components/Finder/helpers/getForwarderUrl.js.map +1 -1
  277. package/build/components/Finder/helpers/getHotels.js +1 -4
  278. package/build/components/Finder/helpers/getHotels.js.map +1 -1
  279. package/build/components/Finder/helpers/getOccupationDataSource.js +1 -4
  280. package/build/components/Finder/helpers/getOccupationDataSource.js.map +1 -1
  281. package/build/components/Finder/helpers/getPlaceCaption.js +1 -4
  282. package/build/components/Finder/helpers/getPlaceCaption.js.map +1 -1
  283. package/build/components/Finder/helpers/getPlacesOptions.js +1 -4
  284. package/build/components/Finder/helpers/getPlacesOptions.js.map +1 -1
  285. package/build/components/Finder/helpers/index.js +1 -4
  286. package/build/components/Finder/helpers/index.js.map +1 -1
  287. package/build/components/Finder/helpers/parseCalendarProps.js +1 -4
  288. package/build/components/Finder/helpers/parseCalendarProps.js.map +1 -1
  289. package/build/components/Finder/helpers/parseValue.js +1 -4
  290. package/build/components/Finder/helpers/parseValue.js.map +1 -1
  291. package/build/components/Finder/helpers/setStorage.js +1 -4
  292. package/build/components/Finder/helpers/setStorage.js.map +1 -1
  293. package/build/components/Finder/helpers/validate.js +1 -4
  294. package/build/components/Finder/helpers/validate.js.map +1 -1
  295. package/build/components/Finder/index.js +1 -4
  296. package/build/components/Finder/index.js.map +1 -1
  297. package/build/components/Header/Header.js +1 -4
  298. package/build/components/Header/Header.js.map +1 -1
  299. package/build/components/Header/Header.l10n.js +1 -4
  300. package/build/components/Header/Header.l10n.js.map +1 -1
  301. package/build/components/Header/components/BookingProcess/BookingProcess.js +1 -4
  302. package/build/components/Header/components/BookingProcess/BookingProcess.js.map +1 -1
  303. package/build/components/Header/components/BookingProcess/BookingProcess.l10n.js +1 -4
  304. package/build/components/Header/components/BookingProcess/BookingProcess.l10n.js.map +1 -1
  305. package/build/components/Header/components/BookingProcess/index.js +1 -4
  306. package/build/components/Header/components/BookingProcess/index.js.map +1 -1
  307. package/build/components/Header/components/index.js +1 -4
  308. package/build/components/Header/components/index.js.map +1 -1
  309. package/build/components/Header/index.js +1 -4
  310. package/build/components/Header/index.js.map +1 -1
  311. package/build/components/Profile/Profile.constants.js +1 -4
  312. package/build/components/Profile/Profile.constants.js.map +1 -1
  313. package/build/components/Profile/Profile.js +1 -4
  314. package/build/components/Profile/Profile.js.map +1 -1
  315. package/build/components/Profile/components/Bookings/Bookings.Search.js +1 -4
  316. package/build/components/Profile/components/Bookings/Bookings.Search.js.map +1 -1
  317. package/build/components/Profile/components/Bookings/Bookings.constants.js +1 -4
  318. package/build/components/Profile/components/Bookings/Bookings.constants.js.map +1 -1
  319. package/build/components/Profile/components/Bookings/Bookings.js +1 -4
  320. package/build/components/Profile/components/Bookings/Bookings.js.map +1 -1
  321. package/build/components/Profile/components/Bookings/Bookings.l10n.js +1 -4
  322. package/build/components/Profile/components/Bookings/Bookings.l10n.js.map +1 -1
  323. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +1 -4
  324. package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +1 -1
  325. package/build/components/Profile/components/Bookings/helpers/index.js +1 -4
  326. package/build/components/Profile/components/Bookings/helpers/index.js.map +1 -1
  327. package/build/components/Profile/components/Bookings/index.js +1 -4
  328. package/build/components/Profile/components/Bookings/index.js.map +1 -1
  329. package/build/components/Profile/components/Settings/Settings.Account.js +1 -4
  330. package/build/components/Profile/components/Settings/Settings.Account.js.map +1 -1
  331. package/build/components/Profile/components/Settings/Settings.Password.js +1 -4
  332. package/build/components/Profile/components/Settings/Settings.Password.js.map +1 -1
  333. package/build/components/Profile/components/Settings/Settings.Signout.js +1 -4
  334. package/build/components/Profile/components/Settings/Settings.Signout.js.map +1 -1
  335. package/build/components/Profile/components/Settings/Settings.constants.js +1 -4
  336. package/build/components/Profile/components/Settings/Settings.constants.js.map +1 -1
  337. package/build/components/Profile/components/Settings/Settings.js +1 -4
  338. package/build/components/Profile/components/Settings/Settings.js.map +1 -1
  339. package/build/components/Profile/components/Settings/Settings.l10n.js +1 -4
  340. package/build/components/Profile/components/Settings/Settings.l10n.js.map +1 -1
  341. package/build/components/Profile/components/Settings/index.js +1 -4
  342. package/build/components/Profile/components/Settings/index.js.map +1 -1
  343. package/build/components/Profile/components/index.js +1 -4
  344. package/build/components/Profile/components/index.js.map +1 -1
  345. package/build/components/Profile/index.js +1 -4
  346. package/build/components/Profile/index.js.map +1 -1
  347. package/build/components/Rates/Rates.Content.js +1 -4
  348. package/build/components/Rates/Rates.Content.js.map +1 -1
  349. package/build/components/Rates/Rates.Footer.js +1 -4
  350. package/build/components/Rates/Rates.Footer.js.map +1 -1
  351. package/build/components/Rates/Rates.Header.js +1 -4
  352. package/build/components/Rates/Rates.Header.js.map +1 -1
  353. package/build/components/Rates/Rates.RoomSelector.js +1 -4
  354. package/build/components/Rates/Rates.RoomSelector.js.map +1 -1
  355. package/build/components/Rates/Rates.Skeleton.js +1 -4
  356. package/build/components/Rates/Rates.Skeleton.js.map +1 -1
  357. package/build/components/Rates/Rates.Unavailability.js +1 -4
  358. package/build/components/Rates/Rates.Unavailability.js.map +1 -1
  359. package/build/components/Rates/Rates.constants.js +1 -4
  360. package/build/components/Rates/Rates.constants.js.map +1 -1
  361. package/build/components/Rates/Rates.js +1 -4
  362. package/build/components/Rates/Rates.js.map +1 -1
  363. package/build/components/Rates/Rates.l10n.js +1 -4
  364. package/build/components/Rates/Rates.l10n.js.map +1 -1
  365. package/build/components/Rates/components/CardHotel/CardHotel.js +1 -4
  366. package/build/components/Rates/components/CardHotel/CardHotel.js.map +1 -1
  367. package/build/components/Rates/components/CardHotel/CardHotel.l10n.js +1 -4
  368. package/build/components/Rates/components/CardHotel/CardHotel.l10n.js.map +1 -1
  369. package/build/components/Rates/components/CardHotel/helpers/getHotelUrl.js +1 -4
  370. package/build/components/Rates/components/CardHotel/helpers/getHotelUrl.js.map +1 -1
  371. package/build/components/Rates/components/CardHotel/helpers/index.js +1 -4
  372. package/build/components/Rates/components/CardHotel/helpers/index.js.map +1 -1
  373. package/build/components/Rates/components/CardHotel/index.js +1 -4
  374. package/build/components/Rates/components/CardHotel/index.js.map +1 -1
  375. package/build/components/Rates/components/Filters/Filters.Amenity.js +1 -4
  376. package/build/components/Rates/components/Filters/Filters.Amenity.js.map +1 -1
  377. package/build/components/Rates/components/Filters/Filters.BookingOption.js +1 -4
  378. package/build/components/Rates/components/Filters/Filters.BookingOption.js.map +1 -1
  379. package/build/components/Rates/components/Filters/Filters.Button.js +1 -4
  380. package/build/components/Rates/components/Filters/Filters.Button.js.map +1 -1
  381. package/build/components/Rates/components/Filters/Filters.constants.js +1 -4
  382. package/build/components/Rates/components/Filters/Filters.constants.js.map +1 -1
  383. package/build/components/Rates/components/Filters/Filters.js +1 -4
  384. package/build/components/Rates/components/Filters/Filters.js.map +1 -1
  385. package/build/components/Rates/components/Filters/Filters.l10n.js +1 -4
  386. package/build/components/Rates/components/Filters/Filters.l10n.js.map +1 -1
  387. package/build/components/Rates/components/Filters/components/InputRange/InputRange.js +1 -4
  388. package/build/components/Rates/components/Filters/components/InputRange/InputRange.js.map +1 -1
  389. package/build/components/Rates/components/Filters/components/InputRange/InputRange.l10n.js +1 -4
  390. package/build/components/Rates/components/Filters/components/InputRange/InputRange.l10n.js.map +1 -1
  391. package/build/components/Rates/components/Filters/components/InputRange/helpers/getHistogram.js +1 -4
  392. package/build/components/Rates/components/Filters/components/InputRange/helpers/getHistogram.js.map +1 -1
  393. package/build/components/Rates/components/Filters/components/InputRange/helpers/index.js +1 -4
  394. package/build/components/Rates/components/Filters/components/InputRange/helpers/index.js.map +1 -1
  395. package/build/components/Rates/components/Filters/components/InputRange/index.js +1 -4
  396. package/build/components/Rates/components/Filters/components/InputRange/index.js.map +1 -1
  397. package/build/components/Rates/components/Filters/components/index.js +1 -4
  398. package/build/components/Rates/components/Filters/components/index.js.map +1 -1
  399. package/build/components/Rates/components/Filters/helpers/countFilters.js +1 -4
  400. package/build/components/Rates/components/Filters/helpers/countFilters.js.map +1 -1
  401. package/build/components/Rates/components/Filters/helpers/getAvailableFilters.js +1 -4
  402. package/build/components/Rates/components/Filters/helpers/getAvailableFilters.js.map +1 -1
  403. package/build/components/Rates/components/Filters/helpers/getStrictSearch.js +1 -4
  404. package/build/components/Rates/components/Filters/helpers/getStrictSearch.js.map +1 -1
  405. package/build/components/Rates/components/Filters/helpers/index.js +1 -4
  406. package/build/components/Rates/components/Filters/helpers/index.js.map +1 -1
  407. package/build/components/Rates/components/Filters/index.js +1 -4
  408. package/build/components/Rates/components/Filters/index.js.map +1 -1
  409. package/build/components/Rates/components/Hotelverse/Hotelverse.js +1 -4
  410. package/build/components/Rates/components/Hotelverse/Hotelverse.js.map +1 -1
  411. package/build/components/Rates/components/Hotelverse/Hotelverse.l10n.js +1 -4
  412. package/build/components/Rates/components/Hotelverse/Hotelverse.l10n.js.map +1 -1
  413. package/build/components/Rates/components/Hotelverse/index.js +1 -4
  414. package/build/components/Rates/components/Hotelverse/index.js.map +1 -1
  415. package/build/components/Rates/components/Item/Item.Preview.js +1 -4
  416. package/build/components/Rates/components/Item/Item.Preview.js.map +1 -1
  417. package/build/components/Rates/components/Item/Item.Rates.js +1 -4
  418. package/build/components/Rates/components/Item/Item.Rates.js.map +1 -1
  419. package/build/components/Rates/components/Item/Item.Summary.js +1 -4
  420. package/build/components/Rates/components/Item/Item.Summary.js.map +1 -1
  421. package/build/components/Rates/components/Item/Item.js +1 -4
  422. package/build/components/Rates/components/Item/Item.js.map +1 -1
  423. package/build/components/Rates/components/Item/Item.l10n.js +1 -4
  424. package/build/components/Rates/components/Item/Item.l10n.js.map +1 -1
  425. package/build/components/Rates/components/Item/components/Amenities/Amenities.js +1 -4
  426. package/build/components/Rates/components/Item/components/Amenities/Amenities.js.map +1 -1
  427. package/build/components/Rates/components/Item/components/Amenities/Amenities.l10n.js +1 -4
  428. package/build/components/Rates/components/Item/components/Amenities/Amenities.l10n.js.map +1 -1
  429. package/build/components/Rates/components/Item/components/Amenities/index.js +1 -4
  430. package/build/components/Rates/components/Item/components/Amenities/index.js.map +1 -1
  431. package/build/components/Rates/components/Item/components/Countdown/Countdown.js +1 -4
  432. package/build/components/Rates/components/Item/components/Countdown/Countdown.js.map +1 -1
  433. package/build/components/Rates/components/Item/components/Countdown/index.js +1 -4
  434. package/build/components/Rates/components/Item/components/Countdown/index.js.map +1 -1
  435. package/build/components/Rates/components/Item/components/Features/Features.js +1 -4
  436. package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
  437. package/build/components/Rates/components/Item/components/Features/index.js +1 -4
  438. package/build/components/Rates/components/Item/components/Features/index.js.map +1 -1
  439. package/build/components/Rates/components/Item/components/ModalCancellationInfo/ModalCancellationInfo.js +1 -4
  440. package/build/components/Rates/components/Item/components/ModalCancellationInfo/ModalCancellationInfo.js.map +1 -1
  441. package/build/components/Rates/components/Item/components/ModalCancellationInfo/index.js +1 -4
  442. package/build/components/Rates/components/Item/components/ModalCancellationInfo/index.js.map +1 -1
  443. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +1 -4
  444. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
  445. package/build/components/Rates/components/Item/components/ModalInfo/index.js +1 -4
  446. package/build/components/Rates/components/Item/components/ModalInfo/index.js.map +1 -1
  447. package/build/components/Rates/components/Item/components/ModalOfferInfo/ModalOfferInfo.js +1 -4
  448. package/build/components/Rates/components/Item/components/ModalOfferInfo/ModalOfferInfo.js.map +1 -1
  449. package/build/components/Rates/components/Item/components/ModalOfferInfo/index.js +1 -4
  450. package/build/components/Rates/components/Item/components/ModalOfferInfo/index.js.map +1 -1
  451. package/build/components/Rates/components/Item/components/ModalUrl/ModalUrl.js +1 -4
  452. package/build/components/Rates/components/Item/components/ModalUrl/ModalUrl.js.map +1 -1
  453. package/build/components/Rates/components/Item/components/ModalUrl/index.js +1 -4
  454. package/build/components/Rates/components/Item/components/ModalUrl/index.js.map +1 -1
  455. package/build/components/Rates/components/Item/components/Option/Option.js +1 -4
  456. package/build/components/Rates/components/Item/components/Option/Option.js.map +1 -1
  457. package/build/components/Rates/components/Item/components/Option/index.js +1 -4
  458. package/build/components/Rates/components/Item/components/Option/index.js.map +1 -1
  459. package/build/components/Rates/components/Item/components/PriceDetails/PriceDetails.js +1 -4
  460. package/build/components/Rates/components/Item/components/PriceDetails/PriceDetails.js.map +1 -1
  461. package/build/components/Rates/components/Item/components/PriceDetails/helpers/getPrices.js +1 -4
  462. package/build/components/Rates/components/Item/components/PriceDetails/helpers/getPrices.js.map +1 -1
  463. package/build/components/Rates/components/Item/components/PriceDetails/helpers/index.js +1 -4
  464. package/build/components/Rates/components/Item/components/PriceDetails/helpers/index.js.map +1 -1
  465. package/build/components/Rates/components/Item/components/PriceDetails/index.js +1 -4
  466. package/build/components/Rates/components/Item/components/PriceDetails/index.js.map +1 -1
  467. package/build/components/Rates/components/Item/components/RateDetails/RateDetails.constants.js +1 -4
  468. package/build/components/Rates/components/Item/components/RateDetails/RateDetails.constants.js.map +1 -1
  469. package/build/components/Rates/components/Item/components/RateDetails/RateDetails.js +1 -4
  470. package/build/components/Rates/components/Item/components/RateDetails/RateDetails.js.map +1 -1
  471. package/build/components/Rates/components/Item/components/RateDetails/index.js +1 -4
  472. package/build/components/Rates/components/Item/components/RateDetails/index.js.map +1 -1
  473. package/build/components/Rates/components/Item/components/Slider/Slider.js +1 -4
  474. package/build/components/Rates/components/Item/components/Slider/Slider.js.map +1 -1
  475. package/build/components/Rates/components/Item/components/Slider/Slider.l10n.js +1 -4
  476. package/build/components/Rates/components/Item/components/Slider/Slider.l10n.js.map +1 -1
  477. package/build/components/Rates/components/Item/components/Slider/index.js +1 -4
  478. package/build/components/Rates/components/Item/components/Slider/index.js.map +1 -1
  479. package/build/components/Rates/components/Item/components/TooltipDates/TooltipDates.constants.js +1 -4
  480. package/build/components/Rates/components/Item/components/TooltipDates/TooltipDates.constants.js.map +1 -1
  481. package/build/components/Rates/components/Item/components/TooltipDates/TooltipDates.js +1 -4
  482. package/build/components/Rates/components/Item/components/TooltipDates/TooltipDates.js.map +1 -1
  483. package/build/components/Rates/components/Item/components/TooltipDates/index.js +1 -4
  484. package/build/components/Rates/components/Item/components/TooltipDates/index.js.map +1 -1
  485. package/build/components/Rates/components/Item/components/index.js +1 -4
  486. package/build/components/Rates/components/Item/components/index.js.map +1 -1
  487. package/build/components/Rates/components/Item/index.js +1 -4
  488. package/build/components/Rates/components/Item/index.js.map +1 -1
  489. package/build/components/Rates/components/ModalClubRate/ModalClubRate.js +1 -4
  490. package/build/components/Rates/components/ModalClubRate/ModalClubRate.js.map +1 -1
  491. package/build/components/Rates/components/ModalClubRate/ModalClubRate.l10n.js +1 -4
  492. package/build/components/Rates/components/ModalClubRate/ModalClubRate.l10n.js.map +1 -1
  493. package/build/components/Rates/components/ModalClubRate/helpers/getDiscount.js +1 -4
  494. package/build/components/Rates/components/ModalClubRate/helpers/getDiscount.js.map +1 -1
  495. package/build/components/Rates/components/ModalClubRate/helpers/index.js +1 -4
  496. package/build/components/Rates/components/ModalClubRate/helpers/index.js.map +1 -1
  497. package/build/components/Rates/components/ModalClubRate/index.js +1 -4
  498. package/build/components/Rates/components/ModalClubRate/index.js.map +1 -1
  499. package/build/components/Rates/components/ModalExtras/ModalExtras.constants.js +1 -4
  500. package/build/components/Rates/components/ModalExtras/ModalExtras.constants.js.map +1 -1
  501. package/build/components/Rates/components/ModalExtras/ModalExtras.js +1 -4
  502. package/build/components/Rates/components/ModalExtras/ModalExtras.js.map +1 -1
  503. package/build/components/Rates/components/ModalExtras/ModalExtras.l10n.js +1 -4
  504. package/build/components/Rates/components/ModalExtras/ModalExtras.l10n.js.map +1 -1
  505. package/build/components/Rates/components/ModalExtras/helpers/getCaption.js +1 -4
  506. package/build/components/Rates/components/ModalExtras/helpers/getCaption.js.map +1 -1
  507. package/build/components/Rates/components/ModalExtras/helpers/index.js +1 -4
  508. package/build/components/Rates/components/ModalExtras/helpers/index.js.map +1 -1
  509. package/build/components/Rates/components/ModalExtras/index.js +1 -4
  510. package/build/components/Rates/components/ModalExtras/index.js.map +1 -1
  511. package/build/components/Rates/components/ModalMapView/ModalMapView.js +1 -4
  512. package/build/components/Rates/components/ModalMapView/ModalMapView.js.map +1 -1
  513. package/build/components/Rates/components/ModalMapView/ModalMapView.l10n.js +1 -4
  514. package/build/components/Rates/components/ModalMapView/ModalMapView.l10n.js.map +1 -1
  515. package/build/components/Rates/components/ModalMapView/helpers/customMarker.js +1 -4
  516. package/build/components/Rates/components/ModalMapView/helpers/customMarker.js.map +1 -1
  517. package/build/components/Rates/components/ModalMapView/helpers/index.js +1 -4
  518. package/build/components/Rates/components/ModalMapView/helpers/index.js.map +1 -1
  519. package/build/components/Rates/components/ModalMapView/helpers/loadGMaps.js +1 -4
  520. package/build/components/Rates/components/ModalMapView/helpers/loadGMaps.js.map +1 -1
  521. package/build/components/Rates/components/ModalMapView/index.js +1 -4
  522. package/build/components/Rates/components/ModalMapView/index.js.map +1 -1
  523. package/build/components/Rates/components/index.js +1 -4
  524. package/build/components/Rates/components/index.js.map +1 -1
  525. package/build/components/Rates/helpers/fetchRates.js +1 -4
  526. package/build/components/Rates/helpers/fetchRates.js.map +1 -1
  527. package/build/components/Rates/helpers/filterItem.js +1 -4
  528. package/build/components/Rates/helpers/filterItem.js.map +1 -1
  529. package/build/components/Rates/helpers/getBoard.js +1 -4
  530. package/build/components/Rates/helpers/getBoard.js.map +1 -1
  531. package/build/components/Rates/helpers/getCheckoutParams.js +1 -4
  532. package/build/components/Rates/helpers/getCheckoutParams.js.map +1 -1
  533. package/build/components/Rates/helpers/getClubInclude.js +1 -4
  534. package/build/components/Rates/helpers/getClubInclude.js.map +1 -1
  535. package/build/components/Rates/helpers/getClubRate.js +1 -4
  536. package/build/components/Rates/helpers/getClubRate.js.map +1 -1
  537. package/build/components/Rates/helpers/getFeatures.js +1 -4
  538. package/build/components/Rates/helpers/getFeatures.js.map +1 -1
  539. package/build/components/Rates/helpers/getFinderParams.js +1 -4
  540. package/build/components/Rates/helpers/getFinderParams.js.map +1 -1
  541. package/build/components/Rates/helpers/getForwarderUrl.js +1 -4
  542. package/build/components/Rates/helpers/getForwarderUrl.js.map +1 -1
  543. package/build/components/Rates/helpers/getLabelTaxes.js +1 -4
  544. package/build/components/Rates/helpers/getLabelTaxes.js.map +1 -1
  545. package/build/components/Rates/helpers/index.js +1 -4
  546. package/build/components/Rates/helpers/index.js.map +1 -1
  547. package/build/components/Rates/helpers/select.js +1 -4
  548. package/build/components/Rates/helpers/select.js.map +1 -1
  549. package/build/components/Rates/helpers/showClubRate.js +1 -4
  550. package/build/components/Rates/helpers/showClubRate.js.map +1 -1
  551. package/build/components/Rates/helpers/signout.js +1 -4
  552. package/build/components/Rates/helpers/signout.js.map +1 -1
  553. package/build/components/Rates/index.js +1 -4
  554. package/build/components/Rates/index.js.map +1 -1
  555. package/build/components/Session/Session.Account.Info.js +1 -4
  556. package/build/components/Session/Session.Account.Info.js.map +1 -1
  557. package/build/components/Session/Session.Account.js +1 -4
  558. package/build/components/Session/Session.Account.js.map +1 -1
  559. package/build/components/Session/Session.Login.Modal.js +1 -4
  560. package/build/components/Session/Session.Login.Modal.js.map +1 -1
  561. package/build/components/Session/Session.Login.js +1 -4
  562. package/build/components/Session/Session.Login.js.map +1 -1
  563. package/build/components/Session/Session.constants.js +1 -4
  564. package/build/components/Session/Session.constants.js.map +1 -1
  565. package/build/components/Session/Session.js +1 -4
  566. package/build/components/Session/Session.js.map +1 -1
  567. package/build/components/Session/Session.l10n.js +1 -4
  568. package/build/components/Session/Session.l10n.js.map +1 -1
  569. package/build/components/Session/helpers/getDomain.js +1 -4
  570. package/build/components/Session/helpers/getDomain.js.map +1 -1
  571. package/build/components/Session/helpers/getProfileUrl.js +1 -4
  572. package/build/components/Session/helpers/getProfileUrl.js.map +1 -1
  573. package/build/components/Session/helpers/getSignupUrl.js +1 -4
  574. package/build/components/Session/helpers/getSignupUrl.js.map +1 -1
  575. package/build/components/Session/helpers/index.js +1 -4
  576. package/build/components/Session/helpers/index.js.map +1 -1
  577. package/build/components/Session/index.js +1 -4
  578. package/build/components/Session/index.js.map +1 -1
  579. package/build/components/Signup/Signup.constants.js +1 -4
  580. package/build/components/Signup/Signup.constants.js.map +1 -1
  581. package/build/components/Signup/Signup.js +1 -4
  582. package/build/components/Signup/Signup.js.map +1 -1
  583. package/build/components/Signup/Signup.l10n.js +1 -4
  584. package/build/components/Signup/Signup.l10n.js.map +1 -1
  585. package/build/components/Signup/index.js +1 -4
  586. package/build/components/Signup/index.js.map +1 -1
  587. package/build/components/__shared__/BookingDates/BookingDates.constants.js +1 -4
  588. package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +1 -1
  589. package/build/components/__shared__/BookingDates/BookingDates.js +1 -4
  590. package/build/components/__shared__/BookingDates/BookingDates.js.map +1 -1
  591. package/build/components/__shared__/BookingDates/BookingDates.l10n.js +1 -4
  592. package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +1 -1
  593. package/build/components/__shared__/BookingDates/index.js +1 -4
  594. package/build/components/__shared__/BookingDates/index.js.map +1 -1
  595. package/build/components/__shared__/BookingDetails/BookingDetails.constants.js +1 -4
  596. package/build/components/__shared__/BookingDetails/BookingDetails.constants.js.map +1 -1
  597. package/build/components/__shared__/BookingDetails/BookingDetails.js +1 -4
  598. package/build/components/__shared__/BookingDetails/BookingDetails.js.map +1 -1
  599. package/build/components/__shared__/BookingDetails/BookingDetails.l10n.js +1 -4
  600. package/build/components/__shared__/BookingDetails/BookingDetails.l10n.js.map +1 -1
  601. package/build/components/__shared__/BookingDetails/index.js +1 -4
  602. package/build/components/__shared__/BookingDetails/index.js.map +1 -1
  603. package/build/components/__shared__/BookingSummary/BookingSummary.constants.js +1 -4
  604. package/build/components/__shared__/BookingSummary/BookingSummary.constants.js.map +1 -1
  605. package/build/components/__shared__/BookingSummary/BookingSummary.js +1 -4
  606. package/build/components/__shared__/BookingSummary/BookingSummary.js.map +1 -1
  607. package/build/components/__shared__/BookingSummary/BookingSummary.l10n.js +1 -4
  608. package/build/components/__shared__/BookingSummary/BookingSummary.l10n.js.map +1 -1
  609. package/build/components/__shared__/BookingSummary/_tests__/BookingSummary.constants.test.js +1 -4
  610. package/build/components/__shared__/BookingSummary/_tests__/BookingSummary.constants.test.js.map +1 -1
  611. package/build/components/__shared__/BookingSummary/_tests__/BookingSummary.test.js +1 -4
  612. package/build/components/__shared__/BookingSummary/_tests__/BookingSummary.test.js.map +1 -1
  613. package/build/components/__shared__/BookingSummary/index.js +1 -4
  614. package/build/components/__shared__/BookingSummary/index.js.map +1 -1
  615. package/build/components/__shared__/BookingTable/BookingTable.Row.js +1 -4
  616. package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -1
  617. package/build/components/__shared__/BookingTable/BookingTable.constants.js +1 -4
  618. package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +1 -1
  619. package/build/components/__shared__/BookingTable/BookingTable.js +1 -4
  620. package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -1
  621. package/build/components/__shared__/BookingTable/BookingTable.l10n.js +1 -4
  622. package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -1
  623. package/build/components/__shared__/BookingTable/index.js +1 -4
  624. package/build/components/__shared__/BookingTable/index.js.map +1 -1
  625. package/build/components/__shared__/BookingTerms/BookingTerms.js +1 -4
  626. package/build/components/__shared__/BookingTerms/BookingTerms.js.map +1 -1
  627. package/build/components/__shared__/BookingTerms/BookingTerms.l10n.js +1 -4
  628. package/build/components/__shared__/BookingTerms/BookingTerms.l10n.js.map +1 -1
  629. package/build/components/__shared__/BookingTerms/index.js +1 -4
  630. package/build/components/__shared__/BookingTerms/index.js.map +1 -1
  631. package/build/components/__shared__/ButtonMore/ButtonMore.js +1 -4
  632. package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -1
  633. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +1 -4
  634. package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +1 -1
  635. package/build/components/__shared__/ButtonMore/index.js +1 -4
  636. package/build/components/__shared__/ButtonMore/index.js.map +1 -1
  637. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +1 -4
  638. package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -1
  639. package/build/components/__shared__/ButtonPayment/ButtonPayment.js +1 -4
  640. package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -1
  641. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +1 -4
  642. package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +1 -1
  643. package/build/components/__shared__/ButtonPayment/components/Form/Form.js +1 -4
  644. package/build/components/__shared__/ButtonPayment/components/Form/Form.js.map +1 -1
  645. package/build/components/__shared__/ButtonPayment/components/Form/index.js +1 -4
  646. package/build/components/__shared__/ButtonPayment/components/Form/index.js.map +1 -1
  647. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +1 -4
  648. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +1 -1
  649. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +1 -4
  650. package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +1 -1
  651. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +1 -4
  652. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +1 -1
  653. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +1 -4
  654. package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +1 -1
  655. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +1 -4
  656. package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +1 -1
  657. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +1 -4
  658. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +1 -1
  659. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +1 -4
  660. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +1 -1
  661. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +1 -4
  662. package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +1 -1
  663. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +1 -4
  664. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +1 -1
  665. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +1 -4
  666. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +1 -1
  667. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +1 -4
  668. package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +1 -1
  669. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +1 -4
  670. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +1 -1
  671. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +1 -4
  672. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +1 -1
  673. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +1 -4
  674. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +1 -1
  675. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +1 -4
  676. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +1 -1
  677. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +1 -4
  678. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +1 -1
  679. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +1 -4
  680. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +1 -1
  681. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +1 -4
  682. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +1 -1
  683. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +1 -4
  684. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +1 -1
  685. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +1 -4
  686. package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +1 -1
  687. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +1 -4
  688. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +1 -1
  689. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +1 -4
  690. package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +1 -1
  691. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +1 -4
  692. package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +1 -1
  693. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +1 -4
  694. package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +1 -1
  695. package/build/components/__shared__/ButtonPayment/components/InputField/index.js +1 -4
  696. package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +1 -1
  697. package/build/components/__shared__/ButtonPayment/components/index.js +1 -4
  698. package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -1
  699. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +1 -4
  700. package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -1
  701. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +1 -4
  702. package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +1 -1
  703. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +1 -4
  704. package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +1 -1
  705. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +1 -4
  706. package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +1 -1
  707. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +1 -4
  708. package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +1 -1
  709. package/build/components/__shared__/ButtonPayment/helpers/index.js +1 -4
  710. package/build/components/__shared__/ButtonPayment/helpers/index.js.map +1 -1
  711. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +1 -4
  712. package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +1 -1
  713. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +1 -4
  714. package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +1 -1
  715. package/build/components/__shared__/ButtonPayment/index.js +1 -4
  716. package/build/components/__shared__/ButtonPayment/index.js.map +1 -1
  717. package/build/components/__shared__/Card/Card.js +1 -4
  718. package/build/components/__shared__/Card/Card.js.map +1 -1
  719. package/build/components/__shared__/Card/Cards.js +1 -4
  720. package/build/components/__shared__/Card/Cards.js.map +1 -1
  721. package/build/components/__shared__/Card/index.js +1 -4
  722. package/build/components/__shared__/Card/index.js.map +1 -1
  723. package/build/components/__shared__/Countdown/Countdown.js +1 -4
  724. package/build/components/__shared__/Countdown/Countdown.js.map +1 -1
  725. package/build/components/__shared__/Countdown/Countdown.l10n.js +1 -4
  726. package/build/components/__shared__/Countdown/Countdown.l10n.js.map +1 -1
  727. package/build/components/__shared__/Countdown/index.js +1 -4
  728. package/build/components/__shared__/Countdown/index.js.map +1 -1
  729. package/build/components/__shared__/Field/Field.js +1 -4
  730. package/build/components/__shared__/Field/Field.js.map +1 -1
  731. package/build/components/__shared__/Field/index.js +1 -4
  732. package/build/components/__shared__/Field/index.js.map +1 -1
  733. package/build/components/__shared__/FieldOccupation/FieldOccupation.js +1 -4
  734. package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -1
  735. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +1 -4
  736. package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +1 -1
  737. package/build/components/__shared__/FieldOccupation/index.js +1 -4
  738. package/build/components/__shared__/FieldOccupation/index.js.map +1 -1
  739. package/build/components/__shared__/FieldPromocode/FieldPromocode.constants.js +1 -4
  740. package/build/components/__shared__/FieldPromocode/FieldPromocode.constants.js.map +1 -1
  741. package/build/components/__shared__/FieldPromocode/FieldPromocode.js +1 -4
  742. package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -1
  743. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +1 -4
  744. package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +1 -1
  745. package/build/components/__shared__/FieldPromocode/index.js +1 -4
  746. package/build/components/__shared__/FieldPromocode/index.js.map +1 -1
  747. package/build/components/__shared__/Footer/Footer.js +1 -4
  748. package/build/components/__shared__/Footer/Footer.js.map +1 -1
  749. package/build/components/__shared__/Footer/Footer.l10n.js +1 -4
  750. package/build/components/__shared__/Footer/Footer.l10n.js.map +1 -1
  751. package/build/components/__shared__/Footer/index.js +1 -4
  752. package/build/components/__shared__/Footer/index.js.map +1 -1
  753. package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js +1 -4
  754. package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map +1 -1
  755. package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js +1 -4
  756. package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js.map +1 -1
  757. package/build/components/__shared__/NotificationRequiredFields/index.js +1 -4
  758. package/build/components/__shared__/NotificationRequiredFields/index.js.map +1 -1
  759. package/build/components/__shared__/Occupation/Occupation.Group.js +1 -4
  760. package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -1
  761. package/build/components/__shared__/Occupation/Occupation.constants.js +1 -4
  762. package/build/components/__shared__/Occupation/Occupation.constants.js.map +1 -1
  763. package/build/components/__shared__/Occupation/Occupation.js +1 -4
  764. package/build/components/__shared__/Occupation/Occupation.js.map +1 -1
  765. package/build/components/__shared__/Occupation/Occupation.l10n.js +1 -4
  766. package/build/components/__shared__/Occupation/Occupation.l10n.js.map +1 -1
  767. package/build/components/__shared__/Occupation/helpers/checkRoom.js +1 -4
  768. package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +1 -1
  769. package/build/components/__shared__/Occupation/helpers/consolidateValue.js +1 -4
  770. package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +1 -1
  771. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +1 -4
  772. package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +1 -1
  773. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +1 -4
  774. package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +1 -1
  775. package/build/components/__shared__/Occupation/helpers/index.js +1 -4
  776. package/build/components/__shared__/Occupation/helpers/index.js.map +1 -1
  777. package/build/components/__shared__/Occupation/helpers/toParties.js +1 -4
  778. package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -1
  779. package/build/components/__shared__/Occupation/index.js +1 -4
  780. package/build/components/__shared__/Occupation/index.js.map +1 -1
  781. package/build/components/__shared__/Payment/Payment.constants.js +1 -4
  782. package/build/components/__shared__/Payment/Payment.constants.js.map +1 -1
  783. package/build/components/__shared__/Payment/Payment.js +1 -4
  784. package/build/components/__shared__/Payment/Payment.js.map +1 -1
  785. package/build/components/__shared__/Payment/Payment.l10n.js +1 -4
  786. package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -1
  787. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +1 -4
  788. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +1 -1
  789. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +1 -4
  790. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -1
  791. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +1 -4
  792. package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +1 -1
  793. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +1 -4
  794. package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +1 -1
  795. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +1 -4
  796. package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +1 -1
  797. package/build/components/__shared__/Payment/components/AmazonPay/index.js +1 -4
  798. package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +1 -1
  799. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +1 -4
  800. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -1
  801. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +1 -4
  802. package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +1 -1
  803. package/build/components/__shared__/Payment/components/Aplazame/index.js +1 -4
  804. package/build/components/__shared__/Payment/components/Aplazame/index.js.map +1 -1
  805. package/build/components/__shared__/Payment/components/Card/Card.constants.js +1 -4
  806. package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +1 -1
  807. package/build/components/__shared__/Payment/components/Card/Card.js +1 -4
  808. package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
  809. package/build/components/__shared__/Payment/components/Card/Card.l10n.js +1 -4
  810. package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +1 -1
  811. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +1 -4
  812. package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
  813. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +1 -4
  814. package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +1 -1
  815. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +1 -4
  816. package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +1 -1
  817. package/build/components/__shared__/Payment/components/Card/helpers/index.js +1 -4
  818. package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +1 -1
  819. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +1 -4
  820. package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +1 -1
  821. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +1 -4
  822. package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +1 -1
  823. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +1 -4
  824. package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +1 -1
  825. package/build/components/__shared__/Payment/components/Card/index.js +1 -4
  826. package/build/components/__shared__/Payment/components/Card/index.js.map +1 -1
  827. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +1 -4
  828. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
  829. package/build/components/__shared__/Payment/components/PCI/PCI.js +1 -4
  830. package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
  831. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +1 -4
  832. package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +1 -1
  833. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +1 -4
  834. package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
  835. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +1 -4
  836. package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +1 -1
  837. package/build/components/__shared__/Payment/components/PCI/helpers/index.js +1 -4
  838. package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +1 -1
  839. package/build/components/__shared__/Payment/components/PCI/index.js +1 -4
  840. package/build/components/__shared__/Payment/components/PCI/index.js.map +1 -1
  841. package/build/components/__shared__/Payment/components/Tpv/Tpv.js +1 -4
  842. package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +1 -1
  843. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +1 -4
  844. package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +1 -1
  845. package/build/components/__shared__/Payment/components/Tpv/index.js +1 -4
  846. package/build/components/__shared__/Payment/components/Tpv/index.js.map +1 -1
  847. package/build/components/__shared__/Payment/components/index.js +1 -4
  848. package/build/components/__shared__/Payment/components/index.js.map +1 -1
  849. package/build/components/__shared__/Payment/helpers/formatExpire.js +1 -4
  850. package/build/components/__shared__/Payment/helpers/formatExpire.js.map +1 -1
  851. package/build/components/__shared__/Payment/helpers/getCaption.js +1 -4
  852. package/build/components/__shared__/Payment/helpers/getCaption.js.map +1 -1
  853. package/build/components/__shared__/Payment/helpers/getComponent.js +1 -4
  854. package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -1
  855. package/build/components/__shared__/Payment/helpers/getImage.js +1 -4
  856. package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -1
  857. package/build/components/__shared__/Payment/helpers/index.js +1 -4
  858. package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
  859. package/build/components/__shared__/Payment/index.js +1 -4
  860. package/build/components/__shared__/Payment/index.js.map +1 -1
  861. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +1 -4
  862. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +1 -1
  863. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +1 -4
  864. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -1
  865. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +1 -4
  866. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -1
  867. package/build/components/__shared__/PriceBreakdown/index.js +1 -4
  868. package/build/components/__shared__/PriceBreakdown/index.js.map +1 -1
  869. package/build/components/__shared__/SelectEnvironment/SelectEnvironment.constants.js +1 -4
  870. package/build/components/__shared__/SelectEnvironment/SelectEnvironment.constants.js.map +1 -1
  871. package/build/components/__shared__/SelectEnvironment/SelectEnvironment.js +1 -4
  872. package/build/components/__shared__/SelectEnvironment/SelectEnvironment.js.map +1 -1
  873. package/build/components/__shared__/SelectEnvironment/SelectEnvironment.l10n.js +1 -4
  874. package/build/components/__shared__/SelectEnvironment/SelectEnvironment.l10n.js.map +1 -1
  875. package/build/components/__shared__/SelectEnvironment/index.js +1 -4
  876. package/build/components/__shared__/SelectEnvironment/index.js.map +1 -1
  877. package/build/components/__shared__/Skeleton/Skeleton.js +1 -4
  878. package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -1
  879. package/build/components/__shared__/Skeleton/index.js +1 -4
  880. package/build/components/__shared__/Skeleton/index.js.map +1 -1
  881. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +1 -4
  882. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +1 -1
  883. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +1 -4
  884. package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +1 -1
  885. package/build/components/__shared__/TextRequiredFields/index.js +1 -4
  886. package/build/components/__shared__/TextRequiredFields/index.js.map +1 -1
  887. package/build/components/__shared__/index.js +1 -4
  888. package/build/components/__shared__/index.js.map +1 -1
  889. package/build/components/helpers/ICON.AMENITIES.js +1 -4
  890. package/build/components/helpers/ICON.AMENITIES.js.map +1 -1
  891. package/build/components/helpers/ICON.js +1 -4
  892. package/build/components/helpers/ICON.js.map +1 -1
  893. package/build/components/helpers/addScript.js +1 -4
  894. package/build/components/helpers/addScript.js.map +1 -1
  895. package/build/components/helpers/constants.js +1 -4
  896. package/build/components/helpers/constants.js.map +1 -1
  897. package/build/components/helpers/generateId.js +1 -4
  898. package/build/components/helpers/generateId.js.map +1 -1
  899. package/build/components/helpers/getAccommodationLabel.js +1 -4
  900. package/build/components/helpers/getAccommodationLabel.js.map +1 -1
  901. package/build/components/helpers/getAccommodationType.js +1 -4
  902. package/build/components/helpers/getAccommodationType.js.map +1 -1
  903. package/build/components/helpers/getAgeRange.js +1 -4
  904. package/build/components/helpers/getAgeRange.js.map +1 -1
  905. package/build/components/helpers/getCalendarCaption.js +1 -4
  906. package/build/components/helpers/getCalendarCaption.js.map +1 -1
  907. package/build/components/helpers/getCountryCode.js +1 -4
  908. package/build/components/helpers/getCountryCode.js.map +1 -1
  909. package/build/components/helpers/getGuestLabel.js +1 -4
  910. package/build/components/helpers/getGuestLabel.js.map +1 -1
  911. package/build/components/helpers/getNormalizedLocale.js +1 -4
  912. package/build/components/helpers/getNormalizedLocale.js.map +1 -1
  913. package/build/components/helpers/getOccupationLabel.js +1 -4
  914. package/build/components/helpers/getOccupationLabel.js.map +1 -1
  915. package/build/components/helpers/getOccupationSummary.js +1 -4
  916. package/build/components/helpers/getOccupationSummary.js.map +1 -1
  917. package/build/components/helpers/getOccupationTotals.js +1 -4
  918. package/build/components/helpers/getOccupationTotals.js.map +1 -1
  919. package/build/components/helpers/getRoomNumber.js +1 -4
  920. package/build/components/helpers/getRoomNumber.js.map +1 -1
  921. package/build/components/helpers/getRoomOccupationLabel.js +1 -4
  922. package/build/components/helpers/getRoomOccupationLabel.js.map +1 -1
  923. package/build/components/helpers/index.js +1 -4
  924. package/build/components/helpers/index.js.map +1 -1
  925. package/build/components/helpers/isJest.js +1 -4
  926. package/build/components/helpers/isJest.js.map +1 -1
  927. package/build/components/helpers/opacity.js +1 -4
  928. package/build/components/helpers/opacity.js.map +1 -1
  929. package/build/components/helpers/parseHtml.js +1 -4
  930. package/build/components/helpers/parseHtml.js.map +1 -1
  931. package/build/components/helpers/parseToParties.js +1 -4
  932. package/build/components/helpers/parseToParties.js.map +1 -1
  933. package/build/components/helpers/parseValue.js +1 -4
  934. package/build/components/helpers/parseValue.js.map +1 -1
  935. package/build/components/helpers/replaceUrlParams.js +1 -4
  936. package/build/components/helpers/replaceUrlParams.js.map +1 -1
  937. package/build/components/helpers/template.js +1 -4
  938. package/build/components/helpers/template.js.map +1 -1
  939. package/build/components/helpers/testPassword.js +1 -4
  940. package/build/components/helpers/testPassword.js.map +1 -1
  941. package/build/components/helpers/toQueryString.js +1 -4
  942. package/build/components/helpers/toQueryString.js.map +1 -1
  943. package/build/components/helpers/toUrlParams.js +1 -4
  944. package/build/components/helpers/toUrlParams.js.map +1 -1
  945. package/build/components/helpers/trace.js +1 -4
  946. package/build/components/helpers/trace.js.map +1 -1
  947. package/build/components/helpers/valueFormat.js +1 -4
  948. package/build/components/helpers/valueFormat.js.map +1 -1
  949. package/build/components/index.js +1 -4
  950. package/build/components/index.js.map +1 -1
  951. package/build/contexts/EventManager/EventManager.constants.js +1 -4
  952. package/build/contexts/EventManager/EventManager.constants.js.map +1 -1
  953. package/build/contexts/EventManager/EventManager.js +1 -4
  954. package/build/contexts/EventManager/EventManager.js.map +1 -1
  955. package/build/contexts/EventManager/index.js +1 -4
  956. package/build/contexts/EventManager/index.js.map +1 -1
  957. package/build/contexts/PerformanceManager/PerformanceManager.constants.js +1 -4
  958. package/build/contexts/PerformanceManager/PerformanceManager.constants.js.map +1 -1
  959. package/build/contexts/PerformanceManager/PerformanceManager.events.js +1 -4
  960. package/build/contexts/PerformanceManager/PerformanceManager.events.js.map +1 -1
  961. package/build/contexts/PerformanceManager/PerformanceManager.js +1 -4
  962. package/build/contexts/PerformanceManager/PerformanceManager.js.map +1 -1
  963. package/build/contexts/PerformanceManager/PerformanceManager.scripts.js +1 -4
  964. package/build/contexts/PerformanceManager/PerformanceManager.scripts.js.map +1 -1
  965. package/build/contexts/PerformanceManager/helpers/dataLayerPush.js +2 -4
  966. package/build/contexts/PerformanceManager/helpers/dataLayerPush.js.map +1 -1
  967. package/build/contexts/PerformanceManager/helpers/getConsentMode.js +1 -4
  968. package/build/contexts/PerformanceManager/helpers/getConsentMode.js.map +1 -1
  969. package/build/contexts/PerformanceManager/helpers/getPerformanceLabel.js +1 -4
  970. package/build/contexts/PerformanceManager/helpers/getPerformanceLabel.js.map +1 -1
  971. package/build/contexts/PerformanceManager/helpers/index.js +1 -4
  972. package/build/contexts/PerformanceManager/helpers/index.js.map +1 -1
  973. package/build/contexts/PerformanceManager/index.js +1 -4
  974. package/build/contexts/PerformanceManager/index.js.map +1 -1
  975. package/build/contexts/PerformanceManager/providers/affilired/bookingResponse.js +1 -4
  976. package/build/contexts/PerformanceManager/providers/affilired/bookingResponse.js.map +1 -1
  977. package/build/contexts/PerformanceManager/providers/affilired/index.js +1 -4
  978. package/build/contexts/PerformanceManager/providers/affilired/index.js.map +1 -1
  979. package/build/contexts/PerformanceManager/providers/analytics/bookingCancel.js +1 -4
  980. package/build/contexts/PerformanceManager/providers/analytics/bookingCancel.js.map +1 -1
  981. package/build/contexts/PerformanceManager/providers/analytics/bookingResponse.js +1 -4
  982. package/build/contexts/PerformanceManager/providers/analytics/bookingResponse.js.map +1 -1
  983. package/build/contexts/PerformanceManager/providers/analytics/checkoutForm.js +1 -4
  984. package/build/contexts/PerformanceManager/providers/analytics/checkoutForm.js.map +1 -1
  985. package/build/contexts/PerformanceManager/providers/analytics/checkoutResponse.js +1 -4
  986. package/build/contexts/PerformanceManager/providers/analytics/checkoutResponse.js.map +1 -1
  987. package/build/contexts/PerformanceManager/providers/analytics/finderReady.js +1 -4
  988. package/build/contexts/PerformanceManager/providers/analytics/finderReady.js.map +1 -1
  989. package/build/contexts/PerformanceManager/providers/analytics/helpers/index.js +1 -4
  990. package/build/contexts/PerformanceManager/providers/analytics/helpers/index.js.map +1 -1
  991. package/build/contexts/PerformanceManager/providers/analytics/helpers/parseCommon.js +1 -4
  992. package/build/contexts/PerformanceManager/providers/analytics/helpers/parseCommon.js.map +1 -1
  993. package/build/contexts/PerformanceManager/providers/analytics/helpers/parseItems.js +1 -4
  994. package/build/contexts/PerformanceManager/providers/analytics/helpers/parseItems.js.map +1 -1
  995. package/build/contexts/PerformanceManager/providers/analytics/helpers/parseRate.js +1 -4
  996. package/build/contexts/PerformanceManager/providers/analytics/helpers/parseRate.js.map +1 -1
  997. package/build/contexts/PerformanceManager/providers/analytics/index.js +1 -4
  998. package/build/contexts/PerformanceManager/providers/analytics/index.js.map +1 -1
  999. package/build/contexts/PerformanceManager/providers/analytics/logged.js +1 -4
  1000. package/build/contexts/PerformanceManager/providers/analytics/logged.js.map +1 -1
  1001. package/build/contexts/PerformanceManager/providers/analytics/ratesAddToCart.js +1 -4
  1002. package/build/contexts/PerformanceManager/providers/analytics/ratesAddToCart.js.map +1 -1
  1003. package/build/contexts/PerformanceManager/providers/analytics/ratesResponse.js +1 -4
  1004. package/build/contexts/PerformanceManager/providers/analytics/ratesResponse.js.map +1 -1
  1005. package/build/contexts/PerformanceManager/providers/bing/bookingResponse.js +1 -4
  1006. package/build/contexts/PerformanceManager/providers/bing/bookingResponse.js.map +1 -1
  1007. package/build/contexts/PerformanceManager/providers/bing/index.js +1 -4
  1008. package/build/contexts/PerformanceManager/providers/bing/index.js.map +1 -1
  1009. package/build/contexts/PerformanceManager/providers/facebook/bookingResponse.js +1 -4
  1010. package/build/contexts/PerformanceManager/providers/facebook/bookingResponse.js.map +1 -1
  1011. package/build/contexts/PerformanceManager/providers/facebook/checkoutResponse.js +1 -4
  1012. package/build/contexts/PerformanceManager/providers/facebook/checkoutResponse.js.map +1 -1
  1013. package/build/contexts/PerformanceManager/providers/facebook/helpers/getCookies.js +1 -4
  1014. package/build/contexts/PerformanceManager/providers/facebook/helpers/getCookies.js.map +1 -1
  1015. package/build/contexts/PerformanceManager/providers/facebook/helpers/index.js +1 -4
  1016. package/build/contexts/PerformanceManager/providers/facebook/helpers/index.js.map +1 -1
  1017. package/build/contexts/PerformanceManager/providers/facebook/helpers/parseCustomData.js +1 -4
  1018. package/build/contexts/PerformanceManager/providers/facebook/helpers/parseCustomData.js.map +1 -1
  1019. package/build/contexts/PerformanceManager/providers/facebook/helpers/parseUserData.js +1 -4
  1020. package/build/contexts/PerformanceManager/providers/facebook/helpers/parseUserData.js.map +1 -1
  1021. package/build/contexts/PerformanceManager/providers/facebook/helpers/sendData.js +1 -4
  1022. package/build/contexts/PerformanceManager/providers/facebook/helpers/sendData.js.map +1 -1
  1023. package/build/contexts/PerformanceManager/providers/facebook/index.js +1 -4
  1024. package/build/contexts/PerformanceManager/providers/facebook/index.js.map +1 -1
  1025. package/build/contexts/PerformanceManager/providers/facebook/ratesAddToCart.js +1 -4
  1026. package/build/contexts/PerformanceManager/providers/facebook/ratesAddToCart.js.map +1 -1
  1027. package/build/contexts/PerformanceManager/providers/facebook/ratesResponse.js +1 -4
  1028. package/build/contexts/PerformanceManager/providers/facebook/ratesResponse.js.map +1 -1
  1029. package/build/contexts/PerformanceManager/providers/googleAds/bookingResponse.js +1 -4
  1030. package/build/contexts/PerformanceManager/providers/googleAds/bookingResponse.js.map +1 -1
  1031. package/build/contexts/PerformanceManager/providers/googleAds/index.js +1 -4
  1032. package/build/contexts/PerformanceManager/providers/googleAds/index.js.map +1 -1
  1033. package/build/contexts/PerformanceManager/providers/gtm/bookingCancel.js +1 -4
  1034. package/build/contexts/PerformanceManager/providers/gtm/bookingCancel.js.map +1 -1
  1035. package/build/contexts/PerformanceManager/providers/gtm/bookingResponse.js +1 -4
  1036. package/build/contexts/PerformanceManager/providers/gtm/bookingResponse.js.map +1 -1
  1037. package/build/contexts/PerformanceManager/providers/gtm/checkoutResponse.js +1 -4
  1038. package/build/contexts/PerformanceManager/providers/gtm/checkoutResponse.js.map +1 -1
  1039. package/build/contexts/PerformanceManager/providers/gtm/duetto/bookingResponse.js +1 -4
  1040. package/build/contexts/PerformanceManager/providers/gtm/duetto/bookingResponse.js.map +1 -1
  1041. package/build/contexts/PerformanceManager/providers/gtm/duetto/index.js +1 -4
  1042. package/build/contexts/PerformanceManager/providers/gtm/duetto/index.js.map +1 -1
  1043. package/build/contexts/PerformanceManager/providers/gtm/duetto/ratesResponse.js +1 -4
  1044. package/build/contexts/PerformanceManager/providers/gtm/duetto/ratesResponse.js.map +1 -1
  1045. package/build/contexts/PerformanceManager/providers/gtm/finderReady.js +1 -4
  1046. package/build/contexts/PerformanceManager/providers/gtm/finderReady.js.map +1 -1
  1047. package/build/contexts/PerformanceManager/providers/gtm/helpers/getInitEvent.js +1 -4
  1048. package/build/contexts/PerformanceManager/providers/gtm/helpers/getInitEvent.js.map +1 -1
  1049. package/build/contexts/PerformanceManager/providers/gtm/helpers/index.js +1 -4
  1050. package/build/contexts/PerformanceManager/providers/gtm/helpers/index.js.map +1 -1
  1051. package/build/contexts/PerformanceManager/providers/gtm/helpers/parseRate.js +1 -4
  1052. package/build/contexts/PerformanceManager/providers/gtm/helpers/parseRate.js.map +1 -1
  1053. package/build/contexts/PerformanceManager/providers/gtm/index.js +1 -4
  1054. package/build/contexts/PerformanceManager/providers/gtm/index.js.map +1 -1
  1055. package/build/contexts/PerformanceManager/providers/gtm/ratesResponse.js +1 -4
  1056. package/build/contexts/PerformanceManager/providers/gtm/ratesResponse.js.map +1 -1
  1057. package/build/contexts/PerformanceManager/providers/helpers/SHA256.js +1 -4
  1058. package/build/contexts/PerformanceManager/providers/helpers/SHA256.js.map +1 -1
  1059. package/build/contexts/PerformanceManager/providers/helpers/getFirstOccupationOption.js +1 -4
  1060. package/build/contexts/PerformanceManager/providers/helpers/getFirstOccupationOption.js.map +1 -1
  1061. package/build/contexts/PerformanceManager/providers/helpers/getRatesPriceRange.js +1 -4
  1062. package/build/contexts/PerformanceManager/providers/helpers/getRatesPriceRange.js.map +1 -1
  1063. package/build/contexts/PerformanceManager/providers/helpers/getRoomPriceRange.js +1 -4
  1064. package/build/contexts/PerformanceManager/providers/helpers/getRoomPriceRange.js.map +1 -1
  1065. package/build/contexts/PerformanceManager/providers/helpers/getRoomsPriceRange.js +1 -4
  1066. package/build/contexts/PerformanceManager/providers/helpers/getRoomsPriceRange.js.map +1 -1
  1067. package/build/contexts/PerformanceManager/providers/helpers/index.js +1 -4
  1068. package/build/contexts/PerformanceManager/providers/helpers/index.js.map +1 -1
  1069. package/build/contexts/PerformanceManager/providers/helpers/legacy.js +1 -4
  1070. package/build/contexts/PerformanceManager/providers/helpers/legacy.js.map +1 -1
  1071. package/build/contexts/PerformanceManager/providers/index.js +1 -4
  1072. package/build/contexts/PerformanceManager/providers/index.js.map +1 -1
  1073. package/build/contexts/PerformanceManager/providers/mirai/bookingResponse.js +1 -4
  1074. package/build/contexts/PerformanceManager/providers/mirai/bookingResponse.js.map +1 -1
  1075. package/build/contexts/PerformanceManager/providers/mirai/index.js +1 -4
  1076. package/build/contexts/PerformanceManager/providers/mirai/index.js.map +1 -1
  1077. package/build/contexts/index.js +1 -4
  1078. package/build/contexts/index.js.map +1 -1
  1079. package/build/helpers/checkSession.js +1 -4
  1080. package/build/helpers/checkSession.js.map +1 -1
  1081. package/build/helpers/consolidateStore.js +1 -4
  1082. package/build/helpers/consolidateStore.js.map +1 -1
  1083. package/build/helpers/debounce.js +1 -4
  1084. package/build/helpers/debounce.js.map +1 -1
  1085. package/build/helpers/fetchConfig.js +1 -4
  1086. package/build/helpers/fetchConfig.js.map +1 -1
  1087. package/build/helpers/fetchCookies.js +1 -4
  1088. package/build/helpers/fetchCookies.js.map +1 -1
  1089. package/build/helpers/fetchCurrency.js +1 -4
  1090. package/build/helpers/fetchCurrency.js.map +1 -1
  1091. package/build/helpers/fetchSession.js +1 -4
  1092. package/build/helpers/fetchSession.js.map +1 -1
  1093. package/build/helpers/fetchUrlParams.js +1 -4
  1094. package/build/helpers/fetchUrlParams.js.map +1 -1
  1095. package/build/helpers/findComponents.js +1 -4
  1096. package/build/helpers/findComponents.js.map +1 -1
  1097. package/build/helpers/findDangerousCSSRules.js +1 -4
  1098. package/build/helpers/findDangerousCSSRules.js.map +1 -1
  1099. package/build/helpers/findInstance.js +1 -4
  1100. package/build/helpers/findInstance.js.map +1 -1
  1101. package/build/helpers/getAccommodationType.js +1 -4
  1102. package/build/helpers/getAccommodationType.js.map +1 -1
  1103. package/build/helpers/getClubUrl.js +1 -4
  1104. package/build/helpers/getClubUrl.js.map +1 -1
  1105. package/build/helpers/getContents.js +1 -4
  1106. package/build/helpers/getContents.js.map +1 -1
  1107. package/build/helpers/getGhost.js +1 -4
  1108. package/build/helpers/getGhost.js.map +1 -1
  1109. package/build/helpers/getLocale.js +1 -4
  1110. package/build/helpers/getLocale.js.map +1 -1
  1111. package/build/helpers/getMetaRates.js +1 -4
  1112. package/build/helpers/getMetaRates.js.map +1 -1
  1113. package/build/helpers/getPerformance.js +1 -4
  1114. package/build/helpers/getPerformance.js.map +1 -1
  1115. package/build/helpers/getTags.js +1 -4
  1116. package/build/helpers/getTags.js.map +1 -1
  1117. package/build/helpers/index.js +1 -4
  1118. package/build/helpers/index.js.map +1 -1
  1119. package/build/helpers/loadEnvironment.js +1 -4
  1120. package/build/helpers/loadEnvironment.js.map +1 -1
  1121. package/build/helpers/loadScript.js +1 -4
  1122. package/build/helpers/loadScript.js.map +1 -1
  1123. package/build/helpers/loadSentry.js +8 -6
  1124. package/build/helpers/loadSentry.js.map +1 -1
  1125. package/build/helpers/prepareRoom.js +1 -4
  1126. package/build/helpers/prepareRoom.js.map +1 -1
  1127. package/build/helpers/sanitizeComponent.js +1 -4
  1128. package/build/helpers/sanitizeComponent.js.map +1 -1
  1129. package/build/helpers/theme.js +1 -4
  1130. package/build/helpers/theme.js.map +1 -1
  1131. package/build/helpers/themeDirection.js +1 -4
  1132. package/build/helpers/themeDirection.js.map +1 -1
  1133. package/build/helpers/toOccupation.js +1 -4
  1134. package/build/helpers/toOccupation.js.map +1 -1
  1135. package/build/index.js +1 -4
  1136. package/build/index.js.map +1 -1
  1137. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonFinder.js","sources":["../../../src/components/ButtonFinder/ButtonFinder.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Modal, Pressable, styles } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { L10N } from './ButtonFinder.l10n.js';\nimport * as style from './ButtonFinder.module.css';\nimport { Finder } from '../Finder/Finder';\nimport { template } from '../helpers';\n\nconst ButtonFinder = ({ ghost, text, ...others }) => {\n const { translate } = useLocale();\n\n const [modal, setModal] = useState(false);\n\n const toggleModal = () => setModal(!modal);\n\n const { testId = 'button-finder' } = others;\n const buttonTestId = `${testId}-button-modal`;\n\n return (\n <>\n {!ghost ? (\n <Button onPress={toggleModal} className={styles(style.button, others.className)} testId={buttonTestId}>\n {text || translate(L10N.ACTION_RESERVE)}\n </Button>\n ) : (\n <Pressable\n onPress={toggleModal}\n className={others.className}\n testId={buttonTestId}\n dangerouslySetInnerHTML={ghost ? { __html: template(ghost.outerHTML, undefined, translate) } : undefined}\n />\n )}\n\n <Modal\n title={text || translate(L10N.ACTION_RESERVE)}\n visible={modal}\n onClose={toggleModal}\n testId={testId ? `${testId}-modal` : undefined}\n >\n <Finder layout=\"column\" />\n </Modal>\n </>\n );\n};\n\nButtonFinder.displayName = 'Mirai:Core:ButtonFinder';\n\nButtonFinder.propTypes = {\n ghost: PropTypes.any,\n text: PropTypes.string,\n};\n\nexport { ButtonFinder };\n"],"names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_ButtonFinderL10n","style","_Finder","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","ButtonFinder","_ref","ghost","text","others","translate","useLocale","modal","setModal","useState","toggleModal","testId","buttonTestId","concat","createElement","Fragment","Button","onPress","className","styles","button","L10N","ACTION_RESERVE","Pressable","dangerouslySetInnerHTML","__html","template","outerHTML","undefined","Modal","title","visible","onClose","Finder","layout","exports","displayName","propTypes","PropTypes","any","string"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAAsC,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,E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M,EAAEhB,MAAM,CAACc,SAAS,CAAE;IAACP,MAAM,EAAEC;EAAa,GACnGT,IAAI,IAAIE,SAAS,CAACgB,sBAAI,CAACC,cAAc,CAChC,CAAC,gBAETlD,MAAA,CAAAY,OAAA,CAAA8B,aAAA,CAAC7C,GAAA,CAAAsD,SAAS;IACRN,OAAO,EAAEP,WAAY;IACrBQ,SAAS,EAAEd,MAAM,CAACc,SAAU;IAC5BP,MAAM,EAAEC,YAAa;IACrBY,uBAAuB,EAAEtB,KAAK,GAAG;MAAEuB,MAAM,EAAE,IAAAC,iBAAQ,EAACxB,KAAK,CAACyB,SAAS,EAAEC,SAAS,EAAEvB,SAAS;IAAE,CAAC,GAAGuB;EAAU,CAC1G,CACF,eAEDxD,MAAA,CAAAY,OAAA,CAAA8B,aAAA,CAAC7C,GAAA,CAAA4D,KAAK;IACJC,KAAK,EAAE3B,IAAI,IAAIE,SAAS,CAACgB,sBAAI,CAACC,cAAc,CAAE;IAC9CS,OAAO,EAAExB,KAAM;IACfyB,OAAO,EAAEtB,WAAY;IACrBC,MAAM,EAAEA,MAAM,MAAAE,MAAA,CAAMF,MAAM,cAAWiB;EAAU,gBAE/CxD,MAAA,CAAAY,OAAA,CAAA8B,aAAA,CAACtC,OAAA,CAAAyD,MAAM;IAACC,MAAM,EAAC;EAAQ,CAAE,CACpB,CACP,CAAC;AAEP,CAAC;AAACC,OAAA,CAAAnC,YAAA,GAAAA,YAAA;AAEFA,YAAY,CAACoC,WAAW,GAAG,yBAAyB;AAEpDpC,YAAY,CAACqC,SAAS,GAAG;EACvBnC,KAAK,EAAEoC,kBAAS,CAACC,GAAG;EACpBpC,IAAI,EAAEmC,kBAAS,CAACE;AAClB,CAAC","debug_id":"27c139af-0f5f-5ba3-8c92-3f7fd0fa339b"}
1
+ {"version":3,"file":"ButtonFinder.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_ButtonFinderL10n","style","_Finder","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","ButtonFinder","_ref","ghost","text","others","translate","useLocale","modal","setModal","useState","toggleModal","testId","buttonTestId","concat","createElement","Fragment","Button","onPress","className","styles","button","L10N","ACTION_RESERVE","Pressable","dangerouslySetInnerHTML","__html","template","outerHTML","undefined","Modal","title","visible","onClose","Finder","layout","exports","displayName","propTypes","PropTypes","any","string"],"sources":["../../../src/components/ButtonFinder/ButtonFinder.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Modal, Pressable, styles } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { L10N } from './ButtonFinder.l10n.js';\nimport * as style from './ButtonFinder.module.css';\nimport { Finder } from '../Finder/Finder';\nimport { template } from '../helpers';\n\nconst ButtonFinder = ({ ghost, text, ...others }) => {\n const { translate } = useLocale();\n\n const [modal, setModal] = useState(false);\n\n const toggleModal = () => setModal(!modal);\n\n const { testId = 'button-finder' } = others;\n const buttonTestId = `${testId}-button-modal`;\n\n return (\n <>\n {!ghost ? (\n <Button onPress={toggleModal} className={styles(style.button, others.className)} testId={buttonTestId}>\n {text || translate(L10N.ACTION_RESERVE)}\n </Button>\n ) : (\n <Pressable\n onPress={toggleModal}\n className={others.className}\n testId={buttonTestId}\n dangerouslySetInnerHTML={ghost ? { __html: template(ghost.outerHTML, undefined, translate) } : undefined}\n />\n )}\n\n <Modal\n title={text || translate(L10N.ACTION_RESERVE)}\n visible={modal}\n onClose={toggleModal}\n testId={testId ? `${testId}-modal` : undefined}\n >\n <Finder layout=\"column\" />\n </Modal>\n </>\n );\n};\n\nButtonFinder.displayName = 'Mirai:Core:ButtonFinder';\n\nButtonFinder.propTypes = {\n ghost: PropTypes.any,\n text: PropTypes.string,\n};\n\nexport { ButtonFinder };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,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AAEC,YAAa;IACrBY,uBAAuB,EAAEtB,KAAK,GAAG;MAAEuB,MAAM,EAAE,IAAAC,iBAAQ,EAACxB,KAAK,CAACyB,SAAS,EAAEC,SAAS,EAAEvB,SAAS;IAAE,CAAC,GAAGuB;EAAU,CAC1G,CACF,eAEDxD,MAAA,CAAAY,OAAA,CAAA8B,aAAA,CAAC7C,GAAA,CAAA4D,KAAK;IACJC,KAAK,EAAE3B,IAAI,IAAIE,SAAS,CAACgB,sBAAI,CAACC,cAAc,CAAE;IAC9CS,OAAO,EAAExB,KAAM;IACfyB,OAAO,EAAEtB,WAAY;IACrBC,MAAM,EAAEA,MAAM,MAAAE,MAAA,CAAMF,MAAM,cAAWiB;EAAU,gBAE/CxD,MAAA,CAAAY,OAAA,CAAA8B,aAAA,CAACtC,OAAA,CAAAyD,MAAM;IAACC,MAAM,EAAC;EAAQ,CAAE,CACpB,CACP,CAAC;AAEP,CAAC;AAACC,OAAA,CAAAnC,YAAA,GAAAA,YAAA;AAEFA,YAAY,CAACoC,WAAW,GAAG,yBAAyB;AAEpDpC,YAAY,CAACqC,SAAS,GAAG;EACvBnC,KAAK,EAAEoC,kBAAS,CAACC,GAAG;EACpBpC,IAAI,EAAEmC,kBAAS,CAACE;AAClB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5e089b73-716d-5c33-bd6b-fa24bfd40570")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -12,5 +10,4 @@ const L10N = exports.L10N = {
12
10
  defaultMessage: '   '
13
11
  }
14
12
  };
15
- //# sourceMappingURL=ButtonFinder.l10n.js.map
16
- //# debugId=5e089b73-716d-5c33-bd6b-fa24bfd40570
13
+ //# sourceMappingURL=ButtonFinder.l10n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonFinder.l10n.js","sources":["../../../src/components/ButtonFinder/ButtonFinder.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_RESERVE: { id: 'common.action.reserve', defaultMessage: '   ' },\n};\n"],"names":["L10N","exports","ACTION_RESERVE","id","defaultMessage"],"mappings":";;;;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,cAAc,EAAE;IAAEC,EAAE,EAAE,uBAAuB;IAAEC,cAAc,EAAE;EAAM;AACvE,CAAC","debug_id":"5e089b73-716d-5c33-bd6b-fa24bfd40570"}
1
+ {"version":3,"file":"ButtonFinder.l10n.js","names":["L10N","exports","ACTION_RESERVE","id","defaultMessage"],"sources":["../../../src/components/ButtonFinder/ButtonFinder.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_RESERVE: { id: 'common.action.reserve', defaultMessage: '   ' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,cAAc,EAAE;IAAEC,EAAE,EAAE,uBAAuB;IAAEC,cAAc,EAAE;EAAM;AACvE,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="de2a9f76-e228-5481-885b-d479c6cedbbd")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -12,5 +10,4 @@ Object.defineProperty(exports, "ButtonFinder", {
12
10
  }
13
11
  });
14
12
  var _ButtonFinder = require("./ButtonFinder");
15
- //# sourceMappingURL=index.js.map
16
- //# debugId=de2a9f76-e228-5481-885b-d479c6cedbbd
13
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/ButtonFinder/index.js"],"sourcesContent":["export { ButtonFinder } from './ButtonFinder';\n"],"names":["_ButtonFinder","require"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA","debug_id":"de2a9f76-e228-5481-885b-d479c6cedbbd"}
1
+ {"version":3,"file":"index.js","names":["_ButtonFinder","require"],"sources":["../../../src/components/ButtonFinder/index.js"],"sourcesContent":["export { ButtonFinder } from './ButtonFinder';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dc03230e-8c11-5303-8a75-5e4e32840a54")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -93,5 +91,4 @@ ButtonAvatar.propTypes = {
93
91
  visible: _propTypes.default.bool,
94
92
  onPress: _propTypes.default.func
95
93
  };
96
- //# sourceMappingURL=Chat.ButtonAvatar.js.map
97
- //# debugId=dc03230e-8c11-5303-8a75-5e4e32840a54
94
+ //# sourceMappingURL=Chat.ButtonAvatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.ButtonAvatar.js","sources":["../../../src/components/Chat/Chat.ButtonAvatar.js"],"sourcesContent":["import { Event } from '@mirai/data-sources';\nimport { Pressable, styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport * as style from './Chat.module.css';\nimport { Avatar } from './components';\nimport { audioNotification } from './helpers';\nimport { EVENT } from '../helpers';\n\nconst DELAY_WELCOME = 10000;\nlet focused = false;\n\nconst ButtonAvatar = ({ message: { response: { text } = {} } = {}, visible, onPress }) => {\n const [focus, setFocus] = useState(false);\n const [hide, setHide] = useState(false);\n\n useEffect(() => {\n const callback = ({ visible: modalVisible }) => setHide(modalVisible);\n\n Event.subscribe(EVENT.MODAL_VISIBLE, callback);\n return () => Event.unsubscribe(EVENT.MODAL_VISIBLE, callback);\n }, []);\n\n useEffect(() => {\n if (!text || focused) return;\n let inactivityTimer;\n\n const resetTimer = () => {\n console.log('::::::');\n clearTimeout(inactivityTimer);\n if (focused) return;\n inactivityTimer = setTimeout(() => {\n setFocus(true);\n audioNotification();\n clearTimeout(inactivityTimer);\n }, DELAY_WELCOME);\n };\n\n document.addEventListener('mousemove', resetTimer);\n document.addEventListener('scroll', resetTimer);\n\n resetTimer();\n\n return () => {\n clearTimeout(inactivityTimer.current);\n document.removeEventListener('mousemove', resetTimer);\n document.removeEventListener('scroll', resetTimer);\n };\n }, [text]);\n\n useEffect(() => {\n if (focus) focused = true;\n }, [focus]);\n\n return (\n <View className={styles(style.buttonAvatar, !!text && !visible && !hide && style.visible)}>\n <View className={styles(style.welcome, focus && !visible && style.visible)}>\n <Text action medium>\n {text}\n </Text>\n </View>\n\n <Pressable onEnter={() => setFocus(true)} onLeave={() => setFocus(false)} onPress={onPress}>\n <Avatar disabled={visible} className={style.avatar} />\n </Pressable>\n </View>\n );\n};\n\nButtonAvatar.displayName = 'Mirai:Core:Chat.ButtonAvatar';\n\nButtonAvatar.propTypes = {\n message: PropTypes.shape({\n response: PropTypes.shape({\n text: PropTypes.string,\n }),\n }),\n visible: PropTypes.bool,\n onPress: PropTypes.func,\n};\n\nexport { ButtonAvatar };\n"],"names":["_dataSources","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","style","_components","_helpers","_helpers2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","DELAY_WELCOME","focused","ButtonAvatar","_ref","message","response","text","visible","onPress","focus","setFocus","useState","hide","setHide","useEffect","callback","_ref2","modalVisible","Event","subscribe","EVENT","MODAL_VISIBLE","unsubscribe","inactivityTimer","resetTimer","console","log","clearTimeout","setTimeout","audioNotification","document","addEventListener","current","removeEventListener","createElement","View","className","styles","buttonAvatar","welcome","Text","action","medium","Pressable","onEnter","onLeave","Avatar","disabled","avatar","exports","displayName","propTypes","PropTypes","shape","string","bool","func"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAD,uBAAA,CAAAL,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAAmC,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAA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,IAAI;IAACC,SAAS,EAAE,IAAAC,UAAM,EAAC/D,KAAK,CAACiE,OAAO,EAAE9B,KAAK,IAAI,CAACF,OAAO,IAAIjC,KAAK,CAACiC,OAAO;EAAE,gBACzEnC,MAAA,CAAAY,OAAA,CAAAkD,aAAA,CAACjE,GAAA,CAAAuE,IAAI;IAACC,MAAM;IAACC,MAAM;EAAA,GAChBpC,IACG,CACF,CAAC,eAEPlC,MAAA,CAAAY,OAAA,CAAAkD,aAAA,CAACjE,GAAA,CAAA0E,SAAS;IAACC,OAAO,EAAEA,CAAA,KAAMlC,QAAQ,CAAC,IAAI,CAAE;IAACmC,OAAO,EAAEA,CAAA,KAAMnC,QAAQ,CAAC,KAAK,CAAE;IAACF,OAAO,EAAEA;EAAQ,gBACzFpC,MAAA,CAAAY,OAAA,CAAAkD,aAAA,CAAC3D,WAAA,CAAAuE,MAAM;IAACC,QAAQ,EAAExC,OAAQ;IAAC6B,SAAS,EAAE9D,KAAK,CAAC0E;EAAO,CAAE,CAC5C,CACP,CAAC;AAEX,CAAC;AAACC,OAAA,CAAA/C,YAAA,GAAAA,YAAA;AAEFA,YAAY,CAACgD,WAAW,GAAG,8BAA8B;AAEzDhD,YAAY,CAACiD,SAAS,GAAG;EACvB/C,OAAO,EAAEgD,kBAAS,CAACC,KAAK,CAAC;IACvBhD,QAAQ,EAAE+C,kBAAS,CAACC,KAAK,CAAC;MACxB/C,IAAI,EAAE8C,kBAAS,CAACE;IAClB,CAAC;EACH,CAAC,CAAC;EACF/C,OAAO,EAAE6C,kBAAS,CAACG,IAAI;EACvB/C,OAAO,EAAE4C,kBAAS,CAACI;AACrB,CAAC","debug_id":"dc03230e-8c11-5303-8a75-5e4e32840a54"}
1
+ {"version":3,"file":"Chat.ButtonAvatar.js","names":["_dataSources","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","style","_components","_helpers","_helpers2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","DELAY_WELCOME","focused","ButtonAvatar","_ref","message","response","text","visible","onPress","focus","setFocus","useState","hide","setHide","useEffect","callback","_ref2","modalVisible","Event","subscribe","EVENT","MODAL_VISIBLE","unsubscribe","inactivityTimer","resetTimer","console","log","clearTimeout","setTimeout","audioNotification","document","addEventListener","current","removeEventListener","createElement","View","className","styles","buttonAvatar","welcome","Text","action","medium","Pressable","onEnter","onLeave","Avatar","disabled","avatar","exports","displayName","propTypes","PropTypes","shape","string","bool","func"],"sources":["../../../src/components/Chat/Chat.ButtonAvatar.js"],"sourcesContent":["import { Event } from '@mirai/data-sources';\nimport { Pressable, styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport * as style from './Chat.module.css';\nimport { Avatar } from './components';\nimport { audioNotification } from './helpers';\nimport { EVENT } from '../helpers';\n\nconst DELAY_WELCOME = 10000;\nlet focused = false;\n\nconst ButtonAvatar = ({ message: { response: { text } = {} } = {}, visible, onPress }) => {\n const [focus, setFocus] = useState(false);\n const [hide, setHide] = useState(false);\n\n useEffect(() => {\n const callback = ({ visible: modalVisible }) => setHide(modalVisible);\n\n Event.subscribe(EVENT.MODAL_VISIBLE, callback);\n return () => Event.unsubscribe(EVENT.MODAL_VISIBLE, callback);\n }, []);\n\n useEffect(() => {\n if (!text || focused) return;\n let inactivityTimer;\n\n const resetTimer = () => {\n console.log('::::::');\n clearTimeout(inactivityTimer);\n if (focused) return;\n inactivityTimer = setTimeout(() => {\n setFocus(true);\n audioNotification();\n clearTimeout(inactivityTimer);\n }, DELAY_WELCOME);\n };\n\n document.addEventListener('mousemove', resetTimer);\n document.addEventListener('scroll', resetTimer);\n\n resetTimer();\n\n return () => {\n clearTimeout(inactivityTimer.current);\n document.removeEventListener('mousemove', resetTimer);\n document.removeEventListener('scroll', resetTimer);\n };\n }, [text]);\n\n useEffect(() => {\n if (focus) focused = true;\n }, [focus]);\n\n return (\n <View className={styles(style.buttonAvatar, !!text && !visible && !hide && style.visible)}>\n <View className={styles(style.welcome, focus && !visible && style.visible)}>\n <Text action medium>\n {text}\n </Text>\n </View>\n\n <Pressable onEnter={() => setFocus(true)} onLeave={() => setFocus(false)} onPress={onPress}>\n <Avatar disabled={visible} className={style.avatar} />\n </Pressable>\n </View>\n );\n};\n\nButtonAvatar.displayName = 'Mirai:Core:Chat.ButtonAvatar';\n\nButtonAvatar.propTypes = {\n message: PropTypes.shape({\n response: PropTypes.shape({\n text: PropTypes.string,\n }),\n }),\n visible: PropTypes.bool,\n onPress: PropTypes.func,\n};\n\nexport { ButtonAvatar };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAD,uBAAA,CAAAL,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAAmC,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CA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E4C,kBAAS,CAACI;AACrB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="18afe559-c956-5674-b33b-6f07203a29dd")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -59,5 +57,4 @@ Header.propTypes = {
59
57
  online: _propTypes.default.bool,
60
58
  onClose: _propTypes.default.func
61
59
  };
62
- //# sourceMappingURL=Chat.Header.js.map
63
- //# debugId=18afe559-c956-5674-b33b-6f07203a29dd
60
+ //# sourceMappingURL=Chat.Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.Header.js","sources":["../../../src/components/Chat/Chat.Header.js"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Icon, styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './Chat.l10n';\nimport * as style from './Chat.module.css';\nimport { Avatar } from './components';\nimport { ICON } from '../helpers';\n\nconst Header = ({ online, onClose }) => {\n const { translate } = useLocale();\n\n return (\n <View row className={style.header}>\n <Avatar small />\n <View wide>\n <Text bold>{translate(L10N.LABEL_ASSISTANT)}</Text>\n <View row>\n <View className={styles(style.bullet, online ? style.online : style.offline)} />\n <Text small light>\n {translate(online ? L10N.LABEL_ONLINE : L10N.LABEL_OFFLINE)}\n </Text>\n </View>\n </View>\n\n <View row>\n <Button small squared tooltip={translate(L10N.ACTION_CLOSE)} transparent onPress={onClose}>\n <Icon value={ICON.CLOSE} />\n </Button>\n </View>\n </View>\n );\n};\n\nHeader.displayName = 'Mirai:Core:Chat.Header';\n\nHeader.propTypes = {\n online: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Header };\n"],"names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_Chat","style","_interopRequireWildcard","_components","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Header","_ref","online","onClose","translate","useLocale","createElement","View","row","className","header","Avatar","small","wide","Text","bold","L10N","LABEL_ASSISTANT","styles","bullet","offline","light","LABEL_ONLINE","LABEL_OFFLINE","Button","squared","tooltip","ACTION_CLOSE","transparent","onPress","Icon","value","ICON","CLOSE","exports","displayName","propTypes","PropTypes","bool","func"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAC,uBAAA,CAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAAkC,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAA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js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_Chat","style","_interopRequireWildcard","_components","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Header","_ref","online","onClose","translate","useLocale","createElement","View","row","className","header","Avatar","small","wide","Text","bold","L10N","LABEL_ASSISTANT","styles","bullet","offline","light","LABEL_ONLINE","LABEL_OFFLINE","Button","squared","tooltip","ACTION_CLOSE","transparent","onPress","Icon","value","ICON","CLOSE","exports","displayName","propTypes","PropTypes","bool","func"],"sources":["../../../src/components/Chat/Chat.Header.js"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Icon, styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './Chat.l10n';\nimport * as style from './Chat.module.css';\nimport { Avatar } from './components';\nimport { ICON } from '../helpers';\n\nconst Header = ({ online, onClose }) => {\n const { translate } = useLocale();\n\n return (\n <View row className={style.header}>\n <Avatar small />\n <View wide>\n <Text bold>{translate(L10N.LABEL_ASSISTANT)}</Text>\n <View row>\n <View className={styles(style.bullet, online ? style.online : style.offline)} />\n <Text small light>\n {translate(online ? L10N.LABEL_ONLINE : L10N.LABEL_OFFLINE)}\n </Text>\n </View>\n </View>\n\n <View row>\n <Button small squared tooltip={translate(L10N.ACTION_CLOSE)} transparent onPress={onClose}>\n <Icon value={ICON.CLOSE} />\n </Button>\n </View>\n </View>\n );\n};\n\nHeader.displayName = 'Mirai:Core:Chat.Header';\n\nHeader.propTypes = {\n online: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Header };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAE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,CACF,CACF,CAAC,eAEPnD,MAAA,CAAAY,OAAA,CAAAsB,aAAA,CAACrC,GAAA,CAAAsC,IAAI;IAACC,GAAG;EAAA,gBACPpC,MAAA,CAAAY,OAAA,CAAAsB,aAAA,CAACrC,GAAA,CAAAuD,MAAM;IAACZ,KAAK;IAACa,OAAO;IAACC,OAAO,EAAEtB,SAAS,CAACY,UAAI,CAACW,YAAY,CAAE;IAACC,WAAW;IAACC,OAAO,EAAE1B;EAAQ,gBACxF/B,MAAA,CAAAY,OAAA,CAAAsB,aAAA,CAACrC,GAAA,CAAA6D,IAAI;IAACC,KAAK,EAAEC,aAAI,CAACC;EAAM,CAAE,CACpB,CACJ,CACF,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAlC,MAAA,GAAAA,MAAA;AAEFA,MAAM,CAACmC,WAAW,GAAG,wBAAwB;AAE7CnC,MAAM,CAACoC,SAAS,GAAG;EACjBlC,MAAM,EAAEmC,kBAAS,CAACC,IAAI;EACtBnC,OAAO,EAAEkC,kBAAS,CAACE;AACrB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b0de7cae-b29e-592a-8191-77f7137bd553")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -27,5 +25,4 @@ const VERBOSE_DATE_FORMAT = exports.VERBOSE_DATE_FORMAT = {
27
25
  month: 'short',
28
26
  day: 'numeric'
29
27
  };
30
- //# sourceMappingURL=Chat.constants.js.map
31
- //# debugId=b0de7cae-b29e-592a-8191-77f7137bd553
28
+ //# sourceMappingURL=Chat.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.constants.js","sources":["../../../src/components/Chat/Chat.constants.js"],"sourcesContent":["const DELAY_RESPONSE = 500;\n\nconst EVENT = {\n INPUT_COMPONENT: 'EVENT_INPUT_COMPONENT',\n};\n\nconst INTENT = {\n BOOK: 'BOOK',\n BOOKING_CANCEL: 'BOOKING_CANCEL',\n BOOKING_QUERY: 'BOOKING_QUERY',\n BOOKING_VIEW: 'BOOKING_VIEW',\n BOOKING_SEND: 'BOOKING_SEND',\n OFFERS: 'OFFERS',\n HOTEL_INFO: 'HOTEL_INFO',\n GREETINGS: 'GREETINGS',\n FAREWELLS: 'FAREWELLS',\n};\n\nconst NAME = 'Lisa';\n\nconst VERBOSE_DATE_FORMAT = { weekday: 'short', month: 'short', day: 'numeric' };\n\nexport { DELAY_RESPONSE, EVENT, INTENT, NAME, VERBOSE_DATE_FORMAT };\n"],"names":["DELAY_RESPONSE","exports","EVENT","INPUT_COMPONENT","INTENT","BOOK","BOOKING_CANCEL","BOOKING_QUERY","BOOKING_VIEW","BOOKING_SEND","OFFERS","HOTEL_INFO","GREETINGS","FAREWELLS","NAME","VERBOSE_DATE_FORMAT","weekday","month","day"],"mappings":";;;;;;;;AAAA,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,GAAG;AAE1B,MAAME,KAAK,GAAAD,OAAA,CAAAC,KAAA,GAAG;EACZC,eAAe,EAAE;AACnB,CAAC;AAED,MAAMC,MAAM,GAAAH,OAAA,CAAAG,MAAA,GAAG;EACbC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE,gBAAgB;EAChCC,aAAa,EAAE,eAAe;EAC9BC,YAAY,EAAE,cAAc;EAC5BC,YAAY,EAAE,cAAc;EAC5BC,MAAM,EAAE,QAAQ;EAChBC,UAAU,EAAE,YAAY;EACxBC,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,IAAI,GAAAb,OAAA,CAAAa,IAAA,GAAG,MAAM;AAEnB,MAAMC,mBAAmB,GAAAd,OAAA,CAAAc,mBAAA,GAAG;EAAEC,OAAO,EAAE,OAAO;EAAEC,KAAK,EAAE,OAAO;EAAEC,GAAG,EAAE;AAAU,CAAC","debug_id":"b0de7cae-b29e-592a-8191-77f7137bd553"}
1
+ {"version":3,"file":"Chat.constants.js","names":["DELAY_RESPONSE","exports","EVENT","INPUT_COMPONENT","INTENT","BOOK","BOOKING_CANCEL","BOOKING_QUERY","BOOKING_VIEW","BOOKING_SEND","OFFERS","HOTEL_INFO","GREETINGS","FAREWELLS","NAME","VERBOSE_DATE_FORMAT","weekday","month","day"],"sources":["../../../src/components/Chat/Chat.constants.js"],"sourcesContent":["const DELAY_RESPONSE = 500;\n\nconst EVENT = {\n INPUT_COMPONENT: 'EVENT_INPUT_COMPONENT',\n};\n\nconst INTENT = {\n BOOK: 'BOOK',\n BOOKING_CANCEL: 'BOOKING_CANCEL',\n BOOKING_QUERY: 'BOOKING_QUERY',\n BOOKING_VIEW: 'BOOKING_VIEW',\n BOOKING_SEND: 'BOOKING_SEND',\n OFFERS: 'OFFERS',\n HOTEL_INFO: 'HOTEL_INFO',\n GREETINGS: 'GREETINGS',\n FAREWELLS: 'FAREWELLS',\n};\n\nconst NAME = 'Lisa';\n\nconst VERBOSE_DATE_FORMAT = { weekday: 'short', month: 'short', day: 'numeric' };\n\nexport { DELAY_RESPONSE, EVENT, INTENT, NAME, VERBOSE_DATE_FORMAT };\n"],"mappings":";;;;;;AAAA,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,GAAG;AAE1B,MAAME,KAAK,GAAAD,OAAA,CAAAC,KAAA,GAAG;EACZC,eAAe,EAAE;AACnB,CAAC;AAED,MAAMC,MAAM,GAAAH,OAAA,CAAAG,MAAA,GAAG;EACbC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE,gBAAgB;EAChCC,aAAa,EAAE,eAAe;EAC9BC,YAAY,EAAE,cAAc;EAC5BC,YAAY,EAAE,cAAc;EAC5BC,MAAM,EAAE,QAAQ;EAChBC,UAAU,EAAE,YAAY;EACxBC,SAAS,EAAE,WAAW;EACtBC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,IAAI,GAAAb,OAAA,CAAAa,IAAA,GAAG,MAAM;AAEnB,MAAMC,mBAAmB,GAAAd,OAAA,CAAAc,mBAAA,GAAG;EAAEC,OAAO,EAAE,OAAO;EAAEC,KAAK,EAAE,OAAO;EAAEC,GAAG,EAAE;AAAU,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="969720d8-c6bf-57eb-b3b3-144a88815a6a")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -207,5 +205,4 @@ Chat.propTypes = {
207
205
  name: _propTypes.default.string,
208
206
  skeleton: _propTypes.default.bool
209
207
  };
210
- //# sourceMappingURL=Chat.js.map
211
- //# debugId=969720d8-c6bf-57eb-b3b3-144a88815a6a
208
+ //# sourceMappingURL=Chat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.js","sources":["../../../src/components/Chat/Chat.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { ServiceLisa } from '@mirai/services';\nimport { Modal, ScrollView, styles, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { ButtonAvatar } from './Chat.ButtonAvatar';\nimport { DELAY_RESPONSE } from './Chat.constants';\nimport { Header } from './Chat.Header';\nimport * as style from './Chat.module.css';\nimport { Input, InputRich, Message } from './components';\nimport { audioNotification } from './helpers';\nimport { EVENT } from '../helpers';\n\nlet connectionInterval;\n\nconst Chat = ({ skeleton, ...others }) => {\n const { isMobile } = useDevice();\n const {\n set,\n value: { calendar, components, currency, hotel, locale, occupation, origin, session, tags, type },\n } = useStore();\n\n const [busy, setBusy] = useState(false);\n const [messages, setMessages] = useState([]);\n const [online, setOnline] = useState(false);\n const [scrollTo, setScrollTo] = useState();\n const [visible, setVisible] = useState(false);\n\n useEffect(() => {\n if (skeleton) return;\n\n (async () => {\n if (!(await handleOnline())) return;\n const response = await ServiceLisa.welcome({ locale, session }).catch(handleError);\n if (response) addMessage(response, messages);\n })();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [skeleton]);\n\n useEffect(() => {\n if (visible) setScrollTo(new Date().getTime());\n }, [busy, messages, visible]);\n\n useEffect(() => {\n // // ! TODO: It's just a demo\n // if (visible && !messages.length) handleInput('Quiero ver la proxima reserva que tengo.');\n if (!visible) return clearInterval(connectionInterval);\n\n connectionInterval = setInterval(handleOnline, online ? 60000 : 10000);\n return () => clearInterval(connectionInterval);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [online, visible]);\n\n const storeContext = { calendar, currency, hotel, occupation, origin, tags, type };\n\n const handleOnline = async () => {\n if (!(components.finder || components.rates)) return;\n\n let next = false;\n const response = await ServiceLisa.status().catch(() => setOnline(next));\n if (response && !online) {\n next = true;\n setOnline(next);\n }\n\n return next;\n };\n\n const handleInput = (input) => {\n const nextMessages = [...messages, { text: input, timestamp: new Date().getTime() }];\n setMessages(nextMessages);\n\n setTimeout(async () => {\n setBusy(true);\n const response = await ServiceLisa.message({ context: { ...storeContext }, input, session }).catch(handleError);\n if (response) {\n addMessage(response, nextMessages);\n audioNotification();\n }\n setBusy(false);\n }, DELAY_RESPONSE);\n };\n\n const handleAction = ({ context, form, intent } = {}) => {\n if (intent === 'ACTION_LOGIN') return Event.publish(EVENT.LOGIN, { visible: true });\n setBusy(true);\n\n setTimeout(async () => {\n const response = await ServiceLisa.action({\n context: { ...storeContext, ...context, form },\n intent,\n locale,\n session,\n }).catch(handleError);\n\n if (response) {\n set({ lisa: response });\n setMessages([...messages, { auto: true, ...response }]);\n audioNotification();\n }\n\n setBusy(false);\n }, DELAY_RESPONSE);\n };\n\n const handleError = (error) => {\n // eslint-disable-next-line no-console\n console.error('::handleError::', error);\n setOnline(false);\n };\n\n const addMessage = (response = {}, messages = []) => {\n set({ lisa: response });\n setMessages([...messages, { auto: true, ...response }]);\n if (response.locale !== locale) Event.publish(EVENT.INTENT_LOCALE, { locale: response.locale });\n };\n\n return !skeleton ? (\n <>\n {React.createElement(\n isMobile ? Modal : View,\n isMobile\n ? { ...others, visible, className: styles(style.container, others.className) }\n : {\n ...others,\n className: styles(style.container, visible && style.visible, others.className),\n 'aria-hidden': visible ? 'false' : 'true',\n },\n <>\n <Header {...{ online }} onClose={() => setVisible(false)} />\n\n <ScrollView scrollTo={scrollTo} snap={false} className={style.messages}>\n {messages.map((message, index) => (\n <Message\n {...message}\n key={`message:${index}`}\n disabled={busy || index < messages.length - 1}\n onAction={handleAction}\n />\n ))}\n {busy && <Message auto busy />}\n </ScrollView>\n\n {online && (\n <>\n <Input disabled={busy} onValue={handleInput} />\n <InputRich onValue={handleAction} />\n </>\n )}\n </>,\n )}\n\n <ButtonAvatar message={messages[0]} visible={visible} onPress={() => setVisible(true)} />\n </>\n ) : null;\n};\n\nChat.displayName = 'Mirai:Core:Chat';\n\nChat.propTypes = {\n name: PropTypes.string,\n skeleton: PropTypes.bool,\n};\n\nexport { Chat };\n"],"names":["_dataSources","require","_services","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Chat","_Chat2","_Chat3","style","_components","_helpers","_helpers2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","connectionInterval","Chat","_ref","skeleton","others","isMobile","useDevice","value","calendar","components","currency","hotel","locale","occupation","origin","session","tags","type","useStore","busy","setBusy","useState","messages","setMessages","online","setOnline","scrollTo","setScrollTo","visible","setVisible","useEffect","handleOnline","response","ServiceLisa","welcome","catch","handleError","addMessage","Date","getTime","clearInterval","setInterval","storeContext","finder","rates","next","status","handleInput","input","nextMessages","text","timestamp","setTimeout","message","context","audioNotification","DELAY_RESPONSE","handleAction","form","intent","undefined","Event","publish","EVENT","LOGIN","action","lisa","auto","error","console","INTENT_LOCALE","createElement","Fragment","React","Modal","View","className","styles","container","Header","onClose","ScrollView","snap","map","index","Message","concat","disabled","onAction","Input","onValue","InputRich","ButtonAvatar","onPress","exports","displayName","propTypes","name","PropTypes","string","bool"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,KAAA,GAAAJ,uBAAA,CAAAN,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AACA,IAAAY,QAAA,GAAAZ,OAAA;AACA,IAAAa,SAAA,GAAAb,OAAA;AAAmC,SAAAc,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,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aAAA,CAACzG,WAAA,CAAA6H,SAAS;IAACD,OAAO,EAAEjC;EAAa,CAAE,CACnC,CAEJ,CACJ,CAAC,eAEDjG,MAAA,CAAAe,OAAA,CAAAgG,aAAA,CAAC7G,KAAA,CAAAkI,YAAY;IAACvC,OAAO,EAAE/B,QAAQ,CAAC,CAAC,CAAE;IAACM,OAAO,EAAEA,OAAQ;IAACiE,OAAO,EAAEA,CAAA,KAAMhE,UAAU,CAAC,IAAI;EAAE,CAAE,CACxF,CAAC,GACD,IAAI;AACV,CAAC;AAACiE,OAAA,CAAA7F,IAAA,GAAAA,IAAA;AAEFA,IAAI,CAAC8F,WAAW,GAAG,iBAAiB;AAEpC9F,IAAI,CAAC+F,SAAS,GAAG;EACfC,IAAI,EAAEC,kBAAS,CAACC,MAAM;EACtBhG,QAAQ,EAAE+F,kBAAS,CAACE;AACtB,CAAC","debug_id":"969720d8-c6bf-57eb-b3b3-144a88815a6a"}
1
+ {"version":3,"file":"Chat.js","names":["_dataSources","require","_services","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Chat","_Chat2","_Chat3","style","_components","_helpers","_helpers2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","connectionInterval","Chat","_ref","skeleton","others","isMobile","useDevice","value","calendar","components","currency","hotel","locale","occupation","origin","session","tags","type","useStore","busy","setBusy","useState","messages","setMessages","online","setOnline","scrollTo","setScrollTo","visible","setVisible","useEffect","handleOnline","response","ServiceLisa","welcome","catch","handleError","addMessage","Date","getTime","clearInterval","setInterval","storeContext","finder","rates","next","status","handleInput","input","nextMessages","text","timestamp","setTimeout","message","context","audioNotification","DELAY_RESPONSE","handleAction","form","intent","undefined","Event","publish","EVENT","LOGIN","action","lisa","auto","error","console","INTENT_LOCALE","createElement","Fragment","React","Modal","View","className","styles","container","Header","onClose","ScrollView","snap","map","index","Message","concat","disabled","onAction","Input","onValue","InputRich","ButtonAvatar","onPress","exports","displayName","propTypes","name","PropTypes","string","bool"],"sources":["../../../src/components/Chat/Chat.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { ServiceLisa } from '@mirai/services';\nimport { Modal, ScrollView, styles, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { ButtonAvatar } from './Chat.ButtonAvatar';\nimport { DELAY_RESPONSE } from './Chat.constants';\nimport { Header } from './Chat.Header';\nimport * as style from './Chat.module.css';\nimport { Input, InputRich, Message } from './components';\nimport { audioNotification } from './helpers';\nimport { EVENT } from '../helpers';\n\nlet connectionInterval;\n\nconst Chat = ({ skeleton, ...others }) => {\n const { isMobile } = useDevice();\n const {\n set,\n value: { calendar, components, currency, hotel, locale, occupation, origin, session, tags, type },\n } = useStore();\n\n const [busy, setBusy] = useState(false);\n const [messages, setMessages] = useState([]);\n const [online, setOnline] = useState(false);\n const [scrollTo, setScrollTo] = useState();\n const [visible, setVisible] = useState(false);\n\n useEffect(() => {\n if (skeleton) return;\n\n (async () => {\n if (!(await handleOnline())) return;\n const response = await ServiceLisa.welcome({ locale, session }).catch(handleError);\n if (response) addMessage(response, messages);\n })();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [skeleton]);\n\n useEffect(() => {\n if (visible) setScrollTo(new Date().getTime());\n }, [busy, messages, visible]);\n\n useEffect(() => {\n // // ! TODO: It's just a demo\n // if (visible && !messages.length) handleInput('Quiero ver la proxima reserva que tengo.');\n if (!visible) return clearInterval(connectionInterval);\n\n connectionInterval = setInterval(handleOnline, online ? 60000 : 10000);\n return () => clearInterval(connectionInterval);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [online, visible]);\n\n const storeContext = { calendar, currency, hotel, occupation, origin, tags, type };\n\n const handleOnline = async () => {\n if (!(components.finder || components.rates)) return;\n\n let next = false;\n const response = await ServiceLisa.status().catch(() => setOnline(next));\n if (response && !online) {\n next = true;\n setOnline(next);\n }\n\n return next;\n };\n\n const handleInput = (input) => {\n const nextMessages = [...messages, { text: input, timestamp: new Date().getTime() }];\n setMessages(nextMessages);\n\n setTimeout(async () => {\n setBusy(true);\n const response = await ServiceLisa.message({ context: { ...storeContext }, input, session }).catch(handleError);\n if (response) {\n addMessage(response, nextMessages);\n audioNotification();\n }\n setBusy(false);\n }, DELAY_RESPONSE);\n };\n\n const handleAction = ({ context, form, intent } = {}) => {\n if (intent === 'ACTION_LOGIN') return Event.publish(EVENT.LOGIN, { visible: true });\n setBusy(true);\n\n setTimeout(async () => {\n const response = await ServiceLisa.action({\n context: { ...storeContext, ...context, form },\n intent,\n locale,\n session,\n }).catch(handleError);\n\n if (response) {\n set({ lisa: response });\n setMessages([...messages, { auto: true, ...response }]);\n audioNotification();\n }\n\n setBusy(false);\n }, DELAY_RESPONSE);\n };\n\n const handleError = (error) => {\n // eslint-disable-next-line no-console\n console.error('::handleError::', error);\n setOnline(false);\n };\n\n const addMessage = (response = {}, messages = []) => {\n set({ lisa: response });\n setMessages([...messages, { auto: true, ...response }]);\n if (response.locale !== locale) Event.publish(EVENT.INTENT_LOCALE, { locale: response.locale });\n };\n\n return !skeleton ? (\n <>\n {React.createElement(\n isMobile ? Modal : View,\n isMobile\n ? { ...others, visible, className: styles(style.container, others.className) }\n : {\n ...others,\n className: styles(style.container, visible && style.visible, others.className),\n 'aria-hidden': visible ? 'false' : 'true',\n },\n <>\n <Header {...{ online }} onClose={() => setVisible(false)} />\n\n <ScrollView scrollTo={scrollTo} snap={false} className={style.messages}>\n {messages.map((message, index) => (\n <Message\n {...message}\n key={`message:${index}`}\n disabled={busy || index < messages.length - 1}\n onAction={handleAction}\n />\n ))}\n {busy && <Message auto busy />}\n </ScrollView>\n\n {online && (\n <>\n <Input disabled={busy} onValue={handleInput} />\n <InputRich onValue={handleAction} />\n </>\n )}\n </>,\n )}\n\n <ButtonAvatar message={messages[0]} visible={visible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,CACJ,CAAC,eAEDjG,MAAA,CAAAe,OAAA,CAAAgG,aAAA,CAAC7G,KAAA,CAAAkI,YAAY;IAACvC,OAAO,EAAE/B,QAAQ,CAAC,CAAC,CAAE;IAACM,OAAO,EAAEA,OAAQ;IAACiE,OAAO,EAAEA,CAAA,KAAMhE,UAAU,CAAC,IAAI;EAAE,CAAE,CACxF,CAAC,GACD,IAAI;AACV,CAAC;AAACiE,OAAA,CAAA7F,IAAA,GAAAA,IAAA;AAEFA,IAAI,CAAC8F,WAAW,GAAG,iBAAiB;AAEpC9F,IAAI,CAAC+F,SAAS,GAAG;EACfC,IAAI,EAAEC,kBAAS,CAACC,MAAM;EACtBhG,QAAQ,EAAE+F,kBAAS,CAACE;AACtB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e46614c1-c969-5293-8a65-8e1644d7e7b3")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -23,5 +21,4 @@ const L10N = exports.L10N = {
23
21
  id: 'lisa.label.online'
24
22
  }
25
23
  };
26
- //# sourceMappingURL=Chat.l10n.js.map
27
- //# debugId=e46614c1-c969-5293-8a65-8e1644d7e7b3
24
+ //# sourceMappingURL=Chat.l10n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.l10n.js","sources":["../../../src/components/Chat/Chat.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_CLOSE: { id: 'common.action.close' },\n\n LABEL_ASSISTANT: { id: 'lisa.label.assistant' },\n LABEL_GREETINGS: { id: 'lisa.label.greetings' },\n LABEL_OFFLINE: { id: 'lisa.label.offline' },\n LABEL_ONLINE: { id: 'lisa.label.online' },\n};\n"],"names":["L10N","exports","ACTION_CLOSE","id","LABEL_ASSISTANT","LABEL_GREETINGS","LABEL_OFFLINE","LABEL_ONLINE"],"mappings":";;;;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,YAAY,EAAE;IAAEC,EAAE,EAAE;EAAsB,CAAC;EAE3CC,eAAe,EAAE;IAAED,EAAE,EAAE;EAAuB,CAAC;EAC/CE,eAAe,EAAE;IAAEF,EAAE,EAAE;EAAuB,CAAC;EAC/CG,aAAa,EAAE;IAAEH,EAAE,EAAE;EAAqB,CAAC;EAC3CI,YAAY,EAAE;IAAEJ,EAAE,EAAE;EAAoB;AAC1C,CAAC","debug_id":"e46614c1-c969-5293-8a65-8e1644d7e7b3"}
1
+ {"version":3,"file":"Chat.l10n.js","names":["L10N","exports","ACTION_CLOSE","id","LABEL_ASSISTANT","LABEL_GREETINGS","LABEL_OFFLINE","LABEL_ONLINE"],"sources":["../../../src/components/Chat/Chat.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_CLOSE: { id: 'common.action.close' },\n\n LABEL_ASSISTANT: { id: 'lisa.label.assistant' },\n LABEL_GREETINGS: { id: 'lisa.label.greetings' },\n LABEL_OFFLINE: { id: 'lisa.label.offline' },\n LABEL_ONLINE: { id: 'lisa.label.online' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,YAAY,EAAE;IAAEC,EAAE,EAAE;EAAsB,CAAC;EAE3CC,eAAe,EAAE;IAAED,EAAE,EAAE;EAAuB,CAAC;EAC/CE,eAAe,EAAE;IAAEF,EAAE,EAAE;EAAuB,CAAC;EAC/CG,aAAa,EAAE;IAAEH,EAAE,EAAE;EAAqB,CAAC;EAC3CI,YAAY,EAAE;IAAEJ,EAAE,EAAE;EAAoB;AAC1C,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="57bf6bbd-0793-523c-88bc-bf2f929fd777")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -67,5 +65,4 @@ Avatar.propTypes = {
67
65
  disabled: _propTypes.default.bool,
68
66
  small: _propTypes.default.bool
69
67
  };
70
- //# sourceMappingURL=Avatar.js.map
71
- //# debugId=57bf6bbd-0793-523c-88bc-bf2f929fd777
68
+ //# sourceMappingURL=Avatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.js","sources":["../../../../../src/components/Chat/components/Avatar/Avatar.jsx"],"sourcesContent":["import { styles, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef } from 'react';\n\nimport * as style from './Avatar.module.css';\n\nconst Avatar = ({ disabled, small, ...others }) => {\n const el = useRef();\n\n useEffect(() => {\n const handleMouseMove = ({ clientX = 0, clientY = 0 }) => {\n const { current: eyes } = el;\n let X = 0;\n let Y = 0;\n\n if (eyes && !disabled) {\n const { height, left, top, width } = eyes.getBoundingClientRect();\n const centerX = left + width / 2;\n const centerY = top + height / 2;\n const angle = Math.atan2(clientY - centerY, clientX - centerX);\n const sensitivity = small ? 2 : 4;\n\n X = sensitivity * Math.cos(angle);\n Y = sensitivity * Math.sin(angle);\n }\n\n eyes.style.transform = `translate(${X}px, ${Y}px)`;\n };\n\n window.addEventListener('mousemove', handleMouseMove);\n\n return () => window.removeEventListener('mousemove', handleMouseMove);\n }, [disabled, el, small]);\n\n return (\n <View {...others} className={styles(style.face, small && style.small, others.className)}>\n <View ref={el} className={style.eyes}>\n <View className={[style.eye, style.left]} />\n <View className={[style.eye, style.right]} />\n </View>\n </View>\n );\n};\n\nAvatar.propTypes = {\n disabled: PropTypes.bool,\n small: PropTypes.bool,\n};\n\nexport { Avatar };\n"],"names":["_ui","require","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Avatar","_ref","disabled","small","others","el","useRef","useEffect","handleMouseMove","_ref2","clientX","clientY","current","eyes","X","Y","height","left","top","width","getBoundingClientRect","centerX","centerY","angle","Math","atan2","sensitivity","cos","sin","transform","concat","window","addEventListener","removeEventListener","createElement","View","className","styles","face","ref","eye","right","exports","propTypes","PropTypes","bool"],"mappings":";;;;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAD,uBAAA,CAAAJ,OAAA;AAA6C,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,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K,CAACmC,KAAK,EAAEC,MAAM,CAACgC,SAAS;EAAE,iBACtFtE,MAAA,CAAAS,OAAA,CAAA2D,aAAA,CAACxE,GAAA,CAAAyE,IAAI;IAACI,GAAG,EAAElC,EAAG;IAAC+B,SAAS,EAAEpE,KAAK,CAAC6C;EAAK,gBACnC/C,MAAA,CAAAS,OAAA,CAAA2D,aAAA,CAACxE,GAAA,CAAAyE,IAAI;IAACC,SAAS,EAAE,CAACpE,KAAK,CAACwE,GAAG,EAAExE,KAAK,CAACiD,IAAI;EAAE,CAAE,CAAC,eAC5CnD,MAAA,CAAAS,OAAA,CAAA2D,aAAA,CAACxE,GAAA,CAAAyE,IAAI;IAACC,SAAS,EAAE,CAACpE,KAAK,CAACwE,GAAG,EAAExE,KAAK,CAACyE,KAAK;EAAE,CAAE,CACxC,CACF,CAAC;AAEX,CAAC;AAACC,OAAA,CAAA1C,MAAA,GAAAA,MAAA;AAEFA,MAAM,CAAC2C,SAAS,GAAG;EACjBzC,QAAQ,EAAE0C,kBAAS,CAACC,IAAI;EACxB1C,KAAK,EAAEyC,kBAAS,CAACC;AACnB,CAAC","debug_id":"57bf6bbd-0793-523c-88bc-bf2f929fd777"}
1
+ {"version":3,"file":"Avatar.js","names":["_ui","require","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Avatar","_ref","disabled","small","others","el","useRef","useEffect","handleMouseMove","_ref2","clientX","clientY","current","eyes","X","Y","height","left","top","width","getBoundingClientRect","centerX","centerY","angle","Math","atan2","sensitivity","cos","sin","transform","concat","window","addEventListener","removeEventListener","createElement","View","className","styles","face","ref","eye","right","exports","propTypes","PropTypes","bool"],"sources":["../../../../../src/components/Chat/components/Avatar/Avatar.jsx"],"sourcesContent":["import { styles, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef } from 'react';\n\nimport * as style from './Avatar.module.css';\n\nconst Avatar = ({ disabled, small, ...others }) => {\n const el = useRef();\n\n useEffect(() => {\n const handleMouseMove = ({ clientX = 0, clientY = 0 }) => {\n const { current: eyes } = el;\n let X = 0;\n let Y = 0;\n\n if (eyes && !disabled) {\n const { height, left, top, width } = eyes.getBoundingClientRect();\n const centerX = left + width / 2;\n const centerY = top + height / 2;\n const angle = Math.atan2(clientY - centerY, clientX - centerX);\n const sensitivity = small ? 2 : 4;\n\n X = sensitivity * Math.cos(angle);\n Y = sensitivity * Math.sin(angle);\n }\n\n eyes.style.transform = `translate(${X}px, ${Y}px)`;\n };\n\n window.addEventListener('mousemove', handleMouseMove);\n\n return () => window.removeEventListener('mousemove', handleMouseMove);\n }, [disabled, el, small]);\n\n return (\n <View {...others} className={styles(style.face, small && style.small, others.className)}>\n <View ref={el} className={style.eyes}>\n <View className={[style.eye, style.left]} />\n <View className={[style.eye, style.right]} />\n </View>\n </View>\n );\n};\n\nAvatar.propTypes = {\n disabled: PropTypes.bool,\n small: PropTypes.bool,\n};\n\nexport { Avatar };\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAD,uBAAA,CAAAJ,OAAA;AAA6C,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA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CAAC;IAEDgB,MAAM,CAACC,gBAAgB,CAAC,WAAW,EAAExB,eAAe,CAAC;IAErD,OAAO,MAAMuB,MAAM,CAACE,mBAAmB,CAAC,WAAW,EAAEzB,eAAe,CAAC;EACvE,CAAC,EAAE,CAACN,QAAQ,EAAEG,EAAE,EAAEF,KAAK,CAAC,CAAC;EAEzB,oBACErC,MAAA,CAAAS,OAAA,CAAA2D,aAAA,CAACxE,GAAA,CAAAyE,IAAI,EAAA5C,QAAA,KAAKa,MAAM;IAAEgC,SAAS,EAAE,IAAAC,UAAM,EAACrE,KAAK,CAACsE,IAAI,EAAEnC,KAAK,IAAInC,KAAK,CAACmC,KAAK,EAAEC,MAAM,CAACgC,SAAS;EAAE,iBACtFtE,MAAA,CAAAS,OAAA,CAAA2D,aAAA,CAACxE,GAAA,CAAAyE,IAAI;IAACI,GAAG,EAAElC,EAAG;IAAC+B,SAAS,EAAEpE,KAAK,CAAC6C;EAAK,gBACnC/C,MAAA,CAAAS,OAAA,CAAA2D,aAAA,CAACxE,GAAA,CAAAyE,IAAI;IAACC,SAAS,EAAE,CAACpE,KAAK,CAACwE,GAAG,EAAExE,KAAK,CAACiD,IAAI;EAAE,CAAE,CAAC,eAC5CnD,MAAA,CAAAS,OAAA,CAAA2D,aAAA,CAACxE,GAAA,CAAAyE,IAAI;IAACC,SAAS,EAAE,CAACpE,KAAK,CAACwE,GAAG,EAAExE,KAAK,CAACyE,KAAK;EAAE,CAAE,CACxC,CACF,CAAC;AAEX,CAAC;AAACC,OAAA,CAAA1C,MAAA,GAAAA,MAAA;AAEFA,MAAM,CAAC2C,SAAS,GAAG;EACjBzC,QAAQ,EAAE0C,kBAAS,CAACC,IAAI;EACxB1C,KAAK,EAAEyC,kBAAS,CAACC;AACnB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8706f6f3-0c64-58c2-847c-8e177e6a4dff")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -16,5 +14,4 @@ Object.keys(_Avatar).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
- //# sourceMappingURL=index.js.map
20
- //# debugId=8706f6f3-0c64-58c2-847c-8e177e6a4dff
17
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/components/Chat/components/Avatar/index.js"],"sourcesContent":["export * from './Avatar';\n"],"names":["_Avatar","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","debug_id":"8706f6f3-0c64-58c2-847c-8e177e6a4dff"}
1
+ {"version":3,"file":"index.js","names":["_Avatar","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../src/components/Chat/components/Avatar/index.js"],"sourcesContent":["export * from './Avatar';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1862b73c-6b74-53ca-b368-0f934913c409")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -71,5 +69,4 @@ Input.propTypes = {
71
69
  disabled: _propTypes.default.bool,
72
70
  onValue: _propTypes.default.func
73
71
  };
74
- //# sourceMappingURL=Input.js.map
75
- //# debugId=1862b73c-6b74-53ca-b368-0f934913c409
72
+ //# sourceMappingURL=Input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sources":["../../../../../src/components/Chat/components/Input/Input.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Icon, Input as InputBase, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { L10N } from './Input.l10n';\nimport * as style from './Input.module.css';\nimport { ICON } from '../../../helpers';\n\nconst Input = ({ disabled = false, onValue = () => {}, ...others }) => {\n const { translate } = useLocale();\n\n const [value, setValue] = useState();\n\n const handleChange = (value) => {\n setValue(value);\n };\n\n const handleKeyPress = ({ key } = {}) => {\n if (key === 'Enter') handlePress();\n };\n\n const handlePress = () => {\n if (isEmpty) return;\n\n onValue(value);\n setValue();\n };\n\n const isEmpty = !value || value.trim().length === 0;\n\n return (\n <View {...others} row className={style.container}>\n <InputBase\n autoResize\n multiLine\n name=\"input\"\n placeholder={translate(L10N.LABEL_SEND_MESSAGE)}\n value={value}\n onChange={handleChange}\n onKeyPress={handleKeyPress}\n className={style.input}\n />\n\n <Button disabled={disabled} small squared tooltip={translate(L10N.ACTION_SEND)} transparent onPress={handlePress}>\n <Icon light={isEmpty} value={ICON.SEND} />\n </Button>\n </View>\n );\n};\n\nInput.propTypes = {\n disabled: PropTypes.bool,\n onValue: PropTypes.func,\n};\n\nexport { Input };\n"],"names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Input","style","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Input","_ref","disabled","onValue","others","translate","useLocale","value","setValue","useState","handleChange","handleKeyPress","undefined","handlePress","isEmpty","trim","createElement","View","row","className","container","autoResize","multiLine","name","placeholder","L10N","LABEL_SEND_MESSAGE","onChange","onKeyPress","input","Button","small","squared","tooltip","ACTION_SEND","transparent","onPress","Icon","light","ICON","SEND","exports","propTypes","PropTypes","bool","func"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAwC,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL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AI,CAACC,kBAAkB,CAAE;IAChDnB,KAAK,EAAEA,KAAM;IACboB,QAAQ,EAAEjB,YAAa;IACvBkB,UAAU,EAAEjB,cAAe;IAC3BQ,SAAS,EAAEpD,KAAK,CAAC8D;EAAM,CACxB,CAAC,eAEFjE,MAAA,CAAAW,OAAA,CAAAyC,aAAA,CAACvD,GAAA,CAAAqE,MAAM;IAAC5B,QAAQ,EAAEA,QAAS;IAAC6B,KAAK;IAACC,OAAO;IAACC,OAAO,EAAE5B,SAAS,CAACoB,WAAI,CAACS,WAAW,CAAE;IAACC,WAAW;IAACC,OAAO,EAAEvB;EAAY,gBAC/GjD,MAAA,CAAAW,OAAA,CAAAyC,aAAA,CAACvD,GAAA,CAAA4E,IAAI;IAACC,KAAK,EAAExB,OAAQ;IAACP,KAAK,EAAEgC,aAAI,CAACC;EAAK,CAAE,CACnC,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAzC,KAAA,GAAAA,KAAA;AAEFA,KAAK,CAAC0C,SAAS,GAAG;EAChBxC,QAAQ,EAAEyC,kBAAS,CAACC,IAAI;EACxBzC,OAAO,EAAEwC,kBAAS,CAACE;AACrB,CAAC","debug_id":"1862b73c-6b74-53ca-b368-0f934913c409"}
1
+ {"version":3,"file":"Input.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Input","style","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Input","_ref","disabled","onValue","others","translate","useLocale","value","setValue","useState","handleChange","handleKeyPress","undefined","handlePress","isEmpty","trim","createElement","View","row","className","container","autoResize","multiLine","name","placeholder","L10N","LABEL_SEND_MESSAGE","onChange","onKeyPress","input","Button","small","squared","tooltip","ACTION_SEND","transparent","onPress","Icon","light","ICON","SEND","exports","propTypes","PropTypes","bool","func"],"sources":["../../../../../src/components/Chat/components/Input/Input.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Icon, Input as InputBase, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { L10N } from './Input.l10n';\nimport * as style from './Input.module.css';\nimport { ICON } from '../../../helpers';\n\nconst Input = ({ disabled = false, onValue = () => {}, ...others }) => {\n const { translate } = useLocale();\n\n const [value, setValue] = useState();\n\n const handleChange = (value) => {\n setValue(value);\n };\n\n const handleKeyPress = ({ key } = {}) => {\n if (key === 'Enter') handlePress();\n };\n\n const handlePress = () => {\n if (isEmpty) return;\n\n onValue(value);\n setValue();\n };\n\n const isEmpty = !value || value.trim().length === 0;\n\n return (\n <View {...others} row className={style.container}>\n <InputBase\n autoResize\n multiLine\n name=\"input\"\n placeholder={translate(L10N.LABEL_SEND_MESSAGE)}\n value={value}\n onChange={handleChange}\n onKeyPress={handleKeyPress}\n className={style.input}\n />\n\n <Button disabled={disabled} small squared tooltip={translate(L10N.ACTION_SEND)} transparent onPress={handlePress}>\n <Icon light={isEmpty} value={ICON.SEND} />\n </Button>\n </View>\n );\n};\n\nInput.propTypes = {\n disabled: PropTypes.bool,\n onValue: PropTypes.func,\n};\n\nexport { Input };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAwC,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAA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D,KAAK,CAACqD;EAAU,iBAC/CxD,MAAA,CAAAW,OAAA,CAAAyC,aAAA,CAACvD,GAAA,CAAAuC,KAAS;IACRqB,UAAU;IACVC,SAAS;IACTC,IAAI,EAAC,OAAO;IACZC,WAAW,EAAEnB,SAAS,CAACoB,WAAI,CAACC,kBAAkB,CAAE;IAChDnB,KAAK,EAAEA,KAAM;IACboB,QAAQ,EAAEjB,YAAa;IACvBkB,UAAU,EAAEjB,cAAe;IAC3BQ,SAAS,EAAEpD,KAAK,CAAC8D;EAAM,CACxB,CAAC,eAEFjE,MAAA,CAAAW,OAAA,CAAAyC,aAAA,CAACvD,GAAA,CAAAqE,MAAM;IAAC5B,QAAQ,EAAEA,QAAS;IAAC6B,KAAK;IAACC,OAAO;IAACC,OAAO,EAAE5B,SAAS,CAACoB,WAAI,CAACS,WAAW,CAAE;IAACC,WAAW;IAACC,OAAO,EAAEvB;EAAY,gBAC/GjD,MAAA,CAAAW,OAAA,CAAAyC,aAAA,CAACvD,GAAA,CAAA4E,IAAI;IAACC,KAAK,EAAExB,OAAQ;IAACP,KAAK,EAAEgC,aAAI,CAACC;EAAK,CAAE,CACnC,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAzC,KAAA,GAAAA,KAAA;AAEFA,KAAK,CAAC0C,SAAS,GAAG;EAChBxC,QAAQ,EAAEyC,kBAAS,CAACC,IAAI;EACxBzC,OAAO,EAAEwC,kBAAS,CAACE;AACrB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4815a7ea-bbc0-5291-bae2-d8aad877eac6")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -14,5 +12,4 @@ const L10N = exports.L10N = {
14
12
  id: 'lisa.label.send_message'
15
13
  }
16
14
  };
17
- //# sourceMappingURL=Input.l10n.js.map
18
- //# debugId=4815a7ea-bbc0-5291-bae2-d8aad877eac6
15
+ //# sourceMappingURL=Input.l10n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.l10n.js","sources":["../../../../../src/components/Chat/components/Input/Input.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_SEND: { id: 'common.action.send' },\n LABEL_SEND_MESSAGE: { id: 'lisa.label.send_message' },\n};\n"],"names":["L10N","exports","ACTION_SEND","id","LABEL_SEND_MESSAGE"],"mappings":";;;;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,WAAW,EAAE;IAAEC,EAAE,EAAE;EAAqB,CAAC;EACzCC,kBAAkB,EAAE;IAAED,EAAE,EAAE;EAA0B;AACtD,CAAC","debug_id":"4815a7ea-bbc0-5291-bae2-d8aad877eac6"}
1
+ {"version":3,"file":"Input.l10n.js","names":["L10N","exports","ACTION_SEND","id","LABEL_SEND_MESSAGE"],"sources":["../../../../../src/components/Chat/components/Input/Input.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_SEND: { id: 'common.action.send' },\n LABEL_SEND_MESSAGE: { id: 'lisa.label.send_message' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,WAAW,EAAE;IAAEC,EAAE,EAAE;EAAqB,CAAC;EACzCC,kBAAkB,EAAE;IAAED,EAAE,EAAE;EAA0B;AACtD,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f4b22f8a-1de8-520f-8efa-967bdf1a84d0")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -16,5 +14,4 @@ Object.keys(_Input).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
- //# sourceMappingURL=index.js.map
20
- //# debugId=f4b22f8a-1de8-520f-8efa-967bdf1a84d0
17
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/components/Chat/components/Input/index.js"],"sourcesContent":["export * from './Input';\n"],"names":["_Input","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","debug_id":"f4b22f8a-1de8-520f-8efa-967bdf1a84d0"}
1
+ {"version":3,"file":"index.js","names":["_Input","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../src/components/Chat/components/Input/index.js"],"sourcesContent":["export * from './Input';\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2acbc587-7528-5de9-832c-88682a908c06")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -51,5 +49,4 @@ List.propTypes = {
51
49
  onChange: _propTypes.default.func,
52
50
  onValid: _propTypes.default.func
53
51
  };
54
- //# sourceMappingURL=InputRich.List.js.map
55
- //# debugId=2acbc587-7528-5de9-832c-88682a908c06
52
+ //# sourceMappingURL=InputRich.List.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputRich.List.js","sources":["../../../../../src/components/Chat/components/InputRich/InputRich.List.jsx"],"sourcesContent":["import { Pressable, ScrollView, styles, Text } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport * as style from './InputRich.module.css';\n\nconst List = ({ options = [], value, onChange = () => {}, onValid = () => {}, ...others }) => {\n const handlePress = (id) => {\n onChange(id);\n onValid(true);\n };\n\n return (\n <ScrollView {...others} height={128} className={styles(style.list, others.className)}>\n {options.map(({ id, label } = {}) => (\n <Pressable\n key={id}\n onPress={() => handlePress(id)}\n className={styles(style.item, value === id && style.selected)}\n >\n <Text>{label}</Text>\n </Pressable>\n ))}\n </ScrollView>\n );\n};\n\nList.propTypes = {\n options: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n label: PropTypes.label,\n }),\n ),\n value: PropTypes.string,\n onChange: PropTypes.func,\n onValid: PropTypes.func,\n};\n\nexport { List };\n"],"names":["_ui","require","_propTypes","_interopRequireDefault","_react","style","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","List","_ref","options","value","onChange","onValid","others","handlePress","id","createElement","ScrollView","height","className","styles","list","map","label","undefined","Pressable","onPress","item","selected","Text","exports","propTypes","PropTypes","arrayOf","shape","string","func"],"mappings":";;;;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,KAAA,GAAAC,uBAAA,CAAAL,OAAA;AAAgD,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAA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AER,MAAM,CAACM,SAAS;EAAE,IAClFV,OAAO,CAACa,GAAG,CAAC;IAAA,IAAC;MAAEP,EAAE;MAAEQ;IAAM,CAAC,GAAArB,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAsB,SAAA,GAAAtB,SAAA,MAAG,CAAC,CAAC;IAAA,oBAC9B7B,MAAA,CAAAS,OAAA,CAAAkC,aAAA,CAAC/C,GAAA,CAAAwD,SAAS;MACRpB,GAAG,EAAEU,EAAG;MACRW,OAAO,EAAEA,CAAA,KAAMZ,WAAW,CAACC,EAAE,CAAE;MAC/BI,SAAS,EAAE,IAAAC,UAAM,EAAC9C,KAAK,CAACqD,IAAI,EAAEjB,KAAK,KAAKK,EAAE,IAAIzC,KAAK,CAACsD,QAAQ;IAAE,gBAE9DvD,MAAA,CAAAS,OAAA,CAAAkC,aAAA,CAAC/C,GAAA,CAAA4D,IAAI,QAAEN,KAAY,CACV,CAAC;EAAA,CACb,CACS,CAAC;AAEjB,CAAC;AAACO,OAAA,CAAAvB,IAAA,GAAAA,IAAA;AAEFA,IAAI,CAACwB,SAAS,GAAG;EACftB,OAAO,EAAEuB,kBAAS,CAACC,OAAO,CACxBD,kBAAS,CAACE,KAAK,CAAC;IACdnB,EAAE,EAAEiB,kBAAS,CAACG,MAAM;IACpBZ,KAAK,EAAES,kBAAS,CAACT;EACnB,CAAC,CACH,CAAC;EACDb,KAAK,EAAEsB,kBAAS,CAACG,MAAM;EACvBxB,QAAQ,EAAEqB,kBAAS,CAACI,IAAI;EACxBxB,OAAO,EAAEoB,kBAAS,CAACI;AACrB,CAAC","debug_id":"2acbc587-7528-5de9-832c-88682a908c06"}
1
+ {"version":3,"file":"InputRich.List.js","names":["_ui","require","_propTypes","_interopRequireDefault","_react","style","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","List","_ref","options","value","onChange","onValid","others","handlePress","id","createElement","ScrollView","height","className","styles","list","map","label","undefined","Pressable","onPress","item","selected","Text","exports","propTypes","PropTypes","arrayOf","shape","string","func"],"sources":["../../../../../src/components/Chat/components/InputRich/InputRich.List.jsx"],"sourcesContent":["import { Pressable, ScrollView, styles, Text } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport * as style from './InputRich.module.css';\n\nconst List = ({ options = [], value, onChange = () => {}, onValid = () => {}, ...others }) => {\n const handlePress = (id) => {\n onChange(id);\n onValid(true);\n };\n\n return (\n <ScrollView {...others} height={128} className={styles(style.list, others.className)}>\n {options.map(({ id, label } = {}) => (\n <Pressable\n key={id}\n onPress={() => handlePress(id)}\n className={styles(style.item, value === id && style.selected)}\n >\n <Text>{label}</Text>\n </Pressable>\n ))}\n </ScrollView>\n );\n};\n\nList.propTypes = {\n options: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string,\n label: PropTypes.label,\n }),\n ),\n value: PropTypes.string,\n onChange: PropTypes.func,\n onValid: PropTypes.func,\n};\n\nexport { List };\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,KAAA,GAAAC,uBAAA,CAAAL,OAAA;AAAgD,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAA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AAA,IAAA;AAEFA,IAAI,CAACwB,SAAS,GAAG;EACftB,OAAO,EAAEuB,kBAAS,CAACC,OAAO,CACxBD,kBAAS,CAACE,KAAK,CAAC;IACdnB,EAAE,EAAEiB,kBAAS,CAACG,MAAM;IACpBZ,KAAK,EAAES,kBAAS,CAACT;EACnB,CAAC,CACH,CAAC;EACDb,KAAK,EAAEsB,kBAAS,CAACG,MAAM;EACvBxB,QAAQ,EAAEqB,kBAAS,CAACI,IAAI;EACxBxB,OAAO,EAAEoB,kBAAS,CAACI;AACrB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7e3a947d-918d-5b83-bcb8-7deaf64f60b8")}catch(e){}}();
3
-
4
2
 
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
@@ -180,5 +178,4 @@ InputRich.propTypes = {
180
178
  disabled: _propTypes.default.bool,
181
179
  onValue: _propTypes.default.func
182
180
  };
183
- //# sourceMappingURL=InputRich.js.map
184
- //# debugId=7e3a947d-918d-5b83-bcb8-7deaf64f60b8
181
+ //# sourceMappingURL=InputRich.js.map