@mobilon-dev/chotto 0.3.67 → 0.3.69

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,7 +1,7 @@
1
1
  import o from "./Tooltip.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-14a39a1d"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0487e8ee"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,18 +1,24 @@
1
- import { defineComponent as A, inject as D, ref as n, computed as T, onUnmounted as R, createElementBlock as d, openBlock as s, Fragment as V, createElementVNode as W, createBlock as z, renderSlot as E, Teleport as I, createVNode as L, Transition as M, withCtx as $, createCommentVNode as j, normalizeStyle as q, normalizeClass as F, unref as g, toDisplayString as P, nextTick as v } from "vue";
1
+ import { defineComponent as et, inject as ot, ref as u, computed as _, onUnmounted as lt, createElementBlock as h, openBlock as c, Fragment as I, createElementVNode as it, createBlock as rt, renderSlot as at, Teleport as nt, createVNode as ut, Transition as st, withCtx as ct, createCommentVNode as ft, renderList as mt, normalizeStyle as pt, normalizeClass as ht, unref as S, toDisplayString as vt, nextTick as M } from "vue";
2
2
  import "../../../hooks/useMessageDraft.js";
3
3
  import "../../../hooks/useSearchModel.js";
4
- import { useTheme as U } from "../../../hooks/useTheme.js";
4
+ import { useTheme as gt } from "../../../hooks/useTheme.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import "../../../node_modules/linkifyjs/dist/linkify.js";
8
8
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
9
9
  import "../../../functions/parseMarkdown.js";
