import { Button as a, ButtonType as m, ButtonStyle as c } from "./accelbyte-widgets107.mjs";
import { Dialog as s, DialogBody as p, DialogFooter as u } from "./accelbyte-widgets235.mjs";
import { t as f } from "./accelbyte-widgets58.mjs";
import { UserHelper as g } from "./accelbyte-widgets277.mjs";
import { Ctx as k } from "./accelbyte-widgets33.mjs";
import e from "react";
import { Trans as n } from "react-i18next";
import "./accelbyte-widgets274.mjs";
class P extends e.Component {
  constructor(t) {
    super(t);
  }
  render() {
    const { onCancel: t, onConfirm: o, platformId: r } = this.props, l = g.getPlatformName(r), i = k.getAppState().getBrandName();
    return /* @__PURE__ */ e.createElement(s, { className: "purchaseDialog", title: f("LinkedAccountPage.confirmUnlinkDialog.title"), isOpen: !0 }, /* @__PURE__ */ e.createElement(p, null, /* @__PURE__ */ e.createElement("p", { className: "dialogPlatformBodyText" }, /* @__PURE__ */ e.createElement(n, { i18nKey: "LinkedAccountPage.confirmUnlinkDialog.unlinkConfirm" }, "Do you want to unlink your ", /* @__PURE__ */ e.createElement("span", { className: "capitalize" }, { platformName: l }), " account from", { publisherName: i }, "?"))), /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement("div", { className: "flex justify-end" }, /* @__PURE__ */ e.createElement(
      a,
      {
        className: "btn btn-ghost mr-2 uppercase",
        buttonType: m.TEXT,
        buttonStyle: c.NONE,
        onClick: () => {
          t && t();
        }
      },
      /* @__PURE__ */ e.createElement(n, { i18nKey: "LinkAccountPage.cancel" }, "Cancel")
    ), /* @__PURE__ */ e.createElement(
      a,
      {
        className: "btn btn-primary uppercase",
        onClick: () => {
          o && o();
        }
      },
      /* @__PURE__ */ e.createElement(n, { i18nKey: "LinkAccountPage.unlink" }, "Unlink")
    ))));
  }
}
export {
  P as UnlinkAccountConfirmDialog
};
