@sdata-plugin-adapter/react 0.0.0-alpha.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export-IdFffdaq.js +2 -0
- package/dist/export-IdFffdaq.js.map +1 -0
- package/dist/{index-D8cPmNOG.js → index-BTEOz66V.js} +3 -3
- package/dist/{index-D8cPmNOG.js.map → index-BTEOz66V.js.map} +1 -1
- package/dist/{index-CC9uxwpR.js → index-CPRh7huJ.js} +3 -3
- package/dist/{index-CC9uxwpR.js.map → index-CPRh7huJ.js.map} +1 -1
- package/dist/index-D4XI9Up9.js +9 -0
- package/dist/index-D4XI9Up9.js.map +1 -0
- package/dist/{index-BV9RX_Ka.js → index-DOjL63ZZ.js} +3 -3
- package/dist/{index-BV9RX_Ka.js.map → index-DOjL63ZZ.js.map} +1 -1
- package/dist/{index-CUpP0oMu.js → index-DYH8RTH4.js} +3 -3
- package/dist/{index-CUpP0oMu.js.map → index-DYH8RTH4.js.map} +1 -1
- package/dist/{index-DQLM9I3g.js → index-uvW2tp_u.js} +3 -3
- package/dist/index-uvW2tp_u.js.map +1 -0
- package/dist/index.d.ts +15 -6
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/{start-KvBmIDZs.js → start-rmMDvB0v.js} +157 -148
- package/dist/{start-KvBmIDZs.js.map → start-rmMDvB0v.js.map} +1 -1
- package/package.json +3 -3
- package/dist/export-CuNiopMp.js +0 -2
- package/dist/export-CuNiopMp.js.map +0 -1
- package/dist/index-CqtMUNRo.js +0 -13
- package/dist/index-CqtMUNRo.js.map +0 -1
- package/dist/index-DQLM9I3g.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import je from "react";
|
|
2
|
-
import cr from "
|
|
2
|
+
import { setDomAttributes as cr } from "@sdata-plugin-adapter/utils";
|
|
3
|
+
import fr from "configJson";
|
|
3
4
|
var M = { exports: {} }, I = {};
|
|
4
5
|
/**
|
|
5
6
|
* @license React
|
|
@@ -10,19 +11,19 @@ var M = { exports: {} }, I = {};
|
|
|
10
11
|
* This source code is licensed under the MIT license found in the
|
|
11
12
|
* LICENSE file in the root directory of this source tree.
|
|
12
13
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
var d,
|
|
20
|
-
|
|
21
|
-
for (d in s) b.call(s, d) && !
|
|
22
|
-
if (l && l.defaultProps) for (d in s = l.defaultProps, s)
|
|
23
|
-
return { $$typeof:
|
|
14
|
+
var we;
|
|
15
|
+
function lr() {
|
|
16
|
+
if (we) return I;
|
|
17
|
+
we = 1;
|
|
18
|
+
var O = je, E = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, v = O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function m(l, s, P) {
|
|
20
|
+
var d, p = {}, h = null, C = null;
|
|
21
|
+
P !== void 0 && (h = "" + P), s.key !== void 0 && (h = "" + s.key), s.ref !== void 0 && (C = s.ref);
|
|
22
|
+
for (d in s) b.call(s, d) && !w.hasOwnProperty(d) && (p[d] = s[d]);
|
|
23
|
+
if (l && l.defaultProps) for (d in s = l.defaultProps, s) p[d] === void 0 && (p[d] = s[d]);
|
|
24
|
+
return { $$typeof: E, type: l, key: h, ref: C, props: p, _owner: v.current };
|
|
24
25
|
}
|
|
25
|
-
return I.Fragment =
|
|
26
|
+
return I.Fragment = _, I.jsx = m, I.jsxs = m, I;
|
|
26
27
|
}
|
|
27
28
|
var $ = {};
|
|
28
29
|
/**
|
|
@@ -34,19 +35,19 @@ var $ = {};
|
|
|
34
35
|
* This source code is licensed under the MIT license found in the
|
|
35
36
|
* LICENSE file in the root directory of this source tree.
|
|
36
37
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
var Oe;
|
|
39
|
+
function dr() {
|
|
40
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
40
41
|
"use strict";
|
|
41
|
-
var
|
|
42
|
+
var O = je, E = Symbol.for("react.element"), _ = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), Z = Symbol.iterator, Se = "@@iterator";
|
|
42
43
|
function Ce(e) {
|
|
43
44
|
if (e === null || typeof e != "object")
|
|
44
45
|
return null;
|
|
45
|
-
var r =
|
|
46
|
+
var r = Z && e[Z] || e[Se];
|
|
46
47
|
return typeof r == "function" ? r : null;
|
|
47
48
|
}
|
|
48
|
-
var x =
|
|
49
|
-
function
|
|
49
|
+
var x = O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
|
+
function y(e) {
|
|
50
51
|
{
|
|
51
52
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
52
53
|
t[n - 1] = arguments[n];
|
|
@@ -63,14 +64,14 @@ function lr() {
|
|
|
63
64
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
67
|
+
var De = !1, ke = !1, Fe = !1, Ae = !1, Ie = !1, Q;
|
|
68
|
+
Q = Symbol.for("react.module.reference");
|
|
68
69
|
function $e(e) {
|
|
69
|
-
return !!(typeof e == "string" || typeof e == "function" || e === b || e ===
|
|
70
|
+
return !!(typeof e == "string" || typeof e == "function" || e === b || e === w || Ie || e === v || e === P || e === d || Ae || e === C || De || ke || Fe || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === p || e.$$typeof === m || e.$$typeof === l || e.$$typeof === s || // This needs to include all possible module reference object
|
|
70
71
|
// types supported by any Flight configuration anywhere since
|
|
71
72
|
// we don't know which Flight build this will end up being used
|
|
72
73
|
// with.
|
|
73
|
-
e.$$typeof ===
|
|
74
|
+
e.$$typeof === Q || e.getModuleId !== void 0));
|
|
74
75
|
}
|
|
75
76
|
function Me(e, r, t) {
|
|
76
77
|
var n = e.displayName;
|
|
@@ -79,26 +80,26 @@ function lr() {
|
|
|
79
80
|
var i = r.displayName || r.name || "";
|
|
80
81
|
return i !== "" ? t + "(" + i + ")" : t;
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function ee(e) {
|
|
83
84
|
return e.displayName || "Context";
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function T(e) {
|
|
86
87
|
if (e == null)
|
|
87
88
|
return null;
|
|
88
|
-
if (typeof e.tag == "number" &&
|
|
89
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
89
90
|
return e.displayName || e.name || null;
|
|
90
91
|
if (typeof e == "string")
|
|
91
92
|
return e;
|
|
92
93
|
switch (e) {
|
|
93
94
|
case b:
|
|
94
95
|
return "Fragment";
|
|
95
|
-
case
|
|
96
|
+
case _:
|
|
96
97
|
return "Portal";
|
|
97
|
-
case
|
|
98
|
+
case w:
|
|
98
99
|
return "Profiler";
|
|
99
100
|
case v:
|
|
100
101
|
return "StrictMode";
|
|
101
|
-
case
|
|
102
|
+
case P:
|
|
102
103
|
return "Suspense";
|
|
103
104
|
case d:
|
|
104
105
|
return "SuspenseList";
|
|
@@ -107,19 +108,19 @@ function lr() {
|
|
|
107
108
|
switch (e.$$typeof) {
|
|
108
109
|
case l:
|
|
109
110
|
var r = e;
|
|
110
|
-
return
|
|
111
|
-
case
|
|
111
|
+
return ee(r) + ".Consumer";
|
|
112
|
+
case m:
|
|
112
113
|
var t = e;
|
|
113
|
-
return
|
|
114
|
+
return ee(t._context) + ".Provider";
|
|
114
115
|
case s:
|
|
115
116
|
return Me(e, e.render, "ForwardRef");
|
|
116
|
-
case
|
|
117
|
+
case p:
|
|
117
118
|
var n = e.displayName || null;
|
|
118
|
-
return n !== null ? n :
|
|
119
|
+
return n !== null ? n : T(e.type) || "Memo";
|
|
119
120
|
case h: {
|
|
120
121
|
var i = e, u = i._payload, o = i._init;
|
|
121
122
|
try {
|
|
122
|
-
return
|
|
123
|
+
return T(o(u));
|
|
123
124
|
} catch {
|
|
124
125
|
return null;
|
|
125
126
|
}
|
|
@@ -127,18 +128,18 @@ function lr() {
|
|
|
127
128
|
}
|
|
128
129
|
return null;
|
|
129
130
|
}
|
|
130
|
-
var S = Object.assign, F = 0,
|
|
131
|
-
function
|
|
131
|
+
var S = Object.assign, F = 0, re, te, ne, ae, oe, ie, ue;
|
|
132
|
+
function se() {
|
|
132
133
|
}
|
|
133
|
-
|
|
134
|
+
se.__reactDisabledLog = !0;
|
|
134
135
|
function Ne() {
|
|
135
136
|
{
|
|
136
137
|
if (F === 0) {
|
|
137
|
-
|
|
138
|
+
re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
|
|
138
139
|
var e = {
|
|
139
140
|
configurable: !0,
|
|
140
141
|
enumerable: !0,
|
|
141
|
-
value:
|
|
142
|
+
value: se,
|
|
142
143
|
writable: !0
|
|
143
144
|
};
|
|
144
145
|
Object.defineProperties(console, {
|
|
@@ -164,29 +165,29 @@ function lr() {
|
|
|
164
165
|
};
|
|
165
166
|
Object.defineProperties(console, {
|
|
166
167
|
log: S({}, e, {
|
|
167
|
-
value:
|
|
168
|
+
value: re
|
|
168
169
|
}),
|
|
169
170
|
info: S({}, e, {
|
|
170
|
-
value:
|
|
171
|
+
value: te
|
|
171
172
|
}),
|
|
172
173
|
warn: S({}, e, {
|
|
173
|
-
value:
|
|
174
|
+
value: ne
|
|
174
175
|
}),
|
|
175
176
|
error: S({}, e, {
|
|
176
|
-
value:
|
|
177
|
+
value: ae
|
|
177
178
|
}),
|
|
178
179
|
group: S({}, e, {
|
|
179
|
-
value:
|
|
180
|
+
value: oe
|
|
180
181
|
}),
|
|
181
182
|
groupCollapsed: S({}, e, {
|
|
182
|
-
value:
|
|
183
|
+
value: ie
|
|
183
184
|
}),
|
|
184
185
|
groupEnd: S({}, e, {
|
|
185
|
-
value:
|
|
186
|
+
value: ue
|
|
186
187
|
})
|
|
187
188
|
});
|
|
188
189
|
}
|
|
189
|
-
F < 0 &&
|
|
190
|
+
F < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
191
|
}
|
|
191
192
|
}
|
|
192
193
|
var V = x.ReactCurrentDispatcher, q;
|
|
@@ -208,7 +209,7 @@ function lr() {
|
|
|
208
209
|
var Le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
210
|
W = new Le();
|
|
210
211
|
}
|
|
211
|
-
function
|
|
212
|
+
function ce(e, r) {
|
|
212
213
|
if (!e || G)
|
|
213
214
|
return "";
|
|
214
215
|
{
|
|
@@ -234,29 +235,29 @@ function lr() {
|
|
|
234
235
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
236
|
try {
|
|
236
237
|
Reflect.construct(o, []);
|
|
237
|
-
} catch (
|
|
238
|
-
n =
|
|
238
|
+
} catch (j) {
|
|
239
|
+
n = j;
|
|
239
240
|
}
|
|
240
241
|
Reflect.construct(e, [], o);
|
|
241
242
|
} else {
|
|
242
243
|
try {
|
|
243
244
|
o.call();
|
|
244
|
-
} catch (
|
|
245
|
-
n =
|
|
245
|
+
} catch (j) {
|
|
246
|
+
n = j;
|
|
246
247
|
}
|
|
247
248
|
e.call(o.prototype);
|
|
248
249
|
}
|
|
249
250
|
} else {
|
|
250
251
|
try {
|
|
251
252
|
throw Error();
|
|
252
|
-
} catch (
|
|
253
|
-
n =
|
|
253
|
+
} catch (j) {
|
|
254
|
+
n = j;
|
|
254
255
|
}
|
|
255
256
|
e();
|
|
256
257
|
}
|
|
257
|
-
} catch (
|
|
258
|
-
if (
|
|
259
|
-
for (var a =
|
|
258
|
+
} catch (j) {
|
|
259
|
+
if (j && n && typeof j.stack == "string") {
|
|
260
|
+
for (var a = j.stack.split(`
|
|
260
261
|
`), g = n.stack.split(`
|
|
261
262
|
`), c = a.length - 1, f = g.length - 1; c >= 1 && f >= 0 && a[c] !== g[f]; )
|
|
262
263
|
f--;
|
|
@@ -276,11 +277,11 @@ function lr() {
|
|
|
276
277
|
} finally {
|
|
277
278
|
G = !1, V.current = u, We(), Error.prepareStackTrace = i;
|
|
278
279
|
}
|
|
279
|
-
var
|
|
280
|
-
return typeof e == "function" && W.set(e,
|
|
280
|
+
var k = e ? e.displayName || e.name : "", _e = k ? N(k) : "";
|
|
281
|
+
return typeof e == "function" && W.set(e, _e), _e;
|
|
281
282
|
}
|
|
282
283
|
function Ye(e, r, t) {
|
|
283
|
-
return
|
|
284
|
+
return ce(e, !1);
|
|
284
285
|
}
|
|
285
286
|
function Ue(e) {
|
|
286
287
|
var r = e.prototype;
|
|
@@ -290,11 +291,11 @@ function lr() {
|
|
|
290
291
|
if (e == null)
|
|
291
292
|
return "";
|
|
292
293
|
if (typeof e == "function")
|
|
293
|
-
return
|
|
294
|
+
return ce(e, Ue(e));
|
|
294
295
|
if (typeof e == "string")
|
|
295
296
|
return N(e);
|
|
296
297
|
switch (e) {
|
|
297
|
-
case
|
|
298
|
+
case P:
|
|
298
299
|
return N("Suspense");
|
|
299
300
|
case d:
|
|
300
301
|
return N("SuspenseList");
|
|
@@ -303,7 +304,7 @@ function lr() {
|
|
|
303
304
|
switch (e.$$typeof) {
|
|
304
305
|
case s:
|
|
305
306
|
return Ye(e.render);
|
|
306
|
-
case
|
|
307
|
+
case p:
|
|
307
308
|
return L(e.type, r, t);
|
|
308
309
|
case h: {
|
|
309
310
|
var n = e, i = n._payload, u = n._init;
|
|
@@ -315,13 +316,13 @@ function lr() {
|
|
|
315
316
|
}
|
|
316
317
|
return "";
|
|
317
318
|
}
|
|
318
|
-
var Y = Object.prototype.hasOwnProperty,
|
|
319
|
+
var Y = Object.prototype.hasOwnProperty, fe = {}, le = x.ReactDebugCurrentFrame;
|
|
319
320
|
function U(e) {
|
|
320
321
|
if (e) {
|
|
321
322
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
322
|
-
|
|
323
|
+
le.setExtraStackFrame(t);
|
|
323
324
|
} else
|
|
324
|
-
|
|
325
|
+
le.setExtraStackFrame(null);
|
|
325
326
|
}
|
|
326
327
|
function Ve(e, r, t, n, i) {
|
|
327
328
|
{
|
|
@@ -338,7 +339,7 @@ function lr() {
|
|
|
338
339
|
} catch (c) {
|
|
339
340
|
a = c;
|
|
340
341
|
}
|
|
341
|
-
a && !(a instanceof Error) && (U(i),
|
|
342
|
+
a && !(a instanceof Error) && (U(i), y("%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), U(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, U(i), y("Failed %s type: %s", t, a.message), U(null));
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
345
|
}
|
|
@@ -354,24 +355,24 @@ function lr() {
|
|
|
354
355
|
}
|
|
355
356
|
function Je(e) {
|
|
356
357
|
try {
|
|
357
|
-
return
|
|
358
|
+
return de(e), !1;
|
|
358
359
|
} catch {
|
|
359
360
|
return !0;
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function de(e) {
|
|
363
364
|
return "" + e;
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function ve(e) {
|
|
366
367
|
if (Je(e))
|
|
367
|
-
return
|
|
368
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), de(e);
|
|
368
369
|
}
|
|
369
370
|
var A = x.ReactCurrentOwner, Be = {
|
|
370
371
|
key: !0,
|
|
371
372
|
ref: !0,
|
|
372
373
|
__self: !0,
|
|
373
374
|
__source: !0
|
|
374
|
-
},
|
|
375
|
+
}, pe, ye, B;
|
|
375
376
|
B = {};
|
|
376
377
|
function ze(e) {
|
|
377
378
|
if (Y.call(e, "ref")) {
|
|
@@ -391,14 +392,14 @@ function lr() {
|
|
|
391
392
|
}
|
|
392
393
|
function Ke(e, r) {
|
|
393
394
|
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
|
|
394
|
-
var t =
|
|
395
|
-
B[t] || (
|
|
395
|
+
var t = T(A.current.type);
|
|
396
|
+
B[t] || (y('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(A.current.type), e.ref), B[t] = !0);
|
|
396
397
|
}
|
|
397
398
|
}
|
|
398
399
|
function Xe(e, r) {
|
|
399
400
|
{
|
|
400
401
|
var t = function() {
|
|
401
|
-
|
|
402
|
+
pe || (pe = !0, y("%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));
|
|
402
403
|
};
|
|
403
404
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
404
405
|
get: t,
|
|
@@ -409,7 +410,7 @@ function lr() {
|
|
|
409
410
|
function Ze(e, r) {
|
|
410
411
|
{
|
|
411
412
|
var t = function() {
|
|
412
|
-
|
|
413
|
+
ye || (ye = !0, y("%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));
|
|
413
414
|
};
|
|
414
415
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
415
416
|
get: t,
|
|
@@ -420,7 +421,7 @@ function lr() {
|
|
|
420
421
|
var Qe = function(e, r, t, n, i, u, o) {
|
|
421
422
|
var a = {
|
|
422
423
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
|
-
$$typeof:
|
|
424
|
+
$$typeof: E,
|
|
424
425
|
// Built-in properties that belong on the element
|
|
425
426
|
type: e,
|
|
426
427
|
key: r,
|
|
@@ -449,7 +450,7 @@ function lr() {
|
|
|
449
450
|
function er(e, r, t, n, i) {
|
|
450
451
|
{
|
|
451
452
|
var u, o = {}, a = null, g = null;
|
|
452
|
-
t !== void 0 && (
|
|
453
|
+
t !== void 0 && (ve(t), a = "" + t), He(r) && (ve(r.key), a = "" + r.key), ze(r) && (g = r.ref, Ke(r, i));
|
|
453
454
|
for (u in r)
|
|
454
455
|
Y.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
|
|
455
456
|
if (e && e.defaultProps) {
|
|
@@ -465,7 +466,7 @@ function lr() {
|
|
|
465
466
|
}
|
|
466
467
|
}
|
|
467
468
|
var z = x.ReactCurrentOwner, ge = x.ReactDebugCurrentFrame;
|
|
468
|
-
function
|
|
469
|
+
function D(e) {
|
|
469
470
|
if (e) {
|
|
470
471
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
471
472
|
ge.setExtraStackFrame(t);
|
|
@@ -475,12 +476,12 @@ function lr() {
|
|
|
475
476
|
var H;
|
|
476
477
|
H = !1;
|
|
477
478
|
function K(e) {
|
|
478
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
479
|
+
return typeof e == "object" && e !== null && e.$$typeof === E;
|
|
479
480
|
}
|
|
480
|
-
function
|
|
481
|
+
function me() {
|
|
481
482
|
{
|
|
482
483
|
if (z.current) {
|
|
483
|
-
var e =
|
|
484
|
+
var e = T(z.current.type);
|
|
484
485
|
if (e)
|
|
485
486
|
return `
|
|
486
487
|
|
|
@@ -500,10 +501,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
500
501
|
return "";
|
|
501
502
|
}
|
|
502
503
|
}
|
|
503
|
-
var
|
|
504
|
+
var be = {};
|
|
504
505
|
function tr(e) {
|
|
505
506
|
{
|
|
506
|
-
var r =
|
|
507
|
+
var r = me();
|
|
507
508
|
if (!r) {
|
|
508
509
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
509
510
|
t && (r = `
|
|
@@ -513,27 +514,27 @@ Check the top-level render call using <` + t + ">.");
|
|
|
513
514
|
return r;
|
|
514
515
|
}
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
+
function he(e, r) {
|
|
517
518
|
{
|
|
518
519
|
if (!e._store || e._store.validated || e.key != null)
|
|
519
520
|
return;
|
|
520
521
|
e._store.validated = !0;
|
|
521
522
|
var t = tr(r);
|
|
522
|
-
if (
|
|
523
|
+
if (be[t])
|
|
523
524
|
return;
|
|
524
|
-
|
|
525
|
+
be[t] = !0;
|
|
525
526
|
var n = "";
|
|
526
|
-
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " +
|
|
527
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + T(e._owner.type) + "."), D(e), y('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), D(null);
|
|
527
528
|
}
|
|
528
529
|
}
|
|
529
|
-
function
|
|
530
|
+
function Re(e, r) {
|
|
530
531
|
{
|
|
531
532
|
if (typeof e != "object")
|
|
532
533
|
return;
|
|
533
534
|
if (J(e))
|
|
534
535
|
for (var t = 0; t < e.length; t++) {
|
|
535
536
|
var n = e[t];
|
|
536
|
-
K(n) &&
|
|
537
|
+
K(n) && he(n, r);
|
|
537
538
|
}
|
|
538
539
|
else if (K(e))
|
|
539
540
|
e._store && (e._store.validated = !0);
|
|
@@ -541,7 +542,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
542
|
var i = Ce(e);
|
|
542
543
|
if (typeof i == "function" && i !== e.entries)
|
|
543
544
|
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
544
|
-
K(o.value) &&
|
|
545
|
+
K(o.value) && he(o.value, r);
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
548
|
}
|
|
@@ -555,19 +556,19 @@ Check the top-level render call using <` + t + ">.");
|
|
|
555
556
|
t = r.propTypes;
|
|
556
557
|
else if (typeof r == "object" && (r.$$typeof === s || // Note: Memo only checks outer props here.
|
|
557
558
|
// Inner props are checked in the reconciler.
|
|
558
|
-
r.$$typeof ===
|
|
559
|
+
r.$$typeof === p))
|
|
559
560
|
t = r.propTypes;
|
|
560
561
|
else
|
|
561
562
|
return;
|
|
562
563
|
if (t) {
|
|
563
|
-
var n =
|
|
564
|
+
var n = T(r);
|
|
564
565
|
Ve(t, e.props, "prop", n, e);
|
|
565
566
|
} else if (r.PropTypes !== void 0 && !H) {
|
|
566
567
|
H = !0;
|
|
567
|
-
var i =
|
|
568
|
-
|
|
568
|
+
var i = T(r);
|
|
569
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
569
570
|
}
|
|
570
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
571
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
572
|
}
|
|
572
573
|
}
|
|
573
574
|
function ar(e) {
|
|
@@ -575,23 +576,23 @@ Check the top-level render call using <` + t + ">.");
|
|
|
575
576
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
576
577
|
var n = r[t];
|
|
577
578
|
if (n !== "children" && n !== "key") {
|
|
578
|
-
|
|
579
|
+
D(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
|
|
579
580
|
break;
|
|
580
581
|
}
|
|
581
582
|
}
|
|
582
|
-
e.ref !== null && (
|
|
583
|
+
e.ref !== null && (D(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
|
583
584
|
}
|
|
584
585
|
}
|
|
585
|
-
function
|
|
586
|
+
function Ee(e, r, t, n, i, u) {
|
|
586
587
|
{
|
|
587
588
|
var o = $e(e);
|
|
588
589
|
if (!o) {
|
|
589
590
|
var a = "";
|
|
590
591
|
(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.");
|
|
591
592
|
var g = rr(i);
|
|
592
|
-
g ? a += g : a +=
|
|
593
|
+
g ? a += g : a += me();
|
|
593
594
|
var c;
|
|
594
|
-
e === null ? c = "null" : J(e) ? c = "array" : e !== void 0 && e.$$typeof ===
|
|
595
|
+
e === null ? c = "null" : J(e) ? c = "array" : e !== void 0 && e.$$typeof === E ? (c = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
|
|
595
596
|
}
|
|
596
597
|
var f = er(e, r, t, i, u);
|
|
597
598
|
if (f == null)
|
|
@@ -601,95 +602,103 @@ Check the top-level render call using <` + t + ">.");
|
|
|
601
602
|
if (R !== void 0)
|
|
602
603
|
if (n)
|
|
603
604
|
if (J(R)) {
|
|
604
|
-
for (var
|
|
605
|
-
|
|
605
|
+
for (var k = 0; k < R.length; k++)
|
|
606
|
+
Re(R[k], e);
|
|
606
607
|
Object.freeze && Object.freeze(R);
|
|
607
608
|
} else
|
|
608
|
-
|
|
609
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
609
610
|
else
|
|
610
|
-
|
|
611
|
+
Re(R, e);
|
|
611
612
|
}
|
|
612
613
|
return e === b ? ar(f) : nr(f), f;
|
|
613
614
|
}
|
|
614
615
|
}
|
|
615
616
|
function or(e, r, t) {
|
|
616
|
-
return
|
|
617
|
+
return Ee(e, r, t, !0);
|
|
617
618
|
}
|
|
618
619
|
function ir(e, r, t) {
|
|
619
|
-
return
|
|
620
|
+
return Ee(e, r, t, !1);
|
|
620
621
|
}
|
|
621
622
|
var ur = ir, sr = or;
|
|
622
623
|
$.Fragment = b, $.jsx = ur, $.jsxs = sr;
|
|
623
624
|
})()), $;
|
|
624
625
|
}
|
|
625
|
-
var
|
|
626
|
-
function
|
|
627
|
-
return
|
|
626
|
+
var wr = M.exports, Pe;
|
|
627
|
+
function vr() {
|
|
628
|
+
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? M.exports = lr() : M.exports = dr()), M.exports;
|
|
628
629
|
}
|
|
629
|
-
var Te =
|
|
630
|
-
function
|
|
631
|
-
props:
|
|
632
|
-
context:
|
|
633
|
-
eventBus:
|
|
630
|
+
var Te = vr();
|
|
631
|
+
function pr({
|
|
632
|
+
props: O,
|
|
633
|
+
context: E,
|
|
634
|
+
eventBus: _,
|
|
634
635
|
adapter: b = (v) => v
|
|
635
636
|
}) {
|
|
636
|
-
const v = window.React, { useEffect:
|
|
637
|
+
const v = window.React, { useEffect: w, useState: m } = v;
|
|
637
638
|
return function(l) {
|
|
638
639
|
const s = () => {
|
|
639
|
-
const [
|
|
640
|
-
return
|
|
641
|
-
const
|
|
640
|
+
const [P, d] = m(() => b(O));
|
|
641
|
+
return w(() => {
|
|
642
|
+
const p = (h) => {
|
|
642
643
|
const C = b(h);
|
|
643
644
|
d(C);
|
|
644
645
|
};
|
|
645
|
-
return
|
|
646
|
-
|
|
646
|
+
return _.on(p), () => {
|
|
647
|
+
_.remove();
|
|
647
648
|
};
|
|
648
|
-
}, []), /* @__PURE__ */ Te.jsx(l, { ...
|
|
649
|
+
}, []), /* @__PURE__ */ Te.jsx(l, { ...E, ...P });
|
|
649
650
|
};
|
|
650
651
|
return /* @__PURE__ */ Te.jsx(s, {});
|
|
651
652
|
};
|
|
652
653
|
}
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
654
|
+
const yr = !0, { id: X } = fr ?? {}, gr = window.online_development_islocal, mr = window.React, br = window.ReactDOM, hr = async (O, E, _ = null) => {
|
|
655
|
+
cr(O, E, typeof _ == "function" ? _ : (v) => v);
|
|
656
|
+
}, Or = ({
|
|
657
|
+
App: O,
|
|
658
|
+
setAttributes: E = hr,
|
|
659
|
+
adapter: _ = (v) => v,
|
|
657
660
|
beforeBootstrap: b = (v) => {
|
|
658
661
|
v();
|
|
659
662
|
}
|
|
660
663
|
}) => {
|
|
661
|
-
const { createRoot: v } =
|
|
662
|
-
if (
|
|
664
|
+
const { createRoot: v } = br;
|
|
665
|
+
if (X && (yr || !gr)) {
|
|
663
666
|
window.CUSTOM_PLUGIN || (window.CUSTOM_PLUGIN = /* @__PURE__ */ new Map());
|
|
664
|
-
const
|
|
667
|
+
const w = (m, l, s, P = {}, d) => {
|
|
665
668
|
b(
|
|
666
669
|
async () => {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
670
|
+
try {
|
|
671
|
+
await E(m, l);
|
|
672
|
+
const p = pr({
|
|
673
|
+
// Cast props to the generic type expected by the HOC.
|
|
674
|
+
props: l,
|
|
675
|
+
context: s,
|
|
676
|
+
eventBus: P,
|
|
677
|
+
adapter: _
|
|
678
|
+
})(O), h = v(m);
|
|
679
|
+
d == null || d(h), h.render(p);
|
|
680
|
+
} catch (p) {
|
|
681
|
+
console.error(`[Plugin: ${X}] Bootstrap failed:`, p);
|
|
682
|
+
}
|
|
675
683
|
},
|
|
676
|
-
{ dom:
|
|
684
|
+
{ dom: m, props: l }
|
|
677
685
|
);
|
|
678
686
|
};
|
|
679
|
-
window.CUSTOM_PLUGIN.set(
|
|
687
|
+
window.CUSTOM_PLUGIN.set(X, w);
|
|
680
688
|
} else
|
|
681
689
|
b(() => {
|
|
682
|
-
var
|
|
683
|
-
const
|
|
684
|
-
if (
|
|
685
|
-
const l = v(
|
|
690
|
+
var m;
|
|
691
|
+
const w = document.getElementById("root");
|
|
692
|
+
if (w) {
|
|
693
|
+
const l = v(w), s = mr.createElement(O, {
|
|
686
694
|
type: "development"
|
|
687
695
|
});
|
|
688
|
-
(
|
|
696
|
+
(m = l == null ? void 0 : l.render) == null || m.call(l, s);
|
|
689
697
|
}
|
|
690
698
|
});
|
|
691
699
|
};
|
|
692
700
|
export {
|
|
693
|
-
|
|
701
|
+
Or as c,
|
|
702
|
+
hr as s
|
|
694
703
|
};
|
|
695
|
-
//# sourceMappingURL=start-
|
|
704
|
+
//# sourceMappingURL=start-rmMDvB0v.js.map
|