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

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