@nowramp/form 0.1.45 → 0.1.47
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +74 -72
- package/dist/index.js.map +1 -1
- package/dist/nowramp-form.iife.js +7 -7
- package/dist/nowramp-form.iife.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -216,9 +216,9 @@ function Kt({
|
|
|
216
216
|
statusPollInterval: x = 5e3,
|
|
217
217
|
onComplete: p,
|
|
218
218
|
onError: N,
|
|
219
|
-
children:
|
|
219
|
+
children: R
|
|
220
220
|
}) {
|
|
221
|
-
const P = F(() => ({ apiUrl: n, projectId: t }), [n, t]), w = u || (d ? d.toLowerCase() : ""),
|
|
221
|
+
const P = F(() => ({ apiUrl: n, projectId: t }), [n, t]), w = u || (d ? d.toLowerCase() : ""), W = r === "sell", Q = W ? !!i : !!s, q = (W ? !!(Q && d && w) : !!(Q && d && w && h)) && f ? "confirm" : "amount", [c, O] = It(Ut, {
|
|
222
222
|
...yt,
|
|
223
223
|
step: q,
|
|
224
224
|
flowType: r,
|
|
@@ -373,7 +373,7 @@ function Kt({
|
|
|
373
373
|
goBack: ue,
|
|
374
374
|
canProceed: Oe
|
|
375
375
|
};
|
|
376
|
-
return /* @__PURE__ */ e(xt.Provider, { value: xe, children:
|
|
376
|
+
return /* @__PURE__ */ e(xt.Provider, { value: xe, children: R });
|
|
377
377
|
}
|
|
378
378
|
function he() {
|
|
379
379
|
const t = Mt(xt);
|
|
@@ -851,7 +851,7 @@ function Gt({ size: t = 24 }) {
|
|
|
851
851
|
/* @__PURE__ */ e("rect", { x: "8", y: "22", width: "16", height: "2", rx: "0.5", fill: "white" })
|
|
852
852
|
] });
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Wt({ size: t = 32 }) {
|
|
855
855
|
return /* @__PURE__ */ e(
|
|
856
856
|
"div",
|
|
857
857
|
{
|
|
@@ -861,7 +861,7 @@ function jt({ size: t = 32 }) {
|
|
|
861
861
|
}
|
|
862
862
|
);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function jt({ size: t = 32 }) {
|
|
865
865
|
return /* @__PURE__ */ e(
|
|
866
866
|
"div",
|
|
867
867
|
{
|
|
@@ -948,9 +948,9 @@ function qt({ size: t = 40 }) {
|
|
|
948
948
|
function en(t, n = 32) {
|
|
949
949
|
switch (t) {
|
|
950
950
|
case "revolut":
|
|
951
|
-
return /* @__PURE__ */ e(jt, { size: n });
|
|
952
|
-
case "applepay":
|
|
953
951
|
return /* @__PURE__ */ e(Wt, { size: n });
|
|
952
|
+
case "applepay":
|
|
953
|
+
return /* @__PURE__ */ e(jt, { size: n });
|
|
954
954
|
case "card":
|
|
955
955
|
return /* @__PURE__ */ e(Zt, { size: n });
|
|
956
956
|
case "googlepay":
|
|
@@ -1881,8 +1881,8 @@ function Be({
|
|
|
1881
1881
|
value: t,
|
|
1882
1882
|
onChange: (r) => n(r.target.value),
|
|
1883
1883
|
placeholder: a,
|
|
1884
|
-
style: { height: 47, borderRadius: 4.5,
|
|
1885
|
-
className: "w-full
|
|
1884
|
+
style: { height: 47, borderRadius: 4.5, border: "1px solid var(--t-border)", color: "var(--t-text)", padding: `0 ${t ? 40 : 14}px 0 14px`, fontSize: 14, backgroundColor: "transparent" },
|
|
1885
|
+
className: "w-full outline-none transition-colors"
|
|
1886
1886
|
}
|
|
1887
1887
|
),
|
|
1888
1888
|
t && /* @__PURE__ */ e(
|
|
@@ -1916,7 +1916,7 @@ function hn({ onClose: t, onSelect: n, currencies: a, assetBaseUrl: r = "" }) {
|
|
|
1916
1916
|
"h2",
|
|
1917
1917
|
{
|
|
1918
1918
|
className: "text-center text-[17px] font-medium mt-2 mb-6",
|
|
1919
|
-
style: { color: "var(--t-text)" },
|
|
1919
|
+
style: { color: "var(--t-text)", fontSize: 17, fontWeight: 500, marginTop: 8, marginBottom: 24 },
|
|
1920
1920
|
children: "Select fiat currency"
|
|
1921
1921
|
}
|
|
1922
1922
|
),
|
|
@@ -1969,10 +1969,10 @@ function fn({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "" }) {
|
|
|
1969
1969
|
if (!s) return d;
|
|
1970
1970
|
const i = s.split(/\s+/), h = [];
|
|
1971
1971
|
for (const v of d) {
|
|
1972
|
-
const x = Ie(v.chain), p = x ? x.name.toLowerCase() : "", N = ((f = x == null ? void 0 : x.shortName) == null ? void 0 : f.toLowerCase()) || "",
|
|
1973
|
-
if (!i.every((q) =>
|
|
1974
|
-
let
|
|
1975
|
-
P === s ?
|
|
1972
|
+
const x = Ie(v.chain), p = x ? x.name.toLowerCase() : "", N = ((f = x == null ? void 0 : x.shortName) == null ? void 0 : f.toLowerCase()) || "", R = v.chain.toLowerCase(), P = v.code.toLowerCase(), w = v.name.toLowerCase(), W = [P, w, p, N, R];
|
|
1973
|
+
if (!i.every((q) => W.some((c) => c.includes(q)))) continue;
|
|
1974
|
+
let j = 0;
|
|
1975
|
+
P === s ? j += 100 : P.startsWith(i[0]) && (j += 50), v.popular && (j += 10), i.length > 1 && (p.includes(i[1]) || N.includes(i[1]) || R.includes(i[1])) && (j += 25), h.push({ item: v, score: j });
|
|
1976
1976
|
}
|
|
1977
1977
|
return h.sort((v, x) => x.score - v.score), h.map((v) => v.item);
|
|
1978
1978
|
}, [d, l]);
|
|
@@ -1982,7 +1982,7 @@ function fn({ onClose: t, onSelect: n, cryptos: a, assetBaseUrl: r = "" }) {
|
|
|
1982
1982
|
"h2",
|
|
1983
1983
|
{
|
|
1984
1984
|
className: "text-center text-[17px] font-medium mt-2 mb-6",
|
|
1985
|
-
style: { color: "var(--t-text)" },
|
|
1985
|
+
style: { color: "var(--t-text)", fontSize: 17, fontWeight: 500, marginTop: 8, marginBottom: 24 },
|
|
1986
1986
|
children: "Select crypto currency"
|
|
1987
1987
|
}
|
|
1988
1988
|
),
|
|
@@ -2065,7 +2065,7 @@ function yn({
|
|
|
2065
2065
|
"h2",
|
|
2066
2066
|
{
|
|
2067
2067
|
className: "text-center text-[17px] font-medium mt-2 mb-6",
|
|
2068
|
-
style: { color: "var(--t-text)" },
|
|
2068
|
+
style: { color: "var(--t-text)", fontSize: 17, fontWeight: 500, marginTop: 8, marginBottom: 24 },
|
|
2069
2069
|
children: "Choose payment method"
|
|
2070
2070
|
}
|
|
2071
2071
|
),
|
|
@@ -2185,6 +2185,7 @@ function vn({
|
|
|
2185
2185
|
target: "_blank",
|
|
2186
2186
|
rel: "noopener noreferrer",
|
|
2187
2187
|
className: "flex items-center justify-between w-full py-5 transition-colors",
|
|
2188
|
+
style: { color: "inherit", textDecoration: "none" },
|
|
2188
2189
|
children: [
|
|
2189
2190
|
/* @__PURE__ */ e(
|
|
2190
2191
|
"span",
|
|
@@ -2223,12 +2224,12 @@ function Nn({
|
|
|
2223
2224
|
const {
|
|
2224
2225
|
state: p,
|
|
2225
2226
|
dispatch: N,
|
|
2226
|
-
config:
|
|
2227
|
+
config: R,
|
|
2227
2228
|
configLoading: P,
|
|
2228
2229
|
quotes: w,
|
|
2229
|
-
quotesLoading:
|
|
2230
|
+
quotesLoading: W,
|
|
2230
2231
|
quotesError: Q,
|
|
2231
|
-
fetchQuotes:
|
|
2232
|
+
fetchQuotes: j,
|
|
2232
2233
|
createOrder: q,
|
|
2233
2234
|
orderLoading: c,
|
|
2234
2235
|
amountError: O,
|
|
@@ -2259,8 +2260,8 @@ function Nn({
|
|
|
2259
2260
|
return "0";
|
|
2260
2261
|
}, [w, L]), bt = F(() => {
|
|
2261
2262
|
var B, te, De;
|
|
2262
|
-
const y = Z || ((B = Se.current) == null ? void 0 : B.rate), E = Z ? k : (te = Se.current) == null ? void 0 : te.crypto,
|
|
2263
|
-
return !y || !E || !
|
|
2263
|
+
const y = Z || ((B = Se.current) == null ? void 0 : B.rate), E = Z ? k : (te = Se.current) == null ? void 0 : te.crypto, T = Z ? S : (De = Se.current) == null ? void 0 : De.fiat;
|
|
2264
|
+
return !y || !E || !T ? "" : `1 ${E} ≈ ${y.toFixed(2)} ${T}`;
|
|
2264
2265
|
}, [k, S, Z]);
|
|
2265
2266
|
U(() => {
|
|
2266
2267
|
const y = p.walletAddress.trim(), E = p.network;
|
|
@@ -2269,13 +2270,13 @@ function Nn({
|
|
|
2269
2270
|
return;
|
|
2270
2271
|
}
|
|
2271
2272
|
return be(!0), re(null), clearTimeout(xe.current), xe.current = setTimeout(async () => {
|
|
2272
|
-
var
|
|
2273
|
+
var T, B, te;
|
|
2273
2274
|
try {
|
|
2274
2275
|
const Ue = await (await fetch(`${I.apiUrl}/public/validate/address`, {
|
|
2275
2276
|
method: "POST",
|
|
2276
2277
|
headers: { "Content-Type": "application/json" },
|
|
2277
2278
|
body: JSON.stringify({ address: y, ...E ? { network: E } : {} })
|
|
2278
|
-
})).json(), Ke = ((
|
|
2279
|
+
})).json(), Ke = ((T = Ue.data) == null ? void 0 : T.attributes) || Ue.data || Ue;
|
|
2279
2280
|
if (Ke.isValid)
|
|
2280
2281
|
re(!0), N({ type: "SET_WALLET_ERROR", message: "" });
|
|
2281
2282
|
else {
|
|
@@ -2290,10 +2291,10 @@ function Nn({
|
|
|
2290
2291
|
}
|
|
2291
2292
|
}, 500), () => clearTimeout(xe.current);
|
|
2292
2293
|
}, [p.walletAddress, p.network, I.apiUrl]);
|
|
2293
|
-
const Ge = !H || D === 0,
|
|
2294
|
+
const Ge = !H || D === 0, We = D > 0 && (L ? D < mt : D < pt), je = !!O || We || ye && Ge, Et = D > 0 && !O && !We, Pe = p.walletAddress.trim().length >= 10 && Y !== !1 && !de, Te = Et && Pe && !!p.cryptoCurrency && !!p.network, At = (y) => {
|
|
2294
2295
|
let E = y.target.value.replace(/[^0-9.,]/g, "");
|
|
2295
|
-
const
|
|
2296
|
-
B !== -1 && E.length - B - 1 >
|
|
2296
|
+
const T = L ? 2 : 6, B = E.indexOf(".");
|
|
2297
|
+
B !== -1 && E.length - B - 1 > T && (E = E.slice(0, B + T + 1)), N(L ? { type: "SET_FIAT_AMOUNT", amount: E } : { type: "SET_CRYPTO_AMOUNT", amount: E });
|
|
2297
2298
|
}, Ye = (y) => {
|
|
2298
2299
|
y !== A && N({ type: "SET_FLOW_TYPE", flowType: y });
|
|
2299
2300
|
}, wt = $(
|
|
@@ -2306,17 +2307,17 @@ function Nn({
|
|
|
2306
2307
|
N({ type: "SET_CRYPTO_CURRENCY", currency: y }), N({ type: "SET_CRYPTO_CHAIN", chain: E });
|
|
2307
2308
|
},
|
|
2308
2309
|
[N]
|
|
2309
|
-
),
|
|
2310
|
+
), Tt = $(
|
|
2310
2311
|
(y) => {
|
|
2311
2312
|
N({ type: "SET_PAYMENT_METHOD", methodId: y });
|
|
2312
2313
|
},
|
|
2313
2314
|
[N]
|
|
2314
|
-
),
|
|
2315
|
-
|
|
2315
|
+
), Rt = () => {
|
|
2316
|
+
Te && (ue(!0), j());
|
|
2316
2317
|
};
|
|
2317
2318
|
U(() => {
|
|
2318
2319
|
var y;
|
|
2319
|
-
if (!(!ee ||
|
|
2320
|
+
if (!(!ee || W)) {
|
|
2320
2321
|
if (w != null && w.bestQuote)
|
|
2321
2322
|
ue(!1), N({ type: "SELECT_QUOTE", quote: w.bestQuote }), q().catch(() => {
|
|
2322
2323
|
});
|
|
@@ -2324,11 +2325,11 @@ function Nn({
|
|
|
2324
2325
|
ue(!1), N({ type: "SET_ERROR", message: Q.message || "No quotes available" });
|
|
2325
2326
|
else if (w && !w.bestQuote) {
|
|
2326
2327
|
ue(!1);
|
|
2327
|
-
const E = (y = w.unavailableGateways) == null ? void 0 : y.map((B) => B.reason).filter(Boolean),
|
|
2328
|
-
N({ type: "SET_ERROR", message:
|
|
2328
|
+
const E = (y = w.unavailableGateways) == null ? void 0 : y.map((B) => B.reason).filter(Boolean), T = E != null && E.length ? `No providers available: ${E.join("; ")}` : "No providers available for this currency/network combination";
|
|
2329
|
+
N({ type: "SET_ERROR", message: T });
|
|
2329
2330
|
}
|
|
2330
2331
|
}
|
|
2331
|
-
}, [ee, w,
|
|
2332
|
+
}, [ee, w, W, Q, N, q]);
|
|
2332
2333
|
const Qe = V ? "theme-dark" : "theme-light", He = dt.find((y) => y.id === Ne) || dt[0], kt = He.accent === null, Ze = (r ? _e(r) : !1) ? { "--t-accent": r, "--t-cta-bg": r, "--t-cta-text": "#ffffff" } : kt ? {
|
|
2333
2334
|
"--t-accent": V ? "#ffffff" : "#111111",
|
|
2334
2335
|
"--t-cta-bg": V ? "#ffffff" : "#111111",
|
|
@@ -2339,8 +2340,8 @@ function Nn({
|
|
|
2339
2340
|
"--t-cta-text": "#ffffff"
|
|
2340
2341
|
}, le = {};
|
|
2341
2342
|
l && _e(l) ? le.backgroundColor = l : le.backgroundColor = "var(--t-bg)", m && (le.backgroundImage = `url(${m})`, le.backgroundSize = "cover", le.backgroundPosition = "center");
|
|
2342
|
-
const
|
|
2343
|
-
d && _e(d) && (
|
|
2343
|
+
const Re = {};
|
|
2344
|
+
d && _e(d) && (Re.border = `1px solid ${d}`), u && (Re.borderRadius = u);
|
|
2344
2345
|
const ze = p.step === "checkout" ? /* @__PURE__ */ e(rn, { autoRedirect: i }) : p.step === "processing" ? /* @__PURE__ */ e(ln, {}) : p.step === "complete" ? /* @__PURE__ */ e(sn, { explorerUrl: h, doneButtonText: f, onDone: x }) : p.step === "error" ? /* @__PURE__ */ e(cn, { supportEmail: v }) : p.step === "confirm" ? /* @__PURE__ */ e(dn, {}) : null;
|
|
2345
2346
|
if (ze)
|
|
2346
2347
|
return /* @__PURE__ */ e(
|
|
@@ -2351,7 +2352,7 @@ function Nn({
|
|
|
2351
2352
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
2352
2353
|
...le,
|
|
2353
2354
|
...Ze,
|
|
2354
|
-
...
|
|
2355
|
+
...Re
|
|
2355
2356
|
},
|
|
2356
2357
|
children: ze
|
|
2357
2358
|
}
|
|
@@ -2365,7 +2366,7 @@ function Nn({
|
|
|
2365
2366
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
2366
2367
|
...le,
|
|
2367
2368
|
...Ze,
|
|
2368
|
-
...
|
|
2369
|
+
...Re
|
|
2369
2370
|
},
|
|
2370
2371
|
children: [
|
|
2371
2372
|
/* @__PURE__ */ e("div", { className: `flex justify-end items-center px-5 pt-3 ${s ? "pb-1" : "pb-5"}`, children: /* @__PURE__ */ e(Jt, { onClick: () => X("settings") }) }),
|
|
@@ -2413,7 +2414,7 @@ function Nn({
|
|
|
2413
2414
|
style: {
|
|
2414
2415
|
background: "var(--t-surface)",
|
|
2415
2416
|
borderRadius: 5,
|
|
2416
|
-
border: ye &&
|
|
2417
|
+
border: ye && je ? "1px solid #EF4444" : "1px solid transparent",
|
|
2417
2418
|
minHeight: 102
|
|
2418
2419
|
},
|
|
2419
2420
|
children: [
|
|
@@ -2429,7 +2430,7 @@ function Nn({
|
|
|
2429
2430
|
onBlur: () => ae(!0),
|
|
2430
2431
|
placeholder: L ? "250" : "0.01",
|
|
2431
2432
|
className: "bg-transparent outline-none w-0 flex-1 mr-3",
|
|
2432
|
-
style: { color: "var(--t-text)", fontSize: 24, fontWeight: 600, lineHeight: "32px" },
|
|
2433
|
+
style: { color: "var(--t-text)", fontSize: 24, fontWeight: 600, lineHeight: "32px", padding: 0, border: "none", borderRadius: 0, backgroundColor: "transparent", height: "auto", width: 0 },
|
|
2433
2434
|
inputMode: "decimal",
|
|
2434
2435
|
disabled: !!((et = C == null ? void 0 : C.sourceAmount) != null && et.locked)
|
|
2435
2436
|
}
|
|
@@ -2493,7 +2494,7 @@ function Nn({
|
|
|
2493
2494
|
]
|
|
2494
2495
|
}
|
|
2495
2496
|
),
|
|
2496
|
-
ye &&
|
|
2497
|
+
ye && je && /* @__PURE__ */ e("div", { className: "text-[12px] mt-1.5 px-[2px]", style: { color: "#EF4444" }, children: O || (Ge ? "Amount should be more than 0" : L ? `Minimum amount is ${mt} ${S}` : `Minimum amount is ${pt} ${k}`) }),
|
|
2497
2498
|
/* @__PURE__ */ o(
|
|
2498
2499
|
"div",
|
|
2499
2500
|
{
|
|
@@ -2510,7 +2511,7 @@ function Nn({
|
|
|
2510
2511
|
children: [
|
|
2511
2512
|
/* @__PURE__ */ e("div", { className: "text-[13px] mb-2.5", style: { color: "var(--t-text-secondary)" }, children: "You get" }),
|
|
2512
2513
|
/* @__PURE__ */ o("div", { className: "flex items-start justify-between", children: [
|
|
2513
|
-
|
|
2514
|
+
W ? /* @__PURE__ */ e(M, { w: 180, h: 32 }) : /* @__PURE__ */ e(
|
|
2514
2515
|
mn,
|
|
2515
2516
|
{
|
|
2516
2517
|
value: D > 0 ? Ct : "0",
|
|
@@ -2584,15 +2585,15 @@ function Nn({
|
|
|
2584
2585
|
className: "flex items-center justify-between mt-[2px] px-[18px] pt-[12px] pb-[14px]",
|
|
2585
2586
|
style: {
|
|
2586
2587
|
background: "var(--t-surface)",
|
|
2587
|
-
...(ot =
|
|
2588
|
+
...(ot = R == null ? void 0 : R.paymentMethods) != null && ot.length ? {} : { borderBottomLeftRadius: 5, borderBottomRightRadius: 5 }
|
|
2588
2589
|
},
|
|
2589
2590
|
children: /* @__PURE__ */ e("span", { className: "text-[12px]", style: { color: "var(--t-text-secondary)" }, children: bt || " " })
|
|
2590
2591
|
}
|
|
2591
2592
|
),
|
|
2592
|
-
(
|
|
2593
|
+
(R == null ? void 0 : R.paymentMethods) && R.paymentMethods.length > 0 && /* @__PURE__ */ e("div", { className: "mt-[2px]", children: /* @__PURE__ */ e(
|
|
2593
2594
|
an,
|
|
2594
2595
|
{
|
|
2595
|
-
methods:
|
|
2596
|
+
methods: R.paymentMethods,
|
|
2596
2597
|
selectedId: p.paymentMethodId,
|
|
2597
2598
|
onOpenModal: () => X("payment"),
|
|
2598
2599
|
fiatCurrency: p.fiatCurrency
|
|
@@ -2615,9 +2616,10 @@ function Nn({
|
|
|
2615
2616
|
border: p.walletError || Ce && !Pe ? "1px solid #EF4444" : "1px solid var(--t-border)",
|
|
2616
2617
|
borderRadius: 3.5,
|
|
2617
2618
|
height: 47,
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2619
|
+
padding: "0 14px",
|
|
2620
|
+
color: "var(--t-text)",
|
|
2621
|
+
fontSize: 13,
|
|
2622
|
+
backgroundColor: "transparent"
|
|
2621
2623
|
},
|
|
2622
2624
|
disabled: !!((lt = C == null ? void 0 : C.destinationAddress) != null && lt.locked)
|
|
2623
2625
|
}
|
|
@@ -2628,16 +2630,16 @@ function Nn({
|
|
|
2628
2630
|
/* @__PURE__ */ e(
|
|
2629
2631
|
"button",
|
|
2630
2632
|
{
|
|
2631
|
-
disabled: !
|
|
2632
|
-
onClick:
|
|
2633
|
+
disabled: !Te || c || ee,
|
|
2634
|
+
onClick: Rt,
|
|
2633
2635
|
className: "w-full font-semibold text-[16px] transition-all",
|
|
2634
2636
|
style: {
|
|
2635
2637
|
height: 60,
|
|
2636
2638
|
borderRadius: 5,
|
|
2637
2639
|
background: "var(--t-cta-bg)",
|
|
2638
2640
|
color: "var(--t-cta-text)",
|
|
2639
|
-
opacity:
|
|
2640
|
-
cursor:
|
|
2641
|
+
opacity: Te && !c && !ee ? 1 : 0.4,
|
|
2642
|
+
cursor: Te && !c && !ee ? "pointer" : "not-allowed"
|
|
2641
2643
|
},
|
|
2642
2644
|
children: ee ? "Getting best price..." : c ? "Processing..." : L ? `Buy ${k}` : `Sell ${k}`
|
|
2643
2645
|
}
|
|
@@ -2650,10 +2652,10 @@ function Nn({
|
|
|
2650
2652
|
hn,
|
|
2651
2653
|
{
|
|
2652
2654
|
onClose: y,
|
|
2653
|
-
onSelect: (
|
|
2654
|
-
wt(
|
|
2655
|
+
onSelect: (T) => {
|
|
2656
|
+
wt(T), y();
|
|
2655
2657
|
},
|
|
2656
|
-
currencies: (E =
|
|
2658
|
+
currencies: (E = R == null ? void 0 : R.fiats) == null ? void 0 : E.map((T) => ({ code: T.code, name: T.code })),
|
|
2657
2659
|
assetBaseUrl: _
|
|
2658
2660
|
}
|
|
2659
2661
|
);
|
|
@@ -2664,15 +2666,15 @@ function Nn({
|
|
|
2664
2666
|
fn,
|
|
2665
2667
|
{
|
|
2666
2668
|
onClose: y,
|
|
2667
|
-
onSelect: (
|
|
2668
|
-
St(
|
|
2669
|
+
onSelect: (T, B) => {
|
|
2670
|
+
St(T, B), y();
|
|
2669
2671
|
},
|
|
2670
|
-
cryptos: (E =
|
|
2672
|
+
cryptos: (E = R == null ? void 0 : R.cryptos) == null ? void 0 : E.map((T) => {
|
|
2671
2673
|
var B;
|
|
2672
2674
|
return {
|
|
2673
|
-
code:
|
|
2674
|
-
name:
|
|
2675
|
-
networks: (B =
|
|
2675
|
+
code: T.code,
|
|
2676
|
+
name: T.code,
|
|
2677
|
+
networks: (B = T.networks) == null ? void 0 : B.map((te) => ({ code: te.id, name: te.name }))
|
|
2676
2678
|
};
|
|
2677
2679
|
}),
|
|
2678
2680
|
assetBaseUrl: _
|
|
@@ -2684,10 +2686,10 @@ function Nn({
|
|
|
2684
2686
|
return /* @__PURE__ */ e(
|
|
2685
2687
|
yn,
|
|
2686
2688
|
{
|
|
2687
|
-
methods: ((E =
|
|
2689
|
+
methods: ((E = R == null ? void 0 : R.paymentMethods) == null ? void 0 : E.filter((T) => T.supportedFiats.includes(p.fiatCurrency))) || [],
|
|
2688
2690
|
selectedId: p.paymentMethodId,
|
|
2689
|
-
onSelect: (
|
|
2690
|
-
|
|
2691
|
+
onSelect: (T) => {
|
|
2692
|
+
Tt(T), y();
|
|
2691
2693
|
},
|
|
2692
2694
|
onClose: y
|
|
2693
2695
|
}
|
|
@@ -2726,12 +2728,12 @@ function Cn({
|
|
|
2726
2728
|
statusPollInterval: x,
|
|
2727
2729
|
onComplete: p,
|
|
2728
2730
|
onError: N,
|
|
2729
|
-
className:
|
|
2731
|
+
className: R,
|
|
2730
2732
|
theme: P,
|
|
2731
2733
|
skinId: w,
|
|
2732
|
-
accentColor:
|
|
2734
|
+
accentColor: W,
|
|
2733
2735
|
bgColor: Q,
|
|
2734
|
-
bgImage:
|
|
2736
|
+
bgImage: j,
|
|
2735
2737
|
borderColor: q,
|
|
2736
2738
|
borderRadius: c,
|
|
2737
2739
|
showFlowToggle: O,
|
|
@@ -2763,12 +2765,12 @@ function Cn({
|
|
|
2763
2765
|
children: /* @__PURE__ */ e(
|
|
2764
2766
|
Nn,
|
|
2765
2767
|
{
|
|
2766
|
-
className:
|
|
2768
|
+
className: R,
|
|
2767
2769
|
theme: P,
|
|
2768
2770
|
skinId: w,
|
|
2769
|
-
accentColor:
|
|
2771
|
+
accentColor: W,
|
|
2770
2772
|
bgColor: Q,
|
|
2771
|
-
bgImage:
|
|
2773
|
+
bgImage: j,
|
|
2772
2774
|
borderColor: q,
|
|
2773
2775
|
borderRadius: c,
|
|
2774
2776
|
showFlowToggle: O,
|
|
@@ -2886,7 +2888,7 @@ function Pn({
|
|
|
2886
2888
|
"h2",
|
|
2887
2889
|
{
|
|
2888
2890
|
className: "text-center text-[17px] font-medium mt-2 mb-6",
|
|
2889
|
-
style: { color: "var(--t-text)" },
|
|
2891
|
+
style: { color: "var(--t-text)", fontSize: 17, fontWeight: 500, marginTop: 8, marginBottom: 24 },
|
|
2890
2892
|
children: "Choose Ramp"
|
|
2891
2893
|
}
|
|
2892
2894
|
),
|
|
@@ -2944,7 +2946,7 @@ function Pn({
|
|
|
2944
2946
|
export {
|
|
2945
2947
|
un as AnimatedDigit,
|
|
2946
2948
|
mn as AnimatedNumber,
|
|
2947
|
-
|
|
2949
|
+
jt as ApplePayIcon,
|
|
2948
2950
|
Fe as BLOCKCHAINS,
|
|
2949
2951
|
Gt as BankIcon,
|
|
2950
2952
|
Vt as CRYPTO_CHAIN_COMBOS,
|
|
@@ -2978,7 +2980,7 @@ export {
|
|
|
2978
2980
|
ln as ProcessingStep,
|
|
2979
2981
|
Cn as RampForm,
|
|
2980
2982
|
Kt as RampProvider,
|
|
2981
|
-
|
|
2983
|
+
Wt as RevolutIcon,
|
|
2982
2984
|
dt as SKINS,
|
|
2983
2985
|
Be as SearchInput,
|
|
2984
2986
|
vn as SettingsScreen,
|