@mobilon-dev/chotto 0.3.42 → 0.3.44

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 (65) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +2 -2
  3. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +119 -109
  4. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +3 -3
  5. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +99 -89
  6. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +2 -2
  7. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +102 -92
  8. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +7 -0
  9. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +64 -0
  10. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +5 -71
  11. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +64 -2
  12. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/ErrorStatusIcon.vue.js +7 -0
  13. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/ErrorStatusIcon.vue2.js +40 -0
  14. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/PendingStatusIcon.vue.js +7 -0
  15. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/PendingStatusIcon.vue2.js +46 -0
  16. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/ReadStatusIcon.vue.js +7 -0
  17. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/ReadStatusIcon.vue2.js +40 -0
  18. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/ReceivedStatusIcon.vue.js +7 -0
  19. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/ReceivedStatusIcon.vue2.js +40 -0
  20. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/SentStatusIcon.vue.js +7 -0
  21. package/dist/components/2_feed_elements/MessageStatusIndicator/icons/SentStatusIcon.vue2.js +43 -0
  22. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +1 -1
  23. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +118 -103
  24. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
  25. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +76 -66
  26. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +1 -1
  27. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +88 -78
  28. package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
  29. package/dist/components/3_compounds/Feed/Feed.vue2.js +134 -128
  30. package/dist/locale/en.js +2 -1
  31. package/dist/locale/ru.js +2 -1
  32. package/dist/themes/dark.css +1 -1
  33. package/dist/themes/default.css +1 -1
  34. package/dist/themes/glass.css +1 -1
  35. package/dist/themes/green.css +1 -1
  36. package/dist/themes/mobilon1.css +1 -1
  37. package/dist/types/apps/data/messages.d.ts +324 -4
  38. package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +2 -0
  39. package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +6 -16
  40. package/dist/types/components/2_feed_elements/CallMessage/styles/types.d.ts +0 -6
  41. package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +2 -0
  42. package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +2 -20
  43. package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +2 -0
  44. package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +0 -14
  45. package/dist/types/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.d.ts +11 -0
  46. package/dist/types/components/2_feed_elements/MessageSmsInvite/styles/types.d.ts +49 -0
  47. package/dist/types/components/2_feed_elements/MessageStatusIndicator/icons/ErrorStatusIcon.vue.d.ts +23 -0
  48. package/dist/types/components/2_feed_elements/MessageStatusIndicator/icons/PendingStatusIcon.vue.d.ts +23 -0
  49. package/dist/types/components/2_feed_elements/MessageStatusIndicator/icons/ReadStatusIcon.vue.d.ts +23 -0
  50. package/dist/types/components/2_feed_elements/MessageStatusIndicator/icons/ReceivedStatusIcon.vue.d.ts +23 -0
  51. package/dist/types/components/2_feed_elements/MessageStatusIndicator/icons/SentStatusIcon.vue.d.ts +23 -0
  52. package/dist/types/components/2_feed_elements/MessageStatusIndicator/icons/index.d.ts +5 -0
  53. package/dist/types/components/2_feed_elements/MessageStatusIndicator/styles/types.d.ts +31 -0
  54. package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +2 -0
  55. package/dist/types/components/2_feed_elements/StickerMessage/styles/types.d.ts +16 -14
  56. package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +2 -0
  57. package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +0 -18
  58. package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +2 -0
  59. package/dist/types/components/2_feed_elements/VideoMessage/styles/types.d.ts +1 -15
  60. package/dist/types/components/2_feed_elements/types/messages.d.ts +12 -0
  61. package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +4 -2
  62. package/dist/types/hooks/validators/messages/types.d.ts +1 -0
  63. package/dist/types/locale/en.d.ts +1 -0
  64. package/dist/types/locale/ru.d.ts +1 -0
  65. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ import { defineComponent as n, computed as C, createElementBlock as o, openBlock as l, normalizeStyle as c, normalizeClass as p, createStaticVNode as u } from "vue";
