@mobilon-dev/chotto 0.0.78 → 0.0.79

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.
@@ -590,11 +590,11 @@ function Ga({
590
590
  Y(E, e.tld, T), Y(E, e.utld, T), Y(T, e.domain, i), Y(T, n, s), _(T, _e, E), _(T, me, h), _(T, Se, A);
591
591
  const U = _(T, Ce), V = de(Ct);
592
592
  Y(U, e.numeric, V);
593
- const k = de(Ct), j = de();
594
- Y(k, t, k), Y(k, f, j), Y(j, t, k), Y(j, f, j), _(T, Ie, k), _(V, Ie, k);
595
- const I = _(l, Ce), w = _(u, Ce), D = _(w, Ie), x = _(D, Ie);
596
- Y(l, e.domain, i), _(l, _e, E), _(l, me, h), Y(u, e.domain, i), _(u, _e, E), _(u, me, h), Y(I, e.domain, k), _(I, Ie, k), _(I, gt, k), Y(x, e.domain, k), Y(x, t, k), _(x, Ie, k);
597
- const Q = [
593
+ const w = de(Ct), j = de();
594
+ Y(w, t, w), Y(w, f, j), Y(j, t, w), Y(j, f, j), _(T, Ie, w), _(V, Ie, w);
595
+ const I = _(l, Ce), k = _(u, Ce), D = _(k, Ie), x = _(D, Ie);
596
+ Y(l, e.domain, i), _(l, _e, E), _(l, me, h), Y(u, e.domain, i), _(u, _e, E), _(u, me, h), Y(I, e.domain, w), _(I, Ie, w), _(I, gt, w), Y(x, e.domain, w), Y(x, t, w), _(x, Ie, w);
597
+ const B = [
598
598
  [ut, ct],
599
599
  // {}
600
600
  [Rt, Yt],
@@ -612,13 +612,13 @@ function Ga({
612
612
  [Xt, ef]
613
613
  // <>
614
614
  ];
615
- for (let H = 0; H < Q.length; H++) {
616
- const [te, ce] = Q[H], le = _(k, te);
617
- _(j, te, le), _(le, ce, k);
615
+ for (let H = 0; H < B.length; H++) {
616
+ const [te, ce] = B[H], le = _(w, te);
617
+ _(j, te, le), _(le, ce, w);
618
618
  const S = de(Ct);
619
619
  Y(le, t, S);
620
620
  const L = de();
621
- Y(le, f), Y(S, t, S), Y(S, f, L), Y(L, t, S), Y(L, f, L), _(S, ce, k), _(L, ce, k);
621
+ Y(le, f), Y(S, t, S), Y(S, f, L), Y(L, t, S), Y(L, f, L), _(S, ce, w), _(L, ce, w);
622
622
  }
623
623
  return _(a, bt, T), _(a, Hf, Ja), {
624
624
  start: a,
@@ -1154,11 +1154,11 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
1154
1154
  ],
1155
1155
  setup(e, { emit: t }) {
1156
1156
  const f = M(), n = M(), a = M(), s = M(!1), i = M(!1), l = e, u = ie("chatAppId"), { setReply: A, getMessage: g } = $e(u), d = t, p = F(() => !!(i.value && l.objects.length > 0 && l.objects[l.objects.length - 1].keyboard)), m = (I = !0) => {
1157
- const w = C(n);
1157
+ const k = C(n);
1158
1158
  let D = 0;
1159
1159
  a.value && (D = a.value.$el.clientHeight);
1160
- const x = 100, Q = w.scrollHeight - w.scrollTop - w.clientHeight;
1161
- Q < x + D ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), w.scrollTop === 0 && I && d("loadMore"), Q <= 0 && I && d("loadMoreDown");
1160
+ const x = 100, B = k.scrollHeight - k.scrollTop - k.clientHeight;
1161
+ B < x + D ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), k.scrollTop === 0 && I && d("loadMore"), B <= 0 && I && d("loadMoreDown");
1162
1162
  }, v = (I) => ({
1163
1163
  "message.text": ic,
1164
1164
  "message.image": Gu,
@@ -1187,23 +1187,23 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
1187
1187
  d("messageAction", I);
1188
1188
  }, T = (I) => {
1189
1189
  d("clickRepliedMessage", I);
1190
- }, U = (I, w) => {
1191
- l.enableDoubleClickReply && (I == null || I.preventDefault(), w.type.indexOf("system") == -1 && w.type.indexOf("typing") == -1 && A({
1192
- messageId: w.messageId,
1193
- type: w.type,
1194
- text: w.text,
1195
- filename: w.filename,
1196
- url: w.url
1190
+ }, U = (I, k) => {
1191
+ l.enableDoubleClickReply && (I == null || I.preventDefault(), k.type.indexOf("system") == -1 && k.type.indexOf("typing") == -1 && A({
1192
+ messageId: k.messageId,
1193
+ type: k.type,
1194
+ text: k.text,
1195
+ filename: k.filename,
1196
+ url: k.url
1197
1197
  }));
1198
1198
  }, V = (I) => {
1199
- I.forEach((w) => {
1200
- w.isIntersecting && d("messageVisible", JSON.parse(w.target.id));
1199
+ I.forEach((k) => {
1200
+ k.isIntersecting && d("messageVisible", JSON.parse(k.target.id));
1201
1201
  });
1202
- }, k = {
1202
+ }, w = {
1203
1203
  root: document.getElementById("feed-container-" + u),
1204
1204
  rootMargin: "5px",
1205
1205
  threshold: 0
1206
- }, j = new IntersectionObserver(V, k);
1206
+ }, j = new IntersectionObserver(V, w);
1207
1207
  return J(
1208
1208
  () => l.objects,
1209
1209
  () => {
@@ -1215,24 +1215,22 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
1215
1215
  ), J(
1216
1216
  () => l.scrollTo,
1217
1217
  () => {
1218
- var I, w;
1218
+ var I;
1219
1219
  if (l.scrollTo) {
1220
- const D = l.scrollTo;
1221
- (I = document.getElementById(D)) == null || I.scrollIntoView({
1222
- block: "center",
1223
- inline: "center"
1224
- }), (w = document.getElementById(D)) == null || w.children[0].classList.add("focused-message"), setTimeout(() => {
1225
- var x;
1226
- (x = document.getElementById(D)) == null || x.children[0].classList.remove("focused-message");
1220
+ const k = l.scrollTo;
1221
+ let D = document.getElementById(k), x = document.getElementById("feed-container-" + u);
1222
+ D instanceof HTMLElement && x instanceof HTMLElement && (x.scrollTop = D.offsetTop + D.clientHeight / 2 - x.clientHeight / 2), (I = document.getElementById(k)) == null || I.children[0].classList.add("focused-message"), setTimeout(() => {
1223
+ var B;
1224
+ (B = document.getElementById(k)) == null || B.children[0].classList.remove("focused-message");
1227
1225
  }, 2e3);
1228
1226
  }
1229
1227
  }
1230
- ), (I, w) => (r(), c(q, null, [
1228
+ ), (I, k) => (r(), c(q, null, [
1231
1229
  o("div", {
1232
1230
  ref_key: "refFeed",
1233
1231
  ref: n,
1234
1232
  class: "message-feed",
1235
- onScroll: w[0] || (w[0] = (D) => m()),
1233
+ onScroll: k[0] || (k[0] = (D) => m()),
1236
1234
  id: "feed-container-" + C(u)
1237
1235
  }, [
1238
1236
  (r(!0), c(q, null, Z(e.objects, (D) => (r(), c("div", {
@@ -1275,7 +1273,7 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
1275
1273
  onClick: h
1276
1274
  }, [
1277
1275
  e.buttonParams ? (r(), c("div", Rs, N(e.buttonParams.unreadAmount), 1)) : b("", !0),
1278
- w[1] || (w[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
1276
+ k[1] || (k[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
1279
1277
  ])) : b("", !0)
1280
1278
  ]),
1281
1279
  _: 1
@@ -1292,7 +1290,7 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
1292
1290
  ], 8, ["to"])) : b("", !0)
1293
1291
  ], 64));
1294
1292
  }
1295
- }), bd = /* @__PURE__ */ z(Ys, [["__scopeId", "data-v-76c85e4e"]]), $s = {
1293
+ }), bd = /* @__PURE__ */ z(Ys, [["__scopeId", "data-v-43b9fb90"]]), $s = {
1296
1294
  key: 0,
1297
1295
  class: "profile__container"
1298
1296
  }, Fs = {
@@ -1575,8 +1573,8 @@ const Id = (e, t = null) => {
1575
1573
  }, T = (I) => {
1576
1574
  E(), console.log("onFileSelected", I.target.files[0]), n.value = I.target.files[0], n.value && (U(), V());
1577
1575
  }, U = () => {
1578
- const I = n.value, w = gf(I.type);
1579
- if (i.value = !1, l.value = !1, u.value = !1, w === "image" ? i.value = !0 : w === "video" ? l.value = !0 : w === "audio" && (u.value = !0), i.value || l.value) {
1576
+ const I = n.value, k = gf(I.type);
1577
+ if (i.value = !1, l.value = !1, u.value = !1, k === "image" ? i.value = !0 : k === "video" ? l.value = !0 : k === "audio" && (u.value = !0), i.value || l.value) {
1580
1578
  const H = new FileReader();
1581
1579
  H.onload = (te) => {
1582
1580
  s.value = te.target.result;
@@ -1584,17 +1582,17 @@ const Id = (e, t = null) => {
1584
1582
  } else
1585
1583
  s.value = "";
1586
1584
  const D = ["б", "Кб", "Мб", "Гб"];
1587
- let x = I.size, Q = 0;
1585
+ let x = I.size, B = 0;
1588
1586
  for (; x > 1024; )
1589
- x = x / 1024, Q++;
1590
- x = x.toFixed(2) + D[Q], g.value = x;
1587
+ x = x / 1024, B++;
1588
+ x = x.toFixed(2) + D[B], g.value = x;
1591
1589
  }, V = async () => {
1592
1590
  a.value = "uploading";
1593
1591
  const I = new FormData();
1594
1592
  I.append("file", n.value);
1595
1593
  const D = (f.filebumpUrl ? f.filebumpUrl : "https://filebump2.services.mobilon.ru") + "/upload";
1596
1594
  try {
1597
- const Q = await (await fetch(
1595
+ const B = await (await fetch(
1598
1596
  D,
1599
1597
  {
1600
1598
  method: "POST",
@@ -1602,7 +1600,7 @@ const Id = (e, t = null) => {
1602
1600
  }
1603
1601
  )).json();
1604
1602
  a.value = "success", p({
1605
- url: Q.url,
1603
+ url: B.url,
1606
1604
  name: n.value.name,
1607
1605
  size: n.value.size,
1608
1606
  type: gf(n.value.type)
@@ -1610,15 +1608,15 @@ const Id = (e, t = null) => {
1610
1608
  } catch (x) {
1611
1609
  console.error("Ошибка при загрузке файла:", x), a.value = "error";
1612
1610
  }
1613
- }, k = (I) => {
1611
+ }, w = (I) => {
1614
1612
  A.value && h && (A.value.accept = I.action, A.value.click());
1615
1613
  }, j = () => {
1616
1614
  A.value && h && f.state == "active" && A.value.click();
1617
1615
  };
1618
- return (I, w) => (r(), c(q, null, [
1619
- a.value === "uploading" ? (r(), c("div", ui, w[0] || (w[0] = [
1616
+ return (I, k) => (r(), c(q, null, [
1617
+ a.value === "uploading" ? (r(), c("div", ui, k[0] || (k[0] = [
1620
1618
  o("p", null, "Загрузка файла...", -1)
1621
- ]))) : a.value === "error" ? (r(), c("div", ci, w[1] || (w[1] = [
1619
+ ]))) : a.value === "error" ? (r(), c("div", ci, k[1] || (k[1] = [
1622
1620
  o("p", null, "Ошибка при загрузке файла.", -1)
1623
1621
  ]))) : (r(), R(oa, {
1624
1622
  key: 2,
@@ -1627,7 +1625,7 @@ const Id = (e, t = null) => {
1627
1625
  "button-class": "pi pi-file-arrow-up",
1628
1626
  "menu-side": "top",
1629
1627
  disabled: !h.value || e.state == "disabled",
1630
- onClick: k,
1628
+ onClick: w,
1631
1629
  onButtonClick: j
1632
1630
  }, null, 8, ["disabled"])),
1633
1631
  o("input", {
@@ -2188,11 +2186,11 @@ const Id = (e, t = null) => {
2188
2186
  icon: "pi pi-video"
2189
2187
  }
2190
2188
  }, h = (V) => {
2191
- const k = V.target.files[0];
2192
- if (k) {
2189
+ const w = V.target.files[0];
2190
+ if (w) {
2193
2191
  i.value = "";
2194
- const j = k.name.split(".");
2195
- y[f.type].accept.indexOf(j[j.length - 1]) == -1 ? i.value = y[f.type].error : k.size > y[f.type].maxSize ? i.value = "Файл слишком большого размера" : i.value || (a.value = k, E(), T());
2192
+ const j = w.name.split(".");
2193
+ y[f.type].accept.indexOf(j[j.length - 1]) == -1 ? i.value = y[f.type].error : w.size > y[f.type].maxSize ? i.value = "Файл слишком большого размера" : i.value || (a.value = w, E(), T());
2196
2194
  }
2197
2195
  }, E = async () => {
2198
2196
  if (a.value) {
@@ -2201,7 +2199,7 @@ const Id = (e, t = null) => {
2201
2199
  V.append("file", a.value);
2202
2200
  const j = (n.value ? n.value : "https://filebump2.services.mobilon.ru") + "/upload";
2203
2201
  try {
2204
- const w = await (await fetch(
2202
+ const k = await (await fetch(
2205
2203
  j,
2206
2204
  {
2207
2205
  method: "POST",
@@ -2209,7 +2207,7 @@ const Id = (e, t = null) => {
2209
2207
  }
2210
2208
  )).json();
2211
2209
  l.value = "success", m("fileSelected", {
2212
- url: w.url,
2210
+ url: k.url,
2213
2211
  filename: a.value.name,
2214
2212
  filesize: a.value.size,
2215
2213
  filetype: gf(a.value.type)
@@ -2221,20 +2219,20 @@ const Id = (e, t = null) => {
2221
2219
  }, T = () => {
2222
2220
  const V = a.value;
2223
2221
  if (V) {
2224
- const k = gf(V.type);
2225
- if (u.value = !1, A.value = !1, g.value = !1, k === "image" ? u.value = !0 : k === "video" ? A.value = !0 : k === "audio" && (g.value = !0), u.value || A.value) {
2222
+ const w = gf(V.type);
2223
+ if (u.value = !1, A.value = !1, g.value = !1, w === "image" ? u.value = !0 : w === "video" ? A.value = !0 : w === "audio" && (g.value = !0), u.value || A.value) {
2226
2224
  const D = new FileReader();
2227
2225
  D.onload = (x) => {
2228
- var Q;
2229
- (Q = x.target) != null && Q.result && (d.value = String(x.target.result));
2226
+ var B;
2227
+ (B = x.target) != null && B.result && (d.value = String(x.target.result));
2230
2228
  }, D.readAsDataURL(V);
2231
2229
  } else
2232
2230
  d.value = "";
2233
2231
  const j = ["б", "Кб", "Мб", "Гб"];
2234
- let I = V.size, w = 0;
2232
+ let I = V.size, k = 0;
2235
2233
  for (; I > 1024; )
2236
- I = I / 1024, w++;
2237
- p.value = I.toFixed(2) + j[w];
2234
+ I = I / 1024, k++;
2235
+ p.value = I.toFixed(2) + j[k];
2238
2236
  }
2239
2237
  }, U = () => {
2240
2238
  a.value && (a.value = null, l.value = "");
@@ -2249,7 +2247,7 @@ const Id = (e, t = null) => {
2249
2247
  () => {
2250
2248
  l.value = "";
2251
2249
  }
2252
- ), (V, k) => {
2250
+ ), (V, w) => {
2253
2251
  var j;
2254
2252
  return r(), c(q, null, [
2255
2253
  o("section", {
@@ -2269,9 +2267,9 @@ const Id = (e, t = null) => {
2269
2267
  onChange: h,
2270
2268
  accept: y[e.type].accept
2271
2269
  }, null, 40, ko),
2272
- k[1] || (k[1] = o("span", { class: "pi pi-paperclip file-upload-icon" }, null, -1)),
2270
+ w[1] || (w[1] = o("span", { class: "pi pi-paperclip file-upload-icon" }, null, -1)),
2273
2271
  o("div", wo, [
2274
- k[0] || (k[0] = o("h2", { class: "attachment-title open-sans-bold" }, " Прикрепить файл ", -1)),
2272
+ w[0] || (w[0] = o("h2", { class: "attachment-title open-sans-bold" }, " Прикрепить файл ", -1)),
2275
2273
  o("h2", No, N(y[e.type].text), 1)
2276
2274
  ])
2277
2275
  ])) : l.value === "success" ? (r(), R(la, {
@@ -2418,30 +2416,30 @@ const Id = (e, t = null) => {
2418
2416
  }, h = F(() => u.value ? f.wabaTemplates.filter((S) => S.groupId === u.value.groupId) : f.wabaTemplates), E = F(() => {
2419
2417
  const S = d.value.trim().toLowerCase();
2420
2418
  return h.value.filter((L) => L.title.toLowerCase().includes(S) || L.template.toLowerCase().includes(S));
2421
- }), T = Wn({}), U = M(!1), V = M(null), k = M(null), j = M(""), I = (S) => {
2422
- k.value = S, j.value = T[S] || "", U.value = !0;
2423
- }, w = () => {
2424
- U.value = !1, k.value = null, j.value = "";
2419
+ }), T = Wn({}), U = M(!1), V = M(null), w = M(null), j = M(""), I = (S) => {
2420
+ w.value = S, j.value = T[S] || "", U.value = !0;
2421
+ }, k = () => {
2422
+ U.value = !1, w.value = null, j.value = "";
2425
2423
  }, D = () => {
2426
- x(k.value, j.value), w();
2424
+ x(w.value, j.value), k();
2427
2425
  }, x = (S, L) => {
2428
2426
  T[S] = L;
2429
- }, Q = F(() => {
2427
+ }, B = F(() => {
2430
2428
  var ve;
2431
2429
  const S = (ve = A.value) == null ? void 0 : ve.template;
2432
2430
  if (!S) return [];
2433
- const L = [...S.matchAll(/{{\d+}}/g)], B = [];
2431
+ const L = [...S.matchAll(/{{\d+}}/g)], Q = [];
2434
2432
  let X = 0;
2435
2433
  return L.forEach((De) => {
2436
- De.index > X && B.push(S.substring(X, De.index)), B.push({ index: parseInt(De[0].slice(2, -2)) }), X = De.index + De[0].length;
2437
- }), X < S.length && B.push(S.substring(X)), B;
2434
+ De.index > X && Q.push(S.substring(X, De.index)), Q.push({ index: parseInt(De[0].slice(2, -2)) }), X = De.index + De[0].length;
2435
+ }), X < S.length && Q.push(S.substring(X)), Q;
2438
2436
  }), H = F(() => {
2439
- var L, B;
2437
+ var L, Q;
2440
2438
  if (!A.value)
2441
2439
  return !0;
2442
2440
  if (!((L = A.value) != null && L.template.match(/{{\d+}}/gi)))
2443
2441
  return !1;
2444
- const S = Object.keys(T).length !== ((B = A.value) == null ? void 0 : B.template.match(/{{\d+}}/gi).length);
2442
+ const S = Object.keys(T).length !== ((Q = A.value) == null ? void 0 : Q.template.match(/{{\d+}}/gi).length);
2445
2443
  if (A.value.type === "TEXT")
2446
2444
  return S;
2447
2445
  if (A.value.type !== "TEXT")
@@ -2451,10 +2449,10 @@ const Id = (e, t = null) => {
2451
2449
  T[S] = "";
2452
2450
  }), g.value = null, A.value = null, y();
2453
2451
  }, ce = F(() => {
2454
- console.log(Q.value, A.value.buttons);
2455
- let S = Q.value.map((B) => typeof B == "string" ? B : T[B.index]).join(""), L = "";
2456
- return A.value.buttons && (L = A.value.buttons.map((B) => `
2457
- | [` + B.text + "]").join("")), S.concat(L);
2452
+ console.log(B.value, A.value.buttons);
2453
+ let S = B.value.map((Q) => typeof Q == "string" ? Q : T[Q.index]).join(""), L = "";
2454
+ return A.value.buttons && (L = A.value.buttons.map((Q) => `
2455
+ | [` + Q.text + "]").join("")), S.concat(L);
2458
2456
  }), le = F(() => {
2459
2457
  const S = [];
2460
2458
  for (const L in T)
@@ -2474,34 +2472,34 @@ const Id = (e, t = null) => {
2474
2472
  })
2475
2473
  ]),
2476
2474
  o("ul", Yo, [
2477
- (r(!0), c(q, null, Z(e.groupTemplates, (B, X) => (r(), c("li", {
2475
+ (r(!0), c(q, null, Z(e.groupTemplates, (Q, X) => (r(), c("li", {
2478
2476
  key: X,
2479
- class: O(["template-selector__item-group", { "template-selector__item-selected": u.value === B }]),
2477
+ class: O(["template-selector__item-group", { "template-selector__item-selected": u.value === Q }]),
2480
2478
  onClick: y
2481
2479
  }, [
2482
2480
  o("label", $o, [
2483
- B.iconUrl ? (r(), c("img", {
2481
+ Q.iconUrl ? (r(), c("img", {
2484
2482
  key: 0,
2485
2483
  class: "template-selector__item-group-icon",
2486
- src: B.iconUrl,
2487
- alt: B.title
2484
+ src: Q.iconUrl,
2485
+ alt: Q.title
2488
2486
  }, null, 8, Fo)) : b("", !0),
2489
2487
  re(o("input", {
2490
2488
  id: X,
2491
2489
  "onUpdate:modelValue": L[0] || (L[0] = (ve) => u.value = ve),
2492
- value: B,
2490
+ value: Q,
2493
2491
  class: "template-selector__input-group",
2494
2492
  type: "radio"
2495
2493
  }, null, 8, qo), [
2496
2494
  [Pn, u.value]
2497
2495
  ]),
2498
- o("span", null, N(B.title), 1)
2496
+ o("span", null, N(Q.title), 1)
2499
2497
  ])
2500
2498
  ], 2))), 128))
2501
2499
  ]),
2502
2500
  o("div", Po, [
2503
2501
  re(o("input", {
2504
- "onUpdate:modelValue": L[1] || (L[1] = (B) => d.value = B),
2502
+ "onUpdate:modelValue": L[1] || (L[1] = (Q) => d.value = Q),
2505
2503
  class: "template-selector__searching-input",
2506
2504
  type: "text",
2507
2505
  placeholder: "Поиск шаблона"
@@ -2511,14 +2509,14 @@ const Id = (e, t = null) => {
2511
2509
  ]),
2512
2510
  o("div", Ho, [
2513
2511
  E.value.length !== 0 ? (r(), c("ul", Wo, [
2514
- (r(!0), c(q, null, Z(E.value, (B, X) => (r(), c("li", {
2512
+ (r(!0), c(q, null, Z(E.value, (Q, X) => (r(), c("li", {
2515
2513
  key: X,
2516
- class: O(["template-selector__item-template", { "template-selector__item-selected": B.isSelected }]),
2517
- onClick: (ve) => v(B)
2514
+ class: O(["template-selector__item-template", { "template-selector__item-selected": Q.isSelected }]),
2515
+ onClick: (ve) => v(Q)
2518
2516
  }, [
2519
2517
  o("div", Jo, [
2520
- o("p", Go, N(B.title), 1),
2521
- o("p", Zo, N(B.template), 1)
2518
+ o("p", Go, N(Q.title), 1),
2519
+ o("p", Zo, N(Q.template), 1)
2522
2520
  ])
2523
2521
  ], 10, Ko))), 128))
2524
2522
  ])) : (r(), c("p", Xo, " Шаблоны отсутствуют "))
@@ -2528,7 +2526,7 @@ const Id = (e, t = null) => {
2528
2526
  ref: l,
2529
2527
  class: "template-selector__preview-container"
2530
2528
  }, [
2531
- Q.value.length > 0 ? (r(), c("div", el, [
2529
+ B.value.length > 0 ? (r(), c("div", el, [
2532
2530
  o("div", tl, [
2533
2531
  A.value.type != "TEXT" ? (r(), R(Eo, {
2534
2532
  key: 0,
@@ -2537,13 +2535,13 @@ const Id = (e, t = null) => {
2537
2535
  onFileSelected: i
2538
2536
  }, null, 8, ["type", "template-id"])) : b("", !0),
2539
2537
  o("div", fl, [
2540
- (r(!0), c(q, null, Z(Q.value, (B, X) => (r(), c(q, { key: X }, [
2541
- typeof B == "string" ? (r(), c("span", nl, N(B), 1)) : typeof B == "object" ? (r(), R(Io, {
2538
+ (r(!0), c(q, null, Z(B.value, (Q, X) => (r(), c(q, { key: X }, [
2539
+ typeof Q == "string" ? (r(), c("span", nl, N(Q), 1)) : typeof Q == "object" ? (r(), R(Io, {
2542
2540
  key: 1,
2543
- index: B.index,
2544
- value: T[B.index] || "Заполнить",
2545
- "is-filled": !!T[B.index],
2546
- onClick: (ve) => I(B.index)
2541
+ index: Q.index,
2542
+ value: T[Q.index] || "Заполнить",
2543
+ "is-filled": !!T[Q.index],
2544
+ onClick: (ve) => I(Q.index)
2547
2545
  }, null, 8, ["index", "value", "is-filled", "onClick"])) : b("", !0)
2548
2546
  ], 64))), 128))
2549
2547
  ]),
@@ -2572,7 +2570,7 @@ const Id = (e, t = null) => {
2572
2570
  re(o("input", {
2573
2571
  ref_key: "inputRef",
2574
2572
  ref: V,
2575
- "onUpdate:modelValue": L[2] || (L[2] = (B) => j.value = B),
2573
+ "onUpdate:modelValue": L[2] || (L[2] = (Q) => j.value = Q),
2576
2574
  type: "text",
2577
2575
  placeholder: "Введите значение",
2578
2576
  autofocus: U.value
@@ -2585,7 +2583,7 @@ const Id = (e, t = null) => {
2585
2583
  }, " Добавить "),
2586
2584
  o("button", {
2587
2585
  class: "template-selector__modal-button-cancel",
2588
- onClick: w
2586
+ onClick: k
2589
2587
  }, " Отменить ")
2590
2588
  ])) : b("", !0)
2591
2589
  ]),
@@ -15104,8 +15102,8 @@ var lA = function(t, f) {
15104
15102
  function AA(e) {
15105
15103
  var t, f = e.state, n = e.name, a = e.options, s = f.elements.arrow, i = f.modifiersData.popperOffsets, l = ke(f.placement), u = on(l), A = [se, ye].indexOf(l) >= 0, g = A ? "height" : "width";
15106
15104
  if (!(!s || !i)) {
15107
- var d = lA(a.padding, f), p = sn(s), m = u === "y" ? ae : se, v = u === "y" ? he : ye, y = f.rects.reference[g] + f.rects.reference[u] - i[u] - f.rects.popper[g], h = i[u] - f.rects.reference[u], E = Nt(s), T = E ? u === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, U = y / 2 - h / 2, V = d[m], k = T - p[g] - d[v], j = T / 2 - p[g] / 2 + U, I = pt(V, j, k), w = u;
15108
- f.modifiersData[n] = (t = {}, t[w] = I, t.centerOffset = I - j, t);
15105
+ var d = lA(a.padding, f), p = sn(s), m = u === "y" ? ae : se, v = u === "y" ? he : ye, y = f.rects.reference[g] + f.rects.reference[u] - i[u] - f.rects.popper[g], h = i[u] - f.rects.reference[u], E = Nt(s), T = E ? u === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, U = y / 2 - h / 2, V = d[m], w = T - p[g] - d[v], j = T / 2 - p[g] / 2 + U, I = pt(V, j, w), k = u;
15106
+ f.modifiersData[n] = (t = {}, t[k] = I, t.centerOffset = I - j, t);
15109
15107
  }
15110
15108
  }
15111
15109
  function rA(e) {
@@ -15138,28 +15136,28 @@ function dA(e) {
15138
15136
  };
15139
15137
  }
15140
15138
  function On(e) {
15141
- var t, f = e.popper, n = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, u = e.gpuAcceleration, A = e.adaptive, g = e.roundOffsets, d = e.isFixed, p = g === !0 ? dA(i) : typeof g == "function" ? g(i) : i, m = p.x, v = m === void 0 ? 0 : m, y = p.y, h = y === void 0 ? 0 : y, E = i.hasOwnProperty("x"), T = i.hasOwnProperty("y"), U = se, V = ae, k = window;
15139
+ var t, f = e.popper, n = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, u = e.gpuAcceleration, A = e.adaptive, g = e.roundOffsets, d = e.isFixed, p = g === !0 ? dA(i) : typeof g == "function" ? g(i) : i, m = p.x, v = m === void 0 ? 0 : m, y = p.y, h = y === void 0 ? 0 : y, E = i.hasOwnProperty("x"), T = i.hasOwnProperty("y"), U = se, V = ae, w = window;
15142
15140
  if (A) {
15143
- var j = Nt(f), I = "clientHeight", w = "clientWidth";
15144
- if (j === Me(f) && (j = Le(f), Ne(j).position !== "static" && l === "absolute" && (I = "scrollHeight", w = "scrollWidth")), j = j, a === ae || (a === se || a === ye) && s === It) {
15141
+ var j = Nt(f), I = "clientHeight", k = "clientWidth";
15142
+ if (j === Me(f) && (j = Le(f), Ne(j).position !== "static" && l === "absolute" && (I = "scrollHeight", k = "scrollWidth")), j = j, a === ae || (a === se || a === ye) && s === It) {
15145
15143
  V = he;
15146
- var D = d && k.visualViewport ? k.visualViewport.height : j[I];
15144
+ var D = d && w.visualViewport ? w.visualViewport.height : j[I];
15147
15145
  h -= D - n.height, h *= u ? 1 : -1;
15148
15146
  }
15149
15147
  if (a === se || (a === ae || a === he) && s === It) {
15150
15148
  U = ye;
15151
- var x = d && k.visualViewport ? k.visualViewport.width : j[w];
15149
+ var x = d && w.visualViewport ? w.visualViewport.width : j[k];
15152
15150
  v -= x - n.width, v *= u ? 1 : -1;
15153
15151
  }
15154
15152
  }
15155
- var Q = Object.assign({
15153
+ var B = Object.assign({
15156
15154
  position: l
15157
15155
  }, A && cA);
15158
15156
  if (u) {
15159
15157
  var H;
15160
- return Object.assign({}, Q, (H = {}, H[V] = T ? "0" : "", H[U] = E ? "0" : "", H.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + h + "px)" : "translate3d(" + v + "px, " + h + "px, 0)", H));
15158
+ return Object.assign({}, B, (H = {}, H[V] = T ? "0" : "", H[U] = E ? "0" : "", H.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + h + "px)" : "translate3d(" + v + "px, " + h + "px, 0)", H));
15161
15159
  }
15162
- return Object.assign({}, Q, (t = {}, t[V] = T ? h + "px" : "", t[U] = E ? v + "px" : "", t.transform = "", t));
15160
+ return Object.assign({}, B, (t = {}, t[V] = T ? h + "px" : "", t[U] = E ? v + "px" : "", t.transform = "", t));
15163
15161
  }
15164
15162
  function gA(e) {
15165
15163
  var t = e.state, f = e.options, n = f.gpuAcceleration, a = n === void 0 ? !0 : n, s = f.adaptive, i = s === void 0 ? !0 : s, l = f.roundOffsets, u = l === void 0 ? !0 : l, A = {
@@ -15349,12 +15347,12 @@ function _a(e) {
15349
15347
  }
15350
15348
  function kt(e, t) {
15351
15349
  t === void 0 && (t = {});
15352
- var f = t, n = f.placement, a = n === void 0 ? e.placement : n, s = f.boundary, i = s === void 0 ? Fl : s, l = f.rootBoundary, u = l === void 0 ? ga : l, A = f.elementContext, g = A === void 0 ? ot : A, d = f.altBoundary, p = d === void 0 ? !1 : d, m = f.padding, v = m === void 0 ? 0 : m, y = va(typeof v != "number" ? v : ba(v, wt)), h = g === ot ? ql : ot, E = e.rects.popper, T = e.elements[p ? h : g], U = kA(Je(T) ? T : T.contextElement || Le(e.elements.popper), i, u), V = Ze(e.elements.reference), k = _a({
15350
+ var f = t, n = f.placement, a = n === void 0 ? e.placement : n, s = f.boundary, i = s === void 0 ? Fl : s, l = f.rootBoundary, u = l === void 0 ? ga : l, A = f.elementContext, g = A === void 0 ? ot : A, d = f.altBoundary, p = d === void 0 ? !1 : d, m = f.padding, v = m === void 0 ? 0 : m, y = va(typeof v != "number" ? v : ba(v, wt)), h = g === ot ? ql : ot, E = e.rects.popper, T = e.elements[p ? h : g], U = kA(Je(T) ? T : T.contextElement || Le(e.elements.popper), i, u), V = Ze(e.elements.reference), w = _a({
15353
15351
  reference: V,
15354
15352
  element: E,
15355
15353
  strategy: "absolute",
15356
15354
  placement: a
15357
- }), j = Ff(Object.assign({}, E, k)), I = g === ot ? j : V, w = {
15355
+ }), j = Ff(Object.assign({}, E, w)), I = g === ot ? j : V, k = {
15358
15356
  top: U.top - I.top + y.top,
15359
15357
  bottom: I.bottom - U.bottom + y.bottom,
15360
15358
  left: U.left - I.left + y.left,
@@ -15362,12 +15360,12 @@ function kt(e, t) {
15362
15360
  }, D = e.modifiersData.offset;
15363
15361
  if (g === ot && D) {
15364
15362
  var x = D[a];
15365
- Object.keys(w).forEach(function(Q) {
15366
- var H = [ye, he].indexOf(Q) >= 0 ? 1 : -1, te = [ae, he].indexOf(Q) >= 0 ? "y" : "x";
15367
- w[Q] += x[te] * H;
15363
+ Object.keys(k).forEach(function(B) {
15364
+ var H = [ye, he].indexOf(B) >= 0 ? 1 : -1, te = [ae, he].indexOf(B) >= 0 ? "y" : "x";
15365
+ k[B] += x[te] * H;
15368
15366
  });
15369
15367
  }
15370
- return w;
15368
+ return k;
15371
15369
  }
15372
15370
  function wA(e, t) {
15373
15371
  t === void 0 && (t = {});
@@ -15407,25 +15405,25 @@ function DA(e) {
15407
15405
  flipVariations: v,
15408
15406
  allowedAutoPlacements: y
15409
15407
  }) : xe);
15410
- }, []), k = t.rects.reference, j = t.rects.popper, I = /* @__PURE__ */ new Map(), w = !0, D = V[0], x = 0; x < V.length; x++) {
15411
- var Q = V[x], H = ke(Q), te = Xe(Q) === Ke, ce = [ae, he].indexOf(H) >= 0, le = ce ? "width" : "height", S = kt(t, {
15412
- placement: Q,
15408
+ }, []), w = t.rects.reference, j = t.rects.popper, I = /* @__PURE__ */ new Map(), k = !0, D = V[0], x = 0; x < V.length; x++) {
15409
+ var B = V[x], H = ke(B), te = Xe(B) === Ke, ce = [ae, he].indexOf(H) >= 0, le = ce ? "width" : "height", S = kt(t, {
15410
+ placement: B,
15413
15411
  boundary: g,
15414
15412
  rootBoundary: d,
15415
15413
  altBoundary: p,
15416
15414
  padding: A
15417
15415
  }), L = ce ? te ? ye : se : te ? he : ae;
15418
- k[le] > j[le] && (L = Bt(L));
15419
- var B = Bt(L), X = [];
15420
- if (s && X.push(S[H] <= 0), l && X.push(S[L] <= 0, S[B] <= 0), X.every(function(Fe) {
15416
+ w[le] > j[le] && (L = Bt(L));
15417
+ var Q = Bt(L), X = [];
15418
+ if (s && X.push(S[H] <= 0), l && X.push(S[L] <= 0, S[Q] <= 0), X.every(function(Fe) {
15421
15419
  return Fe;
15422
15420
  })) {
15423
- D = Q, w = !1;
15421
+ D = B, k = !1;
15424
15422
  break;
15425
15423
  }
15426
- I.set(Q, X);
15424
+ I.set(B, X);
15427
15425
  }
15428
- if (w)
15426
+ if (k)
15429
15427
  for (var ve = v ? 3 : 1, De = function(xe) {
15430
15428
  var st = V.find(function(Tt) {
15431
15429
  var Be = I.get(Tt);
@@ -15543,7 +15541,7 @@ function LA(e) {
15543
15541
  rootBoundary: A,
15544
15542
  padding: d,
15545
15543
  altBoundary: g
15546
- }), E = ke(t.placement), T = Xe(t.placement), U = !T, V = on(E), k = zA(V), j = t.modifiersData.popperOffsets, I = t.rects.reference, w = t.rects.popper, D = typeof y == "function" ? y(Object.assign({}, t.rects, {
15544
+ }), E = ke(t.placement), T = Xe(t.placement), U = !T, V = on(E), w = zA(V), j = t.modifiersData.popperOffsets, I = t.rects.reference, k = t.rects.popper, D = typeof y == "function" ? y(Object.assign({}, t.rects, {
15547
15545
  placement: t.placement
15548
15546
  })) : y, x = typeof D == "number" ? {
15549
15547
  mainAxis: D,
@@ -15551,21 +15549,21 @@ function LA(e) {
15551
15549
  } : Object.assign({
15552
15550
  mainAxis: 0,
15553
15551
  altAxis: 0
15554
- }, D), Q = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, H = {
15552
+ }, D), B = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, H = {
15555
15553
  x: 0,
15556
15554
  y: 0
15557
15555
  };
15558
15556
  if (j) {
15559
15557
  if (s) {
15560
- var te, ce = V === "y" ? ae : se, le = V === "y" ? he : ye, S = V === "y" ? "height" : "width", L = j[V], B = L + h[ce], X = L - h[le], ve = m ? -w[S] / 2 : 0, De = T === Ke ? I[S] : w[S], at = T === Ke ? -w[S] : -I[S], Et = t.elements.arrow, Fe = m && Et ? sn(Et) : {
15558
+ var te, ce = V === "y" ? ae : se, le = V === "y" ? he : ye, S = V === "y" ? "height" : "width", L = j[V], Q = L + h[ce], X = L - h[le], ve = m ? -k[S] / 2 : 0, De = T === Ke ? I[S] : k[S], at = T === Ke ? -k[S] : -I[S], Et = t.elements.arrow, Fe = m && Et ? sn(Et) : {
15561
15559
  width: 0,
15562
15560
  height: 0
15563
- }, xe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ya(), st = xe[ce], Tt = xe[le], Be = pt(0, I[S], Fe[S]), Mf = U ? I[S] / 2 - ve - Be - st - x.mainAxis : De - Be - st - x.mainAxis, Na = U ? -I[S] / 2 + ve + Be + Tt + x.mainAxis : at + Be + Tt + x.mainAxis, _f = t.elements.arrow && Nt(t.elements.arrow), Da = _f ? V === "y" ? _f.clientTop || 0 : _f.clientLeft || 0 : 0, cn = (te = Q == null ? void 0 : Q[V]) != null ? te : 0, ja = L + Mf - cn - Da, Ea = L + Na - cn, dn = pt(m ? pf(B, ja) : B, L, m ? Ye(X, Ea) : X);
15561
+ }, xe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ya(), st = xe[ce], Tt = xe[le], Be = pt(0, I[S], Fe[S]), Mf = U ? I[S] / 2 - ve - Be - st - x.mainAxis : De - Be - st - x.mainAxis, Na = U ? -I[S] / 2 + ve + Be + Tt + x.mainAxis : at + Be + Tt + x.mainAxis, _f = t.elements.arrow && Nt(t.elements.arrow), Da = _f ? V === "y" ? _f.clientTop || 0 : _f.clientLeft || 0 : 0, cn = (te = B == null ? void 0 : B[V]) != null ? te : 0, ja = L + Mf - cn - Da, Ea = L + Na - cn, dn = pt(m ? pf(Q, ja) : Q, L, m ? Ye(X, Ea) : X);
15564
15562
  j[V] = dn, H[V] = dn - L;
15565
15563
  }
15566
15564
  if (l) {
15567
- var gn, Ta = V === "x" ? ae : se, xa = V === "x" ? he : ye, Qe = j[k], xt = k === "y" ? "height" : "width", mn = Qe + h[Ta], pn = Qe - h[xa], If = [ae, se].indexOf(E) !== -1, hn = (gn = Q == null ? void 0 : Q[k]) != null ? gn : 0, yn = If ? mn : Qe - I[xt] - w[xt] - hn + x.altAxis, vn = If ? Qe + I[xt] + w[xt] - hn - x.altAxis : pn, bn = m && If ? oA(yn, Qe, vn) : pt(m ? yn : mn, Qe, m ? vn : pn);
15568
- j[k] = bn, H[k] = bn - Qe;
15565
+ var gn, Ta = V === "x" ? ae : se, xa = V === "x" ? he : ye, Qe = j[w], xt = w === "y" ? "height" : "width", mn = Qe + h[Ta], pn = Qe - h[xa], If = [ae, se].indexOf(E) !== -1, hn = (gn = B == null ? void 0 : B[w]) != null ? gn : 0, yn = If ? mn : Qe - I[xt] - k[xt] - hn + x.altAxis, vn = If ? Qe + I[xt] + k[xt] - hn - x.altAxis : pn, bn = m && If ? oA(yn, Qe, vn) : pt(m ? yn : mn, Qe, m ? vn : pn);
15566
+ j[w] = bn, H[w] = bn - Qe;
15569
15567
  }
15570
15568
  t.modifiersData[n] = H;
15571
15569
  }
@@ -15711,10 +15709,10 @@ function HA(e) {
15711
15709
  g.reset = !1, V = -1;
15712
15710
  continue;
15713
15711
  }
15714
- var k = g.orderedModifiers[V], j = k.fn, I = k.options, w = I === void 0 ? {} : I, D = k.name;
15712
+ var w = g.orderedModifiers[V], j = w.fn, I = w.options, k = I === void 0 ? {} : I, D = w.name;
15715
15713
  typeof j == "function" && (g = j({
15716
15714
  state: g,
15717
- options: w,
15715
+ options: k,
15718
15716
  name: D,
15719
15717
  instance: m
15720
15718
  }) || g);
@@ -15740,14 +15738,14 @@ function HA(e) {
15740
15738
  g.orderedModifiers.forEach(function(h) {
15741
15739
  var E = h.name, T = h.options, U = T === void 0 ? {} : T, V = h.effect;
15742
15740
  if (typeof V == "function") {
15743
- var k = V({
15741
+ var w = V({
15744
15742
  state: g,
15745
15743
  name: E,
15746
15744
  instance: m,
15747
15745
  options: U
15748
15746
  }), j = function() {
15749
15747
  };
15750
- d.push(k || j);
15748
+ d.push(w || j);
15751
15749
  }
15752
15750
  });
15753
15751
  }
@@ -16484,7 +16482,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
16484
16482
  };
16485
16483
  return oe(() => {
16486
16484
  const i = C(n);
16487
- i == null || i.focus(), s(), f("search", i == null ? void 0 : i.value);
16485
+ i == null || i.focus(), f("search", i == null ? void 0 : i.value);
16488
16486
  }), (i, l) => (r(), R(W, null, {
16489
16487
  default: K(() => [
16490
16488
  o("div", Xr, [
@@ -16508,7 +16506,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
16508
16506
  _: 1
16509
16507
  }));
16510
16508
  }
16511
- }), Cd = /* @__PURE__ */ z(fu, [["__scopeId", "data-v-d3e5d72d"]]), nu = { class: "feed-found-item__avatar-container" }, au = ["src"], su = {
16509
+ }), Cd = /* @__PURE__ */ z(fu, [["__scopeId", "data-v-6c36d1e5"]]), nu = { class: "feed-found-item__avatar-container" }, au = ["src"], su = {
16512
16510
  key: 1,
16513
16511
  class: "pi pi-user"
16514
16512
  }, iu = { class: "feed-found-item__info" }, ou = { class: "feed-found-item__first-line" }, lu = { class: "feed-found-item__name" }, Au = { class: "feed-found-item__time" }, ru = { class: "feed-found-item__second-line" }, uu = ["src"], cu = /* @__PURE__ */ P({
@@ -16620,7 +16618,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
16620
16618
  ])) : b("", !0)
16621
16619
  ], 64));
16622
16620
  }
16623
- }), Od = /* @__PURE__ */ z(hu, [["__scopeId", "data-v-fcfd69e0"]]), nt = /* @__PURE__ */ P({
16621
+ }), Od = /* @__PURE__ */ z(hu, [["__scopeId", "data-v-7b8b76e1"]]), nt = /* @__PURE__ */ P({
16624
16622
  __name: "BaseReplyMessage",
16625
16623
  props: {
16626
16624
  message: {
@@ -16848,11 +16846,11 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
16848
16846
  },
16849
16847
  { immediate: !0 }
16850
16848
  );
16851
- const A = (k) => {
16852
- n("reply", k);
16849
+ const A = (w) => {
16850
+ n("reply", w);
16853
16851
  };
16854
- function g(k) {
16855
- k.preventDefault(), k.target.href && window.open(k.target.href, "_blank");
16852
+ function g(w) {
16853
+ w.preventDefault(), w.target.href && window.open(w.target.href, "_blank");
16856
16854
  }
16857
16855
  const d = () => {
16858
16856
  n("action", { messageId: f.message.messageId, type: "views" });
@@ -16862,19 +16860,19 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
16862
16860
  }, v = () => {
16863
16861
  i.value = !1, s.value = !1;
16864
16862
  }, y = F(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), h = F(() => ft(f.message.status));
16865
- function E(k) {
16866
- return k.position === "left" ? "image-message__left" : "image-message__right";
16863
+ function E(w) {
16864
+ return w.position === "left" ? "image-message__left" : "image-message__right";
16867
16865
  }
16868
- const T = () => a.value = !1, U = (k) => {
16869
- k.target.classList.contains("image-message__modal-overlay") && T();
16870
- }, V = (k) => {
16871
- k.key === "Escape" && a.value && T();
16866
+ const T = () => a.value = !1, U = (w) => {
16867
+ w.target.classList.contains("image-message__modal-overlay") && T();
16868
+ }, V = (w) => {
16869
+ w.key === "Escape" && a.value && T();
16872
16870
  };
16873
16871
  return oe(() => {
16874
16872
  document.addEventListener("keydown", V);
16875
16873
  }), et(() => {
16876
16874
  document.removeEventListener("keydown", V);
16877
- }), (k, j) => (r(), c("div", {
16875
+ }), (w, j) => (r(), c("div", {
16878
16876
  class: O(["image-message", E(e.message)]),
16879
16877
  messageId: e.message.messageId,
16880
16878
  onMouseleave: v
@@ -17181,10 +17179,10 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17181
17179
  a.value && (s.value ? a.value.pause() : a.value.play(), s.value = !s.value);
17182
17180
  }
17183
17181
  const V = (D) => {
17184
- const x = Math.floor(D / 60), Q = Math.floor(D % 60);
17185
- return `${x.toString().padStart(2, "0")}:${Q.toString().padStart(2, "0")}`;
17186
- }, k = F(() => a.value ? V(l.value) : "0:00"), j = F(() => a.value ? V(i.value) : "0:00"), I = F(() => i.value > 0 ? l.value / i.value * 100 : 0);
17187
- function w(D) {
17182
+ const x = Math.floor(D / 60), B = Math.floor(D % 60);
17183
+ return `${x.toString().padStart(2, "0")}:${B.toString().padStart(2, "0")}`;
17184
+ }, w = F(() => a.value ? V(l.value) : "0:00"), j = F(() => a.value ? V(i.value) : "0:00"), I = F(() => i.value > 0 ? l.value / i.value * 100 : 0);
17185
+ function k(D) {
17188
17186
  return D.position === "left" ? "audio-message__left" : "audio-message__right";
17189
17187
  }
17190
17188
  return oe(() => {
@@ -17194,9 +17192,9 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17194
17192
  l.value = a.value != null ? a.value.currentTime : 0;
17195
17193
  }));
17196
17194
  }), (D, x) => {
17197
- var Q;
17195
+ var B;
17198
17196
  return r(), c("div", {
17199
- class: O(["audio-message", w(e.message)]),
17197
+ class: O(["audio-message", k(e.message)]),
17200
17198
  messageId: e.message.messageId,
17201
17199
  onMouseleave: y
17202
17200
  }, [
@@ -17248,7 +17246,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17248
17246
  style: ee({ width: I.value + "%" })
17249
17247
  }, null, 4)
17250
17248
  ]),
17251
- o("p", dc, N(`${k.value} / ${j.value}`), 1),
17249
+ o("p", dc, N(`${w.value} / ${j.value}`), 1),
17252
17250
  o("a", {
17253
17251
  class: "audio-message__download-button",
17254
17252
  onClick: vt(() => "//Предотвращаем всплытие события клика", ["stop"]),
@@ -17259,7 +17257,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17259
17257
  o("span", { class: "pi pi-download" }, null, -1)
17260
17258
  ]), 8, gc)
17261
17259
  ]),
17262
- (Q = e.message.transcript) != null && Q.text ? (r(), c("div", mc, [
17260
+ (B = e.message.transcript) != null && B.text ? (r(), c("div", mc, [
17263
17261
  o("p", {
17264
17262
  onClick: x[0] || (x[0] = (H) => d.value = !d.value)
17265
17263
  }, N(e.message.transcript.text), 1)
@@ -17285,7 +17283,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17285
17283
  o("p", null, N(e.message.views), 1)
17286
17284
  ])) : b("", !0),
17287
17285
  o("span", vc, N(e.message.time), 1),
17288
- w(e.message) === "audio-message__right" && C(tt).includes(e.message.status) ? (r(), c("div", {
17286
+ k(e.message) === "audio-message__right" && C(tt).includes(e.message.status) ? (r(), c("div", {
17289
17287
  key: 1,
17290
17288
  class: O(["audio-message__status", T.value])
17291
17289
  }, [
@@ -17376,11 +17374,11 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17376
17374
  },
17377
17375
  emits: ["action", "reply"],
17378
17376
  setup(e, { emit: t }) {
17379
- const f = e, n = t, a = (w) => {
17380
- n("reply", w);
17377
+ const f = e, n = t, a = (k) => {
17378
+ n("reply", k);
17381
17379
  };
17382
- function s(w) {
17383
- return w.position === "left" ? "video-message__left" : "video-message__right";
17380
+ function s(k) {
17381
+ return k.position === "left" ? "video-message__left" : "video-message__right";
17384
17382
  }
17385
17383
  const i = M(), l = M(), u = M(!1), A = M(!1), g = M(!1), d = M(!1), p = M("");
17386
17384
  J(
@@ -17390,8 +17388,8 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17390
17388
  },
17391
17389
  { immediate: !0 }
17392
17390
  );
17393
- function m(w) {
17394
- w.preventDefault(), w.target.href && window.open(w.target.href, "_blank");
17391
+ function m(k) {
17392
+ k.preventDefault(), k.target.href && window.open(k.target.href, "_blank");
17395
17393
  }
17396
17394
  const v = () => {
17397
17395
  n("action", { messageId: f.message.messageId, type: "views" });
@@ -17403,19 +17401,19 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17403
17401
  }, T = F(() => ft(f.message.status)), U = () => {
17404
17402
  l.value && (l.value.currentTime = 0, l.value.play());
17405
17403
  };
17406
- J([i, l], ([w, D]) => {
17407
- w ? D && (D.pause(), D.currentTime = 0) : D && (D.play(), D.currentTime = 0);
17404
+ J([i, l], ([k, D]) => {
17405
+ k ? D && (D.pause(), D.currentTime = 0) : D && (D.play(), D.currentTime = 0);
17408
17406
  });
17409
- const V = F(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), k = () => u.value = !1, j = (w) => {
17410
- w.target.classList.contains("video-message__modal-overlay") && k();
17411
- }, I = (w) => {
17412
- w.key === "Escape" && u.value && k();
17407
+ const V = F(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), w = () => u.value = !1, j = (k) => {
17408
+ k.target.classList.contains("video-message__modal-overlay") && w();
17409
+ }, I = (k) => {
17410
+ k.key === "Escape" && u.value && w();
17413
17411
  };
17414
17412
  return oe(() => {
17415
17413
  document.addEventListener("keydown", I);
17416
17414
  }), et(() => {
17417
17415
  document.removeEventListener("keydown", I);
17418
- }), (w, D) => (r(), c(q, null, [
17416
+ }), (k, D) => (r(), c(q, null, [
17419
17417
  o("div", {
17420
17418
  class: O(["video-message", s(e.message)]),
17421
17419
  messageId: e.message.messageId,
@@ -17539,7 +17537,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
17539
17537
  o("div", Rc, [
17540
17538
  o("button", {
17541
17539
  class: "video-message__modal-close-button",
17542
- onClick: k
17540
+ onClick: w
17543
17541
  }, D[7] || (D[7] = [
17544
17542
  o("span", null, [
17545
17543
  o("i", { class: "pi pi-times" })
@@ -18056,7 +18054,7 @@ function un({ component: e, attrs: t }) {
18056
18054
  const zd = async (e, t) => {
18057
18055
  const f = await un({
18058
18056
  //в component должен быть встроен emit change(key: value)
18059
- component: import("./SelectUser2-BLSqC2or.js"),
18057
+ component: import("./SelectUser2-B3uY0b4m.js"),
18060
18058
  attrs: {
18061
18059
  title: e,
18062
18060
  users: t