@mobilon-dev/chotto 0.3.41 → 0.3.42
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.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +2 -2
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +60 -52
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +109 -0
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -0
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +43 -10
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +19 -0
- package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
- package/dist/components/3_compounds/Feed/Feed.vue2.js +82 -81
- package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +10 -8
- package/dist/index.js +147 -145
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/data/messages.d.ts +31 -0
- package/dist/types/components/1_atoms/Tooltip/Tooltip.vue.d.ts +9 -0
- package/dist/types/components/1_atoms/Tooltip/styles/types.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.d.ts +40 -0
- package/dist/types/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MissedCallMessage/stories/MissedCallMessage.stories.d.ts +12 -0
- package/dist/types/components/2_feed_elements/types/messages.d.ts +10 -0
- package/dist/types/components/3_compounds/ChatList/ChatListHeader.vue.d.ts +6 -0
- package/dist/types/components/3_compounds/ChatList/icons/LogoIcon.vue.d.ts +2 -0
- package/dist/types/components/3_compounds/ChatList/styles/types.d.ts +44 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/main.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d13721a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, inject as N, ref as c, computed as A, onUnmounted as D, createElementBlock as d, openBlock as m, 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 v, toDisplayString as F, nextTick as g } from "vue";
|
|
2
2
|
import "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as P } from "../../../hooks/useTheme.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
8
8
|
import "../../../functions/parseMarkdown.js";
|
|
9
|
-
const
|
|
9
|
+
const U = ["data-theme"], Y = /* @__PURE__ */ k({
|
|
10
10
|
__name: "Tooltip",
|
|
11
11
|
props: {
|
|
12
12
|
text: {
|
|
@@ -28,71 +28,79 @@ const F = ["data-theme"], W = /* @__PURE__ */ S({
|
|
|
28
28
|
autoShowDuration: {
|
|
29
29
|
type: Number,
|
|
30
30
|
default: 0
|
|
31
|
+
},
|
|
32
|
+
delay: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: 600
|
|
31
35
|
}
|
|
32
36
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
37
|
+
setup(y, { expose: w }) {
|
|
38
|
+
const x = N("chatAppId"), { getTheme: T } = P(x), p = c(), a = c(), n = c(!1), s = c(null), f = c(null), e = y, _ = A(() => ({
|
|
35
39
|
tooltip__text: !0,
|
|
36
40
|
[`tooltip--${e.position}`]: !0
|
|
37
|
-
})),
|
|
38
|
-
e.trigger !== "auto" && (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
e.
|
|
52
|
-
|
|
41
|
+
})), B = () => {
|
|
42
|
+
e.trigger !== "auto" && (f.value && (clearTimeout(f.value), f.value = null), f.value = setTimeout(() => {
|
|
43
|
+
n.value = !0, g(() => {
|
|
44
|
+
if (p.value && a.value) {
|
|
45
|
+
const l = a.value, t = p.value.getBoundingClientRect(), o = a.value.getBoundingClientRect(), i = o.left < 0 ? o.left : 0, r = o.top < 0 ? o.top : 0, u = {
|
|
46
|
+
left: { top: t.top - (o.height - t.height) / 2 - r, left: (t == null ? void 0 : t.left) - o.width - i - e.offset },
|
|
47
|
+
right: { top: t.top - (o.height - t.height) / 2 - r, left: (t == null ? void 0 : t.left) + t.width - i + e.offset },
|
|
48
|
+
bottom: { top: (t == null ? void 0 : t.bottom) - r + e.offset, left: (t == null ? void 0 : t.left) - i },
|
|
49
|
+
top: { top: t.top - o.height - e.offset - r, left: (t == null ? void 0 : t.left) - i },
|
|
50
|
+
"bottom-left": { top: (t == null ? void 0 : t.bottom) - r + e.offset, left: (t == null ? void 0 : t.left) + t.width - o.width - i }
|
|
51
|
+
};
|
|
52
|
+
l.style.top = u[e.position].top + "px", l.style.left = u[e.position].left + "px";
|
|
53
|
+
}
|
|
54
|
+
}), f.value = null;
|
|
55
|
+
}, e.delay));
|
|
56
|
+
}, C = () => {
|
|
57
|
+
e.trigger !== "auto" && (f.value && (clearTimeout(f.value), f.value = null), n.value = !1, g(() => {
|
|
58
|
+
const l = v(a);
|
|
53
59
|
l && (l.style.top = "0", l.style.left = "0");
|
|
54
60
|
}));
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
if (p.value &&
|
|
58
|
-
const l =
|
|
59
|
-
left: { top: t.top - (o.height - t.height) / 2 -
|
|
60
|
-
right: { top: t.top - (o.height - t.height) / 2 -
|
|
61
|
-
bottom: { top: (t == null ? void 0 : t.bottom) -
|
|
62
|
-
top: { top: t.top - o.height - e.offset -
|
|
63
|
-
"bottom-left": { top: (t == null ? void 0 : t.bottom) -
|
|
61
|
+
}, S = () => {
|
|
62
|
+
h(), n.value = !0, g(() => {
|
|
63
|
+
if (p.value && a.value) {
|
|
64
|
+
const l = a.value, t = p.value.getBoundingClientRect(), o = a.value.getBoundingClientRect(), i = o.left < 0 ? o.left : 0, r = o.top < 0 ? o.top : 0, u = {
|
|
65
|
+
left: { top: t.top - (o.height - t.height) / 2 - r, left: (t == null ? void 0 : t.left) - o.width - i - e.offset },
|
|
66
|
+
right: { top: t.top - (o.height - t.height) / 2 - r, left: (t == null ? void 0 : t.left) + t.width - i + e.offset },
|
|
67
|
+
bottom: { top: (t == null ? void 0 : t.bottom) - r + e.offset, left: (t == null ? void 0 : t.left) - i },
|
|
68
|
+
top: { top: t.top - o.height - e.offset - r, left: (t == null ? void 0 : t.left) - i },
|
|
69
|
+
"bottom-left": { top: (t == null ? void 0 : t.bottom) - r + e.offset, left: (t == null ? void 0 : t.left) + t.width - o.width - i }
|
|
64
70
|
};
|
|
65
|
-
l.style.top =
|
|
71
|
+
l.style.top = u[e.position].top + "px", l.style.left = u[e.position].left + "px";
|
|
66
72
|
}
|
|
67
|
-
}), e.autoShowDuration > 0 && (
|
|
68
|
-
|
|
73
|
+
}), e.autoShowDuration > 0 && (s.value = setTimeout(() => {
|
|
74
|
+
n.value = !1;
|
|
69
75
|
}, e.autoShowDuration));
|
|
70
|
-
},
|
|
71
|
-
|
|
76
|
+
}, h = () => {
|
|
77
|
+
s.value && (clearTimeout(s.value), s.value = null);
|
|
72
78
|
};
|
|
73
|
-
return
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
return D(() => {
|
|
80
|
+
f.value && clearTimeout(f.value), h();
|
|
81
|
+
}), w({
|
|
82
|
+
startAutoShow: S,
|
|
83
|
+
clearAutoTimer: h
|
|
84
|
+
}), (l, t) => (m(), d(R, null, [
|
|
85
|
+
V("div", {
|
|
78
86
|
ref_key: "container",
|
|
79
87
|
ref: p,
|
|
80
88
|
class: "tooltip-wrapper",
|
|
81
|
-
onMouseover:
|
|
82
|
-
onMouseout:
|
|
89
|
+
onMouseover: B,
|
|
90
|
+
onMouseout: C
|
|
83
91
|
}, [
|
|
84
|
-
|
|
92
|
+
I(l.$slots, "default", {}, void 0, !0)
|
|
85
93
|
], 544),
|
|
86
|
-
(
|
|
87
|
-
|
|
88
|
-
default:
|
|
89
|
-
|
|
94
|
+
(m(), E(L, { to: "body" }, [
|
|
95
|
+
M($, null, {
|
|
96
|
+
default: j(() => [
|
|
97
|
+
n.value ? (m(), d("span", {
|
|
90
98
|
key: 0,
|
|
91
99
|
ref_key: "tooltip",
|
|
92
|
-
ref:
|
|
93
|
-
"data-theme":
|
|
94
|
-
class:
|
|
95
|
-
},
|
|
100
|
+
ref: a,
|
|
101
|
+
"data-theme": v(T)().theme ? v(T)().theme : "light",
|
|
102
|
+
class: z(_.value)
|
|
103
|
+
}, F(y.text), 11, U)) : q("", !0)
|
|
96
104
|
]),
|
|
97
105
|
_: 1
|
|
98
106
|
})
|
|
@@ -101,5 +109,5 @@ const F = ["data-theme"], W = /* @__PURE__ */ S({
|
|
|
101
109
|
}
|
|
102
110
|
});
|
|
103
111
|
export {
|
|
104
|
-
|
|
112
|
+
Y as default
|
|
105
113
|
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent as T, createElementBlock as o, openBlock as i, unref as t, normalizeClass as f, createCommentVNode as n, createElementVNode as a, normalizeStyle as _, createVNode as u, withCtx as x, createTextVNode as h, toDisplayString as p, Transition as w, createBlock as S } from "vue";
|
|
2
|
+
import { useMessageActions as V } from "../../../hooks/messages/useMessageActions.js";
|
|
3
|
+
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
4
|
+
import "../../../functions/parseMarkdown.js";
|
|
5
|
+
import { getMessageClass as I } from "../../../functions/getMessageClass.js";
|
|
6
|
+
import { useSubtextTooltip as N } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
7
|
+
import B from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
8
|
+
import D from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
9
|
+
import O from "./icons/MissedCallIcon.vue.js";
|
|
10
|
+
const j = ["messageId"], q = ["src"], z = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "missed-call-message__subtext"
|
|
13
|
+
}, A = { class: "missed-call-message__main-content" }, E = { class: "missed-call-message__icon-wrapper" }, F = { class: "missed-call-message__info-container" }, R = { class: "missed-call-message__time" }, W = /* @__PURE__ */ T({
|
|
14
|
+
__name: "MissedCallMessage",
|
|
15
|
+
props: {
|
|
16
|
+
message: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
applyStyle: {
|
|
21
|
+
type: Function,
|
|
22
|
+
default: () => null
|
|
23
|
+
},
|
|
24
|
+
subtextTooltipData: {
|
|
25
|
+
type: Object,
|
|
26
|
+
required: !1,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["action", "reply"],
|
|
31
|
+
setup(e, { emit: y }) {
|
|
32
|
+
const b = y, m = e, {
|
|
33
|
+
isOpenMenu: c,
|
|
34
|
+
buttonMenuVisible: C,
|
|
35
|
+
showMenu: r,
|
|
36
|
+
hideMenu: d,
|
|
37
|
+
clickAction: M
|
|
38
|
+
} = V(m.message, b), k = N(() => m.message, () => m.subtextTooltipData);
|
|
39
|
+
function v(g) {
|
|
40
|
+
return I(g.position, "missed-call-message");
|
|
41
|
+
}
|
|
42
|
+
return (g, s) => (i(), o("div", {
|
|
43
|
+
class: f([
|
|
44
|
+
v(e.message),
|
|
45
|
+
e.applyStyle(e.message)
|
|
46
|
+
]),
|
|
47
|
+
messageId: e.message.messageId,
|
|
48
|
+
onMouseenter: s[1] || (s[1] = //@ts-ignore
|
|
49
|
+
(...l) => t(r) && t(r)(...l)),
|
|
50
|
+
onMouseleave: s[2] || (s[2] = //@ts-ignore
|
|
51
|
+
(...l) => t(d) && t(d)(...l))
|
|
52
|
+
}, [
|
|
53
|
+
e.message.avatar ? (i(), o("img", {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "missed-call-message__avatar",
|
|
56
|
+
src: e.message.avatar,
|
|
57
|
+
height: "32",
|
|
58
|
+
width: "32",
|
|
59
|
+
style: _({ gridRow: e.message.subText ? "2" : "1" })
|
|
60
|
+
}, null, 12, q)) : n("", !0),
|
|
61
|
+
e.message.subText ? (i(), o("p", z, [
|
|
62
|
+
u(D, {
|
|
63
|
+
text: t(k),
|
|
64
|
+
position: "right",
|
|
65
|
+
offset: 8
|
|
66
|
+
}, {
|
|
67
|
+
default: x(() => [
|
|
68
|
+
h(p(e.message.subText), 1)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["text"])
|
|
72
|
+
])) : n("", !0),
|
|
73
|
+
a("div", {
|
|
74
|
+
class: f(["missed-call-message__content", { "is-first": !0 }])
|
|
75
|
+
}, [
|
|
76
|
+
a("div", A, [
|
|
77
|
+
a("div", E, [
|
|
78
|
+
u(O, { class: "missed-call-message__icon" })
|
|
79
|
+
]),
|
|
80
|
+
s[3] || (s[3] = a("p", { class: "missed-call-message__text" }, " Пропущенный звонок ", -1))
|
|
81
|
+
]),
|
|
82
|
+
a("div", F, [
|
|
83
|
+
a("span", R, p(e.message.time), 1)
|
|
84
|
+
]),
|
|
85
|
+
t(C) && e.message.actions ? (i(), o("button", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "missed-call-message__menu-button",
|
|
88
|
+
onClick: s[0] || (s[0] = (l) => c.value = !t(c))
|
|
89
|
+
}, [...s[4] || (s[4] = [
|
|
90
|
+
a("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
91
|
+
])])) : n("", !0),
|
|
92
|
+
u(w, null, {
|
|
93
|
+
default: x(() => [
|
|
94
|
+
t(c) && e.message.actions ? (i(), S(B, {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: "missed-call-message__context-menu",
|
|
97
|
+
actions: e.message.actions,
|
|
98
|
+
onClick: t(M)
|
|
99
|
+
}, null, 8, ["actions", "onClick"])) : n("", !0)
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
])
|
|
104
|
+
], 42, j));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
W as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createElementBlock as t, openBlock as l, createElementVNode as C } from "vue";
|
|
2
|
+
import i from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const o = {}, n = {
|
|
4
|
+
width: "20",
|
|
5
|
+
height: "20",
|
|
6
|
+
viewBox: "0 0 20 20",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
+
};
|
|
10
|
+
function r(c, e) {
|
|
11
|
+
return l(), t("svg", n, [...e[0] || (e[0] = [
|
|
12
|
+
C("g", { "clip-path": "url(#clip0_8206_19)" }, [
|
|
13
|
+
C("path", {
|
|
14
|
+
"fill-rule": "evenodd",
|
|
15
|
+
"clip-rule": "evenodd",
|
|
16
|
+
d: "M2.35684 0.639867C2.57556 0.421478 2.83819 0.252065 3.12733 0.142855C3.41648 0.0336443 3.72553 -0.0128694 4.03401 0.00639586C4.34249 0.0256611 4.64336 0.110265 4.91667 0.254602C5.18998 0.398939 5.42949 0.599712 5.61934 0.843617L7.86309 3.72612C8.27434 4.25487 8.41934 4.94362 8.25684 5.59362L7.57309 8.33112C7.53774 8.4729 7.53965 8.62142 7.57863 8.76225C7.61762 8.90309 7.69236 9.03144 7.79559 9.13487L10.8668 12.2061C10.9704 12.3096 11.099 12.3844 11.24 12.4234C11.3811 12.4624 11.5299 12.4642 11.6718 12.4286L14.4081 11.7449C14.7289 11.6647 15.0637 11.6584 15.3872 11.7267C15.7107 11.7949 16.0145 11.9357 16.2756 12.1386L19.1581 14.3811C20.1943 15.1874 20.2893 16.7186 19.3618 17.6449L18.0693 18.9374C17.1443 19.8624 15.7618 20.2686 14.4731 19.8149C11.1746 18.6543 8.17968 16.7659 5.71059 14.2899C3.2347 11.8211 1.34635 8.82669 0.185589 5.52862C-0.266911 4.24112 0.139339 2.85737 1.06434 1.93237L2.35684 0.639867ZM19.8181 0.183617C19.8763 0.241674 19.9225 0.310644 19.954 0.386575C19.9855 0.462507 20.0017 0.543908 20.0017 0.626117C20.0017 0.708326 19.9855 0.789728 19.954 0.865659C19.9225 0.941591 19.8763 1.01056 19.8181 1.06862L14.6343 6.25112H18.1256C18.2913 6.25112 18.4503 6.31697 18.5675 6.43418C18.6847 6.55139 18.7506 6.71036 18.7506 6.87612C18.7506 7.04188 18.6847 7.20085 18.5675 7.31806C18.4503 7.43527 18.2913 7.50112 18.1256 7.50112H13.1256C12.9598 7.50112 12.8009 7.43527 12.6836 7.31806C12.5664 7.20085 12.5006 7.04188 12.5006 6.87612V1.87612C12.5006 1.71036 12.5664 1.55139 12.6836 1.43418C12.8009 1.31697 12.9598 1.25112 13.1256 1.25112C13.2913 1.25112 13.4503 1.31697 13.5675 1.43418C13.6847 1.55139 13.7506 1.71036 13.7506 1.87612V5.36737L18.9331 0.183617C18.9911 0.125413 19.0601 0.0792346 19.136 0.0477266C19.212 0.0162185 19.2934 0 19.3756 0C19.4578 0 19.5392 0.0162185 19.6151 0.0477266C19.6911 0.0792346 19.76 0.125413 19.8181 0.183617Z",
|
|
17
|
+
fill: "#F84932"
|
|
18
|
+
})
|
|
19
|
+
], -1),
|
|
20
|
+
C("defs", null, [
|
|
21
|
+
C("clipPath", { id: "clip0_8206_19" }, [
|
|
22
|
+
C("rect", {
|
|
23
|
+
width: "20",
|
|
24
|
+
height: "20",
|
|
25
|
+
fill: "white"
|
|
26
|
+
})
|
|
27
|
+
])
|
|
28
|
+
], -1)
|
|
29
|
+
])]);
|
|
30
|
+
}
|
|
31
|
+
const p = /* @__PURE__ */ i(o, [["render", r]]);
|
|
32
|
+
export {
|
|
33
|
+
p as default
|
|
34
|
+
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
|
|
1
|
+
import { createElementBlock as l, openBlock as e, createElementVNode as i, renderSlot as d, createCommentVNode as o, createBlock as s, toDisplayString as c, withCtx as p } from "vue";
|
|
2
|
+
import _ from "./icons/LogoIcon.vue.js";
|
|
3
|
+
import u from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const b = { class: "chat-list__title-container" }, f = { class: "chat-list__title-block" }, h = {
|
|
3
7
|
key: 0,
|
|
4
8
|
class: "chat-list__title"
|
|
5
|
-
},
|
|
9
|
+
}, y = {
|
|
6
10
|
__name: "ChatListHeader",
|
|
7
11
|
props: {
|
|
8
12
|
title: {
|
|
@@ -12,16 +16,45 @@ const r = { class: "chat-list__title-container" }, c = {
|
|
|
12
16
|
titleEnabled: {
|
|
13
17
|
type: Boolean,
|
|
14
18
|
default: !0
|
|
19
|
+
},
|
|
20
|
+
logoEnabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
betaEnabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
betaTooltipText: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: `Мы постоянно улучшаем платформу.
|
|
31
|
+
Некоторые функции находятся в разработке.`
|
|
15
32
|
}
|
|
16
33
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const t =
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
|
|
34
|
+
setup(r) {
|
|
35
|
+
const t = r;
|
|
36
|
+
return (n, a) => (e(), l("div", b, [
|
|
37
|
+
i("div", f, [
|
|
38
|
+
t.titleEnabled ? (e(), l("h2", h, c(t.title), 1)) : o("", !0),
|
|
39
|
+
t.logoEnabled ? (e(), s(_, {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: "chat-list__title-logo"
|
|
42
|
+
})) : o("", !0),
|
|
43
|
+
t.betaEnabled ? (e(), s(u, {
|
|
44
|
+
key: 2,
|
|
45
|
+
text: t.betaTooltipText,
|
|
46
|
+
position: "bottom"
|
|
47
|
+
}, {
|
|
48
|
+
default: p(() => [...a[0] || (a[0] = [
|
|
49
|
+
i("div", { class: "chat-list__title-beta-badge" }, " beta ", -1)
|
|
50
|
+
])]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, ["text"])) : o("", !0)
|
|
53
|
+
]),
|
|
54
|
+
d(n.$slots, "actions", {}, void 0, !0)
|
|
22
55
|
]));
|
|
23
56
|
}
|
|
24
|
-
};
|
|
57
|
+
}, T = /* @__PURE__ */ m(y, [["__scopeId", "data-v-892a8a18"]]);
|
|
25
58
|
export {
|
|
26
|
-
|
|
59
|
+
T as default
|
|
27
60
|
};
|