@nowramp/form 0.1.65 → 0.1.67

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/index.js CHANGED
@@ -9,13 +9,13 @@
9
9
  document.head.appendChild(s);
10
10
  })();
11
11
  import { jsx as e, jsxs as r, Fragment as le } from "react/jsx-runtime";
12
- import Xe, { useState as N, useRef as X, useCallback as O, useEffect as D, useMemo as G, useReducer as nn, useContext as an, createContext as rn } from "react";
12
+ import Xe, { useState as N, useRef as X, useCallback as H, useEffect as D, useMemo as G, useReducer as nn, useContext as an, createContext as rn } from "react";
13
13
  import { RampApi as We } from "@nowramp/sdk";
14
14
  import { createPortal as St } from "react-dom";
15
15
  function on(t, n) {
16
16
  const [a, o] = N(null), [l, i] = N(!0), [m, c] = N(null), d = X(null);
17
17
  (!d.current || d.current !== t) && (d.current = new We({ apiKey: "", ...t }));
18
- const p = O(async () => {
18
+ const p = H(async () => {
19
19
  if (!t.projectId) {
20
20
  c(new Error("projectId is required")), i(!1);
21
21
  return;
@@ -53,7 +53,7 @@ function ln(t, n) {
53
53
  }
54
54
  );
55
55
  }, [t.projectId, n == null ? void 0 : n.fiatCurrency, n == null ? void 0 : n.fiatAmount, n == null ? void 0 : n.cryptoAmount, n == null ? void 0 : n.cryptoCurrency, n == null ? void 0 : n.network, n == null ? void 0 : n.paymentMethodId, n == null ? void 0 : n.country, n == null ? void 0 : n.orderType]);
56
- const f = O(async () => {
56
+ const f = H(async () => {
57
57
  if (!(!n || !t.projectId)) {
58
58
  i(!0), c(null);
59
59
  try {
@@ -71,7 +71,7 @@ function ln(t, n) {
71
71
  function sn(t) {
72
72
  const [n, a] = N(null), [o, l] = N(!1), [i, m] = N(null), c = X(null), d = X(""), p = `${t.apiUrl}|${t.projectId}`;
73
73
  (!c.current || d.current !== p) && (c.current = new We({ apiKey: "", ...t }), d.current = p);
74
- const h = O(async (f) => {
74
+ const h = H(async (f) => {
75
75
  l(!0), m(null);
76
76
  try {
77
77
  const g = await c.current.createCheckoutIntent(f);
@@ -82,7 +82,7 @@ function sn(t) {
82
82
  } finally {
83
83
  l(!1);
84
84
  }
85
- }, []), u = O(() => {
85
+ }, []), u = H(() => {
86
86
  a(null), m(null);
87
87
  }, []);
88
88
  return { order: n, loading: o, error: i, createOrder: h, reset: u };
@@ -90,7 +90,7 @@ function sn(t) {
90
90
  function cn(t, n, a) {
91
91
  const [o, l] = N(null), [i, m] = N(!1), [c, d] = N(null), p = X(null);
92
92
  p.current || (p.current = new We({ apiKey: "", projectId: "", ...t }));
93
- const h = O(async () => {
93
+ const h = H(async () => {
94
94
  if (n) {
95
95
  m(!0), d(null);
96
96
  try {
@@ -230,7 +230,7 @@ function un({
230
230
  cryptoAmount: Rt(h, 6),
231
231
  walletAddress: u,
232
232
  customerId: l
233
- }), H = s.flowType === "sell", {
233
+ }), O = s.flowType === "sell", {
234
234
  config: C,
235
235
  loading: pe,
236
236
  error: ie
@@ -254,7 +254,7 @@ function un({
254
254
  A({ type: "SET_PAYMENT_METHOD", methodId: (K == null ? void 0 : K.id) || ((I = T[0]) == null ? void 0 : I.id) || "" });
255
255
  }, [C, s.fiatCurrency, s.paymentMethodId]);
256
256
  const ne = G(() => {
257
- if (H) {
257
+ if (O) {
258
258
  if (!s.cryptoAmount) return null;
259
259
  const L = parseFloat(s.cryptoAmount);
260
260
  return isNaN(L) || L <= 0 ? "Enter a valid amount" : null;
@@ -266,18 +266,18 @@ function un({
266
266
  if (!T) return null;
267
267
  const J = parseFloat(T.minAmount), K = parseFloat(T.maxAmount);
268
268
  return !isNaN(J) && v < J ? `Minimum amount is ${T.minAmount} ${s.fiatCurrency}` : !isNaN(K) && v > K ? `Maximum amount is ${T.maxAmount} ${s.fiatCurrency}` : null;
269
- }, [C, s.fiatAmount, s.fiatCurrency, s.cryptoAmount, H]), ve = G(() => {
270
- const v = H ? !!s.cryptoAmount : !!s.fiatAmount;
269
+ }, [C, s.fiatAmount, s.fiatCurrency, s.cryptoAmount, O]), ve = G(() => {
270
+ const v = O ? !!s.cryptoAmount : !!s.fiatAmount;
271
271
  return !C || !v || !s.cryptoCurrency || !s.network || ne ? null : {
272
272
  fiatCurrency: s.fiatCurrency,
273
- ...H ? { cryptoAmount: s.cryptoAmount } : { fiatAmount: s.fiatAmount },
273
+ ...O ? { cryptoAmount: s.cryptoAmount } : { fiatAmount: s.fiatAmount },
274
274
  cryptoCurrency: s.cryptoCurrency,
275
275
  network: s.network,
276
276
  paymentMethodId: s.paymentMethodId || void 0,
277
277
  country: s.country || void 0,
278
278
  orderType: s.flowType
279
279
  };
280
- }, [C, s.fiatCurrency, s.fiatAmount, s.cryptoAmount, s.cryptoCurrency, s.network, s.paymentMethodId, s.country, ne, H, s.flowType]), {
280
+ }, [C, s.fiatCurrency, s.fiatAmount, s.cryptoAmount, s.cryptoCurrency, s.network, s.paymentMethodId, s.country, ne, O, s.flowType]), {
281
281
  quotes: ae,
282
282
  loading: fe,
283
283
  error: k,
@@ -307,7 +307,7 @@ function un({
307
307
  Te.current = ae;
308
308
  const Ne = X(i);
309
309
  Ne.current = i;
310
- const Ze = O(async () => {
310
+ const Ze = H(async () => {
311
311
  var T, J, K;
312
312
  const v = ((T = s.selectedQuote) == null ? void 0 : T.gatewayId) || ((K = (J = Te.current) == null ? void 0 : J.bestQuote) == null ? void 0 : K.gatewayId) || Re.current;
313
313
  if (!v || !s.walletAddress) {
@@ -320,7 +320,7 @@ function un({
320
320
  gateway: v,
321
321
  customerId: s.customerId || void 0,
322
322
  fiatCurrency: s.fiatCurrency,
323
- ...H ? { cryptoAmount: s.cryptoAmount } : { fiatAmount: s.fiatAmount },
323
+ ...O ? { cryptoAmount: s.cryptoAmount } : { fiatAmount: s.fiatAmount },
324
324
  cryptoCurrency: s.cryptoCurrency,
325
325
  network: s.network,
326
326
  walletAddress: s.walletAddress,
@@ -333,13 +333,13 @@ function un({
333
333
  const I = L instanceof Error ? L.message : "Failed to create order";
334
334
  /wallet|address/i.test(I) ? A({ type: "SET_WALLET_ERROR", message: I.replace(/^Failed to create checkout intent:\s*/i, "") }) : A({ type: "SET_ERROR", message: I });
335
335
  }
336
- }, [s, ye, H]), Oe = O((v) => {
336
+ }, [s, ye, O]), He = H((v) => {
337
337
  A({ type: "SET_STEP", step: v });
338
- }, []), ke = O(() => {
338
+ }, []), ke = H(() => {
339
339
  const v = ["confirm", "amount", "quotes", "wallet", "checkout", "processing", "complete"], T = v.indexOf(s.step);
340
340
  T > 0 && A({ type: "SET_STEP", step: v[T - 1] });
341
- }, [s.step, H]), He = G(() => {
342
- const v = H ? !!s.cryptoAmount : !!s.fiatAmount;
341
+ }, [s.step, O]), Oe = G(() => {
342
+ const v = O ? !!s.cryptoAmount : !!s.fiatAmount;
343
343
  switch (s.step) {
344
344
  case "confirm":
345
345
  return !!(v && s.cryptoCurrency && s.network && s.walletAddress && !ne);
@@ -352,7 +352,7 @@ function un({
352
352
  default:
353
353
  return !1;
354
354
  }
355
- }, [s, ne, H]), Qe = {
355
+ }, [s, ne, O]), Qe = {
356
356
  apiConfig: $,
357
357
  assetBaseUrl: a,
358
358
  config: C,
@@ -373,9 +373,9 @@ function un({
373
373
  fieldLocks: g || null,
374
374
  defaultGateway: xe,
375
375
  amountError: ne,
376
- goToStep: Oe,
376
+ goToStep: He,
377
377
  goBack: ke,
378
- canProceed: He
378
+ canProceed: Oe
379
379
  };
380
380
  return /* @__PURE__ */ e(Pt.Provider, { value: Qe, children: P });
381
381
  }
@@ -883,7 +883,7 @@ function _t({
883
883
  D(() => {
884
884
  m(!1), d(!1);
885
885
  }, [t]);
886
- const p = O(() => m(!0), []), h = O(() => d(!0), []);
886
+ const p = H(() => m(!0), []), h = H(() => d(!0), []);
887
887
  return /* @__PURE__ */ r(
888
888
  "div",
889
889
  {
@@ -1466,7 +1466,7 @@ function Bn({
1466
1466
  }
1467
1467
  );
1468
1468
  if (o.checkout.method === "widget" && o.widgetConfig) {
1469
- const g = On(o.checkout.url, o.widgetConfig);
1469
+ const g = Hn(o.checkout.url, o.widgetConfig);
1470
1470
  return St(
1471
1471
  /* @__PURE__ */ r(
1472
1472
  "div",
@@ -1584,13 +1584,13 @@ function Bn({
1584
1584
  }
1585
1585
  );
1586
1586
  }
1587
- function On(t, n) {
1587
+ function Hn(t, n) {
1588
1588
  const a = new URL("/en/partner/widget", t);
1589
1589
  for (const [o, l] of Object.entries(n))
1590
1590
  l != null && l !== "" && a.searchParams.set(o, String(l));
1591
1591
  return a.toString();
1592
1592
  }
1593
- function Hn({ className: t = "" }) {
1593
+ function On({ className: t = "" }) {
1594
1594
  const { orderStatus: n, orderStatusLoading: a, goToStep: o } = Se();
1595
1595
  D(() => {
1596
1596
  n && (n.status === "completed" ? o("complete") : ["failed", "cancelled", "expired", "refunded"].includes(n.status) && o("error"));
@@ -1884,7 +1884,7 @@ function Pn({
1884
1884
  ] })
1885
1885
  ] });
1886
1886
  }
1887
- function Ot(t) {
1887
+ function Ht(t) {
1888
1888
  return t.length <= 12 ? t : `${t.slice(0, 6)}...${t.slice(-6)}`;
1889
1889
  }
1890
1890
  function Un({ className: t = "", stablecoinParity: n, partnerName: a }) {
@@ -1932,7 +1932,7 @@ function Un({ className: t = "", stablecoinParity: n, partnerName: a }) {
1932
1932
  value: U ? `${U} ${i.cryptoCurrency}` : `${i.cryptoCurrency} on ${i.network}`
1933
1933
  }
1934
1934
  ),
1935
- /* @__PURE__ */ e(Ce, { label: "Wallet", value: Ot(i.walletAddress), mono: !0 }),
1935
+ /* @__PURE__ */ e(Ce, { label: "Wallet", value: Ht(i.walletAddress), mono: !0 }),
1936
1936
  P && U && /* @__PURE__ */ r("div", { className: "py-2 text-[11px]", style: { color: "var(--t-text-muted)", lineHeight: "15px" }, children: [
1937
1937
  "Charged amount from provider may differ. The rest up to ",
1938
1938
  U,
@@ -1944,7 +1944,7 @@ function Un({ className: t = "", stablecoinParity: n, partnerName: a }) {
1944
1944
  ] })
1945
1945
  ] }),
1946
1946
  /* @__PURE__ */ e(Ce, { label: "Network", value: i.network }),
1947
- u && i.walletAddress && /* @__PURE__ */ e(Ce, { label: "Refund address", value: Ot(i.walletAddress), mono: !0 })
1947
+ u && i.walletAddress && /* @__PURE__ */ e(Ce, { label: "Refund address", value: Ht(i.walletAddress), mono: !0 })
1948
1948
  ] }),
1949
1949
  f && /* @__PURE__ */ e("p", { className: "text-[12px] mb-4", style: { color: "#EF4444" }, children: f }),
1950
1950
  /* @__PURE__ */ e(
@@ -1990,7 +1990,7 @@ function $e({
1990
1990
  return () => clearTimeout(d);
1991
1991
  }
1992
1992
  }, [t]);
1993
- const c = O(() => {
1993
+ const c = H(() => {
1994
1994
  m(!1), setTimeout(() => n(), 250);
1995
1995
  }, [n]);
1996
1996
  return D(() => {
@@ -2192,12 +2192,12 @@ function Vn({
2192
2192
  ] })
2193
2193
  ] });
2194
2194
  }
2195
- function Ht({ src: t, alt: n, size: a, className: o, style: l }) {
2195
+ function Ot({ src: t, alt: n, size: a, className: o, style: l }) {
2196
2196
  const [i, m] = N(!1), [c, d] = N(!1);
2197
2197
  D(() => {
2198
2198
  m(!1), d(!1);
2199
2199
  }, [t]);
2200
- const p = O(() => m(!0), []), h = O(() => d(!0), []);
2200
+ const p = H(() => m(!0), []), h = H(() => d(!0), []);
2201
2201
  return /* @__PURE__ */ r("div", { className: o, style: { ...l, width: a, height: a, position: "relative" }, children: [
2202
2202
  !i && !c && /* @__PURE__ */ e(
2203
2203
  "div",
@@ -2250,7 +2250,7 @@ function Xn({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: o = "", selecte
2250
2250
  }
2251
2251
  }
2252
2252
  return u;
2253
- }, [a]), p = O((u, f) => l === u && i === f, [l, i]), h = G(() => {
2253
+ }, [a]), p = H((u, f) => l === u && i === f, [l, i]), h = G(() => {
2254
2254
  var w;
2255
2255
  const u = m.trim().toLowerCase();
2256
2256
  if (!u) {
@@ -2301,7 +2301,7 @@ function Xn({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: o = "", selecte
2301
2301
  className: "absolute top-0 left-0",
2302
2302
  style: { background: "#ffffff", borderRadius: "50%" },
2303
2303
  children: /* @__PURE__ */ e(
2304
- Ht,
2304
+ Ot,
2305
2305
  {
2306
2306
  src: Ft(u.code, o),
2307
2307
  alt: u.code,
@@ -2322,7 +2322,7 @@ function Xn({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: o = "", selecte
2322
2322
  background: "#ffffff"
2323
2323
  },
2324
2324
  children: /* @__PURE__ */ e(
2325
- Ht,
2325
+ Ot,
2326
2326
  {
2327
2327
  src: at(u.chain, o),
2328
2328
  alt: u.chain,
@@ -2583,7 +2583,7 @@ function Yn({
2583
2583
  state: y,
2584
2584
  dispatch: s,
2585
2585
  config: A,
2586
- configLoading: H,
2586
+ configLoading: O,
2587
2587
  quotes: C,
2588
2588
  quotesLoading: pe,
2589
2589
  quotesError: ie,
@@ -2594,13 +2594,13 @@ function Yn({
2594
2594
  fieldLocks: k,
2595
2595
  apiConfig: be,
2596
2596
  assetBaseUrl: F
2597
- } = Se(), [re, ue] = N(n === "dark"), [ye, Ye] = N(a), [W, Z] = N(null), [xe, Re] = N(!1), [Te, Ne] = N(!1), [Ze, Oe] = N(!1), [ke, He] = N(!1), [Qe, v] = N(null), [T, J] = N(!0), [K, L] = N(!1), [I, q] = N(!1), De = X(null), ze = X(), Je = X(y.flowType);
2597
+ } = Se(), [re, ue] = N(n === "dark"), [ye, Ye] = N(a), [W, Z] = N(null), [xe, Re] = N(!1), [Te, Ne] = N(!1), [Ze, He] = N(!1), [ke, Oe] = N(!1), [Qe, v] = N(null), [T, J] = N(!0), [K, L] = N(!1), [I, q] = N(!1), De = X(null), ze = X(), Je = X(y.flowType);
2598
2598
  D(() => {
2599
2599
  ue(n === "dark");
2600
2600
  }, [n]), D(() => {
2601
- const x = setTimeout(() => J(!1), H ? 0 : 800);
2601
+ const x = setTimeout(() => J(!1), O ? 0 : 800);
2602
2602
  return () => clearTimeout(x);
2603
- }, [H]), D(() => {
2603
+ }, [O]), D(() => {
2604
2604
  if (Je.current !== y.flowType && !T) {
2605
2605
  Je.current = y.flowType, L(!0), Re(!1), Ne(!1);
2606
2606
  const x = setTimeout(() => L(!1), 350);
@@ -2627,7 +2627,7 @@ function Yn({
2627
2627
  v(null), s({ type: "SET_WALLET_ERROR", message: "" });
2628
2628
  return;
2629
2629
  }
2630
- return He(!0), v(null), clearTimeout(ze.current), ze.current = setTimeout(async () => {
2630
+ return Oe(!0), v(null), clearTimeout(ze.current), ze.current = setTimeout(async () => {
2631
2631
  var R, M, oe;
2632
2632
  try {
2633
2633
  const tt = await (await fetch(`${be.apiUrl}/public/validate/address`, {
@@ -2645,7 +2645,7 @@ function Yn({
2645
2645
  } catch {
2646
2646
  v(null);
2647
2647
  } finally {
2648
- He(!1);
2648
+ Oe(!1);
2649
2649
  }
2650
2650
  }, 500), () => clearTimeout(ze.current);
2651
2651
  }, [y.walletAddress, y.network, be.apiUrl]);
@@ -2655,17 +2655,17 @@ function Yn({
2655
2655
  M !== -1 && E.length - M - 1 > R && (E = E.slice(0, M + R + 1)), s(_ ? { type: "SET_FIAT_AMOUNT", amount: E } : { type: "SET_CRYPTO_AMOUNT", amount: E });
2656
2656
  }, mt = (x) => {
2657
2657
  x !== Ee && s({ type: "SET_FLOW_TYPE", flowType: x });
2658
- }, Zt = O(
2658
+ }, Zt = H(
2659
2659
  (x) => {
2660
2660
  s({ type: "SET_FIAT_CURRENCY", currency: x });
2661
2661
  },
2662
2662
  [s]
2663
- ), Qt = O(
2663
+ ), Qt = H(
2664
2664
  (x, E) => {
2665
2665
  s({ type: "SET_CRYPTO_CURRENCY", currency: x }), s({ type: "SET_CRYPTO_CHAIN", chain: E });
2666
2666
  },
2667
2667
  [s]
2668
- ), zt = O(
2668
+ ), zt = H(
2669
2669
  (x) => {
2670
2670
  s({ type: "SET_PAYMENT_METHOD", methodId: x });
2671
2671
  },
@@ -2705,7 +2705,7 @@ function Yn({
2705
2705
  l && ce(l) ? ge.backgroundColor = l : ge.backgroundColor = "var(--t-bg)", i && (ge.backgroundImage = `url(${i})`, ge.backgroundSize = "cover", ge.backgroundPosition = "center");
2706
2706
  const Ke = re ? "#ffffff" : "#111111", _e = {};
2707
2707
  m && ce(m) && (_e.border = `1px solid ${m}`), c && (_e.borderRadius = c);
2708
- const yt = y.step === "checkout" ? /* @__PURE__ */ e(Bn, { autoRedirect: P }) : y.step === "processing" ? /* @__PURE__ */ e(Hn, {}) : y.step === "complete" ? /* @__PURE__ */ e(Dn, { explorerUrl: $, doneButtonText: U, onDone: de }) : y.step === "error" ? /* @__PURE__ */ e(Pn, { supportEmail: Y }) : y.step === "confirm" ? /* @__PURE__ */ e(Un, { stablecoinParity: Le, partnerName: j }) : null;
2708
+ const yt = y.step === "checkout" ? /* @__PURE__ */ e(Bn, { autoRedirect: P }) : y.step === "processing" ? /* @__PURE__ */ e(On, {}) : y.step === "complete" ? /* @__PURE__ */ e(Dn, { explorerUrl: $, doneButtonText: U, onDone: de }) : y.step === "error" ? /* @__PURE__ */ e(Pn, { supportEmail: Y }) : y.step === "confirm" ? /* @__PURE__ */ e(Un, { stablecoinParity: Le, partnerName: j }) : null;
2709
2709
  if (yt)
2710
2710
  return /* @__PURE__ */ e(
2711
2711
  "div",
@@ -2771,7 +2771,7 @@ function Yn({
2771
2771
  )
2772
2772
  ] })
2773
2773
  ] }) : null,
2774
- T || K || H ? /* @__PURE__ */ e(_n, {}) : /* @__PURE__ */ r("div", { className: "flex-1 overflow-hidden px-5 flex flex-col tab-fade-in", children: [
2774
+ T || K || O ? /* @__PURE__ */ e(_n, {}) : /* @__PURE__ */ r("div", { className: "flex-1 overflow-hidden px-5 flex flex-col tab-fade-in", children: [
2775
2775
  /* @__PURE__ */ r(
2776
2776
  "div",
2777
2777
  {
@@ -2852,7 +2852,7 @@ function Yn({
2852
2852
  style: { width: 14, height: 14 }
2853
2853
  }
2854
2854
  ) }),
2855
- /* @__PURE__ */ e("span", { className: "text-[12px]", style: { color: "var(--t-text-muted)" }, children: xt })
2855
+ /* @__PURE__ */ e("span", { className: "text-[12px]", style: { color: "var(--t-text-secondary)" }, children: xt })
2856
2856
  ] })
2857
2857
  ] })
2858
2858
  ] })
@@ -2918,7 +2918,7 @@ function Yn({
2918
2918
  style: { width: 14, height: 14 }
2919
2919
  }
2920
2920
  ) }),
2921
- /* @__PURE__ */ e("span", { className: "text-[12px]", style: { color: "var(--t-text-muted)" }, children: xt })
2921
+ /* @__PURE__ */ e("span", { className: "text-[12px]", style: { color: "var(--t-text-secondary)" }, children: xt })
2922
2922
  ] })
2923
2923
  ] }) : /* @__PURE__ */ r(
2924
2924
  "button",
@@ -2998,9 +2998,9 @@ function Yn({
2998
2998
  type: "text",
2999
2999
  value: y.walletAddress,
3000
3000
  onChange: (x) => s({ type: "SET_WALLET_ADDRESS", address: x.target.value }),
3001
- onFocus: () => Oe(!0),
3001
+ onFocus: () => He(!0),
3002
3002
  onBlur: () => {
3003
- Oe(!1), Ne(!0);
3003
+ He(!1), Ne(!0);
3004
3004
  },
3005
3005
  placeholder: _ ? "Enter your receiving address" : "Enter your sending address",
3006
3006
  spellCheck: !1,
@@ -3008,6 +3008,8 @@ function Yn({
3008
3008
  className: "w-full bg-transparent text-[13px] outline-none transition-colors",
3009
3009
  style: {
3010
3010
  border: y.walletError || Te && !et ? "1px solid #EF4444" : Ze ? "1px solid var(--t-border-focus)" : "1px solid var(--t-border)",
3011
+ outline: "none",
3012
+ boxShadow: "none",
3011
3013
  borderRadius: 3.5,
3012
3014
  height: 47,
3013
3015
  padding: "0 14px",
@@ -3020,13 +3022,13 @@ function Yn({
3020
3022
  ),
3021
3023
  y.walletError ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "#EF4444" }, children: y.walletError }) : Te && !et && !ke ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "#EF4444" }, children: "Enter a valid wallet address" }) : ke && y.walletAddress.trim().length >= 10 ? /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5", style: { color: "var(--t-text-muted)" }, children: "Validating address..." }) : null
3022
3024
  ] }),
3023
- /* @__PURE__ */ e("div", { className: "flex-1" }),
3025
+ /* @__PURE__ */ e("div", { className: "flex-1", style: { minHeight: 16 } }),
3024
3026
  /* @__PURE__ */ e(
3025
3027
  "button",
3026
3028
  {
3027
3029
  disabled: !Ue || ae || I,
3028
3030
  onClick: Jt,
3029
- className: "w-full font-semibold text-[16px] transition-all mt-4",
3031
+ className: "w-full font-semibold text-[16px] transition-all",
3030
3032
  style: {
3031
3033
  height: 60,
3032
3034
  borderRadius: 5,
@@ -3137,7 +3139,7 @@ function Zn({
3137
3139
  borderRadius: y,
3138
3140
  surfaceColor: s,
3139
3141
  inputBgColor: A,
3140
- textColor: H,
3142
+ textColor: O,
3141
3143
  textSecondaryColor: C,
3142
3144
  textMutedColor: pe,
3143
3145
  successColor: ie,
@@ -3185,7 +3187,7 @@ function Zn({
3185
3187
  borderRadius: y,
3186
3188
  surfaceColor: s,
3187
3189
  inputBgColor: A,
3188
- textColor: H,
3190
+ textColor: O,
3189
3191
  textSecondaryColor: C,
3190
3192
  textMutedColor: pe,
3191
3193
  successColor: ie,
@@ -3397,7 +3399,7 @@ export {
3397
3399
  $e as Modal,
3398
3400
  Nn as PayPalIcon,
3399
3401
  Mn as PaymentMethodSelector,
3400
- Hn as ProcessingStep,
3402
+ On as ProcessingStep,
3401
3403
  Zn as RampForm,
3402
3404
  un as RampProvider,
3403
3405
  Cn as RevolutIcon,