2
+ const f = /* @__PURE__ */ n({
3
+ name: "ErrorStatusIcon",
4
+ __name: "ErrorStatusIcon",
5
+ props: {
6
+ size: {
7
+ type: [String, Number],
8
+ default: "inherit"
9
+ },
10
+ class: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ setup(i) {
16
+ const t = i, a = C(() => `status-icon status-icon--error ${t.class}`.trim()), s = C(() => {
17
+ if (t.size === "inherit")
18
+ return {};
19
+ const e = typeof t.size == "number" ? `${t.size}px` : t.size;
20
+ return {
21
+ width: e,
22
+ height: e
23
+ };
24
+ });
25
+ return (e, r) => (l(), o("svg", {
26
+ class: p(a.value),
27
+ style: c(s.value),
28
+ width: "16",
29
+ height: "16",
30
+ viewBox: "0 0 16 16",
31
+ fill: "none",
32
+ xmlns: "http://www.w3.org/2000/svg"
33
+ }, [...r[0] || (r[0] = [
34
+ u('<g clip-path="url(#clip0_7935_4)" data-v-e278b0f5><path d="M8 15C6.14348 15 4.36301 14.2625 3.05025 12.9497C1.7375 11.637 1 9.85652 1 8C1 6.14348 1.7375 4.36301 3.05025 3.05025C4.36301 1.7375 6.14348 1 8 1C9.85652 1 11.637 1.7375 12.9497 3.05025C14.2625 4.36301 15 6.14348 15 8C15 9.85652 14.2625 11.637 12.9497 12.9497C11.637 14.2625 9.85652 15 8 15ZM8 16C10.1217 16 12.1566 15.1571 13.6569 13.6569C15.1571 12.1566 16 10.1217 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0C5.87827 0 3.84344 0.842855 2.34315 2.34315C0.842855 3.84344 0 5.87827 0 8C0 10.1217 0.842855 12.1566 2.34315 13.6569C3.84344 15.1571 5.87827 16 8 16Z" fill="currentColor" data-v-e278b0f5></path><path d="M7.00195 11.0011C7.00195 10.8698 7.02782 10.7397 7.07807 10.6184C7.12833 10.4971 7.20199 10.3868 7.29485 10.294C7.38771 10.2011 7.49794 10.1275 7.61927 10.0772C7.7406 10.027 7.87063 10.0011 8.00195 10.0011C8.13328 10.0011 8.26331 10.027 8.38464 10.0772C8.50596 10.1275 8.6162 10.2011 8.70906 10.294C8.80192 10.3868 8.87558 10.4971 8.92583 10.6184C8.97609 10.7397 9.00195 10.8698 9.00195 11.0011C9.00195 11.2663 8.8966 11.5207 8.70906 11.7082C8.52152 11.8957 8.26717 12.0011 8.00195 12.0011C7.73674 12.0011 7.48238 11.8957 7.29485 11.7082C7.10731 11.5207 7.00195 11.2663 7.00195 11.0011ZM7.09995 4.99609C7.08664 4.86993 7.09999 4.74239 7.13915 4.62172C7.17831 4.50106 7.24241 4.38998 7.32727 4.29568C7.41214 4.20139 7.51588 4.12599 7.63176 4.07438C7.74765 4.02276 7.87309 3.99609 7.99995 3.99609C8.12681 3.99609 8.25226 4.02276 8.36814 4.07438C8.48403 4.12599 8.58777 4.20139 8.67263 4.29568C8.7575 4.38998 8.82159 4.50106 8.86075 4.62172C8.89991 4.74239 8.91327 4.86993 8.89995 4.99609L8.54995 8.50309C8.53819 8.64087 8.47516 8.76921 8.37331 8.86273C8.27146 8.95625 8.13823 9.00815 7.99995 9.00815C7.86168 9.00815 7.72844 8.95625 7.6266 8.86273C7.52475 8.76921 7.46171 8.64087 7.44995 8.50309L7.09995 4.99609Z" fill="currentColor" data-v-e278b0f5></path></g><defs data-v-e278b0f5><clipPath id="clip0_7935_4" data-v-e278b0f5><rect width="16" height="16" fill="white" data-v-e278b0f5></rect></clipPath></defs>', 2)
35
+ ])], 6));
36
+ }
37
+ });
38
+ export {
39
+ f as default
40
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./PendingStatusIcon.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-706873b1"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,46 @@
1
+ import { defineComponent as l, computed as s, createElementBlock as a, openBlock as u, normalizeStyle as c, normalizeClass as p, createElementVNode as d } from "vue";
2
+ const g = /* @__PURE__ */ l({
3
+ name: "PendingStatusIcon",
4
+ __name: "PendingStatusIcon",
5
+ props: {
6
+ size: {
7
+ type: [String, Number],
8
+ default: "inherit"
9
+ },
10
+ class: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ setup(o) {
16
+ const e = o, i = s(() => `status-icon status-icon--pending ${e.class}`.trim()), r = s(() => {
17
+ if (e.size === "inherit")
18
+ return {};
19
+ const t = typeof e.size == "number" ? `${e.size}px` : e.size;
20
+ return {
21
+ width: t,
22
+ height: t
23
+ };
24
+ });
25
+ return (t, n) => (u(), a("svg", {
26
+ class: p(i.value),
27
+ style: c(r.value),
28
+ width: "16",
29
+ height: "16",
30
+ viewBox: "2 2 20 20",
31
+ fill: "none",
32
+ xmlns: "http://www.w3.org/2000/svg"
33
+ }, [...n[0] || (n[0] = [
34
+ d("path", {
35
+ d: "M12 7V12H15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",
36
+ stroke: "currentColor",
37
+ "stroke-width": "2",
38
+ "stroke-linecap": "round",
39
+ "stroke-linejoin": "round"
40
+ }, null, -1)
41
+ ])], 6));
42
+ }
43
+ });
44
+ export {
45
+ g as default
46
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ReadStatusIcon.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-300c30aa"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as c, computed as i, createElementBlock as l, openBlock as C, normalizeStyle as o, normalizeClass as p, createStaticVNode as d } from "vue";
2
+ const h = /* @__PURE__ */ c({
3
+ name: "ReadStatusIcon",
4
+ __name: "ReadStatusIcon",
5
+ props: {
6
+ size: {
7
+ type: [String, Number],
8
+ default: "inherit"
9
+ },
10
+ class: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ setup(s) {
16
+ const t = s, r = i(() => `status-icon status-icon--read ${t.class}`.trim()), n = i(() => {
17
+ if (t.size === "inherit")
18
+ return {};
19
+ const e = typeof t.size == "number" ? `${t.size}px` : t.size;
20
+ return {
21
+ width: e,
22
+ height: e
23
+ };
24
+ });
25
+ return (e, a) => (C(), l("svg", {
26
+ class: p(r.value),
27
+ style: o(n.value),
28
+ width: "20",
29
+ height: "20",
30
+ viewBox: "0 0 20 20",
31
+ fill: "none",
32
+ xmlns: "http://www.w3.org/2000/svg"
33
+ }, [...a[0] || (a[0] = [
34
+ d('<g clip-path="url(#clip0_8155_1633)" data-v-300c30aa><path d="M15.4433 5.44329C15.5014 5.38518 15.5475 5.31619 15.5789 5.24027C15.6104 5.16434 15.6266 5.08297 15.6266 5.00079C15.6266 4.91861 15.6104 4.83723 15.5789 4.76131C15.5475 4.68539 15.5014 4.6164 15.4433 4.55829C15.3852 4.50018 15.3162 4.45408 15.2403 4.42264C15.1643 4.39119 15.083 4.375 15.0008 4.375C14.9186 4.375 14.8372 4.39119 14.7613 4.42264C14.6854 4.45408 14.6164 4.50018 14.5583 4.55829L6.25079 12.867L2.31829 8.93329C2.26018 8.87518 2.19119 8.82908 2.11527 8.79763C2.03934 8.76619 1.95797 8.75 1.87579 8.75C1.70982 8.75 1.55065 8.81593 1.43329 8.93329C1.31593 9.05065 1.25 9.20982 1.25 9.37579C1.25 9.54176 1.31593 9.70093 1.43329 9.81829L5.80829 14.1933C5.86635 14.2515 5.93532 14.2977 6.01125 14.3292C6.08718 14.3607 6.16858 14.3769 6.25079 14.3769C6.333 14.3769 6.4144 14.3607 6.49033 14.3292C6.56626 14.2977 6.63523 14.2515 6.69329 14.1933L15.4433 5.44329ZM10.1833 14.1933L9.06329 13.072L9.94704 12.1883L10.6258 12.867L18.9333 4.55829C19.0506 4.44093 19.2098 4.375 19.3758 4.375C19.5418 4.375 19.7009 4.44093 19.8183 4.55829C19.9356 4.67565 20.0016 4.83482 20.0016 5.00079C20.0016 5.16676 19.9356 5.32593 19.8183 5.44329L11.0683 14.1933C11.0102 14.2515 10.9413 14.2977 10.8653 14.3292C10.7894 14.3607 10.708 14.3769 10.6258 14.3769C10.5436 14.3769 10.4622 14.3607 10.3862 14.3292C10.3103 14.2977 10.2413 14.2515 10.1833 14.1933Z" fill="currentColor" data-v-300c30aa></path><path d="M6.69329 8.93329L7.81329 10.0545L6.92954 10.9383L5.80829 9.81829C5.69093 9.70093 5.625 9.54176 5.625 9.37579C5.625 9.20982 5.69093 9.05065 5.80829 8.93329C5.92565 8.81593 6.08482 8.75 6.25079 8.75C6.41676 8.75 6.57593 8.81593 6.69329 8.93329Z" fill="currentColor" data-v-300c30aa></path></g><defs data-v-300c30aa><clipPath id="clip0_8155_1633" data-v-300c30aa><rect width="20" height="20" fill="white" data-v-300c30aa></rect></clipPath></defs>', 2)
35
+ ])], 6));
36
+ }
37
+ });
38
+ export {
39
+ h as default
40
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ReceivedStatusIcon.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2a012eaa"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as l, computed as i, createElementBlock as C, openBlock as o, normalizeStyle as c, normalizeClass as p, createStaticVNode as d } from "vue";
2
+ const h = /* @__PURE__ */ l({
3
+ name: "ReceivedStatusIcon",
4
+ __name: "ReceivedStatusIcon",
5
+ props: {
6
+ size: {
7
+ type: [String, Number],
8
+ default: "inherit"
9
+ },
10
+ class: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ setup(s) {
16
+ const e = s, r = i(() => `status-icon status-icon--received ${e.class}`.trim()), n = i(() => {
17
+ if (e.size === "inherit")
18
+ return {};
19
+ const t = typeof e.size == "number" ? `${e.size}px` : e.size;
20
+ return {
21
+ width: t,
22
+ height: t
23
+ };
24
+ });
25
+ return (t, a) => (o(), C("svg", {
26
+ class: p(r.value),
27
+ style: c(n.value),
28
+ width: "20",
29
+ height: "20",
30
+ viewBox: "0 0 20 20",
31
+ fill: "none",
32
+ xmlns: "http://www.w3.org/2000/svg"
33
+ }, [...a[0] || (a[0] = [
34
+ d('<g clip-path="url(#clip0_7951_852)" data-v-2a012eaa><path d="M15.4423 5.44329C15.5004 5.38518 15.5465 5.31619 15.578 5.24027C15.6094 5.16434 15.6256 5.08297 15.6256 5.00079C15.6256 4.91861 15.6094 4.83723 15.578 4.76131C15.5465 4.68539 15.5004 4.6164 15.4423 4.55829C15.3842 4.50018 15.3152 4.45408 15.2393 4.42264C15.1634 4.39119 15.082 4.375 14.9998 4.375C14.9176 4.375 14.8363 4.39119 14.7603 4.42264C14.6844 4.45408 14.6154 4.50018 14.5573 4.55829L6.24981 12.867L2.31731 8.93329C2.2592 8.87518 2.19022 8.82908 2.11429 8.79764C2.03837 8.76619 1.95699 8.75 1.87481 8.75C1.70884 8.75 1.54967 8.81593 1.43231 8.93329C1.31495 9.05065 1.24902 9.20982 1.24902 9.37579C1.24902 9.54176 1.31495 9.70093 1.43231 9.81829L5.80731 14.1933C5.86537 14.2515 5.93434 14.2977 6.01027 14.3292C6.0862 14.3607 6.1676 14.3769 6.24981 14.3769C6.33202 14.3769 6.41342 14.3607 6.48936 14.3292C6.56529 14.2977 6.63426 14.2515 6.69231 14.1933L15.4423 5.44329ZM10.1823 14.1933L9.06231 13.072L9.94606 12.1883L10.6248 12.867L18.9323 4.55829C19.0497 4.44093 19.2088 4.375 19.3748 4.375C19.5408 4.375 19.7 4.44093 19.8173 4.55829C19.9347 4.67565 20.0006 4.83482 20.0006 5.00079C20.0006 5.16676 19.9347 5.32593 19.8173 5.44329L11.0673 14.1933C11.0093 14.2515 10.9403 14.2977 10.8644 14.3292C10.7884 14.3607 10.707 14.3769 10.6248 14.3769C10.5426 14.3769 10.4612 14.3607 10.3853 14.3292C10.3093 14.2977 10.2404 14.2515 10.1823 14.1933Z" fill="currentColor" data-v-2a012eaa></path><path d="M6.69231 8.93329L7.81231 10.0545L6.92856 10.9383L5.80731 9.81829C5.68995 9.70093 5.62402 9.54176 5.62402 9.37579C5.62402 9.20982 5.68995 9.05065 5.80731 8.93329C5.92467 8.81593 6.08384 8.75 6.24981 8.75C6.41578 8.75 6.57495 8.81593 6.69231 8.93329Z" fill="currentColor" data-v-2a012eaa></path></g><defs data-v-2a012eaa><clipPath id="clip0_7951_852" data-v-2a012eaa><rect width="20" height="20" fill="white" data-v-2a012eaa></rect></clipPath></defs>', 2)
35
+ ])], 6));
36
+ }
37
+ });
38
+ export {
39
+ h as default
40
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./SentStatusIcon.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7449b79c"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as l, computed as s, createElementBlock as a, openBlock as c, normalizeStyle as u, normalizeClass as C, createElementVNode as p } from "vue";
2
+ const f = /* @__PURE__ */ l({
3
+ name: "SentStatusIcon",
4
+ __name: "SentStatusIcon",
5
+ props: {
6
+ size: {
7
+ type: [String, Number],
8
+ default: "inherit"
9
+ },
10
+ class: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ setup(o) {
16
+ const e = o, i = s(() => `status-icon status-icon--sent ${e.class}`.trim()), r = s(() => {
17
+ if (e.size === "inherit")
18
+ return {};
19
+ const t = typeof e.size == "number" ? `${e.size}px` : e.size;
20
+ return {
21
+ width: t,
22
+ height: t
23
+ };
24
+ });
25
+ return (t, n) => (c(), a("svg", {
26
+ class: C(i.value),
27
+ style: u(r.value),
28
+ width: "20",
29
+ height: "20",
30
+ viewBox: "0 0 20 20",
31
+ fill: "none",
32
+ xmlns: "http://www.w3.org/2000/svg"
33
+ }, [...n[0] || (n[0] = [
34
+ p("path", {
35
+ d: "M21.6469 5.69827C21.7196 5.77084 21.7774 5.85705 21.8167 5.95197C21.8561 6.04688 21.8764 6.14864 21.8764 6.2514C21.8764 6.35416 21.8561 6.45591 21.8167 6.55082C21.7774 6.64574 21.7196 6.73195 21.6469 6.80452L10.7094 17.742C10.6368 17.8148 10.5506 17.8725 10.4557 17.9119C10.3608 17.9513 10.259 17.9715 10.1563 17.9715C10.0535 17.9715 9.95175 17.9513 9.85683 17.9119C9.76192 17.8725 9.67571 17.8148 9.60314 17.742L4.13439 12.2733C3.98769 12.1266 3.90527 11.9276 3.90527 11.7201C3.90527 11.5127 3.98769 11.3137 4.13439 11.167C4.28108 11.0203 4.48005 10.9379 4.68751 10.9379C4.89497 10.9379 5.09394 11.0203 5.24064 11.167L10.1563 16.0842L20.5406 5.69827C20.6132 5.62552 20.6994 5.56779 20.7943 5.52841C20.8892 5.48902 20.991 5.46875 21.0938 5.46875C21.1965 5.46875 21.2983 5.48902 21.3932 5.52841C21.4881 5.56779 21.5743 5.62552 21.6469 5.69827Z",
36
+ fill: "currentColor"
37
+ }, null, -1)
38
+ ])], 6));
39
+ }
40
+ });
41
+ export {
42
+ f as default
43
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./StickerMessage.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-09c8d724"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd8b0689"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,34 +1,36 @@
1
- import { defineComponent as J, inject as K, ref as w, computed as R, watch as Q, onMounted as U, createElementBlock as i, openBlock as t, unref as a, normalizeClass as v, createCommentVNode as n, createElementVNode as o, createBlock as g, toDisplayString as x, createVNode as r, Transition as f, withCtx as d, withModifiers as L, Teleport as X } from "vue";
2
- import Y from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
3
- import Z from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
4
- import _ from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
5
- import ee from "../BaseReplyMessage/BaseReplyMessage.vue.js";
6
- import se from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
7
- import te from "../MessageReactions/MessageReactions.vue.js";
8
- import ae from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
9
- import { useMessageActions as ie } from "../../../hooks/messages/useMessageActions.js";
10
- import { useMessageLinks as ne } from "../../../hooks/messages/useMessageLinks.js";
11
- import { getStatus as le, getStatusTitle as oe } from "../../../functions/getStatusMessage.js";
12
- import { getMessageClass as me } from "../../../functions/getMessageClass.js";
13
- import { createReactionHandlers as re } from "../../../functions/createReactionHandlers.js";
1
+ import { defineComponent as U, inject as X, ref as b, computed as h, watch as Y, onMounted as Z, createElementBlock as i, openBlock as a, unref as s, normalizeStyle as _, normalizeClass as k, createCommentVNode as n, createElementVNode as m, createBlock as g, toDisplayString as R, createVNode as r, Transition as f, withCtx as d, withModifiers as p, Teleport as ee } from "vue";
2
+ import se from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
3
+ import te from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
4
+ import ae from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
5
+ import ie from "../BaseReplyMessage/BaseReplyMessage.vue.js";
6
+ import ne from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
7
+ import le from "../MessageReactions/MessageReactions.vue.js";
8
+ import oe from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
9
+ import me from "../MessageSmsInvite/MessageSmsInvite.vue.js";
10
+ import { useMessageActions as re } from "../../../hooks/messages/useMessageActions.js";
11
+ import { useMessageLinks as ue } from "../../../hooks/messages/useMessageLinks.js";
12
+ import { useChannelAccentColor as ce } from "../../../hooks/messages/useChannelAccentColor.js";
13
+ import { getStatus as ge, getStatusTitle as de } from "../../../functions/getStatusMessage.js";
14
+ import { getMessageClass as ve } from "../../../functions/getMessageClass.js";
15
+ import { createReactionHandlers as ke } from "../../../functions/createReactionHandlers.js";
14
16
  import "../../../functions/parseMarkdown.js";
15
17
  import "../../../hooks/useMessageDraft.js";
16
18
  import "../../../hooks/useSearchModel.js";
17
- import { useTheme as ue } from "../../../hooks/useTheme.js";
19
+ import { useTheme as fe } from "../../../hooks/useTheme.js";
18
20
  /* empty css */
19
21
  /* empty css */
20
- import { isAnimatedSticker as ce } from "./utils/stickerUtils.js";
22
+ import { isAnimatedSticker as ye } from "./utils/stickerUtils.js";
21
23
  import "./utils/suppress-lit-warning.js";
22
- const ge = ["messageId"], de = ["src"], ke = {
24
+ const be = ["messageId"], he = ["src"], we = {
23
25
  key: 1,
24
26
  class: "sticker-message__subtext"
25
- }, ve = ["src"], fe = ["src", "alt"], ye = {
27
+ }, Me = ["src"], Se = ["src", "alt"], Ce = {
26
28
  key: 0,
27
29
  class: "sticker-message__info-container"
28
- }, we = { class: "sticker-message__time" }, be = ["href"], Me = {
30
+ }, Re = { class: "sticker-message__time" }, xe = ["href"], Ie = {
29
31
  key: 1,
30
32
  class: "sticker-message__text-container"
31
- }, he = ["innerHTML"], Re = ["src"], xe = ["src", "alt"], We = /* @__PURE__ */ J({
33
+ }, Te = ["innerHTML"], Ae = ["src"], Fe = ["src", "alt"], _e = /* @__PURE__ */ U({
32
34
  __name: "StickerMessage",
33
35
  props: {
34
36
  message: {
@@ -48,109 +50,116 @@ const ge = ["messageId"], de = ["src"], ke = {
48
50
  default: !0
49
51
  }
50
52
  },
51
- emits: ["action", "reply"],
53
+ emits: ["action", "reply", "sms-invite"],
52
54
  setup(e, { emit: B }) {
53
- const E = K("chatAppId"), { getTheme: C } = ue(E), u = w(!1), b = w(!1);
54
- async function T() {
55
- if (!(u.value || b.value)) {
56
- b.value = !0;
55
+ const V = X("chatAppId"), { getTheme: x } = fe(V), u = b(!1), w = b(!1);
56
+ async function I() {
57
+ if (!(u.value || w.value)) {
58
+ w.value = !0;
57
59
  try {
58
60
  await import("./libs/tgs-player/lottie-player.esm.js"), await import("./libs/tgs-player/tgs-player.esm.js"), u.value = !0;
59
61
  } catch (c) {
60
62
  console.error("Failed to load TGS libraries:", c);
61
63
  } finally {
62
- b.value = !1;
64
+ w.value = !1;
63
65
  }
64
66
  }
65
67
  }
66
- const m = e, S = B, M = w(!1), {
67
- isOpenMenu: h,
68
- buttonMenuVisible: V,
68
+ const l = e, M = B, S = b(!1), {
69
+ isOpenMenu: C,
70
+ buttonMenuVisible: E,
69
71
  showMenu: H,
70
- hideMenu: I,
72
+ hideMenu: T,
71
73
  clickAction: N,
72
74
  viewsAction: A,
73
75
  handleClickReplied: P
74
- } = ie(m.message, S), k = w(!1), { linkedHtml: $, inNewWindow: p } = ne(() => m.message.text), O = () => {
75
- H(), k.value = !0;
76
- }, j = R(() => le(m.message.status)), D = R(() => oe(m.message.status, m.message.statusMsg)), y = R(() => ce(m.message.url, m.message.isAnimated));
77
- Q(y, (c) => {
78
- c && !u.value && T();
79
- }, { immediate: !0 }), U(() => {
80
- y.value && !u.value && T();
76
+ } = re(l.message, M), v = b(!1), { linkedHtml: O, inNewWindow: F } = ue(() => l.message.text), $ = () => {
77
+ H(), v.value = !0;
78
+ }, j = h(() => ge(l.message.status)), z = h(() => de(l.message.status, l.message.statusMsg)), { bubbleStyle: D, messageChannelId: q } = ce(
79
+ h(() => l.message),
80
+ { cssVariable: "--chotto-stickermessage-right-bg", position: "right" }
81
+ ), y = h(() => ye(l.message.url, l.message.isAnimated));
82
+ Y(y, (c) => {
83
+ c && !u.value && I();
84
+ }, { immediate: !0 }), Z(() => {
85
+ y.value && !u.value && I();
81
86
  });
82
- function F(c) {
83
- return me(c.position, "sticker-message");
87
+ function L(c) {
88
+ return ve(c.position, "sticker-message");
84
89
  }
85
- const q = () => M.value = !1, { onToggleReaction: z, onAddReaction: G, onRemoveReaction: W } = re(S);
86
- return (c, s) => (t(), i("div", {
87
- class: v(["sticker-message", [
88
- F(e.message),
90
+ const G = () => S.value = !1, { onToggleReaction: W, onAddReaction: J, onRemoveReaction: K } = ke(M);
91
+ function Q() {
92
+ M("sms-invite", l.message);
93
+ }
94
+ return (c, t) => (a(), i("div", {
95
+ class: k(["sticker-message", [
96
+ L(e.message),
89
97
  e.applyStyle(e.message)
90
98
  ]]),
91
99
  messageId: e.message.messageId,
92
- onMouseleave: s[5] || (s[5] = //@ts-ignore
93
- (...l) => a(I) && a(I)(...l))
100
+ style: _(s(D)),
101
+ onMouseleave: t[5] || (t[5] = //@ts-ignore
102
+ (...o) => s(T) && s(T)(...o))
94
103
  }, [
95
- e.message.avatar && e.isFirstInSeries ? (t(), i("img", {
104
+ e.message.avatar && e.isFirstInSeries ? (a(), i("img", {
96
105
  key: 0,
97
106
  class: "sticker-message__avatar",
98
107
  src: e.message.avatar,
99
108
  height: "32",
100
109
  width: "32"
101
- }, null, 8, de)) : n("", !0),
102
- e.message.subText && e.isFirstInSeries ? (t(), i("p", ke, x(e.message.subText), 1)) : n("", !0),
103
- o("div", {
104
- class: v(["sticker-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
110
+ }, null, 8, he)) : n("", !0),
111
+ e.message.subText && e.isFirstInSeries ? (a(), i("p", we, R(e.message.subText), 1)) : n("", !0),
112
+ m("div", {
113
+ class: k(["sticker-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
105
114
  }, [
106
- e.message.reply ? (t(), g(ee, {
115
+ e.message.reply ? (a(), g(ie, {
107
116
  key: 0,
108
117
  style: { margin: "10px 10px 4px 16px" },
109
- class: v(e.message.position),
118
+ class: k(e.message.position),
110
119
  message: e.message.reply,
111
- onReply: a(P)
120
+ onReply: s(P)
112
121
  }, null, 8, ["class", "message", "onReply"])) : n("", !0),
113
- o("div", {
122
+ m("div", {
114
123
  class: "sticker-message__preview-button",
115
- onClick: s[1] || (s[1] = (l) => M.value = !0),
116
- onMouseenter: O,
117
- onMouseleave: s[2] || (s[2] = (l) => k.value = !k.value)
124
+ onClick: t[1] || (t[1] = (o) => S.value = !0),
125
+ onMouseenter: $,
126
+ onMouseleave: t[2] || (t[2] = (o) => v.value = !v.value)
118
127
  }, [
119
- y.value && u.value ? (t(), i("tgs-player", {
128
+ y.value && u.value ? (a(), i("tgs-player", {
120
129
  key: 0,
121
130
  class: "sticker-message__preview-image-animated",
122
131
  src: e.message.url,
123
132
  autoplay: "",
124
133
  loop: "",
125
134
  mode: "normal"
126
- }, null, 8, ve)) : (t(), i("img", {
135
+ }, null, 8, Me)) : (a(), i("img", {
127
136
  key: 1,
128
137
  class: "sticker-message__preview-image",
129
138
  src: e.message.url,
130
139
  alt: e.message.alt
131
- }, null, 8, fe)),
140
+ }, null, 8, Se)),
132
141
  r(f, { name: "modal-fade" }, {
133
142
  default: d(() => [
134
- k.value ? (t(), i("div", ye, [
135
- e.message.views ? (t(), i("div", {
143
+ v.value ? (a(), i("div", Ce, [
144
+ e.message.views ? (a(), i("div", {
136
145
  key: 0,
137
146
  class: "sticker-message__views",
138
- onClick: s[0] || (s[0] = L(
147
+ onClick: t[0] || (t[0] = p(
139
148
  //@ts-ignore
140
- (...l) => a(A) && a(A)(...l),
149
+ (...o) => s(A) && s(A)(...o),
141
150
  ["stop"]
142
151
  ))
143
152
  }, [
144
- s[6] || (s[6] = o("span", { class: "pi pi-eye" }, null, -1)),
145
- o("p", null, x(e.message.views), 1)
153
+ t[6] || (t[6] = m("span", { class: "pi pi-eye" }, null, -1)),
154
+ m("p", null, R(e.message.views), 1)
146
155
  ])) : n("", !0),
147
- o("span", we, x(e.message.time), 1),
148
- r(ae, {
156
+ m("span", Re, R(e.message.time), 1),
157
+ r(oe, {
149
158
  "base-class": "sticker-message",
150
- "message-class": F(e.message),
159
+ "message-class": L(e.message),
151
160
  "message-status": e.message.status,
152
161
  "status-class": j.value,
153
- "status-title": D.value
162
+ "status-title": z.value
154
163
  }, null, 8, ["message-class", "message-status", "status-class", "status-title"])
155
164
  ])) : n("", !0)
156
165
  ]),
@@ -158,91 +167,97 @@ const ge = ["messageId"], de = ["src"], ke = {
158
167
  }),
159
168
  r(f, { name: "modal-fade" }, {
160
169
  default: d(() => [
161
- k.value ? (t(), i("a", {
170
+ v.value ? (a(), i("a", {
162
171
  key: 0,
163
172
  class: "sticker-message__download-button",
164
173
  href: e.message.url,
165
174
  download: "",
166
175
  target: "_blank",
167
- onClick: L(() => "//Предотвращаем всплытие события клика", ["stop"])
168
- }, [...s[7] || (s[7] = [
169
- o("span", { class: "pi pi-download" }, null, -1)
170
- ])], 8, be)) : n("", !0)
176
+ onClick: p(() => "//Предотвращаем всплытие события клика", ["stop"])
177
+ }, [...t[7] || (t[7] = [
178
+ m("span", { class: "pi pi-download" }, null, -1)
179
+ ])], 8, xe)) : n("", !0)
171
180
  ]),
172
181
  _: 1
173
182
  })
174
183
  ], 32),
175
184
  r(f, { name: "modal-fade" }, {
176
185
  default: d(() => [
177
- a(V) && e.message.actions ? (t(), i("button", {
186
+ s(E) && e.message.actions ? (a(), i("button", {
178
187
  key: 0,
179
188
  class: "sticker-message__menu-button",
180
- onClick: s[3] || (s[3] = (l) => h.value = !a(h))
181
- }, [...s[8] || (s[8] = [
182
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
189
+ onClick: t[3] || (t[3] = (o) => C.value = !s(C))
190
+ }, [...t[8] || (t[8] = [
191
+ m("span", { class: "pi pi-ellipsis-h" }, null, -1)
183
192
  ])])) : n("", !0)
184
193
  ]),
185
194
  _: 1
186
195
  }),
187
196
  r(f, { name: "context-menu" }, {
188
197
  default: d(() => [
189
- a(h) && e.message.actions ? (t(), g(Y, {
198
+ s(C) && e.message.actions ? (a(), g(se, {
190
199
  key: 0,
191
200
  class: "sticker-message__context-menu",
192
201
  actions: e.message.actions,
193
- onClick: a(N)
202
+ onClick: s(N)
194
203
  }, null, 8, ["actions", "onClick"])) : n("", !0)
195
204
  ]),
196
205
  _: 1
197
206
  }),
198
- e.message.text ? (t(), i("div", Me, [
199
- o("p", {
200
- onClick: s[4] || (s[4] = //@ts-ignore
201
- (...l) => a(p) && a(p)(...l)),
202
- innerHTML: a($)
203
- }, null, 8, he)
207
+ e.message.text ? (a(), i("div", Ie, [
208
+ m("p", {
209
+ onClick: t[4] || (t[4] = //@ts-ignore
210
+ (...o) => s(F) && s(F)(...o)),
211
+ innerHTML: s(O)
212
+ }, null, 8, Te)
204
213
  ])) : n("", !0),
205
- e.message.linkPreview ? (t(), g(Z, {
214
+ r(me, {
215
+ status: e.message.status,
216
+ "has-messenger-account": e.message.hasMessengerAccount,
217
+ channel: s(q),
218
+ onSmsInvite: Q
219
+ }, null, 8, ["status", "has-messenger-account", "channel"]),
220
+ e.message.linkPreview ? (a(), g(te, {
206
221
  key: 2,
207
- class: v(["sticker-message__link-preview", e.message.position]),
222
+ class: k(["sticker-message__link-preview", e.message.position]),
208
223
  "link-preview": e.message.linkPreview
209
224
  }, null, 8, ["class", "link-preview"])) : n("", !0),
210
- e.message.embed ? (t(), g(_, {
225
+ e.message.embed ? (a(), g(ae, {
211
226
  key: 3,
212
- class: v(e.message.position),
227
+ class: k(e.message.position),
213
228
  embed: e.message.embed
214
229
  }, null, 8, ["class", "embed"])) : n("", !0),
215
- r(te, {
230
+ r(le, {
216
231
  reactions: e.message.reactions,
217
232
  "message-id": e.message.messageId,
218
233
  enabled: e.reactionsEnabled,
219
- onToggleReaction: a(z),
220
- onAddReaction: a(G),
221
- onRemoveReaction: a(W)
234
+ onToggleReaction: s(W),
235
+ onAddReaction: s(J),
236
+ onRemoveReaction: s(K)
222
237
  }, null, 8, ["reactions", "message-id", "enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction"])
223
238
  ], 2),
224
- (t(), g(X, { to: "body" }, [
239
+ (a(), g(ee, { to: "body" }, [
225
240
  r(f, { name: "modal-fade" }, {
226
241
  default: d(() => [
227
- M.value ? (t(), g(se, {
242
+ S.value ? (a(), g(ne, {
228
243
  key: 0,
229
- "data-theme": a(C)().theme ? a(C)().theme : "light",
230
- onClose: q
244
+ "data-theme": s(x)().theme ? s(x)().theme : "light",
245
+ onClose: G
231
246
  }, {
232
247
  default: d(() => [
233
- y.value && u.value ? (t(), i("tgs-player", {
248
+ y.value && u.value ? (a(), i("tgs-player", {
234
249
  key: 0,
235
250
  class: "sticker-message__modal-image-animated",
236
251
  src: e.message.url,
237
252
  autoplay: "",
238
253
  loop: "",
239
254
  mode: "normal"
240
- }, null, 8, Re)) : (t(), i("img", {
255
+ }, null, 8, Ae)) : (a(), i("img", {
241
256
  key: 1,
242
257
  class: "sticker-message__modal-image",
243
258
  src: e.message.url,
244
259
  alt: e.message.alt
245
- }, null, 8, xe))
260
+ }, null, 8, Fe))
246
261
  ]),
247
262
  _: 1
248
263
  }, 8, ["data-theme"])) : n("", !0)
@@ -250,9 +265,9 @@ const ge = ["messageId"], de = ["src"], ke = {
250
265
  _: 1
251
266
  })
252
267
  ]))
253
- ], 42, ge));
268
+ ], 46, be));
254
269
  }
255
270
  });
256
271
  export {
257
- We as default
272
+ _e as default
258
273
  };