@wface/pixel-ui 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/dropdown/index.d.ts.map +1 -1
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +303 -296
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -380,7 +380,7 @@ const vi = "_wrapper_thhtr_1", bi = "_list_thhtr_5", mi = "_item_thhtr_12", wi =
|
|
|
380
380
|
] }, B);
|
|
381
381
|
}) }) });
|
|
382
382
|
Pi.displayName = "PiBreadcrumb";
|
|
383
|
-
const Ni = "
|
|
383
|
+
const Ni = "_button_6zhbe_1", Fi = "_primary_6zhbe_14", Oi = "_secondary_6zhbe_26", Ri = "_tertiary_6zhbe_39", xi = "_subtle_6zhbe_53", Mi = "_destructive_6zhbe_65", ki = "_success_6zhbe_77", Ui = "_fullWidth_6zhbe_89", Gi = "_link_6zhbe_96", Ji = "_iconButton_6zhbe_113", kg = {
|
|
384
384
|
button: Ni,
|
|
385
385
|
primary: Fi,
|
|
386
386
|
secondary: Oi,
|
|
@@ -494,8 +494,8 @@ const Ba = "_inputContainer_edg5z_1", Ea = "_input_edg5z_1", Qa = "_desc_edg5z_1
|
|
|
494
494
|
errorMessage: ua
|
|
495
495
|
}, vC = (A) => {
|
|
496
496
|
const { label: g = "", labelDescription: C = "", className: I = "", error: B, errorMessage: E, type: Q, min: e, prefixIcon: t, suffixIcon: n, ...o } = A, [r, i] = lA(!1), [a, c] = lA(null), u = (d) => {
|
|
497
|
-
const
|
|
498
|
-
Q === "number" && typeof e == "number" && e >= 0 && (Number(
|
|
497
|
+
const h = d.target.value;
|
|
498
|
+
Q === "number" && typeof e == "number" && e >= 0 && (Number(h) < 0 ? c("Value must be a positive number.") : c(null)), o.onChange?.(d);
|
|
499
499
|
}, s = Q === "password" ? r ? "text" : "password" : Q;
|
|
500
500
|
return /* @__PURE__ */ P("div", { className: `${kA.inputContainer} ${I}`, children: [
|
|
501
501
|
/* @__PURE__ */ P("div", { className: `${kA.input} ${B || a ? kA.errorInput : ""}`, children: [
|
|
@@ -888,19 +888,19 @@ function es(A) {
|
|
|
888
888
|
return Le(aI("", null, null, null, [""], A = Ve(A), 0, [0], A));
|
|
889
889
|
}
|
|
890
890
|
function aI(A, g, C, I, B, E, Q, e, t) {
|
|
891
|
-
for (var n = 0, o = 0, r = Q, i = 0, a = 0, c = 0, u = 1, s = 1, d = 1,
|
|
892
|
-
switch (c =
|
|
891
|
+
for (var n = 0, o = 0, r = Q, i = 0, a = 0, c = 0, u = 1, s = 1, d = 1, h = 0, b = "", m = B, f = E, v = I, w = b; s; )
|
|
892
|
+
switch (c = h, h = zA()) {
|
|
893
893
|
// (
|
|
894
894
|
case 40:
|
|
895
895
|
if (c != 108 && PA(w, r - 1) == 58) {
|
|
896
|
-
vB(w += EA(iI(
|
|
896
|
+
vB(w += EA(iI(h), "&", "&\f"), "&\f") != -1 && (d = -1);
|
|
897
897
|
break;
|
|
898
898
|
}
|
|
899
899
|
// " ' [
|
|
900
900
|
case 34:
|
|
901
901
|
case 39:
|
|
902
902
|
case 91:
|
|
903
|
-
w += iI(
|
|
903
|
+
w += iI(h);
|
|
904
904
|
break;
|
|
905
905
|
// \t \n \r \s
|
|
906
906
|
case 9:
|
|
@@ -931,7 +931,7 @@ function aI(A, g, C, I, B, E, Q, e, t) {
|
|
|
931
931
|
case 125 * u:
|
|
932
932
|
case 59:
|
|
933
933
|
case 0:
|
|
934
|
-
switch (
|
|
934
|
+
switch (h) {
|
|
935
935
|
// \0 }
|
|
936
936
|
case 0:
|
|
937
937
|
case 125:
|
|
@@ -945,9 +945,9 @@ function aI(A, g, C, I, B, E, Q, e, t) {
|
|
|
945
945
|
w += ";";
|
|
946
946
|
// { rule/at-rule
|
|
947
947
|
default:
|
|
948
|
-
if (gI(
|
|
948
|
+
if (gI(v = jE(w, g, C, n, o, B, e, b, m = [], f = [], r), E), h === 123)
|
|
949
949
|
if (o === 0)
|
|
950
|
-
aI(w, g,
|
|
950
|
+
aI(w, g, v, v, m, E, r, e, f);
|
|
951
951
|
else
|
|
952
952
|
switch (i === 99 && PA(w, 3) === 110 ? 100 : i) {
|
|
953
953
|
// d l m s
|
|
@@ -955,10 +955,10 @@ function aI(A, g, C, I, B, E, Q, e, t) {
|
|
|
955
955
|
case 108:
|
|
956
956
|
case 109:
|
|
957
957
|
case 115:
|
|
958
|
-
aI(A,
|
|
958
|
+
aI(A, v, v, I && gI(jE(A, v, v, 0, 0, B, e, b, B, m = [], r), f), B, f, r, e, I ? m : f);
|
|
959
959
|
break;
|
|
960
960
|
default:
|
|
961
|
-
aI(w,
|
|
961
|
+
aI(w, v, v, v, [""], f, 0, e, f);
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
n = o = a = 0, u = d = 1, b = w = "", r = Q;
|
|
@@ -968,12 +968,12 @@ function aI(A, g, C, I, B, E, Q, e, t) {
|
|
|
968
968
|
r = 1 + ng(w), a = c;
|
|
969
969
|
default:
|
|
970
970
|
if (u < 1) {
|
|
971
|
-
if (
|
|
971
|
+
if (h == 123)
|
|
972
972
|
--u;
|
|
973
|
-
else if (
|
|
973
|
+
else if (h == 125 && u++ == 0 && Cs() == 125)
|
|
974
974
|
continue;
|
|
975
975
|
}
|
|
976
|
-
switch (w += SI(
|
|
976
|
+
switch (w += SI(h), h * u) {
|
|
977
977
|
// &
|
|
978
978
|
case 38:
|
|
979
979
|
d = o > 0 ? 1 : (w += "\f", -1);
|
|
@@ -984,7 +984,7 @@ function aI(A, g, C, I, B, E, Q, e, t) {
|
|
|
984
984
|
break;
|
|
985
985
|
// @
|
|
986
986
|
case 64:
|
|
987
|
-
sg() === 45 && (w += iI(zA())), i = sg(), o = r = ng(b = w += Qs(oI())),
|
|
987
|
+
sg() === 45 && (w += iI(zA())), i = sg(), o = r = ng(b = w += Qs(oI())), h++;
|
|
988
988
|
break;
|
|
989
989
|
// -
|
|
990
990
|
case 45:
|
|
@@ -995,8 +995,8 @@ function aI(A, g, C, I, B, E, Q, e, t) {
|
|
|
995
995
|
}
|
|
996
996
|
function jE(A, g, C, I, B, E, Q, e, t, n, o) {
|
|
997
997
|
for (var r = B - 1, i = B === 0 ? E : [""], a = XB(i), c = 0, u = 0, s = 0; c < I; ++c)
|
|
998
|
-
for (var d = 0,
|
|
999
|
-
(b = Ke(u > 0 ? i[d] + " " +
|
|
998
|
+
for (var d = 0, h = bC(A, r + 1, r = qa(u = Q[c])), b = A; d < a; ++d)
|
|
999
|
+
(b = Ke(u > 0 ? i[d] + " " + h : EA(h, /&\f/g, i[d]))) && (t[s++] = b);
|
|
1000
1000
|
return NI(A, g, C, B === 0 ? VB : e, t, n, o);
|
|
1001
1001
|
}
|
|
1002
1002
|
function ts(A, g, C) {
|
|
@@ -1293,8 +1293,8 @@ var ds = function(g, C, I, B) {
|
|
|
1293
1293
|
})], i = rs(n.concat(B, r)), a = function(s) {
|
|
1294
1294
|
return qg(es(s), i);
|
|
1295
1295
|
};
|
|
1296
|
-
t = function(s, d,
|
|
1297
|
-
o =
|
|
1296
|
+
t = function(s, d, h, b) {
|
|
1297
|
+
o = h, a(s ? s + "{" + d.styles + "}" : d.styles), b && (c.inserted[d.name] = !0);
|
|
1298
1298
|
};
|
|
1299
1299
|
}
|
|
1300
1300
|
var c = {
|
|
@@ -1318,11 +1318,11 @@ var _E;
|
|
|
1318
1318
|
function hs() {
|
|
1319
1319
|
if (_E) return tA;
|
|
1320
1320
|
_E = 1;
|
|
1321
|
-
var A = typeof Symbol == "function" && Symbol.for, g = A ? /* @__PURE__ */ Symbol.for("react.element") : 60103, C = A ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, I = A ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, B = A ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, E = A ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, Q = A ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, e = A ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = A ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, n = A ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, o = A ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, r = A ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, i = A ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, a = A ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, c = A ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, u = A ? /* @__PURE__ */ Symbol.for("react.block") : 60121, s = A ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, d = A ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
1321
|
+
var A = typeof Symbol == "function" && Symbol.for, g = A ? /* @__PURE__ */ Symbol.for("react.element") : 60103, C = A ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, I = A ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, B = A ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, E = A ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, Q = A ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, e = A ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = A ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, n = A ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, o = A ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, r = A ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, i = A ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, a = A ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, c = A ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, u = A ? /* @__PURE__ */ Symbol.for("react.block") : 60121, s = A ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, d = A ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, h = A ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1322
1322
|
function b(f) {
|
|
1323
1323
|
if (typeof f == "object" && f !== null) {
|
|
1324
|
-
var
|
|
1325
|
-
switch (
|
|
1324
|
+
var v = f.$$typeof;
|
|
1325
|
+
switch (v) {
|
|
1326
1326
|
case g:
|
|
1327
1327
|
switch (f = f.type, f) {
|
|
1328
1328
|
case t:
|
|
@@ -1341,11 +1341,11 @@ function hs() {
|
|
|
1341
1341
|
case Q:
|
|
1342
1342
|
return f;
|
|
1343
1343
|
default:
|
|
1344
|
-
return
|
|
1344
|
+
return v;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
case C:
|
|
1348
|
-
return
|
|
1348
|
+
return v;
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
@@ -1377,17 +1377,17 @@ function hs() {
|
|
|
1377
1377
|
}, tA.isSuspense = function(f) {
|
|
1378
1378
|
return b(f) === r;
|
|
1379
1379
|
}, tA.isValidElementType = function(f) {
|
|
1380
|
-
return typeof f == "string" || typeof f == "function" || f === I || f === n || f === E || f === B || f === r || f === i || typeof f == "object" && f !== null && (f.$$typeof === c || f.$$typeof === a || f.$$typeof === Q || f.$$typeof === e || f.$$typeof === o || f.$$typeof === s || f.$$typeof === d || f.$$typeof ===
|
|
1380
|
+
return typeof f == "string" || typeof f == "function" || f === I || f === n || f === E || f === B || f === r || f === i || typeof f == "object" && f !== null && (f.$$typeof === c || f.$$typeof === a || f.$$typeof === Q || f.$$typeof === e || f.$$typeof === o || f.$$typeof === s || f.$$typeof === d || f.$$typeof === h || f.$$typeof === u);
|
|
1381
1381
|
}, tA.typeOf = b, tA;
|
|
1382
1382
|
}
|
|
1383
1383
|
var nA = {};
|
|
1384
1384
|
var $E;
|
|
1385
1385
|
function vs() {
|
|
1386
1386
|
return $E || ($E = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1387
|
-
var A = typeof Symbol == "function" && Symbol.for, g = A ? /* @__PURE__ */ Symbol.for("react.element") : 60103, C = A ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, I = A ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, B = A ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, E = A ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, Q = A ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, e = A ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = A ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, n = A ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, o = A ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, r = A ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, i = A ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, a = A ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, c = A ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, u = A ? /* @__PURE__ */ Symbol.for("react.block") : 60121, s = A ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, d = A ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
1387
|
+
var A = typeof Symbol == "function" && Symbol.for, g = A ? /* @__PURE__ */ Symbol.for("react.element") : 60103, C = A ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, I = A ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, B = A ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, E = A ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, Q = A ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, e = A ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = A ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, n = A ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, o = A ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, r = A ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, i = A ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, a = A ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, c = A ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, u = A ? /* @__PURE__ */ Symbol.for("react.block") : 60121, s = A ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, d = A ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, h = A ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
1388
1388
|
function b(x) {
|
|
1389
1389
|
return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1390
|
-
x === I || x === n || x === E || x === B || x === r || x === i || typeof x == "object" && x !== null && (x.$$typeof === c || x.$$typeof === a || x.$$typeof === Q || x.$$typeof === e || x.$$typeof === o || x.$$typeof === s || x.$$typeof === d || x.$$typeof ===
|
|
1390
|
+
x === I || x === n || x === E || x === B || x === r || x === i || typeof x == "object" && x !== null && (x.$$typeof === c || x.$$typeof === a || x.$$typeof === Q || x.$$typeof === e || x.$$typeof === o || x.$$typeof === s || x.$$typeof === d || x.$$typeof === h || x.$$typeof === u);
|
|
1391
1391
|
}
|
|
1392
1392
|
function m(x) {
|
|
1393
1393
|
if (typeof x == "object" && x !== null) {
|
|
@@ -1421,7 +1421,7 @@ function vs() {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
|
-
var f = t,
|
|
1424
|
+
var f = t, v = n, w = e, S = Q, M = g, R = o, X = I, Y = c, j = a, U = C, F = E, L = B, q = r, AA = !1;
|
|
1425
1425
|
function y(x) {
|
|
1426
1426
|
return AA || (AA = !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.")), N(x) || m(x) === t;
|
|
1427
1427
|
}
|
|
@@ -1461,7 +1461,7 @@ function vs() {
|
|
|
1461
1461
|
function Og(x) {
|
|
1462
1462
|
return m(x) === r;
|
|
1463
1463
|
}
|
|
1464
|
-
nA.AsyncMode = f, nA.ConcurrentMode =
|
|
1464
|
+
nA.AsyncMode = f, nA.ConcurrentMode = v, nA.ContextConsumer = w, nA.ContextProvider = S, nA.Element = M, nA.ForwardRef = R, nA.Fragment = X, nA.Lazy = Y, nA.Memo = j, nA.Portal = U, nA.Profiler = F, nA.StrictMode = L, nA.Suspense = q, nA.isAsyncMode = y, nA.isConcurrentMode = N, nA.isContextConsumer = k, nA.isContextProvider = G, nA.isElement = Z, nA.isForwardRef = QA, nA.isFragment = iA, nA.isLazy = cA, nA.isMemo = DA, nA.isPortal = Cg, nA.isProfiler = HA, nA.isStrictMode = qA, nA.isSuspense = Og, nA.isValidElementType = b, nA.typeOf = m;
|
|
1465
1465
|
})()), nA;
|
|
1466
1466
|
}
|
|
1467
1467
|
var AQ;
|
|
@@ -1517,14 +1517,14 @@ function ms() {
|
|
|
1517
1517
|
var d = r(u);
|
|
1518
1518
|
d && d !== i && a(c, d, s);
|
|
1519
1519
|
}
|
|
1520
|
-
var
|
|
1521
|
-
n && (
|
|
1522
|
-
for (var b = Q(c), m = Q(u), f = 0; f <
|
|
1523
|
-
var
|
|
1524
|
-
if (!C[
|
|
1525
|
-
var w = o(u,
|
|
1520
|
+
var h = t(u);
|
|
1521
|
+
n && (h = h.concat(n(u)));
|
|
1522
|
+
for (var b = Q(c), m = Q(u), f = 0; f < h.length; ++f) {
|
|
1523
|
+
var v = h[f];
|
|
1524
|
+
if (!C[v] && !(s && s[v]) && !(m && m[v]) && !(b && b[v])) {
|
|
1525
|
+
var w = o(u, v);
|
|
1526
1526
|
try {
|
|
1527
|
-
e(c,
|
|
1527
|
+
e(c, v, w);
|
|
1528
1528
|
} catch {
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
@@ -2143,7 +2143,7 @@ function ec(A) {
|
|
|
2143
2143
|
maxHeight: g
|
|
2144
2144
|
};
|
|
2145
2145
|
if (!C || !C.offsetParent) return o;
|
|
2146
|
-
var r = n.getBoundingClientRect(), i = r.height, a = C.getBoundingClientRect(), c = a.bottom, u = a.height, s = a.top, d = C.offsetParent.getBoundingClientRect(),
|
|
2146
|
+
var r = n.getBoundingClientRect(), i = r.height, a = C.getBoundingClientRect(), c = a.bottom, u = a.height, s = a.top, d = C.offsetParent.getBoundingClientRect(), h = d.top, b = window.innerHeight, m = Ct(n), f = parseInt(getComputedStyle(C).marginBottom, 10), v = parseInt(getComputedStyle(C).marginTop, 10), w = h - v, S = b - s, M = w + m, R = i - m - s, X = c - b + m + f, Y = m + s - v, j = 160;
|
|
2147
2147
|
switch (B) {
|
|
2148
2148
|
case "auto":
|
|
2149
2149
|
case "bottom":
|
|
@@ -2191,7 +2191,7 @@ function ec(A) {
|
|
|
2191
2191
|
};
|
|
2192
2192
|
if (!Q && M >= I || Q && w >= I) {
|
|
2193
2193
|
var q = g;
|
|
2194
|
-
return (!Q && M >= I || Q && w >= I) && (q = Q ? w -
|
|
2194
|
+
return (!Q && M >= I || Q && w >= I) && (q = Q ? w - v : M - v), E && II(n, Y, j), {
|
|
2195
2195
|
placement: "top",
|
|
2196
2196
|
maxHeight: q
|
|
2197
2197
|
};
|
|
@@ -2243,8 +2243,8 @@ var DB = function(g) {
|
|
|
2243
2243
|
shouldScroll: s,
|
|
2244
2244
|
isFixedPosition: u,
|
|
2245
2245
|
theme: c
|
|
2246
|
-
}),
|
|
2247
|
-
|
|
2246
|
+
}), h = I.context.getPortalPlacement;
|
|
2247
|
+
h && h(d), I.setState(d);
|
|
2248
2248
|
}
|
|
2249
2249
|
}, I.getUpdatedProps = function() {
|
|
2250
2250
|
var e = I.props.menuPlacement, t = I.state.placement || DB(e);
|
|
@@ -2361,8 +2361,8 @@ var cc = function(g) {
|
|
|
2361
2361
|
var B = this.props, E = B.appendTo, Q = B.children, e = B.className, t = B.controlElement, n = B.cx, o = B.innerProps, r = B.menuPlacement, i = B.menuPosition, a = B.getStyles, c = i === "fixed";
|
|
2362
2362
|
if (!E && !c || !t)
|
|
2363
2363
|
return null;
|
|
2364
|
-
var u = this.state.placement || DB(r), s = gc(t), d = c ? 0 : window.pageYOffset,
|
|
2365
|
-
offset:
|
|
2364
|
+
var u = this.state.placement || DB(r), s = gc(t), d = c ? 0 : window.pageYOffset, h = s[u] + d, b = {
|
|
2365
|
+
offset: h,
|
|
2366
2366
|
position: i,
|
|
2367
2367
|
rect: s
|
|
2368
2368
|
}, m = K("div", V({
|
|
@@ -2923,15 +2923,15 @@ function WI(A, g) {
|
|
|
2923
2923
|
}
|
|
2924
2924
|
var nl = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
2925
2925
|
function rl(A) {
|
|
2926
|
-
var g = A.defaultInputValue, C = g === void 0 ? "" : g, I = A.defaultMenuIsOpen, B = I === void 0 ? !1 : I, E = A.defaultValue, Q = E === void 0 ? null : E, e = A.inputValue, t = A.menuIsOpen, n = A.onChange, o = A.onInputChange, r = A.onMenuClose, i = A.onMenuOpen, a = A.value, c = QC(A, nl), u = lA(e !== void 0 ? e : C), s = WI(u, 2), d = s[0],
|
|
2926
|
+
var g = A.defaultInputValue, C = g === void 0 ? "" : g, I = A.defaultMenuIsOpen, B = I === void 0 ? !1 : I, E = A.defaultValue, Q = E === void 0 ? null : E, e = A.inputValue, t = A.menuIsOpen, n = A.onChange, o = A.onInputChange, r = A.onMenuClose, i = A.onMenuOpen, a = A.value, c = QC(A, nl), u = lA(e !== void 0 ? e : C), s = WI(u, 2), d = s[0], h = s[1], b = lA(t !== void 0 ? t : B), m = WI(b, 2), f = m[0], v = m[1], w = lA(a !== void 0 ? a : Q), S = WI(w, 2), M = S[0], R = S[1], X = $(function(AA, y) {
|
|
2927
2927
|
typeof n == "function" && n(AA, y), R(AA);
|
|
2928
2928
|
}, [n]), Y = $(function(AA, y) {
|
|
2929
2929
|
var N;
|
|
2930
|
-
typeof o == "function" && (N = o(AA, y)),
|
|
2930
|
+
typeof o == "function" && (N = o(AA, y)), h(N !== void 0 ? N : AA);
|
|
2931
2931
|
}, [o]), j = $(function() {
|
|
2932
|
-
typeof i == "function" && i(),
|
|
2932
|
+
typeof i == "function" && i(), v(!0);
|
|
2933
2933
|
}, [i]), U = $(function() {
|
|
2934
|
-
typeof r == "function" && r(),
|
|
2934
|
+
typeof r == "function" && r(), v(!1);
|
|
2935
2935
|
}, [r]), F = e !== void 0 ? e : d, L = t !== void 0 ? t : f, q = a !== void 0 ? a : M;
|
|
2936
2936
|
return uA(uA({}, c), {}, {
|
|
2937
2937
|
inputValue: F,
|
|
@@ -3043,11 +3043,11 @@ var dl = process.env.NODE_ENV === "production" ? {
|
|
|
3043
3043
|
return "".concat(I).concat(C ? " for search term " + C : "", ".");
|
|
3044
3044
|
}
|
|
3045
3045
|
}, pl = function(g) {
|
|
3046
|
-
var C = g.ariaSelection, I = g.focusedOption, B = g.focusedValue, E = g.focusableOptions, Q = g.isFocused, e = g.selectValue, t = g.selectProps, n = g.id, o = t.ariaLiveMessages, r = t.getOptionLabel, i = t.inputValue, a = t.isMulti, c = t.isOptionDisabled, u = t.isSearchable, s = t.menuIsOpen, d = t.options,
|
|
3046
|
+
var C = g.ariaSelection, I = g.focusedOption, B = g.focusedValue, E = g.focusableOptions, Q = g.isFocused, e = g.selectValue, t = g.selectProps, n = g.id, o = t.ariaLiveMessages, r = t.getOptionLabel, i = t.inputValue, a = t.isMulti, c = t.isOptionDisabled, u = t.isSearchable, s = t.menuIsOpen, d = t.options, h = t.screenReaderStatus, b = t.tabSelectsValue, m = t["aria-label"], f = t["aria-live"], v = pA(function() {
|
|
3047
3047
|
return uA(uA({}, fl), o || {});
|
|
3048
3048
|
}, [o]), w = pA(function() {
|
|
3049
3049
|
var U = "";
|
|
3050
|
-
if (C &&
|
|
3050
|
+
if (C && v.onChange) {
|
|
3051
3051
|
var F = C.option, L = C.options, q = C.removedValue, AA = C.removedValues, y = C.value, N = function(DA) {
|
|
3052
3052
|
return Array.isArray(DA) ? null : DA;
|
|
3053
3053
|
}, k = q || F || N(y), G = k ? r(k) : "", Z = L || AA || void 0, QA = Z ? Z.map(r) : [], iA = uA({
|
|
@@ -3057,12 +3057,12 @@ var dl = process.env.NODE_ENV === "production" ? {
|
|
|
3057
3057
|
label: G,
|
|
3058
3058
|
labels: QA
|
|
3059
3059
|
}, C);
|
|
3060
|
-
U =
|
|
3060
|
+
U = v.onChange(iA);
|
|
3061
3061
|
}
|
|
3062
3062
|
return U;
|
|
3063
|
-
}, [C,
|
|
3063
|
+
}, [C, v, c, e, r]), S = pA(function() {
|
|
3064
3064
|
var U = "", F = I || B, L = !!(I && e && e.includes(I));
|
|
3065
|
-
if (F &&
|
|
3065
|
+
if (F && v.onFocus) {
|
|
3066
3066
|
var q = {
|
|
3067
3067
|
focused: F,
|
|
3068
3068
|
label: r(F),
|
|
@@ -3072,26 +3072,26 @@ var dl = process.env.NODE_ENV === "production" ? {
|
|
|
3072
3072
|
context: F === I ? "menu" : "value",
|
|
3073
3073
|
selectValue: e
|
|
3074
3074
|
};
|
|
3075
|
-
U =
|
|
3075
|
+
U = v.onFocus(q);
|
|
3076
3076
|
}
|
|
3077
3077
|
return U;
|
|
3078
|
-
}, [I, B, r, c,
|
|
3078
|
+
}, [I, B, r, c, v, d, e]), M = pA(function() {
|
|
3079
3079
|
var U = "";
|
|
3080
|
-
if (s && d.length &&
|
|
3081
|
-
var F =
|
|
3080
|
+
if (s && d.length && v.onFilter) {
|
|
3081
|
+
var F = h({
|
|
3082
3082
|
count: E.length
|
|
3083
3083
|
});
|
|
3084
|
-
U =
|
|
3084
|
+
U = v.onFilter({
|
|
3085
3085
|
inputValue: i,
|
|
3086
3086
|
resultsMessage: F
|
|
3087
3087
|
});
|
|
3088
3088
|
}
|
|
3089
3089
|
return U;
|
|
3090
|
-
}, [E, i, s,
|
|
3090
|
+
}, [E, i, s, v, d, h]), R = pA(function() {
|
|
3091
3091
|
var U = "";
|
|
3092
|
-
if (
|
|
3092
|
+
if (v.guidance) {
|
|
3093
3093
|
var F = B ? "value" : s ? "menu" : "input";
|
|
3094
|
-
U =
|
|
3094
|
+
U = v.guidance({
|
|
3095
3095
|
"aria-label": m,
|
|
3096
3096
|
context: F,
|
|
3097
3097
|
isDisabled: I && c(I, e),
|
|
@@ -3101,7 +3101,7 @@ var dl = process.env.NODE_ENV === "production" ? {
|
|
|
3101
3101
|
});
|
|
3102
3102
|
}
|
|
3103
3103
|
return U;
|
|
3104
|
-
}, [m, I, B, a, c, u, s,
|
|
3104
|
+
}, [m, I, B, a, c, u, s, v, e, b]), X = "".concat(S, " ").concat(M, " ").concat(R), Y = K(hB, null, K("span", {
|
|
3105
3105
|
id: "aria-selection"
|
|
3106
3106
|
}, w), K("span", {
|
|
3107
3107
|
id: "aria-context"
|
|
@@ -3426,8 +3426,8 @@ var yl = function(g) {
|
|
|
3426
3426
|
function Sl(A) {
|
|
3427
3427
|
var g = A.isEnabled, C = A.onBottomArrive, I = A.onBottomLeave, B = A.onTopArrive, E = A.onTopLeave, Q = W(!1), e = W(!1), t = W(0), n = W(null), o = $(function(s, d) {
|
|
3428
3428
|
if (n.current !== null) {
|
|
3429
|
-
var
|
|
3430
|
-
S > d && Q.current && (I && I(s), Q.current = !1), w && e.current && (E && E(s), e.current = !1), w && d > S ? (C && !Q.current && C(s),
|
|
3429
|
+
var h = n.current, b = h.scrollTop, m = h.scrollHeight, f = h.clientHeight, v = n.current, w = d > 0, S = m - f - b, M = !1;
|
|
3430
|
+
S > d && Q.current && (I && I(s), Q.current = !1), w && e.current && (E && E(s), e.current = !1), w && d > S ? (C && !Q.current && C(s), v.scrollTop = m, M = !0, Q.current = !0) : !w && -d > b && (B && !e.current && B(s), v.scrollTop = 0, M = !0, e.current = !0), M && yl(s);
|
|
3431
3431
|
}
|
|
3432
3432
|
}, [C, I, B, E]), r = $(function(s) {
|
|
3433
3433
|
o(s, s.deltaY);
|
|
@@ -3923,7 +3923,7 @@ var Dt = function(g) {
|
|
|
3923
3923
|
}, B.shouldHideSelectedOptions = function() {
|
|
3924
3924
|
return Dt(B.props);
|
|
3925
3925
|
}, B.onKeyDown = function(E) {
|
|
3926
|
-
var Q = B.props, e = Q.isMulti, t = Q.backspaceRemovesValue, n = Q.escapeClearsValue, o = Q.inputValue, r = Q.isClearable, i = Q.isDisabled, a = Q.menuIsOpen, c = Q.onKeyDown, u = Q.tabSelectsValue, s = Q.openMenuOnFocus, d = B.state,
|
|
3926
|
+
var Q = B.props, e = Q.isMulti, t = Q.backspaceRemovesValue, n = Q.escapeClearsValue, o = Q.inputValue, r = Q.isClearable, i = Q.isDisabled, a = Q.menuIsOpen, c = Q.onKeyDown, u = Q.tabSelectsValue, s = Q.openMenuOnFocus, d = B.state, h = d.focusedOption, b = d.focusedValue, m = d.selectValue;
|
|
3927
3927
|
if (!i && !(typeof c == "function" && (c(E), E.defaultPrevented))) {
|
|
3928
3928
|
switch (B.blockOptionHover = !0, E.key) {
|
|
3929
3929
|
case "ArrowLeft":
|
|
@@ -3945,18 +3945,18 @@ var Dt = function(g) {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
break;
|
|
3947
3947
|
case "Tab":
|
|
3948
|
-
if (B.isComposing || E.shiftKey || !a || !u || !
|
|
3948
|
+
if (B.isComposing || E.shiftKey || !a || !u || !h || // don't capture the event if the menu opens on focus and the focused
|
|
3949
3949
|
// option is already selected; it breaks the flow of navigation
|
|
3950
|
-
s && B.isOptionSelected(
|
|
3950
|
+
s && B.isOptionSelected(h, m))
|
|
3951
3951
|
return;
|
|
3952
|
-
B.selectOption(
|
|
3952
|
+
B.selectOption(h);
|
|
3953
3953
|
break;
|
|
3954
3954
|
case "Enter":
|
|
3955
3955
|
if (E.keyCode === 229)
|
|
3956
3956
|
break;
|
|
3957
3957
|
if (a) {
|
|
3958
|
-
if (!
|
|
3959
|
-
B.selectOption(
|
|
3958
|
+
if (!h || B.isComposing) return;
|
|
3959
|
+
B.selectOption(h);
|
|
3960
3960
|
break;
|
|
3961
3961
|
}
|
|
3962
3962
|
return;
|
|
@@ -3975,8 +3975,8 @@ var Dt = function(g) {
|
|
|
3975
3975
|
B.openMenu("first");
|
|
3976
3976
|
break;
|
|
3977
3977
|
}
|
|
3978
|
-
if (!
|
|
3979
|
-
B.selectOption(
|
|
3978
|
+
if (!h) return;
|
|
3979
|
+
B.selectOption(h);
|
|
3980
3980
|
break;
|
|
3981
3981
|
case "ArrowUp":
|
|
3982
3982
|
a ? B.focusOption("up") : B.openMenu("last");
|
|
@@ -4236,7 +4236,7 @@ var Dt = function(g) {
|
|
|
4236
4236
|
// Renderers
|
|
4237
4237
|
// ==============================
|
|
4238
4238
|
function() {
|
|
4239
|
-
var B = this.props, E = B.isDisabled, Q = B.isSearchable, e = B.inputId, t = B.inputValue, n = B.tabIndex, o = B.form, r = B.menuIsOpen, i = this.getComponents(), a = i.Input, c = this.state, u = c.inputIsHidden, s = c.ariaSelection, d = this.commonProps,
|
|
4239
|
+
var B = this.props, E = B.isDisabled, Q = B.isSearchable, e = B.inputId, t = B.inputValue, n = B.tabIndex, o = B.form, r = B.menuIsOpen, i = this.getComponents(), a = i.Input, c = this.state, u = c.inputIsHidden, s = c.ariaSelection, d = this.commonProps, h = e || this.getElementId("input"), b = uA(uA({
|
|
4240
4240
|
"aria-autocomplete": "list",
|
|
4241
4241
|
"aria-expanded": r,
|
|
4242
4242
|
"aria-haspopup": !0,
|
|
@@ -4258,7 +4258,7 @@ var Dt = function(g) {
|
|
|
4258
4258
|
autoCapitalize: "none",
|
|
4259
4259
|
autoComplete: "off",
|
|
4260
4260
|
autoCorrect: "off",
|
|
4261
|
-
id:
|
|
4261
|
+
id: h,
|
|
4262
4262
|
innerRef: this.getInputRef,
|
|
4263
4263
|
isDisabled: E,
|
|
4264
4264
|
isHidden: u,
|
|
@@ -4271,7 +4271,7 @@ var Dt = function(g) {
|
|
|
4271
4271
|
type: "text",
|
|
4272
4272
|
value: t
|
|
4273
4273
|
}, b)) : /* @__PURE__ */ O.createElement(Dl, V({
|
|
4274
|
-
id:
|
|
4274
|
+
id: h,
|
|
4275
4275
|
innerRef: this.getInputRef,
|
|
4276
4276
|
onBlur: this.onInputBlur,
|
|
4277
4277
|
onChange: fI,
|
|
@@ -4287,16 +4287,16 @@ var Dt = function(g) {
|
|
|
4287
4287
|
}, {
|
|
4288
4288
|
key: "renderPlaceholderOrValue",
|
|
4289
4289
|
value: function() {
|
|
4290
|
-
var B = this, E = this.getComponents(), Q = E.MultiValue, e = E.MultiValueContainer, t = E.MultiValueLabel, n = E.MultiValueRemove, o = E.SingleValue, r = E.Placeholder, i = this.commonProps, a = this.props, c = a.controlShouldRenderValue, u = a.isDisabled, s = a.isMulti, d = a.inputValue,
|
|
4290
|
+
var B = this, E = this.getComponents(), Q = E.MultiValue, e = E.MultiValueContainer, t = E.MultiValueLabel, n = E.MultiValueRemove, o = E.SingleValue, r = E.Placeholder, i = this.commonProps, a = this.props, c = a.controlShouldRenderValue, u = a.isDisabled, s = a.isMulti, d = a.inputValue, h = a.placeholder, b = this.state, m = b.selectValue, f = b.focusedValue, v = b.isFocused;
|
|
4291
4291
|
if (!this.hasValue() || !c)
|
|
4292
4292
|
return d ? null : /* @__PURE__ */ O.createElement(r, V({}, i, {
|
|
4293
4293
|
key: "placeholder",
|
|
4294
4294
|
isDisabled: u,
|
|
4295
|
-
isFocused:
|
|
4295
|
+
isFocused: v,
|
|
4296
4296
|
innerProps: {
|
|
4297
4297
|
id: this.getElementId("placeholder")
|
|
4298
4298
|
}
|
|
4299
|
-
}),
|
|
4299
|
+
}), h);
|
|
4300
4300
|
if (s)
|
|
4301
4301
|
return m.map(function(S, M) {
|
|
4302
4302
|
var R = S === f, X = "".concat(B.getOptionLabel(S), "-").concat(B.getOptionValue(S));
|
|
@@ -4392,7 +4392,7 @@ var Dt = function(g) {
|
|
|
4392
4392
|
}, {
|
|
4393
4393
|
key: "renderMenu",
|
|
4394
4394
|
value: function() {
|
|
4395
|
-
var B = this, E = this.getComponents(), Q = E.Group, e = E.GroupHeading, t = E.Menu, n = E.MenuList, o = E.MenuPortal, r = E.LoadingMessage, i = E.NoOptionsMessage, a = E.Option, c = this.commonProps, u = this.state.focusedOption, s = this.props, d = s.captureMenuScroll,
|
|
4395
|
+
var B = this, E = this.getComponents(), Q = E.Group, e = E.GroupHeading, t = E.Menu, n = E.MenuList, o = E.MenuPortal, r = E.LoadingMessage, i = E.NoOptionsMessage, a = E.Option, c = this.commonProps, u = this.state.focusedOption, s = this.props, d = s.captureMenuScroll, h = s.inputValue, b = s.isLoading, m = s.loadingMessage, f = s.minMenuHeight, v = s.maxMenuHeight, w = s.menuIsOpen, S = s.menuPlacement, M = s.menuPosition, R = s.menuPortalTarget, X = s.menuShouldBlockScroll, Y = s.menuShouldScrollIntoView, j = s.noOptionsMessage, U = s.onMenuScrollToTop, F = s.onMenuScrollToBottom;
|
|
4396
4396
|
if (!w) return null;
|
|
4397
4397
|
var L = function(Z, QA) {
|
|
4398
4398
|
var iA = Z.type, cA = Z.data, DA = Z.isDisabled, Cg = Z.isSelected, HA = Z.label, qA = Z.value, Og = u === cA, x = DA ? void 0 : function() {
|
|
@@ -4441,20 +4441,20 @@ var Dt = function(g) {
|
|
|
4441
4441
|
});
|
|
4442
4442
|
else if (b) {
|
|
4443
4443
|
var AA = m({
|
|
4444
|
-
inputValue:
|
|
4444
|
+
inputValue: h
|
|
4445
4445
|
});
|
|
4446
4446
|
if (AA === null) return null;
|
|
4447
4447
|
q = /* @__PURE__ */ O.createElement(r, c, AA);
|
|
4448
4448
|
} else {
|
|
4449
4449
|
var y = j({
|
|
4450
|
-
inputValue:
|
|
4450
|
+
inputValue: h
|
|
4451
4451
|
});
|
|
4452
4452
|
if (y === null) return null;
|
|
4453
4453
|
q = /* @__PURE__ */ O.createElement(i, c, y);
|
|
4454
4454
|
}
|
|
4455
4455
|
var N = {
|
|
4456
4456
|
minMenuHeight: f,
|
|
4457
|
-
maxMenuHeight:
|
|
4457
|
+
maxMenuHeight: v,
|
|
4458
4458
|
menuPlacement: S,
|
|
4459
4459
|
menuPosition: M,
|
|
4460
4460
|
menuShouldScrollIntoView: Y
|
|
@@ -4574,17 +4574,17 @@ var Dt = function(g) {
|
|
|
4574
4574
|
}], [{
|
|
4575
4575
|
key: "getDerivedStateFromProps",
|
|
4576
4576
|
value: function(B, E) {
|
|
4577
|
-
var Q = E.prevProps, e = E.clearFocusValueOnUpdate, t = E.inputIsHiddenAfterUpdate, n = E.ariaSelection, o = E.isFocused, r = E.prevWasFocused, i = B.options, a = B.value, c = B.menuIsOpen, u = B.inputValue, s = B.isMulti, d = eQ(a),
|
|
4577
|
+
var Q = E.prevProps, e = E.clearFocusValueOnUpdate, t = E.inputIsHiddenAfterUpdate, n = E.ariaSelection, o = E.isFocused, r = E.prevWasFocused, i = B.options, a = B.value, c = B.menuIsOpen, u = B.inputValue, s = B.isMulti, d = eQ(a), h = {};
|
|
4578
4578
|
if (Q && (a !== Q.value || i !== Q.options || c !== Q.menuIsOpen || u !== Q.inputValue)) {
|
|
4579
4579
|
var b = c ? Ll(B, d) : [], m = e ? Xl(E, d) : null, f = zl(E, b);
|
|
4580
|
-
|
|
4580
|
+
h = {
|
|
4581
4581
|
selectValue: d,
|
|
4582
4582
|
focusedOption: f,
|
|
4583
4583
|
focusedValue: m,
|
|
4584
4584
|
clearFocusValueOnUpdate: !1
|
|
4585
4585
|
};
|
|
4586
4586
|
}
|
|
4587
|
-
var
|
|
4587
|
+
var v = t != null && B !== Q ? {
|
|
4588
4588
|
inputIsHidden: t,
|
|
4589
4589
|
inputIsHiddenAfterUpdate: void 0
|
|
4590
4590
|
} : {}, w = n, S = o && r;
|
|
@@ -4592,7 +4592,7 @@ var Dt = function(g) {
|
|
|
4592
4592
|
value: EI(s, d, d[0] || null),
|
|
4593
4593
|
options: d,
|
|
4594
4594
|
action: "initial-input-focus"
|
|
4595
|
-
}, S = !r), n?.action === "initial-input-focus" && (w = null), uA(uA(uA({},
|
|
4595
|
+
}, S = !r), n?.action === "initial-input-focus" && (w = null), uA(uA(uA({}, h), v), {}, {
|
|
4596
4596
|
prevProps: B,
|
|
4597
4597
|
ariaSelection: w,
|
|
4598
4598
|
prevWasFocused: S
|
|
@@ -4797,8 +4797,8 @@ function hu(A, g) {
|
|
|
4797
4797
|
if (!n || !o) return o;
|
|
4798
4798
|
const d = new Set(
|
|
4799
4799
|
Array.isArray(B) ? B.map((m) => m.value) : B ? [B.value] : []
|
|
4800
|
-
),
|
|
4801
|
-
return [...
|
|
4800
|
+
), h = o.filter((m) => d.has(m.value)), b = o.filter((m) => !d.has(m.value));
|
|
4801
|
+
return [...h, ...b];
|
|
4802
4802
|
}, [o, n, B]), s = pA(() => !r || !u ? u : u.map((d) => ({
|
|
4803
4803
|
...d,
|
|
4804
4804
|
isDisabled: r(d)
|
|
@@ -5009,7 +5009,7 @@ nd.displayName = "PiAvatar";
|
|
|
5009
5009
|
var vQ = function(A) {
|
|
5010
5010
|
return typeof A == "object" && A !== null;
|
|
5011
5011
|
}, rd = function(A) {
|
|
5012
|
-
var g = A.value, C = g === void 0 ? "" : g, I = A.numInputs, B = I === void 0 ? 4 : I, E = A.onChange, Q = A.onPaste, e = A.renderInput, t = A.shouldAutoFocus, n = t === void 0 ? !1 : t, o = A.inputType, r = o === void 0 ? "text" : o, i = A.renderSeparator, a = A.placeholder, c = A.containerStyle, u = A.inputStyle, s = A.skipDefaultStyles, d = s === void 0 ? !1 : s,
|
|
5012
|
+
var g = A.value, C = g === void 0 ? "" : g, I = A.numInputs, B = I === void 0 ? 4 : I, E = A.onChange, Q = A.onPaste, e = A.renderInput, t = A.shouldAutoFocus, n = t === void 0 ? !1 : t, o = A.inputType, r = o === void 0 ? "text" : o, i = A.renderSeparator, a = A.placeholder, c = A.containerStyle, u = A.inputStyle, s = A.skipDefaultStyles, d = s === void 0 ? !1 : s, h = D.useState(0), b = h[0], m = h[1], f = D.useRef([]), v = function() {
|
|
5013
5013
|
return C ? C.toString().split("") : [];
|
|
5014
5014
|
}, w = r === "number" || r === "tel";
|
|
5015
5015
|
D.useEffect(function() {
|
|
@@ -5048,13 +5048,13 @@ var vQ = function(A) {
|
|
|
5048
5048
|
}, j = function() {
|
|
5049
5049
|
m(b - 1);
|
|
5050
5050
|
}, U = function(y) {
|
|
5051
|
-
var N =
|
|
5051
|
+
var N = v();
|
|
5052
5052
|
[y.code, y.key].includes("Backspace") ? (y.preventDefault(), L(""), F(b - 1)) : y.code === "Delete" ? (y.preventDefault(), L("")) : y.code === "ArrowLeft" ? (y.preventDefault(), F(b - 1)) : y.code === "ArrowRight" || y.key === N[b] ? (y.preventDefault(), F(b + 1)) : (y.code === "Spacebar" || y.code === "Space" || y.code === "ArrowUp" || y.code === "ArrowDown") && y.preventDefault();
|
|
5053
5053
|
}, F = function(y) {
|
|
5054
5054
|
var N, k, G = Math.max(Math.min(B - 1, y), 0);
|
|
5055
5055
|
f.current[G] && ((N = f.current[G]) === null || N === void 0 || N.focus(), (k = f.current[G]) === null || k === void 0 || k.select(), m(G));
|
|
5056
5056
|
}, L = function(y) {
|
|
5057
|
-
var N =
|
|
5057
|
+
var N = v();
|
|
5058
5058
|
N[b] = y[0], q(N);
|
|
5059
5059
|
}, q = function(y) {
|
|
5060
5060
|
var N = y.join("");
|
|
@@ -5062,7 +5062,7 @@ var vQ = function(A) {
|
|
|
5062
5062
|
}, AA = function(y) {
|
|
5063
5063
|
var N;
|
|
5064
5064
|
y.preventDefault();
|
|
5065
|
-
var k =
|
|
5065
|
+
var k = v(), G = b, Z = y.clipboardData.getData("text/plain").slice(0, B - b).split("");
|
|
5066
5066
|
if (!(w && Z.some(function(iA) {
|
|
5067
5067
|
return isNaN(Number(iA));
|
|
5068
5068
|
}))) {
|
|
@@ -5079,7 +5079,7 @@ var vQ = function(A) {
|
|
|
5079
5079
|
D.Fragment,
|
|
5080
5080
|
{ key: y },
|
|
5081
5081
|
e({
|
|
5082
|
-
value: (N =
|
|
5082
|
+
value: (N = v()[y]) !== null && N !== void 0 ? N : "",
|
|
5083
5083
|
placeholder: (G = (k = S()) === null || k === void 0 ? void 0 : k[y]) !== null && G !== void 0 ? G : void 0,
|
|
5084
5084
|
ref: function(Z) {
|
|
5085
5085
|
return f.current[y] = Z;
|
|
@@ -5206,7 +5206,7 @@ function Nt(A) {
|
|
|
5206
5206
|
const i = Tg(A.timeZone, A), a = i > 0 ? Math.floor(i) : Math.ceil(i), u = -(/* @__PURE__ */ new Date(+A)).getTimezoneOffset() - a, s = a !== C, d = u - t;
|
|
5207
5207
|
if (s && d) {
|
|
5208
5208
|
Date.prototype.setUTCMinutes.call(A, Date.prototype.getUTCMinutes.call(A) + d);
|
|
5209
|
-
const
|
|
5209
|
+
const h = Tg(A.timeZone, A), b = h > 0 ? Math.floor(h) : Math.ceil(h), m = a - b;
|
|
5210
5210
|
m && (A.internal.setUTCMinutes(A.internal.getUTCMinutes() + m), Date.prototype.setUTCMinutes.call(A, Date.prototype.getUTCMinutes.call(A) + m));
|
|
5211
5211
|
}
|
|
5212
5212
|
}
|
|
@@ -7415,7 +7415,7 @@ function hg(A, g, C = cg) {
|
|
|
7415
7415
|
});
|
|
7416
7416
|
}
|
|
7417
7417
|
function Xp(A, g, C, I, B) {
|
|
7418
|
-
const { disabled: E, hidden: Q, modifiers: e, showOutsideDays: t, broadcastCalendar: n, today: o = B.today() } = g, { isSameDay: r, isSameMonth: i, startOfMonth: a, isBefore: c, endOfMonth: u, isAfter: s } = B, d = C && a(C),
|
|
7418
|
+
const { disabled: E, hidden: Q, modifiers: e, showOutsideDays: t, broadcastCalendar: n, today: o = B.today() } = g, { isSameDay: r, isSameMonth: i, startOfMonth: a, isBefore: c, endOfMonth: u, isAfter: s } = B, d = C && a(C), h = I && u(I), b = {
|
|
7419
7419
|
[fA.focused]: [],
|
|
7420
7420
|
[fA.outside]: [],
|
|
7421
7421
|
[fA.disabled]: [],
|
|
@@ -7423,15 +7423,15 @@ function Xp(A, g, C, I, B) {
|
|
|
7423
7423
|
[fA.today]: []
|
|
7424
7424
|
}, m = {};
|
|
7425
7425
|
for (const f of A) {
|
|
7426
|
-
const { date:
|
|
7427
|
-
!n && !t && S || n && t === !1 && S, j = r(
|
|
7426
|
+
const { date: v, displayMonth: w } = f, S = !!(w && !i(v, w)), M = !!(d && c(v, d)), R = !!(h && s(v, h)), X = !!(E && hg(v, E, B)), Y = !!(Q && hg(v, Q, B)) || M || R || // Broadcast calendar will show outside days as default
|
|
7427
|
+
!n && !t && S || n && t === !1 && S, j = r(v, o);
|
|
7428
7428
|
S && b.outside.push(f), X && b.disabled.push(f), Y && b.hidden.push(f), j && b.today.push(f), e && Object.keys(e).forEach((U) => {
|
|
7429
7429
|
const F = e?.[U];
|
|
7430
|
-
F && hg(
|
|
7430
|
+
F && hg(v, F, B) && (m[U] ? m[U].push(f) : m[U] = [f]);
|
|
7431
7431
|
});
|
|
7432
7432
|
}
|
|
7433
7433
|
return (f) => {
|
|
7434
|
-
const
|
|
7434
|
+
const v = {
|
|
7435
7435
|
[fA.focused]: !1,
|
|
7436
7436
|
[fA.disabled]: !1,
|
|
7437
7437
|
[fA.hidden]: !1,
|
|
@@ -7440,12 +7440,12 @@ function Xp(A, g, C, I, B) {
|
|
|
7440
7440
|
}, w = {};
|
|
7441
7441
|
for (const S in b) {
|
|
7442
7442
|
const M = b[S];
|
|
7443
|
-
|
|
7443
|
+
v[S] = M.some((R) => R === f);
|
|
7444
7444
|
}
|
|
7445
7445
|
for (const S in m)
|
|
7446
7446
|
w[S] = m[S].some((M) => M === f);
|
|
7447
7447
|
return {
|
|
7448
|
-
...
|
|
7448
|
+
...v,
|
|
7449
7449
|
// custom modifiers should override all the previous ones
|
|
7450
7450
|
...w
|
|
7451
7451
|
};
|
|
@@ -7751,26 +7751,26 @@ function dh(A, g, { classNames: C, months: I, focused: B, dateLib: E }) {
|
|
|
7751
7751
|
m && b.contains(m) && b.removeChild(m);
|
|
7752
7752
|
const f = gB(b);
|
|
7753
7753
|
f && f.classList.remove(i);
|
|
7754
|
-
const
|
|
7755
|
-
|
|
7754
|
+
const v = CB(b);
|
|
7755
|
+
v && v.classList.remove(a);
|
|
7756
7756
|
}), Q.current = u) : Q.current = null, t.current || o || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
7757
7757
|
B)
|
|
7758
7758
|
return;
|
|
7759
7759
|
const s = c instanceof HTMLElement ? AB(c) : [], d = AB(A.current);
|
|
7760
|
-
if (d?.every((
|
|
7760
|
+
if (d?.every((h) => h instanceof HTMLElement) && s && s.every((h) => h instanceof HTMLElement)) {
|
|
7761
7761
|
t.current = !0, A.current.style.isolation = "isolate";
|
|
7762
|
-
const
|
|
7763
|
-
|
|
7762
|
+
const h = lh(A.current);
|
|
7763
|
+
h && (h.style.zIndex = "1"), d.forEach((b, m) => {
|
|
7764
7764
|
const f = s[m];
|
|
7765
7765
|
if (!f)
|
|
7766
7766
|
return;
|
|
7767
7767
|
b.style.position = "relative", b.style.overflow = "hidden";
|
|
7768
|
-
const
|
|
7769
|
-
|
|
7768
|
+
const v = gB(b);
|
|
7769
|
+
v && v.classList.add(i);
|
|
7770
7770
|
const w = CB(b);
|
|
7771
7771
|
w && w.classList.add(a);
|
|
7772
7772
|
const S = () => {
|
|
7773
|
-
t.current = !1, A.current && (A.current.style.isolation = ""),
|
|
7773
|
+
t.current = !1, A.current && (A.current.style.isolation = ""), h && (h.style.zIndex = ""), v && v.classList.remove(i), w && w.classList.remove(a), b.style.position = "", b.style.overflow = "", b.contains(f) && b.removeChild(f);
|
|
7774
7774
|
};
|
|
7775
7775
|
f.style.pointerEvents = "none", f.style.position = "absolute", f.style.overflow = "hidden", f.setAttribute("aria-hidden", "true");
|
|
7776
7776
|
const M = uh(f);
|
|
@@ -7784,7 +7784,7 @@ function dh(A, g, { classNames: C, months: I, focused: B, dateLib: E }) {
|
|
|
7784
7784
|
});
|
|
7785
7785
|
}
|
|
7786
7786
|
function fh(A, g, C, I) {
|
|
7787
|
-
const B = A[0], E = A[A.length - 1], { ISOWeek: Q, fixedWeeks: e, broadcastCalendar: t } = C ?? {}, { addDays: n, differenceInCalendarDays: o, differenceInCalendarMonths: r, endOfBroadcastWeek: i, endOfISOWeek: a, endOfMonth: c, endOfWeek: u, isAfter: s, startOfBroadcastWeek: d, startOfISOWeek:
|
|
7787
|
+
const B = A[0], E = A[A.length - 1], { ISOWeek: Q, fixedWeeks: e, broadcastCalendar: t } = C ?? {}, { addDays: n, differenceInCalendarDays: o, differenceInCalendarMonths: r, endOfBroadcastWeek: i, endOfISOWeek: a, endOfMonth: c, endOfWeek: u, isAfter: s, startOfBroadcastWeek: d, startOfISOWeek: h, startOfWeek: b } = I, m = t ? d(B, I) : Q ? h(B) : b(B), f = t ? i(E) : Q ? a(c(E)) : u(c(E)), v = g && (t ? i(g) : Q ? a(g) : u(g)), w = v && s(f, v) ? v : f, S = o(w, m), M = r(E, B) + 1, R = [];
|
|
7788
7788
|
for (let j = 0; j <= S; j++) {
|
|
7789
7789
|
const U = n(m, j);
|
|
7790
7790
|
R.push(U);
|
|
@@ -7828,19 +7828,19 @@ function OQ(A, g, C, I) {
|
|
|
7828
7828
|
}
|
|
7829
7829
|
function vh(A, g, C, I) {
|
|
7830
7830
|
const { addDays: B, endOfBroadcastWeek: E, endOfISOWeek: Q, endOfMonth: e, endOfWeek: t, getISOWeek: n, getWeek: o, startOfBroadcastWeek: r, startOfISOWeek: i, startOfWeek: a } = I, c = A.reduce((u, s) => {
|
|
7831
|
-
const d = C.broadcastCalendar ? r(s, I) : C.ISOWeek ? i(s) : a(s),
|
|
7831
|
+
const d = C.broadcastCalendar ? r(s, I) : C.ISOWeek ? i(s) : a(s), h = C.broadcastCalendar ? E(s) : C.ISOWeek ? Q(e(s)) : t(e(s)), b = g.filter((w) => w >= d && w <= h), m = C.broadcastCalendar ? 35 : 42;
|
|
7832
7832
|
if (C.fixedWeeks && b.length < m) {
|
|
7833
7833
|
const w = g.filter((S) => {
|
|
7834
7834
|
const M = m - b.length;
|
|
7835
|
-
return S >
|
|
7835
|
+
return S > h && S <= B(h, M);
|
|
7836
7836
|
});
|
|
7837
7837
|
b.push(...w);
|
|
7838
7838
|
}
|
|
7839
7839
|
const f = b.reduce((w, S) => {
|
|
7840
7840
|
const M = C.ISOWeek ? n(S) : o(S), R = w.find((Y) => Y.weekNumber === M), X = new Lt(S, s, I);
|
|
7841
7841
|
return R ? R.days.push(X) : w.push(new dp(M, [X])), w;
|
|
7842
|
-
}, []),
|
|
7843
|
-
return u.push(
|
|
7842
|
+
}, []), v = new up(s, f);
|
|
7843
|
+
return u.push(v), u;
|
|
7844
7844
|
}, []);
|
|
7845
7845
|
return C.reverseMonths ? c.reverse() : c;
|
|
7846
7846
|
}
|
|
@@ -7895,14 +7895,14 @@ function yh(A, g) {
|
|
|
7895
7895
|
ISOWeek: A.ISOWeek,
|
|
7896
7896
|
fixedWeeks: A.fixedWeeks,
|
|
7897
7897
|
broadcastCalendar: A.broadcastCalendar
|
|
7898
|
-
}, g),
|
|
7898
|
+
}, g), v = vh(m, f, {
|
|
7899
7899
|
broadcastCalendar: A.broadcastCalendar,
|
|
7900
7900
|
fixedWeeks: A.fixedWeeks,
|
|
7901
7901
|
ISOWeek: A.ISOWeek,
|
|
7902
7902
|
reverseMonths: A.reverseMonths
|
|
7903
|
-
}, g), w = Dh(
|
|
7903
|
+
}, g), w = Dh(v), S = ph(v), M = wh(e, C, A, g), R = mh(e, I, A, g);
|
|
7904
7904
|
return {
|
|
7905
|
-
months:
|
|
7905
|
+
months: v,
|
|
7906
7906
|
weeks: w,
|
|
7907
7907
|
days: S,
|
|
7908
7908
|
previousMonth: M,
|
|
@@ -7921,7 +7921,7 @@ function yh(A, g) {
|
|
|
7921
7921
|
A.numberOfMonths,
|
|
7922
7922
|
A.pagedNavigation,
|
|
7923
7923
|
A.reverseMonths
|
|
7924
|
-
]), { disableNavigation: c, onMonthChange: u } = A, s = (m) => o.some((f) => f.days.some((
|
|
7924
|
+
]), { disableNavigation: c, onMonthChange: u } = A, s = (m) => o.some((f) => f.days.some((v) => v.isEqualTo(m))), d = (m) => {
|
|
7925
7925
|
if (c)
|
|
7926
7926
|
return;
|
|
7927
7927
|
let f = B(m);
|
|
@@ -7957,16 +7957,16 @@ function Sh(A, g, C, I) {
|
|
|
7957
7957
|
return B || (B = A.find((Q) => RQ(g(Q)))), B;
|
|
7958
7958
|
}
|
|
7959
7959
|
function Ph(A, g, C, I, B, E, Q) {
|
|
7960
|
-
const { ISOWeek: e, broadcastCalendar: t } = E, { addDays: n, addMonths: o, addWeeks: r, addYears: i, endOfBroadcastWeek: a, endOfISOWeek: c, endOfWeek: u, max: s, min: d, startOfBroadcastWeek:
|
|
7961
|
-
let
|
|
7960
|
+
const { ISOWeek: e, broadcastCalendar: t } = E, { addDays: n, addMonths: o, addWeeks: r, addYears: i, endOfBroadcastWeek: a, endOfISOWeek: c, endOfWeek: u, max: s, min: d, startOfBroadcastWeek: h, startOfISOWeek: b, startOfWeek: m } = Q;
|
|
7961
|
+
let v = {
|
|
7962
7962
|
day: n,
|
|
7963
7963
|
week: r,
|
|
7964
7964
|
month: o,
|
|
7965
7965
|
year: i,
|
|
7966
|
-
startOfWeek: (w) => t ?
|
|
7966
|
+
startOfWeek: (w) => t ? h(w, Q) : e ? b(w) : m(w),
|
|
7967
7967
|
endOfWeek: (w) => t ? a(w) : e ? c(w) : u(w)
|
|
7968
7968
|
}[A](C, g === "after" ? 1 : -1);
|
|
7969
|
-
return g === "before" && I ?
|
|
7969
|
+
return g === "before" && I ? v = s([I, v]) : g === "after" && B && (v = d([B, v])), v;
|
|
7970
7970
|
}
|
|
7971
7971
|
function Qn(A, g, C, I, B, E, Q, e = 0) {
|
|
7972
7972
|
if (e > 365)
|
|
@@ -8180,7 +8180,7 @@ function iE(A) {
|
|
|
8180
8180
|
g.classNames
|
|
8181
8181
|
]);
|
|
8182
8182
|
g.today || (g = { ...g, today: Q.today() });
|
|
8183
|
-
const { captionLayout: n, mode: o, navLayout: r, numberOfMonths: i = 1, onDayBlur: a, onDayClick: c, onDayFocus: u, onDayKeyDown: s, onDayMouseEnter: d, onDayMouseLeave:
|
|
8183
|
+
const { captionLayout: n, mode: o, navLayout: r, numberOfMonths: i = 1, onDayBlur: a, onDayClick: c, onDayFocus: u, onDayKeyDown: s, onDayMouseEnter: d, onDayMouseLeave: h, onNextClick: b, onPrevClick: m, showWeekNumber: f, styles: v } = g, { formatCaption: w, formatDay: S, formatMonthDropdown: M, formatWeekNumber: R, formatWeekNumberHeader: X, formatWeekdayName: Y, formatYearDropdown: j } = B, U = yh(g, Q), { days: F, months: L, navStart: q, navEnd: AA, previousMonth: y, nextMonth: N, goToMonth: k } = U, G = Xp(F, g, q, AA, Q), { isSelected: Z, select: QA, selected: iA } = Uh(g, Q) ?? {}, { blur: cA, focused: DA, isFocusTarget: Cg, moveFocus: HA, setFocused: qA } = Nh(g, U, G, Z ?? (() => !1), Q), { labelDayButton: Og, labelGridcell: x, labelGrid: TA, labelMonthDropdown: lg, labelNav: Rg, labelPrevious: Rr, labelNext: xr, labelWeekday: Mr, labelWeekNumber: kr, labelWeekNumberHeader: Ur, labelYearDropdown: Gr } = E, Jr = pA(() => ih(Q, g.ISOWeek, g.broadcastCalendar, g.today), [Q, g.ISOWeek, g.broadcastCalendar, g.today]), YE = o !== void 0 || c !== void 0, TI = $(() => {
|
|
8184
8184
|
y && (k(y), m?.(y));
|
|
8185
8185
|
}, [y, k, m]), KI = $(() => {
|
|
8186
8186
|
N && (k(N), b?.(N));
|
|
@@ -8216,8 +8216,8 @@ function iE(A) {
|
|
|
8216
8216
|
}, [HA, s, g.dir]), Vr = $((_, eA) => (z) => {
|
|
8217
8217
|
d?.(_.date, eA, z);
|
|
8218
8218
|
}, [d]), Lr = $((_, eA) => (z) => {
|
|
8219
|
-
|
|
8220
|
-
}, [
|
|
8219
|
+
h?.(_.date, eA, z);
|
|
8220
|
+
}, [h]), Xr = $((_) => (eA) => {
|
|
8221
8221
|
const z = Number(eA.target.value), IA = Q.setMonth(Q.startOfMonth(_), z);
|
|
8222
8222
|
k(IA);
|
|
8223
8223
|
}, [Q, k]), zr = $((_) => (eA) => {
|
|
@@ -8225,8 +8225,8 @@ function iE(A) {
|
|
|
8225
8225
|
k(IA);
|
|
8226
8226
|
}, [Q, k]), { className: Wr, style: jr } = pA(() => ({
|
|
8227
8227
|
className: [t[H.Root], g.className].filter(Boolean).join(" "),
|
|
8228
|
-
style: { ...
|
|
8229
|
-
}), [t, g.className, g.style,
|
|
8228
|
+
style: { ...v?.[H.Root], ...g.style }
|
|
8229
|
+
}), [t, g.className, g.style, v]), qr = jp(g), VE = W(null);
|
|
8230
8230
|
dh(VE, !!g.animate, {
|
|
8231
8231
|
classNames: t,
|
|
8232
8232
|
months: L,
|
|
@@ -8245,7 +8245,7 @@ function iE(A) {
|
|
|
8245
8245
|
getModifiers: G,
|
|
8246
8246
|
components: I,
|
|
8247
8247
|
classNames: t,
|
|
8248
|
-
styles:
|
|
8248
|
+
styles: v,
|
|
8249
8249
|
labels: E,
|
|
8250
8250
|
formatters: B
|
|
8251
8251
|
};
|
|
@@ -8257,14 +8257,14 @@ function iE(A) {
|
|
|
8257
8257
|
{ rootRef: g.animate ? VE : void 0, className: Wr, style: jr, dir: g.dir, id: g.id, lang: g.lang, nonce: g.nonce, title: g.title, role: g.role, "aria-label": g["aria-label"], "aria-labelledby": g["aria-labelledby"], ...qr },
|
|
8258
8258
|
D.createElement(
|
|
8259
8259
|
I.Months,
|
|
8260
|
-
{ className: t[H.Months], style:
|
|
8261
|
-
!g.hideNavigation && !r && D.createElement(I.Nav, { "data-animated-nav": g.animate ? "true" : void 0, className: t[H.Nav], style:
|
|
8260
|
+
{ className: t[H.Months], style: v?.[H.Months] },
|
|
8261
|
+
!g.hideNavigation && !r && D.createElement(I.Nav, { "data-animated-nav": g.animate ? "true" : void 0, className: t[H.Nav], style: v?.[H.Nav], "aria-label": Rg(), onPreviousClick: TI, onNextClick: KI, previousMonth: y, nextMonth: N }),
|
|
8262
8262
|
L.map((_, eA) => D.createElement(
|
|
8263
8263
|
I.Month,
|
|
8264
8264
|
{
|
|
8265
8265
|
"data-animated-month": g.animate ? "true" : void 0,
|
|
8266
8266
|
className: t[H.Month],
|
|
8267
|
-
style:
|
|
8267
|
+
style: v?.[H.Month],
|
|
8268
8268
|
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
8269
8269
|
key: eA,
|
|
8270
8270
|
displayIndex: eA,
|
|
@@ -8275,11 +8275,11 @@ function iE(A) {
|
|
|
8275
8275
|
{ type: "button", className: t[H.PreviousMonthButton], tabIndex: y ? void 0 : -1, "aria-disabled": y ? void 0 : !0, "aria-label": Rr(y), onClick: TI, "data-animated-button": g.animate ? "true" : void 0 },
|
|
8276
8276
|
D.createElement(I.Chevron, { disabled: y ? void 0 : !0, className: t[H.Chevron], orientation: g.dir === "rtl" ? "right" : "left" })
|
|
8277
8277
|
),
|
|
8278
|
-
D.createElement(I.MonthCaption, { "data-animated-caption": g.animate ? "true" : void 0, className: t[H.MonthCaption], style:
|
|
8278
|
+
D.createElement(I.MonthCaption, { "data-animated-caption": g.animate ? "true" : void 0, className: t[H.MonthCaption], style: v?.[H.MonthCaption], calendarMonth: _, displayIndex: eA }, n?.startsWith("dropdown") ? D.createElement(
|
|
8279
8279
|
I.DropdownNav,
|
|
8280
|
-
{ className: t[H.Dropdowns], style:
|
|
8280
|
+
{ className: t[H.Dropdowns], style: v?.[H.Dropdowns] },
|
|
8281
8281
|
(() => {
|
|
8282
|
-
const z = n === "dropdown" || n === "dropdown-months" ? D.createElement(I.MonthsDropdown, { key: "month", className: t[H.MonthsDropdown], "aria-label": lg(), classNames: t, components: I, disabled: !!g.disableNavigation, onChange: Xr(_.date), options: rh(_.date, q, AA, B, Q), style:
|
|
8282
|
+
const z = n === "dropdown" || n === "dropdown-months" ? D.createElement(I.MonthsDropdown, { key: "month", className: t[H.MonthsDropdown], "aria-label": lg(), classNames: t, components: I, disabled: !!g.disableNavigation, onChange: Xr(_.date), options: rh(_.date, q, AA, B, Q), style: v?.[H.Dropdown], value: Q.getMonth(_.date) }) : D.createElement("span", { key: "month" }, M(_.date, Q)), IA = n === "dropdown" || n === "dropdown-years" ? D.createElement(I.YearsDropdown, { key: "year", className: t[H.YearsDropdown], "aria-label": Gr(Q.options), classNames: t, components: I, disabled: !!g.disableNavigation, onChange: zr(_.date), options: ah(q, AA, B, Q, !!g.reverseYears), style: v?.[H.Dropdown], value: Q.getYear(_.date) }) : D.createElement("span", { key: "year" }, j(_.date, Q));
|
|
8283
8283
|
return Q.getMonthYearOrder() === "year-first" ? [IA, z] : [z, IA];
|
|
8284
8284
|
})(),
|
|
8285
8285
|
D.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -8300,20 +8300,20 @@ function iE(A) {
|
|
|
8300
8300
|
{ type: "button", className: t[H.NextMonthButton], tabIndex: N ? void 0 : -1, "aria-disabled": N ? void 0 : !0, "aria-label": xr(N), onClick: KI, "data-animated-button": g.animate ? "true" : void 0 },
|
|
8301
8301
|
D.createElement(I.Chevron, { disabled: N ? void 0 : !0, className: t[H.Chevron], orientation: g.dir === "rtl" ? "left" : "right" })
|
|
8302
8302
|
),
|
|
8303
|
-
eA === i - 1 && r === "after" && !g.hideNavigation && D.createElement(I.Nav, { "data-animated-nav": g.animate ? "true" : void 0, className: t[H.Nav], style:
|
|
8303
|
+
eA === i - 1 && r === "after" && !g.hideNavigation && D.createElement(I.Nav, { "data-animated-nav": g.animate ? "true" : void 0, className: t[H.Nav], style: v?.[H.Nav], "aria-label": Rg(), onPreviousClick: TI, onNextClick: KI, previousMonth: y, nextMonth: N }),
|
|
8304
8304
|
D.createElement(
|
|
8305
8305
|
I.MonthGrid,
|
|
8306
|
-
{ role: "grid", "aria-multiselectable": o === "multiple" || o === "range", "aria-label": TA(_.date, Q.options, Q) || void 0, className: t[H.MonthGrid], style:
|
|
8306
|
+
{ role: "grid", "aria-multiselectable": o === "multiple" || o === "range", "aria-label": TA(_.date, Q.options, Q) || void 0, className: t[H.MonthGrid], style: v?.[H.MonthGrid] },
|
|
8307
8307
|
!g.hideWeekdays && D.createElement(
|
|
8308
8308
|
I.Weekdays,
|
|
8309
|
-
{ "data-animated-weekdays": g.animate ? "true" : void 0, className: t[H.Weekdays], style:
|
|
8310
|
-
f && D.createElement(I.WeekNumberHeader, { "aria-label": Ur(Q.options), className: t[H.WeekNumberHeader], style:
|
|
8311
|
-
Jr.map((z) => D.createElement(I.Weekday, { "aria-label": Mr(z, Q.options, Q), className: t[H.Weekday], key: String(z), style:
|
|
8309
|
+
{ "data-animated-weekdays": g.animate ? "true" : void 0, className: t[H.Weekdays], style: v?.[H.Weekdays] },
|
|
8310
|
+
f && D.createElement(I.WeekNumberHeader, { "aria-label": Ur(Q.options), className: t[H.WeekNumberHeader], style: v?.[H.WeekNumberHeader], scope: "col" }, X()),
|
|
8311
|
+
Jr.map((z) => D.createElement(I.Weekday, { "aria-label": Mr(z, Q.options, Q), className: t[H.Weekday], key: String(z), style: v?.[H.Weekday], scope: "col" }, Y(z, Q.options, Q)))
|
|
8312
8312
|
),
|
|
8313
|
-
D.createElement(I.Weeks, { "data-animated-weeks": g.animate ? "true" : void 0, className: t[H.Weeks], style:
|
|
8313
|
+
D.createElement(I.Weeks, { "data-animated-weeks": g.animate ? "true" : void 0, className: t[H.Weeks], style: v?.[H.Weeks] }, _.weeks.map((z) => D.createElement(
|
|
8314
8314
|
I.Week,
|
|
8315
|
-
{ className: t[H.Week], key: z.weekNumber, style:
|
|
8316
|
-
f && D.createElement(I.WeekNumber, { week: z, style:
|
|
8315
|
+
{ className: t[H.Week], key: z.weekNumber, style: v?.[H.Week], week: z },
|
|
8316
|
+
f && D.createElement(I.WeekNumber, { week: z, style: v?.[H.WeekNumber], "aria-label": kr(z.weekNumber, {
|
|
8317
8317
|
locale: e
|
|
8318
8318
|
}), className: t[H.WeekNumber], scope: "row", role: "rowheader" }, R(z.weekNumber, Q)),
|
|
8319
8319
|
z.days.map((IA) => {
|
|
@@ -8322,14 +8322,14 @@ function iE(A) {
|
|
|
8322
8322
|
const { from: YI, to: VI } = iA;
|
|
8323
8323
|
gA[Qg.range_start] = !!(YI && VI && Q.isSameDay(VA, YI)), gA[Qg.range_end] = !!(YI && VI && Q.isSameDay(VA, VI)), gA[Qg.range_middle] = pg(iA, VA, !0, Q);
|
|
8324
8324
|
}
|
|
8325
|
-
const _r = oh(gA,
|
|
8326
|
-
return D.createElement(I.Day, { key: `${IA.isoDate}_${IA.displayMonthId}`, day: IA, modifiers: gA, className: $r.join(" "), style: _r, role: "gridcell", "aria-selected": gA.selected || void 0, "aria-label": Ao, "data-day": IA.isoDate, "data-month": IA.outside ? IA.dateMonthId : void 0, "data-selected": gA.selected || void 0, "data-disabled": gA.disabled || void 0, "data-hidden": gA.hidden || void 0, "data-outside": IA.outside || void 0, "data-focused": gA.focused || void 0, "data-today": gA.today || void 0 }, !gA.hidden && YE ? D.createElement(I.DayButton, { className: t[H.DayButton], style:
|
|
8325
|
+
const _r = oh(gA, v, g.modifiersStyles), $r = zp(gA, t, g.modifiersClassNames), Ao = !YE && !gA.hidden ? x(VA, gA, Q.options, Q) : void 0;
|
|
8326
|
+
return D.createElement(I.Day, { key: `${IA.isoDate}_${IA.displayMonthId}`, day: IA, modifiers: gA, className: $r.join(" "), style: _r, role: "gridcell", "aria-selected": gA.selected || void 0, "aria-label": Ao, "data-day": IA.isoDate, "data-month": IA.outside ? IA.dateMonthId : void 0, "data-selected": gA.selected || void 0, "data-disabled": gA.disabled || void 0, "data-hidden": gA.hidden || void 0, "data-outside": IA.outside || void 0, "data-focused": gA.focused || void 0, "data-today": gA.today || void 0 }, !gA.hidden && YE ? D.createElement(I.DayButton, { className: t[H.DayButton], style: v?.[H.DayButton], type: "button", day: IA, modifiers: gA, disabled: !gA.focused && gA.disabled || void 0, "aria-disabled": gA.focused && gA.disabled || void 0, tabIndex: Cg(IA) ? 0 : -1, "aria-label": Og(VA, gA, Q.options, Q), onClick: Hr(IA, gA), onBlur: Kr(IA, gA), onFocus: Tr(IA, gA), onKeyDown: Yr(IA, gA), onMouseEnter: Vr(IA, gA), onMouseLeave: Lr(IA, gA) }, S(VA, Q.options, Q)) : !gA.hidden && S(IA.date, Q.options, Q));
|
|
8327
8327
|
})
|
|
8328
8328
|
)))
|
|
8329
8329
|
)
|
|
8330
8330
|
))
|
|
8331
8331
|
),
|
|
8332
|
-
g.footer && D.createElement(I.Footer, { className: t[H.Footer], style:
|
|
8332
|
+
g.footer && D.createElement(I.Footer, { className: t[H.Footer], style: v?.[H.Footer], role: "status", "aria-live": "polite" }, g.footer)
|
|
8333
8333
|
)
|
|
8334
8334
|
);
|
|
8335
8335
|
}
|
|
@@ -8388,7 +8388,7 @@ const Gh = "_dateTimePicker_9lwb3_1", Jh = "_dateInput_9lwb3_8", Hh = "_day_9lwb
|
|
|
8388
8388
|
suffixIcon: i,
|
|
8389
8389
|
minDate: a,
|
|
8390
8390
|
maxDate: c
|
|
8391
|
-
} = A, [u, s] = lA(!1), [d,
|
|
8391
|
+
} = A, [u, s] = lA(!1), [d, h] = lA({ top: 0, left: 0 }), [b, m] = lA(!1), f = W(null), v = W(null), w = W(null), S = pA(() => ({
|
|
8392
8392
|
nav: `${Bg.nav} ${T.nav}`,
|
|
8393
8393
|
month_caption: `${Bg.month_caption} ${T.monthCaption}`,
|
|
8394
8394
|
week: `${Bg.day} ${T.week}`,
|
|
@@ -8410,9 +8410,9 @@ const Gh = "_dateTimePicker_9lwb3_1", Jh = "_dateInput_9lwb3_8", Hh = "_day_9lwb
|
|
|
8410
8410
|
m(!1);
|
|
8411
8411
|
const U = () => {
|
|
8412
8412
|
if (!f.current) return;
|
|
8413
|
-
const F = f.current.getBoundingClientRect(), L =
|
|
8413
|
+
const F = f.current.getBoundingClientRect(), L = v.current?.offsetHeight || 360, q = v.current?.offsetWidth || 320, AA = window.innerHeight - F.bottom, y = F.top;
|
|
8414
8414
|
let N = F.bottom + 8, k = F.left;
|
|
8415
|
-
AA < L && y > L && (N = F.top - L - 8), k + q > window.innerWidth && (k = window.innerWidth - q - 8), k < 8 && (k = 8),
|
|
8415
|
+
AA < L && y > L && (N = F.top - L - 8), k + q > window.innerWidth && (k = window.innerWidth - q - 8), k < 8 && (k = 8), h({ top: N, left: k }), m(!0);
|
|
8416
8416
|
};
|
|
8417
8417
|
return w.current = requestAnimationFrame(U), window.addEventListener("scroll", U, !0), window.addEventListener("resize", U), () => {
|
|
8418
8418
|
w.current !== null && (cancelAnimationFrame(w.current), w.current = null), window.removeEventListener("scroll", U, !0), window.removeEventListener("resize", U);
|
|
@@ -8421,7 +8421,7 @@ const Gh = "_dateTimePicker_9lwb3_1", Jh = "_dateInput_9lwb3_8", Hh = "_day_9lwb
|
|
|
8421
8421
|
if (!u) return;
|
|
8422
8422
|
const U = (L) => {
|
|
8423
8423
|
const q = L.target;
|
|
8424
|
-
f.current && !f.current.contains(q) &&
|
|
8424
|
+
f.current && !f.current.contains(q) && v.current && !v.current.contains(q) && s(!1);
|
|
8425
8425
|
}, F = (L) => {
|
|
8426
8426
|
L.key === "Escape" && s(!1);
|
|
8427
8427
|
};
|
|
@@ -8453,7 +8453,7 @@ const Gh = "_dateTimePicker_9lwb3_1", Jh = "_dateInput_9lwb3_8", Hh = "_day_9lwb
|
|
|
8453
8453
|
/* @__PURE__ */ l(
|
|
8454
8454
|
"div",
|
|
8455
8455
|
{
|
|
8456
|
-
ref:
|
|
8456
|
+
ref: v,
|
|
8457
8457
|
className: T.dayPickerContent,
|
|
8458
8458
|
style: {
|
|
8459
8459
|
position: "fixed",
|
|
@@ -8506,7 +8506,7 @@ const Eg = OI(), Cv = (A) => {
|
|
|
8506
8506
|
maxDate: u,
|
|
8507
8507
|
minTime: s,
|
|
8508
8508
|
maxTime: d
|
|
8509
|
-
} = A, [
|
|
8509
|
+
} = A, [h, b] = lA(!1), [m, f] = lA({ top: 0, left: 0 }), [v, w] = lA(!1), S = W(null), M = W(null), R = W(null), X = pA(() => {
|
|
8510
8510
|
if (!g) return "12:00";
|
|
8511
8511
|
const y = g.getHours().toString().padStart(2, "0"), N = g.getMinutes().toString().padStart(2, "0");
|
|
8512
8512
|
return `${y}:${N}`;
|
|
@@ -8553,7 +8553,7 @@ const Eg = OI(), Cv = (A) => {
|
|
|
8553
8553
|
Z.setHours(k), Z.setMinutes(G), C(Z);
|
|
8554
8554
|
}, [g, C, s, d]);
|
|
8555
8555
|
vA(() => {
|
|
8556
|
-
if (!
|
|
8556
|
+
if (!h) return;
|
|
8557
8557
|
w(!1);
|
|
8558
8558
|
const y = () => {
|
|
8559
8559
|
if (!S.current) return;
|
|
@@ -8564,8 +8564,8 @@ const Eg = OI(), Cv = (A) => {
|
|
|
8564
8564
|
return R.current = requestAnimationFrame(y), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y), () => {
|
|
8565
8565
|
R.current !== null && (cancelAnimationFrame(R.current), R.current = null), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
|
|
8566
8566
|
};
|
|
8567
|
-
}, [
|
|
8568
|
-
if (!
|
|
8567
|
+
}, [h]), vA(() => {
|
|
8568
|
+
if (!h) return;
|
|
8569
8569
|
const y = (k) => {
|
|
8570
8570
|
const G = k.target;
|
|
8571
8571
|
S.current && !S.current.contains(G) && M.current && !M.current.contains(G) && b(!1);
|
|
@@ -8575,7 +8575,7 @@ const Eg = OI(), Cv = (A) => {
|
|
|
8575
8575
|
return document.addEventListener("mousedown", y), document.addEventListener("keydown", N), () => {
|
|
8576
8576
|
document.removeEventListener("mousedown", y), document.removeEventListener("keydown", N);
|
|
8577
8577
|
};
|
|
8578
|
-
}, [
|
|
8578
|
+
}, [h]);
|
|
8579
8579
|
const q = B ? `${T.dateTimePicker} ${B}` : T.dateTimePicker, AA = o ? `${T.dateInput} ${o}` : T.dateInput;
|
|
8580
8580
|
return /* @__PURE__ */ P(UC, { children: [
|
|
8581
8581
|
/* @__PURE__ */ l("div", { ref: S, className: q, children: /* @__PURE__ */ l(
|
|
@@ -8592,7 +8592,7 @@ const Eg = OI(), Cv = (A) => {
|
|
|
8592
8592
|
errorMessage: i
|
|
8593
8593
|
}
|
|
8594
8594
|
) }),
|
|
8595
|
-
|
|
8595
|
+
h && JC(
|
|
8596
8596
|
/* @__PURE__ */ P(
|
|
8597
8597
|
"div",
|
|
8598
8598
|
{
|
|
@@ -8603,8 +8603,8 @@ const Eg = OI(), Cv = (A) => {
|
|
|
8603
8603
|
top: m.top,
|
|
8604
8604
|
left: m.left,
|
|
8605
8605
|
zIndex: 1400,
|
|
8606
|
-
opacity:
|
|
8607
|
-
pointerEvents:
|
|
8606
|
+
opacity: v ? 1 : 0,
|
|
8607
|
+
pointerEvents: v ? "auto" : "none",
|
|
8608
8608
|
transition: "opacity 120ms ease"
|
|
8609
8609
|
},
|
|
8610
8610
|
children: [
|
|
@@ -8666,7 +8666,7 @@ const KA = OI(), Iv = (A) => {
|
|
|
8666
8666
|
errorMessage: i,
|
|
8667
8667
|
numberOfMonths: a = 2,
|
|
8668
8668
|
suffixIcon: c
|
|
8669
|
-
} = A, [u, s] = lA(!1), [d,
|
|
8669
|
+
} = A, [u, s] = lA(!1), [d, h] = lA({ top: 0, left: 0 }), [b, m] = lA(!1), f = W(null), v = W(null), w = W(null), S = $(
|
|
8670
8670
|
(F) => F ? F.toLocaleDateString(e || "tr-TR") : "",
|
|
8671
8671
|
[e]
|
|
8672
8672
|
), M = pA(() => !g?.from && !g?.to ? "" : g?.from && !g?.to ? S(g.from) : `${S(g?.from)} - ${S(g?.to)}`, [g, S]), R = pA(() => ({
|
|
@@ -8695,9 +8695,9 @@ const KA = OI(), Iv = (A) => {
|
|
|
8695
8695
|
m(!1);
|
|
8696
8696
|
const F = () => {
|
|
8697
8697
|
if (!f.current) return;
|
|
8698
|
-
const L = f.current.getBoundingClientRect(), q =
|
|
8698
|
+
const L = f.current.getBoundingClientRect(), q = v.current?.offsetHeight || 360, AA = v.current?.offsetWidth || 660, y = window.innerHeight - L.bottom, N = L.top;
|
|
8699
8699
|
let k = L.bottom + 8, G = L.left;
|
|
8700
|
-
y < q && N > q && (k = L.top - q - 8), G + AA > window.innerWidth && (G = window.innerWidth - AA - 8), G < 8 && (G = 8),
|
|
8700
|
+
y < q && N > q && (k = L.top - q - 8), G + AA > window.innerWidth && (G = window.innerWidth - AA - 8), G < 8 && (G = 8), h({ top: k, left: G }), m(!0);
|
|
8701
8701
|
};
|
|
8702
8702
|
return w.current = requestAnimationFrame(F), window.addEventListener("scroll", F, !0), window.addEventListener("resize", F), () => {
|
|
8703
8703
|
w.current !== null && (cancelAnimationFrame(w.current), w.current = null), window.removeEventListener("scroll", F, !0), window.removeEventListener("resize", F);
|
|
@@ -8706,7 +8706,7 @@ const KA = OI(), Iv = (A) => {
|
|
|
8706
8706
|
if (!u) return;
|
|
8707
8707
|
const F = (q) => {
|
|
8708
8708
|
const AA = q.target;
|
|
8709
|
-
f.current && !f.current.contains(AA) &&
|
|
8709
|
+
f.current && !f.current.contains(AA) && v.current && !v.current.contains(AA) && s(!1);
|
|
8710
8710
|
}, L = (q) => {
|
|
8711
8711
|
q.key === "Escape" && s(!1);
|
|
8712
8712
|
};
|
|
@@ -8735,7 +8735,7 @@ const KA = OI(), Iv = (A) => {
|
|
|
8735
8735
|
/* @__PURE__ */ l(
|
|
8736
8736
|
"div",
|
|
8737
8737
|
{
|
|
8738
|
-
ref:
|
|
8738
|
+
ref: v,
|
|
8739
8739
|
className: T.dayPickerContent,
|
|
8740
8740
|
style: {
|
|
8741
8741
|
position: "fixed",
|
|
@@ -8808,6 +8808,9 @@ const Bv = "_modal_p8nbm_1", Ev = "_modalHeader_p8nbm_1", Qv = "_modalTitle_p8nb
|
|
|
8808
8808
|
alignItems: I.position === "top" ? "flex-start" : "center",
|
|
8809
8809
|
paddingTop: I.position === "top" ? "88px" : 0
|
|
8810
8810
|
},
|
|
8811
|
+
"& .MuiBackdrop-root": {
|
|
8812
|
+
backgroundColor: "var(--neutral-light-500A)"
|
|
8813
|
+
},
|
|
8811
8814
|
"& .MuiDialog-paper": {
|
|
8812
8815
|
borderRadius: "var(--sizing-4)",
|
|
8813
8816
|
margin: 0,
|
|
@@ -8870,7 +8873,7 @@ const iv = "_drawer_1y6g1_1", av = "_wrapper_1y6g1_1", sv = "_close_1y6g1_8", cv
|
|
|
8870
8873
|
);
|
|
8871
8874
|
};
|
|
8872
8875
|
bv.displayName = "PiDrawer";
|
|
8873
|
-
const mv = "
|
|
8876
|
+
const mv = "_submenu_f27me_1", wv = "_dropdownMenu_f27me_1", Dv = "_dropdown_f27me_1", yv = "_menuItem_f27me_8", Sv = "_icon_f27me_18", Pv = "_text_f27me_28", Nv = "_active_f27me_46", Fv = "_dropdownMenuButton_f27me_59", Ov = "_menuItemContainer_f27me_75", Rv = "_disabled_f27me_75", xv = "_line_f27me_79", Mv = "_title_f27me_84", kv = "_submenuIndicator_f27me_115", wA = {
|
|
8874
8877
|
submenu: mv,
|
|
8875
8878
|
dropdownMenu: wv,
|
|
8876
8879
|
dropdown: Dv,
|
|
@@ -8903,16 +8906,17 @@ const Gv = (A) => {
|
|
|
8903
8906
|
minWidth: C,
|
|
8904
8907
|
subMenuWidth: I,
|
|
8905
8908
|
subMenuPosition: B = "right",
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8909
|
+
position: E = "right",
|
|
8910
|
+
children: Q,
|
|
8911
|
+
show: e,
|
|
8912
|
+
setShow: t
|
|
8913
|
+
} = A, [n, o] = lA(null), r = W(null);
|
|
8914
|
+
Uv(r, () => t(!1), e);
|
|
8915
|
+
const i = $((s) => {
|
|
8916
|
+
s.stopPropagation(), t(!e);
|
|
8917
|
+
}, [e, t]), a = $((s, d) => {
|
|
8918
|
+
s.preventDefault(), !d.disabled && (d.onClick?.(), t(!1));
|
|
8919
|
+
}, [t]), c = $((s, d) => !s.submenu || n !== d ? null : /* @__PURE__ */ l(
|
|
8916
8920
|
"div",
|
|
8917
8921
|
{
|
|
8918
8922
|
className: wA.submenu,
|
|
@@ -8920,54 +8924,57 @@ const Gv = (A) => {
|
|
|
8920
8924
|
minWidth: `${I ?? 180}px`,
|
|
8921
8925
|
...B === "left" ? { right: "100%" } : { left: "100%" }
|
|
8922
8926
|
},
|
|
8923
|
-
children: /* @__PURE__ */ l("ul", { children:
|
|
8927
|
+
children: /* @__PURE__ */ l("ul", { children: s.submenu.map((h, b) => h.line ? /* @__PURE__ */ l("li", { className: wA.line }, b) : /* @__PURE__ */ l("li", { children: /* @__PURE__ */ P(
|
|
8924
8928
|
"a",
|
|
8925
8929
|
{
|
|
8926
8930
|
href: "#",
|
|
8927
8931
|
role: "button",
|
|
8928
|
-
className: `${wA.menuItem} ${
|
|
8929
|
-
onClick: (
|
|
8932
|
+
className: `${wA.menuItem} ${h.isActive ? wA.active : ""} ${h.disabled ? wA.disabled : ""}`,
|
|
8933
|
+
onClick: (m) => a(m, h),
|
|
8930
8934
|
children: [
|
|
8931
|
-
|
|
8932
|
-
|
|
8935
|
+
h.icon && /* @__PURE__ */ l("span", { className: wA.icon, children: h.icon }),
|
|
8936
|
+
h.label && /* @__PURE__ */ l("span", { className: wA.text, children: h.label })
|
|
8933
8937
|
]
|
|
8934
8938
|
}
|
|
8935
|
-
) },
|
|
8939
|
+
) }, b)) })
|
|
8936
8940
|
}
|
|
8937
|
-
), [
|
|
8941
|
+
), [n, I, B, a]), u = $((s, d) => s.line ? /* @__PURE__ */ l("li", { className: wA.line }, d) : s.title ? /* @__PURE__ */ l("li", { className: wA.title, children: s.title }, d) : s.component ? /* @__PURE__ */ l("li", { children: s.component }, d) : /* @__PURE__ */ P(
|
|
8938
8942
|
"li",
|
|
8939
8943
|
{
|
|
8940
|
-
className: `${wA.menuItemContainer} ${
|
|
8941
|
-
onMouseEnter: () =>
|
|
8942
|
-
onMouseLeave: () =>
|
|
8944
|
+
className: `${wA.menuItemContainer} ${s.disabled ? wA.disabled : ""}`,
|
|
8945
|
+
onMouseEnter: () => s.submenu && o(d),
|
|
8946
|
+
onMouseLeave: () => s.submenu && o(null),
|
|
8943
8947
|
children: [
|
|
8944
8948
|
/* @__PURE__ */ P(
|
|
8945
8949
|
"a",
|
|
8946
8950
|
{
|
|
8947
8951
|
href: "#",
|
|
8948
8952
|
role: "button",
|
|
8949
|
-
className: `${wA.menuItem} ${
|
|
8950
|
-
onClick: (
|
|
8953
|
+
className: `${wA.menuItem} ${s.isActive ? wA.active : ""}`,
|
|
8954
|
+
onClick: (h) => a(h, s),
|
|
8951
8955
|
children: [
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8956
|
+
s.icon && /* @__PURE__ */ l("span", { className: wA.icon, children: s.icon }),
|
|
8957
|
+
s.label && /* @__PURE__ */ l("span", { className: wA.text, children: s.label }),
|
|
8958
|
+
s.submenu && /* @__PURE__ */ l("span", { className: wA.submenuIndicator, children: /* @__PURE__ */ l(Ue, { size: 16 }) })
|
|
8955
8959
|
]
|
|
8956
8960
|
}
|
|
8957
8961
|
),
|
|
8958
|
-
|
|
8962
|
+
c(s, d)
|
|
8959
8963
|
]
|
|
8960
8964
|
},
|
|
8961
|
-
|
|
8962
|
-
), [
|
|
8963
|
-
return /* @__PURE__ */ P("div", { className: wA.dropdownMenu, ref:
|
|
8964
|
-
/* @__PURE__ */ l("div", { className: wA.dropdownMenuButton, onClick:
|
|
8965
|
-
|
|
8965
|
+
d
|
|
8966
|
+
), [a, c]);
|
|
8967
|
+
return /* @__PURE__ */ P("div", { className: wA.dropdownMenu, ref: r, children: [
|
|
8968
|
+
/* @__PURE__ */ l("div", { className: wA.dropdownMenuButton, onClick: i, children: Q || /* @__PURE__ */ l(YB, { iconButton: !0, variant: "secondary", children: /* @__PURE__ */ l(Xo, {}) }) }),
|
|
8969
|
+
e && /* @__PURE__ */ l(
|
|
8966
8970
|
"div",
|
|
8967
8971
|
{
|
|
8968
8972
|
className: wA.dropdown,
|
|
8969
|
-
style: {
|
|
8970
|
-
|
|
8973
|
+
style: {
|
|
8974
|
+
minWidth: `${C ?? 180}px`,
|
|
8975
|
+
...typeof E == "number" ? { left: `${E}px` } : E === "left" ? { left: 0 } : { right: 0 }
|
|
8976
|
+
},
|
|
8977
|
+
children: /* @__PURE__ */ l("ul", { children: g.map(u) })
|
|
8971
8978
|
}
|
|
8972
8979
|
)
|
|
8973
8980
|
] });
|
|
@@ -9586,12 +9593,12 @@ function ln(A, g, C) {
|
|
|
9586
9593
|
throw new Error(process.env.NODE_ENV === "production" ? GA(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
9587
9594
|
let d = !0;
|
|
9588
9595
|
n();
|
|
9589
|
-
const
|
|
9590
|
-
return Q.set(
|
|
9596
|
+
const h = e++;
|
|
9597
|
+
return Q.set(h, s), function() {
|
|
9591
9598
|
if (d) {
|
|
9592
9599
|
if (t)
|
|
9593
9600
|
throw new Error(process.env.NODE_ENV === "production" ? GA(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
9594
|
-
d = !1, n(), Q.delete(
|
|
9601
|
+
d = !1, n(), Q.delete(h), E = null;
|
|
9595
9602
|
}
|
|
9596
9603
|
};
|
|
9597
9604
|
}
|
|
@@ -9609,8 +9616,8 @@ function ln(A, g, C) {
|
|
|
9609
9616
|
} finally {
|
|
9610
9617
|
t = !1;
|
|
9611
9618
|
}
|
|
9612
|
-
return (E = Q).forEach((
|
|
9613
|
-
|
|
9619
|
+
return (E = Q).forEach((h) => {
|
|
9620
|
+
h();
|
|
9614
9621
|
}), s;
|
|
9615
9622
|
}
|
|
9616
9623
|
function a(s) {
|
|
@@ -9634,12 +9641,12 @@ function ln(A, g, C) {
|
|
|
9634
9641
|
subscribe(d) {
|
|
9635
9642
|
if (typeof d != "object" || d === null)
|
|
9636
9643
|
throw new Error(process.env.NODE_ENV === "production" ? GA(11) : `Expected the observer to be an object. Instead, received: '${yg(d)}'`);
|
|
9637
|
-
function
|
|
9644
|
+
function h() {
|
|
9638
9645
|
const m = d;
|
|
9639
9646
|
m.next && m.next(o());
|
|
9640
9647
|
}
|
|
9641
|
-
return
|
|
9642
|
-
unsubscribe: s(
|
|
9648
|
+
return h(), {
|
|
9649
|
+
unsubscribe: s(h)
|
|
9643
9650
|
};
|
|
9644
9651
|
},
|
|
9645
9652
|
[kQ]() {
|
|
@@ -9713,18 +9720,18 @@ function Db() {
|
|
|
9713
9720
|
function() {
|
|
9714
9721
|
function s(f) {
|
|
9715
9722
|
if (!d) {
|
|
9716
|
-
if (d = !0,
|
|
9717
|
-
var
|
|
9718
|
-
if (i(
|
|
9719
|
-
return b =
|
|
9723
|
+
if (d = !0, h = f, f = r(f), i !== void 0 && c.hasValue) {
|
|
9724
|
+
var v = c.value;
|
|
9725
|
+
if (i(v, f))
|
|
9726
|
+
return b = v;
|
|
9720
9727
|
}
|
|
9721
9728
|
return b = f;
|
|
9722
9729
|
}
|
|
9723
|
-
if (
|
|
9730
|
+
if (v = b, C(h, f)) return v;
|
|
9724
9731
|
var w = r(f);
|
|
9725
|
-
return i !== void 0 && i(
|
|
9732
|
+
return i !== void 0 && i(v, w) ? (h = f, v) : (h = f, b = w);
|
|
9726
9733
|
}
|
|
9727
|
-
var d = !1,
|
|
9734
|
+
var d = !1, h, b, m = o === void 0 ? null : o;
|
|
9728
9735
|
return [
|
|
9729
9736
|
function() {
|
|
9730
9737
|
return s(n());
|
|
@@ -9764,19 +9771,19 @@ function yb() {
|
|
|
9764
9771
|
function() {
|
|
9765
9772
|
function s(f) {
|
|
9766
9773
|
if (!d) {
|
|
9767
|
-
if (d = !0,
|
|
9768
|
-
var
|
|
9769
|
-
if (i(
|
|
9770
|
-
return b =
|
|
9774
|
+
if (d = !0, h = f, f = r(f), i !== void 0 && c.hasValue) {
|
|
9775
|
+
var v = c.value;
|
|
9776
|
+
if (i(v, f))
|
|
9777
|
+
return b = v;
|
|
9771
9778
|
}
|
|
9772
9779
|
return b = f;
|
|
9773
9780
|
}
|
|
9774
|
-
if (
|
|
9775
|
-
return
|
|
9781
|
+
if (v = b, C(h, f))
|
|
9782
|
+
return v;
|
|
9776
9783
|
var w = r(f);
|
|
9777
|
-
return i !== void 0 && i(
|
|
9784
|
+
return i !== void 0 && i(v, w) ? (h = f, v) : (h = f, b = w);
|
|
9778
9785
|
}
|
|
9779
|
-
var d = !1,
|
|
9786
|
+
var d = !1, h, b, m = o === void 0 ? null : o;
|
|
9780
9787
|
return [
|
|
9781
9788
|
function() {
|
|
9782
9789
|
return s(n());
|
|
@@ -9872,8 +9879,8 @@ function Jb(A, g, C, I, {
|
|
|
9872
9879
|
areStatePropsEqual: Q
|
|
9873
9880
|
}) {
|
|
9874
9881
|
let e = !1, t, n, o, r, i;
|
|
9875
|
-
function a(
|
|
9876
|
-
return t =
|
|
9882
|
+
function a(h, b) {
|
|
9883
|
+
return t = h, n = b, o = A(t, n), r = g(I, n), i = C(o, r, n), e = !0, i;
|
|
9877
9884
|
}
|
|
9878
9885
|
function c() {
|
|
9879
9886
|
return o = A(t, n), g.dependsOnOwnProps && (r = g(I, n)), i = C(o, r, n), i;
|
|
@@ -9882,17 +9889,17 @@ function Jb(A, g, C, I, {
|
|
|
9882
9889
|
return A.dependsOnOwnProps && (o = A(t, n)), g.dependsOnOwnProps && (r = g(I, n)), i = C(o, r, n), i;
|
|
9883
9890
|
}
|
|
9884
9891
|
function s() {
|
|
9885
|
-
const
|
|
9886
|
-
return o =
|
|
9892
|
+
const h = A(t, n), b = !Q(h, o);
|
|
9893
|
+
return o = h, b && (i = C(o, r, n)), i;
|
|
9887
9894
|
}
|
|
9888
|
-
function d(
|
|
9895
|
+
function d(h, b) {
|
|
9889
9896
|
const m = !E(b, n), f = !B(
|
|
9890
|
-
|
|
9897
|
+
h,
|
|
9891
9898
|
t,
|
|
9892
9899
|
b,
|
|
9893
9900
|
n
|
|
9894
9901
|
);
|
|
9895
|
-
return t =
|
|
9902
|
+
return t = h, n = b, m && f ? c() : m ? u() : f ? s() : i;
|
|
9896
9903
|
}
|
|
9897
9904
|
return function(b, m) {
|
|
9898
9905
|
return e ? d(b, m) : a(b, m);
|
|
@@ -10194,8 +10201,8 @@ function lm(A, g, C, I, B, E, Q, e, t, n, o) {
|
|
|
10194
10201
|
u,
|
|
10195
10202
|
B.current
|
|
10196
10203
|
);
|
|
10197
|
-
} catch (
|
|
10198
|
-
d =
|
|
10204
|
+
} catch (h) {
|
|
10205
|
+
d = h, i = h;
|
|
10199
10206
|
}
|
|
10200
10207
|
d || (i = null), s === E.current ? Q.current || n() : (E.current = s, t.current = s, Q.current = !0, o());
|
|
10201
10208
|
};
|
|
@@ -10232,9 +10239,9 @@ function dm(A, g, C, {
|
|
|
10232
10239
|
s
|
|
10233
10240
|
)}`
|
|
10234
10241
|
);
|
|
10235
|
-
const d = s.displayName || s.name || "Component",
|
|
10242
|
+
const d = s.displayName || s.name || "Component", h = `Connect(${d})`, b = {
|
|
10236
10243
|
shouldHandleStateChanges: c,
|
|
10237
|
-
displayName:
|
|
10244
|
+
displayName: h,
|
|
10238
10245
|
wrappedComponentName: d,
|
|
10239
10246
|
WrappedComponent: s,
|
|
10240
10247
|
// @ts-ignore
|
|
@@ -10266,7 +10273,7 @@ function dm(A, g, C, {
|
|
|
10266
10273
|
}, [S, o]), Y = O.useContext(X), j = !!w.store && !!w.store.getState && !!w.store.dispatch, U = !!Y && !!Y.store;
|
|
10267
10274
|
if (process.env.NODE_ENV !== "production" && !j && !U)
|
|
10268
10275
|
throw new Error(
|
|
10269
|
-
`Could not find "store" in the context of "${
|
|
10276
|
+
`Could not find "store" in the context of "${h}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${h} in connect options.`
|
|
10270
10277
|
);
|
|
10271
10278
|
const F = j ? w.store : Y.store, L = U ? Y.getServerState : F.getState, q = O.useMemo(() => Hb(F.dispatch, b), [F]), [AA, y] = O.useMemo(() => {
|
|
10272
10279
|
if (!c) return im;
|
|
@@ -10339,16 +10346,16 @@ ${cA.current.stack}
|
|
|
10339
10346
|
), [M, s, HA]);
|
|
10340
10347
|
return O.useMemo(() => c ? /* @__PURE__ */ O.createElement(X.Provider, { value: N }, qA) : qA, [X, qA, N]);
|
|
10341
10348
|
}
|
|
10342
|
-
const
|
|
10343
|
-
if (
|
|
10349
|
+
const v = O.memo(m);
|
|
10350
|
+
if (v.WrappedComponent = s, v.displayName = m.displayName = h, t) {
|
|
10344
10351
|
const S = O.forwardRef(
|
|
10345
10352
|
function(R, X) {
|
|
10346
|
-
return /* @__PURE__ */ O.createElement(
|
|
10353
|
+
return /* @__PURE__ */ O.createElement(v, { ...R, reactReduxForwardedRef: X });
|
|
10347
10354
|
}
|
|
10348
10355
|
);
|
|
10349
|
-
return S.displayName =
|
|
10356
|
+
return S.displayName = h, S.WrappedComponent = s, /* @__PURE__ */ OB(S, s);
|
|
10350
10357
|
}
|
|
10351
|
-
return /* @__PURE__ */ OB(
|
|
10358
|
+
return /* @__PURE__ */ OB(v, s);
|
|
10352
10359
|
};
|
|
10353
10360
|
}
|
|
10354
10361
|
var Nn = dm;
|
|
@@ -11710,11 +11717,11 @@ var Pw = ({
|
|
|
11710
11717
|
afterCritical: Q
|
|
11711
11718
|
}) => {
|
|
11712
11719
|
const e = C.axis, t = XC(C.axis, g.displaceBy), n = t.value, o = A[e.start], r = A[e.end], a = UI(g, I).find((u) => {
|
|
11713
|
-
const s = u.descriptor.id, d = u.page.borderBox.center[e.line],
|
|
11720
|
+
const s = u.descriptor.id, d = u.page.borderBox.center[e.line], h = Ng(s, Q), b = Zn({
|
|
11714
11721
|
displaced: B,
|
|
11715
11722
|
id: s
|
|
11716
11723
|
});
|
|
11717
|
-
return
|
|
11724
|
+
return h ? b ? r <= d : o < d - n : b ? r <= d + n : o < d;
|
|
11718
11725
|
}) || null, c = Sw({
|
|
11719
11726
|
draggable: g,
|
|
11720
11727
|
closest: a,
|
|
@@ -11742,11 +11749,11 @@ var Fw = ({
|
|
|
11742
11749
|
if (!I.isCombineEnabled)
|
|
11743
11750
|
return null;
|
|
11744
11751
|
const Q = I.axis, e = XC(I.axis, A.displaceBy), t = e.value, n = g[Q.start], o = g[Q.end], i = UI(A, B).find((c) => {
|
|
11745
|
-
const u = c.descriptor.id, s = c.page.borderBox,
|
|
11752
|
+
const u = c.descriptor.id, s = c.page.borderBox, h = s[Q.size] / Nw, b = Ng(u, E), m = Zn({
|
|
11746
11753
|
displaced: C.displaced,
|
|
11747
11754
|
id: u
|
|
11748
11755
|
});
|
|
11749
|
-
return b ? m ? o > s[Q.start] +
|
|
11756
|
+
return b ? m ? o > s[Q.start] + h && o < s[Q.end] - h : n > s[Q.start] - t + h && n < s[Q.end] - t - h : m ? o > s[Q.start] + t + h && o < s[Q.end] + t - h : n > s[Q.start] + h && n < s[Q.end] - h;
|
|
11750
11757
|
});
|
|
11751
11758
|
return i ? {
|
|
11752
11759
|
displacedBy: e,
|
|
@@ -12038,8 +12045,8 @@ var Uw = ({
|
|
|
12038
12045
|
}) => {
|
|
12039
12046
|
zC();
|
|
12040
12047
|
const C = g.modified.map((d) => {
|
|
12041
|
-
const
|
|
12042
|
-
return hE(
|
|
12048
|
+
const h = A.dimensions.droppables[d.droppableId];
|
|
12049
|
+
return hE(h, d.scroll);
|
|
12043
12050
|
}), I = {
|
|
12044
12051
|
...A.dimensions.droppables,
|
|
12045
12052
|
...Gn(C)
|
|
@@ -12765,13 +12772,13 @@ var bD = (A, g) => {
|
|
|
12765
12772
|
const d = !hD(I.lastCombine, c);
|
|
12766
12773
|
if (d && (I.lastCombine = c), !u && !s && !d)
|
|
12767
12774
|
return;
|
|
12768
|
-
const
|
|
12775
|
+
const h = {
|
|
12769
12776
|
...eI(r, I.mode),
|
|
12770
12777
|
combine: c,
|
|
12771
12778
|
destination: a
|
|
12772
12779
|
};
|
|
12773
12780
|
C.add(() => {
|
|
12774
|
-
cC("onDragUpdate", () => iB(A().onDragUpdate,
|
|
12781
|
+
cC("onDragUpdate", () => iB(A().onDragUpdate, h, g, sI.onDragUpdate));
|
|
12775
12782
|
});
|
|
12776
12783
|
}, t = () => {
|
|
12777
12784
|
I || (process.env.NODE_ENV !== "production" ? p(!1, "Can only flush responders while dragging") : p()), C.flush();
|
|
@@ -14343,10 +14350,10 @@ function V0(A) {
|
|
|
14343
14350
|
return;
|
|
14344
14351
|
const s = a.touches[0], {
|
|
14345
14352
|
clientX: d,
|
|
14346
|
-
clientY:
|
|
14353
|
+
clientY: h
|
|
14347
14354
|
} = s, b = {
|
|
14348
14355
|
x: d,
|
|
14349
|
-
y:
|
|
14356
|
+
y: h
|
|
14350
14357
|
};
|
|
14351
14358
|
C.current(), r(u, b);
|
|
14352
14359
|
}
|
|
@@ -14535,20 +14542,20 @@ function I9({
|
|
|
14535
14542
|
function a() {
|
|
14536
14543
|
return A.isActive(o);
|
|
14537
14544
|
}
|
|
14538
|
-
function c(f,
|
|
14545
|
+
function c(f, v) {
|
|
14539
14546
|
tI({
|
|
14540
14547
|
expected: f,
|
|
14541
14548
|
phase: r,
|
|
14542
14549
|
isLockActive: a,
|
|
14543
14550
|
shouldWarn: !0
|
|
14544
|
-
}) && C.dispatch(
|
|
14551
|
+
}) && C.dispatch(v());
|
|
14545
14552
|
}
|
|
14546
14553
|
const u = c.bind(null, "DRAGGING");
|
|
14547
14554
|
function s(f) {
|
|
14548
|
-
function
|
|
14555
|
+
function v() {
|
|
14549
14556
|
A.release(), r = "COMPLETED";
|
|
14550
14557
|
}
|
|
14551
|
-
r !== "PRE_DRAG" && (
|
|
14558
|
+
r !== "PRE_DRAG" && (v(), process.env.NODE_ENV !== "production" ? p(!1, `Cannot lift in phase ${r}`) : p()), C.dispatch(Yw(f.liftActionArgs)), r = "DRAGGING";
|
|
14552
14559
|
function w(S, M = {
|
|
14553
14560
|
shouldBlockNextClick: !1
|
|
14554
14561
|
}) {
|
|
@@ -14564,7 +14571,7 @@ function I9({
|
|
|
14564
14571
|
}]);
|
|
14565
14572
|
setTimeout(R);
|
|
14566
14573
|
}
|
|
14567
|
-
|
|
14574
|
+
v(), C.dispatch(Br({
|
|
14568
14575
|
reason: S
|
|
14569
14576
|
}));
|
|
14570
14577
|
}
|
|
@@ -14582,7 +14589,7 @@ function I9({
|
|
|
14582
14589
|
};
|
|
14583
14590
|
}
|
|
14584
14591
|
function d(f) {
|
|
14585
|
-
const
|
|
14592
|
+
const v = SC((S) => {
|
|
14586
14593
|
u(() => Ir({
|
|
14587
14594
|
client: S
|
|
14588
14595
|
}));
|
|
@@ -14594,15 +14601,15 @@ function I9({
|
|
|
14594
14601
|
clientSelection: f,
|
|
14595
14602
|
movementMode: "FLUID"
|
|
14596
14603
|
},
|
|
14597
|
-
cleanup: () =>
|
|
14604
|
+
cleanup: () => v.cancel(),
|
|
14598
14605
|
actions: {
|
|
14599
|
-
move:
|
|
14606
|
+
move: v
|
|
14600
14607
|
}
|
|
14601
14608
|
}),
|
|
14602
|
-
move:
|
|
14609
|
+
move: v
|
|
14603
14610
|
};
|
|
14604
14611
|
}
|
|
14605
|
-
function
|
|
14612
|
+
function h() {
|
|
14606
14613
|
const f = {
|
|
14607
14614
|
moveUp: () => u(_w),
|
|
14608
14615
|
moveRight: () => u(AD),
|
|
@@ -14636,7 +14643,7 @@ function I9({
|
|
|
14636
14643
|
}),
|
|
14637
14644
|
shouldRespectForcePress: i,
|
|
14638
14645
|
fluidLift: d,
|
|
14639
|
-
snapLift:
|
|
14646
|
+
snapLift: h,
|
|
14640
14647
|
abort: b
|
|
14641
14648
|
};
|
|
14642
14649
|
}
|
|
@@ -14654,8 +14661,8 @@ function E9({
|
|
|
14654
14661
|
jA(function() {
|
|
14655
14662
|
let s = g.getState();
|
|
14656
14663
|
return g.subscribe(() => {
|
|
14657
|
-
const
|
|
14658
|
-
e(s,
|
|
14664
|
+
const h = g.getState();
|
|
14665
|
+
e(s, h), s = h;
|
|
14659
14666
|
});
|
|
14660
14667
|
}, [Q, g, e]), jA(() => Q.tryAbandon, [Q.tryAbandon]);
|
|
14661
14668
|
const t = J((u) => mr({
|
|
@@ -14736,14 +14743,14 @@ function t9(A) {
|
|
|
14736
14743
|
...HQ({
|
|
14737
14744
|
move: Ir
|
|
14738
14745
|
}, a)
|
|
14739
|
-
}), [s.scrollDroppable, a, n]),
|
|
14746
|
+
}), [s.scrollDroppable, a, n]), h = Q0(g), b = CA(() => RD({
|
|
14740
14747
|
announce: o,
|
|
14741
14748
|
autoScroller: d,
|
|
14742
14749
|
dimensionMarshal: s,
|
|
14743
|
-
focusMarshal:
|
|
14750
|
+
focusMarshal: h,
|
|
14744
14751
|
getResponders: t,
|
|
14745
14752
|
styleMarshal: i
|
|
14746
|
-
}), [o, d, s,
|
|
14753
|
+
}), [o, d, s, h, t, i]);
|
|
14747
14754
|
process.env.NODE_ENV !== "production" && Q.current && Q.current !== b && process.env.NODE_ENV !== "production" && sA("unexpected store change"), Q.current = b;
|
|
14748
14755
|
const m = J(() => {
|
|
14749
14756
|
const R = uC(Q);
|
|
@@ -14751,20 +14758,20 @@ function t9(A) {
|
|
|
14751
14758
|
}, []), f = J(() => {
|
|
14752
14759
|
const R = uC(Q).getState();
|
|
14753
14760
|
return R.phase === "DROP_ANIMATING" ? !0 : R.phase === "IDLE" ? !1 : R.isDragging;
|
|
14754
|
-
}, []),
|
|
14761
|
+
}, []), v = CA(() => ({
|
|
14755
14762
|
isDragging: f,
|
|
14756
14763
|
tryAbort: m
|
|
14757
14764
|
}), [f, m]);
|
|
14758
|
-
C(
|
|
14765
|
+
C(v);
|
|
14759
14766
|
const w = J((R) => ir(uC(Q).getState(), R), []), S = J(() => Hg(uC(Q).getState()), []), M = CA(() => ({
|
|
14760
14767
|
marshal: s,
|
|
14761
|
-
focus:
|
|
14768
|
+
focus: h,
|
|
14762
14769
|
contextId: g,
|
|
14763
14770
|
canLift: w,
|
|
14764
14771
|
isMovementAllowed: S,
|
|
14765
14772
|
dragHandleUsageInstructionsId: r,
|
|
14766
14773
|
registry: u
|
|
14767
|
-
}), [g, s, r,
|
|
14774
|
+
}), [g, s, r, h, w, S, u]);
|
|
14768
14775
|
return E9({
|
|
14769
14776
|
contextId: g,
|
|
14770
14777
|
store: b,
|
|
@@ -14916,8 +14923,8 @@ function h9(A) {
|
|
|
14916
14923
|
A.preventDefault();
|
|
14917
14924
|
}
|
|
14918
14925
|
const v9 = (A) => {
|
|
14919
|
-
const g = W(null), C = J((
|
|
14920
|
-
g.current =
|
|
14926
|
+
const g = W(null), C = J((v = null) => {
|
|
14927
|
+
g.current = v;
|
|
14921
14928
|
}, []), I = J(() => g.current, []), {
|
|
14922
14929
|
contextId: B,
|
|
14923
14930
|
dragHandleUsageInstructionsId: E,
|
|
@@ -14941,7 +14948,7 @@ const v9 = (A) => {
|
|
|
14941
14948
|
dropAnimationFinished: d
|
|
14942
14949
|
} = A;
|
|
14943
14950
|
if (f9(A, B, I), p9(u), !u) {
|
|
14944
|
-
const
|
|
14951
|
+
const v = CA(() => ({
|
|
14945
14952
|
descriptor: n,
|
|
14946
14953
|
registry: Q,
|
|
14947
14954
|
getDraggableRef: I,
|
|
@@ -14949,9 +14956,9 @@ const v9 = (A) => {
|
|
|
14949
14956
|
shouldRespectForcePress: a,
|
|
14950
14957
|
isEnabled: i
|
|
14951
14958
|
}), [n, Q, I, c, a, i]);
|
|
14952
|
-
d9(
|
|
14959
|
+
d9(v);
|
|
14953
14960
|
}
|
|
14954
|
-
const
|
|
14961
|
+
const h = CA(() => i ? {
|
|
14955
14962
|
tabIndex: 0,
|
|
14956
14963
|
role: "button",
|
|
14957
14964
|
"aria-describedby": E,
|
|
@@ -14959,21 +14966,21 @@ const v9 = (A) => {
|
|
|
14959
14966
|
"data-rfd-drag-handle-context-id": B,
|
|
14960
14967
|
draggable: !1,
|
|
14961
14968
|
onDragStart: h9
|
|
14962
|
-
} : null, [B, E, r, i]), b = J((
|
|
14963
|
-
s.type === "DRAGGING" && s.dropping &&
|
|
14969
|
+
} : null, [B, E, r, i]), b = J((v) => {
|
|
14970
|
+
s.type === "DRAGGING" && s.dropping && v.propertyName === "transform" && Ne(d);
|
|
14964
14971
|
}, [d, s]), m = CA(() => {
|
|
14965
|
-
const
|
|
14972
|
+
const v = l9(s), w = s.type === "DRAGGING" && s.dropping ? b : void 0;
|
|
14966
14973
|
return {
|
|
14967
14974
|
innerRef: C,
|
|
14968
14975
|
draggableProps: {
|
|
14969
14976
|
"data-rfd-draggable-context-id": B,
|
|
14970
14977
|
"data-rfd-draggable-id": r,
|
|
14971
|
-
style:
|
|
14978
|
+
style: v,
|
|
14972
14979
|
onTransitionEnd: w
|
|
14973
14980
|
},
|
|
14974
|
-
dragHandleProps:
|
|
14981
|
+
dragHandleProps: h
|
|
14975
14982
|
};
|
|
14976
|
-
}, [B,
|
|
14983
|
+
}, [B, h, r, s, b, C]), f = CA(() => ({
|
|
14977
14984
|
draggableId: n.id,
|
|
14978
14985
|
type: n.type,
|
|
14979
14986
|
source: {
|
|
@@ -15302,11 +15309,11 @@ function V9(A) {
|
|
|
15302
15309
|
mode: A.mode
|
|
15303
15310
|
}), [A.droppableId, A.mode, A.type]), t = W(e), n = CA(() => yA((m, f) => {
|
|
15304
15311
|
g.current || (process.env.NODE_ENV !== "production" ? p(!1, "Can only update scroll when dragging") : p());
|
|
15305
|
-
const
|
|
15312
|
+
const v = {
|
|
15306
15313
|
x: m,
|
|
15307
15314
|
y: f
|
|
15308
15315
|
};
|
|
15309
|
-
E.updateDroppableScroll(e.id,
|
|
15316
|
+
E.updateDroppableScroll(e.id, v);
|
|
15310
15317
|
}), [e.id, E]), o = J(() => {
|
|
15311
15318
|
const m = g.current;
|
|
15312
15319
|
return !m || !m.env.closestScrollable ? SA : JB(m.env.closestScrollable);
|
|
@@ -15322,7 +15329,7 @@ function V9(A) {
|
|
|
15322
15329
|
i();
|
|
15323
15330
|
}, [i, r]), c = J((m, f) => {
|
|
15324
15331
|
g.current && (process.env.NODE_ENV !== "production" ? p(!1, "Cannot collect a droppable while a drag is occurring") : p());
|
|
15325
|
-
const
|
|
15332
|
+
const v = Q.current, w = v.getDroppableRef();
|
|
15326
15333
|
w || (process.env.NODE_ENV !== "production" ? p(!1, "Cannot collect without a droppable ref") : p());
|
|
15327
15334
|
const S = G9(w), M = {
|
|
15328
15335
|
ref: w,
|
|
@@ -15336,10 +15343,10 @@ function V9(A) {
|
|
|
15336
15343
|
descriptor: e,
|
|
15337
15344
|
env: S,
|
|
15338
15345
|
windowScroll: m,
|
|
15339
|
-
direction:
|
|
15340
|
-
isDropDisabled:
|
|
15341
|
-
isCombineEnabled:
|
|
15342
|
-
shouldClipSubject: !
|
|
15346
|
+
direction: v.direction,
|
|
15347
|
+
isDropDisabled: v.isDropDisabled,
|
|
15348
|
+
isCombineEnabled: v.isCombineEnabled,
|
|
15349
|
+
shouldClipSubject: !v.ignoreContainerClipping
|
|
15343
15350
|
}), X = S.closestScrollable;
|
|
15344
15351
|
return X && (X.setAttribute(le.contextId, C.contextId), X.addEventListener("scroll", a, be(M.scrollOptions)), process.env.NODE_ENV !== "production" && U9(X)), R;
|
|
15345
15352
|
}, [C.contextId, e, a, Q]), u = J(() => {
|
|
@@ -15353,9 +15360,9 @@ function V9(A) {
|
|
|
15353
15360
|
}, [a, i]), d = J((m) => {
|
|
15354
15361
|
const f = g.current;
|
|
15355
15362
|
f || (process.env.NODE_ENV !== "production" ? p(!1, "Cannot scroll when there is no drag") : p());
|
|
15356
|
-
const
|
|
15357
|
-
|
|
15358
|
-
}, []),
|
|
15363
|
+
const v = nI(f);
|
|
15364
|
+
v || (process.env.NODE_ENV !== "production" ? p(!1, "Cannot scroll a droppable with no closest scrollable") : p()), v.scrollTop += m.y, v.scrollLeft += m.x;
|
|
15365
|
+
}, []), h = CA(() => ({
|
|
15359
15366
|
getDimensionAndWatchScroll: c,
|
|
15360
15367
|
getScrollWhileDragging: u,
|
|
15361
15368
|
dragStopped: s,
|
|
@@ -15363,11 +15370,11 @@ function V9(A) {
|
|
|
15363
15370
|
}), [s, c, u, d]), b = CA(() => ({
|
|
15364
15371
|
uniqueId: I,
|
|
15365
15372
|
descriptor: e,
|
|
15366
|
-
callbacks:
|
|
15367
|
-
}), [
|
|
15373
|
+
callbacks: h
|
|
15374
|
+
}), [h, e, I]);
|
|
15368
15375
|
jA(() => (t.current = b.descriptor, B.droppable.register(b), () => {
|
|
15369
15376
|
g.current && (process.env.NODE_ENV !== "production" && sA("Unsupported: changing the droppableId or type of a Droppable during a drag"), s()), B.droppable.unregister(b);
|
|
15370
|
-
}), [
|
|
15377
|
+
}), [h, e, s, b, E, B.droppable]), jA(() => {
|
|
15371
15378
|
g.current && E.updateDroppableIsEnabled(t.current.id, !A.isDropDisabled);
|
|
15372
15379
|
}, [A.isDropDisabled, E]), jA(() => {
|
|
15373
15380
|
g.current && E.updateDroppableIsCombineEnabled(t.current.id, A.isCombineEnabled);
|
|
@@ -15542,17 +15549,17 @@ const Ay = (A) => {
|
|
|
15542
15549
|
useClone: u,
|
|
15543
15550
|
updateViewportMaxScroll: s,
|
|
15544
15551
|
getContainerForClone: d
|
|
15545
|
-
} = A,
|
|
15552
|
+
} = A, h = J(() => B.current, []), b = J((Y = null) => {
|
|
15546
15553
|
B.current = Y;
|
|
15547
15554
|
}, []), m = J(() => E.current, []), f = J((Y = null) => {
|
|
15548
15555
|
E.current = Y;
|
|
15549
15556
|
}, []);
|
|
15550
15557
|
_9({
|
|
15551
15558
|
props: A,
|
|
15552
|
-
getDroppableRef:
|
|
15559
|
+
getDroppableRef: h,
|
|
15553
15560
|
getPlaceholderRef: m
|
|
15554
15561
|
});
|
|
15555
|
-
const
|
|
15562
|
+
const v = J(() => {
|
|
15556
15563
|
I() && s({
|
|
15557
15564
|
maxScroll: or()
|
|
15558
15565
|
});
|
|
@@ -15565,7 +15572,7 @@ const Ay = (A) => {
|
|
|
15565
15572
|
isDropDisabled: i,
|
|
15566
15573
|
isCombineEnabled: a,
|
|
15567
15574
|
ignoreContainerClipping: r,
|
|
15568
|
-
getDroppableRef:
|
|
15575
|
+
getDroppableRef: h
|
|
15569
15576
|
});
|
|
15570
15577
|
const w = CA(() => D.createElement($9, {
|
|
15571
15578
|
on: A.placeholder,
|
|
@@ -15580,8 +15587,8 @@ const Ay = (A) => {
|
|
|
15580
15587
|
innerRef: f,
|
|
15581
15588
|
animate: U,
|
|
15582
15589
|
contextId: C,
|
|
15583
|
-
onTransitionEnd:
|
|
15584
|
-
})), [C,
|
|
15590
|
+
onTransitionEnd: v
|
|
15591
|
+
})), [C, v, A.placeholder, A.shouldAnimatePlaceholder, f]), S = CA(() => ({
|
|
15585
15592
|
innerRef: b,
|
|
15586
15593
|
placeholder: w,
|
|
15587
15594
|
droppableProps: {
|