sceyt-chat-react-uikit 1.6.5-beta.7 → 1.6.5-beta.8

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/index.js CHANGED
@@ -690,47 +690,77 @@ function _possibleConstructorReturn(t, e) {
690
690
  }
691
691
  function _regeneratorRuntime() {
692
692
  _regeneratorRuntime = function () {
693
- return e;
693
+ return r;
694
694
  };
695
695
  var t,
696
- e = {},
697
- r = Object.prototype,
698
- n = r.hasOwnProperty,
699
- o = Object.defineProperty || function (t, e, r) {
700
- t[e] = r.value;
701
- },
702
- i = "function" == typeof Symbol ? Symbol : {},
703
- a = i.iterator || "@@iterator",
704
- c = i.asyncIterator || "@@asyncIterator",
705
- u = i.toStringTag || "@@toStringTag";
706
- function define(t, e, r) {
707
- return Object.defineProperty(t, e, {
708
- value: r,
709
- enumerable: !0,
710
- configurable: !0,
711
- writable: !0
712
- }), t[e];
696
+ r = {},
697
+ e = Object.prototype,
698
+ n = e.hasOwnProperty,
699
+ o = "function" == typeof Symbol ? Symbol : {},
700
+ i = o.iterator || "@@iterator",
701
+ a = o.asyncIterator || "@@asyncIterator",
702
+ u = o.toStringTag || "@@toStringTag";
703
+ function c(t, r, e, n) {
704
+ return Object.defineProperty(t, r, {
705
+ value: e,
706
+ enumerable: !n,
707
+ configurable: !n,
708
+ writable: !n
709
+ });
713
710
  }
714
711
  try {
715
- define({}, "");
712
+ c({}, "");
716
713
  } catch (t) {
717
- define = function (t, e, r) {
718
- return t[e] = r;
714
+ c = function (t, r, e) {
715
+ return t[r] = e;
719
716
  };
720
717
  }
721
- function wrap(t, e, r, n) {
718
+ function h(r, e, n, o) {
722
719
  var i = e && e.prototype instanceof Generator ? e : Generator,
723
- a = Object.create(i.prototype),
724
- c = new Context(n || []);
725
- return o(a, "_invoke", {
726
- value: makeInvokeMethod(t, r, c)
727
- }), a;
720
+ a = Object.create(i.prototype);
721
+ return c(a, "_invoke", function (r, e, n) {
722
+ var o = 1;
723
+ return function (i, a) {
724
+ if (3 === o) throw Error("Generator is already running");
725
+ if (4 === o) {
726
+ if ("throw" === i) throw a;
727
+ return {
728
+ value: t,
729
+ done: !0
730
+ };
731
+ }
732
+ for (n.method = i, n.arg = a;;) {
733
+ var u = n.delegate;
734
+ if (u) {
735
+ var c = d(u, n);
736
+ if (c) {
737
+ if (c === f) continue;
738
+ return c;
739
+ }
740
+ }
741
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
742
+ if (1 === o) throw o = 4, n.arg;
743
+ n.dispatchException(n.arg);
744
+ } else "return" === n.method && n.abrupt("return", n.arg);
745
+ o = 3;
746
+ var h = s(r, e, n);
747
+ if ("normal" === h.type) {
748
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
749
+ return {
750
+ value: h.arg,
751
+ done: n.done
752
+ };
753
+ }
754
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
755
+ }
756
+ };
757
+ }(r, n, new Context(o || [])), !0), a;
728
758
  }
729
- function tryCatch(t, e, r) {
759
+ function s(t, r, e) {
730
760
  try {
731
761
  return {
732
762
  type: "normal",
733
- arg: t.call(e, r)
763
+ arg: t.call(r, e)
734
764
  };
735
765
  } catch (t) {
736
766
  return {
@@ -739,255 +769,193 @@ function _regeneratorRuntime() {
739
769
  };
740
770
  }
741
771
  }
742
- e.wrap = wrap;
743
- var h = "suspendedStart",
744
- l = "suspendedYield",
745
- f = "executing",
746
- s = "completed",
747
- y = {};
772
+ r.wrap = h;
773
+ var f = {};
748
774
  function Generator() {}
749
775
  function GeneratorFunction() {}
750
776
  function GeneratorFunctionPrototype() {}
751
- var p = {};
752
- define(p, a, function () {
777
+ var l = {};
778
+ c(l, i, function () {
753
779
  return this;
754
780
  });
755
- var d = Object.getPrototypeOf,
756
- v = d && d(d(values([])));
757
- v && v !== r && n.call(v, a) && (p = v);
758
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
759
- function defineIteratorMethods(t) {
760
- ["next", "throw", "return"].forEach(function (e) {
761
- define(t, e, function (t) {
762
- return this._invoke(e, t);
781
+ var p = Object.getPrototypeOf,
782
+ y = p && p(p(x([])));
783
+ y && y !== e && n.call(y, i) && (l = y);
784
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
785
+ function g(t) {
786
+ ["next", "throw", "return"].forEach(function (r) {
787
+ c(t, r, function (t) {
788
+ return this._invoke(r, t);
763
789
  });
764
790
  });
765
791
  }
766
- function AsyncIterator(t, e) {
767
- function invoke(r, o, i, a) {
768
- var c = tryCatch(t[r], t, o);
792
+ function AsyncIterator(t, r) {
793
+ function e(o, i, a, u) {
794
+ var c = s(t[o], t, i);
769
795
  if ("throw" !== c.type) {
770
- var u = c.arg,
771
- h = u.value;
772
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
773
- invoke("next", t, i, a);
796
+ var h = c.arg,
797
+ f = h.value;
798
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
799
+ e("next", t, a, u);
774
800
  }, function (t) {
775
- invoke("throw", t, i, a);
776
- }) : e.resolve(h).then(function (t) {
777
- u.value = t, i(u);
801
+ e("throw", t, a, u);
802
+ }) : r.resolve(f).then(function (t) {
803
+ h.value = t, a(h);
778
804
  }, function (t) {
779
- return invoke("throw", t, i, a);
805
+ return e("throw", t, a, u);
780
806
  });
781
807
  }
782
- a(c.arg);
808
+ u(c.arg);
783
809
  }
784
- var r;
785
- o(this, "_invoke", {
786
- value: function (t, n) {
787
- function callInvokeWithMethodAndArg() {
788
- return new e(function (e, r) {
789
- invoke(t, n, e, r);
790
- });
791
- }
792
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
793
- }
794
- });
795
- }
796
- function makeInvokeMethod(e, r, n) {
797
- var o = h;
798
- return function (i, a) {
799
- if (o === f) throw Error("Generator is already running");
800
- if (o === s) {
801
- if ("throw" === i) throw a;
802
- return {
803
- value: t,
804
- done: !0
805
- };
806
- }
807
- for (n.method = i, n.arg = a;;) {
808
- var c = n.delegate;
809
- if (c) {
810
- var u = maybeInvokeDelegate(c, n);
811
- if (u) {
812
- if (u === y) continue;
813
- return u;
814
- }
815
- }
816
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
817
- if (o === h) throw o = s, n.arg;
818
- n.dispatchException(n.arg);
819
- } else "return" === n.method && n.abrupt("return", n.arg);
820
- o = f;
821
- var p = tryCatch(e, r, n);
822
- if ("normal" === p.type) {
823
- if (o = n.done ? s : l, p.arg === y) continue;
824
- return {
825
- value: p.arg,
826
- done: n.done
827
- };
828
- }
829
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
810
+ var o;
811
+ c(this, "_invoke", function (t, n) {
812
+ function i() {
813
+ return new r(function (r, o) {
814
+ e(t, n, r, o);
815
+ });
830
816
  }
831
- };
817
+ return o = o ? o.then(i, i) : i();
818
+ }, !0);
832
819
  }
833
- function maybeInvokeDelegate(e, r) {
834
- var n = r.method,
835
- o = e.iterator[n];
836
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
837
- var i = tryCatch(o, e.iterator, r.arg);
838
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
820
+ function d(r, e) {
821
+ var n = e.method,
822
+ o = r.i[n];
823
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
824
+ var i = s(o, r.i, e.arg);
825
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
839
826
  var a = i.arg;
840
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
827
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
841
828
  }
842
- function pushTryEntry(t) {
843
- var e = {
844
- tryLoc: t[0]
845
- };
846
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
829
+ function w(t) {
830
+ this.tryEntries.push(t);
847
831
  }
848
- function resetTryEntry(t) {
849
- var e = t.completion || {};
850
- e.type = "normal", delete e.arg, t.completion = e;
832
+ function m(r) {
833
+ var e = r[4] || {};
834
+ e.type = "normal", e.arg = t, r[4] = e;
851
835
  }
852
836
  function Context(t) {
853
- this.tryEntries = [{
854
- tryLoc: "root"
855
- }], t.forEach(pushTryEntry, this), this.reset(!0);
837
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
856
838
  }
857
- function values(e) {
858
- if (e || "" === e) {
859
- var r = e[a];
860
- if (r) return r.call(e);
861
- if ("function" == typeof e.next) return e;
862
- if (!isNaN(e.length)) {
839
+ function x(r) {
840
+ if (null != r) {
841
+ var e = r[i];
842
+ if (e) return e.call(r);
843
+ if ("function" == typeof r.next) return r;
844
+ if (!isNaN(r.length)) {
863
845
  var o = -1,
864
- i = function next() {
865
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
866
- return next.value = t, next.done = !0, next;
846
+ a = function e() {
847
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
848
+ return e.value = t, e.done = !0, e;
867
849
  };
868
- return i.next = i;
850
+ return a.next = a;
869
851
  }
870
852
  }
871
- throw new TypeError(typeof e + " is not iterable");
853
+ throw new TypeError(typeof r + " is not iterable");
872
854
  }
873
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
874
- value: GeneratorFunctionPrototype,
875
- configurable: !0
876
- }), o(GeneratorFunctionPrototype, "constructor", {
877
- value: GeneratorFunction,
878
- configurable: !0
879
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
880
- var e = "function" == typeof t && t.constructor;
881
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
882
- }, e.mark = function (t) {
883
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
884
- }, e.awrap = function (t) {
855
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
856
+ var r = "function" == typeof t && t.constructor;
857
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
858
+ }, r.mark = function (t) {
859
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
860
+ }, r.awrap = function (t) {
885
861
  return {
886
862
  __await: t
887
863
  };
888
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
864
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
889
865
  return this;
890
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
866
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
891
867
  void 0 === i && (i = Promise);
892
- var a = new AsyncIterator(wrap(t, r, n, o), i);
893
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
868
+ var a = new AsyncIterator(h(t, e, n, o), i);
869
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
894
870
  return t.done ? t.value : a.next();
895
871
  });
896
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
872
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
897
873
  return this;
898
- }), define(g, "toString", function () {
874
+ }), c(v, "toString", function () {
899
875
  return "[object Generator]";
900
- }), e.keys = function (t) {
901
- var e = Object(t),
902
- r = [];
903
- for (var n in e) r.push(n);
904
- return r.reverse(), function next() {
905
- for (; r.length;) {
906
- var t = r.pop();
907
- if (t in e) return next.value = t, next.done = !1, next;
908
- }
909
- return next.done = !0, next;
876
+ }), r.keys = function (t) {
877
+ var r = Object(t),
878
+ e = [];
879
+ for (var n in r) e.unshift(n);
880
+ return function t() {
881
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
882
+ return t.done = !0, t;
910
883
  };
911
- }, e.values = values, Context.prototype = {
884
+ }, r.values = x, Context.prototype = {
912
885
  constructor: Context,
913
- reset: function (e) {
914
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
886
+ reset: function (r) {
887
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
915
888
  },
916
889
  stop: function () {
917
890
  this.done = !0;
918
- var t = this.tryEntries[0].completion;
891
+ var t = this.tryEntries[0][4];
919
892
  if ("throw" === t.type) throw t.arg;
920
893
  return this.rval;
921
894
  },
922
- dispatchException: function (e) {
923
- if (this.done) throw e;
924
- var r = this;
925
- function handle(n, o) {
926
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
895
+ dispatchException: function (r) {
896
+ if (this.done) throw r;
897
+ var e = this;
898
+ function n(t) {
899
+ a.type = "throw", a.arg = r, e.next = t;
927
900
  }
928
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
901
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
929
902
  var i = this.tryEntries[o],
930
- a = i.completion;
931
- if ("root" === i.tryLoc) return handle("end");
932
- if (i.tryLoc <= this.prev) {
933
- var c = n.call(i, "catchLoc"),
934
- u = n.call(i, "finallyLoc");
935
- if (c && u) {
936
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
937
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
938
- } else if (c) {
939
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
940
- } else {
941
- if (!u) throw Error("try statement without catch or finally");
942
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
943
- }
903
+ a = i[4],
904
+ u = this.prev,
905
+ c = i[1],
906
+ h = i[2];
907
+ if (-1 === i[0]) return n("end"), !1;
908
+ if (!c && !h) throw Error("try statement without catch or finally");
909
+ if (null != i[0] && i[0] <= u) {
910
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
911
+ if (u < h) return n(h), !1;
944
912
  }
945
913
  }
946
914
  },
947
- abrupt: function (t, e) {
948
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
949
- var o = this.tryEntries[r];
950
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
951
- var i = o;
915
+ abrupt: function (t, r) {
916
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
917
+ var n = this.tryEntries[e];
918
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
919
+ var o = n;
952
920
  break;
953
921
  }
954
922
  }
955
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
956
- var a = i ? i.completion : {};
957
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
923
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
924
+ var i = o ? o[4] : {};
925
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
958
926
  },
959
- complete: function (t, e) {
927
+ complete: function (t, r) {
960
928
  if ("throw" === t.type) throw t.arg;
961
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
929
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
962
930
  },
963
931
  finish: function (t) {
964
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
965
- var r = this.tryEntries[e];
966
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
932
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
933
+ var e = this.tryEntries[r];
934
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
967
935
  }
968
936
  },
969
937
  catch: function (t) {
970
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
971
- var r = this.tryEntries[e];
972
- if (r.tryLoc === t) {
973
- var n = r.completion;
938
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
939
+ var e = this.tryEntries[r];
940
+ if (e[0] === t) {
941
+ var n = e[4];
974
942
  if ("throw" === n.type) {
975
943
  var o = n.arg;
976
- resetTryEntry(r);
944
+ m(e);
977
945
  }
978
946
  return o;
979
947
  }
980
948
  }
981
949
  throw Error("illegal catch attempt");
982
950
  },
983
- delegateYield: function (e, r, n) {
951
+ delegateYield: function (r, e, n) {
984
952
  return this.delegate = {
985
- iterator: values(e),
986
- resultName: r,
987
- nextLoc: n
988
- }, "next" === this.method && (this.arg = t), y;
953
+ i: x(r),
954
+ r: e,
955
+ n: n
956
+ }, "next" === this.method && (this.arg = t), f;
989
957
  }
990
- }, e;
958
+ }, r;
991
959
  }
992
960
  function _setPrototypeOf(t, e) {
993
961
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -998,10 +966,10 @@ function _superPropBase(t, o) {
998
966
  for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
999
967
  return t;
1000
968
  }
1001
- function _superPropGet(t, e, o, r) {
1002
- var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o);
969
+ function _superPropGet(t, o, e, r) {
970
+ var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
1003
971
  return 2 & r && "function" == typeof p ? function (t) {
1004
- return p.apply(o, t);
972
+ return p.apply(e, t);
1005
973
  } : p;
1006
974
  }
1007
975
  function _taggedTemplateLiteralLoose(e, t) {
@@ -10772,7 +10740,7 @@ function SvgSearch(props) {
10772
10740
  })));
10773
10741
  }
10774
10742
 
10775
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42;
10743
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40;
10776
10744
  function md5(inputString) {
10777
10745
  var hc = '0123456789abcdef';
10778
10746
  function rh(n) {
@@ -10953,7 +10921,7 @@ var UploadFileLabel = styled__default.label(_templateObject8 || (_templateObject
10953
10921
  var InputErrorMessage = styled__default.p(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n color: ", ";\n margin: 4px 0 0;\n"])), function (props) {
10954
10922
  return props.color;
10955
10923
  });
10956
- var CustomInput = styled__default.input(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n height: 40px;\n width: 100%;\n background: ", ";\n border: ", ";\n color: ", ";\n box-sizing: border-box;\n border-radius: 8px;\n padding: 11px 14px;\n font-family: Inter, sans-serif;\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 20px;\n opacity: 1;\n outline: none;\n\n &:focus {\n border: 1px solid ", ";\n outline: ", ";\n }\n &:disabled {\n background-color: ", ";\n opacity: 1;\n color: #383b51;\n }\n &::placeholder {\n opacity: 1;\n color: ", ";\n }\n"])), function (props) {
10924
+ var CustomInput = styled__default.input(_templateObject0 || (_templateObject0 = _taggedTemplateLiteralLoose(["\n height: 40px;\n width: 100%;\n background: ", ";\n border: ", ";\n color: ", ";\n box-sizing: border-box;\n border-radius: 8px;\n padding: 11px 14px;\n font-family: Inter, sans-serif;\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 20px;\n opacity: 1;\n outline: none;\n\n &:focus {\n border: 1px solid ", ";\n outline: ", ";\n }\n &:disabled {\n background-color: ", ";\n opacity: 1;\n color: #383b51;\n }\n &::placeholder {\n opacity: 1;\n color: ", ";\n }\n"])), function (props) {
10957
10925
  return props.theme === THEME.DARK ? props.backgroundColor : colors.white;
10958
10926
  }, function (props) {
10959
10927
  return props.error ? "1px solid " + props.errorColor : props.theme !== THEME.DARK ? "1px solid " + colors.gray1 : 'none';
@@ -10966,9 +10934,9 @@ var CustomInput = styled__default.input(_templateObject10 || (_templateObject10
10966
10934
  }, colors.gray0, function (props) {
10967
10935
  return props.placeholderColor;
10968
10936
  });
10969
- var FilterField = styled__default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d7d8e3;\n border-radius: 4px;\n background-color: transparent;\n margin-left: 12px;\n"])));
10970
- var FilterFieldSpan = styled__default.span(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n display: block;\n width: 100px;\n padding: 8px 0 8px 8px;\n text-align: left;\n font-size: 0.875rem;\n line-height: 1rem;\n"])));
10971
- var Row = styled__default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n margin: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n margin-right: ", ";\n margin-left: ", ";\n align-items: ", ";\n justify-content: ", ";\n width: ", ";\n height: ", ";\n min-height: ", ";\n padding: ", ";\n padding-left: ", ";\n padding-right: ", ";\n flex-wrap: ", ";\n"])), function (props) {
10937
+ var FilterField = styled__default.div(_templateObject1 || (_templateObject1 = _taggedTemplateLiteralLoose(["\n border: 1px solid #d7d8e3;\n border-radius: 4px;\n background-color: transparent;\n margin-left: 12px;\n"])));
10938
+ var FilterFieldSpan = styled__default.span(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n display: block;\n width: 100px;\n padding: 8px 0 8px 8px;\n text-align: left;\n font-size: 0.875rem;\n line-height: 1rem;\n"])));
10939
+ var Row = styled__default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n margin: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n margin-right: ", ";\n margin-left: ", ";\n align-items: ", ";\n justify-content: ", ";\n width: ", ";\n height: ", ";\n min-height: ", ";\n padding: ", ";\n padding-left: ", ";\n padding-right: ", ";\n flex-wrap: ", ";\n"])), function (props) {
10972
10940
  return props.margin;
10973
10941
  }, function (props) {
10974
10942
  return props.marginTop;
@@ -10997,7 +10965,7 @@ var Row = styled__default.div(_templateObject13 || (_templateObject13 = _taggedT
10997
10965
  }, function (props) {
10998
10966
  return props.flexWrap;
10999
10967
  });
11000
- var Button = styled__default.button(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n box-sizing: border-box;\n text-decoration: none;\n outline: none;\n cursor: ", ";\n text-align: center;\n font-style: normal;\n border-radius: ", ";\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n padding: 8px 16px;\n background-color: ", ";\n color: ", ";\n border: 1px solid ", ";\n margin: ", ";\n user-select: none;\n transition: opacity 0.1s;\n opacity: ", ";\n &:hover,\n &:focus {\n opacity: ", ";\n }\n"])), function (props) {
10968
+ var Button = styled__default.button(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n box-sizing: border-box;\n text-decoration: none;\n outline: none;\n cursor: ", ";\n text-align: center;\n font-style: normal;\n border-radius: ", ";\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n padding: 8px 16px;\n background-color: ", ";\n color: ", ";\n border: 1px solid ", ";\n margin: ", ";\n user-select: none;\n transition: opacity 0.1s;\n opacity: ", ";\n &:hover,\n &:focus {\n opacity: ", ";\n }\n"])), function (props) {
11001
10969
  return !props.disabled && 'pointer';
11002
10970
  }, function (props) {
11003
10971
  return props.borderRadius || '4px';
@@ -11014,7 +10982,7 @@ var Button = styled__default.button(_templateObject14 || (_templateObject14 = _t
11014
10982
  }, function (props) {
11015
10983
  return props.disabled ? 0.5 : 0.8;
11016
10984
  });
11017
- var PopupName = styled__default.h3(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 20px;\n line-height: 23px;\n color: ", ";\n margin: 0;\n margin-top: ", ";\n margin-bottom: ", ";\n padding: ", ";\n word-break: break-word;\n\n ", "\n"])), function (props) {
10985
+ var PopupName = styled__default.h3(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 20px;\n line-height: 23px;\n color: ", ";\n margin: 0;\n margin-top: ", ";\n margin-bottom: ", ";\n padding: ", ";\n word-break: break-word;\n\n ", "\n"])), function (props) {
11018
10986
  return props.color;
11019
10987
  }, function (props) {
11020
10988
  return props.marginTop;
@@ -11028,7 +10996,7 @@ var PopupName = styled__default.h3(_templateObject15 || (_templateObject15 = _ta
11028
10996
  }
11029
10997
  return '';
11030
10998
  });
11031
- var ButtonBlock = styled__default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-top: ", ";\n padding-right: ", ";\n justify-content: ", ";\n height: ", ";\n min-height: ", ";\n background-color: ", ";\n\n a {\n width: 88px;\n height: 40px;\n margin: 0 4px;\n font-size: 15px;\n font-weight: 500;\n }\n"])), function (props) {
10999
+ var ButtonBlock = styled__default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-top: ", ";\n padding-right: ", ";\n justify-content: ", ";\n height: ", ";\n min-height: ", ";\n background-color: ", ";\n\n a {\n width: 88px;\n height: 40px;\n margin: 0 4px;\n font-size: 15px;\n font-weight: 500;\n }\n"])), function (props) {
11032
11000
  return props.marginTop || '10px';
11033
11001
  }, function (props) {
11034
11002
  return props.paddingRight || '0px';
@@ -11041,7 +11009,7 @@ var ButtonBlock = styled__default.div(_templateObject16 || (_templateObject16 =
11041
11009
  }, function (props) {
11042
11010
  return props.backgroundColor;
11043
11011
  });
11044
- var Popup = styled__default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n position: relative;\n min-height: 150px;\n min-width: ", ";\n max-width: ", ";\n max-height: ", ";\n width: ", ";\n height: ", ";\n display: ", ";\n flex-direction: column;\n padding: ", ";\n background: ", ";\n box-shadow: ", ";\n border-radius: 8px;\n box-sizing: border-box;\n\n ", ";\n"])), function (props) {
11012
+ var Popup = styled__default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n position: relative;\n min-height: 150px;\n min-width: ", ";\n max-width: ", ";\n max-height: ", ";\n width: ", ";\n height: ", ";\n display: ", ";\n flex-direction: column;\n padding: ", ";\n background: ", ";\n box-shadow: ", ";\n border-radius: 8px;\n box-sizing: border-box;\n\n ", ";\n"])), function (props) {
11045
11013
  return props.minWidth || '400px';
11046
11014
  }, function (props) {
11047
11015
  return props.maxWidth || '600px';
@@ -11062,23 +11030,23 @@ var Popup = styled__default.div(_templateObject17 || (_templateObject17 = _tagge
11062
11030
  }, function (props) {
11063
11031
  return props.isLoading && "\n user-select: none;\n\n & > * {\n pointer-events: none;\n user-select: none;\n }\n\n " + ButtonBlock + " {\n a, button {\n pointer-events: none;\n user-select: none;\n opacity: 0.7;\n }\n }\n ";
11064
11032
  });
11065
- var PopupBody = styled__default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n margin-bottom: 8px;\n height: ", ";\n"])), function (props) {
11033
+ var PopupBody = styled__default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n margin-bottom: 8px;\n height: ", ";\n"])), function (props) {
11066
11034
  return (props.paddingV || 0) + " " + (props.paddingH || 0);
11067
11035
  }, function (props) {
11068
11036
  return props.withFooter ? "calc(100% - (54px + " + props.paddingV + "))" : 'calc(100% - 54px)';
11069
11037
  });
11070
- var PopupDescription = styled__default.span(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 22px;\n color: ", ";\n cursor: default;\n white-space: pre-line;\n margin-top: ", ";\n margin-bottom: ", ";\n word-break: break-word;\n\n .highlight {\n text-decoration: underline;\n font-weight: 500;\n color: ", ";\n }\n"])), function (props) {
11038
+ var PopupDescription = styled__default.span(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 22px;\n color: ", ";\n cursor: default;\n white-space: pre-line;\n margin-top: ", ";\n margin-bottom: ", ";\n word-break: break-word;\n\n .highlight {\n text-decoration: underline;\n font-weight: 500;\n color: ", ";\n }\n"])), function (props) {
11071
11039
  return props.color;
11072
11040
  }, function (props) {
11073
11041
  return props.marginTop || '10px';
11074
11042
  }, function (props) {
11075
11043
  return props.marginBottom || '10px';
11076
11044
  }, colors.primary);
11077
- var BoltText = styled__default.span(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n"])));
11078
- var PopupFooter = styled__default(ButtonBlock)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n margin-top: ", ";\n padding: 8px 16px;\n border-radius: 0 0 8px 8px;\n z-index: 2;\n"])), function (props) {
11045
+ var BoltText = styled__default.span(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n"])));
11046
+ var PopupFooter = styled__default(ButtonBlock)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n margin-top: ", ";\n padding: 8px 16px;\n border-radius: 0 0 8px 8px;\n z-index: 2;\n"])), function (props) {
11079
11047
  return props.marginTop || '0';
11080
11048
  });
11081
- var SectionHeader = styled__default.h4(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin: ", ";\n text-transform: ", ";\n"])), function (props) {
11049
+ var SectionHeader = styled__default.h4(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin: ", ";\n text-transform: ", ";\n"])), function (props) {
11082
11050
  return props.fontSize || '15px';
11083
11051
  }, function (props) {
11084
11052
  return props.lineHeight || '20px';
@@ -11089,7 +11057,7 @@ var SectionHeader = styled__default.h4(_templateObject22 || (_templateObject22 =
11089
11057
  }, function (props) {
11090
11058
  return props.uppercase && 'uppercase';
11091
11059
  });
11092
- var ItemNote = styled__default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: none;\n position: absolute;\n z-index: 301;\n padding: 10px 12px;\n background-color: ", ";\n border-radius: 12px;\n font-size: 0.75rem;\n white-space: nowrap;\n font-weight: 600;\n color: white;\n pointer-events: none;\n user-select: none;\n\n &::before {\n content: '';\n position: absolute;\n z-index: -1;\n background-color: ", ";\n border-radius: 3px;\n width: 14px;\n height: 14px;\n\n ", " ", "\n }\n\n ", " ", " ", " ", "\n"])), function (props) {
11060
+ var ItemNote = styled__default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n display: none;\n position: absolute;\n z-index: 301;\n padding: 10px 12px;\n background-color: ", ";\n border-radius: 12px;\n font-size: 0.75rem;\n white-space: nowrap;\n font-weight: 600;\n color: white;\n pointer-events: none;\n user-select: none;\n\n &::before {\n content: '';\n position: absolute;\n z-index: -1;\n background-color: ", ";\n border-radius: 3px;\n width: 14px;\n height: 14px;\n\n ", " ", "\n }\n\n ", " ", " ", " ", "\n"])), function (props) {
11093
11061
  return props.bgColor;
11094
11062
  }, function (props) {
11095
11063
  return props.bgColor;
@@ -11108,13 +11076,13 @@ var ItemNote = styled__default.div(_templateObject23 || (_templateObject23 = _ta
11108
11076
  return props.disabledColor;
11109
11077
  } + ";";
11110
11078
  });
11111
- var CustomSwitcher = styled__default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n position: relative;\n"])));
11112
- var SwitcherLabel = styled__default.label(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n width: 48px;\n height: 28px;\n background: rgb(226, 226, 226);\n display: inline-block;\n border-radius: 50px;\n position: relative;\n transition: all 0.3s ease;\n transform-origin: 20% center;\n border: 3px solid #fff;\n cursor: pointer;\n\n &:before {\n content: '';\n position: absolute;\n display: block;\n transition: all 0.2s ease;\n width: 24px;\n height: 24px;\n top: 2px;\n left: 2px;\n border-radius: 20px;\n box-shadow:\n 0 1px 2px rgba(0, 0, 0, 0.251475),\n 0 2px 6px rgba(0, 0, 0, 0.404256);\n background: #fff;\n }\n"])));
11113
- var UploadAvatarButton = styled__default.button(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n display: block;\n height: 32px;\n margin-top: 8px;\n border: none;\n color: #fff;\n font-weight: 500;\n font-size: 14px;\n background: ", ";\n border-radius: 4px;\n outline: none !important;\n cursor: pointer;\n padding: 7px 12px;\n line-height: 10px;\n"])), colors.primary);
11114
- var UploadAvatarHandler = styled__default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n margin-left: 18px;\n font-size: 13px;\n color: ", ";\n"])), function (props) {
11079
+ var CustomSwitcher = styled__default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n position: relative;\n"])));
11080
+ var SwitcherLabel = styled__default.label(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n width: 48px;\n height: 28px;\n background: rgb(226, 226, 226);\n display: inline-block;\n border-radius: 50px;\n position: relative;\n transition: all 0.3s ease;\n transform-origin: 20% center;\n border: 3px solid #fff;\n cursor: pointer;\n\n &:before {\n content: '';\n position: absolute;\n display: block;\n transition: all 0.2s ease;\n width: 24px;\n height: 24px;\n top: 2px;\n left: 2px;\n border-radius: 20px;\n box-shadow:\n 0 1px 2px rgba(0, 0, 0, 0.251475),\n 0 2px 6px rgba(0, 0, 0, 0.404256);\n background: #fff;\n }\n"])));
11081
+ var UploadAvatarButton = styled__default.button(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n display: block;\n height: 32px;\n margin-top: 8px;\n border: none;\n color: #fff;\n font-weight: 500;\n font-size: 14px;\n background: ", ";\n border-radius: 4px;\n outline: none !important;\n cursor: pointer;\n padding: 7px 12px;\n line-height: 10px;\n"])), colors.primary);
11082
+ var UploadAvatarHandler = styled__default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n margin-left: 18px;\n font-size: 13px;\n color: ", ";\n"])), function (props) {
11115
11083
  return props.color;
11116
11084
  });
11117
- var StyledText = styled__default.span(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n font-weight: ", ";\n font-family: ", ";\n font-style: ", ";\n text-decoration: ", ";\n letter-spacing: ", ";\n\n &.mention {\n color: ", ";\n font-weight: ", ";\n }\n &.bold {\n font-weight: 600;\n }\n &.italic {\n font-style: italic;\n }\n &.underline {\n text-decoration: underline;\n }\n &.strikethrough {\n text-decoration: line-through;\n }\n &.underline.strikethrough {\n text-decoration: underline line-through;\n }\n &.monospace {\n letter-spacing: 4px;\n }\n"])), function (props) {
11085
+ var StyledText = styled__default.span(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n font-weight: ", ";\n font-family: ", ";\n font-style: ", ";\n text-decoration: ", ";\n letter-spacing: ", ";\n\n &.mention {\n color: ", ";\n font-weight: ", ";\n }\n &.bold {\n font-weight: 600;\n }\n &.italic {\n font-style: italic;\n }\n &.underline {\n text-decoration: underline;\n }\n &.strikethrough {\n text-decoration: line-through;\n }\n &.underline.strikethrough {\n text-decoration: underline line-through;\n }\n &.monospace {\n letter-spacing: 4px;\n }\n"])), function (props) {
11118
11086
  return props.fontWeight || props.isLastMessage && '500';
11119
11087
  }, function (props) {
11120
11088
  return props.fontFamily;
@@ -11129,7 +11097,7 @@ var StyledText = styled__default.span(_templateObject28 || (_templateObject28 =
11129
11097
  }, function (props) {
11130
11098
  return props.isLastMessage && '500';
11131
11099
  });
11132
- var MessageOwner = styled__default.h3(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n margin: 0 12px 4px 0;\n white-space: nowrap;\n color: ", ";\n margin-left: ", ";\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n cursor: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (props) {
11100
+ var MessageOwner = styled__default.h3(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n margin: 0 12px 4px 0;\n white-space: nowrap;\n color: ", ";\n margin-left: ", ";\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n cursor: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (props) {
11133
11101
  return props.color || colors.primary;
11134
11102
  }, function (props) {
11135
11103
  return props.rtlDirection && 'auto';
@@ -11140,7 +11108,7 @@ var MessageOwner = styled__default.h3(_templateObject29 || (_templateObject29 =
11140
11108
  }, function (props) {
11141
11109
  return props.clickable && 'pointer';
11142
11110
  });
11143
- var MessageText = styled__default.pre(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n display: flow-root;\n position: relative;\n font-family: ", ";\n margin: 0;\n padding: ", ";\n padding-bottom: ", ";\n //font-size: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: 400;\n word-wrap: break-word;\n white-space: pre-wrap;\n //white-space: normal;\n //letter-spacing: -0.2px;\n letter-spacing: 0.3px;\n color: ", ";\n user-select: text;\n //overflow: hidden;\n\n ", "\n\n &::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n height: 1px;\n }\n\n & a {\n color: ", ";\n }\n"])), function (props) {
11111
+ var MessageText = styled__default.pre(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n display: flow-root;\n position: relative;\n font-family: ", ";\n margin: 0;\n padding: ", ";\n padding-bottom: ", ";\n //font-size: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: 400;\n word-wrap: break-word;\n white-space: pre-wrap;\n //white-space: normal;\n //letter-spacing: -0.2px;\n letter-spacing: 0.3px;\n color: ", ";\n user-select: text;\n //overflow: hidden;\n\n ", "\n\n &::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n height: 1px;\n }\n\n & a {\n color: ", ";\n }\n"])), function (props) {
11144
11112
  return props.fontFamily || 'sans-serif';
11145
11113
  }, function (props) {
11146
11114
  return props.withAttachment && (props.showMessageSenderName ? props.withPaddings ? '0 12px 10px' : '0 0 10px' : props.isForwarded ? props.withPaddings ? '4px 12px 10px' : '4px 0px 10px' : '8px 12px 10px');
@@ -11158,7 +11126,7 @@ var MessageText = styled__default.pre(_templateObject30 || (_templateObject30 =
11158
11126
  }, function (props) {
11159
11127
  return props.isRepliedMessage && "\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n ";
11160
11128
  }, colors.blue);
11161
- var ReplyMessageText = styled__default.span(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n display: -webkit-box;\n position: relative;\n margin: 0;\n padding: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: ", ";\n letter-spacing: -0.2px;\n color: ", ";\n user-select: text;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n\n & a {\n color: ", ";\n }\n"])), function (props) {
11129
+ var ReplyMessageText = styled__default.span(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n display: -webkit-box;\n position: relative;\n margin: 0;\n padding: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: ", ";\n letter-spacing: -0.2px;\n color: ", ";\n user-select: text;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n\n & a {\n color: ", ";\n }\n"])), function (props) {
11162
11130
  return props.withAttachment && props.showMessageSenderName ? '0 12px 10px' : props.withAttachment ? '8px 12px 10px' : '';
11163
11131
  }, function (props) {
11164
11132
  return props.fontSize || '15px';
@@ -11167,14 +11135,14 @@ var ReplyMessageText = styled__default.span(_templateObject31 || (_templateObjec
11167
11135
  }, function (props) {
11168
11136
  return props.color;
11169
11137
  }, colors.blue);
11170
- var CloseIcon = styled__default(SvgClose)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 13px;\n right: 13px;\n cursor: pointer;\n padding: 15px;\n box-sizing: content-box;\n color: ", ";\n"])), function (props) {
11138
+ var CloseIcon = styled__default(SvgClose)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 13px;\n right: 13px;\n cursor: pointer;\n padding: 15px;\n box-sizing: content-box;\n color: ", ";\n"])), function (props) {
11171
11139
  return props.color;
11172
11140
  });
11173
- var ClearTypedText = styled__default(CloseIcon)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 10px;\n cursor: pointer;\n padding: 4px;\n"])));
11174
- var StyledSearchSvg = styled__default(SvgSearch)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n position: absolute;\n top: 12px;\n left: ", ";\n"])), function (props) {
11141
+ var ClearTypedText = styled__default(CloseIcon)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 10px;\n cursor: pointer;\n padding: 4px;\n"])));
11142
+ var StyledSearchSvg = styled__default(SvgSearch)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n position: absolute;\n top: 12px;\n left: ", ";\n"])), function (props) {
11175
11143
  return props.left || '14px';
11176
11144
  });
11177
- var SubTitle = styled__default.span(_templateObject35 || (_templateObject35 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n letter-spacing: -0.078px;\n color: ", ";\n margin: ", ";\n"])), function (props) {
11145
+ var SubTitle = styled__default.span(_templateObject33 || (_templateObject33 = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n line-height: ", ";\n letter-spacing: -0.078px;\n color: ", ";\n margin: ", ";\n"])), function (props) {
11178
11146
  return props.fontSize || '13px';
11179
11147
  }, function (props) {
11180
11148
  return props.lineHeight || '16px';
@@ -11183,10 +11151,10 @@ var SubTitle = styled__default.span(_templateObject35 || (_templateObject35 = _t
11183
11151
  }, function (props) {
11184
11152
  return props.margin;
11185
11153
  });
11186
- var AttachmentIconCont = styled__default.span(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n width: 40px;\n height: 40px;\n background-color: ", ";\n border-radius: 50%;\n"])), function (props) {
11154
+ var AttachmentIconCont = styled__default.span(_templateObject34 || (_templateObject34 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n width: 40px;\n height: 40px;\n background-color: ", ";\n border-radius: 50%;\n"])), function (props) {
11187
11155
  return props.backgroundColor || colors.primary;
11188
11156
  });
11189
- var UploadingIcon = styled__default.span(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n border-style: solid;\n border-color: ", ";\n border-width: ", ";\n border-top-width: ", ";\n border-top-color: rgba(0, 0, 0, 0);\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n animation: preloader 1.5s linear infinite;\n\n @keyframes preloader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])), function (props) {
11157
+ var UploadingIcon = styled__default.span(_templateObject35 || (_templateObject35 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n border-style: solid;\n border-color: ", ";\n border-width: ", ";\n border-top-width: ", ";\n border-top-color: rgba(0, 0, 0, 0);\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n animation: preloader 1.5s linear infinite;\n\n @keyframes preloader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])), function (props) {
11190
11158
  return props.color || 'rgba(255, 255, 255, 0.8)';
11191
11159
  }, function (props) {
11192
11160
  return props.borderWidth || (props.fileAttachment ? '2px' : '3px');
@@ -11197,9 +11165,9 @@ var UploadingIcon = styled__default.span(_templateObject37 || (_templateObject37
11197
11165
  }, function (props) {
11198
11166
  return props.height || (props.fileAttachment ? '26px' : props.isRepliedMessage ? '28px' : '40px');
11199
11167
  });
11200
- var TextInOneLine = styled__default.span(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
11201
- var CancelResumeWrapper = styled__default.span(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 20px;\n height: 20px;\n z-index: 3;\n\n > svg {\n width: 20px;\n height: 20px;\n }\n"])));
11202
- var UploadPercent = styled__default.span(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n color: #fff;\n width: ", ";\n height: ", ";\n //background-color: rgba(0,0,0,0.4);\n background-color: ", ";\n border-radius: ", ";\n}\n ", "\n"])), function (props) {
11168
+ var TextInOneLine = styled__default.span(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
11169
+ var CancelResumeWrapper = styled__default.span(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 20px;\n height: 20px;\n z-index: 3;\n\n > svg {\n width: 20px;\n height: 20px;\n }\n"])));
11170
+ var UploadPercent = styled__default.span(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n color: #fff;\n width: ", ";\n height: ", ";\n //background-color: rgba(0,0,0,0.4);\n background-color: ", ";\n border-radius: ", ";\n}\n ", "\n"])), function (props) {
11203
11171
  return props.fileAttachment || props.isRepliedMessage || props.isDetailsView ? '40px' : '56px';
11204
11172
  }, function (props) {
11205
11173
  return props.fileAttachment || props.isRepliedMessage || props.isDetailsView ? '40px' : '56px';
@@ -11210,7 +11178,7 @@ var UploadPercent = styled__default.span(_templateObject40 || (_templateObject40
11210
11178
  }, function (props) {
11211
11179
  return (props.fileAttachment || props.isRepliedMessage) && "& > svg {\n width: 15px;\n height: 15px;\n }";
11212
11180
  });
11213
- var UploadProgress = styled__default.div(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n position: ", ";\n top: ", ";\n left: ", ";\n width: ", ";\n height: ", ";\n min-width: ", ";\n min-height: ", ";\n display: flex;\n //display: none;\n align-items: center;\n justify-content: center;\n //border-radius: ", ";\n background-image: url(", ");\n background-size: cover;\n background-position: center;\n border-radius: ", ";\n z-index: ", ";\n cursor: pointer;\n border: ", ";\n box-sizing: border-box;\n /* ", "*/\n ", "\n ", "\n"])), function (props) {
11181
+ var UploadProgress = styled__default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n position: ", ";\n top: ", ";\n left: ", ";\n width: ", ";\n height: ", ";\n min-width: ", ";\n min-height: ", ";\n display: flex;\n //display: none;\n align-items: center;\n justify-content: center;\n //border-radius: ", ";\n background-image: url(", ");\n background-size: cover;\n background-position: center;\n border-radius: ", ";\n z-index: ", ";\n cursor: pointer;\n border: ", ";\n box-sizing: border-box;\n /* ", "*/\n ", "\n ", "\n"])), function (props) {
11214
11182
  return !props.positionStatic && 'absolute';
11215
11183
  }, function (props) {
11216
11184
  return props.fileAttachment ? '8px' : '0';
@@ -11241,7 +11209,7 @@ var UploadProgress = styled__default.div(_templateObject41 || (_templateObject41
11241
11209
  }, function (props) {
11242
11210
  return props.isDetailsView && "\n width: 100%;\n height: 100%;\n min-width: inherit;\n ";
11243
11211
  });
11244
- var AttachmentPreviewTitle = styled__default.span(_templateObject42 || (_templateObject42 = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 20px);\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n line-height: ", ";\n height: ", ";\n color: ", ";\n"])), function (props) {
11212
+ var AttachmentPreviewTitle = styled__default.span(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 20px);\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n line-height: ", ";\n height: ", ";\n color: ", ";\n"])), function (props) {
11245
11213
  return props.fontSize || '15px';
11246
11214
  }, function (props) {
11247
11215
  return props.lineHeight || '20px';
@@ -11832,7 +11800,7 @@ function watchForEvents() {
11832
11800
  };
11833
11801
  });
11834
11802
  _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11835
- var _yield$take, type, args, createdChannel, channelFilterTypes, getFromContacts, channelExists, _chan, channel, _chan2, _channel, member, _channelExists, _activeChannelId, groupName, _channel2, _channelExists2, _channel3, removedMembers, _activeChannelId2, _channelExists3, activeChannel, _groupName, _channel4, addedMembers, _activeChannelId3, _channelExists4, _groupName2, updatedChannel, _channelExists5, subject, avatarUrl, muted, mutedTill, metadata, _activeChannelId4, _groupName3, _channel5, message, messageToHandle, _channelFilterTypes, _activeChannelId5, _channelExists6, channelForAdd, hasNextMessage, _groupName4, showNotifications, tabIsActive, contactsMap, _getFromContacts, messageBody, channelId, markerList, _channel6, _activeChannelId6, updateLastMessage, markersMap, lastMessage, _channel7, from, _channel8, _from, _channelId, _channel9, _channel10, deletedMessage, _activeChannelId7, _channelExists7, _channel11, _message, _activeChannelId8, _channelExists8, _channel12, user, _message2, reaction, isSelf, _activeChannelId9, _contactsMap, _getFromContacts2, _messageBody, channelUpdateParams, _channel13, _user, _message3, _reaction, channelFromMap, _isSelf, _activeChannelId10, _channelUpdateParams, _channel14, _updatedChannel, _channel15, _activeChannelId11, channelExist, _channel16, _channel17, _channel18, _channel19, _channel20, _channel21, _channel22, _groupName5, _channel23, _groupName6, _channel24, members, _activeChannelId12, i, _channel25, _channel26, status;
11803
+ var _yield$take, type, args, createdChannel, channelFilterTypes, getFromContacts, channelExists, _chan, channel, _chan2, _channel, member, _channelExists, _activeChannelId, groupName, _channel2, _channelExists2, _channel3, removedMembers, _activeChannelId2, _channelExists3, activeChannel, _groupName, _channel4, addedMembers, _activeChannelId3, _channelExists4, _groupName2, updatedChannel, _channelExists5, subject, avatarUrl, muted, mutedTill, metadata, _activeChannelId4, _groupName3, _channel5, message, messageToHandle, _channelFilterTypes, _activeChannelId5, _channelExists6, channelForAdd, hasNextMessage, _groupName4, showNotifications, tabIsActive, contactsMap, _getFromContacts, messageBody, channelId, markerList, _channel6, _activeChannelId6, updateLastMessage, markersMap, lastMessage, _channel7, from, _channel8, _from, _channelId, _channel9, _channel0, deletedMessage, _activeChannelId7, _channelExists7, _channel1, _message, _activeChannelId8, _channelExists8, _channel10, user, _message2, reaction, isSelf, _activeChannelId9, _contactsMap, _getFromContacts2, _messageBody, channelUpdateParams, _channel11, _user, _message3, _reaction, channelFromMap, _isSelf, _activeChannelId0, _channelUpdateParams, _channel12, _updatedChannel, _channel13, _activeChannelId1, channelExist, _channel14, _channel15, _channel16, _channel17, _channel18, _channel19, _channel20, _groupName5, _channel21, _groupName6, _channel22, members, _activeChannelId10, i, _channel23, _channel24, status;
11836
11804
  return _regeneratorRuntime().wrap(function _callee$(_context) {
11837
11805
  while (1) switch (_context.prev = _context.next) {
11838
11806
  case 0:
@@ -12333,11 +12301,11 @@ function watchForEvents() {
12333
12301
  deleteChannelFromAllChannels(_channelId);
12334
12302
  return _context.abrupt("break", 423);
12335
12303
  case 240:
12336
- _channel10 = args.channel, deletedMessage = args.deletedMessage;
12304
+ _channel0 = args.channel, deletedMessage = args.deletedMessage;
12337
12305
  _activeChannelId7 = getActiveChannelId();
12338
12306
  log.info('channel DELETE_MESSAGE ... ');
12339
- _channelExists7 = checkChannelExists(_channel10.id);
12340
- if (!(_channel10.id === _activeChannelId7)) {
12307
+ _channelExists7 = checkChannelExists(_channel0.id);
12308
+ if (!(_channel0.id === _activeChannelId7)) {
12341
12309
  _context.next = 248;
12342
12310
  break;
12343
12311
  }
@@ -12345,7 +12313,7 @@ function watchForEvents() {
12345
12313
  _context.next = 248;
12346
12314
  return effects.put(updateMessageAC(deletedMessage.id, deletedMessage));
12347
12315
  case 248:
12348
- updateMessageOnMap(_channel10.id, {
12316
+ updateMessageOnMap(_channel0.id, {
12349
12317
  messageId: deletedMessage.id,
12350
12318
  params: deletedMessage
12351
12319
  });
@@ -12354,31 +12322,31 @@ function watchForEvents() {
12354
12322
  break;
12355
12323
  }
12356
12324
  _context.next = 252;
12357
- return effects.put(updateChannelDataAC(_channel10.id, {
12358
- newMessageCount: _channel10.newMessageCount,
12359
- muted: _channel10.muted,
12360
- mutedTill: _channel10.mutedTill
12325
+ return effects.put(updateChannelDataAC(_channel0.id, {
12326
+ newMessageCount: _channel0.newMessageCount,
12327
+ muted: _channel0.muted,
12328
+ mutedTill: _channel0.mutedTill
12361
12329
  }));
12362
12330
  case 252:
12363
- if (!(_channel10.lastMessage.id === deletedMessage.id)) {
12331
+ if (!(_channel0.lastMessage.id === deletedMessage.id)) {
12364
12332
  _context.next = 255;
12365
12333
  break;
12366
12334
  }
12367
12335
  _context.next = 255;
12368
- return effects.put(updateChannelLastMessageAC(deletedMessage, _channel10));
12336
+ return effects.put(updateChannelLastMessageAC(deletedMessage, _channel0));
12369
12337
  case 255:
12370
- updateChannelOnAllChannels(_channel10.id, {
12371
- newMessageCount: _channel10.newMessageCount,
12372
- muted: _channel10.muted,
12373
- mutedTill: _channel10.mutedTill
12338
+ updateChannelOnAllChannels(_channel0.id, {
12339
+ newMessageCount: _channel0.newMessageCount,
12340
+ muted: _channel0.muted,
12341
+ mutedTill: _channel0.mutedTill
12374
12342
  }, deletedMessage);
12375
12343
  return _context.abrupt("break", 423);
12376
12344
  case 257:
12377
- _channel11 = args.channel, _message = args.message;
12345
+ _channel1 = args.channel, _message = args.message;
12378
12346
  log.info('channel EDIT_MESSAGE ... ', _message);
12379
12347
  _activeChannelId8 = getActiveChannelId();
12380
- _channelExists8 = checkChannelExists(_channel11.id);
12381
- if (!(_channel11.id === _activeChannelId8)) {
12348
+ _channelExists8 = checkChannelExists(_channel1.id);
12349
+ if (!(_channel1.id === _activeChannelId8)) {
12382
12350
  _context.next = 265;
12383
12351
  break;
12384
12352
  }
@@ -12405,27 +12373,27 @@ function watchForEvents() {
12405
12373
  _context.next = 269;
12406
12374
  break;
12407
12375
  }
12408
- if (!(_channel11.lastMessage.id === _message.id)) {
12376
+ if (!(_channel1.lastMessage.id === _message.id)) {
12409
12377
  _context.next = 269;
12410
12378
  break;
12411
12379
  }
12412
12380
  _context.next = 269;
12413
- return effects.put(updateChannelLastMessageAC(_message, _channel11));
12381
+ return effects.put(updateChannelLastMessageAC(_message, _channel1));
12414
12382
  case 269:
12415
- if (checkChannelExistsOnMessagesMap(_channel11.id)) {
12416
- updateMessageOnMap(_channel11.id, {
12383
+ if (checkChannelExistsOnMessagesMap(_channel1.id)) {
12384
+ updateMessageOnMap(_channel1.id, {
12417
12385
  messageId: _message.id,
12418
12386
  params: _message
12419
12387
  });
12420
12388
  }
12421
- updateChannelOnAllChannels(_channel11.id, {}, _message);
12389
+ updateChannelOnAllChannels(_channel1.id, {}, _message);
12422
12390
  return _context.abrupt("break", 423);
12423
12391
  case 272:
12424
- _channel12 = args.channel, user = args.user, _message2 = args.message, reaction = args.reaction;
12392
+ _channel10 = args.channel, user = args.user, _message2 = args.message, reaction = args.reaction;
12425
12393
  log.info('channel REACTION_ADDED ... ', args);
12426
12394
  isSelf = user.id === SceytChatClient.user.id;
12427
12395
  _activeChannelId9 = getActiveChannelId();
12428
- if (!(_channel12.id === _activeChannelId9)) {
12396
+ if (!(_channel10.id === _activeChannelId9)) {
12429
12397
  _context.next = 280;
12430
12398
  break;
12431
12399
  }
@@ -12442,7 +12410,7 @@ function watchForEvents() {
12442
12410
  _context.next = 289;
12443
12411
  break;
12444
12412
  }
12445
- if (!(document.visibilityState !== 'visible' || _channel12.id !== _activeChannelId9)) {
12413
+ if (!(document.visibilityState !== 'visible' || _channel10.id !== _activeChannelId9)) {
12446
12414
  _context.next = 289;
12447
12415
  break;
12448
12416
  }
@@ -12459,43 +12427,43 @@ function watchForEvents() {
12459
12427
  isLastMessage: false,
12460
12428
  asSampleText: true
12461
12429
  });
12462
- setNotification(_messageBody, reaction.user, _channel12, reaction.key, _message2.attachments && _message2.attachments.length ? _message2.attachments.find(function (att) {
12430
+ setNotification(_messageBody, reaction.user, _channel10, reaction.key, _message2.attachments && _message2.attachments.length ? _message2.attachments.find(function (att) {
12463
12431
  return att.type !== attachmentTypes.link;
12464
12432
  }) : undefined);
12465
12433
  case 289:
12466
- if (!(_channel12.newReactions && _channel12.newReactions.length)) {
12434
+ if (!(_channel10.newReactions && _channel10.newReactions.length)) {
12467
12435
  _context.next = 293;
12468
12436
  break;
12469
12437
  }
12470
12438
  channelUpdateParams = {
12471
- userMessageReactions: _channel12.newReactions,
12439
+ userMessageReactions: _channel10.newReactions,
12472
12440
  lastReactedMessage: _message2,
12473
- newReactions: _channel12.newReactions,
12474
- muted: _channel12.muted,
12475
- mutedTill: _channel12.mutedTill
12441
+ newReactions: _channel10.newReactions,
12442
+ muted: _channel10.muted,
12443
+ mutedTill: _channel10.mutedTill
12476
12444
  };
12477
12445
  _context.next = 293;
12478
- return effects.put(updateChannelDataAC(_channel12.id, channelUpdateParams));
12446
+ return effects.put(updateChannelDataAC(_channel10.id, channelUpdateParams));
12479
12447
  case 293:
12480
- updateChannelOnAllChannels(_channel12.id, {
12481
- userMessageReactions: _channel12.newReactions,
12448
+ updateChannelOnAllChannels(_channel10.id, {
12449
+ userMessageReactions: _channel10.newReactions,
12482
12450
  lastReactedMessage: _message2,
12483
- newReactions: _channel12.newReactions,
12484
- muted: _channel12.muted,
12485
- mutedTill: _channel12.mutedTill
12451
+ newReactions: _channel10.newReactions,
12452
+ muted: _channel10.muted,
12453
+ mutedTill: _channel10.mutedTill
12486
12454
  });
12487
12455
  case 294:
12488
- if (checkChannelExistsOnMessagesMap(_channel12.id)) {
12489
- addReactionToMessageOnMap(_channel12.id, _message2, reaction, true);
12456
+ if (checkChannelExistsOnMessagesMap(_channel10.id)) {
12457
+ addReactionToMessageOnMap(_channel10.id, _message2, reaction, true);
12490
12458
  }
12491
12459
  return _context.abrupt("break", 423);
12492
12460
  case 296:
12493
- _channel13 = args.channel, _user = args.user, _message3 = args.message, _reaction = args.reaction;
12494
- log.info('channel REACTION_DELETED ... ', _channel13);
12495
- channelFromMap = getChannelFromMap(_channel13.id);
12461
+ _channel11 = args.channel, _user = args.user, _message3 = args.message, _reaction = args.reaction;
12462
+ log.info('channel REACTION_DELETED ... ', _channel11);
12463
+ channelFromMap = getChannelFromMap(_channel11.id);
12496
12464
  _isSelf = _user.id === SceytChatClient.user.id;
12497
- _activeChannelId10 = getActiveChannelId();
12498
- if (!(_channel13.id === _activeChannelId10)) {
12465
+ _activeChannelId0 = getActiveChannelId();
12466
+ if (!(_channel11.id === _activeChannelId0)) {
12499
12467
  _context.next = 305;
12500
12468
  break;
12501
12469
  }
@@ -12504,43 +12472,43 @@ function watchForEvents() {
12504
12472
  case 304:
12505
12473
  removeReactionOnAllMessages(_message3, _reaction, true);
12506
12474
  case 305:
12507
- _channelUpdateParams = JSON.parse(JSON.stringify(_channel13));
12475
+ _channelUpdateParams = JSON.parse(JSON.stringify(_channel11));
12508
12476
  if (channelFromMap && channelFromMap.lastReactedMessage && channelFromMap.lastReactedMessage.id === _message3.id) {
12509
12477
  _channelUpdateParams.lastReactedMessage = null;
12510
12478
  }
12511
12479
  _context.next = 309;
12512
- return effects.put(updateChannelDataAC(_channel13.id, _channelUpdateParams));
12480
+ return effects.put(updateChannelDataAC(_channel11.id, _channelUpdateParams));
12513
12481
  case 309:
12514
- updateChannelOnAllChannels(_channel13.id, _channelUpdateParams);
12515
- if (checkChannelExistsOnMessagesMap(_channel13.id)) {
12516
- removeReactionToMessageOnMap(_channel13.id, _message3, _reaction, true);
12482
+ updateChannelOnAllChannels(_channel11.id, _channelUpdateParams);
12483
+ if (checkChannelExistsOnMessagesMap(_channel11.id)) {
12484
+ removeReactionToMessageOnMap(_channel11.id, _message3, _reaction, true);
12517
12485
  }
12518
12486
  return _context.abrupt("break", 423);
12519
12487
  case 312:
12520
- _channel14 = args.channel;
12521
- if (!_channel14) {
12488
+ _channel12 = args.channel;
12489
+ if (!_channel12) {
12522
12490
  _context.next = 318;
12523
12491
  break;
12524
12492
  }
12525
- _updatedChannel = JSON.parse(JSON.stringify(_channel14));
12493
+ _updatedChannel = JSON.parse(JSON.stringify(_channel12));
12526
12494
  _context.next = 317;
12527
- return effects.put(updateChannelDataAC(_channel14.id, _updatedChannel));
12495
+ return effects.put(updateChannelDataAC(_channel12.id, _updatedChannel));
12528
12496
  case 317:
12529
- updateChannelOnAllChannels(_channel14.id, _updatedChannel);
12497
+ updateChannelOnAllChannels(_channel12.id, _updatedChannel);
12530
12498
  case 318:
12531
12499
  return _context.abrupt("break", 423);
12532
12500
  case 319:
12533
- _channel15 = args.channel;
12534
- log.info('CLEAR_HISTORY: ', _channel15);
12501
+ _channel13 = args.channel;
12502
+ log.info('CLEAR_HISTORY: ', _channel13);
12535
12503
  _context.next = 323;
12536
12504
  return effects.call(getActiveChannelId);
12537
12505
  case 323:
12538
- _activeChannelId11 = _context.sent;
12506
+ _activeChannelId1 = _context.sent;
12539
12507
  _context.next = 326;
12540
- return effects.call(checkChannelExists, _channel15.id);
12508
+ return effects.call(checkChannelExists, _channel13.id);
12541
12509
  case 326:
12542
12510
  channelExist = _context.sent;
12543
- if (!(_channel15.id === _activeChannelId11)) {
12511
+ if (!(_channel13.id === _activeChannelId1)) {
12544
12512
  _context.next = 331;
12545
12513
  break;
12546
12514
  }
@@ -12549,141 +12517,141 @@ function watchForEvents() {
12549
12517
  case 330:
12550
12518
  removeAllMessages();
12551
12519
  case 331:
12552
- removeMessagesFromMap(_channel15.id);
12520
+ removeMessagesFromMap(_channel13.id);
12553
12521
  if (!channelExist) {
12554
12522
  _context.next = 335;
12555
12523
  break;
12556
12524
  }
12557
12525
  _context.next = 335;
12558
- return effects.put(updateChannelDataAC(_channel15.id, {
12526
+ return effects.put(updateChannelDataAC(_channel13.id, {
12559
12527
  lastMessage: null,
12560
12528
  newMessageCount: 0,
12561
12529
  newMentionCount: 0,
12562
- muted: _channel15.muted,
12563
- mutedTill: _channel15.mutedTill
12530
+ muted: _channel13.muted,
12531
+ mutedTill: _channel13.mutedTill
12564
12532
  }));
12565
12533
  case 335:
12566
- updateChannelOnAllChannels(_channel15.id, {
12534
+ updateChannelOnAllChannels(_channel13.id, {
12567
12535
  lastMessage: null,
12568
12536
  newMessageCount: 0,
12569
12537
  newMentionCount: 0,
12570
- muted: _channel15.muted,
12571
- mutedTill: _channel15.mutedTill
12538
+ muted: _channel13.muted,
12539
+ mutedTill: _channel13.mutedTill
12572
12540
  });
12573
12541
  return _context.abrupt("break", 423);
12574
12542
  case 337:
12575
- _channel16 = args.channel;
12543
+ _channel14 = args.channel;
12576
12544
  log.info('channel MUTE ... ');
12577
12545
  _context.next = 341;
12578
- return effects.put(updateChannelDataAC(_channel16.id, {
12579
- muted: _channel16.muted,
12580
- mutedTill: _channel16.mutedTill
12546
+ return effects.put(updateChannelDataAC(_channel14.id, {
12547
+ muted: _channel14.muted,
12548
+ mutedTill: _channel14.mutedTill
12581
12549
  }));
12582
12550
  case 341:
12583
- updateChannelOnAllChannels(_channel16.id, {
12584
- muted: _channel16.muted,
12585
- mutedTill: _channel16.mutedTill
12551
+ updateChannelOnAllChannels(_channel14.id, {
12552
+ muted: _channel14.muted,
12553
+ mutedTill: _channel14.mutedTill
12586
12554
  });
12587
12555
  return _context.abrupt("break", 423);
12588
12556
  case 343:
12589
- _channel17 = args.channel;
12557
+ _channel15 = args.channel;
12590
12558
  log.info('channel UNMUTE ... ');
12591
12559
  _context.next = 347;
12592
- return effects.put(updateChannelDataAC(_channel17.id, {
12593
- muted: _channel17.muted,
12594
- mutedTill: _channel17.mutedTill
12560
+ return effects.put(updateChannelDataAC(_channel15.id, {
12561
+ muted: _channel15.muted,
12562
+ mutedTill: _channel15.mutedTill
12595
12563
  }));
12596
12564
  case 347:
12597
- updateChannelOnAllChannels(_channel17.id, {
12598
- muted: _channel17.muted,
12599
- mutedTill: _channel17.mutedTill
12565
+ updateChannelOnAllChannels(_channel15.id, {
12566
+ muted: _channel15.muted,
12567
+ mutedTill: _channel15.mutedTill
12600
12568
  });
12601
12569
  return _context.abrupt("break", 423);
12602
12570
  case 349:
12603
- _channel18 = args.channel;
12571
+ _channel16 = args.channel;
12604
12572
  log.info('channel PINED ... ');
12605
12573
  _context.next = 353;
12606
- return effects.put(updateChannelDataAC(_channel18.id, {
12607
- pinnedAt: _channel18.pinnedAt
12574
+ return effects.put(updateChannelDataAC(_channel16.id, {
12575
+ pinnedAt: _channel16.pinnedAt
12608
12576
  }, true));
12609
12577
  case 353:
12610
- updateChannelOnAllChannels(_channel18.id, {
12611
- pinnedAt: _channel18.pinnedAt
12578
+ updateChannelOnAllChannels(_channel16.id, {
12579
+ pinnedAt: _channel16.pinnedAt
12612
12580
  });
12613
12581
  return _context.abrupt("break", 423);
12614
12582
  case 355:
12615
- _channel19 = args.channel;
12583
+ _channel17 = args.channel;
12616
12584
  log.info('channel UNPINED ... ');
12617
12585
  _context.next = 359;
12618
- return effects.put(updateChannelDataAC(_channel19.id, {
12619
- pinnedAt: _channel19.pinnedAt
12586
+ return effects.put(updateChannelDataAC(_channel17.id, {
12587
+ pinnedAt: _channel17.pinnedAt
12620
12588
  }, false, true));
12621
12589
  case 359:
12622
- updateChannelOnAllChannels(_channel19.id, {
12623
- pinnedAt: _channel19.pinnedAt
12590
+ updateChannelOnAllChannels(_channel17.id, {
12591
+ pinnedAt: _channel17.pinnedAt
12624
12592
  });
12625
12593
  return _context.abrupt("break", 423);
12626
12594
  case 361:
12627
- _channel20 = args.channel;
12595
+ _channel18 = args.channel;
12628
12596
  log.info('channel HIDE ... ');
12629
12597
  _context.next = 365;
12630
- return effects.put(setChannelToHideAC(_channel20));
12598
+ return effects.put(setChannelToHideAC(_channel18));
12631
12599
  case 365:
12632
12600
  return _context.abrupt("break", 423);
12633
12601
  case 366:
12634
- _channel21 = args.channel;
12602
+ _channel19 = args.channel;
12635
12603
  log.info('channel UNHIDE ... ');
12636
12604
  _context.next = 370;
12637
- return effects.put(setChannelToUnHideAC(_channel21));
12605
+ return effects.put(setChannelToUnHideAC(_channel19));
12638
12606
  case 370:
12639
12607
  return _context.abrupt("break", 423);
12640
12608
  case 371:
12641
- _channel22 = args.channel;
12609
+ _channel20 = args.channel;
12642
12610
  _context.next = 374;
12643
- return effects.put(updateChannelDataAC(_channel22.id, {
12644
- unread: _channel22.unread,
12645
- muted: _channel22.muted,
12646
- mutedTill: _channel22.mutedTill
12611
+ return effects.put(updateChannelDataAC(_channel20.id, {
12612
+ unread: _channel20.unread,
12613
+ muted: _channel20.muted,
12614
+ mutedTill: _channel20.mutedTill
12647
12615
  }));
12648
12616
  case 374:
12649
- _groupName5 = getChannelGroupName(_channel22);
12617
+ _groupName5 = getChannelGroupName(_channel20);
12650
12618
  _context.next = 377;
12651
- return effects.put(updateSearchedChannelDataAC(_channel22.id, {
12652
- unread: _channel22.unread
12619
+ return effects.put(updateSearchedChannelDataAC(_channel20.id, {
12620
+ unread: _channel20.unread
12653
12621
  }, _groupName5));
12654
12622
  case 377:
12655
- updateChannelOnAllChannels(_channel22.id, {
12656
- unread: _channel22.unread
12623
+ updateChannelOnAllChannels(_channel20.id, {
12624
+ unread: _channel20.unread
12657
12625
  });
12658
12626
  return _context.abrupt("break", 423);
12659
12627
  case 379:
12660
- _channel23 = args.channel;
12628
+ _channel21 = args.channel;
12661
12629
  _context.next = 382;
12662
- return effects.put(updateChannelDataAC(_channel23.id, {
12663
- unread: _channel23.unread,
12664
- muted: _channel23.muted,
12665
- mutedTill: _channel23.mutedTill
12630
+ return effects.put(updateChannelDataAC(_channel21.id, {
12631
+ unread: _channel21.unread,
12632
+ muted: _channel21.muted,
12633
+ mutedTill: _channel21.mutedTill
12666
12634
  }));
12667
12635
  case 382:
12668
- _groupName6 = getChannelGroupName(_channel23);
12636
+ _groupName6 = getChannelGroupName(_channel21);
12669
12637
  _context.next = 385;
12670
- return effects.put(updateSearchedChannelDataAC(_channel23.id, {
12671
- unread: _channel23.unread
12638
+ return effects.put(updateSearchedChannelDataAC(_channel21.id, {
12639
+ unread: _channel21.unread
12672
12640
  }, _groupName6));
12673
12641
  case 385:
12674
- updateChannelOnAllChannels(_channel23.id, {
12675
- unread: _channel23.unread
12642
+ updateChannelOnAllChannels(_channel21.id, {
12643
+ unread: _channel21.unread
12676
12644
  });
12677
12645
  return _context.abrupt("break", 423);
12678
12646
  case 387:
12679
- _channel24 = args.channel, members = args.members;
12680
- log.info('channel CHANGE_ROLE channel ... ', _channel24);
12647
+ _channel22 = args.channel, members = args.members;
12648
+ log.info('channel CHANGE_ROLE channel ... ', _channel22);
12681
12649
  log.info('channel CHANGE_ROLE member ... ', members);
12682
12650
  _context.next = 392;
12683
12651
  return effects.call(getActiveChannelId);
12684
12652
  case 392:
12685
- _activeChannelId12 = _context.sent;
12686
- if (!(_channel24.id === _activeChannelId12)) {
12653
+ _activeChannelId10 = _context.sent;
12654
+ if (!(_channel22.id === _activeChannelId10)) {
12687
12655
  _context.next = 396;
12688
12656
  break;
12689
12657
  }
@@ -12701,16 +12669,16 @@ function watchForEvents() {
12701
12669
  break;
12702
12670
  }
12703
12671
  _context.next = 401;
12704
- return effects.put(updateChannelDataAC(_channel24.id, {
12672
+ return effects.put(updateChannelDataAC(_channel22.id, {
12705
12673
  userRole: members[i].role,
12706
- muted: _channel24.muted,
12707
- mutedTill: _channel24.mutedTill
12674
+ muted: _channel22.muted,
12675
+ mutedTill: _channel22.mutedTill
12708
12676
  }));
12709
12677
  case 401:
12710
- updateChannelOnAllChannels(_channel24.id, {
12678
+ updateChannelOnAllChannels(_channel22.id, {
12711
12679
  userRole: members[i].role,
12712
- muted: _channel24.muted,
12713
- mutedTill: _channel24.mutedTill
12680
+ muted: _channel22.muted,
12681
+ mutedTill: _channel22.mutedTill
12714
12682
  });
12715
12683
  case 402:
12716
12684
  i++;
@@ -12719,12 +12687,12 @@ function watchForEvents() {
12719
12687
  case 405:
12720
12688
  return _context.abrupt("break", 423);
12721
12689
  case 406:
12722
- _channel25 = args.channel;
12723
- log.info('channel frozen channel ... ', _channel25);
12690
+ _channel23 = args.channel;
12691
+ log.info('channel frozen channel ... ', _channel23);
12724
12692
  return _context.abrupt("break", 423);
12725
12693
  case 409:
12726
- _channel26 = args.channel;
12727
- log.info('channel unfrozen channel ... ', _channel26);
12694
+ _channel24 = args.channel;
12695
+ log.info('channel unfrozen channel ... ', _channel24);
12728
12696
  return _context.abrupt("break", 423);
12729
12697
  case 412:
12730
12698
  log.info('channel event received >>>... . . . . . ', args);
@@ -12847,25 +12815,25 @@ var _marked$1 = /*#__PURE__*/_regeneratorRuntime().mark(createChannel),
12847
12815
  _marked7 = /*#__PURE__*/_regeneratorRuntime().mark(channelsForForwardLoadMore),
12848
12816
  _marked8 = /*#__PURE__*/_regeneratorRuntime().mark(markMessagesRead),
12849
12817
  _marked9 = /*#__PURE__*/_regeneratorRuntime().mark(markMessagesDelivered),
12850
- _marked10 = /*#__PURE__*/_regeneratorRuntime().mark(switchChannel),
12851
- _marked11 = /*#__PURE__*/_regeneratorRuntime().mark(notificationsTurnOff),
12852
- _marked12 = /*#__PURE__*/_regeneratorRuntime().mark(notificationsTurnOn),
12853
- _marked13 = /*#__PURE__*/_regeneratorRuntime().mark(markChannelAsRead),
12854
- _marked14 = /*#__PURE__*/_regeneratorRuntime().mark(markChannelAsUnRead),
12855
- _marked15 = /*#__PURE__*/_regeneratorRuntime().mark(pinChannel),
12856
- _marked16 = /*#__PURE__*/_regeneratorRuntime().mark(unpinChannel),
12857
- _marked17 = /*#__PURE__*/_regeneratorRuntime().mark(removeChannelCaches),
12858
- _marked18 = /*#__PURE__*/_regeneratorRuntime().mark(leaveChannel),
12859
- _marked19 = /*#__PURE__*/_regeneratorRuntime().mark(deleteChannel),
12860
- _marked20 = /*#__PURE__*/_regeneratorRuntime().mark(blockChannel),
12861
- _marked21 = /*#__PURE__*/_regeneratorRuntime().mark(updateChannel),
12862
- _marked22 = /*#__PURE__*/_regeneratorRuntime().mark(checkUsersStatus),
12863
- _marked23 = /*#__PURE__*/_regeneratorRuntime().mark(sendTyping),
12864
- _marked24 = /*#__PURE__*/_regeneratorRuntime().mark(clearHistory),
12865
- _marked25 = /*#__PURE__*/_regeneratorRuntime().mark(deleteAllMessages),
12866
- _marked26 = /*#__PURE__*/_regeneratorRuntime().mark(joinChannel),
12867
- _marked27 = /*#__PURE__*/_regeneratorRuntime().mark(watchForChannelEvents),
12868
- _marked28 = /*#__PURE__*/_regeneratorRuntime().mark(ChannelsSaga);
12818
+ _marked0 = /*#__PURE__*/_regeneratorRuntime().mark(switchChannel),
12819
+ _marked1 = /*#__PURE__*/_regeneratorRuntime().mark(notificationsTurnOff),
12820
+ _marked10 = /*#__PURE__*/_regeneratorRuntime().mark(notificationsTurnOn),
12821
+ _marked11 = /*#__PURE__*/_regeneratorRuntime().mark(markChannelAsRead),
12822
+ _marked12 = /*#__PURE__*/_regeneratorRuntime().mark(markChannelAsUnRead),
12823
+ _marked13 = /*#__PURE__*/_regeneratorRuntime().mark(pinChannel),
12824
+ _marked14 = /*#__PURE__*/_regeneratorRuntime().mark(unpinChannel),
12825
+ _marked15 = /*#__PURE__*/_regeneratorRuntime().mark(removeChannelCaches),
12826
+ _marked16 = /*#__PURE__*/_regeneratorRuntime().mark(leaveChannel),
12827
+ _marked17 = /*#__PURE__*/_regeneratorRuntime().mark(deleteChannel),
12828
+ _marked18 = /*#__PURE__*/_regeneratorRuntime().mark(blockChannel),
12829
+ _marked19 = /*#__PURE__*/_regeneratorRuntime().mark(updateChannel),
12830
+ _marked20 = /*#__PURE__*/_regeneratorRuntime().mark(checkUsersStatus),
12831
+ _marked21 = /*#__PURE__*/_regeneratorRuntime().mark(sendTyping),
12832
+ _marked22 = /*#__PURE__*/_regeneratorRuntime().mark(clearHistory),
12833
+ _marked23 = /*#__PURE__*/_regeneratorRuntime().mark(deleteAllMessages),
12834
+ _marked24 = /*#__PURE__*/_regeneratorRuntime().mark(joinChannel),
12835
+ _marked25 = /*#__PURE__*/_regeneratorRuntime().mark(watchForChannelEvents),
12836
+ _marked26 = /*#__PURE__*/_regeneratorRuntime().mark(ChannelsSaga);
12869
12837
  function createChannel(action) {
12870
12838
  var payload, channelData, dontCreateIfNotExists, SceytChatClient, createChannelData, fileToUpload, isSelfChannel, channelIsExistOnAllChannels, createdChannel, allChannels, memberId, checkChannelExist, messageToSend, _allChannels, _memberId;
12871
12839
  return _regeneratorRuntime().wrap(function createChannel$(_context) {
@@ -13761,182 +13729,182 @@ function markMessagesDelivered(action) {
13761
13729
  }
13762
13730
  function switchChannel(action) {
13763
13731
  var payload, channel, channelToSwitch, existingChannel, addChannel, SceytChatClient, fetchedChannel, channelFromMap, currentActiveChannel;
13764
- return _regeneratorRuntime().wrap(function switchChannel$(_context10) {
13765
- while (1) switch (_context10.prev = _context10.next) {
13732
+ return _regeneratorRuntime().wrap(function switchChannel$(_context0) {
13733
+ while (1) switch (_context0.prev = _context0.next) {
13766
13734
  case 0:
13767
- _context10.prev = 0;
13735
+ _context0.prev = 0;
13768
13736
  payload = action.payload;
13769
13737
  channel = payload.channel;
13770
13738
  channelToSwitch = channel;
13771
13739
  if (channel !== null && channel !== void 0 && channel.id) {
13772
- _context10.next = 10;
13740
+ _context0.next = 10;
13773
13741
  break;
13774
13742
  }
13775
- _context10.next = 7;
13743
+ _context0.next = 7;
13776
13744
  return effects.call(setActiveChannelId, '');
13777
13745
  case 7:
13778
- _context10.next = 9;
13746
+ _context0.next = 9;
13779
13747
  return effects.put(setActiveChannelAC({}));
13780
13748
  case 9:
13781
- return _context10.abrupt("return");
13749
+ return _context0.abrupt("return");
13782
13750
  case 10:
13783
13751
  existingChannel = checkChannelExists(channel.id);
13784
13752
  if (existingChannel) {
13785
- _context10.next = 31;
13753
+ _context0.next = 31;
13786
13754
  break;
13787
13755
  }
13788
13756
  addChannel = getChannelFromAllChannels(channel.id);
13789
13757
  if (!addChannel) {
13790
- _context10.next = 20;
13758
+ _context0.next = 20;
13791
13759
  break;
13792
13760
  }
13793
13761
  setChannelInMap(addChannel);
13794
- _context10.next = 17;
13762
+ _context0.next = 17;
13795
13763
  return effects.put(addChannelAC(JSON.parse(JSON.stringify(addChannel))));
13796
13764
  case 17:
13797
13765
  channelToSwitch = _extends({}, channelToSwitch, addChannel);
13798
- _context10.next = 29;
13766
+ _context0.next = 29;
13799
13767
  break;
13800
13768
  case 20:
13801
13769
  SceytChatClient = getClient();
13802
- _context10.next = 23;
13770
+ _context0.next = 23;
13803
13771
  return effects.call(SceytChatClient.getChannel, channel.id);
13804
13772
  case 23:
13805
- fetchedChannel = _context10.sent;
13773
+ fetchedChannel = _context0.sent;
13806
13774
  addChannelToAllChannels(fetchedChannel);
13807
13775
  setChannelInMap(fetchedChannel);
13808
- _context10.next = 28;
13776
+ _context0.next = 28;
13809
13777
  return effects.put(addChannelAC(JSON.parse(JSON.stringify(fetchedChannel))));
13810
13778
  case 28:
13811
13779
  channelToSwitch = _extends({}, channelToSwitch, fetchedChannel);
13812
13780
  case 29:
13813
- _context10.next = 33;
13781
+ _context0.next = 33;
13814
13782
  break;
13815
13783
  case 31:
13816
13784
  channelFromMap = getChannelFromMap(channel.id);
13817
13785
  channelToSwitch = _extends({}, channelToSwitch, channelFromMap);
13818
13786
  case 33:
13819
13787
  currentActiveChannel = getChannelFromMap(getActiveChannelId());
13820
- _context10.next = 36;
13788
+ _context0.next = 36;
13821
13789
  return effects.call(setUnreadScrollTo, true);
13822
13790
  case 36:
13823
- _context10.next = 38;
13791
+ _context0.next = 38;
13824
13792
  return effects.call(setActiveChannelId, channel && channel.id);
13825
13793
  case 38:
13826
13794
  if (channel.isLinkedChannel) {
13827
13795
  channelToSwitch.linkedFrom = currentActiveChannel;
13828
13796
  }
13829
- _context10.next = 41;
13797
+ _context0.next = 41;
13830
13798
  return effects.put(setActiveChannelAC(_extends({}, channelToSwitch)));
13831
13799
  case 41:
13832
- _context10.next = 47;
13800
+ _context0.next = 47;
13833
13801
  break;
13834
13802
  case 44:
13835
- _context10.prev = 44;
13836
- _context10.t0 = _context10["catch"](0);
13837
- log.error('error in switch channel', _context10.t0);
13803
+ _context0.prev = 44;
13804
+ _context0.t0 = _context0["catch"](0);
13805
+ log.error('error in switch channel', _context0.t0);
13838
13806
  case 47:
13839
13807
  case "end":
13840
- return _context10.stop();
13808
+ return _context0.stop();
13841
13809
  }
13842
- }, _marked10, null, [[0, 44]]);
13810
+ }, _marked0, null, [[0, 44]]);
13843
13811
  }
13844
13812
  function notificationsTurnOff(action) {
13845
13813
  var expireTime, activeChannelId, channel, updatedChannel;
13846
- return _regeneratorRuntime().wrap(function notificationsTurnOff$(_context11) {
13847
- while (1) switch (_context11.prev = _context11.next) {
13814
+ return _regeneratorRuntime().wrap(function notificationsTurnOff$(_context1) {
13815
+ while (1) switch (_context1.prev = _context1.next) {
13848
13816
  case 0:
13849
13817
  expireTime = action.payload.expireTime;
13850
- _context11.next = 3;
13818
+ _context1.next = 3;
13851
13819
  return effects.call(getActiveChannelId);
13852
13820
  case 3:
13853
- activeChannelId = _context11.sent;
13854
- _context11.next = 6;
13821
+ activeChannelId = _context1.sent;
13822
+ _context1.next = 6;
13855
13823
  return effects.call(getChannelFromMap, activeChannelId);
13856
13824
  case 6:
13857
- channel = _context11.sent;
13858
- _context11.prev = 7;
13859
- _context11.next = 10;
13825
+ channel = _context1.sent;
13826
+ _context1.prev = 7;
13827
+ _context1.next = 10;
13860
13828
  return effects.call(channel.mute, expireTime);
13861
13829
  case 10:
13862
- updatedChannel = _context11.sent;
13830
+ updatedChannel = _context1.sent;
13863
13831
  updateChannelOnAllChannels(channel.id, {
13864
13832
  muted: updatedChannel.muted,
13865
13833
  mutedTill: updatedChannel.mutedTill
13866
13834
  });
13867
- _context11.next = 14;
13835
+ _context1.next = 14;
13868
13836
  return effects.put(updateChannelDataAC(updatedChannel.id, {
13869
13837
  muted: updatedChannel.muted,
13870
13838
  mutedTill: updatedChannel.mutedTill
13871
13839
  }));
13872
13840
  case 14:
13873
- _context11.next = 19;
13841
+ _context1.next = 19;
13874
13842
  break;
13875
13843
  case 16:
13876
- _context11.prev = 16;
13877
- _context11.t0 = _context11["catch"](7);
13878
- log.error('ERROR turn off notifications', _context11.t0.message);
13844
+ _context1.prev = 16;
13845
+ _context1.t0 = _context1["catch"](7);
13846
+ log.error('ERROR turn off notifications', _context1.t0.message);
13879
13847
  case 19:
13880
13848
  case "end":
13881
- return _context11.stop();
13849
+ return _context1.stop();
13882
13850
  }
13883
- }, _marked11, null, [[7, 16]]);
13851
+ }, _marked1, null, [[7, 16]]);
13884
13852
  }
13885
13853
  function notificationsTurnOn() {
13886
13854
  var activeChannelId, channel, updatedChannel;
13887
- return _regeneratorRuntime().wrap(function notificationsTurnOn$(_context12) {
13888
- while (1) switch (_context12.prev = _context12.next) {
13855
+ return _regeneratorRuntime().wrap(function notificationsTurnOn$(_context10) {
13856
+ while (1) switch (_context10.prev = _context10.next) {
13889
13857
  case 0:
13890
- _context12.next = 2;
13858
+ _context10.next = 2;
13891
13859
  return effects.call(getActiveChannelId);
13892
13860
  case 2:
13893
- activeChannelId = _context12.sent;
13894
- _context12.next = 5;
13861
+ activeChannelId = _context10.sent;
13862
+ _context10.next = 5;
13895
13863
  return effects.call(getChannelFromMap, activeChannelId);
13896
13864
  case 5:
13897
- channel = _context12.sent;
13898
- _context12.prev = 6;
13899
- _context12.next = 9;
13865
+ channel = _context10.sent;
13866
+ _context10.prev = 6;
13867
+ _context10.next = 9;
13900
13868
  return effects.call(channel.unmute);
13901
13869
  case 9:
13902
- updatedChannel = _context12.sent;
13870
+ updatedChannel = _context10.sent;
13903
13871
  updateChannelOnAllChannels(channel.id, {
13904
13872
  muted: updatedChannel.muted,
13905
13873
  mutedTill: updatedChannel.mutedTill
13906
13874
  });
13907
- _context12.next = 13;
13875
+ _context10.next = 13;
13908
13876
  return effects.put(updateChannelDataAC(updatedChannel.id, {
13909
13877
  muted: updatedChannel.muted,
13910
13878
  mutedTill: updatedChannel.mutedTill
13911
13879
  }));
13912
13880
  case 13:
13913
- _context12.next = 18;
13881
+ _context10.next = 18;
13914
13882
  break;
13915
13883
  case 15:
13916
- _context12.prev = 15;
13917
- _context12.t0 = _context12["catch"](6);
13918
- log.error('ERROR turn on notifications: ', _context12.t0.message);
13884
+ _context10.prev = 15;
13885
+ _context10.t0 = _context10["catch"](6);
13886
+ log.error('ERROR turn on notifications: ', _context10.t0.message);
13919
13887
  case 18:
13920
13888
  case "end":
13921
- return _context12.stop();
13889
+ return _context10.stop();
13922
13890
  }
13923
- }, _marked12, null, [[6, 15]]);
13891
+ }, _marked10, null, [[6, 15]]);
13924
13892
  }
13925
13893
  function markChannelAsRead(action) {
13926
13894
  var channelId, channel, updateData;
13927
- return _regeneratorRuntime().wrap(function markChannelAsRead$(_context13) {
13928
- while (1) switch (_context13.prev = _context13.next) {
13895
+ return _regeneratorRuntime().wrap(function markChannelAsRead$(_context11) {
13896
+ while (1) switch (_context11.prev = _context11.next) {
13929
13897
  case 0:
13930
- _context13.prev = 0;
13898
+ _context11.prev = 0;
13931
13899
  channelId = action.payload.channelId;
13932
- _context13.next = 4;
13900
+ _context11.next = 4;
13933
13901
  return effects.call(getChannelFromMap, channelId);
13934
13902
  case 4:
13935
- channel = _context13.sent;
13903
+ channel = _context11.sent;
13936
13904
  if (!channel) {
13937
13905
  channel = getChannelFromAllChannels(channelId);
13938
13906
  }
13939
- _context13.next = 8;
13907
+ _context11.next = 8;
13940
13908
  return effects.call(channel.markAsRead);
13941
13909
  case 8:
13942
13910
  updateData = {
@@ -13945,316 +13913,316 @@ function markChannelAsRead(action) {
13945
13913
  newMentionCount: 0
13946
13914
  };
13947
13915
  updateChannelOnAllChannels(channel.id, updateData);
13948
- _context13.next = 12;
13916
+ _context11.next = 12;
13949
13917
  return effects.put(updateChannelDataAC(channel.id, updateData));
13950
13918
  case 12:
13951
- _context13.next = 17;
13919
+ _context11.next = 17;
13952
13920
  break;
13953
13921
  case 14:
13954
- _context13.prev = 14;
13955
- _context13.t0 = _context13["catch"](0);
13956
- log.error(_context13.t0, 'Error in set channel unread');
13922
+ _context11.prev = 14;
13923
+ _context11.t0 = _context11["catch"](0);
13924
+ log.error(_context11.t0, 'Error in set channel unread');
13957
13925
  case 17:
13958
13926
  case "end":
13959
- return _context13.stop();
13927
+ return _context11.stop();
13960
13928
  }
13961
- }, _marked13, null, [[0, 14]]);
13929
+ }, _marked11, null, [[0, 14]]);
13962
13930
  }
13963
13931
  function markChannelAsUnRead(action) {
13964
13932
  var channelId, channel;
13965
- return _regeneratorRuntime().wrap(function markChannelAsUnRead$(_context14) {
13966
- while (1) switch (_context14.prev = _context14.next) {
13933
+ return _regeneratorRuntime().wrap(function markChannelAsUnRead$(_context12) {
13934
+ while (1) switch (_context12.prev = _context12.next) {
13967
13935
  case 0:
13968
- _context14.prev = 0;
13936
+ _context12.prev = 0;
13969
13937
  channelId = action.payload.channelId;
13970
- _context14.next = 4;
13938
+ _context12.next = 4;
13971
13939
  return effects.call(getChannelFromMap, channelId);
13972
13940
  case 4:
13973
- channel = _context14.sent;
13941
+ channel = _context12.sent;
13974
13942
  if (!channel) {
13975
13943
  channel = getChannelFromAllChannels(channelId);
13976
13944
  }
13977
- _context14.next = 8;
13945
+ _context12.next = 8;
13978
13946
  return effects.call(channel.markAsUnRead);
13979
13947
  case 8:
13980
13948
  updateChannelOnAllChannels(channel.id, {
13981
13949
  unread: true
13982
13950
  });
13983
- _context14.next = 11;
13951
+ _context12.next = 11;
13984
13952
  return effects.put(updateChannelDataAC(channel.id, {
13985
13953
  unread: true
13986
13954
  }));
13987
13955
  case 11:
13988
- _context14.next = 16;
13956
+ _context12.next = 16;
13989
13957
  break;
13990
13958
  case 13:
13991
- _context14.prev = 13;
13992
- _context14.t0 = _context14["catch"](0);
13993
- log.error(_context14.t0, 'Error in set channel unread');
13959
+ _context12.prev = 13;
13960
+ _context12.t0 = _context12["catch"](0);
13961
+ log.error(_context12.t0, 'Error in set channel unread');
13994
13962
  case 16:
13995
13963
  case "end":
13996
- return _context14.stop();
13964
+ return _context12.stop();
13997
13965
  }
13998
- }, _marked14, null, [[0, 13]]);
13966
+ }, _marked12, null, [[0, 13]]);
13999
13967
  }
14000
13968
  function pinChannel(action) {
14001
13969
  var channelId, channel, updatedChannel;
14002
- return _regeneratorRuntime().wrap(function pinChannel$(_context15) {
14003
- while (1) switch (_context15.prev = _context15.next) {
13970
+ return _regeneratorRuntime().wrap(function pinChannel$(_context13) {
13971
+ while (1) switch (_context13.prev = _context13.next) {
14004
13972
  case 0:
14005
- _context15.prev = 0;
13973
+ _context13.prev = 0;
14006
13974
  channelId = action.payload.channelId;
14007
- _context15.next = 4;
13975
+ _context13.next = 4;
14008
13976
  return effects.call(getChannelFromMap, channelId);
14009
13977
  case 4:
14010
- channel = _context15.sent;
13978
+ channel = _context13.sent;
14011
13979
  if (!channel) {
14012
13980
  channel = getChannelFromAllChannels(channelId);
14013
13981
  }
14014
- _context15.next = 8;
13982
+ _context13.next = 8;
14015
13983
  return effects.call(channel.pin);
14016
13984
  case 8:
14017
- updatedChannel = _context15.sent;
13985
+ updatedChannel = _context13.sent;
14018
13986
  updateChannelOnAllChannels(channel.id, {
14019
13987
  pinnedAt: updatedChannel.pinnedAt
14020
13988
  });
14021
- _context15.next = 12;
13989
+ _context13.next = 12;
14022
13990
  return effects.put(updateChannelDataAC(updatedChannel.id, {
14023
13991
  pinnedAt: updatedChannel.pinnedAt
14024
13992
  }, true));
14025
13993
  case 12:
14026
- _context15.next = 17;
13994
+ _context13.next = 17;
14027
13995
  break;
14028
13996
  case 14:
14029
- _context15.prev = 14;
14030
- _context15.t0 = _context15["catch"](0);
14031
- log.error(_context15.t0, 'Error in pinChannel');
13997
+ _context13.prev = 14;
13998
+ _context13.t0 = _context13["catch"](0);
13999
+ log.error(_context13.t0, 'Error in pinChannel');
14032
14000
  case 17:
14033
14001
  case "end":
14034
- return _context15.stop();
14002
+ return _context13.stop();
14035
14003
  }
14036
- }, _marked15, null, [[0, 14]]);
14004
+ }, _marked13, null, [[0, 14]]);
14037
14005
  }
14038
14006
  function unpinChannel(action) {
14039
14007
  var channelId, channel, updatedChannel;
14040
- return _regeneratorRuntime().wrap(function unpinChannel$(_context16) {
14041
- while (1) switch (_context16.prev = _context16.next) {
14008
+ return _regeneratorRuntime().wrap(function unpinChannel$(_context14) {
14009
+ while (1) switch (_context14.prev = _context14.next) {
14042
14010
  case 0:
14043
- _context16.prev = 0;
14011
+ _context14.prev = 0;
14044
14012
  channelId = action.payload.channelId;
14045
- _context16.next = 4;
14013
+ _context14.next = 4;
14046
14014
  return effects.call(getChannelFromMap, channelId);
14047
14015
  case 4:
14048
- channel = _context16.sent;
14016
+ channel = _context14.sent;
14049
14017
  if (!channel) {
14050
14018
  channel = getChannelFromAllChannels(channelId);
14051
14019
  }
14052
- _context16.next = 8;
14020
+ _context14.next = 8;
14053
14021
  return effects.call(channel.unpin);
14054
14022
  case 8:
14055
- updatedChannel = _context16.sent;
14023
+ updatedChannel = _context14.sent;
14056
14024
  updateChannelOnAllChannels(channel.id, {
14057
14025
  pinnedAt: updatedChannel.pinnedAt
14058
14026
  });
14059
- _context16.next = 12;
14027
+ _context14.next = 12;
14060
14028
  return effects.put(updateChannelDataAC(updatedChannel.id, {
14061
14029
  pinnedAt: updatedChannel.pinnedAt
14062
14030
  }, false, true));
14063
14031
  case 12:
14064
- _context16.next = 17;
14032
+ _context14.next = 17;
14065
14033
  break;
14066
14034
  case 14:
14067
- _context16.prev = 14;
14068
- _context16.t0 = _context16["catch"](0);
14069
- log.error(_context16.t0, 'Error in unpinChannel');
14035
+ _context14.prev = 14;
14036
+ _context14.t0 = _context14["catch"](0);
14037
+ log.error(_context14.t0, 'Error in unpinChannel');
14070
14038
  case 17:
14071
14039
  case "end":
14072
- return _context16.stop();
14040
+ return _context14.stop();
14073
14041
  }
14074
- }, _marked16, null, [[0, 14]]);
14042
+ }, _marked14, null, [[0, 14]]);
14075
14043
  }
14076
14044
  function removeChannelCaches(action) {
14077
14045
  var payload, channelId, activeChannelId, activeChannel;
14078
- return _regeneratorRuntime().wrap(function removeChannelCaches$(_context17) {
14079
- while (1) switch (_context17.prev = _context17.next) {
14046
+ return _regeneratorRuntime().wrap(function removeChannelCaches$(_context15) {
14047
+ while (1) switch (_context15.prev = _context15.next) {
14080
14048
  case 0:
14081
14049
  payload = action.payload;
14082
14050
  channelId = payload.channelId;
14083
- _context17.next = 4;
14051
+ _context15.next = 4;
14084
14052
  return effects.call(getActiveChannelId);
14085
14053
  case 4:
14086
- activeChannelId = _context17.sent;
14054
+ activeChannelId = _context15.sent;
14087
14055
  removeChannelFromMap(channelId);
14088
14056
  removeMessagesFromMap(channelId);
14089
14057
  if (!(activeChannelId === channelId)) {
14090
- _context17.next = 14;
14058
+ _context15.next = 14;
14091
14059
  break;
14092
14060
  }
14093
- _context17.next = 10;
14061
+ _context15.next = 10;
14094
14062
  return effects.call(getLastChannelFromMap);
14095
14063
  case 10:
14096
- activeChannel = _context17.sent;
14064
+ activeChannel = _context15.sent;
14097
14065
  if (!activeChannel) {
14098
- _context17.next = 14;
14066
+ _context15.next = 14;
14099
14067
  break;
14100
14068
  }
14101
- _context17.next = 14;
14069
+ _context15.next = 14;
14102
14070
  return effects.put(switchChannelActionAC(JSON.parse(JSON.stringify(activeChannel))));
14103
14071
  case 14:
14104
14072
  case "end":
14105
- return _context17.stop();
14073
+ return _context15.stop();
14106
14074
  }
14107
- }, _marked17);
14075
+ }, _marked15);
14108
14076
  }
14109
14077
  function leaveChannel(action) {
14110
14078
  var payload, channelId, channel, messageBuilder, messageToSend;
14111
- return _regeneratorRuntime().wrap(function leaveChannel$(_context18) {
14112
- while (1) switch (_context18.prev = _context18.next) {
14079
+ return _regeneratorRuntime().wrap(function leaveChannel$(_context16) {
14080
+ while (1) switch (_context16.prev = _context16.next) {
14113
14081
  case 0:
14114
- _context18.prev = 0;
14082
+ _context16.prev = 0;
14115
14083
  payload = action.payload;
14116
14084
  channelId = payload.channelId;
14117
- _context18.next = 5;
14085
+ _context16.next = 5;
14118
14086
  return effects.call(getChannelFromMap, channelId);
14119
14087
  case 5:
14120
- channel = _context18.sent;
14088
+ channel = _context16.sent;
14121
14089
  if (!channel) {
14122
14090
  channel = getChannelFromAllChannels(channelId);
14123
14091
  }
14124
14092
  if (!channel) {
14125
- _context18.next = 24;
14093
+ _context16.next = 24;
14126
14094
  break;
14127
14095
  }
14128
14096
  if (!(channel.type === DEFAULT_CHANNEL_TYPE.GROUP || channel.type === DEFAULT_CHANNEL_TYPE.PRIVATE)) {
14129
- _context18.next = 16;
14097
+ _context16.next = 16;
14130
14098
  break;
14131
14099
  }
14132
14100
  messageBuilder = channel.createMessageBuilder();
14133
14101
  messageBuilder.setBody('LG').setType('system').setDisplayCount(0).setSilent(true);
14134
14102
  messageToSend = messageBuilder.create();
14135
14103
  log.info('send message for left');
14136
- _context18.next = 16;
14104
+ _context16.next = 16;
14137
14105
  return effects.call(channel.sendMessage, messageToSend);
14138
14106
  case 16:
14139
14107
  log.info('leave');
14140
- _context18.next = 19;
14108
+ _context16.next = 19;
14141
14109
  return effects.call(channel.leave);
14142
14110
  case 19:
14143
- _context18.next = 21;
14111
+ _context16.next = 21;
14144
14112
  return effects.put(removeChannelAC(channelId));
14145
14113
  case 21:
14146
14114
  deleteChannelFromAllChannels(channelId);
14147
- _context18.next = 24;
14115
+ _context16.next = 24;
14148
14116
  return effects.put(removeChannelCachesAC(channelId));
14149
14117
  case 24:
14150
- _context18.next = 29;
14118
+ _context16.next = 29;
14151
14119
  break;
14152
14120
  case 26:
14153
- _context18.prev = 26;
14154
- _context18.t0 = _context18["catch"](0);
14155
- log.error('ERROR in leave channel - ', _context18.t0.message);
14121
+ _context16.prev = 26;
14122
+ _context16.t0 = _context16["catch"](0);
14123
+ log.error('ERROR in leave channel - ', _context16.t0.message);
14156
14124
  case 29:
14157
14125
  case "end":
14158
- return _context18.stop();
14126
+ return _context16.stop();
14159
14127
  }
14160
- }, _marked18, null, [[0, 26]]);
14128
+ }, _marked16, null, [[0, 26]]);
14161
14129
  }
14162
14130
  function deleteChannel(action) {
14163
14131
  var payload, channelId, channel;
14164
- return _regeneratorRuntime().wrap(function deleteChannel$(_context19) {
14165
- while (1) switch (_context19.prev = _context19.next) {
14132
+ return _regeneratorRuntime().wrap(function deleteChannel$(_context17) {
14133
+ while (1) switch (_context17.prev = _context17.next) {
14166
14134
  case 0:
14167
- _context19.prev = 0;
14135
+ _context17.prev = 0;
14168
14136
  payload = action.payload;
14169
14137
  channelId = payload.channelId;
14170
- _context19.next = 5;
14138
+ _context17.next = 5;
14171
14139
  return effects.call(getChannelFromMap, channelId);
14172
14140
  case 5:
14173
- channel = _context19.sent;
14141
+ channel = _context17.sent;
14174
14142
  if (!channel) {
14175
14143
  channel = getChannelFromAllChannels(channelId);
14176
14144
  }
14177
14145
  if (!channel) {
14178
- _context19.next = 16;
14146
+ _context17.next = 16;
14179
14147
  break;
14180
14148
  }
14181
- _context19.next = 10;
14149
+ _context17.next = 10;
14182
14150
  return effects.call(channel["delete"]);
14183
14151
  case 10:
14184
- _context19.next = 12;
14152
+ _context17.next = 12;
14185
14153
  return effects.put(setChannelToRemoveAC(channel));
14186
14154
  case 12:
14187
- _context19.next = 14;
14155
+ _context17.next = 14;
14188
14156
  return effects.put(removeChannelAC(channelId));
14189
14157
  case 14:
14190
- _context19.next = 16;
14158
+ _context17.next = 16;
14191
14159
  return effects.put(removeChannelCachesAC(channelId));
14192
14160
  case 16:
14193
- _context19.next = 21;
14161
+ _context17.next = 21;
14194
14162
  break;
14195
14163
  case 18:
14196
- _context19.prev = 18;
14197
- _context19.t0 = _context19["catch"](0);
14198
- log.error('ERROR in delete channel', _context19.t0);
14164
+ _context17.prev = 18;
14165
+ _context17.t0 = _context17["catch"](0);
14166
+ log.error('ERROR in delete channel', _context17.t0);
14199
14167
  case 21:
14200
14168
  case "end":
14201
- return _context19.stop();
14169
+ return _context17.stop();
14202
14170
  }
14203
- }, _marked19, null, [[0, 18]]);
14171
+ }, _marked17, null, [[0, 18]]);
14204
14172
  }
14205
14173
  function blockChannel(action) {
14206
14174
  var payload, channelId, channel;
14207
- return _regeneratorRuntime().wrap(function blockChannel$(_context20) {
14208
- while (1) switch (_context20.prev = _context20.next) {
14175
+ return _regeneratorRuntime().wrap(function blockChannel$(_context18) {
14176
+ while (1) switch (_context18.prev = _context18.next) {
14209
14177
  case 0:
14210
- _context20.prev = 0;
14178
+ _context18.prev = 0;
14211
14179
  payload = action.payload;
14212
14180
  channelId = payload.channelId;
14213
- _context20.next = 5;
14181
+ _context18.next = 5;
14214
14182
  return effects.call(getChannelFromMap, channelId);
14215
14183
  case 5:
14216
- channel = _context20.sent;
14184
+ channel = _context18.sent;
14217
14185
  if (!channel) {
14218
14186
  channel = getChannelFromAllChannels(channelId);
14219
14187
  }
14220
14188
  if (!channel) {
14221
- _context20.next = 14;
14189
+ _context18.next = 14;
14222
14190
  break;
14223
14191
  }
14224
- _context20.next = 10;
14192
+ _context18.next = 10;
14225
14193
  return effects.call(channel.block);
14226
14194
  case 10:
14227
- _context20.next = 12;
14195
+ _context18.next = 12;
14228
14196
  return effects.put(removeChannelAC(channelId));
14229
14197
  case 12:
14230
- _context20.next = 14;
14198
+ _context18.next = 14;
14231
14199
  return effects.put(removeChannelCachesAC(channelId));
14232
14200
  case 14:
14233
- _context20.next = 19;
14201
+ _context18.next = 19;
14234
14202
  break;
14235
14203
  case 16:
14236
- _context20.prev = 16;
14237
- _context20.t0 = _context20["catch"](0);
14238
- log.error('ERROR in block channel - ', _context20.t0.message);
14204
+ _context18.prev = 16;
14205
+ _context18.t0 = _context18["catch"](0);
14206
+ log.error('ERROR in block channel - ', _context18.t0.message);
14239
14207
  case 19:
14240
14208
  case "end":
14241
- return _context20.stop();
14209
+ return _context18.stop();
14242
14210
  }
14243
- }, _marked20, null, [[0, 16]]);
14211
+ }, _marked18, null, [[0, 16]]);
14244
14212
  }
14245
14213
  function updateChannel(action) {
14246
14214
  var payload, channelId, config, SceytChatClient, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata;
14247
- return _regeneratorRuntime().wrap(function updateChannel$(_context21) {
14248
- while (1) switch (_context21.prev = _context21.next) {
14215
+ return _regeneratorRuntime().wrap(function updateChannel$(_context19) {
14216
+ while (1) switch (_context19.prev = _context19.next) {
14249
14217
  case 0:
14250
- _context21.prev = 0;
14218
+ _context19.prev = 0;
14251
14219
  payload = action.payload;
14252
14220
  channelId = payload.channelId, config = payload.config;
14253
14221
  SceytChatClient = getClient();
14254
- _context21.next = 6;
14222
+ _context19.next = 6;
14255
14223
  return effects.call(getChannelFromMap, channelId);
14256
14224
  case 6:
14257
- channel = _context21.sent;
14225
+ channel = _context19.sent;
14258
14226
  if (!channel) {
14259
14227
  channel = getChannelFromAllChannels(channelId);
14260
14228
  }
@@ -14265,7 +14233,7 @@ function updateChannel(action) {
14265
14233
  avatarUrl: channel.avatarUrl
14266
14234
  };
14267
14235
  if (!config.avatar) {
14268
- _context21.next = 14;
14236
+ _context19.next = 14;
14269
14237
  break;
14270
14238
  }
14271
14239
  fileToUpload = {
@@ -14274,10 +14242,10 @@ function updateChannel(action) {
14274
14242
  log.info('upload percent - ', progressPercent);
14275
14243
  }
14276
14244
  };
14277
- _context21.next = 13;
14245
+ _context19.next = 13;
14278
14246
  return effects.call(SceytChatClient.uploadFile, fileToUpload);
14279
14247
  case 13:
14280
- paramsToUpdate.avatarUrl = _context21.sent;
14248
+ paramsToUpdate.avatarUrl = _context19.sent;
14281
14249
  case 14:
14282
14250
  if (config.subject) {
14283
14251
  paramsToUpdate.subject = config.subject;
@@ -14288,14 +14256,14 @@ function updateChannel(action) {
14288
14256
  if (config.avatarUrl === '') {
14289
14257
  paramsToUpdate.avatarUrl = '';
14290
14258
  }
14291
- _context21.next = 19;
14259
+ _context19.next = 19;
14292
14260
  return effects.call(channel.update, paramsToUpdate);
14293
14261
  case 19:
14294
- _yield$call5 = _context21.sent;
14262
+ _yield$call5 = _context19.sent;
14295
14263
  subject = _yield$call5.subject;
14296
14264
  avatarUrl = _yield$call5.avatarUrl;
14297
14265
  metadata = _yield$call5.metadata;
14298
- _context21.next = 25;
14266
+ _context19.next = 25;
14299
14267
  return effects.put(updateChannelDataAC(channelId, {
14300
14268
  subject: subject,
14301
14269
  avatarUrl: avatarUrl,
@@ -14307,30 +14275,30 @@ function updateChannel(action) {
14307
14275
  avatarUrl: avatarUrl,
14308
14276
  metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
14309
14277
  });
14310
- _context21.next = 31;
14278
+ _context19.next = 31;
14311
14279
  break;
14312
14280
  case 28:
14313
- _context21.prev = 28;
14314
- _context21.t0 = _context21["catch"](0);
14315
- log.error('ERROR in update channel', _context21.t0.message);
14281
+ _context19.prev = 28;
14282
+ _context19.t0 = _context19["catch"](0);
14283
+ log.error('ERROR in update channel', _context19.t0.message);
14316
14284
  case 31:
14317
14285
  case "end":
14318
- return _context21.stop();
14286
+ return _context19.stop();
14319
14287
  }
14320
- }, _marked21, null, [[0, 28]]);
14288
+ }, _marked19, null, [[0, 28]]);
14321
14289
  }
14322
14290
  function checkUsersStatus() {
14323
14291
  var SceytChatClient, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData;
14324
- return _regeneratorRuntime().wrap(function checkUsersStatus$(_context22) {
14325
- while (1) switch (_context22.prev = _context22.next) {
14292
+ return _regeneratorRuntime().wrap(function checkUsersStatus$(_context20) {
14293
+ while (1) switch (_context20.prev = _context20.next) {
14326
14294
  case 0:
14327
- _context22.prev = 0;
14295
+ _context20.prev = 0;
14328
14296
  SceytChatClient = getClient();
14329
14297
  usersForUpdate = Object.keys(usersMap);
14330
- _context22.next = 5;
14298
+ _context20.next = 5;
14331
14299
  return effects.call(SceytChatClient.getUsers, usersForUpdate);
14332
14300
  case 5:
14333
- updatedUsers = _context22.sent;
14301
+ updatedUsers = _context20.sent;
14334
14302
  usersToUpdateMap = {};
14335
14303
  update = false;
14336
14304
  updatedUsers.forEach(function (updatedUser) {
@@ -14341,112 +14309,112 @@ function checkUsersStatus() {
14341
14309
  }
14342
14310
  });
14343
14311
  if (!update) {
14344
- _context22.next = 17;
14312
+ _context20.next = 17;
14345
14313
  break;
14346
14314
  }
14347
14315
  updateData = JSON.parse(JSON.stringify(usersToUpdateMap));
14348
- _context22.next = 13;
14316
+ _context20.next = 13;
14349
14317
  return effects.put(updateMembersPresenceAC(updateData));
14350
14318
  case 13:
14351
- _context22.next = 15;
14319
+ _context20.next = 15;
14352
14320
  return effects.put(updateUserStatusOnMapAC(updateData));
14353
14321
  case 15:
14354
- _context22.next = 17;
14322
+ _context20.next = 17;
14355
14323
  return effects.put(updateUserStatusOnChannelAC(updateData));
14356
14324
  case 17:
14357
- _context22.next = 22;
14325
+ _context20.next = 22;
14358
14326
  break;
14359
14327
  case 19:
14360
- _context22.prev = 19;
14361
- _context22.t0 = _context22["catch"](0);
14362
- log.error('ERROR in check user status : ', _context22.t0.message);
14328
+ _context20.prev = 19;
14329
+ _context20.t0 = _context20["catch"](0);
14330
+ log.error('ERROR in check user status : ', _context20.t0.message);
14363
14331
  case 22:
14364
14332
  case "end":
14365
- return _context22.stop();
14333
+ return _context20.stop();
14366
14334
  }
14367
- }, _marked22, null, [[0, 19]]);
14335
+ }, _marked20, null, [[0, 19]]);
14368
14336
  }
14369
14337
  function sendTyping(action) {
14370
14338
  var state, activeChannelId, channel;
14371
- return _regeneratorRuntime().wrap(function sendTyping$(_context23) {
14372
- while (1) switch (_context23.prev = _context23.next) {
14339
+ return _regeneratorRuntime().wrap(function sendTyping$(_context21) {
14340
+ while (1) switch (_context21.prev = _context21.next) {
14373
14341
  case 0:
14374
14342
  state = action.payload.state;
14375
- _context23.next = 3;
14343
+ _context21.next = 3;
14376
14344
  return effects.call(getActiveChannelId);
14377
14345
  case 3:
14378
- activeChannelId = _context23.sent;
14379
- _context23.next = 6;
14346
+ activeChannelId = _context21.sent;
14347
+ _context21.next = 6;
14380
14348
  return effects.call(getChannelFromMap, activeChannelId);
14381
14349
  case 6:
14382
- channel = _context23.sent;
14383
- _context23.prev = 7;
14350
+ channel = _context21.sent;
14351
+ _context21.prev = 7;
14384
14352
  if (!channel) {
14385
- _context23.next = 16;
14353
+ _context21.next = 16;
14386
14354
  break;
14387
14355
  }
14388
14356
  if (!state) {
14389
- _context23.next = 14;
14357
+ _context21.next = 14;
14390
14358
  break;
14391
14359
  }
14392
- _context23.next = 12;
14360
+ _context21.next = 12;
14393
14361
  return effects.call(channel.startTyping);
14394
14362
  case 12:
14395
- _context23.next = 16;
14363
+ _context21.next = 16;
14396
14364
  break;
14397
14365
  case 14:
14398
- _context23.next = 16;
14366
+ _context21.next = 16;
14399
14367
  return effects.call(channel.stopTyping);
14400
14368
  case 16:
14401
- _context23.next = 21;
14369
+ _context21.next = 21;
14402
14370
  break;
14403
14371
  case 18:
14404
- _context23.prev = 18;
14405
- _context23.t0 = _context23["catch"](7);
14406
- log.error('ERROR in send typing', _context23.t0);
14372
+ _context21.prev = 18;
14373
+ _context21.t0 = _context21["catch"](7);
14374
+ log.error('ERROR in send typing', _context21.t0);
14407
14375
  case 21:
14408
14376
  case "end":
14409
- return _context23.stop();
14377
+ return _context21.stop();
14410
14378
  }
14411
- }, _marked23, null, [[7, 18]]);
14379
+ }, _marked21, null, [[7, 18]]);
14412
14380
  }
14413
14381
  function clearHistory(action) {
14414
14382
  var payload, channelId, channel, activeChannelId, groupName;
14415
- return _regeneratorRuntime().wrap(function clearHistory$(_context24) {
14416
- while (1) switch (_context24.prev = _context24.next) {
14383
+ return _regeneratorRuntime().wrap(function clearHistory$(_context22) {
14384
+ while (1) switch (_context22.prev = _context22.next) {
14417
14385
  case 0:
14418
- _context24.prev = 0;
14386
+ _context22.prev = 0;
14419
14387
  payload = action.payload;
14420
14388
  channelId = payload.channelId;
14421
- _context24.next = 5;
14389
+ _context22.next = 5;
14422
14390
  return effects.call(getChannelFromMap, channelId);
14423
14391
  case 5:
14424
- channel = _context24.sent;
14392
+ channel = _context22.sent;
14425
14393
  if (!channel) {
14426
14394
  channel = getChannelFromAllChannels(channelId);
14427
14395
  }
14428
- _context24.next = 9;
14396
+ _context22.next = 9;
14429
14397
  return effects.call(getActiveChannelId);
14430
14398
  case 9:
14431
- activeChannelId = _context24.sent;
14399
+ activeChannelId = _context22.sent;
14432
14400
  if (!channel) {
14433
- _context24.next = 25;
14401
+ _context22.next = 25;
14434
14402
  break;
14435
14403
  }
14436
- _context24.next = 13;
14404
+ _context22.next = 13;
14437
14405
  return effects.call(channel.deleteAllMessages);
14438
14406
  case 13:
14439
- _context24.next = 15;
14407
+ _context22.next = 15;
14440
14408
  return effects.put(clearMessagesAC());
14441
14409
  case 15:
14442
14410
  removeMessagesFromMap(channelId);
14443
14411
  if (channelId === activeChannelId) {
14444
14412
  removeAllMessages();
14445
14413
  }
14446
- _context24.next = 19;
14414
+ _context22.next = 19;
14447
14415
  return effects.put(clearSelectedMessagesAC());
14448
14416
  case 19:
14449
- _context24.next = 21;
14417
+ _context22.next = 21;
14450
14418
  return effects.put(updateChannelDataAC(channel.id, {
14451
14419
  lastMessage: null,
14452
14420
  newMessageCount: 0,
@@ -14459,65 +14427,65 @@ function clearHistory(action) {
14459
14427
  newMentionCount: 0
14460
14428
  });
14461
14429
  groupName = getChannelGroupName(channel);
14462
- _context24.next = 25;
14430
+ _context22.next = 25;
14463
14431
  return effects.put(updateSearchedChannelDataAC(channel.id, {
14464
14432
  lastMessage: null,
14465
14433
  newMessageCount: 0,
14466
14434
  newMentionCount: 0
14467
14435
  }, groupName));
14468
14436
  case 25:
14469
- _context24.next = 30;
14437
+ _context22.next = 30;
14470
14438
  break;
14471
14439
  case 27:
14472
- _context24.prev = 27;
14473
- _context24.t0 = _context24["catch"](0);
14474
- log.error('ERROR in clear history', _context24.t0);
14440
+ _context22.prev = 27;
14441
+ _context22.t0 = _context22["catch"](0);
14442
+ log.error('ERROR in clear history', _context22.t0);
14475
14443
  case 30:
14476
14444
  case "end":
14477
- return _context24.stop();
14445
+ return _context22.stop();
14478
14446
  }
14479
- }, _marked24, null, [[0, 27]]);
14447
+ }, _marked22, null, [[0, 27]]);
14480
14448
  }
14481
14449
  function deleteAllMessages(action) {
14482
14450
  var payload, channelId, channel, activeChannelId, groupName;
14483
- return _regeneratorRuntime().wrap(function deleteAllMessages$(_context25) {
14484
- while (1) switch (_context25.prev = _context25.next) {
14451
+ return _regeneratorRuntime().wrap(function deleteAllMessages$(_context23) {
14452
+ while (1) switch (_context23.prev = _context23.next) {
14485
14453
  case 0:
14486
- _context25.prev = 0;
14454
+ _context23.prev = 0;
14487
14455
  payload = action.payload;
14488
14456
  channelId = payload.channelId;
14489
- _context25.next = 5;
14457
+ _context23.next = 5;
14490
14458
  return effects.call(getChannelFromMap, channelId);
14491
14459
  case 5:
14492
- channel = _context25.sent;
14460
+ channel = _context23.sent;
14493
14461
  if (!channel) {
14494
14462
  channel = getChannelFromAllChannels(channelId);
14495
14463
  }
14496
- _context25.next = 9;
14464
+ _context23.next = 9;
14497
14465
  return effects.call(getActiveChannelId);
14498
14466
  case 9:
14499
- activeChannelId = _context25.sent;
14467
+ activeChannelId = _context23.sent;
14500
14468
  if (!channel) {
14501
- _context25.next = 26;
14469
+ _context23.next = 26;
14502
14470
  break;
14503
14471
  }
14504
- _context25.next = 13;
14472
+ _context23.next = 13;
14505
14473
  return effects.call(channel.deleteAllMessages, true);
14506
14474
  case 13:
14507
14475
  removeMessagesFromMap(channelId);
14508
14476
  if (!(channelId === activeChannelId)) {
14509
- _context25.next = 18;
14477
+ _context23.next = 18;
14510
14478
  break;
14511
14479
  }
14512
- _context25.next = 17;
14480
+ _context23.next = 17;
14513
14481
  return effects.put(clearMessagesAC());
14514
14482
  case 17:
14515
14483
  removeAllMessages();
14516
14484
  case 18:
14517
- _context25.next = 20;
14485
+ _context23.next = 20;
14518
14486
  return effects.put(clearSelectedMessagesAC());
14519
14487
  case 20:
14520
- _context25.next = 22;
14488
+ _context23.next = 22;
14521
14489
  return effects.put(updateChannelDataAC(channel.id, {
14522
14490
  lastMessage: null,
14523
14491
  newMessageCount: 0,
@@ -14530,180 +14498,180 @@ function deleteAllMessages(action) {
14530
14498
  newMentionCount: 0
14531
14499
  });
14532
14500
  groupName = getChannelGroupName(channel);
14533
- _context25.next = 26;
14501
+ _context23.next = 26;
14534
14502
  return effects.put(updateSearchedChannelDataAC(channel.id, {
14535
14503
  lastMessage: null,
14536
14504
  newMessageCount: 0,
14537
14505
  newMentionCount: 0
14538
14506
  }, groupName));
14539
14507
  case 26:
14540
- _context25.next = 31;
14508
+ _context23.next = 31;
14541
14509
  break;
14542
14510
  case 28:
14543
- _context25.prev = 28;
14544
- _context25.t0 = _context25["catch"](0);
14545
- log.error('ERROR in clear history', _context25.t0);
14511
+ _context23.prev = 28;
14512
+ _context23.t0 = _context23["catch"](0);
14513
+ log.error('ERROR in clear history', _context23.t0);
14546
14514
  case 31:
14547
14515
  case "end":
14548
- return _context25.stop();
14516
+ return _context23.stop();
14549
14517
  }
14550
- }, _marked25, null, [[0, 28]]);
14518
+ }, _marked23, null, [[0, 28]]);
14551
14519
  }
14552
14520
  function joinChannel(action) {
14553
14521
  var payload, channelId, SceytChatClient, channel, joinedChannel;
14554
- return _regeneratorRuntime().wrap(function joinChannel$(_context26) {
14555
- while (1) switch (_context26.prev = _context26.next) {
14522
+ return _regeneratorRuntime().wrap(function joinChannel$(_context24) {
14523
+ while (1) switch (_context24.prev = _context24.next) {
14556
14524
  case 0:
14557
- _context26.prev = 0;
14525
+ _context24.prev = 0;
14558
14526
  payload = action.payload;
14559
14527
  channelId = payload.channelId;
14560
14528
  SceytChatClient = getClient();
14561
- _context26.next = 6;
14529
+ _context24.next = 6;
14562
14530
  return effects.call(getChannelFromMap, channelId);
14563
14531
  case 6:
14564
- channel = _context26.sent;
14532
+ channel = _context24.sent;
14565
14533
  if (!channel) {
14566
14534
  channel = getChannelFromAllChannels(channelId);
14567
14535
  }
14568
14536
  if (channel) {
14569
- _context26.next = 12;
14537
+ _context24.next = 12;
14570
14538
  break;
14571
14539
  }
14572
- _context26.next = 11;
14540
+ _context24.next = 11;
14573
14541
  return effects.call(SceytChatClient.getChannel, channelId);
14574
14542
  case 11:
14575
- channel = _context26.sent;
14543
+ channel = _context24.sent;
14576
14544
  case 12:
14577
- _context26.next = 14;
14545
+ _context24.next = 14;
14578
14546
  return effects.call(channel.join);
14579
14547
  case 14:
14580
- joinedChannel = _context26.sent;
14581
- _context26.next = 17;
14548
+ joinedChannel = _context24.sent;
14549
+ _context24.next = 17;
14582
14550
  return effects.put(setCloseSearchChannelsAC(true));
14583
14551
  case 17:
14584
- _context26.next = 19;
14552
+ _context24.next = 19;
14585
14553
  return effects.put(setChannelToAddAC(JSON.parse(JSON.stringify(joinedChannel))));
14586
14554
  case 19:
14587
- _context26.next = 21;
14555
+ _context24.next = 21;
14588
14556
  return effects.put(switchChannelActionAC(JSON.parse(JSON.stringify(joinedChannel))));
14589
14557
  case 21:
14590
14558
  addChannelToAllChannels(joinedChannel);
14591
- _context26.next = 24;
14559
+ _context24.next = 24;
14592
14560
  return effects.call(setActiveChannelId, joinedChannel.id);
14593
14561
  case 24:
14594
- _context26.next = 29;
14562
+ _context24.next = 29;
14595
14563
  break;
14596
14564
  case 26:
14597
- _context26.prev = 26;
14598
- _context26.t0 = _context26["catch"](0);
14599
- log.error(_context26.t0, 'Error in join to channel');
14565
+ _context24.prev = 26;
14566
+ _context24.t0 = _context24["catch"](0);
14567
+ log.error(_context24.t0, 'Error in join to channel');
14600
14568
  case 29:
14601
14569
  case "end":
14602
- return _context26.stop();
14570
+ return _context24.stop();
14603
14571
  }
14604
- }, _marked26, null, [[0, 26]]);
14572
+ }, _marked24, null, [[0, 26]]);
14605
14573
  }
14606
14574
  function watchForChannelEvents() {
14607
- return _regeneratorRuntime().wrap(function watchForChannelEvents$(_context27) {
14608
- while (1) switch (_context27.prev = _context27.next) {
14575
+ return _regeneratorRuntime().wrap(function watchForChannelEvents$(_context25) {
14576
+ while (1) switch (_context25.prev = _context25.next) {
14609
14577
  case 0:
14610
- _context27.next = 2;
14578
+ _context25.next = 2;
14611
14579
  return effects.call(watchForEvents);
14612
14580
  case 2:
14613
14581
  case "end":
14614
- return _context27.stop();
14582
+ return _context25.stop();
14615
14583
  }
14616
- }, _marked27);
14584
+ }, _marked25);
14617
14585
  }
14618
14586
  function ChannelsSaga() {
14619
- return _regeneratorRuntime().wrap(function ChannelsSaga$(_context28) {
14620
- while (1) switch (_context28.prev = _context28.next) {
14587
+ return _regeneratorRuntime().wrap(function ChannelsSaga$(_context26) {
14588
+ while (1) switch (_context26.prev = _context26.next) {
14621
14589
  case 0:
14622
- _context28.next = 2;
14590
+ _context26.next = 2;
14623
14591
  return effects.takeLatest(CREATE_CHANNEL, createChannel);
14624
14592
  case 2:
14625
- _context28.next = 4;
14593
+ _context26.next = 4;
14626
14594
  return effects.takeLatest(GET_CHANNELS, getChannels);
14627
14595
  case 4:
14628
- _context28.next = 6;
14596
+ _context26.next = 6;
14629
14597
  return effects.takeLatest(SEARCH_CHANNELS, searchChannels);
14630
14598
  case 6:
14631
- _context28.next = 8;
14599
+ _context26.next = 8;
14632
14600
  return effects.takeLatest(GET_CHANNELS_FOR_FORWARD, getChannelsForForward);
14633
14601
  case 8:
14634
- _context28.next = 10;
14602
+ _context26.next = 10;
14635
14603
  return effects.takeLatest(SEARCH_CHANNELS_FOR_FORWARD, searchChannelsForForward);
14636
14604
  case 10:
14637
- _context28.next = 12;
14605
+ _context26.next = 12;
14638
14606
  return effects.takeLatest(LOAD_MORE_CHANNEL, channelsLoadMore);
14639
14607
  case 12:
14640
- _context28.next = 14;
14608
+ _context26.next = 14;
14641
14609
  return effects.takeLatest(LOAD_MORE_CHANNELS_FOR_FORWARD, channelsForForwardLoadMore);
14642
14610
  case 14:
14643
- _context28.next = 16;
14611
+ _context26.next = 16;
14644
14612
  return effects.takeEvery(SWITCH_CHANNEL, switchChannel);
14645
14613
  case 16:
14646
- _context28.next = 18;
14614
+ _context26.next = 18;
14647
14615
  return effects.takeLatest(LEAVE_CHANNEL, leaveChannel);
14648
14616
  case 18:
14649
- _context28.next = 20;
14617
+ _context26.next = 20;
14650
14618
  return effects.takeLatest(DELETE_CHANNEL, deleteChannel);
14651
14619
  case 20:
14652
- _context28.next = 22;
14620
+ _context26.next = 22;
14653
14621
  return effects.takeLatest(BLOCK_CHANNEL, blockChannel);
14654
14622
  case 22:
14655
- _context28.next = 24;
14623
+ _context26.next = 24;
14656
14624
  return effects.takeLatest(UPDATE_CHANNEL, updateChannel);
14657
14625
  case 24:
14658
- _context28.next = 26;
14626
+ _context26.next = 26;
14659
14627
  return effects.takeEvery(MARK_MESSAGES_AS_READ, markMessagesRead);
14660
14628
  case 26:
14661
- _context28.next = 28;
14629
+ _context26.next = 28;
14662
14630
  return effects.takeLatest(MARK_MESSAGES_AS_DELIVERED, markMessagesDelivered);
14663
14631
  case 28:
14664
- _context28.next = 30;
14632
+ _context26.next = 30;
14665
14633
  return effects.takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
14666
14634
  case 30:
14667
- _context28.next = 32;
14635
+ _context26.next = 32;
14668
14636
  return effects.takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
14669
14637
  case 32:
14670
- _context28.next = 34;
14638
+ _context26.next = 34;
14671
14639
  return effects.takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
14672
14640
  case 34:
14673
- _context28.next = 36;
14641
+ _context26.next = 36;
14674
14642
  return effects.takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
14675
14643
  case 36:
14676
- _context28.next = 38;
14644
+ _context26.next = 38;
14677
14645
  return effects.takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
14678
14646
  case 38:
14679
- _context28.next = 40;
14647
+ _context26.next = 40;
14680
14648
  return effects.takeLatest(CHECK_USER_STATUS, checkUsersStatus);
14681
14649
  case 40:
14682
- _context28.next = 42;
14650
+ _context26.next = 42;
14683
14651
  return effects.takeLatest(SEND_TYPING, sendTyping);
14684
14652
  case 42:
14685
- _context28.next = 44;
14653
+ _context26.next = 44;
14686
14654
  return effects.takeLatest(PIN_CHANNEL, pinChannel);
14687
14655
  case 44:
14688
- _context28.next = 46;
14656
+ _context26.next = 46;
14689
14657
  return effects.takeLatest(UNPIN_CHANNEL, unpinChannel);
14690
14658
  case 46:
14691
- _context28.next = 48;
14659
+ _context26.next = 48;
14692
14660
  return effects.takeLatest(CLEAR_HISTORY, clearHistory);
14693
14661
  case 48:
14694
- _context28.next = 50;
14662
+ _context26.next = 50;
14695
14663
  return effects.takeLatest(JOIN_TO_CHANNEL, joinChannel);
14696
14664
  case 50:
14697
- _context28.next = 52;
14665
+ _context26.next = 52;
14698
14666
  return effects.takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
14699
14667
  case 52:
14700
- _context28.next = 54;
14668
+ _context26.next = 54;
14701
14669
  return effects.takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
14702
14670
  case 54:
14703
14671
  case "end":
14704
- return _context28.stop();
14672
+ return _context26.stop();
14705
14673
  }
14706
- }, _marked28);
14674
+ }, _marked26);
14707
14675
  }
14708
14676
 
14709
14677
  function rgbaToThumbHash(w, h, rgba) {
@@ -15219,14 +15187,14 @@ var _marked$2 = /*#__PURE__*/_regeneratorRuntime().mark(sendMessage),
15219
15187
  _marked7$1 = /*#__PURE__*/_regeneratorRuntime().mark(getMessagesQuery),
15220
15188
  _marked8$1 = /*#__PURE__*/_regeneratorRuntime().mark(loadMoreMessages),
15221
15189
  _marked9$1 = /*#__PURE__*/_regeneratorRuntime().mark(addReaction),
15222
- _marked10$1 = /*#__PURE__*/_regeneratorRuntime().mark(deleteReaction),
15223
- _marked11$1 = /*#__PURE__*/_regeneratorRuntime().mark(getReactions),
15224
- _marked12$1 = /*#__PURE__*/_regeneratorRuntime().mark(loadMoreReactions),
15225
- _marked13$1 = /*#__PURE__*/_regeneratorRuntime().mark(getMessageAttachments),
15226
- _marked14$1 = /*#__PURE__*/_regeneratorRuntime().mark(loadMoreMessageAttachments),
15227
- _marked15$1 = /*#__PURE__*/_regeneratorRuntime().mark(pauseAttachmentUploading),
15228
- _marked16$1 = /*#__PURE__*/_regeneratorRuntime().mark(resumeAttachmentUploading),
15229
- _marked17$1 = /*#__PURE__*/_regeneratorRuntime().mark(MessageSaga);
15190
+ _marked0$1 = /*#__PURE__*/_regeneratorRuntime().mark(deleteReaction),
15191
+ _marked1$1 = /*#__PURE__*/_regeneratorRuntime().mark(getReactions),
15192
+ _marked10$1 = /*#__PURE__*/_regeneratorRuntime().mark(loadMoreReactions),
15193
+ _marked11$1 = /*#__PURE__*/_regeneratorRuntime().mark(getMessageAttachments),
15194
+ _marked12$1 = /*#__PURE__*/_regeneratorRuntime().mark(loadMoreMessageAttachments),
15195
+ _marked13$1 = /*#__PURE__*/_regeneratorRuntime().mark(pauseAttachmentUploading),
15196
+ _marked14$1 = /*#__PURE__*/_regeneratorRuntime().mark(resumeAttachmentUploading),
15197
+ _marked15$1 = /*#__PURE__*/_regeneratorRuntime().mark(MessageSaga);
15230
15198
  var handleUploadAttachments = function handleUploadAttachments(attachments, message, channel) {
15231
15199
  try {
15232
15200
  return Promise.resolve(Promise.all(attachments.map(function (attachment) {
@@ -16192,7 +16160,7 @@ function forwardMessage(action) {
16192
16160
  }, _marked3$1, null, [[0, 73]]);
16193
16161
  }
16194
16162
  function resendMessage(action) {
16195
- var payload, message, connectionState, channelId, channel, customUploader, attachmentCompilation, messageAttachment, messageCopy, handleUploadProgress, uri, filePath, handleUpdateLocalPath, pendingAttachment, _thumbnailMetas, fileSize, meta, attachmentMeta, attachmentBuilder, attachmentToSend, messageResponse, messageUpdateData, fileType, messageToUpdate, _messageCopy3, _messageResponse, _messageUpdateData, activeChannelId, _messageToUpdate;
16163
+ var payload, message, connectionState, channelId, channel, customUploader, attachmentCompilation, messageAttachment, messageCopy, handleUploadProgress, uri, filePath, handleUpdateLocalPath, pendingAttachment, thumbnailMetas, fileSize, meta, attachmentMeta, attachmentBuilder, attachmentToSend, messageResponse, messageUpdateData, fileType, messageToUpdate, _messageCopy3, _messageResponse, _messageUpdateData, activeChannelId, _messageToUpdate;
16196
16164
  return _regeneratorRuntime().wrap(function resendMessage$(_context6) {
16197
16165
  while (1) switch (_context6.prev = _context6.next) {
16198
16166
  case 0:
@@ -16263,7 +16231,7 @@ function resendMessage(action) {
16263
16231
  _context6.prev = 29;
16264
16232
  handleUpdateLocalPath = function handleUpdateLocalPath(updatedLink) {
16265
16233
  filePath = updatedLink;
16266
- _thumbnailMetas = getVideoThumb(messageAttachment.tid);
16234
+ thumbnailMetas = getVideoThumb(messageAttachment.tid);
16267
16235
  messageCopy.attachments[0] = _extends({}, messageCopy.attachments[0], {
16268
16236
  attachmentUrl: updatedLink
16269
16237
  });
@@ -16301,7 +16269,7 @@ function resendMessage(action) {
16301
16269
  return effects.put(updateAttachmentUploadingStateAC(UPLOAD_STATE.SUCCESS, messageAttachment.tid));
16302
16270
  case 45:
16303
16271
  delete messageCopy.createdAt;
16304
- _thumbnailMetas = {};
16272
+ thumbnailMetas = {};
16305
16273
  fileSize = messageAttachment.cachedUrl ? messageAttachment.size : pendingAttachment.file.size;
16306
16274
  log.info('uri ... ', uri);
16307
16275
  if (!(!messageAttachment.cachedUrl && messageAttachment.url.type.split('/')[0] === 'image')) {
@@ -16315,7 +16283,7 @@ function resendMessage(action) {
16315
16283
  _context6.next = 55;
16316
16284
  return effects.call(createImageThumbnail, null, filePath, messageAttachment.type === 'file' ? 50 : undefined, messageAttachment.type === 'file' ? 50 : undefined);
16317
16285
  case 55:
16318
- _thumbnailMetas = _context6.sent;
16286
+ thumbnailMetas = _context6.sent;
16319
16287
  _context6.next = 64;
16320
16288
  break;
16321
16289
  case 58:
@@ -16331,7 +16299,7 @@ function resendMessage(action) {
16331
16299
  return effects.call(getFrame, filePath);
16332
16300
  case 62:
16333
16301
  meta = _context6.sent;
16334
- _thumbnailMetas = {
16302
+ thumbnailMetas = {
16335
16303
  thumbnail: meta.thumb,
16336
16304
  imageWidth: meta.width,
16337
16305
  imageHeight: meta.height,
@@ -16341,12 +16309,12 @@ function resendMessage(action) {
16341
16309
  if (messageAttachment.cachedUrl) {
16342
16310
  attachmentMeta = messageAttachment.metadata;
16343
16311
  } else {
16344
- attachmentMeta = JSON.stringify(_extends({}, messageAttachment.metadata ? typeof messageAttachment.metadata === 'string' ? JSON.parse(messageAttachment.metadata) : messageAttachment.metadata : {}, _thumbnailMetas && _thumbnailMetas.thumbnail && _extends({
16345
- tmb: _thumbnailMetas.thumbnail,
16346
- szw: _thumbnailMetas.imageWidth,
16347
- szh: _thumbnailMetas.imageHeight
16348
- }, _thumbnailMetas.duration ? {
16349
- dur: _thumbnailMetas.duration
16312
+ attachmentMeta = JSON.stringify(_extends({}, messageAttachment.metadata ? typeof messageAttachment.metadata === 'string' ? JSON.parse(messageAttachment.metadata) : messageAttachment.metadata : {}, thumbnailMetas && thumbnailMetas.thumbnail && _extends({
16313
+ tmb: thumbnailMetas.thumbnail,
16314
+ szw: thumbnailMetas.imageWidth,
16315
+ szh: thumbnailMetas.imageHeight
16316
+ }, thumbnailMetas.duration ? {
16317
+ dur: thumbnailMetas.duration
16350
16318
  } : {})));
16351
16319
  }
16352
16320
  log.info('attachmentMeta ... ', attachmentMeta);
@@ -16968,22 +16936,22 @@ function getMessagesQuery(action) {
16968
16936
  }
16969
16937
  function loadMoreMessages(action) {
16970
16938
  var payload, limit, direction, channelId, messageId, hasNext, SceytChatClient, messageQueryBuilder, messageQuery, result;
16971
- return _regeneratorRuntime().wrap(function loadMoreMessages$(_context10) {
16972
- while (1) switch (_context10.prev = _context10.next) {
16939
+ return _regeneratorRuntime().wrap(function loadMoreMessages$(_context0) {
16940
+ while (1) switch (_context0.prev = _context0.next) {
16973
16941
  case 0:
16974
- _context10.prev = 0;
16942
+ _context0.prev = 0;
16975
16943
  payload = action.payload;
16976
16944
  limit = payload.limit, direction = payload.direction, channelId = payload.channelId, messageId = payload.messageId, hasNext = payload.hasNext;
16977
16945
  log.info('loadMoreMessages .. .. ', payload);
16978
16946
  SceytChatClient = getClient();
16979
16947
  messageQueryBuilder = new SceytChatClient.MessageListQueryBuilder(channelId);
16980
16948
  messageQueryBuilder.reverse(true);
16981
- _context10.next = 9;
16949
+ _context0.next = 9;
16982
16950
  return effects.call(messageQueryBuilder.build);
16983
16951
  case 9:
16984
- messageQuery = _context10.sent;
16952
+ messageQuery = _context0.sent;
16985
16953
  messageQuery.limit = limit || 5;
16986
- _context10.next = 13;
16954
+ _context0.next = 13;
16987
16955
  return effects.put(setMessagesLoadingStateAC(LOADING_STATE.LOADING));
16988
16956
  case 13:
16989
16957
  result = {
@@ -16991,117 +16959,117 @@ function loadMoreMessages(action) {
16991
16959
  hasNext: false
16992
16960
  };
16993
16961
  if (!(direction === MESSAGE_LOAD_DIRECTION.PREV)) {
16994
- _context10.next = 28;
16962
+ _context0.next = 28;
16995
16963
  break;
16996
16964
  }
16997
16965
  if (!getHasPrevCached()) {
16998
- _context10.next = 19;
16966
+ _context0.next = 19;
16999
16967
  break;
17000
16968
  }
17001
16969
  result.messages = getFromAllMessagesByMessageId(messageId, MESSAGE_LOAD_DIRECTION.PREV);
17002
- _context10.next = 26;
16970
+ _context0.next = 26;
17003
16971
  break;
17004
16972
  case 19:
17005
16973
  if (!hasNext) {
17006
- _context10.next = 26;
16974
+ _context0.next = 26;
17007
16975
  break;
17008
16976
  }
17009
- _context10.next = 22;
16977
+ _context0.next = 22;
17010
16978
  return effects.call(messageQuery.loadPreviousMessageId, messageId);
17011
16979
  case 22:
17012
- result = _context10.sent;
16980
+ result = _context0.sent;
17013
16981
  if (result.messages.length) {
17014
16982
  addAllMessages(result.messages, MESSAGE_LOAD_DIRECTION.PREV);
17015
16983
  }
17016
- _context10.next = 26;
16984
+ _context0.next = 26;
17017
16985
  return effects.put(setMessagesHasPrevAC(result.hasNext));
17018
16986
  case 26:
17019
- _context10.next = 44;
16987
+ _context0.next = 44;
17020
16988
  break;
17021
16989
  case 28:
17022
16990
  if (!getHasNextCached()) {
17023
- _context10.next = 32;
16991
+ _context0.next = 32;
17024
16992
  break;
17025
16993
  }
17026
16994
  result.messages = getFromAllMessagesByMessageId(messageId, MESSAGE_LOAD_DIRECTION.NEXT);
17027
- _context10.next = 42;
16995
+ _context0.next = 42;
17028
16996
  break;
17029
16997
  case 32:
17030
16998
  if (!hasNext) {
17031
- _context10.next = 42;
16999
+ _context0.next = 42;
17032
17000
  break;
17033
17001
  }
17034
17002
  log.info('saga load next from server ... ', messageId);
17035
17003
  messageQuery.reverse = false;
17036
- _context10.next = 37;
17004
+ _context0.next = 37;
17037
17005
  return effects.call(messageQuery.loadNextMessageId, messageId);
17038
17006
  case 37:
17039
- result = _context10.sent;
17007
+ result = _context0.sent;
17040
17008
  log.info('result from server next ... ', result);
17041
17009
  if (result.messages.length) {
17042
17010
  addAllMessages(result.messages, MESSAGE_LOAD_DIRECTION.NEXT);
17043
17011
  }
17044
- _context10.next = 42;
17012
+ _context0.next = 42;
17045
17013
  return effects.put(setMessagesHasNextAC(result.hasNext));
17046
17014
  case 42:
17047
- _context10.next = 44;
17015
+ _context0.next = 44;
17048
17016
  return effects.put(setMessagesHasPrevAC(true));
17049
17017
  case 44:
17050
17018
  if (!(result.messages && result.messages.length && result.messages.length > 0)) {
17051
- _context10.next = 49;
17019
+ _context0.next = 49;
17052
17020
  break;
17053
17021
  }
17054
- _context10.next = 47;
17022
+ _context0.next = 47;
17055
17023
  return effects.put(addMessagesAC(JSON.parse(JSON.stringify(result.messages)), direction));
17056
17024
  case 47:
17057
- _context10.next = 51;
17025
+ _context0.next = 51;
17058
17026
  break;
17059
17027
  case 49:
17060
- _context10.next = 51;
17028
+ _context0.next = 51;
17061
17029
  return effects.put(addMessagesAC([], direction));
17062
17030
  case 51:
17063
- _context10.next = 53;
17031
+ _context0.next = 53;
17064
17032
  return effects.put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
17065
17033
  case 53:
17066
- _context10.next = 58;
17034
+ _context0.next = 58;
17067
17035
  break;
17068
17036
  case 55:
17069
- _context10.prev = 55;
17070
- _context10.t0 = _context10["catch"](0);
17071
- log.error('error in load more messages', _context10.t0);
17037
+ _context0.prev = 55;
17038
+ _context0.t0 = _context0["catch"](0);
17039
+ log.error('error in load more messages', _context0.t0);
17072
17040
  case 58:
17073
17041
  case "end":
17074
- return _context10.stop();
17042
+ return _context0.stop();
17075
17043
  }
17076
17044
  }, _marked8$1, null, [[0, 55]]);
17077
17045
  }
17078
17046
  function addReaction(action) {
17079
17047
  var payload, channelId, messageId, key, score, reason, enforceUnique, user, channel, _yield$call, message, reaction, channelUpdateParam;
17080
- return _regeneratorRuntime().wrap(function addReaction$(_context11) {
17081
- while (1) switch (_context11.prev = _context11.next) {
17048
+ return _regeneratorRuntime().wrap(function addReaction$(_context1) {
17049
+ while (1) switch (_context1.prev = _context1.next) {
17082
17050
  case 0:
17083
- _context11.prev = 0;
17051
+ _context1.prev = 0;
17084
17052
  payload = action.payload;
17085
17053
  channelId = payload.channelId, messageId = payload.messageId, key = payload.key, score = payload.score, reason = payload.reason, enforceUnique = payload.enforceUnique;
17086
17054
  user = getClient().user;
17087
- _context11.next = 6;
17055
+ _context1.next = 6;
17088
17056
  return effects.call(getChannelFromMap, channelId);
17089
17057
  case 6:
17090
- channel = _context11.sent;
17058
+ channel = _context1.sent;
17091
17059
  if (!channel) {
17092
17060
  channel = getChannelFromAllChannels(channelId);
17093
17061
  if (channel) {
17094
17062
  setChannelInMap(channel);
17095
17063
  }
17096
17064
  }
17097
- _context11.next = 10;
17065
+ _context1.next = 10;
17098
17066
  return effects.call(channel.addReaction, messageId, key, score, reason, enforceUnique);
17099
17067
  case 10:
17100
- _yield$call = _context11.sent;
17068
+ _yield$call = _context1.sent;
17101
17069
  message = _yield$call.message;
17102
17070
  reaction = _yield$call.reaction;
17103
17071
  if (!(user.id === message.user.id)) {
17104
- _context11.next = 18;
17072
+ _context1.next = 18;
17105
17073
  break;
17106
17074
  }
17107
17075
  channelUpdateParam = {
@@ -17109,102 +17077,102 @@ function addReaction(action) {
17109
17077
  lastReactedMessage: message,
17110
17078
  newReactions: [reaction]
17111
17079
  };
17112
- _context11.next = 17;
17080
+ _context1.next = 17;
17113
17081
  return effects.put(updateChannelDataAC(channel.id, channelUpdateParam));
17114
17082
  case 17:
17115
17083
  updateChannelOnAllChannels(channel.id, channelUpdateParam);
17116
17084
  case 18:
17117
- _context11.next = 20;
17085
+ _context1.next = 20;
17118
17086
  return effects.put(addChannelAC(JSON.parse(JSON.stringify(channel))));
17119
17087
  case 20:
17120
- _context11.next = 22;
17088
+ _context1.next = 22;
17121
17089
  return effects.put(addReactionToListAC(reaction));
17122
17090
  case 22:
17123
- _context11.next = 24;
17091
+ _context1.next = 24;
17124
17092
  return effects.put(addReactionToMessageAC(message, reaction, true));
17125
17093
  case 24:
17126
17094
  addReactionToMessageOnMap(channelId, message, reaction, true);
17127
17095
  addReactionOnAllMessages(message, reaction, true);
17128
- _context11.next = 31;
17096
+ _context1.next = 31;
17129
17097
  break;
17130
17098
  case 28:
17131
- _context11.prev = 28;
17132
- _context11.t0 = _context11["catch"](0);
17133
- log.error('ERROR in add reaction', _context11.t0.message);
17099
+ _context1.prev = 28;
17100
+ _context1.t0 = _context1["catch"](0);
17101
+ log.error('ERROR in add reaction', _context1.t0.message);
17134
17102
  case 31:
17135
17103
  case "end":
17136
- return _context11.stop();
17104
+ return _context1.stop();
17137
17105
  }
17138
17106
  }, _marked9$1, null, [[0, 28]]);
17139
17107
  }
17140
17108
  function deleteReaction(action) {
17141
17109
  var payload, channelId, messageId, key, isLastReaction, channel, _yield$call2, message, reaction, channelUpdateParam;
17142
- return _regeneratorRuntime().wrap(function deleteReaction$(_context12) {
17143
- while (1) switch (_context12.prev = _context12.next) {
17110
+ return _regeneratorRuntime().wrap(function deleteReaction$(_context10) {
17111
+ while (1) switch (_context10.prev = _context10.next) {
17144
17112
  case 0:
17145
- _context12.prev = 0;
17113
+ _context10.prev = 0;
17146
17114
  payload = action.payload;
17147
17115
  channelId = payload.channelId, messageId = payload.messageId, key = payload.key, isLastReaction = payload.isLastReaction;
17148
- _context12.next = 5;
17116
+ _context10.next = 5;
17149
17117
  return effects.call(getChannelFromMap, channelId);
17150
17118
  case 5:
17151
- channel = _context12.sent;
17119
+ channel = _context10.sent;
17152
17120
  if (!channel) {
17153
17121
  channel = getChannelFromAllChannels(channelId);
17154
17122
  if (channel) {
17155
17123
  setChannelInMap(channel);
17156
17124
  }
17157
17125
  }
17158
- _context12.next = 9;
17126
+ _context10.next = 9;
17159
17127
  return effects.call(channel.deleteReaction, messageId, key);
17160
17128
  case 9:
17161
- _yield$call2 = _context12.sent;
17129
+ _yield$call2 = _context10.sent;
17162
17130
  message = _yield$call2.message;
17163
17131
  reaction = _yield$call2.reaction;
17164
17132
  if (!isLastReaction) {
17165
- _context12.next = 17;
17133
+ _context10.next = 17;
17166
17134
  break;
17167
17135
  }
17168
17136
  channelUpdateParam = {
17169
17137
  userMessageReactions: [],
17170
17138
  lastReactedMessage: null
17171
17139
  };
17172
- _context12.next = 16;
17140
+ _context10.next = 16;
17173
17141
  return effects.put(updateChannelDataAC(channel.id, channelUpdateParam));
17174
17142
  case 16:
17175
17143
  updateChannelOnAllChannels(channel.id, channelUpdateParam);
17176
17144
  case 17:
17177
17145
  log.info('message received. ... ', message);
17178
- _context12.next = 20;
17146
+ _context10.next = 20;
17179
17147
  return effects.put(deleteReactionFromListAC(reaction));
17180
17148
  case 20:
17181
- _context12.next = 22;
17149
+ _context10.next = 22;
17182
17150
  return effects.put(deleteReactionFromMessageAC(message, reaction, true));
17183
17151
  case 22:
17184
17152
  removeReactionToMessageOnMap(channelId, message, reaction, true);
17185
17153
  removeReactionOnAllMessages(message, reaction, true);
17186
- _context12.next = 29;
17154
+ _context10.next = 29;
17187
17155
  break;
17188
17156
  case 26:
17189
- _context12.prev = 26;
17190
- _context12.t0 = _context12["catch"](0);
17191
- log.error('ERROR in delete reaction', _context12.t0.message);
17157
+ _context10.prev = 26;
17158
+ _context10.t0 = _context10["catch"](0);
17159
+ log.error('ERROR in delete reaction', _context10.t0.message);
17192
17160
  case 29:
17193
17161
  case "end":
17194
- return _context12.stop();
17162
+ return _context10.stop();
17195
17163
  }
17196
- }, _marked10$1, null, [[0, 26]]);
17164
+ }, _marked0$1, null, [[0, 26]]);
17197
17165
  }
17198
17166
  function getReactions(action) {
17199
17167
  var payload, messageId, key, limit, SceytChatClient, reactionQueryBuilder, reactionQuery, result;
17200
- return _regeneratorRuntime().wrap(function getReactions$(_context13) {
17201
- while (1) switch (_context13.prev = _context13.next) {
17168
+ return _regeneratorRuntime().wrap(function getReactions$(_context11) {
17169
+ while (1) switch (_context11.prev = _context11.next) {
17202
17170
  case 0:
17203
- _context13.prev = 0;
17171
+ _context11.prev = 0;
17204
17172
  payload = action.payload;
17205
17173
  messageId = payload.messageId, key = payload.key, limit = payload.limit;
17206
17174
  SceytChatClient = getClient();
17207
- _context13.next = 6;
17175
+ _context11.next = 6;
17208
17176
  return effects.put(setReactionsLoadingStateAC(LOADING_STATE.LOADING));
17209
17177
  case 6:
17210
17178
  reactionQueryBuilder = new SceytChatClient.ReactionListQueryBuilder(messageId);
@@ -17212,76 +17180,76 @@ function getReactions(action) {
17212
17180
  if (key) {
17213
17181
  reactionQueryBuilder.setKey(key);
17214
17182
  }
17215
- _context13.next = 11;
17183
+ _context11.next = 11;
17216
17184
  return effects.call(reactionQueryBuilder.build);
17217
17185
  case 11:
17218
- reactionQuery = _context13.sent;
17219
- _context13.next = 14;
17186
+ reactionQuery = _context11.sent;
17187
+ _context11.next = 14;
17220
17188
  return effects.call(reactionQuery.loadNext);
17221
17189
  case 14:
17222
- result = _context13.sent;
17190
+ result = _context11.sent;
17223
17191
  query.ReactionsQuery = reactionQuery;
17224
- _context13.next = 18;
17192
+ _context11.next = 18;
17225
17193
  return effects.put(setReactionsListAC(result.reactions, result.hasNext));
17226
17194
  case 18:
17227
- _context13.next = 20;
17195
+ _context11.next = 20;
17228
17196
  return effects.put(setReactionsLoadingStateAC(LOADING_STATE.LOADED));
17229
17197
  case 20:
17230
- _context13.next = 25;
17198
+ _context11.next = 25;
17231
17199
  break;
17232
17200
  case 22:
17233
- _context13.prev = 22;
17234
- _context13.t0 = _context13["catch"](0);
17235
- log.error('ERROR in get reactions', _context13.t0.message);
17201
+ _context11.prev = 22;
17202
+ _context11.t0 = _context11["catch"](0);
17203
+ log.error('ERROR in get reactions', _context11.t0.message);
17236
17204
  case 25:
17237
17205
  case "end":
17238
- return _context13.stop();
17206
+ return _context11.stop();
17239
17207
  }
17240
- }, _marked11$1, null, [[0, 22]]);
17208
+ }, _marked1$1, null, [[0, 22]]);
17241
17209
  }
17242
17210
  function loadMoreReactions(action) {
17243
17211
  var payload, limit, ReactionQuery, result;
17244
- return _regeneratorRuntime().wrap(function loadMoreReactions$(_context14) {
17245
- while (1) switch (_context14.prev = _context14.next) {
17212
+ return _regeneratorRuntime().wrap(function loadMoreReactions$(_context12) {
17213
+ while (1) switch (_context12.prev = _context12.next) {
17246
17214
  case 0:
17247
- _context14.prev = 0;
17215
+ _context12.prev = 0;
17248
17216
  payload = action.payload;
17249
17217
  limit = payload.limit;
17250
- _context14.next = 5;
17218
+ _context12.next = 5;
17251
17219
  return effects.put(setReactionsLoadingStateAC(LOADING_STATE.LOADING));
17252
17220
  case 5:
17253
17221
  ReactionQuery = query.ReactionsQuery;
17254
17222
  if (limit) {
17255
17223
  ReactionQuery.limit = limit;
17256
17224
  }
17257
- _context14.next = 9;
17225
+ _context12.next = 9;
17258
17226
  return effects.call(ReactionQuery.loadNext);
17259
17227
  case 9:
17260
- result = _context14.sent;
17261
- _context14.next = 12;
17228
+ result = _context12.sent;
17229
+ _context12.next = 12;
17262
17230
  return effects.put(addReactionsToListAC(result.reactions, result.hasNext));
17263
17231
  case 12:
17264
- _context14.next = 14;
17232
+ _context12.next = 14;
17265
17233
  return effects.put(setReactionsLoadingStateAC(LOADING_STATE.LOADED));
17266
17234
  case 14:
17267
- _context14.next = 19;
17235
+ _context12.next = 19;
17268
17236
  break;
17269
17237
  case 16:
17270
- _context14.prev = 16;
17271
- _context14.t0 = _context14["catch"](0);
17272
- log.error('ERROR in load more reactions', _context14.t0.message);
17238
+ _context12.prev = 16;
17239
+ _context12.t0 = _context12["catch"](0);
17240
+ log.error('ERROR in load more reactions', _context12.t0.message);
17273
17241
  case 19:
17274
17242
  case "end":
17275
- return _context14.stop();
17243
+ return _context12.stop();
17276
17244
  }
17277
- }, _marked12$1, null, [[0, 16]]);
17245
+ }, _marked10$1, null, [[0, 16]]);
17278
17246
  }
17279
17247
  function getMessageAttachments(action) {
17280
17248
  var _action$payload2, channelId, attachmentType, limit, direction, attachmentId, forPopup, SceytChatClient, typeList, AttachmentByTypeQueryBuilder, AttachmentByTypeQuery, result;
17281
- return _regeneratorRuntime().wrap(function getMessageAttachments$(_context15) {
17282
- while (1) switch (_context15.prev = _context15.next) {
17249
+ return _regeneratorRuntime().wrap(function getMessageAttachments$(_context13) {
17250
+ while (1) switch (_context13.prev = _context13.next) {
17283
17251
  case 0:
17284
- _context15.prev = 0;
17252
+ _context13.prev = 0;
17285
17253
  _action$payload2 = action.payload, channelId = _action$payload2.channelId, attachmentType = _action$payload2.attachmentType, limit = _action$payload2.limit, direction = _action$payload2.direction, attachmentId = _action$payload2.attachmentId, forPopup = _action$payload2.forPopup;
17286
17254
  SceytChatClient = getClient();
17287
17255
  typeList = [attachmentTypes.video, attachmentTypes.image, attachmentTypes.file, attachmentTypes.link, attachmentTypes.voice];
@@ -17296,245 +17264,245 @@ function getMessageAttachments(action) {
17296
17264
  }
17297
17265
  AttachmentByTypeQueryBuilder = new SceytChatClient.AttachmentListQueryBuilder(channelId, typeList);
17298
17266
  AttachmentByTypeQueryBuilder.limit(limit || 34);
17299
- _context15.next = 9;
17267
+ _context13.next = 9;
17300
17268
  return effects.call(AttachmentByTypeQueryBuilder.build);
17301
17269
  case 9:
17302
- AttachmentByTypeQuery = _context15.sent;
17270
+ AttachmentByTypeQuery = _context13.sent;
17303
17271
  if (forPopup) {
17304
17272
  AttachmentByTypeQuery.reverse = true;
17305
17273
  }
17306
17274
  if (!(direction === queryDirection.NEXT)) {
17307
- _context15.next = 17;
17275
+ _context13.next = 17;
17308
17276
  break;
17309
17277
  }
17310
- _context15.next = 14;
17278
+ _context13.next = 14;
17311
17279
  return effects.call(AttachmentByTypeQuery.loadPrevious);
17312
17280
  case 14:
17313
- result = _context15.sent;
17314
- _context15.next = 26;
17281
+ result = _context13.sent;
17282
+ _context13.next = 26;
17315
17283
  break;
17316
17284
  case 17:
17317
17285
  if (!(direction === queryDirection.NEAR)) {
17318
- _context15.next = 23;
17286
+ _context13.next = 23;
17319
17287
  break;
17320
17288
  }
17321
- _context15.next = 20;
17289
+ _context13.next = 20;
17322
17290
  return effects.call(AttachmentByTypeQuery.loadNearMessageId, attachmentId);
17323
17291
  case 20:
17324
- result = _context15.sent;
17325
- _context15.next = 26;
17292
+ result = _context13.sent;
17293
+ _context13.next = 26;
17326
17294
  break;
17327
17295
  case 23:
17328
- _context15.next = 25;
17296
+ _context13.next = 25;
17329
17297
  return effects.call(AttachmentByTypeQuery.loadPrevious);
17330
17298
  case 25:
17331
- result = _context15.sent;
17299
+ result = _context13.sent;
17332
17300
  case 26:
17333
17301
  if (!forPopup) {
17334
- _context15.next = 34;
17302
+ _context13.next = 34;
17335
17303
  break;
17336
17304
  }
17337
17305
  query.AttachmentByTypeQueryForPopup = AttachmentByTypeQuery;
17338
- _context15.next = 30;
17306
+ _context13.next = 30;
17339
17307
  return effects.put(setAttachmentsForPopupAC(JSON.parse(JSON.stringify(result.attachments))));
17340
17308
  case 30:
17341
- _context15.next = 32;
17309
+ _context13.next = 32;
17342
17310
  return effects.put(setAttachmentsCompleteForPopupAC(result.hasNext));
17343
17311
  case 32:
17344
- _context15.next = 39;
17312
+ _context13.next = 39;
17345
17313
  break;
17346
17314
  case 34:
17347
17315
  query.AttachmentByTypeQuery = AttachmentByTypeQuery;
17348
- _context15.next = 37;
17316
+ _context13.next = 37;
17349
17317
  return effects.put(setAttachmentsCompleteAC(result.hasNext));
17350
17318
  case 37:
17351
- _context15.next = 39;
17319
+ _context13.next = 39;
17352
17320
  return effects.put(setAttachmentsAC(JSON.parse(JSON.stringify(result.attachments))));
17353
17321
  case 39:
17354
- _context15.next = 44;
17322
+ _context13.next = 44;
17355
17323
  break;
17356
17324
  case 41:
17357
- _context15.prev = 41;
17358
- _context15.t0 = _context15["catch"](0);
17359
- log.error('error in message attachment query', _context15.t0);
17325
+ _context13.prev = 41;
17326
+ _context13.t0 = _context13["catch"](0);
17327
+ log.error('error in message attachment query', _context13.t0);
17360
17328
  case 44:
17361
17329
  case "end":
17362
- return _context15.stop();
17330
+ return _context13.stop();
17363
17331
  }
17364
- }, _marked13$1, null, [[0, 41]]);
17332
+ }, _marked11$1, null, [[0, 41]]);
17365
17333
  }
17366
17334
  function loadMoreMessageAttachments(action) {
17367
17335
  var _action$payload3, limit, direction, forPopup, AttachmentQuery, _yield$call3, attachments, hasNext;
17368
- return _regeneratorRuntime().wrap(function loadMoreMessageAttachments$(_context16) {
17369
- while (1) switch (_context16.prev = _context16.next) {
17336
+ return _regeneratorRuntime().wrap(function loadMoreMessageAttachments$(_context14) {
17337
+ while (1) switch (_context14.prev = _context14.next) {
17370
17338
  case 0:
17371
- _context16.prev = 0;
17339
+ _context14.prev = 0;
17372
17340
  _action$payload3 = action.payload, limit = _action$payload3.limit, direction = _action$payload3.direction, forPopup = _action$payload3.forPopup;
17373
17341
  if (forPopup) {
17374
17342
  AttachmentQuery = query.AttachmentByTypeQueryForPopup;
17375
17343
  } else {
17376
17344
  AttachmentQuery = query.AttachmentByTypeQuery;
17377
17345
  }
17378
- _context16.next = 5;
17346
+ _context14.next = 5;
17379
17347
  return effects.put(setMessagesLoadingStateAC(LOADING_STATE.LOADING));
17380
17348
  case 5:
17381
17349
  AttachmentQuery.limit = limit;
17382
- _context16.next = 8;
17350
+ _context14.next = 8;
17383
17351
  return effects.call(AttachmentQuery.loadPrevious);
17384
17352
  case 8:
17385
- _yield$call3 = _context16.sent;
17353
+ _yield$call3 = _context14.sent;
17386
17354
  attachments = _yield$call3.attachments;
17387
17355
  hasNext = _yield$call3.hasNext;
17388
17356
  if (!forPopup) {
17389
- _context16.next = 16;
17357
+ _context14.next = 16;
17390
17358
  break;
17391
17359
  }
17392
- _context16.next = 14;
17360
+ _context14.next = 14;
17393
17361
  return effects.put(addAttachmentsForPopupAC(attachments, direction));
17394
17362
  case 14:
17395
- _context16.next = 22;
17363
+ _context14.next = 22;
17396
17364
  break;
17397
17365
  case 16:
17398
- _context16.next = 18;
17366
+ _context14.next = 18;
17399
17367
  return effects.put(setAttachmentsCompleteAC(hasNext));
17400
17368
  case 18:
17401
- _context16.next = 20;
17369
+ _context14.next = 20;
17402
17370
  return effects.put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
17403
17371
  case 20:
17404
- _context16.next = 22;
17372
+ _context14.next = 22;
17405
17373
  return effects.put(addAttachmentsAC(attachments));
17406
17374
  case 22:
17407
- _context16.next = 28;
17375
+ _context14.next = 28;
17408
17376
  break;
17409
17377
  case 24:
17410
- _context16.prev = 24;
17411
- _context16.t0 = _context16["catch"](0);
17412
- log.error('error in message attachment query', _context16.t0);
17378
+ _context14.prev = 24;
17379
+ _context14.t0 = _context14["catch"](0);
17380
+ log.error('error in message attachment query', _context14.t0);
17413
17381
  case 28:
17414
17382
  case "end":
17415
- return _context16.stop();
17383
+ return _context14.stop();
17416
17384
  }
17417
- }, _marked14$1, null, [[0, 24]]);
17385
+ }, _marked12$1, null, [[0, 24]]);
17418
17386
  }
17419
17387
  function pauseAttachmentUploading(action) {
17420
17388
  var attachmentId, isPaused;
17421
- return _regeneratorRuntime().wrap(function pauseAttachmentUploading$(_context17) {
17422
- while (1) switch (_context17.prev = _context17.next) {
17389
+ return _regeneratorRuntime().wrap(function pauseAttachmentUploading$(_context15) {
17390
+ while (1) switch (_context15.prev = _context15.next) {
17423
17391
  case 0:
17424
- _context17.prev = 0;
17392
+ _context15.prev = 0;
17425
17393
  attachmentId = action.payload.attachmentId;
17426
17394
  if (!getCustomUploader()) {
17427
- _context17.next = 7;
17395
+ _context15.next = 7;
17428
17396
  break;
17429
17397
  }
17430
17398
  isPaused = pauseUpload(attachmentId);
17431
17399
  if (!isPaused) {
17432
- _context17.next = 7;
17400
+ _context15.next = 7;
17433
17401
  break;
17434
17402
  }
17435
- _context17.next = 7;
17403
+ _context15.next = 7;
17436
17404
  return effects.put(updateAttachmentUploadingStateAC(UPLOAD_STATE.PAUSED, attachmentId));
17437
17405
  case 7:
17438
- _context17.next = 13;
17406
+ _context15.next = 13;
17439
17407
  break;
17440
17408
  case 9:
17441
- _context17.prev = 9;
17442
- _context17.t0 = _context17["catch"](0);
17443
- log.error('error in pause attachment uploading', _context17.t0);
17409
+ _context15.prev = 9;
17410
+ _context15.t0 = _context15["catch"](0);
17411
+ log.error('error in pause attachment uploading', _context15.t0);
17444
17412
  case 13:
17445
17413
  case "end":
17446
- return _context17.stop();
17414
+ return _context15.stop();
17447
17415
  }
17448
- }, _marked15$1, null, [[0, 9]]);
17416
+ }, _marked13$1, null, [[0, 9]]);
17449
17417
  }
17450
17418
  function resumeAttachmentUploading(action) {
17451
17419
  var attachmentId, isResumed;
17452
- return _regeneratorRuntime().wrap(function resumeAttachmentUploading$(_context18) {
17453
- while (1) switch (_context18.prev = _context18.next) {
17420
+ return _regeneratorRuntime().wrap(function resumeAttachmentUploading$(_context16) {
17421
+ while (1) switch (_context16.prev = _context16.next) {
17454
17422
  case 0:
17455
- _context18.prev = 0;
17423
+ _context16.prev = 0;
17456
17424
  attachmentId = action.payload.attachmentId;
17457
17425
  log.info('resume for attachment ... ', attachmentId);
17458
17426
  if (!getCustomUploader()) {
17459
- _context18.next = 8;
17427
+ _context16.next = 8;
17460
17428
  break;
17461
17429
  }
17462
17430
  isResumed = resumeUpload(attachmentId);
17463
17431
  if (!isResumed) {
17464
- _context18.next = 8;
17432
+ _context16.next = 8;
17465
17433
  break;
17466
17434
  }
17467
- _context18.next = 8;
17435
+ _context16.next = 8;
17468
17436
  return effects.put(updateAttachmentUploadingStateAC(UPLOAD_STATE.UPLOADING, attachmentId));
17469
17437
  case 8:
17470
- _context18.next = 14;
17438
+ _context16.next = 14;
17471
17439
  break;
17472
17440
  case 10:
17473
- _context18.prev = 10;
17474
- _context18.t0 = _context18["catch"](0);
17475
- log.error('error in resume attachment uploading', _context18.t0);
17441
+ _context16.prev = 10;
17442
+ _context16.t0 = _context16["catch"](0);
17443
+ log.error('error in resume attachment uploading', _context16.t0);
17476
17444
  case 14:
17477
17445
  case "end":
17478
- return _context18.stop();
17446
+ return _context16.stop();
17479
17447
  }
17480
- }, _marked16$1, null, [[0, 10]]);
17448
+ }, _marked14$1, null, [[0, 10]]);
17481
17449
  }
17482
17450
  function MessageSaga() {
17483
- return _regeneratorRuntime().wrap(function MessageSaga$(_context19) {
17484
- while (1) switch (_context19.prev = _context19.next) {
17451
+ return _regeneratorRuntime().wrap(function MessageSaga$(_context17) {
17452
+ while (1) switch (_context17.prev = _context17.next) {
17485
17453
  case 0:
17486
- _context19.next = 2;
17454
+ _context17.next = 2;
17487
17455
  return effects.takeEvery(SEND_MESSAGE, sendMessage);
17488
17456
  case 2:
17489
- _context19.next = 4;
17457
+ _context17.next = 4;
17490
17458
  return effects.takeEvery(SEND_TEXT_MESSAGE, sendTextMessage);
17491
17459
  case 4:
17492
- _context19.next = 6;
17460
+ _context17.next = 6;
17493
17461
  return effects.takeEvery(FORWARD_MESSAGE, forwardMessage);
17494
17462
  case 6:
17495
- _context19.next = 8;
17463
+ _context17.next = 8;
17496
17464
  return effects.takeEvery(RESEND_MESSAGE, resendMessage);
17497
17465
  case 8:
17498
- _context19.next = 10;
17466
+ _context17.next = 10;
17499
17467
  return effects.takeLatest(EDIT_MESSAGE, editMessage);
17500
17468
  case 10:
17501
- _context19.next = 12;
17469
+ _context17.next = 12;
17502
17470
  return effects.takeEvery(DELETE_MESSAGE, deleteMessage);
17503
17471
  case 12:
17504
- _context19.next = 14;
17472
+ _context17.next = 14;
17505
17473
  return effects.takeLatest(GET_MESSAGES, getMessagesQuery);
17506
17474
  case 14:
17507
- _context19.next = 16;
17475
+ _context17.next = 16;
17508
17476
  return effects.takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
17509
17477
  case 16:
17510
- _context19.next = 18;
17478
+ _context17.next = 18;
17511
17479
  return effects.takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
17512
17480
  case 18:
17513
- _context19.next = 20;
17481
+ _context17.next = 20;
17514
17482
  return effects.takeLatest(ADD_REACTION, addReaction);
17515
17483
  case 20:
17516
- _context19.next = 22;
17484
+ _context17.next = 22;
17517
17485
  return effects.takeLatest(DELETE_REACTION, deleteReaction);
17518
17486
  case 22:
17519
- _context19.next = 24;
17487
+ _context17.next = 24;
17520
17488
  return effects.takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
17521
17489
  case 24:
17522
- _context19.next = 26;
17490
+ _context17.next = 26;
17523
17491
  return effects.takeEvery(GET_REACTIONS, getReactions);
17524
17492
  case 26:
17525
- _context19.next = 28;
17493
+ _context17.next = 28;
17526
17494
  return effects.takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
17527
17495
  case 28:
17528
- _context19.next = 30;
17496
+ _context17.next = 30;
17529
17497
  return effects.takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
17530
17498
  case 30:
17531
- _context19.next = 32;
17499
+ _context17.next = 32;
17532
17500
  return effects.takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
17533
17501
  case 32:
17534
17502
  case "end":
17535
- return _context19.stop();
17503
+ return _context17.stop();
17536
17504
  }
17537
- }, _marked17$1);
17505
+ }, _marked15$1);
17538
17506
  }
17539
17507
 
17540
17508
  var _marked$3 = /*#__PURE__*/_regeneratorRuntime().mark(getMembers),
@@ -19130,7 +19098,7 @@ var DeletedAvatarWrapper = styled__default(SvgDeletedUserAvatar)(_templateObject
19130
19098
  return props.color || colors.deleteUserIconBackground;
19131
19099
  });
19132
19100
 
19133
- var _templateObject$4, _templateObject2$4, _templateObject3$3, _templateObject4$3, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1;
19101
+ var _templateObject$4, _templateObject2$4, _templateObject3$3, _templateObject4$3, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1;
19134
19102
  var Channel = function Channel(_ref) {
19135
19103
  var _channel$metadata, _channel$metadata2;
19136
19104
  var channel = _ref.channel,
@@ -19385,10 +19353,10 @@ var DraftMessageText = styled__default.span(_templateObject8$1 || (_templateObje
19385
19353
  var LastMessageAuthor = styled__default.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n max-width: 120px;\n font-weight: 500;\n color: ", ";\n\n & > span {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 100%;\n }\n"])), function (props) {
19386
19354
  return props.color;
19387
19355
  });
19388
- var Points = styled__default.span(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n margin-right: 4px;\n color: ", ";\n"])), function (props) {
19356
+ var Points = styled__default.span(_templateObject0$1 || (_templateObject0$1 = _taggedTemplateLiteralLoose(["\n margin-right: 4px;\n color: ", ";\n"])), function (props) {
19389
19357
  return props.color;
19390
19358
  });
19391
- var LastMessageText = styled__default.span(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: ", ";\n font-style: ", ";\n transform: ", ";\n //height: 20px;\n\n > svg {\n width: 16px;\n height: 16px;\n margin-right: 4px;\n color: ", ";\n //transform: ", ";\n transform: translate(0px, 3px);\n }\n"])), function (props) {
19359
+ var LastMessageText = styled__default.span(_templateObject1$1 || (_templateObject1$1 = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: ", ";\n font-style: ", ";\n transform: ", ";\n //height: 20px;\n\n > svg {\n width: 16px;\n height: 16px;\n margin-right: 4px;\n color: ", ";\n //transform: ", ";\n transform: translate(0px, 3px);\n }\n"])), function (props) {
19392
19360
  return props.color;
19393
19361
  }, function (props) {
19394
19362
  return props.deletedMessage && 'italic';
@@ -19399,26 +19367,26 @@ var LastMessageText = styled__default.span(_templateObject11$1 || (_templateObje
19399
19367
  }, function (props) {
19400
19368
  return props.withAttachments ? 'translate(0px, 3px)' : 'translate(0px, 2px)';
19401
19369
  });
19402
- var ChannelStatus = styled__default.div(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 16px;\n top: 15px;\n display: flex;\n flex-wrap: wrap;\n height: 42px;\n margin-left: auto;\n\n & > svg {\n width: 16px;\n height: 16px;\n color: ", ";\n }\n"])), function (props) {
19370
+ var ChannelStatus = styled__default.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 16px;\n top: 15px;\n display: flex;\n flex-wrap: wrap;\n height: 42px;\n margin-left: auto;\n\n & > svg {\n width: 16px;\n height: 16px;\n color: ", ";\n }\n"])), function (props) {
19403
19371
  return props.color;
19404
19372
  });
19405
- var LastMessageDate = styled__default.span(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: ", ";\n line-height: 16px;\n"])), function (props) {
19373
+ var LastMessageDate = styled__default.span(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: ", ";\n line-height: 16px;\n"])), function (props) {
19406
19374
  return props.color;
19407
19375
  }, function (props) {
19408
19376
  return props.fontSize || '12px';
19409
19377
  });
19410
- var DeliveryIconCont = styled__default.span(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n margin-right: 6px;\n line-height: 13px;\n"])));
19411
- var UnreadMentionIconWrapper = styled__default.span(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n margin-right: ", ";\n line-height: 13px;\n\n & > svg {\n color: ", ";\n }\n"])), function (props) {
19378
+ var DeliveryIconCont = styled__default.span(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n margin-right: 6px;\n line-height: 13px;\n"])));
19379
+ var UnreadMentionIconWrapper = styled__default.span(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n margin-right: ", ";\n line-height: 13px;\n\n & > svg {\n color: ", ";\n }\n"])), function (props) {
19412
19380
  return props.rightMargin && '8px';
19413
19381
  }, function (props) {
19414
19382
  return props.iconColor || colors.primary;
19415
19383
  });
19416
- var TypingIndicator = styled__default.span(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n font-style: italic;\n"])));
19417
- var ReactionItem = styled__default.span(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n padding: 0 3px;\n"])));
19418
- var UnreadInfo = styled__default.span(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: ", ";\n right: 16px;\n display: flex;\n margin-top: 7px;\n align-items: center;\n flex: 0 0 auto;\n margin-left: auto;\n"])), function (props) {
19384
+ var TypingIndicator = styled__default.span(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n font-style: italic;\n"])));
19385
+ var ReactionItem = styled__default.span(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n padding: 0 3px;\n"])));
19386
+ var UnreadInfo = styled__default.span(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: ", ";\n right: 16px;\n display: flex;\n margin-top: 7px;\n align-items: center;\n flex: 0 0 auto;\n margin-left: auto;\n"])), function (props) {
19419
19387
  return props.bottom || '11px';
19420
19388
  });
19421
- var UnreadCount = styled__default.span(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n\n ", "\n"])), function (props) {
19389
+ var UnreadCount = styled__default.span(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n\n ", "\n"])), function (props) {
19422
19390
  return props.backgroundColor || colors.primary;
19423
19391
  }, function (props) {
19424
19392
  return props.fontSize || '13px';
@@ -19782,7 +19750,7 @@ var Container$4 = styled__default.div(_templateObject$8 || (_templateObject$8 =
19782
19750
  return props.height ? props.height + "px" : '0px';
19783
19751
  });
19784
19752
 
19785
- var _templateObject$9, _templateObject2$8, _templateObject3$5, _templateObject4$5, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2;
19753
+ var _templateObject$9, _templateObject2$8, _templateObject3$5, _templateObject4$5, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2;
19786
19754
  var UsersPopup = function UsersPopup(_ref) {
19787
19755
  var channel = _ref.channel,
19788
19756
  toggleCreatePopup = _ref.toggleCreatePopup,
@@ -20124,10 +20092,10 @@ var SelectedMembersContainer = styled__default.div(_templateObject8$2 || (_templ
20124
20092
  var SelectedMemberBubble = styled__default.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n background: ", ";\n border-radius: 16px;\n align-items: center;\n padding: 4px 10px 4px 0;\n height: 28px;\n margin: 8px 8px 0 0;\n box-sizing: border-box;\n"])), function (props) {
20125
20093
  return props.backgroundColor;
20126
20094
  });
20127
- var SelectedMemberName = styled__default.span(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n margin-left: 8px;\n color: ", ";\n"])), function (props) {
20095
+ var SelectedMemberName = styled__default.span(_templateObject0$2 || (_templateObject0$2 = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n margin-left: 8px;\n color: ", ";\n"])), function (props) {
20128
20096
  return props.color;
20129
20097
  });
20130
- var StyledSubtractSvg = styled__default(SvgCross)(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin-left: 4px;\n transform: translate(2px, 0);\n"])));
20098
+ var StyledSubtractSvg = styled__default(SvgCross)(_templateObject1$2 || (_templateObject1$2 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin-left: 4px;\n transform: translate(2px, 0);\n"])));
20131
20099
 
20132
20100
  var _path$l;
20133
20101
  function _extends$m() {
@@ -20374,9 +20342,9 @@ function CreateChannel(_ref) {
20374
20342
  var _useState9 = React.useState(''),
20375
20343
  metadataValue = _useState9[0],
20376
20344
  setMetadataValue = _useState9[1];
20377
- var _useState10 = React.useState(false),
20378
- cropPopup = _useState10[0],
20379
- setCropPopup = _useState10[1];
20345
+ var _useState0 = React.useState(false),
20346
+ cropPopup = _useState0[0],
20347
+ setCropPopup = _useState0[1];
20380
20348
  var _useStateComplex = useStateComplex({
20381
20349
  src: {},
20382
20350
  url: ''
@@ -21146,7 +21114,7 @@ var UserNumber = styled__default.h4(_templateObject6$4 || (_templateObject6$4 =
21146
21114
  return props.color;
21147
21115
  });
21148
21116
 
21149
- var _templateObject$g, _templateObject2$e, _templateObject3$a, _templateObject4$8, _templateObject5$6, _templateObject6$5, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject10$3;
21117
+ var _templateObject$g, _templateObject2$e, _templateObject3$a, _templateObject4$8, _templateObject5$6, _templateObject6$5, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$3;
21150
21118
  var ChannelList = function ChannelList(_ref) {
21151
21119
  var _channelListRef$curre2, _searchedChannels$cha, _searchedChannels$cha2, _searchedChannels$con, _searchedChannels$cha3, _searchedChannels$cha4, _searchedChannels$cha5, _searchedChannels$cha6;
21152
21120
  var className = _ref.className,
@@ -21752,7 +21720,7 @@ var NoData = styled__default.div(_templateObject8$4 || (_templateObject8$4 = _ta
21752
21720
  return props.color;
21753
21721
  });
21754
21722
  var LoadingWrapper = styled__default.div(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: calc(50% - 20px);\n top: calc(50% - 20px);\n"])));
21755
- var ChannelListHeader = styled__default.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n max-width: ", ";\n padding: 12px;\n box-sizing: border-box;\n padding-left: ", ";\n border-right: ", ";\n"])), function (props) {
21723
+ var ChannelListHeader = styled__default.div(_templateObject0$3 || (_templateObject0$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n max-width: ", ";\n padding: 12px;\n box-sizing: border-box;\n padding-left: ", ";\n border-right: ", ";\n"])), function (props) {
21756
21724
  return props.maxWidth ? props.maxWidth + "px" : 'inherit';
21757
21725
  }, function (props) {
21758
21726
  return props.withoutProfile && '52px';
@@ -21912,7 +21880,7 @@ function SvgInfo(props) {
21912
21880
  })));
21913
21881
  }
21914
21882
 
21915
- var _templateObject$i, _templateObject2$g, _templateObject3$c, _templateObject4$a, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$4;
21883
+ var _templateObject$i, _templateObject2$g, _templateObject3$c, _templateObject4$a, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject0$4;
21916
21884
  function ChatHeader(_ref) {
21917
21885
  var _activeChannel$metada;
21918
21886
  var infoIcon = _ref.infoIcon,
@@ -22061,7 +22029,7 @@ var MobileBackButtonWrapper = styled__default.span(_templateObject8$5 || (_templ
22061
22029
  return props.hoverBackground || colors.primaryLight;
22062
22030
  });
22063
22031
  var DefaultInfoIcon = styled__default(SvgInfo)(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose([""])));
22064
- var WrapArrowLeftIcon = styled__default(SvgArrowLeft)(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose([""])));
22032
+ var WrapArrowLeftIcon = styled__default(SvgArrowLeft)(_templateObject0$4 || (_templateObject0$4 = _taggedTemplateLiteralLoose([""])));
22065
22033
 
22066
22034
  var _path$s;
22067
22035
  function _extends$t() {
@@ -22551,12 +22519,13 @@ function SvgFullscreenExit(props) {
22551
22519
  })));
22552
22520
  }
22553
22521
 
22554
- var _templateObject$k, _templateObject2$h, _templateObject3$d, _templateObject4$b, _templateObject5$9, _templateObject6$7, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$5, _templateObject11$3;
22522
+ var _templateObject$k, _templateObject2$h, _templateObject3$d, _templateObject4$b, _templateObject5$9, _templateObject6$7, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5, _templateObject1$3;
22555
22523
  var timerInterval;
22556
22524
  var VideoPlayer = function VideoPlayer(_ref) {
22557
22525
  var src = _ref.src,
22558
22526
  videoFileId = _ref.videoFileId,
22559
- activeFileId = _ref.activeFileId;
22527
+ activeFileId = _ref.activeFileId,
22528
+ onMouseDown = _ref.onMouseDown;
22560
22529
  var containerRef = React.useRef(null);
22561
22530
  var videoRef = React.useRef(null);
22562
22531
  var progressRef = React.useRef(null);
@@ -22711,7 +22680,8 @@ var VideoPlayer = function VideoPlayer(_ref) {
22711
22680
  ref: containerRef,
22712
22681
  loaded: isLoaded,
22713
22682
  fullScreen: isFullScreen,
22714
- className: 'custom_video_player'
22683
+ className: 'custom_video_player',
22684
+ onMouseDown: onMouseDown
22715
22685
  }, /*#__PURE__*/React__default.createElement("video", {
22716
22686
  onClick: function onClick() {
22717
22687
  return videoHandler(playing ? 'pause' : 'play');
@@ -22769,10 +22739,10 @@ var ProgressBlock = styled__default.div(_templateObject6$7 || (_templateObject6$
22769
22739
  var VolumeController = styled__default.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n display: flex;\n align-items: center;\n"])));
22770
22740
  var VolumeIconWrapper = styled__default.span(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n @media (max-width: 768px) {\n & > svg {\n width: 18px;\n height: 18px;\n }\n }\n @media (max-width: 768px) {\n & > svg {\n width: 16px;\n height: 16px;\n }\n }\n"])));
22771
22741
  var VolumeSlide = styled__default.input(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n -webkit-appearance: none;\n margin-left: 8px;\n width: 60px;\n height: 4px;\n background: rgba(255, 255, 255, 0.6);\n border-radius: 5px;\n background-image: linear-gradient(#fff, #fff);\n //background-size: 70% 100%;\n background-repeat: no-repeat;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n visibility: hidden;\n -webkit-appearance: none;\n height: 1px;\n width: 1px;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n &::-moz-range-thumb {\n visibility: hidden;\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n\n &::-ms-thumb {\n visibility: hidden;\n -webkit-appearance: none;\n height: 1px;\n width: 1px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n &::-webkit-slider-runnable-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n\n &::-moz-range-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n &::-ms-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n\n @media (max-width: 768px) {\n width: 50px;\n }\n"])));
22772
- var Progress = styled__default.input(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n -webkit-appearance: none;\n margin-right: 15px;\n width: 100%;\n height: 4px;\n background: rgba(255, 255, 255, 0.6);\n border-radius: 5px;\n background-image: linear-gradient(#fff, #fff);\n //background-size: 70% 100%;\n background-repeat: no-repeat;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n &::-moz-range-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n\n &::-ms-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n\n &::-webkit-slider-thumb:hover {\n background: #fff;\n }\n &::-moz-range-thumb:hover {\n background: #fff;\n }\n &::-ms-thumb:hover {\n background: #fff;\n }\n\n &::-webkit-slider-runnable-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n\n &::-moz-range-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n &::-ms-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n"])));
22773
- var FullScreenWrapper = styled__default.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: 16px;\n cursor: pointer;\n @media (max-width: 768px) {\n margin-left: 12px;\n & > svg {\n width: 18px;\n height: 18px;\n }\n }\n @media (max-width: 480px) {\n margin-left: auto;\n & > svg {\n width: 16px;\n height: 16px;\n }\n }\n"])));
22742
+ var Progress = styled__default.input(_templateObject0$5 || (_templateObject0$5 = _taggedTemplateLiteralLoose(["\n -webkit-appearance: none;\n margin-right: 15px;\n width: 100%;\n height: 4px;\n background: rgba(255, 255, 255, 0.6);\n border-radius: 5px;\n background-image: linear-gradient(#fff, #fff);\n //background-size: 70% 100%;\n background-repeat: no-repeat;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n &::-moz-range-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n\n &::-ms-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n\n &::-webkit-slider-thumb:hover {\n background: #fff;\n }\n &::-moz-range-thumb:hover {\n background: #fff;\n }\n &::-ms-thumb:hover {\n background: #fff;\n }\n\n &::-webkit-slider-runnable-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n\n &::-moz-range-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n &::-ms-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n"])));
22743
+ var FullScreenWrapper = styled__default.div(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: 16px;\n cursor: pointer;\n @media (max-width: 768px) {\n margin-left: 12px;\n & > svg {\n width: 18px;\n height: 18px;\n }\n }\n @media (max-width: 480px) {\n margin-left: auto;\n & > svg {\n width: 16px;\n height: 16px;\n }\n }\n"])));
22774
22744
 
22775
- var _templateObject$l, _templateObject2$i, _templateObject3$e, _templateObject4$c, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject10$6;
22745
+ var _templateObject$l, _templateObject2$i, _templateObject3$e, _templateObject4$c, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6;
22776
22746
  function ForwardMessagePopup(_ref) {
22777
22747
  var title = _ref.title,
22778
22748
  buttonText = _ref.buttonText,
@@ -23061,7 +23031,7 @@ var SelectedChannelBuble = styled__default.div(_templateObject8$7 || (_templateO
23061
23031
  var SelectedChannelName = styled__default.span(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
23062
23032
  return props.color;
23063
23033
  });
23064
- var StyledSubtractSvg$1 = styled__default(SvgCross)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin-left: 4px;\n transform: translate(2px, 0);\n"])));
23034
+ var StyledSubtractSvg$1 = styled__default(SvgCross)(_templateObject0$6 || (_templateObject0$6 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin-left: 4px;\n transform: translate(2px, 0);\n"])));
23065
23035
 
23066
23036
  var _templateObject$m, _templateObject2$j;
23067
23037
  var CustomRadio = function CustomRadio(_ref) {
@@ -23231,7 +23201,7 @@ var DeleteOptionItem = styled__default.div(_templateObject2$k || (_templateObjec
23231
23201
  return props.color;
23232
23202
  });
23233
23203
 
23234
- var _templateObject$o, _templateObject2$l, _templateObject3$f, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$8, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$4, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2;
23204
+ var _templateObject$o, _templateObject2$l, _templateObject3$f, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$8, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$4, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$2;
23235
23205
  var SliderPopup = function SliderPopup(_ref) {
23236
23206
  var channel = _ref.channel,
23237
23207
  setIsSliderOpen = _ref.setIsSliderOpen,
@@ -23273,12 +23243,12 @@ var SliderPopup = function SliderPopup(_ref) {
23273
23243
  var _useState9 = React.useState(false),
23274
23244
  visibleSlide = _useState9[0],
23275
23245
  setVisibleSlide = _useState9[1];
23276
- var _useState10 = React.useState(false),
23277
- forwardPopupOpen = _useState10[0],
23278
- setForwardPopupOpen = _useState10[1];
23279
- var _useState11 = React.useState(),
23280
- messageToDelete = _useState11[0],
23281
- setMessageToDelete = _useState11[1];
23246
+ var _useState0 = React.useState(false),
23247
+ forwardPopupOpen = _useState0[0],
23248
+ setForwardPopupOpen = _useState0[1];
23249
+ var _useState1 = React.useState(),
23250
+ messageToDelete = _useState1[0],
23251
+ setMessageToDelete = _useState1[1];
23282
23252
  var customDownloader = getCustomDownloader();
23283
23253
  var contactsMap = reactRedux.useSelector(contactsMapSelector);
23284
23254
  var attachments = reactRedux.useSelector(attachmentsForPopupSelector, reactRedux.shallowEqual) || [];
@@ -23353,15 +23323,15 @@ var SliderPopup = function SliderPopup(_ref) {
23353
23323
  var _temp3 = function () {
23354
23324
  if (!message) {
23355
23325
  var _temp2 = function _temp2() {
23356
- return Promise.resolve(_channelInstance.getMessagesById([currentFile.messageId])).then(function (messages) {
23326
+ return Promise.resolve(channelInstance.getMessagesById([currentFile.messageId])).then(function (messages) {
23357
23327
  message = messages[0];
23358
23328
  });
23359
23329
  };
23360
- var _channelInstance = getChannelFromMap(channel.id);
23330
+ var channelInstance = getChannelFromMap(channel.id);
23361
23331
  var _temp = function () {
23362
- if (!_channelInstance) {
23332
+ if (!channelInstance) {
23363
23333
  return Promise.resolve(ChatClient.getChannelById(channel.id)).then(function (_ChatClient$getChanne) {
23364
- _channelInstance = _ChatClient$getChanne;
23334
+ channelInstance = _ChatClient$getChanne;
23365
23335
  });
23366
23336
  }
23367
23337
  }();
@@ -23381,27 +23351,27 @@ var SliderPopup = function SliderPopup(_ref) {
23381
23351
  var _temp9 = function () {
23382
23352
  if (!messageToDelete) {
23383
23353
  var _temp8 = function _temp8() {
23384
- if (!_message.deliveryStatus || _message.deliveryStatus === MESSAGE_DELIVERY_STATUS.PENDING) {
23385
- deletePendingMessage(channel.id, _message);
23354
+ if (!message.deliveryStatus || message.deliveryStatus === MESSAGE_DELIVERY_STATUS.PENDING) {
23355
+ deletePendingMessage(channel.id, message);
23386
23356
  } else {
23387
- setMessageToDelete(_message);
23357
+ setMessageToDelete(message);
23388
23358
  }
23389
23359
  };
23390
- var _message = getAllMessages().find(function (message) {
23360
+ var message = getAllMessages().find(function (message) {
23391
23361
  return message.id === currentFile.messageId;
23392
23362
  });
23393
23363
  var _temp7 = function () {
23394
- if (!_message) {
23364
+ if (!message) {
23395
23365
  var _temp6 = function _temp6() {
23396
- return Promise.resolve(_channelInstance2.getMessagesById([currentFile.messageId])).then(function (messages) {
23397
- _message = messages[0];
23366
+ return Promise.resolve(channelInstance.getMessagesById([currentFile.messageId])).then(function (messages) {
23367
+ message = messages[0];
23398
23368
  });
23399
23369
  };
23400
- var _channelInstance2 = getChannelFromMap(channel.id);
23370
+ var channelInstance = getChannelFromMap(channel.id);
23401
23371
  var _temp5 = function () {
23402
- if (!_channelInstance2) {
23372
+ if (!channelInstance) {
23403
23373
  return Promise.resolve(ChatClient.getChannelById(channel.id)).then(function (_ChatClient$getChanne2) {
23404
- _channelInstance2 = _ChatClient$getChanne2;
23374
+ channelInstance = _ChatClient$getChanne2;
23405
23375
  });
23406
23376
  }
23407
23377
  }();
@@ -23584,15 +23554,11 @@ var SliderPopup = function SliderPopup(_ref) {
23584
23554
  return item.id === currentFile.id;
23585
23555
  });
23586
23556
  }, [attachmentsList, currentFile]);
23587
- React.useEffect(function () {
23588
- var handleContextMenu = function handleContextMenu(event) {
23589
- event.preventDefault();
23590
- };
23591
- window.addEventListener('contextmenu', handleContextMenu);
23592
- return function () {
23593
- window.removeEventListener('contextmenu', handleContextMenu);
23594
- };
23595
- }, []);
23557
+ var handleCarouselItemMouseDown = function handleCarouselItemMouseDown(e) {
23558
+ if (e.button === 2) {
23559
+ e.stopPropagation();
23560
+ }
23561
+ };
23596
23562
  return /*#__PURE__*/React__default.createElement(Container$b, {
23597
23563
  draggable: false
23598
23564
  }, /*#__PURE__*/React__default.createElement(SliderHeader, null, /*#__PURE__*/React__default.createElement(FileInfo, null, /*#__PURE__*/React__default.createElement(Avatar, {
@@ -23638,7 +23604,15 @@ var SliderPopup = function SliderPopup(_ref) {
23638
23604
  }, /*#__PURE__*/React__default.createElement(SvgDeleteChannel, null))), /*#__PURE__*/React__default.createElement(ClosePopupWrapper, null, /*#__PURE__*/React__default.createElement(IconWrapper, {
23639
23605
  onClick: handleClosePopup
23640
23606
  }, /*#__PURE__*/React__default.createElement(SvgCancel, null)))), /*#__PURE__*/React__default.createElement(SliderBody, {
23641
- onClick: handleClicks
23607
+ onClick: handleClicks,
23608
+ onMouseDown: function onMouseDown(e) {
23609
+ if (e.button === 2) {
23610
+ e.stopPropagation();
23611
+ e.preventDefault();
23612
+ return false;
23613
+ }
23614
+ return true;
23615
+ }
23642
23616
  }, activeFileIndex >= 0 && attachmentsList && attachmentsList.length ? (
23643
23617
  /*#__PURE__*/
23644
23618
  React__default.createElement(Carousel, {
@@ -23685,15 +23659,29 @@ var SliderPopup = function SliderPopup(_ref) {
23685
23659
  className: 'custom_carousel_item',
23686
23660
  key: file.id,
23687
23661
  draggable: false,
23688
- visibleSlide: visibleSlide
23662
+ visibleSlide: visibleSlide,
23663
+ onMouseDown: handleCarouselItemMouseDown,
23664
+ onContextMenu: function onContextMenu(e) {
23665
+ e.stopPropagation();
23666
+ }
23689
23667
  }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, file.type === 'image' ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, !downloadedFiles[file.id] && imageLoading ? (/*#__PURE__*/React__default.createElement(UploadCont$1, null, /*#__PURE__*/React__default.createElement(UploadingIcon, null))) : (/*#__PURE__*/React__default.createElement("img", {
23690
23668
  draggable: false,
23691
23669
  src: downloadedFiles[file.id],
23692
- alt: file.name
23670
+ alt: file.name,
23671
+ onMouseDown: function onMouseDown(e) {
23672
+ if (e.button === 2) {
23673
+ e.stopPropagation();
23674
+ }
23675
+ }
23693
23676
  })))) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(VideoPlayer, {
23694
23677
  activeFileId: (currentFile === null || currentFile === void 0 ? void 0 : currentFile.id) || '',
23695
23678
  videoFileId: file.id,
23696
- src: downloadedFiles[file.id]
23679
+ src: downloadedFiles[file.id],
23680
+ onMouseDown: function onMouseDown(e) {
23681
+ if (e.button === 2) {
23682
+ e.stopPropagation();
23683
+ }
23684
+ }
23697
23685
  })))));
23698
23686
  }))) : (/*#__PURE__*/React__default.createElement(UploadingIcon, null))), forwardPopupOpen && (/*#__PURE__*/React__default.createElement(ForwardMessagePopup, {
23699
23687
  handleForward: handleForwardMessage,
@@ -23726,18 +23714,18 @@ var FileDateAndSize = styled__default.span(_templateObject8$8 || (_templateObjec
23726
23714
  var FileSize = styled__default.span(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: 12px;\n\n &:after {\n content: '';\n position: absolute;\n left: -10px;\n top: 6px;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: ", ";\n }\n"])), function (props) {
23727
23715
  return props.color;
23728
23716
  });
23729
- var UserName = styled__default.h4(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n margin: 0;\n color: ", "\n font-weight: 500;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n"])), colors.white);
23730
- var ActionsWrapper = styled__default.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
23731
- var IconWrapper = styled__default.span(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n color: ", ";\n margin: ", ";\n\n & > svg {\n width: 28px;\n height: 28px;\n }\n\n ", "\n"])), colors.white, function (props) {
23717
+ var UserName = styled__default.h4(_templateObject0$7 || (_templateObject0$7 = _taggedTemplateLiteralLoose(["\n margin: 0;\n color: ", "\n font-weight: 500;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n"])), colors.white);
23718
+ var ActionsWrapper = styled__default.div(_templateObject1$4 || (_templateObject1$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
23719
+ var IconWrapper = styled__default.span(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n color: ", ";\n margin: ", ";\n\n & > svg {\n width: 28px;\n height: 28px;\n }\n\n ", "\n"])), colors.white, function (props) {
23732
23720
  return props.margin;
23733
23721
  }, function (props) {
23734
23722
  return props.hideInMobile && "\n @media (max-width: 550px) {\n display: none;\n }\n ";
23735
23723
  });
23736
- var CarouselItem = styled__default.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n opacity: ", ";\n\n img,\n video {\n //max-width: calc(100vw - 300px);\n min-width: 280px;\n max-width: 100%;\n max-height: calc(100vh - 200px);\n height: 100%;\n @media (max-width: 480px) {\n min-width: inherit;\n }\n }\n\n img {\n min-width: inherit;\n }\n"])), function (props) {
23724
+ var CarouselItem = styled__default.div(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n opacity: ", ";\n\n img,\n video {\n //max-width: calc(100vw - 300px);\n min-width: 280px;\n max-width: 100%;\n max-height: calc(100vh - 200px);\n height: 100%;\n @media (max-width: 480px) {\n min-width: inherit;\n }\n }\n\n img {\n min-width: inherit;\n }\n"])), function (props) {
23737
23725
  return props.visibleSlide ? 1 : 0;
23738
23726
  });
23739
- var UploadCont$1 = styled__default.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n //position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n min-height: 100px;\n min-width: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
23740
- var ArrowButton = styled__default.button(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n min-width: 60px;\n max-width: 60px;\n height: 60px;\n margin-right: ", ";\n margin-left: ", ";\n border: none;\n background: transparent;\n box-sizing: border-box;\n border-radius: 50%;\n line-height: 1px;\n align-self: center;\n outline: none;\n cursor: pointer;\n visibility: ", ";\n @media (max-width: 768px) {\n min-width: 36px;\n max-width: 36px;\n height: 36px;\n margin-right: ", ";\n margin-left: ", ";\n\n & > svg {\n width: 22px;\n height: 22px;\n }\n }\n @media (max-width: 450px) {\n min-width: 32px;\n max-width: 32px;\n height: 32px;\n\n & > svg {\n width: 20px;\n height: 20px;\n }\n }\n"])), function (props) {
23727
+ var UploadCont$1 = styled__default.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n //position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n min-height: 100px;\n min-width: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
23728
+ var ArrowButton = styled__default.button(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n min-width: 60px;\n max-width: 60px;\n height: 60px;\n margin-right: ", ";\n margin-left: ", ";\n border: none;\n background: transparent;\n box-sizing: border-box;\n border-radius: 50%;\n line-height: 1px;\n align-self: center;\n outline: none;\n cursor: pointer;\n visibility: ", ";\n @media (max-width: 768px) {\n min-width: 36px;\n max-width: 36px;\n height: 36px;\n margin-right: ", ";\n margin-left: ", ";\n\n & > svg {\n width: 22px;\n height: 22px;\n }\n }\n @media (max-width: 450px) {\n min-width: 32px;\n max-width: 32px;\n height: 32px;\n\n & > svg {\n width: 20px;\n height: 20px;\n }\n }\n"])), function (props) {
23741
23729
  return !props.leftButton && '24px';
23742
23730
  }, function (props) {
23743
23731
  return props.leftButton && '24px';
@@ -23885,7 +23873,7 @@ function SvgSelectionIcon(props) {
23885
23873
  })));
23886
23874
  }
23887
23875
 
23888
- var _templateObject$q, _templateObject2$m, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$a, _templateObject7$9, _templateObject8$9, _templateObject9$9, _templateObject10$8;
23876
+ var _templateObject$q, _templateObject2$m, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$a, _templateObject7$9, _templateObject8$9, _templateObject9$9, _templateObject0$8;
23889
23877
  var reactionsPrevLength = 0;
23890
23878
  function ReactionsPopup(_ref) {
23891
23879
  var messageId = _ref.messageId,
@@ -24113,7 +24101,7 @@ var ReactionScoreItem = styled__default.div(_templateObject8$9 || (_templateObje
24113
24101
  return props.active && !props.bubbleStyle && "\n &::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: -13px;\n width: 100%;\n height: 2px;\n background-color: " + (props.activeColor || colors.primary) + ";\n border-radius: 2px;\n }\n ";
24114
24102
  }, TabKey);
24115
24103
  var ReactionKey = styled__default.span(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n font-size: 20px;\n cursor: pointer;\n"])));
24116
- var ReactionItem$1 = styled__default.li(_templateObject10$8 || (_templateObject10$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 15px;\n padding: 6px 16px;\n transition: all 0.2s;\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), UserStatus);
24104
+ var ReactionItem$1 = styled__default.li(_templateObject0$8 || (_templateObject0$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 15px;\n padding: 6px 16px;\n transition: all 0.2s;\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), UserStatus);
24117
24105
 
24118
24106
  var _path$I;
24119
24107
  function _extends$J() {
@@ -26933,7 +26921,7 @@ var Timer$1 = styled__default.div(_templateObject6$c || (_templateObject6$c = _t
26933
26921
  return props.color;
26934
26922
  });
26935
26923
 
26936
- var _templateObject$u, _templateObject2$q, _templateObject3$k, _templateObject4$h, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$5, _templateObject12$3, _templateObject13$3;
26924
+ var _templateObject$u, _templateObject2$q, _templateObject3$k, _templateObject4$h, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$5, _templateObject10$3, _templateObject11$3;
26937
26925
  var Attachment = function Attachment(_ref) {
26938
26926
  var attachment = _ref.attachment,
26939
26927
  _ref$isPreview = _ref.isPreview,
@@ -27569,15 +27557,15 @@ var RemoveChosenFile = styled__default(SvgDeleteUpload)(_templateObject8$a || (_
27569
27557
  var AttachmentName = styled__default.h3(_templateObject9$a || (_templateObject9$a = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 500;\n line-height: 18px;\n color: ", ";\n max-width: 275px;\n white-space: nowrap;\n margin: 0;\n"])), function (props) {
27570
27558
  return props.color;
27571
27559
  });
27572
- var AttachmentSize = styled__default.span(_templateObject10$9 || (_templateObject10$9 = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n color: ", ";\n & > span {\n color: ", ";\n margin-left: 8px;\n }\n"])), function (props) {
27560
+ var AttachmentSize = styled__default.span(_templateObject0$9 || (_templateObject0$9 = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n color: ", ";\n & > span {\n color: ", ";\n margin-left: 8px;\n }\n"])), function (props) {
27573
27561
  return props.color;
27574
27562
  }, function (props) {
27575
27563
  return props.errorColor;
27576
27564
  });
27577
- var AttachmentFileInfo = styled__default.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n ", "\n"])), function (props) {
27565
+ var AttachmentFileInfo = styled__default.div(_templateObject1$5 || (_templateObject1$5 = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n ", "\n"])), function (props) {
27578
27566
  return props.isPreview && "line-height: 14px;\n max-width: calc(100% - 44px);\n ";
27579
27567
  });
27580
- var AttachmentImg$1 = styled__default.img(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n position: ", ";\n border-radius: ", ";\n border: ", ";\n box-sizing: border-box;\n max-width: 100%;\n max-height: ", ";\n width: ", ";\n height: ", ";\n min-height: ", ";\n min-width: ", ";\n object-fit: cover;\n visibility: ", ";\n z-index: 2;\n"])), function (props) {
27568
+ var AttachmentImg$1 = styled__default.img(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n position: ", ";\n border-radius: ", ";\n border: ", ";\n box-sizing: border-box;\n max-width: 100%;\n max-height: ", ";\n width: ", ";\n height: ", ";\n min-height: ", ";\n min-width: ", ";\n object-fit: cover;\n visibility: ", ";\n z-index: 2;\n"])), function (props) {
27581
27569
  return props.absolute && 'absolute';
27582
27570
  }, function (props) {
27583
27571
  return props.isRepliedMessage ? '4px' : props.borderRadius || '6px';
@@ -27596,7 +27584,7 @@ var AttachmentImg$1 = styled__default.img(_templateObject12$3 || (_templateObjec
27596
27584
  }, function (props) {
27597
27585
  return props.hidden && 'hidden';
27598
27586
  });
27599
- var VideoCont = styled__default.div(_templateObject13$3 || (_templateObject13$3 = _taggedTemplateLiteralLoose(["\n position: relative;\n cursor: pointer;\n height: ", ";\n"])), function (props) {
27587
+ var VideoCont = styled__default.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n position: relative;\n cursor: pointer;\n height: ", ";\n"])), function (props) {
27600
27588
  return props.isDetailsView && '100%';
27601
27589
  });
27602
27590
 
@@ -29141,7 +29129,7 @@ var FrequentlyEmojisContainer = styled__default.div(_templateObject5$h || (_temp
29141
29129
  return props.rtlDirection && '0';
29142
29130
  });
29143
29131
 
29144
- var _templateObject$B, _templateObject2$w, _templateObject3$q, _templateObject4$m, _templateObject5$i, _templateObject6$f, _templateObject7$d, _templateObject8$c, _templateObject9$b, _templateObject10$a, _templateObject11$6, _templateObject12$4, _templateObject13$4, _templateObject14$3;
29132
+ var _templateObject$B, _templateObject2$w, _templateObject3$q, _templateObject4$m, _templateObject5$i, _templateObject6$f, _templateObject7$d, _templateObject8$c, _templateObject9$b, _templateObject0$a, _templateObject1$6, _templateObject10$4, _templateObject11$4, _templateObject12$3;
29145
29133
  var Message$1 = function Message(_ref) {
29146
29134
  var message = _ref.message,
29147
29135
  channel = _ref.channel,
@@ -29323,12 +29311,12 @@ var Message$1 = function Message(_ref) {
29323
29311
  var _useState9 = React.useState(''),
29324
29312
  emojisPopupPosition = _useState9[0],
29325
29313
  setEmojisPopupPosition = _useState9[1];
29326
- var _useState10 = React.useState({
29314
+ var _useState0 = React.useState({
29327
29315
  left: 0,
29328
29316
  right: 0
29329
29317
  }),
29330
- reactionsPopupHorizontalPosition = _useState10[0],
29331
- setReactionsPopupHorizontalPosition = _useState10[1];
29318
+ reactionsPopupHorizontalPosition = _useState0[0],
29319
+ setReactionsPopupHorizontalPosition = _useState0[1];
29332
29320
  var messageItemRef = React.useRef();
29333
29321
  var isVisible = useOnScreen(messageItemRef);
29334
29322
  var reactionsCount = message.reactionTotals && message.reactionTotals.reduce(function (prevValue, currentValue) {
@@ -29883,20 +29871,20 @@ var ReactionsContainer = styled__default.div(_templateObject9$b || (_templateObj
29883
29871
  }, function (props) {
29884
29872
  return props.topPosition && "\n position: relative;\n top: " + props.topPosition + ";\n ";
29885
29873
  });
29886
- var MessageReactionsCont = styled__default.div(_templateObject10$a || (_templateObject10$a = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n max-width: 300px;\n direction: ", ";\n cursor: pointer;\n"])), function (props) {
29874
+ var MessageReactionsCont = styled__default.div(_templateObject0$a || (_templateObject0$a = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n max-width: 300px;\n direction: ", ";\n cursor: pointer;\n"])), function (props) {
29887
29875
  return props.rtlDirection && 'ltr';
29888
29876
  });
29889
- var MessageStatus$1 = styled__default.span(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n margin-left: 4px;\n text-align: right;\n height: ", ";\n & > svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
29877
+ var MessageStatus$1 = styled__default.span(_templateObject1$6 || (_templateObject1$6 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n margin-left: 4px;\n text-align: right;\n height: ", ";\n & > svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
29890
29878
  return props.height || '14px';
29891
29879
  });
29892
- var HiddenMessageTime$1 = styled__default.span(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n display: ", ";\n font-weight: 400;\n font-size: ", ";\n color: ", ";\n"])), function (props) {
29880
+ var HiddenMessageTime$1 = styled__default.span(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n display: ", ";\n font-weight: 400;\n font-size: ", ";\n color: ", ";\n"])), function (props) {
29893
29881
  return props.hide && 'none';
29894
29882
  }, function (props) {
29895
29883
  return props.fontSize || '12px';
29896
29884
  }, function (props) {
29897
29885
  return props.color;
29898
29886
  });
29899
- var MessageContent = styled__default.div(_templateObject13$4 || (_templateObject13$4 = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-right: ", ";\n //transform: ", ";\n max-width: ", ";\n\n display: flex;\n flex-direction: column;\n pointer-events: ", ";\n"])), function (props) {
29887
+ var MessageContent = styled__default.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-right: ", ";\n //transform: ", ";\n max-width: ", ";\n\n display: flex;\n flex-direction: column;\n pointer-events: ", ";\n"])), function (props) {
29900
29888
  return props.withAvatar && '13px';
29901
29889
  }, function (props) {
29902
29890
  return props.withAvatar && '13px';
@@ -29907,7 +29895,7 @@ var MessageContent = styled__default.div(_templateObject13$4 || (_templateObject
29907
29895
  }, function (props) {
29908
29896
  return props.selectionIsActive && 'none';
29909
29897
  });
29910
- var MessageItem = styled__default.div(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n margin-top: ", ";\n margin-bottom: ", ";\n padding: ", ";\n padding-left: ", ";\n padding-right: ", ";\n //transition: all 0.2s;\n width: 100%;\n box-sizing: border-box;\n transition: padding-left 0.2s;\n cursor: ", ";\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:hover ", " {\n display: inline-block;\n }\n &:hover .message_status_time {\n display: flex;\n visibility: visible;\n }\n\n &:hover ", " {\n visibility: visible;\n }\n"])), function (props) {
29898
+ var MessageItem = styled__default.div(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n margin-top: ", ";\n margin-bottom: ", ";\n padding: ", ";\n padding-left: ", ";\n padding-right: ", ";\n //transition: all 0.2s;\n width: 100%;\n box-sizing: border-box;\n transition: padding-left 0.2s;\n cursor: ", ";\n ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:hover ", " {\n display: inline-block;\n }\n &:hover .message_status_time {\n display: flex;\n visibility: visible;\n }\n\n &:hover ", " {\n visibility: visible;\n }\n"])), function (props) {
29911
29899
  return props.topMargin || '12px';
29912
29900
  }, function (props) {
29913
29901
  return props.bottomMargin;
@@ -29931,7 +29919,7 @@ var HiddenMessageProperty;
29931
29919
  HiddenMessageProperty["hideAfterSendMessage"] = "hideAfterSendMessage";
29932
29920
  })(HiddenMessageProperty || (HiddenMessageProperty = {}));
29933
29921
 
29934
- var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$c, _templateObject10$b, _templateObject11$7;
29922
+ var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$c, _templateObject0$b, _templateObject1$7;
29935
29923
  var loading = false;
29936
29924
  var loadFromServer = false;
29937
29925
  var loadDirection = '';
@@ -30871,10 +30859,10 @@ var MessageWrapper = styled__default.div(_templateObject8$d || (_templateObject8
30871
30859
  var NoMessagesContainer = styled__default.div(_templateObject9$c || (_templateObject9$c = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n width: 100%;\n font-weight: 400;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ", ";\n"])), function (props) {
30872
30860
  return props.color;
30873
30861
  });
30874
- var NoMessagesTitle = styled__default.h4(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n margin: 12px 0 8px;\n font-family: Inter, sans-serif;\n text-align: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n color: ", ";\n"])), function (props) {
30862
+ var NoMessagesTitle = styled__default.h4(_templateObject0$b || (_templateObject0$b = _taggedTemplateLiteralLoose(["\n margin: 12px 0 8px;\n font-family: Inter, sans-serif;\n text-align: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n color: ", ";\n"])), function (props) {
30875
30863
  return props.color;
30876
30864
  });
30877
- var NoMessagesText = styled__default.p(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n font-feature-settings:\n 'clig' off,\n 'liga' off;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
30865
+ var NoMessagesText = styled__default.p(_templateObject1$7 || (_templateObject1$7 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n font-feature-settings:\n 'clig' off,\n 'liga' off;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
30878
30866
  return props.color;
30879
30867
  });
30880
30868
 
@@ -31498,7 +31486,7 @@ function MentionsPlugin(_ref3) {
31498
31486
  if (nodeToReplace) {
31499
31487
  var replacedNode = nodeToReplace.replace(mentionNode);
31500
31488
  var appendedNode = replacedNode.insertAfter(lexical.$createTextNode(' '));
31501
- appendedNode.select();
31489
+ appendedNode.selectStart();
31502
31490
  }
31503
31491
  closeMenu();
31504
31492
  });
@@ -31965,7 +31953,7 @@ function useFloatingTextFormatToolbar(editor, anchorElem) {
31965
31953
  if (!nextSibling) {
31966
31954
  editor.update(function () {
31967
31955
  var appendedNode = node.insertAfter(lexical.$createTextNode(' '));
31968
- appendedNode.select(0, 0);
31956
+ appendedNode.selectStart();
31969
31957
  });
31970
31958
  }
31971
31959
  }
@@ -33204,7 +33192,7 @@ var Timer$2 = styled__default.div(_templateObject7$g || (_templateObject7$g = _t
33204
33192
  return props.color;
33205
33193
  });
33206
33194
 
33207
- var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h, _templateObject8$f, _templateObject9$d, _templateObject10$c, _templateObject11$8, _templateObject12$5, _templateObject13$5, _templateObject14$4, _templateObject15$3, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1, _templateObject35$1;
33195
+ var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h, _templateObject8$f, _templateObject9$d, _templateObject0$c, _templateObject1$8, _templateObject10$5, _templateObject11$5, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1;
33208
33196
  function AutoFocusPlugin(_ref) {
33209
33197
  var messageForReply = _ref.messageForReply;
33210
33198
  var _useLexicalComposerCo = LexicalComposerContext.useLexicalComposerContext(),
@@ -33394,66 +33382,66 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33394
33382
  var _useState9 = React.useState(false),
33395
33383
  emojisInRightSide = _useState9[0],
33396
33384
  setEmojisInRightSide = _useState9[1];
33397
- var _useState10 = React.useState(0),
33398
- emojisPopupLeftPosition = _useState10[0],
33399
- setEmojisPopupLeftPosition = _useState10[1];
33400
- var _useState11 = React.useState(0),
33401
- emojisPopupBottomPosition = _useState11[0],
33402
- setEmojisPopupBottomPosition = _useState11[1];
33403
- var _useState12 = React.useState(false),
33404
- addAttachmentsInRightSide = _useState12[0],
33405
- setAddAttachmentsInRightSide = _useState12[1];
33406
- var _useState13 = React.useState({
33385
+ var _useState0 = React.useState(0),
33386
+ emojisPopupLeftPosition = _useState0[0],
33387
+ setEmojisPopupLeftPosition = _useState0[1];
33388
+ var _useState1 = React.useState(0),
33389
+ emojisPopupBottomPosition = _useState1[0],
33390
+ setEmojisPopupBottomPosition = _useState1[1];
33391
+ var _useState10 = React.useState(false),
33392
+ addAttachmentsInRightSide = _useState10[0],
33393
+ setAddAttachmentsInRightSide = _useState10[1];
33394
+ var _useState11 = React.useState({
33407
33395
  clear: false
33408
33396
  }),
33409
- shouldClearEditor = _useState13[0],
33410
- setShouldClearEditor = _useState13[1];
33411
- var _useState14 = React.useState([]),
33412
- messageBodyAttributes = _useState14[0],
33413
- setMessageBodyAttributes = _useState14[1];
33414
- var _useState15 = React.useState([]),
33415
- mentionedMembers = _useState15[0],
33416
- setMentionedMembers = _useState15[1];
33417
- var _useState16 = React.useState(''),
33418
- browser = _useState16[0],
33419
- setBrowser = _useState16[1];
33420
- var _useState17 = React.useState(false),
33421
- mentionsIsOpen = _useState17[0],
33422
- setMentionsIsOpen = _useState17[1];
33423
- var _useState18 = React.useState(),
33424
- inputContainerHeight = _useState18[0],
33425
- setInputContainerHeight = _useState18[1];
33397
+ shouldClearEditor = _useState11[0],
33398
+ setShouldClearEditor = _useState11[1];
33399
+ var _useState12 = React.useState([]),
33400
+ messageBodyAttributes = _useState12[0],
33401
+ setMessageBodyAttributes = _useState12[1];
33402
+ var _useState13 = React.useState([]),
33403
+ mentionedMembers = _useState13[0],
33404
+ setMentionedMembers = _useState13[1];
33405
+ var _useState14 = React.useState(''),
33406
+ browser = _useState14[0],
33407
+ setBrowser = _useState14[1];
33408
+ var _useState15 = React.useState(false),
33409
+ mentionsIsOpen = _useState15[0],
33410
+ setMentionsIsOpen = _useState15[1];
33411
+ var _useState16 = React.useState(),
33412
+ inputContainerHeight = _useState16[0],
33413
+ setInputContainerHeight = _useState16[1];
33426
33414
  var selectedText = React.useRef(null);
33427
- var _useState19 = React.useState(),
33428
- typingTimout = _useState19[0],
33429
- setTypingTimout = _useState19[1];
33430
- var _useState20 = React.useState(),
33431
- inTypingStateTimout = _useState20[0],
33432
- setInTypingStateTimout = _useState20[1];
33433
- var _useState21 = React.useState(false),
33434
- inTypingState = _useState21[0],
33435
- setInTypingState = _useState21[1];
33415
+ var _useState17 = React.useState(),
33416
+ typingTimout = _useState17[0],
33417
+ setTypingTimout = _useState17[1];
33418
+ var _useState18 = React.useState(),
33419
+ inTypingStateTimout = _useState18[0],
33420
+ setInTypingStateTimout = _useState18[1];
33421
+ var _useState19 = React.useState(false),
33422
+ inTypingState = _useState19[0],
33423
+ setInTypingState = _useState19[1];
33424
+ var _useState20 = React.useState(false),
33425
+ sendMessageIsActive = _useState20[0],
33426
+ setSendMessageIsActive = _useState20[1];
33427
+ var _useState21 = React.useState([]),
33428
+ attachments = _useState21[0],
33429
+ setAttachments = _useState21[1];
33436
33430
  var _useState22 = React.useState(false),
33437
- sendMessageIsActive = _useState22[0],
33438
- setSendMessageIsActive = _useState22[1];
33439
- var _useState23 = React.useState([]),
33440
- attachments = _useState23[0],
33441
- setAttachments = _useState23[1];
33431
+ forwardPopupOpen = _useState22[0],
33432
+ setForwardPopupOpen = _useState22[1];
33433
+ var _useState23 = React.useState(false),
33434
+ deletePopupOpen = _useState23[0],
33435
+ setDeletePopupOpen = _useState23[1];
33442
33436
  var _useState24 = React.useState(false),
33443
- forwardPopupOpen = _useState24[0],
33444
- setForwardPopupOpen = _useState24[1];
33445
- var _useState25 = React.useState(false),
33446
- deletePopupOpen = _useState25[0],
33447
- setDeletePopupOpen = _useState25[1];
33448
- var _useState26 = React.useState(false),
33449
- isIncomingMessage = _useState26[0],
33450
- setIsIncomingMessage = _useState26[1];
33451
- var _useState27 = React.useState('.jpg,.jpeg,.png,.gif,.mp4,.mov,.avi,.wmv,.flv,.webm,.jfif'),
33452
- mediaExtensions = _useState27[0],
33453
- setMediaExtensions = _useState27[1];
33454
- var _useState28 = React.useState(''),
33455
- uploadErrorMessage = _useState28[0],
33456
- setUploadErrorMessage = _useState28[1];
33437
+ isIncomingMessage = _useState24[0],
33438
+ setIsIncomingMessage = _useState24[1];
33439
+ var _useState25 = React.useState('.jpg,.jpeg,.png,.gif,.mp4,.mov,.avi,.wmv,.flv,.webm,.jfif'),
33440
+ mediaExtensions = _useState25[0],
33441
+ setMediaExtensions = _useState25[1];
33442
+ var _useState26 = React.useState(''),
33443
+ uploadErrorMessage = _useState26[0],
33444
+ setUploadErrorMessage = _useState26[1];
33457
33445
  var typingIndicator = reactRedux.useSelector(typingIndicatorSelector(activeChannel.id));
33458
33446
  var contactsMap = reactRedux.useSelector(contactsMapSelector);
33459
33447
  var connectionStatus = reactRedux.useSelector(connectionStatusSelector, reactRedux.shallowEqual);
@@ -33463,15 +33451,15 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33463
33451
  var messageInputRef = React.useRef(null);
33464
33452
  var emojiBtnRef = React.useRef(null);
33465
33453
  var addAttachmentsBtnRef = React.useRef(null);
33466
- var _useState29 = React.useState(),
33467
- realEditorState = _useState29[0],
33468
- setRealEditorState = _useState29[1];
33469
- var _useState30 = React.useState(null),
33470
- floatingAnchorElem = _useState30[0],
33471
- setFloatingAnchorElem = _useState30[1];
33472
- var _useState31 = React.useState(false),
33473
- isSmallWidthViewport = _useState31[0],
33474
- setIsSmallWidthViewport = _useState31[1];
33454
+ var _useState27 = React.useState(),
33455
+ realEditorState = _useState27[0],
33456
+ setRealEditorState = _useState27[1];
33457
+ var _useState28 = React.useState(null),
33458
+ floatingAnchorElem = _useState28[0],
33459
+ setFloatingAnchorElem = _useState28[1];
33460
+ var _useState29 = React.useState(false),
33461
+ isSmallWidthViewport = _useState29[0],
33462
+ setIsSmallWidthViewport = _useState29[1];
33475
33463
  var addAttachmentByMenu = showChooseFileAttachment && showChooseMediaAttachment;
33476
33464
  function onChange(editorState) {
33477
33465
  setRealEditorState(editorState);
@@ -33855,7 +33843,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33855
33843
  fileChecksum = "" + reader.result;
33856
33844
  }
33857
33845
  return Promise.resolve(hashString(fileChecksum || '')).then(function (checksumHash) {
33858
- function _temp12() {
33846
+ function _temp10() {
33859
33847
  if (dataFromDb) {
33860
33848
  cachedUrl = dataFromDb.url;
33861
33849
  setPendingAttachment(tid, {
@@ -33867,7 +33855,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33867
33855
  checksum: checksumHash
33868
33856
  });
33869
33857
  }
33870
- var _temp10 = function () {
33858
+ var _temp0 = function () {
33871
33859
  if (customUploader) {
33872
33860
  if (fileType === 'image') {
33873
33861
  resizeImage(file).then(function (resizedFile) {
@@ -33931,10 +33919,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33931
33919
  tid: tid,
33932
33920
  type: fileType,
33933
33921
  size: dataFromDb ? dataFromDb.size : file.size,
33934
- metadata: dataFromDb ? _metas : JSON.stringify({
33935
- tmb: _metas.thumbnail,
33936
- szw: _metas.imageWidth,
33937
- szh: _metas.imageHeight
33922
+ metadata: dataFromDb ? metas : JSON.stringify({
33923
+ tmb: metas.thumbnail,
33924
+ szw: metas.imageWidth,
33925
+ szh: metas.imageHeight
33938
33926
  })
33939
33927
  }]);
33940
33928
  });
@@ -33949,7 +33937,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33949
33937
  tid: tid,
33950
33938
  type: fileType,
33951
33939
  size: dataFromDb.size,
33952
- metadata: _metas
33940
+ metadata: metas
33953
33941
  }]);
33954
33942
  });
33955
33943
  } else {
@@ -33965,7 +33953,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33965
33953
  type: fileType,
33966
33954
  size: resizedFile.size,
33967
33955
  metadata: JSON.stringify({
33968
- tmb: _metas.thumbnail,
33956
+ tmb: metas.thumbnail,
33969
33957
  szw: resizedFileData.newWidth,
33970
33958
  szh: resizedFileData.newHeight
33971
33959
  })
@@ -33979,18 +33967,18 @@ var SendMessageInput = function SendMessageInput(_ref3) {
33979
33967
  }
33980
33968
  }
33981
33969
  };
33982
- var _metas = {};
33970
+ var metas = {};
33983
33971
  var _temp = function () {
33984
33972
  if (dataFromDb) {
33985
- _metas = dataFromDb.metadata;
33973
+ metas = dataFromDb.metadata;
33986
33974
  } else {
33987
33975
  return Promise.resolve(createImageThumbnail(file)).then(function (_ref4) {
33988
33976
  var thumbnail = _ref4.thumbnail,
33989
33977
  imageWidth = _ref4.imageWidth,
33990
33978
  imageHeight = _ref4.imageHeight;
33991
- _metas.imageHeight = imageHeight;
33992
- _metas.imageWidth = imageWidth;
33993
- _metas.thumbnail = thumbnail;
33979
+ metas.imageHeight = imageHeight;
33980
+ metas.imageWidth = imageWidth;
33981
+ metas.thumbnail = thumbnail;
33994
33982
  });
33995
33983
  }
33996
33984
  }();
@@ -34006,20 +33994,20 @@ var SendMessageInput = function SendMessageInput(_ref3) {
34006
33994
  attachmentUrl: URL.createObjectURL(file),
34007
33995
  tid: tid,
34008
33996
  size: dataFromDb ? dataFromDb.size : file.size,
34009
- metadata: dataFromDb ? _metas2 : JSON.stringify({
34010
- tmb: _metas2.thumbnail
33997
+ metadata: dataFromDb ? _metas : JSON.stringify({
33998
+ tmb: _metas.thumbnail
34011
33999
  })
34012
34000
  }]);
34013
34001
  });
34014
34002
  };
34015
- var _metas2 = {};
34003
+ var _metas = {};
34016
34004
  var _temp3 = function () {
34017
34005
  if (dataFromDb) {
34018
- _metas2 = dataFromDb.metadata;
34006
+ _metas = dataFromDb.metadata;
34019
34007
  } else {
34020
34008
  return Promise.resolve(createImageThumbnail(file, undefined, 50, 50)).then(function (_ref5) {
34021
34009
  var thumbnail = _ref5.thumbnail;
34022
- _metas2.thumbnail = thumbnail;
34010
+ _metas.thumbnail = thumbnail;
34023
34011
  });
34024
34012
  }
34025
34013
  }();
@@ -34028,7 +34016,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
34028
34016
  }();
34029
34017
  if (_temp5 && _temp5.then) return _temp5.then(function () {});
34030
34018
  } else {
34031
- var _temp13 = function () {
34019
+ var _temp11 = function () {
34032
34020
  if (fileType === 'video') {
34033
34021
  var _temp7 = function _temp7() {
34034
34022
  setAttachments(function (prevState) {
@@ -34040,23 +34028,23 @@ var SendMessageInput = function SendMessageInput(_ref3) {
34040
34028
  size: dataFromDb ? dataFromDb.size : file.size,
34041
34029
  attachmentUrl: URL.createObjectURL(file),
34042
34030
  tid: tid,
34043
- metadata: _metas3
34031
+ metadata: metas
34044
34032
  }]);
34045
34033
  });
34046
34034
  };
34047
- var _metas3 = {};
34035
+ var metas = {};
34048
34036
  var _temp6 = function () {
34049
34037
  if (dataFromDb) {
34050
- _metas3 = dataFromDb.metadata;
34038
+ metas = dataFromDb.metadata;
34051
34039
  } else {
34052
34040
  return Promise.resolve(getFrame(URL.createObjectURL(file), 0)).then(function (_ref6) {
34053
34041
  var thumb = _ref6.thumb,
34054
34042
  width = _ref6.width,
34055
34043
  height = _ref6.height;
34056
- _metas3.tmb = thumb;
34057
- _metas3.width = width;
34058
- _metas3.height = height;
34059
- _metas3 = JSON.stringify(_metas3);
34044
+ metas.tmb = thumb;
34045
+ metas.width = width;
34046
+ metas.height = height;
34047
+ metas = JSON.stringify(metas);
34060
34048
  });
34061
34049
  }
34062
34050
  }();
@@ -34075,23 +34063,23 @@ var SendMessageInput = function SendMessageInput(_ref3) {
34075
34063
  });
34076
34064
  }
34077
34065
  }();
34078
- if (_temp13 && _temp13.then) return _temp13.then(function () {});
34066
+ if (_temp11 && _temp11.then) return _temp11.then(function () {});
34079
34067
  }
34080
34068
  }();
34081
34069
  if (_temp9 && _temp9.then) return _temp9.then(function () {});
34082
34070
  }
34083
34071
  }();
34084
- if (_temp10 && _temp10.then) return _temp10.then(function () {});
34072
+ if (_temp0 && _temp0.then) return _temp0.then(function () {});
34085
34073
  }
34086
34074
  var dataFromDb;
34087
- var _temp11 = _catch(function () {
34075
+ var _temp1 = _catch(function () {
34088
34076
  return Promise.resolve(_getDataFromDB(DB_NAMES.FILES_STORAGE, DB_STORE_NAMES.ATTACHMENTS, checksumHash, 'checksum')).then(function (_getDataFromDB) {
34089
34077
  dataFromDb = _getDataFromDB;
34090
34078
  });
34091
34079
  }, function (e) {
34092
34080
  log.error('error in get data from db . . . . ', e);
34093
34081
  });
34094
- return _temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11);
34082
+ return _temp1 && _temp1.then ? _temp1.then(_temp10) : _temp10(_temp1);
34095
34083
  });
34096
34084
  } catch (e) {
34097
34085
  return Promise.reject(e);
@@ -34354,10 +34342,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
34354
34342
  var windowHeight = window.innerHeight;
34355
34343
  var _emojiBtnRef$current$ = emojiBtnRef.current.getBoundingClientRect(),
34356
34344
  left = _emojiBtnRef$current$.left,
34357
- width = _emojiBtnRef$current$.width,
34345
+ _width = _emojiBtnRef$current$.width,
34358
34346
  top = _emojiBtnRef$current$.top;
34359
34347
  setEmojisPopupBottomPosition(windowHeight - top);
34360
- setEmojisPopupLeftPosition(left - width / 2);
34348
+ setEmojisPopupLeftPosition(left - _width / 2);
34361
34349
  if (emojiBtnRef.current.getBoundingClientRect().left > messageInputRef.current.getBoundingClientRect().left) {
34362
34350
  setEmojisInRightSide(true);
34363
34351
  }
@@ -34732,7 +34720,7 @@ var ReplyMessageBody$1 = styled__default.div(_templateObject8$f || (_templateObj
34732
34720
  var EditReplyMessageHeader = styled__default.h4(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: 0 0 2px;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n\n > svg {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
34733
34721
  return props.color;
34734
34722
  });
34735
- var AddAttachmentIcon = styled__default.span(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n margin: 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n\n > svg {\n ", ";\n width: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
34723
+ var AddAttachmentIcon = styled__default.span(_templateObject0$c || (_templateObject0$c = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n margin: 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n\n > svg {\n ", ";\n width: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
34736
34724
  return props.height ? props.height + "px" : '36px';
34737
34725
  }, function (props) {
34738
34726
  return props.order === 0 || props.order ? props.order : 1;
@@ -34741,21 +34729,21 @@ var AddAttachmentIcon = styled__default.span(_templateObject10$c || (_templateOb
34741
34729
  }, function (props) {
34742
34730
  return props.hoverColor;
34743
34731
  });
34744
- var SendMessageInputContainer = styled__default.div(_templateObject11$8 || (_templateObject11$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
34732
+ var SendMessageInputContainer = styled__default.div(_templateObject1$8 || (_templateObject1$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
34745
34733
  return props.minHeight || '36px';
34746
34734
  }, function (props) {
34747
34735
  return props.messageForReply ? '0 0 4px 4px' : '4px';
34748
34736
  }, AddAttachmentIcon, function (props) {
34749
34737
  return props.iconColor;
34750
34738
  });
34751
- var MessageInputWrapper = styled__default.div(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n max-width: calc(100% - 50px);\n //max-width: ", ";\n //max-width: calc(100% - 110px);\n background-color: ", ";\n border-radius: ", ";\n position: relative;\n"])), function (props) {
34739
+ var MessageInputWrapper = styled__default.div(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n max-width: calc(100% - 50px);\n //max-width: ", ";\n //max-width: calc(100% - 110px);\n background-color: ", ";\n border-radius: ", ";\n position: relative;\n"])), function (props) {
34752
34740
  return props.channelDetailsIsOpen ? "calc(100% - " + (props.channelDetailsIsOpen ? 362 : 0) + "px)" : '';
34753
34741
  }, function (props) {
34754
34742
  return props.backgroundColor;
34755
34743
  }, function (props) {
34756
34744
  return props.borderRadius || '18px';
34757
34745
  });
34758
- var LexicalWrapper = styled__default.div(_templateObject13$5 || (_templateObject13$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n\n & .rich_text_editor {\n width: 100%;\n max-height: 80px;\n min-height: 20px;\n display: block;\n border: none;\n box-sizing: border-box;\n outline: none !important;\n overflow: auto;\n border-radius: ", ";\n background-color: ", ";\n padding: ", ";\n color: ", ";\n order: ", ";\n\n & p {\n font-size: 15px;\n line-height: 20px;\n color: ", ";\n }\n\n &::selection {\n background-color: ", ";\n }\n\n & *::selection {\n background-color: ", ";\n }\n\n & span::selection {\n background-color: ", ";\n }\n\n &:empty:before {\n content: attr(data-placeholder);\n }\n\n & .content_editable_input {\n border: none !important;\n outline: none !important;\n }\n\n & .mention {\n color: ", ";\n background-color: inherit !important;\n user-modify: read-only;\n }\n\n & span.bold {\n font-weight: bold;\n }\n\n & .editor_paragraph {\n margin: 0;\n }\n\n & .text_bold {\n font-weight: 600;\n }\n\n & .text_italic {\n font-style: italic;\n }\n\n & .text_underline {\n text-decoration: underline;\n }\n\n & .text_strikethrough {\n text-decoration: line-through;\n }\n\n & .text_underlineStrikethrough {\n text-decoration: underline line-through;\n }\n\n & code {\n font-family: inherit;\n letter-spacing: 4px;\n }\n }\n"])), function (props) {
34746
+ var LexicalWrapper = styled__default.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n\n & .rich_text_editor {\n width: 100%;\n max-height: 80px;\n min-height: 20px;\n display: block;\n border: none;\n box-sizing: border-box;\n outline: none !important;\n overflow: auto;\n border-radius: ", ";\n background-color: ", ";\n padding: ", ";\n color: ", ";\n order: ", ";\n\n & p {\n font-size: 15px;\n line-height: 20px;\n color: ", ";\n }\n\n &::selection {\n background-color: ", ";\n }\n\n & *::selection {\n background-color: ", ";\n }\n\n & span::selection {\n background-color: ", ";\n }\n\n &:empty:before {\n content: attr(data-placeholder);\n }\n\n & .content_editable_input {\n border: none !important;\n outline: none !important;\n }\n\n & .mention {\n color: ", ";\n background-color: inherit !important;\n user-modify: read-only;\n }\n\n & span.bold {\n font-weight: bold;\n }\n\n & .editor_paragraph {\n margin: 0;\n }\n\n & .text_bold {\n font-weight: 600;\n }\n\n & .text_italic {\n font-style: italic;\n }\n\n & .text_underline {\n text-decoration: underline;\n }\n\n & .text_strikethrough {\n text-decoration: line-through;\n }\n\n & .text_underlineStrikethrough {\n text-decoration: underline line-through;\n }\n\n & code {\n font-family: inherit;\n letter-spacing: 4px;\n }\n }\n"])), function (props) {
34759
34747
  return props.borderRadius;
34760
34748
  }, function (props) {
34761
34749
  return props.backgroundColor;
@@ -34776,12 +34764,12 @@ var LexicalWrapper = styled__default.div(_templateObject13$5 || (_templateObject
34776
34764
  }, function (props) {
34777
34765
  return props.mentionColor;
34778
34766
  });
34779
- var Placeholder = styled__default.span(_templateObject14$4 || (_templateObject14$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n color: ", ";\n padding: ", ";\n line-height: 20px;\n\n @media (max-width: 768px) {\n font-size: 13px;\n }\n"])), function (props) {
34767
+ var Placeholder = styled__default.span(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n color: ", ";\n padding: ", ";\n line-height: 20px;\n\n @media (max-width: 768px) {\n font-size: 13px;\n }\n"])), function (props) {
34780
34768
  return props.color || colors.placeholderTextColor;
34781
34769
  }, function (props) {
34782
34770
  return props.paddings || '8px 6px';
34783
34771
  });
34784
- var EmojiButton = styled__default.span(_templateObject15$3 || (_templateObject15$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n position: relative;\n margin: auto 8px 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n -webkit-tap-highlight-color: transparent;\n\n > svg {\n ", ";\n width: 24px;\n height: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
34772
+ var EmojiButton = styled__default.span(_templateObject13$3 || (_templateObject13$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n position: relative;\n margin: auto 8px 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n -webkit-tap-highlight-color: transparent;\n\n > svg {\n ", ";\n width: 24px;\n height: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
34785
34773
  return props.height ? props.height + "px" : '36px';
34786
34774
  }, function (props) {
34787
34775
  return props.order === 0 || props.order ? props.order : 2;
@@ -34790,48 +34778,48 @@ var EmojiButton = styled__default.span(_templateObject15$3 || (_templateObject15
34790
34778
  }, function (props) {
34791
34779
  return props.hoverColor;
34792
34780
  });
34793
- var SendMessageButton = styled__default.span(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (props) {
34781
+ var SendMessageButton = styled__default.span(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (props) {
34794
34782
  return !props.isCustomButton && "\n display: flex;\n height: " + (props.height ? props.height + "px" : '36px') + ";\n align-items: center;\n // margin: 0 8px 0 auto;\n cursor: " + (props.isActive && 'pointer') + ";\n line-height: 13px;\n order: " + (props.order === 0 || props.order ? props.order : 4) + ";\n -webkit-tap-highlight-color: transparent;\n\n color: " + (props.isActive ? colors.primary : props.color) + ";\n & > svg {\n color: " + props.iconColor + ";\n }\n ";
34795
34783
  });
34796
- var AudioCont = styled__default.div(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n justify-content: flex-end;\n"])));
34797
- var ChosenAttachments = styled__default.div(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 16px 16px 14px;\n overflow-x: auto;\n\n & ", " {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n object-fit: cover;\n }\n\n & ", " {\n width: 240px;\n padding: 5px 12px;\n border-radius: 8px;\n height: 50px;\n }\n"])), AttachmentImg$1, AttachmentFile$1);
34798
- var TypingIndicator$1 = styled__default.div(_templateObject19$2 || (_templateObject19$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 100%;\n left: 16px;\n"])));
34799
- var TypingIndicatorCont = styled__default.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n"])));
34800
- var TypingFrom = styled__default.h5(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n margin: 0 4px 0 0;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n letter-spacing: -0.2px;\n color: ", ";\n"])), function (props) {
34784
+ var AudioCont = styled__default.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n justify-content: flex-end;\n"])));
34785
+ var ChosenAttachments = styled__default.div(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 16px 16px 14px;\n overflow-x: auto;\n\n & ", " {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n object-fit: cover;\n }\n\n & ", " {\n width: 240px;\n padding: 5px 12px;\n border-radius: 8px;\n height: 50px;\n }\n"])), AttachmentImg$1, AttachmentFile$1);
34786
+ var TypingIndicator$1 = styled__default.div(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 100%;\n left: 16px;\n"])));
34787
+ var TypingIndicatorCont = styled__default.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n"])));
34788
+ var TypingFrom = styled__default.h5(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n margin: 0 4px 0 0;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n letter-spacing: -0.2px;\n color: ", ";\n"])), function (props) {
34801
34789
  return props.color;
34802
34790
  });
34803
- var sizeAnimation = styled.keyframes(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n 0% {\n width: 2px;\n height: 2px;\n opacity: 0.4;\n }\n 50% {\n width: 2px;\n height: 2px;\n opacity: 0.4;\n }\n 100% {\n width: 6px;\n height: 6px;\n opacity: 1;\n }\n"])));
34804
- var DotOne = styled__default.span(_templateObject23$1 || (_templateObject23$1 = _taggedTemplateLiteralLoose([""])));
34805
- var DotTwo = styled__default.span(_templateObject24$1 || (_templateObject24$1 = _taggedTemplateLiteralLoose([""])));
34806
- var DotThree = styled__default.span(_templateObject25$1 || (_templateObject25$1 = _taggedTemplateLiteralLoose([""])));
34807
- var TypingAnimation = styled__default.div(_templateObject26$1 || (_templateObject26$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n & > span {\n position: relative;\n width: 6px;\n height: 6px;\n margin-right: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n animation-timing-function: linear;\n\n &:after {\n content: '';\n position: absolute;\n\n width: 3.5px;\n height: 3.5px;\n border-radius: 50%;\n background-color: ", ";\n animation-name: ", ";\n animation-duration: 0.6s;\n animation-iteration-count: infinite;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0s;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0.2s;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0.3s;\n }\n }\n"])), colors.borderColor2, sizeAnimation, DotOne, DotTwo, DotThree);
34808
- var Loading = styled__default.div(_templateObject27$1 || (_templateObject27$1 = _taggedTemplateLiteralLoose(["\n height: 36px;\n"])));
34809
- var BlockedUserInfo = styled__default.div(_templateObject28$1 || (_templateObject28$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n font-weight: 400;\n font-size: 15px;\n line-height: 20px;\n color: ", ";\n\n & > svg {\n margin-right: 12px;\n }\n"])), function (props) {
34791
+ var sizeAnimation = styled.keyframes(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n 0% {\n width: 2px;\n height: 2px;\n opacity: 0.4;\n }\n 50% {\n width: 2px;\n height: 2px;\n opacity: 0.4;\n }\n 100% {\n width: 6px;\n height: 6px;\n opacity: 1;\n }\n"])));
34792
+ var DotOne = styled__default.span(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose([""])));
34793
+ var DotTwo = styled__default.span(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose([""])));
34794
+ var DotThree = styled__default.span(_templateObject23$1 || (_templateObject23$1 = _taggedTemplateLiteralLoose([""])));
34795
+ var TypingAnimation = styled__default.div(_templateObject24$1 || (_templateObject24$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n\n & > span {\n position: relative;\n width: 6px;\n height: 6px;\n margin-right: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n animation-timing-function: linear;\n\n &:after {\n content: '';\n position: absolute;\n\n width: 3.5px;\n height: 3.5px;\n border-radius: 50%;\n background-color: ", ";\n animation-name: ", ";\n animation-duration: 0.6s;\n animation-iteration-count: infinite;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0s;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0.2s;\n }\n }\n\n & ", " {\n &:after {\n animation-delay: 0.3s;\n }\n }\n"])), colors.borderColor2, sizeAnimation, DotOne, DotTwo, DotThree);
34796
+ var Loading = styled__default.div(_templateObject25$1 || (_templateObject25$1 = _taggedTemplateLiteralLoose(["\n height: 36px;\n"])));
34797
+ var BlockedUserInfo = styled__default.div(_templateObject26$1 || (_templateObject26$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n font-weight: 400;\n font-size: 15px;\n line-height: 20px;\n color: ", ";\n\n & > svg {\n margin-right: 12px;\n }\n"])), function (props) {
34810
34798
  return props.color;
34811
34799
  });
34812
- var JoinChannelCont = styled__default.div(_templateObject29$1 || (_templateObject29$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 -12px;\n padding: 14px;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n background-color: ", ";\n cursor: pointer;\n"])), function (props) {
34800
+ var JoinChannelCont = styled__default.div(_templateObject27$1 || (_templateObject27$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 -12px;\n padding: 14px;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n background-color: ", ";\n cursor: pointer;\n"])), function (props) {
34813
34801
  return props.color || colors.primary;
34814
34802
  }, function (props) {
34815
34803
  return props.backgroundColor;
34816
34804
  });
34817
- var ReadOnlyCont = styled__default.div(_templateObject30$1 || (_templateObject30$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n\n & > svg {\n margin-right: 12px;\n color: ", ";\n }\n"])), function (props) {
34805
+ var ReadOnlyCont = styled__default.div(_templateObject28$1 || (_templateObject28$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 12px;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n\n & > svg {\n margin-right: 12px;\n color: ", ";\n }\n"])), function (props) {
34818
34806
  return props.color;
34819
34807
  }, function (props) {
34820
34808
  return props.iconColor || colors.primary;
34821
34809
  });
34822
- var ReplyMessageCont = styled__default.div(_templateObject31$1 || (_templateObject31$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
34823
- var ReplyIconWrapper = styled__default.span(_templateObject32$1 || (_templateObject32$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n width: 40px;\n height: 40px;\n background-color: ", ";\n border-radius: 50%;\n\n & > svg {\n width: 20px;\n height: 20px;\n color: ", ";\n }\n"])), function (props) {
34810
+ var ReplyMessageCont = styled__default.div(_templateObject29$1 || (_templateObject29$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
34811
+ var ReplyIconWrapper = styled__default.span(_templateObject30$1 || (_templateObject30$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n width: 40px;\n height: 40px;\n background-color: ", ";\n border-radius: 50%;\n\n & > svg {\n width: 20px;\n height: 20px;\n color: ", ";\n }\n"])), function (props) {
34824
34812
  return props.backgroundColor;
34825
34813
  }, colors.white);
34826
- var SelectedMessagesWrapper = styled__default.div(_templateObject33$1 || (_templateObject33$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 12px 16px;\n"])));
34827
- var CustomButton = styled__default.span(_templateObject34$1 || (_templateObject34$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n padding: 8px 16px;\n background-color: ", ";\n margin-left: ", ";\n border-radius: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n\n > svg {\n width: 20px;\n height: 20px;\n margin-right: 8px;\n }\n"])), function (props) {
34814
+ var SelectedMessagesWrapper = styled__default.div(_templateObject31$1 || (_templateObject31$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 12px 16px;\n"])));
34815
+ var CustomButton = styled__default.span(_templateObject32$1 || (_templateObject32$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n padding: 8px 16px;\n background-color: ", ";\n margin-left: ", ";\n border-radius: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n\n > svg {\n width: 20px;\n height: 20px;\n margin-right: 8px;\n }\n"])), function (props) {
34828
34816
  return props.color;
34829
34817
  }, function (props) {
34830
34818
  return props.backgroundColor || colors.primaryLight;
34831
34819
  }, function (props) {
34832
34820
  return props.marginLeft || '8px';
34833
34821
  });
34834
- var CloseIconWrapper = styled__default.span(_templateObject35$1 || (_templateObject35$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n cursor: pointer;\n margin-left: auto;\n padding: 10px;\n"])));
34822
+ var CloseIconWrapper = styled__default.span(_templateObject33$1 || (_templateObject33$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n cursor: pointer;\n margin-left: auto;\n padding: 10px;\n"])));
34835
34823
 
34836
34824
  var _path$1c;
34837
34825
  function _extends$1g() {
@@ -35028,7 +35016,7 @@ function SvgUnpin(props) {
35028
35016
  })));
35029
35017
  }
35030
35018
 
35031
- var _templateObject$I, _templateObject2$D, _templateObject3$w, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i, _templateObject8$g, _templateObject9$e, _templateObject10$d, _templateObject11$9, _templateObject12$6, _templateObject13$6, _templateObject14$5, _templateObject15$4, _templateObject16$3, _templateObject17$3, _templateObject18$3;
35019
+ var _templateObject$I, _templateObject2$D, _templateObject3$w, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i, _templateObject8$g, _templateObject9$e, _templateObject0$d, _templateObject1$9, _templateObject10$6, _templateObject11$6, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3;
35032
35020
  var Actions = function Actions(_ref) {
35033
35021
  var _channel$metadata;
35034
35022
  var channel = _ref.channel,
@@ -35141,9 +35129,9 @@ var Actions = function Actions(_ref) {
35141
35129
  var _useState9 = React.useState(''),
35142
35130
  popupButtonText = _useState9[0],
35143
35131
  setPopupButtonText = _useState9[1];
35144
- var _useState10 = React.useState(''),
35145
- popupTitle = _useState10[0],
35146
- setPopupTitle = _useState10[1];
35132
+ var _useState0 = React.useState(''),
35133
+ popupTitle = _useState0[0],
35134
+ setPopupTitle = _useState0[1];
35147
35135
  var dispatch = reactRedux.useDispatch();
35148
35136
  var oneHour = 60 * 60 * 1000;
35149
35137
  var twoHours = oneHour * 2;
@@ -35500,15 +35488,15 @@ var DefaultMuteIcon = styled__default(SvgNotifications)(_templateObject6$k || (_
35500
35488
  var DefaultStarIcon = styled__default(SvgStar)(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose([""])));
35501
35489
  var DefaultUnpinIcon = styled__default(SvgUnpin)(_templateObject8$g || (_templateObject8$g = _taggedTemplateLiteralLoose([""])));
35502
35490
  var DefaultPinIcon = styled__default(SvgPin)(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose([""])));
35503
- var DefaultMarkAsRead = styled__default(SvgMarkAsRead)(_templateObject10$d || (_templateObject10$d = _taggedTemplateLiteralLoose([""])));
35504
- var DefaultMarkAsUnRead = styled__default(SvgMarkAsUnRead)(_templateObject11$9 || (_templateObject11$9 = _taggedTemplateLiteralLoose([""])));
35505
- var DefaultBlockIcon = styled__default(SvgBlockChannel)(_templateObject12$6 || (_templateObject12$6 = _taggedTemplateLiteralLoose([""])));
35506
- var DefaultReportIcon = styled__default(SvgReport)(_templateObject13$6 || (_templateObject13$6 = _taggedTemplateLiteralLoose([""])));
35507
- var DefaultClearIcon = styled__default(SvgClear)(_templateObject14$5 || (_templateObject14$5 = _taggedTemplateLiteralLoose([""])));
35508
- var DefaultDeleteChannelIcon = styled__default(SvgDeleteChannel)(_templateObject15$4 || (_templateObject15$4 = _taggedTemplateLiteralLoose([""])));
35509
- var DefaultBottomIcon = styled__default(SvgBottom)(_templateObject16$3 || (_templateObject16$3 = _taggedTemplateLiteralLoose([""])));
35510
- var DefaultMarkAsReadIcon = styled__default(SvgLeave)(_templateObject17$3 || (_templateObject17$3 = _taggedTemplateLiteralLoose([""])));
35511
- var ActionItem = styled__default.li(_templateObject18$3 || (_templateObject18$3 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n padding: 10px 0;\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n order: ", ";\n pointer-events: ", ";\n\n & > div {\n margin-left: auto;\n }\n\n & > svg {\n margin-right: 16px;\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n\n &:last-child {\n //margin-bottom: 0;\n }\n"])), function (props) {
35491
+ var DefaultMarkAsRead = styled__default(SvgMarkAsRead)(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose([""])));
35492
+ var DefaultMarkAsUnRead = styled__default(SvgMarkAsUnRead)(_templateObject1$9 || (_templateObject1$9 = _taggedTemplateLiteralLoose([""])));
35493
+ var DefaultBlockIcon = styled__default(SvgBlockChannel)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose([""])));
35494
+ var DefaultReportIcon = styled__default(SvgReport)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose([""])));
35495
+ var DefaultClearIcon = styled__default(SvgClear)(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose([""])));
35496
+ var DefaultDeleteChannelIcon = styled__default(SvgDeleteChannel)(_templateObject13$4 || (_templateObject13$4 = _taggedTemplateLiteralLoose([""])));
35497
+ var DefaultBottomIcon = styled__default(SvgBottom)(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteralLoose([""])));
35498
+ var DefaultMarkAsReadIcon = styled__default(SvgLeave)(_templateObject15$3 || (_templateObject15$3 = _taggedTemplateLiteralLoose([""])));
35499
+ var ActionItem = styled__default.li(_templateObject16$3 || (_templateObject16$3 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n padding: 10px 0;\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n order: ", ";\n pointer-events: ", ";\n\n & > div {\n margin-left: auto;\n }\n\n & > svg {\n margin-right: 16px;\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n\n &:last-child {\n //margin-bottom: 0;\n }\n"])), function (props) {
35512
35500
  return props.fontSize || '15px';
35513
35501
  }, function (props) {
35514
35502
  return props.color;
@@ -37056,7 +37044,7 @@ var EditChannel = function EditChannel(_ref) {
37056
37044
  })));
37057
37045
  };
37058
37046
 
37059
- var _templateObject$T, _templateObject2$M, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$o, _templateObject7$m, _templateObject8$k, _templateObject9$g, _templateObject10$e, _templateObject11$a, _templateObject12$7;
37047
+ var _templateObject$T, _templateObject2$M, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$o, _templateObject7$m, _templateObject8$k, _templateObject9$g, _templateObject0$e, _templateObject1$a, _templateObject10$7;
37060
37048
  var Details = function Details(_ref) {
37061
37049
  var _activeChannel$metada;
37062
37050
  var detailsTitleText = _ref.detailsTitleText,
@@ -37451,15 +37439,15 @@ var DetailsHeader = styled__default.div(_templateObject8$k || (_templateObject8$
37451
37439
  var ChannelAvatarAndName = styled__default.div(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n flex-direction: ", ";\n"])), function (props) {
37452
37440
  return props.direction;
37453
37441
  });
37454
- var ChannelName$1 = styled__default(SectionHeader)(_templateObject10$e || (_templateObject10$e = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n max-width: ", ";\n text-overflow: ellipsis;\n text-color: ", ";\n overflow: hidden;\n text-transform: ", ";\n"])), function (props) {
37442
+ var ChannelName$1 = styled__default(SectionHeader)(_templateObject0$e || (_templateObject0$e = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n max-width: ", ";\n text-overflow: ellipsis;\n text-color: ", ";\n overflow: hidden;\n text-transform: ", ";\n"])), function (props) {
37455
37443
  return props.isDirect ? '200px' : '168px';
37456
37444
  }, function (props) {
37457
37445
  return props.color;
37458
37446
  }, function (props) {
37459
37447
  return props.uppercase && 'uppercase';
37460
37448
  });
37461
- var ChannelNameWrapper = styled__default.div(_templateObject11$a || (_templateObject11$a = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
37462
- var EditButton = styled__default.span(_templateObject12$7 || (_templateObject12$7 = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
37449
+ var ChannelNameWrapper = styled__default.div(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
37450
+ var EditButton = styled__default.span(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
37463
37451
 
37464
37452
  var _templateObject$U;
37465
37453
  var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {