@appquality/unguess-design-system 3.1.87-beta-attachments → 3.1.89-beta-attachments

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.
package/build/index.js CHANGED
@@ -37,13 +37,13 @@ var Mention = require('@tiptap/extension-mention');
37
37
  var tippy = require('tippy.js');
38
38
  var Image$2 = require('@tiptap/extension-image');
39
39
  var Dropcursor = require('@tiptap/extension-dropcursor');
40
+ var reactGrid = require('@zendeskgarden/react-grid');
40
41
  var reactModals = require('@zendeskgarden/react-modals');
41
42
  var SlickSlider = require('react-slick');
42
43
  var Video = require('@appquality/stream-player');
43
44
  var containerUtilities = require('@zendeskgarden/container-utilities');
44
45
  var reactColorpickers = require('@zendeskgarden/react-colorpickers');
45
46
  var reactDropdowns = require('@zendeskgarden/react-dropdowns');
46
- var reactGrid = require('@zendeskgarden/react-grid');
47
47
  var formik = require('formik');
48
48
  var reactChrome = require('@zendeskgarden/react-chrome');
49
49
  var reactPagination = require('@zendeskgarden/react-pagination');
@@ -841,48 +841,48 @@ Tag.Avatar = StyledAvatar;
841
841
  Tag.Close = StyledClose;
842
842
  Tag.SecondaryText = StyledSpan;
843
843
 
844
- var _path$D;
845
- function _extends$P() { _extends$P = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$P.apply(this, arguments); }
846
- const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
844
+ var _path$F;
845
+ function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
846
+ const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
847
847
  width: 24,
848
848
  height: 24,
849
849
  viewBox: "0 0 24 24",
850
850
  fill: "none",
851
851
  xmlns: "http://www.w3.org/2000/svg"
852
- }, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
852
+ }, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
853
853
  d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z",
854
854
  fill: "#E80C7A"
855
855
  })));
856
856
 
857
- var _path$C;
858
- function _extends$O() { _extends$O = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$O.apply(this, arguments); }
859
- const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
857
+ var _path$E;
858
+ function _extends$Q() { _extends$Q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Q.apply(this, arguments); }
859
+ const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
860
860
  width: 24,
861
861
  height: 24,
862
862
  viewBox: "0 0 24 24",
863
863
  fill: "none",
864
864
  xmlns: "http://www.w3.org/2000/svg"
865
- }, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
865
+ }, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
866
866
  d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
867
867
  fill: "#FFCD1A"
868
868
  })));
869
869
 
870
- var _path$B;
871
- function _extends$N() { _extends$N = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$N.apply(this, arguments); }
872
- const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
870
+ var _path$D;
871
+ function _extends$P() { _extends$P = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$P.apply(this, arguments); }
872
+ const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
873
873
  width: 24,
874
874
  height: 24,
875
875
  viewBox: "0 0 24 24",
876
876
  fill: "none",
877
877
  xmlns: "http://www.w3.org/2000/svg"
878
- }, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
878
+ }, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
879
879
  d: "M11.9993 7.32625L18.3893 17.5563H5.60929L11.9993 7.32625ZM11.1493 4.91625L2.94929 18.0262C2.53929 18.6962 3.01929 19.5563 3.79929 19.5563H20.1993C20.9893 19.5563 21.4593 18.6962 21.0493 18.0262L12.8493 4.91625C12.4593 4.28625 11.5393 4.28625 11.1493 4.91625Z",
880
880
  fill: "#7B0DFF"
881
881
  })));
882
882
 
883
- var _rect$4, _path$A, _path2$b, _path3$4;
884
- function _extends$M() { _extends$M = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$M.apply(this, arguments); }
885
- const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
883
+ var _rect$4, _path$C, _path2$c, _path3$4;
884
+ function _extends$O() { _extends$O = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$O.apply(this, arguments); }
885
+ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
886
886
  width: 24,
887
887
  height: 24,
888
888
  viewBox: "0 0 24 24",
@@ -893,10 +893,10 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
893
893
  height: 24,
894
894
  rx: 12,
895
895
  fill: "#F6F6F8"
896
- })), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
896
+ })), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
897
897
  d: "M20.6953 5.73905C21.0148 5.41953 21.0148 4.90149 20.6953 4.58197C20.3758 4.26245 19.8577 4.26245 19.5382 4.58197L11.88 12.2402L10.0849 9.95981C9.80539 9.60476 9.29098 9.54352 8.93593 9.82303C8.58088 10.1025 8.51963 10.6169 8.79914 10.972L11.1642 13.9763C11.3089 14.16 11.5252 14.2731 11.7586 14.2869C11.9921 14.3008 12.2203 14.2141 12.3856 14.0487L20.6953 5.73905Z",
898
898
  fill: "#50BF95"
899
- })), _path2$b || (_path2$b = /*#__PURE__*/React__namespace.createElement("path", {
899
+ })), _path2$c || (_path2$c = /*#__PURE__*/React__namespace.createElement("path", {
900
900
  d: "M3 12C3 7.02944 7.02944 3 12 3C13.3602 3 14.6521 3.3023 15.8102 3.84415C16.2195 4.03565 16.396 4.52268 16.2045 4.93196C16.013 5.34125 15.526 5.5178 15.1167 5.3263C14.1712 4.88391 13.1156 4.63636 12 4.63636C7.93318 4.63636 4.63636 7.93318 4.63636 12C4.63636 16.0668 7.93318 19.3636 12 19.3636C16.0668 19.3636 19.3636 16.0668 19.3636 12C19.3636 11.3631 19.283 10.7462 19.1317 10.1585C19.0191 9.72084 19.2826 9.27479 19.7202 9.16218C20.1578 9.04957 20.6038 9.31303 20.7165 9.75064C20.9017 10.4705 21 11.2243 21 12C21 16.9705 16.9705 21 12 21C7.02944 21 3 16.9705 3 12Z",
901
901
  fill: "#50BF95"
902
902
  })), _path3$4 || (_path3$4 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -904,9 +904,9 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
904
904
  fill: "#007345"
905
905
  })));
906
906
 
907
- var _rect$3, _path$z, _path2$a;
908
- function _extends$L() { _extends$L = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$L.apply(this, arguments); }
909
- const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
907
+ var _rect$3, _path$B, _path2$b;
908
+ function _extends$N() { _extends$N = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$N.apply(this, arguments); }
909
+ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
910
910
  width: 24,
911
911
  height: 24,
912
912
  viewBox: "0 0 24 24",
@@ -917,21 +917,21 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
917
917
  height: 24,
918
918
  rx: 12,
919
919
  fill: "#F6F6F8"
920
- })), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
920
+ })), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
921
921
  fillRule: "evenodd",
922
922
  clipRule: "evenodd",
923
923
  d: "M13.55 19.0875C14.25 19.7875 15.1063 20.1375 16.1188 20.1375C17.1313 20.1375 17.9875 19.7875 18.6875 19.0875C19.3875 18.3875 19.7375 17.5312 19.7375 16.5187C19.7375 15.5062 19.3875 14.65 18.6875 13.95C17.9875 13.25 17.1313 12.9 16.1188 12.9C15.1063 12.9 14.25 13.25 13.55 13.95C12.85 14.65 12.5 15.5062 12.5 16.5187C12.5 17.5312 12.85 18.3875 13.55 19.0875ZM17.5062 18.2812C17.4187 18.2812 17.3375 18.25 17.2625 18.1875L15.7438 16.7812C15.6813 16.6687 15.65 16.6 15.65 16.575V14.55C15.65 14.4375 15.6875 14.3437 15.7625 14.2687C15.8375 14.1937 15.9313 14.1562 16.0438 14.1562C16.1563 14.1562 16.25 14.1937 16.325 14.2687C16.4 14.3437 16.4375 14.4375 16.4375 14.55V16.4813L17.7313 17.6625C17.8063 17.725 17.8469 17.8062 17.8531 17.9062C17.8594 18.0063 17.825 18.0938 17.75 18.1688C17.675 18.2438 17.5937 18.2812 17.5062 18.2812Z",
924
924
  fill: "#D1820A"
