@blockend/widget 1.0.55-beta.1 → 1.0.55-beta.2

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.
Files changed (122) hide show
  1. package/dist/{AllRoutes-D6S-NFxZ.js → AllRoutes-DIde2MHr.js} +910 -929
  2. package/dist/{Box-DESo1bHm.js → Box-DQB1ZyEK.js} +15 -15
  3. package/dist/EstGas-C7sLxEX_.js +1523 -0
  4. package/dist/{Grow-DzEr7XrA.js → Grow-CxaAxl6-.js} +300 -303
  5. package/dist/InputComp-CDuJJKaD.js +105 -0
  6. package/dist/LoadRoute-CVas28CM.js +123 -0
  7. package/dist/QuotesProgress-DaL4L4Db.js +27 -0
  8. package/dist/{SwapAsset-MBXcdeBf.js → SwapAsset-DSV6l90O.js} +13 -14
  9. package/dist/{Tooltip-DSAJT2x7.js → Tooltip-PAQ9gquY.js} +35 -35
  10. package/dist/TxnButton-BiO4vJ-y.js +207 -0
  11. package/dist/ccip-B6-4PQvj.js +226 -0
  12. package/dist/core-SB441dD5.js +13166 -0
  13. package/dist/{down-BFx-Bg5Q.js → down-DJH_apvy.js} +267 -270
  14. package/dist/{getChainIds-CeLEUxe0.js → getChainIds-CBclVfs9.js} +221 -223
  15. package/dist/getCosmosAddress-CI7CTn-0.js +57 -0
  16. package/dist/{hamburger-BzMrQx9y.js → hamburger-Dp-PI6Yn.js} +153 -153
  17. package/dist/{index-DpHhW0_2.js → index-5WTwgH9q.js} +3 -3
  18. package/dist/index-B-FRPlBv.js +3240 -0
  19. package/dist/index-B158Vaz9.js +146 -0
  20. package/dist/{index-BK0BZT6j.js → index-B9PIELoY.js} +5118 -5241
  21. package/dist/{index-DHYWnqST.js → index-BGt3GtoG.js} +1 -1
  22. package/dist/index-BuGCRLd5.js +198 -0
  23. package/dist/index-CRhXLwtt.js +7445 -0
  24. package/dist/{index-A8ClQmZo.js → index-Dmf6i8k4.js} +3 -4
  25. package/dist/{index-SkYFFVLL.js → index-PxQusjX0.js} +3368 -3415
  26. package/dist/{index-C5bv1F_u.js → index-UFdEurQ_.js} +12086 -12350
  27. package/dist/{index.es-DB9y_DEM.js → index.es-AaEds8Wm.js} +81 -83
  28. package/dist/{index.es-vIyUKt0W.js → index.es-Df0KTgu4.js} +4523 -4628
  29. package/dist/index.es.js +1 -1
  30. package/dist/{unsupportedProp-BLzY2-w_.js → unsupportedProp-BlS305Lt.js} +1 -1
  31. package/dist/{useRegisterError-Cf6oylnR.js → useRegisterError-BvjIv1Yc.js} +1668 -1701
  32. package/dist/widget.css +1 -1
  33. package/package.json +4 -5
  34. package/dist/EstGas-Dy3XfCzY.js +0 -1496
  35. package/dist/InputComp-GcnDqx_s.js +0 -105
  36. package/dist/LoadRoute-BmUgvDid.js +0 -125
  37. package/dist/QuotesProgress-E5JnUMS0.js +0 -28
  38. package/dist/TxnButton-Br8R19rF.js +0 -215
  39. package/dist/add-BryKCrpI.js +0 -19
  40. package/dist/all-wallets-BMVOK2Ci.js +0 -10
  41. package/dist/app-store-3WurbJdI.js +0 -21
  42. package/dist/apple-eM872Ubz.js +0 -22
  43. package/dist/arrow-bottom-HMc73fJ8.js +0 -12
  44. package/dist/arrow-bottom-circle-B1N_R8Ux.js +0 -15
  45. package/dist/arrow-left-Q7GAZkD7.js +0 -12
  46. package/dist/arrow-right-ft3TcIM3.js +0 -12
  47. package/dist/arrow-top-C2xmF6tK.js +0 -12
  48. package/dist/bank-Bk-2ZR5E.js +0 -18
  49. package/dist/basic-CWrKgDAB.js +0 -5783
  50. package/dist/browser-BFB3TFfv.js +0 -18
  51. package/dist/card-DCx59si8.js +0 -18
  52. package/dist/ccip-CXr08uP1.js +0 -228
  53. package/dist/checkmark-BGsuJuhE.js +0 -15
  54. package/dist/checkmark-bold-DvjIl-51.js +0 -12
  55. package/dist/chevron-bottom-DAEnG7QP.js +0 -12
  56. package/dist/chevron-left-D33h2ppx.js +0 -12
  57. package/dist/chevron-right-C8Z_feNK.js +0 -12
  58. package/dist/chevron-top-DwDMd3p9.js +0 -12
  59. package/dist/chrome-store-B7ZDs2Fj.js +0 -65
  60. package/dist/clock-DnELUxSR.js +0 -12
  61. package/dist/close-Dnt29Pss.js +0 -12
  62. package/dist/coinPlaceholder-C09pzuXv.js +0 -12
  63. package/dist/compass-D8ZY16nH.js +0 -12
  64. package/dist/copy-DEh4RBKI.js +0 -19
  65. package/dist/core-CgIQaiRa.js +0 -14966
  66. package/dist/cursor-BtzkAOER.js +0 -7
  67. package/dist/cursor-transparent-B0nCflmb.js +0 -16
  68. package/dist/desktop-toTG92uH.js +0 -13
  69. package/dist/disconnect-C97lbAtY.js +0 -12
  70. package/dist/discord-BNJ3JePY.js +0 -21
  71. package/dist/etherscan-CK87TQMS.js +0 -10
  72. package/dist/exclamation-triangle-LWnOk0uz.js +0 -8
  73. package/dist/extension-5eIZU28A.js +0 -12
  74. package/dist/external-link-DDlCfigP.js +0 -12
  75. package/dist/facebook-1lTMXKeH.js +0 -30
  76. package/dist/farcaster-Di2TUKlZ.js +0 -16
  77. package/dist/filters-B_THnHaX.js +0 -12
  78. package/dist/getCosmosAddress-B8s9Ycj4.js +0 -6075
  79. package/dist/github-D5B1FE4K.js +0 -22
  80. package/dist/google-C8_WSUfw.js +0 -22
  81. package/dist/help-circle-C-ZOzjAP.js +0 -16
  82. package/dist/id-BynpKmej.js +0 -16
  83. package/dist/image-BRYUh760.js +0 -8
  84. package/dist/index-BFUVWgoD.js +0 -992
  85. package/dist/index-CN6pVc2G.js +0 -1483
  86. package/dist/index-CZwuzz6v.js +0 -6712
  87. package/dist/index-Dnyeih-W.js +0 -3261
  88. package/dist/index-krrwn6Pi.js +0 -206
  89. package/dist/info-DSQyHS8b.js +0 -7
  90. package/dist/info-circle-BfpWcI4c.js +0 -16
  91. package/dist/lightbulb-DEMYYsZd.js +0 -7
  92. package/dist/mail-DNZ2to_6.js +0 -12
  93. package/dist/mobile-qsyS8oMK.js +0 -13
  94. package/dist/more-CnBuKwll.js +0 -15
  95. package/dist/network-placeholder-DhJITakA.js +0 -18
  96. package/dist/nftPlaceholder-DD3-Cc9U.js +0 -12
  97. package/dist/off-CBApAdDk.js +0 -12
  98. package/dist/play-store-DDoeRc-b.js +0 -36
  99. package/dist/plus-C3J-XWCn.js +0 -17
  100. package/dist/qr-code-CEoOYtHk.js +0 -10
  101. package/dist/recycle-horizontal-BHJ_s9Yx.js +0 -13
  102. package/dist/refresh-CtzOoHls.js +0 -12
  103. package/dist/reown-logo-BOj4YDUQ.js +0 -16
  104. package/dist/search--Miza3A_.js +0 -12
  105. package/dist/send-Bhl1lz4j.js +0 -19
  106. package/dist/swapHorizontal-CCvKCngz.js +0 -12
  107. package/dist/swapHorizontalBold-B90V-dXL.js +0 -12
  108. package/dist/swapHorizontalMedium-CYjeHjnI.js +0 -20
  109. package/dist/swapHorizontalRoundedBold-DSMWeXdW.js +0 -12
  110. package/dist/swapVertical-DOJUNIvk.js +0 -12
  111. package/dist/telegram-CufEY_4d.js +0 -20
  112. package/dist/three-dots-J2ngva7G.js +0 -9
  113. package/dist/twitch-B4vTKVf5.js +0 -22
  114. package/dist/twitterIcon-DLrxpAGg.js +0 -10
  115. package/dist/verify-CbHqPQKs.js +0 -12
  116. package/dist/verify-filled-CzKx9Cph.js +0 -12
  117. package/dist/w3m-modal-DhpjK4cG.js +0 -1471
  118. package/dist/wallet-CvIeO6On.js +0 -12
  119. package/dist/wallet-placeholder-BqELXTBj.js +0 -18
  120. package/dist/walletconnect-BN4c4XQ5.js +0 -36
  121. package/dist/warning-circle--dqxXujk.js +0 -16
  122. package/dist/x-CkCp5gtL.js +0 -16
