@rash2x/bridge-widget 0.8.12 → 0.8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1260,7 +1260,9 @@ const ChainSelectModal = ({
1260
1260
  ];
1261
1261
  const allSymbols = [
1262
1262
  selectedAssetSymbol.toUpperCase(),
1263
- ...getEquivalentSymbols(selectedAssetSymbol).map((s2) => s2.toUpperCase())
1263
+ ...getEquivalentSymbols(selectedAssetSymbol).map(
1264
+ (s2) => s2.toUpperCase()
1265
+ )
1264
1266
  ];
1265
1267
  const hasTokenOrEquiv = (chainKey) => allSymbols.some((sym) => !!assetMatrix[sym]?.[chainKey]);
1266
1268
  if (!hasTokenOrEquiv(dstChain.chainKey)) return void 0;
@@ -1379,8 +1381,13 @@ const ChainSelectModal = ({
1379
1381
  if (!result) return;
1380
1382
  const dstToken = assetMatrix?.[result.tokenSymbol.toUpperCase()]?.[chain2.chainKey];
1381
1383
  if (!dstToken?.address) return;
1382
- const availableSources = await getDestTokens(chain2.chainKey, dstToken.address);
1383
- const sourceChainKeys = new Set(availableSources.map((t22) => t22.chainKey ?? ""));
1384
+ const availableSources = await getDestTokens(
1385
+ chain2.chainKey,
1386
+ dstToken.address
1387
+ );
1388
+ const sourceChainKeys = new Set(
1389
+ availableSources.map((t22) => t22.chainKey ?? "")
1390
+ );
1384
1391
  let validSrc;
1385
1392
  for (const key of PRIORITY_CHAINS) {
1386
1393
  if (sourceChainKeys.has(key) && key !== fromChain?.chainKey && key !== chain2.chainKey) {
@@ -1412,8 +1419,13 @@ const ChainSelectModal = ({
1412
1419
  }
1413
1420
  }
1414
1421
  if (!dstToken?.address) return;
1415
- const availableSources = await getDestTokens(chain2.chainKey, dstToken.address);
1416
- const sourceChainKeys = new Set(availableSources.map((t22) => t22.chainKey ?? ""));
1422
+ const availableSources = await getDestTokens(
1423
+ chain2.chainKey,
1424
+ dstToken.address
1425
+ );
1426
+ const sourceChainKeys = new Set(
1427
+ availableSources.map((t22) => t22.chainKey ?? "")
1428
+ );
1417
1429
  let validSrc;
1418
1430
  for (const key of PRIORITY_CHAINS) {
1419
1431
  if (sourceChainKeys.has(key) && key !== fromChain?.chainKey && key !== chain2.chainKey) {
@@ -1483,12 +1495,9 @@ const ChainSelectModal = ({
1483
1495
  );
1484
1496
  };
1485
1497
  return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col", children: [
1486
- /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-xl leading-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0", children: [
1487
- /* @__PURE__ */ jsxRuntime.jsx("div", { children: t2("bridge.select") }),
1488
- /* @__PURE__ */ jsxRuntime.jsx("div", { children: t2(
1489
- isSource ? "bridge.sourceNetwork" : "bridge.destinationNetwork"
1490
- ) })
1491
- ] }) }) }),
1498
+ /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left pb-2", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-xl leading-8", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-0", children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: t2(
1499
+ isSource ? "bridge.selectSourceNetwork" : "bridge.selectDestinationNetwork"
1500
+ ) }) }) }) }),
1492
1501
  /* @__PURE__ */ jsxRuntime.jsx(
1493
1502
  SearchInput,
1494
1503
  {
@@ -26821,7 +26830,7 @@ class WalletConnectModal {
26821
26830
  }
26822
26831
  async initUi() {
26823
26832
  if (typeof window !== "undefined") {
26824
- await Promise.resolve().then(() => require("./index-Bwb-znal.cjs"));
26833
+ await Promise.resolve().then(() => require("./index-DNhnmjll.cjs"));
26825
26834
  const modal = document.createElement("wcm-modal");
26826
26835
  document.body.insertAdjacentElement("beforeend", modal);
26827
26836
  OptionsCtrl.setIsUiLoaded(true);
@@ -27743,4 +27752,4 @@ exports.useSettingsStore = useSettingsStore;
27743
27752
  exports.useSwapModel = useSwapModel;
27744
27753
  exports.useTokensStore = useTokensStore;
27745
27754
  exports.useTransactionStore = useTransactionStore;
27746
- //# sourceMappingURL=index-vHCZ6OHb.cjs.map
27755
+ //# sourceMappingURL=index-CnyWtwGE.cjs.map