everest-npm-features 0.0.1 → 0.0.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/ArrowDropDown-DRUQbGft.js +8 -0
- package/dist/ArrowRight-t-YgAHUn.js +8 -0
- package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
- package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
- package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
- package/dist/Cancel-BMPJ8ZAg.js +11 -0
- package/dist/CardContent-DEA5pnhr.js +141 -0
- package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
- package/dist/Close-mXCsZSxZ.js +8 -0
- package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
- package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
- package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
- package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
- package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
- package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
- package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
- package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
- package/dist/FormControlLabel-BMeMEwyK.js +738 -0
- package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
- package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
- package/dist/Grid2-B0mJbwjl.js +374 -0
- package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
- package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
- package/dist/Info-CkE3Gsf2.js +8 -0
- package/dist/InputAdornment-DZJP9Njd.js +169 -0
- package/dist/ListItemIcon-JAntieDc.js +82 -0
- package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
- package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
- package/dist/Paper-L8ipwfkc.js +183 -0
- package/dist/PlayArrow-D_p2nwO8.js +21 -0
- package/dist/Portal-DxdKGEvu.js +86 -0
- package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
- package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
- package/dist/Stack-CkCveRRR.js +174 -0
- package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
- package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/{withThemeProvider.css → main.css} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles3.css +1 -0
- package/dist/auth-DDk8JxR-.js +46 -0
- package/dist/axios-BEX6n2A7.js +796 -0
- package/dist/bank-BvPXd5sM.js +23 -0
- package/dist/components/Account/index.d.ts +4 -0
- package/dist/components/Account/index.js +310 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/index.js +804 -0
- package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
- package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
- package/dist/components/Profile/documents.js +19 -14
- package/dist/components/Profile/index.js +128 -135
- package/dist/components/Receive/index.js +25 -23
- package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
- package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/form.js +26 -0
- package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
- package/dist/components/RocketRamp/Buy/index.js +31 -0
- package/dist/components/RocketRamp/Buy/types.d.ts +33 -0
- package/dist/components/RocketRamp/Buy/types.js +1 -0
- package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
- package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
- package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
- package/dist/components/RocketRamp/Dashboard/index.js +36 -0
- package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
- package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
- package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
- package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
- package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
- package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
- package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
- package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
- package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
- package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
- package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
- package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
- package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/index.js +82 -0
- package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
- package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
- package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
- package/dist/components/RocketRamp/SignIn/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/email.js +70 -0
- package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/index.js +163 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
- package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/summary.js +57 -0
- package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
- package/dist/components/RocketRamp/SignUp/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
- package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
- package/dist/components/RocketRamp/Transactions/index.js +38 -0
- package/dist/components/Send/index.js +62 -51
- package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
- package/dist/components/Shared/ConnectWallet/index.js +25364 -0
- package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
- package/dist/components/Shared/HistoryItem/index.js +120 -0
- package/dist/components/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Shared/TokenModal/index.d.ts +10 -0
- package/dist/components/Shared/TokenModal/index.js +104 -0
- package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
- package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
- package/dist/components/Shared/addBank.d.ts +2 -0
- package/dist/components/Shared/addBank.js +172 -0
- package/dist/components/Shared/button.js +1 -1
- package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
- package/dist/components/Shared/connectPlaidBank.js +57 -0
- package/dist/components/Shared/incode.js +34 -32
- package/dist/components/Shared/inputField.js +1 -1
- package/dist/components/Shared/noData.d.ts +4 -0
- package/dist/components/Shared/noData.js +14 -0
- package/dist/components/Shared/pin.js +3 -3
- package/dist/components/Shared/step.js +2 -2
- package/dist/components/Shared/tooltip.d.ts +4 -0
- package/dist/components/Shared/tooltip.js +2107 -0
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/SignIn/index.js +26 -24
- package/dist/components/SignUp/index.js +108 -348
- package/dist/components/SignUp/pin.js +116 -844
- package/dist/components/SignUp/privacy.js +3 -3
- package/dist/components/SignUp/terms.js +3 -3
- package/dist/components/SignUp/types.d.ts +0 -1
- package/dist/components/SignUp/userInfo.js +4 -4
- package/dist/components/Stake/gems/index.d.ts +2 -0
- package/dist/components/Stake/gems/index.js +214 -0
- package/dist/components/Stake/id/index.d.ts +2 -0
- package/dist/components/Stake/id/index.js +233 -0
- package/dist/components/Stake/index.d.ts +5 -0
- package/dist/components/Stake/index.js +346 -0
- package/dist/components/Swap/index.d.ts +2 -0
- package/dist/components/Swap/index.js +489 -0
- package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
- package/dist/components/SwapAndUniSwap/index.js +43 -0
- package/dist/components/WalletPortfolio/index.js +191 -263
- package/dist/components/WalletPortfolio/tokenRow.js +8 -5
- package/dist/constants-SKm7VF9k.js +3982 -0
- package/dist/countries-BVn1FubK.js +1925 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
- package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
- package/dist/data/countries.json.d.ts +1925 -0
- package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
- package/dist/dividerClasses-SUAUDDqL.js +10 -0
- package/dist/{documents-CL4Ajr_B.js → documents-7w9u2Oig.js} +123 -122
- package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
- package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
- package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
- package/dist/generic-token-B_ptO5yb.js +4 -0
- package/dist/hoc/withThemeProvider.js +33 -32
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +63 -60
- package/dist/icons/buyIcon.d.ts +2 -0
- package/dist/icons/buyIcon.js +19 -0
- package/dist/icons/canceledBuyIcon.d.ts +2 -0
- package/dist/icons/canceledBuyIcon.js +34 -0
- package/dist/icons/canceledRedeemIcon.d.ts +2 -0
- package/dist/icons/canceledRedeemIcon.js +35 -0
- package/dist/icons/failedBuyIcon.d.ts +2 -0
- package/dist/icons/failedBuyIcon.js +48 -0
- package/dist/icons/failedRedeemIcon.d.ts +2 -0
- package/dist/icons/failedRedeemIcon.js +48 -0
- package/dist/icons/pendingBuyIcon.d.ts +2 -0
- package/dist/icons/pendingBuyIcon.js +38 -0
- package/dist/icons/pendingRedeemIcon.d.ts +2 -0
- package/dist/icons/pendingRedeemIcon.js +34 -0
- package/dist/icons/redeemIcon.d.ts +2 -0
- package/dist/icons/redeemIcon.js +19 -0
- package/dist/index-B8QKlEgj.js +37095 -0
- package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
- package/dist/index-BhmBCie8.js +796 -0
- package/dist/index-C3FYdQkQ.js +4050 -0
- package/dist/index-CrajlEO_.js +576 -0
- package/dist/index-TElEjliR.js +9 -0
- package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
- package/dist/index-ceeCtFuh.js +136 -0
- package/dist/index.esm-BsMAMhYW.js +237 -0
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/main.d.ts +99 -0
- package/dist/main.js +34 -12
- package/dist/moment-h96o7c8I.js +2578 -0
- package/dist/order-CO4ra5N-.js +27 -0
- package/dist/ownerWindow-C-760D__.js +7 -0
- package/dist/providers/metaMask.d.ts +6 -0
- package/dist/providers/metaMask.js +24 -0
- package/dist/react-redux-B4BZippc.js +255 -0
- package/dist/react-webcam-B3cXh1XT.js +267 -0
- package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
- package/dist/rr-primary-logo-CqI24c8v.js +4 -0
- package/dist/stake-DHpsHQbJ.js +17 -0
- package/dist/store.d.ts +66 -0
- package/dist/store.js +1 -0
- package/dist/styled-BTIMwpiX.js +5 -0
- package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
- package/dist/styles.module-O5VVND5e.js +22 -0
- package/dist/tokenRow-CgnPD-4U.js +206 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CfmEP6sW.js +18 -0
- package/dist/useSlot-DaP6eodX.js +50 -0
- package/dist/useTheme-BghcbbEW.js +9 -0
- package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
- package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
- package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
- package/dist/useTimeout-D29bZ7Gz.js +56 -0
- package/dist/user-CeKqBfJU.js +24 -0
- package/dist/util/constants.d.ts +48 -0
- package/dist/util/constants.js +69 -21
- package/dist/util/conversions.js +54 -22271
- package/dist/util/functions.d.ts +5 -0
- package/dist/util/functions.js +81 -24
- package/dist/util/regex.d.ts +3 -0
- package/dist/util/regex.js +6 -0
- package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
- package/dist/wallet-BtAQ78cv.js +35 -0
- package/dist/web3-u4qDZYpo.js +22328 -0
- package/package.json +8 -3
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-Cj5FKr_m.js +0 -19
- package/dist/axios-xPiQW9EP.js +0 -118114
- package/dist/defaultTheme-OIfL8Ia7.js +0 -5
- package/dist/dividerClasses-Z7VLlu5C.js +0 -10
- package/dist/index-DKTkUdik.js +0 -6
- package/dist/react-redux-VW99uJjf.js +0 -5908
- package/dist/react-webcam-Cov1TP0q.js +0 -639
- package/dist/styled-Da6GnxEE.js +0 -5
- package/dist/tokenRow-Cdd_jFjp.js +0 -206
- package/dist/useFormControl-Bo6Tf_xo.js +0 -46
- package/dist/useSlot-CURNJ3JC.js +0 -306
- package/dist/useTheme-DWRMvRU8.js +0 -9
- package/dist/useTimeout-lr7ryrda.js +0 -75
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
const pe = Symbol(), ee = Object.getPrototypeOf, Y = /* @__PURE__ */ new WeakMap(), me = (e) => e && (Y.has(e) ? Y.get(e) : ee(e) === Object.prototype || ee(e) === Array.prototype), he = (e) => me(e) && e[pe] || null, te = (e, t = !0) => {
|
|
2
|
+
Y.set(e, t);
|
|
3
|
+
}, z = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, F = (e) => typeof e == "object" && e !== null, L = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakSet(), ge = (e = Object.is, t = (o, g) => new Proxy(o, g), s = (o) => F(o) && !x.has(o) && (Array.isArray(o) || !(Symbol.iterator in o)) && !(o instanceof WeakMap) && !(o instanceof WeakSet) && !(o instanceof Error) && !(o instanceof Number) && !(o instanceof Date) && !(o instanceof String) && !(o instanceof RegExp) && !(o instanceof ArrayBuffer), n = (o) => {
|
|
4
|
+
switch (o.status) {
|
|
5
|
+
case "fulfilled":
|
|
6
|
+
return o.value;
|
|
7
|
+
case "rejected":
|
|
8
|
+
throw o.reason;
|
|
9
|
+
default:
|
|
10
|
+
throw o;
|
|
11
|
+
}
|
|
12
|
+
}, l = /* @__PURE__ */ new WeakMap(), c = (o, g, I = n) => {
|
|
13
|
+
const v = l.get(o);
|
|
14
|
+
if ((v == null ? void 0 : v[0]) === g)
|
|
15
|
+
return v[1];
|
|
16
|
+
const w = Array.isArray(o) ? [] : Object.create(Object.getPrototypeOf(o));
|
|
17
|
+
return te(w, !0), l.set(o, [g, w]), Reflect.ownKeys(o).forEach((D) => {
|
|
18
|
+
if (Object.getOwnPropertyDescriptor(w, D))
|
|
19
|
+
return;
|
|
20
|
+
const _ = Reflect.get(o, D), A = {
|
|
21
|
+
value: _,
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
// This is intentional to avoid copying with proxy-compare.
|
|
24
|
+
// It's still non-writable, so it avoids assigning a value.
|
|
25
|
+
configurable: !0
|
|
26
|
+
};
|
|
27
|
+
if (x.has(_))
|
|
28
|
+
te(_, !1);
|
|
29
|
+
else if (_ instanceof Promise)
|
|
30
|
+
delete A.value, A.get = () => I(_);
|
|
31
|
+
else if (L.has(_)) {
|
|
32
|
+
const [y, H] = L.get(
|
|
33
|
+
_
|
|
34
|
+
);
|
|
35
|
+
A.value = c(
|
|
36
|
+
y,
|
|
37
|
+
H(),
|
|
38
|
+
I
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
Object.defineProperty(w, D, A);
|
|
42
|
+
}), Object.preventExtensions(w);
|
|
43
|
+
}, d = /* @__PURE__ */ new WeakMap(), f = [1, 1], W = (o) => {
|
|
44
|
+
if (!F(o))
|
|
45
|
+
throw new Error("object required");
|
|
46
|
+
const g = d.get(o);
|
|
47
|
+
if (g)
|
|
48
|
+
return g;
|
|
49
|
+
let I = f[0];
|
|
50
|
+
const v = /* @__PURE__ */ new Set(), w = (i, a = ++f[0]) => {
|
|
51
|
+
I !== a && (I = a, v.forEach((r) => r(i, a)));
|
|
52
|
+
};
|
|
53
|
+
let D = f[1];
|
|
54
|
+
const _ = (i = ++f[1]) => (D !== i && !v.size && (D = i, y.forEach(([a]) => {
|
|
55
|
+
const r = a[1](i);
|
|
56
|
+
r > I && (I = r);
|
|
57
|
+
})), I), A = (i) => (a, r) => {
|
|
58
|
+
const h = [...a];
|
|
59
|
+
h[1] = [i, ...h[1]], w(h, r);
|
|
60
|
+
}, y = /* @__PURE__ */ new Map(), H = (i, a) => {
|
|
61
|
+
if ((z ? "production" : void 0) !== "production" && y.has(i))
|
|
62
|
+
throw new Error("prop listener already exists");
|
|
63
|
+
if (v.size) {
|
|
64
|
+
const r = a[3](A(i));
|
|
65
|
+
y.set(i, [a, r]);
|
|
66
|
+
} else
|
|
67
|
+
y.set(i, [a]);
|
|
68
|
+
}, Z = (i) => {
|
|
69
|
+
var a;
|
|
70
|
+
const r = y.get(i);
|
|
71
|
+
r && (y.delete(i), (a = r[1]) == null || a.call(r));
|
|
72
|
+
}, ue = (i) => (v.add(i), v.size === 1 && y.forEach(([r, h], U) => {
|
|
73
|
+
if ((z ? "production" : void 0) !== "production" && h)
|
|
74
|
+
throw new Error("remove already exists");
|
|
75
|
+
const k = r[3](A(U));
|
|
76
|
+
y.set(U, [r, k]);
|
|
77
|
+
}), () => {
|
|
78
|
+
v.delete(i), v.size === 0 && y.forEach(([r, h], U) => {
|
|
79
|
+
h && (h(), y.set(U, [r]));
|
|
80
|
+
});
|
|
81
|
+
}), q = Array.isArray(o) ? [] : Object.create(Object.getPrototypeOf(o)), R = t(q, {
|
|
82
|
+
deleteProperty(i, a) {
|
|
83
|
+
const r = Reflect.get(i, a);
|
|
84
|
+
Z(a);
|
|
85
|
+
const h = Reflect.deleteProperty(i, a);
|
|
86
|
+
return h && w(["delete", [a], r]), h;
|
|
87
|
+
},
|
|
88
|
+
set(i, a, r, h) {
|
|
89
|
+
const U = Reflect.has(i, a), k = Reflect.get(i, a, h);
|
|
90
|
+
if (U && (e(k, r) || d.has(r) && e(k, d.get(r))))
|
|
91
|
+
return !0;
|
|
92
|
+
Z(a), F(r) && (r = he(r) || r);
|
|
93
|
+
let V = r;
|
|
94
|
+
if (r instanceof Promise)
|
|
95
|
+
r.then((C) => {
|
|
96
|
+
r.status = "fulfilled", r.value = C, w(["resolve", [a], C]);
|
|
97
|
+
}).catch((C) => {
|
|
98
|
+
r.status = "rejected", r.reason = C, w(["reject", [a], C]);
|
|
99
|
+
});
|
|
100
|
+
else {
|
|
101
|
+
!L.has(r) && s(r) && (V = W(r));
|
|
102
|
+
const C = !x.has(V) && L.get(V);
|
|
103
|
+
C && H(a, C);
|
|
104
|
+
}
|
|
105
|
+
return Reflect.set(i, a, V, h), w(["set", [a], r, k]), !0;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
d.set(o, R);
|
|
109
|
+
const fe = [
|
|
110
|
+
q,
|
|
111
|
+
_,
|
|
112
|
+
c,
|
|
113
|
+
ue
|
|
114
|
+
];
|
|
115
|
+
return L.set(R, fe), Reflect.ownKeys(o).forEach((i) => {
|
|
116
|
+
const a = Object.getOwnPropertyDescriptor(
|
|
117
|
+
o,
|
|
118
|
+
i
|
|
119
|
+
);
|
|
120
|
+
"value" in a && (R[i] = o[i], delete a.value, delete a.writable), Object.defineProperty(q, i, a);
|
|
121
|
+
}), R;
|
|
122
|
+
}) => [
|
|
123
|
+
// public functions
|
|
124
|
+
W,
|
|
125
|
+
// shared state
|
|
126
|
+
L,
|
|
127
|
+
x,
|
|
128
|
+
// internal things
|
|
129
|
+
e,
|
|
130
|
+
t,
|
|
131
|
+
s,
|
|
132
|
+
n,
|
|
133
|
+
l,
|
|
134
|
+
c,
|
|
135
|
+
d,
|
|
136
|
+
f
|
|
137
|
+
], [ye] = ge();
|
|
138
|
+
function P(e = {}) {
|
|
139
|
+
return ye(e);
|
|
140
|
+
}
|
|
141
|
+
function j(e, t, s) {
|
|
142
|
+
const n = L.get(e);
|
|
143
|
+
(z ? "production" : void 0) !== "production" && !n && console.warn("Please use proxy object");
|
|
144
|
+
let l;
|
|
145
|
+
const c = [], d = n[3];
|
|
146
|
+
let f = !1;
|
|
147
|
+
const o = d((g) => {
|
|
148
|
+
c.push(g), l || (l = Promise.resolve().then(() => {
|
|
149
|
+
l = void 0, f && t(c.splice(0));
|
|
150
|
+
}));
|
|
151
|
+
});
|
|
152
|
+
return f = !0, () => {
|
|
153
|
+
f = !1, o();
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function ve(e, t) {
|
|
157
|
+
const s = L.get(e);
|
|
158
|
+
(z ? "production" : void 0) !== "production" && !s && console.warn("Please use proxy object");
|
|
159
|
+
const [n, l, c] = s;
|
|
160
|
+
return c(n, l(), t);
|
|
161
|
+
}
|
|
162
|
+
const u = P({
|
|
163
|
+
history: ["ConnectWallet"],
|
|
164
|
+
view: "ConnectWallet",
|
|
165
|
+
data: void 0
|
|
166
|
+
}), de = {
|
|
167
|
+
state: u,
|
|
168
|
+
subscribe(e) {
|
|
169
|
+
return j(u, () => e(u));
|
|
170
|
+
},
|
|
171
|
+
push(e, t) {
|
|
172
|
+
e !== u.view && (u.view = e, t && (u.data = t), u.history.push(e));
|
|
173
|
+
},
|
|
174
|
+
reset(e) {
|
|
175
|
+
u.view = e, u.history = [e];
|
|
176
|
+
},
|
|
177
|
+
replace(e) {
|
|
178
|
+
u.history.length > 1 && (u.history[u.history.length - 1] = e, u.view = e);
|
|
179
|
+
},
|
|
180
|
+
goBack() {
|
|
181
|
+
if (u.history.length > 1) {
|
|
182
|
+
u.history.pop();
|
|
183
|
+
const [e] = u.history.slice(-1);
|
|
184
|
+
u.view = e;
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
setData(e) {
|
|
188
|
+
u.data = e;
|
|
189
|
+
}
|
|
190
|
+
}, m = {
|
|
191
|
+
WALLETCONNECT_DEEPLINK_CHOICE: "WALLETCONNECT_DEEPLINK_CHOICE",
|
|
192
|
+
WCM_VERSION: "WCM_VERSION",
|
|
193
|
+
RECOMMENDED_WALLET_AMOUNT: 9,
|
|
194
|
+
isMobile() {
|
|
195
|
+
return typeof window < "u" ? !!(window.matchMedia("(pointer:coarse)").matches || /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)) : !1;
|
|
196
|
+
},
|
|
197
|
+
isAndroid() {
|
|
198
|
+
return m.isMobile() && navigator.userAgent.toLowerCase().includes("android");
|
|
199
|
+
},
|
|
200
|
+
isIos() {
|
|
201
|
+
const e = navigator.userAgent.toLowerCase();
|
|
202
|
+
return m.isMobile() && (e.includes("iphone") || e.includes("ipad"));
|
|
203
|
+
},
|
|
204
|
+
isHttpUrl(e) {
|
|
205
|
+
return e.startsWith("http://") || e.startsWith("https://");
|
|
206
|
+
},
|
|
207
|
+
isArray(e) {
|
|
208
|
+
return Array.isArray(e) && e.length > 0;
|
|
209
|
+
},
|
|
210
|
+
isTelegram() {
|
|
211
|
+
return typeof window < "u" && // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
212
|
+
(!!window.TelegramWebviewProxy || // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
213
|
+
!!window.Telegram || // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
214
|
+
!!window.TelegramWebviewProxyProto);
|
|
215
|
+
},
|
|
216
|
+
formatNativeUrl(e, t, s) {
|
|
217
|
+
if (m.isHttpUrl(e))
|
|
218
|
+
return this.formatUniversalUrl(e, t, s);
|
|
219
|
+
let n = e;
|
|
220
|
+
n.includes("://") || (n = e.replaceAll("/", "").replaceAll(":", ""), n = `${n}://`), n.endsWith("/") || (n = `${n}/`), this.setWalletConnectDeepLink(n, s);
|
|
221
|
+
const l = encodeURIComponent(t);
|
|
222
|
+
return `${n}wc?uri=${l}`;
|
|
223
|
+
},
|
|
224
|
+
formatUniversalUrl(e, t, s) {
|
|
225
|
+
if (!m.isHttpUrl(e))
|
|
226
|
+
return this.formatNativeUrl(e, t, s);
|
|
227
|
+
let n = e;
|
|
228
|
+
if (n.startsWith("https://t.me")) {
|
|
229
|
+
const c = Buffer.from(t).toString("base64").replace(/[=]/g, "");
|
|
230
|
+
n.endsWith("/") && (n = n.slice(0, -1)), this.setWalletConnectDeepLink(n, s);
|
|
231
|
+
const d = new URL(n);
|
|
232
|
+
return d.searchParams.set("startapp", c), d.toString();
|
|
233
|
+
}
|
|
234
|
+
n.endsWith("/") || (n = `${n}/`), this.setWalletConnectDeepLink(n, s);
|
|
235
|
+
const l = encodeURIComponent(t);
|
|
236
|
+
return `${n}wc?uri=${l}`;
|
|
237
|
+
},
|
|
238
|
+
async wait(e) {
|
|
239
|
+
return new Promise((t) => {
|
|
240
|
+
setTimeout(t, e);
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
openHref(e, t) {
|
|
244
|
+
const s = this.isTelegram() ? "_blank" : t;
|
|
245
|
+
window.open(e, s, "noreferrer noopener");
|
|
246
|
+
},
|
|
247
|
+
setWalletConnectDeepLink(e, t) {
|
|
248
|
+
try {
|
|
249
|
+
localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE, JSON.stringify({ href: e, name: t }));
|
|
250
|
+
} catch {
|
|
251
|
+
console.info("Unable to set WalletConnect deep link");
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
setWalletConnectAndroidDeepLink(e) {
|
|
255
|
+
try {
|
|
256
|
+
const [t] = e.split("?");
|
|
257
|
+
localStorage.setItem(
|
|
258
|
+
m.WALLETCONNECT_DEEPLINK_CHOICE,
|
|
259
|
+
JSON.stringify({ href: t, name: "Android" })
|
|
260
|
+
);
|
|
261
|
+
} catch {
|
|
262
|
+
console.info("Unable to set WalletConnect android deep link");
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
removeWalletConnectDeepLink() {
|
|
266
|
+
try {
|
|
267
|
+
localStorage.removeItem(m.WALLETCONNECT_DEEPLINK_CHOICE);
|
|
268
|
+
} catch {
|
|
269
|
+
console.info("Unable to remove WalletConnect deep link");
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
setModalVersionInStorage() {
|
|
273
|
+
try {
|
|
274
|
+
typeof localStorage < "u" && localStorage.setItem(m.WCM_VERSION, "2.7.0");
|
|
275
|
+
} catch {
|
|
276
|
+
console.info("Unable to set Web3Modal version in storage");
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
getWalletRouterData() {
|
|
280
|
+
var e;
|
|
281
|
+
const t = (e = de.state.data) == null ? void 0 : e.Wallet;
|
|
282
|
+
if (!t)
|
|
283
|
+
throw new Error('Missing "Wallet" view data');
|
|
284
|
+
return t;
|
|
285
|
+
}
|
|
286
|
+
}, we = typeof location < "u" && (location.hostname.includes("localhost") || location.protocol.includes("https")), p = P({
|
|
287
|
+
enabled: we,
|
|
288
|
+
userSessionId: "",
|
|
289
|
+
events: [],
|
|
290
|
+
connectedWalletId: void 0
|
|
291
|
+
}), be = {
|
|
292
|
+
state: p,
|
|
293
|
+
subscribe(e) {
|
|
294
|
+
return j(p.events, () => e(ve(p.events[p.events.length - 1])));
|
|
295
|
+
},
|
|
296
|
+
initialize() {
|
|
297
|
+
p.enabled && typeof (crypto == null ? void 0 : crypto.randomUUID) < "u" && (p.userSessionId = crypto.randomUUID());
|
|
298
|
+
},
|
|
299
|
+
setConnectedWalletId(e) {
|
|
300
|
+
p.connectedWalletId = e;
|
|
301
|
+
},
|
|
302
|
+
click(e) {
|
|
303
|
+
if (p.enabled) {
|
|
304
|
+
const t = {
|
|
305
|
+
type: "CLICK",
|
|
306
|
+
name: e.name,
|
|
307
|
+
userSessionId: p.userSessionId,
|
|
308
|
+
timestamp: Date.now(),
|
|
309
|
+
data: e
|
|
310
|
+
};
|
|
311
|
+
p.events.push(t);
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
track(e) {
|
|
315
|
+
if (p.enabled) {
|
|
316
|
+
const t = {
|
|
317
|
+
type: "TRACK",
|
|
318
|
+
name: e.name,
|
|
319
|
+
userSessionId: p.userSessionId,
|
|
320
|
+
timestamp: Date.now(),
|
|
321
|
+
data: e
|
|
322
|
+
};
|
|
323
|
+
p.events.push(t);
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
view(e) {
|
|
327
|
+
if (p.enabled) {
|
|
328
|
+
const t = {
|
|
329
|
+
type: "VIEW",
|
|
330
|
+
name: e.name,
|
|
331
|
+
userSessionId: p.userSessionId,
|
|
332
|
+
timestamp: Date.now(),
|
|
333
|
+
data: e
|
|
334
|
+
};
|
|
335
|
+
p.events.push(t);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}, O = P({
|
|
339
|
+
chains: void 0,
|
|
340
|
+
walletConnectUri: void 0,
|
|
341
|
+
isAuth: !1,
|
|
342
|
+
isCustomDesktop: !1,
|
|
343
|
+
isCustomMobile: !1,
|
|
344
|
+
isDataLoaded: !1,
|
|
345
|
+
isUiLoaded: !1
|
|
346
|
+
}), b = {
|
|
347
|
+
state: O,
|
|
348
|
+
subscribe(e) {
|
|
349
|
+
return j(O, () => e(O));
|
|
350
|
+
},
|
|
351
|
+
setChains(e) {
|
|
352
|
+
O.chains = e;
|
|
353
|
+
},
|
|
354
|
+
setWalletConnectUri(e) {
|
|
355
|
+
O.walletConnectUri = e;
|
|
356
|
+
},
|
|
357
|
+
setIsCustomDesktop(e) {
|
|
358
|
+
O.isCustomDesktop = e;
|
|
359
|
+
},
|
|
360
|
+
setIsCustomMobile(e) {
|
|
361
|
+
O.isCustomMobile = e;
|
|
362
|
+
},
|
|
363
|
+
setIsDataLoaded(e) {
|
|
364
|
+
O.isDataLoaded = e;
|
|
365
|
+
},
|
|
366
|
+
setIsUiLoaded(e) {
|
|
367
|
+
O.isUiLoaded = e;
|
|
368
|
+
},
|
|
369
|
+
setIsAuth(e) {
|
|
370
|
+
O.isAuth = e;
|
|
371
|
+
}
|
|
372
|
+
}, B = P({
|
|
373
|
+
projectId: "",
|
|
374
|
+
mobileWallets: void 0,
|
|
375
|
+
desktopWallets: void 0,
|
|
376
|
+
walletImages: void 0,
|
|
377
|
+
chains: void 0,
|
|
378
|
+
enableAuthMode: !1,
|
|
379
|
+
enableExplorer: !0,
|
|
380
|
+
explorerExcludedWalletIds: void 0,
|
|
381
|
+
explorerRecommendedWalletIds: void 0,
|
|
382
|
+
termsOfServiceUrl: void 0,
|
|
383
|
+
privacyPolicyUrl: void 0
|
|
384
|
+
}), T = {
|
|
385
|
+
state: B,
|
|
386
|
+
subscribe(e) {
|
|
387
|
+
return j(B, () => e(B));
|
|
388
|
+
},
|
|
389
|
+
setConfig(e) {
|
|
390
|
+
var t, s;
|
|
391
|
+
be.initialize(), b.setChains(e.chains), b.setIsAuth(!!e.enableAuthMode), b.setIsCustomMobile(!!((t = e.mobileWallets) != null && t.length)), b.setIsCustomDesktop(!!((s = e.desktopWallets) != null && s.length)), m.setModalVersionInStorage(), Object.assign(B, e);
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
var Ie = Object.defineProperty, se = Object.getOwnPropertySymbols, Oe = Object.prototype.hasOwnProperty, Ee = Object.prototype.propertyIsEnumerable, ne = (e, t, s) => t in e ? Ie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, _e = (e, t) => {
|
|
395
|
+
for (var s in t || (t = {}))
|
|
396
|
+
Oe.call(t, s) && ne(e, s, t[s]);
|
|
397
|
+
if (se)
|
|
398
|
+
for (var s of se(t))
|
|
399
|
+
Ee.call(t, s) && ne(e, s, t[s]);
|
|
400
|
+
return e;
|
|
401
|
+
};
|
|
402
|
+
const G = "https://explorer-api.walletconnect.com", Q = "wcm", X = "js-2.7.0";
|
|
403
|
+
async function K(e, t) {
|
|
404
|
+
const s = _e({ sdkType: Q, sdkVersion: X }, t), n = new URL(e, G);
|
|
405
|
+
return n.searchParams.append("projectId", T.state.projectId), Object.entries(s).forEach(([c, d]) => {
|
|
406
|
+
d && n.searchParams.append(c, String(d));
|
|
407
|
+
}), (await fetch(n)).json();
|
|
408
|
+
}
|
|
409
|
+
const M = {
|
|
410
|
+
async getDesktopListings(e) {
|
|
411
|
+
return K("/w3m/v1/getDesktopListings", e);
|
|
412
|
+
},
|
|
413
|
+
async getMobileListings(e) {
|
|
414
|
+
return K("/w3m/v1/getMobileListings", e);
|
|
415
|
+
},
|
|
416
|
+
async getInjectedListings(e) {
|
|
417
|
+
return K("/w3m/v1/getInjectedListings", e);
|
|
418
|
+
},
|
|
419
|
+
async getAllListings(e) {
|
|
420
|
+
return K("/w3m/v1/getAllListings", e);
|
|
421
|
+
},
|
|
422
|
+
getWalletImageUrl(e) {
|
|
423
|
+
return `${G}/w3m/v1/getWalletImage/${e}?projectId=${T.state.projectId}&sdkType=${Q}&sdkVersion=${X}`;
|
|
424
|
+
},
|
|
425
|
+
getAssetImageUrl(e) {
|
|
426
|
+
return `${G}/w3m/v1/getAssetImage/${e}?projectId=${T.state.projectId}&sdkType=${Q}&sdkVersion=${X}`;
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
var We = Object.defineProperty, oe = Object.getOwnPropertySymbols, Ce = Object.prototype.hasOwnProperty, Le = Object.prototype.propertyIsEnumerable, re = (e, t, s) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Pe = (e, t) => {
|
|
430
|
+
for (var s in t || (t = {}))
|
|
431
|
+
Ce.call(t, s) && re(e, s, t[s]);
|
|
432
|
+
if (oe)
|
|
433
|
+
for (var s of oe(t))
|
|
434
|
+
Le.call(t, s) && re(e, s, t[s]);
|
|
435
|
+
return e;
|
|
436
|
+
};
|
|
437
|
+
const ae = m.isMobile(), E = P({
|
|
438
|
+
wallets: { listings: [], total: 0, page: 1 },
|
|
439
|
+
search: { listings: [], total: 0, page: 1 },
|
|
440
|
+
recomendedWallets: []
|
|
441
|
+
}), Te = {
|
|
442
|
+
state: E,
|
|
443
|
+
async getRecomendedWallets() {
|
|
444
|
+
const { explorerRecommendedWalletIds: e, explorerExcludedWalletIds: t } = T.state;
|
|
445
|
+
if (e === "NONE" || t === "ALL" && !e)
|
|
446
|
+
return E.recomendedWallets;
|
|
447
|
+
if (m.isArray(e)) {
|
|
448
|
+
const n = { recommendedIds: e.join(",") }, { listings: l } = await M.getAllListings(n), c = Object.values(l);
|
|
449
|
+
c.sort((d, f) => {
|
|
450
|
+
const W = e.indexOf(d.id), o = e.indexOf(f.id);
|
|
451
|
+
return W - o;
|
|
452
|
+
}), E.recomendedWallets = c;
|
|
453
|
+
} else {
|
|
454
|
+
const { chains: s, isAuth: n } = b.state, l = s == null ? void 0 : s.join(","), c = m.isArray(t), d = {
|
|
455
|
+
page: 1,
|
|
456
|
+
sdks: n ? "auth_v1" : void 0,
|
|
457
|
+
entries: m.RECOMMENDED_WALLET_AMOUNT,
|
|
458
|
+
chains: l,
|
|
459
|
+
version: 2,
|
|
460
|
+
excludedIds: c ? t.join(",") : void 0
|
|
461
|
+
}, { listings: f } = ae ? await M.getMobileListings(d) : await M.getDesktopListings(d);
|
|
462
|
+
E.recomendedWallets = Object.values(f);
|
|
463
|
+
}
|
|
464
|
+
return E.recomendedWallets;
|
|
465
|
+
},
|
|
466
|
+
async getWallets(e) {
|
|
467
|
+
const t = Pe({}, e), { explorerRecommendedWalletIds: s, explorerExcludedWalletIds: n } = T.state, { recomendedWallets: l } = E;
|
|
468
|
+
if (n === "ALL")
|
|
469
|
+
return E.wallets;
|
|
470
|
+
l.length ? t.excludedIds = l.map((I) => I.id).join(",") : m.isArray(s) && (t.excludedIds = s.join(",")), m.isArray(n) && (t.excludedIds = [t.excludedIds, n].filter(Boolean).join(",")), b.state.isAuth && (t.sdks = "auth_v1");
|
|
471
|
+
const { page: c, search: d } = e, { listings: f, total: W } = ae ? await M.getMobileListings(t) : await M.getDesktopListings(t), o = Object.values(f), g = d ? "search" : "wallets";
|
|
472
|
+
return E[g] = {
|
|
473
|
+
listings: [...E[g].listings, ...o],
|
|
474
|
+
total: W,
|
|
475
|
+
page: c ?? 1
|
|
476
|
+
}, { listings: o, total: W };
|
|
477
|
+
},
|
|
478
|
+
getWalletImageUrl(e) {
|
|
479
|
+
return M.getWalletImageUrl(e);
|
|
480
|
+
},
|
|
481
|
+
getAssetImageUrl(e) {
|
|
482
|
+
return M.getAssetImageUrl(e);
|
|
483
|
+
},
|
|
484
|
+
resetSearch() {
|
|
485
|
+
E.search = { listings: [], total: 0, page: 1 };
|
|
486
|
+
}
|
|
487
|
+
}, $ = P({
|
|
488
|
+
open: !1
|
|
489
|
+
}), J = {
|
|
490
|
+
state: $,
|
|
491
|
+
subscribe(e) {
|
|
492
|
+
return j($, () => e($));
|
|
493
|
+
},
|
|
494
|
+
async open(e) {
|
|
495
|
+
return new Promise((t) => {
|
|
496
|
+
const { isUiLoaded: s, isDataLoaded: n } = b.state;
|
|
497
|
+
if (m.removeWalletConnectDeepLink(), b.setWalletConnectUri(e == null ? void 0 : e.uri), b.setChains(e == null ? void 0 : e.chains), de.reset("ConnectWallet"), s && n)
|
|
498
|
+
$.open = !0, t();
|
|
499
|
+
else {
|
|
500
|
+
const l = setInterval(() => {
|
|
501
|
+
const c = b.state;
|
|
502
|
+
c.isUiLoaded && c.isDataLoaded && (clearInterval(l), $.open = !0, t());
|
|
503
|
+
}, 200);
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
},
|
|
507
|
+
close() {
|
|
508
|
+
$.open = !1;
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
var Ae = Object.defineProperty, ie = Object.getOwnPropertySymbols, Me = Object.prototype.hasOwnProperty, Se = Object.prototype.propertyIsEnumerable, le = (e, t, s) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, je = (e, t) => {
|
|
512
|
+
for (var s in t || (t = {}))
|
|
513
|
+
Me.call(t, s) && le(e, s, t[s]);
|
|
514
|
+
if (ie)
|
|
515
|
+
for (var s of ie(t))
|
|
516
|
+
Se.call(t, s) && le(e, s, t[s]);
|
|
517
|
+
return e;
|
|
518
|
+
};
|
|
519
|
+
function De() {
|
|
520
|
+
return typeof matchMedia < "u" && matchMedia("(prefers-color-scheme: dark)").matches;
|
|
521
|
+
}
|
|
522
|
+
const N = P({
|
|
523
|
+
themeMode: De() ? "dark" : "light"
|
|
524
|
+
}), ce = {
|
|
525
|
+
state: N,
|
|
526
|
+
subscribe(e) {
|
|
527
|
+
return j(N, () => e(N));
|
|
528
|
+
},
|
|
529
|
+
setThemeConfig(e) {
|
|
530
|
+
const { themeMode: t, themeVariables: s } = e;
|
|
531
|
+
t && (N.themeMode = t), s && (N.themeVariables = je({}, s));
|
|
532
|
+
}
|
|
533
|
+
}, S = P({
|
|
534
|
+
open: !1,
|
|
535
|
+
message: "",
|
|
536
|
+
variant: "success"
|
|
537
|
+
}), ke = {
|
|
538
|
+
state: S,
|
|
539
|
+
subscribe(e) {
|
|
540
|
+
return j(S, () => e(S));
|
|
541
|
+
},
|
|
542
|
+
openToast(e, t) {
|
|
543
|
+
S.open = !0, S.message = e, S.variant = t;
|
|
544
|
+
},
|
|
545
|
+
closeToast() {
|
|
546
|
+
S.open = !1;
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
class Ue {
|
|
550
|
+
constructor(t) {
|
|
551
|
+
this.openModal = J.open, this.closeModal = J.close, this.subscribeModal = J.subscribe, this.setTheme = ce.setThemeConfig, ce.setThemeConfig(t), T.setConfig(t), this.initUi();
|
|
552
|
+
}
|
|
553
|
+
async initUi() {
|
|
554
|
+
if (typeof window < "u") {
|
|
555
|
+
await import("./index-C3FYdQkQ.js");
|
|
556
|
+
const t = document.createElement("wcm-modal");
|
|
557
|
+
document.body.insertAdjacentElement("beforeend", t), b.setIsUiLoaded(!0);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
562
|
+
__proto__: null,
|
|
563
|
+
WalletConnectModal: Ue
|
|
564
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
565
|
+
export {
|
|
566
|
+
m as C,
|
|
567
|
+
be as E,
|
|
568
|
+
J as M,
|
|
569
|
+
b as O,
|
|
570
|
+
de as R,
|
|
571
|
+
ce as T,
|
|
572
|
+
ke as a,
|
|
573
|
+
Te as b,
|
|
574
|
+
T as c,
|
|
575
|
+
Ne as i
|
|
576
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import { e as i } from "./extendSxProp-
|
|
4
|
-
import { P as e, T as l } from "./createTheme-
|
|
5
|
-
import { d as f } from "./defaultTheme-
|
|
6
|
-
import { u as m } from "./useTheme-
|
|
7
|
-
import { G as c } from "./GlobalStyles-
|
|
3
|
+
import { e as i } from "./extendSxProp-Cm2UBzGf.js";
|
|
4
|
+
import { P as e, T as l } from "./createTheme-F9Dk4FhK.js";
|
|
5
|
+
import { d as f } from "./defaultTheme-Bc00Q3Kt.js";
|
|
6
|
+
import { u as m } from "./useTheme-BghcbbEW.js";
|
|
7
|
+
import { G as c } from "./GlobalStyles-CModZHM-.js";
|
|
8
8
|
function s({
|
|
9
9
|
styles: o,
|
|
10
10
|
themeId: t,
|