@getopenpay/openpay-js 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/dist/index.es.js +345 -339
- package/dist/index.umd.js +15 -15
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z as i } from "zod";
|
|
2
2
|
import { v4 as yn } from "uuid";
|
|
3
3
|
import { connectToChild as mn } from "penpal";
|
|
4
|
-
var Qr = { exports: {} }, Nr = { exports: {} },
|
|
4
|
+
var Qr = { exports: {} }, Nr = { exports: {} }, D = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react.production.min.js
|
|
@@ -13,18 +13,18 @@ var Qr = { exports: {} }, Nr = { exports: {} }, M = {};
|
|
|
13
13
|
*/
|
|
14
14
|
var Yr;
|
|
15
15
|
function hn() {
|
|
16
|
-
if (Yr) return
|
|
16
|
+
if (Yr) return D;
|
|
17
17
|
Yr = 1;
|
|
18
|
-
var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"),
|
|
19
|
-
function
|
|
20
|
-
return r === null || typeof r != "object" ? null : (r =
|
|
18
|
+
var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
|
|
19
|
+
function G(r) {
|
|
20
|
+
return r === null || typeof r != "object" ? null : (r = U && r[U] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
21
21
|
}
|
|
22
22
|
var Y = { isMounted: function() {
|
|
23
23
|
return !1;
|
|
24
24
|
}, enqueueForceUpdate: function() {
|
|
25
25
|
}, enqueueReplaceState: function() {
|
|
26
26
|
}, enqueueSetState: function() {
|
|
27
|
-
} },
|
|
27
|
+
} }, Z = Object.assign, ve = {};
|
|
28
28
|
function W(r, s, h) {
|
|
29
29
|
this.props = r, this.context = s, this.refs = ve, this.updater = h || Y;
|
|
30
30
|
}
|
|
@@ -41,11 +41,11 @@ function hn() {
|
|
|
41
41
|
this.props = r, this.context = s, this.refs = ve, this.updater = h || Y;
|
|
42
42
|
}
|
|
43
43
|
var ae = oe.prototype = new ge();
|
|
44
|
-
ae.constructor = oe,
|
|
45
|
-
var K = Array.isArray,
|
|
44
|
+
ae.constructor = oe, Z(ae, W.prototype), ae.isPureReactComponent = !0;
|
|
45
|
+
var K = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
46
46
|
function te(r, s, h) {
|
|
47
47
|
var _, E = {}, P = null, k = null;
|
|
48
|
-
if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s)
|
|
48
|
+
if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
|
|
49
49
|
var O = arguments.length - 2;
|
|
50
50
|
if (O === 1) E.children = h;
|
|
51
51
|
else if (1 < O) {
|
|
@@ -53,7 +53,7 @@ function hn() {
|
|
|
53
53
|
E.children = C;
|
|
54
54
|
}
|
|
55
55
|
if (r && r.defaultProps) for (_ in O = r.defaultProps, O) E[_] === void 0 && (E[_] = O[_]);
|
|
56
|
-
return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner:
|
|
56
|
+
return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner: z.current };
|
|
57
57
|
}
|
|
58
58
|
function _e(r, s) {
|
|
59
59
|
return { $$typeof: c, type: r.type, key: s, ref: r.ref, props: r.props, _owner: r._owner };
|
|
@@ -61,7 +61,7 @@ function hn() {
|
|
|
61
61
|
function de(r) {
|
|
62
62
|
return typeof r == "object" && r !== null && r.$$typeof === c;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function De(r) {
|
|
65
65
|
var s = { "=": "=0", ":": "=2" };
|
|
66
66
|
return "$" + r.replace(/[=:]/g, function(h) {
|
|
67
67
|
return s[h];
|
|
@@ -69,7 +69,7 @@ function hn() {
|
|
|
69
69
|
}
|
|
70
70
|
var be = /\/+/g;
|
|
71
71
|
function pe(r, s) {
|
|
72
|
-
return typeof r == "object" && r !== null && r.key != null ?
|
|
72
|
+
return typeof r == "object" && r !== null && r.key != null ? De("" + r.key) : s.toString(36);
|
|
73
73
|
}
|
|
74
74
|
function ie(r, s, h, _, E) {
|
|
75
75
|
var P = typeof r;
|
|
@@ -96,7 +96,7 @@ function hn() {
|
|
|
96
96
|
var C = _ + pe(P, O);
|
|
97
97
|
k += ie(P, s, h, C, E);
|
|
98
98
|
}
|
|
99
|
-
else if (C =
|
|
99
|
+
else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(P = r.next()).done; ) P = P.value, C = _ + pe(P, O++), k += ie(P, s, h, C, E);
|
|
100
100
|
else if (P === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
|
|
101
101
|
return k;
|
|
102
102
|
}
|
|
@@ -107,7 +107,7 @@ function hn() {
|
|
|
107
107
|
return s.call(h, P, E++);
|
|
108
108
|
}), _;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function X(r) {
|
|
111
111
|
if (r._status === -1) {
|
|
112
112
|
var s = r._result;
|
|
113
113
|
s = s(), s.then(function(h) {
|
|
@@ -119,11 +119,11 @@ function hn() {
|
|
|
119
119
|
if (r._status === 1) return r._result.default;
|
|
120
120
|
throw r._result;
|
|
121
121
|
}
|
|
122
|
-
var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner:
|
|
122
|
+
var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
|
|
123
123
|
function se() {
|
|
124
124
|
throw Error("act(...) is not supported in production builds of React.");
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return D.Children = { map: H, forEach: function(r, s, h) {
|
|
127
127
|
H(r, function() {
|
|
128
128
|
s.apply(this, arguments);
|
|
129
129
|
}, h);
|
|
@@ -139,12 +139,12 @@ function hn() {
|
|
|
139
139
|
}, only: function(r) {
|
|
140
140
|
if (!de(r)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
141
141
|
return r;
|
|
142
|
-
} },
|
|
142
|
+
} }, D.Component = W, D.Fragment = p, D.Profiler = g, D.PureComponent = oe, D.StrictMode = m, D.Suspense = x, D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, D.act = se, D.cloneElement = function(r, s, h) {
|
|
143
143
|
if (r == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
|
|
144
|
-
var _ =
|
|
144
|
+
var _ = Z({}, r.props), E = r.key, P = r.ref, k = r._owner;
|
|
145
145
|
if (s != null) {
|
|
146
|
-
if (s.ref !== void 0 && (P = s.ref, k =
|
|
147
|
-
for (C in s)
|
|
146
|
+
if (s.ref !== void 0 && (P = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
|
|
147
|
+
for (C in s) F.call(s, C) && !Q.hasOwnProperty(C) && (_[C] = s[C] === void 0 && O !== void 0 ? O[C] : s[C]);
|
|
148
148
|
}
|
|
149
149
|
var C = arguments.length - 2;
|
|
150
150
|
if (C === 1) _.children = h;
|
|
@@ -154,20 +154,20 @@ function hn() {
|
|
|
154
154
|
_.children = O;
|
|
155
155
|
}
|
|
156
156
|
return { $$typeof: c, type: r.type, key: E, ref: P, props: _, _owner: k };
|
|
157
|
-
},
|
|
157
|
+
}, D.createContext = function(r) {
|
|
158
158
|
return r = { $$typeof: j, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
|
|
159
|
-
},
|
|
159
|
+
}, D.createElement = te, D.createFactory = function(r) {
|
|
160
160
|
var s = te.bind(null, r);
|
|
161
161
|
return s.type = r, s;
|
|
162
|
-
},
|
|
162
|
+
}, D.createRef = function() {
|
|
163
163
|
return { current: null };
|
|
164
|
-
},
|
|
164
|
+
}, D.forwardRef = function(r) {
|
|
165
165
|
return { $$typeof: I, render: r };
|
|
166
|
-
},
|
|
167
|
-
return { $$typeof:
|
|
168
|
-
},
|
|
166
|
+
}, D.isValidElement = de, D.lazy = function(r) {
|
|
167
|
+
return { $$typeof: V, _payload: { _status: -1, _result: r }, _init: X };
|
|
168
|
+
}, D.memo = function(r, s) {
|
|
169
169
|
return { $$typeof: q, type: r, compare: s === void 0 ? null : s };
|
|
170
|
-
},
|
|
170
|
+
}, D.startTransition = function(r) {
|
|
171
171
|
var s = re.transition;
|
|
172
172
|
re.transition = {};
|
|
173
173
|
try {
|
|
@@ -175,36 +175,36 @@ function hn() {
|
|
|
175
175
|
} finally {
|
|
176
176
|
re.transition = s;
|
|
177
177
|
}
|
|
178
|
-
},
|
|
178
|
+
}, D.unstable_act = se, D.useCallback = function(r, s) {
|
|
179
179
|
return f.current.useCallback(r, s);
|
|
180
|
-
},
|
|
180
|
+
}, D.useContext = function(r) {
|
|
181
181
|
return f.current.useContext(r);
|
|
182
|
-
},
|
|
183
|
-
},
|
|
182
|
+
}, D.useDebugValue = function() {
|
|
183
|
+
}, D.useDeferredValue = function(r) {
|
|
184
184
|
return f.current.useDeferredValue(r);
|
|
185
|
-
},
|
|
185
|
+
}, D.useEffect = function(r, s) {
|
|
186
186
|
return f.current.useEffect(r, s);
|
|
187
|
-
},
|
|
187
|
+
}, D.useId = function() {
|
|
188
188
|
return f.current.useId();
|
|
189
|
-
},
|
|
189
|
+
}, D.useImperativeHandle = function(r, s, h) {
|
|
190
190
|
return f.current.useImperativeHandle(r, s, h);
|
|
191
|
-
},
|
|
191
|
+
}, D.useInsertionEffect = function(r, s) {
|
|
192
192
|
return f.current.useInsertionEffect(r, s);
|
|
193
|
-
},
|
|
193
|
+
}, D.useLayoutEffect = function(r, s) {
|
|
194
194
|
return f.current.useLayoutEffect(r, s);
|
|
195
|
-
},
|
|
195
|
+
}, D.useMemo = function(r, s) {
|
|
196
196
|
return f.current.useMemo(r, s);
|
|
197
|
-
},
|
|
197
|
+
}, D.useReducer = function(r, s, h) {
|
|
198
198
|
return f.current.useReducer(r, s, h);
|
|
199
|
-
},
|
|
199
|
+
}, D.useRef = function(r) {
|
|
200
200
|
return f.current.useRef(r);
|
|
201
|
-
},
|
|
201
|
+
}, D.useState = function(r) {
|
|
202
202
|
return f.current.useState(r);
|
|
203
|
-
},
|
|
203
|
+
}, D.useSyncExternalStore = function(r, s, h) {
|
|
204
204
|
return f.current.useSyncExternalStore(r, s, h);
|
|
205
|
-
},
|
|
205
|
+
}, D.useTransition = function() {
|
|
206
206
|
return f.current.useTransition();
|
|
207
|
-
},
|
|
207
|
+
}, D.version = "18.3.1", D;
|
|
208
208
|
}
|
|
209
209
|
var Pt = { exports: {} };
|
|
210
210
|
/**
|
|
@@ -222,7 +222,7 @@ function vn() {
|
|
|
222
222
|
return Hr || (Hr = 1, function(c, a) {
|
|
223
223
|
process.env.NODE_ENV !== "production" && function() {
|
|
224
224
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
225
|
-
var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"),
|
|
225
|
+
var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
|
|
226
226
|
function oe(e) {
|
|
227
227
|
if (e === null || typeof e != "object")
|
|
228
228
|
return null;
|
|
@@ -237,36 +237,36 @@ function vn() {
|
|
|
237
237
|
current: null
|
|
238
238
|
}, K = {
|
|
239
239
|
transition: null
|
|
240
|
-
},
|
|
240
|
+
}, F = {
|
|
241
241
|
current: null,
|
|
242
242
|
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
243
243
|
isBatchingLegacy: !1,
|
|
244
244
|
didScheduleLegacyUpdate: !1
|
|
245
|
-
},
|
|
245
|
+
}, z = {
|
|
246
246
|
/**
|
|
247
247
|
* @internal
|
|
248
248
|
* @type {ReactComponent}
|
|
249
249
|
*/
|
|
250
250
|
current: null
|
|
251
|
-
},
|
|
251
|
+
}, Q = {}, te = null;
|
|
252
252
|
function _e(e) {
|
|
253
253
|
te = e;
|
|
254
254
|
}
|
|
255
|
-
|
|
255
|
+
Q.setExtraStackFrame = function(e) {
|
|
256
256
|
te = e;
|
|
257
|
-
},
|
|
257
|
+
}, Q.getCurrentStack = null, Q.getStackAddendum = function() {
|
|
258
258
|
var e = "";
|
|
259
259
|
te && (e += te);
|
|
260
|
-
var t =
|
|
260
|
+
var t = Q.getCurrentStack;
|
|
261
261
|
return t && (e += t() || ""), e;
|
|
262
262
|
};
|
|
263
|
-
var de = !1,
|
|
263
|
+
var de = !1, De = !1, be = !1, pe = !1, ie = !1, H = {
|
|
264
264
|
ReactCurrentDispatcher: ae,
|
|
265
265
|
ReactCurrentBatchConfig: K,
|
|
266
|
-
ReactCurrentOwner:
|
|
266
|
+
ReactCurrentOwner: z
|
|
267
267
|
};
|
|
268
|
-
H.ReactDebugCurrentFrame =
|
|
269
|
-
function
|
|
268
|
+
H.ReactDebugCurrentFrame = Q, H.ReactCurrentActQueue = F;
|
|
269
|
+
function X(e) {
|
|
270
270
|
{
|
|
271
271
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
272
272
|
n[o - 1] = arguments[o];
|
|
@@ -378,7 +378,7 @@ function vn() {
|
|
|
378
378
|
}, P = function(e, t) {
|
|
379
379
|
Object.defineProperty(_.prototype, e, {
|
|
380
380
|
get: function() {
|
|
381
|
-
|
|
381
|
+
X("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
};
|
|
@@ -393,23 +393,23 @@ function vn() {
|
|
|
393
393
|
}
|
|
394
394
|
var L = C.prototype = new O();
|
|
395
395
|
L.constructor = C, s(L, _.prototype), L.isPureReactComponent = !0;
|
|
396
|
-
function
|
|
396
|
+
function Dt() {
|
|
397
397
|
var e = {
|
|
398
398
|
current: null
|
|
399
399
|
};
|
|
400
400
|
return Object.seal(e), e;
|
|
401
401
|
}
|
|
402
|
-
var
|
|
402
|
+
var Mt = Array.isArray;
|
|
403
403
|
function we(e) {
|
|
404
|
-
return
|
|
404
|
+
return Mt(e);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Ft(e) {
|
|
407
407
|
{
|
|
408
408
|
var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
409
409
|
return n;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function $t(e) {
|
|
413
413
|
try {
|
|
414
414
|
return We(e), !1;
|
|
415
415
|
} catch {
|
|
@@ -420,8 +420,8 @@ function vn() {
|
|
|
420
420
|
return "" + e;
|
|
421
421
|
}
|
|
422
422
|
function Ce(e) {
|
|
423
|
-
if (
|
|
424
|
-
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
423
|
+
if ($t(e))
|
|
424
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ft(e)), We(e);
|
|
425
425
|
}
|
|
426
426
|
function xt(e, t, n) {
|
|
427
427
|
var o = e.displayName;
|
|
@@ -433,7 +433,7 @@ function vn() {
|
|
|
433
433
|
function Ke(e) {
|
|
434
434
|
return e.displayName || "Context";
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ee(e) {
|
|
437
437
|
if (e == null)
|
|
438
438
|
return null;
|
|
439
439
|
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -449,9 +449,9 @@ function vn() {
|
|
|
449
449
|
return "Profiler";
|
|
450
450
|
case j:
|
|
451
451
|
return "StrictMode";
|
|
452
|
-
case
|
|
452
|
+
case U:
|
|
453
453
|
return "Suspense";
|
|
454
|
-
case
|
|
454
|
+
case G:
|
|
455
455
|
return "SuspenseList";
|
|
456
456
|
}
|
|
457
457
|
if (typeof e == "object")
|
|
@@ -462,15 +462,15 @@ function vn() {
|
|
|
462
462
|
case x:
|
|
463
463
|
var n = e;
|
|
464
464
|
return Ke(n._context) + ".Provider";
|
|
465
|
-
case
|
|
465
|
+
case V:
|
|
466
466
|
return xt(e, e.render, "ForwardRef");
|
|
467
467
|
case Y:
|
|
468
468
|
var o = e.displayName || null;
|
|
469
|
-
return o !== null ? o :
|
|
470
|
-
case
|
|
469
|
+
return o !== null ? o : ee(e.type) || "Memo";
|
|
470
|
+
case Z: {
|
|
471
471
|
var u = e, d = u._payload, l = u._init;
|
|
472
472
|
try {
|
|
473
|
-
return
|
|
473
|
+
return ee(l(d));
|
|
474
474
|
} catch {
|
|
475
475
|
return null;
|
|
476
476
|
}
|
|
@@ -483,8 +483,8 @@ function vn() {
|
|
|
483
483
|
ref: !0,
|
|
484
484
|
__self: !0,
|
|
485
485
|
__source: !0
|
|
486
|
-
}, Ge, Je,
|
|
487
|
-
|
|
486
|
+
}, Ge, Je, Me;
|
|
487
|
+
Me = {};
|
|
488
488
|
function Ze(e) {
|
|
489
489
|
if (ye.call(e, "ref")) {
|
|
490
490
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -520,12 +520,12 @@ function vn() {
|
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
522
|
function Ut(e) {
|
|
523
|
-
if (typeof e.ref == "string" &&
|
|
524
|
-
var t =
|
|
525
|
-
|
|
523
|
+
if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
|
|
524
|
+
var t = ee(z.current.type);
|
|
525
|
+
Me[t] || (f('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, e.ref), Me[t] = !0);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
var
|
|
528
|
+
var Fe = function(e, t, n, o, u, d, l) {
|
|
529
529
|
var y = {
|
|
530
530
|
// This tag allows us to uniquely identify this as a React Element
|
|
531
531
|
$$typeof: m,
|
|
@@ -554,7 +554,7 @@ function vn() {
|
|
|
554
554
|
value: u
|
|
555
555
|
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
556
556
|
};
|
|
557
|
-
function
|
|
557
|
+
function Vt(e, t, n) {
|
|
558
558
|
var o, u = {}, d = null, l = null, y = null, v = null;
|
|
559
559
|
if (t != null) {
|
|
560
560
|
Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), d = "" + t.key), y = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
|
|
@@ -578,10 +578,10 @@ function vn() {
|
|
|
578
578
|
var A = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
579
579
|
d && Lt(u, A), l && Nt(u, A);
|
|
580
580
|
}
|
|
581
|
-
return
|
|
581
|
+
return Fe(e, d, l, y, v, z.current, u);
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
var n =
|
|
583
|
+
function zt(e, t) {
|
|
584
|
+
var n = Fe(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
|
|
585
585
|
return n;
|
|
586
586
|
}
|
|
587
587
|
function qt(e, t, n) {
|
|
@@ -589,7 +589,7 @@ function vn() {
|
|
|
589
589
|
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
590
590
|
var o, u = s({}, e.props), d = e.key, l = e.ref, y = e._self, v = e._source, w = e._owner;
|
|
591
591
|
if (t != null) {
|
|
592
|
-
Ze(t) && (l = t.ref, w =
|
|
592
|
+
Ze(t) && (l = t.ref, w = z.current), Qe(t) && (Ce(t.key), d = "" + t.key);
|
|
593
593
|
var R;
|
|
594
594
|
e.type && e.type.defaultProps && (R = e.type.defaultProps);
|
|
595
595
|
for (o in t)
|
|
@@ -603,7 +603,7 @@ function vn() {
|
|
|
603
603
|
T[A] = arguments[A + 2];
|
|
604
604
|
u.children = T;
|
|
605
605
|
}
|
|
606
|
-
return
|
|
606
|
+
return Fe(e.type, d, l, y, v, w, u);
|
|
607
607
|
}
|
|
608
608
|
function ue(e) {
|
|
609
609
|
return typeof e == "object" && e !== null && e.$$typeof === m;
|
|
@@ -622,7 +622,7 @@ function vn() {
|
|
|
622
622
|
function tt(e) {
|
|
623
623
|
return e.replace(Wt, "$&/");
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function $e(e, t) {
|
|
626
626
|
return typeof e == "object" && e !== null && e.key != null ? (Ce(e.key), Ht("" + e.key)) : t.toString(36);
|
|
627
627
|
}
|
|
628
628
|
function Re(e, t, n, o, u) {
|
|
@@ -645,13 +645,13 @@ function vn() {
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
if (l) {
|
|
648
|
-
var y = e, v = u(y), w = o === "" ? Xe +
|
|
648
|
+
var y = e, v = u(y), w = o === "" ? Xe + $e(y, 0) : o;
|
|
649
649
|
if (we(v)) {
|
|
650
650
|
var R = "";
|
|
651
651
|
w != null && (R = tt(w) + "/"), Re(v, t, R, "", function(Lr) {
|
|
652
652
|
return Lr;
|
|
653
653
|
});
|
|
654
|
-
} else v != null && (ue(v) && (v.key && (!y || y.key !== v.key) && Ce(v.key), v =
|
|
654
|
+
} else v != null && (ue(v) && (v.key && (!y || y.key !== v.key) && Ce(v.key), v = zt(
|
|
655
655
|
v,
|
|
656
656
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
657
657
|
// traverseAllChildren used to do for objects as children
|
|
@@ -664,17 +664,17 @@ function vn() {
|
|
|
664
664
|
)), t.push(v));
|
|
665
665
|
return 1;
|
|
666
666
|
}
|
|
667
|
-
var S, T, A = 0,
|
|
667
|
+
var S, T, A = 0, $ = o === "" ? Xe : o + Yt;
|
|
668
668
|
if (we(e))
|
|
669
669
|
for (var Ae = 0; Ae < e.length; Ae++)
|
|
670
|
-
S = e[Ae], T =
|
|
670
|
+
S = e[Ae], T = $ + $e(S, Ae), A += Re(S, t, n, T, u);
|
|
671
671
|
else {
|
|
672
672
|
var He = oe(e);
|
|
673
673
|
if (typeof He == "function") {
|
|
674
674
|
var kt = e;
|
|
675
|
-
He === kt.entries && (et ||
|
|
676
|
-
for (var
|
|
677
|
-
S = Ot.value, T =
|
|
675
|
+
He === kt.entries && (et || X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), et = !0);
|
|
676
|
+
for (var $r = He.call(kt), Ot, xr = 0; !(Ot = $r.next()).done; )
|
|
677
|
+
S = Ot.value, T = $ + $e(S, xr++), A += Re(S, t, n, T, u);
|
|
678
678
|
} else if (d === "object") {
|
|
679
679
|
var Tt = String(e);
|
|
680
680
|
throw new Error("Objects are not valid as a React child (found: " + (Tt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Tt) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -784,7 +784,7 @@ function vn() {
|
|
|
784
784
|
return t.displayName;
|
|
785
785
|
},
|
|
786
786
|
set: function(l) {
|
|
787
|
-
u || (
|
|
787
|
+
u || (X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", l), u = !0);
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
}), t.Consumer = d;
|
|
@@ -830,7 +830,7 @@ Your code should look like:
|
|
|
830
830
|
_status: me,
|
|
831
831
|
_result: e
|
|
832
832
|
}, n = {
|
|
833
|
-
$$typeof:
|
|
833
|
+
$$typeof: Z,
|
|
834
834
|
_payload: t,
|
|
835
835
|
_init: Xt
|
|
836
836
|
};
|
|
@@ -866,7 +866,7 @@ Your code should look like:
|
|
|
866
866
|
function tr(e) {
|
|
867
867
|
e != null && e.$$typeof === Y ? f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? f("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && f("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
868
868
|
var t = {
|
|
869
|
-
$$typeof:
|
|
869
|
+
$$typeof: V,
|
|
870
870
|
render: e
|
|
871
871
|
};
|
|
872
872
|
{
|
|
@@ -887,7 +887,7 @@ Your code should look like:
|
|
|
887
887
|
var nt;
|
|
888
888
|
nt = Symbol.for("react.module.reference");
|
|
889
889
|
function ot(e) {
|
|
890
|
-
return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e ===
|
|
890
|
+
return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e === U || e === G || pe || e === ve || de || De || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === x || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
|
|
891
891
|
// types supported by any Flight configuration anywhere since
|
|
892
892
|
// we don't know which Flight build this will end up being used
|
|
893
893
|
// with.
|
|
@@ -1096,29 +1096,29 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1096
1096
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1097
1097
|
try {
|
|
1098
1098
|
Reflect.construct(l, []);
|
|
1099
|
-
} catch (
|
|
1100
|
-
o =
|
|
1099
|
+
} catch ($) {
|
|
1100
|
+
o = $;
|
|
1101
1101
|
}
|
|
1102
1102
|
Reflect.construct(e, [], l);
|
|
1103
1103
|
} else {
|
|
1104
1104
|
try {
|
|
1105
1105
|
l.call();
|
|
1106
|
-
} catch (
|
|
1107
|
-
o =
|
|
1106
|
+
} catch ($) {
|
|
1107
|
+
o = $;
|
|
1108
1108
|
}
|
|
1109
1109
|
e.call(l.prototype);
|
|
1110
1110
|
}
|
|
1111
1111
|
} else {
|
|
1112
1112
|
try {
|
|
1113
1113
|
throw Error();
|
|
1114
|
-
} catch (
|
|
1115
|
-
o =
|
|
1114
|
+
} catch ($) {
|
|
1115
|
+
o = $;
|
|
1116
1116
|
}
|
|
1117
1117
|
e();
|
|
1118
1118
|
}
|
|
1119
|
-
} catch (
|
|
1120
|
-
if (
|
|
1121
|
-
for (var y =
|
|
1119
|
+
} catch ($) {
|
|
1120
|
+
if ($ && o && typeof $.stack == "string") {
|
|
1121
|
+
for (var y = $.stack.split(`
|
|
1122
1122
|
`), v = o.stack.split(`
|
|
1123
1123
|
`), w = y.length - 1, R = v.length - 1; w >= 1 && R >= 0 && y[w] !== v[R]; )
|
|
1124
1124
|
R--;
|
|
@@ -1156,18 +1156,18 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1156
1156
|
if (typeof e == "string")
|
|
1157
1157
|
return ke(e);
|
|
1158
1158
|
switch (e) {
|
|
1159
|
-
case
|
|
1159
|
+
case U:
|
|
1160
1160
|
return ke("Suspense");
|
|
1161
|
-
case
|
|
1161
|
+
case G:
|
|
1162
1162
|
return ke("SuspenseList");
|
|
1163
1163
|
}
|
|
1164
1164
|
if (typeof e == "object")
|
|
1165
1165
|
switch (e.$$typeof) {
|
|
1166
|
-
case
|
|
1166
|
+
case V:
|
|
1167
1167
|
return Er(e.render);
|
|
1168
1168
|
case Y:
|
|
1169
1169
|
return Te(e.type, t, n);
|
|
1170
|
-
case
|
|
1170
|
+
case Z: {
|
|
1171
1171
|
var o = e, u = o._payload, d = o._init;
|
|
1172
1172
|
try {
|
|
1173
1173
|
return Te(d(u), t, n);
|
|
@@ -1211,11 +1211,11 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1211
1211
|
} else
|
|
1212
1212
|
_e(null);
|
|
1213
1213
|
}
|
|
1214
|
-
var
|
|
1215
|
-
|
|
1214
|
+
var Ve;
|
|
1215
|
+
Ve = !1;
|
|
1216
1216
|
function ht() {
|
|
1217
|
-
if (
|
|
1218
|
-
var e =
|
|
1217
|
+
if (z.current) {
|
|
1218
|
+
var e = ee(z.current.type);
|
|
1219
1219
|
if (e)
|
|
1220
1220
|
return `
|
|
1221
1221
|
|
|
@@ -1253,7 +1253,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1253
1253
|
if (!vt[n]) {
|
|
1254
1254
|
vt[n] = !0;
|
|
1255
1255
|
var o = "";
|
|
1256
|
-
e && e._owner && e._owner !==
|
|
1256
|
+
e && e._owner && e._owner !== z.current && (o = " It was passed a child from " + ee(e._owner.type) + "."), ce(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), ce(null);
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
@@ -1282,18 +1282,18 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1282
1282
|
var n;
|
|
1283
1283
|
if (typeof t == "function")
|
|
1284
1284
|
n = t.propTypes;
|
|
1285
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
1285
|
+
else if (typeof t == "object" && (t.$$typeof === V || // Note: Memo only checks outer props here.
|
|
1286
1286
|
// Inner props are checked in the reconciler.
|
|
1287
1287
|
t.$$typeof === Y))
|
|
1288
1288
|
n = t.propTypes;
|
|
1289
1289
|
else
|
|
1290
1290
|
return;
|
|
1291
1291
|
if (n) {
|
|
1292
|
-
var o =
|
|
1292
|
+
var o = ee(t);
|
|
1293
1293
|
Cr(n, e.props, "prop", o, e);
|
|
1294
|
-
} else if (t.PropTypes !== void 0 && !
|
|
1295
|
-
|
|
1296
|
-
var u =
|
|
1294
|
+
} else if (t.PropTypes !== void 0 && !Ve) {
|
|
1295
|
+
Ve = !0;
|
|
1296
|
+
var u = ee(t);
|
|
1297
1297
|
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
1298
1298
|
}
|
|
1299
1299
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -1319,9 +1319,9 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1319
1319
|
var d = Sr(t);
|
|
1320
1320
|
d ? u += d : u += ht();
|
|
1321
1321
|
var l;
|
|
1322
|
-
e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (
|
|
1322
|
+
e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (ee(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, u);
|
|
1323
1323
|
}
|
|
1324
|
-
var y =
|
|
1324
|
+
var y = Vt.apply(this, arguments);
|
|
1325
1325
|
if (y == null)
|
|
1326
1326
|
return y;
|
|
1327
1327
|
if (o)
|
|
@@ -1332,10 +1332,10 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1332
1332
|
var wt = !1;
|
|
1333
1333
|
function Tr(e) {
|
|
1334
1334
|
var t = Et.bind(null, e);
|
|
1335
|
-
return t.type = e, wt || (wt = !0,
|
|
1335
|
+
return t.type = e, wt || (wt = !0, X("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
|
|
1336
1336
|
enumerable: !1,
|
|
1337
1337
|
get: function() {
|
|
1338
|
-
return
|
|
1338
|
+
return X("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
1339
1339
|
value: e
|
|
1340
1340
|
}), e;
|
|
1341
1341
|
}
|
|
@@ -1356,7 +1356,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1356
1356
|
} finally {
|
|
1357
1357
|
if (K.transition = n, n === null && o._updatedFibers) {
|
|
1358
1358
|
var u = o._updatedFibers.size;
|
|
1359
|
-
u > 10 &&
|
|
1359
|
+
u > 10 && X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
@@ -1379,25 +1379,25 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1379
1379
|
function St(e) {
|
|
1380
1380
|
{
|
|
1381
1381
|
var t = le;
|
|
1382
|
-
le++,
|
|
1383
|
-
var n =
|
|
1382
|
+
le++, F.current === null && (F.current = []);
|
|
1383
|
+
var n = F.isBatchingLegacy, o;
|
|
1384
1384
|
try {
|
|
1385
|
-
if (
|
|
1386
|
-
var u =
|
|
1387
|
-
u !== null && (
|
|
1385
|
+
if (F.isBatchingLegacy = !0, o = e(), !n && F.didScheduleLegacyUpdate) {
|
|
1386
|
+
var u = F.current;
|
|
1387
|
+
u !== null && (F.didScheduleLegacyUpdate = !1, Ye(u));
|
|
1388
1388
|
}
|
|
1389
1389
|
} catch (T) {
|
|
1390
1390
|
throw je(t), T;
|
|
1391
1391
|
} finally {
|
|
1392
|
-
|
|
1392
|
+
F.isBatchingLegacy = n;
|
|
1393
1393
|
}
|
|
1394
1394
|
if (o !== null && typeof o == "object" && typeof o.then == "function") {
|
|
1395
1395
|
var d = o, l = !1, y = {
|
|
1396
1396
|
then: function(T, A) {
|
|
1397
|
-
l = !0, d.then(function(
|
|
1398
|
-
je(t), le === 0 ?
|
|
1399
|
-
}, function(
|
|
1400
|
-
je(t), A(
|
|
1397
|
+
l = !0, d.then(function($) {
|
|
1398
|
+
je(t), le === 0 ? ze($, T, A) : T($);
|
|
1399
|
+
}, function($) {
|
|
1400
|
+
je(t), A($);
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
1403
|
};
|
|
@@ -1408,11 +1408,11 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1408
1408
|
} else {
|
|
1409
1409
|
var v = o;
|
|
1410
1410
|
if (je(t), le === 0) {
|
|
1411
|
-
var w =
|
|
1412
|
-
w !== null && (Ye(w),
|
|
1411
|
+
var w = F.current;
|
|
1412
|
+
w !== null && (Ye(w), F.current = null);
|
|
1413
1413
|
var R = {
|
|
1414
1414
|
then: function(T, A) {
|
|
1415
|
-
|
|
1415
|
+
F.current === null ? (F.current = [], ze(v, T, A)) : T(v);
|
|
1416
1416
|
}
|
|
1417
1417
|
};
|
|
1418
1418
|
return R;
|
|
@@ -1430,13 +1430,13 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1430
1430
|
function je(e) {
|
|
1431
1431
|
e !== le - 1 && f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), le = e;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function ze(e, t, n) {
|
|
1434
1434
|
{
|
|
1435
|
-
var o =
|
|
1435
|
+
var o = F.current;
|
|
1436
1436
|
if (o !== null)
|
|
1437
1437
|
try {
|
|
1438
1438
|
Ye(o), jr(function() {
|
|
1439
|
-
o.length === 0 ? (
|
|
1439
|
+
o.length === 0 ? (F.current = null, t(e)) : ze(e, t, n);
|
|
1440
1440
|
});
|
|
1441
1441
|
} catch (u) {
|
|
1442
1442
|
n(u);
|
|
@@ -1465,14 +1465,14 @@ Check the top-level render call using <` + n + ">.");
|
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
var Ar = Et,
|
|
1468
|
+
var Ar = Et, Dr = Pr, Mr = Tr, Fr = {
|
|
1469
1469
|
map: Se,
|
|
1470
1470
|
forEach: Bt,
|
|
1471
1471
|
count: Kt,
|
|
1472
1472
|
toArray: Gt,
|
|
1473
1473
|
only: Jt
|
|
1474
1474
|
};
|
|
1475
|
-
a.Children =
|
|
1475
|
+
a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = I, a.PureComponent = C, a.StrictMode = j, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Dr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Mr, a.createRef = Dt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1476
1476
|
}();
|
|
1477
1477
|
}(Pt, Pt.exports)), Pt.exports;
|
|
1478
1478
|
}
|
|
@@ -1532,14 +1532,14 @@ ${c.map((a) => `- ${a.path.join("/")}: ${a.message}`).join(`
|
|
|
1532
1532
|
}
|
|
1533
1533
|
else
|
|
1534
1534
|
return c + "";
|
|
1535
|
-
}, fe = i.string().trim().min(1, { message: "Cannot be blank" }), ne = i.string().trim().optional(),
|
|
1535
|
+
}, fe = i.string().trim().min(1, { message: "Cannot be blank" }), ne = i.string().trim().optional(), Vr = (c) => i.nullable(c.optional());
|
|
1536
1536
|
var It = /* @__PURE__ */ ((c) => (c.FIRST_NAME = "firstName", c.LAST_NAME = "lastName", c.EMAIL = "email", c.ZIP_CODE = "zipCode", c.CITY = "city", c.STATE = "state", c.COUNTRY = "country", c.ADDRESS = "address", c.PHONE = "phone", c.PROMOTION_CODE = "promotionCode", c))(It || {});
|
|
1537
1537
|
const tn = i.nativeEnum(It);
|
|
1538
1538
|
var rn = /* @__PURE__ */ ((c) => (c.CARD_NUMBER = "cardNumber", c.CARD_EXPIRY = "cardExpiry", c.CARD_CVC = "cardCvc", c))(rn || {});
|
|
1539
1539
|
const nn = i.nativeEnum(rn), Tn = i.union([tn, nn]), on = i.object({
|
|
1540
1540
|
provider: i.string(),
|
|
1541
|
-
processor_name:
|
|
1542
|
-
metadata:
|
|
1541
|
+
processor_name: Vr(i.string()),
|
|
1542
|
+
metadata: Vr(i.record(i.string(), i.any()))
|
|
1543
1543
|
}), Pn = i.object({
|
|
1544
1544
|
id: i.string()
|
|
1545
1545
|
});
|
|
@@ -1557,7 +1557,7 @@ i.object({
|
|
|
1557
1557
|
margin: ne,
|
|
1558
1558
|
padding: ne
|
|
1559
1559
|
});
|
|
1560
|
-
const
|
|
1560
|
+
const J = i.enum([
|
|
1561
1561
|
// Element -> Form
|
|
1562
1562
|
"LAYOUT",
|
|
1563
1563
|
"LOADED",
|
|
@@ -1578,59 +1578,59 @@ const G = i.enum([
|
|
|
1578
1578
|
"TOKENIZE",
|
|
1579
1579
|
"CHECKOUT",
|
|
1580
1580
|
"START_PAYMENT_FLOW"
|
|
1581
|
-
]), In =
|
|
1581
|
+
]), In = J.extract(["TOKENIZE_STARTED", "CHECKOUT_STARTED"]), jn = i.object({ type: In }), An = J.extract(["BLUR", "FOCUS", "CHANGE"]), Dn = i.object({
|
|
1582
1582
|
type: An,
|
|
1583
1583
|
elementType: nn
|
|
1584
|
-
}),
|
|
1585
|
-
type:
|
|
1584
|
+
}), Mn = J.extract(["LOAD_ERROR", "TOKENIZE_ERROR", "CHECKOUT_ERROR"]), Fn = i.object({
|
|
1585
|
+
type: Mn,
|
|
1586
1586
|
message: fe
|
|
1587
|
-
}),
|
|
1588
|
-
type:
|
|
1587
|
+
}), $n = J.extract(["VALIDATION_ERROR"]), xn = i.object({
|
|
1588
|
+
type: $n,
|
|
1589
1589
|
elementType: Tn,
|
|
1590
1590
|
errors: i.array(i.string())
|
|
1591
1591
|
}), Ln = i.object({
|
|
1592
|
-
type: i.literal(
|
|
1592
|
+
type: i.literal(J.enum.LAYOUT),
|
|
1593
1593
|
height: fe
|
|
1594
1594
|
}), Nn = i.object({
|
|
1595
|
-
type: i.literal(
|
|
1595
|
+
type: i.literal(J.enum.LOADED),
|
|
1596
1596
|
sessionId: fe,
|
|
1597
1597
|
totalAmountAtoms: i.number(),
|
|
1598
1598
|
currency: ne,
|
|
1599
1599
|
checkoutPaymentMethods: i.array(on)
|
|
1600
1600
|
}), Un = i.object({
|
|
1601
|
-
type: i.literal(
|
|
1601
|
+
type: i.literal(J.enum.PAYMENT_FLOW_STARTED),
|
|
1602
1602
|
nextActionMetadata: i.record(i.string(), i.any()),
|
|
1603
1603
|
paymentFlowMetadata: i.any().optional(),
|
|
1604
1604
|
startPFMetadata: i.optional(i.record(i.string(), i.any()))
|
|
1605
|
-
}), zn = i.object({
|
|
1606
|
-
type: i.literal(G.enum.SETUP_PAYMENT_METHOD_SUCCESS),
|
|
1607
|
-
paymentMethodId: i.string()
|
|
1608
1605
|
}), Vn = i.object({
|
|
1606
|
+
type: i.literal(J.enum.SETUP_PAYMENT_METHOD_SUCCESS),
|
|
1607
|
+
paymentMethodId: i.string()
|
|
1608
|
+
}), zn = i.object({
|
|
1609
1609
|
firstName: fe,
|
|
1610
1610
|
lastName: fe,
|
|
1611
1611
|
email: fe,
|
|
1612
1612
|
zipCode: fe,
|
|
1613
1613
|
country: fe,
|
|
1614
1614
|
promotionCode: ne
|
|
1615
|
-
}), qn =
|
|
1615
|
+
}), qn = J.extract(["TOKENIZE", "CHECKOUT", "START_PAYMENT_FLOW"]), an = i.object({
|
|
1616
1616
|
type: qn,
|
|
1617
1617
|
sessionId: fe,
|
|
1618
1618
|
checkoutPaymentMethod: on,
|
|
1619
1619
|
paymentFlowMetadata: i.any().optional(),
|
|
1620
1620
|
doNotUseLegacyCCFlow: i.boolean().optional(),
|
|
1621
1621
|
existingCCPMId: ne
|
|
1622
|
-
}).extend(
|
|
1623
|
-
type: i.literal(
|
|
1622
|
+
}).extend(zn.shape), Yn = i.object({
|
|
1623
|
+
type: i.literal(J.enum.TOKENIZE_SUCCESS),
|
|
1624
1624
|
isReadyForCheckout: i.boolean()
|
|
1625
1625
|
}), Hn = i.object({
|
|
1626
|
-
type: i.literal(
|
|
1626
|
+
type: i.literal(J.enum.CHECKOUT_SUCCESS),
|
|
1627
1627
|
invoiceUrls: i.array(i.string()),
|
|
1628
1628
|
subscriptionIds: i.array(i.string()),
|
|
1629
1629
|
customerId: i.string()
|
|
1630
1630
|
}), Wn = i.discriminatedUnion("type", [
|
|
1631
1631
|
jn,
|
|
1632
|
-
|
|
1633
|
-
|
|
1632
|
+
Dn,
|
|
1633
|
+
Fn,
|
|
1634
1634
|
xn,
|
|
1635
1635
|
Ln,
|
|
1636
1636
|
Nn,
|
|
@@ -1638,7 +1638,7 @@ const G = i.enum([
|
|
|
1638
1638
|
Yn,
|
|
1639
1639
|
Hn,
|
|
1640
1640
|
Un,
|
|
1641
|
-
|
|
1641
|
+
Vn
|
|
1642
1642
|
]), Kn = i.object({
|
|
1643
1643
|
payload: Wn,
|
|
1644
1644
|
nonce: fe,
|
|
@@ -1655,7 +1655,7 @@ i.object({
|
|
|
1655
1655
|
});
|
|
1656
1656
|
i.object({
|
|
1657
1657
|
secure_token: i.string(),
|
|
1658
|
-
existing_cc_pm_id:
|
|
1658
|
+
existing_cc_pm_id: Vr(i.string())
|
|
1659
1659
|
});
|
|
1660
1660
|
const Bn = i.object({
|
|
1661
1661
|
payment_methods: i.array(Pn)
|
|
@@ -1672,14 +1672,14 @@ const Bn = i.object({
|
|
|
1672
1672
|
}, Jn = {
|
|
1673
1673
|
usd: "usd",
|
|
1674
1674
|
brl: "brl"
|
|
1675
|
-
},
|
|
1675
|
+
}, zr = async (c) => {
|
|
1676
1676
|
for (let a = 0; a < 10; a++)
|
|
1677
1677
|
Wr() || await Zn(500);
|
|
1678
1678
|
if (!Wr())
|
|
1679
1679
|
throw new Error("Stripe JS not found.");
|
|
1680
1680
|
return new Stripe(c);
|
|
1681
1681
|
}, sn = async (c, a, p, m) => {
|
|
1682
|
-
const g = await
|
|
1682
|
+
const g = await zr(c), b = Jn[p.toLowerCase().trim()];
|
|
1683
1683
|
return g.paymentRequest({
|
|
1684
1684
|
// TODO: replace this with stripe account country as soon as we support it
|
|
1685
1685
|
country: "US",
|
|
@@ -1717,7 +1717,7 @@ const Bn = i.object({
|
|
|
1717
1717
|
throw new Error(`Invalid next action metadata format: ${JSON.stringify(p)}`);
|
|
1718
1718
|
if (a.paymentMethod.id !== c.paymentFlowMetadata.stripePmId)
|
|
1719
1719
|
throw new Error(`PM ID mismatch: ${a.paymentMethod.id} != ${c.paymentFlowMetadata.stripePmId}`);
|
|
1720
|
-
const m = await (await
|
|
1720
|
+
const m = await (await zr(p.stripe_pk)).confirmCardSetup(p.client_secret, {
|
|
1721
1721
|
payment_method: c.paymentFlowMetadata.stripePmId
|
|
1722
1722
|
});
|
|
1723
1723
|
if (m.error)
|
|
@@ -1725,14 +1725,14 @@ const Bn = i.object({
|
|
|
1725
1725
|
a.complete("success");
|
|
1726
1726
|
}, to = async (c) => {
|
|
1727
1727
|
var a, p, m, g;
|
|
1728
|
-
const b = c.nextActionMetadata, j = await (await
|
|
1728
|
+
const b = c.nextActionMetadata, j = await (await zr(b.stripe_pk)).confirmCardSetup(b.client_secret, {
|
|
1729
1729
|
payment_method: b.stripe_pm_id
|
|
1730
1730
|
}), I = (a = j.setupIntent) == null ? void 0 : a.status;
|
|
1731
1731
|
if (I !== "succeeded")
|
|
1732
1732
|
throw I === "canceled" ? new Error("Payment cancelled, please click Submit again to pay") : new Error(
|
|
1733
1733
|
`${((p = j.error) == null ? void 0 : p.message) ?? ((g = (m = j.setupIntent) == null ? void 0 : m.last_setup_error) == null ? void 0 : g.message) ?? "Payment failed, please click submit again to pay."}`
|
|
1734
1734
|
);
|
|
1735
|
-
}, ro = (c) => JSON.stringify(c), un = (c, a) => Array.from(c.querySelectorAll("
|
|
1735
|
+
}, ro = (c) => JSON.stringify(c), un = (c, a) => Array.from(c.querySelectorAll("[data-opid]") ?? []).reduce((p, m) => {
|
|
1736
1736
|
const g = m.getAttribute("data-opid");
|
|
1737
1737
|
return g ? { ...p, [g]: m.value } : p;
|
|
1738
1738
|
}, a), At = (c, a, p, m, g, b, j) => {
|
|
@@ -1743,14 +1743,14 @@ const Bn = i.object({
|
|
|
1743
1743
|
paymentFlowMetadata: j,
|
|
1744
1744
|
doNotUseLegacyCCFlow: b
|
|
1745
1745
|
});
|
|
1746
|
-
(g.provider === "apple_pay" || g.provider === "google_pay") && (I[It.ZIP_CODE] || (I[It.ZIP_CODE] = "00000"));
|
|
1746
|
+
(g.provider === "apple_pay" || g.provider === "google_pay" || g.provider === "stripe_link") && (I[It.ZIP_CODE] || (I[It.ZIP_CODE] = "00000"));
|
|
1747
1747
|
const x = an.safeParse(I);
|
|
1748
1748
|
if (x.success)
|
|
1749
1749
|
return x.data;
|
|
1750
1750
|
{
|
|
1751
|
-
const q = x.error.format(),
|
|
1752
|
-
for (const [
|
|
1753
|
-
m(
|
|
1751
|
+
const q = x.error.format(), V = Gn(q);
|
|
1752
|
+
for (const [U, G] of Object.entries(V))
|
|
1753
|
+
m(U, G, U);
|
|
1754
1754
|
return null;
|
|
1755
1755
|
}
|
|
1756
1756
|
}, no = (c) => {
|
|
@@ -1768,7 +1768,7 @@ const Bn = i.object({
|
|
|
1768
1768
|
};
|
|
1769
1769
|
c.postMessage(JSON.stringify(b), g);
|
|
1770
1770
|
};
|
|
1771
|
-
var
|
|
1771
|
+
var M = {};
|
|
1772
1772
|
/**
|
|
1773
1773
|
* @license React
|
|
1774
1774
|
* react.production.min.js
|
|
@@ -1780,18 +1780,18 @@ var D = {};
|
|
|
1780
1780
|
*/
|
|
1781
1781
|
var Br;
|
|
1782
1782
|
function oo() {
|
|
1783
|
-
if (Br) return
|
|
1783
|
+
if (Br) return M;
|
|
1784
1784
|
Br = 1;
|
|
1785
|
-
var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"),
|
|
1786
|
-
function
|
|
1787
|
-
return r === null || typeof r != "object" ? null : (r =
|
|
1785
|
+
var c = Symbol.for("react.element"), a = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), j = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), q = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), U = Symbol.iterator;
|
|
1786
|
+
function G(r) {
|
|
1787
|
+
return r === null || typeof r != "object" ? null : (r = U && r[U] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
1788
1788
|
}
|
|
1789
1789
|
var Y = { isMounted: function() {
|
|
1790
1790
|
return !1;
|
|
1791
1791
|
}, enqueueForceUpdate: function() {
|
|
1792
1792
|
}, enqueueReplaceState: function() {
|
|
1793
1793
|
}, enqueueSetState: function() {
|
|
1794
|
-
} },
|
|
1794
|
+
} }, Z = Object.assign, ve = {};
|
|
1795
1795
|
function W(r, s, h) {
|
|
1796
1796
|
this.props = r, this.context = s, this.refs = ve, this.updater = h || Y;
|
|
1797
1797
|
}
|
|
@@ -1808,11 +1808,11 @@ function oo() {
|
|
|
1808
1808
|
this.props = r, this.context = s, this.refs = ve, this.updater = h || Y;
|
|
1809
1809
|
}
|
|
1810
1810
|
var ae = oe.prototype = new ge();
|
|
1811
|
-
ae.constructor = oe,
|
|
1812
|
-
var K = Array.isArray,
|
|
1811
|
+
ae.constructor = oe, Z(ae, W.prototype), ae.isPureReactComponent = !0;
|
|
1812
|
+
var K = Array.isArray, F = Object.prototype.hasOwnProperty, z = { current: null }, Q = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1813
1813
|
function te(r, s, h) {
|
|
1814
1814
|
var _, E = {}, P = null, k = null;
|
|
1815
|
-
if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s)
|
|
1815
|
+
if (s != null) for (_ in s.ref !== void 0 && (k = s.ref), s.key !== void 0 && (P = "" + s.key), s) F.call(s, _) && !Q.hasOwnProperty(_) && (E[_] = s[_]);
|
|
1816
1816
|
var O = arguments.length - 2;
|
|
1817
1817
|
if (O === 1) E.children = h;
|
|
1818
1818
|
else if (1 < O) {
|
|
@@ -1820,7 +1820,7 @@ function oo() {
|
|
|
1820
1820
|
E.children = C;
|
|
1821
1821
|
}
|
|
1822
1822
|
if (r && r.defaultProps) for (_ in O = r.defaultProps, O) E[_] === void 0 && (E[_] = O[_]);
|
|
1823
|
-
return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner:
|
|
1823
|
+
return { $$typeof: c, type: r, key: P, ref: k, props: E, _owner: z.current };
|
|
1824
1824
|
}
|
|
1825
1825
|
function _e(r, s) {
|
|
1826
1826
|
return { $$typeof: c, type: r.type, key: s, ref: r.ref, props: r.props, _owner: r._owner };
|
|
@@ -1828,7 +1828,7 @@ function oo() {
|
|
|
1828
1828
|
function de(r) {
|
|
1829
1829
|
return typeof r == "object" && r !== null && r.$$typeof === c;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function De(r) {
|
|
1832
1832
|
var s = { "=": "=0", ":": "=2" };
|
|
1833
1833
|
return "$" + r.replace(/[=:]/g, function(h) {
|
|
1834
1834
|
return s[h];
|
|
@@ -1836,7 +1836,7 @@ function oo() {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
var be = /\/+/g;
|
|
1838
1838
|
function pe(r, s) {
|
|
1839
|
-
return typeof r == "object" && r !== null && r.key != null ?
|
|
1839
|
+
return typeof r == "object" && r !== null && r.key != null ? De("" + r.key) : s.toString(36);
|
|
1840
1840
|
}
|
|
1841
1841
|
function ie(r, s, h, _, E) {
|
|
1842
1842
|
var P = typeof r;
|
|
@@ -1863,7 +1863,7 @@ function oo() {
|
|
|
1863
1863
|
var C = _ + pe(P, O);
|
|
1864
1864
|
k += ie(P, s, h, C, E);
|
|
1865
1865
|
}
|
|
1866
|
-
else if (C =
|
|
1866
|
+
else if (C = G(r), typeof C == "function") for (r = C.call(r), O = 0; !(P = r.next()).done; ) P = P.value, C = _ + pe(P, O++), k += ie(P, s, h, C, E);
|
|
1867
1867
|
else if (P === "object") throw s = String(r), Error("Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead.");
|
|
1868
1868
|
return k;
|
|
1869
1869
|
}
|
|
@@ -1874,7 +1874,7 @@ function oo() {
|
|
|
1874
1874
|
return s.call(h, P, E++);
|
|
1875
1875
|
}), _;
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function X(r) {
|
|
1878
1878
|
if (r._status === -1) {
|
|
1879
1879
|
var s = r._result;
|
|
1880
1880
|
s = s(), s.then(function(h) {
|
|
@@ -1886,11 +1886,11 @@ function oo() {
|
|
|
1886
1886
|
if (r._status === 1) return r._result.default;
|
|
1887
1887
|
throw r._result;
|
|
1888
1888
|
}
|
|
1889
|
-
var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner:
|
|
1889
|
+
var f = { current: null }, re = { transition: null }, Ee = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
|
|
1890
1890
|
function se() {
|
|
1891
1891
|
throw Error("act(...) is not supported in production builds of React.");
|
|
1892
1892
|
}
|
|
1893
|
-
return
|
|
1893
|
+
return M.Children = { map: H, forEach: function(r, s, h) {
|
|
1894
1894
|
H(r, function() {
|
|
1895
1895
|
s.apply(this, arguments);
|
|
1896
1896
|
}, h);
|
|
@@ -1906,12 +1906,12 @@ function oo() {
|
|
|
1906
1906
|
}, only: function(r) {
|
|
1907
1907
|
if (!de(r)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
1908
1908
|
return r;
|
|
1909
|
-
} },
|
|
1909
|
+
} }, M.Component = W, M.Fragment = p, M.Profiler = g, M.PureComponent = oe, M.StrictMode = m, M.Suspense = x, M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ee, M.act = se, M.cloneElement = function(r, s, h) {
|
|
1910
1910
|
if (r == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
|
|
1911
|
-
var _ =
|
|
1911
|
+
var _ = Z({}, r.props), E = r.key, P = r.ref, k = r._owner;
|
|
1912
1912
|
if (s != null) {
|
|
1913
|
-
if (s.ref !== void 0 && (P = s.ref, k =
|
|
1914
|
-
for (C in s)
|
|
1913
|
+
if (s.ref !== void 0 && (P = s.ref, k = z.current), s.key !== void 0 && (E = "" + s.key), r.type && r.type.defaultProps) var O = r.type.defaultProps;
|
|
1914
|
+
for (C in s) F.call(s, C) && !Q.hasOwnProperty(C) && (_[C] = s[C] === void 0 && O !== void 0 ? O[C] : s[C]);
|
|
1915
1915
|
}
|
|
1916
1916
|
var C = arguments.length - 2;
|
|
1917
1917
|
if (C === 1) _.children = h;
|
|
@@ -1921,20 +1921,20 @@ function oo() {
|
|
|
1921
1921
|
_.children = O;
|
|
1922
1922
|
}
|
|
1923
1923
|
return { $$typeof: c, type: r.type, key: E, ref: P, props: _, _owner: k };
|
|
1924
|
-
},
|
|
1924
|
+
}, M.createContext = function(r) {
|
|
1925
1925
|
return r = { $$typeof: j, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: b, _context: r }, r.Consumer = r;
|
|
1926
|
-
},
|
|
1926
|
+
}, M.createElement = te, M.createFactory = function(r) {
|
|
1927
1927
|
var s = te.bind(null, r);
|
|
1928
1928
|
return s.type = r, s;
|
|
1929
|
-
},
|
|
1929
|
+
}, M.createRef = function() {
|
|
1930
1930
|
return { current: null };
|
|
1931
|
-
},
|
|
1931
|
+
}, M.forwardRef = function(r) {
|
|
1932
1932
|
return { $$typeof: I, render: r };
|
|
1933
|
-
},
|
|
1934
|
-
return { $$typeof:
|
|
1935
|
-
},
|
|
1933
|
+
}, M.isValidElement = de, M.lazy = function(r) {
|
|
1934
|
+
return { $$typeof: V, _payload: { _status: -1, _result: r }, _init: X };
|
|
1935
|
+
}, M.memo = function(r, s) {
|
|
1936
1936
|
return { $$typeof: q, type: r, compare: s === void 0 ? null : s };
|
|
1937
|
-
},
|
|
1937
|
+
}, M.startTransition = function(r) {
|
|
1938
1938
|
var s = re.transition;
|
|
1939
1939
|
re.transition = {};
|
|
1940
1940
|
try {
|
|
@@ -1942,36 +1942,36 @@ function oo() {
|
|
|
1942
1942
|
} finally {
|
|
1943
1943
|
re.transition = s;
|
|
1944
1944
|
}
|
|
1945
|
-
},
|
|
1945
|
+
}, M.unstable_act = se, M.useCallback = function(r, s) {
|
|
1946
1946
|
return f.current.useCallback(r, s);
|
|
1947
|
-
},
|
|
1947
|
+
}, M.useContext = function(r) {
|
|
1948
1948
|
return f.current.useContext(r);
|
|
1949
|
-
},
|
|
1950
|
-
},
|
|
1949
|
+
}, M.useDebugValue = function() {
|
|
1950
|
+
}, M.useDeferredValue = function(r) {
|
|
1951
1951
|
return f.current.useDeferredValue(r);
|
|
1952
|
-
},
|
|
1952
|
+
}, M.useEffect = function(r, s) {
|
|
1953
1953
|
return f.current.useEffect(r, s);
|
|
1954
|
-
},
|
|
1954
|
+
}, M.useId = function() {
|
|
1955
1955
|
return f.current.useId();
|
|
1956
|
-
},
|
|
1956
|
+
}, M.useImperativeHandle = function(r, s, h) {
|
|
1957
1957
|
return f.current.useImperativeHandle(r, s, h);
|
|
1958
|
-
},
|
|
1958
|
+
}, M.useInsertionEffect = function(r, s) {
|
|
1959
1959
|
return f.current.useInsertionEffect(r, s);
|
|
1960
|
-
},
|
|
1960
|
+
}, M.useLayoutEffect = function(r, s) {
|
|
1961
1961
|
return f.current.useLayoutEffect(r, s);
|
|
1962
|
-
},
|
|
1962
|
+
}, M.useMemo = function(r, s) {
|
|
1963
1963
|
return f.current.useMemo(r, s);
|
|
1964
|
-
},
|
|
1964
|
+
}, M.useReducer = function(r, s, h) {
|
|
1965
1965
|
return f.current.useReducer(r, s, h);
|
|
1966
|
-
},
|
|
1966
|
+
}, M.useRef = function(r) {
|
|
1967
1967
|
return f.current.useRef(r);
|
|
1968
|
-
},
|
|
1968
|
+
}, M.useState = function(r) {
|
|
1969
1969
|
return f.current.useState(r);
|
|
1970
|
-
},
|
|
1970
|
+
}, M.useSyncExternalStore = function(r, s, h) {
|
|
1971
1971
|
return f.current.useSyncExternalStore(r, s, h);
|
|
1972
|
-
},
|
|
1972
|
+
}, M.useTransition = function() {
|
|
1973
1973
|
return f.current.useTransition();
|
|
1974
|
-
},
|
|
1974
|
+
}, M.version = "18.3.1", M;
|
|
1975
1975
|
}
|
|
1976
1976
|
var jt = { exports: {} };
|
|
1977
1977
|
/**
|
|
@@ -1989,7 +1989,7 @@ function ao() {
|
|
|
1989
1989
|
return Gr || (Gr = 1, function(c, a) {
|
|
1990
1990
|
process.env.NODE_ENV !== "production" && function() {
|
|
1991
1991
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1992
|
-
var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"),
|
|
1992
|
+
var p = "18.3.1", m = Symbol.for("react.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), q = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), W = Symbol.iterator, ge = "@@iterator";
|
|
1993
1993
|
function oe(e) {
|
|
1994
1994
|
if (e === null || typeof e != "object")
|
|
1995
1995
|
return null;
|
|
@@ -2004,36 +2004,36 @@ function ao() {
|
|
|
2004
2004
|
current: null
|
|
2005
2005
|
}, K = {
|
|
2006
2006
|
transition: null
|
|
2007
|
-
},
|
|
2007
|
+
}, F = {
|
|
2008
2008
|
current: null,
|
|
2009
2009
|
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
2010
2010
|
isBatchingLegacy: !1,
|
|
2011
2011
|
didScheduleLegacyUpdate: !1
|
|
2012
|
-
},
|
|
2012
|
+
}, z = {
|
|
2013
2013
|
/**
|
|
2014
2014
|
* @internal
|
|
2015
2015
|
* @type {ReactComponent}
|
|
2016
2016
|
*/
|
|
2017
2017
|
current: null
|
|
2018
|
-
},
|
|
2018
|
+
}, Q = {}, te = null;
|
|
2019
2019
|
function _e(e) {
|
|
2020
2020
|
te = e;
|
|
2021
2021
|
}
|
|
2022
|
-
|
|
2022
|
+
Q.setExtraStackFrame = function(e) {
|
|
2023
2023
|
te = e;
|
|
2024
|
-
},
|
|
2024
|
+
}, Q.getCurrentStack = null, Q.getStackAddendum = function() {
|
|
2025
2025
|
var e = "";
|
|
2026
2026
|
te && (e += te);
|
|
2027
|
-
var t =
|
|
2027
|
+
var t = Q.getCurrentStack;
|
|
2028
2028
|
return t && (e += t() || ""), e;
|
|
2029
2029
|
};
|
|
2030
|
-
var de = !1,
|
|
2030
|
+
var de = !1, De = !1, be = !1, pe = !1, ie = !1, H = {
|
|
2031
2031
|
ReactCurrentDispatcher: ae,
|
|
2032
2032
|
ReactCurrentBatchConfig: K,
|
|
2033
|
-
ReactCurrentOwner:
|
|
2033
|
+
ReactCurrentOwner: z
|
|
2034
2034
|
};
|
|
2035
|
-
H.ReactDebugCurrentFrame =
|
|
2036
|
-
function
|
|
2035
|
+
H.ReactDebugCurrentFrame = Q, H.ReactCurrentActQueue = F;
|
|
2036
|
+
function X(e) {
|
|
2037
2037
|
{
|
|
2038
2038
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
2039
2039
|
n[o - 1] = arguments[o];
|
|
@@ -2145,7 +2145,7 @@ function ao() {
|
|
|
2145
2145
|
}, P = function(e, t) {
|
|
2146
2146
|
Object.defineProperty(_.prototype, e, {
|
|
2147
2147
|
get: function() {
|
|
2148
|
-
|
|
2148
|
+
X("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
2151
|
};
|
|
@@ -2160,23 +2160,23 @@ function ao() {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
var L = C.prototype = new O();
|
|
2162
2162
|
L.constructor = C, s(L, _.prototype), L.isPureReactComponent = !0;
|
|
2163
|
-
function
|
|
2163
|
+
function Dt() {
|
|
2164
2164
|
var e = {
|
|
2165
2165
|
current: null
|
|
2166
2166
|
};
|
|
2167
2167
|
return Object.seal(e), e;
|
|
2168
2168
|
}
|
|
2169
|
-
var
|
|
2169
|
+
var Mt = Array.isArray;
|
|
2170
2170
|
function we(e) {
|
|
2171
|
-
return
|
|
2171
|
+
return Mt(e);
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function Ft(e) {
|
|
2174
2174
|
{
|
|
2175
2175
|
var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
2176
2176
|
return n;
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function $t(e) {
|
|
2180
2180
|
try {
|
|
2181
2181
|
return We(e), !1;
|
|
2182
2182
|
} catch {
|
|
@@ -2187,8 +2187,8 @@ function ao() {
|
|
|
2187
2187
|
return "" + e;
|
|
2188
2188
|
}
|
|
2189
2189
|
function Ce(e) {
|
|
2190
|
-
if (
|
|
2191
|
-
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
2190
|
+
if ($t(e))
|
|
2191
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ft(e)), We(e);
|
|
2192
2192
|
}
|
|
2193
2193
|
function xt(e, t, n) {
|
|
2194
2194
|
var o = e.displayName;
|
|
@@ -2200,7 +2200,7 @@ function ao() {
|
|
|
2200
2200
|
function Ke(e) {
|
|
2201
2201
|
return e.displayName || "Context";
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function ee(e) {
|
|
2204
2204
|
if (e == null)
|
|
2205
2205
|
return null;
|
|
2206
2206
|
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -2216,9 +2216,9 @@ function ao() {
|
|
|
2216
2216
|
return "Profiler";
|
|
2217
2217
|
case j:
|
|
2218
2218
|
return "StrictMode";
|
|
2219
|
-
case
|
|
2219
|
+
case U:
|
|
2220
2220
|
return "Suspense";
|
|
2221
|
-
case
|
|
2221
|
+
case G:
|
|
2222
2222
|
return "SuspenseList";
|
|
2223
2223
|
}
|
|
2224
2224
|
if (typeof e == "object")
|
|
@@ -2229,15 +2229,15 @@ function ao() {
|
|
|
2229
2229
|
case x:
|
|
2230
2230
|
var n = e;
|
|
2231
2231
|
return Ke(n._context) + ".Provider";
|
|
2232
|
-
case
|
|
2232
|
+
case V:
|
|
2233
2233
|
return xt(e, e.render, "ForwardRef");
|
|
2234
2234
|
case Y:
|
|
2235
2235
|
var o = e.displayName || null;
|
|
2236
|
-
return o !== null ? o :
|
|
2237
|
-
case
|
|
2236
|
+
return o !== null ? o : ee(e.type) || "Memo";
|
|
2237
|
+
case Z: {
|
|
2238
2238
|
var u = e, d = u._payload, l = u._init;
|
|
2239
2239
|
try {
|
|
2240
|
-
return
|
|
2240
|
+
return ee(l(d));
|
|
2241
2241
|
} catch {
|
|
2242
2242
|
return null;
|
|
2243
2243
|
}
|
|
@@ -2250,8 +2250,8 @@ function ao() {
|
|
|
2250
2250
|
ref: !0,
|
|
2251
2251
|
__self: !0,
|
|
2252
2252
|
__source: !0
|
|
2253
|
-
}, Ge, Je,
|
|
2254
|
-
|
|
2253
|
+
}, Ge, Je, Me;
|
|
2254
|
+
Me = {};
|
|
2255
2255
|
function Ze(e) {
|
|
2256
2256
|
if (ye.call(e, "ref")) {
|
|
2257
2257
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -2287,12 +2287,12 @@ function ao() {
|
|
|
2287
2287
|
});
|
|
2288
2288
|
}
|
|
2289
2289
|
function Ut(e) {
|
|
2290
|
-
if (typeof e.ref == "string" &&
|
|
2291
|
-
var t =
|
|
2292
|
-
|
|
2290
|
+
if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
|
|
2291
|
+
var t = ee(z.current.type);
|
|
2292
|
+
Me[t] || (f('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, e.ref), Me[t] = !0);
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
2295
|
-
var
|
|
2295
|
+
var Fe = function(e, t, n, o, u, d, l) {
|
|
2296
2296
|
var y = {
|
|
2297
2297
|
// This tag allows us to uniquely identify this as a React Element
|
|
2298
2298
|
$$typeof: m,
|
|
@@ -2321,7 +2321,7 @@ function ao() {
|
|
|
2321
2321
|
value: u
|
|
2322
2322
|
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
2323
2323
|
};
|
|
2324
|
-
function
|
|
2324
|
+
function Vt(e, t, n) {
|
|
2325
2325
|
var o, u = {}, d = null, l = null, y = null, v = null;
|
|
2326
2326
|
if (t != null) {
|
|
2327
2327
|
Ze(t) && (l = t.ref, Ut(t)), Qe(t) && (Ce(t.key), d = "" + t.key), y = t.__self === void 0 ? null : t.__self, v = t.__source === void 0 ? null : t.__source;
|
|
@@ -2345,10 +2345,10 @@ function ao() {
|
|
|
2345
2345
|
var A = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
2346
2346
|
d && Lt(u, A), l && Nt(u, A);
|
|
2347
2347
|
}
|
|
2348
|
-
return
|
|
2348
|
+
return Fe(e, d, l, y, v, z.current, u);
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2351
|
-
var n =
|
|
2350
|
+
function zt(e, t) {
|
|
2351
|
+
var n = Fe(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
|
|
2352
2352
|
return n;
|
|
2353
2353
|
}
|
|
2354
2354
|
function qt(e, t, n) {
|
|
@@ -2356,7 +2356,7 @@ function ao() {
|
|
|
2356
2356
|
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
2357
2357
|
var o, u = s({}, e.props), d = e.key, l = e.ref, y = e._self, v = e._source, w = e._owner;
|
|
2358
2358
|
if (t != null) {
|
|
2359
|
-
Ze(t) && (l = t.ref, w =
|
|
2359
|
+
Ze(t) && (l = t.ref, w = z.current), Qe(t) && (Ce(t.key), d = "" + t.key);
|
|
2360
2360
|
var R;
|
|
2361
2361
|
e.type && e.type.defaultProps && (R = e.type.defaultProps);
|
|
2362
2362
|
for (o in t)
|
|
@@ -2370,7 +2370,7 @@ function ao() {
|
|
|
2370
2370
|
T[A] = arguments[A + 2];
|
|
2371
2371
|
u.children = T;
|
|
2372
2372
|
}
|
|
2373
|
-
return
|
|
2373
|
+
return Fe(e.type, d, l, y, v, w, u);
|
|
2374
2374
|
}
|
|
2375
2375
|
function ue(e) {
|
|
2376
2376
|
return typeof e == "object" && e !== null && e.$$typeof === m;
|
|
@@ -2389,7 +2389,7 @@ function ao() {
|
|
|
2389
2389
|
function tt(e) {
|
|
2390
2390
|
return e.replace(Wt, "$&/");
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function $e(e, t) {
|
|
2393
2393
|
return typeof e == "object" && e !== null && e.key != null ? (Ce(e.key), Ht("" + e.key)) : t.toString(36);
|
|
2394
2394
|
}
|
|
2395
2395
|
function Re(e, t, n, o, u) {
|
|
@@ -2412,13 +2412,13 @@ function ao() {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
2414
|
if (l) {
|
|
2415
|
-
var y = e, v = u(y), w = o === "" ? Xe +
|
|
2415
|
+
var y = e, v = u(y), w = o === "" ? Xe + $e(y, 0) : o;
|
|
2416
2416
|
if (we(v)) {
|
|
2417
2417
|
var R = "";
|
|
2418
2418
|
w != null && (R = tt(w) + "/"), Re(v, t, R, "", function(Lr) {
|
|
2419
2419
|
return Lr;
|
|
2420
2420
|
});
|
|
2421
|
-
} else v != null && (ue(v) && (v.key && (!y || y.key !== v.key) && Ce(v.key), v =
|
|
2421
|
+
} else v != null && (ue(v) && (v.key && (!y || y.key !== v.key) && Ce(v.key), v = zt(
|
|
2422
2422
|
v,
|
|
2423
2423
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
2424
2424
|
// traverseAllChildren used to do for objects as children
|
|
@@ -2431,17 +2431,17 @@ function ao() {
|
|
|
2431
2431
|
)), t.push(v));
|
|
2432
2432
|
return 1;
|
|
2433
2433
|
}
|
|
2434
|
-
var S, T, A = 0,
|
|
2434
|
+
var S, T, A = 0, $ = o === "" ? Xe : o + Yt;
|
|
2435
2435
|
if (we(e))
|
|
2436
2436
|
for (var Ae = 0; Ae < e.length; Ae++)
|
|
2437
|
-
S = e[Ae], T =
|
|
2437
|
+
S = e[Ae], T = $ + $e(S, Ae), A += Re(S, t, n, T, u);
|
|
2438
2438
|
else {
|
|
2439
2439
|
var He = oe(e);
|
|
2440
2440
|
if (typeof He == "function") {
|
|
2441
2441
|
var kt = e;
|
|
2442
|
-
He === kt.entries && (et ||
|
|
2443
|
-
for (var
|
|
2444
|
-
S = Ot.value, T =
|
|
2442
|
+
He === kt.entries && (et || X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), et = !0);
|
|
2443
|
+
for (var $r = He.call(kt), Ot, xr = 0; !(Ot = $r.next()).done; )
|
|
2444
|
+
S = Ot.value, T = $ + $e(S, xr++), A += Re(S, t, n, T, u);
|
|
2445
2445
|
} else if (d === "object") {
|
|
2446
2446
|
var Tt = String(e);
|
|
2447
2447
|
throw new Error("Objects are not valid as a React child (found: " + (Tt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Tt) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -2551,7 +2551,7 @@ function ao() {
|
|
|
2551
2551
|
return t.displayName;
|
|
2552
2552
|
},
|
|
2553
2553
|
set: function(l) {
|
|
2554
|
-
u || (
|
|
2554
|
+
u || (X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", l), u = !0);
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
}), t.Consumer = d;
|
|
@@ -2597,7 +2597,7 @@ Your code should look like:
|
|
|
2597
2597
|
_status: me,
|
|
2598
2598
|
_result: e
|
|
2599
2599
|
}, n = {
|
|
2600
|
-
$$typeof:
|
|
2600
|
+
$$typeof: Z,
|
|
2601
2601
|
_payload: t,
|
|
2602
2602
|
_init: Xt
|
|
2603
2603
|
};
|
|
@@ -2633,7 +2633,7 @@ Your code should look like:
|
|
|
2633
2633
|
function tr(e) {
|
|
2634
2634
|
e != null && e.$$typeof === Y ? f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? f("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && f("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
2635
2635
|
var t = {
|
|
2636
|
-
$$typeof:
|
|
2636
|
+
$$typeof: V,
|
|
2637
2637
|
render: e
|
|
2638
2638
|
};
|
|
2639
2639
|
{
|
|
@@ -2654,7 +2654,7 @@ Your code should look like:
|
|
|
2654
2654
|
var nt;
|
|
2655
2655
|
nt = Symbol.for("react.module.reference");
|
|
2656
2656
|
function ot(e) {
|
|
2657
|
-
return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e ===
|
|
2657
|
+
return !!(typeof e == "string" || typeof e == "function" || e === b || e === I || ie || e === j || e === U || e === G || pe || e === ve || de || De || be || typeof e == "object" && e !== null && (e.$$typeof === Z || e.$$typeof === Y || e.$$typeof === x || e.$$typeof === q || e.$$typeof === V || // This needs to include all possible module reference object
|
|
2658
2658
|
// types supported by any Flight configuration anywhere since
|
|
2659
2659
|
// we don't know which Flight build this will end up being used
|
|
2660
2660
|
// with.
|
|
@@ -2863,29 +2863,29 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
2863
2863
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2864
2864
|
try {
|
|
2865
2865
|
Reflect.construct(l, []);
|
|
2866
|
-
} catch (
|
|
2867
|
-
o =
|
|
2866
|
+
} catch ($) {
|
|
2867
|
+
o = $;
|
|
2868
2868
|
}
|
|
2869
2869
|
Reflect.construct(e, [], l);
|
|
2870
2870
|
} else {
|
|
2871
2871
|
try {
|
|
2872
2872
|
l.call();
|
|
2873
|
-
} catch (
|
|
2874
|
-
o =
|
|
2873
|
+
} catch ($) {
|
|
2874
|
+
o = $;
|
|
2875
2875
|
}
|
|
2876
2876
|
e.call(l.prototype);
|
|
2877
2877
|
}
|
|
2878
2878
|
} else {
|
|
2879
2879
|
try {
|
|
2880
2880
|
throw Error();
|
|
2881
|
-
} catch (
|
|
2882
|
-
o =
|
|
2881
|
+
} catch ($) {
|
|
2882
|
+
o = $;
|
|
2883
2883
|
}
|
|
2884
2884
|
e();
|
|
2885
2885
|
}
|
|
2886
|
-
} catch (
|
|
2887
|
-
if (
|
|
2888
|
-
for (var y =
|
|
2886
|
+
} catch ($) {
|
|
2887
|
+
if ($ && o && typeof $.stack == "string") {
|
|
2888
|
+
for (var y = $.stack.split(`
|
|
2889
2889
|
`), v = o.stack.split(`
|
|
2890
2890
|
`), w = y.length - 1, R = v.length - 1; w >= 1 && R >= 0 && y[w] !== v[R]; )
|
|
2891
2891
|
R--;
|
|
@@ -2923,18 +2923,18 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
2923
2923
|
if (typeof e == "string")
|
|
2924
2924
|
return ke(e);
|
|
2925
2925
|
switch (e) {
|
|
2926
|
-
case
|
|
2926
|
+
case U:
|
|
2927
2927
|
return ke("Suspense");
|
|
2928
|
-
case
|
|
2928
|
+
case G:
|
|
2929
2929
|
return ke("SuspenseList");
|
|
2930
2930
|
}
|
|
2931
2931
|
if (typeof e == "object")
|
|
2932
2932
|
switch (e.$$typeof) {
|
|
2933
|
-
case
|
|
2933
|
+
case V:
|
|
2934
2934
|
return Er(e.render);
|
|
2935
2935
|
case Y:
|
|
2936
2936
|
return Te(e.type, t, n);
|
|
2937
|
-
case
|
|
2937
|
+
case Z: {
|
|
2938
2938
|
var o = e, u = o._payload, d = o._init;
|
|
2939
2939
|
try {
|
|
2940
2940
|
return Te(d(u), t, n);
|
|
@@ -2978,11 +2978,11 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
2978
2978
|
} else
|
|
2979
2979
|
_e(null);
|
|
2980
2980
|
}
|
|
2981
|
-
var
|
|
2982
|
-
|
|
2981
|
+
var Ve;
|
|
2982
|
+
Ve = !1;
|
|
2983
2983
|
function ht() {
|
|
2984
|
-
if (
|
|
2985
|
-
var e =
|
|
2984
|
+
if (z.current) {
|
|
2985
|
+
var e = ee(z.current.type);
|
|
2986
2986
|
if (e)
|
|
2987
2987
|
return `
|
|
2988
2988
|
|
|
@@ -3020,7 +3020,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3020
3020
|
if (!vt[n]) {
|
|
3021
3021
|
vt[n] = !0;
|
|
3022
3022
|
var o = "";
|
|
3023
|
-
e && e._owner && e._owner !==
|
|
3023
|
+
e && e._owner && e._owner !== z.current && (o = " It was passed a child from " + ee(e._owner.type) + "."), ce(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), ce(null);
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
3026
3026
|
}
|
|
@@ -3049,18 +3049,18 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3049
3049
|
var n;
|
|
3050
3050
|
if (typeof t == "function")
|
|
3051
3051
|
n = t.propTypes;
|
|
3052
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
3052
|
+
else if (typeof t == "object" && (t.$$typeof === V || // Note: Memo only checks outer props here.
|
|
3053
3053
|
// Inner props are checked in the reconciler.
|
|
3054
3054
|
t.$$typeof === Y))
|
|
3055
3055
|
n = t.propTypes;
|
|
3056
3056
|
else
|
|
3057
3057
|
return;
|
|
3058
3058
|
if (n) {
|
|
3059
|
-
var o =
|
|
3059
|
+
var o = ee(t);
|
|
3060
3060
|
Cr(n, e.props, "prop", o, e);
|
|
3061
|
-
} else if (t.PropTypes !== void 0 && !
|
|
3062
|
-
|
|
3063
|
-
var u =
|
|
3061
|
+
} else if (t.PropTypes !== void 0 && !Ve) {
|
|
3062
|
+
Ve = !0;
|
|
3063
|
+
var u = ee(t);
|
|
3064
3064
|
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
3065
3065
|
}
|
|
3066
3066
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -3086,9 +3086,9 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3086
3086
|
var d = Sr(t);
|
|
3087
3087
|
d ? u += d : u += ht();
|
|
3088
3088
|
var l;
|
|
3089
|
-
e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (
|
|
3089
|
+
e === null ? l = "null" : we(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (ee(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, u);
|
|
3090
3090
|
}
|
|
3091
|
-
var y =
|
|
3091
|
+
var y = Vt.apply(this, arguments);
|
|
3092
3092
|
if (y == null)
|
|
3093
3093
|
return y;
|
|
3094
3094
|
if (o)
|
|
@@ -3099,10 +3099,10 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3099
3099
|
var wt = !1;
|
|
3100
3100
|
function Tr(e) {
|
|
3101
3101
|
var t = Et.bind(null, e);
|
|
3102
|
-
return t.type = e, wt || (wt = !0,
|
|
3102
|
+
return t.type = e, wt || (wt = !0, X("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
|
|
3103
3103
|
enumerable: !1,
|
|
3104
3104
|
get: function() {
|
|
3105
|
-
return
|
|
3105
|
+
return X("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
3106
3106
|
value: e
|
|
3107
3107
|
}), e;
|
|
3108
3108
|
}
|
|
@@ -3123,7 +3123,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3123
3123
|
} finally {
|
|
3124
3124
|
if (K.transition = n, n === null && o._updatedFibers) {
|
|
3125
3125
|
var u = o._updatedFibers.size;
|
|
3126
|
-
u > 10 &&
|
|
3126
|
+
u > 10 && X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
|
|
3127
3127
|
}
|
|
3128
3128
|
}
|
|
3129
3129
|
}
|
|
@@ -3146,25 +3146,25 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3146
3146
|
function St(e) {
|
|
3147
3147
|
{
|
|
3148
3148
|
var t = le;
|
|
3149
|
-
le++,
|
|
3150
|
-
var n =
|
|
3149
|
+
le++, F.current === null && (F.current = []);
|
|
3150
|
+
var n = F.isBatchingLegacy, o;
|
|
3151
3151
|
try {
|
|
3152
|
-
if (
|
|
3153
|
-
var u =
|
|
3154
|
-
u !== null && (
|
|
3152
|
+
if (F.isBatchingLegacy = !0, o = e(), !n && F.didScheduleLegacyUpdate) {
|
|
3153
|
+
var u = F.current;
|
|
3154
|
+
u !== null && (F.didScheduleLegacyUpdate = !1, Ye(u));
|
|
3155
3155
|
}
|
|
3156
3156
|
} catch (T) {
|
|
3157
3157
|
throw je(t), T;
|
|
3158
3158
|
} finally {
|
|
3159
|
-
|
|
3159
|
+
F.isBatchingLegacy = n;
|
|
3160
3160
|
}
|
|
3161
3161
|
if (o !== null && typeof o == "object" && typeof o.then == "function") {
|
|
3162
3162
|
var d = o, l = !1, y = {
|
|
3163
3163
|
then: function(T, A) {
|
|
3164
|
-
l = !0, d.then(function(
|
|
3165
|
-
je(t), le === 0 ?
|
|
3166
|
-
}, function(
|
|
3167
|
-
je(t), A(
|
|
3164
|
+
l = !0, d.then(function($) {
|
|
3165
|
+
je(t), le === 0 ? ze($, T, A) : T($);
|
|
3166
|
+
}, function($) {
|
|
3167
|
+
je(t), A($);
|
|
3168
3168
|
});
|
|
3169
3169
|
}
|
|
3170
3170
|
};
|
|
@@ -3175,11 +3175,11 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3175
3175
|
} else {
|
|
3176
3176
|
var v = o;
|
|
3177
3177
|
if (je(t), le === 0) {
|
|
3178
|
-
var w =
|
|
3179
|
-
w !== null && (Ye(w),
|
|
3178
|
+
var w = F.current;
|
|
3179
|
+
w !== null && (Ye(w), F.current = null);
|
|
3180
3180
|
var R = {
|
|
3181
3181
|
then: function(T, A) {
|
|
3182
|
-
|
|
3182
|
+
F.current === null ? (F.current = [], ze(v, T, A)) : T(v);
|
|
3183
3183
|
}
|
|
3184
3184
|
};
|
|
3185
3185
|
return R;
|
|
@@ -3197,13 +3197,13 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3197
3197
|
function je(e) {
|
|
3198
3198
|
e !== le - 1 && f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), le = e;
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function ze(e, t, n) {
|
|
3201
3201
|
{
|
|
3202
|
-
var o =
|
|
3202
|
+
var o = F.current;
|
|
3203
3203
|
if (o !== null)
|
|
3204
3204
|
try {
|
|
3205
3205
|
Ye(o), jr(function() {
|
|
3206
|
-
o.length === 0 ? (
|
|
3206
|
+
o.length === 0 ? (F.current = null, t(e)) : ze(e, t, n);
|
|
3207
3207
|
});
|
|
3208
3208
|
} catch (u) {
|
|
3209
3209
|
n(u);
|
|
@@ -3232,14 +3232,14 @@ Check the top-level render call using <` + n + ">.");
|
|
|
3232
3232
|
}
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
|
-
var Ar = Et,
|
|
3235
|
+
var Ar = Et, Dr = Pr, Mr = Tr, Fr = {
|
|
3236
3236
|
map: Se,
|
|
3237
3237
|
forEach: Bt,
|
|
3238
3238
|
count: Kt,
|
|
3239
3239
|
toArray: Gt,
|
|
3240
3240
|
only: Jt
|
|
3241
3241
|
};
|
|
3242
|
-
a.Children =
|
|
3242
|
+
a.Children = Fr, a.Component = _, a.Fragment = b, a.Profiler = I, a.PureComponent = C, a.StrictMode = j, a.Suspense = U, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = H, a.act = St, a.cloneElement = Dr, a.createContext = Zt, a.createElement = Ar, a.createFactory = Mr, a.createRef = Dt, a.forwardRef = tr, a.isValidElement = ue, a.lazy = er, a.memo = rr, a.startTransition = Ir, a.unstable_act = St, a.useCallback = lr, a.useContext = nr, a.useDebugValue = pr, a.useDeferredValue = mr, a.useEffect = sr, a.useId = hr, a.useImperativeHandle = dr, a.useInsertionEffect = ur, a.useLayoutEffect = cr, a.useMemo = fr, a.useReducer = ar, a.useRef = ir, a.useState = or, a.useSyncExternalStore = vr, a.useTransition = yr, a.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
3243
3243
|
}();
|
|
3244
3244
|
}(jt, jt.exports)), jt.exports;
|
|
3245
3245
|
}
|
|
@@ -3414,7 +3414,9 @@ class Oo {
|
|
|
3414
3414
|
this.handleLoadedEvent(a.source, g, b);
|
|
3415
3415
|
break;
|
|
3416
3416
|
case "TOKENIZE_STARTED":
|
|
3417
|
-
|
|
3417
|
+
break;
|
|
3418
|
+
case "CHECKOUT_STARTED":
|
|
3419
|
+
this.handleCheckoutStartedEvent();
|
|
3418
3420
|
break;
|
|
3419
3421
|
case "PAYMENT_FLOW_STARTED":
|
|
3420
3422
|
this.handlePaymentFlowStartedEvent(b, a.source, g);
|
|
@@ -3462,6 +3464,9 @@ class Oo {
|
|
|
3462
3464
|
handleTokenizeStartedEvent() {
|
|
3463
3465
|
this.formInstance.config.onCheckoutStarted && this.formInstance.config.onCheckoutStarted();
|
|
3464
3466
|
}
|
|
3467
|
+
handleCheckoutStartedEvent() {
|
|
3468
|
+
this.formInstance.config.onCheckoutStarted && this.formInstance.config.onCheckoutStarted();
|
|
3469
|
+
}
|
|
3465
3470
|
async handlePaymentFlowStartedEvent(a, p, m) {
|
|
3466
3471
|
var j;
|
|
3467
3472
|
if (!this.tokenizedData)
|
|
@@ -3479,13 +3484,13 @@ class Oo {
|
|
|
3479
3484
|
throw new Error(`Unknown next action type: ${I}`);
|
|
3480
3485
|
const x = await pn(g);
|
|
3481
3486
|
if (x.mode === "setup") {
|
|
3482
|
-
const { payment_methods:
|
|
3487
|
+
const { payment_methods: V } = await ko(g, {
|
|
3483
3488
|
secure_token: x.token,
|
|
3484
3489
|
existing_cc_pm_id: (q = this.tokenizedData) == null ? void 0 : q.existingCCPMId
|
|
3485
3490
|
});
|
|
3486
|
-
if (
|
|
3487
|
-
throw new Error(`Expected exactly one payment method, got ${
|
|
3488
|
-
return this.tokenized = 0, this.formInstance.checkoutFired = !1, this.formInstance.config.onSetupPaymentMethodSuccess && this.formInstance.config.onSetupPaymentMethodSuccess(
|
|
3491
|
+
if (V.length !== 1)
|
|
3492
|
+
throw new Error(`Expected exactly one payment method, got ${V.length}`);
|
|
3493
|
+
return this.tokenized = 0, this.formInstance.checkoutFired = !1, this.formInstance.config.onSetupPaymentMethodSuccess && this.formInstance.config.onSetupPaymentMethodSuccess(V[0].id), {
|
|
3489
3494
|
proceedToCheckout: !1
|
|
3490
3495
|
};
|
|
3491
3496
|
} else
|
|
@@ -3516,7 +3521,7 @@ class Oo {
|
|
|
3516
3521
|
if (!this.tokenizedData)
|
|
3517
3522
|
throw new Error("Tokenized data not found");
|
|
3518
3523
|
const g = this.tokenized + 1, b = g === Object.keys(this.eventTargets).length;
|
|
3519
|
-
!this.formInstance.checkoutFired && (b || m.isReadyForCheckout) ? (this.tokenizedData.type = this.tokenizedData.type ===
|
|
3524
|
+
!this.formInstance.checkoutFired && (b || m.isReadyForCheckout) ? (this.tokenizedData.type = this.tokenizedData.type === J.enum.TOKENIZE ? J.enum.CHECKOUT : J.enum.START_PAYMENT_FLOW, this.postEventToFrame(a, p, this.tokenizedData), this.tokenizedData = null) : this.tokenized = g;
|
|
3520
3525
|
}
|
|
3521
3526
|
handleCheckoutSuccessEvent(a) {
|
|
3522
3527
|
this.formInstance.config.onCheckoutSuccess && this.formInstance.config.onCheckoutSuccess(a.invoiceUrls, a.subscriptionIds, a.customerId);
|
|
@@ -3539,7 +3544,7 @@ class Oo {
|
|
|
3539
3544
|
for (const [g, b] of Object.entries(this.eventTargets)) {
|
|
3540
3545
|
if (!b) continue;
|
|
3541
3546
|
const j = At(
|
|
3542
|
-
|
|
3547
|
+
J.enum.START_PAYMENT_FLOW,
|
|
3543
3548
|
this.formInstance.sessionId,
|
|
3544
3549
|
document.querySelector(this.formInstance.formTarget) ?? document.body,
|
|
3545
3550
|
this.config.onValidationError,
|
|
@@ -3562,7 +3567,7 @@ class Oo {
|
|
|
3562
3567
|
if (!a)
|
|
3563
3568
|
throw new Error("Card not available as a payment method in checkout");
|
|
3564
3569
|
const p = At(
|
|
3565
|
-
|
|
3570
|
+
J.enum.TOKENIZE,
|
|
3566
3571
|
this.formInstance.sessionId,
|
|
3567
3572
|
document.querySelector(this.formInstance.formTarget) ?? document.body,
|
|
3568
3573
|
this.config.onValidationError,
|
|
@@ -3612,15 +3617,15 @@ async function Io(c, a, p, m, g, b) {
|
|
|
3612
3617
|
for (const I of ["apple_pay", "google_pay"])
|
|
3613
3618
|
try {
|
|
3614
3619
|
const x = a.find(
|
|
3615
|
-
(
|
|
3620
|
+
(U) => U.provider === I && U.processor_name === "stripe"
|
|
3616
3621
|
);
|
|
3617
3622
|
if (!x)
|
|
3618
3623
|
throw new Error(`${I} is not available as a checkout method`);
|
|
3619
|
-
const q = Xn(x.metadata),
|
|
3624
|
+
const q = Xn(x.metadata), V = await jo(q, I);
|
|
3620
3625
|
j[I] = {
|
|
3621
3626
|
isLoading: !1,
|
|
3622
|
-
isAvailable:
|
|
3623
|
-
startFlow: (
|
|
3627
|
+
isAvailable: V,
|
|
3628
|
+
startFlow: (U) => Ao(
|
|
3624
3629
|
p,
|
|
3625
3630
|
c.checkoutSecureToken,
|
|
3626
3631
|
document.querySelector(c.formTarget),
|
|
@@ -3629,7 +3634,7 @@ async function Io(c, a, p, m, g, b) {
|
|
|
3629
3634
|
m,
|
|
3630
3635
|
g,
|
|
3631
3636
|
b,
|
|
3632
|
-
|
|
3637
|
+
U
|
|
3633
3638
|
)
|
|
3634
3639
|
};
|
|
3635
3640
|
} catch {
|
|
@@ -3651,24 +3656,24 @@ async function jo(c, a) {
|
|
|
3651
3656
|
async function Ao(c, a, p, m, g, b, j, I, x) {
|
|
3652
3657
|
try {
|
|
3653
3658
|
const q = un(p, {});
|
|
3654
|
-
if (!
|
|
3659
|
+
if (!Do(p, j, m))
|
|
3655
3660
|
return;
|
|
3656
|
-
const
|
|
3661
|
+
const U = (await pn(c)).mode === "setup", G = await Mo(U, x, q, c, a), Y = await sn(
|
|
3657
3662
|
g,
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3663
|
+
G.amountAtom,
|
|
3664
|
+
G.currency,
|
|
3665
|
+
U
|
|
3661
3666
|
);
|
|
3662
3667
|
await Y.canMakePayment(), Y.show();
|
|
3663
|
-
const
|
|
3664
|
-
b(
|
|
3668
|
+
const Z = await Qn(Y);
|
|
3669
|
+
b(Z, m);
|
|
3665
3670
|
} catch (q) {
|
|
3666
3671
|
I(en(q));
|
|
3667
3672
|
}
|
|
3668
3673
|
}
|
|
3669
|
-
function
|
|
3674
|
+
function Do(c, a, p) {
|
|
3670
3675
|
return !!At(
|
|
3671
|
-
|
|
3676
|
+
J.enum.START_PAYMENT_FLOW,
|
|
3672
3677
|
"dummy",
|
|
3673
3678
|
c,
|
|
3674
3679
|
a ?? (() => {
|
|
@@ -3677,10 +3682,11 @@ function Mo(c, a, p) {
|
|
|
3677
3682
|
!1
|
|
3678
3683
|
);
|
|
3679
3684
|
}
|
|
3680
|
-
async function
|
|
3685
|
+
async function Mo(c, a, p, m, g) {
|
|
3686
|
+
var V;
|
|
3681
3687
|
if (c)
|
|
3682
|
-
return (a == null ? void 0 : a.
|
|
3683
|
-
a != null && a.
|
|
3688
|
+
return ((V = a == null ? void 0 : a.overridePaymentRequest) == null ? void 0 : V.amount) ?? { amountAtom: 0, currency: "usd" };
|
|
3689
|
+
a != null && a.overridePaymentRequest;
|
|
3684
3690
|
const b = ne.safeParse(p[It.PROMOTION_CODE]);
|
|
3685
3691
|
if (!b.success)
|
|
3686
3692
|
throw new Error(`Unknown promo code type: ${b.error.message}`);
|
|
@@ -3691,7 +3697,7 @@ async function Do(c, a, p, m, g) {
|
|
|
3691
3697
|
if (I.size !== 1)
|
|
3692
3698
|
throw new Error(`Expected exactly one currency, got ${I.size}`);
|
|
3693
3699
|
const x = I.values().next().value;
|
|
3694
|
-
return { amountAtom: j.preview.invoices.reduce((U,
|
|
3700
|
+
return { amountAtom: j.preview.invoices.reduce((U, G) => U + G.remaining_amount_atom, 0), currency: x };
|
|
3695
3701
|
}
|
|
3696
3702
|
class Lo {
|
|
3697
3703
|
constructor(a) {
|
|
@@ -3747,7 +3753,7 @@ class Lo {
|
|
|
3747
3753
|
if (!(!this.config.onValidationError || !this.sessionId || !this.checkoutPaymentMethods))
|
|
3748
3754
|
for (const [m, g] of Object.entries(this.eventHandler.eventTargets ?? {})) {
|
|
3749
3755
|
const b = { stripePmId: a.paymentMethod.id }, j = At(
|
|
3750
|
-
|
|
3756
|
+
J.enum.START_PAYMENT_FLOW,
|
|
3751
3757
|
this.sessionId,
|
|
3752
3758
|
document.querySelector(this.formTarget) ?? document.body,
|
|
3753
3759
|
this.config.onValidationError,
|