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";
const u = { class: "feed-found-item__avatar-container" }, f = ["src"], _ = {
  key: 1,
  class: "pi pi-user"
}, 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({
  __name: "FeedFoundItem",
  props: {
    object: {
      type: Object,
      required: !0
    },
    selected: {
      type: Boolean,
      default: !1
    }
  },
  setup(e) {
    const d = e, n = r(() => ({
      "message.file": "pi pi-file",
      "message.audio": "pi pi-volume-up",
      "message.video": "pi pi-video",
      "message.call": "pi pi-phone"
    })[d.object.type] || null);
    return (l, j) => (i(), s("div", {
      class: c(["feed-found-item__container", { "feed-found-item__selected-container": e.selected }])
    }, [
      t("div", u, [
        e.object.avatar ? (i(), s("img", {
          key: 0,
          src: e.object.avatar,
          width: "48",
          height: "48"
        }, null, 8, f)) : (i(), s("span", _))
      ]),
      t("div", p, [
        t("div", h, [
          t("p", g, o(e.object.subtext), 1),
          t("p", v, o(e.object.time), 1)
        ]),
        t("div", y, [
          e.object.type == "message.image" ? (i(), s("img", {
            key: 0,
            src: e.object.url,
            style: { "margin-right": "3px" },
            width: "24",
            height: "24"
          }, null, 8, b)) : a("", !0),
          n.value ? (i(), s("span", {
            key: 1,
            class: c(n.value),
            style: { "margin-right": "3px", "font-size": "20px" }
          }, null, 2)) : a("", !0),
          t("p", null, o(e.object.text), 1)
        ])
      ])
    ], 2));
  }
});
export {
  k as default
};
