@heliofi/checkout-react 2.3.1 → 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) => JSX.Element;
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 we, { Component as fr, useRef as dr, useState as Z, useEffect as Te, useLayoutEffect as vr } from "react";
2
- var Q = { exports: {} }, L = {};
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.min.js
5
+ * react-jsx-runtime.production.js
6
6
  *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
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 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 };
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 L.Fragment = P, L.jsx = O, L.jsxs = O, L;
32
+ return A.Fragment = c, A.jsx = g, A.jsxs = g, A;
25
33
  }
26
- var W = {};
34
+ var O = {};
27
35
  /**
28
36
  * @license React
29
37
  * react-jsx-runtime.development.js
30
38
  *
31
- * Copyright (c) Facebook, Inc. and its affiliates.
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 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;
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 S:
53
+ case W:
92
54
  return "Fragment";
93
- case P:
55
+ case Te:
94
56
  return "Portal";
95
- case j:
57
+ case D:
96
58
  return "Profiler";
97
- case b:
59
+ case Q:
98
60
  return "StrictMode";
99
- case _:
61
+ case F:
100
62
  return "Suspense";
101
- case v:
63
+ case I:
102
64
  return "SuspenseList";
103
65
  }
104
66
  if (typeof e == "object")
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;
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 C(o(u));
82
+ return a(e(r));
121
83
  } catch {
122
- return null;
123
84
  }
124
- }
125
85
  }
126
86
  return null;
127
87
  }
128
- var w = Object.assign, I = 0, te, ne, ae, oe, ie, ue, se;
129
- function ce() {
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 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.");
91
+ function g(e) {
92
+ try {
93
+ c(e);
94
+ var r = !1;
95
+ } catch {
96
+ r = !0;
188
97
  }
189
- }
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;
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
- var H = !1, M;
205
- {
206
- var Ne = typeof WeakMap == "function" ? WeakMap : Map;
207
- M = new Ne();
108
+ function S() {
208
109
  }
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;
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
- 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();
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
- 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) {
168
+ var i = {
169
+ DetermineComponentFrameRoot: function() {
233
170
  try {
234
- Reflect.construct(o, []);
235
- } catch (T) {
236
- n = T;
237
- }
238
- Reflect.construct(e, [], o);
239
- } else {
240
- try {
241
- o.call();
242
- } catch (T) {
243
- n = T;
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
- e.call(o.prototype);
246
- }
247
- } else {
248
- try {
249
- throw Error();
250
- } catch (T) {
251
- n = T;
207
+ return [null, null];
252
208
  }
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)
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--, 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;
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 (s >= 1 && c >= 0);
248
+ while (1 <= s && 0 <= o);
271
249
  break;
272
250
  }
273
251
  }
274
252
  } finally {
275
- H = !1, B.current = u, Ue(), Error.prepareStackTrace = i;
253
+ B = !1, _.H = n, f(), Error.prepareStackTrace = t;
276
254
  }
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);
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 Y("Suspense");
297
- case v:
298
- return Y("SuspenseList");
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 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;
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 U(u(i), r, t);
282
+ return k(e(r));
310
283
  } catch {
311
284
  }
312
- }
313
285
  }
314
286
  return "";
315
287
  }
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;
288
+ function p() {
289
+ var e = _.A;
290
+ return e === null ? null : e.getOwner();
381
291
  }
382
- function Xe(e) {
383
- if (N.call(e, "key")) {
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 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);
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
- 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
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
- 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", {
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
- writable: !0,
434
- value: !1
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: !1,
439
- value: n
440
- }), Object.defineProperty(a, "_source", {
330
+ writable: !0,
331
+ value: 0
332
+ }), Object.defineProperty(e, "_debugInfo", {
441
333
  configurable: !1,
442
334
  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);
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
- 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;
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
- function _e(e, r) {
520
- {
521
- if (typeof e != "object")
522
- return;
523
- if (J(e))
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
- 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;
392
+ $(n) && K(n, r);
570
393
  }
571
- }
572
- e.ref !== null && (F(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
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 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;
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 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;
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" ? Q.exports = pr() : Q.exports = hr();
616
- var x = Q.exports;
617
- const xe = ({ children: l }) => /* @__PURE__ */ x.jsxs("div", { children: [
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
- l ? `: ${l}` : ""
442
+ a ? `: ${a}` : ""
620
443
  ] });
621
- class Er extends fr {
622
- constructor(d) {
623
- super(d), this.state = { hasError: !1 };
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__ */ x.jsx(xe, {}) : this.props.children;
452
+ return this.state.hasError ? /* @__PURE__ */ T.jsx(pe, {}) : this.props.children;
630
453
  }
631
454
  }
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(
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
- 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);
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
- }, E = document.querySelector(
656
- `script#${Pe}`
478
+ }, P = document.querySelector(
479
+ `script#${_e}`
657
480
  );
