@heliofi/checkout-react 2.3.0 → 3.0.0
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BlockchainSymbol } from '@heliofi/common';
|
|
2
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
mainButtonTitle?: string;
|
|
4
5
|
payButtonTitle?: string;
|
|
@@ -7,7 +8,7 @@ import { BlockchainSymbol } from '@heliofi/common';
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
export declare const HelioCheckout: (props: HelioCheckoutReactProps) =>
|
|
11
|
+
export declare const HelioCheckout: (props: HelioCheckoutReactProps) => JSX_2.Element;
|
|
11
12
|
|
|
12
13
|
config: HelioEmbedConfig;
|
|
13
14
|
}
|
|
@@ -65,6 +66,7 @@ export declare const HelioCheckout: (props: HelioCheckoutReactProps) => JSX.Elem
|
|
|
65
66
|
backgroundContainer?: string;
|
|
66
67
|
backgroundSecondary?: string;
|
|
67
68
|
primaryButtonShadow?: string;
|
|
69
|
+
backgroundDashboard?: string;
|
|
68
70
|
/** @deprecated - for internal use only */
|
|
69
71
|
shadowPrimaryGray?: string;
|
|
70
72
|
shadowWalletButton?: string;
|
|
@@ -1,676 +1,499 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import ye, { Component as Re, useRef as Ae, useState as J, useEffect as me, useLayoutEffect as Oe } from "react";
|
|
2
|
+
var X = { exports: {} }, A = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
var ge;
|
|
13
|
+
function Ne() {
|
|
14
|
+
if (ge) return A;
|
|
15
|
+
ge = 1;
|
|
16
|
+
var a = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
|
|
17
|
+
function g(S, u, f) {
|
|
18
|
+
var d = null;
|
|
19
|
+
if (f !== void 0 && (d = "" + f), u.key !== void 0 && (d = "" + u.key), "key" in u) {
|
|
20
|
+
f = {};
|
|
21
|
+
for (var E in u)
|
|
22
|
+
E !== "key" && (f[E] = u[E]);
|
|
23
|
+
} else f = u;
|
|
24
|
+
return u = f.ref, {
|
|
25
|
+
$$typeof: a,
|
|
26
|
+
type: S,
|
|
27
|
+
key: d,
|
|
28
|
+
ref: u !== void 0 ? u : null,
|
|
29
|
+
props: f
|
|
30
|
+
};
|
|
23
31
|
}
|
|
24
|
-
return
|
|
32
|
+
return A.Fragment = c, A.jsx = g, A.jsxs = g, A;
|
|
25
33
|
}
|
|
26
|
-
var
|
|
34
|
+
var O = {};
|
|
27
35
|
/**
|
|
28
36
|
* @license React
|
|
29
37
|
* react-jsx-runtime.development.js
|
|
30
38
|
*
|
|
31
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
40
|
*
|
|
33
41
|
* This source code is licensed under the MIT license found in the
|
|
34
42
|
* LICENSE file in the root directory of this source tree.
|
|
35
43
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (
|
|
42
|
-
return null;
|
|
43
|
-
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var k = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function p(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
-
t[n - 1] = arguments[n];
|
|
51
|
-
Fe("error", e, t);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function Fe(e, r, t) {
|
|
55
|
-
{
|
|
56
|
-
var n = k.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
57
|
-
i !== "" && (r += "%s", t = t.concat([i]));
|
|
58
|
-
var u = t.map(function(o) {
|
|
59
|
-
return String(o);
|
|
60
|
-
});
|
|
61
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var De = !1, Ae = !1, Ie = !1, $e = !1, Le = !1, ee;
|
|
65
|
-
ee = Symbol.for("react.module.reference");
|
|
66
|
-
function We(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === S || e === j || Le || e === b || e === _ || e === v || $e || e === m || De || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === E || e.$$typeof === O || e.$$typeof === R || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Ye(e, r, t) {
|
|
74
|
-
var n = e.displayName;
|
|
75
|
-
if (n)
|
|
76
|
-
return n;
|
|
77
|
-
var i = r.displayName || r.name || "";
|
|
78
|
-
return i !== "" ? t + "(" + i + ")" : t;
|
|
79
|
-
}
|
|
80
|
-
function re(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function C(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
44
|
+
var he;
|
|
45
|
+
function Pe() {
|
|
46
|
+
return he || (he = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function a(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === ke ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
90
52
|
switch (e) {
|
|
91
|
-
case
|
|
53
|
+
case W:
|
|
92
54
|
return "Fragment";
|
|
93
|
-
case
|
|
55
|
+
case Te:
|
|
94
56
|
return "Portal";
|
|
95
|
-
case
|
|
57
|
+
case D:
|
|
96
58
|
return "Profiler";
|
|
97
|
-
case
|
|
59
|
+
case Q:
|
|
98
60
|
return "StrictMode";
|
|
99
|
-
case
|
|
61
|
+
case F:
|
|
100
62
|
return "Suspense";
|
|
101
|
-
case
|
|
63
|
+
case I:
|
|
102
64
|
return "SuspenseList";
|
|
103
65
|
}
|
|
104
66
|
if (typeof e == "object")
|
|
105
|
-
switch (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return
|
|
112
|
-
case
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case re:
|
|
71
|
+
return (e.displayName || "Context") + ".Provider";
|
|
72
|
+
case ee:
|
|
73
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case H:
|
|
75
|
+
var r = e.render;
|
|
76
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
77
|
+
case L:
|
|
78
|
+
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
79
|
+
case q:
|
|
80
|
+
r = e._payload, e = e._init;
|
|
119
81
|
try {
|
|
120
|
-
return
|
|
82
|
+
return a(e(r));
|
|
121
83
|
} catch {
|
|
122
|
-
return null;
|
|
123
84
|
}
|
|
124
|
-
}
|
|
125
85
|
}
|
|
126
86
|
return null;
|
|
127
87
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
ce.__reactDisabledLog = !0;
|
|
132
|
-
function Me() {
|
|
133
|
-
{
|
|
134
|
-
if (I === 0) {
|
|
135
|
-
te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: ce,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
I++;
|
|
153
|
-
}
|
|
88
|
+
function c(e) {
|
|
89
|
+
return "" + e;
|
|
154
90
|
}
|
|
155
|
-
function
|
|
156
|
-
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: w({}, e, {
|
|
165
|
-
value: te
|
|
166
|
-
}),
|
|
167
|
-
info: w({}, e, {
|
|
168
|
-
value: ne
|
|
169
|
-
}),
|
|
170
|
-
warn: w({}, e, {
|
|
171
|
-
value: ae
|
|
172
|
-
}),
|
|
173
|
-
error: w({}, e, {
|
|
174
|
-
value: oe
|
|
175
|
-
}),
|
|
176
|
-
group: w({}, e, {
|
|
177
|
-
value: ie
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: w({}, e, {
|
|
180
|
-
value: ue
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: w({}, e, {
|
|
183
|
-
value: se
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
I < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
91
|
+
function g(e) {
|
|
92
|
+
try {
|
|
93
|
+
c(e);
|
|
94
|
+
var r = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
r = !0;
|
|
188
97
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
q = n && n[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + q + e;
|
|
98
|
+
if (r) {
|
|
99
|
+
r = console;
|
|
100
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
101
|
+
return t.call(
|
|
102
|
+
r,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
n
|
|
105
|
+
), c(e);
|
|
202
106
|
}
|
|
203
107
|
}
|
|
204
|
-
|
|
205
|
-
{
|
|
206
|
-
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
M = new Ne();
|
|
108
|
+
function S() {
|
|
208
109
|
}
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
110
|
+
function u() {
|
|
111
|
+
if (y === 0) {
|
|
112
|
+
ne = console.log, ae = console.info, se = console.warn, ue = console.error, ce = console.group, ie = console.groupCollapsed, le = console.groupEnd;
|
|
113
|
+
var e = {
|
|
114
|
+
configurable: !0,
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
value: S,
|
|
117
|
+
writable: !0
|
|
118
|
+
};
|
|
119
|
+
Object.defineProperties(console, {
|
|
120
|
+
info: e,
|
|
121
|
+
log: e,
|
|
122
|
+
warn: e,
|
|
123
|
+
error: e,
|
|
124
|
+
group: e,
|
|
125
|
+
groupCollapsed: e,
|
|
126
|
+
groupEnd: e
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
y++;
|
|
130
|
+
}
|
|
131
|
+
function f() {
|
|
132
|
+
if (y--, y === 0) {
|
|
133
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
+
Object.defineProperties(console, {
|
|
135
|
+
log: C({}, e, { value: ne }),
|
|
136
|
+
info: C({}, e, { value: ae }),
|
|
137
|
+
warn: C({}, e, { value: se }),
|
|
138
|
+
error: C({}, e, { value: ue }),
|
|
139
|
+
group: C({}, e, { value: ce }),
|
|
140
|
+
groupCollapsed: C({}, e, { value: ie }),
|
|
141
|
+
groupEnd: C({}, e, { value: le })
|
|
142
|
+
});
|
|
216
143
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
144
|
+
0 > y && console.error(
|
|
145
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function d(e) {
|
|
149
|
+
if (V === void 0)
|
|
150
|
+
try {
|
|
151
|
+
throw Error();
|
|
152
|
+
} catch (t) {
|
|
153
|
+
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
+
V = r && r[1] || "", fe = -1 < t.stack.indexOf(`
|
|
155
|
+
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
+
}
|
|
157
|
+
return `
|
|
158
|
+
` + V + e + fe;
|
|
159
|
+
}
|
|
160
|
+
function E(e, r) {
|
|
161
|
+
if (!e || B) return "";
|
|
162
|
+
var t = G.get(e);
|
|
163
|
+
if (t !== void 0) return t;
|
|
164
|
+
B = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
+
var n = null;
|
|
166
|
+
n = _.H, _.H = null, u();
|
|
223
167
|
try {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(o.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
168
|
+
var i = {
|
|
169
|
+
DetermineComponentFrameRoot: function() {
|
|
233
170
|
try {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
171
|
+
if (r) {
|
|
172
|
+
var h = function() {
|
|
173
|
+
throw Error();
|
|
174
|
+
};
|
|
175
|
+
if (Object.defineProperty(h.prototype, "props", {
|
|
176
|
+
set: function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
}
|
|
179
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
+
try {
|
|
181
|
+
Reflect.construct(h, []);
|
|
182
|
+
} catch (m) {
|
|
183
|
+
var Y = m;
|
|
184
|
+
}
|
|
185
|
+
Reflect.construct(e, [], h);
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
h.call();
|
|
189
|
+
} catch (m) {
|
|
190
|
+
Y = m;
|
|
191
|
+
}
|
|
192
|
+
e.call(h.prototype);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (m) {
|
|
198
|
+
Y = m;
|
|
199
|
+
}
|
|
200
|
+
(h = e()) && typeof h.catch == "function" && h.catch(function() {
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} catch (m) {
|
|
204
|
+
if (m && Y && typeof m.stack == "string")
|
|
205
|
+
return [m.stack, Y.stack];
|
|
244
206
|
}
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (T) {
|
|
251
|
-
n = T;
|
|
207
|
+
return [null, null];
|
|
252
208
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
209
|
+
};
|
|
210
|
+
i.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
+
var s = Object.getOwnPropertyDescriptor(
|
|
212
|
+
i.DetermineComponentFrameRoot,
|
|
213
|
+
"name"
|
|
214
|
+
);
|
|
215
|
+
s && s.configurable && Object.defineProperty(
|
|
216
|
+
i.DetermineComponentFrameRoot,
|
|
217
|
+
"name",
|
|
218
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
+
);
|
|
220
|
+
var o = i.DetermineComponentFrameRoot(), b = o[0], w = o[1];
|
|
221
|
+
if (b && w) {
|
|
222
|
+
var l = b.split(`
|
|
223
|
+
`), x = w.split(`
|
|
224
|
+
`);
|
|
225
|
+
for (o = s = 0; s < l.length && !l[s].includes(
|
|
226
|
+
"DetermineComponentFrameRoot"
|
|
227
|
+
); )
|
|
228
|
+
s++;
|
|
229
|
+
for (; o < x.length && !x[o].includes(
|
|
230
|
+
"DetermineComponentFrameRoot"
|
|
231
|
+
); )
|
|
232
|
+
o++;
|
|
233
|
+
if (s === l.length || o === x.length)
|
|
234
|
+
for (s = l.length - 1, o = x.length - 1; 1 <= s && 0 <= o && l[s] !== x[o]; )
|
|
235
|
+
o--;
|
|
236
|
+
for (; 1 <= s && 0 <= o; s--, o--)
|
|
237
|
+
if (l[s] !== x[o]) {
|
|
238
|
+
if (s !== 1 || o !== 1)
|
|
264
239
|
do
|
|
265
|
-
if (s--,
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
|
|
240
|
+
if (s--, o--, 0 > o || l[s] !== x[o]) {
|
|
241
|
+
var R = `
|
|
242
|
+
` + l[s].replace(
|
|
243
|
+
" at new ",
|
|
244
|
+
" at "
|
|
245
|
+
);
|
|
246
|
+
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, R), R;
|
|
269
247
|
}
|
|
270
|
-
while (
|
|
248
|
+
while (1 <= s && 0 <= o);
|
|
271
249
|
break;
|
|
272
250
|
}
|
|
273
251
|
}
|
|
274
252
|
} finally {
|
|
275
|
-
|
|
253
|
+
B = !1, _.H = n, f(), Error.prepareStackTrace = t;
|
|
276
254
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
if (e ==
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return le(e, Be(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return Y(e);
|
|
255
|
+
return l = (l = e ? e.displayName || e.name : "") ? d(l) : "", typeof e == "function" && G.set(e, l), l;
|
|
256
|
+
}
|
|
257
|
+
function k(e) {
|
|
258
|
+
if (e == null) return "";
|
|
259
|
+
if (typeof e == "function") {
|
|
260
|
+
var r = e.prototype;
|
|
261
|
+
return E(
|
|
262
|
+
e,
|
|
263
|
+
!(!r || !r.isReactComponent)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
if (typeof e == "string") return d(e);
|
|
294
267
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
268
|
+
case F:
|
|
269
|
+
return d("Suspense");
|
|
270
|
+
case I:
|
|
271
|
+
return d("SuspenseList");
|
|
299
272
|
}
|
|
300
273
|
if (typeof e == "object")
|
|
301
274
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
|
|
275
|
+
case H:
|
|
276
|
+
return e = E(e.render, !1), e;
|
|
277
|
+
case L:
|
|
278
|
+
return k(e.type);
|
|
279
|
+
case q:
|
|
280
|
+
r = e._payload, e = e._init;
|
|
308
281
|
try {
|
|
309
|
-
return
|
|
282
|
+
return k(e(r));
|
|
310
283
|
} catch {
|
|
311
284
|
}
|
|
312
|
-
}
|
|
313
285
|
}
|
|
314
286
|
return "";
|
|
315
287
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
320
|
-
de.setExtraStackFrame(t);
|
|
321
|
-
} else
|
|
322
|
-
de.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function qe(e, r, t, n, i) {
|
|
325
|
-
{
|
|
326
|
-
var u = Function.call.bind(N);
|
|
327
|
-
for (var o in e)
|
|
328
|
-
if (u(e, o)) {
|
|
329
|
-
var a = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[o] != "function") {
|
|
332
|
-
var h = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw h.name = "Invariant Violation", h;
|
|
334
|
-
}
|
|
335
|
-
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (s) {
|
|
337
|
-
a = s;
|
|
338
|
-
}
|
|
339
|
-
a && !(a instanceof Error) && (V(i), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(i), p("Failed %s type: %s", t, a.message), V(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var He = Array.isArray;
|
|
344
|
-
function J(e) {
|
|
345
|
-
return He(e);
|
|
346
|
-
}
|
|
347
|
-
function Je(e) {
|
|
348
|
-
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return t;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function Ge(e) {
|
|
354
|
-
try {
|
|
355
|
-
return ve(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function ve(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function pe(e) {
|
|
364
|
-
if (Ge(e))
|
|
365
|
-
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ve(e);
|
|
366
|
-
}
|
|
367
|
-
var $ = k.ReactCurrentOwner, ze = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, he, Ee, G;
|
|
373
|
-
G = {};
|
|
374
|
-
function Ke(e) {
|
|
375
|
-
if (N.call(e, "ref")) {
|
|
376
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
|
-
if (r && r.isReactWarning)
|
|
378
|
-
return !1;
|
|
379
|
-
}
|
|
380
|
-
return e.ref !== void 0;
|
|
288
|
+
function p() {
|
|
289
|
+
var e = _.A;
|
|
290
|
+
return e === null ? null : e.getOwner();
|
|
381
291
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
292
|
+
function N(e) {
|
|
293
|
+
if (oe.call(e, "key")) {
|
|
384
294
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
|
-
if (r && r.isReactWarning)
|
|
386
|
-
return !1;
|
|
295
|
+
if (r && r.isReactWarning) return !1;
|
|
387
296
|
}
|
|
388
297
|
return e.key !== void 0;
|
|
389
298
|
}
|
|
390
|
-
function
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
299
|
+
function P(e, r) {
|
|
300
|
+
function t() {
|
|
301
|
+
de || (de = !0, console.error(
|
|
302
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
303
|
+
r
|
|
304
|
+
));
|
|
394
305
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
var t = function() {
|
|
410
|
-
Ee || (Ee = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
411
|
-
};
|
|
412
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
-
get: t,
|
|
414
|
-
configurable: !0
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
var rr = function(e, r, t, n, i, u, o) {
|
|
419
|
-
var a = {
|
|
420
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
-
$$typeof: d,
|
|
422
|
-
// Built-in properties that belong on the element
|
|
306
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
307
|
+
get: t,
|
|
308
|
+
configurable: !0
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
function M() {
|
|
312
|
+
var e = a(this.type);
|
|
313
|
+
return Ee[e] || (Ee[e] = !0, console.error(
|
|
314
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
315
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
316
|
+
}
|
|
317
|
+
function v(e, r, t, n, i, s) {
|
|
318
|
+
return t = s.ref, e = {
|
|
319
|
+
$$typeof: U,
|
|
423
320
|
type: e,
|
|
424
321
|
key: r,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
_owner: u
|
|
429
|
-
};
|
|
430
|
-
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
431
|
-
configurable: !1,
|
|
322
|
+
props: s,
|
|
323
|
+
_owner: i
|
|
324
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
432
325
|
enumerable: !1,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}), Object.defineProperty(a, "_self", {
|
|
326
|
+
get: M
|
|
327
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
436
328
|
configurable: !1,
|
|
437
329
|
enumerable: !1,
|
|
438
|
-
writable: !
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
330
|
+
writable: !0,
|
|
331
|
+
value: 0
|
|
332
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
441
333
|
configurable: !1,
|
|
442
334
|
enumerable: !1,
|
|
443
|
-
writable: !
|
|
444
|
-
value:
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
-
}
|
|
447
|
-
function
|
|
448
|
-
{
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
return rr(e, a, h, i, n, $.current, o);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
var z = k.ReactCurrentOwner, me = k.ReactDebugCurrentFrame;
|
|
466
|
-
function F(e) {
|
|
467
|
-
if (e) {
|
|
468
|
-
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
469
|
-
me.setExtraStackFrame(t);
|
|
335
|
+
writable: !0,
|
|
336
|
+
value: null
|
|
337
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
338
|
+
}
|
|
339
|
+
function j(e, r, t, n, i, s) {
|
|
340
|
+
if (typeof e == "string" || typeof e == "function" || e === W || e === D || e === Q || e === F || e === I || e === Se || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === L || e.$$typeof === re || e.$$typeof === ee || e.$$typeof === H || e.$$typeof === we || e.getModuleId !== void 0)) {
|
|
341
|
+
var o = r.children;
|
|
342
|
+
if (o !== void 0)
|
|
343
|
+
if (n)
|
|
344
|
+
if (z(o)) {
|
|
345
|
+
for (n = 0; n < o.length; n++)
|
|
346
|
+
Z(o[n], e);
|
|
347
|
+
Object.freeze && Object.freeze(o);
|
|
348
|
+
} else
|
|
349
|
+
console.error(
|
|
350
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
351
|
+
);
|
|
352
|
+
else Z(o, e);
|
|
470
353
|
} else
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
var be = {};
|
|
494
|
-
function ar(e) {
|
|
495
|
-
{
|
|
496
|
-
var r = ge();
|
|
497
|
-
if (!r) {
|
|
498
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
|
-
t && (r = `
|
|
500
|
-
|
|
501
|
-
Check the top-level render call using <` + t + ">.");
|
|
502
|
-
}
|
|
503
|
-
return r;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
function Re(e, r) {
|
|
507
|
-
{
|
|
508
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
509
|
-
return;
|
|
510
|
-
e._store.validated = !0;
|
|
511
|
-
var t = ar(r);
|
|
512
|
-
if (be[t])
|
|
513
|
-
return;
|
|
514
|
-
be[t] = !0;
|
|
515
|
-
var n = "";
|
|
516
|
-
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + C(e._owner.type) + "."), F(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
|
|
354
|
+
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : z(e) ? n = "array" : e !== void 0 && e.$$typeof === U ? (n = "<" + (a(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
|
|
355
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
356
|
+
n,
|
|
357
|
+
o
|
|
358
|
+
);
|
|
359
|
+
if (oe.call(r, "key")) {
|
|
360
|
+
o = a(e);
|
|
361
|
+
var b = Object.keys(r).filter(function(l) {
|
|
362
|
+
return l !== "key";
|
|
363
|
+
});
|
|
364
|
+
n = 0 < b.length ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}", ve[o + n] || (b = 0 < b.length ? "{" + b.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
366
|
+
let props = %s;
|
|
367
|
+
<%s {...props} />
|
|
368
|
+
React keys must be passed directly to JSX without using spread:
|
|
369
|
+
let props = %s;
|
|
370
|
+
<%s key={someKey} {...props} />`,
|
|
371
|
+
n,
|
|
372
|
+
o,
|
|
373
|
+
b,
|
|
374
|
+
o
|
|
375
|
+
), ve[o + n] = !0);
|
|
517
376
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
377
|
+
if (o = null, t !== void 0 && (g(t), o = "" + t), N(r) && (g(r.key), o = "" + r.key), "key" in r) {
|
|
378
|
+
t = {};
|
|
379
|
+
for (var w in r)
|
|
380
|
+
w !== "key" && (t[w] = r[w]);
|
|
381
|
+
} else t = r;
|
|
382
|
+
return o && P(
|
|
383
|
+
t,
|
|
384
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
385
|
+
), v(e, o, s, i, p(), t);
|
|
386
|
+
}
|
|
387
|
+
function Z(e, r) {
|
|
388
|
+
if (typeof e == "object" && e && e.$$typeof !== je) {
|
|
389
|
+
if (z(e))
|
|
524
390
|
for (var t = 0; t < e.length; t++) {
|
|
525
391
|
var n = e[t];
|
|
526
|
-
|
|
527
|
-
}
|
|
528
|
-
else if (X(e))
|
|
529
|
-
e._store && (e._store.validated = !0);
|
|
530
|
-
else if (e) {
|
|
531
|
-
var i = ke(e);
|
|
532
|
-
if (typeof i == "function" && i !== e.entries)
|
|
533
|
-
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
534
|
-
X(o.value) && Re(o.value, r);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function or(e) {
|
|
539
|
-
{
|
|
540
|
-
var r = e.type;
|
|
541
|
-
if (r == null || typeof r == "string")
|
|
542
|
-
return;
|
|
543
|
-
var t;
|
|
544
|
-
if (typeof r == "function")
|
|
545
|
-
t = r.propTypes;
|
|
546
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
547
|
-
// Inner props are checked in the reconciler.
|
|
548
|
-
r.$$typeof === E))
|
|
549
|
-
t = r.propTypes;
|
|
550
|
-
else
|
|
551
|
-
return;
|
|
552
|
-
if (t) {
|
|
553
|
-
var n = C(r);
|
|
554
|
-
qe(t, e.props, "prop", n, e);
|
|
555
|
-
} else if (r.PropTypes !== void 0 && !K) {
|
|
556
|
-
K = !0;
|
|
557
|
-
var i = C(r);
|
|
558
|
-
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
559
|
-
}
|
|
560
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
function ir(e) {
|
|
564
|
-
{
|
|
565
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
566
|
-
var n = r[t];
|
|
567
|
-
if (n !== "children" && n !== "key") {
|
|
568
|
-
F(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
|
|
569
|
-
break;
|
|
392
|
+
$(n) && K(n, r);
|
|
570
393
|
}
|
|
571
|
-
|
|
572
|
-
|
|
394
|
+
else if ($(e))
|
|
395
|
+
e._store && (e._store.validated = 1);
|
|
396
|
+
else if (e === null || typeof e != "object" ? t = null : (t = te && e[te] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
397
|
+
for (; !(e = t.next()).done; )
|
|
398
|
+
$(e.value) && K(e.value, r);
|
|
573
399
|
}
|
|
574
400
|
}
|
|
575
|
-
function
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
if (n)
|
|
593
|
-
if (J(g)) {
|
|
594
|
-
for (var D = 0; D < g.length; D++)
|
|
595
|
-
_e(g[D], e);
|
|
596
|
-
Object.freeze && Object.freeze(g);
|
|
597
|
-
} else
|
|
598
|
-
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
|
-
else
|
|
600
|
-
_e(g, e);
|
|
601
|
-
}
|
|
602
|
-
return e === S ? ir(c) : or(c), c;
|
|
401
|
+
function $(e) {
|
|
402
|
+
return typeof e == "object" && e !== null && e.$$typeof === U;
|
|
403
|
+
}
|
|
404
|
+
function K(e, r) {
|
|
405
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ce(r), !be[r])) {
|
|
406
|
+
be[r] = !0;
|
|
407
|
+
var t = "";
|
|
408
|
+
e && e._owner != null && e._owner !== p() && (t = null, typeof e._owner.tag == "number" ? t = a(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
409
|
+
var n = _.getCurrentStack;
|
|
410
|
+
_.getCurrentStack = function() {
|
|
411
|
+
var i = k(e.type);
|
|
412
|
+
return n && (i += n() || ""), i;
|
|
413
|
+
}, console.error(
|
|
414
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
+
r,
|
|
416
|
+
t
|
|
417
|
+
), _.getCurrentStack = n;
|
|
603
418
|
}
|
|
604
419
|
}
|
|
605
|
-
function
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
420
|
+
function Ce(e) {
|
|
421
|
+
var r = "", t = p();
|
|
422
|
+
return t && (t = a(t.type)) && (r = `
|
|
423
|
+
|
|
424
|
+
Check the render method of \`` + t + "`."), r || (e = a(e)) && (r = `
|
|
425
|
+
|
|
426
|
+
Check the top-level render call using <` + e + ">."), r;
|
|
427
|
+
}
|
|
428
|
+
var xe = ye, U = Symbol.for("react.transitional.element"), Te = Symbol.for("react.portal"), W = Symbol.for("react.fragment"), Q = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), re = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), Se = Symbol.for("react.offscreen"), te = Symbol.iterator, ke = Symbol.for("react.client.reference"), _ = xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, oe = Object.prototype.hasOwnProperty, C = Object.assign, we = Symbol.for("react.client.reference"), z = Array.isArray, y = 0, ne, ae, se, ue, ce, ie, le;
|
|
429
|
+
S.__reactDisabledLog = !0;
|
|
430
|
+
var V, fe, B = !1, G = new (typeof WeakMap == "function" ? WeakMap : Map)(), je = Symbol.for("react.client.reference"), de, Ee = {}, ve = {}, be = {};
|
|
431
|
+
O.Fragment = W, O.jsx = function(e, r, t, n, i) {
|
|
432
|
+
return j(e, r, t, !1, n, i);
|
|
433
|
+
}, O.jsxs = function(e, r, t, n, i) {
|
|
434
|
+
return j(e, r, t, !0, n, i);
|
|
435
|
+
};
|
|
436
|
+
}()), O;
|
|
614
437
|
}
|
|
615
|
-
process.env.NODE_ENV === "production" ?
|
|
616
|
-
var
|
|
617
|
-
const
|
|
438
|
+
process.env.NODE_ENV === "production" ? X.exports = Ne() : X.exports = Pe();
|
|
439
|
+
var T = X.exports;
|
|
440
|
+
const pe = ({ children: a }) => /* @__PURE__ */ T.jsxs("div", { children: [
|
|
618
441
|
"Error loading Helio Checkout for React",
|
|
619
|
-
|
|
442
|
+
a ? `: ${a}` : ""
|
|
620
443
|
] });
|
|
621
|
-
class
|
|
622
|
-
constructor(
|
|
623
|
-
super(
|
|
444
|
+
class Ye extends Re {
|
|
445
|
+
constructor(c) {
|
|
446
|
+
super(c), this.state = { hasError: !1 };
|
|
624
447
|
}
|
|
625
448
|
static getDerivedStateFromError() {
|
|
626
449
|
return { hasError: !0 };
|
|
627
450
|
}
|
|
628
451
|
render() {
|
|
629
|
-
return this.state.hasError ? /* @__PURE__ */
|
|
452
|
+
return this.state.hasError ? /* @__PURE__ */ T.jsx(pe, {}) : this.props.children;
|
|
630
453
|
}
|
|
631
454
|
}
|
|
632
|
-
const
|
|
633
|
-
const
|
|
634
|
-
return
|
|
635
|
-
},
|
|
636
|
-
const
|
|
637
|
-
return
|
|
638
|
-
let
|
|
639
|
-
if (
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
642
|
-
const
|
|
643
|
-
if (!
|
|
644
|
-
|
|
455
|
+
const Me = "https://embed.hel.io/assets/index-v1.js", _e = "helio-checkout-react-v1", $e = (a = Me) => {
|
|
456
|
+
const c = document.createElement("script");
|
|
457
|
+
return c.setAttribute("type", "module"), c.setAttribute("id", _e), c.setAttribute("src", a), document.body.appendChild(c), c;
|
|
458
|
+
}, Ue = ({ config: a }) => {
|
|
459
|
+
const c = Ae(null), [g, S] = J(!1), [u, f] = J(), [d, E] = J("");
|
|
460
|
+
return me(() => S(!0), []), me(() => {
|
|
461
|
+
let k = !1;
|
|
462
|
+
if (u) return;
|
|
463
|
+
const p = () => {
|
|
464
|
+
if (k) return;
|
|
465
|
+
const v = window.helioCheckout;
|
|
466
|
+
if (!v) {
|
|
467
|
+
E(
|
|
645
468
|
"Unable to load helio checkout - missing init function on window.helioCheckout"
|
|
646
469
|
);
|
|
647
470
|
return;
|
|
648
471
|
}
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
const
|
|
652
|
-
return
|
|
653
|
-
|
|
472
|
+
f(() => v);
|
|
473
|
+
}, N = (v) => {
|
|
474
|
+
const j = () => E("Error loading script tag");
|
|
475
|
+
return v.addEventListener("load", p), v.addEventListener("error", j), () => {
|
|
476
|
+
k = !0, v.removeEventListener("load", p), v.removeEventListener("error", j);
|
|
654
477
|
};
|
|
655
|
-
},
|
|
656
|
-
`script#${
|
|
478
|
+
}, P = document.querySelector(
|
|
479
|
+
`script#${_e}`
|
|
657
480
|
);
|
|
658
|
-
if (
|
|
659
|
-
window.helioCheckout ?
|
|
481
|
+
if (P) {
|
|
482
|
+
window.helioCheckout ? p() : N(P);
|
|
660
483
|
return;
|
|
661
484
|
}
|
|
662
|
-
const
|
|
663
|
-
return
|
|
664
|
-
}, [
|
|
665
|
-
if (!(!
|
|
666
|
-
if (!
|
|
667
|
-
|
|
485
|
+
const M = $e(a.embedScriptSource);
|
|
486
|
+
return N(M);
|
|
487
|
+
}, [u, a.embedScriptSource]), Oe(() => {
|
|
488
|
+
if (!(!u || !g)) {
|
|
489
|
+
if (!c.current) {
|
|
490
|
+
E("Missing element to mount Helio checkout");
|
|
668
491
|
return;
|
|
669
492
|
}
|
|
670
|
-
|
|
493
|
+
u(c.current, a);
|
|
671
494
|
}
|
|
672
|
-
}, [
|
|
673
|
-
},
|
|
495
|
+
}, [u, g, a]), d ? /* @__PURE__ */ T.jsx(pe, { children: d }) : u ? /* @__PURE__ */ T.jsx("div", { ref: c }) : null;
|
|
496
|
+
}, We = (a) => /* @__PURE__ */ T.jsx(Ye, { children: /* @__PURE__ */ T.jsx(Ue, { config: a.config }) }), Fe = (a) => /* @__PURE__ */ T.jsx(We, { config: a.config });
|
|
674
497
|
export {
|
|
675
|
-
|
|
498
|
+
Fe as HelioCheckout
|
|
676
499
|
};
|
|
@@ -1,25 +1,31 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],f):(_=typeof globalThis<"u"?globalThis:_||self,f(_["react-library-scaffold"]={},_.React))})(this,function(_,f){"use strict";var W={exports:{}},R={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Q;function Ce(){if(Q)return R;Q=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function h(j,u,d){var E=null;if(d!==void 0&&(E=""+d),u.key!==void 0&&(E=""+u.key),"key"in u){d={};for(var v in u)v!=="key"&&(d[v]=u[v])}else d=u;return u=d.ref,{$$typeof:a,type:j,key:E,ref:u!==void 0?u:null,props:d}}return R.Fragment=c,R.jsx=h,R.jsxs=h,R}var O={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
`),
|
|
21
|
-
|
|
17
|
+
*/var q;function Te(){return q||(q=1,process.env.NODE_ENV!=="production"&&function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case Ae:return"Portal";case ne:return"Profiler";case oe:return"StrictMode";case V:return"Suspense";case B:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case se:return(e.displayName||"Context")+".Provider";case ae:return(e._context.displayName||"Context")+".Consumer";case z:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case J:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function c(e){return""+e}function h(e){try{c(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),c(e)}}function j(){}function u(){if(N===0){ie=console.log,le=console.info,fe=console.warn,de=console.error,Ee=console.group,ve=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}function d(){if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},e,{value:ie}),info:x({},e,{value:le}),warn:x({},e,{value:fe}),error:x({},e,{value:de}),group:x({},e,{value:Ee}),groupCollapsed:x({},e,{value:ve}),groupEnd:x({},e,{value:be})})}0>N&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function E(e){if(Z===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);Z=r&&r[1]||"",me=-1<t.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+Z+e+me}function v(e,r){if(!e||$)return"";var t=K.get(e);if(t!==void 0)return t;$=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=S.H,S.H=null,u();try{var i={DetermineComponentFrameRoot:function(){try{if(r){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(g){var U=g}Reflect.construct(e,[],p)}else{try{p.call()}catch(g){U=g}e.call(p.prototype)}}else{try{throw Error()}catch(g){U=g}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(g){if(g&&U&&typeof g.stack=="string")return[g.stack,U.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),m=o[0],w=o[1];if(m&&w){var l=m.split(`
|
|
20
|
+
`),y=w.split(`
|
|
21
|
+
`);for(o=s=0;s<l.length&&!l[s].includes("DetermineComponentFrameRoot");)s++;for(;o<y.length&&!y[o].includes("DetermineComponentFrameRoot");)o++;if(s===l.length||o===y.length)for(s=l.length-1,o=y.length-1;1<=s&&0<=o&&l[s]!==y[o];)o--;for(;1<=s&&0<=o;s--,o--)if(l[s]!==y[o]){if(s!==1||o!==1)do if(s--,o--,0>o||l[s]!==y[o]){var P=`
|
|
22
|
+
`+l[s].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,P),P}while(1<=s&&0<=o);break}}}finally{$=!1,S.H=n,d(),Error.prepareStackTrace=t}return l=(l=e?e.displayName||e.name:"")?E(l):"",typeof e=="function"&&K.set(e,l),l}function k(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return v(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return E(e);switch(e){case V:return E("Suspense");case B:return E("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case z:return e=v(e.render,!1),e;case G:return k(e.type);case J:r=e._payload,e=e._init;try{return k(e(r))}catch{}}return""}function T(){var e=S.A;return e===null?null:e.getOwner()}function M(e){if(ce.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Y(e,r){function t(){ge||(ge=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function H(){var e=a(this.type);return he[e]||(he[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function b(e,r,t,n,i,s){return t=s.ref,e={$$typeof:I,type:e,key:r,props:s,_owner:i},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:H}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function A(e,r,t,n,i,s){if(typeof e=="string"||typeof e=="function"||e===L||e===ne||e===oe||e===V||e===B||e===Ne||typeof e=="object"&&e!==null&&(e.$$typeof===J||e.$$typeof===G||e.$$typeof===se||e.$$typeof===ae||e.$$typeof===z||e.$$typeof===Me||e.getModuleId!==void 0)){var o=r.children;if(o!==void 0)if(n)if(X(o)){for(n=0;n<o.length;n++)re(o[n],e);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else re(o,e)}else o="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":X(e)?n="array":e!==void 0&&e.$$typeof===I?(n="<"+(a(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",n,o);if(ce.call(r,"key")){o=a(e);var m=Object.keys(r).filter(function(l){return l!=="key"});n=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",pe[o+n]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
|
+
let props = %s;
|
|
24
|
+
<%s {...props} />
|
|
25
|
+
React keys must be passed directly to JSX without using spread:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s key={someKey} {...props} />`,n,o,m,o),pe[o+n]=!0)}if(o=null,t!==void 0&&(h(t),o=""+t),M(r)&&(h(r.key),o=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return o&&Y(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),b(e,o,s,i,T(),t)}function re(e,r){if(typeof e=="object"&&e&&e.$$typeof!==Ye){if(X(e))for(var t=0;t<e.length;t++){var n=e[t];F(n)&&te(n,r)}else if(F(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?t=null:(t=ue&&e[ue]||e["@@iterator"],t=typeof t=="function"?t:null),typeof t=="function"&&t!==e.entries&&(t=t.call(e),t!==e))for(;!(e=t.next()).done;)F(e.value)&&te(e.value,r)}}function F(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}function te(e,r){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,r=Re(r),!_e[r])){_e[r]=!0;var t="";e&&e._owner!=null&&e._owner!==T()&&(t=null,typeof e._owner.tag=="number"?t=a(e._owner.type):typeof e._owner.name=="string"&&(t=e._owner.name),t=" It was passed a child from "+t+".");var n=S.getCurrentStack;S.getCurrentStack=function(){var i=k(e.type);return n&&(i+=n()||""),i},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,t),S.getCurrentStack=n}}function Re(e){var r="",t=T();return t&&(t=a(t.type))&&(r=`
|
|
22
28
|
|
|
23
|
-
Check the render method of \``+
|
|
29
|
+
Check the render method of \``+t+"`."),r||(e=a(e))&&(r=`
|
|
24
30
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
31
|
+
Check the top-level render call using <`+e+">."),r}var Oe=f,I=Symbol.for("react.transitional.element"),Ae=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),se=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),ue=Symbol.iterator,Pe=Symbol.for("react.client.reference"),S=Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,x=Object.assign,Me=Symbol.for("react.client.reference"),X=Array.isArray,N=0,ie,le,fe,de,Ee,ve,be;j.__reactDisabledLog=!0;var Z,me,$=!1,K=new(typeof WeakMap=="function"?WeakMap:Map),Ye=Symbol.for("react.client.reference"),ge,he={},pe={},_e={};O.Fragment=L,O.jsx=function(e,r,t,n,i){return A(e,r,t,!1,n,i)},O.jsxs=function(e,r,t,n,i){return A(e,r,t,!0,n,i)}}()),O}process.env.NODE_ENV==="production"?W.exports=Ce():W.exports=Te();var C=W.exports;const D=({children:a})=>C.jsxs("div",{children:["Error loading Helio Checkout for React",a?`: ${a}`:""]});class Se extends f.Component{constructor(c){super(c),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?C.jsx(D,{}):this.props.children}}const xe="https://embed.hel.io/assets/index-v1.js",ee="helio-checkout-react-v1",ye=(a=xe)=>{const c=document.createElement("script");return c.setAttribute("type","module"),c.setAttribute("id",ee),c.setAttribute("src",a),document.body.appendChild(c),c},je=({config:a})=>{const c=f.useRef(null),[h,j]=f.useState(!1),[u,d]=f.useState(),[E,v]=f.useState("");return f.useEffect(()=>j(!0),[]),f.useEffect(()=>{let k=!1;if(u)return;const T=()=>{if(k)return;const b=window.helioCheckout;if(!b){v("Unable to load helio checkout - missing init function on window.helioCheckout");return}d(()=>b)},M=b=>{const A=()=>v("Error loading script tag");return b.addEventListener("load",T),b.addEventListener("error",A),()=>{k=!0,b.removeEventListener("load",T),b.removeEventListener("error",A)}},Y=document.querySelector(`script#${ee}`);if(Y){window.helioCheckout?T():M(Y);return}const H=ye(a.embedScriptSource);return M(H)},[u,a.embedScriptSource]),f.useLayoutEffect(()=>{if(!(!u||!h)){if(!c.current){v("Missing element to mount Helio checkout");return}u(c.current,a)}},[u,h,a]),E?C.jsx(D,{children:E}):u?C.jsx("div",{ref:c}):null},ke=a=>C.jsx(Se,{children:C.jsx(je,{config:a.config})}),we=a=>C.jsx(ke,{config:a.config});_.HelioCheckout=we,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heliofi/checkout-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"dist/helio-checkout-react.umd.js"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"react": "^
|
|
37
|
-
"react-dom": "^
|
|
36
|
+
"react": "^19",
|
|
37
|
+
"react-dom": "^19"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@testing-library/dom": "^9.3.3",
|
|
41
41
|
"@testing-library/jest-dom": "5.16.5",
|
|
42
42
|
"@testing-library/react": "^14.0.0",
|
|
43
|
-
"@types/react": "
|
|
44
|
-
"@types/react-dom": "
|
|
43
|
+
"@types/react": "^19",
|
|
44
|
+
"@types/react-dom": "^19",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
46
46
|
"@typescript-eslint/parser": "^6.0.0",
|
|
47
47
|
"@vitejs/plugin-react": "^4.3.2",
|