import { defineComponent as d, createElementBlock as y, openBlock as i, normalizeClass as f, createBlock as u, createElementVNode as g, resolveDynamicComponent as M } from "vue";
import R from "../ReplyTextMessage/ReplyTextMessage.vue.js";
import k from "../ReplyImageMessage/ReplyImageMessage.vue.js";
import C from "../ReplyStickerMessage/ReplyStickerMessage.vue.js";
import v from "../ReplyAudioMessage/ReplyAudioMessage.vue.js";
import x from "../ReplyVideoMessage/ReplyVideoMessage.vue.js";
import B from "../ReplyFileMessage/ReplyFileMessage.vue.js";
import _ from "../ReplyCallMessage/ReplyCallMessage.vue.js";
const E = { class: "reply__reset" }, O = /* @__PURE__ */ d({
  __name: "BaseReplyMessage",
  props: {
    message: {
      type: Object,
      default: () => ({})
    }
  },
  emits: ["action", "reply", "reset"],
  setup(e, { emit: l }) {
    const t = l, m = e, n = () => {
      m.message && t("reply", m.message.messageId);
    }, p = (s) => ({
      "message.text": R,
      "message.image": k,
      "message.sticker": C,
      "message.file": B,
      "message.audio": v,
      "message.video": x,
      "message.call": _
    })[s], c = (s) => ({
      "message.text": "",
      "message.image": "grid",
      "message.sticker": "grid",
      "message.file": "grid",
      "message.audio": "grid",
      "message.video": "grid",
      "message.call": "grid"
    })[s];
    return (s, a) => {
      var o, r;
      return i(), y("div", {
        class: f(["reply__container", c(((o = e.message) == null ? void 0 : o.type) || "")]),
        onClick: n
      }, [
        (i(), u(M(p(((r = e.message) == null ? void 0 : r.type) || "")), { message: e.message }, null, 8, ["message"])),
        g("div", E, [
          g("span", {
            class: "pi pi-times",
            onClick: a[0] || (a[0] = (I) => t("reset"))
          })
        ])
      ], 2);
    };
  }
});
export {
  O as default
};
