@mirai/core 0.3.171 → 0.3.172

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 (137) hide show
  1. package/.env +7 -4
  2. package/build/components/Booking/components/Hotelverse/Hotelverse.js +1 -1
  3. package/build/components/Booking/components/Hotelverse/Hotelverse.js.map +1 -1
  4. package/build/components/Chat/Chat.constants.js +28 -0
  5. package/build/components/Chat/Chat.constants.js.map +1 -0
  6. package/build/components/Chat/Chat.js +231 -0
  7. package/build/components/Chat/Chat.js.map +1 -0
  8. package/build/components/Chat/Chat.l10n.js +24 -0
  9. package/build/components/Chat/Chat.l10n.js.map +1 -0
  10. package/build/components/Chat/Chat.module.css +90 -0
  11. package/build/components/Chat/Chat.theme.module.css +49 -0
  12. package/build/components/Chat/components/Avatar/Avatar.js +68 -0
  13. package/build/components/Chat/components/Avatar/Avatar.js.map +1 -0
  14. package/build/components/Chat/components/Avatar/Avatar.module.css +81 -0
  15. package/build/components/Chat/components/Avatar/__tests__/__snapshots__/Avatar.test.jsx.snap +97 -0
  16. package/build/components/Chat/components/Avatar/index.js +17 -0
  17. package/build/components/Chat/components/Avatar/index.js.map +1 -0
  18. package/build/components/Chat/components/Input/Input.js +72 -0
  19. package/build/components/Chat/components/Input/Input.js.map +1 -0
  20. package/build/components/Chat/components/Input/Input.l10n.js +15 -0
  21. package/build/components/Chat/components/Input/Input.l10n.js.map +1 -0
  22. package/build/components/Chat/components/Input/Input.module.css +19 -0
  23. package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +175 -0
  24. package/build/components/Chat/components/Input/index.js +17 -0
  25. package/build/components/Chat/components/Input/index.js.map +1 -0
  26. package/build/components/Chat/components/InputRich/InputRich.List.js +52 -0
  27. package/build/components/Chat/components/InputRich/InputRich.List.js.map +1 -0
  28. package/build/components/Chat/components/InputRich/InputRich.js +182 -0
  29. package/build/components/Chat/components/InputRich/InputRich.js.map +1 -0
  30. package/build/components/Chat/components/InputRich/InputRich.l10n.js +12 -0
  31. package/build/components/Chat/components/InputRich/InputRich.l10n.js.map +1 -0
  32. package/build/components/Chat/components/InputRich/InputRich.module.css +73 -0
  33. package/build/components/Chat/components/InputRich/__tests__/__snapshots__/InputRich.test.jsx.snap +275 -0
  34. package/build/components/Chat/components/InputRich/helpers/getVerboseList.js +20 -0
  35. package/build/components/Chat/components/InputRich/helpers/getVerboseList.js.map +1 -0
  36. package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js +27 -0
  37. package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js.map +1 -0
  38. package/build/components/Chat/components/InputRich/helpers/index.js +28 -0
  39. package/build/components/Chat/components/InputRich/helpers/index.js.map +1 -0
  40. package/build/components/Chat/components/InputRich/index.js +17 -0
  41. package/build/components/Chat/components/InputRich/index.js.map +1 -0
  42. package/build/components/Chat/components/Message/Message.constants.js +18 -0
  43. package/build/components/Chat/components/Message/Message.constants.js.map +1 -0
  44. package/build/components/Chat/components/Message/Message.js +104 -0
  45. package/build/components/Chat/components/Message/Message.js.map +1 -0
  46. package/build/components/Chat/components/Message/Message.module.css +126 -0
  47. package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +211 -0
  48. package/build/components/Chat/components/Message/components/Booking.js +63 -0
  49. package/build/components/Chat/components/Message/components/Booking.js.map +1 -0
  50. package/build/components/Chat/components/Message/components/Card.js +67 -0
  51. package/build/components/Chat/components/Message/components/Card.js.map +1 -0
  52. package/build/components/Chat/components/Message/components/Card.module.css +41 -0
  53. package/build/components/Chat/components/Message/components/Environment.js +58 -0
  54. package/build/components/Chat/components/Message/components/Environment.js.map +1 -0
  55. package/build/components/Chat/components/Message/components/Environment.module.css +22 -0
  56. package/build/components/Chat/components/Message/components/index.js +39 -0
  57. package/build/components/Chat/components/Message/components/index.js.map +1 -0
  58. package/build/components/Chat/components/Message/helpers/getActionIcon.js +13 -0
  59. package/build/components/Chat/components/Message/helpers/getActionIcon.js.map +1 -0
  60. package/build/components/Chat/components/Message/helpers/getTime.js +28 -0
  61. package/build/components/Chat/components/Message/helpers/getTime.js.map +1 -0
  62. package/build/components/Chat/components/Message/helpers/index.js +28 -0
  63. package/build/components/Chat/components/Message/helpers/index.js.map +1 -0
  64. package/build/components/Chat/components/Message/index.js +17 -0
  65. package/build/components/Chat/components/Message/index.js.map +1 -0
  66. package/build/components/Chat/components/Message/intents/BookingQuery.js +66 -0
  67. package/build/components/Chat/components/Message/intents/BookingQuery.js.map +1 -0
  68. package/build/components/Chat/components/Message/intents/HotelInfo.js +73 -0
  69. package/build/components/Chat/components/Message/intents/HotelInfo.js.map +1 -0
  70. package/build/components/Chat/components/Message/intents/Offers.js +57 -0
  71. package/build/components/Chat/components/Message/intents/Offers.js.map +1 -0
  72. package/build/components/Chat/components/Message/intents/Unknown.js +67 -0
  73. package/build/components/Chat/components/Message/intents/Unknown.js.map +1 -0
  74. package/build/components/Chat/components/Message/intents/index.js +50 -0
  75. package/build/components/Chat/components/Message/intents/index.js.map +1 -0
  76. package/build/components/Chat/components/Offline/Offline.js +22 -0
  77. package/build/components/Chat/components/Offline/Offline.js.map +1 -0
  78. package/build/components/Chat/components/Offline/Offline.module.css +3 -0
  79. package/build/components/Chat/components/Offline/index.js +17 -0
  80. package/build/components/Chat/components/Offline/index.js.map +1 -0
  81. package/build/components/Chat/components/index.js +61 -0
  82. package/build/components/Chat/components/index.js.map +1 -0
  83. package/build/components/Chat/helpers/getVerboseDate.js +18 -0
  84. package/build/components/Chat/helpers/getVerboseDate.js.map +1 -0
  85. package/build/components/Chat/helpers/index.js +17 -0
  86. package/build/components/Chat/helpers/index.js.map +1 -0
  87. package/build/components/Chat/index.js +17 -0
  88. package/build/components/Chat/index.js.map +1 -0
  89. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +440 -16
  90. package/build/components/Rates/Rates.constants.js +1 -0
  91. package/build/components/Rates/Rates.constants.js.map +1 -1
  92. package/build/components/Rates/Rates.js +2 -0
  93. package/build/components/Rates/Rates.js.map +1 -1
  94. package/build/components/Rates/components/Hotelverse/Hotelverse.js +1 -1
  95. package/build/components/Rates/components/Hotelverse/Hotelverse.js.map +1 -1
  96. package/build/components/Rates/components/Item/components/Features/Features.js +27 -2
  97. package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
  98. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +5 -1
  99. package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
  100. package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +1 -1
  101. package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +1 -1
  102. package/build/components/__shared__/Payment/Payment.js +1 -1
  103. package/build/components/__shared__/Payment/Payment.js.map +1 -1
  104. package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +290 -8
  105. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +1 -2
  106. package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
  107. package/build/components/__shared__/Payment/components/PCI/PCI.js +59 -56
  108. package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
  109. package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +15 -0
  110. package/build/components/helpers/ICON.js +13 -0
  111. package/build/components/helpers/ICON.js.map +1 -1
  112. package/build/components/index.js +2 -0
  113. package/build/components/index.js.map +1 -1
  114. package/build/services/Lisa/action.js +28 -0
  115. package/build/services/Lisa/action.js.map +1 -0
  116. package/build/services/Lisa/index.js +17 -0
  117. package/build/services/Lisa/index.js.map +1 -0
  118. package/build/services/Lisa/message.js +26 -0
  119. package/build/services/Lisa/message.js.map +1 -0
  120. package/build/services/Lisa/status.js +13 -0
  121. package/build/services/Lisa/status.js.map +1 -0
  122. package/build/services/Lisa/welcome.js +25 -0
  123. package/build/services/Lisa/welcome.js.map +1 -0
  124. package/build/services/Rates/__tests__/__mocks__/rates-response-cancel-types.json +21 -0
  125. package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes-no-local.json +6 -0
  126. package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes.json +4 -0
  127. package/build/services/Rates/__tests__/__mocks__/rates-response.json +6 -0
  128. package/build/services/Rates/extras.js +1 -1
  129. package/build/services/Rates/extras.js.map +1 -1
  130. package/build/services/Rates/helpers/getItems.js +1 -1
  131. package/build/services/Rates/helpers/getItems.js.map +1 -1
  132. package/build/services/Rates/helpers/parseBoards.js +1 -0
  133. package/build/services/Rates/helpers/parseBoards.js.map +1 -1
  134. package/build/services/index.js +11 -0
  135. package/build/services/index.js.map +1 -1
  136. package/package.json +1 -1
  137. package/public/App.Container.jsx +2 -0
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _BookingQuery = require("./BookingQuery");
7
+ Object.keys(_BookingQuery).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _BookingQuery[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _BookingQuery[key];
14
+ }
15
+ });
16
+ });
17
+ var _HotelInfo = require("./HotelInfo");
18
+ Object.keys(_HotelInfo).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _HotelInfo[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _HotelInfo[key];
25
+ }
26
+ });
27
+ });
28
+ var _Offers = require("./Offers");
29
+ Object.keys(_Offers).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _Offers[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _Offers[key];
36
+ }
37
+ });
38
+ });
39
+ var _Unknown = require("./Unknown");
40
+ Object.keys(_Unknown).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _Unknown[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _Unknown[key];
47
+ }
48
+ });
49
+ });
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_BookingQuery","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_HotelInfo","_Offers","_Unknown"],"sources":["../../../../../../src/components/Chat/components/Message/intents/index.js"],"sourcesContent":["export * from './BookingQuery';\nexport * from './HotelInfo';\nexport * from './Offers';\nexport * from './Unknown';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,OAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,OAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,OAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,OAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,QAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,QAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,QAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,QAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Offline = void 0;
7
+ var _ui = require("@mirai/ui");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var style = _interopRequireWildcard(require("./Offline.module.css"));
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ const Offline = () => {
14
+ return /*#__PURE__*/_react.default.createElement(_ui.Notification, {
15
+ error: true,
16
+ small: true,
17
+ className: style.container
18
+ }, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum tempore ipsa inventore, sed corporis distinctio.");
19
+ };
20
+ exports.Offline = Offline;
21
+ Offline.propTypes = {};
22
+ //# sourceMappingURL=Offline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Offline.js","names":["_ui","require","_react","_interopRequireDefault","style","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Offline","createElement","Notification","error","small","className","container","exports","propTypes"],"sources":["../../../../../src/components/Chat/components/Offline/Offline.jsx"],"sourcesContent":["import { Notification } from '@mirai/ui';\nimport React from 'react';\n\nimport * as style from './Offline.module.css';\n\nconst Offline = () => {\n return (\n <Notification error small className={style.container}>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum tempore ipsa inventore, sed corporis distinctio.\n </Notification>\n );\n};\n\nOffline.propTypes = {};\n\nexport { Offline };\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAA8C,SAAAK,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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 .container {
2
+ margin: var(--mirai-chat-space);
3
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Offline = require("./Offline");
7
+ Object.keys(_Offline).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Offline[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Offline[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_Offline","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../src/components/Chat/components/Offline/index.js"],"sourcesContent":["export * from './Offline';\n"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Avatar = require("./Avatar");
7
+ Object.keys(_Avatar).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Avatar[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Avatar[key];
14
+ }
15
+ });
16
+ });
17
+ var _Input = require("./Input");
18
+ Object.keys(_Input).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _Input[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _Input[key];
25
+ }
26
+ });
27
+ });
28
+ var _InputRich = require("./InputRich");
29
+ Object.keys(_InputRich).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _InputRich[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _InputRich[key];
36
+ }
37
+ });
38
+ });
39
+ var _Offline = require("./Offline");
40
+ Object.keys(_Offline).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _Offline[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _Offline[key];
47
+ }
48
+ });
49
+ });
50
+ var _Message = require("./Message");
51
+ Object.keys(_Message).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _Message[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _Message[key];
58
+ }
59
+ });
60
+ });
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_Avatar","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Input","_InputRich","_Offline","_Message"],"sources":["../../../../src/components/Chat/components/index.js"],"sourcesContent":["export * from './Avatar';\nexport * from './Input';\nexport * from './InputRich';\nexport * from './Offline';\nexport * from './Message';\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,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AAAC,IAAA,CAAAU,QAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,QAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,QAAA,CAAAR,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getVerboseDate = void 0;
7
+ var _locale = require("@mirai/locale");
8
+ var _Chat = require("../Chat.constants");
9
+ const getVerboseDate = function () {
10
+ let date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11
+ let locale = arguments.length > 1 ? arguments[1] : undefined;
12
+ return (Array.isArray(date) ? date : [date]).map(date => (0, _locale.dateFormat)((0, _locale.parseDate)(date), {
13
+ locale,
14
+ ..._Chat.VERBOSE_DATE_FORMAT
15
+ })).join(' ─ ');
16
+ };
17
+ exports.getVerboseDate = getVerboseDate;
18
+ //# sourceMappingURL=getVerboseDate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVerboseDate.js","names":["_locale","require","_Chat","getVerboseDate","date","arguments","length","undefined","locale","Array","isArray","map","dateFormat","parseDate","VERBOSE_DATE_FORMAT","join","exports"],"sources":["../../../../src/components/Chat/helpers/getVerboseDate.js"],"sourcesContent":["import { dateFormat, parseDate } from '@mirai/locale';\n\nimport { VERBOSE_DATE_FORMAT } from '../Chat.constants';\n\nexport const getVerboseDate = (date = [], locale) =>\n (Array.isArray(date) ? date : [date])\n .map((date) => dateFormat(parseDate(date), { locale, ...VERBOSE_DATE_FORMAT }))\n .join(' ─ ');\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEO,MAAME,cAAc,GAAG,SAAAA,CAAA;EAAA,IAACC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAAA,OAC9C,CAACE,KAAK,CAACC,OAAO,CAACN,IAAI,CAAC,GAAGA,IAAI,GAAG,CAACA,IAAI,CAAC,EACjCO,GAAG,CAAEP,IAAI,IAAK,IAAAQ,kBAAU,EAAC,IAAAC,iBAAS,EAACT,IAAI,CAAC,EAAE;IAAEI,MAAM;IAAE,GAAGM;EAAoB,CAAC,CAAC,CAAC,CAC9EC,IAAI,CAAC,KAAK,CAAC;AAAA;AAACC,OAAA,CAAAb,cAAA,GAAAA,cAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _getVerboseDate = require("./getVerboseDate");
7
+ Object.keys(_getVerboseDate).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _getVerboseDate[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _getVerboseDate[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_getVerboseDate","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/Chat/helpers/index.js"],"sourcesContent":["export * from './getVerboseDate';\n"],"mappings":";;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,eAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Chat = require("./Chat");
7
+ Object.keys(_Chat).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Chat[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Chat[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_Chat","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../src/components/Chat/index.js"],"sourcesContent":["export * from './Chat';\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}