hanbiro-react16-sdk 1.0.27 → 1.0.29

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 (69) hide show
  1. package/README.md +58 -5
  2. package/dist/components/ChatAIDraft/ChatInput.js +3 -1
  3. package/dist/components/ChatAIDraft/ChatList/LoadingDots.js +4 -3
  4. package/dist/components/ChatAIDraft/ChatList/MessageItem.js +7 -5
  5. package/dist/components/ChatAIDraft/CreatePanel/EmptyState.js +15 -15
  6. package/dist/components/ChatAIDraft/CreatePanel/index.js +3 -3
  7. package/dist/components/ChatAIDraft/ReplyPanel/BaseModal.d.ts +15 -0
  8. package/dist/components/ChatAIDraft/ReplyPanel/BaseModal.js +101 -0
  9. package/dist/components/ChatAIDraft/ReplyPanel/ContextPreviewModal.d.ts +13 -0
  10. package/dist/components/ChatAIDraft/ReplyPanel/ContextPreviewModal.js +65 -0
  11. package/dist/components/ChatAIDraft/ReplyPanel/EmptyState.d.ts +1 -8
  12. package/dist/components/ChatAIDraft/ReplyPanel/EmptyState.js +11 -227
  13. package/dist/components/ChatAIDraft/ReplyPanel/Header/SelectedChip.d.ts +10 -0
  14. package/dist/components/ChatAIDraft/ReplyPanel/Header/SelectedChip.js +79 -0
  15. package/dist/components/ChatAIDraft/ReplyPanel/Header/SourceCard.d.ts +8 -0
  16. package/dist/components/ChatAIDraft/ReplyPanel/Header/SourceCard.js +52 -0
  17. package/dist/components/ChatAIDraft/ReplyPanel/Header/index.d.ts +12 -0
  18. package/dist/components/ChatAIDraft/ReplyPanel/Header/index.js +139 -0
  19. package/dist/components/ChatAIDraft/ReplyPanel/MailListSelect.d.ts +1 -0
  20. package/dist/components/ChatAIDraft/ReplyPanel/MailListSelect.js +71 -155
  21. package/dist/components/ChatAIDraft/ReplyPanel/index.d.ts +5 -1
  22. package/dist/components/ChatAIDraft/ReplyPanel/index.js +42 -201
  23. package/dist/components/ChatAIDraft/SettingPopper/index.js +8 -6
  24. package/dist/components/ChatAIDraft/constants.d.ts +2 -2
  25. package/dist/components/ChatAIDraft/constants.js +16 -14
  26. package/dist/components/ChatAIDraft/index.d.ts +1 -0
  27. package/dist/components/ChatAIDraft/index.js +7 -1
  28. package/dist/components/Pagination/index.d.ts +20 -0
  29. package/dist/components/Pagination/index.js +133 -0
  30. package/dist/components/SummaryAIEmails/FilterTabs.d.ts +8 -0
  31. package/dist/components/SummaryAIEmails/FilterTabs.js +59 -0
  32. package/dist/components/SummaryAIEmails/LanguagePopover.d.ts +24 -0
  33. package/dist/components/SummaryAIEmails/LanguagePopover.js +110 -0
  34. package/dist/components/SummaryAIEmails/SummaryItem.d.ts +7 -0
  35. package/dist/components/SummaryAIEmails/SummaryItem.js +76 -0
  36. package/dist/components/SummaryAIEmails/TargetInfoBar.d.ts +9 -0
  37. package/dist/components/SummaryAIEmails/TargetInfoBar.js +81 -0
  38. package/dist/components/SummaryAIEmails/index.d.ts +35 -0
  39. package/dist/components/SummaryAIEmails/index.js +222 -0
  40. package/dist/components/SummaryAIEmails/types.d.ts +16 -0
  41. package/dist/components/SummaryAIEmails/utils.d.ts +12 -0
  42. package/dist/components/SummaryAIEmails/utils.js +47 -0
  43. package/dist/components/index.d.ts +2 -4
  44. package/dist/hanbiro-react16-sdk.style.css +7 -2
  45. package/dist/hanbiro-react16-sdk.umd.js +2169 -1033
  46. package/dist/index.js +13 -14
  47. package/dist/lang/en.d.ts +3 -0
  48. package/dist/lang/en.js +66 -0
  49. package/dist/lang/index.d.ts +4 -0
  50. package/dist/lang/index.js +18 -0
  51. package/dist/lang/keyLang.d.ts +62 -0
  52. package/dist/lang/keyLang.js +66 -0
  53. package/dist/lang/ko.d.ts +3 -0
  54. package/dist/lang/ko.js +66 -0
  55. package/dist/lang/vi.d.ts +3 -0
  56. package/dist/lang/vi.js +66 -0
  57. package/dist/node_modules/react-feather/dist/icons/arrow-down.js +73 -0
  58. package/dist/node_modules/react-feather/dist/icons/chevron-left.js +68 -0
  59. package/dist/node_modules/react-feather/dist/icons/chevron-right.js +68 -0
  60. package/dist/node_modules/react-feather/dist/icons/globe.js +77 -0
  61. package/dist/node_modules/react-feather/dist/icons/x.js +76 -0
  62. package/dist/utils/index.d.ts +1 -1
  63. package/dist/utils/lang.d.ts +1 -0
  64. package/dist/utils/lang.js +30 -0
  65. package/dist/utils/storage.d.ts +8 -0
  66. package/dist/utils/storage.js +19 -0
  67. package/dist/utils/url.d.ts +2 -0
  68. package/dist/utils/url.js +8 -15
  69. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  /*!
2
- * hanbiro-react16-sdk v1.0.27
3
- * Build Date: 2026-05-21
2
+ * hanbiro-react16-sdk v1.0.29
3
+ * Build Date: 2026-05-22
4
4
  */
5
+ function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); }
5
6
  function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
6
7
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
7
8
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -35,7 +36,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
35
36
  })(this, function (exports2, React, ReactDOM) {
36
37
  "use strict";
37
38
 
38
- var _this9 = this;
39
+ var _this9 = this,
40
+ _en,
41
+ _vi,
42
+ _ko;
39
43
  var __defProp = Object.defineProperty;
40
44
  var __defProps = Object.defineProperties;
41
45
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -174,9 +178,43 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
174
178
  rnds[8] = rnds[8] & 63 | 128;
175
179
  return unsafeStringify(rnds);
176
180
  }
181
+ var LOCAL_STORAGE_KEY = /* @__PURE__ */function (LOCAL_STORAGE_KEY2) {
182
+ LOCAL_STORAGE_KEY2["LANG_CODE"] = "lang.code";
183
+ return LOCAL_STORAGE_KEY2;
184
+ }(LOCAL_STORAGE_KEY || {});
185
+ var localStorageService = {
186
+ get: function get(key) {
187
+ return localStorage.getItem(key);
188
+ },
189
+ set: function set(key, value) {
190
+ localStorage.setItem(key, value);
191
+ },
192
+ remove: function remove(key) {
193
+ localStorage.removeItem(key);
194
+ }
195
+ };
196
+ function getBrowserLang() {
197
+ var shortCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
198
+ var language = navigator.language;
199
+ if (language.indexOf("-") !== -1 && shortCode) {
200
+ language = language.substring(0, 2);
201
+ }
202
+ if (language === "ja") {
203
+ language = "jp";
204
+ }
205
+ var supportLanguage = ["ko", "en", "jp", "ch", "zh", "id", "vi", "es"];
206
+ if (!(supportLanguage.indexOf(language) > -1)) {
207
+ language = "en";
208
+ }
209
+ return language || "en";
210
+ }
211
+ var getCurrentLang = function getCurrentLang() {
212
+ return localStorageService.get(LOCAL_STORAGE_KEY.LANG_CODE) || getBrowserLang(true);
213
+ };
177
214
  var SDKConfig = {
178
215
  baseUrl: "V3",
179
- signer: null
216
+ signer: null,
217
+ lang: getCurrentLang()
180
218
  };
181
219
  var initHanbiroReactSDK = function initHanbiroReactSDK(_ref2) {
182
220
  var baseUrl = _ref2.baseUrl,
@@ -184,6 +222,9 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
184
222
  SDKConfig.baseUrl = baseUrl;
185
223
  SDKConfig.signer = signer;
186
224
  };
225
+ var setLibLang = function setLibLang(lang) {
226
+ if (lang) SDKConfig.lang = lang;
227
+ };
187
228
  var checkDevelopment = function checkDevelopment() {
188
229
  var locationInfo = window.location;
189
230
  var hostname = locationInfo.hostname;
@@ -211,20 +252,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
211
252
  return "https://" + (dataArr == null ? void 0 : dataArr[0]);
212
253
  }
213
254
  };
