@blockbite/ui 2.0.18 → 2.0.19
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.js +393 -374
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Pencil1 as Mt, Plus as vn, Trash as mn, ChevronDown as hn, Cross2 as yn, Tailwind as bn, Percentage as gn, Grid as xn, Desktop as _n, Slider as jn, ColumnSpacing as Cn } from "@blockbite/icons";
|
|
2
|
-
import { Button as ye, Dropdown as wn, TextControl as rt, CheckboxControl as En, DropdownMenu as Rn, FocalPointPicker as
|
|
3
|
-
import { memo as tt, useState as F, useEffect as
|
|
2
|
+
import { Button as ye, Dropdown as wn, TextControl as rt, CheckboxControl as En, DropdownMenu as Rn, FocalPointPicker as Sn, PanelRow as kn, Popover as Tn, RangeControl as On, Modal as Pn, Notice as Nn, __experimentalInputControl as An, __experimentalInputControlSuffixWrapper as In, SelectControl as Dn, Spinner as $n, TabPanel as Fn, __experimentalToggleGroupControl as Ln, __experimentalToggleGroupControlOptionIcon as Mn, __experimentalToggleGroupControlOption as Bn, ToggleControl as Wn } from "@wordpress/components";
|
|
3
|
+
import { memo as tt, useState as F, useEffect as G, useCallback as Bt, useRef as lr, createPortal as Wt, forwardRef as Un, createContext as Ut, useContext as nt, Children as Rr, isValidElement as Sr, useMemo as Vn } from "@wordpress/element";
|
|
4
4
|
import Yn from "@wordpress/api-fetch";
|
|
5
5
|
import { __ as Me } from "@wordpress/i18n";
|
|
6
6
|
import { MediaUploadCheck as Qr, MediaUpload as Pt } from "@wordpress/block-editor";
|
|
7
|
-
import { SVG as zn, Path as
|
|
8
|
-
import { createBlock as
|
|
9
|
-
function
|
|
7
|
+
import { SVG as zn, Path as Hn } from "@wordpress/primitives";
|
|
8
|
+
import { createBlock as qn } from "@wordpress/blocks";
|
|
9
|
+
function Gn(o) {
|
|
10
10
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var kr = { exports: {} }, or = {}, Tr = { exports: {} }, N = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react.production.min.js
|
|
@@ -20,7 +20,7 @@ var Sr = { exports: {} }, or = {}, Tr = { exports: {} }, N = {};
|
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
22
|
var Nt;
|
|
23
|
-
function
|
|
23
|
+
function Kn() {
|
|
24
24
|
if (Nt) return N;
|
|
25
25
|
Nt = 1;
|
|
26
26
|
var o = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), h = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), _ = Symbol.iterator;
|
|
@@ -32,7 +32,7 @@ function Hn() {
|
|
|
32
32
|
}, enqueueForceUpdate: function() {
|
|
33
33
|
}, enqueueReplaceState: function() {
|
|
34
34
|
}, enqueueSetState: function() {
|
|
35
|
-
} },
|
|
35
|
+
} }, k = Object.assign, ae = {};
|
|
36
36
|
function de(s, y, I) {
|
|
37
37
|
this.props = s, this.context = y, this.refs = ae, this.updater = I || T;
|
|
38
38
|
}
|
|
@@ -49,19 +49,19 @@ function Hn() {
|
|
|
49
49
|
this.props = s, this.context = y, this.refs = ae, this.updater = I || T;
|
|
50
50
|
}
|
|
51
51
|
var ge = Y.prototype = new A();
|
|
52
|
-
ge.constructor = Y,
|
|
53
|
-
var
|
|
52
|
+
ge.constructor = Y, k(ge, de.prototype), ge.isPureReactComponent = !0;
|
|
53
|
+
var K = Array.isArray, X = Object.prototype.hasOwnProperty, ie = { current: null }, pe = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
54
54
|
function je(s, y, I) {
|
|
55
|
-
var $, M = {}, J = null,
|
|
56
|
-
if (y != null) for ($ in y.ref !== void 0 && (
|
|
55
|
+
var $, M = {}, J = null, H = null;
|
|
56
|
+
if (y != null) for ($ in y.ref !== void 0 && (H = y.ref), y.key !== void 0 && (J = "" + y.key), y) X.call(y, $) && !pe.hasOwnProperty($) && (M[$] = y[$]);
|
|
57
57
|
var z = arguments.length - 2;
|
|
58
58
|
if (z === 1) M.children = I;
|
|
59
59
|
else if (1 < z) {
|
|
60
|
-
for (var
|
|
61
|
-
M.children =
|
|
60
|
+
for (var U = Array(z), oe = 0; oe < z; oe++) U[oe] = arguments[oe + 2];
|
|
61
|
+
M.children = U;
|
|
62
62
|
}
|
|
63
63
|
if (s && s.defaultProps) for ($ in z = s.defaultProps, z) M[$] === void 0 && (M[$] = z[$]);
|
|
64
|
-
return { $$typeof: o, type: s, key: J, ref:
|
|
64
|
+
return { $$typeof: o, type: s, key: J, ref: H, props: M, _owner: ie.current };
|
|
65
65
|
}
|
|
66
66
|
function Te(s, y) {
|
|
67
67
|
return { $$typeof: o, type: s.type, key: y, ref: s.ref, props: s.props, _owner: s._owner };
|
|
@@ -82,31 +82,31 @@ function Hn() {
|
|
|
82
82
|
function me(s, y, I, $, M) {
|
|
83
83
|
var J = typeof s;
|
|
84
84
|
(J === "undefined" || J === "boolean") && (s = null);
|
|
85
|
-
var
|
|
86
|
-
if (s === null)
|
|
85
|
+
var H = !1;
|
|
86
|
+
if (s === null) H = !0;
|
|
87
87
|
else switch (J) {
|
|
88
88
|
case "string":
|
|
89
89
|
case "number":
|
|
90
|
-
|
|
90
|
+
H = !0;
|
|
91
91
|
break;
|
|
92
92
|
case "object":
|
|
93
93
|
switch (s.$$typeof) {
|
|
94
94
|
case o:
|
|
95
95
|
case a:
|
|
96
|
-
|
|
96
|
+
H = !0;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
if (
|
|
99
|
+
if (H) return H = s, M = M(H), s = $ === "" ? "." + ve(H, 0) : $, K(M) ? (I = "", s != null && (I = s.replace(Pe, "$&/") + "/"), me(M, y, I, "", function(oe) {
|
|
100
100
|
return oe;
|
|
101
|
-
})) : M != null && (Oe(M) && (M = Te(M, I + (!M.key ||
|
|
102
|
-
if (
|
|
101
|
+
})) : M != null && (Oe(M) && (M = Te(M, I + (!M.key || H && H.key === M.key ? "" : ("" + M.key).replace(Pe, "$&/") + "/") + s)), y.push(M)), 1;
|
|
102
|
+
if (H = 0, $ = $ === "" ? "." : $ + ":", K(s)) for (var z = 0; z < s.length; z++) {
|
|
103
103
|
J = s[z];
|
|
104
|
-
var
|
|
105
|
-
|
|
104
|
+
var U = $ + ve(J, z);
|
|
105
|
+
H += me(J, y, I, U, M);
|
|
106
106
|
}
|
|
107
|
-
else if (
|
|
107
|
+
else if (U = O(s), typeof U == "function") for (s = U.call(s), z = 0; !(J = s.next()).done; ) J = J.value, U = $ + ve(J, z++), H += me(J, y, I, U, M);
|
|
108
108
|
else if (J === "object") throw y = String(s), Error("Objects are not valid as a React child (found: " + (y === "[object Object]" ? "object with keys {" + Object.keys(s).join(", ") + "}" : y) + "). If you meant to render a collection of children, use an array instead.");
|
|
109
|
-
return
|
|
109
|
+
return H;
|
|
110
110
|
}
|
|
111
111
|
function le(s, y, I) {
|
|
112
112
|
if (s == null) return s;
|
|
@@ -149,19 +149,19 @@ function Hn() {
|
|
|
149
149
|
return s;
|
|
150
150
|
} }, N.Component = de, N.Fragment = u, N.Profiler = d, N.PureComponent = Y, N.StrictMode = l, N.Suspense = g, N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ne, N.act = Ce, N.cloneElement = function(s, y, I) {
|
|
151
151
|
if (s == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + s + ".");
|
|
152
|
-
var $ =
|
|
152
|
+
var $ = k({}, s.props), M = s.key, J = s.ref, H = s._owner;
|
|
153
153
|
if (y != null) {
|
|
154
|
-
if (y.ref !== void 0 && (J = y.ref,
|
|
155
|
-
for (
|
|
156
|
-
}
|
|
157
|
-
var
|
|
158
|
-
if (
|
|
159
|
-
else if (1 <
|
|
160
|
-
z = Array(
|
|
161
|
-
for (var oe = 0; oe <
|
|
154
|
+
if (y.ref !== void 0 && (J = y.ref, H = ie.current), y.key !== void 0 && (M = "" + y.key), s.type && s.type.defaultProps) var z = s.type.defaultProps;
|
|
155
|
+
for (U in y) X.call(y, U) && !pe.hasOwnProperty(U) && ($[U] = y[U] === void 0 && z !== void 0 ? z[U] : y[U]);
|
|
156
|
+
}
|
|
157
|
+
var U = arguments.length - 2;
|
|
158
|
+
if (U === 1) $.children = I;
|
|
159
|
+
else if (1 < U) {
|
|
160
|
+
z = Array(U);
|
|
161
|
+
for (var oe = 0; oe < U; oe++) z[oe] = arguments[oe + 2];
|
|
162
162
|
$.children = z;
|
|
163
163
|
}
|
|
164
|
-
return { $$typeof: o, type: s.type, key: M, ref: J, props: $, _owner:
|
|
164
|
+
return { $$typeof: o, type: s.type, key: M, ref: J, props: $, _owner: H };
|
|
165
165
|
}, N.createContext = function(s) {
|
|
166
166
|
return s = { $$typeof: h, _currentValue: s, _currentValue2: s, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, s.Provider = { $$typeof: f, _context: s }, s.Consumer = s;
|
|
167
167
|
}, N.createElement = je, N.createFactory = function(s) {
|
|
@@ -230,7 +230,7 @@ function Jn() {
|
|
|
230
230
|
return At || (At = 1, function(o, a) {
|
|
231
231
|
process.env.NODE_ENV !== "production" && function() {
|
|
232
232
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
233
|
-
var u = "18.3.1", l = Symbol.for("react.element"), d = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), p = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"),
|
|
233
|
+
var u = "18.3.1", l = Symbol.for("react.element"), d = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), p = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), ae = Symbol.for("react.offscreen"), de = Symbol.iterator, A = "@@iterator";
|
|
234
234
|
function Y(e) {
|
|
235
235
|
if (e === null || typeof e != "object")
|
|
236
236
|
return null;
|
|
@@ -243,7 +243,7 @@ function Jn() {
|
|
|
243
243
|
* @type {ReactComponent}
|
|
244
244
|
*/
|
|
245
245
|
current: null
|
|
246
|
-
},
|
|
246
|
+
}, K = {
|
|
247
247
|
transition: null
|
|
248
248
|
}, X = {
|
|
249
249
|
current: null,
|
|
@@ -270,7 +270,7 @@ function Jn() {
|
|
|
270
270
|
};
|
|
271
271
|
var Oe = !1, Je = !1, Pe = !1, ve = !1, me = !1, le = {
|
|
272
272
|
ReactCurrentDispatcher: ge,
|
|
273
|
-
ReactCurrentBatchConfig:
|
|
273
|
+
ReactCurrentBatchConfig: K,
|
|
274
274
|
ReactCurrentOwner: ie
|
|
275
275
|
};
|
|
276
276
|
le.ReactDebugCurrentFrame = pe, le.ReactCurrentActQueue = X;
|
|
@@ -390,17 +390,17 @@ function Jn() {
|
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
};
|
|
393
|
-
for (var
|
|
394
|
-
M.hasOwnProperty(
|
|
393
|
+
for (var H in M)
|
|
394
|
+
M.hasOwnProperty(H) && J(H, M[H]);
|
|
395
395
|
}
|
|
396
396
|
function z() {
|
|
397
397
|
}
|
|
398
398
|
z.prototype = $.prototype;
|
|
399
|
-
function
|
|
399
|
+
function U(e, r, i) {
|
|
400
400
|
this.props = e, this.context = r, this.refs = I, this.updater = i || s;
|
|
401
401
|
}
|
|
402
|
-
var oe =
|
|
403
|
-
oe.constructor =
|
|
402
|
+
var oe = U.prototype = new z();
|
|
403
|
+
oe.constructor = U, y(oe, $.prototype), oe.isPureReactComponent = !0;
|
|
404
404
|
function Or() {
|
|
405
405
|
var e = {
|
|
406
406
|
current: null
|
|
@@ -408,7 +408,7 @@ function Jn() {
|
|
|
408
408
|
return Object.seal(e), e;
|
|
409
409
|
}
|
|
410
410
|
var ur = Array.isArray;
|
|
411
|
-
function
|
|
411
|
+
function Be(e) {
|
|
412
412
|
return ur(e);
|
|
413
413
|
}
|
|
414
414
|
function Pr(e) {
|
|
@@ -417,7 +417,7 @@ function Jn() {
|
|
|
417
417
|
return i;
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function We(e) {
|
|
421
421
|
try {
|
|
422
422
|
return Ee(e), !1;
|
|
423
423
|
} catch {
|
|
@@ -428,7 +428,7 @@ function Jn() {
|
|
|
428
428
|
return "" + e;
|
|
429
429
|
}
|
|
430
430
|
function Ae(e) {
|
|
431
|
-
if (
|
|
431
|
+
if (We(e))
|
|
432
432
|
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pr(e)), Ee(e);
|
|
433
433
|
}
|
|
434
434
|
function cr(e, r, i) {
|
|
@@ -475,7 +475,7 @@ function Jn() {
|
|
|
475
475
|
case T:
|
|
476
476
|
var c = e.displayName || null;
|
|
477
477
|
return c !== null ? c : _e(e.type) || "Memo";
|
|
478
|
-
case
|
|
478
|
+
case k: {
|
|
479
479
|
var b = e, R = b._payload, w = b._init;
|
|
480
480
|
try {
|
|
481
481
|
return _e(w(R));
|
|
@@ -486,13 +486,13 @@ function Jn() {
|
|
|
486
486
|
}
|
|
487
487
|
return null;
|
|
488
488
|
}
|
|
489
|
-
var De = Object.prototype.hasOwnProperty,
|
|
489
|
+
var De = Object.prototype.hasOwnProperty, Ue = {
|
|
490
490
|
key: !0,
|
|
491
491
|
ref: !0,
|
|
492
492
|
__self: !0,
|
|
493
493
|
__source: !0
|
|
494
|
-
}, fr, dr,
|
|
495
|
-
|
|
494
|
+
}, fr, dr, Ve;
|
|
495
|
+
Ve = {};
|
|
496
496
|
function Xe(e) {
|
|
497
497
|
if (De.call(e, "ref")) {
|
|
498
498
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -530,11 +530,11 @@ function Jn() {
|
|
|
530
530
|
function vr(e) {
|
|
531
531
|
if (typeof e.ref == "string" && ie.current && e.__self && ie.current.stateNode !== e.__self) {
|
|
532
532
|
var r = _e(ie.current.type);
|
|
533
|
-
|
|
533
|
+
Ve[r] || (E('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', r, e.ref), Ve[r] = !0);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
var Qe = function(e, r, i, c, b, R, w) {
|
|
537
|
-
var
|
|
537
|
+
var S = {
|
|
538
538
|
// This tag allows us to uniquely identify this as a React Element
|
|
539
539
|
$$typeof: l,
|
|
540
540
|
// Built-in properties that belong on the element
|
|
@@ -545,35 +545,35 @@ function Jn() {
|
|
|
545
545
|
// Record the component responsible for creating this element.
|
|
546
546
|
_owner: R
|
|
547
547
|
};
|
|
548
|
-
return
|
|
548
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
549
549
|
configurable: !1,
|
|
550
550
|
enumerable: !1,
|
|
551
551
|
writable: !0,
|
|
552
552
|
value: !1
|
|
553
|
-
}), Object.defineProperty(
|
|
553
|
+
}), Object.defineProperty(S, "_self", {
|
|
554
554
|
configurable: !1,
|
|
555
555
|
enumerable: !1,
|
|
556
556
|
writable: !1,
|
|
557
557
|
value: c
|
|
558
|
-
}), Object.defineProperty(
|
|
558
|
+
}), Object.defineProperty(S, "_source", {
|
|
559
559
|
configurable: !1,
|
|
560
560
|
enumerable: !1,
|
|
561
561
|
writable: !1,
|
|
562
562
|
value: b
|
|
563
|
-
}), Object.freeze && (Object.freeze(
|
|
563
|
+
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
564
564
|
};
|
|
565
565
|
function Ar(e, r, i) {
|
|
566
|
-
var c, b = {}, R = null, w = null,
|
|
566
|
+
var c, b = {}, R = null, w = null, S = null, L = null;
|
|
567
567
|
if (r != null) {
|
|
568
|
-
Xe(r) && (w = r.ref, vr(r)), Ze(r) && (Ae(r.key), R = "" + r.key),
|
|
568
|
+
Xe(r) && (w = r.ref, vr(r)), Ze(r) && (Ae(r.key), R = "" + r.key), S = r.__self === void 0 ? null : r.__self, L = r.__source === void 0 ? null : r.__source;
|
|
569
569
|
for (c in r)
|
|
570
|
-
De.call(r, c) && !
|
|
570
|
+
De.call(r, c) && !Ue.hasOwnProperty(c) && (b[c] = r[c]);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
572
|
+
var q = arguments.length - 2;
|
|
573
|
+
if (q === 1)
|
|
574
574
|
b.children = i;
|
|
575
|
-
else if (
|
|
576
|
-
for (var Z = Array(
|
|
575
|
+
else if (q > 1) {
|
|
576
|
+
for (var Z = Array(q), Q = 0; Q < q; Q++)
|
|
577
577
|
Z[Q] = arguments[Q + 2];
|
|
578
578
|
Object.freeze && Object.freeze(Z), b.children = Z;
|
|
579
579
|
}
|
|
@@ -586,7 +586,7 @@ function Jn() {
|
|
|
586
586
|
var se = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
587
587
|
R && Nr(b, se), w && pr(b, se);
|
|
588
588
|
}
|
|
589
|
-
return Qe(e, R, w,
|
|
589
|
+
return Qe(e, R, w, S, L, ie.current, b);
|
|
590
590
|
}
|
|
591
591
|
function Ir(e, r) {
|
|
592
592
|
var i = Qe(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
|
|
@@ -595,13 +595,13 @@ function Jn() {
|
|
|
595
595
|
function Dr(e, r, i) {
|
|
596
596
|
if (e == null)
|
|
597
597
|
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
598
|
-
var c, b = y({}, e.props), R = e.key, w = e.ref,
|
|
598
|
+
var c, b = y({}, e.props), R = e.key, w = e.ref, S = e._self, L = e._source, q = e._owner;
|
|
599
599
|
if (r != null) {
|
|
600
|
-
Xe(r) && (w = r.ref,
|
|
600
|
+
Xe(r) && (w = r.ref, q = ie.current), Ze(r) && (Ae(r.key), R = "" + r.key);
|
|
601
601
|
var Z;
|
|
602
602
|
e.type && e.type.defaultProps && (Z = e.type.defaultProps);
|
|
603
603
|
for (c in r)
|
|
604
|
-
De.call(r, c) && !
|
|
604
|
+
De.call(r, c) && !Ue.hasOwnProperty(c) && (r[c] === void 0 && Z !== void 0 ? b[c] = Z[c] : b[c] = r[c]);
|
|
605
605
|
}
|
|
606
606
|
var Q = arguments.length - 2;
|
|
607
607
|
if (Q === 1)
|
|
@@ -611,7 +611,7 @@ function Jn() {
|
|
|
611
611
|
re[se] = arguments[se + 2];
|
|
612
612
|
b.children = re;
|
|
613
613
|
}
|
|
614
|
-
return Qe(e.type, R, w,
|
|
614
|
+
return Qe(e.type, R, w, S, L, q, b);
|
|
615
615
|
}
|
|
616
616
|
function Re(e) {
|
|
617
617
|
return typeof e == "object" && e !== null && e.$$typeof === l;
|
|
@@ -626,9 +626,9 @@ function Jn() {
|
|
|
626
626
|
});
|
|
627
627
|
return "$" + c;
|
|
628
628
|
}
|
|
629
|
-
var rr = !1,
|
|
629
|
+
var rr = !1, Se = /\/+/g;
|
|
630
630
|
function Ye(e) {
|
|
631
|
-
return e.replace(
|
|
631
|
+
return e.replace(Se, "$&/");
|
|
632
632
|
}
|
|
633
633
|
function $e(e, r) {
|
|
634
634
|
return typeof e == "object" && e !== null && e.key != null ? (Ae(e.key), er("" + e.key)) : r.toString(36);
|
|
@@ -653,35 +653,35 @@ function Jn() {
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
if (w) {
|
|
656
|
-
var
|
|
657
|
-
if (
|
|
656
|
+
var S = e, L = b(S), q = c === "" ? mr + $e(S, 0) : c;
|
|
657
|
+
if (Be(L)) {
|
|
658
658
|
var Z = "";
|
|
659
|
-
|
|
659
|
+
q != null && (Z = Ye(q) + "/"), Fe(L, r, Z, "", function(pn) {
|
|
660
660
|
return pn;
|
|
661
661
|
});
|
|
662
|
-
} else L != null && (Re(L) && (L.key && (!
|
|
662
|
+
} else L != null && (Re(L) && (L.key && (!S || S.key !== L.key) && Ae(L.key), L = Ir(
|
|
663
663
|
L,
|
|
664
664
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
665
665
|
// traverseAllChildren used to do for objects as children
|
|
666
666
|
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
667
|
-
(L.key && (!
|
|
667
|
+
(L.key && (!S || S.key !== L.key) ? (
|
|
668
668
|
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
669
669
|
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
670
670
|
Ye("" + L.key) + "/"
|
|
671
|
-
) : "") +
|
|
671
|
+
) : "") + q
|
|
672
672
|
)), r.push(L));
|
|
673
673
|
return 1;
|
|
674
674
|
}
|
|
675
675
|
var Q, re, se = 0, ce = c === "" ? mr : c + $r;
|
|
676
|
-
if (
|
|
676
|
+
if (Be(e))
|
|
677
677
|
for (var Er = 0; Er < e.length; Er++)
|
|
678
678
|
Q = e[Er], re = ce + $e(Q, Er), se += Fe(Q, r, i, re, b);
|
|
679
679
|
else {
|
|
680
680
|
var Zr = Y(e);
|
|
681
681
|
if (typeof Zr == "function") {
|
|
682
|
-
var
|
|
683
|
-
Zr ===
|
|
684
|
-
for (var fn = Zr.call(
|
|
682
|
+
var kt = e;
|
|
683
|
+
Zr === kt.entries && (rr || be("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), rr = !0);
|
|
684
|
+
for (var fn = Zr.call(kt), Tt, dn = 0; !(Tt = fn.next()).done; )
|
|
685
685
|
Q = Tt.value, re = ce + $e(Q, dn++), se += Fe(Q, r, i, re, b);
|
|
686
686
|
} else if (R === "object") {
|
|
687
687
|
var Ot = String(e);
|
|
@@ -799,23 +799,23 @@ function Jn() {
|
|
|
799
799
|
}
|
|
800
800
|
return r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
801
801
|
}
|
|
802
|
-
var Le = -1,
|
|
803
|
-
function
|
|
802
|
+
var Le = -1, He = 0, tr = 1, Mr = 2;
|
|
803
|
+
function Br(e) {
|
|
804
804
|
if (e._status === Le) {
|
|
805
805
|
var r = e._result, i = r();
|
|
806
806
|
if (i.then(function(R) {
|
|
807
|
-
if (e._status ===
|
|
807
|
+
if (e._status === He || e._status === Le) {
|
|
808
808
|
var w = e;
|
|
809
809
|
w._status = tr, w._result = R;
|
|
810
810
|
}
|
|
811
811
|
}, function(R) {
|
|
812
|
-
if (e._status ===
|
|
812
|
+
if (e._status === He || e._status === Le) {
|
|
813
813
|
var w = e;
|
|
814
814
|
w._status = Mr, w._result = R;
|
|
815
815
|
}
|
|
816
816
|
}), e._status === Le) {
|
|
817
817
|
var c = e;
|
|
818
|
-
c._status =
|
|
818
|
+
c._status = He, c._result = i;
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
if (e._status === tr) {
|
|
@@ -832,15 +832,15 @@ Your code should look like:
|
|
|
832
832
|
} else
|
|
833
833
|
throw e._result;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function Wr(e) {
|
|
836
836
|
var r = {
|
|
837
837
|
// We use these fields to store the result.
|
|
838
838
|
_status: Le,
|
|
839
839
|
_result: e
|
|
840
840
|
}, i = {
|
|
841
|
-
$$typeof:
|
|
841
|
+
$$typeof: k,
|
|
842
842
|
_payload: r,
|
|
843
|
-
_init:
|
|
843
|
+
_init: Br
|
|
844
844
|
};
|
|
845
845
|
{
|
|
846
846
|
var c, b;
|
|
@@ -871,7 +871,7 @@ Your code should look like:
|
|
|
871
871
|
}
|
|
872
872
|
return i;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Ur(e) {
|
|
875
875
|
e != null && e.$$typeof === T ? E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? E("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && E("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) && E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
876
876
|
var r = {
|
|
877
877
|
$$typeof: j,
|
|
@@ -895,7 +895,7 @@ Your code should look like:
|
|
|
895
895
|
var t;
|
|
896
896
|
t = Symbol.for("react.module.reference");
|
|
897
897
|
function m(e) {
|
|
898
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e === v || me || e === h || e === _ || e === O || ve || e === ae || Oe || Je || Pe || typeof e == "object" && e !== null && (e.$$typeof ===
|
|
898
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === v || me || e === h || e === _ || e === O || ve || e === ae || Oe || Je || Pe || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === T || e.$$typeof === g || e.$$typeof === p || e.$$typeof === j || // This needs to include all possible module reference object
|
|
899
899
|
// types supported by any Flight configuration anywhere since
|
|
900
900
|
// we don't know which Flight build this will end up being used
|
|
901
901
|
// with.
|
|
@@ -931,7 +931,7 @@ Your code should look like:
|
|
|
931
931
|
3. You might have more than one copy of React in the same app
|
|
932
932
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function B(e) {
|
|
935
935
|
var r = C();
|
|
936
936
|
if (e._context !== void 0) {
|
|
937
937
|
var i = e._context;
|
|
@@ -939,7 +939,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
939
939
|
}
|
|
940
940
|
return r.useContext(e);
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function V(e) {
|
|
943
943
|
var r = C();
|
|
944
944
|
return r.useState(e);
|
|
945
945
|
}
|
|
@@ -967,7 +967,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
967
967
|
var i = C();
|
|
968
968
|
return i.useCallback(e, r);
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function ke(e, r) {
|
|
971
971
|
var i = C();
|
|
972
972
|
return i.useMemo(e, r);
|
|
973
973
|
}
|
|
@@ -985,7 +985,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
985
985
|
var e = C();
|
|
986
986
|
return e.useTransition();
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function Vr(e) {
|
|
989
989
|
var r = C();
|
|
990
990
|
return r.useDeferredValue(e);
|
|
991
991
|
}
|
|
@@ -1001,7 +1001,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1001
1001
|
function vt() {
|
|
1002
1002
|
}
|
|
1003
1003
|
vt.__reactDisabledLog = !0;
|
|
1004
|
-
function
|
|
1004
|
+
function Ht() {
|
|
1005
1005
|
{
|
|
1006
1006
|
if (ar === 0) {
|
|
1007
1007
|
it = console.log, lt = console.info, ut = console.warn, ct = console.error, ft = console.group, dt = console.groupCollapsed, pt = console.groupEnd;
|
|
@@ -1024,7 +1024,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1024
1024
|
ar++;
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function qt() {
|
|
1028
1028
|
{
|
|
1029
1029
|
if (ar--, ar === 0) {
|
|
1030
1030
|
var e = {
|
|
@@ -1059,27 +1059,27 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1059
1059
|
ar < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
|
-
var zr = le.ReactCurrentDispatcher,
|
|
1062
|
+
var zr = le.ReactCurrentDispatcher, Hr;
|
|
1063
1063
|
function gr(e, r, i) {
|
|
1064
1064
|
{
|
|
1065
|
-
if (
|
|
1065
|
+
if (Hr === void 0)
|
|
1066
1066
|
try {
|
|
1067
1067
|
throw Error();
|
|
1068
1068
|
} catch (b) {
|
|
1069
1069
|
var c = b.stack.trim().match(/\n( *(at )?)/);
|
|
1070
|
-
|
|
1070
|
+
Hr = c && c[1] || "";
|
|
1071
1071
|
}
|
|
1072
1072
|
return `
|
|
1073
|
-
` +
|
|
1073
|
+
` + Hr + e;
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
|
-
var
|
|
1076
|
+
var qr = !1, xr;
|
|
1077
1077
|
{
|
|
1078
|
-
var
|
|
1079
|
-
xr = new
|
|
1078
|
+
var Gt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1079
|
+
xr = new Gt();
|
|
1080
1080
|
}
|
|
1081
1081
|
function mt(e, r) {
|
|
1082
|
-
if (!e ||
|
|
1082
|
+
if (!e || qr)
|
|
1083
1083
|
return "";
|
|
1084
1084
|
{
|
|
1085
1085
|
var i = xr.get(e);
|
|
@@ -1087,11 +1087,11 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1087
1087
|
return i;
|
|
1088
1088
|
}
|
|
1089
1089
|
var c;
|
|
1090
|
-
|
|
1090
|
+
qr = !0;
|
|
1091
1091
|
var b = Error.prepareStackTrace;
|
|
1092
1092
|
Error.prepareStackTrace = void 0;
|
|
1093
1093
|
var R;
|
|
1094
|
-
R = zr.current, zr.current = null,
|
|
1094
|
+
R = zr.current, zr.current = null, Ht();
|
|
1095
1095
|
try {
|
|
1096
1096
|
if (r) {
|
|
1097
1097
|
var w = function() {
|
|
@@ -1126,30 +1126,30 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1126
1126
|
}
|
|
1127
1127
|
} catch (ce) {
|
|
1128
1128
|
if (ce && c && typeof ce.stack == "string") {
|
|
1129
|
-
for (var
|
|
1129
|
+
for (var S = ce.stack.split(`
|
|
1130
1130
|
`), L = c.stack.split(`
|
|
1131
|
-
`),
|
|
1131
|
+
`), q = S.length - 1, Z = L.length - 1; q >= 1 && Z >= 0 && S[q] !== L[Z]; )
|
|
1132
1132
|
Z--;
|
|
1133
|
-
for (;
|
|
1134
|
-
if (
|
|
1135
|
-
if (
|
|
1133
|
+
for (; q >= 1 && Z >= 0; q--, Z--)
|
|
1134
|
+
if (S[q] !== L[Z]) {
|
|
1135
|
+
if (q !== 1 || Z !== 1)
|
|
1136
1136
|
do
|
|
1137
|
-
if (
|
|
1137
|
+
if (q--, Z--, Z < 0 || S[q] !== L[Z]) {
|
|
1138
1138
|
var Q = `
|
|
1139
|
-
` +
|
|
1139
|
+
` + S[q].replace(" at new ", " at ");
|
|
1140
1140
|
return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && xr.set(e, Q), Q;
|
|
1141
1141
|
}
|
|
1142
|
-
while (
|
|
1142
|
+
while (q >= 1 && Z >= 0);
|
|
1143
1143
|
break;
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
} finally {
|
|
1147
|
-
|
|
1147
|
+
qr = !1, zr.current = R, qt(), Error.prepareStackTrace = b;
|
|
1148
1148
|
}
|
|
1149
1149
|
var re = e ? e.displayName || e.name : "", se = re ? gr(re) : "";
|
|
1150
1150
|
return typeof e == "function" && xr.set(e, se), se;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function Kt(e, r, i) {
|
|
1153
1153
|
return mt(e, !1);
|
|
1154
1154
|
}
|
|
1155
1155
|
function Jt(e) {
|
|
@@ -1172,10 +1172,10 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1172
1172
|
if (typeof e == "object")
|
|
1173
1173
|
switch (e.$$typeof) {
|
|
1174
1174
|
case j:
|
|
1175
|
-
return
|
|
1175
|
+
return Kt(e.render);
|
|
1176
1176
|
case T:
|
|
1177
1177
|
return _r(e.type, r, i);
|
|
1178
|
-
case
|
|
1178
|
+
case k: {
|
|
1179
1179
|
var c = e, b = c._payload, R = c._init;
|
|
1180
1180
|
try {
|
|
1181
1181
|
return _r(R(b), r, i);
|
|
@@ -1198,29 +1198,29 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1198
1198
|
var R = Function.call.bind(De);
|
|
1199
1199
|
for (var w in e)
|
|
1200
1200
|
if (R(e, w)) {
|
|
1201
|
-
var
|
|
1201
|
+
var S = void 0;
|
|
1202
1202
|
try {
|
|
1203
1203
|
if (typeof e[w] != "function") {
|
|
1204
1204
|
var L = Error((c || "React class") + ": " + i + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1205
1205
|
throw L.name = "Invariant Violation", L;
|
|
1206
1206
|
}
|
|
1207
|
-
|
|
1208
|
-
} catch (
|
|
1209
|
-
|
|
1207
|
+
S = e[w](r, w, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1208
|
+
} catch (q) {
|
|
1209
|
+
S = q;
|
|
1210
1210
|
}
|
|
1211
|
-
|
|
1211
|
+
S && !(S instanceof Error) && (jr(b), E("%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).", c || "React class", i, w, typeof S), jr(null)), S instanceof Error && !(S.message in ht) && (ht[S.message] = !0, jr(b), E("Failed %s type: %s", i, S.message), jr(null));
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function qe(e) {
|
|
1216
1216
|
if (e) {
|
|
1217
1217
|
var r = e._owner, i = _r(e.type, e._source, r ? r.type : null);
|
|
1218
1218
|
Te(i);
|
|
1219
1219
|
} else
|
|
1220
1220
|
Te(null);
|
|
1221
1221
|
}
|
|
1222
|
-
var
|
|
1223
|
-
|
|
1222
|
+
var Gr;
|
|
1223
|
+
Gr = !1;
|
|
1224
1224
|
function bt() {
|
|
1225
1225
|
if (ie.current) {
|
|
1226
1226
|
var e = _e(ie.current.type);
|
|
@@ -1261,13 +1261,13 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1261
1261
|
if (!gt[i]) {
|
|
1262
1262
|
gt[i] = !0;
|
|
1263
1263
|
var c = "";
|
|
1264
|
-
e && e._owner && e._owner !== ie.current && (c = " It was passed a child from " + _e(e._owner.type) + "."),
|
|
1264
|
+
e && e._owner && e._owner !== ie.current && (c = " It was passed a child from " + _e(e._owner.type) + "."), qe(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, c), qe(null);
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
function _t(e, r) {
|
|
1269
1269
|
if (typeof e == "object") {
|
|
1270
|
-
if (
|
|
1270
|
+
if (Be(e))
|
|
1271
1271
|
for (var i = 0; i < e.length; i++) {
|
|
1272
1272
|
var c = e[i];
|
|
1273
1273
|
Re(c) && xt(c, r);
|
|
@@ -1299,8 +1299,8 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1299
1299
|
if (i) {
|
|
1300
1300
|
var c = _e(r);
|
|
1301
1301
|
Xt(i, e.props, "prop", c, e);
|
|
1302
|
-
} else if (r.PropTypes !== void 0 && !
|
|
1303
|
-
|
|
1302
|
+
} else if (r.PropTypes !== void 0 && !Gr) {
|
|
1303
|
+
Gr = !0;
|
|
1304
1304
|
var b = _e(r);
|
|
1305
1305
|
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
|
1306
1306
|
}
|
|
@@ -1312,11 +1312,11 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1312
1312
|
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
1313
1313
|
var c = r[i];
|
|
1314
1314
|
if (c !== "children" && c !== "key") {
|
|
1315
|
-
|
|
1315
|
+
qe(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), qe(null);
|
|
1316
1316
|
break;
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
e.ref !== null && (
|
|
1319
|
+
e.ref !== null && (qe(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), qe(null));
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
function Ct(e, r, i) {
|
|
@@ -1327,15 +1327,15 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1327
1327
|
var R = Qt(r);
|
|
1328
1328
|
R ? b += R : b += bt();
|
|
1329
1329
|
var w;
|
|
1330
|
-
e === null ? w = "null" :
|
|
1330
|
+
e === null ? w = "null" : Be(e) ? w = "array" : e !== void 0 && e.$$typeof === l ? (w = "<" + (_e(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, b);
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1333
|
-
if (
|
|
1334
|
-
return
|
|
1332
|
+
var S = Ar.apply(this, arguments);
|
|
1333
|
+
if (S == null)
|
|
1334
|
+
return S;
|
|
1335
1335
|
if (c)
|
|
1336
1336
|
for (var L = 2; L < arguments.length; L++)
|
|
1337
1337
|
_t(arguments[L], e);
|
|
1338
|
-
return e === f ? rn(
|
|
1338
|
+
return e === f ? rn(S) : jt(S), S;
|
|
1339
1339
|
}
|
|
1340
1340
|
var wt = !1;
|
|
1341
1341
|
function tn(e) {
|
|
@@ -1355,14 +1355,14 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1355
1355
|
return jt(c), c;
|
|
1356
1356
|
}
|
|
1357
1357
|
function an(e, r) {
|
|
1358
|
-
var i =
|
|
1359
|
-
|
|
1360
|
-
var c =
|
|
1361
|
-
|
|
1358
|
+
var i = K.transition;
|
|
1359
|
+
K.transition = {};
|
|
1360
|
+
var c = K.transition;
|
|
1361
|
+
K.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1362
1362
|
try {
|
|
1363
1363
|
e();
|
|
1364
1364
|
} finally {
|
|
1365
|
-
if (
|
|
1365
|
+
if (K.transition = i, i === null && c._updatedFibers) {
|
|
1366
1366
|
var b = c._updatedFibers.size;
|
|
1367
1367
|
b > 10 && be("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."), c._updatedFibers.clear();
|
|
1368
1368
|
}
|
|
@@ -1383,11 +1383,11 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1383
1383
|
}
|
|
1384
1384
|
return Cr(e);
|
|
1385
1385
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1386
|
+
var Ge = 0, Rt = !1;
|
|
1387
|
+
function St(e) {
|
|
1388
1388
|
{
|
|
1389
|
-
var r =
|
|
1390
|
-
|
|
1389
|
+
var r = Ge;
|
|
1390
|
+
Ge++, X.current === null && (X.current = []);
|
|
1391
1391
|
var i = X.isBatchingLegacy, c;
|
|
1392
1392
|
try {
|
|
1393
1393
|
if (X.isBatchingLegacy = !0, c = e(), !i && X.didScheduleLegacyUpdate) {
|
|
@@ -1400,10 +1400,10 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1400
1400
|
X.isBatchingLegacy = i;
|
|
1401
1401
|
}
|
|
1402
1402
|
if (c !== null && typeof c == "object" && typeof c.then == "function") {
|
|
1403
|
-
var R = c, w = !1,
|
|
1403
|
+
var R = c, w = !1, S = {
|
|
1404
1404
|
then: function(re, se) {
|
|
1405
1405
|
w = !0, R.then(function(ce) {
|
|
1406
|
-
wr(r),
|
|
1406
|
+
wr(r), Ge === 0 ? Kr(ce, re, se) : re(ce);
|
|
1407
1407
|
}, function(ce) {
|
|
1408
1408
|
wr(r), se(ce);
|
|
1409
1409
|
});
|
|
@@ -1412,15 +1412,15 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1412
1412
|
return !Rt && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
1413
1413
|
}).then(function() {
|
|
1414
1414
|
w || (Rt = !0, E("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1415
|
-
}),
|
|
1415
|
+
}), S;
|
|
1416
1416
|
} else {
|
|
1417
1417
|
var L = c;
|
|
1418
|
-
if (wr(r),
|
|
1419
|
-
var
|
|
1420
|
-
|
|
1418
|
+
if (wr(r), Ge === 0) {
|
|
1419
|
+
var q = X.current;
|
|
1420
|
+
q !== null && (Xr(q), X.current = null);
|
|
1421
1421
|
var Z = {
|
|
1422
1422
|
then: function(re, se) {
|
|
1423
|
-
X.current === null ? (X.current = [],
|
|
1423
|
+
X.current === null ? (X.current = [], Kr(L, re, se)) : re(L);
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
return Z;
|
|
@@ -1436,15 +1436,15 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
function wr(e) {
|
|
1439
|
-
e !==
|
|
1439
|
+
e !== Ge - 1 && E("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Ge = e;
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function Kr(e, r, i) {
|
|
1442
1442
|
{
|
|
1443
1443
|
var c = X.current;
|
|
1444
1444
|
if (c !== null)
|
|
1445
1445
|
try {
|
|
1446
1446
|
Xr(c), on(function() {
|
|
1447
|
-
c.length === 0 ? (X.current = null, r(e)) :
|
|
1447
|
+
c.length === 0 ? (X.current = null, r(e)) : Kr(e, r, i);
|
|
1448
1448
|
});
|
|
1449
1449
|
} catch (b) {
|
|
1450
1450
|
i(b);
|
|
@@ -1480,13 +1480,13 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1480
1480
|
toArray: yr,
|
|
1481
1481
|
only: br
|
|
1482
1482
|
};
|
|
1483
|
-
a.Children = cn, a.Component = $, a.Fragment = f, a.Profiler = v, a.PureComponent =
|
|
1483
|
+
a.Children = cn, a.Component = $, a.Fragment = f, a.Profiler = v, a.PureComponent = U, a.StrictMode = h, a.Suspense = _, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = le, a.act = St, a.cloneElement = ln, a.createContext = Lr, a.createElement = sn, a.createFactory = un, a.createRef = Or, a.forwardRef = Ur, a.isValidElement = Re, a.lazy = Wr, a.memo = x, a.startTransition = an, a.unstable_act = St, a.useCallback = he, a.useContext = B, a.useDebugValue = fe, a.useDeferredValue = Vr, a.useEffect = ue, a.useId = Yr, a.useImperativeHandle = we, a.useInsertionEffect = ee, a.useLayoutEffect = te, a.useMemo = ke, a.useReducer = D, a.useRef = P, a.useState = V, a.useSyncExternalStore = zt, a.useTransition = nr, a.version = u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1484
1484
|
}();
|
|
1485
1485
|
}(ir, ir.exports)), ir.exports;
|
|
1486
1486
|
}
|
|
1487
1487
|
var It;
|
|
1488
1488
|
function at() {
|
|
1489
|
-
return It || (It = 1, process.env.NODE_ENV === "production" ? Tr.exports =
|
|
1489
|
+
return It || (It = 1, process.env.NODE_ENV === "production" ? Tr.exports = Kn() : Tr.exports = Jn()), Tr.exports;
|
|
1490
1490
|
}
|
|
1491
1491
|
/**
|
|
1492
1492
|
* @license React
|
|
@@ -1524,11 +1524,11 @@ var sr = {};
|
|
|
1524
1524
|
var $t;
|
|
1525
1525
|
function Zn() {
|
|
1526
1526
|
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1527
|
-
var o = at(), a = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), v = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"),
|
|
1527
|
+
var o = at(), a = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), v = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), k = Symbol.iterator, ae = "@@iterator";
|
|
1528
1528
|
function de(t) {
|
|
1529
1529
|
if (t === null || typeof t != "object")
|
|
1530
1530
|
return null;
|
|
1531
|
-
var m =
|
|
1531
|
+
var m = k && t[k] || t[ae];
|
|
1532
1532
|
return typeof m == "function" ? m : null;
|
|
1533
1533
|
}
|
|
1534
1534
|
var A = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -1541,18 +1541,18 @@ function Zn() {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
function ge(t, m, x) {
|
|
1543
1543
|
{
|
|
1544
|
-
var C = A.ReactDebugCurrentFrame,
|
|
1545
|
-
|
|
1546
|
-
var
|
|
1544
|
+
var C = A.ReactDebugCurrentFrame, B = C.getStackAddendum();
|
|
1545
|
+
B !== "" && (m += "%s", x = x.concat([B]));
|
|
1546
|
+
var V = x.map(function(D) {
|
|
1547
1547
|
return String(D);
|
|
1548
1548
|
});
|
|
1549
|
-
|
|
1549
|
+
V.unshift("Warning: " + m), Function.prototype.apply.call(console[t], console, V);
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
|
-
var
|
|
1552
|
+
var K = !1, X = !1, ie = !1, pe = !1, je = !1, Te;
|
|
1553
1553
|
Te = Symbol.for("react.module.reference");
|
|
1554
1554
|
function Oe(t) {
|
|
1555
|
-
return !!(typeof t == "string" || typeof t == "function" || t === l || t === f || je || t === d || t === p || t === j || pe || t === T ||
|
|
1555
|
+
return !!(typeof t == "string" || typeof t == "function" || t === l || t === f || je || t === d || t === p || t === j || pe || t === T || K || X || ie || typeof t == "object" && t !== null && (t.$$typeof === O || t.$$typeof === _ || t.$$typeof === h || t.$$typeof === v || t.$$typeof === g || // This needs to include all possible module reference object
|
|
1556
1556
|
// types supported by any Flight configuration anywhere since
|
|
1557
1557
|
// we don't know which Flight build this will end up being used
|
|
1558
1558
|
// with.
|
|
@@ -1562,8 +1562,8 @@ function Zn() {
|
|
|
1562
1562
|
var C = t.displayName;
|
|
1563
1563
|
if (C)
|
|
1564
1564
|
return C;
|
|
1565
|
-
var
|
|
1566
|
-
return
|
|
1565
|
+
var B = m.displayName || m.name || "";
|
|
1566
|
+
return B !== "" ? x + "(" + B + ")" : x;
|
|
1567
1567
|
}
|
|
1568
1568
|
function Pe(t) {
|
|
1569
1569
|
return t.displayName || "Context";
|
|
@@ -1603,9 +1603,9 @@ function Zn() {
|
|
|
1603
1603
|
var C = t.displayName || null;
|
|
1604
1604
|
return C !== null ? C : ve(t.type) || "Memo";
|
|
1605
1605
|
case O: {
|
|
1606
|
-
var
|
|
1606
|
+
var B = t, V = B._payload, D = B._init;
|
|
1607
1607
|
try {
|
|
1608
|
-
return ve(D(
|
|
1608
|
+
return ve(D(V));
|
|
1609
1609
|
} catch {
|
|
1610
1610
|
return null;
|
|
1611
1611
|
}
|
|
@@ -1675,27 +1675,27 @@ function Zn() {
|
|
|
1675
1675
|
le < 0 && Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
var J = A.ReactCurrentDispatcher,
|
|
1678
|
+
var J = A.ReactCurrentDispatcher, H;
|
|
1679
1679
|
function z(t, m, x) {
|
|
1680
1680
|
{
|
|
1681
|
-
if (
|
|
1681
|
+
if (H === void 0)
|
|
1682
1682
|
try {
|
|
1683
1683
|
throw Error();
|
|
1684
|
-
} catch (
|
|
1685
|
-
var C =
|
|
1686
|
-
|
|
1684
|
+
} catch (B) {
|
|
1685
|
+
var C = B.stack.trim().match(/\n( *(at )?)/);
|
|
1686
|
+
H = C && C[1] || "";
|
|
1687
1687
|
}
|
|
1688
1688
|
return `
|
|
1689
|
-
` +
|
|
1689
|
+
` + H + t;
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
var
|
|
1692
|
+
var U = !1, oe;
|
|
1693
1693
|
{
|
|
1694
1694
|
var Or = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1695
1695
|
oe = new Or();
|
|
1696
1696
|
}
|
|
1697
1697
|
function ur(t, m) {
|
|
1698
|
-
if (!t ||
|
|
1698
|
+
if (!t || U)
|
|
1699
1699
|
return "";
|
|
1700
1700
|
{
|
|
1701
1701
|
var x = oe.get(t);
|
|
@@ -1703,11 +1703,11 @@ function Zn() {
|
|
|
1703
1703
|
return x;
|
|
1704
1704
|
}
|
|
1705
1705
|
var C;
|
|
1706
|
-
|
|
1707
|
-
var
|
|
1706
|
+
U = !0;
|
|
1707
|
+
var B = Error.prepareStackTrace;
|
|
1708
1708
|
Error.prepareStackTrace = void 0;
|
|
1709
|
-
var
|
|
1710
|
-
|
|
1709
|
+
var V;
|
|
1710
|
+
V = J.current, J.current = null, $();
|
|
1711
1711
|
try {
|
|
1712
1712
|
if (m) {
|
|
1713
1713
|
var D = function() {
|
|
@@ -1760,19 +1760,19 @@ function Zn() {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
} finally {
|
|
1763
|
-
|
|
1763
|
+
U = !1, J.current = V, M(), Error.prepareStackTrace = B;
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1765
|
+
var ke = t ? t.displayName || t.name : "", we = ke ? z(ke) : "";
|
|
1766
1766
|
return typeof t == "function" && oe.set(t, we), we;
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function Be(t, m, x) {
|
|
1769
1769
|
return ur(t, !1);
|
|
1770
1770
|
}
|
|
1771
1771
|
function Pr(t) {
|
|
1772
1772
|
var m = t.prototype;
|
|
1773
1773
|
return !!(m && m.isReactComponent);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function We(t, m, x) {
|
|
1776
1776
|
if (t == null)
|
|
1777
1777
|
return "";
|
|
1778
1778
|
if (typeof t == "function")
|
|
@@ -1788,13 +1788,13 @@ function Zn() {
|
|
|
1788
1788
|
if (typeof t == "object")
|
|
1789
1789
|
switch (t.$$typeof) {
|
|
1790
1790
|
case g:
|
|
1791
|
-
return
|
|
1791
|
+
return Be(t.render);
|
|
1792
1792
|
case _:
|
|
1793
|
-
return
|
|
1793
|
+
return We(t.type, m, x);
|
|
1794
1794
|
case O: {
|
|
1795
|
-
var C = t,
|
|
1795
|
+
var C = t, B = C._payload, V = C._init;
|
|
1796
1796
|
try {
|
|
1797
|
-
return
|
|
1797
|
+
return We(V(B), m, x);
|
|
1798
1798
|
} catch {
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
@@ -1804,16 +1804,16 @@ function Zn() {
|
|
|
1804
1804
|
var Ee = Object.prototype.hasOwnProperty, Ae = {}, cr = A.ReactDebugCurrentFrame;
|
|
1805
1805
|
function Ie(t) {
|
|
1806
1806
|
if (t) {
|
|
1807
|
-
var m = t._owner, x =
|
|
1807
|
+
var m = t._owner, x = We(t.type, t._source, m ? m.type : null);
|
|
1808
1808
|
cr.setExtraStackFrame(x);
|
|
1809
1809
|
} else
|
|
1810
1810
|
cr.setExtraStackFrame(null);
|
|
1811
1811
|
}
|
|
1812
|
-
function _e(t, m, x, C,
|
|
1812
|
+
function _e(t, m, x, C, B) {
|
|
1813
1813
|
{
|
|
1814
|
-
var
|
|
1814
|
+
var V = Function.call.bind(Ee);
|
|
1815
1815
|
for (var D in t)
|
|
1816
|
-
if (
|
|
1816
|
+
if (V(t, D)) {
|
|
1817
1817
|
var P = void 0;
|
|
1818
1818
|
try {
|
|
1819
1819
|
if (typeof t[D] != "function") {
|
|
@@ -1824,12 +1824,12 @@ function Zn() {
|
|
|
1824
1824
|
} catch (ee) {
|
|
1825
1825
|
P = ee;
|
|
1826
1826
|
}
|
|
1827
|
-
P && !(P instanceof Error) && (Ie(
|
|
1827
|
+
P && !(P instanceof Error) && (Ie(B), 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).", C || "React class", x, D, typeof P), Ie(null)), P instanceof Error && !(P.message in Ae) && (Ae[P.message] = !0, Ie(B), Y("Failed %s type: %s", x, P.message), Ie(null));
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
var De = Array.isArray;
|
|
1832
|
-
function
|
|
1832
|
+
function Ue(t) {
|
|
1833
1833
|
return De(t);
|
|
1834
1834
|
}
|
|
1835
1835
|
function fr(t) {
|
|
@@ -1840,17 +1840,17 @@ function Zn() {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
function dr(t) {
|
|
1842
1842
|
try {
|
|
1843
|
-
return
|
|
1843
|
+
return Ve(t), !1;
|
|
1844
1844
|
} catch {
|
|
1845
1845
|
return !0;
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Ve(t) {
|
|
1849
1849
|
return "" + t;
|
|
1850
1850
|
}
|
|
1851
1851
|
function Xe(t) {
|
|
1852
1852
|
if (dr(t))
|
|
1853
|
-
return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fr(t)),
|
|
1853
|
+
return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fr(t)), Ve(t);
|
|
1854
1854
|
}
|
|
1855
1855
|
var Ze = A.ReactCurrentOwner, Nr = {
|
|
1856
1856
|
key: !0,
|
|
@@ -1899,7 +1899,7 @@ function Zn() {
|
|
|
1899
1899
|
});
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
|
-
var mr = function(t, m, x, C,
|
|
1902
|
+
var mr = function(t, m, x, C, B, V, D) {
|
|
1903
1903
|
var P = {
|
|
1904
1904
|
// This tag allows us to uniquely identify this as a React Element
|
|
1905
1905
|
$$typeof: a,
|
|
@@ -1909,7 +1909,7 @@ function Zn() {
|
|
|
1909
1909
|
ref: x,
|
|
1910
1910
|
props: D,
|
|
1911
1911
|
// Record the component responsible for creating this element.
|
|
1912
|
-
_owner:
|
|
1912
|
+
_owner: V
|
|
1913
1913
|
};
|
|
1914
1914
|
return P._store = {}, Object.defineProperty(P._store, "validated", {
|
|
1915
1915
|
configurable: !1,
|
|
@@ -1925,31 +1925,31 @@ function Zn() {
|
|
|
1925
1925
|
configurable: !1,
|
|
1926
1926
|
enumerable: !1,
|
|
1927
1927
|
writable: !1,
|
|
1928
|
-
value:
|
|
1928
|
+
value: B
|
|
1929
1929
|
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
1930
1930
|
};
|
|
1931
|
-
function $r(t, m, x, C,
|
|
1931
|
+
function $r(t, m, x, C, B) {
|
|
1932
1932
|
{
|
|
1933
|
-
var
|
|
1934
|
-
x !== void 0 && (Xe(x), P = "" + x), Ar(m) && (Xe(m.key), P = "" + m.key), Qe(m) && (ue = m.ref, Ir(m,
|
|
1935
|
-
for (
|
|
1936
|
-
Ee.call(m,
|
|
1933
|
+
var V, D = {}, P = null, ue = null;
|
|
1934
|
+
x !== void 0 && (Xe(x), P = "" + x), Ar(m) && (Xe(m.key), P = "" + m.key), Qe(m) && (ue = m.ref, Ir(m, B));
|
|
1935
|
+
for (V in m)
|
|
1936
|
+
Ee.call(m, V) && !Nr.hasOwnProperty(V) && (D[V] = m[V]);
|
|
1937
1937
|
if (t && t.defaultProps) {
|
|
1938
1938
|
var ee = t.defaultProps;
|
|
1939
|
-
for (
|
|
1940
|
-
D[
|
|
1939
|
+
for (V in ee)
|
|
1940
|
+
D[V] === void 0 && (D[V] = ee[V]);
|
|
1941
1941
|
}
|
|
1942
1942
|
if (P || ue) {
|
|
1943
1943
|
var te = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
1944
1944
|
P && Dr(D, te), ue && Re(D, te);
|
|
1945
1945
|
}
|
|
1946
|
-
return mr(t, P, ue,
|
|
1946
|
+
return mr(t, P, ue, B, C, Ze.current, D);
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
1949
|
var er = A.ReactCurrentOwner, rr = A.ReactDebugCurrentFrame;
|
|
1950
|
-
function
|
|
1950
|
+
function Se(t) {
|
|
1951
1951
|
if (t) {
|
|
1952
|
-
var m = t._owner, x =
|
|
1952
|
+
var m = t._owner, x = We(t.type, t._source, m ? m.type : null);
|
|
1953
1953
|
rr.setExtraStackFrame(x);
|
|
1954
1954
|
} else
|
|
1955
1955
|
rr.setExtraStackFrame(null);
|
|
@@ -1997,14 +1997,14 @@ Check the top-level render call using <` + x + ">.");
|
|
|
1997
1997
|
return;
|
|
1998
1998
|
hr[x] = !0;
|
|
1999
1999
|
var C = "";
|
|
2000
|
-
t && t._owner && t._owner !== er.current && (C = " It was passed a child from " + ve(t._owner.type) + "."),
|
|
2000
|
+
t && t._owner && t._owner !== er.current && (C = " It was passed a child from " + ve(t._owner.type) + "."), Se(t), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, C), Se(null);
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
2003
|
function br(t, m) {
|
|
2004
2004
|
{
|
|
2005
2005
|
if (typeof t != "object")
|
|
2006
2006
|
return;
|
|
2007
|
-
if (
|
|
2007
|
+
if (Ue(t))
|
|
2008
2008
|
for (var x = 0; x < t.length; x++) {
|
|
2009
2009
|
var C = t[x];
|
|
2010
2010
|
$e(C) && yr(C, m);
|
|
@@ -2012,9 +2012,9 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2012
2012
|
else if ($e(t))
|
|
2013
2013
|
t._store && (t._store.validated = !0);
|
|
2014
2014
|
else if (t) {
|
|
2015
|
-
var
|
|
2016
|
-
if (typeof
|
|
2017
|
-
for (var
|
|
2015
|
+
var B = de(t);
|
|
2016
|
+
if (typeof B == "function" && B !== t.entries)
|
|
2017
|
+
for (var V = B.call(t), D; !(D = V.next()).done; )
|
|
2018
2018
|
$e(D.value) && yr(D.value, m);
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
@@ -2038,8 +2038,8 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2038
2038
|
_e(x, t.props, "prop", C, t);
|
|
2039
2039
|
} else if (m.PropTypes !== void 0 && !Ye) {
|
|
2040
2040
|
Ye = !0;
|
|
2041
|
-
var
|
|
2042
|
-
Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
2041
|
+
var B = ve(m);
|
|
2042
|
+
Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
2043
2043
|
}
|
|
2044
2044
|
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2045
2045
|
}
|
|
@@ -2049,15 +2049,15 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2049
2049
|
for (var m = Object.keys(t.props), x = 0; x < m.length; x++) {
|
|
2050
2050
|
var C = m[x];
|
|
2051
2051
|
if (C !== "children" && C !== "key") {
|
|
2052
|
-
|
|
2052
|
+
Se(t), Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), Se(null);
|
|
2053
2053
|
break;
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
|
-
t.ref !== null && (
|
|
2056
|
+
t.ref !== null && (Se(t), Y("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
|
-
var
|
|
2060
|
-
function tr(t, m, x, C,
|
|
2059
|
+
var He = {};
|
|
2060
|
+
function tr(t, m, x, C, B, V) {
|
|
2061
2061
|
{
|
|
2062
2062
|
var D = Oe(t);
|
|
2063
2063
|
if (!D) {
|
|
@@ -2066,18 +2066,18 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2066
2066
|
var ue = ze();
|
|
2067
2067
|
ue ? P += ue : P += Fe();
|
|
2068
2068
|
var ee;
|
|
2069
|
-
t === null ? ee = "null" :
|
|
2069
|
+
t === null ? ee = "null" : Ue(t) ? ee = "array" : t !== void 0 && t.$$typeof === a ? (ee = "<" + (ve(t.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof t, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, P);
|
|
2070
2070
|
}
|
|
2071
|
-
var te = $r(t, m, x,
|
|
2071
|
+
var te = $r(t, m, x, B, V);
|
|
2072
2072
|
if (te == null)
|
|
2073
2073
|
return te;
|
|
2074
2074
|
if (D) {
|
|
2075
2075
|
var he = m.children;
|
|
2076
2076
|
if (he !== void 0)
|
|
2077
2077
|
if (C)
|
|
2078
|
-
if (
|
|
2079
|
-
for (var
|
|
2080
|
-
br(he[
|
|
2078
|
+
if (Ue(he)) {
|
|
2079
|
+
for (var ke = 0; ke < he.length; ke++)
|
|
2080
|
+
br(he[ke], t);
|
|
2081
2081
|
Object.freeze && Object.freeze(he);
|
|
2082
2082
|
} else
|
|
2083
2083
|
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.");
|
|
@@ -2088,14 +2088,14 @@ Check the top-level render call using <` + x + ">.");
|
|
|
2088
2088
|
var we = ve(t), fe = Object.keys(m).filter(function(Yr) {
|
|
2089
2089
|
return Yr !== "key";
|
|
2090
2090
|
}), nr = fe.length > 0 ? "{key: someKey, " + fe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2091
|
-
if (!
|
|
2092
|
-
var
|
|
2091
|
+
if (!He[we + nr]) {
|
|
2092
|
+
var Vr = fe.length > 0 ? "{" + fe.join(": ..., ") + ": ...}" : "{}";
|
|
2093
2093
|
Y(`A props object containing a "key" prop is being spread into JSX:
|
|
2094
2094
|
let props = %s;
|
|
2095
2095
|
<%s {...props} />
|
|
2096
2096
|
React keys must be passed directly to JSX without using spread:
|
|
2097
2097
|
let props = %s;
|
|
2098
|
-
<%s key={someKey} {...props} />`, nr, we,
|
|
2098
|
+
<%s key={someKey} {...props} />`, nr, we, Vr, we), He[we + nr] = !0;
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
2101
2101
|
return t === l ? Le(te) : Lr(te), te;
|
|
@@ -2104,16 +2104,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2104
2104
|
function Mr(t, m, x) {
|
|
2105
2105
|
return tr(t, m, x, !0);
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2107
|
+
function Br(t, m, x) {
|
|
2108
2108
|
return tr(t, m, x, !1);
|
|
2109
2109
|
}
|
|
2110
|
-
var
|
|
2111
|
-
sr.Fragment = l, sr.jsx =
|
|
2110
|
+
var Wr = Br, Ur = Mr;
|
|
2111
|
+
sr.Fragment = l, sr.jsx = Wr, sr.jsxs = Ur;
|
|
2112
2112
|
}()), sr;
|
|
2113
2113
|
}
|
|
2114
2114
|
var Ft;
|
|
2115
2115
|
function Qn() {
|
|
2116
|
-
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ?
|
|
2116
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? kr.exports = Xn() : kr.exports = Zn()), kr.exports;
|
|
2117
2117
|
}
|
|
2118
2118
|
var n = Qn();
|
|
2119
2119
|
at();
|
|
@@ -2157,12 +2157,12 @@ function ea() {
|
|
|
2157
2157
|
}(et)), et.exports;
|
|
2158
2158
|
}
|
|
2159
2159
|
var ra = ea();
|
|
2160
|
-
const
|
|
2160
|
+
const W = /* @__PURE__ */ Gn(ra), ne = ({
|
|
2161
2161
|
children: o,
|
|
2162
2162
|
className: a,
|
|
2163
2163
|
important: u = !1,
|
|
2164
2164
|
onClick: l
|
|
2165
|
-
}) => u ? /* @__PURE__ */ n.jsx("div", { className: "bb_", onClick: l, children: /* @__PURE__ */ n.jsx("div", { className: a, children: o }) }) : /* @__PURE__ */ n.jsx("div", { className: a, children: o }),
|
|
2165
|
+
}) => u ? /* @__PURE__ */ n.jsx("div", { className: "bb_", onClick: l, children: /* @__PURE__ */ n.jsx("div", { className: a, children: o }) }) : /* @__PURE__ */ n.jsx("div", { className: a, children: o }), Ke = ({ icon: o, className: a = "" }) => o ? /* @__PURE__ */ n.jsxs(ne, { className: "blockbite--icon", children: [
|
|
2166
2166
|
/* @__PURE__ */ n.jsx(o, { className: a }),
|
|
2167
2167
|
" "
|
|
2168
2168
|
] }) : null, ta = tt(
|
|
@@ -2179,17 +2179,17 @@ const U = /* @__PURE__ */ Kn(ra), ne = ({
|
|
|
2179
2179
|
label: p
|
|
2180
2180
|
}) => {
|
|
2181
2181
|
const [j, _] = F(!1);
|
|
2182
|
-
|
|
2182
|
+
G(() => {
|
|
2183
2183
|
_(d === u);
|
|
2184
2184
|
}, [d]);
|
|
2185
|
-
const O =
|
|
2185
|
+
const O = Bt(() => {
|
|
2186
2186
|
_((T) => !T), f(u);
|
|
2187
2187
|
}, [j, f]);
|
|
2188
2188
|
return /* @__PURE__ */ n.jsxs(
|
|
2189
2189
|
ye,
|
|
2190
2190
|
{
|
|
2191
2191
|
"aria-label": p,
|
|
2192
|
-
className:
|
|
2192
|
+
className: W(a, "blockbite-ui__button--default"),
|
|
2193
2193
|
value: u,
|
|
2194
2194
|
size: v,
|
|
2195
2195
|
label: p,
|
|
@@ -2198,7 +2198,7 @@ const U = /* @__PURE__ */ Kn(ra), ne = ({
|
|
|
2198
2198
|
isPressed: j,
|
|
2199
2199
|
onClick: O,
|
|
2200
2200
|
children: [
|
|
2201
|
-
h && /* @__PURE__ */ n.jsx(
|
|
2201
|
+
h && /* @__PURE__ */ n.jsx(Ke, { icon: h }),
|
|
2202
2202
|
g !== "icon" ? o : null,
|
|
2203
2203
|
p && !o && g !== "icon" ? /* @__PURE__ */ n.jsx("span", { children: p }) : null
|
|
2204
2204
|
]
|
|
@@ -2219,67 +2219,67 @@ const U = /* @__PURE__ */ Kn(ra), ne = ({
|
|
|
2219
2219
|
onPressedChange: p
|
|
2220
2220
|
}) => {
|
|
2221
2221
|
const [j, _] = F(a);
|
|
2222
|
-
|
|
2222
|
+
G(() => {
|
|
2223
2223
|
_(a);
|
|
2224
2224
|
}, [a]);
|
|
2225
|
-
const O =
|
|
2226
|
-
(
|
|
2227
|
-
const ae = u && j ===
|
|
2225
|
+
const O = Bt(
|
|
2226
|
+
(k) => {
|
|
2227
|
+
const ae = u && j === k ? "" : k;
|
|
2228
2228
|
_(ae), p?.(ae);
|
|
2229
2229
|
},
|
|
2230
2230
|
[j, p, u]
|
|
2231
|
-
), T = (
|
|
2232
|
-
|
|
2233
|
-
/* @__PURE__ */ n.jsx("span", { children:
|
|
2231
|
+
), T = (k) => l === "icon" && k?.icon ? /* @__PURE__ */ n.jsx(Ke, { icon: k.icon }) : l === "label" ? /* @__PURE__ */ n.jsx("span", { children: k.label }) : /* @__PURE__ */ n.jsxs("span", { className: "flex items-center justify-center gap-1", children: [
|
|
2232
|
+
k.icon && /* @__PURE__ */ n.jsx(Ke, { icon: k.icon }),
|
|
2233
|
+
/* @__PURE__ */ n.jsx("span", { children: k.label })
|
|
2234
2234
|
] });
|
|
2235
2235
|
return /* @__PURE__ */ n.jsx(
|
|
2236
2236
|
ne,
|
|
2237
2237
|
{
|
|
2238
|
-
className:
|
|
2238
|
+
className: W(
|
|
2239
2239
|
"blockbite-ui__button-group flex flex-wrap gap-1",
|
|
2240
2240
|
o,
|
|
2241
2241
|
h ? "blockbite-ui__button-group--tabs" : ""
|
|
2242
2242
|
),
|
|
2243
|
-
children: d.map((
|
|
2243
|
+
children: d.map((k, ae) => /* @__PURE__ */ n.jsxs(
|
|
2244
2244
|
ye,
|
|
2245
2245
|
{
|
|
2246
|
-
className:
|
|
2246
|
+
className: W("blockbite-ui__button--default", {
|
|
2247
2247
|
grow: g,
|
|
2248
2248
|
"justify-center": g
|
|
2249
2249
|
}),
|
|
2250
|
-
"aria-label":
|
|
2250
|
+
"aria-label": k.label,
|
|
2251
2251
|
showTooltip: !0,
|
|
2252
|
-
value:
|
|
2252
|
+
value: k.value,
|
|
2253
2253
|
size: f,
|
|
2254
|
-
label:
|
|
2254
|
+
label: k?.tooltip || k.label,
|
|
2255
2255
|
variant: v,
|
|
2256
|
-
isPressed: j ===
|
|
2257
|
-
onClick: () => O(
|
|
2256
|
+
isPressed: j === k.value,
|
|
2257
|
+
onClick: () => O(k.value),
|
|
2258
2258
|
children: [
|
|
2259
|
-
T(
|
|
2260
|
-
|
|
2259
|
+
T(k),
|
|
2260
|
+
k.children && k.children
|
|
2261
2261
|
]
|
|
2262
2262
|
},
|
|
2263
|
-
`ButtonToggleGroup__${
|
|
2263
|
+
`ButtonToggleGroup__${k.value}__${k.label}__${ae}`
|
|
2264
2264
|
))
|
|
2265
2265
|
}
|
|
2266
2266
|
);
|
|
2267
2267
|
}
|
|
2268
2268
|
);
|
|
2269
|
-
function
|
|
2269
|
+
function Sa({
|
|
2270
2270
|
defaultValue: o,
|
|
2271
2271
|
options: a,
|
|
2272
2272
|
swatch: u,
|
|
2273
2273
|
onPressedChange: l
|
|
2274
2274
|
}) {
|
|
2275
2275
|
const [d, f] = F(""), [h, v] = F([]);
|
|
2276
|
-
return
|
|
2276
|
+
return G(() => {
|
|
2277
2277
|
v(
|
|
2278
2278
|
a.filter(
|
|
2279
2279
|
(g) => g.label.toLowerCase().includes(d.toLowerCase())
|
|
2280
2280
|
)
|
|
2281
2281
|
);
|
|
2282
|
-
}, [d, a]),
|
|
2282
|
+
}, [d, a]), G(() => {
|
|
2283
2283
|
f(""), v(a);
|
|
2284
2284
|
}, [o, a]), /* @__PURE__ */ n.jsx(
|
|
2285
2285
|
wn,
|
|
@@ -2298,7 +2298,7 @@ function ka({
|
|
|
2298
2298
|
u && /* @__PURE__ */ n.jsx(
|
|
2299
2299
|
"div",
|
|
2300
2300
|
{
|
|
2301
|
-
className:
|
|
2301
|
+
className: W(
|
|
2302
2302
|
`h-3 w-3 rounded-full bg-${o}`
|
|
2303
2303
|
)
|
|
2304
2304
|
}
|
|
@@ -2312,6 +2312,8 @@ function ka({
|
|
|
2312
2312
|
/* @__PURE__ */ n.jsx(
|
|
2313
2313
|
rt,
|
|
2314
2314
|
{
|
|
2315
|
+
__next40pxDefaultSize: !0,
|
|
2316
|
+
__nextHasNoMarginBottom: !0,
|
|
2315
2317
|
label: "Search options",
|
|
2316
2318
|
value: d,
|
|
2317
2319
|
onChange: (g) => f(g),
|
|
@@ -2323,7 +2325,7 @@ function ka({
|
|
|
2323
2325
|
h.map((g, p) => /* @__PURE__ */ n.jsxs(
|
|
2324
2326
|
ta,
|
|
2325
2327
|
{
|
|
2326
|
-
className:
|
|
2328
|
+
className: W({
|
|
2327
2329
|
"bg-primary": g.value
|
|
2328
2330
|
}),
|
|
2329
2331
|
size: "small",
|
|
@@ -2336,7 +2338,7 @@ function ka({
|
|
|
2336
2338
|
u && /* @__PURE__ */ n.jsx(
|
|
2337
2339
|
"div",
|
|
2338
2340
|
{
|
|
2339
|
-
className:
|
|
2341
|
+
className: W(
|
|
2340
2342
|
`mr-3 h-3 w-3 rounded-full bg-${g.value}`
|
|
2341
2343
|
)
|
|
2342
2344
|
}
|
|
@@ -2355,7 +2357,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2355
2357
|
"div",
|
|
2356
2358
|
{
|
|
2357
2359
|
onClick: l,
|
|
2358
|
-
className:
|
|
2360
|
+
className: W(
|
|
2359
2361
|
a,
|
|
2360
2362
|
"inline-flex items-center rounded-full bg-blue-100 px-2.5 py-0.5 text-xs font-medium text-blue-800"
|
|
2361
2363
|
),
|
|
@@ -2364,9 +2366,9 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2364
2366
|
o
|
|
2365
2367
|
]
|
|
2366
2368
|
}
|
|
2367
|
-
),
|
|
2369
|
+
), ka = ({ htmlContent: o, cssContent: a, frontendAssets: u }) => {
|
|
2368
2370
|
const l = lr(null), [d, f] = F(null);
|
|
2369
|
-
return
|
|
2371
|
+
return G(() => {
|
|
2370
2372
|
const h = l.current;
|
|
2371
2373
|
return h && (h.onload = () => {
|
|
2372
2374
|
const v = h.contentDocument || h.contentWindow.document;
|
|
@@ -2407,7 +2409,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2407
2409
|
height: "100%"
|
|
2408
2410
|
}
|
|
2409
2411
|
),
|
|
2410
|
-
d &&
|
|
2412
|
+
d && Wt(
|
|
2411
2413
|
/* @__PURE__ */ n.jsx("div", { className: "b_", children: /* @__PURE__ */ n.jsx(
|
|
2412
2414
|
"div",
|
|
2413
2415
|
{
|
|
@@ -2440,7 +2442,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2440
2442
|
label: u,
|
|
2441
2443
|
showTooltip: !0,
|
|
2442
2444
|
disabled: g,
|
|
2443
|
-
className:
|
|
2445
|
+
className: W(
|
|
2444
2446
|
l,
|
|
2445
2447
|
"blockbite-ui__button",
|
|
2446
2448
|
"flex items-center justify-center gap-1",
|
|
@@ -2453,10 +2455,10 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2453
2455
|
onClick: d,
|
|
2454
2456
|
children: [
|
|
2455
2457
|
v && /* @__PURE__ */ n.jsx(
|
|
2456
|
-
|
|
2458
|
+
Ke,
|
|
2457
2459
|
{
|
|
2458
2460
|
icon: v,
|
|
2459
|
-
className:
|
|
2461
|
+
className: W({ "h-4 w-4": h === "icon-lg" })
|
|
2460
2462
|
}
|
|
2461
2463
|
),
|
|
2462
2464
|
p ? null : o,
|
|
@@ -2467,9 +2469,9 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2467
2469
|
}, Oa = ({ children: o, title: a }) => /* @__PURE__ */ n.jsxs(
|
|
2468
2470
|
ne,
|
|
2469
2471
|
{
|
|
2470
|
-
className:
|
|
2472
|
+
className: W(
|
|
2471
2473
|
"text-gray-medium my-2 flex items-center gap-1 text-[12px] font-medium",
|
|
2472
|
-
|
|
2474
|
+
W
|
|
2473
2475
|
),
|
|
2474
2476
|
children: [
|
|
2475
2477
|
a && /* @__PURE__ */ n.jsx(ne, { className: "font-medium", children: a }),
|
|
@@ -2482,7 +2484,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2482
2484
|
help: u,
|
|
2483
2485
|
badge: l,
|
|
2484
2486
|
...d
|
|
2485
|
-
}) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
2487
|
+
}) => /* @__PURE__ */ n.jsxs("div", { className: W("mb-2", a), ...d, children: [
|
|
2486
2488
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-wrap items-center gap-2 justify-between", children: [
|
|
2487
2489
|
/* @__PURE__ */ n.jsx("span", { className: "shrink-1 text-[11px] font-medium uppercase leading-snug", children: o }),
|
|
2488
2490
|
!!l && /* @__PURE__ */ n.jsx(aa, { className: "text-[10px] py-px px-1", children: l })
|
|
@@ -2490,7 +2492,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2490
2492
|
u && /* @__PURE__ */ n.jsx("small", { className: "w-full shrink-0 text-[11px]", children: u })
|
|
2491
2493
|
] }), Na = ({ label: o, help: a, defaultChecked: u }) => {
|
|
2492
2494
|
const [l, d] = F(u);
|
|
2493
|
-
return
|
|
2495
|
+
return G(() => {
|
|
2494
2496
|
d(u);
|
|
2495
2497
|
}, [u]), /* @__PURE__ */ n.jsx(ne, { className: "blockbite-ui__checkbox mx-1 flex items-center gap-2", children: /* @__PURE__ */ n.jsx(
|
|
2496
2498
|
En,
|
|
@@ -2501,7 +2503,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2501
2503
|
onChange: d
|
|
2502
2504
|
}
|
|
2503
2505
|
) });
|
|
2504
|
-
}, ot =
|
|
2506
|
+
}, ot = Un(
|
|
2505
2507
|
({
|
|
2506
2508
|
onClick: o,
|
|
2507
2509
|
onChange: a,
|
|
@@ -2517,19 +2519,19 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
|
|
|
2517
2519
|
helper: _ = "",
|
|
2518
2520
|
...O
|
|
2519
2521
|
}, T) => {
|
|
2520
|
-
const
|
|
2522
|
+
const k = `text-control-${Math.random().toString(36).substring(2, 15)}`;
|
|
2521
2523
|
return /* @__PURE__ */ n.jsxs(
|
|
2522
2524
|
"div",
|
|
2523
2525
|
{
|
|
2524
|
-
className:
|
|
2526
|
+
className: W("flex items-center p-0", u),
|
|
2525
2527
|
...O,
|
|
2526
2528
|
children: [
|
|
2527
|
-
j ? /* @__PURE__ */ n.jsx("label", { htmlFor:
|
|
2529
|
+
j ? /* @__PURE__ */ n.jsx("label", { htmlFor: k, className: "text-primary !m-0 !mb-0 !mr-2", children: j }) : null,
|
|
2528
2530
|
/* @__PURE__ */ n.jsx(
|
|
2529
2531
|
"input",
|
|
2530
2532
|
{
|
|
2531
|
-
id:
|
|
2532
|
-
className:
|
|
2533
|
+
id: k,
|
|
2534
|
+
className: W(
|
|
2533
2535
|
"border-primary !m-0 !mb-0 h-[32px] !rounded-none border border-opacity-70 focus:outline-none focus:ring-0",
|
|
2534
2536
|
f
|
|
2535
2537
|
),
|
|
@@ -2570,27 +2572,27 @@ const Aa = ({
|
|
|
2570
2572
|
const [O, T] = F({
|
|
2571
2573
|
id: "",
|
|
2572
2574
|
name: ""
|
|
2573
|
-
}), [
|
|
2575
|
+
}), [k, ae] = F(!1), de = lr(null), A = () => {
|
|
2574
2576
|
l();
|
|
2575
2577
|
}, Y = () => {
|
|
2576
2578
|
if (!a || o.length === 0) return;
|
|
2577
|
-
const
|
|
2579
|
+
const K = o.filter((pe) => pe.id !== a?.id), X = o.findIndex((pe) => pe.id === a?.id), ie = K[X] || K[0];
|
|
2578
2580
|
d(a?.id), u(ie);
|
|
2579
|
-
}, ge = (
|
|
2580
|
-
ae(!0), O.id && f(O.id, { name:
|
|
2581
|
+
}, ge = (K) => {
|
|
2582
|
+
ae(!0), O.id && f(O.id, { name: K }), setTimeout(() => {
|
|
2581
2583
|
T({ id: "", name: "" }), ae(!1);
|
|
2582
2584
|
}, 500);
|
|
2583
2585
|
};
|
|
2584
2586
|
return /* @__PURE__ */ n.jsxs(ne, { important: !0, className: p, children: [
|
|
2585
2587
|
/* @__PURE__ */ n.jsxs("ul", { className: "h-[calc(100%-80px)] divide-y overflow-auto", children: [
|
|
2586
2588
|
g,
|
|
2587
|
-
o.length > 0 && /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("ul", { className: "divide-y border-b", children: o.map((
|
|
2589
|
+
o.length > 0 && /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("ul", { className: "divide-y border-b", children: o.map((K) => /* @__PURE__ */ n.jsxs(
|
|
2588
2590
|
"li",
|
|
2589
2591
|
{
|
|
2590
|
-
className:
|
|
2592
|
+
className: W(
|
|
2591
2593
|
"relative m-0 flex items-center justify-between gap-1 bg-opacity-50 hover:bg-easy",
|
|
2592
2594
|
{
|
|
2593
|
-
"bg-easy":
|
|
2595
|
+
"bg-easy": K.id === a?.id
|
|
2594
2596
|
}
|
|
2595
2597
|
),
|
|
2596
2598
|
children: [
|
|
@@ -2600,15 +2602,15 @@ const Aa = ({
|
|
|
2600
2602
|
{
|
|
2601
2603
|
className: "text-gray-medium w-full truncate px-3 py-2 text-left text-sm/6 font-semibold hover:text-wordpress",
|
|
2602
2604
|
onClick: () => {
|
|
2603
|
-
h(a?.id, { ...a }), u(
|
|
2605
|
+
h(a?.id, { ...a }), u(K);
|
|
2604
2606
|
},
|
|
2605
2607
|
onDoubleClick: () => {
|
|
2606
|
-
T({ id:
|
|
2608
|
+
T({ id: K.id, name: K.name || "" });
|
|
2607
2609
|
},
|
|
2608
|
-
children:
|
|
2610
|
+
children: k && O.id === K.id ? /* @__PURE__ */ n.jsx("span", { className: "animate-pulse text-gray-medium", children: O.name }) : /* @__PURE__ */ n.jsx("span", { className: "text-gray-medium", children: K.name || "Untitled" })
|
|
2609
2611
|
}
|
|
2610
2612
|
),
|
|
2611
|
-
O.id ===
|
|
2613
|
+
O.id === K.id && !k && /* @__PURE__ */ n.jsx(
|
|
2612
2614
|
ot,
|
|
2613
2615
|
{
|
|
2614
2616
|
className: "absolute left-1 top-0 w-[calc(100%-.5rem)] h-full",
|
|
@@ -2620,16 +2622,16 @@ const Aa = ({
|
|
|
2620
2622
|
}
|
|
2621
2623
|
)
|
|
2622
2624
|
] }),
|
|
2623
|
-
v && /* @__PURE__ */ n.jsx("div", { className: "flex gap-1 pr-1", children: v(
|
|
2625
|
+
v && /* @__PURE__ */ n.jsx("div", { className: "flex gap-1 pr-1", children: v(K) })
|
|
2624
2626
|
]
|
|
2625
2627
|
},
|
|
2626
|
-
`data__${
|
|
2628
|
+
`data__${K.id}`
|
|
2627
2629
|
)) }) })
|
|
2628
2630
|
] }),
|
|
2629
2631
|
/* @__PURE__ */ n.jsxs(
|
|
2630
2632
|
"div",
|
|
2631
2633
|
{
|
|
2632
|
-
className:
|
|
2634
|
+
className: W(
|
|
2633
2635
|
"flex flex-wrap justify-center gap-2 p-2",
|
|
2634
2636
|
_
|
|
2635
2637
|
),
|
|
@@ -2668,9 +2670,9 @@ const Aa = ({
|
|
|
2668
2670
|
message: d
|
|
2669
2671
|
}) => {
|
|
2670
2672
|
const [f, h] = F(!1), v = lr(!1), g = lr(null);
|
|
2671
|
-
return
|
|
2673
|
+
return G(() => {
|
|
2672
2674
|
v.current = !0;
|
|
2673
|
-
}, []),
|
|
2675
|
+
}, []), G(() => {
|
|
2674
2676
|
if (v.current)
|
|
2675
2677
|
return l && (h(!0), g.current = setTimeout(() => {
|
|
2676
2678
|
h(!1);
|
|
@@ -2681,7 +2683,7 @@ const Aa = ({
|
|
|
2681
2683
|
ne,
|
|
2682
2684
|
{
|
|
2683
2685
|
important: !0,
|
|
2684
|
-
className:
|
|
2686
|
+
className: W("bb-ui__disappearing-message", a),
|
|
2685
2687
|
children: /* @__PURE__ */ n.jsx("div", { className: "bb-ui__disappearing-message__content", children: d ?? u })
|
|
2686
2688
|
}
|
|
2687
2689
|
) : null;
|
|
@@ -2694,7 +2696,7 @@ const Aa = ({
|
|
|
2694
2696
|
options: f
|
|
2695
2697
|
}) => {
|
|
2696
2698
|
const [h, v] = F(null);
|
|
2697
|
-
|
|
2699
|
+
G(() => {
|
|
2698
2700
|
v(u);
|
|
2699
2701
|
}, [u]);
|
|
2700
2702
|
const g = [
|
|
@@ -2708,7 +2710,7 @@ const Aa = ({
|
|
|
2708
2710
|
}
|
|
2709
2711
|
})),
|
|
2710
2712
|
{
|
|
2711
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2713
|
+
icon: /* @__PURE__ */ n.jsx(Ke, { icon: l }),
|
|
2712
2714
|
title: "Reset",
|
|
2713
2715
|
value: "reset",
|
|
2714
2716
|
onClick: () => {
|
|
@@ -2720,11 +2722,11 @@ const Aa = ({
|
|
|
2720
2722
|
Rn,
|
|
2721
2723
|
{
|
|
2722
2724
|
controls: g,
|
|
2723
|
-
className:
|
|
2725
|
+
className: W(
|
|
2724
2726
|
"blockbite-ui__dropdown-picker border-primary border",
|
|
2725
2727
|
a
|
|
2726
2728
|
),
|
|
2727
|
-
icon: f.find((p) => p.value === h)?.icon || /* @__PURE__ */ n.jsx(
|
|
2729
|
+
icon: f.find((p) => p.value === h)?.icon || /* @__PURE__ */ n.jsx(Ke, { icon: l }),
|
|
2728
2730
|
label: o || "Select"
|
|
2729
2731
|
}
|
|
2730
2732
|
);
|
|
@@ -2747,7 +2749,7 @@ function $a({
|
|
|
2747
2749
|
children: o
|
|
2748
2750
|
}) {
|
|
2749
2751
|
const a = lr(null), [u, l] = F({ x: 100, y: 100 }), [d, f] = F(!1), [h, v] = F({ x: 0, y: 0 });
|
|
2750
|
-
|
|
2752
|
+
G(() => {
|
|
2751
2753
|
const p = (_) => {
|
|
2752
2754
|
d && l({
|
|
2753
2755
|
x: _.clientX - h.x,
|
|
@@ -2790,13 +2792,13 @@ const Fa = ({
|
|
|
2790
2792
|
x: 0.5,
|
|
2791
2793
|
y: 0.5
|
|
2792
2794
|
});
|
|
2793
|
-
return
|
|
2795
|
+
return G(() => {
|
|
2794
2796
|
a(
|
|
2795
2797
|
`[${(l.x * 100).toFixed(2)}%_${(l.y * 100).toFixed(
|
|
2796
2798
|
2
|
|
2797
2799
|
)}%]`
|
|
2798
2800
|
);
|
|
2799
|
-
}, [l]),
|
|
2801
|
+
}, [l]), G(() => {
|
|
2800
2802
|
if (o.includes("%")) {
|
|
2801
2803
|
const [f, h] = o.replace("[", "").replace("%]", "").split("_").map((v) => parseFloat(v) / 100);
|
|
2802
2804
|
d({
|
|
@@ -2805,7 +2807,7 @@ const Fa = ({
|
|
|
2805
2807
|
});
|
|
2806
2808
|
}
|
|
2807
2809
|
}, [o]), /* @__PURE__ */ n.jsx(ne, { className: "relative flex flex-col", children: /* @__PURE__ */ n.jsx(
|
|
2808
|
-
|
|
2810
|
+
Sn,
|
|
2809
2811
|
{
|
|
2810
2812
|
url: u,
|
|
2811
2813
|
value: l,
|
|
@@ -2819,7 +2821,7 @@ function La(o) {
|
|
|
2819
2821
|
url: "",
|
|
2820
2822
|
title: ""
|
|
2821
2823
|
});
|
|
2822
|
-
return
|
|
2824
|
+
return G(() => {
|
|
2823
2825
|
a !== "" && (d(null), Yn({
|
|
2824
2826
|
path: `/blockbite/v1/block-helpers/get-links/${a}`
|
|
2825
2827
|
}).then(
|
|
@@ -2827,12 +2829,14 @@ function La(o) {
|
|
|
2827
2829
|
v?.length ? d([...v]) : d([]);
|
|
2828
2830
|
}
|
|
2829
2831
|
));
|
|
2830
|
-
}, [a]),
|
|
2832
|
+
}, [a]), G(() => {
|
|
2831
2833
|
f.url !== "" && o.parentCallback(f);
|
|
2832
2834
|
}, [f]), /* @__PURE__ */ n.jsxs(ne, { className: "blockbite--editor-linkwrap", children: [
|
|
2833
2835
|
/* @__PURE__ */ n.jsx(
|
|
2834
2836
|
rt,
|
|
2835
2837
|
{
|
|
2838
|
+
__next40pxDefaultSize: !0,
|
|
2839
|
+
__nextHasNoMarginBottom: !0,
|
|
2836
2840
|
label: Me("Search link", "blockbitelinks"),
|
|
2837
2841
|
value: a,
|
|
2838
2842
|
placeholder: "Example: About",
|
|
@@ -2888,7 +2892,7 @@ function Ma({ mediaProps: o, mediaCallback: a }) {
|
|
|
2888
2892
|
width: 0,
|
|
2889
2893
|
height: 0
|
|
2890
2894
|
});
|
|
2891
|
-
|
|
2895
|
+
G(() => {
|
|
2892
2896
|
o && d({ ...o });
|
|
2893
2897
|
}, [o]);
|
|
2894
2898
|
const f = () => {
|
|
@@ -2917,7 +2921,7 @@ function Ma({ mediaProps: o, mediaCallback: a }) {
|
|
|
2917
2921
|
};
|
|
2918
2922
|
a({ ...p });
|
|
2919
2923
|
};
|
|
2920
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2924
|
+
return /* @__PURE__ */ n.jsxs(kn, { children: [
|
|
2921
2925
|
l.id !== null && /* @__PURE__ */ n.jsx(Qr, { children: /* @__PURE__ */ n.jsx(
|
|
2922
2926
|
Pt,
|
|
2923
2927
|
{
|
|
@@ -2965,7 +2969,7 @@ const ia = ({
|
|
|
2965
2969
|
onVisibleChange: f
|
|
2966
2970
|
}) => {
|
|
2967
2971
|
const [h, v] = F(!!l);
|
|
2968
|
-
|
|
2972
|
+
G(() => {
|
|
2969
2973
|
l !== void 0 && v(l);
|
|
2970
2974
|
}, [l]);
|
|
2971
2975
|
const g = () => {
|
|
@@ -3007,17 +3011,19 @@ const ia = ({
|
|
|
3007
3011
|
...g
|
|
3008
3012
|
}) => {
|
|
3009
3013
|
const [p] = F(0), [j, _] = F(0);
|
|
3010
|
-
|
|
3014
|
+
G(() => {
|
|
3011
3015
|
_(Math.round(parseInt(o) / (h ? 16 : 1)));
|
|
3012
3016
|
}, [o]);
|
|
3013
3017
|
function O(T) {
|
|
3014
|
-
const
|
|
3015
|
-
f(
|
|
3018
|
+
const k = T * (h ? 16 : 1);
|
|
3019
|
+
f(k.toString());
|
|
3016
3020
|
}
|
|
3017
3021
|
return /* @__PURE__ */ n.jsxs(ne, { className: "flex min-w-[240px] flex-col", children: [
|
|
3018
3022
|
/* @__PURE__ */ n.jsx(
|
|
3019
3023
|
On,
|
|
3020
3024
|
{
|
|
3025
|
+
__next40pxDefaultSize: !0,
|
|
3026
|
+
__nextHasNoMarginBottom: !0,
|
|
3021
3027
|
label: a,
|
|
3022
3028
|
value: j,
|
|
3023
3029
|
min: u,
|
|
@@ -3036,18 +3042,18 @@ const ia = ({
|
|
|
3036
3042
|
" "
|
|
3037
3043
|
] })
|
|
3038
3044
|
] });
|
|
3039
|
-
},
|
|
3045
|
+
}, Ba = ({
|
|
3040
3046
|
defaultUnit: o,
|
|
3041
3047
|
defaultValue: a,
|
|
3042
3048
|
onValueChange: u,
|
|
3043
3049
|
onUnitChange: l,
|
|
3044
3050
|
inputClassName: d = "w-[75px]"
|
|
3045
3051
|
}) => {
|
|
3046
|
-
const [f, h] = F(!1), [v, g] = F([]), [p, j] = F(o), [_, O] = F(""), [T,
|
|
3047
|
-
|
|
3052
|
+
const [f, h] = F(!1), [v, g] = F([]), [p, j] = F(o), [_, O] = F(""), [T, k] = F(a);
|
|
3053
|
+
G(() => {
|
|
3048
3054
|
o && j(o), O(a.toString());
|
|
3049
|
-
}, [o, a]),
|
|
3050
|
-
!f && p === "arbitrary" &&
|
|
3055
|
+
}, [o, a]), G(() => {
|
|
3056
|
+
!f && p === "arbitrary" && k(_);
|
|
3051
3057
|
}, [f]);
|
|
3052
3058
|
const ae = (A) => {
|
|
3053
3059
|
if (A !== "arbitrary" && bb?.codex?.units?.spacing?.[A]) {
|
|
@@ -3140,12 +3146,12 @@ const ia = ({
|
|
|
3140
3146
|
]
|
|
3141
3147
|
}
|
|
3142
3148
|
) });
|
|
3143
|
-
},
|
|
3144
|
-
const o = nt(
|
|
3149
|
+
}, Vt = Ut(null), Yt = () => {
|
|
3150
|
+
const o = nt(Vt);
|
|
3145
3151
|
if (!o)
|
|
3146
3152
|
throw new Error("useModalContext must be used within a ModalProvider");
|
|
3147
3153
|
return o;
|
|
3148
|
-
},
|
|
3154
|
+
}, Wa = ({
|
|
3149
3155
|
children: o,
|
|
3150
3156
|
defaultOpen: a,
|
|
3151
3157
|
onOpenChange: u,
|
|
@@ -3153,24 +3159,24 @@ const ia = ({
|
|
|
3153
3159
|
className: d
|
|
3154
3160
|
}) => {
|
|
3155
3161
|
const [f, h] = F(!1);
|
|
3156
|
-
|
|
3162
|
+
G(() => {
|
|
3157
3163
|
h(a);
|
|
3158
3164
|
}, [a]);
|
|
3159
3165
|
const v = () => h(!0), g = () => h(!1);
|
|
3160
|
-
return
|
|
3166
|
+
return G(() => {
|
|
3161
3167
|
u(f);
|
|
3162
|
-
}, [f, u]), /* @__PURE__ */ n.jsxs(
|
|
3163
|
-
Rr.map(o, (p) =>
|
|
3168
|
+
}, [f, u]), /* @__PURE__ */ n.jsxs(Vt.Provider, { value: { closeModal: g, openModal: v }, children: [
|
|
3169
|
+
Rr.map(o, (p) => Sr(p) && p.type === da ? p : null),
|
|
3164
3170
|
f && /* @__PURE__ */ n.jsx(
|
|
3165
3171
|
Pn,
|
|
3166
3172
|
{
|
|
3167
|
-
className:
|
|
3173
|
+
className: W("blockbite-ui__modal bb_", d),
|
|
3168
3174
|
onRequestClose: g,
|
|
3169
3175
|
title: l,
|
|
3170
3176
|
children: /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
3171
|
-
Rr.map(o, (p) =>
|
|
3172
|
-
Rr.map(o, (p) =>
|
|
3173
|
-
Rr.map(o, (p) =>
|
|
3177
|
+
Rr.map(o, (p) => Sr(p) && p.type === ua ? p : null),
|
|
3178
|
+
Rr.map(o, (p) => Sr(p) && p.type === fa ? p : null),
|
|
3179
|
+
Rr.map(o, (p) => Sr(p) && p.type === ca ? p : null)
|
|
3174
3180
|
] })
|
|
3175
3181
|
}
|
|
3176
3182
|
)
|
|
@@ -3178,7 +3184,7 @@ const ia = ({
|
|
|
3178
3184
|
}, ua = ({ children: o, className: a = "", ...u }) => /* @__PURE__ */ n.jsx(
|
|
3179
3185
|
"div",
|
|
3180
3186
|
{
|
|
3181
|
-
className:
|
|
3187
|
+
className: W(
|
|
3182
3188
|
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
3183
3189
|
a
|
|
3184
3190
|
),
|
|
@@ -3188,7 +3194,7 @@ const ia = ({
|
|
|
3188
3194
|
), ca = ({ children: o, className: a = "", ...u }) => /* @__PURE__ */ n.jsx(
|
|
3189
3195
|
"div",
|
|
3190
3196
|
{
|
|
3191
|
-
className:
|
|
3197
|
+
className: W(
|
|
3192
3198
|
"border-gray-light fixed bottom-0 left-0 right-0 flex h-[4rem] flex-row items-center justify-end space-x-2 border-t bg-white px-4",
|
|
3193
3199
|
a
|
|
3194
3200
|
),
|
|
@@ -3198,11 +3204,11 @@ const ia = ({
|
|
|
3198
3204
|
), fa = ({ children: o, className: a = "", ...u }) => /* @__PURE__ */ n.jsx(
|
|
3199
3205
|
"div",
|
|
3200
3206
|
{
|
|
3201
|
-
className:
|
|
3207
|
+
className: W("text-gray-medium px-4 pb-4 text-sm", a),
|
|
3202
3208
|
...u,
|
|
3203
3209
|
children: o
|
|
3204
3210
|
}
|
|
3205
|
-
),
|
|
3211
|
+
), Ua = ({ children: o }) => {
|
|
3206
3212
|
const { closeModal: a } = Yt();
|
|
3207
3213
|
return /* @__PURE__ */ n.jsx("div", { onClick: a, className: "cursor-pointer", children: o });
|
|
3208
3214
|
}, da = ({ children: o }) => {
|
|
@@ -3230,13 +3236,13 @@ function pa(o, a) {
|
|
|
3230
3236
|
}
|
|
3231
3237
|
});
|
|
3232
3238
|
}
|
|
3233
|
-
const
|
|
3239
|
+
const Va = ({
|
|
3234
3240
|
windowInstance: o,
|
|
3235
3241
|
onClose: a,
|
|
3236
3242
|
children: u
|
|
3237
3243
|
}) => {
|
|
3238
|
-
const l =
|
|
3239
|
-
return
|
|
3244
|
+
const l = Vn(() => document.createElement("div"), []);
|
|
3245
|
+
return G(() => {
|
|
3240
3246
|
const d = o;
|
|
3241
3247
|
d.document.body.innerHTML = "", d.document.body.appendChild(l), d.document.body.classList.add("bb_"), pa(document, d.document), d.document.title = document.title || "Blockbite Editor";
|
|
3242
3248
|
const f = () => {
|
|
@@ -3245,7 +3251,7 @@ const Ba = ({
|
|
|
3245
3251
|
return d.addEventListener("beforeunload", f), () => {
|
|
3246
3252
|
d.removeEventListener("beforeunload", f);
|
|
3247
3253
|
};
|
|
3248
|
-
}, [o]),
|
|
3254
|
+
}, [o]), Wt(u, l);
|
|
3249
3255
|
}, Ya = ({
|
|
3250
3256
|
children: o,
|
|
3251
3257
|
status: a = "success",
|
|
@@ -3256,7 +3262,7 @@ const Ba = ({
|
|
|
3256
3262
|
Nn,
|
|
3257
3263
|
{
|
|
3258
3264
|
status: a,
|
|
3259
|
-
className:
|
|
3265
|
+
className: W(u),
|
|
3260
3266
|
onRemove: () => d(!1),
|
|
3261
3267
|
children: o
|
|
3262
3268
|
}
|
|
@@ -3278,7 +3284,7 @@ const Ba = ({
|
|
|
3278
3284
|
ye,
|
|
3279
3285
|
{
|
|
3280
3286
|
icon: /* @__PURE__ */ n.jsx(zn, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx(
|
|
3281
|
-
|
|
3287
|
+
Hn,
|
|
3282
3288
|
{
|
|
3283
3289
|
d: d ? "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" : "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"
|
|
3284
3290
|
}
|
|
@@ -3292,7 +3298,7 @@ const Ba = ({
|
|
|
3292
3298
|
...l
|
|
3293
3299
|
}
|
|
3294
3300
|
);
|
|
3295
|
-
},
|
|
3301
|
+
}, Ha = ({
|
|
3296
3302
|
items: o,
|
|
3297
3303
|
activeId: a,
|
|
3298
3304
|
onSelect: u,
|
|
@@ -3309,7 +3315,7 @@ const Ba = ({
|
|
|
3309
3315
|
},
|
|
3310
3316
|
d.id
|
|
3311
3317
|
)) }) });
|
|
3312
|
-
function
|
|
3318
|
+
function qa(o) {
|
|
3313
3319
|
const { media: a, mediaClass: u } = o, { url: l, alt: d, sizes: f } = a;
|
|
3314
3320
|
if (f === void 0)
|
|
3315
3321
|
return /* @__PURE__ */ n.jsx("img", { src: l, alt: d, className: `bf_media ${u}` });
|
|
@@ -3342,7 +3348,7 @@ function Ga(o) {
|
|
|
3342
3348
|
j ? /* @__PURE__ */ n.jsx("img", { src: j, alt: d, className: `bf_media ${u}` }) : null
|
|
3343
3349
|
] });
|
|
3344
3350
|
}
|
|
3345
|
-
function
|
|
3351
|
+
function Ga(o) {
|
|
3346
3352
|
const { media: a, mediaClass: u } = o, { url: l } = a, d = l;
|
|
3347
3353
|
return /* @__PURE__ */ n.jsx(
|
|
3348
3354
|
"video",
|
|
@@ -3358,14 +3364,14 @@ function Ka(o) {
|
|
|
3358
3364
|
}
|
|
3359
3365
|
);
|
|
3360
3366
|
}
|
|
3361
|
-
const
|
|
3367
|
+
const Ka = ({
|
|
3362
3368
|
children: o,
|
|
3363
3369
|
className: a = "",
|
|
3364
3370
|
height: u = "large"
|
|
3365
3371
|
}) => /* @__PURE__ */ n.jsx(
|
|
3366
3372
|
ne,
|
|
3367
3373
|
{
|
|
3368
|
-
className:
|
|
3374
|
+
className: W("scrollbar relative overflow-y-scroll", a, {
|
|
3369
3375
|
"h-[400px]": u === "large",
|
|
3370
3376
|
"h-[300px]": u === "medium",
|
|
3371
3377
|
"h-[200px]": u === "small"
|
|
@@ -3381,7 +3387,7 @@ const Ha = ({
|
|
|
3381
3387
|
emptyLabel: f = "No options available"
|
|
3382
3388
|
}) => {
|
|
3383
3389
|
const [h, v] = F("");
|
|
3384
|
-
|
|
3390
|
+
G(() => {
|
|
3385
3391
|
v(u);
|
|
3386
3392
|
}, []);
|
|
3387
3393
|
const g = (p) => {
|
|
@@ -3391,6 +3397,8 @@ const Ha = ({
|
|
|
3391
3397
|
l && l.length > 0 && /* @__PURE__ */ n.jsx(
|
|
3392
3398
|
Dn,
|
|
3393
3399
|
{
|
|
3400
|
+
__next40pxDefaultSize: !0,
|
|
3401
|
+
__nextHasNoMarginBottom: !0,
|
|
3394
3402
|
label: d || "",
|
|
3395
3403
|
value: h || "",
|
|
3396
3404
|
onChange: g,
|
|
@@ -3403,7 +3411,7 @@ const Ha = ({
|
|
|
3403
3411
|
buttonText: o = "Add block"
|
|
3404
3412
|
}) => {
|
|
3405
3413
|
const a = () => {
|
|
3406
|
-
const u = va("core/block-editor").getSelectedBlock(), { clientId: l, innerBlocks: d } = u, f = d[d.length - 1], h =
|
|
3414
|
+
const u = va("core/block-editor").getSelectedBlock(), { clientId: l, innerBlocks: d } = u, f = d[d.length - 1], h = qn(
|
|
3407
3415
|
f.name,
|
|
3408
3416
|
f.attributes,
|
|
3409
3417
|
f.innerBlocks
|
|
@@ -3413,14 +3421,14 @@ const Ha = ({
|
|
|
3413
3421
|
return /* @__PURE__ */ n.jsx(ye, { variant: "primary", onClick: () => a(), children: o });
|
|
3414
3422
|
}, Za = ({ children: o, watch: a, className: u }) => {
|
|
3415
3423
|
const [l, d] = F(0);
|
|
3416
|
-
return
|
|
3424
|
+
return G(() => {
|
|
3417
3425
|
setTimeout(() => {
|
|
3418
3426
|
d(1);
|
|
3419
3427
|
}, 250);
|
|
3420
3428
|
}, [a]), /* @__PURE__ */ n.jsx(
|
|
3421
3429
|
ne,
|
|
3422
3430
|
{
|
|
3423
|
-
className:
|
|
3431
|
+
className: W(
|
|
3424
3432
|
u,
|
|
3425
3433
|
"duration-50 transform transition-all ease-in-out",
|
|
3426
3434
|
{
|
|
@@ -3433,12 +3441,12 @@ const Ha = ({
|
|
|
3433
3441
|
);
|
|
3434
3442
|
}, Qa = ({ className: o, defaultValue: a }) => {
|
|
3435
3443
|
const [u, l] = F(!1);
|
|
3436
|
-
return
|
|
3444
|
+
return G(() => {
|
|
3437
3445
|
setTimeout(() => {
|
|
3438
3446
|
l(!1);
|
|
3439
3447
|
}, 500), a && l(!0);
|
|
3440
|
-
}, [u, a]), u && /* @__PURE__ */ n.jsx($n, { className:
|
|
3441
|
-
}, st =
|
|
3448
|
+
}, [u, a]), u && /* @__PURE__ */ n.jsx($n, { className: W(o) });
|
|
3449
|
+
}, st = Ut(null), ha = ({
|
|
3442
3450
|
children: o,
|
|
3443
3451
|
defaultValue: a,
|
|
3444
3452
|
value: u,
|
|
@@ -3462,7 +3470,7 @@ const Ha = ({
|
|
|
3462
3470
|
return /* @__PURE__ */ n.jsx(
|
|
3463
3471
|
Fn,
|
|
3464
3472
|
{
|
|
3465
|
-
className:
|
|
3473
|
+
className: W("tabs-list", u),
|
|
3466
3474
|
tabs: o,
|
|
3467
3475
|
onSelect: (h) => {
|
|
3468
3476
|
f(h);
|
|
@@ -3483,13 +3491,22 @@ const Ha = ({
|
|
|
3483
3491
|
onClick: a,
|
|
3484
3492
|
color: u = "blue",
|
|
3485
3493
|
className: l
|
|
3486
|
-
}) => /* @__PURE__ */ n.jsx("button", { onClick: a, children: /* @__PURE__ */ n.jsx("div", { color: u, className:
|
|
3494
|
+
}) => /* @__PURE__ */ n.jsx("button", { onClick: a, children: /* @__PURE__ */ n.jsx("div", { color: u, className: W(l), children: o }) }), to = ({
|
|
3487
3495
|
onChange: o,
|
|
3488
3496
|
defaultValue: a,
|
|
3489
3497
|
children: u
|
|
3490
3498
|
}) => /* @__PURE__ */ n.jsxs(ne, { className: "blockbite-ui__text-control-label flex items-center", children: [
|
|
3491
3499
|
/* @__PURE__ */ n.jsxs("span", { className: "outline-b-2 relative block -outline-offset-2 outline-black", children: [
|
|
3492
|
-
/* @__PURE__ */ n.jsx(
|
|
3500
|
+
/* @__PURE__ */ n.jsx(
|
|
3501
|
+
rt,
|
|
3502
|
+
{
|
|
3503
|
+
__next40pxDefaultSize: !0,
|
|
3504
|
+
__nextHasNoMarginBottom: !0,
|
|
3505
|
+
type: "text",
|
|
3506
|
+
value: a,
|
|
3507
|
+
onChange: o
|
|
3508
|
+
}
|
|
3509
|
+
),
|
|
3493
3510
|
/* @__PURE__ */ n.jsx(Mt, { className: "absolute right-1 top-2" })
|
|
3494
3511
|
] }),
|
|
3495
3512
|
" ",
|
|
@@ -3506,11 +3523,13 @@ const Ha = ({
|
|
|
3506
3523
|
const [h, v] = F(""), g = (p) => {
|
|
3507
3524
|
f(p);
|
|
3508
3525
|
};
|
|
3509
|
-
return
|
|
3526
|
+
return G(() => {
|
|
3510
3527
|
v(u);
|
|
3511
|
-
}, [u]), /* @__PURE__ */ n.jsx(ne, { className:
|
|
3528
|
+
}, [u]), /* @__PURE__ */ n.jsx(ne, { className: W(o), children: /* @__PURE__ */ n.jsx(
|
|
3512
3529
|
Ln,
|
|
3513
3530
|
{
|
|
3531
|
+
__next40pxDefaultSize: !0,
|
|
3532
|
+
__nextHasNoMarginBottom: !0,
|
|
3514
3533
|
isBlock: !0,
|
|
3515
3534
|
value: h,
|
|
3516
3535
|
label: typeof d == "string" ? d : "",
|
|
@@ -3525,7 +3544,7 @@ const Ha = ({
|
|
|
3525
3544
|
},
|
|
3526
3545
|
`ToggleGroupControlIcon-${p.value}`
|
|
3527
3546
|
) : /* @__PURE__ */ n.jsx(
|
|
3528
|
-
|
|
3547
|
+
Bn,
|
|
3529
3548
|
{
|
|
3530
3549
|
value: p.value,
|
|
3531
3550
|
label: p.label,
|
|
@@ -3545,10 +3564,10 @@ const Ha = ({
|
|
|
3545
3564
|
// Default to false if undefined, so it's always controlled
|
|
3546
3565
|
}) => {
|
|
3547
3566
|
const [d, f] = F(l);
|
|
3548
|
-
return
|
|
3567
|
+
return G(() => {
|
|
3549
3568
|
f(l);
|
|
3550
|
-
}, [l]), /* @__PURE__ */ n.jsx(ne, { className:
|
|
3551
|
-
|
|
3569
|
+
}, [l]), /* @__PURE__ */ n.jsx(ne, { className: W(a, "flex items-center gap-2"), children: /* @__PURE__ */ n.jsx(
|
|
3570
|
+
Wn,
|
|
3552
3571
|
{
|
|
3553
3572
|
checked: d,
|
|
3554
3573
|
label: o,
|
|
@@ -3559,9 +3578,9 @@ const Ha = ({
|
|
|
3559
3578
|
) });
|
|
3560
3579
|
};
|
|
3561
3580
|
export {
|
|
3562
|
-
|
|
3581
|
+
Sa as AutocompleteDropdown,
|
|
3563
3582
|
aa as Badge,
|
|
3564
|
-
|
|
3583
|
+
ka as BitePreview,
|
|
3565
3584
|
Ta as Button,
|
|
3566
3585
|
ta as ButtonToggle,
|
|
3567
3586
|
na as ButtonToggleGroup,
|
|
@@ -3574,25 +3593,25 @@ export {
|
|
|
3574
3593
|
Da as EmptyState,
|
|
3575
3594
|
$a as FloatingPanel,
|
|
3576
3595
|
Fa as FocalPointControl,
|
|
3577
|
-
|
|
3596
|
+
Ke as Icon,
|
|
3578
3597
|
La as LinkPicker,
|
|
3579
3598
|
Ma as MediaPicker,
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3599
|
+
Ba as MetricsControl,
|
|
3600
|
+
Wa as Modal,
|
|
3601
|
+
Ua as ModalClose,
|
|
3583
3602
|
fa as ModalContent,
|
|
3584
3603
|
ca as ModalFooter,
|
|
3585
3604
|
ua as ModalHeader,
|
|
3586
3605
|
da as ModalTrigger,
|
|
3587
|
-
|
|
3606
|
+
Va as NewWindowPortal,
|
|
3588
3607
|
Ya as Notice,
|
|
3589
3608
|
za as PasswordInput,
|
|
3590
3609
|
ia as Popover,
|
|
3591
|
-
|
|
3610
|
+
Ha as ProjectsNavigation,
|
|
3592
3611
|
la as RangeSlider,
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3612
|
+
qa as ResponsiveImage,
|
|
3613
|
+
Ga as ResponsiveVideo,
|
|
3614
|
+
Ka as ScrollList,
|
|
3596
3615
|
Ja as SelectControlWrapper,
|
|
3597
3616
|
Xa as SingleBlockTypeAppender,
|
|
3598
3617
|
Za as SlideIn,
|