@secretstache/wordpress-gutenberg 0.6.12 → 0.6.13
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 +352 -342
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DataQueryControls.jsx +39 -28
package/build/index.js
CHANGED
|
@@ -38,14 +38,14 @@ var dt = {};
|
|
|
38
38
|
var Vr;
|
|
39
39
|
function Wa() {
|
|
40
40
|
return Vr || (Vr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
-
var e = window.React, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"),
|
|
42
|
-
function
|
|
41
|
+
var e = window.React, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, b = "@@iterator";
|
|
42
|
+
function h(p) {
|
|
43
43
|
if (p === null || typeof p != "object")
|
|
44
44
|
return null;
|
|
45
|
-
var S =
|
|
45
|
+
var S = v && p[v] || p[b];
|
|
46
46
|
return typeof S == "function" ? S : null;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var m = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
49
|
function y(p) {
|
|
50
50
|
{
|
|
51
51
|
for (var S = arguments.length, G = new Array(S > 1 ? S - 1 : 0), Y = 1; Y < S; Y++)
|
|
@@ -55,7 +55,7 @@ function Wa() {
|
|
|
55
55
|
}
|
|
56
56
|
function w(p, S, G) {
|
|
57
57
|
{
|
|
58
|
-
var Y =
|
|
58
|
+
var Y = m.ReactDebugCurrentFrame, ae = Y.getStackAddendum();
|
|
59
59
|
ae !== "" && (S += "%s", G = G.concat([ae]));
|
|
60
60
|
var le = G.map(function(ne) {
|
|
61
61
|
return String(ne);
|
|
@@ -189,7 +189,7 @@ function Wa() {
|
|
|
189
189
|
ee < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var k =
|
|
192
|
+
var k = m.ReactCurrentDispatcher, D;
|
|
193
193
|
function j(p, S, G) {
|
|
194
194
|
{
|
|
195
195
|
if (D === void 0)
|
|
@@ -315,7 +315,7 @@ function Wa() {
|
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var Le = Object.prototype.hasOwnProperty, Et = {}, Xe =
|
|
318
|
+
var Le = Object.prototype.hasOwnProperty, Et = {}, Xe = m.ReactDebugCurrentFrame;
|
|
319
319
|
function Oe(p) {
|
|
320
320
|
if (p) {
|
|
321
321
|
var S = p._owner, G = Re(p.type, p._source, S ? S.type : null);
|
|
@@ -366,7 +366,7 @@ function Wa() {
|
|
|
366
366
|
if (ha(p))
|
|
367
367
|
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ba(p)), yr(p);
|
|
368
368
|
}
|
|
369
|
-
var xr =
|
|
369
|
+
var xr = m.ReactCurrentOwner, ma = {
|
|
370
370
|
key: !0,
|
|
371
371
|
ref: !0,
|
|
372
372
|
__self: !0,
|
|
@@ -460,7 +460,7 @@ function Wa() {
|
|
|
460
460
|
return xa(p, q, Ae, ae, Y, xr.current, ne);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
var cn =
|
|
463
|
+
var cn = m.ReactCurrentOwner, Sr = m.ReactDebugCurrentFrame;
|
|
464
464
|
function Qe(p) {
|
|
465
465
|
if (p) {
|
|
466
466
|
var S = p._owner, G = Re(p.type, p._source, S ? S.type : null);
|
|
@@ -526,7 +526,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
526
526
|
else if (dn(p))
|
|
527
527
|
p._store && (p._store.validated = !0);
|
|
528
528
|
else if (p) {
|
|
529
|
-
var ae =
|
|
529
|
+
var ae = h(p);
|
|
530
530
|
if (typeof ae == "function" && ae !== p.entries)
|
|
531
531
|
for (var le = ae.call(p), ne; !(ne = le.next()).done; )
|
|
532
532
|
dn(ne.value) && Br(ne.value, S);
|
|
@@ -773,17 +773,17 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
773
773
|
} = ns(
|
|
774
774
|
(b) => {
|
|
775
775
|
const {
|
|
776
|
-
getBlock:
|
|
777
|
-
getBlockCount:
|
|
776
|
+
getBlock: h,
|
|
777
|
+
getBlockCount: m,
|
|
778
778
|
getSelectedBlock: y,
|
|
779
779
|
getSelectedBlockClientId: w,
|
|
780
780
|
getBlockOrder: x,
|
|
781
781
|
getBlockRootClientId: C
|
|
782
782
|
} = b(Xr);
|
|
783
783
|
return {
|
|
784
|
-
tabs:
|
|
785
|
-
tabsAttributes:
|
|
786
|
-
tabsCount:
|
|
784
|
+
tabs: h(e)?.innerBlocks || [],
|
|
785
|
+
tabsAttributes: h(e)?.innerBlocks?.map((R) => R?.attributes) || [],
|
|
786
|
+
tabsCount: m(e),
|
|
787
787
|
tabsOrder: x(e),
|
|
788
788
|
selectedBlock: y(),
|
|
789
789
|
selectedBlockClientId: w()
|
|
@@ -800,12 +800,12 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
800
800
|
}, [d]), gn(() => {
|
|
801
801
|
if (!(o && o.name === t))
|
|
802
802
|
return;
|
|
803
|
-
const
|
|
804
|
-
os("core/block-editor").getBlockRootClientId(
|
|
803
|
+
const h = o;
|
|
804
|
+
os("core/block-editor").getBlockRootClientId(h.clientId) === e && l(h.clientId);
|
|
805
805
|
}, [o, t, e]);
|
|
806
|
-
const f = (b,
|
|
807
|
-
const y = ss(b,
|
|
808
|
-
return r(y,
|
|
806
|
+
const f = (b, h = {}, m = a) => {
|
|
807
|
+
const y = ss(b, h);
|
|
808
|
+
return r(y, m, e), y;
|
|
809
809
|
}, g = () => {
|
|
810
810
|
const b = f(t);
|
|
811
811
|
l(b.clientId);
|
|
@@ -820,14 +820,14 @@ const Da = window.wp.components.ToggleControl, Ma = "Enable Preview", Xa = "Plea
|
|
|
820
820
|
parentBlock: d,
|
|
821
821
|
activeItemId: c,
|
|
822
822
|
setActiveItemId: l,
|
|
823
|
-
TabAppender: ({ label: b = "Add new tab", ...
|
|
823
|
+
TabAppender: ({ label: b = "Add new tab", ...h }) => /* @__PURE__ */ I.jsx(
|
|
824
824
|
as,
|
|
825
825
|
{
|
|
826
826
|
className: "bc-add-new-child-btn",
|
|
827
827
|
icon: ts,
|
|
828
828
|
label: b,
|
|
829
829
|
onClick: g,
|
|
830
|
-
...
|
|
830
|
+
...h
|
|
831
831
|
}
|
|
832
832
|
),
|
|
833
833
|
onTabAppenderClick: g,
|
|
@@ -1374,15 +1374,15 @@ function $s() {
|
|
|
1374
1374
|
Kr = 1, mn = function(i) {
|
|
1375
1375
|
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 = [];
|
|
1376
1376
|
return function() {
|
|
1377
|
-
var f = e(n), g = (/* @__PURE__ */ new Date()).getTime(),
|
|
1377
|
+
var f = e(n), g = (/* @__PURE__ */ new Date()).getTime(), v = !s || g - s > f;
|
|
1378
1378
|
s = g;
|
|
1379
|
-
for (var b = arguments.length,
|
|
1380
|
-
m
|
|
1381
|
-
if (
|
|
1382
|
-
return a.accumulate ? Promise.resolve(i.call(this, [
|
|
1379
|
+
for (var b = arguments.length, h = Array(b), m = 0; m < b; m++)
|
|
1380
|
+
h[m] = arguments[m];
|
|
1381
|
+
if (v && a.leading)
|
|
1382
|
+
return a.accumulate ? Promise.resolve(i.call(this, [h])).then(function(w) {
|
|
1383
1383
|
return w[0];
|
|
1384
|
-
}) : Promise.resolve(i.call.apply(i, [this].concat(
|
|
1385
|
-
if (o ? clearTimeout(u) : o = t(), c.push(
|
|
1384
|
+
}) : Promise.resolve(i.call.apply(i, [this].concat(h)));
|
|
1385
|
+
if (o ? clearTimeout(u) : o = t(), c.push(h), u = setTimeout(l.bind(this), f), a.accumulate) {
|
|
1386
1386
|
var y = c.length - 1;
|
|
1387
1387
|
return o.promise.then(function(w) {
|
|
1388
1388
|
return w[y];
|
|
@@ -1725,13 +1725,13 @@ const bu = (e, t) => {
|
|
|
1725
1725
|
allowedTypes: ["image", "image/svg+xml"],
|
|
1726
1726
|
accept: "image/*",
|
|
1727
1727
|
value: r,
|
|
1728
|
-
render: ({ open:
|
|
1728
|
+
render: ({ open: v }) => /* @__PURE__ */ I.jsx(
|
|
1729
1729
|
xu,
|
|
1730
1730
|
{
|
|
1731
1731
|
imageId: r,
|
|
1732
1732
|
imageUrl: i,
|
|
1733
|
-
onImageClick:
|
|
1734
|
-
onSelectClick:
|
|
1733
|
+
onImageClick: v,
|
|
1734
|
+
onSelectClick: v,
|
|
1735
1735
|
onRemoveClick: s,
|
|
1736
1736
|
selectButtonLabel: o || "Select Image",
|
|
1737
1737
|
removeButtonLabel: u || "Remove Image"
|
|
@@ -1759,12 +1759,12 @@ const bu = (e, t) => {
|
|
|
1759
1759
|
onSelect: a,
|
|
1760
1760
|
allowedTypes: ["video"],
|
|
1761
1761
|
value: r,
|
|
1762
|
-
render: ({ open:
|
|
1762
|
+
render: ({ open: v }) => /* @__PURE__ */ I.jsx(
|
|
1763
1763
|
Au,
|
|
1764
1764
|
{
|
|
1765
1765
|
videoId: r,
|
|
1766
1766
|
videoUrl: i,
|
|
1767
|
-
onSelectClick:
|
|
1767
|
+
onSelectClick: v,
|
|
1768
1768
|
onRemoveClick: s,
|
|
1769
1769
|
selectButtonLabel: o || "Select Video",
|
|
1770
1770
|
removeButtonLabel: u || "Remove Video"
|
|
@@ -1780,13 +1780,13 @@ const bu = (e, t) => {
|
|
|
1780
1780
|
onSelect: a,
|
|
1781
1781
|
allowedTypes: ["application/json", "text/plain", "application/lottie"],
|
|
1782
1782
|
value: r,
|
|
1783
|
-
render: ({ open:
|
|
1783
|
+
render: ({ open: v }) => /* @__PURE__ */ I.jsx(
|
|
1784
1784
|
Eu,
|
|
1785
1785
|
{
|
|
1786
1786
|
animationFileId: r,
|
|
1787
1787
|
animationFileUrl: i,
|
|
1788
1788
|
animationFileName: n,
|
|
1789
|
-
onSelectClick:
|
|
1789
|
+
onSelectClick: v,
|
|
1790
1790
|
onRemoveClick: s,
|
|
1791
1791
|
selectButtonLabel: o || "Select Animation",
|
|
1792
1792
|
removeButtonLabel: u || "Remove Animation"
|
|
@@ -2141,12 +2141,12 @@ function zu(e) {
|
|
|
2141
2141
|
return Ci(Ht("", null, null, null, [""], e = Ii(e), 0, [0], e));
|
|
2142
2142
|
}
|
|
2143
2143
|
function Ht(e, t, r, i, n, a, s, o, u) {
|
|
2144
|
-
for (var c = 0, l = 0, d = s, f = 0, g = 0,
|
|
2145
|
-
switch (
|
|
2144
|
+
for (var c = 0, l = 0, d = s, f = 0, g = 0, v = 0, b = 1, h = 1, m = 1, y = 0, w = "", x = n, C = a, R = i, E = w; h; )
|
|
2145
|
+
switch (v = y, y = Te()) {
|
|
2146
2146
|
// (
|
|
2147
2147
|
case 40:
|
|
2148
|
-
if (
|
|
2149
|
-
jn(E += ie(Lt(y), "&", "&\f"), "&\f") != -1 && (
|
|
2148
|
+
if (v != 108 && Ce(E, d - 1) == 58) {
|
|
2149
|
+
jn(E += ie(Lt(y), "&", "&\f"), "&\f") != -1 && (m = -1);
|
|
2150
2150
|
break;
|
|
2151
2151
|
}
|
|
2152
2152
|
// " ' [
|
|
@@ -2160,7 +2160,7 @@ function Ht(e, t, r, i, n, a, s, o, u) {
|
|
|
2160
2160
|
case 10:
|
|
2161
2161
|
case 13:
|
|
2162
2162
|
case 32:
|
|
2163
|
-
E += Hu(
|
|
2163
|
+
E += Hu(v);
|
|
2164
2164
|
break;
|
|
2165
2165
|
// \
|
|
2166
2166
|
case 92:
|
|
@@ -2179,7 +2179,7 @@ function Ht(e, t, r, i, n, a, s, o, u) {
|
|
|
2179
2179
|
break;
|
|
2180
2180
|
// {
|
|
2181
2181
|
case 123 * b:
|
|
2182
|
-
o[c++] = Fe(E) *
|
|
2182
|
+
o[c++] = Fe(E) * m;
|
|
2183
2183
|
// } ; \0
|
|
2184
2184
|
case 125 * b:
|
|
2185
2185
|
case 59:
|
|
@@ -2188,10 +2188,10 @@ function Ht(e, t, r, i, n, a, s, o, u) {
|
|
|
2188
2188
|
// \0 }
|
|
2189
2189
|
case 0:
|
|
2190
2190
|
case 125:
|
|
2191
|
-
|
|
2191
|
+
h = 0;
|
|
2192
2192
|
// ;
|
|
2193
2193
|
case 59 + l:
|
|
2194
|
-
|
|
2194
|
+
m == -1 && (E = ie(E, /\f/g, "")), g > 0 && Fe(E) - d && Bt(g > 32 ? ro(E + ";", i, r, d - 1) : ro(ie(E, " ", "") + ";", i, r, d - 2), u);
|
|
2195
2195
|
break;
|
|
2196
2196
|
// @ ;
|
|
2197
2197
|
case 59:
|
|
@@ -2214,11 +2214,11 @@ function Ht(e, t, r, i, n, a, s, o, u) {
|
|
|
2214
2214
|
Ht(E, R, R, R, [""], C, 0, o, C);
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
|
-
c = l = g = 0, b =
|
|
2217
|
+
c = l = g = 0, b = m = 1, w = E = "", d = s;
|
|
2218
2218
|
break;
|
|
2219
2219
|
// :
|
|
2220
2220
|
case 58:
|
|
2221
|
-
d = 1 + Fe(E), g =
|
|
2221
|
+
d = 1 + Fe(E), g = v;
|
|
2222
2222
|
default:
|
|
2223
2223
|
if (b < 1) {
|
|
2224
2224
|
if (y == 123)
|
|
@@ -2229,11 +2229,11 @@ function Ht(e, t, r, i, n, a, s, o, u) {
|
|
|
2229
2229
|
switch (E += nn(y), y * b) {
|
|
2230
2230
|
// &
|
|
2231
2231
|
case 38:
|
|
2232
|
-
|
|
2232
|
+
m = l > 0 ? 1 : (E += "\f", -1);
|
|
2233
2233
|
break;
|
|
2234
2234
|
// ,
|
|
2235
2235
|
case 44:
|
|
2236
|
-
o[c++] = (Fe(E) - 1) *
|
|
2236
|
+
o[c++] = (Fe(E) - 1) * m, m = 1;
|
|
2237
2237
|
break;
|
|
2238
2238
|
// @
|
|
2239
2239
|
case 64:
|
|
@@ -2241,15 +2241,15 @@ function Ht(e, t, r, i, n, a, s, o, u) {
|
|
|
2241
2241
|
break;
|
|
2242
2242
|
// -
|
|
2243
2243
|
case 45:
|
|
2244
|
-
|
|
2244
|
+
v === 45 && Fe(E) == 2 && (b = 0);
|
|
2245
2245
|
}
|
|
2246
2246
|
}
|
|
2247
2247
|
return a;
|
|
2248
2248
|
}
|
|
2249
2249
|
function no(e, t, r, i, n, a, s, o, u, c, l) {
|
|
2250
|
-
for (var d = n - 1, f = n === 0 ? a : [""], g = ar(f),
|
|
2251
|
-
for (var
|
|
2252
|
-
(w = mi(b > 0 ? f[
|
|
2250
|
+
for (var d = n - 1, f = n === 0 ? a : [""], g = ar(f), v = 0, b = 0, h = 0; v < i; ++v)
|
|
2251
|
+
for (var m = 0, y = mt(e, d + 1, d = Wu(b = s[v])), w = e; m < g; ++m)
|
|
2252
|
+
(w = mi(b > 0 ? f[m] + " " + y : ie(y, /&\f/g, f[m]))) && (u[h++] = w);
|
|
2253
2253
|
return on(e, t, r, n === 0 ? or : o, u, c, l);
|
|
2254
2254
|
}
|
|
2255
2255
|
function _u(e, t, r) {
|
|
@@ -2524,8 +2524,8 @@ var oc = function(t, r, i, n) {
|
|
|
2524
2524
|
if (r === "css") {
|
|
2525
2525
|
var i = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
2526
2526
|
Array.prototype.forEach.call(i, function(b) {
|
|
2527
|
-
var
|
|
2528
|
-
|
|
2527
|
+
var h = b.getAttribute("data-emotion");
|
|
2528
|
+
h.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
2529
2529
|
});
|
|
2530
2530
|
}
|
|
2531
2531
|
var n = t.stylisPlugins || ic, a = {}, s, o = [];
|
|
@@ -2534,8 +2534,8 @@ var oc = function(t, r, i, n) {
|
|
|
2534
2534
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
2535
2535
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
2536
2536
|
function(b) {
|
|
2537
|
-
for (var
|
|
2538
|
-
a[m
|
|
2537
|
+
for (var h = b.getAttribute("data-emotion").split(" "), m = 1; m < h.length; m++)
|
|
2538
|
+
a[h[m]] = !0;
|
|
2539
2539
|
o.push(b);
|
|
2540
2540
|
}
|
|
2541
2541
|
);
|
|
@@ -2543,14 +2543,14 @@ var oc = function(t, r, i, n) {
|
|
|
2543
2543
|
{
|
|
2544
2544
|
var l, d = [Uu, Qu(function(b) {
|
|
2545
2545
|
l.insert(b);
|
|
2546
|
-
})], f = $u(c.concat(n, d)), g = function(
|
|
2547
|
-
return rt(zu(
|
|
2546
|
+
})], f = $u(c.concat(n, d)), g = function(h) {
|
|
2547
|
+
return rt(zu(h), f);
|
|
2548
2548
|
};
|
|
2549
|
-
u = function(
|
|
2550
|
-
l = y, g(
|
|
2549
|
+
u = function(h, m, y, w) {
|
|
2550
|
+
l = y, g(h ? h + "{" + m.styles + "}" : m.styles), w && (v.inserted[m.name] = !0);
|
|
2551
2551
|
};
|
|
2552
2552
|
}
|
|
2553
|
-
var
|
|
2553
|
+
var v = {
|
|
2554
2554
|
key: r,
|
|
2555
2555
|
sheet: new Pu({
|
|
2556
2556
|
key: r,
|
|
@@ -2565,7 +2565,7 @@ var oc = function(t, r, i, n) {
|
|
|
2565
2565
|
registered: {},
|
|
2566
2566
|
insert: u
|
|
2567
2567
|
};
|
|
2568
|
-
return
|
|
2568
|
+
return v.sheet.hydrate(o), v;
|
|
2569
2569
|
}, Gt = { exports: {} }, se = {};
|
|
2570
2570
|
/** @license React v16.13.1
|
|
2571
2571
|
* react-is.production.min.js
|
|
@@ -2579,7 +2579,7 @@ var io;
|
|
|
2579
2579
|
function sc() {
|
|
2580
2580
|
if (io) return se;
|
|
2581
2581
|
io = 1;
|
|
2582
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115,
|
|
2582
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
2583
2583
|
function w(C) {
|
|
2584
2584
|
if (typeof C == "object" && C !== null) {
|
|
2585
2585
|
var R = C.$$typeof;
|
|
@@ -2597,7 +2597,7 @@ function sc() {
|
|
|
2597
2597
|
switch (C = C && C.$$typeof, C) {
|
|
2598
2598
|
case o:
|
|
2599
2599
|
case l:
|
|
2600
|
-
case
|
|
2600
|
+
case v:
|
|
2601
2601
|
case g:
|
|
2602
2602
|
case s:
|
|
2603
2603
|
return C;
|
|
@@ -2613,7 +2613,7 @@ function sc() {
|
|
|
2613
2613
|
function x(C) {
|
|
2614
2614
|
return w(C) === c;
|
|
2615
2615
|
}
|
|
2616
|
-
return se.AsyncMode = u, se.ConcurrentMode = c, se.ContextConsumer = o, se.ContextProvider = s, se.Element = t, se.ForwardRef = l, se.Fragment = i, se.Lazy =
|
|
2616
|
+
return se.AsyncMode = u, se.ConcurrentMode = c, se.ContextConsumer = o, se.ContextProvider = s, se.Element = t, se.ForwardRef = l, se.Fragment = i, se.Lazy = v, se.Memo = g, se.Portal = r, se.Profiler = a, se.StrictMode = n, se.Suspense = d, se.isAsyncMode = function(C) {
|
|
2617
2617
|
return x(C) || w(C) === u;
|
|
2618
2618
|
}, se.isConcurrentMode = x, se.isContextConsumer = function(C) {
|
|
2619
2619
|
return w(C) === o;
|
|
@@ -2626,7 +2626,7 @@ function sc() {
|
|
|
2626
2626
|
}, se.isFragment = function(C) {
|
|
2627
2627
|
return w(C) === i;
|
|
2628
2628
|
}, se.isLazy = function(C) {
|
|
2629
|
-
return w(C) ===
|
|
2629
|
+
return w(C) === v;
|
|
2630
2630
|
}, se.isMemo = function(C) {
|
|
2631
2631
|
return w(C) === g;
|
|
2632
2632
|
}, se.isPortal = function(C) {
|
|
@@ -2638,7 +2638,7 @@ function sc() {
|
|
|
2638
2638
|
}, se.isSuspense = function(C) {
|
|
2639
2639
|
return w(C) === d;
|
|
2640
2640
|
}, se.isValidElementType = function(C) {
|
|
2641
|
-
return typeof C == "string" || typeof C == "function" || C === i || C === c || C === a || C === n || C === d || C === f || typeof C == "object" && C !== null && (C.$$typeof ===
|
|
2641
|
+
return typeof C == "string" || typeof C == "function" || C === i || C === c || C === a || C === n || C === d || C === f || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === g || C.$$typeof === s || C.$$typeof === o || C.$$typeof === l || C.$$typeof === h || C.$$typeof === m || C.$$typeof === y || C.$$typeof === b);
|
|
2642
2642
|
}, se.typeOf = w, se;
|
|
2643
2643
|
}
|
|
2644
2644
|
var ue = {};
|
|
@@ -2653,10 +2653,10 @@ var ue = {};
|
|
|
2653
2653
|
var ao;
|
|
2654
2654
|
function uc() {
|
|
2655
2655
|
return ao || (ao = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2656
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115,
|
|
2656
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, h = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
2657
2657
|
function w(B) {
|
|
2658
2658
|
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2659
|
-
B === i || B === c || B === a || B === n || B === d || B === f || typeof B == "object" && B !== null && (B.$$typeof ===
|
|
2659
|
+
B === i || B === c || B === a || B === n || B === d || B === f || typeof B == "object" && B !== null && (B.$$typeof === v || B.$$typeof === g || B.$$typeof === s || B.$$typeof === o || B.$$typeof === l || B.$$typeof === h || B.$$typeof === m || B.$$typeof === y || B.$$typeof === b);
|
|
2660
2660
|
}
|
|
2661
2661
|
function x(B) {
|
|
2662
2662
|
if (typeof B == "object" && B !== null) {
|
|
@@ -2677,7 +2677,7 @@ function uc() {
|
|
|
2677
2677
|
switch (Re) {
|
|
2678
2678
|
case o:
|
|
2679
2679
|
case l:
|
|
2680
|
-
case
|
|
2680
|
+
case v:
|
|
2681
2681
|
case g:
|
|
2682
2682
|
case s:
|
|
2683
2683
|
return Re;
|
|
@@ -2690,7 +2690,7 @@ function uc() {
|
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
|
-
var C = u, R = c, E = o, F = s, Q = t, X = l, H = i, K =
|
|
2693
|
+
var C = u, R = c, E = o, F = s, Q = t, X = l, H = i, K = v, U = g, J = r, ee = a, re = n, de = d, fe = !1;
|
|
2694
2694
|
function Ie(B) {
|
|
2695
2695
|
return fe || (fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), A(B) || x(B) === u;
|
|
2696
2696
|
}
|
|
@@ -2713,7 +2713,7 @@ function uc() {
|
|
|
2713
2713
|
return x(B) === i;
|
|
2714
2714
|
}
|
|
2715
2715
|
function k(B) {
|
|
2716
|
-
return x(B) ===
|
|
2716
|
+
return x(B) === v;
|
|
2717
2717
|
}
|
|
2718
2718
|
function D(B) {
|
|
2719
2719
|
return x(B) === g;
|
|
@@ -2776,30 +2776,30 @@ function cc() {
|
|
|
2776
2776
|
type: !0
|
|
2777
2777
|
}, a = {};
|
|
2778
2778
|
a[e.ForwardRef] = i, a[e.Memo] = n;
|
|
2779
|
-
function s(
|
|
2780
|
-
return e.isMemo(
|
|
2779
|
+
function s(v) {
|
|
2780
|
+
return e.isMemo(v) ? n : a[v.$$typeof] || t;
|
|
2781
2781
|
}
|
|
2782
2782
|
var o = Object.defineProperty, u = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, l = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, f = Object.prototype;
|
|
2783
|
-
function g(
|
|
2783
|
+
function g(v, b, h) {
|
|
2784
2784
|
if (typeof b != "string") {
|
|
2785
2785
|
if (f) {
|
|
2786
|
-
var
|
|
2787
|
-
|
|
2786
|
+
var m = d(b);
|
|
2787
|
+
m && m !== f && g(v, m, h);
|
|
2788
2788
|
}
|
|
2789
2789
|
var y = u(b);
|
|
2790
2790
|
c && (y = y.concat(c(b)));
|
|
2791
|
-
for (var w = s(
|
|
2791
|
+
for (var w = s(v), x = s(b), C = 0; C < y.length; ++C) {
|
|
2792
2792
|
var R = y[C];
|
|
2793
|
-
if (!r[R] && !(
|
|
2793
|
+
if (!r[R] && !(h && h[R]) && !(x && x[R]) && !(w && w[R])) {
|
|
2794
2794
|
var E = l(b, R);
|
|
2795
2795
|
try {
|
|
2796
|
-
o(
|
|
2796
|
+
o(v, R, E);
|
|
2797
2797
|
} catch {
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
2802
|
-
return
|
|
2802
|
+
return v;
|
|
2803
2803
|
}
|
|
2804
2804
|
return Cn = g, Cn;
|
|
2805
2805
|
}
|
|
@@ -3303,10 +3303,10 @@ function ho(e, t, r, i) {
|
|
|
3303
3303
|
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;
|
|
3304
3304
|
if (a) {
|
|
3305
3305
|
const f = Me(a), g = i;
|
|
3306
|
-
let
|
|
3307
|
-
for (; b && i && g !==
|
|
3308
|
-
const
|
|
3309
|
-
u *=
|
|
3306
|
+
let v = f, b = _n(v);
|
|
3307
|
+
for (; b && i && g !== v; ) {
|
|
3308
|
+
const h = bo(b), m = b.getBoundingClientRect(), y = dr(b), w = m.left + (b.clientLeft + parseFloat(y.paddingLeft)) * h.x, x = m.top + (b.clientTop + parseFloat(y.paddingTop)) * h.y;
|
|
3309
|
+
u *= h.x, c *= h.y, l *= h.x, d *= h.y, u += w, c += x, v = Me(b), b = _n(v);
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
return Wc({
|
|
@@ -3336,8 +3336,8 @@ function zc(e, t) {
|
|
|
3336
3336
|
} = c;
|
|
3337
3337
|
if (o || t(), !f || !g)
|
|
3338
3338
|
return;
|
|
3339
|
-
const
|
|
3340
|
-
rootMargin: -
|
|
3339
|
+
const v = Ot(d), b = Ot(n.clientWidth - (l + f)), h = Ot(n.clientHeight - (d + g)), m = Ot(l), w = {
|
|
3340
|
+
rootMargin: -v + "px " + -b + "px " + -h + "px " + -m + "px",
|
|
3341
3341
|
threshold: kc(0, Vc(1, u)) || 1
|
|
3342
3342
|
};
|
|
3343
3343
|
let x = !0;
|
|
@@ -3374,31 +3374,31 @@ function _c(e, t, r, i) {
|
|
|
3374
3374
|
layoutShift: o = typeof IntersectionObserver == "function",
|
|
3375
3375
|
animationFrame: u = !1
|
|
3376
3376
|
} = i, c = fr(e), l = n || a ? [...c ? _t(c) : [], ..._t(t)] : [];
|
|
3377
|
-
l.forEach((
|
|
3378
|
-
n &&
|
|
3377
|
+
l.forEach((m) => {
|
|
3378
|
+
n && m.addEventListener("scroll", r, {
|
|
3379
3379
|
passive: !0
|
|
3380
|
-
}), a &&
|
|
3380
|
+
}), a && m.addEventListener("resize", r);
|
|
3381
3381
|
});
|
|
3382
3382
|
const d = c && o ? zc(c, r) : null;
|
|
3383
3383
|
let f = -1, g = null;
|
|
3384
|
-
s && (g = new ResizeObserver((
|
|
3385
|
-
let [y] =
|
|
3384
|
+
s && (g = new ResizeObserver((m) => {
|
|
3385
|
+
let [y] = m;
|
|
3386
3386
|
y && y.target === c && g && (g.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
3387
3387
|
var w;
|
|
3388
3388
|
(w = g) == null || w.observe(t);
|
|
3389
3389
|
})), r();
|
|
3390
3390
|
}), c && !u && g.observe(c), g.observe(t));
|
|
3391
|
-
let
|
|
3392
|
-
u &&
|
|
3393
|
-
function
|
|
3394
|
-
const
|
|
3395
|
-
b && !Fi(b,
|
|
3391
|
+
let v, b = u ? ho(e) : null;
|
|
3392
|
+
u && h();
|
|
3393
|
+
function h() {
|
|
3394
|
+
const m = ho(e);
|
|
3395
|
+
b && !Fi(b, m) && r(), b = m, v = requestAnimationFrame(h);
|
|
3396
3396
|
}
|
|
3397
3397
|
return r(), () => {
|
|
3398
|
-
var
|
|
3398
|
+
var m;
|
|
3399
3399
|
l.forEach((y) => {
|
|
3400
3400
|
n && y.removeEventListener("scroll", r), a && y.removeEventListener("resize", r);
|
|
3401
|
-
}), d?.(), (
|
|
3401
|
+
}), d?.(), (m = g) == null || m.disconnect(), g = null, u && cancelAnimationFrame(v);
|
|
3402
3402
|
};
|
|
3403
3403
|
}
|
|
3404
3404
|
const Uc = window.React.useLayoutEffect;
|
|
@@ -3541,16 +3541,16 @@ function hl(e) {
|
|
|
3541
3541
|
maxHeight: t
|
|
3542
3542
|
};
|
|
3543
3543
|
if (!r || !r.offsetParent) return c;
|
|
3544
|
-
var l = u.getBoundingClientRect(), d = l.height, f = r.getBoundingClientRect(), g = f.bottom,
|
|
3544
|
+
var l = u.getBoundingClientRect(), d = l.height, f = r.getBoundingClientRect(), g = f.bottom, v = f.height, b = f.top, h = r.offsetParent.getBoundingClientRect(), m = h.top, y = s ? window.innerHeight : ol(u), w = Vi(u), x = parseInt(getComputedStyle(r).marginBottom, 10), C = parseInt(getComputedStyle(r).marginTop, 10), R = m - C, E = y - b, F = R + w, Q = d - w - b, X = g - y + w + x, H = w + b - C, K = 160;
|
|
3545
3545
|
switch (n) {
|
|
3546
3546
|
case "auto":
|
|
3547
3547
|
case "bottom":
|
|
3548
|
-
if (E >=
|
|
3548
|
+
if (E >= v)
|
|
3549
3549
|
return {
|
|
3550
3550
|
placement: "bottom",
|
|
3551
3551
|
maxHeight: t
|
|
3552
3552
|
};
|
|
3553
|
-
if (Q >=
|
|
3553
|
+
if (Q >= v && !s)
|
|
3554
3554
|
return a && Ft(u, X, K), {
|
|
3555
3555
|
placement: "bottom",
|
|
3556
3556
|
maxHeight: t
|
|
@@ -3577,12 +3577,12 @@ function hl(e) {
|
|
|
3577
3577
|
};
|
|
3578
3578
|
break;
|
|
3579
3579
|
case "top":
|
|
3580
|
-
if (R >=
|
|
3580
|
+
if (R >= v)
|
|
3581
3581
|
return {
|
|
3582
3582
|
placement: "top",
|
|
3583
3583
|
maxHeight: t
|
|
3584
3584
|
};
|
|
3585
|
-
if (F >=
|
|
3585
|
+
if (F >= v && !s)
|
|
3586
3586
|
return a && Ft(u, H, K), {
|
|
3587
3587
|
placement: "top",
|
|
3588
3588
|
maxHeight: t
|
|
@@ -3624,7 +3624,7 @@ var Wi = function(t) {
|
|
|
3624
3624
|
marginTop: o.menuGutter
|
|
3625
3625
|
});
|
|
3626
3626
|
}, Ni = /* @__PURE__ */ Kc(null), Il = function(t) {
|
|
3627
|
-
var r = t.children, i = t.minMenuHeight, n = t.maxMenuHeight, a = t.menuPlacement, s = t.menuPosition, o = t.menuShouldScrollIntoView, u = t.theme, c = $c(Ni) || {}, l = c.setPortalPlacement, d = $n(null), f = Ut(n), g = me(f, 2),
|
|
3627
|
+
var r = t.children, i = t.minMenuHeight, n = t.maxMenuHeight, a = t.menuPlacement, s = t.menuPosition, o = t.menuShouldScrollIntoView, u = t.theme, c = $c(Ni) || {}, l = c.setPortalPlacement, d = $n(null), f = Ut(n), g = me(f, 2), v = g[0], b = g[1], h = Ut(null), m = me(h, 2), y = m[0], w = m[1], x = u.spacing.controlHeight;
|
|
3628
3628
|
return Un(function() {
|
|
3629
3629
|
var C = d.current;
|
|
3630
3630
|
if (C) {
|
|
@@ -3643,7 +3643,7 @@ var Wi = function(t) {
|
|
|
3643
3643
|
ref: d,
|
|
3644
3644
|
placerProps: V(V({}, t), {}, {
|
|
3645
3645
|
placement: y || Wi(a),
|
|
3646
|
-
maxHeight:
|
|
3646
|
+
maxHeight: v
|
|
3647
3647
|
})
|
|
3648
3648
|
});
|
|
3649
3649
|
}, Cl = function(t) {
|
|
@@ -3709,19 +3709,19 @@ var Wi = function(t) {
|
|
|
3709
3709
|
zIndex: 1
|
|
3710
3710
|
};
|
|
3711
3711
|
}, Bl = function(t) {
|
|
3712
|
-
var r = t.appendTo, i = t.children, n = t.controlElement, a = t.innerProps, s = t.menuPlacement, o = t.menuPosition, u = $n(null), c = $n(null), l = Ut(Wi(s)), d = me(l, 2), f = d[0], g = d[1],
|
|
3712
|
+
var r = t.appendTo, i = t.children, n = t.controlElement, a = t.innerProps, s = t.menuPlacement, o = t.menuPosition, u = $n(null), c = $n(null), l = Ut(Wi(s)), d = me(l, 2), f = d[0], g = d[1], v = Qc(function() {
|
|
3713
3713
|
return {
|
|
3714
3714
|
setPortalPlacement: g
|
|
3715
3715
|
};
|
|
3716
|
-
}, []), b = Ut(null),
|
|
3716
|
+
}, []), b = Ut(null), h = me(b, 2), m = h[0], y = h[1], w = wn(function() {
|
|
3717
3717
|
if (n) {
|
|
3718
3718
|
var E = sl(n), F = o === "fixed" ? 0 : window.pageYOffset, Q = E[f] + F;
|
|
3719
|
-
(Q !==
|
|
3719
|
+
(Q !== m?.offset || E.left !== m?.rect.left || E.width !== m?.rect.width) && y({
|
|
3720
3720
|
offset: Q,
|
|
3721
3721
|
rect: E
|
|
3722
3722
|
});
|
|
3723
3723
|
}
|
|
3724
|
-
}, [n, o, f,
|
|
3724
|
+
}, [n, o, f, m?.offset, m?.rect.left, m?.rect.width]);
|
|
3725
3725
|
Un(function() {
|
|
3726
3726
|
w();
|
|
3727
3727
|
}, [w]);
|
|
@@ -3736,18 +3736,18 @@ var Wi = function(t) {
|
|
|
3736
3736
|
var C = wn(function(E) {
|
|
3737
3737
|
u.current = E, x();
|
|
3738
3738
|
}, [x]);
|
|
3739
|
-
if (!r && o !== "fixed" || !
|
|
3739
|
+
if (!r && o !== "fixed" || !m) return null;
|
|
3740
3740
|
var R = M("div", N({
|
|
3741
3741
|
ref: C
|
|
3742
3742
|
}, pe(V(V({}, t), {}, {
|
|
3743
|
-
offset:
|
|
3743
|
+
offset: m.offset,
|
|
3744
3744
|
position: o,
|
|
3745
|
-
rect:
|
|
3745
|
+
rect: m.rect
|
|
3746
3746
|
}), "menuPortal", {
|
|
3747
3747
|
"menu-portal": !0
|
|
3748
3748
|
}), a), i);
|
|
3749
3749
|
return M(Ni.Provider, {
|
|
3750
|
-
value:
|
|
3750
|
+
value: v
|
|
3751
3751
|
}, r ? /* @__PURE__ */ qc(R, r) : R);
|
|
3752
3752
|
}, Gl = function(t) {
|
|
3753
3753
|
var r = t.isDisabled, i = t.isRtl;
|
|
@@ -4298,8 +4298,8 @@ var Pd = process.env.NODE_ENV === "production" ? {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
},
|
|
4300
4300
|
onFocus: function(t) {
|
|
4301
|
-
var r = t.context, i = t.focused, n = t.options, a = t.label, s = a === void 0 ? "" : a, o = t.selectValue, u = t.isDisabled, c = t.isSelected, l = function(
|
|
4302
|
-
return
|
|
4301
|
+
var r = t.context, i = t.focused, n = t.options, a = t.label, s = a === void 0 ? "" : a, o = t.selectValue, u = t.isDisabled, c = t.isSelected, l = function(v, b) {
|
|
4302
|
+
return v && v.length ? "".concat(v.indexOf(b) + 1, " of ").concat(v.length) : "";
|
|
4303
4303
|
};
|
|
4304
4304
|
if (r === "value" && o)
|
|
4305
4305
|
return "value ".concat(s, " focused, ").concat(l(o, i), ".");
|
|
@@ -4314,7 +4314,7 @@ var Pd = process.env.NODE_ENV === "production" ? {
|
|
|
4314
4314
|
return "".concat(i).concat(r ? " for search term " + r : "", ".");
|
|
4315
4315
|
}
|
|
4316
4316
|
}, Wd = function(t) {
|
|
4317
|
-
var r = t.ariaSelection, i = t.focusedOption, n = t.focusedValue, a = t.focusableOptions, s = t.isFocused, o = t.selectValue, u = t.selectProps, c = t.id, l = u.ariaLiveMessages, d = u.getOptionLabel, f = u.inputValue, g = u.isMulti,
|
|
4317
|
+
var r = t.ariaSelection, i = t.focusedOption, n = t.focusedValue, a = t.focusableOptions, s = t.isFocused, o = t.selectValue, u = t.selectProps, c = t.id, l = u.ariaLiveMessages, d = u.getOptionLabel, f = u.inputValue, g = u.isMulti, v = u.isOptionDisabled, b = u.isSearchable, h = u.menuIsOpen, m = u.options, y = u.screenReaderStatus, w = u.tabSelectsValue, x = u["aria-label"], C = u["aria-live"], R = pt(function() {
|
|
4318
4318
|
return V(V({}, kd), l || {});
|
|
4319
4319
|
}, [l]), E = pt(function() {
|
|
4320
4320
|
var J = "";
|
|
@@ -4324,20 +4324,20 @@ var Pd = process.env.NODE_ENV === "production" ? {
|
|
|
4324
4324
|
}, T = de || ee || A(Ie), O = T ? d(T) : "", P = re || fe || void 0, W = P ? P.map(d) : [], Z = V({
|
|
4325
4325
|
// multiSelected items are usually items that have already been selected
|
|
4326
4326
|
// or set by the user as a default value so we assume they are not disabled
|
|
4327
|
-
isDisabled: T &&
|
|
4327
|
+
isDisabled: T && v(T, o),
|
|
4328
4328
|
label: O,
|
|
4329
4329
|
labels: W
|
|
4330
4330
|
}, r);
|
|
4331
4331
|
J = R.onChange(Z);
|
|
4332
4332
|
}
|
|
4333
4333
|
return J;
|
|
4334
|
-
}, [r, R,
|
|
4334
|
+
}, [r, R, v, o, d]), F = pt(function() {
|
|
4335
4335
|
var J = "", ee = i || n, re = !!(i && o && o.includes(i));
|
|
4336
4336
|
if (ee && R.onFocus) {
|
|
4337
4337
|
var de = {
|
|
4338
4338
|
focused: ee,
|
|
4339
4339
|
label: d(ee),
|
|
4340
|
-
isDisabled:
|
|
4340
|
+
isDisabled: v(ee, o),
|
|
4341
4341
|
isSelected: re,
|
|
4342
4342
|
options: a,
|
|
4343
4343
|
context: ee === i ? "menu" : "value",
|
|
@@ -4346,9 +4346,9 @@ var Pd = process.env.NODE_ENV === "production" ? {
|
|
|
4346
4346
|
J = R.onFocus(de);
|
|
4347
4347
|
}
|
|
4348
4348
|
return J;
|
|
4349
|
-
}, [i, n, d,
|
|
4349
|
+
}, [i, n, d, v, R, a, o]), Q = pt(function() {
|
|
4350
4350
|
var J = "";
|
|
4351
|
-
if (
|
|
4351
|
+
if (h && m.length && R.onFilter) {
|
|
4352
4352
|
var ee = y({
|
|
4353
4353
|
count: a.length
|
|
4354
4354
|
});
|
|
@@ -4358,21 +4358,21 @@ var Pd = process.env.NODE_ENV === "production" ? {
|
|
|
4358
4358
|
});
|
|
4359
4359
|
}
|
|
4360
4360
|
return J;
|
|
4361
|
-
}, [a, f,
|
|
4361
|
+
}, [a, f, h, R, m, y]), X = pt(function() {
|
|
4362
4362
|
var J = "";
|
|
4363
4363
|
if (R.guidance) {
|
|
4364
|
-
var ee = n ? "value" :
|
|
4364
|
+
var ee = n ? "value" : h ? "menu" : "input";
|
|
4365
4365
|
J = R.guidance({
|
|
4366
4366
|
"aria-label": x,
|
|
4367
4367
|
context: ee,
|
|
4368
|
-
isDisabled: i &&
|
|
4368
|
+
isDisabled: i && v(i, o),
|
|
4369
4369
|
isMulti: g,
|
|
4370
4370
|
isSearchable: b,
|
|
4371
4371
|
tabSelectsValue: w
|
|
4372
4372
|
});
|
|
4373
4373
|
}
|
|
4374
4374
|
return J;
|
|
4375
|
-
}, [x, i, n, g,
|
|
4375
|
+
}, [x, i, n, g, v, b, h, R, o, w]), H = "".concat(F, " ").concat(Q, " ").concat(X), K = M(Qn, null, M("span", {
|
|
4376
4376
|
id: "aria-selection"
|
|
4377
4377
|
}, E), M("span", {
|
|
4378
4378
|
id: "aria-context"
|
|
@@ -4695,37 +4695,37 @@ var jd = function(t) {
|
|
|
4695
4695
|
t.preventDefault(), t.stopPropagation();
|
|
4696
4696
|
};
|
|
4697
4697
|
function Yd(e) {
|
|
4698
|
-
var t = e.isEnabled, r = e.onBottomArrive, i = e.onBottomLeave, n = e.onTopArrive, a = e.onTopLeave, s = tt(!1), o = tt(!1), u = tt(0), c = tt(null), l = Ze(function(
|
|
4698
|
+
var t = e.isEnabled, r = e.onBottomArrive, i = e.onBottomLeave, n = e.onTopArrive, a = e.onTopLeave, s = tt(!1), o = tt(!1), u = tt(0), c = tt(null), l = Ze(function(h, m) {
|
|
4699
4699
|
if (c.current !== null) {
|
|
4700
|
-
var y = c.current, w = y.scrollTop, x = y.scrollHeight, C = y.clientHeight, R = c.current, E =
|
|
4701
|
-
F >
|
|
4702
|
-
}
|
|
4703
|
-
}, [r, i, n, a]), d = Ze(function(
|
|
4704
|
-
l(
|
|
4705
|
-
}, [l]), f = Ze(function(
|
|
4706
|
-
u.current =
|
|
4707
|
-
}, []), g = Ze(function(
|
|
4708
|
-
var
|
|
4709
|
-
l(
|
|
4710
|
-
}, [l]),
|
|
4711
|
-
if (
|
|
4712
|
-
var
|
|
4700
|
+
var y = c.current, w = y.scrollTop, x = y.scrollHeight, C = y.clientHeight, R = c.current, E = m > 0, F = x - C - w, Q = !1;
|
|
4701
|
+
F > m && s.current && (i && i(h), s.current = !1), E && o.current && (a && a(h), o.current = !1), E && m > F ? (r && !s.current && r(h), R.scrollTop = x, Q = !0, s.current = !0) : !E && -m > w && (n && !o.current && n(h), R.scrollTop = 0, Q = !0, o.current = !0), Q && jd(h);
|
|
4702
|
+
}
|
|
4703
|
+
}, [r, i, n, a]), d = Ze(function(h) {
|
|
4704
|
+
l(h, h.deltaY);
|
|
4705
|
+
}, [l]), f = Ze(function(h) {
|
|
4706
|
+
u.current = h.changedTouches[0].clientY;
|
|
4707
|
+
}, []), g = Ze(function(h) {
|
|
4708
|
+
var m = u.current - h.changedTouches[0].clientY;
|
|
4709
|
+
l(h, m);
|
|
4710
|
+
}, [l]), v = Ze(function(h) {
|
|
4711
|
+
if (h) {
|
|
4712
|
+
var m = ll ? {
|
|
4713
4713
|
passive: !1
|
|
4714
4714
|
} : !1;
|
|
4715
|
-
|
|
4715
|
+
h.addEventListener("wheel", d, m), h.addEventListener("touchstart", f, m), h.addEventListener("touchmove", g, m);
|
|
4716
4716
|
}
|
|
4717
|
-
}, [g, f, d]), b = Ze(function(
|
|
4718
|
-
|
|
4717
|
+
}, [g, f, d]), b = Ze(function(h) {
|
|
4718
|
+
h && (h.removeEventListener("wheel", d, !1), h.removeEventListener("touchstart", f, !1), h.removeEventListener("touchmove", g, !1));
|
|
4719
4719
|
}, [g, f, d]);
|
|
4720
4720
|
return ji(function() {
|
|
4721
4721
|
if (t) {
|
|
4722
|
-
var
|
|
4723
|
-
return h
|
|
4724
|
-
b(
|
|
4722
|
+
var h = c.current;
|
|
4723
|
+
return v(h), function() {
|
|
4724
|
+
b(h);
|
|
4725
4725
|
};
|
|
4726
4726
|
}
|
|
4727
|
-
}, [t,
|
|
4728
|
-
c.current =
|
|
4727
|
+
}, [t, v, b]), function(h) {
|
|
4728
|
+
c.current = h;
|
|
4729
4729
|
};
|
|
4730
4730
|
}
|
|
4731
4731
|
var Ao = ["boxSizing", "height", "overflow", "paddingRight", "position"], Eo = {
|
|
@@ -4756,14 +4756,14 @@ function Jd(e) {
|
|
|
4756
4756
|
var t = e.isEnabled, r = e.accountForScrollbars, i = r === void 0 ? !0 : r, n = tt({}), a = tt(null), s = Ze(function(u) {
|
|
4757
4757
|
if (Go) {
|
|
4758
4758
|
var c = document.body, l = c && c.style;
|
|
4759
|
-
if (i && Ao.forEach(function(
|
|
4760
|
-
var b = l && l[
|
|
4761
|
-
n.current[
|
|
4759
|
+
if (i && Ao.forEach(function(v) {
|
|
4760
|
+
var b = l && l[v];
|
|
4761
|
+
n.current[v] = b;
|
|
4762
4762
|
}), i && gt < 1) {
|
|
4763
4763
|
var d = parseInt(n.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, g = window.innerWidth - f + d || 0;
|
|
4764
|
-
Object.keys(Eo).forEach(function(
|
|
4765
|
-
var b = Eo[
|
|
4766
|
-
l && (l[
|
|
4764
|
+
Object.keys(Eo).forEach(function(v) {
|
|
4765
|
+
var b = Eo[v];
|
|
4766
|
+
l && (l[v] = b);
|
|
4767
4767
|
}), l && (l.paddingRight = "".concat(g, "px"));
|
|
4768
4768
|
}
|
|
4769
4769
|
c && Bo() && (c.addEventListener("touchmove", So, qe), u && (u.addEventListener("touchstart", To, qe), u.addEventListener("touchmove", Ro, qe))), gt += 1;
|
|
@@ -5077,13 +5077,13 @@ var ea = function(t) {
|
|
|
5077
5077
|
option: c
|
|
5078
5078
|
});
|
|
5079
5079
|
}, n.selectOption = function(o) {
|
|
5080
|
-
var u = n.props, c = u.blurInputOnSelect, l = u.isMulti, d = u.name, f = n.state.selectValue, g = l && n.isOptionSelected(o, f),
|
|
5080
|
+
var u = n.props, c = u.blurInputOnSelect, l = u.isMulti, d = u.name, f = n.state.selectValue, g = l && n.isOptionSelected(o, f), v = n.isOptionDisabled(o, f);
|
|
5081
5081
|
if (g) {
|
|
5082
5082
|
var b = n.getOptionValue(o);
|
|
5083
|
-
n.setValue(f.filter(function(
|
|
5084
|
-
return n.getOptionValue(
|
|
5083
|
+
n.setValue(f.filter(function(h) {
|
|
5084
|
+
return n.getOptionValue(h) !== b;
|
|
5085
5085
|
}), "deselect-option", o);
|
|
5086
|
-
} else if (!
|
|
5086
|
+
} else if (!v)
|
|
5087
5087
|
l ? n.setValue([].concat(rr(f), [o]), "select-option", o) : n.setValue(o, "select-option");
|
|
5088
5088
|
else {
|
|
5089
5089
|
n.ariaOnChange(o, {
|
|
@@ -5228,8 +5228,8 @@ var ea = function(t) {
|
|
|
5228
5228
|
}, n.onValueInputFocus = function(o) {
|
|
5229
5229
|
o.preventDefault(), o.stopPropagation(), n.focus();
|
|
5230
5230
|
}, n.onKeyDown = function(o) {
|
|
5231
|
-
var u = n.props, c = u.isMulti, l = u.backspaceRemovesValue, d = u.escapeClearsValue, f = u.inputValue, g = u.isClearable,
|
|
5232
|
-
if (!
|
|
5231
|
+
var u = n.props, c = u.isMulti, l = u.backspaceRemovesValue, d = u.escapeClearsValue, f = u.inputValue, g = u.isClearable, v = u.isDisabled, b = u.menuIsOpen, h = u.onKeyDown, m = u.tabSelectsValue, y = u.openMenuOnFocus, w = n.state, x = w.focusedOption, C = w.focusedValue, R = w.selectValue;
|
|
5232
|
+
if (!v && !(typeof h == "function" && (h(o), o.defaultPrevented))) {
|
|
5233
5233
|
switch (n.blockOptionHover = !0, o.key) {
|
|
5234
5234
|
case "ArrowLeft":
|
|
5235
5235
|
if (!c || f) return;
|
|
@@ -5250,7 +5250,7 @@ var ea = function(t) {
|
|
|
5250
5250
|
}
|
|
5251
5251
|
break;
|
|
5252
5252
|
case "Tab":
|
|
5253
|
-
if (n.isComposing || o.shiftKey || !b || !
|
|
5253
|
+
if (n.isComposing || o.shiftKey || !b || !m || !x || // don't capture the event if the menu opens on focus and the focused
|
|
5254
5254
|
// option is already selected; it breaks the flow of navigation
|
|
5255
5255
|
y && n.isOptionSelected(x, R))
|
|
5256
5256
|
return;
|
|
@@ -5441,7 +5441,7 @@ var ea = function(t) {
|
|
|
5441
5441
|
}, {
|
|
5442
5442
|
key: "getCommonProps",
|
|
5443
5443
|
value: function() {
|
|
5444
|
-
var n = this.clearValue, a = this.cx, s = this.getStyles, o = this.getClassNames, u = this.getValue, c = this.selectOption, l = this.setValue, d = this.props, f = d.isMulti, g = d.isRtl,
|
|
5444
|
+
var n = this.clearValue, a = this.cx, s = this.getStyles, o = this.getClassNames, u = this.getValue, c = this.selectOption, l = this.setValue, d = this.props, f = d.isMulti, g = d.isRtl, v = d.options, b = this.hasValue();
|
|
5445
5445
|
return {
|
|
5446
5446
|
clearValue: n,
|
|
5447
5447
|
cx: a,
|
|
@@ -5451,7 +5451,7 @@ var ea = function(t) {
|
|
|
5451
5451
|
hasValue: b,
|
|
5452
5452
|
isMulti: f,
|
|
5453
5453
|
isRtl: g,
|
|
5454
|
-
options:
|
|
5454
|
+
options: v,
|
|
5455
5455
|
selectOption: c,
|
|
5456
5456
|
selectProps: d,
|
|
5457
5457
|
setValue: l,
|
|
@@ -5548,7 +5548,7 @@ var ea = function(t) {
|
|
|
5548
5548
|
// Renderers
|
|
5549
5549
|
// ==============================
|
|
5550
5550
|
function() {
|
|
5551
|
-
var n = this.props, a = n.isDisabled, s = n.isSearchable, o = n.inputId, u = n.inputValue, c = n.tabIndex, l = n.form, d = n.menuIsOpen, f = n.required, g = this.getComponents(),
|
|
5551
|
+
var n = this.props, a = n.isDisabled, s = n.isSearchable, o = n.inputId, u = n.inputValue, c = n.tabIndex, l = n.form, d = n.menuIsOpen, f = n.required, g = this.getComponents(), v = g.Input, b = this.state, h = b.inputIsHidden, m = b.ariaSelection, y = this.commonProps, w = o || this.getElementId("input"), x = V(V(V({
|
|
5552
5552
|
"aria-autocomplete": "list",
|
|
5553
5553
|
"aria-expanded": d,
|
|
5554
5554
|
"aria-haspopup": !0,
|
|
@@ -5563,19 +5563,19 @@ var ea = function(t) {
|
|
|
5563
5563
|
"aria-owns": this.getElementId("listbox")
|
|
5564
5564
|
}), !s && {
|
|
5565
5565
|
"aria-readonly": !0
|
|
5566
|
-
}), this.hasValue() ?
|
|
5566
|
+
}), this.hasValue() ? m?.action === "initial-input-focus" && {
|
|
5567
5567
|
"aria-describedby": this.getElementId("live-region")
|
|
5568
5568
|
} : {
|
|
5569
5569
|
"aria-describedby": this.getElementId("placeholder")
|
|
5570
5570
|
});
|
|
5571
|
-
return s ? /* @__PURE__ */ ce.createElement(
|
|
5571
|
+
return s ? /* @__PURE__ */ ce.createElement(v, N({}, y, {
|
|
5572
5572
|
autoCapitalize: "none",
|
|
5573
5573
|
autoComplete: "off",
|
|
5574
5574
|
autoCorrect: "off",
|
|
5575
5575
|
id: w,
|
|
5576
5576
|
innerRef: this.getInputRef,
|
|
5577
5577
|
isDisabled: a,
|
|
5578
|
-
isHidden:
|
|
5578
|
+
isHidden: h,
|
|
5579
5579
|
onBlur: this.onInputBlur,
|
|
5580
5580
|
onChange: this.handleInputChange,
|
|
5581
5581
|
onFocus: this.onInputFocus,
|
|
@@ -5601,9 +5601,9 @@ var ea = function(t) {
|
|
|
5601
5601
|
}, {
|
|
5602
5602
|
key: "renderPlaceholderOrValue",
|
|
5603
5603
|
value: function() {
|
|
5604
|
-
var n = this, a = this.getComponents(), s = a.MultiValue, o = a.MultiValueContainer, u = a.MultiValueLabel, c = a.MultiValueRemove, l = a.SingleValue, d = a.Placeholder, f = this.commonProps, g = this.props,
|
|
5605
|
-
if (!this.hasValue() || !
|
|
5606
|
-
return
|
|
5604
|
+
var n = this, a = this.getComponents(), s = a.MultiValue, o = a.MultiValueContainer, u = a.MultiValueLabel, c = a.MultiValueRemove, l = a.SingleValue, d = a.Placeholder, f = this.commonProps, g = this.props, v = g.controlShouldRenderValue, b = g.isDisabled, h = g.isMulti, m = g.inputValue, y = g.placeholder, w = this.state, x = w.selectValue, C = w.focusedValue, R = w.isFocused;
|
|
5605
|
+
if (!this.hasValue() || !v)
|
|
5606
|
+
return m ? null : /* @__PURE__ */ ce.createElement(d, N({}, f, {
|
|
5607
5607
|
key: "placeholder",
|
|
5608
5608
|
isDisabled: b,
|
|
5609
5609
|
isFocused: R,
|
|
@@ -5611,7 +5611,7 @@ var ea = function(t) {
|
|
|
5611
5611
|
id: this.getElementId("placeholder")
|
|
5612
5612
|
}
|
|
5613
5613
|
}), y);
|
|
5614
|
-
if (
|
|
5614
|
+
if (h)
|
|
5615
5615
|
return x.map(function(F, Q) {
|
|
5616
5616
|
var X = F === C, H = "".concat(n.getOptionLabel(F), "-").concat(n.getOptionValue(F));
|
|
5617
5617
|
return /* @__PURE__ */ ce.createElement(s, N({}, f, {
|
|
@@ -5638,7 +5638,7 @@ var ea = function(t) {
|
|
|
5638
5638
|
data: F
|
|
5639
5639
|
}), n.formatOptionLabel(F, "value"));
|
|
5640
5640
|
});
|
|
5641
|
-
if (
|
|
5641
|
+
if (m)
|
|
5642
5642
|
return null;
|
|
5643
5643
|
var E = x[0];
|
|
5644
5644
|
return /* @__PURE__ */ ce.createElement(l, N({}, f, {
|
|
@@ -5706,7 +5706,7 @@ var ea = function(t) {
|
|
|
5706
5706
|
}, {
|
|
5707
5707
|
key: "renderMenu",
|
|
5708
5708
|
value: function() {
|
|
5709
|
-
var n = this, a = this.getComponents(), s = a.Group, o = a.GroupHeading, u = a.Menu, c = a.MenuList, l = a.MenuPortal, d = a.LoadingMessage, f = a.NoOptionsMessage, g = a.Option,
|
|
5709
|
+
var n = this, a = this.getComponents(), s = a.Group, o = a.GroupHeading, u = a.Menu, c = a.MenuList, l = a.MenuPortal, d = a.LoadingMessage, f = a.NoOptionsMessage, g = a.Option, v = this.commonProps, b = this.state.focusedOption, h = this.props, m = h.captureMenuScroll, y = h.inputValue, w = h.isLoading, x = h.loadingMessage, C = h.minMenuHeight, R = h.maxMenuHeight, E = h.menuIsOpen, F = h.menuPlacement, Q = h.menuPosition, X = h.menuPortalTarget, H = h.menuShouldBlockScroll, K = h.menuShouldScrollIntoView, U = h.noOptionsMessage, J = h.onMenuScrollToTop, ee = h.onMenuScrollToBottom;
|
|
5710
5710
|
if (!E) return null;
|
|
5711
5711
|
var re = function(P, W) {
|
|
5712
5712
|
var Z = P.type, k = P.data, D = P.isDisabled, j = P.isSelected, _ = P.label, z = P.value, ge = b === k, B = D ? void 0 : function() {
|
|
@@ -5720,7 +5720,7 @@ var ea = function(t) {
|
|
|
5720
5720
|
onMouseOver: B,
|
|
5721
5721
|
tabIndex: -1
|
|
5722
5722
|
};
|
|
5723
|
-
return /* @__PURE__ */ ce.createElement(g, N({},
|
|
5723
|
+
return /* @__PURE__ */ ce.createElement(g, N({}, v, {
|
|
5724
5724
|
innerProps: Re,
|
|
5725
5725
|
data: k,
|
|
5726
5726
|
isDisabled: D,
|
|
@@ -5737,7 +5737,7 @@ var ea = function(t) {
|
|
|
5737
5737
|
de = this.getCategorizedOptions().map(function(O) {
|
|
5738
5738
|
if (O.type === "group") {
|
|
5739
5739
|
var P = O.data, W = O.options, Z = O.index, k = "".concat(n.getElementId("group"), "-").concat(Z), D = "".concat(k, "-heading");
|
|
5740
|
-
return /* @__PURE__ */ ce.createElement(s, N({},
|
|
5740
|
+
return /* @__PURE__ */ ce.createElement(s, N({}, v, {
|
|
5741
5741
|
key: k,
|
|
5742
5742
|
data: P,
|
|
5743
5743
|
options: W,
|
|
@@ -5758,13 +5758,13 @@ var ea = function(t) {
|
|
|
5758
5758
|
inputValue: y
|
|
5759
5759
|
});
|
|
5760
5760
|
if (fe === null) return null;
|
|
5761
|
-
de = /* @__PURE__ */ ce.createElement(d,
|
|
5761
|
+
de = /* @__PURE__ */ ce.createElement(d, v, fe);
|
|
5762
5762
|
} else {
|
|
5763
5763
|
var Ie = U({
|
|
5764
5764
|
inputValue: y
|
|
5765
5765
|
});
|
|
5766
5766
|
if (Ie === null) return null;
|
|
5767
|
-
de = /* @__PURE__ */ ce.createElement(f,
|
|
5767
|
+
de = /* @__PURE__ */ ce.createElement(f, v, Ie);
|
|
5768
5768
|
}
|
|
5769
5769
|
var A = {
|
|
5770
5770
|
minMenuHeight: C,
|
|
@@ -5772,9 +5772,9 @@ var ea = function(t) {
|
|
|
5772
5772
|
menuPlacement: F,
|
|
5773
5773
|
menuPosition: Q,
|
|
5774
5774
|
menuShouldScrollIntoView: K
|
|
5775
|
-
}, T = /* @__PURE__ */ ce.createElement(Il, N({},
|
|
5775
|
+
}, T = /* @__PURE__ */ ce.createElement(Il, N({}, v, A), function(O) {
|
|
5776
5776
|
var P = O.ref, W = O.placerProps, Z = W.placement, k = W.maxHeight;
|
|
5777
|
-
return /* @__PURE__ */ ce.createElement(u, N({},
|
|
5777
|
+
return /* @__PURE__ */ ce.createElement(u, N({}, v, A, {
|
|
5778
5778
|
innerRef: P,
|
|
5779
5779
|
innerProps: {
|
|
5780
5780
|
onMouseDown: n.onMenuMouseDown,
|
|
@@ -5784,12 +5784,12 @@ var ea = function(t) {
|
|
|
5784
5784
|
isLoading: w,
|
|
5785
5785
|
placement: Z
|
|
5786
5786
|
}), /* @__PURE__ */ ce.createElement($d, {
|
|
5787
|
-
captureEnabled:
|
|
5787
|
+
captureEnabled: m,
|
|
5788
5788
|
onTopArrive: J,
|
|
5789
5789
|
onBottomArrive: ee,
|
|
5790
5790
|
lockEnabled: H
|
|
5791
5791
|
}, function(D) {
|
|
5792
|
-
return /* @__PURE__ */ ce.createElement(c, N({},
|
|
5792
|
+
return /* @__PURE__ */ ce.createElement(c, N({}, v, {
|
|
5793
5793
|
innerRef: function(_) {
|
|
5794
5794
|
n.getMenuListRef(_), D(_);
|
|
5795
5795
|
},
|
|
@@ -5799,7 +5799,7 @@ var ea = function(t) {
|
|
|
5799
5799
|
}), de);
|
|
5800
5800
|
}));
|
|
5801
5801
|
});
|
|
5802
|
-
return X || Q === "fixed" ? /* @__PURE__ */ ce.createElement(l, N({},
|
|
5802
|
+
return X || Q === "fixed" ? /* @__PURE__ */ ce.createElement(l, N({}, v, {
|
|
5803
5803
|
appendTo: X,
|
|
5804
5804
|
controlElement: this.controlRef,
|
|
5805
5805
|
menuPlacement: F,
|
|
@@ -5827,9 +5827,9 @@ var ea = function(t) {
|
|
|
5827
5827
|
value: f
|
|
5828
5828
|
});
|
|
5829
5829
|
} else {
|
|
5830
|
-
var g = d.length > 0 ? d.map(function(b,
|
|
5830
|
+
var g = d.length > 0 ? d.map(function(b, h) {
|
|
5831
5831
|
return /* @__PURE__ */ ce.createElement("input", {
|
|
5832
|
-
key: "i-".concat(
|
|
5832
|
+
key: "i-".concat(h),
|
|
5833
5833
|
name: c,
|
|
5834
5834
|
type: "hidden",
|
|
5835
5835
|
value: n.getOptionValue(b)
|
|
@@ -5842,11 +5842,11 @@ var ea = function(t) {
|
|
|
5842
5842
|
return /* @__PURE__ */ ce.createElement("div", null, g);
|
|
5843
5843
|
}
|
|
5844
5844
|
else {
|
|
5845
|
-
var
|
|
5845
|
+
var v = d[0] ? this.getOptionValue(d[0]) : "";
|
|
5846
5846
|
return /* @__PURE__ */ ce.createElement("input", {
|
|
5847
5847
|
name: c,
|
|
5848
5848
|
type: "hidden",
|
|
5849
|
-
value:
|
|
5849
|
+
value: v
|
|
5850
5850
|
});
|
|
5851
5851
|
}
|
|
5852
5852
|
}
|
|
@@ -5867,7 +5867,7 @@ var ea = function(t) {
|
|
|
5867
5867
|
}, {
|
|
5868
5868
|
key: "render",
|
|
5869
5869
|
value: function() {
|
|
5870
|
-
var n = this.getComponents(), a = n.Control, s = n.IndicatorsContainer, o = n.SelectContainer, u = n.ValueContainer, c = this.props, l = c.className, d = c.id, f = c.isDisabled, g = c.menuIsOpen,
|
|
5870
|
+
var n = this.getComponents(), a = n.Control, s = n.IndicatorsContainer, o = n.SelectContainer, u = n.ValueContainer, c = this.props, l = c.className, d = c.id, f = c.isDisabled, g = c.menuIsOpen, v = this.state.isFocused, b = this.commonProps = this.getCommonProps();
|
|
5871
5871
|
return /* @__PURE__ */ ce.createElement(o, N({}, b, {
|
|
5872
5872
|
className: l,
|
|
5873
5873
|
innerProps: {
|
|
@@ -5875,7 +5875,7 @@ var ea = function(t) {
|
|
|
5875
5875
|
onKeyDown: this.onKeyDown
|
|
5876
5876
|
},
|
|
5877
5877
|
isDisabled: f,
|
|
5878
|
-
isFocused:
|
|
5878
|
+
isFocused: v
|
|
5879
5879
|
}), this.renderLiveRegion(), /* @__PURE__ */ ce.createElement(a, N({}, b, {
|
|
5880
5880
|
innerRef: this.getControlRef,
|
|
5881
5881
|
innerProps: {
|
|
@@ -5883,7 +5883,7 @@ var ea = function(t) {
|
|
|
5883
5883
|
onTouchEnd: this.onControlTouchEnd
|
|
5884
5884
|
},
|
|
5885
5885
|
isDisabled: f,
|
|
5886
|
-
isFocused:
|
|
5886
|
+
isFocused: v,
|
|
5887
5887
|
menuIsOpen: g
|
|
5888
5888
|
}), /* @__PURE__ */ ce.createElement(u, N({}, b, {
|
|
5889
5889
|
isDisabled: f
|
|
@@ -5894,11 +5894,11 @@ var ea = function(t) {
|
|
|
5894
5894
|
}], [{
|
|
5895
5895
|
key: "getDerivedStateFromProps",
|
|
5896
5896
|
value: function(n, a) {
|
|
5897
|
-
var s = a.prevProps, o = a.clearFocusValueOnUpdate, u = a.inputIsHiddenAfterUpdate, c = a.ariaSelection, l = a.isFocused, d = a.prevWasFocused, f = n.options, g = n.value,
|
|
5898
|
-
if (s && (g !== s.value || f !== s.options ||
|
|
5899
|
-
var w =
|
|
5897
|
+
var s = a.prevProps, o = a.clearFocusValueOnUpdate, u = a.inputIsHiddenAfterUpdate, c = a.ariaSelection, l = a.isFocused, d = a.prevWasFocused, f = n.options, g = n.value, v = n.menuIsOpen, b = n.inputValue, h = n.isMulti, m = mo(g), y = {};
|
|
5898
|
+
if (s && (g !== s.value || f !== s.options || v !== s.menuIsOpen || b !== s.inputValue)) {
|
|
5899
|
+
var w = v ? pf(n, m) : [], x = o ? gf(a, m) : null, C = bf(a, w);
|
|
5900
5900
|
y = {
|
|
5901
|
-
selectValue:
|
|
5901
|
+
selectValue: m,
|
|
5902
5902
|
focusedOption: C,
|
|
5903
5903
|
focusedValue: x,
|
|
5904
5904
|
clearFocusValueOnUpdate: !1
|
|
@@ -5909,8 +5909,8 @@ var ea = function(t) {
|
|
|
5909
5909
|
inputIsHiddenAfterUpdate: void 0
|
|
5910
5910
|
} : {}, E = c, F = l && d;
|
|
5911
5911
|
return l && !F && (E = {
|
|
5912
|
-
value: Vt(
|
|
5913
|
-
options:
|
|
5912
|
+
value: Vt(h, m, m[0] || null),
|
|
5913
|
+
options: m,
|
|
5914
5914
|
action: "initial-input-focus"
|
|
5915
5915
|
}, F = !d), c?.action === "initial-input-focus" && (E = null), V(V(V({}, y), R), {}, {
|
|
5916
5916
|
prevProps: n,
|
|
@@ -5924,7 +5924,7 @@ br.defaultProps = ff;
|
|
|
5924
5924
|
const Tn = window.React.useState, kt = window.React.useCallback;
|
|
5925
5925
|
var mf = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5926
5926
|
function ta(e) {
|
|
5927
|
-
var t = e.defaultInputValue, r = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = e.defaultValue, s = a === void 0 ? null : a, o = e.inputValue, u = e.menuIsOpen, c = e.onChange, l = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, g = e.value,
|
|
5927
|
+
var t = e.defaultInputValue, r = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = e.defaultValue, s = a === void 0 ? null : a, o = e.inputValue, u = e.menuIsOpen, c = e.onChange, l = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, g = e.value, v = We(e, mf), b = Tn(o !== void 0 ? o : r), h = me(b, 2), m = h[0], y = h[1], w = Tn(u !== void 0 ? u : n), x = me(w, 2), C = x[0], R = x[1], E = Tn(g !== void 0 ? g : s), F = me(E, 2), Q = F[0], X = F[1], H = kt(function(fe, Ie) {
|
|
5928
5928
|
typeof c == "function" && c(fe, Ie), X(fe);
|
|
5929
5929
|
}, [c]), K = kt(function(fe, Ie) {
|
|
5930
5930
|
var A;
|
|
@@ -5933,8 +5933,8 @@ function ta(e) {
|
|
|
5933
5933
|
typeof f == "function" && f(), R(!0);
|
|
5934
5934
|
}, [f]), J = kt(function() {
|
|
5935
5935
|
typeof d == "function" && d(), R(!1);
|
|
5936
|
-
}, [d]), ee = o !== void 0 ? o :
|
|
5937
|
-
return V(V({},
|
|
5936
|
+
}, [d]), ee = o !== void 0 ? o : m, re = u !== void 0 ? u : C, de = g !== void 0 ? g : Q;
|
|
5937
|
+
return V(V({}, v), {}, {
|
|
5938
5938
|
inputValue: ee,
|
|
5939
5939
|
menuIsOpen: re,
|
|
5940
5940
|
onChange: H,
|
|
@@ -5949,10 +5949,10 @@ var vf = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
5949
5949
|
function If(e) {
|
|
5950
5950
|
var t = e.defaultOptions, r = t === void 0 ? !1 : t, i = e.cacheOptions, n = i === void 0 ? !1 : i, a = e.loadOptions;
|
|
5951
5951
|
e.options;
|
|
5952
|
-
var s = e.isLoading, o = s === void 0 ? !1 : s, u = e.onInputChange, c = e.filterOption, l = c === void 0 ? null : c, d = We(e, vf), f = d.inputValue, g = Po(void 0),
|
|
5952
|
+
var s = e.isLoading, o = s === void 0 ? !1 : s, u = e.onInputChange, c = e.filterOption, l = c === void 0 ? null : c, d = We(e, vf), f = d.inputValue, g = Po(void 0), v = Po(!1), b = Ne(Array.isArray(r) ? r : void 0), h = me(b, 2), m = h[0], y = h[1], w = Ne(typeof f < "u" ? f : ""), x = me(w, 2), C = x[0], R = x[1], E = Ne(r === !0), F = me(E, 2), Q = F[0], X = F[1], H = Ne(void 0), K = me(H, 2), U = K[0], J = K[1], ee = Ne([]), re = me(ee, 2), de = re[0], fe = re[1], Ie = Ne(!1), A = me(Ie, 2), T = A[0], O = A[1], P = Ne({}), W = me(P, 2), Z = W[0], k = W[1], D = Ne(void 0), j = me(D, 2), _ = j[0], z = j[1], ge = Ne(void 0), B = me(ge, 2), ye = B[0], Ge = B[1];
|
|
5953
5953
|
n !== ye && (k({}), Ge(n)), r !== _ && (y(Array.isArray(r) ? r : void 0), z(r)), Vo(function() {
|
|
5954
|
-
return
|
|
5955
|
-
|
|
5954
|
+
return v.current = !0, function() {
|
|
5955
|
+
v.current = !1;
|
|
5956
5956
|
};
|
|
5957
5957
|
}, []);
|
|
5958
5958
|
var Re = ko(function(Xe, Oe) {
|
|
@@ -5964,7 +5964,7 @@ function If(e) {
|
|
|
5964
5964
|
}, [a]);
|
|
5965
5965
|
Vo(function() {
|
|
5966
5966
|
r === !0 && Re(C, function(Xe) {
|
|
5967
|
-
|
|
5967
|
+
v.current && (y(Xe || []), X(!!g.current));
|
|
5968
5968
|
});
|
|
5969
5969
|
}, []);
|
|
5970
5970
|
var Le = ko(function(Xe, Oe) {
|
|
@@ -5978,10 +5978,10 @@ function If(e) {
|
|
|
5978
5978
|
else {
|
|
5979
5979
|
var un = g.current = {};
|
|
5980
5980
|
R(xe), X(!0), O(!U), Re(xe, function(He) {
|
|
5981
|
-
|
|
5981
|
+
v && un === g.current && (g.current = void 0, X(!1), J(xe), fe(He || []), O(!1), k(He ? V(V({}, Z), {}, te({}, xe, He)) : Z));
|
|
5982
5982
|
});
|
|
5983
5983
|
}
|
|
5984
|
-
}, [n, Re, U, Z, u]), Et = T ? [] : C && U ? de :
|
|
5984
|
+
}, [n, Re, U, Z, u]), Et = T ? [] : C && U ? de : m || [];
|
|
5985
5985
|
return V(V({}, d), {}, {
|
|
5986
5986
|
options: Et,
|
|
5987
5987
|
isLoading: Q || o,
|
|
@@ -6136,8 +6136,8 @@ function Gf() {
|
|
|
6136
6136
|
throw f.name = "Invariant Violation", f;
|
|
6137
6137
|
}
|
|
6138
6138
|
d = a[l](s, l, u, o, null, t);
|
|
6139
|
-
} catch (
|
|
6140
|
-
d =
|
|
6139
|
+
} catch (v) {
|
|
6140
|
+
d = v;
|
|
6141
6141
|
}
|
|
6142
6142
|
if (d && !(d instanceof Error) && e(
|
|
6143
6143
|
(u || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -6180,14 +6180,14 @@ function Of() {
|
|
|
6180
6180
|
return T;
|
|
6181
6181
|
}
|
|
6182
6182
|
var f = "<<anonymous>>", g = {
|
|
6183
|
-
array:
|
|
6184
|
-
bigint:
|
|
6185
|
-
bool:
|
|
6186
|
-
func:
|
|
6187
|
-
number:
|
|
6188
|
-
object:
|
|
6189
|
-
string:
|
|
6190
|
-
symbol:
|
|
6183
|
+
array: m("array"),
|
|
6184
|
+
bigint: m("bigint"),
|
|
6185
|
+
bool: m("boolean"),
|
|
6186
|
+
func: m("function"),
|
|
6187
|
+
number: m("number"),
|
|
6188
|
+
object: m("object"),
|
|
6189
|
+
string: m("string"),
|
|
6190
|
+
symbol: m("symbol"),
|
|
6191
6191
|
any: y(),
|
|
6192
6192
|
arrayOf: w,
|
|
6193
6193
|
element: x(),
|
|
@@ -6200,14 +6200,14 @@ function Of() {
|
|
|
6200
6200
|
shape: K,
|
|
6201
6201
|
exact: U
|
|
6202
6202
|
};
|
|
6203
|
-
function
|
|
6203
|
+
function v(A, T) {
|
|
6204
6204
|
return A === T ? A !== 0 || 1 / A === 1 / T : A !== A && T !== T;
|
|
6205
6205
|
}
|
|
6206
6206
|
function b(A, T) {
|
|
6207
6207
|
this.message = A, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
6208
6208
|
}
|
|
6209
6209
|
b.prototype = Error.prototype;
|
|
6210
|
-
function
|
|
6210
|
+
function h(A) {
|
|
6211
6211
|
if (process.env.NODE_ENV !== "production")
|
|
6212
6212
|
var T = {}, O = 0;
|
|
6213
6213
|
function P(Z, k, D, j, _, z, ge) {
|
|
@@ -6230,7 +6230,7 @@ function Of() {
|
|
|
6230
6230
|
var W = P.bind(null, !1);
|
|
6231
6231
|
return W.isRequired = P.bind(null, !0), W;
|
|
6232
6232
|
}
|
|
6233
|
-
function
|
|
6233
|
+
function m(A) {
|
|
6234
6234
|
function T(O, P, W, Z, k, D) {
|
|
6235
6235
|
var j = O[P], _ = re(j);
|
|
6236
6236
|
if (_ !== A) {
|
|
@@ -6242,10 +6242,10 @@ function Of() {
|
|
|
6242
6242
|
}
|
|
6243
6243
|
return null;
|
|
6244
6244
|
}
|
|
6245
|
-
return
|
|
6245
|
+
return h(T);
|
|
6246
6246
|
}
|
|
6247
6247
|
function y() {
|
|
6248
|
-
return
|
|
6248
|
+
return h(s);
|
|
6249
6249
|
}
|
|
6250
6250
|
function w(A) {
|
|
6251
6251
|
function T(O, P, W, Z, k) {
|
|
@@ -6263,7 +6263,7 @@ function Of() {
|
|
|
6263
6263
|
}
|
|
6264
6264
|
return null;
|
|
6265
6265
|
}
|
|
6266
|
-
return
|
|
6266
|
+
return h(T);
|
|
6267
6267
|
}
|
|
6268
6268
|
function x() {
|
|
6269
6269
|
function A(T, O, P, W, Z) {
|
|
@@ -6274,7 +6274,7 @@ function Of() {
|
|
|
6274
6274
|
}
|
|
6275
6275
|
return null;
|
|
6276
6276
|
}
|
|
6277
|
-
return
|
|
6277
|
+
return h(A);
|
|
6278
6278
|
}
|
|
6279
6279
|
function C() {
|
|
6280
6280
|
function A(T, O, P, W, Z) {
|
|
@@ -6285,7 +6285,7 @@ function Of() {
|
|
|
6285
6285
|
}
|
|
6286
6286
|
return null;
|
|
6287
6287
|
}
|
|
6288
|
-
return
|
|
6288
|
+
return h(A);
|
|
6289
6289
|
}
|
|
6290
6290
|
function R(A) {
|
|
6291
6291
|
function T(O, P, W, Z, k) {
|
|
@@ -6295,7 +6295,7 @@ function Of() {
|
|
|
6295
6295
|
}
|
|
6296
6296
|
return null;
|
|
6297
6297
|
}
|
|
6298
|
-
return
|
|
6298
|
+
return h(T);
|
|
6299
6299
|
}
|
|
6300
6300
|
function E(A) {
|
|
6301
6301
|
if (!Array.isArray(A))
|
|
@@ -6304,7 +6304,7 @@ function Of() {
|
|
|
6304
6304
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
6305
6305
|
function T(O, P, W, Z, k) {
|
|
6306
6306
|
for (var D = O[P], j = 0; j < A.length; j++)
|
|
6307
|
-
if (
|
|
6307
|
+
if (v(D, A[j]))
|
|
6308
6308
|
return null;
|
|
6309
6309
|
var _ = JSON.stringify(A, function(ge, B) {
|
|
6310
6310
|
var ye = de(B);
|
|
@@ -6312,7 +6312,7 @@ function Of() {
|
|
|
6312
6312
|
});
|
|
6313
6313
|
return new b("Invalid " + Z + " `" + k + "` of value `" + String(D) + "` " + ("supplied to `" + W + "`, expected one of " + _ + "."));
|
|
6314
6314
|
}
|
|
6315
|
-
return
|
|
6315
|
+
return h(T);
|
|
6316
6316
|
}
|
|
6317
6317
|
function F(A) {
|
|
6318
6318
|
function T(O, P, W, Z, k) {
|
|
@@ -6329,7 +6329,7 @@ function Of() {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
return null;
|
|
6331
6331
|
}
|
|
6332
|
-
return
|
|
6332
|
+
return h(T);
|
|
6333
6333
|
}
|
|
6334
6334
|
function Q(A) {
|
|
6335
6335
|
if (!Array.isArray(A))
|
|
@@ -6351,13 +6351,13 @@ function Of() {
|
|
|
6351
6351
|
var ye = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
6352
6352
|
return new b("Invalid " + D + " `" + j + "` supplied to " + ("`" + k + "`" + ye + "."));
|
|
6353
6353
|
}
|
|
6354
|
-
return
|
|
6354
|
+
return h(P);
|
|
6355
6355
|
}
|
|
6356
6356
|
function X() {
|
|
6357
6357
|
function A(T, O, P, W, Z) {
|
|
6358
6358
|
return J(T[O]) ? null : new b("Invalid " + W + " `" + Z + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
6359
6359
|
}
|
|
6360
|
-
return
|
|
6360
|
+
return h(A);
|
|
6361
6361
|
}
|
|
6362
6362
|
function H(A, T, O, P, W) {
|
|
6363
6363
|
return new b(
|
|
@@ -6379,7 +6379,7 @@ function Of() {
|
|
|
6379
6379
|
}
|
|
6380
6380
|
return null;
|
|
6381
6381
|
}
|
|
6382
|
-
return
|
|
6382
|
+
return h(T);
|
|
6383
6383
|
}
|
|
6384
6384
|
function U(A) {
|
|
6385
6385
|
function T(O, P, W, Z, k) {
|
|
@@ -6402,7 +6402,7 @@ Valid keys: ` + JSON.stringify(Object.keys(A), null, " ")
|
|
|
6402
6402
|
}
|
|
6403
6403
|
return null;
|
|
6404
6404
|
}
|
|
6405
|
-
return
|
|
6405
|
+
return h(T);
|
|
6406
6406
|
}
|
|
6407
6407
|
function J(A) {
|
|
6408
6408
|
switch (typeof A) {
|
|
@@ -6809,7 +6809,7 @@ var zf = function() {
|
|
|
6809
6809
|
}, d = {
|
|
6810
6810
|
x: 10,
|
|
6811
6811
|
y: 10
|
|
6812
|
-
}, f = this.container, g = f.scrollTop,
|
|
6812
|
+
}, f = this.container, g = f.scrollTop, v = f.scrollLeft, b = f.scrollHeight, h = f.scrollWidth, m = f.clientHeight, y = f.clientWidth, w = g === 0, x = b - g - m === 0, C = v === 0, R = h - v - y === 0;
|
|
6813
6813
|
n.y >= s.y - u / 2 && !x ? (c.y = 1, l.y = d.y * Math.abs((s.y - u / 2 - n.y) / u)) : n.x >= s.x - o / 2 && !R ? (c.x = 1, l.x = d.x * Math.abs((s.x - o / 2 - n.x) / o)) : n.y <= a.y + u / 2 && !w ? (c.y = -1, l.y = d.y * Math.abs((n.y - u / 2 - a.y) / u)) : n.x <= a.x + o / 2 && !C && (c.x = -1, l.x = d.x * Math.abs((n.x - o / 2 - a.x) / o)), this.interval && (this.clear(), this.isAutoScrolling = !1), (c.x !== 0 || c.y !== 0) && (this.interval = setInterval(function() {
|
|
6814
6814
|
i.isAutoScrolling = !0;
|
|
6815
6815
|
var E = {
|
|
@@ -6917,12 +6917,12 @@ function la(e) {
|
|
|
6917
6917
|
return w.sortableInfo != null;
|
|
6918
6918
|
});
|
|
6919
6919
|
if (g && g.sortableInfo && o.nodeIsChild(g) && !o.state.sorting) {
|
|
6920
|
-
var
|
|
6921
|
-
if (y ||
|
|
6920
|
+
var v = o.props.useDragHandle, b = g.sortableInfo, h = b.index, m = b.collection, y = b.disabled;
|
|
6921
|
+
if (y || v && !ht(c.target, Jo))
|
|
6922
6922
|
return;
|
|
6923
6923
|
o.manager.active = {
|
|
6924
|
-
collection:
|
|
6925
|
-
index:
|
|
6924
|
+
collection: m,
|
|
6925
|
+
index: h
|
|
6926
6926
|
}, !Xf(c) && c.target.tagName === ze.Anchor && c.preventDefault(), d || (o.props.pressDelay === 0 ? o.handlePress(c) : o.pressTimer = setTimeout(function() {
|
|
6927
6927
|
return o.handlePress(c);
|
|
6928
6928
|
}, o.props.pressDelay));
|
|
@@ -6933,11 +6933,11 @@ function la(e) {
|
|
|
6933
6933
|
}), te($($(o)), "handleMove", function(c) {
|
|
6934
6934
|
var l = o.props, d = l.distance, f = l.pressThreshold;
|
|
6935
6935
|
if (!o.state.sorting && o.touched && !o._awaitingUpdateBeforeSortStart) {
|
|
6936
|
-
var g = bt(c),
|
|
6936
|
+
var g = bt(c), v = {
|
|
6937
6937
|
x: o.position.x - g.x,
|
|
6938
6938
|
y: o.position.y - g.y
|
|
6939
|
-
}, b = Math.abs(
|
|
6940
|
-
o.delta =
|
|
6939
|
+
}, b = Math.abs(v.x) + Math.abs(v.y);
|
|
6940
|
+
o.delta = v, !d && (!f || b >= f) ? (clearTimeout(o.cancelTimer), o.cancelTimer = setTimeout(o.cancel, 0)) : d && b >= d && o.manager.isActive() && o.handlePress(c);
|
|
6941
6941
|
}
|
|
6942
6942
|
}), te($($(o)), "handleEnd", function() {
|
|
6943
6943
|
o.touched = !1, o.cancel();
|
|
@@ -6958,8 +6958,8 @@ function la(e) {
|
|
|
6958
6958
|
x: o.margin.left + o.margin.right + o.gridGap.x,
|
|
6959
6959
|
y: Math.max(o.margin.top, o.margin.bottom, o.gridGap.y)
|
|
6960
6960
|
}, o.boundingClientRect = C.getBoundingClientRect(), o.containerBoundingRect = U, o.index = X, o.newIndex = X, o.axis = {
|
|
6961
|
-
x:
|
|
6962
|
-
y:
|
|
6961
|
+
x: v.indexOf("x") >= 0,
|
|
6962
|
+
y: v.indexOf("y") >= 0
|
|
6963
6963
|
}, o.offsetEdge = jt(C, o.container), E ? o.initialOffset = bt(Bn({}, c, {
|
|
6964
6964
|
pageX: o.boundingClientRect.left,
|
|
6965
6965
|
pageY: o.boundingClientRect.top
|
|
@@ -6977,7 +6977,7 @@ function la(e) {
|
|
|
6977
6977
|
position: "fixed",
|
|
6978
6978
|
top: "".concat(o.boundingClientRect.top - H.top, "px"),
|
|
6979
6979
|
width: "".concat(o.width, "px")
|
|
6980
|
-
}), E && o.helper.focus(),
|
|
6980
|
+
}), E && o.helper.focus(), m && (o.sortableGhost = C, Nt(C, {
|
|
6981
6981
|
opacity: 0,
|
|
6982
6982
|
visibility: "hidden"
|
|
6983
6983
|
})), o.minTranslate = {}, o.maxTranslate = {}, E) {
|
|
@@ -6990,7 +6990,7 @@ function la(e) {
|
|
|
6990
6990
|
o.axis.x && (o.minTranslate.x = de - o.boundingClientRect.left, o.maxTranslate.x = T - (o.boundingClientRect.left + o.width)), o.axis.y && (o.minTranslate.y = re - o.boundingClientRect.top, o.maxTranslate.y = A - (o.boundingClientRect.top + o.height));
|
|
6991
6991
|
} else
|
|
6992
6992
|
o.axis.x && (o.minTranslate.x = (x ? 0 : U.left) - o.boundingClientRect.left - o.width / 2, o.maxTranslate.x = (x ? o.contentWindow.innerWidth : U.left + U.width) - o.boundingClientRect.left - o.width / 2), o.axis.y && (o.minTranslate.y = (x ? 0 : U.top) - o.boundingClientRect.top - o.height / 2, o.maxTranslate.y = (x ? o.contentWindow.innerHeight : U.top + U.height) - o.boundingClientRect.top - o.height / 2);
|
|
6993
|
-
|
|
6993
|
+
h && h.split(" ").forEach(function(O) {
|
|
6994
6994
|
return o.helper.classList.add(O);
|
|
6995
6995
|
}), o.listenerNode = c.touches ? c.target : o.contentWindow, E ? (o.listenerNode.addEventListener("wheel", o.handleKeyEnd, !0), o.listenerNode.addEventListener("mousedown", o.handleKeyEnd, !0), o.listenerNode.addEventListener("keydown", o.handleKeyDown)) : (et.move.forEach(function(O) {
|
|
6996
6996
|
return o.listenerNode.addEventListener(O, o.handleSortMove, !1);
|
|
@@ -7007,7 +7007,7 @@ function la(e) {
|
|
|
7007
7007
|
nodes: o.manager.getOrderedRefs(),
|
|
7008
7008
|
helper: o.helper
|
|
7009
7009
|
}, c), E && o.keyMove(0);
|
|
7010
|
-
}, g = o.props,
|
|
7010
|
+
}, g = o.props, v = g.axis, b = g.getHelperDimensions, h = g.helperClass, m = g.hideSortableGhost, y = g.updateBeforeSortStart, w = g.onSortStart, x = g.useWindowAsScrollContainer, C = l.node, R = l.collection, E = o.manager.isKeySorting, F = function() {
|
|
7011
7011
|
if (typeof y == "function") {
|
|
7012
7012
|
o._awaitingUpdateBeforeSortStart = !0;
|
|
7013
7013
|
var Q = qf(function() {
|
|
@@ -7039,7 +7039,7 @@ function la(e) {
|
|
|
7039
7039
|
var l = o.props.onSortMove;
|
|
7040
7040
|
typeof c.preventDefault == "function" && c.cancelable && c.preventDefault(), o.updateHelperPosition(c), o.animateNodes(), o.autoscroll(), l && l(c);
|
|
7041
7041
|
}), te($($(o)), "handleSortEnd", function(c) {
|
|
7042
|
-
var l = o.props, d = l.hideSortableGhost, f = l.onSortEnd, g = o.manager,
|
|
7042
|
+
var l = o.props, d = l.hideSortableGhost, f = l.onSortEnd, g = o.manager, v = g.active.collection, b = g.isKeySorting, h = o.manager.getOrderedRefs();
|
|
7043
7043
|
o.listenerNode && (b ? (o.listenerNode.removeEventListener("wheel", o.handleKeyEnd, !0), o.listenerNode.removeEventListener("mousedown", o.handleKeyEnd, !0), o.listenerNode.removeEventListener("keydown", o.handleKeyDown)) : (et.move.forEach(function(C) {
|
|
7044
7044
|
return o.listenerNode.removeEventListener(C, o.handleSortMove);
|
|
7045
7045
|
}), et.end.forEach(function(C) {
|
|
@@ -7048,19 +7048,19 @@ function la(e) {
|
|
|
7048
7048
|
opacity: "",
|
|
7049
7049
|
visibility: ""
|
|
7050
7050
|
});
|
|
7051
|
-
for (var
|
|
7052
|
-
var w = m
|
|
7051
|
+
for (var m = 0, y = h.length; m < y; m++) {
|
|
7052
|
+
var w = h[m], x = w.node;
|
|
7053
7053
|
w.edgeOffset = null, w.boundingClientRect = null, Dt(x, null), Nn(x, null), w.translate = null;
|
|
7054
7054
|
}
|
|
7055
7055
|
o.autoScroller.clear(), o.manager.active = null, o.manager.isKeySorting = !1, o.setState({
|
|
7056
7056
|
sorting: !1,
|
|
7057
7057
|
sortingIndex: null
|
|
7058
7058
|
}), typeof f == "function" && f({
|
|
7059
|
-
collection:
|
|
7059
|
+
collection: v,
|
|
7060
7060
|
newIndex: o.newIndex,
|
|
7061
7061
|
oldIndex: o.index,
|
|
7062
7062
|
isKeySorting: b,
|
|
7063
|
-
nodes:
|
|
7063
|
+
nodes: h
|
|
7064
7064
|
}, c), o.touched = !1;
|
|
7065
7065
|
}), te($($(o)), "autoscroll", function() {
|
|
7066
7066
|
var c = o.props.disableAutoscroll, l = o.manager.isKeySorting;
|
|
@@ -7083,32 +7083,32 @@ function la(e) {
|
|
|
7083
7083
|
}), te($($(o)), "onAutoScroll", function(c) {
|
|
7084
7084
|
o.translate.x += c.left, o.translate.y += c.top, o.animateNodes();
|
|
7085
7085
|
}), te($($(o)), "handleKeyDown", function(c) {
|
|
7086
|
-
var l = c.keyCode, d = o.props, f = d.shouldCancelStart, g = d.keyCodes,
|
|
7086
|
+
var l = c.keyCode, d = o.props, f = d.shouldCancelStart, g = d.keyCodes, v = g === void 0 ? {} : g, b = Bn({}, ua, v);
|
|
7087
7087
|
o.manager.active && !o.manager.isKeySorting || !o.manager.active && (!b.lift.includes(l) || f(c) || !o.isValidSortingTarget(c)) || (c.stopPropagation(), c.preventDefault(), b.lift.includes(l) && !o.manager.active ? o.keyLift(c) : b.drop.includes(l) && o.manager.active ? o.keyDrop(c) : b.cancel.includes(l) ? (o.newIndex = o.manager.active.index, o.keyDrop(c)) : b.up.includes(l) ? o.keyMove(-1) : b.down.includes(l) && o.keyMove(1));
|
|
7088
7088
|
}), te($($(o)), "keyLift", function(c) {
|
|
7089
7089
|
var l = c.target, d = ht(l, function(b) {
|
|
7090
7090
|
return b.sortableInfo != null;
|
|
7091
|
-
}), f = d.sortableInfo, g = f.index,
|
|
7091
|
+
}), f = d.sortableInfo, g = f.index, v = f.collection;
|
|
7092
7092
|
o.initialFocusedNode = l, o.manager.isKeySorting = !0, o.manager.active = {
|
|
7093
7093
|
index: g,
|
|
7094
|
-
collection:
|
|
7094
|
+
collection: v
|
|
7095
7095
|
}, o.handlePress(c);
|
|
7096
7096
|
}), te($($(o)), "keyMove", function(c) {
|
|
7097
7097
|
var l = o.manager.getOrderedRefs(), d = l[l.length - 1].node.sortableInfo.index, f = o.newIndex + c, g = o.newIndex;
|
|
7098
7098
|
if (!(f < 0 || f > d)) {
|
|
7099
7099
|
o.prevIndex = g, o.newIndex = f;
|
|
7100
|
-
var
|
|
7100
|
+
var v = Zf(o.newIndex, o.prevIndex, o.index), b = l.find(function(E) {
|
|
7101
7101
|
var F = E.node;
|
|
7102
|
-
return F.sortableInfo.index ===
|
|
7103
|
-
}),
|
|
7102
|
+
return F.sortableInfo.index === v;
|
|
7103
|
+
}), h = b.node, m = o.containerScrollDelta, y = b.boundingClientRect || Dn(h, m), w = b.translate || {
|
|
7104
7104
|
x: 0,
|
|
7105
7105
|
y: 0
|
|
7106
7106
|
}, x = {
|
|
7107
|
-
top: y.top + w.y -
|
|
7108
|
-
left: y.left + w.x -
|
|
7107
|
+
top: y.top + w.y - m.top,
|
|
7108
|
+
left: y.left + w.x - m.left
|
|
7109
7109
|
}, C = g < f, R = {
|
|
7110
|
-
x: C && o.axis.x ?
|
|
7111
|
-
y: C && o.axis.y ?
|
|
7110
|
+
x: C && o.axis.x ? h.offsetWidth - o.width : 0,
|
|
7111
|
+
y: C && o.axis.y ? h.offsetHeight - o.height : 0
|
|
7112
7112
|
};
|
|
7113
7113
|
o.handleSortMove({
|
|
7114
7114
|
pageX: x.left + R.x,
|
|
@@ -7162,9 +7162,9 @@ function la(e) {
|
|
|
7162
7162
|
}, {
|
|
7163
7163
|
key: "updateHelperPosition",
|
|
7164
7164
|
value: function(o) {
|
|
7165
|
-
var u = this.props, c = u.lockAxis, l = u.lockOffset, d = u.lockToContainerEdges, f = u.transitionDuration, g = u.keyboardSortingTransitionDuration,
|
|
7166
|
-
x:
|
|
7167
|
-
y:
|
|
7165
|
+
var u = this.props, c = u.lockAxis, l = u.lockOffset, d = u.lockToContainerEdges, f = u.transitionDuration, g = u.keyboardSortingTransitionDuration, v = g === void 0 ? f : g, b = this.manager.isKeySorting, h = o.ignoreTransition, m = bt(o), y = {
|
|
7166
|
+
x: m.x - this.initialOffset.x,
|
|
7167
|
+
y: m.y - this.initialOffset.y
|
|
7168
7168
|
};
|
|
7169
7169
|
if (y.y -= window.pageYOffset - this.initialWindowScroll.top, y.x -= window.pageXOffset - this.initialWindowScroll.left, this.translate = y, d) {
|
|
7170
7170
|
var w = Lf({
|
|
@@ -7180,26 +7180,26 @@ function la(e) {
|
|
|
7180
7180
|
};
|
|
7181
7181
|
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);
|
|
7182
7182
|
}
|
|
7183
|
-
c === "x" ? y.y = 0 : c === "y" && (y.x = 0), b &&
|
|
7183
|
+
c === "x" ? y.y = 0 : c === "y" && (y.x = 0), b && v && !h && Nn(this.helper, v), Dt(this.helper, y);
|
|
7184
7184
|
}
|
|
7185
7185
|
}, {
|
|
7186
7186
|
key: "animateNodes",
|
|
7187
7187
|
value: function() {
|
|
7188
|
-
var o = this.props, u = o.transitionDuration, c = o.hideSortableGhost, l = o.onSortOver, d = this.containerScrollDelta, f = this.windowScrollDelta, g = this.manager.getOrderedRefs(),
|
|
7188
|
+
var o = this.props, u = o.transitionDuration, c = o.hideSortableGhost, l = o.onSortOver, d = this.containerScrollDelta, f = this.windowScrollDelta, g = this.manager.getOrderedRefs(), v = {
|
|
7189
7189
|
left: this.offsetEdge.left + this.translate.x + d.left,
|
|
7190
7190
|
top: this.offsetEdge.top + this.translate.y + d.top
|
|
7191
|
-
}, b = this.manager.isKeySorting,
|
|
7191
|
+
}, b = this.manager.isKeySorting, h = this.newIndex;
|
|
7192
7192
|
this.newIndex = null;
|
|
7193
|
-
for (var
|
|
7194
|
-
var w = g[
|
|
7193
|
+
for (var m = 0, y = g.length; m < y; m++) {
|
|
7194
|
+
var w = g[m].node, x = w.sortableInfo.index, C = w.offsetWidth, R = w.offsetHeight, E = {
|
|
7195
7195
|
height: this.height > R ? R / 2 : this.height / 2,
|
|
7196
7196
|
width: this.width > C ? C / 2 : this.width / 2
|
|
7197
|
-
}, F = b && x > this.index && x <=
|
|
7197
|
+
}, F = b && x > this.index && x <= h, Q = b && x < this.index && x >= h, X = {
|
|
7198
7198
|
x: 0,
|
|
7199
7199
|
y: 0
|
|
7200
|
-
}, H = g[
|
|
7201
|
-
H || (H = jt(w, this.container), g[
|
|
7202
|
-
var K =
|
|
7200
|
+
}, H = g[m].edgeOffset;
|
|
7201
|
+
H || (H = jt(w, this.container), g[m].edgeOffset = H, b && (g[m].boundingClientRect = Dn(w, d)));
|
|
7202
|
+
var K = m < g.length - 1 && g[m + 1], U = m > 0 && g[m - 1];
|
|
7203
7203
|
if (K && !K.edgeOffset && (K.edgeOffset = jt(K.node, this.container), b && (K.boundingClientRect = Dn(K.node, d))), x === this.index) {
|
|
7204
7204
|
c && (this.sortableGhost = w, Nt(w, {
|
|
7205
7205
|
opacity: 0,
|
|
@@ -7207,10 +7207,10 @@ function la(e) {
|
|
|
7207
7207
|
}));
|
|
7208
7208
|
continue;
|
|
7209
7209
|
}
|
|
7210
|
-
u && Nn(w, u), this.axis.x ? this.axis.y ? Q || x < this.index && (
|
|
7210
|
+
u && Nn(w, u), this.axis.x ? this.axis.y ? Q || x < this.index && (v.left + f.left - E.width <= H.left && v.top + f.top <= H.top + E.height || v.top + f.top + E.height <= H.top) ? (X.x = this.width + this.marginOffset.x, H.left + X.x > this.containerBoundingRect.width - E.width && K && (X.x = K.edgeOffset.left - H.left, X.y = K.edgeOffset.top - H.top), this.newIndex === null && (this.newIndex = x)) : (F || x > this.index && (v.left + f.left + E.width >= H.left && v.top + f.top + E.height >= H.top || v.top + f.top + E.height >= H.top + R)) && (X.x = -(this.width + this.marginOffset.x), H.left + X.x < this.containerBoundingRect.left + E.width && U && (X.x = U.edgeOffset.left - H.left, X.y = U.edgeOffset.top - H.top), this.newIndex = x) : F || x > this.index && v.left + f.left + E.width >= H.left ? (X.x = -(this.width + this.marginOffset.x), this.newIndex = x) : (Q || x < this.index && v.left + f.left <= H.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 + f.top + E.height >= H.top ? (X.y = -(this.height + this.marginOffset.y), this.newIndex = x) : (Q || x < this.index && v.top + f.top <= H.top + E.height) && (X.y = this.height + this.marginOffset.y, this.newIndex == null && (this.newIndex = x))), Dt(w, X), g[m].translate = X;
|
|
7211
7211
|
}
|
|
7212
|
-
this.newIndex == null && (this.newIndex = this.index), b && (this.newIndex =
|
|
7213
|
-
var J = b ? this.prevIndex :
|
|
7212
|
+
this.newIndex == null && (this.newIndex = this.index), b && (this.newIndex = h);
|
|
7213
|
+
var J = b ? this.prevIndex : h;
|
|
7214
7214
|
l && this.newIndex !== J && l({
|
|
7215
7215
|
collection: this.manager.active.collection,
|
|
7216
7216
|
index: this.index,
|
|
@@ -7411,110 +7411,118 @@ const qn = window.wp.element.useMemo, ct = window.wp.element.memo, wt = window.w
|
|
|
7411
7411
|
label: e = "Query",
|
|
7412
7412
|
options: t = [],
|
|
7413
7413
|
onChange: r,
|
|
7414
|
-
|
|
7414
|
+
isDisabled: i = !1,
|
|
7415
7415
|
help: n = "",
|
|
7416
7416
|
attributeName: a = "queryType",
|
|
7417
|
-
render: s = null
|
|
7417
|
+
render: s = null,
|
|
7418
|
+
hasDivider: o = !0
|
|
7418
7419
|
}) => {
|
|
7419
|
-
const { attributes:
|
|
7420
|
-
|
|
7420
|
+
const { attributes: u, updateAttribute: c } = At(), l = u[a], d = De((f) => {
|
|
7421
|
+
c(a, f), r && r(f);
|
|
7421
7422
|
}, [a, r]);
|
|
7422
7423
|
return s ? s({
|
|
7423
|
-
value:
|
|
7424
|
-
onChange:
|
|
7424
|
+
value: l,
|
|
7425
|
+
onChange: d,
|
|
7425
7426
|
options: t,
|
|
7426
|
-
|
|
7427
|
+
isDisabled: i,
|
|
7427
7428
|
attributeName: a
|
|
7428
7429
|
}) : /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
|
7429
7430
|
/* @__PURE__ */ I.jsx(
|
|
7430
7431
|
ap,
|
|
7431
7432
|
{
|
|
7432
7433
|
label: e,
|
|
7433
|
-
selected:
|
|
7434
|
+
selected: l,
|
|
7434
7435
|
options: t,
|
|
7435
|
-
onChange:
|
|
7436
|
+
onChange: d,
|
|
7436
7437
|
disabled: i,
|
|
7437
7438
|
help: n
|
|
7438
7439
|
}
|
|
7439
7440
|
),
|
|
7440
|
-
/* @__PURE__ */ I.jsx(wt, {})
|
|
7441
|
+
o && /* @__PURE__ */ I.jsx(wt, {})
|
|
7441
7442
|
] });
|
|
7442
7443
|
}), cp = ct(({
|
|
7443
7444
|
condition: e = !0,
|
|
7444
7445
|
attributeName: t = "selectedCategories",
|
|
7445
7446
|
taxonomy: r = "categories",
|
|
7446
7447
|
placeholder: i = "Categories to show",
|
|
7447
|
-
|
|
7448
|
+
isDisabled: n = !1,
|
|
7448
7449
|
render: a = null,
|
|
7449
|
-
customOptions: s = null
|
|
7450
|
+
customOptions: s = null,
|
|
7451
|
+
hasDivider: o = !0,
|
|
7452
|
+
isMulti: u = !0
|
|
7450
7453
|
}) => {
|
|
7451
|
-
const { attributes:
|
|
7454
|
+
const { attributes: c, updateAttribute: l } = At(), d = sp((h) => s ? null : h("core").getEntityRecords("taxonomy", r, { per_page: -1 }), [r, s]), f = qn(() => s || d?.map((h) => ({
|
|
7452
7455
|
value: h.id,
|
|
7453
7456
|
label: li(h.name)
|
|
7454
|
-
})) || [], [
|
|
7455
|
-
const
|
|
7456
|
-
|
|
7457
|
+
})) || [], [d, s]), g = c[t] || [], v = qn(() => g.map((h) => f.find((m) => m.value === h)).filter(Boolean), [g, f]), b = De((h) => {
|
|
7458
|
+
const m = h ? h.map((y) => y.value) : [];
|
|
7459
|
+
l(t, m);
|
|
7457
7460
|
}, [t]);
|
|
7458
7461
|
return !e || !r ? null : a ? a({
|
|
7459
|
-
value:
|
|
7460
|
-
onChange:
|
|
7461
|
-
options:
|
|
7462
|
+
value: v,
|
|
7463
|
+
onChange: b,
|
|
7464
|
+
options: f,
|
|
7462
7465
|
placeholder: i,
|
|
7463
|
-
|
|
7464
|
-
attributeName: t
|
|
7466
|
+
isDisabled: n,
|
|
7467
|
+
attributeName: t,
|
|
7468
|
+
isMulti: u
|
|
7465
7469
|
}) : /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
|
7466
7470
|
/* @__PURE__ */ I.jsx(
|
|
7467
7471
|
na,
|
|
7468
7472
|
{
|
|
7469
|
-
isMulti:
|
|
7470
|
-
options:
|
|
7471
|
-
value:
|
|
7472
|
-
onChange:
|
|
7473
|
+
isMulti: u,
|
|
7474
|
+
options: f,
|
|
7475
|
+
value: v,
|
|
7476
|
+
onChange: b,
|
|
7473
7477
|
className: "react-select-container",
|
|
7474
7478
|
classNamePrefix: "react-select",
|
|
7475
7479
|
placeholder: i,
|
|
7476
7480
|
isDisabled: n
|
|
7477
7481
|
}
|
|
7478
7482
|
),
|
|
7479
|
-
/* @__PURE__ */ I.jsx(wt, {})
|
|
7483
|
+
o && /* @__PURE__ */ I.jsx(wt, {})
|
|
7480
7484
|
] });
|
|
7481
7485
|
}), lp = ct(({
|
|
7482
7486
|
condition: e = !0,
|
|
7483
7487
|
attributeName: t = "curatedPosts",
|
|
7484
7488
|
postType: r = "post",
|
|
7485
7489
|
placeholder: i = "Posts to show",
|
|
7486
|
-
|
|
7487
|
-
render: a = null
|
|
7490
|
+
isDisabled: n = !1,
|
|
7491
|
+
render: a = null,
|
|
7492
|
+
hasDivider: s = !0,
|
|
7493
|
+
isMulti: o = !0
|
|
7488
7494
|
}) => {
|
|
7489
|
-
const { attributes:
|
|
7490
|
-
const
|
|
7491
|
-
|
|
7492
|
-
}, [
|
|
7493
|
-
|
|
7495
|
+
const { attributes: u, updateAttribute: c } = At(), l = u[t] || [], d = De(async (b) => await iu(b, r), []), { options: f } = su(r), g = De(({ oldIndex: b, newIndex: h }) => {
|
|
7496
|
+
const m = Df(l, b, h);
|
|
7497
|
+
c(t, m);
|
|
7498
|
+
}, [l, t]), v = De((b) => {
|
|
7499
|
+
c(t, b);
|
|
7494
7500
|
}, [t]);
|
|
7495
7501
|
return e ? a ? a({
|
|
7496
|
-
value:
|
|
7497
|
-
onChange:
|
|
7498
|
-
onSortEnd:
|
|
7499
|
-
loadOptions:
|
|
7500
|
-
defaultOptions:
|
|
7502
|
+
value: l,
|
|
7503
|
+
onChange: v,
|
|
7504
|
+
onSortEnd: g,
|
|
7505
|
+
loadOptions: d,
|
|
7506
|
+
defaultOptions: f,
|
|
7501
7507
|
placeholder: i,
|
|
7502
|
-
|
|
7503
|
-
attributeName: t
|
|
7508
|
+
isDisabled: n,
|
|
7509
|
+
attributeName: t,
|
|
7510
|
+
isMulti: o
|
|
7504
7511
|
}) : /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
|
7505
7512
|
/* @__PURE__ */ I.jsx(
|
|
7506
7513
|
np,
|
|
7507
7514
|
{
|
|
7508
|
-
onSortEnd:
|
|
7509
|
-
value:
|
|
7510
|
-
defaultOptions:
|
|
7511
|
-
loadOptions:
|
|
7512
|
-
onChange:
|
|
7515
|
+
onSortEnd: g,
|
|
7516
|
+
value: l,
|
|
7517
|
+
defaultOptions: f,
|
|
7518
|
+
loadOptions: d,
|
|
7519
|
+
onChange: v,
|
|
7513
7520
|
placeholder: i,
|
|
7514
|
-
isDisabled: n
|
|
7521
|
+
isDisabled: n,
|
|
7522
|
+
isMulti: o
|
|
7515
7523
|
}
|
|
7516
7524
|
),
|
|
7517
|
-
/* @__PURE__ */ I.jsx(wt, {})
|
|
7525
|
+
s && /* @__PURE__ */ I.jsx(wt, {})
|
|
7518
7526
|
] }) : null;
|
|
7519
7527
|
}), dp = ct(({
|
|
7520
7528
|
condition: e = !0,
|
|
@@ -7524,14 +7532,15 @@ const qn = window.wp.element.useMemo, ct = window.wp.element.memo, wt = window.w
|
|
|
7524
7532
|
max: n = 12,
|
|
7525
7533
|
help: a = "The maximum number of posts to show (-1 for no limit)",
|
|
7526
7534
|
disabled: s = !1,
|
|
7527
|
-
render: o = null
|
|
7535
|
+
render: o = null,
|
|
7536
|
+
hasDivider: u = !0
|
|
7528
7537
|
}) => {
|
|
7529
|
-
const { attributes:
|
|
7530
|
-
|
|
7538
|
+
const { attributes: c, updateAttribute: l } = At(), d = c[t], f = De((g) => {
|
|
7539
|
+
l(t, g);
|
|
7531
7540
|
}, [t]);
|
|
7532
7541
|
return e ? o ? o({
|
|
7533
|
-
value:
|
|
7534
|
-
onChange:
|
|
7542
|
+
value: d,
|
|
7543
|
+
onChange: f,
|
|
7535
7544
|
min: i,
|
|
7536
7545
|
max: n,
|
|
7537
7546
|
help: a,
|
|
@@ -7542,15 +7551,15 @@ const qn = window.wp.element.useMemo, ct = window.wp.element.memo, wt = window.w
|
|
|
7542
7551
|
ip,
|
|
7543
7552
|
{
|
|
7544
7553
|
label: r,
|
|
7545
|
-
value:
|
|
7546
|
-
onChange:
|
|
7554
|
+
value: d,
|
|
7555
|
+
onChange: f,
|
|
7547
7556
|
min: i,
|
|
7548
7557
|
max: n,
|
|
7549
7558
|
help: a,
|
|
7550
7559
|
disabled: s
|
|
7551
7560
|
}
|
|
7552
7561
|
),
|
|
7553
|
-
/* @__PURE__ */ I.jsx(wt, {})
|
|
7562
|
+
u && /* @__PURE__ */ I.jsx(wt, {})
|
|
7554
7563
|
] }) : null;
|
|
7555
7564
|
}), fp = ct(({
|
|
7556
7565
|
condition: e = !0,
|
|
@@ -7565,18 +7574,19 @@ const qn = window.wp.element.useMemo, ct = window.wp.element.memo, wt = window.w
|
|
|
7565
7574
|
{ label: "Ascending", value: "asc" },
|
|
7566
7575
|
{ label: "Descending", value: "desc" }
|
|
7567
7576
|
],
|
|
7568
|
-
render: s = null
|
|
7577
|
+
render: s = null,
|
|
7578
|
+
hasDivider: o = !0
|
|
7569
7579
|
}) => {
|
|
7570
|
-
const { attributes:
|
|
7571
|
-
|
|
7572
|
-
}, [t]),
|
|
7573
|
-
|
|
7580
|
+
const { attributes: u, updateAttribute: c } = At(), l = u[t] || "date", d = u[r] || "desc", f = De((v) => {
|
|
7581
|
+
c(t, v);
|
|
7582
|
+
}, [t]), g = De((v) => {
|
|
7583
|
+
c(r, v);
|
|
7574
7584
|
}, [r]);
|
|
7575
7585
|
return e ? s ? s({
|
|
7576
|
-
orderBy:
|
|
7577
|
-
order:
|
|
7578
|
-
onOrderByChange:
|
|
7579
|
-
onOrderChange:
|
|
7586
|
+
orderBy: l,
|
|
7587
|
+
order: d,
|
|
7588
|
+
onOrderByChange: f,
|
|
7589
|
+
onOrderChange: g,
|
|
7580
7590
|
orderByOptions: n,
|
|
7581
7591
|
orderOptions: a,
|
|
7582
7592
|
disabled: i,
|
|
@@ -7587,9 +7597,9 @@ const qn = window.wp.element.useMemo, ct = window.wp.element.memo, wt = window.w
|
|
|
7587
7597
|
zo,
|
|
7588
7598
|
{
|
|
7589
7599
|
label: "Order By",
|
|
7590
|
-
value:
|
|
7600
|
+
value: l,
|
|
7591
7601
|
options: n,
|
|
7592
|
-
onChange:
|
|
7602
|
+
onChange: f,
|
|
7593
7603
|
disabled: i
|
|
7594
7604
|
}
|
|
7595
7605
|
),
|
|
@@ -7597,13 +7607,13 @@ const qn = window.wp.element.useMemo, ct = window.wp.element.memo, wt = window.w
|
|
|
7597
7607
|
zo,
|
|
7598
7608
|
{
|
|
7599
7609
|
label: "Order",
|
|
7600
|
-
value:
|
|
7610
|
+
value: d,
|
|
7601
7611
|
options: a,
|
|
7602
|
-
onChange:
|
|
7612
|
+
onChange: g,
|
|
7603
7613
|
disabled: i
|
|
7604
7614
|
}
|
|
7605
7615
|
),
|
|
7606
|
-
/* @__PURE__ */ I.jsx(wt, {})
|
|
7616
|
+
o && /* @__PURE__ */ I.jsx(wt, {})
|
|
7607
7617
|
] }) : null;
|
|
7608
7618
|
});
|
|
7609
7619
|
xt.QueryType = up;
|