import { o as n } from "./rolldown-runtime.js";
import { i } from "./vendor/react.js";
import { i as r, n as c, o as m, r as e, t as p } from "./_shared.js";
import { t as h } from "./AIMessage.js";
var l = /* @__PURE__ */ n(i(), 1), a = {
  content: "string",
  senderName: "string",
  timestamp: "string",
  avatar: "json",
  isAgent: "boolean",
  compact: "boolean",
  isTyping: "boolean",
  markdown: "boolean",
  attachments: "json",
  reactions: "json",
  showActions: "boolean",
  thumbsUpActive: "boolean",
  thumbsDownActive: "boolean"
}, o = class extends p {
  get propDefs() {
    return a;
  }
  static get observedAttributes() {
    return Object.keys(a).map(c);
  }
  _renderReact() {
    const t = this._readAllProps();
    return l.createElement(h, {
      type: t.type ?? "received",
      content: t.content,
      senderName: t.senderName,
      timestamp: t.timestamp,
      avatar: t.avatar,
      isAgent: t.isAgent ?? !1,
      compact: t.compact ?? !1,
      isTyping: t.isTyping ?? !1,
      markdown: t.markdown ?? !1,
      attachments: t.attachments,
      reactions: t.reactions,
      showActions: t.showActions ?? !1,
      thumbsUpActive: t.thumbsUpActive ?? !1,
      thumbsDownActive: t.thumbsDownActive ?? !1,
      onThumbsUp: () => e(this, "thumbs-up"),
      onThumbsDown: () => e(this, "thumbs-down"),
      onCopy: () => e(this, "copy"),
      onShowList: () => e(this, "show-list"),
      onInteraction: (s) => e(this, "interaction", s),
      onReactionClick: (s) => e(this, "reaction-click", s),
      onAttachmentClick: (s) => e(this, "attachment-click", s)
    });
  }
};
r(o, {
  ...a,
  type: "string"
});
m("hf-ai-message", o);
export {
  o as AIMessageWC,
  o as default
};

//# sourceMappingURL=hf-ai-message.js.map