@rhinestone/deposit-modal 0.1.47 → 0.1.48

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.
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-7U5TNZZB.mjs";
3
+ } from "./chunk-ZAQISJAP.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-JGB6XSYS.mjs";
8
- import "./chunk-QIK6ONMQ.mjs";
8
+ import "./chunk-FKNYONM2.mjs";
9
9
  import "./chunk-ZJQZEIHA.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLOOU3NCIcjs = require('./chunk-LOOU3NCI.cjs');
3
+ var _chunkZK6VAHSBcjs = require('./chunk-ZK6VAHSB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkXLRQCIYDcjs = require('./chunk-XLRQCIYD.cjs');
8
- require('./chunk-LT3QKJI2.cjs');
8
+ require('./chunk-7HJ7IBRH.cjs');
9
9
  require('./chunk-NELAYNA3.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -29,7 +29,7 @@ function DepositModalWithReown(props) {
29
29
  reown.disconnect();
30
30
  }, [reown.disconnect]);
31
31
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
32
- _chunkLOOU3NCIcjs.DepositModalInner,
32
+ _chunkZK6VAHSBcjs.DepositModalInner,
33
33
  {
34
34
  ...props,
35
35
  reownWallet: reownWithSolana,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-O3VFAUSL.mjs";
3
+ } from "./chunk-HCZNF6CR.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-JGB6XSYS.mjs";
8
- import "./chunk-QIK6ONMQ.mjs";
8
+ import "./chunk-FKNYONM2.mjs";
9
9
  import "./chunk-ZJQZEIHA.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMS2J6M5Ccjs = require('./chunk-MS2J6M5C.cjs');
3
+ var _chunkPW55TOFKcjs = require('./chunk-PW55TOFK.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkXLRQCIYDcjs = require('./chunk-XLRQCIYD.cjs');
8
- require('./chunk-LT3QKJI2.cjs');
8
+ require('./chunk-7HJ7IBRH.cjs');
9
9
  require('./chunk-NELAYNA3.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
20
20
  reown.disconnect();
21
21
  }, [reown.disconnect]);
22
22
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunkMS2J6M5Ccjs.WithdrawModalInner,
23
+ _chunkPW55TOFKcjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -1572,7 +1572,7 @@ function ProcessingStep({
1572
1572
  return;
1573
1573
  }
1574
1574
  processTimeoutRef.current = setTimeout(() => {
1575
- const message = "We couldn't confirm your transfer. Please contact support if funds do not arrive.";
1575
+ const message = "Transfer is taking longer than expected. Your funds are safe and our team has been notified.";
1576
1576
  debugLog(debug, "processing", "state:timeout", {
1577
1577
  txHash,
1578
1578
  timeoutMs: PROCESS_TIMEOUT_MS
@@ -1587,7 +1587,7 @@ function ProcessingStep({
1587
1587
  }
1588
1588
  };
1589
1589
  }, [debug, directTransfer, state.type, txHash, onError]);
1590
- const isError = state.type === "error" || state.type === "failed";
1590
+ const isDelayed = state.type === "error" || state.type === "failed";
1591
1591
  const isComplete = state.type === "complete";
1592
1592
  const isProcessing = state.type === "processing";
1593
1593
  const lastEvent = state.type === "processing" || state.type === "complete" || state.type === "failed" ? state.lastEvent : void 0;
@@ -1799,8 +1799,8 @@ function ProcessingStep({
1799
1799
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1800
1800
  "div",
1801
1801
  {
1802
- className: `rs-step-icon ${isError ? "rs-step-icon--error" : "rs-step-icon--accent"}`,
1803
- children: isError ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1802
+ className: `rs-step-icon ${isDelayed ? "rs-step-icon--warning" : "rs-step-icon--accent"}`,
1803
+ children: isDelayed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1804
1804
  "svg",
1805
1805
  {
1806
1806
  viewBox: "0 0 24 24",
@@ -1812,32 +1812,19 @@ function ProcessingStep({
1812
1812
  {
1813
1813
  strokeLinecap: "round",
1814
1814
  strokeLinejoin: "round",
1815
- d: "M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"
1815
+ d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
1816
1816
  }
1817
1817
  )
1818
1818
  }
1819
1819
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Spinner, {})
1820
1820
  }
1821
1821
  ),
1822
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1823
- "div",
1824
- {
1825
- className: `rs-step-title ${isError ? "rs-step-title--error" : ""}`,
1826
- children: isError ? `${flowCapitalized} Failed` : `Bridging ${flowCapitalized}`
1827
- }
1828
- )
1822
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-title", children: isDelayed ? `${flowCapitalized} taking longer than expected` : `Bridging ${flowCapitalized}` })
1829
1823
  ] }),
