import i from "react";
import n from "react-dom";
import { FrontifyUploader as s } from "./FrontifyUploader.es.js";
class a extends HTMLElement {
  constructor() {
    super();
  }
  connectedCallback() {
    const t = document.createElement("span");
    this.appendChild(t);
    const e = this.getAttribute("clientId"), r = this.getAttribute("images");
    if (this.removeAttribute("clientId"), this.removeAttribute("images"), e && r) {
      const o = JSON.parse(r);
      n.render(/* @__PURE__ */ i.createElement(s, {
        images: o,
        clientId: e
      }), t);
    }
  }
}
customElements.define("frontify-uploader", a);
export {
  a as FrontifyUploaderWc
};
//# sourceMappingURL=FrontifyUploaderWebcomponent.es.js.map