214
- var getGroupwareUrl = function getGroupwareUrl() {
215
- var locationInfo = window.location;
216
- if (isDevelopment) {
217
- return getBaseUrl() || "https://vndev.hanbiro.com/ngw";
218
- } else {
219
- if (window.location !== window.parent.location) {
220
- locationInfo = window.parent.location;
221
- }
222
- var _locationInfo = locationInfo,
223
- hostname = _locationInfo.hostname,
224
- protocol = _locationInfo.protocol;
225
- return [protocol, "//", hostname, "/ngw"].join("");
226
- }
227
- };
228
255
  function callAI(_0, _1) {
229
256
  return __async(this, arguments, function (params, _ref3) {
230
257
  var setContent = _ref3.setContent,
@@ -413,8 +440,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
413
440
  }
414
441
  var propTypesExports = propTypes.exports;
415
442
  var PropTypes = /* @__PURE__ */getDefaultExportFromCjs(propTypesExports);
416
- function _extends$l() {
417
- _extends$l = Object.assign || function (target) {
443
+ function _extends$q() {
444
+ _extends$q = Object.assign || function (target) {
418
445
  for (var i = 1; i < arguments.length; i++) {
419
446
  var source = arguments[i];
420
447
  for (var key in source) {
@@ -425,11 +452,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
425
452
  }
426
453
  return target;
427
454
  };
428
- return _extends$l.apply(this, arguments);
455
+ return _extends$q.apply(this, arguments);
429
456
  }
430
- function _objectWithoutProperties$l(source, excluded) {
457
+ function _objectWithoutProperties$q(source, excluded) {
431
458
  if (source == null) return {};
432
- var target = _objectWithoutPropertiesLoose$l(source, excluded);
459
+ var target = _objectWithoutPropertiesLoose$q(source, excluded);
433
460
  var key, i;
434
461
  if (Object.getOwnPropertySymbols) {
435
462
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -442,7 +469,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
442
469
  }
443
470
  return target;
444
471
  }
445
- function _objectWithoutPropertiesLoose$l(source, excluded) {
472
+ function _objectWithoutPropertiesLoose$q(source, excluded) {
446
473
  if (source == null) return {};
447
474
  var target = {};
448
475
  var sourceKeys = Object.keys(source);
@@ -459,8 +486,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
459
486
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
460
487
  _ref$size = _ref.size,
461
488
  size = _ref$size === void 0 ? 24 : _ref$size,
462
- rest = _objectWithoutProperties$l(_ref, ["color", "size"]);
463
- return /* @__PURE__ */React.createElement("svg", _extends$l({
489
+ rest = _objectWithoutProperties$q(_ref, ["color", "size"]);
490
+ return /* @__PURE__ */React.createElement("svg", _extends$q({
464
491
  ref: ref,
465
492
  xmlns: "http://www.w3.org/2000/svg",
466
493
  width: size,
@@ -498,8 +525,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
498
525
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
499
526
  };
500
527
  AlignJustify.displayName = "AlignJustify";
501
- function _extends$k() {
502
- _extends$k = Object.assign || function (target) {
528
+ function _extends$p() {
529
+ _extends$p = Object.assign || function (target) {
503
530
  for (var i = 1; i < arguments.length; i++) {
504
531
  var source = arguments[i];
505
532
  for (var key in source) {
@@ -510,11 +537,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
510
537
  }
511
538
  return target;
512
539
  };
513
- return _extends$k.apply(this, arguments);
540
+ return _extends$p.apply(this, arguments);
514
541
  }
515
- function _objectWithoutProperties$k(source, excluded) {
542
+ function _objectWithoutProperties$p(source, excluded) {
516
543
  if (source == null) return {};
517
- var target = _objectWithoutPropertiesLoose$k(source, excluded);
544
+ var target = _objectWithoutPropertiesLoose$p(source, excluded);
518
545
  var key, i;
519
546
  if (Object.getOwnPropertySymbols) {
520
547
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -527,7 +554,79 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
527
554
  }
528
555
  return target;
529
556
  }
530
- function _objectWithoutPropertiesLoose$k(source, excluded) {
557
+ function _objectWithoutPropertiesLoose$p(source, excluded) {
558
+ if (source == null) return {};
559
+ var target = {};
560
+ var sourceKeys = Object.keys(source);
561
+ var key, i;
562
+ for (i = 0; i < sourceKeys.length; i++) {
563
+ key = sourceKeys[i];
564
+ if (excluded.indexOf(key) >= 0) continue;
565
+ target[key] = source[key];
566
+ }
567
+ return target;
568
+ }
569
+ var ArrowDown = React.forwardRef(function (_ref, ref) {
570
+ var _ref$color = _ref.color,
571
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
572
+ _ref$size = _ref.size,
573
+ size = _ref$size === void 0 ? 24 : _ref$size,
574
+ rest = _objectWithoutProperties$p(_ref, ["color", "size"]);
575
+ return /* @__PURE__ */React.createElement("svg", _extends$p({
576
+ ref: ref,
577
+ xmlns: "http://www.w3.org/2000/svg",
578
+ width: size,
579
+ height: size,
580
+ viewBox: "0 0 24 24",
581
+ fill: "none",
582
+ stroke: color,
583
+ strokeWidth: "2",
584
+ strokeLinecap: "round",
585
+ strokeLinejoin: "round"
586
+ }, rest), /* @__PURE__ */React.createElement("line", {
587
+ x1: "12",
588
+ y1: "5",
589
+ x2: "12",
590
+ y2: "19"
591
+ }), /* @__PURE__ */React.createElement("polyline", {
592
+ points: "19 12 12 19 5 12"
593
+ }));
594
+ });
595
+ ArrowDown.propTypes = {
596
+ color: PropTypes.string,
597
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
598
+ };
599
+ ArrowDown.displayName = "ArrowDown";
600
+ function _extends$o() {
601
+ _extends$o = Object.assign || function (target) {
602
+ for (var i = 1; i < arguments.length; i++) {
603
+ var source = arguments[i];
604
+ for (var key in source) {
605
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
606
+ target[key] = source[key];
607
+ }
608
+ }
609
+ }
610
+ return target;
611
+ };
612
+ return _extends$o.apply(this, arguments);
613
+ }
614
+ function _objectWithoutProperties$o(source, excluded) {
615
+ if (source == null) return {};
616
+ var target = _objectWithoutPropertiesLoose$o(source, excluded);
617
+ var key, i;
618
+ if (Object.getOwnPropertySymbols) {
619
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
620
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
621
+ key = sourceSymbolKeys[i];
622
+ if (excluded.indexOf(key) >= 0) continue;
623
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
624
+ target[key] = source[key];
625
+ }
626
+ }
627
+ return target;
628
+ }
629
+ function _objectWithoutPropertiesLoose$o(source, excluded) {
531
630
  if (source == null) return {};
532
631
  var target = {};
533
632
  var sourceKeys = Object.keys(source);
@@ -544,8 +643,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
544
643
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
545
644
  _ref$size = _ref.size,
546
645
  size = _ref$size === void 0 ? 24 : _ref$size,
547
- rest = _objectWithoutProperties$k(_ref, ["color", "size"]);
548
- return /* @__PURE__ */React.createElement("svg", _extends$k({
646
+ rest = _objectWithoutProperties$o(_ref, ["color", "size"]);
647
+ return /* @__PURE__ */React.createElement("svg", _extends$o({
549
648
  ref: ref,
550
649
  xmlns: "http://www.w3.org/2000/svg",
551
650
  width: size,
@@ -570,8 +669,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
570
669
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
571
670
  };
572
671
  ArrowLeft.displayName = "ArrowLeft";
573
- function _extends$j() {
574
- _extends$j = Object.assign || function (target) {
672
+ function _extends$n() {
673
+ _extends$n = Object.assign || function (target) {
575
674
  for (var i = 1; i < arguments.length; i++) {
576
675
  var source = arguments[i];
577
676
  for (var key in source) {
@@ -582,11 +681,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
582
681
  }
583
682
  return target;
584
683
  };
585
- return _extends$j.apply(this, arguments);
684
+ return _extends$n.apply(this, arguments);
586
685
  }
587
- function _objectWithoutProperties$j(source, excluded) {
686
+ function _objectWithoutProperties$n(source, excluded) {
588
687
  if (source == null) return {};
589
- var target = _objectWithoutPropertiesLoose$j(source, excluded);
688
+ var target = _objectWithoutPropertiesLoose$n(source, excluded);
590
689
  var key, i;
591
690
  if (Object.getOwnPropertySymbols) {
592
691
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -599,7 +698,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
599
698
  }
600
699
  return target;
601
700
  }
602
- function _objectWithoutPropertiesLoose$j(source, excluded) {
701
+ function _objectWithoutPropertiesLoose$n(source, excluded) {
603
702
  if (source == null) return {};
604
703
  var target = {};
605
704
  var sourceKeys = Object.keys(source);
@@ -616,8 +715,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
616
715
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
617
716
  _ref$size = _ref.size,
618
717
  size = _ref$size === void 0 ? 24 : _ref$size,
619
- rest = _objectWithoutProperties$j(_ref, ["color", "size"]);
620
- return /* @__PURE__ */React.createElement("svg", _extends$j({
718
+ rest = _objectWithoutProperties$n(_ref, ["color", "size"]);
719
+ return /* @__PURE__ */React.createElement("svg", _extends$n({
621
720
  ref: ref,
622
721
  xmlns: "http://www.w3.org/2000/svg",
623
722
  width: size,
@@ -642,8 +741,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
642
741
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
643
742
  };
644
743
  ArrowUp.displayName = "ArrowUp";
645
- function _extends$i() {
646
- _extends$i = Object.assign || function (target) {
744
+ function _extends$m() {
745
+ _extends$m = Object.assign || function (target) {
647
746
  for (var i = 1; i < arguments.length; i++) {
648
747
  var source = arguments[i];
649
748
  for (var key in source) {
@@ -654,11 +753,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
654
753
  }
655
754
  return target;
656
755
  };
657
- return _extends$i.apply(this, arguments);
756
+ return _extends$m.apply(this, arguments);
658
757
  }
659
- function _objectWithoutProperties$i(source, excluded) {
758
+ function _objectWithoutProperties$m(source, excluded) {
660
759
  if (source == null) return {};
661
- var target = _objectWithoutPropertiesLoose$i(source, excluded);
760
+ var target = _objectWithoutPropertiesLoose$m(source, excluded);
662
761
  var key, i;
663
762
  if (Object.getOwnPropertySymbols) {
664
763
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -671,7 +770,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
671
770
  }
672
771
  return target;
673
772
  }
674
- function _objectWithoutPropertiesLoose$i(source, excluded) {
773
+ function _objectWithoutPropertiesLoose$m(source, excluded) {
675
774
  if (source == null) return {};
676
775
  var target = {};
677
776
  var sourceKeys = Object.keys(source);
@@ -688,8 +787,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
688
787
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
689
788
  _ref$size = _ref.size,
690
789
  size = _ref$size === void 0 ? 24 : _ref$size,
691
- rest = _objectWithoutProperties$i(_ref, ["color", "size"]);
692
- return /* @__PURE__ */React.createElement("svg", _extends$i({
790
+ rest = _objectWithoutProperties$m(_ref, ["color", "size"]);
791
+ return /* @__PURE__ */React.createElement("svg", _extends$m({
693
792
  ref: ref,
694
793
  xmlns: "http://www.w3.org/2000/svg",
695
794
  width: size,
@@ -713,8 +812,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
713
812
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
714
813
  };
715
814
  Award.displayName = "Award";
716
- function _extends$h() {
717
- _extends$h = Object.assign || function (target) {
815
+ function _extends$l() {
816
+ _extends$l = Object.assign || function (target) {
718
817
  for (var i = 1; i < arguments.length; i++) {
719
818
  var source = arguments[i];
720
819
  for (var key in source) {
@@ -725,11 +824,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
725
824
  }
726
825
  return target;
727
826
  };
728
- return _extends$h.apply(this, arguments);
827
+ return _extends$l.apply(this, arguments);
729
828
  }
730
- function _objectWithoutProperties$h(source, excluded) {
829
+ function _objectWithoutProperties$l(source, excluded) {
731
830
  if (source == null) return {};
732
- var target = _objectWithoutPropertiesLoose$h(source, excluded);
831
+ var target = _objectWithoutPropertiesLoose$l(source, excluded);
733
832
  var key, i;
734
833
  if (Object.getOwnPropertySymbols) {
735
834
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -742,7 +841,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
742
841
  }
743
842
  return target;
744
843
  }
745
- function _objectWithoutPropertiesLoose$h(source, excluded) {
844
+ function _objectWithoutPropertiesLoose$l(source, excluded) {
746
845
  if (source == null) return {};
747
846
  var target = {};
748
847
  var sourceKeys = Object.keys(source);
@@ -759,8 +858,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
759
858
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
760
859
  _ref$size = _ref.size,
761
860
  size = _ref$size === void 0 ? 24 : _ref$size,
762
- rest = _objectWithoutProperties$h(_ref, ["color", "size"]);
763
- return /* @__PURE__ */React.createElement("svg", _extends$h({
861
+ rest = _objectWithoutProperties$l(_ref, ["color", "size"]);
862
+ return /* @__PURE__ */React.createElement("svg", _extends$l({
764
863
  ref: ref,
765
864
  xmlns: "http://www.w3.org/2000/svg",
766
865
  width: size,
@@ -780,8 +879,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
780
879
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
781
880
  };
782
881
  Check.displayName = "Check";
783
- function _extends$g() {
784
- _extends$g = Object.assign || function (target) {
882
+ function _extends$k() {
883
+ _extends$k = Object.assign || function (target) {
785
884
  for (var i = 1; i < arguments.length; i++) {
786
885
  var source = arguments[i];
787
886
  for (var key in source) {
@@ -792,11 +891,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
792
891
  }
793
892
  return target;
794
893
  };
795
- return _extends$g.apply(this, arguments);
894
+ return _extends$k.apply(this, arguments);
796
895
  }
797
- function _objectWithoutProperties$g(source, excluded) {
896
+ function _objectWithoutProperties$k(source, excluded) {
798
897
  if (source == null) return {};
799
- var target = _objectWithoutPropertiesLoose$g(source, excluded);
898
+ var target = _objectWithoutPropertiesLoose$k(source, excluded);
800
899
  var key, i;
801
900
  if (Object.getOwnPropertySymbols) {
802
901
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -809,7 +908,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
809
908
  }
810
909
  return target;
811
910
  }
812
- function _objectWithoutPropertiesLoose$g(source, excluded) {
911
+ function _objectWithoutPropertiesLoose$k(source, excluded) {
813
912
  if (source == null) return {};
814
913
  var target = {};
815
914
  var sourceKeys = Object.keys(source);
@@ -826,8 +925,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
826
925
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
827
926
  _ref$size = _ref.size,
828
927
  size = _ref$size === void 0 ? 24 : _ref$size,
829
- rest = _objectWithoutProperties$g(_ref, ["color", "size"]);
830
- return /* @__PURE__ */React.createElement("svg", _extends$g({
928
+ rest = _objectWithoutProperties$k(_ref, ["color", "size"]);
929
+ return /* @__PURE__ */React.createElement("svg", _extends$k({
831
930
  ref: ref,
832
931
  xmlns: "http://www.w3.org/2000/svg",
833
932
  width: size,
@@ -847,8 +946,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
847
946
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
848
947
  };
849
948
  ChevronDown.displayName = "ChevronDown";
850
- function _extends$f() {
851
- _extends$f = Object.assign || function (target) {
949
+ function _extends$j() {
950
+ _extends$j = Object.assign || function (target) {
852
951
  for (var i = 1; i < arguments.length; i++) {
853
952
  var source = arguments[i];
854
953
  for (var key in source) {
@@ -859,11 +958,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
859
958
  }
860
959
  return target;
861
960
  };
862
- return _extends$f.apply(this, arguments);
961
+ return _extends$j.apply(this, arguments);
863
962
  }
864
- function _objectWithoutProperties$f(source, excluded) {
963
+ function _objectWithoutProperties$j(source, excluded) {
865
964
  if (source == null) return {};
866
- var target = _objectWithoutPropertiesLoose$f(source, excluded);
965
+ var target = _objectWithoutPropertiesLoose$j(source, excluded);
867
966
  var key, i;
868
967
  if (Object.getOwnPropertySymbols) {
869
968
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -876,7 +975,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
876
975
  }
877
976
  return target;
878
977
  }
879
- function _objectWithoutPropertiesLoose$f(source, excluded) {
978
+ function _objectWithoutPropertiesLoose$j(source, excluded) {
880
979
  if (source == null) return {};
881
980
  var target = {};
882
981
  var sourceKeys = Object.keys(source);
@@ -888,13 +987,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
888
987
  }
889
988
  return target;
890
989
  }
891
- var Compass = React.forwardRef(function (_ref, ref) {
990
+ var ChevronLeft = React.forwardRef(function (_ref, ref) {
892
991
  var _ref$color = _ref.color,
893
992
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
894
993
  _ref$size = _ref.size,
895
994
  size = _ref$size === void 0 ? 24 : _ref$size,
896
- rest = _objectWithoutProperties$f(_ref, ["color", "size"]);
897
- return /* @__PURE__ */React.createElement("svg", _extends$f({
995
+ rest = _objectWithoutProperties$j(_ref, ["color", "size"]);
996
+ return /* @__PURE__ */React.createElement("svg", _extends$j({
898
997
  ref: ref,
899
998
  xmlns: "http://www.w3.org/2000/svg",
900
999
  width: size,
@@ -905,21 +1004,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
905
1004
  strokeWidth: "2",
906
1005
  strokeLinecap: "round",
907
1006
  strokeLinejoin: "round"
908
- }, rest), /* @__PURE__ */React.createElement("circle", {
909
- cx: "12",
910
- cy: "12",
911
- r: "10"
912
- }), /* @__PURE__ */React.createElement("polygon", {
913
- points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"
1007
+ }, rest), /* @__PURE__ */React.createElement("polyline", {
1008
+ points: "15 18 9 12 15 6"
914
1009
  }));
915
1010
  });
916
- Compass.propTypes = {
1011
+ ChevronLeft.propTypes = {
917
1012
  color: PropTypes.string,
918
1013
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
919
1014
  };
920
- Compass.displayName = "Compass";
921
- function _extends$e() {
922
- _extends$e = Object.assign || function (target) {
1015
+ ChevronLeft.displayName = "ChevronLeft";
1016
+ function _extends$i() {
1017
+ _extends$i = Object.assign || function (target) {
923
1018
  for (var i = 1; i < arguments.length; i++) {
924
1019
  var source = arguments[i];
925
1020
  for (var key in source) {
@@ -930,11 +1025,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
930
1025
  }
931
1026
  return target;
932
1027
  };
933
- return _extends$e.apply(this, arguments);
1028
+ return _extends$i.apply(this, arguments);
934
1029
  }
935
- function _objectWithoutProperties$e(source, excluded) {
1030
+ function _objectWithoutProperties$i(source, excluded) {
936
1031
  if (source == null) return {};
937
- var target = _objectWithoutPropertiesLoose$e(source, excluded);
1032
+ var target = _objectWithoutPropertiesLoose$i(source, excluded);
938
1033
  var key, i;
939
1034
  if (Object.getOwnPropertySymbols) {
940
1035
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -947,7 +1042,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
947
1042
  }
948
1043
  return target;
949
1044
  }
950
- function _objectWithoutPropertiesLoose$e(source, excluded) {
1045
+ function _objectWithoutPropertiesLoose$i(source, excluded) {
951
1046
  if (source == null) return {};
952
1047
  var target = {};
953
1048
  var sourceKeys = Object.keys(source);
@@ -959,13 +1054,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
959
1054
  }
960
1055
  return target;
961
1056
  }
962
- var Copy = React.forwardRef(function (_ref, ref) {
1057
+ var ChevronRight = React.forwardRef(function (_ref, ref) {
963
1058
  var _ref$color = _ref.color,
964
1059
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
965
1060
  _ref$size = _ref.size,
966
1061
  size = _ref$size === void 0 ? 24 : _ref$size,
967
- rest = _objectWithoutProperties$e(_ref, ["color", "size"]);
968
- return /* @__PURE__ */React.createElement("svg", _extends$e({
1062
+ rest = _objectWithoutProperties$i(_ref, ["color", "size"]);
1063
+ return /* @__PURE__ */React.createElement("svg", _extends$i({
969
1064
  ref: ref,
970
1065
  xmlns: "http://www.w3.org/2000/svg",
971
1066
  width: size,
@@ -976,24 +1071,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
976
1071
  strokeWidth: "2",
977
1072
  strokeLinecap: "round",
978
1073
  strokeLinejoin: "round"
979
- }, rest), /* @__PURE__ */React.createElement("rect", {
980
- x: "9",
981
- y: "9",
982
- width: "13",
983
- height: "13",
984
- rx: "2",
985
- ry: "2"
986
- }), /* @__PURE__ */React.createElement("path", {
987
- d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
1074
+ }, rest), /* @__PURE__ */React.createElement("polyline", {
1075
+ points: "9 18 15 12 9 6"
988
1076
  }));
989
1077
  });
990
- Copy.propTypes = {
1078
+ ChevronRight.propTypes = {
991
1079
  color: PropTypes.string,
992
1080
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
993
1081
  };
994
- Copy.displayName = "Copy";
995
- function _extends$d() {
996
- _extends$d = Object.assign || function (target) {
1082
+ ChevronRight.displayName = "ChevronRight";
1083
+ function _extends$h() {
1084
+ _extends$h = Object.assign || function (target) {
997
1085
  for (var i = 1; i < arguments.length; i++) {
998
1086
  var source = arguments[i];
999
1087
  for (var key in source) {
@@ -1004,11 +1092,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1004
1092
  }
1005
1093
  return target;
1006
1094
  };
1007
- return _extends$d.apply(this, arguments);
1095
+ return _extends$h.apply(this, arguments);
1008
1096
  }
1009
- function _objectWithoutProperties$d(source, excluded) {
1097
+ function _objectWithoutProperties$h(source, excluded) {
1010
1098
  if (source == null) return {};
1011
- var target = _objectWithoutPropertiesLoose$d(source, excluded);
1099
+ var target = _objectWithoutPropertiesLoose$h(source, excluded);
1012
1100
  var key, i;
1013
1101
  if (Object.getOwnPropertySymbols) {
1014
1102
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1021,7 +1109,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1021
1109
  }
1022
1110
  return target;
1023
1111
  }
1024
- function _objectWithoutPropertiesLoose$d(source, excluded) {
1112
+ function _objectWithoutPropertiesLoose$h(source, excluded) {
1025
1113
  if (source == null) return {};
1026
1114
  var target = {};
1027
1115
  var sourceKeys = Object.keys(source);
@@ -1033,13 +1121,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1033
1121
  }
1034
1122
  return target;
1035
1123
  }
1036
- var FileText = React.forwardRef(function (_ref, ref) {
1124
+ var Compass = React.forwardRef(function (_ref, ref) {
1037
1125
  var _ref$color = _ref.color,
1038
1126
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1039
1127
  _ref$size = _ref.size,
1040
1128
  size = _ref$size === void 0 ? 24 : _ref$size,
1041
- rest = _objectWithoutProperties$d(_ref, ["color", "size"]);
1042
- return /* @__PURE__ */React.createElement("svg", _extends$d({
1129
+ rest = _objectWithoutProperties$h(_ref, ["color", "size"]);
1130
+ return /* @__PURE__ */React.createElement("svg", _extends$h({
1043
1131
  ref: ref,
1044
1132
  xmlns: "http://www.w3.org/2000/svg",
1045
1133
  width: size,
@@ -1050,31 +1138,21 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1050
1138
  strokeWidth: "2",
1051
1139
  strokeLinecap: "round",
1052
1140
  strokeLinejoin: "round"
1053
- }, rest), /* @__PURE__ */React.createElement("path", {
1054
- d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
1055
- }), /* @__PURE__ */React.createElement("polyline", {
1056
- points: "14 2 14 8 20 8"
1057
- }), /* @__PURE__ */React.createElement("line", {
1058
- x1: "16",
1059
- y1: "13",
1060
- x2: "8",
1061
- y2: "13"
1062
- }), /* @__PURE__ */React.createElement("line", {
1063
- x1: "16",
1064
- y1: "17",
1065
- x2: "8",
1066
- y2: "17"
1067
- }), /* @__PURE__ */React.createElement("polyline", {
1068
- points: "10 9 9 9 8 9"
1141
+ }, rest), /* @__PURE__ */React.createElement("circle", {
1142
+ cx: "12",
1143
+ cy: "12",
1144
+ r: "10"
1145
+ }), /* @__PURE__ */React.createElement("polygon", {
1146
+ points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"
1069
1147
  }));
1070
1148
  });
1071
- FileText.propTypes = {
1149
+ Compass.propTypes = {
1072
1150
  color: PropTypes.string,
1073
1151
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1074
1152
  };
1075
- FileText.displayName = "FileText";
1076
- function _extends$c() {
1077
- _extends$c = Object.assign || function (target) {
1153
+ Compass.displayName = "Compass";
1154
+ function _extends$g() {
1155
+ _extends$g = Object.assign || function (target) {
1078
1156
  for (var i = 1; i < arguments.length; i++) {
1079
1157
  var source = arguments[i];
1080
1158
  for (var key in source) {
@@ -1085,11 +1163,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1085
1163
  }
1086
1164
  return target;
1087
1165
  };
1088
- return _extends$c.apply(this, arguments);
1166
+ return _extends$g.apply(this, arguments);
1089
1167
  }
1090
- function _objectWithoutProperties$c(source, excluded) {
1168
+ function _objectWithoutProperties$g(source, excluded) {
1091
1169
  if (source == null) return {};
1092
- var target = _objectWithoutPropertiesLoose$c(source, excluded);
1170
+ var target = _objectWithoutPropertiesLoose$g(source, excluded);
1093
1171
  var key, i;
1094
1172
  if (Object.getOwnPropertySymbols) {
1095
1173
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1102,7 +1180,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1102
1180
  }
1103
1181
  return target;
1104
1182
  }
1105
- function _objectWithoutPropertiesLoose$c(source, excluded) {
1183
+ function _objectWithoutPropertiesLoose$g(source, excluded) {
1106
1184
  if (source == null) return {};
1107
1185
  var target = {};
1108
1186
  var sourceKeys = Object.keys(source);
@@ -1114,14 +1192,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1114
1192
  }
1115
1193
  return target;
1116
1194
  }
1117
- var Frown = React.forwardRef(function (_ref, ref) {
1195
+ var Copy = React.forwardRef(function (_ref, ref) {
1118
1196
  var _ref$color = _ref.color,
1119
1197
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1120
1198
  _ref$size = _ref.size,
1121
1199
  size = _ref$size === void 0 ? 24 : _ref$size,
1122
- rest = _objectWithoutProperties$c(_ref, ["color", "size"]);
1123
- return /* @__PURE__ */React.createElement("svg", _extends$c({
1124
- ref: ref,
1200
+ rest = _objectWithoutProperties$g(_ref, ["color", "size"]);
1201
+ return /* @__PURE__ */React.createElement("svg", _extends$g({
1202
+ ref: ref,
1125
1203
  xmlns: "http://www.w3.org/2000/svg",
1126
1204
  width: size,
1127
1205
  height: size,
@@ -1131,31 +1209,24 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1131
1209
  strokeWidth: "2",
1132
1210
  strokeLinecap: "round",
1133
1211
  strokeLinejoin: "round"
1134
- }, rest), /* @__PURE__ */React.createElement("circle", {
1135
- cx: "12",
1136
- cy: "12",
1137
- r: "10"
1212
+ }, rest), /* @__PURE__ */React.createElement("rect", {
1213
+ x: "9",
1214
+ y: "9",
1215
+ width: "13",
1216
+ height: "13",
1217
+ rx: "2",
1218
+ ry: "2"
1138
1219
  }), /* @__PURE__ */React.createElement("path", {
1139
- d: "M16 16s-1.5-2-4-2-4 2-4 2"
1140
- }), /* @__PURE__ */React.createElement("line", {
1141
- x1: "9",
1142
- y1: "9",
1143
- x2: "9.01",
1144
- y2: "9"
1145
- }), /* @__PURE__ */React.createElement("line", {
1146
- x1: "15",
1147
- y1: "9",
1148
- x2: "15.01",
1149
- y2: "9"
1220
+ d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
1150
1221
  }));
1151
1222
  });
1152
- Frown.propTypes = {
1223
+ Copy.propTypes = {
1153
1224
  color: PropTypes.string,
1154
1225
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1155
1226
  };
1156
- Frown.displayName = "Frown";
1157
- function _extends$b() {
1158
- _extends$b = Object.assign || function (target) {
1227
+ Copy.displayName = "Copy";
1228
+ function _extends$f() {
1229
+ _extends$f = Object.assign || function (target) {
1159
1230
  for (var i = 1; i < arguments.length; i++) {
1160
1231
  var source = arguments[i];
1161
1232
  for (var key in source) {
@@ -1166,11 +1237,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1166
1237
  }
1167
1238
  return target;
1168
1239
  };
1169
- return _extends$b.apply(this, arguments);
1240
+ return _extends$f.apply(this, arguments);
1170
1241
  }
1171
- function _objectWithoutProperties$b(source, excluded) {
1242
+ function _objectWithoutProperties$f(source, excluded) {
1172
1243
  if (source == null) return {};
1173
- var target = _objectWithoutPropertiesLoose$b(source, excluded);
1244
+ var target = _objectWithoutPropertiesLoose$f(source, excluded);
1174
1245
  var key, i;
1175
1246
  if (Object.getOwnPropertySymbols) {
1176
1247
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1183,7 +1254,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1183
1254
  }
1184
1255
  return target;
1185
1256
  }
1186
- function _objectWithoutPropertiesLoose$b(source, excluded) {
1257
+ function _objectWithoutPropertiesLoose$f(source, excluded) {
1187
1258
  if (source == null) return {};
1188
1259
  var target = {};
1189
1260
  var sourceKeys = Object.keys(source);
@@ -1195,13 +1266,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1195
1266
  }
1196
1267
  return target;
1197
1268
  }
1198
- var Heart = React.forwardRef(function (_ref, ref) {
1269
+ var FileText = React.forwardRef(function (_ref, ref) {
1199
1270
  var _ref$color = _ref.color,
1200
1271
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1201
1272
  _ref$size = _ref.size,
1202
1273
  size = _ref$size === void 0 ? 24 : _ref$size,
1203
- rest = _objectWithoutProperties$b(_ref, ["color", "size"]);
1204
- return /* @__PURE__ */React.createElement("svg", _extends$b({
1274
+ rest = _objectWithoutProperties$f(_ref, ["color", "size"]);
1275
+ return /* @__PURE__ */React.createElement("svg", _extends$f({
1205
1276
  ref: ref,
1206
1277
  xmlns: "http://www.w3.org/2000/svg",
1207
1278
  width: size,
@@ -1213,16 +1284,30 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1213
1284
  strokeLinecap: "round",
1214
1285
  strokeLinejoin: "round"
1215
1286
  }, rest), /* @__PURE__ */React.createElement("path", {
1216
- d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"
1287
+ d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
1288
+ }), /* @__PURE__ */React.createElement("polyline", {
1289
+ points: "14 2 14 8 20 8"
1290
+ }), /* @__PURE__ */React.createElement("line", {
1291
+ x1: "16",
1292
+ y1: "13",
1293
+ x2: "8",
1294
+ y2: "13"
1295
+ }), /* @__PURE__ */React.createElement("line", {
1296
+ x1: "16",
1297
+ y1: "17",
1298
+ x2: "8",
1299
+ y2: "17"
1300
+ }), /* @__PURE__ */React.createElement("polyline", {
1301
+ points: "10 9 9 9 8 9"
1217
1302
  }));
1218
1303
  });
1219
- Heart.propTypes = {
1304
+ FileText.propTypes = {
1220
1305
  color: PropTypes.string,
1221
1306
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1222
1307
  };
1223
- Heart.displayName = "Heart";
1224
- function _extends$a() {
1225
- _extends$a = Object.assign || function (target) {
1308
+ FileText.displayName = "FileText";
1309
+ function _extends$e() {
1310
+ _extends$e = Object.assign || function (target) {
1226
1311
  for (var i = 1; i < arguments.length; i++) {
1227
1312
  var source = arguments[i];
1228
1313
  for (var key in source) {
@@ -1233,11 +1318,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1233
1318
  }
1234
1319
  return target;
1235
1320
  };
1236
- return _extends$a.apply(this, arguments);
1321
+ return _extends$e.apply(this, arguments);
1237
1322
  }
1238
- function _objectWithoutProperties$a(source, excluded) {
1323
+ function _objectWithoutProperties$e(source, excluded) {
1239
1324
  if (source == null) return {};
1240
- var target = _objectWithoutPropertiesLoose$a(source, excluded);
1325
+ var target = _objectWithoutPropertiesLoose$e(source, excluded);
1241
1326
  var key, i;
1242
1327
  if (Object.getOwnPropertySymbols) {
1243
1328
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1250,7 +1335,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1250
1335
  }
1251
1336
  return target;
1252
1337
  }
1253
- function _objectWithoutPropertiesLoose$a(source, excluded) {
1338
+ function _objectWithoutPropertiesLoose$e(source, excluded) {
1254
1339
  if (source == null) return {};
1255
1340
  var target = {};
1256
1341
  var sourceKeys = Object.keys(source);
@@ -1262,13 +1347,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1262
1347
  }
1263
1348
  return target;
1264
1349
  }
1265
- var Lock = React.forwardRef(function (_ref, ref) {
1350
+ var Frown = React.forwardRef(function (_ref, ref) {
1266
1351
  var _ref$color = _ref.color,
1267
1352
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1268
1353
  _ref$size = _ref.size,
1269
1354
  size = _ref$size === void 0 ? 24 : _ref$size,
1270
- rest = _objectWithoutProperties$a(_ref, ["color", "size"]);
1271
- return /* @__PURE__ */React.createElement("svg", _extends$a({
1355
+ rest = _objectWithoutProperties$e(_ref, ["color", "size"]);
1356
+ return /* @__PURE__ */React.createElement("svg", _extends$e({
1272
1357
  ref: ref,
1273
1358
  xmlns: "http://www.w3.org/2000/svg",
1274
1359
  width: size,
@@ -1279,24 +1364,31 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1279
1364
  strokeWidth: "2",
1280
1365
  strokeLinecap: "round",
1281
1366
  strokeLinejoin: "round"
1282
- }, rest), /* @__PURE__ */React.createElement("rect", {
1283
- x: "3",
1284
- y: "11",
1285
- width: "18",
1286
- height: "11",
1287
- rx: "2",
1288
- ry: "2"
1367
+ }, rest), /* @__PURE__ */React.createElement("circle", {
1368
+ cx: "12",
1369
+ cy: "12",
1370
+ r: "10"
1289
1371
  }), /* @__PURE__ */React.createElement("path", {
1290
- d: "M7 11V7a5 5 0 0 1 10 0v4"
1372
+ d: "M16 16s-1.5-2-4-2-4 2-4 2"
1373
+ }), /* @__PURE__ */React.createElement("line", {
1374
+ x1: "9",
1375
+ y1: "9",
1376
+ x2: "9.01",
1377
+ y2: "9"
1378
+ }), /* @__PURE__ */React.createElement("line", {
1379
+ x1: "15",
1380
+ y1: "9",
1381
+ x2: "15.01",
1382
+ y2: "9"
1291
1383
  }));
1292
1384
  });
1293
- Lock.propTypes = {
1385
+ Frown.propTypes = {
1294
1386
  color: PropTypes.string,
1295
1387
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1296
1388
  };
1297
- Lock.displayName = "Lock";
1298
- function _extends$9() {
1299
- _extends$9 = Object.assign || function (target) {
1389
+ Frown.displayName = "Frown";
1390
+ function _extends$d() {
1391
+ _extends$d = Object.assign || function (target) {
1300
1392
  for (var i = 1; i < arguments.length; i++) {
1301
1393
  var source = arguments[i];
1302
1394
  for (var key in source) {
@@ -1307,11 +1399,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1307
1399
  }
1308
1400
  return target;
1309
1401
  };
1310
- return _extends$9.apply(this, arguments);
1402
+ return _extends$d.apply(this, arguments);
1311
1403
  }
1312
- function _objectWithoutProperties$9(source, excluded) {
1404
+ function _objectWithoutProperties$d(source, excluded) {
1313
1405
  if (source == null) return {};
1314
- var target = _objectWithoutPropertiesLoose$9(source, excluded);
1406
+ var target = _objectWithoutPropertiesLoose$d(source, excluded);
1315
1407
  var key, i;
1316
1408
  if (Object.getOwnPropertySymbols) {
1317
1409
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1324,7 +1416,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1324
1416
  }
1325
1417
  return target;
1326
1418
  }
1327
- function _objectWithoutPropertiesLoose$9(source, excluded) {
1419
+ function _objectWithoutPropertiesLoose$d(source, excluded) {
1328
1420
  if (source == null) return {};
1329
1421
  var target = {};
1330
1422
  var sourceKeys = Object.keys(source);
@@ -1336,13 +1428,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1336
1428
  }
1337
1429
  return target;
1338
1430
  }
1339
- var Mail = React.forwardRef(function (_ref, ref) {
1431
+ var Globe = React.forwardRef(function (_ref, ref) {
1340
1432
  var _ref$color = _ref.color,
1341
1433
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1342
1434
  _ref$size = _ref.size,
1343
1435
  size = _ref$size === void 0 ? 24 : _ref$size,
1344
- rest = _objectWithoutProperties$9(_ref, ["color", "size"]);
1345
- return /* @__PURE__ */React.createElement("svg", _extends$9({
1436
+ rest = _objectWithoutProperties$d(_ref, ["color", "size"]);
1437
+ return /* @__PURE__ */React.createElement("svg", _extends$d({
1346
1438
  ref: ref,
1347
1439
  xmlns: "http://www.w3.org/2000/svg",
1348
1440
  width: size,
@@ -1353,19 +1445,26 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1353
1445
  strokeWidth: "2",
1354
1446
  strokeLinecap: "round",
1355
1447
  strokeLinejoin: "round"
1356
- }, rest), /* @__PURE__ */React.createElement("path", {
1357
- d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"
1358
- }), /* @__PURE__ */React.createElement("polyline", {
1359
- points: "22,6 12,13 2,6"
1448
+ }, rest), /* @__PURE__ */React.createElement("circle", {
1449
+ cx: "12",
1450
+ cy: "12",
1451
+ r: "10"
1452
+ }), /* @__PURE__ */React.createElement("line", {
1453
+ x1: "2",
1454
+ y1: "12",
1455
+ x2: "22",
1456
+ y2: "12"
1457
+ }), /* @__PURE__ */React.createElement("path", {
1458
+ d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"
1360
1459
  }));
1361
1460
  });
1362
- Mail.propTypes = {
1461
+ Globe.propTypes = {
1363
1462
  color: PropTypes.string,
1364
1463
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1365
1464
  };
1366
- Mail.displayName = "Mail";
1367
- function _extends$8() {
1368
- _extends$8 = Object.assign || function (target) {
1465
+ Globe.displayName = "Globe";
1466
+ function _extends$c() {
1467
+ _extends$c = Object.assign || function (target) {
1369
1468
  for (var i = 1; i < arguments.length; i++) {
1370
1469
  var source = arguments[i];
1371
1470
  for (var key in source) {
@@ -1376,11 +1475,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1376
1475
  }
1377
1476
  return target;
1378
1477
  };
1379
- return _extends$8.apply(this, arguments);
1478
+ return _extends$c.apply(this, arguments);
1380
1479
  }
1381
- function _objectWithoutProperties$8(source, excluded) {
1480
+ function _objectWithoutProperties$c(source, excluded) {
1382
1481
  if (source == null) return {};
1383
- var target = _objectWithoutPropertiesLoose$8(source, excluded);
1482
+ var target = _objectWithoutPropertiesLoose$c(source, excluded);
1384
1483
  var key, i;
1385
1484
  if (Object.getOwnPropertySymbols) {
1386
1485
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1393,7 +1492,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1393
1492
  }
1394
1493
  return target;
1395
1494
  }
1396
- function _objectWithoutPropertiesLoose$8(source, excluded) {
1495
+ function _objectWithoutPropertiesLoose$c(source, excluded) {
1397
1496
  if (source == null) return {};
1398
1497
  var target = {};
1399
1498
  var sourceKeys = Object.keys(source);
@@ -1405,13 +1504,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1405
1504
  }
1406
1505
  return target;
1407
1506
  }
1408
- var MessageCircle = React.forwardRef(function (_ref, ref) {
1507
+ var Heart = React.forwardRef(function (_ref, ref) {
1409
1508
  var _ref$color = _ref.color,
1410
1509
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1411
1510
  _ref$size = _ref.size,
1412
1511
  size = _ref$size === void 0 ? 24 : _ref$size,
1413
- rest = _objectWithoutProperties$8(_ref, ["color", "size"]);
1414
- return /* @__PURE__ */React.createElement("svg", _extends$8({
1512
+ rest = _objectWithoutProperties$c(_ref, ["color", "size"]);
1513
+ return /* @__PURE__ */React.createElement("svg", _extends$c({
1415
1514
  ref: ref,
1416
1515
  xmlns: "http://www.w3.org/2000/svg",
1417
1516
  width: size,
@@ -1423,16 +1522,16 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1423
1522
  strokeLinecap: "round",
1424
1523
  strokeLinejoin: "round"
1425
1524
  }, rest), /* @__PURE__ */React.createElement("path", {
1426
- d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"
1525
+ d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"
1427
1526
  }));
1428
1527
  });
1429
- MessageCircle.propTypes = {
1528
+ Heart.propTypes = {
1430
1529
  color: PropTypes.string,
1431
1530
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1432
1531
  };
1433
- MessageCircle.displayName = "MessageCircle";
1434
- function _extends$7() {
1435
- _extends$7 = Object.assign || function (target) {
1532
+ Heart.displayName = "Heart";
1533
+ function _extends$b() {
1534
+ _extends$b = Object.assign || function (target) {
1436
1535
  for (var i = 1; i < arguments.length; i++) {
1437
1536
  var source = arguments[i];
1438
1537
  for (var key in source) {
@@ -1443,11 +1542,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1443
1542
  }
1444
1543
  return target;
1445
1544
  };
1446
- return _extends$7.apply(this, arguments);
1545
+ return _extends$b.apply(this, arguments);
1447
1546
  }
1448
- function _objectWithoutProperties$7(source, excluded) {
1547
+ function _objectWithoutProperties$b(source, excluded) {
1449
1548
  if (source == null) return {};
1450
- var target = _objectWithoutPropertiesLoose$7(source, excluded);
1549
+ var target = _objectWithoutPropertiesLoose$b(source, excluded);
1451
1550
  var key, i;
1452
1551
  if (Object.getOwnPropertySymbols) {
1453
1552
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1460,7 +1559,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1460
1559
  }
1461
1560
  return target;
1462
1561
  }
1463
- function _objectWithoutPropertiesLoose$7(source, excluded) {
1562
+ function _objectWithoutPropertiesLoose$b(source, excluded) {
1464
1563
  if (source == null) return {};
1465
1564
  var target = {};
1466
1565
  var sourceKeys = Object.keys(source);
@@ -1472,13 +1571,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1472
1571
  }
1473
1572
  return target;
1474
1573
  }
1475
- var MessageSquare = React.forwardRef(function (_ref, ref) {
1574
+ var Lock = React.forwardRef(function (_ref, ref) {
1476
1575
  var _ref$color = _ref.color,
1477
1576
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1478
1577
  _ref$size = _ref.size,
1479
1578
  size = _ref$size === void 0 ? 24 : _ref$size,
1480
- rest = _objectWithoutProperties$7(_ref, ["color", "size"]);
1481
- return /* @__PURE__ */React.createElement("svg", _extends$7({
1579
+ rest = _objectWithoutProperties$b(_ref, ["color", "size"]);
1580
+ return /* @__PURE__ */React.createElement("svg", _extends$b({
1482
1581
  ref: ref,
1483
1582
  xmlns: "http://www.w3.org/2000/svg",
1484
1583
  width: size,
@@ -1489,17 +1588,24 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1489
1588
  strokeWidth: "2",
1490
1589
  strokeLinecap: "round",
1491
1590
  strokeLinejoin: "round"
1492
- }, rest), /* @__PURE__ */React.createElement("path", {
1493
- d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"
1591
+ }, rest), /* @__PURE__ */React.createElement("rect", {
1592
+ x: "3",
1593
+ y: "11",
1594
+ width: "18",
1595
+ height: "11",
1596
+ rx: "2",
1597
+ ry: "2"
1598
+ }), /* @__PURE__ */React.createElement("path", {
1599
+ d: "M7 11V7a5 5 0 0 1 10 0v4"
1494
1600
  }));
1495
1601
  });
1496
- MessageSquare.propTypes = {
1602
+ Lock.propTypes = {
1497
1603
  color: PropTypes.string,
1498
1604
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1499
1605
  };
1500
- MessageSquare.displayName = "MessageSquare";
1501
- function _extends$6() {
1502
- _extends$6 = Object.assign || function (target) {
1606
+ Lock.displayName = "Lock";
1607
+ function _extends$a() {
1608
+ _extends$a = Object.assign || function (target) {
1503
1609
  for (var i = 1; i < arguments.length; i++) {
1504
1610
  var source = arguments[i];
1505
1611
  for (var key in source) {
@@ -1510,11 +1616,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1510
1616
  }
1511
1617
  return target;
1512
1618
  };
1513
- return _extends$6.apply(this, arguments);
1619
+ return _extends$a.apply(this, arguments);
1514
1620
  }
1515
- function _objectWithoutProperties$6(source, excluded) {
1621
+ function _objectWithoutProperties$a(source, excluded) {
1516
1622
  if (source == null) return {};
1517
- var target = _objectWithoutPropertiesLoose$6(source, excluded);
1623
+ var target = _objectWithoutPropertiesLoose$a(source, excluded);
1518
1624
  var key, i;
1519
1625
  if (Object.getOwnPropertySymbols) {
1520
1626
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1527,7 +1633,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1527
1633
  }
1528
1634
  return target;
1529
1635
  }
1530
- function _objectWithoutPropertiesLoose$6(source, excluded) {
1636
+ function _objectWithoutPropertiesLoose$a(source, excluded) {
1531
1637
  if (source == null) return {};
1532
1638
  var target = {};
1533
1639
  var sourceKeys = Object.keys(source);
@@ -1539,13 +1645,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1539
1645
  }
1540
1646
  return target;
1541
1647
  }
1542
- var Paperclip = React.forwardRef(function (_ref, ref) {
1648
+ var Mail = React.forwardRef(function (_ref, ref) {
1543
1649
  var _ref$color = _ref.color,
1544
1650
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1545
1651
  _ref$size = _ref.size,
1546
1652
  size = _ref$size === void 0 ? 24 : _ref$size,
1547
- rest = _objectWithoutProperties$6(_ref, ["color", "size"]);
1548
- return /* @__PURE__ */React.createElement("svg", _extends$6({
1653
+ rest = _objectWithoutProperties$a(_ref, ["color", "size"]);
1654
+ return /* @__PURE__ */React.createElement("svg", _extends$a({
1549
1655
  ref: ref,
1550
1656
  xmlns: "http://www.w3.org/2000/svg",
1551
1657
  width: size,
@@ -1557,16 +1663,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1557
1663
  strokeLinecap: "round",
1558
1664
  strokeLinejoin: "round"
1559
1665
  }, rest), /* @__PURE__ */React.createElement("path", {
1560
- d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"
1666
+ d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"
1667
+ }), /* @__PURE__ */React.createElement("polyline", {
1668
+ points: "22,6 12,13 2,6"
1561
1669
  }));
1562
1670
  });
1563
- Paperclip.propTypes = {
1671
+ Mail.propTypes = {
1564
1672
  color: PropTypes.string,
1565
1673
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1566
1674
  };
1567
- Paperclip.displayName = "Paperclip";
1568
- function _extends$5() {
1569
- _extends$5 = Object.assign || function (target) {
1675
+ Mail.displayName = "Mail";
1676
+ function _extends$9() {
1677
+ _extends$9 = Object.assign || function (target) {
1570
1678
  for (var i = 1; i < arguments.length; i++) {
1571
1679
  var source = arguments[i];
1572
1680
  for (var key in source) {
@@ -1577,11 +1685,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1577
1685
  }
1578
1686
  return target;
1579
1687
  };
1580
- return _extends$5.apply(this, arguments);
1688
+ return _extends$9.apply(this, arguments);
1581
1689
  }
1582
- function _objectWithoutProperties$5(source, excluded) {
1690
+ function _objectWithoutProperties$9(source, excluded) {
1583
1691
  if (source == null) return {};
1584
- var target = _objectWithoutPropertiesLoose$5(source, excluded);
1692
+ var target = _objectWithoutPropertiesLoose$9(source, excluded);
1585
1693
  var key, i;
1586
1694
  if (Object.getOwnPropertySymbols) {
1587
1695
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1594,7 +1702,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1594
1702
  }
1595
1703
  return target;
1596
1704
  }
1597
- function _objectWithoutPropertiesLoose$5(source, excluded) {
1705
+ function _objectWithoutPropertiesLoose$9(source, excluded) {
1598
1706
  if (source == null) return {};
1599
1707
  var target = {};
1600
1708
  var sourceKeys = Object.keys(source);
@@ -1606,13 +1714,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1606
1714
  }
1607
1715
  return target;
1608
1716
  }
1609
- var Plus = React.forwardRef(function (_ref, ref) {
1717
+ var MessageCircle = React.forwardRef(function (_ref, ref) {
1610
1718
  var _ref$color = _ref.color,
1611
1719
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1612
1720
  _ref$size = _ref.size,
1613
1721
  size = _ref$size === void 0 ? 24 : _ref$size,
1614
- rest = _objectWithoutProperties$5(_ref, ["color", "size"]);
1615
- return /* @__PURE__ */React.createElement("svg", _extends$5({
1722
+ rest = _objectWithoutProperties$9(_ref, ["color", "size"]);
1723
+ return /* @__PURE__ */React.createElement("svg", _extends$9({
1616
1724
  ref: ref,
1617
1725
  xmlns: "http://www.w3.org/2000/svg",
1618
1726
  width: size,
@@ -1623,25 +1731,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1623
1731
  strokeWidth: "2",
1624
1732
  strokeLinecap: "round",
1625
1733
  strokeLinejoin: "round"
1626
- }, rest), /* @__PURE__ */React.createElement("line", {
1627
- x1: "12",
1628
- y1: "5",
1629
- x2: "12",
1630
- y2: "19"
1631
- }), /* @__PURE__ */React.createElement("line", {
1632
- x1: "5",
1633
- y1: "12",
1634
- x2: "19",
1635
- y2: "12"
1636
- }));
1734
+ }, rest), /* @__PURE__ */React.createElement("path", {
1735
+ d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"
1736
+ }));
1637
1737
  });
1638
- Plus.propTypes = {
1738
+ MessageCircle.propTypes = {
1639
1739
  color: PropTypes.string,
1640
1740
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1641
1741
  };
1642
- Plus.displayName = "Plus";
1643
- function _extends$4() {
1644
- _extends$4 = Object.assign || function (target) {
1742
+ MessageCircle.displayName = "MessageCircle";
1743
+ function _extends$8() {
1744
+ _extends$8 = Object.assign || function (target) {
1645
1745
  for (var i = 1; i < arguments.length; i++) {
1646
1746
  var source = arguments[i];
1647
1747
  for (var key in source) {
@@ -1652,11 +1752,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1652
1752
  }
1653
1753
  return target;
1654
1754
  };
1655
- return _extends$4.apply(this, arguments);
1755
+ return _extends$8.apply(this, arguments);
1656
1756
  }
1657
- function _objectWithoutProperties$4(source, excluded) {
1757
+ function _objectWithoutProperties$8(source, excluded) {
1658
1758
  if (source == null) return {};
1659
- var target = _objectWithoutPropertiesLoose$4(source, excluded);
1759
+ var target = _objectWithoutPropertiesLoose$8(source, excluded);
1660
1760
  var key, i;
1661
1761
  if (Object.getOwnPropertySymbols) {
1662
1762
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1669,7 +1769,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1669
1769
  }
1670
1770
  return target;
1671
1771
  }
1672
- function _objectWithoutPropertiesLoose$4(source, excluded) {
1772
+ function _objectWithoutPropertiesLoose$8(source, excluded) {
1673
1773
  if (source == null) return {};
1674
1774
  var target = {};
1675
1775
  var sourceKeys = Object.keys(source);
@@ -1681,13 +1781,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1681
1781
  }
1682
1782
  return target;
1683
1783
  }
1684
- var Scissors = React.forwardRef(function (_ref, ref) {
1784
+ var MessageSquare = React.forwardRef(function (_ref, ref) {
1685
1785
  var _ref$color = _ref.color,
1686
1786
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1687
1787
  _ref$size = _ref.size,
1688
1788
  size = _ref$size === void 0 ? 24 : _ref$size,
1689
- rest = _objectWithoutProperties$4(_ref, ["color", "size"]);
1690
- return /* @__PURE__ */React.createElement("svg", _extends$4({
1789
+ rest = _objectWithoutProperties$8(_ref, ["color", "size"]);
1790
+ return /* @__PURE__ */React.createElement("svg", _extends$8({
1691
1791
  ref: ref,
1692
1792
  xmlns: "http://www.w3.org/2000/svg",
1693
1793
  width: size,
@@ -1698,38 +1798,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1698
1798
  strokeWidth: "2",
1699
1799
  strokeLinecap: "round",
1700
1800
  strokeLinejoin: "round"
1701
- }, rest), /* @__PURE__ */React.createElement("circle", {
1702
- cx: "6",
1703
- cy: "6",
1704
- r: "3"
1705
- }), /* @__PURE__ */React.createElement("circle", {
1706
- cx: "6",
1707
- cy: "18",
1708
- r: "3"
1709
- }), /* @__PURE__ */React.createElement("line", {
1710
- x1: "20",
1711
- y1: "4",
1712
- x2: "8.12",
1713
- y2: "15.88"
1714
- }), /* @__PURE__ */React.createElement("line", {
1715
- x1: "14.47",
1716
- y1: "14.48",
1717
- x2: "20",
1718
- y2: "20"
1719
- }), /* @__PURE__ */React.createElement("line", {
1720
- x1: "8.12",
1721
- y1: "8.12",
1722
- x2: "12",
1723
- y2: "12"
1801
+ }, rest), /* @__PURE__ */React.createElement("path", {
1802
+ d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"
1724
1803
  }));
1725
1804
  });
1726
- Scissors.propTypes = {
1805
+ MessageSquare.propTypes = {
1727
1806
  color: PropTypes.string,
1728
1807
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1729
1808
  };
1730
- Scissors.displayName = "Scissors";
1731
- function _extends$3() {
1732
- _extends$3 = Object.assign || function (target) {
1809
+ MessageSquare.displayName = "MessageSquare";
1810
+ function _extends$7() {
1811
+ _extends$7 = Object.assign || function (target) {
1733
1812
  for (var i = 1; i < arguments.length; i++) {
1734
1813
  var source = arguments[i];
1735
1814
  for (var key in source) {
@@ -1740,11 +1819,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1740
1819
  }
1741
1820
  return target;
1742
1821
  };
1743
- return _extends$3.apply(this, arguments);
1822
+ return _extends$7.apply(this, arguments);
1744
1823
  }
1745
- function _objectWithoutProperties$3(source, excluded) {
1824
+ function _objectWithoutProperties$7(source, excluded) {
1746
1825
  if (source == null) return {};
1747
- var target = _objectWithoutPropertiesLoose$3(source, excluded);
1826
+ var target = _objectWithoutPropertiesLoose$7(source, excluded);
1748
1827
  var key, i;
1749
1828
  if (Object.getOwnPropertySymbols) {
1750
1829
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1757,7 +1836,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1757
1836
  }
1758
1837
  return target;
1759
1838
  }
1760
- function _objectWithoutPropertiesLoose$3(source, excluded) {
1839
+ function _objectWithoutPropertiesLoose$7(source, excluded) {
1761
1840
  if (source == null) return {};
1762
1841
  var target = {};
1763
1842
  var sourceKeys = Object.keys(source);
@@ -1769,13 +1848,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1769
1848
  }
1770
1849
  return target;
1771
1850
  }
1772
- var Settings = React.forwardRef(function (_ref, ref) {
1851
+ var Paperclip = React.forwardRef(function (_ref, ref) {
1773
1852
  var _ref$color = _ref.color,
1774
1853
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1775
1854
  _ref$size = _ref.size,
1776
1855
  size = _ref$size === void 0 ? 24 : _ref$size,
1777
- rest = _objectWithoutProperties$3(_ref, ["color", "size"]);
1778
- return /* @__PURE__ */React.createElement("svg", _extends$3({
1856
+ rest = _objectWithoutProperties$7(_ref, ["color", "size"]);
1857
+ return /* @__PURE__ */React.createElement("svg", _extends$7({
1779
1858
  ref: ref,
1780
1859
  xmlns: "http://www.w3.org/2000/svg",
1781
1860
  width: size,
@@ -1786,21 +1865,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1786
1865
  strokeWidth: "2",
1787
1866
  strokeLinecap: "round",
1788
1867
  strokeLinejoin: "round"
1789
- }, rest), /* @__PURE__ */React.createElement("circle", {
1790
- cx: "12",
1791
- cy: "12",
1792
- r: "3"
1793
- }), /* @__PURE__ */React.createElement("path", {
1794
- d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"
1868
+ }, rest), /* @__PURE__ */React.createElement("path", {
1869
+ d: "M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"
1795
1870
  }));
1796
1871
  });
1797
- Settings.propTypes = {
1872
+ Paperclip.propTypes = {
1798
1873
  color: PropTypes.string,
1799
1874
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1800
1875
  };
1801
- Settings.displayName = "Settings";
1802
- function _extends$2() {
1803
- _extends$2 = Object.assign || function (target) {
1876
+ Paperclip.displayName = "Paperclip";
1877
+ function _extends$6() {
1878
+ _extends$6 = Object.assign || function (target) {
1804
1879
  for (var i = 1; i < arguments.length; i++) {
1805
1880
  var source = arguments[i];
1806
1881
  for (var key in source) {
@@ -1811,11 +1886,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1811
1886
  }
1812
1887
  return target;
1813
1888
  };
1814
- return _extends$2.apply(this, arguments);
1889
+ return _extends$6.apply(this, arguments);
1815
1890
  }
1816
- function _objectWithoutProperties$2(source, excluded) {
1891
+ function _objectWithoutProperties$6(source, excluded) {
1817
1892
  if (source == null) return {};
1818
- var target = _objectWithoutPropertiesLoose$2(source, excluded);
1893
+ var target = _objectWithoutPropertiesLoose$6(source, excluded);
1819
1894
  var key, i;
1820
1895
  if (Object.getOwnPropertySymbols) {
1821
1896
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1828,7 +1903,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1828
1903
  }
1829
1904
  return target;
1830
1905
  }
1831
- function _objectWithoutPropertiesLoose$2(source, excluded) {
1906
+ function _objectWithoutPropertiesLoose$6(source, excluded) {
1832
1907
  if (source == null) return {};
1833
1908
  var target = {};
1834
1909
  var sourceKeys = Object.keys(source);
@@ -1840,13 +1915,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1840
1915
  }
1841
1916
  return target;
1842
1917
  }
1843
- var Smile = React.forwardRef(function (_ref, ref) {
1918
+ var Plus = React.forwardRef(function (_ref, ref) {
1844
1919
  var _ref$color = _ref.color,
1845
1920
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1846
1921
  _ref$size = _ref.size,
1847
1922
  size = _ref$size === void 0 ? 24 : _ref$size,
1848
- rest = _objectWithoutProperties$2(_ref, ["color", "size"]);
1849
- return /* @__PURE__ */React.createElement("svg", _extends$2({
1923
+ rest = _objectWithoutProperties$6(_ref, ["color", "size"]);
1924
+ return /* @__PURE__ */React.createElement("svg", _extends$6({
1850
1925
  ref: ref,
1851
1926
  xmlns: "http://www.w3.org/2000/svg",
1852
1927
  width: size,
@@ -1857,31 +1932,25 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1857
1932
  strokeWidth: "2",
1858
1933
  strokeLinecap: "round",
1859
1934
  strokeLinejoin: "round"
1860
- }, rest), /* @__PURE__ */React.createElement("circle", {
1861
- cx: "12",
1862
- cy: "12",
1863
- r: "10"
1864
- }), /* @__PURE__ */React.createElement("path", {
1865
- d: "M8 14s1.5 2 4 2 4-2 4-2"
1866
- }), /* @__PURE__ */React.createElement("line", {
1867
- x1: "9",
1868
- y1: "9",
1869
- x2: "9.01",
1870
- y2: "9"
1935
+ }, rest), /* @__PURE__ */React.createElement("line", {
1936
+ x1: "12",
1937
+ y1: "5",
1938
+ x2: "12",
1939
+ y2: "19"
1871
1940
  }), /* @__PURE__ */React.createElement("line", {
1872
- x1: "15",
1873
- y1: "9",
1874
- x2: "15.01",
1875
- y2: "9"
1941
+ x1: "5",
1942
+ y1: "12",
1943
+ x2: "19",
1944
+ y2: "12"
1876
1945
  }));
1877
1946
  });
1878
- Smile.propTypes = {
1947
+ Plus.propTypes = {
1879
1948
  color: PropTypes.string,
1880
1949
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1881
1950
  };
1882
- Smile.displayName = "Smile";
1883
- function _extends$1() {
1884
- _extends$1 = Object.assign || function (target) {
1951
+ Plus.displayName = "Plus";
1952
+ function _extends$5() {
1953
+ _extends$5 = Object.assign || function (target) {
1885
1954
  for (var i = 1; i < arguments.length; i++) {
1886
1955
  var source = arguments[i];
1887
1956
  for (var key in source) {
@@ -1892,11 +1961,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1892
1961
  }
1893
1962
  return target;
1894
1963
  };
1895
- return _extends$1.apply(this, arguments);
1964
+ return _extends$5.apply(this, arguments);
1896
1965
  }
1897
- function _objectWithoutProperties$1(source, excluded) {
1966
+ function _objectWithoutProperties$5(source, excluded) {
1898
1967
  if (source == null) return {};
1899
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
1968
+ var target = _objectWithoutPropertiesLoose$5(source, excluded);
1900
1969
  var key, i;
1901
1970
  if (Object.getOwnPropertySymbols) {
1902
1971
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1909,7 +1978,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1909
1978
  }
1910
1979
  return target;
1911
1980
  }
1912
- function _objectWithoutPropertiesLoose$1(source, excluded) {
1981
+ function _objectWithoutPropertiesLoose$5(source, excluded) {
1913
1982
  if (source == null) return {};
1914
1983
  var target = {};
1915
1984
  var sourceKeys = Object.keys(source);
@@ -1921,13 +1990,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1921
1990
  }
1922
1991
  return target;
1923
1992
  }
1924
- var ThumbsUp = React.forwardRef(function (_ref, ref) {
1993
+ var Scissors = React.forwardRef(function (_ref, ref) {
1925
1994
  var _ref$color = _ref.color,
1926
1995
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1927
1996
  _ref$size = _ref.size,
1928
1997
  size = _ref$size === void 0 ? 24 : _ref$size,
1929
- rest = _objectWithoutProperties$1(_ref, ["color", "size"]);
1930
- return /* @__PURE__ */React.createElement("svg", _extends$1({
1998
+ rest = _objectWithoutProperties$5(_ref, ["color", "size"]);
1999
+ return /* @__PURE__ */React.createElement("svg", _extends$5({
1931
2000
  ref: ref,
1932
2001
  xmlns: "http://www.w3.org/2000/svg",
1933
2002
  width: size,
@@ -1938,17 +2007,38 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1938
2007
  strokeWidth: "2",
1939
2008
  strokeLinecap: "round",
1940
2009
  strokeLinejoin: "round"
1941
- }, rest), /* @__PURE__ */React.createElement("path", {
1942
- d: "M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"
2010
+ }, rest), /* @__PURE__ */React.createElement("circle", {
2011
+ cx: "6",
2012
+ cy: "6",
2013
+ r: "3"
2014
+ }), /* @__PURE__ */React.createElement("circle", {
2015
+ cx: "6",
2016
+ cy: "18",
2017
+ r: "3"
2018
+ }), /* @__PURE__ */React.createElement("line", {
2019
+ x1: "20",
2020
+ y1: "4",
2021
+ x2: "8.12",
2022
+ y2: "15.88"
2023
+ }), /* @__PURE__ */React.createElement("line", {
2024
+ x1: "14.47",
2025
+ y1: "14.48",
2026
+ x2: "20",
2027
+ y2: "20"
2028
+ }), /* @__PURE__ */React.createElement("line", {
2029
+ x1: "8.12",
2030
+ y1: "8.12",
2031
+ x2: "12",
2032
+ y2: "12"
1943
2033
  }));
1944
2034
  });
1945
- ThumbsUp.propTypes = {
2035
+ Scissors.propTypes = {
1946
2036
  color: PropTypes.string,
1947
2037
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1948
2038
  };
1949
- ThumbsUp.displayName = "ThumbsUp";
1950
- function _extends() {
1951
- _extends = Object.assign || function (target) {
2039
+ Scissors.displayName = "Scissors";
2040
+ function _extends$4() {
2041
+ _extends$4 = Object.assign || function (target) {
1952
2042
  for (var i = 1; i < arguments.length; i++) {
1953
2043
  var source = arguments[i];
1954
2044
  for (var key in source) {
@@ -1959,11 +2049,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1959
2049
  }
1960
2050
  return target;
1961
2051
  };
1962
- return _extends.apply(this, arguments);
2052
+ return _extends$4.apply(this, arguments);
1963
2053
  }
1964
- function _objectWithoutProperties(source, excluded) {
2054
+ function _objectWithoutProperties$4(source, excluded) {
1965
2055
  if (source == null) return {};
1966
- var target = _objectWithoutPropertiesLoose(source, excluded);
2056
+ var target = _objectWithoutPropertiesLoose$4(source, excluded);
1967
2057
  var key, i;
1968
2058
  if (Object.getOwnPropertySymbols) {
1969
2059
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1976,7 +2066,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1976
2066
  }
1977
2067
  return target;
1978
2068
  }
1979
- function _objectWithoutPropertiesLoose(source, excluded) {
2069
+ function _objectWithoutPropertiesLoose$4(source, excluded) {
1980
2070
  if (source == null) return {};
1981
2071
  var target = {};
1982
2072
  var sourceKeys = Object.keys(source);
@@ -1988,13 +2078,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1988
2078
  }
1989
2079
  return target;
1990
2080
  }
1991
- var Zap = React.forwardRef(function (_ref, ref) {
2081
+ var Settings = React.forwardRef(function (_ref, ref) {
1992
2082
  var _ref$color = _ref.color,
1993
2083
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1994
2084
  _ref$size = _ref.size,
1995
2085
  size = _ref$size === void 0 ? 24 : _ref$size,
1996
- rest = _objectWithoutProperties(_ref, ["color", "size"]);
1997
- return /* @__PURE__ */React.createElement("svg", _extends({
2086
+ rest = _objectWithoutProperties$4(_ref, ["color", "size"]);
2087
+ return /* @__PURE__ */React.createElement("svg", _extends$4({
1998
2088
  ref: ref,
1999
2089
  xmlns: "http://www.w3.org/2000/svg",
2000
2090
  width: size,
@@ -2005,57 +2095,351 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2005
2095
  strokeWidth: "2",
2006
2096
  strokeLinecap: "round",
2007
2097
  strokeLinejoin: "round"
2008
- }, rest), /* @__PURE__ */React.createElement("polygon", {
2009
- points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2"
2098
+ }, rest), /* @__PURE__ */React.createElement("circle", {
2099
+ cx: "12",
2100
+ cy: "12",
2101
+ r: "3"
2102
+ }), /* @__PURE__ */React.createElement("path", {
2103
+ d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"
2010
2104
  }));
2011
2105
  });
2012
- Zap.propTypes = {
2106
+ Settings.propTypes = {
2013
2107
  color: PropTypes.string,
2014
2108
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2015
2109
  };
2016
- Zap.displayName = "Zap";
2017
- var ARROW_SIZE = 6;
2018
- var GAP = 4;
2019
- var Tooltip = /*#__PURE__*/function (_React__namespace$Com) {
2020
- function Tooltip(props) {
2021
- var _this;
2022
- _classCallCheck(this, Tooltip);
2023
- _this = _callSuper(this, Tooltip, [props]);
2024
- __publicField(_this, "triggerRef");
2025
- __publicField(_this, "tooltipRef");
2026
- __publicField(_this, "enterTimer", null);
2027
- __publicField(_this, "leaveTimer", null);
2028
- __publicField(_this, "handleMouseEnter", function () {
2029
- if (_this.leaveTimer) {
2030
- clearTimeout(_this.leaveTimer);
2031
- _this.leaveTimer = null;
2032
- }
2033
- var enterDelay = _this.props.enterDelay;
2034
- _this.enterTimer = setTimeout(function () {
2035
- _this.setState({
2036
- visible: true
2037
- }, function () {
2038
- var coords = _this.computeCoords();
2039
- _this.setState({
2040
- coords: coords
2041
- });
2042
- });
2043
- }, enterDelay);
2044
- });
2045
- __publicField(_this, "handleMouseLeave", function () {
2046
- if (_this.enterTimer) {
2047
- clearTimeout(_this.enterTimer);
2048
- _this.enterTimer = null;
2110
+ Settings.displayName = "Settings";
2111
+ function _extends$3() {
2112
+ _extends$3 = Object.assign || function (target) {
2113
+ for (var i = 1; i < arguments.length; i++) {
2114
+ var source = arguments[i];
2115
+ for (var key in source) {
2116
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2117
+ target[key] = source[key];
2118
+ }
2049
2119
  }
2050
- var leaveDelay = _this.props.leaveDelay;
2051
- _this.leaveTimer = setTimeout(function () {
2052
- _this.setState({
2053
- visible: false
2054
- });
2055
- }, leaveDelay);
2056
- });
2057
- _this.state = {
2058
- visible: false,
2120
+ }
2121
+ return target;
2122
+ };
2123
+ return _extends$3.apply(this, arguments);
2124
+ }
2125
+ function _objectWithoutProperties$3(source, excluded) {
2126
+ if (source == null) return {};
2127
+ var target = _objectWithoutPropertiesLoose$3(source, excluded);
2128
+ var key, i;
2129
+ if (Object.getOwnPropertySymbols) {
2130
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2131
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2132
+ key = sourceSymbolKeys[i];
2133
+ if (excluded.indexOf(key) >= 0) continue;
2134
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2135
+ target[key] = source[key];
2136
+ }
2137
+ }
2138
+ return target;
2139
+ }
2140
+ function _objectWithoutPropertiesLoose$3(source, excluded) {
2141
+ if (source == null) return {};
2142
+ var target = {};
2143
+ var sourceKeys = Object.keys(source);
2144
+ var key, i;
2145
+ for (i = 0; i < sourceKeys.length; i++) {
2146
+ key = sourceKeys[i];
2147
+ if (excluded.indexOf(key) >= 0) continue;
2148
+ target[key] = source[key];
2149
+ }
2150
+ return target;
2151
+ }
2152
+ var Smile = React.forwardRef(function (_ref, ref) {
2153
+ var _ref$color = _ref.color,
2154
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2155
+ _ref$size = _ref.size,
2156
+ size = _ref$size === void 0 ? 24 : _ref$size,
2157
+ rest = _objectWithoutProperties$3(_ref, ["color", "size"]);
2158
+ return /* @__PURE__ */React.createElement("svg", _extends$3({
2159
+ ref: ref,
2160
+ xmlns: "http://www.w3.org/2000/svg",
2161
+ width: size,
2162
+ height: size,
2163
+ viewBox: "0 0 24 24",
2164
+ fill: "none",
2165
+ stroke: color,
2166
+ strokeWidth: "2",
2167
+ strokeLinecap: "round",
2168
+ strokeLinejoin: "round"
2169
+ }, rest), /* @__PURE__ */React.createElement("circle", {
2170
+ cx: "12",
2171
+ cy: "12",
2172
+ r: "10"
2173
+ }), /* @__PURE__ */React.createElement("path", {
2174
+ d: "M8 14s1.5 2 4 2 4-2 4-2"
2175
+ }), /* @__PURE__ */React.createElement("line", {
2176
+ x1: "9",
2177
+ y1: "9",
2178
+ x2: "9.01",
2179
+ y2: "9"
2180
+ }), /* @__PURE__ */React.createElement("line", {
2181
+ x1: "15",
2182
+ y1: "9",
2183
+ x2: "15.01",
2184
+ y2: "9"
2185
+ }));
2186
+ });
2187
+ Smile.propTypes = {
2188
+ color: PropTypes.string,
2189
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2190
+ };
2191
+ Smile.displayName = "Smile";
2192
+ function _extends$2() {
2193
+ _extends$2 = Object.assign || function (target) {
2194
+ for (var i = 1; i < arguments.length; i++) {
2195
+ var source = arguments[i];
2196
+ for (var key in source) {
2197
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2198
+ target[key] = source[key];
2199
+ }
2200
+ }
2201
+ }
2202
+ return target;
2203
+ };
2204
+ return _extends$2.apply(this, arguments);
2205
+ }
2206
+ function _objectWithoutProperties$2(source, excluded) {
2207
+ if (source == null) return {};
2208
+ var target = _objectWithoutPropertiesLoose$2(source, excluded);
2209
+ var key, i;
2210
+ if (Object.getOwnPropertySymbols) {
2211
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2212
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2213
+ key = sourceSymbolKeys[i];
2214
+ if (excluded.indexOf(key) >= 0) continue;
2215
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2216
+ target[key] = source[key];
2217
+ }
2218
+ }
2219
+ return target;
2220
+ }
2221
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
2222
+ if (source == null) return {};
2223
+ var target = {};
2224
+ var sourceKeys = Object.keys(source);
2225
+ var key, i;
2226
+ for (i = 0; i < sourceKeys.length; i++) {
2227
+ key = sourceKeys[i];
2228
+ if (excluded.indexOf(key) >= 0) continue;
2229
+ target[key] = source[key];
2230
+ }
2231
+ return target;
2232
+ }
2233
+ var ThumbsUp = React.forwardRef(function (_ref, ref) {
2234
+ var _ref$color = _ref.color,
2235
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2236
+ _ref$size = _ref.size,
2237
+ size = _ref$size === void 0 ? 24 : _ref$size,
2238
+ rest = _objectWithoutProperties$2(_ref, ["color", "size"]);
2239
+ return /* @__PURE__ */React.createElement("svg", _extends$2({
2240
+ ref: ref,
2241
+ xmlns: "http://www.w3.org/2000/svg",
2242
+ width: size,
2243
+ height: size,
2244
+ viewBox: "0 0 24 24",
2245
+ fill: "none",
2246
+ stroke: color,
2247
+ strokeWidth: "2",
2248
+ strokeLinecap: "round",
2249
+ strokeLinejoin: "round"
2250
+ }, rest), /* @__PURE__ */React.createElement("path", {
2251
+ d: "M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"
2252
+ }));
2253
+ });
2254
+ ThumbsUp.propTypes = {
2255
+ color: PropTypes.string,
2256
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2257
+ };
2258
+ ThumbsUp.displayName = "ThumbsUp";
2259
+ function _extends$1() {
2260
+ _extends$1 = Object.assign || function (target) {
2261
+ for (var i = 1; i < arguments.length; i++) {
2262
+ var source = arguments[i];
2263
+ for (var key in source) {
2264
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2265
+ target[key] = source[key];
2266
+ }
2267
+ }
2268
+ }
2269
+ return target;
2270
+ };
2271
+ return _extends$1.apply(this, arguments);
2272
+ }
2273
+ function _objectWithoutProperties$1(source, excluded) {
2274
+ if (source == null) return {};
2275
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
2276
+ var key, i;
2277
+ if (Object.getOwnPropertySymbols) {
2278
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2279
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2280
+ key = sourceSymbolKeys[i];
2281
+ if (excluded.indexOf(key) >= 0) continue;
2282
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2283
+ target[key] = source[key];
2284
+ }
2285
+ }
2286
+ return target;
2287
+ }
2288
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
2289
+ if (source == null) return {};
2290
+ var target = {};
2291
+ var sourceKeys = Object.keys(source);
2292
+ var key, i;
2293
+ for (i = 0; i < sourceKeys.length; i++) {
2294
+ key = sourceKeys[i];
2295
+ if (excluded.indexOf(key) >= 0) continue;
2296
+ target[key] = source[key];
2297
+ }
2298
+ return target;
2299
+ }
2300
+ var X = React.forwardRef(function (_ref, ref) {
2301
+ var _ref$color = _ref.color,
2302
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2303
+ _ref$size = _ref.size,
2304
+ size = _ref$size === void 0 ? 24 : _ref$size,
2305
+ rest = _objectWithoutProperties$1(_ref, ["color", "size"]);
2306
+ return /* @__PURE__ */React.createElement("svg", _extends$1({
2307
+ ref: ref,
2308
+ xmlns: "http://www.w3.org/2000/svg",
2309
+ width: size,
2310
+ height: size,
2311
+ viewBox: "0 0 24 24",
2312
+ fill: "none",
2313
+ stroke: color,
2314
+ strokeWidth: "2",
2315
+ strokeLinecap: "round",
2316
+ strokeLinejoin: "round"
2317
+ }, rest), /* @__PURE__ */React.createElement("line", {
2318
+ x1: "18",
2319
+ y1: "6",
2320
+ x2: "6",
2321
+ y2: "18"
2322
+ }), /* @__PURE__ */React.createElement("line", {
2323
+ x1: "6",
2324
+ y1: "6",
2325
+ x2: "18",
2326
+ y2: "18"
2327
+ }));
2328
+ });
2329
+ X.propTypes = {
2330
+ color: PropTypes.string,
2331
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2332
+ };
2333
+ X.displayName = "X";
2334
+ function _extends() {
2335
+ _extends = Object.assign || function (target) {
2336
+ for (var i = 1; i < arguments.length; i++) {
2337
+ var source = arguments[i];
2338
+ for (var key in source) {
2339
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2340
+ target[key] = source[key];
2341
+ }
2342
+ }
2343
+ }
2344
+ return target;
2345
+ };
2346
+ return _extends.apply(this, arguments);
2347
+ }
2348
+ function _objectWithoutProperties(source, excluded) {
2349
+ if (source == null) return {};
2350
+ var target = _objectWithoutPropertiesLoose(source, excluded);
2351
+ var key, i;
2352
+ if (Object.getOwnPropertySymbols) {
2353
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2354
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2355
+ key = sourceSymbolKeys[i];
2356
+ if (excluded.indexOf(key) >= 0) continue;
2357
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2358
+ target[key] = source[key];
2359
+ }
2360
+ }
2361
+ return target;
2362
+ }
2363
+ function _objectWithoutPropertiesLoose(source, excluded) {
2364
+ if (source == null) return {};
2365
+ var target = {};
2366
+ var sourceKeys = Object.keys(source);
2367
+ var key, i;
2368
+ for (i = 0; i < sourceKeys.length; i++) {
2369
+ key = sourceKeys[i];
2370
+ if (excluded.indexOf(key) >= 0) continue;
2371
+ target[key] = source[key];
2372
+ }
2373
+ return target;
2374
+ }
2375
+ var Zap = React.forwardRef(function (_ref, ref) {
2376
+ var _ref$color = _ref.color,
2377
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2378
+ _ref$size = _ref.size,
2379
+ size = _ref$size === void 0 ? 24 : _ref$size,
2380
+ rest = _objectWithoutProperties(_ref, ["color", "size"]);
2381
+ return /* @__PURE__ */React.createElement("svg", _extends({
2382
+ ref: ref,
2383
+ xmlns: "http://www.w3.org/2000/svg",
2384
+ width: size,
2385
+ height: size,
2386
+ viewBox: "0 0 24 24",
2387
+ fill: "none",
2388
+ stroke: color,
2389
+ strokeWidth: "2",
2390
+ strokeLinecap: "round",
2391
+ strokeLinejoin: "round"
2392
+ }, rest), /* @__PURE__ */React.createElement("polygon", {
2393
+ points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2"
2394
+ }));
2395
+ });
2396
+ Zap.propTypes = {
2397
+ color: PropTypes.string,
2398
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2399
+ };
2400
+ Zap.displayName = "Zap";
2401
+ var ARROW_SIZE = 6;
2402
+ var GAP = 4;
2403
+ var Tooltip = /*#__PURE__*/function (_React__namespace$Com) {
2404
+ function Tooltip(props) {
2405
+ var _this;
2406
+ _classCallCheck(this, Tooltip);
2407
+ _this = _callSuper(this, Tooltip, [props]);
2408
+ __publicField(_this, "triggerRef");
2409
+ __publicField(_this, "tooltipRef");
2410
+ __publicField(_this, "enterTimer", null);
2411
+ __publicField(_this, "leaveTimer", null);
2412
+ __publicField(_this, "handleMouseEnter", function () {
2413
+ if (_this.leaveTimer) {
2414
+ clearTimeout(_this.leaveTimer);
2415
+ _this.leaveTimer = null;
2416
+ }
2417
+ var enterDelay = _this.props.enterDelay;
2418
+ _this.enterTimer = setTimeout(function () {
2419
+ _this.setState({
2420
+ visible: true
2421
+ }, function () {
2422
+ var coords = _this.computeCoords();
2423
+ _this.setState({
2424
+ coords: coords
2425
+ });
2426
+ });
2427
+ }, enterDelay);
2428
+ });
2429
+ __publicField(_this, "handleMouseLeave", function () {
2430
+ if (_this.enterTimer) {
2431
+ clearTimeout(_this.enterTimer);
2432
+ _this.enterTimer = null;
2433
+ }
2434
+ var leaveDelay = _this.props.leaveDelay;
2435
+ _this.leaveTimer = setTimeout(function () {
2436
+ _this.setState({
2437
+ visible: false
2438
+ });
2439
+ }, leaveDelay);
2440
+ });
2441
+ _this.state = {
2442
+ visible: false,
2059
2443
  coords: {
2060
2444
  top: 0,
2061
2445
  left: 0
@@ -2747,8 +3131,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2747
3131
  }
2748
3132
  raw = cap[0];
2749
3133
  src = src.substring(raw.length);
2750
- var line = cap[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, function (t) {
2751
- return " ".repeat(3 * t.length);
3134
+ var line = cap[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, function (t2) {
3135
+ return " ".repeat(3 * t2.length);
2752
3136
  });
2753
3137
  var nextLine = src.split("\n", 1)[0];
2754
3138
  var blankLine = !line.trim();
@@ -2867,11 +3251,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2867
3251
  this.lexer.state.top = false;
2868
3252
  list2.items[_i3].tokens = this.lexer.blockTokens(list2.items[_i3].text, []);
2869
3253
  if (!list2.loose) {
2870
- var spacers = list2.items[_i3].tokens.filter(function (t) {
2871
- return t.type === "space";
3254
+ var spacers = list2.items[_i3].tokens.filter(function (t2) {
3255
+ return t2.type === "space";
2872
3256
  });
2873
- var hasMultipleLineBreaks = spacers.length > 0 && spacers.some(function (t) {
2874
- return _this2.rules.other.anyLine.test(t.raw);
3257
+ var hasMultipleLineBreaks = spacers.length > 0 && spacers.some(function (t2) {
3258
+ return _this2.rules.other.anyLine.test(t2.raw);
2875
3259
  });
2876
3260
  list2.loose = hasMultipleLineBreaks;
2877
3261
  }
@@ -4752,11 +5136,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4752
5136
  alignItems: "center",
4753
5137
  gap: 6,
4754
5138
  background: "var(--background-softGrey)",
4755
- borderRadius: 8,
4756
- borderTopLeftRadius: 0,
5139
+ borderRadius: 16,
5140
+ borderTopLeftRadius: 4,
4757
5141
  padding: "8px 12px",
4758
5142
  fontSize: 13,
4759
- color: "var(--text-secondary)"
5143
+ color: "var(--text-secondary)",
5144
+ width: "fit-content"
4760
5145
  }
4761
5146
  }, /* @__PURE__ */React__namespace.createElement("span", null, label), /* @__PURE__ */React__namespace.createElement("span", {
4762
5147
  className: "chat-ai-dots",
@@ -4785,6 +5170,83 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4785
5170
  }, _callee2);
4786
5171
  }));
4787
5172
  };
5173
+ var LangKey = /* @__PURE__ */function (LangKey2) {
5174
+ LangKey2["SUMMARY_WARNING"] = "SUMMARY_WARNING";
5175
+ LangKey2["NO_DATA"] = "NO_DATA";
5176
+ LangKey2["SENT"] = "SENT";
5177
+ LangKey2["RECEIVED"] = "RECEIVED";
5178
+ LangKey2["ALL"] = "ALL";
5179
+ LangKey2["CREATE_EMPTY_TITLE"] = "CREATE_EMPTY_TITLE";
5180
+ LangKey2["CREATE_EMPTY_SUBTITLE"] = "CREATE_EMPTY_SUBTITLE";
5181
+ LangKey2["CREATE_EMPTY_GUIDE"] = "CREATE_EMPTY_GUIDE";
5182
+ LangKey2["CREATE_FEATURE_1_TITLE"] = "CREATE_FEATURE_1_TITLE";
5183
+ LangKey2["CREATE_FEATURE_1_DESC"] = "CREATE_FEATURE_1_DESC";
5184
+ LangKey2["CREATE_FEATURE_2_TITLE"] = "CREATE_FEATURE_2_TITLE";
5185
+ LangKey2["CREATE_FEATURE_2_DESC"] = "CREATE_FEATURE_2_DESC";
5186
+ LangKey2["CREATE_FEATURE_3_TITLE"] = "CREATE_FEATURE_3_TITLE";
5187
+ LangKey2["CREATE_FEATURE_3_DESC"] = "CREATE_FEATURE_3_DESC";
5188
+ LangKey2["CREATE_PROMPT_HINT"] = "CREATE_PROMPT_HINT";
5189
+ LangKey2["CREATE_SUGGESTION_1"] = "CREATE_SUGGESTION_1";
5190
+ LangKey2["CREATE_SUGGESTION_2"] = "CREATE_SUGGESTION_2";
5191
+ LangKey2["CREATE_SUGGESTION_3"] = "CREATE_SUGGESTION_3";
5192
+ LangKey2["REPLY_EMPTY_TITLE"] = "REPLY_EMPTY_TITLE";
5193
+ LangKey2["REPLY_EMPTY_GUIDE"] = "REPLY_EMPTY_GUIDE";
5194
+ LangKey2["REPLY_FEATURE_1_TITLE"] = "REPLY_FEATURE_1_TITLE";
5195
+ LangKey2["REPLY_FEATURE_1_DESC"] = "REPLY_FEATURE_1_DESC";
5196
+ LangKey2["REPLY_FEATURE_2_TITLE"] = "REPLY_FEATURE_2_TITLE";
5197
+ LangKey2["REPLY_FEATURE_2_DESC"] = "REPLY_FEATURE_2_DESC";
5198
+ LangKey2["REPLY_FEATURE_3_TITLE"] = "REPLY_FEATURE_3_TITLE";
5199
+ LangKey2["REPLY_FEATURE_3_DESC"] = "REPLY_FEATURE_3_DESC";
5200
+ LangKey2["CHAT_INPUT_PLACEHOLDER"] = "CHAT_INPUT_PLACEHOLDER";
5201
+ LangKey2["CHAT_INPUT_PLACEHOLDER_REPLY"] = "CHAT_INPUT_PLACEHOLDER_REPLY";
5202
+ LangKey2["APPLY_CONTENT"] = "APPLY_CONTENT";
5203
+ LangKey2["SETTING_LANGUAGE"] = "SETTING_LANGUAGE";
5204
+ LangKey2["SETTING_TONE"] = "SETTING_TONE";
5205
+ LangKey2["SETTING_LENGTH"] = "SETTING_LENGTH";
5206
+ LangKey2["TONE_FORMAL"] = "TONE_FORMAL";
5207
+ LangKey2["TONE_POLITE"] = "TONE_POLITE";
5208
+ LangKey2["TONE_NEUTRAL"] = "TONE_NEUTRAL";
5209
+ LangKey2["TONE_FRIENDLY"] = "TONE_FRIENDLY";
5210
+ LangKey2["TONE_FIRM"] = "TONE_FIRM";
5211
+ LangKey2["TONE_APOLOGY"] = "TONE_APOLOGY";
5212
+ LangKey2["LENGTH_SHORT"] = "LENGTH_SHORT";
5213
+ LangKey2["LENGTH_MEDIUM"] = "LENGTH_MEDIUM";
5214
+ LangKey2["LENGTH_LONG"] = "LENGTH_LONG";
5215
+ LangKey2["LENGTH_ONE_LINER"] = "LENGTH_ONE_LINER";
5216
+ LangKey2["PAGINATION_TOTAL"] = "PAGINATION_TOTAL";
5217
+ LangKey2["PAGINATION_PAGE"] = "PAGINATION_PAGE";
5218
+ LangKey2["PAGINATION_PAGE_OF"] = "PAGINATION_PAGE_OF";
5219
+ LangKey2["REPLY_LOADING_CONTEXT"] = "REPLY_LOADING_CONTEXT";
5220
+ LangKey2["SOURCE_CONTEXT"] = "SOURCE_CONTEXT";
5221
+ LangKey2["AUTO"] = "AUTO";
5222
+ LangKey2["SELECTED_CONTEXT"] = "SELECTED_CONTEXT";
5223
+ LangKey2["ADD"] = "ADD";
5224
+ LangKey2["BACK"] = "BACK";
5225
+ LangKey2["ADD_CONTEXT_TITLE"] = "ADD_CONTEXT_TITLE";
5226
+ LangKey2["ADD_CONTEXT_DESC"] = "ADD_CONTEXT_DESC";
5227
+ LangKey2["SELECTED_UP_TO"] = "SELECTED_UP_TO";
5228
+ LangKey2["CLEAR_ALL"] = "CLEAR_ALL";
5229
+ LangKey2["SORT_LATEST"] = "SORT_LATEST";
5230
+ LangKey2["NO_EMAILS_FOUND"] = "NO_EMAILS_FOUND";
5231
+ LangKey2["CANCEL"] = "CANCEL";
5232
+ LangKey2["ADD_AS_CONTEXT"] = "ADD_AS_CONTEXT";
5233
+ LangKey2["NO_SUBJECT"] = "NO_SUBJECT";
5234
+ return LangKey2;
5235
+ }(LangKey || {});
5236
+ var en = (_en = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_en, LangKey.SUMMARY_WARNING, "This is a summary compiled by AI · May contain some inaccuracies"), LangKey.NO_DATA, "No data"), LangKey.SENT, "Sent"), LangKey.RECEIVED, "Received"), LangKey.ALL, "All"), LangKey.CREATE_EMPTY_TITLE, "Let's draft a new email together from scratch."), LangKey.CREATE_EMPTY_SUBTITLE, "Tell me what kind of email you'd like to write."), LangKey.CREATE_EMPTY_GUIDE, "Give me the recipient, purpose, and key points\nand AI will generate a polished draft."), LangKey.CREATE_FEATURE_1_TITLE, "Request via message"), LangKey.CREATE_FEATURE_1_DESC, 'e.g., "Draft an email to Director Hong proposing a Q3 collaboration meeting (May 20, 3 PM)"'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_en, LangKey.CREATE_FEATURE_2_TITLE, "AI generates a draft"), LangKey.CREATE_FEATURE_2_DESC, "Refine the draft freely with follow-ups like 'more polite' or 'add a deadline'."), LangKey.CREATE_FEATURE_3_TITLE, "Apply to body"), LangKey.CREATE_FEATURE_3_DESC, "Insert the response you like into the email body and send."), LangKey.CREATE_PROMPT_HINT, "💡 Try these prompts to get a draft right away"), LangKey.CREATE_SUGGESTION_1, "Propose a Q3 meeting to Director Hong (May 20, 3 PM)"), LangKey.CREATE_SUGGESTION_2, "Notify client of payment schedule (Due May 30)"), LangKey.CREATE_SUGGESTION_3, "Welcome message to new employee (Joining May 22)"), LangKey.REPLY_EMPTY_TITLE, "We'll draft a reply based on the received email.\nAdd send history if you want to match the tone."), LangKey.REPLY_EMPTY_GUIDE, "The source is auto-included. Adjust tone and length through conversation."), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_en, LangKey.REPLY_FEATURE_1_TITLE, "Auto-include source"), LangKey.REPLY_FEATURE_1_DESC, "The email you are replying to is automatically added as context."), LangKey.REPLY_FEATURE_2_TITLE, "Add send history (optional)"), LangKey.REPLY_FEATURE_2_DESC, "Use '+ Add' to pick past emails and reference their tone."), LangKey.REPLY_FEATURE_3_TITLE, "Refine with conversation"), LangKey.REPLY_FEATURE_3_DESC, "Get an AI draft, then adjust freely with chips or messages."), LangKey.CHAT_INPUT_PLACEHOLDER, "Describe your email..."), LangKey.CHAT_INPUT_PLACEHOLDER_REPLY, "Type a message..."), LangKey.APPLY_CONTENT, "Apply content"), LangKey.SETTING_LANGUAGE, "Language"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_en, LangKey.SETTING_TONE, "Tone"), LangKey.SETTING_LENGTH, "Length"), LangKey.TONE_FORMAL, "Formal"), LangKey.TONE_POLITE, "Polite"), LangKey.TONE_NEUTRAL, "Neutral"), LangKey.TONE_FRIENDLY, "Friendly"), LangKey.TONE_FIRM, "Firm"), LangKey.TONE_APOLOGY, "Apology"), LangKey.LENGTH_SHORT, "Short"), LangKey.LENGTH_MEDIUM, "Medium"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_en, LangKey.LENGTH_LONG, "Long"), LangKey.LENGTH_ONE_LINER, "1-liner"), LangKey.PAGINATION_TOTAL, "Total"), LangKey.PAGINATION_PAGE, "Page"), LangKey.PAGINATION_PAGE_OF, "Page"), LangKey.REPLY_LOADING_CONTEXT, "Loading context..."), LangKey.SOURCE_CONTEXT, "Source context"), LangKey.AUTO, "Auto"), LangKey.SELECTED_CONTEXT, "Selected context"), LangKey.ADD, "Add"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_en, LangKey.BACK, "Back"), LangKey.ADD_CONTEXT_TITLE, "Add context from receive history"), LangKey.ADD_CONTEXT_DESC, "Select related emails to provide AI context."), LangKey.SELECTED_UP_TO, "selected · up to"), LangKey.CLEAR_ALL, "Clear all"), LangKey.SORT_LATEST, "Sort: latest"), LangKey.NO_EMAILS_FOUND, "No emails found."), LangKey.CANCEL, "Cancel"), LangKey.ADD_AS_CONTEXT, "as context →"), LangKey.NO_SUBJECT, "(no subject)"));
5237
+ var vi = (_vi = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_vi, LangKey.SUMMARY_WARNING, "Đây là bản tóm tắt do AI tổng hợp · Có thể chứa một số điểm không chính xác"), LangKey.NO_DATA, "Không có dữ liệu"), LangKey.SENT, "Đã gửi"), LangKey.RECEIVED, "Đã nhận"), LangKey.ALL, "Tất cả"), LangKey.CREATE_EMPTY_TITLE, "Hãy cùng nhau soạn thảo một email mới từ đầu."), LangKey.CREATE_EMPTY_SUBTITLE, "Hãy cho tôi biết bạn muốn viết loại email nào."), LangKey.CREATE_EMPTY_GUIDE, "Cho tôi người nhận, mục đích và những điểm chính\nvà AI sẽ tạo ra một bản nháp hoàn chỉnh."), LangKey.CREATE_FEATURE_1_TITLE, "Yêu cầu qua tin nhắn"), LangKey.CREATE_FEATURE_1_DESC, 'VD: "Soạn email gửi Giám đốc Hong đề xuất cuộc họp hợp tác quý 3 (20/5, 3 giờ chiều)"'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_vi, LangKey.CREATE_FEATURE_2_TITLE, "AI tạo bản nháp"), LangKey.CREATE_FEATURE_2_DESC, "Tinh chỉnh bản nháp thoải mái với các yêu cầu tiếp theo như 'lịch sự hơn' hoặc 'thêm thời hạn'."), LangKey.CREATE_FEATURE_3_TITLE, "Áp dụng vào nội dung"), LangKey.CREATE_FEATURE_3_DESC, "Chèn phản hồi bạn thích vào nội dung email và gửi."), LangKey.CREATE_PROMPT_HINT, "💡 Thử các câu lệnh này để nhận bản nháp ngay lập tức"), LangKey.CREATE_SUGGESTION_1, "Đề xuất cuộc họp quý 3 với Giám đốc Hong (20/5, 3 giờ chiều)"), LangKey.CREATE_SUGGESTION_2, "Thông báo lịch thanh toán cho khách hàng (Hạn chót 30/5)"), LangKey.CREATE_SUGGESTION_3, "Tin nhắn chào mừng nhân viên mới (Gia nhập 22/5)"), LangKey.REPLY_EMPTY_TITLE, "Chúng tôi sẽ soạn thảo thư trả lời dựa trên email đã nhận.\nThêm lịch sử gửi nếu bạn muốn khớp với giọng điệu."), LangKey.REPLY_EMPTY_GUIDE, "Nguồn được tự động bao gồm. Điều chỉnh giọng điệu và độ dài thông qua cuộc trò chuyện."), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_vi, LangKey.REPLY_FEATURE_1_TITLE, "Tự động bao gồm nguồn"), LangKey.REPLY_FEATURE_1_DESC, "Email bạn đang trả lời tự động được thêm làm ngữ cảnh."), LangKey.REPLY_FEATURE_2_TITLE, "Thêm lịch sử gửi (tùy chọn)"), LangKey.REPLY_FEATURE_2_DESC, "Sử dụng '+ Thêm' để chọn các email trước đây và tham khảo giọng điệu của chúng."), LangKey.REPLY_FEATURE_3_TITLE, "Tinh chỉnh thông qua trò chuyện"), LangKey.REPLY_FEATURE_3_DESC, "Nhận bản nháp AI, sau đó điều chỉnh thoải mái bằng thẻ hoặc tin nhắn."), LangKey.CHAT_INPUT_PLACEHOLDER, "Mô tả email của bạn..."), LangKey.CHAT_INPUT_PLACEHOLDER_REPLY, "Nhập tin nhắn..."), LangKey.APPLY_CONTENT, "Áp dụng nội dung"), LangKey.SETTING_LANGUAGE, "Ngôn ngữ"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_vi, LangKey.SETTING_TONE, "Giọng điệu"), LangKey.SETTING_LENGTH, "Độ dài"), LangKey.TONE_FORMAL, "Trang trọng"), LangKey.TONE_POLITE, "Lịch sự"), LangKey.TONE_NEUTRAL, "Trung lập"), LangKey.TONE_FRIENDLY, "Thân thiện"), LangKey.TONE_FIRM, "Cứng rắn"), LangKey.TONE_APOLOGY, "Xin lỗi"), LangKey.LENGTH_SHORT, "Ngắn"), LangKey.LENGTH_MEDIUM, "Trung bình"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_vi, LangKey.LENGTH_LONG, "Dài"), LangKey.LENGTH_ONE_LINER, "1 dòng"), LangKey.PAGINATION_TOTAL, "Tổng"), LangKey.PAGINATION_PAGE, "Trang"), LangKey.PAGINATION_PAGE_OF, "Trang"), LangKey.REPLY_LOADING_CONTEXT, "Đang tải ngữ cảnh..."), LangKey.SOURCE_CONTEXT, "Ngữ cảnh nguồn"), LangKey.AUTO, "Tự động"), LangKey.SELECTED_CONTEXT, "Ngữ cảnh đã chọn"), LangKey.ADD, "Thêm"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_vi, LangKey.BACK, "Trở lại"), LangKey.ADD_CONTEXT_TITLE, "Thêm ngữ cảnh từ lịch sử nhận"), LangKey.ADD_CONTEXT_DESC, "Chọn các email liên quan để cung cấp ngữ cảnh cho AI."), LangKey.SELECTED_UP_TO, "đã chọn · tối đa"), LangKey.CLEAR_ALL, "Xóa tất cả"), LangKey.SORT_LATEST, "Sắp xếp: mới nhất"), LangKey.NO_EMAILS_FOUND, "Không tìm thấy email nào."), LangKey.CANCEL, "Hủy bỏ"), LangKey.ADD_AS_CONTEXT, "làm ngữ cảnh →"), LangKey.NO_SUBJECT, "(không có chủ đề)"));
5238
+ var ko = (_ko = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ko, LangKey.SUMMARY_WARNING, "이것은 AI가 작성한 요약입니다 · 일부 부정확한 내용이 포함될 수 있습니다"), LangKey.NO_DATA, "데이터 없음"), LangKey.SENT, "보낸 편지"), LangKey.RECEIVED, "받은 편지"), LangKey.ALL, "전체"), LangKey.CREATE_EMPTY_TITLE, "처음부터 새로운 이메일 초안을 함께 작성해 봅시다."), LangKey.CREATE_EMPTY_SUBTITLE, "어떤 종류의 이메일을 작성하고 싶으신가요?"), LangKey.CREATE_EMPTY_GUIDE, "수신자, 목적 및 주요 내용을 알려주시면\nAI가 완성도 높은 초안을 생성해 드립니다."), LangKey.CREATE_FEATURE_1_TITLE, "메시지로 요청"), LangKey.CREATE_FEATURE_1_DESC, '예: "홍길동 이사님께 3분기 협력 회의 제안 이메일 작성 (5월 20일 오후 3시)"'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ko, LangKey.CREATE_FEATURE_2_TITLE, "AI 초안 생성"), LangKey.CREATE_FEATURE_2_DESC, "'더 정중하게' 또는 '마감일 추가'와 같은 후속 요청으로 초안을 자유롭게 수정하세요."), LangKey.CREATE_FEATURE_3_TITLE, "본문에 적용"), LangKey.CREATE_FEATURE_3_DESC, "마음에 드는 답변을 이메일 본문에 삽입하고 전송하세요."), LangKey.CREATE_PROMPT_HINT, "💡 바로 초안을 받으려면 다음 프롬프트를 시도해 보세요"), LangKey.CREATE_SUGGESTION_1, "홍길동 이사님께 3분기 회의 제안 (5월 20일 오후 3시)"), LangKey.CREATE_SUGGESTION_2, "고객에게 결제 일정 안내 (마감일 5월 30일)"), LangKey.CREATE_SUGGESTION_3, "신입 사원 환영 메시지 (5월 22일 입사)"), LangKey.REPLY_EMPTY_TITLE, "받은 이메일을 바탕으로 답장 초안을 작성합니다.\n어조를 맞추고 싶다면 보낸 내역을 추가하세요."), LangKey.REPLY_EMPTY_GUIDE, "원본 메일은 자동으로 포함됩니다. 대화를 통해 어조와 길이를 조정하세요."), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ko, LangKey.REPLY_FEATURE_1_TITLE, "원본 자동 포함"), LangKey.REPLY_FEATURE_1_DESC, "답장하려는 이메일이 자동으로 컨텍스트로 추가됩니다."), LangKey.REPLY_FEATURE_2_TITLE, "발송 내역 추가 (선택사항)"), LangKey.REPLY_FEATURE_2_DESC, "'+ 추가'를 사용하여 과거 이메일을 선택하고 어조를 참조하세요."), LangKey.REPLY_FEATURE_3_TITLE, "대화로 수정"), LangKey.REPLY_FEATURE_3_DESC, "AI 초안을 받은 후 칩이나 메시지를 사용하여 자유롭게 조정하세요."), LangKey.CHAT_INPUT_PLACEHOLDER, "이메일을 설명해주세요..."), LangKey.CHAT_INPUT_PLACEHOLDER_REPLY, "메시지 입력..."), LangKey.APPLY_CONTENT, "내용 적용"), LangKey.SETTING_LANGUAGE, "언어"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ko, LangKey.SETTING_TONE, "어조"), LangKey.SETTING_LENGTH, "길이"), LangKey.TONE_FORMAL, "격식"), LangKey.TONE_POLITE, "정중"), LangKey.TONE_NEUTRAL, "중립"), LangKey.TONE_FRIENDLY, "친근"), LangKey.TONE_FIRM, "단호"), LangKey.TONE_APOLOGY, "사과"), LangKey.LENGTH_SHORT, "짧게"), LangKey.LENGTH_MEDIUM, "보통"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ko, LangKey.LENGTH_LONG, "길게"), LangKey.LENGTH_ONE_LINER, "한 줄"), LangKey.PAGINATION_TOTAL, "전체"), LangKey.PAGINATION_PAGE, "페이지"), LangKey.PAGINATION_PAGE_OF, "페이지"), LangKey.REPLY_LOADING_CONTEXT, "컨텍스트 로딩 중..."), LangKey.SOURCE_CONTEXT, "원본 컨텍스트"), LangKey.AUTO, "자동"), LangKey.SELECTED_CONTEXT, "선택한 컨텍스트"), LangKey.ADD, "추가"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ko, LangKey.BACK, "뒤로"), LangKey.ADD_CONTEXT_TITLE, "수신 내역에서 컨텍스트 추가"), LangKey.ADD_CONTEXT_DESC, "관련 이메일을 선택하여 AI에 컨텍스트를 제공하세요."), LangKey.SELECTED_UP_TO, "개 선택됨 · 최대"), LangKey.CLEAR_ALL, "모두 지우기"), LangKey.SORT_LATEST, "정렬: 최신순"), LangKey.NO_EMAILS_FOUND, "이메일을 찾을 수 없습니다."), LangKey.CANCEL, "취소"), LangKey.ADD_AS_CONTEXT, "컨텍스트로 추가 →"), LangKey.NO_SUBJECT, "(제목 없음)"));
5239
+ var dicts = {
5240
+ en: en,
5241
+ vi: vi,
5242
+ ko: ko
5243
+ };
5244
+ var t = function t(key) {
5245
+ var lang = SDKConfig.lang || "en";
5246
+ var prefix = lang.split("-")[0];
5247
+ var dict = dicts[lang] || dicts[prefix] || dicts.en;
5248
+ return dict[key] || en[key] || key;
5249
+ };
4788
5250
  var MessageItem = function MessageItem(_ref25) {
4789
5251
  var item = _ref25.item,
4790
5252
  onApply = _ref25.onApply,
@@ -4829,8 +5291,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4829
5291
  question: item.question
4830
5292
  },
4831
5293
  style: {
4832
- borderRadius: 8,
4833
- borderTopRightRadius: 0,
5294
+ borderRadius: 12,
5295
+ borderTopRightRadius: 4,
4834
5296
  padding: "8px 12px",
4835
5297
  background: "var(--primary-main)",
4836
5298
  color: "var(--primary-contrasttext)"
@@ -4859,8 +5321,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4859
5321
  },
4860
5322
  style: {
4861
5323
  background: "var(--background-softGrey)",
4862
- borderRadius: 8,
4863
- borderTopLeftRadius: 0,
5324
+ borderRadius: 12,
5325
+ borderTopLeftRadius: 4,
4864
5326
  padding: "8px 12px"
4865
5327
  }
4866
5328
  }), /* @__PURE__ */React__namespace.createElement("div", {
@@ -4868,7 +5330,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4868
5330
  marginTop: 4
4869
5331
  }
4870
5332
  }, /* @__PURE__ */React__namespace.createElement(Tooltip, {
4871
- title: "Apply content"
5333
+ title: t(LangKey.APPLY_CONTENT)
4872
5334
  }, /* @__PURE__ */React__namespace.createElement("button", {
4873
5335
  type: "button",
4874
5336
  onClick: handleApply,
@@ -6571,39 +7033,43 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
6571
7033
  }, _callee4);
6572
7034
  }));
6573
7035
  };
6574
- var TONE_OPTIONS = [{
6575
- label: "Formal",
6576
- value: "formal"
6577
- }, {
6578
- label: "Polite",
6579
- value: "polite"
6580
- }, {
6581
- label: "Neutral",
6582
- value: "neutral"
6583
- }, {
6584
- label: "Friendly",
6585
- value: "friendly"
6586
- }, {
6587
- label: "Firm",
6588
- value: "firm"
6589
- }, {
6590
- label: "Apology",
6591
- value: "apologetic"
6592
- }];
6593
- var LENGTH_OPTIONS = [{
6594
- label: "Short",
6595
- value: "short"
6596
- }, {
6597
- label: "Medium",
6598
- value: "medium"
6599
- }, {
6600
- label: "Long",
6601
- value: "long"
6602
- }, {
6603
- label: "1-liner",
6604
- value: "one_liner"
6605
- }];
6606
- var getFlagCode = function getFlagCode(value) {
7036
+ var getToneOptions = function getToneOptions() {
7037
+ return [{
7038
+ label: t(LangKey.TONE_FORMAL),
7039
+ value: "formal"
7040
+ }, {
7041
+ label: t(LangKey.TONE_POLITE),
7042
+ value: "polite"
7043
+ }, {
7044
+ label: t(LangKey.TONE_NEUTRAL),
7045
+ value: "neutral"
7046
+ }, {
7047
+ label: t(LangKey.TONE_FRIENDLY),
7048
+ value: "friendly"
7049
+ }, {
7050
+ label: t(LangKey.TONE_FIRM),
7051
+ value: "firm"
7052
+ }, {
7053
+ label: t(LangKey.TONE_APOLOGY),
7054
+ value: "apologetic"
7055
+ }];
7056
+ };
7057
+ var getLengthOptions = function getLengthOptions() {
7058
+ return [{
7059
+ label: t(LangKey.LENGTH_SHORT),
7060
+ value: "short"
7061
+ }, {
7062
+ label: t(LangKey.LENGTH_MEDIUM),
7063
+ value: "medium"
7064
+ }, {
7065
+ label: t(LangKey.LENGTH_LONG),
7066
+ value: "long"
7067
+ }, {
7068
+ label: t(LangKey.LENGTH_ONE_LINER),
7069
+ value: "one_liner"
7070
+ }];
7071
+ };
7072
+ var getFlagCode$1 = function getFlagCode$1(value) {
6607
7073
  var _a2;
6608
7074
  return (_a2 = AI_LANG_FLAGS.find(function (l) {
6609
7075
  return l.value === value;
@@ -6660,7 +7126,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
6660
7126
  value = _this$props3.value,
6661
7127
  options = _this$props3.options;
6662
7128
  var open = this.state.open;
6663
- var selectedFlag = getFlagCode(value == null ? void 0 : value.value);
7129
+ var selectedFlag = getFlagCode$1(value == null ? void 0 : value.value);
6664
7130
  return /* @__PURE__ */React__namespace.createElement("div", {
6665
7131
  ref: this.ref,
6666
7132
  style: {
@@ -6717,7 +7183,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
6717
7183
  zIndex: 2
6718
7184
  }
6719
7185
  }, options.map(function (opt) {
6720
- var fc = getFlagCode(opt.value);
7186
+ var fc = getFlagCode$1(opt.value);
6721
7187
  var isActive = (value == null ? void 0 : value.value) === opt.value;
6722
7188
  return /* @__PURE__ */React__namespace.createElement("button", {
6723
7189
  key: opt.value,
@@ -6983,7 +7449,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
6983
7449
  fontSize: 12,
6984
7450
  fontWeight: 600
6985
7451
  }
6986
- }, "Language"), /* @__PURE__ */React__namespace.createElement(LanguageSelect, {
7452
+ }, t(LangKey.SETTING_LANGUAGE)), /* @__PURE__ */React__namespace.createElement(LanguageSelect, {
6987
7453
  value: lang,
6988
7454
  options: languageOptions,
6989
7455
  onChange: function onChange(opt) {
@@ -7000,8 +7466,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7000
7466
  fontSize: 12,
7001
7467
  fontWeight: 600
7002
7468
  }
7003
- }, "Tone"), /* @__PURE__ */React__namespace.createElement(ChipGroup, {
7004
- options: TONE_OPTIONS,
7469
+ }, t(LangKey.SETTING_TONE)), /* @__PURE__ */React__namespace.createElement(ChipGroup, {
7470
+ options: getToneOptions(),
7005
7471
  selected: tone,
7006
7472
  onSelect: function onSelect(opt) {
7007
7473
  return setTone(opt);
@@ -7018,8 +7484,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7018
7484
  fontSize: 12,
7019
7485
  fontWeight: 600
7020
7486
  }
7021
- }, "Length"), /* @__PURE__ */React__namespace.createElement(ChipGroup, {
7022
- options: LENGTH_OPTIONS,
7487
+ }, t(LangKey.SETTING_LENGTH)), /* @__PURE__ */React__namespace.createElement(ChipGroup, {
7488
+ options: getLengthOptions(),
7023
7489
  selected: length,
7024
7490
  onSelect: function onSelect(opt) {
7025
7491
  return setLength(opt);
@@ -7101,7 +7567,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7101
7567
  ref: this.textareaRef,
7102
7568
  value: message,
7103
7569
  onChange: this.handleChange,
7104
- placeholder: placeholder || "Describe your email...",
7570
+ placeholder: placeholder || t(LangKey.CHAT_INPUT_PLACEHOLDER),
7105
7571
  name: "ai-content",
7106
7572
  onKeyDown: this.handleKeyDown,
7107
7573
  disabled: isSending,
@@ -7256,23 +7722,23 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7256
7722
  icon: /* @__PURE__ */React__namespace.createElement(MessageCircle, {
7257
7723
  size: 16
7258
7724
  }),
7259
- title: "Request via message",
7260
- desc: 'e.g., "Draft an email to Director Hong proposing a Q3 collaboration meeting (May 20, 3 PM)"'
7725
+ title: t(LangKey.CREATE_FEATURE_1_TITLE),
7726
+ desc: t(LangKey.CREATE_FEATURE_1_DESC)
7261
7727
  }, {
7262
7728
  icon: /* @__PURE__ */React__namespace.createElement(CustomAiIcon, {
7263
7729
  size: 16,
7264
7730
  stroke: 2
7265
7731
  }),
7266
- title: "AI generates a draft",
7267
- desc: "Refine the draft freely with follow-ups like 'more polite' or 'add a deadline'."
7732
+ title: t(LangKey.CREATE_FEATURE_2_TITLE),
7733
+ desc: t(LangKey.CREATE_FEATURE_2_DESC)
7268
7734
  }, {
7269
7735
  icon: /* @__PURE__ */React__namespace.createElement(Check, {
7270
7736
  size: 16
7271
7737
  }),
7272
- title: "Apply to body",
7273
- desc: "Insert the response you like into the email body and send."
7738
+ title: t(LangKey.CREATE_FEATURE_3_TITLE),
7739
+ desc: t(LangKey.CREATE_FEATURE_3_DESC)
7274
7740
  }];
7275
- var SUGGESTIONS = ["Propose a Q3 meeting to Director Hong (May 20, 3 PM)", "Notify client of payment schedule (Due May 30)", "Welcome message to new employee (Joining May 22)"];
7741
+ var SUGGESTIONS = [t(LangKey.CREATE_SUGGESTION_1), t(LangKey.CREATE_SUGGESTION_2), t(LangKey.CREATE_SUGGESTION_3)];
7276
7742
  var EmptyState$1 = function EmptyState$1(_ref29) {
7277
7743
  var onSelectPrompt = _ref29.onSelectPrompt;
7278
7744
  return /* @__PURE__ */React__namespace.createElement("div", {
@@ -7298,13 +7764,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7298
7764
  color: "var(--text-primary)",
7299
7765
  lineHeight: 1.5
7300
7766
  }
7301
- }, "Let's draft a new email together from scratch."), /* @__PURE__ */React__namespace.createElement("div", {
7767
+ }, t(LangKey.CREATE_EMPTY_TITLE)), /* @__PURE__ */React__namespace.createElement("div", {
7302
7768
  style: {
7303
7769
  fontSize: 13,
7304
7770
  color: "var(--text-secondary)",
7305
7771
  marginTop: 4
7306
7772
  }
7307
- }, "Tell me what kind of email you'd like to write.")), /* @__PURE__ */React__namespace.createElement("div", {
7773
+ }, t(LangKey.CREATE_EMPTY_SUBTITLE))), /* @__PURE__ */React__namespace.createElement("div", {
7308
7774
  style: {
7309
7775
  alignSelf: "center",
7310
7776
  width: 100,
@@ -7331,7 +7797,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7331
7797
  color: "var(--text-secondary)",
7332
7798
  lineHeight: 1.6
7333
7799
  }
7334
- }, "Give me the recipient, purpose, and key points", /* @__PURE__ */React__namespace.createElement("br", null), "and AI will generate a polished draft.")), /* @__PURE__ */React__namespace.createElement("div", {
7800
+ }, t(LangKey.CREATE_EMPTY_GUIDE).split("\n").map(function (line, idx) {
7801
+ return /* @__PURE__ */React__namespace.createElement(React__namespace.Fragment, {
7802
+ key: idx
7803
+ }, line, /* @__PURE__ */React__namespace.createElement("br", null));
7804
+ }))), /* @__PURE__ */React__namespace.createElement("div", {
7335
7805
  style: {
7336
7806
  borderTop: "1px solid var(--border-light)",
7337
7807
  marginTop: 20,
@@ -7392,7 +7862,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7392
7862
  color: "var(--text-secondary)",
7393
7863
  marginBottom: 8
7394
7864
  }
7395
- }, "💡 Try these prompts to get a draft right away"), /* @__PURE__ */React__namespace.createElement("div", {
7865
+ }, t(LangKey.CREATE_PROMPT_HINT)), /* @__PURE__ */React__namespace.createElement("div", {
7396
7866
  style: {
7397
7867
  display: "flex",
7398
7868
  flexDirection: "column",
@@ -7546,8 +8016,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7546
8016
  messages: [],
7547
8017
  isSending: false,
7548
8018
  lang: lang,
7549
- tone: TONE_OPTIONS[2],
7550
- length: LENGTH_OPTIONS[2],
8019
+ tone: getToneOptions()[2],
8020
+ length: getLengthOptions()[2],
7551
8021
  conversationId: ""
7552
8022
  };
7553
8023
  return _this12;
@@ -7608,25 +8078,133 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7608
8078
  icon: /* @__PURE__ */React__namespace.createElement(Mail, {
7609
8079
  size: 16
7610
8080
  }),
7611
- title: "Auto-include source",
7612
- desc: "The email you are replying to is automatically added as context."
8081
+ title: t(LangKey.REPLY_FEATURE_1_TITLE),
8082
+ desc: t(LangKey.REPLY_FEATURE_1_DESC)
7613
8083
  }, {
7614
8084
  icon: /* @__PURE__ */React__namespace.createElement(CustomAiIcon, {
7615
8085
  size: 16,
7616
8086
  stroke: 2
7617
8087
  }),
7618
- title: "Add send history (optional)",
7619
- desc: "Use '+ Add' to pick past emails and reference their tone."
8088
+ title: t(LangKey.REPLY_FEATURE_2_TITLE),
8089
+ desc: t(LangKey.REPLY_FEATURE_2_DESC)
7620
8090
  }, {
7621
8091
  icon: /* @__PURE__ */React__namespace.createElement(MessageCircle, {
7622
8092
  size: 16
7623
8093
  }),
7624
- title: "Refine with conversation",
7625
- desc: "Get an AI draft, then adjust freely with chips or messages."
8094
+ title: t(LangKey.REPLY_FEATURE_3_TITLE),
8095
+ desc: t(LangKey.REPLY_FEATURE_3_DESC)
7626
8096
  }];
8097
+ var EmptyState = function EmptyState() {
8098
+ return /* @__PURE__ */React__namespace.createElement("div", {
8099
+ style: {
8100
+ flex: 1,
8101
+ minHeight: 0,
8102
+ overflowY: "auto",
8103
+ display: "flex",
8104
+ flexDirection: "column",
8105
+ paddingRight: 8,
8106
+ marginRight: -8,
8107
+ paddingBottom: 16,
8108
+ gap: 12
8109
+ }
8110
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8111
+ style: {
8112
+ textAlign: "center",
8113
+ marginTop: 8
8114
+ }
8115
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8116
+ style: {
8117
+ fontSize: 13,
8118
+ color: "var(--text-secondary)",
8119
+ lineHeight: 1.6
8120
+ }
8121
+ }, t(LangKey.REPLY_EMPTY_TITLE).split("\n").map(function (line, idx) {
8122
+ return /* @__PURE__ */React__namespace.createElement(React__namespace.Fragment, {
8123
+ key: idx
8124
+ }, line, /* @__PURE__ */React__namespace.createElement("br", null));
8125
+ }))), /* @__PURE__ */React__namespace.createElement("div", {
8126
+ style: {
8127
+ alignSelf: "center",
8128
+ width: 100,
8129
+ height: 100,
8130
+ borderRadius: "50%",
8131
+ background: "var(--primary-lighter)",
8132
+ display: "flex",
8133
+ alignItems: "center",
8134
+ justifyContent: "center",
8135
+ margin: "8px 0",
8136
+ color: "var(--primary-main)",
8137
+ flexShrink: 0
8138
+ }
8139
+ }, /* @__PURE__ */React__namespace.createElement(CustomAiIcon, {
8140
+ size: 44,
8141
+ stroke: 1.5
8142
+ })), /* @__PURE__ */React__namespace.createElement("div", {
8143
+ style: {
8144
+ textAlign: "center"
8145
+ }
8146
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8147
+ style: {
8148
+ fontSize: 13,
8149
+ color: "var(--text-secondary)",
8150
+ lineHeight: 1.6
8151
+ }
8152
+ }, t(LangKey.REPLY_EMPTY_GUIDE))), /* @__PURE__ */React__namespace.createElement("div", {
8153
+ style: {
8154
+ borderTop: "1px solid var(--border-light)",
8155
+ marginTop: 8,
8156
+ paddingTop: 16,
8157
+ display: "flex",
8158
+ flexDirection: "column",
8159
+ gap: 14
8160
+ }
8161
+ }, FEATURES.map(function (f, i) {
8162
+ return /* @__PURE__ */React__namespace.createElement("div", {
8163
+ key: i,
8164
+ style: {
8165
+ display: "flex",
8166
+ flexDirection: "row",
8167
+ alignItems: "flex-start",
8168
+ gap: 10
8169
+ }
8170
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8171
+ style: {
8172
+ width: 28,
8173
+ height: 28,
8174
+ borderRadius: "50%",
8175
+ background: "var(--primary-lighter)",
8176
+ color: "var(--primary-main)",
8177
+ display: "flex",
8178
+ alignItems: "center",
8179
+ justifyContent: "center",
8180
+ flexShrink: 0
8181
+ }
8182
+ }, f.icon), /* @__PURE__ */React__namespace.createElement("div", {
8183
+ style: {
8184
+ flex: 1,
8185
+ minWidth: 0
8186
+ }
8187
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8188
+ style: {
8189
+ fontSize: 13,
8190
+ fontWeight: 600,
8191
+ color: "var(--text-primary)"
8192
+ }
8193
+ }, f.title), /* @__PURE__ */React__namespace.createElement("div", {
8194
+ style: {
8195
+ fontSize: 12,
8196
+ color: "var(--text-secondary)",
8197
+ marginTop: 2,
8198
+ lineHeight: 1.5
8199
+ }
8200
+ }, f.desc)));
8201
+ })));
8202
+ };
7627
8203
  var SourceCard = function SourceCard(_ref30) {
7628
- var mail = _ref30.mail;
8204
+ var mail = _ref30.mail,
8205
+ onClick = _ref30.onClick;
7629
8206
  return /* @__PURE__ */React__namespace.createElement("div", {
8207
+ onClick: onClick,
7630
8208
  style: {
7631
8209
  border: "1px solid var(--border-light)",
7632
8210
  borderRadius: 8,
@@ -7634,7 +8212,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7634
8212
  display: "flex",
7635
8213
  gap: 8,
7636
8214
  alignItems: "flex-start",
7637
- background: "#fff"
8215
+ background: "#fff",
8216
+ cursor: onClick ? "pointer" : "default"
7638
8217
  }
7639
8218
  }, /* @__PURE__ */React__namespace.createElement("div", {
7640
8219
  style: {
@@ -7664,8 +8243,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7664
8243
  var SelectedChip = function SelectedChip(_ref31) {
7665
8244
  var index = _ref31.index,
7666
8245
  mail = _ref31.mail,
8246
+ _onClick = _ref31.onClick,
7667
8247
  onRemove = _ref31.onRemove;
7668
8248
  return /* @__PURE__ */React__namespace.createElement("div", {
8249
+ onClick: function onClick() {
8250
+ return _onClick(mail);
8251
+ },
7669
8252
  style: {
7670
8253
  display: "inline-flex",
7671
8254
  alignItems: "center",
@@ -7675,7 +8258,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7675
8258
  border: "1px solid var(--border-light)",
7676
8259
  background: "var(--primary-lighter)",
7677
8260
  fontSize: 12,
7678
- maxWidth: 160
8261
+ maxWidth: 160,
8262
+ cursor: "pointer"
7679
8263
  }
7680
8264
  }, /* @__PURE__ */React__namespace.createElement("span", {
7681
8265
  style: {
@@ -7700,8 +8284,9 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7700
8284
  }
7701
8285
  }, mail.subject || "(no subject)"), /* @__PURE__ */React__namespace.createElement("button", {
7702
8286
  type: "button",
7703
- onClick: function onClick() {
7704
- return onRemove(mail.mid);
8287
+ onClick: function onClick(e) {
8288
+ e.stopPropagation();
8289
+ onRemove(mail.mid);
7705
8290
  },
7706
8291
  style: {
7707
8292
  border: "none",
@@ -7715,22 +8300,20 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7715
8300
  }
7716
8301
  }, "×"));
7717
8302
  };
7718
- var EmptyState = function EmptyState(_ref32) {
8303
+ var ContextHeader = function ContextHeader(_ref32) {
7719
8304
  var sourceMail = _ref32.sourceMail,
7720
8305
  selectedMails = _ref32.selectedMails,
7721
8306
  onAddClick = _ref32.onAddClick,
7722
- onRemoveSelected = _ref32.onRemoveSelected;
8307
+ onSourceClick = _ref32.onSourceClick,
8308
+ onChipClick = _ref32.onChipClick,
8309
+ onRemoveChip = _ref32.onRemoveChip;
7723
8310
  return /* @__PURE__ */React__namespace.createElement("div", {
7724
8311
  style: {
7725
- flex: 1,
7726
- minHeight: 0,
7727
- overflowY: "auto",
7728
8312
  display: "flex",
7729
8313
  flexDirection: "column",
7730
- paddingRight: 8,
7731
- marginRight: -8,
7732
- paddingBottom: 16,
7733
- gap: 12
8314
+ gap: 12,
8315
+ paddingBottom: 12,
8316
+ marginBottom: 12
7734
8317
  }
7735
8318
  }, sourceMail && /* @__PURE__ */React__namespace.createElement("div", {
7736
8319
  style: {
@@ -7747,7 +8330,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7747
8330
  color: "var(--text-primary)",
7748
8331
  fontWeight: 600
7749
8332
  }
7750
- }, /* @__PURE__ */React__namespace.createElement("span", null, "Source context"), /* @__PURE__ */React__namespace.createElement("span", {
8333
+ }, /* @__PURE__ */React__namespace.createElement("span", null, t(LangKey.SOURCE_CONTEXT)), /* @__PURE__ */React__namespace.createElement("span", {
7751
8334
  style: {
7752
8335
  background: "var(--primary-main)",
7753
8336
  color: "var(--primary-contrasttext)",
@@ -7767,8 +8350,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7767
8350
  }
7768
8351
  }, /* @__PURE__ */React__namespace.createElement(Lock, {
7769
8352
  size: 11
7770
- }), " Auto")), /* @__PURE__ */React__namespace.createElement(SourceCard, {
7771
- mail: sourceMail
8353
+ }), " ", t(LangKey.AUTO))), /* @__PURE__ */React__namespace.createElement(SourceCard, {
8354
+ mail: sourceMail,
8355
+ onClick: function onClick() {
8356
+ return onSourceClick(sourceMail);
8357
+ }
7772
8358
  })), /* @__PURE__ */React__namespace.createElement("div", {
7773
8359
  style: {
7774
8360
  display: "flex",
@@ -7790,7 +8376,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7790
8376
  color: "var(--text-primary)",
7791
8377
  fontWeight: 600
7792
8378
  }
7793
- }, /* @__PURE__ */React__namespace.createElement("span", null, "Selected context"), /* @__PURE__ */React__namespace.createElement("span", {
8379
+ }, /* @__PURE__ */React__namespace.createElement("span", null, t(LangKey.SELECTED_CONTEXT)), /* @__PURE__ */React__namespace.createElement("span", {
7794
8380
  style: {
7795
8381
  background: "var(--background-softGrey)",
7796
8382
  color: "var(--text-primary)",
@@ -7805,7 +8391,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7805
8391
  className: "text-button primary"
7806
8392
  }, /* @__PURE__ */React__namespace.createElement(Plus, {
7807
8393
  size: 12
7808
- }), " Add")), selectedMails.length > 0 && /* @__PURE__ */React__namespace.createElement("div", {
8394
+ }), " ", t(LangKey.ADD))), selectedMails.length > 0 && /* @__PURE__ */React__namespace.createElement("div", {
7809
8395
  style: {
7810
8396
  display: "flex",
7811
8397
  flexWrap: "wrap",
@@ -7816,97 +8402,200 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7816
8402
  key: m.mid,
7817
8403
  index: i,
7818
8404
  mail: m,
7819
- onRemove: onRemoveSelected
8405
+ onClick: onChipClick,
8406
+ onRemove: onRemoveChip
7820
8407
  });
7821
- }))), /* @__PURE__ */React__namespace.createElement("div", {
8408
+ }))));
8409
+ };
8410
+ var LoadingCircular = function LoadingCircular(_ref33) {
8411
+ var _ref33$size = _ref33.size,
8412
+ size = _ref33$size === void 0 ? 40 : _ref33$size,
8413
+ _ref33$color = _ref33.color,
8414
+ color = _ref33$color === void 0 ? "var(--primary-main)" : _ref33$color,
8415
+ _ref33$thickness = _ref33.thickness,
8416
+ thickness = _ref33$thickness === void 0 ? 3.6 : _ref33$thickness;
8417
+ var radius = 20;
8418
+ var circumference = 2 * Math.PI * radius;
8419
+ return /* @__PURE__ */React.createElement("div", {
8420
+ className: "circular-container",
7822
8421
  style: {
7823
- textAlign: "center",
7824
- marginTop: 8
7825
- }
7826
- }, /* @__PURE__ */React__namespace.createElement("div", {
8422
+ width: size,
8423
+ height: size
8424
+ },
8425
+ role: "progressbar"
8426
+ }, /* @__PURE__ */React.createElement("svg", {
8427
+ className: "circular-svg",
8428
+ viewBox: "22 22 44 44"
8429
+ }, /* @__PURE__ */React.createElement("circle", {
8430
+ className: "circular-circle",
8431
+ cx: "44",
8432
+ cy: "44",
8433
+ r: radius,
8434
+ fill: "none",
8435
+ stroke: color,
8436
+ strokeWidth: thickness,
8437
+ strokeDasharray: circumference,
7827
8438
  style: {
7828
- fontSize: 13,
7829
- color: "var(--text-secondary)",
7830
- lineHeight: 1.6
8439
+ strokeDashoffset: circumference * 0.7
8440
+ // Độ dài của thanh loading
7831
8441
  }
7832
- }, "We'll draft a reply based on the received email.", /* @__PURE__ */React__namespace.createElement("br", null), "Add send history if you want to match the tone.")), /* @__PURE__ */React__namespace.createElement("div", {
7833
- style: {
7834
- alignSelf: "center",
7835
- width: 100,
7836
- height: 100,
7837
- borderRadius: "50%",
7838
- background: "var(--primary-lighter)",
8442
+ })));
8443
+ };
8444
+ var circularSize = {
8445
+ small: 28,
8446
+ medium: 40
8447
+ };
8448
+ var LoadingContainer = function LoadingContainer(_ref34) {
8449
+ var style = _ref34.style,
8450
+ _ref34$fullHeight = _ref34.fullHeight,
8451
+ fullHeight = _ref34$fullHeight === void 0 ? false : _ref34$fullHeight,
8452
+ _ref34$size = _ref34.size,
8453
+ size = _ref34$size === void 0 ? "medium" : _ref34$size,
8454
+ label = _ref34.label;
8455
+ return /* @__PURE__ */React.createElement("div", {
8456
+ style: __spreadValues({
7839
8457
  display: "flex",
7840
8458
  alignItems: "center",
7841
8459
  justifyContent: "center",
7842
- margin: "8px 0",
7843
- color: "var(--primary-main)",
7844
- flexShrink: 0
7845
- }
7846
- }, /* @__PURE__ */React__namespace.createElement(CustomAiIcon, {
7847
- size: 44,
7848
- stroke: 1.5
7849
- })), /* @__PURE__ */React__namespace.createElement("div", {
7850
- style: {
7851
- textAlign: "center"
7852
- }
7853
- }, /* @__PURE__ */React__namespace.createElement("div", {
7854
- style: {
7855
- fontSize: 13,
7856
- color: "var(--text-secondary)",
7857
- lineHeight: 1.6
7858
- }
7859
- }, "The source is auto-included. Adjust tone and length through conversation.")), /* @__PURE__ */React__namespace.createElement("div", {
7860
- style: {
7861
- borderTop: "1px solid var(--border-light)",
7862
- marginTop: 8,
7863
- paddingTop: 16,
7864
- display: "flex",
7865
- flexDirection: "column",
7866
- gap: 14
7867
- }
7868
- }, FEATURES.map(function (f, i) {
7869
- return /* @__PURE__ */React__namespace.createElement("div", {
7870
- key: i,
7871
- style: {
7872
- display: "flex",
7873
- flexDirection: "row",
7874
- alignItems: "flex-start",
7875
- gap: 10
7876
- }
7877
- }, /* @__PURE__ */React__namespace.createElement("div", {
7878
- style: {
7879
- width: 28,
7880
- height: 28,
7881
- borderRadius: "50%",
7882
- background: "var(--primary-lighter)",
7883
- color: "var(--primary-main)",
7884
- display: "flex",
7885
- alignItems: "center",
7886
- justifyContent: "center",
7887
- flexShrink: 0
7888
- }
7889
- }, f.icon), /* @__PURE__ */React__namespace.createElement("div", {
7890
- style: {
7891
- flex: 1,
7892
- minWidth: 0
8460
+ width: "100%",
8461
+ height: fullHeight ? "100%" : 350
8462
+ }, style)
8463
+ }, /* @__PURE__ */React.createElement(LoadingCircular, {
8464
+ size: circularSize[size]
8465
+ }), label && /* @__PURE__ */React.createElement("p", {
8466
+ color: "text.secondary",
8467
+ style: {
8468
+ marginTop: 16,
8469
+ fontSize: size === "small" ? 12 : 13
8470
+ }
8471
+ }, label));
8472
+ };
8473
+ var Pagination = /*#__PURE__*/function (_React__namespace$Com6) {
8474
+ function Pagination(props) {
8475
+ var _this15;
8476
+ _classCallCheck(this, Pagination);
8477
+ _this15 = _callSuper(this, Pagination, [props]);
8478
+ __publicField(_this15, "clamp", function (value) {
8479
+ var totalPages = _this15.props.totalPages;
8480
+ if (Number.isNaN(value)) return _this15.props.page;
8481
+ return Math.min(Math.max(1, Math.floor(value)), Math.max(1, totalPages));
8482
+ });
8483
+ __publicField(_this15, "handleInputChange", function (e) {
8484
+ _this15.setState({
8485
+ inputValue: e.target.value
8486
+ });
8487
+ });
8488
+ __publicField(_this15, "commit", function () {
8489
+ var next = _this15.clamp(parseInt(_this15.state.inputValue, 10));
8490
+ _this15.setState({
8491
+ inputValue: String(next)
8492
+ });
8493
+ if (next !== _this15.props.page) {
8494
+ _this15.props.onChangePage(next);
7893
8495
  }
7894
- }, /* @__PURE__ */React__namespace.createElement("div", {
7895
- style: {
7896
- fontSize: 13,
7897
- fontWeight: 600,
7898
- color: "var(--text-primary)"
8496
+ });
8497
+ __publicField(_this15, "handleKeyDown", function (e) {
8498
+ if (e.key === "Enter") {
8499
+ e.preventDefault();
8500
+ _this15.commit();
7899
8501
  }
7900
- }, f.title), /* @__PURE__ */React__namespace.createElement("div", {
7901
- style: {
7902
- fontSize: 12,
7903
- color: "var(--text-secondary)",
7904
- marginTop: 2,
7905
- lineHeight: 1.5
8502
+ });
8503
+ _this15.state = {
8504
+ inputValue: String(props.page)
8505
+ };
8506
+ return _this15;
8507
+ }
8508
+ _inherits(Pagination, _React__namespace$Com6);
8509
+ return _createClass(Pagination, [{
8510
+ key: "componentDidUpdate",
8511
+ value: function componentDidUpdate(prevProps) {
8512
+ if (prevProps.page !== this.props.page) {
8513
+ this.setState({
8514
+ inputValue: String(this.props.page)
8515
+ });
7906
8516
  }
7907
- }, f.desc)));
7908
- })));
7909
- };
8517
+ }
8518
+ }, {
8519
+ key: "render",
8520
+ value: function render() {
8521
+ var _this$props7 = this.props,
8522
+ total = _this$props7.total,
8523
+ page = _this$props7.page,
8524
+ totalPages = _this$props7.totalPages,
8525
+ onChangePage = _this$props7.onChangePage;
8526
+ var inputValue = this.state.inputValue;
8527
+ return /* @__PURE__ */React__namespace.createElement("div", {
8528
+ style: {
8529
+ display: "flex",
8530
+ alignItems: "center",
8531
+ justifyContent: "space-between",
8532
+ gap: 8,
8533
+ padding: "8px 0",
8534
+ marginTop: 8,
8535
+ borderTop: "1px solid var(--border-light)"
8536
+ }
8537
+ }, /* @__PURE__ */React__namespace.createElement("span", {
8538
+ style: {
8539
+ fontSize: 12,
8540
+ color: "var(--text-secondary)"
8541
+ }
8542
+ }, t(LangKey.PAGINATION_TOTAL), " ", total, " | ", t(LangKey.PAGINATION_PAGE_OF), " ", page, " / ", totalPages), /* @__PURE__ */React__namespace.createElement("div", {
8543
+ style: {
8544
+ display: "inline-flex",
8545
+ alignItems: "center",
8546
+ gap: 4
8547
+ }
8548
+ }, /* @__PURE__ */React__namespace.createElement("button", {
8549
+ type: "button",
8550
+ onClick: function onClick() {
8551
+ return page > 1 && onChangePage(page - 1);
8552
+ },
8553
+ disabled: page <= 1,
8554
+ className: "icon-button small"
8555
+ }, /* @__PURE__ */React__namespace.createElement(ChevronLeft, {
8556
+ size: 14
8557
+ })), /* @__PURE__ */React__namespace.createElement("button", {
8558
+ type: "button",
8559
+ onClick: function onClick() {
8560
+ return page < totalPages && onChangePage(page + 1);
8561
+ },
8562
+ disabled: page >= totalPages,
8563
+ className: "icon-button small"
8564
+ }, /* @__PURE__ */React__namespace.createElement(ChevronRight, {
8565
+ size: 14
8566
+ })), /* @__PURE__ */React__namespace.createElement("span", {
8567
+ style: {
8568
+ fontSize: 12,
8569
+ color: "var(--text-secondary)",
8570
+ marginLeft: 4
8571
+ }
8572
+ }, t(LangKey.PAGINATION_PAGE)), /* @__PURE__ */React__namespace.createElement("input", {
8573
+ type: "number",
8574
+ min: 1,
8575
+ max: Math.max(1, totalPages),
8576
+ value: inputValue,
8577
+ onChange: this.handleInputChange,
8578
+ onBlur: this.commit,
8579
+ onKeyDown: this.handleKeyDown,
8580
+ className: "pagination-input",
8581
+ style: {
8582
+ width: "".concat(Math.min(4, Math.max(1, inputValue.length || 1)) * 10 + 14, "px"),
8583
+ height: 24,
8584
+ padding: "0 6px 0 6px",
8585
+ borderRadius: 4,
8586
+ border: "1px solid var(--border-light)",
8587
+ background: "#fff",
8588
+ fontSize: 12,
8589
+ color: "var(--text-primary)",
8590
+ textAlign: "center",
8591
+ fontFamily: "inherit",
8592
+ outline: "none",
8593
+ MozAppearance: "textfield"
8594
+ }
8595
+ })));
8596
+ }
8597
+ }]);
8598
+ }(React__namespace.Component);
7910
8599
  var parseFromField = function parseFromField(raw) {
7911
8600
  var email = extractEmail(raw);
7912
8601
  var decoded = String(raw || "").replace(/&lt;/g, "<").replace(/&gt;/g, ">");
@@ -8053,15 +8742,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8053
8742
  }, _callee9);
8054
8743
  }));
8055
8744
  };
8056
- var PAGE_SIZE = 6;
8745
+ var PAGE_SIZE$1 = 6;
8057
8746
  var MAX_SELECTED = 5;
8058
- var MailListSelect = /*#__PURE__*/function (_React__namespace$Com6) {
8747
+ var MailListSelect = /*#__PURE__*/function (_React__namespace$Com7) {
8059
8748
  function MailListSelect(props) {
8060
- var _this15;
8749
+ var _this16;
8061
8750
  _classCallCheck(this, MailListSelect);
8062
- _this15 = _callSuper(this, MailListSelect, [props]);
8063
- __publicField(_this15, "loadPage", function (page) {
8064
- return __async(_this15, null, /*#__PURE__*/_regenerator().m(function _callee0() {
8751
+ _this16 = _callSuper(this, MailListSelect, [props]);
8752
+ __publicField(_this16, "loadPage", function (page) {
8753
+ return __async(_this16, null, /*#__PURE__*/_regenerator().m(function _callee0() {
8065
8754
  var _yield$fetchMailList, items, total;
8066
8755
  return _regenerator().w(function (_context0) {
8067
8756
  while (1) switch (_context0.n) {
@@ -8072,7 +8761,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8072
8761
  _context0.n = 1;
8073
8762
  return fetchMailList({
8074
8763
  page: page,
8075
- pageSize: PAGE_SIZE,
8764
+ pageSize: PAGE_SIZE$1,
8076
8765
  accountEmail: this.props.accountEmail
8077
8766
  });
8078
8767
  case 1:
@@ -8091,8 +8780,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8091
8780
  }, _callee0, this);
8092
8781
  }));
8093
8782
  });
8094
- __publicField(_this15, "toggleMid", function (mid) {
8095
- _this15.setState(function (prev) {
8783
+ __publicField(_this16, "toggleMid", function (mid) {
8784
+ _this16.setState(function (prev) {
8096
8785
  var isSelected = prev.selectedMids.includes(mid);
8097
8786
  if (isSelected) {
8098
8787
  return {
@@ -8109,44 +8798,39 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8109
8798
  };
8110
8799
  });
8111
8800
  });
8112
- __publicField(_this15, "toggleAll", function () {
8113
- var _this15$state = _this15.state,
8114
- items = _this15$state.items,
8115
- selectedMids = _this15$state.selectedMids;
8801
+ __publicField(_this16, "toggleAll", function () {
8802
+ var _this16$state = _this16.state,
8803
+ items = _this16$state.items,
8804
+ selectedMids = _this16$state.selectedMids;
8805
+ if (selectedMids.length >= MAX_SELECTED) {
8806
+ _this16.setState({
8807
+ selectedMids: []
8808
+ });
8809
+ return;
8810
+ }
8116
8811
  var pageMids = items.map(function (it) {
8117
8812
  return it.mid;
8118
8813
  });
8119
- var allSelected = pageMids.every(function (m) {
8120
- return selectedMids.includes(m);
8814
+ var merged = Array.from(/* @__PURE__ */new Set([].concat(_toConsumableArray(selectedMids), _toConsumableArray(pageMids)))).slice(0, MAX_SELECTED);
8815
+ _this16.setState({
8816
+ selectedMids: merged
8121
8817
  });
8122
- if (allSelected) {
8123
- _this15.setState({
8124
- selectedMids: selectedMids.filter(function (m) {
8125
- return !pageMids.includes(m);
8126
- })
8127
- });
8128
- } else {
8129
- var merged = Array.from(/* @__PURE__ */new Set([].concat(_toConsumableArray(selectedMids), _toConsumableArray(pageMids)))).slice(0, MAX_SELECTED);
8130
- _this15.setState({
8131
- selectedMids: merged
8132
- });
8133
- }
8134
8818
  });
8135
- __publicField(_this15, "clearAll", function () {
8136
- _this15.setState({
8819
+ __publicField(_this16, "clearAll", function () {
8820
+ _this16.setState({
8137
8821
  selectedMids: []
8138
8822
  });
8139
8823
  });
8140
- _this15.state = {
8824
+ _this16.state = {
8141
8825
  page: 1,
8142
8826
  total: 0,
8143
8827
  items: [],
8144
8828
  selectedMids: _toConsumableArray(props.initialSelected),
8145
8829
  isLoading: false
8146
8830
  };
8147
- return _this15;
8831
+ return _this16;
8148
8832
  }
8149
- _inherits(MailListSelect, _React__namespace$Com6);
8833
+ _inherits(MailListSelect, _React__namespace$Com7);
8150
8834
  return _createClass(MailListSelect, [{
8151
8835
  key: "componentDidMount",
8152
8836
  value: function componentDidMount() {
@@ -8155,75 +8839,31 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8155
8839
  }, {
8156
8840
  key: "renderPagination",
8157
8841
  value: function renderPagination() {
8158
- var _this16 = this;
8159
8842
  var _this$state5 = this.state,
8160
8843
  page = _this$state5.page,
8161
8844
  total = _this$state5.total;
8162
- var totalPages = Math.max(1, Math.ceil(total / PAGE_SIZE));
8163
- var pages = [];
8164
- for (var _i9 = 1; _i9 <= totalPages; _i9++) pages.push(_i9);
8165
- return /* @__PURE__ */React__namespace.createElement("div", {
8166
- style: {
8167
- display: "flex",
8168
- alignItems: "center",
8169
- justifyContent: "center",
8170
- gap: 4,
8171
- padding: "12px 0"
8172
- }
8173
- }, /* @__PURE__ */React__namespace.createElement("button", {
8174
- type: "button",
8175
- onClick: function onClick() {
8176
- return page > 1 && _this16.loadPage(page - 1);
8177
- },
8178
- disabled: page <= 1,
8179
- className: "icon-button small"
8180
- }, "‹"), pages.map(function (p) {
8181
- return /* @__PURE__ */React__namespace.createElement("button", {
8182
- key: p,
8183
- type: "button",
8184
- onClick: function onClick() {
8185
- return p !== page && _this16.loadPage(p);
8186
- },
8187
- style: {
8188
- minWidth: 28,
8189
- height: 28,
8190
- borderRadius: 4,
8191
- border: "none",
8192
- background: p === page ? "var(--primary-main)" : "transparent",
8193
- color: p === page ? "var(--primary-contrasttext)" : "var(--text-primary)",
8194
- cursor: "pointer",
8195
- fontSize: 12,
8196
- fontFamily: "inherit",
8197
- fontWeight: p === page ? 600 : 400
8198
- }
8199
- }, p);
8200
- }), /* @__PURE__ */React__namespace.createElement("button", {
8201
- type: "button",
8202
- onClick: function onClick() {
8203
- return page < totalPages && _this16.loadPage(page + 1);
8204
- },
8205
- disabled: page >= totalPages,
8206
- className: "icon-button small"
8207
- }, "›"));
8845
+ var totalPages = Math.max(1, Math.ceil(total / PAGE_SIZE$1));
8846
+ return /* @__PURE__ */React__namespace.createElement(Pagination, {
8847
+ total: total,
8848
+ page: page,
8849
+ totalPages: totalPages,
8850
+ onChangePage: this.loadPage
8851
+ });
8208
8852
  }
8209
8853
  }, {
8210
8854
  key: "render",
8211
8855
  value: function render() {
8212
8856
  var _this17 = this;
8213
- var _this$props7 = this.props,
8214
- onCancel = _this$props7.onCancel,
8215
- onConfirm = _this$props7.onConfirm;
8857
+ var _this$props8 = this.props,
8858
+ onCancel = _this$props8.onCancel,
8859
+ onConfirm = _this$props8.onConfirm,
8860
+ isConfirming = _this$props8.isConfirming;
8216
8861
  var _this$state6 = this.state,
8217
8862
  items = _this$state6.items,
8218
8863
  total = _this$state6.total,
8219
8864
  selectedMids = _this$state6.selectedMids,
8220
8865
  isLoading = _this$state6.isLoading;
8221
- var pageMids = items.map(function (it) {
8222
- return it.mid;
8223
- });
8224
- var allOnPageSelected = pageMids.length > 0 && pageMids.every(function (m) {
8225
- return selectedMids.includes(m);
8226
- });
8866
+ var isFull = selectedMids.length >= MAX_SELECTED;
8227
8867
  return /* @__PURE__ */React__namespace.createElement("div", {
8228
8868
  style: {
8229
8869
  display: "flex",
@@ -8243,7 +8883,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8243
8883
  }
8244
8884
  }, /* @__PURE__ */React__namespace.createElement(ArrowLeft, {
8245
8885
  size: 14
8246
- }), " Back"), /* @__PURE__ */React__namespace.createElement("div", {
8886
+ }), " ", t(LangKey.BACK)), /* @__PURE__ */React__namespace.createElement("div", {
8247
8887
  style: {
8248
8888
  marginTop: 8
8249
8889
  }
@@ -8253,13 +8893,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8253
8893
  fontWeight: 600,
8254
8894
  color: "var(--text-primary)"
8255
8895
  }
8256
- }, "Add context from receive history"), /* @__PURE__ */React__namespace.createElement("div", {
8896
+ }, t(LangKey.ADD_CONTEXT_TITLE)), /* @__PURE__ */React__namespace.createElement("div", {
8257
8897
  style: {
8258
8898
  fontSize: 12,
8259
8899
  color: "var(--text-secondary)",
8260
8900
  marginTop: 2
8261
8901
  }
8262
- }, "Select related emails to provide AI context.")), /* @__PURE__ */React__namespace.createElement("div", {
8902
+ }, t(LangKey.ADD_CONTEXT_DESC))), /* @__PURE__ */React__namespace.createElement("div", {
8263
8903
  style: {
8264
8904
  display: "flex",
8265
8905
  alignItems: "center",
@@ -8272,21 +8912,36 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8272
8912
  style: {
8273
8913
  display: "inline-flex",
8274
8914
  alignItems: "center",
8275
- gap: 6,
8915
+ gap: 8,
8276
8916
  fontSize: 12,
8277
- color: "var(--text-primary)",
8917
+ color: "var(--text-secondary)",
8278
8918
  cursor: "pointer"
8279
8919
  }
8280
8920
  }, /* @__PURE__ */React__namespace.createElement("input", {
8281
8921
  type: "checkbox",
8282
- checked: allOnPageSelected,
8922
+ checked: isFull,
8283
8923
  onChange: this.toggleAll
8284
- }), /* @__PURE__ */React__namespace.createElement("span", null, "Select all · ", total, " total")), /* @__PURE__ */React__namespace.createElement("span", {
8924
+ }), /* @__PURE__ */React__namespace.createElement("span", {
8925
+ style: {
8926
+ background: "var(--primary-main)",
8927
+ color: "var(--primary-contrasttext)",
8928
+ padding: "2px 8px",
8929
+ borderRadius: 999,
8930
+ fontWeight: 600
8931
+ }
8932
+ }, selectedMids.length, "/", MAX_SELECTED), /* @__PURE__ */React__namespace.createElement("span", null, t(LangKey.SELECTED_UP_TO), " ", MAX_SELECTED), selectedMids.length > 0 && /* @__PURE__ */React__namespace.createElement("button", {
8933
+ type: "button",
8934
+ onClick: function onClick(e) {
8935
+ e.preventDefault();
8936
+ _this17.clearAll();
8937
+ },
8938
+ className: "text-button primary"
8939
+ }, t(LangKey.CLEAR_ALL))), /* @__PURE__ */React__namespace.createElement("span", {
8285
8940
  style: {
8286
8941
  fontSize: 11,
8287
8942
  color: "var(--text-secondary)"
8288
8943
  }
8289
- }, "Sort: latest")), /* @__PURE__ */React__namespace.createElement("div", {
8944
+ }, t(LangKey.SORT_LATEST))), /* @__PURE__ */React__namespace.createElement("div", {
8290
8945
  style: {
8291
8946
  flex: 1,
8292
8947
  minHeight: 0,
@@ -8294,21 +8949,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8294
8949
  paddingRight: 8,
8295
8950
  marginRight: -8
8296
8951
  }
8297
- }, isLoading ? /* @__PURE__ */React__namespace.createElement("div", {
8298
- style: {
8299
- padding: 24,
8300
- textAlign: "center",
8301
- color: "var(--text-secondary)",
8302
- fontSize: 12
8303
- }
8304
- }, "Loading...") : items.length === 0 ? /* @__PURE__ */React__namespace.createElement("div", {
8952
+ }, isLoading ? /* @__PURE__ */React__namespace.createElement(LoadingContainer, {
8953
+ fullHeight: true,
8954
+ size: "small"
8955
+ }) : items.length === 0 ? /* @__PURE__ */React__namespace.createElement("div", {
8305
8956
  style: {
8306
8957
  padding: 24,
8307
8958
  textAlign: "center",
8308
8959
  color: "var(--text-secondary)",
8309
8960
  fontSize: 12
8310
8961
  }
8311
- }, "No emails found.") : items.map(function (it) {
8962
+ }, t(LangKey.NO_EMAILS_FOUND)) : items.map(function (it) {
8312
8963
  var isChecked = selectedMids.includes(it.mid);
8313
8964
  var disabled = !isChecked && selectedMids.length >= MAX_SELECTED;
8314
8965
  return /* @__PURE__ */React__namespace.createElement("label", {
@@ -8387,44 +9038,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8387
9038
  }
8388
9039
  }, it.from_name, it.from_addr ? " <".concat(it.from_addr, ">") : "", it.preview ? " \xB7 ".concat(it.preview) : "")));
8389
9040
  }), !isLoading && items.length > 0 && this.renderPagination()), /* @__PURE__ */React__namespace.createElement("div", {
8390
- style: {
8391
- display: "flex",
8392
- alignItems: "center",
8393
- justifyContent: "space-between",
8394
- paddingTop: 12,
8395
- borderTop: "1px solid var(--border-light)",
8396
- marginTop: 8,
8397
- gap: 8
8398
- }
8399
- }, /* @__PURE__ */React__namespace.createElement("div", {
8400
- style: {
8401
- fontSize: 12,
8402
- color: "var(--text-secondary)",
8403
- display: "inline-flex",
8404
- alignItems: "center",
8405
- gap: 8
8406
- }
8407
- }, /* @__PURE__ */React__namespace.createElement("span", {
8408
- style: {
8409
- background: "var(--primary-main)",
8410
- color: "var(--primary-contrasttext)",
8411
- padding: "2px 8px",
8412
- borderRadius: 999,
8413
- fontWeight: 600
8414
- }
8415
- }, selectedMids.length, "/", MAX_SELECTED), /* @__PURE__ */React__namespace.createElement("span", null, "selected · up to ", MAX_SELECTED), selectedMids.length > 0 && /* @__PURE__ */React__namespace.createElement("button", {
8416
- type: "button",
8417
- onClick: this.clearAll,
8418
- style: {
8419
- border: "none",
8420
- background: "transparent",
8421
- color: "var(--primary-main)",
8422
- cursor: "pointer",
8423
- fontSize: 12,
8424
- padding: 0,
8425
- fontFamily: "inherit"
8426
- }
8427
- }, "Clear all"))), /* @__PURE__ */React__namespace.createElement("div", {
8428
9041
  style: {
8429
9042
  display: "flex",
8430
9043
  gap: 8,
@@ -8444,9 +9057,9 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8444
9057
  fontSize: 13,
8445
9058
  fontFamily: "inherit"
8446
9059
  }
8447
- }, "Cancel"), /* @__PURE__ */React__namespace.createElement("button", {
9060
+ }, t(LangKey.CANCEL)), /* @__PURE__ */React__namespace.createElement("button", {
8448
9061
  type: "button",
8449
- disabled: selectedMids.length === 0,
9062
+ disabled: selectedMids.length === 0 || isConfirming,
8450
9063
  onClick: function onClick() {
8451
9064
  return onConfirm(selectedMids);
8452
9065
  },
@@ -8455,25 +9068,174 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8455
9068
  padding: "10px 12px",
8456
9069
  borderRadius: 8,
8457
9070
  border: "none",
8458
- background: selectedMids.length === 0 ? "var(--primary-lighter)" : "var(--primary-main)",
9071
+ background: selectedMids.length === 0 || isConfirming ? "var(--primary-lighter)" : "var(--primary-main)",
8459
9072
  color: "var(--primary-contrasttext)",
8460
- cursor: selectedMids.length === 0 ? "not-allowed" : "pointer",
9073
+ cursor: selectedMids.length === 0 || isConfirming ? "not-allowed" : "pointer",
8461
9074
  fontSize: 13,
8462
9075
  fontWeight: 600,
9076
+ fontFamily: "inherit",
9077
+ display: "inline-flex",
9078
+ alignItems: "center",
9079
+ justifyContent: "center",
9080
+ gap: 8
9081
+ }
9082
+ }, isConfirming && /* @__PURE__ */React__namespace.createElement(LoadingCircular, {
9083
+ size: 16,
9084
+ color: "var(--primary-contrasttext)"
9085
+ }), /* @__PURE__ */React__namespace.createElement("span", null, t(LangKey.ADD), " ", selectedMids.length > 0 ? "".concat(selectedMids.length, " ") : "", t(LangKey.ADD_AS_CONTEXT)))));
9086
+ }
9087
+ }]);
9088
+ }(React__namespace.Component);
9089
+ var BaseModal = /*#__PURE__*/function (_React__namespace$Com8) {
9090
+ function BaseModal() {
9091
+ var _this18;
9092
+ _classCallCheck(this, BaseModal);
9093
+ _this18 = _callSuper(this, BaseModal, arguments);
9094
+ __publicField(_this18, "handleKeyDown", function (e) {
9095
+ if (e.key === "Escape" && _this18.props.isOpen) _this18.props.onClose();
9096
+ });
9097
+ return _this18;
9098
+ }
9099
+ _inherits(BaseModal, _React__namespace$Com8);
9100
+ return _createClass(BaseModal, [{
9101
+ key: "componentDidMount",
9102
+ value: function componentDidMount() {
9103
+ document.addEventListener("keydown", this.handleKeyDown);
9104
+ }
9105
+ }, {
9106
+ key: "componentWillUnmount",
9107
+ value: function componentWillUnmount() {
9108
+ document.removeEventListener("keydown", this.handleKeyDown);
9109
+ }
9110
+ }, {
9111
+ key: "render",
9112
+ value: function render() {
9113
+ var _this$props9 = this.props,
9114
+ isOpen = _this$props9.isOpen,
9115
+ onClose = _this$props9.onClose,
9116
+ header = _this$props9.header,
9117
+ children = _this$props9.children,
9118
+ _this$props9$maxWidth = _this$props9.maxWidth,
9119
+ maxWidth = _this$props9$maxWidth === void 0 ? 600 : _this$props9$maxWidth;
9120
+ if (!isOpen) return null;
9121
+ return ReactDOM__namespace.createPortal(/* @__PURE__ */React__namespace.createElement("div", {
9122
+ onClick: onClose,
9123
+ style: {
9124
+ position: "fixed",
9125
+ inset: 0,
9126
+ background: "rgba(0, 0, 0, 0.1)",
9127
+ display: "flex",
9128
+ alignItems: "center",
9129
+ justifyContent: "center",
9130
+ zIndex: 1100,
9131
+ padding: 16
9132
+ }
9133
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9134
+ onClick: function onClick(e) {
9135
+ return e.stopPropagation();
9136
+ },
9137
+ style: {
9138
+ background: "#fff",
9139
+ borderRadius: 12,
9140
+ maxWidth: maxWidth,
9141
+ width: "100%",
9142
+ maxHeight: "80vh",
9143
+ display: "flex",
9144
+ flexDirection: "column",
9145
+ boxShadow: "0 10px 40px rgba(0, 0, 0, 0.15)",
9146
+ overflow: "hidden",
8463
9147
  fontFamily: "inherit"
8464
9148
  }
8465
- }, "Add ", selectedMids.length > 0 ? "".concat(selectedMids.length, " ") : "", "as context →")));
9149
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9150
+ style: {
9151
+ display: "flex",
9152
+ alignItems: "flex-start",
9153
+ gap: 8,
9154
+ padding: "16px 16px 12px",
9155
+ borderBottom: "1px solid var(--border-light)"
9156
+ }
9157
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9158
+ style: {
9159
+ flex: 1,
9160
+ minWidth: 0
9161
+ }
9162
+ }, header), /* @__PURE__ */React__namespace.createElement("button", {
9163
+ type: "button",
9164
+ onClick: onClose,
9165
+ className: "icon-button small"
9166
+ }, /* @__PURE__ */React__namespace.createElement(X, {
9167
+ size: 16
9168
+ }))), /* @__PURE__ */React__namespace.createElement("div", {
9169
+ style: {
9170
+ flex: 1,
9171
+ minHeight: 0,
9172
+ overflowY: "auto",
9173
+ padding: 16,
9174
+ fontSize: 13,
9175
+ lineHeight: 1.6,
9176
+ color: "var(--text-primary)"
9177
+ }
9178
+ }, children))), document.body);
9179
+ }
9180
+ }]);
9181
+ }(React__namespace.Component);
9182
+ var renderMarkdown = function renderMarkdown(md) {
9183
+ try {
9184
+ return marked.parse(md, {
9185
+ async: false
9186
+ });
9187
+ } catch (e) {
9188
+ return md;
9189
+ }
9190
+ };
9191
+ var MailHeader = function MailHeader(_ref35) {
9192
+ var mail = _ref35.mail;
9193
+ return /* @__PURE__ */React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */React__namespace.createElement("div", {
9194
+ style: {
9195
+ fontSize: 14,
9196
+ fontWeight: 600,
9197
+ color: "var(--text-primary)",
9198
+ whiteSpace: "nowrap",
9199
+ overflow: "hidden",
9200
+ textOverflow: "ellipsis"
8466
9201
  }
8467
- }]);
8468
- }(React__namespace.Component);
8469
- var ReplyPanel = /*#__PURE__*/function (_React__namespace$Com7) {
9202
+ }, mail.subject || t(LangKey.NO_SUBJECT)), /* @__PURE__ */React__namespace.createElement("div", {
9203
+ style: {
9204
+ fontSize: 12,
9205
+ color: "var(--text-secondary)",
9206
+ marginTop: 2,
9207
+ whiteSpace: "nowrap",
9208
+ overflow: "hidden",
9209
+ textOverflow: "ellipsis"
9210
+ }
9211
+ }, mail.from_name, mail.from_addr ? " <".concat(mail.from_addr, ">") : "", mail.date ? " \xB7 ".concat(mail.date) : ""));
9212
+ };
9213
+ var ContextPreviewModal = function ContextPreviewModal(_ref36) {
9214
+ var preview = _ref36.preview,
9215
+ onClose = _ref36.onClose;
9216
+ var html2 = preview ? preview.mode === "html" ? preview.mail.contents || "" : renderMarkdown(preview.mail.ai_contents || "") : "";
9217
+ return /* @__PURE__ */React__namespace.createElement(BaseModal, {
9218
+ isOpen: !!preview,
9219
+ onClose: onClose,
9220
+ header: preview && /* @__PURE__ */React__namespace.createElement(MailHeader, {
9221
+ mail: preview.mail
9222
+ }),
9223
+ maxWidth: (preview == null ? void 0 : preview.mode) === "html" ? 900 : 600
9224
+ }, preview && /* @__PURE__ */React__namespace.createElement("div", {
9225
+ className: "chat-ai-context-preview",
9226
+ dangerouslySetInnerHTML: {
9227
+ __html: html2
9228
+ }
9229
+ }));
9230
+ };
9231
+ var ReplyPanel = /*#__PURE__*/function (_React__namespace$Com9) {
8470
9232
  function ReplyPanel(props) {
8471
- var _this18;
9233
+ var _this19;
8472
9234
  _classCallCheck(this, ReplyPanel);
8473
- _this18 = _callSuper(this, ReplyPanel, [props]);
8474
- __publicField(_this18, "rootRef");
8475
- __publicField(_this18, "loadSourceMail", function () {
8476
- return __async(_this18, null, /*#__PURE__*/_regenerator().m(function _callee1() {
9235
+ _this19 = _callSuper(this, ReplyPanel, [props]);
9236
+ __publicField(_this19, "rootRef");
9237
+ __publicField(_this19, "loadSourceMail", function () {
9238
+ return __async(_this19, null, /*#__PURE__*/_regenerator().m(function _callee1() {
8477
9239
  var sourceMid, view;
8478
9240
  return _regenerator().w(function (_context1) {
8479
9241
  while (1) switch (_context1.n) {
@@ -8517,18 +9279,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8517
9279
  }, _callee1, this);
8518
9280
  }));
8519
9281
  });
8520
- __publicField(_this18, "handleAddClick", function () {
8521
- _this18.setState({
9282
+ __publicField(_this19, "handleAddClick", function () {
9283
+ _this19.setState({
8522
9284
  view: "list"
8523
9285
  });
8524
9286
  });
8525
- __publicField(_this18, "handleListCancel", function () {
8526
- _this18.setState({
8527
- view: _this18.state.messages.length > 0 ? "chat" : "empty"
9287
+ __publicField(_this19, "handleListCancel", function () {
9288
+ _this19.setState({
9289
+ view: _this19.state.messages.length > 0 ? "chat" : "empty"
8528
9290
  });
8529
9291
  });
8530
- __publicField(_this18, "handleListConfirm", function (mids) {
8531
- return __async(_this18, null, /*#__PURE__*/_regenerator().m(function _callee10() {
9292
+ __publicField(_this19, "handleListConfirm", function (mids) {
9293
+ return __async(_this19, null, /*#__PURE__*/_regenerator().m(function _callee10() {
8532
9294
  var selectedMails;
8533
9295
  return _regenerator().w(function (_context10) {
8534
9296
  while (1) switch (_context10.n) {
@@ -8551,21 +9313,42 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8551
9313
  }, _callee10, this);
8552
9314
  }));
8553
9315
  });
8554
- __publicField(_this18, "handleRemoveSelected", function (mid) {
8555
- _this18.setState({
8556
- selectedMails: _this18.state.selectedMails.filter(function (m) {
9316
+ __publicField(_this19, "handleRemoveSelected", function (mid) {
9317
+ _this19.setState({
9318
+ selectedMails: _this19.state.selectedMails.filter(function (m) {
8557
9319
  return m.mid !== mid;
8558
9320
  })
8559
9321
  });
8560
9322
  });
8561
- __publicField(_this18, "handleMessageChange", function (value) {
8562
- _this18.setState({
9323
+ __publicField(_this19, "handlePreviewSelected", function (mail) {
9324
+ _this19.setState({
9325
+ preview: {
9326
+ mail: mail,
9327
+ mode: "ai"
9328
+ }
9329
+ });
9330
+ });
9331
+ __publicField(_this19, "handlePreviewSource", function (mail) {
9332
+ _this19.setState({
9333
+ preview: {
9334
+ mail: mail,
9335
+ mode: "html"
9336
+ }
9337
+ });
9338
+ });
9339
+ __publicField(_this19, "handlePreviewClose", function () {
9340
+ _this19.setState({
9341
+ preview: null
9342
+ });
9343
+ });
9344
+ __publicField(_this19, "handleMessageChange", function (value) {
9345
+ _this19.setState({
8563
9346
  message: value
8564
9347
  });
8565
9348
  });
8566
- __publicField(_this18, "handleSubmit", function () {
8567
- return __async(_this18, null, /*#__PURE__*/_regenerator().m(function _callee11() {
8568
- var _this19 = this;
9349
+ __publicField(_this19, "handleSubmit", function () {
9350
+ return __async(_this19, null, /*#__PURE__*/_regenerator().m(function _callee11() {
9351
+ var _this20 = this;
8569
9352
  var type, _this$state7, message, messages, lang, tone, length, conversationId, sourceMail, selectedMails, newId, newMessage, params, setContent, setIsLoading, setConversationId;
8570
9353
  return _regenerator().w(function (_context11) {
8571
9354
  while (1) switch (_context11.n) {
@@ -8612,7 +9395,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8612
9395
  if (length) params.length = length.value;
8613
9396
  if (conversationId) params.conversation_id = conversationId;
8614
9397
  setContent = function setContent(nContent) {
8615
- _this19.setState(function (prevState) {
9398
+ _this20.setState(function (prevState) {
8616
9399
  return {
8617
9400
  messages: prevState.messages.map(function (m) {
8618
9401
  return m.id === newId ? __spreadProps(__spreadValues({}, m), {
@@ -8626,7 +9409,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8626
9409
  });
8627
9410
  };
8628
9411
  setIsLoading = function setIsLoading(loading) {
8629
- _this19.setState(function (prevState) {
9412
+ _this20.setState(function (prevState) {
8630
9413
  return {
8631
9414
  messages: prevState.messages.map(function (m) {
8632
9415
  return m.id === newId ? __spreadProps(__spreadValues({}, m), {
@@ -8637,7 +9420,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8637
9420
  });
8638
9421
  };
8639
9422
  setConversationId = function setConversationId(id) {
8640
- _this19.setState({
9423
+ _this20.setState({
8641
9424
  conversationId: id
8642
9425
  });
8643
9426
  };
@@ -8657,360 +9440,713 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8657
9440
  }, _callee11, this);
8658
9441
  }));
8659
9442
  });
8660
- __publicField(_this18, "setLang", function (lang) {
8661
- return _this18.setState({
9443
+ __publicField(_this19, "setLang", function (lang) {
9444
+ return _this19.setState({
8662
9445
  lang: lang
8663
9446
  });
8664
9447
  });
8665
- __publicField(_this18, "setTone", function (tone) {
8666
- return _this18.setState({
9448
+ __publicField(_this19, "setTone", function (tone) {
9449
+ return _this19.setState({
8667
9450
  tone: tone
8668
9451
  });
8669
9452
  });
8670
- __publicField(_this18, "setLength", function (length) {
8671
- return _this18.setState({
9453
+ __publicField(_this19, "setLength", function (length) {
9454
+ return _this19.setState({
8672
9455
  length: length
8673
9456
  });
8674
9457
  });
8675
- _this18.rootRef = React__namespace.createRef();
9458
+ _this19.rootRef = React__namespace.createRef();
8676
9459
  var lang = (AI_LANG_FLAGS == null ? void 0 : AI_LANG_FLAGS.find(function (_item) {
8677
9460
  return (_item == null ? void 0 : _item.value) === (props == null ? void 0 : props.defaultLang);
8678
9461
  })) || AI_LANG_FLAGS[0];
8679
- _this18.state = {
9462
+ _this19.state = {
8680
9463
  view: "empty",
8681
9464
  sourceMail: null,
8682
9465
  accountEmail: "",
8683
9466
  selectedMails: [],
8684
9467
  isLoadingSource: false,
8685
9468
  isLoadingSelected: false,
9469
+ preview: null,
8686
9470
  message: "",
8687
9471
  messages: [],
8688
9472
  isSending: false,
8689
9473
  lang: lang,
8690
- tone: TONE_OPTIONS[2],
8691
- length: LENGTH_OPTIONS[2],
9474
+ tone: getToneOptions()[2],
9475
+ length: getLengthOptions()[2],
8692
9476
  conversationId: ""
8693
9477
  };
8694
- return _this18;
9478
+ return _this19;
8695
9479
  }
8696
- _inherits(ReplyPanel, _React__namespace$Com7);
9480
+ _inherits(ReplyPanel, _React__namespace$Com9);
8697
9481
  return _createClass(ReplyPanel, [{
8698
9482
  key: "componentDidMount",
8699
9483
  value: function componentDidMount() {
8700
9484
  this.loadSourceMail();
8701
9485
  }
8702
9486
  }, {
8703
- key: "renderContextHeader",
8704
- value: function renderContextHeader() {
8705
- var _this20 = this;
9487
+ key: "render",
9488
+ value: function render() {
9489
+ var _this$props0 = this.props,
9490
+ onApply = _this$props0.onApply,
9491
+ getEditorContent = _this$props0.getEditorContent;
8706
9492
  var _this$state8 = this.state,
9493
+ view = _this$state8.view,
8707
9494
  sourceMail = _this$state8.sourceMail,
8708
- selectedMails = _this$state8.selectedMails;
9495
+ accountEmail = _this$state8.accountEmail,
9496
+ selectedMails = _this$state8.selectedMails,
9497
+ message = _this$state8.message,
9498
+ messages = _this$state8.messages,
9499
+ isSending = _this$state8.isSending,
9500
+ lang = _this$state8.lang,
9501
+ tone = _this$state8.tone,
9502
+ length = _this$state8.length,
9503
+ isLoadingSelected = _this$state8.isLoadingSelected,
9504
+ preview = _this$state8.preview;
9505
+ if (view === "list") {
9506
+ return /* @__PURE__ */React__namespace.createElement(MailListSelect, {
9507
+ accountEmail: accountEmail,
9508
+ initialSelected: selectedMails.map(function (m) {
9509
+ return m.mid;
9510
+ }),
9511
+ isConfirming: isLoadingSelected,
9512
+ onCancel: this.handleListCancel,
9513
+ onConfirm: this.handleListConfirm
9514
+ });
9515
+ }
8709
9516
  return /* @__PURE__ */React__namespace.createElement("div", {
9517
+ ref: this.rootRef,
8710
9518
  style: {
8711
9519
  display: "flex",
9520
+ height: "100%",
9521
+ padding: 16,
8712
9522
  flexDirection: "column",
8713
- gap: 8,
8714
- paddingBottom: 12,
8715
- borderBottom: "1px solid var(--border-light)",
8716
- marginBottom: 12
8717
- }
8718
- }, sourceMail && /* @__PURE__ */React__namespace.createElement("div", {
8719
- style: {
8720
- display: "flex",
8721
- flexDirection: "column",
8722
- gap: 4
8723
- }
8724
- }, /* @__PURE__ */React__namespace.createElement("div", {
8725
- style: {
8726
- display: "flex",
8727
- alignItems: "center",
8728
- gap: 6,
8729
- fontSize: 12,
8730
- fontWeight: 600,
8731
- color: "var(--text-primary)"
8732
- }
8733
- }, /* @__PURE__ */React__namespace.createElement("span", null, "Source context"), /* @__PURE__ */React__namespace.createElement("span", {
8734
- style: {
8735
- background: "var(--primary-main)",
8736
- color: "var(--primary-contrasttext)",
8737
- fontSize: 10,
8738
- padding: "1px 6px",
8739
- borderRadius: 999
8740
- }
8741
- }, "1"), /* @__PURE__ */React__namespace.createElement("span", {
8742
- style: {
8743
- display: "inline-flex",
8744
- alignItems: "center",
8745
- gap: 2,
8746
- fontSize: 11,
8747
- color: "var(--text-secondary)"
9523
+ background: "#fff",
9524
+ fontFamily: "inherit",
9525
+ boxSizing: "border-box"
8748
9526
  }
8749
- }, /* @__PURE__ */React__namespace.createElement(Lock, {
8750
- size: 11
8751
- }), " Auto")), /* @__PURE__ */React__namespace.createElement("div", {
9527
+ }, /* @__PURE__ */React__namespace.createElement(ContextHeader, {
9528
+ sourceMail: sourceMail,
9529
+ selectedMails: selectedMails,
9530
+ onAddClick: this.handleAddClick,
9531
+ onSourceClick: this.handlePreviewSource,
9532
+ onChipClick: this.handlePreviewSelected,
9533
+ onRemoveChip: this.handleRemoveSelected
9534
+ }), view === "chat" ? /* @__PURE__ */React__namespace.createElement(ChatList, {
9535
+ items: messages,
9536
+ onApply: onApply,
9537
+ getEditorContent: getEditorContent
9538
+ }) : /* @__PURE__ */React__namespace.createElement(EmptyState, null), isLoadingSelected && /* @__PURE__ */React__namespace.createElement("div", {
8752
9539
  style: {
8753
9540
  fontSize: 12,
8754
9541
  color: "var(--text-secondary)",
8755
- whiteSpace: "nowrap",
8756
- overflow: "hidden",
8757
- textOverflow: "ellipsis"
8758
- }
8759
- }, sourceMail.subject, " ·", " ", /* @__PURE__ */React__namespace.createElement("span", {
8760
- style: {
8761
- color: "var(--text-primary)"
8762
- }
8763
- }, sourceMail.from_name))), /* @__PURE__ */React__namespace.createElement("div", {
8764
- style: {
8765
- display: "flex",
8766
- flexDirection: "column",
8767
- gap: 6
8768
- }
8769
- }, /* @__PURE__ */React__namespace.createElement("div", {
8770
- style: {
8771
- display: "flex",
8772
- alignItems: "center",
8773
- justifyContent: "space-between"
8774
- }
8775
- }, /* @__PURE__ */React__namespace.createElement("div", {
8776
- style: {
8777
- display: "flex",
8778
- alignItems: "center",
8779
- gap: 6,
8780
- fontSize: 12,
8781
- fontWeight: 600,
8782
- color: "var(--text-primary)"
8783
- }
8784
- }, /* @__PURE__ */React__namespace.createElement("span", null, "Selected context"), /* @__PURE__ */React__namespace.createElement("span", {
8785
- style: {
8786
- background: "var(--background-softGrey)",
8787
- color: "var(--text-primary)",
8788
- fontSize: 10,
8789
- padding: "1px 6px",
8790
- borderRadius: 999
9542
+ padding: 8,
9543
+ textAlign: "center"
8791
9544
  }
8792
- }, selectedMails.length)), /* @__PURE__ */React__namespace.createElement("button", {
8793
- type: "button",
8794
- onClick: this.handleAddClick,
8795
- className: "text-button primary"
8796
- }, /* @__PURE__ */React__namespace.createElement(Plus, {
8797
- size: 12
8798
- }), " Add")), selectedMails.length > 0 && /* @__PURE__ */React__namespace.createElement("div", {
9545
+ }, t(LangKey.REPLY_LOADING_CONTEXT)), /* @__PURE__ */React__namespace.createElement(ChatInput, {
9546
+ message: message,
9547
+ onMessageChange: this.handleMessageChange,
9548
+ onSubmit: this.handleSubmit,
9549
+ isSending: isSending,
9550
+ lang: lang,
9551
+ setLang: this.setLang,
9552
+ tone: tone,
9553
+ setTone: this.setTone,
9554
+ length: length,
9555
+ setLength: this.setLength,
9556
+ parentRef: this.rootRef,
9557
+ placeholder: t(LangKey.CHAT_INPUT_PLACEHOLDER_REPLY)
9558
+ }), /* @__PURE__ */React__namespace.createElement(ContextPreviewModal, {
9559
+ preview: preview,
9560
+ onClose: this.handlePreviewClose
9561
+ }));
9562
+ }
9563
+ }]);
9564
+ }(React__namespace.Component);
9565
+ var ChatAIDraft = function ChatAIDraft(props) {
9566
+ var _a2 = props,
9567
+ _a2$type = _a2.type,
9568
+ type = _a2$type === void 0 ? "new" : _a2$type,
9569
+ sourceMid = _a2.sourceMid,
9570
+ userLang = _a2.userLang,
9571
+ rest = __objRest(_a2, ["type", "sourceMid", "userLang"]);
9572
+ React__namespace.useEffect(function () {
9573
+ if (userLang) {
9574
+ SDKConfig.lang = userLang;
9575
+ }
9576
+ }, [userLang]);
9577
+ if ((type === "reply" || type === "forward") && sourceMid) {
9578
+ return /* @__PURE__ */React__namespace.createElement(ReplyPanel, __spreadValues({
9579
+ type: type,
9580
+ sourceMid: sourceMid
9581
+ }, rest));
9582
+ }
9583
+ return /* @__PURE__ */React__namespace.createElement(CreatePanel, __spreadValues({}, rest));
9584
+ };
9585
+ var TargetInfoBar = function TargetInfoBar(_ref37) {
9586
+ var targetName = _ref37.targetName,
9587
+ targetEmail = _ref37.targetEmail,
9588
+ currentLangLabel = _ref37.currentLangLabel,
9589
+ onOpenLang = _ref37.onOpenLang;
9590
+ return /* @__PURE__ */React__namespace.createElement("div", {
9591
+ style: {
9592
+ display: "flex",
9593
+ justifyContent: "space-between",
9594
+ alignItems: "center",
9595
+ marginBottom: 12,
9596
+ gap: 8
9597
+ }
9598
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9599
+ style: {
9600
+ fontSize: 13,
9601
+ display: "flex",
9602
+ flexWrap: "wrap",
9603
+ alignItems: "center",
9604
+ gap: 6,
9605
+ minWidth: 0
9606
+ }
9607
+ }, targetName && /* @__PURE__ */React__namespace.createElement("span", {
9608
+ style: {
9609
+ fontSize: 14,
9610
+ fontWeight: 600,
9611
+ color: "var(--text-primary)"
9612
+ }
9613
+ }, targetName), targetEmail && /* @__PURE__ */React__namespace.createElement("span", {
9614
+ style: {
9615
+ color: "var(--text-secondary)",
9616
+ whiteSpace: "nowrap",
9617
+ overflow: "hidden",
9618
+ textOverflow: "ellipsis"
9619
+ }
9620
+ }, targetEmail)), /* @__PURE__ */React__namespace.createElement("span", {
9621
+ style: {
9622
+ display: "inline-flex",
9623
+ alignItems: "center",
9624
+ gap: 6,
9625
+ flexShrink: 0
9626
+ }
9627
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9628
+ style: {
9629
+ fontSize: 13,
9630
+ color: "var(--text-primary)"
9631
+ }
9632
+ }, currentLangLabel), /* @__PURE__ */React__namespace.createElement("button", {
9633
+ type: "button",
9634
+ onClick: function onClick(e) {
9635
+ return onOpenLang(e.currentTarget);
9636
+ },
9637
+ className: "icon-button small"
9638
+ }, /* @__PURE__ */React__namespace.createElement(Globe, {
9639
+ size: 14
9640
+ }), /* @__PURE__ */React__namespace.createElement(ChevronDown, {
9641
+ size: 12,
9642
+ style: {
9643
+ marginLeft: 2
9644
+ }
9645
+ }))));
9646
+ };
9647
+ var PAGE_SIZE = 5;
9648
+ var FILTERS = [{
9649
+ value: "all",
9650
+ label: LangKey.ALL
9651
+ }, {
9652
+ value: "receive",
9653
+ label: LangKey.RECEIVED
9654
+ }, {
9655
+ value: "sent",
9656
+ label: LangKey.SENT
9657
+ }];
9658
+ var formatDate = function formatDate(raw) {
9659
+ if (!raw) return "";
9660
+ return String(raw).replace(/\//g, "-");
9661
+ };
9662
+ var parseDataLine = function parseDataLine(line) {
9663
+ if (!line) return null;
9664
+ var trimmed = line.trim();
9665
+ if (trimmed.startsWith("{")) {
9666
+ try {
9667
+ var parsed = JSON.parse(trimmed);
9668
+ return parsed;
9669
+ } catch (e) {}
9670
+ }
9671
+ var parts = trimmed.split("|").map(function (p) {
9672
+ return p.trim();
9673
+ });
9674
+ if (parts.length < 2) return null;
9675
+ var _parts = _toArray(parts),
9676
+ date = _parts[0],
9677
+ sig = _parts[1],
9678
+ _parts$ = _parts[2],
9679
+ subject = _parts$ === void 0 ? "" : _parts$,
9680
+ rest = _arrayLikeToArray(_parts).slice(3);
9681
+ var messages = rest.join(" | ");
9682
+ var direction = sig === "out" ? "sent" : "receive";
9683
+ return {
9684
+ date: date,
9685
+ sig: sig,
9686
+ direction: direction,
9687
+ direction_label: direction === "sent" ? LangKey.SENT : LangKey.RECEIVED,
9688
+ subject: subject,
9689
+ messages: messages
9690
+ };
9691
+ };
9692
+ var findLangLabel = function findLangLabel(lang, langList) {
9693
+ var found = langList == null ? void 0 : langList.find(function (l) {
9694
+ return l.value === lang;
9695
+ });
9696
+ if (found) return found.label;
9697
+ return lang === "ko" ? "한국어" : lang;
9698
+ };
9699
+ var FilterTabs = function FilterTabs(_ref38) {
9700
+ var mailtype = _ref38.mailtype,
9701
+ onChangeFilter = _ref38.onChangeFilter;
9702
+ return /* @__PURE__ */React__namespace.createElement("div", {
9703
+ style: {
9704
+ display: "flex",
9705
+ justifyContent: "space-between",
9706
+ alignItems: "center",
9707
+ marginBottom: 12,
9708
+ gap: 8
9709
+ }
9710
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9711
+ style: {
9712
+ fontSize: 13,
9713
+ color: "var(--text-secondary)"
9714
+ }
9715
+ }, t(LangKey.SUMMARY_WARNING)), /* @__PURE__ */React__namespace.createElement("div", {
9716
+ style: {
9717
+ display: "inline-flex",
9718
+ background: "var(--background-softGrey)",
9719
+ borderRadius: 6,
9720
+ padding: 2,
9721
+ flexShrink: 0
9722
+ }
9723
+ }, FILTERS.map(function (f) {
9724
+ var isActive = mailtype === f.value;
9725
+ return /* @__PURE__ */React__namespace.createElement("button", {
9726
+ key: f.value,
9727
+ type: "button",
9728
+ onClick: function onClick() {
9729
+ return onChangeFilter(f.value);
9730
+ },
9731
+ style: {
9732
+ border: "none",
9733
+ background: isActive ? "var(--primary-main)" : "transparent",
9734
+ color: isActive ? "var(--primary-contrasttext)" : "var(--text-primary)",
9735
+ fontSize: 12,
9736
+ fontWeight: isActive ? 600 : 400,
9737
+ padding: "4px 12px",
9738
+ borderRadius: 4,
9739
+ cursor: "pointer",
9740
+ fontFamily: "inherit",
9741
+ transition: "background 0.15s ease-in-out"
9742
+ }
9743
+ }, t(f.label));
9744
+ })));
9745
+ };
9746
+ var SummaryItem = function SummaryItem(_ref39) {
9747
+ var item = _ref39.item;
9748
+ var isSent = (item == null ? void 0 : item.direction) === "sent" || (item == null ? void 0 : item.sig) === "out";
9749
+ return /* @__PURE__ */React__namespace.createElement("div", {
9750
+ style: {
9751
+ background: "#fff",
9752
+ border: "1px solid var(--border-light)",
9753
+ borderRadius: 8,
9754
+ padding: 12
9755
+ }
9756
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9757
+ style: {
9758
+ display: "flex",
9759
+ alignItems: "center",
9760
+ gap: 8,
9761
+ marginBottom: 4
9762
+ }
9763
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9764
+ style: {
9765
+ color: "var(--text-secondary)",
9766
+ fontSize: 12
9767
+ }
9768
+ }, formatDate(item == null ? void 0 : item.date)), /* @__PURE__ */React__namespace.createElement("span", {
9769
+ style: {
9770
+ display: "inline-flex",
9771
+ alignItems: "center",
9772
+ gap: 2,
9773
+ padding: "2px 6px",
9774
+ borderRadius: 4,
9775
+ fontSize: 11,
9776
+ fontWeight: 500,
9777
+ background: isSent ? "rgba(33, 150, 243, 0.1)" : "rgba(76, 175, 80, 0.1)",
9778
+ color: isSent ? "#1976d2" : "#2e7d32"
9779
+ }
9780
+ }, isSent ? /* @__PURE__ */React__namespace.createElement(ArrowUp, {
9781
+ size: 11
9782
+ }) : /* @__PURE__ */React__namespace.createElement(ArrowDown, {
9783
+ size: 11
9784
+ }), t(isSent ? LangKey.SENT : LangKey.RECEIVED))), /* @__PURE__ */React__namespace.createElement("div", {
9785
+ style: {
9786
+ fontSize: 14,
9787
+ fontWeight: 600,
9788
+ color: "var(--text-primary)",
9789
+ marginBottom: 4
9790
+ }
9791
+ }, (item == null ? void 0 : item.subject) || "-"), /* @__PURE__ */React__namespace.createElement("div", {
9792
+ style: {
9793
+ fontSize: 13,
9794
+ color: "var(--text-secondary)",
9795
+ lineHeight: 1.5
9796
+ }
9797
+ }, (item == null ? void 0 : item.messages) || ""));
9798
+ };
9799
+ var getFlagCode = function getFlagCode(value) {
9800
+ var _a2;
9801
+ return (_a2 = AI_LANG_FLAGS.find(function (l) {
9802
+ return l.value === value;
9803
+ })) == null ? void 0 : _a2.flagCode;
9804
+ };
9805
+ var LanguagePopover = /*#__PURE__*/function (_React__namespace$Com0) {
9806
+ function LanguagePopover(props) {
9807
+ var _this21;
9808
+ _classCallCheck(this, LanguagePopover);
9809
+ _this21 = _callSuper(this, LanguagePopover, [props]);
9810
+ __publicField(_this21, "panelRef");
9811
+ __publicField(_this21, "updatePosition", function () {
9812
+ var anchorEl = _this21.props.anchorEl;
9813
+ if (!anchorEl) return;
9814
+ var rect = anchorEl.getBoundingClientRect();
9815
+ var top = rect.bottom + (window.scrollY || document.documentElement.scrollTop) + 4;
9816
+ var right = window.innerWidth - rect.right - (window.scrollX || document.documentElement.scrollLeft);
9817
+ _this21.setState({
9818
+ top: top,
9819
+ left: window.innerWidth - right - 180
9820
+ });
9821
+ });
9822
+ __publicField(_this21, "handleClickOutside", function (e) {
9823
+ var target = e.target;
9824
+ if (_this21.panelRef.current && !_this21.panelRef.current.contains(target) && _this21.props.anchorEl && !_this21.props.anchorEl.contains(target)) {
9825
+ _this21.props.onClose();
9826
+ }
9827
+ });
9828
+ _this21.panelRef = React__namespace.createRef();
9829
+ _this21.state = {
9830
+ top: 0,
9831
+ left: 0
9832
+ };
9833
+ return _this21;
9834
+ }
9835
+ _inherits(LanguagePopover, _React__namespace$Com0);
9836
+ return _createClass(LanguagePopover, [{
9837
+ key: "componentDidMount",
9838
+ value: function componentDidMount() {
9839
+ document.addEventListener("mousedown", this.handleClickOutside);
9840
+ this.updatePosition();
9841
+ }
9842
+ }, {
9843
+ key: "componentDidUpdate",
9844
+ value: function componentDidUpdate(prevProps) {
9845
+ if (prevProps.anchorEl !== this.props.anchorEl) {
9846
+ this.updatePosition();
9847
+ }
9848
+ }
9849
+ }, {
9850
+ key: "componentWillUnmount",
9851
+ value: function componentWillUnmount() {
9852
+ document.removeEventListener("mousedown", this.handleClickOutside);
9853
+ }
9854
+ }, {
9855
+ key: "render",
9856
+ value: function render() {
9857
+ var _this$props1 = this.props,
9858
+ anchorEl = _this$props1.anchorEl,
9859
+ langList = _this$props1.langList,
9860
+ currentLang = _this$props1.currentLang,
9861
+ onSelect = _this$props1.onSelect;
9862
+ if (!anchorEl) return null;
9863
+ var _this$state9 = this.state,
9864
+ top = _this$state9.top,
9865
+ left = _this$state9.left;
9866
+ return ReactDOM__namespace.createPortal(/* @__PURE__ */React__namespace.createElement("div", {
9867
+ ref: this.panelRef,
8799
9868
  style: {
8800
- display: "flex",
8801
- flexWrap: "wrap",
8802
- gap: 6
9869
+ position: "absolute",
9870
+ top: top,
9871
+ left: left,
9872
+ width: 180,
9873
+ maxHeight: 280,
9874
+ overflowY: "auto",
9875
+ background: "#fff",
9876
+ border: "1px solid var(--border-main)",
9877
+ borderRadius: 6,
9878
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.08)",
9879
+ zIndex: 1200,
9880
+ padding: "4px 0"
8803
9881
  }
8804
- }, selectedMails.map(function (m, i) {
8805
- return /* @__PURE__ */React__namespace.createElement("div", {
8806
- key: m.mid,
8807
- style: {
8808
- display: "inline-flex",
8809
- alignItems: "center",
8810
- gap: 6,
8811
- padding: "4px 8px",
8812
- borderRadius: 8,
8813
- border: "1px solid var(--border-light)",
8814
- background: "var(--primary-lighter)",
8815
- fontSize: 11,
8816
- maxWidth: 160
8817
- }
8818
- }, /* @__PURE__ */React__namespace.createElement("span", {
8819
- style: {
8820
- width: 14,
8821
- height: 14,
8822
- borderRadius: "50%",
8823
- background: "var(--primary-main)",
8824
- color: "var(--primary-contrasttext)",
8825
- fontSize: 9,
8826
- fontWeight: 700,
8827
- display: "inline-flex",
8828
- alignItems: "center",
8829
- justifyContent: "center",
8830
- flexShrink: 0
8831
- }
8832
- }, i + 1), /* @__PURE__ */React__namespace.createElement("span", {
8833
- style: {
8834
- whiteSpace: "nowrap",
8835
- overflow: "hidden",
8836
- textOverflow: "ellipsis"
8837
- }
8838
- }, m.subject || "(no subject)"), /* @__PURE__ */React__namespace.createElement("button", {
9882
+ }, langList.map(function (l) {
9883
+ var isActive = l.value === currentLang;
9884
+ var flag = getFlagCode(l.value);
9885
+ return /* @__PURE__ */React__namespace.createElement("button", {
9886
+ key: l.value,
8839
9887
  type: "button",
8840
9888
  onClick: function onClick() {
8841
- return _this20.handleRemoveSelected(m.mid);
9889
+ return onSelect(l.value);
8842
9890
  },
8843
9891
  style: {
9892
+ width: "100%",
9893
+ display: "flex",
9894
+ alignItems: "center",
9895
+ gap: 8,
9896
+ padding: "8px 12px",
8844
9897
  border: "none",
8845
- background: "transparent",
9898
+ background: isActive ? "var(--primary-lighter)" : "transparent",
8846
9899
  cursor: "pointer",
8847
- padding: 0,
8848
- color: "var(--text-secondary)",
8849
- display: "inline-flex",
8850
- alignItems: "center",
9900
+ fontSize: 13,
9901
+ fontFamily: "inherit",
9902
+ textAlign: "left",
9903
+ color: "var(--text-primary)"
9904
+ }
9905
+ }, flag && /* @__PURE__ */React__namespace.createElement(CountryFlag, {
9906
+ flagCode: flag,
9907
+ style: {
9908
+ width: 18,
9909
+ height: 14,
8851
9910
  flexShrink: 0
8852
9911
  }
8853
- }, "×"));
8854
- }))));
9912
+ }), /* @__PURE__ */React__namespace.createElement("span", null, l.label));
9913
+ })), document.body);
9914
+ }
9915
+ }]);
9916
+ }(React__namespace.Component);
9917
+ var INITIAL_META = {
9918
+ total: 0,
9919
+ receive: 0,
9920
+ sent: 0,
9921
+ totalPages: 1,
9922
+ filterCount: 0
9923
+ };
9924
+ var SummaryAIEmails = /*#__PURE__*/function (_React__namespace$Com1) {
9925
+ function SummaryAIEmails(props) {
9926
+ var _this22;
9927
+ _classCallCheck(this, SummaryAIEmails);
9928
+ _this22 = _callSuper(this, SummaryAIEmails, [props]);
9929
+ __publicField(_this22, "eventSource", null);
9930
+ __publicField(_this22, "closeStream", function () {
9931
+ if (_this22.eventSource) {
9932
+ _this22.eventSource.close();
9933
+ _this22.eventSource = null;
9934
+ }
9935
+ });
9936
+ __publicField(_this22, "startStream", function () {
9937
+ var targetEmail = _this22.props.targetEmail;
9938
+ var _this22$state = _this22.state,
9939
+ lang = _this22$state.lang,
9940
+ mailtype = _this22$state.mailtype,
9941
+ page = _this22$state.page;
9942
+ if (!targetEmail) return;
9943
+ _this22.closeStream();
9944
+ _this22.setState({
9945
+ items: [],
9946
+ isLoading: true
9947
+ });
9948
+ var url = "".concat(getBaseUrl(), "/email/ai/fromsumstreaming/").concat(encodeURIComponent(targetEmail), "/").concat(lang, "/").concat(PAGE_SIZE, "/").concat(page, "?mailtype=").concat(mailtype);
9949
+ var es = new EventSource(url);
9950
+ _this22.eventSource = es;
9951
+ es.addEventListener("meta", function (ev) {
9952
+ var _a2, _b, _c;
9953
+ try {
9954
+ var parsed = JSON.parse(ev.data || "{}");
9955
+ _this22.setState({
9956
+ meta: {
9957
+ total: ((_a2 = parsed == null ? void 0 : parsed.counts) == null ? void 0 : _a2.total) || 0,
9958
+ receive: ((_b = parsed == null ? void 0 : parsed.counts) == null ? void 0 : _b.receive) || 0,
9959
+ sent: ((_c = parsed == null ? void 0 : parsed.counts) == null ? void 0 : _c.sent) || 0,
9960
+ totalPages: (parsed == null ? void 0 : parsed.total_pages) || 1,
9961
+ filterCount: (parsed == null ? void 0 : parsed.filter_count) || 0
9962
+ }
9963
+ });
9964
+ } catch (e) {}
9965
+ });
9966
+ es.onmessage = function (ev) {
9967
+ if (!(ev == null ? void 0 : ev.data)) return;
9968
+ if (ev.data === "[DONE]") {
9969
+ _this22.closeStream();
9970
+ _this22.setState({
9971
+ isLoading: false
9972
+ });
9973
+ return;
9974
+ }
9975
+ var parsed = parseDataLine(ev.data);
9976
+ if (parsed) {
9977
+ _this22.setState(function (prev) {
9978
+ return {
9979
+ items: [].concat(_toConsumableArray(prev.items), [parsed]),
9980
+ isLoading: false
9981
+ };
9982
+ });
9983
+ }
9984
+ };
9985
+ es.onerror = function () {
9986
+ _this22.closeStream();
9987
+ _this22.setState({
9988
+ isLoading: false
9989
+ });
9990
+ };
9991
+ });
9992
+ __publicField(_this22, "handleChangeFilter", function (val) {
9993
+ if (val === _this22.state.mailtype) return;
9994
+ _this22.setState({
9995
+ mailtype: val,
9996
+ page: 1
9997
+ });
9998
+ });
9999
+ __publicField(_this22, "handleChangeLang", function (val) {
10000
+ _this22.setState({
10001
+ langAnchor: null
10002
+ });
10003
+ if (val === _this22.state.lang) return;
10004
+ _this22.setState({
10005
+ lang: val,
10006
+ page: 1
10007
+ });
10008
+ });
10009
+ __publicField(_this22, "handleChangePage", function (page) {
10010
+ _this22.setState({
10011
+ page: page
10012
+ });
10013
+ });
10014
+ __publicField(_this22, "handleOpenLang", function (anchor) {
10015
+ _this22.setState({
10016
+ langAnchor: anchor
10017
+ });
10018
+ });
10019
+ __publicField(_this22, "handleCloseLang", function () {
10020
+ _this22.setState({
10021
+ langAnchor: null
10022
+ });
10023
+ });
10024
+ _this22.state = {
10025
+ lang: props.defaultLang || "ko",
10026
+ mailtype: "all",
10027
+ page: 1,
10028
+ items: [],
10029
+ meta: INITIAL_META,
10030
+ isLoading: false,
10031
+ langAnchor: null
10032
+ };
10033
+ if (props.userLang) {
10034
+ SDKConfig.lang = props.userLang;
10035
+ }
10036
+ return _this22;
10037
+ }
10038
+ _inherits(SummaryAIEmails, _React__namespace$Com1);
10039
+ return _createClass(SummaryAIEmails, [{
10040
+ key: "componentDidMount",
10041
+ value: function componentDidMount() {
10042
+ this.startStream();
10043
+ }
10044
+ }, {
10045
+ key: "componentDidUpdate",
10046
+ value: function componentDidUpdate(prevProps, prevState) {
10047
+ if (this.props.userLang !== prevProps.userLang && this.props.userLang) {
10048
+ SDKConfig.lang = this.props.userLang;
10049
+ this.forceUpdate();
10050
+ }
10051
+ var targetChanged = prevProps.targetEmail !== this.props.targetEmail;
10052
+ var filterChanged = prevState.lang !== this.state.lang || prevState.mailtype !== this.state.mailtype || prevState.page !== this.state.page;
10053
+ if (targetChanged || filterChanged) {
10054
+ this.startStream();
10055
+ }
10056
+ }
10057
+ }, {
10058
+ key: "componentWillUnmount",
10059
+ value: function componentWillUnmount() {
10060
+ this.closeStream();
8855
10061
  }
8856
10062
  }, {
8857
10063
  key: "render",
8858
10064
  value: function render() {
8859
- var _this$props8 = this.props,
8860
- onApply = _this$props8.onApply,
8861
- getEditorContent = _this$props8.getEditorContent;
8862
- var _this$state9 = this.state,
8863
- view = _this$state9.view,
8864
- sourceMail = _this$state9.sourceMail,
8865
- accountEmail = _this$state9.accountEmail,
8866
- selectedMails = _this$state9.selectedMails,
8867
- message = _this$state9.message,
8868
- messages = _this$state9.messages,
8869
- isSending = _this$state9.isSending,
8870
- lang = _this$state9.lang,
8871
- tone = _this$state9.tone,
8872
- length = _this$state9.length,
8873
- isLoadingSelected = _this$state9.isLoadingSelected;
8874
- if (view === "list") {
8875
- return /* @__PURE__ */React__namespace.createElement(MailListSelect, {
8876
- accountEmail: accountEmail,
8877
- initialSelected: selectedMails.map(function (m) {
8878
- return m.mid;
8879
- }),
8880
- onCancel: this.handleListCancel,
8881
- onConfirm: this.handleListConfirm
8882
- });
8883
- }
10065
+ var _this$props10 = this.props,
10066
+ targetEmail = _this$props10.targetEmail,
10067
+ targetName = _this$props10.targetName,
10068
+ _this$props10$langLis = _this$props10.langList,
10069
+ langList = _this$props10$langLis === void 0 ? [] : _this$props10$langLis;
10070
+ var _this$state0 = this.state,
10071
+ lang = _this$state0.lang,
10072
+ mailtype = _this$state0.mailtype,
10073
+ page = _this$state0.page,
10074
+ items = _this$state0.items,
10075
+ meta = _this$state0.meta,
10076
+ isLoading = _this$state0.isLoading,
10077
+ langAnchor = _this$state0.langAnchor;
10078
+ var currentLangLabel = findLangLabel(lang, langList);
10079
+ var totalPages = Math.max(1, meta.totalPages || Math.ceil((meta.filterCount || meta.total) / PAGE_SIZE));
10080
+ var filterCount = meta.filterCount || meta.total || 0;
8884
10081
  return /* @__PURE__ */React__namespace.createElement("div", {
8885
- ref: this.rootRef,
8886
10082
  style: {
8887
10083
  display: "flex",
8888
- height: "100%",
8889
- padding: 16,
8890
10084
  flexDirection: "column",
8891
- background: "#fff",
10085
+ background: "var(--background-softGrey)",
10086
+ padding: 16,
10087
+ borderRadius: 8,
8892
10088
  fontFamily: "inherit",
8893
10089
  boxSizing: "border-box"
8894
10090
  }
8895
- }, view === "chat" ? /* @__PURE__ */React__namespace.createElement(React__namespace.Fragment, null, this.renderContextHeader(), /* @__PURE__ */React__namespace.createElement(ChatList, {
8896
- items: messages,
8897
- onApply: onApply,
8898
- getEditorContent: getEditorContent
8899
- })) : /* @__PURE__ */React__namespace.createElement(EmptyState, {
8900
- sourceMail: sourceMail,
8901
- selectedMails: selectedMails,
8902
- onAddClick: this.handleAddClick,
8903
- onRemoveSelected: this.handleRemoveSelected
8904
- }), isLoadingSelected && /* @__PURE__ */React__namespace.createElement("div", {
10091
+ }, /* @__PURE__ */React__namespace.createElement(TargetInfoBar, {
10092
+ targetName: targetName,
10093
+ targetEmail: targetEmail,
10094
+ currentLangLabel: currentLangLabel,
10095
+ onOpenLang: this.handleOpenLang
10096
+ }), /* @__PURE__ */React__namespace.createElement(FilterTabs, {
10097
+ mailtype: mailtype,
10098
+ onChangeFilter: this.handleChangeFilter
10099
+ }), /* @__PURE__ */React__namespace.createElement("div", {
8905
10100
  style: {
8906
- fontSize: 12,
10101
+ display: "flex",
10102
+ flexDirection: "column",
10103
+ gap: 8,
10104
+ minHeight: 120
10105
+ }
10106
+ }, isLoading && items.length === 0 && /* @__PURE__ */React__namespace.createElement(LoadingContainer, {
10107
+ style: {
10108
+ background: "#fff",
10109
+ borderRadius: 8,
10110
+ height: 160
10111
+ },
10112
+ size: "small"
10113
+ }), !isLoading && items.length === 0 && /* @__PURE__ */React__namespace.createElement("div", {
10114
+ style: {
10115
+ background: "#fff",
10116
+ borderRadius: 8,
10117
+ padding: 24,
10118
+ textAlign: "center",
8907
10119
  color: "var(--text-secondary)",
8908
- padding: 8,
8909
- textAlign: "center"
10120
+ fontSize: 13
8910
10121
  }
8911
- }, "Loading context..."), /* @__PURE__ */React__namespace.createElement(ChatInput, {
8912
- message: message,
8913
- onMessageChange: this.handleMessageChange,
8914
- onSubmit: this.handleSubmit,
8915
- isSending: isSending,
8916
- lang: lang,
8917
- setLang: this.setLang,
8918
- tone: tone,
8919
- setTone: this.setTone,
8920
- length: length,
8921
- setLength: this.setLength,
8922
- parentRef: this.rootRef,
8923
- placeholder: "Type a message..."
10122
+ }, t(LangKey.NO_DATA)), items.map(function (item, idx) {
10123
+ return /* @__PURE__ */React__namespace.createElement(SummaryItem, {
10124
+ key: idx,
10125
+ item: item
10126
+ });
10127
+ })), filterCount > 0 && /* @__PURE__ */React__namespace.createElement(Pagination, {
10128
+ total: filterCount,
10129
+ page: page,
10130
+ totalPages: totalPages,
10131
+ onChangePage: this.handleChangePage
10132
+ }), /* @__PURE__ */React__namespace.createElement(LanguagePopover, {
10133
+ anchorEl: langAnchor,
10134
+ langList: langList,
10135
+ currentLang: lang,
10136
+ onSelect: this.handleChangeLang,
10137
+ onClose: this.handleCloseLang
8924
10138
  }));
8925
10139
  }
8926
10140
  }]);
8927
10141
  }(React__namespace.Component);
8928
- var ChatAIDraft = function ChatAIDraft(props) {
8929
- var _a2 = props,
8930
- _a2$type = _a2.type,
8931
- type = _a2$type === void 0 ? "new" : _a2$type,
8932
- sourceMid = _a2.sourceMid,
8933
- rest = __objRest(_a2, ["type", "sourceMid"]);
8934
- if ((type === "reply" || type === "forward") && sourceMid) {
8935
- return /* @__PURE__ */React__namespace.createElement(ReplyPanel, __spreadValues({
8936
- type: type,
8937
- sourceMid: sourceMid
8938
- }, rest));
8939
- }
8940
- return /* @__PURE__ */React__namespace.createElement(CreatePanel, __spreadValues({}, rest));
8941
- };
8942
- var LoadingCircular = function LoadingCircular(_ref33) {
8943
- var _ref33$size = _ref33.size,
8944
- size = _ref33$size === void 0 ? 40 : _ref33$size,
8945
- _ref33$color = _ref33.color,
8946
- color = _ref33$color === void 0 ? "var(--primary-main)" : _ref33$color,
8947
- _ref33$thickness = _ref33.thickness,
8948
- thickness = _ref33$thickness === void 0 ? 3.6 : _ref33$thickness;
8949
- var radius = 20;
8950
- var circumference = 2 * Math.PI * radius;
8951
- return /* @__PURE__ */React.createElement("div", {
8952
- className: "circular-container",
8953
- style: {
8954
- width: size,
8955
- height: size
8956
- },
8957
- role: "progressbar"
8958
- }, /* @__PURE__ */React.createElement("svg", {
8959
- className: "circular-svg",
8960
- viewBox: "22 22 44 44"
8961
- }, /* @__PURE__ */React.createElement("circle", {
8962
- className: "circular-circle",
8963
- cx: "44",
8964
- cy: "44",
8965
- r: radius,
8966
- fill: "none",
8967
- stroke: color,
8968
- strokeWidth: thickness,
8969
- strokeDasharray: circumference,
8970
- style: {
8971
- strokeDashoffset: circumference * 0.7
8972
- // Độ dài của thanh loading
8973
- }
8974
- })));
8975
- };
8976
- var circularSize = {
8977
- small: 28,
8978
- medium: 40
8979
- };
8980
- var LoadingContainer = function LoadingContainer(_ref34) {
8981
- var style = _ref34.style,
8982
- _ref34$fullHeight = _ref34.fullHeight,
8983
- fullHeight = _ref34$fullHeight === void 0 ? false : _ref34$fullHeight,
8984
- _ref34$size = _ref34.size,
8985
- size = _ref34$size === void 0 ? "medium" : _ref34$size,
8986
- label = _ref34.label;
8987
- return /* @__PURE__ */React.createElement("div", {
8988
- style: __spreadValues({
8989
- display: "flex",
8990
- alignItems: "center",
8991
- justifyContent: "center",
8992
- width: "100%",
8993
- height: fullHeight ? "100%" : 350
8994
- }, style)
8995
- }, /* @__PURE__ */React.createElement(LoadingCircular, {
8996
- size: circularSize[size]
8997
- }), label && /* @__PURE__ */React.createElement("p", {
8998
- color: "text.secondary",
8999
- style: {
9000
- marginTop: 16,
9001
- fontSize: size === "small" ? 12 : 13
9002
- }
9003
- }, label));
9004
- };
9005
10142
  exports2.AI_LANG_FLAGS = AI_LANG_FLAGS;
9006
10143
  exports2.ChatAIDraft = ChatAIDraft;
9007
- exports2.CountryFlag = CountryFlag;
9008
10144
  exports2.LoadingCircular = LoadingCircular;
9009
10145
  exports2.LoadingContainer = LoadingContainer;
9010
- exports2.Tooltip = Tooltip;
9011
- exports2.getBaseUrl = getBaseUrl;
9012
- exports2.getGroupwareUrl = getGroupwareUrl;
10146
+ exports2.Pagination = Pagination;
10147
+ exports2.SummaryAIEmails = SummaryAIEmails;
9013
10148
  exports2.initHanbiroReactSDK = initHanbiroReactSDK;
10149
+ exports2.setLibLang = setLibLang;
9014
10150
  Object.defineProperty(exports2, Symbol.toStringTag, {
9015
10151
  value: "Module"
9016
10152
  });