925
- })), _path2$a || (_path2$a = /*#__PURE__*/React__namespace.createElement("path", {
925
+ })), _path2$b || (_path2$b = /*#__PURE__*/React__namespace.createElement("path", {
926
926
  fillRule: "evenodd",
927
927
  clipRule: "evenodd",
928
928
  d: "M6.125 19.5C5.8125 19.5 5.54688 19.3906 5.32812 19.1719C5.10938 18.9531 5 18.6875 5 18.375V10.2375C5 9.925 5.10938 9.65937 5.32812 9.44062C5.54688 9.22187 5.8125 9.1125 6.125 9.1125H7.4375V7.36875C7.4375 6.36875 7.78437 5.51562 8.47812 4.80937C9.17188 4.10312 10.0125 3.75 11 3.75C11.9875 3.75 12.8281 4.10312 13.5219 4.80937C14.2156 5.51562 14.5625 6.36875 14.5625 7.36875V9.1125H15.875C16.1875 9.1125 16.4531 9.22187 16.6719 9.44062C16.8906 9.65937 17 9.925 17 10.2375V11.8687C16.8125 11.8187 16.625 11.7875 16.4375 11.775C16.25 11.7625 16.0625 11.7625 15.875 11.775C14.6 11.825 13.5312 12.3094 12.6688 13.2281C11.8063 14.1469 11.375 15.2437 11.375 16.5187C11.375 17.0687 11.4688 17.5969 11.6562 18.1031C11.8438 18.6094 12.1063 19.075 12.4438 19.5H6.125ZM13.4375 9.1125H8.5625V7.36875C8.5625 6.68125 8.8 6.09375 9.275 5.60625C9.75 5.11875 10.325 4.875 11 4.875C11.675 4.875 12.25 5.11875 12.725 5.60625C13.2 6.09375 13.4375 6.68125 13.4375 7.36875V9.1125Z",
929
929
  fill: "#F4AC1A"
930
930
  })));
931
931
 
932
- var _rect$2, _path$y, _path2$9;
933
- function _extends$K() { _extends$K = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$K.apply(this, arguments); }
934
- const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
932
+ var _rect$2, _path$A, _path2$a;
933
+ function _extends$M() { _extends$M = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$M.apply(this, arguments); }
934
+ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
935
935
  width: 24,
936
936
  height: 24,
937
937
  viewBox: "0 0 24 24",
@@ -942,13 +942,13 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
942
942
  height: 24,
943
943
  rx: 12,
944
944
  fill: "#F6F6F8"
945
- })), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
945
+ })), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
946
946
  d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
947
947
  stroke: "#024780",
948
948
  strokeWidth: 1.5,
949
949
  strokeLinecap: "round",
950
950
  strokeLinejoin: "round"
951
- })), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
951
+ })), _path2$a || (_path2$a = /*#__PURE__*/React__namespace.createElement("path", {
952
952
  d: "M15.4918 4.52347C14.4312 4.02725 13.2477 3.75003 11.9995 3.75003C7.44316 3.75003 3.74951 7.44368 3.74951 12C3.74951 16.5564 7.44316 20.25 11.9995 20.25C16.5558 20.25 20.2495 16.5564 20.2495 12C20.2495 11.2878 20.1593 10.5968 19.9896 9.93753",
953
953
  stroke: "#53AFFA",
954
954
  strokeWidth: 1.5,
@@ -956,9 +956,9 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
956
956
  strokeLinejoin: "round"
957
957
  })));
958
958
 
959
- var _rect$1, _path$x, _path2$8, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
960
- function _extends$J() { _extends$J = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$J.apply(this, arguments); }
961
- const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
959
+ var _rect$1, _path$z, _path2$9, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
960
+ function _extends$L() { _extends$L = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$L.apply(this, arguments); }
961
+ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
962
962
  width: 24,
963
963
  height: 24,
964
964
  viewBox: "0 0 24 24",
@@ -969,10 +969,10 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
969
969
  height: 24,
970
970
  rx: 12,
971
971
  fill: "#F6F6F8"
972
- })), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
972
+ })), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
973
973
  d: "M13.059 16.7647C13.059 16.1799 12.585 15.7059 12.0002 15.7059C11.4154 15.7059 10.9414 16.1799 10.9414 16.7647V19.9412C10.9414 20.5259 11.4154 21 12.0002 21C12.585 21 13.059 20.5259 13.059 19.9412V16.7647Z",
974
974
  fill: "#D1820A"
975
- })), _path2$8 || (_path2$8 = /*#__PURE__*/React__namespace.createElement("path", {
975
+ })), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
976
976
  d: "M16.1149 14.6183C15.7014 14.2048 15.031 14.2048 14.6175 14.6183C14.204 15.0318 14.204 15.7022 14.6175 16.1157L16.8649 18.3631C17.2783 18.7766 17.9488 18.7766 18.3623 18.3631C18.7757 17.9496 18.7757 17.2792 18.3623 16.8657L16.1149 14.6183Z",
977
977
  fill: "#D1820A"
978
978
  })), _path3$3 || (_path3$3 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -1001,9 +1001,9 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
1001
1001
  fill: "#FFB65A"
1002
1002
  })));
1003
1003
 
1004
- var _g$b, _path$w, _path2$7, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
1005
- function _extends$I() { _extends$I = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$I.apply(this, arguments); }
1006
- const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
1004
+ var _g$b, _path$y, _path2$8, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
1005
+ function _extends$K() { _extends$K = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$K.apply(this, arguments); }
1006
+ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
1007
1007
  width: 24,
1008
1008
  height: 24,
1009
1009
  viewBox: "0 0 24 24",
@@ -1015,11 +1015,11 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
1015
1015
  opacity: 0.3,
1016
1016
  d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
1017
1017
  fill: "#50BF95"
1018
- }))), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
1018
+ }))), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
1019
1019
  d: "M12.487 3.19652C8.68003 3.19652 5.59895 6.27761 5.59895 10.0846C5.59895 10.2597 5.59895 10.4348 5.62438 10.5855C5.29857 11.1863 4.82307 12.013 4.24678 12.514C3.82117 12.8897 3.92096 13.2908 3.97085 13.4405C4.09609 13.7663 4.44635 14.0413 5.02265 14.2418C5.22322 14.3172 5.44825 14.3671 5.64883 14.417L5.67427 16.8464C5.67427 17.7984 6.47559 18.6251 7.45304 18.6251L8.93044 18.1496L9.08111 19.0263C9.18091 19.6026 9.68185 20.0282 10.2836 20.0282C10.3589 20.0282 10.4343 20.0282 10.5086 20.0028L15.1424 19.177C15.8185 19.0517 16.2441 18.4256 16.1443 17.7495L15.8185 16.1214C17.9974 14.9189 19.375 12.5892 19.375 10.0845C19.375 6.30279 16.2696 3.19641 12.4869 3.19641L12.487 3.19652Z",
1020
1020
  fill: "#2B8473",
1021
1021
  stroke: "#2B8473"
1022
- })), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
1022
+ })), _path2$8 || (_path2$8 = /*#__PURE__*/React__namespace.createElement("path", {
1023
1023
  fillRule: "evenodd",
1024
1024
  clipRule: "evenodd",
1025
1025
  d: "M6.39343 10.7683V10.1215H8.06761V10.7683H6.39343Z",
@@ -1071,9 +1071,9 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
1071
1071
  fill: "#ECF4F2"
1072
1072
  })));
1073
1073
 
