@secretstache/wordpress-gutenberg 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +335 -313
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MediaControl.jsx +11 -12
- package/src/components/MediaWithFocalPointControl.jsx +10 -11
- package/src/components/index.js +0 -1
- package/src/filters/index.js +1 -0
- package/src/filters/root-block-default.js +44 -0
package/build/index.js
CHANGED
|
@@ -324,9 +324,9 @@ function Wa() {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
var
|
|
327
|
+
var dn = Array.isArray;
|
|
328
328
|
function Ye(g) {
|
|
329
|
-
return
|
|
329
|
+
return dn(g);
|
|
330
330
|
}
|
|
331
331
|
function ba(g) {
|
|
332
332
|
{
|
|
@@ -442,7 +442,7 @@ function Wa() {
|
|
|
442
442
|
return xa(g, q, Ae, ae, Y, Tr.current, ne);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var fn = I.ReactCurrentOwner, Gr = I.ReactDebugCurrentFrame;
|
|
446
446
|
function qe(g) {
|
|
447
447
|
if (g) {
|
|
448
448
|
var S = g._owner, G = Te(g.type, g._source, S ? S.type : null);
|
|
@@ -450,15 +450,15 @@ function Wa() {
|
|
|
450
450
|
} else
|
|
451
451
|
Gr.setExtraStackFrame(null);
|
|
452
452
|
}
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
function
|
|
453
|
+
var pn;
|
|
454
|
+
pn = !1;
|
|
455
|
+
function gn(g) {
|
|
456
456
|
return typeof g == "object" && g !== null && g.$$typeof === e;
|
|
457
457
|
}
|
|
458
458
|
function Pr() {
|
|
459
459
|
{
|
|
460
|
-
if (
|
|
461
|
-
var g = $(
|
|
460
|
+
if (fn.current) {
|
|
461
|
+
var g = $(fn.current.type);
|
|
462
462
|
if (g)
|
|
463
463
|
return `
|
|
464
464
|
|
|
@@ -493,7 +493,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
493
493
|
return;
|
|
494
494
|
Fr[G] = !0;
|
|
495
495
|
var Y = "";
|
|
496
|
-
g && g._owner && g._owner !==
|
|
496
|
+
g && g._owner && g._owner !== fn.current && (Y = " It was passed a child from " + $(g._owner.type) + "."), qe(g), y('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);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
function kr(g, S) {
|
|
@@ -503,15 +503,15 @@ Check the top-level render call using <` + G + ">.");
|
|
|
503
503
|
if (Ye(g))
|
|
504
504
|
for (var G = 0; G < g.length; G++) {
|
|
505
505
|
var Y = g[G];
|
|
506
|
-
|
|
506
|
+
gn(Y) && Or(Y, S);
|
|
507
507
|
}
|
|
508
|
-
else if (
|
|
508
|
+
else if (gn(g))
|
|
509
509
|
g._store && (g._store.validated = !0);
|
|
510
510
|
else if (g) {
|
|
511
511
|
var ae = m(g);
|
|
512
512
|
if (typeof ae == "function" && ae !== g.entries)
|
|
513
513
|
for (var le = ae.call(g), ne; !(ne = le.next()).done; )
|
|
514
|
-
|
|
514
|
+
gn(ne.value) && Or(ne.value, S);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -532,8 +532,8 @@ Check the top-level render call using <` + G + ">.");
|
|
|
532
532
|
if (G) {
|
|
533
533
|
var Y = $(S);
|
|
534
534
|
xe(G, g.props, "prop", Y, g);
|
|
535
|
-
} else if (S.PropTypes !== void 0 && !
|
|
536
|
-
|
|
535
|
+
} else if (S.PropTypes !== void 0 && !pn) {
|
|
536
|
+
pn = !0;
|
|
537
537
|
var ae = $(S);
|
|
538
538
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ae || "Unknown");
|
|
539
539
|
}
|
|
@@ -583,15 +583,15 @@ Check the top-level render call using <` + G + ">.");
|
|
|
583
583
|
if (je.call(S, "key")) {
|
|
584
584
|
var Je = $(g), Ee = Object.keys(S).filter(function(ka) {
|
|
585
585
|
return ka !== "key";
|
|
586
|
-
}),
|
|
587
|
-
if (!Vr[Je +
|
|
586
|
+
}), bn = Ee.length > 0 ? "{key: someKey, " + Ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
|
+
if (!Vr[Je + bn]) {
|
|
588
588
|
var Oa = Ee.length > 0 ? "{" + Ee.join(": ..., ") + ": ...}" : "{}";
|
|
589
589
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
590
590
|
let props = %s;
|
|
591
591
|
<%s {...props} />
|
|
592
592
|
React keys must be passed directly to JSX without using spread:
|
|
593
593
|
let props = %s;
|
|
594
|
-
<%s key={someKey} {...props} />`,
|
|
594
|
+
<%s key={someKey} {...props} />`, bn, Je, Oa, Je), Vr[Je + bn] = !0;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
return g === i ? Ra(he) : Ta(he), he;
|
|
@@ -629,7 +629,7 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
629
629
|
...t
|
|
630
630
|
}
|
|
631
631
|
);
|
|
632
|
-
}, Za = window.wp.element.useCallback, La = window.wp.element.useState,
|
|
632
|
+
}, Za = window.wp.element.useCallback, La = window.wp.element.useState, Kp = () => {
|
|
633
633
|
const [t, e] = La(!1), r = Za(() => {
|
|
634
634
|
e((n) => !n);
|
|
635
635
|
}, []);
|
|
@@ -645,7 +645,7 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
645
645
|
}
|
|
646
646
|
)
|
|
647
647
|
};
|
|
648
|
-
}, ja = window.wp.element.useEffect, Xr = window.wp.element.useRef,
|
|
648
|
+
}, ja = window.wp.element.useEffect, Xr = window.wp.element.useRef, qp = ({ isEnabled: t, setupSlider: e, cleanCallback: r }, i = []) => {
|
|
649
649
|
const n = Xr(null), a = Xr(null);
|
|
650
650
|
return ja(() => (t && n?.current && (a.current = e(n.current)), () => {
|
|
651
651
|
a.current && (a.current?.destroy(), a.current = null, r && r());
|
|
@@ -678,7 +678,7 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
678
678
|
return t.map((a) => n.get(a)).filter(Boolean);
|
|
679
679
|
}
|
|
680
680
|
return i;
|
|
681
|
-
}, [t]), $a = window.wp.data.useSelect,
|
|
681
|
+
}, [t]), $a = window.wp.data.useSelect, eg = (t, e = []) => {
|
|
682
682
|
const {
|
|
683
683
|
postType: r,
|
|
684
684
|
curatedPostsIds: i,
|
|
@@ -703,20 +703,20 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
703
703
|
isEmpty: f
|
|
704
704
|
};
|
|
705
705
|
}, e);
|
|
706
|
-
},
|
|
706
|
+
}, hn = window.wp.element.useCallback, Hr = window.wp.element.useEffect, Ua = window.wp.element.useMemo, Qa = window.wp.element.useRef, tg = ({
|
|
707
707
|
itemId: t,
|
|
708
708
|
activeItemId: e,
|
|
709
709
|
setActiveItemId: r,
|
|
710
710
|
contentSelector: i,
|
|
711
711
|
heightObserverDeps: n = []
|
|
712
712
|
}) => {
|
|
713
|
-
const a = Ua(() => t === e, [t, e]), s = Qa(null), o =
|
|
713
|
+
const a = Ua(() => t === e, [t, e]), s = Qa(null), o = hn(() => {
|
|
714
714
|
const l = s.current?.querySelector(i);
|
|
715
715
|
l && (l.style.maxHeight = l.scrollHeight + "px");
|
|
716
|
-
}, [i]), u =
|
|
716
|
+
}, [i]), u = hn(() => {
|
|
717
717
|
const l = s.current?.querySelector(i);
|
|
718
718
|
l && (l.style.maxHeight = 0);
|
|
719
|
-
}, [i]), c =
|
|
719
|
+
}, [i]), c = hn(() => {
|
|
720
720
|
r(a ? null : t);
|
|
721
721
|
}, [a, r]);
|
|
722
722
|
return Hr(() => {
|
|
@@ -736,7 +736,7 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
736
736
|
isActive: a
|
|
737
737
|
};
|
|
738
738
|
}, Ka = window.wp.element.cloneElement, qa = window.wp.element.forwardRef;
|
|
739
|
-
var
|
|
739
|
+
var Jt = qa(
|
|
740
740
|
({ icon: t, size: e = 24, ...r }, i) => Ka(t, {
|
|
741
741
|
width: e,
|
|
742
742
|
height: e,
|
|
@@ -813,7 +813,7 @@ var rs = /* @__PURE__ */ h.jsx(Le, { viewBox: "0 0 24 24", xmlns: "http://www.w3
|
|
|
813
813
|
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"
|
|
814
814
|
}
|
|
815
815
|
) });
|
|
816
|
-
const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = window.wp.data.select, jr = window.wp.blockEditor.store, Yr = window.wp.element.useCallback,
|
|
816
|
+
const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = window.wp.data.select, jr = window.wp.blockEditor.store, Yr = window.wp.element.useCallback, mn = window.wp.element.useLayoutEffect, ds = window.wp.element.useMemo, fs = window.wp.element.useState, ps = window.wp.components.Button, gs = window.wp.blocks.createBlock, ng = (t, e) => {
|
|
817
817
|
const { insertBlock: r } = cs(jr), {
|
|
818
818
|
tabs: i,
|
|
819
819
|
tabsAttributes: n,
|
|
@@ -841,13 +841,13 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
841
841
|
},
|
|
842
842
|
[t]
|
|
843
843
|
), [c, l] = fs(null);
|
|
844
|
-
|
|
844
|
+
mn(() => {
|
|
845
845
|
i.length > 0 && !c && l(i[0].clientId);
|
|
846
846
|
}, [i, c]);
|
|
847
847
|
const d = Ja(e, t);
|
|
848
|
-
|
|
848
|
+
mn(() => {
|
|
849
849
|
d && l(d.clientId);
|
|
850
|
-
}, [d]),
|
|
850
|
+
}, [d]), mn(() => {
|
|
851
851
|
if (!(o && o.name === e))
|
|
852
852
|
return;
|
|
853
853
|
const m = o;
|
|
@@ -883,7 +883,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
883
883
|
onTabAppenderClick: f,
|
|
884
884
|
createTab: p
|
|
885
885
|
};
|
|
886
|
-
}, bs = window.wp.data.useSelect, hs = window.wp.element.useMemo,
|
|
886
|
+
}, bs = window.wp.data.useSelect, hs = window.wp.element.useMemo, rg = (t, e) => {
|
|
887
887
|
const r = bs(
|
|
888
888
|
(i) => i("core/blocks").getBlockTypes(),
|
|
889
889
|
[]
|
|
@@ -895,13 +895,13 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
895
895
|
})?.map((i) => i.name),
|
|
896
896
|
[r, e, t]
|
|
897
897
|
);
|
|
898
|
-
}, ms = window.wp.data.useSelect,
|
|
898
|
+
}, ms = window.wp.data.useSelect, vn = window.wp.blockEditor.store, og = (t) => ms(
|
|
899
899
|
(e) => {
|
|
900
|
-
const r = e(
|
|
900
|
+
const r = e(vn).getBlock(t), i = e(vn).getBlockRootClientId(t), n = i ? e(vn).getBlock(i) : null, a = n ? n.innerBlocks.findIndex((s) => s.clientId === t) : -1;
|
|
901
901
|
return { block: r, parentBlock: n, position: a };
|
|
902
902
|
},
|
|
903
903
|
[t]
|
|
904
|
-
), vs = window.wp.data.useSelect, Is = window.wp.element.useMemo,
|
|
904
|
+
), vs = window.wp.data.useSelect, Is = window.wp.element.useMemo, ig = (t) => {
|
|
905
905
|
const e = vs(
|
|
906
906
|
(r) => r("core/blocks").getBlockTypes(),
|
|
907
907
|
[]
|
|
@@ -910,7 +910,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
910
910
|
() => e?.filter((r) => t(r))?.map((r) => r.name),
|
|
911
911
|
[e, t]
|
|
912
912
|
);
|
|
913
|
-
}, Cs = window.wp.components.BaseControl, ys = window.wp.components.ColorPalette,
|
|
913
|
+
}, Cs = window.wp.components.BaseControl, ys = window.wp.components.ColorPalette, ag = ({
|
|
914
914
|
label: t = "Color",
|
|
915
915
|
value: e,
|
|
916
916
|
attributeName: r,
|
|
@@ -942,7 +942,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
942
942
|
...a
|
|
943
943
|
}
|
|
944
944
|
) });
|
|
945
|
-
}, ws = window.wp.blockEditor.MediaPlaceholder, xs = window.wp.blockEditor.MediaUpload, As = window.wp.blockEditor.MediaUploadCheck, Jr = window.wp.components.Button,
|
|
945
|
+
}, ws = window.wp.blockEditor.MediaPlaceholder, xs = window.wp.blockEditor.MediaUpload, As = window.wp.blockEditor.MediaUploadCheck, Jr = window.wp.components.Button, sg = ({ imageId: t, imageUrl: e, imageAlt: r, svgCode: i, onSelect: n, onRemove: a }) => {
|
|
946
946
|
const s = t && e, o = s && i;
|
|
947
947
|
return /* @__PURE__ */ h.jsx(As, { children: /* @__PURE__ */ h.jsx(
|
|
948
948
|
xs,
|
|
@@ -966,7 +966,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
966
966
|
type: "button",
|
|
967
967
|
onClick: u,
|
|
968
968
|
children: /* @__PURE__ */ h.jsx(
|
|
969
|
-
|
|
969
|
+
Jt,
|
|
970
970
|
{
|
|
971
971
|
icon: is,
|
|
972
972
|
size: 20,
|
|
@@ -982,7 +982,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
982
982
|
type: "button",
|
|
983
983
|
onClick: a,
|
|
984
984
|
children: /* @__PURE__ */ h.jsx(
|
|
985
|
-
|
|
985
|
+
Jt,
|
|
986
986
|
{
|
|
987
987
|
icon: ss,
|
|
988
988
|
size: 20,
|
|
@@ -1004,7 +1004,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
1004
1004
|
)
|
|
1005
1005
|
}
|
|
1006
1006
|
) });
|
|
1007
|
-
}, Es = window.wp.blockEditor.MediaUpload, Ss = window.wp.blockEditor.MediaUploadCheck, Ts = window.wp.blockEditor.MediaPlaceholder, zr = window.wp.components.Button,
|
|
1007
|
+
}, Es = window.wp.blockEditor.MediaUpload, Ss = window.wp.blockEditor.MediaUploadCheck, Ts = window.wp.blockEditor.MediaPlaceholder, zr = window.wp.components.Button, ug = ({
|
|
1008
1008
|
imageId: t,
|
|
1009
1009
|
imageUrl: e,
|
|
1010
1010
|
imageAlt: r,
|
|
@@ -1060,7 +1060,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
1060
1060
|
) });
|
|
1061
1061
|
}, _r = /* @__PURE__ */ new Set(), Rs = (t) => {
|
|
1062
1062
|
_r.has(t) || (console.warn(t), _r.add(t));
|
|
1063
|
-
}, Bs = window.wp.components.BaseControl, Gs = window.wp.components.CheckboxControl, Ps = window.wp.blockEditor.URLInput,
|
|
1063
|
+
}, Bs = window.wp.components.BaseControl, Gs = window.wp.components.CheckboxControl, Ps = window.wp.blockEditor.URLInput, cg = ({
|
|
1064
1064
|
url: t = { value: "#", attrName: "linkSource" },
|
|
1065
1065
|
isOpenInNewTab: e = { value: !1, attrName: "linkIsOpenInNewTab" },
|
|
1066
1066
|
setAttributes: r,
|
|
@@ -1106,7 +1106,7 @@ const us = window.wp.data.useSelect, cs = window.wp.data.useDispatch, ls = windo
|
|
|
1106
1106
|
[ke.VIDEO]: "Video",
|
|
1107
1107
|
[ke.ANIMATION]: "Animation"
|
|
1108
1108
|
};
|
|
1109
|
-
var
|
|
1109
|
+
var Ht = { exports: {} }, Os = Ht.exports, Qr;
|
|
1110
1110
|
function ks() {
|
|
1111
1111
|
return Qr || (Qr = 1, (function(t, e) {
|
|
1112
1112
|
(function(r, i, n) {
|
|
@@ -1127,11 +1127,11 @@ function ks() {
|
|
|
1127
1127
|
Object.assign(r, a);
|
|
1128
1128
|
}, n;
|
|
1129
1129
|
});
|
|
1130
|
-
})(
|
|
1130
|
+
})(Ht)), Ht.exports;
|
|
1131
1131
|
}
|
|
1132
1132
|
var Vs = ks();
|
|
1133
1133
|
const Ws = /* @__PURE__ */ wt(Vs);
|
|
1134
|
-
var
|
|
1134
|
+
var In = { exports: {} };
|
|
1135
1135
|
var Kr;
|
|
1136
1136
|
function Ns() {
|
|
1137
1137
|
return Kr || (Kr = 1, (function(t) {
|
|
@@ -1163,14 +1163,14 @@ function Ns() {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
t.exports ? (r.default = r, t.exports = r) : window.classNames = r;
|
|
1165
1165
|
})();
|
|
1166
|
-
})(
|
|
1166
|
+
})(In)), In.exports;
|
|
1167
1167
|
}
|
|
1168
1168
|
var Ds = Ns();
|
|
1169
1169
|
const ui = /* @__PURE__ */ wt(Ds);
|
|
1170
|
-
var
|
|
1170
|
+
var Cn, qr;
|
|
1171
1171
|
function Ms() {
|
|
1172
|
-
if (qr) return
|
|
1173
|
-
qr = 1,
|
|
1172
|
+
if (qr) return Cn;
|
|
1173
|
+
qr = 1, Cn = function(i) {
|
|
1174
1174
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = void 0, o = void 0, u = void 0, c = [];
|
|
1175
1175
|
return function() {
|
|
1176
1176
|
var p = t(n), f = (/* @__PURE__ */ new Date()).getTime(), v = !s || f - s > p;
|
|
@@ -1203,10 +1203,10 @@ function Ms() {
|
|
|
1203
1203
|
r.resolve = i, r.reject = n;
|
|
1204
1204
|
}), r;
|
|
1205
1205
|
}
|
|
1206
|
-
return
|
|
1206
|
+
return Cn;
|
|
1207
1207
|
}
|
|
1208
1208
|
var Xs = Ms();
|
|
1209
|
-
const Hs = /* @__PURE__ */ wt(Xs), Zs = window.wp.hooks.filters, Ls = window.wp.apiFetch,
|
|
1209
|
+
const Hs = /* @__PURE__ */ wt(Xs), Zs = window.wp.hooks.filters, Ls = window.wp.apiFetch, nn = window.wp.data.select, or = window.wp.data.subscribe, js = window.wp.data.useSelect, ir = window.wp.blocks.getBlockType, Ys = window.wp.blocks.registerBlockType, ar = window.wp.blocks.unregisterBlockType, Js = window.wp.element.useMemo;
|
|
1210
1210
|
let Bt;
|
|
1211
1211
|
const zs = async (t, e, r = null, i = {}) => {
|
|
1212
1212
|
Bt && Bt.abort(), Bt = new AbortController();
|
|
@@ -1237,7 +1237,7 @@ const zs = async (t, e, r = null, i = {}) => {
|
|
|
1237
1237
|
}, _s = Hs(zs, 300, {
|
|
1238
1238
|
leading: !1,
|
|
1239
1239
|
trailing: !0
|
|
1240
|
-
}),
|
|
1240
|
+
}), lg = (t) => Ws(t, {
|
|
1241
1241
|
replacement: "-",
|
|
1242
1242
|
lower: !0,
|
|
1243
1243
|
strict: !0
|
|
@@ -1247,7 +1247,7 @@ const zs = async (t, e, r = null, i = {}) => {
|
|
|
1247
1247
|
e !== -1 && (t = t.substring(e + 2));
|
|
1248
1248
|
}
|
|
1249
1249
|
return t = t.trim(), t;
|
|
1250
|
-
},
|
|
1250
|
+
}, dg = async (t) => {
|
|
1251
1251
|
const e = "image/svg+xml", r = t?.mime === e || t?.mime_type === e, i = {
|
|
1252
1252
|
isSvg: r,
|
|
1253
1253
|
imageUrl: null,
|
|
@@ -1256,12 +1256,12 @@ const zs = async (t, e, r = null, i = {}) => {
|
|
|
1256
1256
|
height: t?.height
|
|
1257
1257
|
};
|
|
1258
1258
|
return r ? i.svgCode = await fetch(t.url).then((n) => n.text()).then($s) : i.imageUrl = t?.url, i;
|
|
1259
|
-
},
|
|
1259
|
+
}, fg = (t) => {
|
|
1260
1260
|
if (!t) return "";
|
|
1261
1261
|
let e = t;
|
|
1262
1262
|
const r = /^\+\d(\d{3})(\d{3})(\d{4})$/, i = t.match(r);
|
|
1263
1263
|
return i && (e = `${i[1]}-${i[2]}-${i[3]}`), e;
|
|
1264
|
-
},
|
|
1264
|
+
}, pg = (t) => {
|
|
1265
1265
|
const {
|
|
1266
1266
|
street_number: e = "",
|
|
1267
1267
|
street_name: r = "",
|
|
@@ -1278,7 +1278,7 @@ const zs = async (t, e, r = null, i = {}) => {
|
|
|
1278
1278
|
}, ci = (t) => {
|
|
1279
1279
|
const e = document.createElement("div");
|
|
1280
1280
|
return e.innerHTML = t, e.textContent || e.innerText || "";
|
|
1281
|
-
},
|
|
1281
|
+
}, gg = (t, {
|
|
1282
1282
|
desktopPrefix: e = "md:",
|
|
1283
1283
|
mobilePrefix: r = "",
|
|
1284
1284
|
valuePrefix: i = ""
|
|
@@ -1294,25 +1294,25 @@ const zs = async (t, e, r = null, i = {}) => {
|
|
|
1294
1294
|
a(r, "pt", i, t?.mobile?.padding?.top),
|
|
1295
1295
|
a(r, "pb", i, t?.mobile?.padding?.bottom)
|
|
1296
1296
|
);
|
|
1297
|
-
},
|
|
1297
|
+
}, bg = (t) => {
|
|
1298
1298
|
const e = [];
|
|
1299
1299
|
return Object.entries(Zs).forEach(([r, i]) => {
|
|
1300
1300
|
(i.handlers || []).forEach((a) => {
|
|
1301
1301
|
a.namespace.startsWith(t) && e.push({ filterName: r, namespace: a.namespace });
|
|
1302
1302
|
});
|
|
1303
1303
|
}), e;
|
|
1304
|
-
},
|
|
1304
|
+
}, hg = (t, e) => {
|
|
1305
1305
|
const r = or(
|
|
1306
1306
|
() => {
|
|
1307
|
-
const i =
|
|
1307
|
+
const i = nn("core/editor").getCurrentPostType();
|
|
1308
1308
|
i && i !== e && ir(t) && (ar(t), r());
|
|
1309
1309
|
},
|
|
1310
1310
|
"core/editor"
|
|
1311
1311
|
);
|
|
1312
|
-
},
|
|
1312
|
+
}, mg = (t, e) => {
|
|
1313
1313
|
const r = or(
|
|
1314
1314
|
() => {
|
|
1315
|
-
const i =
|
|
1315
|
+
const i = nn("core/editor").getCurrentPostType();
|
|
1316
1316
|
i && i === e && ir(t) && (ar(t), r());
|
|
1317
1317
|
},
|
|
1318
1318
|
"core/editor"
|
|
@@ -1325,9 +1325,9 @@ function Us(t, e = 3) {
|
|
|
1325
1325
|
apiVersion: e
|
|
1326
1326
|
}));
|
|
1327
1327
|
}
|
|
1328
|
-
const
|
|
1329
|
-
|
|
1330
|
-
},
|
|
1328
|
+
const vg = (t) => {
|
|
1329
|
+
nn("core/blocks")?.getBlockTypes()?.filter((e) => e.apiVersion < 3)?.map((e) => e.name)?.forEach((e) => Us(e, t));
|
|
1330
|
+
}, Ig = (t) => {
|
|
1331
1331
|
if (!t)
|
|
1332
1332
|
return { objectPosition: "50% 50%" };
|
|
1333
1333
|
const e = t.x !== void 0 && t.x !== null ? t.x * 100 : 50, r = t.y !== void 0 && t.y !== null ? t.y * 100 : 50;
|
|
@@ -1351,18 +1351,18 @@ const gg = (t) => {
|
|
|
1351
1351
|
isResolving: o
|
|
1352
1352
|
};
|
|
1353
1353
|
}, [t, JSON.stringify(i)]);
|
|
1354
|
-
},
|
|
1354
|
+
}, Cg = (t) => {
|
|
1355
1355
|
const e = `ssm-hide-${t}-for-inline-inserter`, r = `[id*="-block-${t}"] { display: none !important; }`, i = document.createElement("style");
|
|
1356
1356
|
return i.id = e, i.appendChild(document.createTextNode(r)), document.head.appendChild(i), () => {
|
|
1357
1357
|
document.head.removeChild(i);
|
|
1358
1358
|
};
|
|
1359
|
-
},
|
|
1359
|
+
}, yg = (t) => {
|
|
1360
1360
|
let e = null;
|
|
1361
1361
|
return or(() => {
|
|
1362
|
-
const r =
|
|
1362
|
+
const r = nn("core/editor").getCurrentPostType();
|
|
1363
1363
|
r && r !== e && (t(r, e), e = r);
|
|
1364
1364
|
}, "core/block-editor");
|
|
1365
|
-
},
|
|
1365
|
+
}, yn = window.wp.components.BaseControl, at = window.wp.components.Button, Ks = window.wp.components.FocalPointPicker, wn = window.wp.blockEditor.MediaUpload, xn = window.wp.blockEditor.MediaUploadCheck, qs = ({
|
|
1366
1366
|
imageId: t,
|
|
1367
1367
|
imageUrl: e,
|
|
1368
1368
|
onImageClick: r,
|
|
@@ -1385,7 +1385,7 @@ const gg = (t) => {
|
|
|
1385
1385
|
{
|
|
1386
1386
|
className: "bc-remove-btn",
|
|
1387
1387
|
onClick: i,
|
|
1388
|
-
|
|
1388
|
+
variant: "secondary",
|
|
1389
1389
|
isDestructive: !0,
|
|
1390
1390
|
children: s
|
|
1391
1391
|
}
|
|
@@ -1412,7 +1412,7 @@ const gg = (t) => {
|
|
|
1412
1412
|
{
|
|
1413
1413
|
className: "bc-remove-btn",
|
|
1414
1414
|
onClick: r,
|
|
1415
|
-
|
|
1415
|
+
variant: "secondary",
|
|
1416
1416
|
isDestructive: !0,
|
|
1417
1417
|
children: a
|
|
1418
1418
|
}
|
|
@@ -1435,7 +1435,7 @@ const gg = (t) => {
|
|
|
1435
1435
|
removeButtonLabel: s = "Remove File"
|
|
1436
1436
|
}) => t && e ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1437
1437
|
/* @__PURE__ */ h.jsxs("div", { className: "bc-animation-block-json-file", onClick: i, children: [
|
|
1438
|
-
/* @__PURE__ */ h.jsx(
|
|
1438
|
+
/* @__PURE__ */ h.jsx(Jt, { icon: os, size: 36 }),
|
|
1439
1439
|
/* @__PURE__ */ h.jsx("span", { children: r })
|
|
1440
1440
|
] }),
|
|
1441
1441
|
/* @__PURE__ */ h.jsx(
|
|
@@ -1466,7 +1466,7 @@ const gg = (t) => {
|
|
|
1466
1466
|
}) => {
|
|
1467
1467
|
if (t === ke.IMAGE)
|
|
1468
1468
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1469
|
-
/* @__PURE__ */ h.jsx(
|
|
1469
|
+
/* @__PURE__ */ h.jsx(yn, { label: e || "Image", children: /* @__PURE__ */ h.jsx(xn, { children: /* @__PURE__ */ h.jsx(
|
|
1470
1470
|
wn,
|
|
1471
1471
|
{
|
|
1472
1472
|
onSelect: a,
|
|
@@ -1488,20 +1488,21 @@ const gg = (t) => {
|
|
|
1488
1488
|
...f
|
|
1489
1489
|
}
|
|
1490
1490
|
) }) }),
|
|
1491
|
-
c && r && i && /* @__PURE__ */ h.jsx(
|
|
1491
|
+
c && r && i && /* @__PURE__ */ h.jsx(
|
|
1492
1492
|
Ks,
|
|
1493
1493
|
{
|
|
1494
1494
|
__nextHasNoMarginBottom: !0,
|
|
1495
|
+
label: l,
|
|
1495
1496
|
url: i,
|
|
1496
1497
|
value: d,
|
|
1497
1498
|
onDragStart: p,
|
|
1498
1499
|
onDrag: p,
|
|
1499
1500
|
onChange: p
|
|
1500
1501
|
}
|
|
1501
|
-
)
|
|
1502
|
+
)
|
|
1502
1503
|
] });
|
|
1503
1504
|
if (t === ke.VIDEO)
|
|
1504
|
-
return /* @__PURE__ */ h.jsx(
|
|
1505
|
+
return /* @__PURE__ */ h.jsx(yn, { label: e || "Video", children: /* @__PURE__ */ h.jsx(xn, { children: /* @__PURE__ */ h.jsx(
|
|
1505
1506
|
wn,
|
|
1506
1507
|
{
|
|
1507
1508
|
onSelect: a,
|
|
@@ -1522,7 +1523,7 @@ const gg = (t) => {
|
|
|
1522
1523
|
}
|
|
1523
1524
|
) }) });
|
|
1524
1525
|
if (t === ke.ANIMATION)
|
|
1525
|
-
return /* @__PURE__ */ h.jsx(
|
|
1526
|
+
return /* @__PURE__ */ h.jsx(yn, { label: e || "Animation", children: /* @__PURE__ */ h.jsx(xn, { children: /* @__PURE__ */ h.jsx(
|
|
1526
1527
|
wn,
|
|
1527
1528
|
{
|
|
1528
1529
|
onSelect: a,
|
|
@@ -1624,7 +1625,7 @@ function Yn(t, e) {
|
|
|
1624
1625
|
return r.__proto__ = i, r;
|
|
1625
1626
|
}, Yn(t, e);
|
|
1626
1627
|
}
|
|
1627
|
-
function
|
|
1628
|
+
function rn(t, e) {
|
|
1628
1629
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1629
1630
|
t.prototype = Object.create(e && e.prototype, {
|
|
1630
1631
|
constructor: {
|
|
@@ -1655,7 +1656,7 @@ function U(t) {
|
|
|
1655
1656
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1656
1657
|
return t;
|
|
1657
1658
|
}
|
|
1658
|
-
function
|
|
1659
|
+
function on(t, e) {
|
|
1659
1660
|
if (e && (Ue(e) == "object" || typeof e == "function")) return e;
|
|
1660
1661
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1661
1662
|
return U(t);
|
|
@@ -1668,7 +1669,7 @@ function ru(t) {
|
|
|
1668
1669
|
var n = Qe(this).constructor;
|
|
1669
1670
|
r = Reflect.construct(i, arguments, n);
|
|
1670
1671
|
} else r = i.apply(this, arguments);
|
|
1671
|
-
return
|
|
1672
|
+
return on(this, r);
|
|
1672
1673
|
};
|
|
1673
1674
|
}
|
|
1674
1675
|
function Jn(t, e) {
|
|
@@ -1736,7 +1737,7 @@ var cu = /* @__PURE__ */ (function() {
|
|
|
1736
1737
|
return (n = i.parentNode) == null ? void 0 : n.removeChild(i);
|
|
1737
1738
|
}), this.tags = [], this.ctr = 0;
|
|
1738
1739
|
}, t;
|
|
1739
|
-
})(), we = "-ms-",
|
|
1740
|
+
})(), we = "-ms-", zt = "-moz-", oe = "-webkit-", gi = "comm", ur = "rule", cr = "decl", lu = "@import", bi = "@keyframes", du = "@layer", fu = Math.abs, an = String.fromCharCode, pu = Object.assign;
|
|
1740
1741
|
function gu(t, e) {
|
|
1741
1742
|
return Ce(t, 0) ^ 45 ? (((e << 2 ^ Ce(t, 0)) << 2 ^ Ce(t, 1)) << 2 ^ Ce(t, 2)) << 2 ^ Ce(t, 3) : 0;
|
|
1742
1743
|
}
|
|
@@ -1764,32 +1765,32 @@ function Fe(t) {
|
|
|
1764
1765
|
function lr(t) {
|
|
1765
1766
|
return t.length;
|
|
1766
1767
|
}
|
|
1767
|
-
function
|
|
1768
|
+
function Gt(t, e) {
|
|
1768
1769
|
return e.push(t), t;
|
|
1769
1770
|
}
|
|
1770
1771
|
function hu(t, e) {
|
|
1771
1772
|
return t.map(e).join("");
|
|
1772
1773
|
}
|
|
1773
|
-
var
|
|
1774
|
-
function
|
|
1775
|
-
return { value: t, root: e, parent: r, type: i, props: n, children: a, line:
|
|
1774
|
+
var sn = 1, st = 1, mi = 0, Se = 0, ve = 0, lt = "";
|
|
1775
|
+
function un(t, e, r, i, n, a, s) {
|
|
1776
|
+
return { value: t, root: e, parent: r, type: i, props: n, children: a, line: sn, column: st, length: s, return: "" };
|
|
1776
1777
|
}
|
|
1777
1778
|
function gt(t, e) {
|
|
1778
|
-
return pu(
|
|
1779
|
+
return pu(un("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
1779
1780
|
}
|
|
1780
1781
|
function mu() {
|
|
1781
1782
|
return ve;
|
|
1782
1783
|
}
|
|
1783
1784
|
function vu() {
|
|
1784
|
-
return ve = Se > 0 ? Ce(lt, --Se) : 0, st--, ve === 10 && (st = 1,
|
|
1785
|
+
return ve = Se > 0 ? Ce(lt, --Se) : 0, st--, ve === 10 && (st = 1, sn--), ve;
|
|
1785
1786
|
}
|
|
1786
1787
|
function Re() {
|
|
1787
|
-
return ve = Se < mi ? Ce(lt, Se++) : 0, st++, ve === 10 && (st = 1,
|
|
1788
|
+
return ve = Se < mi ? Ce(lt, Se++) : 0, st++, ve === 10 && (st = 1, sn++), ve;
|
|
1788
1789
|
}
|
|
1789
1790
|
function Ve() {
|
|
1790
1791
|
return Ce(lt, Se);
|
|
1791
1792
|
}
|
|
1792
|
-
function
|
|
1793
|
+
function Zt() {
|
|
1793
1794
|
return Se;
|
|
1794
1795
|
}
|
|
1795
1796
|
function xt(t, e) {
|
|
@@ -1834,12 +1835,12 @@ function Ct(t) {
|
|
|
1834
1835
|
return 0;
|
|
1835
1836
|
}
|
|
1836
1837
|
function vi(t) {
|
|
1837
|
-
return
|
|
1838
|
+
return sn = st = 1, mi = Fe(lt = t), Se = 0, [];
|
|
1838
1839
|
}
|
|
1839
1840
|
function Ii(t) {
|
|
1840
1841
|
return lt = "", t;
|
|
1841
1842
|
}
|
|
1842
|
-
function
|
|
1843
|
+
function Lt(t) {
|
|
1843
1844
|
return hi(xt(Se - 1, _n(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1844
1845
|
}
|
|
1845
1846
|
function Iu(t) {
|
|
@@ -1850,7 +1851,7 @@ function Iu(t) {
|
|
|
1850
1851
|
function Cu(t, e) {
|
|
1851
1852
|
for (; --e && Re() && !(ve < 48 || ve > 102 || ve > 57 && ve < 65 || ve > 70 && ve < 97); )
|
|
1852
1853
|
;
|
|
1853
|
-
return xt(t,
|
|
1854
|
+
return xt(t, Zt() + (e < 6 && Ve() == 32 && Re() == 32));
|
|
1854
1855
|
}
|
|
1855
1856
|
function _n(t) {
|
|
1856
1857
|
for (; Re(); )
|
|
@@ -1878,7 +1879,7 @@ function yu(t, e) {
|
|
|
1878
1879
|
for (; Re() && t + ve !== 57; )
|
|
1879
1880
|
if (t + ve === 84 && Ve() === 47)
|
|
1880
1881
|
break;
|
|
1881
|
-
return "/*" + xt(e, Se - 1) + "*" +
|
|
1882
|
+
return "/*" + xt(e, Se - 1) + "*" + an(t === 47 ? t : Re());
|
|
1882
1883
|
}
|
|
1883
1884
|
function wu(t) {
|
|
1884
1885
|
for (; !Ct(Ve()); )
|
|
@@ -1886,22 +1887,22 @@ function wu(t) {
|
|
|
1886
1887
|
return xt(t, Se);
|
|
1887
1888
|
}
|
|
1888
1889
|
function xu(t) {
|
|
1889
|
-
return Ii(
|
|
1890
|
+
return Ii(jt("", null, null, null, [""], t = vi(t), 0, [0], t));
|
|
1890
1891
|
}
|
|
1891
|
-
function
|
|
1892
|
+
function jt(t, e, r, i, n, a, s, o, u) {
|
|
1892
1893
|
for (var c = 0, l = 0, d = s, p = 0, f = 0, v = 0, b = 1, m = 1, I = 1, y = 0, w = "", x = n, C = a, T = i, E = w; m; )
|
|
1893
1894
|
switch (v = y, y = Re()) {
|
|
1894
1895
|
// (
|
|
1895
1896
|
case 40:
|
|
1896
1897
|
if (v != 108 && Ce(E, d - 1) == 58) {
|
|
1897
|
-
zn(E += ie(
|
|
1898
|
+
zn(E += ie(Lt(y), "&", "&\f"), "&\f") != -1 && (I = -1);
|
|
1898
1899
|
break;
|
|
1899
1900
|
}
|
|
1900
1901
|
// " ' [
|
|
1901
1902
|
case 34:
|
|
1902
1903
|
case 39:
|
|
1903
1904
|
case 91:
|
|
1904
|
-
E +=
|
|
1905
|
+
E += Lt(y);
|
|
1905
1906
|
break;
|
|
1906
1907
|
// \t \n \r \s
|
|
1907
1908
|
case 9:
|
|
@@ -1912,14 +1913,14 @@ function Yt(t, e, r, i, n, a, s, o, u) {
|
|
|
1912
1913
|
break;
|
|
1913
1914
|
// \
|
|
1914
1915
|
case 92:
|
|
1915
|
-
E += Cu(
|
|
1916
|
+
E += Cu(Zt() - 1, 7);
|
|
1916
1917
|
continue;
|
|
1917
1918
|
// /
|
|
1918
1919
|
case 47:
|
|
1919
1920
|
switch (Ve()) {
|
|
1920
1921
|
case 42:
|
|
1921
1922
|
case 47:
|
|
1922
|
-
|
|
1923
|
+
Gt(Au(yu(Re(), Zt()), e, r), u);
|
|
1923
1924
|
break;
|
|
1924
1925
|
default:
|
|
1925
1926
|
E += "/";
|
|
@@ -1939,16 +1940,16 @@ function Yt(t, e, r, i, n, a, s, o, u) {
|
|
|
1939
1940
|
m = 0;
|
|
1940
1941
|
// ;
|
|
1941
1942
|
case 59 + l:
|
|
1942
|
-
I == -1 && (E = ie(E, /\f/g, "")), f > 0 && Fe(E) - d &&
|
|
1943
|
+
I == -1 && (E = ie(E, /\f/g, "")), f > 0 && Fe(E) - d && Gt(f > 32 ? ro(E + ";", i, r, d - 1) : ro(ie(E, " ", "") + ";", i, r, d - 2), u);
|
|
1943
1944
|
break;
|
|
1944
1945
|
// @ ;
|
|
1945
1946
|
case 59:
|
|
1946
1947
|
E += ";";
|
|
1947
1948
|
// { rule/at-rule
|
|
1948
1949
|
default:
|
|
1949
|
-
if (
|
|
1950
|
+
if (Gt(T = no(E, e, r, c, l, n, o, w, x = [], C = [], d), a), y === 123)
|
|
1950
1951
|
if (l === 0)
|
|
1951
|
-
|
|
1952
|
+
jt(E, e, T, T, x, a, d, o, C);
|
|
1952
1953
|
else
|
|
1953
1954
|
switch (p === 99 && Ce(E, 3) === 110 ? 100 : p) {
|
|
1954
1955
|
// d l m s
|
|
@@ -1956,10 +1957,10 @@ function Yt(t, e, r, i, n, a, s, o, u) {
|
|
|
1956
1957
|
case 108:
|
|
1957
1958
|
case 109:
|
|
1958
1959
|
case 115:
|
|
1959
|
-
|
|
1960
|
+
jt(t, T, T, i && Gt(no(t, T, T, 0, 0, n, o, w, n, x = [], d), C), n, C, d, o, i ? x : C);
|
|
1960
1961
|
break;
|
|
1961
1962
|
default:
|
|
1962
|
-
|
|
1963
|
+
jt(E, T, T, T, [""], C, 0, o, C);
|
|
1963
1964
|
}
|
|
1964
1965
|
}
|
|
1965
1966
|
c = l = f = 0, b = I = 1, w = E = "", d = s;
|
|
@@ -1974,7 +1975,7 @@ function Yt(t, e, r, i, n, a, s, o, u) {
|
|
|
1974
1975
|
else if (y == 125 && b++ == 0 && vu() == 125)
|
|
1975
1976
|
continue;
|
|
1976
1977
|
}
|
|
1977
|
-
switch (E +=
|
|
1978
|
+
switch (E += an(y), y * b) {
|
|
1978
1979
|
// &
|
|
1979
1980
|
case 38:
|
|
1980
1981
|
I = l > 0 ? 1 : (E += "\f", -1);
|
|
@@ -1985,7 +1986,7 @@ function Yt(t, e, r, i, n, a, s, o, u) {
|
|
|
1985
1986
|
break;
|
|
1986
1987
|
// @
|
|
1987
1988
|
case 64:
|
|
1988
|
-
Ve() === 45 && (E +=
|
|
1989
|
+
Ve() === 45 && (E += Lt(Re())), p = Ve(), l = d = Fe(w = E += wu(Zt())), y++;
|
|
1989
1990
|
break;
|
|
1990
1991
|
// -
|
|
1991
1992
|
case 45:
|
|
@@ -1998,13 +1999,13 @@ function no(t, e, r, i, n, a, s, o, u, c, l) {
|
|
|
1998
1999
|
for (var d = n - 1, p = n === 0 ? a : [""], f = lr(p), v = 0, b = 0, m = 0; v < i; ++v)
|
|
1999
2000
|
for (var I = 0, y = It(t, d + 1, d = fu(b = s[v])), w = t; I < f; ++I)
|
|
2000
2001
|
(w = hi(b > 0 ? p[I] + " " + y : ie(y, /&\f/g, p[I]))) && (u[m++] = w);
|
|
2001
|
-
return
|
|
2002
|
+
return un(t, e, r, n === 0 ? ur : o, u, c, l);
|
|
2002
2003
|
}
|
|
2003
2004
|
function Au(t, e, r) {
|
|
2004
|
-
return
|
|
2005
|
+
return un(t, e, r, gi, an(mu()), It(t, 2, -2), 0);
|
|
2005
2006
|
}
|
|
2006
2007
|
function ro(t, e, r, i) {
|
|
2007
|
-
return
|
|
2008
|
+
return un(t, e, r, cr, It(t, 0, i), It(t, i + 1, -1), i);
|
|
2008
2009
|
}
|
|
2009
2010
|
function it(t, e) {
|
|
2010
2011
|
for (var r = "", i = lr(t), n = 0; n < i; n++)
|
|
@@ -2058,7 +2059,7 @@ var Bu = function(e, r, i) {
|
|
|
2058
2059
|
n === 38 && Ve() === 12 && (r[i] = 1), e[i] += Bu(Se - 1, r, i);
|
|
2059
2060
|
break;
|
|
2060
2061
|
case 2:
|
|
2061
|
-
e[i] +=
|
|
2062
|
+
e[i] += Lt(n);
|
|
2062
2063
|
break;
|
|
2063
2064
|
case 4:
|
|
2064
2065
|
if (n === 44) {
|
|
@@ -2067,7 +2068,7 @@ var Bu = function(e, r, i) {
|
|
|
2067
2068
|
}
|
|
2068
2069
|
// fallthrough
|
|
2069
2070
|
default:
|
|
2070
|
-
e[i] +=
|
|
2071
|
+
e[i] += an(n);
|
|
2071
2072
|
}
|
|
2072
2073
|
while (n = Re());
|
|
2073
2074
|
return e;
|
|
@@ -2135,7 +2136,7 @@ function Ci(t, e) {
|
|
|
2135
2136
|
case 4810:
|
|
2136
2137
|
case 6968:
|
|
2137
2138
|
case 2756:
|
|
2138
|
-
return oe + t +
|
|
2139
|
+
return oe + t + zt + t + we + t + t;
|
|
2139
2140
|
// flex, flex-direction
|
|
2140
2141
|
case 6828:
|
|
2141
2142
|
case 4268:
|
|
@@ -2199,7 +2200,7 @@ function Ci(t, e) {
|
|
|
2199
2200
|
if (Ce(t, e + 4) !== 45) break;
|
|
2200
2201
|
// (f)ill-available, (f)it-content
|
|
2201
2202
|
case 102:
|
|
2202
|
-
return ie(t, /(.+:)(.+)-([^]+)/, "$1" + oe + "$2-$3$1" +
|
|
2203
|
+
return ie(t, /(.+:)(.+)-([^]+)/, "$1" + oe + "$2-$3$1" + zt + (Ce(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
2203
2204
|
// (s)tretch
|
|
2204
2205
|
case 115:
|
|
2205
2206
|
return ~zn(t, "stretch") ? Ci(ie(t, "stretch", "fill-available"), e) + t : t;
|
|
@@ -2252,14 +2253,14 @@ var ku = function(e, r, i, n) {
|
|
|
2252
2253
|
case ":read-only":
|
|
2253
2254
|
case ":read-write":
|
|
2254
2255
|
return it([gt(e, {
|
|
2255
|
-
props: [ie(a, /:(read-\w+)/, ":" +
|
|
2256
|
+
props: [ie(a, /:(read-\w+)/, ":" + zt + "$1")]
|
|
2256
2257
|
})], n);
|
|
2257
2258
|
// :placeholder
|
|
2258
2259
|
case "::placeholder":
|
|
2259
2260
|
return it([gt(e, {
|
|
2260
2261
|
props: [ie(a, /:(plac\w+)/, ":" + oe + "input-$1")]
|
|
2261
2262
|
}), gt(e, {
|
|
2262
|
-
props: [ie(a, /:(plac\w+)/, ":" +
|
|
2263
|
+
props: [ie(a, /:(plac\w+)/, ":" + zt + "$1")]
|
|
2263
2264
|
}), gt(e, {
|
|
2264
2265
|
props: [ie(a, /:(plac\w+)/, we + "input-$1")]
|
|
2265
2266
|
})], n);
|
|
@@ -2314,7 +2315,7 @@ var ku = function(e, r, i, n) {
|
|
|
2314
2315
|
insert: u
|
|
2315
2316
|
};
|
|
2316
2317
|
return v.sheet.hydrate(o), v;
|
|
2317
|
-
},
|
|
2318
|
+
}, Pt = { exports: {} }, se = {};
|
|
2318
2319
|
var io;
|
|
2319
2320
|
function Nu() {
|
|
2320
2321
|
if (io) return se;
|
|
@@ -2467,7 +2468,7 @@ function Du() {
|
|
|
2467
2468
|
}
|
|
2468
2469
|
var so;
|
|
2469
2470
|
function dr() {
|
|
2470
|
-
return so || (so = 1, process.env.NODE_ENV === "production" ?
|
|
2471
|
+
return so || (so = 1, process.env.NODE_ENV === "production" ? Pt.exports = Nu() : Pt.exports = Du()), Pt.exports;
|
|
2471
2472
|
}
|
|
2472
2473
|
var An, uo;
|
|
2473
2474
|
function Mu() {
|
|
@@ -2890,7 +2891,7 @@ function cc(t, e) {
|
|
|
2890
2891
|
}
|
|
2891
2892
|
}));
|
|
2892
2893
|
}
|
|
2893
|
-
const lc = Math.min, dc = Math.max,
|
|
2894
|
+
const lc = Math.min, dc = Math.max, _t = Math.round, Ft = Math.floor, $t = (t) => ({
|
|
2894
2895
|
x: t,
|
|
2895
2896
|
y: t
|
|
2896
2897
|
});
|
|
@@ -2912,7 +2913,7 @@ function fc(t) {
|
|
|
2912
2913
|
y: r
|
|
2913
2914
|
};
|
|
2914
2915
|
}
|
|
2915
|
-
function
|
|
2916
|
+
function cn() {
|
|
2916
2917
|
return typeof window < "u";
|
|
2917
2918
|
}
|
|
2918
2919
|
function Si(t) {
|
|
@@ -2927,16 +2928,16 @@ function Ti(t) {
|
|
|
2927
2928
|
return (e = (Ri(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
2928
2929
|
}
|
|
2929
2930
|
function Ri(t) {
|
|
2930
|
-
return
|
|
2931
|
+
return cn() ? t instanceof Node || t instanceof Xe(t).Node : !1;
|
|
2931
2932
|
}
|
|
2932
2933
|
function pc(t) {
|
|
2933
|
-
return
|
|
2934
|
+
return cn() ? t instanceof Element || t instanceof Xe(t).Element : !1;
|
|
2934
2935
|
}
|
|
2935
2936
|
function gr(t) {
|
|
2936
|
-
return
|
|
2937
|
+
return cn() ? t instanceof HTMLElement || t instanceof Xe(t).HTMLElement : !1;
|
|
2937
2938
|
}
|
|
2938
2939
|
function go(t) {
|
|
2939
|
-
return !
|
|
2940
|
+
return !cn() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Xe(t).ShadowRoot;
|
|
2940
2941
|
}
|
|
2941
2942
|
const gc = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
2942
2943
|
function Bi(t) {
|
|
@@ -2974,15 +2975,15 @@ function Gi(t) {
|
|
|
2974
2975
|
const e = vc(t);
|
|
2975
2976
|
return mc(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : gr(e) && Bi(e) ? e : Gi(e);
|
|
2976
2977
|
}
|
|
2977
|
-
function
|
|
2978
|
+
function Ut(t, e, r) {
|
|
2978
2979
|
var i;
|
|
2979
2980
|
e === void 0 && (e = []), r === void 0 && (r = !0);
|
|
2980
2981
|
const n = Gi(t), a = n === ((i = t.ownerDocument) == null ? void 0 : i.body), s = Xe(n);
|
|
2981
2982
|
if (a) {
|
|
2982
2983
|
const o = Qn(s);
|
|
2983
|
-
return e.concat(s, s.visualViewport || [], Bi(n) ? n : [], o && r ?
|
|
2984
|
+
return e.concat(s, s.visualViewport || [], Bi(n) ? n : [], o && r ? Ut(o) : []);
|
|
2984
2985
|
}
|
|
2985
|
-
return e.concat(n,
|
|
2986
|
+
return e.concat(n, Ut(n, [], r));
|
|
2986
2987
|
}
|
|
2987
2988
|
function Qn(t) {
|
|
2988
2989
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
@@ -2990,7 +2991,7 @@ function Qn(t) {
|
|
|
2990
2991
|
function Ic(t) {
|
|
2991
2992
|
const e = br(t);
|
|
2992
2993
|
let r = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
2993
|
-
const n = gr(t), a = n ? t.offsetWidth : r, s = n ? t.offsetHeight : i, o =
|
|
2994
|
+
const n = gr(t), a = n ? t.offsetWidth : r, s = n ? t.offsetHeight : i, o = _t(r) !== a || _t(i) !== s;
|
|
2994
2995
|
return o && (r = a, i = s), {
|
|
2995
2996
|
width: r,
|
|
2996
2997
|
height: i,
|
|
@@ -3003,19 +3004,19 @@ function hr(t) {
|
|
|
3003
3004
|
function bo(t) {
|
|
3004
3005
|
const e = hr(t);
|
|
3005
3006
|
if (!gr(e))
|
|
3006
|
-
return
|
|
3007
|
+
return $t(1);
|
|
3007
3008
|
const r = e.getBoundingClientRect(), {
|
|
3008
3009
|
width: i,
|
|
3009
3010
|
height: n,
|
|
3010
3011
|
$: a
|
|
3011
3012
|
} = Ic(e);
|
|
3012
|
-
let s = (a ?
|
|
3013
|
+
let s = (a ? _t(r.width) : r.width) / i, o = (a ? _t(r.height) : r.height) / n;
|
|
3013
3014
|
return (!s || !Number.isFinite(s)) && (s = 1), (!o || !Number.isFinite(o)) && (o = 1), {
|
|
3014
3015
|
x: s,
|
|
3015
3016
|
y: o
|
|
3016
3017
|
};
|
|
3017
3018
|
}
|
|
3018
|
-
const Cc = /* @__PURE__ */
|
|
3019
|
+
const Cc = /* @__PURE__ */ $t(0);
|
|
3019
3020
|
function yc(t) {
|
|
3020
3021
|
const e = Xe(t);
|
|
3021
3022
|
return !bc() || !e.visualViewport ? Cc : {
|
|
@@ -3029,9 +3030,9 @@ function wc(t, e, r) {
|
|
|
3029
3030
|
function ho(t, e, r, i) {
|
|
3030
3031
|
e === void 0 && (e = !1);
|
|
3031
3032
|
const n = t.getBoundingClientRect(), a = hr(t);
|
|
3032
|
-
let s =
|
|
3033
|
+
let s = $t(1);
|
|
3033
3034
|
e && (s = bo(t));
|
|
3034
|
-
const o = wc() ? yc(a) :
|
|
3035
|
+
const o = wc() ? yc(a) : $t(0);
|
|
3035
3036
|
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;
|
|
3036
3037
|
if (a) {
|
|
3037
3038
|
const p = Xe(a), f = i;
|
|
@@ -3068,7 +3069,7 @@ function xc(t, e) {
|
|
|
3068
3069
|
} = c;
|
|
3069
3070
|
if (o || e(), !p || !f)
|
|
3070
3071
|
return;
|
|
3071
|
-
const v =
|
|
3072
|
+
const v = Ft(d), b = Ft(n.clientWidth - (l + p)), m = Ft(n.clientHeight - (d + f)), I = Ft(l), w = {
|
|
3072
3073
|
rootMargin: -v + "px " + -b + "px " + -m + "px " + -I + "px",
|
|
3073
3074
|
threshold: dc(0, lc(1, u)) || 1
|
|
3074
3075
|
};
|
|
@@ -3105,7 +3106,7 @@ function Ac(t, e, r, i) {
|
|
|
3105
3106
|
elementResize: s = typeof ResizeObserver == "function",
|
|
3106
3107
|
layoutShift: o = typeof IntersectionObserver == "function",
|
|
3107
3108
|
animationFrame: u = !1
|
|
3108
|
-
} = i, c = hr(t), l = n || a ? [...c ?
|
|
3109
|
+
} = i, c = hr(t), l = n || a ? [...c ? Ut(c) : [], ...Ut(e)] : [];
|
|
3109
3110
|
l.forEach((I) => {
|
|
3110
3111
|
n && I.addEventListener("scroll", r, {
|
|
3111
3112
|
passive: !0
|
|
@@ -3135,8 +3136,8 @@ function Ac(t, e, r, i) {
|
|
|
3135
3136
|
}
|
|
3136
3137
|
const Ec = window.React.useLayoutEffect;
|
|
3137
3138
|
var Kn = Ec;
|
|
3138
|
-
const Sc = window.React.useContext, qn = window.React.useRef,
|
|
3139
|
-
var Gc = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"],
|
|
3139
|
+
const Sc = window.React.useContext, qn = window.React.useRef, Qt = window.React.useState, Tc = window.React.useMemo, Sn = window.React.useCallback, Rc = window.React.createContext, Bc = window.ReactDOM.createPortal;
|
|
3140
|
+
var Gc = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Kt = function() {
|
|
3140
3141
|
};
|
|
3141
3142
|
function Pc(t, e) {
|
|
3142
3143
|
return e ? e[0] === "-" ? t + e : t + "__" + e : t;
|
|
@@ -3174,17 +3175,17 @@ function Oc(t, e, r) {
|
|
|
3174
3175
|
}
|
|
3175
3176
|
return t;
|
|
3176
3177
|
}
|
|
3177
|
-
function
|
|
3178
|
+
function ln(t) {
|
|
3178
3179
|
return [document.documentElement, document.body, window].indexOf(t) > -1;
|
|
3179
3180
|
}
|
|
3180
3181
|
function kc(t) {
|
|
3181
|
-
return
|
|
3182
|
+
return ln(t) ? window.innerHeight : t.clientHeight;
|
|
3182
3183
|
}
|
|
3183
3184
|
function Oi(t) {
|
|
3184
|
-
return
|
|
3185
|
+
return ln(t) ? window.pageYOffset : t.scrollTop;
|
|
3185
3186
|
}
|
|
3186
|
-
function
|
|
3187
|
-
if (
|
|
3187
|
+
function qt(t, e) {
|
|
3188
|
+
if (ln(t)) {
|
|
3188
3189
|
window.scrollTo(0, e);
|
|
3189
3190
|
return;
|
|
3190
3191
|
}
|
|
@@ -3201,18 +3202,18 @@ function Vc(t) {
|
|
|
3201
3202
|
function Wc(t, e, r, i) {
|
|
3202
3203
|
return r * ((t = t / i - 1) * t * t + 1) + e;
|
|
3203
3204
|
}
|
|
3204
|
-
function
|
|
3205
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
3205
|
+
function Ot(t, e) {
|
|
3206
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Kt, n = Oi(t), a = e - n, s = 10, o = 0;
|
|
3206
3207
|
function u() {
|
|
3207
3208
|
o += s;
|
|
3208
3209
|
var c = Wc(o, n, a, r);
|
|
3209
|
-
|
|
3210
|
+
qt(t, c), o < r ? window.requestAnimationFrame(u) : i(t);
|
|
3210
3211
|
}
|
|
3211
3212
|
u();
|
|
3212
3213
|
}
|
|
3213
3214
|
function vo(t, e) {
|
|
3214
3215
|
var r = t.getBoundingClientRect(), i = e.getBoundingClientRect(), n = e.offsetHeight / 3;
|
|
3215
|
-
i.bottom + n > r.bottom ?
|
|
3216
|
+
i.bottom + n > r.bottom ? qt(t, Math.min(e.offsetTop + e.clientHeight - t.offsetHeight + n, t.scrollHeight)) : i.top - n < r.top && qt(t, Math.max(e.offsetTop - n, 0));
|
|
3216
3217
|
}
|
|
3217
3218
|
function Nc(t) {
|
|
3218
3219
|
var e = t.getBoundingClientRect();
|
|
@@ -3243,8 +3244,8 @@ var ki = !1, Mc = {
|
|
|
3243
3244
|
get passive() {
|
|
3244
3245
|
return ki = !0;
|
|
3245
3246
|
}
|
|
3246
|
-
},
|
|
3247
|
-
|
|
3247
|
+
}, kt = typeof window < "u" ? window : {};
|
|
3248
|
+
kt.addEventListener && kt.removeEventListener && (kt.addEventListener("p", Kt, Mc), kt.removeEventListener("p", Kt, !1));
|
|
3248
3249
|
var Xc = ki;
|
|
3249
3250
|
function Hc(t) {
|
|
3250
3251
|
return t != null;
|
|
@@ -3252,7 +3253,7 @@ function Hc(t) {
|
|
|
3252
3253
|
function Zc(t) {
|
|
3253
3254
|
return Array.isArray(t);
|
|
3254
3255
|
}
|
|
3255
|
-
function
|
|
3256
|
+
function Vt(t, e, r) {
|
|
3256
3257
|
return t ? e : r;
|
|
3257
3258
|
}
|
|
3258
3259
|
var Lc = function(e) {
|
|
@@ -3283,12 +3284,12 @@ function Jc(t) {
|
|
|
3283
3284
|
maxHeight: e
|
|
3284
3285
|
};
|
|
3285
3286
|
if (Q >= v && !s)
|
|
3286
|
-
return a &&
|
|
3287
|
+
return a && Ot(u, X, K), {
|
|
3287
3288
|
placement: "bottom",
|
|
3288
3289
|
maxHeight: e
|
|
3289
3290
|
};
|
|
3290
3291
|
if (!s && Q >= i || s && E >= i) {
|
|
3291
|
-
a &&
|
|
3292
|
+
a && Ot(u, X, K);
|
|
3292
3293
|
var $ = s ? E - x : Q - x;
|
|
3293
3294
|
return {
|
|
3294
3295
|
placement: "bottom",
|
|
@@ -3303,7 +3304,7 @@ function Jc(t) {
|
|
|
3303
3304
|
};
|
|
3304
3305
|
}
|
|
3305
3306
|
if (n === "bottom")
|
|
3306
|
-
return a &&
|
|
3307
|
+
return a && qt(u, X), {
|
|
3307
3308
|
placement: "bottom",
|
|
3308
3309
|
maxHeight: e
|
|
3309
3310
|
};
|
|
@@ -3315,13 +3316,13 @@ function Jc(t) {
|
|
|
3315
3316
|
maxHeight: e
|
|
3316
3317
|
};
|
|
3317
3318
|
if (F >= v && !s)
|
|
3318
|
-
return a &&
|
|
3319
|
+
return a && Ot(u, L, K), {
|
|
3319
3320
|
placement: "top",
|
|
3320
3321
|
maxHeight: e
|
|
3321
3322
|
};
|
|
3322
3323
|
if (!s && F >= i || s && T >= i) {
|
|
3323
3324
|
var re = e;
|
|
3324
|
-
return (!s && F >= i || s && T >= i) && (re = s ? T - C : F - C), a &&
|
|
3325
|
+
return (!s && F >= i || s && T >= i) && (re = s ? T - C : F - C), a && Ot(u, L, K), {
|
|
3325
3326
|
placement: "top",
|
|
3326
3327
|
maxHeight: re
|
|
3327
3328
|
};
|
|
@@ -3356,7 +3357,7 @@ var Vi = function(e) {
|
|
|
3356
3357
|
marginTop: o.menuGutter
|
|
3357
3358
|
});
|
|
3358
3359
|
}, Wi = /* @__PURE__ */ Rc(null), $c = function(e) {
|
|
3359
|
-
var r = e.children, i = e.minMenuHeight, n = e.maxMenuHeight, a = e.menuPlacement, s = e.menuPosition, o = e.menuShouldScrollIntoView, u = e.theme, c = Sc(Wi) || {}, l = c.setPortalPlacement, d = qn(null), p =
|
|
3360
|
+
var r = e.children, i = e.minMenuHeight, n = e.maxMenuHeight, a = e.menuPlacement, s = e.menuPosition, o = e.menuShouldScrollIntoView, u = e.theme, c = Sc(Wi) || {}, l = c.setPortalPlacement, d = qn(null), p = Qt(n), f = me(p, 2), v = f[0], b = f[1], m = Qt(null), I = me(m, 2), y = I[0], w = I[1], x = u.spacing.controlHeight;
|
|
3360
3361
|
return Kn(function() {
|
|
3361
3362
|
var C = d.current;
|
|
3362
3363
|
if (C) {
|
|
@@ -3441,11 +3442,11 @@ var Vi = function(e) {
|
|
|
3441
3442
|
zIndex: 1
|
|
3442
3443
|
};
|
|
3443
3444
|
}, il = function(e) {
|
|
3444
|
-
var r = e.appendTo, i = e.children, n = e.controlElement, a = e.innerProps, s = e.menuPlacement, o = e.menuPosition, u = qn(null), c = qn(null), l =
|
|
3445
|
+
var r = e.appendTo, i = e.children, n = e.controlElement, a = e.innerProps, s = e.menuPlacement, o = e.menuPosition, u = qn(null), c = qn(null), l = Qt(Vi(s)), d = me(l, 2), p = d[0], f = d[1], v = Tc(function() {
|
|
3445
3446
|
return {
|
|
3446
3447
|
setPortalPlacement: f
|
|
3447
3448
|
};
|
|
3448
|
-
}, []), b =
|
|
3449
|
+
}, []), b = Qt(null), m = me(b, 2), I = m[0], y = m[1], w = Sn(function() {
|
|
3449
3450
|
if (n) {
|
|
3450
3451
|
var E = Nc(n), F = o === "fixed" ? 0 : window.pageYOffset, Q = E[p] + F;
|
|
3451
3452
|
(Q !== I?.offset || E.left !== I?.rect.left || E.width !== I?.rect.width) && y({
|
|
@@ -4682,7 +4683,7 @@ var Rd = process.env.NODE_ENV === "production" ? {
|
|
|
4682
4683
|
unstyled: !1
|
|
4683
4684
|
};
|
|
4684
4685
|
function Po(t, e, r, i) {
|
|
4685
|
-
var n = Ui(t, e, r), a = Qi(t, e, r), s = $i(t, e), o =
|
|
4686
|
+
var n = Ui(t, e, r), a = Qi(t, e, r), s = $i(t, e), o = en(t, e);
|
|
4686
4687
|
return {
|
|
4687
4688
|
type: "option",
|
|
4688
4689
|
data: e,
|
|
@@ -4747,7 +4748,7 @@ function jd(t, e) {
|
|
|
4747
4748
|
}
|
|
4748
4749
|
var $i = function(e, r) {
|
|
4749
4750
|
return e.getOptionLabel(r);
|
|
4750
|
-
},
|
|
4751
|
+
}, en = function(e, r) {
|
|
4751
4752
|
return e.getOptionValue(r);
|
|
4752
4753
|
};
|
|
4753
4754
|
function Ui(t, e, r) {
|
|
@@ -4757,9 +4758,9 @@ function Qi(t, e, r) {
|
|
|
4757
4758
|
if (r.indexOf(e) > -1) return !0;
|
|
4758
4759
|
if (typeof t.isOptionSelected == "function")
|
|
4759
4760
|
return t.isOptionSelected(e, r);
|
|
4760
|
-
var i =
|
|
4761
|
+
var i = en(t, e);
|
|
4761
4762
|
return r.some(function(n) {
|
|
4762
|
-
return
|
|
4763
|
+
return en(t, n) === i;
|
|
4763
4764
|
});
|
|
4764
4765
|
}
|
|
4765
4766
|
function Ki(t, e, r) {
|
|
@@ -4769,7 +4770,7 @@ var qi = function(e) {
|
|
|
4769
4770
|
var r = e.hideSelectedOptions, i = e.isMulti;
|
|
4770
4771
|
return r === void 0 ? i : r;
|
|
4771
4772
|
}, Yd = 1, Ir = /* @__PURE__ */ (function(t) {
|
|
4772
|
-
|
|
4773
|
+
rn(r, t);
|
|
4773
4774
|
var e = ru(r);
|
|
4774
4775
|
function r(i) {
|
|
4775
4776
|
var n;
|
|
@@ -4829,19 +4830,19 @@ var qi = function(e) {
|
|
|
4829
4830
|
}, n.removeValue = function(o) {
|
|
4830
4831
|
var u = n.props.isMulti, c = n.state.selectValue, l = n.getOptionValue(o), d = c.filter(function(f) {
|
|
4831
4832
|
return n.getOptionValue(f) !== l;
|
|
4832
|
-
}), p =
|
|
4833
|
+
}), p = Vt(u, d, d[0] || null);
|
|
4833
4834
|
n.onChange(p, {
|
|
4834
4835
|
action: "remove-value",
|
|
4835
4836
|
removedValue: o
|
|
4836
4837
|
}), n.focusInput();
|
|
4837
4838
|
}, n.clearValue = function() {
|
|
4838
4839
|
var o = n.state.selectValue;
|
|
4839
|
-
n.onChange(
|
|
4840
|
+
n.onChange(Vt(n.props.isMulti, [], null), {
|
|
4840
4841
|
action: "clear",
|
|
4841
4842
|
removedValues: o
|
|
4842
4843
|
});
|
|
4843
4844
|
}, n.popValue = function() {
|
|
4844
|
-
var o = n.props.isMulti, u = n.state.selectValue, c = u[u.length - 1], l = u.slice(0, u.length - 1), d =
|
|
4845
|
+
var o = n.props.isMulti, u = n.state.selectValue, c = u[u.length - 1], l = u.slice(0, u.length - 1), d = Vt(o, l, l[0] || null);
|
|
4845
4846
|
n.onChange(d, {
|
|
4846
4847
|
action: "pop-value",
|
|
4847
4848
|
removedValue: c
|
|
@@ -4855,7 +4856,7 @@ var qi = function(e) {
|
|
|
4855
4856
|
}, n.getOptionLabel = function(o) {
|
|
4856
4857
|
return $i(n.props, o);
|
|
4857
4858
|
}, n.getOptionValue = function(o) {
|
|
4858
|
-
return
|
|
4859
|
+
return en(n.props, o);
|
|
4859
4860
|
}, n.getStyles = function(o, u) {
|
|
4860
4861
|
var c = n.props.unstyled, l = Vd[o](u, c);
|
|
4861
4862
|
l.boxSizing = "border-box";
|
|
@@ -4903,7 +4904,7 @@ var qi = function(e) {
|
|
|
4903
4904
|
return n.focusInput();
|
|
4904
4905
|
}));
|
|
4905
4906
|
}, n.onScroll = function(o) {
|
|
4906
|
-
typeof n.props.closeMenuOnScroll == "boolean" ? o.target instanceof HTMLElement &&
|
|
4907
|
+
typeof n.props.closeMenuOnScroll == "boolean" ? o.target instanceof HTMLElement && ln(o.target) && n.props.onMenuClose() : typeof n.props.closeMenuOnScroll == "function" && n.props.closeMenuOnScroll(o) && n.props.onMenuClose();
|
|
4907
4908
|
}, n.onCompositionStart = function() {
|
|
4908
4909
|
n.isComposing = !0;
|
|
4909
4910
|
}, n.onCompositionEnd = function() {
|
|
@@ -5320,7 +5321,7 @@ var qi = function(e) {
|
|
|
5320
5321
|
id: w,
|
|
5321
5322
|
innerRef: this.getInputRef,
|
|
5322
5323
|
onBlur: this.onInputBlur,
|
|
5323
|
-
onChange:
|
|
5324
|
+
onChange: Kt,
|
|
5324
5325
|
onFocus: this.onInputFocus,
|
|
5325
5326
|
disabled: a,
|
|
5326
5327
|
tabIndex: c,
|
|
@@ -5641,7 +5642,7 @@ var qi = function(e) {
|
|
|
5641
5642
|
inputIsHiddenAfterUpdate: void 0
|
|
5642
5643
|
} : {}, E = c, F = l && d;
|
|
5643
5644
|
return l && !F && (E = {
|
|
5644
|
-
value:
|
|
5645
|
+
value: Vt(m, I, I[0] || null),
|
|
5645
5646
|
options: I,
|
|
5646
5647
|
action: "initial-input-focus"
|
|
5647
5648
|
}, F = !d), c?.action === "initial-input-focus" && (E = null), k(k(k({}, y), T), {}, {
|
|
@@ -5653,17 +5654,17 @@ var qi = function(e) {
|
|
|
5653
5654
|
}]), r;
|
|
5654
5655
|
})(sd);
|
|
5655
5656
|
Ir.defaultProps = Hd;
|
|
5656
|
-
const Fn = window.React.useState,
|
|
5657
|
+
const Fn = window.React.useState, Wt = window.React.useCallback;
|
|
5657
5658
|
var Jd = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5658
5659
|
function ea(t) {
|
|
5659
|
-
var e = t.defaultInputValue, r = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = t.defaultValue, s = a === void 0 ? null : a, o = t.inputValue, u = t.menuIsOpen, c = t.onChange, l = t.onInputChange, d = t.onMenuClose, p = t.onMenuOpen, f = t.value, v = Ne(t, Jd), b = Fn(o !== void 0 ? o : r), m = me(b, 2), I = m[0], y = m[1], w = Fn(u !== void 0 ? u : n), x = me(w, 2), C = x[0], T = x[1], E = Fn(f !== void 0 ? f : s), F = me(E, 2), Q = F[0], X = F[1], L =
|
|
5660
|
+
var e = t.defaultInputValue, r = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = t.defaultValue, s = a === void 0 ? null : a, o = t.inputValue, u = t.menuIsOpen, c = t.onChange, l = t.onInputChange, d = t.onMenuClose, p = t.onMenuOpen, f = t.value, v = Ne(t, Jd), b = Fn(o !== void 0 ? o : r), m = me(b, 2), I = m[0], y = m[1], w = Fn(u !== void 0 ? u : n), x = me(w, 2), C = x[0], T = x[1], E = Fn(f !== void 0 ? f : s), F = me(E, 2), Q = F[0], X = F[1], L = Wt(function(fe, Ie) {
|
|
5660
5661
|
typeof c == "function" && c(fe, Ie), X(fe);
|
|
5661
|
-
}, [c]), K =
|
|
5662
|
+
}, [c]), K = Wt(function(fe, Ie) {
|
|
5662
5663
|
var A;
|
|
5663
5664
|
typeof l == "function" && (A = l(fe, Ie)), y(A !== void 0 ? A : fe);
|
|
5664
|
-
}, [l]), $ =
|
|
5665
|
+
}, [l]), $ = Wt(function() {
|
|
5665
5666
|
typeof p == "function" && p(), T(!0);
|
|
5666
|
-
}, [p]), J =
|
|
5667
|
+
}, [p]), J = Wt(function() {
|
|
5667
5668
|
typeof d == "function" && d(), T(!1);
|
|
5668
5669
|
}, [d]), ee = o !== void 0 ? o : I, re = u !== void 0 ? u : C, de = f !== void 0 ? f : Q;
|
|
5669
5670
|
return k(k({}, v), {}, {
|
|
@@ -5708,9 +5709,9 @@ function _d(t) {
|
|
|
5708
5709
|
if (n && H[xe])
|
|
5709
5710
|
T(xe), J(xe), fe(H[xe]), X(!1), P(!1);
|
|
5710
5711
|
else {
|
|
5711
|
-
var
|
|
5712
|
+
var dn = f.current = {};
|
|
5712
5713
|
T(xe), X(!0), P(!$), Te(xe, function(Ye) {
|
|
5713
|
-
v &&
|
|
5714
|
+
v && dn === f.current && (f.current = void 0, X(!1), J(xe), fe(Ye || []), P(!1), V(Ye ? k(k({}, H), {}, te({}, xe, Ye)) : H));
|
|
5714
5715
|
});
|
|
5715
5716
|
}
|
|
5716
5717
|
}, [n, Te, $, H, u]), Tt = R ? [] : C && $ ? de : I || [];
|
|
@@ -5775,7 +5776,7 @@ function nf() {
|
|
|
5775
5776
|
}
|
|
5776
5777
|
var rf = nf();
|
|
5777
5778
|
const Ke = /* @__PURE__ */ wt(rf);
|
|
5778
|
-
var
|
|
5779
|
+
var Nt = { exports: {} };
|
|
5779
5780
|
var Vn, No;
|
|
5780
5781
|
function of() {
|
|
5781
5782
|
if (No) return Vn;
|
|
@@ -6253,16 +6254,16 @@ function uf() {
|
|
|
6253
6254
|
}
|
|
6254
6255
|
var Lo;
|
|
6255
6256
|
function cf() {
|
|
6256
|
-
if (Lo) return
|
|
6257
|
+
if (Lo) return Nt.exports;
|
|
6257
6258
|
if (Lo = 1, process.env.NODE_ENV !== "production") {
|
|
6258
6259
|
var t = dr(), e = !0;
|
|
6259
|
-
|
|
6260
|
+
Nt.exports = /* @__PURE__ */ sf()(t.isElement, e);
|
|
6260
6261
|
} else
|
|
6261
|
-
|
|
6262
|
-
return
|
|
6262
|
+
Nt.exports = /* @__PURE__ */ uf()();
|
|
6263
|
+
return Nt.exports;
|
|
6263
6264
|
}
|
|
6264
6265
|
var lf = /* @__PURE__ */ cf();
|
|
6265
|
-
const Z = /* @__PURE__ */ wt(lf), yr = window.React.createRef,
|
|
6266
|
+
const Z = /* @__PURE__ */ wt(lf), yr = window.React.createRef, tn = window.React.createElement, wr = window.React.Component, df = window.React.createContext, xr = window.ReactDOM.findDOMNode;
|
|
6266
6267
|
var ff = (function() {
|
|
6267
6268
|
function t() {
|
|
6268
6269
|
ut(this, t), te(this, "refs", {});
|
|
@@ -6327,12 +6328,12 @@ var nt = {
|
|
|
6327
6328
|
var t = window.getComputedStyle(document.documentElement, "") || ["-moz-hidden-iframe"], e = (Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/) || t.OLink === "" && ["", "o"])[1];
|
|
6328
6329
|
return e === "ms" ? "ms" : e && e.length ? e[0].toUpperCase() + e.substr(1) : "";
|
|
6329
6330
|
})();
|
|
6330
|
-
function
|
|
6331
|
+
function Dt(t, e) {
|
|
6331
6332
|
Object.keys(e).forEach(function(r) {
|
|
6332
6333
|
t.style[r] = e[r];
|
|
6333
6334
|
});
|
|
6334
6335
|
}
|
|
6335
|
-
function
|
|
6336
|
+
function Mt(t, e) {
|
|
6336
6337
|
t.style["".concat(oa, "Transform")] = e == null ? "" : "translate3d(".concat(e.x, "px,").concat(e.y, "px,0)");
|
|
6337
6338
|
}
|
|
6338
6339
|
function Hn(t, e) {
|
|
@@ -6387,7 +6388,7 @@ function mt(t) {
|
|
|
6387
6388
|
function hf(t) {
|
|
6388
6389
|
return t.touches && t.touches.length || t.changedTouches && t.changedTouches.length;
|
|
6389
6390
|
}
|
|
6390
|
-
function
|
|
6391
|
+
function Yt(t, e) {
|
|
6391
6392
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6392
6393
|
left: 0,
|
|
6393
6394
|
top: 0
|
|
@@ -6397,7 +6398,7 @@ function Jt(t, e) {
|
|
|
6397
6398
|
left: r.left + t.offsetLeft,
|
|
6398
6399
|
top: r.top + t.offsetTop
|
|
6399
6400
|
};
|
|
6400
|
-
return t.parentNode === e ? i :
|
|
6401
|
+
return t.parentNode === e ? i : Yt(t.parentNode, e, i);
|
|
6401
6402
|
}
|
|
6402
6403
|
}
|
|
6403
6404
|
function mf(t, e, r) {
|
|
@@ -6477,13 +6478,13 @@ function wf(t) {
|
|
|
6477
6478
|
withRef: !1
|
|
6478
6479
|
};
|
|
6479
6480
|
return r = e = (function(n) {
|
|
6480
|
-
|
|
6481
|
+
rn(a, n);
|
|
6481
6482
|
function a() {
|
|
6482
6483
|
var s, o;
|
|
6483
6484
|
ut(this, a);
|
|
6484
6485
|
for (var u = arguments.length, c = new Array(u), l = 0; l < u; l++)
|
|
6485
6486
|
c[l] = arguments[l];
|
|
6486
|
-
return o =
|
|
6487
|
+
return o = on(this, (s = Qe(a)).call.apply(s, [this].concat(c))), te(U(U(o)), "wrappedInstance", yr()), o;
|
|
6487
6488
|
}
|
|
6488
6489
|
return ct(a, [{
|
|
6489
6490
|
key: "componentDidMount",
|
|
@@ -6500,7 +6501,7 @@ function wf(t) {
|
|
|
6500
6501
|
key: "render",
|
|
6501
6502
|
value: function() {
|
|
6502
6503
|
var o = i.withRef ? this.wrappedInstance : null;
|
|
6503
|
-
return
|
|
6504
|
+
return tn(t, N({
|
|
6504
6505
|
ref: o
|
|
6505
6506
|
}, this.props));
|
|
6506
6507
|
}
|
|
@@ -6628,10 +6629,10 @@ function ca(t) {
|
|
|
6628
6629
|
withRef: !1
|
|
6629
6630
|
};
|
|
6630
6631
|
return r = e = (function(n) {
|
|
6631
|
-
|
|
6632
|
+
rn(a, n);
|
|
6632
6633
|
function a(s) {
|
|
6633
6634
|
var o;
|
|
6634
|
-
ut(this, a), o =
|
|
6635
|
+
ut(this, a), o = on(this, Qe(a).call(this, s)), te(U(U(o)), "state", {}), te(U(U(o)), "handleStart", function(c) {
|
|
6635
6636
|
var l = o.props, d = l.distance, p = l.shouldCancelStart;
|
|
6636
6637
|
if (!(c.button === 2 || p(c))) {
|
|
6637
6638
|
o.touched = !0, o.position = mt(c);
|
|
@@ -6682,7 +6683,7 @@ function ca(t) {
|
|
|
6682
6683
|
}, o.boundingClientRect = C.getBoundingClientRect(), o.containerBoundingRect = $, o.index = X, o.newIndex = X, o.axis = {
|
|
6683
6684
|
x: v.indexOf("x") >= 0,
|
|
6684
6685
|
y: v.indexOf("y") >= 0
|
|
6685
|
-
}, o.offsetEdge =
|
|
6686
|
+
}, o.offsetEdge = Yt(C, o.container), E ? o.initialOffset = mt(On({}, c, {
|
|
6686
6687
|
pageX: o.boundingClientRect.left,
|
|
6687
6688
|
pageY: o.boundingClientRect.top
|
|
6688
6689
|
})) : o.initialOffset = mt(c), o.initialScroll = {
|
|
@@ -6691,7 +6692,7 @@ function ca(t) {
|
|
|
6691
6692
|
}, o.initialWindowScroll = {
|
|
6692
6693
|
left: window.pageXOffset,
|
|
6693
6694
|
top: window.pageYOffset
|
|
6694
|
-
}, o.helper = o.helperContainer.appendChild(yf(C)),
|
|
6695
|
+
}, o.helper = o.helperContainer.appendChild(yf(C)), Dt(o.helper, {
|
|
6695
6696
|
boxSizing: "border-box",
|
|
6696
6697
|
height: "".concat(o.height, "px"),
|
|
6697
6698
|
left: "".concat(o.boundingClientRect.left - L.left, "px"),
|
|
@@ -6699,7 +6700,7 @@ function ca(t) {
|
|
|
6699
6700
|
position: "fixed",
|
|
6700
6701
|
top: "".concat(o.boundingClientRect.top - L.top, "px"),
|
|
6701
6702
|
width: "".concat(o.width, "px")
|
|
6702
|
-
}), E && o.helper.focus(), I && (o.sortableGhost = C,
|
|
6703
|
+
}), E && o.helper.focus(), I && (o.sortableGhost = C, Dt(C, {
|
|
6703
6704
|
opacity: 0,
|
|
6704
6705
|
visibility: "hidden"
|
|
6705
6706
|
})), o.minTranslate = {}, o.maxTranslate = {}, E) {
|
|
@@ -6766,13 +6767,13 @@ function ca(t) {
|
|
|
6766
6767
|
return o.listenerNode.removeEventListener(C, o.handleSortMove);
|
|
6767
6768
|
}), nt.end.forEach(function(C) {
|
|
6768
6769
|
return o.listenerNode.removeEventListener(C, o.handleSortEnd);
|
|
6769
|
-
}))), o.helper.parentNode.removeChild(o.helper), d && o.sortableGhost &&
|
|
6770
|
+
}))), o.helper.parentNode.removeChild(o.helper), d && o.sortableGhost && Dt(o.sortableGhost, {
|
|
6770
6771
|
opacity: "",
|
|
6771
6772
|
visibility: ""
|
|
6772
6773
|
});
|
|
6773
6774
|
for (var I = 0, y = m.length; I < y; I++) {
|
|
6774
6775
|
var w = m[I], x = w.node;
|
|
6775
|
-
w.edgeOffset = null, w.boundingClientRect = null,
|
|
6776
|
+
w.edgeOffset = null, w.boundingClientRect = null, Mt(x, null), Hn(x, null), w.translate = null;
|
|
6776
6777
|
}
|
|
6777
6778
|
o.autoScroller.clear(), o.manager.active = null, o.manager.isKeySorting = !1, o.setState({
|
|
6778
6779
|
sorting: !1,
|
|
@@ -6792,7 +6793,7 @@ function ca(t) {
|
|
|
6792
6793
|
}
|
|
6793
6794
|
if (l) {
|
|
6794
6795
|
var d = On({}, o.translate), p = 0, f = 0;
|
|
6795
|
-
o.axis.x && (d.x = Math.min(o.maxTranslate.x, Math.max(o.minTranslate.x, o.translate.x)), p = o.translate.x - d.x), o.axis.y && (d.y = Math.min(o.maxTranslate.y, Math.max(o.minTranslate.y, o.translate.y)), f = o.translate.y - d.y), o.translate = d,
|
|
6796
|
+
o.axis.x && (d.x = Math.min(o.maxTranslate.x, Math.max(o.minTranslate.x, o.translate.x)), p = o.translate.x - d.x), o.axis.y && (d.y = Math.min(o.maxTranslate.y, Math.max(o.minTranslate.y, o.translate.y)), f = o.translate.y - d.y), o.translate = d, Mt(o.helper, o.translate), o.scrollContainer.scrollLeft += p, o.scrollContainer.scrollTop += f;
|
|
6796
6797
|
return;
|
|
6797
6798
|
}
|
|
6798
6799
|
o.autoScroller.update({
|
|
@@ -6902,7 +6903,7 @@ function ca(t) {
|
|
|
6902
6903
|
};
|
|
6903
6904
|
y.x = jo(this.minTranslate.x + E.x, this.maxTranslate.x - F.x, y.x), y.y = jo(this.minTranslate.y + E.y, this.maxTranslate.y - F.y, y.y);
|
|
6904
6905
|
}
|
|
6905
|
-
c === "x" ? y.y = 0 : c === "y" && (y.x = 0), b && v && !m && Hn(this.helper, v),
|
|
6906
|
+
c === "x" ? y.y = 0 : c === "y" && (y.x = 0), b && v && !m && Hn(this.helper, v), Mt(this.helper, y);
|
|
6906
6907
|
}
|
|
6907
6908
|
}, {
|
|
6908
6909
|
key: "animateNodes",
|
|
@@ -6920,16 +6921,16 @@ function ca(t) {
|
|
|
6920
6921
|
x: 0,
|
|
6921
6922
|
y: 0
|
|
6922
6923
|
}, L = f[I].edgeOffset;
|
|
6923
|
-
L || (L =
|
|
6924
|
+
L || (L = Yt(w, this.container), f[I].edgeOffset = L, b && (f[I].boundingClientRect = Zn(w, d)));
|
|
6924
6925
|
var K = I < f.length - 1 && f[I + 1], $ = I > 0 && f[I - 1];
|
|
6925
|
-
if (K && !K.edgeOffset && (K.edgeOffset =
|
|
6926
|
-
c && (this.sortableGhost = w,
|
|
6926
|
+
if (K && !K.edgeOffset && (K.edgeOffset = Yt(K.node, this.container), b && (K.boundingClientRect = Zn(K.node, d))), x === this.index) {
|
|
6927
|
+
c && (this.sortableGhost = w, Dt(w, {
|
|
6927
6928
|
opacity: 0,
|
|
6928
6929
|
visibility: "hidden"
|
|
6929
6930
|
}));
|
|
6930
6931
|
continue;
|
|
6931
6932
|
}
|
|
6932
|
-
u && Hn(w, u), this.axis.x ? this.axis.y ? Q || x < this.index && (v.left + p.left - E.width <= L.left && v.top + p.top <= L.top + E.height || v.top + p.top + E.height <= L.top) ? (X.x = this.width + this.marginOffset.x, L.left + X.x > this.containerBoundingRect.width - E.width && K && (X.x = K.edgeOffset.left - L.left, X.y = K.edgeOffset.top - L.top), this.newIndex === null && (this.newIndex = x)) : (F || x > this.index && (v.left + p.left + E.width >= L.left && v.top + p.top + E.height >= L.top || v.top + p.top + E.height >= L.top + T)) && (X.x = -(this.width + this.marginOffset.x), L.left + X.x < this.containerBoundingRect.left + E.width && $ && (X.x = $.edgeOffset.left - L.left, X.y = $.edgeOffset.top - L.top), this.newIndex = x) : F || x > this.index && v.left + p.left + E.width >= L.left ? (X.x = -(this.width + this.marginOffset.x), this.newIndex = x) : (Q || x < this.index && v.left + p.left <= L.left + E.width) && (X.x = this.width + this.marginOffset.x, this.newIndex == null && (this.newIndex = x)) : this.axis.y && (F || x > this.index && v.top + p.top + E.height >= L.top ? (X.y = -(this.height + this.marginOffset.y), this.newIndex = x) : (Q || x < this.index && v.top + p.top <= L.top + E.height) && (X.y = this.height + this.marginOffset.y, this.newIndex == null && (this.newIndex = x))),
|
|
6933
|
+
u && Hn(w, u), this.axis.x ? this.axis.y ? Q || x < this.index && (v.left + p.left - E.width <= L.left && v.top + p.top <= L.top + E.height || v.top + p.top + E.height <= L.top) ? (X.x = this.width + this.marginOffset.x, L.left + X.x > this.containerBoundingRect.width - E.width && K && (X.x = K.edgeOffset.left - L.left, X.y = K.edgeOffset.top - L.top), this.newIndex === null && (this.newIndex = x)) : (F || x > this.index && (v.left + p.left + E.width >= L.left && v.top + p.top + E.height >= L.top || v.top + p.top + E.height >= L.top + T)) && (X.x = -(this.width + this.marginOffset.x), L.left + X.x < this.containerBoundingRect.left + E.width && $ && (X.x = $.edgeOffset.left - L.left, X.y = $.edgeOffset.top - L.top), this.newIndex = x) : F || x > this.index && v.left + p.left + E.width >= L.left ? (X.x = -(this.width + this.marginOffset.x), this.newIndex = x) : (Q || x < this.index && v.left + p.left <= L.left + E.width) && (X.x = this.width + this.marginOffset.x, this.newIndex == null && (this.newIndex = x)) : this.axis.y && (F || x > this.index && v.top + p.top + E.height >= L.top ? (X.y = -(this.height + this.marginOffset.y), this.newIndex = x) : (Q || x < this.index && v.top + p.top <= L.top + E.height) && (X.y = this.height + this.marginOffset.y, this.newIndex == null && (this.newIndex = x))), Mt(w, X), f[I].translate = X;
|
|
6933
6934
|
}
|
|
6934
6935
|
this.newIndex == null && (this.newIndex = this.index), b && (this.newIndex = m);
|
|
6935
6936
|
var J = b ? this.prevIndex : m;
|
|
@@ -6958,9 +6959,9 @@ function ca(t) {
|
|
|
6958
6959
|
key: "render",
|
|
6959
6960
|
value: function() {
|
|
6960
6961
|
var o = i.withRef ? this.wrappedInstance : null;
|
|
6961
|
-
return
|
|
6962
|
+
return tn(ua.Provider, {
|
|
6962
6963
|
value: this.sortableContextValue
|
|
6963
|
-
},
|
|
6964
|
+
}, tn(t, N({
|
|
6964
6965
|
ref: o
|
|
6965
6966
|
}, ra(this.props, Tf))));
|
|
6966
6967
|
}
|
|
@@ -7003,13 +7004,13 @@ function Pf(t) {
|
|
|
7003
7004
|
withRef: !1
|
|
7004
7005
|
};
|
|
7005
7006
|
return r = e = (function(n) {
|
|
7006
|
-
|
|
7007
|
+
rn(a, n);
|
|
7007
7008
|
function a() {
|
|
7008
7009
|
var s, o;
|
|
7009
7010
|
ut(this, a);
|
|
7010
7011
|
for (var u = arguments.length, c = new Array(u), l = 0; l < u; l++)
|
|
7011
7012
|
c[l] = arguments[l];
|
|
7012
|
-
return o =
|
|
7013
|
+
return o = on(this, (s = Qe(a)).call.apply(s, [this].concat(c))), te(U(U(o)), "wrappedInstance", yr()), o;
|
|
7013
7014
|
}
|
|
7014
7015
|
return ct(a, [{
|
|
7015
7016
|
key: "componentDidMount",
|
|
@@ -7054,7 +7055,7 @@ function Pf(t) {
|
|
|
7054
7055
|
key: "render",
|
|
7055
7056
|
value: function() {
|
|
7056
7057
|
var o = i.withRef ? this.wrappedInstance : null;
|
|
7057
|
-
return
|
|
7058
|
+
return tn(t, N({
|
|
7058
7059
|
ref: o
|
|
7059
7060
|
}, ra(this.props, Gf)));
|
|
7060
7061
|
}
|
|
@@ -7089,7 +7090,7 @@ const da = Pf((t) => {
|
|
|
7089
7090
|
...t
|
|
7090
7091
|
}
|
|
7091
7092
|
);
|
|
7092
|
-
},
|
|
7093
|
+
}, wg = (t) => {
|
|
7093
7094
|
const e = ca(ta);
|
|
7094
7095
|
return /* @__PURE__ */ h.jsx(
|
|
7095
7096
|
e,
|
|
@@ -7349,7 +7350,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7349
7350
|
value: t + i + 1,
|
|
7350
7351
|
label: ""
|
|
7351
7352
|
}))
|
|
7352
|
-
],
|
|
7353
|
+
], Xt = ({ label: t, max: e, min: r, value: i, onChange: n, disabled: a, tooltip: s, ...o }) => /* @__PURE__ */ h.jsx("div", { className: "bc-spacing-control-wrapper", children: /* @__PURE__ */ h.jsx(
|
|
7353
7354
|
jf,
|
|
7354
7355
|
{
|
|
7355
7356
|
text: s,
|
|
@@ -7399,7 +7400,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7399
7400
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
7400
7401
|
t && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
7401
7402
|
/* @__PURE__ */ h.jsx(
|
|
7402
|
-
|
|
7403
|
+
Xt,
|
|
7403
7404
|
{
|
|
7404
7405
|
label: "Top Margin",
|
|
7405
7406
|
max: s,
|
|
@@ -7413,7 +7414,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7413
7414
|
}
|
|
7414
7415
|
),
|
|
7415
7416
|
/* @__PURE__ */ h.jsx(
|
|
7416
|
-
|
|
7417
|
+
Xt,
|
|
7417
7418
|
{
|
|
7418
7419
|
label: "Bottom Margin",
|
|
7419
7420
|
max: s,
|
|
@@ -7429,7 +7430,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7429
7430
|
] }),
|
|
7430
7431
|
e && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
7431
7432
|
/* @__PURE__ */ h.jsx(
|
|
7432
|
-
|
|
7433
|
+
Xt,
|
|
7433
7434
|
{
|
|
7434
7435
|
label: "Top Padding",
|
|
7435
7436
|
max: s,
|
|
@@ -7443,7 +7444,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7443
7444
|
}
|
|
7444
7445
|
),
|
|
7445
7446
|
/* @__PURE__ */ h.jsx(
|
|
7446
|
-
|
|
7447
|
+
Xt,
|
|
7447
7448
|
{
|
|
7448
7449
|
label: "Bottom Padding",
|
|
7449
7450
|
max: s,
|
|
@@ -7458,7 +7459,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7458
7459
|
)
|
|
7459
7460
|
] })
|
|
7460
7461
|
] });
|
|
7461
|
-
}, zf = window.wp.components.TabPanel, $o = window.wp.element.useCallback, _f = window.wp.element.useEffect, $f = window.wp.element.useState, Uo = (t = "Desktop") => t === "Desktop" ? "desktop" : "mobile",
|
|
7462
|
+
}, zf = window.wp.components.TabPanel, $o = window.wp.element.useCallback, _f = window.wp.element.useEffect, $f = window.wp.element.useState, Uo = (t = "Desktop") => t === "Desktop" ? "desktop" : "mobile", xg = ({
|
|
7462
7463
|
max: t = 6,
|
|
7463
7464
|
min: e = -1,
|
|
7464
7465
|
hasMargin: r = !0,
|
|
@@ -7542,7 +7543,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7542
7543
|
instructions: e,
|
|
7543
7544
|
...r
|
|
7544
7545
|
}
|
|
7545
|
-
),
|
|
7546
|
+
), Ag = ({
|
|
7546
7547
|
isLoading: t,
|
|
7547
7548
|
isEmptyResources: e,
|
|
7548
7549
|
isEmptySelection: r,
|
|
@@ -7551,7 +7552,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7551
7552
|
emptySelectionMessage: a,
|
|
7552
7553
|
placeholderProps: s = {},
|
|
7553
7554
|
children: o
|
|
7554
|
-
}) => t ? /* @__PURE__ */ h.jsx(tp, {}) : r ? /* @__PURE__ */ h.jsx(Qo, { message: a || ep }) : e ? /* @__PURE__ */ h.jsx(Qo, { message: n || qf }) : i ? /* @__PURE__ */ h.jsx(np, { ...s }) : o, Ko = window.wp.components.SelectControl, rp = window.wp.components.ToggleControl, op = window.wp.element.useEffect, Ln = window.wp.element.useState,
|
|
7555
|
+
}) => t ? /* @__PURE__ */ h.jsx(tp, {}) : r ? /* @__PURE__ */ h.jsx(Qo, { message: a || ep }) : e ? /* @__PURE__ */ h.jsx(Qo, { message: n || qf }) : i ? /* @__PURE__ */ h.jsx(np, { ...s }) : o, Ko = window.wp.components.SelectControl, rp = window.wp.components.ToggleControl, op = window.wp.element.useEffect, Ln = window.wp.element.useState, Eg = ({
|
|
7555
7556
|
topDividers: t = [],
|
|
7556
7557
|
bottomDividers: e = [],
|
|
7557
7558
|
value: r = { topDivider: "", bottomDivider: "", isIncludeLine: !1 },
|
|
@@ -7605,7 +7606,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7605
7606
|
}
|
|
7606
7607
|
)
|
|
7607
7608
|
] });
|
|
7608
|
-
}, ip = window.wp.element.useMemo, ap = window.wp.components.SelectControl,
|
|
7609
|
+
}, ip = window.wp.element.useMemo, ap = window.wp.components.SelectControl, Sg = (t) => {
|
|
7609
7610
|
const {
|
|
7610
7611
|
types: e = [ke.IMAGE, ke.VIDEO],
|
|
7611
7612
|
selectedType: r,
|
|
@@ -7645,7 +7646,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7645
7646
|
}
|
|
7646
7647
|
)
|
|
7647
7648
|
] });
|
|
7648
|
-
}, sp = window.wp.blockEditor.BlockControls, qo = window.wp.data.select, up = window.wp.data.useDispatch, ei = window.wp.blocks.createBlock, ti = window.wp.element.useCallback, cp = window.wp.components.Toolbar, ni = window.wp.components.ToolbarButton,
|
|
7649
|
+
}, sp = window.wp.blockEditor.BlockControls, qo = window.wp.data.select, up = window.wp.data.useDispatch, ei = window.wp.blocks.createBlock, ti = window.wp.element.useCallback, cp = window.wp.components.Toolbar, ni = window.wp.components.ToolbarButton, Tg = ({ clientId: t, blockName: e, group: r }) => {
|
|
7649
7650
|
const { insertBlock: i } = up("core/block-editor"), n = ti(() => {
|
|
7650
7651
|
const s = ei(e);
|
|
7651
7652
|
i(s, qo("core/block-editor").getBlockIndex(t));
|
|
@@ -7671,7 +7672,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7671
7672
|
}
|
|
7672
7673
|
)
|
|
7673
7674
|
] }) });
|
|
7674
|
-
},
|
|
7675
|
+
}, lp = window.wp.components.BaseControl, dp = window.wp.components.FocalPointPicker, jn = window.wp.element.useCallback, fp = window.wp.element.memo, Rg = fp(({
|
|
7675
7676
|
attributes: t,
|
|
7676
7677
|
setAttributes: e,
|
|
7677
7678
|
mediaAttributeName: r = "media",
|
|
@@ -7691,7 +7692,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7691
7692
|
},
|
|
7692
7693
|
[i]: { x: 0.5, y: 0.5 }
|
|
7693
7694
|
});
|
|
7694
|
-
}, [r]), d = jn(() => {
|
|
7695
|
+
}, [r, i]), d = jn(() => {
|
|
7695
7696
|
e({
|
|
7696
7697
|
[r]: {
|
|
7697
7698
|
id: null,
|
|
@@ -7701,7 +7702,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7701
7702
|
});
|
|
7702
7703
|
}, [r]);
|
|
7703
7704
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
7704
|
-
/* @__PURE__ */ h.jsx(
|
|
7705
|
+
/* @__PURE__ */ h.jsx(lp, { label: n, children: /* @__PURE__ */ h.jsx(
|
|
7705
7706
|
li,
|
|
7706
7707
|
{
|
|
7707
7708
|
type: ke.IMAGE,
|
|
@@ -7712,42 +7713,43 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7712
7713
|
...s
|
|
7713
7714
|
}
|
|
7714
7715
|
) }),
|
|
7715
|
-
o?.url && /* @__PURE__ */ h.jsx(
|
|
7716
|
-
|
|
7716
|
+
o?.url && /* @__PURE__ */ h.jsx(
|
|
7717
|
+
dp,
|
|
7717
7718
|
{
|
|
7718
7719
|
__nextHasNoMarginBottom: !0,
|
|
7720
|
+
label: a,
|
|
7719
7721
|
url: o.url,
|
|
7720
7722
|
value: u,
|
|
7721
7723
|
onDragStart: c,
|
|
7722
7724
|
onDrag: c,
|
|
7723
7725
|
onChange: c
|
|
7724
7726
|
}
|
|
7725
|
-
)
|
|
7727
|
+
)
|
|
7726
7728
|
] });
|
|
7727
|
-
}),
|
|
7728
|
-
const r =
|
|
7729
|
+
}), pp = window.wp.data.useDispatch, gp = window.wp.data.useSelect, bp = window.wp.data.select, hp = window.wp.blocks.cloneBlock, mp = window.wp.blocks.createBlock, ri = window.wp.blocks.rawHandler, vp = window.wp.components.Button, Ip = window.wp.components.Modal, Cp = window.wp.components.TextControl, oi = window.wp.element.useMemo, ii = window.wp.element.useState, yp = window.wp.blockEditor.__experimentalBlockPatternsList, wp = ({ onClose: t, rootClientId: e }) => {
|
|
7730
|
+
const r = gp(
|
|
7729
7731
|
(f) => f("core/block-editor").__experimentalGetAllowedPatterns?.(e),
|
|
7730
7732
|
[e]
|
|
7731
|
-
), { insertBlocks: i } =
|
|
7733
|
+
), { insertBlocks: i } = pp("core/block-editor"), n = bp("core/block-editor").getBlockOrder, [a, s] = ii(""), [o, u] = ii("all"), c = oi(() => (r || []).map((f, v) => ({
|
|
7732
7734
|
...f,
|
|
7733
7735
|
name: typeof f?.name == "string" ? f.name : `pattern-${v}`,
|
|
7734
7736
|
title: typeof f?.title == "string" ? f.title : f?.title?.rendered || `Pattern ${v + 1}`,
|
|
7735
|
-
blocks: Array.isArray(f?.blocks) ? f.blocks : typeof f?.content == "string" ?
|
|
7737
|
+
blocks: Array.isArray(f?.blocks) ? f.blocks : typeof f?.content == "string" ? ri({ HTML: f.content }) : []
|
|
7736
7738
|
})), [r]), l = [
|
|
7737
7739
|
{ name: "all", label: "All Patterns" },
|
|
7738
7740
|
...Array.from(new Set(c.flatMap((f) => f.categories || []))).map((f) => ({
|
|
7739
7741
|
name: f,
|
|
7740
7742
|
label: f
|
|
7741
7743
|
}))
|
|
7742
|
-
], d =
|
|
7744
|
+
], d = oi(() => c.filter((f) => {
|
|
7743
7745
|
const v = !a || (f.title || "").toLowerCase().includes(a.toLowerCase()), b = o === "all" || (f.categories || []).includes(o);
|
|
7744
7746
|
return v && b;
|
|
7745
7747
|
}), [c, a, o]), p = (f) => {
|
|
7746
|
-
const b = f?.type === "user" && f?.syncStatus !== "unsynced" && !!f?.id ? [
|
|
7748
|
+
const b = f?.type === "user" && f?.syncStatus !== "unsynced" && !!f?.id ? [mp("core/block", { ref: f.id })] : Array.isArray(f.blocks) ? f.blocks.map((x) => hp(x)) : typeof f.content == "string" ? ri({ HTML: f.content }) : [], m = e != null, I = m ? e : void 0, y = m ? n(I) : n(), w = Array.isArray(y) ? y.length : 0;
|
|
7747
7749
|
i(b, w, I), t();
|
|
7748
7750
|
};
|
|
7749
7751
|
return /* @__PURE__ */ h.jsx(
|
|
7750
|
-
|
|
7752
|
+
Ip,
|
|
7751
7753
|
{
|
|
7752
7754
|
title: "Patterns",
|
|
7753
7755
|
onRequestClose: t,
|
|
@@ -7755,7 +7757,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7755
7757
|
children: /* @__PURE__ */ h.jsxs("div", { className: "block-editor-block-patterns-explorer", children: [
|
|
7756
7758
|
/* @__PURE__ */ h.jsxs("div", { className: "block-editor-block-patterns-explorer__sidebar", children: [
|
|
7757
7759
|
/* @__PURE__ */ h.jsx("div", { className: "block-editor-block-patterns-explorer__search", children: /* @__PURE__ */ h.jsx(
|
|
7758
|
-
|
|
7760
|
+
Cp,
|
|
7759
7761
|
{
|
|
7760
7762
|
__nextHasNoMarginBottom: !0,
|
|
7761
7763
|
value: a,
|
|
@@ -7766,7 +7768,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7766
7768
|
}
|
|
7767
7769
|
) }),
|
|
7768
7770
|
!a && /* @__PURE__ */ h.jsx("div", { className: "block-editor-block-patterns-explorer__sidebar__categories-list", children: l.map(({ name: f, label: v }) => /* @__PURE__ */ h.jsx(
|
|
7769
|
-
|
|
7771
|
+
vp,
|
|
7770
7772
|
{
|
|
7771
7773
|
__next40pxDefaultSize: !0,
|
|
7772
7774
|
label: v,
|
|
@@ -7785,7 +7787,7 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7785
7787
|
d.length === 1 ? "pattern found" : "patterns found"
|
|
7786
7788
|
] }),
|
|
7787
7789
|
/* @__PURE__ */ h.jsx(
|
|
7788
|
-
|
|
7790
|
+
yp,
|
|
7789
7791
|
{
|
|
7790
7792
|
blockPatterns: d,
|
|
7791
7793
|
onClickPattern: p,
|
|
@@ -7796,19 +7798,19 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7796
7798
|
] })
|
|
7797
7799
|
}
|
|
7798
7800
|
);
|
|
7799
|
-
},
|
|
7800
|
-
const { render: e, rootClientId: r } = t, [i, n] =
|
|
7801
|
+
}, xp = window.wp.element.useState, ga = (t) => {
|
|
7802
|
+
const { render: e, rootClientId: r } = t, [i, n] = xp(!1);
|
|
7801
7803
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
7802
7804
|
e({ isModalOpen: i, setModalOpen: n }),
|
|
7803
7805
|
i && /* @__PURE__ */ h.jsx(
|
|
7804
|
-
|
|
7806
|
+
wp,
|
|
7805
7807
|
{
|
|
7806
7808
|
onClose: () => n(!1),
|
|
7807
7809
|
rootClientId: r
|
|
7808
7810
|
}
|
|
7809
7811
|
)
|
|
7810
7812
|
] });
|
|
7811
|
-
},
|
|
7813
|
+
}, Ap = window.wp.blockEditor.InnerBlocks, Ep = window.wp.components.Button, Bg = (t) => {
|
|
7812
7814
|
const {
|
|
7813
7815
|
title: e = "This block is empty",
|
|
7814
7816
|
text: r = 'Use the "+" button below to add content blocks',
|
|
@@ -7826,19 +7828,19 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7826
7828
|
/* @__PURE__ */ h.jsx("p", { className: "empty-block-placeholder__text", children: r })
|
|
7827
7829
|
] }),
|
|
7828
7830
|
/* @__PURE__ */ h.jsxs("div", { className: "empty-block-placeholder__buttons-wrapper", children: [
|
|
7829
|
-
n && /* @__PURE__ */ h.jsx("div", { className: "empty-block-placeholder__button", children: /* @__PURE__ */ h.jsx(
|
|
7831
|
+
n && /* @__PURE__ */ h.jsx("div", { className: "empty-block-placeholder__button", children: /* @__PURE__ */ h.jsx(Ap.ButtonBlockAppender, {}) }),
|
|
7830
7832
|
a && /* @__PURE__ */ h.jsx("div", { className: "empty-block-placeholder__button", children: /* @__PURE__ */ h.jsx(
|
|
7831
7833
|
ga,
|
|
7832
7834
|
{
|
|
7833
7835
|
render: ({ setModalOpen: c }) => /* @__PURE__ */ h.jsx(
|
|
7834
|
-
|
|
7836
|
+
Ep,
|
|
7835
7837
|
{
|
|
7836
7838
|
__next40pxDefaultSize: !0,
|
|
7837
7839
|
className: "block-editor-button-block-appender",
|
|
7838
7840
|
onClick: () => c(!0),
|
|
7839
7841
|
label: "Add Pattern",
|
|
7840
7842
|
showTooltip: !0,
|
|
7841
|
-
children: /* @__PURE__ */ h.jsx(
|
|
7843
|
+
children: /* @__PURE__ */ h.jsx(Jt, { icon: rs })
|
|
7842
7844
|
}
|
|
7843
7845
|
),
|
|
7844
7846
|
rootClientId: s
|
|
@@ -7846,8 +7848,8 @@ const Lf = window.wp.components.RangeControl, jf = window.wp.components.Tooltip,
|
|
|
7846
7848
|
) })
|
|
7847
7849
|
] })
|
|
7848
7850
|
] });
|
|
7849
|
-
},
|
|
7850
|
-
class
|
|
7851
|
+
}, Sp = window.wp.plugins.registerPlugin, Tp = window.wp.plugins.unregisterPlugin, Rp = window.wp.element.createPortal, Bp = window.wp.data.dispatch, Gp = window.wp.blocks.createBlock;
|
|
7852
|
+
class Gg {
|
|
7851
7853
|
name = "root-block-appender";
|
|
7852
7854
|
isRegistered = !1;
|
|
7853
7855
|
constructor(e = "ssm/section-wrapper", r = ["page", "post", "ssm_design_system"], i = "Add Row") {
|
|
@@ -7859,13 +7861,13 @@ class Sg {
|
|
|
7859
7861
|
console.error(`[${this.name}] - root container is not found.`);
|
|
7860
7862
|
return;
|
|
7861
7863
|
}
|
|
7862
|
-
|
|
7863
|
-
render: () =>
|
|
7864
|
+
Sp(this.name, {
|
|
7865
|
+
render: () => Rp(
|
|
7864
7866
|
/* @__PURE__ */ h.jsx(
|
|
7865
7867
|
"button",
|
|
7866
7868
|
{
|
|
7867
7869
|
className: "components-button block-editor-button-block-appender root-block-appender",
|
|
7868
|
-
onClick: () =>
|
|
7870
|
+
onClick: () => Bp("core/block-editor").insertBlock(Gp(this.rootBlockName)),
|
|
7869
7871
|
"aria-label": this.tooltipText,
|
|
7870
7872
|
"data-tooltip": this.tooltipText,
|
|
7871
7873
|
children: /* @__PURE__ */ h.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__ */ h.jsx("path", { d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z" }) })
|
|
@@ -7876,11 +7878,11 @@ class Sg {
|
|
|
7876
7878
|
}), this.isRegistered = !0;
|
|
7877
7879
|
}
|
|
7878
7880
|
unregister() {
|
|
7879
|
-
|
|
7881
|
+
Tp(this.name), this.isRegistered = !1;
|
|
7880
7882
|
}
|
|
7881
7883
|
}
|
|
7882
|
-
const
|
|
7883
|
-
class
|
|
7884
|
+
const Pp = window.wp.plugins.registerPlugin, Fp = window.wp.plugins.unregisterPlugin, Op = window.wp.element.createPortal;
|
|
7885
|
+
class Pg {
|
|
7884
7886
|
name = "root-pattern-appender";
|
|
7885
7887
|
isRegistered = !1;
|
|
7886
7888
|
constructor(e = ["page", "post", "ssm_design_system"], r = "Add Pattern") {
|
|
@@ -7892,8 +7894,8 @@ class Tg {
|
|
|
7892
7894
|
console.error(`[${this.name}] - root container is not found.`);
|
|
7893
7895
|
return;
|
|
7894
7896
|
}
|
|
7895
|
-
|
|
7896
|
-
render: () =>
|
|
7897
|
+
Pp(this.name, {
|
|
7898
|
+
render: () => Op(
|
|
7897
7899
|
/* @__PURE__ */ h.jsx(
|
|
7898
7900
|
ga,
|
|
7899
7901
|
{
|
|
@@ -7915,33 +7917,33 @@ class Tg {
|
|
|
7915
7917
|
}), this.isRegistered = !0;
|
|
7916
7918
|
}
|
|
7917
7919
|
unregister() {
|
|
7918
|
-
|
|
7920
|
+
Fp(this.name), this.isRegistered = !1;
|
|
7919
7921
|
}
|
|
7920
7922
|
}
|
|
7921
7923
|
window.wp.data.select;
|
|
7922
7924
|
window.wp.data.subscribe;
|
|
7923
|
-
const
|
|
7925
|
+
const Fg = (t, e) => {
|
|
7924
7926
|
!t || !e || Fs().then(() => {
|
|
7925
7927
|
t?.forEach((r) => {
|
|
7926
7928
|
r.isRegistered && r.unregister(), r.postTypes.includes(e) && r.register();
|
|
7927
7929
|
});
|
|
7928
7930
|
});
|
|
7929
|
-
},
|
|
7930
|
-
class
|
|
7931
|
+
}, kp = window.wp.hooks.addFilter, Vp = window.wp.hooks.removeFilter, Wp = window.wp.blocks.getBlockTypes;
|
|
7932
|
+
class Og {
|
|
7931
7933
|
name = "ssm/hide-root-block-for-other";
|
|
7932
7934
|
isAdded = !1;
|
|
7933
7935
|
constructor(e = "ssm/section-wrapper", r = ["page", "post", "ssm_design_system", "wp_block"]) {
|
|
7934
7936
|
this.rootBlockName = e, this.postTypes = r;
|
|
7935
7937
|
}
|
|
7936
7938
|
add() {
|
|
7937
|
-
|
|
7939
|
+
kp(
|
|
7938
7940
|
"blocks.registerBlockType",
|
|
7939
7941
|
this.name,
|
|
7940
7942
|
(e, r) => {
|
|
7941
7943
|
const i = r === this.rootBlockName, n = r === "core/block", a = !!e?.allowedBlocks;
|
|
7942
7944
|
if (i || n || a)
|
|
7943
7945
|
return e;
|
|
7944
|
-
const s =
|
|
7946
|
+
const s = Wp()?.filter((o) => {
|
|
7945
7947
|
const u = o.name === this.rootBlockName, c = !!o?.parent;
|
|
7946
7948
|
return !u && !c;
|
|
7947
7949
|
})?.map((o) => o.name);
|
|
@@ -7950,31 +7952,31 @@ class Bg {
|
|
|
7950
7952
|
), this.isAdded = !0;
|
|
7951
7953
|
}
|
|
7952
7954
|
remove() {
|
|
7953
|
-
|
|
7955
|
+
Vp("blocks.registerBlockType", this.name), this.isAdded = !1;
|
|
7954
7956
|
}
|
|
7955
7957
|
}
|
|
7956
|
-
const
|
|
7957
|
-
class
|
|
7958
|
+
const Np = window.wp.compose.createHigherOrderComponent, Dp = window.wp.data.dispatch, Mp = window.wp.data.select, Xp = window.wp.data.useSelect, Hp = window.wp.element.useEffect, Zp = window.wp.hooks.addFilter, Lp = window.wp.hooks.removeFilter;
|
|
7959
|
+
class kg {
|
|
7958
7960
|
name = "ssm/inner-blocks-cleanup";
|
|
7959
7961
|
isAdded = !1;
|
|
7960
7962
|
constructor(e) {
|
|
7961
7963
|
this.blockName = e;
|
|
7962
7964
|
}
|
|
7963
7965
|
add() {
|
|
7964
|
-
|
|
7966
|
+
Zp(
|
|
7965
7967
|
"editor.BlockEdit",
|
|
7966
7968
|
this.name,
|
|
7967
|
-
|
|
7969
|
+
Np((e) => (r) => {
|
|
7968
7970
|
const { clientId: i, attributes: n, name: a } = r, { dataSource: s } = n;
|
|
7969
7971
|
if (a !== this.blockName)
|
|
7970
7972
|
return /* @__PURE__ */ h.jsx(e, { ...r });
|
|
7971
|
-
const o =
|
|
7973
|
+
const o = Xp(
|
|
7972
7974
|
(u) => u("core/block-editor").getBlock(i)?.innerBlocks || [],
|
|
7973
7975
|
[]
|
|
7974
7976
|
);
|
|
7975
|
-
return
|
|
7976
|
-
s !== "none" && o.length > 0 &&
|
|
7977
|
-
...
|
|
7977
|
+
return Hp(() => {
|
|
7978
|
+
s !== "none" && o.length > 0 && Dp("core/block-editor").updateBlock(i, {
|
|
7979
|
+
...Mp("core/block-editor").getBlock(i),
|
|
7978
7980
|
innerBlocks: []
|
|
7979
7981
|
});
|
|
7980
7982
|
}, [s, o.length]), /* @__PURE__ */ h.jsx(e, { ...r });
|
|
@@ -7983,18 +7985,18 @@ class Gg {
|
|
|
7983
7985
|
), this.isAdded = !0;
|
|
7984
7986
|
}
|
|
7985
7987
|
remove() {
|
|
7986
|
-
|
|
7988
|
+
Lp("editor.BlockEdit", this.name), this.isAdded = !1;
|
|
7987
7989
|
}
|
|
7988
7990
|
}
|
|
7989
|
-
const
|
|
7990
|
-
class
|
|
7991
|
+
const jp = window.wp.hooks.addFilter, Yp = window.wp.hooks.removeFilter;
|
|
7992
|
+
class Vg {
|
|
7991
7993
|
name = "ssm/set-root-block";
|
|
7992
7994
|
isAdded = !1;
|
|
7993
7995
|
constructor(e = "ssm/section-wrapper", r = ["page", "post", "ssm_design_system"]) {
|
|
7994
7996
|
this.rootBlockName = e, this.postTypes = r;
|
|
7995
7997
|
}
|
|
7996
7998
|
add() {
|
|
7997
|
-
|
|
7999
|
+
jp(
|
|
7998
8000
|
"blocks.registerBlockType",
|
|
7999
8001
|
this.name,
|
|
8000
8002
|
(e, r) => {
|
|
@@ -8005,18 +8007,37 @@ class Pg {
|
|
|
8005
8007
|
), this.isAdded = !0;
|
|
8006
8008
|
}
|
|
8007
8009
|
remove() {
|
|
8008
|
-
|
|
8010
|
+
Yp("blocks.registerBlockType", this.name), this.isAdded = !1;
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
const Jp = window.wp.data.subscribe, ai = window.wp.data.select, zp = window.wp.data.dispatch, _p = window.wp.blocks.createBlock;
|
|
8014
|
+
class Wg {
|
|
8015
|
+
name = "ssm/root-block-default";
|
|
8016
|
+
isAdded = !1;
|
|
8017
|
+
unsubscribe = null;
|
|
8018
|
+
constructor(e = "ssm/section-wrapper", r = ["page", "post", "ssm_design_system"]) {
|
|
8019
|
+
this.rootBlockName = e, this.postTypes = r;
|
|
8020
|
+
}
|
|
8021
|
+
add() {
|
|
8022
|
+
let e = ai("core/block-editor").getBlockCount();
|
|
8023
|
+
this.unsubscribe = Jp(() => {
|
|
8024
|
+
const r = ai("core/block-editor").getBlockCount();
|
|
8025
|
+
e > 0 && r === 0 && zp("core/block-editor").insertBlock(_p(this.rootBlockName)), e = r;
|
|
8026
|
+
}, "core/block-editor"), this.isAdded = !0;
|
|
8027
|
+
}
|
|
8028
|
+
remove() {
|
|
8029
|
+
this.unsubscribe?.(), this.unsubscribe = null, this.isAdded = !1;
|
|
8009
8030
|
}
|
|
8010
8031
|
}
|
|
8011
|
-
const
|
|
8012
|
-
class
|
|
8032
|
+
const $p = window.wp.hooks.addFilter, Up = window.wp.hooks.removeFilter;
|
|
8033
|
+
class Ng {
|
|
8013
8034
|
name = "ssm/block-categories";
|
|
8014
8035
|
isAdded = !1;
|
|
8015
8036
|
constructor(e = {}, r = ["page", "post", "ssm_design_system", "wp_block"]) {
|
|
8016
8037
|
this.categories = e, this.postTypes = r;
|
|
8017
8038
|
}
|
|
8018
8039
|
add() {
|
|
8019
|
-
|
|
8040
|
+
$p(
|
|
8020
8041
|
"blocks.registerBlockType",
|
|
8021
8042
|
"ssm/block-categories",
|
|
8022
8043
|
(e, r) => {
|
|
@@ -8037,78 +8058,79 @@ class Fg {
|
|
|
8037
8058
|
), this.isAdded = !0;
|
|
8038
8059
|
}
|
|
8039
8060
|
remove() {
|
|
8040
|
-
|
|
8061
|
+
Up("blocks.registerBlockType", this.name), this.isAdded = !1;
|
|
8041
8062
|
}
|
|
8042
8063
|
}
|
|
8043
|
-
const
|
|
8064
|
+
const Qp = window.wp.data.dispatch, Dg = (t, e, r) => {
|
|
8044
8065
|
!t || !e || t?.forEach((i) => {
|
|
8045
|
-
i.isAdded && i.remove(), i.postTypes.includes(e) && i.add(),
|
|
8066
|
+
i.isAdded && i.remove(), i.postTypes.includes(e) && i.add(), Qp("core/blocks").reapplyBlockTypeFilters(), r && r();
|
|
8046
8067
|
});
|
|
8047
8068
|
};
|
|
8048
8069
|
export {
|
|
8049
8070
|
tu as AnimationRenderer,
|
|
8050
|
-
|
|
8051
|
-
|
|
8071
|
+
Ng as BlockCategoriesFilter,
|
|
8072
|
+
ag as ColorPaletteControl,
|
|
8052
8073
|
Et as DataQueryControls,
|
|
8053
|
-
|
|
8074
|
+
Eg as DividersControl,
|
|
8054
8075
|
Qo as EmptyNotice,
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8076
|
+
Og as HideRootBlockForOtherFilter,
|
|
8077
|
+
sg as IconPicker,
|
|
8078
|
+
ug as ImageActions,
|
|
8058
8079
|
qs as ImageRenderer,
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8080
|
+
kg as InnerBlocksCleanupFilter,
|
|
8081
|
+
Tg as InsertBlockToolbar,
|
|
8082
|
+
cg as LinkControl,
|
|
8062
8083
|
tp as LoadingSpinner,
|
|
8063
8084
|
ke as MEDIA_TYPE,
|
|
8064
8085
|
Ur as MEDIA_TYPE_LABEL,
|
|
8065
8086
|
li as MediaControl,
|
|
8066
|
-
|
|
8067
|
-
|
|
8087
|
+
Sg as MediaTypeControl,
|
|
8088
|
+
Rg as MediaWithFocalPointControl,
|
|
8068
8089
|
np as PlaceholderContent,
|
|
8069
8090
|
Ha as PreviewControl,
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8091
|
+
Ag as ResourcesWrapper,
|
|
8092
|
+
xg as ResponsiveSpacingControl,
|
|
8093
|
+
Gg as RootBlockAppenderPlugin,
|
|
8094
|
+
Wg as RootBlockDefaultFilter,
|
|
8095
|
+
Vg as RootBlockFilter,
|
|
8096
|
+
Pg as RootPatternAppenderPlugin,
|
|
8097
|
+
wg as SortableSelect,
|
|
8076
8098
|
Ff as SortableSelectAsync,
|
|
8077
8099
|
_o as SpacingControl,
|
|
8078
8100
|
eu as VideoRenderer,
|
|
8079
|
-
|
|
8101
|
+
Bg as __experimentalEmptyBlockPlaceholder,
|
|
8080
8102
|
ga as __experimentalPatternAppender,
|
|
8081
|
-
|
|
8103
|
+
wp as __experimentalPatternsModal,
|
|
8082
8104
|
$s as cleanSvgString,
|
|
8083
8105
|
ci as decodeHtmlEntities,
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8106
|
+
bg as getFiltersByNamespace,
|
|
8107
|
+
Ig as getFocalPointStyle,
|
|
8108
|
+
dg as getImage,
|
|
8109
|
+
pg as getLocationAddress,
|
|
8110
|
+
fg as getPhoneNumber,
|
|
8089
8111
|
rr as getRootContainer,
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8112
|
+
lg as getSlug,
|
|
8113
|
+
gg as getSpacingClasses,
|
|
8114
|
+
Cg as hideBlockForInlineInserter,
|
|
8093
8115
|
_s as loadSelectOptions,
|
|
8094
8116
|
zs as loadSelectOptionsRaw,
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8117
|
+
hg as setBlockForPostType,
|
|
8118
|
+
Dg as setPostTypeFilters,
|
|
8119
|
+
Fg as setPostTypePlugins,
|
|
8120
|
+
yg as subscribeForPostTypeChange,
|
|
8121
|
+
mg as unsetBlockForPostType,
|
|
8122
|
+
vg as updateAllBlocksApiVersion,
|
|
8101
8123
|
Us as updateBlockApiVersion,
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8124
|
+
tg as useAccordionItem,
|
|
8125
|
+
rg as useAllowedBlocks,
|
|
8126
|
+
og as useChildBlockPosition,
|
|
8127
|
+
eg as useDataQuery,
|
|
8106
8128
|
Qs as useDefaultSelectOptions,
|
|
8107
|
-
|
|
8129
|
+
ig as useFilterBlocks,
|
|
8108
8130
|
Ja as useParentBlock,
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8131
|
+
Kp as usePreviewControl,
|
|
8132
|
+
qp as useSlider,
|
|
8133
|
+
ng as useTabs,
|
|
8112
8134
|
_a as useThemeColors,
|
|
8113
8135
|
Fs as waitForRootContainer
|
|
8114
8136
|
};
|