1830
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1831
- "div",
1832
- {
1833
- className: `rs-step-description ${isError ? "rs-text-error" : "rs-text-secondary"}`,
1834
- children: [
1835
- state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _104 => _104.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _105 => _105.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkNELAYNA3cjs.getChainName.call(void 0, targetChain)}.`),
1836
- state.type === "failed" && state.message,
1837
- state.type === "error" && state.message
1838
- ]
1839
- }
1840
- )
1824
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-description rs-text-secondary", children: [
1825
+ state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _104 => _104.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _105 => _105.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkNELAYNA3cjs.getChainName.call(void 0, targetChain)}.`),
1826
+ (state.type === "failed" || state.type === "error") && "Your funds are safe. Our team has been notified and is working to complete your transfer."
1827
+ ] })
1841
1828
  ] }),
1842
1829
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-space-y-3", children: [
1843
1830
  isProcessing && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -1879,7 +1866,39 @@ function ProcessingStep({
1879
1866
  }
1880
1867
  )
1881
1868
  ] }),
1869
+ isDelayed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-alert rs-alert--info", children: [
1870
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1871
+ "svg",
1872
+ {
1873
+ className: "rs-alert-icon",
1874
+ viewBox: "0 0 24 24",
1875
+ fill: "none",
1876
+ stroke: "currentColor",
1877
+ strokeWidth: "2",
1878
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1879
+ "path",
1880
+ {
1881
+ strokeLinecap: "round",
1882
+ strokeLinejoin: "round",
1883
+ d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
1884
+ }
1885
+ )
1886
+ }
1887
+ ),
1888
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-alert-text", children: "You can safely close this window. Your funds are secure and the transfer will be completed automatically." })
1889
+ ] }),
1882
1890
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card", children: [
1891
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card-row", children: [
1892
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-card-label", children: "Status" }),
1893
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1894
+ "span",
1895
+ {
1896
+ className: "rs-card-value",
1897
+ style: { color: isDelayed ? "var(--color-amber8, #e2a336)" : void 0 },
1898
+ children: isDelayed ? "Processing" : "In progress"
1899
+ }
1900
+ )
1901
+ ] }),
1883
1902
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card-row", children: [
1884
1903
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-card-label", children: "Source" }),
1885
1904
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -1956,10 +1975,7 @@ function ProcessingStep({
1956
1975
  ] })
1957
1976
  ] })
1958
1977
  ] }),
1959
- isError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-footer", style: { gap: 8, display: "flex" }, children: [
1960
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Close" }),
1961
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { onClick: onNewDeposit, fullWidth: true, children: "Try Again" })
1962
- ] }),
1978
+ isDelayed && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { onClick: onClose, fullWidth: true, children: "Close" }) }),
1963
1979
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PoweredBy, {})
1964
1980
  ] });
1965
1981
  }
