@rhinestone/deposit-modal 0.0.0-dev-20260824103554 → 0.0.0-dev-20260824120709
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/ClaimModal-7HBLM5GD.mjs +11 -0
- package/dist/ClaimModal-N77HAVAZ.cjs +11 -0
- package/dist/{DepositModalReown-TNWNENGT.mjs → DepositModalReown-6HKARPNR.mjs} +31 -13
- package/dist/{DepositModalReown-JJC37VCL.cjs → DepositModalReown-THNDOK6J.cjs} +44 -26
- package/dist/{QRCode-WUC652SH.mjs → QRCode-5RGIZZHL.mjs} +1 -1
- package/dist/{QRCode-5DXFNKI2.cjs → QRCode-JKXG4RHN.cjs} +2 -2
- package/dist/WithdrawModal-G4GREXVT.mjs +10 -0
- package/dist/WithdrawModal-O7USDM3J.cjs +10 -0
- package/dist/{chunk-RLGIGVQV.cjs → chunk-2JAHQ57P.cjs} +66 -66
- package/dist/{chunk-RSZSFKN7.mjs → chunk-2JWMLGNO.mjs} +1 -1
- package/dist/{chunk-7ED22CNI.cjs → chunk-4GZLW63Q.cjs} +1 -1
- package/dist/{chunk-DYZHRL5G.cjs → chunk-5CYWM2NF.cjs} +61 -41
- package/dist/{chunk-RUFL6U4N.cjs → chunk-673AD3RK.cjs} +62 -63
- package/dist/{chunk-IXZB2YKS.mjs → chunk-6WRDIWOA.mjs} +2 -2
- package/dist/{chunk-AWHML72E.mjs → chunk-7Y7CRKJN.mjs} +27 -7
- package/dist/{chunk-NXN7DD7N.cjs → chunk-CVE332IH.cjs} +270 -271
- package/dist/{chunk-3MKUEORL.mjs → chunk-EHPDLD6T.mjs} +1 -1
- package/dist/{chunk-HCIREEDB.mjs → chunk-G3H4K3D3.mjs} +7 -8
- package/dist/{chunk-OMFYDYOZ.cjs → chunk-GIZESEXS.cjs} +8 -8
- package/dist/{chunk-RDFRXBJ5.cjs → chunk-IQEKNVYL.cjs} +52 -51
- package/dist/{chunk-HNBS5S5Y.mjs → chunk-QJX2MABZ.mjs} +5 -4
- package/dist/{chunk-GB42DI7E.mjs → chunk-VENJEMWV.mjs} +4 -5
- package/dist/{chunk-SY2TMFSV.cjs → chunk-YB5TPGV3.cjs} +3 -3
- package/dist/{chunk-2EEULN4S.mjs → chunk-ZQ23CH7P.mjs} +1 -1
- package/dist/claim.cjs +6 -6
- package/dist/claim.d.cts +2 -2
- package/dist/claim.d.ts +2 -2
- package/dist/claim.mjs +5 -5
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +5 -5
- package/dist/embed.cjs +19 -19
- package/dist/embed.d.cts +22 -1
- package/dist/embed.d.ts +22 -1
- package/dist/embed.mjs +9 -9
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +8 -8
- package/dist/styles.css +6 -0
- package/dist/{types-B548vUOe.d.ts → types-B89I8_8H.d.ts} +7 -1
- package/dist/{types-Dt8WVIKe.d.cts → types-nnDR4tqA.d.cts} +7 -1
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
- package/dist/ClaimModal-67RRFPT6.mjs +0 -11
- package/dist/ClaimModal-BQY6FNSR.cjs +0 -11
- package/dist/WithdrawModal-NZ2UIRL4.mjs +0 -10
- package/dist/WithdrawModal-X5KJ7D3B.cjs +0 -10
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkIQEKNVYLcjs = require('./chunk-IQEKNVYL.cjs');
|
|
4
|
+
require('./chunk-GIZESEXS.cjs');
|
|
5
|
+
require('./chunk-YB5TPGV3.cjs');
|
|
6
|
+
require('./chunk-5CYWM2NF.cjs');
|
|
7
|
+
require('./chunk-4GZLW63Q.cjs');
|
|
8
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.ClaimModal = _chunkIQEKNVYLcjs.ClaimModal;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-G3H4K3D3.mjs";
|
|
4
|
+
import "./chunk-ZQ23CH7P.mjs";
|
|
5
|
+
import "./chunk-EHPDLD6T.mjs";
|
|
6
6
|
import {
|
|
7
|
+
followSystemAppearance,
|
|
7
8
|
isUnsupportedChainSwitchError,
|
|
8
9
|
peekRuntimeChains,
|
|
9
10
|
primeRuntimeChains,
|
|
11
|
+
resolveThemeMode,
|
|
10
12
|
rpcUrlFor,
|
|
11
13
|
useStableRpcUrls
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-7Y7CRKJN.mjs";
|
|
15
|
+
import "./chunk-2JWMLGNO.mjs";
|
|
14
16
|
import "./chunk-RN5VKWI6.mjs";
|
|
15
17
|
import {
|
|
16
18
|
SUPPORTED_CHAIN_IDS,
|
|
@@ -85,6 +87,23 @@ function getAppKitNetwork(chainId) {
|
|
|
85
87
|
return APPKIT_NETWORK_BY_ID[chainId];
|
|
86
88
|
}
|
|
87
89
|
|
|
90
|
+
// src/core/reown-theme.ts
|
|
91
|
+
function mapTheme(theme) {
|
|
92
|
+
const themeMode = resolveThemeMode(theme?.mode) === "light" ? "light" : "dark";
|
|
93
|
+
const themeVariables = {
|
|
94
|
+
"--apkt-accent": theme?.ctaColor
|
|
95
|
+
};
|
|
96
|
+
return { themeMode, themeVariables };
|
|
97
|
+
}
|
|
98
|
+
function setAppKitTheme(appKit, theme) {
|
|
99
|
+
const { themeMode, themeVariables } = mapTheme(theme);
|
|
100
|
+
try {
|
|
101
|
+
appKit?.setThemeMode(themeMode);
|
|
102
|
+
appKit?.setThemeVariables(themeVariables);
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
88
107
|
// src/core/reown.tsx
|
|
89
108
|
import { jsx } from "react/jsx-runtime";
|
|
90
109
|
function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
@@ -105,14 +124,6 @@ var cachedAdapter = null;
|
|
|
105
124
|
var cachedAdapterKey = null;
|
|
106
125
|
var wagmiConfiguredEvmIds = /* @__PURE__ */ new Set();
|
|
107
126
|
var runtimeNetworkById = /* @__PURE__ */ new Map();
|
|
108
|
-
function mapTheme(theme) {
|
|
109
|
-
const themeMode = theme?.mode === "light" ? "light" : "dark";
|
|
110
|
-
const themeVariables = {};
|
|
111
|
-
if (theme?.ctaColor) {
|
|
112
|
-
themeVariables["--apkt-accent"] = theme.ctaColor;
|
|
113
|
-
}
|
|
114
|
-
return { themeMode, themeVariables };
|
|
115
|
-
}
|
|
116
127
|
function mergeNetworks(runtime) {
|
|
117
128
|
const byId = /* @__PURE__ */ new Map();
|
|
118
129
|
for (const network of EVM_NETWORKS) byId.set(Number(network.id), network);
|
|
@@ -203,6 +214,13 @@ function ReownWalletProvider({
|
|
|
203
214
|
active = false;
|
|
204
215
|
};
|
|
205
216
|
}, [backendUrl, overrides]);
|
|
217
|
+
useEffect(() => {
|
|
218
|
+
setAppKitTheme(modal, theme);
|
|
219
|
+
return followSystemAppearance(
|
|
220
|
+
theme?.mode,
|
|
221
|
+
() => setAppKitTheme(modal, theme)
|
|
222
|
+
);
|
|
223
|
+
}, [theme, state.ready]);
|
|
206
224
|
if (!state.ready) return null;
|
|
207
225
|
const runtimeChains = state.chains;
|
|
208
226
|
const adapter = getOrCreateAdapter(
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkCVE332IHcjs = require('./chunk-CVE332IH.cjs');
|
|
4
|
+
require('./chunk-2JAHQ57P.cjs');
|
|
5
|
+
require('./chunk-YB5TPGV3.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunk5CYWM2NFcjs = require('./chunk-5CYWM2NF.cjs');
|
|
15
|
+
require('./chunk-4GZLW63Q.cjs');
|
|
14
16
|
require('./chunk-DW2EQA2U.cjs');
|
|
15
17
|
|
|
16
18
|
|
|
@@ -85,34 +87,43 @@ function getAppKitNetwork(chainId) {
|
|
|
85
87
|
return APPKIT_NETWORK_BY_ID[chainId];
|
|
86
88
|
}
|
|
87
89
|
|
|
90
|
+
// src/core/reown-theme.ts
|
|
91
|
+
function mapTheme(theme) {
|
|
92
|
+
const themeMode = _chunk5CYWM2NFcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
|
|
93
|
+
const themeVariables = {
|
|
94
|
+
"--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
|
|
95
|
+
};
|
|
96
|
+
return { themeMode, themeVariables };
|
|
97
|
+
}
|
|
98
|
+
function setAppKitTheme(appKit, theme) {
|
|
99
|
+
const { themeMode, themeVariables } = mapTheme(theme);
|
|
100
|
+
try {
|
|
101
|
+
_optionalChain([appKit, 'optionalAccess', _3 => _3.setThemeMode, 'call', _4 => _4(themeMode)]);
|
|
102
|
+
_optionalChain([appKit, 'optionalAccess', _5 => _5.setThemeVariables, 'call', _6 => _6(themeVariables)]);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
88
107
|
// src/core/reown.tsx
|
|
89
108
|
var _jsxruntime = require('react/jsx-runtime');
|
|
90
109
|
function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
|
|
91
110
|
const transports = {};
|
|
92
111
|
for (const network of networks) {
|
|
93
112
|
const id = Number(network.id);
|
|
94
|
-
transports[id] = _viem.http.call(void 0,
|
|
113
|
+
transports[id] = _viem.http.call(void 0, _chunk5CYWM2NFcjs.rpcUrlFor.call(void 0, rpcUrls, id));
|
|
95
114
|
}
|
|
96
115
|
return transports;
|
|
97
116
|
}
|
|
98
117
|
function getEvmRpcFingerprint(rpcUrls, networks) {
|
|
99
118
|
return networks.map((network) => {
|
|
100
119
|
const id = Number(network.id);
|
|
101
|
-
return `${id}=${_nullishCoalesce(
|
|
120
|
+
return `${id}=${_nullishCoalesce(_chunk5CYWM2NFcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
|
|
102
121
|
}).join("|");
|
|
103
122
|
}
|
|
104
123
|
var cachedAdapter = null;
|
|
105
124
|
var cachedAdapterKey = null;
|
|
106
125
|
var wagmiConfiguredEvmIds = /* @__PURE__ */ new Set();
|
|
107
126
|
var runtimeNetworkById = /* @__PURE__ */ new Map();
|
|
108
|
-
function mapTheme(theme) {
|
|
109
|
-
const themeMode = _optionalChain([theme, 'optionalAccess', _ => _.mode]) === "light" ? "light" : "dark";
|
|
110
|
-
const themeVariables = {};
|
|
111
|
-
if (_optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])) {
|
|
112
|
-
themeVariables["--apkt-accent"] = theme.ctaColor;
|
|
113
|
-
}
|
|
114
|
-
return { themeMode, themeVariables };
|
|
115
|
-
}
|
|
116
127
|
function mergeNetworks(runtime) {
|
|
117
128
|
const byId = /* @__PURE__ */ new Map();
|
|
118
129
|
for (const network of EVM_NETWORKS) byId.set(Number(network.id), network);
|
|
@@ -156,7 +167,7 @@ function getOrCreateAdapter(projectId, enableSolana, theme, rpcUrls, runtimeChai
|
|
|
156
167
|
runtimeNetworkById.set(chain.id, chain);
|
|
157
168
|
try {
|
|
158
169
|
appKit.addNetwork("eip155", chain);
|
|
159
|
-
} catch (
|
|
170
|
+
} catch (e2) {
|
|
160
171
|
}
|
|
161
172
|
}
|
|
162
173
|
return cachedAdapter;
|
|
@@ -177,7 +188,7 @@ function ReownWalletProvider({
|
|
|
177
188
|
backendUrl,
|
|
178
189
|
children
|
|
179
190
|
}) {
|
|
180
|
-
const rpcUrls =
|
|
191
|
+
const rpcUrls = _chunk5CYWM2NFcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
181
192
|
const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
|
|
182
193
|
const overrides = _react.useMemo.call(void 0, () => {
|
|
183
194
|
if (!rpcUrls) return void 0;
|
|
@@ -189,20 +200,27 @@ function ReownWalletProvider({
|
|
|
189
200
|
return out;
|
|
190
201
|
}, [rpcUrls]);
|
|
191
202
|
const [state, setState] = _react.useState.call(void 0, () => {
|
|
192
|
-
const primed =
|
|
203
|
+
const primed = _chunk5CYWM2NFcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
193
204
|
return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
|
|
194
205
|
});
|
|
195
206
|
_react.useEffect.call(void 0, () => {
|
|
196
207
|
let active = true;
|
|
197
|
-
const primed =
|
|
208
|
+
const primed = _chunk5CYWM2NFcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
|
|
198
209
|
setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
|
|
199
|
-
|
|
210
|
+
_chunk5CYWM2NFcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
|
|
200
211
|
if (active) setState({ ready: true, chains });
|
|
201
212
|
});
|
|
202
213
|
return () => {
|
|
203
214
|
active = false;
|
|
204
215
|
};
|
|
205
216
|
}, [backendUrl, overrides]);
|
|
217
|
+
_react.useEffect.call(void 0, () => {
|
|
218
|
+
setAppKitTheme(_react3.modal, theme);
|
|
219
|
+
return _chunk5CYWM2NFcjs.followSystemAppearance.call(void 0,
|
|
220
|
+
_optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
|
|
221
|
+
() => setAppKitTheme(_react3.modal, theme)
|
|
222
|
+
);
|
|
223
|
+
}, [theme, state.ready]);
|
|
206
224
|
if (!state.ready) return null;
|
|
207
225
|
const runtimeChains = state.chains;
|
|
208
226
|
const adapter = getOrCreateAdapter(
|
|
@@ -224,8 +242,8 @@ function useReownWalletSession() {
|
|
|
224
242
|
const publicClient = _wagmi.usePublicClient.call(void 0, );
|
|
225
243
|
const { switchNetwork } = _react3.useAppKitNetwork.call(void 0, );
|
|
226
244
|
const { switchChainAsync } = _wagmi.useSwitchChain.call(void 0, );
|
|
227
|
-
const isSolana = _nullishCoalesce(_optionalChain([caipAddress, 'optionalAccess',
|
|
228
|
-
const solanaAddress = isSolana ? _optionalChain([caipAddress, 'optionalAccess',
|
|
245
|
+
const isSolana = _nullishCoalesce(_optionalChain([caipAddress, 'optionalAccess', _8 => _8.startsWith, 'call', _9 => _9("solana:")]), () => ( false));
|
|
246
|
+
const solanaAddress = isSolana ? _optionalChain([caipAddress, 'optionalAccess', _10 => _10.split, 'call', _11 => _11(":"), 'access', _12 => _12.slice, 'call', _13 => _13(2), 'access', _14 => _14.join, 'call', _15 => _15(":")]) : void 0;
|
|
229
247
|
return {
|
|
230
248
|
walletClient: isSolana ? void 0 : _nullishCoalesce(walletClient, () => ( void 0)),
|
|
231
249
|
publicClient: isSolana ? void 0 : _nullishCoalesce(publicClient, () => ( void 0)),
|
|
@@ -237,7 +255,7 @@ function useReownWalletSession() {
|
|
|
237
255
|
// here rather than inferred from the client's presence by the picker.
|
|
238
256
|
canSignEvm: !isSolana && Boolean(walletClient),
|
|
239
257
|
isReady: initialized && !loading,
|
|
240
|
-
icon: _optionalChain([walletInfo, 'optionalAccess',
|
|
258
|
+
icon: _optionalChain([walletInfo, 'optionalAccess', _16 => _16.icon]),
|
|
241
259
|
isSolana,
|
|
242
260
|
solanaAddress,
|
|
243
261
|
solanaProvider: void 0,
|
|
@@ -246,7 +264,7 @@ function useReownWalletSession() {
|
|
|
246
264
|
void open({ view: "Connect" });
|
|
247
265
|
},
|
|
248
266
|
disconnect: () => {
|
|
249
|
-
void _optionalChain([_react3.modal, 'optionalAccess',
|
|
267
|
+
void _optionalChain([_react3.modal, 'optionalAccess', _17 => _17.disconnect, 'call', _18 => _18()]);
|
|
250
268
|
},
|
|
251
269
|
switchChain: async (chainId) => {
|
|
252
270
|
if (!wagmiConfiguredEvmIds.has(chainId)) {
|
|
@@ -262,7 +280,7 @@ function useReownWalletSession() {
|
|
|
262
280
|
await switchChainAsync({ chainId });
|
|
263
281
|
}
|
|
264
282
|
} catch (err) {
|
|
265
|
-
if (
|
|
283
|
+
if (_chunk5CYWM2NFcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
|
|
266
284
|
throw new Error(
|
|
267
285
|
`Switch to ${chainDisplayName(chainId)} in your wallet to continue`
|
|
268
286
|
);
|
|
@@ -296,7 +314,7 @@ function DepositModalWithReown(props) {
|
|
|
296
314
|
reown.disconnect();
|
|
297
315
|
}, [reown.disconnect]);
|
|
298
316
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
299
|
-
|
|
317
|
+
_chunkCVE332IHcjs.DepositModalInner,
|
|
300
318
|
{
|
|
301
319
|
...props,
|
|
302
320
|
walletSession: reownWithSolana,
|
|
@@ -22,7 +22,7 @@ function QRCode({ value, size = 200, iconSrc, className }) {
|
|
|
22
22
|
if (!node) return;
|
|
23
23
|
const sync = () => setColors(resolveSurfaceColor(node));
|
|
24
24
|
sync();
|
|
25
|
-
const themed = node.closest("[data-theme]");
|
|
25
|
+
const themed = node.closest(".rs-modal") ?? node.closest("[data-theme]");
|
|
26
26
|
if (!themed) return;
|
|
27
27
|
const observer = new MutationObserver(sync);
|
|
28
28
|
observer.observe(themed, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/components/ui/QRCode.tsx
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/components/ui/QRCode.tsx
|
|
2
2
|
var _react = require('react');
|
|
3
3
|
var _reactqrcodelogo = require('react-qrcode-logo');
|
|
4
4
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -22,7 +22,7 @@ function QRCode({ value, size = 200, iconSrc, className }) {
|
|
|
22
22
|
if (!node) return;
|
|
23
23
|
const sync = () => setColors(resolveSurfaceColor(node));
|
|
24
24
|
sync();
|
|
25
|
-
const themed = node.closest("[data-theme]");
|
|
25
|
+
const themed = _nullishCoalesce(node.closest(".rs-modal"), () => ( node.closest("[data-theme]")));
|
|
26
26
|
if (!themed) return;
|
|
27
27
|
const observer = new MutationObserver(sync);
|
|
28
28
|
observer.observe(themed, {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk673AD3RKcjs = require('./chunk-673AD3RK.cjs');
|
|
4
|
+
require('./chunk-2JAHQ57P.cjs');
|
|
5
|
+
require('./chunk-5CYWM2NF.cjs');
|
|
6
|
+
require('./chunk-4GZLW63Q.cjs');
|
|
7
|
+
require('./chunk-4KCSH4T3.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.WithdrawModal = _chunk673AD3RKcjs.WithdrawModal;
|