658
- if (E) {
659
- window.helioCheckout ? _() : v(E);
481
+ if (P) {
482
+ window.helioCheckout ? p() : N(P);
660
483
  return;
661
484
  }
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");
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
- b(d.current, l);
493
+ u(c.current, a);
671
494
  }
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 });
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
- yr as HelioCheckout
498
+ Fe as HelioCheckout
676
499
  };
@@ -1,25 +1,31 @@
1
- (function(x,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(x=typeof globalThis<"u"?globalThis:x||self,E(x["react-library-scaffold"]={},x.React))})(this,function(x,E){"use strict";var J={exports:{}},L={};/**
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.min.js
3
+ * react-jsx-runtime.production.js
4
4
  *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
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 re;function Pe(){if(re)return L;re=1;var f=E,d=Symbol.for("react.element"),k=Symbol.for("react.fragment"),O=Object.prototype.hasOwnProperty,y=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F={key:!0,ref:!0,__self:!0,__source:!0};function w(R,l,_){var v,m={},S=null,g=null;_!==void 0&&(S=""+_),l.key!==void 0&&(S=""+l.key),l.ref!==void 0&&(g=l.ref);for(v in l)O.call(l,v)&&!F.hasOwnProperty(v)&&(m[v]=l[v]);if(R&&R.defaultProps)for(v in l=R.defaultProps,l)m[v]===void 0&&(m[v]=l[v]);return{$$typeof:d,type:R,key:S,ref:g,props:m,_owner:y.current}}return L.Fragment=k,L.jsx=w,L.jsxs=w,L}var W={};/**
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) Facebook, Inc. and its affiliates.
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 te;function je(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var f=E,d=Symbol.for("react.element"),k=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),R=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),Y=Symbol.iterator,We="@@iterator";function Ye(e){if(e===null||typeof e!="object")return null;var r=Y&&e[Y]||e[We];return typeof r=="function"?r:null}var D=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Me("error",e,t)}}function Me(e,r,t){{var n=D.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ue=!1,Ne=!1,Ve=!1,Be=!1,He=!1,oe;oe=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===O||e===F||He||e===y||e===_||e===v||Be||e===g||Ue||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===m||e.$$typeof===w||e.$$typeof===R||e.$$typeof===l||e.$$typeof===oe||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ie(e){return e.displayName||"Context"}function T(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case k:return"Portal";case F:return"Profiler";case y:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ie(r)+".Consumer";case w:var t=e;return ie(t._context)+".Provider";case l:return Je(e,e.render,"ForwardRef");case m:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case S:{var i=e,u=i._payload,o=i._init;try{return T(o(u))}catch{return null}}}return null}var j=Object.assign,M=0,ue,se,ce,fe,le,de,ve;function pe(){}pe.__reactDisabledLog=!0;function Ge(){{if(M===0){ue=console.log,se=console.info,ce=console.warn,fe=console.error,le=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function ze(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:ue}),info:j({},e,{value:se}),warn:j({},e,{value:ce}),error:j({},e,{value:fe}),group:j({},e,{value:le}),groupCollapsed:j({},e,{value:de}),groupEnd:j({},e,{value:ve})})}M<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,z;function N(e,r,t){{if(z===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
18
- `+z+e}}var K=!1,V;{var Ke=typeof WeakMap=="function"?WeakMap:Map;V=new Ke}function he(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=G.current,G.current=null,Ge();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){n=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){n=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){n=C}e()}}catch(C){if(C&&n&&typeof C.stack=="string"){for(var a=C.stack.split(`
19
- `),h=n.stack.split(`
20
- `),s=a.length-1,c=h.length-1;s>=1&&c>=0&&a[s]!==h[c];)c--;for(;s>=1&&c>=0;s--,c--)if(a[s]!==h[c]){if(s!==1||c!==1)do if(s--,c--,c<0||a[s]!==h[c]){var b=`
21
- `+a[s].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,b),b}while(s>=1&&c>=0);break}}}finally{K=!1,G.current=u,ze(),Error.prepareStackTrace=i}var I=e?e.displayName||e.name:"",xe=I?N(I):"";return typeof e=="function"&&V.set(e,xe),xe}function Xe(e,r,t){return he(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case _:return N("Suspense");case v:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Xe(e.render);case m:return B(e.type,r,t);case S:{var n=e,i=n._payload,u=n._init;try{return B(u(i),r,t)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Ee={},me=D.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}function qe(e,r,t,n,i){{var u=Function.call.bind(H);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){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`.");throw h.name="Invariant Violation",h}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&($(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),$(null)),a instanceof Error&&!(a.message in Ee)&&(Ee[a.message]=!0,$(i),p("Failed %s type: %s",t,a.message),$(null))}}}var Qe=Array.isArray;function X(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function be(e){if(rr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),ge(e)}var U=D.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},ye,Re,Z;Z={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=T(U.current.type);Z[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',T(U.current.type),e.ref),Z[t]=!0)}}function ir(e,r){{var t=function(){ye||(ye=!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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ur(e,r){{var t=function(){Re||(Re=!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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var sr=function(e,r,t,n,i,u,o){var a={$$typeof:d,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function cr(e,r,t,n,i){{var u,o={},a=null,h=null;t!==void 0&&(be(t),a=""+t),ar(r)&&(be(r.key),a=""+r.key),nr(r)&&(h=r.ref,or(r,i));for(u in r)H.call(r,u)&&!tr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||h){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(o,c),h&&ur(o,c)}return sr(e,a,h,i,n,U.current,o)}}var q=D.ReactCurrentOwner,_e=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function Se(){{if(q.current){var e=T(q.current.type);if(e)return`
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 \``+e+"`."}return""}}function fr(e){return""}var Te={};function lr(e){{var r=Se();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
29
+ Check the render method of \``+t+"`."),r||(e=a(e))&&(r=`
24
30
 
25
- Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),A(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),A(null)}}function Oe(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Ce(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var i=Ye(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)ee(o.value)&&Ce(o.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===m))t=r.propTypes;else return;if(t){var n=T(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var i=T(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function we(e,r,t,n,i,u){{var o=$e(e);if(!o){var a="";(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.");var h=fr();h?a+=h:a+=Se();var s;e===null?s="null":X(e)?s="array":e!==void 0&&e.$$typeof===d?(s="<"+(T(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)}var c=cr(e,r,t,i,u);if(c==null)return c;if(o){var b=r.children;if(b!==void 0)if(n)if(X(b)){for(var I=0;I<b.length;I++)Oe(b[I],e);Object.freeze&&Object.freeze(b)}else 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.");else Oe(b,e)}return e===O?vr(c):dr(c),c}}function pr(e,r,t){return we(e,r,t,!0)}function hr(e,r,t){return we(e,r,t,!1)}var Er=hr,mr=pr;W.Fragment=O,W.jsx=Er,W.jsxs=mr}()),W}process.env.NODE_ENV==="production"?J.exports=Pe():J.exports=je();var P=J.exports;const ne=({children:f})=>P.jsxs("div",{children:["Error loading Helio Checkout for React",f?`: ${f}`:""]});class ke extends E.Component{constructor(d){super(d),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?P.jsx(ne,{}):this.props.children}}const Fe="https://embed.hel.io/assets/index-v1.js",ae="helio-checkout-react-v1",De=(f=Fe)=>{const d=document.createElement("script");return d.setAttribute("type","module"),d.setAttribute("id",ae),d.setAttribute("src",f),document.body.appendChild(d),d},Ae=({config:f})=>{const d=E.useRef(null),[k,O]=E.useState(!1),[y,F]=E.useState(),[w,R]=E.useState("");return E.useEffect(()=>O(!0),[]),E.useEffect(()=>{let l=!1;if(y)return;const _=()=>{if(l)return;const g=window.helioCheckout;if(!g){R("Unable to load helio checkout - missing init function on window.helioCheckout");return}F(()=>g)},v=g=>{const Y=()=>R("Error loading script tag");return g.addEventListener("load",_),g.addEventListener("error",Y),()=>{l=!0,g.removeEventListener("load",_),g.removeEventListener("error",Y)}},m=document.querySelector(`script#${ae}`);if(m){window.helioCheckout?_():v(m);return}const S=De(f.embedScriptSource);return v(S)},[y,f.embedScriptSource]),E.useLayoutEffect(()=>{if(!(!y||!k)){if(!d.current){R("Missing element to mount Helio checkout");return}y(d.current,f)}},[y,k,f]),w?P.jsx(ne,{children:w}):y?P.jsx("div",{ref:d}):null},Ie=f=>P.jsx(ke,{children:P.jsx(Ae,{config:f.config})}),Le=f=>P.jsx(Ie,{config:f.config});x.HelioCheckout=Le,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
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": "2.3.1",
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": "^18.2.0",
37
- "react-dom": "^18.2.0"
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": "18.2.0",
44
- "@types/react-dom": "18.2.0",
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",