@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.
Files changed (181) hide show
  1. package/README.md +8 -0
  2. package/dist/{AISettingsSection-BlIv3CzS.mjs → AISettingsSection-BMh3hAb5.mjs} +6 -4
  3. package/dist/{AISettingsSection-DELur7D2.js → AISettingsSection-C0zqPbd6.js} +2 -2
  4. package/dist/{AutosaveIndicator-Bed0-ekg.mjs → AutosaveIndicator-3ctAnz8Y.mjs} +1 -1
  5. package/dist/{AutosaveIndicator-Dn_qA2hK.js → AutosaveIndicator-DXRPr4P7.js} +1 -1
  6. package/dist/CedrosContext-5Gjveoba.mjs +2555 -0
  7. package/dist/CedrosContext-CCakH2SZ.js +3 -0
  8. package/dist/CedrosPayAdminDashboard-DaJ9JoGn.mjs +250 -0
  9. package/dist/CedrosPayAdminDashboard-Uvyh9p7A.js +1 -0
  10. package/dist/{ChatLogsSection-v4zwzCTC.mjs → ChatLogsSection-BtJixYAp.mjs} +19 -17
  11. package/dist/ChatLogsSection-FC3O536G.js +1 -0
  12. package/dist/{ComplianceSection-CemgfDrL.mjs → ComplianceSection-BMnb1p4w.mjs} +18 -15
  13. package/dist/ComplianceSection-BioTKm7k.js +1 -0
  14. package/dist/{CryptoButton-BV9owVe2.mjs → CryptoButton-Cl2kZbOP.mjs} +26 -24
  15. package/dist/CryptoButton-DxFCYDlJ.js +1 -0
  16. package/dist/{CustomersSection-D_j7OrfS.mjs → CustomersSection-dmwoBhcf.mjs} +21 -19
  17. package/dist/CustomersSection-z6ARxuex.js +1 -0
  18. package/dist/DisputesSection-BjHHQAi7.js +1 -0
  19. package/dist/{DisputesSection-BcAbXp3K.mjs → DisputesSection-CHyLne76.mjs} +19 -17
  20. package/dist/Dropdown-BRSZlhik.mjs +111 -0
  21. package/dist/Dropdown-j8o0OO5L.js +1 -0
  22. package/dist/ErrorBanner-CAgPnj62.js +1 -0
  23. package/dist/ErrorBanner-lZJhCmDX.mjs +22 -0
  24. package/dist/{FAQSection-Dn38OhB_.mjs → FAQSection-Di2xE9Sm.mjs} +8 -6
  25. package/dist/FAQSection-b34DMzgV.js +1 -0
  26. package/dist/{ImagesSection-Ctw9Icym.mjs → ImagesSection-D63PEjR6.mjs} +6 -4
  27. package/dist/ImagesSection-DGBA7iKY.js +1 -0
  28. package/dist/{InventorySection-DmhjUlRZ.mjs → InventorySection-Dp5Yu4TA.mjs} +25 -23
  29. package/dist/InventorySection-bVCECzX5.js +1 -0
  30. package/dist/LazyCedrosPayAdminDashboard-BqJDNrDI.mjs +9 -0
  31. package/dist/LazyCedrosPayAdminDashboard-CpfTtOBc.js +1 -0
  32. package/dist/{MessagingSection-B1FaGxkp.mjs → MessagingSection-BLCnCpEv.mjs} +5 -4
  33. package/dist/MessagingSection-DU0dYNMy.js +1 -0
  34. package/dist/{OrdersSection-Bj8bPdg8.mjs → OrdersSection-Bd56F3cj.mjs} +27 -24
  35. package/dist/OrdersSection-FOFEAgs1.js +1 -0
  36. package/dist/PaymentSettingsSection-52iw47Su.mjs +648 -0
  37. package/dist/PaymentSettingsSection-B5J56VAk.js +1 -0
  38. package/dist/ReturnsSection-BjpIVFfN.js +1 -0
  39. package/dist/{ReturnsSection-BC0L8r2e.mjs → ReturnsSection-DUVeKrCd.mjs} +11 -9
  40. package/dist/{SettingsSection-vdYFSNxB.js → SettingsSection-DKkHykaC.js} +1 -1
  41. package/dist/{SettingsSection-KYdEizq_.mjs → SettingsSection-vK9WIwXE.mjs} +1 -1
  42. package/dist/ShippingSection-B5lk7zpS.js +1 -0
  43. package/dist/{ShippingSection-BOgto6_9.mjs → ShippingSection-CZRrXrlh.mjs} +5 -3
  44. package/dist/{SingleCategorySettings-suJ8z9d8.mjs → SingleCategorySettings-C8xJ47_T.mjs} +143 -140
  45. package/dist/SingleCategorySettings-g7D-9lG1.js +3 -0
  46. package/dist/StatsBar-CWXw2ZT3.js +1 -0
  47. package/dist/StatsBar-D4cOKG2e.mjs +25 -0
  48. package/dist/StorefrontSection-BWnMB9k-.js +1 -0
  49. package/dist/{StorefrontSection-BRvIGBEJ.mjs → StorefrontSection-uXSVbEAa.mjs} +121 -119
  50. package/dist/{SubscriptionsSection-D60qrX9a.mjs → SubscriptionsSection-Ci_AZrWA.mjs} +11 -9
  51. package/dist/SubscriptionsSection-DQfXkuDv.js +1 -0
  52. package/dist/{TaxSection-C7-pv-Rl.mjs → TaxSection-BTukS_cU.mjs} +23 -21
  53. package/dist/TaxSection-cuPQISxZ.js +1 -0
  54. package/dist/ThemeContext-CFXyYx7A.js +1 -0
  55. package/dist/ThemeContext-l0bqcOGW.mjs +126 -0
  56. package/dist/Token22Section-CCfkDm8W.js +1 -0
  57. package/dist/{Token22Section-CrHLQ0EB.mjs → Token22Section-DRsPJuTq.mjs} +7 -6
  58. package/dist/{WalletManager-BIwH8Dw_.mjs → WalletManager-D-eoqUDy.mjs} +21 -19
  59. package/dist/WalletManager-DXChB9LA.js +1 -0
  60. package/dist/{WebhooksSection-COPW4Ec0.mjs → WebhooksSection-A8Y4ZGcj.mjs} +40 -38
  61. package/dist/WebhooksSection-CnEmaGH1.js +1 -0
  62. package/dist/admin.d.ts +2 -0
  63. package/dist/admin.js +1 -0
  64. package/dist/admin.mjs +7 -0
  65. package/dist/configApi-BS5UJfzm.js +1 -0
  66. package/dist/{configApi-6XhAJGKX.mjs → configApi-BUXZOMWK.mjs} +57 -3
  67. package/dist/crypto-only.js +1 -1
  68. package/dist/crypto-only.mjs +215 -202
  69. package/dist/dateHelpers-BKW_lGND.js +1 -0
  70. package/dist/dateHelpers-yvPkofYQ.mjs +6 -0
  71. package/dist/fetchWithTimeout-CG0EKbhf.js +1 -0
  72. package/dist/fetchWithTimeout-DmMOwL0Q.mjs +195 -0
  73. package/dist/icons-C3yDMnKE.mjs +235 -0
  74. package/dist/icons-Cjgd9YVo.js +1 -0
  75. package/dist/index-9QF_UfSN.mjs +18668 -0
  76. package/dist/index-Cq9ya93W.js +84 -0
  77. package/dist/index.js +1 -1
  78. package/dist/index.mjs +74 -63
  79. package/dist/safeHref-DqJPLPl5.mjs +12 -0
  80. package/dist/safeHref-DyHIpVjY.js +1 -0
  81. package/dist/sectionIds-D46-_-h-.js +1 -0
  82. package/dist/sectionIds-YktNxmRt.mjs +124 -0
  83. package/dist/sections-511_XBh4.js +1 -0
  84. package/dist/sections-CRaMa8ZB.mjs +9 -0
  85. package/dist/sections-more-Cgw2qJlA.js +1 -0
  86. package/dist/sections-more-Ixw6mM6R.mjs +3082 -0
  87. package/dist/src/admin/index.d.ts +3 -3
  88. package/dist/src/admin/index.d.ts.map +1 -1
  89. package/dist/src/admin/plugin.d.ts.map +1 -1
  90. package/dist/src/admin/types.d.ts +2 -6
  91. package/dist/src/admin/types.d.ts.map +1 -1
  92. package/dist/src/admin.d.ts +9 -0
  93. package/dist/src/admin.d.ts.map +1 -0
  94. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts +4 -0
  95. package/dist/src/components/admin/LazyCedrosPayAdminDashboard.d.ts.map +1 -0
  96. package/dist/src/components/admin/PaymentReadinessChecklist.d.ts +9 -0
  97. package/dist/src/components/admin/PaymentReadinessChecklist.d.ts.map +1 -0
  98. package/dist/src/components/admin/PaymentSettingsSection.d.ts.map +1 -1
  99. package/dist/src/components/admin/PaymentSetupGuide.d.ts +6 -0
  100. package/dist/src/components/admin/PaymentSetupGuide.d.ts.map +1 -0
  101. package/dist/src/components/admin/ProductsSection.d.ts.map +1 -1
  102. package/dist/src/components/admin/configApi.d.ts +1 -1
  103. package/dist/src/components/admin/configApi.d.ts.map +1 -1
  104. package/dist/src/components/admin/icons.d.ts +3 -50
  105. package/dist/src/components/admin/icons.d.ts.map +1 -1
  106. package/dist/src/components/admin/index.d.ts +1 -1
  107. package/dist/src/components/admin/index.d.ts.map +1 -1
  108. package/dist/src/components/admin/types.d.ts +43 -0
  109. package/dist/src/components/admin/types.d.ts.map +1 -1
  110. package/dist/src/context/CedrosContext.d.ts +2 -0
  111. package/dist/src/context/CedrosContext.d.ts.map +1 -1
  112. package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts +2 -0
  113. package/dist/src/ecommerce/__tests__/featureFlags.test.d.ts.map +1 -0
  114. package/dist/src/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -1
  115. package/dist/src/ecommerce/components/general/ErrorBoundary.d.ts +1 -1
  116. package/dist/src/ecommerce/components/ui/button.d.ts +1 -1
  117. package/dist/src/ecommerce/components/ui/sheet.d.ts +1 -1
  118. package/dist/src/ecommerce/config/context.d.ts +2 -0
  119. package/dist/src/ecommerce/config/context.d.ts.map +1 -1
  120. package/dist/src/ecommerce/config/types.d.ts +2 -0
  121. package/dist/src/ecommerce/config/types.d.ts.map +1 -1
  122. package/dist/src/ecommerce/index.d.ts +2 -0
  123. package/dist/src/ecommerce/index.d.ts.map +1 -1
  124. package/dist/src/featureFlags.d.ts +41 -0
  125. package/dist/src/featureFlags.d.ts.map +1 -0
  126. package/dist/src/index.d.ts +4 -2
  127. package/dist/src/index.d.ts.map +1 -1
  128. package/dist/src/managers/StripeManager.d.ts.map +1 -1
  129. package/dist/src/managers/SubscriptionManager.d.ts +1 -0
  130. package/dist/src/managers/SubscriptionManager.d.ts.map +1 -1
  131. package/dist/src/standalone-admin.d.ts +8 -0
  132. package/dist/src/standalone-admin.d.ts.map +1 -0
  133. package/dist/src/types/index.d.ts +14 -1
  134. package/dist/src/types/index.d.ts.map +1 -1
  135. package/dist/src/types/subscription.d.ts +47 -1
  136. package/dist/src/types/subscription.d.ts.map +1 -1
  137. package/dist/src/utils/validateConfig.d.ts.map +1 -1
  138. package/dist/standalone-admin.d.ts +2 -0
  139. package/dist/standalone-admin.js +1 -0
  140. package/dist/standalone-admin.mjs +4 -0
  141. package/dist/stripe-only.js +1 -1
  142. package/dist/stripe-only.mjs +35 -33
  143. package/dist/styles--fxb3lCl.js +1 -0
  144. package/dist/{styles-D4SQkuV3.mjs → styles-DGagylUj.mjs} +53 -51
  145. package/dist/testing/index.js +1 -1
  146. package/dist/testing/index.mjs +1 -1
  147. package/dist/tokenMintValidator-DAjQld0r.mjs +98 -0
  148. package/dist/tokenMintValidator-DNBhoefh.js +4 -0
  149. package/dist/{walletPool-DE-t1wSW.mjs → walletPool-9MylB2QK.mjs} +1 -1
  150. package/dist/walletPool-BjTXX6Vn.js +1 -0
  151. package/package.json +9 -3
  152. package/dist/CedrosContext-C2RjHLaQ.js +0 -6
  153. package/dist/CedrosContext-CY6zvjvJ.mjs +0 -2801
  154. package/dist/ChatLogsSection-BH5tLA4T.js +0 -1
  155. package/dist/ComplianceSection-DP2a9-S0.js +0 -1
  156. package/dist/CryptoButton-DpiCnyXE.js +0 -1
  157. package/dist/CustomersSection-CBwy_waO.js +0 -1
  158. package/dist/DisputesSection-BLjIk60n.js +0 -1
  159. package/dist/FAQSection-wNeH0i6Q.js +0 -1
  160. package/dist/ImagesSection-0ZzKlzMJ.js +0 -1
  161. package/dist/InventorySection-zV6lTmue.js +0 -1
  162. package/dist/MessagingSection-B_wdFR0j.js +0 -1
  163. package/dist/OrdersSection-Dw2FX-1d.js +0 -1
  164. package/dist/PaymentSettingsSection-BYF4D-GR.js +0 -1
  165. package/dist/PaymentSettingsSection-EnMxeWjv.mjs +0 -94
  166. package/dist/ReturnsSection-D_pJVxuG.js +0 -1
  167. package/dist/ShippingSection-1DRSTu49.js +0 -1
  168. package/dist/SingleCategorySettings-DwCnBdRf.js +0 -3
  169. package/dist/StorefrontSection-RumGkb3C.js +0 -1
  170. package/dist/SubscriptionsSection-C2aLLn7L.js +0 -1
  171. package/dist/TaxSection-Dt1DnM51.js +0 -1
  172. package/dist/Token22Section-DY3mUwTY.js +0 -1
  173. package/dist/WalletManager-B3UdQ5pQ.js +0 -1
  174. package/dist/WebhooksSection-CKeiJ7Py.js +0 -1
  175. package/dist/configApi-DkduMQg1.js +0 -1
  176. package/dist/index-C0g-JxJk.js +0 -84
  177. package/dist/index-DXnuQp5x.mjs +0 -22128
  178. package/dist/sections-C1NpK7hk.mjs +0 -9
  179. package/dist/sections-DVVSZBhW.js +0 -1
  180. package/dist/styles-BT4bhFey.js +0 -1
  181. package/dist/walletPool-IS7R3MR1.js +0 -1
