@rhinestone/deposit-modal 0.0.0-dev-20260901125921 → 0.0.0-dev-20260901162023

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/ClaimModal-5JQHZ6RG.cjs +12 -0
  2. package/dist/{ClaimModal-GECPNVYW.mjs → ClaimModal-NJEVCXFZ.mjs} +4 -5
  3. package/dist/{DepositModalReown-7X2P4Q3U.cjs → DepositModalReown-7JUC6U7W.cjs} +18 -18
  4. package/dist/{DepositModalReown-J5677AO3.mjs → DepositModalReown-THSTSQHI.mjs} +5 -5
  5. package/dist/{WithdrawModal-EGUXJGKC.mjs → WithdrawModal-DXZYG3HU.mjs} +4 -4
  6. package/dist/WithdrawModal-VUILQYNT.cjs +12 -0
  7. package/dist/{chunk-ULDG2NFL.mjs → chunk-DHGJHRBX.mjs} +99 -99
  8. package/dist/{chunk-URYV6A2L.mjs → chunk-EVAKCGLK.mjs} +2 -2
  9. package/dist/chunk-FI6F5GUL.cjs +529 -0
  10. package/dist/{chunk-H4GKLXX7.cjs → chunk-GMYOHPI6.cjs} +73 -220
  11. package/dist/{chunk-V35JXQDL.mjs → chunk-I32JWFY4.mjs} +444 -126
  12. package/dist/{chunk-UMHZX3KX.cjs → chunk-J7ZCRY3H.cjs} +172 -172
  13. package/dist/{chunk-BBHL7Y6Q.cjs → chunk-JICOHQHN.cjs} +65 -65
  14. package/dist/{chunk-LHVHW2FC.cjs → chunk-MANGCUEL.cjs} +1 -1
  15. package/dist/{chunk-HEBZWISE.mjs → chunk-OJRBZQIE.mjs} +85 -232
  16. package/dist/{chunk-GGEX3J6J.cjs → chunk-OPRCCLSY.cjs} +67 -67
  17. package/dist/{chunk-QO63RXOH.mjs → chunk-PSLNTPKP.mjs} +1 -1
  18. package/dist/{chunk-76SNGRJ4.cjs → chunk-UU5JG66V.cjs} +662 -344
  19. package/dist/chunk-VMP2UYAN.mjs +529 -0
  20. package/dist/{chunk-SSODFKQC.mjs → chunk-ZJKENYOD.mjs} +1 -1
  21. package/dist/claim.cjs +5 -6
  22. package/dist/claim.d.cts +2 -2
  23. package/dist/claim.d.ts +2 -2
  24. package/dist/claim.mjs +4 -5
  25. package/dist/constants.cjs +2 -2
  26. package/dist/constants.d.cts +1 -1
  27. package/dist/constants.d.ts +1 -1
  28. package/dist/constants.mjs +1 -1
  29. package/dist/deposit.cjs +6 -6
  30. package/dist/deposit.d.cts +2 -2
  31. package/dist/deposit.d.ts +2 -2
  32. package/dist/deposit.mjs +5 -5
  33. package/dist/embed.cjs +26 -18
  34. package/dist/embed.d.cts +1 -1
  35. package/dist/embed.d.ts +1 -1
  36. package/dist/embed.mjs +16 -8
  37. package/dist/index.cjs +8 -9
  38. package/dist/index.d.cts +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.mjs +7 -8
  41. package/dist/styles.css +92 -9
  42. package/dist/{types-Bho4OA03.d.ts → types-D36e_rVZ.d.ts} +25 -3
  43. package/dist/{types-DP_3KwlD.d.cts → types-TsOeInuD.d.cts} +25 -3
  44. package/dist/withdraw.cjs +5 -5
  45. package/dist/withdraw.d.cts +2 -2
  46. package/dist/withdraw.d.ts +2 -2
  47. package/dist/withdraw.mjs +4 -4
  48. package/package.json +5 -5
  49. package/dist/ClaimModal-TUIJ2FXZ.cjs +0 -13
  50. package/dist/WithdrawModal-ZRO4GPL5.cjs +0 -12
  51. package/dist/chunk-5VTLHOWL.mjs +0 -81
  52. package/dist/chunk-6NMICTMH.cjs +0 -163
  53. package/dist/chunk-E26VPCQS.cjs +0 -81
  54. package/dist/chunk-UIMR4O7B.mjs +0 -163
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkGMYOHPI6cjs = require('./chunk-GMYOHPI6.cjs');
5
+ require('./chunk-FI6F5GUL.cjs');
6
+ require('./chunk-J7ZCRY3H.cjs');
7
+ require('./chunk-MANGCUEL.cjs');
8
+ require('./chunk-4KCSH4T3.cjs');
9
+
10
+
11
+
12
+ exports.ClaimModal = _chunkGMYOHPI6cjs.ClaimModal; exports.buildClaimAnalyticsSessionProperties = _chunkGMYOHPI6cjs.buildClaimAnalyticsSessionProperties;
@@ -1,11 +1,10 @@
1
1
  import {
2
2
  ClaimModal,
3
3
  buildClaimAnalyticsSessionProperties
4
- } from "./chunk-HEBZWISE.mjs";
5
- import "./chunk-UIMR4O7B.mjs";
6
- import "./chunk-5VTLHOWL.mjs";
7
- import "./chunk-ULDG2NFL.mjs";
8
- import "./chunk-QO63RXOH.mjs";
4
+ } from "./chunk-OJRBZQIE.mjs";
5
+ import "./chunk-VMP2UYAN.mjs";
6
+ import "./chunk-DHGJHRBX.mjs";
7
+ import "./chunk-PSLNTPKP.mjs";
9
8
  import "./chunk-VUATPOWJ.mjs";
