import { jsx as e } from "react/jsx-runtime";
import "react";
import { connect as l } from "react-redux";
const u = (t) => /* @__PURE__ */ e(g, { ...t }), g = (t) => {
  const {
    editing: r = !1,
    unique: s,
    intl: C,
    "data-csv": S = "",
    "data-selected-chart-data": n = "{}",
    "data-height": o,
    "data-width": c = 100,
    "data-margin": d = 0,
    settings: a
  } = t, i = a ? a.apache_superset_url : "", p = decodeURIComponent(i), h = decodeURIComponent(n), m = `${p}/superset/explore/?form_data=${h}&standalone=1`;
  return /* @__PURE__ */ e("div", { id: `superset-chart-${s}`, children: /* @__PURE__ */ e(
    "iframe",
    {
      src: m,
      seamless: "seamless",
      title: "superset-chart",
      style: { border: "none", width: c + "%", height: o + "px", margin: d + "px" }
    }
  ) });
}, f = (t, r) => ({}), x = {}, _ = l(f, x)(u);
export {
  _ as default
};
