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

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