@mobilon-dev/chotto 0.3.40 → 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.
Files changed (112) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +392 -392
  3. package/dist/chotto.css +1 -1
  4. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +1 -1
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +2 -2
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +1 -1
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -4
  8. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +3 -3
  9. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +8 -8
  10. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +2 -2
  11. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +60 -52
  12. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +14 -14
  13. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +1 -1
  14. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +1 -1
  15. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -4
  16. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +1 -1
  17. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +2 -2
  18. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +2 -2
  19. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +1 -1
  20. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +2 -2
  21. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +1 -1
  22. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +11 -11
  23. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +2 -2
  24. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +1 -1
  25. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +2 -2
  26. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +5 -5
  27. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +2 -2
  28. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +2 -2
  29. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +2 -2
  30. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +1 -1
  31. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +1 -1
  32. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
  33. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +3 -3
  34. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +2 -2
  35. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +1 -1
  36. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +9 -9
  37. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +1 -1
  38. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +1 -1
  39. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +2 -2
  40. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +4 -4
  41. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +1 -1
  42. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +2 -2
  43. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +3 -3
  44. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +2 -2
  45. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +1 -1
  46. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +1 -1
  47. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +2 -2
  48. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +1 -1
  49. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +3 -3
  50. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +1 -1
  51. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +2 -2
  52. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +2 -2
  53. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +7 -0
  54. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +109 -0
  55. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -0
  56. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +1 -1
  57. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +2 -2
  58. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -4
  59. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +2 -2
  60. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +2 -2
  61. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -4
  62. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +1 -1
  63. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +2 -2
  64. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +1 -1
  65. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +1 -1
  66. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
  67. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +2 -2
  68. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +2 -2
  69. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +6 -6
  70. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +1 -1
  71. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +10 -10
  72. package/dist/components/2_modals/Modal/Modal.vue.js +1 -1
  73. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +1 -1
  74. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +1 -1
  75. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +1 -1
  76. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +1 -1
  77. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +11 -11
  78. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +1 -1
  79. package/dist/components/3_compounds/ChatList/ChatList.vue.js +5 -5
  80. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +43 -10
  81. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +19 -0
  82. package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
  83. package/dist/components/3_compounds/Feed/Feed.vue2.js +82 -81
  84. package/dist/components/3_compounds/Feed/assets/chat-background.svg.js +3 -3
  85. package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +10 -8
  86. package/dist/components/3_compounds/SideBar/SideBar.vue.js +1 -1
  87. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +2 -2
  88. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +1 -1
  89. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +2 -2
  90. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +1 -1
  91. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +5 -5
  92. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +3 -3
  93. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +1 -1
  94. package/dist/index.js +147 -145
  95. package/dist/themes/dark.css +1 -1
  96. package/dist/themes/default.css +1 -1
  97. package/dist/themes/glass.css +1 -1
  98. package/dist/themes/green.css +1 -1
  99. package/dist/themes/mobilon1.css +1 -1
  100. package/dist/types/apps/data/messages.d.ts +31 -0
  101. package/dist/types/components/1_atoms/Tooltip/Tooltip.vue.d.ts +9 -0
  102. package/dist/types/components/1_atoms/Tooltip/styles/types.d.ts +2 -0
  103. package/dist/types/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.d.ts +40 -0
  104. package/dist/types/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.d.ts +2 -0
  105. package/dist/types/components/2_feed_elements/MissedCallMessage/stories/MissedCallMessage.stories.d.ts +12 -0
  106. package/dist/types/components/2_feed_elements/types/messages.d.ts +10 -0
  107. package/dist/types/components/3_compounds/ChatList/ChatListHeader.vue.d.ts +6 -0
  108. package/dist/types/components/3_compounds/ChatList/icons/LogoIcon.vue.d.ts +2 -0
  109. package/dist/types/components/3_compounds/ChatList/styles/types.d.ts +44 -0
  110. package/dist/types/components/index.d.ts +1 -0
  111. package/dist/types/main.d.ts +3 -0
  112. package/package.json +72 -72
