@mobilon-dev/chotto 0.3.89 → 0.3.91

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 (57) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +2 -2
  3. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +41 -33
  4. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +3 -3
  5. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +87 -103
  6. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +1 -1
  7. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +171 -152
  8. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +2 -2
  9. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +52 -79
  10. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +2 -2
  11. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +35 -64
  12. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +2 -2
  13. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +4 -0
  14. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +3 -3
  15. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +4 -0
  16. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +3 -3
  17. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +33 -29
  18. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +2 -2
  19. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +62 -58
  20. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +1 -1
  21. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +27 -23
  22. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +2 -2
  23. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +49 -41
  24. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +1 -1
  25. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +105 -101
  26. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +2 -2
  27. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +223 -149
  28. package/dist/components/3_compounds/ChatList/composables/useChatListFilter.js +18 -13
  29. package/dist/functions/renderAppleEmojis.js +127 -70
  30. package/dist/hooks/uploadFile/generatePreview.js +23 -11
  31. package/dist/hooks/useMessageDraft.js +61 -32
  32. package/dist/index.js +113 -112
  33. package/dist/themes/dark.css +1 -1
  34. package/dist/themes/default.css +1 -1
  35. package/dist/themes/glass.css +1 -1
  36. package/dist/themes/green.css +1 -1
  37. package/dist/themes/mobilon1.css +1 -1
  38. package/dist/types/apps/data/messages.d.ts +52 -0
  39. package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +2 -2
  40. package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +2 -2
  41. package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +15 -0
  42. package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +34 -0
  43. package/dist/types/components/2_feed_elements/CallMessage/styles/types.d.ts +26 -0
  44. package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +30 -0
  45. package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +34 -0
  46. package/dist/types/components/2_feed_elements/StickerMessage/styles/types.d.ts +4 -0
  47. package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +38 -2
  48. package/dist/types/components/2_feed_elements/TypingMessage/styles/types.d.ts +2 -0
  49. package/dist/types/components/2_feed_elements/VideoMessage/styles/types.d.ts +34 -0
  50. package/dist/types/components/3_compounds/ChatInput/ChatInput.vue.d.ts +3 -3
  51. package/dist/types/components/3_compounds/ChatInput/styles/types.d.ts +2 -0
  52. package/dist/types/components/3_compounds/Feed/composables/useFeedReply.d.ts +1 -27
  53. package/dist/types/functions/renderAppleEmojis.d.ts +17 -2
  54. package/dist/types/hooks/uploadFile/generatePreview.d.ts +2 -0
  55. package/dist/types/hooks/uploadFile/uploadFile.d.ts +9 -17
  56. package/dist/types/hooks/useMessageDraft.d.ts +27 -29
  57. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import o from "./ButtonEmojiPicker.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e67f8c2a"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4bf1f08f"]]);
5
5
  export {
6
- c as default
6
+ i as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, ref as r, inject as W, watch as z, computed as R, watchEffect as U, onMounted as $, onUnmounted as q, createElementBlock as j, openBlock as C, Fragment as G, createCommentVNode as J, createVNode as g, unref as b, normalizeClass as K, createElementVNode as B, Transition as Q, withCtx as X, withDirectives as Y, vShow as Z } from "vue";
1
+ import { defineComponent as D, ref as r, inject as R, watch as W, computed as z, watchEffect as U, onMounted as $, onUnmounted as q, createElementBlock as j, openBlock as C, Fragment as G, createCommentVNode as J, createVNode as g, unref as y, normalizeClass as K, createElementVNode as B, Transition as Q, withCtx as X, withDirectives as Y, vShow as Z } from "vue";
2
2
  import ee from "../../../node_modules/vue3-emoji-picker-ru/dist/emoji-picker.es.js";
3
3
  /* empty css */
4
4
  import { useMessageDraft as te } from "../../../hooks/useMessageDraft.js";
@@ -13,7 +13,7 @@ import "../../../node_modules/linkifyjs/dist/linkify.js";
13
13
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
14
14
  import "../../../functions/parseMarkdown.js";
15
15
  import ne from "./icons/SmilesIcon.vue.js";