@@ -1,15 +1,21 @@
1
- import { O as Te, 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-D4SQkuV3.mjs";
2
- import { C as Ue, a as Ye, b as Ve, c as He, d as Je, P as Xe, e as Ze, f as et, g as tt, R as rt, S as nt, h as at, i as st, j as ot, k as it, l as ct, m as lt, u as ut, v as dt, w as pt, x as ft, y as mt, z as yt, A as gt, B as bt, D as St, E as wt, F as Ct, G as ht, H as xt, I as Pt, J as Et, K as Rt, L as kt, M as Tt, N as vt, Q as Bt } from "./styles-D4SQkuV3.mjs";
3
- import { C as _t, a as Wt, b as qt, c as Mt, d as Lt, e as At, f as Dt, i as Ot, u as Nt, g as zt } from "./index-DXnuQp5x.mjs";
4
- import { u as H, m as z, j as qe, i as y } from "./CedrosContext-CY6zvjvJ.mjs";
5
- import { C as Qt, a as $t, b as Ft, c as Gt, E as jt, K as Ut, L as Yt, d as Vt, R as Ht, e as Jt, f as Xt, g as Zt, h as er, r as tr, v as rr, n as nr } from "./CedrosContext-CY6zvjvJ.mjs";
6
- import { C as sr, u as or } from "./CryptoButton-BV9owVe2.mjs";
7
- import { jsxs as K, jsx as x } from "react/jsx-runtime";
8
- import { useState as B, useRef as N, useCallback as C, useMemo as G, useEffect as Q } from "react";
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 Me } from "@solana/wallet-adapter-react-ui";
12
- import { WalletPool as cr, createWalletPool as lr } from "./walletPool-DE-t1wSW.mjs";
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
- }), [k, P] = B(null), E = N(!1), h = C(() => {
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]), T = C(
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((n) => ({
49
- ...n,
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 n = z(t, "Failed to check subscription status");
61
+ const a = O(t, "Failed to check subscription status");
56
62
  return p((l) => ({
57
63
  ...l,
58
64
  status: "error",
59
- error: n
65
+ error: a
60
66
  })), null;
61
67
  }
62
68
  },
63
69
  [i, r]
64
70
  ), W = C(
65
- async (s, t, n) => {
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
- n
81
+ a
76
82
  );
77
- return P(l), p((a) => ({
78
- ...a,
83
+ return E(l), p((n) => ({
84
+ ...n,
79
85
  status: "idle"
80
86
  })), l;
81
87
  } catch (l) {
82
- const a = z(l, "Failed to get subscription quote");
88
+ const n = O(l, "Failed to get subscription quote");
83
89
  return p((o) => ({
84
90
  ...o,
85
91
  status: "error",
86
- error: a
92
+ error: n
87
93
  })), null;
88
94
  }
89
95
  },
90
96
  [r]
91
97
  ), g = C(
92
- async (s, t, n) => {
93
- if (E.current)
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
- E.current = !0, p((a) => ({
99
- ...a,
104
+ P.current = !0, p((n) => ({
105
+ ...n,
100
106
  status: "loading",
101
107
  error: null
102
108
  }));
103
109
  try {
104
- const a = await r.requestSubscriptionQuote(
110
+ const n = await r.requestSubscriptionQuote(
105
111
  s,
106
112
  t,
107
- n
113
+ a
108
114
  );
109
- P(a);
110
- const o = a.requirement;
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: n?.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: n?.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: n?.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 (a) {
172
- const o = z(a, "Subscription payment failed");
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
- E.current = !1;
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
- }), P(null);
203
+ }), E(null);
198
204
  }, []);
199
205
  return {
200
206
  ...S,
201
- quote: k,
202
- checkStatus: T,
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: k,
217
- onError: P,
218
- className: E = "",
222
+ onSuccess: T,
223
+ onError: E,
224
+ className: P = "",
219
225
  testPageUrl: h,
220
- hideMessages: T = !1,
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: n,
234
+ select: a,
229
235
  wallets: l,
230
- wallet: a,
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 = qe(), { solanaError: _ } = H(), { t: v, translations: X } = Te(), be = R || v("ui.subscribe_with_crypto"), Z = N(k), ee = N(P), te = N(L), re = N(M);
240
- Z.current = k, ee.current = P, te.current = L, re.current = M;
241
- const Se = m && typeof m != "string" ? m?.code ?? null : null, we = _ && typeof _ != "string" ? _?.code ?? null : null, ne = (e) => {
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
- }, ae = m ? typeof m == "string" ? m : ne(Se) : null, se = _ ? typeof _ == "string" ? _ : ne(we) : null, Ce = G(
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
- ), j = G(
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
- Q(() => {
261
+ z(() => {
256
262
  W && g && o && (y().debug("[CryptoSubscribeButton] Auto-checking subscription status"), re.current(r));
257
- }, [W, g, o, r]), Q(() => {
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]), Q(() => {
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, U] = B(!1), [le, D] = B(!1), O = _;
263
- Q(() => {
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 && a && !g && !I) {
272
+ if (ce && n && !g && !I) {
267
273
  y().debug(
268
274
  "[CryptoSubscribeButton] Wallet detected, attempting auto-connect:",
269
- a.adapter.name
270
- ), U(!1), ye(a.adapter.name);
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 ke = Y instanceof Error ? Y.message : "Failed to connect wallet";
277
- V(ke, a.adapter.name), D(!1);
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
- }, [a, ce, g, I, s]), Q(() => {
285
- g && le && o && a && (Be(a.adapter.name, o.toString()), y().debug("[CryptoSubscribeButton] Processing pending subscription payment"), D(!1), A(!1), me("crypto", r), te.current(r, c, { couponCode: i, intervalDays: f }));
286
- }, [g, le, o, a, r, c, i, f]);
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: a?.adapter.name,
296
+ wallet: n?.adapter.name,
291
297
  resource: r,
292
298
  interval: c
293
- }), Ie("crypto", r), p && p("crypto"), O) {
294
- y().error("[CryptoSubscribeButton] Solana dependencies missing:", O), fe("crypto", O, r), P && P(O);
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
- D(!0);
317
+ F(!0);
312
318
  try {
313
- if (a)
319
+ if (n)
314
320
  y().debug(
315
321
  "[CryptoSubscribeButton] Wallet already selected, connecting:",
316
- a.adapter.name
317
- ), ye(a.adapter.name), await s();
322
+ n.adapter.name
323
+ ), ye(n.adapter.name), await s();
318
324
  else {
319
- if (y().debug("[CryptoSubscribeButton] No wallet selected, showing selector"), j.length === 0) {
320
- D(!1);
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
- D(!1);
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, a?.adapter.name);
335
+ y().error("[CryptoSubscribeButton] Connection error:", d), V(d, n?.adapter.name);
330
336
  }
331
337
  }
332
338
  }, [
333
339
  g,
334
- a,
340
+ n,
335
341
  r,
336
342
  c,
337
343
  i,
338
344
  f,
339
345
  oe,
340
346
  h,
341
- j,
347
+ U,
342
348
  s,
343
349
  L,
344
- O,
350
+ D,
345
351
  p,
346
- P
347
- ]), de = G(() => `crypto-subscribe-${r}-${c}`, [r, c]), he = G(
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", $ = w === "active" || w === "trialing", xe = S || pe || I || !!O || $;
354
- let F = be;
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
- F = v("ui.processing");
357
- else if ($ && q) {
362
+ Q = v("ui.processing");
363
+ else if (K && q) {
358
364
  const e = new Date(q).toLocaleDateString();
359
- F = `${v("ui.subscribed_until")} ${e}`;
360
- } else $ && (F = v("ui.subscribed"));
361
- const Pe = C(async () => {
365
+ Q = `${v("ui.subscribed_until")} ${e}`;
366
+ } else K && (Q = v("ui.subscribed"));
367
+ const Ee = C(async () => {
362
368
  try {
363
- U(!1), g && await t(), n(null), A(!0);
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, n]), Ee = C(
373
+ }, [g, t, a]), Pe = C(
368
374
  (e) => {
369
- y().debug("[CryptoSubscribeButton] Wallet clicked:", e), A(!1), n(e), U(!0);
375
+ y().debug("[CryptoSubscribeButton] Wallet clicked:", e), A(!1), a(e), j(!0);
370
376
  },
371
- [n]
377
+ [a]
372
378
  ), Re = C(async () => {
373
379
  try {
374
- if (await t(), D(!1), typeof window < "u" && window.localStorage)
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__ */ K(
390
+ return /* @__PURE__ */ G(
385
391
  "div",
386
392
  {
387
- className: u.unstyled ? E : `${u.className} cedros-theme__crypto-button ${E || ""}`,
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 ? E : "cedros-theme__button cedros-theme__crypto",
401
+ className: u.unstyled ? P : "cedros-theme__button cedros-theme__crypto",
396
402
  type: "button",
397
- children: F
403
+ children: Q
398
404
  }
399
405
  ),
400
- ie && !T && /* @__PURE__ */ x(
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__ */ K(
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__ */ K(
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: j.map((e) => /* @__PURE__ */ K(
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: () => Ee(e.adapter.name),
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(Me, { wallet: e, style: { width: "24px", height: "24px" } }),
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 && !T && !ie && /* @__PURE__ */ K(
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: Pe,
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
- !T && se && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__error", children: se }),
556
- !T && ae && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__error", children: ae }),
557
- !T && $ && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__success", children: v("ui.subscription_active") })
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 Fe() {
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, k] = B(null), [P, E] = B(null), h = N(!1), T = C(
573
+ }), [p, T] = B(null), [E, P] = B(null), h = N(!1), k = C(
568
574
  async (s) => {
569
575
  try {
570
- S((n) => ({ ...n, status: "loading" }));
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 k(t), S((n) => ({ ...n, status: "idle" })), t;
580
+ return T(t), S((a) => ({ ...a, status: "idle" })), t;
575
581
  } catch (t) {
576
- const n = z(t, "Failed to fetch refund requirement");
582
+ const a = O(t, "Failed to fetch refund requirement");
577
583
  throw S({
578
584
  status: "error",
579
- error: n,
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 n = await r.requestQuote({ resource: s, couponCode: t });
599
- if (!r.validateRequirement(n))
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
- k(n);
607
+ T(a);
602
608
  const l = await c.buildTransaction({
603
- requirement: n,
609
+ requirement: a,
604
610
  payerPublicKey: f
605
- }), a = await c.signTransaction({
611
+ }), n = await c.signTransaction({
606
612
  transaction: l,
607
613
  signTransaction: i
608
614
  }), o = c.buildPaymentPayload({
609
- requirement: n,
610
- signedTx: a,
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 && E(b.settlement), S({
626
+ return b.settlement && P(b.settlement), S({
621
627
  status: "success",
622
628
  error: null,
623
- transactionId: b.transactionId || a.signature
629
+ transactionId: b.transactionId || n.signature
624
630
  }), b;
625
- } catch (n) {
626
- const l = z(n, "Refund payment failed");
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
- }), n;
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
- k(t);
654
- const { transaction: n } = await r.buildGaslessTransaction({
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(n), a = await c.partiallySignTransaction({
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: a,
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 && E(o.settlement), S({
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 n = z(t, "Gasless refund payment failed");
683
+ const a = O(t, "Gasless refund payment failed");
678
684
  throw S({
679
685
  status: "error",
680
- error: n,
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
- }), k(null), E(null);
699
+ }), T(null), P(null);
694
700
  }, []);
695
701
  return {
696
702
  state: R,
697
703
  requirement: p,
698
- settlement: P,
699
- fetchRefundQuote: T,
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
- Ue as CEDROS_EVENTS,
707
- _t as CEDROS_PAY_GROUPS,
708
- Wt as CEDROS_PAY_SECTIONS,
709
- qt as CEDROS_PAY_SECTION_IDS,
710
- Qt as CIRCUIT_BREAKER_PRESETS,
711
- Ye as CSP_PRESETS,
712
- Ve as CedrosPay,
713
- Mt as CedrosPayAdminDashboard,
714
- $t as CedrosProvider,
715
- Ft as CircuitBreakerOpenError,
716
- Gt as CircuitState,
717
- Lt as ComplianceGatePage,
718
- At as CreditsBalance,
719
- He as CreditsButton,
720
- Je as CreditsSubscribeButton,
721
- sr as CryptoButton,
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
- jt as ERROR_CATEGORIES,
724
- Ut as KNOWN_STABLECOINS,
725
- Yt as LogLevel,
726
- Vt as Logger,
727
- Xe as PaymentMethodBadge,
728
- Ze as PaymentModal,
729
- et as ProductPrice,
730
- tt as PurchaseButton,
731
- Ht as RATE_LIMITER_PRESETS,
732
- Jt as RETRY_PRESETS,
733
- rt as RPC_PROVIDERS,
734
- nt as SECURITY_RECOMMENDATIONS,
735
- at as StripeButton,
736
- st as SubscribeButton,
737
- ot as SubscriptionManagementPanel,
738
- cr as WalletPool,
739
- it as calculateDiscountPercentage,
740
- Dt as cedrosPayPlugin,
741
- Xt as createCircuitBreaker,
742
- Zt as createLogger,
743
- er as createRateLimiter,
744
- ct as createTranslator,
745
- lr as createWalletPool,
746
- lt as detectLocale,
747
- Ot as ecommerce,
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
- ut as formatCSP,
756
- dt as formatCouponCodes,
757
- pt as generateCSP,
758
- ft as generateCSPDirectives,
759
- mt as getAvailableLocales,
760
- yt as getLocalizedError,
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
- gt as getUserErrorMessage,
763
- bt as isRetryableError,
764
- St as loadLocale,
765
- wt as logSecurityReport,
766
- Ct as parseCouponCodes,
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
- ht as stackCheckoutCoupons,
781
+ Et as stackCheckoutCoupons,
769
782
  H as useCedrosContext,
770
- qe as useCedrosTheme,
771
- Nt as useComplianceCheck,
772
- zt as useCreditsBalance,
773
- xt as useCreditsPayment,
774
- Pt as useCreditsSubscription,
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
- Et as useLocalizedError,
777
- Rt as usePaymentMode,
778
- Fe as useRefundVerification,
779
- kt as useStripeCheckout,
780
- Tt as useSubscription,
781
- vt as useSubscriptionManagement,
782
- Te as useTranslation,
783
- or as useX402Payment,
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
- Bt as validateSecurity,
786
- nr as validateTokenMint
798
+ _t as validateSecurity,
799
+ yr as validateTokenMint
787
800
  };