1074
- var _g$a, _path$v;
1075
- function _extends$H() { _extends$H = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
1076
- const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
1074
+ var _g$a, _path$x;
1075
+ function _extends$J() { _extends$J = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$J.apply(this, arguments); }
1076
+ const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
1077
1077
  width: 24,
1078
1078
  height: 24,
1079
1079
  viewBox: "0 0 24 24",
@@ -1085,7 +1085,7 @@ const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createEleme
1085
1085
  opacity: 0.3,
1086
1086
  d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
1087
1087
  fill: "#003A57"
1088
- }))), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
1088
+ }))), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
1089
1089
  d: "M17.9983 7.16705C17.5188 6.58566 17.1422 6.73039 17.1422 6.73039C17.1422 6.73039 16.406 7.02453 16.0401 7.16303C15.6742 7.30153 15.2408 7.17357 15.2408 7.17357L14.7579 6.8851C14.7579 6.8851 14.4296 6.56554 14.3656 6.18067C14.3123 5.78958 14.1888 5.00269 14.1888 5.00269C14.1888 5.00269 14.1356 4.61159 13.3938 4.47257C12.652 4.33356 12.4678 4.68715 12.4678 4.68715C12.4678 4.68715 12.0932 5.38344 11.9091 5.73703C11.7249 6.09062 11.3114 6.27118 11.3114 6.27118L10.7639 6.36908C10.7639 6.36908 10.3144 6.33771 10.0176 6.07271L9.12712 5.27769C9.12712 5.27769 8.8303 5.01268 8.18313 5.38632C7.53595 5.75997 7.61705 6.14953 7.61705 6.14953L7.86033 7.3182C7.94143 7.70776 7.74381 8.11275 7.74381 8.11275L7.38528 8.53794C7.38528 8.53794 7.02217 8.80577 6.62387 8.78845C6.22557 8.77114 5.43527 8.7474 5.43527 8.7474C5.43527 8.7474 5.03697 8.73009 4.78646 9.44201C4.53595 10.1539 4.84804 10.3956 4.84804 10.3956C4.84804 10.3956 5.46774 10.896 5.77983 11.1376C6.09192 11.3793 6.19373 11.8296 6.19373 11.8296L6.20207 12.3921C6.20207 12.3921 6.09618 12.8314 5.79331 13.079C5.49043 13.3266 4.86759 13.8171 4.86759 13.8171C4.86759 13.8171 4.56471 14.0647 4.81769 14.7769C5.08144 15.4828 5.46713 15.4783 5.46713 15.4783C5.46713 15.4783 6.26012 15.4569 6.64582 15.4524C7.03152 15.4479 7.40116 15.7145 7.40116 15.7145L7.76458 16.1447C7.76458 16.1447 7.96976 16.5499 7.89441 16.9425C7.81907 17.3351 7.66208 18.1094 7.66208 18.1094C7.66208 18.1094 7.58674 18.502 8.23785 18.8824C8.88895 19.2629 9.18553 19.0044 9.18553 19.0044C9.18553 19.0044 9.7724 18.4765 10.069 18.218C10.3655 17.9595 10.8115 17.9347 10.8115 17.9347L11.3609 18.0394C11.3609 18.0394 11.77 18.225 11.9608 18.5803C12.1516 18.9356 12.5268 19.6354 12.5268 19.6354C12.5268 19.6354 12.7176 19.9907 13.4583 19.8539C14.1946 19.7343 14.2529 19.337 14.2529 19.337C14.2529 19.337 14.3586 18.5487 14.4232 18.1623C14.4814 17.765 14.8086 17.4598 14.8086 17.4598L15.2939 17.1796C15.2939 17.1796 15.7281 17.0598 16.095 17.1971C16.4682 17.3453 17.1975 17.637 17.1975 17.637C17.1975 17.637 17.5707 17.7851 18.0424 17.2073C18.5142 16.6295 18.3189 16.2913 18.3189 16.2913C18.3189 16.2913 17.9006 15.6164 17.6882 15.2736C17.4759 14.9307 17.5197 14.4836 17.5197 14.4836L17.7038 13.9555C17.7038 13.9555 17.9482 13.5816 18.3203 13.454C18.6925 13.3264 19.4431 13.0822 19.4431 13.0822C19.4431 13.0822 19.8153 12.9546 19.8113 12.2005C19.8074 11.4464 19.4297 11.3153 19.4297 11.3153C19.4297 11.3153 18.6807 11.0641 18.303 10.9331C17.9253 10.802 17.677 10.4217 17.677 10.4217L17.4861 9.8919C17.4861 9.8919 17.4293 9.4447 17.6368 9.1067C17.8443 8.7687 18.2486 8.09891 18.2486 8.09891C18.2486 8.09891 18.4778 7.74844 17.9983 7.16707L17.9983 7.16705ZM9.33902 8.38466L10.6176 10.5992C10.0433 11.149 9.82793 11.9715 10.0567 12.7413L7.86713 14.0054C6.98868 12.0106 7.60355 9.66286 9.33905 8.38457L9.33902 8.38466ZM13.9748 16.414C11.9998 17.2778 9.65918 16.6363 8.37099 14.8783L10.5605 13.6141C11.1128 14.1971 11.9329 14.4219 12.6961 14.1994L13.9748 16.414ZM12.6552 13.132C12.1159 13.4434 11.4325 13.2561 11.1176 12.7107C10.8027 12.1652 10.9822 11.4797 11.5215 11.1684C12.0608 10.857 12.7441 11.0443 13.0591 11.5897C13.374 12.1352 13.1945 12.8207 12.6552 13.132ZM14.8376 15.9158L13.5591 13.7012C14.1333 13.1515 14.3487 12.3289 14.12 11.5591L16.3095 10.295C17.188 12.2898 16.5731 14.6376 14.8376 15.9159L14.8376 15.9158ZM13.6161 10.6863C13.0638 10.1034 12.2437 9.87862 11.4805 10.1011L10.2019 7.88652C12.1769 7.02266 14.5112 7.65314 15.8057 9.42223L13.6161 10.6863Z",
1090
1090
  fill: "#003A57"
1091
1091
  })));
@@ -1947,8 +1947,8 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
1947
1947
  };
1948
1948
 
1949
1949
  var _g$9, _defs$4;
1950
- function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
1951
- const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
1950
+ function _extends$I() { _extends$I = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$I.apply(this, arguments); }
1951
+ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
1952
1952
  width: 27,
1953
1953
  height: 26,
1954
1954
  viewBox: "0 0 27 26",
@@ -1971,8 +1971,8 @@ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg"
1971
1971
  })))));
1972
1972
 
1973
1973
  var _g$8, _defs$3;
1974
- function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
1975
- const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
1974
+ function _extends$H() { _extends$H = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
1975
+ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
1976
1976
  width: 27,
1977
1977
  height: 26,
1978
1978
  viewBox: "0 0 27 26",
@@ -1995,8 +1995,8 @@ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg"
1995
1995
  })))));
1996
1996
 
1997
1997
  var _g$7, _defs$2;
1998
- function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
1999
- const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
1998
+ function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
1999
+ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
2000
2000
  width: 27,
2001
2001
  height: 26,
2002
2002
  viewBox: "0 0 27 26",
@@ -2025,8 +2025,8 @@ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg"
2025
2025
  })))));
2026
2026
 
2027
2027
  var _g$6, _defs$1;
2028
- function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
2029
- const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
2028
+ function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
2029
+ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
2030
2030
  width: 27,
2031
2031
  height: 26,
2032
2032
  viewBox: "0 0 27 26",
@@ -2055,8 +2055,8 @@ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg"
2055
2055
  })))));
2056
2056
 
2057
2057
  var _g$5, _defs;
2058
- function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
2059
- const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
2058
+ function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
2059
+ const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
2060
2060
  width: 26,
2061
2061
  height: 26,
2062
2062
  viewBox: "0 0 26 26",
@@ -2316,7 +2316,6 @@ const ChatContext = React.createContext(null);
2316
2316
  const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, children, }) => {
2317
2317
  const [editor, setEditor] = React.useState();
2318
2318
  const [thumbnails, setThumbnails] = React.useState([]);
2319
- //const [isMediaUploading, setIsMediaUploading] = useState<boolean>(false);
2320
2319
  const getMentions = (editor) => {
2321
2320
  const result = [];
2322
2321
  editor.state.doc.descendants((node) => {
@@ -2349,8 +2348,6 @@ const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, childr
2349
2348
  return file;
2350
2349
  }));
2351
2350
  },
2352
- //isMediaUploading, // Incluso nel valore del contesto
2353
- //setIsMediaUploading, // Incluso nel valore del contesto
2354
2351
  addThumbnails: ({ files, }) => {
2355
2352
  files.forEach((file) => (file.isLoadingMedia = true));
2356
2353
  setThumbnails((prev) => [...prev, ...files]);
@@ -2358,20 +2355,23 @@ const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, childr
2358
2355
  onFileUpload(files).then((data) => {
2359
2356
  var _a;
2360
2357
  const failed = (_a = data.failed) === null || _a === void 0 ? void 0 : _a.map(f => f.name);
2361
- setThumbnails(thumbnails.map((file) => {
2362
- file.isLoadingMedia = false;
2363
- if ((failed === null || failed === void 0 ? void 0 : failed.length) && failed.includes(file.name)) ;
2364
- return file;
2365
- }));
2358
+ setThumbnails((prev) => {
2359
+ return prev.map((file) => {
2360
+ file.isLoadingMedia = false;
2361
+ if ((failed === null || failed === void 0 ? void 0 : failed.length) && failed.includes(file.name)) {
2362
+ file.isError = true;
2363
+ }
2364
+ else {
2365
+ file.isError = false;
2366
+ }
2367
+ return file;
2368
+ });
2369
+ });
2366
2370
  });
2367
2371
  }
2368
- /* const media = files.map((file) => ({
2369
- ...file,
2370
- isLoadingMedia: false,
2371
- }));
2372
- media[0].isLoadingMedia = false;*/
2373
- //setIsMediaUploading(true);
2374
- //setIsMediaUploading(false);
2372
+ },
2373
+ clearThumbnails: () => {
2374
+ setThumbnails([]);
2375
2375
  },
2376
2376
  removeThumbnail: (index) => setThumbnails(thumbnails.filter((_, i) => i !== index)),
2377
2377
  triggerSave: () => {
@@ -2389,11 +2389,8 @@ const ChatContextProvider = ({ onSave, onFileUpload, setMentionableUsers, childr
2389
2389
  setMentionableUsers,
2390
2390
  thumbnails,
2391
2391
  setThumbnails,
2392
- onFileUpload,
2393
- //setIsMediaUploading,
2394
- //isMediaUploading,
2392
+ onFileUpload
2395
2393
  ]);
2396
- console.log("thumbnails: ", thumbnails);
2397
2394
  return (jsxRuntime.jsx(ChatContext.Provider, Object.assign({ value: chatContextValue }, { children: children })));
2398
2395
  };
