hanbiro-react16-sdk 1.0.27 → 1.0.28

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 (45) hide show
  1. package/dist/components/ChatAIDraft/ChatList/LoadingDots.js +4 -3
  2. package/dist/components/ChatAIDraft/ChatList/MessageItem.js +4 -4
  3. package/dist/components/ChatAIDraft/ReplyPanel/BaseModal.d.ts +15 -0
  4. package/dist/components/ChatAIDraft/ReplyPanel/BaseModal.js +101 -0
  5. package/dist/components/ChatAIDraft/ReplyPanel/ContextPreviewModal.d.ts +13 -0
  6. package/dist/components/ChatAIDraft/ReplyPanel/ContextPreviewModal.js +63 -0
  7. package/dist/components/ChatAIDraft/ReplyPanel/EmptyState.d.ts +1 -8
  8. package/dist/components/ChatAIDraft/ReplyPanel/EmptyState.js +1 -217
  9. package/dist/components/ChatAIDraft/ReplyPanel/Header/SelectedChip.d.ts +10 -0
  10. package/dist/components/ChatAIDraft/ReplyPanel/Header/SelectedChip.js +79 -0
  11. package/dist/components/ChatAIDraft/ReplyPanel/Header/SourceCard.d.ts +8 -0
  12. package/dist/components/ChatAIDraft/ReplyPanel/Header/SourceCard.js +52 -0
  13. package/dist/components/ChatAIDraft/ReplyPanel/Header/index.d.ts +12 -0
  14. package/dist/components/ChatAIDraft/ReplyPanel/Header/index.js +135 -0
  15. package/dist/components/ChatAIDraft/ReplyPanel/MailListSelect.d.ts +1 -0
  16. package/dist/components/ChatAIDraft/ReplyPanel/MailListSelect.js +62 -149
  17. package/dist/components/ChatAIDraft/ReplyPanel/index.d.ts +5 -1
  18. package/dist/components/ChatAIDraft/ReplyPanel/index.js +35 -196
  19. package/dist/components/Pagination/index.d.ts +20 -0
  20. package/dist/components/Pagination/index.js +131 -0
  21. package/dist/components/SummaryAIEmails/FilterTabs.d.ts +8 -0
  22. package/dist/components/SummaryAIEmails/FilterTabs.js +57 -0
  23. package/dist/components/SummaryAIEmails/LanguagePopover.d.ts +24 -0
  24. package/dist/components/SummaryAIEmails/LanguagePopover.js +110 -0
  25. package/dist/components/SummaryAIEmails/SummaryItem.d.ts +7 -0
  26. package/dist/components/SummaryAIEmails/SummaryItem.js +74 -0
  27. package/dist/components/SummaryAIEmails/TargetInfoBar.d.ts +9 -0
  28. package/dist/components/SummaryAIEmails/TargetInfoBar.js +81 -0
  29. package/dist/components/SummaryAIEmails/index.d.ts +34 -0
  30. package/dist/components/SummaryAIEmails/index.js +213 -0
  31. package/dist/components/SummaryAIEmails/types.d.ts +16 -0
  32. package/dist/components/SummaryAIEmails/utils.d.ts +11 -0
  33. package/dist/components/SummaryAIEmails/utils.js +46 -0
  34. package/dist/components/index.d.ts +2 -4
  35. package/dist/hanbiro-react16-sdk.style.css +7 -2
  36. package/dist/hanbiro-react16-sdk.umd.js +1958 -965
  37. package/dist/index.js +11 -13
  38. package/dist/node_modules/react-feather/dist/icons/arrow-down.js +73 -0
  39. package/dist/node_modules/react-feather/dist/icons/chevron-left.js +68 -0
  40. package/dist/node_modules/react-feather/dist/icons/chevron-right.js +68 -0
  41. package/dist/node_modules/react-feather/dist/icons/globe.js +77 -0
  42. package/dist/node_modules/react-feather/dist/icons/x.js +76 -0
  43. package/dist/utils/index.d.ts +1 -1
  44. package/dist/utils/url.js +0 -13
  45. 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.28
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."); }
@@ -211,20 +212,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
211
212
  return "https://" + (dataArr == null ? void 0 : dataArr[0]);
212
213
  }
