@heliofi/checkout-react 3.0.0 → 4.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.
- package/README.md +1 -1
- package/dist/helio-checkout-react.es.d.ts +12 -4
- package/dist/helio-checkout-react.es.js +572 -395
- package/dist/helio-checkout-react.umd.js +12 -18
- package/package.json +8 -7
|
@@ -1,499 +1,676 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import we, { Component as fr, useRef as dr, useState as Z, useEffect as Te, useLayoutEffect as vr } from "react";
|
|
2
|
+
var Q = { exports: {} }, L = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.js
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its 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
|
-
|
|
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
|
-
};
|
|
12
|
+
var Se;
|
|
13
|
+
function pr() {
|
|
14
|
+
if (Se) return L;
|
|
15
|
+
Se = 1;
|
|
16
|
+
var l = we, d = Symbol.for("react.element"), P = Symbol.for("react.fragment"), S = Object.prototype.hasOwnProperty, b = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function O(R, f, _) {
|
|
18
|
+
var v, E = {}, y = null, m = null;
|
|
19
|
+
_ !== void 0 && (y = "" + _), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (m = f.ref);
|
|
20
|
+
for (v in f) S.call(f, v) && !j.hasOwnProperty(v) && (E[v] = f[v]);
|
|
21
|
+
if (R && R.defaultProps) for (v in f = R.defaultProps, f) E[v] === void 0 && (E[v] = f[v]);
|
|
22
|
+
return { $$typeof: d, type: R, key: y, ref: m, props: E, _owner: b.current };
|
|
31
23
|
}
|
|
32
|
-
return
|
|
24
|
+
return L.Fragment = P, L.jsx = O, L.jsxs = O, L;
|
|
33
25
|
}
|
|
34
|
-
var
|
|
26
|
+
var W = {};
|
|
35
27
|
/**
|
|
36
28
|
* @license React
|
|
37
29
|
* react-jsx-runtime.development.js
|
|
38
30
|
*
|
|
39
|
-
* Copyright (c)
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
32
|
*
|
|
41
33
|
* This source code is licensed under the MIT license found in the
|
|
42
34
|
* LICENSE file in the root directory of this source tree.
|
|
43
35
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (typeof e
|
|
50
|
-
return
|
|
51
|
-
|
|
36
|
+
var Oe;
|
|
37
|
+
function hr() {
|
|
38
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var l = we, d = Symbol.for("react.element"), P = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), R = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), A = Symbol.iterator, je = "@@iterator";
|
|
40
|
+
function ke(e) {
|
|
41
|
+
if (e === null || typeof e != "object")
|
|
42
|
+
return null;
|
|
43
|
+
var r = A && e[A] || e[je];
|
|
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;
|
|
52
90
|
switch (e) {
|
|
53
|
-
case
|
|
91
|
+
case S:
|
|
54
92
|
return "Fragment";
|
|
55
|
-
case
|
|
93
|
+
case P:
|
|
56
94
|
return "Portal";
|
|
57
|
-
case
|
|
95
|
+
case j:
|
|
58
96
|
return "Profiler";
|
|
59
|
-
case
|
|
97
|
+
case b:
|
|
60
98
|
return "StrictMode";
|
|
61
|
-
case
|
|
99
|
+
case _:
|
|
62
100
|
return "Suspense";
|
|
63
|
-
case
|
|
101
|
+
case v:
|
|
64
102
|
return "SuspenseList";
|
|
65
103
|
}
|
|
66
104
|
if (typeof e == "object")
|
|
67
|
-
switch (typeof
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return (
|
|
74
|
-
case
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return
|
|
79
|
-
case
|
|
80
|
-
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case R:
|
|
107
|
+
var r = e;
|
|
108
|
+
return re(r) + ".Consumer";
|
|
109
|
+
case O:
|
|
110
|
+
var t = e;
|
|
111
|
+
return re(t._context) + ".Provider";
|
|
112
|
+
case f:
|
|
113
|
+
return Ye(e, e.render, "ForwardRef");
|
|
114
|
+
case E:
|
|
115
|
+
var n = e.displayName || null;
|
|
116
|
+
return n !== null ? n : C(e.type) || "Memo";
|
|
117
|
+
case y: {
|
|
118
|
+
var i = e, u = i._payload, o = i._init;
|
|
81
119
|
try {
|
|
82
|
-
return
|
|
120
|
+
return C(o(u));
|
|
83
121
|
} catch {
|
|
122
|
+
return null;
|
|
84
123
|
}
|
|
124
|
+
}
|
|
85
125
|
}
|
|
86
126
|
return null;
|
|
87
127
|
}
|
|
88
|
-
|
|
89
|
-
|
|
128
|
+
var w = Object.assign, I = 0, te, ne, ae, oe, ie, ue, se;
|
|
129
|
+
function ce() {
|
|
90
130
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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++;
|
|
106
153
|
}
|
|
107
154
|
}
|
|
108
|
-
function
|
|
155
|
+
function Ue() {
|
|
156
|
+
{
|
|
157
|
+
if (I--, I === 0) {
|
|
158
|
+
var e = {
|
|
159
|
+
configurable: !0,
|
|
160
|
+
enumerable: !0,
|
|
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.");
|
|
188
|
+
}
|
|
109
189
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
warn: e,
|
|
123
|
-
error: e,
|
|
124
|
-
group: e,
|
|
125
|
-
groupCollapsed: e,
|
|
126
|
-
groupEnd: e
|
|
127
|
-
});
|
|
190
|
+
var B = k.ReactCurrentDispatcher, q;
|
|
191
|
+
function Y(e, r, t) {
|
|
192
|
+
{
|
|
193
|
+
if (q === void 0)
|
|
194
|
+
try {
|
|
195
|
+
throw Error();
|
|
196
|
+
} catch (i) {
|
|
197
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
q = n && n[1] || "";
|
|
199
|
+
}
|
|
200
|
+
return `
|
|
201
|
+
` + q + e;
|
|
128
202
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
});
|
|
203
|
+
}
|
|
204
|
+
var H = !1, M;
|
|
205
|
+
{
|
|
206
|
+
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
M = new Ne();
|
|
208
|
+
}
|
|
209
|
+
function le(e, r) {
|
|
210
|
+
if (!e || H)
|
|
211
|
+
return "";
|
|
212
|
+
{
|
|
213
|
+
var t = M.get(e);
|
|
214
|
+
if (t !== void 0)
|
|
215
|
+
return t;
|
|
143
216
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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();
|
|
217
|
+
var n;
|
|
218
|
+
H = !0;
|
|
219
|
+
var i = Error.prepareStackTrace;
|
|
220
|
+
Error.prepareStackTrace = void 0;
|
|
221
|
+
var u;
|
|
222
|
+
u = B.current, B.current = null, Me();
|
|
167
223
|
try {
|
|
168
|
-
|
|
169
|
-
|
|
224
|
+
if (r) {
|
|
225
|
+
var o = function() {
|
|
226
|
+
throw Error();
|
|
227
|
+
};
|
|
228
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
229
|
+
set: function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
}
|
|
232
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
170
233
|
try {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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];
|
|
234
|
+
Reflect.construct(o, []);
|
|
235
|
+
} catch (T) {
|
|
236
|
+
n = T;
|
|
206
237
|
}
|
|
207
|
-
|
|
238
|
+
Reflect.construct(e, [], o);
|
|
239
|
+
} else {
|
|
240
|
+
try {
|
|
241
|
+
o.call();
|
|
242
|
+
} catch (T) {
|
|
243
|
+
n = T;
|
|
244
|
+
}
|
|
245
|
+
e.call(o.prototype);
|
|
208
246
|
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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)
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
throw Error();
|
|
250
|
+
} catch (T) {
|
|
251
|
+
n = T;
|
|
252
|
+
}
|
|
253
|
+
e();
|
|
254
|
+
}
|
|
255
|
+
} catch (T) {
|
|
256
|
+
if (T && n && typeof T.stack == "string") {
|
|
257
|
+
for (var a = T.stack.split(`
|
|
258
|
+
`), h = n.stack.split(`
|
|
259
|
+
`), s = a.length - 1, c = h.length - 1; s >= 1 && c >= 0 && a[s] !== h[c]; )
|
|
260
|
+
c--;
|
|
261
|
+
for (; s >= 1 && c >= 0; s--, c--)
|
|
262
|
+
if (a[s] !== h[c]) {
|
|
263
|
+
if (s !== 1 || c !== 1)
|
|
239
264
|
do
|
|
240
|
-
if (s--,
|
|
241
|
-
var
|
|
242
|
-
` +
|
|
243
|
-
|
|
244
|
-
" at "
|
|
245
|
-
);
|
|
246
|
-
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, R), R;
|
|
265
|
+
if (s--, c--, c < 0 || a[s] !== h[c]) {
|
|
266
|
+
var g = `
|
|
267
|
+
` + a[s].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, g), g;
|
|
247
269
|
}
|
|
248
|
-
while (
|
|
270
|
+
while (s >= 1 && c >= 0);
|
|
249
271
|
break;
|
|
250
272
|
}
|
|
251
273
|
}
|
|
252
274
|
} finally {
|
|
253
|
-
|
|
275
|
+
H = !1, B.current = u, Ue(), Error.prepareStackTrace = i;
|
|
254
276
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
if (
|
|
277
|
+
var D = e ? e.displayName || e.name : "", Ce = D ? Y(D) : "";
|
|
278
|
+
return typeof e == "function" && M.set(e, Ce), Ce;
|
|
279
|
+
}
|
|
280
|
+
function Ve(e, r, t) {
|
|
281
|
+
return le(e, !1);
|
|
282
|
+
}
|
|
283
|
+
function Be(e) {
|
|
284
|
+
var r = e.prototype;
|
|
285
|
+
return !!(r && r.isReactComponent);
|
|
286
|
+
}
|
|
287
|
+
function U(e, r, t) {
|
|
288
|
+
if (e == null)
|
|
289
|
+
return "";
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return le(e, Be(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return Y(e);
|
|
267
294
|
switch (e) {
|
|
268
|
-
case
|
|
269
|
-
return
|
|
270
|
-
case
|
|
271
|
-
return
|
|
295
|
+
case _:
|
|
296
|
+
return Y("Suspense");
|
|
297
|
+
case v:
|
|
298
|
+
return Y("SuspenseList");
|
|
272
299
|
}
|
|
273
300
|
if (typeof e == "object")
|
|
274
301
|
switch (e.$$typeof) {
|
|
275
|
-
case
|
|
276
|
-
return
|
|
277
|
-
case
|
|
278
|
-
return
|
|
279
|
-
case
|
|
280
|
-
|
|
302
|
+
case f:
|
|
303
|
+
return Ve(e.render);
|
|
304
|
+
case E:
|
|
305
|
+
return U(e.type, r, t);
|
|
306
|
+
case y: {
|
|
307
|
+
var n = e, i = n._payload, u = n._init;
|
|
281
308
|
try {
|
|
282
|
-
return
|
|
309
|
+
return U(u(i), r, t);
|
|
283
310
|
} catch {
|
|
284
311
|
}
|
|
312
|
+
}
|
|
285
313
|
}
|
|
286
314
|
return "";
|
|
287
315
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
316
|
+
var N = Object.prototype.hasOwnProperty, fe = {}, de = k.ReactDebugCurrentFrame;
|
|
317
|
+
function V(e) {
|
|
318
|
+
if (e) {
|
|
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;
|
|
291
381
|
}
|
|
292
|
-
function
|
|
293
|
-
if (
|
|
382
|
+
function Xe(e) {
|
|
383
|
+
if (N.call(e, "key")) {
|
|
294
384
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
295
|
-
if (r && r.isReactWarning)
|
|
385
|
+
if (r && r.isReactWarning)
|
|
386
|
+
return !1;
|
|
296
387
|
}
|
|
297
388
|
return e.key !== void 0;
|
|
298
389
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
r
|
|
304
|
-
));
|
|
390
|
+
function Ze(e, r) {
|
|
391
|
+
if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
|
|
392
|
+
var t = C($.current.type);
|
|
393
|
+
G[t] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C($.current.type), e.ref), G[t] = !0);
|
|
305
394
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
395
|
+
}
|
|
396
|
+
function Qe(e, r) {
|
|
397
|
+
{
|
|
398
|
+
var t = function() {
|
|
399
|
+
he || (he = !0, p("%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://reactjs.org/link/special-props)", r));
|
|
400
|
+
};
|
|
401
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
+
get: t,
|
|
403
|
+
configurable: !0
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
function er(e, r) {
|
|
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
|
|
320
423
|
type: e,
|
|
321
424
|
key: r,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
425
|
+
ref: t,
|
|
426
|
+
props: o,
|
|
427
|
+
// Record the component responsible for creating this element.
|
|
428
|
+
_owner: u
|
|
429
|
+
};
|
|
430
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
328
431
|
configurable: !1,
|
|
329
432
|
enumerable: !1,
|
|
330
433
|
writable: !0,
|
|
331
|
-
value:
|
|
332
|
-
}), Object.defineProperty(
|
|
434
|
+
value: !1
|
|
435
|
+
}), Object.defineProperty(a, "_self", {
|
|
333
436
|
configurable: !1,
|
|
334
437
|
enumerable: !1,
|
|
335
|
-
writable: !
|
|
336
|
-
value:
|
|
337
|
-
}), Object.
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
438
|
+
writable: !1,
|
|
439
|
+
value: n
|
|
440
|
+
}), Object.defineProperty(a, "_source", {
|
|
441
|
+
configurable: !1,
|
|
442
|
+
enumerable: !1,
|
|
443
|
+
writable: !1,
|
|
444
|
+
value: i
|
|
445
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
446
|
+
};
|
|
447
|
+
function tr(e, r, t, n, i) {
|
|
448
|
+
{
|
|
449
|
+
var u, o = {}, a = null, h = null;
|
|
450
|
+
t !== void 0 && (pe(t), a = "" + t), Xe(r) && (pe(r.key), a = "" + r.key), Ke(r) && (h = r.ref, Ze(r, i));
|
|
451
|
+
for (u in r)
|
|
452
|
+
N.call(r, u) && !ze.hasOwnProperty(u) && (o[u] = r[u]);
|
|
453
|
+
if (e && e.defaultProps) {
|
|
454
|
+
var s = e.defaultProps;
|
|
455
|
+
for (u in s)
|
|
456
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
457
|
+
}
|
|
458
|
+
if (a || h) {
|
|
459
|
+
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
+
a && Qe(o, c), h && er(o, c);
|
|
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);
|
|
353
470
|
} else
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
471
|
+
me.setExtraStackFrame(null);
|
|
472
|
+
}
|
|
473
|
+
var K;
|
|
474
|
+
K = !1;
|
|
475
|
+
function X(e) {
|
|
476
|
+
return typeof e == "object" && e !== null && e.$$typeof === d;
|
|
477
|
+
}
|
|
478
|
+
function ge() {
|
|
479
|
+
{
|
|
480
|
+
if (z.current) {
|
|
481
|
+
var e = C(z.current.type);
|
|
482
|
+
if (e)
|
|
483
|
+
return `
|
|
484
|
+
|
|
485
|
+
Check the render method of \`` + e + "`.";
|
|
486
|
+
}
|
|
487
|
+
return "";
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function nr(e) {
|
|
491
|
+
return "";
|
|
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;
|
|
376
504
|
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
t
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
function _e(e, r) {
|
|
520
|
+
{
|
|
521
|
+
if (typeof e != "object")
|
|
522
|
+
return;
|
|
523
|
+
if (J(e))
|
|
390
524
|
for (var t = 0; t < e.length; t++) {
|
|
391
525
|
var n = e[t];
|
|
392
|
-
|
|
526
|
+
X(n) && Re(n, r);
|
|
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;
|
|
393
570
|
}
|
|
394
|
-
|
|
395
|
-
|
|
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);
|
|
571
|
+
}
|
|
572
|
+
e.ref !== null && (F(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
399
573
|
}
|
|
400
574
|
}
|
|
401
|
-
function
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
575
|
+
function ye(e, r, t, n, i, u) {
|
|
576
|
+
{
|
|
577
|
+
var o = We(e);
|
|
578
|
+
if (!o) {
|
|
579
|
+
var a = "";
|
|
580
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
581
|
+
var h = nr();
|
|
582
|
+
h ? a += h : a += ge();
|
|
583
|
+
var s;
|
|
584
|
+
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === d ? (s = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
585
|
+
}
|
|
586
|
+
var c = tr(e, r, t, i, u);
|
|
587
|
+
if (c == null)
|
|
588
|
+
return c;
|
|
589
|
+
if (o) {
|
|
590
|
+
var g = r.children;
|
|
591
|
+
if (g !== void 0)
|
|
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;
|
|
418
603
|
}
|
|
419
604
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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;
|
|
605
|
+
function ur(e, r, t) {
|
|
606
|
+
return ye(e, r, t, !0);
|
|
607
|
+
}
|
|
608
|
+
function sr(e, r, t) {
|
|
609
|
+
return ye(e, r, t, !1);
|
|
610
|
+
}
|
|
611
|
+
var cr = sr, lr = ur;
|
|
612
|
+
W.Fragment = S, W.jsx = cr, W.jsxs = lr;
|
|
613
|
+
}()), W;
|
|
437
614
|
}
|
|
438
|
-
process.env.NODE_ENV === "production" ?
|
|
439
|
-
var
|
|
440
|
-
const
|
|
615
|
+
process.env.NODE_ENV === "production" ? Q.exports = pr() : Q.exports = hr();
|
|
616
|
+
var x = Q.exports;
|
|
617
|
+
const xe = ({ children: l }) => /* @__PURE__ */ x.jsxs("div", { children: [
|
|
441
618
|
"Error loading Helio Checkout for React",
|
|
442
|
-
|
|
619
|
+
l ? `: ${l}` : ""
|
|
443
620
|
] });
|
|
444
|
-
class
|
|
445
|
-
constructor(
|
|
446
|
-
super(
|
|
621
|
+
class Er extends fr {
|
|
622
|
+
constructor(d) {
|
|
623
|
+
super(d), this.state = { hasError: !1 };
|
|
447
624
|
}
|
|
448
625
|
static getDerivedStateFromError() {
|
|
449
626
|
return { hasError: !0 };
|
|
450
627
|
}
|
|
451
628
|
render() {
|
|
452
|
-
return this.state.hasError ? /* @__PURE__ */
|
|
629
|
+
return this.state.hasError ? /* @__PURE__ */ x.jsx(xe, {}) : this.props.children;
|
|
453
630
|
}
|
|
454
631
|
}
|
|
455
|
-
const
|
|
456
|
-
const
|
|
457
|
-
return
|
|
458
|
-
},
|
|
459
|
-
const
|
|
460
|
-
return
|
|
461
|
-
let
|
|
462
|
-
if (
|
|
463
|
-
const
|
|
464
|
-
if (
|
|
465
|
-
const
|
|
466
|
-
if (!
|
|
467
|
-
|
|
632
|
+
const mr = "https://embed.hel.io/assets/index-v1.js", Pe = "helio-checkout-react-v1", gr = (l = mr) => {
|
|
633
|
+
const d = document.createElement("script");
|
|
634
|
+
return d.setAttribute("type", "module"), d.setAttribute("id", Pe), d.setAttribute("src", l), document.body.appendChild(d), d;
|
|
635
|
+
}, br = ({ config: l }) => {
|
|
636
|
+
const d = dr(null), [P, S] = Z(!1), [b, j] = Z(), [O, R] = Z("");
|
|
637
|
+
return Te(() => S(!0), []), Te(() => {
|
|
638
|
+
let f = !1;
|
|
639
|
+
if (b) return;
|
|
640
|
+
const _ = () => {
|
|
641
|
+
if (f) return;
|
|
642
|
+
const m = window.helioCheckout;
|
|
643
|
+
if (!m) {
|
|
644
|
+
R(
|
|
468
645
|
"Unable to load helio checkout - missing init function on window.helioCheckout"
|
|
469
646
|
);
|
|
470
647
|
return;
|
|
471
648
|
}
|
|
472
|
-
|
|
473
|
-
},
|
|
474
|
-
const
|
|
475
|
-
return
|
|
476
|
-
|
|
649
|
+
j(() => m);
|
|
650
|
+
}, v = (m) => {
|
|
651
|
+
const A = () => R("Error loading script tag");
|
|
652
|
+
return m.addEventListener("load", _), m.addEventListener("error", A), () => {
|
|
653
|
+
f = !0, m.removeEventListener("load", _), m.removeEventListener("error", A);
|
|
477
654
|
};
|
|
478
|
-
},
|
|
479
|
-
`script#${
|
|
655
|
+
}, E = document.querySelector(
|
|
656
|
+
`script#${Pe}`
|
|
480
657
|
);
|
|
481
|
-
if (
|
|
482
|
-
window.helioCheckout ?
|
|
658
|
+
if (E) {
|
|
659
|
+
window.helioCheckout ? _() : v(E);
|
|
483
660
|
return;
|
|
484
661
|
}
|
|
485
|
-
const
|
|
486
|
-
return
|
|
487
|
-
}, [
|
|
488
|
-
if (!(!
|
|
489
|
-
if (!
|
|
490
|
-
|
|
662
|
+
const y = gr(l.embedScriptSource);
|
|
663
|
+
return v(y);
|
|
664
|
+
}, [b, l.embedScriptSource]), vr(() => {
|
|
665
|
+
if (!(!b || !P)) {
|
|
666
|
+
if (!d.current) {
|
|
667
|
+
R("Missing element to mount Helio checkout");
|
|
491
668
|
return;
|
|
492
669
|
}
|
|
493
|
-
|
|
670
|
+
b(d.current, l);
|
|
494
671
|
}
|
|
495
|
-
}, [
|
|
496
|
-
},
|
|
672
|
+
}, [b, P, l]), O ? /* @__PURE__ */ x.jsx(xe, { children: O }) : b ? /* @__PURE__ */ x.jsx("div", { ref: d }) : null;
|
|
673
|
+
}, Rr = (l) => /* @__PURE__ */ x.jsx(Er, { children: /* @__PURE__ */ x.jsx(br, { config: l.config }) }), yr = (l) => /* @__PURE__ */ x.jsx(Rr, { config: l.config });
|
|
497
674
|
export {
|
|
498
|
-
|
|
675
|
+
yr as HelioCheckout
|
|
499
676
|
};
|