@cedros/pay-react 1.1.28 → 1.1.30
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 +8 -0
- package/dist/{AISettingsSection-BlIv3CzS.mjs → AISettingsSection-BMh3hAb5.mjs} +6 -4
- package/dist/{AISettingsSection-DELur7D2.js → AISettingsSection-C0zqPbd6.js} +2 -2
- package/dist/{AutosaveIndicator-Bed0-ekg.mjs → AutosaveIndicator-3ctAnz8Y.mjs} +1 -1
- package/dist/{AutosaveIndicator-Dn_qA2hK.js → AutosaveIndicator-DXRPr4P7.js} +1 -1
- package/dist/CedrosContext-5Gjveoba.mjs +2555 -0
- package/dist/CedrosContext-CCakH2SZ.js +3 -0
- package/dist/CedrosPayAdminDashboard-DaJ9JoGn.mjs +250 -0
- package/dist/CedrosPayAdminDashboard-Uvyh9p7A.js +1 -0
- package/dist/{ChatLogsSection-v4zwzCTC.mjs → ChatLogsSection-BtJixYAp.mjs} +19 -17
- package/dist/ChatLogsSection-FC3O536G.js +1 -0
- package/dist/{ComplianceSection-CemgfDrL.mjs → ComplianceSection-BMnb1p4w.mjs} +18 -15
- package/dist/ComplianceSection-BioTKm7k.js +1 -0
- package/dist/{CryptoButton-BV9owVe2.mjs → CryptoButton-Cl2kZbOP.mjs} +26 -24
- package/dist/CryptoButton-DxFCYDlJ.js +1 -0
- package/dist/{CustomersSection-D_j7OrfS.mjs → CustomersSection-dmwoBhcf.mjs} +21 -19
- package/dist/CustomersSection-z6ARxuex.js +1 -0
- package/dist/DisputesSection-BjHHQAi7.js +1 -0
- package/dist/{DisputesSection-BcAbXp3K.mjs → DisputesSection-CHyLne76.mjs} +19 -17
- package/dist/Dropdown-BRSZlhik.mjs +111 -0
- package/dist/Dropdown-j8o0OO5L.js +1 -0
- package/dist/ErrorBanner-CAgPnj62.js +1 -0
- package/dist/ErrorBanner-lZJhCmDX.mjs +22 -0
- package/dist/{FAQSection-Dn38OhB_.mjs → FAQSection-Di2xE9Sm.mjs} +8 -6
- package/dist/FAQSection-b34DMzgV.js +1 -0
- package/dist/{ImagesSection-Ctw9Icym.mjs → ImagesSection-D63PEjR6.mjs} +6 -4
- package/dist/ImagesSection-DGBA7iKY.js +1 -0
- package/dist/{InventorySection-DmhjUlRZ.mjs → InventorySection-Dp5Yu4TA.mjs} +25 -23
- package/dist/InventorySection-bVCECzX5.js +1 -0
- package/dist/LazyCedrosPayAdminDashboard-BqJDNrDI.mjs +9 -0
- package/dist/LazyCedrosPayAdminDashboard-CpfTtOBc.js +1 -0
- package/dist/{MessagingSection-B1FaGxkp.mjs → MessagingSection-BLCnCpEv.mjs} +5 -4
- package/dist/MessagingSection-DU0dYNMy.js +1 -0
- package/dist/{OrdersSection-Bj8bPdg8.mjs → OrdersSection-Bd56F3cj.mjs} +27 -24
- package/dist/OrdersSection-FOFEAgs1.js +1 -0
- package/dist/PaymentSettingsSection-52iw47Su.mjs +648 -0
- package/dist/PaymentSettingsSection-B5J56VAk.js +1 -0
- package/dist/ReturnsSection-BjpIVFfN.js +1 -0
- package/dist/{ReturnsSection-BC0L8r2e.mjs → ReturnsSection-DUVeKrCd.mjs} +11 -9
- package/dist/{SettingsSection-vdYFSNxB.js → SettingsSection-DKkHykaC.js} +1 -1
- package/dist/{SettingsSection-KYdEizq_.mjs → SettingsSection-vK9WIwXE.mjs} +1 -1
- package/dist/ShippingSection-B5lk7zpS.js +1 -0
- package/dist/{ShippingSection-BOgto6_9.mjs → ShippingSection-CZRrXrlh.mjs} +5 -3
- package/dist/{SingleCategorySettings-suJ8z9d8.mjs → SingleCategorySettings-C8xJ47_T.mjs} +143 -140
- package/dist/SingleCategorySettings-g7D-9lG1.js +3 -0
- package/dist/StatsBar-CWXw2ZT3.js +1 -0
- package/dist/StatsBar-D4cOKG2e.mjs +25 -0
- package/dist/StorefrontSection-BWnMB9k-.js +1 -0
- package/dist/{StorefrontSection-BRvIGBEJ.mjs → StorefrontSection-uXSVbEAa.mjs} +121 -119
- package/dist/{SubscriptionsSection-D60qrX9a.mjs → SubscriptionsSection-Ci_AZrWA.mjs} +11 -9
- package/dist/SubscriptionsSection-DQfXkuDv.js +1 -0
- package/dist/{TaxSection-C7-pv-Rl.mjs → TaxSection-BTukS_cU.mjs} +23 -21
- package/dist/TaxSection-cuPQISxZ.js +1 -0
- package/dist/ThemeContext-CFXyYx7A.js +1 -0
- package/dist/ThemeContext-l0bqcOGW.mjs +126 -0
- package/dist/Token22Section-CCfkDm8W.js +1 -0
- package/dist/{Token22Section-CrHLQ0EB.mjs → Token22Section-DRsPJuTq.mjs} +7 -6
- package/dist/{WalletManager-BIwH8Dw_.mjs → WalletManager-D-eoqUDy.mjs} +21 -19
- package/dist/WalletManager-DXChB9LA.js +1 -0
- package/dist/{WebhooksSection-COPW4Ec0.mjs → WebhooksSection-A8Y4ZGcj.mjs} +40 -38
- package/dist/WebhooksSection-CnEmaGH1.js +1 -0
- package/dist/admin.d.ts +2 -0
- package/dist/admin.js +1 -0
- package/dist/admin.mjs +7 -0
- package/dist/configApi-BS5UJfzm.js +1 -0
- package/dist/{configApi-6XhAJGKX.mjs → configApi-BUXZOMWK.mjs} +57 -3
- package/dist/crypto-only.js +1 -1
- package/dist/crypto-only.mjs +215 -202
- package/dist/dateHelpers-BKW_lGND.js +1 -0
- package/dist/dateHelpers-yvPkofYQ.mjs +6 -0
- package/dist/fetchWithTimeout-CG0EKbhf.js +1 -0
- package/dist/fetchWithTimeout-DmMOwL0Q.mjs +195 -0
- package/dist/icons-C3yDMnKE.mjs +235 -0
- package/dist/icons-Cjgd9YVo.js +1 -0
- package/dist/index-9QF_UfSN.mjs +18668 -0
- package/dist/index-Cq9ya93W.js +84 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +74 -63
- package/dist/safeHref-DqJPLPl5.mjs +12 -0
- package/dist/safeHref-DyHIpVjY.js +1 -0
- package/dist/sectionIds-D46-_-h-.js +1 -0
- package/dist/sectionIds-YktNxmRt.mjs +124 -0
- package/dist/sections-511_XBh4.js +1 -0
- package/dist/sections-CRaMa8ZB.mjs +9 -0
- package/dist/sections-more-Cgw2qJlA.js +1 -0
- package/dist/sections-more-Ixw6mM6R.mjs +3082 -0
- package/dist/src/admin/index.d.ts +3 -3
- package/dist/src/admin/index.d.ts.map +1 -1
- package/dist/src/admin/plugin.d.ts.map +1 -1
- package/dist/src/admin/types.d.ts +2 -6
- package/dist/src/admin/types.d.ts.map +1 -1
- package/dist/src/admin.d.ts +9 -0
- package/dist/src/admin.d.ts.map +1 -0
- package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts +4 -0
- package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts.map +1 -0
- package/dist/src/components/admin/PaymentReadinessChecklist.d.ts +9 -0
- package/dist/src/components/admin/PaymentReadinessChecklist.d.ts.map +1 -0
- package/dist/src/components/admin/PaymentSettingsSection.d.ts.map +1 -1
- package/dist/src/components/admin/PaymentSetupGuide.d.ts +6 -0
- package/dist/src/components/admin/PaymentSetupGuide.d.ts.map +1 -0
- package/dist/src/components/admin/ProductsSection.d.ts.map +1 -1
- package/dist/src/components/admin/configApi.d.ts +1 -1
- package/dist/src/components/admin/configApi.d.ts.map +1 -1
- package/dist/src/components/admin/icons.d.ts +3 -50
- package/dist/src/components/admin/icons.d.ts.map +1 -1
- package/dist/src/components/admin/index.d.ts +1 -1
- package/dist/src/components/admin/index.d.ts.map +1 -1
- package/dist/src/components/admin/types.d.ts +43 -0
- package/dist/src/components/admin/types.d.ts.map +1 -1
- package/dist/src/context/CedrosContext.d.ts +2 -0
- package/dist/src/context/CedrosContext.d.ts.map +1 -1
- package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts +2 -0
- package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts.map +1 -0
- package/dist/src/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -1
- package/dist/src/ecommerce/components/general/ErrorBoundary.d.ts +1 -1
- package/dist/src/ecommerce/components/ui/button.d.ts +1 -1
- package/dist/src/ecommerce/components/ui/sheet.d.ts +1 -1
- package/dist/src/ecommerce/config/context.d.ts +2 -0
- package/dist/src/ecommerce/config/context.d.ts.map +1 -1
- package/dist/src/ecommerce/config/types.d.ts +2 -0
- package/dist/src/ecommerce/config/types.d.ts.map +1 -1
- package/dist/src/ecommerce/index.d.ts +2 -0
- package/dist/src/ecommerce/index.d.ts.map +1 -1
- package/dist/src/featureFlags.d.ts +41 -0
- package/dist/src/featureFlags.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/managers/StripeManager.d.ts.map +1 -1
- package/dist/src/managers/SubscriptionManager.d.ts +1 -0
- package/dist/src/managers/SubscriptionManager.d.ts.map +1 -1
- package/dist/src/standalone-admin.d.ts +8 -0
- package/dist/src/standalone-admin.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +14 -1
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/subscription.d.ts +47 -1
- package/dist/src/types/subscription.d.ts.map +1 -1
- package/dist/src/utils/validateConfig.d.ts.map +1 -1
- package/dist/standalone-admin.d.ts +2 -0
- package/dist/standalone-admin.js +1 -0
- package/dist/standalone-admin.mjs +4 -0
- package/dist/stripe-only.js +1 -1
- package/dist/stripe-only.mjs +35 -33
- package/dist/styles--fxb3lCl.js +1 -0
- package/dist/{styles-D4SQkuV3.mjs → styles-DGagylUj.mjs} +53 -51
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/tokenMintValidator-DAjQld0r.mjs +98 -0
- package/dist/tokenMintValidator-DNBhoefh.js +4 -0
- package/dist/{walletPool-DE-t1wSW.mjs → walletPool-9MylB2QK.mjs} +1 -1
- package/dist/walletPool-BjTXX6Vn.js +1 -0
- package/package.json +9 -3
- package/dist/CedrosContext-C2RjHLaQ.js +0 -6
- package/dist/CedrosContext-CY6zvjvJ.mjs +0 -2801
- package/dist/ChatLogsSection-BH5tLA4T.js +0 -1
- package/dist/ComplianceSection-DP2a9-S0.js +0 -1
- package/dist/CryptoButton-DpiCnyXE.js +0 -1
- package/dist/CustomersSection-CBwy_waO.js +0 -1
- package/dist/DisputesSection-BLjIk60n.js +0 -1
- package/dist/FAQSection-wNeH0i6Q.js +0 -1
- package/dist/ImagesSection-0ZzKlzMJ.js +0 -1
- package/dist/InventorySection-zV6lTmue.js +0 -1
- package/dist/MessagingSection-B_wdFR0j.js +0 -1
- package/dist/OrdersSection-Dw2FX-1d.js +0 -1
- package/dist/PaymentSettingsSection-BYF4D-GR.js +0 -1
- package/dist/PaymentSettingsSection-EnMxeWjv.mjs +0 -94
- package/dist/ReturnsSection-D_pJVxuG.js +0 -1
- package/dist/ShippingSection-1DRSTu49.js +0 -1
- package/dist/SingleCategorySettings-DwCnBdRf.js +0 -3
- package/dist/StorefrontSection-RumGkb3C.js +0 -1
- package/dist/SubscriptionsSection-C2aLLn7L.js +0 -1
- package/dist/TaxSection-Dt1DnM51.js +0 -1
- package/dist/Token22Section-DY3mUwTY.js +0 -1
- package/dist/WalletManager-B3UdQ5pQ.js +0 -1
- package/dist/WebhooksSection-CKeiJ7Py.js +0 -1
- package/dist/configApi-DkduMQg1.js +0 -1
- package/dist/index-C0g-JxJk.js +0 -84
- package/dist/index-DXnuQp5x.mjs +0 -22128
- package/dist/sections-C1NpK7hk.mjs +0 -9
- package/dist/sections-DVVSZBhW.js +0 -1
- package/dist/styles-BT4bhFey.js +0 -1
- package/dist/walletPool-IS7R3MR1.js +0 -1
package/dist/crypto-only.mjs
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { O as
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as
|
|
4
|
-
import { u as H,
|
|
5
|
-
import { C as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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-DGagylUj.mjs";
|
|
2
|
+
import { C as Ve, a as He, b as Je, c as Xe, d as Ze, P as et, e as tt, f as rt, g as at, R as nt, S as st, h as ot, i as it, j as ct, k as lt, l as ut, m as dt, u as pt, v as ft, w as mt, x as yt, y as gt, z as bt, A as St, B as wt, D as Ct, E as ht, F as xt, G as Et, H as Pt, I as Rt, J as Tt, K as kt, L as vt, M as Bt, N as It, Q as _t } from "./styles-DGagylUj.mjs";
|
|
3
|
+
import { C as qt, a as Mt, i as Lt, u as At, b as Ft } from "./index-9QF_UfSN.mjs";
|
|
4
|
+
import { u as H, l as O } from "./CedrosContext-5Gjveoba.mjs";
|
|
5
|
+
import { C as Nt, a as Ot, b as Gt, c as zt, E as Kt, F as Qt, d as $t, R as Ut, e as jt, f as Yt, g as Vt, h as Ht, i as Jt, j as Xt, p as Zt, r as er, k as tr, v as rr } from "./CedrosContext-5Gjveoba.mjs";
|
|
6
|
+
import { g as y } from "./fetchWithTimeout-DmMOwL0Q.mjs";
|
|
7
|
+
import { L as nr, a as sr, c as or } from "./fetchWithTimeout-DmMOwL0Q.mjs";
|
|
8
|
+
import { C as cr, u as lr } from "./CryptoButton-Cl2kZbOP.mjs";
|
|
9
|
+
import { jsxs as G, jsx as x } from "react/jsx-runtime";
|
|
10
|
+
import { useState as B, useRef as N, useCallback as C, useMemo as $, useEffect as z } from "react";
|
|
9
11
|
import { useWallet as J } from "@solana/wallet-adapter-react";
|
|
10
12
|
import { WalletReadyState as ge } from "@solana/wallet-adapter-base";
|
|
11
|
-
import { WalletIcon as
|
|
12
|
-
import {
|
|
13
|
+
import { WalletIcon as qe } from "@solana/wallet-adapter-react-ui";
|
|
14
|
+
import { u as Me } from "./ThemeContext-l0bqcOGW.mjs";
|
|
15
|
+
import { WalletPool as dr, createWalletPool as pr } from "./walletPool-9MylB2QK.mjs";
|
|
16
|
+
import { K as mr, a as yr } from "./tokenMintValidator-DAjQld0r.mjs";
|
|
17
|
+
import { C as br, a as Sr, b as wr, c as Cr } from "./sectionIds-YktNxmRt.mjs";
|
|
18
|
+
import { C as xr } from "./LazyCedrosPayAdminDashboard-BqJDNrDI.mjs";
|
|
13
19
|
function Le() {
|
|
14
20
|
const { subscriptionManager: r, x402Manager: c, walletManager: f } = H(), { publicKey: i, signTransaction: R } = J(), [S, p] = B({
|
|
15
21
|
status: "idle",
|
|
@@ -17,7 +23,7 @@ function Le() {
|
|
|
17
23
|
sessionId: null,
|
|
18
24
|
subscriptionStatus: null,
|
|
19
25
|
expiresAt: null
|
|
20
|
-
}), [
|
|
26
|
+
}), [T, E] = B(null), P = N(!1), h = C(() => {
|
|
21
27
|
if (!i) {
|
|
22
28
|
const s = "Wallet not connected";
|
|
23
29
|
return p((t) => ({ ...t, status: "error", error: s })), { valid: !1, error: s };
|
|
@@ -27,7 +33,7 @@ function Le() {
|
|
|
27
33
|
return p((t) => ({ ...t, status: "error", error: s })), { valid: !1, error: s };
|
|
28
34
|
}
|
|
29
35
|
return { valid: !0 };
|
|
30
|
-
}, [i, R]),
|
|
36
|
+
}, [i, R]), k = C(
|
|
31
37
|
async (s) => {
|
|
32
38
|
if (!i)
|
|
33
39
|
return p((t) => ({
|
|
@@ -45,24 +51,24 @@ function Le() {
|
|
|
45
51
|
resource: s,
|
|
46
52
|
userId: i.toString()
|
|
47
53
|
});
|
|
48
|
-
return p((
|
|
49
|
-
...
|
|
54
|
+
return p((a) => ({
|
|
55
|
+
...a,
|
|
50
56
|
status: t.active ? "success" : "idle",
|
|
51
57
|
subscriptionStatus: t.status,
|
|
52
58
|
expiresAt: t.expiresAt || t.currentPeriodEnd || null
|
|
53
59
|
})), t;
|
|
54
60
|
} catch (t) {
|
|
55
|
-
const
|
|
61
|
+
const a = O(t, "Failed to check subscription status");
|
|
56
62
|
return p((l) => ({
|
|
57
63
|
...l,
|
|
58
64
|
status: "error",
|
|
59
|
-
error:
|
|
65
|
+
error: a
|
|
60
66
|
})), null;
|
|
61
67
|
}
|
|
62
68
|
},
|
|
63
69
|
[i, r]
|
|
64
70
|
), W = C(
|
|
65
|
-
async (s, t,
|
|
71
|
+
async (s, t, a) => {
|
|
66
72
|
p((l) => ({
|
|
67
73
|
...l,
|
|
68
74
|
status: "loading",
|
|
@@ -72,42 +78,42 @@ function Le() {
|
|
|
72
78
|
const l = await r.requestSubscriptionQuote(
|
|
73
79
|
s,
|
|
74
80
|
t,
|
|
75
|
-
|
|
81
|
+
a
|
|
76
82
|
);
|
|
77
|
-
return
|
|
78
|
-
...
|
|
83
|
+
return E(l), p((n) => ({
|
|
84
|
+
...n,
|
|
79
85
|
status: "idle"
|
|
80
86
|
})), l;
|
|
81
87
|
} catch (l) {
|
|
82
|
-
const
|
|
88
|
+
const n = O(l, "Failed to get subscription quote");
|
|
83
89
|
return p((o) => ({
|
|
84
90
|
...o,
|
|
85
91
|
status: "error",
|
|
86
|
-
error:
|
|
92
|
+
error: n
|
|
87
93
|
})), null;
|
|
88
94
|
}
|
|
89
95
|
},
|
|
90
96
|
[r]
|
|
91
97
|
), g = C(
|
|
92
|
-
async (s, t,
|
|
93
|
-
if (
|
|
98
|
+
async (s, t, a) => {
|
|
99
|
+
if (P.current)
|
|
94
100
|
return { success: !1, error: "Payment already in progress" };
|
|
95
101
|
const l = h();
|
|
96
102
|
if (!l.valid)
|
|
97
103
|
return { success: !1, error: l.error };
|
|
98
|
-
|
|
99
|
-
...
|
|
104
|
+
P.current = !0, p((n) => ({
|
|
105
|
+
...n,
|
|
100
106
|
status: "loading",
|
|
101
107
|
error: null
|
|
102
108
|
}));
|
|
103
109
|
try {
|
|
104
|
-
const
|
|
110
|
+
const n = await r.requestSubscriptionQuote(
|
|
105
111
|
s,
|
|
106
112
|
t,
|
|
107
|
-
|
|
113
|
+
a
|
|
108
114
|
);
|
|
109
|
-
|
|
110
|
-
const o =
|
|
115
|
+
E(n);
|
|
116
|
+
const o = n.requirement;
|
|
111
117
|
if (!c.validateRequirement(o))
|
|
112
118
|
throw new Error("Invalid subscription quote received from server");
|
|
113
119
|
const b = !!o.extra?.feePayer;
|
|
@@ -117,7 +123,7 @@ function Le() {
|
|
|
117
123
|
resourceId: s,
|
|
118
124
|
userWallet: i.toString(),
|
|
119
125
|
feePayer: o.extra.feePayer,
|
|
120
|
-
couponCode:
|
|
126
|
+
couponCode: a?.couponCode
|
|
121
127
|
}), M = f.deserializeTransaction(w), L = await f.partiallySignTransaction({
|
|
122
128
|
transaction: M,
|
|
123
129
|
signTransaction: R,
|
|
@@ -126,7 +132,7 @@ function Le() {
|
|
|
126
132
|
m = await c.submitGaslessTransaction({
|
|
127
133
|
resource: s,
|
|
128
134
|
partialTx: L,
|
|
129
|
-
couponCode:
|
|
135
|
+
couponCode: a?.couponCode,
|
|
130
136
|
resourceType: "regular",
|
|
131
137
|
requirement: o
|
|
132
138
|
});
|
|
@@ -145,7 +151,7 @@ function Le() {
|
|
|
145
151
|
m = await c.submitPayment({
|
|
146
152
|
resource: s,
|
|
147
153
|
payload: M,
|
|
148
|
-
couponCode:
|
|
154
|
+
couponCode: a?.couponCode,
|
|
149
155
|
resourceType: "regular"
|
|
150
156
|
});
|
|
151
157
|
}
|
|
@@ -168,15 +174,15 @@ function Le() {
|
|
|
168
174
|
error: m.error || "Subscription payment failed"
|
|
169
175
|
}));
|
|
170
176
|
return m;
|
|
171
|
-
} catch (
|
|
172
|
-
const o =
|
|
177
|
+
} catch (n) {
|
|
178
|
+
const o = O(n, "Subscription payment failed");
|
|
173
179
|
return p((b) => ({
|
|
174
180
|
...b,
|
|
175
181
|
status: "error",
|
|
176
182
|
error: o
|
|
177
183
|
})), { success: !1, error: o };
|
|
178
184
|
} finally {
|
|
179
|
-
|
|
185
|
+
P.current = !1;
|
|
180
186
|
}
|
|
181
187
|
},
|
|
182
188
|
[
|
|
@@ -194,12 +200,12 @@ function Le() {
|
|
|
194
200
|
sessionId: null,
|
|
195
201
|
subscriptionStatus: null,
|
|
196
202
|
expiresAt: null
|
|
197
|
-
}),
|
|
203
|
+
}), E(null);
|
|
198
204
|
}, []);
|
|
199
205
|
return {
|
|
200
206
|
...S,
|
|
201
|
-
quote:
|
|
202
|
-
checkStatus:
|
|
207
|
+
quote: T,
|
|
208
|
+
checkStatus: k,
|
|
203
209
|
requestQuote: W,
|
|
204
210
|
processPayment: g,
|
|
205
211
|
reset: I
|
|
@@ -213,11 +219,11 @@ function $e({
|
|
|
213
219
|
label: R,
|
|
214
220
|
disabled: S = !1,
|
|
215
221
|
onAttempt: p,
|
|
216
|
-
onSuccess:
|
|
217
|
-
onError:
|
|
218
|
-
className:
|
|
222
|
+
onSuccess: T,
|
|
223
|
+
onError: E,
|
|
224
|
+
className: P = "",
|
|
219
225
|
testPageUrl: h,
|
|
220
|
-
hideMessages:
|
|
226
|
+
hideMessages: k = !1,
|
|
221
227
|
autoCheckStatus: W = !0
|
|
222
228
|
}) {
|
|
223
229
|
const {
|
|
@@ -225,9 +231,9 @@ function $e({
|
|
|
225
231
|
connecting: I,
|
|
226
232
|
connect: s,
|
|
227
233
|
disconnect: t,
|
|
228
|
-
select:
|
|
234
|
+
select: a,
|
|
229
235
|
wallets: l,
|
|
230
|
-
wallet:
|
|
236
|
+
wallet: n,
|
|
231
237
|
publicKey: o
|
|
232
238
|
} = J(), {
|
|
233
239
|
status: b,
|
|
@@ -236,62 +242,62 @@ function $e({
|
|
|
236
242
|
expiresAt: q,
|
|
237
243
|
checkStatus: M,
|
|
238
244
|
processPayment: L
|
|
239
|
-
} = Le(), u =
|
|
240
|
-
Z.current =
|
|
241
|
-
const Se = m && typeof m != "string" ? m?.code ?? null : null, we = _ && typeof _ != "string" ? _?.code ?? null : null,
|
|
245
|
+
} = Le(), u = Me(), { 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);
|
|
246
|
+
Z.current = T, ee.current = E, te.current = L, re.current = M;
|
|
247
|
+
const Se = m && typeof m != "string" ? m?.code ?? null : null, we = _ && typeof _ != "string" ? _?.code ?? null : null, ae = (e) => {
|
|
242
248
|
if (!e || !X) return "";
|
|
243
249
|
const d = X.errors[e];
|
|
244
250
|
return d ? d.action ? `${d.message} ${d.action}` : d.message : "";
|
|
245
|
-
},
|
|
251
|
+
}, ne = m ? typeof m == "string" ? m : ae(Se) : null, se = _ ? typeof _ == "string" ? _ : ae(we) : null, Ce = $(
|
|
246
252
|
() => l.map((e) => `${e.adapter.name}-${e.readyState}`).join(","),
|
|
247
253
|
[l]
|
|
248
|
-
),
|
|
254
|
+
), U = $(
|
|
249
255
|
() => l.filter(
|
|
250
256
|
({ readyState: e }) => e === ge.Installed || e === ge.Loadable
|
|
251
257
|
),
|
|
252
258
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
253
259
|
[Ce]
|
|
254
260
|
);
|
|
255
|
-
|
|
261
|
+
z(() => {
|
|
256
262
|
W && g && o && (y().debug("[CryptoSubscribeButton] Auto-checking subscription status"), re.current(r));
|
|
257
|
-
}, [W, g, o, r]),
|
|
263
|
+
}, [W, g, o, r]), z(() => {
|
|
258
264
|
b === "success" && w === "active" && (ve("crypto", "subscription-active", r), Z.current?.("subscription-active"));
|
|
259
|
-
}, [b, w, r]),
|
|
265
|
+
}, [b, w, r]), z(() => {
|
|
260
266
|
b === "error" && m && (fe("crypto", m, r), ee.current?.(m));
|
|
261
267
|
}, [b, m, r]);
|
|
262
|
-
const oe = typeof window < "u" && window.top !== window.self, [ie, A] = B(!1), [ce,
|
|
263
|
-
|
|
268
|
+
const oe = typeof window < "u" && window.top !== window.self, [ie, A] = B(!1), [ce, j] = B(!1), [le, F] = B(!1), D = _;
|
|
269
|
+
z(() => {
|
|
264
270
|
let e = !1;
|
|
265
271
|
return e || (async () => {
|
|
266
|
-
if (ce &&
|
|
272
|
+
if (ce && n && !g && !I) {
|
|
267
273
|
y().debug(
|
|
268
274
|
"[CryptoSubscribeButton] Wallet detected, attempting auto-connect:",
|
|
269
|
-
|
|
270
|
-
),
|
|
275
|
+
n.adapter.name
|
|
276
|
+
), j(!1), ye(n.adapter.name);
|
|
271
277
|
try {
|
|
272
278
|
await s(), e || y().debug("[CryptoSubscribeButton] Auto-connect successful");
|
|
273
279
|
} catch (Y) {
|
|
274
280
|
if (!e) {
|
|
275
281
|
y().error("[CryptoSubscribeButton] Auto-connect failed:", Y);
|
|
276
|
-
const
|
|
277
|
-
V(
|
|
282
|
+
const Te = Y instanceof Error ? Y.message : "Failed to connect wallet";
|
|
283
|
+
V(Te, n.adapter.name), F(!1);
|
|
278
284
|
}
|
|
279
285
|
}
|
|
280
286
|
}
|
|
281
287
|
})(), () => {
|
|
282
288
|
e = !0;
|
|
283
289
|
};
|
|
284
|
-
}, [
|
|
285
|
-
g && le && o &&
|
|
286
|
-
}, [g, le, o,
|
|
290
|
+
}, [n, ce, g, I, s]), z(() => {
|
|
291
|
+
g && le && o && n && (Be(n.adapter.name, o.toString()), y().debug("[CryptoSubscribeButton] Processing pending subscription payment"), F(!1), A(!1), me("crypto", r), te.current(r, c, { couponCode: i, intervalDays: f }));
|
|
292
|
+
}, [g, le, o, n, r, c, i, f]);
|
|
287
293
|
const ue = C(async () => {
|
|
288
294
|
if (y().debug("[CryptoSubscribeButton] executeSubscriptionFlow called", {
|
|
289
295
|
connected: g,
|
|
290
|
-
wallet:
|
|
296
|
+
wallet: n?.adapter.name,
|
|
291
297
|
resource: r,
|
|
292
298
|
interval: c
|
|
293
|
-
}), Ie("crypto", r), p && p("crypto"),
|
|
294
|
-
y().error("[CryptoSubscribeButton] Solana dependencies missing:",
|
|
299
|
+
}), Ie("crypto", r), p && p("crypto"), D) {
|
|
300
|
+
y().error("[CryptoSubscribeButton] Solana dependencies missing:", D), fe("crypto", D, r), E && E(D);
|
|
295
301
|
return;
|
|
296
302
|
}
|
|
297
303
|
if (oe) {
|
|
@@ -308,70 +314,70 @@ function $e({
|
|
|
308
314
|
if (g)
|
|
309
315
|
me("crypto", r), await L(r, c, { couponCode: i, intervalDays: f });
|
|
310
316
|
else {
|
|
311
|
-
|
|
317
|
+
F(!0);
|
|
312
318
|
try {
|
|
313
|
-
if (
|
|
319
|
+
if (n)
|
|
314
320
|
y().debug(
|
|
315
321
|
"[CryptoSubscribeButton] Wallet already selected, connecting:",
|
|
316
|
-
|
|
317
|
-
), ye(
|
|
322
|
+
n.adapter.name
|
|
323
|
+
), ye(n.adapter.name), await s();
|
|
318
324
|
else {
|
|
319
|
-
if (y().debug("[CryptoSubscribeButton] No wallet selected, showing selector"),
|
|
320
|
-
|
|
325
|
+
if (y().debug("[CryptoSubscribeButton] No wallet selected, showing selector"), U.length === 0) {
|
|
326
|
+
F(!1);
|
|
321
327
|
const e = "No wallets available";
|
|
322
328
|
throw V(e), new Error(e);
|
|
323
329
|
}
|
|
324
330
|
A(!0);
|
|
325
331
|
}
|
|
326
332
|
} catch (e) {
|
|
327
|
-
|
|
333
|
+
F(!1);
|
|
328
334
|
const d = e instanceof Error ? e.message : "Failed to connect wallet";
|
|
329
|
-
y().error("[CryptoSubscribeButton] Connection error:", d), V(d,
|
|
335
|
+
y().error("[CryptoSubscribeButton] Connection error:", d), V(d, n?.adapter.name);
|
|
330
336
|
}
|
|
331
337
|
}
|
|
332
338
|
}, [
|
|
333
339
|
g,
|
|
334
|
-
|
|
340
|
+
n,
|
|
335
341
|
r,
|
|
336
342
|
c,
|
|
337
343
|
i,
|
|
338
344
|
f,
|
|
339
345
|
oe,
|
|
340
346
|
h,
|
|
341
|
-
|
|
347
|
+
U,
|
|
342
348
|
s,
|
|
343
349
|
L,
|
|
344
|
-
|
|
350
|
+
D,
|
|
345
351
|
p,
|
|
346
|
-
|
|
347
|
-
]), de =
|
|
352
|
+
E
|
|
353
|
+
]), de = $(() => `crypto-subscribe-${r}-${c}`, [r, c]), he = $(
|
|
348
354
|
() => _e(de, ue, {
|
|
349
355
|
cooldownMs: 200,
|
|
350
356
|
deduplicationWindowMs: 0
|
|
351
357
|
}),
|
|
352
358
|
[de, ue]
|
|
353
|
-
), pe = b === "loading" || b === "checking",
|
|
354
|
-
let
|
|
359
|
+
), pe = b === "loading" || b === "checking", K = w === "active" || w === "trialing", xe = S || pe || I || !!D || K;
|
|
360
|
+
let Q = be;
|
|
355
361
|
if (pe)
|
|
356
|
-
|
|
357
|
-
else if (
|
|
362
|
+
Q = v("ui.processing");
|
|
363
|
+
else if (K && q) {
|
|
358
364
|
const e = new Date(q).toLocaleDateString();
|
|
359
|
-
|
|
360
|
-
} else
|
|
361
|
-
const
|
|
365
|
+
Q = `${v("ui.subscribed_until")} ${e}`;
|
|
366
|
+
} else K && (Q = v("ui.subscribed"));
|
|
367
|
+
const Ee = C(async () => {
|
|
362
368
|
try {
|
|
363
|
-
|
|
369
|
+
j(!1), g && await t(), a(null), A(!0);
|
|
364
370
|
} catch (e) {
|
|
365
371
|
y().error("Failed to change wallet:", e);
|
|
366
372
|
}
|
|
367
|
-
}, [g, t,
|
|
373
|
+
}, [g, t, a]), Pe = C(
|
|
368
374
|
(e) => {
|
|
369
|
-
y().debug("[CryptoSubscribeButton] Wallet clicked:", e), A(!1),
|
|
375
|
+
y().debug("[CryptoSubscribeButton] Wallet clicked:", e), A(!1), a(e), j(!0);
|
|
370
376
|
},
|
|
371
|
-
[
|
|
377
|
+
[a]
|
|
372
378
|
), Re = C(async () => {
|
|
373
379
|
try {
|
|
374
|
-
if (await t(),
|
|
380
|
+
if (await t(), F(!1), typeof window < "u" && window.localStorage)
|
|
375
381
|
try {
|
|
376
382
|
window.localStorage.removeItem("walletName");
|
|
377
383
|
} catch (e) {
|
|
@@ -381,10 +387,10 @@ function $e({
|
|
|
381
387
|
y().error("Failed to disconnect wallet:", e);
|
|
382
388
|
}
|
|
383
389
|
}, [t]);
|
|
384
|
-
return /* @__PURE__ */
|
|
390
|
+
return /* @__PURE__ */ G(
|
|
385
391
|
"div",
|
|
386
392
|
{
|
|
387
|
-
className: u.unstyled ?
|
|
393
|
+
className: u.unstyled ? P : `${u.className} cedros-theme__crypto-button ${P || ""}`,
|
|
388
394
|
style: u.unstyled ? {} : u.style,
|
|
389
395
|
children: [
|
|
390
396
|
/* @__PURE__ */ x(
|
|
@@ -392,12 +398,12 @@ function $e({
|
|
|
392
398
|
{
|
|
393
399
|
onClick: he,
|
|
394
400
|
disabled: xe,
|
|
395
|
-
className: u.unstyled ?
|
|
401
|
+
className: u.unstyled ? P : "cedros-theme__button cedros-theme__crypto",
|
|
396
402
|
type: "button",
|
|
397
|
-
children:
|
|
403
|
+
children: Q
|
|
398
404
|
}
|
|
399
405
|
),
|
|
400
|
-
ie && !
|
|
406
|
+
ie && !k && /* @__PURE__ */ x(
|
|
401
407
|
"div",
|
|
402
408
|
{
|
|
403
409
|
className: "cedros-modal-overlay",
|
|
@@ -415,7 +421,7 @@ function $e({
|
|
|
415
421
|
padding: "1rem"
|
|
416
422
|
},
|
|
417
423
|
onClick: () => A(!1),
|
|
418
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ G(
|
|
419
425
|
"div",
|
|
420
426
|
{
|
|
421
427
|
className: "cedros-modal-content",
|
|
@@ -430,7 +436,7 @@ function $e({
|
|
|
430
436
|
},
|
|
431
437
|
onClick: (e) => e.stopPropagation(),
|
|
432
438
|
children: [
|
|
433
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ G(
|
|
434
440
|
"div",
|
|
435
441
|
{
|
|
436
442
|
style: {
|
|
@@ -465,10 +471,10 @@ function $e({
|
|
|
465
471
|
]
|
|
466
472
|
}
|
|
467
473
|
),
|
|
468
|
-
/* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children:
|
|
474
|
+
/* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: U.map((e) => /* @__PURE__ */ G(
|
|
469
475
|
"button",
|
|
470
476
|
{
|
|
471
|
-
onClick: () =>
|
|
477
|
+
onClick: () => Pe(e.adapter.name),
|
|
472
478
|
style: {
|
|
473
479
|
width: "100%",
|
|
474
480
|
padding: "1rem",
|
|
@@ -492,7 +498,7 @@ function $e({
|
|
|
492
498
|
},
|
|
493
499
|
type: "button",
|
|
494
500
|
children: [
|
|
495
|
-
/* @__PURE__ */ x(
|
|
501
|
+
/* @__PURE__ */ x(qe, { wallet: e, style: { width: "24px", height: "24px" } }),
|
|
496
502
|
/* @__PURE__ */ x("span", { style: { fontWeight: 500 }, children: e.adapter.name })
|
|
497
503
|
]
|
|
498
504
|
},
|
|
@@ -503,7 +509,7 @@ function $e({
|
|
|
503
509
|
)
|
|
504
510
|
}
|
|
505
511
|
),
|
|
506
|
-
g && !
|
|
512
|
+
g && !k && !ie && /* @__PURE__ */ G(
|
|
507
513
|
"div",
|
|
508
514
|
{
|
|
509
515
|
style: {
|
|
@@ -518,7 +524,7 @@ function $e({
|
|
|
518
524
|
/* @__PURE__ */ x(
|
|
519
525
|
"button",
|
|
520
526
|
{
|
|
521
|
-
onClick:
|
|
527
|
+
onClick: Ee,
|
|
522
528
|
style: {
|
|
523
529
|
background: "none",
|
|
524
530
|
border: "none",
|
|
@@ -552,31 +558,31 @@ function $e({
|
|
|
552
558
|
]
|
|
553
559
|
}
|
|
554
560
|
),
|
|
555
|
-
!
|
|
556
|
-
!
|
|
557
|
-
!
|
|
561
|
+
!k && se && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__error", children: se }),
|
|
562
|
+
!k && ne && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__error", children: ne }),
|
|
563
|
+
!k && K && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__success", children: v("ui.subscription_active") })
|
|
558
564
|
]
|
|
559
565
|
}
|
|
560
566
|
);
|
|
561
567
|
}
|
|
562
|
-
function
|
|
568
|
+
function Ue() {
|
|
563
569
|
const { x402Manager: r, walletManager: c } = H(), { publicKey: f, signTransaction: i } = J(), [R, S] = B({
|
|
564
570
|
status: "idle",
|
|
565
571
|
error: null,
|
|
566
572
|
transactionId: null
|
|
567
|
-
}), [p,
|
|
573
|
+
}), [p, T] = B(null), [E, P] = B(null), h = N(!1), k = C(
|
|
568
574
|
async (s) => {
|
|
569
575
|
try {
|
|
570
|
-
S((
|
|
576
|
+
S((a) => ({ ...a, status: "loading" }));
|
|
571
577
|
const t = await r.requestQuote({ resource: s });
|
|
572
578
|
if (!r.validateRequirement(t))
|
|
573
579
|
throw new Error("Invalid refund requirement received from server");
|
|
574
|
-
return
|
|
580
|
+
return T(t), S((a) => ({ ...a, status: "idle" })), t;
|
|
575
581
|
} catch (t) {
|
|
576
|
-
const
|
|
582
|
+
const a = O(t, "Failed to fetch refund requirement");
|
|
577
583
|
throw S({
|
|
578
584
|
status: "error",
|
|
579
|
-
error:
|
|
585
|
+
error: a,
|
|
580
586
|
transactionId: null
|
|
581
587
|
}), t;
|
|
582
588
|
}
|
|
@@ -595,19 +601,19 @@ function Fe() {
|
|
|
595
601
|
error: null,
|
|
596
602
|
transactionId: null
|
|
597
603
|
});
|
|
598
|
-
const
|
|
599
|
-
if (!r.validateRequirement(
|
|
604
|
+
const a = await r.requestQuote({ resource: s, couponCode: t });
|
|
605
|
+
if (!r.validateRequirement(a))
|
|
600
606
|
throw new Error("Invalid refund requirement received");
|
|
601
|
-
|
|
607
|
+
T(a);
|
|
602
608
|
const l = await c.buildTransaction({
|
|
603
|
-
requirement:
|
|
609
|
+
requirement: a,
|
|
604
610
|
payerPublicKey: f
|
|
605
|
-
}),
|
|
611
|
+
}), n = await c.signTransaction({
|
|
606
612
|
transaction: l,
|
|
607
613
|
signTransaction: i
|
|
608
614
|
}), o = c.buildPaymentPayload({
|
|
609
|
-
requirement:
|
|
610
|
-
signedTx:
|
|
615
|
+
requirement: a,
|
|
616
|
+
signedTx: n,
|
|
611
617
|
payerPublicKey: f
|
|
612
618
|
}), b = await r.submitPayment({
|
|
613
619
|
resource: s,
|
|
@@ -617,18 +623,18 @@ function Fe() {
|
|
|
617
623
|
// no metadata for refunds
|
|
618
624
|
resourceType: "refund"
|
|
619
625
|
});
|
|
620
|
-
return b.settlement &&
|
|
626
|
+
return b.settlement && P(b.settlement), S({
|
|
621
627
|
status: "success",
|
|
622
628
|
error: null,
|
|
623
|
-
transactionId: b.transactionId ||
|
|
629
|
+
transactionId: b.transactionId || n.signature
|
|
624
630
|
}), b;
|
|
625
|
-
} catch (
|
|
626
|
-
const l =
|
|
631
|
+
} catch (a) {
|
|
632
|
+
const l = O(a, "Refund payment failed");
|
|
627
633
|
throw S({
|
|
628
634
|
status: "error",
|
|
629
635
|
error: l,
|
|
630
636
|
transactionId: null
|
|
631
|
-
}),
|
|
637
|
+
}), a;
|
|
632
638
|
} finally {
|
|
633
639
|
h.current = !1;
|
|
634
640
|
}
|
|
@@ -650,17 +656,17 @@ function Fe() {
|
|
|
650
656
|
const t = await r.requestQuote({ resource: s });
|
|
651
657
|
if (!r.validateRequirement(t))
|
|
652
658
|
throw new Error("Invalid refund requirement received");
|
|
653
|
-
|
|
654
|
-
const { transaction:
|
|
659
|
+
T(t);
|
|
660
|
+
const { transaction: a } = await r.buildGaslessTransaction({
|
|
655
661
|
resourceId: s,
|
|
656
662
|
userWallet: f.toString(),
|
|
657
663
|
feePayer: t.extra.feePayer
|
|
658
|
-
}), l = c.deserializeTransaction(
|
|
664
|
+
}), l = c.deserializeTransaction(a), n = await c.partiallySignTransaction({
|
|
659
665
|
transaction: l,
|
|
660
666
|
signTransaction: i
|
|
661
667
|
}), o = await r.submitGaslessTransaction({
|
|
662
668
|
resource: s,
|
|
663
|
-
partialTx:
|
|
669
|
+
partialTx: n,
|
|
664
670
|
couponCode: void 0,
|
|
665
671
|
// no couponCode
|
|
666
672
|
metadata: void 0,
|
|
@@ -668,16 +674,16 @@ function Fe() {
|
|
|
668
674
|
resourceType: "refund",
|
|
669
675
|
requirement: t
|
|
670
676
|
});
|
|
671
|
-
return o.settlement &&
|
|
677
|
+
return o.settlement && P(o.settlement), S({
|
|
672
678
|
status: "success",
|
|
673
679
|
error: null,
|
|
674
680
|
transactionId: o.transactionId || "gasless-refund-tx"
|
|
675
681
|
}), o;
|
|
676
682
|
} catch (t) {
|
|
677
|
-
const
|
|
683
|
+
const a = O(t, "Gasless refund payment failed");
|
|
678
684
|
throw S({
|
|
679
685
|
status: "error",
|
|
680
|
-
error:
|
|
686
|
+
error: a,
|
|
681
687
|
transactionId: null
|
|
682
688
|
}), t;
|
|
683
689
|
} finally {
|
|
@@ -690,61 +696,63 @@ function Fe() {
|
|
|
690
696
|
status: "idle",
|
|
691
697
|
error: null,
|
|
692
698
|
transactionId: null
|
|
693
|
-
}),
|
|
699
|
+
}), T(null), P(null);
|
|
694
700
|
}, []);
|
|
695
701
|
return {
|
|
696
702
|
state: R,
|
|
697
703
|
requirement: p,
|
|
698
|
-
settlement:
|
|
699
|
-
fetchRefundQuote:
|
|
704
|
+
settlement: E,
|
|
705
|
+
fetchRefundQuote: k,
|
|
700
706
|
processRefund: W,
|
|
701
707
|
processGaslessRefund: g,
|
|
702
708
|
reset: I
|
|
703
709
|
};
|
|
704
710
|
}
|
|
705
711
|
export {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
712
|
+
Ve as CEDROS_EVENTS,
|
|
713
|
+
br as CEDROS_PAY_GROUPS,
|
|
714
|
+
Sr as CEDROS_PAY_SECTIONS,
|
|
715
|
+
wr as CEDROS_PAY_SECTION_IDS,
|
|
716
|
+
Nt as CIRCUIT_BREAKER_PRESETS,
|
|
717
|
+
He as CSP_PRESETS,
|
|
718
|
+
Je as CedrosPay,
|
|
719
|
+
xr as CedrosPayAdminDashboard,
|
|
720
|
+
Ot as CedrosProvider,
|
|
721
|
+
Gt as CircuitBreakerOpenError,
|
|
722
|
+
zt as CircuitState,
|
|
723
|
+
qt as ComplianceGatePage,
|
|
724
|
+
Mt as CreditsBalance,
|
|
725
|
+
Xe as CreditsButton,
|
|
726
|
+
Ze as CreditsSubscribeButton,
|
|
727
|
+
cr as CryptoButton,
|
|
722
728
|
$e as CryptoSubscribeButton,
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
et as
|
|
730
|
-
tt as
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
st as
|
|
737
|
-
ot as
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
729
|
+
Kt as ERROR_CATEGORIES,
|
|
730
|
+
Qt as FEATURE_FLAG_NAMES,
|
|
731
|
+
$t as FEATURE_FLAG_REGISTRY,
|
|
732
|
+
mr as KNOWN_STABLECOINS,
|
|
733
|
+
nr as LogLevel,
|
|
734
|
+
sr as Logger,
|
|
735
|
+
et as PaymentMethodBadge,
|
|
736
|
+
tt as PaymentModal,
|
|
737
|
+
rt as ProductPrice,
|
|
738
|
+
at as PurchaseButton,
|
|
739
|
+
Ut as RATE_LIMITER_PRESETS,
|
|
740
|
+
jt as RETRY_PRESETS,
|
|
741
|
+
nt as RPC_PROVIDERS,
|
|
742
|
+
st as SECURITY_RECOMMENDATIONS,
|
|
743
|
+
ot as StripeButton,
|
|
744
|
+
it as SubscribeButton,
|
|
745
|
+
ct as SubscriptionManagementPanel,
|
|
746
|
+
dr as WalletPool,
|
|
747
|
+
lt as calculateDiscountPercentage,
|
|
748
|
+
Cr as cedrosPayPlugin,
|
|
749
|
+
Yt as createCircuitBreaker,
|
|
750
|
+
or as createLogger,
|
|
751
|
+
Vt as createRateLimiter,
|
|
752
|
+
ut as createTranslator,
|
|
753
|
+
pr as createWalletPool,
|
|
754
|
+
dt as detectLocale,
|
|
755
|
+
Lt as ecommerce,
|
|
748
756
|
fe as emitPaymentError,
|
|
749
757
|
me as emitPaymentProcessing,
|
|
750
758
|
Ie as emitPaymentStart,
|
|
@@ -752,36 +760,41 @@ export {
|
|
|
752
760
|
ye as emitWalletConnect,
|
|
753
761
|
Be as emitWalletConnected,
|
|
754
762
|
V as emitWalletError,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
763
|
+
pt as formatCSP,
|
|
764
|
+
ft as formatCouponCodes,
|
|
765
|
+
mt as generateCSP,
|
|
766
|
+
yt as generateCSPDirectives,
|
|
767
|
+
gt as getAvailableLocales,
|
|
768
|
+
Ht as getFeatureFlagDefinition,
|
|
769
|
+
Jt as getFeatureFlagDefinitions,
|
|
770
|
+
bt as getLocalizedError,
|
|
761
771
|
y as getLogger,
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
772
|
+
St as getUserErrorMessage,
|
|
773
|
+
Xt as isFeatureEnabled,
|
|
774
|
+
wt as isRetryableError,
|
|
775
|
+
Ct as loadLocale,
|
|
776
|
+
ht as logSecurityReport,
|
|
777
|
+
xt as parseCouponCodes,
|
|
778
|
+
Zt as parseFeatureFlagBoolean,
|
|
779
|
+
er as resolveFeatureFlags,
|
|
767
780
|
tr as retryWithBackoff,
|
|
768
|
-
|
|
781
|
+
Et as stackCheckoutCoupons,
|
|
769
782
|
H as useCedrosContext,
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
783
|
+
Me as useCedrosTheme,
|
|
784
|
+
At as useComplianceCheck,
|
|
785
|
+
Ft as useCreditsBalance,
|
|
786
|
+
Pt as useCreditsPayment,
|
|
787
|
+
Rt as useCreditsSubscription,
|
|
775
788
|
Le as useCryptoSubscription,
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
789
|
+
Tt as useLocalizedError,
|
|
790
|
+
kt as usePaymentMode,
|
|
791
|
+
Ue as useRefundVerification,
|
|
792
|
+
vt as useStripeCheckout,
|
|
793
|
+
Bt as useSubscription,
|
|
794
|
+
It as useSubscriptionManagement,
|
|
795
|
+
ke as useTranslation,
|
|
796
|
+
lr as useX402Payment,
|
|
784
797
|
rr as validateConfig,
|
|
785
|
-
|
|
786
|
-
|
|
798
|
+
_t as validateSecurity,
|
|
799
|
+
yr as validateTokenMint
|
|
787
800
|
};
|