@@ -1572,7 +1572,7 @@ function ProcessingStep({
1572
1572
  return;
1573
1573
  }
1574
1574
  processTimeoutRef.current = setTimeout(() => {
1575
- const message = "We couldn't confirm your transfer. Please contact support if funds do not arrive.";
1575
+ const message = "Transfer is taking longer than expected. Your funds are safe and our team has been notified.";
1576
1576
  debugLog(debug, "processing", "state:timeout", {
1577
1577
  txHash,
1578
1578
  timeoutMs: PROCESS_TIMEOUT_MS
@@ -1587,7 +1587,7 @@ function ProcessingStep({
1587
1587
  }
1588
1588
  };
1589
1589
  }, [debug, directTransfer, state.type, txHash, onError]);
1590
- const isError = state.type === "error" || state.type === "failed";
1590
+ const isDelayed = state.type === "error" || state.type === "failed";
1591
1591
  const isComplete = state.type === "complete";
1592
1592
  const isProcessing = state.type === "processing";
1593
1593
  const lastEvent = state.type === "processing" || state.type === "complete" || state.type === "failed" ? state.lastEvent : void 0;
@@ -1799,8 +1799,8 @@ function ProcessingStep({
1799
1799
  /* @__PURE__ */ jsx7(
1800
1800
  "div",
1801
1801
  {
1802
- className: `rs-step-icon ${isError ? "rs-step-icon--error" : "rs-step-icon--accent"}`,
1803
- children: isError ? /* @__PURE__ */ jsx7(
1802
+ className: `rs-step-icon ${isDelayed ? "rs-step-icon--warning" : "rs-step-icon--accent"}`,
1803
+ children: isDelayed ? /* @__PURE__ */ jsx7(
1804
1804
  "svg",
1805
1805
  {
1806
1806
  viewBox: "0 0 24 24",
@@ -1812,32 +1812,19 @@ function ProcessingStep({
1812
1812
  {
1813
1813
  strokeLinecap: "round",
1814
1814
  strokeLinejoin: "round",
1815
- d: "M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"
1815
+ d: "M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
1816
1816
  }
1817
1817
  )
1818
1818
  }
1819
1819
  ) : /* @__PURE__ */ jsx7(Spinner, {})
1820
1820
  }
1821
1821
  ),
1822
- /* @__PURE__ */ jsx7(
1823
- "div",
1824
- {
1825
- className: `rs-step-title ${isError ? "rs-step-title--error" : ""}`,
1826
- children: isError ? `${flowCapitalized} Failed` : `Bridging ${flowCapitalized}`
1827
- }
1828
- )
1822
+ /* @__PURE__ */ jsx7("div", { className: "rs-step-title", children: isDelayed ? `${flowCapitalized} taking longer than expected` : `Bridging ${flowCapitalized}` })
1829
1823
  ] }),
1830
- /* @__PURE__ */ jsxs6(
1831
- "div",
1832
- {
1833
- className: `rs-step-description ${isError ? "rs-text-error" : "rs-text-secondary"}`,
1834
- children: [
1835
- state.type === "processing" && (lastEvent?.type === "deposit-received" ? "Transfer received. Preparing bridge..." : lastEvent?.type === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${getChainName(targetChain)}.`),
1836
- state.type === "failed" && state.message,
1837
- state.type === "error" && state.message
1838
- ]
1839
- }
1840
- )
1824
+ /* @__PURE__ */ jsxs6("div", { className: "rs-step-description rs-text-secondary", children: [
1825
+ state.type === "processing" && (lastEvent?.type === "deposit-received" ? "Transfer received. Preparing bridge..." : lastEvent?.type === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${getChainName(targetChain)}.`),
1826
+ (state.type === "failed" || state.type === "error") && "Your funds are safe. Our team has been notified and is working to complete your transfer."
1827
+ ] })
1841
1828
  ] }),
1842
1829
  /* @__PURE__ */ jsxs6("div", { className: "rs-step-body rs-space-y-3", children: [
1843
1830
  isProcessing && /* @__PURE__ */ jsxs6(Fragment, { children: [
@@ -1879,7 +1866,39 @@ function ProcessingStep({
1879
1866
  }
1880
1867
  )
1881
1868
  ] }),
1869
+ isDelayed && /* @__PURE__ */ jsxs6("div", { className: "rs-alert rs-alert--info", children: [
1870
+ /* @__PURE__ */ jsx7(
1871
+ "svg",
1872
+ {
1873
+ className: "rs-alert-icon",
1874
+ viewBox: "0 0 24 24",
1875
+ fill: "none",
1876
+ stroke: "currentColor",
1877
+ strokeWidth: "2",
1878
+ children: /* @__PURE__ */ jsx7(
1879
+ "path",
1880
+ {
1881
+ strokeLinecap: "round",
1882
+ strokeLinejoin: "round",
1883
+ d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
1884
+ }
1885
+ )
1886
+ }
1887
+ ),
1888
+ /* @__PURE__ */ jsx7("p", { className: "rs-alert-text", children: "You can safely close this window. Your funds are secure and the transfer will be completed automatically." })
1889
+ ] }),
1882
1890
  /* @__PURE__ */ jsxs6("div", { className: "rs-card", children: [
1891
+ /* @__PURE__ */ jsxs6("div", { className: "rs-card-row", children: [
1892
+ /* @__PURE__ */ jsx7("span", { className: "rs-card-label", children: "Status" }),
1893
+ /* @__PURE__ */ jsx7(
1894
+ "span",
1895
+ {
1896
+ className: "rs-card-value",
1897
+ style: { color: isDelayed ? "var(--color-amber8, #e2a336)" : void 0 },
1898
+ children: isDelayed ? "Processing" : "In progress"
1899
+ }
1900
+ )
1901
+ ] }),
1883
1902
  /* @__PURE__ */ jsxs6("div", { className: "rs-card-row", children: [
1884
1903
  /* @__PURE__ */ jsx7("span", { className: "rs-card-label", children: "Source" }),
1885
1904
  /* @__PURE__ */ jsxs6(
@@ -1956,10 +1975,7 @@ function ProcessingStep({
1956
1975
  ] })
1957
1976
  ] })
1958
1977
  ] }),
1959
- isError && /* @__PURE__ */ jsxs6("div", { className: "rs-step-footer", style: { gap: 8, display: "flex" }, children: [
1960
- /* @__PURE__ */ jsx7(Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Close" }),
1961
- /* @__PURE__ */ jsx7(Button, { onClick: onNewDeposit, fullWidth: true, children: "Try Again" })
1962
- ] }),
1978
+ isDelayed && /* @__PURE__ */ jsx7("div", { className: "rs-step-footer", children: /* @__PURE__ */ jsx7(Button, { onClick: onClose, fullWidth: true, children: "Close" }) }),
1963
1979
  /* @__PURE__ */ jsx7(PoweredBy, {})
1964
1980
  ] });
1965
1981
  }
@@ -20,7 +20,7 @@ import {
20
20
  loadSessionOwnerFromStorage,
21
21
  saveSessionOwnerToStorage,
22
22
  toEvmCaip2
23
- } from "./chunk-QIK6ONMQ.mjs";
23
+ } from "./chunk-FKNYONM2.mjs";
24
24
  import {
25
25
  DEFAULT_BACKEND_URL,
26
26
  DEFAULT_SIGNER_ADDRESS,
@@ -1422,7 +1422,7 @@ function WithdrawFlow({
1422
1422
  // src/WithdrawModal.tsx
1423
1423
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1424
1424
  var ReownWithdrawInner = lazy(
1425
- () => import("./WithdrawModalReown-XOFREB4D.mjs").then((m) => ({
1425
+ () => import("./WithdrawModalReown-FODH7PY5.mjs").then((m) => ({
1426
1426
  default: m.WithdrawModalReown
1427
1427
  }))
1428
1428
  );
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkLT3QKJI2cjs = require('./chunk-LT3QKJI2.cjs');
23
+ var _chunk7HJ7IBRHcjs = require('./chunk-7HJ7IBRH.cjs');
24
24
 
25
25
 
26
26
 
@@ -141,7 +141,7 @@ function WithdrawFormStep({
141
141
  setIsSwitching(true);
142
142
  switchChain(asset.chainId).catch((err) => {
143
143
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
144
- setError(_chunkLT3QKJI2cjs.formatUserError.call(void 0, raw));
144
+ setError(_chunk7HJ7IBRHcjs.formatUserError.call(void 0, raw));
145
145
  }).finally(() => {
146
146
  setIsSwitching(false);
147
147
  });
@@ -161,7 +161,7 @@ function WithdrawFormStep({
161
161
  return;
162
162
  }
163
163
  try {
164
- const bal = _chunkLT3QKJI2cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
164
+ const bal = _chunk7HJ7IBRHcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
165
165
  address: asset.token,
166
166
  abi: _viem.erc20Abi,
167
167
  functionName: "balanceOf",
@@ -264,7 +264,7 @@ function WithdrawFormStep({
264
264
  await onSubmit(recipient, amount);
265
265
  } catch (err) {
266
266
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
267
- setError(_chunkLT3QKJI2cjs.formatUserError.call(void 0, raw));
267
+ setError(_chunk7HJ7IBRHcjs.formatUserError.call(void 0, raw));
268
268
  } finally {
269
269
  setIsSubmitting(false);
270
270
  }
@@ -272,11 +272,11 @@ function WithdrawFormStep({
272
272
  if (isBalanceLoading) {
273
273
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
274
274
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
275
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLT3QKJI2cjs.Spinner, { className: "rs-spinner--lg" }),
275
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7HJ7IBRHcjs.Spinner, { className: "rs-spinner--lg" }),
276
276
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
277
277
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
278
278
  ] }),
279
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLT3QKJI2cjs.PoweredBy, {})
279
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7HJ7IBRHcjs.PoweredBy, {})
280
280
  ] });
281
281
  }
282
282
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
@@ -372,7 +372,7 @@ function WithdrawFormStep({
372
372
  ] })
373
373
  ] }),
