@mobilon-dev/chotto 0.0.30 → 0.0.31

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.
@@ -1,4 +1,4 @@
1
- import { openBlock as r, createElementBlock as d, createElementVNode as o, Fragment as B, renderList as R, createCommentVNode as y, toDisplayString as _, ref as v, computed as x, normalizeClass as E, normalizeStyle as Q, createTextVNode as bn, createVNode as S, Transition as H, withCtx as K, createBlock as L, Teleport as yn, onMounted as _e, withDirectives as ae, vShow as pe, renderSlot as W, defineComponent as ce, inject as Pe, getCurrentInstance as vn, toRaw as Jf, watch as Ze, onBeforeUnmount as In, provide as _n, reactive as wn, readonly as Dn, vModelText as Wf, resolveComponent as Fe, onUnmounted as Nn, withModifiers as kn, mergeModels as Ef, useModel as jn, unref as me, withKeys as Vn, onUpdated as En, resolveDynamicComponent as Tn, nextTick as Hf, toRef as xn, vModelCheckbox as Sn, h as Tf, defineAsyncComponent as zn, createApp as On } from "vue";
1
+ import { openBlock as r, createElementBlock as d, createElementVNode as o, Fragment as B, renderList as R, createCommentVNode as y, toDisplayString as _, ref as v, computed as x, normalizeClass as E, normalizeStyle as U, createTextVNode as bn, createVNode as S, Transition as H, withCtx as K, createBlock as Q, Teleport as yn, onMounted as _e, withDirectives as ae, vShow as pe, renderSlot as W, defineComponent as ce, inject as Pe, getCurrentInstance as vn, toRaw as Jf, watch as Ze, onBeforeUnmount as In, provide as _n, reactive as wn, readonly as Dn, vModelText as Wf, resolveComponent as Fe, onUnmounted as Nn, withModifiers as kn, mergeModels as Ef, useModel as jn, unref as me, withKeys as Vn, onUpdated as En, resolveDynamicComponent as Tn, nextTick as Hf, toRef as xn, vModelCheckbox as Sn, h as Tf, defineAsyncComponent as zn, createApp as On } from "vue";
2
2
  const N = (e, f) => {
3
3
  const n = e.__vccOpts || e;
4
4
  for (const [a, A] of f)
@@ -82,7 +82,7 @@ const N = (e, f) => {
82
82
  src: e.message.avatar,
83
83
  height: "32",
84
84
  width: "32",
85
- style: Q({ gridRow: e.message.subText ? "2" : "1" })
85
+ style: U({ gridRow: e.message.subText ? "2" : "1" })
86
86
  }, null, 12, qn)) : y("", !0),
87
87
  e.message.subText ? (r(), d("p", Fn, _(e.message.subText), 1)) : y("", !0),
88
88
  o("div", {
@@ -117,7 +117,7 @@ const N = (e, f) => {
117
117
  ]))) : y("", !0),
