@kimafinance/kima-transaction-widget 1.4.6 → 1.4.7

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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  // src/KimaProvider.tsx
4
- import * as React81 from "react";
4
+ import * as React48 from "react";
5
5
  import { createContext, useContext, useMemo as useMemo7 } from "react";
6
6
  import { Provider, useSelector as useSelector16 } from "react-redux";
7
7
 
@@ -1358,6 +1358,40 @@ var KimaNetwork = ({ width = 120, height = 15, ...rest }) => {
1358
1358
  };
1359
1359
  var KimaNetwork_default = KimaNetwork;
1360
1360
 
1361
+ // src/assets/icons/CFX.tsx
1362
+ import React40 from "react";
1363
+ var CFX = ({ width = 30, height = 30, ...rest }) => {
1364
+ return /* @__PURE__ */ React40.createElement(
1365
+ "svg",
1366
+ {
1367
+ xmlns: "http://www.w3.org/2000/svg",
1368
+ width,
1369
+ height,
1370
+ viewBox: "0 0 1766.6 2212",
1371
+ fill: "none",
1372
+ ...rest
1373
+ },
1374
+ /* @__PURE__ */ React40.createElement("g", null, /* @__PURE__ */ React40.createElement("g", null, /* @__PURE__ */ React40.createElement(
1375
+ "polygon",
1376
+ {
1377
+ fill: "#181818",
1378
+ fillRule: "evenodd",
1379
+ clipRule: "evenodd",
1380
+ points: "0,1309.5 879.5,426.3 1766.6,1317.2 1766.6,892.7 887.1,0 1,895.7"
1381
+ }
1382
+ ), /* @__PURE__ */ React40.createElement(
1383
+ "polygon",
1384
+ {
1385
+ fill: "#181818",
1386
+ fillRule: "evenodd",
1387
+ clipRule: "evenodd",
1388
+ points: "203.6,1528.4 875.6,2212 1555.4,1528.4 1348,1317.2 879.5,1789.6 626,1528.4 1090.7,1052.2 882.4,845.8"
1389
+ }
1390
+ )))
1391
+ );
1392
+ };
1393
+ var CFX_default = CFX;
1394
+
1361
1395
  // src/utils/constants.tsx