374
374
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
375
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkLT3QKJI2cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
375
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunk7HJ7IBRHcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
376
376
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
377
377
  formattedBalance,
378
378
  " ",
@@ -565,7 +565,7 @@ function WithdrawFormStep({
565
565
  ] })
566
566
  ] }),
567
567
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
568
- _chunkLT3QKJI2cjs.Button,
568
+ _chunk7HJ7IBRHcjs.Button,
569
569
  {
570
570
  onClick: handleWithdraw,
571
571
  fullWidth: true,
@@ -574,7 +574,7 @@ function WithdrawFormStep({
574
574
  children: isBusy ? "Preparing..." : "Withdraw"
575
575
  }
576
576
  ) }),
577
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLT3QKJI2cjs.PoweredBy, {})
577
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7HJ7IBRHcjs.PoweredBy, {})
578
578
  ] });
579
579
  }
580
580
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -905,13 +905,13 @@ function WithdrawFlow({
905
905
  const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
906
906
  const logFlow = _react.useCallback.call(void 0,
907
907
  (message, data) => {
908
- _chunkLT3QKJI2cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
908
+ _chunk7HJ7IBRHcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
909
909
  },
910
910
  [debug]
911
911
  );
912
912
  const logFlowError = _react.useCallback.call(void 0,
913
913
  (message, error, data) => {
914
- _chunkLT3QKJI2cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
914
+ _chunk7HJ7IBRHcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
915
915
  },
916
916
  [debug]
917
917
  );
@@ -970,14 +970,14 @@ function WithdrawFlow({
970
970
  return {
971
971
  ownerAddress: dappAddress,
972
972
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
973
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain))),
973
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7HJ7IBRHcjs.getPublicClient.call(void 0, sourceChain))),
974
974
  switchChain: dappSwitchChain
