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