1362
1396
  import {
1363
1397
  arbitrum,
@@ -1366,9 +1400,12 @@ import {
1366
1400
  avalancheFuji,
1367
1401
  base,
1368
1402
  baseSepolia,
1403
+ berachain,
1369
1404
  berachainBepolia,
1370
1405
  bsc,
1371
1406
  bscTestnet,
1407
+ confluxESpace,
1408
+ confluxESpaceTestnet,
1372
1409
  mainnet,
1373
1410
  optimism,
1374
1411
  optimismSepolia,
@@ -1392,6 +1429,7 @@ var ChainName = /* @__PURE__ */ ((ChainName2) => {
1392
1429
  ChainName2["FIAT"] = "FIAT";
1393
1430
  ChainName2["BTC"] = "BTC";
1394
1431
  ChainName2["BERA"] = "BERA";
1432
+ ChainName2["CFX"] = "CFX";
1395
1433
  return ChainName2;
1396
1434
  })(ChainName || {});
1397
1435
  var CHAIN_NAMES_TO_APPKIT_NETWORK_MAINNET = {
@@ -1402,7 +1440,9 @@ var CHAIN_NAMES_TO_APPKIT_NETWORK_MAINNET = {
1402
1440
  ["BSC" /* BSC */]: bsc,
1403
1441
  ["OPT" /* OPTIMISM */]: optimism,
1404
1442
  ["ARB" /* ARBITRUM */]: arbitrum,
1405
- ["ZKE" /* POLYGON_ZKEVM */]: polygonZkEvm
1443
+ ["ZKE" /* POLYGON_ZKEVM */]: polygonZkEvm,
1444
+ ["BERA" /* BERA */]: berachain,
1445
+ ["CFX" /* CFX */]: confluxESpace
1406
1446
  };
1407
1447
  var CHAIN_NAMES_TO_APPKIT_NETWORK_TESTNET = {
1408
1448
  ["ETH" /* ETHEREUM */]: sepolia,
@@ -1413,7 +1453,8 @@ var CHAIN_NAMES_TO_APPKIT_NETWORK_TESTNET = {
1413
1453
  ["OPT" /* OPTIMISM */]: optimismSepolia,
1414
1454
  ["ARB" /* ARBITRUM */]: arbitrumSepolia,
1415
1455
  ["ZKE" /* POLYGON_ZKEVM */]: polygonZkEvmCardona,
1416
- ["BERA" /* BERA */]: berachainBepolia
1456
+ ["BERA" /* BERA */]: berachainBepolia,
1457
+ ["CFX" /* CFX */]: confluxESpaceTestnet
1417
1458
  };
1418
1459
  var CHAIN_NAMES_TO_STRING = {
1419
1460
  ["ETH" /* ETHEREUM */]: "Ethereum",
@@ -1428,7 +1469,8 @@ var CHAIN_NAMES_TO_STRING = {
1428
1469
  ["FIAT" /* FIAT */]: "Pay with FIAT",
1429
1470
  ["BTC" /* BTC */]: "Bitcoin",
1430
1471
  ["BASE" /* BASE */]: "Base",
1431
- ["BERA" /* BERA */]: "Bera"
1472
+ ["BERA" /* BERA */]: "Bera",
1473
+ ["CFX" /* CFX */]: "Conflux"
1432
1474
  };
1433
1475
  var CHAIN_STRING_TO_NAME = {
1434
1476
  ["Ethereum"]: "ETH" /* ETHEREUM */,
@@ -1443,7 +1485,8 @@ var CHAIN_STRING_TO_NAME = {
1443
1485
  ["Pay with FIAT"]: "FIAT" /* FIAT */,
1444
1486
  ["Bitcoin"]: "BTC" /* BTC */,
1445
1487
  ["Base"]: "BASE" /* BASE */,
1446
- ["Bera"]: "BERA" /* BERA */
1488
+ ["Bera"]: "BERA" /* BERA */,
1489
+ ["Conflux"]: "CFX" /* CFX */
1447
1490
  };
1448
1491
  var networkOptions = [
1449
1492
  {
@@ -1467,6 +1510,11 @@ var networkOptions = [
1467
1510
  label: "Bitcoin",
1468
1511
  icon: BTC_default
1469
1512
  },
1513
+ {
1514
+ id: "CFX" /* CFX */,
1515
+ label: "Conflux",
1516
+ icon: CFX_default
1517
+ },
1470
1518
  {
1471
1519
  id: "ETH" /* ETHEREUM */,
1472
1520
  label: "Ethereum",
@@ -1510,7 +1558,7 @@ var networkOptions = [
1510
1558
  ];
1511
1559
  var CLUSTER = "devnet";
1512
1560
  var SOLANA_HOST = clusterApiUrl(CLUSTER);
1513
- var isEVMChain = (chainId) => chainId === "ETH" /* ETHEREUM */ || chainId === "POL" /* POLYGON */ || chainId === "AVX" /* AVALANCHE */ || chainId === "BSC" /* BSC */ || chainId === "OPT" /* OPTIMISM */ || chainId === "ARB" /* ARBITRUM */ || chainId === "ZKE" /* POLYGON_ZKEVM */ || chainId === "BASE" /* BASE */ || chainId === "BERA" /* BERA */;
1561
+ var isEVMChain = (chainId) => chainId === "ETH" /* ETHEREUM */ || chainId === "POL" /* POLYGON */ || chainId === "AVX" /* AVALANCHE */ || chainId === "BSC" /* BSC */ || chainId === "OPT" /* OPTIMISM */ || chainId === "ARB" /* ARBITRUM */ || chainId === "ZKE" /* POLYGON_ZKEVM */ || chainId === "BASE" /* BASE */ || chainId === "BERA" /* BERA */ || chainId === "CFX" /* CFX */;
1514
1562
  var lightDemoAccounts = {
1515
1563
  EVM: "0x1150bd27bA25fa13806C98324F201dfe815A4502",
1516
1564
  // EVM: '0x10962c43ea1bfE1186Dbf59985Df4E1ce94Ca4a9', // personal for testing
@@ -1519,7 +1567,15 @@ var lightDemoAccounts = {
1519
1567
  TRX: "TBVn4bsBN4DhtZ7D3vEVpAyqkvdFn7zmpU"
1520
1568
  // TRX: 'TL6yGtzbHfQdBRFYh4TLFoU5iiPMmpQtur' // personal for testing
1521
1569
  };
1522
- var lightDemoNetworks = ["ARB", "AVX", "BASE", "OPT", "BSC", "SOL", "TRX"];
1570
+ var lightDemoNetworks = [
1571
+ "ARB",
1572
+ "AVX",
1573
+ "BASE",
1574
+ "OPT",
1575
+ "BSC",
1576
+ "SOL",
1577
+ "TRX"
1578
+ ];
1523
1579
 
1524
1580
  // src/interface.tsx
1525
1581
  var NetworkOptions = /* @__PURE__ */ ((NetworkOptions4) => {
@@ -2072,7 +2128,7 @@ var useGetEnvOptions = ({
2072
2128
  };
2073
2129
 
2074
2130
  // plugins/evm/index.tsx
2075
- import React75 from "react";
2131
+ import React42 from "react";
2076
2132
 
2077
2133
  // plugins/PluginBase.ts
2078
2134
  var PluginBase = class {
@@ -2109,7 +2165,7 @@ var PluginBase = class {
2109
2165
  };
2110
2166
 
2111
2167
  // plugins/evm/features/walletConnect/WalletProvider.tsx
2112
- import React40, { useEffect, useState } from "react";
2168
+ import React41, { useEffect, useState } from "react";
2113
2169
 
2114
2170
  // plugins/evm/config/modalConfig.ts
2115
2171
  import { createAppKit } from "@reown/appkit/react";
@@ -2128,7 +2184,9 @@ import {
2128
2184
  optimismSepolia as optimismSepolia2,
2129
2185
  polygon as polygon2,
2130
2186
  polygonAmoy as polygonAmoy2,
2131
- sepolia as sepolia3
2187
+ sepolia as sepolia3,
2188
+ confluxESpace as confluxESpace2,
2189
+ confluxESpaceTestnet as confluxESpaceTestnet2
2132
2190
  } from "@reown/appkit/networks";
2133
2191
  import { EthersAdapter } from "@reown/appkit-adapter-ethers";
2134
2192
  var appkitMainnetChains = [
@@ -2138,7 +2196,8 @@ var appkitMainnetChains = [
2138
2196
  base2,
2139
2197
  arbitrum2,
2140
2198
  optimism2,
2141
- avalanche2
2199
+ avalanche2,
2200
+ confluxESpace2
2142
2201
  ];
2143
2202
  var appkitTestnetChains = [
2144
2203
  sepolia3,
@@ -2148,7 +2207,8 @@ var appkitTestnetChains = [
2148
2207
  arbitrumSepolia3,
2149
2208
  optimismSepolia2,
2150
2209
  avalancheFuji2,
2151
- berachainBepolia2
2210
+ berachainBepolia2,
2211
+ confluxESpaceTestnet2
2152
2212
  ];
2153
2213
  var metadata = {
2154
2214
  name: "Kima Transaction Widget",
@@ -2197,9 +2257,9 @@ var WalletProvider = ({
2197
2257
  }
2198
2258
  }, [networkOption, isLoading, walletConnectProjectId]);
2199
2259
  if (!isReady) {
2200
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null);
2260
+ return /* @__PURE__ */ React41.createElement(React41.Fragment, null);
2201
2261
  }
2202
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null, children);
2262
+ return /* @__PURE__ */ React41.createElement(React41.Fragment, null, children);
2203
2263
  };
2204
2264
  var WalletProvider_default = WalletProvider;
2205
2265
 
@@ -2242,135 +2302,6 @@ var selectCCTransactionIdSeed = (state) => state.option.ccTransactionIdSeed;
2242
2302
  var selectCCTransactionStatus = (state) => state.option.ccTransactionStatus;
2243
2303
  var selectCCTransactionRetrying = (state) => state.option.ccTransactionRetrying;
2244
2304
 
2245
- // plugins/evm/utils/constants.tsx
2246
- import { clusterApiUrl as clusterApiUrl2 } from "@solana/web3.js";
2247
-
2248
- // plugins/evm/assets/icons/Cross.tsx
2249
- import React41 from "react";
2250
-
2251
- // plugins/evm/assets/icons/Minimize.tsx
2252
- import React42 from "react";
2253
-
2254
- // plugins/evm/assets/icons/FooterLogo.tsx
2255
- import React43 from "react";
2256
-
2257
- // plugins/evm/assets/icons/Check.tsx
2258
- import React44 from "react";
2259
-
2260
- // plugins/evm/assets/icons/Warning.tsx
2261
- import React45 from "react";
2262
-
2263
- // plugins/evm/assets/icons/ArrowRight.tsx
2264
- import React46 from "react";
2265
-
2266
- // plugins/evm/assets/icons/Arrow.tsx
2267
- import React47 from "react";
2268
-
2269
- // plugins/evm/assets/icons/Lock.tsx
2270
- import React48 from "react";
2271
-
2272
- // plugins/evm/assets/icons/Ethereum.tsx
2273
- import React49 from "react";
2274
-
2275
- // plugins/evm/assets/icons/Solana.tsx
2276
- import React50 from "react";
2277
-
2278
- // plugins/evm/assets/icons/Polygon.tsx
2279
- import React51 from "react";
2280
-
2281
- // plugins/evm/assets/icons/Polygon_zkEVM.tsx
2282
- import React52 from "react";
2283
-
2284
- // plugins/evm/assets/icons/Loader.tsx
2285
- import React53 from "react";
2286
-
2287
- // plugins/evm/assets/icons/Error.tsx
2288
- import React54 from "react";
2289
-
2290
- // plugins/evm/assets/icons/Avalanche.tsx
2291
- import React55 from "react";
2292
-
2293
- // plugins/evm/assets/icons/Arbitrum.tsx
2294
- import React56 from "react";
2295
-
2296
- // plugins/evm/assets/icons/Optimism.tsx
2297
- import React57 from "react";
2298
-
2299
- // plugins/evm/assets/icons/USDC.tsx
2300
- import React58 from "react";
2301
-
2302
- // plugins/evm/assets/icons/USDT.tsx
2303
- import React59 from "react";
2304
-
2305
- // plugins/evm/assets/icons/USDK.tsx
2306
- import React60 from "react";
2307
-
2308
- // plugins/evm/assets/icons/Fuse.tsx
2309
- import React61 from "react";
2310
-
2311
- // plugins/evm/assets/icons/Celo.tsx
2312
- import React62 from "react";
2313
-
2314
- // plugins/evm/assets/icons/GoodDollar.tsx
2315
- import React63 from "react";
2316
-
2317
- // plugins/evm/assets/icons/Copy.tsx
2318
- import React64 from "react";
2319
-
2320
- // plugins/evm/assets/icons/Bank.tsx
2321
- import React65 from "react";
2322
-
2323
- // plugins/evm/assets/icons/BSC.tsx
2324
- import React66 from "react";
2325
-
2326
- // plugins/evm/assets/icons/KEUR.tsx
2327
- import React67 from "react";
2328
-
2329
- // plugins/evm/assets/icons/Tron.tsx
2330
- import React68 from "react";
2331
-
2332
- // plugins/evm/assets/icons/BTC.tsx
2333
- import React69 from "react";
2334
-
2335
- // plugins/evm/assets/icons/Wallet.tsx
2336
- import React70 from "react";
2337
-
2338
- // plugins/evm/assets/icons/Explorer.tsx
2339
- import React71 from "react";
2340
-
2341
- // plugins/evm/assets/icons/ExternalUrl.tsx
2342
- import React72 from "react";
2343
-
2344
- // plugins/evm/assets/icons/Base.tsx
2345
- import React73 from "react";
2346
-
2347
- // plugins/evm/assets/icons/Bera.tsx
2348
- import React74 from "react";
2349
-
2350
- // plugins/evm/utils/constants.tsx
2351
- import {
2352
- arbitrum as arbitrum3,
2353
- arbitrumSepolia as arbitrumSepolia4,
2354
- avalanche as avalanche3,
2355
- avalancheFuji as avalancheFuji3,
2356
- base as base3,
2357
- baseSepolia as baseSepolia3,
2358
- bsc as bsc3,
2359
- bscTestnet as bscTestnet3,
2360
- mainnet as mainnet3,
2361
- optimism as optimism3,
2362
- optimismSepolia as optimismSepolia3,
2363
- polygon as polygon3,
2364
- polygonAmoy as polygonAmoy3,
2365
- polygonZkEvm as polygonZkEvm2,
2366
- polygonZkEvmCardona as polygonZkEvmCardona2,
2367
- sepolia as sepolia4,
2368
- berachainTestnetbArtio
2369
- } from "@reown/appkit/networks";
2370
- var CLUSTER2 = "devnet";
2371
- var SOLANA_HOST2 = clusterApiUrl2(CLUSTER2);
2372
- var isEVMChain2 = (chainId) => chainId === "ETH" /* ETHEREUM */ || chainId === "POL" /* POLYGON */ || chainId === "AVX" /* AVALANCHE */ || chainId === "BSC" /* BSC */ || chainId === "OPT" /* OPTIMISM */ || chainId === "ARB" /* ARBITRUM */ || chainId === "ZKE" /* POLYGON_ZKEVM */ || chainId === "BASE" /* BASE */ || chainId === "BERA" /* BERA */;
2373
-
2374
2305
  // plugins/evm/core/hooks/useEvmProvider.ts
2375
2306
  import { useAppKitAccount, useAppKitProvider } from "@reown/appkit/react";
2376
2307
  import { BrowserProvider, JsonRpcSigner } from "ethers";
@@ -2586,7 +2517,7 @@ function useBalance() {
2586
2517
  const { pools } = useGetPools_default(backendUrl, networkOption);
2587
2518
  const { walletAddress, walletProvider } = useEvmProvider();
2588
2519
  const userAddress = mode === "light" /* light */ ? lightDemoAccounts.EVM : walletAddress;
2589
- const enabled = !!userAddress && !!tokenOptions && !!selectedCoin && pools.length > 0 && isEVMChain2(sourceChain.shortName) && (!!walletProvider || mode === "light" /* light */);
2520
+ const enabled = !!userAddress && !!tokenOptions && !!selectedCoin && pools.length > 0 && isEVMChain(sourceChain.shortName) && (!!walletProvider || mode === "light" /* light */);
2590
2521
  const { data: allowanceData } = useQuery3({
2591
2522
  queryKey: [
2592
2523
  "evmAllowance",
@@ -3053,7 +2984,7 @@ var EvmPlugin = class extends PluginBase {
3053
2984
  walletConnectProjectId,
3054
2985
  isLoading
3055
2986
  }) => {
3056
- return /* @__PURE__ */ React75.createElement(
2987
+ return /* @__PURE__ */ React42.createElement(
3057
2988
  WalletProvider_default,
3058
2989
  {
3059
2990
  children,
@@ -3069,10 +3000,10 @@ var evmPlugin = new EvmPlugin(store);
3069
3000
  var evm_default = evmPlugin;
3070
3001
 
3071
3002
  // plugins/solana/index.tsx
3072
- import React77 from "react";
3003
+ import React44 from "react";
3073
3004
 
3074
3005
  // plugins/solana/features/walletConnect/WalletProvider.tsx
3075
- import React76 from "react";
3006
+ import React43 from "react";
3076
3007
  import {
3077
3008
  ConnectionProvider,
3078
3009
  WalletProvider as SolanaWalletProvider
@@ -3087,9 +3018,9 @@ import {
3087
3018
  } from "@solana/wallet-adapter-wallets";
3088
3019
 
3089
3020
  // plugins/solana/utils/constants.tsx
3090
- import { clusterApiUrl as clusterApiUrl3 } from "@solana/web3.js";
3021
+ import { clusterApiUrl as clusterApiUrl2 } from "@solana/web3.js";
3091
3022
  function getHostEndpoint(networkOption) {
3092
- return networkOption === "mainnet" ? "https://solana-rpc.publicnode.com" : clusterApiUrl3("devnet");
3023
+ return networkOption === "mainnet" ? "https://solana-rpc.publicnode.com" : clusterApiUrl2("devnet");
3093
3024
  }
3094
3025
  var networkOptions2 = [
3095
3026
  {
@@ -3110,7 +3041,7 @@ var WalletProvider2 = ({
3110
3041
  logger_default.debug(
3111
3042
  `WalletProvider initialized with projectId: ${walletConnectProjectId}`
3112
3043
  );
3113
- return /* @__PURE__ */ React76.createElement(ConnectionProvider, { endpoint }, /* @__PURE__ */ React76.createElement(
3044
+ return /* @__PURE__ */ React43.createElement(ConnectionProvider, { endpoint }, /* @__PURE__ */ React43.createElement(
3114
3045
  SolanaWalletProvider,
3115
3046
  {
3116
3047
  autoConnect: false,
@@ -3457,7 +3388,7 @@ var SolanaPlugin = class extends PluginBase {
3457
3388
  networkOption,
3458
3389
  walletConnectProjectId
3459
3390
  }) => {
3460
- return /* @__PURE__ */ React77.createElement(
3391
+ return /* @__PURE__ */ React44.createElement(
3461
3392
  WalletProvider_default2,
3462
3393
  {
3463
3394
  networkOption,
@@ -3471,10 +3402,10 @@ var solanaPlugin = new SolanaPlugin(store);
3471
3402
  var solana_default = solanaPlugin;
3472
3403
 
3473
3404
  // plugins/tron/index.tsx
3474
- import React79 from "react";
3405
+ import React46 from "react";
3475
3406
 
3476
3407
  // plugins/tron/features/walletConnect/WalletProvider.tsx
3477
- import React78, { useMemo as useMemo3 } from "react";
3408
+ import React45, { useMemo as useMemo3 } from "react";
3478
3409
  import { WalletProvider as TronWalletProviderBase } from "@tronweb3/tronwallet-adapter-react-hooks";
3479
3410
  import { LedgerAdapter } from "@tronweb3/tronwallet-adapter-ledger";
3480
3411
  import { TronLinkAdapter } from "@tronweb3/tronwallet-adapter-tronlink";
@@ -3516,7 +3447,7 @@ var WalletProvider3 = ({ children, networkOption }) => {
3516
3447
  adapters[0].switchChain("0x2b6653dc");
3517
3448
  }
3518
3449
  };
3519
- return /* @__PURE__ */ React78.createElement(
3450
+ return /* @__PURE__ */ React45.createElement(
3520
3451
  TronWalletProviderBase,
3521
3452
  {
3522
3453
  adapters,
@@ -4074,7 +4005,7 @@ var TronPlugin = class extends PluginBase {
4074
4005
  networkOption,
4075
4006
  walletConnectProjectId
4076
4007
  }) => {
4077
- return /* @__PURE__ */ React79.createElement(
4008
+ return /* @__PURE__ */ React46.createElement(
4078
4009
  WalletProvider_default3,
4079
4010
  {
4080
4011
  networkOption,
@@ -4088,7 +4019,7 @@ var tronPlugin = new TronPlugin(store);
4088
4019
  var tron_default = tronPlugin;
4089
4020
 
4090
4021
  // plugins/credit-card/index.tsx
4091
- import React80 from "react";
4022
+ import React47 from "react";
4092
4023
 
4093
4024
  // plugins/credit-card/core/hooks/useIsProviderReady.tsx
4094
4025
  import { useDispatch as useDispatch5, useSelector as useSelector15 } from "react-redux";
@@ -4146,7 +4077,7 @@ var CreditCardPlugin = class extends PluginBase {
4146
4077
  return chain.compatibility === "CC";
4147
4078
  };
4148
4079
  Provider = ({ children }) => {
4149
- return /* @__PURE__ */ React80.createElement(React80.Fragment, null, children);
4080
+ return /* @__PURE__ */ React47.createElement(React47.Fragment, null, children);
4150
4081
  };
4151
4082
  };
4152
4083
  var creditCardPlugin = new CreditCardPlugin(store);
@@ -4167,7 +4098,7 @@ var useKimaContext = () => {
4167
4098
  }
4168
4099
  return context;
4169
4100
  };
4170
- var InternalKimaProvider = React81.memo(
4101
+ var InternalKimaProvider = React48.memo(
4171
4102
  ({ kimaBackendUrl, walletConnectProjectId, children, logLevel }) => {
4172
4103
  const { data: envOptions, isLoading } = useGetEnvOptions({
4173
4104
  kimaBackendUrl
@@ -4181,7 +4112,7 @@ var InternalKimaProvider = React81.memo(
4181
4112
  const plugin = getPluginProvider(pluginData.id);
4182
4113
  if (plugin) {
4183
4114
  const { Provider: Provider3 } = plugin;
4184
- return /* @__PURE__ */ React81.createElement(
4115
+ return /* @__PURE__ */ React48.createElement(
4185
4116
  Provider3,
4186
4117
  {
4187
4118
  key: plugin.data.id,
@@ -4195,12 +4126,12 @@ var InternalKimaProvider = React81.memo(
4195
4126
  return acc;
4196
4127
  }, children);
4197
4128
  }, [plugins, walletConnectProjectId, envOptions, isLoading]);
4198
- return /* @__PURE__ */ React81.createElement(React81.Fragment, null, WrappedProviders);
4129
+ return /* @__PURE__ */ React48.createElement(React48.Fragment, null, WrappedProviders);
4199
4130
  }
4200
4131
  );
4201
4132
  var KimaProvider = ({
4202
4133
  walletConnectProjectId,
4203
- children = /* @__PURE__ */ React81.createElement(React81.Fragment, null),
4134
+ children = /* @__PURE__ */ React48.createElement(React48.Fragment, null),
4204
4135
  externalProvider,
4205
4136
  kimaBackendUrl = "http://localhost:3001",
4206
4137
  logLevel,
@@ -4235,7 +4166,7 @@ var KimaProvider = ({
4235
4166
  errorHandler,
4236
4167
  switchChainHandler
4237
4168
  };
4238
- return /* @__PURE__ */ React81.createElement(QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React81.createElement(Provider, { store }, /* @__PURE__ */ React81.createElement(KimaContext.Provider, { value: kimaContext }, /* @__PURE__ */ React81.createElement(
4169
+ return /* @__PURE__ */ React48.createElement(QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React48.createElement(Provider, { store }, /* @__PURE__ */ React48.createElement(KimaContext.Provider, { value: kimaContext }, /* @__PURE__ */ React48.createElement(
4239
4170
  InternalKimaProvider,
4240
4171
  {
4241
4172
  kimaBackendUrl,
@@ -4247,17 +4178,17 @@ var KimaProvider = ({
4247
4178
  var KimaProvider_default = KimaProvider;
4248
4179
 
4249
4180
  // src/components/KimaTransactionWidget.tsx
4250
- import React120, { useEffect as useEffect24, useState as useState18 } from "react";
4181
+ import React87, { useEffect as useEffect24, useState as useState18 } from "react";
4251
4182
 
4252
4183
  // src/components/KimaWidgetWrapper.tsx
4253
- import React118, { useEffect as useEffect23 } from "react";
4184
+ import React85, { useEffect as useEffect23 } from "react";
4254
4185
  import { useDispatch as useDispatch27, useSelector as useSelector47 } from "react-redux";
4255
4186
 
4256
4187
  // src/components/TransactionWidget.tsx
4257
- import React105, { useEffect as useEffect15, useMemo as useMemo12, useState as useState11 } from "react";
4188
+ import React72, { useEffect as useEffect15, useMemo as useMemo12, useState as useState11 } from "react";
4258
4189
 
4259
4190
  // src/components/reusable/Progressbar.tsx
4260
- import React82 from "react";
4191
+ import React49 from "react";
4261
4192
  import { useSelector as useSelector17 } from "react-redux";
4262
4193
  var stepInfo = [
4263
4194
  {
@@ -4278,12 +4209,12 @@ var stepInfo = [
4278
4209
  ];
4279
4210
  var Progressbar = ({ step, errorStep, setFocus, loadingStep }) => {
4280
4211
  const theme = useSelector17(selectTheme);
4281
- return /* @__PURE__ */ React82.createElement("div", { className: "kima-progressbar" }, /* @__PURE__ */ React82.createElement(
4212
+ return /* @__PURE__ */ React49.createElement("div", { className: "kima-progressbar" }, /* @__PURE__ */ React49.createElement(
4282
4213
  "div",
4283
4214
  {
4284
4215
  className: `value step-${step * 100 / 4}`
4285
4216
  }
4286
- ), /* @__PURE__ */ React82.createElement("div", { className: "step-indicators" }, stepInfo.map((item, index) => /* @__PURE__ */ React82.createElement(
4217
+ ), /* @__PURE__ */ React49.createElement("div", { className: "step-indicators" }, stepInfo.map((item, index) => /* @__PURE__ */ React49.createElement(
4287
4218
  "div",
4288
4219
  {
4289
4220
  key: item.title,
@@ -4294,14 +4225,14 @@ var Progressbar = ({ step, errorStep, setFocus, loadingStep }) => {
4294
4225
  if (index < 4) setFocus(index);
4295
4226
  }
4296
4227
  },
4297
- /* @__PURE__ */ React82.createElement("div", { className: "step-info" }, step < index && /* @__PURE__ */ React82.createElement(Lock_default, null), step >= index ? index === loadingStep ? /* @__PURE__ */ React82.createElement(Loader_default, { className: "loader" }) : index === errorStep ? /* @__PURE__ */ React82.createElement(Warning_default, null) : /* @__PURE__ */ React82.createElement(Check_default, null) : null, /* @__PURE__ */ React82.createElement("span", null, item.title))
4228
+ /* @__PURE__ */ React49.createElement("div", { className: "step-info" }, step < index && /* @__PURE__ */ React49.createElement(Lock_default, null), step >= index ? index === loadingStep ? /* @__PURE__ */ React49.createElement(Loader_default, { className: "loader" }) : index === errorStep ? /* @__PURE__ */ React49.createElement(Warning_default, null) : /* @__PURE__ */ React49.createElement(Check_default, null) : null, /* @__PURE__ */ React49.createElement("span", null, item.title))
4298
4229
  ))));
4299
4230
  };
4300
4231
  var Progressbar_default = Progressbar;
4301
4232
 
4302
4233
  // src/components/reusable/ExternalLink.tsx
4303
- import React83 from "react";
4304
- var ExternalLink = ({ to, children, className, rest }) => /* @__PURE__ */ React83.createElement(
4234
+ import React50 from "react";
4235
+ var ExternalLink = ({ to, children, className, rest }) => /* @__PURE__ */ React50.createElement(
4305
4236
  "a",
4306
4237
  {
4307
4238
  className,
@@ -4315,20 +4246,20 @@ var ExternalLink = ({ to, children, className, rest }) => /* @__PURE__ */ React8
4315
4246
  var ExternalLink_default = ExternalLink;
4316
4247
 
4317
4248
  // src/components/reusable/NetworkLabel.tsx
4318
- import React84 from "react";
4249
+ import React51 from "react";
4319
4250
  import { useSelector as useSelector18 } from "react-redux";
4320
4251
 
4321
4252
  // src/components/reusable/PrimaryButton.tsx
4322
- import React87 from "react";
4253
+ import React54 from "react";
4323
4254
 
4324
4255
  // src/assets/loading/180-ring.tsx
4325
- import React85 from "react";
4256
+ import React52 from "react";
4326
4257
  var Loading180Ring = ({
4327
4258
  width = 24,
4328
4259
  height = 24,
4329
4260
  fill = "white"
4330
4261
  }) => {
4331
- return /* @__PURE__ */ React85.createElement(
4262
+ return /* @__PURE__ */ React52.createElement(
4332
4263
  "svg",
4333
4264
  {
4334
4265
  width,
@@ -4337,7 +4268,7 @@ var Loading180Ring = ({
4337
4268
  viewBox: "0 0 24 24",
4338
4269
  xmlns: "http://www.w3.org/2000/svg"
4339
4270
  },
4340
- /* @__PURE__ */ React85.createElement("path", { d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" }, /* @__PURE__ */ React85.createElement(
4271
+ /* @__PURE__ */ React52.createElement("path", { d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" }, /* @__PURE__ */ React52.createElement(
4341
4272
  "animateTransform",
4342
4273
  {
4343
4274
  attributeName: "transform",
@@ -4352,7 +4283,7 @@ var Loading180Ring = ({
4352
4283
  var ring_default = Loading180Ring;
4353
4284
 
4354
4285
  // src/assets/loading/6-dots-scale.tsx
4355
- import React86 from "react";
4286
+ import React53 from "react";
4356
4287
 
4357
4288
  // src/components/reusable/PrimaryButton.tsx
4358
4289
  var PrimaryButton = ({
@@ -4363,7 +4294,7 @@ var PrimaryButton = ({
4363
4294
  disabled = false,
4364
4295
  ref
4365
4296
  }) => {
4366
- return /* @__PURE__ */ React87.createElement("div", { className: "primary-button-wrapper" }, /* @__PURE__ */ React87.createElement(
4297
+ return /* @__PURE__ */ React54.createElement("div", { className: "primary-button-wrapper" }, /* @__PURE__ */ React54.createElement(
4367
4298
  "button",
4368
4299
  {
4369
4300
  className: `primary-button ${className}`,
@@ -4371,14 +4302,14 @@ var PrimaryButton = ({
4371
4302
  ref,
4372
4303
  disabled
4373
4304
  },
4374
- isLoading && /* @__PURE__ */ React87.createElement("div", { className: "loading-indicator" }, /* @__PURE__ */ React87.createElement(ring_default, { width: 24, height: 24, fill: "white" })),
4305
+ isLoading && /* @__PURE__ */ React54.createElement("div", { className: "loading-indicator" }, /* @__PURE__ */ React54.createElement(ring_default, { width: 24, height: 24, fill: "white" })),
4375
4306
  children
4376
4307
  ));
4377
4308
  };
4378
4309
  var PrimaryButton_default = PrimaryButton;
4379
4310
 
4380
4311
  // src/components/reusable/SecondaryButton.tsx
4381
- import React88 from "react";
4312
+ import React55 from "react";
4382
4313
  var SecondaryButton = ({
4383
4314
  className,
4384
4315
  clickHandler,
@@ -4387,7 +4318,7 @@ var SecondaryButton = ({
4387
4318
  style,
4388
4319
  disabled = false,
4389
4320
  isLoading
4390
- }) => /* @__PURE__ */ React88.createElement(
4321
+ }) => /* @__PURE__ */ React55.createElement(
4391
4322
  "button",
4392
4323
  {
4393
4324
  className: `secondary-button ${className} ${theme}`,
@@ -4395,18 +4326,18 @@ var SecondaryButton = ({
4395
4326
  ...style,
4396
4327
  disabled
4397
4328
  },
4398
- isLoading && /* @__PURE__ */ React88.createElement("div", { className: "loading-indicator" }, /* @__PURE__ */ React88.createElement(ring_default, { width: 24, height: 24, fill: "black" })),
4329
+ isLoading && /* @__PURE__ */ React55.createElement("div", { className: "loading-indicator" }, /* @__PURE__ */ React55.createElement(ring_default, { width: 24, height: 24, fill: "black" })),
4399
4330
  children
4400
4331
  );
4401
4332
  var SecondaryButton_default = SecondaryButton;
4402
4333
 
4403
4334
  // src/components/reusable/Dropdown.tsx
4404
- import React89 from "react";
4335
+ import React56 from "react";
4405
4336
  import { useDispatch as useDispatch6 } from "react-redux";
4406
4337
  import { useSelector as useSelector19 } from "react-redux";
4407
4338
 
4408
4339
  // src/components/reusable/WalletButton.tsx
4409
- import React92, { useEffect as useEffect10, useMemo as useMemo8 } from "react";
4340
+ import React59, { useEffect as useEffect10, useMemo as useMemo8 } from "react";
4410
4341
  import { useDispatch as useDispatch7, useSelector as useSelector21 } from "react-redux";
4411
4342
 
4412
4343
  // src/hooks/useGetCurrentPlugin.tsx
@@ -4414,7 +4345,7 @@ import { useEffect as useEffect6, useState as useState5 } from "react";
4414
4345
  import { useSelector as useSelector20 } from "react-redux";
4415
4346
 
4416
4347
  // plugins/default/index.tsx
4417
- import React90 from "react";
4348
+ import React57 from "react";
4418
4349
  var DefaultPlugin = class extends PluginBase {
4419
4350
  constructor(store2) {
4420
4351
  super({
@@ -4449,7 +4380,7 @@ var DefaultPlugin = class extends PluginBase {
4449
4380
  networkOption,
4450
4381
  walletConnectProjectId
4451
4382
  }) => {
4452
- return /* @__PURE__ */ React90.createElement("div", null, children);
4383
+ return /* @__PURE__ */ React57.createElement("div", null, children);
4453
4384
  };
4454
4385
  };
4455
4386
  var defaultPlugin = new DefaultPlugin(store);
@@ -4542,7 +4473,7 @@ import { useWallet as useTronWallet2 } from "@tronweb3/tronwallet-adapter-react-
4542
4473
  import { useAppKit, useAppKitState } from "@reown/appkit/react";
4543
4474
 
4544
4475
  // src/components/reusable/CopyButton.tsx
4545
- import React91, { useEffect as useEffect8, useState as useState7 } from "react";
4476
+ import React58, { useEffect as useEffect8, useState as useState7 } from "react";
4546
4477
  var CopyButton = ({ text }) => {
4547
4478
  const [copyClicked, setCopyClicked] = useState7(false);
4548
4479
  useEffect8(() => {
@@ -4551,7 +4482,7 @@ var CopyButton = ({ text }) => {
4551
4482
  setCopyClicked(false);
4552
4483
  }, 2e3);
4553
4484
  }, [copyClicked]);
4554
- return /* @__PURE__ */ React91.createElement(
4485
+ return /* @__PURE__ */ React58.createElement(
4555
4486
  "span",
4556
4487
  {
4557
4488
  className: "copy-btn",
@@ -4560,7 +4491,7 @@ var CopyButton = ({ text }) => {
4560
4491
  navigator.clipboard.writeText(text);
4561
4492
  }
4562
4493
  },
4563
- copyClicked ? /* @__PURE__ */ React91.createElement(Check_default, null) : /* @__PURE__ */ React91.createElement(Copy_default, null)
4494
+ copyClicked ? /* @__PURE__ */ React58.createElement(Check_default, null) : /* @__PURE__ */ React58.createElement(Copy_default, null)
4564
4495
  );
4565
4496
  };
4566
4497
  var CopyButton_default = CopyButton;
@@ -4786,13 +4717,13 @@ var WalletButton = ({
4786
4717
  }
4787
4718
  dispatch(setSourceAddress(connectedAddress));
4788
4719
  }, [isReady]);
4789
- return /* @__PURE__ */ React92.createElement(
4720
+ return /* @__PURE__ */ React59.createElement(
4790
4721
  "div",
4791
4722
  {
4792
4723
  className: `wallet-button ${isConnected ? "connected" : "disconnected"} ${theme.colorMode} ${errorBelow ? "error-below" : ""}`,
4793
4724
  "data-testid": "connect-wallet-btn"
4794
4725
  },
4795
- /* @__PURE__ */ React92.createElement("div", { className: "info-wrapper" }, /* @__PURE__ */ React92.createElement(
4726
+ /* @__PURE__ */ React59.createElement("div", { className: "info-wrapper" }, /* @__PURE__ */ React59.createElement(
4796
4727
  "button",
4797
4728
  {
4798
4729
  className: `${isConnected ? "connected" : "disconnected"} ${width < 640 && "shortened"} ${theme.colorMode}`,
@@ -4802,16 +4733,16 @@ var WalletButton = ({
4802
4733
  isConnected && !placeholder ? width >= 640 ? `${connectedAddress || ""}` : getShortenedAddress(connectedAddress || "") : "",
4803
4734
  !isConnected && mode === "light" /* light */ && "Select Network to Load Account",
4804
4735
  !isConnected && mode !== "light" /* light */ && initialSelection && "Select Network to Connect",
4805
- !isConnected && mode !== "light" /* light */ && !initialSelection && /* @__PURE__ */ React92.createElement(Wallet_default, null),
4736
+ !isConnected && mode !== "light" /* light */ && !initialSelection && /* @__PURE__ */ React59.createElement(Wallet_default, null),
4806
4737
  !isConnected && mode !== "light" /* light */ && !initialSelection && "Connect Wallet"
4807
- ), isConnected && !placeholder && /* @__PURE__ */ React92.createElement(CopyButton_default, { text: connectedAddress })),
4808
- isConnected && !placeholder && balance !== void 0 && decimals !== void 0 ? /* @__PURE__ */ React92.createElement("p", { className: "balance-info" }, formatUSD(bigIntToNumber({ value: balance, decimals })), " ", selectedCoin, " available") : null
4738
+ ), isConnected && !placeholder && /* @__PURE__ */ React59.createElement(CopyButton_default, { text: connectedAddress })),
4739
+ isConnected && !placeholder && balance !== void 0 && decimals !== void 0 ? /* @__PURE__ */ React59.createElement("p", { className: "balance-info" }, formatUSD(bigIntToNumber({ value: balance, decimals })), " ", selectedCoin, " available") : null
4809
4740
  );
4810
4741
  };
4811
4742
  var WalletButton_default = WalletButton;
4812
4743
 
4813
4744
  // src/components/reusable/CoinDropdown.tsx
4814
- import React94, { useEffect as useEffect12, useRef, useState as useState8 } from "react";
4745
+ import React61, { useEffect as useEffect12, useRef, useState as useState8 } from "react";
4815
4746
  import { useSelector as useSelector23 } from "react-redux";
4816
4747
  import { useDispatch as useDispatch9 } from "react-redux";
4817
4748
 
@@ -4848,7 +4779,7 @@ function useCurrencyOptions(isSourceChain) {
4848
4779
  }
4849
4780
 
4850
4781
  // src/components/reusable/TokenIcon.tsx
4851
- import React93 from "react";
4782
+ import React60 from "react";
4852
4783
  var COIN_LIST = {
4853
4784
  KEUR: KEUR_default,
4854
4785
  KIMAUSD: USDK_default,
@@ -4870,7 +4801,7 @@ function TokenIcon({
4870
4801
  logger_default.warn(`Token icon not found for symbol: ${symbol}`);
4871
4802
  return null;
4872
4803
  }
4873
- return /* @__PURE__ */ React93.createElement("div", { className: "icon-wrapper" }, /* @__PURE__ */ React93.createElement(Icon, { width, height }));
4804
+ return /* @__PURE__ */ React60.createElement("div", { className: "icon-wrapper" }, /* @__PURE__ */ React60.createElement(Icon, { width, height }));
4874
4805
  }
4875
4806
 
4876
4807
  // src/components/reusable/CoinDropdown.tsx
@@ -4903,41 +4834,41 @@ var CoinDropdown = ({
4903
4834
  dispatch(setTargetCurrency(symbol));
4904
4835
  }
4905
4836
  };
4906
- return /* @__PURE__ */ React94.createElement(
4837
+ return /* @__PURE__ */ React61.createElement(
4907
4838
  "div",
4908
4839
  {
4909
4840
  className: `coin-dropdown ${theme.colorMode} ${collapsed ? "collapsed" : "toggled"}`,
4910
4841
  onClick: () => setCollapsed((prev) => !prev),
4911
4842
  ref
4912
4843
  },
4913
- /* @__PURE__ */ React94.createElement("div", { className: "coin-wrapper" }, /* @__PURE__ */ React94.createElement(TokenIcon, { symbol: tokenSymbol, width: 24, height: 24 }), /* @__PURE__ */ React94.createElement("span", { className: "coin" }, tokenSymbol)),
4914
- /* @__PURE__ */ React94.createElement(
4844
+ /* @__PURE__ */ React61.createElement("div", { className: "coin-wrapper" }, /* @__PURE__ */ React61.createElement(TokenIcon, { symbol: tokenSymbol, width: 24, height: 24 }), /* @__PURE__ */ React61.createElement("span", { className: "coin" }, tokenSymbol)),
4845
+ /* @__PURE__ */ React61.createElement(
4915
4846
  "div",
4916
4847
  {
4917
4848
  className: `coin-menu ${theme.colorMode} ${collapsed ? "collapsed" : "toggled"}`
4918
4849
  },
4919
- tokenList.map((token) => /* @__PURE__ */ React94.createElement(
4850
+ tokenList.map((token) => /* @__PURE__ */ React61.createElement(
4920
4851
  "div",
4921
4852
  {
4922
4853
  className: `coin-item ${theme.colorMode}`,
4923
4854
  key: token.symbol,
4924
4855
  onClick: () => handleDropdownItemClick(token.symbol)
4925
4856
  },
4926
- /* @__PURE__ */ React94.createElement(TokenIcon, { symbol: token.symbol, width: 24, height: 24 }),
4927
- /* @__PURE__ */ React94.createElement("p", null, token.symbol)
4857
+ /* @__PURE__ */ React61.createElement(TokenIcon, { symbol: token.symbol, width: 24, height: 24 }),
4858
+ /* @__PURE__ */ React61.createElement("p", null, token.symbol)
4928
4859
  ))
4929
4860
  ),
4930
- /* @__PURE__ */ React94.createElement("div", { className: `dropdown-icon ${collapsed ? "toggled" : "collapsed"}` }, /* @__PURE__ */ React94.createElement(Arrow_default, { fill: "none" }))
4861
+ /* @__PURE__ */ React61.createElement("div", { className: `dropdown-icon ${collapsed ? "toggled" : "collapsed"}` }, /* @__PURE__ */ React61.createElement(Arrow_default, { fill: "none" }))
4931
4862
  );
4932
4863
  };
4933
4864
  var CoinDropdown_default = CoinDropdown;
4934
4865
 
4935
4866
  // src/components/reusable/ConfirmDetails.tsx
4936
- import React97, { useEffect as useEffect13, useMemo as useMemo10, useState as useState9 } from "react";
4867
+ import React64, { useEffect as useEffect13, useMemo as useMemo10, useState as useState9 } from "react";
4937
4868
  import { useSelector as useSelector25 } from "react-redux";
4938
4869
 
4939
4870
  // src/components/reusable/ChainIcon.tsx
4940
- import React95 from "react";
4871
+ import React62 from "react";
4941
4872
  var chainIcons = {
4942
4873
  ETH: Ethereum_default,
4943
4874
  POL: Polygon_default,
@@ -4951,19 +4882,20 @@ var chainIcons = {
4951
4882
  SOL: Solana_default,
4952
4883
  FIAT: Bank_default,
4953
4884
  BERA: Bera_default,
4885
+ CFX: CFX_default,
4954
4886
  CC: CreditCard_default
4955
4887
  };
4956
4888
  function ChainIcon({ symbol }) {
4957
4889
  const Icon = symbol === "FIAT" ? chainIcons["CC"] : chainIcons[symbol];
4958
4890
  if (!Icon) {
4959
4891
  logger_default.warn(`Chain icon not found for symbol: ${symbol}`);
4960
- return /* @__PURE__ */ React95.createElement("div", null);
4892
+ return /* @__PURE__ */ React62.createElement("div", null);
4961
4893
  }
4962
- return /* @__PURE__ */ React95.createElement("div", { className: "icon" }, /* @__PURE__ */ React95.createElement(Icon, null));
4894
+ return /* @__PURE__ */ React62.createElement("div", { className: "icon" }, /* @__PURE__ */ React62.createElement(Icon, null));
4963
4895
  }
4964
4896
 
4965
4897
  // src/components/reusable/FeeDeductionRadioButtons.tsx
4966
- import React96 from "react";
4898
+ import React63 from "react";
4967
4899
  import { useDispatch as useDispatch10, useSelector as useSelector24 } from "react-redux";
4968
4900
  var FeeDeductionRadioButtons = ({ disabled }) => {
4969
4901
  const dispatch = useDispatch10();
@@ -4980,7 +4912,7 @@ var FeeDeductionRadioButtons = ({ disabled }) => {
4980
4912
  const handleChange = (value) => {
4981
4913
  dispatch(setFeeDeduct(value));
4982
4914
  };
4983
- return /* @__PURE__ */ React96.createElement("div", { className: `fee-deduction-radio-container ${theme.colorMode}` }, /* @__PURE__ */ React96.createElement("div", { className: "fee-options" }, Number(amount) - totalFee > 0 && /* @__PURE__ */ React96.createElement("label", { className: `fee-option ${disabled ? "disabled" : ""}` }, /* @__PURE__ */ React96.createElement(
4915
+ return /* @__PURE__ */ React63.createElement("div", { className: `fee-deduction-radio-container ${theme.colorMode}` }, /* @__PURE__ */ React63.createElement("div", { className: "fee-options" }, Number(amount) - totalFee > 0 && /* @__PURE__ */ React63.createElement("label", { className: `fee-option ${disabled ? "disabled" : ""}` }, /* @__PURE__ */ React63.createElement(
4984
4916
  "input",
4985
4917
  {
4986
4918
  type: "radio",
@@ -4989,11 +4921,11 @@ var FeeDeductionRadioButtons = ({ disabled }) => {
4989
4921
  disabled,
4990
4922
  onChange: () => handleChange(true)
4991
4923
  }
4992
- ), /* @__PURE__ */ React96.createElement("span", { className: `radio-label ${theme.colorMode}` }, `Pay $${formatterFloat.format(
4924
+ ), /* @__PURE__ */ React63.createElement("span", { className: `radio-label ${theme.colorMode}` }, `Pay $${formatterFloat.format(
4993
4925
  Number(amount)
4994
4926
  )} ${sourceCurrency} in ${sourceNetwork.name} to receive $${formatterFloat.format(
4995
4927
  Number(amount) - totalFee
4996
- )} ${targetCurrency} in ${targetNetwork.name}`)), /* @__PURE__ */ React96.createElement("label", { className: `fee-option ${disabled ? "disabled" : ""}` }, /* @__PURE__ */ React96.createElement(
4928
+ )} ${targetCurrency} in ${targetNetwork.name}`)), /* @__PURE__ */ React63.createElement("label", { className: `fee-option ${disabled ? "disabled" : ""}` }, /* @__PURE__ */ React63.createElement(
4997
4929
  "input",
4998
4930
  {
4999
4931
  type: "radio",
@@ -5002,7 +4934,7 @@ var FeeDeductionRadioButtons = ({ disabled }) => {
5002
4934
  disabled,
5003
4935
  onChange: () => handleChange(false)
5004
4936
  }
5005
- ), /* @__PURE__ */ React96.createElement("span", { className: `radio-label ${theme.colorMode}` }, `Pay $${formatterFloat.format(
4937
+ ), /* @__PURE__ */ React63.createElement("span", { className: `radio-label ${theme.colorMode}` }, `Pay $${formatterFloat.format(
5006
4938
  Number(amount) + totalFee
5007
4939
  )} ${sourceCurrency} in ${sourceNetwork.name} to receive $${formatterFloat.format(
5008
4940
  Number(amount)
@@ -5047,13 +4979,13 @@ var ConfirmDetails = ({
5047
4979
  useEffect13(() => {
5048
4980
  width === 0 && updateWidth(window.innerWidth);
5049
4981
  }, []);
5050
- return /* @__PURE__ */ React97.createElement("div", { className: `confirm-details ${theme.colorMode}` }, /* @__PURE__ */ React97.createElement("p", null, "Step ", isApproved ? "2" : "1", "\xA0of 2\xA0\xA0\xA0", isApproved ? "Submit transaction" : originNetwork.shortName === "FIAT" /* FIAT */ ? "Bank Details" : "Approval"), originNetwork.shortName === "FIAT" /* FIAT */ ? /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "IBAN:"), /* @__PURE__ */ React97.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React97.createElement(ChainIcon, { symbol: originNetworkOption?.shortName }), "FIAT"), /* @__PURE__ */ React97.createElement("p", null, "ES6621000418401234567891")), /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "Recipient:"), /* @__PURE__ */ React97.createElement("p", null, "Kima Sandbox")), /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "BIC:"), /* @__PURE__ */ React97.createElement("p", null, "CAIXESBBXXX")), /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "Description:"), /* @__PURE__ */ React97.createElement("p", { className: "signature" }, signature))) : /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "Source ", originNetwork.shortName !== "CC" && "wallet", ":"), /* @__PURE__ */ React97.createElement("div", { className: "network-details" }, /* @__PURE__ */ React97.createElement("div", { className: "kima-card-network-container" }, /* @__PURE__ */ React97.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React97.createElement(ChainIcon, { symbol: originNetworkOption?.shortName }), originNetworkOption.name)), originNetwork.shortName !== "CC" && /* @__PURE__ */ React97.createElement("p", { className: theme.colorMode }, dAppOption === "LPDrain" /* LPDrain */ ? targetAddress : connectedAddress))), /* @__PURE__ */ React97.createElement("div", { className: "detail-item amount" }, /* @__PURE__ */ React97.createElement("span", { className: "amount-container" }, /* @__PURE__ */ React97.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React97.createElement("span", null, "Amount to Transfer "), /* @__PURE__ */ React97.createElement("div", { className: "coin-details" }, /* @__PURE__ */ React97.createElement("p", null, formatBigInt(txValues.allowanceAmount), " ", sourceCurrency))), /* @__PURE__ */ React97.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React97.createElement("span", null, "Total Fees"), /* @__PURE__ */ React97.createElement(
4982
+ return /* @__PURE__ */ React64.createElement("div", { className: `confirm-details ${theme.colorMode}` }, /* @__PURE__ */ React64.createElement("p", null, "Step ", isApproved ? "2" : "1", "\xA0of 2\xA0\xA0\xA0", isApproved ? "Submit transaction" : originNetwork.shortName === "FIAT" /* FIAT */ ? "Bank Details" : "Approval"), originNetwork.shortName === "FIAT" /* FIAT */ ? /* @__PURE__ */ React64.createElement("div", null, /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "IBAN:"), /* @__PURE__ */ React64.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React64.createElement(ChainIcon, { symbol: originNetworkOption?.shortName }), "FIAT"), /* @__PURE__ */ React64.createElement("p", null, "ES6621000418401234567891")), /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "Recipient:"), /* @__PURE__ */ React64.createElement("p", null, "Kima Sandbox")), /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "BIC:"), /* @__PURE__ */ React64.createElement("p", null, "CAIXESBBXXX")), /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "Description:"), /* @__PURE__ */ React64.createElement("p", { className: "signature" }, signature))) : /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "Source ", originNetwork.shortName !== "CC" && "wallet", ":"), /* @__PURE__ */ React64.createElement("div", { className: "network-details" }, /* @__PURE__ */ React64.createElement("div", { className: "kima-card-network-container" }, /* @__PURE__ */ React64.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React64.createElement(ChainIcon, { symbol: originNetworkOption?.shortName }), originNetworkOption.name)), originNetwork.shortName !== "CC" && /* @__PURE__ */ React64.createElement("p", { className: theme.colorMode }, dAppOption === "LPDrain" /* LPDrain */ ? targetAddress : connectedAddress))), /* @__PURE__ */ React64.createElement("div", { className: "detail-item amount" }, /* @__PURE__ */ React64.createElement("span", { className: "amount-container" }, /* @__PURE__ */ React64.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React64.createElement("span", null, "Amount to Transfer "), /* @__PURE__ */ React64.createElement("div", { className: "coin-details" }, /* @__PURE__ */ React64.createElement("p", null, formatBigInt(txValues.allowanceAmount), " ", sourceCurrency))), /* @__PURE__ */ React64.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React64.createElement("span", null, "Total Fees"), /* @__PURE__ */ React64.createElement(
5051
4983
  "div",
5052
4984
  {
5053
4985
  className: "fee-collapse",
5054
4986
  onClick: () => setFeeCollapsed(!feeCollapsed)
5055
4987
  },
5056
- /* @__PURE__ */ React97.createElement(
4988
+ /* @__PURE__ */ React64.createElement(
5057
4989
  MiniArrow_default,
5058
4990
  {
5059
4991
  width: 15,
@@ -5064,16 +4996,16 @@ var ConfirmDetails = ({
5064
4996
  }
5065
4997
  }
5066
4998
  ),
5067
- /* @__PURE__ */ React97.createElement("span", { className: "service-fee" }, formatBigInt(totalFee), " ", sourceCurrency)
5068
- )), /* @__PURE__ */ React97.createElement("div", { className: `fee-breakdown ${feeCollapsed ? "collapsed" : ""}` }, /* @__PURE__ */ React97.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React97.createElement("span", null, originNetwork.shortName === "CC" ? "Credit Card Processing Fee" : `Source Network Fee (${originNetwork.shortName})`), /* @__PURE__ */ React97.createElement("span", { className: "service-fee" }, formatBigInt(sourceFee), " ", sourceCurrency)), /* @__PURE__ */ React97.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React97.createElement("span", null, "Target Network Fee (", targetNetwork.shortName, ")"), /* @__PURE__ */ React97.createElement("span", { className: "service-fee" }, formatBigInt(targetFee), " ", targetCurrency)), /* @__PURE__ */ React97.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React97.createElement("span", null, "KIMA Service Fee"), /* @__PURE__ */ React97.createElement("span", { className: "service-fee" }, formatBigInt(kimaFee), " ", sourceCurrency))), /* @__PURE__ */ React97.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React97.createElement("span", null, "Target Transfer Amount"), /* @__PURE__ */ React97.createElement("span", { className: "service-fee" }, formatBigInt(txValues.submitAmount), " ", targetCurrency)))), targetNetwork.shortName === "FIAT" /* FIAT */ ? /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "IBAN:"), /* @__PURE__ */ React97.createElement("p", null, bankDetails.iban), /* @__PURE__ */ React97.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React97.createElement(ChainIcon, { symbol: targetNetworkOption?.shortName }), "FIAT")), /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "Recipient:"), /* @__PURE__ */ React97.createElement("p", null, bankDetails.recipient))) : /* @__PURE__ */ React97.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React97.createElement("span", { className: "label" }, "Target wallet:"), /* @__PURE__ */ React97.createElement("div", { className: "network-details" }, /* @__PURE__ */ React97.createElement("div", { className: "kima-card-network-container" }, /* @__PURE__ */ React97.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React97.createElement(ChainIcon, { symbol: targetNetworkOption?.shortName }), targetNetworkOption?.name)), /* @__PURE__ */ React97.createElement("p", { className: theme.colorMode }, mode === "light" /* light */ ? targetNetwork.shortName === "SOL" ? lightDemoAccounts.SOL : targetNetwork.shortName === "TRX" ? lightDemoAccounts.TRX : lightDemoAccounts.EVM : dAppOption === "LPDrain" /* LPDrain */ ? connectedAddress : targetAddress))), mode === "bridge" /* bridge */ && BigInt(totalFee.value) > BigInt(0) ? (
4999
+ /* @__PURE__ */ React64.createElement("span", { className: "service-fee" }, formatBigInt(totalFee), " ", sourceCurrency)
5000
+ )), /* @__PURE__ */ React64.createElement("div", { className: `fee-breakdown ${feeCollapsed ? "collapsed" : ""}` }, /* @__PURE__ */ React64.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React64.createElement("span", null, originNetwork.shortName === "CC" ? "Credit Card Processing Fee" : `Source Network Fee (${originNetwork.shortName})`), /* @__PURE__ */ React64.createElement("span", { className: "service-fee" }, formatBigInt(sourceFee), " ", sourceCurrency)), /* @__PURE__ */ React64.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React64.createElement("span", null, "Target Network Fee (", targetNetwork.shortName, ")"), /* @__PURE__ */ React64.createElement("span", { className: "service-fee" }, formatBigInt(targetFee), " ", targetCurrency)), /* @__PURE__ */ React64.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React64.createElement("span", null, "KIMA Service Fee"), /* @__PURE__ */ React64.createElement("span", { className: "service-fee" }, formatBigInt(kimaFee), " ", sourceCurrency))), /* @__PURE__ */ React64.createElement("div", { className: "amount-details" }, /* @__PURE__ */ React64.createElement("span", null, "Target Transfer Amount"), /* @__PURE__ */ React64.createElement("span", { className: "service-fee" }, formatBigInt(txValues.submitAmount), " ", targetCurrency)))), targetNetwork.shortName === "FIAT" /* FIAT */ ? /* @__PURE__ */ React64.createElement("div", null, /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "IBAN:"), /* @__PURE__ */ React64.createElement("p", null, bankDetails.iban), /* @__PURE__ */ React64.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React64.createElement(ChainIcon, { symbol: targetNetworkOption?.shortName }), "FIAT")), /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "Recipient:"), /* @__PURE__ */ React64.createElement("p", null, bankDetails.recipient))) : /* @__PURE__ */ React64.createElement("div", { className: "detail-item" }, /* @__PURE__ */ React64.createElement("span", { className: "label" }, "Target wallet:"), /* @__PURE__ */ React64.createElement("div", { className: "network-details" }, /* @__PURE__ */ React64.createElement("div", { className: "kima-card-network-container" }, /* @__PURE__ */ React64.createElement("span", { className: `kima-card-network-label ${theme.colorMode}` }, /* @__PURE__ */ React64.createElement(ChainIcon, { symbol: targetNetworkOption?.shortName }), targetNetworkOption?.name)), /* @__PURE__ */ React64.createElement("p", { className: theme.colorMode }, mode === "light" /* light */ ? targetNetwork.shortName === "SOL" ? lightDemoAccounts.SOL : targetNetwork.shortName === "TRX" ? lightDemoAccounts.TRX : lightDemoAccounts.EVM : dAppOption === "LPDrain" /* LPDrain */ ? connectedAddress : targetAddress))), mode === "bridge" /* bridge */ && BigInt(totalFee.value) > BigInt(0) ? (
5069
5001
  // <FeeDeductionSlider />
5070
- /* @__PURE__ */ React97.createElement(FeeDeductionRadioButtons_default, { disabled: feeOptionDisabled })
5002
+ /* @__PURE__ */ React64.createElement(FeeDeductionRadioButtons_default, { disabled: feeOptionDisabled })
5071
5003
  ) : null);
5072
5004
  };
5073
5005
  var ConfirmDetails_default = ConfirmDetails;
5074
5006
 
5075
5007
  // src/components/reusable/AddressInput.tsx
5076
- import React98, { useEffect as useEffect14 } from "react";
5008
+ import React65, { useEffect as useEffect14 } from "react";
5077
5009
  import { useDispatch as useDispatch11, useSelector as useSelector26 } from "react-redux";
5078
5010
  var AddressInput = ({
5079
5011
  theme,
@@ -5112,7 +5044,7 @@ var AddressInput = ({
5112
5044
  mode,
5113
5045
  dispatch
5114
5046
  ]);
5115
- return /* @__PURE__ */ React98.createElement(
5047
+ return /* @__PURE__ */ React65.createElement(
5116
5048
  "input",
5117
5049
  {
5118
5050
  className: `kima-address-input ${theme}`,
@@ -5127,11 +5059,11 @@ var AddressInput = ({
5127
5059
  var AddressInput_default = AddressInput;
5128
5060
 
5129
5061
  // src/components/reusable/CustomCheckbox.tsx
5130
- import React99 from "react";
5062
+ import React66 from "react";
5131
5063
  import { useSelector as useSelector27 } from "react-redux";
5132
5064
 
5133
5065
  // src/components/reusable/StepBox.tsx
5134
- import React100, { useMemo as useMemo11 } from "react";
5066
+ import React67, { useMemo as useMemo11 } from "react";
5135
5067
  import { useSelector as useSelector28 } from "react-redux";
5136
5068
  var stepInfo2 = [
5137
5069
  {
@@ -5163,61 +5095,61 @@ var StepBox = ({ step, errorStep, loadingStep, data }) => {
5163
5095
  () => networks.find((network) => network.shortName === data?.targetChain),
5164
5096
  [data, networks]
5165
5097
  );
5166
- return /* @__PURE__ */ React100.createElement("div", { className: "kima-stepbox" }, /* @__PURE__ */ React100.createElement("div", { className: `content-wrapper ${theme.colorMode}` }, stepInfo2.map((item, index) => /* @__PURE__ */ React100.createElement("div", { key: item.title, className: "step-item" }, /* @__PURE__ */ React100.createElement(
5098
+ return /* @__PURE__ */ React67.createElement("div", { className: "kima-stepbox" }, /* @__PURE__ */ React67.createElement("div", { className: `content-wrapper ${theme.colorMode}` }, stepInfo2.map((item, index) => /* @__PURE__ */ React67.createElement("div", { key: item.title, className: "step-item" }, /* @__PURE__ */ React67.createElement(
5167
5099
  "div",
5168
5100
  {
5169
5101
  className: `info-item
5170
5102
  ${step >= index ? index === loadingStep ? "active" : index === errorStep ? "error" : "completed" : ""}
5171
5103
  ${step < index && "locked"} ${theme.colorMode}`
5172
5104
  },
5173
- step < index && /* @__PURE__ */ React100.createElement(Lock_default, null),
5174
- step >= index ? index === loadingStep ? /* @__PURE__ */ React100.createElement(Loader_default, { className: "loader" }) : index === errorStep ? /* @__PURE__ */ React100.createElement(Warning_default, null) : /* @__PURE__ */ React100.createElement(Check_default, null) : null,
5175
- /* @__PURE__ */ React100.createElement("p", null, item.title)
5176
- ), index === 0 && data?.kimaTxHash ? /* @__PURE__ */ React100.createElement("div", { className: `info-item ${theme.colorMode}` }, /* @__PURE__ */ React100.createElement("div", { className: "icon" }, /* @__PURE__ */ React100.createElement(USDK_default, { width: 30, height: 30 })), /* @__PURE__ */ React100.createElement("p", { className: "chain-name" }, "Kima TX Hash:"), /* @__PURE__ */ React100.createElement("p", null, /* @__PURE__ */ React100.createElement(
5105
+ step < index && /* @__PURE__ */ React67.createElement(Lock_default, null),
5106
+ step >= index ? index === loadingStep ? /* @__PURE__ */ React67.createElement(Loader_default, { className: "loader" }) : index === errorStep ? /* @__PURE__ */ React67.createElement(Warning_default, null) : /* @__PURE__ */ React67.createElement(Check_default, null) : null,
5107
+ /* @__PURE__ */ React67.createElement("p", null, item.title)
5108
+ ), index === 0 && data?.kimaTxHash ? /* @__PURE__ */ React67.createElement("div", { className: `info-item ${theme.colorMode}` }, /* @__PURE__ */ React67.createElement("div", { className: "icon" }, /* @__PURE__ */ React67.createElement(USDK_default, { width: 30, height: 30 })), /* @__PURE__ */ React67.createElement("p", { className: "chain-name" }, "Kima TX Hash:"), /* @__PURE__ */ React67.createElement("p", null, /* @__PURE__ */ React67.createElement(
5177
5109
  ExternalLink_default,
5178
5110
  {
5179
5111
  to: `${explorerUrl}/transactions/?tx=${data?.kimaTxHash}`
5180
5112
  },
5181
5113
  getShortenedAddress(data?.kimaTxHash || "")
5182
- ), /* @__PURE__ */ React100.createElement(CopyButton_default, { text: data?.kimaTxHash }))) : null, index === 1 && data?.tssPullHash && sourceChain?.shortName !== "CC" ? /* @__PURE__ */ React100.createElement(
5114
+ ), /* @__PURE__ */ React67.createElement(CopyButton_default, { text: data?.kimaTxHash }))) : null, index === 1 && data?.tssPullHash && sourceChain?.shortName !== "CC" ? /* @__PURE__ */ React67.createElement(
5183
5115
  "div",
5184
5116
  {
5185
5117
  className: `info-item ${theme.colorMode} source-chain ${step >= 3 ? "paid" : ""}`
5186
5118
  },
5187
- /* @__PURE__ */ React100.createElement(ChainIcon, { symbol: data.sourceChain }),
5188
- /* @__PURE__ */ React100.createElement("p", { className: "chain-name" }, sourceChain?.name, " TX Hash:"),
5189
- /* @__PURE__ */ React100.createElement("p", null, /* @__PURE__ */ React100.createElement(
5119
+ /* @__PURE__ */ React67.createElement(ChainIcon, { symbol: data.sourceChain }),
5120
+ /* @__PURE__ */ React67.createElement("p", { className: "chain-name" }, sourceChain?.name, " TX Hash:"),
5121
+ /* @__PURE__ */ React67.createElement("p", null, /* @__PURE__ */ React67.createElement(
5190
5122
  ExternalLink_default,
5191
5123
  {
5192
5124
  to: `${sourceChain?.blockExplorers?.default.url}/${data?.sourceChain === "TRX" /* TRON */ ? "#/transaction" : "tx"}/${data?.tssPullHash}${data?.sourceChain === "SOL" /* SOLANA */ && networkOption === "testnet" /* testnet */ ? "?cluster=devnet" : ""}`
5193
5125
  },
5194
5126
  getShortenedAddress(data?.tssPullHash || "")
5195
- ), /* @__PURE__ */ React100.createElement(CopyButton_default, { text: data?.tssPullHash || "" }))
5196
- ) : null, index === 3 && data?.tssRefundHash ? /* @__PURE__ */ React100.createElement("div", { className: `info-item ${theme.colorMode} target-chain` }, /* @__PURE__ */ React100.createElement(ChainIcon, { symbol: data.sourceChain }), /* @__PURE__ */ React100.createElement("p", { className: "chain-name" }, sourceChain?.name, " TX Hash:"), /* @__PURE__ */ React100.createElement("p", null, /* @__PURE__ */ React100.createElement(
5127
+ ), /* @__PURE__ */ React67.createElement(CopyButton_default, { text: data?.tssPullHash || "" }))
5128
+ ) : null, index === 3 && data?.tssRefundHash ? /* @__PURE__ */ React67.createElement("div", { className: `info-item ${theme.colorMode} target-chain` }, /* @__PURE__ */ React67.createElement(ChainIcon, { symbol: data.sourceChain }), /* @__PURE__ */ React67.createElement("p", { className: "chain-name" }, sourceChain?.name, " TX Hash:"), /* @__PURE__ */ React67.createElement("p", null, /* @__PURE__ */ React67.createElement(
5197
5129
  ExternalLink_default,
5198
5130
  {
5199
5131
  to: `${sourceChain?.blockExplorers?.default.url}/${data?.sourceChain === "TRX" /* TRON */ ? "#/transaction" : "tx"}/${data?.tssRefundHash}${data?.sourceChain === "SOL" /* SOLANA */ && networkOption === "testnet" /* testnet */ ? "?cluster=devnet" : ""}`
5200
5132
  },
5201
5133
  getShortenedAddress(data?.tssRefundHash || "")
5202
- ), /* @__PURE__ */ React100.createElement(CopyButton_default, { text: data?.tssRefundHash || "" }))) : null, index === 3 && data?.tssReleaseHash ? /* @__PURE__ */ React100.createElement("div", { className: `info-item ${theme.colorMode} target-chain` }, /* @__PURE__ */ React100.createElement(ChainIcon, { symbol: data.targetChain }), /* @__PURE__ */ React100.createElement("p", { className: "chain-name" }, targetChain?.name, " TX Hash:"), /* @__PURE__ */ React100.createElement("p", null, /* @__PURE__ */ React100.createElement(
5134
+ ), /* @__PURE__ */ React67.createElement(CopyButton_default, { text: data?.tssRefundHash || "" }))) : null, index === 3 && data?.tssReleaseHash ? /* @__PURE__ */ React67.createElement("div", { className: `info-item ${theme.colorMode} target-chain` }, /* @__PURE__ */ React67.createElement(ChainIcon, { symbol: data.targetChain }), /* @__PURE__ */ React67.createElement("p", { className: "chain-name" }, targetChain?.name, " TX Hash:"), /* @__PURE__ */ React67.createElement("p", null, /* @__PURE__ */ React67.createElement(
5203
5135
  ExternalLink_default,
5204
5136
  {
5205
5137
  to: `${targetChain?.blockExplorers?.default.url}/${data?.targetChain === "TRX" /* TRON */ ? "#/transaction" : "tx"}/${data?.tssReleaseHash}${data?.targetChain === "SOL" /* SOLANA */ && networkOption === "testnet" /* testnet */ ? "?cluster=devnet" : ""}`
5206
5138
  },
5207
5139
  getShortenedAddress(data?.tssReleaseHash || "")
5208
- ), /* @__PURE__ */ React100.createElement(CopyButton_default, { text: data?.tssReleaseHash || "" }))) : null))));
5140
+ ), /* @__PURE__ */ React67.createElement(CopyButton_default, { text: data?.tssReleaseHash || "" }))) : null))));
5209
5141
  };
5210
5142
  var StepBox_default = StepBox;
5211
5143
 
5212
5144
  // src/components/reusable/BankInput.tsx
5213
- import React101 from "react";
5145
+ import React68 from "react";
5214
5146
  import { useDispatch as useDispatch12 } from "react-redux";
5215
5147
  import { useSelector as useSelector29 } from "react-redux";
5216
5148
  var BankInput = () => {
5217
5149
  const dispatch = useDispatch12();
5218
5150
  const theme = useSelector29(selectTheme);
5219
5151
  const bankDetails = useSelector29(selectBankDetails);
5220
- return /* @__PURE__ */ React101.createElement("div", { className: "bank-input" }, /* @__PURE__ */ React101.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React101.createElement("span", { className: "label" }, "IBAN:"), /* @__PURE__ */ React101.createElement(
5152
+ return /* @__PURE__ */ React68.createElement("div", { className: "bank-input" }, /* @__PURE__ */ React68.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React68.createElement("span", { className: "label" }, "IBAN:"), /* @__PURE__ */ React68.createElement(
5221
5153
  "input",
5222
5154
  {
5223
5155
  className: "kima-address-input",
@@ -5225,7 +5157,7 @@ var BankInput = () => {
5225
5157
  value: bankDetails.iban,
5226
5158
  onChange: (e) => dispatch(setBankDetails({ ...bankDetails, iban: e.target.value }))
5227
5159
  }
5228
- )), /* @__PURE__ */ React101.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React101.createElement("span", { className: "label" }, "Recipient:"), /* @__PURE__ */ React101.createElement(
5160
+ )), /* @__PURE__ */ React68.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React68.createElement("span", { className: "label" }, "Recipient:"), /* @__PURE__ */ React68.createElement(
5229
5161
  "input",
5230
5162
  {
5231
5163
  className: "kima-address-input",
@@ -5240,7 +5172,7 @@ var BankInput = () => {
5240
5172
  var BankInput_default = BankInput;
5241
5173
 
5242
5174
  // src/components/reusable/TxButton.tsx
5243
- import React102 from "react";
5175
+ import React69 from "react";
5244
5176
  import { useDispatch as useDispatch13 } from "react-redux";
5245
5177
  import { useSelector as useSelector30 } from "react-redux";
5246
5178
  var TxButton = ({ theme }) => {
@@ -5249,14 +5181,14 @@ var TxButton = ({ theme }) => {
5249
5181
  dispatch(setPendingTxPopup(true));
5250
5182
  };
5251
5183
  const txCount = useSelector30(selectPendingTxs);
5252
- return /* @__PURE__ */ React102.createElement(
5184
+ return /* @__PURE__ */ React69.createElement(
5253
5185
  "button",
5254
5186
  {
5255
5187
  className: `secondary-button tx-button ${theme.colorMode}`,
5256
5188
  onClick: handleClick
5257
5189
  },
5258
5190
  txCount,
5259
- /* @__PURE__ */ React102.createElement(
5191
+ /* @__PURE__ */ React69.createElement(
5260
5192
  ring_default,
5261
5193
  {
5262
5194
  height: 16,
@@ -5383,17 +5315,17 @@ var useGetTxData = (txId, dAppOption, backendUrl) => {
5383
5315
  var useGetTxData_default = useGetTxData;
5384
5316
 
5385
5317
  // src/components/reusable/TransactionStatusMessage.tsx
5386
- import React103 from "react";
5318
+ import React70 from "react";
5387
5319
  var TransactionStatusMessage = ({
5388
5320
  isCompleted,
5389
5321
  transactionId
5390
5322
  }) => {
5391
- return /* @__PURE__ */ React103.createElement("div", { className: "transaction-status-message" }, /* @__PURE__ */ React103.createElement("h2", null, isCompleted !== "Completed" /* COMPLETED */ && "Your transaction is currently being processed.", " ", "Please copy the Transaction ID below for future reference. You can use this ID to track the transaction status or resolve any issues if needed."), /* @__PURE__ */ React103.createElement("span", { className: "transaction-copy" }, /* @__PURE__ */ React103.createElement("h3", null, transactionId), /* @__PURE__ */ React103.createElement(CopyButton_default, { text: transactionId })));
5323
+ return /* @__PURE__ */ React70.createElement("div", { className: "transaction-status-message" }, /* @__PURE__ */ React70.createElement("h2", null, isCompleted !== "Completed" /* COMPLETED */ && "Your transaction is currently being processed.", " ", "Please copy the Transaction ID below for future reference. You can use this ID to track the transaction status or resolve any issues if needed."), /* @__PURE__ */ React70.createElement("span", { className: "transaction-copy" }, /* @__PURE__ */ React70.createElement("h3", null, transactionId), /* @__PURE__ */ React70.createElement(CopyButton_default, { text: transactionId })));
5392
5324
  };
5393
5325
  var TransactionStatusMessage_default = TransactionStatusMessage;
5394
5326
 
5395
5327
  // src/components/reusable/TransactionSearch.tsx
5396
- import React104, { useRef as useRef3, useState as useState10 } from "react";
5328
+ import React71, { useRef as useRef3, useState as useState10 } from "react";
5397
5329
  import { useSelector as useSelector31 } from "react-redux";
5398
5330
  import { useDispatch as useDispatch14 } from "react-redux";
5399
5331
  import toast2 from "react-hot-toast";
@@ -5406,7 +5338,7 @@ var TransactionSearch = () => {
5406
5338
  const handleSearch = async () => {
5407
5339
  if (transactionId.length <= 0)
5408
5340
  return toast2.error("You must provide a valid transaction id", {
5409
- icon: /* @__PURE__ */ React104.createElement(Error_default, null)
5341
+ icon: /* @__PURE__ */ React71.createElement(Error_default, null)
5410
5342
  });
5411
5343
  try {
5412
5344
  const data = await getTxData({
@@ -5423,11 +5355,11 @@ var TransactionSearch = () => {
5423
5355
  logger_default.error("Error searching transaction: ", error);
5424
5356
  return toast2.error(
5425
5357
  "Transaction not found. Please check for the proper transaction id.",
5426
- { icon: /* @__PURE__ */ React104.createElement(Error_default, null) }
5358
+ { icon: /* @__PURE__ */ React71.createElement(Error_default, null) }
5427
5359
  );
5428
5360
  }
5429
5361
  };
5430
- return /* @__PURE__ */ React104.createElement("div", { className: "form-item transaction-search" }, /* @__PURE__ */ React104.createElement("div", { className: "transaction-input" }, /* @__PURE__ */ React104.createElement("span", { className: "label" }, "Search Transaction:"), /* @__PURE__ */ React104.createElement(
5362
+ return /* @__PURE__ */ React71.createElement("div", { className: "form-item transaction-search" }, /* @__PURE__ */ React71.createElement("div", { className: "transaction-input" }, /* @__PURE__ */ React71.createElement("span", { className: "label" }, "Search Transaction:"), /* @__PURE__ */ React71.createElement(
5431
5363
  "input",
5432
5364
  {
5433
5365
  className: `${theme.colorMode}`,
@@ -5437,7 +5369,7 @@ var TransactionSearch = () => {
5437
5369
  onChange: (e) => setTransactionId(e.target.value),
5438
5370
  spellCheck: false
5439
5371
  }
5440
- )), /* @__PURE__ */ React104.createElement(SecondaryButton_default, { clickHandler: handleSearch }, "Search"));
5372
+ )), /* @__PURE__ */ React71.createElement(SecondaryButton_default, { clickHandler: handleSearch }, "Search"));
5441
5373
  };
5442
5374
  var TransactionSearch_default = TransactionSearch;
5443
5375
 
@@ -5497,7 +5429,7 @@ var TransactionWidget = ({ theme }) => {
5497
5429
  toast3.error(
5498
5430
  "The provided transaction id is not valid, please use a different one or contact support for further assistance",
5499
5431
  {
5500
- icon: /* @__PURE__ */ React105.createElement(Error_default, null)
5432
+ icon: /* @__PURE__ */ React72.createElement(Error_default, null)
5501
5433
  }
5502
5434
  );
5503
5435
  }, [error]);
@@ -5521,7 +5453,7 @@ var TransactionWidget = ({ theme }) => {
5521
5453
  setErrorStep(1);
5522
5454
  setLoadingStep(-1);
5523
5455
  logger_default.error("transaction failed:", data.failReason);
5524
- toast3.error("Unavailable", { icon: /* @__PURE__ */ React105.createElement(Error_default, null) });
5456
+ toast3.error("Unavailable", { icon: /* @__PURE__ */ React72.createElement(Error_default, null) });
5525
5457
  setErrorMessage("Unavailable");
5526
5458
  } else if (status === "Paid" /* PAID */) {
5527
5459
  setStep(3);
@@ -5532,7 +5464,7 @@ var TransactionWidget = ({ theme }) => {
5532
5464
  toast3.error(
5533
5465
  "Failed to release tokens to target! Starting refund process.",
5534
5466
  {
5535
- icon: /* @__PURE__ */ React105.createElement(Error_default, null)
5467
+ icon: /* @__PURE__ */ React72.createElement(Error_default, null)
5536
5468
  }
5537
5469
  );
5538
5470
  setErrorMessage(
@@ -5543,7 +5475,7 @@ var TransactionWidget = ({ theme }) => {
5543
5475
  setErrorStep(3);
5544
5476
  setLoadingStep(-1);
5545
5477
  toast3.error("Failed to refund tokens to source!", {
5546
- icon: /* @__PURE__ */ React105.createElement(Error_default, null)
5478
+ icon: /* @__PURE__ */ React72.createElement(Error_default, null)
5547
5479
  });
5548
5480
  setErrorMessage("Failed to refund tokens to source!");
5549
5481
  } else if (status === "RefundCompleted" /* REFUNDCOMPLETED */) {
@@ -5551,7 +5483,7 @@ var TransactionWidget = ({ theme }) => {
5551
5483
  setErrorStep(3);
5552
5484
  setLoadingStep(-1);
5553
5485
  toast3.success("Refund completed!", {
5554
- icon: /* @__PURE__ */ React105.createElement(Error_default, null)
5486
+ icon: /* @__PURE__ */ React72.createElement(Error_default, null)
5555
5487
  });
5556
5488
  setErrorMessage("Refund completed!");
5557
5489
  } else if (status === "FailedToPay" /* FAILEDTOPAY */) {
@@ -5560,7 +5492,7 @@ var TransactionWidget = ({ theme }) => {
5560
5492
  setLoadingStep(-1);
5561
5493
  logger_default.error("transaction failed:", data.failReason);
5562
5494
  toast3.error("Failed to release tokens to target!", {
5563
- icon: /* @__PURE__ */ React105.createElement(Error_default, null)
5495
+ icon: /* @__PURE__ */ React72.createElement(Error_default, null)
5564
5496
  });
5565
5497
  setErrorMessage("Failed to release tokens to target!");
5566
5498
  } else if (status === "FailedToPull" /* FAILEDTOPULL */) {
@@ -5568,7 +5500,7 @@ var TransactionWidget = ({ theme }) => {
5568
5500
  setErrorStep(1);
5569
5501
  setLoadingStep(-1);
5570
5502
  logger_default.error("transaction failed:", data.failReason);
5571
- toast3.error("Failed to pull tokens from source!", { icon: /* @__PURE__ */ React105.createElement(Error_default, null) });
5503
+ toast3.error("Failed to pull tokens from source!", { icon: /* @__PURE__ */ React72.createElement(Error_default, null) });
5572
5504
  setErrorMessage("Failed to pull tokens from source!");
5573
5505
  } else if (status === "Completed" /* COMPLETED */) {
5574
5506
  setStep(4);
@@ -5629,7 +5561,7 @@ var TransactionWidget = ({ theme }) => {
5629
5561
  dispatch(setTxId(-1));
5630
5562
  dispatch(setSubmitted(false));
5631
5563
  };
5632
- return /* @__PURE__ */ React105.createElement(Provider2, { store }, /* @__PURE__ */ React105.createElement(
5564
+ return /* @__PURE__ */ React72.createElement(Provider2, { store }, /* @__PURE__ */ React72.createElement(
5633
5565
  "div",
5634
5566
  {
5635
5567
  className: `kima-card transaction-card ${theme.colorMode} ${minimized ? "minimized" : ""}`,
@@ -5637,17 +5569,17 @@ var TransactionWidget = ({ theme }) => {
5637
5569
  background: theme.colorMode === "light" /* light */ ? theme.backgroundColorLight : theme.backgroundColorDark
5638
5570
  }
5639
5571
  },
5640
- /* @__PURE__ */ React105.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React105.createElement("div", { className: "topbar" }, /* @__PURE__ */ React105.createElement("div", { className: "title" }, isValidTxId && !error ? /* @__PURE__ */ React105.createElement("div", { className: "transaction-title" }, mode !== "status" /* status */ ? data?.status === "Completed" /* COMPLETED */ ? "Transferred " : "Transfering " : isEmptyStatus ? "Fetching transaction status " : data?.status === "Completed" /* COMPLETED */ ? "Transfered " : "Transfering ", mode !== "status" /* status */ ? Number(amount) !== 0 ? transactionSourceChain?.shortName === "CC" ? bigIntToNumber(txValues.allowanceAmount).toFixed(2) : formatBigInt(txValues.allowanceAmount) : "" : data?.amount || "", " ", mode !== "status" /* status */ ? `${sourceSymbol} ` : isEmptyStatus ? "" : `(${data?.sourceSymbol})`, /* @__PURE__ */ React105.createElement("div", { className: "title-icon" }, /* @__PURE__ */ React105.createElement(
5572
+ /* @__PURE__ */ React72.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React72.createElement("div", { className: "topbar" }, /* @__PURE__ */ React72.createElement("div", { className: "title" }, isValidTxId && !error ? /* @__PURE__ */ React72.createElement("div", { className: "transaction-title" }, mode !== "status" /* status */ ? data?.status === "Completed" /* COMPLETED */ ? "Transferred " : "Transfering " : isEmptyStatus ? "Fetching transaction status " : data?.status === "Completed" /* COMPLETED */ ? "Transfered " : "Transfering ", mode !== "status" /* status */ ? Number(amount) !== 0 ? transactionSourceChain?.shortName === "CC" ? bigIntToNumber(txValues.allowanceAmount).toFixed(2) : formatBigInt(txValues.allowanceAmount) : "" : data?.amount || "", " ", mode !== "status" /* status */ ? `${sourceSymbol} ` : isEmptyStatus ? "" : `(${data?.sourceSymbol})`, /* @__PURE__ */ React72.createElement("div", { className: "title-icon" }, /* @__PURE__ */ React72.createElement(
5641
5573
  ChainIcon,
5642
5574
  {
5643
5575
  symbol: transactionSourceChain?.shortName
5644
5576
  }
5645
- )), " ", mode !== "status" /* status */ ? `${transactionSourceChain?.name}` : isEmptyStatus ? "" : `${data?.sourceChain === "FIAT" ? "CC" : data?.sourceChain}`, " ", mode !== "status" /* status */ ? `\u2192 ` : isEmptyStatus ? "" : `\u2192 `, mode !== "status" /* status */ ? Number(amount) !== 0 ? transactionSourceChain?.shortName === "CC" ? bigIntToNumber(txValues.submitAmount).toFixed(2) : formatBigInt(txValues.submitAmount) : "" : data?.amount || "", " ", mode !== "status" /* status */ ? `${targetSymbol}${" "}` : isEmptyStatus ? "" : `${data?.targetSymbol}${" "}`, /* @__PURE__ */ React105.createElement("div", { className: "title-icon" }, /* @__PURE__ */ React105.createElement(
5577
+ )), " ", mode !== "status" /* status */ ? `${transactionSourceChain?.name}` : isEmptyStatus ? "" : `${data?.sourceChain === "FIAT" ? "CC" : data?.sourceChain}`, " ", mode !== "status" /* status */ ? `\u2192 ` : isEmptyStatus ? "" : `\u2192 `, mode !== "status" /* status */ ? Number(amount) !== 0 ? transactionSourceChain?.shortName === "CC" ? bigIntToNumber(txValues.submitAmount).toFixed(2) : formatBigInt(txValues.submitAmount) : "" : data?.amount || "", " ", mode !== "status" /* status */ ? `${targetSymbol}${" "}` : isEmptyStatus ? "" : `${data?.targetSymbol}${" "}`, /* @__PURE__ */ React72.createElement("div", { className: "title-icon" }, /* @__PURE__ */ React72.createElement(
5646
5578
  ChainIcon,
5647
5579
  {
5648
5580
  symbol: transactionTargetChain?.shortName
5649
5581
  }
5650
- )), " ", mode !== "status" /* status */ ? `${transactionTargetChain?.name}${" "}` : isEmptyStatus ? "" : `${data?.targetChain} ${" "}`) : /* @__PURE__ */ React105.createElement("div", null, /* @__PURE__ */ React105.createElement("h3", { className: "transaction" }, "Transaction Status"))), !minimized ? /* @__PURE__ */ React105.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React105.createElement(
5582
+ )), " ", mode !== "status" /* status */ ? `${transactionTargetChain?.name}${" "}` : isEmptyStatus ? "" : `${data?.targetChain} ${" "}`) : /* @__PURE__ */ React72.createElement("div", null, /* @__PURE__ */ React72.createElement("h3", { className: "transaction" }, "Transaction Status"))), !minimized ? /* @__PURE__ */ React72.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React72.createElement(
5651
5583
  "button",
5652
5584
  {
5653
5585
  className: "icon-button minimize",
@@ -5655,9 +5587,9 @@ var TransactionWidget = ({ theme }) => {
5655
5587
  setMinimized(true);
5656
5588
  }
5657
5589
  },
5658
- /* @__PURE__ */ React105.createElement(Minimize_default, null)
5659
- ), !isValidTxId || loadingStep < 0 || error ? /* @__PURE__ */ React105.createElement("button", { className: "reset-button", onClick: resetForm }, "Reset") : null) : /* @__PURE__ */ React105.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React105.createElement("div", { className: "maximize", onClick: () => setMinimized(false) }, "View")))),
5660
- isValidTxId && !error ? /* @__PURE__ */ React105.createElement("div", { className: "kima-card-content" }, /* @__PURE__ */ React105.createElement("div", { className: "transaction-content" }, /* @__PURE__ */ React105.createElement(
5590
+ /* @__PURE__ */ React72.createElement(Minimize_default, null)
5591
+ ), !isValidTxId || loadingStep < 0 || error ? /* @__PURE__ */ React72.createElement("button", { className: "reset-button", onClick: resetForm }, "Reset") : null) : /* @__PURE__ */ React72.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React72.createElement("div", { className: "maximize", onClick: () => setMinimized(false) }, "View")))),
5592
+ isValidTxId && !error ? /* @__PURE__ */ React72.createElement("div", { className: "kima-card-content" }, /* @__PURE__ */ React72.createElement("div", { className: "transaction-content" }, /* @__PURE__ */ React72.createElement(
5661
5593
  Progressbar_default,
5662
5594
  {
5663
5595
  step,
@@ -5666,7 +5598,7 @@ var TransactionWidget = ({ theme }) => {
5666
5598
  setFocus,
5667
5599
  loadingStep
5668
5600
  }
5669
- ), /* @__PURE__ */ React105.createElement(
5601
+ ), /* @__PURE__ */ React72.createElement(
5670
5602
  StepBox_default,
5671
5603
  {
5672
5604
  step,
@@ -5674,14 +5606,14 @@ var TransactionWidget = ({ theme }) => {
5674
5606
  loadingStep,
5675
5607
  data
5676
5608
  }
5677
- )), !error && !isEmptyStatus && /* @__PURE__ */ React105.createElement(
5609
+ )), !error && !isEmptyStatus && /* @__PURE__ */ React72.createElement(
5678
5610
  TransactionStatusMessage_default,
5679
5611
  {
5680
5612
  isCompleted: data?.status,
5681
5613
  transactionId: txId.toString()
5682
5614
  }
5683
- )) : /* @__PURE__ */ React105.createElement("div", { className: "kima-card-content" }, /* @__PURE__ */ React105.createElement("h4", { className: "subtitle" }, "You can follow the status of a previous submitted transaction by entering the provided transaction id"), /* @__PURE__ */ React105.createElement("div", { className: "single-form" }, /* @__PURE__ */ React105.createElement(TransactionSearch_default, null))),
5684
- /* @__PURE__ */ React105.createElement(
5615
+ )) : /* @__PURE__ */ React72.createElement("div", { className: "kima-card-content" }, /* @__PURE__ */ React72.createElement("h4", { className: "subtitle" }, "You can follow the status of a previous submitted transaction by entering the provided transaction id"), /* @__PURE__ */ React72.createElement("div", { className: "single-form" }, /* @__PURE__ */ React72.createElement(TransactionSearch_default, null))),
5616
+ /* @__PURE__ */ React72.createElement(
5685
5617
  Toaster,
5686
5618
  {
5687
5619
  position: "top-right",
@@ -5708,21 +5640,21 @@ var TransactionWidget = ({ theme }) => {
5708
5640
  }
5709
5641
  }
5710
5642
  ),
5711
- /* @__PURE__ */ React105.createElement("div", { className: "floating-footer status" }, /* @__PURE__ */ React105.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React105.createElement("span", null, "Powered by"), /* @__PURE__ */ React105.createElement(KimaNetwork_default, null)))
5643
+ /* @__PURE__ */ React72.createElement("div", { className: "floating-footer status" }, /* @__PURE__ */ React72.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React72.createElement("span", null, "Powered by"), /* @__PURE__ */ React72.createElement(KimaNetwork_default, null)))
5712
5644
  ));
5713
5645
  };
5714
5646
 
5715
5647
  // src/components/TransferWidget.tsx
5716
- import React116, { useEffect as useEffect21, useState as useState16, useRef as useRef8, useMemo as useMemo21, useCallback as useCallback3 } from "react";
5648
+ import React83, { useEffect as useEffect21, useState as useState16, useRef as useRef8, useMemo as useMemo21, useCallback as useCallback3 } from "react";
5717
5649
  import { useDispatch as useDispatch26, useSelector as useSelector45 } from "react-redux";
5718
5650
 
5719
5651
  // src/components/reusable/SingleForm.tsx
5720
- import React107, { useEffect as useEffect17, useMemo as useMemo14, useState as useState13 } from "react";
5652
+ import React74, { useEffect as useEffect17, useMemo as useMemo14, useState as useState13 } from "react";
5721
5653
  import { toast as toast4 } from "react-hot-toast";
5722
5654
  import { useDispatch as useDispatch17, useSelector as useSelector35 } from "react-redux";
5723
5655
 
5724
5656
  // src/components/primary/NetworkSelector.tsx
5725
- import React106, { useState as useState12, useMemo as useMemo13, useRef as useRef4, useEffect as useEffect16 } from "react";
5657
+ import React73, { useState as useState12, useMemo as useMemo13, useRef as useRef4, useEffect as useEffect16 } from "react";
5726
5658
  import { useSelector as useSelector33, useDispatch as useDispatch16 } from "react-redux";
5727
5659
  var NetworkSelector = ({
5728
5660
  type,
@@ -5818,20 +5750,20 @@ var NetworkSelector = ({
5818
5750
  dispatch(setTargetAddress(lightDemoAccounts.TRX));
5819
5751
  }
5820
5752
  }, [sourceNetwork, targetNetwork, mode]);
5821
- return /* @__PURE__ */ React106.createElement(
5753
+ return /* @__PURE__ */ React73.createElement(
5822
5754
  "div",
5823
5755
  {
5824
5756
  className: `network-dropdown ${theme?.colorMode ?? ""} ${collapsed ? "collapsed" : "toggled"}`,
5825
5757
  onClick: () => setCollapsed((prev) => !prev),
5826
5758
  ref
5827
5759
  },
5828
- /* @__PURE__ */ React106.createElement("div", { className: "network-wrapper" }, /* @__PURE__ */ React106.createElement(ChainIcon, { symbol: selectedNetwork.shortName }), /* @__PURE__ */ React106.createElement("span", null, selectedNetwork.name)),
5829
- /* @__PURE__ */ React106.createElement(
5760
+ /* @__PURE__ */ React73.createElement("div", { className: "network-wrapper" }, /* @__PURE__ */ React73.createElement(ChainIcon, { symbol: selectedNetwork.shortName }), /* @__PURE__ */ React73.createElement("span", null, selectedNetwork.name)),
5761
+ /* @__PURE__ */ React73.createElement(
5830
5762
  "div",
5831
5763
  {
5832
5764
  className: `network-menu custom-scrollbar ${theme?.colorMode ?? ""} ${collapsed ? "collapsed" : "toggled"}`
5833
5765
  },
5834
- networks.filter((network) => network.shortName !== selectedNetwork.shortName).map((network) => /* @__PURE__ */ React106.createElement(
5766
+ networks.filter((network) => network.shortName !== selectedNetwork.shortName).map((network) => /* @__PURE__ */ React73.createElement(
5835
5767
  "div",
5836
5768
  {
5837
5769
  key: network.id,
@@ -5843,15 +5775,15 @@ var NetworkSelector = ({
5843
5775
  }
5844
5776
  }
5845
5777
  },
5846
- network.disabled ? /* @__PURE__ */ React106.createElement(Warning_default, { width: 25, height: 25 }) : /* @__PURE__ */ React106.createElement(ChainIcon, { symbol: network.shortName }),
5847
- /* @__PURE__ */ React106.createElement("p", null, network.name),
5848
- network.disabled && /* @__PURE__ */ React106.createElement("span", { className: "tooltip" }, "Temporarily unavailable")
5778
+ network.disabled ? /* @__PURE__ */ React73.createElement(Warning_default, { width: 25, height: 25 }) : /* @__PURE__ */ React73.createElement(ChainIcon, { symbol: network.shortName }),
5779
+ /* @__PURE__ */ React73.createElement("p", null, network.name),
5780
+ network.disabled && /* @__PURE__ */ React73.createElement("span", { className: "tooltip" }, "Temporarily unavailable")
5849
5781
  ))
5850
5782
  ),
5851
- /* @__PURE__ */ React106.createElement("div", { className: `dropdown-icon ${collapsed ? "toggled" : "collapsed"}` }, /* @__PURE__ */ React106.createElement(Arrow_default, { fill: "none" }))
5783
+ /* @__PURE__ */ React73.createElement("div", { className: `dropdown-icon ${collapsed ? "toggled" : "collapsed"}` }, /* @__PURE__ */ React73.createElement(Arrow_default, { fill: "none" }))
5852
5784
  );
5853
5785
  };
5854
- var NetworkSelector_default = React106.memo(NetworkSelector);
5786
+ var NetworkSelector_default = React73.memo(NetworkSelector);
5855
5787
 
5856
5788
  // src/components/reusable/SingleForm.tsx
5857
5789
  import { parseUnits as parseUnits2 } from "viem";
@@ -6054,7 +5986,7 @@ var SingleForm = ({
6054
5986
  const isConnected = useMemo14(() => {
6055
5987
  return isReady && !initialSelection.sourceSelection;
6056
5988
  }, [isReady, initialSelection]);
6057
- return /* @__PURE__ */ React107.createElement("div", { className: "single-form" }, /* @__PURE__ */ React107.createElement("div", { className: "form-item" }, /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Source Network:"), /* @__PURE__ */ React107.createElement("div", { className: "items" }, /* @__PURE__ */ React107.createElement(
5989
+ return /* @__PURE__ */ React74.createElement("div", { className: "single-form" }, /* @__PURE__ */ React74.createElement("div", { className: "form-item" }, /* @__PURE__ */ React74.createElement("span", { className: "label" }, "Source Network:"), /* @__PURE__ */ React74.createElement("div", { className: "items" }, /* @__PURE__ */ React74.createElement(
6058
5990
  NetworkSelector_default,
6059
5991
  {
6060
5992
  type: "origin",
@@ -6063,20 +5995,20 @@ var SingleForm = ({
6063
5995
  setInitialSelection
6064
5996
  }
6065
5997
  }
6066
- ), /* @__PURE__ */ React107.createElement(CoinDropdown_default, null))), /* @__PURE__ */ React107.createElement(
5998
+ ), /* @__PURE__ */ React74.createElement(CoinDropdown_default, null))), /* @__PURE__ */ React74.createElement(
6067
5999
  "div",
6068
6000
  {
6069
6001
  className: `dynamic-area ${sourceNetwork.shortName === "FIAT" /* FIAT */ ? "reverse" : "1"}`
6070
6002
  },
6071
- sourceNetwork.compatibility !== "CC" /* CC */ && /* @__PURE__ */ React107.createElement(
6003
+ sourceNetwork.compatibility !== "CC" /* CC */ && /* @__PURE__ */ React74.createElement(
6072
6004
  "div",
6073
6005
  {
6074
6006
  className: `form-item wallet-button-item ${isConnected && "connected"}`
6075
6007
  },
6076
- /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Wallet:"),
6077
- /* @__PURE__ */ React107.createElement(WalletButton_default, { initialSelection: initialSelection.sourceSelection })
6008
+ /* @__PURE__ */ React74.createElement("span", { className: "label" }, "Wallet:"),
6009
+ /* @__PURE__ */ React74.createElement(WalletButton_default, { initialSelection: initialSelection.sourceSelection })
6078
6010
  ),
6079
- mode !== "payment" /* payment */ && /* @__PURE__ */ React107.createElement("div", { className: "form-item" }, /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Target Network:"), /* @__PURE__ */ React107.createElement("div", { className: "items" }, /* @__PURE__ */ React107.createElement(
6011
+ mode !== "payment" /* payment */ && /* @__PURE__ */ React74.createElement("div", { className: "form-item" }, /* @__PURE__ */ React74.createElement("span", { className: "label" }, "Target Network:"), /* @__PURE__ */ React74.createElement("div", { className: "items" }, /* @__PURE__ */ React74.createElement(
6080
6012
  NetworkSelector_default,
6081
6013
  {
6082
6014
  type: "target",
@@ -6085,29 +6017,29 @@ var SingleForm = ({
6085
6017
  setInitialSelection
6086
6018
  }
6087
6019
  }
6088
- ), /* @__PURE__ */ React107.createElement(CoinDropdown_default, { isSourceChain: false })))
6089
- ), mode === "bridge" /* bridge */ && sourceNetwork.shortName !== "FIAT" /* FIAT */ ? targetNetwork.shortName === "FIAT" /* FIAT */ ? /* @__PURE__ */ React107.createElement(BankInput_default, null) : /* @__PURE__ */ React107.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Target Address:"), /* @__PURE__ */ React107.createElement(
6020
+ ), /* @__PURE__ */ React74.createElement(CoinDropdown_default, { isSourceChain: false })))
6021
+ ), mode === "bridge" /* bridge */ && sourceNetwork.shortName !== "FIAT" /* FIAT */ ? targetNetwork.shortName === "FIAT" /* FIAT */ ? /* @__PURE__ */ React74.createElement(BankInput_default, null) : /* @__PURE__ */ React74.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React74.createElement("span", { className: "label" }, "Target Address:"), /* @__PURE__ */ React74.createElement(
6090
6022
  AddressInput_default,
6091
6023
  {
6092
6024
  theme: theme.colorMode,
6093
6025
  placeholder: "Target address",
6094
6026
  initialSelection
6095
6027
  }
6096
- )) : null, mode === "light" /* light */ && /* @__PURE__ */ React107.createElement(
6028
+ )) : null, mode === "light" /* light */ && /* @__PURE__ */ React74.createElement(
6097
6029
  "div",
6098
6030
  {
6099
6031
  className: `form-item wallet-button-item ${!initialSelection.targetSelection && "connected"}`,
6100
6032
  style: { display: "flex", alignItems: "center" }
6101
6033
  },
6102
- /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Target Wallet:"),
6103
- /* @__PURE__ */ React107.createElement(
6034
+ /* @__PURE__ */ React74.createElement("span", { className: "label" }, "Target Wallet:"),
6035
+ /* @__PURE__ */ React74.createElement(
6104
6036
  WalletButton_default,
6105
6037
  {
6106
6038
  initialSelection: initialSelection.targetSelection,
6107
6039
  placeholder: true
6108
6040
  }
6109
6041
  )
6110
- ), mode === "bridge" /* bridge */ && /* @__PURE__ */ React107.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React107.createElement("span", { className: "label" }, "Amount:"), /* @__PURE__ */ React107.createElement("div", { className: `amount-label-container items ${theme.colorMode}` }, /* @__PURE__ */ React107.createElement(
6042
+ ), mode === "bridge" /* bridge */ && /* @__PURE__ */ React74.createElement("div", { className: `form-item ${theme.colorMode}` }, /* @__PURE__ */ React74.createElement("span", { className: "label" }, "Amount:"), /* @__PURE__ */ React74.createElement("div", { className: `amount-label-container items ${theme.colorMode}` }, /* @__PURE__ */ React74.createElement(
6111
6043
  "input",
6112
6044
  {
6113
6045
  className: `${theme.colorMode}`,
@@ -6116,7 +6048,7 @@ var SingleForm = ({
6116
6048
  value: amountValue || "",
6117
6049
  onChange: (e) => onAmountChange(e.target.value)
6118
6050
  }
6119
- ), /* @__PURE__ */ React107.createElement("div", { className: "max-disclaimer" }, sourceNetwork.shortName !== "CC" && /* @__PURE__ */ React107.createElement("span", { className: "max-button", onClick: onMaxClick }, "Max"), +totalFee !== -1 && /* @__PURE__ */ React107.createElement("p", { className: "fee-amount" }, "Est fees:", " ", /* @__PURE__ */ React107.createElement("span", { className: `${isLoadingFees ? "loading" : ""}` }, " ", isLoadingFees ? "" : `$ ${formatBigInt(totalFee)} USD`))))));
6051
+ ), /* @__PURE__ */ React74.createElement("div", { className: "max-disclaimer" }, sourceNetwork.shortName !== "CC" && /* @__PURE__ */ React74.createElement("span", { className: "max-button", onClick: onMaxClick }, "Max"), +totalFee !== -1 && /* @__PURE__ */ React74.createElement("p", { className: "fee-amount" }, "Est fees:", " ", /* @__PURE__ */ React74.createElement("span", { className: `${isLoadingFees ? "loading" : ""}` }, " ", isLoadingFees ? "" : `$ ${formatBigInt(totalFee)} USD`))))));
6120
6052
  };
6121
6053
  var SingleForm_default = SingleForm;
6122
6054
 
@@ -6165,11 +6097,11 @@ function useAllowance2({
6165
6097
  import { toast as toast5, Toaster as Toaster2 } from "react-hot-toast";
6166
6098
 
6167
6099
  // plugins/solana/components/SolanaWalletConnectModal.tsx
6168
- import React110 from "react";
6100
+ import React77 from "react";
6169
6101
  import { useDispatch as useDispatch20, useSelector as useSelector38 } from "react-redux";
6170
6102
 
6171
6103
  // plugins/solana/components/SolanaWalletSelect.tsx
6172
- import React108, { useCallback as useCallback2, useEffect as useEffect18, useMemo as useMemo15, useRef as useRef5 } from "react";
6104
+ import React75, { useCallback as useCallback2, useEffect as useEffect18, useMemo as useMemo15, useRef as useRef5 } from "react";
6173
6105
  import { useDispatch as useDispatch18, useSelector as useSelector36 } from "react-redux";
6174
6106
  import { useWallet as useWallet7 } from "@solana/wallet-adapter-react";
6175
6107
  import { WalletReadyState } from "@solana/wallet-adapter-base";
@@ -6243,28 +6175,28 @@ var SolanaWalletSelect = () => {
6243
6175
  }
6244
6176
  dispatch(setSolanaConnectModal(false));
6245
6177
  }, [wallet, sourceChain]);
6246
- return /* @__PURE__ */ React108.createElement("div", { className: `wallet-select` }, /* @__PURE__ */ React108.createElement("div", { className: "slide-area hide-scrollbar", ref: sliderRef }, /* @__PURE__ */ React108.createElement("div", { className: "wallet-container" }, detected.map((wallet2, index) => /* @__PURE__ */ React108.createElement(
6178
+ return /* @__PURE__ */ React75.createElement("div", { className: `wallet-select` }, /* @__PURE__ */ React75.createElement("div", { className: "slide-area hide-scrollbar", ref: sliderRef }, /* @__PURE__ */ React75.createElement("div", { className: "wallet-container" }, detected.map((wallet2, index) => /* @__PURE__ */ React75.createElement(
6247
6179
  "div",
6248
6180
  {
6249
6181
  className: `card-item ${theme.colorMode}`,
6250
6182
  onClick: () => handleWalletClick(wallet2.adapter.name),
6251
6183
  key: `${wallet2.adapter.name}-${index}`
6252
6184
  },
6253
- /* @__PURE__ */ React108.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React108.createElement("img", { src: wallet2.adapter.icon, alt: wallet2.adapter.name }), /* @__PURE__ */ React108.createElement("span", null, wallet2.adapter.name))
6254
- )), undetected.map((wallet2, index) => /* @__PURE__ */ React108.createElement(
6185
+ /* @__PURE__ */ React75.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React75.createElement("img", { src: wallet2.adapter.icon, alt: wallet2.adapter.name }), /* @__PURE__ */ React75.createElement("span", null, wallet2.adapter.name))
6186
+ )), undetected.map((wallet2, index) => /* @__PURE__ */ React75.createElement(
6255
6187
  ExternalLink_default,
6256
6188
  {
6257
6189
  to: wallet2.adapter.url,
6258
6190
  className: `card-item ${theme.colorMode}`,
6259
6191
  key: `${wallet2.adapter.name}-${index}`
6260
6192
  },
6261
- /* @__PURE__ */ React108.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React108.createElement("img", { src: wallet2.adapter.icon, alt: wallet2.adapter.name }), /* @__PURE__ */ React108.createElement("span", null, "Install ", wallet2.adapter.name))
6193
+ /* @__PURE__ */ React75.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React75.createElement("img", { src: wallet2.adapter.icon, alt: wallet2.adapter.name }), /* @__PURE__ */ React75.createElement("span", null, "Install ", wallet2.adapter.name))
6262
6194
  )))));
6263
6195
  };
6264
6196
  var SolanaWalletSelect_default = SolanaWalletSelect;
6265
6197
 
6266
6198
  // plugins/solana/components/AccountDetailsModal.tsx
6267
- import React109, { useMemo as useMemo16 } from "react";
6199
+ import React76, { useMemo as useMemo16 } from "react";
6268
6200
  import { useDispatch as useDispatch19, useSelector as useSelector37 } from "react-redux";
6269
6201
  import { useWallet as useSolanaWallet3 } from "@solana/wallet-adapter-react";
6270
6202
  var AccountDetailsModal = () => {
@@ -6285,25 +6217,25 @@ var AccountDetailsModal = () => {
6285
6217
  dispatch(setAccountDetailsModal(false));
6286
6218
  };
6287
6219
  if (sourceChain.shortName !== "SOL") return;
6288
- return /* @__PURE__ */ React109.createElement(
6220
+ return /* @__PURE__ */ React76.createElement(
6289
6221
  "div",
6290
6222
  {
6291
6223
  className: `kima-modal ${theme.colorMode} ${accountDetailsModal && "open"}`
6292
6224
  },
6293
- /* @__PURE__ */ React109.createElement("div", { className: "modal-overlay" }),
6294
- /* @__PURE__ */ React109.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React109.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React109.createElement("div", { className: "topbar" }, /* @__PURE__ */ React109.createElement("div", { className: "title" }, /* @__PURE__ */ React109.createElement("h3", null, "Account Details")), /* @__PURE__ */ React109.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React109.createElement(
6225
+ /* @__PURE__ */ React76.createElement("div", { className: "modal-overlay" }),
6226
+ /* @__PURE__ */ React76.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React76.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React76.createElement("div", { className: "topbar" }, /* @__PURE__ */ React76.createElement("div", { className: "title" }, /* @__PURE__ */ React76.createElement("h3", null, "Account Details")), /* @__PURE__ */ React76.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React76.createElement(
6295
6227
  "button",
6296
6228
  {
6297
6229
  className: "cross-icon-button",
6298
6230
  onClick: () => dispatch(setAccountDetailsModal(false))
6299
6231
  },
6300
- /* @__PURE__ */ React109.createElement(
6232
+ /* @__PURE__ */ React76.createElement(
6301
6233
  Cross_default,
6302
6234
  {
6303
6235
  fill: theme.colorMode === "light" ? "black" : "white"
6304
6236
  }
6305
6237
  )
6306
- )))), /* @__PURE__ */ React109.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React109.createElement("div", { className: "summary" }, networkDetails && /* @__PURE__ */ React109.createElement(networkDetails.icon, { width: 60, height: 60 }), /* @__PURE__ */ React109.createElement("div", { className: "address" }, /* @__PURE__ */ React109.createElement("h2", null, getShortenedAddress(walletAddress || "")), /* @__PURE__ */ React109.createElement(CopyButton_default, { text: walletAddress })), /* @__PURE__ */ React109.createElement("h3", null, formatterFloat.format(Number(solBalance)), " $SOL")), /* @__PURE__ */ React109.createElement(SecondaryButton_default, { className: "block-explorer" }, /* @__PURE__ */ React109.createElement(ExternalLink_default, { className: "link", to: explorerUrl }, /* @__PURE__ */ React109.createElement(Explorer_default, { fill: "#778DA3" }), /* @__PURE__ */ React109.createElement("p", null, "Block explorer"), /* @__PURE__ */ React109.createElement(ExternalUrl_default, { fill: "#778DA3" }))), /* @__PURE__ */ React109.createElement(PrimaryButton_default, { clickHandler: handleDisconnect }, "Discconect")))
6238
+ )))), /* @__PURE__ */ React76.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React76.createElement("div", { className: "summary" }, networkDetails && /* @__PURE__ */ React76.createElement(networkDetails.icon, { width: 60, height: 60 }), /* @__PURE__ */ React76.createElement("div", { className: "address" }, /* @__PURE__ */ React76.createElement("h2", null, getShortenedAddress(walletAddress || "")), /* @__PURE__ */ React76.createElement(CopyButton_default, { text: walletAddress })), /* @__PURE__ */ React76.createElement("h3", null, formatterFloat.format(Number(solBalance)), " $SOL")), /* @__PURE__ */ React76.createElement(SecondaryButton_default, { className: "block-explorer" }, /* @__PURE__ */ React76.createElement(ExternalLink_default, { className: "link", to: explorerUrl }, /* @__PURE__ */ React76.createElement(Explorer_default, { fill: "#778DA3" }), /* @__PURE__ */ React76.createElement("p", null, "Block explorer"), /* @__PURE__ */ React76.createElement(ExternalUrl_default, { fill: "#778DA3" }))), /* @__PURE__ */ React76.createElement(PrimaryButton_default, { clickHandler: handleDisconnect }, "Discconect")))
6307
6239
  );
6308
6240
  };
6309
6241
  var AccountDetailsModal_default = AccountDetailsModal;
@@ -6313,18 +6245,18 @@ var SolanaWalletConnectModal = () => {
6313
6245
  const dispatch = useDispatch20();
6314
6246
  const theme = useSelector38(selectTheme);
6315
6247
  const connectModal = useSelector38(selectSolanaConnectModal);
6316
- return /* @__PURE__ */ React110.createElement("div", null, /* @__PURE__ */ React110.createElement(AccountDetailsModal_default, null), /* @__PURE__ */ React110.createElement(
6248
+ return /* @__PURE__ */ React77.createElement("div", null, /* @__PURE__ */ React77.createElement(AccountDetailsModal_default, null), /* @__PURE__ */ React77.createElement(
6317
6249
  "div",
6318
6250
  {
6319
6251
  className: `kima-modal wallet-connect ${connectModal ? "open" : ""}`
6320
6252
  },
6321
- /* @__PURE__ */ React110.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React110.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React110.createElement("div", { className: "topbar" }, /* @__PURE__ */ React110.createElement("div", { className: "title" }, /* @__PURE__ */ React110.createElement("h3", null, "Connect Wallet")), /* @__PURE__ */ React110.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React110.createElement(
6253
+ /* @__PURE__ */ React77.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React77.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React77.createElement("div", { className: "topbar" }, /* @__PURE__ */ React77.createElement("div", { className: "title" }, /* @__PURE__ */ React77.createElement("h3", null, "Connect Wallet")), /* @__PURE__ */ React77.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React77.createElement(
6322
6254
  "button",
6323
6255
  {
6324
6256
  className: "cross-icon-button",
6325
6257
  onClick: () => dispatch(setSolanaConnectModal(false))
6326
6258
  },
6327
- /* @__PURE__ */ React110.createElement(
6259
+ /* @__PURE__ */ React77.createElement(
6328
6260
  Cross_default,
6329
6261
  {
6330
6262
  width: 30,
@@ -6332,17 +6264,17 @@ var SolanaWalletConnectModal = () => {
6332
6264
  fill: theme.colorMode === "light" ? "black" : "white"
6333
6265
  }
6334
6266
  )
6335
- )))), /* @__PURE__ */ React110.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React110.createElement(SolanaWalletSelect_default, null)))
6267
+ )))), /* @__PURE__ */ React77.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React77.createElement(SolanaWalletSelect_default, null)))
6336
6268
  ));
6337
6269
  };
6338
6270
  var SolanaWalletConnectModal_default = SolanaWalletConnectModal;
6339
6271
 
6340
6272
  // plugins/tron/components/TronWalletConnectModal.tsx
6341
- import React113 from "react";
6273
+ import React80 from "react";
6342
6274
  import { useDispatch as useDispatch23, useSelector as useSelector41 } from "react-redux";
6343
6275
 
6344
6276
  // plugins/tron/components/AccountDetailsModal.tsx
6345
- import React111, { useMemo as useMemo17 } from "react";
6277
+ import React78, { useMemo as useMemo17 } from "react";
6346
6278
  import { useDispatch as useDispatch21, useSelector as useSelector39 } from "react-redux";
6347
6279
  import { useWallet as useTronWallet3 } from "@tronweb3/tronwallet-adapter-react-hooks";
6348
6280
  var AccountDetailsModal2 = () => {
@@ -6367,31 +6299,31 @@ var AccountDetailsModal2 = () => {
6367
6299
  dispatch(setAccountDetailsModal(false));
6368
6300
  };
6369
6301
  if (sourcheChain.shortName !== "TRX") return;
6370
- return /* @__PURE__ */ React111.createElement(
6302
+ return /* @__PURE__ */ React78.createElement(
6371
6303
  "div",
6372
6304
  {
6373
6305
  className: `kima-modal ${theme.colorMode} ${accountDetailsModal && "open"}`
6374
6306
  },
6375
- /* @__PURE__ */ React111.createElement("div", { className: "modal-overlay" }),
6376
- /* @__PURE__ */ React111.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React111.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React111.createElement("div", { className: "topbar" }, /* @__PURE__ */ React111.createElement("div", { className: "title" }, /* @__PURE__ */ React111.createElement("h3", null, "Account Details")), /* @__PURE__ */ React111.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React111.createElement(
6307
+ /* @__PURE__ */ React78.createElement("div", { className: "modal-overlay" }),
6308
+ /* @__PURE__ */ React78.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React78.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React78.createElement("div", { className: "topbar" }, /* @__PURE__ */ React78.createElement("div", { className: "title" }, /* @__PURE__ */ React78.createElement("h3", null, "Account Details")), /* @__PURE__ */ React78.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React78.createElement(
6377
6309
  "button",
6378
6310
  {
6379
6311
  className: "cross-icon-button",
6380
6312
  onClick: () => dispatch(setAccountDetailsModal(false))
6381
6313
  },
6382
- /* @__PURE__ */ React111.createElement(
6314
+ /* @__PURE__ */ React78.createElement(
6383
6315
  Cross_default,
6384
6316
  {
6385
6317
  fill: theme.colorMode === "light" ? "black" : "white"
6386
6318
  }
6387
6319
  )
6388
- )))), /* @__PURE__ */ React111.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React111.createElement("div", { className: "summary" }, networkDetails && /* @__PURE__ */ React111.createElement(networkDetails.icon, { width: 60, height: 60 }), /* @__PURE__ */ React111.createElement("div", { className: "address" }, /* @__PURE__ */ React111.createElement("h2", null, getShortenedAddress(connectedAddress || "")), /* @__PURE__ */ React111.createElement(CopyButton_default, { text: connectedAddress })), /* @__PURE__ */ React111.createElement("h3", null, formatterFloat.format(Number(tronBalance)), " ", selectedNetwork.shortName)), /* @__PURE__ */ React111.createElement(SecondaryButton_default, { className: "block-explorer" }, /* @__PURE__ */ React111.createElement(ExternalLink_default, { className: "link", to: explorerUrl }, /* @__PURE__ */ React111.createElement(Explorer_default, { fill: "#778DA3" }), /* @__PURE__ */ React111.createElement("p", null, "Block explorer"), /* @__PURE__ */ React111.createElement(ExternalUrl_default, { fill: "#778DA3" }))), /* @__PURE__ */ React111.createElement(PrimaryButton_default, { clickHandler: handleDisconnect }, "Disconnect")))
6320
+ )))), /* @__PURE__ */ React78.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React78.createElement("div", { className: "summary" }, networkDetails && /* @__PURE__ */ React78.createElement(networkDetails.icon, { width: 60, height: 60 }), /* @__PURE__ */ React78.createElement("div", { className: "address" }, /* @__PURE__ */ React78.createElement("h2", null, getShortenedAddress(connectedAddress || "")), /* @__PURE__ */ React78.createElement(CopyButton_default, { text: connectedAddress })), /* @__PURE__ */ React78.createElement("h3", null, formatterFloat.format(Number(tronBalance)), " ", selectedNetwork.shortName)), /* @__PURE__ */ React78.createElement(SecondaryButton_default, { className: "block-explorer" }, /* @__PURE__ */ React78.createElement(ExternalLink_default, { className: "link", to: explorerUrl }, /* @__PURE__ */ React78.createElement(Explorer_default, { fill: "#778DA3" }), /* @__PURE__ */ React78.createElement("p", null, "Block explorer"), /* @__PURE__ */ React78.createElement(ExternalUrl_default, { fill: "#778DA3" }))), /* @__PURE__ */ React78.createElement(PrimaryButton_default, { clickHandler: handleDisconnect }, "Disconnect")))
6389
6321
  );
6390
6322
  };
6391
6323
  var AccountDetailsModal_default2 = AccountDetailsModal2;
6392
6324
 
6393
6325
  // plugins/tron/components/TronWalletSelect.tsx
6394
- import React112, { useEffect as useEffect19, useMemo as useMemo18, useRef as useRef6 } from "react";
6326
+ import React79, { useEffect as useEffect19, useMemo as useMemo18, useRef as useRef6 } from "react";
6395
6327
  import { useDispatch as useDispatch22, useSelector as useSelector40 } from "react-redux";
6396
6328
  import { useWallet as useWallet8 } from "@tronweb3/tronwallet-adapter-react-hooks";
6397
6329
  import { AdapterState } from "@tronweb3/tronwallet-abstract-adapter";
@@ -6450,22 +6382,22 @@ var TronWalletSelect = () => {
6450
6382
  const connectWallet = async (walletName) => {
6451
6383
  currentWallet?.adapter.name === walletName ? await connect() : select(walletName);
6452
6384
  };
6453
- return /* @__PURE__ */ React112.createElement("div", { className: `wallet-select` }, /* @__PURE__ */ React112.createElement("div", { className: "slide-area hide-scrollbar", ref: sliderRef }, /* @__PURE__ */ React112.createElement("div", { className: "wallet-container" }, detected.map((wallet, index) => /* @__PURE__ */ React112.createElement(
6385
+ return /* @__PURE__ */ React79.createElement("div", { className: `wallet-select` }, /* @__PURE__ */ React79.createElement("div", { className: "slide-area hide-scrollbar", ref: sliderRef }, /* @__PURE__ */ React79.createElement("div", { className: "wallet-container" }, detected.map((wallet, index) => /* @__PURE__ */ React79.createElement(
6454
6386
  "div",
6455
6387
  {
6456
6388
  className: `card-item ${theme.colorMode}`,
6457
6389
  onClick: () => connectWallet(wallet.adapter.name),
6458
6390
  key: `${wallet.adapter.name}-${index}`
6459
6391
  },
6460
- /* @__PURE__ */ React112.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React112.createElement("img", { src: wallet.adapter.icon, alt: wallet.adapter.name }), /* @__PURE__ */ React112.createElement("span", null, wallet.adapter.name))
6461
- )), undetected.map((wallet, index) => /* @__PURE__ */ React112.createElement(
6392
+ /* @__PURE__ */ React79.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React79.createElement("img", { src: wallet.adapter.icon, alt: wallet.adapter.name }), /* @__PURE__ */ React79.createElement("span", null, wallet.adapter.name))
6393
+ )), undetected.map((wallet, index) => /* @__PURE__ */ React79.createElement(
6462
6394
  ExternalLink_default,
6463
6395
  {
6464
6396
  to: wallet.adapter.url,
6465
6397
  className: `card-item ${theme.colorMode}`,
6466
6398
  key: `${wallet.adapter.name}-${index}`
6467
6399
  },
6468
- /* @__PURE__ */ React112.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React112.createElement("img", { src: wallet.adapter.icon, alt: wallet.adapter.name }), /* @__PURE__ */ React112.createElement("span", null, "Install ", wallet.adapter.name))
6400
+ /* @__PURE__ */ React79.createElement("div", { className: "wallet-item" }, /* @__PURE__ */ React79.createElement("img", { src: wallet.adapter.icon, alt: wallet.adapter.name }), /* @__PURE__ */ React79.createElement("span", null, "Install ", wallet.adapter.name))
6469
6401
  )))));
6470
6402
  };
6471
6403
  var TronWalletSelect_default = TronWalletSelect;
@@ -6475,25 +6407,25 @@ var TronWalletConnectModal = () => {
6475
6407
  const dispatch = useDispatch23();
6476
6408
  const theme = useSelector41(selectTheme);
6477
6409
  const connectModal = useSelector41(selectTronConnectModal);
6478
- return /* @__PURE__ */ React113.createElement("div", null, /* @__PURE__ */ React113.createElement(AccountDetailsModal_default2, null), /* @__PURE__ */ React113.createElement(
6410
+ return /* @__PURE__ */ React80.createElement("div", null, /* @__PURE__ */ React80.createElement(AccountDetailsModal_default2, null), /* @__PURE__ */ React80.createElement(
6479
6411
  "div",
6480
6412
  {
6481
6413
  className: `kima-modal wallet-connect ${theme.colorMode} ${connectModal ? "open" : ""}`
6482
6414
  },
6483
- /* @__PURE__ */ React113.createElement("div", { className: "modal-overlay" }),
6484
- /* @__PURE__ */ React113.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React113.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React113.createElement("div", { className: "topbar" }, /* @__PURE__ */ React113.createElement("div", { className: "title" }, /* @__PURE__ */ React113.createElement("h3", null, "Connect Wallet")), /* @__PURE__ */ React113.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React113.createElement(
6415
+ /* @__PURE__ */ React80.createElement("div", { className: "modal-overlay" }),
6416
+ /* @__PURE__ */ React80.createElement("div", { className: `modal-content-container ${theme.colorMode}` }, /* @__PURE__ */ React80.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React80.createElement("div", { className: "topbar" }, /* @__PURE__ */ React80.createElement("div", { className: "title" }, /* @__PURE__ */ React80.createElement("h3", null, "Connect Wallet")), /* @__PURE__ */ React80.createElement("div", { className: "control-buttons" }, /* @__PURE__ */ React80.createElement(
6485
6417
  "button",
6486
6418
  {
6487
6419
  className: "icon-button",
6488
6420
  onClick: () => dispatch(setTronConnectModal(false))
6489
6421
  },
6490
- /* @__PURE__ */ React113.createElement(
6422
+ /* @__PURE__ */ React80.createElement(
6491
6423
  Cross_default,
6492
6424
  {
6493
6425
  fill: theme.colorMode === "light" ? "black" : "white"
6494
6426
  }
6495
6427
  )
6496
- )))), /* @__PURE__ */ React113.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React113.createElement(TronWalletSelect_default, null)))
6428
+ )))), /* @__PURE__ */ React80.createElement("div", { className: "modal-content" }, /* @__PURE__ */ React80.createElement(TronWalletSelect_default, null)))
6497
6429
  ));
6498
6430
  };
6499
6431
  var TronWalletConnectModal_default = TronWalletConnectModal;
@@ -6810,7 +6742,7 @@ function useDisconnectWallet5() {
6810
6742
  }
6811
6743
 
6812
6744
  // src/components/reusable/WarningModal.tsx
6813
- import React114 from "react";
6745
+ import React81 from "react";
6814
6746
  var WarningModal = ({
6815
6747
  message,
6816
6748
  cancelButtonText = "Cancel",
@@ -6818,14 +6750,14 @@ var WarningModal = ({
6818
6750
  onAcknowledge,
6819
6751
  onCancel
6820
6752
  }) => {
6821
- return /* @__PURE__ */ React114.createElement("div", { className: "warning-modal-overlay" }, /* @__PURE__ */ React114.createElement("div", { className: "warning-modal" }, /* @__PURE__ */ React114.createElement("h3", null, "Warning"), /* @__PURE__ */ React114.createElement("p", null, message), /* @__PURE__ */ React114.createElement("div", { className: "warning-modal-buttons" }, /* @__PURE__ */ React114.createElement(
6753
+ return /* @__PURE__ */ React81.createElement("div", { className: "warning-modal-overlay" }, /* @__PURE__ */ React81.createElement("div", { className: "warning-modal" }, /* @__PURE__ */ React81.createElement("h3", null, "Warning"), /* @__PURE__ */ React81.createElement("p", null, message), /* @__PURE__ */ React81.createElement("div", { className: "warning-modal-buttons" }, /* @__PURE__ */ React81.createElement(
6822
6754
  SecondaryButton_default,
6823
6755
  {
6824
6756
  className: "warning-modal-cancel",
6825
6757
  clickHandler: onCancel
6826
6758
  },
6827
6759
  cancelButtonText
6828
- ), /* @__PURE__ */ React114.createElement(
6760
+ ), /* @__PURE__ */ React81.createElement(
6829
6761
  PrimaryButton_default,
6830
6762
  {
6831
6763
  className: "warning-modal-acknowledge",
@@ -6837,7 +6769,7 @@ var WarningModal = ({
6837
6769
  var WarningModal_default = WarningModal;
6838
6770
 
6839
6771
  // src/components/reusable/CCWidget.tsx
6840
- import React115, { useEffect as useEffect20, useMemo as useMemo20, useRef as useRef7, useState as useState15 } from "react";
6772
+ import React82, { useEffect as useEffect20, useMemo as useMemo20, useRef as useRef7, useState as useState15 } from "react";
6841
6773
  import { useSelector as useSelector44, useDispatch as useDispatch25 } from "react-redux";
6842
6774
  import { v4 as uuidv4 } from "uuid";
6843
6775
 
@@ -6922,7 +6854,7 @@ var CCWidget = ({ submitCallback }) => {
6922
6854
  useEffect20(() => {
6923
6855
  if (error) dispatch(setCCTransactionStatus("error-id"));
6924
6856
  }, [dispatch, error]);
6925
- return /* @__PURE__ */ React115.createElement("div", { className: `cc-widget ${isLoading ? "loading" : ""}` }, (isLoading || isTransactionIdLoading || isEnvLoading || ccTransactionStatus === "success") && /* @__PURE__ */ React115.createElement("div", { className: "cc-widget-loader" }, /* @__PURE__ */ React115.createElement(ring_default, { width: 50, height: 50, fill: "#86b8ce" })), /* @__PURE__ */ React115.createElement(
6857
+ return /* @__PURE__ */ React82.createElement("div", { className: `cc-widget ${isLoading ? "loading" : ""}` }, (isLoading || isTransactionIdLoading || isEnvLoading || ccTransactionStatus === "success") && /* @__PURE__ */ React82.createElement("div", { className: "cc-widget-loader" }, /* @__PURE__ */ React82.createElement(ring_default, { width: 50, height: 50, fill: "#86b8ce" })), /* @__PURE__ */ React82.createElement(
6926
6858
  "iframe",
6927
6859
  {
6928
6860
  width: isLoading || isTransactionIdLoading || ccTransactionStatus === "success" || error ? 0 : "100%",
@@ -7072,14 +7004,14 @@ var TransferWidget = ({
7072
7004
  try {
7073
7005
  await submitTransaction(signature);
7074
7006
  } catch (err) {
7075
- toast5.error("Failed to submit transaction", { icon: /* @__PURE__ */ React116.createElement(Error_default, null) });
7007
+ toast5.error("Failed to submit transaction", { icon: /* @__PURE__ */ React83.createElement(Error_default, null) });
7076
7008
  dispatch(setCCTransactionStatus("error-generic"));
7077
7009
  }
7078
7010
  }, [signature, submitTransaction]);
7079
7011
  const handleSubmit = async () => {
7080
7012
  const { error: error2, message: validationMessage } = validate(true);
7081
7013
  if (error2 === "ValidationError" /* Error */) {
7082
- return toast5.error(validationMessage, { icon: /* @__PURE__ */ React116.createElement(Error_default, null) });
7014
+ return toast5.error(validationMessage, { icon: /* @__PURE__ */ React83.createElement(Error_default, null) });
7083
7015
  }
7084
7016
  if (sourceChain.shortName === "CC") {
7085
7017
  dispatch(setCCTransactionStatus("initialized"));
@@ -7128,7 +7060,7 @@ var TransferWidget = ({
7128
7060
  if (error2 !== "ValidationError" /* Error */ && formStep > 0) {
7129
7061
  return handleSubmit();
7130
7062
  }
7131
- toast5.error(validationMessage, { icon: /* @__PURE__ */ React116.createElement(Error_default, null) });
7063
+ toast5.error(validationMessage, { icon: /* @__PURE__ */ React83.createElement(Error_default, null) });
7132
7064
  mainRef.current?.click();
7133
7065
  };
7134
7066
  const onBack = () => {
@@ -7203,7 +7135,7 @@ var TransferWidget = ({
7203
7135
  }
7204
7136
  await disconnectWallet();
7205
7137
  };
7206
- return /* @__PURE__ */ React116.createElement(
7138
+ return /* @__PURE__ */ React83.createElement(
7207
7139
  "div",
7208
7140
  {
7209
7141
  className: `kima-card ${theme.colorMode}`,
@@ -7211,7 +7143,7 @@ var TransferWidget = ({
7211
7143
  background: theme.colorMode === "light" /* light */ ? theme.backgroundColorLight : theme.backgroundColorDark
7212
7144
  }
7213
7145
  },
7214
- resetModalOpen && /* @__PURE__ */ React116.createElement(
7146
+ resetModalOpen && /* @__PURE__ */ React83.createElement(
7215
7147
  WarningModal_default,
7216
7148
  {
7217
7149
  message: "Are you sure you want to reset the widget?",
@@ -7223,7 +7155,7 @@ var TransferWidget = ({
7223
7155
  onCancel: () => setResetModalOpen(false)
7224
7156
  }
7225
7157
  ),
7226
- warningModalOpen && /* @__PURE__ */ React116.createElement(
7158
+ warningModalOpen && /* @__PURE__ */ React83.createElement(
7227
7159
  WarningModal_default,
7228
7160
  {
7229
7161
  message: warningModalOpen.message,
@@ -7237,14 +7169,14 @@ var TransferWidget = ({
7237
7169
  }
7238
7170
  }
7239
7171
  ),
7240
- mode === "payment" /* payment */ && !transactionOption && /* @__PURE__ */ React116.createElement("h2", { className: "invalid-option-banner" }, "We're unable to process your payment. Please ensure the necessary transaction details are provided. Contact support if the issue persists."),
7241
- /* @__PURE__ */ React116.createElement("div", { className: "transfer-card" }, /* @__PURE__ */ React116.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React116.createElement("div", { className: "topbar" }, /* @__PURE__ */ React116.createElement("div", { className: "title" }, /* @__PURE__ */ React116.createElement("h3", { style: { marginRight: "5px" } }, formStep === 0 ? titleOption?.initialTitle ? titleOption.initialTitle : mode === "payment" /* payment */ ? "New Purchase" : "New Transfer" : titleOption?.confirmTitle ? titleOption.confirmTitle : mode === "payment" /* payment */ ? "Confirm Purchase" : "Transfer Details")), /* @__PURE__ */ React116.createElement("div", { className: "control-buttons" }, pendingTxs > 0 ? /* @__PURE__ */ React116.createElement(TxButton_default, { theme }) : null, /* @__PURE__ */ React116.createElement(
7172
+ mode === "payment" /* payment */ && !transactionOption && /* @__PURE__ */ React83.createElement("h2", { className: "invalid-option-banner" }, "We're unable to process your payment. Please ensure the necessary transaction details are provided. Contact support if the issue persists."),
7173
+ /* @__PURE__ */ React83.createElement("div", { className: "transfer-card" }, /* @__PURE__ */ React83.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React83.createElement("div", { className: "topbar" }, /* @__PURE__ */ React83.createElement("div", { className: "title" }, /* @__PURE__ */ React83.createElement("h3", { style: { marginRight: "5px" } }, formStep === 0 ? titleOption?.initialTitle ? titleOption.initialTitle : mode === "payment" /* payment */ ? "New Purchase" : "New Transfer" : titleOption?.confirmTitle ? titleOption.confirmTitle : mode === "payment" /* payment */ ? "Confirm Purchase" : "Transfer Details")), /* @__PURE__ */ React83.createElement("div", { className: "control-buttons" }, pendingTxs > 0 ? /* @__PURE__ */ React83.createElement(TxButton_default, { theme }) : null, /* @__PURE__ */ React83.createElement(
7242
7174
  ExternalLink_default,
7243
7175
  {
7244
7176
  to: helpURL ? helpURL : networkOption === "testnet" /* testnet */ ? "https://docs.kima.network/kima-network/try-kima-with-the-demo-app" : "https://support.kima.network"
7245
7177
  },
7246
- /* @__PURE__ */ React116.createElement("div", { className: "menu-button" }, "I need help")
7247
- ), sourceChain.shortName === "CC" && formStep > 0 && /* @__PURE__ */ React116.createElement(ExternalLink_default, { to: "https://docs.kima.network/kima-network/supported-fiat#unsupported-countries-credit-cards" }, /* @__PURE__ */ React116.createElement("div", { className: "menu-button" }, "Unsupported Countries")), formStep === 0 && mode !== "payment" /* payment */ && /* @__PURE__ */ React116.createElement(
7178
+ /* @__PURE__ */ React83.createElement("div", { className: "menu-button" }, "I need help")
7179
+ ), sourceChain.shortName === "CC" && formStep > 0 && /* @__PURE__ */ React83.createElement(ExternalLink_default, { to: "https://docs.kima.network/kima-network/supported-fiat#unsupported-countries-credit-cards" }, /* @__PURE__ */ React83.createElement("div", { className: "menu-button" }, "Unsupported Countries")), formStep === 0 && mode !== "payment" /* payment */ && /* @__PURE__ */ React83.createElement(
7248
7180
  "button",
7249
7181
  {
7250
7182
  className: "reset-button",
@@ -7252,7 +7184,7 @@ var TransferWidget = ({
7252
7184
  disabled: isApproving || isSubmitting || isSigning
7253
7185
  },
7254
7186
  "Reset"
7255
- ))), mode === "payment" /* payment */ && paymentTitleOption?.title && /* @__PURE__ */ React116.createElement("h4", { className: "subtitle" }, paymentTitleOption.title)), /* @__PURE__ */ React116.createElement("div", { className: "kima-card-content", ref: mainRef }, formStep === 0 ? /* @__PURE__ */ React116.createElement(
7187
+ ))), mode === "payment" /* payment */ && paymentTitleOption?.title && /* @__PURE__ */ React83.createElement("h4", { className: "subtitle" }, paymentTitleOption.title)), /* @__PURE__ */ React83.createElement("div", { className: "kima-card-content", ref: mainRef }, formStep === 0 ? /* @__PURE__ */ React83.createElement(
7256
7188
  SingleForm_default,
7257
7189
  {
7258
7190
  ...{
@@ -7265,7 +7197,7 @@ var TransferWidget = ({
7265
7197
  setInitialSelection
7266
7198
  }
7267
7199
  }
7268
- ) : ccTransactionStatus !== "idle" ? /* @__PURE__ */ React116.createElement(CCWidget_default, { submitCallback: submit }) : /* @__PURE__ */ React116.createElement(
7200
+ ) : ccTransactionStatus !== "idle" ? /* @__PURE__ */ React83.createElement(CCWidget_default, { submitCallback: submit }) : /* @__PURE__ */ React83.createElement(
7269
7201
  ConfirmDetails_default,
7270
7202
  {
7271
7203
  ...{
@@ -7273,12 +7205,12 @@ var TransferWidget = ({
7273
7205
  feeOptionDisabled
7274
7206
  }
7275
7207
  }
7276
- )), /* @__PURE__ */ React116.createElement(
7208
+ )), /* @__PURE__ */ React83.createElement(
7277
7209
  "div",
7278
7210
  {
7279
7211
  className: `kima-card-footer ${mode === "bridge" /* bridge */ && formStep !== 0 && "confirm"}`
7280
7212
  },
7281
- /* @__PURE__ */ React116.createElement("div", { className: `button-group` }, isBackButtonEnabled && /* @__PURE__ */ React116.createElement(
7213
+ /* @__PURE__ */ React83.createElement("div", { className: `button-group` }, isBackButtonEnabled && /* @__PURE__ */ React83.createElement(
7282
7214
  SecondaryButton_default,
7283
7215
  {
7284
7216
  clickHandler: onBack,
@@ -7286,7 +7218,7 @@ var TransferWidget = ({
7286
7218
  disabled: isApproving || isSubmitting || isSigning
7287
7219
  },
7288
7220
  formStep > 0 && ccTransactionStatus !== "initialized" ? "Back" : "Cancel"
7289
- ), !!allowance && allowance > 0 && formStep !== 0 && sourceChain.shortName !== "CC" && mode !== "light" /* light */ ? /* @__PURE__ */ React116.createElement(
7221
+ ), !!allowance && allowance > 0 && formStep !== 0 && sourceChain.shortName !== "CC" && mode !== "light" /* light */ ? /* @__PURE__ */ React83.createElement(
7290
7222
  SecondaryButton_default,
7291
7223
  {
7292
7224
  clickHandler: onCancelApprove,
@@ -7295,7 +7227,7 @@ var TransferWidget = ({
7295
7227
  disabled: isCancellingApprove || isApproving || isSubmitting || isSigning
7296
7228
  },
7297
7229
  isCancellingApprove ? "Cancelling Approval" : "Cancel Approve"
7298
- ) : null, isSubmitButtonEnabled && /* @__PURE__ */ React116.createElement(
7230
+ ) : null, isSubmitButtonEnabled && /* @__PURE__ */ React83.createElement(
7299
7231
  PrimaryButton_default,
7300
7232
  {
7301
7233
  clickHandler: onNext,
@@ -7304,7 +7236,7 @@ var TransferWidget = ({
7304
7236
  },
7305
7237
  getButtonLabel()
7306
7238
  ))
7307
- ), /* @__PURE__ */ React116.createElement(SolanaWalletConnectModal_default, null), /* @__PURE__ */ React116.createElement(TronWalletConnectModal_default, null), /* @__PURE__ */ React116.createElement(
7239
+ ), /* @__PURE__ */ React83.createElement(SolanaWalletConnectModal_default, null), /* @__PURE__ */ React83.createElement(TronWalletConnectModal_default, null), /* @__PURE__ */ React83.createElement(
7308
7240
  Toaster2,
7309
7241
  {
7310
7242
  position: "top-right",
@@ -7329,7 +7261,7 @@ var TransferWidget = ({
7329
7261
  }
7330
7262
  }
7331
7263
  }
7332
- ), /* @__PURE__ */ React116.createElement("div", { className: "floating-footer" }, /* @__PURE__ */ React116.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React116.createElement("span", null, "Powered by"), /* @__PURE__ */ React116.createElement(KimaNetwork_default, null))))
7264
+ ), /* @__PURE__ */ React83.createElement("div", { className: "floating-footer" }, /* @__PURE__ */ React83.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React83.createElement("span", null, "Powered by"), /* @__PURE__ */ React83.createElement(KimaNetwork_default, null))))
7333
7265
  );
7334
7266
  };
7335
7267
 
@@ -7368,7 +7300,7 @@ var useDebugCode = (sequence = ["D", "E", "B", "U", "G"]) => {
7368
7300
  };
7369
7301
 
7370
7302
  // src/components/ErrorWidget.tsx
7371
- import React117 from "react";
7303
+ import React84 from "react";
7372
7304
  import { useSelector as useSelector46 } from "react-redux";
7373
7305
  var ErrorWidget = ({
7374
7306
  theme,
@@ -7381,7 +7313,7 @@ var ErrorWidget = ({
7381
7313
  const ccTransactionId = useSelector46(selectCCTransactionId);
7382
7314
  const isCreditCardSource = sourceChain.shortName === "CC";
7383
7315
  const isRetrying = useSelector46(selectCCTransactionRetrying);
7384
- return /* @__PURE__ */ React117.createElement(
7316
+ return /* @__PURE__ */ React84.createElement(
7385
7317
  "div",
7386
7318
  {
7387
7319
  className: `kima-card ${theme.colorMode}`,
@@ -7389,7 +7321,7 @@ var ErrorWidget = ({
7389
7321
  background: theme.colorMode === "light" /* light */ ? theme.backgroundColorLight : theme.backgroundColorDark
7390
7322
  }
7391
7323
  },
7392
- /* @__PURE__ */ React117.createElement("div", { className: "transfer-card" }, /* @__PURE__ */ React117.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React117.createElement("div", { className: "topbar" }, /* @__PURE__ */ React117.createElement("div", { className: "title" }, /* @__PURE__ */ React117.createElement("h3", null, title))), /* @__PURE__ */ React117.createElement("h4", { className: "subtitle" })), /* @__PURE__ */ React117.createElement("div", { className: "kima-card-content error" }, isCreditCardSource && !isRetrying && /* @__PURE__ */ React117.createElement(Error_default, { width: 40, height: 40 }), message && message !== "" && /* @__PURE__ */ React117.createElement("h2", null, message), isCreditCardSource && /* @__PURE__ */ React117.createElement(
7324
+ /* @__PURE__ */ React84.createElement("div", { className: "transfer-card" }, /* @__PURE__ */ React84.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React84.createElement("div", { className: "topbar" }, /* @__PURE__ */ React84.createElement("div", { className: "title" }, /* @__PURE__ */ React84.createElement("h3", null, title))), /* @__PURE__ */ React84.createElement("h4", { className: "subtitle" })), /* @__PURE__ */ React84.createElement("div", { className: "kima-card-content error" }, isCreditCardSource && !isRetrying && /* @__PURE__ */ React84.createElement(Error_default, { width: 40, height: 40 }), message && message !== "" && /* @__PURE__ */ React84.createElement("h2", null, message), isCreditCardSource && /* @__PURE__ */ React84.createElement(
7393
7325
  "div",
7394
7326
  {
7395
7327
  style: {
@@ -7398,8 +7330,8 @@ var ErrorWidget = ({
7398
7330
  flexDirection: "column"
7399
7331
  }
7400
7332
  },
7401
- isRetrying ? /* @__PURE__ */ React117.createElement("p", null, "The transaction is being retried in the background. This may take a few moments. If the issue persists, please contact support and provide the transaction ID below for reference.") : /* @__PURE__ */ React117.createElement("p", null, "This credit card transaction has failed. Please check the details and try again. If the issue persists, please contact support and provide the transaction ID below for reference."),
7402
- ccTransactionId && /* @__PURE__ */ React117.createElement(
7333
+ isRetrying ? /* @__PURE__ */ React84.createElement("p", null, "The transaction is being retried in the background. This may take a few moments. If the issue persists, please contact support and provide the transaction ID below for reference.") : /* @__PURE__ */ React84.createElement("p", null, "This credit card transaction has failed. Please check the details and try again. If the issue persists, please contact support and provide the transaction ID below for reference."),
7334
+ ccTransactionId && /* @__PURE__ */ React84.createElement(
7403
7335
  "div",
7404
7336
  {
7405
7337
  style: {
@@ -7409,7 +7341,7 @@ var ErrorWidget = ({
7409
7341
  justifyContent: "center"
7410
7342
  }
7411
7343
  },
7412
- /* @__PURE__ */ React117.createElement(
7344
+ /* @__PURE__ */ React84.createElement(
7413
7345
  "code",
7414
7346
  {
7415
7347
  style: {
@@ -7420,10 +7352,10 @@ var ErrorWidget = ({
7420
7352
  },
7421
7353
  ccTransactionId
7422
7354
  ),
7423
- /* @__PURE__ */ React117.createElement(CopyButton_default, { text: ccTransactionId })
7355
+ /* @__PURE__ */ React84.createElement(CopyButton_default, { text: ccTransactionId })
7424
7356
  ),
7425
- isRetrying && /* @__PURE__ */ React117.createElement(ring_default, { width: 30, height: 30, fill: "#86b8ce" })
7426
- )), backButtonEnabled && /* @__PURE__ */ React117.createElement(
7357
+ isRetrying && /* @__PURE__ */ React84.createElement(ring_default, { width: 30, height: 30, fill: "#86b8ce" })
7358
+ )), backButtonEnabled && /* @__PURE__ */ React84.createElement(
7427
7359
  "div",
7428
7360
  {
7429
7361
  style: {
@@ -7432,8 +7364,8 @@ var ErrorWidget = ({
7432
7364
  marginTop: 16
7433
7365
  }
7434
7366
  },
7435
- /* @__PURE__ */ React117.createElement(PrimaryButton_default, { clickHandler: backButtonFunction }, "Back")
7436
- ), /* @__PURE__ */ React117.createElement("div", { className: "kima-card-footer" }), /* @__PURE__ */ React117.createElement("div", { className: "floating-footer" }, /* @__PURE__ */ React117.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React117.createElement("span", null, "Powered by"), /* @__PURE__ */ React117.createElement(FooterLogo_default, { width: 50, fill: "black" }), /* @__PURE__ */ React117.createElement("strong", null, "Network"))))
7367
+ /* @__PURE__ */ React84.createElement(PrimaryButton_default, { clickHandler: backButtonFunction }, "Back")
7368
+ ), /* @__PURE__ */ React84.createElement("div", { className: "kima-card-footer" }), /* @__PURE__ */ React84.createElement("div", { className: "floating-footer" }, /* @__PURE__ */ React84.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React84.createElement("span", null, "Powered by"), /* @__PURE__ */ React84.createElement(FooterLogo_default, { width: 50, fill: "black" }), /* @__PURE__ */ React84.createElement("strong", null, "Network"))))
7437
7369
  );
7438
7370
  };
7439
7371
  var ErrorWidget_default = ErrorWidget;
@@ -7511,9 +7443,9 @@ var KimaWidgetWrapper = ({
7511
7443
  console.log("widget wrapper", submitted, ccTransactionStatus);
7512
7444
  if (submitted) {
7513
7445
  logger_default.debug("will return transaction widget on cc success");
7514
- return /* @__PURE__ */ React118.createElement(TransactionWidget, { theme });
7446
+ return /* @__PURE__ */ React85.createElement(TransactionWidget, { theme });
7515
7447
  } else if (ccTransactionStatus === "error-id") {
7516
- return /* @__PURE__ */ React118.createElement(
7448
+ return /* @__PURE__ */ React85.createElement(
7517
7449
  ErrorWidget_default,
7518
7450
  {
7519
7451
  theme,
@@ -7527,7 +7459,7 @@ var KimaWidgetWrapper = ({
7527
7459
  }
7528
7460
  );
7529
7461
  } else if (ccTransactionStatus === "error-generic") {
7530
- return /* @__PURE__ */ React118.createElement(
7462
+ return /* @__PURE__ */ React85.createElement(
7531
7463
  ErrorWidget_default,
7532
7464
  {
7533
7465
  theme,
@@ -7541,7 +7473,7 @@ var KimaWidgetWrapper = ({
7541
7473
  }
7542
7474
  );
7543
7475
  }
7544
- return /* @__PURE__ */ React118.createElement(
7476
+ return /* @__PURE__ */ React85.createElement(
7545
7477
  TransferWidget,
7546
7478
  {
7547
7479
  theme,
@@ -7551,7 +7483,7 @@ var KimaWidgetWrapper = ({
7551
7483
  }
7552
7484
  );
7553
7485
  }
7554
- return submitted ? /* @__PURE__ */ React118.createElement(TransactionWidget, { theme }) : /* @__PURE__ */ React118.createElement(
7486
+ return submitted ? /* @__PURE__ */ React85.createElement(TransactionWidget, { theme }) : /* @__PURE__ */ React85.createElement(
7555
7487
  TransferWidget,
7556
7488
  {
7557
7489
  theme,
@@ -7567,9 +7499,9 @@ var KimaWidgetWrapper_default = KimaWidgetWrapper;
7567
7499
  import { useDispatch as useDispatch28 } from "react-redux";
7568
7500
 
7569
7501
  // src/SkeletonLoader.tsx
7570
- import React119 from "react";
7502
+ import React86 from "react";
7571
7503
  var SkeletonLoader = ({ theme }) => {
7572
- return /* @__PURE__ */ React119.createElement(
7504
+ return /* @__PURE__ */ React86.createElement(
7573
7505
  "div",
7574
7506
  {
7575
7507
  className: `kima-card ${theme.colorMode}`,
@@ -7577,7 +7509,7 @@ var SkeletonLoader = ({ theme }) => {
7577
7509
  background: theme.colorMode === "light" /* light */ ? theme.backgroundColorLight : theme.backgroundColorDark
7578
7510
  }
7579
7511
  },
7580
- /* @__PURE__ */ React119.createElement("div", { className: "transfer-card" }, /* @__PURE__ */ React119.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React119.createElement("div", { className: "topbar" }, /* @__PURE__ */ React119.createElement("div", { className: "title skeleton" }, /* @__PURE__ */ React119.createElement("h3", null))), /* @__PURE__ */ React119.createElement("h4", { className: "subtitle" })), /* @__PURE__ */ React119.createElement("div", { className: "kima-card-content skeleton" }, /* @__PURE__ */ React119.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React119.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React119.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React119.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React119.createElement("div", { className: "skeleton" })), /* @__PURE__ */ React119.createElement("div", { className: `kima-card-footer` }, /* @__PURE__ */ React119.createElement("div", { className: `button-group skeleton` }, /* @__PURE__ */ React119.createElement("div", { className: "skeleton" }))), /* @__PURE__ */ React119.createElement("div", { className: "floating-footer" }, /* @__PURE__ */ React119.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React119.createElement("span", null, "Powered by"), /* @__PURE__ */ React119.createElement(FooterLogo_default, { width: 50, fill: "black" }), /* @__PURE__ */ React119.createElement("strong", null, "Network"))))
7512
+ /* @__PURE__ */ React86.createElement("div", { className: "transfer-card" }, /* @__PURE__ */ React86.createElement("div", { className: "kima-card-header" }, /* @__PURE__ */ React86.createElement("div", { className: "topbar" }, /* @__PURE__ */ React86.createElement("div", { className: "title skeleton" }, /* @__PURE__ */ React86.createElement("h3", null))), /* @__PURE__ */ React86.createElement("h4", { className: "subtitle" })), /* @__PURE__ */ React86.createElement("div", { className: "kima-card-content skeleton" }, /* @__PURE__ */ React86.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React86.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React86.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React86.createElement("div", { className: "skeleton" }), /* @__PURE__ */ React86.createElement("div", { className: "skeleton" })), /* @__PURE__ */ React86.createElement("div", { className: `kima-card-footer` }, /* @__PURE__ */ React86.createElement("div", { className: `button-group skeleton` }, /* @__PURE__ */ React86.createElement("div", { className: "skeleton" }))), /* @__PURE__ */ React86.createElement("div", { className: "floating-footer" }, /* @__PURE__ */ React86.createElement("div", { className: `items ${theme.colorMode}` }, /* @__PURE__ */ React86.createElement("span", null, "Powered by"), /* @__PURE__ */ React86.createElement(FooterLogo_default, { width: 50, fill: "black" }), /* @__PURE__ */ React86.createElement("strong", null, "Network"))))
7581
7513
  );
7582
7514
  };
7583
7515
  var SkeletonLoader_default = SkeletonLoader;
@@ -7622,11 +7554,11 @@ var KimaTransactionWidget = ({
7622
7554
  }
7623
7555
  }, [theme?.colorMode]);
7624
7556
  if (!hydrated || !theme?.colorMode)
7625
- return /* @__PURE__ */ React120.createElement(ring_default, { width: 20, height: 20, fill: "#86b8ce" });
7557
+ return /* @__PURE__ */ React87.createElement(ring_default, { width: 20, height: 20, fill: "#86b8ce" });
7626
7558
  if (isLoadingEnvs || isLoadingChainData)
7627
- return /* @__PURE__ */ React120.createElement(SkeletonLoader_default, { theme });
7559
+ return /* @__PURE__ */ React87.createElement(SkeletonLoader_default, { theme });
7628
7560
  if (envOptionsError || !envOptions)
7629
- return /* @__PURE__ */ React120.createElement(
7561
+ return /* @__PURE__ */ React87.createElement(
7630
7562
  ErrorWidget_default,
7631
7563
  {
7632
7564
  theme,
@@ -7635,7 +7567,7 @@ var KimaTransactionWidget = ({
7635
7567
  }
7636
7568
  );
7637
7569
  if (chainDataError || !chainData)
7638
- return /* @__PURE__ */ React120.createElement(
7570
+ return /* @__PURE__ */ React87.createElement(
7639
7571
  ErrorWidget_default,
7640
7572
  {
7641
7573
  theme,
@@ -7643,7 +7575,7 @@ var KimaTransactionWidget = ({
7643
7575
  message: "There was an error loading the chain data from the backend. Please check that the backend is running properly and the widget points to the corresponding url." /* ChainLoadingError */
7644
7576
  }
7645
7577
  );
7646
- return /* @__PURE__ */ React120.createElement(
7578
+ return /* @__PURE__ */ React87.createElement(
7647
7579
  KimaWidgetWrapper_default,
7648
7580
  {
7649
7581
  ...{