@mobilon-dev/chotto 0.3.111 → 0.3.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import o from "./FeedFoundItem.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dd915a68"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ead1327f"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };
@@ -1,8 +1,16 @@
1
- import { defineComponent as m, computed as r, createElementBlock as s, openBlock as i, normalizeClass as c, createElementVNode as t, toDisplayString as o, createCommentVNode as a } from "vue";
2
- const u = { class: "feed-found-item__avatar-container" }, f = ["src"], _ = {
1
+ import { defineComponent as u, computed as l, createElementBlock as o, openBlock as s, normalizeClass as r, createElementVNode as i, toDisplayString as c, createCommentVNode as m } from "vue";
2
+ import "../../../locale/useLocale.js";
3
+ /* empty css */
4
+ import "../../../node_modules/linkifyjs/dist/linkify.js";
5
+ import "../../../node_modules/linkify-string/dist/linkify-string.js";
6
+ import "../../../functions/parseMarkdown.js";
7
+ /* empty css */
8
+ /* empty css */
9
+ import { getPrimaryImageItem as f } from "../../../hooks/messages/getImageMessageItems.js";
10
+ const p = { class: "feed-found-item__avatar-container" }, _ = ["src"], g = {
3
11
  key: 1,
4
12
  class: "pi pi-user"
5
- }, p = { class: "feed-found-item__info" }, h = { class: "feed-found-item__first-line" }, g = { class: "feed-found-item__name" }, v = { class: "feed-found-item__time" }, y = { class: "feed-found-item__second-line" }, b = ["src"], k = /* @__PURE__ */ m({
13
+ }, h = { class: "feed-found-item__info" }, v = { class: "feed-found-item__first-line" }, b = { class: "feed-found-item__name" }, j = { class: "feed-found-item__time" }, y = { class: "feed-found-item__second-line" }, x = ["src"], S = /* @__PURE__ */ u({
6
14
  __name: "FeedFoundItem",
7
15
  props: {
8
16
  object: {
@@ -14,48 +22,52 @@ const u = { class: "feed-found-item__avatar-container" }, f = ["src"], _ = {
14
22
  default: !1
15
23
  }
16
24
  },
17
- setup(e) {
18
- const d = e, n = r(() => ({
25
+ setup(t) {
26
+ const n = t, a = l(() => {
27
+ if (n.object.type !== "message.image") return "";
28
+ const e = f(n.object);
29
+ return (e == null ? void 0 : e.imagePreviewUrl) || (e == null ? void 0 : e.url) || "";
30
+ }), d = l(() => ({
19
31
  "message.file": "pi pi-file",
20
32
  "message.audio": "pi pi-volume-up",
21
33
  "message.video": "pi pi-video",
22
34
  "message.call": "pi pi-phone"
23
- })[d.object.type] || null);
24
- return (l, j) => (i(), s("div", {
25
- class: c(["feed-found-item__container", { "feed-found-item__selected-container": e.selected }])
35
+ })[n.object.type] || null);
36
+ return (e, k) => (s(), o("div", {
37
+ class: r(["feed-found-item__container", { "feed-found-item__selected-container": t.selected }])
26
38
  }, [
27
- t("div", u, [
28
- e.object.avatar ? (i(), s("img", {
39
+ i("div", p, [
40
+ t.object.avatar ? (s(), o("img", {
29
41
  key: 0,
30
- src: e.object.avatar,
42
+ src: t.object.avatar,
31
43
  width: "48",
32
44
  height: "48"
33
- }, null, 8, f)) : (i(), s("span", _))
45
+ }, null, 8, _)) : (s(), o("span", g))
34
46
  ]),
35
- t("div", p, [
36
- t("div", h, [
37
- t("p", g, o(e.object.subtext), 1),
38
- t("p", v, o(e.object.time), 1)
47
+ i("div", h, [
48
+ i("div", v, [
49
+ i("p", b, c(t.object.subtext), 1),
50
+ i("p", j, c(t.object.time), 1)
39
51
  ]),
40
- t("div", y, [
41
- e.object.type == "message.image" ? (i(), s("img", {
52
+ i("div", y, [
53
+ a.value ? (s(), o("img", {
42
54
  key: 0,
43
- src: e.object.url,
55
+ src: a.value,
44
56
  style: { "margin-right": "3px" },
45
57
  width: "24",
46
58
  height: "24"
47
- }, null, 8, b)) : a("", !0),
48
- n.value ? (i(), s("span", {
59
+ }, null, 8, x)) : m("", !0),
60
+ d.value ? (s(), o("span", {
49
61
  key: 1,
50
- class: c(n.value),
62
+ class: r(d.value),
51
63
  style: { "margin-right": "3px", "font-size": "20px" }
52
- }, null, 2)) : a("", !0),
53
- t("p", null, o(e.object.text), 1)
64
+ }, null, 2)) : m("", !0),
65
+ i("p", null, c(t.object.text), 1)
54
66
  ])
55
67
  ])
56
68
  ], 2));
57
69
  }
58
70
  });
59
71
  export {
60
- k as default
72
+ S as default
61
73
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ImageMessage.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3831df58"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-54182b88"]]);
5
5
  export {
6
6
  r as default
7
7
  };