import e from "react";
import c from "./accelbyte-widgets100.mjs";
class m extends e.Component {
  constructor(t) {
    super(t), this.checkoutJs = document.createElement("script");
  }
  componentDidMount() {
    this.checkoutJs.src = "https://cdn.checkout.com/js/framesv2.min.js", this.checkoutJs.async = !0, document.body.appendChild(this.checkoutJs);
  }
  componentWillUnmount() {
    document.body.removeChild(this.checkoutJs);
  }
  render() {
    return /* @__PURE__ */ e.createElement("div", { className: "paymentWidget" }, /* @__PURE__ */ e.createElement(c, { ...this.props }));
  }
}
export {
  m as PaymentWidget
};
