@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.
@@ -1,499 +1,676 @@
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 = {};
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) Meta Platforms, Inc. and affiliates.
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 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
- };
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 A.Fragment = c, A.jsx = g, A.jsxs = g, A;
24
+ return L.Fragment = P, L.jsx = O, L.jsxs = O, L;
33
25
  }
34
- var O = {};
26
+ var W = {};
35
27
  /**
36
28
  * @license React
37
29
  * react-jsx-runtime.development.js
38
30
  *
39
- * Copyright (c) Meta Platforms, Inc. and affiliates.
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 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;
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 W:
91
+ case S:
54
92
  return "Fragment";
55
- case Te:
93
+ case P:
56
94
  return "Portal";
57
- case D:
95
+ case j:
58
96
  return "Profiler";
59
- case Q:
97
+ case b:
60
98
  return "StrictMode";
61
- case F:
99
+ case _:
62
100
  return "Suspense";
63
- case I:
101
+ case v:
64
102
  return "SuspenseList";
65
103
  }
66
104
  if (typeof e == "object")
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;
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 a(e(r));
120
+ return C(o(u));
83
121
  } catch {
122
+ return null;
84
123
  }
124
+ }
85
125
  }
86
126
  return null;
87
127
  }
88
- function c(e) {
89
- return "" + e;
128
+ var w = Object.assign, I = 0, te, ne, ae, oe, ie, ue, se;
129
+ function ce() {
90
130
  }
91
- function g(e) {
92
- try {
93
- c(e);
94
- var r = !1;
95
- } catch {
96
- r = !0;
97
- }
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);
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 S() {
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
- 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
- });
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
- 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
- });
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
- 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();
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
- var i = {
169
- DetermineComponentFrameRoot: function() {
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
- 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];
234
+ Reflect.construct(o, []);
235
+ } catch (T) {
236
+ n = T;
206
237
  }
207
- return [null, null];
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
- 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)
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--, 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;
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 (1 <= s && 0 <= o);
270
+ while (s >= 1 && c >= 0);
249
271
  break;
250
272
  }
251
273
  }
252
274
  } finally {
253
- B = !1, _.H = n, f(), Error.prepareStackTrace = t;
275
+ H = !1, B.current = u, Ue(), Error.prepareStackTrace = i;
254
276
  }
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);
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 F:
269
- return d("Suspense");
270
- case I:
271
- return d("SuspenseList");
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 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;
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 k(e(r));
309
+ return U(u(i), r, t);
283
310
  } catch {
284
311
  }
312
+ }
285
313
  }
286
314
  return "";
287
315
  }
288
- function p() {
289
- var e = _.A;
290
- return e === null ? null : e.getOwner();
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 N(e) {
293
- if (oe.call(e, "key")) {
382
+ function Xe(e) {
383
+ if (N.call(e, "key")) {
294
384
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
295
- if (r && r.isReactWarning) return !1;
385
+ if (r && r.isReactWarning)
386
+ return !1;
296
387
  }
297
388
  return e.key !== void 0;
298
389
  }
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
- ));
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
- 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,
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
- props: s,
323
- _owner: i
324
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
325
- enumerable: !1,
326
- get: M
327
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
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: 0
332
- }), Object.defineProperty(e, "_debugInfo", {
434
+ value: !1
435
+ }), Object.defineProperty(a, "_self", {
333
436
  configurable: !1,
334
437
  enumerable: !1,
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);
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
- 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);
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
- 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))
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
- $(n) && K(n, r);
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
- 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);
571
+ }
572
+ e.ref !== null && (F(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
399
573
  }
400
574
  }
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;
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 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;
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" ? X.exports = Ne() : X.exports = Pe();
439
- var T = X.exports;
440
- const pe = ({ children: a }) => /* @__PURE__ */ T.jsxs("div", { children: [
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
- a ? `: ${a}` : ""
619
+ l ? `: ${l}` : ""
443
620
  ] });
444
- class Ye extends Re {
445
- constructor(c) {
446
- super(c), this.state = { hasError: !1 };
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__ */ T.jsx(pe, {}) : this.props.children;
629
+ return this.state.hasError ? /* @__PURE__ */ x.jsx(xe, {}) : this.props.children;
453
630
  }
454
631
  }
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(
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
- 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);
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
- }, P = document.querySelector(
479
- `script#${_e}`
655
+ }, E = document.querySelector(
656
+ `script#${Pe}`
480
657
  );
481
- if (P) {
482
- window.helioCheckout ? p() : N(P);
658
+ if (E) {
659
+ window.helioCheckout ? _() : v(E);
483
660
  return;
484
661
  }
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");
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
- u(c.current, a);
670
+ b(d.current, l);
494
671
  }
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 });
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
- Fe as HelioCheckout
675
+ yr as HelioCheckout
499
676
  };