@cedros/pay-react 1.1.29 → 1.1.31
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/README.md +53 -22
- package/dist/{AISettingsSection-B7qrycfY.js → AISettingsSection-B12x5sV5.js} +2 -2
- package/dist/{AISettingsSection-DtAgMsDw.mjs → AISettingsSection-DXWDF4Cf.mjs} +4 -4
- package/dist/AutosaveIndicator-CJdkhZis.js +1 -0
- package/dist/{AutosaveIndicator-BEvABoKU.mjs → AutosaveIndicator-D966vOrP.mjs} +1 -1
- package/dist/CedrosContext-3Dz7_9Ct.js +3 -0
- package/dist/{CedrosContext-5Gjveoba.mjs → CedrosContext-DQc_k5PG.mjs} +430 -314
- package/dist/ChatLogsSection-CH37u0nX.js +1 -0
- package/dist/{ChatLogsSection-Ber5o8hF.mjs → ChatLogsSection-DR7mpuQS.mjs} +2 -2
- package/dist/{ComplianceSection-ZCr0wsvw.mjs → ComplianceSection-C61_Hf-X.mjs} +3 -3
- package/dist/ComplianceSection-DS4e2IBp.js +1 -0
- package/dist/CryptoButton-BQceZhbn.js +1 -0
- package/dist/{CryptoButton-Cl2kZbOP.mjs → CryptoButton-BuO_RZLj.mjs} +4 -5
- package/dist/CustomersSection-Bzs9Qon3.js +1 -0
- package/dist/{CustomersSection-D9UknSKC.mjs → CustomersSection-CWWvusxs.mjs} +2 -2
- package/dist/DisputesSection-ClcYIHga.js +1 -0
- package/dist/{DisputesSection-C_eySK-W.mjs → DisputesSection-D8rcS5Vs.mjs} +2 -2
- package/dist/{Dropdown-B90Zabxr.mjs → Dropdown-0y3S40Xf.mjs} +1 -1
- package/dist/Dropdown-BuKiVR_L.js +1 -0
- package/dist/{ErrorBanner-CZXsHi3H.mjs → ErrorBanner-DAjYj6Dx.mjs} +1 -1
- package/dist/ErrorBanner-DxrRVqwe.js +1 -0
- package/dist/FAQSection-0UnN2BZs.js +1 -0
- package/dist/{FAQSection-Bv_Hdt8B.mjs → FAQSection-Dck0NM-A.mjs} +3 -3
- package/dist/{ImagesSection-DpdXQ6qu.mjs → ImagesSection-Bn9GrRRa.mjs} +2 -2
- package/dist/ImagesSection-CSwBHvNl.js +1 -0
- package/dist/{InventorySection-DZMu9DMw.mjs → InventorySection-Dytfmtn8.mjs} +2 -2
- package/dist/InventorySection-ymxaMcIg.js +1 -0
- package/dist/{MessagingSection-D_cOBfFt.mjs → MessagingSection-CHFbSxJL.mjs} +3 -3
- package/dist/MessagingSection-Dtfv0DvU.js +1 -0
- package/dist/OrdersSection-BuzTs9XG.js +1 -0
- package/dist/{OrdersSection-wfPavit9.mjs → OrdersSection-vYNuVF5X.mjs} +2 -2
- package/dist/{PaymentSettingsSection-BdBDgaRg.js → PaymentSettingsSection-BOaW8lLv.js} +1 -1
- package/dist/{PaymentSettingsSection-DunzBo9n.mjs → PaymentSettingsSection-BqdGrXen.mjs} +3 -3
- package/dist/{ReturnsSection-B4FL7bUv.mjs → ReturnsSection-CRzhXKtI.mjs} +2 -2
- package/dist/ReturnsSection-i5W_3so1.js +1 -0
- package/dist/{SettingsSection-DoeNDbqd.mjs → SettingsSection-6o3d8DrH.mjs} +1 -1
- package/dist/{SettingsSection-Cz2Yjdhr.js → SettingsSection-CIhO51Zj.js} +1 -1
- package/dist/ShippingSection-BUzPW1AG.js +1 -0
- package/dist/{ShippingSection-BlVsYC6B.mjs → ShippingSection-CbNzGyCP.mjs} +2 -2
- package/dist/SingleCategorySettings-BxVUUy8R.js +3 -0
- package/dist/{SingleCategorySettings-B406nnF-.mjs → SingleCategorySettings-Qj_ptB_x.mjs} +4 -4
- package/dist/{StatsBar-D4v-I_Dj.mjs → StatsBar-CwCBHBn-.mjs} +1 -1
- package/dist/StatsBar-DDUWoizP.js +1 -0
- package/dist/StorefrontSection-CZZj5he9.js +1 -0
- package/dist/{StorefrontSection-BK_rhrAi.mjs → StorefrontSection-DIYDmj59.mjs} +4 -4
- package/dist/SubscriptionsSection-Bof5MElz.js +1 -0
- package/dist/{SubscriptionsSection-D8V9RBv-.mjs → SubscriptionsSection-lMVHdV5X.mjs} +3 -3
- package/dist/TaxSection-Be-9v60Z.js +1 -0
- package/dist/{TaxSection-Cj6TXL6x.mjs → TaxSection-dD7PzQvG.mjs} +2 -2
- package/dist/Token22Section-Di5fHsrU.js +1 -0
- package/dist/{Token22Section-DtYAcT54.mjs → Token22Section-Dos0CYEk.mjs} +2 -2
- package/dist/{WalletManager-D-eoqUDy.mjs → WalletManager-CGR69MiR.mjs} +1 -1
- package/dist/{WalletManager-DXChB9LA.js → WalletManager-ZJbGQHrn.js} +1 -1
- package/dist/{WebhooksSection-DBAIxtBy.mjs → WebhooksSection-5gqXzIhq.mjs} +2 -2
- package/dist/WebhooksSection-CiLDyl7c.js +1 -0
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +4 -5
- package/dist/crypto-only.js +1 -1
- package/dist/crypto-only.mjs +102 -104
- package/dist/{index-9QF_UfSN.mjs → index-CU6M10Rs.mjs} +13 -14
- package/dist/{index-Cq9ya93W.js → index-DVxx_62C.js} +10 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +21 -23
- package/dist/pay-react.css +1 -1
- package/dist/plugin-BIkt3boU.mjs +339 -0
- package/dist/plugin-Dw8_Q8rE.js +1 -0
- package/dist/sections-D1d83mfH.js +1 -0
- package/dist/{sections-more-CMFgfU4d.mjs → sections-DcUfZQNE.mjs} +263 -270
- package/dist/src/admin/plugin.d.ts.map +1 -1
- package/dist/src/admin/sectionIds.d.ts.map +1 -1
- package/dist/src/admin.d.ts +0 -7
- package/dist/src/admin.d.ts.map +1 -1
- package/dist/src/components/admin/index.d.ts +0 -1
- package/dist/src/components/admin/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/stripe-only.js +1 -1
- package/dist/stripe-only.mjs +18 -19
- package/dist/styles-BwaDljnz.js +1 -0
- package/dist/{styles-DGagylUj.mjs → styles-fihm6qVA.mjs} +51 -52
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.mjs +1 -1
- package/package.json +6 -2
- package/dist/AutosaveIndicator-DiyeAg93.js +0 -1
- package/dist/CedrosContext-CCakH2SZ.js +0 -3
- package/dist/CedrosPayAdminDashboard-CAwEvn66.js +0 -1
- package/dist/CedrosPayAdminDashboard-CBuvNAtB.mjs +0 -250
- package/dist/ChatLogsSection-DLxMMi9I.js +0 -1
- package/dist/ComplianceSection-Buu0zTiL.js +0 -1
- package/dist/CryptoButton-DxFCYDlJ.js +0 -1
- package/dist/CustomersSection-BywmMLur.js +0 -1
- package/dist/DisputesSection-DwkHGv2a.js +0 -1
- package/dist/Dropdown-CtY91emj.js +0 -1
- package/dist/ErrorBanner-Cx2dUhps.js +0 -1
- package/dist/FAQSection-DlPLnIJD.js +0 -1
- package/dist/ImagesSection-B4Jzet79.js +0 -1
- package/dist/InventorySection-BgRdpn1l.js +0 -1
- package/dist/MessagingSection-CxV-pf-f.js +0 -1
- package/dist/OrdersSection-BbAX79Ff.js +0 -1
- package/dist/ReturnsSection-7k4LZ8yp.js +0 -1
- package/dist/ShippingSection-C-HI8rOb.js +0 -1
- package/dist/SingleCategorySettings-BqC2UXt3.js +0 -3
- package/dist/StatsBar-m6GSRNxs.js +0 -1
- package/dist/StorefrontSection-Axvh_KeS.js +0 -1
- package/dist/SubscriptionsSection-EeULMWIB.js +0 -1
- package/dist/TaxSection-CzHPhaHl.js +0 -1
- package/dist/ThemeContext-CFXyYx7A.js +0 -1
- package/dist/ThemeContext-l0bqcOGW.mjs +0 -126
- package/dist/Token22Section-DqRKVG_G.js +0 -1
- package/dist/WebhooksSection-D--iPZuM.js +0 -1
- package/dist/sectionIds-B_tFiNvF.js +0 -1
- package/dist/sectionIds-DBavltrL.mjs +0 -359
- package/dist/sections-BHph7CYj.mjs +0 -9
- package/dist/sections-C2zEJr5G.js +0 -1
- package/dist/sections-more-C1VNVwkp.js +0 -1
- package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts +0 -40
- package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts.map +0 -1
- package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts +0 -4
- package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts.map +0 -1
- package/dist/styles--fxb3lCl.js +0 -1
package/dist/crypto-only.mjs
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { O as ke, q as ve, n as fe, s as Be, o as me, p as Ie, r as ye, t as V, V as _e, W as We } from "./styles-
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as
|
|
4
|
-
import { u as H,
|
|
5
|
-
import { C as
|
|
1
|
+
import { O as ke, q as ve, n as fe, s as Be, o as me, p as Ie, r as ye, t as V, V as _e, W as We } from "./styles-fihm6qVA.mjs";
|
|
2
|
+
import { C as Ye, a as Ve, b as He, c as Je, d as Xe, P as Ze, e as et, f as tt, g as rt, R as at, S as nt, h as st, i as ot, j as it, k as ct, l as lt, m as ut, u as dt, v as pt, w as ft, x as mt, y as yt, z as gt, A as bt, B as St, D as wt, E as Ct, F as ht, G as xt, H as Et, I as Pt, J as Rt, K as Tt, L as kt, M as vt, N as Bt, Q as It } from "./styles-fihm6qVA.mjs";
|
|
3
|
+
import { C as Wt, a as qt, i as Mt, u as Lt, b as Ft } from "./index-CU6M10Rs.mjs";
|
|
4
|
+
import { u as H, m as O, l as qe } from "./CedrosContext-DQc_k5PG.mjs";
|
|
5
|
+
import { C as Dt, a as Nt, b as Ot, c as Gt, E as zt, F as Kt, d as Qt, R as $t, e as Ut, f as jt, g as Yt, h as Vt, i as Ht, j as Jt, p as Xt, r as Zt, k as er, v as tr } from "./CedrosContext-DQc_k5PG.mjs";
|
|
6
6
|
import { g as y } from "./fetchWithTimeout-DmMOwL0Q.mjs";
|
|
7
|
-
import { L as
|
|
8
|
-
import { C as
|
|
7
|
+
import { L as ar, a as nr, c as sr } from "./fetchWithTimeout-DmMOwL0Q.mjs";
|
|
8
|
+
import { C as ir, u as cr } from "./CryptoButton-BuO_RZLj.mjs";
|
|
9
9
|
import { jsxs as G, jsx as x } from "react/jsx-runtime";
|
|
10
10
|
import { useState as B, useRef as N, useCallback as C, useMemo as $, useEffect as z } from "react";
|
|
11
11
|
import { useWallet as J } from "@solana/wallet-adapter-react";
|
|
12
12
|
import { WalletReadyState as ge } from "@solana/wallet-adapter-base";
|
|
13
|
-
import { WalletIcon as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { C as br, a as Sr, b as wr, c as Cr, d as hr } from "./sectionIds-DBavltrL.mjs";
|
|
13
|
+
import { WalletIcon as Me } from "@solana/wallet-adapter-react-ui";
|
|
14
|
+
import { WalletPool as ur, createWalletPool as dr } from "./walletPool-9MylB2QK.mjs";
|
|
15
|
+
import { K as fr, a as mr } from "./tokenMintValidator-DAjQld0r.mjs";
|
|
16
|
+
import { C as gr, a as br, b as Sr, c as wr } from "./plugin-BIkt3boU.mjs";
|
|
18
17
|
function Le() {
|
|
19
18
|
const { subscriptionManager: r, x402Manager: c, walletManager: f } = H(), { publicKey: i, signTransaction: R } = J(), [S, p] = B({
|
|
20
19
|
status: "idle",
|
|
@@ -210,7 +209,7 @@ function Le() {
|
|
|
210
209
|
reset: I
|
|
211
210
|
};
|
|
212
211
|
}
|
|
213
|
-
function
|
|
212
|
+
function Qe({
|
|
214
213
|
resource: r,
|
|
215
214
|
interval: c,
|
|
216
215
|
intervalDays: f,
|
|
@@ -241,7 +240,7 @@ function $e({
|
|
|
241
240
|
expiresAt: q,
|
|
242
241
|
checkStatus: M,
|
|
243
242
|
processPayment: L
|
|
244
|
-
} = Le(), u =
|
|
243
|
+
} = Le(), u = qe(), { solanaError: _ } = H(), { t: v, translations: X } = ke(), be = R || v("ui.subscribe_with_crypto"), Z = N(T), ee = N(E), te = N(L), re = N(M);
|
|
245
244
|
Z.current = T, ee.current = E, te.current = L, re.current = M;
|
|
246
245
|
const Se = m && typeof m != "string" ? m?.code ?? null : null, we = _ && typeof _ != "string" ? _?.code ?? null : null, ae = (e) => {
|
|
247
246
|
if (!e || !X) return "";
|
|
@@ -264,7 +263,7 @@ function $e({
|
|
|
264
263
|
}, [b, w, r]), z(() => {
|
|
265
264
|
b === "error" && m && (fe("crypto", m, r), ee.current?.(m));
|
|
266
265
|
}, [b, m, r]);
|
|
267
|
-
const oe = typeof window < "u" && window.top !== window.self, [ie,
|
|
266
|
+
const oe = typeof window < "u" && window.top !== window.self, [ie, F] = B(!1), [ce, j] = B(!1), [le, A] = B(!1), D = _;
|
|
268
267
|
z(() => {
|
|
269
268
|
let e = !1;
|
|
270
269
|
return e || (async () => {
|
|
@@ -279,7 +278,7 @@ function $e({
|
|
|
279
278
|
if (!e) {
|
|
280
279
|
y().error("[CryptoSubscribeButton] Auto-connect failed:", Y);
|
|
281
280
|
const Te = Y instanceof Error ? Y.message : "Failed to connect wallet";
|
|
282
|
-
V(Te, n.adapter.name),
|
|
281
|
+
V(Te, n.adapter.name), A(!1);
|
|
283
282
|
}
|
|
284
283
|
}
|
|
285
284
|
}
|
|
@@ -287,7 +286,7 @@ function $e({
|
|
|
287
286
|
e = !0;
|
|
288
287
|
};
|
|
289
288
|
}, [n, ce, g, I, s]), z(() => {
|
|
290
|
-
g && le && o && n && (Be(n.adapter.name, o.toString()), y().debug("[CryptoSubscribeButton] Processing pending subscription payment"),
|
|
289
|
+
g && le && o && n && (Be(n.adapter.name, o.toString()), y().debug("[CryptoSubscribeButton] Processing pending subscription payment"), A(!1), F(!1), me("crypto", r), te.current(r, c, { couponCode: i, intervalDays: f }));
|
|
291
290
|
}, [g, le, o, n, r, c, i, f]);
|
|
292
291
|
const ue = C(async () => {
|
|
293
292
|
if (y().debug("[CryptoSubscribeButton] executeSubscriptionFlow called", {
|
|
@@ -313,7 +312,7 @@ function $e({
|
|
|
313
312
|
if (g)
|
|
314
313
|
me("crypto", r), await L(r, c, { couponCode: i, intervalDays: f });
|
|
315
314
|
else {
|
|
316
|
-
|
|
315
|
+
A(!0);
|
|
317
316
|
try {
|
|
318
317
|
if (n)
|
|
319
318
|
y().debug(
|
|
@@ -322,14 +321,14 @@ function $e({
|
|
|
322
321
|
), ye(n.adapter.name), await s();
|
|
323
322
|
else {
|
|
324
323
|
if (y().debug("[CryptoSubscribeButton] No wallet selected, showing selector"), U.length === 0) {
|
|
325
|
-
|
|
324
|
+
A(!1);
|
|
326
325
|
const e = "No wallets available";
|
|
327
326
|
throw V(e), new Error(e);
|
|
328
327
|
}
|
|
329
|
-
|
|
328
|
+
F(!0);
|
|
330
329
|
}
|
|
331
330
|
} catch (e) {
|
|
332
|
-
|
|
331
|
+
A(!1);
|
|
333
332
|
const d = e instanceof Error ? e.message : "Failed to connect wallet";
|
|
334
333
|
y().error("[CryptoSubscribeButton] Connection error:", d), V(d, n?.adapter.name);
|
|
335
334
|
}
|
|
@@ -365,18 +364,18 @@ function $e({
|
|
|
365
364
|
} else K && (Q = v("ui.subscribed"));
|
|
366
365
|
const Ee = C(async () => {
|
|
367
366
|
try {
|
|
368
|
-
j(!1), g && await t(), a(null),
|
|
367
|
+
j(!1), g && await t(), a(null), F(!0);
|
|
369
368
|
} catch (e) {
|
|
370
369
|
y().error("Failed to change wallet:", e);
|
|
371
370
|
}
|
|
372
371
|
}, [g, t, a]), Pe = C(
|
|
373
372
|
(e) => {
|
|
374
|
-
y().debug("[CryptoSubscribeButton] Wallet clicked:", e),
|
|
373
|
+
y().debug("[CryptoSubscribeButton] Wallet clicked:", e), F(!1), a(e), j(!0);
|
|
375
374
|
},
|
|
376
375
|
[a]
|
|
377
376
|
), Re = C(async () => {
|
|
378
377
|
try {
|
|
379
|
-
if (await t(),
|
|
378
|
+
if (await t(), A(!1), typeof window < "u" && window.localStorage)
|
|
380
379
|
try {
|
|
381
380
|
window.localStorage.removeItem("walletName");
|
|
382
381
|
} catch (e) {
|
|
@@ -419,7 +418,7 @@ function $e({
|
|
|
419
418
|
zIndex: 9999,
|
|
420
419
|
padding: "1rem"
|
|
421
420
|
},
|
|
422
|
-
onClick: () =>
|
|
421
|
+
onClick: () => F(!1),
|
|
423
422
|
children: /* @__PURE__ */ G(
|
|
424
423
|
"div",
|
|
425
424
|
{
|
|
@@ -460,7 +459,7 @@ function $e({
|
|
|
460
459
|
/* @__PURE__ */ x(
|
|
461
460
|
"button",
|
|
462
461
|
{
|
|
463
|
-
onClick: () =>
|
|
462
|
+
onClick: () => F(!1),
|
|
464
463
|
style: We(u.tokens.surfaceText),
|
|
465
464
|
"aria-label": "Close modal",
|
|
466
465
|
type: "button",
|
|
@@ -497,7 +496,7 @@ function $e({
|
|
|
497
496
|
},
|
|
498
497
|
type: "button",
|
|
499
498
|
children: [
|
|
500
|
-
/* @__PURE__ */ x(
|
|
499
|
+
/* @__PURE__ */ x(Me, { wallet: e, style: { width: "24px", height: "24px" } }),
|
|
501
500
|
/* @__PURE__ */ x("span", { style: { fontWeight: 500 }, children: e.adapter.name })
|
|
502
501
|
]
|
|
503
502
|
},
|
|
@@ -564,7 +563,7 @@ function $e({
|
|
|
564
563
|
}
|
|
565
564
|
);
|
|
566
565
|
}
|
|
567
|
-
function
|
|
566
|
+
function $e() {
|
|
568
567
|
const { x402Manager: r, walletManager: c } = H(), { publicKey: f, signTransaction: i } = J(), [R, S] = B({
|
|
569
568
|
status: "idle",
|
|
570
569
|
error: null,
|
|
@@ -708,50 +707,49 @@ function Ue() {
|
|
|
708
707
|
};
|
|
709
708
|
}
|
|
710
709
|
export {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
Ot as
|
|
720
|
-
Gt as
|
|
721
|
-
|
|
722
|
-
qt as
|
|
723
|
-
|
|
724
|
-
Xe as
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
Kt as
|
|
729
|
-
Qt as
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
nr as
|
|
733
|
-
|
|
734
|
-
et as
|
|
735
|
-
tt as
|
|
736
|
-
rt as
|
|
737
|
-
|
|
738
|
-
Ut as
|
|
739
|
-
|
|
740
|
-
nt as
|
|
741
|
-
st as
|
|
742
|
-
ot as
|
|
743
|
-
it as
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
Lt as ecommerce,
|
|
710
|
+
Ye as CEDROS_EVENTS,
|
|
711
|
+
gr as CEDROS_PAY_GROUPS,
|
|
712
|
+
br as CEDROS_PAY_SECTIONS,
|
|
713
|
+
Sr as CEDROS_PAY_SECTION_IDS,
|
|
714
|
+
Dt as CIRCUIT_BREAKER_PRESETS,
|
|
715
|
+
Ve as CSP_PRESETS,
|
|
716
|
+
He as CedrosPay,
|
|
717
|
+
Nt as CedrosProvider,
|
|
718
|
+
Ot as CircuitBreakerOpenError,
|
|
719
|
+
Gt as CircuitState,
|
|
720
|
+
Wt as ComplianceGatePage,
|
|
721
|
+
qt as CreditsBalance,
|
|
722
|
+
Je as CreditsButton,
|
|
723
|
+
Xe as CreditsSubscribeButton,
|
|
724
|
+
ir as CryptoButton,
|
|
725
|
+
Qe as CryptoSubscribeButton,
|
|
726
|
+
zt as ERROR_CATEGORIES,
|
|
727
|
+
Kt as FEATURE_FLAG_NAMES,
|
|
728
|
+
Qt as FEATURE_FLAG_REGISTRY,
|
|
729
|
+
fr as KNOWN_STABLECOINS,
|
|
730
|
+
ar as LogLevel,
|
|
731
|
+
nr as Logger,
|
|
732
|
+
Ze as PaymentMethodBadge,
|
|
733
|
+
et as PaymentModal,
|
|
734
|
+
tt as ProductPrice,
|
|
735
|
+
rt as PurchaseButton,
|
|
736
|
+
$t as RATE_LIMITER_PRESETS,
|
|
737
|
+
Ut as RETRY_PRESETS,
|
|
738
|
+
at as RPC_PROVIDERS,
|
|
739
|
+
nt as SECURITY_RECOMMENDATIONS,
|
|
740
|
+
st as StripeButton,
|
|
741
|
+
ot as SubscribeButton,
|
|
742
|
+
it as SubscriptionManagementPanel,
|
|
743
|
+
ur as WalletPool,
|
|
744
|
+
ct as calculateDiscountPercentage,
|
|
745
|
+
wr as cedrosPayPlugin,
|
|
746
|
+
jt as createCircuitBreaker,
|
|
747
|
+
sr as createLogger,
|
|
748
|
+
Yt as createRateLimiter,
|
|
749
|
+
lt as createTranslator,
|
|
750
|
+
dr as createWalletPool,
|
|
751
|
+
ut as detectLocale,
|
|
752
|
+
Mt as ecommerce,
|
|
755
753
|
fe as emitPaymentError,
|
|
756
754
|
me as emitPaymentProcessing,
|
|
757
755
|
Ie as emitPaymentStart,
|
|
@@ -759,41 +757,41 @@ export {
|
|
|
759
757
|
ye as emitWalletConnect,
|
|
760
758
|
Be as emitWalletConnected,
|
|
761
759
|
V as emitWalletError,
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
760
|
+
dt as formatCSP,
|
|
761
|
+
pt as formatCouponCodes,
|
|
762
|
+
ft as generateCSP,
|
|
763
|
+
mt as generateCSPDirectives,
|
|
764
|
+
yt as getAvailableLocales,
|
|
765
|
+
Vt as getFeatureFlagDefinition,
|
|
766
|
+
Ht as getFeatureFlagDefinitions,
|
|
767
|
+
gt as getLocalizedError,
|
|
770
768
|
y as getLogger,
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
769
|
+
bt as getUserErrorMessage,
|
|
770
|
+
Jt as isFeatureEnabled,
|
|
771
|
+
St as isRetryableError,
|
|
772
|
+
wt as loadLocale,
|
|
773
|
+
Ct as logSecurityReport,
|
|
774
|
+
ht as parseCouponCodes,
|
|
775
|
+
Xt as parseFeatureFlagBoolean,
|
|
776
|
+
Zt as resolveFeatureFlags,
|
|
777
|
+
er as retryWithBackoff,
|
|
778
|
+
xt as stackCheckoutCoupons,
|
|
781
779
|
H as useCedrosContext,
|
|
782
|
-
|
|
783
|
-
|
|
780
|
+
qe as useCedrosTheme,
|
|
781
|
+
Lt as useComplianceCheck,
|
|
784
782
|
Ft as useCreditsBalance,
|
|
785
|
-
|
|
786
|
-
|
|
783
|
+
Et as useCreditsPayment,
|
|
784
|
+
Pt as useCreditsSubscription,
|
|
787
785
|
Le as useCryptoSubscription,
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
786
|
+
Rt as useLocalizedError,
|
|
787
|
+
Tt as usePaymentMode,
|
|
788
|
+
$e as useRefundVerification,
|
|
789
|
+
kt as useStripeCheckout,
|
|
790
|
+
vt as useSubscription,
|
|
791
|
+
Bt as useSubscriptionManagement,
|
|
794
792
|
ke as useTranslation,
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
793
|
+
cr as useX402Payment,
|
|
794
|
+
tr as validateConfig,
|
|
795
|
+
It as validateSecurity,
|
|
796
|
+
mr as validateTokenMint
|
|
799
797
|
};
|
|
@@ -2,12 +2,11 @@ import { jsx as i, jsxs as v, Fragment as kt } from "react/jsx-runtime";
|
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import A, { useState as we, useCallback as Wt, useRef as es, useEffect as St, useLayoutEffect as jf } from "react";
|
|
4
4
|
import { f as $l, g as Uf } from "./fetchWithTimeout-DmMOwL0Q.mjs";
|
|
5
|
-
import { u as Fl,
|
|
6
|
-
import { u as jl } from "./ThemeContext-l0bqcOGW.mjs";
|
|
5
|
+
import { u as Fl, o as Vf, l as Bl, r as jl, k as Zf, F as Hf, d as Wf, h as qf, i as Gf, j as Yf, p as Kf } from "./CedrosContext-DQc_k5PG.mjs";
|
|
7
6
|
import * as xo from "react-dom";
|
|
8
7
|
import Ul from "react-dom";
|
|
9
8
|
import { s as Ze } from "./safeHref-DqJPLPl5.mjs";
|
|
10
|
-
import { L as Qf } from "./styles-
|
|
9
|
+
import { L as Qf } from "./styles-fihm6qVA.mjs";
|
|
11
10
|
function Jf() {
|
|
12
11
|
const { config: e } = Fl(), [t, n] = we(!1), [r, o] = we(null), [a, s] = we(null);
|
|
13
12
|
return { checkCompliance: Wt(
|
|
@@ -39,7 +38,7 @@ function Jf() {
|
|
|
39
38
|
[e.serverUrl]
|
|
40
39
|
), loading: t, result: r, error: a };
|
|
41
40
|
}
|
|
42
|
-
function
|
|
41
|
+
function NC({
|
|
43
42
|
resources: e,
|
|
44
43
|
onCleared: t,
|
|
45
44
|
onBlocked: n,
|
|
@@ -48,7 +47,7 @@ function CC({
|
|
|
48
47
|
wallet: a,
|
|
49
48
|
children: s
|
|
50
49
|
}) {
|
|
51
|
-
const l =
|
|
50
|
+
const l = Bl(), { checkCompliance: c, loading: d, result: f, error: u } = Jf(), g = es(!1);
|
|
52
51
|
St(() => {
|
|
53
52
|
g.current || e.length === 0 || (g.current = !0, c(e, o, a));
|
|
54
53
|
}, [e, o, a, c]), St(() => {
|
|
@@ -108,13 +107,13 @@ function Xf(e) {
|
|
|
108
107
|
a();
|
|
109
108
|
}, [a]), { ...n, refresh: a };
|
|
110
109
|
}
|
|
111
|
-
function
|
|
110
|
+
function CC({
|
|
112
111
|
authToken: e,
|
|
113
112
|
className: t = "",
|
|
114
113
|
formatBalance: n,
|
|
115
114
|
showHeld: r = !1
|
|
116
115
|
}) {
|
|
117
|
-
const o =
|
|
116
|
+
const o = Bl(), { available: a, held: s, currency: l, loading: c, error: d, refresh: f } = Xf(e), u = o.unstyled ? t : `${o.className} cedros-theme__credits-balance ${t}`.trim();
|
|
118
117
|
if (!e)
|
|
119
118
|
return null;
|
|
120
119
|
const g = n ? n(a, l) : `${a} ${l}`;
|
|
@@ -154,7 +153,7 @@ function em({
|
|
|
154
153
|
children: t
|
|
155
154
|
}) {
|
|
156
155
|
const n = A.useMemo(
|
|
157
|
-
() =>
|
|
156
|
+
() => jl({ featureFlags: e.featureFlags }),
|
|
158
157
|
[e.featureFlags]
|
|
159
158
|
), r = A.useMemo(() => ({ config: e, featureFlags: n }), [e, n]);
|
|
160
159
|
return /* @__PURE__ */ i(ts.Provider, { value: r, children: t });
|
|
@@ -11847,7 +11846,7 @@ xu.displayName = yu;
|
|
|
11847
11846
|
function Os(e) {
|
|
11848
11847
|
return e ? "open" : "closed";
|
|
11849
11848
|
}
|
|
11850
|
-
var wu = "DialogTitleWarning", [
|
|
11849
|
+
var wu = "DialogTitleWarning", [_C, ku] = Rb(wu, {
|
|
11851
11850
|
contentName: yn,
|
|
11852
11851
|
titleName: Rs,
|
|
11853
11852
|
docsSlug: "dialog"
|
|
@@ -18522,7 +18521,7 @@ function gC(e) {
|
|
|
18522
18521
|
}
|
|
18523
18522
|
}), [e, t]);
|
|
18524
18523
|
}
|
|
18525
|
-
const
|
|
18524
|
+
const EC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18526
18525
|
__proto__: null,
|
|
18527
18526
|
Accordion: Qu,
|
|
18528
18527
|
AccordionContent: mr,
|
|
@@ -18635,7 +18634,7 @@ const AC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18635
18634
|
parseCheckoutReturn: ds,
|
|
18636
18635
|
parseFeatureFlagBoolean: Kf,
|
|
18637
18636
|
readCatalogUrlState: fs,
|
|
18638
|
-
resolveFeatureFlags:
|
|
18637
|
+
resolveFeatureFlags: jl,
|
|
18639
18638
|
useAIRelatedProducts: Pc,
|
|
18640
18639
|
useCart: _t,
|
|
18641
18640
|
useCartInventory: ps,
|
|
@@ -18660,9 +18659,9 @@ const AC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18660
18659
|
validateCommerceAdapterContract: Av
|
|
18661
18660
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18662
18661
|
export {
|
|
18663
|
-
|
|
18664
|
-
|
|
18662
|
+
NC as C,
|
|
18663
|
+
CC as a,
|
|
18665
18664
|
Xf as b,
|
|
18666
|
-
|
|
18665
|
+
EC as i,
|
|
18667
18666
|
Jf as u
|
|
18668
18667
|
};
|