2399
2396
  const useChatContext = () => {
@@ -2728,28 +2725,96 @@ const ChatTitle = styled__default["default"](Title$1) `
2728
2725
  padding: ${({ theme }) => `${theme.space.sm} ${theme.space.md}`};
2729
2726
  `;
2730
2727
 
2731
- var _path$u;
2732
- function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
2733
- const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
2728
+ const UgClose$1 = styled__default["default"](reactNotifications.Close) `
2729
+ display: flex;
2730
+ align-items: center;
2731
+ justify-content: center;
2732
+ width: ${({ theme }) => theme.space.xl};
2733
+ height: ${({ theme }) => theme.space.xl};
2734
+ `;
2735
+ /**
2736
+ * Title is a basic component used to display a title. Often used in card headers.
2737
+ */
2738
+ const Close = (props) => jsxRuntime.jsx(UgClose$1, Object.assign({}, props));
2739
+
2740
+ const NOTIFICATION_COMPONENT_ID = "notifications.notification";
2741
+ const CLOSE_COMPONENT_ID = "notifications.notification.close";
2742
+ const CLOSE_ICON_COMPONENT_ID = "notifications.notification.close-icon";
2743
+ const TITLE_COMPONENT_ID = "notifications.notification.title";
2744
+ const UgClose = styled__default["default"](Close).attrs((props) => {
2745
+ var _a;
2746
+ return ({
2747
+ "data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_ICON_COMPONENT_ID,
2748
+ });
2749
+ }) `
2750
+ ${(props) => reactTheming.retrieveComponentStyles(CLOSE_ICON_COMPONENT_ID, props)};
2751
+ `;
2752
+ const UgAnchor = styled__default["default"](reactButtons.Anchor).attrs((props) => {
2753
+ var _a;
2754
+ return ({
2755
+ "data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_COMPONENT_ID,
2756
+ });
2757
+ }) `
2758
+ ${(props) => reactTheming.retrieveComponentStyles(CLOSE_COMPONENT_ID, props)};
2759
+ `;
2760
+ const UgTitle = styled__default["default"](Title$1).attrs((props) => {
2761
+ var _a;
2762
+ return ({
2763
+ "data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : TITLE_COMPONENT_ID,
2764
+ });
2765
+ }) `
2766
+ ${(props) => reactTheming.retrieveComponentStyles(TITLE_COMPONENT_ID, props)};
2767
+ `;
2768
+ const UgNotification = styled__default["default"](reactNotifications.Notification) `
2769
+ display: flex;
2770
+ align-items: center;
2771
+ justify-content: space-between;
2772
+ padding-right: ${({ theme }) => theme.space.md};
2773
+ white-space: pre;
2774
+
2775
+ ${UgAnchor} {
2776
+ flex-shrink: 0;
2777
+ margin-left: ${({ theme }) => theme.space.md};
2778
+ }
2779
+
2780
+ ${(props) => reactTheming.retrieveComponentStyles(NOTIFICATION_COMPONENT_ID, props)};
2781
+ `;
2782
+ /**
2783
+ * A Notification is a passive status update that keeps users informed of system progress.
2784
+ * <hr>
2785
+ * Used for this:
2786
+ - For a passive status update about user or system activity
2787
+ */
2788
+ const Notification = (_a) => {
2789
+ var { closeText, message, onClose, type, isPrimary, isRegular } = _a, props = __rest(_a, ["closeText", "message", "onClose", "type", "isPrimary", "isRegular"]);
2790
+ return (jsxRuntime.jsxs(UgNotification, Object.assign({ type: type, isPrimary: isPrimary }, props, { children: [jsxRuntime.jsx(UgTitle, Object.assign({ isRegular: isRegular, type: type, isPrimary: isPrimary }, { children: message })), jsxRuntime.jsx(UgAnchor, Object.assign({ type: type, isPrimary: isPrimary, onClick: onClose }, { children: closeText !== null && closeText !== void 0 ? closeText : jsxRuntime.jsx(UgClose, {}) }))] })));
2791
+ };
2792
+ // ToastProvider
2793
+ const ToastProvider = (props) => (jsxRuntime.jsx(reactNotifications.ToastProvider, Object.assign({}, props)));
2794
+ const useToast = reactNotifications.useToast;
2795
+
2796
+ var _path$w;
2797
+ function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
2798
+ const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
2734
2799
  xmlns: "http://www.w3.org/2000/svg",
2735
2800
  width: 16,
2736
2801
  height: 16,
2737
2802
  focusable: "false",
2738
2803
  viewBox: "0 0 16 16"
2739
- }, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
2804
+ }, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
2740
2805
  fill: "currentColor",
2741
2806
  d: "M7.5 0C9.952 0 12 2.048 12 4.5a4.483 4.483 0 01-1.27 3.108C12.078 8.39 13 9.855 13 11.5c0 2.452-2.048 4.5-4.5 4.5H4a1 1 0 01-1-1V1a1 1 0 011-1h3.5zM5 14h3.5c1.348 0 2.5-1.152 2.5-2.5S9.848 9 8.5 9H5v5zM7.5 2H5v5h2.5C8.848 7 10 5.848 10 4.5S8.848 2 7.5 2z"
2742
2807
  })));
2743
2808
 
2744
- var _path$t;
2745
- function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
2746
- const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
2809
+ var _path$v;
2810
+ function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
2811
+ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
2747
2812
  xmlns: "http://www.w3.org/2000/svg",
2748
2813
  width: 16,
2749
2814
  height: 16,
2750
2815
  focusable: "false",
2751
2816
  viewBox: "0 0 16 16"
2752
- }, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
2817
+ }, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
2753
2818
  fill: "none",
2754
2819
  stroke: "currentColor",
2755
2820
  strokeLinecap: "round",
@@ -2757,18 +2822,18 @@ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg"
2757
2822
  d: "M8 1h3M9.5 1l-3 14M5 15h3"
2758
2823
  })));
2759
2824
 
2760
- var _path$s, _path2$6;
2761
- function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
2762
- const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
2825
+ var _path$u, _path2$7;
2826
+ function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
2827
+ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
2763
2828
  xmlns: "http://www.w3.org/2000/svg",
2764
2829
  width: 16,
2765
2830
  height: 16,
2766
2831
  focusable: "false",
2767
2832
  viewBox: "0 0 16 16"
2768
- }, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
2833
+ }, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
2769
2834
  fill: "currentColor",
2770
2835
  d: "M7 8H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1zm6 0h-3c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1z"
2771
- })), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
2836
+ })), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
2772
2837
  fill: "none",
2773
2838
  stroke: "currentColor",
2774
2839
  strokeLinecap: "round",
@@ -2777,8 +2842,8 @@ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg",
2777
2842
  })));
2778
2843
 
2779
2844
  var _g$4;
2780
- function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
2781
- const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
2845
+ function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
2846
+ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
2782
2847
  xmlns: "http://www.w3.org/2000/svg",
2783
2848
  width: 16,
2784
2849
  height: 16,
@@ -2805,8 +2870,8 @@ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
2805
2870
  }))));
2806
2871
 
2807
2872
  var _g$3;
2808
- function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
2809
- const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
2873
+ function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
2874
+ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
2810
2875
  xmlns: "http://www.w3.org/2000/svg",
2811
2876
  width: 16,
2812
2877
  height: 16,
@@ -2833,8 +2898,8 @@ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
2833
2898
  }))));
2834
2899
 
2835
2900
  var _g$2;
2836
- function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
2837
- const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
2901
+ function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
2902
+ const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
2838
2903
  xmlns: "http://www.w3.org/2000/svg",
2839
2904
  width: 16,
2840
2905
  height: 16,
@@ -2907,58 +2972,58 @@ const Tooltip = styled__default["default"](TooltipComponent) `
2907
2972
  box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor("neutralHue", 600, theme, 0.15))};
2908
2973
  `;
2909
2974
 
2910
- var _path$r;
2911
- function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
2912
- const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
2975
+ var _path$t;
2976
+ function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
2977
+ const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
2913
2978
  xmlns: "http://www.w3.org/2000/svg",
2914
2979
  width: 16,
2915
2980
  height: 16,
2916
2981
  focusable: "false",
2917
2982
  viewBox: "0 0 16 16"
2918
- }, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
2983
+ }, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
2919
2984
  fill: "currentColor",