10
9
  export {
11
10
  ClaimModal,
@@ -1,9 +1,9 @@
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
3
 
4
- var _chunk76SNGRJ4cjs = require('./chunk-76SNGRJ4.cjs');
5
- require('./chunk-GGEX3J6J.cjs');
6
- require('./chunk-E26VPCQS.cjs');
4
+ var _chunkUU5JG66Vcjs = require('./chunk-UU5JG66V.cjs');
5
+ require('./chunk-OPRCCLSY.cjs');
6
+ require('./chunk-FI6F5GUL.cjs');
7
7
 
8
8
 
9
9
 
@@ -12,8 +12,8 @@ require('./chunk-E26VPCQS.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunkUMHZX3KXcjs = require('./chunk-UMHZX3KX.cjs');
16
- require('./chunk-LHVHW2FC.cjs');
15
+ var _chunkJ7ZCRY3Hcjs = require('./chunk-J7ZCRY3H.cjs');
16
+ require('./chunk-MANGCUEL.cjs');
17
17
  require('./chunk-DW2EQA2U.cjs');
18
18
 
19
19
 
@@ -46,7 +46,7 @@ var {
46
46
  unichain,
47
47
  katana,
48
48
  hyperEvm
49
- } = _chunk76SNGRJ4cjs.getReownDependencies.call(void 0, )[1];
49
+ } = _chunkUU5JG66Vcjs.getReownDependencies.call(void 0, )[1];
50
50
  var APPKIT_NETWORK_BY_ID = {
51
51
  [mainnet.id]: mainnet,
52
52
  [optimism.id]: optimism,
@@ -78,7 +78,7 @@ function getAppKitNetwork(chainId) {
78
78
 
79
79
  // src/core/reown-theme.ts
80
80
  function mapTheme(theme) {
81
- const themeMode = _chunkUMHZX3KXcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
81
+ const themeMode = _chunkJ7ZCRY3Hcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
82
82
  const themeVariables = {
83
83
  "--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
84
84
  };
@@ -95,7 +95,7 @@ function setAppKitTheme(appKit, theme) {
95
95
 
96
96
  // src/core/reown.tsx
97
97
  var _jsxruntime = require('react/jsx-runtime');
98
- var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunk76SNGRJ4cjs.getReownDependencies.call(void 0, );
98
+ var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkUU5JG66Vcjs.getReownDependencies.call(void 0, );
99
99
  var {
100
100
  createAppKit,
101
101
  useAppKit,
@@ -111,14 +111,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
111
111
  const transports = {};
112
112
  for (const network of networks) {
113
113
  const id = Number(network.id);
114
- transports[id] = _viem.http.call(void 0, _chunkUMHZX3KXcjs.rpcUrlFor.call(void 0, rpcUrls, id));
114
+ transports[id] = _viem.http.call(void 0, _chunkJ7ZCRY3Hcjs.rpcUrlFor.call(void 0, rpcUrls, id));
115
115
  }
116
116
  return transports;
117
117
  }
118
118
  function getEvmRpcFingerprint(rpcUrls, networks) {
119
119
  return networks.map((network) => {
120
120
  const id = Number(network.id);
121
- return `${id}=${_nullishCoalesce(_chunkUMHZX3KXcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
121
+ return `${id}=${_nullishCoalesce(_chunkJ7ZCRY3Hcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
122
122
  }).join("|");
123
123
  }
124
124
  var cachedAdapter = null;
@@ -189,7 +189,7 @@ function ReownWalletProvider({
189
189
  backendUrl,
190
190
  children
191
191
  }) {
192
- const rpcUrls = _chunkUMHZX3KXcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
192
+ const rpcUrls = _chunkJ7ZCRY3Hcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
193
193
  const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
194
194
  const overrides = _react.useMemo.call(void 0, () => {
195
195
  if (!rpcUrls) return void 0;
@@ -201,14 +201,14 @@ function ReownWalletProvider({
201
201
  return out;
202
202
  }, [rpcUrls]);
203
203
  const [state, setState] = _react.useState.call(void 0, () => {
204
- const primed = _chunkUMHZX3KXcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
204
+ const primed = _chunkJ7ZCRY3Hcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
205
205
  return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
206
206
  });
207
207
  _react.useEffect.call(void 0, () => {
208
208
  let active = true;
209
- const primed = _chunkUMHZX3KXcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
209
+ const primed = _chunkJ7ZCRY3Hcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
210
210
  setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
211
- _chunkUMHZX3KXcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
211
+ _chunkJ7ZCRY3Hcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
212
212
  if (active) setState({ ready: true, chains });
213
213
  });
214
214
  return () => {
@@ -217,7 +217,7 @@ function ReownWalletProvider({
217
217
  }, [backendUrl, overrides]);
218
218
  _react.useEffect.call(void 0, () => {
219
219
  setAppKitTheme(appKitReact.modal, theme);
220
- return _chunkUMHZX3KXcjs.followSystemAppearance.call(void 0,
220
+ return _chunkJ7ZCRY3Hcjs.followSystemAppearance.call(void 0,
221
221
  _optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
222
222
  () => setAppKitTheme(appKitReact.modal, theme)
223
223
  );
@@ -281,7 +281,7 @@ function useReownWalletSession() {
281
281
  await switchChainAsync({ chainId });
282
282
  }
283
283
  } catch (err) {
284
- if (_chunkUMHZX3KXcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
284
+ if (_chunkJ7ZCRY3Hcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
285
285
  throw new Error(
286
286
  `Switch to ${chainDisplayName(chainId)} in your wallet to continue`
287
287
  );
@@ -294,7 +294,7 @@ function useReownWalletSession() {
294
294
 
295
295
  // src/DepositModalReown.tsx
296
296
 
297
- var [appKitReact2, , , , solanaAdapterReact] = _chunk76SNGRJ4cjs.getReownDependencies.call(void 0, );
297
+ var [appKitReact2, , , , solanaAdapterReact] = _chunkUU5JG66Vcjs.getReownDependencies.call(void 0, );
298
298
  var { useAppKitProvider } = appKitReact2;
299
299
  var { useAppKitConnection } = solanaAdapterReact;
300
300
  function DepositModalWithReown(props) {
@@ -316,7 +316,7 @@ function DepositModalWithReown(props) {
316
316
  reown.disconnect();
317
317
  }, [reown.disconnect]);
318
318
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
319
- _chunk76SNGRJ4cjs.DepositModalInner,
319
+ _chunkUU5JG66Vcjs.DepositModalInner,
320
320
  {
321
321
  ...props,
322
322
  walletSession: reownWithSolana,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DepositModalInner,
3
3
  getReownDependencies
4
- } from "./chunk-V35JXQDL.mjs";
5
- import "./chunk-SSODFKQC.mjs";
6
- import "./chunk-5VTLHOWL.mjs";
4
+ } from "./chunk-I32JWFY4.mjs";
5
+ import "./chunk-ZJKENYOD.mjs";
6
+ import "./chunk-VMP2UYAN.mjs";
7
7
  import {
8
8
  followSystemAppearance,
9
9
  isUnsupportedChainSwitchError,
@@ -12,8 +12,8 @@ import {
12
12
  resolveThemeMode,
13
13
  rpcUrlFor,
14
14
  useStableRpcUrls
15
- } from "./chunk-ULDG2NFL.mjs";
16
- import "./chunk-QO63RXOH.mjs";
15
+ } from "./chunk-DHGJHRBX.mjs";
16
+ import "./chunk-PSLNTPKP.mjs";
17
17
  import "./chunk-RN5VKWI6.mjs";
18
18
  import {
19
19
  SUPPORTED_CHAIN_IDS,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  WithdrawModal,
3
3
  buildWithdrawAnalyticsSessionProperties
4
- } from "./chunk-URYV6A2L.mjs";
5
- import "./chunk-SSODFKQC.mjs";
6
- import "./chunk-ULDG2NFL.mjs";
7
- import "./chunk-QO63RXOH.mjs";
4
+ } from "./chunk-EVAKCGLK.mjs";
5
+ import "./chunk-ZJKENYOD.mjs";
6
+ import "./chunk-DHGJHRBX.mjs";
7
+ import "./chunk-PSLNTPKP.mjs";
8
8
  import "./chunk-VUATPOWJ.mjs";
9
9
  export {
10
10
  WithdrawModal,
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkJICOHQHNcjs = require('./chunk-JICOHQHN.cjs');
5
+ require('./chunk-OPRCCLSY.cjs');
6
+ require('./chunk-J7ZCRY3H.cjs');
7
+ require('./chunk-MANGCUEL.cjs');
8
+ require('./chunk-4KCSH4T3.cjs');
9
+
10
+
11
+
12
+ exports.WithdrawModal = _chunkJICOHQHNcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkJICOHQHNcjs.buildWithdrawAnalyticsSessionProperties;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MODAL_VERSION,
3
3
  serviceHeaders
4
- } from "./chunk-QO63RXOH.mjs";
4
+ } from "./chunk-PSLNTPKP.mjs";
5
5
  import {
6
6
  CHAIN_DISPLAY_ORDER,
7
7
  HYPERCORE_CHAIN_ID,
@@ -313,56 +313,8 @@ function BodyHeader({
313
313
  }
314
314
  BodyHeader.displayName = "BodyHeader";
315
315
 
316
- // src/components/ui/CdnIcon.tsx
317
- import { useState } from "react";
318
- import { Fragment, jsx as jsx4 } from "react/jsx-runtime";
319
- function preconnectIconCdn() {
320
- if (typeof document === "undefined") return;
321
- if (document.getElementById("rs-icon-cdn-preconnect")) return;
322
- const link = document.createElement("link");
323
- link.id = "rs-icon-cdn-preconnect";
324
- link.rel = "preconnect";
325
- link.href = ICON_CDN;
326
- link.crossOrigin = "anonymous";
327
- document.head.appendChild(link);
328
- }
329
- preconnectIconCdn();
330
- function CdnIcon({
331
- src,
332
- alt = "",
333
- className,
334
- fallback,
335
- loading = "eager"
336
- }) {
337
- const [loadedSrc, setLoadedSrc] = useState(null);
338
- const [erroredSrc, setErroredSrc] = useState(null);
339
- if (!src || erroredSrc === src) {
340
- return /* @__PURE__ */ jsx4(Fragment, { children: fallback });
341
- }
342
- const isLoading = loadedSrc !== src;
343
- const settleIfAlreadyComplete = (el) => {
344
- if (el?.complete) setLoadedSrc(src);
345
- };
346
- return /* @__PURE__ */ jsx4(
347
- "img",
348
- {
349
- ref: settleIfAlreadyComplete,
350
- src,
351
- alt,
352
- className: `rs-cdn-icon ${className ?? ""}`.trimEnd(),
353
- loading,
354
- decoding: "async",
355
- "data-loading": isLoading ? "" : void 0,
356
- onLoad: () => setLoadedSrc(src),
357
- onError: () => setErroredSrc(src)
358
- },
359
- src
360
- );
361
- }
362
- CdnIcon.displayName = "CdnIcon";
363
-
364
316
  // src/components/ui/PoweredBy.tsx
365
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
317
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
366
318
  var rhinestoneLogo = /* @__PURE__ */ jsxs3(
367
319
  "svg",
368
320
  {
@@ -373,7 +325,7 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs3(
373
325
  "aria-hidden": "true",
374
326
  children: [
375
327
  /* @__PURE__ */ jsxs3("g", { fill: "currentColor", clipPath: "url(#rs-pb-clip)", children: [
376
- /* @__PURE__ */ jsx5(
328
+ /* @__PURE__ */ jsx4(
377
329
  "path",
378
330
  {
379
331
  opacity: "0.5",
@@ -382,8 +334,8 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs3(
382
334
  d: "M10.48 14.82a4.3 4.3 0 0 1-2.9 1 4.3 4.3 0 0 1-2.4-1 25 25 0 0 1-2.08-1.95l-.13-.13c-.78-.78-1.46-1.46-1.94-2.08a4.3 4.3 0 0 1-1-2.9c.05-.96.48-1.72 1-2.4a25 25 0 0 1 1.94-2.08l.07-.06.06-.07a25 25 0 0 1 2.08-1.94 4.3 4.3 0 0 1 2.9-1c.96.05 1.73.48 2.4 1 .62.49 1.3 1.17 2.08 1.94l.13.13c.77.78 1.46 1.46 1.94 2.09a4.3 4.3 0 0 1 1 2.9 4.3 4.3 0 0 1-1 2.39c-.48.62-1.17 1.3-1.94 2.08l-.07.07-.06.06c-.78.78-1.46 1.46-2.08 1.94m-8.9-6.63c.07 1.02.9 1.86 2.56 3.52s2.5 2.5 3.53 2.56h.32c1.03-.06 1.86-.9 3.53-2.56s2.5-2.5 2.56-3.52v-.33c-.07-1.03-.9-1.86-2.56-3.52-1.67-1.67-2.5-2.5-3.53-2.56h-.32c-1.03.06-1.86.89-3.53 2.56-1.66 1.66-2.5 2.5-2.56 3.52z"
383
335
  }
384
336
  ),
385
- /* @__PURE__ */ jsx5("path", { d: "M3.66 8.01q.02-.27.28-.35a4.6 4.6 0 0 0 2.53-1.48q.72-.8 1-2.05a.4.4 0 0 1 .36-.29c.17 0 .32.12.36.29a4.6 4.6 0 0 0 1.47 2.52c.55.49 1.21.8 2.06 1a.4.4 0 0 1 .28.36.4.4 0 0 1-.28.36 4.6 4.6 0 0 0-2.53 1.47 4.6 4.6 0 0 0-1 2.06.4.4 0 0 1-.36.28.4.4 0 0 1-.36-.28A4.6 4.6 0 0 0 6 9.38a4.6 4.6 0 0 0-2.06-1.01.4.4 0 0 1-.28-.36m26.46-3.44c0 .51.38.87.96.87s.95-.36.95-.87c0-.52-.37-.86-.95-.86s-.96.34-.96.86m.2 1.44v5.33h1.53V6.01zm-4.4 5.33h-1.55V3.88h1.54v2.98c.25-.5.8-1.01 1.6-1.01 1.29 0 1.87.83 1.87 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.92-1.16-.67 0-1 .53-1 1.3zm-4.45 0h-1.54V6.01h1.54l-.27 1.22a.1.1 0 0 0 .02.1.1.1 0 0 0 .1.04q.09 0 .1-.09c.24-.84.93-1.36 1.64-1.36q.4.01.57.05v1.42l-.67-.04c-.67 0-1.5.31-1.5 2zm13 0h-1.55V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.61-1.06c1.3 0 1.88.83 1.88 2.28v3.21H36.4V8.3c0-.77-.35-1.16-.93-1.16-.67 0-1 .53-1 1.3z" }),
386
- /* @__PURE__ */ jsx5(
337
+ /* @__PURE__ */ jsx4("path", { d: "M3.66 8.01q.02-.27.28-.35a4.6 4.6 0 0 0 2.53-1.48q.72-.8 1-2.05a.4.4 0 0 1 .36-.29c.17 0 .32.12.36.29a4.6 4.6 0 0 0 1.47 2.52c.55.49 1.21.8 2.06 1a.4.4 0 0 1 .28.36.4.4 0 0 1-.28.36 4.6 4.6 0 0 0-2.53 1.47 4.6 4.6 0 0 0-1 2.06.4.4 0 0 1-.36.28.4.4 0 0 1-.36-.28A4.6 4.6 0 0 0 6 9.38a4.6 4.6 0 0 0-2.06-1.01.4.4 0 0 1-.28-.36m26.46-3.44c0 .51.38.87.96.87s.95-.36.95-.87c0-.52-.37-.86-.95-.86s-.96.34-.96.86m.2 1.44v5.33h1.53V6.01zm-4.4 5.33h-1.55V3.88h1.54v2.98c.25-.5.8-1.01 1.6-1.01 1.29 0 1.87.83 1.87 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.92-1.16-.67 0-1 .53-1 1.3zm-4.45 0h-1.54V6.01h1.54l-.27 1.22a.1.1 0 0 0 .02.1.1.1 0 0 0 .1.04q.09 0 .1-.09c.24-.84.93-1.36 1.64-1.36q.4.01.57.05v1.42l-.67-.04c-.67 0-1.5.31-1.5 2zm13 0h-1.55V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.61-1.06c1.3 0 1.88.83 1.88 2.28v3.21H36.4V8.3c0-.77-.35-1.16-.93-1.16-.67 0-1 .53-1 1.3z" }),
338
+ /* @__PURE__ */ jsx4(
387
339
  "path",
388
340
  {
389
341
  fillRule: "evenodd",
@@ -391,8 +343,8 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs3(
391
343
  d: "M38.74 8.69c0 1.63 1.01 2.82 2.7 2.82 1.51 0 2.32-.82 2.55-1.73l-1.43-.26c-.1.37-.47.82-1.12.82-.67 0-1.23-.6-1.24-1.31H44q.05-.19.06-.56a2.55 2.55 0 0 0-2.6-2.63c-1.5 0-2.72 1.2-2.72 2.85m3.82-.58h-2.3a1.2 1.2 0 0 1 1.18-1.13c.6 0 1.14.45 1.12 1.13"
392
344
  }
393
345
  ),
394
- /* @__PURE__ */ jsx5("path", { d: "M47.1 11.51c-1.2 0-2.33-.41-2.55-1.65l1.43-.21q.27.8 1.1.79c.5 0 .77-.24.77-.55 0-.27-.2-.45-.75-.55l-.5-.1c-1.1-.24-1.77-.74-1.77-1.63 0-1.06.91-1.78 2.25-1.78 1.26 0 2.2.59 2.32 1.68l-1.41.22c-.07-.52-.43-.82-.91-.82-.5 0-.75.26-.75.57 0 .25.17.42.63.51l.5.1c1.28.26 1.94.77 1.94 1.75 0 1.01-1.03 1.66-2.3 1.66" }),
395
- /* @__PURE__ */ jsx5(
346
+ /* @__PURE__ */ jsx4("path", { d: "M47.1 11.51c-1.2 0-2.33-.41-2.55-1.65l1.43-.21q.27.8 1.1.79c.5 0 .77-.24.77-.55 0-.27-.2-.45-.75-.55l-.5-.1c-1.1-.24-1.77-.74-1.77-1.63 0-1.06.91-1.78 2.25-1.78 1.26 0 2.2.59 2.32 1.68l-1.41.22c-.07-.52-.43-.82-.91-.82-.5 0-.75.26-.75.57 0 .25.17.42.63.51l.5.1c1.28.26 1.94.77 1.94 1.75 0 1.01-1.03 1.66-2.3 1.66" }),
347
+ /* @__PURE__ */ jsx4(
396
348
  "path",
397
349
  {
398
350
  fillRule: "evenodd",
@@ -400,8 +352,8 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs3(
400
352
  d: "M54.44 8.68c0 1.53 1.08 2.83 2.78 2.83s2.79-1.3 2.79-2.83c0-1.55-1.1-2.84-2.79-2.84-1.7 0-2.78 1.29-2.78 2.84m4.02 0c0 .98-.59 1.45-1.24 1.45-.64 0-1.23-.47-1.23-1.45 0-.97.59-1.47 1.23-1.47.65 0 1.24.48 1.24 1.47"
401
353
  }
402
354
  ),
403
- /* @__PURE__ */ jsx5("path", { d: "M62.4 11.34h-1.53V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.6-1.06c1.3 0 1.89.83 1.89 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.93-1.16-.66 0-1 .53-1 1.3z" }),
404
- /* @__PURE__ */ jsx5(
355
+ /* @__PURE__ */ jsx4("path", { d: "M62.4 11.34h-1.53V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.6-1.06c1.3 0 1.89.83 1.89 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.93-1.16-.66 0-1 .53-1 1.3z" }),
356
+ /* @__PURE__ */ jsx4(
405
357
  "path",
406
358
  {
407
359
  fillRule: "evenodd",
@@ -409,16 +361,16 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs3(
409
361
  d: "M66.68 8.69c0 1.63 1.02 2.82 2.71 2.82 1.51 0 2.31-.82 2.55-1.73l-1.44-.26c-.1.37-.47.82-1.12.82-.67 0-1.23-.6-1.24-1.31h3.8q.06-.19.06-.56a2.55 2.55 0 0 0-2.6-2.63c-1.5 0-2.72 1.2-2.72 2.85m3.82-.58h-2.3a1.2 1.2 0 0 1 1.18-1.13c.6 0 1.15.45 1.12 1.13"
410
362
  }
411
363
  ),
412
- /* @__PURE__ */ jsx5("path", { d: "M52.44 9.05V7.26h1.53V6h-1.53V4.42h-1.53V6h-1.1v1.26h1.1v1.85l.02.49a1.9 1.9 0 0 0 1.67 1.67c.22.03.47.03.62.03h.65V9.87h-.61c-.4 0-.59 0-.7-.12-.12-.11-.12-.3-.12-.64z" })
364
+ /* @__PURE__ */ jsx4("path", { d: "M52.44 9.05V7.26h1.53V6h-1.53V4.42h-1.53V6h-1.1v1.26h1.1v1.85l.02.49a1.9 1.9 0 0 0 1.67 1.67c.22.03.47.03.62.03h.65V9.87h-.61c-.4 0-.59 0-.7-.12-.12-.11-.12-.3-.12-.64z" })
413
365
  ] }),
414
- /* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsx5("clipPath", { id: "rs-pb-clip", children: /* @__PURE__ */ jsx5("path", { fill: "#fff", d: "M0 0h72v16H0z" }) }) })
366
+ /* @__PURE__ */ jsx4("defs", { children: /* @__PURE__ */ jsx4("clipPath", { id: "rs-pb-clip", children: /* @__PURE__ */ jsx4("path", { fill: "#fff", d: "M0 0h72v16H0z" }) }) })
415
367
  ]
416
368
  }
417
369
  );
418
370
  function PoweredBy() {
419
371
  return /* @__PURE__ */ jsxs3("div", { className: "rs-powered-by", "aria-label": "Powered by Rhinestone", children: [
420
- /* @__PURE__ */ jsx5("span", { children: "Powered by" }),
421
- /* @__PURE__ */ jsx5(
372
+ /* @__PURE__ */ jsx4("span", { children: "Powered by" }),
373
+ /* @__PURE__ */ jsx4(
422
374
  "a",
423
375
  {
424
376
  className: "rs-powered-by-link",
@@ -2077,7 +2029,7 @@ import {
2077
2029
  useContext as useContext2,
2078
2030
  useEffect as useEffect2,
2079
2031
  useMemo as useMemo2,
2080
- useState as useState2,
2032
+ useState,
2081
2033
  useSyncExternalStore
2082
2034
  } from "react";
2083
2035
 
@@ -2239,7 +2191,7 @@ function needsViemChains(catalog, overrides) {
2239
2191
  }
2240
2192
 
2241
2193
  // src/core/chain-catalog-context.tsx
2242
- import { jsx as jsx6 } from "react/jsx-runtime";
2194
+ import { jsx as jsx5 } from "react/jsx-runtime";
2243
2195
  var EMPTY = {
2244
2196
  catalog: null,
2245
2197
  viemChains: null,
@@ -2436,9 +2388,9 @@ function ChainCatalogProvider({
2436
2388
  rpcUrls,
2437
2389
  children
2438
2390
  }) {
2439
- const [catalog, setCatalog] = useState2(null);
2440
- const [viemChains, setViemChains] = useState2(null);
2441
- const [isLoading, setIsLoading] = useState2(true);
2391
+ const [catalog, setCatalog] = useState(null);
2392
+ const [viemChains, setViemChains] = useState(null);
2393
+ const [isLoading, setIsLoading] = useState(true);
2442
2394
  useEffect2(() => {
2443
2395
  let active = true;
2444
2396
  setIsLoading(true);
@@ -2479,7 +2431,7 @@ function ChainCatalogProvider({
2479
2431
  const chains = toViemChains(catalog, overrides, viemChains);
2480
2432
  if (chains.length > 0) setRuntimeChains(chains);
2481
2433
  }, [catalog, viemChains, overrides]);
2482
- const [shortlist, setShortlist] = useState2(null);
2434
+ const [shortlist, setShortlist] = useState(null);
2483
2435
  useEffect2(() => {
2484
2436
  let active = true;
2485
2437
  setShortlist(null);
@@ -2508,7 +2460,7 @@ function ChainCatalogProvider({
2508
2460
  }),
2509
2461
  [catalog, viemChains, isLoading, shortlist, clientCapableChainIds]
2510
2462
  );
2511
- return /* @__PURE__ */ jsx6(ChainCatalogContext.Provider, { value, children });
2463
+ return /* @__PURE__ */ jsx5(ChainCatalogContext.Provider, { value, children });
2512
2464
  }
2513
2465
 
2514
2466
  // src/core/useLatestRef.ts
@@ -2522,7 +2474,7 @@ function useLatestRef(value) {
2522
2474
  }
2523
2475
 
2524
2476
  // src/components/ui/Spinner.tsx
2525
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
2477
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
2526
2478
  function Spinner({ className }) {
2527
2479
  return /* @__PURE__ */ jsxs4(
2528
2480
  "svg",
@@ -2531,7 +2483,7 @@ function Spinner({ className }) {
2531
2483
  fill: "none",
2532
2484
  viewBox: "0 0 20 21",
2533
2485
  children: [
2534
- /* @__PURE__ */ jsx7(
2486
+ /* @__PURE__ */ jsx6(
2535
2487
  "path",
2536
2488
  {
2537
2489
  d: "M10 0.5C8.02 0.5 6.08 1.08 4.44 2.18C2.79 3.28 1.51 4.84 0.76 6.67C0.00 8.50 -0.19 10.51 0.19 12.45C0.57 14.39 1.53 16.17 2.92 17.57C4.32 18.96 6.10 19.92 8.04 20.30C9.98 20.69 11.99 20.49 13.82 19.73C15.65 18.98 17.21 17.70 18.31 16.05C19.41 14.41 20 12.47 20 10.5C20 7.84 18.94 5.30 17.07 3.42C15.19 1.55 12.65 0.5 10 0.5ZM10 17.77C8.56 17.77 7.15 17.34 5.95 16.54C4.76 15.74 3.83 14.61 3.28 13.28C2.73 11.95 2.58 10.49 2.86 9.08C3.14 7.67 3.84 6.37 4.85 5.35C5.87 4.34 7.17 3.64 8.58 3.36C9.99 3.08 11.45 3.23 12.78 3.78C14.11 4.33 15.24 5.26 16.04 6.45C16.84 7.65 17.27 9.06 17.27 10.5C17.27 12.42 16.50 14.27 15.14 15.64C13.77 17.00 11.92 17.77 10 17.77Z",
@@ -2539,7 +2491,7 @@ function Spinner({ className }) {
2539
2491
  opacity: 0.3
2540
2492
  }
2541
2493
  ),
2542
- /* @__PURE__ */ jsx7(
2494
+ /* @__PURE__ */ jsx6(
2543
2495
  "path",
2544
2496
  {
2545
2497
  d: "M10 3.22C11.74 3.22 13.42 3.84 14.75 4.95C16.08 6.07 16.96 7.61 17.25 9.31C17.30 9.64 17.46 9.94 17.71 10.15C17.96 10.37 18.28 10.49 18.62 10.5C18.82 10.50 19.01 10.45 19.20 10.37C19.38 10.29 19.54 10.16 19.67 10.01C19.80 9.86 19.89 9.68 19.95 9.49C20.00 9.30 20.01 9.10 19.98 8.90C19.59 6.56 18.38 4.42 16.55 2.88C14.72 1.34 12.40 0.5 10 0.5C7.59 0.5 5.27 1.34 3.44 2.88C1.61 4.42 0.40 6.56 0.01 8.90C-0.01 9.10 -0.00 9.30 0.04 9.49C0.10 9.68 0.19 9.86 0.32 10.01C0.45 10.16 0.61 10.29 0.79 10.37C0.98 10.45 1.17 10.50 1.37 10.5C1.71 10.49 2.03 10.37 2.28 10.15C2.53 9.94 2.69 9.64 2.74 9.31C3.03 7.61 3.91 6.07 5.24 4.95C6.57 3.84 8.25 3.22 10 3.22Z",
@@ -2552,7 +2504,7 @@ function Spinner({ className }) {
2552
2504
  }
2553
2505
 
2554
2506
  // src/components/ui/Button.tsx
2555
- import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
2507
+ import { Fragment, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
2556
2508
  function Button({
2557
2509
  children,
2558
2510
  variant = "accent",
@@ -2572,7 +2524,7 @@ function Button({
2572
2524
  className
2573
2525
  ].filter(Boolean).join(" ");
2574
2526
  const showInlineLoadingText = loading && loadingText !== void 0;
2575
- return /* @__PURE__ */ jsx8(
2527
+ return /* @__PURE__ */ jsx7(
2576
2528
  "button",
2577
2529
  {
2578
2530
  className: classes,
@@ -2580,11 +2532,11 @@ function Button({
2580
2532
  "aria-busy": loading || void 0,
2581
2533
  ...props,
2582
2534
  children: showInlineLoadingText ? /* @__PURE__ */ jsxs5("span", { className: "rs-button__loading-row", children: [
2583
- /* @__PURE__ */ jsx8(Spinner, { className: "rs-spinner--sm" }),
2584
- /* @__PURE__ */ jsx8("span", { children: loadingText })
2585
- ] }) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
2586
- /* @__PURE__ */ jsx8("span", { className: loading ? "rs-button__content--hidden" : "", children }),
2587
- loading && /* @__PURE__ */ jsx8("span", { className: "rs-button__spinner", children: /* @__PURE__ */ jsx8(Spinner, { className: "rs-spinner--sm" }) })
2535
+ /* @__PURE__ */ jsx7(Spinner, { className: "rs-spinner--sm" }),
2536
+ /* @__PURE__ */ jsx7("span", { children: loadingText })
2537
+ ] }) : /* @__PURE__ */ jsxs5(Fragment, { children: [
2538
+ /* @__PURE__ */ jsx7("span", { className: loading ? "rs-button__content--hidden" : "", children }),
2539
+ loading && /* @__PURE__ */ jsx7("span", { className: "rs-button__spinner", children: /* @__PURE__ */ jsx7(Spinner, { className: "rs-spinner--sm" }) })
2588
2540
  ] })
2589
2541
  }
2590
2542
  );
@@ -2592,9 +2544,9 @@ function Button({
2592
2544
  Button.displayName = "Button";
2593
2545
 
2594
2546
  // src/components/ui/Callout.tsx
2595
- import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
2547
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
2596
2548
  function CircleAlertIcon() {
2597
- return /* @__PURE__ */ jsx9(
2549
+ return /* @__PURE__ */ jsx8(
2598
2550
  "svg",
2599
2551
  {
2600
2552
  width: "16",
@@ -2603,7 +2555,7 @@ function CircleAlertIcon() {
2603
2555
  fill: "none",
2604
2556
  xmlns: "http://www.w3.org/2000/svg",
2605
2557
  "aria-hidden": "true",
2606
- children: /* @__PURE__ */ jsx9(
2558
+ children: /* @__PURE__ */ jsx8(
2607
2559
  "path",
2608
2560
  {
2609
2561
  d: "M10 5.99L6 9.99M6 5.99L10 9.99M14.66 7.99C14.66 11.68 11.68 14.66 8 14.66C4.31 14.66 1.33 11.68 1.33 7.99C1.33 4.31 4.31 1.33 8 1.33C11.68 1.33 14.66 4.31 14.66 7.99Z",
@@ -2623,28 +2575,14 @@ function Callout({ variant = "error", children, role }) {
2623
2575
  className: `rs-callout rs-callout--${variant}`,
2624
2576
  role: role ?? (variant === "error" ? "alert" : "status"),
2625
2577
  children: [
2626
- /* @__PURE__ */ jsx9("span", { className: "rs-callout-icon", children: variant === "error" ? /* @__PURE__ */ jsx9(CircleAlertIcon, {}) : /* @__PURE__ */ jsx9(AlertTriangleIcon, {}) }),
2627
- /* @__PURE__ */ jsx9("span", { className: "rs-callout-text", children })
2578
+ /* @__PURE__ */ jsx8("span", { className: "rs-callout-icon", children: variant === "error" ? /* @__PURE__ */ jsx8(CircleAlertIcon, {}) : /* @__PURE__ */ jsx8(AlertTriangleIcon, {}) }),
2579
+ /* @__PURE__ */ jsx8("span", { className: "rs-callout-text", children })
2628
2580
  ]
2629
2581
  }
2630
2582
  );
2631
2583
  }
2632
2584
  Callout.displayName = "Callout";
2633
2585
 
2634
- // src/components/ui/TokenIcon.tsx
2635
- import { jsx as jsx10 } from "react/jsx-runtime";
2636
- function TokenIcon({ symbol, className, fallback }) {
2637
- return /* @__PURE__ */ jsx10(
2638
- CdnIcon,
2639
- {
2640
- src: tokenIconUrl(symbol),
2641
- className: `rs-token-icon ${className ?? ""}`.trimEnd(),
2642
- fallback
2643
- }
2644
- );
2645
- }
2646
- TokenIcon.displayName = "TokenIcon";
2647
-
2648
2586
  // src/core/formatters.ts
2649
2587
  var currencyFormatter = new Intl.NumberFormat("en-US", {
2650
2588
  style: "currency",
@@ -3242,7 +3180,7 @@ function resolveProxyOrigin(backendUrl) {
3242
3180
  }
3243
3181
 
3244
3182
  // src/core/analytics.tsx
3245
- import { jsx as jsx11 } from "react/jsx-runtime";
3183
+ import { jsx as jsx9 } from "react/jsx-runtime";
3246
3184
  var AnalyticsContext = createContext3(null);
3247
3185
  var noopDepositEmitter = () => {
3248
3186
  };
@@ -3417,7 +3355,7 @@ function AnalyticsSession(props) {
3417
3355
  () => modal === "deposit" ? { modal, emit: emitDeposit } : modal === "withdraw" ? { modal, emit: emitWithdraw } : { modal, emit: emitClaim },
3418
3356
  [modal, emitDeposit, emitWithdraw, emitClaim]
3419
3357
  );
3420
- return /* @__PURE__ */ jsx11(AnalyticsContext.Provider, { value: context, children: props.children });
3358
+ return /* @__PURE__ */ jsx9(AnalyticsContext.Provider, { value: context, children: props.children });
3421
3359
  }
3422
3360
  function useDepositAnalyticsEmitter() {
3423
3361
  const context = useContext3(AnalyticsContext);
@@ -3623,6 +3561,68 @@ function checkBackendUrl(component, backendUrl) {
3623
3561
  );
3624
3562
  }
3625
3563
 
3564
+ // src/components/ui/CdnIcon.tsx
3565
+ import { useState as useState2 } from "react";
3566
+ import { Fragment as Fragment2, jsx as jsx10 } from "react/jsx-runtime";
3567
+ function preconnectIconCdn() {
3568
+ if (typeof document === "undefined") return;
3569
+ if (document.getElementById("rs-icon-cdn-preconnect")) return;
3570
+ const link = document.createElement("link");
3571
+ link.id = "rs-icon-cdn-preconnect";
3572
+ link.rel = "preconnect";
3573
+ link.href = ICON_CDN;
3574
+ link.crossOrigin = "anonymous";
3575
+ document.head.appendChild(link);
3576
+ }
3577
+ preconnectIconCdn();
3578
+ function CdnIcon({
3579
+ src,
3580
+ alt = "",
3581
+ className,
3582
+ fallback,
3583
+ loading = "eager"
3584
+ }) {
3585
+ const [loadedSrc, setLoadedSrc] = useState2(null);
3586
+ const [erroredSrc, setErroredSrc] = useState2(null);
3587
+ if (!src || erroredSrc === src) {
3588
+ return /* @__PURE__ */ jsx10(Fragment2, { children: fallback });
3589
+ }
3590
+ const isLoading = loadedSrc !== src;
3591
+ const settleIfAlreadyComplete = (el) => {
3592
+ if (el?.complete) setLoadedSrc(src);
3593
+ };
3594
+ return /* @__PURE__ */ jsx10(
3595
+ "img",
3596
+ {
3597
+ ref: settleIfAlreadyComplete,
3598
+ src,
3599
+ alt,
3600
+ className: `rs-cdn-icon ${className ?? ""}`.trimEnd(),
3601
+ loading,
3602
+ decoding: "async",
3603
+ "data-loading": isLoading ? "" : void 0,
3604
+ onLoad: () => setLoadedSrc(src),
3605
+ onError: () => setErroredSrc(src)
3606
+ },
3607
+ src
3608
+ );
3609
+ }
3610
+ CdnIcon.displayName = "CdnIcon";
3611
+
3612
+ // src/components/ui/TokenIcon.tsx
3613
+ import { jsx as jsx11 } from "react/jsx-runtime";
3614
+ function TokenIcon({ symbol, className, fallback }) {
3615
+ return /* @__PURE__ */ jsx11(
3616
+ CdnIcon,
3617
+ {
3618
+ src: tokenIconUrl(symbol),
3619
+ className: `rs-token-icon ${className ?? ""}`.trimEnd(),
3620
+ fallback
3621
+ }
3622
+ );
3623
+ }
3624
+ TokenIcon.displayName = "TokenIcon";
3625
+
3626
3626
  export {
3627
3627
  Modal,
3628
3628
  WalletIcon,
@@ -5,7 +5,7 @@ import {
5
5
  isSubmissionUncertain,
6
6
  useTokenPrices,
7
7
  warnRemovedProps
8
- } from "./chunk-SSODFKQC.mjs";
8
+ } from "./chunk-ZJKENYOD.mjs";
9
9
  import {
10
10
  AnalyticsSession,
11
11
  BodyHeader,
@@ -41,7 +41,7 @@ import {
41
41
  useStableRpcUrls,
42
42
  useTargetTokens,
43
43
  useWithdrawAnalyticsEmitter
44
- } from "./chunk-ULDG2NFL.mjs";
44
+ } from "./chunk-DHGJHRBX.mjs";
45
45
  import {
46
46
  NATIVE_TOKEN_ADDRESS,
47
47
  getChainIcon,