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