118
118
  S(H, null, {
119
119
  default: K(() => [
120
- n.value && e.message.actions ? (r(), L(de, {
120
+ n.value && e.message.actions ? (r(), Q(de, {
121
121
  key: 0,
122
122
  class: "file-message__context-menu",
123
123
  actions: e.message.actions,
@@ -176,7 +176,7 @@ const N = (e, f) => {
176
176
  src: e.message.avatar,
177
177
  height: "32",
178
178
  width: "32",
179
- style: Q({ gridRow: e.message.subText ? "2" : "1" })
179
+ style: U({ gridRow: e.message.subText ? "2" : "1" })
180
180
  }, null, 12, Gn)) : y("", !0),
181
181
  e.message.subText ? (r(), d("p", Xn, _(e.message.subText), 1)) : y("", !0),
182
182
  o("div", {
@@ -203,7 +203,7 @@ const N = (e, f) => {
203
203
  ], 2)) : y("", !0)
204
204
  ])
205
205
  ]),
206
- (r(), L(yn, { to: "body" }, [
206
+ (r(), Q(yn, { to: "body" }, [
207
207
  S(H, { name: "modal-fade" }, {
208
208
  default: K(() => [
209
209
  n.value ? (r(), d("div", Aa, [
@@ -236,7 +236,7 @@ const N = (e, f) => {
236
236
  ]))) : y("", !0),
237
237
  S(H, { name: "context-menu" }, {
238
238
  default: K(() => [
239
- a.value && e.message.actions ? (r(), L(de, {
239
+ a.value && e.message.actions ? (r(), Q(de, {
240
240
  key: 0,
241
241
  class: "image-message__context-menu",
242
242
  actions: e.message.actions,
@@ -248,7 +248,7 @@ const N = (e, f) => {
248
248
  ], 32)
249
249
  ], 42, $n));
250
250
  }
251
- }, oa = /* @__PURE__ */ N(ia, [["__scopeId", "data-v-e0bd5efe"]]), ua = { class: "text-message" }, ra = ["messageId"], la = ["src"], ca = {
251
+ }, oa = /* @__PURE__ */ N(ia, [["__scopeId", "data-v-fc3ad917"]]), ua = { class: "text-message" }, ra = ["messageId"], la = ["src"], ca = {
252
252
  key: 1,
253
253
  class: "text-message__subtext"
254
254
  }, da = { class: "text-message__text" }, ga = { class: "text-message__info-container" }, ma = {
@@ -299,7 +299,7 @@ const N = (e, f) => {
299
299
  src: e.message.avatar,
300
300
  height: "32",
301
301
  width: "32",
302
- style: Q({ gridRow: e.message.subText ? "2" : "1" })
302
+ style: U({ gridRow: e.message.subText ? "2" : "1" })
303
303
  }, null, 12, la)) : y("", !0),
304
304
  e.message.subText ? (r(), d("p", ca, _(e.message.subText), 1)) : y("", !0),
305
305
  o("div", {
@@ -326,7 +326,7 @@ const N = (e, f) => {
326
326
  ]))) : y("", !0),
327
327
  S(H, null, {
328
328
  default: K(() => [
329
- A.value && e.message.actions ? (r(), L(de, {
329
+ A.value && e.message.actions ? (r(), Q(de, {
330
330
  key: 0,
331
331
  class: "text-message__context-menu",
332
332
  actions: e.message.actions,
@@ -339,7 +339,7 @@ const N = (e, f) => {
339
339
  ], 42, ra)
340
340
  ]));
341
341
  }
342
- }, ha = /* @__PURE__ */ N(Ma, [["__scopeId", "data-v-a5a4367e"]]), ba = ["messageId"], ya = ["src"], va = {
342
+ }, ha = /* @__PURE__ */ N(Ma, [["__scopeId", "data-v-2c4395f4"]]), ba = ["messageId"], ya = ["src"], va = {
343
343
  key: 1,
344
344
  class: "audio-message__subtext"
345
345
  }, Ia = ["src"], _a = { class: "audio-message__progress-bar-container" }, wa = { class: "audio-message__remaining-time" }, Da = { class: "audio-message__info-container" }, Na = { class: "audio-message__time" }, ka = {
@@ -395,7 +395,7 @@ const N = (e, f) => {
395
395
  src: e.message.avatar,
396
396
  height: "32",
397
397
  width: "32",
398
- style: Q({ gridRow: e.message.subText ? "2" : "1" })
398
+ style: U({ gridRow: e.message.subText ? "2" : "1" })
399
399
  }, null, 12, ya)) : y("", !0),
400
400
  e.message.subText ? (r(), d("p", va, _(e.message.subText), 1)) : y("", !0),
401
401
  o("div", {
@@ -426,7 +426,7 @@ const N = (e, f) => {
426
426
  o("div", _a, [
427
427
  o("div", {
428
428
  class: "audio-message__progress-bar",
429
- style: Q({ width: p.value + "%" })
429
+ style: U({ width: p.value + "%" })
430
430
  }, null, 4)
431
431
  ]),
432
432
  o("p", wa, _(`${m.value} / ${h.value}`), 1),
@@ -449,7 +449,7 @@ const N = (e, f) => {
449
449
  ]))) : y("", !0),
450
450
  S(H, null, {
451
451
  default: K(() => [
452
- t.value && e.message.actions ? (r(), L(de, {
452
+ t.value && e.message.actions ? (r(), Q(de, {
453
453
  key: 0,
454
454
  class: "audio-message__context-menu",
455
455
  actions: e.message.actions,
@@ -516,7 +516,7 @@ const N = (e, f) => {
516
516
  ])
517
517
  ])) : y("", !0);
518
518
  }
519
- }, fo = /* @__PURE__ */ N(qa, [["__scopeId", "data-v-d3892a42"]]), Kf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Pf = {
519
+ }, eo = /* @__PURE__ */ N(qa, [["__scopeId", "data-v-d3892a42"]]), Kf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Pf = {
520
520
  recent: "Recently used",
521
521
  smileys_people: "Smiles & People",
522
522
  animals_nature: "Animals & Nature",
@@ -12989,8 +12989,8 @@ function Lf(e) {
12989
12989
  var j = Oe(n), V = "clientHeight", z = "clientWidth";
12990
12990
  if (j === X(n) && (j = se(n), ne(j).position !== "static" && i === "absolute" && (V = "scrollHeight", z = "scrollWidth")), j = j, A === q || (A === F || A === $) && s === xe) {
12991
12991
  D = Z;
12992
- var U = g && T.visualViewport ? T.visualViewport.height : j[V];
12993
- M -= U - a.height, M *= u ? 1 : -1;
12992
+ var L = g && T.visualViewport ? T.visualViewport.height : j[V];
12993
+ M -= L - a.height, M *= u ? 1 : -1;
12994
12994
  }
12995
12995
  if (A === F || (A === q || A === Z) && s === xe) {
12996
12996
  k = $;
@@ -13205,9 +13205,9 @@ function Se(e, f) {
13205
13205
  bottom: V.bottom - k.bottom + b.bottom,
13206
13206
  left: k.left - V.left + b.left,
13207
13207
  right: V.right - k.right + b.right
13208
- }, U = e.modifiersData.offset;
13209
- if (c === je && U) {
13210
- var O = U[A];
13208
+ }, L = e.modifiersData.offset;
13209
+ if (c === je && L) {
13210
+ var O = L[A];
13211
13211
  Object.keys(z).forEach(function(C) {
13212
13212
  var Y = [$, Z].indexOf(C) >= 0 ? 1 : -1, ie = [q, Z].indexOf(C) >= 0 ? "y" : "x";
13213
13213
  z[C] += O[ie] * Y;
@@ -13253,7 +13253,7 @@ function tt(e) {
13253
13253
  flipVariations: p,
13254
13254
  allowedAutoPlacements: b
13255
13255
  }) : Ae);
13256
- }, []), T = f.rects.reference, j = f.rects.popper, V = /* @__PURE__ */ new Map(), z = !0, U = D[0], O = 0; O < D.length; O++) {
13256
+ }, []), T = f.rects.reference, j = f.rects.popper, V = /* @__PURE__ */ new Map(), z = !0, L = D[0], O = 0; O < D.length; O++) {
13257
13257
  var C = D[O], Y = ee(C), ie = Ie(C) === he, we = [q, Z].indexOf(Y) >= 0, De = we ? "width" : "height", J = Se(f, {
13258
13258
  placement: C,
13259
13259
  boundary: c,
@@ -13266,7 +13266,7 @@ function tt(e) {
13266
13266
  if (s && oe.push(J[Y] <= 0), i && oe.push(J[G] <= 0, J[Ue] <= 0), oe.every(function(ge) {
13267
13267
  return ge;
13268
13268
  })) {
13269
- U = C, z = !1;
13269
+ L = C, z = !1;
13270
13270
  break;
13271
13271
  }
13272
13272
  V.set(C, oe);
@@ -13281,13 +13281,13 @@ function tt(e) {
13281
13281
  });
13282
13282
  });
13283
13283
  if (ke)
13284
- return U = ke, "break";
13284
+ return L = ke, "break";
13285
13285
  }, Ne = Le; Ne > 0; Ne--) {
13286
13286
  var Qe = Xe(Ne);
13287
13287
  if (Qe === "break")
13288
13288
  break;
13289
13289
  }
13290
- f.placement !== U && (f.modifiersData[a]._skip = !0, f.placement = U, f.reset = !0);
13290
+ f.placement !== L && (f.modifiersData[a]._skip = !0, f.placement = L, f.reset = !0);
13291
13291
  }
13292
13292
  }
13293
13293
  var st = {
@@ -13389,15 +13389,15 @@ function mt(e) {
13389
13389
  rootBoundary: l,
13390
13390
  padding: g,
13391
13391
  altBoundary: c
13392
- }), I = ee(f.placement), w = Ie(f.placement), k = !w, D = Mf(I), T = gt(D), j = f.modifiersData.popperOffsets, V = f.rects.reference, z = f.rects.popper, U = typeof b == "function" ? b(Object.assign({}, f.rects, {
13392
+ }), I = ee(f.placement), w = Ie(f.placement), k = !w, D = Mf(I), T = gt(D), j = f.modifiersData.popperOffsets, V = f.rects.reference, z = f.rects.popper, L = typeof b == "function" ? b(Object.assign({}, f.rects, {
13393
13393
  placement: f.placement
13394
- })) : b, O = typeof U == "number" ? {
13395
- mainAxis: U,
13396
- altAxis: U
13394
+ })) : b, O = typeof L == "number" ? {
13395
+ mainAxis: L,
13396
+ altAxis: L
13397
13397
  } : Object.assign({
13398
13398
  mainAxis: 0,
13399
13399
  altAxis: 0
13400
- }, U), C = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, Y = {
13400
+ }, L), C = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, Y = {
13401
13401
  x: 0,
13402
13402
  y: 0
13403
13403
  };
@@ -13557,11 +13557,11 @@ function Dt(e) {
13557
13557
  c.reset = !1, D = -1;
13558
13558
  continue;
13559
13559
  }
13560
- var T = c.orderedModifiers[D], j = T.fn, V = T.options, z = V === void 0 ? {} : V, U = T.name;
13560
+ var T = c.orderedModifiers[D], j = T.fn, V = T.options, z = V === void 0 ? {} : V, L = T.name;
13561
13561
  typeof j == "function" && (c = j({
13562
13562
  state: c,
13563
13563
  options: z,
13564
- name: U,
13564
+ name: L,
13565
13565
  instance: h
13566
13566
  }) || c);
13567
13567
  }
@@ -14192,7 +14192,7 @@ const v1 = ce({
14192
14192
  });
14193
14193
  function I1(e, f, n, a, A, s) {
14194
14194
  const t = Fe("picker-root");
14195
- return r(), L(t, {
14195
+ return r(), Q(t, {
14196
14196
  type: e.type,
14197
14197
  text: e.input,
14198
14198
  onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
@@ -14323,7 +14323,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14323
14323
  o("div", U1, [
14324
14324
  S(H, null, {
14325
14325
  default: K(() => [
14326
- i.value ? (r(), L(me(_1), {
14326
+ i.value ? (r(), Q(me(_1), {
14327
14327
  key: 0,
14328
14328
  class: "chat-input__emoji",
14329
14329
  native: !0,
@@ -14365,7 +14365,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14365
14365
  ])
14366
14366
  ]));
14367
14367
  }
14368
- }, no = /* @__PURE__ */ N(L1, [["__scopeId", "data-v-91dd8fda"]]), Q1 = { class: "chat-item__avatar-container" }, B1 = ["src"], Y1 = {
14368
+ }, fo = /* @__PURE__ */ N(L1, [["__scopeId", "data-v-91dd8fda"]]), Q1 = { class: "chat-item__avatar-container" }, B1 = ["src"], Y1 = {
14369
14369
  key: 1,
14370
14370
  class: "pi pi-user"
14371
14371
  }, R1 = { class: "chat-item__info-container" }, q1 = { class: "chat-item__name" }, F1 = {
@@ -14411,7 +14411,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14411
14411
  o("div", Q1, [
14412
14412
  o("span", {
14413
14413
  class: "chat-item__status",
14414
- style: Q({ backgroundColor: n.chat.status })
14414
+ style: U({ backgroundColor: n.chat.status })
14415
14415
  }, null, 4),
14416
14416
  n.chat.avatar ? (r(), d("img", {
14417
14417
  key: 0,
@@ -14438,7 +14438,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14438
14438
  ]),
14439
14439
  S(H, null, {
14440
14440
  default: K(() => [
14441
- i.value && e.chat.actions ? (r(), L(de, {
14441
+ i.value && e.chat.actions ? (r(), Q(de, {
14442
14442
  key: 0,
14443
14443
  class: "chat-item__context-menu",
14444
14444
  actions: e.chat.actions,
@@ -14531,7 +14531,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14531
14531
  ])) : y("", !0),
14532
14532
  S(H, null, {
14533
14533
  default: K(() => [
14534
- a.value && e.actions ? (r(), L(de, {
14534
+ a.value && e.actions ? (r(), Q(de, {
14535
14535
  key: 0,
14536
14536
  actions: e.actions,
14537
14537
  class: "chat-list__context-menu",
@@ -14541,14 +14541,14 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14541
14541
  _: 1
14542
14542
  })
14543
14543
  ], 32),
14544
- e.filterEnabled ? (r(), L(X1, {
14544
+ e.filterEnabled ? (r(), Q(X1, {
14545
14545
  key: 0,
14546
14546
  class: "chat-list__filter",
14547
14547
  onUpdate: l
14548
14548
  })) : y("", !0),
14549
14549
  o("div", As, [
14550
14550
  o("div", ts, [
14551
- (r(!0), d(B, null, R(u().filter((h) => h.isFixedTop), (h) => (r(), L(sf, {
14551
+ (r(!0), d(B, null, R(u().filter((h) => h.isFixedTop), (h) => (r(), Q(sf, {
14552
14552
  key: h.chatId,
14553
14553
  class: "chat-list__item",
14554
14554
  chat: h,
@@ -14557,7 +14557,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14557
14557
  }, null, 8, ["chat"]))), 128))
14558
14558
  ]),
14559
14559
  o("div", ss, [
14560
- (r(!0), d(B, null, R(u().filter((h) => !h.isFixedBottom && !h.isFixedTop), (h) => (r(), L(sf, {
14560
+ (r(!0), d(B, null, R(u().filter((h) => !h.isFixedBottom && !h.isFixedTop), (h) => (r(), Q(sf, {
14561
14561
  key: h.chatId,
14562
14562
  class: "chat-list__item",
14563
14563
  chat: h,
@@ -14566,7 +14566,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14566
14566
  }, null, 8, ["chat"]))), 128))
14567
14567
  ]),
14568
14568
  o("div", is, [
14569
- (r(!0), d(B, null, R(u().filter((h) => h.isFixedBottom), (h) => (r(), L(sf, {
14569
+ (r(!0), d(B, null, R(u().filter((h) => h.isFixedBottom), (h) => (r(), Q(sf, {
14570
14570
  key: h.chatId,
14571
14571
  class: "chat-list__item",
14572
14572
  chat: h,
@@ -14577,7 +14577,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14577
14577
  ])
14578
14578
  ]));
14579
14579
  }
14580
- }, ao = /* @__PURE__ */ N(os, [["__scopeId", "data-v-d1933558"]]), us = ["messageId"], rs = ["src"], ls = ["src"], cs = { class: "video-message__controls" }, ds = { class: "video-message__remaining-time" }, gs = { class: "video-message__info-container" }, ms = { class: "video-message__time" }, ps = {
14580
+ }, no = /* @__PURE__ */ N(os, [["__scopeId", "data-v-d1933558"]]), us = ["messageId"], rs = ["src"], ls = ["src"], cs = { class: "video-message__controls" }, ds = { class: "video-message__remaining-time" }, gs = { class: "video-message__info-container" }, ms = { class: "video-message__time" }, ps = {
14581
14581
  key: 0,
14582
14582
  class: "pi pi-check"
14583
14583
  }, Ms = {
@@ -14640,7 +14640,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14640
14640
  src: e.message.avatar,
14641
14641
  height: "32",
14642
14642
  width: "32",
14643
- style: Q({ gridRow: e.message.subText ? "2" : "1" })
14643
+ style: U({ gridRow: e.message.subText ? "2" : "1" })
14644
14644
  }, null, 12, rs)) : y("", !0),
14645
14645
  o("div", {
14646
14646
  class: "video-message__content",
@@ -14682,7 +14682,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14682
14682
  ]))) : y("", !0),
14683
14683
  S(H, null, {
14684
14684
  default: K(() => [
14685
- i.value && e.message.actions ? (r(), L(de, {
14685
+ i.value && e.message.actions ? (r(), Q(de, {
14686
14686
  key: 0,
14687
14687
  class: "video-message__context-menu",
14688
14688
  actions: e.message.actions,
@@ -14705,7 +14705,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14705
14705
  ], 32)
14706
14706
  ], 42, us));
14707
14707
  }
14708
- }, hs = /* @__PURE__ */ N(Ms, [["__scopeId", "data-v-a83d34a0"]]), bs = { class: "call-message" }, ys = ["messageId"], vs = ["src"], Is = {
14708
+ }, hs = /* @__PURE__ */ N(Ms, [["__scopeId", "data-v-0677bf37"]]), bs = { class: "call-message" }, ys = ["messageId"], vs = ["src"], Is = {
14709
14709
  key: 1,
14710
14710
  class: "call-message__subtext"
14711
14711
  }, _s = { class: "call-message__content" }, ws = {
@@ -14746,13 +14746,13 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14746
14746
  src: e.message.avatar,
14747
14747
  height: "32",
14748
14748
  width: "32",
14749
- style: Q({ gridRow: e.message.subText ? "2" : "1" })
14749
+ style: U({ gridRow: e.message.subText ? "2" : "1" })
14750
14750
  }, null, 12, vs)) : y("", !0),
14751
14751
  e.message.subText ? (r(), d("p", Is, _(e.message.subText), 1)) : y("", !0),
14752
14752
  o("div", _s, [
14753
14753
  o("span", {
14754
14754
  class: "call-message__icon pi pi-phone",
14755
- style: Q({ color: e.message.isMissedCall ? "var(--call-message-color-icon-error)" : "var(--neutral-100)" })
14755
+ style: U({ color: e.message.isMissedCall ? "var(--call-message-color-icon-error)" : "var(--neutral-100)" })
14756
14756
  }, null, 4),
14757
14757
  e.message.isMissedCall ? (r(), d("span", Ds, "Пропущенный аудиозвонок")) : (r(), d("span", ws, "Аудиозвонок")),
14758
14758
  e.message.callDuration ? (r(), d("span", Ns, _(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), d("span", ks, "Нажмите, чтобы перезвонить")) : (r(), d("span", js, "Нет ответа")),
@@ -14820,7 +14820,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14820
14820
  onScroll: t
14821
14821
  }, [
14822
14822
  o("div", Ls, [
14823
- (r(!0), d(B, null, R(e.objects, (m) => (r(), L(Tn(i(m.type)), {
14823
+ (r(!0), d(B, null, R(e.objects, (m) => (r(), Q(Tn(i(m.type)), {
14824
14824
  key: m.messageId,
14825
14825
  class: "message-feed__message",
14826
14826
  message: m,
@@ -14841,7 +14841,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14841
14841
  })
14842
14842
  ], 544));
14843
14843
  }
14844
- }, Ao = /* @__PURE__ */ N(Qs, [["__scopeId", "data-v-6ca6c792"]]), Bs = { class: "profile" }, Ys = {
14844
+ }, ao = /* @__PURE__ */ N(Qs, [["__scopeId", "data-v-e822ec1a"]]), Bs = { class: "profile" }, Ys = {
14845
14845
  key: 0,
14846
14846
  class: "profile__container"
14847
14847
  }, Rs = {
@@ -14861,7 +14861,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14861
14861
  e.user.avatar ? (r(), d("div", Rs, [
14862
14862
  o("span", {
14863
14863
  class: "profile__status",
14864
- style: Q({ backgroundColor: e.user.status })
14864
+ style: U({ backgroundColor: e.user.status })
14865
14865
  }, null, 4),
14866
14866
  o("img", {
14867
14867
  src: e.user.avatar,
@@ -14875,7 +14875,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14875
14875
  ])) : y("", !0)
14876
14876
  ]));
14877
14877
  }
14878
- }, to = /* @__PURE__ */ N(Hs, [["__scopeId", "data-v-7ee94d00"]]), Ks = {
14878
+ }, Ao = /* @__PURE__ */ N(Hs, [["__scopeId", "data-v-7ee94d00"]]), Ks = {
14879
14879
  key: 0,
14880
14880
  class: "chat-input__button-file"
14881
14881
  }, Ps = { key: 1 }, Zs = { key: 2 }, $s = { key: 3 }, Gs = {
@@ -14965,7 +14965,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14965
14965
  ], 32)
14966
14966
  ]));
14967
14967
  }
14968
- }, so = /* @__PURE__ */ N(fi, [["__scopeId", "data-v-31f5b643"]]), ni = { class: "sidebar" }, ai = { class: "sidebar__container" }, Ai = { class: "sidebar__list" }, ti = ["onClick"], si = ["src", "alt"], ii = { key: 1 }, oi = { class: "sidebar__list-fixed" }, ui = ["onClick"], ri = ["src", "alt"], li = { key: 1 }, ci = {
14968
+ }, to = /* @__PURE__ */ N(fi, [["__scopeId", "data-v-31f5b643"]]), ni = { class: "sidebar" }, ai = { class: "sidebar__container" }, Ai = { class: "sidebar__list" }, ti = ["onClick"], si = ["src", "alt"], ii = { key: 1 }, oi = { class: "sidebar__list-fixed" }, ui = ["onClick"], ri = ["src", "alt"], li = { key: 1 }, ci = {
14969
14969
  __name: "SideBar",
14970
14970
  props: {
14971
14971
  sidebarItems: {
@@ -14998,7 +14998,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14998
14998
  }, null, 10, si),
14999
14999
  l.notificationCount ? (r(), d("span", {
15000
15000
  key: 0,
15001
- style: Q({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
15001
+ style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
15002
15002
  }, _(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : y("", !0),
15003
15003
  l.name ? (r(), d("p", ii, _(t(l.name)), 1)) : y("", !0)
15004
15004
  ], 8, ti))), 128))
@@ -15016,7 +15016,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15016
15016
  }, null, 10, ri),
15017
15017
  l.notificationCount ? (r(), d("span", {
15018
15018
  key: 0,
15019
- style: Q({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
15019
+ style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
15020
15020
  }, _(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : y("", !0),
15021
15021
  l.name ? (r(), d("p", li, _(t(l.name)), 1)) : y("", !0)
15022
15022
  ], 8, ui))), 128))
@@ -15024,7 +15024,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15024
15024
  ])
15025
15025
  ]));
15026
15026
  }
15027
- }, io = /* @__PURE__ */ N(ci, [["__scopeId", "data-v-62babd62"]]), di = { class: "chat-panel" }, gi = { class: "chat-panel__title-container" }, mi = {
15027
+ }, so = /* @__PURE__ */ N(ci, [["__scopeId", "data-v-62babd62"]]), di = { class: "chat-panel" }, gi = { class: "chat-panel__title-container" }, mi = {
15028
15028
  key: 0,
15029
15029
  class: "chat-panel__title"
15030
15030
  }, pi = {
@@ -15053,7 +15053,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15053
15053
  ])
15054
15054
  ]));
15055
15055
  }
15056
- }, oo = /* @__PURE__ */ N(pi, [["__scopeId", "data-v-9de7ea0a"]]), Mi = {
15056
+ }, io = /* @__PURE__ */ N(pi, [["__scopeId", "data-v-9de7ea0a"]]), Mi = {
15057
15057
  key: 0,
15058
15058
  class: "new-chat-modal"
15059
15059
  }, hi = { class: "modal-content" }, bi = { class: "participant-list" }, yi = ["id", "value"], vi = ["for"], Ii = {
@@ -15109,7 +15109,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15109
15109
  ])) : y("", !0)
15110
15110
  ]));
15111
15111
  }
15112
- }, uo = /* @__PURE__ */ N(Ii, [["__scopeId", "data-v-828088fc"]]), _i = { class: "modal-backdrop" }, wi = {
15112
+ }, oo = /* @__PURE__ */ N(Ii, [["__scopeId", "data-v-828088fc"]]), _i = { class: "modal-backdrop" }, wi = {
15113
15113
  class: "modal",
15114
15114
  role: "dialog",
15115
15115
  "aria-labelledby": "modalTitle",
@@ -15124,7 +15124,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15124
15124
  const n = f, a = (s) => {
15125
15125
  n("submit", s);
15126
15126
  }, A = v(null);
15127
- return (s, t) => (r(), L(H, { name: "modal-fade" }, {
15127
+ return (s, t) => (r(), Q(H, { name: "modal-fade" }, {
15128
15128
  default: K(() => [
15129
15129
  o("div", _i, [
15130
15130
  o("div", wi, [
@@ -15186,17 +15186,17 @@ function cn({ component: e, attrs: f }) {
15186
15186
  l.mount(a);
15187
15187
  });
15188
15188
  }
15189
- const ro = async (e, f) => {
15189
+ const uo = async (e, f) => {
15190
15190
  const n = await cn({
15191
15191
  //в component должен быть встроен emit change(key: value)
15192
- component: import("./SelectUser2--XWnEiMk.js"),
15192
+ component: import("./SelectUser2-KxonPEPA.js"),
15193
15193
  attrs: {
15194
15194
  title: e,
15195
15195
  users: f
15196
15196
  }
15197
15197
  });
15198
15198
  return console.log("data", n), n;
15199
- }, lo = async (e) => {
15199
+ }, ro = async (e) => {
15200
15200
  const f = await cn({
15201
15201
  //в component должен быть встроен emit change(key: value)
15202
15202
  component: import("./CreateChat-fkFKBxtQ.js"),
@@ -15218,15 +15218,12 @@ const ro = async (e, f) => {
15218
15218
  f.theme && (document.documentElement.dataset.theme = f.theme);
15219
15219
  }), (n, a) => (r(), d("div", {
15220
15220
  class: "base__container",
15221
- style: Q({ height: e.height, width: e.width })
15221
+ style: U({ height: e.height, width: e.width })
15222
15222
  }, [
15223
15223
  W(n.$slots, "default", {}, void 0, !0)
15224
15224
  ], 4));
15225
15225
  }
15226
- }, co = /* @__PURE__ */ N(Vi, [["__scopeId", "data-v-3c8f7ff9"]]), Ei = { class: "float-window__container" }, Ti = ["src", "alt"], xi = { class: "float-window__title" }, Si = {
15227
- class: "float-window__content",
15228
- style: { height: "70%", width: "100%", display: "flex" }
15229
- }, zi = {
15226
+ }, lo = /* @__PURE__ */ N(Vi, [["__scopeId", "data-v-3c8f7ff9"]]), Ei = { class: "float-window__container" }, Ti = ["src", "alt"], xi = { class: "float-window__title" }, Si = {
15230
15227
  __name: "FloatContainer",
15231
15228
  props: {
15232
15229
  title: {
@@ -15285,7 +15282,7 @@ const ro = async (e, f) => {
15285
15282
  ref_key: "element",
15286
15283
  ref: A,
15287
15284
  class: "float-window",
15288
- style: Q({
15285
+ style: U({
15289
15286
  left: a.value.x + "px",
15290
15287
  top: a.value.y + "px",
15291
15288
  userSelect: t.value ? "none" : "auto"
@@ -15296,7 +15293,7 @@ const ro = async (e, f) => {
15296
15293
  ref_key: "container",
15297
15294
  ref: s,
15298
15295
  class: "float-window__controls",
15299
- style: Q({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
15296
+ style: U({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
15300
15297
  onMousedown: g,
15301
15298
  onMouseup: m,
15302
15299
  onMouseleave: m
@@ -15315,52 +15312,55 @@ const ro = async (e, f) => {
15315
15312
  o("span", { class: "pi pi-times" }, null, -1)
15316
15313
  ]))
15317
15314
  ], 36),
15318
- o("div", Si, [
15315
+ o("div", {
15316
+ class: "float-window__content",
15317
+ style: U({ height: l.value + "px" })
15318
+ }, [
15319
15319
  W(p.$slots, "default", {}, void 0, !0)
15320
- ])
15320
+ ], 4)
15321
15321
  ])
15322
15322
  ], 4));
15323
15323
  }
15324
- }, go = /* @__PURE__ */ N(zi, [["__scopeId", "data-v-951702f6"]]), Oi = {}, Ci = { class: "base-layout__container" }, Ui = { class: "base-layout__first-col" }, Li = { class: "base-layout__second-col" };
15325
- function Qi(e, f) {
15326
- return r(), d("div", Ci, [
15327
- o("div", Ui, [
15324
+ }, co = /* @__PURE__ */ N(Si, [["__scopeId", "data-v-c8191c68"]]), zi = {}, Oi = { class: "base-layout__container" }, Ci = { class: "base-layout__first-col" }, Ui = { class: "base-layout__second-col" };
15325
+ function Li(e, f) {
15326
+ return r(), d("div", Oi, [
15327
+ o("div", Ci, [
15328
15328
  W(e.$slots, "first-col", {}, void 0, !0)
15329
15329
  ]),
15330
- o("div", Li, [
15330
+ o("div", Ui, [
15331
15331
  W(e.$slots, "second-col", {}, void 0, !0)
15332
15332
  ])
15333
15333
  ]);
15334
15334
  }
15335
- const mo = /* @__PURE__ */ N(Oi, [["render", Qi], ["__scopeId", "data-v-fe2b8eac"]]), Bi = {}, Yi = { class: "extend-layout__container" }, Ri = { class: "extend-layout__first-col" }, qi = { class: "extend-layout__second-col" }, Fi = { class: "extend-layout__third-col" };
15336
- function Ji(e, f) {
15337
- return r(), d("div", Yi, [
15338
- o("div", Ri, [
15335
+ const go = /* @__PURE__ */ N(zi, [["render", Li], ["__scopeId", "data-v-fe2b8eac"]]), Qi = {}, Bi = { class: "extend-layout__container" }, Yi = { class: "extend-layout__first-col" }, Ri = { class: "extend-layout__second-col" }, qi = { class: "extend-layout__third-col" };
15336
+ function Fi(e, f) {
15337
+ return r(), d("div", Bi, [
15338
+ o("div", Yi, [
15339
15339
  W(e.$slots, "first-col", {}, void 0, !0)
15340
15340
  ]),
15341
- o("div", qi, [
15341
+ o("div", Ri, [
15342
15342
  W(e.$slots, "second-col", {}, void 0, !0)
15343
15343
  ]),
15344
- o("div", Fi, [
15344
+ o("div", qi, [
15345
15345
  W(e.$slots, "third-col", {}, void 0, !0)
15346
15346
  ])
15347
15347
  ]);
15348
15348
  }
15349
- const po = /* @__PURE__ */ N(Bi, [["render", Ji], ["__scopeId", "data-v-96841dcf"]]), Wi = {}, Hi = { class: "base-layout__container" }, Ki = { class: "base-layout__first-col" };
15350
- function Pi(e, f) {
15351
- return r(), d("div", Hi, [
15352
- o("div", Ki, [
15349
+ const mo = /* @__PURE__ */ N(Qi, [["render", Fi], ["__scopeId", "data-v-96841dcf"]]), Ji = {}, Wi = { class: "base-layout__container" }, Hi = { class: "base-layout__first-col" };
15350
+ function Ki(e, f) {
15351
+ return r(), d("div", Wi, [
15352
+ o("div", Hi, [
15353
15353
  W(e.$slots, "default", {}, void 0, !0)
15354
15354
  ])
15355
15355
  ]);
15356
15356
  }
15357
- const Mo = /* @__PURE__ */ N(Wi, [["render", Pi], ["__scopeId", "data-v-e59dbf95"]]), Zi = { style: { display: "flex", height: "100%", width: "100%", "align-items": "stretch" } }, $i = {
15357
+ const po = /* @__PURE__ */ N(Ji, [["render", Ki], ["__scopeId", "data-v-e59dbf95"]]), Pi = { style: { display: "flex", height: "100%", width: "100%", "align-items": "stretch" } }, Zi = {
15358
15358
  key: 0,
15359
15359
  style: { height: "100%", width: "100%", display: "flex", "flex-direction": "column", "align-items": "stretch" }
15360
- }, Gi = {
15360
+ }, $i = {
15361
15361
  key: 1,
15362
15362
  style: { width: "100%" }
15363
- }, Xi = /* @__PURE__ */ ce({
15363
+ }, Gi = /* @__PURE__ */ ce({
15364
15364
  __name: "ChatWrapper",
15365
15365
  props: {
15366
15366
  isOpenChatPanel: {
@@ -15373,28 +15373,28 @@ const Mo = /* @__PURE__ */ N(Wi, [["render", Pi], ["__scopeId", "data-v-e59dbf95
15373
15373
  }
15374
15374
  },
15375
15375
  setup(e) {
15376
- return (f, n) => (r(), d("div", Zi, [
15377
- e.isSelectedChat ? (r(), d("div", $i, [
15376
+ return (f, n) => (r(), d("div", Pi, [
15377
+ e.isSelectedChat ? (r(), d("div", Zi, [
15378
15378
  W(f.$slots, "default", {}, void 0, !0)
15379
- ])) : (r(), d("div", Gi, n[0] || (n[0] = [
15379
+ ])) : (r(), d("div", $i, n[0] || (n[0] = [
15380
15380
  o("p", null, " Выберите контакт для начала общения ", -1)
15381
15381
  ]))),
15382
15382
  e.isOpenChatPanel ? (r(), d("div", {
15383
15383
  key: 2,
15384
- style: Q({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" }),
15384
+ style: U({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" }),
15385
15385
  class: "chatpanel"
15386
15386
  }, [
15387
15387
  W(f.$slots, "chatpanel", {}, void 0, !0)
15388
15388
  ], 4)) : y("", !0)
15389
15389
  ]));
15390
15390
  }
15391
- }), ho = /* @__PURE__ */ N(Xi, [["__scopeId", "data-v-72786275"]]);
15392
- function bo(e) {
15391
+ }), Mo = /* @__PURE__ */ N(Gi, [["__scopeId", "data-v-72786275"]]);
15392
+ function ho(e) {
15393
15393
  if (!e || e === "") return;
15394
15394
  const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), A = Math.floor(a / 60), s = Math.floor(A / 60), t = Math.floor(s / 24);
15395
15395
  return t > 30 ? f.toLocaleString() : t > 0 ? `${t} ${t === 1 ? "день" : "дня"} назад` : s > 0 ? `${s} ${s === 1 ? "час" : "часа"} назад` : A > 0 ? `${A} ${A === 1 ? "минута" : "минуты"} назад` : a > 0 ? `${a} ${a === 1 ? "секунда" : "секунды"} назад` : "Только что";
15396
15396
  }
15397
- const yo = (e) => {
15397
+ const bo = (e) => {
15398
15398
  const f = [];
15399
15399
  let n = null;
15400
15400
  for (let a = 0; a < e.length; a++) {
@@ -15408,7 +15408,7 @@ const yo = (e) => {
15408
15408
  }), n = s), f.push(A);
15409
15409
  }
15410
15410
  return f;
15411
- }, vo = async () => {
15411
+ }, yo = async () => {
15412
15412
  try {
15413
15413
  if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
15414
15414
  const f = new Audio();
@@ -15417,37 +15417,37 @@ const yo = (e) => {
15417
15417
  } catch {
15418
15418
  console.log("no audio permissions");
15419
15419
  }
15420
- }, Io = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0);
15420
+ }, vo = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0);
15421
15421
  export {
15422
15422
  Va as A,
15423
- co as B,
15424
- fo as C,
15423
+ lo as B,
15424
+ eo as C,
15425
15425
  za as D,
15426
- po as E,
15426
+ mo as E,
15427
15427
  Zn as F,
15428
15428
  oa as I,
15429
- io as S,
15429
+ so as S,
15430
15430
  ha as T,
15431
- to as U,
15431
+ Ao as U,
15432
15432
  N as _,
15433
- no as a,
15434
- ao as b,
15435
- Ao as c,
15433
+ fo as a,
15434
+ no as b,
15435
+ ao as c,
15436
15436
  Xs as d,
15437
- so as e,
15438
- oo as f,
15437
+ to as e,
15438
+ io as f,
15439
15439
  O1 as g,
15440
15440
  sf as h,
15441
15441
  X1 as i,
15442
- uo as j,
15443
- lo as k,
15444
- go as l,
15445
- mo as m,
15446
- Mo as n,
15447
- ho as o,
15448
- bo as p,
15449
- yo as q,
15450
- vo as r,
15451
- Io as s,
15452
- ro as u
15442
+ oo as j,
15443
+ ro as k,
15444
+ co as l,
15445
+ go as m,
15446
+ po as n,
15447
+ Mo as o,
15448
+ ho as p,
15449
+ bo as q,
15450
+ yo as r,
15451
+ vo as s,
15452
+ uo as u
15453
15453
  };