10
- const G = ["data-theme"], tt = /* @__PURE__ */ A({
10
+ const Tt = { key: 0 }, dt = ["data-theme"], yt = 6, wt = 120, Dt = /* @__PURE__ */ et({
11
11
  __name: "Tooltip",
12
12
  props: {
13
13
  text: {
14
14
  type: String,
15
- required: !0
15
+ required: !1,
16
+ default: ""
17
+ },
18
+ texts: {
19
+ type: Array,
20
+ required: !1,
21
+ default: () => []
16
22
  },
17
23
  position: {
18
24
  type: String,
@@ -39,80 +45,118 @@ const G = ["data-theme"], tt = /* @__PURE__ */ A({
39
45
  default: ""
40
46
  }
41
47
  },
42
- setup(w, { expose: x }) {
43
- const S = D("chatAppId"), { getTheme: y } = U(S), p = n(), a = n(), c = n(!1), u = n(null), r = n(null), e = w, _ = T(() => ({
48
+ setup(N, { expose: P }) {
49
+ const v = ot("chatAppId"), { getTheme: A } = gt(v), g = u(), f = u([]), s = u(!1), m = u(null), n = u(null), i = u(null), T = u(!1), d = u(!1), e = N, $ = _(() => ({
44
50
  tooltip__text: !0,
45
51
  [`tooltip--${e.position}`]: !0
46
- })), B = T(() => ({
52
+ })), W = _(() => ({
47
53
  maxWidth: e.maxWidth || void 0
48
- })), C = () => {
49
- e.trigger !== "auto" && (r.value && (clearTimeout(r.value), r.value = null), r.value = setTimeout(() => {
50
- c.value = !0, v(() => {
51
- if (p.value && a.value) {
52
- const f = a.value, t = p.value.getBoundingClientRect(), o = a.value.getBoundingClientRect(), l = o.left < 0 ? o.left : 0, i = o.top < 0 ? o.top : 0, h = {
53
- left: { top: t.top - (o.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) - o.width - l - e.offset },
54
- right: { top: t.top - (o.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) + t.width - l + e.offset },
55
- bottom: { top: (t == null ? void 0 : t.bottom) - i + e.offset, left: (t == null ? void 0 : t.left) - l },
56
- "bottom-center": { top: (t == null ? void 0 : t.bottom) - i + e.offset, left: (t == null ? void 0 : t.left) + t.width / 2 - o.width / 2 - l },
57
- top: { top: t.top - o.height - e.offset - i, left: (t == null ? void 0 : t.left) - l },
58
- "top-center": { top: t.top - o.height - e.offset - i, left: (t == null ? void 0 : t.left) + t.width / 2 - o.width / 2 - l },
59
- "bottom-left": { top: (t == null ? void 0 : t.bottom) - i + e.offset, left: (t == null ? void 0 : t.left) + t.width - o.width - l }
60
- };
61
- f.style.top = h[e.position].top + "px", f.style.left = h[e.position].left + "px";
62
- }
63
- }), r.value = null;
54
+ })), R = _(() => {
55
+ const t = Array.isArray(e.texts) ? e.texts.map((o) => String(o ?? "").trim()).filter(Boolean) : [];
56
+ return t.length > 0 ? t : e.text ? [e.text] : [];
57
+ }), H = (t, o) => {
58
+ const l = o.left < 0 ? o.left : 0, r = o.top < 0 ? o.top : 0;
59
+ return {
60
+ left: {
61
+ top: t.top - (o.height - t.height) / 2 - r,
62
+ left: t.left - o.width - l - e.offset
63
+ },
64
+ right: {
65
+ top: t.top - (o.height - t.height) / 2 - r,
66
+ left: t.left + t.width - l + e.offset
67
+ },
68
+ bottom: {
69
+ top: t.bottom - r + e.offset,
70
+ left: t.left - l
71
+ },
72
+ "bottom-center": {
73
+ top: t.bottom - r + e.offset,
74
+ left: t.left + t.width / 2 - o.width / 2 - l
75
+ },
76
+ top: {
77
+ top: t.top - o.height - e.offset - r,
78
+ left: t.left - l
79
+ },
80
+ "top-center": {
81
+ top: t.top - o.height - e.offset - r,
82
+ left: t.left + t.width / 2 - o.width / 2 - l
83
+ },
84
+ "bottom-left": {
85
+ top: t.bottom - r + e.offset,
86
+ left: t.left + t.width - o.width - l
87
+ }
88
+ }[e.position];
89
+ }, L = () => {
90
+ if (!g.value || f.value.length === 0) return;
91
+ const t = g.value.getBoundingClientRect(), o = e.position.startsWith("top"), l = 8, r = v ? document.getElementById(v) : null, a = r == null ? void 0 : r.getBoundingClientRect(), K = (a == null ? void 0 : a.top) ?? 0, U = (a == null ? void 0 : a.left) ?? 0, X = (a == null ? void 0 : a.right) ?? window.innerWidth, Y = (a == null ? void 0 : a.bottom) ?? window.innerHeight;
92
+ f.value.forEach((w, J) => {
93
+ const p = w.getBoundingClientRect(), x = H(t, p), C = J * (p.height + yt), Q = o ? x.top - C : x.top + C, E = K + l, Z = Y - p.height - l, D = U + l, b = X - p.width - l, B = Math.min(Math.max(Q, E), Math.max(E, Z)), tt = Math.min(Math.max(x.left, D), Math.max(D, b));
94
+ w.style.top = `${B}px`, w.style.left = `${tt}px`;
95
+ });
96
+ }, V = () => {
97
+ e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), i.value && (clearTimeout(i.value), i.value = null), n.value = setTimeout(() => {
98
+ s.value = !0, M(() => {
99
+ L();
100
+ }), n.value = null;
64
101
  }, e.delay));
65
- }, k = () => {
66
- e.trigger !== "auto" && (r.value && (clearTimeout(r.value), r.value = null), c.value = !1, v(() => {
67
- const f = g(a);
68
- f && (f.style.top = "0", f.style.left = "0");
102
+ }, q = () => {
103
+ e.trigger !== "auto" && (n.value && (clearTimeout(n.value), n.value = null), i.value && (clearTimeout(i.value), i.value = null), s.value = !1, M(() => {
104
+ S(f).forEach((o) => {
105
+ o.style.top = "0", o.style.left = "0";
106
+ });
69
107
  }));
70
- }, N = () => {
71
- m(), c.value = !0, v(() => {
72
- if (p.value && a.value) {
73
- const f = a.value, t = p.value.getBoundingClientRect(), o = a.value.getBoundingClientRect(), l = o.left < 0 ? o.left : 0, i = o.top < 0 ? o.top : 0, h = {
74
- left: { top: t.top - (o.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) - o.width - l - e.offset },
75
- right: { top: t.top - (o.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) + t.width - l + e.offset },
76
- bottom: { top: (t == null ? void 0 : t.bottom) - i + e.offset, left: (t == null ? void 0 : t.left) - l },
77
- "bottom-center": { top: (t == null ? void 0 : t.bottom) - i + e.offset, left: (t == null ? void 0 : t.left) + t.width / 2 - o.width / 2 - l },
78
- top: { top: t.top - o.height - e.offset - i, left: (t == null ? void 0 : t.left) - l },
79
- "top-center": { top: t.top - o.height - e.offset - i, left: (t == null ? void 0 : t.left) + t.width / 2 - o.width / 2 - l },
80
- "bottom-left": { top: (t == null ? void 0 : t.bottom) - i + e.offset, left: (t == null ? void 0 : t.left) + t.width - o.width - l }
81
- };
82
- f.style.top = h[e.position].top + "px", f.style.left = h[e.position].left + "px";
83
- }
84
- }), e.autoShowDuration > 0 && (u.value = setTimeout(() => {
85
- c.value = !1;
108
+ }, k = () => {
109
+ e.trigger !== "auto" && (i.value && clearTimeout(i.value), i.value = setTimeout(() => {
110
+ !T.value && !d.value && q();
111
+ }, wt));
112
+ }, z = () => {
113
+ T.value = !0, V();
114
+ }, O = () => {
115
+ T.value = !1, k();
116
+ }, j = () => {
117
+ d.value = !0, i.value && (clearTimeout(i.value), i.value = null);
118
+ }, F = () => {
119
+ d.value = !1, k();
120
+ }, G = () => {
121
+ y(), s.value = !0, M(() => {
122
+ L();
123
+ }), e.autoShowDuration > 0 && (m.value = setTimeout(() => {
124
+ s.value = !1;
86
125
  }, e.autoShowDuration));
87
- }, m = () => {
88
- u.value && (clearTimeout(u.value), u.value = null);
126
+ }, y = () => {
127
+ m.value && (clearTimeout(m.value), m.value = null);
89
128
  };
90
- return R(() => {
91
- r.value && clearTimeout(r.value), m();
92
- }), x({
93
- startAutoShow: N,
94
- clearAutoTimer: m
95
- }), (f, t) => (s(), d(V, null, [
96
- W("div", {
129
+ return lt(() => {
130
+ n.value && clearTimeout(n.value), i.value && clearTimeout(i.value), y();
131
+ }), P({
132
+ startAutoShow: G,
133
+ clearAutoTimer: y
134
+ }), (t, o) => (c(), h(I, null, [
135
+ it("div", {
97
136
  ref_key: "container",
98
- ref: p,
137
+ ref: g,
99
138
  class: "tooltip-wrapper",
100
- onMouseover: C,
101
- onMouseout: k
139
+ onMouseenter: z,
140
+ onMouseleave: O
102
141
  }, [
103
- E(f.$slots, "default", {}, void 0, !0)
142
+ at(t.$slots, "default", {}, void 0, !0)
104
143
  ], 544),
105
- (s(), z(I, { to: "body" }, [
106
- L(M, null, {
107
- default: $(() => [
108
- c.value ? (s(), d("span", {
109
- key: 0,
110
- ref_key: "tooltip",
111
- ref: a,
112
- "data-theme": g(y)().theme ? g(y)().theme : "light",
113
- class: F(_.value),
114
- style: q(B.value)
115
- }, P(w.text), 15, G)) : j("", !0)
144
+ (c(), rt(nt, { to: "body" }, [
145
+ ut(st, null, {
146
+ default: ct(() => [
147
+ s.value ? (c(), h("div", Tt, [
148
+ (c(!0), h(I, null, mt(R.value, (l, r) => (c(), h("span", {
149
+ key: `${l}-${r}`,
150
+ ref_for: !0,
151
+ ref_key: "tooltipItems",
152
+ ref: f,
153
+ "data-theme": S(A)().theme ? S(A)().theme : "light",
154
+ class: ht($.value),
155
+ style: pt(W.value),
156
+ onMouseenter: j,
157
+ onMouseleave: F
158
+ }, vt(l), 47, dt))), 128))
159
+ ])) : ft("", !0)
116
160
  ]),
117
161
  _: 1
118
162
  })
@@ -121,5 +165,5 @@ const G = ["data-theme"], tt = /* @__PURE__ */ A({
121
165
  }
122
166
  });
123
167
  export {
124
- tt as default
168
+ Dt as default
125
169
  };
@@ -1,36 +1,36 @@
1
- import { ref as I, computed as M, createElementBlock as o, openBlock as a, renderSlot as L, createBlock as u, createCommentVNode as n, createElementVNode as r, createVNode as w, unref as e, toDisplayString as d, createTextVNode as D, Fragment as y, renderList as p, Transition as Q, withCtx as N } from "vue";
2
- import x from "../../2_chatlist_elements/ChatItem/ChatItem.vue.js";
3
- import V from "../../2_chatlist_elements/ChatFilter/ChatFilter.vue.js";
4
- import $ from "../../2_chatlist_elements/ChatTabs/ChatTabs.vue.js";
5
- import q from "../../1_atoms/LoadingIndicator/LoadingIndicator.vue.js";
6
- import { useChatListScroll as H } from "./composables/useChatListScroll.js";
7
- import { useChatListSelection as P } from "./composables/useChatListSelection.js";
8
- import { useChatListFilter as U } from "./composables/useChatListFilter.js";
9
- import { useChatListActions as W } from "./composables/useChatListActions.js";
1
+ import { ref as D, computed as u, onMounted as H, nextTick as O, onUpdated as P, onBeforeUnmount as W, createElementBlock as l, openBlock as s, renderSlot as M, createBlock as f, createCommentVNode as n, createElementVNode as c, createVNode as Q, unref as e, toDisplayString as h, createTextVNode as j, Fragment as v, renderList as k, normalizeStyle as R, Transition as Y, withCtx as G } from "vue";
2
+ import _ from "../../2_chatlist_elements/ChatItem/ChatItem.vue.js";
3
+ import J from "../../2_chatlist_elements/ChatFilter/ChatFilter.vue.js";
4
+ import K from "../../2_chatlist_elements/ChatTabs/ChatTabs.vue.js";
5
+ import X from "../../1_atoms/LoadingIndicator/LoadingIndicator.vue.js";
6
+ import { useChatListScroll as Z } from "./composables/useChatListScroll.js";
7
+ import { useChatListSelection as tt } from "./composables/useChatListSelection.js";
8
+ import { useChatListFilter as et } from "./composables/useChatListFilter.js";
9
+ import { useChatListActions as at } from "./composables/useChatListActions.js";
10
10
  /* empty css */
11
- import j from "../../../_virtual/_plugin-vue_export-helper.js";
12
- const O = { class: "chat-list" }, R = {
11
+ import st from "../../../_virtual/_plugin-vue_export-helper.js";
12
+ const ot = { class: "chat-list" }, it = {
13
13
  key: 2,
14
14
  class: "chat-list__search-indicator"
15
- }, z = { class: "chat-list__search-content" }, G = { class: "chat-list__search-text" }, J = {
15
+ }, lt = { class: "chat-list__search-content" }, nt = { class: "chat-list__search-text" }, rt = {
16
16
  key: 0,
17
17
  class: "chat-list__search-progress"
18
- }, K = {
18
+ }, ct = {
19
19
  key: 1,
20
20
  class: "chat-list__search-query"
21
- }, X = {
21
+ }, dt = {
22
22
  key: 0,
23
23
  class: "chat-list__search-stats"
24
- }, Y = {
24
+ }, ut = {
25
25
  key: 3,
26
26
  class: "chat-list__fixed-items-top"
27
- }, Z = {
27
+ }, ht = { class: "chat-list__placeholder" }, gt = { class: "chat-list__placeholder-title" }, ft = {
28
28
  key: 0,
29
- class: "chat-list__no-data"
30
- }, tt = { class: "chat-list__placeholder" }, et = { class: "chat-list__placeholder-title" }, st = { class: "chat-list__placeholder-hint" }, at = {
29
+ class: "chat-list__placeholder-hint"
30
+ }, mt = {
31
31
  key: 4,
32
32
  class: "chat-list__fixed-items-bottom"
33
- }, it = {
33
+ }, yt = {
34
34
  __name: "ChatList",
35
35
  props: {
36
36
  chats: {
@@ -81,7 +81,7 @@ const O = { class: "chat-list" }, R = {
81
81
  contextMenuTrigger: {
82
82
  type: String,
83
83
  default: "hover",
84
- validator: (s) => ["hover", "rightClick"].includes(s)
84
+ validator: (a) => ["hover", "rightClick"].includes(a)
85
85
  },
86
86
  placeholderTitle: {
87
87
  type: String,
@@ -93,121 +93,142 @@ const O = { class: "chat-list" }, R = {
93
93
  }
94
94
  },
95
95
  emits: ["select", "action", "loadMoreChats", "expand", "tab-click", "search", "clear-search"],
96
- setup(s, { emit: F }) {
97
- const l = s, h = F, S = I(), k = M(() => l.chats), {
98
- isShowButton: B,
99
- scrollToTopForce: _,
100
- scrollCheck: C,
101
- startScrollWatch: T,
102
- stopScrollWatch: b
103
- } = H({ refChatList: S, chats: k, emit: h }), {
104
- selectChat: g
105
- } = P({ chats: k, emit: h }), {
106
- getSortedAndFilteredChats: c,
107
- getFilter: A
108
- } = U({ props: l, emit: h }), {
109
- expandChat: m,
110
- action: f,
111
- handleTabClick: E
112
- } = W({ emit: h });
113
- return (v, i) => (a(), o("div", O, [
114
- L(v.$slots, "header", {}, void 0, !0),
115
- L(v.$slots, "sidebar", {}, void 0, !0),
116
- s.filterEnabled ? (a(), u(V, {
96
+ setup(a, { emit: I }) {
97
+ const i = a, g = I, y = D(), T = D(0), C = u(() => i.chats), m = () => {
98
+ var r;
99
+ T.value = ((r = y.value) == null ? void 0 : r.offsetTop) ?? 0;
100
+ }, $ = u(() => ({
101
+ transform: `translateY(${-(T.value / 2)}px)`
102
+ })), b = u(() => {
103
+ var r, o, t;
104
+ return ((r = i.searchQuery) == null ? void 0 : r.trim()) || ((o = i.filterQuery) == null ? void 0 : o.trim()) || ((t = V.value) == null ? void 0 : t.trim()) || "";
105
+ }), w = u(
106
+ () => b.value.length > 0 && !i.isSearching
107
+ ), N = u(() => w.value ? `Не нашли чат по запросу "${b.value}"` : i.placeholderTitle), L = u(() => w.value ? "" : i.placeholderHint), {
108
+ isShowButton: U,
109
+ scrollToTopForce: E,
110
+ scrollCheck: B,
111
+ startScrollWatch: F,
112
+ stopScrollWatch: A
113
+ } = Z({ refChatList: y, chats: C, emit: g }), {
114
+ selectChat: p
115
+ } = tt({ chats: C, emit: g }), {
116
+ filter: V,
117
+ getSortedAndFilteredChats: d,
118
+ getFilter: q
119
+ } = et({ props: i, emit: g }), {
120
+ expandChat: S,
121
+ action: x,
122
+ handleTabClick: z
123
+ } = at({ emit: g });
124
+ return H(async () => {
125
+ await O(), m(), window.addEventListener("resize", m);
126
+ }), P(() => {
127
+ m();
128
+ }), W(() => {
129
+ window.removeEventListener("resize", m);
130
+ }), (r, o) => (s(), l("div", ot, [
131
+ M(r.$slots, "header", {}, void 0, !0),
132
+ M(r.$slots, "sidebar", {}, void 0, !0),
133
+ a.filterEnabled ? (s(), f(J, {
117
134
  key: 0,
118
135
  class: "chat-list__filter",
119
- onUpdate: e(A)
136
+ onUpdate: e(q)
120
137
  }, null, 8, ["onUpdate"])) : n("", !0),
121
- s.dialogTabs && s.dialogTabs.length > 0 ? (a(), u($, {
138
+ a.dialogTabs && a.dialogTabs.length > 0 ? (s(), f(K, {
122
139
  key: 1,
123
- tabs: s.dialogTabs,
124
- onTabClick: e(E)
140
+ tabs: a.dialogTabs,
141
+ onTabClick: e(z)
125
142
  }, null, 8, ["tabs", "onTabClick"])) : n("", !0),
126
- s.isSearching || s.searchQuery ? (a(), o("div", R, [
127
- r("div", z, [
128
- r("div", G, [
129
- s.isSearching ? (a(), o("span", J, d(s.searchProgress || "Поиск..."), 1)) : (a(), o("span", K, [
130
- D(' Поиск "' + d(s.searchQuery) + '" завершён ', 1),
131
- s.searchStats.loaded > 0 ? (a(), o("span", X, " (" + d(s.searchStats.loaded) + " " + d(s.searchStats.total !== "?" ? `из ${s.searchStats.total}` : "") + ") ", 1)) : n("", !0)
143
+ a.isSearching || a.searchQuery ? (s(), l("div", it, [
144
+ c("div", lt, [
145
+ c("div", nt, [
146
+ a.isSearching ? (s(), l("span", rt, h(a.searchProgress || "Поиск..."), 1)) : (s(), l("span", ct, [
147
+ j(' Поиск "' + h(a.searchQuery) + '" завершён ', 1),
148
+ a.searchStats.loaded > 0 ? (s(), l("span", dt, " (" + h(a.searchStats.loaded) + " " + h(a.searchStats.total !== "?" ? `из ${a.searchStats.total}` : "") + ") ", 1)) : n("", !0)
132
149
  ]))
133
150
  ]),
134
- s.searchQuery ? (a(), o("button", {
151
+ a.searchQuery ? (s(), l("button", {
135
152
  key: 0,
136
153
  class: "chat-list__search-clear",
137
154
  title: "Очистить поиск",
138
- onClick: i[0] || (i[0] = (t) => h("clear-search"))
139
- }, [...i[5] || (i[5] = [
140
- r("i", { class: "pi pi-times" }, null, -1)
155
+ onClick: o[0] || (o[0] = (t) => g("clear-search"))
156
+ }, [...o[5] || (o[5] = [
157
+ c("i", { class: "pi pi-times" }, null, -1)
141
158
  ])])) : n("", !0)
142
159
  ])
143
160
  ])) : n("", !0),
144
- !l.isLoading && e(c)().filter((t) => t.isFixedTop).length > 0 ? (a(), o("div", Y, [
145
- (a(!0), o(y, null, p(e(c)().filter((t) => t.isFixedTop), (t) => (a(), u(x, {
161
+ !i.isLoading && e(d)().filter((t) => t.isFixedTop).length > 0 ? (s(), l("div", ut, [
162
+ (s(!0), l(v, null, k(e(d)().filter((t) => t.isFixedTop), (t) => (s(), f(_, {
146
163
  key: t.chatId,
147
164
  class: "chat-list__item",
148
165
  chat: t,
149
- "show-dialogs": s.showDialogs,
150
- "context-menu-trigger": l.contextMenuTrigger,
151
- onSelect: e(g),
152
- onExpand: e(m),
153
- onAction: e(f)
166
+ "show-dialogs": a.showDialogs,
167
+ "context-menu-trigger": i.contextMenuTrigger,
168
+ onSelect: e(p),
169
+ onExpand: e(S),
170
+ onAction: e(x)
154
171
  }, null, 8, ["chat", "show-dialogs", "context-menu-trigger", "onSelect", "onExpand", "onAction"]))), 128))
155
172
  ])) : n("", !0),
156
- r("div", {
173
+ c("div", {
157
174
  ref_key: "refChatList",
158
- ref: S,
175
+ ref: y,
159
176
  class: "chat-list__items",
160
- onScroll: i[1] || (i[1] = (...t) => e(C) && e(C)(...t)),
161
- onMousedown: i[2] || (i[2] = (...t) => e(T) && e(T)(...t)),
162
- onMouseup: i[3] || (i[3] = (...t) => e(b) && e(b)(...t))
177
+ onScroll: o[1] || (o[1] = (...t) => e(B) && e(B)(...t)),
178
+ onMousedown: o[2] || (o[2] = (...t) => e(F) && e(F)(...t)),
179
+ onMouseup: o[3] || (o[3] = (...t) => e(A) && e(A)(...t))
163
180
  }, [
164
- w(q, {
181
+ Q(X, {
165
182
  class: "chat-list__loading-indicator",
166
- "is-loading": l.isLoading
183
+ "is-loading": i.isLoading
167
184
  }, null, 8, ["is-loading"]),
168
- !l.isLoading && e(c)().length === 0 ? (a(), o("div", Z, [
169
- r("div", tt, [
170
- r("p", et, d(s.placeholderTitle), 1),
171
- r("p", st, d(s.placeholderHint), 1)
185
+ !i.isLoading && e(d)().length === 0 ? (s(), l("div", {
186
+ key: 0,
187
+ class: "chat-list__no-data",
188
+ style: R($.value)
189
+ }, [
190
+ c("div", ht, [
191
+ c("p", gt, h(N.value), 1),
192
+ L.value ? (s(), l("p", ft, h(L.value), 1)) : n("", !0)
172
193
  ])
173
- ])) : (a(!0), o(y, { key: 1 }, p(e(c)().filter((t) => !t.isFixedBottom && !t.isFixedTop), (t) => (a(), u(x, {
194
+ ], 4)) : (s(!0), l(v, { key: 1 }, k(e(d)().filter((t) => !t.isFixedBottom && !t.isFixedTop), (t) => (s(), f(_, {
174
195
  key: t.chatId,
175
196
  class: "chat-list__item",
176
197
  chat: t,
177
- "show-dialogs": s.showDialogs,
178
- "context-menu-trigger": l.contextMenuTrigger,
179
- onSelect: e(g),
180
- onExpand: e(m),
181
- onAction: e(f)
198
+ "show-dialogs": a.showDialogs,
199
+ "context-menu-trigger": i.contextMenuTrigger,
200
+ onSelect: e(p),
201
+ onExpand: e(S),
202
+ onAction: e(x)
182
203
  }, null, 8, ["chat", "show-dialogs", "context-menu-trigger", "onSelect", "onExpand", "onAction"]))), 128))
183
204
  ], 544),
184
- !l.isLoading && e(c)().filter((t) => t.isFixedBottom).length > 0 ? (a(), o("div", at, [
185
- (a(!0), o(y, null, p(e(c)().filter((t) => t.isFixedBottom), (t) => (a(), u(x, {
205
+ !i.isLoading && e(d)().filter((t) => t.isFixedBottom).length > 0 ? (s(), l("div", mt, [
206
+ (s(!0), l(v, null, k(e(d)().filter((t) => t.isFixedBottom), (t) => (s(), f(_, {
186
207
  key: t.chatId,
187
208
  class: "chat-list__item",
188
209
  chat: t,
189
- "show-dialogs": s.showDialogs,
190
- "context-menu-trigger": l.contextMenuTrigger,
191
- onSelect: e(g),
192
- onExpand: e(m),
193
- onAction: e(f)
210
+ "show-dialogs": a.showDialogs,
211
+ "context-menu-trigger": i.contextMenuTrigger,
212
+ onSelect: e(p),
213
+ onExpand: e(S),
214
+ onAction: e(x)
194
215
  }, null, 8, ["chat", "show-dialogs", "context-menu-trigger", "onSelect", "onExpand", "onAction"]))), 128))
195
216
  ])) : n("", !0),
196
- w(Q, null, {
197
- default: N(() => [
198
- e(B) ? (a(), o("button", {
217
+ Q(Y, null, {
218
+ default: G(() => [
219
+ e(U) ? (s(), l("button", {
199
220
  key: 0,
200
221
  class: "chat-list__button-up",
201
- onClick: i[4] || (i[4] = (...t) => e(_) && e(_)(...t))
202
- }, [...i[6] || (i[6] = [
203
- r("span", { class: "pi pi-angle-up chat-list__icon-down" }, null, -1)
222
+ onClick: o[4] || (o[4] = (...t) => e(E) && e(E)(...t))
223
+ }, [...o[6] || (o[6] = [
224
+ c("span", { class: "pi pi-angle-up chat-list__icon-down" }, null, -1)
204
225
  ])])) : n("", !0)
205
226
  ]),
206
227
  _: 1
207
228
  })
208
229
  ]));
209
230
  }
210
- }, yt = /* @__PURE__ */ j(it, [["__scopeId", "data-v-53a4e79e"]]);
231
+ }, Et = /* @__PURE__ */ st(yt, [["__scopeId", "data-v-20eeef36"]]);
211
232
  export {
212
- yt as default
233
+ Et as default
213
234
  };