2920
2985
  d: "M7 1c2.176 0 4 1.824 4 4 0 1.315-.666 2.501-1.673 3.234C10.869 8.792 12 10.287 12 12c0 2.176-1.824 4-4 4H3.5a.5.5 0 01-.5-.5v-14a.5.5 0 01.5-.5H7zM4 15h4c1.624 0 3-1.376 3-3S9.624 9 8 9H4v6zM7 2H4v6h3c1.624 0 3-1.376 3-3S8.624 2 7 2z"
2921
2986
  })));
2922
2987
 
2923
- var _path$q;
2924
- function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
2925
- const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
2988
+ var _path$s;
2989
+ function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
2990
+ const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
2926
2991
  xmlns: "http://www.w3.org/2000/svg",
2927
2992
  width: 16,
2928
2993
  height: 16,
2929
2994
  focusable: "false",
2930
2995
  viewBox: "0 0 16 16"
2931
- }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
2996
+ }, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
2932
2997
  fill: "none",
2933
2998
  stroke: "currentColor",
2934
2999
  strokeLinecap: "round",
2935
3000
  d: "M7.5 1.5h3M9 1.5l-3 14m-1.5 0h3"
2936
3001
  })));
2937
3002
 
2938
- var _path$p;
2939
- function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
2940
- const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
3003
+ var _path$r;
3004
+ function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
3005
+ const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
2941
3006
  xmlns: "http://www.w3.org/2000/svg",
2942
3007
  width: 16,
2943
3008
  height: 16,
2944
3009
  focusable: "false",
2945
3010
  role: "presentation"
2946
- }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
3011
+ }, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
2947
3012
  fill: "none",
2948
3013
  stroke: "currentColor",
2949
3014
  strokeLinecap: "round",
2950
3015
  d: "M11.5 4.5V8h0A3.5 3.5 0 018 11.5h0A3.5 3.5 0 014.5 8h0A3.5 3.5 0 018 4.5h0A3.5 3.5 0 0111.5 8h0v1.5a2 2 0 002 2h0a2 2 0 002-2V8h0A7.5 7.5 0 008 .5h0A7.5 7.5 0 00.5 8h0A7.5 7.5 0 008 15.5h3.41"
2951
3016
  })));
2952
3017
 
2953
- var _path$o;
2954
- function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
2955
- const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
3018
+ var _path$q;
3019
+ function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
3020
+ const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
2956
3021
  xmlns: "http://www.w3.org/2000/svg",
2957
3022
  width: 16,
2958
3023
  height: 16,
2959
3024
  focusable: "false",
2960
3025
  role: "presentation"
2961
- }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
3026
+ }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
2962
3027
  fill: "none",
2963
3028
  stroke: "currentColor",
2964
3029
  strokeLinecap: "round",
@@ -3280,116 +3345,183 @@ const editorExtensions = ({ placeholderOptions, mentionableUsers, }) => {
3280
3345
  ];
3281
3346
  };
3282
3347
 
3348
+ var _circle$2, _path$p, _path2$6;
3349
+ function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
3350
+ const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
3351
+ width: 56,
3352
+ height: 56,
3353
+ viewBox: "0 0 56 56",
3354
+ fill: "#68737d",
3355
+ xmlns: "http://www.w3.org/2000/svg"
3356
+ }, props), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
3357
+ cx: 28,
3358
+ cy: 28,
3359
+ r: 28,
3360
+ fill: "#edf7ff"
3361
+ })), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
3362
+ d: "M16.929 16.929L39.071 39.071",
3363
+ stroke: "currentColor",
3364
+ strokeWidth: 4
3365
+ })), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
3366
+ d: "M16.929 39.071L39.071 16.929",
3367
+ stroke: "currentColor",
3368
+ strokeWidth: 4
3369
+ })));
3370
+
3283
3371
  const StyledDeleteThumbnailX = styled__default["default"].div `
3284
3372
  position: absolute;
3285
3373
  top: 0;
3286
3374
  right: 0;
3287
- color: white;
3375
+ display: flex;
3288
3376
  cursor: pointer;
3289
- font-size: 15px;
3290
- background-color: gray;
3291
- border-radius: 50%;
3292
- width: 35px;
3293
- height: 35px;
3377
+ width: 32px;
3378
+ height: 32px;
3379
+ opacity: 0;
3380
+ z-index: 2;
3381
+ `;
3382
+ const DeleteThumbnailX = ({ deleteThumbnail }) => {
3383
+ return (jsxRuntime.jsx(StyledDeleteThumbnailX, Object.assign({ className: "deleteThumbnail" }, { children: jsxRuntime.jsx(SvgRemoveMediaIcon, { onClick: (e) => deleteThumbnail(e) }) })));
3384
+ };
3385
+
3386
+ const ImageCard = styled__default["default"](SpecialCard) `
3387
+ padding: 0;
3388
+ :hover .deleteThumbnail {
3389
+ opacity: 1;
3390
+ }
3391
+ `;
3392
+ const Preview$1 = styled__default["default"].div `
3294
3393
  display: flex;
3295
3394
  justify-content: center;
3296
3395
  align-items: center;
3297
- opacity: 0;
3396
+ height: 150px;
3397
+ width: 100%;
3398
+ background-image: url(${(props) => props.url});
3399
+ background-color: ${({ theme }) => theme.palette.grey[100]};
3400
+ background-size: contain;
3401
+ background-position: center;
3402
+ background-repeat: no-repeat;
3298
3403
  `;
3299
- const DeleteThumbnailX = ({ content, deleteThumbnail }) => {
3300
- return (jsxRuntime.jsx(StyledDeleteThumbnailX, Object.assign({ className: "deleteThumbnail", onClick: (e) => deleteThumbnail(e) }, { children: jsxRuntime.jsx("span", { children: content }) })));
3404
+ const ImageThumbnail = ({ src, index = 0, removeThumbnail, clickThumbnail, showX = true, isLoadingMedia = false, isError = false, }) => {
3405
+ const handleCancel = (e) => {
3406
+ e.stopPropagation();
3407
+ if (removeThumbnail)
3408
+ removeThumbnail(index);
3409
+ };
3410
+ return (jsxRuntime.jsxs(ImageCard, Object.assign({ onClick: clickThumbnail }, { children: [isLoadingMedia && (jsxRuntime.jsx(Preview$1, Object.assign({ url: "" }, { children: jsxRuntime.jsx(reactLoaders.Spinner, { style: {
3411
+ display: "flex",
3412
+ alignItems: "center",
3413
+ justifyContent: "center",
3414
+ }, size: "large" }) }))), isError && (
3415
+ // todo: add error icon
3416
+ jsxRuntime.jsx("span", { children: "error uploading media" })), !isLoadingMedia && (jsxRuntime.jsx(Preview$1, Object.assign({ url: src }, { children: showX && (jsxRuntime.jsx(DeleteThumbnailX, { deleteThumbnail: (e) => handleCancel(e) })) })))] })));
3301
3417
  };
3302
3418
 
3303
- var _path$n;
3304
- function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
3305
- const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
3306
- xmlns: "http://www.w3.org/2000/svg",
3307
- width: 16,
3308
- height: 16,
3309
- focusable: "false",
3310
- viewBox: "0 0 16 16"
3311
- }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
3312
- fill: "currentColor",
3313
- d: "M6 15.79c-.13 0-.26-.03-.38-.08a.977.977 0 01-.62-.92V1.21a1 1 0 01.62-.93C6 .12 6.42.21 6.71.5l6.44 6.44c.58.58.58 1.54 0 2.12L6.71 15.5c-.19.19-.45.29-.71.29z"
3419
+ var _circle$1, _path$o;
3420
+ function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
3421
+ const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
3422
+ width: 56,
3423
+ height: 56,
3424
+ viewBox: "0 0 56 56",
3425
+ fill: "none",
3426
+ xmlns: "http://www.w3.org/2000/svg"
3427
+ }, props), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
3428
+ cx: 28,
3429
+ cy: 28,
3430
+ r: 28,
3431
+ fill: "white"
3432
+ })), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
3433
+ d: "M47 28L18.5 44.4545L18.5 11.5455L47 28Z",
3434
+ fill: "currentColor"
3314
3435
  })));
3315
3436
 
3316
- const StyledThumbnail = styled__default["default"].div `
3317
- border-radius: 4%;
3318
- height: 90px;
3319
- width: 80px;
3320
- justify-content: center;
3321
- padding: 1px;
3437
+ const VideoCard = styled__default["default"](SpecialCard) `
3438
+ padding: 0;
3322
3439
  position: relative;
