import { o } from "./rolldown-runtime.js";
import { i } from "./vendor/react.js";
import { i as n, n as c, o as m, r as p, t as l } from "./_shared.js";
import { t as f } from "./interaction-context.js";
import { t as b } from "./AITable.js";
var t = /* @__PURE__ */ o(i(), 1), r = { schema: "json" }, a = class extends l {
  get propDefs() {
    return r;
  }
  static get observedAttributes() {
    return Object.keys(r).map(c);
  }
  _renderReact() {
    const e = this._readAllProps().schema;
    return !e || typeof e != "object" || !e.id ? t.createElement(t.Fragment) : t.createElement(f, { onInteraction: (s) => p(this, "interaction", s) }, t.createElement(b, { schema: e }));
  }
};
n(a, r);
m("hf-ai-table", a);
export {
  a as AITableWC,
  a as default
};

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