@@ -1,7 +1,7 @@
1
- import { ref as c, createElementBlock as m, openBlock as p, createElementVNode as n, withDirectives as s, toDisplayString as u, vModelText as d } from "vue";
1
+ import { ref as m, createElementBlock as p, openBlock as s, createElementVNode as n, withDirectives as c, toDisplayString as u, vModelText as d } from "vue";
2
2
  import "./CreateChat.vue2.js";
3
3
  import _ from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const v = {
4
+ const f = {
5
5
  __name: "CreateChat",
6
6
  props: {
7
7
  title: {
@@ -11,12 +11,12 @@ const v = {
11
11
  },
12
12
  emits: ["change"],
13
13
  setup(a, { emit: o }) {
14
- const e = c(""), r = o, l = () => {
14
+ const e = m(""), r = o, l = () => {
15
15
  r("change", { name: e.value });
16
16
  };
17
- return (f, t) => (p(), m("div", null, [
17
+ return (v, t) => (s(), p("div", null, [
18
18
  n("h2", null, u(a.title), 1),
19
- s(n("input", {
19
+ c(n("input", {
20
20
  "onUpdate:modelValue": t[0] || (t[0] = (i) => e.value = i),
21
21
  type: "text",
22
22
  class: "name",
@@ -26,7 +26,7 @@ const v = {
26
26
  ])
27
27
  ]));
28
28
  }
29
- }, C = /* @__PURE__ */ _(v, [["__scopeId", "data-v-c64de508"]]);
29
+ }, C = /* @__PURE__ */ _(f, [["__scopeId", "data-v-65f726e8"]]);
30
30
  export {
31
31
  C as default
32
32
  };
@@ -124,7 +124,7 @@ const N = { class: "create-chat-form" }, S = { class: "create-chat-title" }, T =
124
124
  ])
125
125
  ]));
126
126
  }
127
- }, G = /* @__PURE__ */ z(M, [["__scopeId", "data-v-f21ec93d"]]);
127
+ }, G = /* @__PURE__ */ z(M, [["__scopeId", "data-v-3302f415"]]);
128
128
  export {
129
129
  G as default
130
130
  };
@@ -1,4 +1,4 @@
1
- import { ref as v, computed as d, createElementBlock as r, openBlock as i, createElementVNode as t, toDisplayString as u, withDirectives as m, Fragment as f, renderList as p, vModelSelect as _ } from "vue";
1
+ import { ref as v, computed as d, createElementBlock as a, openBlock as i, createElementVNode as t, toDisplayString as u, withDirectives as m, Fragment as f, renderList as p, vModelSelect as _ } from "vue";
2
2
  /* empty css */
3
3
  import D from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__channel-line" }, w = ["disabled"], x = ["value"], V = ["disabled"], A = {
@@ -28,24 +28,24 @@ const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__
28
28
  },
29
29
  emits: ["change", "submit"],
30
30
  setup(o, { emit: g }) {
31
- const n = o, s = v(), a = v(), y = d(() => !!(s.value && a.value)), h = d(() => !!(n.filter && a.value || !n.filter)), b = d(() => n.filter && a.value ? n.filter(a.value, n.channels) : n.channels), c = g, C = () => {
32
- c("change", { channel: s.value, contact: a.value }), c("submit");
31
+ const r = o, s = v(), n = v(), y = d(() => !!(s.value && n.value)), b = d(() => !!(r.filter && n.value || !r.filter)), h = d(() => r.filter && n.value ? r.filter(n.value, r.channels) : r.channels), c = g, C = () => {
32
+ c("change", { channel: s.value, contact: n.value }), c("submit");
33
33
  };
34
- return (B, l) => (i(), r("div", null, [
34
+ return (B, l) => (i(), a("div", null, [
35
35
  t("h3", null, u(o.title), 1),
36
36
  t("div", null, " Контакт: " + u(o.name), 1),
37
37
  t("div", S, [
38
38
  l[2] || (l[2] = t("h3", { style: { margin: "0" } }, " Куда пишем ", -1)),
39
39
  m(t("select", {
40
40
  id: "folder",
41
- "onUpdate:modelValue": l[0] || (l[0] = (e) => a.value = e)
41
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => n.value = e)
42
42
  }, [
43
- (i(!0), r(f, null, p(o.contacts, (e) => (i(), r("option", {
43
+ (i(!0), a(f, null, p(o.contacts, (e) => (i(), a("option", {
44
44
  key: e.id || e.value,
45
45
  value: e
46
46
  }, u(e.value), 9, k))), 128))
47
47
  ], 512), [
48
- [_, a.value]
48
+ [_, n.value]
49
49
  ])
50
50
  ]),
51
51
  t("div", q, [
@@ -53,9 +53,9 @@ const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__
53
53
  m(t("select", {
54
54
  id: "folder",
55
55
  "onUpdate:modelValue": l[1] || (l[1] = (e) => s.value = e),
56
- disabled: !h.value
56
+ disabled: !b.value
57
57
  }, [
58
- (i(!0), r(f, null, p(b.value, (e) => (i(), r("option", {
58
+ (i(!0), a(f, null, p(h.value, (e) => (i(), a("option", {
59
59
  key: e.id || e.title,
60
60
  value: e
61
61
  }, u(e.title), 9, x))), 128))
@@ -72,7 +72,7 @@ const S = { class: "modal__contact-line" }, k = ["value"], q = { class: "modal__
72
72
  }, " Начать диалог ", 8, V)
73
73
  ]));
74
74
  }
75
- }, I = /* @__PURE__ */ D(A, [["__scopeId", "data-v-4d7a6e0c"]]);
75
+ }, I = /* @__PURE__ */ D(A, [["__scopeId", "data-v-c9b375bd"]]);
76
76
  export {
77
77
  I as default
78
78
  };
@@ -63,7 +63,7 @@ const h = ["data-theme"], k = {
63
63
  _: 3
64
64
  }));
65
65
  }
66
- }, B = /* @__PURE__ */ _(C, [["__scopeId", "data-v-cd0dbe52"]]);
66
+ }, B = /* @__PURE__ */ _(C, [["__scopeId", "data-v-6f045439"]]);
67
67
  export {
68
68
  B as default
69
69
  };
@@ -40,7 +40,7 @@ const v = ["data-theme"], y = { class: "modal__container" }, k = {
40
40
  ])
41
41
  ], 40, v));
42
42
  }
43
- }, g = /* @__PURE__ */ f(k, [["__scopeId", "data-v-01c3f36d"]]);
43
+ }, g = /* @__PURE__ */ f(k, [["__scopeId", "data-v-cfd44dde"]]);
44
44
  export {
45
45
  g as default
46
46
  };
@@ -37,7 +37,7 @@ const f = ["data-theme"], u = {
37
37
  _: 3
38
38
  }));
39
39
  }
40
- }, w = /* @__PURE__ */ _(h, [["__scopeId", "data-v-0e4b263e"]]);
40
+ }, w = /* @__PURE__ */ _(h, [["__scopeId", "data-v-01dc3148"]]);
41
41
  export {
42
42
  w as default
43
43
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ModalVideoRecorder.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-84427831"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-47304124"]]);
5
5
  export {
6
6
  d as default
7
7
  };
