@mobilon-dev/chotto 0.0.52 → 0.0.53

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.
@@ -648,7 +648,7 @@ const Iu = (e) => {
648
648
  },
649
649
  emits: ["fileUploaded"],
650
650
  setup(e, { emit: f }) {
651
- const t = e, n = I(null), a = I(""), s = I(""), A = I(!1), i = I(!1), o = I(!1), u = I(null), g = I(""), r = ke("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: M } = At(r), h = [
651
+ const t = e, n = I(null), a = I(""), s = I(""), A = I(!1), i = I(!1), o = I(!1), u = I(null), g = I(""), r = ke("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: h } = At(r), M = [
652
652
  {
653
653
  action: "audio/*",
654
654
  title: "Аудио",
@@ -669,7 +669,7 @@ const Iu = (e) => {
669
669
  title: "Файл",
670
670
  prime: "file"
671
671
  }
672
- ], y = U(() => !M().file), _ = () => {
672
+ ], y = U(() => !h().file), _ = () => {
673
673
  n.value = null, p(), s.value = "", a.value = "";
674
674
  }, k = (E) => {
675
675
  _(), console.log("onFileSelected", E.target.files[0]), n.value = E.target.files[0], n.value && (D(), N());
@@ -722,7 +722,7 @@ const Iu = (e) => {
722
722
  l("p", null, "Ошибка при загрузке файла.", -1)
723
723
  ]))) : (c(), F(Un, {
724
724
  key: 2,
725
- actions: h,
725
+ actions: M,
726
726
  mode: "hover",
727
727
  "button-class": "pi pi-file-arrow-up",
728
728
  "menu-side": "top",
@@ -739,7 +739,7 @@ const Iu = (e) => {
739
739
  onChange: k
740
740
  }, null, 544)
741
741
  ]),
742
- V(M)().file ? (c(), F(zt, {
742
+ V(h)().file ? (c(), F(zt, {
743
743
  key: 0,
744
744
  to: "#chat-input-first-line-" + V(r)
745
745
  }, [
@@ -748,7 +748,7 @@ const Iu = (e) => {
748
748
  "is-image": A.value,
749
749
  "is-video": i.value,
750
750
  "is-audio": o.value,
751
- "file-name": V(M)().file.name,
751
+ "file-name": V(h)().file.name,
752
752
  "file-size": g.value,
753
753
  onReset: _
754
754
  }, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
@@ -971,7 +971,7 @@ const Iu = (e) => {
971
971
  o.value = !1, i.value = !1;
972
972
  }, r = U(() => $e(t.chat["lastMessage.status"]));
973
973
  let m;
974
- const p = I(0), M = [Se("component.ChatItem.typing") + ".", Se("component.ChatItem.typing") + "..", Se("component.ChatItem.typing") + "..."], h = U(() => t.chat.typing ? M[p.value] : t.chat.lastMessage);
974
+ const p = I(0), h = [Se("component.ChatItem.typing") + ".", Se("component.ChatItem.typing") + "..", Se("component.ChatItem.typing") + "..."], M = U(() => t.chat.typing ? h[p.value] : t.chat.lastMessage);
975
975
  return Oe(
976
976
  () => t.chat.typing,
977
977
  () => {
@@ -1003,7 +1003,7 @@ const Iu = (e) => {
1003
1003
  ]),
1004
1004
  l("div", ls, [
1005
1005
  l("div", rs, w(e.chat.name), 1),
1006
- e.chat.lastMessage || e.chat.typing ? (c(), d("div", us, w(h.value), 1)) : b("", !0)
1006
+ e.chat.lastMessage || e.chat.typing ? (c(), d("div", us, w(M.value), 1)) : b("", !0)
1007
1007
  ]),
1008
1008
  l("div", cs, [
1009
1009
  e.chat["lastActivity.time"] && !o.value ? (c(), d("div", ds, w(e.chat["lastActivity.time"]), 1)) : b("", !0),
@@ -1091,20 +1091,20 @@ const Iu = (e) => {
1091
1091
  setup(e, { emit: f }) {
1092
1092
  const t = e, n = ke("chatAppId"), { setMessageText: a } = At(n), s = () => {
1093
1093
  A("closeTemplateWindow"), a(o.value.template);
1094
- }, A = f, i = I(null), o = I(null), u = I(""), g = (M) => {
1095
- t.templates.forEach((h) => h.isSelected = !1), M.isSelected = !0, o.value = M;
1094
+ }, A = f, i = I(null), o = I(null), u = I(""), g = (h) => {
1095
+ t.templates.forEach((M) => M.isSelected = !1), h.isSelected = !0, o.value = h;
1096
1096
  }, r = () => {
1097
- t.templates.forEach((M) => M.isSelected = !1);
1098
- }, m = U(() => i.value ? t.templates.filter((M) => M.groupId === i.value.groupId) : t.templates), p = U(() => {
1099
- const M = u.value.trim().toLowerCase();
1100
- return m.value.filter((h) => (console.log(h), h.title.toLowerCase().includes(M) || h.template.toLowerCase().includes(M)));
1097
+ t.templates.forEach((h) => h.isSelected = !1);
1098
+ }, m = U(() => i.value ? t.templates.filter((h) => h.groupId === i.value.groupId) : t.templates), p = U(() => {
1099
+ const h = u.value.trim().toLowerCase();
1100
+ return m.value.filter((M) => (console.log(M), M.title.toLowerCase().includes(h) || M.template.toLowerCase().includes(h)));
1101
1101
  });
1102
- return (M, h) => (c(), d("div", ws, [
1102
+ return (h, M) => (c(), d("div", ws, [
1103
1103
  l("div", ks, [
1104
1104
  l("button", Ns, [
1105
1105
  l("span", {
1106
1106
  class: "pi pi-times",
1107
- onClick: h[0] || (h[0] = (y) => M.$emit("closeTemplateWindow"))
1107
+ onClick: M[0] || (M[0] = (y) => h.$emit("closeTemplateWindow"))
1108
1108
  })
1109
1109
  ]),
1110
1110
  l("ul", Ds, [
@@ -1122,7 +1122,7 @@ const Iu = (e) => {
1122
1122
  }, null, 8, Es)) : b("", !0),
1123
1123
  we(l("input", {
1124
1124
  id: _,
1125
- "onUpdate:modelValue": h[1] || (h[1] = (k) => i.value = k),
1125
+ "onUpdate:modelValue": M[1] || (M[1] = (k) => i.value = k),
1126
1126
  value: y,
1127
1127
  class: "template-selector__input-group",
1128
1128
  type: "radio"
@@ -1135,7 +1135,7 @@ const Iu = (e) => {
1135
1135
  ]),
1136
1136
  l("div", Vs, [
1137
1137
  we(l("input", {
1138
- "onUpdate:modelValue": h[2] || (h[2] = (y) => u.value = y),
1138
+ "onUpdate:modelValue": M[2] || (M[2] = (y) => u.value = y),
1139
1139
  class: "template-selector__searching-input",
1140
1140
  type: "text",
1141
1141
  placeholder: "Поиск шаблона"
@@ -1161,7 +1161,7 @@ const Iu = (e) => {
1161
1161
  o.value ? (c(), d("div", Qs, [
1162
1162
  l("div", Rs, [
1163
1163
  l("p", Ys, w(o.value.template), 1),
1164
- h[3] || (h[3] = l("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
1164
+ M[3] || (M[3] = l("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
1165
1165
  ])
1166
1166
  ])) : (c(), d("p", qs, " Предпросмотр шаблона "))
1167
1167
  ]),
@@ -13468,7 +13468,7 @@ function wi() {
13468
13468
  const g = (r) => {
13469
13469
  if (e.options.displayRecent !== !0)
13470
13470
  return;
13471
- const m = e.recent.findIndex((M) => M.u === r.u);
13471
+ const m = e.recent.findIndex((h) => h.u === r.u);
13472
13472
  if (m > 0 && e.recent.splice(m, 1), m === 0)
13473
13473
  return;
13474
13474
  const p = { u: r.u, n: On(r.n) };
@@ -13671,7 +13671,7 @@ var qi = function(f, t) {
13671
13671
  function Hi(e) {
13672
13672
  var f, t = e.state, n = e.name, a = e.options, s = t.elements.arrow, A = t.modifiersData.popperOffsets, i = de(t.placement), o = Yt(i), u = [ee, ie].indexOf(i) >= 0, g = u ? "height" : "width";
13673
13673
  if (!(!s || !A)) {
13674
- var r = qi(a.padding, t), m = Rt(s), p = o === "y" ? X : ee, M = o === "y" ? se : ie, h = t.rects.reference[g] + t.rects.reference[o] - A[o] - t.rects.popper[g], y = A[o] - t.rects.reference[o], _ = lf(s), k = _ ? o === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, D = h / 2 - y / 2, N = r[p], j = k - m[g] - r[M], x = k / 2 - m[g] / 2 + D, E = Ge(N, x, j), z = o;
13674
+ var r = qi(a.padding, t), m = Rt(s), p = o === "y" ? X : ee, h = o === "y" ? se : ie, M = t.rects.reference[g] + t.rects.reference[o] - A[o] - t.rects.popper[g], y = A[o] - t.rects.reference[o], _ = lf(s), k = _ ? o === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, D = M / 2 - y / 2, N = r[p], j = k - m[g] - r[h], x = k / 2 - m[g] / 2 + D, E = Ge(N, x, j), z = o;
13675
13675
  t.modifiersData[n] = (f = {}, f[z] = E, f.centerOffset = E - x, f);
13676
13676
  }
13677
13677
  }
@@ -13705,7 +13705,7 @@ function Wi(e) {
13705
13705
  };
13706
13706
  }
13707
13707
  function yn(e) {
13708
- var f, t = e.popper, n = e.popperRect, a = e.placement, s = e.variation, A = e.offsets, i = e.position, o = e.gpuAcceleration, u = e.adaptive, g = e.roundOffsets, r = e.isFixed, m = g === !0 ? Wi(A) : typeof g == "function" ? g(A) : A, p = m.x, M = p === void 0 ? 0 : p, h = m.y, y = h === void 0 ? 0 : h, _ = A.hasOwnProperty("x"), k = A.hasOwnProperty("y"), D = ee, N = X, j = window;
13708
+ var f, t = e.popper, n = e.popperRect, a = e.placement, s = e.variation, A = e.offsets, i = e.position, o = e.gpuAcceleration, u = e.adaptive, g = e.roundOffsets, r = e.isFixed, m = g === !0 ? Wi(A) : typeof g == "function" ? g(A) : A, p = m.x, h = p === void 0 ? 0 : p, M = m.y, y = M === void 0 ? 0 : M, _ = A.hasOwnProperty("x"), k = A.hasOwnProperty("y"), D = ee, N = X, j = window;
13709
13709
  if (u) {
13710
13710
  var x = lf(t), E = "clientHeight", z = "clientWidth";
13711
13711
  if (x === oe(t) && (x = De(t), me(x).position !== "static" && i === "absolute" && (E = "scrollHeight", z = "scrollWidth")), x = x, a === X || (a === ee || a === ie) && s === nf) {
@@ -13716,7 +13716,7 @@ function yn(e) {
13716
13716
  if (a === ee || (a === X || a === se) && s === nf) {
13717
13717
  D = ie;
13718
13718
  var O = r && j.visualViewport ? j.visualViewport.width : x[z];
13719
- M -= O - n.width, M *= o ? 1 : -1;
13719
+ h -= O - n.width, h *= o ? 1 : -1;
13720
13720
  }
13721
13721
  }
13722
13722
  var B = Object.assign({
@@ -13724,9 +13724,9 @@ function yn(e) {
13724
13724
  }, u && $i);
13725
13725
  if (o) {
13726
13726
  var R;
13727
- return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[D] = _ ? "0" : "", R.transform = (j.devicePixelRatio || 1) <= 1 ? "translate(" + M + "px, " + y + "px)" : "translate3d(" + M + "px, " + y + "px, 0)", R));
13727
+ return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[D] = _ ? "0" : "", R.transform = (j.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + y + "px)" : "translate3d(" + h + "px, " + y + "px, 0)", R));
13728
13728
  }
13729
- return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[D] = _ ? M + "px" : "", f.transform = "", f));
13729
+ return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[D] = _ ? h + "px" : "", f.transform = "", f));
13730
13730
  }
13731
13731
  function Ki(e) {
13732
13732
  var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n, s = t.adaptive, A = s === void 0 ? !0 : s, i = t.roundOffsets, o = i === void 0 ? !0 : i, u = {
@@ -13916,16 +13916,16 @@ function Zn(e) {
13916
13916
  }
13917
13917
  function af(e, f) {
13918
13918
  f === void 0 && (f = {});
13919
- var t = f, n = t.placement, a = n === void 0 ? e.placement : n, s = t.boundary, A = s === void 0 ? ki : s, i = t.rootBoundary, o = i === void 0 ? Hn : i, u = t.elementContext, g = u === void 0 ? Je : u, r = t.altBoundary, m = r === void 0 ? !1 : r, p = t.padding, M = p === void 0 ? 0 : p, h = Kn(typeof M != "number" ? M : Jn(M, of)), y = g === Je ? Ni : Je, _ = e.rects.popper, k = e.elements[m ? y : g], D = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), A, o), N = qe(e.elements.reference), j = Zn({
13919
+ var t = f, n = t.placement, a = n === void 0 ? e.placement : n, s = t.boundary, A = s === void 0 ? ki : s, i = t.rootBoundary, o = i === void 0 ? Hn : i, u = t.elementContext, g = u === void 0 ? Je : u, r = t.altBoundary, m = r === void 0 ? !1 : r, p = t.padding, h = p === void 0 ? 0 : p, M = Kn(typeof h != "number" ? h : Jn(h, of)), y = g === Je ? Ni : Je, _ = e.rects.popper, k = e.elements[m ? y : g], D = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), A, o), N = qe(e.elements.reference), j = Zn({
13920
13920
  reference: N,
13921
13921
  element: _,
13922
13922
  strategy: "absolute",
13923
13923
  placement: a
13924
13924
  }), x = wt(Object.assign({}, _, j)), E = g === Je ? x : N, z = {
13925
- top: D.top - E.top + h.top,
13926
- bottom: E.bottom - D.bottom + h.bottom,
13927
- left: D.left - E.left + h.left,
13928
- right: E.right - D.right + h.right
13925
+ top: D.top - E.top + M.top,
13926
+ bottom: E.bottom - D.bottom + M.bottom,
13927
+ left: D.left - E.left + M.left,
13928
+ right: E.right - D.right + M.right
13929
13929
  }, Q = e.modifiersData.offset;
13930
13930
  if (g === Je && Q) {
13931
13931
  var O = Q[a];
@@ -13938,22 +13938,22 @@ function af(e, f) {
13938
13938
  }
13939
13939
  function so(e, f) {
13940
13940
  f === void 0 && (f = {});
13941
- var t = f, n = t.placement, a = t.boundary, s = t.rootBoundary, A = t.padding, i = t.flipVariations, o = t.allowedAutoPlacements, u = o === void 0 ? Fn : o, g = He(n), r = g ? i ? hn : hn.filter(function(M) {
13942
- return He(M) === g;
13943
- }) : of, m = r.filter(function(M) {
13944
- return u.indexOf(M) >= 0;
13941
+ var t = f, n = t.placement, a = t.boundary, s = t.rootBoundary, A = t.padding, i = t.flipVariations, o = t.allowedAutoPlacements, u = o === void 0 ? Fn : o, g = He(n), r = g ? i ? hn : hn.filter(function(h) {
13942
+ return He(h) === g;
13943
+ }) : of, m = r.filter(function(h) {
13944
+ return u.indexOf(h) >= 0;
13945
13945
  });
13946
13946
  m.length === 0 && (m = r);
13947
- var p = m.reduce(function(M, h) {
13948
- return M[h] = af(e, {
13949
- placement: h,
13947
+ var p = m.reduce(function(h, M) {
13948
+ return h[M] = af(e, {
13949
+ placement: M,
13950
13950
  boundary: a,
13951
13951
  rootBoundary: s,
13952
13952
  padding: A
13953
- })[de(h)], M;
13953
+ })[de(M)], h;
13954
13954
  }, {});
13955
- return Object.keys(p).sort(function(M, h) {
13956
- return p[M] - p[h];
13955
+ return Object.keys(p).sort(function(h, M) {
13956
+ return p[h] - p[M];
13957
13957
  });
13958
13958
  }
13959
13959
  function io(e) {
@@ -13965,14 +13965,14 @@ function io(e) {
13965
13965
  function oo(e) {
13966
13966
  var f = e.state, t = e.options, n = e.name;
13967
13967
  if (!f.modifiersData[n]._skip) {
13968
- for (var a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !0 : A, o = t.fallbackPlacements, u = t.padding, g = t.boundary, r = t.rootBoundary, m = t.altBoundary, p = t.flipVariations, M = p === void 0 ? !0 : p, h = t.allowedAutoPlacements, y = f.options.placement, _ = de(y), k = _ === y, D = o || (k || !M ? [_f(y)] : io(y)), N = [y].concat(D).reduce(function(Ce, ye) {
13968
+ for (var a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !0 : A, o = t.fallbackPlacements, u = t.padding, g = t.boundary, r = t.rootBoundary, m = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, M = t.allowedAutoPlacements, y = f.options.placement, _ = de(y), k = _ === y, D = o || (k || !h ? [_f(y)] : io(y)), N = [y].concat(D).reduce(function(Ce, ye) {
13969
13969
  return Ce.concat(de(ye) === Qt ? so(f, {
13970
13970
  placement: ye,
13971
13971
  boundary: g,
13972
13972
  rootBoundary: r,
13973
13973
  padding: u,
13974
- flipVariations: M,
13975
- allowedAutoPlacements: h
13974
+ flipVariations: h,
13975
+ allowedAutoPlacements: M
13976
13976
  }) : ye);
13977
13977
  }, []), j = f.rects.reference, x = f.rects.popper, E = /* @__PURE__ */ new Map(), z = !0, Q = N[0], O = 0; O < N.length; O++) {
13978
13978
  var B = N[O], R = de(B), te = He(B) === Qe, pe = [X, se].indexOf(R) >= 0, le = pe ? "width" : "height", Y = af(f, {
@@ -13993,7 +13993,7 @@ function oo(e) {
13993
13993
  E.set(B, Ee);
13994
13994
  }
13995
13995
  if (z)
13996
- for (var cf = M ? 3 : 1, lt = function(ye) {
13996
+ for (var cf = h ? 3 : 1, lt = function(ye) {
13997
13997
  var Ke = N.find(function(gf) {
13998
13998
  var Te = E.get(gf);
13999
13999
  if (Te)
@@ -14105,14 +14105,14 @@ function Mo(e) {
14105
14105
  return e === "x" ? "y" : "x";
14106
14106
  }
14107
14107
  function yo(e) {
14108
- var f = e.state, t = e.options, n = e.name, a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !1 : A, o = t.boundary, u = t.rootBoundary, g = t.altBoundary, r = t.padding, m = t.tether, p = m === void 0 ? !0 : m, M = t.tetherOffset, h = M === void 0 ? 0 : M, y = af(f, {
14108
+ var f = e.state, t = e.options, n = e.name, a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !1 : A, o = t.boundary, u = t.rootBoundary, g = t.altBoundary, r = t.padding, m = t.tether, p = m === void 0 ? !0 : m, h = t.tetherOffset, M = h === void 0 ? 0 : h, y = af(f, {
14109
14109
  boundary: o,
14110
14110
  rootBoundary: u,
14111
14111
  padding: r,
14112
14112
  altBoundary: g
14113
- }), _ = de(f.placement), k = He(f.placement), D = !k, N = Yt(_), j = Mo(N), x = f.modifiersData.popperOffsets, E = f.rects.reference, z = f.rects.popper, Q = typeof h == "function" ? h(Object.assign({}, f.rects, {
14113
+ }), _ = de(f.placement), k = He(f.placement), D = !k, N = Yt(_), j = Mo(N), x = f.modifiersData.popperOffsets, E = f.rects.reference, z = f.rects.popper, Q = typeof M == "function" ? M(Object.assign({}, f.rects, {
14114
14114
  placement: f.placement
14115
- })) : h, O = typeof Q == "number" ? {
14115
+ })) : M, O = typeof Q == "number" ? {
14116
14116
  mainAxis: Q,
14117
14117
  altAxis: Q
14118
14118
  } : Object.assign({
@@ -14254,14 +14254,14 @@ function Eo(e) {
14254
14254
  state: g,
14255
14255
  setOptions: function(_) {
14256
14256
  var k = typeof _ == "function" ? _(g.options) : _;
14257
- h(), g.options = Object.assign({}, s, g.options, k), g.scrollParents = {
14257
+ M(), g.options = Object.assign({}, s, g.options, k), g.scrollParents = {
14258
14258
  reference: Re(i) ? Ze(i) : i.contextElement ? Ze(i.contextElement) : [],
14259
14259
  popper: Ze(o)
14260
14260
  };
14261
14261
  var D = No(jo([].concat(n, g.options.modifiers)));
14262
14262
  return g.orderedModifiers = D.filter(function(N) {
14263
14263
  return N.enabled;
14264
- }), M(), p.update();
14264
+ }), h(), p.update();
14265
14265
  },
14266
14266
  forceUpdate: function() {
14267
14267
  if (!m) {
@@ -14295,7 +14295,7 @@ function Eo(e) {
14295
14295
  });
14296
14296
  }),
14297
14297
  destroy: function() {
14298
- h(), m = !0;
14298
+ M(), m = !0;
14299
14299
  }
14300
14300
  };
14301
14301
  if (!kn(i, o))
@@ -14303,7 +14303,7 @@ function Eo(e) {
14303
14303
  p.setOptions(u).then(function(y) {
14304
14304
  !m && u.onFirstUpdate && u.onFirstUpdate(y);
14305
14305
  });
14306
- function M() {
14306
+ function h() {
14307
14307
  g.orderedModifiers.forEach(function(y) {
14308
14308
  var _ = y.name, k = y.options, D = k === void 0 ? {} : k, N = y.effect;
14309
14309
  if (typeof N == "function") {
@@ -14318,7 +14318,7 @@ function Eo(e) {
14318
14318
  }
14319
14319
  });
14320
14320
  }
14321
- function h() {
14321
+ function M() {
14322
14322
  r.forEach(function(y) {
14323
14323
  return y();
14324
14324
  }), r = [];
@@ -14384,31 +14384,31 @@ const So = K({
14384
14384
  e.skinTone,
14385
14385
  e.options.disabledGroups
14386
14386
  )), s = _a(), A = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), o = On(e.options.groupNames), u = e.orderedGroupKeys;
14387
- e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((M) => {
14388
- e.options.groupNames[M] ? o[M] = e.options.groupNames[M] : o[M] = fa(M);
14387
+ e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
14388
+ e.options.groupNames[h] ? o[h] = e.options.groupNames[h] : o[h] = fa(h);
14389
14389
  });
14390
14390
  const g = ea() ? "is-mac" : "";
14391
- function r(M) {
14392
- f(M);
14391
+ function r(h) {
14392
+ f(h);
14393
14393
  }
14394
- function m(M) {
14395
- t(M), s == null || s.emit("select", {
14396
- ...M,
14394
+ function m(h) {
14395
+ t(h), s == null || s.emit("select", {
14396
+ ...h,
14397
14397
  t: e.skinTone,
14398
- i: wf(M.r)
14398
+ i: wf(h.r)
14399
14399
  });
14400
14400
  }
14401
- function p(M, h) {
14401
+ function p(h, M) {
14402
14402
  var y;
14403
- const _ = (y = M == null ? void 0 : M.target) == null ? void 0 : y.closest("button");
14404
- _ && (_.innerHTML = `<span>${wf(h)}</span>`);
14403
+ const _ = (y = h == null ? void 0 : h.target) == null ? void 0 : y.closest("button");
14404
+ _ && (_.innerHTML = `<span>${wf(M)}</span>`);
14405
14405
  }
14406
14406
  return Oe(
14407
14407
  () => e.activeGroup,
14408
14408
  () => {
14409
- var M;
14410
- const h = (M = n.value) == null ? void 0 : M.querySelector("#" + e.activeGroup);
14411
- h && (h.parentNode.scrollTop = h.offsetTop - h.parentNode.offsetTop);
14409
+ var h;
14410
+ const M = (h = n.value) == null ? void 0 : h.querySelector("#" + e.activeGroup);
14411
+ M && (M.parentNode.scrollTop = M.offsetTop - M.parentNode.offsetTop);
14412
14412
  }
14413
14413
  ), {
14414
14414
  emojis: a,
@@ -14703,7 +14703,7 @@ const h1 = K({
14703
14703
  ".v3-input-picker-wrap"
14704
14704
  )) && s.value && (s.value = !1);
14705
14705
  }
14706
- function M() {
14706
+ function h() {
14707
14707
  if (n.value && a.value && i) {
14708
14708
  let y = u.options.offset;
14709
14709
  typeof y != "number" && (y = 6), Vo(n.value, a.value, {
@@ -14719,11 +14719,11 @@ const h1 = K({
14719
14719
  }), document.body.addEventListener("click", p);
14720
14720
  }
14721
14721
  }
14722
- function h(y) {
14722
+ function M(y) {
14723
14723
  A.value = y.target.value || "", f("update:text", A.value);
14724
14724
  }
14725
14725
  return Ne(() => {
14726
- M();
14726
+ h();
14727
14727
  }), wa(() => {
14728
14728
  document.body.removeEventListener("click", p);
14729
14729
  }), {
@@ -14736,7 +14736,7 @@ const h1 = K({
14736
14736
  button: n,
14737
14737
  picker: a,
14738
14738
  isInputType: i,
14739
- onChangeText: h,
14739
+ onChangeText: M,
14740
14740
  colorTheme: g
14741
14741
  };
14742
14742
  }
@@ -14949,7 +14949,7 @@ const j1 = {
14949
14949
  t.value.style.display = "none", document.addEventListener("click", m);
14950
14950
  }), St(() => {
14951
14951
  document.removeEventListener("click", m);
14952
- }), (p, M) => (c(), d($, null, [
14952
+ }), (p, h) => (c(), d($, null, [
14953
14953
  l("div", {
14954
14954
  ref_key: "emojiButton",
14955
14955
  ref: n,
@@ -14957,7 +14957,7 @@ const j1 = {
14957
14957
  onClick: u,
14958
14958
  onMouseover: g,
14959
14959
  onMouseout: r
14960
- }, M[0] || (M[0] = [
14960
+ }, h[0] || (h[0] = [
14961
14961
  l("span", { class: "pi pi-face-smile" }, null, -1)
14962
14962
  ]), 544),
14963
14963
  L(q, null, {
@@ -15516,12 +15516,12 @@ function hl(e = []) {
15516
15516
  ascii: !0
15517
15517
  }, f), e = e.sort((r, m) => r[0] > m[0] ? 1 : -1);
15518
15518
  for (let r = 0; r < e.length; r++) {
15519
- const m = e[r][0], M = e[r][1] ? {
15519
+ const m = e[r][0], h = e[r][1] ? {
15520
15520
  [ul]: !0
15521
15521
  } : {
15522
15522
  [cl]: !0
15523
15523
  };
15524
- m.indexOf("-") >= 0 ? M[jt] = !0 : Le.test(m) ? yt.test(m) ? M[kf] = !0 : M[Nt] = !0 : M[kt] = !0, Dn(t, m, m, M);
15524
+ m.indexOf("-") >= 0 ? h[jt] = !0 : Le.test(m) ? yt.test(m) ? h[kf] = !0 : h[Nt] = !0 : h[kt] = !0, Dn(t, m, m, h);
15525
15525
  }
15526
15526
  return Dn(t, "localhost", Af, {
15527
15527
  ascii: !0
@@ -15836,10 +15836,10 @@ function bl({
15836
15836
  T(m, e.domain, r);
15837
15837
  const p = ae(xn);
15838
15838
  T(m, e.tld, p), T(m, e.utld, p), v(u, Af, p);
15839
- const M = v(r, ue);
15840
- T(M, e.domain, r), T(p, e.domain, r), v(p, re, m), v(p, ue, M);
15841
- const h = v(p, Ie);
15842
- T(h, e.numeric, xn);
15839
+ const h = v(r, ue);
15840
+ T(h, e.domain, r), T(p, e.domain, r), v(p, re, m), v(p, ue, h);
15841
+ const M = v(p, Ie);
15842
+ T(M, e.numeric, xn);
15843
15843
  const y = v(A, ue), _ = v(A, re);
15844
15844
  T(y, e.domain, A), T(_, n, s), T(_, e.domain, A);
15845
15845
  const k = ae(vf);
@@ -15893,8 +15893,8 @@ function vl(e, f, t) {
15893
15893
  a -= g, a < n && (A.push(t[a]), a++);
15894
15894
  else {
15895
15895
  A.length > 0 && (s.push(bt(Sn, f, A)), A = []), a -= m, g -= m;
15896
- const p = r.t, M = t.slice(a - g, a);
15897
- s.push(bt(p, f, M));
15896
+ const p = r.t, h = t.slice(a - g, a);
15897
+ s.push(bt(p, f, h));
15898
15898
  }
15899
15899
  }
15900
15900
  return A.length > 0 && s.push(bt(Sn, f, A)), s;
@@ -15993,22 +15993,22 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
15993
15993
  },
15994
15994
  { immediate: !0 }
15995
15995
  );
15996
- function i(M) {
15997
- M.preventDefault(), M.target.href && window.open(M.target.href, "_blank");
15996
+ function i(h) {
15997
+ h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
15998
15998
  }
15999
15999
  const o = () => {
16000
16000
  s.value = !0;
16001
16001
  }, u = () => {
16002
16002
  s.value = !1, a.value = !1;
16003
- }, g = U(() => $e(t.message.status)), r = (M) => {
16004
- u(), n("action", { messageId: t.message.messageId, type: "menu", ...M });
16003
+ }, g = U(() => $e(t.message.status)), r = (h) => {
16004
+ u(), n("action", { messageId: t.message.messageId, type: "menu", ...h });
16005
16005
  }, m = () => {
16006
16006
  u(), n("action", { messageId: t.message.messageId, type: "views" });
16007
16007
  };
16008
- function p(M) {
16009
- return M.position === "left" ? "text-message__left" : "text-message__right";
16008
+ function p(h) {
16009
+ return h.position === "left" ? "text-message__left" : "text-message__right";
16010
16010
  }
16011
- return (M, h) => (c(), d("div", Nl, [
16011
+ return (h, M) => (c(), d("div", Nl, [
16012
16012
  l("div", {
16013
16013
  class: C(p(e.message)),
16014
16014
  messageId: e.message.messageId,
@@ -16038,7 +16038,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16038
16038
  class: "text-message__views",
16039
16039
  onClick: m
16040
16040
  }, [
16041
- h[1] || (h[1] = l("span", { class: "pi pi-eye" }, null, -1)),
16041
+ M[1] || (M[1] = l("span", { class: "pi pi-eye" }, null, -1)),
16042
16042
  l("p", null, w(e.message.views), 1)
16043
16043
  ])) : b("", !0),
16044
16044
  e.message.time ? (c(), d("span", xl, w(e.message.time), 1)) : b("", !0),
@@ -16047,14 +16047,14 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16047
16047
  class: C(["text-message__status", g.value])
16048
16048
  }, [
16049
16049
  e.message.status !== "sent" ? (c(), d("span", Sl)) : b("", !0),
16050
- h[2] || (h[2] = l("span", { class: "pi pi-check" }, null, -1))
16050
+ M[2] || (M[2] = l("span", { class: "pi pi-check" }, null, -1))
16051
16051
  ], 2)) : b("", !0)
16052
16052
  ]),
16053
16053
  s.value && e.message.actions ? (c(), d("button", {
16054
16054
  key: 0,
16055
16055
  class: "text-message__menu-button",
16056
- onClick: h[0] || (h[0] = (y) => a.value = !a.value)
16057
- }, h[3] || (h[3] = [
16056
+ onClick: M[0] || (M[0] = (y) => a.value = !a.value)
16057
+ }, M[3] || (M[3] = [
16058
16058
  l("span", { class: "pi pi-ellipsis-h" }, null, -1)
16059
16059
  ]))) : b("", !0),
16060
16060
  L(q, null, {
@@ -16102,7 +16102,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16102
16102
  const p = (k) => {
16103
16103
  const D = Math.floor(k / 60), N = Math.floor(k % 60);
16104
16104
  return `${D.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
16105
- }, M = U(() => t.value ? p(s.value) : "0:00"), h = U(() => t.value ? p(a.value) : "0:00"), y = U(() => a.value > 0 ? s.value / a.value * 100 : 0);
16105
+ }, h = U(() => t.value ? p(s.value) : "0:00"), M = U(() => t.value ? p(a.value) : "0:00"), y = U(() => a.value > 0 ? s.value / a.value * 100 : 0);
16106
16106
  function _(k) {
16107
16107
  return k.position === "left" ? "audio-message__left" : "audio-message__right";
16108
16108
  }
@@ -16157,7 +16157,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16157
16157
  style: P({ width: y.value + "%" })
16158
16158
  }, null, 4)
16159
16159
  ]),
16160
- l("p", Rl, w(`${M.value} / ${h.value}`), 1),
16160
+ l("p", Rl, w(`${h.value} / ${M.value}`), 1),
16161
16161
  l("div", Yl, [
16162
16162
  l("span", ql, w(e.message.time), 1),
16163
16163
  _(e.message) === "audio-message__right" && V(Pe).includes(e.message.status) ? (c(), d("div", {
@@ -16245,8 +16245,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16245
16245
  },
16246
16246
  setup(e) {
16247
16247
  const f = e;
16248
- function t(M) {
16249
- return M.position === "left" ? "video-message__left" : "video-message__right";
16248
+ function t(h) {
16249
+ return h.position === "left" ? "video-message__left" : "video-message__right";
16250
16250
  }
16251
16251
  const n = I(), a = I(), s = I(!1), A = I(!1), i = I(!1), o = I(!1), u = () => {
16252
16252
  }, g = () => {
@@ -16256,9 +16256,9 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16256
16256
  }, m = U(() => $e(f.message.status)), p = () => {
16257
16257
  a.value && (a.value.currentTime = 0, a.value.play());
16258
16258
  };
16259
- return Oe([n, a], ([M, h]) => {
16260
- M ? h && (h.pause(), h.currentTime = 0) : h && (h.play(), h.currentTime = 0);
16261
- }), (M, h) => (c(), d("div", {
16259
+ return Oe([n, a], ([h, M]) => {
16260
+ h ? M && (M.pause(), M.currentTime = 0) : M && (M.play(), M.currentTime = 0);
16261
+ }), (h, M) => (c(), d("div", {
16262
16262
  class: C(["video-message", t(e.message)]),
16263
16263
  messageId: e.message.messageId,
16264
16264
  onMouseleave: r
@@ -16274,9 +16274,9 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16274
16274
  l("div", nr, [
16275
16275
  l("div", {
16276
16276
  class: "video-message__preview-button",
16277
- onClick: h[0] || (h[0] = (y) => s.value = !0),
16277
+ onClick: M[0] || (M[0] = (y) => s.value = !0),
16278
16278
  onMouseenter: g,
16279
- onMouseleave: h[1] || (h[1] = (y) => o.value = !o.value)
16279
+ onMouseleave: M[1] || (M[1] = (y) => o.value = !o.value)
16280
16280
  }, [
16281
16281
  l("video", {
16282
16282
  ref_key: "previewPlayer",
@@ -16292,7 +16292,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16292
16292
  default: H(() => [
16293
16293
  o.value ? (c(), d("div", Ar, [
16294
16294
  e.message.views ? (c(), d("div", sr, [
16295
- h[4] || (h[4] = l("span", { class: "pi pi-eye" }, null, -1)),
16295
+ M[4] || (M[4] = l("span", { class: "pi pi-eye" }, null, -1)),
16296
16296
  l("p", null, w(e.message.views), 1)
16297
16297
  ])) : b("", !0),
16298
16298
  l("span", ir, w(e.message.time), 1),
@@ -16301,7 +16301,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16301
16301
  class: C(["video-message__status", m.value])
16302
16302
  }, [
16303
16303
  e.message.status !== "sent" ? (c(), d("span", or)) : b("", !0),
16304
- h[5] || (h[5] = l("span", { class: "pi pi-check" }, null, -1))
16304
+ M[5] || (M[5] = l("span", { class: "pi pi-check" }, null, -1))
16305
16305
  ], 2)) : b("", !0)
16306
16306
  ])) : b("", !0)
16307
16307
  ]),
@@ -16315,7 +16315,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16315
16315
  href: e.message.url,
16316
16316
  download: "",
16317
16317
  target: "_blank"
16318
- }, h[6] || (h[6] = [
16318
+ }, M[6] || (M[6] = [
16319
16319
  l("span", { class: "pi pi-download" }, null, -1)
16320
16320
  ]), 8, lr)) : b("", !0)
16321
16321
  ]),
@@ -16327,8 +16327,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16327
16327
  i.value && e.message.actions ? (c(), d("button", {
16328
16328
  key: 0,
16329
16329
  class: "video-message__menu-button",
16330
- onClick: h[2] || (h[2] = (y) => A.value = !A.value)
16331
- }, h[7] || (h[7] = [
16330
+ onClick: M[2] || (M[2] = (y) => A.value = !A.value)
16331
+ }, M[7] || (M[7] = [
16332
16332
  l("span", { class: "pi pi-ellipsis-h" }, null, -1)
16333
16333
  ]))) : b("", !0)
16334
16334
  ]),
@@ -16356,8 +16356,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16356
16356
  l("div", cr, [
16357
16357
  l("button", {
16358
16358
  class: "video-message__modal-close-button",
16359
- onClick: h[3] || (h[3] = (y) => s.value = !1)
16360
- }, h[8] || (h[8] = [
16359
+ onClick: M[3] || (M[3] = (y) => s.value = !1)
16360
+ }, M[8] || (M[8] = [
16361
16361
  l("span", null, [
16362
16362
  l("i", { class: "pi pi-times" })
16363
16363
  ], -1)
@@ -16561,7 +16561,7 @@ function Xt({ component: e, attrs: f }) {
16561
16561
  const xu = async (e, f) => {
16562
16562
  const t = await Xt({
16563
16563
  //в component должен быть встроен emit change(key: value)
16564
- component: import("./SelectUser2-B3hBqgk7.js"),
16564
+ component: import("./SelectUser2-BzY9af0U.js"),
16565
16565
  attrs: {
16566
16566
  title: e,
16567
16567
  users: f
@@ -16625,27 +16625,16 @@ const xu = async (e, f) => {
16625
16625
  setup(e, { emit: f }) {
16626
16626
  const t = e, n = I({ x: 0, y: 0 }), a = I(null), s = I(null), A = I(!1), i = I(0), o = I(0), u = I(0), g = Cn();
16627
16627
  Ot("chatAppId", g);
16628
- const r = () => {
16629
- if (a.value) {
16630
- const h = window.innerWidth, y = window.innerHeight, _ = a.value.offsetWidth, k = a.value.offsetHeight;
16631
- n.value.x = (h - _) / 2, n.value.y = (y - k) / 2;
16632
- }
16633
- }, m = (h) => {
16628
+ const r = (h) => {
16634
16629
  A.value = !0, i.value = h.clientX - a.value.offsetLeft, o.value = h.clientY - a.value.offsetTop;
16635
- }, p = () => A.value = !1, M = (h) => {
16630
+ }, m = () => A.value = !1, p = (h) => {
16636
16631
  if (A.value) {
16637
- const y = h.clientX - i.value, _ = h.clientY - o.value;
16638
- n.value.x = Math.max(
16639
- 0,
16640
- Math.min(y, window.innerWidth - a.value.offsetWidth)
16641
- ), n.value.y = Math.max(
16642
- 0,
16643
- Math.min(_, window.innerHeight - a.value.offsetHeight)
16644
- );
16632
+ const M = h.clientX - i.value, y = h.clientY - o.value;
16633
+ n.value.x = M, n.value.y = y;
16645
16634
  }
16646
16635
  };
16647
16636
  return Ne(() => {
16648
- r(), document.addEventListener("mousemove", M), window.addEventListener("resize", () => {
16637
+ document.addEventListener("mousemove", p), window.addEventListener("resize", () => {
16649
16638
  n.value.x = Math.max(
16650
16639
  0,
16651
16640
  Math.min(
@@ -16660,7 +16649,7 @@ const xu = async (e, f) => {
16660
16649
  )
16661
16650
  );
16662
16651
  }), u.value = a.value.offsetHeight - s.value.offsetHeight;
16663
- }), (h, y) => (c(), d("div", {
16652
+ }), (h, M) => (c(), d("div", {
16664
16653
  ref_key: "element",
16665
16654
  ref: a,
16666
16655
  class: "float-window",
@@ -16680,9 +16669,9 @@ const xu = async (e, f) => {
16680
16669
  ref: s,
16681
16670
  class: "float-window__controls",
16682
16671
  style: P({ backgroundColor: t.colorTitle ? t.colorTitle : "" }),
16683
- onMousedown: m,
16684
- onMouseup: p,
16685
- onMouseleave: p
16672
+ onMousedown: r,
16673
+ onMouseup: m,
16674
+ onMouseleave: m
16686
16675
  }, [
16687
16676
  t.avatar ? (c(), d("img", {
16688
16677
  key: 0,
@@ -16693,8 +16682,8 @@ const xu = async (e, f) => {
16693
16682
  l("p", Jr, w(t.title), 1),
16694
16683
  l("button", {
16695
16684
  class: "float-window__close-button",
16696
- onClick: y[0] || (y[0] = (_) => h.$emit("close-window"))
16697
- }, y[1] || (y[1] = [
16685
+ onClick: M[0] || (M[0] = (y) => h.$emit("close-window"))
16686
+ }, M[1] || (M[1] = [
16698
16687
  l("span", { class: "pi pi-times" }, null, -1)
16699
16688
  ]))
16700
16689
  ], 36),
@@ -16707,7 +16696,7 @@ const xu = async (e, f) => {
16707
16696
  ])
16708
16697
  ], 12, $r));
16709
16698
  }
16710
- }, Cu = /* @__PURE__ */ S(Gr, [["__scopeId", "data-v-fd6a6e32"]]), Zr = {}, Xr = { class: "base-layout__container" }, eu = { class: "base-layout__first-col" }, fu = { class: "base-layout__second-col" };
16699
+ }, Cu = /* @__PURE__ */ S(Gr, [["__scopeId", "data-v-efd0f13a"]]), Zr = {}, Xr = { class: "base-layout__container" }, eu = { class: "base-layout__first-col" }, fu = { class: "base-layout__second-col" };
16711
16700
  function tu(e, f) {
16712
16701
  return c(), d("div", Xr, [
16713
16702
  l("div", eu, [