import { Dialog as r, DialogBody as s, DialogFooter as c } from "./accelbyte-widgets235.mjs";
import { LauncherDownloadButton as i } from "./accelbyte-widgets543.mjs";
import { t as m } from "./accelbyte-widgets58.mjs";
import { DesktopChecker as o } from "@accelbyte/sdk";
import e from "react";
import { Trans as a } from "react-i18next";
import { OpenLibraryLauncherButton as d } from "./accelbyte-widgets219.mjs";
import "./accelbyte-widgets544.mjs";
class f extends e.Component {
  constructor(t) {
    super(t), this.renderDownloadLauncherMessage = () => !o.isDesktopApp() && /* @__PURE__ */ e.createElement(a, { i18nKey: "AppDetailPage.dialog.claimSuccess.downloadLauncherMessage" }, /* @__PURE__ */ e.createElement("p", { className: "message mt-4" }, "You can play this game using Launcher. Don't have Launcher? Click ", /* @__PURE__ */ e.createElement("strong", null, "here"), " to download and install."));
  }
  render() {
    const { item: t, isDialogOpen: n, onCloseDialog: l } = this.props;
    return /* @__PURE__ */ e.createElement(r, { title: m("CatalogPurchaseWidget.dialog.downloadLauncher.title"), isOpen: n, className: "downloadLauncherDialog" }, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement(a, { i18nKey: "CatalogPurchaseWidget.dialog.downloadLauncher.content" }, /* @__PURE__ */ e.createElement("p", { className: "message" }, "You can play this game using Launcher."), /* @__PURE__ */ e.createElement("p", { className: "message bottom" }, "Don't have Launcher? Click here to download and install."))), /* @__PURE__ */ e.createElement(c, { className: "dialogFooter" }, /* @__PURE__ */ e.createElement("button", { onClick: () => l(), className: "btn small btn-ghost btnCancel" }, /* @__PURE__ */ e.createElement(a, { i18nKey: "CatalogPurchaseWidget.dialog.downloadLauncher.cancel" }, "Cancel")), o.isDesktopApp() && /* @__PURE__ */ e.createElement(d, { item: t }), !o.isDesktopApp() && /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(a, { i18nKey: "CatalogPurchaseWidget.download" }, "DOWNLOAD"))));
  }
}
export {
  f as DownloadLauncherDialog
};
