@cedros/pay-react 1.1.21 → 1.1.23
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-BXWZcMQT.js → AISettingsSection-DAztmwnN.js} +1 -1
- package/dist/{AISettingsSection-8eDaxYp8.mjs → AISettingsSection-DpMIk431.mjs} +2 -2
- package/dist/{AutosaveIndicator-3S7EvXip.mjs → AutosaveIndicator-BRCqAWqP.mjs} +1 -1
- package/dist/{AutosaveIndicator-DW4IPbZ5.js → AutosaveIndicator-BnQkKxzr.js} +1 -1
- package/dist/{CedrosContext-D-lnoEkR.js → CedrosContext-7dwmEeUY.js} +2 -2
- package/dist/{CedrosContext-BE6P5PQ0.mjs → CedrosContext-BlArEF7k.mjs} +95 -78
- package/dist/{CryptoButton-Dy-g3bR0.js → CryptoButton-C1AAOOfj.js} +1 -1
- package/dist/{CryptoButton-CksMkZjL.mjs → CryptoButton-CREryx1l.mjs} +2 -2
- package/dist/{FAQSection-Dg-I7Z-N.mjs → FAQSection-Ruzs7a-0.mjs} +1 -1
- package/dist/{FAQSection-r6eKjfdO.js → FAQSection-yw64HLy3.js} +1 -1
- package/dist/{MessagingSection-D39EuOLN.mjs → MessagingSection-BLRjfBQT.mjs} +2 -2
- package/dist/{MessagingSection-Cld5Q7ZM.js → MessagingSection-Dp_SaXsv.js} +1 -1
- package/dist/OrdersSection-C2dyWqrR.js +1 -0
- package/dist/OrdersSection-l-MtP9EN.mjs +233 -0
- package/dist/{PaymentSettingsSection-CEGHN6VI.mjs → PaymentSettingsSection-Bbq93UtC.mjs} +1 -1
- package/dist/{PaymentSettingsSection-B-MRsh1K.js → PaymentSettingsSection-C5bhLgU7.js} +1 -1
- package/dist/{SettingsSection-ZrzfLBlS.js → SettingsSection-D_pKPRrP.js} +1 -1
- package/dist/{SettingsSection-CPFOuoZG.mjs → SettingsSection-DorqCFXE.mjs} +1 -1
- package/dist/SingleCategorySettings-BAND8Zkw.mjs +1006 -0
- package/dist/SingleCategorySettings-Cg-zuJfr.js +3 -0
- package/dist/{StorefrontSection-f54ySA6i.mjs → StorefrontSection-FSOxBclu.mjs} +2 -2
- package/dist/{StorefrontSection-DGVcJu1T.js → StorefrontSection-QZPEZ6Lz.js} +1 -1
- package/dist/{SubscriptionsSection-F2IiU2jv.mjs → SubscriptionsSection-C4TDXCX2.mjs} +1 -1
- package/dist/{SubscriptionsSection-fzbL5DGC.js → SubscriptionsSection-DYr99VzB.js} +1 -1
- package/dist/Token22Section-Cmn2lKcd.mjs +1685 -0
- package/dist/Token22Section-D3nnUyim.js +1 -0
- package/dist/{WalletManager-QcfgQmap.js → WalletManager-Bwk3rgr1.js} +1 -1
- package/dist/{WalletManager-D78miaJ2.mjs → WalletManager-peBN6RDH.mjs} +1 -1
- package/dist/bn-CHdpZHQm.mjs +1185 -0
- package/dist/bn-RbgIlcHc.js +1 -0
- package/dist/configApi-Ch0Rr7TD.mjs +554 -0
- package/dist/configApi-CxEbCAgG.js +1 -0
- package/dist/crypto-only.js +1 -1
- package/dist/crypto-only.mjs +54 -52
- package/dist/{index-bqhsxBTY.mjs → index-CKNB7XsA.mjs} +6709 -5888
- package/dist/index-vEe2Y39x.js +84 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +34 -32
- package/dist/pay-react_false-CPX8Vyp9.mjs +5 -0
- package/dist/pay-react_false-DaeIe3_l.js +1 -0
- package/dist/{sections-Dh0qFSUW.js → sections-Cklkxd85.js} +1 -1
- package/dist/{sections-CiAMjlPd.mjs → sections-Dt6vxDU4.mjs} +1 -1
- package/dist/src/components/CreditsBalance.d.ts +24 -0
- package/dist/src/components/CreditsBalance.d.ts.map +1 -0
- package/dist/src/components/admin/AssetClassesTab.d.ts +20 -0
- package/dist/src/components/admin/AssetClassesTab.d.ts.map +1 -0
- package/dist/src/components/admin/AssetRedemptionManager.d.ts +21 -0
- package/dist/src/components/admin/AssetRedemptionManager.d.ts.map +1 -0
- package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts +1 -1
- package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts.map +1 -1
- package/dist/src/components/admin/GiftCardComplianceTab.d.ts +3 -0
- package/dist/src/components/admin/GiftCardComplianceTab.d.ts.map +1 -0
- package/dist/src/components/admin/LiquidityPoolTab.d.ts +11 -0
- package/dist/src/components/admin/LiquidityPoolTab.d.ts.map +1 -0
- package/dist/src/components/admin/OrdersSection.d.ts +3 -0
- package/dist/src/components/admin/OrdersSection.d.ts.map +1 -0
- package/dist/src/components/admin/ProductsSection.d.ts.map +1 -1
- package/dist/src/components/admin/RedemptionFormBuilder.d.ts +25 -0
- package/dist/src/components/admin/RedemptionFormBuilder.d.ts.map +1 -0
- package/dist/src/components/admin/Token22Section.d.ts +3 -0
- package/dist/src/components/admin/Token22Section.d.ts.map +1 -0
- package/dist/src/components/admin/configApi.d.ts.map +1 -1
- package/dist/src/components/admin/index.d.ts +3 -0
- package/dist/src/components/admin/index.d.ts.map +1 -1
- package/dist/src/ecommerce/adapters/mock/mockAdapter.d.ts.map +1 -1
- package/dist/src/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -1
- package/dist/src/ecommerce/components/catalog/AssetBadge.d.ts +13 -0
- package/dist/src/ecommerce/components/catalog/AssetBadge.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/ProductCard.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/CheckoutForm.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/CheckoutReceipt.d.ts +9 -2
- package/dist/src/ecommerce/components/checkout/CheckoutReceipt.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/CheckoutSuccessPage.d.ts +7 -1
- package/dist/src/ecommerce/components/checkout/CheckoutSuccessPage.d.ts.map +1 -1
- package/dist/src/ecommerce/components/checkout/RedemptionForm.d.ts +22 -0
- package/dist/src/ecommerce/components/checkout/RedemptionForm.d.ts.map +1 -0
- package/dist/src/ecommerce/components/gift-cards/GiftCardRedemptionPage.d.ts +36 -0
- package/dist/src/ecommerce/components/gift-cards/GiftCardRedemptionPage.d.ts.map +1 -0
- package/dist/src/ecommerce/components/orders/OrderCard.d.ts.map +1 -1
- package/dist/src/ecommerce/components/orders/OrderDetails.d.ts +5 -1
- package/dist/src/ecommerce/components/orders/OrderDetails.d.ts.map +1 -1
- package/dist/src/ecommerce/index.d.ts +6 -0
- package/dist/src/ecommerce/index.d.ts.map +1 -1
- package/dist/src/ecommerce/state/checkout/checkoutSchema.d.ts +1 -0
- package/dist/src/ecommerce/state/checkout/checkoutSchema.d.ts.map +1 -1
- package/dist/src/ecommerce/state/checkout/useCheckout.d.ts.map +1 -1
- package/dist/src/ecommerce/templates/ProductTemplate.d.ts.map +1 -1
- package/dist/src/ecommerce/templates/PurchaseHistoryTemplate.d.ts +5 -1
- package/dist/src/ecommerce/templates/PurchaseHistoryTemplate.d.ts.map +1 -1
- package/dist/src/ecommerce/types.d.ts +20 -0
- package/dist/src/ecommerce/types.d.ts.map +1 -1
- package/dist/src/ecommerce/utils/cartItemMetadata.d.ts.map +1 -1
- package/dist/src/ecommerce/utils/safeHref.d.ts +9 -0
- package/dist/src/ecommerce/utils/safeHref.d.ts.map +1 -0
- package/dist/src/hooks/useCreditsBalance.d.ts +32 -0
- package/dist/src/hooks/useCreditsBalance.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/managers/CreditsManager.d.ts +15 -0
- package/dist/src/managers/CreditsManager.d.ts.map +1 -1
- package/dist/src/managers/MeteoraPoolManager.d.ts +86 -0
- package/dist/src/managers/MeteoraPoolManager.d.ts.map +1 -0
- package/dist/stripe-only.js +1 -1
- package/dist/stripe-only.mjs +2 -2
- package/dist/{styles-BWrLnaUW.js → styles-21F1-oqx.js} +1 -1
- package/dist/{styles--eKKnfdj.mjs → styles-2VMpwuaI.mjs} +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/{walletPool-BqNfOhB0.js → walletPool-Ddv33tej.js} +1 -1
- package/dist/{walletPool-DShNjCQ6.mjs → walletPool-DgQsh7Se.mjs} +1 -1
- package/package.json +5 -1
- package/dist/SingleCategorySettings-DhHGIGwB.mjs +0 -1418
- package/dist/SingleCategorySettings-DxjCafCk.js +0 -3
- package/dist/index-7YUxR4u5.js +0 -84
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as K } from "react/jsx-runtime";
|
|
2
|
-
import { useContext as ne, createContext as
|
|
2
|
+
import { useContext as ne, createContext as Ae, useState as N, useRef as ge, useEffect as I, useMemo as ee } from "react";
|
|
3
3
|
import { g as S } from "./uuid-_z3jSatJ.mjs";
|
|
4
4
|
var we = "https://js.stripe.com/v3", qe = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;
|
|
5
5
|
var je = function() {
|
|
@@ -58,7 +58,7 @@ var je = function() {
|
|
|
58
58
|
}), H.catch(function(r) {
|
|
59
59
|
return H = null, Promise.reject(r);
|
|
60
60
|
}));
|
|
61
|
-
},
|
|
61
|
+
}, Ge = function(e, r, a) {
|
|
62
62
|
if (e === null)
|
|
63
63
|
return null;
|
|
64
64
|
var n = e.apply(void 0, r);
|
|
@@ -79,9 +79,9 @@ var Ce = function() {
|
|
|
79
79
|
be = !0;
|
|
80
80
|
var n = Date.now();
|
|
81
81
|
return ve().then(function(i) {
|
|
82
|
-
return
|
|
82
|
+
return Ge(i, r, n);
|
|
83
83
|
});
|
|
84
|
-
},
|
|
84
|
+
}, Ve = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t[t.SILENT = 4] = "SILENT", t))(Ve || {});
|
|
85
85
|
class Ee {
|
|
86
86
|
config;
|
|
87
87
|
constructor(e) {
|
|
@@ -136,15 +136,15 @@ class Ee {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
const Je = () => typeof process < "u" && process.env.NODE_ENV === "development" ? 0 : 2;
|
|
139
|
-
let
|
|
139
|
+
let G = null;
|
|
140
140
|
function l() {
|
|
141
|
-
return
|
|
141
|
+
return G || (G = new Ee({
|
|
142
142
|
level: Je(),
|
|
143
143
|
prefix: "[CedrosPay]"
|
|
144
|
-
})),
|
|
144
|
+
})), G;
|
|
145
145
|
}
|
|
146
146
|
function Ye(t) {
|
|
147
|
-
|
|
147
|
+
G = t;
|
|
148
148
|
}
|
|
149
149
|
function Xe(t) {
|
|
150
150
|
return new Ee(t);
|
|
@@ -189,7 +189,7 @@ async function g(t, e, r = !1) {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
const $e = 15e3;
|
|
192
|
-
async function
|
|
192
|
+
async function p(t, e = {}, r = $e) {
|
|
193
193
|
const a = new AbortController(), n = e.signal;
|
|
194
194
|
if (n?.aborted)
|
|
195
195
|
throw a.abort(), new DOMException("The operation was aborted", "AbortError");
|
|
@@ -251,7 +251,7 @@ const M = {
|
|
|
251
251
|
PERMISSIVE: { maxRequests: 100, windowMs: 6e4 }
|
|
252
252
|
};
|
|
253
253
|
var et = /* @__PURE__ */ ((t) => (t.CLOSED = "CLOSED", t.OPEN = "OPEN", t.HALF_OPEN = "HALF_OPEN", t))(et || {});
|
|
254
|
-
class
|
|
254
|
+
class A extends Error {
|
|
255
255
|
constructor(e) {
|
|
256
256
|
super(e), this.name = "CircuitBreakerOpenError";
|
|
257
257
|
}
|
|
@@ -279,12 +279,12 @@ function j(t) {
|
|
|
279
279
|
if (h(), i === "OPEN") {
|
|
280
280
|
c++;
|
|
281
281
|
const P = u ? Math.ceil((u - Date.now()) / 1e3) : 0;
|
|
282
|
-
throw new
|
|
282
|
+
throw new A(
|
|
283
283
|
`Circuit breaker is OPEN. Service is unavailable. Retry in ${P}s.`
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
if (i === "HALF_OPEN" && y)
|
|
287
|
-
throw c++, new
|
|
287
|
+
throw c++, new A(
|
|
288
288
|
"Circuit breaker is HALF_OPEN. A probe request is already in progress."
|
|
289
289
|
);
|
|
290
290
|
i === "HALF_OPEN" && (y = !0);
|
|
@@ -870,7 +870,7 @@ class st {
|
|
|
870
870
|
hasMetadata: !!(e.metadata && Object.keys(e.metadata).length),
|
|
871
871
|
metadataKeyCount: e.metadata ? Object.keys(e.metadata).length : 0
|
|
872
872
|
});
|
|
873
|
-
const n = await
|
|
873
|
+
const n = await p(a, {
|
|
874
874
|
method: "POST",
|
|
875
875
|
headers: {
|
|
876
876
|
"Content-Type": "application/json",
|
|
@@ -887,7 +887,7 @@ class st {
|
|
|
887
887
|
{ ...E.STANDARD, name: "stripe-create-session" }
|
|
888
888
|
));
|
|
889
889
|
} catch (a) {
|
|
890
|
-
throw a instanceof
|
|
890
|
+
throw a instanceof A ? (l().error("[StripeManager] Circuit breaker is OPEN - Stripe service unavailable"), new Error("Stripe payment service is temporarily unavailable. Please try again in a few moments.")) : a;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
/**
|
|
@@ -947,7 +947,7 @@ class st {
|
|
|
947
947
|
try {
|
|
948
948
|
const C = await this.circuitBreaker.execute(async () => await b(
|
|
949
949
|
async () => {
|
|
950
|
-
const x = await this.routeDiscovery.buildUrl("/paywall/v1/cart/checkout"), T = await
|
|
950
|
+
const x = await this.routeDiscovery.buildUrl("/paywall/v1/cart/checkout"), T = await p(x, {
|
|
951
951
|
method: "POST",
|
|
952
952
|
headers: {
|
|
953
953
|
"Content-Type": "application/json",
|
|
@@ -982,7 +982,7 @@ class st {
|
|
|
982
982
|
));
|
|
983
983
|
return await this.redirectToCheckout(C.sessionId);
|
|
984
984
|
} catch (C) {
|
|
985
|
-
return C instanceof
|
|
985
|
+
return C instanceof A ? {
|
|
986
986
|
success: !1,
|
|
987
987
|
error: "Stripe payment service is temporarily unavailable. Please try again in a few moments."
|
|
988
988
|
} : {
|
|
@@ -1009,7 +1009,7 @@ const Pe = "3.7.8", ct = Pe, F = typeof Buffer == "function", le = typeof TextDe
|
|
|
1009
1009
|
for (let a = 0, n = t.length; a < n; a += 4096)
|
|
1010
1010
|
r.push(v.apply(null, t.subarray(a, a + 4096)));
|
|
1011
1011
|
return ie(r.join(""));
|
|
1012
|
-
},
|
|
1012
|
+
}, V = (t, e = !1) => e ? Se(te(t)) : te(t), dt = (t) => {
|
|
1013
1013
|
if (t.length < 2) {
|
|
1014
1014
|
var e = t.charCodeAt(0);
|
|
1015
1015
|
return e < 128 ? t : e < 2048 ? v(192 | e >>> 6) + v(128 | e & 63) : v(224 | e >>> 12 & 15) + v(128 | e >>> 6 & 63) + v(128 | e & 63);
|
|
@@ -1035,7 +1035,7 @@ const Pe = "3.7.8", ct = Pe, F = typeof Buffer == "function", le = typeof TextDe
|
|
|
1035
1035
|
for (let i = 0; i < t.length; )
|
|
1036
1036
|
e = W[t.charAt(i++)] << 18 | W[t.charAt(i++)] << 12 | (r = W[t.charAt(i++)]) << 6 | (a = W[t.charAt(i++)]), r === 64 ? n.push(v(e >> 16 & 255)) : a === 64 ? n.push(v(e >> 16 & 255, e >> 8 & 255)) : n.push(v(e >> 16 & 255, e >> 8 & 255, e & 255));
|
|
1037
1037
|
return n.join("");
|
|
1038
|
-
}, oe = typeof atob == "function" ? (t) => atob(xe(t)) : F ? (t) => Buffer.from(t, "base64").toString("binary") : Me, De = F ? (t) => de(Buffer.from(t, "base64")) : (t) => de(oe(t).split("").map((e) => e.charCodeAt(0))), Oe = (t) => De(Be(t)), yt = F ? (t) => Buffer.from(t, "base64").toString("utf8") : le ? (t) => le.decode(De(t)) : (t) => Re(oe(t)), Be = (t) => xe(t.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), re = (t) => yt(Be(t)),
|
|
1038
|
+
}, oe = typeof atob == "function" ? (t) => atob(xe(t)) : F ? (t) => Buffer.from(t, "base64").toString("binary") : Me, De = F ? (t) => de(Buffer.from(t, "base64")) : (t) => de(oe(t).split("").map((e) => e.charCodeAt(0))), Oe = (t) => De(Be(t)), yt = F ? (t) => Buffer.from(t, "base64").toString("utf8") : le ? (t) => le.decode(De(t)) : (t) => Re(oe(t)), Be = (t) => xe(t.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), re = (t) => yt(Be(t)), pt = (t) => {
|
|
1039
1039
|
if (typeof t != "string")
|
|
1040
1040
|
return !1;
|
|
1041
1041
|
const e = t.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
@@ -1061,13 +1061,13 @@ const Pe = "3.7.8", ct = Pe, F = typeof Buffer == "function", le = typeof TextDe
|
|
|
1061
1061
|
}, Ne = function() {
|
|
1062
1062
|
const t = (e, r) => Object.defineProperty(Uint8Array.prototype, e, _e(r));
|
|
1063
1063
|
t("toBase64", function(e) {
|
|
1064
|
-
return
|
|
1064
|
+
return V(this, e);
|
|
1065
1065
|
}), t("toBase64URI", function() {
|
|
1066
|
-
return
|
|
1066
|
+
return V(this, !0);
|
|
1067
1067
|
}), t("toBase64URL", function() {
|
|
1068
|
-
return
|
|
1068
|
+
return V(this, !0);
|
|
1069
1069
|
});
|
|
1070
|
-
},
|
|
1070
|
+
}, At = () => {
|
|
1071
1071
|
Ie(), Ne();
|
|
1072
1072
|
}, me = {
|
|
1073
1073
|
version: Pe,
|
|
@@ -1084,12 +1084,12 @@ const Pe = "3.7.8", ct = Pe, F = typeof Buffer == "function", le = typeof TextDe
|
|
|
1084
1084
|
utob: ke,
|
|
1085
1085
|
btou: Re,
|
|
1086
1086
|
decode: re,
|
|
1087
|
-
isValid:
|
|
1088
|
-
fromUint8Array:
|
|
1087
|
+
isValid: pt,
|
|
1088
|
+
fromUint8Array: V,
|
|
1089
1089
|
toUint8Array: Oe,
|
|
1090
1090
|
extendString: Ie,
|
|
1091
1091
|
extendUint8Array: Ne,
|
|
1092
|
-
extendBuiltins:
|
|
1092
|
+
extendBuiltins: At
|
|
1093
1093
|
};
|
|
1094
1094
|
class gt {
|
|
1095
1095
|
routeDiscovery;
|
|
@@ -1121,7 +1121,7 @@ class gt {
|
|
|
1121
1121
|
"[X402Manager] Requesting quote",
|
|
1122
1122
|
a ? "with coupon" : "without coupon"
|
|
1123
1123
|
);
|
|
1124
|
-
const i = await this.routeDiscovery.buildUrl(n), o = await
|
|
1124
|
+
const i = await this.routeDiscovery.buildUrl(n), o = await p(i, {
|
|
1125
1125
|
method: "POST",
|
|
1126
1126
|
headers: {
|
|
1127
1127
|
"Content-Type": "application/json"
|
|
@@ -1150,7 +1150,7 @@ class gt {
|
|
|
1150
1150
|
{ ...E.QUICK, name: "x402-quote" }
|
|
1151
1151
|
));
|
|
1152
1152
|
} catch (n) {
|
|
1153
|
-
throw n instanceof
|
|
1153
|
+
throw n instanceof A ? (l().error("[X402Manager] Circuit breaker is OPEN - x402 service unavailable"), new Error("Payment service is temporarily unavailable. Please try again in a few moments.")) : n;
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
/**
|
|
@@ -1164,7 +1164,7 @@ class gt {
|
|
|
1164
1164
|
try {
|
|
1165
1165
|
return await this.circuitBreaker.execute(async () => await b(
|
|
1166
1166
|
async () => {
|
|
1167
|
-
const o = await this.routeDiscovery.buildUrl("/paywall/v1/cart/quote"), c = await
|
|
1167
|
+
const o = await this.routeDiscovery.buildUrl("/paywall/v1/cart/quote"), c = await p(o, {
|
|
1168
1168
|
method: "POST",
|
|
1169
1169
|
headers: {
|
|
1170
1170
|
"Content-Type": "application/json",
|
|
@@ -1193,7 +1193,7 @@ class gt {
|
|
|
1193
1193
|
{ ...E.QUICK, name: "x402-cart-quote" }
|
|
1194
1194
|
));
|
|
1195
1195
|
} catch (o) {
|
|
1196
|
-
throw o instanceof
|
|
1196
|
+
throw o instanceof A ? (l().error("[X402Manager] Circuit breaker is OPEN - cart quote service unavailable"), new Error("Payment service is temporarily unavailable. Please try again in a few moments.")) : o;
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
/**
|
|
@@ -1259,7 +1259,7 @@ class gt {
|
|
|
1259
1259
|
hasCoupon: !!n,
|
|
1260
1260
|
hasMetadata: !!i
|
|
1261
1261
|
});
|
|
1262
|
-
const y = await this.routeDiscovery.buildUrl(u), f = await
|
|
1262
|
+
const y = await this.routeDiscovery.buildUrl(u), f = await p(y, {
|
|
1263
1263
|
method: "POST",
|
|
1264
1264
|
headers: {
|
|
1265
1265
|
"Content-Type": "application/json",
|
|
@@ -1286,7 +1286,7 @@ class gt {
|
|
|
1286
1286
|
{ maxRetries: 0, initialDelayMs: 0, backoffFactor: 1, maxDelayMs: 0, name: "x402-verify" }
|
|
1287
1287
|
));
|
|
1288
1288
|
} catch (c) {
|
|
1289
|
-
return c instanceof
|
|
1289
|
+
return c instanceof A ? {
|
|
1290
1290
|
success: !1,
|
|
1291
1291
|
error: "Payment verification service is temporarily unavailable. Please try again in a few moments."
|
|
1292
1292
|
} : {
|
|
@@ -1308,7 +1308,7 @@ class gt {
|
|
|
1308
1308
|
async () => {
|
|
1309
1309
|
const o = await this.routeDiscovery.buildUrl(
|
|
1310
1310
|
"/paywall/v1/gasless-transaction"
|
|
1311
|
-
), s = await
|
|
1311
|
+
), s = await p(o, {
|
|
1312
1312
|
method: "POST",
|
|
1313
1313
|
headers: {
|
|
1314
1314
|
"Content-Type": "application/json"
|
|
@@ -1329,7 +1329,7 @@ class gt {
|
|
|
1329
1329
|
{ ...E.QUICK, name: "x402-gasless-build" }
|
|
1330
1330
|
));
|
|
1331
1331
|
} catch (o) {
|
|
1332
|
-
throw o instanceof
|
|
1332
|
+
throw o instanceof A ? (l().error("[X402Manager] Circuit breaker is OPEN - gasless transaction service unavailable"), new Error("Gasless transaction service is temporarily unavailable. Please try again in a few moments.")) : o;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
/**
|
|
@@ -1371,7 +1371,7 @@ class gt {
|
|
|
1371
1371
|
...n ? { couponCode: n } : {}
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
|
-
}, u = this.buildPaymentHeader(m), f = await this.routeDiscovery.buildUrl("/paywall/v1/verify"), h = await
|
|
1374
|
+
}, u = this.buildPaymentHeader(m), f = await this.routeDiscovery.buildUrl("/paywall/v1/verify"), h = await p(f, {
|
|
1375
1375
|
method: "POST",
|
|
1376
1376
|
headers: {
|
|
1377
1377
|
"Content-Type": "application/json",
|
|
@@ -1398,7 +1398,7 @@ class gt {
|
|
|
1398
1398
|
{ maxRetries: 0, initialDelayMs: 0, backoffFactor: 1, maxDelayMs: 0, name: "x402-gasless-verify" }
|
|
1399
1399
|
));
|
|
1400
1400
|
} catch (d) {
|
|
1401
|
-
return d instanceof
|
|
1401
|
+
return d instanceof A ? {
|
|
1402
1402
|
success: !1,
|
|
1403
1403
|
error: "Gasless transaction verification service is temporarily unavailable. Please try again in a few moments."
|
|
1404
1404
|
} : {
|
|
@@ -1468,7 +1468,7 @@ class wt {
|
|
|
1468
1468
|
() => b(r, { ...E.STANDARD, name: a })
|
|
1469
1469
|
);
|
|
1470
1470
|
} catch (i) {
|
|
1471
|
-
throw i instanceof
|
|
1471
|
+
throw i instanceof A ? (l().error(`[SubscriptionManager] Circuit breaker OPEN for ${n}`), new Error("Service temporarily unavailable. Please try again in a few moments.")) : i;
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
1474
|
/**
|
|
@@ -1487,7 +1487,7 @@ class wt {
|
|
|
1487
1487
|
interval: e.interval,
|
|
1488
1488
|
trialDays: e.trialDays
|
|
1489
1489
|
});
|
|
1490
|
-
const n = await
|
|
1490
|
+
const n = await p(a, {
|
|
1491
1491
|
method: "POST",
|
|
1492
1492
|
headers: {
|
|
1493
1493
|
"Content-Type": "application/json",
|
|
@@ -1507,7 +1507,7 @@ class wt {
|
|
|
1507
1507
|
{ ...E.STANDARD, name: "subscription-create-session" }
|
|
1508
1508
|
));
|
|
1509
1509
|
} catch (a) {
|
|
1510
|
-
throw a instanceof
|
|
1510
|
+
throw a instanceof A ? (l().error("[SubscriptionManager] Circuit breaker is OPEN - service unavailable"), new Error(
|
|
1511
1511
|
"Subscription service is temporarily unavailable. Please try again in a few moments."
|
|
1512
1512
|
)) : a;
|
|
1513
1513
|
}
|
|
@@ -1557,7 +1557,7 @@ class wt {
|
|
|
1557
1557
|
`/paywall/v1/subscription/status?${r.toString()}`
|
|
1558
1558
|
);
|
|
1559
1559
|
l().debug("[SubscriptionManager] Checking subscription status:", e);
|
|
1560
|
-
const n = await
|
|
1560
|
+
const n = await p(a, {
|
|
1561
1561
|
method: "GET",
|
|
1562
1562
|
headers: {
|
|
1563
1563
|
"Content-Type": "application/json"
|
|
@@ -1575,7 +1575,7 @@ class wt {
|
|
|
1575
1575
|
{ ...E.STANDARD, name: "subscription-status-check" }
|
|
1576
1576
|
));
|
|
1577
1577
|
} catch (r) {
|
|
1578
|
-
throw r instanceof
|
|
1578
|
+
throw r instanceof A ? (l().error("[SubscriptionManager] Circuit breaker is OPEN for status check"), new Error(
|
|
1579
1579
|
"Subscription status service is temporarily unavailable. Please try again in a few moments."
|
|
1580
1580
|
)) : r;
|
|
1581
1581
|
}
|
|
@@ -1596,7 +1596,7 @@ class wt {
|
|
|
1596
1596
|
intervalDays: a?.intervalDays
|
|
1597
1597
|
};
|
|
1598
1598
|
l().debug("[SubscriptionManager] Requesting subscription quote:", i);
|
|
1599
|
-
const o = await
|
|
1599
|
+
const o = await p(n, {
|
|
1600
1600
|
method: "POST",
|
|
1601
1601
|
headers: {
|
|
1602
1602
|
"Content-Type": "application/json"
|
|
@@ -1615,7 +1615,7 @@ class wt {
|
|
|
1615
1615
|
{ ...E.STANDARD, name: "subscription-quote" }
|
|
1616
1616
|
));
|
|
1617
1617
|
} catch (n) {
|
|
1618
|
-
throw n instanceof
|
|
1618
|
+
throw n instanceof A ? (l().error("[SubscriptionManager] Circuit breaker is OPEN for quote"), new Error(
|
|
1619
1619
|
"Subscription quote service is temporarily unavailable. Please try again in a few moments."
|
|
1620
1620
|
)) : n;
|
|
1621
1621
|
}
|
|
@@ -1627,7 +1627,7 @@ class wt {
|
|
|
1627
1627
|
async () => {
|
|
1628
1628
|
const r = await this.routeDiscovery.buildUrl("/paywall/v1/subscription/x402/activate");
|
|
1629
1629
|
l().debug("[SubscriptionManager] Activating x402 subscription:", e);
|
|
1630
|
-
const a = await
|
|
1630
|
+
const a = await p(r, {
|
|
1631
1631
|
method: "POST",
|
|
1632
1632
|
headers: { "Content-Type": "application/json" },
|
|
1633
1633
|
body: JSON.stringify(e)
|
|
@@ -1661,7 +1661,7 @@ class bt {
|
|
|
1661
1661
|
() => b(r, { ...E.STANDARD, name: a })
|
|
1662
1662
|
);
|
|
1663
1663
|
} catch (i) {
|
|
1664
|
-
throw i instanceof
|
|
1664
|
+
throw i instanceof A ? (l().error(`[SubscriptionChangeManager] Circuit breaker OPEN for ${n}`), new Error("Service temporarily unavailable. Please try again in a few moments.")) : i;
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
1667
|
/** Change subscription plan (upgrade or downgrade) */
|
|
@@ -1672,7 +1672,7 @@ class bt {
|
|
|
1672
1672
|
async () => {
|
|
1673
1673
|
const a = await this.routeDiscovery.buildUrl("/paywall/v1/subscription/change");
|
|
1674
1674
|
l().debug("[SubscriptionChangeManager] Changing subscription:", e);
|
|
1675
|
-
const n = await
|
|
1675
|
+
const n = await p(a, {
|
|
1676
1676
|
method: "POST",
|
|
1677
1677
|
headers: { "Content-Type": "application/json", "Idempotency-Key": r },
|
|
1678
1678
|
body: JSON.stringify(e)
|
|
@@ -1692,7 +1692,7 @@ class bt {
|
|
|
1692
1692
|
async () => {
|
|
1693
1693
|
const r = await this.routeDiscovery.buildUrl("/paywall/v1/subscription/change/preview");
|
|
1694
1694
|
l().debug("[SubscriptionChangeManager] Previewing subscription change:", e);
|
|
1695
|
-
const a = await
|
|
1695
|
+
const a = await p(r, {
|
|
1696
1696
|
method: "POST",
|
|
1697
1697
|
headers: { "Content-Type": "application/json" },
|
|
1698
1698
|
body: JSON.stringify(e)
|
|
@@ -1712,7 +1712,7 @@ class bt {
|
|
|
1712
1712
|
async () => {
|
|
1713
1713
|
const a = new URLSearchParams({ resource: e, userId: r }), n = await this.routeDiscovery.buildUrl(`/paywall/v1/subscription/details?${a}`);
|
|
1714
1714
|
l().debug("[SubscriptionChangeManager] Getting subscription details:", { resource: e, userId: r });
|
|
1715
|
-
const i = await
|
|
1715
|
+
const i = await p(n, {
|
|
1716
1716
|
method: "GET",
|
|
1717
1717
|
headers: { "Content-Type": "application/json" }
|
|
1718
1718
|
});
|
|
@@ -1731,7 +1731,7 @@ class bt {
|
|
|
1731
1731
|
async () => {
|
|
1732
1732
|
const r = await this.routeDiscovery.buildUrl("/paywall/v1/subscription/cancel");
|
|
1733
1733
|
l().debug("[SubscriptionChangeManager] Canceling subscription:", e);
|
|
1734
|
-
const a = await
|
|
1734
|
+
const a = await p(r, {
|
|
1735
1735
|
method: "POST",
|
|
1736
1736
|
headers: { "Content-Type": "application/json" },
|
|
1737
1737
|
body: JSON.stringify(e)
|
|
@@ -1751,7 +1751,7 @@ class bt {
|
|
|
1751
1751
|
async () => {
|
|
1752
1752
|
const r = await this.routeDiscovery.buildUrl("/paywall/v1/subscription/portal");
|
|
1753
1753
|
l().debug("[SubscriptionChangeManager] Getting billing portal URL:", e);
|
|
1754
|
-
const a = await
|
|
1754
|
+
const a = await p(r, {
|
|
1755
1755
|
method: "POST",
|
|
1756
1756
|
headers: { "Content-Type": "application/json" },
|
|
1757
1757
|
body: JSON.stringify(e)
|
|
@@ -1784,7 +1784,7 @@ class vt {
|
|
|
1784
1784
|
async () => {
|
|
1785
1785
|
const a = await this.routeDiscovery.buildUrl("/paywall/v1/quote");
|
|
1786
1786
|
l().debug("[CreditsManager] Requesting quote");
|
|
1787
|
-
const n = await
|
|
1787
|
+
const n = await p(a, {
|
|
1788
1788
|
method: "POST",
|
|
1789
1789
|
headers: { "Content-Type": "application/json" },
|
|
1790
1790
|
body: JSON.stringify({ resource: e, couponCode: r })
|
|
@@ -1800,7 +1800,7 @@ class vt {
|
|
|
1800
1800
|
{ ...E.STANDARD, name: "credits-quote" }
|
|
1801
1801
|
));
|
|
1802
1802
|
} catch (a) {
|
|
1803
|
-
throw a instanceof
|
|
1803
|
+
throw a instanceof A ? (l().error("[CreditsManager] Circuit breaker is OPEN - credits service unavailable"), new Error("Credits service is temporarily unavailable. Please try again in a few moments.")) : a;
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
async requestCartQuote(e, r) {
|
|
@@ -1811,7 +1811,7 @@ class vt {
|
|
|
1811
1811
|
async () => {
|
|
1812
1812
|
const a = await this.routeDiscovery.buildUrl("/paywall/v1/cart/quote");
|
|
1813
1813
|
l().debug("[CreditsManager] Requesting cart quote for items:", e.length);
|
|
1814
|
-
const n = await
|
|
1814
|
+
const n = await p(a, {
|
|
1815
1815
|
method: "POST",
|
|
1816
1816
|
headers: { "Content-Type": "application/json" },
|
|
1817
1817
|
body: JSON.stringify({ items: e, couponCode: r })
|
|
@@ -1829,7 +1829,7 @@ class vt {
|
|
|
1829
1829
|
{ ...E.STANDARD, name: "credits-cart-quote" }
|
|
1830
1830
|
));
|
|
1831
1831
|
} catch (a) {
|
|
1832
|
-
throw a instanceof
|
|
1832
|
+
throw a instanceof A ? new Error("Credits service is temporarily unavailable. Please try again in a few moments.") : a;
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
/**
|
|
@@ -1846,7 +1846,7 @@ class vt {
|
|
|
1846
1846
|
async () => {
|
|
1847
1847
|
const o = await this.routeDiscovery.buildUrl("/paywall/v1/credits/hold");
|
|
1848
1848
|
l().debug("[CreditsManager] Creating hold");
|
|
1849
|
-
const s = await
|
|
1849
|
+
const s = await p(o, {
|
|
1850
1850
|
method: "POST",
|
|
1851
1851
|
headers: {
|
|
1852
1852
|
"Content-Type": "application/json",
|
|
@@ -1864,7 +1864,7 @@ class vt {
|
|
|
1864
1864
|
{ ...E.STANDARD, name: "credits-create-hold" }
|
|
1865
1865
|
));
|
|
1866
1866
|
} catch (o) {
|
|
1867
|
-
throw o instanceof
|
|
1867
|
+
throw o instanceof A ? new Error("Credits service is temporarily unavailable. Please try again in a few moments.") : o;
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
1870
|
/**
|
|
@@ -1881,7 +1881,7 @@ class vt {
|
|
|
1881
1881
|
async () => {
|
|
1882
1882
|
const i = await this.routeDiscovery.buildUrl(`/paywall/v1/cart/${encodeURIComponent(r)}/credits/hold`);
|
|
1883
1883
|
l().debug("[CreditsManager] Creating cart hold for cart:", r);
|
|
1884
|
-
const o = await
|
|
1884
|
+
const o = await p(i, {
|
|
1885
1885
|
method: "POST",
|
|
1886
1886
|
headers: {
|
|
1887
1887
|
"Content-Type": "application/json",
|
|
@@ -1899,7 +1899,7 @@ class vt {
|
|
|
1899
1899
|
{ ...E.STANDARD, name: "credits-create-cart-hold" }
|
|
1900
1900
|
));
|
|
1901
1901
|
} catch (i) {
|
|
1902
|
-
throw i instanceof
|
|
1902
|
+
throw i instanceof A ? new Error("Credits service is temporarily unavailable. Please try again in a few moments.") : i;
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
async authorizePayment(e) {
|
|
@@ -1916,7 +1916,7 @@ class vt {
|
|
|
1916
1916
|
async () => {
|
|
1917
1917
|
const c = await this.routeDiscovery.buildUrl("/paywall/v1/credits/authorize");
|
|
1918
1918
|
l().debug("[CreditsManager] Authorizing payment");
|
|
1919
|
-
const d = await
|
|
1919
|
+
const d = await p(c, {
|
|
1920
1920
|
method: "POST",
|
|
1921
1921
|
headers: {
|
|
1922
1922
|
"Content-Type": "application/json",
|
|
@@ -1946,7 +1946,7 @@ class vt {
|
|
|
1946
1946
|
{ ...E.STANDARD, name: "credits-authorize" }
|
|
1947
1947
|
));
|
|
1948
1948
|
} catch (c) {
|
|
1949
|
-
return c instanceof
|
|
1949
|
+
return c instanceof A ? {
|
|
1950
1950
|
success: !1,
|
|
1951
1951
|
error: "Credits service is temporarily unavailable. Please try again in a few moments.",
|
|
1952
1952
|
errorCode: "service_unavailable"
|
|
@@ -1971,7 +1971,7 @@ class vt {
|
|
|
1971
1971
|
async () => {
|
|
1972
1972
|
const s = await this.routeDiscovery.buildUrl(`/paywall/v1/cart/${encodeURIComponent(r)}/credits/authorize`);
|
|
1973
1973
|
l().debug("[CreditsManager] Authorizing cart payment for cart:", r);
|
|
1974
|
-
const c = await
|
|
1974
|
+
const c = await p(s, {
|
|
1975
1975
|
method: "POST",
|
|
1976
1976
|
headers: {
|
|
1977
1977
|
"Content-Type": "application/json",
|
|
@@ -2003,7 +2003,7 @@ class vt {
|
|
|
2003
2003
|
{ ...E.STANDARD, name: "credits-cart-authorize" }
|
|
2004
2004
|
));
|
|
2005
2005
|
} catch (s) {
|
|
2006
|
-
return s instanceof
|
|
2006
|
+
return s instanceof A ? {
|
|
2007
2007
|
success: !1,
|
|
2008
2008
|
error: "Credits service is temporarily unavailable. Please try again in a few moments.",
|
|
2009
2009
|
errorCode: "service_unavailable"
|
|
@@ -2018,7 +2018,7 @@ class vt {
|
|
|
2018
2018
|
if (e)
|
|
2019
2019
|
try {
|
|
2020
2020
|
await this.circuitBreaker.execute(async () => {
|
|
2021
|
-
const a = await this.routeDiscovery.buildUrl(`/paywall/v1/credits/hold/${encodeURIComponent(e)}/release`), n = await
|
|
2021
|
+
const a = await this.routeDiscovery.buildUrl(`/paywall/v1/credits/hold/${encodeURIComponent(e)}/release`), n = await p(a, {
|
|
2022
2022
|
method: "POST",
|
|
2023
2023
|
headers: {
|
|
2024
2024
|
Authorization: `Bearer ${r}`,
|
|
@@ -2031,7 +2031,7 @@ class vt {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
});
|
|
2033
2033
|
} catch (a) {
|
|
2034
|
-
throw a instanceof
|
|
2034
|
+
throw a instanceof A ? new Error("Credits service is temporarily unavailable. Please try again in a few moments.") : a;
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
/**
|
|
@@ -2078,6 +2078,23 @@ class vt {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
}
|
|
2080
2080
|
}
|
|
2081
|
+
async getBalance(e) {
|
|
2082
|
+
try {
|
|
2083
|
+
return await this.circuitBreaker.execute(async () => {
|
|
2084
|
+
const r = await this.routeDiscovery.buildUrl("/paywall/v1/credits/balance"), a = await p(r, {
|
|
2085
|
+
method: "GET",
|
|
2086
|
+
headers: { Authorization: `Bearer ${e}` }
|
|
2087
|
+
});
|
|
2088
|
+
if (!a.ok) {
|
|
2089
|
+
const n = await g(a, "Failed to fetch credits balance");
|
|
2090
|
+
throw new Error(n);
|
|
2091
|
+
}
|
|
2092
|
+
return await a.json();
|
|
2093
|
+
});
|
|
2094
|
+
} catch (r) {
|
|
2095
|
+
throw r instanceof A ? new Error("Credits service is temporarily unavailable. Please try again in a few moments.") : r;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2081
2098
|
}
|
|
2082
2099
|
class Ct {
|
|
2083
2100
|
serverUrl;
|
|
@@ -2149,12 +2166,12 @@ class Ct {
|
|
|
2149
2166
|
}
|
|
2150
2167
|
class Et extends Ct {
|
|
2151
2168
|
constructor(e) {
|
|
2152
|
-
super(e, { getLogger: l, fetchWithTimeout:
|
|
2169
|
+
super(e, { getLogger: l, fetchWithTimeout: p });
|
|
2153
2170
|
}
|
|
2154
2171
|
}
|
|
2155
2172
|
let X = null;
|
|
2156
2173
|
async function Pt() {
|
|
2157
|
-
return X || (X = (await import("./WalletManager-
|
|
2174
|
+
return X || (X = (await import("./WalletManager-peBN6RDH.mjs")).WalletManager), X;
|
|
2158
2175
|
}
|
|
2159
2176
|
const J = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map();
|
|
2160
2177
|
function Ue(t, e, r, a, n) {
|
|
@@ -2323,7 +2340,7 @@ function Fe(t, e = "token mint", r = !1) {
|
|
|
2323
2340
|
function Wt(t, e = "unknown", r = !1) {
|
|
2324
2341
|
return Fe(t, `X402Requirement (resource: ${e})`, r);
|
|
2325
2342
|
}
|
|
2326
|
-
const
|
|
2343
|
+
const pe = /* @__PURE__ */ new Set(["mainnet-beta", "devnet", "testnet"]);
|
|
2327
2344
|
function Ot() {
|
|
2328
2345
|
if (typeof window < "u" && window.location)
|
|
2329
2346
|
return window.location.origin;
|
|
@@ -2358,9 +2375,9 @@ function Bt(t) {
|
|
|
2358
2375
|
message: n instanceof Error ? n.message : "failed to determine default"
|
|
2359
2376
|
}), a = "";
|
|
2360
2377
|
}
|
|
2361
|
-
if (
|
|
2378
|
+
if (pe.has(t.solanaCluster) || e.push({
|
|
2362
2379
|
field: "solanaCluster",
|
|
2363
|
-
message: `must be one of ${Array.from(
|
|
2380
|
+
message: `must be one of ${Array.from(pe).join(", ")}`
|
|
2364
2381
|
}), t.solanaEndpoint !== void 0 && (typeof t.solanaEndpoint != "string" ? e.push({
|
|
2365
2382
|
field: "solanaEndpoint",
|
|
2366
2383
|
message: "must be a string when provided"
|
|
@@ -2459,7 +2476,7 @@ const _t = Object.freeze({
|
|
|
2459
2476
|
buttonPadding: "--cedros-button-padding",
|
|
2460
2477
|
buttonFontSize: "--cedros-button-font-size",
|
|
2461
2478
|
buttonFontWeight: "--cedros-button-font-weight"
|
|
2462
|
-
}, se =
|
|
2479
|
+
}, se = Ae(null);
|
|
2463
2480
|
function Ut(t, e) {
|
|
2464
2481
|
return {
|
|
2465
2482
|
...t === "dark" ? It : _t,
|
|
@@ -2506,7 +2523,7 @@ function Kt() {
|
|
|
2506
2523
|
throw new Error("useCedrosTheme must be used within CedrosProvider");
|
|
2507
2524
|
return t;
|
|
2508
2525
|
}
|
|
2509
|
-
function
|
|
2526
|
+
function Gt() {
|
|
2510
2527
|
return ne(se);
|
|
2511
2528
|
}
|
|
2512
2529
|
const $ = {
|
|
@@ -2519,12 +2536,12 @@ const $ = {
|
|
|
2519
2536
|
function Lt() {
|
|
2520
2537
|
return typeof process < "u" && process.env.NODE_ENV === "development" ? 0 : 2;
|
|
2521
2538
|
}
|
|
2522
|
-
const He =
|
|
2523
|
-
function
|
|
2539
|
+
const He = Ae(null);
|
|
2540
|
+
function Vt({ config: t, children: e }) {
|
|
2524
2541
|
const r = ee(() => Bt(t), [t]), [a, n] = N(null), [i, o] = N($), s = ge($);
|
|
2525
2542
|
I(() => {
|
|
2526
2543
|
let f = !1;
|
|
2527
|
-
return import("./walletPool-
|
|
2544
|
+
return import("./walletPool-DgQsh7Se.mjs").then(({ createWalletPool: h }) => {
|
|
2528
2545
|
if (f) return;
|
|
2529
2546
|
const w = h();
|
|
2530
2547
|
s.current = w, o(w);
|
|
@@ -2603,10 +2620,10 @@ function Jt() {
|
|
|
2603
2620
|
return t;
|
|
2604
2621
|
}
|
|
2605
2622
|
export {
|
|
2606
|
-
|
|
2623
|
+
Vt as C,
|
|
2607
2624
|
at as E,
|
|
2608
2625
|
ae as K,
|
|
2609
|
-
|
|
2626
|
+
Ve as L,
|
|
2610
2627
|
O as P,
|
|
2611
2628
|
M as R,
|
|
2612
2629
|
Mt as S,
|
|
@@ -2614,7 +2631,7 @@ export {
|
|
|
2614
2631
|
j as b,
|
|
2615
2632
|
R as c,
|
|
2616
2633
|
et as d,
|
|
2617
|
-
|
|
2634
|
+
A as e,
|
|
2618
2635
|
Qt as f,
|
|
2619
2636
|
E as g,
|
|
2620
2637
|
Ee as h,
|
|
@@ -2625,8 +2642,8 @@ export {
|
|
|
2625
2642
|
k as m,
|
|
2626
2643
|
Fe as n,
|
|
2627
2644
|
rt as o,
|
|
2628
|
-
|
|
2629
|
-
|
|
2645
|
+
p,
|
|
2646
|
+
Gt as q,
|
|
2630
2647
|
b as r,
|
|
2631
2648
|
Jt as u,
|
|
2632
2649
|
Bt as v
|