@@ -1,3261 +0,0 @@
1
- import { jsx as c, jsxs as C, Fragment as G } from "react/jsx-runtime";
2
- import * as X from "react";
3
- import { useState as Z, useEffect as te } from "react";
4
- import { useConnect as Xt, useAccount as _t, useDisconnect as Dn, useSwitchAccount as Kt, useConfig as qt, useConnectors as Tn, useConnections as kn } from "wagmi";
5
- import { p as k, g as An, b as zn, i as En, aK as Ln, d as R, _ as Qe, s as On, e as Rn, f as Re, h as Pn, P as O, D as At, a as De, u as T, l as Me } from "./index-C5bv1F_u.js";
6
- import { _ as en, x as Bn, C as Je, A as Gn, i as pe, d as Un, u as Te, B as tn, W as Qn } from "./useRegisterError-Cf6oylnR.js";
7
- import { useDynamicContext as he, useIsLoggedIn as Xe, useWalletItemActions as Ct, useSwitchWallet as _e, useUserWallets as ke, useWalletOptions as Ke } from "@dynamic-labs/sdk-react-core";
8
- import { _ as zt, C as nn, g as We } from "./getChainIds-CeLEUxe0.js";
9
- import { useAccount as qe, useSuggestChain as rn, useSuggestChainAndConnect as sn, useConnect as on, WalletType as Se, useActiveChainIds as Yn, useDisconnect as Zn, useActiveWalletType as Vn } from "graz";
10
- import { B as Et } from "./Box-DESo1bHm.js";
11
- import { v as $n } from "./validError-CDlJpg_f.js";
12
- import "@dynamic-labs/solana";
13
- import "@dynamic-labs/bitcoin";
14
- const an = /* @__PURE__ */ X.createContext(null);
15
- k.env.NODE_ENV !== "production" && (an.displayName = "ThemeContext");
16
- function Jn() {
17
- const r = X.useContext(an);
18
- return k.env.NODE_ENV !== "production" && X.useDebugValue(r), r;
19
- }
20
- const Wn = typeof Symbol == "function" && Symbol.for, Fn = Wn ? Symbol.for("mui.nested") : "__THEME_NESTED__";
21
- function Ge(r) {
22
- "@babel/helpers - typeof";
23
- return Ge = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
24
- return typeof n;
25
- } : function(n) {
26
- return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
27
- }, Ge(r);
28
- }
29
- function Hn(r, n) {
30
- if (Ge(r) != "object" || !r) return r;
31
- var t = r[Symbol.toPrimitive];
32
- if (t !== void 0) {
33
- var e = t.call(r, n);
34
- if (Ge(e) != "object") return e;
35
- throw new TypeError("@@toPrimitive must return a primitive value.");
36
- }
37
- return String(r);
38
- }
39
- function Xn(r) {
40
- var n = Hn(r, "string");
41
- return Ge(n) == "symbol" ? n : n + "";
42
- }
43
- function _n(r) {
44
- return An("MuiTypography", r);
45
- }
46
- zn("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
47
- const Kn = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], qn = (r) => {
48
- const {
49
- align: n,
50
- gutterBottom: t,
51
- noWrap: e,
52
- paragraph: i,
53
- variant: o,
54
- classes: a
55
- } = r, s = {
56
- root: ["root", o, r.align !== "inherit" && `align${Re(n)}`, t && "gutterBottom", e && "noWrap", i && "paragraph"]
57
- };
58
- return Pn(s, _n, a);
59
- }, er = On("span", {
60
- name: "MuiTypography",
61
- slot: "Root",
62
- overridesResolver: (r, n) => {
63
- const {
64
- ownerState: t
65
- } = r;
66
- return [n.root, t.variant && n[t.variant], t.align !== "inherit" && n[`align${Re(t.align)}`], t.noWrap && n.noWrap, t.gutterBottom && n.gutterBottom, t.paragraph && n.paragraph];
67
- }
68
- })(({
69
- theme: r,
70
- ownerState: n
71
- }) => R({
72
- margin: 0
73
- }, n.variant === "inherit" && {
74
- // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
75
- font: "inherit"
76
- }, n.variant !== "inherit" && r.typography[n.variant], n.align !== "inherit" && {
77
- textAlign: n.align
78
- }, n.noWrap && {
79
- overflow: "hidden",
80
- textOverflow: "ellipsis",
81
- whiteSpace: "nowrap"
82
- }, n.gutterBottom && {
83
- marginBottom: "0.35em"
84
- }, n.paragraph && {
85
- marginBottom: 16
86
- })), Lt = {
87
- h1: "h1",
88
- h2: "h2",
89
- h3: "h3",
90
- h4: "h4",
91
- h5: "h5",
92
- h6: "h6",
93
- subtitle1: "h6",
94
- subtitle2: "h6",
95
- body1: "p",
96
- body2: "p",
97
- inherit: "p"
98
- }, tr = {
99
- primary: "primary.main",
100
- textPrimary: "text.primary",
101
- secondary: "secondary.main",
102
- textSecondary: "text.secondary",
103
- error: "error.main"
104
- }, nr = (r) => tr[r] || r, cn = /* @__PURE__ */ X.forwardRef(function(n, t) {
105
- const e = En({
106
- props: n,
107
- name: "MuiTypography"
108
- }), i = nr(e.color), o = Ln(R({}, e, {
109
- color: i
110
- })), {
111
- align: a = "inherit",
112
- className: s,
113
- component: l,
114
- gutterBottom: d = !1,
115
- noWrap: g = !1,
116
- paragraph: h = !1,
117
- variant: m = "body1",
118
- variantMapping: y = Lt
119
- } = o, p = Qe(o, Kn), u = R({}, o, {
120
- align: a,
121
- color: i,
122
- className: s,
123
- component: l,
124
- gutterBottom: d,
125
- noWrap: g,
126
- paragraph: h,
127
- variant: m,
128
- variantMapping: y
129
- }), M = l || (h ? "p" : y[m] || Lt[m]) || "span", I = qn(u);
130
- return /* @__PURE__ */ c(er, R({
131
- as: M,
132
- ref: t,
133
- ownerState: u,
134
- className: Rn(I.root, s)
135
- }, p));
136
- });
137
- k.env.NODE_ENV !== "production" && (cn.propTypes = {
138
- // ┌────────────────────────────── Warning ──────────────────────────────┐
139
- // │ These PropTypes are generated from the TypeScript type definitions. │
140
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
141
- // └─────────────────────────────────────────────────────────────────────┘
142
- /**
143
- * Set the text-align on the component.
144
- * @default 'inherit'
145
- */
146
- align: O.oneOf(["center", "inherit", "justify", "left", "right"]),
147
- /**
148
- * The content of the component.
149
- */
150
- children: O.node,
151
- /**
152
- * Override or extend the styles applied to the component.
153
- */
154
- classes: O.object,
155
- /**
156
- * @ignore
157
- */
158
- className: O.string,
159
- /**
160
- * The component used for the root node.
161
- * Either a string to use a HTML element or a component.
162
- */
163
- component: O.elementType,
164
- /**
165
- * If `true`, the text will have a bottom margin.
166
- * @default false
167
- */
168
- gutterBottom: O.bool,
169
- /**
170
- * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
171
- *
172
- * Note that text overflow can only happen with block or inline-block level elements
173
- * (the element needs to have a width in order to overflow).
174
- * @default false
175
- */
176
- noWrap: O.bool,
177
- /**
178
- * If `true`, the element will be a paragraph element.
179
- * @default false
180
- */
181
- paragraph: O.bool,
182
- /**
183
- * The system prop that allows defining system overrides as well as additional CSS styles.
184
- */
185
- sx: O.oneOfType([O.arrayOf(O.oneOfType([O.func, O.object, O.bool])), O.func, O.object]),
186
- /**
187
- * Applies the theme typography styles.
188
- * @default 'body1'
189
- */
190
- variant: O.oneOfType([O.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), O.string]),
191
- /**
192
- * The component maps the variant prop to a range of different HTML element types.
193
- * For instance, subtitle1 to `<h6>`.
194
- * If you wish to change that mapping, you can provide your own.
195
- * Alternatively, you can use the `component` prop.
196
- * @default {
197
- * h1: 'h1',
198
- * h2: 'h2',
199
- * h3: 'h3',
200
- * h4: 'h4',
201
- * h5: 'h5',
202
- * h6: 'h6',
203
- * subtitle1: 'h6',
204
- * subtitle2: 'h6',
205
- * body1: 'p',
206
- * body2: 'p',
207
- * inherit: 'p',
208
- * }
209
- */
210
- variantMapping: O.object
211
- });
212
- const rr = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"];
213
- function ir(r = {}) {
214
- const {
215
- disableGlobal: n = !1,
216
- productionPrefix: t = "jss",
217
- seed: e = ""
218
- } = r, i = e === "" ? "" : `${e}-`;
219
- let o = 0;
220
- const a = () => (o += 1, k.env.NODE_ENV !== "production" && o >= 1e10, o);
221
- return (s, l) => {
222
- const d = l.options.name;
223
- if (d && d.indexOf("Mui") === 0 && !l.options.link && !n) {
224
- if (rr.indexOf(s.key) !== -1)
225
- return `Mui-${s.key}`;
226
- const h = `${i}${d}-${s.key}`;
227
- return !l.options.theme[Fn] || e !== "" ? h : `${h}-${a()}`;
228
- }
229
- if (k.env.NODE_ENV === "production")
230
- return `${i}${t}${a()}`;
231
- const g = `${s.key}-${a()}`;
232
- return l.options.classNamePrefix ? `${i}${l.options.classNamePrefix}-${g}` : `${i}${g}`;
233
- };
234
- }
235
- var sr = k.env.NODE_ENV === "production";
236
- function ie(r, n) {
237
- if (!sr) {
238
- var t = "Warning: " + n;
239
- try {
240
- throw Error(t);
241
- } catch {
242
- }
243
- }
244
- }
245
- var Ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
246
- return typeof r;
247
- } : function(r) {
248
- return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
249
- }, Ye = (typeof window > "u" ? "undefined" : Ot(window)) === "object" && (typeof document > "u" ? "undefined" : Ot(document)) === "object" && document.nodeType === 9;
250
- function or(r, n) {
251
- for (var t = 0; t < n.length; t++) {
252
- var e = n[t];
253
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, Xn(e.key), e);
254
- }
255
- }
256
- function ln(r, n, t) {
257
- return n && or(r.prototype, n), Object.defineProperty(r, "prototype", {
258
- writable: !1
259
- }), r;
260
- }
261
- var ar = {}.constructor;
262
- function gt(r) {
263
- if (r == null || typeof r != "object") return r;
264
- if (Array.isArray(r)) return r.map(gt);
265
- if (r.constructor !== ar) return r;
266
- var n = {};
267
- for (var t in r)
268
- n[t] = gt(r[t]);
269
- return n;
270
- }
271
- function jt(r, n, t) {
272
- r === void 0 && (r = "unnamed");
273
- var e = t.jss, i = gt(n), o = e.plugins.onCreateRule(r, i, t);
274
- return o || (r[0] === "@" && k.env.NODE_ENV !== "production" && ie(!1, "[JSS] Unknown rule " + r), null);
275
- }
276
- var Rt = function(n, t) {
277
- for (var e = "", i = 0; i < n.length && n[i] !== "!important"; i++)
278
- e && (e += t), e += n[i];
279
- return e;
280
- }, xe = function(n) {
281
- if (!Array.isArray(n)) return n;
282
- var t = "";
283
- if (Array.isArray(n[0]))
284
- for (var e = 0; e < n.length && n[e] !== "!important"; e++)
285
- t && (t += ", "), t += Rt(n[e], " ");
286
- else t = Rt(n, ", ");
287
- return n[n.length - 1] === "!important" && (t += " !important"), t;
288
- };
289
- function Ae(r) {
290
- return r && r.format === !1 ? {
291
- linebreak: "",
292
- space: ""
293
- } : {
294
- linebreak: `
295
- `,
296
- space: " "
297
- };
298
- }
299
- function Ee(r, n) {
300
- for (var t = "", e = 0; e < n; e++)
301
- t += " ";
302
- return t + r;
303
- }
304
- function Ue(r, n, t) {
305
- t === void 0 && (t = {});
306
- var e = "";
307
- if (!n) return e;
308
- var i = t, o = i.indent, a = o === void 0 ? 0 : o, s = n.fallbacks;
309
- t.format === !1 && (a = -1 / 0);
310
- var l = Ae(t), d = l.linebreak, g = l.space;
311
- if (r && a++, s)
312
- if (Array.isArray(s))
313
- for (var h = 0; h < s.length; h++) {
314
- var m = s[h];
315
- for (var y in m) {
316
- var p = m[y];
317
- p != null && (e && (e += d), e += Ee(y + ":" + g + xe(p) + ";", a));
318
- }
319
- }
320
- else
321
- for (var u in s) {
322
- var M = s[u];
323
- M != null && (e && (e += d), e += Ee(u + ":" + g + xe(M) + ";", a));
324
- }
325
- for (var I in n) {
326
- var Y = n[I];
327
- Y != null && I !== "fallbacks" && (e && (e += d), e += Ee(I + ":" + g + xe(Y) + ";", a));
328
- }
329
- return !e && !t.allowEmpty || !r ? e : (a--, e && (e = "" + d + e + d), Ee("" + r + g + "{" + e, a) + Ee("}", a));
330
- }
331
- var cr = /([[\].#*$><+~=|^:(),"'`\s])/g, Pt = typeof CSS < "u" && CSS.escape, St = function(r) {
332
- return Pt ? Pt(r) : r.replace(cr, "\\$1");
333
- }, un = /* @__PURE__ */ function() {
334
- function r(t, e, i) {
335
- this.type = "style", this.isProcessed = !1;
336
- var o = i.sheet, a = i.Renderer;
337
- this.key = t, this.options = i, this.style = e, o ? this.renderer = o.renderer : a && (this.renderer = new a());
338
- }
339
- var n = r.prototype;
340
- return n.prop = function(e, i, o) {
341
- if (i === void 0) return this.style[e];
342
- var a = o ? o.force : !1;
343
- if (!a && this.style[e] === i) return this;
344
- var s = i;
345
- (!o || o.process !== !1) && (s = this.options.jss.plugins.onChangeValue(i, e, this));
346
- var l = s == null || s === !1, d = e in this.style;
347
- if (l && !d && !a) return this;
348
- var g = l && d;
349
- if (g ? delete this.style[e] : this.style[e] = s, this.renderable && this.renderer)
350
- return g ? this.renderer.removeProperty(this.renderable, e) : this.renderer.setProperty(this.renderable, e, s), this;
351
- var h = this.options.sheet;
352
- return h && h.attached && k.env.NODE_ENV !== "production" && ie(!1, '[JSS] Rule is not linked. Missing sheet option "link: true".'), this;
353
- }, r;
354
- }(), bt = /* @__PURE__ */ function(r) {
355
- en(n, r);
356
- function n(e, i, o) {
357
- var a;
358
- a = r.call(this, e, i, o) || this;
359
- var s = o.selector, l = o.scoped, d = o.sheet, g = o.generateId;
360
- return s ? a.selectorText = s : l !== !1 && (a.id = g(zt(zt(a)), d), a.selectorText = "." + St(a.id)), a;
361
- }
362
- var t = n.prototype;
363
- return t.applyTo = function(i) {
364
- var o = this.renderer;
365
- if (o) {
366
- var a = this.toJSON();
367
- for (var s in a)
368
- o.setProperty(i, s, a[s]);
369
- }
370
- return this;
371
- }, t.toJSON = function() {
372
- var i = {};
373
- for (var o in this.style) {
374
- var a = this.style[o];
375
- typeof a != "object" ? i[o] = a : Array.isArray(a) && (i[o] = xe(a));
376
- }
377
- return i;
378
- }, t.toString = function(i) {
379
- var o = this.options.sheet, a = o ? o.options.link : !1, s = a ? R({}, i, {
380
- allowEmpty: !0
381
- }) : i;
382
- return Ue(this.selectorText, this.style, s);
383
- }, ln(n, [{
384
- key: "selector",
385
- set: function(i) {
386
- if (i !== this.selectorText) {
387
- this.selectorText = i;
388
- var o = this.renderer, a = this.renderable;
389
- if (!(!a || !o)) {
390
- var s = o.setSelector(a, i);
391
- s || o.replaceRule(a, this);
392
- }
393
- }
394
- },
395
- get: function() {
396
- return this.selectorText;
397
- }
398
- }]), n;
399
- }(un), lr = {
400
- onCreateRule: function(n, t, e) {
401
- return n[0] === "@" || e.parent && e.parent.type === "keyframes" ? null : new bt(n, t, e);
402
- }
403
- }, nt = {
404
- indent: 1,
405
- children: !0
406
- }, ur = /@([\w-]+)/, dr = /* @__PURE__ */ function() {
407
- function r(t, e, i) {
408
- this.type = "conditional", this.isProcessed = !1, this.key = t;
409
- var o = t.match(ur);
410
- this.at = o ? o[1] : "unknown", this.query = i.name || "@" + this.at, this.options = i, this.rules = new et(R({}, i, {
411
- parent: this
412
- }));
413
- for (var a in e)
414
- this.rules.add(a, e[a]);
415
- this.rules.process();
416
- }
417
- var n = r.prototype;
418
- return n.getRule = function(e) {
419
- return this.rules.get(e);
420
- }, n.indexOf = function(e) {
421
- return this.rules.indexOf(e);
422
- }, n.addRule = function(e, i, o) {
423
- var a = this.rules.add(e, i, o);
424
- return a ? (this.options.jss.plugins.onProcessRule(a), a) : null;
425
- }, n.replaceRule = function(e, i, o) {
426
- var a = this.rules.replace(e, i, o);
427
- return a && this.options.jss.plugins.onProcessRule(a), a;
428
- }, n.toString = function(e) {
429
- e === void 0 && (e = nt);
430
- var i = Ae(e), o = i.linebreak;
431
- if (e.indent == null && (e.indent = nt.indent), e.children == null && (e.children = nt.children), e.children === !1)
432
- return this.query + " {}";
433
- var a = this.rules.toString(e);
434
- return a ? this.query + " {" + o + a + o + "}" : "";
435
- }, r;
436
- }(), fr = /@container|@media|@supports\s+/, hr = {
437
- onCreateRule: function(n, t, e) {
438
- return fr.test(n) ? new dr(n, t, e) : null;
439
- }
440
- }, rt = {
441
- indent: 1,
442
- children: !0
443
- }, gr = /@keyframes\s+([\w-]+)/, wt = /* @__PURE__ */ function() {
444
- function r(t, e, i) {
445
- this.type = "keyframes", this.at = "@keyframes", this.isProcessed = !1;
446
- var o = t.match(gr);
447
- o && o[1] ? this.name = o[1] : (this.name = "noname", k.env.NODE_ENV !== "production" && ie(!1, "[JSS] Bad keyframes name " + t)), this.key = this.type + "-" + this.name, this.options = i;
448
- var a = i.scoped, s = i.sheet, l = i.generateId;
449
- this.id = a === !1 ? this.name : St(l(this, s)), this.rules = new et(R({}, i, {
450
- parent: this
451
- }));
452
- for (var d in e)
453
- this.rules.add(d, e[d], R({}, i, {
454
- parent: this
455
- }));
456
- this.rules.process();
457
- }
458
- var n = r.prototype;
459
- return n.toString = function(e) {
460
- e === void 0 && (e = rt);
461
- var i = Ae(e), o = i.linebreak;
462
- if (e.indent == null && (e.indent = rt.indent), e.children == null && (e.children = rt.children), e.children === !1)
463
- return this.at + " " + this.id + " {}";
464
- var a = this.rules.toString(e);
465
- return a && (a = "" + o + a + o), this.at + " " + this.id + " {" + a + "}";
466
- }, r;
467
- }(), br = /@keyframes\s+/, wr = /\$([\w-]+)/g, pt = function(n, t) {
468
- return typeof n == "string" ? n.replace(wr, function(e, i) {
469
- return i in t ? t[i] : (k.env.NODE_ENV !== "production" && ie(!1, '[JSS] Referenced keyframes rule "' + i + '" is not defined.'), e);
470
- }) : n;
471
- }, Bt = function(n, t, e) {
472
- var i = n[t], o = pt(i, e);
473
- o !== i && (n[t] = o);
474
- }, pr = {
475
- onCreateRule: function(n, t, e) {
476
- return typeof n == "string" && br.test(n) ? new wt(n, t, e) : null;
477
- },
478
- // Animation name ref replacer.
479
- onProcessStyle: function(n, t, e) {
480
- return t.type !== "style" || !e || ("animation-name" in n && Bt(n, "animation-name", e.keyframes), "animation" in n && Bt(n, "animation", e.keyframes)), n;
481
- },
482
- onChangeValue: function(n, t, e) {
483
- var i = e.options.sheet;
484
- if (!i)
485
- return n;
486
- switch (t) {
487
- case "animation":
488
- return pt(n, i.keyframes);
489
- case "animation-name":
490
- return pt(n, i.keyframes);
491
- default:
492
- return n;
493
- }
494
- }
495
- }, mr = /* @__PURE__ */ function(r) {
496
- en(n, r);
497
- function n() {
498
- return r.apply(this, arguments) || this;
499
- }
500
- var t = n.prototype;
501
- return t.toString = function(i) {
502
- var o = this.options.sheet, a = o ? o.options.link : !1, s = a ? R({}, i, {
503
- allowEmpty: !0
504
- }) : i;
505
- return Ue(this.key, this.style, s);
506
- }, n;
507
- }(un), yr = {
508
- onCreateRule: function(n, t, e) {
509
- return e.parent && e.parent.type === "keyframes" ? new mr(n, t, e) : null;
510
- }
511
- }, xr = /* @__PURE__ */ function() {
512
- function r(t, e, i) {
513
- this.type = "font-face", this.at = "@font-face", this.isProcessed = !1, this.key = t, this.style = e, this.options = i;
514
- }
515
- var n = r.prototype;
516
- return n.toString = function(e) {
517
- var i = Ae(e), o = i.linebreak;
518
- if (Array.isArray(this.style)) {
519
- for (var a = "", s = 0; s < this.style.length; s++)
520
- a += Ue(this.at, this.style[s]), this.style[s + 1] && (a += o);
521
- return a;
522
- }
523
- return Ue(this.at, this.style, e);
524
- }, r;
525
- }(), Mr = /@font-face/, vr = {
526
- onCreateRule: function(n, t, e) {
527
- return Mr.test(n) ? new xr(n, t, e) : null;
528
- }
529
- }, Ir = /* @__PURE__ */ function() {
530
- function r(t, e, i) {
531
- this.type = "viewport", this.at = "@viewport", this.isProcessed = !1, this.key = t, this.style = e, this.options = i;
532
- }
533
- var n = r.prototype;
534
- return n.toString = function(e) {
535
- return Ue(this.key, this.style, e);
536
- }, r;
537
- }(), Nr = {
538
- onCreateRule: function(n, t, e) {
539
- return n === "@viewport" || n === "@-ms-viewport" ? new Ir(n, t, e) : null;
540
- }
541
- }, Cr = /* @__PURE__ */ function() {
542
- function r(t, e, i) {
543
- this.type = "simple", this.isProcessed = !1, this.key = t, this.value = e, this.options = i;
544
- }
545
- var n = r.prototype;
546
- return n.toString = function(e) {
547
- if (Array.isArray(this.value)) {
548
- for (var i = "", o = 0; o < this.value.length; o++)
549
- i += this.key + " " + this.value[o] + ";", this.value[o + 1] && (i += `
550
- `);
551
- return i;
552
- }
553
- return this.key + " " + this.value + ";";
554
- }, r;
555
- }(), jr = {
556
- "@charset": !0,
557
- "@import": !0,
558
- "@namespace": !0
559
- }, Sr = {
560
- onCreateRule: function(n, t, e) {
561
- return n in jr ? new Cr(n, t, e) : null;
562
- }
563
- }, Gt = [lr, hr, pr, yr, vr, Nr, Sr], Dr = {
564
- process: !0
565
- }, Ut = {
566
- force: !0,
567
- process: !0
568
- /**
569
- * Contains rules objects and allows adding/removing etc.
570
- * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
571
- */
572
- }, et = /* @__PURE__ */ function() {
573
- function r(t) {
574
- this.map = {}, this.raw = {}, this.index = [], this.counter = 0, this.options = t, this.classes = t.classes, this.keyframes = t.keyframes;
575
- }
576
- var n = r.prototype;
577
- return n.add = function(e, i, o) {
578
- var a = this.options, s = a.parent, l = a.sheet, d = a.jss, g = a.Renderer, h = a.generateId, m = a.scoped, y = R({
579
- classes: this.classes,
580
- parent: s,
581
- sheet: l,
582
- jss: d,
583
- Renderer: g,
584
- generateId: h,
585
- scoped: m,
586
- name: e,
587
- keyframes: this.keyframes,
588
- selector: void 0
589
- }, o), p = e;
590
- e in this.raw && (p = e + "-d" + this.counter++), this.raw[p] = i, p in this.classes && (y.selector = "." + St(this.classes[p]));
591
- var u = jt(p, i, y);
592
- if (!u) return null;
593
- this.register(u);
594
- var M = y.index === void 0 ? this.index.length : y.index;
595
- return this.index.splice(M, 0, u), u;
596
- }, n.replace = function(e, i, o) {
597
- var a = this.get(e), s = this.index.indexOf(a);
598
- a && this.remove(a);
599
- var l = o;
600
- return s !== -1 && (l = R({}, o, {
601
- index: s
602
- })), this.add(e, i, l);
603
- }, n.get = function(e) {
604
- return this.map[e];
605
- }, n.remove = function(e) {
606
- this.unregister(e), delete this.raw[e.key], this.index.splice(this.index.indexOf(e), 1);
607
- }, n.indexOf = function(e) {
608
- return this.index.indexOf(e);
609
- }, n.process = function() {
610
- var e = this.options.jss.plugins;
611
- this.index.slice(0).forEach(e.onProcessRule, e);
612
- }, n.register = function(e) {
613
- this.map[e.key] = e, e instanceof bt ? (this.map[e.selector] = e, e.id && (this.classes[e.key] = e.id)) : e instanceof wt && this.keyframes && (this.keyframes[e.name] = e.id);
614
- }, n.unregister = function(e) {
615
- delete this.map[e.key], e instanceof bt ? (delete this.map[e.selector], delete this.classes[e.key]) : e instanceof wt && delete this.keyframes[e.name];
616
- }, n.update = function() {
617
- var e, i, o;
618
- if (typeof (arguments.length <= 0 ? void 0 : arguments[0]) == "string" ? (e = arguments.length <= 0 ? void 0 : arguments[0], i = arguments.length <= 1 ? void 0 : arguments[1], o = arguments.length <= 2 ? void 0 : arguments[2]) : (i = arguments.length <= 0 ? void 0 : arguments[0], o = arguments.length <= 1 ? void 0 : arguments[1], e = null), e)
619
- this.updateOne(this.get(e), i, o);
620
- else
621
- for (var a = 0; a < this.index.length; a++)
622
- this.updateOne(this.index[a], i, o);
623
- }, n.updateOne = function(e, i, o) {
624
- o === void 0 && (o = Dr);
625
- var a = this.options, s = a.jss.plugins, l = a.sheet;
626
- if (e.rules instanceof r) {
627
- e.rules.update(i, o);
628
- return;
629
- }
630
- var d = e.style;
631
- if (s.onUpdate(i, e, l, o), o.process && d && d !== e.style) {
632
- s.onProcessStyle(e.style, e, l);
633
- for (var g in e.style) {
634
- var h = e.style[g], m = d[g];
635
- h !== m && e.prop(g, h, Ut);
636
- }
637
- for (var y in d) {
638
- var p = e.style[y], u = d[y];
639
- p == null && p !== u && e.prop(y, null, Ut);
640
- }
641
- }
642
- }, n.toString = function(e) {
643
- for (var i = "", o = this.options.sheet, a = o ? o.options.link : !1, s = Ae(e), l = s.linebreak, d = 0; d < this.index.length; d++) {
644
- var g = this.index[d], h = g.toString(e);
645
- !h && !a || (i && (i += l), i += h);
646
- }
647
- return i;
648
- }, r;
649
- }(), dn = /* @__PURE__ */ function() {
650
- function r(t, e) {
651
- this.attached = !1, this.deployed = !1, this.classes = {}, this.keyframes = {}, this.options = R({}, e, {
652
- sheet: this,
653
- parent: this,
654
- classes: this.classes,
655
- keyframes: this.keyframes
656
- }), e.Renderer && (this.renderer = new e.Renderer(this)), this.rules = new et(this.options);
657
- for (var i in t)
658
- this.rules.add(i, t[i]);
659
- this.rules.process();
660
- }
661
- var n = r.prototype;
662
- return n.attach = function() {
663
- return this.attached ? this : (this.renderer && this.renderer.attach(), this.attached = !0, this.deployed || this.deploy(), this);
664
- }, n.detach = function() {
665
- return this.attached ? (this.renderer && this.renderer.detach(), this.attached = !1, this) : this;
666
- }, n.addRule = function(e, i, o) {
667
- var a = this.queue;
668
- this.attached && !a && (this.queue = []);
669
- var s = this.rules.add(e, i, o);
670
- return s ? (this.options.jss.plugins.onProcessRule(s), this.attached ? (this.deployed && (a ? a.push(s) : (this.insertRule(s), this.queue && (this.queue.forEach(this.insertRule, this), this.queue = void 0))), s) : (this.deployed = !1, s)) : null;
671
- }, n.replaceRule = function(e, i, o) {
672
- var a = this.rules.get(e);
673
- if (!a) return this.addRule(e, i, o);
674
- var s = this.rules.replace(e, i, o);
675
- return s && this.options.jss.plugins.onProcessRule(s), this.attached ? (this.deployed && this.renderer && (s ? a.renderable && this.renderer.replaceRule(a.renderable, s) : this.renderer.deleteRule(a)), s) : (this.deployed = !1, s);
676
- }, n.insertRule = function(e) {
677
- this.renderer && this.renderer.insertRule(e);
678
- }, n.addRules = function(e, i) {
679
- var o = [];
680
- for (var a in e) {
681
- var s = this.addRule(a, e[a], i);
682
- s && o.push(s);
683
- }
684
- return o;
685
- }, n.getRule = function(e) {
686
- return this.rules.get(e);
687
- }, n.deleteRule = function(e) {
688
- var i = typeof e == "object" ? e : this.rules.get(e);
689
- return !i || // Style sheet was created without link: true and attached, in this case we
690
- // won't be able to remove the CSS rule from the DOM.
691
- this.attached && !i.renderable ? !1 : (this.rules.remove(i), this.attached && i.renderable && this.renderer ? this.renderer.deleteRule(i.renderable) : !0);
692
- }, n.indexOf = function(e) {
693
- return this.rules.indexOf(e);
694
- }, n.deploy = function() {
695
- return this.renderer && this.renderer.deploy(), this.deployed = !0, this;
696
- }, n.update = function() {
697
- var e;
698
- return (e = this.rules).update.apply(e, arguments), this;
699
- }, n.updateOne = function(e, i, o) {
700
- return this.rules.updateOne(e, i, o), this;
701
- }, n.toString = function(e) {
702
- return this.rules.toString(e);
703
- }, r;
704
- }(), Tr = /* @__PURE__ */ function() {
705
- function r() {
706
- this.plugins = {
707
- internal: [],
708
- external: []
709
- }, this.registry = {};
710
- }
711
- var n = r.prototype;
712
- return n.onCreateRule = function(e, i, o) {
713
- for (var a = 0; a < this.registry.onCreateRule.length; a++) {
714
- var s = this.registry.onCreateRule[a](e, i, o);
715
- if (s) return s;
716
- }
717
- return null;
718
- }, n.onProcessRule = function(e) {
719
- if (!e.isProcessed) {
720
- for (var i = e.options.sheet, o = 0; o < this.registry.onProcessRule.length; o++)
721
- this.registry.onProcessRule[o](e, i);
722
- e.style && this.onProcessStyle(e.style, e, i), e.isProcessed = !0;
723
- }
724
- }, n.onProcessStyle = function(e, i, o) {
725
- for (var a = 0; a < this.registry.onProcessStyle.length; a++)
726
- i.style = this.registry.onProcessStyle[a](i.style, i, o);
727
- }, n.onProcessSheet = function(e) {
728
- for (var i = 0; i < this.registry.onProcessSheet.length; i++)
729
- this.registry.onProcessSheet[i](e);
730
- }, n.onUpdate = function(e, i, o, a) {
731
- for (var s = 0; s < this.registry.onUpdate.length; s++)
732
- this.registry.onUpdate[s](e, i, o, a);
733
- }, n.onChangeValue = function(e, i, o) {
734
- for (var a = e, s = 0; s < this.registry.onChangeValue.length; s++)
735
- a = this.registry.onChangeValue[s](a, i, o);
736
- return a;
737
- }, n.use = function(e, i) {
738
- i === void 0 && (i = {
739
- queue: "external"
740
- });
741
- var o = this.plugins[i.queue];
742
- o.indexOf(e) === -1 && (o.push(e), this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function(a, s) {
743
- for (var l in s)
744
- l in a ? a[l].push(s[l]) : k.env.NODE_ENV !== "production" && ie(!1, '[JSS] Unknown hook "' + l + '".');
745
- return a;
746
- }, {
747
- onCreateRule: [],
748
- onProcessRule: [],
749
- onProcessStyle: [],
750
- onProcessSheet: [],
751
- onChangeValue: [],
752
- onUpdate: []
753
- }));
754
- }, r;
755
- }(), kr = /* @__PURE__ */ function() {
756
- function r() {
757
- this.registry = [];
758
- }
759
- var n = r.prototype;
760
- return n.add = function(e) {
761
- var i = this.registry, o = e.options.index;
762
- if (i.indexOf(e) === -1) {
763
- if (i.length === 0 || o >= this.index) {
764
- i.push(e);
765
- return;
766
- }
767
- for (var a = 0; a < i.length; a++)
768
- if (i[a].options.index > o) {
769
- i.splice(a, 0, e);
770
- return;
771
- }
772
- }
773
- }, n.reset = function() {
774
- this.registry = [];
775
- }, n.remove = function(e) {
776
- var i = this.registry.indexOf(e);
777
- this.registry.splice(i, 1);
778
- }, n.toString = function(e) {
779
- for (var i = e === void 0 ? {} : e, o = i.attached, a = Qe(i, ["attached"]), s = Ae(a), l = s.linebreak, d = "", g = 0; g < this.registry.length; g++) {
780
- var h = this.registry[g];
781
- o != null && h.attached !== o || (d && (d += l), d += h.toString(a));
782
- }
783
- return d;
784
- }, ln(r, [{
785
- key: "index",
786
- /**
787
- * Current highest index number.
788
- */
789
- get: function() {
790
- return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
791
- }
792
- }]), r;
793
- }(), Pe = new kr(), mt = typeof globalThis < "u" ? globalThis : typeof window < "u" && window.Math === Math ? window : typeof self < "u" && self.Math === Math ? self : Function("return this")(), yt = "2f1acc6c3a606b082e5eef5e54414ffb";
794
- mt[yt] == null && (mt[yt] = 0);
795
- var Qt = mt[yt]++, Ar = 1e10, Yt = function(n) {
796
- n === void 0 && (n = {});
797
- var t = 0, e = function(o, a) {
798
- t += 1, t > Ar && k.env.NODE_ENV !== "production" && ie(!1, "[JSS] You might have a memory leak. Rule counter is at " + t + ".");
799
- var s = "", l = "";
800
- return a && (a.options.classNamePrefix && (l = a.options.classNamePrefix), a.options.jss.id != null && (s = String(a.options.jss.id))), n.minify ? "" + (l || "c") + Qt + s + t : l + o.key + "-" + Qt + (s ? "-" + s : "") + "-" + t;
801
- };
802
- return e;
803
- }, fn = function(n) {
804
- var t;
805
- return function() {
806
- return t || (t = n()), t;
807
- };
808
- }, zr = function(n, t) {
809
- try {
810
- return n.attributeStyleMap ? n.attributeStyleMap.get(t) : n.style.getPropertyValue(t);
811
- } catch {
812
- return "";
813
- }
814
- }, Er = function(n, t, e) {
815
- try {
816
- var i = e;
817
- if (Array.isArray(e) && (i = xe(e)), n.attributeStyleMap)
818
- n.attributeStyleMap.set(t, i);
819
- else {
820
- var o = i ? i.indexOf("!important") : -1, a = o > -1 ? i.substr(0, o - 1) : i;
821
- n.style.setProperty(t, a, o > -1 ? "important" : "");
822
- }
823
- } catch {
824
- return !1;
825
- }
826
- return !0;
827
- }, Lr = function(n, t) {
828
- try {
829
- n.attributeStyleMap ? n.attributeStyleMap.delete(t) : n.style.removeProperty(t);
830
- } catch (e) {
831
- k.env.NODE_ENV !== "production" && ie(!1, '[JSS] DOMException "' + e.message + '" was thrown. Tried to remove property "' + t + '".');
832
- }
833
- }, Or = function(n, t) {
834
- return n.selectorText = t, n.selectorText === t;
835
- }, hn = fn(function() {
836
- return document.querySelector("head");
837
- });
838
- function Rr(r, n) {
839
- for (var t = 0; t < r.length; t++) {
840
- var e = r[t];
841
- if (e.attached && e.options.index > n.index && e.options.insertionPoint === n.insertionPoint)
842
- return e;
843
- }
844
- return null;
845
- }
846
- function Pr(r, n) {
847
- for (var t = r.length - 1; t >= 0; t--) {
848
- var e = r[t];
849
- if (e.attached && e.options.insertionPoint === n.insertionPoint)
850
- return e;
851
- }
852
- return null;
853
- }
854
- function Br(r) {
855
- for (var n = hn(), t = 0; t < n.childNodes.length; t++) {
856
- var e = n.childNodes[t];
857
- if (e.nodeType === 8 && e.nodeValue.trim() === r)
858
- return e;
859
- }
860
- return null;
861
- }
862
- function Gr(r) {
863
- var n = Pe.registry;
864
- if (n.length > 0) {
865
- var t = Rr(n, r);
866
- if (t && t.renderer)
867
- return {
868
- parent: t.renderer.element.parentNode,
869
- node: t.renderer.element
870
- };
871
- if (t = Pr(n, r), t && t.renderer)
872
- return {
873
- parent: t.renderer.element.parentNode,
874
- node: t.renderer.element.nextSibling
875
- };
876
- }
877
- var e = r.insertionPoint;
878
- if (e && typeof e == "string") {
879
- var i = Br(e);
880
- if (i)
881
- return {
882
- parent: i.parentNode,
883
- node: i.nextSibling
884
- };
885
- k.env.NODE_ENV !== "production" && ie(!1, '[JSS] Insertion point "' + e + '" not found.');
886
- }
887
- return !1;
888
- }
889
- function Ur(r, n) {
890
- var t = n.insertionPoint, e = Gr(n);
891
- if (e !== !1 && e.parent) {
892
- e.parent.insertBefore(r, e.node);
893
- return;
894
- }
895
- if (t && typeof t.nodeType == "number") {
896
- var i = t, o = i.parentNode;
897
- o ? o.insertBefore(r, i.nextSibling) : k.env.NODE_ENV !== "production" && ie(!1, "[JSS] Insertion point is not in the DOM.");
898
- return;
899
- }
900
- hn().appendChild(r);
901
- }
902
- var Qr = fn(function() {
903
- var r = document.querySelector('meta[property="csp-nonce"]');
904
- return r ? r.getAttribute("content") : null;
905
- }), Zt = function(n, t, e) {
906
- try {
907
- "insertRule" in n ? n.insertRule(t, e) : "appendRule" in n && n.appendRule(t);
908
- } catch (i) {
909
- return k.env.NODE_ENV !== "production" && ie(!1, "[JSS] " + i.message), !1;
910
- }
911
- return n.cssRules[e];
912
- }, Vt = function(n, t) {
913
- var e = n.cssRules.length;
914
- return t === void 0 || t > e ? e : t;
915
- }, Yr = function() {
916
- var n = document.createElement("style");
917
- return n.textContent = `
918
- `, n;
919
- }, Zr = /* @__PURE__ */ function() {
920
- function r(t) {
921
- this.getPropertyValue = zr, this.setProperty = Er, this.removeProperty = Lr, this.setSelector = Or, this.hasInsertedRules = !1, this.cssRules = [], t && Pe.add(t), this.sheet = t;
922
- var e = this.sheet ? this.sheet.options : {}, i = e.media, o = e.meta, a = e.element;
923
- this.element = a || Yr(), this.element.setAttribute("data-jss", ""), i && this.element.setAttribute("media", i), o && this.element.setAttribute("data-meta", o);
924
- var s = Qr();
925
- s && this.element.setAttribute("nonce", s);
926
- }
927
- var n = r.prototype;
928
- return n.attach = function() {
929
- if (!(this.element.parentNode || !this.sheet)) {
930
- Ur(this.element, this.sheet.options);
931
- var e = !!(this.sheet && this.sheet.deployed);
932
- this.hasInsertedRules && e && (this.hasInsertedRules = !1, this.deploy());
933
- }
934
- }, n.detach = function() {
935
- if (this.sheet) {
936
- var e = this.element.parentNode;
937
- e && e.removeChild(this.element), this.sheet.options.link && (this.cssRules = [], this.element.textContent = `
938
- `);
939
- }
940
- }, n.deploy = function() {
941
- var e = this.sheet;
942
- if (e) {
943
- if (e.options.link) {
944
- this.insertRules(e.rules);
945
- return;
946
- }
947
- this.element.textContent = `
948
- ` + e.toString() + `
949
- `;
950
- }
951
- }, n.insertRules = function(e, i) {
952
- for (var o = 0; o < e.index.length; o++)
953
- this.insertRule(e.index[o], o, i);
954
- }, n.insertRule = function(e, i, o) {
955
- if (o === void 0 && (o = this.element.sheet), e.rules) {
956
- var a = e, s = o;
957
- if (e.type === "conditional" || e.type === "keyframes") {
958
- var l = Vt(o, i);
959
- if (s = Zt(o, a.toString({
960
- children: !1
961
- }), l), s === !1)
962
- return !1;
963
- this.refCssRule(e, l, s);
964
- }
965
- return this.insertRules(a.rules, s), s;
966
- }
967
- var d = e.toString();
968
- if (!d) return !1;
969
- var g = Vt(o, i), h = Zt(o, d, g);
970
- return h === !1 ? !1 : (this.hasInsertedRules = !0, this.refCssRule(e, g, h), h);
971
- }, n.refCssRule = function(e, i, o) {
972
- e.renderable = o, e.options.parent instanceof dn && this.cssRules.splice(i, 0, o);
973
- }, n.deleteRule = function(e) {
974
- var i = this.element.sheet, o = this.indexOf(e);
975
- return o === -1 ? !1 : (i.deleteRule(o), this.cssRules.splice(o, 1), !0);
976
- }, n.indexOf = function(e) {
977
- return this.cssRules.indexOf(e);
978
- }, n.replaceRule = function(e, i) {
979
- var o = this.indexOf(e);
980
- return o === -1 ? !1 : (this.element.sheet.deleteRule(o), this.cssRules.splice(o, 1), this.insertRule(i, o));
981
- }, n.getRules = function() {
982
- return this.element.sheet.cssRules;
983
- }, r;
984
- }(), Vr = 0, $r = /* @__PURE__ */ function() {
985
- function r(t) {
986
- this.id = Vr++, this.version = "10.10.0", this.plugins = new Tr(), this.options = {
987
- id: {
988
- minify: !1
989
- },
990
- createGenerateId: Yt,
991
- Renderer: Ye ? Zr : null,
992
- plugins: []
993
- }, this.generateId = Yt({
994
- minify: !1
995
- });
996
- for (var e = 0; e < Gt.length; e++)
997
- this.plugins.use(Gt[e], {
998
- queue: "internal"
999
- });
1000
- this.setup(t);
1001
- }
1002
- var n = r.prototype;
1003
- return n.setup = function(e) {
1004
- return e === void 0 && (e = {}), e.createGenerateId && (this.options.createGenerateId = e.createGenerateId), e.id && (this.options.id = R({}, this.options.id, e.id)), (e.createGenerateId || e.id) && (this.generateId = this.options.createGenerateId(this.options.id)), e.insertionPoint != null && (this.options.insertionPoint = e.insertionPoint), "Renderer" in e && (this.options.Renderer = e.Renderer), e.plugins && this.use.apply(this, e.plugins), this;
1005
- }, n.createStyleSheet = function(e, i) {
1006
- i === void 0 && (i = {});
1007
- var o = i, a = o.index;
1008
- typeof a != "number" && (a = Pe.index === 0 ? 0 : Pe.index + 1);
1009
- var s = new dn(e, R({}, i, {
1010
- jss: this,
1011
- generateId: i.generateId || this.generateId,
1012
- insertionPoint: this.options.insertionPoint,
1013
- Renderer: this.options.Renderer,
1014
- index: a
1015
- }));
1016
- return this.plugins.onProcessSheet(s), s;
1017
- }, n.removeStyleSheet = function(e) {
1018
- return e.detach(), Pe.remove(e), this;
1019
- }, n.createRule = function(e, i, o) {
1020
- if (i === void 0 && (i = {}), o === void 0 && (o = {}), typeof e == "object")
1021
- return this.createRule(void 0, e, i);
1022
- var a = R({}, o, {
1023
- name: e,
1024
- jss: this,
1025
- Renderer: this.options.Renderer
1026
- });
1027
- a.generateId || (a.generateId = this.generateId), a.classes || (a.classes = {}), a.keyframes || (a.keyframes = {});
1028
- var s = jt(e, i, a);
1029
- return s && this.plugins.onProcessRule(s), s;
1030
- }, n.use = function() {
1031
- for (var e = this, i = arguments.length, o = new Array(i), a = 0; a < i; a++)
1032
- o[a] = arguments[a];
1033
- return o.forEach(function(s) {
1034
- e.plugins.use(s);
1035
- }), this;
1036
- }, r;
1037
- }(), Dt = function(n) {
1038
- return new $r(n);
1039
- }, Tt = typeof CSS == "object" && CSS != null && "number" in CSS;
1040
- function gn(r) {
1041
- var n = null;
1042
- for (var t in r) {
1043
- var e = r[t], i = typeof e;
1044
- if (i === "function")
1045
- n || (n = {}), n[t] = e;
1046
- else if (i === "object" && e !== null && !Array.isArray(e)) {
1047
- var o = gn(e);
1048
- o && (n || (n = {}), n[t] = o);
1049
- }
1050
- }
1051
- return n;
1052
- }
1053
- Dt();
1054
- var bn = Date.now(), it = "fnValues" + bn, st = "fnStyle" + ++bn, Jr = function() {
1055
- return {
1056
- onCreateRule: function(t, e, i) {
1057
- if (typeof e != "function") return null;
1058
- var o = jt(t, {}, i);
1059
- return o[st] = e, o;
1060
- },
1061
- onProcessStyle: function(t, e) {
1062
- if (it in e || st in e) return t;
1063
- var i = {};
1064
- for (var o in t) {
1065
- var a = t[o];
1066
- typeof a == "function" && (delete t[o], i[o] = a);
1067
- }
1068
- return e[it] = i, t;
1069
- },
1070
- onUpdate: function(t, e, i, o) {
1071
- var a = e, s = a[st];
1072
- if (s && (a.style = s(t) || {}, k.env.NODE_ENV === "development")) {
1073
- for (var l in a.style)
1074
- if (typeof a.style[l] == "function") {
1075
- k.env.NODE_ENV !== "production" && ie(!1, "[JSS] Function values inside function rules are not supported.");
1076
- break;
1077
- }
1078
- }
1079
- var d = a[it];
1080
- if (d)
1081
- for (var g in d)
1082
- a.prop(g, d[g](t), o);
1083
- }
1084
- };
1085
- }, be = "@global", xt = "@global ", Wr = /* @__PURE__ */ function() {
1086
- function r(t, e, i) {
1087
- this.type = "global", this.at = be, this.isProcessed = !1, this.key = t, this.options = i, this.rules = new et(R({}, i, {
1088
- parent: this
1089
- }));
1090
- for (var o in e)
1091
- this.rules.add(o, e[o]);
1092
- this.rules.process();
1093
- }
1094
- var n = r.prototype;
1095
- return n.getRule = function(e) {
1096
- return this.rules.get(e);
1097
- }, n.addRule = function(e, i, o) {
1098
- var a = this.rules.add(e, i, o);
1099
- return a && this.options.jss.plugins.onProcessRule(a), a;
1100
- }, n.replaceRule = function(e, i, o) {
1101
- var a = this.rules.replace(e, i, o);
1102
- return a && this.options.jss.plugins.onProcessRule(a), a;
1103
- }, n.indexOf = function(e) {
1104
- return this.rules.indexOf(e);
1105
- }, n.toString = function(e) {
1106
- return this.rules.toString(e);
1107
- }, r;
1108
- }(), Fr = /* @__PURE__ */ function() {
1109
- function r(t, e, i) {
1110
- this.type = "global", this.at = be, this.isProcessed = !1, this.key = t, this.options = i;
1111
- var o = t.substr(xt.length);
1112
- this.rule = i.jss.createRule(o, e, R({}, i, {
1113
- parent: this
1114
- }));
1115
- }
1116
- var n = r.prototype;
1117
- return n.toString = function(e) {
1118
- return this.rule ? this.rule.toString(e) : "";
1119
- }, r;
1120
- }(), Hr = /\s*,\s*/g;
1121
- function wn(r, n) {
1122
- for (var t = r.split(Hr), e = "", i = 0; i < t.length; i++)
1123
- e += n + " " + t[i].trim(), t[i + 1] && (e += ", ");
1124
- return e;
1125
- }
1126
- function Xr(r, n) {
1127
- var t = r.options, e = r.style, i = e ? e[be] : null;
1128
- if (i) {
1129
- for (var o in i)
1130
- n.addRule(o, i[o], R({}, t, {
1131
- selector: wn(o, r.selector)
1132
- }));
1133
- delete e[be];
1134
- }
1135
- }
1136
- function _r(r, n) {
1137
- var t = r.options, e = r.style;
1138
- for (var i in e)
1139
- if (!(i[0] !== "@" || i.substr(0, be.length) !== be)) {
1140
- var o = wn(i.substr(be.length), r.selector);
1141
- n.addRule(o, e[i], R({}, t, {
1142
- selector: o
1143
- })), delete e[i];
1144
- }
1145
- }
1146
- function Kr() {
1147
- function r(t, e, i) {
1148
- if (!t) return null;
1149
- if (t === be)
1150
- return new Wr(t, e, i);
1151
- if (t[0] === "@" && t.substr(0, xt.length) === xt)
1152
- return new Fr(t, e, i);
1153
- var o = i.parent;
1154
- return o && (o.type === "global" || o.options.parent && o.options.parent.type === "global") && (i.scoped = !1), !i.selector && i.scoped === !1 && (i.selector = t), null;
1155
- }
1156
- function n(t, e) {
1157
- t.type !== "style" || !e || (Xr(t, e), _r(t, e));
1158
- }
1159
- return {
1160
- onCreateRule: r,
1161
- onProcessRule: n
1162
- };
1163
- }
1164
- var $t = /\s*,\s*/g, qr = /&/g, ei = /\$([\w-]+)/g;
1165
- function ti() {
1166
- function r(i, o) {
1167
- return function(a, s) {
1168
- var l = i.getRule(s) || o && o.getRule(s);
1169
- return l ? l.selector : (k.env.NODE_ENV !== "production" && ie(!1, '[JSS] Could not find the referenced rule "' + s + '" in "' + (i.options.meta || i.toString()) + '".'), s);
1170
- };
1171
- }
1172
- function n(i, o) {
1173
- for (var a = o.split($t), s = i.split($t), l = "", d = 0; d < a.length; d++)
1174
- for (var g = a[d], h = 0; h < s.length; h++) {
1175
- var m = s[h];
1176
- l && (l += ", "), l += m.indexOf("&") !== -1 ? m.replace(qr, g) : g + " " + m;
1177
- }
1178
- return l;
1179
- }
1180
- function t(i, o, a) {
1181
- if (a) return R({}, a, {
1182
- index: a.index + 1
1183
- });
1184
- var s = i.options.nestingLevel;
1185
- s = s === void 0 ? 1 : s + 1;
1186
- var l = R({}, i.options, {
1187
- nestingLevel: s,
1188
- index: o.indexOf(i) + 1
1189
- // We don't need the parent name to be set options for chlid.
1190
- });
1191
- return delete l.name, l;
1192
- }
1193
- function e(i, o, a) {
1194
- if (o.type !== "style") return i;
1195
- var s = o, l = s.options.parent, d, g;
1196
- for (var h in i) {
1197
- var m = h.indexOf("&") !== -1, y = h[0] === "@";
1198
- if (!(!m && !y)) {
1199
- if (d = t(s, l, d), m) {
1200
- var p = n(h, s.selector);
1201
- g || (g = r(l, a)), p = p.replace(ei, g);
1202
- var u = s.key + "-" + h;
1203
- "replaceRule" in l ? l.replaceRule(u, i[h], R({}, d, {
1204
- selector: p
1205
- })) : l.addRule(u, i[h], R({}, d, {
1206
- selector: p
1207
- }));
1208
- } else y && l.addRule(h, {}, d).addRule(s.key, i[h], {
1209
- selector: s.selector
1210
- });
1211
- delete i[h];
1212
- }
1213
- }
1214
- return i;
1215
- }
1216
- return {
1217
- onProcessStyle: e
1218
- };
1219
- }
1220
- var ni = /[A-Z]/g, ri = /^ms-/, ot = {};
1221
- function ii(r) {
1222
- return "-" + r.toLowerCase();
1223
- }
1224
- function pn(r) {
1225
- if (ot.hasOwnProperty(r))
1226
- return ot[r];
1227
- var n = r.replace(ni, ii);
1228
- return ot[r] = ri.test(n) ? "-" + n : n;
1229
- }
1230
- function Fe(r) {
1231
- var n = {};
1232
- for (var t in r) {
1233
- var e = t.indexOf("--") === 0 ? t : pn(t);
1234
- n[e] = r[t];
1235
- }
1236
- return r.fallbacks && (Array.isArray(r.fallbacks) ? n.fallbacks = r.fallbacks.map(Fe) : n.fallbacks = Fe(r.fallbacks)), n;
1237
- }
1238
- function si() {
1239
- function r(t) {
1240
- if (Array.isArray(t)) {
1241
- for (var e = 0; e < t.length; e++)
1242
- t[e] = Fe(t[e]);
1243
- return t;
1244
- }
1245
- return Fe(t);
1246
- }
1247
- function n(t, e, i) {
1248
- if (e.indexOf("--") === 0)
1249
- return t;
1250
- var o = pn(e);
1251
- return e === o ? t : (i.prop(o, t), null);
1252
- }
1253
- return {
1254
- onProcessStyle: r,
1255
- onChangeValue: n
1256
- };
1257
- }
1258
- var f = Tt && CSS ? CSS.px : "px", Ve = Tt && CSS ? CSS.ms : "ms", Ne = Tt && CSS ? CSS.percent : "%", oi = {
1259
- // Animation properties
1260
- "animation-delay": Ve,
1261
- "animation-duration": Ve,
1262
- // Background properties
1263
- "background-position": f,
1264
- "background-position-x": f,
1265
- "background-position-y": f,
1266
- "background-size": f,
1267
- // Border Properties
1268
- border: f,
1269
- "border-bottom": f,
1270
- "border-bottom-left-radius": f,
1271
- "border-bottom-right-radius": f,
1272
- "border-bottom-width": f,
1273
- "border-left": f,
1274
- "border-left-width": f,
1275
- "border-radius": f,
1276
- "border-right": f,
1277
- "border-right-width": f,
1278
- "border-top": f,
1279
- "border-top-left-radius": f,
1280
- "border-top-right-radius": f,
1281
- "border-top-width": f,
1282
- "border-width": f,
1283
- "border-block": f,
1284
- "border-block-end": f,
1285
- "border-block-end-width": f,
1286
- "border-block-start": f,
1287
- "border-block-start-width": f,
1288
- "border-block-width": f,
1289
- "border-inline": f,
1290
- "border-inline-end": f,
1291
- "border-inline-end-width": f,
1292
- "border-inline-start": f,
1293
- "border-inline-start-width": f,
1294
- "border-inline-width": f,
1295
- "border-start-start-radius": f,
1296
- "border-start-end-radius": f,
1297
- "border-end-start-radius": f,
1298
- "border-end-end-radius": f,
1299
- // Margin properties
1300
- margin: f,
1301
- "margin-bottom": f,
1302
- "margin-left": f,
1303
- "margin-right": f,
1304
- "margin-top": f,
1305
- "margin-block": f,
1306
- "margin-block-end": f,
1307
- "margin-block-start": f,
1308
- "margin-inline": f,
1309
- "margin-inline-end": f,
1310
- "margin-inline-start": f,
1311
- // Padding properties
1312
- padding: f,
1313
- "padding-bottom": f,
1314
- "padding-left": f,
1315
- "padding-right": f,
1316
- "padding-top": f,
1317
- "padding-block": f,
1318
- "padding-block-end": f,
1319
- "padding-block-start": f,
1320
- "padding-inline": f,
1321
- "padding-inline-end": f,
1322
- "padding-inline-start": f,
1323
- // Mask properties
1324
- "mask-position-x": f,
1325
- "mask-position-y": f,
1326
- "mask-size": f,
1327
- // Width and height properties
1328
- height: f,
1329
- width: f,
1330
- "min-height": f,
1331
- "max-height": f,
1332
- "min-width": f,
1333
- "max-width": f,
1334
- // Position properties
1335
- bottom: f,
1336
- left: f,
1337
- top: f,
1338
- right: f,
1339
- inset: f,
1340
- "inset-block": f,
1341
- "inset-block-end": f,
1342
- "inset-block-start": f,
1343
- "inset-inline": f,
1344
- "inset-inline-end": f,
1345
- "inset-inline-start": f,
1346
- // Shadow properties
1347
- "box-shadow": f,
1348
- "text-shadow": f,
1349
- // Column properties
1350
- "column-gap": f,
1351
- "column-rule": f,
1352
- "column-rule-width": f,
1353
- "column-width": f,
1354
- // Font and text properties
1355
- "font-size": f,
1356
- "font-size-delta": f,
1357
- "letter-spacing": f,
1358
- "text-decoration-thickness": f,
1359
- "text-indent": f,
1360
- "text-stroke": f,
1361
- "text-stroke-width": f,
1362
- "word-spacing": f,
1363
- // Motion properties
1364
- motion: f,
1365
- "motion-offset": f,
1366
- // Outline properties
1367
- outline: f,
1368
- "outline-offset": f,
1369
- "outline-width": f,
1370
- // Perspective properties
1371
- perspective: f,
1372
- "perspective-origin-x": Ne,
1373
- "perspective-origin-y": Ne,
1374
- // Transform properties
1375
- "transform-origin": Ne,
1376
- "transform-origin-x": Ne,
1377
- "transform-origin-y": Ne,
1378
- "transform-origin-z": Ne,
1379
- // Transition properties
1380
- "transition-delay": Ve,
1381
- "transition-duration": Ve,
1382
- // Alignment properties
1383
- "vertical-align": f,
1384
- "flex-basis": f,
1385
- // Some random properties
1386
- "shape-margin": f,
1387
- size: f,
1388
- gap: f,
1389
- // Grid properties
1390
- grid: f,
1391
- "grid-gap": f,
1392
- "row-gap": f,
1393
- "grid-row-gap": f,
1394
- "grid-column-gap": f,
1395
- "grid-template-rows": f,
1396
- "grid-template-columns": f,
1397
- "grid-auto-rows": f,
1398
- "grid-auto-columns": f,
1399
- // Not existing properties.
1400
- // Used to avoid issues with jss-plugin-expand integration.
1401
- "box-shadow-x": f,
1402
- "box-shadow-y": f,
1403
- "box-shadow-blur": f,
1404
- "box-shadow-spread": f,
1405
- "font-line-height": f,
1406
- "text-shadow-x": f,
1407
- "text-shadow-y": f,
1408
- "text-shadow-blur": f
1409
- };
1410
- function mn(r) {
1411
- var n = /(-[a-z])/g, t = function(a) {
1412
- return a[1].toUpperCase();
1413
- }, e = {};
1414
- for (var i in r)
1415
- e[i] = r[i], e[i.replace(n, t)] = r[i];
1416
- return e;
1417
- }
1418
- var ai = mn(oi);
1419
- function Be(r, n, t) {
1420
- if (n == null) return n;
1421
- if (Array.isArray(n))
1422
- for (var e = 0; e < n.length; e++)
1423
- n[e] = Be(r, n[e], t);
1424
- else if (typeof n == "object")
1425
- if (r === "fallbacks")
1426
- for (var i in n)
1427
- n[i] = Be(i, n[i], t);
1428
- else
1429
- for (var o in n)
1430
- n[o] = Be(r + "-" + o, n[o], t);
1431
- else if (typeof n == "number" && isNaN(n) === !1) {
1432
- var a = t[r] || ai[r];
1433
- return a && !(n === 0 && a === f) ? typeof a == "function" ? a(n).toString() : "" + n + a : n.toString();
1434
- }
1435
- return n;
1436
- }
1437
- function ci(r) {
1438
- r === void 0 && (r = {});
1439
- var n = mn(r);
1440
- function t(i, o) {
1441
- if (o.type !== "style") return i;
1442
- for (var a in i)
1443
- i[a] = Be(a, i[a], n);
1444
- return i;
1445
- }
1446
- function e(i, o) {
1447
- return Be(o, i, n);
1448
- }
1449
- return {
1450
- onProcessStyle: t,
1451
- onChangeValue: e
1452
- };
1453
- }
1454
- function Mt(r, n) {
1455
- (n == null || n > r.length) && (n = r.length);
1456
- for (var t = 0, e = Array(n); t < n; t++) e[t] = r[t];
1457
- return e;
1458
- }
1459
- function li(r) {
1460
- if (Array.isArray(r)) return Mt(r);
1461
- }
1462
- function ui(r) {
1463
- if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
1464
- }
1465
- function di(r, n) {
1466
- if (r) {
1467
- if (typeof r == "string") return Mt(r, n);
1468
- var t = {}.toString.call(r).slice(8, -1);
1469
- return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Mt(r, n) : void 0;
1470
- }
1471
- }
1472
- function fi() {
1473
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
1474
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1475
- }
1476
- function hi(r) {
1477
- return li(r) || ui(r) || di(r) || fi();
1478
- }
1479
- var Le = "", vt = "", yn = "", xn = "", gi = Ye && "ontouchstart" in document.documentElement;
1480
- if (Ye) {
1481
- var at = {
1482
- Moz: "-moz-",
1483
- ms: "-ms-",
1484
- O: "-o-",
1485
- Webkit: "-webkit-"
1486
- }, bi = document.createElement("p"), ct = bi.style, wi = "Transform";
1487
- for (var lt in at)
1488
- if (lt + wi in ct) {
1489
- Le = lt, vt = at[lt];
1490
- break;
1491
- }
1492
- Le === "Webkit" && "msHyphens" in ct && (Le = "ms", vt = at.ms, xn = "edge"), Le === "Webkit" && "-apple-trailing-word" in ct && (yn = "apple");
1493
- }
1494
- var S = {
1495
- js: Le,
1496
- css: vt,
1497
- vendor: yn,
1498
- browser: xn,
1499
- isTouch: gi
1500
- };
1501
- function pi(r) {
1502
- return r[1] === "-" || S.js === "ms" ? r : "@" + S.css + "keyframes" + r.substr(10);
1503
- }
1504
- var mi = {
1505
- noPrefill: ["appearance"],
1506
- supportedProperty: function(n) {
1507
- return n !== "appearance" ? !1 : S.js === "ms" ? "-webkit-" + n : S.css + n;
1508
- }
1509
- }, yi = {
1510
- noPrefill: ["color-adjust"],
1511
- supportedProperty: function(n) {
1512
- return n !== "color-adjust" ? !1 : S.js === "Webkit" ? S.css + "print-" + n : n;
1513
- }
1514
- }, xi = /[-\s]+(.)?/g;
1515
- function Mi(r, n) {
1516
- return n ? n.toUpperCase() : "";
1517
- }
1518
- function kt(r) {
1519
- return r.replace(xi, Mi);
1520
- }
1521
- function we(r) {
1522
- return kt("-" + r);
1523
- }
1524
- var vi = {
1525
- noPrefill: ["mask"],
1526
- supportedProperty: function(n, t) {
1527
- if (!/^mask/.test(n)) return !1;
1528
- if (S.js === "Webkit") {
1529
- var e = "mask-image";
1530
- if (kt(e) in t)
1531
- return n;
1532
- if (S.js + we(e) in t)
1533
- return S.css + n;
1534
- }
1535
- return n;
1536
- }
1537
- }, Ii = {
1538
- noPrefill: ["text-orientation"],
1539
- supportedProperty: function(n) {
1540
- return n !== "text-orientation" ? !1 : S.vendor === "apple" && !S.isTouch ? S.css + n : n;
1541
- }
1542
- }, Ni = {
1543
- noPrefill: ["transform"],
1544
- supportedProperty: function(n, t, e) {
1545
- return n !== "transform" ? !1 : e.transform ? n : S.css + n;
1546
- }
1547
- }, Ci = {
1548
- noPrefill: ["transition"],
1549
- supportedProperty: function(n, t, e) {
1550
- return n !== "transition" ? !1 : e.transition ? n : S.css + n;
1551
- }
1552
- }, ji = {
1553
- noPrefill: ["writing-mode"],
1554
- supportedProperty: function(n) {
1555
- return n !== "writing-mode" ? !1 : S.js === "Webkit" || S.js === "ms" && S.browser !== "edge" ? S.css + n : n;
1556
- }
1557
- }, Si = {
1558
- noPrefill: ["user-select"],
1559
- supportedProperty: function(n) {
1560
- return n !== "user-select" ? !1 : S.js === "Moz" || S.js === "ms" || S.vendor === "apple" ? S.css + n : n;
1561
- }
1562
- }, Di = {
1563
- supportedProperty: function(n, t) {
1564
- if (!/^break-/.test(n)) return !1;
1565
- if (S.js === "Webkit") {
1566
- var e = "WebkitColumn" + we(n);
1567
- return e in t ? S.css + "column-" + n : !1;
1568
- }
1569
- if (S.js === "Moz") {
1570
- var i = "page" + we(n);
1571
- return i in t ? "page-" + n : !1;
1572
- }
1573
- return !1;
1574
- }
1575
- }, Ti = {
1576
- supportedProperty: function(n, t) {
1577
- if (!/^(border|margin|padding)-inline/.test(n)) return !1;
1578
- if (S.js === "Moz") return n;
1579
- var e = n.replace("-inline", "");
1580
- return S.js + we(e) in t ? S.css + e : !1;
1581
- }
1582
- }, ki = {
1583
- supportedProperty: function(n, t) {
1584
- return kt(n) in t ? n : !1;
1585
- }
1586
- }, Ai = {
1587
- supportedProperty: function(n, t) {
1588
- var e = we(n);
1589
- return n[0] === "-" || n[0] === "-" && n[1] === "-" ? n : S.js + e in t ? S.css + n : S.js !== "Webkit" && "Webkit" + e in t ? "-webkit-" + n : !1;
1590
- }
1591
- }, zi = {
1592
- supportedProperty: function(n) {
1593
- return n.substring(0, 11) !== "scroll-snap" ? !1 : S.js === "ms" ? "" + S.css + n : n;
1594
- }
1595
- }, Ei = {
1596
- supportedProperty: function(n) {
1597
- return n !== "overscroll-behavior" ? !1 : S.js === "ms" ? S.css + "scroll-chaining" : n;
1598
- }
1599
- }, Li = {
1600
- "flex-grow": "flex-positive",
1601
- "flex-shrink": "flex-negative",
1602
- "flex-basis": "flex-preferred-size",
1603
- "justify-content": "flex-pack",
1604
- order: "flex-order",
1605
- "align-items": "flex-align",
1606
- "align-content": "flex-line-pack"
1607
- // 'align-self' is handled by 'align-self' plugin.
1608
- }, Oi = {
1609
- supportedProperty: function(n, t) {
1610
- var e = Li[n];
1611
- return e && S.js + we(e) in t ? S.css + e : !1;
1612
- }
1613
- }, Mn = {
1614
- flex: "box-flex",
1615
- "flex-grow": "box-flex",
1616
- "flex-direction": ["box-orient", "box-direction"],
1617
- order: "box-ordinal-group",
1618
- "align-items": "box-align",
1619
- "flex-flow": ["box-orient", "box-direction"],
1620
- "justify-content": "box-pack"
1621
- }, Ri = Object.keys(Mn), Pi = function(n) {
1622
- return S.css + n;
1623
- }, Bi = {
1624
- supportedProperty: function(n, t, e) {
1625
- var i = e.multiple;
1626
- if (Ri.indexOf(n) > -1) {
1627
- var o = Mn[n];
1628
- if (!Array.isArray(o))
1629
- return S.js + we(o) in t ? S.css + o : !1;
1630
- if (!i) return !1;
1631
- for (var a = 0; a < o.length; a++)
1632
- if (!(S.js + we(o[0]) in t))
1633
- return !1;
1634
- return o.map(Pi);
1635
- }
1636
- return !1;
1637
- }
1638
- }, vn = [mi, yi, vi, Ii, Ni, Ci, ji, Si, Di, Ti, ki, Ai, zi, Ei, Oi, Bi], Jt = vn.filter(function(r) {
1639
- return r.supportedProperty;
1640
- }).map(function(r) {
1641
- return r.supportedProperty;
1642
- }), Gi = vn.filter(function(r) {
1643
- return r.noPrefill;
1644
- }).reduce(function(r, n) {
1645
- return r.push.apply(r, hi(n.noPrefill)), r;
1646
- }, []), Oe, ye = {};
1647
- if (Ye) {
1648
- Oe = document.createElement("p");
1649
- var ut = window.getComputedStyle(document.documentElement, "");
1650
- for (var dt in ut)
1651
- isNaN(dt) || (ye[ut[dt]] = ut[dt]);
1652
- Gi.forEach(function(r) {
1653
- return delete ye[r];
1654
- });
1655
- }
1656
- function It(r, n) {
1657
- if (n === void 0 && (n = {}), !Oe) return r;
1658
- if (k.env.NODE_ENV !== "benchmark" && ye[r] != null)
1659
- return ye[r];
1660
- (r === "transition" || r === "transform") && (n[r] = r in Oe.style);
1661
- for (var t = 0; t < Jt.length && (ye[r] = Jt[t](r, Oe.style, n), !ye[r]); t++)
1662
- ;
1663
- try {
1664
- Oe.style[r] = "";
1665
- } catch {
1666
- return !1;
1667
- }
1668
- return ye[r];
1669
- }
1670
- var Ce = {}, Ui = {
1671
- transition: 1,
1672
- "transition-property": 1,
1673
- "-webkit-transition": 1,
1674
- "-webkit-transition-property": 1
1675
- }, Qi = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g, ge;
1676
- function Yi(r, n, t) {
1677
- if (n === "var") return "var";
1678
- if (n === "all") return "all";
1679
- if (t === "all") return ", all";
1680
- var e = n ? It(n) : ", " + It(t);
1681
- return e || n || t;
1682
- }
1683
- Ye && (ge = document.createElement("p"));
1684
- function Wt(r, n) {
1685
- var t = n;
1686
- if (!ge || r === "content") return n;
1687
- if (typeof t != "string" || !isNaN(parseInt(t, 10)))
1688
- return t;
1689
- var e = r + t;
1690
- if (k.env.NODE_ENV !== "benchmark" && Ce[e] != null)
1691
- return Ce[e];
1692
- try {
1693
- ge.style[r] = t;
1694
- } catch {
1695
- return Ce[e] = !1, !1;
1696
- }
1697
- if (Ui[r])
1698
- t = t.replace(Qi, Yi);
1699
- else if (ge.style[r] === "" && (t = S.css + t, t === "-ms-flex" && (ge.style[r] = "-ms-flexbox"), ge.style[r] = t, ge.style[r] === ""))
1700
- return Ce[e] = !1, !1;
1701
- return ge.style[r] = "", Ce[e] = t, Ce[e];
1702
- }
1703
- function Zi() {
1704
- function r(i) {
1705
- if (i.type === "keyframes") {
1706
- var o = i;
1707
- o.at = pi(o.at);
1708
- }
1709
- }
1710
- function n(i) {
1711
- for (var o in i) {
1712
- var a = i[o];
1713
- if (o === "fallbacks" && Array.isArray(a)) {
1714
- i[o] = a.map(n);
1715
- continue;
1716
- }
1717
- var s = !1, l = It(o);
1718
- l && l !== o && (s = !0);
1719
- var d = !1, g = Wt(l, xe(a));
1720
- g && g !== a && (d = !0), (s || d) && (s && delete i[o], i[l || o] = g || a);
1721
- }
1722
- return i;
1723
- }
1724
- function t(i, o) {
1725
- return o.type !== "style" ? i : n(i);
1726
- }
1727
- function e(i, o) {
1728
- return Wt(o, xe(i)) || i;
1729
- }
1730
- return {
1731
- onProcessRule: r,
1732
- onProcessStyle: t,
1733
- onChangeValue: e
1734
- };
1735
- }
1736
- function Vi() {
1737
- var r = function(t, e) {
1738
- return t.length === e.length ? t > e ? 1 : -1 : t.length - e.length;
1739
- };
1740
- return {
1741
- onProcessStyle: function(t, e) {
1742
- if (e.type !== "style") return t;
1743
- for (var i = {}, o = Object.keys(t).sort(r), a = 0; a < o.length; a++)
1744
- i[o[a]] = t[o[a]];
1745
- return i;
1746
- }
1747
- };
1748
- }
1749
- function In() {
1750
- return {
1751
- plugins: [
1752
- Jr(),
1753
- Kr(),
1754
- ti(),
1755
- si(),
1756
- ci(),
1757
- // Disable the vendor prefixer server-side, it does nothing.
1758
- // This way, we can get a performance boost.
1759
- // In the documentation, we are using `autoprefixer` to solve this problem.
1760
- typeof window > "u" ? null : Zi(),
1761
- Vi()
1762
- ]
1763
- };
1764
- }
1765
- function Nn(r = {}) {
1766
- const {
1767
- baseClasses: n,
1768
- newClasses: t,
1769
- Component: e
1770
- } = r;
1771
- if (!t)
1772
- return n;
1773
- const i = R({}, n);
1774
- return k.env.NODE_ENV !== "production" && typeof t == "string" ? n : (Object.keys(t).forEach((o) => {
1775
- k.env.NODE_ENV !== "production" && (!n[o] && t[o], t[o] && t[o]), t[o] && (i[o] = `${n[o]} ${t[o]}`);
1776
- }), i);
1777
- }
1778
- const je = {
1779
- set: (r, n, t, e) => {
1780
- let i = r.get(n);
1781
- i || (i = /* @__PURE__ */ new Map(), r.set(n, i)), i.set(t, e);
1782
- },
1783
- get: (r, n, t) => {
1784
- const e = r.get(n);
1785
- return e ? e.get(t) : void 0;
1786
- },
1787
- delete: (r, n, t) => {
1788
- r.get(n).delete(t);
1789
- }
1790
- };
1791
- function $i() {
1792
- var r;
1793
- const n = Jn();
1794
- return (r = n == null ? void 0 : n.$$material) != null ? r : n;
1795
- }
1796
- const Ji = ["children", "injectFirst", "disableGeneration"], Wi = Dt(In()), Fi = ir(), Hi = /* @__PURE__ */ new Map(), Xi = {
1797
- disableGeneration: !1,
1798
- generateClassName: Fi,
1799
- jss: Wi,
1800
- sheetsCache: null,
1801
- sheetsManager: Hi,
1802
- sheetsRegistry: null
1803
- }, He = /* @__PURE__ */ X.createContext(Xi);
1804
- k.env.NODE_ENV !== "production" && (He.displayName = "StylesContext");
1805
- let $e;
1806
- function Nt(r) {
1807
- const {
1808
- children: n,
1809
- injectFirst: t = !1,
1810
- disableGeneration: e = !1
1811
- } = r, i = Qe(r, Ji), o = X.useContext(He), {
1812
- generateClassName: a,
1813
- jss: s,
1814
- serverGenerateClassName: l,
1815
- sheetsCache: d,
1816
- sheetsManager: g,
1817
- sheetsRegistry: h
1818
- } = R({}, o, i);
1819
- k.env.NODE_ENV !== "production" && t && i.jss;
1820
- const m = X.useMemo(() => {
1821
- const y = {
1822
- disableGeneration: e,
1823
- generateClassName: a,
1824
- jss: s,
1825
- serverGenerateClassName: l,
1826
- sheetsCache: d,
1827
- sheetsManager: g,
1828
- sheetsRegistry: h
1829
- };
1830
- if (k.env.NODE_ENV !== "production" && typeof window > "u" && y.sheetsManager, k.env.NODE_ENV !== "production" && y.jss.options.insertionPoint, !y.jss.options.insertionPoint && t && typeof window < "u") {
1831
- if (!$e) {
1832
- const p = document.head;
1833
- $e = document.createComment("mui-inject-first"), p.insertBefore($e, p.firstChild);
1834
- }
1835
- y.jss = Dt({
1836
- plugins: In().plugins,
1837
- insertionPoint: $e
1838
- });
1839
- }
1840
- return y;
1841
- }, [t, e, a, s, l, d, g, h]);
1842
- return /* @__PURE__ */ c(He.Provider, {
1843
- value: m,
1844
- children: n
1845
- });
1846
- }
1847
- k.env.NODE_ENV !== "production" && (Nt.propTypes = {
1848
- /**
1849
- * Your component tree.
1850
- */
1851
- children: O.node,
1852
- /**
1853
- * You can disable the generation of the styles with this option.
1854
- * It can be useful when traversing the React tree outside of the HTML
1855
- * rendering step on the server.
1856
- * Let's say you are using react-apollo to extract all
1857
- * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
1858
- */
1859
- disableGeneration: O.bool,
1860
- /**
1861
- * JSS's class name generator.
1862
- */
1863
- generateClassName: O.func,
1864
- /**
1865
- * By default, the styles are injected last in the <head> element of the page.
1866
- * As a result, they gain more specificity than any other style sheet.
1867
- * If you want to override MUI's styles, set this prop.
1868
- */
1869
- injectFirst: O.bool,
1870
- /**
1871
- * JSS's instance.
1872
- */
1873
- jss: O.object,
1874
- /**
1875
- * @ignore
1876
- */
1877
- serverGenerateClassName: O.func,
1878
- /**
1879
- * @ignore
1880
- *
1881
- * Beta feature.
1882
- *
1883
- * Cache for the sheets.
1884
- */
1885
- sheetsCache: O.object,
1886
- /**
1887
- * @ignore
1888
- *
1889
- * The sheetsManager is used to deduplicate style sheet injection in the page.
1890
- * It's deduplicating using the (theme, styles) couple.
1891
- * On the server, you should provide a new instance for each request.
1892
- */
1893
- sheetsManager: O.object,
1894
- /**
1895
- * @ignore
1896
- *
1897
- * Collect the sheets.
1898
- */
1899
- sheetsRegistry: O.object
1900
- });
1901
- k.env.NODE_ENV !== "production" && k.env.NODE_ENV !== "production" && (Nt.propTypes = Bn(Nt.propTypes));
1902
- let ft = -1e9;
1903
- function _i() {
1904
- return ft += 1, k.env.NODE_ENV !== "production" && ft >= 0, ft;
1905
- }
1906
- const Ki = ["variant"];
1907
- function Ft(r) {
1908
- return r.length === 0;
1909
- }
1910
- function qi(r) {
1911
- const {
1912
- variant: n
1913
- } = r, t = Qe(r, Ki);
1914
- let e = n || "";
1915
- return Object.keys(t).sort().forEach((i) => {
1916
- i === "color" ? e += Ft(e) ? r[i] : Re(r[i]) : e += `${Ft(e) ? i : Re(i)}${Re(r[i].toString())}`;
1917
- }), e;
1918
- }
1919
- const Cn = {};
1920
- function es(r) {
1921
- const n = typeof r == "function";
1922
- return k.env.NODE_ENV, {
1923
- create: (t, e) => {
1924
- let i;
1925
- try {
1926
- i = n ? r(t) : r;
1927
- } catch (l) {
1928
- throw k.env.NODE_ENV, l;
1929
- }
1930
- if (!e || !t.components || !t.components[e] || !t.components[e].styleOverrides && !t.components[e].variants)
1931
- return i;
1932
- const o = t.components[e].styleOverrides || {}, a = t.components[e].variants || [], s = R({}, i);
1933
- return Object.keys(o).forEach((l) => {
1934
- k.env.NODE_ENV !== "production" && s[l], s[l] = At(s[l] || {}, o[l]);
1935
- }), a.forEach((l) => {
1936
- const d = qi(l.props);
1937
- s[d] = At(s[d] || {}, l.style);
1938
- }), s;
1939
- },
1940
- options: {}
1941
- };
1942
- }
1943
- const ts = ["name", "classNamePrefix", "Component", "defaultTheme"];
1944
- function ns({
1945
- state: r,
1946
- stylesOptions: n
1947
- }, t, e) {
1948
- if (n.disableGeneration)
1949
- return t || {};
1950
- r.cacheClasses || (r.cacheClasses = {
1951
- // Cache for the finalized classes value.
1952
- value: null,
1953
- // Cache for the last used classes prop pointer.
1954
- lastProp: null,
1955
- // Cache for the last used rendered classes pointer.
1956
- lastJSS: {}
1957
- });
1958
- let i = !1;
1959
- return r.classes !== r.cacheClasses.lastJSS && (r.cacheClasses.lastJSS = r.classes, i = !0), t !== r.cacheClasses.lastProp && (r.cacheClasses.lastProp = t, i = !0), i && (r.cacheClasses.value = Nn({
1960
- baseClasses: r.cacheClasses.lastJSS,
1961
- newClasses: t,
1962
- Component: e
1963
- })), r.cacheClasses.value;
1964
- }
1965
- function rs({
1966
- state: r,
1967
- theme: n,
1968
- stylesOptions: t,
1969
- stylesCreator: e,
1970
- name: i
1971
- }, o) {
1972
- if (t.disableGeneration)
1973
- return;
1974
- let a = je.get(t.sheetsManager, e, n);
1975
- a || (a = {
1976
- refs: 0,
1977
- staticSheet: null,
1978
- dynamicStyles: null
1979
- }, je.set(t.sheetsManager, e, n, a));
1980
- const s = R({}, e.options, t, {
1981
- theme: n,
1982
- flip: typeof t.flip == "boolean" ? t.flip : n.direction === "rtl"
1983
- });
1984
- s.generateId = s.serverGenerateClassName || s.generateClassName;
1985
- const l = t.sheetsRegistry;
1986
- if (a.refs === 0) {
1987
- let d;
1988
- t.sheetsCache && (d = je.get(t.sheetsCache, e, n));
1989
- const g = e.create(n, i);
1990
- d || (d = t.jss.createStyleSheet(g, R({
1991
- link: !1
1992
- }, s)), d.attach(), t.sheetsCache && je.set(t.sheetsCache, e, n, d)), l && l.add(d), a.staticSheet = d, a.dynamicStyles = gn(g);
1993
- }
1994
- if (a.dynamicStyles) {
1995
- const d = t.jss.createStyleSheet(a.dynamicStyles, R({
1996
- link: !0
1997
- }, s));
1998
- d.update(o), d.attach(), r.dynamicSheet = d, r.classes = Nn({
1999
- baseClasses: a.staticSheet.classes,
2000
- newClasses: d.classes
2001
- }), l && l.add(d);
2002
- } else
2003
- r.classes = a.staticSheet.classes;
2004
- a.refs += 1;
2005
- }
2006
- function is({
2007
- state: r
2008
- }, n) {
2009
- r.dynamicSheet && r.dynamicSheet.update(n);
2010
- }
2011
- function ss({
2012
- state: r,
2013
- theme: n,
2014
- stylesOptions: t,
2015
- stylesCreator: e
2016
- }) {
2017
- if (t.disableGeneration)
2018
- return;
2019
- const i = je.get(t.sheetsManager, e, n);
2020
- i.refs -= 1;
2021
- const o = t.sheetsRegistry;
2022
- i.refs === 0 && (je.delete(t.sheetsManager, e, n), t.jss.removeStyleSheet(i.staticSheet), o && o.remove(i.staticSheet)), r.dynamicSheet && (t.jss.removeStyleSheet(r.dynamicSheet), o && o.remove(r.dynamicSheet));
2023
- }
2024
- function os(r, n) {
2025
- const t = X.useRef([]);
2026
- let e;
2027
- const i = X.useMemo(() => ({}), n);
2028
- t.current !== i && (t.current = i, e = r()), X.useEffect(
2029
- () => () => {
2030
- e && e();
2031
- },
2032
- [i]
2033
- // eslint-disable-line react-hooks/exhaustive-deps
2034
- );
2035
- }
2036
- function as(r, n = {}) {
2037
- const {
2038
- // alias for classNamePrefix, if provided will listen to theme (required for theme.components[name].styleOverrides)
2039
- name: t,
2040
- // Help with debuggability.
2041
- classNamePrefix: e,
2042
- Component: i,
2043
- defaultTheme: o = Cn
2044
- } = n, a = Qe(n, ts), s = es(r), l = t || e || "makeStyles";
2045
- return s.options = {
2046
- index: _i(),
2047
- name: t,
2048
- meta: l,
2049
- classNamePrefix: l
2050
- }, (g = {}) => {
2051
- const h = $i() || o, m = R({}, X.useContext(He), a), y = X.useRef(), p = X.useRef();
2052
- os(() => {
2053
- const M = {
2054
- name: t,
2055
- state: {},
2056
- stylesCreator: s,
2057
- stylesOptions: m,
2058
- theme: h
2059
- };
2060
- return rs(M, g), p.current = !1, y.current = M, () => {
2061
- ss(M);
2062
- };
2063
- }, [h, s]), X.useEffect(() => {
2064
- p.current && is(y.current, g), p.current = !0;
2065
- });
2066
- const u = ns(y.current, g.classes, i);
2067
- return k.env.NODE_ENV !== "production" && X.useDebugValue(u), k.env.NODE_ENV !== "production" && t && ["MuiAvatar", "MuiBadge", "MuiButton", "MuiButtonGroup", "MuiChip", "MuiDivider", "MuiFab", "MuiPaper", "MuiToolbar", "MuiTypography", "MuiAlert", "MuiPagination", "MuiPaginationItem", "MuiSkeleton", "MuiTimelineDot"].indexOf(t) >= 0 && g.variant && u[g.variant], u;
2068
- };
2069
- }
2070
- const cs = as(() => ({
2071
- circle: {
2072
- stroke: "url(#linearColors)"
2073
- },
2074
- MuiCircularProgress: { circle: { color: "green" } }
2075
- }));
2076
- function jn(r) {
2077
- var M, I, Y, D, v;
2078
- cs();
2079
- const { injectedicon: n, metamaskicon: t, xverse: e, walletconnecticon: i, coinbaseicon: o, phantom: a, solflare: s, slope: l, magiceden: d, backpacksol: g, tronLink: h, keplr: m, brave: y } = pe, p = {
2080
- Injected: n,
2081
- metaMask: t,
2082
- coinbaseWallet: o,
2083
- WalletConnect: i,
2084
- solflare: s,
2085
- phantom: a,
2086
- slope: l,
2087
- backpack: g,
2088
- keplr: m,
2089
- xverse: e,
2090
- "magic eden (solana)": d,
2091
- "brave browser (solana)": y,
2092
- TronLink: h
2093
- }, u = T((U) => U.configuration);
2094
- return /* @__PURE__ */ C(G, { children: [
2095
- /* @__PURE__ */ c("svg", { className: "bw-absolute", children: /* @__PURE__ */ C("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
2096
- /* @__PURE__ */ c("stop", { offset: "1%", stopColor: (M = u == null ? void 0 : u.gradientStyle) != null && M.spinnerColor ? (I = u == null ? void 0 : u.gradientStyle) == null ? void 0 : I.spinnerColor : "#A45EFF" }),
2097
- /* @__PURE__ */ c("stop", { offset: "90%", stopColor: (Y = u == null ? void 0 : u.gradientStyle) != null && Y.spinnerColor ? (D = u == null ? void 0 : u.gradientStyle) == null ? void 0 : D.stopColor : "#2CFFE4" })
2098
- ] }) }),
2099
- /* @__PURE__ */ C(
2100
- Et,
2101
- {
2102
- sx: {
2103
- position: "relative",
2104
- display: "inline-flex"
2105
- },
2106
- children: [
2107
- /* @__PURE__ */ c(
2108
- Je,
2109
- {
2110
- variant: "determinate",
2111
- sx: {
2112
- color: (U) => U.palette.grey[U.palette.mode === "light" ? 200 : 800]
2113
- },
2114
- size: 250,
2115
- thickness: 1,
2116
- value: 100
2117
- }
2118
- ),
2119
- /* @__PURE__ */ c(
2120
- Je,
2121
- {
2122
- variant: "determinate",
2123
- size: 250,
2124
- thickness: 1,
2125
- value: r.value,
2126
- sx: {
2127
- "svg circle": { stroke: "url(#linearColors)" },
2128
- position: "absolute",
2129
- left: 0,
2130
- [`& .${Gn.circle}`]: {
2131
- strokeLinecap: "round"
2132
- }
2133
- }
2134
- }
2135
- ),
2136
- /* @__PURE__ */ c(
2137
- Et,
2138
- {
2139
- sx: {
2140
- top: 0,
2141
- left: 0,
2142
- bottom: 0,
2143
- right: 0,
2144
- position: "absolute",
2145
- display: "flex",
2146
- alignItems: "center",
2147
- justifyContent: "center"
2148
- },
2149
- children: /* @__PURE__ */ C(cn, { variant: "caption", className: "bw-flex bw-flex-col bw-justify-center bw-items-center bw-text-2xl bw-font-medium bw-text-text-primary", component: "div", color: "text.secondary", children: [
2150
- /* @__PURE__ */ c("img", { src: p[r == null ? void 0 : r.selectedWallet] || ((v = r.selectedConnector) == null ? void 0 : v.icon) || "", width: 90, height: 83, alt: "img" }),
2151
- /* @__PURE__ */ c("p", { className: "bw-text-2xl bw-px-3 bw-mt-1 bw-text-center bw-font-medium bw-text-text-primary", children: r.selectedWallet })
2152
- ] })
2153
- }
2154
- )
2155
- ]
2156
- }
2157
- )
2158
- ] });
2159
- }
2160
- jn.propTypes = {
2161
- value: O.number.isRequired
2162
- };
2163
- function ls({ selectedWallet: r, isSuccess: n, data: t, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isTronConnecting: a, isBitcoinConnecting: s, selectedConnector: l }) {
2164
- const { primaryWallet: d } = he(), g = Xe(), [h, m] = X.useState(25), { address: y, connected: p } = De(), { data: u } = qe();
2165
- return X.useEffect(() => {
2166
- (n && t || d !== null && g && (e || o || s) || y && p && a || u != null && u.bech32Address && i) && m(100);
2167
- }, [n, t, e, o, s, d, g, a, i, u == null ? void 0 : u.bech32Address, y, p]), /* @__PURE__ */ c(jn, { value: h, selectedWallet: r, selectedConnector: l });
2168
- }
2169
- function us({ selectedWallet: r, selectedConnector: n, handleConnect: t, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isBitcoinConnecting: a, handleOtherWalletConnecting: s, data: l, isTronConnecting: d, isSuccess: g, evmError: h }) {
2170
- var x, K, H;
2171
- const m = T((N) => N.configuration), y = T((N) => N.setCosmosChainIds), p = T((N) => N.fromChain), u = T((N) => N.gradient), { select: M, connect: I, wallet: Y } = De(), { openWallet: D } = Ct(), { setPrimaryWallet: v } = he(), U = _e(), { error: z } = Xt(), { registerError: E } = Un(), { suggestAsync: P } = rn(), { suggestAndConnectAsync: W } = sn(), { refetch: Q } = Te({}), { connectAsync: L } = on({
2172
- onError: (N) => {
2173
- B(N.message);
2174
- }
2175
- }), [A, B] = Z("");
2176
- let w = h != null && h.length ? h : A;
2177
- async function F() {
2178
- B("");
2179
- try {
2180
- D(r);
2181
- } catch (N) {
2182
- B(N.message);
2183
- }
2184
- }
2185
- async function ne() {
2186
- B("");
2187
- try {
2188
- Y ? await I(r) : await M(r);
2189
- } catch (N) {
2190
- B(N.message);
2191
- }
2192
- }
2193
- te(() => {
2194
- let N = $n(w || "");
2195
- w.length && N && E({
2196
- mode: "wallet connection",
2197
- error: w
2198
- });
2199
- }, [w]);
2200
- const _ = ke();
2201
- te(() => {
2202
- var N;
2203
- if (_ && r) {
2204
- let b = Me.keyBy(_, (V) => V.connector.name.toLowerCase());
2205
- (N = b == null ? void 0 : b[r]) != null && N.id && U(b[r].id);
2206
- }
2207
- }, [_, r]);
2208
- async function de() {
2209
- B("");
2210
- try {
2211
- let N = await We();
2212
- if (!N.includes(p == null ? void 0 : p.chainId) && (p == null ? void 0 : p.networkType) == "cosmos") {
2213
- let b = {
2214
- ...p == null ? void 0 : p.chainInfo
2215
- };
2216
- await W({
2217
- chainInfo: b,
2218
- walletType: Se.KEPLR
2219
- });
2220
- let V = await We();
2221
- y(V), await L({
2222
- chainId: V,
2223
- walletType: Se.KEPLR
2224
- }), await Q();
2225
- } else
2226
- L({
2227
- chainId: N,
2228
- walletType: Se.KEPLR
2229
- });
2230
- } catch (N) {
2231
- B(N.message);
2232
- }
2233
- }
2234
- return /* @__PURE__ */ C("div", { className: "bw-flex bw-w-full bw-flex-col bw-justify-center bw-items-center", children: [
2235
- /* @__PURE__ */ C("div", { className: "bw-flex bw-w-full bw-relative bw-justify-center bw-mb-2", children: [
2236
- /* @__PURE__ */ c(
2237
- "button",
2238
- {
2239
- onClick: () => {
2240
- s();
2241
- },
2242
- className: "bw-absolute bw-left-0 bw-top-[25%]",
2243
- children: /* @__PURE__ */ c(tn, { fill: "var(--tw-text-secondary)" })
2244
- }
2245
- ),
2246
- /* @__PURE__ */ c("div", { className: "bw-text-lg bw-font-normal bw-text-text-secondary", children: "Connect Wallet" }),
2247
- /* @__PURE__ */ c(
2248
- "button",
2249
- {
2250
- onClick: () => {
2251
- s();
2252
- },
2253
- className: "bw-absolute bw-right-0 bw-top-[25%]",
2254
- children: /* @__PURE__ */ c(nn, { fill: "var(--tw-text-secondary)" })
2255
- }
2256
- )
2257
- ] }),
2258
- /* @__PURE__ */ c(ls, { selectedWallet: r, isSuccess: g, data: l, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isBitcoinConnecting: a, isTronConnecting: d, selectedConnector: n }),
2259
- /* @__PURE__ */ C("p", { className: "bw-text-lg bw-mt-2 bw-font-medium bw-text-text-primary", children: [
2260
- "Continue in ",
2261
- r || ""
2262
- ] }),
2263
- /* @__PURE__ */ c("p", { className: "bw-text-lg bw-font-normal bw-mt-2 bw-text-text-secondary", children: "Accept connection request in the wallet" }),
2264
- /* @__PURE__ */ c("p", { className: "bw-text-text-redtext bw-text-xs bw-relative bw-top-1", children: w }),
2265
- /* @__PURE__ */ c(
2266
- "div",
2267
- {
2268
- style: {
2269
- ...m.gradientStyle,
2270
- boxShadow: m && m.customTheme && ((K = (x = m.customTheme) == null ? void 0 : x.shadow) == null ? void 0 : K.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2271
- },
2272
- className: `bw-w-full bw-mt-3 bw-rounded-sm bw-h-full bw-p-[3px] ${u || `${(H = m == null ? void 0 : m.gradientStyle) != null && H.background ? "" : "bw-bg-gradient-to-r bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`}`,
2273
- children: /* @__PURE__ */ c(
2274
- "button",
2275
- {
2276
- onClick: () => {
2277
- w = "", e || o || a ? F() : d ? ne() : i ? de() : (B(""), t(n));
2278
- },
2279
- className: "bw-w-full bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-h-[50px] bw-rounded-sm ",
2280
- children: /* @__PURE__ */ c("span", { style: { ...m.gradientStyle, backgroundClip: "text" }, className: " bw-text-text-primary bw-text-2xl bw-font-bold ", children: "Try Again" })
2281
- }
2282
- )
2283
- }
2284
- )
2285
- ] });
2286
- }
2287
- const ds = "_gradientbutton_dz9ed_1", se = {
2288
- gradientbutton: ds
2289
- };
2290
- function fs({ selectedWalletTab: r, handleWalletTab: n }) {
2291
- const t = ["All", "EVM", "SVM", "Cosmos", "Other"], e = T((d) => d.configuration), { cosmos: i, evmwal: o, solwal: a, walleticon: s } = pe, l = {
2292
- EVM: o,
2293
- SVM: a,
2294
- Cosmos: i,
2295
- Other: s
2296
- };
2297
- return /* @__PURE__ */ c("div", { className: "bw-flex bw-px-3 bw-justify-between bw-gap-x-2 bw-items-center", children: t.map((d, g) => /* @__PURE__ */ c(
2298
- "div",
2299
- {
2300
- style: r == d ? {
2301
- ...e == null ? void 0 : e.gradientStyle
2302
- } : {},
2303
- className: `${!e.gradientStyle && r == d && se.gradientbutton} bw-min-h-[2px] bw-rounded-md bw-p-[1px] bw-mt-[2px] bw-min-w-[40px]`,
2304
- children: /* @__PURE__ */ C(
2305
- "div",
2306
- {
2307
- onClick: () => {
2308
- n(d);
2309
- },
2310
- className: `bw-w-[57px] bw-cursor-pointer bw-h-[44px] bw-flex ${r === d ? "bw-bg-background-container" : ""} bw-rounded-md bw-relative bw-flex-col bw-justify-center bw-items-center`,
2311
- children: [
2312
- /* @__PURE__ */ c("div", { className: `${r === d ? "" : "bw-bg-background-secondary bw-opacity-[20%]"} bw-h-full bw-absolute bw-top-0 bw-right-0 bw-rounded-md bw-w-full` }),
2313
- l[d] ? /* @__PURE__ */ c("img", { src: l[d], alt: "img" }) : /* @__PURE__ */ c(G, {}),
2314
- /* @__PURE__ */ c("p", { className: `${r === d ? " bw-text-text-primary bw-font-bold" : " bw-text-text-secondary bw-font-normal"} bw-text-xs bw-mt-[2px] `, children: d })
2315
- ]
2316
- },
2317
- g
2318
- )
2319
- }
2320
- )) });
2321
- }
2322
- function ze({ fill: r }) {
2323
- return /* @__PURE__ */ C("svg", { width: "100%", height: "100%", viewBox: "0 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2324
- /* @__PURE__ */ c("rect", { x: "11.7148", y: "4.08594", width: "1.60573", height: "9.09916", rx: "0.802867", fill: r }),
2325
- /* @__PURE__ */ c(
2326
- "path",
2327
- {
2328
- "fill-rule": "evenodd",
2329
- "clip-rule": "evenodd",
2330
- d: "M16.3146 5.80529C16.5295 5.92348 16.738 6.05125 16.9396 6.18801C18.1562 7.01313 19.1223 8.16579 19.7212 9.51974C20.4268 11.1151 20.5828 12.8995 20.1647 14.5931C19.7465 16.2867 18.7778 17.7934 17.4107 18.8769C16.0435 19.9605 14.3554 20.5594 12.611 20.5797C10.8667 20.6 9.16506 20.0405 7.77309 18.9891C6.38111 17.9377 5.37764 16.4539 4.92016 14.7705C4.46268 13.0871 4.57709 11.2995 5.24543 9.68821C5.81266 8.32069 6.75162 7.14586 7.94869 6.29265C8.16209 6.14055 8.3837 5.99866 8.61287 5.86773L8.61451 5.8706C8.71383 5.81424 8.82868 5.78206 8.95105 5.78206C9.3282 5.78206 9.63394 6.0878 9.63394 6.46495C9.63394 6.74011 9.47121 6.97726 9.23674 7.0854C8.01077 7.8015 7.05203 8.89924 6.50763 10.2117C5.95526 11.5435 5.8607 13.0209 6.2388 14.4122C6.6169 15.8034 7.44624 17.0298 8.59668 17.8987C9.74711 18.7677 11.1535 19.2301 12.5951 19.2133C14.0368 19.1965 15.432 18.7015 16.5619 17.806C17.6918 16.9105 18.4924 15.6652 18.838 14.2655C19.1836 12.8658 19.0547 11.391 18.4715 10.0725C17.8885 8.75448 16.8845 7.66724 15.617 6.98132L15.6157 6.9806L15.6163 6.97936C15.4179 6.8599 15.2851 6.64237 15.2851 6.39384C15.2851 6.01668 15.5908 5.71094 15.968 5.71094C16.0747 5.71094 16.1756 5.7354 16.2656 5.77901L16.2658 5.77867C16.2688 5.78032 16.2719 5.78197 16.2749 5.78363C16.2884 5.79042 16.3016 5.79765 16.3146 5.80529Z",
2331
- fill: r
2332
- }
2333
- ),
2334
- /* @__PURE__ */ C("g", { filter: "url(#filter0_f_5308_21436)", children: [
2335
- /* @__PURE__ */ c("rect", { x: "11.7148", y: "4.08594", width: "1.60573", height: "9.09916", rx: "0.802867", fill: r }),
2336
- /* @__PURE__ */ c(
2337
- "path",
2338
- {
2339
- "fill-rule": "evenodd",
2340
- "clip-rule": "evenodd",
2341
- d: "M16.3146 5.80529C16.5295 5.92348 16.738 6.05125 16.9396 6.18801C18.1562 7.01313 19.1223 8.16579 19.7212 9.51974C20.4268 11.1151 20.5828 12.8995 20.1647 14.5931C19.7465 16.2867 18.7778 17.7934 17.4107 18.8769C16.0435 19.9605 14.3554 20.5594 12.611 20.5797C10.8667 20.6 9.16506 20.0405 7.77309 18.9891C6.38111 17.9377 5.37764 16.4539 4.92016 14.7705C4.46268 13.0871 4.57709 11.2995 5.24543 9.68821C5.81266 8.32069 6.75162 7.14586 7.94869 6.29265C8.16209 6.14055 8.3837 5.99866 8.61287 5.86773L8.61451 5.8706C8.71383 5.81424 8.82868 5.78206 8.95105 5.78206C9.3282 5.78206 9.63394 6.0878 9.63394 6.46495C9.63394 6.74011 9.47121 6.97726 9.23674 7.0854C8.01077 7.8015 7.05203 8.89924 6.50763 10.2117C5.95526 11.5435 5.8607 13.0209 6.2388 14.4122C6.6169 15.8034 7.44624 17.0298 8.59668 17.8987C9.74711 18.7677 11.1535 19.2301 12.5951 19.2133C14.0368 19.1965 15.432 18.7015 16.5619 17.806C17.6918 16.9105 18.4924 15.6652 18.838 14.2655C19.1836 12.8658 19.0547 11.391 18.4715 10.0725C17.8885 8.75448 16.8845 7.66724 15.617 6.98132L15.6157 6.9806L15.6163 6.97936C15.4179 6.8599 15.2851 6.64237 15.2851 6.39384C15.2851 6.01668 15.5908 5.71094 15.968 5.71094C16.0747 5.71094 16.1756 5.7354 16.2656 5.77901L16.2658 5.77867C16.2688 5.78032 16.2719 5.78197 16.2749 5.78363C16.2884 5.79042 16.3016 5.79765 16.3146 5.80529Z",
2342
- fill: r
2343
- }
2344
- )
2345
- ] }),
2346
- /* @__PURE__ */ c("defs", { children: /* @__PURE__ */ C("filter", { id: "filter0_f_5308_21436", x: "0.644531", y: "0.0859375", width: "23.75", height: "24.4941", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB", children: [
2347
- /* @__PURE__ */ c("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
2348
- /* @__PURE__ */ c("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }),
2349
- /* @__PURE__ */ c("feGaussianBlur", { stdDeviation: "2", result: "effect1_foregroundBlur_5308_21436" })
2350
- ] }) })
2351
- ] });
2352
- }
2353
- function hs({ portfolio: r, handleShowWallet: n }) {
2354
- var y, p, u, M;
2355
- const t = T((I) => I.configuration), e = T((I) => I.customWallet), i = T((I) => I.setCustomWallet);
2356
- T((I) => I.toDisconnect);
2357
- const o = T((I) => I.setToDisconnect), a = T((I) => I.isCustomWalletSet), s = T((I) => I.setIsCustomWalletSet), [l, d] = Z(""), [g, h] = Z("");
2358
- function m() {
2359
- (l == null ? void 0 : l.length) > 30 ? (n(), s(!0), o(!1), i(l)) : h("Please enter a valid address");
2360
- }
2361
- return te(() => {
2362
- (e == null ? void 0 : e.length) > 30 ? (d(e), s(!0)) : s(!1);
2363
- }, [e]), /* @__PURE__ */ C("div", { className: `bw-sticky bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary ${r ? "bw-w-[calc(100%]" : "bw-w-[calc(100%+20px)]"} bw-ml-[-10px] bw-bottom-0`, children: [
2364
- /* @__PURE__ */ C("div", { className: "bw-flex bw-mx-4 bw-items-center bw-mb-2 bw-gap-x-1", children: [
2365
- /* @__PURE__ */ c(Qn, { fill: "var(--tw-text-secondary)" }),
2366
- /* @__PURE__ */ c("p", { className: "bw-text-sm bw-font-semibold bw-text-text-secondary", children: "Send to a different wallet address" })
2367
- ] }),
2368
- /* @__PURE__ */ C(
2369
- "form",
2370
- {
2371
- className: "bw-w-full bw-px-4 bw-flex bw-gap-x-2 bw-justify-between bw-items-center",
2372
- onSubmit: (I) => {
2373
- I.preventDefault(), m();
2374
- },
2375
- children: [
2376
- /* @__PURE__ */ c("div", { className: `bw-rounded-md ${a && (e == null ? void 0 : e.length) > 30 ? "bw-w-[87%]" : "bw-w-[72%]"} bw-p-[1px] bw-bg-border-primary `, children: /* @__PURE__ */ c(
2377
- "input",
2378
- {
2379
- type: "text",
2380
- value: l,
2381
- onChange: (I) => {
2382
- d(I.target.value), h(""), s(!1);
2383
- },
2384
- placeholder: "Enter receiving wallet address",
2385
- className: "bw-w-full bw-h-[38px] bw-rounded-md bw-text-sm bw-text-text-primary bw-bg-background-container bw-px-2 placeholder:bw-text-text-secondary "
2386
- }
2387
- ) }),
2388
- a && (l == null ? void 0 : l.length) > 30 ? /* @__PURE__ */ c(
2389
- "button",
2390
- {
2391
- type: "button",
2392
- onClick: (I) => {
2393
- I.stopPropagation(), s(!1), o(!0), i(""), d("");
2394
- },
2395
- className: "bw-w-[40px] bw-h-[40px] bw-flex bw-items-center bw-justify-center bw-rounded-md bw-border bw-border-bg-button",
2396
- children: /* @__PURE__ */ c("div", { className: "bw-w-[25px] bw-h-[25px]", children: /* @__PURE__ */ c(ze, { fill: "var(--tw-text-primary)" }) })
2397
- }
2398
- ) : /* @__PURE__ */ c(
2399
- "div",
2400
- {
2401
- style: (l == null ? void 0 : l.length) > 30 ? {
2402
- ...t == null ? void 0 : t.gradientStyle,
2403
- boxShadow: t && t.customTheme && ((p = (y = t.customTheme) == null ? void 0 : y.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2404
- } : {
2405
- boxShadow: t && t.customTheme && ((M = (u = t.customTheme) == null ? void 0 : u.shadow) == null ? void 0 : M.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2406
- },
2407
- className: `bw-w-[28%] bw-flex bw-justify-center bw-items-center bw-rounded-md ${!(t != null && t.gradientStyle) && (l == null ? void 0 : l.length) > 30 && se.gradientbutton} `,
2408
- children: /* @__PURE__ */ c(
2409
- "button",
2410
- {
2411
- onClick: () => {
2412
- m();
2413
- },
2414
- type: "submit",
2415
- className: `bw-cursor-pointer bw-bg-background-container bw-w-full bw-rounded-[4px] ${(l == null ? void 0 : l.length) > 30 ? " bw-font-bold bw-text-text-primary bw-h-[36px] bw-m-[2px]" : "bw-border bw-font-medium bw-text-text-secondary bw-border-border-primary bw-h-[40px]"} bw-text-lg `,
2416
- children: "Confirm"
2417
- }
2418
- )
2419
- }
2420
- )
2421
- ]
2422
- }
2423
- ),
2424
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-pl-4 bw-mt-1 bw-font-normal bw-text-text-redtext", children: g })
2425
- ] });
2426
- }
2427
- function gs({ fill: r }) {
2428
- return /* @__PURE__ */ C(
2429
- "svg",
2430
- {
2431
- width: "18",
2432
- height: "18",
2433
- viewBox: "0 0 13 13",
2434
- fill: "none",
2435
- xmlns: "http://www.w3.org/2000/svg",
2436
- children: [
2437
- /* @__PURE__ */ c(
2438
- "path",
2439
- {
2440
- d: "M6 2H2C1.44772 2 1 2.44772 1 3V11C1 11.5523 1.44772 12 2 12H10C10.5523 12 11 11.5523 11 11V7",
2441
- stroke: r,
2442
- "stroke-linecap": "round"
2443
- }
2444
- ),
2445
- /* @__PURE__ */ c(
2446
- "path",
2447
- {
2448
- d: "M4.64645 8.14645C4.45118 8.34171 4.45118 8.65829 4.64645 8.85355C4.84171 9.04882 5.15829 9.04882 5.35355 8.85355L4.64645 8.14645ZM13 1C13 0.723858 12.7761 0.5 12.5 0.5H8C7.72386 0.5 7.5 0.723858 7.5 1C7.5 1.27614 7.72386 1.5 8 1.5H12V5.5C12 5.77614 12.2239 6 12.5 6C12.7761 6 13 5.77614 13 5.5V1ZM5.35355 8.85355L12.8536 1.35355L12.1464 0.646447L4.64645 8.14645L5.35355 8.85355Z",
2449
- fill: r
2450
- }
2451
- )
2452
- ]
2453
- }
2454
- );
2455
- }
2456
- function tt({ wallet: r, chain: n }) {
2457
- const { solflare: t, slope: e, magiceden: i, backpacksol: o, keplr: a, solanaicon: s, brave: l, cosmosicon: d, bitcoin: g, xverse: h, ethereumicon: m, tronLink: y } = pe, p = {
2458
- solflare: t,
2459
- // phantom,
2460
- tronLink: y,
2461
- xverse: h,
2462
- bitcoin: g,
2463
- slope: e,
2464
- backpack: o,
2465
- "magic eden (solana)": i,
2466
- keplr: a,
2467
- "brave browser (solana)": l,
2468
- phantom: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKkElEQVR4Ae2dQW8bxxmGv9ldGmikJFQBO4bdWERiA40OkQrIl+QgGkjbS4rYaN2iJ4f9A61/gaV/kPyB0j61hY0qBYoe0oOpg32RgUg9OAGcoEycCk4MWFQsqYBJ7mTeJdehKFLcXc7sDnfmAShSFFei9nvnnW9mvh0yUsBqlRebtFci8hcY8RIjNovnOZF4jhfFfbH39eLnJTIQTrze+704D/XO89RgTDzm/g4Xz+F5j6Y3LlVYgyTDSAKdgD+96BAt+cTLpgZUNSJYdZ9oQzz8R4EKtUuVH9VpTMYSwM3q07LQ6zXxsEyW1BHBuy4c4sblyos1SkgiAdjAa0fNo0IliSPEEgCsvkW7IvD8T2TRELYs3GAl1hFRX7ha/X+pTc3bnUTOoivIE1wqXIjqBk6UF9368+4VEfxPbPD1BzFqiVj9rfrdxSivHymAW9XdP3LmX+8fulm0pigCuypytWujXnikAPALOPkfkGVC4ct/re4cma8NzQFgIVARWSYexp33f/OH6RsDfzboyW7C94m1/dzQEMPEnw1KDAd2Ad1s3wY/PxQR09Xq9qGYHhJAp9+32X7e6IwOvENJ4YEuANYvhhD/JUuOYRd6p44POIAIfpUsOYcfcIHnAujM79u5fQM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kuNDgxNyAzMy45MDA4VjMwLjgzNDZMMTkuOTkxMSAyOC45Nzc4TDI1LjE3MjEgMzAuNTE0MloiIGZpbGw9IiNFN0VCRjYiLz4KPC9zdmc+Cg=="
2472
- };
2473
- return /* @__PURE__ */ c("a", { className: "bw-min-w-full", href: {
2474
- solflare: "https://chromewebstore.google.com/detail/solflare-wallet/bhhhlbepdkbapadjdnnojkbgioiodbic",
2475
- phantom: "https://chromewebstore.google.com/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa",
2476
- slope: "https://chromewebstore.google.com/detail/slope-wallet/pocmplpaccanhmnllbbkpgfliimjljgo?hl=en",
2477
- backpack: "https://chromewebstore.google.com/detail/backpack/aflkmfhebedbjioipglgcbcmnbpgliof",
2478
- "magic eden (solana)": "https://chromewebstore.google.com/detail/magic-eden-wallet/mkpegjkblkkefacfnmkajcjmabijhclg",
2479
- keplr: "https://chromewebstore.google.com/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap?hl=en",
2480
- "brave browser (solana)": "https://brave.com/wallet/",
2481
- "trust wallet": "https://chromewebstore.google.com/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
2482
- "rabby wallet": "https://chromewebstore.google.com/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch?hl=en",
2483
- metamask: "https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en",
2484
- xverse: "https://chromewebstore.google.com/detail/xverse-bitcoin-crypto-wal/idnnbdplmphpflfnlkomgpfbpcgelopg"
2485
- }[r == null ? void 0 : r.toLowerCase()], target: "_blank", children: /* @__PURE__ */ C("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-h-max", children: [
2486
- " ",
2487
- /* @__PURE__ */ C("div", { className: "bw-flex bw-my-2 bw-items-center bw-gap-x-2", children: [
2488
- /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2489
- /* @__PURE__ */ c("img", { src: p[r == null ? void 0 : r.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2490
- /* @__PURE__ */ c("img", { src: n == "cosmos" ? d : n === "evm" ? m : n === "bitcoin" ? g : s, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "21", height: "21", alt: "img" })
2491
- ] }),
2492
- /* @__PURE__ */ c("p", { className: "bw-text-sm bw-text-text-secondary bw-font-medium", children: r })
2493
- ] }),
2494
- /* @__PURE__ */ C("button", { children: [
2495
- " ",
2496
- /* @__PURE__ */ c(gs, { fill: "var(--tw-text-placeholder)" })
2497
- ] })
2498
- ] }) });
2499
- }
2500
- function bs({ selectedWalletTab: r, styles: n, connectWalletField: t, handleShowWallet: e, setSelectedConnector: i, setSelectedWallet: o, handleConnect: a, setShowLoading: s, section: l }) {
2501
- const d = T((w) => w.configuration), g = T((w) => w.setToDisconnect), { connector: h } = _t(), { disconnect: m } = Dn(), [y, p] = Z(), [u, M] = Z([]), { connectors: I, switchAccountAsync: Y } = Kt(), { injectedicon: D, metamaskicon: v, coinbaseicon: U, walletconnecticon: z, ethereumicon: E } = pe, P = {
2502
- injected: D,
2503
- metaMaskSDK: v,
2504
- coinbaseWalletSDK: U,
2505
- walletConnect: z
2506
- }, W = qt(), Q = Tn({
2507
- config: W
2508
- }), L = kn({ config: W }), A = T((w) => w.setIsEvmSupportAvailable);
2509
- let B = ["MetaMask", "Trust Wallet", "Rabby Wallet", "Phantom"];
2510
- return te(() => {
2511
- let w = Me.keyBy(Q, "name"), F = B.filter((ne) => !w[ne]);
2512
- M(F), A(F.length > 0);
2513
- }, [Q]), te(() => {
2514
- p(Me.keyBy(L, (w) => w.connector.uid));
2515
- }, [L]), /* @__PURE__ */ C(G, { children: [
2516
- r == "All" || r == "EVM" ? Q.filter((w) => {
2517
- let F = (h == null ? void 0 : h.id) == w.id || (y == null ? void 0 : y[w.uid]);
2518
- return !!(l == "connected" && F || l == "installed" && !F || l == "supported");
2519
- }).map((w, F) => {
2520
- var ne, _;
2521
- return /* @__PURE__ */ c(G, { children: l !== "supported" ? /* @__PURE__ */ C(
2522
- "div",
2523
- {
2524
- style: (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? {
2525
- ...d == null ? void 0 : d.gradientStyle
2526
- } : {},
2527
- className: `bw-w-[47%] bw-mb-4 bw-relative bw-rounded-md bw-p-[1px] ${!d.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? n.gradientbutton : d.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? "" : "bw-bg-border-primary"} `,
2528
- children: [
2529
- /* @__PURE__ */ C(
2530
- "div",
2531
- {
2532
- onClick: () => {
2533
- (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? t == "to" ? (g(!1), e()) : m({ connector: h }) : (o(w.name || w.type), i(w), a(w, !!(y != null && y[w.uid])), s(!1), g(!1));
2534
- },
2535
- style: { cursor: "pointer" },
2536
- className: `bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-flex bw-gap-x-3 bw-px-3 bw-justify-start bw-items-center bw-h-[56px] ${(h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? " bw-text-text-primary" : "bw-text-text-secondary"} bw-relative bw-rounded-md
2537
-
2538
- `,
2539
- children: [
2540
- /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2541
- " ",
2542
- /* @__PURE__ */ c("img", { className: "bw-rounded-md", src: P[w.id] || w.icon, width: 32, height: 32, alt: "img" })
2543
- ] }),
2544
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: w.name })
2545
- ]
2546
- },
2547
- F
2548
- ),
2549
- /* @__PURE__ */ c(
2550
- "div",
2551
- {
2552
- style: (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? {
2553
- ...d == null ? void 0 : d.gradientStyle
2554
- } : {},
2555
- className: `bw-mb-4 bw-bottom-[-50%] bw-absolute bw-right-2 bw-rounded-md bw-p-[1px] ${!d.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? n.gradientbutton : d.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? "" : "bw-bg-border-primary"} `,
2556
- children: /* @__PURE__ */ C("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2557
- /* @__PURE__ */ c("img", { src: E, width: "", height: "", alt: "img" }),
2558
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "EVM" })
2559
- ] })
2560
- }
2561
- ),
2562
- y != null && y[w.uid] || (h == null ? void 0 : h.id) == w.id ? /* @__PURE__ */ c(
2563
- "div",
2564
- {
2565
- onClick: (de) => {
2566
- var x;
2567
- m({
2568
- connector: (x = y == null ? void 0 : y[w.uid]) == null ? void 0 : x.connector,
2569
- config: W
2570
- }), de.stopPropagation();
2571
- },
2572
- className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2573
- children: /* @__PURE__ */ c(
2574
- "div",
2575
- {
2576
- style: {
2577
- boxShadow: d && d.customTheme && ((_ = (ne = d.customTheme) == null ? void 0 : ne.shadow) == null ? void 0 : _.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2578
- },
2579
- className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2580
- children: /* @__PURE__ */ c(ze, { fill: "var(--tw-text-primary)" })
2581
- }
2582
- )
2583
- }
2584
- ) : /* @__PURE__ */ c(G, {})
2585
- ]
2586
- }
2587
- ) : /* @__PURE__ */ c(G, {}) });
2588
- }) : /* @__PURE__ */ c(G, {}),
2589
- l === "supported" && (r == "All" || r == "EVM") ? u.map((w) => /* @__PURE__ */ c(tt, { wallet: w, chain: "evm" })) : /* @__PURE__ */ c(G, {})
2590
- ] });
2591
- }
2592
- function ws(r) {
2593
- var n, t, e, i, o, a;
2594
- switch (r) {
2595
- case "phantom":
2596
- return !!((t = (n = window == null ? void 0 : window.phantom) == null ? void 0 : n.solana) != null && t.isPhantom);
2597
- case "backpack":
2598
- return !!((e = window == null ? void 0 : window.backpack) != null && e.isBackpack);
2599
- case "brave browser (solana)":
2600
- return !!window.braveSolana.isBraveWallet;
2601
- case "solflare":
2602
- return !!((i = window == null ? void 0 : window.solflare) != null && i.isSolflare);
2603
- case "magic eden (solana)":
2604
- return !!((a = (o = window == null ? void 0 : window.magicEden) == null ? void 0 : o.solana) != null && a.isMagicEden);
2605
- default:
2606
- return !1;
2607
- }
2608
- }
2609
- function Sn() {
2610
- const r = _e(), n = ke(), { primaryWallet: t, handleUnlinkWallet: e } = he();
2611
- T((s) => s.fromChain);
2612
- const i = T((s) => s.toChain), { updateMostRecentWallet: o } = Te({});
2613
- async function a(s, l = "SOL") {
2614
- const d = s === (t == null ? void 0 : t.id);
2615
- try {
2616
- if (d) {
2617
- const g = n.filter((h) => h.chain === l && h.id !== s);
2618
- if (g.length > 0)
2619
- await r(g[0].id), o(g[0]);
2620
- else {
2621
- const h = n.filter((m) => m.chain !== l);
2622
- if (h.length > 0) {
2623
- const m = h.find((y) => {
2624
- var p;
2625
- return ((p = y.chain) == null ? void 0 : p.toLocaleLowerCase()) === (i == null ? void 0 : i.chainId);
2626
- }) || h[0];
2627
- await r(m.id), o(m);
2628
- }
2629
- }
2630
- e(s);
2631
- } else
2632
- e(s);
2633
- } catch {
2634
- }
2635
- }
2636
- return { handleDisconnectDynamic: a };
2637
- }
2638
- const ps = ({ fromChain: r, toChain: n, connectWalletField: t, handleSolConnecting: e, selectedWalletTab: i, handleShowWallet: o, section: a }) => {
2639
- const { primaryWallet: s, handleLogOut: l, handleUnlinkWallet: d } = he(), g = Xe(), [h, m] = Z(0), [y, p] = Z(!1), [u, M] = Z(), { setShowAuthFlow: I, walletConnectorOptions: Y } = he(), { openWallet: D } = Ct(), v = T((b) => b.configuration), U = T((b) => b.setToDisconnect), { handleSOLDisable: z, updateMostRecentWallet: E } = Te({});
2640
- z(t);
2641
- const P = ke(), { selectWalletOption: W, walletOptions: Q } = Ke(), L = _e(), { handleDisconnectDynamic: A } = Sn();
2642
- te(() => {
2643
- g && y && s !== null && p(!1);
2644
- }, [g, s]);
2645
- const { phantom: B, solflare: w, slope: F, magiceden: ne, backpacksol: _, keplr: de, solanaicon: x, brave: K } = pe, H = {
2646
- solflare: w,
2647
- phantom: B,
2648
- slope: F,
2649
- backpack: _,
2650
- "magic eden (solana)": ne,
2651
- keplr: de,
2652
- "brave browser (solana)": K
2653
- };
2654
- te(() => {
2655
- if (P.length) {
2656
- let b = P.length ? P.filter(($) => $.chain == "SOL") : [], V = Me.keyBy(b, ($) => `${$.connector.name}-SOL`);
2657
- M(V);
2658
- } else
2659
- M();
2660
- }, [P.length]);
2661
- const N = (b) => {
2662
- var V, $, q, re, ee;
2663
- (s == null ? void 0 : s.chain) === "SOL" && b.name == ((V = s == null ? void 0 : s.connector) == null ? void 0 : V.name) ? t == "to" && (U(!1), o()) : (($ = u == null ? void 0 : u[`${b.name}-SOL`]) == null ? void 0 : $.chain) === "SOL" && (u != null && u[`${b.name}-SOL`]) ? (L((q = u == null ? void 0 : u[`${b.name}-SOL`]) == null ? void 0 : q.id), E(u == null ? void 0 : u[`${b.name}-SOL`]), o(), U(!1)) : (D((re = b.key) == null ? void 0 : re.toLowerCase()), p(!0), e(!0, (ee = b.name) == null ? void 0 : ee.toLowerCase()));
2664
- };
2665
- return Q != null && Q.length ? /* @__PURE__ */ c(G, { children: Q.filter((b, V) => {
2666
- var q, re, ee;
2667
- let $ = (s == null ? void 0 : s.chain) === "SOL" && b.name == ((q = s == null ? void 0 : s._connector) == null ? void 0 : q.name) || ((re = u == null ? void 0 : u[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : re.chain) === "SOL" && (u == null ? void 0 : u[`${b == null ? void 0 : b.name}-SOL`]);
2668
- if (((ee = b.chain) == null ? void 0 : ee.toLowerCase()) === "sol" && (b.name == "Solflare" || b.name == "Slope" || b.name == "Phantom" || b.name == "Backpack" || b.name == "Magic Eden (Solana)" || b.name == "Brave Browser (Solana)")) {
2669
- if (a == "connected" && $)
2670
- return !0;
2671
- if (a == "installed" && !$ && (b.isInstalledOnBrowser || b.name == "Phantom" && window.innerWidth < 768))
2672
- return !0;
2673
- if (a == "supported" && !b.isInstalledOnBrowser)
2674
- return !0;
2675
- }
2676
- }).map((b, V) => {
2677
- var q, re, ee, oe, me, ae, ce, le, ue, ve, j, J, Ze;
2678
- let $ = (s == null ? void 0 : s.chain) === "SOL" && b.name == ((q = s == null ? void 0 : s._connector) == null ? void 0 : q.name) || ((re = u == null ? void 0 : u[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : re.chain) === "SOL" && (u == null ? void 0 : u[`${b == null ? void 0 : b.name}-SOL`]);
2679
- return b.isInstalledOnBrowser || $ && a !== "supported" || b.name == "Phantom" && a == "installed" && !$ ? /* @__PURE__ */ c(
2680
- "div",
2681
- {
2682
- style: b.name == ((ee = s == null ? void 0 : s._connector) == null ? void 0 : ee.name) ? {
2683
- ...v == null ? void 0 : v.gradientStyle
2684
- } : {},
2685
- className: `bw-w-[47%] bw-mb-4 ${b.name == "Keplr" && i === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!v.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((oe = s == null ? void 0 : s._connector) == null ? void 0 : oe.name) ? se.gradientbutton : v.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((me = s == null ? void 0 : s._connector) == null ? void 0 : me.name) ? "" : "bw-bg-border-primary"} `,
2686
- children: /* @__PURE__ */ C(
2687
- "div",
2688
- {
2689
- className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(s == null ? void 0 : s.chain) === "SOL" && b.name == ((ae = s == null ? void 0 : s._connector) == null ? void 0 : ae.name) ? " bw-text-text-primary" : "bw-text-text-secondary"}`,
2690
- onClick: () => {
2691
- var fe;
2692
- (ws((fe = b.name) == null ? void 0 : fe.toLowerCase()) || b.name == "Phantom") && N(b);
2693
- },
2694
- children: [
2695
- /* @__PURE__ */ c(
2696
- "div",
2697
- {
2698
- style: (s == null ? void 0 : s.chain) === "SOL" && b.name == ((ce = s == null ? void 0 : s._connector) == null ? void 0 : ce.name) ? {
2699
- ...v == null ? void 0 : v.gradientStyle
2700
- } : {},
2701
- className: ` bw-mb-4 ${b.name == "Keplr" && i === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] bw-absolute bw-right-2 bw-bottom-[-50%] ${!v.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((le = s == null ? void 0 : s._connector) == null ? void 0 : le.name) ? se.gradientbutton : v.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((ue = s == null ? void 0 : s._connector) == null ? void 0 : ue.name) ? "" : "bw-bg-border-primary"} `,
2702
- children: /* @__PURE__ */ C("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2703
- /* @__PURE__ */ c("img", { src: x, width: "", height: "", alt: "img" }),
2704
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "SOL" })
2705
- ] })
2706
- }
2707
- ),
2708
- ((ve = u == null ? void 0 : u[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : ve.chain) === "SOL" && (u != null && u[`${b == null ? void 0 : b.name}-SOL`]) ? /* @__PURE__ */ c(
2709
- "div",
2710
- {
2711
- onClick: async (fe) => {
2712
- var Ie;
2713
- fe.stopPropagation(), P.length === 1 ? l() : A((Ie = u == null ? void 0 : u[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : Ie.id, "SOL");
2714
- },
2715
- className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2716
- children: /* @__PURE__ */ c(
2717
- "div",
2718
- {
2719
- style: {
2720
- boxShadow: v && v.customTheme && ((J = (j = v.customTheme) == null ? void 0 : j.shadow) == null ? void 0 : J.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2721
- },
2722
- className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2723
- children: /* @__PURE__ */ c(ze, { fill: "var(--tw-text-primary)" })
2724
- }
2725
- )
2726
- }
2727
- ) : /* @__PURE__ */ c(G, {}),
2728
- /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2729
- /* @__PURE__ */ c("img", { src: H[(Ze = b.name) == null ? void 0 : Ze.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2730
- /* @__PURE__ */ c("img", { src: x, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "", height: "", alt: "img" })
2731
- ] }),
2732
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: b.name })
2733
- ]
2734
- }
2735
- )
2736
- }
2737
- ) : b.name == "Phantom" && window.innerWidth < 768 ? /* @__PURE__ */ c(G, {}) : /* @__PURE__ */ c(tt, { wallet: b.name, chain: b.chain });
2738
- }) }) : /* @__PURE__ */ c("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-2 bw-text-text-primary", children: /* @__PURE__ */ c(Je, { color: "inherit", size: 14 }) });
2739
- }, ms = ({
2740
- connectWalletField: r,
2741
- fromChain: n,
2742
- toChain: t,
2743
- handleSolConnecting: e,
2744
- portfolio: i,
2745
- selectedWalletTab: o,
2746
- handleShowWallet: a,
2747
- section: s
2748
- }) => /* @__PURE__ */ c(
2749
- ps,
2750
- {
2751
- fromChain: n,
2752
- toChain: t,
2753
- connectWalletField: r,
2754
- handleSolConnecting: e,
2755
- portfolio: i,
2756
- selectedWalletTab: o,
2757
- handleShowWallet: a,
2758
- section: s
2759
- }
2760
- ), ys = "_gradientbutton_dz9ed_1", Ht = {
2761
- gradientbutton: ys
2762
- };
2763
- function xs({ selectedWalletTab: r, handleCosmosConnection: n, setErrorMsg: t, connectWalletField: e, handleShowWallet: i, section: o }) {
2764
- var P, W, Q, L;
2765
- const a = T((A) => A.configuration), s = T((A) => A.fromChain);
2766
- T((A) => A.toChain);
2767
- const l = T((A) => A.setCosmosChainIds);
2768
- Yn();
2769
- const { refetch: d } = Te({}), { connect: g, connectAsync: h } = on({
2770
- onError: (A) => t(A.message)
2771
- }), { disconnect: m } = Zn(), { data: y, isConnected: p, reconnect: u } = qe(), M = T((A) => A.setToDisconnect), { keplr: I, cosmosicon: Y } = pe;
2772
- Vn();
2773
- const { suggestAsync: D } = rn(), { suggestAndConnectAsync: v } = sn(), U = {
2774
- keplr: I
2775
- };
2776
- async function z() {
2777
- try {
2778
- let A = await We();
2779
- if (!A.includes(s == null ? void 0 : s.chainId) && (s == null ? void 0 : s.networkType) == "cosmos") {
2780
- let B = {
2781
- ...s == null ? void 0 : s.chainInfo
2782
- };
2783
- await v({
2784
- chainInfo: B,
2785
- walletType: Se.KEPLR
2786
- });
2787
- let w = await We();
2788
- l(w), await h({
2789
- chainId: w,
2790
- walletType: Se.KEPLR
2791
- }), await d();
2792
- } else
2793
- g({
2794
- chainId: A,
2795
- walletType: Se.KEPLR
2796
- });
2797
- n(!0, "keplr");
2798
- } catch {
2799
- }
2800
- }
2801
- let E = ((P = y == null ? void 0 : y.bech32Address) == null ? void 0 : P.length) && p;
2802
- return o == "connected" && E || o == "installed" && !E && window.keplr ? /* @__PURE__ */ C(
2803
- "div",
2804
- {
2805
- style: E ? {
2806
- ...a == null ? void 0 : a.gradientStyle
2807
- } : {},
2808
- className: `bw-w-[47%] bw-relative bw-mb-4 ${r === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!a.gradientStyle && E ? Ht.gradientbutton : a.gradientStyle && E ? "" : "bw-bg-border-primary"} `,
2809
- onClick: () => {
2810
- e == "to" && p ? (M(!1), i()) : p ? m() : z();
2811
- },
2812
- children: [
2813
- /* @__PURE__ */ C(
2814
- "div",
2815
- {
2816
- className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(W = y == null ? void 0 : y.bech32Address) != null && W.length && p ? " bw-text-text-primary" : "bw-text-text-secondary"}`,
2817
- children: [
2818
- /* @__PURE__ */ c("img", { src: U.keplr, width: 32, height: 32, className: "", alt: "img" }),
2819
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: "Keplr" })
2820
- ]
2821
- }
2822
- ),
2823
- /* @__PURE__ */ c(
2824
- "div",
2825
- {
2826
- style: E ? {
2827
- ...a == null ? void 0 : a.gradientStyle
2828
- } : {},
2829
- className: ` bw-absolute bw-right-2 bw-bottom-[-50%] bw-mb-4 ${r === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!a.gradientStyle && E ? Ht.gradientbutton : a.gradientStyle && E ? "" : "bw-bg-border-primary"} `,
2830
- children: /* @__PURE__ */ C("div", { className: " bw-w-[81px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2831
- /* @__PURE__ */ c("img", { src: Y, width: "21", height: "21", alt: "img" }),
2832
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "COSMOS" })
2833
- ] })
2834
- }
2835
- ),
2836
- p ? /* @__PURE__ */ c("p", { onClick: () => m(), className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]", children: /* @__PURE__ */ c(
2837
- "div",
2838
- {
2839
- style: {
2840
- boxShadow: a && a.customTheme && ((L = (Q = a.customTheme) == null ? void 0 : Q.shadow) == null ? void 0 : L.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2841
- },
2842
- className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%] ",
2843
- children: /* @__PURE__ */ c(ze, { fill: "var(--tw-text-primary)" })
2844
- }
2845
- ) }) : /* @__PURE__ */ c(G, {})
2846
- ]
2847
- }
2848
- ) : !window.keplr && o == "supported" ? /* @__PURE__ */ c(tt, { wallet: "keplr", chain: "cosmos" }) : /* @__PURE__ */ c(G, {});
2849
- }
2850
- const Ms = ({ fromChain: r, toChain: n, connectWalletField: t, handleBitcoinConnecting: e, selectedWalletTab: i, handleShowWallet: o, section: a }) => {
2851
- const { primaryWallet: s, handleLogOut: l, handleUnlinkWallet: d } = he(), g = Xe(), [h, m] = Z(0), [y, p] = Z(!1), [u, M] = Z(), { setShowAuthFlow: I, walletConnectorOptions: Y } = he(), { openWallet: D } = Ct(), v = T((x) => x.configuration), U = T((x) => x.setToDisconnect), { handleBTCDisable: z, updateMostRecentWallet: E } = Te({});
2852
- z(t);
2853
- const P = ke(), { selectWalletOption: W, walletOptions: Q } = Ke(), L = _e(), { handleDisconnectDynamic: A } = Sn();
2854
- te(() => {
2855
- g && y && s !== null && p(!1);
2856
- }, [g, s]);
2857
- const { walleticon: B, phantom: w, bitcoin: F, xverse: ne } = pe, _ = {
2858
- unisat: B,
2859
- okx: B,
2860
- xverse: B,
2861
- leather: B,
2862
- hiro: B,
2863
- "magic eden": B,
2864
- phantom: w,
2865
- "rabby wallet": B,
2866
- "bitget wallet": B,
2867
- xverse: ne
2868
- };
2869
- te(() => {
2870
- if (P.length) {
2871
- let x = P.length ? P.filter((H) => H.chain == "BTC") : [], K = Me.keyBy(x, (H) => `${H.connector.name}-BTC`);
2872
- M(K);
2873
- } else
2874
- M();
2875
- }, [P.length]);
2876
- const de = (x) => {
2877
- var K, H, N, b, V;
2878
- (s == null ? void 0 : s.chain) === "BTC" && x.name == ((K = s == null ? void 0 : s.connector) == null ? void 0 : K.name) ? t == "to" && (U(!1), o()) : ((H = u == null ? void 0 : u[`${x.name}-BTC`]) == null ? void 0 : H.chain) === "BTC" && (u != null && u[`${x.name}-BTC`]) ? (L((N = u == null ? void 0 : u[`${x.name}-BTC`]) == null ? void 0 : N.id), E(u == null ? void 0 : u[`${x.name}-BTC`]), o(), U(!1)) : (D((b = x.key) == null ? void 0 : b.toLowerCase()), p(!0), e(!0, (V = x.name) == null ? void 0 : V.toLowerCase()));
2879
- };
2880
- return Q != null && Q.length ? /* @__PURE__ */ c(G, { children: Q.filter((x, K) => {
2881
- var N, b, V, $, q;
2882
- let H = (s == null ? void 0 : s.chain) === "BTC" && x.name == ((N = s == null ? void 0 : s._connector) == null ? void 0 : N.name) || ((b = u == null ? void 0 : u[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : b.chain) === "BTC" && (u == null ? void 0 : u[`${x == null ? void 0 : x.name}-BTC`]);
2883
- if (((V = x.chain) == null ? void 0 : V.toLowerCase()) === "btc" && (($ = x.name) != null && $.toLowerCase().includes("xverse") || (q = x.name) != null && q.toLowerCase().includes("phantom"))) {
2884
- if (a == "connected" && H)
2885
- return !0;
2886
- if (a == "installed" && !H && x.isInstalledOnBrowser)
2887
- return !0;
2888
- if (a == "supported" && !x.isInstalledOnBrowser)
2889
- return !0;
2890
- }
2891
- }).map((x, K) => {
2892
- var N, b, V, $, q, re, ee, oe, me, ae, ce, le, ue;
2893
- let H = (s == null ? void 0 : s.chain) === "BTC" && x.name == ((N = s == null ? void 0 : s._connector) == null ? void 0 : N.name) || ((b = u == null ? void 0 : u[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : b.chain) === "BTC" && (u == null ? void 0 : u[`${x == null ? void 0 : x.name}-BTC`]);
2894
- return x.isInstalledOnBrowser || H && a !== "supported" ? /* @__PURE__ */ c(
2895
- "div",
2896
- {
2897
- style: x.name == ((V = s == null ? void 0 : s._connector) == null ? void 0 : V.name) ? {
2898
- ...v == null ? void 0 : v.gradientStyle
2899
- } : {},
2900
- className: `bw-w-[47%] bw-mb-4 bw-rounded-md bw-p-[1px] ${!v.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == (($ = s == null ? void 0 : s._connector) == null ? void 0 : $.name) ? se.gradientbutton : v.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == ((q = s == null ? void 0 : s._connector) == null ? void 0 : q.name) ? "" : "bw-bg-border-primary"} `,
2901
- children: /* @__PURE__ */ C("div", { className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(s == null ? void 0 : s.chain) === "BTC" && x.name == ((re = s == null ? void 0 : s._connector) == null ? void 0 : re.name) ? " bw-text-text-primary" : "bw-text-text-secondary"}`, onClick: () => de(x), children: [
2902
- /* @__PURE__ */ c(
2903
- "div",
2904
- {
2905
- style: (s == null ? void 0 : s.chain) === "BTC" && x.name == ((ee = s == null ? void 0 : s._connector) == null ? void 0 : ee.name) ? {
2906
- ...v == null ? void 0 : v.gradientStyle
2907
- } : {},
2908
- className: ` bw-mb-4 bw-rounded-md bw-p-[1px] bw-absolute bw-right-2 bw-bottom-[-50%] ${!v.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == ((oe = s == null ? void 0 : s._connector) == null ? void 0 : oe.name) ? se.gradientbutton : v.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == ((me = s == null ? void 0 : s._connector) == null ? void 0 : me.name) ? "" : "bw-bg-border-primary"} `,
2909
- children: /* @__PURE__ */ C("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2910
- /* @__PURE__ */ c("img", { src: F, width: "16", height: "16", alt: "btc" }),
2911
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "BTC" })
2912
- ] })
2913
- }
2914
- ),
2915
- ((ae = u == null ? void 0 : u[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : ae.chain) === "BTC" && (u != null && u[`${x == null ? void 0 : x.name}-BTC`]) ? /* @__PURE__ */ c(
2916
- "div",
2917
- {
2918
- onClick: async (ve) => {
2919
- var j;
2920
- ve.stopPropagation(), P.length === 1 ? l() : A((j = u == null ? void 0 : u[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : j.id, "BTC");
2921
- },
2922
- className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2923
- children: /* @__PURE__ */ c(
2924
- "div",
2925
- {
2926
- style: {
2927
- boxShadow: v && v.customTheme && ((le = (ce = v.customTheme) == null ? void 0 : ce.shadow) == null ? void 0 : le.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2928
- },
2929
- className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2930
- children: /* @__PURE__ */ c(ze, { fill: "var(--tw-text-primary)" })
2931
- }
2932
- )
2933
- }
2934
- ) : /* @__PURE__ */ c(G, {}),
2935
- /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2936
- /* @__PURE__ */ c("img", { src: _[(ue = x.name) == null ? void 0 : ue.toLowerCase()] || B, width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2937
- /* @__PURE__ */ c("img", { src: F, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "16", height: "16", alt: "btc" })
2938
- ] }),
2939
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: x.name })
2940
- ] })
2941
- },
2942
- K
2943
- ) : /* @__PURE__ */ c(tt, { wallet: x.name, chain: "bitcoin" }, K);
2944
- }) }) : /* @__PURE__ */ c("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-2 bw-text-text-primary", children: /* @__PURE__ */ c(Je, { color: "inherit", size: 14 }) });
2945
- };
2946
- function vs({ handleTronConnection: r, connectWalletField: n, fromChain: t, toChain: e, handleShowWallet: i, selectedWalletTab: o, section: a }) {
2947
- const { wallets: s, select: l, connected: d, address: g, connect: h, wallet: m, disconnect: y } = De(), { handleTRONDisable: p } = Te({});
2948
- p(n);
2949
- const u = T((D) => D.configuration);
2950
- T((D) => D.setToDisconnect);
2951
- function M(D) {
2952
- var v;
2953
- try {
2954
- m ? D.adapter.connect() : l(D.adapter.name);
2955
- } catch {
2956
- }
2957
- r(!0, (v = D.adapter) == null ? void 0 : v.name);
2958
- }
2959
- const { tronLink: I } = pe, Y = {
2960
- tronlink: I
2961
- };
2962
- return /* @__PURE__ */ c(G, { children: s.map((D, v) => {
2963
- var P, W, Q, L, A, B, w;
2964
- const U = ((P = D.adapter._readyState) == null ? void 0 : P.toLowerCase()) === "found", z = D.state === "Connected" && U, E = D.adapter.name === ((W = m == null ? void 0 : m.adapter) == null ? void 0 : W.name);
2965
- return a === "connected" && !z || a === "installed" && z ? null : a === "supported" && !U ? /* @__PURE__ */ c(G, {}) : a === "supported" && U ? /* @__PURE__ */ c(G, {}) : /* @__PURE__ */ c(
2966
- "div",
2967
- {
2968
- style: z && E ? {
2969
- ...u == null ? void 0 : u.gradientStyle
2970
- } : {},
2971
- className: `bw-w-[47%] bw-relative bw-mb-4 ${o === "Other" ? "" : " "} bw-rounded-md bw-p-[1px] ${!u.gradientStyle && z && E ? se.gradientbutton : u.gradientStyle && z && E ? "" : "bw-bg-border-primary"} `,
2972
- children: /* @__PURE__ */ C("div", { onClick: () => M(D), style: { cursor: "pointer" }, className: `bw-w-full bw-bg-background-container bw-font-medium hover:bw-font-bold hover:bw-text-text-primary hover:bw-shadow-sm bw-flex bw-gap-x-3 bw-px-3 bw-justify-start bw-items-center bw-h-[56px] bw-relative bw-rounded-md bw-cursor-pointer ${z && E ? " bw-text-text-primary" : "bw-text-text-secondary"}`, children: [
2973
- /* @__PURE__ */ c(
2974
- "div",
2975
- {
2976
- style: z && E && D.adapter.name === ((Q = m == null ? void 0 : m.adapter) == null ? void 0 : Q.name) ? {
2977
- ...u == null ? void 0 : u.gradientStyle
2978
- } : {},
2979
- className: `bw-absolute bw-right-2 bw-bottom-[-50%] bw-mb-4 ${o === "Other" ? "" : " "} bw-rounded-md bw-p-[1px] ${!u.gradientStyle && z && E ? se.gradientbutton : u.gradientStyle && z && E ? "" : "bw-bg-border-primary"} `,
2980
- children: /* @__PURE__ */ C("div", { className: "bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1", children: [
2981
- /* @__PURE__ */ c("img", { src: "https://cdn-icons-png.flaticon.com/512/12114/12114250.png", width: 16, height: 16, className: "bw-w-[16px] bw-h-[16px] bw-rounded-md", alt: "img" }),
2982
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "TRON" })
2983
- ] })
2984
- }
2985
- ),
2986
- z ? /* @__PURE__ */ c(
2987
- "div",
2988
- {
2989
- onClick: (F) => {
2990
- F.stopPropagation(), D.adapter.disconnect();
2991
- },
2992
- className: "bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2993
- children: /* @__PURE__ */ c(
2994
- "div",
2995
- {
2996
- style: {
2997
- boxShadow: u && u.customTheme && ((A = (L = u.customTheme) == null ? void 0 : L.shadow) == null ? void 0 : A.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2998
- },
2999
- className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
3000
- children: /* @__PURE__ */ c(ze, { fill: "var(--tw-text-primary)" })
3001
- }
3002
- )
3003
- }
3004
- ) : /* @__PURE__ */ c(G, {}),
3005
- /* @__PURE__ */ c("div", { className: "bw-w-max bw-relative", children: Y[(w = (B = D == null ? void 0 : D.adapter) == null ? void 0 : B.name) == null ? void 0 : w.toLowerCase()] ? /* @__PURE__ */ c("img", { src: Y[D.adapter.name.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }) : /* @__PURE__ */ c("div", { className: "bw-w-[32px] bw-h-[32px] bw-rounded-md bw-bg-background-secondary" }) }),
3006
- /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max", children: D.adapter.name })
3007
- ] })
3008
- },
3009
- v
3010
- );
3011
- }) });
3012
- }
3013
- function ht({ selectedWalletTab: r, connectWalletField: n, handleShowWallet: t, handleConnect: e, setSelectedConnector: i, setSelectedWallet: o, setShowLoading: a, portfolio: s, fromChain: l, toChain: d, handleSolConnecting: g, handleCosmosConnection: h, handleSuiConnecting: m, handleBitcoinConnecting: y, setErrorMsg: p, section: u, handleTronConnection: M }) {
3014
- const I = T((Y) => Y.isExternalProvider);
3015
- return /* @__PURE__ */ C("div", { className: " bw-mx-auto bw-px-2 bw-w-full bw-flex bw-justify-between bw-flex-wrap ", children: [
3016
- I.evm ? /* @__PURE__ */ c(G, {}) : /* @__PURE__ */ c(bs, { section: u, selectedWalletTab: r, styles: se, connectWalletField: n, handleShowWallet: t, setSelectedConnector: i, setSelectedWallet: o, handleConnect: e, setShowLoading: a }),
3017
- I.solana ? /* @__PURE__ */ c(G, {}) : r == "All" || r == "SVM" ? /* @__PURE__ */ c(ms, { section: u, handleShowWallet: t, fromChain: l, toChain: d, connectWalletField: n, handleSolConnecting: g, portfolio: s, selectedWalletTab: r }) : /* @__PURE__ */ c(G, {}),
3018
- r == "All" || r == "Other" ? /* @__PURE__ */ c(Ms, { section: u, handleShowWallet: t, fromChain: l, toChain: d, connectWalletField: n, handleBitcoinConnecting: y, portfolio: s, selectedWalletTab: r }) : /* @__PURE__ */ c(G, {}),
3019
- r == "All" || r == "Cosmos" ? /* @__PURE__ */ c(xs, { selectedWalletTab: r, handleCosmosConnection: h, setErrorMsg: p, connectWalletField: n, handleShowWallet: t, section: u }) : /* @__PURE__ */ c(G, {}),
3020
- r == "All" || r == "Other" ? /* @__PURE__ */ c(vs, { selectedWalletTab: r, handleTronConnection: M, setErrorMsg: p, connectWalletField: n, handleShowWallet: t, section: u }) : /* @__PURE__ */ c(G, {})
3021
- ] });
3022
- }
3023
- function Is({ selectedWalletTab: r }) {
3024
- const { connector: n } = _t(), t = T.getState().isExternalProvider, { data: e, isConnected: i } = qe(), { primaryWallet: o } = he(), { walletOptions: a } = Ke(), [s, l] = Z(!1), [d, g] = Z(!1), [h, m] = Z(!1), y = n && !t.evm, p = (o == null ? void 0 : o.address) && !t.solana, u = T((z) => z.isEvmSupportAvailable), { connected: M } = De(), I = ke();
3025
- function Y(z) {
3026
- return I.some((E) => {
3027
- var P;
3028
- return ((P = E.chain) == null ? void 0 : P.toLowerCase()) === z;
3029
- });
3030
- }
3031
- function D(z) {
3032
- let E = Me.keyBy(I, "key"), P = z === "sol" ? ["Solflare", "Phantom", "Slope", "Backpack", "Brave Browser (Solana)"] : ["Phantom", "Xverse"];
3033
- return !!a.filter((L) => {
3034
- var A;
3035
- return P.includes(L.name) && ((A = L.chain) == null ? void 0 : A.toLowerCase()) === z;
3036
- }).find((L) => L.isInstalledOnBrowser && !E[L.key]);
3037
- }
3038
- function v(z) {
3039
- let E = Me.keyBy(I, "key"), P = z === "sol" ? ["Solflare", "Phantom", "Slope", "Backpack", "Brave Browser (Solana)"] : ["Phantom", "Xverse"];
3040
- return !!a.filter((L) => {
3041
- var A;
3042
- return P.includes(L.name) && ((A = L.chain) == null ? void 0 : A.toLowerCase()) === z;
3043
- }).find((L) => !L.isInstalledOnBrowser && !E[L.key]);
3044
- }
3045
- function U(z) {
3046
- switch (z) {
3047
- case "All":
3048
- l(y || p || i || M), g(!t.evm || !i && window.keplr || D("sol") && !(t != null && t.solana) || D("btc") && !(t != null && t.solana)), m(!window.keplr || u && !t.evm || v("sol") && !(t != null && t.solana) || v("btc") && !(t != null && t.solana));
3049
- break;
3050
- case "EVM":
3051
- l(y), g(!t.evm);
3052
- break;
3053
- case "SVM":
3054
- l(Y("sol") && !t.solana), g(D("sol") && !t.solana), m(v("sol") && !(t != null && t.solana));
3055
- break;
3056
- case "Cosmos":
3057
- l(i), g(!i && window.keplr), m(!i && !window.keplr);
3058
- break;
3059
- default:
3060
- l(Y("btc") && !t.solana || M), g(
3061
- D("btc") && !t.solana
3062
- // || !isTronConnected
3063
- ), m(v("btc") && !(t != null && t.solana));
3064
- break;
3065
- }
3066
- }
3067
- return te(() => {
3068
- U(r);
3069
- }, [r, n, o == null ? void 0 : o.address, t, M, i, I, a]), { isWalletConnectedIndicator: s, isWalletInstalledIndicator: d, isSupportedIndicator: h };
3070
- }
3071
- function Ns({ handleShowWallet: r, connectWalletField: n, portfolio: t, classNames: e, handleRecentSelectedWallet: i }) {
3072
- const o = qt(), { connectAsync: a, data: s, isSuccess: l } = Xt({
3073
- config: o
3074
- }), d = T((j) => j.fromChain), g = T((j) => j.toChain), { primaryWallet: h } = he(), m = Xe(), [y, p] = Z(""), [u, M] = Z(!0), [I, Y] = Z(), [D, v] = Z(!1), [U, z] = Z(!1), [E, P] = Z(!1), [W, Q] = Z(!1), [L, A] = Z(!1), [B, w] = Z(""), { connected: F, address: ne } = De(), [_, de] = Z("All"), { data: x, isConnected: K } = qe(), { switchAccountAsync: H } = Kt(), N = T((j) => j.configuration);
3075
- ke();
3076
- const { walletOptions: b } = Ke();
3077
- T((j) => j.isEvmSupportAvailable);
3078
- const { connected: V } = De(), { isWalletConnectedIndicator: $, isWalletInstalledIndicator: q, isSupportedIndicator: re } = Is({ selectedWalletTab: _ });
3079
- async function ee(j, J) {
3080
- w("");
3081
- let Ze = J ? H : a;
3082
- try {
3083
- let fe = await Ze({ connector: j });
3084
- J && r(), w((Ie) => (Ie != null && Ie.length && fe && r(), ""));
3085
- } catch (fe) {
3086
- w(fe.details || fe.message || "");
3087
- }
3088
- }
3089
- te(() => {
3090
- let j;
3091
- return s && l && (j = setTimeout(() => {
3092
- r();
3093
- }, 1e3), !t && i("evm")), () => {
3094
- clearTimeout(j);
3095
- };
3096
- }, [l, s]);
3097
- function oe(j, J) {
3098
- w(""), J && p(J), v(j), M(!1);
3099
- }
3100
- function me() {
3101
- M(!0), v(!1), z(!1), Q(!1), A(!1);
3102
- }
3103
- function ae(j, J) {
3104
- w(""), J && p(J), z(j), M(!1);
3105
- }
3106
- function ce(j, J) {
3107
- w(""), J && p(J), P(j), M(!1);
3108
- }
3109
- function le(j, J) {
3110
- w(""), J && p(J), Q(j), M(!1);
3111
- }
3112
- function ue(j, J) {
3113
- w(""), J && p(J), A(j), M(!1);
3114
- }
3115
- te(() => {
3116
- let j;
3117
- return m && h !== null && D && (j = setTimeout(() => {
3118
- r(), oe(!1);
3119
- }, 1e3), !t && i("sol")), () => {
3120
- clearTimeout(j);
3121
- };
3122
- }, [m, h, D]), te(() => {
3123
- let j;
3124
- return F && ne && U && (j = setTimeout(() => {
3125
- r(), ae(!1);
3126
- }, 1e3), !t && i("tron")), () => {
3127
- clearTimeout(j);
3128
- };
3129
- }, [F, ne, U]), te(() => {
3130
- let j;
3131
- return K && (x != null && x.bech32Address) && E && (j = setTimeout(() => {
3132
- r(), ce(!1);
3133
- }, 1e3), !t && i("cosmos")), () => {
3134
- clearTimeout(j);
3135
- };
3136
- }, [K, x == null ? void 0 : x.bech32Address, E]), te(() => {
3137
- let j;
3138
- return m && h !== null && W && (j = setTimeout(() => {
3139
- r(), le(!1);
3140
- }, 1e3), !t && i("sui")), () => {
3141
- clearTimeout(j);
3142
- };
3143
- }, [m, h, W]), te(() => {
3144
- let j;
3145
- return m && h !== null && L && (j = setTimeout(() => {
3146
- r(), ue(!1);
3147
- }, 1e3), !t && i("btc")), () => {
3148
- clearTimeout(j);
3149
- };
3150
- }, [m, h, L]);
3151
- function ve(j) {
3152
- de(j);
3153
- }
3154
- return u ? /* @__PURE__ */ C("div", { className: "", children: [
3155
- /* @__PURE__ */ C("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
3156
- /* @__PURE__ */ c("button", { onClick: r, className: "bw-absolute bw-left-0 bw-top-[25%]", children: /* @__PURE__ */ c(tn, { fill: "var(--tw-text-secondary)" }) }),
3157
- /* @__PURE__ */ c("div", { className: "bw-text-lg bw-font-medium bw-text-text-secondary", children: "Connect Wallet" }),
3158
- /* @__PURE__ */ c("button", { onClick: r, className: "bw-absolute bw-right-0 bw-top-[25%]", children: /* @__PURE__ */ c(nn, { fill: "var(--tw-text-secondary)" }) })
3159
- ] }),
3160
- /* @__PURE__ */ c(fs, { selectedWalletTab: _, handleWalletTab: ve }),
3161
- /* @__PURE__ */ C("div", { className: `${e || "bw-h-[400px] "} bw-w-full bw-relative bw-overflow-y-auto`, children: [
3162
- /* @__PURE__ */ C("div", { children: [
3163
- $ ? /* @__PURE__ */ C("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3164
- /* @__PURE__ */ C("p", { style: { ...N == null ? void 0 : N.gradientStyle }, className: ` bw-bg-clip-text bw-flex bw-items-center bw-gap-x-1 bw-text-sm bw-font-medium bw-text-transparent ${N != null && N.gradientStyle ? "" : se.gradientbutton} `, children: [
3165
- /* @__PURE__ */ c("div", { style: { ...N == null ? void 0 : N.gradientStyle }, className: `bw-w-[10px] bw-rounded-[50%] ${N != null && N.gradientStyle ? "" : se.gradientbutton} bw-bg-text-greentext bw-h-[10px]` }),
3166
- " Connected"
3167
- ] }),
3168
- /* @__PURE__ */ c("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3169
- ] }) : /* @__PURE__ */ c(G, {}),
3170
- /* @__PURE__ */ c(
3171
- ht,
3172
- {
3173
- selectedWalletTab: _,
3174
- connectWalletField: n,
3175
- handleShowWallet: r,
3176
- handleConnect: ee,
3177
- setSelectedConnector: Y,
3178
- setErrorMsg: w,
3179
- setSelectedWallet: p,
3180
- setShowLoading: M,
3181
- portfolio: t,
3182
- fromChain: d,
3183
- toChain: g,
3184
- handleSolConnecting: oe,
3185
- handleCosmosConnection: ce,
3186
- handleTronConnection: ae,
3187
- handleSuiConnecting: le,
3188
- handleBitcoinConnecting: ue,
3189
- section: "connected"
3190
- }
3191
- )
3192
- ] }),
3193
- /* @__PURE__ */ C("div", { children: [
3194
- q ? /* @__PURE__ */ C("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3195
- /* @__PURE__ */ c("p", { className: "bw-text-sm bw-font-medium bw-w-max bw-text-text-secondary ", children: "Installed" }),
3196
- /* @__PURE__ */ c("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3197
- ] }) : /* @__PURE__ */ c(G, {}),
3198
- /* @__PURE__ */ c(
3199
- ht,
3200
- {
3201
- selectedWalletTab: _,
3202
- connectWalletField: n,
3203
- handleShowWallet: r,
3204
- handleConnect: ee,
3205
- setSelectedConnector: Y,
3206
- setErrorMsg: w,
3207
- setSelectedWallet: p,
3208
- setShowLoading: M,
3209
- portfolio: t,
3210
- fromChain: d,
3211
- toChain: g,
3212
- handleSolConnecting: oe,
3213
- handleCosmosConnection: ce,
3214
- handleTronConnection: ae,
3215
- handleSuiConnecting: le,
3216
- handleBitcoinConnecting: ue,
3217
- section: "installed"
3218
- }
3219
- )
3220
- ] }),
3221
- /* @__PURE__ */ C("div", { children: [
3222
- re ? /* @__PURE__ */ C("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3223
- /* @__PURE__ */ c("p", { className: "bw-text-sm bw-font-medium bw-w-max bw-text-text-secondary ", children: "Supported" }),
3224
- /* @__PURE__ */ c("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3225
- ] }) : /* @__PURE__ */ c(G, {}),
3226
- /* @__PURE__ */ c(
3227
- ht,
3228
- {
3229
- selectedWalletTab: _,
3230
- connectWalletField: n,
3231
- handleShowWallet: r,
3232
- handleConnect: ee,
3233
- setSelectedConnector: Y,
3234
- setErrorMsg: w,
3235
- setSelectedWallet: p,
3236
- setShowLoading: M,
3237
- portfolio: t,
3238
- fromChain: d,
3239
- toChain: g,
3240
- handleSolConnecting: oe,
3241
- handleCosmosConnection: ce,
3242
- handleTronConnection: ae,
3243
- handleSuiConnecting: le,
3244
- handleBitcoinConnecting: ue,
3245
- section: "supported"
3246
- }
3247
- )
3248
- ] })
3249
- ] }),
3250
- n == "to" ? /* @__PURE__ */ c(hs, { portfolio: t, handleShowWallet: r, section: "connected" }) : /* @__PURE__ */ c(G, {})
3251
- ] }) : /* @__PURE__ */ c(us, { selectedWallet: y, selectedConnector: I, handleConnect: ee, handleOtherWalletConnecting: me, isSolConnecting: D, isTronConnecting: U, isCosmosonnecting: E, isSuiConnecting: W, isBitcoinConnecting: L, isSuccess: l, data: s, evmError: B });
3252
- }
3253
- const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3254
- __proto__: null,
3255
- default: Ns
3256
- }, Symbol.toStringTag, { value: "Module" }));
3257
- export {
3258
- Ns as S,
3259
- cn as T,
3260
- Bs as i
3261
- };