3323
- cursor: pointer;
3324
- background-color: rgb(209, 207, 207);
3325
- img {
3440
+ overflow: hidden;
3441
+
3442
+ &:hover .deleteThumbnail {
3443
+ opacity: 1;
3444
+ z-index: 9999;
3445
+ }
3446
+
3447
+ &:before {
3448
+ content: "";
3449
+ position: absolute;
3450
+ top: 0;
3451
+ left: 0;
3326
3452
  width: 100%;
3327
3453
  height: 100%;
3328
- border-radius: 4%;
3454
+ background-color: ${({ theme }) => theme.palette.grey[800]};
3455
+ opacity: 0.3;
3456
+ z-index: 1;
3329
3457
  }
3330
- .thumbnailLabel {
3458
+
3459
+ > svg {
3331
3460
  position: absolute;
3332
- bottom: 1px;
3333
- left: 5px;
3334
- color: black;
3335
- font-size: 10px;
3336
- font-weight: 100;
3461
+ top: 50%;
3462
+ left: 50%;
3463
+ transform: translate(-50%, -50%);
3464
+ width: 32px;
3465
+ height: 32px;
3466
+ z-index: 2;
3337
3467
  }
3338
3468
  `;
3339
- const Thumbnail = ({ clickThumbnail, src, label, index = 0, removeThumbnail, showX = true, showLabel = false, mediaType, isLoadingMedia = false, }) => {
3340
- //const { isMediaUploading, setIsMediaUploading } = useChatContext();
3469
+ const Preview = styled__default["default"].div `
3470
+ padding: ${({ theme }) => theme.space.md};
3471
+ display: flex;
3472
+ justify-content: center;
3473
+ align-items: center;
3474
+ height: 150px;
3475
+ width: 100%;
3476
+
3477
+ > video {
3478
+ width: 100%;
3479
+ height: 100%;
3480
+ }
3481
+ `;
3482
+ const VideoThumbnail = ({ src, index = 0, removeThumbnail, clickThumbnail, showX = true, isLoadingMedia = false, isError = false, }) => {
3341
3483
  const handleCancel = (e) => {
3342
3484
  e.stopPropagation();
3343
3485
  if (removeThumbnail)
3344
3486
  removeThumbnail(index);
3345
3487
  };
3346
- return (jsxRuntime.jsxs(StyledThumbnail, Object.assign({ className: "singleThumbnail", onClick: clickThumbnail }, { children: [showX && (jsxRuntime.jsx(DeleteThumbnailX, { content: "╳", deleteThumbnail: (e) => handleCancel(e) })), isLoadingMedia && (jsxRuntime.jsx(reactLoaders.Spinner, { style: { position: "absolute", top: "39%", left: "37%" }, size: "large" })), !isLoadingMedia && mediaType.includes("image") && (jsxRuntime.jsx("img", { src: src, alt: label })), !isLoadingMedia && mediaType.includes("video") && (jsxRuntime.jsxs("span", Object.assign({ style: {
3347
- width: "100%",
3348
- height: "100%",
3349
- backgroundColor: "gray",
3350
- zIndex: "-1",
3351
- opacity: "0.5",
3352
- color: "black",
3353
- } }, { children: [jsxRuntime.jsx(SvgPlayFill, { style: {
3354
- position: "absolute",
3355
- top: "35%",
3356
- left: "35%",
3357
- width: "30px",
3358
- height: "30px",
3359
- backgroundColor: "white",
3360
- borderRadius: "50%",
3361
- } }), jsxRuntime.jsx("video", Object.assign({ width: "80", height: "89" }, { children: jsxRuntime.jsx("source", { src: src, type: "video/mp4" }) }))] }))), showLabel && jsxRuntime.jsx("span", Object.assign({ className: "thumbnailLabel" }, { children: label }))] })));
3488
+ return (jsxRuntime.jsxs(VideoCard, Object.assign({ onClick: clickThumbnail }, { children: [isLoadingMedia && (jsxRuntime.jsx(Preview, { children: jsxRuntime.jsx(reactLoaders.Spinner, { style: {
3489
+ display: "flex",
3490
+ alignItems: "center",
3491
+ justifyContent: "center",
3492
+ }, size: "large" }) })), isError && (
3493
+ // todo: add error icon
3494
+ jsxRuntime.jsx("span", { children: "error uploading media" })), !isLoadingMedia && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showX && (jsxRuntime.jsx(DeleteThumbnailX, { deleteThumbnail: (e) => handleCancel(e) })), jsxRuntime.jsx(Preview, { children: jsxRuntime.jsx("video", Object.assign({ src: src }, { children: jsxRuntime.jsx("track", { kind: "captions" }) })) }), jsxRuntime.jsx(SvgVideoPlayIcon, {})] }))] })));
3362
3495
  };
3363
3496
 
3364
- const StyledThumbnailContainer$1 = styled.styled.div `
3365
- display: grid;
3366
- grid-template-columns: 1fr 1fr 1fr 1fr;
3367
- overflow-y: scroll;
3368
- justify-items: center;
3369
- gap: 9px;
3370
- background-color: white;
3371
- width: 100%;
3372
- margin-top: 10px;
3373
- height: 150px;
3374
- .singleThumbnail:hover .deleteThumbnail {
3375
- opacity: 1 !important;
3376
- z-index: 9999;
3497
+ const UgGrid = styled__default["default"](reactGrid.Grid) `
3498
+ padding-left: 0;
3499
+ padding-right: 0;
3500
+ `;
3501
+ /**
3502
+ * The Grid component is a framework for building modular layouts.
3503
+ * <hr>
3504
+ * Used for this:
3505
+ - To structure the layout of a page
3506
+ */
3507
+ const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
3508
+
3509
+ const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props));
3510
+
3511
+ const StyledCol$1 = styled__default["default"](reactGrid.Col) `
3512
+ margin-bottom: ${theme.space.lg};
3513
+
3514
+ @media screen and (max-width: ${theme.breakpoints.sm}) {
3515
+ margin-bottom: ${theme.space.md};
3377
3516
  }
3378
3517
  `;
3518
+ const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
3519
+
3379
3520
  const ThumbnailContainer = ({ openLightbox }) => {
3380
3521
  const { thumbnails, removeThumbnail } = useChatContext();
3381
3522
  if (!thumbnails || thumbnails.length === 0) {
3382
3523
  return null;
3383
3524
  }
3384
- /* const mediaFiles: File[] = thumbnails.map((file) => {
3385
- // Crea un nuovo oggetto File senza la proprietà isLoadingMedia
3386
- const blob = new Blob([file], { type: file.type });
3387
-
3388
- // Creiamo un nuovo File utilizzando il Blob e mantenendo il nome del file originale
3389
- const nf = new File([blob], file.name, { type: file.type });
3390
-
3391
- return nf;
3392
- });*/
3393
3525
  const mediaFiles = [];
3394
3526
  thumbnails.forEach((file) => {
3395
3527
  mediaFiles.push({
@@ -3400,9 +3532,18 @@ const ThumbnailContainer = ({ openLightbox }) => {
3400
3532
  });
3401
3533
  });
3402
3534
  console.log("mediafiles", mediaFiles);
3403
- return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(StyledThumbnailContainer$1, Object.assign({ className: "thumbnailContainer" }, { children: mediaFiles.map((file, index) => (jsxRuntime.jsx(Thumbnail, { src: file.previewUrl, label: file.fileName, index: index, showX: true, showLabel: false, mediaType: file.fileType, isLoadingMedia: file.status === "uploading", removeThumbnail: () => removeThumbnail(index), clickThumbnail: () => {
3404
- openLightbox(thumbnails[index], index);
3405
- } }, index))) })) }));
3535
+ return (jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: mediaFiles.map((file, index) => {
3536
+ // Check if item is an image or a video
3537
+ if (file.fileType.includes('image'))
3538
+ return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: file.status === "uploading", removeThumbnail: () => removeThumbnail(index), clickThumbnail: () => {
3539
+ openLightbox(thumbnails[index], index);
3540
+ } }, index) })));
3541
+ if (file.fileType.includes('video'))
3542
+ return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.previewUrl, index: index, showX: true, isLoadingMedia: file.status === "uploading", removeThumbnail: () => removeThumbnail(index), clickThumbnail: () => {
3543
+ openLightbox(thumbnails[index], index);
3544
+ } }, index) })));
3545
+ return null;
3546
+ }) })) }));
3406
3547
  };
3407
3548
 