@@ -57,7 +57,7 @@ const I = {
57
57
  ])) : h("", !0)
58
58
  ]));
59
59
  }
60
- }, E = /* @__PURE__ */ x(g, [["__scopeId", "data-v-e329f431"]]);
60
+ }, E = /* @__PURE__ */ x(g, [["__scopeId", "data-v-9121a142"]]);
61
61
  export {
62
62
  E as default
63
63
  };
@@ -1,7 +1,7 @@
1
- import { ref as p, createElementBlock as n, openBlock as s, createElementVNode as t, toDisplayString as i, Fragment as m, renderList as _, withDirectives as h, vModelCheckbox as v } from "vue";
1
+ import { ref as p, createElementBlock as n, openBlock as s, createElementVNode as t, toDisplayString as c, Fragment as m, renderList as _, withDirectives as h, vModelCheckbox as v } from "vue";
2
2
  /* empty css */
3
3
  import f from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], x = {
4
+ const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], b = {
5
5
  __name: "SelectUser2",
6
6
  props: {
7
7
  users: {
@@ -14,12 +14,12 @@ const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], x = {
14
14
  }
15
15
  },
16
16
  emits: ["change"],
17
- setup(o, { emit: a }) {
18
- const r = p([]), c = a, d = () => {
19
- console.log("check"), c("change", { selectedUsers: r.value });
17
+ setup(o, { emit: i }) {
18
+ const r = p([]), a = i, u = () => {
19
+ console.log("check"), a("change", { selectedUsers: r.value });
20
20
  };
21
- return (I, l) => (s(), n("div", null, [
22
- t("h2", null, i(o.title), 1),
21
+ return (x, l) => (s(), n("div", null, [
22
+ t("h2", null, c(o.title), 1),
23
23
  t("div", g, [
24
24
  (s(!0), n(m, null, _(o.users, (e) => (s(), n("div", {
25
25
  key: e.userId,
@@ -27,21 +27,21 @@ const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], x = {
27
27
  }, [
28
28
  h(t("input", {
29
29
  id: e.userId,
30
- "onUpdate:modelValue": l[0] || (l[0] = (u) => r.value = u),
30
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => r.value = d),
31
31
  type: "checkbox",
32
32
  value: e.userId,
33
- onChange: d
33
+ onChange: u
34
34
  }, null, 40, k), [
35
35
  [v, r.value]
36
36
  ]),
37
37
  t("label", {
38
38
  for: e.userId
39
- }, i(e.name || "unknown username"), 9, y)
39
+ }, c(e.name || "unknown username"), 9, y)
40
40
  ]))), 128))
41
41
  ])
42
42
  ]));
43
43
  }
44
- }, C = /* @__PURE__ */ f(x, [["__scopeId", "data-v-9ad0e390"]]);
44
+ }, C = /* @__PURE__ */ f(b, [["__scopeId", "data-v-368cbcb0"]]);
45
45
  export {
46
46
  C as default
47
47
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./ChatInput.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9df28fd5"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-efefc137"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -90,8 +90,8 @@ const R = { class: "chat-list" }, z = {
90
90
  isShowButton: B,
91
91
  scrollToTopForce: C,
92
92
  scrollCheck: _,
93
- startScrollWatch: T,
94
- stopScrollWatch: b
93
+ startScrollWatch: b,
94
+ stopScrollWatch: T
95
95
  } = P({ refChatList: S, chats: k, emit: d }), {
96
96
  selectChat: g
97
97
  } = U({ chats: k, emit: d }), {
@@ -150,8 +150,8 @@ const R = { class: "chat-list" }, z = {
150
150
  ref: S,
151
151
  class: "chat-list__items",
152
152
  onScroll: o[1] || (o[1] = (...t) => e(_) && e(_)(...t)),
153
- onMousedown: o[2] || (o[2] = (...t) => e(T) && e(T)(...t)),
154
- onMouseup: o[3] || (o[3] = (...t) => e(b) && e(b)(...t))
153
+ onMousedown: o[2] || (o[2] = (...t) => e(b) && e(b)(...t)),
154
+ onMouseup: o[3] || (o[3] = (...t) => e(T) && e(T)(...t))
155
155
  }, [
156
156
  w(q, {
157
157
  class: "chat-list__loading-indicator",
@@ -199,7 +199,7 @@ const R = { class: "chat-list" }, z = {
199
199
  })
200
200
  ]));
201
201
  }
202
- }, gt = /* @__PURE__ */ O(et, [["__scopeId", "data-v-341042df"]]);
202
+ }, gt = /* @__PURE__ */ O(et, [["__scopeId", "data-v-60e0e8be"]]);
203
203
  export {
204
204
  gt as default
205
205
  };
@@ -1,8 +1,12 @@
1
- import { createElementBlock as e, openBlock as o, createCommentVNode as a, renderSlot as n, toDisplayString as i } from "vue";
2
- const r = { class: "chat-list__title-container" }, c = {
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
- }, p = {
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(l) {
18
- const t = l;
19
- return (s, _) => (o(), e("div", r, [
20
- t.titleEnabled ? (o(), e("h2", c, i(t.title), 1)) : a("", !0),
21
- n(s.$slots, "actions")
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
- p as default
59
+ T as default
27
60
  };