16
- const be = /* @__PURE__ */ D({
16
+ const ye = /* @__PURE__ */ D({
17
17
  __name: "ButtonEmojiPicker",
18
18
  props: {
19
19
  state: {
@@ -33,11 +33,18 @@ const be = /* @__PURE__ */ D({
33
33
  native: {
34
34
  type: Boolean,
35
35
  default: !0
36
+ },
37
+ /**
38
+ * Показывать группу недавно использованных эмодзи.
39
+ */
40
+ displayRecent: {
41
+ type: Boolean,
42
+ default: !0
36
43
  }
37
44
  },
38
45
  setup(l) {
39
- const t = l, v = r(null), f = r(null), o = r(!1), E = r("light"), i = W("chatAppId"), { setMessageText: P, getMessage: M } = te(i), { setNative: w } = oe(i);
40
- z(
46
+ const t = l, v = r(null), f = r(null), n = r(!1), b = r("light"), i = R("chatAppId"), { setMessageText: P, getMessage: E } = te(i), { setNative: w } = oe(i);
47
+ W(
41
48
  () => t.native,
42
49
  (e) => w(e),
43
50
  { immediate: !0 }
@@ -54,49 +61,49 @@ const be = /* @__PURE__ */ D({
54
61
  c.value = "#5F5F5F", s.value = "#404040";
55
62
  return;
56
63
  }
57
- const n = window.getComputedStyle(e), d = n.getPropertyValue("--chotto-buttonemojipicker-button-span-color").trim(), A = n.getPropertyValue("--chotto-buttonemojipicker-button-span-hover-color").trim();
64
+ const o = window.getComputedStyle(e), d = o.getPropertyValue("--chotto-buttonemojipicker-button-span-color").trim(), A = o.getPropertyValue("--chotto-buttonemojipicker-button-span-hover-color").trim();
58
65
  c.value = d || "#5F5F5F", s.value = A || "#404040";
59
- }, I = R(() => p.value ? s.value : c.value);
66
+ }, I = z(() => p.value ? s.value : c.value);
60
67
  U(() => {
61
68
  h();
62
69
  });
63
70
  let u = !1, m = !1;
64
71
  const N = () => {
65
- var n;
72
+ var o;
66
73
  const e = document.getElementById(i);
67
- return (n = e == null ? void 0 : e.getAttribute("data-theme")) != null && n.includes("dark") ? "dark" : "light";
74
+ return (o = e == null ? void 0 : e.getAttribute("data-theme")) != null && o.includes("dark") ? "dark" : "light";
68
75
  }, S = (e) => {
69
- P(M().text + e.i), t.mode === "click" && (o.value = !1);
70
- }, y = () => {
71
- t.state === "active" && (E.value = N(), o.value = !0);
76
+ P(E().text + e.i);
77
+ }, M = () => {
78
+ t.state === "active" && (b.value = N(), n.value = !0);
72
79
  }, k = () => {
73
- o.value = !1;
74
- }, _ = () => {
75
- t.mode === "click" && (o.value = !o.value, o.value && y());
80
+ n.value = !1;
76
81
  }, T = () => {
77
- t.mode === "hover" && (u = !0, y());
82
+ t.mode === "click" && (n.value = !n.value, n.value && M());
78
83
  }, V = () => {
84
+ t.mode === "hover" && (u = !0, M());
85
+ }, x = () => {
79
86
  t.mode === "hover" && (u = !1, setTimeout(() => {
80
87
  !m && !u && k();
81
88
  }, 150));
82
- }, x = () => {
83
- p.value = !0, T();
84
89
  }, L = () => {
85
- p.value = !1, V();
90
+ p.value = !0, V();
86
91
  }, O = () => {
92
+ p.value = !1, x();
93
+ }, _ = () => {
87
94
  t.mode === "hover" && (m = !0);
88
95
  }, H = () => {
89
96
  t.mode === "hover" && (m = !1, setTimeout(() => {
90
97
  !u && !m && k();
91
98
  }, 150));
92
99
  }, F = (e) => {
93
- t.mode === "click" && o.value && f.value && v.value && e.target instanceof Node && !f.value.contains(e.target) && !v.value.contains(e.target) && k();
100
+ t.mode === "click" && n.value && f.value && v.value && e.target instanceof Node && !f.value.contains(e.target) && !v.value.contains(e.target) && k();
94
101
  };
95
102
  return $(() => {
96
103
  if (document.addEventListener("click", F), h(), i) {
97
104
  const e = document.getElementById(i);
98
- e && (a = new MutationObserver((n) => {
99
- n.forEach((d) => {
105
+ e && (a = new MutationObserver((o) => {
106
+ o.forEach((d) => {
100
107
  d.type === "attributes" && d.attributeName === "data-theme" && h();
101
108
  });
102
109
  }), a.observe(e, {
@@ -106,18 +113,18 @@ const be = /* @__PURE__ */ D({
106
113
  }
107
114
  }), q(() => {
108
115
  document.removeEventListener("click", F), a && (a.disconnect(), a = null);
109
- }), (e, n) => (C(), j(G, null, [
110
- b(M)().isRecording ? J("", !0) : (C(), j("button", {
116
+ }), (e, o) => (C(), j(G, null, [
117
+ y(E)().isRecording ? J("", !0) : (C(), j("button", {
111
118
  key: 0,
112
119
  ref_key: "emojiButton",
113
120
  ref: f,
114
121
  class: K(["button", { "button-disabled": l.state === "disabled" }]),
115
- onClick: _,
116
- onMouseenter: x,
117
- onMouseleave: L
122
+ onClick: T,
123
+ onMouseenter: L,
124
+ onMouseleave: O
118
125
  }, [
119
126
  B("span", null, [
120
- g(b(ne), { fill: I.value }, null, 8, ["fill"])
127
+ g(y(ne), { fill: I.value }, null, 8, ["fill"])
121
128
  ])
122
129
  ], 34)),
123
130
  g(Q, null, {
@@ -126,17 +133,18 @@ const be = /* @__PURE__ */ D({
126
133
  ref_key: "emoji",
127
134
  ref: v,
128
135
  class: "emoji",
129
- onMouseenter: O,
136
+ onMouseenter: _,
130
137
  onMouseleave: H
131
138
  }, [
132
- g(b(ee), {
139
+ g(y(ee), {
133
140
  native: l.native,
134
- theme: E.value,
141
+ theme: b.value,
142
+ "display-recent": l.displayRecent,
135
143
  "picker-type": "",
136
144
  onSelect: S
137
- }, null, 8, ["native", "theme"])
145
+ }, null, 8, ["native", "theme", "display-recent"])
138
146
  ], 544), [
139
- [Z, o.value]
147
+ [Z, n.value]
140
148
  ])
141
149
  ]),
142
150
  _: 1
@@ -145,5 +153,5 @@ const be = /* @__PURE__ */ D({
145
153
  }
146
154
  });
147
155
  export {
148
- be as default
156
+ ye as default
149
157
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./FileUploader.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ a(o, [["__scopeId", "data-v-7014afaa"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f82b23fd"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as O, ref as n, inject as P, computed as B, watchEffect as $, onMounted as H, onUnmounted as L, createElementBlock as _, openBlock as u, Fragment as R, createCommentVNode as b, createElementVNode as p, createBlock as V, normalizeClass as j, createVNode as T, unref as h, Teleport as q } from "vue";
2
- import G from "../FilePreview/FilePreview.vue.js";
3
- import { uploadFile as J } from "../../../hooks/uploadFile/uploadFile.js";
4
- import { useMessageDraft as K } from "../../../hooks/useMessageDraft.js";
1
+ import { defineComponent as D, ref as r, inject as x, computed as M, watchEffect as z, watch as A, onMounted as O, onUnmounted as P, createElementBlock as y, openBlock as b, Fragment as $, createCommentVNode as H, createElementVNode as a, normalizeClass as L, createVNode as j, unref as R } from "vue";
2
+ import { buildFilePreview as q } from "../../../hooks/uploadFile/generatePreview.js";
3
+ import { uploadFile as G } from "../../../hooks/uploadFile/uploadFile.js";
4
+ import { useMessageDraft as J } from "../../../hooks/useMessageDraft.js";
5
5
  import "../../../hooks/useSearchModel.js";
6
6
  import "../../../hooks/useTheme.js";
7
7
  import "../../../hooks/useEmojiNative.js";
@@ -12,14 +12,14 @@ import "../../../locale/useLocale.js";
12
12
  import "../../../node_modules/linkifyjs/dist/linkify.js";
13
13
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
14
14
  import "../../../functions/parseMarkdown.js";
15
- import Q from "./icons/FileUploaderIcon.vue.js";
16
- const W = {
15
+ import K from "./icons/FileUploaderIcon.vue.js";
16
+ const Q = {
17
17
  key: 0,
18
18
  class: "file-uploader__status file-uploader__status--uploading"
19
- }, X = {
19
+ }, T = {
20
20
  key: 1,
21
21
  class: "file-uploader__status file-uploader__status--error"
22
- }, Y = ["disabled"], ve = /* @__PURE__ */ O({
22
+ }, W = ["disabled"], de = /* @__PURE__ */ D({
23
23
  __name: "FileUploader",
24
24
  props: {
25
25
  filebumpUrl: {
@@ -32,124 +32,108 @@ const W = {
32
32
  }
33
33
  },
34
34
  emits: ["fileUploaded"],
35
- setup(m, { emit: Z }) {
36
- const v = m, s = n(""), r = n(), f = n(), C = n();
37
- C.value;
38
- const i = P("chatAppId"), { setMessageFile: N, resetMessageFile: z, getMessage: I, setRecordingMessage: E } = K(i), c = n("#5F5F5F"), d = n("#404040"), g = n(!1);
39
- let a = null;
40
- const y = () => {
41
- if (!i) {
42
- c.value = "#5F5F5F", d.value = "#404040";
35
+ setup(d, { emit: X }) {
36
+ const m = d, o = r(""), i = r(), _ = r();
37
+ _.value;
38
+ const n = x("chatAppId"), { setMessageFile: U, resetMessageFile: k, getMessage: w, setRecordingMessage: C } = J(n), u = r("#5F5F5F"), p = r("#404040"), v = r(!1);
39
+ let s = null;
40
+ const g = () => {
41
+ if (!n) {
42
+ u.value = "#5F5F5F", p.value = "#404040";
43
43
  return;
44
44
  }
45
- const l = document.getElementById(i);
45
+ const l = document.getElementById(n);
46
46
  if (!l) {
47
- c.value = "#5F5F5F", d.value = "#404040";
47
+ u.value = "#5F5F5F", p.value = "#404040";
48
48
  return;
49
49
  }
50
- const t = window.getComputedStyle(l), e = t.getPropertyValue("--chotto-fileuploader-trigger-color").trim(), o = t.getPropertyValue("--chotto-fileuploader-trigger-hover-color").trim();
51
- c.value = e || "#5F5F5F", d.value = o || "#404040";
52
- }, A = B(() => g.value ? d.value : c.value);
53
- $(() => {
54
- y();
50
+ const e = window.getComputedStyle(l), t = e.getPropertyValue("--chotto-fileuploader-trigger-color").trim(), f = e.getPropertyValue("--chotto-fileuploader-trigger-hover-color").trim();
51
+ u.value = t || "#5F5F5F", p.value = f || "#404040";
52
+ }, S = M(() => v.value ? p.value : u.value);
53
+ z(() => {
54
+ g();
55
55
  });
56
- const F = B(() => !I().file), w = () => {
57
- r.value && (r.value.value = "");
58
- }, k = () => {
59
- const l = document.getElementById("chat-input-file-line-" + i);
60
- l && (l.style.display = "none"), z(), f.value = void 0, s.value = "", w();
61
- }, D = async () => {
62
- var t, e;
63
- const l = (e = (t = r.value) == null ? void 0 : t.files) == null ? void 0 : e[0];
64
- k(), l && await M(l), w();
65
- }, x = () => {
66
- r.value && F.value && v.state == "active" && (w(), r.value.click());
67
- }, U = async (l) => {
68
- var e;
69
- const t = (e = l.clipboardData) == null ? void 0 : e.items;
70
- if (t) {
71
- for (let o of t)
72
- if (o.type.indexOf("image") !== -1) {
56
+ const F = M(() => !w().file), c = () => {
57
+ i.value && (i.value.value = "");
58
+ }, N = () => {
59
+ k(), o.value = "", c();
60
+ }, V = async () => {
61
+ var e, t;
62
+ const l = (t = (e = i.value) == null ? void 0 : e.files) == null ? void 0 : t[0];
63
+ N(), l && await E(l), c();
64
+ }, B = () => {
65
+ i.value && F.value && m.state == "active" && (c(), i.value.click());
66
+ }, h = async (l) => {
67
+ var t;
68
+ const e = (t = l.clipboardData) == null ? void 0 : t.items;
69
+ if (e) {
70
+ for (let f of e)
71
+ if (f.type.indexOf("image") !== -1) {
73
72
  l.preventDefault();
74
- const S = o.getAsFile();
75
- S && M(S);
73
+ const I = f.getAsFile();
74
+ I && E(I);
76
75
  }
77
76
  }
78
- }, M = async (l) => {
79
- s.value = "uploading", E(!0);
80
- const t = typeof v.filebumpUrl == "string" ? v.filebumpUrl : null;
81
- await J(t, l).then((e) => {
82
- if (E(!1), s.value = e.status, e.status == "success") {
83
- N({
84
- url: e.url,
85
- name: e.name,
86
- size: e.size,
87
- type: e.type
88
- });
89
- const o = document.getElementById("chat-input-file-line-" + i);
90
- o && (o.style.display = "inherit"), e.preview && (f.value = {
91
- previewUrl: e.preview.previewUrl,
92
- isImage: e.preview.isImage,
93
- isVideo: e.preview.isVideo,
94
- isAudio: e.preview.isAudio,
95
- fileName: e.name,
96
- fileSize: e.preview.fileSize
97
- });
98
- }
77
+ }, E = async (l) => {
78
+ o.value = "uploading", C(!0);
79
+ const e = typeof m.filebumpUrl == "string" ? m.filebumpUrl : null;
80
+ await G(e, l).then((t) => {
81
+ C(!1), o.value = t.status, t.status == "success" && U({
82
+ url: t.url,
83
+ name: t.name,
84
+ size: t.size,
85
+ type: t.type,
86
+ preview: q(t.name, t.preview)
87
+ });
99
88
  });
100
89
  };
101
- return H(() => {
102
- if (window.addEventListener("paste", U), y(), i) {
103
- const l = document.getElementById(i);
104
- l && (a = new MutationObserver((t) => {
105
- t.forEach((e) => {
106
- e.type === "attributes" && e.attributeName === "data-theme" && y();
90
+ return A(
91
+ () => w().file,
92
+ (l) => {
93
+ l || (o.value = "", c());
94
+ }
95
+ ), O(() => {
96
+ if (window.addEventListener("paste", h), g(), n) {
97
+ const l = document.getElementById(n);
98
+ l && (s = new MutationObserver((e) => {
99
+ e.forEach((t) => {
100
+ t.type === "attributes" && t.attributeName === "data-theme" && g();
107
101
  });
108
- }), a.observe(l, {
102
+ }), s.observe(l, {
109
103
  attributes: !0,
110
104
  attributeFilter: ["data-theme"]
111
105
  }));
112
106
  }
113
- }), L(() => {
114
- window.removeEventListener("paste", U), a && (a.disconnect(), a = null);
115
- }), (l, t) => (u(), _(R, null, [
116
- s.value === "uploading" ? (u(), _("div", W, [...t[2] || (t[2] = [
117
- p("span", null, "Загрузка", -1),
118
- p("span", null, "файла...", -1)
119
- ])])) : s.value === "error" ? (u(), _("div", X, [...t[3] || (t[3] = [
120
- p("span", null, "Ошибка при загрузке файла.", -1)
121
- ])])) : b("", !0),
122
- p("span", {
107
+ }), P(() => {
108
+ window.removeEventListener("paste", h), s && (s.disconnect(), s = null);
109
+ }), (l, e) => (b(), y($, null, [
110
+ o.value === "uploading" ? (b(), y("div", Q, [...e[2] || (e[2] = [
111
+ a("span", null, "Загрузка", -1),
112
+ a("span", null, "файла...", -1)
113
+ ])])) : o.value === "error" ? (b(), y("div", T, [...e[3] || (e[3] = [
114
+ a("span", null, "Ошибка при загрузке файла.", -1)
115
+ ])])) : H("", !0),
116
+ a("span", {
123
117
  ref_key: "triggerElement",
124
- ref: C,
125
- class: j(["file-uploader__trigger", { "file-uploader__disabled": !F.value || m.state == "disabled" }]),
126
- disabled: !F.value || m.state == "disabled",
127
- onClick: x,
128
- onMouseenter: t[0] || (t[0] = (e) => g.value = !0),
129
- onMouseleave: t[1] || (t[1] = (e) => g.value = !1)
118
+ ref: _,
119
+ class: L(["file-uploader__trigger", { "file-uploader__disabled": !F.value || d.state == "disabled" }]),
120
+ disabled: !F.value || d.state == "disabled",
121
+ onClick: B,
122
+ onMouseenter: e[0] || (e[0] = (t) => v.value = !0),
123
+ onMouseleave: e[1] || (e[1] = (t) => v.value = !1)
130
124
  }, [
131
- T(h(Q), { fill: A.value }, null, 8, ["fill"])
132
- ], 42, Y),
133
- p("input", {
125
+ j(R(K), { fill: S.value }, null, 8, ["fill"])
126
+ ], 42, W),
127
+ a("input", {
134
128
  ref_key: "fileInput",
135
- ref: r,
129
+ ref: i,
136
130
  style: { display: "none" },
137
131
  type: "file",
138
- onChange: D
139
- }, null, 544),
140
- h(I)().file ? (u(), V(q, {
141
- key: 2,
142
- to: "#chat-input-file-line-" + h(i)
143
- }, [
144
- f.value ? (u(), V(G, {
145
- key: 0,
146
- "file-info": f.value,
147
- onReset: k
148
- }, null, 8, ["file-info"])) : b("", !0)
149
- ], 8, ["to"])) : b("", !0)
132
+ onChange: V
133
+ }, null, 544)
150
134
  ], 64));
151
135
  }
152
136
  });
153
137
  export {
154
- ve as default
138
+ de as default
155
139
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./ChatItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-36147cda"]]);
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b432c634"]]);
5
5
  export {
6
6
  p as default
7
7
  };