@secretstache/wordpress-gutenberg 0.6.2 → 0.6.4
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/build/index.js +753 -736
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/helpers.js +42 -14
package/build/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as J from "react";
|
2
|
-
import
|
3
|
-
import { createPortal as
|
2
|
+
import Jo, { forwardRef as Jn, useContext as _o, useLayoutEffect as Aa, createContext as Uo, useRef as Ve, useState as Ae, useMemo as tt, useCallback as Ce, Component as $t, Fragment as Wn, useEffect as Zt, createElement as Lt, createRef as _n } from "react";
|
3
|
+
import { createPortal as Ea, findDOMNode as Un } from "react-dom";
|
4
4
|
function Qt(e) {
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
6
6
|
}
|
@@ -14,11 +14,11 @@ var At = { exports: {} }, lt = {};
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
16
16
|
*/
|
17
|
-
var
|
18
|
-
function
|
19
|
-
if (
|
20
|
-
|
21
|
-
var e =
|
17
|
+
var Sr;
|
18
|
+
function Sa() {
|
19
|
+
if (Sr) return lt;
|
20
|
+
Sr = 1;
|
21
|
+
var e = Jo, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
22
22
|
function s(o, u, c) {
|
23
23
|
var l, d = {}, p = null, g = null;
|
24
24
|
c !== void 0 && (p = "" + c), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (g = u.ref);
|
@@ -38,10 +38,10 @@ var dt = {};
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
40
40
|
*/
|
41
|
-
var
|
42
|
-
function
|
43
|
-
return
|
44
|
-
var e =
|
41
|
+
var Tr;
|
42
|
+
function Ta() {
|
43
|
+
return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() {
|
44
|
+
var e = Jo, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = Symbol.iterator, b = "@@iterator";
|
45
45
|
function I(f) {
|
46
46
|
if (f === null || typeof f != "object")
|
47
47
|
return null;
|
@@ -66,10 +66,10 @@ function Ea() {
|
|
66
66
|
le.unshift("Warning: " + S), Function.prototype.apply.call(console[f], console, le);
|
67
67
|
}
|
68
68
|
}
|
69
|
-
var C = !1, y = !1, T = !1, E = !1,
|
69
|
+
var C = !1, y = !1, T = !1, E = !1, O = !1, K;
|
70
70
|
K = Symbol.for("react.module.reference");
|
71
71
|
function X(f) {
|
72
|
-
return !!(typeof f == "string" || typeof f == "function" || f === i || f === a ||
|
72
|
+
return !!(typeof f == "string" || typeof f == "function" || f === i || f === a || O || f === n || f === c || f === l || E || f === g || C || y || T || typeof f == "object" && f !== null && (f.$$typeof === p || f.$$typeof === d || f.$$typeof === s || f.$$typeof === o || f.$$typeof === u || // This needs to include all possible module reference object
|
73
73
|
// types supported by any Flight configuration anywhere since
|
74
74
|
// we don't know which Flight build this will end up being used
|
75
75
|
// with.
|
@@ -131,9 +131,9 @@ function Ea() {
|
|
131
131
|
return null;
|
132
132
|
}
|
133
133
|
var z = Object.assign, te = 0, oe, de, fe, Ie, A, R, F;
|
134
|
-
function
|
134
|
+
function P() {
|
135
135
|
}
|
136
|
-
|
136
|
+
P.__reactDisabledLog = !0;
|
137
137
|
function W() {
|
138
138
|
{
|
139
139
|
if (te === 0) {
|
@@ -141,7 +141,7 @@ function Ea() {
|
|
141
141
|
var f = {
|
142
142
|
configurable: !0,
|
143
143
|
enumerable: !0,
|
144
|
-
value:
|
144
|
+
value: P,
|
145
145
|
writable: !0
|
146
146
|
};
|
147
147
|
Object.defineProperties(console, {
|
@@ -285,7 +285,7 @@ function Ea() {
|
|
285
285
|
function xe(f, S, G) {
|
286
286
|
return B(f, !1);
|
287
287
|
}
|
288
|
-
function
|
288
|
+
function Oe(f) {
|
289
289
|
var S = f.prototype;
|
290
290
|
return !!(S && S.isReactComponent);
|
291
291
|
}
|
@@ -293,7 +293,7 @@ function Ea() {
|
|
293
293
|
if (f == null)
|
294
294
|
return "";
|
295
295
|
if (typeof f == "function")
|
296
|
-
return B(f,
|
296
|
+
return B(f, Oe(f));
|
297
297
|
if (typeof f == "string")
|
298
298
|
return j(f);
|
299
299
|
switch (f) {
|
@@ -319,7 +319,7 @@ function Ea() {
|
|
319
319
|
return "";
|
320
320
|
}
|
321
321
|
var He = Object.prototype.hasOwnProperty, wt = {}, Le = v.ReactDebugCurrentFrame;
|
322
|
-
function
|
322
|
+
function Pe(f) {
|
323
323
|
if (f) {
|
324
324
|
var S = f._owner, G = Be(f.type, f._source, S ? S.type : null);
|
325
325
|
Le.setExtraStackFrame(G);
|
@@ -341,7 +341,7 @@ function Ea() {
|
|
341
341
|
} catch (be) {
|
342
342
|
ee = be;
|
343
343
|
}
|
344
|
-
ee && !(ee instanceof Error) && (
|
344
|
+
ee && !(ee instanceof Error) && (Pe(se), x("%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).", Y || "React class", G, re, typeof ee), Pe(null)), ee instanceof Error && !(ee.message in wt) && (wt[ee.message] = !0, Pe(se), x("Failed %s type: %s", G, ee.message), Pe(null));
|
345
345
|
}
|
346
346
|
}
|
347
347
|
}
|
@@ -349,33 +349,33 @@ function Ea() {
|
|
349
349
|
function je(f) {
|
350
350
|
return an(f);
|
351
351
|
}
|
352
|
-
function
|
352
|
+
function oa(f) {
|
353
353
|
{
|
354
354
|
var S = typeof Symbol == "function" && Symbol.toStringTag, G = S && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
355
355
|
return G;
|
356
356
|
}
|
357
357
|
}
|
358
|
-
function
|
358
|
+
function ia(f) {
|
359
359
|
try {
|
360
|
-
return
|
360
|
+
return gr(f), !1;
|
361
361
|
} catch {
|
362
362
|
return !0;
|
363
363
|
}
|
364
364
|
}
|
365
|
-
function
|
365
|
+
function gr(f) {
|
366
366
|
return "" + f;
|
367
367
|
}
|
368
|
-
function
|
369
|
-
if (
|
370
|
-
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
368
|
+
function br(f) {
|
369
|
+
if (ia(f))
|
370
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", oa(f)), gr(f);
|
371
371
|
}
|
372
|
-
var
|
372
|
+
var hr = v.ReactCurrentOwner, aa = {
|
373
373
|
key: !0,
|
374
374
|
ref: !0,
|
375
375
|
__self: !0,
|
376
376
|
__source: !0
|
377
|
-
},
|
378
|
-
function
|
377
|
+
}, mr, vr;
|
378
|
+
function sa(f) {
|
379
379
|
if (He.call(f, "ref")) {
|
380
380
|
var S = Object.getOwnPropertyDescriptor(f, "ref").get;
|
381
381
|
if (S && S.isReactWarning)
|
@@ -383,7 +383,7 @@ function Ea() {
|
|
383
383
|
}
|
384
384
|
return f.ref !== void 0;
|
385
385
|
}
|
386
|
-
function
|
386
|
+
function ua(f) {
|
387
387
|
if (He.call(f, "key")) {
|
388
388
|
var S = Object.getOwnPropertyDescriptor(f, "key").get;
|
389
389
|
if (S && S.isReactWarning)
|
@@ -391,13 +391,13 @@ function Ea() {
|
|
391
391
|
}
|
392
392
|
return f.key !== void 0;
|
393
393
|
}
|
394
|
-
function
|
395
|
-
typeof f.ref == "string" &&
|
394
|
+
function ca(f, S) {
|
395
|
+
typeof f.ref == "string" && hr.current;
|
396
396
|
}
|
397
|
-
function
|
397
|
+
function la(f, S) {
|
398
398
|
{
|
399
399
|
var G = function() {
|
400
|
-
|
400
|
+
mr || (mr = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
|
401
401
|
};
|
402
402
|
G.isReactWarning = !0, Object.defineProperty(f, "key", {
|
403
403
|
get: G,
|
@@ -405,10 +405,10 @@ function Ea() {
|
|
405
405
|
});
|
406
406
|
}
|
407
407
|
}
|
408
|
-
function
|
408
|
+
function da(f, S) {
|
409
409
|
{
|
410
410
|
var G = function() {
|
411
|
-
|
411
|
+
vr || (vr = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
|
412
412
|
};
|
413
413
|
G.isReactWarning = !0, Object.defineProperty(f, "ref", {
|
414
414
|
get: G,
|
@@ -416,7 +416,7 @@ function Ea() {
|
|
416
416
|
});
|
417
417
|
}
|
418
418
|
}
|
419
|
-
var
|
419
|
+
var fa = function(f, S, G, Y, se, le, re) {
|
420
420
|
var ee = {
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
422
422
|
$$typeof: t,
|
@@ -445,12 +445,12 @@ function Ea() {
|
|
445
445
|
value: se
|
446
446
|
}), Object.freeze && (Object.freeze(ee.props), Object.freeze(ee)), ee;
|
447
447
|
};
|
448
|
-
function
|
448
|
+
function pa(f, S, G, Y, se) {
|
449
449
|
{
|
450
450
|
var le, re = {}, ee = null, Se = null;
|
451
|
-
G !== void 0 && (
|
451
|
+
G !== void 0 && (br(G), ee = "" + G), ua(S) && (br(S.key), ee = "" + S.key), sa(S) && (Se = S.ref, ca(S, se));
|
452
452
|
for (le in S)
|
453
|
-
He.call(S, le) && !
|
453
|
+
He.call(S, le) && !aa.hasOwnProperty(le) && (re[le] = S[le]);
|
454
454
|
if (f && f.defaultProps) {
|
455
455
|
var be = f.defaultProps;
|
456
456
|
for (le in be)
|
@@ -458,25 +458,25 @@ function Ea() {
|
|
458
458
|
}
|
459
459
|
if (ee || Se) {
|
460
460
|
var he = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
|
461
|
-
ee &&
|
461
|
+
ee && la(re, he), Se && da(re, he);
|
462
462
|
}
|
463
|
-
return
|
463
|
+
return fa(f, ee, Se, se, Y, hr.current, re);
|
464
464
|
}
|
465
465
|
}
|
466
|
-
var sn = v.ReactCurrentOwner,
|
466
|
+
var sn = v.ReactCurrentOwner, Ir = v.ReactDebugCurrentFrame;
|
467
467
|
function Qe(f) {
|
468
468
|
if (f) {
|
469
469
|
var S = f._owner, G = Be(f.type, f._source, S ? S.type : null);
|
470
|
-
|
470
|
+
Ir.setExtraStackFrame(G);
|
471
471
|
} else
|
472
|
-
|
472
|
+
Ir.setExtraStackFrame(null);
|
473
473
|
}
|
474
474
|
var un;
|
475
475
|
un = !1;
|
476
476
|
function cn(f) {
|
477
477
|
return typeof f == "object" && f !== null && f.$$typeof === t;
|
478
478
|
}
|
479
|
-
function
|
479
|
+
function yr() {
|
480
480
|
{
|
481
481
|
if (sn.current) {
|
482
482
|
var f = $(sn.current.type);
|
@@ -488,13 +488,13 @@ Check the render method of \`` + f + "`.";
|
|
488
488
|
return "";
|
489
489
|
}
|
490
490
|
}
|
491
|
-
function
|
491
|
+
function ga(f) {
|
492
492
|
return "";
|
493
493
|
}
|
494
|
-
var
|
495
|
-
function
|
494
|
+
var Cr = {};
|
495
|
+
function ba(f) {
|
496
496
|
{
|
497
|
-
var S =
|
497
|
+
var S = yr();
|
498
498
|
if (!S) {
|
499
499
|
var G = typeof f == "string" ? f : f.displayName || f.name;
|
500
500
|
G && (S = `
|
@@ -504,27 +504,27 @@ Check the top-level render call using <` + G + ">.");
|
|
504
504
|
return S;
|
505
505
|
}
|
506
506
|
}
|
507
|
-
function
|
507
|
+
function xr(f, S) {
|
508
508
|
{
|
509
509
|
if (!f._store || f._store.validated || f.key != null)
|
510
510
|
return;
|
511
511
|
f._store.validated = !0;
|
512
|
-
var G =
|
513
|
-
if (
|
512
|
+
var G = ba(S);
|
513
|
+
if (Cr[G])
|
514
514
|
return;
|
515
|
-
|
515
|
+
Cr[G] = !0;
|
516
516
|
var Y = "";
|
517
517
|
f && f._owner && f._owner !== sn.current && (Y = " It was passed a child from " + $(f._owner.type) + "."), Qe(f), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, Y), Qe(null);
|
518
518
|
}
|
519
519
|
}
|
520
|
-
function
|
520
|
+
function wr(f, S) {
|
521
521
|
{
|
522
522
|
if (typeof f != "object")
|
523
523
|
return;
|
524
524
|
if (je(f))
|
525
525
|
for (var G = 0; G < f.length; G++) {
|
526
526
|
var Y = f[G];
|
527
|
-
cn(Y) &&
|
527
|
+
cn(Y) && xr(Y, S);
|
528
528
|
}
|
529
529
|
else if (cn(f))
|
530
530
|
f._store && (f._store.validated = !0);
|
@@ -532,11 +532,11 @@ Check the top-level render call using <` + G + ">.");
|
|
532
532
|
var se = I(f);
|
533
533
|
if (typeof se == "function" && se !== f.entries)
|
534
534
|
for (var le = se.call(f), re; !(re = le.next()).done; )
|
535
|
-
cn(re.value) &&
|
535
|
+
cn(re.value) && xr(re.value, S);
|
536
536
|
}
|
537
537
|
}
|
538
538
|
}
|
539
|
-
function
|
539
|
+
function ha(f) {
|
540
540
|
{
|
541
541
|
var S = f.type;
|
542
542
|
if (S == null || typeof S == "string")
|
@@ -561,7 +561,7 @@ Check the top-level render call using <` + G + ">.");
|
|
561
561
|
typeof S.getDefaultProps == "function" && !S.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
562
562
|
}
|
563
563
|
}
|
564
|
-
function
|
564
|
+
function ma(f) {
|
565
565
|
{
|
566
566
|
for (var S = Object.keys(f.props), G = 0; G < S.length; G++) {
|
567
567
|
var Y = S[G];
|
@@ -573,19 +573,19 @@ Check the top-level render call using <` + G + ">.");
|
|
573
573
|
f.ref !== null && (Qe(f), x("Invalid attribute `ref` supplied to `React.Fragment`."), Qe(null));
|
574
574
|
}
|
575
575
|
}
|
576
|
-
var
|
577
|
-
function
|
576
|
+
var Ar = {};
|
577
|
+
function Er(f, S, G, Y, se, le) {
|
578
578
|
{
|
579
579
|
var re = X(f);
|
580
580
|
if (!re) {
|
581
581
|
var ee = "";
|
582
582
|
(f === void 0 || typeof f == "object" && f !== null && Object.keys(f).length === 0) && (ee += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
583
|
-
var Se =
|
584
|
-
Se ? ee += Se : ee +=
|
583
|
+
var Se = ga();
|
584
|
+
Se ? ee += Se : ee += yr();
|
585
585
|
var be;
|
586
586
|
f === null ? be = "null" : je(f) ? be = "array" : f !== void 0 && f.$$typeof === t ? (be = "<" + ($(f.type) || "Unknown") + " />", ee = " Did you accidentally export a JSX literal instead of a component?") : be = typeof f, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, ee);
|
587
587
|
}
|
588
|
-
var he =
|
588
|
+
var he = pa(f, S, G, se, le);
|
589
589
|
if (he == null)
|
590
590
|
return he;
|
591
591
|
if (re) {
|
@@ -594,54 +594,54 @@ Check the top-level render call using <` + G + ">.");
|
|
594
594
|
if (Y)
|
595
595
|
if (je(Fe)) {
|
596
596
|
for (var Ke = 0; Ke < Fe.length; Ke++)
|
597
|
-
|
597
|
+
wr(Fe[Ke], f);
|
598
598
|
Object.freeze && Object.freeze(Fe);
|
599
599
|
} else
|
600
600
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
601
601
|
else
|
602
|
-
|
602
|
+
wr(Fe, f);
|
603
603
|
}
|
604
604
|
if (He.call(S, "key")) {
|
605
|
-
var Ye = $(f), Te = Object.keys(S).filter(function(
|
606
|
-
return
|
605
|
+
var Ye = $(f), Te = Object.keys(S).filter(function(wa) {
|
606
|
+
return wa !== "key";
|
607
607
|
}), ln = Te.length > 0 ? "{key: someKey, " + Te.join(": ..., ") + ": ...}" : "{key: someKey}";
|
608
|
-
if (!
|
609
|
-
var
|
608
|
+
if (!Ar[Ye + ln]) {
|
609
|
+
var xa = Te.length > 0 ? "{" + Te.join(": ..., ") + ": ...}" : "{}";
|
610
610
|
x(`A props object containing a "key" prop is being spread into JSX:
|
611
611
|
let props = %s;
|
612
612
|
<%s {...props} />
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
614
614
|
let props = %s;
|
615
|
-
<%s key={someKey} {...props} />`, ln, Ye,
|
615
|
+
<%s key={someKey} {...props} />`, ln, Ye, xa, Ye), Ar[Ye + ln] = !0;
|
616
616
|
}
|
617
617
|
}
|
618
|
-
return f === i ?
|
618
|
+
return f === i ? ma(he) : ha(he), he;
|
619
619
|
}
|
620
620
|
}
|
621
|
-
function
|
622
|
-
return
|
621
|
+
function va(f, S, G) {
|
622
|
+
return Er(f, S, G, !0);
|
623
623
|
}
|
624
|
-
function
|
625
|
-
return
|
624
|
+
function Ia(f, S, G) {
|
625
|
+
return Er(f, S, G, !1);
|
626
626
|
}
|
627
|
-
var
|
628
|
-
dt.Fragment = i, dt.jsx =
|
627
|
+
var ya = Ia, Ca = va;
|
628
|
+
dt.Fragment = i, dt.jsx = ya, dt.jsxs = Ca;
|
629
629
|
}()), dt;
|
630
630
|
}
|
631
|
-
var
|
632
|
-
function
|
633
|
-
return
|
631
|
+
var Rr;
|
632
|
+
function Ra() {
|
633
|
+
return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? At.exports = Sa() : At.exports = Ta()), At.exports;
|
634
634
|
}
|
635
|
-
var m =
|
636
|
-
const
|
635
|
+
var m = Ra();
|
636
|
+
const Ba = window.wp.components.ToggleControl, Ga = "Enable Preview", Fa = "Please check this option to see how the block will actually look and behave on the frontend.", Oa = (e) => {
|
637
637
|
const {
|
638
638
|
checked: t,
|
639
639
|
onChange: r,
|
640
|
-
help: i =
|
641
|
-
label: n =
|
640
|
+
help: i = Fa,
|
641
|
+
label: n = Ga
|
642
642
|
} = e;
|
643
643
|
return /* @__PURE__ */ m.jsx(
|
644
|
-
|
644
|
+
Ba,
|
645
645
|
{
|
646
646
|
checked: t,
|
647
647
|
onChange: r,
|
@@ -650,15 +650,15 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
650
650
|
...e
|
651
651
|
}
|
652
652
|
);
|
653
|
-
},
|
654
|
-
const [e, t] =
|
653
|
+
}, Pa = window.wp.element.useCallback, Va = window.wp.element.useState, pp = () => {
|
654
|
+
const [e, t] = Va(!1), r = Pa(() => {
|
655
655
|
t((n) => !n);
|
656
656
|
}, []);
|
657
657
|
return {
|
658
658
|
isPreview: e,
|
659
659
|
setIsPreview: t,
|
660
660
|
PreviewControl: (n) => /* @__PURE__ */ m.jsx(
|
661
|
-
|
661
|
+
Oa,
|
662
662
|
{
|
663
663
|
checked: e,
|
664
664
|
onChange: r,
|
@@ -666,15 +666,15 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
666
666
|
}
|
667
667
|
)
|
668
668
|
};
|
669
|
-
},
|
670
|
-
const n =
|
671
|
-
return
|
669
|
+
}, ka = window.wp.element.useEffect, Br = window.wp.element.useRef, gp = ({ isEnabled: e, setupSlider: t, cleanCallback: r }, i = []) => {
|
670
|
+
const n = Br(null), a = Br(null);
|
671
|
+
return ka(() => (e && n?.current && (a.current = t(n.current)), () => {
|
672
672
|
a.current && (a.current?.destroy(), a.current = null, r && r());
|
673
673
|
}), [e, ...i]), {
|
674
674
|
sliderElRef: n,
|
675
675
|
sliderInstance: a.current
|
676
676
|
};
|
677
|
-
},
|
677
|
+
}, Wa = window.wp.data.useSelect, Na = (e, t) => Wa((r) => {
|
678
678
|
const { getBlock: i, getBlockParents: n, getSelectedBlock: a } = r("core/block-editor"), s = a();
|
679
679
|
if (!s)
|
680
680
|
return null;
|
@@ -692,14 +692,14 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
692
692
|
break;
|
693
693
|
}
|
694
694
|
return null;
|
695
|
-
}, [e, t]),
|
695
|
+
}, [e, t]), Da = window.wp.data.useSelect, Ma = (e = []) => Da((t) => {
|
696
696
|
const { getSettings: r } = t("core/block-editor"), i = r()?.colors || [];
|
697
697
|
if (e.length > 0) {
|
698
698
|
const n = new Map(i.map((a) => [a.slug, a]));
|
699
699
|
return e.map((a) => n.get(a)).filter(Boolean);
|
700
700
|
}
|
701
701
|
return i;
|
702
|
-
}, [e]),
|
702
|
+
}, [e]), Xa = window.wp.data.useSelect, bp = (e, t = []) => {
|
703
703
|
const {
|
704
704
|
postType: r,
|
705
705
|
curatedPostsIds: i,
|
@@ -708,7 +708,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
708
708
|
numberOfPosts: s = -1,
|
709
709
|
extraQueryArgs: o
|
710
710
|
} = e;
|
711
|
-
return
|
711
|
+
return Xa((u) => {
|
712
712
|
const c = {
|
713
713
|
per_page: s === -1 ? 100 : s,
|
714
714
|
order: "desc",
|
@@ -724,14 +724,14 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
724
724
|
isEmpty: g
|
725
725
|
};
|
726
726
|
}, t);
|
727
|
-
}, dn = window.wp.element.useCallback,
|
727
|
+
}, dn = window.wp.element.useCallback, Gr = window.wp.element.useEffect, Za = window.wp.element.useMemo, La = window.wp.element.useRef, hp = ({
|
728
728
|
itemId: e,
|
729
729
|
activeItemId: t,
|
730
730
|
setActiveItemId: r,
|
731
731
|
contentSelector: i,
|
732
732
|
heightObserverDeps: n = []
|
733
733
|
}) => {
|
734
|
-
const a =
|
734
|
+
const a = Za(() => e === t, [e, t]), s = La(null), o = dn(() => {
|
735
735
|
const l = s.current?.querySelector(i);
|
736
736
|
l && (l.style.maxHeight = l.scrollHeight + "px");
|
737
737
|
}, [i]), u = dn(() => {
|
@@ -740,9 +740,9 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
740
740
|
}, [i]), c = dn(() => {
|
741
741
|
r(a ? null : e);
|
742
742
|
}, [a, r]);
|
743
|
-
return
|
743
|
+
return Gr(() => {
|
744
744
|
a ? o() : u();
|
745
|
-
}, [a]),
|
745
|
+
}, [a]), Gr(() => {
|
746
746
|
if (!a || !s.current) return;
|
747
747
|
const l = new ResizeObserver((d) => {
|
748
748
|
for (const p of d)
|
@@ -756,23 +756,23 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
756
756
|
closeContent: u,
|
757
757
|
isActive: a
|
758
758
|
};
|
759
|
-
},
|
759
|
+
}, Ha = () => /* @__PURE__ */ m.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ m.jsx("path", { d: "m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z" }) }), ja = () => /* @__PURE__ */ m.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ m.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z" }) }), Ya = () => /* @__PURE__ */ m.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", children: [
|
760
760
|
/* @__PURE__ */ m.jsx("path", { d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z" }),
|
761
761
|
/* @__PURE__ */ m.jsx("path", { d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z" })
|
762
|
-
] }),
|
762
|
+
] }), za = () => /* @__PURE__ */ m.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ m.jsx("path", { d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z" }) }), Fr = () => /* @__PURE__ */ m.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", children: [
|
763
763
|
/* @__PURE__ */ m.jsx("path", { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
|
764
764
|
/* @__PURE__ */ m.jsx("path", { d: "m16.5 19.5h-9v-1.5h9z" })
|
765
|
-
] }),
|
765
|
+
] }), Or = () => /* @__PURE__ */ m.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", children: [
|
766
766
|
/* @__PURE__ */ m.jsx("path", { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
|
767
767
|
/* @__PURE__ */ m.jsx("path", { d: "m16.5 6h-9v-1.5h9z" })
|
768
|
-
] }),
|
769
|
-
const { insertBlock: r } =
|
768
|
+
] }), Ja = window.wp.data.useSelect, _a = window.wp.data.useDispatch, Ua = window.wp.data.select, Pr = window.wp.blockEditor.store, fn = window.wp.element.useLayoutEffect, $a = window.wp.element.useState, Qa = window.wp.components.Button, Ka = window.wp.blocks.createBlock, mp = (e, t) => {
|
769
|
+
const { insertBlock: r } = _a(Pr), {
|
770
770
|
tabs: i,
|
771
771
|
tabsCount: n,
|
772
772
|
tabsOrder: a,
|
773
773
|
selectedBlock: s,
|
774
774
|
selectedBlockClientId: o
|
775
|
-
} =
|
775
|
+
} = Ja(
|
776
776
|
(h) => {
|
777
777
|
const {
|
778
778
|
getBlock: b,
|
@@ -781,7 +781,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
781
781
|
getSelectedBlockClientId: x,
|
782
782
|
getBlockOrder: w,
|
783
783
|
getBlockRootClientId: C
|
784
|
-
} = h(
|
784
|
+
} = h(Pr);
|
785
785
|
return {
|
786
786
|
tabs: b(e)?.innerBlocks || [],
|
787
787
|
tabsCount: I(e),
|
@@ -791,21 +791,21 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
791
791
|
};
|
792
792
|
},
|
793
793
|
[e]
|
794
|
-
), [u, c] =
|
794
|
+
), [u, c] = $a(null);
|
795
795
|
fn(() => {
|
796
796
|
i.length > 0 && !u && c(i[0].clientId);
|
797
797
|
}, [i, u]);
|
798
|
-
const l =
|
798
|
+
const l = Na(t, e);
|
799
799
|
fn(() => {
|
800
800
|
l && c(l.clientId);
|
801
801
|
}, [l]), fn(() => {
|
802
802
|
if (!(s && s.name === t))
|
803
803
|
return;
|
804
804
|
const b = s;
|
805
|
-
|
805
|
+
Ua("core/block-editor").getBlockRootClientId(b.clientId) === e && c(b.clientId);
|
806
806
|
}, [s, t, e]);
|
807
807
|
const d = (h, b = {}, I = n) => {
|
808
|
-
const v =
|
808
|
+
const v = Ka(h, b);
|
809
809
|
return r(v, I, e), v;
|
810
810
|
}, p = () => {
|
811
811
|
const h = d(t);
|
@@ -821,10 +821,10 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
821
821
|
activeItemId: u,
|
822
822
|
setActiveItemId: c,
|
823
823
|
TabAppender: ({ label: h = "Add new tab", ...b }) => /* @__PURE__ */ m.jsx(
|
824
|
-
|
824
|
+
Qa,
|
825
825
|
{
|
826
826
|
className: "bc-add-new-child-btn",
|
827
|
-
icon:
|
827
|
+
icon: za,
|
828
828
|
label: h,
|
829
829
|
onClick: p,
|
830
830
|
...b
|
@@ -833,34 +833,34 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
833
833
|
onTabAppenderClick: p,
|
834
834
|
createTab: d
|
835
835
|
};
|
836
|
-
},
|
837
|
-
const r =
|
836
|
+
}, qa = window.wp.data.useSelect, es = window.wp.element.useMemo, vp = (e, t) => {
|
837
|
+
const r = qa(
|
838
838
|
(i) => i("core/blocks").getBlockTypes(),
|
839
839
|
[]
|
840
840
|
);
|
841
|
-
return
|
841
|
+
return es(
|
842
842
|
() => r?.filter((i) => {
|
843
843
|
const n = !!i?.parent, a = !!i?.ancestor, s = i?.parent && i.parent.includes(e), o = i?.ancestor && i.ancestor.includes(e);
|
844
844
|
return !t.includes(i.name) && (!n || s) && (!a || o);
|
845
845
|
})?.map((i) => i.name),
|
846
846
|
[r, t, e]
|
847
847
|
);
|
848
|
-
},
|
848
|
+
}, ts = window.wp.data.useSelect, pn = window.wp.blockEditor.store, Ip = (e) => ts(
|
849
849
|
(t) => {
|
850
850
|
const r = t(pn).getBlock(e), i = t(pn).getBlockRootClientId(e), n = i ? t(pn).getBlock(i) : null, a = n ? n.innerBlocks.findIndex((s) => s.clientId === e) : -1;
|
851
851
|
return { block: r, parentBlock: n, position: a };
|
852
852
|
},
|
853
853
|
[e]
|
854
|
-
),
|
855
|
-
const t =
|
854
|
+
), ns = window.wp.data.useSelect, rs = window.wp.element.useMemo, yp = (e) => {
|
855
|
+
const t = ns(
|
856
856
|
(r) => r("core/blocks").getBlockTypes(),
|
857
857
|
[]
|
858
858
|
);
|
859
|
-
return
|
859
|
+
return rs(
|
860
860
|
() => t?.filter((r) => e(r))?.map((r) => r.name),
|
861
861
|
[t, e]
|
862
862
|
);
|
863
|
-
},
|
863
|
+
}, os = window.wp.components.BaseControl, is = window.wp.components.ColorPalette, Cp = ({
|
864
864
|
label: e = "Color",
|
865
865
|
value: t,
|
866
866
|
attributeName: r,
|
@@ -868,7 +868,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
868
868
|
allowedColors: n,
|
869
869
|
...a
|
870
870
|
}) => {
|
871
|
-
const s =
|
871
|
+
const s = Ma(n), o = (u) => {
|
872
872
|
const c = s.find((l) => l.color === u);
|
873
873
|
i(u ? {
|
874
874
|
[r]: {
|
@@ -882,8 +882,8 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
882
882
|
}
|
883
883
|
});
|
884
884
|
};
|
885
|
-
return /* @__PURE__ */ m.jsx(
|
886
|
-
|
885
|
+
return /* @__PURE__ */ m.jsx(os, { label: e, children: /* @__PURE__ */ m.jsx(
|
886
|
+
is,
|
887
887
|
{
|
888
888
|
colors: s,
|
889
889
|
value: t,
|
@@ -892,10 +892,10 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
892
892
|
...a
|
893
893
|
}
|
894
894
|
) });
|
895
|
-
},
|
895
|
+
}, as = window.wp.blockEditor.MediaPlaceholder, ss = window.wp.blockEditor.MediaUpload, us = window.wp.blockEditor.MediaUploadCheck, Vr = window.wp.components.Button, kr = window.wp.components.Icon, xp = ({ imageId: e, imageUrl: t, imageAlt: r, svgCode: i, onSelect: n, onRemove: a }) => {
|
896
896
|
const s = e && t, o = s && i;
|
897
|
-
return /* @__PURE__ */ m.jsx(
|
898
|
-
|
897
|
+
return /* @__PURE__ */ m.jsx(us, { children: /* @__PURE__ */ m.jsx(
|
898
|
+
ss,
|
899
899
|
{
|
900
900
|
onSelect: n,
|
901
901
|
allowedTypes: ["image"],
|
@@ -910,15 +910,15 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
910
910
|
) : /* @__PURE__ */ m.jsx("img", { src: t, alt: r || "icon" })),
|
911
911
|
/* @__PURE__ */ m.jsxs("div", { className: "bc-image-wrapper__actions", children: [
|
912
912
|
/* @__PURE__ */ m.jsx(
|
913
|
-
|
913
|
+
Vr,
|
914
914
|
{
|
915
915
|
className: "bc-image-wrapper__btn bc-image-wrapper__replace-btn",
|
916
916
|
type: "button",
|
917
917
|
onClick: u,
|
918
918
|
children: /* @__PURE__ */ m.jsx(
|
919
|
-
|
919
|
+
kr,
|
920
920
|
{
|
921
|
-
icon:
|
921
|
+
icon: Ha,
|
922
922
|
size: 20,
|
923
923
|
className: "bc-image-wrapper__btn-icon"
|
924
924
|
}
|
@@ -926,15 +926,15 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
926
926
|
}
|
927
927
|
),
|
928
928
|
/* @__PURE__ */ m.jsx(
|
929
|
-
|
929
|
+
Vr,
|
930
930
|
{
|
931
931
|
className: "bc-image-wrapper__btn bc-image-wrapper__remove-btn",
|
932
932
|
type: "button",
|
933
933
|
onClick: a,
|
934
934
|
children: /* @__PURE__ */ m.jsx(
|
935
|
-
|
935
|
+
kr,
|
936
936
|
{
|
937
|
-
icon:
|
937
|
+
icon: ja,
|
938
938
|
size: 20,
|
939
939
|
className: "bc-image-wrapper__btn-icon"
|
940
940
|
}
|
@@ -944,7 +944,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
944
944
|
] }),
|
945
945
|
/* @__PURE__ */ m.jsx("div", { className: "bc-image-wrapper__overlay" })
|
946
946
|
] }) : /* @__PURE__ */ m.jsx(
|
947
|
-
|
947
|
+
as,
|
948
948
|
{
|
949
949
|
icon: "format-image",
|
950
950
|
onSelect: n,
|
@@ -954,7 +954,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
954
954
|
)
|
955
955
|
}
|
956
956
|
) });
|
957
|
-
},
|
957
|
+
}, cs = window.wp.blockEditor.MediaUpload, ls = window.wp.blockEditor.MediaUploadCheck, ds = window.wp.blockEditor.MediaPlaceholder, Wr = window.wp.components.Button, wp = ({
|
958
958
|
imageId: e,
|
959
959
|
imageUrl: t,
|
960
960
|
imageAlt: r,
|
@@ -964,8 +964,8 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
964
964
|
className: s = ""
|
965
965
|
}) => {
|
966
966
|
const o = e && t;
|
967
|
-
return /* @__PURE__ */ m.jsx(
|
968
|
-
|
967
|
+
return /* @__PURE__ */ m.jsx(ls, { children: /* @__PURE__ */ m.jsx(
|
968
|
+
cs,
|
969
969
|
{
|
970
970
|
onSelect: n,
|
971
971
|
allowedTypes: ["image"],
|
@@ -974,7 +974,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
974
974
|
/* @__PURE__ */ m.jsx("img", { src: t, alt: r, onClick: u }),
|
975
975
|
/* @__PURE__ */ m.jsxs("div", { className: "bc-image-wrapper__actions", children: [
|
976
976
|
/* @__PURE__ */ m.jsx(
|
977
|
-
|
977
|
+
Wr,
|
978
978
|
{
|
979
979
|
className: "bc-image-wrapper__btn bc-image-wrapper__replace-btn",
|
980
980
|
type: "button",
|
@@ -983,7 +983,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
983
983
|
}
|
984
984
|
),
|
985
985
|
/* @__PURE__ */ m.jsx(
|
986
|
-
|
986
|
+
Wr,
|
987
987
|
{
|
988
988
|
className: "bc-image-wrapper__btn bc-image-wrapper__remove-btn",
|
989
989
|
type: "button",
|
@@ -994,7 +994,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
994
994
|
] }),
|
995
995
|
/* @__PURE__ */ m.jsx("div", { className: "bc-image-wrapper__overlay" })
|
996
996
|
] }) : i ? /* @__PURE__ */ m.jsx(
|
997
|
-
|
997
|
+
ds,
|
998
998
|
{
|
999
999
|
className: "media-placeholder",
|
1000
1000
|
icon: "format-image",
|
@@ -1008,16 +1008,16 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1008
1008
|
) : null
|
1009
1009
|
}
|
1010
1010
|
) });
|
1011
|
-
},
|
1012
|
-
|
1013
|
-
},
|
1011
|
+
}, Nr = /* @__PURE__ */ new Set(), fs = (e) => {
|
1012
|
+
Nr.has(e) || (console.warn(e), Nr.add(e));
|
1013
|
+
}, ps = window.wp.components.BaseControl, gs = window.wp.components.CheckboxControl, bs = window.wp.blockEditor.URLInput, Ap = ({
|
1014
1014
|
url: e = { value: "#", attrName: "linkSource" },
|
1015
1015
|
isOpenInNewTab: t = { value: !1, attrName: "linkIsOpenInNewTab" },
|
1016
1016
|
setAttributes: r,
|
1017
1017
|
label: i = "Source"
|
1018
|
-
}) => (
|
1019
|
-
/* @__PURE__ */ m.jsx(
|
1020
|
-
|
1018
|
+
}) => (fs("Warning: LinkControl is deprecated since version 0.4.1 and will be removed in future versions. Please use native one instead."), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
1019
|
+
/* @__PURE__ */ m.jsx(ps, { label: i, children: /* @__PURE__ */ m.jsx(
|
1020
|
+
bs,
|
1021
1021
|
{
|
1022
1022
|
className: "bc-url-input",
|
1023
1023
|
value: e.value,
|
@@ -1025,16 +1025,16 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1025
1025
|
}
|
1026
1026
|
) }),
|
1027
1027
|
/* @__PURE__ */ m.jsx(
|
1028
|
-
|
1028
|
+
gs,
|
1029
1029
|
{
|
1030
1030
|
checked: t.value,
|
1031
1031
|
label: "Open in a new tab",
|
1032
1032
|
onChange: (n) => r({ [t.attrName]: n })
|
1033
1033
|
}
|
1034
1034
|
)
|
1035
|
-
] })),
|
1035
|
+
] })), hs = window.wp.hooks.addFilter, ms = window.wp.hooks.removeFilter, Dr = {
|
1036
1036
|
add(e) {
|
1037
|
-
|
1037
|
+
hs(
|
1038
1038
|
"blocks.registerBlockType",
|
1039
1039
|
"ssm/set-root-block",
|
1040
1040
|
(t, r) => {
|
@@ -1044,27 +1044,27 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1044
1044
|
);
|
1045
1045
|
},
|
1046
1046
|
remove() {
|
1047
|
-
|
1047
|
+
ms("blocks.registerBlockType", "ssm/set-root-block");
|
1048
1048
|
}
|
1049
|
-
},
|
1049
|
+
}, vs = window.wp.hooks.addFilter, Is = window.wp.hooks.removeFilter, Mr = {
|
1050
1050
|
add(e) {
|
1051
|
-
|
1051
|
+
vs(
|
1052
1052
|
"blocks.registerBlockType",
|
1053
1053
|
"ssm/unset-root-block",
|
1054
1054
|
(t) => (t.ancestor && t.ancestor.includes(e) && (t.ancestor = null), t)
|
1055
1055
|
);
|
1056
1056
|
},
|
1057
1057
|
remove() {
|
1058
|
-
|
1058
|
+
Is("blocks.registerBlockType", "ssm/unset-root-block");
|
1059
1059
|
}
|
1060
|
-
},
|
1060
|
+
}, ys = window.wp.hooks.addFilter, Cs = window.wp.hooks.removeFilter, xs = window.wp.blocks.getBlockTypes, ws = {
|
1061
1061
|
add({ rootBlockName: e }) {
|
1062
|
-
|
1062
|
+
ys(
|
1063
1063
|
"blocks.registerBlockType",
|
1064
1064
|
"ssm/root-block-visibility",
|
1065
1065
|
(t, r) => {
|
1066
1066
|
const i = r === e, n = !!t?.allowedBlocks, a = !!t?.parent;
|
1067
|
-
return i || a || n || (t.allowedBlocks =
|
1067
|
+
return i || a || n || (t.allowedBlocks = xs()?.filter((s) => {
|
1068
1068
|
const o = s.name === e, u = !!s?.parent;
|
1069
1069
|
return !o && !u;
|
1070
1070
|
})?.map((s) => s.name)), t;
|
@@ -1072,15 +1072,15 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1072
1072
|
);
|
1073
1073
|
},
|
1074
1074
|
remove() {
|
1075
|
-
|
1075
|
+
Cs("blocks.registerBlockType", "ssm/root-block-visibility");
|
1076
1076
|
}
|
1077
|
-
},
|
1078
|
-
const e = document.querySelector(
|
1077
|
+
}, Xr = ".is-root-container", $n = () => {
|
1078
|
+
const e = document.querySelector(Xr);
|
1079
1079
|
if (e)
|
1080
1080
|
return e;
|
1081
1081
|
const t = document.querySelector(".block-editor iframe");
|
1082
|
-
return (t?.contentDocument || t?.contentWindow?.document)?.querySelector(
|
1083
|
-
},
|
1082
|
+
return (t?.contentDocument || t?.contentWindow?.document)?.querySelector(Xr) || null;
|
1083
|
+
}, As = (e = 10, t = 500) => new Promise((r, i) => {
|
1084
1084
|
let n = 0;
|
1085
1085
|
const a = () => {
|
1086
1086
|
const s = $n();
|
@@ -1089,34 +1089,34 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1089
1089
|
n <= e ? (n++, setTimeout(a, t)) : i(new Error("Root container not found after max attempts."));
|
1090
1090
|
};
|
1091
1091
|
a();
|
1092
|
-
}),
|
1092
|
+
}), Es = window.wp.blocks.createBlock, Ss = window.wp.data.dispatch, $o = ".root-block-appender", Ts = (e, t, r) => {
|
1093
1093
|
const i = document.createElement("button");
|
1094
1094
|
return i.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><path d="M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"></path></svg>', i.className = "components-button block-editor-button-block-appender root-block-appender", i.setAttribute("aria-label", r), i.setAttribute("data-tooltip", r), i.addEventListener("click", () => {
|
1095
|
-
|
1096
|
-
}), e.prepend(i), !!e.querySelector(
|
1097
|
-
},
|
1095
|
+
Ss("core/block-editor").insertBlock(Es(t));
|
1096
|
+
}), e.prepend(i), !!e.querySelector($o);
|
1097
|
+
}, Rs = (e, t = "Add Row") => {
|
1098
1098
|
const r = $n();
|
1099
|
-
r ?
|
1100
|
-
},
|
1099
|
+
r ? Ts(r, e, t) : console.error("Root container is not found.");
|
1100
|
+
}, Bs = () => {
|
1101
1101
|
const e = $n();
|
1102
1102
|
if (e) {
|
1103
|
-
const t = e.querySelector(
|
1103
|
+
const t = e.querySelector($o);
|
1104
1104
|
t ? t.remove() : console.error("Root block appender is not found.");
|
1105
1105
|
} else
|
1106
1106
|
console.error("Root container is not found.");
|
1107
|
-
},
|
1107
|
+
}, Zr = window.wp.data.dispatch, Gs = window.wp.data.select, Fs = window.wp.data.subscribe, Ep = (e, t = ["page", "post"], r, i = [ws], n = !0, a = "Add Row") => {
|
1108
1108
|
let s = !1;
|
1109
|
-
|
1110
|
-
console.log("Root Container found."),
|
1111
|
-
const o =
|
1112
|
-
t.includes(o) && !s ? (s = !0,
|
1109
|
+
As().then(() => {
|
1110
|
+
console.log("Root Container found."), Fs(() => {
|
1111
|
+
const o = Gs("core/editor").getCurrentPostType();
|
1112
|
+
t.includes(o) && !s ? (s = !0, Dr.add(e), Mr.remove(), i?.length > 0 && (i.forEach((u) => u.add({ rootBlockName: e, isRootBlockEnabled: s, currentPostType: o })), Zr("core/blocks").reapplyBlockTypeFilters()), r && r({ isRootBlockEnabled: s, currentPostType: o }), n && Rs(e, a)) : !t.includes(o) && s && (s = !1, Dr.remove(), Mr.add(e), i?.length > 0 && (i.forEach((u) => u.remove({ rootBlockName: e, isRootBlockEnabled: s, currentPostType: o })), Zr("core/blocks").reapplyBlockTypeFilters()), r && r({ isRootBlockEnabled: s, currentPostType: o }), n && Bs());
|
1113
1113
|
}, "core/block-editor");
|
1114
1114
|
});
|
1115
|
-
},
|
1115
|
+
}, Qo = "ssm-hide-root-block-for-inline-inserter", Sp = (e) => {
|
1116
1116
|
const t = `[id*="-block-${e}"] { display: none !important; }`, r = document.createElement("style");
|
1117
|
-
r.id =
|
1117
|
+
r.id = Qo, r.appendChild(document.createTextNode(t)), document.head.appendChild(r);
|
1118
1118
|
}, Tp = (e) => {
|
1119
|
-
const t = document.getElementById(
|
1119
|
+
const t = document.getElementById(Qo);
|
1120
1120
|
t && document.head.removeChild(t);
|
1121
1121
|
}, Rp = {
|
1122
1122
|
linkLabel: {
|
@@ -1131,7 +1131,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1131
1131
|
type: "boolean",
|
1132
1132
|
default: !1
|
1133
1133
|
}
|
1134
|
-
},
|
1134
|
+
}, Ko = (e = "media") => ({
|
1135
1135
|
[`${e}`]: {
|
1136
1136
|
type: "object",
|
1137
1137
|
default: {
|
@@ -1153,12 +1153,12 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1153
1153
|
default: "Description"
|
1154
1154
|
}
|
1155
1155
|
}, Gp = (e = "animationFile") => ({
|
1156
|
-
|
1156
|
+
...Ko(e),
|
1157
1157
|
isAnimationLooped: {
|
1158
1158
|
type: "boolean",
|
1159
1159
|
default: !0
|
1160
1160
|
}
|
1161
|
-
}),
|
1161
|
+
}), Os = {
|
1162
1162
|
curatedPosts: {
|
1163
1163
|
type: "array",
|
1164
1164
|
default: [],
|
@@ -1174,7 +1174,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1174
1174
|
}
|
1175
1175
|
}
|
1176
1176
|
}
|
1177
|
-
},
|
1177
|
+
}, Ps = {
|
1178
1178
|
curatedCategories: {
|
1179
1179
|
type: "array",
|
1180
1180
|
default: [],
|
@@ -1190,7 +1190,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1190
1190
|
}
|
1191
1191
|
}
|
1192
1192
|
}
|
1193
|
-
},
|
1193
|
+
}, Vs = {
|
1194
1194
|
numberOfPosts: {
|
1195
1195
|
type: "number",
|
1196
1196
|
default: 5
|
@@ -1208,11 +1208,11 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1208
1208
|
], s.default = t[0].value), {
|
1209
1209
|
dataSource: a,
|
1210
1210
|
queryType: s,
|
1211
|
-
...r ?
|
1212
|
-
...i ?
|
1213
|
-
...n ?
|
1211
|
+
...r ? Os : {},
|
1212
|
+
...i ? Ps : {},
|
1213
|
+
...n ? Vs : {}
|
1214
1214
|
};
|
1215
|
-
},
|
1215
|
+
}, Op = ({
|
1216
1216
|
hasBackgroundMedia: e = !1,
|
1217
1217
|
mediaAttributeName: t = "media",
|
1218
1218
|
hasOverlay: r = !1
|
@@ -1224,7 +1224,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1224
1224
|
backgroundMediaType: {
|
1225
1225
|
type: "string"
|
1226
1226
|
},
|
1227
|
-
|
1227
|
+
...Ko(t)
|
1228
1228
|
};
|
1229
1229
|
return {
|
1230
1230
|
backgroundColor: {
|
@@ -1240,7 +1240,7 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1240
1240
|
}
|
1241
1241
|
} : {}
|
1242
1242
|
};
|
1243
|
-
},
|
1243
|
+
}, Pp = {
|
1244
1244
|
spacing: {
|
1245
1245
|
type: "object",
|
1246
1246
|
default: {
|
@@ -1297,17 +1297,17 @@ const Ta = window.wp.components.ToggleControl, Ra = "Enable Preview", Ba = "Plea
|
|
1297
1297
|
IMAGE: "image",
|
1298
1298
|
VIDEO: "video",
|
1299
1299
|
ANIMATION: "animation"
|
1300
|
-
},
|
1300
|
+
}, Lr = {
|
1301
1301
|
[Ne.IMAGE]: "Image",
|
1302
1302
|
[Ne.VIDEO]: "Video",
|
1303
1303
|
[Ne.ANIMATION]: "Animation"
|
1304
1304
|
};
|
1305
|
-
var Wt = { exports: {} },
|
1306
|
-
function
|
1307
|
-
return
|
1305
|
+
var Wt = { exports: {} }, ks = Wt.exports, Hr;
|
1306
|
+
function Ws() {
|
1307
|
+
return Hr || (Hr = 1, function(e, t) {
|
1308
1308
|
(function(r, i, n) {
|
1309
1309
|
e.exports = n(), e.exports.default = n();
|
1310
|
-
})("slugify",
|
1310
|
+
})("slugify", ks, function() {
|
1311
1311
|
var r = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`), i = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
1312
1312
|
function n(a, s) {
|
1313
1313
|
if (typeof a != "string")
|
@@ -1325,17 +1325,17 @@ function Vs() {
|
|
1325
1325
|
});
|
1326
1326
|
}(Wt)), Wt.exports;
|
1327
1327
|
}
|
1328
|
-
var
|
1329
|
-
const
|
1328
|
+
var Ns = Ws();
|
1329
|
+
const Ds = /* @__PURE__ */ Qt(Ns);
|
1330
1330
|
var gn = { exports: {} };
|
1331
1331
|
/*!
|
1332
1332
|
Copyright (c) 2018 Jed Watson.
|
1333
1333
|
Licensed under the MIT License (MIT), see
|
1334
1334
|
http://jedwatson.github.io/classnames
|
1335
1335
|
*/
|
1336
|
-
var
|
1337
|
-
function
|
1338
|
-
return
|
1336
|
+
var jr;
|
1337
|
+
function Ms() {
|
1338
|
+
return jr || (jr = 1, function(e) {
|
1339
1339
|
(function() {
|
1340
1340
|
var t = {}.hasOwnProperty;
|
1341
1341
|
function r() {
|
@@ -1366,8 +1366,8 @@ function Ns() {
|
|
1366
1366
|
})();
|
1367
1367
|
}(gn)), gn.exports;
|
1368
1368
|
}
|
1369
|
-
var
|
1370
|
-
const
|
1369
|
+
var Xs = Ms();
|
1370
|
+
const qo = /* @__PURE__ */ Qt(Xs), Zs = window.wp.hooks.filters, Ls = window.wp.apiFetch, ei = window.wp.data.select, ti = window.wp.data.subscribe, Qn = window.wp.blocks.getBlockType, Hs = window.wp.blocks.registerBlockType, Kn = window.wp.blocks.unregisterBlockType, Yr = async (e, t, r = null, i = {}) => {
|
1371
1371
|
const a = { ...{
|
1372
1372
|
per_page: -1,
|
1373
1373
|
status: "publish",
|
@@ -1375,7 +1375,7 @@ const Qo = /* @__PURE__ */ Qt(Ds), Ms = window.wp.hooks.filters, Xs = window.wp.
|
|
1375
1375
|
order: "asc"
|
1376
1376
|
}, ...i };
|
1377
1377
|
e && e.trim() && (a.search = e);
|
1378
|
-
const s = new URLSearchParams(a).toString(), o = await
|
1378
|
+
const s = new URLSearchParams(a).toString(), o = await Ls({
|
1379
1379
|
path: `/wp/v2/${t}?${s}`
|
1380
1380
|
});
|
1381
1381
|
return r ? o?.map(r) : o?.map((u) => {
|
@@ -1385,7 +1385,7 @@ const Qo = /* @__PURE__ */ Qt(Ds), Ms = window.wp.hooks.filters, Xs = window.wp.
|
|
1385
1385
|
label: c.textContent || c.innerText || ""
|
1386
1386
|
};
|
1387
1387
|
});
|
1388
|
-
}, Wp = (e) =>
|
1388
|
+
}, Wp = (e) => Ds(e, {
|
1389
1389
|
replacement: "-",
|
1390
1390
|
lower: !0,
|
1391
1391
|
strict: !0
|
@@ -1426,38 +1426,54 @@ const Qo = /* @__PURE__ */ Qt(Ds), Ms = window.wp.hooks.filters, Xs = window.wp.
|
|
1426
1426
|
}, Ys = (e) => {
|
1427
1427
|
const t = document.createElement("div");
|
1428
1428
|
return t.innerHTML = e, t.textContent || t.innerText || "";
|
1429
|
-
}, Xp = (e,
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1429
|
+
}, Xp = (e, {
|
1430
|
+
desktopPrefix: t = "md:",
|
1431
|
+
mobilePrefix: r = "",
|
1432
|
+
valuePrefix: i = ""
|
1433
|
+
} = {}) => {
|
1434
|
+
const a = (s, o, u, c) => c === -1 ? null : `${s}${o}-${u}${c}`;
|
1435
|
+
return qo(
|
1436
|
+
a(t, "mt", i, e?.desktop?.margin?.top),
|
1437
|
+
a(t, "mb", i, e?.desktop?.margin?.bottom),
|
1438
|
+
a(t, "pt", i, e?.desktop?.padding?.top),
|
1439
|
+
a(t, "pb", i, e?.desktop?.padding?.bottom),
|
1440
|
+
a(r, "mt", i, e?.mobile?.margin?.top),
|
1441
|
+
a(r, "mb", i, e?.mobile?.margin?.bottom),
|
1442
|
+
a(r, "pt", i, e?.mobile?.padding?.top),
|
1443
|
+
a(r, "pb", i, e?.mobile?.padding?.bottom)
|
1444
|
+
);
|
1445
|
+
}, Zp = (e) => {
|
1439
1446
|
const t = [];
|
1440
|
-
return Object.entries(
|
1447
|
+
return Object.entries(Zs).forEach(([r, i]) => {
|
1441
1448
|
(i.handlers || []).forEach((a) => {
|
1442
1449
|
a.namespace.startsWith(e) && t.push({ filterName: r, namespace: a.namespace });
|
1443
1450
|
});
|
1444
1451
|
}), t;
|
1445
1452
|
}, Lp = (e, t) => {
|
1446
|
-
const r =
|
1453
|
+
const r = ti(
|
1454
|
+
() => {
|
1455
|
+
const i = ei("core/editor").getCurrentPostType();
|
1456
|
+
i && i !== t && Qn(e) && (Kn(e), r());
|
1457
|
+
},
|
1458
|
+
"core/editor"
|
1459
|
+
);
|
1460
|
+
}, Hp = (e, t) => {
|
1461
|
+
const r = ti(
|
1447
1462
|
() => {
|
1448
|
-
|
1463
|
+
const i = ei("core/editor").getCurrentPostType();
|
1464
|
+
i && i === t && Qn(e) && (Kn(e), r());
|
1449
1465
|
},
|
1450
1466
|
"core/editor"
|
1451
1467
|
);
|
1452
1468
|
};
|
1453
|
-
function
|
1454
|
-
const r =
|
1455
|
-
r && (
|
1469
|
+
function jp(e, t = 3) {
|
1470
|
+
const r = Qn(e);
|
1471
|
+
r && (Kn(e), Hs(e, {
|
1456
1472
|
...r,
|
1457
1473
|
apiVersion: t
|
1458
1474
|
}));
|
1459
1475
|
}
|
1460
|
-
const
|
1476
|
+
const Yp = (e) => {
|
1461
1477
|
if (!e)
|
1462
1478
|
return { objectPosition: "50% 50%" };
|
1463
1479
|
const t = e.x !== void 0 && e.x !== null ? e.x * 100 : 50, r = e.y !== void 0 && e.y !== null ? e.y * 100 : 50;
|
@@ -1478,13 +1494,13 @@ function zs(e) {
|
|
1478
1494
|
var Js = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], _s = /[^A-Z0-9]+/gi;
|
1479
1495
|
function Us(e, t) {
|
1480
1496
|
t === void 0 && (t = {});
|
1481
|
-
for (var r = t.splitRegexp, i = r === void 0 ? Js : r, n = t.stripRegexp, a = n === void 0 ? _s : n, s = t.transform, o = s === void 0 ? zs : s, u = t.delimiter, c = u === void 0 ? " " : u, l =
|
1497
|
+
for (var r = t.splitRegexp, i = r === void 0 ? Js : r, n = t.stripRegexp, a = n === void 0 ? _s : n, s = t.transform, o = s === void 0 ? zs : s, u = t.delimiter, c = u === void 0 ? " " : u, l = zr(zr(e, i, "$1\0$2"), a, "\0"), d = 0, p = l.length; l.charAt(d) === "\0"; )
|
1482
1498
|
d++;
|
1483
1499
|
for (; l.charAt(p - 1) === "\0"; )
|
1484
1500
|
p--;
|
1485
1501
|
return l.slice(d, p).split("\0").map(o).join(c);
|
1486
1502
|
}
|
1487
|
-
function
|
1503
|
+
function zr(e, t, r) {
|
1488
1504
|
return t instanceof RegExp ? e.replace(t, r) : t.reduce(function(i, n) {
|
1489
1505
|
return i.replace(n, r);
|
1490
1506
|
}, e);
|
@@ -1505,7 +1521,7 @@ function Ks(e, t) {
|
|
1505
1521
|
const qs = (e, t) => {
|
1506
1522
|
const r = t.displayName || t.name || "Component";
|
1507
1523
|
return `${Qs(e)}(${r})`;
|
1508
|
-
}, eu = window.wp.data.dispatch, tu = window.wp.data.select, nu = window.wp.data.useSelect, ru = window.wp.element.useEffect, ou = window.wp.hooks.addFilter,
|
1524
|
+
}, eu = window.wp.data.dispatch, tu = window.wp.data.select, nu = window.wp.data.useSelect, ru = window.wp.element.useEffect, ou = window.wp.hooks.addFilter, zp = (e) => {
|
1509
1525
|
const t = Ks((r) => (i) => {
|
1510
1526
|
const { clientId: n, attributes: a, name: s } = i;
|
1511
1527
|
if (s !== e)
|
@@ -1599,7 +1615,7 @@ const qs = (e, t) => {
|
|
1599
1615
|
removeButtonLabel: s = "Remove File"
|
1600
1616
|
}) => e && t ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
1601
1617
|
/* @__PURE__ */ m.jsxs("div", { className: "bc-animation-block-json-file", onClick: i, children: [
|
1602
|
-
/* @__PURE__ */ m.jsx(au, { icon:
|
1618
|
+
/* @__PURE__ */ m.jsx(au, { icon: Ya, size: 36 }),
|
1603
1619
|
/* @__PURE__ */ m.jsx("span", { children: r })
|
1604
1620
|
] }),
|
1605
1621
|
/* @__PURE__ */ m.jsx(
|
@@ -1612,7 +1628,7 @@ const qs = (e, t) => {
|
|
1612
1628
|
children: s
|
1613
1629
|
}
|
1614
1630
|
)
|
1615
|
-
] }) : /* @__PURE__ */ m.jsx(ot, { variant: "secondary", onClick: i, children: a }),
|
1631
|
+
] }) : /* @__PURE__ */ m.jsx(ot, { variant: "secondary", onClick: i, children: a }), ni = ({
|
1616
1632
|
type: e = Ne.IMAGE,
|
1617
1633
|
label: t,
|
1618
1634
|
mediaId: r,
|
@@ -1736,19 +1752,19 @@ function lu(e, t) {
|
|
1736
1752
|
}
|
1737
1753
|
return (t === "string" ? String : Number)(e);
|
1738
1754
|
}
|
1739
|
-
function
|
1755
|
+
function ri(e) {
|
1740
1756
|
var t = lu(e, "string");
|
1741
1757
|
return _e(t) == "symbol" ? t : t + "";
|
1742
1758
|
}
|
1743
1759
|
function ne(e, t, r) {
|
1744
|
-
return (t =
|
1760
|
+
return (t = ri(t)) in e ? Object.defineProperty(e, t, {
|
1745
1761
|
value: r,
|
1746
1762
|
enumerable: !0,
|
1747
1763
|
configurable: !0,
|
1748
1764
|
writable: !0
|
1749
1765
|
}) : e[t] = r, e;
|
1750
1766
|
}
|
1751
|
-
function
|
1767
|
+
function Jr(e, t) {
|
1752
1768
|
var r = Object.keys(e);
|
1753
1769
|
if (Object.getOwnPropertySymbols) {
|
1754
1770
|
var i = Object.getOwnPropertySymbols(e);
|
@@ -1761,9 +1777,9 @@ function Yr(e, t) {
|
|
1761
1777
|
function V(e) {
|
1762
1778
|
for (var t = 1; t < arguments.length; t++) {
|
1763
1779
|
var r = arguments[t] != null ? arguments[t] : {};
|
1764
|
-
t % 2 ?
|
1780
|
+
t % 2 ? Jr(Object(r), !0).forEach(function(i) {
|
1765
1781
|
ne(e, i, r[i]);
|
1766
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
1782
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Jr(Object(r)).forEach(function(i) {
|
1767
1783
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i));
|
1768
1784
|
});
|
1769
1785
|
}
|
@@ -1772,14 +1788,14 @@ function V(e) {
|
|
1772
1788
|
function at(e, t) {
|
1773
1789
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
1774
1790
|
}
|
1775
|
-
function
|
1791
|
+
function _r(e, t) {
|
1776
1792
|
for (var r = 0; r < t.length; r++) {
|
1777
1793
|
var i = t[r];
|
1778
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e,
|
1794
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, ri(i.key), i);
|
1779
1795
|
}
|
1780
1796
|
}
|
1781
1797
|
function st(e, t, r) {
|
1782
|
-
return t &&
|
1798
|
+
return t && _r(e.prototype, t), r && _r(e, r), Object.defineProperty(e, "prototype", {
|
1783
1799
|
writable: !1
|
1784
1800
|
}), e;
|
1785
1801
|
}
|
@@ -1805,13 +1821,13 @@ function Ue(e) {
|
|
1805
1821
|
return t.__proto__ || Object.getPrototypeOf(t);
|
1806
1822
|
}, Ue(e);
|
1807
1823
|
}
|
1808
|
-
function
|
1824
|
+
function oi() {
|
1809
1825
|
try {
|
1810
1826
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
1811
1827
|
}));
|
1812
1828
|
} catch {
|
1813
1829
|
}
|
1814
|
-
return (
|
1830
|
+
return (oi = function() {
|
1815
1831
|
return !!e;
|
1816
1832
|
})();
|
1817
1833
|
}
|
@@ -1825,7 +1841,7 @@ function qt(e, t) {
|
|
1825
1841
|
return Q(e);
|
1826
1842
|
}
|
1827
1843
|
function du(e) {
|
1828
|
-
var t =
|
1844
|
+
var t = oi();
|
1829
1845
|
return function() {
|
1830
1846
|
var r, i = Ue(e);
|
1831
1847
|
if (t) {
|
@@ -1846,7 +1862,7 @@ function fu(e) {
|
|
1846
1862
|
function pu(e) {
|
1847
1863
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
1848
1864
|
}
|
1849
|
-
function
|
1865
|
+
function ii(e, t) {
|
1850
1866
|
if (e) {
|
1851
1867
|
if (typeof e == "string") return Mn(e, t);
|
1852
1868
|
var r = {}.toString.call(e).slice(8, -1);
|
@@ -1857,8 +1873,8 @@ function gu() {
|
|
1857
1873
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
1858
1874
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
1859
1875
|
}
|
1860
|
-
function
|
1861
|
-
return fu(e) || pu(e) ||
|
1876
|
+
function qn(e) {
|
1877
|
+
return fu(e) || pu(e) || ii(e) || gu();
|
1862
1878
|
}
|
1863
1879
|
function bu(e) {
|
1864
1880
|
if (e.sheet)
|
@@ -1900,11 +1916,11 @@ var mu = /* @__PURE__ */ function() {
|
|
1900
1916
|
return (n = i.parentNode) == null ? void 0 : n.removeChild(i);
|
1901
1917
|
}), this.tags = [], this.ctr = 0;
|
1902
1918
|
}, e;
|
1903
|
-
}(), we = "-ms-", Ht = "-moz-", ie = "-webkit-",
|
1919
|
+
}(), we = "-ms-", Ht = "-moz-", ie = "-webkit-", ai = "comm", er = "rule", tr = "decl", vu = "@import", si = "@keyframes", Iu = "@layer", yu = Math.abs, en = String.fromCharCode, Cu = Object.assign;
|
1904
1920
|
function xu(e, t) {
|
1905
1921
|
return ye(e, 0) ^ 45 ? (((t << 2 ^ ye(e, 0)) << 2 ^ ye(e, 1)) << 2 ^ ye(e, 2)) << 2 ^ ye(e, 3) : 0;
|
1906
1922
|
}
|
1907
|
-
function
|
1923
|
+
function ui(e) {
|
1908
1924
|
return e.trim();
|
1909
1925
|
}
|
1910
1926
|
function wu(e, t) {
|
@@ -1925,7 +1941,7 @@ function ht(e, t, r) {
|
|
1925
1941
|
function ke(e) {
|
1926
1942
|
return e.length;
|
1927
1943
|
}
|
1928
|
-
function
|
1944
|
+
function nr(e) {
|
1929
1945
|
return e.length;
|
1930
1946
|
}
|
1931
1947
|
function St(e, t) {
|
@@ -1934,7 +1950,7 @@ function St(e, t) {
|
|
1934
1950
|
function Au(e, t) {
|
1935
1951
|
return e.map(t).join("");
|
1936
1952
|
}
|
1937
|
-
var tn = 1, it = 1,
|
1953
|
+
var tn = 1, it = 1, ci = 0, Re = 0, ve = 0, ut = "";
|
1938
1954
|
function nn(e, t, r, i, n, a, s) {
|
1939
1955
|
return { value: e, root: t, parent: r, type: i, props: n, children: a, line: tn, column: it, length: s, return: "" };
|
1940
1956
|
}
|
@@ -1948,7 +1964,7 @@ function Su() {
|
|
1948
1964
|
return ve = Re > 0 ? ye(ut, --Re) : 0, it--, ve === 10 && (it = 1, tn--), ve;
|
1949
1965
|
}
|
1950
1966
|
function Ge() {
|
1951
|
-
return ve = Re <
|
1967
|
+
return ve = Re < ci ? ye(ut, Re++) : 0, it++, ve === 10 && (it = 1, tn++), ve;
|
1952
1968
|
}
|
1953
1969
|
function De() {
|
1954
1970
|
return ye(ut, Re);
|
@@ -1997,14 +2013,14 @@ function mt(e) {
|
|
1997
2013
|
}
|
1998
2014
|
return 0;
|
1999
2015
|
}
|
2000
|
-
function
|
2001
|
-
return tn = it = 1,
|
2016
|
+
function li(e) {
|
2017
|
+
return tn = it = 1, ci = ke(ut = e), Re = 0, [];
|
2002
2018
|
}
|
2003
|
-
function
|
2019
|
+
function di(e) {
|
2004
2020
|
return ut = "", e;
|
2005
2021
|
}
|
2006
2022
|
function Dt(e) {
|
2007
|
-
return
|
2023
|
+
return ui(It(Re - 1, Zn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
2008
2024
|
}
|
2009
2025
|
function Tu(e) {
|
2010
2026
|
for (; (ve = De()) && ve < 33; )
|
@@ -2050,7 +2066,7 @@ function Gu(e) {
|
|
2050
2066
|
return It(e, Re);
|
2051
2067
|
}
|
2052
2068
|
function Fu(e) {
|
2053
|
-
return
|
2069
|
+
return di(Mt("", null, null, null, [""], e = li(e), 0, [0], e));
|
2054
2070
|
}
|
2055
2071
|
function Mt(e, t, r, i, n, a, s, o, u) {
|
2056
2072
|
for (var c = 0, l = 0, d = s, p = 0, g = 0, h = 0, b = 1, I = 1, v = 1, x = 0, w = "", C = n, y = a, T = i, E = w; I; )
|
@@ -2083,7 +2099,7 @@ function Mt(e, t, r, i, n, a, s, o, u) {
|
|
2083
2099
|
switch (De()) {
|
2084
2100
|
case 42:
|
2085
2101
|
case 47:
|
2086
|
-
St(
|
2102
|
+
St(Ou(Bu(Ge(), Nt()), t, r), u);
|
2087
2103
|
break;
|
2088
2104
|
default:
|
2089
2105
|
E += "/";
|
@@ -2103,14 +2119,14 @@ function Mt(e, t, r, i, n, a, s, o, u) {
|
|
2103
2119
|
I = 0;
|
2104
2120
|
// ;
|
2105
2121
|
case 59 + l:
|
2106
|
-
v == -1 && (E = ae(E, /\f/g, "")), g > 0 && ke(E) - d && St(g > 32 ?
|
2122
|
+
v == -1 && (E = ae(E, /\f/g, "")), g > 0 && ke(E) - d && St(g > 32 ? $r(E + ";", i, r, d - 1) : $r(ae(E, " ", "") + ";", i, r, d - 2), u);
|
2107
2123
|
break;
|
2108
2124
|
// @ ;
|
2109
2125
|
case 59:
|
2110
2126
|
E += ";";
|
2111
2127
|
// { rule/at-rule
|
2112
2128
|
default:
|
2113
|
-
if (St(T =
|
2129
|
+
if (St(T = Ur(E, t, r, c, l, n, o, w, C = [], y = [], d), a), x === 123)
|
2114
2130
|
if (l === 0)
|
2115
2131
|
Mt(E, t, T, T, C, a, d, o, y);
|
2116
2132
|
else
|
@@ -2120,7 +2136,7 @@ function Mt(e, t, r, i, n, a, s, o, u) {
|
|
2120
2136
|
case 108:
|
2121
2137
|
case 109:
|
2122
2138
|
case 115:
|
2123
|
-
Mt(e, T, T, i && St(
|
2139
|
+
Mt(e, T, T, i && St(Ur(e, T, T, 0, 0, n, o, w, n, C = [], d), y), n, y, d, o, i ? C : y);
|
2124
2140
|
break;
|
2125
2141
|
default:
|
2126
2142
|
Mt(E, T, T, T, [""], y, 0, o, y);
|
@@ -2158,41 +2174,41 @@ function Mt(e, t, r, i, n, a, s, o, u) {
|
|
2158
2174
|
}
|
2159
2175
|
return a;
|
2160
2176
|
}
|
2161
|
-
function
|
2162
|
-
for (var d = n - 1, p = n === 0 ? a : [""], g =
|
2177
|
+
function Ur(e, t, r, i, n, a, s, o, u, c, l) {
|
2178
|
+
for (var d = n - 1, p = n === 0 ? a : [""], g = nr(p), h = 0, b = 0, I = 0; h < i; ++h)
|
2163
2179
|
for (var v = 0, x = ht(e, d + 1, d = yu(b = s[h])), w = e; v < g; ++v)
|
2164
|
-
(w =
|
2165
|
-
return nn(e, t, r, n === 0 ?
|
2180
|
+
(w = ui(b > 0 ? p[v] + " " + x : ae(x, /&\f/g, p[v]))) && (u[I++] = w);
|
2181
|
+
return nn(e, t, r, n === 0 ? er : o, u, c, l);
|
2166
2182
|
}
|
2167
|
-
function
|
2168
|
-
return nn(e, t, r,
|
2183
|
+
function Ou(e, t, r) {
|
2184
|
+
return nn(e, t, r, ai, en(Eu()), ht(e, 2, -2), 0);
|
2169
2185
|
}
|
2170
|
-
function
|
2171
|
-
return nn(e, t, r,
|
2186
|
+
function $r(e, t, r, i) {
|
2187
|
+
return nn(e, t, r, tr, ht(e, 0, i), ht(e, i + 1, -1), i);
|
2172
2188
|
}
|
2173
2189
|
function rt(e, t) {
|
2174
|
-
for (var r = "", i =
|
2190
|
+
for (var r = "", i = nr(e), n = 0; n < i; n++)
|
2175
2191
|
r += t(e[n], n, e, t) || "";
|
2176
2192
|
return r;
|
2177
2193
|
}
|
2178
|
-
function
|
2194
|
+
function Pu(e, t, r, i) {
|
2179
2195
|
switch (e.type) {
|
2180
2196
|
case Iu:
|
2181
2197
|
if (e.children.length) break;
|
2182
2198
|
case vu:
|
2183
|
-
case
|
2199
|
+
case tr:
|
2184
2200
|
return e.return = e.return || e.value;
|
2185
|
-
case
|
2201
|
+
case ai:
|
2186
2202
|
return "";
|
2187
|
-
case
|
2203
|
+
case si:
|
2188
2204
|
return e.return = e.value + "{" + rt(e.children, i) + "}";
|
2189
|
-
case
|
2205
|
+
case er:
|
2190
2206
|
e.value = e.props.join(",");
|
2191
2207
|
}
|
2192
2208
|
return ke(r = rt(e.children, i)) ? e.return = e.value + "{" + r + "}" : "";
|
2193
2209
|
}
|
2194
2210
|
function Vu(e) {
|
2195
|
-
var t =
|
2211
|
+
var t = nr(e);
|
2196
2212
|
return function(r, i, n, a) {
|
2197
2213
|
for (var s = "", o = 0; o < t; o++)
|
2198
2214
|
s += e[o](r, i, n, a) || "";
|
@@ -2236,15 +2252,15 @@ var Nu = function(t, r, i) {
|
|
2236
2252
|
while (n = Ge());
|
2237
2253
|
return t;
|
2238
2254
|
}, Mu = function(t, r) {
|
2239
|
-
return
|
2240
|
-
},
|
2255
|
+
return di(Du(li(t), r));
|
2256
|
+
}, Qr = /* @__PURE__ */ new WeakMap(), Xu = function(t) {
|
2241
2257
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
2242
2258
|
// negative .length indicates that this rule has been already prefixed
|
2243
2259
|
t.length < 1)) {
|
2244
2260
|
for (var r = t.value, i = t.parent, n = t.column === i.column && t.line === i.line; i.type !== "rule"; )
|
2245
2261
|
if (i = i.parent, !i) return;
|
2246
|
-
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !
|
2247
|
-
|
2262
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Qr.get(i)) && !n) {
|
2263
|
+
Qr.set(t, !0);
|
2248
2264
|
for (var a = [], s = Mu(r, a), o = i.props, u = 0, c = 0; u < s.length; u++)
|
2249
2265
|
for (var l = 0; l < o.length; l++, c++)
|
2250
2266
|
t.props[c] = a[u] ? s[u].replace(/&\f/g, o[l]) : o[l] + " " + s[u];
|
@@ -2258,7 +2274,7 @@ var Nu = function(t, r, i) {
|
|
2258
2274
|
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
2259
2275
|
}
|
2260
2276
|
};
|
2261
|
-
function
|
2277
|
+
function fi(e, t) {
|
2262
2278
|
switch (xu(e, t)) {
|
2263
2279
|
// color-adjust
|
2264
2280
|
case 5103:
|
@@ -2366,7 +2382,7 @@ function li(e, t) {
|
|
2366
2382
|
return ae(e, /(.+:)(.+)-([^]+)/, "$1" + ie + "$2-$3$1" + Ht + (ye(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
2367
2383
|
// (s)tretch
|
2368
2384
|
case 115:
|
2369
|
-
return ~Xn(e, "stretch") ?
|
2385
|
+
return ~Xn(e, "stretch") ? fi(ae(e, "stretch", "fill-available"), t) + e : e;
|
2370
2386
|
}
|
2371
2387
|
break;
|
2372
2388
|
// position: sticky
|
@@ -2402,14 +2418,14 @@ function li(e, t) {
|
|
2402
2418
|
}
|
2403
2419
|
var Lu = function(t, r, i, n) {
|
2404
2420
|
if (t.length > -1 && !t.return) switch (t.type) {
|
2405
|
-
case
|
2406
|
-
t.return =
|
2421
|
+
case tr:
|
2422
|
+
t.return = fi(t.value, t.length);
|
2407
2423
|
break;
|
2408
|
-
case
|
2424
|
+
case si:
|
2409
2425
|
return rt([ft(t, {
|
2410
2426
|
value: ae(t.value, "@", "@" + ie)
|
2411
2427
|
})], n);
|
2412
|
-
case
|
2428
|
+
case er:
|
2413
2429
|
if (t.length) return Au(t.props, function(a) {
|
2414
2430
|
switch (wu(a, /(::plac\w+|:read-\w+)/)) {
|
2415
2431
|
// :read-(only|write)
|
@@ -2453,7 +2469,7 @@ var Lu = function(t, r, i, n) {
|
|
2453
2469
|
);
|
2454
2470
|
var u, c = [Xu, Zu];
|
2455
2471
|
{
|
2456
|
-
var l, d = [
|
2472
|
+
var l, d = [Pu, ku(function(b) {
|
2457
2473
|
l.insert(b);
|
2458
2474
|
})], p = Vu(c.concat(n, d)), g = function(I) {
|
2459
2475
|
return rt(Fu(I), p);
|
@@ -2487,10 +2503,10 @@ var Lu = function(t, r, i, n) {
|
|
2487
2503
|
* This source code is licensed under the MIT license found in the
|
2488
2504
|
* LICENSE file in the root directory of this source tree.
|
2489
2505
|
*/
|
2490
|
-
var
|
2506
|
+
var Kr;
|
2491
2507
|
function Yu() {
|
2492
|
-
if (
|
2493
|
-
|
2508
|
+
if (Kr) return ue;
|
2509
|
+
Kr = 1;
|
2494
2510
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
2495
2511
|
function w(y) {
|
2496
2512
|
if (typeof y == "object" && y !== null) {
|
@@ -2562,9 +2578,9 @@ var ce = {};
|
|
2562
2578
|
* This source code is licensed under the MIT license found in the
|
2563
2579
|
* LICENSE file in the root directory of this source tree.
|
2564
2580
|
*/
|
2565
|
-
var
|
2581
|
+
var qr;
|
2566
2582
|
function zu() {
|
2567
|
-
return
|
2583
|
+
return qr || (qr = 1, process.env.NODE_ENV !== "production" && function() {
|
2568
2584
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
2569
2585
|
function w(B) {
|
2570
2586
|
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
@@ -2575,17 +2591,17 @@ function zu() {
|
|
2575
2591
|
var xe = B.$$typeof;
|
2576
2592
|
switch (xe) {
|
2577
2593
|
case t:
|
2578
|
-
var
|
2579
|
-
switch (
|
2594
|
+
var Oe = B.type;
|
2595
|
+
switch (Oe) {
|
2580
2596
|
case u:
|
2581
2597
|
case c:
|
2582
2598
|
case i:
|
2583
2599
|
case a:
|
2584
2600
|
case n:
|
2585
2601
|
case d:
|
2586
|
-
return
|
2602
|
+
return Oe;
|
2587
2603
|
default:
|
2588
|
-
var Be =
|
2604
|
+
var Be = Oe && Oe.$$typeof;
|
2589
2605
|
switch (Be) {
|
2590
2606
|
case o:
|
2591
2607
|
case l:
|
@@ -2602,7 +2618,7 @@ function zu() {
|
|
2602
2618
|
}
|
2603
2619
|
}
|
2604
2620
|
}
|
2605
|
-
var y = u, T = c, E = o,
|
2621
|
+
var y = u, T = c, E = o, O = s, K = t, X = l, H = i, q = h, $ = g, z = r, te = a, oe = n, de = d, fe = !1;
|
2606
2622
|
function Ie(B) {
|
2607
2623
|
return fe || (fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), A(B) || C(B) === u;
|
2608
2624
|
}
|
@@ -2615,7 +2631,7 @@ function zu() {
|
|
2615
2631
|
function F(B) {
|
2616
2632
|
return C(B) === s;
|
2617
2633
|
}
|
2618
|
-
function
|
2634
|
+
function P(B) {
|
2619
2635
|
return typeof B == "object" && B !== null && B.$$typeof === t;
|
2620
2636
|
}
|
2621
2637
|
function W(B) {
|
@@ -2642,18 +2658,18 @@ function zu() {
|
|
2642
2658
|
function ge(B) {
|
2643
2659
|
return C(B) === d;
|
2644
2660
|
}
|
2645
|
-
ce.AsyncMode = y, ce.ConcurrentMode = T, ce.ContextConsumer = E, ce.ContextProvider =
|
2661
|
+
ce.AsyncMode = y, ce.ConcurrentMode = T, ce.ContextConsumer = E, ce.ContextProvider = O, ce.Element = K, ce.ForwardRef = X, ce.Fragment = H, ce.Lazy = q, ce.Memo = $, ce.Portal = z, ce.Profiler = te, ce.StrictMode = oe, ce.Suspense = de, ce.isAsyncMode = Ie, ce.isConcurrentMode = A, ce.isContextConsumer = R, ce.isContextProvider = F, ce.isElement = P, ce.isForwardRef = W, ce.isFragment = Z, ce.isLazy = k, ce.isMemo = D, ce.isPortal = j, ce.isProfiler = U, ce.isStrictMode = _, ce.isSuspense = ge, ce.isValidElementType = w, ce.typeOf = C;
|
2646
2662
|
}()), ce;
|
2647
2663
|
}
|
2648
|
-
var
|
2649
|
-
function
|
2650
|
-
return
|
2664
|
+
var eo;
|
2665
|
+
function rr() {
|
2666
|
+
return eo || (eo = 1, process.env.NODE_ENV === "production" ? Tt.exports = Yu() : Tt.exports = zu()), Tt.exports;
|
2651
2667
|
}
|
2652
|
-
var mn,
|
2668
|
+
var mn, to;
|
2653
2669
|
function Ju() {
|
2654
|
-
if (
|
2655
|
-
|
2656
|
-
var e =
|
2670
|
+
if (to) return mn;
|
2671
|
+
to = 1;
|
2672
|
+
var e = rr(), t = {
|
2657
2673
|
childContextTypes: !0,
|
2658
2674
|
contextType: !0,
|
2659
2675
|
contextTypes: !0,
|
@@ -2723,7 +2739,7 @@ function Uu(e, t, r) {
|
|
2723
2739
|
e[n] !== void 0 ? t.push(e[n] + ";") : n && (i += n + " ");
|
2724
2740
|
}), i;
|
2725
2741
|
}
|
2726
|
-
var
|
2742
|
+
var pi = function(t, r, i) {
|
2727
2743
|
var n = t.key + "-" + r.name;
|
2728
2744
|
// we only need to add the styles to the registered cache if the
|
2729
2745
|
// class name could be used further down
|
@@ -2736,7 +2752,7 @@ var di = function(t, r, i) {
|
|
2736
2752
|
// also, note that this check will be dead code eliminated in the browser
|
2737
2753
|
_u === !1) && t.registered[n] === void 0 && (t.registered[n] = r.styles);
|
2738
2754
|
}, $u = function(t, r, i) {
|
2739
|
-
|
2755
|
+
pi(t, r, i);
|
2740
2756
|
var n = t.key + "-" + r.name;
|
2741
2757
|
if (t.inserted[r.name] === void 0) {
|
2742
2758
|
var a = r;
|
@@ -2813,13 +2829,13 @@ var Ku = {
|
|
2813
2829
|
strokeMiterlimit: 1,
|
2814
2830
|
strokeOpacity: 1,
|
2815
2831
|
strokeWidth: 1
|
2816
|
-
}, qu = /[A-Z]|^ms/g, ec = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
2832
|
+
}, qu = /[A-Z]|^ms/g, ec = /_EMO_([^_]+?)_([^]*?)_EMO_/g, gi = function(t) {
|
2817
2833
|
return t.charCodeAt(1) === 45;
|
2818
|
-
},
|
2834
|
+
}, no = function(t) {
|
2819
2835
|
return t != null && typeof t != "boolean";
|
2820
2836
|
}, vn = /* @__PURE__ */ Wu(function(e) {
|
2821
|
-
return
|
2822
|
-
}),
|
2837
|
+
return gi(e) ? e : e.replace(qu, "-$&").toLowerCase();
|
2838
|
+
}), ro = function(t, r) {
|
2823
2839
|
switch (t) {
|
2824
2840
|
case "animation":
|
2825
2841
|
case "animationName":
|
@@ -2832,7 +2848,7 @@ var Ku = {
|
|
2832
2848
|
}, n;
|
2833
2849
|
});
|
2834
2850
|
}
|
2835
|
-
return Ku[t] !== 1 && !
|
2851
|
+
return Ku[t] !== 1 && !gi(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
2836
2852
|
};
|
2837
2853
|
function vt(e, t, r) {
|
2838
2854
|
if (r == null)
|
@@ -2887,10 +2903,10 @@ function tc(e, t, r) {
|
|
2887
2903
|
var s = r[a];
|
2888
2904
|
if (typeof s != "object") {
|
2889
2905
|
var o = s;
|
2890
|
-
|
2906
|
+
no(o) && (i += vn(a) + ":" + ro(a, o) + ";");
|
2891
2907
|
} else if (Array.isArray(s) && typeof s[0] == "string" && t == null)
|
2892
2908
|
for (var u = 0; u < s.length; u++)
|
2893
|
-
|
2909
|
+
no(s[u]) && (i += vn(a) + ":" + ro(a, s[u]) + ";");
|
2894
2910
|
else {
|
2895
2911
|
var c = vt(e, t, s);
|
2896
2912
|
switch (a) {
|
@@ -2906,8 +2922,8 @@ function tc(e, t, r) {
|
|
2906
2922
|
}
|
2907
2923
|
return i;
|
2908
2924
|
}
|
2909
|
-
var
|
2910
|
-
function
|
2925
|
+
var oo = /label:\s*([^\s;{]+)\s*(;|$)/g, We;
|
2926
|
+
function bi(e, t, r) {
|
2911
2927
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
2912
2928
|
return e[0];
|
2913
2929
|
var i = !0, n = "";
|
@@ -2924,8 +2940,8 @@ function pi(e, t, r) {
|
|
2924
2940
|
var u = a;
|
2925
2941
|
n += u[o];
|
2926
2942
|
}
|
2927
|
-
|
2928
|
-
for (var c = "", l; (l =
|
2943
|
+
oo.lastIndex = 0;
|
2944
|
+
for (var c = "", l; (l = oo.exec(n)) !== null; )
|
2929
2945
|
c += "-" + l[1];
|
2930
2946
|
var d = Qu(n) + c;
|
2931
2947
|
return {
|
@@ -2936,7 +2952,7 @@ function pi(e, t, r) {
|
|
2936
2952
|
}
|
2937
2953
|
var nc = function(t) {
|
2938
2954
|
return t();
|
2939
|
-
}, rc = J.useInsertionEffect ? J.useInsertionEffect : !1, oc = rc || nc,
|
2955
|
+
}, rc = J.useInsertionEffect ? J.useInsertionEffect : !1, oc = rc || nc, hi = /* @__PURE__ */ J.createContext(
|
2940
2956
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
2941
2957
|
// because this module is primarily intended for the browser and node
|
2942
2958
|
// but it's also required in react native and similar environments sometimes
|
@@ -2947,20 +2963,20 @@ var nc = function(t) {
|
|
2947
2963
|
key: "css"
|
2948
2964
|
}) : null
|
2949
2965
|
);
|
2950
|
-
|
2966
|
+
hi.Provider;
|
2951
2967
|
var ic = function(t) {
|
2952
2968
|
return /* @__PURE__ */ Jn(function(r, i) {
|
2953
|
-
var n =
|
2969
|
+
var n = _o(hi);
|
2954
2970
|
return t(r, n, i);
|
2955
2971
|
});
|
2956
|
-
}, ac = /* @__PURE__ */ J.createContext({}),
|
2972
|
+
}, ac = /* @__PURE__ */ J.createContext({}), or = {}.hasOwnProperty, Ln = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", sc = function(t, r) {
|
2957
2973
|
var i = {};
|
2958
2974
|
for (var n in r)
|
2959
|
-
|
2975
|
+
or.call(r, n) && (i[n] = r[n]);
|
2960
2976
|
return i[Ln] = t, i;
|
2961
2977
|
}, uc = function(t) {
|
2962
2978
|
var r = t.cache, i = t.serialized, n = t.isStringTag;
|
2963
|
-
return
|
2979
|
+
return pi(r, i, n), oc(function() {
|
2964
2980
|
return $u(r, i, n);
|
2965
2981
|
}), null;
|
2966
2982
|
}, cc = /* @__PURE__ */ ic(function(e, t, r) {
|
@@ -2968,11 +2984,11 @@ var ic = function(t) {
|
|
2968
2984
|
typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
|
2969
2985
|
var n = e[Ln], a = [i], s = "";
|
2970
2986
|
typeof e.className == "string" ? s = Uu(t.registered, a, e.className) : e.className != null && (s = e.className + " ");
|
2971
|
-
var o =
|
2987
|
+
var o = bi(a, void 0, J.useContext(ac));
|
2972
2988
|
s += t.key + "-" + o.name;
|
2973
2989
|
var u = {};
|
2974
2990
|
for (var c in e)
|
2975
|
-
|
2991
|
+
or.call(e, c) && c !== "css" && c !== Ln && (u[c] = e[c]);
|
2976
2992
|
return u.className = s, r && (u.ref = r), /* @__PURE__ */ J.createElement(J.Fragment, null, /* @__PURE__ */ J.createElement(uc, {
|
2977
2993
|
cache: t,
|
2978
2994
|
serialized: o,
|
@@ -2980,7 +2996,7 @@ var ic = function(t) {
|
|
2980
2996
|
}), /* @__PURE__ */ J.createElement(n, u));
|
2981
2997
|
}), lc = cc, M = function(t, r) {
|
2982
2998
|
var i = arguments;
|
2983
|
-
if (r == null || !
|
2999
|
+
if (r == null || !or.call(r, "css"))
|
2984
3000
|
return J.createElement.apply(void 0, i);
|
2985
3001
|
var n = i.length, a = new Array(n);
|
2986
3002
|
a[0] = lc, a[1] = sc(t, r);
|
@@ -2992,13 +3008,13 @@ var ic = function(t) {
|
|
2992
3008
|
var t;
|
2993
3009
|
t || (t = e.JSX || (e.JSX = {}));
|
2994
3010
|
})(M || (M = {}));
|
2995
|
-
function
|
3011
|
+
function ir() {
|
2996
3012
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
2997
3013
|
t[r] = arguments[r];
|
2998
|
-
return
|
3014
|
+
return bi(t);
|
2999
3015
|
}
|
3000
3016
|
function dc() {
|
3001
|
-
var e =
|
3017
|
+
var e = ir.apply(void 0, arguments), t = "animation-" + e.name;
|
3002
3018
|
return {
|
3003
3019
|
name: t,
|
3004
3020
|
styles: "@keyframes " + t + "{" + e.styles + "}",
|
@@ -3037,7 +3053,7 @@ function gc() {
|
|
3037
3053
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
3038
3054
|
}
|
3039
3055
|
function me(e, t) {
|
3040
|
-
return fc(e) || pc(e, t) ||
|
3056
|
+
return fc(e) || pc(e, t) || ii(e, t) || gc();
|
3041
3057
|
}
|
3042
3058
|
function bc(e, t) {
|
3043
3059
|
if (e == null) return {};
|
@@ -3089,37 +3105,37 @@ function Ic(e) {
|
|
3089
3105
|
function rn() {
|
3090
3106
|
return typeof window < "u";
|
3091
3107
|
}
|
3092
|
-
function
|
3093
|
-
return
|
3108
|
+
function mi(e) {
|
3109
|
+
return Ii(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
3094
3110
|
}
|
3095
3111
|
function Ze(e) {
|
3096
3112
|
var t;
|
3097
3113
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
3098
3114
|
}
|
3099
|
-
function
|
3115
|
+
function vi(e) {
|
3100
3116
|
var t;
|
3101
|
-
return (t = (
|
3117
|
+
return (t = (Ii(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
3102
3118
|
}
|
3103
|
-
function
|
3119
|
+
function Ii(e) {
|
3104
3120
|
return rn() ? e instanceof Node || e instanceof Ze(e).Node : !1;
|
3105
3121
|
}
|
3106
3122
|
function yc(e) {
|
3107
3123
|
return rn() ? e instanceof Element || e instanceof Ze(e).Element : !1;
|
3108
3124
|
}
|
3109
|
-
function
|
3125
|
+
function ar(e) {
|
3110
3126
|
return rn() ? e instanceof HTMLElement || e instanceof Ze(e).HTMLElement : !1;
|
3111
3127
|
}
|
3112
|
-
function
|
3128
|
+
function io(e) {
|
3113
3129
|
return !rn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ze(e).ShadowRoot;
|
3114
3130
|
}
|
3115
3131
|
const Cc = /* @__PURE__ */ new Set(["inline", "contents"]);
|
3116
|
-
function
|
3132
|
+
function yi(e) {
|
3117
3133
|
const {
|
3118
3134
|
overflow: t,
|
3119
3135
|
overflowX: r,
|
3120
3136
|
overflowY: i,
|
3121
3137
|
display: n
|
3122
|
-
} =
|
3138
|
+
} = sr(e);
|
3123
3139
|
return /auto|scroll|overlay|hidden|clip/.test(t + i + r) && !Cc.has(n);
|
3124
3140
|
}
|
3125
3141
|
function xc() {
|
@@ -3127,34 +3143,34 @@ function xc() {
|
|
3127
3143
|
}
|
3128
3144
|
const wc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
3129
3145
|
function Ac(e) {
|
3130
|
-
return wc.has(
|
3146
|
+
return wc.has(mi(e));
|
3131
3147
|
}
|
3132
|
-
function
|
3148
|
+
function sr(e) {
|
3133
3149
|
return Ze(e).getComputedStyle(e);
|
3134
3150
|
}
|
3135
3151
|
function Ec(e) {
|
3136
|
-
if (
|
3152
|
+
if (mi(e) === "html")
|
3137
3153
|
return e;
|
3138
3154
|
const t = (
|
3139
3155
|
// Step into the shadow DOM of the parent of a slotted node.
|
3140
3156
|
e.assignedSlot || // DOM Element detected.
|
3141
3157
|
e.parentNode || // ShadowRoot detected.
|
3142
|
-
|
3143
|
-
|
3158
|
+
io(e) && e.host || // Fallback.
|
3159
|
+
vi(e)
|
3144
3160
|
);
|
3145
|
-
return
|
3161
|
+
return io(t) ? t.host : t;
|
3146
3162
|
}
|
3147
|
-
function
|
3163
|
+
function Ci(e) {
|
3148
3164
|
const t = Ec(e);
|
3149
|
-
return Ac(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
3165
|
+
return Ac(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ar(t) && yi(t) ? t : Ci(t);
|
3150
3166
|
}
|
3151
3167
|
function zt(e, t, r) {
|
3152
3168
|
var i;
|
3153
3169
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
3154
|
-
const n =
|
3170
|
+
const n = Ci(e), a = n === ((i = e.ownerDocument) == null ? void 0 : i.body), s = Ze(n);
|
3155
3171
|
if (a) {
|
3156
3172
|
const o = Hn(s);
|
3157
|
-
return t.concat(s, s.visualViewport || [],
|
3173
|
+
return t.concat(s, s.visualViewport || [], yi(n) ? n : [], o && r ? zt(o) : []);
|
3158
3174
|
}
|
3159
3175
|
return t.concat(n, zt(n, [], r));
|
3160
3176
|
}
|
@@ -3162,21 +3178,21 @@ function Hn(e) {
|
|
3162
3178
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
3163
3179
|
}
|
3164
3180
|
function Sc(e) {
|
3165
|
-
const t =
|
3181
|
+
const t = sr(e);
|
3166
3182
|
let r = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
|
3167
|
-
const n =
|
3183
|
+
const n = ar(e), a = n ? e.offsetWidth : r, s = n ? e.offsetHeight : i, o = jt(r) !== a || jt(i) !== s;
|
3168
3184
|
return o && (r = a, i = s), {
|
3169
3185
|
width: r,
|
3170
3186
|
height: i,
|
3171
3187
|
$: o
|
3172
3188
|
};
|
3173
3189
|
}
|
3174
|
-
function
|
3190
|
+
function ur(e) {
|
3175
3191
|
return yc(e) ? e : e.contextElement;
|
3176
3192
|
}
|
3177
|
-
function
|
3178
|
-
const t =
|
3179
|
-
if (!
|
3193
|
+
function ao(e) {
|
3194
|
+
const t = ur(e);
|
3195
|
+
if (!ar(t))
|
3180
3196
|
return Yt(1);
|
3181
3197
|
const r = t.getBoundingClientRect(), {
|
3182
3198
|
width: i,
|
@@ -3200,18 +3216,18 @@ function Rc(e) {
|
|
3200
3216
|
function Bc(e, t, r) {
|
3201
3217
|
return !1;
|
3202
3218
|
}
|
3203
|
-
function
|
3219
|
+
function so(e, t, r, i) {
|
3204
3220
|
t === void 0 && (t = !1);
|
3205
|
-
const n = e.getBoundingClientRect(), a =
|
3221
|
+
const n = e.getBoundingClientRect(), a = ur(e);
|
3206
3222
|
let s = Yt(1);
|
3207
|
-
t && (s =
|
3223
|
+
t && (s = ao(e));
|
3208
3224
|
const o = Bc() ? Rc(a) : Yt(0);
|
3209
3225
|
let u = (n.left + o.x) / s.x, c = (n.top + o.y) / s.y, l = n.width / s.x, d = n.height / s.y;
|
3210
3226
|
if (a) {
|
3211
3227
|
const p = Ze(a), g = i;
|
3212
3228
|
let h = p, b = Hn(h);
|
3213
3229
|
for (; b && i && g !== h; ) {
|
3214
|
-
const I =
|
3230
|
+
const I = ao(b), v = b.getBoundingClientRect(), x = sr(b), w = v.left + (b.clientLeft + parseFloat(x.paddingLeft)) * I.x, C = v.top + (b.clientTop + parseFloat(x.paddingTop)) * I.y;
|
3215
3231
|
u *= I.x, c *= I.y, l *= I.x, d *= I.y, u += w, c += C, h = Ze(b), b = Hn(h);
|
3216
3232
|
}
|
3217
3233
|
}
|
@@ -3222,12 +3238,12 @@ function io(e, t, r, i) {
|
|
3222
3238
|
y: c
|
3223
3239
|
});
|
3224
3240
|
}
|
3225
|
-
function
|
3241
|
+
function xi(e, t) {
|
3226
3242
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
3227
3243
|
}
|
3228
3244
|
function Gc(e, t) {
|
3229
3245
|
let r = null, i;
|
3230
|
-
const n =
|
3246
|
+
const n = vi(e);
|
3231
3247
|
function a() {
|
3232
3248
|
var o;
|
3233
3249
|
clearTimeout(i), (o = r) == null || o.disconnect(), r = null;
|
@@ -3256,7 +3272,7 @@ function Gc(e, t) {
|
|
3256
3272
|
s(!1, 1e-7);
|
3257
3273
|
}, 1e3);
|
3258
3274
|
}
|
3259
|
-
E === 1 && !
|
3275
|
+
E === 1 && !xi(c, e.getBoundingClientRect()) && s(), C = !1;
|
3260
3276
|
}
|
3261
3277
|
try {
|
3262
3278
|
r = new IntersectionObserver(y, {
|
@@ -3279,7 +3295,7 @@ function Fc(e, t, r, i) {
|
|
3279
3295
|
elementResize: s = typeof ResizeObserver == "function",
|
3280
3296
|
layoutShift: o = typeof IntersectionObserver == "function",
|
3281
3297
|
animationFrame: u = !1
|
3282
|
-
} = i, c =
|
3298
|
+
} = i, c = ur(e), l = n || a ? [...c ? zt(c) : [], ...zt(t)] : [];
|
3283
3299
|
l.forEach((v) => {
|
3284
3300
|
n && v.addEventListener("scroll", r, {
|
3285
3301
|
passive: !0
|
@@ -3294,11 +3310,11 @@ function Fc(e, t, r, i) {
|
|
3294
3310
|
(w = g) == null || w.observe(t);
|
3295
3311
|
})), r();
|
3296
3312
|
}), c && !u && g.observe(c), g.observe(t));
|
3297
|
-
let h, b = u ?
|
3313
|
+
let h, b = u ? so(e) : null;
|
3298
3314
|
u && I();
|
3299
3315
|
function I() {
|
3300
|
-
const v =
|
3301
|
-
b && !
|
3316
|
+
const v = so(e);
|
3317
|
+
b && !xi(b, v) && r(), b = v, h = requestAnimationFrame(I);
|
3302
3318
|
}
|
3303
3319
|
return r(), () => {
|
3304
3320
|
var v;
|
@@ -3307,9 +3323,9 @@ function Fc(e, t, r, i) {
|
|
3307
3323
|
}), d?.(), (v = g) == null || v.disconnect(), g = null, u && cancelAnimationFrame(h);
|
3308
3324
|
};
|
3309
3325
|
}
|
3310
|
-
var jn =
|
3326
|
+
var jn = Aa, Oc = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Jt = function() {
|
3311
3327
|
};
|
3312
|
-
function
|
3328
|
+
function Pc(e, t) {
|
3313
3329
|
return t ? t[0] === "-" ? e + t : e + "__" + t : e;
|
3314
3330
|
}
|
3315
3331
|
function Vc(e, t) {
|
@@ -3318,18 +3334,18 @@ function Vc(e, t) {
|
|
3318
3334
|
var a = [].concat(i);
|
3319
3335
|
if (t && e)
|
3320
3336
|
for (var s in t)
|
3321
|
-
t.hasOwnProperty(s) && t[s] && a.push("".concat(
|
3337
|
+
t.hasOwnProperty(s) && t[s] && a.push("".concat(Pc(e, s)));
|
3322
3338
|
return a.filter(function(o) {
|
3323
3339
|
return o;
|
3324
3340
|
}).map(function(o) {
|
3325
3341
|
return String(o).trim();
|
3326
3342
|
}).join(" ");
|
3327
3343
|
}
|
3328
|
-
var
|
3344
|
+
var uo = function(t) {
|
3329
3345
|
return jc(t) ? t.filter(Boolean) : _e(t) === "object" && t !== null ? [t] : [];
|
3330
|
-
},
|
3346
|
+
}, wi = function(t) {
|
3331
3347
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
3332
|
-
var r = Me(t,
|
3348
|
+
var r = Me(t, Oc);
|
3333
3349
|
return V({}, r);
|
3334
3350
|
}, pe = function(t, r, i) {
|
3335
3351
|
var n = t.cx, a = t.getStyles, s = t.getClassNames, o = t.className;
|
@@ -3351,7 +3367,7 @@ function on(e) {
|
|
3351
3367
|
function Wc(e) {
|
3352
3368
|
return on(e) ? window.innerHeight : e.clientHeight;
|
3353
3369
|
}
|
3354
|
-
function
|
3370
|
+
function Ai(e) {
|
3355
3371
|
return on(e) ? window.pageYOffset : e.scrollTop;
|
3356
3372
|
}
|
3357
3373
|
function _t(e, t) {
|
@@ -3373,7 +3389,7 @@ function Dc(e, t, r, i) {
|
|
3373
3389
|
return r * ((e = e / i - 1) * e * e + 1) + t;
|
3374
3390
|
}
|
3375
3391
|
function Bt(e, t) {
|
3376
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Jt, n =
|
3392
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Jt, n = Ai(e), a = t - n, s = 10, o = 0;
|
3377
3393
|
function u() {
|
3378
3394
|
o += s;
|
3379
3395
|
var c = Dc(o, n, a, r);
|
@@ -3381,7 +3397,7 @@ function Bt(e, t) {
|
|
3381
3397
|
}
|
3382
3398
|
u();
|
3383
3399
|
}
|
3384
|
-
function
|
3400
|
+
function co(e, t) {
|
3385
3401
|
var r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), n = t.offsetHeight / 3;
|
3386
3402
|
i.bottom + n > r.bottom ? _t(e, Math.min(t.offsetTop + t.clientHeight - e.offsetHeight + n, e.scrollHeight)) : i.top - n < r.top && _t(e, Math.max(t.offsetTop - n, 0));
|
3387
3403
|
}
|
@@ -3396,7 +3412,7 @@ function Mc(e) {
|
|
3396
3412
|
width: t.width
|
3397
3413
|
};
|
3398
3414
|
}
|
3399
|
-
function
|
3415
|
+
function lo() {
|
3400
3416
|
try {
|
3401
3417
|
return document.createEvent("TouchEvent"), !0;
|
3402
3418
|
} catch {
|
@@ -3410,13 +3426,13 @@ function Xc() {
|
|
3410
3426
|
return !1;
|
3411
3427
|
}
|
3412
3428
|
}
|
3413
|
-
var
|
3429
|
+
var Ei = !1, Zc = {
|
3414
3430
|
get passive() {
|
3415
|
-
return
|
3431
|
+
return Ei = !0;
|
3416
3432
|
}
|
3417
3433
|
}, Gt = typeof window < "u" ? window : {};
|
3418
3434
|
Gt.addEventListener && Gt.removeEventListener && (Gt.addEventListener("p", Jt, Zc), Gt.removeEventListener("p", Jt, !1));
|
3419
|
-
var Lc =
|
3435
|
+
var Lc = Ei;
|
3420
3436
|
function Hc(e) {
|
3421
3437
|
return e != null;
|
3422
3438
|
}
|
@@ -3444,7 +3460,7 @@ function _c(e) {
|
|
3444
3460
|
maxHeight: t
|
3445
3461
|
};
|
3446
3462
|
if (!r || !r.offsetParent) return c;
|
3447
|
-
var l = u.getBoundingClientRect(), d = l.height, p = r.getBoundingClientRect(), g = p.bottom, h = p.height, b = p.top, I = r.offsetParent.getBoundingClientRect(), v = I.top, x = s ? window.innerHeight : Wc(u), w =
|
3463
|
+
var l = u.getBoundingClientRect(), d = l.height, p = r.getBoundingClientRect(), g = p.bottom, h = p.height, b = p.top, I = r.offsetParent.getBoundingClientRect(), v = I.top, x = s ? window.innerHeight : Wc(u), w = Ai(u), C = parseInt(getComputedStyle(r).marginBottom, 10), y = parseInt(getComputedStyle(r).marginTop, 10), T = v - y, E = x - b, O = T + w, K = d - w - b, X = g - x + w + C, H = w + b - y, q = 160;
|
3448
3464
|
switch (n) {
|
3449
3465
|
case "auto":
|
3450
3466
|
case "bottom":
|
@@ -3467,7 +3483,7 @@ function _c(e) {
|
|
3467
3483
|
};
|
3468
3484
|
}
|
3469
3485
|
if (n === "auto" || s) {
|
3470
|
-
var z = t, te = s ? T :
|
3486
|
+
var z = t, te = s ? T : O;
|
3471
3487
|
return te >= i && (z = Math.min(te - C - o, t)), {
|
3472
3488
|
placement: "top",
|
3473
3489
|
maxHeight: z
|
@@ -3485,14 +3501,14 @@ function _c(e) {
|
|
3485
3501
|
placement: "top",
|
3486
3502
|
maxHeight: t
|
3487
3503
|
};
|
3488
|
-
if (
|
3504
|
+
if (O >= h && !s)
|
3489
3505
|
return a && Bt(u, H, q), {
|
3490
3506
|
placement: "top",
|
3491
3507
|
maxHeight: t
|
3492
3508
|
};
|
3493
|
-
if (!s &&
|
3509
|
+
if (!s && O >= i || s && T >= i) {
|
3494
3510
|
var oe = t;
|
3495
|
-
return (!s &&
|
3511
|
+
return (!s && O >= i || s && T >= i) && (oe = s ? T - y : O - y), a && Bt(u, H, q), {
|
3496
3512
|
placement: "top",
|
3497
3513
|
maxHeight: oe
|
3498
3514
|
};
|
@@ -3513,7 +3529,7 @@ function Uc(e) {
|
|
3513
3529
|
};
|
3514
3530
|
return e ? t[e] : "bottom";
|
3515
3531
|
}
|
3516
|
-
var
|
3532
|
+
var Si = function(t) {
|
3517
3533
|
return t === "auto" ? "bottom" : t;
|
3518
3534
|
}, $c = function(t, r) {
|
3519
3535
|
var i, n = t.placement, a = t.theme, s = a.borderRadius, o = a.spacing, u = a.colors;
|
@@ -3526,12 +3542,12 @@ var Ai = function(t) {
|
|
3526
3542
|
marginBottom: o.menuGutter,
|
3527
3543
|
marginTop: o.menuGutter
|
3528
3544
|
});
|
3529
|
-
},
|
3530
|
-
var r = t.children, i = t.minMenuHeight, n = t.maxMenuHeight, a = t.menuPlacement, s = t.menuPosition, o = t.menuShouldScrollIntoView, u = t.theme, c =
|
3545
|
+
}, Ti = /* @__PURE__ */ Uo(null), Qc = function(t) {
|
3546
|
+
var r = t.children, i = t.minMenuHeight, n = t.maxMenuHeight, a = t.menuPlacement, s = t.menuPosition, o = t.menuShouldScrollIntoView, u = t.theme, c = _o(Ti) || {}, l = c.setPortalPlacement, d = Ve(null), p = Ae(n), g = me(p, 2), h = g[0], b = g[1], I = Ae(null), v = me(I, 2), x = v[0], w = v[1], C = u.spacing.controlHeight;
|
3531
3547
|
return jn(function() {
|
3532
3548
|
var y = d.current;
|
3533
3549
|
if (y) {
|
3534
|
-
var T = s === "fixed", E = o && !T,
|
3550
|
+
var T = s === "fixed", E = o && !T, O = _c({
|
3535
3551
|
maxHeight: n,
|
3536
3552
|
menuEl: y,
|
3537
3553
|
minHeight: i,
|
@@ -3540,12 +3556,12 @@ var Ai = function(t) {
|
|
3540
3556
|
isFixedPosition: T,
|
3541
3557
|
controlHeight: C
|
3542
3558
|
});
|
3543
|
-
b(
|
3559
|
+
b(O.maxHeight), w(O.placement), l?.(O.placement);
|
3544
3560
|
}
|
3545
3561
|
}, [n, a, s, o, i, l, C]), r({
|
3546
3562
|
ref: d,
|
3547
3563
|
placerProps: V(V({}, t), {}, {
|
3548
|
-
placement: x ||
|
3564
|
+
placement: x || Si(a),
|
3549
3565
|
maxHeight: h
|
3550
3566
|
})
|
3551
3567
|
});
|
@@ -3576,7 +3592,7 @@ var Ai = function(t) {
|
|
3576
3592
|
}), {
|
3577
3593
|
ref: n
|
3578
3594
|
}, i), r);
|
3579
|
-
},
|
3595
|
+
}, Ri = function(t, r) {
|
3580
3596
|
var i = t.theme, n = i.spacing.baseUnit, a = i.colors;
|
3581
3597
|
return V({
|
3582
3598
|
textAlign: "center"
|
@@ -3584,7 +3600,7 @@ var Ai = function(t) {
|
|
3584
3600
|
color: a.neutral40,
|
3585
3601
|
padding: "".concat(n * 2, "px ").concat(n * 3, "px")
|
3586
3602
|
});
|
3587
|
-
}, nl =
|
3603
|
+
}, nl = Ri, rl = Ri, ol = function(t) {
|
3588
3604
|
var r = t.children, i = r === void 0 ? "No options" : r, n = t.innerProps, a = Me(t, zc);
|
3589
3605
|
return M("div", N({}, pe(V(V({}, a), {}, {
|
3590
3606
|
children: i,
|
@@ -3612,13 +3628,13 @@ var Ai = function(t) {
|
|
3612
3628
|
zIndex: 1
|
3613
3629
|
};
|
3614
3630
|
}, sl = function(t) {
|
3615
|
-
var r = t.appendTo, i = t.children, n = t.controlElement, a = t.innerProps, s = t.menuPlacement, o = t.menuPosition, u = Ve(null), c = Ve(null), l = Ae(
|
3631
|
+
var r = t.appendTo, i = t.children, n = t.controlElement, a = t.innerProps, s = t.menuPlacement, o = t.menuPosition, u = Ve(null), c = Ve(null), l = Ae(Si(s)), d = me(l, 2), p = d[0], g = d[1], h = tt(function() {
|
3616
3632
|
return {
|
3617
3633
|
setPortalPlacement: g
|
3618
3634
|
};
|
3619
3635
|
}, []), b = Ae(null), I = me(b, 2), v = I[0], x = I[1], w = Ce(function() {
|
3620
3636
|
if (n) {
|
3621
|
-
var E = Mc(n),
|
3637
|
+
var E = Mc(n), O = o === "fixed" ? 0 : window.pageYOffset, K = E[p] + O;
|
3622
3638
|
(K !== v?.offset || E.left !== v?.rect.left || E.width !== v?.rect.width) && x({
|
3623
3639
|
offset: K,
|
3624
3640
|
rect: E
|
@@ -3649,9 +3665,9 @@ var Ai = function(t) {
|
|
3649
3665
|
}), "menuPortal", {
|
3650
3666
|
"menu-portal": !0
|
3651
3667
|
}), a), i);
|
3652
|
-
return M(
|
3668
|
+
return M(Ti.Provider, {
|
3653
3669
|
value: h
|
3654
|
-
}, r ? /* @__PURE__ */
|
3670
|
+
}, r ? /* @__PURE__ */ Ea(T, r) : T);
|
3655
3671
|
}, ul = function(t) {
|
3656
3672
|
var r = t.isDisabled, i = t.isRtl;
|
3657
3673
|
return {
|
@@ -3699,7 +3715,7 @@ var Ai = function(t) {
|
|
3699
3715
|
return M("div", N({}, pe(t, "indicatorsContainer", {
|
3700
3716
|
indicators: !0
|
3701
3717
|
}), i), r);
|
3702
|
-
},
|
3718
|
+
}, fo, gl = ["size"], bl = ["innerProps", "isRtl", "size"];
|
3703
3719
|
function hl() {
|
3704
3720
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
3705
3721
|
}
|
@@ -3711,7 +3727,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3711
3727
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
3712
3728
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
|
3713
3729
|
toString: hl
|
3714
|
-
},
|
3730
|
+
}, Bi = function(t) {
|
3715
3731
|
var r = t.size, i = Me(t, gl);
|
3716
3732
|
return M("svg", N({
|
3717
3733
|
height: r,
|
@@ -3721,19 +3737,19 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3721
3737
|
focusable: "false",
|
3722
3738
|
css: ml
|
3723
3739
|
}, i));
|
3724
|
-
},
|
3725
|
-
return M(
|
3740
|
+
}, cr = function(t) {
|
3741
|
+
return M(Bi, N({
|
3726
3742
|
size: 20
|
3727
3743
|
}, t), M("path", {
|
3728
3744
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
3729
3745
|
}));
|
3730
|
-
},
|
3731
|
-
return M(
|
3746
|
+
}, Gi = function(t) {
|
3747
|
+
return M(Bi, N({
|
3732
3748
|
size: 20
|
3733
3749
|
}, t), M("path", {
|
3734
3750
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
3735
3751
|
}));
|
3736
|
-
},
|
3752
|
+
}, Fi = function(t, r) {
|
3737
3753
|
var i = t.isFocused, n = t.theme, a = n.spacing.baseUnit, s = n.colors;
|
3738
3754
|
return V({
|
3739
3755
|
label: "indicatorContainer",
|
@@ -3746,18 +3762,18 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3746
3762
|
color: i ? s.neutral80 : s.neutral40
|
3747
3763
|
}
|
3748
3764
|
});
|
3749
|
-
}, vl =
|
3765
|
+
}, vl = Fi, Il = function(t) {
|
3750
3766
|
var r = t.children, i = t.innerProps;
|
3751
3767
|
return M("div", N({}, pe(t, "dropdownIndicator", {
|
3752
3768
|
indicator: !0,
|
3753
3769
|
"dropdown-indicator": !0
|
3754
|
-
}), i), r || M(
|
3755
|
-
}, yl =
|
3770
|
+
}), i), r || M(Gi, null));
|
3771
|
+
}, yl = Fi, Cl = function(t) {
|
3756
3772
|
var r = t.children, i = t.innerProps;
|
3757
3773
|
return M("div", N({}, pe(t, "clearIndicator", {
|
3758
3774
|
indicator: !0,
|
3759
3775
|
"clear-indicator": !0
|
3760
|
-
}), i), r || M(
|
3776
|
+
}), i), r || M(cr, null));
|
3761
3777
|
}, xl = function(t, r) {
|
3762
3778
|
var i = t.isDisabled, n = t.theme, a = n.spacing.baseUnit, s = n.colors;
|
3763
3779
|
return V({
|
@@ -3774,7 +3790,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3774
3790
|
return M("span", N({}, r, pe(t, "indicatorSeparator", {
|
3775
3791
|
"indicator-separator": !0
|
3776
3792
|
})));
|
3777
|
-
}, Al = dc(
|
3793
|
+
}, Al = dc(fo || (fo = hc([`
|
3778
3794
|
0%, 80%, 100% { opacity: 0; }
|
3779
3795
|
40% { opacity: 1; }
|
3780
3796
|
`]))), El = function(t, r) {
|
@@ -3796,7 +3812,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3796
3812
|
}, In = function(t) {
|
3797
3813
|
var r = t.delay, i = t.offset;
|
3798
3814
|
return M("span", {
|
3799
|
-
css: /* @__PURE__ */
|
3815
|
+
css: /* @__PURE__ */ ir({
|
3800
3816
|
animation: "".concat(Al, " 1s ease-in-out ").concat(r, "ms infinite;"),
|
3801
3817
|
backgroundColor: "currentColor",
|
3802
3818
|
borderRadius: "1em",
|
@@ -3866,7 +3882,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3866
3882
|
paddingBottom: i.baseUnit * 2,
|
3867
3883
|
paddingTop: i.baseUnit * 2
|
3868
3884
|
};
|
3869
|
-
},
|
3885
|
+
}, Ol = function(t) {
|
3870
3886
|
var r = t.children, i = t.cx, n = t.getStyles, a = t.getClassNames, s = t.Heading, o = t.headingProps, u = t.innerProps, c = t.label, l = t.theme, d = t.selectProps;
|
3871
3887
|
return M("div", N({}, pe(t, "group", {
|
3872
3888
|
group: !0
|
@@ -3877,7 +3893,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3877
3893
|
getClassNames: a,
|
3878
3894
|
cx: i
|
3879
3895
|
}), c), M("div", null, r));
|
3880
|
-
},
|
3896
|
+
}, Pl = function(t, r) {
|
3881
3897
|
var i = t.theme, n = i.colors, a = i.spacing;
|
3882
3898
|
return V({
|
3883
3899
|
label: "group",
|
@@ -3893,13 +3909,13 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3893
3909
|
textTransform: "uppercase"
|
3894
3910
|
});
|
3895
3911
|
}, Vl = function(t) {
|
3896
|
-
var r =
|
3912
|
+
var r = wi(t);
|
3897
3913
|
r.data;
|
3898
3914
|
var i = Me(r, Gl);
|
3899
3915
|
return M("div", N({}, pe(t, "groupHeading", {
|
3900
3916
|
"group-heading": !0
|
3901
3917
|
}), i));
|
3902
|
-
}, kl =
|
3918
|
+
}, kl = Ol, Wl = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Nl = function(t, r) {
|
3903
3919
|
var i = t.isDisabled, n = t.value, a = t.theme, s = a.spacing, o = a.colors;
|
3904
3920
|
return V(V({
|
3905
3921
|
visibility: i ? "hidden" : "visible",
|
@@ -3912,7 +3928,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3912
3928
|
paddingTop: s.baseUnit / 2,
|
3913
3929
|
color: o.neutral80
|
3914
3930
|
});
|
3915
|
-
},
|
3931
|
+
}, Oi = {
|
3916
3932
|
gridArea: "1 / 2",
|
3917
3933
|
font: "inherit",
|
3918
3934
|
minWidth: "2px",
|
@@ -3929,7 +3945,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3929
3945
|
content: 'attr(data-value) " "',
|
3930
3946
|
visibility: "hidden",
|
3931
3947
|
whiteSpace: "pre"
|
3932
|
-
},
|
3948
|
+
}, Oi)
|
3933
3949
|
}, Ml = function(t) {
|
3934
3950
|
return V({
|
3935
3951
|
label: "input",
|
@@ -3937,9 +3953,9 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3937
3953
|
background: 0,
|
3938
3954
|
opacity: t ? 0 : 1,
|
3939
3955
|
width: "100%"
|
3940
|
-
},
|
3956
|
+
}, Oi);
|
3941
3957
|
}, Xl = function(t) {
|
3942
|
-
var r = t.cx, i = t.value, n =
|
3958
|
+
var r = t.cx, i = t.value, n = wi(t), a = n.innerRef, s = n.isDisabled, o = n.isHidden, u = n.inputClassName, c = Me(n, Wl);
|
3943
3959
|
return M("div", N({}, pe(t, "input", {
|
3944
3960
|
"input-container": !0
|
3945
3961
|
}), {
|
@@ -3991,15 +4007,15 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3991
4007
|
color: s.danger
|
3992
4008
|
}
|
3993
4009
|
});
|
3994
|
-
},
|
4010
|
+
}, Pi = function(t) {
|
3995
4011
|
var r = t.children, i = t.innerProps;
|
3996
4012
|
return M("div", i, r);
|
3997
|
-
}, Yl =
|
4013
|
+
}, Yl = Pi, zl = Pi;
|
3998
4014
|
function Jl(e) {
|
3999
4015
|
var t = e.children, r = e.innerProps;
|
4000
4016
|
return M("div", N({
|
4001
4017
|
role: "button"
|
4002
|
-
}, r), t || M(
|
4018
|
+
}, r), t || M(cr, {
|
4003
4019
|
size: 14
|
4004
4020
|
}));
|
4005
4021
|
}
|
@@ -4092,12 +4108,12 @@ var _l = function(t) {
|
|
4092
4108
|
"single-value": !0,
|
4093
4109
|
"single-value--is-disabled": i
|
4094
4110
|
}), n), r);
|
4095
|
-
}, od = rd,
|
4111
|
+
}, od = rd, lr = {
|
4096
4112
|
ClearIndicator: Cl,
|
4097
4113
|
Control: Bl,
|
4098
4114
|
DropdownIndicator: Il,
|
4099
|
-
DownChevron:
|
4100
|
-
CrossIcon:
|
4115
|
+
DownChevron: Gi,
|
4116
|
+
CrossIcon: cr,
|
4101
4117
|
Group: kl,
|
4102
4118
|
GroupHeading: Vl,
|
4103
4119
|
IndicatorsContainer: pl,
|
@@ -4119,12 +4135,12 @@ var _l = function(t) {
|
|
4119
4135
|
SingleValue: od,
|
4120
4136
|
ValueContainer: dl
|
4121
4137
|
}, id = function(t) {
|
4122
|
-
return V(V({},
|
4123
|
-
},
|
4138
|
+
return V(V({}, lr), t.components);
|
4139
|
+
}, po = Number.isNaN || function(t) {
|
4124
4140
|
return typeof t == "number" && t !== t;
|
4125
4141
|
};
|
4126
4142
|
function ad(e, t) {
|
4127
|
-
return !!(e === t ||
|
4143
|
+
return !!(e === t || po(e) && po(t));
|
4128
4144
|
}
|
4129
4145
|
function sd(e, t) {
|
4130
4146
|
if (e.length !== t.length)
|
@@ -4168,7 +4184,7 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4168
4184
|
return M("span", N({
|
4169
4185
|
css: ld
|
4170
4186
|
}, t));
|
4171
|
-
},
|
4187
|
+
}, go = dd, fd = {
|
4172
4188
|
guidance: function(t) {
|
4173
4189
|
var r = t.isSearchable, i = t.isMulti, n = t.isDisabled, a = t.tabSelectsValue, s = t.context;
|
4174
4190
|
switch (s) {
|
@@ -4223,7 +4239,7 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4223
4239
|
if (r && T.onChange) {
|
4224
4240
|
var te = r.option, oe = r.options, de = r.removedValue, fe = r.removedValues, Ie = r.value, A = function(D) {
|
4225
4241
|
return Array.isArray(D) ? null : D;
|
4226
|
-
}, R = de || te || A(Ie), F = R ? d(R) : "",
|
4242
|
+
}, R = de || te || A(Ie), F = R ? d(R) : "", P = oe || fe || void 0, W = P ? P.map(d) : [], Z = V({
|
4227
4243
|
// multiSelected items are usually items that have already been selected
|
4228
4244
|
// or set by the user as a default value so we assume they are not disabled
|
4229
4245
|
isDisabled: R && h(R, o),
|
@@ -4233,7 +4249,7 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4233
4249
|
z = T.onChange(Z);
|
4234
4250
|
}
|
4235
4251
|
return z;
|
4236
|
-
}, [r, T, h, o, d]),
|
4252
|
+
}, [r, T, h, o, d]), O = tt(function() {
|
4237
4253
|
var z = "", te = i || n, oe = !!(i && o && o.includes(i));
|
4238
4254
|
if (te && T.onFocus) {
|
4239
4255
|
var de = {
|
@@ -4274,14 +4290,14 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4274
4290
|
});
|
4275
4291
|
}
|
4276
4292
|
return z;
|
4277
|
-
}, [C, i, n, g, h, b, I, T, o, w]), H = "".concat(
|
4293
|
+
}, [C, i, n, g, h, b, I, T, o, w]), H = "".concat(O, " ").concat(K, " ").concat(X), q = M(Wn, null, M("span", {
|
4278
4294
|
id: "aria-selection"
|
4279
4295
|
}, E), M("span", {
|
4280
4296
|
id: "aria-context"
|
4281
4297
|
}, H)), $ = r?.action === "initial-input-focus";
|
4282
|
-
return M(Wn, null, M(
|
4298
|
+
return M(Wn, null, M(go, {
|
4283
4299
|
id: c
|
4284
|
-
}, $ && q), M(
|
4300
|
+
}, $ && q), M(go, {
|
4285
4301
|
"aria-live": y,
|
4286
4302
|
"aria-atomic": "false",
|
4287
4303
|
"aria-relevant": "additions text"
|
@@ -4540,15 +4556,15 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4540
4556
|
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
4541
4557
|
}], bd = new RegExp("[" + Yn.map(function(e) {
|
4542
4558
|
return e.letters;
|
4543
|
-
}).join("") + "]", "g"),
|
4559
|
+
}).join("") + "]", "g"), Vi = {};
|
4544
4560
|
for (var yn = 0; yn < Yn.length; yn++)
|
4545
4561
|
for (var Cn = Yn[yn], xn = 0; xn < Cn.letters.length; xn++)
|
4546
|
-
|
4547
|
-
var
|
4562
|
+
Vi[Cn.letters[xn]] = Cn.base;
|
4563
|
+
var ki = function(t) {
|
4548
4564
|
return t.replace(bd, function(r) {
|
4549
|
-
return
|
4565
|
+
return Vi[r];
|
4550
4566
|
});
|
4551
|
-
}, hd = ud(
|
4567
|
+
}, hd = ud(ki), bo = function(t) {
|
4552
4568
|
return t.replace(/^\s+|\s+$/g, "");
|
4553
4569
|
}, md = function(t) {
|
4554
4570
|
return "".concat(t.label, " ").concat(t.value);
|
@@ -4561,8 +4577,8 @@ var Oi = function(t) {
|
|
4561
4577
|
stringify: md,
|
4562
4578
|
trim: !0,
|
4563
4579
|
matchFrom: "any"
|
4564
|
-
}, t), a = n.ignoreCase, s = n.ignoreAccents, o = n.stringify, u = n.trim, c = n.matchFrom, l = u ?
|
4565
|
-
return a && (l = l.toLowerCase(), d = d.toLowerCase()), s && (l = hd(l), d =
|
4580
|
+
}, t), a = n.ignoreCase, s = n.ignoreAccents, o = n.stringify, u = n.trim, c = n.matchFrom, l = u ? bo(i) : i, d = u ? bo(o(r)) : o(r);
|
4581
|
+
return a && (l = l.toLowerCase(), d = d.toLowerCase()), s && (l = hd(l), d = ki(d)), c === "start" ? d.substr(0, l.length) === l : d.indexOf(l) > -1;
|
4566
4582
|
};
|
4567
4583
|
}, Id = ["innerRef"];
|
4568
4584
|
function yd(e) {
|
@@ -4570,7 +4586,7 @@ function yd(e) {
|
|
4570
4586
|
return M("input", N({
|
4571
4587
|
ref: t
|
4572
4588
|
}, i, {
|
4573
|
-
css: /* @__PURE__ */
|
4589
|
+
css: /* @__PURE__ */ ir({
|
4574
4590
|
label: "dummyInput",
|
4575
4591
|
// get rid of any default styles
|
4576
4592
|
background: 0,
|
@@ -4599,8 +4615,8 @@ var Cd = function(t) {
|
|
4599
4615
|
function xd(e) {
|
4600
4616
|
var t = e.isEnabled, r = e.onBottomArrive, i = e.onBottomLeave, n = e.onTopArrive, a = e.onTopLeave, s = Ve(!1), o = Ve(!1), u = Ve(0), c = Ve(null), l = Ce(function(I, v) {
|
4601
4617
|
if (c.current !== null) {
|
4602
|
-
var x = c.current, w = x.scrollTop, C = x.scrollHeight, y = x.clientHeight, T = c.current, E = v > 0,
|
4603
|
-
|
4618
|
+
var x = c.current, w = x.scrollTop, C = x.scrollHeight, y = x.clientHeight, T = c.current, E = v > 0, O = C - y - w, K = !1;
|
4619
|
+
O > v && s.current && (i && i(I), s.current = !1), E && o.current && (a && a(I), o.current = !1), E && v > O ? (r && !s.current && r(I), T.scrollTop = C, K = !0, s.current = !0) : !E && -v > w && (n && !o.current && n(I), T.scrollTop = 0, K = !0, o.current = !0), K && Cd(I);
|
4604
4620
|
}
|
4605
4621
|
}, [r, i, n, a]), d = Ce(function(I) {
|
4606
4622
|
l(I, I.deltaY);
|
@@ -4630,53 +4646,53 @@ function xd(e) {
|
|
4630
4646
|
c.current = I;
|
4631
4647
|
};
|
4632
4648
|
}
|
4633
|
-
var
|
4649
|
+
var ho = ["boxSizing", "height", "overflow", "paddingRight", "position"], mo = {
|
4634
4650
|
boxSizing: "border-box",
|
4635
4651
|
// account for possible declaration `width: 100%;` on body
|
4636
4652
|
overflow: "hidden",
|
4637
4653
|
position: "relative",
|
4638
4654
|
height: "100%"
|
4639
4655
|
};
|
4640
|
-
function
|
4656
|
+
function vo(e) {
|
4641
4657
|
e.preventDefault();
|
4642
4658
|
}
|
4643
|
-
function
|
4659
|
+
function Io(e) {
|
4644
4660
|
e.stopPropagation();
|
4645
4661
|
}
|
4646
|
-
function
|
4662
|
+
function yo() {
|
4647
4663
|
var e = this.scrollTop, t = this.scrollHeight, r = e + this.offsetHeight;
|
4648
4664
|
e === 0 ? this.scrollTop = 1 : r === t && (this.scrollTop = e - 1);
|
4649
4665
|
}
|
4650
|
-
function
|
4666
|
+
function Co() {
|
4651
4667
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
4652
4668
|
}
|
4653
|
-
var
|
4669
|
+
var xo = !!(typeof window < "u" && window.document && window.document.createElement), pt = 0, qe = {
|
4654
4670
|
capture: !1,
|
4655
4671
|
passive: !1
|
4656
4672
|
};
|
4657
4673
|
function wd(e) {
|
4658
4674
|
var t = e.isEnabled, r = e.accountForScrollbars, i = r === void 0 ? !0 : r, n = Ve({}), a = Ve(null), s = Ce(function(u) {
|
4659
|
-
if (
|
4675
|
+
if (xo) {
|
4660
4676
|
var c = document.body, l = c && c.style;
|
4661
|
-
if (i &&
|
4677
|
+
if (i && ho.forEach(function(h) {
|
4662
4678
|
var b = l && l[h];
|
4663
4679
|
n.current[h] = b;
|
4664
4680
|
}), i && pt < 1) {
|
4665
4681
|
var d = parseInt(n.current.paddingRight, 10) || 0, p = document.body ? document.body.clientWidth : 0, g = window.innerWidth - p + d || 0;
|
4666
|
-
Object.keys(
|
4667
|
-
var b =
|
4682
|
+
Object.keys(mo).forEach(function(h) {
|
4683
|
+
var b = mo[h];
|
4668
4684
|
l && (l[h] = b);
|
4669
4685
|
}), l && (l.paddingRight = "".concat(g, "px"));
|
4670
4686
|
}
|
4671
|
-
c &&
|
4687
|
+
c && Co() && (c.addEventListener("touchmove", vo, qe), u && (u.addEventListener("touchstart", yo, qe), u.addEventListener("touchmove", Io, qe))), pt += 1;
|
4672
4688
|
}
|
4673
4689
|
}, [i]), o = Ce(function(u) {
|
4674
|
-
if (
|
4690
|
+
if (xo) {
|
4675
4691
|
var c = document.body, l = c && c.style;
|
4676
|
-
pt = Math.max(pt - 1, 0), i && pt < 1 &&
|
4692
|
+
pt = Math.max(pt - 1, 0), i && pt < 1 && ho.forEach(function(d) {
|
4677
4693
|
var p = n.current[d];
|
4678
4694
|
l && (l[d] = p);
|
4679
|
-
}), c &&
|
4695
|
+
}), c && Co() && (c.removeEventListener("touchmove", vo, qe), u && (u.removeEventListener("touchstart", yo, qe), u.removeEventListener("touchmove", Io, qe)));
|
4680
4696
|
}
|
4681
4697
|
}, [i]);
|
4682
4698
|
return Zt(function() {
|
@@ -4746,9 +4762,9 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4746
4762
|
onChange: function() {
|
4747
4763
|
}
|
4748
4764
|
});
|
4749
|
-
}, Fd = Gd,
|
4765
|
+
}, Fd = Gd, Od = function(t) {
|
4750
4766
|
return t.label;
|
4751
|
-
},
|
4767
|
+
}, Pd = function(t) {
|
4752
4768
|
return t.label;
|
4753
4769
|
}, Vd = function(t) {
|
4754
4770
|
return t.value;
|
@@ -4760,7 +4776,7 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4760
4776
|
control: Tl,
|
4761
4777
|
dropdownIndicator: vl,
|
4762
4778
|
group: Fl,
|
4763
|
-
groupHeading:
|
4779
|
+
groupHeading: Pl,
|
4764
4780
|
indicatorsContainer: fl,
|
4765
4781
|
indicatorSeparator: xl,
|
4766
4782
|
input: Nl,
|
@@ -4795,8 +4811,8 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4795
4811
|
neutral70: "hsl(0, 0%, 30%)",
|
4796
4812
|
neutral80: "hsl(0, 0%, 20%)",
|
4797
4813
|
neutral90: "hsl(0, 0%, 10%)"
|
4798
|
-
}, Dd = 4,
|
4799
|
-
baseUnit:
|
4814
|
+
}, Dd = 4, Wi = 4, Md = 38, Xd = Wi * 2, Zd = {
|
4815
|
+
baseUnit: Wi,
|
4800
4816
|
controlHeight: Md,
|
4801
4817
|
menuGutter: Xd
|
4802
4818
|
}, wn = {
|
@@ -4806,8 +4822,8 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4806
4822
|
}, Ld = {
|
4807
4823
|
"aria-live": "polite",
|
4808
4824
|
backspaceRemovesValue: !0,
|
4809
|
-
blurInputOnSelect:
|
4810
|
-
captureMenuScroll: !
|
4825
|
+
blurInputOnSelect: lo(),
|
4826
|
+
captureMenuScroll: !lo(),
|
4811
4827
|
classNames: {},
|
4812
4828
|
closeMenuOnSelect: !0,
|
4813
4829
|
closeMenuOnScroll: !1,
|
@@ -4815,8 +4831,8 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4815
4831
|
controlShouldRenderValue: !0,
|
4816
4832
|
escapeClearsValue: !1,
|
4817
4833
|
filterOption: vd(),
|
4818
|
-
formatGroupLabel:
|
4819
|
-
getOptionLabel:
|
4834
|
+
formatGroupLabel: Od,
|
4835
|
+
getOptionLabel: Pd,
|
4820
4836
|
getOptionValue: Vd,
|
4821
4837
|
isDisabled: !1,
|
4822
4838
|
isLoading: !1,
|
@@ -4851,8 +4867,8 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4851
4867
|
tabSelectsValue: !0,
|
4852
4868
|
unstyled: !1
|
4853
4869
|
};
|
4854
|
-
function
|
4855
|
-
var n =
|
4870
|
+
function wo(e, t, r, i) {
|
4871
|
+
var n = Xi(e, t, r), a = Zi(e, t, r), s = Mi(e, t), o = Ut(e, t);
|
4856
4872
|
return {
|
4857
4873
|
type: "option",
|
4858
4874
|
data: t,
|
@@ -4863,13 +4879,13 @@ function Co(e, t, r, i) {
|
|
4863
4879
|
index: i
|
4864
4880
|
};
|
4865
4881
|
}
|
4866
|
-
function
|
4882
|
+
function Ni(e, t) {
|
4867
4883
|
return e.options.map(function(r, i) {
|
4868
4884
|
if ("options" in r) {
|
4869
4885
|
var n = r.options.map(function(s, o) {
|
4870
|
-
return
|
4886
|
+
return wo(e, s, t, o);
|
4871
4887
|
}).filter(function(s) {
|
4872
|
-
return
|
4888
|
+
return Ao(e, s);
|
4873
4889
|
});
|
4874
4890
|
return n.length > 0 ? {
|
4875
4891
|
type: "group",
|
@@ -4878,23 +4894,23 @@ function ki(e, t) {
|
|
4878
4894
|
index: i
|
4879
4895
|
} : void 0;
|
4880
4896
|
}
|
4881
|
-
var a =
|
4882
|
-
return
|
4897
|
+
var a = wo(e, r, t, i);
|
4898
|
+
return Ao(e, a) ? a : void 0;
|
4883
4899
|
}).filter(Hc);
|
4884
4900
|
}
|
4885
|
-
function
|
4901
|
+
function Di(e) {
|
4886
4902
|
return e.reduce(function(t, r) {
|
4887
|
-
return r.type === "group" ? t.push.apply(t,
|
4903
|
+
return r.type === "group" ? t.push.apply(t, qn(r.options.map(function(i) {
|
4888
4904
|
return i.data;
|
4889
4905
|
}))) : t.push(r.data), t;
|
4890
4906
|
}, []);
|
4891
4907
|
}
|
4892
4908
|
function Hd(e, t) {
|
4893
|
-
return
|
4909
|
+
return Di(Ni(e, t));
|
4894
4910
|
}
|
4895
|
-
function
|
4911
|
+
function Ao(e, t) {
|
4896
4912
|
var r = e.inputValue, i = r === void 0 ? "" : r, n = t.data, a = t.isSelected, s = t.label, o = t.value;
|
4897
|
-
return (!
|
4913
|
+
return (!Hi(e) || !a) && Li(e, {
|
4898
4914
|
label: s,
|
4899
4915
|
value: o,
|
4900
4916
|
data: n
|
@@ -4915,15 +4931,15 @@ function Yd(e, t) {
|
|
4915
4931
|
var r = e.focusedOption;
|
4916
4932
|
return r && t.indexOf(r) > -1 ? r : t[0];
|
4917
4933
|
}
|
4918
|
-
var
|
4934
|
+
var Mi = function(t, r) {
|
4919
4935
|
return t.getOptionLabel(r);
|
4920
4936
|
}, Ut = function(t, r) {
|
4921
4937
|
return t.getOptionValue(r);
|
4922
4938
|
};
|
4923
|
-
function
|
4939
|
+
function Xi(e, t, r) {
|
4924
4940
|
return typeof e.isOptionDisabled == "function" ? e.isOptionDisabled(t, r) : !1;
|
4925
4941
|
}
|
4926
|
-
function
|
4942
|
+
function Zi(e, t, r) {
|
4927
4943
|
if (r.indexOf(t) > -1) return !0;
|
4928
4944
|
if (typeof e.isOptionSelected == "function")
|
4929
4945
|
return e.isOptionSelected(t, r);
|
@@ -4932,13 +4948,13 @@ function Mi(e, t, r) {
|
|
4932
4948
|
return Ut(e, n) === i;
|
4933
4949
|
});
|
4934
4950
|
}
|
4935
|
-
function
|
4951
|
+
function Li(e, t, r) {
|
4936
4952
|
return e.filterOption ? e.filterOption(t, r) : !0;
|
4937
4953
|
}
|
4938
|
-
var
|
4954
|
+
var Hi = function(t) {
|
4939
4955
|
var r = t.hideSelectedOptions, i = t.isMulti;
|
4940
4956
|
return r === void 0 ? i : r;
|
4941
|
-
}, zd = 1,
|
4957
|
+
}, zd = 1, dr = /* @__PURE__ */ function(e) {
|
4942
4958
|
Kt(r, e);
|
4943
4959
|
var t = du(r);
|
4944
4960
|
function r(i) {
|
@@ -4986,7 +5002,7 @@ var Zi = function(t) {
|
|
4986
5002
|
return n.getOptionValue(I) !== b;
|
4987
5003
|
}), "deselect-option", o);
|
4988
5004
|
} else if (!h)
|
4989
|
-
l ? n.setValue([].concat(
|
5005
|
+
l ? n.setValue([].concat(qn(p), [o]), "select-option", o) : n.setValue(o, "select-option");
|
4990
5006
|
else {
|
4991
5007
|
n.ariaOnChange(o, {
|
4992
5008
|
action: "select-option",
|
@@ -5023,7 +5039,7 @@ var Zi = function(t) {
|
|
5023
5039
|
u[c] = arguments[c];
|
5024
5040
|
return Vc.apply(void 0, [n.props.classNamePrefix].concat(u));
|
5025
5041
|
}, n.getOptionLabel = function(o) {
|
5026
|
-
return
|
5042
|
+
return Mi(n.props, o);
|
5027
5043
|
}, n.getOptionValue = function(o) {
|
5028
5044
|
return Ut(n.props, o);
|
5029
5045
|
}, n.getStyles = function(o, u) {
|
@@ -5039,11 +5055,11 @@ var Zi = function(t) {
|
|
5039
5055
|
}, n.getComponents = function() {
|
5040
5056
|
return id(n.props);
|
5041
5057
|
}, n.buildCategorizedOptions = function() {
|
5042
|
-
return
|
5058
|
+
return Ni(n.props, n.state.selectValue);
|
5043
5059
|
}, n.getCategorizedOptions = function() {
|
5044
5060
|
return n.props.menuIsOpen ? n.buildCategorizedOptions() : [];
|
5045
5061
|
}, n.buildFocusableOptions = function() {
|
5046
|
-
return
|
5062
|
+
return Di(n.buildCategorizedOptions());
|
5047
5063
|
}, n.getFocusableOptions = function() {
|
5048
5064
|
return n.props.menuIsOpen ? n.buildFocusableOptions() : [];
|
5049
5065
|
}, n.ariaOnChange = function(o, u) {
|
@@ -5126,7 +5142,7 @@ var Zi = function(t) {
|
|
5126
5142
|
focusedOption: o
|
5127
5143
|
});
|
5128
5144
|
}, n.shouldHideSelectedOptions = function() {
|
5129
|
-
return
|
5145
|
+
return Hi(n.props);
|
5130
5146
|
}, n.onValueInputFocus = function(o) {
|
5131
5147
|
o.preventDefault(), o.stopPropagation(), n.focus();
|
5132
5148
|
}, n.onKeyDown = function(o) {
|
@@ -5212,7 +5228,7 @@ var Zi = function(t) {
|
|
5212
5228
|
}
|
5213
5229
|
o.preventDefault();
|
5214
5230
|
}
|
5215
|
-
}, n.instancePrefix = "react-select-" + (n.props.instanceId || ++zd), n.state.selectValue =
|
5231
|
+
}, n.instancePrefix = "react-select-" + (n.props.instanceId || ++zd), n.state.selectValue = uo(i.value), i.menuIsOpen && n.state.selectValue.length) {
|
5216
5232
|
var a = n.buildFocusableOptions(), s = a.indexOf(n.state.selectValue[0]);
|
5217
5233
|
n.state.focusedOption = a[s];
|
5218
5234
|
}
|
@@ -5221,7 +5237,7 @@ var Zi = function(t) {
|
|
5221
5237
|
return st(r, [{
|
5222
5238
|
key: "componentDidMount",
|
5223
5239
|
value: function() {
|
5224
|
-
this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef &&
|
5240
|
+
this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && co(this.menuListRef, this.focusedOptionRef);
|
5225
5241
|
}
|
5226
5242
|
}, {
|
5227
5243
|
key: "componentDidUpdate",
|
@@ -5233,7 +5249,7 @@ var Zi = function(t) {
|
|
5233
5249
|
isFocused: !1
|
5234
5250
|
}, this.onMenuClose) : !u && !s && n.isDisabled && this.inputRef === document.activeElement && this.setState({
|
5235
5251
|
isFocused: !0
|
5236
|
-
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (
|
5252
|
+
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (co(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
5237
5253
|
}
|
5238
5254
|
}, {
|
5239
5255
|
key: "componentWillUnmount",
|
@@ -5380,17 +5396,17 @@ var Zi = function(t) {
|
|
5380
5396
|
}, {
|
5381
5397
|
key: "isOptionDisabled",
|
5382
5398
|
value: function(n, a) {
|
5383
|
-
return
|
5399
|
+
return Xi(this.props, n, a);
|
5384
5400
|
}
|
5385
5401
|
}, {
|
5386
5402
|
key: "isOptionSelected",
|
5387
5403
|
value: function(n, a) {
|
5388
|
-
return
|
5404
|
+
return Zi(this.props, n, a);
|
5389
5405
|
}
|
5390
5406
|
}, {
|
5391
5407
|
key: "filterOption",
|
5392
5408
|
value: function(n, a) {
|
5393
|
-
return
|
5409
|
+
return Li(this.props, n, a);
|
5394
5410
|
}
|
5395
5411
|
}, {
|
5396
5412
|
key: "formatOptionLabel",
|
@@ -5514,8 +5530,8 @@ var Zi = function(t) {
|
|
5514
5530
|
}
|
5515
5531
|
}), x);
|
5516
5532
|
if (I)
|
5517
|
-
return C.map(function(
|
5518
|
-
var X =
|
5533
|
+
return C.map(function(O, K) {
|
5534
|
+
var X = O === y, H = "".concat(n.getOptionLabel(O), "-").concat(n.getOptionValue(O));
|
5519
5535
|
return /* @__PURE__ */ J.createElement(s, N({}, p, {
|
5520
5536
|
components: {
|
5521
5537
|
Container: o,
|
@@ -5528,17 +5544,17 @@ var Zi = function(t) {
|
|
5528
5544
|
index: K,
|
5529
5545
|
removeProps: {
|
5530
5546
|
onClick: function() {
|
5531
|
-
return n.removeValue(
|
5547
|
+
return n.removeValue(O);
|
5532
5548
|
},
|
5533
5549
|
onTouchEnd: function() {
|
5534
|
-
return n.removeValue(
|
5550
|
+
return n.removeValue(O);
|
5535
5551
|
},
|
5536
5552
|
onMouseDown: function($) {
|
5537
5553
|
$.preventDefault();
|
5538
5554
|
}
|
5539
5555
|
},
|
5540
|
-
data:
|
5541
|
-
}), n.formatOptionLabel(
|
5556
|
+
data: O
|
5557
|
+
}), n.formatOptionLabel(O, "value"));
|
5542
5558
|
});
|
5543
5559
|
if (v)
|
5544
5560
|
return null;
|
@@ -5608,15 +5624,15 @@ var Zi = function(t) {
|
|
5608
5624
|
}, {
|
5609
5625
|
key: "renderMenu",
|
5610
5626
|
value: function() {
|
5611
|
-
var n = this, a = this.getComponents(), s = a.Group, o = a.GroupHeading, u = a.Menu, c = a.MenuList, l = a.MenuPortal, d = a.LoadingMessage, p = a.NoOptionsMessage, g = a.Option, h = this.commonProps, b = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, x = I.inputValue, w = I.isLoading, C = I.loadingMessage, y = I.minMenuHeight, T = I.maxMenuHeight, E = I.menuIsOpen,
|
5627
|
+
var n = this, a = this.getComponents(), s = a.Group, o = a.GroupHeading, u = a.Menu, c = a.MenuList, l = a.MenuPortal, d = a.LoadingMessage, p = a.NoOptionsMessage, g = a.Option, h = this.commonProps, b = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, x = I.inputValue, w = I.isLoading, C = I.loadingMessage, y = I.minMenuHeight, T = I.maxMenuHeight, E = I.menuIsOpen, O = I.menuPlacement, K = I.menuPosition, X = I.menuPortalTarget, H = I.menuShouldBlockScroll, q = I.menuShouldScrollIntoView, $ = I.noOptionsMessage, z = I.onMenuScrollToTop, te = I.onMenuScrollToBottom;
|
5612
5628
|
if (!E) return null;
|
5613
|
-
var oe = function(
|
5614
|
-
var Z =
|
5629
|
+
var oe = function(P, W) {
|
5630
|
+
var Z = P.type, k = P.data, D = P.isDisabled, j = P.isSelected, U = P.label, _ = P.value, ge = b === k, B = D ? void 0 : function() {
|
5615
5631
|
return n.onOptionHover(k);
|
5616
5632
|
}, xe = D ? void 0 : function() {
|
5617
5633
|
return n.selectOption(k);
|
5618
|
-
},
|
5619
|
-
id:
|
5634
|
+
}, Oe = "".concat(n.getElementId("option"), "-").concat(W), Be = {
|
5635
|
+
id: Oe,
|
5620
5636
|
onClick: xe,
|
5621
5637
|
onMouseMove: B,
|
5622
5638
|
onMouseOver: B,
|
@@ -5627,21 +5643,21 @@ var Zi = function(t) {
|
|
5627
5643
|
data: k,
|
5628
5644
|
isDisabled: D,
|
5629
5645
|
isSelected: j,
|
5630
|
-
key:
|
5646
|
+
key: Oe,
|
5631
5647
|
label: U,
|
5632
5648
|
type: Z,
|
5633
5649
|
value: _,
|
5634
5650
|
isFocused: ge,
|
5635
5651
|
innerRef: ge ? n.getFocusedOptionRef : void 0
|
5636
|
-
}), n.formatOptionLabel(
|
5652
|
+
}), n.formatOptionLabel(P.data, "menu"));
|
5637
5653
|
}, de;
|
5638
5654
|
if (this.hasOptions())
|
5639
5655
|
de = this.getCategorizedOptions().map(function(F) {
|
5640
5656
|
if (F.type === "group") {
|
5641
|
-
var
|
5657
|
+
var P = F.data, W = F.options, Z = F.index, k = "".concat(n.getElementId("group"), "-").concat(Z), D = "".concat(k, "-heading");
|
5642
5658
|
return /* @__PURE__ */ J.createElement(s, N({}, h, {
|
5643
5659
|
key: k,
|
5644
|
-
data:
|
5660
|
+
data: P,
|
5645
5661
|
options: W,
|
5646
5662
|
Heading: o,
|
5647
5663
|
headingProps: {
|
@@ -5671,13 +5687,13 @@ var Zi = function(t) {
|
|
5671
5687
|
var A = {
|
5672
5688
|
minMenuHeight: y,
|
5673
5689
|
maxMenuHeight: T,
|
5674
|
-
menuPlacement:
|
5690
|
+
menuPlacement: O,
|
5675
5691
|
menuPosition: K,
|
5676
5692
|
menuShouldScrollIntoView: q
|
5677
5693
|
}, R = /* @__PURE__ */ J.createElement(Qc, N({}, h, A), function(F) {
|
5678
|
-
var
|
5694
|
+
var P = F.ref, W = F.placerProps, Z = W.placement, k = W.maxHeight;
|
5679
5695
|
return /* @__PURE__ */ J.createElement(u, N({}, h, A, {
|
5680
|
-
innerRef:
|
5696
|
+
innerRef: P,
|
5681
5697
|
innerProps: {
|
5682
5698
|
onMouseDown: n.onMenuMouseDown,
|
5683
5699
|
onMouseMove: n.onMenuMouseMove,
|
@@ -5704,7 +5720,7 @@ var Zi = function(t) {
|
|
5704
5720
|
return X || K === "fixed" ? /* @__PURE__ */ J.createElement(l, N({}, h, {
|
5705
5721
|
appendTo: X,
|
5706
5722
|
controlElement: this.controlRef,
|
5707
|
-
menuPlacement:
|
5723
|
+
menuPlacement: O,
|
5708
5724
|
menuPosition: K
|
5709
5725
|
}), R) : R;
|
5710
5726
|
}
|
@@ -5796,7 +5812,7 @@ var Zi = function(t) {
|
|
5796
5812
|
}], [{
|
5797
5813
|
key: "getDerivedStateFromProps",
|
5798
5814
|
value: function(n, a) {
|
5799
|
-
var s = a.prevProps, o = a.clearFocusValueOnUpdate, u = a.inputIsHiddenAfterUpdate, c = a.ariaSelection, l = a.isFocused, d = a.prevWasFocused, p = n.options, g = n.value, h = n.menuIsOpen, b = n.inputValue, I = n.isMulti, v =
|
5815
|
+
var s = a.prevProps, o = a.clearFocusValueOnUpdate, u = a.inputIsHiddenAfterUpdate, c = a.ariaSelection, l = a.isFocused, d = a.prevWasFocused, p = n.options, g = n.value, h = n.menuIsOpen, b = n.inputValue, I = n.isMulti, v = uo(g), x = {};
|
5800
5816
|
if (s && (g !== s.value || p !== s.options || h !== s.menuIsOpen || b !== s.inputValue)) {
|
5801
5817
|
var w = h ? Hd(n, v) : [], C = o ? jd(a, v) : null, y = Yd(a, w);
|
5802
5818
|
x = {
|
@@ -5809,23 +5825,23 @@ var Zi = function(t) {
|
|
5809
5825
|
var T = u != null && n !== s ? {
|
5810
5826
|
inputIsHidden: u,
|
5811
5827
|
inputIsHiddenAfterUpdate: void 0
|
5812
|
-
} : {}, E = c,
|
5813
|
-
return l && !
|
5828
|
+
} : {}, E = c, O = l && d;
|
5829
|
+
return l && !O && (E = {
|
5814
5830
|
value: Ft(I, v, v[0] || null),
|
5815
5831
|
options: v,
|
5816
5832
|
action: "initial-input-focus"
|
5817
|
-
},
|
5833
|
+
}, O = !d), c?.action === "initial-input-focus" && (E = null), V(V(V({}, x), T), {}, {
|
5818
5834
|
prevProps: n,
|
5819
5835
|
ariaSelection: E,
|
5820
|
-
prevWasFocused:
|
5836
|
+
prevWasFocused: O
|
5821
5837
|
});
|
5822
5838
|
}
|
5823
5839
|
}]), r;
|
5824
5840
|
}($t);
|
5825
|
-
|
5841
|
+
dr.defaultProps = Ld;
|
5826
5842
|
var Jd = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
5827
|
-
function
|
5828
|
-
var t = e.defaultInputValue, r = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = e.defaultValue, s = a === void 0 ? null : a, o = e.inputValue, u = e.menuIsOpen, c = e.onChange, l = e.onInputChange, d = e.onMenuClose, p = e.onMenuOpen, g = e.value, h = Me(e, Jd), b = Ae(o !== void 0 ? o : r), I = me(b, 2), v = I[0], x = I[1], w = Ae(u !== void 0 ? u : n), C = me(w, 2), y = C[0], T = C[1], E = Ae(g !== void 0 ? g : s),
|
5843
|
+
function ji(e) {
|
5844
|
+
var t = e.defaultInputValue, r = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = e.defaultValue, s = a === void 0 ? null : a, o = e.inputValue, u = e.menuIsOpen, c = e.onChange, l = e.onInputChange, d = e.onMenuClose, p = e.onMenuOpen, g = e.value, h = Me(e, Jd), b = Ae(o !== void 0 ? o : r), I = me(b, 2), v = I[0], x = I[1], w = Ae(u !== void 0 ? u : n), C = me(w, 2), y = C[0], T = C[1], E = Ae(g !== void 0 ? g : s), O = me(E, 2), K = O[0], X = O[1], H = Ce(function(fe, Ie) {
|
5829
5845
|
typeof c == "function" && c(fe, Ie), X(fe);
|
5830
5846
|
}, [c]), q = Ce(function(fe, Ie) {
|
5831
5847
|
var A;
|
@@ -5849,17 +5865,17 @@ var _d = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
5849
5865
|
function Ud(e) {
|
5850
5866
|
var t = e.defaultOptions, r = t === void 0 ? !1 : t, i = e.cacheOptions, n = i === void 0 ? !1 : i, a = e.loadOptions;
|
5851
5867
|
e.options;
|
5852
|
-
var s = e.isLoading, o = s === void 0 ? !1 : s, u = e.onInputChange, c = e.filterOption, l = c === void 0 ? null : c, d = Me(e, _d), p = d.inputValue, g = Ve(void 0), h = Ve(!1), b = Ae(Array.isArray(r) ? r : void 0), I = me(b, 2), v = I[0], x = I[1], w = Ae(typeof p < "u" ? p : ""), C = me(w, 2), y = C[0], T = C[1], E = Ae(r === !0),
|
5853
|
-
n !== xe && (k({}),
|
5868
|
+
var s = e.isLoading, o = s === void 0 ? !1 : s, u = e.onInputChange, c = e.filterOption, l = c === void 0 ? null : c, d = Me(e, _d), p = d.inputValue, g = Ve(void 0), h = Ve(!1), b = Ae(Array.isArray(r) ? r : void 0), I = me(b, 2), v = I[0], x = I[1], w = Ae(typeof p < "u" ? p : ""), C = me(w, 2), y = C[0], T = C[1], E = Ae(r === !0), O = me(E, 2), K = O[0], X = O[1], H = Ae(void 0), q = me(H, 2), $ = q[0], z = q[1], te = Ae([]), oe = me(te, 2), de = oe[0], fe = oe[1], Ie = Ae(!1), A = me(Ie, 2), R = A[0], F = A[1], P = Ae({}), W = me(P, 2), Z = W[0], k = W[1], D = Ae(void 0), j = me(D, 2), U = j[0], _ = j[1], ge = Ae(void 0), B = me(ge, 2), xe = B[0], Oe = B[1];
|
5869
|
+
n !== xe && (k({}), Oe(n)), r !== U && (x(Array.isArray(r) ? r : void 0), _(r)), Zt(function() {
|
5854
5870
|
return h.current = !0, function() {
|
5855
5871
|
h.current = !1;
|
5856
5872
|
};
|
5857
5873
|
}, []);
|
5858
|
-
var Be = Ce(function(Le,
|
5859
|
-
if (!a) return
|
5860
|
-
var Ee = a(Le,
|
5861
|
-
Ee && typeof Ee.then == "function" && Ee.then(
|
5862
|
-
return
|
5874
|
+
var Be = Ce(function(Le, Pe) {
|
5875
|
+
if (!a) return Pe();
|
5876
|
+
var Ee = a(Le, Pe);
|
5877
|
+
Ee && typeof Ee.then == "function" && Ee.then(Pe, function() {
|
5878
|
+
return Pe();
|
5863
5879
|
});
|
5864
5880
|
}, [a]);
|
5865
5881
|
Zt(function() {
|
@@ -5867,8 +5883,8 @@ function Ud(e) {
|
|
5867
5883
|
h.current && (x(Le || []), X(!!g.current));
|
5868
5884
|
});
|
5869
5885
|
}, []);
|
5870
|
-
var He = Ce(function(Le,
|
5871
|
-
var Ee = kc(Le,
|
5886
|
+
var He = Ce(function(Le, Pe) {
|
5887
|
+
var Ee = kc(Le, Pe, u);
|
5872
5888
|
if (!Ee) {
|
5873
5889
|
g.current = void 0, T(""), z(""), fe([]), X(!1), F(!1);
|
5874
5890
|
return;
|
@@ -5890,16 +5906,16 @@ function Ud(e) {
|
|
5890
5906
|
});
|
5891
5907
|
}
|
5892
5908
|
var $d = /* @__PURE__ */ Jn(function(e, t) {
|
5893
|
-
var r = Ud(e), i =
|
5894
|
-
return /* @__PURE__ */ J.createElement(
|
5909
|
+
var r = Ud(e), i = ji(r);
|
5910
|
+
return /* @__PURE__ */ J.createElement(dr, N({
|
5895
5911
|
ref: t
|
5896
5912
|
}, i));
|
5897
5913
|
}), Qd = $d, Kd = /* @__PURE__ */ Jn(function(e, t) {
|
5898
|
-
var r =
|
5899
|
-
return /* @__PURE__ */ J.createElement(
|
5914
|
+
var r = ji(e);
|
5915
|
+
return /* @__PURE__ */ J.createElement(dr, N({
|
5900
5916
|
ref: t
|
5901
5917
|
}, r));
|
5902
|
-
}),
|
5918
|
+
}), Yi = Kd;
|
5903
5919
|
function An(e) {
|
5904
5920
|
for (var t = 1; t < arguments.length; t++) {
|
5905
5921
|
var r = arguments[t] != null ? Object(arguments[t]) : {}, i = Object.keys(r);
|
@@ -5911,10 +5927,10 @@ function An(e) {
|
|
5911
5927
|
}
|
5912
5928
|
return e;
|
5913
5929
|
}
|
5914
|
-
var En,
|
5930
|
+
var En, Eo;
|
5915
5931
|
function qd() {
|
5916
|
-
if (
|
5917
|
-
|
5932
|
+
if (Eo) return En;
|
5933
|
+
Eo = 1;
|
5918
5934
|
var e = function(t, r, i, n, a, s, o, u) {
|
5919
5935
|
if (process.env.NODE_ENV !== "production" && r === void 0)
|
5920
5936
|
throw new Error("invariant requires an error message argument");
|
@@ -5939,16 +5955,16 @@ function qd() {
|
|
5939
5955
|
}
|
5940
5956
|
var ef = qd();
|
5941
5957
|
const $e = /* @__PURE__ */ Qt(ef);
|
5942
|
-
var
|
5958
|
+
var Ot = { exports: {} };
|
5943
5959
|
/*
|
5944
5960
|
object-assign
|
5945
5961
|
(c) Sindre Sorhus
|
5946
5962
|
@license MIT
|
5947
5963
|
*/
|
5948
|
-
var Sn,
|
5964
|
+
var Sn, So;
|
5949
5965
|
function tf() {
|
5950
|
-
if (
|
5951
|
-
|
5966
|
+
if (So) return Sn;
|
5967
|
+
So = 1;
|
5952
5968
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
5953
5969
|
function i(a) {
|
5954
5970
|
if (a == null)
|
@@ -5991,25 +6007,25 @@ function tf() {
|
|
5991
6007
|
return u;
|
5992
6008
|
}, Sn;
|
5993
6009
|
}
|
5994
|
-
var Tn,
|
5995
|
-
function
|
5996
|
-
if (
|
5997
|
-
|
6010
|
+
var Tn, To;
|
6011
|
+
function fr() {
|
6012
|
+
if (To) return Tn;
|
6013
|
+
To = 1;
|
5998
6014
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
5999
6015
|
return Tn = e, Tn;
|
6000
6016
|
}
|
6001
|
-
var Rn,
|
6002
|
-
function
|
6003
|
-
return
|
6017
|
+
var Rn, Ro;
|
6018
|
+
function zi() {
|
6019
|
+
return Ro || (Ro = 1, Rn = Function.call.bind(Object.prototype.hasOwnProperty)), Rn;
|
6004
6020
|
}
|
6005
|
-
var Bn,
|
6021
|
+
var Bn, Bo;
|
6006
6022
|
function nf() {
|
6007
|
-
if (
|
6008
|
-
|
6023
|
+
if (Bo) return Bn;
|
6024
|
+
Bo = 1;
|
6009
6025
|
var e = function() {
|
6010
6026
|
};
|
6011
6027
|
if (process.env.NODE_ENV !== "production") {
|
6012
|
-
var t = /* @__PURE__ */
|
6028
|
+
var t = /* @__PURE__ */ fr(), r = {}, i = /* @__PURE__ */ zi();
|
6013
6029
|
e = function(a) {
|
6014
6030
|
var s = "Warning: " + a;
|
6015
6031
|
typeof console < "u" && console.error(s);
|
@@ -6051,11 +6067,11 @@ function nf() {
|
|
6051
6067
|
process.env.NODE_ENV !== "production" && (r = {});
|
6052
6068
|
}, Bn = n, Bn;
|
6053
6069
|
}
|
6054
|
-
var Gn,
|
6070
|
+
var Gn, Go;
|
6055
6071
|
function rf() {
|
6056
|
-
if (
|
6057
|
-
|
6058
|
-
var e =
|
6072
|
+
if (Go) return Gn;
|
6073
|
+
Go = 1;
|
6074
|
+
var e = rr(), t = tf(), r = /* @__PURE__ */ fr(), i = /* @__PURE__ */ zi(), n = /* @__PURE__ */ nf(), a = function() {
|
6059
6075
|
};
|
6060
6076
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
6061
6077
|
var u = "Warning: " + o;
|
@@ -6090,7 +6106,7 @@ function rf() {
|
|
6090
6106
|
elementType: y(),
|
6091
6107
|
instanceOf: T,
|
6092
6108
|
node: X(),
|
6093
|
-
objectOf:
|
6109
|
+
objectOf: O,
|
6094
6110
|
oneOf: E,
|
6095
6111
|
oneOfType: K,
|
6096
6112
|
shape: q,
|
@@ -6106,7 +6122,7 @@ function rf() {
|
|
6106
6122
|
function I(A) {
|
6107
6123
|
if (process.env.NODE_ENV !== "production")
|
6108
6124
|
var R = {}, F = 0;
|
6109
|
-
function
|
6125
|
+
function P(Z, k, D, j, U, _, ge) {
|
6110
6126
|
if (j = j || p, _ = _ || D, ge !== r) {
|
6111
6127
|
if (u) {
|
6112
6128
|
var B = new Error(
|
@@ -6123,12 +6139,12 @@ function rf() {
|
|
6123
6139
|
}
|
6124
6140
|
return k[D] == null ? Z ? k[D] === null ? new b("The " + U + " `" + _ + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new b("The " + U + " `" + _ + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : A(k, D, j, U, _);
|
6125
6141
|
}
|
6126
|
-
var W =
|
6127
|
-
return W.isRequired =
|
6142
|
+
var W = P.bind(null, !1);
|
6143
|
+
return W.isRequired = P.bind(null, !0), W;
|
6128
6144
|
}
|
6129
6145
|
function v(A) {
|
6130
|
-
function R(F,
|
6131
|
-
var j = F[
|
6146
|
+
function R(F, P, W, Z, k, D) {
|
6147
|
+
var j = F[P], U = oe(j);
|
6132
6148
|
if (U !== A) {
|
6133
6149
|
var _ = de(j);
|
6134
6150
|
return new b(
|
@@ -6144,10 +6160,10 @@ function rf() {
|
|
6144
6160
|
return I(s);
|
6145
6161
|
}
|
6146
6162
|
function w(A) {
|
6147
|
-
function R(F,
|
6163
|
+
function R(F, P, W, Z, k) {
|
6148
6164
|
if (typeof A != "function")
|
6149
6165
|
return new b("Property `" + k + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
6150
|
-
var D = F[
|
6166
|
+
var D = F[P];
|
6151
6167
|
if (!Array.isArray(D)) {
|
6152
6168
|
var j = oe(D);
|
6153
6169
|
return new b("Invalid " + Z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + W + "`, expected an array."));
|
@@ -6162,31 +6178,31 @@ function rf() {
|
|
6162
6178
|
return I(R);
|
6163
6179
|
}
|
6164
6180
|
function C() {
|
6165
|
-
function A(R, F,
|
6181
|
+
function A(R, F, P, W, Z) {
|
6166
6182
|
var k = R[F];
|
6167
6183
|
if (!o(k)) {
|
6168
6184
|
var D = oe(k);
|
6169
|
-
return new b("Invalid " + W + " `" + Z + "` of type " + ("`" + D + "` supplied to `" +
|
6185
|
+
return new b("Invalid " + W + " `" + Z + "` of type " + ("`" + D + "` supplied to `" + P + "`, expected a single ReactElement."));
|
6170
6186
|
}
|
6171
6187
|
return null;
|
6172
6188
|
}
|
6173
6189
|
return I(A);
|
6174
6190
|
}
|
6175
6191
|
function y() {
|
6176
|
-
function A(R, F,
|
6192
|
+
function A(R, F, P, W, Z) {
|
6177
6193
|
var k = R[F];
|
6178
6194
|
if (!e.isValidElementType(k)) {
|
6179
6195
|
var D = oe(k);
|
6180
|
-
return new b("Invalid " + W + " `" + Z + "` of type " + ("`" + D + "` supplied to `" +
|
6196
|
+
return new b("Invalid " + W + " `" + Z + "` of type " + ("`" + D + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
6181
6197
|
}
|
6182
6198
|
return null;
|
6183
6199
|
}
|
6184
6200
|
return I(A);
|
6185
6201
|
}
|
6186
6202
|
function T(A) {
|
6187
|
-
function R(F,
|
6188
|
-
if (!(F[
|
6189
|
-
var D = A.name || p, j = Ie(F[
|
6203
|
+
function R(F, P, W, Z, k) {
|
6204
|
+
if (!(F[P] instanceof A)) {
|
6205
|
+
var D = A.name || p, j = Ie(F[P]);
|
6190
6206
|
return new b("Invalid " + Z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + W + "`, expected ") + ("instance of `" + D + "`."));
|
6191
6207
|
}
|
6192
6208
|
return null;
|
@@ -6198,8 +6214,8 @@ function rf() {
|
|
6198
6214
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
6199
6215
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
6200
6216
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
6201
|
-
function R(F,
|
6202
|
-
for (var D = F[
|
6217
|
+
function R(F, P, W, Z, k) {
|
6218
|
+
for (var D = F[P], j = 0; j < A.length; j++)
|
6203
6219
|
if (h(D, A[j]))
|
6204
6220
|
return null;
|
6205
6221
|
var U = JSON.stringify(A, function(ge, B) {
|
@@ -6210,11 +6226,11 @@ function rf() {
|
|
6210
6226
|
}
|
6211
6227
|
return I(R);
|
6212
6228
|
}
|
6213
|
-
function
|
6214
|
-
function R(F,
|
6229
|
+
function O(A) {
|
6230
|
+
function R(F, P, W, Z, k) {
|
6215
6231
|
if (typeof A != "function")
|
6216
6232
|
return new b("Property `" + k + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
|
6217
|
-
var D = F[
|
6233
|
+
var D = F[P], j = oe(D);
|
6218
6234
|
if (j !== "object")
|
6219
6235
|
return new b("Invalid " + Z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + W + "`, expected an object."));
|
6220
6236
|
for (var U in D)
|
@@ -6237,7 +6253,7 @@ function rf() {
|
|
6237
6253
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(F) + " at index " + R + "."
|
6238
6254
|
), s;
|
6239
6255
|
}
|
6240
|
-
function
|
6256
|
+
function P(W, Z, k, D, j) {
|
6241
6257
|
for (var U = [], _ = 0; _ < A.length; _++) {
|
6242
6258
|
var ge = A[_], B = ge(W, Z, k, D, j, r);
|
6243
6259
|
if (B == null)
|
@@ -6247,22 +6263,22 @@ function rf() {
|
|
6247
6263
|
var xe = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
6248
6264
|
return new b("Invalid " + D + " `" + j + "` supplied to " + ("`" + k + "`" + xe + "."));
|
6249
6265
|
}
|
6250
|
-
return I(
|
6266
|
+
return I(P);
|
6251
6267
|
}
|
6252
6268
|
function X() {
|
6253
|
-
function A(R, F,
|
6254
|
-
return z(R[F]) ? null : new b("Invalid " + W + " `" + Z + "` supplied to " + ("`" +
|
6269
|
+
function A(R, F, P, W, Z) {
|
6270
|
+
return z(R[F]) ? null : new b("Invalid " + W + " `" + Z + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
6255
6271
|
}
|
6256
6272
|
return I(A);
|
6257
6273
|
}
|
6258
|
-
function H(A, R, F,
|
6274
|
+
function H(A, R, F, P, W) {
|
6259
6275
|
return new b(
|
6260
|
-
(A || "React class") + ": " + R + " type `" + F + "." +
|
6276
|
+
(A || "React class") + ": " + R + " type `" + F + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
6261
6277
|
);
|
6262
6278
|
}
|
6263
6279
|
function q(A) {
|
6264
|
-
function R(F,
|
6265
|
-
var D = F[
|
6280
|
+
function R(F, P, W, Z, k) {
|
6281
|
+
var D = F[P], j = oe(D);
|
6266
6282
|
if (j !== "object")
|
6267
6283
|
return new b("Invalid " + Z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + W + "`, expected `object`."));
|
6268
6284
|
for (var U in A) {
|
@@ -6278,18 +6294,18 @@ function rf() {
|
|
6278
6294
|
return I(R);
|
6279
6295
|
}
|
6280
6296
|
function $(A) {
|
6281
|
-
function R(F,
|
6282
|
-
var D = F[
|
6297
|
+
function R(F, P, W, Z, k) {
|
6298
|
+
var D = F[P], j = oe(D);
|
6283
6299
|
if (j !== "object")
|
6284
6300
|
return new b("Invalid " + Z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + W + "`, expected `object`."));
|
6285
|
-
var U = t({}, F[
|
6301
|
+
var U = t({}, F[P], A);
|
6286
6302
|
for (var _ in U) {
|
6287
6303
|
var ge = A[_];
|
6288
6304
|
if (i(A, _) && typeof ge != "function")
|
6289
6305
|
return H(W, Z, k, _, de(ge));
|
6290
6306
|
if (!ge)
|
6291
6307
|
return new b(
|
6292
|
-
"Invalid " + Z + " `" + k + "` key `" + _ + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(F[
|
6308
|
+
"Invalid " + Z + " `" + k + "` key `" + _ + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(F[P], null, " ") + `
|
6293
6309
|
Valid keys: ` + JSON.stringify(Object.keys(A), null, " ")
|
6294
6310
|
);
|
6295
6311
|
var B = ge(D, _, W, Z, k + "." + _, r);
|
@@ -6315,14 +6331,14 @@ Valid keys: ` + JSON.stringify(Object.keys(A), null, " ")
|
|
6315
6331
|
return !0;
|
6316
6332
|
var R = d(A);
|
6317
6333
|
if (R) {
|
6318
|
-
var F = R.call(A),
|
6334
|
+
var F = R.call(A), P;
|
6319
6335
|
if (R !== A.entries) {
|
6320
|
-
for (; !(
|
6321
|
-
if (!z(
|
6336
|
+
for (; !(P = F.next()).done; )
|
6337
|
+
if (!z(P.value))
|
6322
6338
|
return !1;
|
6323
6339
|
} else
|
6324
|
-
for (; !(
|
6325
|
-
var W =
|
6340
|
+
for (; !(P = F.next()).done; ) {
|
6341
|
+
var W = P.value;
|
6326
6342
|
if (W && !z(W[1]))
|
6327
6343
|
return !1;
|
6328
6344
|
}
|
@@ -6372,11 +6388,11 @@ Valid keys: ` + JSON.stringify(Object.keys(A), null, " ")
|
|
6372
6388
|
return g.checkPropTypes = n, g.resetWarningCache = n.resetWarningCache, g.PropTypes = g, g;
|
6373
6389
|
}, Gn;
|
6374
6390
|
}
|
6375
|
-
var Fn,
|
6391
|
+
var Fn, Fo;
|
6376
6392
|
function of() {
|
6377
|
-
if (
|
6378
|
-
|
6379
|
-
var e = /* @__PURE__ */
|
6393
|
+
if (Fo) return Fn;
|
6394
|
+
Fo = 1;
|
6395
|
+
var e = /* @__PURE__ */ fr();
|
6380
6396
|
function t() {
|
6381
6397
|
}
|
6382
6398
|
function r() {
|
@@ -6420,15 +6436,15 @@ function of() {
|
|
6420
6436
|
return a.PropTypes = a, a;
|
6421
6437
|
}, Fn;
|
6422
6438
|
}
|
6423
|
-
var
|
6439
|
+
var Oo;
|
6424
6440
|
function af() {
|
6425
|
-
if (
|
6426
|
-
if (
|
6427
|
-
var e =
|
6428
|
-
|
6441
|
+
if (Oo) return Ot.exports;
|
6442
|
+
if (Oo = 1, process.env.NODE_ENV !== "production") {
|
6443
|
+
var e = rr(), t = !0;
|
6444
|
+
Ot.exports = /* @__PURE__ */ rf()(e.isElement, t);
|
6429
6445
|
} else
|
6430
|
-
|
6431
|
-
return
|
6446
|
+
Ot.exports = /* @__PURE__ */ of()();
|
6447
|
+
return Ot.exports;
|
6432
6448
|
}
|
6433
6449
|
var sf = /* @__PURE__ */ af();
|
6434
6450
|
const L = /* @__PURE__ */ Qt(sf);
|
@@ -6481,7 +6497,7 @@ function cf(e, t) {
|
|
6481
6497
|
function lf(e, t, r) {
|
6482
6498
|
return process.env.NODE_ENV !== "production" && typeof console < "u" && console.warn("Deprecation warning: arrayMove will no longer be exported by 'react-sortable-hoc' in the next major release. Please install the `array-move` package locally instead. https://www.npmjs.com/package/array-move"), e = e.slice(), e.splice(r < 0 ? e.length + r : r, 0, e.splice(t, 1)[0]), e;
|
6483
6499
|
}
|
6484
|
-
function
|
6500
|
+
function Ji(e, t) {
|
6485
6501
|
return Object.keys(e).reduce(function(r, i) {
|
6486
6502
|
return t.indexOf(i) === -1 && (r[i] = e[i]), r;
|
6487
6503
|
}, {});
|
@@ -6490,7 +6506,7 @@ var et = {
|
|
6490
6506
|
end: ["touchend", "touchcancel", "mouseup"],
|
6491
6507
|
move: ["touchmove", "mousemove"],
|
6492
6508
|
start: ["touchstart", "mousedown"]
|
6493
|
-
},
|
6509
|
+
}, _i = function() {
|
6494
6510
|
if (typeof window > "u" || typeof document > "u")
|
6495
6511
|
return "";
|
6496
6512
|
var e = window.getComputedStyle(document.documentElement, "") || ["-moz-hidden-iframe"], t = (Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/) || e.OLink === "" && ["", "o"])[1];
|
@@ -6501,16 +6517,16 @@ var et = {
|
|
6501
6517
|
return t && t.length ? t[0].toUpperCase() + t.substr(1) : "";
|
6502
6518
|
}
|
6503
6519
|
}();
|
6504
|
-
function
|
6520
|
+
function Pt(e, t) {
|
6505
6521
|
Object.keys(t).forEach(function(r) {
|
6506
6522
|
e.style[r] = t[r];
|
6507
6523
|
});
|
6508
6524
|
}
|
6509
6525
|
function Vt(e, t) {
|
6510
|
-
e.style["".concat(
|
6526
|
+
e.style["".concat(_i, "Transform")] = t == null ? "" : "translate3d(".concat(t.x, "px,").concat(t.y, "px,0)");
|
6511
6527
|
}
|
6512
|
-
function
|
6513
|
-
e.style["".concat(
|
6528
|
+
function On(e, t) {
|
6529
|
+
e.style["".concat(_i, "TransitionDuration")] = t == null ? "" : "".concat(t, "ms");
|
6514
6530
|
}
|
6515
6531
|
function bt(e, t) {
|
6516
6532
|
for (; e; ) {
|
@@ -6520,7 +6536,7 @@ function bt(e, t) {
|
|
6520
6536
|
}
|
6521
6537
|
return null;
|
6522
6538
|
}
|
6523
|
-
function
|
6539
|
+
function Po(e, t, r) {
|
6524
6540
|
return Math.max(e, Math.min(r, t));
|
6525
6541
|
}
|
6526
6542
|
function nt(e) {
|
@@ -6535,11 +6551,11 @@ function df(e) {
|
|
6535
6551
|
top: nt(t.marginTop)
|
6536
6552
|
};
|
6537
6553
|
}
|
6538
|
-
function
|
6554
|
+
function pr(e, t) {
|
6539
6555
|
var r = t.displayName || t.name;
|
6540
6556
|
return r ? "".concat(e, "(").concat(r, ")") : e;
|
6541
6557
|
}
|
6542
|
-
function
|
6558
|
+
function Pn(e, t) {
|
6543
6559
|
var r = e.getBoundingClientRect();
|
6544
6560
|
return {
|
6545
6561
|
top: r.top + t.top,
|
@@ -6577,7 +6593,7 @@ function Xt(e, t) {
|
|
6577
6593
|
function pf(e, t, r) {
|
6578
6594
|
return e < r && e > t ? e - 1 : e > r && e < t ? e + 1 : e;
|
6579
6595
|
}
|
6580
|
-
function
|
6596
|
+
function Vo(e) {
|
6581
6597
|
var t = e.lockOffset, r = e.width, i = e.height, n = t, a = t, s = "px";
|
6582
6598
|
if (typeof t == "string") {
|
6583
6599
|
var o = /^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);
|
@@ -6592,11 +6608,11 @@ function gf(e) {
|
|
6592
6608
|
var t = e.height, r = e.width, i = e.lockOffset, n = Array.isArray(i) ? i : [i, i];
|
6593
6609
|
$e(n.length === 2, "lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s", i);
|
6594
6610
|
var a = me(n, 2), s = a[0], o = a[1];
|
6595
|
-
return [
|
6611
|
+
return [Vo({
|
6596
6612
|
height: t,
|
6597
6613
|
lockOffset: s,
|
6598
6614
|
width: r
|
6599
|
-
}),
|
6615
|
+
}), Vo({
|
6600
6616
|
height: t,
|
6601
6617
|
lockOffset: o,
|
6602
6618
|
width: r
|
@@ -6608,8 +6624,8 @@ function bf(e) {
|
|
6608
6624
|
return r.test(t[n]);
|
6609
6625
|
});
|
6610
6626
|
}
|
6611
|
-
function
|
6612
|
-
return e instanceof HTMLElement ? bf(e) ? e :
|
6627
|
+
function Ui(e) {
|
6628
|
+
return e instanceof HTMLElement ? bf(e) ? e : Ui(e.parentNode) : null;
|
6613
6629
|
}
|
6614
6630
|
function hf(e) {
|
6615
6631
|
var t = window.getComputedStyle(e);
|
@@ -6638,7 +6654,7 @@ var ze = {
|
|
6638
6654
|
Select: "SELECT"
|
6639
6655
|
};
|
6640
6656
|
function mf(e) {
|
6641
|
-
var t = "input, textarea, select, canvas, [contenteditable]", r = e.querySelectorAll(t), i = e.cloneNode(!0), n =
|
6657
|
+
var t = "input, textarea, select, canvas, [contenteditable]", r = e.querySelectorAll(t), i = e.cloneNode(!0), n = qn(i.querySelectorAll(t));
|
6642
6658
|
return n.forEach(function(a, s) {
|
6643
6659
|
if (a.type !== "file" && (a.value = r[s].value), a.type === "radio" && a.name && (a.name = "__sortableClone__".concat(a.name)), a.tagName === Je.Canvas && r[s].width > 0 && r[s].height > 0) {
|
6644
6660
|
var o = a.getContext("2d");
|
@@ -6679,9 +6695,9 @@ function vf(e) {
|
|
6679
6695
|
}, this.props));
|
6680
6696
|
}
|
6681
6697
|
}]), a;
|
6682
|
-
}($t), ne(t, "displayName",
|
6698
|
+
}($t), ne(t, "displayName", pr("sortableHandle", e)), r;
|
6683
6699
|
}
|
6684
|
-
function
|
6700
|
+
function ko(e) {
|
6685
6701
|
return e.sortableHandle != null;
|
6686
6702
|
}
|
6687
6703
|
var If = function() {
|
@@ -6730,7 +6746,7 @@ function Cf(e) {
|
|
6730
6746
|
return r.contentEditable === "true";
|
6731
6747
|
}));
|
6732
6748
|
}
|
6733
|
-
var
|
6749
|
+
var $i = {
|
6734
6750
|
axis: L.oneOf(["x", "y", "xy"]),
|
6735
6751
|
contentWindow: L.any,
|
6736
6752
|
disableAutoscroll: L.bool,
|
@@ -6762,7 +6778,7 @@ var _i = {
|
|
6762
6778
|
updateBeforeSortStart: L.func,
|
6763
6779
|
useDragHandle: L.bool,
|
6764
6780
|
useWindowAsScrollContainer: L.bool
|
6765
|
-
},
|
6781
|
+
}, Qi = {
|
6766
6782
|
lift: [ze.SPACE],
|
6767
6783
|
drop: [ze.SPACE],
|
6768
6784
|
cancel: [ze.ESC],
|
@@ -6778,11 +6794,11 @@ var _i = {
|
|
6778
6794
|
lockToContainerEdges: !1,
|
6779
6795
|
pressDelay: 0,
|
6780
6796
|
pressThreshold: 5,
|
6781
|
-
keyCodes:
|
6797
|
+
keyCodes: Qi,
|
6782
6798
|
shouldCancelStart: Cf,
|
6783
6799
|
transitionDuration: 300,
|
6784
6800
|
useWindowAsScrollContainer: !1
|
6785
|
-
}, wf = Object.keys(
|
6801
|
+
}, wf = Object.keys($i);
|
6786
6802
|
function Af(e) {
|
6787
6803
|
$e(!(e.distance && e.pressDelay), "Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.");
|
6788
6804
|
}
|
@@ -6794,10 +6810,10 @@ function Ef(e, t) {
|
|
6794
6810
|
}
|
6795
6811
|
return r && r.then ? r.then(t.bind(null, !1), t.bind(null, !0)) : t(!1, value);
|
6796
6812
|
}
|
6797
|
-
var
|
6813
|
+
var Ki = Uo({
|
6798
6814
|
manager: {}
|
6799
6815
|
});
|
6800
|
-
function
|
6816
|
+
function qi(e) {
|
6801
6817
|
var t, r, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
6802
6818
|
withRef: !1
|
6803
6819
|
};
|
@@ -6814,7 +6830,7 @@ function Qi(e) {
|
|
6814
6830
|
});
|
6815
6831
|
if (g && g.sortableInfo && o.nodeIsChild(g) && !o.state.sorting) {
|
6816
6832
|
var h = o.props.useDragHandle, b = g.sortableInfo, I = b.index, v = b.collection, x = b.disabled;
|
6817
|
-
if (x || h && !bt(c.target,
|
6833
|
+
if (x || h && !bt(c.target, ko))
|
6818
6834
|
return;
|
6819
6835
|
o.manager.active = {
|
6820
6836
|
collection: v,
|
@@ -6865,7 +6881,7 @@ function Qi(e) {
|
|
6865
6881
|
}, o.initialWindowScroll = {
|
6866
6882
|
left: window.pageXOffset,
|
6867
6883
|
top: window.pageYOffset
|
6868
|
-
}, o.helper = o.helperContainer.appendChild(mf(y)),
|
6884
|
+
}, o.helper = o.helperContainer.appendChild(mf(y)), Pt(o.helper, {
|
6869
6885
|
boxSizing: "border-box",
|
6870
6886
|
height: "".concat(o.height, "px"),
|
6871
6887
|
left: "".concat(o.boundingClientRect.left - H.left, "px"),
|
@@ -6873,7 +6889,7 @@ function Qi(e) {
|
|
6873
6889
|
position: "fixed",
|
6874
6890
|
top: "".concat(o.boundingClientRect.top - H.top, "px"),
|
6875
6891
|
width: "".concat(o.width, "px")
|
6876
|
-
}), E && o.helper.focus(), v && (o.sortableGhost = y,
|
6892
|
+
}), E && o.helper.focus(), v && (o.sortableGhost = y, Pt(y, {
|
6877
6893
|
opacity: 0,
|
6878
6894
|
visibility: "hidden"
|
6879
6895
|
})), o.minTranslate = {}, o.maxTranslate = {}, E) {
|
@@ -6903,7 +6919,7 @@ function Qi(e) {
|
|
6903
6919
|
nodes: o.manager.getOrderedRefs(),
|
6904
6920
|
helper: o.helper
|
6905
6921
|
}, c), E && o.keyMove(0);
|
6906
|
-
}, g = o.props, h = g.axis, b = g.getHelperDimensions, I = g.helperClass, v = g.hideSortableGhost, x = g.updateBeforeSortStart, w = g.onSortStart, C = g.useWindowAsScrollContainer, y = l.node, T = l.collection, E = o.manager.isKeySorting,
|
6922
|
+
}, g = o.props, h = g.axis, b = g.getHelperDimensions, I = g.helperClass, v = g.hideSortableGhost, x = g.updateBeforeSortStart, w = g.onSortStart, C = g.useWindowAsScrollContainer, y = l.node, T = l.collection, E = o.manager.isKeySorting, O = function() {
|
6907
6923
|
if (typeof x == "function") {
|
6908
6924
|
o._awaitingUpdateBeforeSortStart = !0;
|
6909
6925
|
var K = Ef(function() {
|
@@ -6923,7 +6939,7 @@ function Qi(e) {
|
|
6923
6939
|
});
|
6924
6940
|
}
|
6925
6941
|
}();
|
6926
|
-
return
|
6942
|
+
return O && O.then ? O.then(p) : p(O);
|
6927
6943
|
}
|
6928
6944
|
}();
|
6929
6945
|
return Promise.resolve(d && d.then ? d.then(function() {
|
@@ -6940,13 +6956,13 @@ function Qi(e) {
|
|
6940
6956
|
return o.listenerNode.removeEventListener(y, o.handleSortMove);
|
6941
6957
|
}), et.end.forEach(function(y) {
|
6942
6958
|
return o.listenerNode.removeEventListener(y, o.handleSortEnd);
|
6943
|
-
}))), o.helper.parentNode.removeChild(o.helper), d && o.sortableGhost &&
|
6959
|
+
}))), o.helper.parentNode.removeChild(o.helper), d && o.sortableGhost && Pt(o.sortableGhost, {
|
6944
6960
|
opacity: "",
|
6945
6961
|
visibility: ""
|
6946
6962
|
});
|
6947
6963
|
for (var v = 0, x = I.length; v < x; v++) {
|
6948
6964
|
var w = I[v], C = w.node;
|
6949
|
-
w.edgeOffset = null, w.boundingClientRect = null, Vt(C, null),
|
6965
|
+
w.edgeOffset = null, w.boundingClientRect = null, Vt(C, null), On(C, null), w.translate = null;
|
6950
6966
|
}
|
6951
6967
|
o.autoScroller.clear(), o.manager.active = null, o.manager.isKeySorting = !1, o.setState({
|
6952
6968
|
sorting: !1,
|
@@ -6979,7 +6995,7 @@ function Qi(e) {
|
|
6979
6995
|
}), ne(Q(Q(o)), "onAutoScroll", function(c) {
|
6980
6996
|
o.translate.x += c.left, o.translate.y += c.top, o.animateNodes();
|
6981
6997
|
}), ne(Q(Q(o)), "handleKeyDown", function(c) {
|
6982
|
-
var l = c.keyCode, d = o.props, p = d.shouldCancelStart, g = d.keyCodes, h = g === void 0 ? {} : g, b = An({},
|
6998
|
+
var l = c.keyCode, d = o.props, p = d.shouldCancelStart, g = d.keyCodes, h = g === void 0 ? {} : g, b = An({}, Qi, h);
|
6983
6999
|
o.manager.active && !o.manager.isKeySorting || !o.manager.active && (!b.lift.includes(l) || p(c) || !o.isValidSortingTarget(c)) || (c.stopPropagation(), c.preventDefault(), b.lift.includes(l) && !o.manager.active ? o.keyLift(c) : b.drop.includes(l) && o.manager.active ? o.keyDrop(c) : b.cancel.includes(l) ? (o.newIndex = o.manager.active.index, o.keyDrop(c)) : b.up.includes(l) ? o.keyMove(-1) : b.down.includes(l) && o.keyMove(1));
|
6984
7000
|
}), ne(Q(Q(o)), "keyLift", function(c) {
|
6985
7001
|
var l = c.target, d = bt(l, function(b) {
|
@@ -6994,9 +7010,9 @@ function Qi(e) {
|
|
6994
7010
|
if (!(p < 0 || p > d)) {
|
6995
7011
|
o.prevIndex = g, o.newIndex = p;
|
6996
7012
|
var h = pf(o.newIndex, o.prevIndex, o.index), b = l.find(function(E) {
|
6997
|
-
var
|
6998
|
-
return
|
6999
|
-
}), I = b.node, v = o.containerScrollDelta, x = b.boundingClientRect ||
|
7013
|
+
var O = E.node;
|
7014
|
+
return O.sortableInfo.index === h;
|
7015
|
+
}), I = b.node, v = o.containerScrollDelta, x = b.boundingClientRect || Pn(I, v), w = b.translate || {
|
7000
7016
|
x: 0,
|
7001
7017
|
y: 0
|
7002
7018
|
}, C = {
|
@@ -7020,7 +7036,7 @@ function Qi(e) {
|
|
7020
7036
|
var l = o.props.useDragHandle, d = c.target, p = bt(d, function(g) {
|
7021
7037
|
return g.sortableInfo != null;
|
7022
7038
|
});
|
7023
|
-
return p && p.sortableInfo && !p.sortableInfo.disabled && (l ?
|
7039
|
+
return p && p.sortableInfo && !p.sortableInfo.disabled && (l ? ko(d) : d.sortableInfo);
|
7024
7040
|
});
|
7025
7041
|
var u = new uf();
|
7026
7042
|
return Af(s), o.manager = u, o.wrappedInstance = _n(), o.sortableContextValue = {
|
@@ -7038,7 +7054,7 @@ function Qi(e) {
|
|
7038
7054
|
Promise.resolve(c).then(function(l) {
|
7039
7055
|
o.container = l, o.document = o.container.ownerDocument || document;
|
7040
7056
|
var d = o.props.contentWindow || o.document.defaultView || window;
|
7041
|
-
o.contentWindow = typeof d == "function" ? d() : d, o.scrollContainer = u ? o.document.scrollingElement || o.document.documentElement :
|
7057
|
+
o.contentWindow = typeof d == "function" ? d() : d, o.scrollContainer = u ? o.document.scrollingElement || o.document.documentElement : Ui(o.container) || o.container, o.autoScroller = new If(o.scrollContainer, o.onAutoScroll), Object.keys(o.events).forEach(function(p) {
|
7042
7058
|
return et[p].forEach(function(g) {
|
7043
7059
|
return o.container.addEventListener(g, o.events[p], !1);
|
7044
7060
|
});
|
@@ -7070,13 +7086,13 @@ function Qi(e) {
|
|
7070
7086
|
}), C = me(w, 2), y = C[0], T = C[1], E = {
|
7071
7087
|
x: this.width / 2 - y.x,
|
7072
7088
|
y: this.height / 2 - y.y
|
7073
|
-
},
|
7089
|
+
}, O = {
|
7074
7090
|
x: this.width / 2 - T.x,
|
7075
7091
|
y: this.height / 2 - T.y
|
7076
7092
|
};
|
7077
|
-
x.x =
|
7093
|
+
x.x = Po(this.minTranslate.x + E.x, this.maxTranslate.x - O.x, x.x), x.y = Po(this.minTranslate.y + E.y, this.maxTranslate.y - O.y, x.y);
|
7078
7094
|
}
|
7079
|
-
c === "x" ? x.y = 0 : c === "y" && (x.x = 0), b && h && !I &&
|
7095
|
+
c === "x" ? x.y = 0 : c === "y" && (x.x = 0), b && h && !I && On(this.helper, h), Vt(this.helper, x);
|
7080
7096
|
}
|
7081
7097
|
}, {
|
7082
7098
|
key: "animateNodes",
|
@@ -7090,20 +7106,20 @@ function Qi(e) {
|
|
7090
7106
|
var w = g[v].node, C = w.sortableInfo.index, y = w.offsetWidth, T = w.offsetHeight, E = {
|
7091
7107
|
height: this.height > T ? T / 2 : this.height / 2,
|
7092
7108
|
width: this.width > y ? y / 2 : this.width / 2
|
7093
|
-
},
|
7109
|
+
}, O = b && C > this.index && C <= I, K = b && C < this.index && C >= I, X = {
|
7094
7110
|
x: 0,
|
7095
7111
|
y: 0
|
7096
7112
|
}, H = g[v].edgeOffset;
|
7097
|
-
H || (H = Xt(w, this.container), g[v].edgeOffset = H, b && (g[v].boundingClientRect =
|
7113
|
+
H || (H = Xt(w, this.container), g[v].edgeOffset = H, b && (g[v].boundingClientRect = Pn(w, d)));
|
7098
7114
|
var q = v < g.length - 1 && g[v + 1], $ = v > 0 && g[v - 1];
|
7099
|
-
if (q && !q.edgeOffset && (q.edgeOffset = Xt(q.node, this.container), b && (q.boundingClientRect =
|
7100
|
-
c && (this.sortableGhost = w,
|
7115
|
+
if (q && !q.edgeOffset && (q.edgeOffset = Xt(q.node, this.container), b && (q.boundingClientRect = Pn(q.node, d))), C === this.index) {
|
7116
|
+
c && (this.sortableGhost = w, Pt(w, {
|
7101
7117
|
opacity: 0,
|
7102
7118
|
visibility: "hidden"
|
7103
7119
|
}));
|
7104
7120
|
continue;
|
7105
7121
|
}
|
7106
|
-
u &&
|
7122
|
+
u && On(w, u), this.axis.x ? this.axis.y ? K || C < this.index && (h.left + p.left - E.width <= H.left && h.top + p.top <= H.top + E.height || h.top + p.top + E.height <= H.top) ? (X.x = this.width + this.marginOffset.x, H.left + X.x > this.containerBoundingRect.width - E.width && q && (X.x = q.edgeOffset.left - H.left, X.y = q.edgeOffset.top - H.top), this.newIndex === null && (this.newIndex = C)) : (O || C > this.index && (h.left + p.left + E.width >= H.left && h.top + p.top + E.height >= H.top || h.top + p.top + E.height >= H.top + T)) && (X.x = -(this.width + this.marginOffset.x), H.left + X.x < this.containerBoundingRect.left + E.width && $ && (X.x = $.edgeOffset.left - H.left, X.y = $.edgeOffset.top - H.top), this.newIndex = C) : O || C > this.index && h.left + p.left + E.width >= H.left ? (X.x = -(this.width + this.marginOffset.x), this.newIndex = C) : (K || C < this.index && h.left + p.left <= H.left + E.width) && (X.x = this.width + this.marginOffset.x, this.newIndex == null && (this.newIndex = C)) : this.axis.y && (O || C > this.index && h.top + p.top + E.height >= H.top ? (X.y = -(this.height + this.marginOffset.y), this.newIndex = C) : (K || C < this.index && h.top + p.top <= H.top + E.height) && (X.y = this.height + this.marginOffset.y, this.newIndex == null && (this.newIndex = C))), Vt(w, X), g[v].translate = X;
|
7107
7123
|
}
|
7108
7124
|
this.newIndex == null && (this.newIndex = this.index), b && (this.newIndex = I);
|
7109
7125
|
var z = b ? this.prevIndex : I;
|
@@ -7132,11 +7148,11 @@ function Qi(e) {
|
|
7132
7148
|
key: "render",
|
7133
7149
|
value: function() {
|
7134
7150
|
var o = i.withRef ? this.wrappedInstance : null;
|
7135
|
-
return Lt(
|
7151
|
+
return Lt(Ki.Provider, {
|
7136
7152
|
value: this.sortableContextValue
|
7137
7153
|
}, Lt(e, N({
|
7138
7154
|
ref: o
|
7139
|
-
},
|
7155
|
+
}, Ji(this.props, wf))));
|
7140
7156
|
}
|
7141
7157
|
}, {
|
7142
7158
|
key: "helperContainer",
|
@@ -7165,13 +7181,13 @@ function Qi(e) {
|
|
7165
7181
|
};
|
7166
7182
|
}
|
7167
7183
|
}]), a;
|
7168
|
-
}($t), ne(t, "displayName",
|
7184
|
+
}($t), ne(t, "displayName", pr("sortableList", e)), ne(t, "defaultProps", xf), ne(t, "propTypes", $i), r;
|
7169
7185
|
}
|
7170
|
-
var
|
7186
|
+
var ea = {
|
7171
7187
|
index: L.number.isRequired,
|
7172
7188
|
collection: L.oneOfType([L.number, L.string]),
|
7173
7189
|
disabled: L.bool
|
7174
|
-
}, Sf = Object.keys(
|
7190
|
+
}, Sf = Object.keys(ea);
|
7175
7191
|
function Tf(e) {
|
7176
7192
|
var t, r, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
7177
7193
|
withRef: !1
|
@@ -7230,28 +7246,28 @@ function Tf(e) {
|
|
7230
7246
|
var o = i.withRef ? this.wrappedInstance : null;
|
7231
7247
|
return Lt(e, N({
|
7232
7248
|
ref: o
|
7233
|
-
},
|
7249
|
+
}, Ji(this.props, Sf)));
|
7234
7250
|
}
|
7235
7251
|
}]), a;
|
7236
|
-
}($t), ne(t, "displayName",
|
7252
|
+
}($t), ne(t, "displayName", pr("sortableElement", e)), ne(t, "contextType", Ki), ne(t, "propTypes", ea), ne(t, "defaultProps", {
|
7237
7253
|
collection: 0
|
7238
7254
|
}), r;
|
7239
7255
|
}
|
7240
|
-
const
|
7256
|
+
const ta = Tf((e) => {
|
7241
7257
|
const t = (i) => {
|
7242
7258
|
i.preventDefault(), i.stopPropagation();
|
7243
7259
|
}, r = { ...e.innerProps, onMouseDown: t };
|
7244
|
-
return /* @__PURE__ */ m.jsx(
|
7245
|
-
}),
|
7246
|
-
const t =
|
7260
|
+
return /* @__PURE__ */ m.jsx(lr.MultiValue, { ...e, innerProps: r });
|
7261
|
+
}), na = vf((e) => /* @__PURE__ */ m.jsx(lr.MultiValueLabel, { ...e })), Rf = (e) => {
|
7262
|
+
const t = qi(Qd);
|
7247
7263
|
return /* @__PURE__ */ m.jsx(
|
7248
7264
|
t,
|
7249
7265
|
{
|
7250
7266
|
isMulti: !0,
|
7251
7267
|
useDragHandle: !0,
|
7252
7268
|
components: {
|
7253
|
-
MultiValue:
|
7254
|
-
MultiValueLabel:
|
7269
|
+
MultiValue: ta,
|
7270
|
+
MultiValueLabel: na
|
7255
7271
|
},
|
7256
7272
|
getHelperDimensions: ({ node: r }) => r.getBoundingClientRect(),
|
7257
7273
|
axis: "xy",
|
@@ -7263,16 +7279,16 @@ const qi = Tf((e) => {
|
|
7263
7279
|
...e
|
7264
7280
|
}
|
7265
7281
|
);
|
7266
|
-
},
|
7267
|
-
const t =
|
7282
|
+
}, Jp = (e) => {
|
7283
|
+
const t = qi(Yi);
|
7268
7284
|
return /* @__PURE__ */ m.jsx(
|
7269
7285
|
t,
|
7270
7286
|
{
|
7271
7287
|
isMulti: !0,
|
7272
7288
|
useDragHandle: !0,
|
7273
7289
|
components: {
|
7274
|
-
MultiValue:
|
7275
|
-
MultiValueLabel:
|
7290
|
+
MultiValue: ta,
|
7291
|
+
MultiValueLabel: na
|
7276
7292
|
},
|
7277
7293
|
getHelperDimensions: ({ node: r }) => r.getBoundingClientRect(),
|
7278
7294
|
axis: "xy",
|
@@ -7282,7 +7298,7 @@ const qi = Tf((e) => {
|
|
7282
7298
|
...e
|
7283
7299
|
}
|
7284
7300
|
);
|
7285
|
-
}, Bf = window.wp.element.createContext, Xe = window.wp.element.useCallback, Gf = window.wp.element.useContext, Ff = window.wp.element.useState,
|
7301
|
+
}, Bf = window.wp.element.createContext, Xe = window.wp.element.useCallback, Gf = window.wp.element.useContext, Ff = window.wp.element.useState, Of = window.wp.element.useEffect, zn = window.wp.element.useMemo, ct = window.wp.element.memo, yt = window.wp.components.__experimentalDivider, Pf = window.wp.components.RangeControl, Vf = window.wp.components.RadioControl, Wo = window.wp.components.SelectControl, kf = window.wp.data.useSelect, ra = Bf({}), Ct = ct(({
|
7286
7302
|
attributes: e,
|
7287
7303
|
setAttributes: t,
|
7288
7304
|
children: r
|
@@ -7294,9 +7310,9 @@ const qi = Tf((e) => {
|
|
7294
7310
|
setAttributes: t,
|
7295
7311
|
updateAttribute: i
|
7296
7312
|
}), [e]);
|
7297
|
-
return /* @__PURE__ */ m.jsx(
|
7313
|
+
return /* @__PURE__ */ m.jsx(ra.Provider, { value: n, children: r });
|
7298
7314
|
}), xt = () => {
|
7299
|
-
const e = Gf(
|
7315
|
+
const e = Gf(ra);
|
7300
7316
|
if (!e)
|
7301
7317
|
throw new Error("Query control components must be used within a DataQueryControls component");
|
7302
7318
|
return e;
|
@@ -7357,7 +7373,7 @@ const qi = Tf((e) => {
|
|
7357
7373
|
attributeName: t
|
7358
7374
|
}) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7359
7375
|
/* @__PURE__ */ m.jsx(
|
7360
|
-
|
7376
|
+
Yi,
|
7361
7377
|
{
|
7362
7378
|
isMulti: !0,
|
7363
7379
|
options: l,
|
@@ -7379,9 +7395,9 @@ const qi = Tf((e) => {
|
|
7379
7395
|
disabled: n = !1,
|
7380
7396
|
render: a = null
|
7381
7397
|
}) => {
|
7382
|
-
const { attributes: s, updateAttribute: o } = xt(), u = s[t] || [], c = Xe(async (h) => await
|
7383
|
-
|
7384
|
-
|
7398
|
+
const { attributes: s, updateAttribute: o } = xt(), u = s[t] || [], c = Xe(async (h) => await Yr(h, r), []), [l, d] = Ff([]);
|
7399
|
+
Of(() => {
|
7400
|
+
Yr("", r).then(d);
|
7385
7401
|
}, []);
|
7386
7402
|
const p = Xe(({ oldIndex: h, newIndex: b }) => {
|
7387
7403
|
const I = lf(u, h, b);
|
@@ -7436,7 +7452,7 @@ const qi = Tf((e) => {
|
|
7436
7452
|
attributeName: t
|
7437
7453
|
}) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7438
7454
|
/* @__PURE__ */ m.jsx(
|
7439
|
-
|
7455
|
+
Pf,
|
7440
7456
|
{
|
7441
7457
|
label: r,
|
7442
7458
|
value: l,
|
@@ -7481,7 +7497,7 @@ const qi = Tf((e) => {
|
|
7481
7497
|
orderAttributeName: r
|
7482
7498
|
}) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7483
7499
|
/* @__PURE__ */ m.jsx(
|
7484
|
-
|
7500
|
+
Wo,
|
7485
7501
|
{
|
7486
7502
|
label: "Order By",
|
7487
7503
|
value: c,
|
@@ -7491,7 +7507,7 @@ const qi = Tf((e) => {
|
|
7491
7507
|
}
|
7492
7508
|
),
|
7493
7509
|
/* @__PURE__ */ m.jsx(
|
7494
|
-
|
7510
|
+
Wo,
|
7495
7511
|
{
|
7496
7512
|
label: "Order",
|
7497
7513
|
value: l,
|
@@ -7537,7 +7553,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7537
7553
|
}
|
7538
7554
|
) })
|
7539
7555
|
}
|
7540
|
-
) }),
|
7556
|
+
) }), No = ({
|
7541
7557
|
hasMargin: e = !0,
|
7542
7558
|
hasPadding: t = !0,
|
7543
7559
|
disabledMargin: r = { top: !1, bottom: !1 },
|
@@ -7573,7 +7589,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7573
7589
|
onChange: l("margin", "top"),
|
7574
7590
|
disabled: r.top,
|
7575
7591
|
tooltip: n.top,
|
7576
|
-
afterIcon:
|
7592
|
+
afterIcon: Or,
|
7577
7593
|
withInputField: !1
|
7578
7594
|
}
|
7579
7595
|
),
|
@@ -7587,7 +7603,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7587
7603
|
onChange: l("margin", "bottom"),
|
7588
7604
|
disabled: r.bottom,
|
7589
7605
|
tooltip: n.bottom,
|
7590
|
-
afterIcon:
|
7606
|
+
afterIcon: Fr,
|
7591
7607
|
withInputField: !1
|
7592
7608
|
}
|
7593
7609
|
)
|
@@ -7603,7 +7619,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7603
7619
|
onChange: l("padding", "top"),
|
7604
7620
|
disabled: i.top,
|
7605
7621
|
tooltip: a.top,
|
7606
|
-
afterIcon:
|
7622
|
+
afterIcon: Or,
|
7607
7623
|
withInputField: !1
|
7608
7624
|
}
|
7609
7625
|
),
|
@@ -7617,13 +7633,13 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7617
7633
|
onChange: l("padding", "bottom"),
|
7618
7634
|
disabled: i.bottom,
|
7619
7635
|
tooltip: a.bottom,
|
7620
|
-
afterIcon:
|
7636
|
+
afterIcon: Fr,
|
7621
7637
|
withInputField: !1
|
7622
7638
|
}
|
7623
7639
|
)
|
7624
7640
|
] })
|
7625
7641
|
] });
|
7626
|
-
}, Yf = window.wp.components.TabPanel,
|
7642
|
+
}, Yf = window.wp.components.TabPanel, Do = window.wp.element.useCallback, zf = window.wp.element.useEffect, Jf = window.wp.element.useState, Mo = (e = "Desktop") => e === "Desktop" ? "desktop" : "mobile", _p = ({
|
7627
7643
|
max: e = 6,
|
7628
7644
|
min: t = -1,
|
7629
7645
|
hasMargin: r = !0,
|
@@ -7632,7 +7648,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7632
7648
|
value: a = { desktop: { margin: {}, padding: {} }, mobile: { margin: {}, padding: {} } },
|
7633
7649
|
deviceType: s
|
7634
7650
|
}) => {
|
7635
|
-
const o =
|
7651
|
+
const o = Do(
|
7636
7652
|
(p) => {
|
7637
7653
|
n({
|
7638
7654
|
desktop: p,
|
@@ -7640,7 +7656,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7640
7656
|
});
|
7641
7657
|
},
|
7642
7658
|
[n, a.mobile]
|
7643
|
-
), u =
|
7659
|
+
), u = Do(
|
7644
7660
|
(p) => {
|
7645
7661
|
n({
|
7646
7662
|
mobile: p,
|
@@ -7648,9 +7664,9 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7648
7664
|
});
|
7649
7665
|
},
|
7650
7666
|
[n, a.desktop]
|
7651
|
-
), c =
|
7667
|
+
), c = Mo(s), [l, d] = Jf(c);
|
7652
7668
|
return zf(() => {
|
7653
|
-
d(
|
7669
|
+
d(Mo());
|
7654
7670
|
}, [s]), /* @__PURE__ */ m.jsx(
|
7655
7671
|
Yf,
|
7656
7672
|
{
|
@@ -7666,7 +7682,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7666
7682
|
switch (p.name) {
|
7667
7683
|
case "desktop":
|
7668
7684
|
return /* @__PURE__ */ m.jsx(
|
7669
|
-
|
7685
|
+
No,
|
7670
7686
|
{
|
7671
7687
|
hasMargin: r,
|
7672
7688
|
hasPadding: i,
|
@@ -7679,7 +7695,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7679
7695
|
);
|
7680
7696
|
case "mobile":
|
7681
7697
|
return /* @__PURE__ */ m.jsx(
|
7682
|
-
|
7698
|
+
No,
|
7683
7699
|
{
|
7684
7700
|
hasMargin: r,
|
7685
7701
|
hasPadding: i,
|
@@ -7696,7 +7712,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7696
7712
|
}
|
7697
7713
|
}
|
7698
7714
|
);
|
7699
|
-
}, _f = window.wp.components.Notice, Uf = window.wp.components.Placeholder, $f = window.wp.components.Spinner, Qf = "No resources were found matching your criteria. Please try to adjust the query.", Kf = "No items are selected. Please use the corresponding relationship field to populate this block.",
|
7715
|
+
}, _f = window.wp.components.Notice, Uf = window.wp.components.Placeholder, $f = window.wp.components.Spinner, Qf = "No resources were found matching your criteria. Please try to adjust the query.", Kf = "No items are selected. Please use the corresponding relationship field to populate this block.", Xo = ({ message: e }) => /* @__PURE__ */ m.jsx(_f, { status: "info", isDismissible: !1, children: /* @__PURE__ */ m.jsx("p", { children: e }) }), qf = () => /* @__PURE__ */ m.jsx($f, { className: "bc-spinner" }), ep = ({
|
7700
7716
|
icon: e = "info-outline",
|
7701
7717
|
instructions: t = "Please configure the block in the sidebar.",
|
7702
7718
|
...r
|
@@ -7707,7 +7723,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7707
7723
|
instructions: t,
|
7708
7724
|
...r
|
7709
7725
|
}
|
7710
|
-
),
|
7726
|
+
), Up = ({
|
7711
7727
|
isLoading: e,
|
7712
7728
|
isEmptyResources: t,
|
7713
7729
|
isEmptySelection: r,
|
@@ -7716,7 +7732,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7716
7732
|
emptySelectionMessage: a,
|
7717
7733
|
placeholderProps: s = {},
|
7718
7734
|
children: o
|
7719
|
-
}) => e ? /* @__PURE__ */ m.jsx(qf, {}) : r ? /* @__PURE__ */ m.jsx(
|
7735
|
+
}) => e ? /* @__PURE__ */ m.jsx(qf, {}) : r ? /* @__PURE__ */ m.jsx(Xo, { message: a || Kf }) : t ? /* @__PURE__ */ m.jsx(Xo, { message: n || Qf }) : i ? /* @__PURE__ */ m.jsx(ep, { ...s }) : o, Zo = window.wp.components.SelectControl, tp = window.wp.components.ToggleControl, np = window.wp.element.useEffect, Vn = window.wp.element.useState, $p = ({
|
7720
7736
|
topDividers: e = [],
|
7721
7737
|
bottomDividers: t = [],
|
7722
7738
|
value: r = { topDivider: "", bottomDivider: "", isIncludeLine: !1 },
|
@@ -7732,7 +7748,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7732
7748
|
});
|
7733
7749
|
}, [o, c, d]), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7734
7750
|
a && /* @__PURE__ */ m.jsx(
|
7735
|
-
|
7751
|
+
Zo,
|
7736
7752
|
{
|
7737
7753
|
label: "Top Divider",
|
7738
7754
|
value: o,
|
@@ -7747,7 +7763,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7747
7763
|
}
|
7748
7764
|
),
|
7749
7765
|
s && /* @__PURE__ */ m.jsx(
|
7750
|
-
|
7766
|
+
Zo,
|
7751
7767
|
{
|
7752
7768
|
label: "Bottom Divider",
|
7753
7769
|
value: c,
|
@@ -7770,7 +7786,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7770
7786
|
}
|
7771
7787
|
)
|
7772
7788
|
] });
|
7773
|
-
}, rp = window.wp.element.useMemo, op = window.wp.components.SelectControl,
|
7789
|
+
}, rp = window.wp.element.useMemo, op = window.wp.components.SelectControl, Qp = (e) => {
|
7774
7790
|
const {
|
7775
7791
|
types: t = [Ne.IMAGE, Ne.VIDEO],
|
7776
7792
|
selectedType: r,
|
@@ -7782,8 +7798,8 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7782
7798
|
onMediaRemove: u,
|
7783
7799
|
label: c = "Media Type"
|
7784
7800
|
} = e, l = rp(
|
7785
|
-
() => t?.filter((d) =>
|
7786
|
-
label:
|
7801
|
+
() => t?.filter((d) => Lr[d])?.map((d) => ({
|
7802
|
+
label: Lr[d],
|
7787
7803
|
value: d
|
7788
7804
|
})),
|
7789
7805
|
[t]
|
@@ -7799,7 +7815,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7799
7815
|
}
|
7800
7816
|
),
|
7801
7817
|
r && /* @__PURE__ */ m.jsx(
|
7802
|
-
|
7818
|
+
ni,
|
7803
7819
|
{
|
7804
7820
|
mediaId: n,
|
7805
7821
|
mediaUrl: a,
|
@@ -7810,17 +7826,17 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7810
7826
|
}
|
7811
7827
|
)
|
7812
7828
|
] });
|
7813
|
-
}, ip = window.wp.blockEditor.BlockControls,
|
7814
|
-
const { insertBlock: i } = ap("core/block-editor"), n =
|
7815
|
-
const s =
|
7816
|
-
i(s,
|
7817
|
-
}, []), a =
|
7818
|
-
const s =
|
7819
|
-
i(s,
|
7829
|
+
}, ip = window.wp.blockEditor.BlockControls, Lo = window.wp.data.select, ap = window.wp.data.useDispatch, Ho = window.wp.blocks.createBlock, jo = window.wp.element.useCallback, sp = window.wp.components.Toolbar, Yo = window.wp.components.ToolbarButton, Kp = ({ clientId: e, blockName: t, group: r }) => {
|
7830
|
+
const { insertBlock: i } = ap("core/block-editor"), n = jo(() => {
|
7831
|
+
const s = Ho(t);
|
7832
|
+
i(s, Lo("core/block-editor").getBlockIndex(e));
|
7833
|
+
}, []), a = jo(() => {
|
7834
|
+
const s = Ho(t);
|
7835
|
+
i(s, Lo("core/block-editor").getBlockIndex(e) + 1);
|
7820
7836
|
}, []);
|
7821
7837
|
return /* @__PURE__ */ m.jsx(ip, { group: r, children: /* @__PURE__ */ m.jsxs(sp, { children: [
|
7822
7838
|
/* @__PURE__ */ m.jsx(
|
7823
|
-
|
7839
|
+
Yo,
|
7824
7840
|
{
|
7825
7841
|
icon: "insert-before",
|
7826
7842
|
label: "Add before",
|
@@ -7828,7 +7844,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7828
7844
|
}
|
7829
7845
|
),
|
7830
7846
|
/* @__PURE__ */ m.jsx(
|
7831
|
-
|
7847
|
+
Yo,
|
7832
7848
|
{
|
7833
7849
|
icon: "insert-after",
|
7834
7850
|
label: "Add after",
|
@@ -7836,7 +7852,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7836
7852
|
}
|
7837
7853
|
)
|
7838
7854
|
] }) });
|
7839
|
-
}, up = window.wp.blockEditor.InnerBlocks,
|
7855
|
+
}, up = window.wp.blockEditor.InnerBlocks, qp = (e) => {
|
7840
7856
|
const {
|
7841
7857
|
showIcon: t = !0,
|
7842
7858
|
showAppender: r = !0,
|
@@ -7845,7 +7861,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7845
7861
|
isLight: a = !1,
|
7846
7862
|
className: s
|
7847
7863
|
} = e;
|
7848
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
7864
|
+
return /* @__PURE__ */ m.jsxs("div", { className: qo("empty-block-appender", s, { "empty-block-appender--light": a }), children: [
|
7849
7865
|
/* @__PURE__ */ m.jsxs("div", { className: "empty-block-appender__content", children: [
|
7850
7866
|
t && /* @__PURE__ */ m.jsx("svg", { className: "empty-block-appender__icon", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ m.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) }),
|
7851
7867
|
/* @__PURE__ */ m.jsx("h3", { className: "empty-block-appender__title", children: i }),
|
@@ -7853,7 +7869,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7853
7869
|
] }),
|
7854
7870
|
r && /* @__PURE__ */ m.jsx("div", { className: "empty-block-appender__button", children: /* @__PURE__ */ m.jsx(up.ButtonBlockAppender, {}) })
|
7855
7871
|
] });
|
7856
|
-
},
|
7872
|
+
}, zo = window.wp.components.BaseControl, cp = window.wp.components.FocalPointPicker, kn = window.wp.element.useCallback, lp = window.wp.element.memo, eg = lp(({
|
7857
7873
|
attributes: e,
|
7858
7874
|
setAttributes: t,
|
7859
7875
|
mediaAttributeName: r = "media",
|
@@ -7883,8 +7899,8 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7883
7899
|
});
|
7884
7900
|
}, [r]);
|
7885
7901
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7886
|
-
/* @__PURE__ */ m.jsx(
|
7887
|
-
|
7902
|
+
/* @__PURE__ */ m.jsx(zo, { label: n, children: /* @__PURE__ */ m.jsx(
|
7903
|
+
ni,
|
7888
7904
|
{
|
7889
7905
|
type: Ne.IMAGE,
|
7890
7906
|
mediaId: o?.id,
|
@@ -7894,7 +7910,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7894
7910
|
...s
|
7895
7911
|
}
|
7896
7912
|
) }),
|
7897
|
-
o?.url && /* @__PURE__ */ m.jsx(
|
7913
|
+
o?.url && /* @__PURE__ */ m.jsx(zo, { label: a, children: /* @__PURE__ */ m.jsx(
|
7898
7914
|
cp,
|
7899
7915
|
{
|
7900
7916
|
__nextHasNoMarginBottom: !0,
|
@@ -7911,69 +7927,70 @@ export {
|
|
7911
7927
|
cu as AnimationRenderer,
|
7912
7928
|
Cp as ColorPaletteControl,
|
7913
7929
|
Ct as DataQueryControls,
|
7914
|
-
|
7915
|
-
|
7930
|
+
$p as DividersControl,
|
7931
|
+
qp as EmptyBlockAppender,
|
7916
7932
|
xp as IconPicker,
|
7917
7933
|
wp as ImageActions,
|
7918
7934
|
su as ImageRenderer,
|
7919
|
-
|
7935
|
+
Kp as InsertBlockToolbar,
|
7920
7936
|
Ap as LinkControl,
|
7921
7937
|
Ne as MEDIA_TYPE,
|
7922
|
-
|
7923
|
-
|
7924
|
-
|
7925
|
-
|
7926
|
-
|
7927
|
-
|
7928
|
-
|
7929
|
-
|
7938
|
+
Lr as MEDIA_TYPE_LABEL,
|
7939
|
+
ni as MediaControl,
|
7940
|
+
Qp as MediaTypeControl,
|
7941
|
+
eg as MediaWithFocalPointControl,
|
7942
|
+
Oa as PreviewControl,
|
7943
|
+
Up as ResourcesWrapper,
|
7944
|
+
_p as ResponsiveSpacingControl,
|
7945
|
+
Jp as SortableSelect,
|
7930
7946
|
Rf as SortableSelectAsync,
|
7931
|
-
|
7947
|
+
No as SpacingControl,
|
7932
7948
|
uu as VideoRenderer,
|
7933
|
-
|
7949
|
+
zp as addInnerBlocksCleanupFilter,
|
7934
7950
|
js as cleanSvgString,
|
7935
7951
|
Bp as contentAttribute,
|
7936
|
-
|
7937
|
-
|
7952
|
+
Ps as curatedCategoriesAttribute,
|
7953
|
+
Os as curatedPostsAttribute,
|
7938
7954
|
Ys as decodeHtmlEntities,
|
7939
7955
|
Gp as getAnimationAttribute,
|
7940
|
-
|
7956
|
+
Op as getBaseBackgroundAttributes,
|
7941
7957
|
Fp as getDataQueryAttributes,
|
7942
7958
|
Zp as getFiltersByNamespace,
|
7943
|
-
|
7959
|
+
Yp as getFocalPointStyle,
|
7944
7960
|
Np as getImage,
|
7945
7961
|
kp as getLinkAttributes,
|
7946
7962
|
Mp as getLocationAddress,
|
7947
|
-
|
7963
|
+
Ko as getMediaAttribute,
|
7948
7964
|
Dp as getPhoneNumber,
|
7949
7965
|
$n as getRootContainer,
|
7950
7966
|
Wp as getSlug,
|
7951
7967
|
Xp as getSpacingClasses,
|
7952
7968
|
Sp as hideRootBlockForInlineInserter,
|
7953
7969
|
Rp as linkControlAttribute,
|
7954
|
-
|
7955
|
-
|
7970
|
+
Yr as loadSelectOptions,
|
7971
|
+
Vs as numberOfPostsAttribute,
|
7956
7972
|
Vp as responsiveSpacingAttribute,
|
7957
|
-
|
7958
|
-
|
7959
|
-
|
7973
|
+
ws as rootBlockVisibilityFilter,
|
7974
|
+
Lp as setBlockForPostType,
|
7975
|
+
Rs as setRootBlockAppender,
|
7976
|
+
Dr as setRootBlockFilter,
|
7960
7977
|
Ep as setRootBlockForPostTypes,
|
7961
7978
|
Tp as showRootBlockForInlineInserter,
|
7962
|
-
|
7963
|
-
|
7964
|
-
|
7965
|
-
|
7966
|
-
|
7979
|
+
Pp as spacingAttribute,
|
7980
|
+
Hp as unsetBlockForPostType,
|
7981
|
+
Bs as unsetRootBlockAppender,
|
7982
|
+
Mr as unsetRootBlockFilter,
|
7983
|
+
jp as updateBlockApiVersion,
|
7967
7984
|
hp as useAccordionItem,
|
7968
7985
|
vp as useAllowedBlocks,
|
7969
7986
|
Ip as useChildBlockPosition,
|
7970
7987
|
bp as useDataQuery,
|
7971
7988
|
yp as useFilterBlocks,
|
7972
|
-
|
7989
|
+
Na as useParentBlock,
|
7973
7990
|
pp as usePreviewControl,
|
7974
7991
|
gp as useSlider,
|
7975
7992
|
mp as useTabs,
|
7976
|
-
|
7977
|
-
|
7993
|
+
Ma as useThemeColors,
|
7994
|
+
As as waitForRootContainer
|
7978
7995
|
};
|
7979
7996
|
//# sourceMappingURL=index.js.map
|