@mobilon-dev/chotto 0.3.66 → 0.3.67

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-a2bb5769"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-14a39a1d"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as k, inject as N, ref as n, computed as A, onUnmounted as D, createElementBlock as T, openBlock as s, Fragment as R, createElementVNode as V, createBlock as E, renderSlot as I, Teleport as L, createVNode as M, Transition as $, withCtx as j, createCommentVNode as q, normalizeClass as z, unref as g, toDisplayString as F, nextTick as v } from "vue";
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";
2
2
  import "../../../hooks/useMessageDraft.js";
3
3
  import "../../../hooks/useSearchModel.js";
4
- import { useTheme as P } from "../../../hooks/useTheme.js";
4
+ import { useTheme as U } 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 U = ["data-theme"], Z = /* @__PURE__ */ k({
10
+ const G = ["data-theme"], tt = /* @__PURE__ */ A({
11
11
  __name: "Tooltip",
12
12
  props: {
13
13
  text: {
@@ -33,79 +33,86 @@ const U = ["data-theme"], Z = /* @__PURE__ */ k({
33
33
  delay: {
34
34
  type: Number,
35
35
  default: 600
36
+ },
37
+ maxWidth: {
38
+ type: String,
39
+ default: ""
36
40
  }
37
41
  },
38
- setup(w, { expose: d }) {
39
- const x = N("chatAppId"), { getTheme: y } = P(x), a = n(), p = n(), c = n(!1), u = n(null), r = n(null), o = w, _ = A(() => ({
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(() => ({
40
44
  tooltip__text: !0,
41
- [`tooltip--${o.position}`]: !0
42
- })), B = () => {
43
- o.trigger !== "auto" && (r.value && (clearTimeout(r.value), r.value = null), r.value = setTimeout(() => {
45
+ [`tooltip--${e.position}`]: !0
46
+ })), B = T(() => ({
47
+ maxWidth: e.maxWidth || void 0
48
+ })), C = () => {
49
+ e.trigger !== "auto" && (r.value && (clearTimeout(r.value), r.value = null), r.value = setTimeout(() => {
44
50
  c.value = !0, v(() => {
45
- if (a.value && p.value) {
46
- const f = p.value, t = a.value.getBoundingClientRect(), e = p.value.getBoundingClientRect(), l = e.left < 0 ? e.left : 0, i = e.top < 0 ? e.top : 0, h = {
47
- left: { top: t.top - (e.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) - e.width - l - o.offset },
48
- right: { top: t.top - (e.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) + t.width - l + o.offset },
49
- bottom: { top: (t == null ? void 0 : t.bottom) - i + o.offset, left: (t == null ? void 0 : t.left) - l },
50
- "bottom-center": { top: (t == null ? void 0 : t.bottom) - i + o.offset, left: (t == null ? void 0 : t.left) + t.width / 2 - e.width / 2 - l },
51
- top: { top: t.top - e.height - o.offset - i, left: (t == null ? void 0 : t.left) - l },
52
- "top-center": { top: t.top - e.height - o.offset - i, left: (t == null ? void 0 : t.left) + t.width / 2 - e.width / 2 - l },
53
- "bottom-left": { top: (t == null ? void 0 : t.bottom) - i + o.offset, left: (t == null ? void 0 : t.left) + t.width - e.width - l }
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 }
54
60
  };
55
- f.style.top = h[o.position].top + "px", f.style.left = h[o.position].left + "px";
61
+ f.style.top = h[e.position].top + "px", f.style.left = h[e.position].left + "px";
56
62
  }
57
63
  }), r.value = null;
58
- }, o.delay));
59
- }, C = () => {
60
- o.trigger !== "auto" && (r.value && (clearTimeout(r.value), r.value = null), c.value = !1, v(() => {
61
- const f = g(p);
64
+ }, 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);
62
68
  f && (f.style.top = "0", f.style.left = "0");
63
69
  }));
64
- }, S = () => {
70
+ }, N = () => {
65
71
  m(), c.value = !0, v(() => {
66
- if (a.value && p.value) {
67
- const f = p.value, t = a.value.getBoundingClientRect(), e = p.value.getBoundingClientRect(), l = e.left < 0 ? e.left : 0, i = e.top < 0 ? e.top : 0, h = {
68
- left: { top: t.top - (e.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) - e.width - l - o.offset },
69
- right: { top: t.top - (e.height - t.height) / 2 - i, left: (t == null ? void 0 : t.left) + t.width - l + o.offset },
70
- bottom: { top: (t == null ? void 0 : t.bottom) - i + o.offset, left: (t == null ? void 0 : t.left) - l },
71
- "bottom-center": { top: (t == null ? void 0 : t.bottom) - i + o.offset, left: (t == null ? void 0 : t.left) + t.width / 2 - e.width / 2 - l },
72
- top: { top: t.top - e.height - o.offset - i, left: (t == null ? void 0 : t.left) - l },
73
- "top-center": { top: t.top - e.height - o.offset - i, left: (t == null ? void 0 : t.left) + t.width / 2 - e.width / 2 - l },
74
- "bottom-left": { top: (t == null ? void 0 : t.bottom) - i + o.offset, left: (t == null ? void 0 : t.left) + t.width - e.width - l }
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 }
75
81
  };
76
- f.style.top = h[o.position].top + "px", f.style.left = h[o.position].left + "px";
82
+ f.style.top = h[e.position].top + "px", f.style.left = h[e.position].left + "px";
77
83
  }
78
- }), o.autoShowDuration > 0 && (u.value = setTimeout(() => {
84
+ }), e.autoShowDuration > 0 && (u.value = setTimeout(() => {
79
85
  c.value = !1;
80
- }, o.autoShowDuration));
86
+ }, e.autoShowDuration));
81
87
  }, m = () => {
82
88
  u.value && (clearTimeout(u.value), u.value = null);
83
89
  };
84
- return D(() => {
90
+ return R(() => {
85
91
  r.value && clearTimeout(r.value), m();
86
- }), d({
87
- startAutoShow: S,
92
+ }), x({
93
+ startAutoShow: N,
88
94
  clearAutoTimer: m
89
- }), (f, t) => (s(), T(R, null, [
90
- V("div", {
95
+ }), (f, t) => (s(), d(V, null, [
96
+ W("div", {
91
97
  ref_key: "container",
92
- ref: a,
98
+ ref: p,
93
99
  class: "tooltip-wrapper",
94
- onMouseover: B,
95
- onMouseout: C
100
+ onMouseover: C,
101
+ onMouseout: k
96
102
  }, [
97
- I(f.$slots, "default", {}, void 0, !0)
103
+ E(f.$slots, "default", {}, void 0, !0)
98
104
  ], 544),
99
- (s(), E(L, { to: "body" }, [
100
- M($, null, {
101
- default: j(() => [
102
- c.value ? (s(), T("span", {
105
+ (s(), z(I, { to: "body" }, [
106
+ L(M, null, {
107
+ default: $(() => [
108
+ c.value ? (s(), d("span", {
103
109
  key: 0,
104
110
  ref_key: "tooltip",
105
- ref: p,
111
+ ref: a,
106
112
  "data-theme": g(y)().theme ? g(y)().theme : "light",
107
- class: z(_.value)
108
- }, F(w.text), 11, U)) : q("", !0)
113
+ class: F(_.value),
114
+ style: q(B.value)
115
+ }, P(w.text), 15, G)) : j("", !0)
109
116
  ]),
110
117
  _: 1
111
118
  })
@@ -114,5 +121,5 @@ const U = ["data-theme"], Z = /* @__PURE__ */ k({
114
121
  }
115
122
  });
116
123
  export {
117
- Z as default
124
+ tt as default
118
125
  };
@@ -1,19 +1,31 @@
1
- import { toRef as E, computed as T, ref as f, onMounted as W, nextTick as q, onUnmounted as J, watch as K, createElementBlock as a, openBlock as o, normalizeClass as s, createCommentVNode as u, createElementVNode as d, normalizeStyle as O, Fragment as A, renderList as w, createBlock as y, withCtx as k, toDisplayString as M, createVNode as R } from "vue";
2
- import Q from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
3
- import F from "../../1_icons/SettingsIcon.vue.js";
4
- import L from "../../1_atoms/Tooltip/Tooltip.vue.js";
1
+ import { toRef as A, computed as E, ref as f, onMounted as K, nextTick as y, onUnmounted as O, watch as M, createElementBlock as s, openBlock as i, normalizeClass as r, createCommentVNode as l, createElementVNode as c, normalizeStyle as Q, Fragment as R, renderList as N, createBlock as m, withCtx as h, toDisplayString as F, createVNode as L } from "vue";
2
+ import X from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
3
+ import V from "../../1_icons/SettingsIcon.vue.js";
4
+ import k from "../../1_atoms/Tooltip/Tooltip.vue.js";
5
5
  /* empty css */
6
- import X from "../../../_virtual/_plugin-vue_export-helper.js";
7
- const Z = ["onClick"], $ = ["src", "alt"], ee = {
6
+ import Z from "../../../_virtual/_plugin-vue_export-helper.js";
7
+ const $ = ["onClick"], tt = ["src", "alt"], et = {
8
8
  key: 1,
9
9
  class: "sidebar__notification-count"
10
- }, te = { class: "sidebar__scroll-container" }, ne = ["onClick"], oe = ["src", "alt"], ie = ["src"], ae = { key: 2 }, se = {
10
+ }, ot = { class: "sidebar__scroll-container" }, it = ["onClick"], nt = ["src", "alt"], st = ["src"], at = { key: 2 }, rt = {
11
11
  key: 2,
12
12
  class: "sidebar__settings-container"
13
- }, re = {
13
+ }, lt = {
14
14
  class: "sidebar__settings-btn",
15
15
  type: "button"
16
- }, le = {
16
+ }, ct = {
17
+ key: 0,
18
+ class: "sidebar__settings-indicator-anchor"
19
+ }, ut = {
20
+ key: 1,
21
+ class: "sidebar__settings-indicator"
22
+ }, dt = {
23
+ key: 0,
24
+ class: "sidebar__settings-indicator-anchor"
25
+ }, ft = {
26
+ key: 1,
27
+ class: "sidebar__settings-indicator"
28
+ }, _t = {
17
29
  __name: "SideBar",
18
30
  props: {
19
31
  sidebarItems: {
@@ -41,173 +53,234 @@ const Z = ["onClick"], $ = ["src", "alt"], ee = {
41
53
  required: !1,
42
54
  default: "menu"
43
55
  // 'menu' | 'action'
56
+ },
57
+ showSettingsIndicator: {
58
+ type: Boolean,
59
+ required: !1,
60
+ default: !1
61
+ },
62
+ settingsIndicatorTooltip: {
63
+ type: String,
64
+ required: !1,
65
+ default: ""
66
+ },
67
+ /** Длительность автопоказа тултипа индикатора при появлении кружка, мс */
68
+ settingsIndicatorTooltipAutoShowMs: {
69
+ type: Number,
70
+ required: !1,
71
+ default: 8e3
44
72
  }
45
73
  },
46
74
  emits: ["selectItem", "settingsClick"],
47
- setup(i, { emit: N }) {
48
- const C = i, m = E(C, "sidebarItems"), p = E(C, "menuActions"), z = N, x = T(
49
- () => m.value.filter((e) => e.isFixedBottom).sort((e, t) => t.notificationCount - e.notificationCount)
50
- ), V = T(
51
- () => m.value.filter((e) => !e.isFixedBottom).sort((e, t) => t.notificationCount - e.notificationCount)
52
- ), H = (e) => {
53
- const t = m.value.find((n) => n.itemId === e);
54
- z("selectItem", t);
55
- }, B = (e, t) => {
56
- P(e.currentTarget), H(t);
57
- }, Y = (e) => {
58
- const t = e.split(" ");
59
- return t.length > 2 ? t.slice(0, 2).join(" ") : e;
60
- }, j = (e) => {
61
- console.log("Выбрано действие:", e), typeof e.action == "function" && e.action();
62
- }, D = () => {
75
+ setup(n, { emit: H }) {
76
+ const _ = n, b = A(_, "sidebarItems"), S = A(_, "menuActions"), T = H, w = E(
77
+ () => b.value.filter((t) => t.isFixedBottom).sort((t, e) => e.notificationCount - t.notificationCount)
78
+ ), Y = E(
79
+ () => b.value.filter((t) => !t.isFixedBottom).sort((t, e) => e.notificationCount - t.notificationCount)
80
+ ), j = (t) => {
81
+ const e = b.value.find((o) => o.itemId === t);
82
+ T("selectItem", e);
83
+ }, z = (t, e) => {
84
+ W(t.currentTarget), j(e);
85
+ }, D = (t) => {
86
+ const e = t.split(" ");
87
+ return e.length > 2 ? e.slice(0, 2).join(" ") : t;
88
+ }, G = (t) => {
89
+ console.log("Выбрано действие:", t), typeof t.action == "function" && t.action();
90
+ }, P = () => {
63
91
  console.log("Кнопка меню была нажата");
64
- }, G = () => {
65
- var t;
66
- z("settingsClick");
67
- const e = (t = p.value) == null ? void 0 : t[0];
68
- e && typeof e.action == "function" && !e.disabled && e.action();
69
- }, l = f(null), h = f(!1), v = f(0), g = f(40), b = f(!1), I = (e) => {
70
- const t = l.value;
71
- if (!t || !e) return 0;
72
- const n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), U = r.top + r.height / 2 - n.top - g.value / 2;
73
- return Math.max(0, U);
74
- }, _ = () => {
75
- if (!l.value) return;
76
- const t = l.value.querySelector(".sidebar__image--active");
77
- t ? (v.value = I(t), h.value = !0) : h.value = !1;
78
- }, P = (e) => {
92
+ }, U = () => {
93
+ var e;
94
+ T("settingsClick");
95
+ const t = (e = S.value) == null ? void 0 : e[0];
96
+ t && typeof t.action == "function" && !t.disabled && t.action();
97
+ }, u = f(null), p = f(null), I = f(!1), C = f(0), v = f(40), x = f(!1), B = (t) => {
98
+ const e = u.value;
99
+ if (!e || !t) return 0;
100
+ const o = e.getBoundingClientRect(), a = t.getBoundingClientRect(), J = a.top + a.height / 2 - o.top - v.value / 2;
101
+ return Math.max(0, J);
102
+ }, g = () => {
103
+ if (!u.value) return;
104
+ const e = u.value.querySelector(".sidebar__image--active");
105
+ e ? (C.value = B(e), I.value = !0) : I.value = !1;
106
+ }, W = (t) => {
79
107
  try {
80
- if (!e || !l.value) return;
81
- const t = e.querySelector(".sidebar__image");
82
- if (!t) return;
83
- const n = I(t), r = 12, c = 160;
84
- b.value = !0, g.value = r, setTimeout(() => {
85
- v.value = n, requestAnimationFrame(() => {
86
- g.value = 40, setTimeout(() => {
87
- b.value = !1;
88
- }, c);
108
+ if (!t || !u.value) return;
109
+ const e = t.querySelector(".sidebar__image");
110
+ if (!e) return;
111
+ const o = B(e), a = 12, d = 160;
112
+ x.value = !0, v.value = a, setTimeout(() => {
113
+ C.value = o, requestAnimationFrame(() => {
114
+ v.value = 40, setTimeout(() => {
115
+ x.value = !1;
116
+ }, d);
89
117
  });
90
- }, c);
118
+ }, d);
91
119
  } catch {
92
120
  }
93
- }, S = () => _();
94
- return W(() => {
95
- var t;
96
- q(_), window.addEventListener("resize", S);
97
- const e = (t = l.value) == null ? void 0 : t.querySelector(".sidebar__scroll-container");
98
- e && e.addEventListener("scroll", _);
99
- }), J(() => {
100
- var t;
101
- window.removeEventListener("resize", S);
102
- const e = (t = l.value) == null ? void 0 : t.querySelector(".sidebar__scroll-container");
103
- e && e.removeEventListener("scroll", _);
104
- }), K(() => m.value.map((e) => e.selected), () => q(_)), (e, t) => (o(), a("div", {
121
+ }, q = () => g();
122
+ return K(() => {
123
+ var e;
124
+ y(g), window.addEventListener("resize", q);
125
+ const t = (e = u.value) == null ? void 0 : e.querySelector(".sidebar__scroll-container");
126
+ t && t.addEventListener("scroll", g);
127
+ }), O(() => {
128
+ var e;
129
+ window.removeEventListener("resize", q);
130
+ const t = (e = u.value) == null ? void 0 : e.querySelector(".sidebar__scroll-container");
131
+ t && t.removeEventListener("scroll", g);
132
+ }), M(() => b.value.map((t) => t.selected), () => y(g)), M(
133
+ () => _.showSettings && _.showSettingsIndicator && !!_.settingsIndicatorTooltip,
134
+ (t, e) => {
135
+ !t || e === !0 || y(() => {
136
+ y(() => {
137
+ var o, a;
138
+ (a = (o = p.value) == null ? void 0 : o.startAutoShow) == null || a.call(o);
139
+ });
140
+ });
141
+ },
142
+ { flush: "post", immediate: !0 }
143
+ ), (t, e) => (i(), s("div", {
105
144
  ref_key: "containerRef",
106
- ref: l,
107
- class: s(["sidebar__container", { "sidebar-horizontal__container": i.horizontal }])
145
+ ref: u,
146
+ class: r(["sidebar__container", { "sidebar-horizontal__container": n.horizontal }])
108
147
  }, [
109
- !i.horizontal && h.value ? (o(), a("span", {
148
+ !n.horizontal && I.value ? (i(), s("span", {
110
149
  key: 0,
111
- class: s(["sidebar__selected-bar", { "is-animating": b.value }]),
112
- style: O({ top: v.value + "px", height: g.value + "px" })
113
- }, null, 6)) : u("", !0),
114
- x.value.length > 0 ? (o(), a("ul", {
150
+ class: r(["sidebar__selected-bar", { "is-animating": x.value }]),
151
+ style: Q({ top: C.value + "px", height: v.value + "px" })
152
+ }, null, 6)) : l("", !0),
153
+ w.value.length > 0 ? (i(), s("ul", {
115
154
  key: 1,
116
- class: s(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": i.horizontal }])
155
+ class: r(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": n.horizontal }])
117
156
  }, [
118
- (o(!0), a(A, null, w(x.value, (n, r) => (o(), a("li", {
119
- key: r,
120
- class: s(["sidebar__item-fixed", { "sidebar-horizontal__item": i.horizontal }]),
121
- onClick: (c) => B(c, n.itemId)
157
+ (i(!0), s(R, null, N(w.value, (o, a) => (i(), s("li", {
158
+ key: a,
159
+ class: r(["sidebar__item-fixed", { "sidebar-horizontal__item": n.horizontal }]),
160
+ onClick: (d) => z(d, o.itemId)
122
161
  }, [
123
- n.name ? (o(), y(L, {
162
+ o.name ? (i(), m(k, {
124
163
  key: 0,
125
- text: Y(n.name),
164
+ text: D(o.name),
126
165
  position: "right",
127
166
  offset: 8
128
167
  }, {
129
- default: k(() => [
130
- d("img", {
131
- src: n.icon,
132
- alt: n.name,
133
- class: s(["sidebar__image", {
134
- "sidebar__image--active": n.selected === !0,
135
- "sidebar-horizontal__image": i.horizontal
168
+ default: h(() => [
169
+ c("img", {
170
+ src: o.icon,
171
+ alt: o.name,
172
+ class: r(["sidebar__image", {
173
+ "sidebar__image--active": o.selected === !0,
174
+ "sidebar-horizontal__image": n.horizontal
136
175
  }])
137
- }, null, 10, $),
138
- t[0] || (t[0] = d("p", null, "Мои", -1))
176
+ }, null, 10, tt),
177
+ e[0] || (e[0] = c("p", null, "Мои", -1))
139
178
  ]),
140
179
  _: 2
141
- }, 1032, ["text"])) : u("", !0),
142
- n.notificationCount ? (o(), a("span", ee, M(n.notificationCount > 99 ? "99+" : n.notificationCount), 1)) : u("", !0)
143
- ], 10, Z))), 128))
144
- ], 2)) : u("", !0),
145
- d("div", te, [
146
- d("ul", {
147
- class: s(["sidebar__list", { "sidebar-horizontal__list": i.horizontal }])
180
+ }, 1032, ["text"])) : l("", !0),
181
+ o.notificationCount ? (i(), s("span", et, F(o.notificationCount > 99 ? "99+" : o.notificationCount), 1)) : l("", !0)
182
+ ], 10, $))), 128))
183
+ ], 2)) : l("", !0),
184
+ c("div", ot, [
185
+ c("ul", {
186
+ class: r(["sidebar__list", { "sidebar-horizontal__list": n.horizontal }])
148
187
  }, [
149
- (o(!0), a(A, null, w(V.value, (n, r) => (o(), a("li", {
150
- key: r,
151
- class: s(["sidebar__item", { "sidebar-horizontal__item": i.horizontal }]),
152
- onClick: (c) => B(c, n.itemId)
188
+ (i(!0), s(R, null, N(Y.value, (o, a) => (i(), s("li", {
189
+ key: a,
190
+ class: r(["sidebar__item", { "sidebar-horizontal__item": n.horizontal }]),
191
+ onClick: (d) => z(d, o.itemId)
153
192
  }, [
154
- n.name ? (o(), y(L, {
193
+ o.name ? (i(), m(k, {
155
194
  key: 0,
156
- text: n.name,
195
+ text: o.name,
157
196
  position: "right",
158
197
  offset: 8
159
198
  }, {
160
- default: k(() => [
161
- d("img", {
162
- src: n.icon,
163
- alt: n.name,
164
- class: s(["sidebar__image", {
165
- "sidebar__image--active": n.selected === !0,
166
- "sidebar-horizontal__image": i.horizontal
199
+ default: h(() => [
200
+ c("img", {
201
+ src: o.icon,
202
+ alt: o.name,
203
+ class: r(["sidebar__image", {
204
+ "sidebar__image--active": o.selected === !0,
205
+ "sidebar-horizontal__image": n.horizontal
167
206
  }])
168
- }, null, 10, oe)
207
+ }, null, 10, nt)
169
208
  ]),
170
209
  _: 2
171
- }, 1032, ["text"])) : (o(), a("img", {
210
+ }, 1032, ["text"])) : (i(), s("img", {
172
211
  key: 1,
173
- src: n.icon,
212
+ src: o.icon,
174
213
  alt: "icon",
175
- class: s(["sidebar__image", {
176
- "sidebar__image--active": n.selected === !0,
177
- "sidebar-horizontal__image": i.horizontal
214
+ class: r(["sidebar__image", {
215
+ "sidebar__image--active": o.selected === !0,
216
+ "sidebar-horizontal__image": n.horizontal
178
217
  }])
179
- }, null, 10, ie)),
180
- n.notificationCount ? (o(), a("span", ae, M(n.notificationCount > 99 ? "99+" : n.notificationCount), 1)) : u("", !0)
181
- ], 10, ne))), 128))
218
+ }, null, 10, st)),
219
+ o.notificationCount ? (i(), s("span", at, F(o.notificationCount > 99 ? "99+" : o.notificationCount), 1)) : l("", !0)
220
+ ], 10, it))), 128))
182
221
  ], 2)
183
222
  ]),
184
- i.showSettings ? (o(), a("div", se, [
185
- i.settingsButtonMode === "menu" ? (o(), y(Q, {
223
+ n.showSettings ? (i(), s("div", rt, [
224
+ n.settingsButtonMode === "menu" ? (i(), m(X, {
186
225
  key: 0,
187
- actions: p.value,
226
+ actions: S.value,
188
227
  mode: "click",
189
228
  "menu-side": "top-right",
190
- onClick: j,
191
- onButtonClick: D
229
+ onClick: G,
230
+ onButtonClick: P
192
231
  }, {
193
- default: k(() => [
194
- d("button", re, [
195
- R(F)
232
+ default: h(() => [
233
+ c("button", lt, [
234
+ L(V),
235
+ n.showSettingsIndicator ? (i(), s("span", ct, [
236
+ n.settingsIndicatorTooltip ? (i(), m(k, {
237
+ key: 0,
238
+ ref_key: "settingsIndicatorTooltipRef",
239
+ ref: p,
240
+ text: n.settingsIndicatorTooltip,
241
+ position: "top",
242
+ offset: 8,
243
+ "max-width": "460px",
244
+ "auto-show-duration": n.settingsIndicatorTooltipAutoShowMs
245
+ }, {
246
+ default: h(() => [...e[1] || (e[1] = [
247
+ c("span", { class: "sidebar__settings-indicator" }, null, -1)
248
+ ])]),
249
+ _: 1
250
+ }, 8, ["text", "auto-show-duration"])) : (i(), s("span", ut))
251
+ ])) : l("", !0)
196
252
  ])
197
253
  ]),
198
254
  _: 1
199
- }, 8, ["actions"])) : (o(), a("button", {
255
+ }, 8, ["actions"])) : (i(), s("button", {
200
256
  key: 1,
201
257
  class: "sidebar__settings-btn",
202
258
  type: "button",
203
- onClick: G
259
+ onClick: U
204
260
  }, [
205
- R(F)
261
+ L(V),
262
+ n.showSettingsIndicator ? (i(), s("span", dt, [
263
+ n.settingsIndicatorTooltip ? (i(), m(k, {
264
+ key: 0,
265
+ ref_key: "settingsIndicatorTooltipRef",
266
+ ref: p,
267
+ text: n.settingsIndicatorTooltip,
268
+ position: "top",
269
+ offset: 8,
270
+ "max-width": "460px",
271
+ "auto-show-duration": n.settingsIndicatorTooltipAutoShowMs
272
+ }, {
273
+ default: h(() => [...e[2] || (e[2] = [
274
+ c("span", { class: "sidebar__settings-indicator" }, null, -1)
275
+ ])]),
276
+ _: 1
277
+ }, 8, ["text", "auto-show-duration"])) : (i(), s("span", ft))
278
+ ])) : l("", !0)
206
279
  ]))
207
- ])) : u("", !0)
280
+ ])) : l("", !0)
208
281
  ], 2));
209
282
  }
210
- }, ge = /* @__PURE__ */ X(le, [["__scopeId", "data-v-eb5412c6"]]);
283
+ }, kt = /* @__PURE__ */ Z(_t, [["__scopeId", "data-v-af365b7c"]]);
211
284
  export {
212
- ge as default
285
+ kt as default
213
286
  };