import { Button as i } from "./accelbyte-widgets107.mjs";
import { Dialog as l, DialogBody as s, DialogFooter as d } from "./accelbyte-widgets235.mjs";
import { BaseEvent as r } from "./accelbyte-widgets333.mjs";
import e from "react";
import { Trans as t } from "react-i18next";
import "./accelbyte-widgets337.mjs";
class m extends r {
  openValidationOutdatedModal() {
    this.emit("openModal", void 0);
  }
}
const o = new m();
class O extends e.Component {
  constructor(n) {
    super(n), this.openModal = () => this.setState({ isOpen: !0 }), this.closeModal = () => this.setState({ isOpen: !1 }), this.state = {
      isOpen: !1
    };
  }
  componentDidMount() {
    o.register("openModal", this.openModal);
  }
  componentWillUnmount() {
    o.unregister("openModal", this.openModal);
  }
  render() {
    return /* @__PURE__ */ e.createElement(
      l,
      {
        title: /* @__PURE__ */ e.createElement(t, { i18nKey: "InputValidation.dialog.title" }, "Process Failed"),
        isOpen: this.state.isOpen,
        className: "inputValidationOutdatedModal"
      },
      /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement(t, { i18nKey: "InputValidation.dialog.bodyText" }, "This error occurs because we have updated the input ", /* @__PURE__ */ e.createElement("br", null), "validation format. Please resubmit.")),
      /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement(i, { className: "btn btn-primary btnClose", onClick: this.closeModal }, /* @__PURE__ */ e.createElement(t, { i18nKey: "Common.close" }, "Close")))
    );
  }
}
export {
  O as InputValidationOutdatedModal,
  o as validationOutdatedModalEvent
};
