import { jsxs as o, jsx as t } from "react/jsx-runtime";
import { GppBadFillW700 as n } from "@material-symbols-svg/react-rounded/icons/gpp-bad";
import { G as c, l as d, z as m } from "../../config-D-Ik_SSx.js";
import { CHAINS_LIST as u } from "../../constants/chains.js";
import { useTypedTranslation as h } from "../../localisation.js";
import "react";
import "@tanstack/react-query";
import "@defuse-protocol/one-click-sdk-typescript";
import "../../constants/aurora-assets.js";
import "../../utils/feeServiceTokens.js";
import "../../logger.js";
import "@scure/base";
import "zod";
import "../../utils/near/rpc.js";
import "ethers";
import "../../machine/machine.js";
import "../../index-DEq3oXQF.js";
import "@defuse-protocol/intents-sdk";
import "change-case";
import "../../localstorage-DVS0q1yC.js";
import "@defuse-protocol/internal-utils";
import "bs58";
import "axios";
import "../../network.js";
import "@ton/core";
import "../../utils/cn.js";
import "../../hooks/useMakeNearTransfer/nearClient.js";
import { useUnsupportedChain as f } from "../../hooks/useUnsupportedChain.js";
import "../../hooks/useOneClickExecutionStatus.js";
import { useHandleKeyDown as w } from "../../hooks/useHandleKeyDown.js";
import "@material-symbols-svg/react-rounded/icons/chevron-left";
import { Card as x } from "../../components/Card.js";
import "@material-symbols-svg/react-rounded/icons/close";
import "@material-symbols-svg/react-rounded/icons/emergency";
import "@material-symbols-svg/react-rounded/icons/error";
import "@material-symbols-svg/react-rounded/icons/verified";
import "@material-symbols-svg/react-rounded/icons/cached";
import "copy-text-to-clipboard";
import "@material-symbols-svg/react-rounded/icons/content-copy";
import "@material-symbols-svg/react-rounded/icons/check";
import "@material-symbols-svg/react-rounded/icons/arrow-downward";
import "@material-symbols-svg/react-rounded/icons/progress-activity";
import "../../components/Input.js";
import "../../components/InputAmount.js";
import "../../components/Notes.js";
import "@material-symbols-svg/react-rounded/icons/graphic-eq";
import { CloseButton as g } from "../../components/CloseButton.js";
import "../../components/ChainShortcut.js";
import "@radix-ui/react-tooltip";
import "@material-symbols-svg/react-rounded/icons/info";
import "chroma-js";
import "hsluv";
import "@headlessui/react";
import "../../components/Steps.js";
const Ct = () => {
  const { t: r } = h(), { providers: a } = c(), { unsupportedChain: p, clearUnsupportedChain: i } = f(), { switchChain: s, isSwitchingChain: l } = d({ providers: a });
  if (w("Escape", i), !p)
    return null;
  const e = u[p].label;
  return /* @__PURE__ */ o(x, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
    /* @__PURE__ */ t(
      g,
      {
        onClick: i,
        className: "absolute top-sw-2xl right-sw-2xl"
      }
    ),
    /* @__PURE__ */ t(n, { size: 48, className: "text-sw-status-error" }),
    /* @__PURE__ */ o("header", { className: "flex flex-col gap-sw-lg", children: [
      /* @__PURE__ */ t("h1", { className: "text-sw-label-lg text-sw-gray-50", children: r("submit.error.chainNotSupported.title", {
        defaultValue: "Your wallet doesn't support {{chain}}",
        chain: e
      }) }),
      /* @__PURE__ */ t("p", { className: "text-sw-body-md text-sw-gray-200", children: r("submit.error.chainNotSupported.description", {
        defaultValue: "Add the {{chain}} network to your wallet, or switch to a different wallet, then try again.",
        chain: e
      }) })
    ] }),
    /* @__PURE__ */ o("div", { className: "flex flex-col gap-sw-xl mt-sw-lg", children: [
      /* @__PURE__ */ t(
        m,
        {
          size: "lg",
          variant: "primary",
          state: l ? "loading" : "default",
          onClick: () => s(),
          children: r("submit.error.chainNotSupported.tryAgain", "Try again")
        }
      ),
      /* @__PURE__ */ t(m, { size: "lg", variant: "outlined", onClick: i, children: r("submit.error.chainNotSupported.dismiss", "Dismiss") })
    ] })
  ] });
};
export {
  Ct as ChainNotSupportedModal
};
//# sourceMappingURL=index.js.map
