import { defineComponent as c, createElementBlock as o, openBlock as r, createCommentVNode as l, createElementVNode as d, toDisplayString as p, unref as t } from "vue";
import { useMessageLinks as u } from "../../../hooks/messages/useMessageLinks.js";
import "../../../functions/parseMarkdown.js";
const g = { class: "container" }, f = { key: 0 }, k = ["innerHTML"], M = /* @__PURE__ */ c({
  __name: "ReplyTextMessage",
  props: {
    message: {
      type: Object,
      required: !0
    }
  },
  setup(e) {
    const i = e, { linkedHtml: a, inNewWindow: n } = u(() => i.message.text);
    return (_, s) => (r(), o("div", g, [
      e.message.header ? (r(), o("p", f, p(e.message.header), 1)) : l("", !0),
      d("p", {
        class: "text",
        onClick: s[0] || (s[0] = //@ts-ignore
        (...m) => t(n) && t(n)(...m)),
        innerHTML: t(a)
      }, null, 8, k)
    ]));
  }
});
export {
  M as default
};