975
975
  };
976
976
  }
977
977
  return {
978
978
  ownerAddress: dappWalletClient.account.address,
979
979
  walletClient: dappWalletClient,
980
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain))),
980
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7HJ7IBRHcjs.getPublicClient.call(void 0, sourceChain))),
981
981
  switchChain: dappSwitchChain
982
982
  };
983
983
  }
@@ -988,7 +988,7 @@ function WithdrawFlow({
988
988
  return {
989
989
  ownerAddress: dappWalletClient.account.address,
990
990
  walletClient: dappWalletClient,
991
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain))),
991
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7HJ7IBRHcjs.getPublicClient.call(void 0, sourceChain))),
992
992
  switchChain: dappSwitchChain
993
993
  };
994
994
  }
@@ -1018,7 +1018,7 @@ function WithdrawFlow({
1018
1018
  const symbol = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1019
1019
  const decimals = _chunkNELAYNA3cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1020
1020
  return {
1021
- id: _chunkLT3QKJI2cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1021
+ id: _chunk7HJ7IBRHcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1022
1022
  chainId: sourceChain,
1023
1023
  token: sourceToken,
1024
1024
  symbol,
@@ -1068,15 +1068,15 @@ function WithdrawFlow({
1068
1068
  [logFlowError, onError]
1069
1069
  );
1070
1070
  const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
1071
- const localOwner = _chunkLT3QKJI2cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1071
+ const localOwner = _chunk7HJ7IBRHcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1072
1072
  if (localOwner) {
1073
1073
  return {
1074
- account: _chunkLT3QKJI2cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1074
+ account: _chunk7HJ7IBRHcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1075
1075
  address: localOwner.address
1076
1076
  };
1077
1077
  }
1078
- const created = _chunkLT3QKJI2cjs.createSessionOwnerKey.call(void 0, );
1079
- _chunkLT3QKJI2cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1078
+ const created = _chunk7HJ7IBRHcjs.createSessionOwnerKey.call(void 0, );
1079
+ _chunk7HJ7IBRHcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1080
1080
  return {
1081
1081
  account: created.account,
1082
1082
  address: created.address
@@ -1106,7 +1106,7 @@ function WithdrawFlow({
1106
1106
  const setup = await service.setupAccount({
1107
1107
  ownerAddress: ownerAddress2,
1108
1108
  sessionOwnerAddress: sessionOwner.address,
1109
- targetChain: _chunkLT3QKJI2cjs.toEvmCaip2.call(void 0, targetChain),
1109
+ targetChain: _chunk7HJ7IBRHcjs.toEvmCaip2.call(void 0, targetChain),
1110
1110
  targetToken,
1111
1111
  signerAddress,
1112
1112
  sessionChainIds,
@@ -1133,7 +1133,7 @@ function WithdrawFlow({
1133
1133
  primaryType: typedData.primaryType,
1134
1134
  message: typedData.message
1135
1135
  });
1136
- const sessionDetails = _chunkLT3QKJI2cjs.buildSessionDetails.call(void 0,
1136
+ const sessionDetails = _chunk7HJ7IBRHcjs.buildSessionDetails.call(void 0,
1137
1137
  setup.sessionDetailsUnsigned,
1138
1138
  signature
1139
1139
  );
@@ -1147,7 +1147,7 @@ function WithdrawFlow({
1147
1147
  eoaAddress: ownerAddress2,
1148
1148
  sessionOwner: sessionOwner.address,
1149
1149
  target: {
1150
- chain: _chunkLT3QKJI2cjs.toEvmCaip2.call(void 0, targetChain),
1150
+ chain: _chunk7HJ7IBRHcjs.toEvmCaip2.call(void 0, targetChain),
1151
1151
  token: targetToken,
1152
1152
  recipient
1153
1153
  }
@@ -1156,7 +1156,7 @@ function WithdrawFlow({
1156
1156
  }
1157
1157
  handleConnected(ownerAddress2, smartAccount);
1158
1158
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1159
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain)));
1159
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunk7HJ7IBRHcjs.getPublicClient.call(void 0, sourceChain)));
1160
1160
  let result;
1161
1161
  if (onSignTransaction) {
1162
1162
  const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
@@ -1179,7 +1179,7 @@ function WithdrawFlow({
1179
1179
  const { signature } = await onSignTransaction(request);
1180
1180
  const relayResult = await service.relayWithdraw({
1181
1181
  smartAccount,
1182
- chainId: _chunkLT3QKJI2cjs.toEvmCaip2.call(void 0, sourceChain),
1182
+ chainId: _chunk7HJ7IBRHcjs.toEvmCaip2.call(void 0, sourceChain),
1183
1183
  safeAddress,
1184
1184
  safeTransaction: request.typedData.message,
1185
1185
  signature
@@ -1237,7 +1237,7 @@ function WithdrawFlow({
1237
1237
  targetChain,
1238
1238
  targetToken
1239
1239
  });
1240
- handleError(_chunkLT3QKJI2cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1240
+ handleError(_chunk7HJ7IBRHcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1241
1241
  throw err;
1242
1242
  } finally {
1243
1243
  setIsSubmitting(false);
@@ -1347,7 +1347,7 @@ function WithdrawFlow({
1347
1347
  }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _37 => _37.icon])]);
1348
1348
  if (showConnectStep) {
1349
1349
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1350
- _chunkLT3QKJI2cjs.ConnectStep,
1350
+ _chunk7HJ7IBRHcjs.ConnectStep,
1351
1351
  {
1352
1352
  walletOptions,
1353
1353
  selectedWalletId: selectedWalletIdEffective,
@@ -1370,7 +1370,7 @@ function WithdrawFlow({
1370
1370
  const resolvedOwnerAddress = signerContext.ownerAddress;
1371
1371
  const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _38 => _38.walletClient, 'optionalAccess', _39 => _39.account, 'optionalAccess', _40 => _40.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _41 => _41.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _42 => _42.account, 'optionalAccess', _43 => _43.address]))), () => ( resolvedOwnerAddress));
1372
1372
  const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
1373
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain)));
1373
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunk7HJ7IBRHcjs.getPublicClient.call(void 0, sourceChain)));
1374
1374
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1375
1375
  step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1376
1376
  WithdrawFormStep,
@@ -1397,7 +1397,7 @@ function WithdrawFlow({
1397
1397
  }
1398
1398
  ),
1399
1399
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1400
- _chunkLT3QKJI2cjs.ProcessingStep,
1400
+ _chunk7HJ7IBRHcjs.ProcessingStep,
1401
1401
  {
1402
1402
  smartAccount: step.smartAccount,
1403
1403
  txHash: step.txHash,
@@ -1422,7 +1422,7 @@ function WithdrawFlow({
1422
1422
  // src/WithdrawModal.tsx
1423
1423
 
1424
1424
  var ReownWithdrawInner = _react.lazy.call(void 0,
1425
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-FGUHFUVN.cjs"))).then((m) => ({
1425
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-ZSR3RP44.cjs"))).then((m) => ({
1426
1426
  default: m.WithdrawModalReown
1427
1427
  }))
1428
1428
  );
@@ -1478,12 +1478,12 @@ function WithdrawModalInner({
1478
1478
  const targetChain = _chunkNELAYNA3cjs.getChainId.call(void 0, targetChainProp);
1479
1479
  const sourceChain = _chunkNELAYNA3cjs.getChainId.call(void 0, sourceChainProp);
1480
1480
  const service = _react.useMemo.call(void 0,
1481
- () => _chunkLT3QKJI2cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1481
+ () => _chunk7HJ7IBRHcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1482
1482
  [backendUrl, debug]
1483
1483
  );
1484
1484
  _react.useEffect.call(void 0, () => {
1485
1485
  if (isOpen && modalRef.current) {
1486
- _chunkLT3QKJI2cjs.applyTheme.call(void 0, modalRef.current, theme);
1486
+ _chunk7HJ7IBRHcjs.applyTheme.call(void 0, modalRef.current, theme);
1487
1487
  }
1488
1488
  }, [isOpen, theme]);
1489
1489
  const hasCalledReady = _react.useRef.call(void 0, false);
@@ -1519,7 +1519,7 @@ function WithdrawModalInner({
1519
1519
  const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _52 => _52.title]), () => ( "Withdraw"));
1520
1520
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
1521
1521
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1522
- _chunkLT3QKJI2cjs.Modal,
1522
+ _chunk7HJ7IBRHcjs.Modal,
1523
1523
  {
1524
1524
  isOpen,
1525
1525
  onClose,
@@ -1577,7 +1577,7 @@ function WithdrawModalInner({
1577
1577
  ] }),
1578
1578
  balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
1579
1579
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
1580
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkLT3QKJI2cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1580
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunk7HJ7IBRHcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1581
1581
  ] })
1582
1582
  ] }),
1583
1583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,