213
214
  };
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
215
  function callAI(_0, _1) {
229
216
  return __async(this, arguments, function (params, _ref3) {
230
217
  var setContent = _ref3.setContent,
@@ -413,8 +400,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
413
400
  }
414
401
  var propTypesExports = propTypes.exports;
415
402
  var PropTypes = /* @__PURE__ */getDefaultExportFromCjs(propTypesExports);
416
- function _extends$l() {
417
- _extends$l = Object.assign || function (target) {
403
+ function _extends$q() {
404
+ _extends$q = Object.assign || function (target) {
418
405
  for (var i = 1; i < arguments.length; i++) {
419
406
  var source = arguments[i];
420
407
  for (var key in source) {
@@ -425,11 +412,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
425
412
  }
426
413
  return target;
427
414
  };
428
- return _extends$l.apply(this, arguments);
415
+ return _extends$q.apply(this, arguments);
429
416
  }
430
- function _objectWithoutProperties$l(source, excluded) {
417
+ function _objectWithoutProperties$q(source, excluded) {
431
418
  if (source == null) return {};
432
- var target = _objectWithoutPropertiesLoose$l(source, excluded);
419
+ var target = _objectWithoutPropertiesLoose$q(source, excluded);
433
420
  var key, i;
434
421
  if (Object.getOwnPropertySymbols) {
435
422
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -442,7 +429,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
442
429
  }
443
430
  return target;
444
431
  }
445
- function _objectWithoutPropertiesLoose$l(source, excluded) {
432
+ function _objectWithoutPropertiesLoose$q(source, excluded) {
446
433
  if (source == null) return {};
447
434
  var target = {};
448
435
  var sourceKeys = Object.keys(source);
@@ -459,8 +446,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
459
446
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
460
447
  _ref$size = _ref.size,
461
448
  size = _ref$size === void 0 ? 24 : _ref$size,
462
- rest = _objectWithoutProperties$l(_ref, ["color", "size"]);
463
- return /* @__PURE__ */React.createElement("svg", _extends$l({
449
+ rest = _objectWithoutProperties$q(_ref, ["color", "size"]);
450
+ return /* @__PURE__ */React.createElement("svg", _extends$q({
464
451
  ref: ref,
465
452
  xmlns: "http://www.w3.org/2000/svg",
466
453
  width: size,
@@ -498,8 +485,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
498
485
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
499
486
  };
500
487
  AlignJustify.displayName = "AlignJustify";
501
- function _extends$k() {
502
- _extends$k = Object.assign || function (target) {
488
+ function _extends$p() {
489
+ _extends$p = Object.assign || function (target) {
503
490
  for (var i = 1; i < arguments.length; i++) {
504
491
  var source = arguments[i];
505
492
  for (var key in source) {
@@ -510,11 +497,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
510
497
  }
511
498
  return target;
512
499
  };
513
- return _extends$k.apply(this, arguments);
500
+ return _extends$p.apply(this, arguments);
514
501
  }
515
- function _objectWithoutProperties$k(source, excluded) {
502
+ function _objectWithoutProperties$p(source, excluded) {
516
503
  if (source == null) return {};
517
- var target = _objectWithoutPropertiesLoose$k(source, excluded);
504
+ var target = _objectWithoutPropertiesLoose$p(source, excluded);
518
505
  var key, i;
519
506
  if (Object.getOwnPropertySymbols) {
520
507
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -527,7 +514,79 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
527
514
  }
528
515
  return target;
529
516
  }
530
- function _objectWithoutPropertiesLoose$k(source, excluded) {
517
+ function _objectWithoutPropertiesLoose$p(source, excluded) {
518
+ if (source == null) return {};
519
+ var target = {};
520
+ var sourceKeys = Object.keys(source);
521
+ var key, i;
522
+ for (i = 0; i < sourceKeys.length; i++) {
523
+ key = sourceKeys[i];
524
+ if (excluded.indexOf(key) >= 0) continue;
525
+ target[key] = source[key];
526
+ }
527
+ return target;
528
+ }
529
+ var ArrowDown = React.forwardRef(function (_ref, ref) {
530
+ var _ref$color = _ref.color,
531
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
532
+ _ref$size = _ref.size,
533
+ size = _ref$size === void 0 ? 24 : _ref$size,
534
+ rest = _objectWithoutProperties$p(_ref, ["color", "size"]);
535
+ return /* @__PURE__ */React.createElement("svg", _extends$p({
536
+ ref: ref,
537
+ xmlns: "http://www.w3.org/2000/svg",
538
+ width: size,
539
+ height: size,
540
+ viewBox: "0 0 24 24",
541
+ fill: "none",
542
+ stroke: color,
543
+ strokeWidth: "2",
544
+ strokeLinecap: "round",
545
+ strokeLinejoin: "round"
546
+ }, rest), /* @__PURE__ */React.createElement("line", {
547
+ x1: "12",
548
+ y1: "5",
549
+ x2: "12",
550
+ y2: "19"
551
+ }), /* @__PURE__ */React.createElement("polyline", {
552
+ points: "19 12 12 19 5 12"
553
+ }));
554
+ });
555
+ ArrowDown.propTypes = {
556
+ color: PropTypes.string,
557
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
558
+ };
559
+ ArrowDown.displayName = "ArrowDown";
560
+ function _extends$o() {
561
+ _extends$o = Object.assign || function (target) {
562
+ for (var i = 1; i < arguments.length; i++) {
563
+ var source = arguments[i];
564
+ for (var key in source) {
565
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
566
+ target[key] = source[key];
567
+ }
568
+ }
569
+ }
570
+ return target;
571
+ };
572
+ return _extends$o.apply(this, arguments);
573
+ }
574
+ function _objectWithoutProperties$o(source, excluded) {
575
+ if (source == null) return {};
576
+ var target = _objectWithoutPropertiesLoose$o(source, excluded);
577
+ var key, i;
578
+ if (Object.getOwnPropertySymbols) {
579
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
580
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
581
+ key = sourceSymbolKeys[i];
582
+ if (excluded.indexOf(key) >= 0) continue;
583
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
584
+ target[key] = source[key];
585
+ }
586
+ }
587
+ return target;
588
+ }
589
+ function _objectWithoutPropertiesLoose$o(source, excluded) {
531
590
  if (source == null) return {};
532
591
  var target = {};
533
592
  var sourceKeys = Object.keys(source);
@@ -544,8 +603,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
544
603
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
545
604
  _ref$size = _ref.size,
546
605
  size = _ref$size === void 0 ? 24 : _ref$size,
547
- rest = _objectWithoutProperties$k(_ref, ["color", "size"]);
548
- return /* @__PURE__ */React.createElement("svg", _extends$k({
606
+ rest = _objectWithoutProperties$o(_ref, ["color", "size"]);
607
+ return /* @__PURE__ */React.createElement("svg", _extends$o({
549
608
  ref: ref,
550
609
  xmlns: "http://www.w3.org/2000/svg",
551
610
  width: size,
@@ -570,8 +629,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
570
629
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
571
630
  };
572
631
  ArrowLeft.displayName = "ArrowLeft";
573
- function _extends$j() {
574
- _extends$j = Object.assign || function (target) {
632
+ function _extends$n() {
633
+ _extends$n = Object.assign || function (target) {
575
634
  for (var i = 1; i < arguments.length; i++) {
576
635
  var source = arguments[i];
577
636
  for (var key in source) {
@@ -582,11 +641,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
582
641
  }
583
642
  return target;
584
643
  };
585
- return _extends$j.apply(this, arguments);
644
+ return _extends$n.apply(this, arguments);
586
645
  }
587
- function _objectWithoutProperties$j(source, excluded) {
646
+ function _objectWithoutProperties$n(source, excluded) {
588
647
  if (source == null) return {};
589
- var target = _objectWithoutPropertiesLoose$j(source, excluded);
648
+ var target = _objectWithoutPropertiesLoose$n(source, excluded);
590
649
  var key, i;
591
650
  if (Object.getOwnPropertySymbols) {
592
651
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -599,7 +658,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
599
658
  }
600
659
  return target;
601
660
  }
602
- function _objectWithoutPropertiesLoose$j(source, excluded) {
661
+ function _objectWithoutPropertiesLoose$n(source, excluded) {
603
662
  if (source == null) return {};
604
663
  var target = {};
605
664
  var sourceKeys = Object.keys(source);
@@ -616,8 +675,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
616
675
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
617
676
  _ref$size = _ref.size,
618
677
  size = _ref$size === void 0 ? 24 : _ref$size,
619
- rest = _objectWithoutProperties$j(_ref, ["color", "size"]);
620
- return /* @__PURE__ */React.createElement("svg", _extends$j({
678
+ rest = _objectWithoutProperties$n(_ref, ["color", "size"]);
679
+ return /* @__PURE__ */React.createElement("svg", _extends$n({
621
680
  ref: ref,
622
681
  xmlns: "http://www.w3.org/2000/svg",
623
682
  width: size,
@@ -642,8 +701,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
642
701
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
643
702
  };
644
703
  ArrowUp.displayName = "ArrowUp";
645
- function _extends$i() {
646
- _extends$i = Object.assign || function (target) {
704
+ function _extends$m() {
705
+ _extends$m = Object.assign || function (target) {
647
706
  for (var i = 1; i < arguments.length; i++) {
648
707
  var source = arguments[i];
649
708
  for (var key in source) {
@@ -654,11 +713,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
654
713
  }
655
714
  return target;
656
715
  };
657
- return _extends$i.apply(this, arguments);
716
+ return _extends$m.apply(this, arguments);
658
717
  }
659
- function _objectWithoutProperties$i(source, excluded) {
718
+ function _objectWithoutProperties$m(source, excluded) {
660
719
  if (source == null) return {};
661
- var target = _objectWithoutPropertiesLoose$i(source, excluded);
720
+ var target = _objectWithoutPropertiesLoose$m(source, excluded);
662
721
  var key, i;
663
722
  if (Object.getOwnPropertySymbols) {
664
723
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -671,7 +730,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
671
730
  }
672
731
  return target;
673
732
  }
674
- function _objectWithoutPropertiesLoose$i(source, excluded) {
733
+ function _objectWithoutPropertiesLoose$m(source, excluded) {
675
734
  if (source == null) return {};
676
735
  var target = {};
677
736
  var sourceKeys = Object.keys(source);
@@ -688,8 +747,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
688
747
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
689
748
  _ref$size = _ref.size,
690
749
  size = _ref$size === void 0 ? 24 : _ref$size,
691
- rest = _objectWithoutProperties$i(_ref, ["color", "size"]);
692
- return /* @__PURE__ */React.createElement("svg", _extends$i({
750
+ rest = _objectWithoutProperties$m(_ref, ["color", "size"]);
751
+ return /* @__PURE__ */React.createElement("svg", _extends$m({
693
752
  ref: ref,
694
753
  xmlns: "http://www.w3.org/2000/svg",
695
754
  width: size,
@@ -713,8 +772,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
713
772
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
714
773
  };
715
774
  Award.displayName = "Award";
716
- function _extends$h() {
717
- _extends$h = Object.assign || function (target) {
775
+ function _extends$l() {
776
+ _extends$l = Object.assign || function (target) {
718
777
  for (var i = 1; i < arguments.length; i++) {
719
778
  var source = arguments[i];
720
779
  for (var key in source) {
@@ -725,11 +784,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
725
784
  }
726
785
  return target;
727
786
  };
728
- return _extends$h.apply(this, arguments);
787
+ return _extends$l.apply(this, arguments);
729
788
  }
730
- function _objectWithoutProperties$h(source, excluded) {
789
+ function _objectWithoutProperties$l(source, excluded) {
731
790
  if (source == null) return {};
732
- var target = _objectWithoutPropertiesLoose$h(source, excluded);
791
+ var target = _objectWithoutPropertiesLoose$l(source, excluded);
733
792
  var key, i;
734
793
  if (Object.getOwnPropertySymbols) {
735
794
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -742,7 +801,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
742
801
  }
743
802
  return target;
744
803
  }
745
- function _objectWithoutPropertiesLoose$h(source, excluded) {
804
+ function _objectWithoutPropertiesLoose$l(source, excluded) {
746
805
  if (source == null) return {};
747
806
  var target = {};
748
807
  var sourceKeys = Object.keys(source);
@@ -759,8 +818,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
759
818
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
760
819
  _ref$size = _ref.size,
761
820
  size = _ref$size === void 0 ? 24 : _ref$size,
762
- rest = _objectWithoutProperties$h(_ref, ["color", "size"]);
763
- return /* @__PURE__ */React.createElement("svg", _extends$h({
821
+ rest = _objectWithoutProperties$l(_ref, ["color", "size"]);
822
+ return /* @__PURE__ */React.createElement("svg", _extends$l({
764
823
  ref: ref,
765
824
  xmlns: "http://www.w3.org/2000/svg",
766
825
  width: size,
@@ -780,8 +839,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
780
839
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
781
840
  };
782
841
  Check.displayName = "Check";
783
- function _extends$g() {
784
- _extends$g = Object.assign || function (target) {
842
+ function _extends$k() {
843
+ _extends$k = Object.assign || function (target) {
785
844
  for (var i = 1; i < arguments.length; i++) {
786
845
  var source = arguments[i];
787
846
  for (var key in source) {
@@ -792,11 +851,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
792
851
  }
793
852
  return target;
794
853
  };
795
- return _extends$g.apply(this, arguments);
854
+ return _extends$k.apply(this, arguments);
796
855
  }
797
- function _objectWithoutProperties$g(source, excluded) {
856
+ function _objectWithoutProperties$k(source, excluded) {
798
857
  if (source == null) return {};
799
- var target = _objectWithoutPropertiesLoose$g(source, excluded);
858
+ var target = _objectWithoutPropertiesLoose$k(source, excluded);
800
859
  var key, i;
801
860
  if (Object.getOwnPropertySymbols) {
802
861
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -809,7 +868,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
809
868
  }
810
869
  return target;
811
870
  }
812
- function _objectWithoutPropertiesLoose$g(source, excluded) {
871
+ function _objectWithoutPropertiesLoose$k(source, excluded) {
813
872
  if (source == null) return {};
814
873
  var target = {};
815
874
  var sourceKeys = Object.keys(source);
@@ -826,8 +885,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
826
885
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
827
886
  _ref$size = _ref.size,
828
887
  size = _ref$size === void 0 ? 24 : _ref$size,
829
- rest = _objectWithoutProperties$g(_ref, ["color", "size"]);
830
- return /* @__PURE__ */React.createElement("svg", _extends$g({
888
+ rest = _objectWithoutProperties$k(_ref, ["color", "size"]);
889
+ return /* @__PURE__ */React.createElement("svg", _extends$k({
831
890
  ref: ref,
832
891
  xmlns: "http://www.w3.org/2000/svg",
833
892
  width: size,
@@ -847,8 +906,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
847
906
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
848
907
  };
849
908
  ChevronDown.displayName = "ChevronDown";
850
- function _extends$f() {
851
- _extends$f = Object.assign || function (target) {
909
+ function _extends$j() {
910
+ _extends$j = Object.assign || function (target) {
852
911
  for (var i = 1; i < arguments.length; i++) {
853
912
  var source = arguments[i];
854
913
  for (var key in source) {
@@ -859,11 +918,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
859
918
  }
860
919
  return target;
861
920
  };
862
- return _extends$f.apply(this, arguments);
921
+ return _extends$j.apply(this, arguments);
863
922
  }
864
- function _objectWithoutProperties$f(source, excluded) {
923
+ function _objectWithoutProperties$j(source, excluded) {
865
924
  if (source == null) return {};
866
- var target = _objectWithoutPropertiesLoose$f(source, excluded);
925
+ var target = _objectWithoutPropertiesLoose$j(source, excluded);
867
926
  var key, i;
868
927
  if (Object.getOwnPropertySymbols) {
869
928
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -876,7 +935,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
876
935
  }
877
936
  return target;
878
937
  }
879
- function _objectWithoutPropertiesLoose$f(source, excluded) {
938
+ function _objectWithoutPropertiesLoose$j(source, excluded) {
880
939
  if (source == null) return {};
881
940
  var target = {};
882
941
  var sourceKeys = Object.keys(source);
@@ -888,13 +947,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
888
947
  }
889
948
  return target;
890
949
  }
891
- var Compass = React.forwardRef(function (_ref, ref) {
950
+ var ChevronLeft = React.forwardRef(function (_ref, ref) {
892
951
  var _ref$color = _ref.color,
893
952
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
894
953
  _ref$size = _ref.size,
895
954
  size = _ref$size === void 0 ? 24 : _ref$size,
896
- rest = _objectWithoutProperties$f(_ref, ["color", "size"]);
897
- return /* @__PURE__ */React.createElement("svg", _extends$f({
955
+ rest = _objectWithoutProperties$j(_ref, ["color", "size"]);
956
+ return /* @__PURE__ */React.createElement("svg", _extends$j({
898
957
  ref: ref,
899
958
  xmlns: "http://www.w3.org/2000/svg",
900
959
  width: size,
@@ -905,21 +964,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
905
964
  strokeWidth: "2",
906
965
  strokeLinecap: "round",
907
966
  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"
967
+ }, rest), /* @__PURE__ */React.createElement("polyline", {
968
+ points: "15 18 9 12 15 6"
914
969
  }));
915
970
  });
916
- Compass.propTypes = {
971
+ ChevronLeft.propTypes = {
917
972
  color: PropTypes.string,
918
973
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
919
974
  };
920
- Compass.displayName = "Compass";
921
- function _extends$e() {
922
- _extends$e = Object.assign || function (target) {
975
+ ChevronLeft.displayName = "ChevronLeft";
976
+ function _extends$i() {
977
+ _extends$i = Object.assign || function (target) {
923
978
  for (var i = 1; i < arguments.length; i++) {
924
979
  var source = arguments[i];
925
980
  for (var key in source) {
@@ -930,11 +985,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
930
985
  }
931
986
  return target;
932
987
  };
933
- return _extends$e.apply(this, arguments);
988
+ return _extends$i.apply(this, arguments);
934
989
  }
935
- function _objectWithoutProperties$e(source, excluded) {
990
+ function _objectWithoutProperties$i(source, excluded) {
936
991
  if (source == null) return {};
937
- var target = _objectWithoutPropertiesLoose$e(source, excluded);
992
+ var target = _objectWithoutPropertiesLoose$i(source, excluded);
938
993
  var key, i;
939
994
  if (Object.getOwnPropertySymbols) {
940
995
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -947,7 +1002,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
947
1002
  }
948
1003
  return target;
949
1004
  }
950
- function _objectWithoutPropertiesLoose$e(source, excluded) {
1005
+ function _objectWithoutPropertiesLoose$i(source, excluded) {
951
1006
  if (source == null) return {};
952
1007
  var target = {};
953
1008
  var sourceKeys = Object.keys(source);
@@ -959,13 +1014,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
959
1014
  }
960
1015
  return target;
961
1016
  }
962
- var Copy = React.forwardRef(function (_ref, ref) {
1017
+ var ChevronRight = React.forwardRef(function (_ref, ref) {
963
1018
  var _ref$color = _ref.color,
964
1019
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
965
1020
  _ref$size = _ref.size,
966
1021
  size = _ref$size === void 0 ? 24 : _ref$size,
967
- rest = _objectWithoutProperties$e(_ref, ["color", "size"]);
968
- return /* @__PURE__ */React.createElement("svg", _extends$e({
1022
+ rest = _objectWithoutProperties$i(_ref, ["color", "size"]);
1023
+ return /* @__PURE__ */React.createElement("svg", _extends$i({
969
1024
  ref: ref,
970
1025
  xmlns: "http://www.w3.org/2000/svg",
971
1026
  width: size,
@@ -976,24 +1031,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
976
1031
  strokeWidth: "2",
977
1032
  strokeLinecap: "round",
978
1033
  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"
1034
+ }, rest), /* @__PURE__ */React.createElement("polyline", {
1035
+ points: "9 18 15 12 9 6"
988
1036
  }));
989
1037
  });
990
- Copy.propTypes = {
1038
+ ChevronRight.propTypes = {
991
1039
  color: PropTypes.string,
992
1040
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
993
1041
  };
994
- Copy.displayName = "Copy";
995
- function _extends$d() {
996
- _extends$d = Object.assign || function (target) {
1042
+ ChevronRight.displayName = "ChevronRight";
1043
+ function _extends$h() {
1044
+ _extends$h = Object.assign || function (target) {
997
1045
  for (var i = 1; i < arguments.length; i++) {
998
1046
  var source = arguments[i];
999
1047
  for (var key in source) {
@@ -1004,11 +1052,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1004
1052
  }
1005
1053
  return target;
1006
1054
  };
1007
- return _extends$d.apply(this, arguments);
1055
+ return _extends$h.apply(this, arguments);
1008
1056
  }
1009
- function _objectWithoutProperties$d(source, excluded) {
1057
+ function _objectWithoutProperties$h(source, excluded) {
1010
1058
  if (source == null) return {};
1011
- var target = _objectWithoutPropertiesLoose$d(source, excluded);
1059
+ var target = _objectWithoutPropertiesLoose$h(source, excluded);
1012
1060
  var key, i;
1013
1061
  if (Object.getOwnPropertySymbols) {
1014
1062
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1021,7 +1069,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1021
1069
  }
1022
1070
  return target;
1023
1071
  }
1024
- function _objectWithoutPropertiesLoose$d(source, excluded) {
1072
+ function _objectWithoutPropertiesLoose$h(source, excluded) {
1025
1073
  if (source == null) return {};
1026
1074
  var target = {};
1027
1075
  var sourceKeys = Object.keys(source);
@@ -1033,13 +1081,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1033
1081
  }
1034
1082
  return target;
1035
1083
  }
1036
- var FileText = React.forwardRef(function (_ref, ref) {
1084
+ var Compass = React.forwardRef(function (_ref, ref) {
1037
1085
  var _ref$color = _ref.color,
1038
1086
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1039
1087
  _ref$size = _ref.size,
1040
1088
  size = _ref$size === void 0 ? 24 : _ref$size,
1041
- rest = _objectWithoutProperties$d(_ref, ["color", "size"]);
1042
- return /* @__PURE__ */React.createElement("svg", _extends$d({
1089
+ rest = _objectWithoutProperties$h(_ref, ["color", "size"]);
1090
+ return /* @__PURE__ */React.createElement("svg", _extends$h({
1043
1091
  ref: ref,
1044
1092
  xmlns: "http://www.w3.org/2000/svg",
1045
1093
  width: size,
@@ -1050,31 +1098,21 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1050
1098
  strokeWidth: "2",
1051
1099
  strokeLinecap: "round",
1052
1100
  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"
1101
+ }, rest), /* @__PURE__ */React.createElement("circle", {
1102
+ cx: "12",
1103
+ cy: "12",
1104
+ r: "10"
1105
+ }), /* @__PURE__ */React.createElement("polygon", {
1106
+ points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"
1069
1107
  }));
1070
1108
  });
1071
- FileText.propTypes = {
1109
+ Compass.propTypes = {
1072
1110
  color: PropTypes.string,
1073
1111
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1074
1112
  };
1075
- FileText.displayName = "FileText";
1076
- function _extends$c() {
1077
- _extends$c = Object.assign || function (target) {
1113
+ Compass.displayName = "Compass";
1114
+ function _extends$g() {
1115
+ _extends$g = Object.assign || function (target) {
1078
1116
  for (var i = 1; i < arguments.length; i++) {
1079
1117
  var source = arguments[i];
1080
1118
  for (var key in source) {
@@ -1085,11 +1123,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1085
1123
  }
1086
1124
  return target;
1087
1125
  };
1088
- return _extends$c.apply(this, arguments);
1126
+ return _extends$g.apply(this, arguments);
1089
1127
  }
1090
- function _objectWithoutProperties$c(source, excluded) {
1128
+ function _objectWithoutProperties$g(source, excluded) {
1091
1129
  if (source == null) return {};
1092
- var target = _objectWithoutPropertiesLoose$c(source, excluded);
1130
+ var target = _objectWithoutPropertiesLoose$g(source, excluded);
1093
1131
  var key, i;
1094
1132
  if (Object.getOwnPropertySymbols) {
1095
1133
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1102,7 +1140,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1102
1140
  }
1103
1141
  return target;
1104
1142
  }
1105
- function _objectWithoutPropertiesLoose$c(source, excluded) {
1143
+ function _objectWithoutPropertiesLoose$g(source, excluded) {
1106
1144
  if (source == null) return {};
1107
1145
  var target = {};
1108
1146
  var sourceKeys = Object.keys(source);
@@ -1114,13 +1152,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1114
1152
  }
1115
1153
  return target;
1116
1154
  }
1117
- var Frown = React.forwardRef(function (_ref, ref) {
1155
+ var Copy = React.forwardRef(function (_ref, ref) {
1118
1156
  var _ref$color = _ref.color,
1119
1157
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1120
1158
  _ref$size = _ref.size,
1121
1159
  size = _ref$size === void 0 ? 24 : _ref$size,
1122
- rest = _objectWithoutProperties$c(_ref, ["color", "size"]);
1123
- return /* @__PURE__ */React.createElement("svg", _extends$c({
1160
+ rest = _objectWithoutProperties$g(_ref, ["color", "size"]);
1161
+ return /* @__PURE__ */React.createElement("svg", _extends$g({
1124
1162
  ref: ref,
1125
1163
  xmlns: "http://www.w3.org/2000/svg",
1126
1164
  width: size,
@@ -1131,31 +1169,24 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1131
1169
  strokeWidth: "2",
1132
1170
  strokeLinecap: "round",
1133
1171
  strokeLinejoin: "round"
1134
- }, rest), /* @__PURE__ */React.createElement("circle", {
1135
- cx: "12",
1136
- cy: "12",
1137
- r: "10"
1138
- }), /* @__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"
1172
+ }, rest), /* @__PURE__ */React.createElement("rect", {
1173
+ x: "9",
1174
+ y: "9",
1175
+ width: "13",
1176
+ height: "13",
1177
+ rx: "2",
1178
+ ry: "2"
1179
+ }), /* @__PURE__ */React.createElement("path", {
1180
+ d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
1150
1181
  }));
1151
1182
  });
1152
- Frown.propTypes = {
1183
+ Copy.propTypes = {
1153
1184
  color: PropTypes.string,
1154
1185
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1155
1186
  };
1156
- Frown.displayName = "Frown";
1157
- function _extends$b() {
1158
- _extends$b = Object.assign || function (target) {
1187
+ Copy.displayName = "Copy";
1188
+ function _extends$f() {
1189
+ _extends$f = Object.assign || function (target) {
1159
1190
  for (var i = 1; i < arguments.length; i++) {
1160
1191
  var source = arguments[i];
1161
1192
  for (var key in source) {
@@ -1166,11 +1197,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1166
1197
  }
1167
1198
  return target;
1168
1199
  };
1169
- return _extends$b.apply(this, arguments);
1200
+ return _extends$f.apply(this, arguments);
1170
1201
  }
1171
- function _objectWithoutProperties$b(source, excluded) {
1202
+ function _objectWithoutProperties$f(source, excluded) {
1172
1203
  if (source == null) return {};
1173
- var target = _objectWithoutPropertiesLoose$b(source, excluded);
1204
+ var target = _objectWithoutPropertiesLoose$f(source, excluded);
1174
1205
  var key, i;
1175
1206
  if (Object.getOwnPropertySymbols) {
1176
1207
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1183,7 +1214,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1183
1214
  }
1184
1215
  return target;
1185
1216
  }
1186
- function _objectWithoutPropertiesLoose$b(source, excluded) {
1217
+ function _objectWithoutPropertiesLoose$f(source, excluded) {
1187
1218
  if (source == null) return {};
1188
1219
  var target = {};
1189
1220
  var sourceKeys = Object.keys(source);
@@ -1195,13 +1226,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1195
1226
  }
1196
1227
  return target;
1197
1228
  }
1198
- var Heart = React.forwardRef(function (_ref, ref) {
1229
+ var FileText = React.forwardRef(function (_ref, ref) {
1199
1230
  var _ref$color = _ref.color,
1200
1231
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1201
1232
  _ref$size = _ref.size,
1202
1233
  size = _ref$size === void 0 ? 24 : _ref$size,
1203
- rest = _objectWithoutProperties$b(_ref, ["color", "size"]);
1204
- return /* @__PURE__ */React.createElement("svg", _extends$b({
1234
+ rest = _objectWithoutProperties$f(_ref, ["color", "size"]);
1235
+ return /* @__PURE__ */React.createElement("svg", _extends$f({
1205
1236
  ref: ref,
1206
1237
  xmlns: "http://www.w3.org/2000/svg",
1207
1238
  width: size,
@@ -1213,16 +1244,30 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1213
1244
  strokeLinecap: "round",
1214
1245
  strokeLinejoin: "round"
1215
1246
  }, 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"
1247
+ d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
1248
+ }), /* @__PURE__ */React.createElement("polyline", {
1249
+ points: "14 2 14 8 20 8"
1250
+ }), /* @__PURE__ */React.createElement("line", {
1251
+ x1: "16",
1252
+ y1: "13",
1253
+ x2: "8",
1254
+ y2: "13"
1255
+ }), /* @__PURE__ */React.createElement("line", {
1256
+ x1: "16",
1257
+ y1: "17",
1258
+ x2: "8",
1259
+ y2: "17"
1260
+ }), /* @__PURE__ */React.createElement("polyline", {
1261
+ points: "10 9 9 9 8 9"
1217
1262
  }));
1218
1263
  });
1219
- Heart.propTypes = {
1264
+ FileText.propTypes = {
1220
1265
  color: PropTypes.string,
1221
1266
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1222
1267
  };
1223
- Heart.displayName = "Heart";
1224
- function _extends$a() {
1225
- _extends$a = Object.assign || function (target) {
1268
+ FileText.displayName = "FileText";
1269
+ function _extends$e() {
1270
+ _extends$e = Object.assign || function (target) {
1226
1271
  for (var i = 1; i < arguments.length; i++) {
1227
1272
  var source = arguments[i];
1228
1273
  for (var key in source) {
@@ -1233,11 +1278,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1233
1278
  }
1234
1279
  return target;
1235
1280
  };
1236
- return _extends$a.apply(this, arguments);
1281
+ return _extends$e.apply(this, arguments);
1237
1282
  }
1238
- function _objectWithoutProperties$a(source, excluded) {
1283
+ function _objectWithoutProperties$e(source, excluded) {
1239
1284
  if (source == null) return {};
1240
- var target = _objectWithoutPropertiesLoose$a(source, excluded);
1285
+ var target = _objectWithoutPropertiesLoose$e(source, excluded);
1241
1286
  var key, i;
1242
1287
  if (Object.getOwnPropertySymbols) {
1243
1288
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1250,7 +1295,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1250
1295
  }
1251
1296
  return target;
1252
1297
  }
1253
- function _objectWithoutPropertiesLoose$a(source, excluded) {
1298
+ function _objectWithoutPropertiesLoose$e(source, excluded) {
1254
1299
  if (source == null) return {};
1255
1300
  var target = {};
1256
1301
  var sourceKeys = Object.keys(source);
@@ -1262,13 +1307,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1262
1307
  }
1263
1308
  return target;
1264
1309
  }
1265
- var Lock = React.forwardRef(function (_ref, ref) {
1310
+ var Frown = React.forwardRef(function (_ref, ref) {
1266
1311
  var _ref$color = _ref.color,
1267
1312
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1268
1313
  _ref$size = _ref.size,
1269
1314
  size = _ref$size === void 0 ? 24 : _ref$size,
1270
- rest = _objectWithoutProperties$a(_ref, ["color", "size"]);
1271
- return /* @__PURE__ */React.createElement("svg", _extends$a({
1315
+ rest = _objectWithoutProperties$e(_ref, ["color", "size"]);
1316
+ return /* @__PURE__ */React.createElement("svg", _extends$e({
1272
1317
  ref: ref,
1273
1318
  xmlns: "http://www.w3.org/2000/svg",
1274
1319
  width: size,
@@ -1279,24 +1324,31 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1279
1324
  strokeWidth: "2",
1280
1325
  strokeLinecap: "round",
1281
1326
  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"
1327
+ }, rest), /* @__PURE__ */React.createElement("circle", {
1328
+ cx: "12",
1329
+ cy: "12",
1330
+ r: "10"
1289
1331
  }), /* @__PURE__ */React.createElement("path", {
1290
- d: "M7 11V7a5 5 0 0 1 10 0v4"
1332
+ d: "M16 16s-1.5-2-4-2-4 2-4 2"
1333
+ }), /* @__PURE__ */React.createElement("line", {
1334
+ x1: "9",
1335
+ y1: "9",
1336
+ x2: "9.01",
1337
+ y2: "9"
1338
+ }), /* @__PURE__ */React.createElement("line", {
1339
+ x1: "15",
1340
+ y1: "9",
1341
+ x2: "15.01",
1342
+ y2: "9"
1291
1343
  }));
1292
1344
  });
1293
- Lock.propTypes = {
1345
+ Frown.propTypes = {
1294
1346
  color: PropTypes.string,
1295
1347
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1296
1348
  };
1297
- Lock.displayName = "Lock";
1298
- function _extends$9() {
1299
- _extends$9 = Object.assign || function (target) {
1349
+ Frown.displayName = "Frown";
1350
+ function _extends$d() {
1351
+ _extends$d = Object.assign || function (target) {
1300
1352
  for (var i = 1; i < arguments.length; i++) {
1301
1353
  var source = arguments[i];
1302
1354
  for (var key in source) {
@@ -1307,11 +1359,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1307
1359
  }
1308
1360
  return target;
1309
1361
  };
1310
- return _extends$9.apply(this, arguments);
1362
+ return _extends$d.apply(this, arguments);
1311
1363
  }
1312
- function _objectWithoutProperties$9(source, excluded) {
1364
+ function _objectWithoutProperties$d(source, excluded) {
1313
1365
  if (source == null) return {};
1314
- var target = _objectWithoutPropertiesLoose$9(source, excluded);
1366
+ var target = _objectWithoutPropertiesLoose$d(source, excluded);
1315
1367
  var key, i;
1316
1368
  if (Object.getOwnPropertySymbols) {
1317
1369
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1324,7 +1376,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1324
1376
  }
1325
1377
  return target;
1326
1378
  }
1327
- function _objectWithoutPropertiesLoose$9(source, excluded) {
1379
+ function _objectWithoutPropertiesLoose$d(source, excluded) {
1328
1380
  if (source == null) return {};
1329
1381
  var target = {};
1330
1382
  var sourceKeys = Object.keys(source);
@@ -1336,13 +1388,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1336
1388
  }
1337
1389
  return target;
1338
1390
  }
1339
- var Mail = React.forwardRef(function (_ref, ref) {
1391
+ var Globe = React.forwardRef(function (_ref, ref) {
1340
1392
  var _ref$color = _ref.color,
1341
1393
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1342
1394
  _ref$size = _ref.size,
1343
1395
  size = _ref$size === void 0 ? 24 : _ref$size,
1344
- rest = _objectWithoutProperties$9(_ref, ["color", "size"]);
1345
- return /* @__PURE__ */React.createElement("svg", _extends$9({
1396
+ rest = _objectWithoutProperties$d(_ref, ["color", "size"]);
1397
+ return /* @__PURE__ */React.createElement("svg", _extends$d({
1346
1398
  ref: ref,
1347
1399
  xmlns: "http://www.w3.org/2000/svg",
1348
1400
  width: size,
@@ -1353,19 +1405,26 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1353
1405
  strokeWidth: "2",
1354
1406
  strokeLinecap: "round",
1355
1407
  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"
1408
+ }, rest), /* @__PURE__ */React.createElement("circle", {
1409
+ cx: "12",
1410
+ cy: "12",
1411
+ r: "10"
1412
+ }), /* @__PURE__ */React.createElement("line", {
1413
+ x1: "2",
1414
+ y1: "12",
1415
+ x2: "22",
1416
+ y2: "12"
1417
+ }), /* @__PURE__ */React.createElement("path", {
1418
+ 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
1419
  }));
1361
1420
  });
1362
- Mail.propTypes = {
1421
+ Globe.propTypes = {
1363
1422
  color: PropTypes.string,
1364
1423
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1365
1424
  };
1366
- Mail.displayName = "Mail";
1367
- function _extends$8() {
1368
- _extends$8 = Object.assign || function (target) {
1425
+ Globe.displayName = "Globe";
1426
+ function _extends$c() {
1427
+ _extends$c = Object.assign || function (target) {
1369
1428
  for (var i = 1; i < arguments.length; i++) {
1370
1429
  var source = arguments[i];
1371
1430
  for (var key in source) {
@@ -1376,11 +1435,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1376
1435
  }
1377
1436
  return target;
1378
1437
  };
1379
- return _extends$8.apply(this, arguments);
1438
+ return _extends$c.apply(this, arguments);
1380
1439
  }
1381
- function _objectWithoutProperties$8(source, excluded) {
1440
+ function _objectWithoutProperties$c(source, excluded) {
1382
1441
  if (source == null) return {};
1383
- var target = _objectWithoutPropertiesLoose$8(source, excluded);
1442
+ var target = _objectWithoutPropertiesLoose$c(source, excluded);
1384
1443
  var key, i;
1385
1444
  if (Object.getOwnPropertySymbols) {
1386
1445
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1393,7 +1452,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1393
1452
  }
1394
1453
  return target;
1395
1454
  }
1396
- function _objectWithoutPropertiesLoose$8(source, excluded) {
1455
+ function _objectWithoutPropertiesLoose$c(source, excluded) {
1397
1456
  if (source == null) return {};
1398
1457
  var target = {};
1399
1458
  var sourceKeys = Object.keys(source);
@@ -1405,13 +1464,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1405
1464
  }
1406
1465
  return target;
1407
1466
  }
1408
- var MessageCircle = React.forwardRef(function (_ref, ref) {
1467
+ var Heart = React.forwardRef(function (_ref, ref) {
1409
1468
  var _ref$color = _ref.color,
1410
1469
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1411
1470
  _ref$size = _ref.size,
1412
1471
  size = _ref$size === void 0 ? 24 : _ref$size,
1413
- rest = _objectWithoutProperties$8(_ref, ["color", "size"]);
1414
- return /* @__PURE__ */React.createElement("svg", _extends$8({
1472
+ rest = _objectWithoutProperties$c(_ref, ["color", "size"]);
1473
+ return /* @__PURE__ */React.createElement("svg", _extends$c({
1415
1474
  ref: ref,
1416
1475
  xmlns: "http://www.w3.org/2000/svg",
1417
1476
  width: size,
@@ -1423,16 +1482,16 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1423
1482
  strokeLinecap: "round",
1424
1483
  strokeLinejoin: "round"
1425
1484
  }, 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"
1485
+ 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
1486
  }));
1428
1487
  });
1429
- MessageCircle.propTypes = {
1488
+ Heart.propTypes = {
1430
1489
  color: PropTypes.string,
1431
1490
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1432
1491
  };
1433
- MessageCircle.displayName = "MessageCircle";
1434
- function _extends$7() {
1435
- _extends$7 = Object.assign || function (target) {
1492
+ Heart.displayName = "Heart";
1493
+ function _extends$b() {
1494
+ _extends$b = Object.assign || function (target) {
1436
1495
  for (var i = 1; i < arguments.length; i++) {
1437
1496
  var source = arguments[i];
1438
1497
  for (var key in source) {
@@ -1443,11 +1502,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1443
1502
  }
1444
1503
  return target;
1445
1504
  };
1446
- return _extends$7.apply(this, arguments);
1505
+ return _extends$b.apply(this, arguments);
1447
1506
  }
1448
- function _objectWithoutProperties$7(source, excluded) {
1507
+ function _objectWithoutProperties$b(source, excluded) {
1449
1508
  if (source == null) return {};
1450
- var target = _objectWithoutPropertiesLoose$7(source, excluded);
1509
+ var target = _objectWithoutPropertiesLoose$b(source, excluded);
1451
1510
  var key, i;
1452
1511
  if (Object.getOwnPropertySymbols) {
1453
1512
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1460,7 +1519,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1460
1519
  }
1461
1520
  return target;
1462
1521
  }
1463
- function _objectWithoutPropertiesLoose$7(source, excluded) {
1522
+ function _objectWithoutPropertiesLoose$b(source, excluded) {
1464
1523
  if (source == null) return {};
1465
1524
  var target = {};
1466
1525
  var sourceKeys = Object.keys(source);
@@ -1472,13 +1531,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1472
1531
  }
1473
1532
  return target;
1474
1533
  }
1475
- var MessageSquare = React.forwardRef(function (_ref, ref) {
1534
+ var Lock = React.forwardRef(function (_ref, ref) {
1476
1535
  var _ref$color = _ref.color,
1477
1536
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1478
1537
  _ref$size = _ref.size,
1479
1538
  size = _ref$size === void 0 ? 24 : _ref$size,
1480
- rest = _objectWithoutProperties$7(_ref, ["color", "size"]);
1481
- return /* @__PURE__ */React.createElement("svg", _extends$7({
1539
+ rest = _objectWithoutProperties$b(_ref, ["color", "size"]);
1540
+ return /* @__PURE__ */React.createElement("svg", _extends$b({
1482
1541
  ref: ref,
1483
1542
  xmlns: "http://www.w3.org/2000/svg",
1484
1543
  width: size,
@@ -1489,17 +1548,24 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1489
1548
  strokeWidth: "2",
1490
1549
  strokeLinecap: "round",
1491
1550
  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"
1551
+ }, rest), /* @__PURE__ */React.createElement("rect", {
1552
+ x: "3",
1553
+ y: "11",
1554
+ width: "18",
1555
+ height: "11",
1556
+ rx: "2",
1557
+ ry: "2"
1558
+ }), /* @__PURE__ */React.createElement("path", {
1559
+ d: "M7 11V7a5 5 0 0 1 10 0v4"
1494
1560
  }));
1495
1561
  });
1496
- MessageSquare.propTypes = {
1562
+ Lock.propTypes = {
1497
1563
  color: PropTypes.string,
1498
1564
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1499
1565
  };
1500
- MessageSquare.displayName = "MessageSquare";
1501
- function _extends$6() {
1502
- _extends$6 = Object.assign || function (target) {
1566
+ Lock.displayName = "Lock";
1567
+ function _extends$a() {
1568
+ _extends$a = Object.assign || function (target) {
1503
1569
  for (var i = 1; i < arguments.length; i++) {
1504
1570
  var source = arguments[i];
1505
1571
  for (var key in source) {
@@ -1510,11 +1576,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1510
1576
  }
1511
1577
  return target;
1512
1578
  };
1513
- return _extends$6.apply(this, arguments);
1579
+ return _extends$a.apply(this, arguments);
1514
1580
  }
1515
- function _objectWithoutProperties$6(source, excluded) {
1581
+ function _objectWithoutProperties$a(source, excluded) {
1516
1582
  if (source == null) return {};
1517
- var target = _objectWithoutPropertiesLoose$6(source, excluded);
1583
+ var target = _objectWithoutPropertiesLoose$a(source, excluded);
1518
1584
  var key, i;
1519
1585
  if (Object.getOwnPropertySymbols) {
1520
1586
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1527,7 +1593,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1527
1593
  }
1528
1594
  return target;
1529
1595
  }
1530
- function _objectWithoutPropertiesLoose$6(source, excluded) {
1596
+ function _objectWithoutPropertiesLoose$a(source, excluded) {
1531
1597
  if (source == null) return {};
1532
1598
  var target = {};
1533
1599
  var sourceKeys = Object.keys(source);
@@ -1539,13 +1605,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1539
1605
  }
1540
1606
  return target;
1541
1607
  }
1542
- var Paperclip = React.forwardRef(function (_ref, ref) {
1608
+ var Mail = React.forwardRef(function (_ref, ref) {
1543
1609
  var _ref$color = _ref.color,
1544
1610
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1545
1611
  _ref$size = _ref.size,
1546
1612
  size = _ref$size === void 0 ? 24 : _ref$size,
1547
- rest = _objectWithoutProperties$6(_ref, ["color", "size"]);
1548
- return /* @__PURE__ */React.createElement("svg", _extends$6({
1613
+ rest = _objectWithoutProperties$a(_ref, ["color", "size"]);
1614
+ return /* @__PURE__ */React.createElement("svg", _extends$a({
1549
1615
  ref: ref,
1550
1616
  xmlns: "http://www.w3.org/2000/svg",
1551
1617
  width: size,
@@ -1557,16 +1623,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1557
1623
  strokeLinecap: "round",
1558
1624
  strokeLinejoin: "round"
1559
1625
  }, 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"
1626
+ 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"
1627
+ }), /* @__PURE__ */React.createElement("polyline", {
1628
+ points: "22,6 12,13 2,6"
1561
1629
  }));
1562
1630
  });
1563
- Paperclip.propTypes = {
1631
+ Mail.propTypes = {
1564
1632
  color: PropTypes.string,
1565
1633
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1566
1634
  };
1567
- Paperclip.displayName = "Paperclip";
1568
- function _extends$5() {
1569
- _extends$5 = Object.assign || function (target) {
1635
+ Mail.displayName = "Mail";
1636
+ function _extends$9() {
1637
+ _extends$9 = Object.assign || function (target) {
1570
1638
  for (var i = 1; i < arguments.length; i++) {
1571
1639
  var source = arguments[i];
1572
1640
  for (var key in source) {
@@ -1577,11 +1645,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1577
1645
  }
1578
1646
  return target;
1579
1647
  };
1580
- return _extends$5.apply(this, arguments);
1648
+ return _extends$9.apply(this, arguments);
1581
1649
  }
1582
- function _objectWithoutProperties$5(source, excluded) {
1650
+ function _objectWithoutProperties$9(source, excluded) {
1583
1651
  if (source == null) return {};
1584
- var target = _objectWithoutPropertiesLoose$5(source, excluded);
1652
+ var target = _objectWithoutPropertiesLoose$9(source, excluded);
1585
1653
  var key, i;
1586
1654
  if (Object.getOwnPropertySymbols) {
1587
1655
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1594,7 +1662,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1594
1662
  }
1595
1663
  return target;
1596
1664
  }
1597
- function _objectWithoutPropertiesLoose$5(source, excluded) {
1665
+ function _objectWithoutPropertiesLoose$9(source, excluded) {
1598
1666
  if (source == null) return {};
1599
1667
  var target = {};
1600
1668
  var sourceKeys = Object.keys(source);
@@ -1606,13 +1674,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1606
1674
  }
1607
1675
  return target;
1608
1676
  }
1609
- var Plus = React.forwardRef(function (_ref, ref) {
1677
+ var MessageCircle = React.forwardRef(function (_ref, ref) {
1610
1678
  var _ref$color = _ref.color,
1611
1679
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1612
1680
  _ref$size = _ref.size,
1613
1681
  size = _ref$size === void 0 ? 24 : _ref$size,
1614
- rest = _objectWithoutProperties$5(_ref, ["color", "size"]);
1615
- return /* @__PURE__ */React.createElement("svg", _extends$5({
1682
+ rest = _objectWithoutProperties$9(_ref, ["color", "size"]);
1683
+ return /* @__PURE__ */React.createElement("svg", _extends$9({
1616
1684
  ref: ref,
1617
1685
  xmlns: "http://www.w3.org/2000/svg",
1618
1686
  width: size,
@@ -1623,25 +1691,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1623
1691
  strokeWidth: "2",
1624
1692
  strokeLinecap: "round",
1625
1693
  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"
1694
+ }, rest), /* @__PURE__ */React.createElement("path", {
1695
+ 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"
1636
1696
  }));
1637
1697
  });
1638
- Plus.propTypes = {
1698
+ MessageCircle.propTypes = {
1639
1699
  color: PropTypes.string,
1640
1700
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1641
1701
  };
1642
- Plus.displayName = "Plus";
1643
- function _extends$4() {
1644
- _extends$4 = Object.assign || function (target) {
1702
+ MessageCircle.displayName = "MessageCircle";
1703
+ function _extends$8() {
1704
+ _extends$8 = Object.assign || function (target) {
1645
1705
  for (var i = 1; i < arguments.length; i++) {
1646
1706
  var source = arguments[i];
1647
1707
  for (var key in source) {
@@ -1652,11 +1712,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1652
1712
  }
1653
1713
  return target;
1654
1714
  };
1655
- return _extends$4.apply(this, arguments);
1715
+ return _extends$8.apply(this, arguments);
1656
1716
  }
1657
- function _objectWithoutProperties$4(source, excluded) {
1717
+ function _objectWithoutProperties$8(source, excluded) {
1658
1718
  if (source == null) return {};
1659
- var target = _objectWithoutPropertiesLoose$4(source, excluded);
1719
+ var target = _objectWithoutPropertiesLoose$8(source, excluded);
1660
1720
  var key, i;
1661
1721
  if (Object.getOwnPropertySymbols) {
1662
1722
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1669,7 +1729,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1669
1729
  }
1670
1730
  return target;
1671
1731
  }
1672
- function _objectWithoutPropertiesLoose$4(source, excluded) {
1732
+ function _objectWithoutPropertiesLoose$8(source, excluded) {
1673
1733
  if (source == null) return {};
1674
1734
  var target = {};
1675
1735
  var sourceKeys = Object.keys(source);
@@ -1681,13 +1741,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1681
1741
  }
1682
1742
  return target;
1683
1743
  }
1684
- var Scissors = React.forwardRef(function (_ref, ref) {
1744
+ var MessageSquare = React.forwardRef(function (_ref, ref) {
1685
1745
  var _ref$color = _ref.color,
1686
1746
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1687
1747
  _ref$size = _ref.size,
1688
1748
  size = _ref$size === void 0 ? 24 : _ref$size,
1689
- rest = _objectWithoutProperties$4(_ref, ["color", "size"]);
1690
- return /* @__PURE__ */React.createElement("svg", _extends$4({
1749
+ rest = _objectWithoutProperties$8(_ref, ["color", "size"]);
1750
+ return /* @__PURE__ */React.createElement("svg", _extends$8({
1691
1751
  ref: ref,
1692
1752
  xmlns: "http://www.w3.org/2000/svg",
1693
1753
  width: size,
@@ -1698,38 +1758,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1698
1758
  strokeWidth: "2",
1699
1759
  strokeLinecap: "round",
1700
1760
  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"
1761
+ }, rest), /* @__PURE__ */React.createElement("path", {
1762
+ d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"
1724
1763
  }));
1725
1764
  });
1726
- Scissors.propTypes = {
1765
+ MessageSquare.propTypes = {
1727
1766
  color: PropTypes.string,
1728
1767
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1729
1768
  };
1730
- Scissors.displayName = "Scissors";
1731
- function _extends$3() {
1732
- _extends$3 = Object.assign || function (target) {
1769
+ MessageSquare.displayName = "MessageSquare";
1770
+ function _extends$7() {
1771
+ _extends$7 = Object.assign || function (target) {
1733
1772
  for (var i = 1; i < arguments.length; i++) {
1734
1773
  var source = arguments[i];
1735
1774
  for (var key in source) {
@@ -1740,11 +1779,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1740
1779
  }
1741
1780
  return target;
1742
1781
  };
1743
- return _extends$3.apply(this, arguments);
1782
+ return _extends$7.apply(this, arguments);
1744
1783
  }
1745
- function _objectWithoutProperties$3(source, excluded) {
1784
+ function _objectWithoutProperties$7(source, excluded) {
1746
1785
  if (source == null) return {};
1747
- var target = _objectWithoutPropertiesLoose$3(source, excluded);
1786
+ var target = _objectWithoutPropertiesLoose$7(source, excluded);
1748
1787
  var key, i;
1749
1788
  if (Object.getOwnPropertySymbols) {
1750
1789
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1757,7 +1796,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1757
1796
  }
1758
1797
  return target;
1759
1798
  }
1760
- function _objectWithoutPropertiesLoose$3(source, excluded) {
1799
+ function _objectWithoutPropertiesLoose$7(source, excluded) {
1761
1800
  if (source == null) return {};
1762
1801
  var target = {};
1763
1802
  var sourceKeys = Object.keys(source);
@@ -1769,13 +1808,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1769
1808
  }
1770
1809
  return target;
1771
1810
  }
1772
- var Settings = React.forwardRef(function (_ref, ref) {
1811
+ var Paperclip = React.forwardRef(function (_ref, ref) {
1773
1812
  var _ref$color = _ref.color,
1774
1813
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1775
1814
  _ref$size = _ref.size,
1776
1815
  size = _ref$size === void 0 ? 24 : _ref$size,
1777
- rest = _objectWithoutProperties$3(_ref, ["color", "size"]);
1778
- return /* @__PURE__ */React.createElement("svg", _extends$3({
1816
+ rest = _objectWithoutProperties$7(_ref, ["color", "size"]);
1817
+ return /* @__PURE__ */React.createElement("svg", _extends$7({
1779
1818
  ref: ref,
1780
1819
  xmlns: "http://www.w3.org/2000/svg",
1781
1820
  width: size,
@@ -1786,21 +1825,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1786
1825
  strokeWidth: "2",
1787
1826
  strokeLinecap: "round",
1788
1827
  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"
1828
+ }, rest), /* @__PURE__ */React.createElement("path", {
1829
+ 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
1830
  }));
1796
1831
  });
1797
- Settings.propTypes = {
1832
+ Paperclip.propTypes = {
1798
1833
  color: PropTypes.string,
1799
1834
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1800
1835
  };
1801
- Settings.displayName = "Settings";
1802
- function _extends$2() {
1803
- _extends$2 = Object.assign || function (target) {
1836
+ Paperclip.displayName = "Paperclip";
1837
+ function _extends$6() {
1838
+ _extends$6 = Object.assign || function (target) {
1804
1839
  for (var i = 1; i < arguments.length; i++) {
1805
1840
  var source = arguments[i];
1806
1841
  for (var key in source) {
@@ -1811,11 +1846,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1811
1846
  }
1812
1847
  return target;
1813
1848
  };
1814
- return _extends$2.apply(this, arguments);
1849
+ return _extends$6.apply(this, arguments);
1815
1850
  }
1816
- function _objectWithoutProperties$2(source, excluded) {
1851
+ function _objectWithoutProperties$6(source, excluded) {
1817
1852
  if (source == null) return {};
1818
- var target = _objectWithoutPropertiesLoose$2(source, excluded);
1853
+ var target = _objectWithoutPropertiesLoose$6(source, excluded);
1819
1854
  var key, i;
1820
1855
  if (Object.getOwnPropertySymbols) {
1821
1856
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1828,7 +1863,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1828
1863
  }
1829
1864
  return target;
1830
1865
  }
1831
- function _objectWithoutPropertiesLoose$2(source, excluded) {
1866
+ function _objectWithoutPropertiesLoose$6(source, excluded) {
1832
1867
  if (source == null) return {};
1833
1868
  var target = {};
1834
1869
  var sourceKeys = Object.keys(source);
@@ -1840,13 +1875,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1840
1875
  }
1841
1876
  return target;
1842
1877
  }
1843
- var Smile = React.forwardRef(function (_ref, ref) {
1878
+ var Plus = React.forwardRef(function (_ref, ref) {
1844
1879
  var _ref$color = _ref.color,
1845
1880
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1846
1881
  _ref$size = _ref.size,
1847
1882
  size = _ref$size === void 0 ? 24 : _ref$size,
1848
- rest = _objectWithoutProperties$2(_ref, ["color", "size"]);
1849
- return /* @__PURE__ */React.createElement("svg", _extends$2({
1883
+ rest = _objectWithoutProperties$6(_ref, ["color", "size"]);
1884
+ return /* @__PURE__ */React.createElement("svg", _extends$6({
1850
1885
  ref: ref,
1851
1886
  xmlns: "http://www.w3.org/2000/svg",
1852
1887
  width: size,
@@ -1857,31 +1892,25 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1857
1892
  strokeWidth: "2",
1858
1893
  strokeLinecap: "round",
1859
1894
  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"
1895
+ }, rest), /* @__PURE__ */React.createElement("line", {
1896
+ x1: "12",
1897
+ y1: "5",
1898
+ x2: "12",
1899
+ y2: "19"
1871
1900
  }), /* @__PURE__ */React.createElement("line", {
1872
- x1: "15",
1873
- y1: "9",
1874
- x2: "15.01",
1875
- y2: "9"
1901
+ x1: "5",
1902
+ y1: "12",
1903
+ x2: "19",
1904
+ y2: "12"
1876
1905
  }));
1877
1906
  });
1878
- Smile.propTypes = {
1907
+ Plus.propTypes = {
1879
1908
  color: PropTypes.string,
1880
1909
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1881
1910
  };
1882
- Smile.displayName = "Smile";
1883
- function _extends$1() {
1884
- _extends$1 = Object.assign || function (target) {
1911
+ Plus.displayName = "Plus";
1912
+ function _extends$5() {
1913
+ _extends$5 = Object.assign || function (target) {
1885
1914
  for (var i = 1; i < arguments.length; i++) {
1886
1915
  var source = arguments[i];
1887
1916
  for (var key in source) {
@@ -1892,11 +1921,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1892
1921
  }
1893
1922
  return target;
1894
1923
  };
1895
- return _extends$1.apply(this, arguments);
1924
+ return _extends$5.apply(this, arguments);
1896
1925
  }
1897
- function _objectWithoutProperties$1(source, excluded) {
1926
+ function _objectWithoutProperties$5(source, excluded) {
1898
1927
  if (source == null) return {};
1899
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
1928
+ var target = _objectWithoutPropertiesLoose$5(source, excluded);
1900
1929
  var key, i;
1901
1930
  if (Object.getOwnPropertySymbols) {
1902
1931
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1909,7 +1938,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1909
1938
  }
1910
1939
  return target;
1911
1940
  }
1912
- function _objectWithoutPropertiesLoose$1(source, excluded) {
1941
+ function _objectWithoutPropertiesLoose$5(source, excluded) {
1913
1942
  if (source == null) return {};
1914
1943
  var target = {};
1915
1944
  var sourceKeys = Object.keys(source);
@@ -1921,13 +1950,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1921
1950
  }
1922
1951
  return target;
1923
1952
  }
1924
- var ThumbsUp = React.forwardRef(function (_ref, ref) {
1953
+ var Scissors = React.forwardRef(function (_ref, ref) {
1925
1954
  var _ref$color = _ref.color,
1926
1955
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1927
1956
  _ref$size = _ref.size,
1928
1957
  size = _ref$size === void 0 ? 24 : _ref$size,
1929
- rest = _objectWithoutProperties$1(_ref, ["color", "size"]);
1930
- return /* @__PURE__ */React.createElement("svg", _extends$1({
1958
+ rest = _objectWithoutProperties$5(_ref, ["color", "size"]);
1959
+ return /* @__PURE__ */React.createElement("svg", _extends$5({
1931
1960
  ref: ref,
1932
1961
  xmlns: "http://www.w3.org/2000/svg",
1933
1962
  width: size,
@@ -1938,17 +1967,38 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1938
1967
  strokeWidth: "2",
1939
1968
  strokeLinecap: "round",
1940
1969
  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"
1970
+ }, rest), /* @__PURE__ */React.createElement("circle", {
1971
+ cx: "6",
1972
+ cy: "6",
1973
+ r: "3"
1974
+ }), /* @__PURE__ */React.createElement("circle", {
1975
+ cx: "6",
1976
+ cy: "18",
1977
+ r: "3"
1978
+ }), /* @__PURE__ */React.createElement("line", {
1979
+ x1: "20",
1980
+ y1: "4",
1981
+ x2: "8.12",
1982
+ y2: "15.88"
1983
+ }), /* @__PURE__ */React.createElement("line", {
1984
+ x1: "14.47",
1985
+ y1: "14.48",
1986
+ x2: "20",
1987
+ y2: "20"
1988
+ }), /* @__PURE__ */React.createElement("line", {
1989
+ x1: "8.12",
1990
+ y1: "8.12",
1991
+ x2: "12",
1992
+ y2: "12"
1943
1993
  }));
1944
1994
  });
1945
- ThumbsUp.propTypes = {
1995
+ Scissors.propTypes = {
1946
1996
  color: PropTypes.string,
1947
1997
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
1948
1998
  };
1949
- ThumbsUp.displayName = "ThumbsUp";
1950
- function _extends() {
1951
- _extends = Object.assign || function (target) {
1999
+ Scissors.displayName = "Scissors";
2000
+ function _extends$4() {
2001
+ _extends$4 = Object.assign || function (target) {
1952
2002
  for (var i = 1; i < arguments.length; i++) {
1953
2003
  var source = arguments[i];
1954
2004
  for (var key in source) {
@@ -1959,11 +2009,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1959
2009
  }
1960
2010
  return target;
1961
2011
  };
1962
- return _extends.apply(this, arguments);
2012
+ return _extends$4.apply(this, arguments);
1963
2013
  }
1964
- function _objectWithoutProperties(source, excluded) {
2014
+ function _objectWithoutProperties$4(source, excluded) {
1965
2015
  if (source == null) return {};
1966
- var target = _objectWithoutPropertiesLoose(source, excluded);
2016
+ var target = _objectWithoutPropertiesLoose$4(source, excluded);
1967
2017
  var key, i;
1968
2018
  if (Object.getOwnPropertySymbols) {
1969
2019
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1976,7 +2026,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1976
2026
  }
1977
2027
  return target;
1978
2028
  }
1979
- function _objectWithoutPropertiesLoose(source, excluded) {
2029
+ function _objectWithoutPropertiesLoose$4(source, excluded) {
1980
2030
  if (source == null) return {};
1981
2031
  var target = {};
1982
2032
  var sourceKeys = Object.keys(source);
@@ -1988,13 +2038,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1988
2038
  }
1989
2039
  return target;
1990
2040
  }
1991
- var Zap = React.forwardRef(function (_ref, ref) {
2041
+ var Settings = React.forwardRef(function (_ref, ref) {
1992
2042
  var _ref$color = _ref.color,
1993
2043
  color = _ref$color === void 0 ? "currentColor" : _ref$color,
1994
2044
  _ref$size = _ref.size,
1995
2045
  size = _ref$size === void 0 ? 24 : _ref$size,
1996
- rest = _objectWithoutProperties(_ref, ["color", "size"]);
1997
- return /* @__PURE__ */React.createElement("svg", _extends({
2046
+ rest = _objectWithoutProperties$4(_ref, ["color", "size"]);
2047
+ return /* @__PURE__ */React.createElement("svg", _extends$4({
1998
2048
  ref: ref,
1999
2049
  xmlns: "http://www.w3.org/2000/svg",
2000
2050
  width: size,
@@ -2005,69 +2055,363 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2005
2055
  strokeWidth: "2",
2006
2056
  strokeLinecap: "round",
2007
2057
  strokeLinejoin: "round"
2008
- }, rest), /* @__PURE__ */React.createElement("polygon", {
2009
- points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2"
2058
+ }, rest), /* @__PURE__ */React.createElement("circle", {
2059
+ cx: "12",
2060
+ cy: "12",
2061
+ r: "3"
2062
+ }), /* @__PURE__ */React.createElement("path", {
2063
+ 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
2064
  }));
2011
2065
  });
2012
- Zap.propTypes = {
2066
+ Settings.propTypes = {
2013
2067
  color: PropTypes.string,
2014
2068
  size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2015
2069
  };
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;
2049
- }
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,
2059
- coords: {
2060
- top: 0,
2061
- left: 0
2070
+ Settings.displayName = "Settings";
2071
+ function _extends$3() {
2072
+ _extends$3 = Object.assign || function (target) {
2073
+ for (var i = 1; i < arguments.length; i++) {
2074
+ var source = arguments[i];
2075
+ for (var key in source) {
2076
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2077
+ target[key] = source[key];
2078
+ }
2062
2079
  }
2063
- };
2064
- _this.triggerRef = React__namespace.createRef();
2065
- _this.tooltipRef = React__namespace.createRef();
2066
- return _this;
2067
- }
2068
- _inherits(Tooltip, _React__namespace$Com);
2069
- return _createClass(Tooltip, [{
2070
- key: "computeCoords",
2080
+ }
2081
+ return target;
2082
+ };
2083
+ return _extends$3.apply(this, arguments);
2084
+ }
2085
+ function _objectWithoutProperties$3(source, excluded) {
2086
+ if (source == null) return {};
2087
+ var target = _objectWithoutPropertiesLoose$3(source, excluded);
2088
+ var key, i;
2089
+ if (Object.getOwnPropertySymbols) {
2090
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2091
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2092
+ key = sourceSymbolKeys[i];
2093
+ if (excluded.indexOf(key) >= 0) continue;
2094
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2095
+ target[key] = source[key];
2096
+ }
2097
+ }
2098
+ return target;
2099
+ }
2100
+ function _objectWithoutPropertiesLoose$3(source, excluded) {
2101
+ if (source == null) return {};
2102
+ var target = {};
2103
+ var sourceKeys = Object.keys(source);
2104
+ var key, i;
2105
+ for (i = 0; i < sourceKeys.length; i++) {
2106
+ key = sourceKeys[i];
2107
+ if (excluded.indexOf(key) >= 0) continue;
2108
+ target[key] = source[key];
2109
+ }
2110
+ return target;
2111
+ }
2112
+ var Smile = React.forwardRef(function (_ref, ref) {
2113
+ var _ref$color = _ref.color,
2114
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2115
+ _ref$size = _ref.size,
2116
+ size = _ref$size === void 0 ? 24 : _ref$size,
2117
+ rest = _objectWithoutProperties$3(_ref, ["color", "size"]);
2118
+ return /* @__PURE__ */React.createElement("svg", _extends$3({
2119
+ ref: ref,
2120
+ xmlns: "http://www.w3.org/2000/svg",
2121
+ width: size,
2122
+ height: size,
2123
+ viewBox: "0 0 24 24",
2124
+ fill: "none",
2125
+ stroke: color,
2126
+ strokeWidth: "2",
2127
+ strokeLinecap: "round",
2128
+ strokeLinejoin: "round"
2129
+ }, rest), /* @__PURE__ */React.createElement("circle", {
2130
+ cx: "12",
2131
+ cy: "12",
2132
+ r: "10"
2133
+ }), /* @__PURE__ */React.createElement("path", {
2134
+ d: "M8 14s1.5 2 4 2 4-2 4-2"
2135
+ }), /* @__PURE__ */React.createElement("line", {
2136
+ x1: "9",
2137
+ y1: "9",
2138
+ x2: "9.01",
2139
+ y2: "9"
2140
+ }), /* @__PURE__ */React.createElement("line", {
2141
+ x1: "15",
2142
+ y1: "9",
2143
+ x2: "15.01",
2144
+ y2: "9"
2145
+ }));
2146
+ });
2147
+ Smile.propTypes = {
2148
+ color: PropTypes.string,
2149
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2150
+ };
2151
+ Smile.displayName = "Smile";
2152
+ function _extends$2() {
2153
+ _extends$2 = Object.assign || function (target) {
2154
+ for (var i = 1; i < arguments.length; i++) {
2155
+ var source = arguments[i];
2156
+ for (var key in source) {
2157
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2158
+ target[key] = source[key];
2159
+ }
2160
+ }
2161
+ }
2162
+ return target;
2163
+ };
2164
+ return _extends$2.apply(this, arguments);
2165
+ }
2166
+ function _objectWithoutProperties$2(source, excluded) {
2167
+ if (source == null) return {};
2168
+ var target = _objectWithoutPropertiesLoose$2(source, excluded);
2169
+ var key, i;
2170
+ if (Object.getOwnPropertySymbols) {
2171
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2172
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2173
+ key = sourceSymbolKeys[i];
2174
+ if (excluded.indexOf(key) >= 0) continue;
2175
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2176
+ target[key] = source[key];
2177
+ }
2178
+ }
2179
+ return target;
2180
+ }
2181
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
2182
+ if (source == null) return {};
2183
+ var target = {};
2184
+ var sourceKeys = Object.keys(source);
2185
+ var key, i;
2186
+ for (i = 0; i < sourceKeys.length; i++) {
2187
+ key = sourceKeys[i];
2188
+ if (excluded.indexOf(key) >= 0) continue;
2189
+ target[key] = source[key];
2190
+ }
2191
+ return target;
2192
+ }
2193
+ var ThumbsUp = React.forwardRef(function (_ref, ref) {
2194
+ var _ref$color = _ref.color,
2195
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2196
+ _ref$size = _ref.size,
2197
+ size = _ref$size === void 0 ? 24 : _ref$size,
2198
+ rest = _objectWithoutProperties$2(_ref, ["color", "size"]);
2199
+ return /* @__PURE__ */React.createElement("svg", _extends$2({
2200
+ ref: ref,
2201
+ xmlns: "http://www.w3.org/2000/svg",
2202
+ width: size,
2203
+ height: size,
2204
+ viewBox: "0 0 24 24",
2205
+ fill: "none",
2206
+ stroke: color,
2207
+ strokeWidth: "2",
2208
+ strokeLinecap: "round",
2209
+ strokeLinejoin: "round"
2210
+ }, rest), /* @__PURE__ */React.createElement("path", {
2211
+ 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"
2212
+ }));
2213
+ });
2214
+ ThumbsUp.propTypes = {
2215
+ color: PropTypes.string,
2216
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2217
+ };
2218
+ ThumbsUp.displayName = "ThumbsUp";
2219
+ function _extends$1() {
2220
+ _extends$1 = Object.assign || function (target) {
2221
+ for (var i = 1; i < arguments.length; i++) {
2222
+ var source = arguments[i];
2223
+ for (var key in source) {
2224
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2225
+ target[key] = source[key];
2226
+ }
2227
+ }
2228
+ }
2229
+ return target;
2230
+ };
2231
+ return _extends$1.apply(this, arguments);
2232
+ }
2233
+ function _objectWithoutProperties$1(source, excluded) {
2234
+ if (source == null) return {};
2235
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
2236
+ var key, i;
2237
+ if (Object.getOwnPropertySymbols) {
2238
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2239
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2240
+ key = sourceSymbolKeys[i];
2241
+ if (excluded.indexOf(key) >= 0) continue;
2242
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2243
+ target[key] = source[key];
2244
+ }
2245
+ }
2246
+ return target;
2247
+ }
2248
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
2249
+ if (source == null) return {};
2250
+ var target = {};
2251
+ var sourceKeys = Object.keys(source);
2252
+ var key, i;
2253
+ for (i = 0; i < sourceKeys.length; i++) {
2254
+ key = sourceKeys[i];
2255
+ if (excluded.indexOf(key) >= 0) continue;
2256
+ target[key] = source[key];
2257
+ }
2258
+ return target;
2259
+ }
2260
+ var X = React.forwardRef(function (_ref, ref) {
2261
+ var _ref$color = _ref.color,
2262
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2263
+ _ref$size = _ref.size,
2264
+ size = _ref$size === void 0 ? 24 : _ref$size,
2265
+ rest = _objectWithoutProperties$1(_ref, ["color", "size"]);
2266
+ return /* @__PURE__ */React.createElement("svg", _extends$1({
2267
+ ref: ref,
2268
+ xmlns: "http://www.w3.org/2000/svg",
2269
+ width: size,
2270
+ height: size,
2271
+ viewBox: "0 0 24 24",
2272
+ fill: "none",
2273
+ stroke: color,
2274
+ strokeWidth: "2",
2275
+ strokeLinecap: "round",
2276
+ strokeLinejoin: "round"
2277
+ }, rest), /* @__PURE__ */React.createElement("line", {
2278
+ x1: "18",
2279
+ y1: "6",
2280
+ x2: "6",
2281
+ y2: "18"
2282
+ }), /* @__PURE__ */React.createElement("line", {
2283
+ x1: "6",
2284
+ y1: "6",
2285
+ x2: "18",
2286
+ y2: "18"
2287
+ }));
2288
+ });
2289
+ X.propTypes = {
2290
+ color: PropTypes.string,
2291
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2292
+ };
2293
+ X.displayName = "X";
2294
+ function _extends() {
2295
+ _extends = Object.assign || function (target) {
2296
+ for (var i = 1; i < arguments.length; i++) {
2297
+ var source = arguments[i];
2298
+ for (var key in source) {
2299
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2300
+ target[key] = source[key];
2301
+ }
2302
+ }
2303
+ }
2304
+ return target;
2305
+ };
2306
+ return _extends.apply(this, arguments);
2307
+ }
2308
+ function _objectWithoutProperties(source, excluded) {
2309
+ if (source == null) return {};
2310
+ var target = _objectWithoutPropertiesLoose(source, excluded);
2311
+ var key, i;
2312
+ if (Object.getOwnPropertySymbols) {
2313
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2314
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
2315
+ key = sourceSymbolKeys[i];
2316
+ if (excluded.indexOf(key) >= 0) continue;
2317
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2318
+ target[key] = source[key];
2319
+ }
2320
+ }
2321
+ return target;
2322
+ }
2323
+ function _objectWithoutPropertiesLoose(source, excluded) {
2324
+ if (source == null) return {};
2325
+ var target = {};
2326
+ var sourceKeys = Object.keys(source);
2327
+ var key, i;
2328
+ for (i = 0; i < sourceKeys.length; i++) {
2329
+ key = sourceKeys[i];
2330
+ if (excluded.indexOf(key) >= 0) continue;
2331
+ target[key] = source[key];
2332
+ }
2333
+ return target;
2334
+ }
2335
+ var Zap = React.forwardRef(function (_ref, ref) {
2336
+ var _ref$color = _ref.color,
2337
+ color = _ref$color === void 0 ? "currentColor" : _ref$color,
2338
+ _ref$size = _ref.size,
2339
+ size = _ref$size === void 0 ? 24 : _ref$size,
2340
+ rest = _objectWithoutProperties(_ref, ["color", "size"]);
2341
+ return /* @__PURE__ */React.createElement("svg", _extends({
2342
+ ref: ref,
2343
+ xmlns: "http://www.w3.org/2000/svg",
2344
+ width: size,
2345
+ height: size,
2346
+ viewBox: "0 0 24 24",
2347
+ fill: "none",
2348
+ stroke: color,
2349
+ strokeWidth: "2",
2350
+ strokeLinecap: "round",
2351
+ strokeLinejoin: "round"
2352
+ }, rest), /* @__PURE__ */React.createElement("polygon", {
2353
+ points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2"
2354
+ }));
2355
+ });
2356
+ Zap.propTypes = {
2357
+ color: PropTypes.string,
2358
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2359
+ };
2360
+ Zap.displayName = "Zap";
2361
+ var ARROW_SIZE = 6;
2362
+ var GAP = 4;
2363
+ var Tooltip = /*#__PURE__*/function (_React__namespace$Com) {
2364
+ function Tooltip(props) {
2365
+ var _this;
2366
+ _classCallCheck(this, Tooltip);
2367
+ _this = _callSuper(this, Tooltip, [props]);
2368
+ __publicField(_this, "triggerRef");
2369
+ __publicField(_this, "tooltipRef");
2370
+ __publicField(_this, "enterTimer", null);
2371
+ __publicField(_this, "leaveTimer", null);
2372
+ __publicField(_this, "handleMouseEnter", function () {
2373
+ if (_this.leaveTimer) {
2374
+ clearTimeout(_this.leaveTimer);
2375
+ _this.leaveTimer = null;
2376
+ }
2377
+ var enterDelay = _this.props.enterDelay;
2378
+ _this.enterTimer = setTimeout(function () {
2379
+ _this.setState({
2380
+ visible: true
2381
+ }, function () {
2382
+ var coords = _this.computeCoords();
2383
+ _this.setState({
2384
+ coords: coords
2385
+ });
2386
+ });
2387
+ }, enterDelay);
2388
+ });
2389
+ __publicField(_this, "handleMouseLeave", function () {
2390
+ if (_this.enterTimer) {
2391
+ clearTimeout(_this.enterTimer);
2392
+ _this.enterTimer = null;
2393
+ }
2394
+ var leaveDelay = _this.props.leaveDelay;
2395
+ _this.leaveTimer = setTimeout(function () {
2396
+ _this.setState({
2397
+ visible: false
2398
+ });
2399
+ }, leaveDelay);
2400
+ });
2401
+ _this.state = {
2402
+ visible: false,
2403
+ coords: {
2404
+ top: 0,
2405
+ left: 0
2406
+ }
2407
+ };
2408
+ _this.triggerRef = React__namespace.createRef();
2409
+ _this.tooltipRef = React__namespace.createRef();
2410
+ return _this;
2411
+ }
2412
+ _inherits(Tooltip, _React__namespace$Com);
2413
+ return _createClass(Tooltip, [{
2414
+ key: "computeCoords",
2071
2415
  value: function computeCoords() {
2072
2416
  var _this$props = this.props,
2073
2417
  placement = _this$props.placement,
@@ -4752,11 +5096,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4752
5096
  alignItems: "center",
4753
5097
  gap: 6,
4754
5098
  background: "var(--background-softGrey)",
4755
- borderRadius: 8,
4756
- borderTopLeftRadius: 0,
5099
+ borderRadius: 16,
5100
+ borderTopLeftRadius: 4,
4757
5101
  padding: "8px 12px",
4758
5102
  fontSize: 13,
4759
- color: "var(--text-secondary)"
5103
+ color: "var(--text-secondary)",
5104
+ width: "fit-content"
4760
5105
  }
4761
5106
  }, /* @__PURE__ */React__namespace.createElement("span", null, label), /* @__PURE__ */React__namespace.createElement("span", {
4762
5107
  className: "chat-ai-dots",
@@ -4829,8 +5174,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4829
5174
  question: item.question
4830
5175
  },
4831
5176
  style: {
4832
- borderRadius: 8,
4833
- borderTopRightRadius: 0,
5177
+ borderRadius: 12,
5178
+ borderTopRightRadius: 4,
4834
5179
  padding: "8px 12px",
4835
5180
  background: "var(--primary-main)",
4836
5181
  color: "var(--primary-contrasttext)"
@@ -4859,8 +5204,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4859
5204
  },
4860
5205
  style: {
4861
5206
  background: "var(--background-softGrey)",
4862
- borderRadius: 8,
4863
- borderTopLeftRadius: 0,
5207
+ borderRadius: 12,
5208
+ borderTopLeftRadius: 4,
4864
5209
  padding: "8px 12px"
4865
5210
  }
4866
5211
  }), /* @__PURE__ */React__namespace.createElement("div", {
@@ -6603,7 +6948,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
6603
6948
  label: "1-liner",
6604
6949
  value: "one_liner"
6605
6950
  }];
6606
- var getFlagCode = function getFlagCode(value) {
6951
+ var getFlagCode$1 = function getFlagCode$1(value) {
6607
6952
  var _a2;
6608
6953
  return (_a2 = AI_LANG_FLAGS.find(function (l) {
6609
6954
  return l.value === value;
@@ -6660,7 +7005,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
6660
7005
  value = _this$props3.value,
6661
7006
  options = _this$props3.options;
6662
7007
  var open = this.state.open;
6663
- var selectedFlag = getFlagCode(value == null ? void 0 : value.value);
7008
+ var selectedFlag = getFlagCode$1(value == null ? void 0 : value.value);
6664
7009
  return /* @__PURE__ */React__namespace.createElement("div", {
6665
7010
  ref: this.ref,
6666
7011
  style: {
@@ -6717,7 +7062,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
6717
7062
  zIndex: 2
6718
7063
  }
6719
7064
  }, options.map(function (opt) {
6720
- var fc = getFlagCode(opt.value);
7065
+ var fc = getFlagCode$1(opt.value);
6721
7066
  var isActive = (value == null ? void 0 : value.value) === opt.value;
6722
7067
  return /* @__PURE__ */React__namespace.createElement("button", {
6723
7068
  key: opt.value,
@@ -7624,9 +7969,113 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7624
7969
  title: "Refine with conversation",
7625
7970
  desc: "Get an AI draft, then adjust freely with chips or messages."
7626
7971
  }];
7972
+ var EmptyState = function EmptyState() {
7973
+ return /* @__PURE__ */React__namespace.createElement("div", {
7974
+ style: {
7975
+ flex: 1,
7976
+ minHeight: 0,
7977
+ overflowY: "auto",
7978
+ display: "flex",
7979
+ flexDirection: "column",
7980
+ paddingRight: 8,
7981
+ marginRight: -8,
7982
+ paddingBottom: 16,
7983
+ gap: 12
7984
+ }
7985
+ }, /* @__PURE__ */React__namespace.createElement("div", {
7986
+ style: {
7987
+ textAlign: "center",
7988
+ marginTop: 8
7989
+ }
7990
+ }, /* @__PURE__ */React__namespace.createElement("div", {
7991
+ style: {
7992
+ fontSize: 13,
7993
+ color: "var(--text-secondary)",
7994
+ lineHeight: 1.6
7995
+ }
7996
+ }, "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", {
7997
+ style: {
7998
+ alignSelf: "center",
7999
+ width: 100,
8000
+ height: 100,
8001
+ borderRadius: "50%",
8002
+ background: "var(--primary-lighter)",
8003
+ display: "flex",
8004
+ alignItems: "center",
8005
+ justifyContent: "center",
8006
+ margin: "8px 0",
8007
+ color: "var(--primary-main)",
8008
+ flexShrink: 0
8009
+ }
8010
+ }, /* @__PURE__ */React__namespace.createElement(CustomAiIcon, {
8011
+ size: 44,
8012
+ stroke: 1.5
8013
+ })), /* @__PURE__ */React__namespace.createElement("div", {
8014
+ style: {
8015
+ textAlign: "center"
8016
+ }
8017
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8018
+ style: {
8019
+ fontSize: 13,
8020
+ color: "var(--text-secondary)",
8021
+ lineHeight: 1.6
8022
+ }
8023
+ }, "The source is auto-included. Adjust tone and length through conversation.")), /* @__PURE__ */React__namespace.createElement("div", {
8024
+ style: {
8025
+ borderTop: "1px solid var(--border-light)",
8026
+ marginTop: 8,
8027
+ paddingTop: 16,
8028
+ display: "flex",
8029
+ flexDirection: "column",
8030
+ gap: 14
8031
+ }
8032
+ }, FEATURES.map(function (f, i) {
8033
+ return /* @__PURE__ */React__namespace.createElement("div", {
8034
+ key: i,
8035
+ style: {
8036
+ display: "flex",
8037
+ flexDirection: "row",
8038
+ alignItems: "flex-start",
8039
+ gap: 10
8040
+ }
8041
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8042
+ style: {
8043
+ width: 28,
8044
+ height: 28,
8045
+ borderRadius: "50%",
8046
+ background: "var(--primary-lighter)",
8047
+ color: "var(--primary-main)",
8048
+ display: "flex",
8049
+ alignItems: "center",
8050
+ justifyContent: "center",
8051
+ flexShrink: 0
8052
+ }
8053
+ }, f.icon), /* @__PURE__ */React__namespace.createElement("div", {
8054
+ style: {
8055
+ flex: 1,
8056
+ minWidth: 0
8057
+ }
8058
+ }, /* @__PURE__ */React__namespace.createElement("div", {
8059
+ style: {
8060
+ fontSize: 13,
8061
+ fontWeight: 600,
8062
+ color: "var(--text-primary)"
8063
+ }
8064
+ }, f.title), /* @__PURE__ */React__namespace.createElement("div", {
8065
+ style: {
8066
+ fontSize: 12,
8067
+ color: "var(--text-secondary)",
8068
+ marginTop: 2,
8069
+ lineHeight: 1.5
8070
+ }
8071
+ }, f.desc)));
8072
+ })));
8073
+ };
7627
8074
  var SourceCard = function SourceCard(_ref30) {
7628
- var mail = _ref30.mail;
8075
+ var mail = _ref30.mail,
8076
+ onClick = _ref30.onClick;
7629
8077
  return /* @__PURE__ */React__namespace.createElement("div", {
8078
+ onClick: onClick,
7630
8079
  style: {
7631
8080
  border: "1px solid var(--border-light)",
7632
8081
  borderRadius: 8,
@@ -7634,7 +8083,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7634
8083
  display: "flex",
7635
8084
  gap: 8,
7636
8085
  alignItems: "flex-start",
7637
- background: "#fff"
8086
+ background: "#fff",
8087
+ cursor: onClick ? "pointer" : "default"
7638
8088
  }
7639
8089
  }, /* @__PURE__ */React__namespace.createElement("div", {
7640
8090
  style: {
@@ -7664,8 +8114,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7664
8114
  var SelectedChip = function SelectedChip(_ref31) {
7665
8115
  var index = _ref31.index,
7666
8116
  mail = _ref31.mail,
8117
+ _onClick = _ref31.onClick,
7667
8118
  onRemove = _ref31.onRemove;
7668
8119
  return /* @__PURE__ */React__namespace.createElement("div", {
8120
+ onClick: function onClick() {
8121
+ return _onClick(mail);
8122
+ },
7669
8123
  style: {
7670
8124
  display: "inline-flex",
7671
8125
  alignItems: "center",
@@ -7675,7 +8129,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7675
8129
  border: "1px solid var(--border-light)",
7676
8130
  background: "var(--primary-lighter)",
7677
8131
  fontSize: 12,
7678
- maxWidth: 160
8132
+ maxWidth: 160,
8133
+ cursor: "pointer"
7679
8134
  }
7680
8135
  }, /* @__PURE__ */React__namespace.createElement("span", {
7681
8136
  style: {
@@ -7700,8 +8155,9 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7700
8155
  }
7701
8156
  }, mail.subject || "(no subject)"), /* @__PURE__ */React__namespace.createElement("button", {
7702
8157
  type: "button",
7703
- onClick: function onClick() {
7704
- return onRemove(mail.mid);
8158
+ onClick: function onClick(e) {
8159
+ e.stopPropagation();
8160
+ onRemove(mail.mid);
7705
8161
  },
7706
8162
  style: {
7707
8163
  border: "none",
@@ -7715,22 +8171,20 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7715
8171
  }
7716
8172
  }, "×"));
7717
8173
  };
7718
- var EmptyState = function EmptyState(_ref32) {
8174
+ var ContextHeader = function ContextHeader(_ref32) {
7719
8175
  var sourceMail = _ref32.sourceMail,
7720
8176
  selectedMails = _ref32.selectedMails,
7721
8177
  onAddClick = _ref32.onAddClick,
7722
- onRemoveSelected = _ref32.onRemoveSelected;
8178
+ onSourceClick = _ref32.onSourceClick,
8179
+ onChipClick = _ref32.onChipClick,
8180
+ onRemoveChip = _ref32.onRemoveChip;
7723
8181
  return /* @__PURE__ */React__namespace.createElement("div", {
7724
8182
  style: {
7725
- flex: 1,
7726
- minHeight: 0,
7727
- overflowY: "auto",
7728
8183
  display: "flex",
7729
8184
  flexDirection: "column",
7730
- paddingRight: 8,
7731
- marginRight: -8,
7732
- paddingBottom: 16,
7733
- gap: 12
8185
+ gap: 12,
8186
+ paddingBottom: 12,
8187
+ marginBottom: 12
7734
8188
  }
7735
8189
  }, sourceMail && /* @__PURE__ */React__namespace.createElement("div", {
7736
8190
  style: {
@@ -7768,7 +8222,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7768
8222
  }, /* @__PURE__ */React__namespace.createElement(Lock, {
7769
8223
  size: 11
7770
8224
  }), " Auto")), /* @__PURE__ */React__namespace.createElement(SourceCard, {
7771
- mail: sourceMail
8225
+ mail: sourceMail,
8226
+ onClick: function onClick() {
8227
+ return onSourceClick(sourceMail);
8228
+ }
7772
8229
  })), /* @__PURE__ */React__namespace.createElement("div", {
7773
8230
  style: {
7774
8231
  display: "flex",
@@ -7816,97 +8273,200 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
7816
8273
  key: m.mid,
7817
8274
  index: i,
7818
8275
  mail: m,
7819
- onRemove: onRemoveSelected
8276
+ onClick: onChipClick,
8277
+ onRemove: onRemoveChip
7820
8278
  });
7821
- }))), /* @__PURE__ */React__namespace.createElement("div", {
8279
+ }))));
8280
+ };
8281
+ var LoadingCircular = function LoadingCircular(_ref33) {
8282
+ var _ref33$size = _ref33.size,
8283
+ size = _ref33$size === void 0 ? 40 : _ref33$size,
8284
+ _ref33$color = _ref33.color,
8285
+ color = _ref33$color === void 0 ? "var(--primary-main)" : _ref33$color,
8286
+ _ref33$thickness = _ref33.thickness,
8287
+ thickness = _ref33$thickness === void 0 ? 3.6 : _ref33$thickness;
8288
+ var radius = 20;
8289
+ var circumference = 2 * Math.PI * radius;
8290
+ return /* @__PURE__ */React.createElement("div", {
8291
+ className: "circular-container",
7822
8292
  style: {
7823
- textAlign: "center",
7824
- marginTop: 8
7825
- }
7826
- }, /* @__PURE__ */React__namespace.createElement("div", {
8293
+ width: size,
8294
+ height: size
8295
+ },
8296
+ role: "progressbar"
8297
+ }, /* @__PURE__ */React.createElement("svg", {
8298
+ className: "circular-svg",
8299
+ viewBox: "22 22 44 44"
8300
+ }, /* @__PURE__ */React.createElement("circle", {
8301
+ className: "circular-circle",
8302
+ cx: "44",
8303
+ cy: "44",
8304
+ r: radius,
8305
+ fill: "none",
8306
+ stroke: color,
8307
+ strokeWidth: thickness,
8308
+ strokeDasharray: circumference,
7827
8309
  style: {
7828
- fontSize: 13,
7829
- color: "var(--text-secondary)",
7830
- lineHeight: 1.6
8310
+ strokeDashoffset: circumference * 0.7
8311
+ // Độ dài của thanh loading
7831
8312
  }
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)",
8313
+ })));
8314
+ };
8315
+ var circularSize = {
8316
+ small: 28,
8317
+ medium: 40
8318
+ };
8319
+ var LoadingContainer = function LoadingContainer(_ref34) {
8320
+ var style = _ref34.style,
8321
+ _ref34$fullHeight = _ref34.fullHeight,
8322
+ fullHeight = _ref34$fullHeight === void 0 ? false : _ref34$fullHeight,
8323
+ _ref34$size = _ref34.size,
8324
+ size = _ref34$size === void 0 ? "medium" : _ref34$size,
8325
+ label = _ref34.label;
8326
+ return /* @__PURE__ */React.createElement("div", {
8327
+ style: __spreadValues({
7839
8328
  display: "flex",
7840
8329
  alignItems: "center",
7841
8330
  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", {
8331
+ width: "100%",
8332
+ height: fullHeight ? "100%" : 350
8333
+ }, style)
8334
+ }, /* @__PURE__ */React.createElement(LoadingCircular, {
8335
+ size: circularSize[size]
8336
+ }), label && /* @__PURE__ */React.createElement("p", {
8337
+ color: "text.secondary",
7860
8338
  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
8339
+ marginTop: 16,
8340
+ fontSize: size === "small" ? 12 : 13
8341
+ }
8342
+ }, label));
8343
+ };
8344
+ var Pagination = /*#__PURE__*/function (_React__namespace$Com6) {
8345
+ function Pagination(props) {
8346
+ var _this15;
8347
+ _classCallCheck(this, Pagination);
8348
+ _this15 = _callSuper(this, Pagination, [props]);
8349
+ __publicField(_this15, "clamp", function (value) {
8350
+ var totalPages = _this15.props.totalPages;
8351
+ if (Number.isNaN(value)) return _this15.props.page;
8352
+ return Math.min(Math.max(1, Math.floor(value)), Math.max(1, totalPages));
8353
+ });
8354
+ __publicField(_this15, "handleInputChange", function (e) {
8355
+ _this15.setState({
8356
+ inputValue: e.target.value
8357
+ });
8358
+ });
8359
+ __publicField(_this15, "commit", function () {
8360
+ var next = _this15.clamp(parseInt(_this15.state.inputValue, 10));
8361
+ _this15.setState({
8362
+ inputValue: String(next)
8363
+ });
8364
+ if (next !== _this15.props.page) {
8365
+ _this15.props.onChangePage(next);
7893
8366
  }
7894
- }, /* @__PURE__ */React__namespace.createElement("div", {
7895
- style: {
7896
- fontSize: 13,
7897
- fontWeight: 600,
7898
- color: "var(--text-primary)"
8367
+ });
8368
+ __publicField(_this15, "handleKeyDown", function (e) {
8369
+ if (e.key === "Enter") {
8370
+ e.preventDefault();
8371
+ _this15.commit();
7899
8372
  }
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
8373
+ });
8374
+ _this15.state = {
8375
+ inputValue: String(props.page)
8376
+ };
8377
+ return _this15;
8378
+ }
8379
+ _inherits(Pagination, _React__namespace$Com6);
8380
+ return _createClass(Pagination, [{
8381
+ key: "componentDidUpdate",
8382
+ value: function componentDidUpdate(prevProps) {
8383
+ if (prevProps.page !== this.props.page) {
8384
+ this.setState({
8385
+ inputValue: String(this.props.page)
8386
+ });
7906
8387
  }
7907
- }, f.desc)));
7908
- })));
7909
- };
8388
+ }
8389
+ }, {
8390
+ key: "render",
8391
+ value: function render() {
8392
+ var _this$props7 = this.props,
8393
+ total = _this$props7.total,
8394
+ page = _this$props7.page,
8395
+ totalPages = _this$props7.totalPages,
8396
+ onChangePage = _this$props7.onChangePage;
8397
+ var inputValue = this.state.inputValue;
8398
+ return /* @__PURE__ */React__namespace.createElement("div", {
8399
+ style: {
8400
+ display: "flex",
8401
+ alignItems: "center",
8402
+ justifyContent: "space-between",
8403
+ gap: 8,
8404
+ padding: "8px 0",
8405
+ marginTop: 8,
8406
+ borderTop: "1px solid var(--border-light)"
8407
+ }
8408
+ }, /* @__PURE__ */React__namespace.createElement("span", {
8409
+ style: {
8410
+ fontSize: 12,
8411
+ color: "var(--text-secondary)"
8412
+ }
8413
+ }, "Total ", total, " | Page ", page, " / ", totalPages), /* @__PURE__ */React__namespace.createElement("div", {
8414
+ style: {
8415
+ display: "inline-flex",
8416
+ alignItems: "center",
8417
+ gap: 4
8418
+ }
8419
+ }, /* @__PURE__ */React__namespace.createElement("button", {
8420
+ type: "button",
8421
+ onClick: function onClick() {
8422
+ return page > 1 && onChangePage(page - 1);
8423
+ },
8424
+ disabled: page <= 1,
8425
+ className: "icon-button small"
8426
+ }, /* @__PURE__ */React__namespace.createElement(ChevronLeft, {
8427
+ size: 14
8428
+ })), /* @__PURE__ */React__namespace.createElement("button", {
8429
+ type: "button",
8430
+ onClick: function onClick() {
8431
+ return page < totalPages && onChangePage(page + 1);
8432
+ },
8433
+ disabled: page >= totalPages,
8434
+ className: "icon-button small"
8435
+ }, /* @__PURE__ */React__namespace.createElement(ChevronRight, {
8436
+ size: 14
8437
+ })), /* @__PURE__ */React__namespace.createElement("span", {
8438
+ style: {
8439
+ fontSize: 12,
8440
+ color: "var(--text-secondary)",
8441
+ marginLeft: 4
8442
+ }
8443
+ }, "Page"), /* @__PURE__ */React__namespace.createElement("input", {
8444
+ type: "number",
8445
+ min: 1,
8446
+ max: Math.max(1, totalPages),
8447
+ value: inputValue,
8448
+ onChange: this.handleInputChange,
8449
+ onBlur: this.commit,
8450
+ onKeyDown: this.handleKeyDown,
8451
+ className: "pagination-input",
8452
+ style: {
8453
+ width: "".concat(Math.min(4, Math.max(1, inputValue.length || 1)) * 10 + 14, "px"),
8454
+ height: 24,
8455
+ padding: "0 6px 0 6px",
8456
+ borderRadius: 4,
8457
+ border: "1px solid var(--border-light)",
8458
+ background: "#fff",
8459
+ fontSize: 12,
8460
+ color: "var(--text-primary)",
8461
+ textAlign: "center",
8462
+ fontFamily: "inherit",
8463
+ outline: "none",
8464
+ MozAppearance: "textfield"
8465
+ }
8466
+ })));
8467
+ }
8468
+ }]);
8469
+ }(React__namespace.Component);
7910
8470
  var parseFromField = function parseFromField(raw) {
7911
8471
  var email = extractEmail(raw);
7912
8472
  var decoded = String(raw || "").replace(/&lt;/g, "<").replace(/&gt;/g, ">");
@@ -8053,15 +8613,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8053
8613
  }, _callee9);
8054
8614
  }));
8055
8615
  };
8056
- var PAGE_SIZE = 6;
8616
+ var PAGE_SIZE$1 = 6;
8057
8617
  var MAX_SELECTED = 5;
8058
- var MailListSelect = /*#__PURE__*/function (_React__namespace$Com6) {
8618
+ var MailListSelect = /*#__PURE__*/function (_React__namespace$Com7) {
8059
8619
  function MailListSelect(props) {
8060
- var _this15;
8620
+ var _this16;
8061
8621
  _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() {
8622
+ _this16 = _callSuper(this, MailListSelect, [props]);
8623
+ __publicField(_this16, "loadPage", function (page) {
8624
+ return __async(_this16, null, /*#__PURE__*/_regenerator().m(function _callee0() {
8065
8625
  var _yield$fetchMailList, items, total;
8066
8626
  return _regenerator().w(function (_context0) {
8067
8627
  while (1) switch (_context0.n) {
@@ -8072,7 +8632,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8072
8632
  _context0.n = 1;
8073
8633
  return fetchMailList({
8074
8634
  page: page,
8075
- pageSize: PAGE_SIZE,
8635
+ pageSize: PAGE_SIZE$1,
8076
8636
  accountEmail: this.props.accountEmail
8077
8637
  });
8078
8638
  case 1:
@@ -8091,8 +8651,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8091
8651
  }, _callee0, this);
8092
8652
  }));
8093
8653
  });
8094
- __publicField(_this15, "toggleMid", function (mid) {
8095
- _this15.setState(function (prev) {
8654
+ __publicField(_this16, "toggleMid", function (mid) {
8655
+ _this16.setState(function (prev) {
8096
8656
  var isSelected = prev.selectedMids.includes(mid);
8097
8657
  if (isSelected) {
8098
8658
  return {
@@ -8109,44 +8669,39 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8109
8669
  };
8110
8670
  });
8111
8671
  });
8112
- __publicField(_this15, "toggleAll", function () {
8113
- var _this15$state = _this15.state,
8114
- items = _this15$state.items,
8115
- selectedMids = _this15$state.selectedMids;
8672
+ __publicField(_this16, "toggleAll", function () {
8673
+ var _this16$state = _this16.state,
8674
+ items = _this16$state.items,
8675
+ selectedMids = _this16$state.selectedMids;
8676
+ if (selectedMids.length >= MAX_SELECTED) {
8677
+ _this16.setState({
8678
+ selectedMids: []
8679
+ });
8680
+ return;
8681
+ }
8116
8682
  var pageMids = items.map(function (it) {
8117
8683
  return it.mid;
8118
8684
  });
8119
- var allSelected = pageMids.every(function (m) {
8120
- return selectedMids.includes(m);
8685
+ var merged = Array.from(/* @__PURE__ */new Set([].concat(_toConsumableArray(selectedMids), _toConsumableArray(pageMids)))).slice(0, MAX_SELECTED);
8686
+ _this16.setState({
8687
+ selectedMids: merged
8121
8688
  });
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
8689
  });
8135
- __publicField(_this15, "clearAll", function () {
8136
- _this15.setState({
8690
+ __publicField(_this16, "clearAll", function () {
8691
+ _this16.setState({
8137
8692
  selectedMids: []
8138
8693
  });
8139
8694
  });
8140
- _this15.state = {
8695
+ _this16.state = {
8141
8696
  page: 1,
8142
8697
  total: 0,
8143
8698
  items: [],
8144
8699
  selectedMids: _toConsumableArray(props.initialSelected),
8145
8700
  isLoading: false
8146
8701
  };
8147
- return _this15;
8702
+ return _this16;
8148
8703
  }
8149
- _inherits(MailListSelect, _React__namespace$Com6);
8704
+ _inherits(MailListSelect, _React__namespace$Com7);
8150
8705
  return _createClass(MailListSelect, [{
8151
8706
  key: "componentDidMount",
8152
8707
  value: function componentDidMount() {
@@ -8155,75 +8710,31 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8155
8710
  }, {
8156
8711
  key: "renderPagination",
8157
8712
  value: function renderPagination() {
8158
- var _this16 = this;
8159
8713
  var _this$state5 = this.state,
8160
8714
  page = _this$state5.page,
8161
8715
  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
- }, "›"));
8716
+ var totalPages = Math.max(1, Math.ceil(total / PAGE_SIZE$1));
8717
+ return /* @__PURE__ */React__namespace.createElement(Pagination, {
8718
+ total: total,
8719
+ page: page,
8720
+ totalPages: totalPages,
8721
+ onChangePage: this.loadPage
8722
+ });
8208
8723
  }
8209
8724
  }, {
8210
8725
  key: "render",
8211
8726
  value: function render() {
8212
8727
  var _this17 = this;
8213
- var _this$props7 = this.props,
8214
- onCancel = _this$props7.onCancel,
8215
- onConfirm = _this$props7.onConfirm;
8728
+ var _this$props8 = this.props,
8729
+ onCancel = _this$props8.onCancel,
8730
+ onConfirm = _this$props8.onConfirm,
8731
+ isConfirming = _this$props8.isConfirming;
8216
8732
  var _this$state6 = this.state,
8217
8733
  items = _this$state6.items,
8218
8734
  total = _this$state6.total,
8219
8735
  selectedMids = _this$state6.selectedMids,
8220
8736
  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
- });
8737
+ var isFull = selectedMids.length >= MAX_SELECTED;
8227
8738
  return /* @__PURE__ */React__namespace.createElement("div", {
8228
8739
  style: {
8229
8740
  display: "flex",
@@ -8272,16 +8783,31 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8272
8783
  style: {
8273
8784
  display: "inline-flex",
8274
8785
  alignItems: "center",
8275
- gap: 6,
8786
+ gap: 8,
8276
8787
  fontSize: 12,
8277
- color: "var(--text-primary)",
8788
+ color: "var(--text-secondary)",
8278
8789
  cursor: "pointer"
8279
8790
  }
8280
8791
  }, /* @__PURE__ */React__namespace.createElement("input", {
8281
8792
  type: "checkbox",
8282
- checked: allOnPageSelected,
8793
+ checked: isFull,
8283
8794
  onChange: this.toggleAll
8284
- }), /* @__PURE__ */React__namespace.createElement("span", null, "Select all · ", total, " total")), /* @__PURE__ */React__namespace.createElement("span", {
8795
+ }), /* @__PURE__ */React__namespace.createElement("span", {
8796
+ style: {
8797
+ background: "var(--primary-main)",
8798
+ color: "var(--primary-contrasttext)",
8799
+ padding: "2px 8px",
8800
+ borderRadius: 999,
8801
+ fontWeight: 600
8802
+ }
8803
+ }, selectedMids.length, "/", MAX_SELECTED), /* @__PURE__ */React__namespace.createElement("span", null, "selected · up to ", MAX_SELECTED), selectedMids.length > 0 && /* @__PURE__ */React__namespace.createElement("button", {
8804
+ type: "button",
8805
+ onClick: function onClick(e) {
8806
+ e.preventDefault();
8807
+ _this17.clearAll();
8808
+ },
8809
+ className: "text-button primary"
8810
+ }, "Clear all")), /* @__PURE__ */React__namespace.createElement("span", {
8285
8811
  style: {
8286
8812
  fontSize: 11,
8287
8813
  color: "var(--text-secondary)"
@@ -8294,14 +8820,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8294
8820
  paddingRight: 8,
8295
8821
  marginRight: -8
8296
8822
  }
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", {
8823
+ }, isLoading ? /* @__PURE__ */React__namespace.createElement(LoadingContainer, {
8824
+ fullHeight: true,
8825
+ size: "small"
8826
+ }) : items.length === 0 ? /* @__PURE__ */React__namespace.createElement("div", {
8305
8827
  style: {
8306
8828
  padding: 24,
8307
8829
  textAlign: "center",
@@ -8387,44 +8909,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8387
8909
  }
8388
8910
  }, it.from_name, it.from_addr ? " <".concat(it.from_addr, ">") : "", it.preview ? " \xB7 ".concat(it.preview) : "")));
8389
8911
  }), !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
8912
  style: {
8429
8913
  display: "flex",
8430
8914
  gap: 8,
@@ -8446,7 +8930,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8446
8930
  }
8447
8931
  }, "Cancel"), /* @__PURE__ */React__namespace.createElement("button", {
8448
8932
  type: "button",
8449
- disabled: selectedMids.length === 0,
8933
+ disabled: selectedMids.length === 0 || isConfirming,
8450
8934
  onClick: function onClick() {
8451
8935
  return onConfirm(selectedMids);
8452
8936
  },
@@ -8455,25 +8939,174 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8455
8939
  padding: "10px 12px",
8456
8940
  borderRadius: 8,
8457
8941
  border: "none",
8458
- background: selectedMids.length === 0 ? "var(--primary-lighter)" : "var(--primary-main)",
8942
+ background: selectedMids.length === 0 || isConfirming ? "var(--primary-lighter)" : "var(--primary-main)",
8459
8943
  color: "var(--primary-contrasttext)",
8460
- cursor: selectedMids.length === 0 ? "not-allowed" : "pointer",
8944
+ cursor: selectedMids.length === 0 || isConfirming ? "not-allowed" : "pointer",
8461
8945
  fontSize: 13,
8462
8946
  fontWeight: 600,
8947
+ fontFamily: "inherit",
8948
+ display: "inline-flex",
8949
+ alignItems: "center",
8950
+ justifyContent: "center",
8951
+ gap: 8
8952
+ }
8953
+ }, isConfirming && /* @__PURE__ */React__namespace.createElement(LoadingCircular, {
8954
+ size: 16,
8955
+ color: "var(--primary-contrasttext)"
8956
+ }), /* @__PURE__ */React__namespace.createElement("span", null, "Add ", selectedMids.length > 0 ? "".concat(selectedMids.length, " ") : "", "as context →"))));
8957
+ }
8958
+ }]);
8959
+ }(React__namespace.Component);
8960
+ var BaseModal = /*#__PURE__*/function (_React__namespace$Com8) {
8961
+ function BaseModal() {
8962
+ var _this18;
8963
+ _classCallCheck(this, BaseModal);
8964
+ _this18 = _callSuper(this, BaseModal, arguments);
8965
+ __publicField(_this18, "handleKeyDown", function (e) {
8966
+ if (e.key === "Escape" && _this18.props.isOpen) _this18.props.onClose();
8967
+ });
8968
+ return _this18;
8969
+ }
8970
+ _inherits(BaseModal, _React__namespace$Com8);
8971
+ return _createClass(BaseModal, [{
8972
+ key: "componentDidMount",
8973
+ value: function componentDidMount() {
8974
+ document.addEventListener("keydown", this.handleKeyDown);
8975
+ }
8976
+ }, {
8977
+ key: "componentWillUnmount",
8978
+ value: function componentWillUnmount() {
8979
+ document.removeEventListener("keydown", this.handleKeyDown);
8980
+ }
8981
+ }, {
8982
+ key: "render",
8983
+ value: function render() {
8984
+ var _this$props9 = this.props,
8985
+ isOpen = _this$props9.isOpen,
8986
+ onClose = _this$props9.onClose,
8987
+ header = _this$props9.header,
8988
+ children = _this$props9.children,
8989
+ _this$props9$maxWidth = _this$props9.maxWidth,
8990
+ maxWidth = _this$props9$maxWidth === void 0 ? 600 : _this$props9$maxWidth;
8991
+ if (!isOpen) return null;
8992
+ return ReactDOM__namespace.createPortal(/* @__PURE__ */React__namespace.createElement("div", {
8993
+ onClick: onClose,
8994
+ style: {
8995
+ position: "fixed",
8996
+ inset: 0,
8997
+ background: "rgba(0, 0, 0, 0.1)",
8998
+ display: "flex",
8999
+ alignItems: "center",
9000
+ justifyContent: "center",
9001
+ zIndex: 1100,
9002
+ padding: 16
9003
+ }
9004
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9005
+ onClick: function onClick(e) {
9006
+ return e.stopPropagation();
9007
+ },
9008
+ style: {
9009
+ background: "#fff",
9010
+ borderRadius: 12,
9011
+ maxWidth: maxWidth,
9012
+ width: "100%",
9013
+ maxHeight: "80vh",
9014
+ display: "flex",
9015
+ flexDirection: "column",
9016
+ boxShadow: "0 10px 40px rgba(0, 0, 0, 0.15)",
9017
+ overflow: "hidden",
8463
9018
  fontFamily: "inherit"
8464
9019
  }
8465
- }, "Add ", selectedMids.length > 0 ? "".concat(selectedMids.length, " ") : "", "as context →")));
9020
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9021
+ style: {
9022
+ display: "flex",
9023
+ alignItems: "flex-start",
9024
+ gap: 8,
9025
+ padding: "16px 16px 12px",
9026
+ borderBottom: "1px solid var(--border-light)"
9027
+ }
9028
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9029
+ style: {
9030
+ flex: 1,
9031
+ minWidth: 0
9032
+ }
9033
+ }, header), /* @__PURE__ */React__namespace.createElement("button", {
9034
+ type: "button",
9035
+ onClick: onClose,
9036
+ className: "icon-button small"
9037
+ }, /* @__PURE__ */React__namespace.createElement(X, {
9038
+ size: 16
9039
+ }))), /* @__PURE__ */React__namespace.createElement("div", {
9040
+ style: {
9041
+ flex: 1,
9042
+ minHeight: 0,
9043
+ overflowY: "auto",
9044
+ padding: 16,
9045
+ fontSize: 13,
9046
+ lineHeight: 1.6,
9047
+ color: "var(--text-primary)"
9048
+ }
9049
+ }, children))), document.body);
9050
+ }
9051
+ }]);
9052
+ }(React__namespace.Component);
9053
+ var renderMarkdown = function renderMarkdown(md) {
9054
+ try {
9055
+ return marked.parse(md, {
9056
+ async: false
9057
+ });
9058
+ } catch (e) {
9059
+ return md;
9060
+ }
9061
+ };
9062
+ var MailHeader = function MailHeader(_ref35) {
9063
+ var mail = _ref35.mail;
9064
+ return /* @__PURE__ */React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */React__namespace.createElement("div", {
9065
+ style: {
9066
+ fontSize: 14,
9067
+ fontWeight: 600,
9068
+ color: "var(--text-primary)",
9069
+ whiteSpace: "nowrap",
9070
+ overflow: "hidden",
9071
+ textOverflow: "ellipsis"
8466
9072
  }
8467
- }]);
8468
- }(React__namespace.Component);
8469
- var ReplyPanel = /*#__PURE__*/function (_React__namespace$Com7) {
9073
+ }, mail.subject || "(no subject)"), /* @__PURE__ */React__namespace.createElement("div", {
9074
+ style: {
9075
+ fontSize: 12,
9076
+ color: "var(--text-secondary)",
9077
+ marginTop: 2,
9078
+ whiteSpace: "nowrap",
9079
+ overflow: "hidden",
9080
+ textOverflow: "ellipsis"
9081
+ }
9082
+ }, mail.from_name, mail.from_addr ? " <".concat(mail.from_addr, ">") : "", mail.date ? " \xB7 ".concat(mail.date) : ""));
9083
+ };
9084
+ var ContextPreviewModal = function ContextPreviewModal(_ref36) {
9085
+ var preview = _ref36.preview,
9086
+ onClose = _ref36.onClose;
9087
+ var html2 = preview ? preview.mode === "html" ? preview.mail.contents || "" : renderMarkdown(preview.mail.ai_contents || "") : "";
9088
+ return /* @__PURE__ */React__namespace.createElement(BaseModal, {
9089
+ isOpen: !!preview,
9090
+ onClose: onClose,
9091
+ header: preview && /* @__PURE__ */React__namespace.createElement(MailHeader, {
9092
+ mail: preview.mail
9093
+ }),
9094
+ maxWidth: (preview == null ? void 0 : preview.mode) === "html" ? 900 : 600
9095
+ }, preview && /* @__PURE__ */React__namespace.createElement("div", {
9096
+ className: "chat-ai-context-preview",
9097
+ dangerouslySetInnerHTML: {
9098
+ __html: html2
9099
+ }
9100
+ }));
9101
+ };
9102
+ var ReplyPanel = /*#__PURE__*/function (_React__namespace$Com9) {
8470
9103
  function ReplyPanel(props) {
8471
- var _this18;
9104
+ var _this19;
8472
9105
  _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() {
9106
+ _this19 = _callSuper(this, ReplyPanel, [props]);
9107
+ __publicField(_this19, "rootRef");
9108
+ __publicField(_this19, "loadSourceMail", function () {
9109
+ return __async(_this19, null, /*#__PURE__*/_regenerator().m(function _callee1() {
8477
9110
  var sourceMid, view;
8478
9111
  return _regenerator().w(function (_context1) {
8479
9112
  while (1) switch (_context1.n) {
@@ -8517,18 +9150,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8517
9150
  }, _callee1, this);
8518
9151
  }));
8519
9152
  });
8520
- __publicField(_this18, "handleAddClick", function () {
8521
- _this18.setState({
9153
+ __publicField(_this19, "handleAddClick", function () {
9154
+ _this19.setState({
8522
9155
  view: "list"
8523
9156
  });
8524
9157
  });
8525
- __publicField(_this18, "handleListCancel", function () {
8526
- _this18.setState({
8527
- view: _this18.state.messages.length > 0 ? "chat" : "empty"
9158
+ __publicField(_this19, "handleListCancel", function () {
9159
+ _this19.setState({
9160
+ view: _this19.state.messages.length > 0 ? "chat" : "empty"
8528
9161
  });
8529
9162
  });
8530
- __publicField(_this18, "handleListConfirm", function (mids) {
8531
- return __async(_this18, null, /*#__PURE__*/_regenerator().m(function _callee10() {
9163
+ __publicField(_this19, "handleListConfirm", function (mids) {
9164
+ return __async(_this19, null, /*#__PURE__*/_regenerator().m(function _callee10() {
8532
9165
  var selectedMails;
8533
9166
  return _regenerator().w(function (_context10) {
8534
9167
  while (1) switch (_context10.n) {
@@ -8551,21 +9184,42 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8551
9184
  }, _callee10, this);
8552
9185
  }));
8553
9186
  });
8554
- __publicField(_this18, "handleRemoveSelected", function (mid) {
8555
- _this18.setState({
8556
- selectedMails: _this18.state.selectedMails.filter(function (m) {
9187
+ __publicField(_this19, "handleRemoveSelected", function (mid) {
9188
+ _this19.setState({
9189
+ selectedMails: _this19.state.selectedMails.filter(function (m) {
8557
9190
  return m.mid !== mid;
8558
9191
  })
8559
9192
  });
8560
9193
  });
8561
- __publicField(_this18, "handleMessageChange", function (value) {
8562
- _this18.setState({
9194
+ __publicField(_this19, "handlePreviewSelected", function (mail) {
9195
+ _this19.setState({
9196
+ preview: {
9197
+ mail: mail,
9198
+ mode: "ai"
9199
+ }
9200
+ });
9201
+ });
9202
+ __publicField(_this19, "handlePreviewSource", function (mail) {
9203
+ _this19.setState({
9204
+ preview: {
9205
+ mail: mail,
9206
+ mode: "html"
9207
+ }
9208
+ });
9209
+ });
9210
+ __publicField(_this19, "handlePreviewClose", function () {
9211
+ _this19.setState({
9212
+ preview: null
9213
+ });
9214
+ });
9215
+ __publicField(_this19, "handleMessageChange", function (value) {
9216
+ _this19.setState({
8563
9217
  message: value
8564
9218
  });
8565
9219
  });
8566
- __publicField(_this18, "handleSubmit", function () {
8567
- return __async(_this18, null, /*#__PURE__*/_regenerator().m(function _callee11() {
8568
- var _this19 = this;
9220
+ __publicField(_this19, "handleSubmit", function () {
9221
+ return __async(_this19, null, /*#__PURE__*/_regenerator().m(function _callee11() {
9222
+ var _this20 = this;
8569
9223
  var type, _this$state7, message, messages, lang, tone, length, conversationId, sourceMail, selectedMails, newId, newMessage, params, setContent, setIsLoading, setConversationId;
8570
9224
  return _regenerator().w(function (_context11) {
8571
9225
  while (1) switch (_context11.n) {
@@ -8612,7 +9266,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8612
9266
  if (length) params.length = length.value;
8613
9267
  if (conversationId) params.conversation_id = conversationId;
8614
9268
  setContent = function setContent(nContent) {
8615
- _this19.setState(function (prevState) {
9269
+ _this20.setState(function (prevState) {
8616
9270
  return {
8617
9271
  messages: prevState.messages.map(function (m) {
8618
9272
  return m.id === newId ? __spreadProps(__spreadValues({}, m), {
@@ -8626,7 +9280,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8626
9280
  });
8627
9281
  };
8628
9282
  setIsLoading = function setIsLoading(loading) {
8629
- _this19.setState(function (prevState) {
9283
+ _this20.setState(function (prevState) {
8630
9284
  return {
8631
9285
  messages: prevState.messages.map(function (m) {
8632
9286
  return m.id === newId ? __spreadProps(__spreadValues({}, m), {
@@ -8637,7 +9291,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8637
9291
  });
8638
9292
  };
8639
9293
  setConversationId = function setConversationId(id) {
8640
- _this19.setState({
9294
+ _this20.setState({
8641
9295
  conversationId: id
8642
9296
  });
8643
9297
  };
@@ -8657,32 +9311,33 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8657
9311
  }, _callee11, this);
8658
9312
  }));
8659
9313
  });
8660
- __publicField(_this18, "setLang", function (lang) {
8661
- return _this18.setState({
9314
+ __publicField(_this19, "setLang", function (lang) {
9315
+ return _this19.setState({
8662
9316
  lang: lang
8663
9317
  });
8664
9318
  });
8665
- __publicField(_this18, "setTone", function (tone) {
8666
- return _this18.setState({
9319
+ __publicField(_this19, "setTone", function (tone) {
9320
+ return _this19.setState({
8667
9321
  tone: tone
8668
9322
  });
8669
9323
  });
8670
- __publicField(_this18, "setLength", function (length) {
8671
- return _this18.setState({
9324
+ __publicField(_this19, "setLength", function (length) {
9325
+ return _this19.setState({
8672
9326
  length: length
8673
9327
  });
8674
9328
  });
8675
- _this18.rootRef = React__namespace.createRef();
9329
+ _this19.rootRef = React__namespace.createRef();
8676
9330
  var lang = (AI_LANG_FLAGS == null ? void 0 : AI_LANG_FLAGS.find(function (_item) {
8677
9331
  return (_item == null ? void 0 : _item.value) === (props == null ? void 0 : props.defaultLang);
8678
9332
  })) || AI_LANG_FLAGS[0];
8679
- _this18.state = {
9333
+ _this19.state = {
8680
9334
  view: "empty",
8681
9335
  sourceMail: null,
8682
9336
  accountEmail: "",
8683
9337
  selectedMails: [],
8684
9338
  isLoadingSource: false,
8685
9339
  isLoadingSelected: false,
9340
+ preview: null,
8686
9341
  message: "",
8687
9342
  messages: [],
8688
9343
  isSending: false,
@@ -8691,325 +9346,663 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
8691
9346
  length: LENGTH_OPTIONS[2],
8692
9347
  conversationId: ""
8693
9348
  };
8694
- return _this18;
9349
+ return _this19;
8695
9350
  }
8696
- _inherits(ReplyPanel, _React__namespace$Com7);
9351
+ _inherits(ReplyPanel, _React__namespace$Com9);
8697
9352
  return _createClass(ReplyPanel, [{
8698
9353
  key: "componentDidMount",
8699
9354
  value: function componentDidMount() {
8700
9355
  this.loadSourceMail();
8701
9356
  }
8702
9357
  }, {
8703
- key: "renderContextHeader",
8704
- value: function renderContextHeader() {
8705
- var _this20 = this;
9358
+ key: "render",
9359
+ value: function render() {
9360
+ var _this$props0 = this.props,
9361
+ onApply = _this$props0.onApply,
9362
+ getEditorContent = _this$props0.getEditorContent;
8706
9363
  var _this$state8 = this.state,
9364
+ view = _this$state8.view,
8707
9365
  sourceMail = _this$state8.sourceMail,
8708
- selectedMails = _this$state8.selectedMails;
9366
+ accountEmail = _this$state8.accountEmail,
9367
+ selectedMails = _this$state8.selectedMails,
9368
+ message = _this$state8.message,
9369
+ messages = _this$state8.messages,
9370
+ isSending = _this$state8.isSending,
9371
+ lang = _this$state8.lang,
9372
+ tone = _this$state8.tone,
9373
+ length = _this$state8.length,
9374
+ isLoadingSelected = _this$state8.isLoadingSelected,
9375
+ preview = _this$state8.preview;
9376
+ if (view === "list") {
9377
+ return /* @__PURE__ */React__namespace.createElement(MailListSelect, {
9378
+ accountEmail: accountEmail,
9379
+ initialSelected: selectedMails.map(function (m) {
9380
+ return m.mid;
9381
+ }),
9382
+ isConfirming: isLoadingSelected,
9383
+ onCancel: this.handleListCancel,
9384
+ onConfirm: this.handleListConfirm
9385
+ });
9386
+ }
8709
9387
  return /* @__PURE__ */React__namespace.createElement("div", {
9388
+ ref: this.rootRef,
8710
9389
  style: {
8711
9390
  display: "flex",
9391
+ height: "100%",
9392
+ padding: 16,
8712
9393
  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)"
9394
+ background: "#fff",
9395
+ fontFamily: "inherit",
9396
+ boxSizing: "border-box"
8748
9397
  }
8749
- }, /* @__PURE__ */React__namespace.createElement(Lock, {
8750
- size: 11
8751
- }), " Auto")), /* @__PURE__ */React__namespace.createElement("div", {
9398
+ }, /* @__PURE__ */React__namespace.createElement(ContextHeader, {
9399
+ sourceMail: sourceMail,
9400
+ selectedMails: selectedMails,
9401
+ onAddClick: this.handleAddClick,
9402
+ onSourceClick: this.handlePreviewSource,
9403
+ onChipClick: this.handlePreviewSelected,
9404
+ onRemoveChip: this.handleRemoveSelected
9405
+ }), view === "chat" ? /* @__PURE__ */React__namespace.createElement(ChatList, {
9406
+ items: messages,
9407
+ onApply: onApply,
9408
+ getEditorContent: getEditorContent
9409
+ }) : /* @__PURE__ */React__namespace.createElement(EmptyState, null), isLoadingSelected && /* @__PURE__ */React__namespace.createElement("div", {
8752
9410
  style: {
8753
9411
  fontSize: 12,
8754
9412
  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
9413
+ padding: 8,
9414
+ textAlign: "center"
8791
9415
  }
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", {
9416
+ }, "Loading context..."), /* @__PURE__ */React__namespace.createElement(ChatInput, {
9417
+ message: message,
9418
+ onMessageChange: this.handleMessageChange,
9419
+ onSubmit: this.handleSubmit,
9420
+ isSending: isSending,
9421
+ lang: lang,
9422
+ setLang: this.setLang,
9423
+ tone: tone,
9424
+ setTone: this.setTone,
9425
+ length: length,
9426
+ setLength: this.setLength,
9427
+ parentRef: this.rootRef,
9428
+ placeholder: "Type a message..."
9429
+ }), /* @__PURE__ */React__namespace.createElement(ContextPreviewModal, {
9430
+ preview: preview,
9431
+ onClose: this.handlePreviewClose
9432
+ }));
9433
+ }
9434
+ }]);
9435
+ }(React__namespace.Component);
9436
+ var ChatAIDraft = function ChatAIDraft(props) {
9437
+ var _a2 = props,
9438
+ _a2$type = _a2.type,
9439
+ type = _a2$type === void 0 ? "new" : _a2$type,
9440
+ sourceMid = _a2.sourceMid,
9441
+ rest = __objRest(_a2, ["type", "sourceMid"]);
9442
+ if ((type === "reply" || type === "forward") && sourceMid) {
9443
+ return /* @__PURE__ */React__namespace.createElement(ReplyPanel, __spreadValues({
9444
+ type: type,
9445
+ sourceMid: sourceMid
9446
+ }, rest));
9447
+ }
9448
+ return /* @__PURE__ */React__namespace.createElement(CreatePanel, __spreadValues({}, rest));
9449
+ };
9450
+ var TargetInfoBar = function TargetInfoBar(_ref37) {
9451
+ var targetName = _ref37.targetName,
9452
+ targetEmail = _ref37.targetEmail,
9453
+ currentLangLabel = _ref37.currentLangLabel,
9454
+ onOpenLang = _ref37.onOpenLang;
9455
+ return /* @__PURE__ */React__namespace.createElement("div", {
9456
+ style: {
9457
+ display: "flex",
9458
+ justifyContent: "space-between",
9459
+ alignItems: "center",
9460
+ marginBottom: 12,
9461
+ gap: 8
9462
+ }
9463
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9464
+ style: {
9465
+ fontSize: 13,
9466
+ display: "flex",
9467
+ flexWrap: "wrap",
9468
+ alignItems: "center",
9469
+ gap: 6,
9470
+ minWidth: 0
9471
+ }
9472
+ }, targetName && /* @__PURE__ */React__namespace.createElement("span", {
9473
+ style: {
9474
+ fontSize: 14,
9475
+ fontWeight: 600,
9476
+ color: "var(--text-primary)"
9477
+ }
9478
+ }, targetName), targetEmail && /* @__PURE__ */React__namespace.createElement("span", {
9479
+ style: {
9480
+ color: "var(--text-secondary)",
9481
+ whiteSpace: "nowrap",
9482
+ overflow: "hidden",
9483
+ textOverflow: "ellipsis"
9484
+ }
9485
+ }, targetEmail)), /* @__PURE__ */React__namespace.createElement("span", {
9486
+ style: {
9487
+ display: "inline-flex",
9488
+ alignItems: "center",
9489
+ gap: 6,
9490
+ flexShrink: 0
9491
+ }
9492
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9493
+ style: {
9494
+ fontSize: 13,
9495
+ color: "var(--text-primary)"
9496
+ }
9497
+ }, currentLangLabel), /* @__PURE__ */React__namespace.createElement("button", {
9498
+ type: "button",
9499
+ onClick: function onClick(e) {
9500
+ return onOpenLang(e.currentTarget);
9501
+ },
9502
+ className: "icon-button small"
9503
+ }, /* @__PURE__ */React__namespace.createElement(Globe, {
9504
+ size: 14
9505
+ }), /* @__PURE__ */React__namespace.createElement(ChevronDown, {
9506
+ size: 12,
9507
+ style: {
9508
+ marginLeft: 2
9509
+ }
9510
+ }))));
9511
+ };
9512
+ var PAGE_SIZE = 5;
9513
+ var FILTERS = [{
9514
+ value: "all",
9515
+ label: "All"
9516
+ }, {
9517
+ value: "receive",
9518
+ label: "Received"
9519
+ }, {
9520
+ value: "sent",
9521
+ label: "Sent"
9522
+ }];
9523
+ var formatDate = function formatDate(raw) {
9524
+ if (!raw) return "";
9525
+ return String(raw).replace(/\//g, "-");
9526
+ };
9527
+ var parseDataLine = function parseDataLine(line) {
9528
+ if (!line) return null;
9529
+ var trimmed = line.trim();
9530
+ if (trimmed.startsWith("{")) {
9531
+ try {
9532
+ var parsed = JSON.parse(trimmed);
9533
+ return parsed;
9534
+ } catch (e) {}
9535
+ }
9536
+ var parts = trimmed.split("|").map(function (p) {
9537
+ return p.trim();
9538
+ });
9539
+ if (parts.length < 2) return null;
9540
+ var _parts = _toArray(parts),
9541
+ date = _parts[0],
9542
+ sig = _parts[1],
9543
+ _parts$ = _parts[2],
9544
+ subject = _parts$ === void 0 ? "" : _parts$,
9545
+ rest = _arrayLikeToArray(_parts).slice(3);
9546
+ var messages = rest.join(" | ");
9547
+ var direction = sig === "out" ? "sent" : "receive";
9548
+ return {
9549
+ date: date,
9550
+ sig: sig,
9551
+ direction: direction,
9552
+ direction_label: direction === "sent" ? "Sent" : "Received",
9553
+ subject: subject,
9554
+ messages: messages
9555
+ };
9556
+ };
9557
+ var findLangLabel = function findLangLabel(lang, langList) {
9558
+ var found = langList == null ? void 0 : langList.find(function (l) {
9559
+ return l.value === lang;
9560
+ });
9561
+ if (found) return found.label;
9562
+ return lang === "ko" ? "한국어" : lang;
9563
+ };
9564
+ var FilterTabs = function FilterTabs(_ref38) {
9565
+ var mailtype = _ref38.mailtype,
9566
+ onChangeFilter = _ref38.onChangeFilter;
9567
+ return /* @__PURE__ */React__namespace.createElement("div", {
9568
+ style: {
9569
+ display: "flex",
9570
+ justifyContent: "space-between",
9571
+ alignItems: "center",
9572
+ marginBottom: 12,
9573
+ gap: 8
9574
+ }
9575
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9576
+ style: {
9577
+ fontSize: 13,
9578
+ color: "var(--text-secondary)"
9579
+ }
9580
+ }, "This is a summary compiled by AI · May contain some inaccuracies"), /* @__PURE__ */React__namespace.createElement("div", {
9581
+ style: {
9582
+ display: "inline-flex",
9583
+ background: "var(--background-softGrey)",
9584
+ borderRadius: 6,
9585
+ padding: 2,
9586
+ flexShrink: 0
9587
+ }
9588
+ }, FILTERS.map(function (f) {
9589
+ var isActive = mailtype === f.value;
9590
+ return /* @__PURE__ */React__namespace.createElement("button", {
9591
+ key: f.value,
9592
+ type: "button",
9593
+ onClick: function onClick() {
9594
+ return onChangeFilter(f.value);
9595
+ },
9596
+ style: {
9597
+ border: "none",
9598
+ background: isActive ? "var(--primary-main)" : "transparent",
9599
+ color: isActive ? "var(--primary-contrasttext)" : "var(--text-primary)",
9600
+ fontSize: 12,
9601
+ fontWeight: isActive ? 600 : 400,
9602
+ padding: "4px 12px",
9603
+ borderRadius: 4,
9604
+ cursor: "pointer",
9605
+ fontFamily: "inherit",
9606
+ transition: "background 0.15s ease-in-out"
9607
+ }
9608
+ }, f.label);
9609
+ })));
9610
+ };
9611
+ var SummaryItem = function SummaryItem(_ref39) {
9612
+ var item = _ref39.item;
9613
+ var isSent = (item == null ? void 0 : item.direction) === "sent" || (item == null ? void 0 : item.sig) === "out";
9614
+ return /* @__PURE__ */React__namespace.createElement("div", {
9615
+ style: {
9616
+ background: "#fff",
9617
+ border: "1px solid var(--border-light)",
9618
+ borderRadius: 8,
9619
+ padding: 12
9620
+ }
9621
+ }, /* @__PURE__ */React__namespace.createElement("div", {
9622
+ style: {
9623
+ display: "flex",
9624
+ alignItems: "center",
9625
+ gap: 8,
9626
+ marginBottom: 4
9627
+ }
9628
+ }, /* @__PURE__ */React__namespace.createElement("span", {
9629
+ style: {
9630
+ color: "var(--text-secondary)",
9631
+ fontSize: 12
9632
+ }
9633
+ }, formatDate(item == null ? void 0 : item.date)), /* @__PURE__ */React__namespace.createElement("span", {
9634
+ style: {
9635
+ display: "inline-flex",
9636
+ alignItems: "center",
9637
+ gap: 2,
9638
+ padding: "2px 6px",
9639
+ borderRadius: 4,
9640
+ fontSize: 11,
9641
+ fontWeight: 500,
9642
+ background: isSent ? "rgba(33, 150, 243, 0.1)" : "rgba(76, 175, 80, 0.1)",
9643
+ color: isSent ? "#1976d2" : "#2e7d32"
9644
+ }
9645
+ }, isSent ? /* @__PURE__ */React__namespace.createElement(ArrowUp, {
9646
+ size: 11
9647
+ }) : /* @__PURE__ */React__namespace.createElement(ArrowDown, {
9648
+ size: 11
9649
+ }), isSent ? "Sent" : "Received")), /* @__PURE__ */React__namespace.createElement("div", {
9650
+ style: {
9651
+ fontSize: 14,
9652
+ fontWeight: 600,
9653
+ color: "var(--text-primary)",
9654
+ marginBottom: 4
9655
+ }
9656
+ }, (item == null ? void 0 : item.subject) || "-"), /* @__PURE__ */React__namespace.createElement("div", {
9657
+ style: {
9658
+ fontSize: 13,
9659
+ color: "var(--text-secondary)",
9660
+ lineHeight: 1.5
9661
+ }
9662
+ }, (item == null ? void 0 : item.messages) || ""));
9663
+ };
9664
+ var getFlagCode = function getFlagCode(value) {
9665
+ var _a2;
9666
+ return (_a2 = AI_LANG_FLAGS.find(function (l) {
9667
+ return l.value === value;
9668
+ })) == null ? void 0 : _a2.flagCode;
9669
+ };
9670
+ var LanguagePopover = /*#__PURE__*/function (_React__namespace$Com0) {
9671
+ function LanguagePopover(props) {
9672
+ var _this21;
9673
+ _classCallCheck(this, LanguagePopover);
9674
+ _this21 = _callSuper(this, LanguagePopover, [props]);
9675
+ __publicField(_this21, "panelRef");
9676
+ __publicField(_this21, "updatePosition", function () {
9677
+ var anchorEl = _this21.props.anchorEl;
9678
+ if (!anchorEl) return;
9679
+ var rect = anchorEl.getBoundingClientRect();
9680
+ var top = rect.bottom + (window.scrollY || document.documentElement.scrollTop) + 4;
9681
+ var right = window.innerWidth - rect.right - (window.scrollX || document.documentElement.scrollLeft);
9682
+ _this21.setState({
9683
+ top: top,
9684
+ left: window.innerWidth - right - 180
9685
+ });
9686
+ });
9687
+ __publicField(_this21, "handleClickOutside", function (e) {
9688
+ var target = e.target;
9689
+ if (_this21.panelRef.current && !_this21.panelRef.current.contains(target) && _this21.props.anchorEl && !_this21.props.anchorEl.contains(target)) {
9690
+ _this21.props.onClose();
9691
+ }
9692
+ });
9693
+ _this21.panelRef = React__namespace.createRef();
9694
+ _this21.state = {
9695
+ top: 0,
9696
+ left: 0
9697
+ };
9698
+ return _this21;
9699
+ }
9700
+ _inherits(LanguagePopover, _React__namespace$Com0);
9701
+ return _createClass(LanguagePopover, [{
9702
+ key: "componentDidMount",
9703
+ value: function componentDidMount() {
9704
+ document.addEventListener("mousedown", this.handleClickOutside);
9705
+ this.updatePosition();
9706
+ }
9707
+ }, {
9708
+ key: "componentDidUpdate",
9709
+ value: function componentDidUpdate(prevProps) {
9710
+ if (prevProps.anchorEl !== this.props.anchorEl) {
9711
+ this.updatePosition();
9712
+ }
9713
+ }
9714
+ }, {
9715
+ key: "componentWillUnmount",
9716
+ value: function componentWillUnmount() {
9717
+ document.removeEventListener("mousedown", this.handleClickOutside);
9718
+ }
9719
+ }, {
9720
+ key: "render",
9721
+ value: function render() {
9722
+ var _this$props1 = this.props,
9723
+ anchorEl = _this$props1.anchorEl,
9724
+ langList = _this$props1.langList,
9725
+ currentLang = _this$props1.currentLang,
9726
+ onSelect = _this$props1.onSelect;
9727
+ if (!anchorEl) return null;
9728
+ var _this$state9 = this.state,
9729
+ top = _this$state9.top,
9730
+ left = _this$state9.left;
9731
+ return ReactDOM__namespace.createPortal(/* @__PURE__ */React__namespace.createElement("div", {
9732
+ ref: this.panelRef,
8799
9733
  style: {
8800
- display: "flex",
8801
- flexWrap: "wrap",
8802
- gap: 6
9734
+ position: "absolute",
9735
+ top: top,
9736
+ left: left,
9737
+ width: 180,
9738
+ maxHeight: 280,
9739
+ overflowY: "auto",
9740
+ background: "#fff",
9741
+ border: "1px solid var(--border-main)",
9742
+ borderRadius: 6,
9743
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.08)",
9744
+ zIndex: 1200,
9745
+ padding: "4px 0"
8803
9746
  }
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", {
9747
+ }, langList.map(function (l) {
9748
+ var isActive = l.value === currentLang;
9749
+ var flag = getFlagCode(l.value);
9750
+ return /* @__PURE__ */React__namespace.createElement("button", {
9751
+ key: l.value,
8839
9752
  type: "button",
8840
9753
  onClick: function onClick() {
8841
- return _this20.handleRemoveSelected(m.mid);
9754
+ return onSelect(l.value);
8842
9755
  },
8843
9756
  style: {
9757
+ width: "100%",
9758
+ display: "flex",
9759
+ alignItems: "center",
9760
+ gap: 8,
9761
+ padding: "8px 12px",
8844
9762
  border: "none",
8845
- background: "transparent",
9763
+ background: isActive ? "var(--primary-lighter)" : "transparent",
8846
9764
  cursor: "pointer",
8847
- padding: 0,
8848
- color: "var(--text-secondary)",
8849
- display: "inline-flex",
8850
- alignItems: "center",
9765
+ fontSize: 13,
9766
+ fontFamily: "inherit",
9767
+ textAlign: "left",
9768
+ color: "var(--text-primary)"
9769
+ }
9770
+ }, flag && /* @__PURE__ */React__namespace.createElement(CountryFlag, {
9771
+ flagCode: flag,
9772
+ style: {
9773
+ width: 18,
9774
+ height: 14,
8851
9775
  flexShrink: 0
8852
9776
  }
8853
- }, "×"));
8854
- }))));
9777
+ }), /* @__PURE__ */React__namespace.createElement("span", null, l.label));
9778
+ })), document.body);
9779
+ }
9780
+ }]);
9781
+ }(React__namespace.Component);
9782
+ var INITIAL_META = {
9783
+ total: 0,
9784
+ receive: 0,
9785
+ sent: 0,
9786
+ totalPages: 1,
9787
+ filterCount: 0
9788
+ };
9789
+ var SummaryAIEmails = /*#__PURE__*/function (_React__namespace$Com1) {
9790
+ function SummaryAIEmails(props) {
9791
+ var _this22;
9792
+ _classCallCheck(this, SummaryAIEmails);
9793
+ _this22 = _callSuper(this, SummaryAIEmails, [props]);
9794
+ __publicField(_this22, "eventSource", null);
9795
+ __publicField(_this22, "closeStream", function () {
9796
+ if (_this22.eventSource) {
9797
+ _this22.eventSource.close();
9798
+ _this22.eventSource = null;
9799
+ }
9800
+ });
9801
+ __publicField(_this22, "startStream", function () {
9802
+ var targetEmail = _this22.props.targetEmail;
9803
+ var _this22$state = _this22.state,
9804
+ lang = _this22$state.lang,
9805
+ mailtype = _this22$state.mailtype,
9806
+ page = _this22$state.page;
9807
+ if (!targetEmail) return;
9808
+ _this22.closeStream();
9809
+ _this22.setState({
9810
+ items: [],
9811
+ isLoading: true
9812
+ });
9813
+ var url = "".concat(getBaseUrl(), "/email/ai/fromsumstreaming/").concat(encodeURIComponent(targetEmail), "/").concat(lang, "/").concat(PAGE_SIZE, "/").concat(page, "?mailtype=").concat(mailtype);
9814
+ var es = new EventSource(url);
9815
+ _this22.eventSource = es;
9816
+ es.addEventListener("meta", function (ev) {
9817
+ var _a2, _b, _c;
9818
+ try {
9819
+ var parsed = JSON.parse(ev.data || "{}");
9820
+ _this22.setState({
9821
+ meta: {
9822
+ total: ((_a2 = parsed == null ? void 0 : parsed.counts) == null ? void 0 : _a2.total) || 0,
9823
+ receive: ((_b = parsed == null ? void 0 : parsed.counts) == null ? void 0 : _b.receive) || 0,
9824
+ sent: ((_c = parsed == null ? void 0 : parsed.counts) == null ? void 0 : _c.sent) || 0,
9825
+ totalPages: (parsed == null ? void 0 : parsed.total_pages) || 1,
9826
+ filterCount: (parsed == null ? void 0 : parsed.filter_count) || 0
9827
+ }
9828
+ });
9829
+ } catch (e) {}
9830
+ });
9831
+ es.onmessage = function (ev) {
9832
+ if (!(ev == null ? void 0 : ev.data)) return;
9833
+ if (ev.data === "[DONE]") {
9834
+ _this22.closeStream();
9835
+ _this22.setState({
9836
+ isLoading: false
9837
+ });
9838
+ return;
9839
+ }
9840
+ var parsed = parseDataLine(ev.data);
9841
+ if (parsed) {
9842
+ _this22.setState(function (prev) {
9843
+ return {
9844
+ items: [].concat(_toConsumableArray(prev.items), [parsed]),
9845
+ isLoading: false
9846
+ };
9847
+ });
9848
+ }
9849
+ };
9850
+ es.onerror = function () {
9851
+ _this22.closeStream();
9852
+ _this22.setState({
9853
+ isLoading: false
9854
+ });
9855
+ };
9856
+ });
9857
+ __publicField(_this22, "handleChangeFilter", function (val) {
9858
+ if (val === _this22.state.mailtype) return;
9859
+ _this22.setState({
9860
+ mailtype: val,
9861
+ page: 1
9862
+ });
9863
+ });
9864
+ __publicField(_this22, "handleChangeLang", function (val) {
9865
+ _this22.setState({
9866
+ langAnchor: null
9867
+ });
9868
+ if (val === _this22.state.lang) return;
9869
+ _this22.setState({
9870
+ lang: val,
9871
+ page: 1
9872
+ });
9873
+ });
9874
+ __publicField(_this22, "handleChangePage", function (page) {
9875
+ _this22.setState({
9876
+ page: page
9877
+ });
9878
+ });
9879
+ __publicField(_this22, "handleOpenLang", function (anchor) {
9880
+ _this22.setState({
9881
+ langAnchor: anchor
9882
+ });
9883
+ });
9884
+ __publicField(_this22, "handleCloseLang", function () {
9885
+ _this22.setState({
9886
+ langAnchor: null
9887
+ });
9888
+ });
9889
+ _this22.state = {
9890
+ lang: props.defaultLang || "ko",
9891
+ mailtype: "all",
9892
+ page: 1,
9893
+ items: [],
9894
+ meta: INITIAL_META,
9895
+ isLoading: false,
9896
+ langAnchor: null
9897
+ };
9898
+ return _this22;
9899
+ }
9900
+ _inherits(SummaryAIEmails, _React__namespace$Com1);
9901
+ return _createClass(SummaryAIEmails, [{
9902
+ key: "componentDidMount",
9903
+ value: function componentDidMount() {
9904
+ this.startStream();
9905
+ }
9906
+ }, {
9907
+ key: "componentDidUpdate",
9908
+ value: function componentDidUpdate(prevProps, prevState) {
9909
+ var targetChanged = prevProps.targetEmail !== this.props.targetEmail;
9910
+ var filterChanged = prevState.lang !== this.state.lang || prevState.mailtype !== this.state.mailtype || prevState.page !== this.state.page;
9911
+ if (targetChanged || filterChanged) {
9912
+ this.startStream();
9913
+ }
9914
+ }
9915
+ }, {
9916
+ key: "componentWillUnmount",
9917
+ value: function componentWillUnmount() {
9918
+ this.closeStream();
8855
9919
  }
8856
9920
  }, {
8857
9921
  key: "render",
8858
9922
  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
- }
9923
+ var _this$props10 = this.props,
9924
+ targetEmail = _this$props10.targetEmail,
9925
+ targetName = _this$props10.targetName,
9926
+ _this$props10$langLis = _this$props10.langList,
9927
+ langList = _this$props10$langLis === void 0 ? [] : _this$props10$langLis;
9928
+ var _this$state0 = this.state,
9929
+ lang = _this$state0.lang,
9930
+ mailtype = _this$state0.mailtype,
9931
+ page = _this$state0.page,
9932
+ items = _this$state0.items,
9933
+ meta = _this$state0.meta,
9934
+ isLoading = _this$state0.isLoading,
9935
+ langAnchor = _this$state0.langAnchor;
9936
+ var currentLangLabel = findLangLabel(lang, langList);
9937
+ var totalPages = Math.max(1, meta.totalPages || Math.ceil((meta.filterCount || meta.total) / PAGE_SIZE));
9938
+ var filterCount = meta.filterCount || meta.total || 0;
8884
9939
  return /* @__PURE__ */React__namespace.createElement("div", {
8885
- ref: this.rootRef,
8886
9940
  style: {
8887
9941
  display: "flex",
8888
- height: "100%",
8889
- padding: 16,
8890
9942
  flexDirection: "column",
8891
- background: "#fff",
9943
+ background: "var(--background-softGrey)",
9944
+ padding: 16,
9945
+ borderRadius: 8,
8892
9946
  fontFamily: "inherit",
8893
9947
  boxSizing: "border-box"
8894
9948
  }
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", {
9949
+ }, /* @__PURE__ */React__namespace.createElement(TargetInfoBar, {
9950
+ targetName: targetName,
9951
+ targetEmail: targetEmail,
9952
+ currentLangLabel: currentLangLabel,
9953
+ onOpenLang: this.handleOpenLang
9954
+ }), /* @__PURE__ */React__namespace.createElement(FilterTabs, {
9955
+ mailtype: mailtype,
9956
+ onChangeFilter: this.handleChangeFilter
9957
+ }), /* @__PURE__ */React__namespace.createElement("div", {
8905
9958
  style: {
8906
- fontSize: 12,
9959
+ display: "flex",
9960
+ flexDirection: "column",
9961
+ gap: 8,
9962
+ minHeight: 120
9963
+ }
9964
+ }, isLoading && items.length === 0 && /* @__PURE__ */React__namespace.createElement(LoadingContainer, {
9965
+ style: {
9966
+ background: "#fff",
9967
+ borderRadius: 8,
9968
+ height: 160
9969
+ },
9970
+ size: "small"
9971
+ }), !isLoading && items.length === 0 && /* @__PURE__ */React__namespace.createElement("div", {
9972
+ style: {
9973
+ background: "#fff",
9974
+ borderRadius: 8,
9975
+ padding: 24,
9976
+ textAlign: "center",
8907
9977
  color: "var(--text-secondary)",
8908
- padding: 8,
8909
- textAlign: "center"
9978
+ fontSize: 13
8910
9979
  }
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..."
9980
+ }, "No data"), items.map(function (item, idx) {
9981
+ return /* @__PURE__ */React__namespace.createElement(SummaryItem, {
9982
+ key: idx,
9983
+ item: item
9984
+ });
9985
+ })), filterCount > 0 && /* @__PURE__ */React__namespace.createElement(Pagination, {
9986
+ total: filterCount,
9987
+ page: page,
9988
+ totalPages: totalPages,
9989
+ onChangePage: this.handleChangePage
9990
+ }), /* @__PURE__ */React__namespace.createElement(LanguagePopover, {
9991
+ anchorEl: langAnchor,
9992
+ langList: langList,
9993
+ currentLang: lang,
9994
+ onSelect: this.handleChangeLang,
9995
+ onClose: this.handleCloseLang
8924
9996
  }));
8925
9997
  }
8926
9998
  }]);
8927
9999
  }(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
10000
  exports2.AI_LANG_FLAGS = AI_LANG_FLAGS;
9006
10001
  exports2.ChatAIDraft = ChatAIDraft;
9007
- exports2.CountryFlag = CountryFlag;
9008
10002
  exports2.LoadingCircular = LoadingCircular;
9009
10003
  exports2.LoadingContainer = LoadingContainer;
9010
- exports2.Tooltip = Tooltip;
9011
- exports2.getBaseUrl = getBaseUrl;
9012
- exports2.getGroupwareUrl = getGroupwareUrl;
10004
+ exports2.Pagination = Pagination;
10005
+ exports2.SummaryAIEmails = SummaryAIEmails;
9013
10006
  exports2.initHanbiroReactSDK = initHanbiroReactSDK;
9014
10007
  Object.defineProperty(exports2, Symbol.toStringTag, {
9015
10008
  value: "Module"