3408
3549
  const UgModalBody = styled__default["default"](reactModals.Body) `
@@ -3471,28 +3612,28 @@ Lightbox.Body = ModalBody; // Includes Main and Details
3471
3612
  Lightbox.Footer = Footer$3;
3472
3613
  Lightbox.Close = reactModals.Close;
3473
3614
 
3474
- var _path$m;
3475
- function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
3476
- const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
3615
+ var _path$n;
3616
+ function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
3617
+ const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
3477
3618
  xmlns: "http://www.w3.org/2000/svg",
3478
3619
  width: 16,
3479
3620
  height: 16,
3480
3621
  focusable: "false",
3481
3622
  viewBox: "0 0 16 16"
3482
- }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
3623
+ }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
3483
3624
  fill: "currentColor",
3484
3625
  d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
3485
3626
  })));
3486
3627
 
3487
- var _path$l;
3488
- function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
3489
- const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
3628
+ var _path$m;
3629
+ function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
3630
+ const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
3490
3631
  xmlns: "http://www.w3.org/2000/svg",
3491
3632
  width: 16,
3492
3633
  height: 16,
3493
3634
  focusable: "false",
3494
3635
  viewBox: "0 0 16 16"
3495
- }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
3636
+ }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
3496
3637
  fill: "currentColor",
3497
3638
  d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
3498
3639
  })));
@@ -3750,6 +3891,19 @@ const PlayerTooltip = (_a) => {
3750
3891
  return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$1, { children: children }) })));
3751
3892
  };
3752
3893
 
3894
+ var _path$l;
3895
+ function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
3896
+ const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
3897
+ xmlns: "http://www.w3.org/2000/svg",
3898
+ width: 16,
3899
+ height: 16,
3900
+ focusable: "false",
3901
+ viewBox: "0 0 16 16"
3902
+ }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
3903
+ fill: "currentColor",
3904
+ d: "M6 15.79c-.13 0-.26-.03-.38-.08a.977.977 0 01-.62-.92V1.21a1 1 0 01.62-.93C6 .12 6.42.21 6.71.5l6.44 6.44c.58.58.58 1.54 0 2.12L6.71 15.5c-.19.19-.45.29-.71.29z"
3905
+ })));
3906
+
3753
3907
  var _g$1;
3754
3908
  function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
3755
3909
  const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
@@ -4346,6 +4500,7 @@ const CommentBox = (_a) => {
4346
4500
  var { placeholderOptions } = _a, props = __rest(_a, ["placeholderOptions"]);
4347
4501
  const { children, hasFloatingMenu, hasButtonsMenu, bubbleOptions, i18n } = props;
4348
4502
  const { editor, setEditor, mentionableUsers, triggerSave, thumbnails, addThumbnails } = useChatContext();
4503
+ const { addToast } = useToast();
4349
4504
  const [isOpen, setIsOpen] = React.useState(false);
4350
4505
  const [selectedImage, setSelectedImage] = React.useState({});
4351
4506
  const [selectedImageIndex, setSelectedImageIndex] = React.useState(0);
@@ -4383,22 +4538,12 @@ const CommentBox = (_a) => {
4383
4538
  const files = Array.from(event.dataTransfer.files).map((file) => {
4384
4539
  return Object.assign(file, { isLoadingMedia: false });
4385
4540
  });
4386
- /*for (const f of files) {
4387
- if (!/^(image|video)\//.test(f.type)) {
4388
- addToast(
4389
- ({ close }) => (
4390
- <Notification
4391
- onClose={close}
4392
- type="error"
4393
- message={"File type not supported"}
4394
- closeText={"Close"}
4395
- isPrimary
4396
- />
4397
- ),
4398
- { placement: "top" }
4399
- );
4400
- }
4401
- }*/
4541
+ const wronfFiles = files.filter((file) => !/^(image|video)\//.test(file.type));
4542
+ if (wronfFiles.length > 0) {
4543
+ for (const file of wronfFiles) {
4544
+ addToast(({ close }) => (jsxRuntime.jsx(Notification, { onClose: close, type: "error", message: `${props.messageBadFileFormat} - ${file.name}`, isPrimary: true })), { placement: 'top' });
4545
+ }
4546
+ }
4402
4547
  const mediaFiles = files.filter((file) => /^(image|video)\//.test(file.type));
4403
4548
  if (mediaFiles.length === 0)
4404
4549
  return false;
@@ -4513,16 +4658,6 @@ const Grey600Span = styled.styled.span `
4513
4658
  const Grey800Span = styled.styled.span `
4514
4659
  color: ${({ theme }) => theme.palette.grey[800]};
4515
4660
  `;
4516
- const StyledThumbnailContainer = styled.styled.div `
4517
- display: grid;
4518
- grid-template-columns: 1fr 1fr 1fr;
4519
- overflow-y: scroll;
4520
- justify-items: center;
4521
- gap: 9px;
4522
- background-color: inherit;
4523
- margin-top: 10px;
4524
- height: auto;
4525
- `;
4526
4661
  const Comment = ({ author, message, children, date, media = [], header, }) => {
4527
4662
  var _a, _b;
4528
4663
  const { mentionableUsers } = useChatContext();
@@ -4542,6 +4677,7 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
4542
4677
  };
4543
4678
  const videoRefs = React.useRef([]);
4544
4679
  const slideChange = React.useCallback((index) => {
4680
+ setSelectedImage(media[index]);
4545
4681
  setSelectedImageIndex(index);
4546
4682
  videoRefs.current.forEach((ref) => {
4547
4683
  if (ref) {
@@ -4558,14 +4694,39 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
4558
4694
  ed.setOptions({
4559
4695
  editable: false,
4560
4696
  });
4561
- return (jsxRuntime.jsxs(CommentCard, { children: [jsxRuntime.jsxs(AuthorContainer, { children: [jsxRuntime.jsx(Avatar, Object.assign({ avatarType: (_a = author.avatarType) !== null && _a !== void 0 ? _a : "text", style: { flexShrink: 0 } }, { children: author.avatar })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs(CommentTitle, { children: [(_b = author.name) !== null && _b !== void 0 ? _b : "User", jsxRuntime.jsx(CommentDate, { children: date })] }), jsxRuntime.jsx(ReadOnly, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: false }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed }) })) })] })] }), jsxRuntime.jsx(StyledThumbnailContainer, { children: media.map((item, index) => (jsxRuntime.jsx(Thumbnail, { isLoadingMedia: false, src: item.url, label: "", showLabel: false, showX: false, mediaType: item.type, clickThumbnail: () => {
4562
- handleClickThumbnail(item, index);
4563
- } }))) }), isOpen && selectedImage && (jsxRuntime.jsxs(Lightbox, Object.assign({ onClose: closeLightbox }, { children: [jsxRuntime.jsx(Lightbox.Header, { children: jsxRuntime.jsxs(reactTypography.MD, Object.assign({ isBold: true }, { children: [jsxRuntime.jsx(Grey600Span, { children: header && header.title }), header && header.message && (jsxRuntime.jsxs(Grey800Span, { children: [" | ", header.message] }))] })) }), jsxRuntime.jsxs(Lightbox.Body, { children: [jsxRuntime.jsx(Lightbox.Body.Main, Object.assign({ style: { flex: 2 } }, { children: jsxRuntime.jsx(Slider, Object.assign({ prevArrow: jsxRuntime.jsx(Slider.PrevButton, { isBright: true }), nextArrow: jsxRuntime.jsx(Slider.NextButton, { isBright: true }), onSlideChange: slideChange, initialSlide: selectedImageIndex }, { children: media.map((item, index) => (jsxRuntime.jsxs(Slider.Slide, { children: [item.type === "image" && (jsxRuntime.jsx("img", { src: item.url, alt: `{{${item.url}}}` })), item.type === "video" && (jsxRuntime.jsx(Player, { ref: (ref) => {
4697
+ const dowloadSelectedMedia = () => __awaiter(void 0, void 0, void 0, function* () {
4698
+ try {
4699
+ const response = yield fetch(selectedImage.url);
4700
+ const blob = yield response.blob();
4701
+ const link = document.createElement('a');
4702
+ link.href = window.URL.createObjectURL(blob);
4703
+ link.download = "media_" + selectedImage.id.toString() || 'downloadedFile';
4704
+ document.body.appendChild(link);
4705
+ link.click();
4706
+ window.URL.revokeObjectURL(link.href);
4707
+ document.body.removeChild(link);
4708
+ }
4709
+ catch (error) {
4710
+ console.error('An error occurred while downloading: ', error);
4711
+ }
4712
+ });
4713
+ return (jsxRuntime.jsxs(CommentCard, { children: [jsxRuntime.jsxs(AuthorContainer, { children: [jsxRuntime.jsx(Avatar, Object.assign({ avatarType: (_a = author.avatarType) !== null && _a !== void 0 ? _a : "text", style: { flexShrink: 0 } }, { children: author.avatar })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs(CommentTitle, { children: [(_b = author.name) !== null && _b !== void 0 ? _b : "User", jsxRuntime.jsx(CommentDate, { children: date })] }), jsxRuntime.jsx(ReadOnly, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: false }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed }) })) })] })] }), jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: media.map((file, index) => {
4714
+ // Check if item is an image or a video
4715
+ if (file.type.includes('image'))
4716
+ return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 4, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.url, index: index, showX: true, isLoadingMedia: false, clickThumbnail: () => {
4717
+ handleClickThumbnail(file, index);
4718
+ } }, index) })));
4719
+ if (file.type.includes('video'))
4720
+ return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 4, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.url, index: index, showX: true, isLoadingMedia: false, clickThumbnail: () => {
4721
+ handleClickThumbnail(file, index);
4722
+ } }, index) })));
4723
+ return null;
4724
+ }) })) }), isOpen && selectedImage && (jsxRuntime.jsxs(Lightbox, Object.assign({ onClose: closeLightbox }, { children: [jsxRuntime.jsx(Lightbox.Header, { children: jsxRuntime.jsxs(reactTypography.MD, Object.assign({ isBold: true }, { children: [jsxRuntime.jsx(Grey600Span, { children: header && header.title }), header && header.message && (jsxRuntime.jsxs(Grey800Span, { children: [" | ", header.message] }))] })) }), jsxRuntime.jsxs(Lightbox.Body, { children: [jsxRuntime.jsx(Lightbox.Body.Main, Object.assign({ style: { flex: 2 } }, { children: jsxRuntime.jsx(Slider, Object.assign({ prevArrow: jsxRuntime.jsx(Slider.PrevButton, { isBright: true }), nextArrow: jsxRuntime.jsx(Slider.NextButton, { isBright: true }), onSlideChange: slideChange, initialSlide: selectedImageIndex }, { children: media.map((item, index) => (jsxRuntime.jsxs(Slider.Slide, { children: [item.type === "image" && (jsxRuntime.jsx("img", { src: item.url, alt: `{{${item.url}}}` })), item.type === "video" && (jsxRuntime.jsx(Player, { ref: (ref) => {
4564
4725
  videoRefs.current.push(ref);
4565
4726
  }, url: item.url }))] }))) })) })), jsxRuntime.jsx(Lightbox.Body.Details, Object.assign({ style: { flex: 1 } }, { children: jsxRuntime.jsx(Comment, Object.assign({ header: header, author: {
4566
4727
  avatar: author.avatar,
4567
4728
  name: author.name,
4568
- }, date: date, message: message }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("br", {}) }) })) }))] }), jsxRuntime.jsx(Lightbox.Footer, { children: jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, onClick: () => alert("download") }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgDownloadStroke, {}) }), "Download"] })) }), jsxRuntime.jsx(Lightbox.Close, { "aria-label": "Close modal" })] }))), jsxRuntime.jsx(Footer$2, { children: children })] }));
4729
+ }, date: date, message: message }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("br", {}) }) })) }))] }), jsxRuntime.jsx(Lightbox.Footer, { children: jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, onClick: dowloadSelectedMedia }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgDownloadStroke, {}) }), "Download"] })) }), jsxRuntime.jsx(Lightbox.Close, { "aria-label": "Close modal" })] }))), jsxRuntime.jsx(Footer$2, { children: children })] }));
4569
4730
  };
