@rash2x/bridge-widget 0.1.0 → 0.1.3
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/evaa-bridge.cjs +69 -170
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +67 -168
- package/dist/evaa-bridge.mjs.map +1 -1
- package/dist/index.d.ts +624 -0
- package/dist/styles.css +104 -125
- package/package.json +19 -14
- package/dist/assets/fonts/Gilroy-Black.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Bold.ttf +0 -0
- package/dist/assets/fonts/Gilroy-ExtraBold.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Heavy.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Light.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Medium.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Regular.ttf +0 -0
- package/dist/assets/fonts/Gilroy-SemiBold.ttf +0 -0
- package/dist/assets/fonts/Gilroy-Thin.ttf +0 -0
- package/dist/assets/fonts/Gilroy-UltraLight.ttf +0 -0
- package/dist/assets/fonts/fonts.css +0 -81
- package/dist/assets/fonts/hanson-bold.woff +0 -0
- package/dist/assets/fonts/hanson-bold.woff2 +0 -0
- package/dist/tonconnect-manifest.json +0 -7
- package/dist/vite.svg +0 -1
package/dist/evaa-bridge.mjs
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import * as require$$0 from "react";
|
|
7
|
-
import require$$0__default, { useState, useCallback, useRef, useEffect,
|
|
7
|
+
import require$$0__default, { useState, useCallback, useRef, useEffect, useMemo, createContext, useContext, memo, forwardRef } from "react";
|
|
8
8
|
import { create as create$1 } from "zustand";
|
|
9
9
|
import { Slot } from "@radix-ui/react-slot";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
@@ -14,6 +14,7 @@ import { createPortal } from "react-dom";
|
|
|
14
14
|
import { AnimatePresence, motion } from "framer-motion";
|
|
15
15
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
16
16
|
import { useAccount, useDisconnect, useWalletClient } from "wagmi";
|
|
17
|
+
import { useWallet } from "@tronweb3/tronwallet-adapter-react-hooks";
|
|
17
18
|
import { useTonAddress, useTonConnectUI } from "@tonconnect/ui-react";
|
|
18
19
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
19
20
|
import { Address, Cell } from "@ton/core";
|
|
@@ -25,6 +26,7 @@ import { ConnectKitButton } from "connectkit";
|
|
|
25
26
|
import { t } from "i18next";
|
|
26
27
|
import { toast, Toaster } from "sonner";
|
|
27
28
|
import { ethers, BrowserProvider, Contract, parseUnits } from "ethers";
|
|
29
|
+
import { TronLinkAdapterName } from "@tronweb3/tronwallet-adapters";
|
|
28
30
|
const norm = (s) => (s ?? "").toUpperCase().replace(/₮/g, "T").replace(/[^A-Z0-9]/g, "");
|
|
29
31
|
const POPULAR_ORDER = [
|
|
30
32
|
"USDT",
|
|
@@ -1239,139 +1241,6 @@ function Input({ className, type, ...props }) {
|
|
|
1239
1241
|
}
|
|
1240
1242
|
);
|
|
1241
1243
|
}
|
|
1242
|
-
function getDefaultExportFromCjs(x) {
|
|
1243
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1244
|
-
}
|
|
1245
|
-
function getAugmentedNamespace(n) {
|
|
1246
|
-
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
|
|
1247
|
-
var f = n.default;
|
|
1248
|
-
if (typeof f == "function") {
|
|
1249
|
-
var a = function a2() {
|
|
1250
|
-
var isInstance = false;
|
|
1251
|
-
try {
|
|
1252
|
-
isInstance = this instanceof a2;
|
|
1253
|
-
} catch {
|
|
1254
|
-
}
|
|
1255
|
-
if (isInstance) {
|
|
1256
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
1257
|
-
}
|
|
1258
|
-
return f.apply(this, arguments);
|
|
1259
|
-
};
|
|
1260
|
-
a.prototype = f.prototype;
|
|
1261
|
-
} else a = {};
|
|
1262
|
-
Object.defineProperty(a, "__esModule", { value: true });
|
|
1263
|
-
Object.keys(n).forEach(function(k) {
|
|
1264
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
1265
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
1266
|
-
enumerable: true,
|
|
1267
|
-
get: function() {
|
|
1268
|
-
return n[k];
|
|
1269
|
-
}
|
|
1270
|
-
});
|
|
1271
|
-
});
|
|
1272
|
-
return a;
|
|
1273
|
-
}
|
|
1274
|
-
var NetworkType;
|
|
1275
|
-
(function(NetworkType2) {
|
|
1276
|
-
NetworkType2["Mainnet"] = "Mainnet";
|
|
1277
|
-
NetworkType2["Shasta"] = "Shasta";
|
|
1278
|
-
NetworkType2["Nile"] = "Nile";
|
|
1279
|
-
NetworkType2["Unknown"] = "Unknown";
|
|
1280
|
-
})(NetworkType || (NetworkType = {}));
|
|
1281
|
-
var ChainNetwork;
|
|
1282
|
-
(function(ChainNetwork2) {
|
|
1283
|
-
ChainNetwork2["Mainnet"] = "Mainnet";
|
|
1284
|
-
ChainNetwork2["Shasta"] = "Shasta";
|
|
1285
|
-
ChainNetwork2["Nile"] = "Nile";
|
|
1286
|
-
})(ChainNetwork || (ChainNetwork = {}));
|
|
1287
|
-
function printError() {
|
|
1288
|
-
console.error(`
|
|
1289
|
-
You are using WalletContext without provide the WalletContext.Provider.
|
|
1290
|
-
Please wrap your sub-components with a WalletProvider and provide required values.
|
|
1291
|
-
`);
|
|
1292
|
-
}
|
|
1293
|
-
const DEFAULT_CONTEXT = {
|
|
1294
|
-
autoConnect: false,
|
|
1295
|
-
connecting: false,
|
|
1296
|
-
connected: false,
|
|
1297
|
-
disconnecting: false,
|
|
1298
|
-
/* eslint-disable */
|
|
1299
|
-
select(_name) {
|
|
1300
|
-
printError();
|
|
1301
|
-
},
|
|
1302
|
-
connect() {
|
|
1303
|
-
printError();
|
|
1304
|
-
return Promise.reject();
|
|
1305
|
-
},
|
|
1306
|
-
disconnect() {
|
|
1307
|
-
printError();
|
|
1308
|
-
return Promise.reject();
|
|
1309
|
-
},
|
|
1310
|
-
signTransaction(_transaction) {
|
|
1311
|
-
printError();
|
|
1312
|
-
return Promise.reject();
|
|
1313
|
-
},
|
|
1314
|
-
signMessage(_message) {
|
|
1315
|
-
printError();
|
|
1316
|
-
return Promise.reject();
|
|
1317
|
-
}
|
|
1318
|
-
/* eslint-enable */
|
|
1319
|
-
};
|
|
1320
|
-
Object.defineProperty(DEFAULT_CONTEXT, "wallets", {
|
|
1321
|
-
get() {
|
|
1322
|
-
printError();
|
|
1323
|
-
return [];
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
Object.defineProperty(DEFAULT_CONTEXT, "wallet", {
|
|
1327
|
-
get() {
|
|
1328
|
-
printError();
|
|
1329
|
-
return null;
|
|
1330
|
-
}
|
|
1331
|
-
});
|
|
1332
|
-
Object.defineProperty(DEFAULT_CONTEXT, "address", {
|
|
1333
|
-
get() {
|
|
1334
|
-
printError();
|
|
1335
|
-
return null;
|
|
1336
|
-
}
|
|
1337
|
-
});
|
|
1338
|
-
const WalletContext = createContext(DEFAULT_CONTEXT);
|
|
1339
|
-
function useWallet() {
|
|
1340
|
-
return useContext(WalletContext);
|
|
1341
|
-
}
|
|
1342
|
-
(function(thisArg, _arguments, P, generator) {
|
|
1343
|
-
function adopt(value) {
|
|
1344
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
1345
|
-
resolve(value);
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1349
|
-
function fulfilled(value) {
|
|
1350
|
-
try {
|
|
1351
|
-
step(generator.next(value));
|
|
1352
|
-
} catch (e) {
|
|
1353
|
-
reject(e);
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
function rejected(value) {
|
|
1357
|
-
try {
|
|
1358
|
-
step(generator["throw"](value));
|
|
1359
|
-
} catch (e) {
|
|
1360
|
-
reject(e);
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
function step(result) {
|
|
1364
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1365
|
-
}
|
|
1366
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1367
|
-
});
|
|
1368
|
-
});
|
|
1369
|
-
({
|
|
1370
|
-
"0x2b6653dc": NetworkType.Mainnet,
|
|
1371
|
-
"0x94a9059e": NetworkType.Shasta,
|
|
1372
|
-
"0xcd8690dc": NetworkType.Nile
|
|
1373
|
-
});
|
|
1374
|
-
const TronLinkAdapterName = "TronLink";
|
|
1375
1244
|
function useAddresses() {
|
|
1376
1245
|
const { fromChain, toChain } = useChainsStore();
|
|
1377
1246
|
const { address: evmAddress } = useAccount();
|
|
@@ -1755,7 +1624,7 @@ const TokenRow = ({
|
|
|
1755
1624
|
Button,
|
|
1756
1625
|
{
|
|
1757
1626
|
onClick: onPick,
|
|
1758
|
-
className: `w-full
|
|
1627
|
+
className: `w-full h-[50px] cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-modal-item-hover rounded-12 transition-[300] ${isSelected ? "border border-ring" : ""}`,
|
|
1759
1628
|
children: [
|
|
1760
1629
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1761
1630
|
/* @__PURE__ */ jsx(
|
|
@@ -3457,7 +3326,7 @@ const ReceiveRow = () => {
|
|
|
3457
3326
|
label: t2("transaction.route"),
|
|
3458
3327
|
right: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
3459
3328
|
/* @__PURE__ */ jsx(StargateIcon, { className: "size-4" }),
|
|
3460
|
-
/* @__PURE__ */ jsx("p", { className: "text-foreground font-normal text-sm
|
|
3329
|
+
/* @__PURE__ */ jsx("p", { className: "text-foreground font-normal text-sm leading-[100%]", children: routeText }),
|
|
3461
3330
|
hasGasOnDestination && /* @__PURE__ */ jsx("span", { className: "text-xs bg-settings-active text-settings-active-foreground px-1.5 py-0.5 rounded", children: t2(`settings.gasPresets.${gasPreset}`) })
|
|
3462
3331
|
] })
|
|
3463
3332
|
}
|
|
@@ -4292,7 +4161,7 @@ const WalletSelectModal = ({
|
|
|
4292
4161
|
return /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsxs(
|
|
4293
4162
|
Button,
|
|
4294
4163
|
{
|
|
4295
|
-
className: "w-full
|
|
4164
|
+
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-muted h-auto rounded-12 transition-[300]",
|
|
4296
4165
|
children: [
|
|
4297
4166
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3 min-w-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
4298
4167
|
/* @__PURE__ */ jsx("div", { className: "w-7.5 h-7.5 flex items-center justify-center", children: /* @__PURE__ */ jsx(IconComponent, { className: "size-7.5" }) }),
|
|
@@ -4322,7 +4191,7 @@ const WalletSelectModal = ({
|
|
|
4322
4191
|
type: "button",
|
|
4323
4192
|
onClick: show,
|
|
4324
4193
|
disabled: isConnecting,
|
|
4325
|
-
className: "w-full
|
|
4194
|
+
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-muted h-auto rounded-12 transition-[300] disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4326
4195
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
4327
4196
|
/* @__PURE__ */ jsx("div", { className: "w-7.5 h-7.5 flex items-center justify-center", children: /* @__PURE__ */ jsx(IconComponent, { className: "size-7.5" }) }),
|
|
4328
4197
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
@@ -4339,7 +4208,7 @@ const WalletSelectModal = ({
|
|
|
4339
4208
|
{
|
|
4340
4209
|
onClick: () => handleWalletSelect(wallet.id),
|
|
4341
4210
|
disabled: !wallet.enabled,
|
|
4342
|
-
className: "w-full
|
|
4211
|
+
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-2.5 px-5 py-2.5 hover:bg-muted h-auto rounded-12 transition-[300] disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4343
4212
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
4344
4213
|
/* @__PURE__ */ jsx("div", { className: "w-7.5 h-7.5 flex items-center justify-center", children: /* @__PURE__ */ jsx(IconComponent, { className: "size-7.5" }) }),
|
|
4345
4214
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
@@ -4973,6 +4842,38 @@ const TransactionSuccessVector = (props) => {
|
|
|
4973
4842
|
)
|
|
4974
4843
|
] });
|
|
4975
4844
|
};
|
|
4845
|
+
function getDefaultExportFromCjs(x) {
|
|
4846
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4847
|
+
}
|
|
4848
|
+
function getAugmentedNamespace(n) {
|
|
4849
|
+
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
|
|
4850
|
+
var f = n.default;
|
|
4851
|
+
if (typeof f == "function") {
|
|
4852
|
+
var a = function a2() {
|
|
4853
|
+
var isInstance = false;
|
|
4854
|
+
try {
|
|
4855
|
+
isInstance = this instanceof a2;
|
|
4856
|
+
} catch {
|
|
4857
|
+
}
|
|
4858
|
+
if (isInstance) {
|
|
4859
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
4860
|
+
}
|
|
4861
|
+
return f.apply(this, arguments);
|
|
4862
|
+
};
|
|
4863
|
+
a.prototype = f.prototype;
|
|
4864
|
+
} else a = {};
|
|
4865
|
+
Object.defineProperty(a, "__esModule", { value: true });
|
|
4866
|
+
Object.keys(n).forEach(function(k) {
|
|
4867
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
4868
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
4869
|
+
enumerable: true,
|
|
4870
|
+
get: function() {
|
|
4871
|
+
return n[k];
|
|
4872
|
+
}
|
|
4873
|
+
});
|
|
4874
|
+
});
|
|
4875
|
+
return a;
|
|
4876
|
+
}
|
|
4976
4877
|
var fireworks$1 = {};
|
|
4977
4878
|
var presets = {};
|
|
4978
4879
|
var dist = {};
|
|
@@ -4980,7 +4881,7 @@ var module = {};
|
|
|
4980
4881
|
(function main(global, module2, isWorker, workerSize) {
|
|
4981
4882
|
var canUseWorker = !!(global.Worker && global.Blob && global.Promise && global.OffscreenCanvas && global.OffscreenCanvasRenderingContext2D && global.HTMLCanvasElement && global.HTMLCanvasElement.prototype.transferControlToOffscreen && global.URL && global.URL.createObjectURL);
|
|
4982
4883
|
var canUsePaths = typeof Path2D === "function" && typeof DOMMatrix === "function";
|
|
4983
|
-
var canDrawBitmap = function() {
|
|
4884
|
+
var canDrawBitmap = (function() {
|
|
4984
4885
|
if (!global.OffscreenCanvas) {
|
|
4985
4886
|
return false;
|
|
4986
4887
|
}
|
|
@@ -4994,7 +4895,7 @@ var module = {};
|
|
|
4994
4895
|
return false;
|
|
4995
4896
|
}
|
|
4996
4897
|
return true;
|
|
4997
|
-
}();
|
|
4898
|
+
})();
|
|
4998
4899
|
function noop() {
|
|
4999
4900
|
}
|
|
5000
4901
|
function promise(func) {
|
|
@@ -5006,7 +4907,7 @@ var module = {};
|
|
|
5006
4907
|
func(noop, noop);
|
|
5007
4908
|
return null;
|
|
5008
4909
|
}
|
|
5009
|
-
var bitmapMapper = /* @__PURE__ */ function(skipTransform, map) {
|
|
4910
|
+
var bitmapMapper = /* @__PURE__ */ (function(skipTransform, map) {
|
|
5010
4911
|
return {
|
|
5011
4912
|
transform: function(bitmap) {
|
|
5012
4913
|
if (skipTransform) {
|
|
@@ -5025,8 +4926,8 @@ var module = {};
|
|
|
5025
4926
|
map.clear();
|
|
5026
4927
|
}
|
|
5027
4928
|
};
|
|
5028
|
-
}(canDrawBitmap, /* @__PURE__ */ new Map());
|
|
5029
|
-
var raf = function() {
|
|
4929
|
+
})(canDrawBitmap, /* @__PURE__ */ new Map());
|
|
4930
|
+
var raf = (function() {
|
|
5030
4931
|
var TIME = Math.floor(1e3 / 60);
|
|
5031
4932
|
var frame, cancel;
|
|
5032
4933
|
var frames = {};
|
|
@@ -5059,8 +4960,8 @@ var module = {};
|
|
|
5059
4960
|
};
|
|
5060
4961
|
}
|
|
5061
4962
|
return { frame, cancel };
|
|
5062
|
-
}();
|
|
5063
|
-
var getWorker = /* @__PURE__ */ function() {
|
|
4963
|
+
})();
|
|
4964
|
+
var getWorker = /* @__PURE__ */ (function() {
|
|
5064
4965
|
var worker;
|
|
5065
4966
|
var prom;
|
|
5066
4967
|
var resolves = {};
|
|
@@ -5141,7 +5042,7 @@ var module = {};
|
|
|
5141
5042
|
}
|
|
5142
5043
|
return worker;
|
|
5143
5044
|
};
|
|
5144
|
-
}();
|
|
5045
|
+
})();
|
|
5145
5046
|
var defaults = {
|
|
5146
5047
|
particleCount: 50,
|
|
5147
5048
|
angle: 90,
|
|
@@ -5661,7 +5562,7 @@ var module = {};
|
|
|
5661
5562
|
module2.exports.create = confettiCannon;
|
|
5662
5563
|
module2.exports.shapeFromPath = shapeFromPath;
|
|
5663
5564
|
module2.exports.shapeFromText = shapeFromText;
|
|
5664
|
-
})(function() {
|
|
5565
|
+
})((function() {
|
|
5665
5566
|
if (typeof window !== "undefined") {
|
|
5666
5567
|
return window;
|
|
5667
5568
|
}
|
|
@@ -5669,7 +5570,7 @@ var module = {};
|
|
|
5669
5570
|
return self;
|
|
5670
5571
|
}
|
|
5671
5572
|
return this || {};
|
|
5672
|
-
}(), module, false);
|
|
5573
|
+
})(), module, false);
|
|
5673
5574
|
const confetti_module = module.exports;
|
|
5674
5575
|
var create = module.exports.create;
|
|
5675
5576
|
const confetti_module$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5693,7 +5594,7 @@ function requireDist() {
|
|
|
5693
5594
|
};
|
|
5694
5595
|
return __assign.apply(this, arguments);
|
|
5695
5596
|
};
|
|
5696
|
-
var __createBinding = dist && dist.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
5597
|
+
var __createBinding = dist && dist.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5697
5598
|
if (k2 === void 0) k2 = k;
|
|
5698
5599
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5699
5600
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -5702,13 +5603,13 @@ function requireDist() {
|
|
|
5702
5603
|
} };
|
|
5703
5604
|
}
|
|
5704
5605
|
Object.defineProperty(o, k2, desc);
|
|
5705
|
-
} : function(o, m, k, k2) {
|
|
5606
|
+
}) : (function(o, m, k, k2) {
|
|
5706
5607
|
if (k2 === void 0) k2 = k;
|
|
5707
5608
|
o[k2] = m[k];
|
|
5708
|
-
});
|
|
5709
|
-
var __setModuleDefault = dist && dist.__setModuleDefault || (Object.create ? function(o, v) {
|
|
5609
|
+
}));
|
|
5610
|
+
var __setModuleDefault = dist && dist.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
5710
5611
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
5711
|
-
} : function(o, v) {
|
|
5612
|
+
}) : function(o, v) {
|
|
5712
5613
|
o["default"] = v;
|
|
5713
5614
|
});
|
|
5714
5615
|
var __importStar = dist && dist.__importStar || function(mod) {
|
|
@@ -5779,7 +5680,7 @@ function requirePresets() {
|
|
|
5779
5680
|
};
|
|
5780
5681
|
return __assign.apply(this, arguments);
|
|
5781
5682
|
};
|
|
5782
|
-
var __createBinding = presets && presets.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
5683
|
+
var __createBinding = presets && presets.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5783
5684
|
if (k2 === void 0) k2 = k;
|
|
5784
5685
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5785
5686
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -5788,13 +5689,13 @@ function requirePresets() {
|
|
|
5788
5689
|
} };
|
|
5789
5690
|
}
|
|
5790
5691
|
Object.defineProperty(o, k2, desc);
|
|
5791
|
-
} : function(o, m, k, k2) {
|
|
5692
|
+
}) : (function(o, m, k, k2) {
|
|
5792
5693
|
if (k2 === void 0) k2 = k;
|
|
5793
5694
|
o[k2] = m[k];
|
|
5794
|
-
});
|
|
5795
|
-
var __setModuleDefault = presets && presets.__setModuleDefault || (Object.create ? function(o, v) {
|
|
5695
|
+
}));
|
|
5696
|
+
var __setModuleDefault = presets && presets.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
5796
5697
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
5797
|
-
} : function(o, v) {
|
|
5698
|
+
}) : function(o, v) {
|
|
5798
5699
|
o["default"] = v;
|
|
5799
5700
|
});
|
|
5800
5701
|
var __importStar = presets && presets.__importStar || function(mod) {
|
|
@@ -5878,7 +5779,7 @@ function requireConductor() {
|
|
|
5878
5779
|
if (hasRequiredConductor) return conductor;
|
|
5879
5780
|
hasRequiredConductor = 1;
|
|
5880
5781
|
Object.defineProperty(conductor, "__esModule", { value: true });
|
|
5881
|
-
var Conductor = /* @__PURE__ */ function() {
|
|
5782
|
+
var Conductor = /* @__PURE__ */ (function() {
|
|
5882
5783
|
function Conductor2(_a) {
|
|
5883
5784
|
var confetti = _a.confetti, decorateOptions = _a.decorateOptions;
|
|
5884
5785
|
var _this = this;
|
|
@@ -5911,7 +5812,7 @@ function requireConductor() {
|
|
|
5911
5812
|
this.decorateOptions = decorateOptions;
|
|
5912
5813
|
}
|
|
5913
5814
|
return Conductor2;
|
|
5914
|
-
}();
|
|
5815
|
+
})();
|
|
5915
5816
|
conductor.default = Conductor;
|
|
5916
5817
|
return conductor;
|
|
5917
5818
|
}
|
|
@@ -5931,7 +5832,7 @@ var hasRequiredFireworks$1;
|
|
|
5931
5832
|
function requireFireworks$1() {
|
|
5932
5833
|
if (hasRequiredFireworks$1) return fireworks;
|
|
5933
5834
|
hasRequiredFireworks$1 = 1;
|
|
5934
|
-
var __extends = fireworks && fireworks.__extends || /* @__PURE__ */ function() {
|
|
5835
|
+
var __extends = fireworks && fireworks.__extends || /* @__PURE__ */ (function() {
|
|
5935
5836
|
var extendStatics = function(d, b) {
|
|
5936
5837
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
5937
5838
|
d2.__proto__ = b2;
|
|
@@ -5949,7 +5850,7 @@ function requireFireworks$1() {
|
|
|
5949
5850
|
}
|
|
5950
5851
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5951
5852
|
};
|
|
5952
|
-
}();
|
|
5853
|
+
})();
|
|
5953
5854
|
var __read = fireworks && fireworks.__read || function(o, n) {
|
|
5954
5855
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
5955
5856
|
if (!m) return o;
|
|
@@ -5982,7 +5883,7 @@ function requireFireworks$1() {
|
|
|
5982
5883
|
Object.defineProperty(fireworks, "__esModule", { value: true });
|
|
5983
5884
|
var index_1 = __importDefault(requireConductor());
|
|
5984
5885
|
var randomInRange_1 = __importDefault(requireRandomInRange());
|
|
5985
|
-
var FireworksConductor = function(_super) {
|
|
5886
|
+
var FireworksConductor = (function(_super) {
|
|
5986
5887
|
__extends(FireworksConductor2, _super);
|
|
5987
5888
|
function FireworksConductor2() {
|
|
5988
5889
|
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
|
|
@@ -6013,7 +5914,7 @@ function requireFireworks$1() {
|
|
|
6013
5914
|
return _this;
|
|
6014
5915
|
}
|
|
6015
5916
|
return FireworksConductor2;
|
|
6016
|
-
}(index_1.default);
|
|
5917
|
+
})(index_1.default);
|
|
6017
5918
|
fireworks.default = FireworksConductor;
|
|
6018
5919
|
return fireworks;
|
|
6019
5920
|
}
|
|
@@ -7687,7 +7588,6 @@ const EvaaBridgeWithProviders = (props) => {
|
|
|
7687
7588
|
};
|
|
7688
7589
|
const EvaaBridgeContent = ({
|
|
7689
7590
|
className,
|
|
7690
|
-
theme,
|
|
7691
7591
|
onInitialized,
|
|
7692
7592
|
onAmountChange,
|
|
7693
7593
|
onChainChange
|
|
@@ -7789,11 +7689,10 @@ const EvaaBridgeContent = ({
|
|
|
7789
7689
|
"section",
|
|
7790
7690
|
{
|
|
7791
7691
|
className: cn(
|
|
7792
|
-
"p-5 bg-card max-w-md w-full rounded-3xl mx-auto flex flex-col gap-4
|
|
7692
|
+
"p-5 bg-card max-w-md w-full rounded-3xl mx-auto flex flex-col gap-4 relative",
|
|
7793
7693
|
className
|
|
7794
7694
|
),
|
|
7795
7695
|
ref: modalContainerRef,
|
|
7796
|
-
"data-theme": theme,
|
|
7797
7696
|
children: [
|
|
7798
7697
|
/* @__PURE__ */ jsx(FormHeader, { modalContainer: modalContainerRef.current }),
|
|
7799
7698
|
/* @__PURE__ */ jsxs("div", { className: "space-y-[1px]", children: [
|