@secretstache/wordpress-gutenberg 0.6.2 → 0.6.3
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 +595 -585
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/helpers.js +20 -2
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;
|
@@ -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.", Pa = (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
|
+
}, Oa = window.wp.element.useCallback, Va = window.wp.element.useState, pp = () => {
|
654
|
+
const [e, t] = Va(!1), r = Oa(() => {
|
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
|
+
Pa,
|
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
|
+
] }), Pr = () => /* @__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, Or = 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(Or), {
|
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(Or);
|
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
|
+
}), Ps = {
|
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
|
+
}, Os = {
|
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,9 +1208,9 @@ 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 ? Ps : {},
|
1212
|
+
...i ? Os : {},
|
1213
|
+
...n ? Vs : {}
|
1214
1214
|
};
|
1215
1215
|
}, Pp = ({
|
1216
1216
|
hasBackgroundMedia: e = !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: {
|
@@ -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,7 +1426,7 @@ 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, t = "md:", r = "") =>
|
1429
|
+
}, Xp = (e, t = "md:", r = "") => qo({
|
1430
1430
|
[`${t}mt-${e?.desktop?.margin?.top}`]: e?.desktop?.margin?.top !== -1,
|
1431
1431
|
[`${t}mb-${e?.desktop?.margin?.bottom}`]: e?.desktop?.margin?.bottom !== -1,
|
1432
1432
|
[`${t}pt-${e?.desktop?.padding?.top}`]: e?.desktop?.padding?.top !== -1,
|
@@ -1437,27 +1437,36 @@ const Qo = /* @__PURE__ */ Qt(Ds), Ms = window.wp.hooks.filters, Xs = window.wp.
|
|
1437
1437
|
[`${r}pb-${e?.mobile?.padding?.bottom}`]: e?.mobile?.padding?.bottom !== -1
|
1438
1438
|
}), Zp = (e) => {
|
1439
1439
|
const t = [];
|
1440
|
-
return Object.entries(
|
1440
|
+
return Object.entries(Zs).forEach(([r, i]) => {
|
1441
1441
|
(i.handlers || []).forEach((a) => {
|
1442
1442
|
a.namespace.startsWith(e) && t.push({ filterName: r, namespace: a.namespace });
|
1443
1443
|
});
|
1444
1444
|
}), t;
|
1445
1445
|
}, Lp = (e, t) => {
|
1446
|
-
const r =
|
1446
|
+
const r = ti(
|
1447
|
+
() => {
|
1448
|
+
const i = ei("core/editor").getCurrentPostType();
|
1449
|
+
i && i !== t && Qn(e) && (Kn(e), r());
|
1450
|
+
},
|
1451
|
+
"core/editor"
|
1452
|
+
);
|
1453
|
+
}, Hp = (e, t) => {
|
1454
|
+
const r = ti(
|
1447
1455
|
() => {
|
1448
|
-
|
1456
|
+
const i = ei("core/editor").getCurrentPostType();
|
1457
|
+
i && i === t && Qn(e) && (Kn(e), r());
|
1449
1458
|
},
|
1450
1459
|
"core/editor"
|
1451
1460
|
);
|
1452
1461
|
};
|
1453
|
-
function
|
1454
|
-
const r =
|
1455
|
-
r && (
|
1462
|
+
function jp(e, t = 3) {
|
1463
|
+
const r = Qn(e);
|
1464
|
+
r && (Kn(e), Hs(e, {
|
1456
1465
|
...r,
|
1457
1466
|
apiVersion: t
|
1458
1467
|
}));
|
1459
1468
|
}
|
1460
|
-
const
|
1469
|
+
const Yp = (e) => {
|
1461
1470
|
if (!e)
|
1462
1471
|
return { objectPosition: "50% 50%" };
|
1463
1472
|
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 +1487,13 @@ function zs(e) {
|
|
1478
1487
|
var Js = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], _s = /[^A-Z0-9]+/gi;
|
1479
1488
|
function Us(e, t) {
|
1480
1489
|
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 =
|
1490
|
+
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
1491
|
d++;
|
1483
1492
|
for (; l.charAt(p - 1) === "\0"; )
|
1484
1493
|
p--;
|
1485
1494
|
return l.slice(d, p).split("\0").map(o).join(c);
|
1486
1495
|
}
|
1487
|
-
function
|
1496
|
+
function zr(e, t, r) {
|
1488
1497
|
return t instanceof RegExp ? e.replace(t, r) : t.reduce(function(i, n) {
|
1489
1498
|
return i.replace(n, r);
|
1490
1499
|
}, e);
|
@@ -1505,7 +1514,7 @@ function Ks(e, t) {
|
|
1505
1514
|
const qs = (e, t) => {
|
1506
1515
|
const r = t.displayName || t.name || "Component";
|
1507
1516
|
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,
|
1517
|
+
}, 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
1518
|
const t = Ks((r) => (i) => {
|
1510
1519
|
const { clientId: n, attributes: a, name: s } = i;
|
1511
1520
|
if (s !== e)
|
@@ -1599,7 +1608,7 @@ const qs = (e, t) => {
|
|
1599
1608
|
removeButtonLabel: s = "Remove File"
|
1600
1609
|
}) => e && t ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
1601
1610
|
/* @__PURE__ */ m.jsxs("div", { className: "bc-animation-block-json-file", onClick: i, children: [
|
1602
|
-
/* @__PURE__ */ m.jsx(au, { icon:
|
1611
|
+
/* @__PURE__ */ m.jsx(au, { icon: Ya, size: 36 }),
|
1603
1612
|
/* @__PURE__ */ m.jsx("span", { children: r })
|
1604
1613
|
] }),
|
1605
1614
|
/* @__PURE__ */ m.jsx(
|
@@ -1612,7 +1621,7 @@ const qs = (e, t) => {
|
|
1612
1621
|
children: s
|
1613
1622
|
}
|
1614
1623
|
)
|
1615
|
-
] }) : /* @__PURE__ */ m.jsx(ot, { variant: "secondary", onClick: i, children: a }),
|
1624
|
+
] }) : /* @__PURE__ */ m.jsx(ot, { variant: "secondary", onClick: i, children: a }), ni = ({
|
1616
1625
|
type: e = Ne.IMAGE,
|
1617
1626
|
label: t,
|
1618
1627
|
mediaId: r,
|
@@ -1736,19 +1745,19 @@ function lu(e, t) {
|
|
1736
1745
|
}
|
1737
1746
|
return (t === "string" ? String : Number)(e);
|
1738
1747
|
}
|
1739
|
-
function
|
1748
|
+
function ri(e) {
|
1740
1749
|
var t = lu(e, "string");
|
1741
1750
|
return _e(t) == "symbol" ? t : t + "";
|
1742
1751
|
}
|
1743
1752
|
function ne(e, t, r) {
|
1744
|
-
return (t =
|
1753
|
+
return (t = ri(t)) in e ? Object.defineProperty(e, t, {
|
1745
1754
|
value: r,
|
1746
1755
|
enumerable: !0,
|
1747
1756
|
configurable: !0,
|
1748
1757
|
writable: !0
|
1749
1758
|
}) : e[t] = r, e;
|
1750
1759
|
}
|
1751
|
-
function
|
1760
|
+
function Jr(e, t) {
|
1752
1761
|
var r = Object.keys(e);
|
1753
1762
|
if (Object.getOwnPropertySymbols) {
|
1754
1763
|
var i = Object.getOwnPropertySymbols(e);
|
@@ -1761,9 +1770,9 @@ function Yr(e, t) {
|
|
1761
1770
|
function V(e) {
|
1762
1771
|
for (var t = 1; t < arguments.length; t++) {
|
1763
1772
|
var r = arguments[t] != null ? arguments[t] : {};
|
1764
|
-
t % 2 ?
|
1773
|
+
t % 2 ? Jr(Object(r), !0).forEach(function(i) {
|
1765
1774
|
ne(e, i, r[i]);
|
1766
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
1775
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Jr(Object(r)).forEach(function(i) {
|
1767
1776
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i));
|
1768
1777
|
});
|
1769
1778
|
}
|
@@ -1772,14 +1781,14 @@ function V(e) {
|
|
1772
1781
|
function at(e, t) {
|
1773
1782
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
1774
1783
|
}
|
1775
|
-
function
|
1784
|
+
function _r(e, t) {
|
1776
1785
|
for (var r = 0; r < t.length; r++) {
|
1777
1786
|
var i = t[r];
|
1778
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e,
|
1787
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, ri(i.key), i);
|
1779
1788
|
}
|
1780
1789
|
}
|
1781
1790
|
function st(e, t, r) {
|
1782
|
-
return t &&
|
1791
|
+
return t && _r(e.prototype, t), r && _r(e, r), Object.defineProperty(e, "prototype", {
|
1783
1792
|
writable: !1
|
1784
1793
|
}), e;
|
1785
1794
|
}
|
@@ -1805,13 +1814,13 @@ function Ue(e) {
|
|
1805
1814
|
return t.__proto__ || Object.getPrototypeOf(t);
|
1806
1815
|
}, Ue(e);
|
1807
1816
|
}
|
1808
|
-
function
|
1817
|
+
function oi() {
|
1809
1818
|
try {
|
1810
1819
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
1811
1820
|
}));
|
1812
1821
|
} catch {
|
1813
1822
|
}
|
1814
|
-
return (
|
1823
|
+
return (oi = function() {
|
1815
1824
|
return !!e;
|
1816
1825
|
})();
|
1817
1826
|
}
|
@@ -1825,7 +1834,7 @@ function qt(e, t) {
|
|
1825
1834
|
return Q(e);
|
1826
1835
|
}
|
1827
1836
|
function du(e) {
|
1828
|
-
var t =
|
1837
|
+
var t = oi();
|
1829
1838
|
return function() {
|
1830
1839
|
var r, i = Ue(e);
|
1831
1840
|
if (t) {
|
@@ -1846,7 +1855,7 @@ function fu(e) {
|
|
1846
1855
|
function pu(e) {
|
1847
1856
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
1848
1857
|
}
|
1849
|
-
function
|
1858
|
+
function ii(e, t) {
|
1850
1859
|
if (e) {
|
1851
1860
|
if (typeof e == "string") return Mn(e, t);
|
1852
1861
|
var r = {}.toString.call(e).slice(8, -1);
|
@@ -1857,8 +1866,8 @@ function gu() {
|
|
1857
1866
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
1858
1867
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
1859
1868
|
}
|
1860
|
-
function
|
1861
|
-
return fu(e) || pu(e) ||
|
1869
|
+
function qn(e) {
|
1870
|
+
return fu(e) || pu(e) || ii(e) || gu();
|
1862
1871
|
}
|
1863
1872
|
function bu(e) {
|
1864
1873
|
if (e.sheet)
|
@@ -1900,11 +1909,11 @@ var mu = /* @__PURE__ */ function() {
|
|
1900
1909
|
return (n = i.parentNode) == null ? void 0 : n.removeChild(i);
|
1901
1910
|
}), this.tags = [], this.ctr = 0;
|
1902
1911
|
}, e;
|
1903
|
-
}(), we = "-ms-", Ht = "-moz-", ie = "-webkit-",
|
1912
|
+
}(), 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
1913
|
function xu(e, t) {
|
1905
1914
|
return ye(e, 0) ^ 45 ? (((t << 2 ^ ye(e, 0)) << 2 ^ ye(e, 1)) << 2 ^ ye(e, 2)) << 2 ^ ye(e, 3) : 0;
|
1906
1915
|
}
|
1907
|
-
function
|
1916
|
+
function ui(e) {
|
1908
1917
|
return e.trim();
|
1909
1918
|
}
|
1910
1919
|
function wu(e, t) {
|
@@ -1925,7 +1934,7 @@ function ht(e, t, r) {
|
|
1925
1934
|
function ke(e) {
|
1926
1935
|
return e.length;
|
1927
1936
|
}
|
1928
|
-
function
|
1937
|
+
function nr(e) {
|
1929
1938
|
return e.length;
|
1930
1939
|
}
|
1931
1940
|
function St(e, t) {
|
@@ -1934,7 +1943,7 @@ function St(e, t) {
|
|
1934
1943
|
function Au(e, t) {
|
1935
1944
|
return e.map(t).join("");
|
1936
1945
|
}
|
1937
|
-
var tn = 1, it = 1,
|
1946
|
+
var tn = 1, it = 1, ci = 0, Re = 0, ve = 0, ut = "";
|
1938
1947
|
function nn(e, t, r, i, n, a, s) {
|
1939
1948
|
return { value: e, root: t, parent: r, type: i, props: n, children: a, line: tn, column: it, length: s, return: "" };
|
1940
1949
|
}
|
@@ -1948,7 +1957,7 @@ function Su() {
|
|
1948
1957
|
return ve = Re > 0 ? ye(ut, --Re) : 0, it--, ve === 10 && (it = 1, tn--), ve;
|
1949
1958
|
}
|
1950
1959
|
function Ge() {
|
1951
|
-
return ve = Re <
|
1960
|
+
return ve = Re < ci ? ye(ut, Re++) : 0, it++, ve === 10 && (it = 1, tn++), ve;
|
1952
1961
|
}
|
1953
1962
|
function De() {
|
1954
1963
|
return ye(ut, Re);
|
@@ -1997,14 +2006,14 @@ function mt(e) {
|
|
1997
2006
|
}
|
1998
2007
|
return 0;
|
1999
2008
|
}
|
2000
|
-
function
|
2001
|
-
return tn = it = 1,
|
2009
|
+
function li(e) {
|
2010
|
+
return tn = it = 1, ci = ke(ut = e), Re = 0, [];
|
2002
2011
|
}
|
2003
|
-
function
|
2012
|
+
function di(e) {
|
2004
2013
|
return ut = "", e;
|
2005
2014
|
}
|
2006
2015
|
function Dt(e) {
|
2007
|
-
return
|
2016
|
+
return ui(It(Re - 1, Zn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
2008
2017
|
}
|
2009
2018
|
function Tu(e) {
|
2010
2019
|
for (; (ve = De()) && ve < 33; )
|
@@ -2050,7 +2059,7 @@ function Gu(e) {
|
|
2050
2059
|
return It(e, Re);
|
2051
2060
|
}
|
2052
2061
|
function Fu(e) {
|
2053
|
-
return
|
2062
|
+
return di(Mt("", null, null, null, [""], e = li(e), 0, [0], e));
|
2054
2063
|
}
|
2055
2064
|
function Mt(e, t, r, i, n, a, s, o, u) {
|
2056
2065
|
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; )
|
@@ -2103,14 +2112,14 @@ function Mt(e, t, r, i, n, a, s, o, u) {
|
|
2103
2112
|
I = 0;
|
2104
2113
|
// ;
|
2105
2114
|
case 59 + l:
|
2106
|
-
v == -1 && (E = ae(E, /\f/g, "")), g > 0 && ke(E) - d && St(g > 32 ?
|
2115
|
+
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
2116
|
break;
|
2108
2117
|
// @ ;
|
2109
2118
|
case 59:
|
2110
2119
|
E += ";";
|
2111
2120
|
// { rule/at-rule
|
2112
2121
|
default:
|
2113
|
-
if (St(T =
|
2122
|
+
if (St(T = Ur(E, t, r, c, l, n, o, w, C = [], y = [], d), a), x === 123)
|
2114
2123
|
if (l === 0)
|
2115
2124
|
Mt(E, t, T, T, C, a, d, o, y);
|
2116
2125
|
else
|
@@ -2120,7 +2129,7 @@ function Mt(e, t, r, i, n, a, s, o, u) {
|
|
2120
2129
|
case 108:
|
2121
2130
|
case 109:
|
2122
2131
|
case 115:
|
2123
|
-
Mt(e, T, T, i && St(
|
2132
|
+
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
2133
|
break;
|
2125
2134
|
default:
|
2126
2135
|
Mt(E, T, T, T, [""], y, 0, o, y);
|
@@ -2158,20 +2167,20 @@ function Mt(e, t, r, i, n, a, s, o, u) {
|
|
2158
2167
|
}
|
2159
2168
|
return a;
|
2160
2169
|
}
|
2161
|
-
function
|
2162
|
-
for (var d = n - 1, p = n === 0 ? a : [""], g =
|
2170
|
+
function Ur(e, t, r, i, n, a, s, o, u, c, l) {
|
2171
|
+
for (var d = n - 1, p = n === 0 ? a : [""], g = nr(p), h = 0, b = 0, I = 0; h < i; ++h)
|
2163
2172
|
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 ?
|
2173
|
+
(w = ui(b > 0 ? p[v] + " " + x : ae(x, /&\f/g, p[v]))) && (u[I++] = w);
|
2174
|
+
return nn(e, t, r, n === 0 ? er : o, u, c, l);
|
2166
2175
|
}
|
2167
2176
|
function Pu(e, t, r) {
|
2168
|
-
return nn(e, t, r,
|
2177
|
+
return nn(e, t, r, ai, en(Eu()), ht(e, 2, -2), 0);
|
2169
2178
|
}
|
2170
|
-
function
|
2171
|
-
return nn(e, t, r,
|
2179
|
+
function $r(e, t, r, i) {
|
2180
|
+
return nn(e, t, r, tr, ht(e, 0, i), ht(e, i + 1, -1), i);
|
2172
2181
|
}
|
2173
2182
|
function rt(e, t) {
|
2174
|
-
for (var r = "", i =
|
2183
|
+
for (var r = "", i = nr(e), n = 0; n < i; n++)
|
2175
2184
|
r += t(e[n], n, e, t) || "";
|
2176
2185
|
return r;
|
2177
2186
|
}
|
@@ -2180,19 +2189,19 @@ function Ou(e, t, r, i) {
|
|
2180
2189
|
case Iu:
|
2181
2190
|
if (e.children.length) break;
|
2182
2191
|
case vu:
|
2183
|
-
case
|
2192
|
+
case tr:
|
2184
2193
|
return e.return = e.return || e.value;
|
2185
|
-
case
|
2194
|
+
case ai:
|
2186
2195
|
return "";
|
2187
|
-
case
|
2196
|
+
case si:
|
2188
2197
|
return e.return = e.value + "{" + rt(e.children, i) + "}";
|
2189
|
-
case
|
2198
|
+
case er:
|
2190
2199
|
e.value = e.props.join(",");
|
2191
2200
|
}
|
2192
2201
|
return ke(r = rt(e.children, i)) ? e.return = e.value + "{" + r + "}" : "";
|
2193
2202
|
}
|
2194
2203
|
function Vu(e) {
|
2195
|
-
var t =
|
2204
|
+
var t = nr(e);
|
2196
2205
|
return function(r, i, n, a) {
|
2197
2206
|
for (var s = "", o = 0; o < t; o++)
|
2198
2207
|
s += e[o](r, i, n, a) || "";
|
@@ -2236,15 +2245,15 @@ var Nu = function(t, r, i) {
|
|
2236
2245
|
while (n = Ge());
|
2237
2246
|
return t;
|
2238
2247
|
}, Mu = function(t, r) {
|
2239
|
-
return
|
2240
|
-
},
|
2248
|
+
return di(Du(li(t), r));
|
2249
|
+
}, Qr = /* @__PURE__ */ new WeakMap(), Xu = function(t) {
|
2241
2250
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
2242
2251
|
// negative .length indicates that this rule has been already prefixed
|
2243
2252
|
t.length < 1)) {
|
2244
2253
|
for (var r = t.value, i = t.parent, n = t.column === i.column && t.line === i.line; i.type !== "rule"; )
|
2245
2254
|
if (i = i.parent, !i) return;
|
2246
|
-
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !
|
2247
|
-
|
2255
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Qr.get(i)) && !n) {
|
2256
|
+
Qr.set(t, !0);
|
2248
2257
|
for (var a = [], s = Mu(r, a), o = i.props, u = 0, c = 0; u < s.length; u++)
|
2249
2258
|
for (var l = 0; l < o.length; l++, c++)
|
2250
2259
|
t.props[c] = a[u] ? s[u].replace(/&\f/g, o[l]) : o[l] + " " + s[u];
|
@@ -2258,7 +2267,7 @@ var Nu = function(t, r, i) {
|
|
2258
2267
|
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
2259
2268
|
}
|
2260
2269
|
};
|
2261
|
-
function
|
2270
|
+
function fi(e, t) {
|
2262
2271
|
switch (xu(e, t)) {
|
2263
2272
|
// color-adjust
|
2264
2273
|
case 5103:
|
@@ -2366,7 +2375,7 @@ function li(e, t) {
|
|
2366
2375
|
return ae(e, /(.+:)(.+)-([^]+)/, "$1" + ie + "$2-$3$1" + Ht + (ye(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
2367
2376
|
// (s)tretch
|
2368
2377
|
case 115:
|
2369
|
-
return ~Xn(e, "stretch") ?
|
2378
|
+
return ~Xn(e, "stretch") ? fi(ae(e, "stretch", "fill-available"), t) + e : e;
|
2370
2379
|
}
|
2371
2380
|
break;
|
2372
2381
|
// position: sticky
|
@@ -2402,14 +2411,14 @@ function li(e, t) {
|
|
2402
2411
|
}
|
2403
2412
|
var Lu = function(t, r, i, n) {
|
2404
2413
|
if (t.length > -1 && !t.return) switch (t.type) {
|
2405
|
-
case
|
2406
|
-
t.return =
|
2414
|
+
case tr:
|
2415
|
+
t.return = fi(t.value, t.length);
|
2407
2416
|
break;
|
2408
|
-
case
|
2417
|
+
case si:
|
2409
2418
|
return rt([ft(t, {
|
2410
2419
|
value: ae(t.value, "@", "@" + ie)
|
2411
2420
|
})], n);
|
2412
|
-
case
|
2421
|
+
case er:
|
2413
2422
|
if (t.length) return Au(t.props, function(a) {
|
2414
2423
|
switch (wu(a, /(::plac\w+|:read-\w+)/)) {
|
2415
2424
|
// :read-(only|write)
|
@@ -2487,10 +2496,10 @@ var Lu = function(t, r, i, n) {
|
|
2487
2496
|
* This source code is licensed under the MIT license found in the
|
2488
2497
|
* LICENSE file in the root directory of this source tree.
|
2489
2498
|
*/
|
2490
|
-
var
|
2499
|
+
var Kr;
|
2491
2500
|
function Yu() {
|
2492
|
-
if (
|
2493
|
-
|
2501
|
+
if (Kr) return ue;
|
2502
|
+
Kr = 1;
|
2494
2503
|
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
2504
|
function w(y) {
|
2496
2505
|
if (typeof y == "object" && y !== null) {
|
@@ -2562,9 +2571,9 @@ var ce = {};
|
|
2562
2571
|
* This source code is licensed under the MIT license found in the
|
2563
2572
|
* LICENSE file in the root directory of this source tree.
|
2564
2573
|
*/
|
2565
|
-
var
|
2574
|
+
var qr;
|
2566
2575
|
function zu() {
|
2567
|
-
return
|
2576
|
+
return qr || (qr = 1, process.env.NODE_ENV !== "production" && function() {
|
2568
2577
|
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
2578
|
function w(B) {
|
2570
2579
|
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
@@ -2645,15 +2654,15 @@ function zu() {
|
|
2645
2654
|
ce.AsyncMode = y, ce.ConcurrentMode = T, ce.ContextConsumer = E, ce.ContextProvider = P, 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 = O, 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
2655
|
}()), ce;
|
2647
2656
|
}
|
2648
|
-
var
|
2649
|
-
function
|
2650
|
-
return
|
2657
|
+
var eo;
|
2658
|
+
function rr() {
|
2659
|
+
return eo || (eo = 1, process.env.NODE_ENV === "production" ? Tt.exports = Yu() : Tt.exports = zu()), Tt.exports;
|
2651
2660
|
}
|
2652
|
-
var mn,
|
2661
|
+
var mn, to;
|
2653
2662
|
function Ju() {
|
2654
|
-
if (
|
2655
|
-
|
2656
|
-
var e =
|
2663
|
+
if (to) return mn;
|
2664
|
+
to = 1;
|
2665
|
+
var e = rr(), t = {
|
2657
2666
|
childContextTypes: !0,
|
2658
2667
|
contextType: !0,
|
2659
2668
|
contextTypes: !0,
|
@@ -2723,7 +2732,7 @@ function Uu(e, t, r) {
|
|
2723
2732
|
e[n] !== void 0 ? t.push(e[n] + ";") : n && (i += n + " ");
|
2724
2733
|
}), i;
|
2725
2734
|
}
|
2726
|
-
var
|
2735
|
+
var pi = function(t, r, i) {
|
2727
2736
|
var n = t.key + "-" + r.name;
|
2728
2737
|
// we only need to add the styles to the registered cache if the
|
2729
2738
|
// class name could be used further down
|
@@ -2736,7 +2745,7 @@ var di = function(t, r, i) {
|
|
2736
2745
|
// also, note that this check will be dead code eliminated in the browser
|
2737
2746
|
_u === !1) && t.registered[n] === void 0 && (t.registered[n] = r.styles);
|
2738
2747
|
}, $u = function(t, r, i) {
|
2739
|
-
|
2748
|
+
pi(t, r, i);
|
2740
2749
|
var n = t.key + "-" + r.name;
|
2741
2750
|
if (t.inserted[r.name] === void 0) {
|
2742
2751
|
var a = r;
|
@@ -2813,13 +2822,13 @@ var Ku = {
|
|
2813
2822
|
strokeMiterlimit: 1,
|
2814
2823
|
strokeOpacity: 1,
|
2815
2824
|
strokeWidth: 1
|
2816
|
-
}, qu = /[A-Z]|^ms/g, ec = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
2825
|
+
}, qu = /[A-Z]|^ms/g, ec = /_EMO_([^_]+?)_([^]*?)_EMO_/g, gi = function(t) {
|
2817
2826
|
return t.charCodeAt(1) === 45;
|
2818
|
-
},
|
2827
|
+
}, no = function(t) {
|
2819
2828
|
return t != null && typeof t != "boolean";
|
2820
2829
|
}, vn = /* @__PURE__ */ Wu(function(e) {
|
2821
|
-
return
|
2822
|
-
}),
|
2830
|
+
return gi(e) ? e : e.replace(qu, "-$&").toLowerCase();
|
2831
|
+
}), ro = function(t, r) {
|
2823
2832
|
switch (t) {
|
2824
2833
|
case "animation":
|
2825
2834
|
case "animationName":
|
@@ -2832,7 +2841,7 @@ var Ku = {
|
|
2832
2841
|
}, n;
|
2833
2842
|
});
|
2834
2843
|
}
|
2835
|
-
return Ku[t] !== 1 && !
|
2844
|
+
return Ku[t] !== 1 && !gi(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
2836
2845
|
};
|
2837
2846
|
function vt(e, t, r) {
|
2838
2847
|
if (r == null)
|
@@ -2887,10 +2896,10 @@ function tc(e, t, r) {
|
|
2887
2896
|
var s = r[a];
|
2888
2897
|
if (typeof s != "object") {
|
2889
2898
|
var o = s;
|
2890
|
-
|
2899
|
+
no(o) && (i += vn(a) + ":" + ro(a, o) + ";");
|
2891
2900
|
} else if (Array.isArray(s) && typeof s[0] == "string" && t == null)
|
2892
2901
|
for (var u = 0; u < s.length; u++)
|
2893
|
-
|
2902
|
+
no(s[u]) && (i += vn(a) + ":" + ro(a, s[u]) + ";");
|
2894
2903
|
else {
|
2895
2904
|
var c = vt(e, t, s);
|
2896
2905
|
switch (a) {
|
@@ -2906,8 +2915,8 @@ function tc(e, t, r) {
|
|
2906
2915
|
}
|
2907
2916
|
return i;
|
2908
2917
|
}
|
2909
|
-
var
|
2910
|
-
function
|
2918
|
+
var oo = /label:\s*([^\s;{]+)\s*(;|$)/g, We;
|
2919
|
+
function bi(e, t, r) {
|
2911
2920
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
2912
2921
|
return e[0];
|
2913
2922
|
var i = !0, n = "";
|
@@ -2924,8 +2933,8 @@ function pi(e, t, r) {
|
|
2924
2933
|
var u = a;
|
2925
2934
|
n += u[o];
|
2926
2935
|
}
|
2927
|
-
|
2928
|
-
for (var c = "", l; (l =
|
2936
|
+
oo.lastIndex = 0;
|
2937
|
+
for (var c = "", l; (l = oo.exec(n)) !== null; )
|
2929
2938
|
c += "-" + l[1];
|
2930
2939
|
var d = Qu(n) + c;
|
2931
2940
|
return {
|
@@ -2936,7 +2945,7 @@ function pi(e, t, r) {
|
|
2936
2945
|
}
|
2937
2946
|
var nc = function(t) {
|
2938
2947
|
return t();
|
2939
|
-
}, rc = J.useInsertionEffect ? J.useInsertionEffect : !1, oc = rc || nc,
|
2948
|
+
}, rc = J.useInsertionEffect ? J.useInsertionEffect : !1, oc = rc || nc, hi = /* @__PURE__ */ J.createContext(
|
2940
2949
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
2941
2950
|
// because this module is primarily intended for the browser and node
|
2942
2951
|
// but it's also required in react native and similar environments sometimes
|
@@ -2947,20 +2956,20 @@ var nc = function(t) {
|
|
2947
2956
|
key: "css"
|
2948
2957
|
}) : null
|
2949
2958
|
);
|
2950
|
-
|
2959
|
+
hi.Provider;
|
2951
2960
|
var ic = function(t) {
|
2952
2961
|
return /* @__PURE__ */ Jn(function(r, i) {
|
2953
|
-
var n =
|
2962
|
+
var n = _o(hi);
|
2954
2963
|
return t(r, n, i);
|
2955
2964
|
});
|
2956
|
-
}, ac = /* @__PURE__ */ J.createContext({}),
|
2965
|
+
}, ac = /* @__PURE__ */ J.createContext({}), or = {}.hasOwnProperty, Ln = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", sc = function(t, r) {
|
2957
2966
|
var i = {};
|
2958
2967
|
for (var n in r)
|
2959
|
-
|
2968
|
+
or.call(r, n) && (i[n] = r[n]);
|
2960
2969
|
return i[Ln] = t, i;
|
2961
2970
|
}, uc = function(t) {
|
2962
2971
|
var r = t.cache, i = t.serialized, n = t.isStringTag;
|
2963
|
-
return
|
2972
|
+
return pi(r, i, n), oc(function() {
|
2964
2973
|
return $u(r, i, n);
|
2965
2974
|
}), null;
|
2966
2975
|
}, cc = /* @__PURE__ */ ic(function(e, t, r) {
|
@@ -2968,11 +2977,11 @@ var ic = function(t) {
|
|
2968
2977
|
typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
|
2969
2978
|
var n = e[Ln], a = [i], s = "";
|
2970
2979
|
typeof e.className == "string" ? s = Uu(t.registered, a, e.className) : e.className != null && (s = e.className + " ");
|
2971
|
-
var o =
|
2980
|
+
var o = bi(a, void 0, J.useContext(ac));
|
2972
2981
|
s += t.key + "-" + o.name;
|
2973
2982
|
var u = {};
|
2974
2983
|
for (var c in e)
|
2975
|
-
|
2984
|
+
or.call(e, c) && c !== "css" && c !== Ln && (u[c] = e[c]);
|
2976
2985
|
return u.className = s, r && (u.ref = r), /* @__PURE__ */ J.createElement(J.Fragment, null, /* @__PURE__ */ J.createElement(uc, {
|
2977
2986
|
cache: t,
|
2978
2987
|
serialized: o,
|
@@ -2980,7 +2989,7 @@ var ic = function(t) {
|
|
2980
2989
|
}), /* @__PURE__ */ J.createElement(n, u));
|
2981
2990
|
}), lc = cc, M = function(t, r) {
|
2982
2991
|
var i = arguments;
|
2983
|
-
if (r == null || !
|
2992
|
+
if (r == null || !or.call(r, "css"))
|
2984
2993
|
return J.createElement.apply(void 0, i);
|
2985
2994
|
var n = i.length, a = new Array(n);
|
2986
2995
|
a[0] = lc, a[1] = sc(t, r);
|
@@ -2992,13 +3001,13 @@ var ic = function(t) {
|
|
2992
3001
|
var t;
|
2993
3002
|
t || (t = e.JSX || (e.JSX = {}));
|
2994
3003
|
})(M || (M = {}));
|
2995
|
-
function
|
3004
|
+
function ir() {
|
2996
3005
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
2997
3006
|
t[r] = arguments[r];
|
2998
|
-
return
|
3007
|
+
return bi(t);
|
2999
3008
|
}
|
3000
3009
|
function dc() {
|
3001
|
-
var e =
|
3010
|
+
var e = ir.apply(void 0, arguments), t = "animation-" + e.name;
|
3002
3011
|
return {
|
3003
3012
|
name: t,
|
3004
3013
|
styles: "@keyframes " + t + "{" + e.styles + "}",
|
@@ -3037,7 +3046,7 @@ function gc() {
|
|
3037
3046
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
3038
3047
|
}
|
3039
3048
|
function me(e, t) {
|
3040
|
-
return fc(e) || pc(e, t) ||
|
3049
|
+
return fc(e) || pc(e, t) || ii(e, t) || gc();
|
3041
3050
|
}
|
3042
3051
|
function bc(e, t) {
|
3043
3052
|
if (e == null) return {};
|
@@ -3089,37 +3098,37 @@ function Ic(e) {
|
|
3089
3098
|
function rn() {
|
3090
3099
|
return typeof window < "u";
|
3091
3100
|
}
|
3092
|
-
function
|
3093
|
-
return
|
3101
|
+
function mi(e) {
|
3102
|
+
return Ii(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
3094
3103
|
}
|
3095
3104
|
function Ze(e) {
|
3096
3105
|
var t;
|
3097
3106
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
3098
3107
|
}
|
3099
|
-
function
|
3108
|
+
function vi(e) {
|
3100
3109
|
var t;
|
3101
|
-
return (t = (
|
3110
|
+
return (t = (Ii(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
3102
3111
|
}
|
3103
|
-
function
|
3112
|
+
function Ii(e) {
|
3104
3113
|
return rn() ? e instanceof Node || e instanceof Ze(e).Node : !1;
|
3105
3114
|
}
|
3106
3115
|
function yc(e) {
|
3107
3116
|
return rn() ? e instanceof Element || e instanceof Ze(e).Element : !1;
|
3108
3117
|
}
|
3109
|
-
function
|
3118
|
+
function ar(e) {
|
3110
3119
|
return rn() ? e instanceof HTMLElement || e instanceof Ze(e).HTMLElement : !1;
|
3111
3120
|
}
|
3112
|
-
function
|
3121
|
+
function io(e) {
|
3113
3122
|
return !rn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ze(e).ShadowRoot;
|
3114
3123
|
}
|
3115
3124
|
const Cc = /* @__PURE__ */ new Set(["inline", "contents"]);
|
3116
|
-
function
|
3125
|
+
function yi(e) {
|
3117
3126
|
const {
|
3118
3127
|
overflow: t,
|
3119
3128
|
overflowX: r,
|
3120
3129
|
overflowY: i,
|
3121
3130
|
display: n
|
3122
|
-
} =
|
3131
|
+
} = sr(e);
|
3123
3132
|
return /auto|scroll|overlay|hidden|clip/.test(t + i + r) && !Cc.has(n);
|
3124
3133
|
}
|
3125
3134
|
function xc() {
|
@@ -3127,34 +3136,34 @@ function xc() {
|
|
3127
3136
|
}
|
3128
3137
|
const wc = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
3129
3138
|
function Ac(e) {
|
3130
|
-
return wc.has(
|
3139
|
+
return wc.has(mi(e));
|
3131
3140
|
}
|
3132
|
-
function
|
3141
|
+
function sr(e) {
|
3133
3142
|
return Ze(e).getComputedStyle(e);
|
3134
3143
|
}
|
3135
3144
|
function Ec(e) {
|
3136
|
-
if (
|
3145
|
+
if (mi(e) === "html")
|
3137
3146
|
return e;
|
3138
3147
|
const t = (
|
3139
3148
|
// Step into the shadow DOM of the parent of a slotted node.
|
3140
3149
|
e.assignedSlot || // DOM Element detected.
|
3141
3150
|
e.parentNode || // ShadowRoot detected.
|
3142
|
-
|
3143
|
-
|
3151
|
+
io(e) && e.host || // Fallback.
|
3152
|
+
vi(e)
|
3144
3153
|
);
|
3145
|
-
return
|
3154
|
+
return io(t) ? t.host : t;
|
3146
3155
|
}
|
3147
|
-
function
|
3156
|
+
function Ci(e) {
|
3148
3157
|
const t = Ec(e);
|
3149
|
-
return Ac(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
3158
|
+
return Ac(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ar(t) && yi(t) ? t : Ci(t);
|
3150
3159
|
}
|
3151
3160
|
function zt(e, t, r) {
|
3152
3161
|
var i;
|
3153
3162
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
3154
|
-
const n =
|
3163
|
+
const n = Ci(e), a = n === ((i = e.ownerDocument) == null ? void 0 : i.body), s = Ze(n);
|
3155
3164
|
if (a) {
|
3156
3165
|
const o = Hn(s);
|
3157
|
-
return t.concat(s, s.visualViewport || [],
|
3166
|
+
return t.concat(s, s.visualViewport || [], yi(n) ? n : [], o && r ? zt(o) : []);
|
3158
3167
|
}
|
3159
3168
|
return t.concat(n, zt(n, [], r));
|
3160
3169
|
}
|
@@ -3162,21 +3171,21 @@ function Hn(e) {
|
|
3162
3171
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
3163
3172
|
}
|
3164
3173
|
function Sc(e) {
|
3165
|
-
const t =
|
3174
|
+
const t = sr(e);
|
3166
3175
|
let r = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
|
3167
|
-
const n =
|
3176
|
+
const n = ar(e), a = n ? e.offsetWidth : r, s = n ? e.offsetHeight : i, o = jt(r) !== a || jt(i) !== s;
|
3168
3177
|
return o && (r = a, i = s), {
|
3169
3178
|
width: r,
|
3170
3179
|
height: i,
|
3171
3180
|
$: o
|
3172
3181
|
};
|
3173
3182
|
}
|
3174
|
-
function
|
3183
|
+
function ur(e) {
|
3175
3184
|
return yc(e) ? e : e.contextElement;
|
3176
3185
|
}
|
3177
|
-
function
|
3178
|
-
const t =
|
3179
|
-
if (!
|
3186
|
+
function ao(e) {
|
3187
|
+
const t = ur(e);
|
3188
|
+
if (!ar(t))
|
3180
3189
|
return Yt(1);
|
3181
3190
|
const r = t.getBoundingClientRect(), {
|
3182
3191
|
width: i,
|
@@ -3200,18 +3209,18 @@ function Rc(e) {
|
|
3200
3209
|
function Bc(e, t, r) {
|
3201
3210
|
return !1;
|
3202
3211
|
}
|
3203
|
-
function
|
3212
|
+
function so(e, t, r, i) {
|
3204
3213
|
t === void 0 && (t = !1);
|
3205
|
-
const n = e.getBoundingClientRect(), a =
|
3214
|
+
const n = e.getBoundingClientRect(), a = ur(e);
|
3206
3215
|
let s = Yt(1);
|
3207
|
-
t && (s =
|
3216
|
+
t && (s = ao(e));
|
3208
3217
|
const o = Bc() ? Rc(a) : Yt(0);
|
3209
3218
|
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
3219
|
if (a) {
|
3211
3220
|
const p = Ze(a), g = i;
|
3212
3221
|
let h = p, b = Hn(h);
|
3213
3222
|
for (; b && i && g !== h; ) {
|
3214
|
-
const I =
|
3223
|
+
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
3224
|
u *= I.x, c *= I.y, l *= I.x, d *= I.y, u += w, c += C, h = Ze(b), b = Hn(h);
|
3216
3225
|
}
|
3217
3226
|
}
|
@@ -3222,12 +3231,12 @@ function io(e, t, r, i) {
|
|
3222
3231
|
y: c
|
3223
3232
|
});
|
3224
3233
|
}
|
3225
|
-
function
|
3234
|
+
function xi(e, t) {
|
3226
3235
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
3227
3236
|
}
|
3228
3237
|
function Gc(e, t) {
|
3229
3238
|
let r = null, i;
|
3230
|
-
const n =
|
3239
|
+
const n = vi(e);
|
3231
3240
|
function a() {
|
3232
3241
|
var o;
|
3233
3242
|
clearTimeout(i), (o = r) == null || o.disconnect(), r = null;
|
@@ -3256,7 +3265,7 @@ function Gc(e, t) {
|
|
3256
3265
|
s(!1, 1e-7);
|
3257
3266
|
}, 1e3);
|
3258
3267
|
}
|
3259
|
-
E === 1 && !
|
3268
|
+
E === 1 && !xi(c, e.getBoundingClientRect()) && s(), C = !1;
|
3260
3269
|
}
|
3261
3270
|
try {
|
3262
3271
|
r = new IntersectionObserver(y, {
|
@@ -3279,7 +3288,7 @@ function Fc(e, t, r, i) {
|
|
3279
3288
|
elementResize: s = typeof ResizeObserver == "function",
|
3280
3289
|
layoutShift: o = typeof IntersectionObserver == "function",
|
3281
3290
|
animationFrame: u = !1
|
3282
|
-
} = i, c =
|
3291
|
+
} = i, c = ur(e), l = n || a ? [...c ? zt(c) : [], ...zt(t)] : [];
|
3283
3292
|
l.forEach((v) => {
|
3284
3293
|
n && v.addEventListener("scroll", r, {
|
3285
3294
|
passive: !0
|
@@ -3294,11 +3303,11 @@ function Fc(e, t, r, i) {
|
|
3294
3303
|
(w = g) == null || w.observe(t);
|
3295
3304
|
})), r();
|
3296
3305
|
}), c && !u && g.observe(c), g.observe(t));
|
3297
|
-
let h, b = u ?
|
3306
|
+
let h, b = u ? so(e) : null;
|
3298
3307
|
u && I();
|
3299
3308
|
function I() {
|
3300
|
-
const v =
|
3301
|
-
b && !
|
3309
|
+
const v = so(e);
|
3310
|
+
b && !xi(b, v) && r(), b = v, h = requestAnimationFrame(I);
|
3302
3311
|
}
|
3303
3312
|
return r(), () => {
|
3304
3313
|
var v;
|
@@ -3307,7 +3316,7 @@ function Fc(e, t, r, i) {
|
|
3307
3316
|
}), d?.(), (v = g) == null || v.disconnect(), g = null, u && cancelAnimationFrame(h);
|
3308
3317
|
};
|
3309
3318
|
}
|
3310
|
-
var jn =
|
3319
|
+
var jn = Aa, Pc = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Jt = function() {
|
3311
3320
|
};
|
3312
3321
|
function Oc(e, t) {
|
3313
3322
|
return t ? t[0] === "-" ? e + t : e + "__" + t : e;
|
@@ -3325,9 +3334,9 @@ function Vc(e, t) {
|
|
3325
3334
|
return String(o).trim();
|
3326
3335
|
}).join(" ");
|
3327
3336
|
}
|
3328
|
-
var
|
3337
|
+
var uo = function(t) {
|
3329
3338
|
return jc(t) ? t.filter(Boolean) : _e(t) === "object" && t !== null ? [t] : [];
|
3330
|
-
},
|
3339
|
+
}, wi = function(t) {
|
3331
3340
|
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
3341
|
var r = Me(t, Pc);
|
3333
3342
|
return V({}, r);
|
@@ -3351,7 +3360,7 @@ function on(e) {
|
|
3351
3360
|
function Wc(e) {
|
3352
3361
|
return on(e) ? window.innerHeight : e.clientHeight;
|
3353
3362
|
}
|
3354
|
-
function
|
3363
|
+
function Ai(e) {
|
3355
3364
|
return on(e) ? window.pageYOffset : e.scrollTop;
|
3356
3365
|
}
|
3357
3366
|
function _t(e, t) {
|
@@ -3373,7 +3382,7 @@ function Dc(e, t, r, i) {
|
|
3373
3382
|
return r * ((e = e / i - 1) * e * e + 1) + t;
|
3374
3383
|
}
|
3375
3384
|
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 =
|
3385
|
+
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
3386
|
function u() {
|
3378
3387
|
o += s;
|
3379
3388
|
var c = Dc(o, n, a, r);
|
@@ -3381,7 +3390,7 @@ function Bt(e, t) {
|
|
3381
3390
|
}
|
3382
3391
|
u();
|
3383
3392
|
}
|
3384
|
-
function
|
3393
|
+
function co(e, t) {
|
3385
3394
|
var r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), n = t.offsetHeight / 3;
|
3386
3395
|
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
3396
|
}
|
@@ -3396,7 +3405,7 @@ function Mc(e) {
|
|
3396
3405
|
width: t.width
|
3397
3406
|
};
|
3398
3407
|
}
|
3399
|
-
function
|
3408
|
+
function lo() {
|
3400
3409
|
try {
|
3401
3410
|
return document.createEvent("TouchEvent"), !0;
|
3402
3411
|
} catch {
|
@@ -3410,13 +3419,13 @@ function Xc() {
|
|
3410
3419
|
return !1;
|
3411
3420
|
}
|
3412
3421
|
}
|
3413
|
-
var
|
3422
|
+
var Ei = !1, Zc = {
|
3414
3423
|
get passive() {
|
3415
|
-
return
|
3424
|
+
return Ei = !0;
|
3416
3425
|
}
|
3417
3426
|
}, Gt = typeof window < "u" ? window : {};
|
3418
3427
|
Gt.addEventListener && Gt.removeEventListener && (Gt.addEventListener("p", Jt, Zc), Gt.removeEventListener("p", Jt, !1));
|
3419
|
-
var Lc =
|
3428
|
+
var Lc = Ei;
|
3420
3429
|
function Hc(e) {
|
3421
3430
|
return e != null;
|
3422
3431
|
}
|
@@ -3444,7 +3453,7 @@ function _c(e) {
|
|
3444
3453
|
maxHeight: t
|
3445
3454
|
};
|
3446
3455
|
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 =
|
3456
|
+
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, P = T + w, K = d - w - b, X = g - x + w + C, H = w + b - y, q = 160;
|
3448
3457
|
switch (n) {
|
3449
3458
|
case "auto":
|
3450
3459
|
case "bottom":
|
@@ -3513,7 +3522,7 @@ function Uc(e) {
|
|
3513
3522
|
};
|
3514
3523
|
return e ? t[e] : "bottom";
|
3515
3524
|
}
|
3516
|
-
var
|
3525
|
+
var Si = function(t) {
|
3517
3526
|
return t === "auto" ? "bottom" : t;
|
3518
3527
|
}, $c = function(t, r) {
|
3519
3528
|
var i, n = t.placement, a = t.theme, s = a.borderRadius, o = a.spacing, u = a.colors;
|
@@ -3526,8 +3535,8 @@ var Ai = function(t) {
|
|
3526
3535
|
marginBottom: o.menuGutter,
|
3527
3536
|
marginTop: o.menuGutter
|
3528
3537
|
});
|
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 =
|
3538
|
+
}, Ti = /* @__PURE__ */ Uo(null), Qc = function(t) {
|
3539
|
+
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
3540
|
return jn(function() {
|
3532
3541
|
var y = d.current;
|
3533
3542
|
if (y) {
|
@@ -3545,7 +3554,7 @@ var Ai = function(t) {
|
|
3545
3554
|
}, [n, a, s, o, i, l, C]), r({
|
3546
3555
|
ref: d,
|
3547
3556
|
placerProps: V(V({}, t), {}, {
|
3548
|
-
placement: x ||
|
3557
|
+
placement: x || Si(a),
|
3549
3558
|
maxHeight: h
|
3550
3559
|
})
|
3551
3560
|
});
|
@@ -3576,7 +3585,7 @@ var Ai = function(t) {
|
|
3576
3585
|
}), {
|
3577
3586
|
ref: n
|
3578
3587
|
}, i), r);
|
3579
|
-
},
|
3588
|
+
}, Ri = function(t, r) {
|
3580
3589
|
var i = t.theme, n = i.spacing.baseUnit, a = i.colors;
|
3581
3590
|
return V({
|
3582
3591
|
textAlign: "center"
|
@@ -3584,7 +3593,7 @@ var Ai = function(t) {
|
|
3584
3593
|
color: a.neutral40,
|
3585
3594
|
padding: "".concat(n * 2, "px ").concat(n * 3, "px")
|
3586
3595
|
});
|
3587
|
-
}, nl =
|
3596
|
+
}, nl = Ri, rl = Ri, ol = function(t) {
|
3588
3597
|
var r = t.children, i = r === void 0 ? "No options" : r, n = t.innerProps, a = Me(t, zc);
|
3589
3598
|
return M("div", N({}, pe(V(V({}, a), {}, {
|
3590
3599
|
children: i,
|
@@ -3612,7 +3621,7 @@ var Ai = function(t) {
|
|
3612
3621
|
zIndex: 1
|
3613
3622
|
};
|
3614
3623
|
}, 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(
|
3624
|
+
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
3625
|
return {
|
3617
3626
|
setPortalPlacement: g
|
3618
3627
|
};
|
@@ -3649,9 +3658,9 @@ var Ai = function(t) {
|
|
3649
3658
|
}), "menuPortal", {
|
3650
3659
|
"menu-portal": !0
|
3651
3660
|
}), a), i);
|
3652
|
-
return M(
|
3661
|
+
return M(Ti.Provider, {
|
3653
3662
|
value: h
|
3654
|
-
}, r ? /* @__PURE__ */
|
3663
|
+
}, r ? /* @__PURE__ */ Ea(T, r) : T);
|
3655
3664
|
}, ul = function(t) {
|
3656
3665
|
var r = t.isDisabled, i = t.isRtl;
|
3657
3666
|
return {
|
@@ -3699,7 +3708,7 @@ var Ai = function(t) {
|
|
3699
3708
|
return M("div", N({}, pe(t, "indicatorsContainer", {
|
3700
3709
|
indicators: !0
|
3701
3710
|
}), i), r);
|
3702
|
-
},
|
3711
|
+
}, fo, gl = ["size"], bl = ["innerProps", "isRtl", "size"];
|
3703
3712
|
function hl() {
|
3704
3713
|
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
3714
|
}
|
@@ -3711,7 +3720,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3711
3720
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
3712
3721
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50Ij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gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
|
3713
3722
|
toString: hl
|
3714
|
-
},
|
3723
|
+
}, Bi = function(t) {
|
3715
3724
|
var r = t.size, i = Me(t, gl);
|
3716
3725
|
return M("svg", N({
|
3717
3726
|
height: r,
|
@@ -3721,19 +3730,19 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3721
3730
|
focusable: "false",
|
3722
3731
|
css: ml
|
3723
3732
|
}, i));
|
3724
|
-
},
|
3725
|
-
return M(
|
3733
|
+
}, cr = function(t) {
|
3734
|
+
return M(Bi, N({
|
3726
3735
|
size: 20
|
3727
3736
|
}, t), M("path", {
|
3728
3737
|
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
3738
|
}));
|
3730
|
-
},
|
3731
|
-
return M(
|
3739
|
+
}, Gi = function(t) {
|
3740
|
+
return M(Bi, N({
|
3732
3741
|
size: 20
|
3733
3742
|
}, t), M("path", {
|
3734
3743
|
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
3744
|
}));
|
3736
|
-
},
|
3745
|
+
}, Fi = function(t, r) {
|
3737
3746
|
var i = t.isFocused, n = t.theme, a = n.spacing.baseUnit, s = n.colors;
|
3738
3747
|
return V({
|
3739
3748
|
label: "indicatorContainer",
|
@@ -3746,18 +3755,18 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3746
3755
|
color: i ? s.neutral80 : s.neutral40
|
3747
3756
|
}
|
3748
3757
|
});
|
3749
|
-
}, vl =
|
3758
|
+
}, vl = Fi, Il = function(t) {
|
3750
3759
|
var r = t.children, i = t.innerProps;
|
3751
3760
|
return M("div", N({}, pe(t, "dropdownIndicator", {
|
3752
3761
|
indicator: !0,
|
3753
3762
|
"dropdown-indicator": !0
|
3754
|
-
}), i), r || M(
|
3755
|
-
}, yl =
|
3763
|
+
}), i), r || M(Gi, null));
|
3764
|
+
}, yl = Fi, Cl = function(t) {
|
3756
3765
|
var r = t.children, i = t.innerProps;
|
3757
3766
|
return M("div", N({}, pe(t, "clearIndicator", {
|
3758
3767
|
indicator: !0,
|
3759
3768
|
"clear-indicator": !0
|
3760
|
-
}), i), r || M(
|
3769
|
+
}), i), r || M(cr, null));
|
3761
3770
|
}, xl = function(t, r) {
|
3762
3771
|
var i = t.isDisabled, n = t.theme, a = n.spacing.baseUnit, s = n.colors;
|
3763
3772
|
return V({
|
@@ -3774,7 +3783,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3774
3783
|
return M("span", N({}, r, pe(t, "indicatorSeparator", {
|
3775
3784
|
"indicator-separator": !0
|
3776
3785
|
})));
|
3777
|
-
}, Al = dc(
|
3786
|
+
}, Al = dc(fo || (fo = hc([`
|
3778
3787
|
0%, 80%, 100% { opacity: 0; }
|
3779
3788
|
40% { opacity: 1; }
|
3780
3789
|
`]))), El = function(t, r) {
|
@@ -3796,7 +3805,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3796
3805
|
}, In = function(t) {
|
3797
3806
|
var r = t.delay, i = t.offset;
|
3798
3807
|
return M("span", {
|
3799
|
-
css: /* @__PURE__ */
|
3808
|
+
css: /* @__PURE__ */ ir({
|
3800
3809
|
animation: "".concat(Al, " 1s ease-in-out ").concat(r, "ms infinite;"),
|
3801
3810
|
backgroundColor: "currentColor",
|
3802
3811
|
borderRadius: "1em",
|
@@ -3893,7 +3902,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3893
3902
|
textTransform: "uppercase"
|
3894
3903
|
});
|
3895
3904
|
}, Vl = function(t) {
|
3896
|
-
var r =
|
3905
|
+
var r = wi(t);
|
3897
3906
|
r.data;
|
3898
3907
|
var i = Me(r, Gl);
|
3899
3908
|
return M("div", N({}, pe(t, "groupHeading", {
|
@@ -3912,7 +3921,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3912
3921
|
paddingTop: s.baseUnit / 2,
|
3913
3922
|
color: o.neutral80
|
3914
3923
|
});
|
3915
|
-
},
|
3924
|
+
}, Pi = {
|
3916
3925
|
gridArea: "1 / 2",
|
3917
3926
|
font: "inherit",
|
3918
3927
|
minWidth: "2px",
|
@@ -3929,7 +3938,7 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3929
3938
|
content: 'attr(data-value) " "',
|
3930
3939
|
visibility: "hidden",
|
3931
3940
|
whiteSpace: "pre"
|
3932
|
-
},
|
3941
|
+
}, Pi)
|
3933
3942
|
}, Ml = function(t) {
|
3934
3943
|
return V({
|
3935
3944
|
label: "input",
|
@@ -3937,9 +3946,9 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3937
3946
|
background: 0,
|
3938
3947
|
opacity: t ? 0 : 1,
|
3939
3948
|
width: "100%"
|
3940
|
-
},
|
3949
|
+
}, Pi);
|
3941
3950
|
}, Xl = function(t) {
|
3942
|
-
var r = t.cx, i = t.value, n =
|
3951
|
+
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
3952
|
return M("div", N({}, pe(t, "input", {
|
3944
3953
|
"input-container": !0
|
3945
3954
|
}), {
|
@@ -3991,15 +4000,15 @@ var ml = process.env.NODE_ENV === "production" ? {
|
|
3991
4000
|
color: s.danger
|
3992
4001
|
}
|
3993
4002
|
});
|
3994
|
-
},
|
4003
|
+
}, Oi = function(t) {
|
3995
4004
|
var r = t.children, i = t.innerProps;
|
3996
4005
|
return M("div", i, r);
|
3997
|
-
}, Yl =
|
4006
|
+
}, Yl = Oi, zl = Oi;
|
3998
4007
|
function Jl(e) {
|
3999
4008
|
var t = e.children, r = e.innerProps;
|
4000
4009
|
return M("div", N({
|
4001
4010
|
role: "button"
|
4002
|
-
}, r), t || M(
|
4011
|
+
}, r), t || M(cr, {
|
4003
4012
|
size: 14
|
4004
4013
|
}));
|
4005
4014
|
}
|
@@ -4092,12 +4101,12 @@ var _l = function(t) {
|
|
4092
4101
|
"single-value": !0,
|
4093
4102
|
"single-value--is-disabled": i
|
4094
4103
|
}), n), r);
|
4095
|
-
}, od = rd,
|
4104
|
+
}, od = rd, lr = {
|
4096
4105
|
ClearIndicator: Cl,
|
4097
4106
|
Control: Bl,
|
4098
4107
|
DropdownIndicator: Il,
|
4099
|
-
DownChevron:
|
4100
|
-
CrossIcon:
|
4108
|
+
DownChevron: Gi,
|
4109
|
+
CrossIcon: cr,
|
4101
4110
|
Group: kl,
|
4102
4111
|
GroupHeading: Vl,
|
4103
4112
|
IndicatorsContainer: pl,
|
@@ -4119,12 +4128,12 @@ var _l = function(t) {
|
|
4119
4128
|
SingleValue: od,
|
4120
4129
|
ValueContainer: dl
|
4121
4130
|
}, id = function(t) {
|
4122
|
-
return V(V({},
|
4123
|
-
},
|
4131
|
+
return V(V({}, lr), t.components);
|
4132
|
+
}, po = Number.isNaN || function(t) {
|
4124
4133
|
return typeof t == "number" && t !== t;
|
4125
4134
|
};
|
4126
4135
|
function ad(e, t) {
|
4127
|
-
return !!(e === t ||
|
4136
|
+
return !!(e === t || po(e) && po(t));
|
4128
4137
|
}
|
4129
4138
|
function sd(e, t) {
|
4130
4139
|
if (e.length !== t.length)
|
@@ -4168,7 +4177,7 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4168
4177
|
return M("span", N({
|
4169
4178
|
css: ld
|
4170
4179
|
}, t));
|
4171
|
-
},
|
4180
|
+
}, go = dd, fd = {
|
4172
4181
|
guidance: function(t) {
|
4173
4182
|
var r = t.isSearchable, i = t.isMulti, n = t.isDisabled, a = t.tabSelectsValue, s = t.context;
|
4174
4183
|
switch (s) {
|
@@ -4279,9 +4288,9 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4279
4288
|
}, E), M("span", {
|
4280
4289
|
id: "aria-context"
|
4281
4290
|
}, H)), $ = r?.action === "initial-input-focus";
|
4282
|
-
return M(Wn, null, M(
|
4291
|
+
return M(Wn, null, M(go, {
|
4283
4292
|
id: c
|
4284
|
-
}, $ && q), M(
|
4293
|
+
}, $ && q), M(go, {
|
4285
4294
|
"aria-live": y,
|
4286
4295
|
"aria-atomic": "false",
|
4287
4296
|
"aria-relevant": "additions text"
|
@@ -4540,15 +4549,15 @@ var ld = process.env.NODE_ENV === "production" ? {
|
|
4540
4549
|
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
4541
4550
|
}], bd = new RegExp("[" + Yn.map(function(e) {
|
4542
4551
|
return e.letters;
|
4543
|
-
}).join("") + "]", "g"),
|
4552
|
+
}).join("") + "]", "g"), Vi = {};
|
4544
4553
|
for (var yn = 0; yn < Yn.length; yn++)
|
4545
4554
|
for (var Cn = Yn[yn], xn = 0; xn < Cn.letters.length; xn++)
|
4546
|
-
|
4547
|
-
var
|
4555
|
+
Vi[Cn.letters[xn]] = Cn.base;
|
4556
|
+
var ki = function(t) {
|
4548
4557
|
return t.replace(bd, function(r) {
|
4549
|
-
return
|
4558
|
+
return Vi[r];
|
4550
4559
|
});
|
4551
|
-
}, hd = ud(
|
4560
|
+
}, hd = ud(ki), bo = function(t) {
|
4552
4561
|
return t.replace(/^\s+|\s+$/g, "");
|
4553
4562
|
}, md = function(t) {
|
4554
4563
|
return "".concat(t.label, " ").concat(t.value);
|
@@ -4561,8 +4570,8 @@ var Oi = function(t) {
|
|
4561
4570
|
stringify: md,
|
4562
4571
|
trim: !0,
|
4563
4572
|
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 =
|
4573
|
+
}, 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);
|
4574
|
+
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
4575
|
};
|
4567
4576
|
}, Id = ["innerRef"];
|
4568
4577
|
function yd(e) {
|
@@ -4570,7 +4579,7 @@ function yd(e) {
|
|
4570
4579
|
return M("input", N({
|
4571
4580
|
ref: t
|
4572
4581
|
}, i, {
|
4573
|
-
css: /* @__PURE__ */
|
4582
|
+
css: /* @__PURE__ */ ir({
|
4574
4583
|
label: "dummyInput",
|
4575
4584
|
// get rid of any default styles
|
4576
4585
|
background: 0,
|
@@ -4630,53 +4639,53 @@ function xd(e) {
|
|
4630
4639
|
c.current = I;
|
4631
4640
|
};
|
4632
4641
|
}
|
4633
|
-
var
|
4642
|
+
var ho = ["boxSizing", "height", "overflow", "paddingRight", "position"], mo = {
|
4634
4643
|
boxSizing: "border-box",
|
4635
4644
|
// account for possible declaration `width: 100%;` on body
|
4636
4645
|
overflow: "hidden",
|
4637
4646
|
position: "relative",
|
4638
4647
|
height: "100%"
|
4639
4648
|
};
|
4640
|
-
function
|
4649
|
+
function vo(e) {
|
4641
4650
|
e.preventDefault();
|
4642
4651
|
}
|
4643
|
-
function
|
4652
|
+
function Io(e) {
|
4644
4653
|
e.stopPropagation();
|
4645
4654
|
}
|
4646
|
-
function
|
4655
|
+
function yo() {
|
4647
4656
|
var e = this.scrollTop, t = this.scrollHeight, r = e + this.offsetHeight;
|
4648
4657
|
e === 0 ? this.scrollTop = 1 : r === t && (this.scrollTop = e - 1);
|
4649
4658
|
}
|
4650
|
-
function
|
4659
|
+
function Co() {
|
4651
4660
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
4652
4661
|
}
|
4653
|
-
var
|
4662
|
+
var xo = !!(typeof window < "u" && window.document && window.document.createElement), pt = 0, qe = {
|
4654
4663
|
capture: !1,
|
4655
4664
|
passive: !1
|
4656
4665
|
};
|
4657
4666
|
function wd(e) {
|
4658
4667
|
var t = e.isEnabled, r = e.accountForScrollbars, i = r === void 0 ? !0 : r, n = Ve({}), a = Ve(null), s = Ce(function(u) {
|
4659
|
-
if (
|
4668
|
+
if (xo) {
|
4660
4669
|
var c = document.body, l = c && c.style;
|
4661
|
-
if (i &&
|
4670
|
+
if (i && ho.forEach(function(h) {
|
4662
4671
|
var b = l && l[h];
|
4663
4672
|
n.current[h] = b;
|
4664
4673
|
}), i && pt < 1) {
|
4665
4674
|
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 =
|
4675
|
+
Object.keys(mo).forEach(function(h) {
|
4676
|
+
var b = mo[h];
|
4668
4677
|
l && (l[h] = b);
|
4669
4678
|
}), l && (l.paddingRight = "".concat(g, "px"));
|
4670
4679
|
}
|
4671
|
-
c &&
|
4680
|
+
c && Co() && (c.addEventListener("touchmove", vo, qe), u && (u.addEventListener("touchstart", yo, qe), u.addEventListener("touchmove", Io, qe))), pt += 1;
|
4672
4681
|
}
|
4673
4682
|
}, [i]), o = Ce(function(u) {
|
4674
|
-
if (
|
4683
|
+
if (xo) {
|
4675
4684
|
var c = document.body, l = c && c.style;
|
4676
|
-
pt = Math.max(pt - 1, 0), i && pt < 1 &&
|
4685
|
+
pt = Math.max(pt - 1, 0), i && pt < 1 && ho.forEach(function(d) {
|
4677
4686
|
var p = n.current[d];
|
4678
4687
|
l && (l[d] = p);
|
4679
|
-
}), c &&
|
4688
|
+
}), c && Co() && (c.removeEventListener("touchmove", vo, qe), u && (u.removeEventListener("touchstart", yo, qe), u.removeEventListener("touchmove", Io, qe)));
|
4680
4689
|
}
|
4681
4690
|
}, [i]);
|
4682
4691
|
return Zt(function() {
|
@@ -4795,8 +4804,8 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4795
4804
|
neutral70: "hsl(0, 0%, 30%)",
|
4796
4805
|
neutral80: "hsl(0, 0%, 20%)",
|
4797
4806
|
neutral90: "hsl(0, 0%, 10%)"
|
4798
|
-
}, Dd = 4,
|
4799
|
-
baseUnit:
|
4807
|
+
}, Dd = 4, Wi = 4, Md = 38, Xd = Wi * 2, Zd = {
|
4808
|
+
baseUnit: Wi,
|
4800
4809
|
controlHeight: Md,
|
4801
4810
|
menuGutter: Xd
|
4802
4811
|
}, wn = {
|
@@ -4806,8 +4815,8 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4806
4815
|
}, Ld = {
|
4807
4816
|
"aria-live": "polite",
|
4808
4817
|
backspaceRemovesValue: !0,
|
4809
|
-
blurInputOnSelect:
|
4810
|
-
captureMenuScroll: !
|
4818
|
+
blurInputOnSelect: lo(),
|
4819
|
+
captureMenuScroll: !lo(),
|
4811
4820
|
classNames: {},
|
4812
4821
|
closeMenuOnSelect: !0,
|
4813
4822
|
closeMenuOnScroll: !1,
|
@@ -4851,8 +4860,8 @@ var Bd = process.env.NODE_ENV === "production" ? {
|
|
4851
4860
|
tabSelectsValue: !0,
|
4852
4861
|
unstyled: !1
|
4853
4862
|
};
|
4854
|
-
function
|
4855
|
-
var n =
|
4863
|
+
function wo(e, t, r, i) {
|
4864
|
+
var n = Xi(e, t, r), a = Zi(e, t, r), s = Mi(e, t), o = Ut(e, t);
|
4856
4865
|
return {
|
4857
4866
|
type: "option",
|
4858
4867
|
data: t,
|
@@ -4863,13 +4872,13 @@ function Co(e, t, r, i) {
|
|
4863
4872
|
index: i
|
4864
4873
|
};
|
4865
4874
|
}
|
4866
|
-
function
|
4875
|
+
function Ni(e, t) {
|
4867
4876
|
return e.options.map(function(r, i) {
|
4868
4877
|
if ("options" in r) {
|
4869
4878
|
var n = r.options.map(function(s, o) {
|
4870
|
-
return
|
4879
|
+
return wo(e, s, t, o);
|
4871
4880
|
}).filter(function(s) {
|
4872
|
-
return
|
4881
|
+
return Ao(e, s);
|
4873
4882
|
});
|
4874
4883
|
return n.length > 0 ? {
|
4875
4884
|
type: "group",
|
@@ -4878,23 +4887,23 @@ function ki(e, t) {
|
|
4878
4887
|
index: i
|
4879
4888
|
} : void 0;
|
4880
4889
|
}
|
4881
|
-
var a =
|
4882
|
-
return
|
4890
|
+
var a = wo(e, r, t, i);
|
4891
|
+
return Ao(e, a) ? a : void 0;
|
4883
4892
|
}).filter(Hc);
|
4884
4893
|
}
|
4885
|
-
function
|
4894
|
+
function Di(e) {
|
4886
4895
|
return e.reduce(function(t, r) {
|
4887
|
-
return r.type === "group" ? t.push.apply(t,
|
4896
|
+
return r.type === "group" ? t.push.apply(t, qn(r.options.map(function(i) {
|
4888
4897
|
return i.data;
|
4889
4898
|
}))) : t.push(r.data), t;
|
4890
4899
|
}, []);
|
4891
4900
|
}
|
4892
4901
|
function Hd(e, t) {
|
4893
|
-
return
|
4902
|
+
return Di(Ni(e, t));
|
4894
4903
|
}
|
4895
|
-
function
|
4904
|
+
function Ao(e, t) {
|
4896
4905
|
var r = e.inputValue, i = r === void 0 ? "" : r, n = t.data, a = t.isSelected, s = t.label, o = t.value;
|
4897
|
-
return (!
|
4906
|
+
return (!Hi(e) || !a) && Li(e, {
|
4898
4907
|
label: s,
|
4899
4908
|
value: o,
|
4900
4909
|
data: n
|
@@ -4915,15 +4924,15 @@ function Yd(e, t) {
|
|
4915
4924
|
var r = e.focusedOption;
|
4916
4925
|
return r && t.indexOf(r) > -1 ? r : t[0];
|
4917
4926
|
}
|
4918
|
-
var
|
4927
|
+
var Mi = function(t, r) {
|
4919
4928
|
return t.getOptionLabel(r);
|
4920
4929
|
}, Ut = function(t, r) {
|
4921
4930
|
return t.getOptionValue(r);
|
4922
4931
|
};
|
4923
|
-
function
|
4932
|
+
function Xi(e, t, r) {
|
4924
4933
|
return typeof e.isOptionDisabled == "function" ? e.isOptionDisabled(t, r) : !1;
|
4925
4934
|
}
|
4926
|
-
function
|
4935
|
+
function Zi(e, t, r) {
|
4927
4936
|
if (r.indexOf(t) > -1) return !0;
|
4928
4937
|
if (typeof e.isOptionSelected == "function")
|
4929
4938
|
return e.isOptionSelected(t, r);
|
@@ -4932,13 +4941,13 @@ function Mi(e, t, r) {
|
|
4932
4941
|
return Ut(e, n) === i;
|
4933
4942
|
});
|
4934
4943
|
}
|
4935
|
-
function
|
4944
|
+
function Li(e, t, r) {
|
4936
4945
|
return e.filterOption ? e.filterOption(t, r) : !0;
|
4937
4946
|
}
|
4938
|
-
var
|
4947
|
+
var Hi = function(t) {
|
4939
4948
|
var r = t.hideSelectedOptions, i = t.isMulti;
|
4940
4949
|
return r === void 0 ? i : r;
|
4941
|
-
}, zd = 1,
|
4950
|
+
}, zd = 1, dr = /* @__PURE__ */ function(e) {
|
4942
4951
|
Kt(r, e);
|
4943
4952
|
var t = du(r);
|
4944
4953
|
function r(i) {
|
@@ -4986,7 +4995,7 @@ var Zi = function(t) {
|
|
4986
4995
|
return n.getOptionValue(I) !== b;
|
4987
4996
|
}), "deselect-option", o);
|
4988
4997
|
} else if (!h)
|
4989
|
-
l ? n.setValue([].concat(
|
4998
|
+
l ? n.setValue([].concat(qn(p), [o]), "select-option", o) : n.setValue(o, "select-option");
|
4990
4999
|
else {
|
4991
5000
|
n.ariaOnChange(o, {
|
4992
5001
|
action: "select-option",
|
@@ -5023,7 +5032,7 @@ var Zi = function(t) {
|
|
5023
5032
|
u[c] = arguments[c];
|
5024
5033
|
return Vc.apply(void 0, [n.props.classNamePrefix].concat(u));
|
5025
5034
|
}, n.getOptionLabel = function(o) {
|
5026
|
-
return
|
5035
|
+
return Mi(n.props, o);
|
5027
5036
|
}, n.getOptionValue = function(o) {
|
5028
5037
|
return Ut(n.props, o);
|
5029
5038
|
}, n.getStyles = function(o, u) {
|
@@ -5039,11 +5048,11 @@ var Zi = function(t) {
|
|
5039
5048
|
}, n.getComponents = function() {
|
5040
5049
|
return id(n.props);
|
5041
5050
|
}, n.buildCategorizedOptions = function() {
|
5042
|
-
return
|
5051
|
+
return Ni(n.props, n.state.selectValue);
|
5043
5052
|
}, n.getCategorizedOptions = function() {
|
5044
5053
|
return n.props.menuIsOpen ? n.buildCategorizedOptions() : [];
|
5045
5054
|
}, n.buildFocusableOptions = function() {
|
5046
|
-
return
|
5055
|
+
return Di(n.buildCategorizedOptions());
|
5047
5056
|
}, n.getFocusableOptions = function() {
|
5048
5057
|
return n.props.menuIsOpen ? n.buildFocusableOptions() : [];
|
5049
5058
|
}, n.ariaOnChange = function(o, u) {
|
@@ -5126,7 +5135,7 @@ var Zi = function(t) {
|
|
5126
5135
|
focusedOption: o
|
5127
5136
|
});
|
5128
5137
|
}, n.shouldHideSelectedOptions = function() {
|
5129
|
-
return
|
5138
|
+
return Hi(n.props);
|
5130
5139
|
}, n.onValueInputFocus = function(o) {
|
5131
5140
|
o.preventDefault(), o.stopPropagation(), n.focus();
|
5132
5141
|
}, n.onKeyDown = function(o) {
|
@@ -5212,7 +5221,7 @@ var Zi = function(t) {
|
|
5212
5221
|
}
|
5213
5222
|
o.preventDefault();
|
5214
5223
|
}
|
5215
|
-
}, n.instancePrefix = "react-select-" + (n.props.instanceId || ++zd), n.state.selectValue =
|
5224
|
+
}, n.instancePrefix = "react-select-" + (n.props.instanceId || ++zd), n.state.selectValue = uo(i.value), i.menuIsOpen && n.state.selectValue.length) {
|
5216
5225
|
var a = n.buildFocusableOptions(), s = a.indexOf(n.state.selectValue[0]);
|
5217
5226
|
n.state.focusedOption = a[s];
|
5218
5227
|
}
|
@@ -5221,7 +5230,7 @@ var Zi = function(t) {
|
|
5221
5230
|
return st(r, [{
|
5222
5231
|
key: "componentDidMount",
|
5223
5232
|
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 &&
|
5233
|
+
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
5234
|
}
|
5226
5235
|
}, {
|
5227
5236
|
key: "componentDidUpdate",
|
@@ -5233,7 +5242,7 @@ var Zi = function(t) {
|
|
5233
5242
|
isFocused: !1
|
5234
5243
|
}, this.onMenuClose) : !u && !s && n.isDisabled && this.inputRef === document.activeElement && this.setState({
|
5235
5244
|
isFocused: !0
|
5236
|
-
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (
|
5245
|
+
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (co(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
5237
5246
|
}
|
5238
5247
|
}, {
|
5239
5248
|
key: "componentWillUnmount",
|
@@ -5380,17 +5389,17 @@ var Zi = function(t) {
|
|
5380
5389
|
}, {
|
5381
5390
|
key: "isOptionDisabled",
|
5382
5391
|
value: function(n, a) {
|
5383
|
-
return
|
5392
|
+
return Xi(this.props, n, a);
|
5384
5393
|
}
|
5385
5394
|
}, {
|
5386
5395
|
key: "isOptionSelected",
|
5387
5396
|
value: function(n, a) {
|
5388
|
-
return
|
5397
|
+
return Zi(this.props, n, a);
|
5389
5398
|
}
|
5390
5399
|
}, {
|
5391
5400
|
key: "filterOption",
|
5392
5401
|
value: function(n, a) {
|
5393
|
-
return
|
5402
|
+
return Li(this.props, n, a);
|
5394
5403
|
}
|
5395
5404
|
}, {
|
5396
5405
|
key: "formatOptionLabel",
|
@@ -5796,7 +5805,7 @@ var Zi = function(t) {
|
|
5796
5805
|
}], [{
|
5797
5806
|
key: "getDerivedStateFromProps",
|
5798
5807
|
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 =
|
5808
|
+
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
5809
|
if (s && (g !== s.value || p !== s.options || h !== s.menuIsOpen || b !== s.inputValue)) {
|
5801
5810
|
var w = h ? Hd(n, v) : [], C = o ? jd(a, v) : null, y = Yd(a, w);
|
5802
5811
|
x = {
|
@@ -5822,9 +5831,9 @@ var Zi = function(t) {
|
|
5822
5831
|
}
|
5823
5832
|
}]), r;
|
5824
5833
|
}($t);
|
5825
|
-
|
5834
|
+
dr.defaultProps = Ld;
|
5826
5835
|
var Jd = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
5827
|
-
function
|
5836
|
+
function ji(e) {
|
5828
5837
|
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), P = me(E, 2), K = P[0], X = P[1], H = Ce(function(fe, Ie) {
|
5829
5838
|
typeof c == "function" && c(fe, Ie), X(fe);
|
5830
5839
|
}, [c]), q = Ce(function(fe, Ie) {
|
@@ -5890,16 +5899,16 @@ function Ud(e) {
|
|
5890
5899
|
});
|
5891
5900
|
}
|
5892
5901
|
var $d = /* @__PURE__ */ Jn(function(e, t) {
|
5893
|
-
var r = Ud(e), i =
|
5894
|
-
return /* @__PURE__ */ J.createElement(
|
5902
|
+
var r = Ud(e), i = ji(r);
|
5903
|
+
return /* @__PURE__ */ J.createElement(dr, N({
|
5895
5904
|
ref: t
|
5896
5905
|
}, i));
|
5897
5906
|
}), Qd = $d, Kd = /* @__PURE__ */ Jn(function(e, t) {
|
5898
|
-
var r =
|
5899
|
-
return /* @__PURE__ */ J.createElement(
|
5907
|
+
var r = ji(e);
|
5908
|
+
return /* @__PURE__ */ J.createElement(dr, N({
|
5900
5909
|
ref: t
|
5901
5910
|
}, r));
|
5902
|
-
}),
|
5911
|
+
}), Yi = Kd;
|
5903
5912
|
function An(e) {
|
5904
5913
|
for (var t = 1; t < arguments.length; t++) {
|
5905
5914
|
var r = arguments[t] != null ? Object(arguments[t]) : {}, i = Object.keys(r);
|
@@ -5911,10 +5920,10 @@ function An(e) {
|
|
5911
5920
|
}
|
5912
5921
|
return e;
|
5913
5922
|
}
|
5914
|
-
var En,
|
5923
|
+
var En, Eo;
|
5915
5924
|
function qd() {
|
5916
|
-
if (
|
5917
|
-
|
5925
|
+
if (Eo) return En;
|
5926
|
+
Eo = 1;
|
5918
5927
|
var e = function(t, r, i, n, a, s, o, u) {
|
5919
5928
|
if (process.env.NODE_ENV !== "production" && r === void 0)
|
5920
5929
|
throw new Error("invariant requires an error message argument");
|
@@ -5945,10 +5954,10 @@ object-assign
|
|
5945
5954
|
(c) Sindre Sorhus
|
5946
5955
|
@license MIT
|
5947
5956
|
*/
|
5948
|
-
var Sn,
|
5957
|
+
var Sn, So;
|
5949
5958
|
function tf() {
|
5950
|
-
if (
|
5951
|
-
|
5959
|
+
if (So) return Sn;
|
5960
|
+
So = 1;
|
5952
5961
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
5953
5962
|
function i(a) {
|
5954
5963
|
if (a == null)
|
@@ -5991,25 +6000,25 @@ function tf() {
|
|
5991
6000
|
return u;
|
5992
6001
|
}, Sn;
|
5993
6002
|
}
|
5994
|
-
var Tn,
|
5995
|
-
function
|
5996
|
-
if (
|
5997
|
-
|
6003
|
+
var Tn, To;
|
6004
|
+
function fr() {
|
6005
|
+
if (To) return Tn;
|
6006
|
+
To = 1;
|
5998
6007
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
5999
6008
|
return Tn = e, Tn;
|
6000
6009
|
}
|
6001
|
-
var Rn,
|
6002
|
-
function
|
6003
|
-
return
|
6010
|
+
var Rn, Ro;
|
6011
|
+
function zi() {
|
6012
|
+
return Ro || (Ro = 1, Rn = Function.call.bind(Object.prototype.hasOwnProperty)), Rn;
|
6004
6013
|
}
|
6005
|
-
var Bn,
|
6014
|
+
var Bn, Bo;
|
6006
6015
|
function nf() {
|
6007
|
-
if (
|
6008
|
-
|
6016
|
+
if (Bo) return Bn;
|
6017
|
+
Bo = 1;
|
6009
6018
|
var e = function() {
|
6010
6019
|
};
|
6011
6020
|
if (process.env.NODE_ENV !== "production") {
|
6012
|
-
var t = /* @__PURE__ */
|
6021
|
+
var t = /* @__PURE__ */ fr(), r = {}, i = /* @__PURE__ */ zi();
|
6013
6022
|
e = function(a) {
|
6014
6023
|
var s = "Warning: " + a;
|
6015
6024
|
typeof console < "u" && console.error(s);
|
@@ -6051,11 +6060,11 @@ function nf() {
|
|
6051
6060
|
process.env.NODE_ENV !== "production" && (r = {});
|
6052
6061
|
}, Bn = n, Bn;
|
6053
6062
|
}
|
6054
|
-
var Gn,
|
6063
|
+
var Gn, Go;
|
6055
6064
|
function rf() {
|
6056
|
-
if (
|
6057
|
-
|
6058
|
-
var e =
|
6065
|
+
if (Go) return Gn;
|
6066
|
+
Go = 1;
|
6067
|
+
var e = rr(), t = tf(), r = /* @__PURE__ */ fr(), i = /* @__PURE__ */ zi(), n = /* @__PURE__ */ nf(), a = function() {
|
6059
6068
|
};
|
6060
6069
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
6061
6070
|
var u = "Warning: " + o;
|
@@ -6372,11 +6381,11 @@ Valid keys: ` + JSON.stringify(Object.keys(A), null, " ")
|
|
6372
6381
|
return g.checkPropTypes = n, g.resetWarningCache = n.resetWarningCache, g.PropTypes = g, g;
|
6373
6382
|
}, Gn;
|
6374
6383
|
}
|
6375
|
-
var Fn,
|
6384
|
+
var Fn, Fo;
|
6376
6385
|
function of() {
|
6377
|
-
if (
|
6378
|
-
|
6379
|
-
var e = /* @__PURE__ */
|
6386
|
+
if (Fo) return Fn;
|
6387
|
+
Fo = 1;
|
6388
|
+
var e = /* @__PURE__ */ fr();
|
6380
6389
|
function t() {
|
6381
6390
|
}
|
6382
6391
|
function r() {
|
@@ -6420,11 +6429,11 @@ function of() {
|
|
6420
6429
|
return a.PropTypes = a, a;
|
6421
6430
|
}, Fn;
|
6422
6431
|
}
|
6423
|
-
var
|
6432
|
+
var Po;
|
6424
6433
|
function af() {
|
6425
|
-
if (
|
6426
|
-
if (
|
6427
|
-
var e =
|
6434
|
+
if (Po) return Pt.exports;
|
6435
|
+
if (Po = 1, process.env.NODE_ENV !== "production") {
|
6436
|
+
var e = rr(), t = !0;
|
6428
6437
|
Pt.exports = /* @__PURE__ */ rf()(e.isElement, t);
|
6429
6438
|
} else
|
6430
6439
|
Pt.exports = /* @__PURE__ */ of()();
|
@@ -6481,7 +6490,7 @@ function cf(e, t) {
|
|
6481
6490
|
function lf(e, t, r) {
|
6482
6491
|
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
6492
|
}
|
6484
|
-
function
|
6493
|
+
function Ji(e, t) {
|
6485
6494
|
return Object.keys(e).reduce(function(r, i) {
|
6486
6495
|
return t.indexOf(i) === -1 && (r[i] = e[i]), r;
|
6487
6496
|
}, {});
|
@@ -6490,7 +6499,7 @@ var et = {
|
|
6490
6499
|
end: ["touchend", "touchcancel", "mouseup"],
|
6491
6500
|
move: ["touchmove", "mousemove"],
|
6492
6501
|
start: ["touchstart", "mousedown"]
|
6493
|
-
},
|
6502
|
+
}, _i = function() {
|
6494
6503
|
if (typeof window > "u" || typeof document > "u")
|
6495
6504
|
return "";
|
6496
6505
|
var e = window.getComputedStyle(document.documentElement, "") || ["-moz-hidden-iframe"], t = (Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/) || e.OLink === "" && ["", "o"])[1];
|
@@ -6507,10 +6516,10 @@ function Ot(e, t) {
|
|
6507
6516
|
});
|
6508
6517
|
}
|
6509
6518
|
function Vt(e, t) {
|
6510
|
-
e.style["".concat(
|
6519
|
+
e.style["".concat(_i, "Transform")] = t == null ? "" : "translate3d(".concat(t.x, "px,").concat(t.y, "px,0)");
|
6511
6520
|
}
|
6512
6521
|
function Pn(e, t) {
|
6513
|
-
e.style["".concat(
|
6522
|
+
e.style["".concat(_i, "TransitionDuration")] = t == null ? "" : "".concat(t, "ms");
|
6514
6523
|
}
|
6515
6524
|
function bt(e, t) {
|
6516
6525
|
for (; e; ) {
|
@@ -6520,7 +6529,7 @@ function bt(e, t) {
|
|
6520
6529
|
}
|
6521
6530
|
return null;
|
6522
6531
|
}
|
6523
|
-
function
|
6532
|
+
function Oo(e, t, r) {
|
6524
6533
|
return Math.max(e, Math.min(r, t));
|
6525
6534
|
}
|
6526
6535
|
function nt(e) {
|
@@ -6535,7 +6544,7 @@ function df(e) {
|
|
6535
6544
|
top: nt(t.marginTop)
|
6536
6545
|
};
|
6537
6546
|
}
|
6538
|
-
function
|
6547
|
+
function pr(e, t) {
|
6539
6548
|
var r = t.displayName || t.name;
|
6540
6549
|
return r ? "".concat(e, "(").concat(r, ")") : e;
|
6541
6550
|
}
|
@@ -6577,7 +6586,7 @@ function Xt(e, t) {
|
|
6577
6586
|
function pf(e, t, r) {
|
6578
6587
|
return e < r && e > t ? e - 1 : e > r && e < t ? e + 1 : e;
|
6579
6588
|
}
|
6580
|
-
function
|
6589
|
+
function Vo(e) {
|
6581
6590
|
var t = e.lockOffset, r = e.width, i = e.height, n = t, a = t, s = "px";
|
6582
6591
|
if (typeof t == "string") {
|
6583
6592
|
var o = /^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);
|
@@ -6592,11 +6601,11 @@ function gf(e) {
|
|
6592
6601
|
var t = e.height, r = e.width, i = e.lockOffset, n = Array.isArray(i) ? i : [i, i];
|
6593
6602
|
$e(n.length === 2, "lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s", i);
|
6594
6603
|
var a = me(n, 2), s = a[0], o = a[1];
|
6595
|
-
return [
|
6604
|
+
return [Vo({
|
6596
6605
|
height: t,
|
6597
6606
|
lockOffset: s,
|
6598
6607
|
width: r
|
6599
|
-
}),
|
6608
|
+
}), Vo({
|
6600
6609
|
height: t,
|
6601
6610
|
lockOffset: o,
|
6602
6611
|
width: r
|
@@ -6608,8 +6617,8 @@ function bf(e) {
|
|
6608
6617
|
return r.test(t[n]);
|
6609
6618
|
});
|
6610
6619
|
}
|
6611
|
-
function
|
6612
|
-
return e instanceof HTMLElement ? bf(e) ? e :
|
6620
|
+
function Ui(e) {
|
6621
|
+
return e instanceof HTMLElement ? bf(e) ? e : Ui(e.parentNode) : null;
|
6613
6622
|
}
|
6614
6623
|
function hf(e) {
|
6615
6624
|
var t = window.getComputedStyle(e);
|
@@ -6638,7 +6647,7 @@ var ze = {
|
|
6638
6647
|
Select: "SELECT"
|
6639
6648
|
};
|
6640
6649
|
function mf(e) {
|
6641
|
-
var t = "input, textarea, select, canvas, [contenteditable]", r = e.querySelectorAll(t), i = e.cloneNode(!0), n =
|
6650
|
+
var t = "input, textarea, select, canvas, [contenteditable]", r = e.querySelectorAll(t), i = e.cloneNode(!0), n = qn(i.querySelectorAll(t));
|
6642
6651
|
return n.forEach(function(a, s) {
|
6643
6652
|
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
6653
|
var o = a.getContext("2d");
|
@@ -6679,9 +6688,9 @@ function vf(e) {
|
|
6679
6688
|
}, this.props));
|
6680
6689
|
}
|
6681
6690
|
}]), a;
|
6682
|
-
}($t), ne(t, "displayName",
|
6691
|
+
}($t), ne(t, "displayName", pr("sortableHandle", e)), r;
|
6683
6692
|
}
|
6684
|
-
function
|
6693
|
+
function ko(e) {
|
6685
6694
|
return e.sortableHandle != null;
|
6686
6695
|
}
|
6687
6696
|
var If = function() {
|
@@ -6730,7 +6739,7 @@ function Cf(e) {
|
|
6730
6739
|
return r.contentEditable === "true";
|
6731
6740
|
}));
|
6732
6741
|
}
|
6733
|
-
var
|
6742
|
+
var $i = {
|
6734
6743
|
axis: L.oneOf(["x", "y", "xy"]),
|
6735
6744
|
contentWindow: L.any,
|
6736
6745
|
disableAutoscroll: L.bool,
|
@@ -6762,7 +6771,7 @@ var _i = {
|
|
6762
6771
|
updateBeforeSortStart: L.func,
|
6763
6772
|
useDragHandle: L.bool,
|
6764
6773
|
useWindowAsScrollContainer: L.bool
|
6765
|
-
},
|
6774
|
+
}, Qi = {
|
6766
6775
|
lift: [ze.SPACE],
|
6767
6776
|
drop: [ze.SPACE],
|
6768
6777
|
cancel: [ze.ESC],
|
@@ -6778,11 +6787,11 @@ var _i = {
|
|
6778
6787
|
lockToContainerEdges: !1,
|
6779
6788
|
pressDelay: 0,
|
6780
6789
|
pressThreshold: 5,
|
6781
|
-
keyCodes:
|
6790
|
+
keyCodes: Qi,
|
6782
6791
|
shouldCancelStart: Cf,
|
6783
6792
|
transitionDuration: 300,
|
6784
6793
|
useWindowAsScrollContainer: !1
|
6785
|
-
}, wf = Object.keys(
|
6794
|
+
}, wf = Object.keys($i);
|
6786
6795
|
function Af(e) {
|
6787
6796
|
$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
6797
|
}
|
@@ -6794,10 +6803,10 @@ function Ef(e, t) {
|
|
6794
6803
|
}
|
6795
6804
|
return r && r.then ? r.then(t.bind(null, !1), t.bind(null, !0)) : t(!1, value);
|
6796
6805
|
}
|
6797
|
-
var
|
6806
|
+
var Ki = Uo({
|
6798
6807
|
manager: {}
|
6799
6808
|
});
|
6800
|
-
function
|
6809
|
+
function qi(e) {
|
6801
6810
|
var t, r, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
6802
6811
|
withRef: !1
|
6803
6812
|
};
|
@@ -6814,7 +6823,7 @@ function Qi(e) {
|
|
6814
6823
|
});
|
6815
6824
|
if (g && g.sortableInfo && o.nodeIsChild(g) && !o.state.sorting) {
|
6816
6825
|
var h = o.props.useDragHandle, b = g.sortableInfo, I = b.index, v = b.collection, x = b.disabled;
|
6817
|
-
if (x || h && !bt(c.target,
|
6826
|
+
if (x || h && !bt(c.target, ko))
|
6818
6827
|
return;
|
6819
6828
|
o.manager.active = {
|
6820
6829
|
collection: v,
|
@@ -6979,7 +6988,7 @@ function Qi(e) {
|
|
6979
6988
|
}), ne(Q(Q(o)), "onAutoScroll", function(c) {
|
6980
6989
|
o.translate.x += c.left, o.translate.y += c.top, o.animateNodes();
|
6981
6990
|
}), 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({},
|
6991
|
+
var l = c.keyCode, d = o.props, p = d.shouldCancelStart, g = d.keyCodes, h = g === void 0 ? {} : g, b = An({}, Qi, h);
|
6983
6992
|
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
6993
|
}), ne(Q(Q(o)), "keyLift", function(c) {
|
6985
6994
|
var l = c.target, d = bt(l, function(b) {
|
@@ -7020,7 +7029,7 @@ function Qi(e) {
|
|
7020
7029
|
var l = o.props.useDragHandle, d = c.target, p = bt(d, function(g) {
|
7021
7030
|
return g.sortableInfo != null;
|
7022
7031
|
});
|
7023
|
-
return p && p.sortableInfo && !p.sortableInfo.disabled && (l ?
|
7032
|
+
return p && p.sortableInfo && !p.sortableInfo.disabled && (l ? ko(d) : d.sortableInfo);
|
7024
7033
|
});
|
7025
7034
|
var u = new uf();
|
7026
7035
|
return Af(s), o.manager = u, o.wrappedInstance = _n(), o.sortableContextValue = {
|
@@ -7038,7 +7047,7 @@ function Qi(e) {
|
|
7038
7047
|
Promise.resolve(c).then(function(l) {
|
7039
7048
|
o.container = l, o.document = o.container.ownerDocument || document;
|
7040
7049
|
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 :
|
7050
|
+
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
7051
|
return et[p].forEach(function(g) {
|
7043
7052
|
return o.container.addEventListener(g, o.events[p], !1);
|
7044
7053
|
});
|
@@ -7074,7 +7083,7 @@ function Qi(e) {
|
|
7074
7083
|
x: this.width / 2 - T.x,
|
7075
7084
|
y: this.height / 2 - T.y
|
7076
7085
|
};
|
7077
|
-
x.x =
|
7086
|
+
x.x = Oo(this.minTranslate.x + E.x, this.maxTranslate.x - P.x, x.x), x.y = Oo(this.minTranslate.y + E.y, this.maxTranslate.y - P.y, x.y);
|
7078
7087
|
}
|
7079
7088
|
c === "x" ? x.y = 0 : c === "y" && (x.x = 0), b && h && !I && Pn(this.helper, h), Vt(this.helper, x);
|
7080
7089
|
}
|
@@ -7132,11 +7141,11 @@ function Qi(e) {
|
|
7132
7141
|
key: "render",
|
7133
7142
|
value: function() {
|
7134
7143
|
var o = i.withRef ? this.wrappedInstance : null;
|
7135
|
-
return Lt(
|
7144
|
+
return Lt(Ki.Provider, {
|
7136
7145
|
value: this.sortableContextValue
|
7137
7146
|
}, Lt(e, N({
|
7138
7147
|
ref: o
|
7139
|
-
},
|
7148
|
+
}, Ji(this.props, wf))));
|
7140
7149
|
}
|
7141
7150
|
}, {
|
7142
7151
|
key: "helperContainer",
|
@@ -7165,13 +7174,13 @@ function Qi(e) {
|
|
7165
7174
|
};
|
7166
7175
|
}
|
7167
7176
|
}]), a;
|
7168
|
-
}($t), ne(t, "displayName",
|
7177
|
+
}($t), ne(t, "displayName", pr("sortableList", e)), ne(t, "defaultProps", xf), ne(t, "propTypes", $i), r;
|
7169
7178
|
}
|
7170
|
-
var
|
7179
|
+
var ea = {
|
7171
7180
|
index: L.number.isRequired,
|
7172
7181
|
collection: L.oneOfType([L.number, L.string]),
|
7173
7182
|
disabled: L.bool
|
7174
|
-
}, Sf = Object.keys(
|
7183
|
+
}, Sf = Object.keys(ea);
|
7175
7184
|
function Tf(e) {
|
7176
7185
|
var t, r, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
7177
7186
|
withRef: !1
|
@@ -7230,28 +7239,28 @@ function Tf(e) {
|
|
7230
7239
|
var o = i.withRef ? this.wrappedInstance : null;
|
7231
7240
|
return Lt(e, N({
|
7232
7241
|
ref: o
|
7233
|
-
},
|
7242
|
+
}, Ji(this.props, Sf)));
|
7234
7243
|
}
|
7235
7244
|
}]), a;
|
7236
|
-
}($t), ne(t, "displayName",
|
7245
|
+
}($t), ne(t, "displayName", pr("sortableElement", e)), ne(t, "contextType", Ki), ne(t, "propTypes", ea), ne(t, "defaultProps", {
|
7237
7246
|
collection: 0
|
7238
7247
|
}), r;
|
7239
7248
|
}
|
7240
|
-
const
|
7249
|
+
const ta = Tf((e) => {
|
7241
7250
|
const t = (i) => {
|
7242
7251
|
i.preventDefault(), i.stopPropagation();
|
7243
7252
|
}, r = { ...e.innerProps, onMouseDown: t };
|
7244
|
-
return /* @__PURE__ */ m.jsx(
|
7245
|
-
}),
|
7246
|
-
const t =
|
7253
|
+
return /* @__PURE__ */ m.jsx(lr.MultiValue, { ...e, innerProps: r });
|
7254
|
+
}), na = vf((e) => /* @__PURE__ */ m.jsx(lr.MultiValueLabel, { ...e })), Rf = (e) => {
|
7255
|
+
const t = qi(Qd);
|
7247
7256
|
return /* @__PURE__ */ m.jsx(
|
7248
7257
|
t,
|
7249
7258
|
{
|
7250
7259
|
isMulti: !0,
|
7251
7260
|
useDragHandle: !0,
|
7252
7261
|
components: {
|
7253
|
-
MultiValue:
|
7254
|
-
MultiValueLabel:
|
7262
|
+
MultiValue: ta,
|
7263
|
+
MultiValueLabel: na
|
7255
7264
|
},
|
7256
7265
|
getHelperDimensions: ({ node: r }) => r.getBoundingClientRect(),
|
7257
7266
|
axis: "xy",
|
@@ -7263,16 +7272,16 @@ const qi = Tf((e) => {
|
|
7263
7272
|
...e
|
7264
7273
|
}
|
7265
7274
|
);
|
7266
|
-
},
|
7267
|
-
const t =
|
7275
|
+
}, Jp = (e) => {
|
7276
|
+
const t = qi(Yi);
|
7268
7277
|
return /* @__PURE__ */ m.jsx(
|
7269
7278
|
t,
|
7270
7279
|
{
|
7271
7280
|
isMulti: !0,
|
7272
7281
|
useDragHandle: !0,
|
7273
7282
|
components: {
|
7274
|
-
MultiValue:
|
7275
|
-
MultiValueLabel:
|
7283
|
+
MultiValue: ta,
|
7284
|
+
MultiValueLabel: na
|
7276
7285
|
},
|
7277
7286
|
getHelperDimensions: ({ node: r }) => r.getBoundingClientRect(),
|
7278
7287
|
axis: "xy",
|
@@ -7282,7 +7291,7 @@ const qi = Tf((e) => {
|
|
7282
7291
|
...e
|
7283
7292
|
}
|
7284
7293
|
);
|
7285
|
-
}, Bf = window.wp.element.createContext, Xe = window.wp.element.useCallback, Gf = window.wp.element.useContext, Ff = window.wp.element.useState, Pf = window.wp.element.useEffect, zn = window.wp.element.useMemo, ct = window.wp.element.memo, yt = window.wp.components.__experimentalDivider, Of = window.wp.components.RangeControl, Vf = window.wp.components.RadioControl,
|
7294
|
+
}, Bf = window.wp.element.createContext, Xe = window.wp.element.useCallback, Gf = window.wp.element.useContext, Ff = window.wp.element.useState, Pf = window.wp.element.useEffect, zn = window.wp.element.useMemo, ct = window.wp.element.memo, yt = window.wp.components.__experimentalDivider, Of = window.wp.components.RangeControl, Vf = window.wp.components.RadioControl, Wo = window.wp.components.SelectControl, kf = window.wp.data.useSelect, ra = Bf({}), Ct = ct(({
|
7286
7295
|
attributes: e,
|
7287
7296
|
setAttributes: t,
|
7288
7297
|
children: r
|
@@ -7294,9 +7303,9 @@ const qi = Tf((e) => {
|
|
7294
7303
|
setAttributes: t,
|
7295
7304
|
updateAttribute: i
|
7296
7305
|
}), [e]);
|
7297
|
-
return /* @__PURE__ */ m.jsx(
|
7306
|
+
return /* @__PURE__ */ m.jsx(ra.Provider, { value: n, children: r });
|
7298
7307
|
}), xt = () => {
|
7299
|
-
const e = Gf(
|
7308
|
+
const e = Gf(ra);
|
7300
7309
|
if (!e)
|
7301
7310
|
throw new Error("Query control components must be used within a DataQueryControls component");
|
7302
7311
|
return e;
|
@@ -7357,7 +7366,7 @@ const qi = Tf((e) => {
|
|
7357
7366
|
attributeName: t
|
7358
7367
|
}) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7359
7368
|
/* @__PURE__ */ m.jsx(
|
7360
|
-
|
7369
|
+
Yi,
|
7361
7370
|
{
|
7362
7371
|
isMulti: !0,
|
7363
7372
|
options: l,
|
@@ -7379,9 +7388,9 @@ const qi = Tf((e) => {
|
|
7379
7388
|
disabled: n = !1,
|
7380
7389
|
render: a = null
|
7381
7390
|
}) => {
|
7382
|
-
const { attributes: s, updateAttribute: o } = xt(), u = s[t] || [], c = Xe(async (h) => await
|
7391
|
+
const { attributes: s, updateAttribute: o } = xt(), u = s[t] || [], c = Xe(async (h) => await Yr(h, r), []), [l, d] = Ff([]);
|
7383
7392
|
Pf(() => {
|
7384
|
-
|
7393
|
+
Yr("", r).then(d);
|
7385
7394
|
}, []);
|
7386
7395
|
const p = Xe(({ oldIndex: h, newIndex: b }) => {
|
7387
7396
|
const I = lf(u, h, b);
|
@@ -7481,7 +7490,7 @@ const qi = Tf((e) => {
|
|
7481
7490
|
orderAttributeName: r
|
7482
7491
|
}) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7483
7492
|
/* @__PURE__ */ m.jsx(
|
7484
|
-
|
7493
|
+
Wo,
|
7485
7494
|
{
|
7486
7495
|
label: "Order By",
|
7487
7496
|
value: c,
|
@@ -7491,7 +7500,7 @@ const qi = Tf((e) => {
|
|
7491
7500
|
}
|
7492
7501
|
),
|
7493
7502
|
/* @__PURE__ */ m.jsx(
|
7494
|
-
|
7503
|
+
Wo,
|
7495
7504
|
{
|
7496
7505
|
label: "Order",
|
7497
7506
|
value: l,
|
@@ -7537,7 +7546,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7537
7546
|
}
|
7538
7547
|
) })
|
7539
7548
|
}
|
7540
|
-
) }),
|
7549
|
+
) }), No = ({
|
7541
7550
|
hasMargin: e = !0,
|
7542
7551
|
hasPadding: t = !0,
|
7543
7552
|
disabledMargin: r = { top: !1, bottom: !1 },
|
@@ -7573,7 +7582,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7573
7582
|
onChange: l("margin", "top"),
|
7574
7583
|
disabled: r.top,
|
7575
7584
|
tooltip: n.top,
|
7576
|
-
afterIcon:
|
7585
|
+
afterIcon: Pr,
|
7577
7586
|
withInputField: !1
|
7578
7587
|
}
|
7579
7588
|
),
|
@@ -7587,7 +7596,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7587
7596
|
onChange: l("margin", "bottom"),
|
7588
7597
|
disabled: r.bottom,
|
7589
7598
|
tooltip: n.bottom,
|
7590
|
-
afterIcon:
|
7599
|
+
afterIcon: Fr,
|
7591
7600
|
withInputField: !1
|
7592
7601
|
}
|
7593
7602
|
)
|
@@ -7603,7 +7612,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7603
7612
|
onChange: l("padding", "top"),
|
7604
7613
|
disabled: i.top,
|
7605
7614
|
tooltip: a.top,
|
7606
|
-
afterIcon:
|
7615
|
+
afterIcon: Pr,
|
7607
7616
|
withInputField: !1
|
7608
7617
|
}
|
7609
7618
|
),
|
@@ -7617,13 +7626,13 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7617
7626
|
onChange: l("padding", "bottom"),
|
7618
7627
|
disabled: i.bottom,
|
7619
7628
|
tooltip: a.bottom,
|
7620
|
-
afterIcon:
|
7629
|
+
afterIcon: Fr,
|
7621
7630
|
withInputField: !1
|
7622
7631
|
}
|
7623
7632
|
)
|
7624
7633
|
] })
|
7625
7634
|
] });
|
7626
|
-
}, Yf = window.wp.components.TabPanel,
|
7635
|
+
}, 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
7636
|
max: e = 6,
|
7628
7637
|
min: t = -1,
|
7629
7638
|
hasMargin: r = !0,
|
@@ -7632,7 +7641,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7632
7641
|
value: a = { desktop: { margin: {}, padding: {} }, mobile: { margin: {}, padding: {} } },
|
7633
7642
|
deviceType: s
|
7634
7643
|
}) => {
|
7635
|
-
const o =
|
7644
|
+
const o = Do(
|
7636
7645
|
(p) => {
|
7637
7646
|
n({
|
7638
7647
|
desktop: p,
|
@@ -7640,7 +7649,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7640
7649
|
});
|
7641
7650
|
},
|
7642
7651
|
[n, a.mobile]
|
7643
|
-
), u =
|
7652
|
+
), u = Do(
|
7644
7653
|
(p) => {
|
7645
7654
|
n({
|
7646
7655
|
mobile: p,
|
@@ -7648,9 +7657,9 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7648
7657
|
});
|
7649
7658
|
},
|
7650
7659
|
[n, a.desktop]
|
7651
|
-
), c =
|
7660
|
+
), c = Mo(s), [l, d] = Jf(c);
|
7652
7661
|
return zf(() => {
|
7653
|
-
d(
|
7662
|
+
d(Mo());
|
7654
7663
|
}, [s]), /* @__PURE__ */ m.jsx(
|
7655
7664
|
Yf,
|
7656
7665
|
{
|
@@ -7666,7 +7675,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7666
7675
|
switch (p.name) {
|
7667
7676
|
case "desktop":
|
7668
7677
|
return /* @__PURE__ */ m.jsx(
|
7669
|
-
|
7678
|
+
No,
|
7670
7679
|
{
|
7671
7680
|
hasMargin: r,
|
7672
7681
|
hasPadding: i,
|
@@ -7679,7 +7688,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7679
7688
|
);
|
7680
7689
|
case "mobile":
|
7681
7690
|
return /* @__PURE__ */ m.jsx(
|
7682
|
-
|
7691
|
+
No,
|
7683
7692
|
{
|
7684
7693
|
hasMargin: r,
|
7685
7694
|
hasPadding: i,
|
@@ -7696,7 +7705,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7696
7705
|
}
|
7697
7706
|
}
|
7698
7707
|
);
|
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.",
|
7708
|
+
}, _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
7709
|
icon: e = "info-outline",
|
7701
7710
|
instructions: t = "Please configure the block in the sidebar.",
|
7702
7711
|
...r
|
@@ -7707,7 +7716,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7707
7716
|
instructions: t,
|
7708
7717
|
...r
|
7709
7718
|
}
|
7710
|
-
),
|
7719
|
+
), Up = ({
|
7711
7720
|
isLoading: e,
|
7712
7721
|
isEmptyResources: t,
|
7713
7722
|
isEmptySelection: r,
|
@@ -7716,7 +7725,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7716
7725
|
emptySelectionMessage: a,
|
7717
7726
|
placeholderProps: s = {},
|
7718
7727
|
children: o
|
7719
|
-
}) => e ? /* @__PURE__ */ m.jsx(qf, {}) : r ? /* @__PURE__ */ m.jsx(
|
7728
|
+
}) => 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
7729
|
topDividers: e = [],
|
7721
7730
|
bottomDividers: t = [],
|
7722
7731
|
value: r = { topDivider: "", bottomDivider: "", isIncludeLine: !1 },
|
@@ -7732,7 +7741,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7732
7741
|
});
|
7733
7742
|
}, [o, c, d]), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7734
7743
|
a && /* @__PURE__ */ m.jsx(
|
7735
|
-
|
7744
|
+
Zo,
|
7736
7745
|
{
|
7737
7746
|
label: "Top Divider",
|
7738
7747
|
value: o,
|
@@ -7747,7 +7756,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7747
7756
|
}
|
7748
7757
|
),
|
7749
7758
|
s && /* @__PURE__ */ m.jsx(
|
7750
|
-
|
7759
|
+
Zo,
|
7751
7760
|
{
|
7752
7761
|
label: "Bottom Divider",
|
7753
7762
|
value: c,
|
@@ -7770,7 +7779,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7770
7779
|
}
|
7771
7780
|
)
|
7772
7781
|
] });
|
7773
|
-
}, rp = window.wp.element.useMemo, op = window.wp.components.SelectControl,
|
7782
|
+
}, rp = window.wp.element.useMemo, op = window.wp.components.SelectControl, Qp = (e) => {
|
7774
7783
|
const {
|
7775
7784
|
types: t = [Ne.IMAGE, Ne.VIDEO],
|
7776
7785
|
selectedType: r,
|
@@ -7782,8 +7791,8 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7782
7791
|
onMediaRemove: u,
|
7783
7792
|
label: c = "Media Type"
|
7784
7793
|
} = e, l = rp(
|
7785
|
-
() => t?.filter((d) =>
|
7786
|
-
label:
|
7794
|
+
() => t?.filter((d) => Lr[d])?.map((d) => ({
|
7795
|
+
label: Lr[d],
|
7787
7796
|
value: d
|
7788
7797
|
})),
|
7789
7798
|
[t]
|
@@ -7799,7 +7808,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7799
7808
|
}
|
7800
7809
|
),
|
7801
7810
|
r && /* @__PURE__ */ m.jsx(
|
7802
|
-
|
7811
|
+
ni,
|
7803
7812
|
{
|
7804
7813
|
mediaId: n,
|
7805
7814
|
mediaUrl: a,
|
@@ -7810,17 +7819,17 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7810
7819
|
}
|
7811
7820
|
)
|
7812
7821
|
] });
|
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,
|
7822
|
+
}, 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 }) => {
|
7823
|
+
const { insertBlock: i } = ap("core/block-editor"), n = jo(() => {
|
7824
|
+
const s = Ho(t);
|
7825
|
+
i(s, Lo("core/block-editor").getBlockIndex(e));
|
7826
|
+
}, []), a = jo(() => {
|
7827
|
+
const s = Ho(t);
|
7828
|
+
i(s, Lo("core/block-editor").getBlockIndex(e) + 1);
|
7820
7829
|
}, []);
|
7821
7830
|
return /* @__PURE__ */ m.jsx(ip, { group: r, children: /* @__PURE__ */ m.jsxs(sp, { children: [
|
7822
7831
|
/* @__PURE__ */ m.jsx(
|
7823
|
-
|
7832
|
+
Yo,
|
7824
7833
|
{
|
7825
7834
|
icon: "insert-before",
|
7826
7835
|
label: "Add before",
|
@@ -7828,7 +7837,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7828
7837
|
}
|
7829
7838
|
),
|
7830
7839
|
/* @__PURE__ */ m.jsx(
|
7831
|
-
|
7840
|
+
Yo,
|
7832
7841
|
{
|
7833
7842
|
icon: "insert-after",
|
7834
7843
|
label: "Add after",
|
@@ -7836,7 +7845,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7836
7845
|
}
|
7837
7846
|
)
|
7838
7847
|
] }) });
|
7839
|
-
}, up = window.wp.blockEditor.InnerBlocks,
|
7848
|
+
}, up = window.wp.blockEditor.InnerBlocks, qp = (e) => {
|
7840
7849
|
const {
|
7841
7850
|
showIcon: t = !0,
|
7842
7851
|
showAppender: r = !0,
|
@@ -7845,7 +7854,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7845
7854
|
isLight: a = !1,
|
7846
7855
|
className: s
|
7847
7856
|
} = e;
|
7848
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
7857
|
+
return /* @__PURE__ */ m.jsxs("div", { className: qo("empty-block-appender", s, { "empty-block-appender--light": a }), children: [
|
7849
7858
|
/* @__PURE__ */ m.jsxs("div", { className: "empty-block-appender__content", children: [
|
7850
7859
|
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
7860
|
/* @__PURE__ */ m.jsx("h3", { className: "empty-block-appender__title", children: i }),
|
@@ -7853,7 +7862,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7853
7862
|
] }),
|
7854
7863
|
r && /* @__PURE__ */ m.jsx("div", { className: "empty-block-appender__button", children: /* @__PURE__ */ m.jsx(up.ButtonBlockAppender, {}) })
|
7855
7864
|
] });
|
7856
|
-
},
|
7865
|
+
}, zo = window.wp.components.BaseControl, cp = window.wp.components.FocalPointPicker, kn = window.wp.element.useCallback, lp = window.wp.element.memo, eg = lp(({
|
7857
7866
|
attributes: e,
|
7858
7867
|
setAttributes: t,
|
7859
7868
|
mediaAttributeName: r = "media",
|
@@ -7883,8 +7892,8 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7883
7892
|
});
|
7884
7893
|
}, [r]);
|
7885
7894
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
7886
|
-
/* @__PURE__ */ m.jsx(
|
7887
|
-
|
7895
|
+
/* @__PURE__ */ m.jsx(zo, { label: n, children: /* @__PURE__ */ m.jsx(
|
7896
|
+
ni,
|
7888
7897
|
{
|
7889
7898
|
type: Ne.IMAGE,
|
7890
7899
|
mediaId: o?.id,
|
@@ -7894,7 +7903,7 @@ const Zf = window.wp.components.RangeControl, Lf = window.wp.components.Tooltip,
|
|
7894
7903
|
...s
|
7895
7904
|
}
|
7896
7905
|
) }),
|
7897
|
-
o?.url && /* @__PURE__ */ m.jsx(
|
7906
|
+
o?.url && /* @__PURE__ */ m.jsx(zo, { label: a, children: /* @__PURE__ */ m.jsx(
|
7898
7907
|
cp,
|
7899
7908
|
{
|
7900
7909
|
__nextHasNoMarginBottom: !0,
|
@@ -7911,69 +7920,70 @@ export {
|
|
7911
7920
|
cu as AnimationRenderer,
|
7912
7921
|
Cp as ColorPaletteControl,
|
7913
7922
|
Ct as DataQueryControls,
|
7914
|
-
|
7915
|
-
|
7923
|
+
$p as DividersControl,
|
7924
|
+
qp as EmptyBlockAppender,
|
7916
7925
|
xp as IconPicker,
|
7917
7926
|
wp as ImageActions,
|
7918
7927
|
su as ImageRenderer,
|
7919
|
-
|
7928
|
+
Kp as InsertBlockToolbar,
|
7920
7929
|
Ap as LinkControl,
|
7921
7930
|
Ne as MEDIA_TYPE,
|
7922
|
-
|
7923
|
-
|
7924
|
-
|
7925
|
-
|
7926
|
-
|
7927
|
-
|
7928
|
-
|
7929
|
-
|
7931
|
+
Lr as MEDIA_TYPE_LABEL,
|
7932
|
+
ni as MediaControl,
|
7933
|
+
Qp as MediaTypeControl,
|
7934
|
+
eg as MediaWithFocalPointControl,
|
7935
|
+
Pa as PreviewControl,
|
7936
|
+
Up as ResourcesWrapper,
|
7937
|
+
_p as ResponsiveSpacingControl,
|
7938
|
+
Jp as SortableSelect,
|
7930
7939
|
Rf as SortableSelectAsync,
|
7931
|
-
|
7940
|
+
No as SpacingControl,
|
7932
7941
|
uu as VideoRenderer,
|
7933
|
-
|
7942
|
+
zp as addInnerBlocksCleanupFilter,
|
7934
7943
|
js as cleanSvgString,
|
7935
7944
|
Bp as contentAttribute,
|
7936
|
-
|
7937
|
-
|
7945
|
+
Os as curatedCategoriesAttribute,
|
7946
|
+
Ps as curatedPostsAttribute,
|
7938
7947
|
Ys as decodeHtmlEntities,
|
7939
7948
|
Gp as getAnimationAttribute,
|
7940
7949
|
Pp as getBaseBackgroundAttributes,
|
7941
7950
|
Fp as getDataQueryAttributes,
|
7942
7951
|
Zp as getFiltersByNamespace,
|
7943
|
-
|
7952
|
+
Yp as getFocalPointStyle,
|
7944
7953
|
Np as getImage,
|
7945
7954
|
kp as getLinkAttributes,
|
7946
7955
|
Mp as getLocationAddress,
|
7947
|
-
|
7956
|
+
Ko as getMediaAttribute,
|
7948
7957
|
Dp as getPhoneNumber,
|
7949
7958
|
$n as getRootContainer,
|
7950
7959
|
Wp as getSlug,
|
7951
7960
|
Xp as getSpacingClasses,
|
7952
7961
|
Sp as hideRootBlockForInlineInserter,
|
7953
7962
|
Rp as linkControlAttribute,
|
7954
|
-
|
7955
|
-
|
7963
|
+
Yr as loadSelectOptions,
|
7964
|
+
Vs as numberOfPostsAttribute,
|
7956
7965
|
Vp as responsiveSpacingAttribute,
|
7957
|
-
|
7958
|
-
|
7959
|
-
|
7966
|
+
ws as rootBlockVisibilityFilter,
|
7967
|
+
Lp as setBlockForPostType,
|
7968
|
+
Rs as setRootBlockAppender,
|
7969
|
+
Dr as setRootBlockFilter,
|
7960
7970
|
Ep as setRootBlockForPostTypes,
|
7961
7971
|
Tp as showRootBlockForInlineInserter,
|
7962
7972
|
Op as spacingAttribute,
|
7963
|
-
|
7964
|
-
|
7965
|
-
|
7966
|
-
|
7973
|
+
Hp as unsetBlockForPostType,
|
7974
|
+
Bs as unsetRootBlockAppender,
|
7975
|
+
Mr as unsetRootBlockFilter,
|
7976
|
+
jp as updateBlockApiVersion,
|
7967
7977
|
hp as useAccordionItem,
|
7968
7978
|
vp as useAllowedBlocks,
|
7969
7979
|
Ip as useChildBlockPosition,
|
7970
7980
|
bp as useDataQuery,
|
7971
7981
|
yp as useFilterBlocks,
|
7972
|
-
|
7982
|
+
Na as useParentBlock,
|
7973
7983
|
pp as usePreviewControl,
|
7974
7984
|
gp as useSlider,
|
7975
7985
|
mp as useTabs,
|
7976
|
-
|
7977
|
-
|
7986
|
+
Ma as useThemeColors,
|
7987
|
+
As as waitForRootContainer
|
7978
7988
|
};
|
7979
7989
|
//# sourceMappingURL=index.js.map
|