4570
4731
 
4571
4732
  /**
@@ -4586,18 +4747,6 @@ Chat.Comments = MessagesContainer;
4586
4747
  Chat.Input = CommentBox;
4587
4748
  Chat.Footer = ChatFooter;
4588
4749
 
4589
- const UgClose$1 = styled__default["default"](reactNotifications.Close) `
4590
- display: flex;
4591
- align-items: center;
4592
- justify-content: center;
4593
- width: ${({ theme }) => theme.space.xl};
4594
- height: ${({ theme }) => theme.space.xl};
4595
- `;
4596
- /**
4597
- * Title is a basic component used to display a title. Often used in card headers.
4598
- */
4599
- const Close = (props) => jsxRuntime.jsx(UgClose$1, Object.assign({}, props));
4600
-
4601
4750
  var _circle;
4602
4751
  function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
4603
4752
  const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
@@ -5216,29 +5365,6 @@ const UgToggle = styled__default["default"](reactForms.Toggle) ``;
5216
5365
  **/
5217
5366
  const Toggle = (props) => jsxRuntime.jsx(UgToggle, Object.assign({}, props));
5218
5367
 
5219
- const StyledCol$1 = styled__default["default"](reactGrid.Col) `
5220
- margin-bottom: ${theme.space.lg};
5221
-
5222
- @media screen and (max-width: ${theme.breakpoints.sm}) {
5223
- margin-bottom: ${theme.space.md};
5224
- }
5225
- `;
5226
- const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
5227
-
5228
- const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props));
5229
-
5230
- const UgGrid = styled__default["default"](reactGrid.Grid) `
5231
- padding-left: 0;
5232
- padding-right: 0;
5233
- `;
5234
- /**
5235
- * The Grid component is a framework for building modular layouts.
5236
- * <hr>
5237
- * Used for this:
5238
- - To structure the layout of a page
5239
- */
5240
- const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
5241
-
5242
5368
  /**
5243
5369
  * The Dots loader communicates ongoing activity after a user takes an action.
5244
5370
  * It tells them that something is taking place.
@@ -5730,62 +5856,6 @@ NavAccordionItem.Label = AccordionItemLabel;
5730
5856
  */
5731
5857
  const Chrome = (props) => jsxRuntime.jsx(reactChrome.Chrome, Object.assign({}, props));
5732
5858
 
5733
- const NOTIFICATION_COMPONENT_ID = "notifications.notification";
5734
- const CLOSE_COMPONENT_ID = "notifications.notification.close";
5735
- const CLOSE_ICON_COMPONENT_ID = "notifications.notification.close-icon";
5736
- const TITLE_COMPONENT_ID = "notifications.notification.title";
5737
- const UgClose = styled__default["default"](Close).attrs((props) => {
5738
- var _a;
5739
- return ({
5740
- "data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_ICON_COMPONENT_ID,
5741
- });
5742
- }) `
5743
- ${(props) => reactTheming.retrieveComponentStyles(CLOSE_ICON_COMPONENT_ID, props)};
5744
- `;
5745
- const UgAnchor = styled__default["default"](reactButtons.Anchor).attrs((props) => {
5746
- var _a;
5747
- return ({
5748
- "data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : CLOSE_COMPONENT_ID,
5749
- });
5750
- }) `
5751
- ${(props) => reactTheming.retrieveComponentStyles(CLOSE_COMPONENT_ID, props)};
5752
- `;
5753
- const UgTitle = styled__default["default"](Title$1).attrs((props) => {
5754
- var _a;
5755
- return ({
5756
- "data-custom-id": (_a = props["data-custom-id"]) !== null && _a !== void 0 ? _a : TITLE_COMPONENT_ID,
5757
- });
5758
- }) `
5759
- ${(props) => reactTheming.retrieveComponentStyles(TITLE_COMPONENT_ID, props)};
5760
- `;
5761
- const UgNotification = styled__default["default"](reactNotifications.Notification) `
5762
- display: flex;
5763
- align-items: center;
5764
- justify-content: space-between;
5765
- padding-right: ${({ theme }) => theme.space.md};
5766
- white-space: pre;
5767
-
5768
- ${UgAnchor} {
5769
- flex-shrink: 0;
5770
- margin-left: ${({ theme }) => theme.space.md};
5771
- }
5772
-
5773
- ${(props) => reactTheming.retrieveComponentStyles(NOTIFICATION_COMPONENT_ID, props)};
5774
- `;
5775
- /**
5776
- * A Notification is a passive status update that keeps users informed of system progress.
5777
- * <hr>
5778
- * Used for this:
5779
- - For a passive status update about user or system activity
5780
- */
5781
- const Notification = (_a) => {
5782
- var { closeText, message, onClose, type, isPrimary, isRegular } = _a, props = __rest(_a, ["closeText", "message", "onClose", "type", "isPrimary", "isRegular"]);
5783
- return (jsxRuntime.jsxs(UgNotification, Object.assign({ type: type, isPrimary: isPrimary }, props, { children: [jsxRuntime.jsx(UgTitle, Object.assign({ isRegular: isRegular, type: type, isPrimary: isPrimary }, { children: message })), jsxRuntime.jsx(UgAnchor, Object.assign({ type: type, isPrimary: isPrimary, onClick: onClose }, { children: closeText !== null && closeText !== void 0 ? closeText : jsxRuntime.jsx(UgClose, {}) }))] })));
5784
- };
5785
- // ToastProvider
5786
- const ToastProvider = (props) => (jsxRuntime.jsx(reactNotifications.ToastProvider, Object.assign({}, props)));
5787
- const useToast = reactNotifications.useToast;
5788
-
5789
5859
  const UgPagination = styled__default["default"](reactPagination.Pagination) ``;
5790
5860
  /**
5791
5861
  * Pagination separates content into pages and allows users to navigate between those pages.