@astrato-io/visualizations 0.8.0 → 0.9.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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +307 -378
- package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
- package/chunks/CircularProgress-DFS-LQb7.js +765 -0
- package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
- package/chunks/LinearProgress-CjIQfkNA.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
- package/chunks/Title-CtFw1bVg.js +1804 -0
- package/chunks/ToggleButton-Br9HCPCv.js +150 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
- package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
- package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
- package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
- package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
- package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
- package/chunks/isFocusVisible-B1_z03UT.js +144 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
- package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
- package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
- package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
- package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
- package/chunks/react-dom-BwZT0N3F.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-CYpVh65U.js} +52 -52
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
- package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
- package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
- package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
- package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
- package/chunks/{standalone-vBnBS2YC.js → standalone-BDrQMxLi.js} +98 -98
- package/chunks/standalone-BMoJXGYe.js +2 -0
- package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
- package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
- package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
- package/chunks/standalone-CMJJIi9v.js +2 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
- package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
- package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
- package/chunks/standalone-C_Jd4gkj.js +6 -0
- package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
- package/chunks/standalone-CoQxJ6ov.js +3638 -0
- package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
- package/chunks/standalone-DBeXQrwH.js +468 -0
- package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
- package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
- package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
- package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
- package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
- package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
- package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
- package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-mWrD_uk_.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
- package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
- package/chunks/with-html-element-B0Clt4jY.js +15901 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +1 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +66 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +74 -68
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +67 -66
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
- package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-DT0wKji7.js +0 -6
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
- /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Hi as n } from "./visualization-filters-
|
|
3
|
-
import { $
|
|
4
|
-
import "./logger-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import "./
|
|
9
|
-
import { a as
|
|
10
|
-
|
|
2
|
+
import { Hi as n } from "./visualization-filters-mVnsnvLP.js";
|
|
3
|
+
import { $ as r, $r as i, B as a, Cr as o, Dr as s, Er as c, G as l, J as u, Jn as d, Ln as f, Qr as p, W as m, ei as h, et as g, in as _, it as v, jr as y, kn as b, nt as x, r as S, ti as C, xr as w } from "./utils-DYYD4Zzf.js";
|
|
4
|
+
import "./logger-3lng-wOw.js";
|
|
5
|
+
import { _ as T, a as E, d as D, f as ee, i as O, l as k, m as A, o as j, r as M, s as N, u as P, v as F } from "./react-dom-BwZT0N3F.js";
|
|
6
|
+
import { d as I, f as te, i as ne, l as L, n as R, s as re, u as z } from "./isFocusVisible-B1_z03UT.js";
|
|
7
|
+
import { a as ie, c as ae, f as oe, h as se, l as ce, n as le, p as ue, s as de, t as fe, v as pe, y as me } from "./Title-CtFw1bVg.js";
|
|
8
|
+
import { i as he, n as ge, r as B, t as V } from "./contains-BK-sRXcB.js";
|
|
9
|
+
import { a as _e, d as ve, f as H } from "./responsive.styles-FItb913l.js";
|
|
10
|
+
import "./coloring-B-Wa8D5P.js";
|
|
11
|
+
var ye = /* @__PURE__ */ function(e) {
|
|
11
12
|
return e.left = "left", e.right = "right", e;
|
|
12
|
-
}({}),
|
|
13
|
+
}({}), be = /* @__PURE__ */ t(((e, t) => {
|
|
13
14
|
t.exports = {
|
|
14
15
|
aliceblue: [
|
|
15
16
|
240,
|
|
@@ -752,12 +753,12 @@ var ae = /* @__PURE__ */ function(e) {
|
|
|
752
753
|
50
|
|
753
754
|
]
|
|
754
755
|
};
|
|
755
|
-
})),
|
|
756
|
+
})), xe = /* @__PURE__ */ t(((e, t) => {
|
|
756
757
|
t.exports = function(e) {
|
|
757
758
|
return !e || typeof e == "string" ? !1 : e instanceof Array || Array.isArray(e) || e.length >= 0 && (e.splice instanceof Function || Object.getOwnPropertyDescriptor(e, e.length - 1) && e.constructor.name !== "String");
|
|
758
759
|
};
|
|
759
|
-
})),
|
|
760
|
-
var n =
|
|
760
|
+
})), Se = /* @__PURE__ */ t(((e, t) => {
|
|
761
|
+
var n = xe(), r = Array.prototype.concat, i = Array.prototype.slice, a = t.exports = function(e) {
|
|
761
762
|
for (var t = [], a = 0, o = e.length; a < o; a++) {
|
|
762
763
|
var s = e[a];
|
|
763
764
|
n(s) ? t = r.call(t, i.call(s)) : t.push(s);
|
|
@@ -769,8 +770,8 @@ var ae = /* @__PURE__ */ function(e) {
|
|
|
769
770
|
return e(a(arguments));
|
|
770
771
|
};
|
|
771
772
|
};
|
|
772
|
-
})),
|
|
773
|
-
var n =
|
|
773
|
+
})), Ce = /* @__PURE__ */ t(((e, t) => {
|
|
774
|
+
var n = be(), r = Se(), i = Object.hasOwnProperty, a = Object.create(null);
|
|
774
775
|
for (var o in n) i.call(n, o) && (a[n[o]] = o);
|
|
775
776
|
var s = t.exports = {
|
|
776
777
|
to: {},
|
|
@@ -876,8 +877,8 @@ var ae = /* @__PURE__ */ function(e) {
|
|
|
876
877
|
var t = Math.round(e).toString(16).toUpperCase();
|
|
877
878
|
return t.length < 2 ? "0" + t : t;
|
|
878
879
|
}
|
|
879
|
-
})),
|
|
880
|
-
var n =
|
|
880
|
+
})), we = /* @__PURE__ */ t(((e, t) => {
|
|
881
|
+
var n = be(), r = {};
|
|
881
882
|
for (let e of Object.keys(n)) r[n[e]] = e;
|
|
882
883
|
var i = {
|
|
883
884
|
rgb: {
|
|
@@ -1355,8 +1356,8 @@ var ae = /* @__PURE__ */ function(e) {
|
|
|
1355
1356
|
}, i.rgb.gray = function(e) {
|
|
1356
1357
|
return [(e[0] + e[1] + e[2]) / 3 / 255 * 100];
|
|
1357
1358
|
};
|
|
1358
|
-
})),
|
|
1359
|
-
var n =
|
|
1359
|
+
})), Te = /* @__PURE__ */ t(((e, t) => {
|
|
1360
|
+
var n = we();
|
|
1360
1361
|
function r() {
|
|
1361
1362
|
let e = {}, t = Object.keys(n);
|
|
1362
1363
|
for (let n = t.length, r = 0; r < n; r++) e[t[r]] = {
|
|
@@ -1394,8 +1395,8 @@ var ae = /* @__PURE__ */ function(e) {
|
|
|
1394
1395
|
}
|
|
1395
1396
|
return n;
|
|
1396
1397
|
};
|
|
1397
|
-
})),
|
|
1398
|
-
var n =
|
|
1398
|
+
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
1399
|
+
var n = we(), r = Te(), i = {}, a = Object.keys(n);
|
|
1399
1400
|
function o(e) {
|
|
1400
1401
|
let t = function(...t) {
|
|
1401
1402
|
let n = t[0];
|
|
@@ -1422,8 +1423,8 @@ var ae = /* @__PURE__ */ function(e) {
|
|
|
1422
1423
|
i[e][n] = s(r), i[e][n].raw = o(r);
|
|
1423
1424
|
});
|
|
1424
1425
|
}), t.exports = i;
|
|
1425
|
-
})),
|
|
1426
|
-
var n =
|
|
1426
|
+
})), De = /* @__PURE__ */ t(((e, t) => {
|
|
1427
|
+
var n = Ce(), r = Ee(), i = [
|
|
1427
1428
|
"keyword",
|
|
1428
1429
|
"gray",
|
|
1429
1430
|
"hex"
|
|
@@ -1664,12 +1665,7 @@ var ae = /* @__PURE__ */ function(e) {
|
|
|
1664
1665
|
}
|
|
1665
1666
|
t.exports = s;
|
|
1666
1667
|
}));
|
|
1667
|
-
function
|
|
1668
|
-
return e.reduce((e, t) => t == null ? e : function(...n) {
|
|
1669
|
-
e.apply(this, n), t.apply(this, n);
|
|
1670
|
-
}, () => {});
|
|
1671
|
-
}
|
|
1672
|
-
function he(e, t = 166) {
|
|
1668
|
+
function Oe(e, t = 166) {
|
|
1673
1669
|
let n;
|
|
1674
1670
|
function r(...r) {
|
|
1675
1671
|
clearTimeout(n), n = setTimeout(() => {
|
|
@@ -1680,38 +1676,63 @@ function he(e, t = 166) {
|
|
|
1680
1676
|
clearTimeout(n);
|
|
1681
1677
|
}, r;
|
|
1682
1678
|
}
|
|
1683
|
-
function
|
|
1684
|
-
return
|
|
1679
|
+
function U(e) {
|
|
1680
|
+
return L(e).defaultView || window;
|
|
1685
1681
|
}
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
return
|
|
1682
|
+
var W = /* @__PURE__ */ e(h(), 1), G = y(), ke = x, K = L;
|
|
1683
|
+
function Ae(...e) {
|
|
1684
|
+
return e.reduce((e, t) => t == null ? e : function(...n) {
|
|
1685
|
+
e.apply(this, n), t.apply(this, n);
|
|
1686
|
+
}, () => {});
|
|
1689
1687
|
}
|
|
1690
|
-
var
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
function
|
|
1697
|
-
|
|
1688
|
+
var je = Oe, Me = U;
|
|
1689
|
+
function Ne(e, t) {
|
|
1690
|
+
if (!e) return t;
|
|
1691
|
+
function n(e, t) {
|
|
1692
|
+
let n = {};
|
|
1693
|
+
return Object.keys(t).forEach((r) => {
|
|
1694
|
+
re(r, t[r]) && typeof e[r] == "function" && (n[r] = (...n) => {
|
|
1695
|
+
e[r](...n), t[r](...n);
|
|
1696
|
+
});
|
|
1697
|
+
}), n;
|
|
1698
|
+
}
|
|
1699
|
+
if (typeof e == "function" || typeof t == "function") return (r) => {
|
|
1700
|
+
let i = typeof t == "function" ? t(r) : t, a = typeof e == "function" ? e({
|
|
1701
|
+
...r,
|
|
1702
|
+
...i
|
|
1703
|
+
}) : e, o = v(r?.className, i?.className, a?.className), s = n(a, i), c = {
|
|
1704
|
+
...i,
|
|
1705
|
+
...a,
|
|
1706
|
+
...s
|
|
1707
|
+
};
|
|
1708
|
+
return o && (c.className = o), i?.style && a?.style && (c.style = {
|
|
1709
|
+
...i.style,
|
|
1710
|
+
...a.style
|
|
1711
|
+
}), i?.sx && a?.sx && (c.sx = [...Array.isArray(i.sx) ? i.sx : [i.sx], ...Array.isArray(a.sx) ? a.sx : [a.sx]]), c;
|
|
1712
|
+
};
|
|
1713
|
+
let r = t, i = n(e, r), a = v(r?.className, e?.className), o = {
|
|
1714
|
+
...t,
|
|
1715
|
+
...e,
|
|
1716
|
+
...i
|
|
1717
|
+
};
|
|
1718
|
+
return a && (o.className = a), r?.style && e?.style && (o.style = {
|
|
1719
|
+
...r.style,
|
|
1720
|
+
...e.style
|
|
1721
|
+
}), r?.sx && e?.sx && (o.sx = [...Array.isArray(r.sx) ? r.sx : [r.sx], ...Array.isArray(e.sx) ? e.sx : [e.sx]]), o;
|
|
1698
1722
|
}
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
"square",
|
|
1705
|
-
"variant"
|
|
1706
|
-
], Te = (e) => {
|
|
1723
|
+
function Pe(e) {
|
|
1724
|
+
return F("MuiPaper", e);
|
|
1725
|
+
}
|
|
1726
|
+
T("MuiPaper", /* @__PURE__ */ "root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24".split("."));
|
|
1727
|
+
var Fe = (e) => {
|
|
1707
1728
|
let { square: t, elevation: n, variant: r, classes: i } = e;
|
|
1708
|
-
return
|
|
1729
|
+
return A({ root: [
|
|
1709
1730
|
"root",
|
|
1710
1731
|
r,
|
|
1711
1732
|
!t && "rounded",
|
|
1712
1733
|
r === "elevation" && `elevation${n}`
|
|
1713
|
-
] },
|
|
1714
|
-
},
|
|
1734
|
+
] }, Pe, i);
|
|
1735
|
+
}, Ie = D("div", {
|
|
1715
1736
|
name: "MuiPaper",
|
|
1716
1737
|
slot: "Root",
|
|
1717
1738
|
overridesResolver: (e, t) => {
|
|
@@ -1723,120 +1744,138 @@ var we = [
|
|
|
1723
1744
|
n.variant === "elevation" && t[`elevation${n.elevation}`]
|
|
1724
1745
|
];
|
|
1725
1746
|
}
|
|
1726
|
-
})(({ theme: e
|
|
1747
|
+
})(P(({ theme: e }) => ({
|
|
1727
1748
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
1728
1749
|
color: (e.vars || e).palette.text.primary,
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1750
|
+
...E(e, "box-shadow"),
|
|
1751
|
+
variants: [
|
|
1752
|
+
{
|
|
1753
|
+
props: ({ ownerState: e }) => !e.square,
|
|
1754
|
+
style: { borderRadius: (e.vars || e).shape.borderRadius }
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
props: { variant: "outlined" },
|
|
1758
|
+
style: { border: `1px solid ${(e.vars || e).palette.divider}` }
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
props: { variant: "elevation" },
|
|
1762
|
+
style: {
|
|
1763
|
+
boxShadow: "var(--Paper-shadow)",
|
|
1764
|
+
backgroundImage: "var(--Paper-overlay)"
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
]
|
|
1768
|
+
}))), Le = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
1769
|
+
let n = k({
|
|
1732
1770
|
props: e,
|
|
1733
1771
|
name: "MuiPaper"
|
|
1734
|
-
}), { className:
|
|
1735
|
-
|
|
1736
|
-
|
|
1772
|
+
}), r = l(), { className: i, component: a = "div", elevation: o = 1, square: s = !1, variant: c = "elevation", ...d } = n, f = {
|
|
1773
|
+
...n,
|
|
1774
|
+
component: a,
|
|
1775
|
+
elevation: o,
|
|
1737
1776
|
square: s,
|
|
1738
1777
|
variant: c
|
|
1739
|
-
}
|
|
1740
|
-
return /*#__PURE__*/ (0,
|
|
1741
|
-
as:
|
|
1742
|
-
ownerState:
|
|
1743
|
-
className:
|
|
1744
|
-
ref: t
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
"onEntering",
|
|
1757
|
-
"onExit",
|
|
1758
|
-
"onExited",
|
|
1759
|
-
"onExiting",
|
|
1760
|
-
"style",
|
|
1761
|
-
"timeout",
|
|
1762
|
-
"TransitionComponent"
|
|
1763
|
-
], ke = {
|
|
1778
|
+
}, p = Fe(f);
|
|
1779
|
+
return /*#__PURE__*/ (0, G.jsx)(Ie, {
|
|
1780
|
+
as: a,
|
|
1781
|
+
ownerState: f,
|
|
1782
|
+
className: v(p.root, i),
|
|
1783
|
+
ref: t,
|
|
1784
|
+
...d,
|
|
1785
|
+
style: {
|
|
1786
|
+
...c === "elevation" && {
|
|
1787
|
+
"--Paper-shadow": (r.vars || r).shadows[o],
|
|
1788
|
+
...r.vars && { "--Paper-overlay": r.vars.overlays?.[o] },
|
|
1789
|
+
...!r.vars && r.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${g("#fff", u(o))}, ${g("#fff", u(o))})` }
|
|
1790
|
+
},
|
|
1791
|
+
...d.style
|
|
1792
|
+
}
|
|
1793
|
+
});
|
|
1794
|
+
}), Re = {
|
|
1764
1795
|
entering: { opacity: 1 },
|
|
1765
|
-
entered: { opacity: 1 }
|
|
1766
|
-
|
|
1796
|
+
entered: { opacity: 1 },
|
|
1797
|
+
exiting: { opacity: 0 },
|
|
1798
|
+
exited: { opacity: 0 }
|
|
1799
|
+
}, ze = {
|
|
1800
|
+
opacity: 0,
|
|
1801
|
+
visibility: "hidden"
|
|
1802
|
+
}, Be = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
1767
1803
|
let n = l(), r = {
|
|
1768
1804
|
enter: n.transitions.duration.enteringScreen,
|
|
1769
1805
|
exit: n.transitions.duration.leavingScreen
|
|
1770
|
-
}, { addEndListener: i, appear: a = !0, children: s, easing: c, in: u, onEnter: d, onEntered: f, onEntering: p, onExit: m, onExited: h, onExiting: g, style: _, timeout:
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
t === void 0 ? e(n) : e(n, t);
|
|
1774
|
-
}
|
|
1775
|
-
}, T = w(p), E = w((e, t) => {
|
|
1776
|
-
H(e);
|
|
1777
|
-
let r = B({
|
|
1778
|
-
style: _,
|
|
1779
|
-
timeout: y,
|
|
1780
|
-
easing: c
|
|
1781
|
-
}, { mode: "enter" });
|
|
1782
|
-
e.style.webkitTransition = n.transitions.create("opacity", r), e.style.transition = n.transitions.create("opacity", r), d && d(e, t);
|
|
1783
|
-
}), D = w(f), O = w(g), k = w((e) => {
|
|
1784
|
-
let t = B({
|
|
1806
|
+
}, { addEndListener: i, appear: a = !0, children: o, disablePrefersReducedMotion: s = !1, easing: c, in: u, onEnter: d, onEntered: f, onEntering: p, onExit: m, onExited: h, onExiting: g, style: _, timeout: v = r, ...y } = e, b = oe(n.motion.reducedMotion, s), x = W.useRef(null), S = me(x, ae(o), t), C = j(x, p), w = j(x, (e, t) => {
|
|
1807
|
+
b.shouldReduceMotion || N(e);
|
|
1808
|
+
let r = O({
|
|
1785
1809
|
style: _,
|
|
1786
|
-
timeout:
|
|
1810
|
+
timeout: v,
|
|
1787
1811
|
easing: c
|
|
1788
|
-
}, { mode: "
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1812
|
+
}, { mode: "enter" }), i = b.getTransitionTiming({
|
|
1813
|
+
duration: r.duration,
|
|
1814
|
+
delay: r.delay
|
|
1815
|
+
});
|
|
1816
|
+
e.style.transition = n.transitions.create("opacity", {
|
|
1817
|
+
duration: i.duration,
|
|
1818
|
+
easing: r.easing,
|
|
1819
|
+
delay: i.delay
|
|
1820
|
+
}), d && d(e, t);
|
|
1821
|
+
}), T = j(x, f), E = j(x, g);
|
|
1822
|
+
return /*#__PURE__*/ (0, G.jsx)(ue, {
|
|
1792
1823
|
appear: a,
|
|
1793
1824
|
in: u,
|
|
1794
|
-
nodeRef:
|
|
1795
|
-
onEnter:
|
|
1796
|
-
onEntered:
|
|
1797
|
-
onEntering:
|
|
1798
|
-
onExit:
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
opacity
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1825
|
+
nodeRef: x,
|
|
1826
|
+
onEnter: w,
|
|
1827
|
+
onEntered: T,
|
|
1828
|
+
onEntering: C,
|
|
1829
|
+
onExit: j(x, (e) => {
|
|
1830
|
+
let t = O({
|
|
1831
|
+
style: _,
|
|
1832
|
+
timeout: v,
|
|
1833
|
+
easing: c
|
|
1834
|
+
}, { mode: "exit" }), r = b.getTransitionTiming({
|
|
1835
|
+
duration: t.duration,
|
|
1836
|
+
delay: t.delay
|
|
1837
|
+
});
|
|
1838
|
+
e.style.transition = n.transitions.create("opacity", {
|
|
1839
|
+
duration: r.duration,
|
|
1840
|
+
easing: t.easing,
|
|
1841
|
+
delay: r.delay
|
|
1842
|
+
}), m && m(e);
|
|
1843
|
+
}),
|
|
1844
|
+
onExited: j(x, (e) => {
|
|
1845
|
+
e.style.transition = "", h && h(e);
|
|
1846
|
+
}),
|
|
1847
|
+
onExiting: E,
|
|
1848
|
+
addEndListener: i ? (e) => {
|
|
1849
|
+
i(x.current, e);
|
|
1850
|
+
} : void 0,
|
|
1851
|
+
reduceMotion: b.shouldReduceMotion,
|
|
1852
|
+
timeout: v,
|
|
1853
|
+
...y,
|
|
1854
|
+
children: (e, { ownerState: t, ...n }) => {
|
|
1855
|
+
let r = M(e, u, Re, ze, _, o.props.style);
|
|
1856
|
+
return /*#__PURE__*/ W.cloneElement(o, {
|
|
1857
|
+
style: r,
|
|
1858
|
+
ref: S,
|
|
1859
|
+
...n
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
});
|
|
1812
1863
|
});
|
|
1813
|
-
function
|
|
1814
|
-
return
|
|
1864
|
+
function Ve(e) {
|
|
1865
|
+
return F("MuiBackdrop", e);
|
|
1815
1866
|
}
|
|
1816
|
-
|
|
1817
|
-
var
|
|
1818
|
-
"children",
|
|
1819
|
-
"className",
|
|
1820
|
-
"component",
|
|
1821
|
-
"components",
|
|
1822
|
-
"componentsProps",
|
|
1823
|
-
"invisible",
|
|
1824
|
-
"open",
|
|
1825
|
-
"slotProps",
|
|
1826
|
-
"slots",
|
|
1827
|
-
"TransitionComponent",
|
|
1828
|
-
"transitionDuration"
|
|
1829
|
-
], Ne = (e) => {
|
|
1867
|
+
T("MuiBackdrop", ["root", "invisible"]);
|
|
1868
|
+
var He = (e) => {
|
|
1830
1869
|
let { classes: t, invisible: n } = e;
|
|
1831
|
-
return
|
|
1832
|
-
},
|
|
1870
|
+
return A({ root: ["root", n && "invisible"] }, Ve, t);
|
|
1871
|
+
}, Ue = D("div", {
|
|
1833
1872
|
name: "MuiBackdrop",
|
|
1834
1873
|
slot: "Root",
|
|
1835
1874
|
overridesResolver: (e, t) => {
|
|
1836
1875
|
let { ownerState: n } = e;
|
|
1837
1876
|
return [t.root, n.invisible && t.invisible];
|
|
1838
1877
|
}
|
|
1839
|
-
})(
|
|
1878
|
+
})({
|
|
1840
1879
|
position: "fixed",
|
|
1841
1880
|
display: "flex",
|
|
1842
1881
|
alignItems: "center",
|
|
@@ -1846,85 +1885,107 @@ var Me = [
|
|
|
1846
1885
|
top: 0,
|
|
1847
1886
|
left: 0,
|
|
1848
1887
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
1849
|
-
WebkitTapHighlightColor: "transparent"
|
|
1850
|
-
|
|
1851
|
-
|
|
1888
|
+
WebkitTapHighlightColor: "transparent",
|
|
1889
|
+
variants: [{
|
|
1890
|
+
props: { invisible: !0 },
|
|
1891
|
+
style: { backgroundColor: "transparent" }
|
|
1892
|
+
}]
|
|
1893
|
+
}), We = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
1894
|
+
let n = k({
|
|
1852
1895
|
props: e,
|
|
1853
1896
|
name: "MuiBackdrop"
|
|
1854
|
-
}), { children: r, className: i, component: a = "div",
|
|
1897
|
+
}), { children: r, className: i, component: a = "div", invisible: o = !1, open: s, slotProps: c = {}, slots: l = {}, transitionDuration: u, ...d } = n, f = {
|
|
1898
|
+
...n,
|
|
1855
1899
|
component: a,
|
|
1856
|
-
invisible:
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
}, h,
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1900
|
+
invisible: o
|
|
1901
|
+
}, p = He(f), m = {
|
|
1902
|
+
component: a,
|
|
1903
|
+
slots: l,
|
|
1904
|
+
slotProps: c
|
|
1905
|
+
}, [h, g] = R("root", {
|
|
1906
|
+
elementType: Ue,
|
|
1907
|
+
externalForwardedProps: m,
|
|
1908
|
+
className: v(p.root, i),
|
|
1909
|
+
ownerState: f
|
|
1910
|
+
}), [_, y] = R("transition", {
|
|
1911
|
+
elementType: Be,
|
|
1912
|
+
externalForwardedProps: m,
|
|
1913
|
+
ownerState: f
|
|
1914
|
+
});
|
|
1915
|
+
return /*#__PURE__*/ (0, G.jsx)(_, {
|
|
1916
|
+
in: s,
|
|
1917
|
+
timeout: u,
|
|
1918
|
+
...d,
|
|
1919
|
+
...y,
|
|
1920
|
+
children: /*#__PURE__*/ (0, G.jsx)(h, {
|
|
1921
|
+
...g,
|
|
1922
|
+
ref: t,
|
|
1923
|
+
children: r
|
|
1924
|
+
})
|
|
1925
|
+
});
|
|
1869
1926
|
});
|
|
1870
|
-
function
|
|
1927
|
+
function Ge(e) {
|
|
1871
1928
|
return e.substring(2).toLowerCase();
|
|
1872
1929
|
}
|
|
1873
|
-
function
|
|
1930
|
+
function Ke(e, t) {
|
|
1874
1931
|
return t.documentElement.clientWidth < e.clientX || t.documentElement.clientHeight < e.clientY;
|
|
1875
1932
|
}
|
|
1876
|
-
function
|
|
1877
|
-
let { children: t, disableReactTree: n = !1, mouseEvent: r = "onClick", onClickAway: i, touchEvent: a = "onTouchEnd" } = e, o =
|
|
1878
|
-
|
|
1933
|
+
function qe(e) {
|
|
1934
|
+
let { children: t, disableReactTree: n = !1, mouseEvent: r = "onClick", onClickAway: i, touchEvent: a = "onTouchEnd" } = e, o = W.useRef(!1), s = W.useRef(null), c = W.useRef(!1), l = W.useRef(!1);
|
|
1935
|
+
W.useEffect(() => (setTimeout(() => {
|
|
1879
1936
|
c.current = !0;
|
|
1880
1937
|
}, 0), () => {
|
|
1881
1938
|
c.current = !1;
|
|
1882
1939
|
}), []);
|
|
1883
|
-
let u =
|
|
1940
|
+
let u = I(ae(t), s), d = z((e) => {
|
|
1884
1941
|
let t = l.current;
|
|
1885
1942
|
l.current = !1;
|
|
1886
|
-
let r =
|
|
1887
|
-
if (!c.current || !s.current || "clientX" in e &&
|
|
1943
|
+
let r = L(s.current);
|
|
1944
|
+
if (!c.current || !s.current || "clientX" in e && Ke(e, r)) return;
|
|
1888
1945
|
if (o.current) {
|
|
1889
1946
|
o.current = !1;
|
|
1890
1947
|
return;
|
|
1891
1948
|
}
|
|
1892
1949
|
let a;
|
|
1893
|
-
a = e.composedPath ? e.composedPath().
|
|
1950
|
+
a = e.composedPath ? e.composedPath().includes(s.current) : !ge(r.documentElement, e.target) || ge(s.current, e.target), !a && (n || !t) && i(e);
|
|
1894
1951
|
}), f = (e) => (n) => {
|
|
1895
1952
|
l.current = !0;
|
|
1896
1953
|
let r = t.props[e];
|
|
1897
1954
|
r && r(n);
|
|
1898
1955
|
}, p = { ref: u };
|
|
1899
|
-
return a !== !1 && (p[a] = f(a)),
|
|
1956
|
+
return a !== !1 && (p[a] = f(a)), W.useEffect(() => {
|
|
1900
1957
|
if (a !== !1) {
|
|
1901
|
-
let e =
|
|
1958
|
+
let e = Ge(a), t = L(s.current), n = () => {
|
|
1902
1959
|
o.current = !0;
|
|
1903
1960
|
};
|
|
1904
1961
|
return t.addEventListener(e, d), t.addEventListener("touchmove", n), () => {
|
|
1905
1962
|
t.removeEventListener(e, d), t.removeEventListener("touchmove", n);
|
|
1906
1963
|
};
|
|
1907
1964
|
}
|
|
1908
|
-
}, [d, a]), r !== !1 && (p[r] = f(r)),
|
|
1965
|
+
}, [d, a]), r !== !1 && (p[r] = f(r)), W.useEffect(() => {
|
|
1909
1966
|
if (r !== !1) {
|
|
1910
|
-
let e =
|
|
1967
|
+
let e = Ge(r), t = L(s.current);
|
|
1911
1968
|
return t.addEventListener(e, d), () => {
|
|
1912
1969
|
t.removeEventListener(e, d);
|
|
1913
1970
|
};
|
|
1914
1971
|
}
|
|
1915
|
-
}, [d, r]), /*#__PURE__*/
|
|
1972
|
+
}, [d, r]), /*#__PURE__*/ W.cloneElement(t, p);
|
|
1973
|
+
}
|
|
1974
|
+
function Je(e = window) {
|
|
1975
|
+
let t = e.document.documentElement.clientWidth;
|
|
1976
|
+
return e.innerWidth - t;
|
|
1916
1977
|
}
|
|
1917
|
-
function
|
|
1918
|
-
let t =
|
|
1919
|
-
return t.body
|
|
1978
|
+
function Ye(e) {
|
|
1979
|
+
let t = L(e);
|
|
1980
|
+
return e === t.body || e === t.documentElement ? U(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
1920
1981
|
}
|
|
1921
|
-
function
|
|
1982
|
+
function q(e, t) {
|
|
1922
1983
|
t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
|
|
1923
1984
|
}
|
|
1924
|
-
function
|
|
1925
|
-
return
|
|
1985
|
+
function Xe(e) {
|
|
1986
|
+
return parseFloat(U(e).getComputedStyle(e).paddingRight) || 0;
|
|
1926
1987
|
}
|
|
1927
|
-
function
|
|
1988
|
+
function Ze(e) {
|
|
1928
1989
|
let t = [
|
|
1929
1990
|
"TEMPLATE",
|
|
1930
1991
|
"SCRIPT",
|
|
@@ -1940,49 +2001,58 @@ function Ve(e) {
|
|
|
1940
2001
|
"SLOT",
|
|
1941
2002
|
"SOURCE",
|
|
1942
2003
|
"TRACK"
|
|
1943
|
-
].
|
|
2004
|
+
].includes(e.tagName), n = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
|
|
1944
2005
|
return t || n;
|
|
1945
2006
|
}
|
|
1946
|
-
function
|
|
1947
|
-
let
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2007
|
+
function Qe(e, t) {
|
|
2008
|
+
let n = /* @__PURE__ */ new Set(), r = e;
|
|
2009
|
+
for (; r && r !== t;) n.add(r), r = r.parentElement;
|
|
2010
|
+
return r === t ? n : /* @__PURE__ */ new Set();
|
|
2011
|
+
}
|
|
2012
|
+
function $e(e, t, n, r) {
|
|
1952
2013
|
[].forEach.call(e.children, (e) => {
|
|
1953
|
-
|
|
1954
|
-
|
|
2014
|
+
if (!(e === t || Ze(e))) {
|
|
2015
|
+
if (n.has(e)) {
|
|
2016
|
+
$e(e, t, n, r);
|
|
2017
|
+
return;
|
|
2018
|
+
}
|
|
2019
|
+
r.add(e);
|
|
2020
|
+
}
|
|
1955
2021
|
});
|
|
1956
2022
|
}
|
|
1957
|
-
function
|
|
1958
|
-
let n = -1;
|
|
1959
|
-
|
|
2023
|
+
function et(e) {
|
|
2024
|
+
let { container: t, modals: n } = e, r = n[n.length - 1].modalRef, i = /* @__PURE__ */ new Set();
|
|
2025
|
+
$e(t, r, Qe(r, t), i), i.forEach((t) => {
|
|
2026
|
+
!e.hiddenSet.has(t) && t.getAttribute("aria-hidden") === "true" && i.delete(t);
|
|
2027
|
+
}), e.hiddenSet.forEach((e) => {
|
|
2028
|
+
i.has(e) || q(e, !1);
|
|
2029
|
+
}), i.forEach((e) => q(e, !0)), r && q(r, !1), e.hiddenSet = i;
|
|
1960
2030
|
}
|
|
1961
|
-
function
|
|
2031
|
+
function tt(e, t) {
|
|
1962
2032
|
let n = [], r = e.container;
|
|
1963
2033
|
if (!t.disableScrollLock) {
|
|
1964
|
-
|
|
1965
|
-
|
|
2034
|
+
let e;
|
|
2035
|
+
if (r.parentNode instanceof DocumentFragment) e = L(r).body;
|
|
2036
|
+
else {
|
|
2037
|
+
let t = r.parentElement, n = U(r);
|
|
2038
|
+
e = t?.nodeName === "HTML" && n.getComputedStyle(t).overflowY === "scroll" ? t : r;
|
|
2039
|
+
}
|
|
2040
|
+
if (Ye(e)) {
|
|
2041
|
+
let t = Je(U(e));
|
|
1966
2042
|
n.push({
|
|
1967
|
-
value:
|
|
2043
|
+
value: e.style.paddingRight,
|
|
1968
2044
|
property: "padding-right",
|
|
1969
|
-
el:
|
|
1970
|
-
}),
|
|
1971
|
-
let
|
|
1972
|
-
[].forEach.call(
|
|
2045
|
+
el: e
|
|
2046
|
+
}), e.style.paddingRight = `${Xe(e) + t}px`;
|
|
2047
|
+
let i = L(r).querySelectorAll(".mui-fixed");
|
|
2048
|
+
[].forEach.call(i, (e) => {
|
|
1973
2049
|
n.push({
|
|
1974
|
-
value:
|
|
2050
|
+
value: e.style.paddingRight,
|
|
1975
2051
|
property: "padding-right",
|
|
1976
|
-
el:
|
|
1977
|
-
}),
|
|
2052
|
+
el: e
|
|
2053
|
+
}), e.style.paddingRight = `${Xe(e) + t}px`;
|
|
1978
2054
|
});
|
|
1979
2055
|
}
|
|
1980
|
-
let e;
|
|
1981
|
-
if (r.parentNode instanceof DocumentFragment) e = F(r).body;
|
|
1982
|
-
else {
|
|
1983
|
-
let t = r.parentElement, n = q(r);
|
|
1984
|
-
e = t?.nodeName === "HTML" && n.getComputedStyle(t).overflowY === "scroll" ? t : r;
|
|
1985
|
-
}
|
|
1986
2056
|
n.push({
|
|
1987
2057
|
value: e.style.overflow,
|
|
1988
2058
|
property: "overflow",
|
|
@@ -2003,49 +2073,41 @@ function We(e, t) {
|
|
|
2003
2073
|
});
|
|
2004
2074
|
};
|
|
2005
2075
|
}
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
e.getAttribute("aria-hidden") === "true" && t.push(e);
|
|
2010
|
-
}), t;
|
|
2011
|
-
}
|
|
2012
|
-
var Ke = class {
|
|
2013
|
-
constructor() {
|
|
2014
|
-
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
|
|
2015
|
-
}
|
|
2076
|
+
var nt = class {
|
|
2077
|
+
containers = [];
|
|
2078
|
+
modals = [];
|
|
2016
2079
|
add(e, t) {
|
|
2017
2080
|
let n = this.modals.indexOf(e);
|
|
2018
2081
|
if (n !== -1) return n;
|
|
2019
|
-
n = this.modals.length, this.modals.push(e), e.modalRef &&
|
|
2020
|
-
let r =
|
|
2021
|
-
|
|
2022
|
-
let i =
|
|
2023
|
-
return i === -1 ? (this.containers.push({
|
|
2082
|
+
n = this.modals.length, this.modals.push(e), e.modalRef && q(e.modalRef, !1);
|
|
2083
|
+
let r = this.containers.findIndex((e) => e.container === t);
|
|
2084
|
+
if (r !== -1) return this.containers[r].modals.push(e), et(this.containers[r]), n;
|
|
2085
|
+
let i = {
|
|
2024
2086
|
modals: [e],
|
|
2025
2087
|
container: t,
|
|
2026
2088
|
restore: null,
|
|
2027
|
-
|
|
2028
|
-
}
|
|
2089
|
+
hiddenSet: /* @__PURE__ */ new Set()
|
|
2090
|
+
};
|
|
2091
|
+
return this.containers.push(i), et(i), n;
|
|
2029
2092
|
}
|
|
2030
2093
|
mount(e, t) {
|
|
2031
|
-
let n =
|
|
2032
|
-
r.restore ||=
|
|
2094
|
+
let n = this.containers.findIndex((t) => t.modals.includes(e)), r = this.containers[n];
|
|
2095
|
+
r.restore ||= tt(r, t);
|
|
2033
2096
|
}
|
|
2034
2097
|
remove(e, t = !0) {
|
|
2035
2098
|
let n = this.modals.indexOf(e);
|
|
2036
2099
|
if (n === -1) return n;
|
|
2037
|
-
let r =
|
|
2038
|
-
|
|
2039
|
-
else {
|
|
2040
|
-
let e = i.modals[i.modals.length - 1];
|
|
2041
|
-
e.modalRef && X(e.modalRef, !1);
|
|
2042
|
-
}
|
|
2043
|
-
return n;
|
|
2100
|
+
let r = this.containers.findIndex((t) => t.modals.includes(e)), i = this.containers[r];
|
|
2101
|
+
return i.modals.splice(i.modals.indexOf(e), 1), this.modals.splice(n, 1), i.modals.length === 0 ? (i.restore && i.restore(), e.modalRef && q(e.modalRef, t), i.hiddenSet.forEach((e) => q(e, !1)), i.hiddenSet.clear(), this.containers.splice(r, 1)) : (et(i), e.modalRef && q(e.modalRef, t)), n;
|
|
2044
2102
|
}
|
|
2045
2103
|
isTopModal(e) {
|
|
2046
2104
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === e;
|
|
2047
2105
|
}
|
|
2048
|
-
},
|
|
2106
|
+
}, rt = "data-mui-focusable";
|
|
2107
|
+
function it(e) {
|
|
2108
|
+
return e ? e.hasAttribute("data-mui-focusable") ? e : e.querySelector(`[${rt}]`) : null;
|
|
2109
|
+
}
|
|
2110
|
+
var at = [
|
|
2049
2111
|
"input",
|
|
2050
2112
|
"select",
|
|
2051
2113
|
"textarea",
|
|
@@ -2056,66 +2118,84 @@ var Ke = class {
|
|
|
2056
2118
|
"video[controls]",
|
|
2057
2119
|
"[contenteditable]:not([contenteditable=\"false\"])"
|
|
2058
2120
|
].join(",");
|
|
2059
|
-
function
|
|
2121
|
+
function ot(e) {
|
|
2060
2122
|
let t = parseInt(e.getAttribute("tabindex") || "", 10);
|
|
2061
2123
|
return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
|
|
2062
2124
|
}
|
|
2063
|
-
function
|
|
2125
|
+
function st(e) {
|
|
2064
2126
|
if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name) return !1;
|
|
2065
2127
|
let t = (t) => e.ownerDocument.querySelector(`input[type="radio"]${t}`), n = t(`[name="${e.name}"]:checked`);
|
|
2066
2128
|
return n ||= t(`[name="${e.name}"]`), n !== e;
|
|
2067
2129
|
}
|
|
2068
|
-
function
|
|
2069
|
-
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" ||
|
|
2130
|
+
function ct(e) {
|
|
2131
|
+
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || st(e));
|
|
2070
2132
|
}
|
|
2071
|
-
function
|
|
2133
|
+
function lt(e) {
|
|
2072
2134
|
let t = [], n = [];
|
|
2073
|
-
return Array.from(e.querySelectorAll(
|
|
2074
|
-
let i =
|
|
2075
|
-
i === -1 || !
|
|
2135
|
+
return Array.from(e.querySelectorAll(at)).forEach((e, r) => {
|
|
2136
|
+
let i = ot(e);
|
|
2137
|
+
i === -1 || !ct(e) || (i === 0 ? t.push(e) : n.push({
|
|
2076
2138
|
documentOrder: r,
|
|
2077
2139
|
tabIndex: i,
|
|
2078
2140
|
node: e
|
|
2079
2141
|
}));
|
|
2080
2142
|
}), n.sort((e, t) => e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex).map((e) => e.node).concat(t);
|
|
2081
2143
|
}
|
|
2082
|
-
function
|
|
2144
|
+
function ut() {
|
|
2083
2145
|
return !0;
|
|
2084
2146
|
}
|
|
2085
|
-
function
|
|
2086
|
-
let { children: t, disableAutoFocus: n = !1, disableEnforceFocus: r = !1, disableRestoreFocus: i = !1, getTabbable: a =
|
|
2087
|
-
|
|
2147
|
+
function dt(e) {
|
|
2148
|
+
let { children: t, disableAutoFocus: n = !1, disableEnforceFocus: r = !1, disableRestoreFocus: i = !1, getTabbable: a = lt, isEnabled: o = ut, open: s } = e, c = W.useRef(!1), l = W.useRef(null), u = W.useRef(null), d = W.useRef(null), f = W.useRef(null), p = W.useRef(!1), m = W.useRef(null), h = I(ae(t), m), g = W.useRef(null);
|
|
2149
|
+
W.useEffect(() => {
|
|
2088
2150
|
!s || !m.current || (p.current = !n);
|
|
2089
|
-
}, [n, s]),
|
|
2090
|
-
if (!s || !m.current) return;
|
|
2091
|
-
let e =
|
|
2092
|
-
return m.current
|
|
2093
|
-
i
|
|
2151
|
+
}, [n, s]), W.useEffect(() => {
|
|
2152
|
+
if (c.current = !1, !s || !m.current) return;
|
|
2153
|
+
let e = B(L(m.current)), t = it(m.current) ?? m.current;
|
|
2154
|
+
return V(m.current, e) || (t.hasAttribute("tabIndex") || t.setAttribute("tabIndex", "-1"), p.current && t.focus()), () => {
|
|
2155
|
+
!i && d.current && (c.current = !0, d.current.focus(), d.current = null);
|
|
2094
2156
|
};
|
|
2095
|
-
}, [s]),
|
|
2157
|
+
}, [s]), W.useEffect(() => {
|
|
2096
2158
|
if (!s || !m.current) return;
|
|
2097
|
-
let e =
|
|
2098
|
-
g.current = t,
|
|
2159
|
+
let e = L(m.current), t = (t) => {
|
|
2160
|
+
if (g.current = t, r || !o() || t.key !== "Tab") return;
|
|
2161
|
+
let n = m.current, i = B(e);
|
|
2162
|
+
if (n === null) return;
|
|
2163
|
+
let s = it(n);
|
|
2164
|
+
if (i === n || i === s) {
|
|
2165
|
+
let e = a(n);
|
|
2166
|
+
if (e.length === 0) return;
|
|
2167
|
+
t.preventDefault(), t.shiftKey ? e[e.length - 1].focus() : e[0].focus();
|
|
2168
|
+
return;
|
|
2169
|
+
}
|
|
2170
|
+
if (V(n, i)) {
|
|
2171
|
+
let e = a(n), r = e.indexOf(i);
|
|
2172
|
+
if (r === -1 || !e.some((e) => ot(e) > 0)) return;
|
|
2173
|
+
t.preventDefault();
|
|
2174
|
+
let o = 0;
|
|
2175
|
+
o = t.shiftKey ? r <= 0 ? e.length - 1 : r - 1 : r === e.length - 1 ? 0 : r + 1, e[o].focus();
|
|
2176
|
+
}
|
|
2099
2177
|
}, n = () => {
|
|
2100
2178
|
let t = m.current;
|
|
2101
2179
|
if (t === null) return;
|
|
2180
|
+
let n = B(e);
|
|
2102
2181
|
if (!e.hasFocus() || !o() || c.current) {
|
|
2103
2182
|
c.current = !1;
|
|
2104
2183
|
return;
|
|
2105
2184
|
}
|
|
2106
|
-
if (t
|
|
2107
|
-
if (
|
|
2185
|
+
if (V(t, n) || r && n !== l.current && n !== u.current) return;
|
|
2186
|
+
if (n !== f.current) f.current = null;
|
|
2108
2187
|
else if (f.current !== null) return;
|
|
2109
2188
|
if (!p.current) return;
|
|
2110
|
-
let
|
|
2111
|
-
if ((
|
|
2112
|
-
let e = !!(g.current?.shiftKey && g.current?.key === "Tab"), t =
|
|
2113
|
-
typeof t != "string" && typeof
|
|
2189
|
+
let i = [];
|
|
2190
|
+
if ((n === l.current || n === u.current) && (i = a(m.current)), i.length > 0) {
|
|
2191
|
+
let e = !!(g.current?.shiftKey && g.current?.key === "Tab"), t = i[0], n = i[i.length - 1];
|
|
2192
|
+
typeof t != "string" && typeof n != "string" && (e ? n.focus() : t.focus());
|
|
2114
2193
|
} else t.focus();
|
|
2115
2194
|
};
|
|
2116
2195
|
e.addEventListener("focusin", n), e.addEventListener("keydown", t, !0);
|
|
2117
2196
|
let i = setInterval(() => {
|
|
2118
|
-
|
|
2197
|
+
let t = B(e);
|
|
2198
|
+
t && t.tagName === "BODY" && n();
|
|
2119
2199
|
}, 50);
|
|
2120
2200
|
return () => {
|
|
2121
2201
|
clearInterval(i), e.removeEventListener("focusin", n), e.removeEventListener("keydown", t, !0);
|
|
@@ -2135,18 +2215,18 @@ function $e(e) {
|
|
|
2135
2215
|
}, v = (e) => {
|
|
2136
2216
|
d.current === null && (d.current = e.relatedTarget), p.current = !0;
|
|
2137
2217
|
};
|
|
2138
|
-
return /*#__PURE__*/ (0,
|
|
2139
|
-
/*#__PURE__*/ (0,
|
|
2218
|
+
return /*#__PURE__*/ (0, G.jsxs)(W.Fragment, { children: [
|
|
2219
|
+
/*#__PURE__*/ (0, G.jsx)("div", {
|
|
2140
2220
|
tabIndex: s ? 0 : -1,
|
|
2141
2221
|
onFocus: v,
|
|
2142
2222
|
ref: l,
|
|
2143
2223
|
"data-testid": "sentinelStart"
|
|
2144
2224
|
}),
|
|
2145
|
-
/*#__PURE__*/
|
|
2225
|
+
/*#__PURE__*/ W.cloneElement(t, {
|
|
2146
2226
|
ref: h,
|
|
2147
2227
|
onFocus: _
|
|
2148
2228
|
}),
|
|
2149
|
-
/*#__PURE__*/ (0,
|
|
2229
|
+
/*#__PURE__*/ (0, G.jsx)("div", {
|
|
2150
2230
|
tabIndex: s ? 0 : -1,
|
|
2151
2231
|
onFocus: v,
|
|
2152
2232
|
ref: u,
|
|
@@ -2154,188 +2234,204 @@ function $e(e) {
|
|
|
2154
2234
|
})
|
|
2155
2235
|
] });
|
|
2156
2236
|
}
|
|
2157
|
-
|
|
2158
|
-
function et(e) {
|
|
2237
|
+
function ft(e) {
|
|
2159
2238
|
return typeof e == "function" ? e() : e;
|
|
2160
2239
|
}
|
|
2161
|
-
function
|
|
2240
|
+
function pt(e) {
|
|
2162
2241
|
return e ? e.props.hasOwnProperty("in") : !1;
|
|
2163
2242
|
}
|
|
2164
|
-
var
|
|
2165
|
-
function
|
|
2166
|
-
let { container: t,
|
|
2167
|
-
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (
|
|
2168
|
-
let
|
|
2169
|
-
|
|
2170
|
-
},
|
|
2171
|
-
let e =
|
|
2172
|
-
|
|
2173
|
-
}),
|
|
2174
|
-
|
|
2175
|
-
}),
|
|
2176
|
-
|
|
2177
|
-
}, [
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
}, [
|
|
2181
|
-
|
|
2243
|
+
var mt = () => {}, J = new nt();
|
|
2244
|
+
function ht(e) {
|
|
2245
|
+
let { container: t, disableScrollLock: n = !1, closeAfterTransition: r = !1, onTransitionEnter: i, onTransitionExited: a, children: o, onClose: s, open: c, rootRef: l } = e, u = W.useRef({}), d = W.useRef(null), f = W.useRef(null), p = W.useRef(null), m = I(p, l), [h, g] = W.useState(!c), _ = pt(o), v = !0;
|
|
2246
|
+
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (v = !1);
|
|
2247
|
+
let y = () => L(d.current), b = () => (u.current.modalRef = p.current, u.current.mount = d.current, u.current), x = () => {
|
|
2248
|
+
J.mount(b(), { disableScrollLock: n }), p.current && (p.current.scrollTop = 0);
|
|
2249
|
+
}, S = z(() => {
|
|
2250
|
+
let e = ft(t) || y().body;
|
|
2251
|
+
J.add(b(), e), p.current && x();
|
|
2252
|
+
}), C = () => J.isTopModal(b()), w = z((e) => {
|
|
2253
|
+
d.current = e, e && (f.current = e, c && C() ? x() : p.current && q(p.current, v));
|
|
2254
|
+
}), T = W.useCallback(() => {
|
|
2255
|
+
J.remove(b(), v);
|
|
2256
|
+
}, [v]);
|
|
2257
|
+
W.useEffect(() => () => {
|
|
2258
|
+
T();
|
|
2259
|
+
}, [T]), W.useEffect(() => {
|
|
2260
|
+
c ? S() : (!_ || !r) && T();
|
|
2182
2261
|
}, [
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2262
|
+
c,
|
|
2263
|
+
T,
|
|
2264
|
+
_,
|
|
2265
|
+
r,
|
|
2266
|
+
S
|
|
2188
2267
|
]);
|
|
2189
|
-
let
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
var n;
|
|
2194
|
-
(n = e.onClick) == null || n.call(e, t), t.target === t.currentTarget && l && l(t, "backdropClick");
|
|
2268
|
+
let E = (e) => (t) => {
|
|
2269
|
+
e.onKeyDown?.(t), !(t.key !== "Escape" || t.which === 229 || !C()) && (t.stopPropagation(), s && s(t, "escapeKeyDown"));
|
|
2270
|
+
}, D = (e) => (t) => {
|
|
2271
|
+
e.onClick?.(t), t.target === t.currentTarget && s && s(t, "backdropClick");
|
|
2195
2272
|
};
|
|
2196
2273
|
return {
|
|
2197
2274
|
getRootProps: (t = {}) => {
|
|
2198
|
-
let n =
|
|
2275
|
+
let n = ne(e);
|
|
2199
2276
|
delete n.onTransitionEnter, delete n.onTransitionExited;
|
|
2200
|
-
let r =
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2277
|
+
let r = {
|
|
2278
|
+
...n,
|
|
2279
|
+
...t
|
|
2280
|
+
};
|
|
2281
|
+
return {
|
|
2282
|
+
role: "presentation",
|
|
2283
|
+
...r,
|
|
2284
|
+
onKeyDown: E(r),
|
|
2285
|
+
ref: m
|
|
2286
|
+
};
|
|
2205
2287
|
},
|
|
2206
2288
|
getBackdropProps: (e = {}) => {
|
|
2207
2289
|
let t = e;
|
|
2208
|
-
return
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2290
|
+
return {
|
|
2291
|
+
"aria-hidden": !0,
|
|
2292
|
+
...t,
|
|
2293
|
+
onClick: D(t),
|
|
2294
|
+
open: c
|
|
2295
|
+
};
|
|
2212
2296
|
},
|
|
2213
2297
|
getTransitionProps: () => ({
|
|
2214
|
-
onEnter:
|
|
2215
|
-
|
|
2216
|
-
},
|
|
2217
|
-
onExited:
|
|
2218
|
-
|
|
2219
|
-
},
|
|
2298
|
+
onEnter: Ae(() => {
|
|
2299
|
+
g(!1), i && i();
|
|
2300
|
+
}, o?.props.onEnter ?? mt),
|
|
2301
|
+
onExited: Ae(() => {
|
|
2302
|
+
g(!0), a && a(), r && T();
|
|
2303
|
+
}, o?.props.onExited ?? mt)
|
|
2220
2304
|
}),
|
|
2221
|
-
rootRef:
|
|
2222
|
-
portalRef:
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2305
|
+
rootRef: m,
|
|
2306
|
+
portalRef: w,
|
|
2307
|
+
portalContainer: !c && _ && !h ? f.current ?? t : t,
|
|
2308
|
+
isTopModal: C,
|
|
2309
|
+
exited: h,
|
|
2310
|
+
hasTransition: _
|
|
2226
2311
|
};
|
|
2227
2312
|
}
|
|
2228
|
-
function
|
|
2229
|
-
return
|
|
2313
|
+
function gt(e) {
|
|
2314
|
+
return F("MuiModal", e);
|
|
2230
2315
|
}
|
|
2231
|
-
|
|
2316
|
+
T("MuiModal", [
|
|
2232
2317
|
"root",
|
|
2233
2318
|
"hidden",
|
|
2234
2319
|
"backdrop"
|
|
2235
|
-
])
|
|
2236
|
-
var
|
|
2320
|
+
]);
|
|
2321
|
+
var _t = (e) => {
|
|
2237
2322
|
let { open: t, exited: n, classes: r } = e;
|
|
2238
|
-
return
|
|
2323
|
+
return A({
|
|
2239
2324
|
root: ["root", !t && n && "hidden"],
|
|
2240
2325
|
backdrop: ["backdrop"]
|
|
2241
|
-
},
|
|
2242
|
-
},
|
|
2326
|
+
}, gt, r);
|
|
2327
|
+
}, vt = D("div", {
|
|
2243
2328
|
name: "MuiModal",
|
|
2244
2329
|
slot: "Root",
|
|
2245
2330
|
overridesResolver: (e, t) => {
|
|
2246
2331
|
let { ownerState: n } = e;
|
|
2247
2332
|
return [t.root, !n.open && n.exited && t.hidden];
|
|
2248
2333
|
}
|
|
2249
|
-
})(({ theme: e
|
|
2334
|
+
})(P(({ theme: e }) => ({
|
|
2250
2335
|
position: "fixed",
|
|
2251
2336
|
zIndex: (e.vars || e).zIndex.modal,
|
|
2252
2337
|
right: 0,
|
|
2253
2338
|
bottom: 0,
|
|
2254
2339
|
top: 0,
|
|
2255
|
-
left: 0
|
|
2256
|
-
|
|
2340
|
+
left: 0,
|
|
2341
|
+
variants: [{
|
|
2342
|
+
props: ({ ownerState: e }) => !e.open && e.exited,
|
|
2343
|
+
style: { visibility: "hidden" }
|
|
2344
|
+
}]
|
|
2345
|
+
}))), yt = D(We, {
|
|
2257
2346
|
name: "MuiModal",
|
|
2258
|
-
slot: "Backdrop"
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
let n = M({
|
|
2347
|
+
slot: "Backdrop"
|
|
2348
|
+
})({ zIndex: -1 }), bt = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
2349
|
+
let n = k({
|
|
2262
2350
|
name: "MuiModal",
|
|
2263
2351
|
props: e
|
|
2264
|
-
}), {
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
disablePortal:
|
|
2270
|
-
disableRestoreFocus:
|
|
2271
|
-
disableScrollLock:
|
|
2272
|
-
hideBackdrop:
|
|
2273
|
-
keepMounted:
|
|
2274
|
-
}
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2352
|
+
}), { classes: r, className: i, closeAfterTransition: a = !1, children: o, container: s, component: c, disableAutoFocus: l = !1, disableEnforceFocus: u = !1, disablePortal: d = !1, disableRestoreFocus: f = !1, disableScrollLock: p = !1, hideBackdrop: m = !1, keepMounted: h = !1, onClose: g, onTransitionEnter: _, onTransitionExited: y, open: b, slotProps: x = {}, slots: S = {}, theme: C, ...w } = n, T = {
|
|
2353
|
+
...n,
|
|
2354
|
+
closeAfterTransition: a,
|
|
2355
|
+
disableAutoFocus: l,
|
|
2356
|
+
disableEnforceFocus: u,
|
|
2357
|
+
disablePortal: d,
|
|
2358
|
+
disableRestoreFocus: f,
|
|
2359
|
+
disableScrollLock: p,
|
|
2360
|
+
hideBackdrop: m,
|
|
2361
|
+
keepMounted: h
|
|
2362
|
+
}, { getRootProps: E, getBackdropProps: D, getTransitionProps: ee, portalRef: O, portalContainer: A, isTopModal: j, exited: M, hasTransition: N } = ht({
|
|
2363
|
+
...T,
|
|
2364
|
+
rootRef: t
|
|
2365
|
+
}), P = {
|
|
2366
|
+
...T,
|
|
2367
|
+
exited: M
|
|
2368
|
+
}, F = _t(P), I = {};
|
|
2369
|
+
if (o.props.tabIndex === void 0 && (I.tabIndex = "-1"), N) {
|
|
2370
|
+
let { onEnter: e, onExited: t } = ee();
|
|
2371
|
+
I.onEnter = e, I.onExited = t;
|
|
2278
2372
|
}
|
|
2279
|
-
let
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2373
|
+
let te = {
|
|
2374
|
+
slots: S,
|
|
2375
|
+
slotProps: x
|
|
2376
|
+
}, [ne, L] = R("root", {
|
|
2377
|
+
ref: t,
|
|
2378
|
+
elementType: vt,
|
|
2379
|
+
externalForwardedProps: {
|
|
2380
|
+
...te,
|
|
2381
|
+
...w,
|
|
2382
|
+
component: c
|
|
2383
|
+
},
|
|
2384
|
+
getSlotProps: E,
|
|
2385
|
+
ownerState: P,
|
|
2386
|
+
className: v(i, F?.root, !P.open && P.exited && F?.hidden)
|
|
2387
|
+
}), [re, z] = R("backdrop", {
|
|
2388
|
+
elementType: yt,
|
|
2389
|
+
externalForwardedProps: te,
|
|
2390
|
+
shouldForwardComponentProp: !0,
|
|
2391
|
+
getSlotProps: (e) => D({
|
|
2392
|
+
...e,
|
|
2393
|
+
onClick: (t) => {
|
|
2394
|
+
e?.onClick && e.onClick(t);
|
|
2395
|
+
}
|
|
2396
|
+
}),
|
|
2397
|
+
className: F?.backdrop,
|
|
2398
|
+
ownerState: P
|
|
2299
2399
|
});
|
|
2300
|
-
return !
|
|
2301
|
-
ref:
|
|
2302
|
-
container:
|
|
2303
|
-
disablePortal:
|
|
2304
|
-
children: /*#__PURE__*/ (0,
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2400
|
+
return !h && !b && (!N || M) ? null : /*#__PURE__*/ (0, G.jsx)(de, {
|
|
2401
|
+
ref: O,
|
|
2402
|
+
container: A,
|
|
2403
|
+
disablePortal: d,
|
|
2404
|
+
children: /*#__PURE__*/ (0, G.jsxs)(ne, {
|
|
2405
|
+
...L,
|
|
2406
|
+
children: [m ? null : /*#__PURE__*/ (0, G.jsx)(re, { ...z }), /*#__PURE__*/ (0, G.jsx)(dt, {
|
|
2407
|
+
disableEnforceFocus: u,
|
|
2408
|
+
disableAutoFocus: l,
|
|
2409
|
+
disableRestoreFocus: f,
|
|
2410
|
+
isEnabled: j,
|
|
2411
|
+
open: b,
|
|
2412
|
+
children: /*#__PURE__*/ W.cloneElement(o, I)
|
|
2413
|
+
})]
|
|
2414
|
+
})
|
|
2312
2415
|
});
|
|
2313
|
-
}),
|
|
2314
|
-
function
|
|
2315
|
-
return
|
|
2416
|
+
}), xt = /*#__PURE__*/ W.createContext({});
|
|
2417
|
+
function St(e) {
|
|
2418
|
+
return F("MuiList", e);
|
|
2316
2419
|
}
|
|
2317
|
-
|
|
2420
|
+
T("MuiList", [
|
|
2318
2421
|
"root",
|
|
2319
2422
|
"padding",
|
|
2320
2423
|
"dense",
|
|
2321
2424
|
"subheader"
|
|
2322
|
-
])
|
|
2323
|
-
var
|
|
2324
|
-
"children",
|
|
2325
|
-
"className",
|
|
2326
|
-
"component",
|
|
2327
|
-
"dense",
|
|
2328
|
-
"disablePadding",
|
|
2329
|
-
"subheader"
|
|
2330
|
-
], pt = (e) => {
|
|
2425
|
+
]);
|
|
2426
|
+
var Ct = (e) => {
|
|
2331
2427
|
let { classes: t, disablePadding: n, dense: r, subheader: i } = e;
|
|
2332
|
-
return
|
|
2428
|
+
return A({ root: [
|
|
2333
2429
|
"root",
|
|
2334
2430
|
!n && "padding",
|
|
2335
2431
|
r && "dense",
|
|
2336
2432
|
i && "subheader"
|
|
2337
|
-
] },
|
|
2338
|
-
},
|
|
2433
|
+
] }, St, t);
|
|
2434
|
+
}, wt = D("ul", {
|
|
2339
2435
|
name: "MuiList",
|
|
2340
2436
|
slot: "Root",
|
|
2341
2437
|
overridesResolver: (e, t) => {
|
|
@@ -2347,175 +2443,432 @@ var ft = [
|
|
|
2347
2443
|
n.subheader && t.subheader
|
|
2348
2444
|
];
|
|
2349
2445
|
}
|
|
2350
|
-
})(
|
|
2446
|
+
})({
|
|
2351
2447
|
listStyle: "none",
|
|
2352
2448
|
margin: 0,
|
|
2353
2449
|
padding: 0,
|
|
2354
|
-
position: "relative"
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2450
|
+
position: "relative",
|
|
2451
|
+
variants: [{
|
|
2452
|
+
props: ({ ownerState: e }) => !e.disablePadding,
|
|
2453
|
+
style: {
|
|
2454
|
+
paddingTop: 8,
|
|
2455
|
+
paddingBottom: 8
|
|
2456
|
+
}
|
|
2457
|
+
}, {
|
|
2458
|
+
props: ({ ownerState: e }) => e.subheader,
|
|
2459
|
+
style: {
|
|
2460
|
+
paddingTop: 0,
|
|
2461
|
+
isolation: "isolate"
|
|
2462
|
+
}
|
|
2463
|
+
}]
|
|
2464
|
+
}), Tt = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
2465
|
+
let n = k({
|
|
2360
2466
|
props: e,
|
|
2361
2467
|
name: "MuiList"
|
|
2362
|
-
}), { children: r, className: i, component: a = "ul", dense:
|
|
2468
|
+
}), { children: r, className: i, component: a = "ul", dense: o = !1, disablePadding: s = !1, subheader: c, ...l } = n, u = W.useMemo(() => ({ dense: o }), [o]), d = {
|
|
2469
|
+
...n,
|
|
2363
2470
|
component: a,
|
|
2364
|
-
dense:
|
|
2365
|
-
disablePadding:
|
|
2366
|
-
}
|
|
2367
|
-
return /*#__PURE__*/ (0,
|
|
2368
|
-
value:
|
|
2369
|
-
children: /*#__PURE__*/ (0,
|
|
2471
|
+
dense: o,
|
|
2472
|
+
disablePadding: s
|
|
2473
|
+
}, f = Ct(d);
|
|
2474
|
+
return /*#__PURE__*/ (0, G.jsx)(xt.Provider, {
|
|
2475
|
+
value: u,
|
|
2476
|
+
children: /*#__PURE__*/ (0, G.jsxs)(wt, {
|
|
2370
2477
|
as: a,
|
|
2371
|
-
className:
|
|
2478
|
+
className: v(f.root, i),
|
|
2372
2479
|
ref: t,
|
|
2373
|
-
ownerState:
|
|
2374
|
-
|
|
2480
|
+
ownerState: d,
|
|
2481
|
+
...l,
|
|
2482
|
+
children: [c, r]
|
|
2483
|
+
})
|
|
2375
2484
|
});
|
|
2376
|
-
}),
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
"
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2485
|
+
}), Et = /*#__PURE__*/ W.createContext(void 0);
|
|
2486
|
+
function Dt() {
|
|
2487
|
+
let e = W.useContext(Et);
|
|
2488
|
+
if (e === void 0) throw Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");
|
|
2489
|
+
return e;
|
|
2490
|
+
}
|
|
2491
|
+
var Ot = Object.is;
|
|
2492
|
+
function kt(e, t) {
|
|
2493
|
+
if (e === t) return !0;
|
|
2494
|
+
if (!(e instanceof Object) || !(t instanceof Object)) return !1;
|
|
2495
|
+
let n = 0, r = 0;
|
|
2496
|
+
for (let r in e) if (n += 1, !Ot(e[r], t[r]) || !(r in t)) return !1;
|
|
2497
|
+
for (let e in t) r += 1;
|
|
2498
|
+
return n === r;
|
|
2499
|
+
}
|
|
2500
|
+
var At = [
|
|
2501
|
+
"ArrowRight",
|
|
2502
|
+
"ArrowLeft",
|
|
2503
|
+
"ArrowUp",
|
|
2504
|
+
"ArrowDown",
|
|
2505
|
+
"Home",
|
|
2506
|
+
"End"
|
|
2388
2507
|
];
|
|
2389
|
-
function
|
|
2390
|
-
|
|
2508
|
+
function jt(e) {
|
|
2509
|
+
let { activeItemId: t, getDefaultActiveItemId: n, orientation: r, isRtl: i = !1, isItemFocusable: a = X, wrap: o = !0 } = e, [s, c] = W.useState(t), [l, u] = W.useState(t), d = s;
|
|
2510
|
+
t !== l && (u(t), t !== void 0 && t !== s && (d = t, c(t)));
|
|
2511
|
+
let f = W.useRef(null), p = W.useRef(/* @__PURE__ */ new Map()), [m, h] = W.useState(0), g = W.useMemo(() => Ht(p.current), [m]), _ = Nt(d, g, a, n), v = W.useRef(_);
|
|
2512
|
+
v.current = _;
|
|
2513
|
+
let y = W.useCallback(() => {
|
|
2514
|
+
let e = Ht(p.current);
|
|
2515
|
+
return zt(e, Nt(v.current, e, a, n));
|
|
2516
|
+
}, [n, a]), b = W.useCallback(() => p.current, []), x = z((e) => {
|
|
2517
|
+
kt(p.current.get(e.id) ?? null, e) || (p.current.set(e.id, e), h((e) => e + 1));
|
|
2518
|
+
}), S = z((e) => {
|
|
2519
|
+
p.current.delete(e) && h((e) => e + 1);
|
|
2520
|
+
}), C = z((e) => {
|
|
2521
|
+
c(e);
|
|
2522
|
+
}), w = W.useCallback((e) => v.current === e, []), T = W.useCallback((e, t, n, r) => {
|
|
2523
|
+
let i = Lt(Y(p.current), e, t, n, r ?? a);
|
|
2524
|
+
return i ? (i.element?.focus(), c(i.id), i) : null;
|
|
2525
|
+
}, [a]), E = W.useCallback((e, t, n) => ({
|
|
2526
|
+
onFocus: (e) => {
|
|
2527
|
+
t?.(e);
|
|
2528
|
+
let n = Y(p.current), r = Vt(n, e.target);
|
|
2529
|
+
r !== -1 && c(n[r].id);
|
|
2530
|
+
},
|
|
2531
|
+
onKeyDown: (e) => {
|
|
2532
|
+
if (n?.(e), e.defaultPrevented || e.altKey || e.shiftKey || e.ctrlKey || e.metaKey || !At.includes(e.key)) return;
|
|
2533
|
+
let t = r === "horizontal" ? "ArrowLeft" : "ArrowUp", a = r === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
2534
|
+
r === "horizontal" && i && (t = "ArrowRight", a = "ArrowLeft");
|
|
2535
|
+
let s = Y(p.current), c = he(L(f.current)), l = c === f.current, u = It(s, c, v.current), d = "next";
|
|
2536
|
+
switch (e.key) {
|
|
2537
|
+
case t:
|
|
2538
|
+
d = "previous", e.preventDefault(), l && (u = s.length);
|
|
2539
|
+
break;
|
|
2540
|
+
case a:
|
|
2541
|
+
e.preventDefault(), l && (u = -1);
|
|
2542
|
+
break;
|
|
2543
|
+
case "Home":
|
|
2544
|
+
e.preventDefault(), u = -1;
|
|
2545
|
+
break;
|
|
2546
|
+
case "End":
|
|
2547
|
+
e.preventDefault(), d = "previous", u = s.length;
|
|
2548
|
+
break;
|
|
2549
|
+
default: return;
|
|
2550
|
+
}
|
|
2551
|
+
T(u, d, o);
|
|
2552
|
+
},
|
|
2553
|
+
ref: Kt(e, (e) => {
|
|
2554
|
+
f.current = e;
|
|
2555
|
+
})
|
|
2556
|
+
}), [
|
|
2557
|
+
T,
|
|
2558
|
+
i,
|
|
2559
|
+
r,
|
|
2560
|
+
o
|
|
2561
|
+
]), D = W.useCallback((e) => {
|
|
2562
|
+
let t = Y(p.current), n = he(L(f.current)), r = n === f.current ? -1 : It(t, n, v.current);
|
|
2563
|
+
return T(r, "next", !0, e)?.id ?? null;
|
|
2564
|
+
}, [T]);
|
|
2565
|
+
return W.useMemo(() => ({
|
|
2566
|
+
activeItemId: _,
|
|
2567
|
+
focusNext: D,
|
|
2568
|
+
getActiveItem: y,
|
|
2569
|
+
getContainerProps: E,
|
|
2570
|
+
getItemMap: b,
|
|
2571
|
+
isItemActive: w,
|
|
2572
|
+
registerItem: x,
|
|
2573
|
+
setActiveItemId: C,
|
|
2574
|
+
unregisterItem: S
|
|
2575
|
+
}), [
|
|
2576
|
+
_,
|
|
2577
|
+
D,
|
|
2578
|
+
y,
|
|
2579
|
+
E,
|
|
2580
|
+
b,
|
|
2581
|
+
w,
|
|
2582
|
+
x,
|
|
2583
|
+
C,
|
|
2584
|
+
S
|
|
2585
|
+
]);
|
|
2586
|
+
}
|
|
2587
|
+
function Mt(e) {
|
|
2588
|
+
let { activeItemId: t, registerItem: n, unregisterItem: r } = Dt(), i = W.useRef(null), a = W.useMemo(() => ({
|
|
2589
|
+
disabled: e.disabled ?? !1,
|
|
2590
|
+
element: null,
|
|
2591
|
+
focusableWhenDisabled: e.focusableWhenDisabled ?? !1,
|
|
2592
|
+
id: e.id,
|
|
2593
|
+
selected: e.selected ?? !1,
|
|
2594
|
+
textValue: e.textValue
|
|
2595
|
+
}), [
|
|
2596
|
+
e.disabled,
|
|
2597
|
+
e.focusableWhenDisabled,
|
|
2598
|
+
e.id,
|
|
2599
|
+
e.selected,
|
|
2600
|
+
e.textValue
|
|
2601
|
+
]), o = W.useRef(a);
|
|
2602
|
+
o.current = a;
|
|
2603
|
+
let s = W.useCallback((t) => {
|
|
2604
|
+
if (i.current = t, t == null) {
|
|
2605
|
+
queueMicrotask(() => {
|
|
2606
|
+
i.current ?? r(e.id);
|
|
2607
|
+
});
|
|
2608
|
+
return;
|
|
2609
|
+
}
|
|
2610
|
+
n({
|
|
2611
|
+
...o.current,
|
|
2612
|
+
element: t
|
|
2613
|
+
});
|
|
2614
|
+
}, [
|
|
2615
|
+
e.id,
|
|
2616
|
+
n,
|
|
2617
|
+
r
|
|
2618
|
+
]), c = I(e.ref, s);
|
|
2619
|
+
return x(() => {
|
|
2620
|
+
i.current && n({
|
|
2621
|
+
...a,
|
|
2622
|
+
element: i.current
|
|
2623
|
+
});
|
|
2624
|
+
}, [a, n]), x(() => {
|
|
2625
|
+
let t = e.id;
|
|
2626
|
+
return () => {
|
|
2627
|
+
r(t);
|
|
2628
|
+
};
|
|
2629
|
+
}, [e.id, r]), {
|
|
2630
|
+
ref: c,
|
|
2631
|
+
tabIndex: t === e.id ? 0 : -1
|
|
2632
|
+
};
|
|
2391
2633
|
}
|
|
2392
|
-
function
|
|
2393
|
-
return e
|
|
2634
|
+
function Nt(e, t, n, r) {
|
|
2635
|
+
return e == null ? Ft(t, n, r) : Pt(e, t, n);
|
|
2394
2636
|
}
|
|
2395
|
-
function
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
return n === void 0 && (n = e.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.indexOf(t.keys.join("")) === 0;
|
|
2637
|
+
function Pt(e, t, n) {
|
|
2638
|
+
let r = Bt(t, e);
|
|
2639
|
+
return r === -1 ? Rt(t, n) : n(t[r]) ? t[r].id : Lt(t, r, "next", !1, n)?.id ?? null;
|
|
2399
2640
|
}
|
|
2400
|
-
function
|
|
2401
|
-
let
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2641
|
+
function Ft(e, t, n) {
|
|
2642
|
+
let r = n?.(e);
|
|
2643
|
+
if (r != null) {
|
|
2644
|
+
let n = zt(e, r);
|
|
2645
|
+
if (n && t(n)) return n.id;
|
|
2646
|
+
}
|
|
2647
|
+
return Rt(e, t);
|
|
2648
|
+
}
|
|
2649
|
+
function It(e, t, n) {
|
|
2650
|
+
if (t) {
|
|
2651
|
+
let n = Vt(e, t);
|
|
2652
|
+
if (n !== -1) return n;
|
|
2653
|
+
}
|
|
2654
|
+
return Bt(e, n);
|
|
2655
|
+
}
|
|
2656
|
+
function Lt(e, t, n, r, i) {
|
|
2657
|
+
let a = e.length - 1;
|
|
2658
|
+
if (a === -1) return null;
|
|
2659
|
+
let o = !1, s = Ut(t, a, n, r), c = s;
|
|
2660
|
+
for (; s !== -1;) {
|
|
2661
|
+
if (s === c) {
|
|
2662
|
+
if (o) return null;
|
|
2405
2663
|
o = !0;
|
|
2406
2664
|
}
|
|
2407
|
-
let t =
|
|
2408
|
-
if (!
|
|
2409
|
-
else return
|
|
2665
|
+
let t = e[s];
|
|
2666
|
+
if (!t || !i(t)) s = Ut(s, a, n, r);
|
|
2667
|
+
else return t;
|
|
2668
|
+
}
|
|
2669
|
+
return null;
|
|
2670
|
+
}
|
|
2671
|
+
function Rt(e, t) {
|
|
2672
|
+
return e.find((e) => t(e))?.id ?? null;
|
|
2673
|
+
}
|
|
2674
|
+
function zt(e, t) {
|
|
2675
|
+
return t == null ? null : e.find((e) => e.id === t) ?? null;
|
|
2676
|
+
}
|
|
2677
|
+
function Bt(e, t) {
|
|
2678
|
+
return t == null ? -1 : e.findIndex((e) => e.id === t);
|
|
2679
|
+
}
|
|
2680
|
+
function Vt(e, t) {
|
|
2681
|
+
return t ? e.findIndex((e) => e.element === t || e.element?.contains(t)) : -1;
|
|
2682
|
+
}
|
|
2683
|
+
function Ht(e) {
|
|
2684
|
+
let t = Array.from(e.values());
|
|
2685
|
+
if (t.every((e) => e.element == null)) return t;
|
|
2686
|
+
let n = t.filter(Wt).sort((e, t) => Gt(e.element, t.element)), r = t.filter((e) => !Wt(e));
|
|
2687
|
+
return [...n, ...r];
|
|
2688
|
+
}
|
|
2689
|
+
function Y(e) {
|
|
2690
|
+
return Ht(e).filter(Wt);
|
|
2691
|
+
}
|
|
2692
|
+
function Ut(e, t, n, r = !0) {
|
|
2693
|
+
return n === "next" ? e === t ? r ? 0 : -1 : e + 1 : e === 0 ? r ? t : -1 : e - 1;
|
|
2694
|
+
}
|
|
2695
|
+
function X(e) {
|
|
2696
|
+
return e.element ? e.focusableWhenDisabled ? !0 : !e.disabled && !e.element.hasAttribute("disabled") && e.element.getAttribute("aria-disabled") !== "true" && e.element.hasAttribute("tabindex") : !1;
|
|
2697
|
+
}
|
|
2698
|
+
function Wt(e) {
|
|
2699
|
+
return e.element != null && e.element.isConnected;
|
|
2700
|
+
}
|
|
2701
|
+
function Gt(e, t) {
|
|
2702
|
+
if (e === t) return 0;
|
|
2703
|
+
let n = e.compareDocumentPosition(t);
|
|
2704
|
+
return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
|
|
2705
|
+
}
|
|
2706
|
+
function Kt(...e) {
|
|
2707
|
+
return (t) => {
|
|
2708
|
+
e.forEach((e) => {
|
|
2709
|
+
pe(e ?? null, t);
|
|
2710
|
+
});
|
|
2711
|
+
};
|
|
2712
|
+
}
|
|
2713
|
+
var qt = Je;
|
|
2714
|
+
function Jt(e, t) {
|
|
2715
|
+
if (t == null) {
|
|
2716
|
+
e.focus();
|
|
2717
|
+
return;
|
|
2410
2718
|
}
|
|
2411
|
-
|
|
2719
|
+
try {
|
|
2720
|
+
e.focus({ focusVisible: t === "keyboard" });
|
|
2721
|
+
} catch {
|
|
2722
|
+
e.focus();
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
var Yt = /*#__PURE__*/ W.createContext(null);
|
|
2726
|
+
function Xt() {
|
|
2727
|
+
return W.useContext(Yt);
|
|
2728
|
+
}
|
|
2729
|
+
Yt.Provider;
|
|
2730
|
+
var Zt = /*#__PURE__*/ W.createContext(void 0);
|
|
2731
|
+
function Qt(e) {
|
|
2732
|
+
let t = e?.element ?? e;
|
|
2733
|
+
if (!t) return "";
|
|
2734
|
+
if (e?.textValue !== void 0) return e.textValue;
|
|
2735
|
+
let n = t.innerText;
|
|
2736
|
+
return n === void 0 && (n = t.textContent), n ?? "";
|
|
2412
2737
|
}
|
|
2413
|
-
|
|
2414
|
-
|
|
2738
|
+
function $t(e, t) {
|
|
2739
|
+
if (t === void 0) return !0;
|
|
2740
|
+
let n = Qt(e);
|
|
2741
|
+
return n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
|
|
2742
|
+
}
|
|
2743
|
+
function en(e, t) {
|
|
2744
|
+
return $t(e, t) ? X(e) : !1;
|
|
2745
|
+
}
|
|
2746
|
+
function tn(e, t) {
|
|
2747
|
+
Jt(e, t);
|
|
2748
|
+
}
|
|
2749
|
+
var nn = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
2750
|
+
let { actions: n, autoFocus: r = !1, autoFocusItem: i = !1, children: a, className: o, disabledItemsFocusable: s = !1, disableListWrap: c = !1, onKeyDown: l, variant: u = "selectedMenu", ...d } = k({
|
|
2751
|
+
props: e,
|
|
2752
|
+
name: "MuiMenuList"
|
|
2753
|
+
}), f = W.useRef(null), p = W.useRef(!1), [m, h] = W.useState(!1), g = Xt(), _ = W.useRef({
|
|
2415
2754
|
keys: [],
|
|
2416
2755
|
repeating: !0,
|
|
2417
2756
|
previousKeyMatched: !0,
|
|
2418
2757
|
lastTime: null
|
|
2419
|
-
})
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
else if (n === "ArrowUp") e.preventDefault(), Z(t, r, l, c, yt);
|
|
2434
|
-
else if (n === "Home") e.preventDefault(), Z(t, null, l, c, vt);
|
|
2435
|
-
else if (n === "End") e.preventDefault(), Z(t, null, l, c, yt);
|
|
2436
|
-
else if (n.length === 1) {
|
|
2437
|
-
let i = m.current, a = n.toLowerCase(), o = performance.now();
|
|
2438
|
-
i.keys.length > 0 && (o - i.lastTime > 500 ? (i.keys = [], i.repeating = !0, i.previousKeyMatched = !0) : i.repeating && a !== i.keys[0] && (i.repeating = !1)), i.lastTime = o, i.keys.push(a);
|
|
2439
|
-
let s = r && !i.repeating && bt(r, i);
|
|
2440
|
-
i.previousKeyMatched && (s || Z(t, r, !1, c, vt, i)) ? e.preventDefault() : i.previousKeyMatched = !1;
|
|
2758
|
+
}), v = jt({
|
|
2759
|
+
activeItemId: void 0,
|
|
2760
|
+
getDefaultActiveItemId: W.useCallback((e) => u === "selectedMenu" ? e.find((e) => e.selected && X(e))?.id ?? e.find((e) => X(e))?.id ?? null : e.find((e) => X(e))?.id ?? null, [u]),
|
|
2761
|
+
orientation: "vertical",
|
|
2762
|
+
wrap: !c
|
|
2763
|
+
}), { activeItemId: y, focusNext: b, getActiveItem: x, getContainerProps: S, getItemMap: C } = v, w = se((e = !1) => {
|
|
2764
|
+
if (!f.current || !e && p.current) return null;
|
|
2765
|
+
if (i) {
|
|
2766
|
+
let e = x();
|
|
2767
|
+
if (e?.element) {
|
|
2768
|
+
let t = Array.from(C().values()).some((e) => e.selected), n = u === "menu" && t && !e.selected && g == null;
|
|
2769
|
+
return h(n), tn(e.element, g), p.current = !0, e.element;
|
|
2770
|
+
}
|
|
2771
|
+
return r ? (h(!1), f.current.focus(), f.current) : null;
|
|
2441
2772
|
}
|
|
2442
|
-
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
if (
|
|
2446
|
-
|
|
2773
|
+
return r ? (h(!1), f.current.focus(), p.current = !0, f.current) : (h(!1), null);
|
|
2774
|
+
});
|
|
2775
|
+
ke(() => {
|
|
2776
|
+
if (!r && !i) {
|
|
2777
|
+
p.current = !1, h(!1);
|
|
2447
2778
|
return;
|
|
2448
2779
|
}
|
|
2449
|
-
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2780
|
+
w();
|
|
2781
|
+
}, [
|
|
2782
|
+
y,
|
|
2783
|
+
i,
|
|
2784
|
+
r,
|
|
2785
|
+
w
|
|
2786
|
+
]), W.useImperativeHandle(n, () => ({
|
|
2787
|
+
adjustStyleForScrollbar: (e, { direction: t }) => {
|
|
2788
|
+
let n = !f.current.style.width;
|
|
2789
|
+
if (e.clientHeight < f.current.clientHeight && n) {
|
|
2790
|
+
let n = Me(e), r = qt(n);
|
|
2791
|
+
if (r > 0) {
|
|
2792
|
+
let e = `${r}px`, i = t === "rtl" ? "paddingLeft" : "paddingRight", a = parseFloat(n.getComputedStyle(f.current)[i]) || 0;
|
|
2793
|
+
f.current.style[i] = `${a + r}px`, f.current.style.width = `calc(100% + ${e})`;
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
return f.current;
|
|
2797
|
+
},
|
|
2798
|
+
focusInitialTarget: () => {
|
|
2799
|
+
if (!f.current) return null;
|
|
2800
|
+
let e = B(K(f.current));
|
|
2801
|
+
return e && V(f.current, e) ? e : w(!0);
|
|
2455
2802
|
}
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2803
|
+
}), [w]);
|
|
2804
|
+
let T = S(void 0, d.onFocus), E = me(f, T.ref, t), D = W.useMemo(() => ({
|
|
2805
|
+
itemsFocusableWhenDisabled: s,
|
|
2806
|
+
suppressInitialFocusVisible: m,
|
|
2807
|
+
variant: u
|
|
2808
|
+
}), [
|
|
2809
|
+
s,
|
|
2810
|
+
m,
|
|
2811
|
+
u
|
|
2812
|
+
]);
|
|
2813
|
+
return /*#__PURE__*/ (0, G.jsx)(Tt, {
|
|
2459
2814
|
role: "menu",
|
|
2460
|
-
ref:
|
|
2461
|
-
className:
|
|
2462
|
-
onKeyDown:
|
|
2463
|
-
|
|
2464
|
-
|
|
2815
|
+
ref: E,
|
|
2816
|
+
className: o,
|
|
2817
|
+
onKeyDown: se((e) => {
|
|
2818
|
+
if (m && h(!1), (e.ctrlKey || e.metaKey || e.altKey) && l) {
|
|
2819
|
+
l(e);
|
|
2820
|
+
return;
|
|
2821
|
+
}
|
|
2822
|
+
if (T.onKeyDown(e), e.key.length === 1) {
|
|
2823
|
+
let t = _.current, n = e.key.toLowerCase(), r = performance.now();
|
|
2824
|
+
t.keys.length > 0 && (r - t.lastTime > 500 ? (t.keys = [], t.repeating = !0, t.previousKeyMatched = !0) : t.repeating && n !== t.keys[0] && (t.repeating = !1)), t.lastTime = r, t.keys.push(n);
|
|
2825
|
+
let i = B(K(f.current)), a = i && !t.repeating && $t(i, t);
|
|
2826
|
+
t.previousKeyMatched && (a || b((e) => en(e, t)) != null) ? e.preventDefault() : t.previousKeyMatched = !1;
|
|
2827
|
+
}
|
|
2828
|
+
l && l(e);
|
|
2829
|
+
}),
|
|
2830
|
+
tabIndex: -1,
|
|
2831
|
+
...d,
|
|
2832
|
+
onFocus: T.onFocus,
|
|
2833
|
+
children: /*#__PURE__*/ (0, G.jsx)(Zt.Provider, {
|
|
2834
|
+
value: D,
|
|
2835
|
+
children: /*#__PURE__*/ (0, G.jsx)(Et.Provider, {
|
|
2836
|
+
value: v,
|
|
2837
|
+
children: a
|
|
2838
|
+
})
|
|
2839
|
+
})
|
|
2840
|
+
});
|
|
2465
2841
|
});
|
|
2466
|
-
function
|
|
2467
|
-
return
|
|
2842
|
+
function rn(e) {
|
|
2843
|
+
return F("MuiPopover", e);
|
|
2468
2844
|
}
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
"action",
|
|
2472
|
-
"anchorEl",
|
|
2473
|
-
"anchorOrigin",
|
|
2474
|
-
"anchorPosition",
|
|
2475
|
-
"anchorReference",
|
|
2476
|
-
"children",
|
|
2477
|
-
"className",
|
|
2478
|
-
"container",
|
|
2479
|
-
"elevation",
|
|
2480
|
-
"marginThreshold",
|
|
2481
|
-
"open",
|
|
2482
|
-
"PaperProps",
|
|
2483
|
-
"slots",
|
|
2484
|
-
"slotProps",
|
|
2485
|
-
"transformOrigin",
|
|
2486
|
-
"TransitionComponent",
|
|
2487
|
-
"transitionDuration",
|
|
2488
|
-
"TransitionProps",
|
|
2489
|
-
"disableScrollLock"
|
|
2490
|
-
], Tt = ["slotProps"];
|
|
2491
|
-
function Et(e, t) {
|
|
2845
|
+
T("MuiPopover", ["root", "paper"]);
|
|
2846
|
+
function an(e, t) {
|
|
2492
2847
|
let n = 0;
|
|
2493
2848
|
return typeof t == "number" ? n = t : t === "center" ? n = e.height / 2 : t === "bottom" && (n = e.height), n;
|
|
2494
2849
|
}
|
|
2495
|
-
function
|
|
2850
|
+
function on(e, t) {
|
|
2496
2851
|
let n = 0;
|
|
2497
2852
|
return typeof t == "number" ? n = t : t === "center" ? n = e.width / 2 : t === "right" && (n = e.width), n;
|
|
2498
2853
|
}
|
|
2499
|
-
function
|
|
2854
|
+
function sn(e) {
|
|
2500
2855
|
return [e.horizontal, e.vertical].map((e) => typeof e == "number" ? `${e}px` : e).join(" ");
|
|
2501
2856
|
}
|
|
2502
|
-
function
|
|
2857
|
+
function cn(e) {
|
|
2503
2858
|
return typeof e == "function" ? e() : e;
|
|
2504
2859
|
}
|
|
2505
|
-
var
|
|
2860
|
+
var ln = (e) => {
|
|
2506
2861
|
let { classes: t } = e;
|
|
2507
|
-
return
|
|
2862
|
+
return A({
|
|
2508
2863
|
root: ["root"],
|
|
2509
2864
|
paper: ["paper"]
|
|
2510
|
-
},
|
|
2511
|
-
},
|
|
2865
|
+
}, rn, t);
|
|
2866
|
+
}, un = D(bt, {
|
|
2512
2867
|
name: "MuiPopover",
|
|
2513
|
-
slot: "Root"
|
|
2514
|
-
|
|
2515
|
-
})({}), Mt = j(De, {
|
|
2868
|
+
slot: "Root"
|
|
2869
|
+
})({}), dn = D(Le, {
|
|
2516
2870
|
name: "MuiPopover",
|
|
2517
|
-
slot: "Paper"
|
|
2518
|
-
overridesResolver: (e, t) => t.paper
|
|
2871
|
+
slot: "Paper"
|
|
2519
2872
|
})({
|
|
2520
2873
|
position: "absolute",
|
|
2521
2874
|
overflowY: "auto",
|
|
@@ -2525,61 +2878,59 @@ var At = (e) => {
|
|
|
2525
2878
|
maxWidth: "calc(100% - 32px)",
|
|
2526
2879
|
maxHeight: "calc(100% - 32px)",
|
|
2527
2880
|
outline: 0
|
|
2528
|
-
}),
|
|
2529
|
-
let n =
|
|
2881
|
+
}), fn = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
2882
|
+
let n = k({
|
|
2530
2883
|
props: e,
|
|
2531
2884
|
name: "MuiPopover"
|
|
2532
2885
|
}), { action: r, anchorEl: i, anchorOrigin: a = {
|
|
2533
2886
|
vertical: "top",
|
|
2534
2887
|
horizontal: "left"
|
|
2535
|
-
}, anchorPosition:
|
|
2888
|
+
}, anchorPosition: o, anchorReference: s = "anchorEl", children: c, className: l, container: u, disableAutoFocus: d = !1, elevation: f = 8, marginThreshold: p = 16, open: m, slots: h = {}, slotProps: g = {}, transformOrigin: _ = {
|
|
2536
2889
|
vertical: "top",
|
|
2537
2890
|
horizontal: "left"
|
|
2538
|
-
},
|
|
2891
|
+
}, transitionDuration: y = "auto", disableScrollLock: b = !1, ...x } = n, S = W.useRef(), C = {
|
|
2892
|
+
...n,
|
|
2539
2893
|
anchorOrigin: a,
|
|
2540
|
-
anchorReference:
|
|
2894
|
+
anchorReference: s,
|
|
2541
2895
|
elevation: f,
|
|
2542
2896
|
marginThreshold: p,
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
}), j = At(A), N = J.useCallback(() => {
|
|
2549
|
-
if (c === "anchorPosition") return s;
|
|
2550
|
-
let e = kt(i), t = (e && e.nodeType === 1 ? e : be(D.current).body).getBoundingClientRect();
|
|
2897
|
+
transformOrigin: _,
|
|
2898
|
+
transitionDuration: y
|
|
2899
|
+
}, w = ln(C), T = W.useCallback(() => {
|
|
2900
|
+
if (s === "anchorPosition") return o;
|
|
2901
|
+
let e = cn(i), t = (e && e.nodeType === 1 ? e : K(S.current).body).getBoundingClientRect();
|
|
2551
2902
|
return {
|
|
2552
|
-
top: t.top +
|
|
2553
|
-
left: t.left +
|
|
2903
|
+
top: t.top + an(t, a.vertical),
|
|
2904
|
+
left: t.left + on(t, a.horizontal)
|
|
2554
2905
|
};
|
|
2555
2906
|
}, [
|
|
2556
2907
|
i,
|
|
2557
2908
|
a.horizontal,
|
|
2558
2909
|
a.vertical,
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
]),
|
|
2562
|
-
vertical:
|
|
2563
|
-
horizontal:
|
|
2564
|
-
}), [
|
|
2910
|
+
o,
|
|
2911
|
+
s
|
|
2912
|
+
]), E = W.useCallback((e) => ({
|
|
2913
|
+
vertical: an(e, _.vertical),
|
|
2914
|
+
horizontal: on(e, _.horizontal)
|
|
2915
|
+
}), [_.horizontal, _.vertical]), D = W.useCallback((e) => {
|
|
2565
2916
|
let t = {
|
|
2566
2917
|
width: e.offsetWidth,
|
|
2567
2918
|
height: e.offsetHeight
|
|
2568
|
-
}, n =
|
|
2569
|
-
if (
|
|
2919
|
+
}, n = E(t);
|
|
2920
|
+
if (s === "none") return {
|
|
2570
2921
|
top: null,
|
|
2571
2922
|
left: null,
|
|
2572
|
-
transformOrigin:
|
|
2923
|
+
transformOrigin: sn(n)
|
|
2573
2924
|
};
|
|
2574
|
-
let r =
|
|
2575
|
-
if (p
|
|
2925
|
+
let r = T(), a = r.top - n.vertical, o = r.left - n.horizontal, c = a + t.height, l = o + t.width, u = Me(cn(i)), d = u.innerHeight - p, f = u.innerWidth - p;
|
|
2926
|
+
if (p != null && a < p) {
|
|
2576
2927
|
let e = a - p;
|
|
2577
2928
|
a -= e, n.vertical += e;
|
|
2578
|
-
} else if (p
|
|
2579
|
-
let e =
|
|
2929
|
+
} else if (p != null && c > d) {
|
|
2930
|
+
let e = c - d;
|
|
2580
2931
|
a -= e, n.vertical += e;
|
|
2581
2932
|
}
|
|
2582
|
-
if (p
|
|
2933
|
+
if (p != null && o < p) {
|
|
2583
2934
|
let e = o - p;
|
|
2584
2935
|
o -= e, n.horizontal += e;
|
|
2585
2936
|
} else if (l > f) {
|
|
@@ -2589,207 +2940,238 @@ var At = (e) => {
|
|
|
2589
2940
|
return {
|
|
2590
2941
|
top: `${Math.round(a)}px`,
|
|
2591
2942
|
left: `${Math.round(o)}px`,
|
|
2592
|
-
transformOrigin:
|
|
2943
|
+
transformOrigin: sn(n)
|
|
2593
2944
|
};
|
|
2594
2945
|
}, [
|
|
2595
2946
|
i,
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2947
|
+
s,
|
|
2948
|
+
T,
|
|
2949
|
+
E,
|
|
2599
2950
|
p
|
|
2600
|
-
]), [
|
|
2601
|
-
let e =
|
|
2951
|
+
]), [ee, O] = W.useState(m), A = W.useCallback(() => {
|
|
2952
|
+
let e = S.current;
|
|
2602
2953
|
if (!e) return;
|
|
2603
|
-
let t =
|
|
2604
|
-
t.top
|
|
2605
|
-
}, [
|
|
2606
|
-
|
|
2954
|
+
let t = D(e);
|
|
2955
|
+
t.top != null && e.style.setProperty("top", t.top), t.left != null && (e.style.left = t.left), e.style.transformOrigin = t.transformOrigin, O(!0);
|
|
2956
|
+
}, [D]);
|
|
2957
|
+
W.useEffect(() => (b && window.addEventListener("scroll", A), () => window.removeEventListener("scroll", A)), [
|
|
2607
2958
|
i,
|
|
2608
|
-
|
|
2609
|
-
|
|
2959
|
+
b,
|
|
2960
|
+
A
|
|
2610
2961
|
]);
|
|
2611
|
-
let
|
|
2612
|
-
|
|
2613
|
-
},
|
|
2614
|
-
|
|
2962
|
+
let j = () => {
|
|
2963
|
+
A();
|
|
2964
|
+
}, M = () => {
|
|
2965
|
+
O(!1);
|
|
2615
2966
|
};
|
|
2616
|
-
|
|
2617
|
-
m &&
|
|
2618
|
-
}),
|
|
2619
|
-
|
|
2620
|
-
} } : null, [m,
|
|
2967
|
+
W.useEffect(() => {
|
|
2968
|
+
m && A();
|
|
2969
|
+
}), W.useImperativeHandle(r, () => m ? { updatePosition: () => {
|
|
2970
|
+
A();
|
|
2971
|
+
} } : null, [m, A]), W.useEffect(() => {
|
|
2621
2972
|
if (!m) return;
|
|
2622
|
-
let e =
|
|
2623
|
-
|
|
2624
|
-
}), t =
|
|
2973
|
+
let e = je(() => {
|
|
2974
|
+
A();
|
|
2975
|
+
}), t = Me(cn(i));
|
|
2625
2976
|
return t.addEventListener("resize", e), () => {
|
|
2626
2977
|
e.clear(), t.removeEventListener("resize", e);
|
|
2627
2978
|
};
|
|
2628
2979
|
}, [
|
|
2629
2980
|
i,
|
|
2630
2981
|
m,
|
|
2631
|
-
|
|
2982
|
+
A
|
|
2632
2983
|
]);
|
|
2633
|
-
let
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2984
|
+
let N = y, P = {
|
|
2985
|
+
slots: h,
|
|
2986
|
+
slotProps: g
|
|
2987
|
+
}, [F, I] = R("transition", {
|
|
2988
|
+
elementType: ie,
|
|
2989
|
+
externalForwardedProps: P,
|
|
2990
|
+
ownerState: C,
|
|
2991
|
+
getSlotProps: (e) => ({
|
|
2992
|
+
...e,
|
|
2993
|
+
onEntering: (t, n) => {
|
|
2994
|
+
e.onEntering?.(t, n), j();
|
|
2995
|
+
},
|
|
2996
|
+
onExited: (t) => {
|
|
2997
|
+
e.onExited?.(t), M();
|
|
2998
|
+
}
|
|
2999
|
+
}),
|
|
2638
3000
|
additionalProps: {
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
externalForwardedProps:
|
|
3001
|
+
appear: !0,
|
|
3002
|
+
in: m
|
|
3003
|
+
}
|
|
3004
|
+
});
|
|
3005
|
+
y === "auto" && !F.muiSupportAuto && (N = void 0);
|
|
3006
|
+
let ne = u || (i ? K(cn(i)).body : void 0), [L, { slots: re, slotProps: z, ...ae }] = R("root", {
|
|
3007
|
+
ref: t,
|
|
3008
|
+
elementType: un,
|
|
3009
|
+
externalForwardedProps: {
|
|
3010
|
+
...P,
|
|
3011
|
+
...x
|
|
3012
|
+
},
|
|
3013
|
+
shouldForwardComponentProp: !0,
|
|
2648
3014
|
additionalProps: {
|
|
2649
|
-
|
|
2650
|
-
slotProps: { backdrop: { invisible: !0 } },
|
|
2651
|
-
container:
|
|
3015
|
+
slots: { backdrop: h.backdrop },
|
|
3016
|
+
slotProps: { backdrop: Ne(typeof g.backdrop == "function" ? g.backdrop(C) : g.backdrop, { invisible: !0 }) },
|
|
3017
|
+
container: ne,
|
|
2652
3018
|
open: m
|
|
2653
3019
|
},
|
|
2654
|
-
ownerState:
|
|
2655
|
-
className:
|
|
2656
|
-
}),
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
3020
|
+
ownerState: C,
|
|
3021
|
+
className: v(w.root, l)
|
|
3022
|
+
}), [oe, se] = R("paper", {
|
|
3023
|
+
ref: S,
|
|
3024
|
+
className: w.paper,
|
|
3025
|
+
elementType: dn,
|
|
3026
|
+
externalForwardedProps: P,
|
|
3027
|
+
shouldForwardComponentProp: !0,
|
|
3028
|
+
additionalProps: {
|
|
3029
|
+
elevation: f,
|
|
3030
|
+
style: ee ? void 0 : { opacity: 0 }
|
|
3031
|
+
},
|
|
3032
|
+
ownerState: C
|
|
3033
|
+
});
|
|
3034
|
+
return /*#__PURE__*/ (0, G.jsx)(L, {
|
|
3035
|
+
...ae,
|
|
3036
|
+
...!te(L) && {
|
|
3037
|
+
slots: re,
|
|
3038
|
+
slotProps: z,
|
|
3039
|
+
disableAutoFocus: d,
|
|
3040
|
+
disableScrollLock: b
|
|
3041
|
+
},
|
|
3042
|
+
children: /*#__PURE__*/ (0, G.jsx)(F, {
|
|
3043
|
+
...I,
|
|
3044
|
+
timeout: N,
|
|
3045
|
+
children: /*#__PURE__*/ (0, G.jsx)(oe, {
|
|
3046
|
+
...se,
|
|
3047
|
+
children: c
|
|
3048
|
+
})
|
|
3049
|
+
})
|
|
3050
|
+
});
|
|
2667
3051
|
});
|
|
2668
|
-
function
|
|
2669
|
-
return
|
|
3052
|
+
function pn(e) {
|
|
3053
|
+
return F("MuiMenu", e);
|
|
2670
3054
|
}
|
|
2671
|
-
|
|
3055
|
+
T("MuiMenu", [
|
|
2672
3056
|
"root",
|
|
2673
3057
|
"paper",
|
|
2674
3058
|
"list"
|
|
2675
|
-
])
|
|
2676
|
-
var
|
|
2677
|
-
"autoFocus",
|
|
2678
|
-
"children",
|
|
2679
|
-
"className",
|
|
2680
|
-
"disableAutoFocusItem",
|
|
2681
|
-
"MenuListProps",
|
|
2682
|
-
"onClose",
|
|
2683
|
-
"open",
|
|
2684
|
-
"PaperProps",
|
|
2685
|
-
"PopoverClasses",
|
|
2686
|
-
"transitionDuration",
|
|
2687
|
-
"TransitionProps",
|
|
2688
|
-
"variant",
|
|
2689
|
-
"slots",
|
|
2690
|
-
"slotProps"
|
|
2691
|
-
], Lt = {
|
|
3059
|
+
]);
|
|
3060
|
+
var mn = {
|
|
2692
3061
|
vertical: "top",
|
|
2693
3062
|
horizontal: "right"
|
|
2694
|
-
},
|
|
3063
|
+
}, hn = {
|
|
2695
3064
|
vertical: "top",
|
|
2696
3065
|
horizontal: "left"
|
|
2697
|
-
},
|
|
3066
|
+
}, gn = (e) => {
|
|
2698
3067
|
let { classes: t } = e;
|
|
2699
|
-
return
|
|
3068
|
+
return A({
|
|
2700
3069
|
root: ["root"],
|
|
2701
3070
|
paper: ["paper"],
|
|
2702
3071
|
list: ["list"]
|
|
2703
|
-
},
|
|
2704
|
-
},
|
|
2705
|
-
shouldForwardProp: (e) =>
|
|
3072
|
+
}, pn, t);
|
|
3073
|
+
}, _n = D(fn, {
|
|
3074
|
+
shouldForwardProp: (e) => ee(e) || e === "classes",
|
|
2706
3075
|
name: "MuiMenu",
|
|
2707
|
-
slot: "Root"
|
|
2708
|
-
|
|
2709
|
-
})({}), Vt = j(Mt, {
|
|
3076
|
+
slot: "Root"
|
|
3077
|
+
})({}), vn = D(dn, {
|
|
2710
3078
|
name: "MuiMenu",
|
|
2711
|
-
slot: "Paper"
|
|
2712
|
-
overridesResolver: (e, t) => t.paper
|
|
3079
|
+
slot: "Paper"
|
|
2713
3080
|
})({
|
|
2714
3081
|
maxHeight: "calc(100% - 96px)",
|
|
2715
3082
|
WebkitOverflowScrolling: "touch"
|
|
2716
|
-
}),
|
|
3083
|
+
}), yn = D(nn, {
|
|
2717
3084
|
name: "MuiMenu",
|
|
2718
|
-
slot: "List"
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
let n = M({
|
|
3085
|
+
slot: "List"
|
|
3086
|
+
})({ outline: 0 }), bn = /*#__PURE__*/ W.forwardRef(function(e, t) {
|
|
3087
|
+
let n = k({
|
|
2722
3088
|
props: e,
|
|
2723
3089
|
name: "MuiMenu"
|
|
2724
|
-
}), { autoFocus:
|
|
2725
|
-
|
|
3090
|
+
}), { autoFocus: i = !0, children: a, className: o, disableAutoFocusItem: s = !1, onClose: c, open: l, PopoverClasses: u, transitionDuration: d = "auto", variant: f = "selectedMenu", slots: p = {}, slotProps: m = {}, ...h } = n, g = r(), _ = {
|
|
3091
|
+
...n,
|
|
3092
|
+
autoFocus: i,
|
|
2726
3093
|
disableAutoFocusItem: s,
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
}
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
3094
|
+
transitionDuration: d,
|
|
3095
|
+
variant: f
|
|
3096
|
+
}, v = gn(_), y = i && l, b = y && !s, x = W.useRef(null), S = (e, t) => {
|
|
3097
|
+
x.current && (x.current.adjustStyleForScrollbar(e, { direction: g ? "rtl" : "ltr" }), y && x.current.focusInitialTarget?.());
|
|
3098
|
+
}, C = (e) => {
|
|
3099
|
+
e.key === "Tab" && (e.preventDefault(), c && c(e, "tabKeyDown"));
|
|
3100
|
+
}, w = {
|
|
3101
|
+
slots: p,
|
|
3102
|
+
slotProps: m
|
|
3103
|
+
}, T = ce({
|
|
3104
|
+
elementType: p.root,
|
|
3105
|
+
externalSlotProps: m.root,
|
|
3106
|
+
ownerState: _,
|
|
3107
|
+
className: [v.root, o]
|
|
3108
|
+
}), [E, D] = R("paper", {
|
|
3109
|
+
className: v.paper,
|
|
3110
|
+
elementType: vn,
|
|
3111
|
+
externalForwardedProps: w,
|
|
3112
|
+
shouldForwardComponentProp: !0,
|
|
3113
|
+
ownerState: _
|
|
3114
|
+
}), [ee, O] = R("list", {
|
|
3115
|
+
className: v.list,
|
|
3116
|
+
elementType: yn,
|
|
3117
|
+
shouldForwardComponentProp: !0,
|
|
3118
|
+
externalForwardedProps: w,
|
|
3119
|
+
getSlotProps: (e) => ({
|
|
3120
|
+
...e,
|
|
3121
|
+
onKeyDown: (t) => {
|
|
3122
|
+
C(t), e.onKeyDown?.(t);
|
|
3123
|
+
}
|
|
3124
|
+
}),
|
|
3125
|
+
ownerState: _
|
|
3126
|
+
}), A = typeof m.transition == "function" ? m.transition(_) : m.transition;
|
|
3127
|
+
return /*#__PURE__*/ (0, G.jsx)(_n, {
|
|
3128
|
+
disableAutoFocus: i,
|
|
3129
|
+
onClose: c,
|
|
2754
3130
|
anchorOrigin: {
|
|
2755
3131
|
vertical: "bottom",
|
|
2756
|
-
horizontal:
|
|
3132
|
+
horizontal: g ? "right" : "left"
|
|
2757
3133
|
},
|
|
2758
|
-
transformOrigin:
|
|
3134
|
+
transformOrigin: g ? mn : hn,
|
|
2759
3135
|
slots: {
|
|
2760
|
-
|
|
2761
|
-
|
|
3136
|
+
root: p.root,
|
|
3137
|
+
paper: E,
|
|
3138
|
+
backdrop: p.backdrop,
|
|
3139
|
+
transition: p.transition
|
|
2762
3140
|
},
|
|
2763
3141
|
slotProps: {
|
|
2764
|
-
root:
|
|
2765
|
-
paper:
|
|
3142
|
+
root: T,
|
|
3143
|
+
paper: D,
|
|
3144
|
+
backdrop: typeof m.backdrop == "function" ? m.backdrop(_) : m.backdrop,
|
|
3145
|
+
transition: {
|
|
3146
|
+
...A,
|
|
3147
|
+
onEntering: (...e) => {
|
|
3148
|
+
S(...e), A?.onEntering?.(...e);
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
2766
3151
|
},
|
|
2767
|
-
open:
|
|
3152
|
+
open: l,
|
|
2768
3153
|
ref: t,
|
|
2769
|
-
transitionDuration:
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
}))
|
|
2784
|
-
}));
|
|
2785
|
-
}), Wt = (e) => {
|
|
3154
|
+
transitionDuration: d,
|
|
3155
|
+
ownerState: _,
|
|
3156
|
+
...h,
|
|
3157
|
+
classes: u,
|
|
3158
|
+
children: /*#__PURE__*/ (0, G.jsx)(ee, {
|
|
3159
|
+
actions: x,
|
|
3160
|
+
autoFocus: y,
|
|
3161
|
+
autoFocusItem: b,
|
|
3162
|
+
variant: f,
|
|
3163
|
+
...O,
|
|
3164
|
+
children: a
|
|
3165
|
+
})
|
|
3166
|
+
});
|
|
3167
|
+
}), Z = (e) => {
|
|
2786
3168
|
switch (e.key) {
|
|
2787
3169
|
case " ":
|
|
2788
3170
|
case "Enter":
|
|
2789
3171
|
e.preventDefault(), e.target.click();
|
|
2790
3172
|
break;
|
|
2791
3173
|
}
|
|
2792
|
-
},
|
|
3174
|
+
}, xn = (e) => {
|
|
2793
3175
|
switch (e.key) {
|
|
2794
3176
|
case "ArrowDown": {
|
|
2795
3177
|
let t = e.currentTarget.getAttribute("role");
|
|
@@ -2810,7 +3192,7 @@ var Ft = ["onEntering"], It = [
|
|
|
2810
3192
|
break;
|
|
2811
3193
|
}
|
|
2812
3194
|
}
|
|
2813
|
-
}, Q = /* @__PURE__ */ e(
|
|
3195
|
+
}, Q = /* @__PURE__ */ e(De()), Sn = class e {
|
|
2814
3196
|
qixColor;
|
|
2815
3197
|
constructor(t) {
|
|
2816
3198
|
if (t instanceof e) this.qixColor = new Q.default(t.qixColor);
|
|
@@ -2913,7 +3295,7 @@ var Ft = ["onEntering"], It = [
|
|
|
2913
3295
|
});
|
|
2914
3296
|
return t.color === null ? e[0] : t.color;
|
|
2915
3297
|
};
|
|
2916
|
-
},
|
|
3298
|
+
}, Cn = (e, t) => {
|
|
2917
3299
|
try {
|
|
2918
3300
|
let n = t?.targetContrast ?? 5.2, r = (0, Q.default)(e), i = r.hsl().object(), a = i.h, o = i.s, s = r.luminosity() < .45, c = 0, l = 1;
|
|
2919
3301
|
for (let e = 0; e < 28; e++) {
|
|
@@ -2933,7 +3315,7 @@ var Ft = ["onEntering"], It = [
|
|
|
2933
3315
|
} catch (t) {
|
|
2934
3316
|
return console.error(`[getReadableTextColor] Invalid color input: ${e}`, t), null;
|
|
2935
3317
|
}
|
|
2936
|
-
},
|
|
3318
|
+
}, wn = {
|
|
2937
3319
|
"--background-color": n.white,
|
|
2938
3320
|
"--color": n.mainDarkNavy,
|
|
2939
3321
|
"--font-family": "Roboto",
|
|
@@ -2942,40 +3324,40 @@ var Ft = ["onEntering"], It = [
|
|
|
2942
3324
|
"--text-decoration": "none",
|
|
2943
3325
|
"--text-align": "left",
|
|
2944
3326
|
"--align-items": "center"
|
|
2945
|
-
},
|
|
2946
|
-
let n = e["--background-color"], r =
|
|
3327
|
+
}, Tn = (e, { appearance: t = "default" } = {}) => {
|
|
3328
|
+
let n = e["--background-color"], r = Dn(n), { searchFontColor: i, searchBorderColor: a } = En(n, t === "legacy" ? e["--color"] : void 0);
|
|
2947
3329
|
return {
|
|
2948
3330
|
"--background-color-hover": r,
|
|
2949
3331
|
"--search-font-color": i,
|
|
2950
3332
|
"--search-border-color": a
|
|
2951
3333
|
};
|
|
2952
|
-
},
|
|
3334
|
+
}, En = (e, t) => t ? {
|
|
2953
3335
|
searchFontColor: t,
|
|
2954
3336
|
searchBorderColor: t
|
|
2955
3337
|
} : !e || e === "transparent" ? {
|
|
2956
3338
|
searchFontColor: n.grey2,
|
|
2957
3339
|
searchBorderColor: n.grey3
|
|
2958
|
-
} : new
|
|
3340
|
+
} : new Sn(e).luminanceWithAlpha() < .5 ? {
|
|
2959
3341
|
searchFontColor: n.white,
|
|
2960
3342
|
searchBorderColor: n.white
|
|
2961
3343
|
} : {
|
|
2962
3344
|
searchFontColor: n.grey2,
|
|
2963
3345
|
searchBorderColor: n.grey3
|
|
2964
|
-
},
|
|
3346
|
+
}, Dn = (e) => {
|
|
2965
3347
|
if (!e || e === "transparent") return n.grey3;
|
|
2966
|
-
let t = new
|
|
3348
|
+
let t = new Sn(e);
|
|
2967
3349
|
return t.luminanceWithAlpha() < .5 ? t.addTint(.2).hex() : t.addShade(.1).hex();
|
|
2968
|
-
},
|
|
3350
|
+
}, On = (e) => {
|
|
2969
3351
|
let t = e === "legacy", r = {
|
|
2970
|
-
[
|
|
3352
|
+
[H.md]: {
|
|
2971
3353
|
fontSize: "11px",
|
|
2972
3354
|
lineHeight: "12px"
|
|
2973
3355
|
},
|
|
2974
|
-
[
|
|
3356
|
+
[H.sm]: {
|
|
2975
3357
|
fontSize: "9px",
|
|
2976
3358
|
lineHeight: "10px"
|
|
2977
3359
|
},
|
|
2978
|
-
[
|
|
3360
|
+
[H.xs]: {
|
|
2979
3361
|
fontSize: "8px",
|
|
2980
3362
|
lineHeight: "8px"
|
|
2981
3363
|
}
|
|
@@ -2986,9 +3368,9 @@ var Ft = ["onEntering"], It = [
|
|
|
2986
3368
|
fontFamily: "var(--font-family)",
|
|
2987
3369
|
padding: "8px 0",
|
|
2988
3370
|
...e && {
|
|
2989
|
-
[
|
|
2990
|
-
[
|
|
2991
|
-
[
|
|
3371
|
+
[H.md]: { padding: "6px 0" },
|
|
3372
|
+
[H.sm]: { padding: "4px 0" },
|
|
3373
|
+
[H.xs]: { padding: "2px 0" }
|
|
2992
3374
|
}
|
|
2993
3375
|
}),
|
|
2994
3376
|
divActions: {
|
|
@@ -3001,7 +3383,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3001
3383
|
padding: 8
|
|
3002
3384
|
},
|
|
3003
3385
|
divActionsAction: {
|
|
3004
|
-
...
|
|
3386
|
+
...i.normal14,
|
|
3005
3387
|
borderRadius: 4,
|
|
3006
3388
|
cursor: "pointer",
|
|
3007
3389
|
textAlign: "center",
|
|
@@ -3022,43 +3404,43 @@ var Ft = ["onEntering"], It = [
|
|
|
3022
3404
|
padding: "1px 0"
|
|
3023
3405
|
},
|
|
3024
3406
|
divOptions: (e) => ({
|
|
3025
|
-
...
|
|
3407
|
+
...p.propertiesPanel,
|
|
3026
3408
|
scrollbarGutter: "initial",
|
|
3027
3409
|
maxHeight: 400,
|
|
3028
3410
|
padding: "0 8px",
|
|
3029
3411
|
...e && {
|
|
3030
|
-
[
|
|
3412
|
+
[H.md]: {
|
|
3031
3413
|
padding: "0 6px",
|
|
3032
3414
|
...!t && { maxHeight: 300 }
|
|
3033
3415
|
},
|
|
3034
|
-
[
|
|
3416
|
+
[H.sm]: {
|
|
3035
3417
|
padding: "0 4px",
|
|
3036
3418
|
...!t && { maxHeight: 250 }
|
|
3037
3419
|
},
|
|
3038
|
-
[
|
|
3420
|
+
[H.xs]: {
|
|
3039
3421
|
padding: "0 2px",
|
|
3040
3422
|
...!t && { maxHeight: 200 }
|
|
3041
3423
|
}
|
|
3042
3424
|
}
|
|
3043
3425
|
}),
|
|
3044
3426
|
header: (e) => ({
|
|
3045
|
-
...
|
|
3427
|
+
...i.bold13,
|
|
3046
3428
|
gap: 8,
|
|
3047
3429
|
padding: "10px 16px",
|
|
3048
3430
|
display: "flex",
|
|
3049
3431
|
textAlign: "var(--text-align)",
|
|
3050
3432
|
color: "var(--color)",
|
|
3051
3433
|
...e && {
|
|
3052
|
-
[
|
|
3053
|
-
...r[
|
|
3434
|
+
[H.md]: {
|
|
3435
|
+
...r[H.md],
|
|
3054
3436
|
...!t && { padding: "8px 12px" }
|
|
3055
3437
|
},
|
|
3056
|
-
[
|
|
3057
|
-
...r[
|
|
3438
|
+
[H.sm]: {
|
|
3439
|
+
...r[H.sm],
|
|
3058
3440
|
...!t && { padding: "6px 8px" }
|
|
3059
3441
|
},
|
|
3060
|
-
[
|
|
3061
|
-
...r[
|
|
3442
|
+
[H.xs]: {
|
|
3443
|
+
...r[H.xs],
|
|
3062
3444
|
...!t && { padding: "4px 6px" }
|
|
3063
3445
|
}
|
|
3064
3446
|
}
|
|
@@ -3077,18 +3459,18 @@ var Ft = ["onEntering"], It = [
|
|
|
3077
3459
|
"&[aria-disabled=\"true\"]": { color: n.grey3 },
|
|
3078
3460
|
"& > div": { display: "flex" },
|
|
3079
3461
|
...e && {
|
|
3080
|
-
...
|
|
3081
|
-
[
|
|
3462
|
+
...ve,
|
|
3463
|
+
[H.md]: {
|
|
3082
3464
|
padding: t ? "0px 8px" : "8px",
|
|
3083
3465
|
...t && { height: 24 },
|
|
3084
3466
|
gap: 4
|
|
3085
3467
|
},
|
|
3086
|
-
[
|
|
3468
|
+
[H.sm]: {
|
|
3087
3469
|
padding: t ? "0px 6px" : "6px",
|
|
3088
3470
|
...t && { height: 20 },
|
|
3089
3471
|
gap: 2
|
|
3090
3472
|
},
|
|
3091
|
-
[
|
|
3473
|
+
[H.xs]: {
|
|
3092
3474
|
padding: t ? "0px 4px" : "4px",
|
|
3093
3475
|
...t && { height: 16 },
|
|
3094
3476
|
gap: 1
|
|
@@ -3096,7 +3478,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3096
3478
|
}
|
|
3097
3479
|
}),
|
|
3098
3480
|
divOptionsOptionCategory: (e) => ({
|
|
3099
|
-
...
|
|
3481
|
+
...i.bold13,
|
|
3100
3482
|
fontStyle: "var(--font-style)",
|
|
3101
3483
|
textDecoration: "var(--text-decoration)",
|
|
3102
3484
|
background: "var(--background-color)",
|
|
@@ -3115,23 +3497,23 @@ var Ft = ["onEntering"], It = [
|
|
|
3115
3497
|
margin: "10px 8px",
|
|
3116
3498
|
height: 0,
|
|
3117
3499
|
...e && {
|
|
3118
|
-
[
|
|
3119
|
-
[
|
|
3120
|
-
[
|
|
3500
|
+
[H.md]: { margin: "8px" },
|
|
3501
|
+
[H.sm]: { margin: "6px" },
|
|
3502
|
+
[H.xs]: { margin: "4px" }
|
|
3121
3503
|
}
|
|
3122
3504
|
}
|
|
3123
3505
|
}),
|
|
3124
3506
|
divOptionsOptionOption: (e) => ({
|
|
3125
|
-
...
|
|
3507
|
+
...i.normal13,
|
|
3126
3508
|
fontStyle: "var(--font-style)",
|
|
3127
|
-
lineHeight:
|
|
3509
|
+
lineHeight: i.normal13.lineHeight,
|
|
3128
3510
|
textDecoration: "var(--text-decoration)",
|
|
3129
3511
|
"&[aria-disabled=\"true\"]": { cursor: "not-allowed" },
|
|
3130
3512
|
"&[aria-expanded=\"true\"]": { background: n.grey5 },
|
|
3131
3513
|
...e && r
|
|
3132
3514
|
}),
|
|
3133
3515
|
divOptionsOptionOptionLabel: {
|
|
3134
|
-
...
|
|
3516
|
+
...i.overflowEllipsis,
|
|
3135
3517
|
display: "initial !important",
|
|
3136
3518
|
...t && {
|
|
3137
3519
|
height: "100%",
|
|
@@ -3144,71 +3526,71 @@ var Ft = ["onEntering"], It = [
|
|
|
3144
3526
|
display: "flex",
|
|
3145
3527
|
"& > div": { flexGrow: 1 },
|
|
3146
3528
|
...e && {
|
|
3147
|
-
[
|
|
3148
|
-
[
|
|
3149
|
-
[
|
|
3529
|
+
[H.md]: { padding: t ? "8px" : "6px 8px" },
|
|
3530
|
+
[H.sm]: { padding: t ? "8px" : "4px 6px" },
|
|
3531
|
+
[H.xs]: { padding: t ? "8px" : "2px 4px" }
|
|
3150
3532
|
}
|
|
3151
3533
|
})
|
|
3152
3534
|
};
|
|
3153
|
-
},
|
|
3535
|
+
}, kn = m(On("default")), An = m(On("legacy")), jn = (e, { appearance: t = "default" } = {}) => (t === "legacy" ? An : kn)(e), Mn = ({ tooltip: e, children: t }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
|
|
3154
3536
|
title: e,
|
|
3155
3537
|
children: t
|
|
3156
|
-
}) : t,
|
|
3157
|
-
let { color: n = "primary", disabled: r = !1, key:
|
|
3158
|
-
return /* @__PURE__ */ (0,
|
|
3538
|
+
}) : t, Nn = ({ action: e, classNames: t }) => {
|
|
3539
|
+
let { color: n = "primary", disabled: r = !1, key: i, label: a, onClick: o, style: s = {} } = e;
|
|
3540
|
+
return /* @__PURE__ */ (0, G.jsx)(Mn, {
|
|
3159
3541
|
tooltip: e.tooltip,
|
|
3160
|
-
children: /* @__PURE__ */ (0,
|
|
3542
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3161
3543
|
"aria-disabled": r,
|
|
3162
|
-
className:
|
|
3544
|
+
className: _({
|
|
3163
3545
|
[t.divActionsAction]: !0,
|
|
3164
3546
|
[t.divActionsAction__primary]: n === "primary",
|
|
3165
3547
|
[t.divActionsAction__secondary]: n === "secondary"
|
|
3166
3548
|
}),
|
|
3167
|
-
onClick: r ? void 0 :
|
|
3168
|
-
onKeyDown:
|
|
3549
|
+
onClick: r ? void 0 : o,
|
|
3550
|
+
onKeyDown: Z,
|
|
3169
3551
|
role: "button",
|
|
3170
|
-
style:
|
|
3552
|
+
style: s,
|
|
3171
3553
|
tabIndex: r ? void 0 : 0,
|
|
3172
|
-
children:
|
|
3173
|
-
},
|
|
3554
|
+
children: a
|
|
3555
|
+
}, i)
|
|
3174
3556
|
});
|
|
3175
|
-
},
|
|
3557
|
+
}, Pn = ({ actions: e, classNames: t }) => e.length ? /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3176
3558
|
className: t.divActions,
|
|
3177
|
-
children: e.map((e) => /* @__PURE__ */ (0,
|
|
3559
|
+
children: e.map((e) => /* @__PURE__ */ (0, G.jsx)(Nn, {
|
|
3178
3560
|
classNames: t,
|
|
3179
3561
|
action: e
|
|
3180
3562
|
}, e.key))
|
|
3181
|
-
}) : null,
|
|
3563
|
+
}) : null, Fn = m({ button: {
|
|
3182
3564
|
background: "initial",
|
|
3183
3565
|
border: "initial",
|
|
3184
3566
|
padding: "initial",
|
|
3185
3567
|
borderRadius: 4,
|
|
3186
3568
|
cursor: "pointer",
|
|
3187
3569
|
display: "block"
|
|
3188
|
-
} }),
|
|
3189
|
-
let
|
|
3190
|
-
return /* @__PURE__ */ (0,
|
|
3570
|
+
} }), In = (0, W.forwardRef)(function({ children: e, className: t, ...n }, r) {
|
|
3571
|
+
let i = Fn();
|
|
3572
|
+
return /* @__PURE__ */ (0, G.jsx)("button", {
|
|
3191
3573
|
...n,
|
|
3192
|
-
className:
|
|
3574
|
+
className: _({
|
|
3193
3575
|
[String(t)]: !0,
|
|
3194
|
-
[
|
|
3576
|
+
[i.button]: !0
|
|
3195
3577
|
}),
|
|
3196
3578
|
ref: r,
|
|
3197
3579
|
children: e
|
|
3198
3580
|
});
|
|
3199
|
-
}),
|
|
3581
|
+
}), Ln = m({
|
|
3200
3582
|
button: (e) => ({
|
|
3201
3583
|
position: "absolute",
|
|
3202
3584
|
right: 4,
|
|
3203
3585
|
top: 4,
|
|
3204
3586
|
...e && {
|
|
3205
|
-
[
|
|
3587
|
+
[H.md]: { top: 2 },
|
|
3206
3588
|
"& svg": {
|
|
3207
|
-
[
|
|
3589
|
+
[H.sm]: {
|
|
3208
3590
|
width: 12,
|
|
3209
3591
|
height: 12
|
|
3210
3592
|
},
|
|
3211
|
-
[
|
|
3593
|
+
[H.xs]: {
|
|
3212
3594
|
width: 8,
|
|
3213
3595
|
height: 8
|
|
3214
3596
|
}
|
|
@@ -3220,7 +3602,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3220
3602
|
position: "relative"
|
|
3221
3603
|
},
|
|
3222
3604
|
input: (e) => ({
|
|
3223
|
-
...
|
|
3605
|
+
...i.normal13,
|
|
3224
3606
|
background: "initial",
|
|
3225
3607
|
border: `1px solid ${n.grey3}`,
|
|
3226
3608
|
borderRadius: 4,
|
|
@@ -3230,18 +3612,18 @@ var Ft = ["onEntering"], It = [
|
|
|
3230
3612
|
height: 24,
|
|
3231
3613
|
padding: "3px 23px",
|
|
3232
3614
|
...e && {
|
|
3233
|
-
[
|
|
3615
|
+
[H.md]: {
|
|
3234
3616
|
height: 20,
|
|
3235
|
-
...
|
|
3617
|
+
...i.normal12
|
|
3236
3618
|
},
|
|
3237
|
-
[
|
|
3619
|
+
[H.sm]: {
|
|
3238
3620
|
height: 16,
|
|
3239
|
-
...
|
|
3621
|
+
...i.normal11,
|
|
3240
3622
|
padding: "3px 16px"
|
|
3241
3623
|
},
|
|
3242
|
-
[
|
|
3624
|
+
[H.xs]: {
|
|
3243
3625
|
height: 12,
|
|
3244
|
-
...
|
|
3626
|
+
...i.normal10,
|
|
3245
3627
|
padding: "0px 12px"
|
|
3246
3628
|
}
|
|
3247
3629
|
},
|
|
@@ -3253,75 +3635,75 @@ var Ft = ["onEntering"], It = [
|
|
|
3253
3635
|
position: "absolute",
|
|
3254
3636
|
top: 4,
|
|
3255
3637
|
...e && {
|
|
3256
|
-
[
|
|
3257
|
-
[
|
|
3638
|
+
[H.md]: { top: 2 },
|
|
3639
|
+
[H.sm]: {
|
|
3258
3640
|
width: 12,
|
|
3259
3641
|
height: 12,
|
|
3260
3642
|
top: 2
|
|
3261
3643
|
},
|
|
3262
|
-
[
|
|
3644
|
+
[H.xs]: {
|
|
3263
3645
|
width: 8,
|
|
3264
3646
|
height: 8,
|
|
3265
3647
|
top: 2
|
|
3266
3648
|
}
|
|
3267
3649
|
}
|
|
3268
3650
|
})
|
|
3269
|
-
}),
|
|
3270
|
-
let
|
|
3271
|
-
|
|
3272
|
-
}, [
|
|
3273
|
-
return (0,
|
|
3274
|
-
e &&
|
|
3275
|
-
}, [e]), /* @__PURE__ */ (0,
|
|
3276
|
-
className:
|
|
3651
|
+
}), Rn = (0, W.forwardRef)(function({ autoFocus: e, className: t, onChange: n, value: r, placeholder: i, style: a, responsive: o, ...s }, c) {
|
|
3652
|
+
let l = (0, W.useRef)(null), u = (0, W.useCallback)((e) => {
|
|
3653
|
+
l.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
3654
|
+
}, [c]), d = Ln(o);
|
|
3655
|
+
return (0, W.useEffect)(() => {
|
|
3656
|
+
e && l.current?.focus();
|
|
3657
|
+
}, [e]), /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3658
|
+
className: _({
|
|
3277
3659
|
[String(t)]: !0,
|
|
3278
|
-
[
|
|
3660
|
+
[d.div]: !0
|
|
3279
3661
|
}),
|
|
3280
3662
|
children: [
|
|
3281
|
-
/* @__PURE__ */ (0,
|
|
3282
|
-
className:
|
|
3283
|
-
fill:
|
|
3663
|
+
/* @__PURE__ */ (0, G.jsx)(b, {
|
|
3664
|
+
className: d.svg,
|
|
3665
|
+
fill: a?.color
|
|
3284
3666
|
}),
|
|
3285
|
-
/* @__PURE__ */ (0,
|
|
3286
|
-
...
|
|
3287
|
-
style: { ...
|
|
3288
|
-
className:
|
|
3667
|
+
/* @__PURE__ */ (0, G.jsx)("input", {
|
|
3668
|
+
...s,
|
|
3669
|
+
style: { ...a },
|
|
3670
|
+
className: d.input,
|
|
3289
3671
|
onChange: n,
|
|
3290
|
-
placeholder:
|
|
3291
|
-
ref:
|
|
3672
|
+
placeholder: i ?? "Search...",
|
|
3673
|
+
ref: u,
|
|
3292
3674
|
size: 1,
|
|
3293
3675
|
value: r
|
|
3294
3676
|
}),
|
|
3295
|
-
/* @__PURE__ */ (0,
|
|
3296
|
-
className:
|
|
3677
|
+
/* @__PURE__ */ (0, G.jsx)(In, {
|
|
3678
|
+
className: d.button,
|
|
3297
3679
|
"data-testid": "input-search-clear",
|
|
3298
3680
|
onClick: () => {
|
|
3299
|
-
|
|
3681
|
+
l.current?.focus(), n?.({ target: { value: "" } });
|
|
3300
3682
|
},
|
|
3301
3683
|
style: { display: r ? void 0 : "none" },
|
|
3302
|
-
children: /* @__PURE__ */ (0,
|
|
3684
|
+
children: /* @__PURE__ */ (0, G.jsx)(w, { fill: a?.color })
|
|
3303
3685
|
})
|
|
3304
3686
|
]
|
|
3305
3687
|
});
|
|
3306
|
-
}),
|
|
3688
|
+
}), zn = m({ button: {
|
|
3307
3689
|
paddingLeft: 4,
|
|
3308
3690
|
paddingRight: 4
|
|
3309
|
-
} }),
|
|
3310
|
-
let n =
|
|
3311
|
-
return /* @__PURE__ */ (0,
|
|
3691
|
+
} }), Bn = ({ isAllCollapsed: e, clickCallback: t }) => {
|
|
3692
|
+
let n = zn(), r = e ? c : o;
|
|
3693
|
+
return /* @__PURE__ */ (0, G.jsx)(fe, {
|
|
3312
3694
|
title: e ? "Expand all" : "Collapse all",
|
|
3313
|
-
children: /* @__PURE__ */ (0,
|
|
3695
|
+
children: /* @__PURE__ */ (0, G.jsx)(In, {
|
|
3314
3696
|
onClick: () => t?.(!e),
|
|
3315
3697
|
className: n.button,
|
|
3316
|
-
children: /* @__PURE__ */ (0,
|
|
3698
|
+
children: /* @__PURE__ */ (0, G.jsx)(r, {})
|
|
3317
3699
|
})
|
|
3318
3700
|
});
|
|
3319
|
-
},
|
|
3701
|
+
}, Vn = ({ classNames: e, searchEnabled: t, searchPhrase: n, onChange: r, options: i, collapsed: a, onCollapseChange: o, responsive: s }) => {
|
|
3320
3702
|
if (!t) return null;
|
|
3321
3703
|
let c = i.filter((e) => e.type === "category"), l = c.length > 0, u = c.every((e) => a[e.key]);
|
|
3322
|
-
return /* @__PURE__ */ (0,
|
|
3704
|
+
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3323
3705
|
className: e.divSearch,
|
|
3324
|
-
children: [/* @__PURE__ */ (0,
|
|
3706
|
+
children: [/* @__PURE__ */ (0, G.jsx)(Rn, {
|
|
3325
3707
|
onChange: (e) => r(e.target.value),
|
|
3326
3708
|
value: n,
|
|
3327
3709
|
responsive: s,
|
|
@@ -3329,18 +3711,18 @@ var Ft = ["onEntering"], It = [
|
|
|
3329
3711
|
borderColor: "var(--search-border-color)",
|
|
3330
3712
|
color: "var(--search-font-color)"
|
|
3331
3713
|
}
|
|
3332
|
-
}), l && /* @__PURE__ */ (0,
|
|
3714
|
+
}), l && /* @__PURE__ */ (0, G.jsx)(Bn, {
|
|
3333
3715
|
isAllCollapsed: u,
|
|
3334
3716
|
clickCallback: o
|
|
3335
3717
|
})]
|
|
3336
3718
|
});
|
|
3337
|
-
},
|
|
3719
|
+
}, Hn = (e, t) => {
|
|
3338
3720
|
let { type: n } = e;
|
|
3339
3721
|
return n === "category" && e.children ? {
|
|
3340
3722
|
...e,
|
|
3341
3723
|
children: e.children.filter((e) => t(e))
|
|
3342
3724
|
} : e;
|
|
3343
|
-
},
|
|
3725
|
+
}, Un = (e, t) => {
|
|
3344
3726
|
let { type: n } = e;
|
|
3345
3727
|
switch (n) {
|
|
3346
3728
|
case "category": {
|
|
@@ -3355,17 +3737,17 @@ var Ft = ["onEntering"], It = [
|
|
|
3355
3737
|
return i.includes(t) || !!a?.includes(t);
|
|
3356
3738
|
}
|
|
3357
3739
|
}
|
|
3358
|
-
},
|
|
3359
|
-
let n = (e) =>
|
|
3360
|
-
return e.map((e) =>
|
|
3361
|
-
},
|
|
3740
|
+
}, Wn = (e, t) => {
|
|
3741
|
+
let n = (e) => Un(e, t);
|
|
3742
|
+
return e.map((e) => Hn(e, n)).filter(n);
|
|
3743
|
+
}, Gn = (e) => {
|
|
3362
3744
|
let t = e.reduce((e, t) => e + Number("isChecked" in t && t.isChecked === !0), 0);
|
|
3363
3745
|
switch (!0) {
|
|
3364
3746
|
case t === e.length: return "full";
|
|
3365
3747
|
case t > 0: return "partial";
|
|
3366
3748
|
default: return "none";
|
|
3367
3749
|
}
|
|
3368
|
-
},
|
|
3750
|
+
}, Kn = m({
|
|
3369
3751
|
container: {
|
|
3370
3752
|
position: "relative",
|
|
3371
3753
|
display: "flex",
|
|
@@ -3406,7 +3788,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3406
3788
|
"&[aria-disabled=\"true\"]": { cursor: "default" }
|
|
3407
3789
|
},
|
|
3408
3790
|
label: {
|
|
3409
|
-
...
|
|
3791
|
+
...i.normal13,
|
|
3410
3792
|
color: n.grey1,
|
|
3411
3793
|
cursor: "pointer",
|
|
3412
3794
|
marginLeft: 8,
|
|
@@ -3418,110 +3800,110 @@ var Ft = ["onEntering"], It = [
|
|
|
3418
3800
|
cursor: "default"
|
|
3419
3801
|
}
|
|
3420
3802
|
}
|
|
3421
|
-
}),
|
|
3803
|
+
}), qn = {
|
|
3422
3804
|
checkMarkColor: n.mainBrightPink,
|
|
3423
3805
|
disabled: !1,
|
|
3424
3806
|
readOnly: !1,
|
|
3425
3807
|
size: 16,
|
|
3426
3808
|
styles: {},
|
|
3427
3809
|
tabIndex: 0
|
|
3428
|
-
},
|
|
3810
|
+
}, Jn = ({ value: e, size: t, fill: r = n.mainBrightPink }) => {
|
|
3429
3811
|
switch (e) {
|
|
3430
|
-
case "full": return /* @__PURE__ */ (0,
|
|
3431
|
-
fill:
|
|
3812
|
+
case "full": return /* @__PURE__ */ (0, G.jsx)(s, {
|
|
3813
|
+
fill: r,
|
|
3432
3814
|
size: t
|
|
3433
3815
|
});
|
|
3434
|
-
case "partial": return /* @__PURE__ */ (0,
|
|
3435
|
-
fill:
|
|
3816
|
+
case "partial": return /* @__PURE__ */ (0, G.jsx)(f, {
|
|
3817
|
+
fill: r,
|
|
3436
3818
|
size: t
|
|
3437
3819
|
});
|
|
3438
3820
|
default: return null;
|
|
3439
3821
|
}
|
|
3440
|
-
},
|
|
3822
|
+
}, Yn = (e) => {
|
|
3441
3823
|
switch (e) {
|
|
3442
3824
|
case "full": return "none";
|
|
3443
3825
|
case "partial": return "none";
|
|
3444
3826
|
case "none": return "full";
|
|
3445
3827
|
}
|
|
3446
|
-
},
|
|
3447
|
-
let { value: t, onChange: n, checkMarkColor: r, disabled:
|
|
3448
|
-
...
|
|
3828
|
+
}, Xn = (e) => {
|
|
3829
|
+
let { value: t, onChange: n, checkMarkColor: r, disabled: i, readOnly: a, size: o, styles: s, tabIndex: c, label: l, testId: u } = {
|
|
3830
|
+
...qn,
|
|
3449
3831
|
...e
|
|
3450
|
-
},
|
|
3832
|
+
}, d = (e) => {
|
|
3451
3833
|
e.stopPropagation();
|
|
3452
|
-
let r =
|
|
3453
|
-
!
|
|
3454
|
-
},
|
|
3455
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
3456
|
-
},
|
|
3457
|
-
return /* @__PURE__ */ (0,
|
|
3458
|
-
onClick:
|
|
3459
|
-
className:
|
|
3460
|
-
[
|
|
3461
|
-
[
|
|
3834
|
+
let r = Yn(t);
|
|
3835
|
+
!i && !a && n(r);
|
|
3836
|
+
}, f = (e) => {
|
|
3837
|
+
e.key === "Enter" && (e.preventDefault(), d(e));
|
|
3838
|
+
}, p = Kn();
|
|
3839
|
+
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3840
|
+
onClick: d,
|
|
3841
|
+
className: _({
|
|
3842
|
+
[p.container]: !0,
|
|
3843
|
+
[p.checkboxWithLabel]: !!l
|
|
3462
3844
|
}),
|
|
3463
|
-
"data-testid":
|
|
3464
|
-
children: [/* @__PURE__ */ (0,
|
|
3465
|
-
className:
|
|
3466
|
-
[
|
|
3467
|
-
[
|
|
3845
|
+
"data-testid": u,
|
|
3846
|
+
children: [/* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3847
|
+
className: _({
|
|
3848
|
+
[p.checkboxContainer]: !0,
|
|
3849
|
+
[p.checkboxWithLabel]: !!l
|
|
3468
3850
|
}),
|
|
3469
|
-
children: [/* @__PURE__ */ (0,
|
|
3851
|
+
children: [/* @__PURE__ */ (0, G.jsx)("input", {
|
|
3470
3852
|
type: "checkbox",
|
|
3471
|
-
"aria-disabled":
|
|
3472
|
-
"aria-readonly":
|
|
3853
|
+
"aria-disabled": i,
|
|
3854
|
+
"aria-readonly": a,
|
|
3473
3855
|
"aria-checked": t === "full" ? "true" : t === "partial" ? "mixed" : "false",
|
|
3474
3856
|
style: {
|
|
3475
|
-
...
|
|
3476
|
-
height:
|
|
3477
|
-
width:
|
|
3857
|
+
...s,
|
|
3858
|
+
height: o,
|
|
3859
|
+
width: o
|
|
3478
3860
|
},
|
|
3479
|
-
tabIndex:
|
|
3480
|
-
onKeyDown:
|
|
3481
|
-
className:
|
|
3482
|
-
[
|
|
3483
|
-
[
|
|
3484
|
-
[
|
|
3861
|
+
tabIndex: c,
|
|
3862
|
+
onKeyDown: f,
|
|
3863
|
+
className: _({
|
|
3864
|
+
[p.checkbox]: !0,
|
|
3865
|
+
[p.checkboxUnchecked]: t === "none",
|
|
3866
|
+
[p.checkboxChecked]: t === "full" || t === "partial"
|
|
3485
3867
|
})
|
|
3486
|
-
}), /* @__PURE__ */ (0,
|
|
3487
|
-
"aria-disabled":
|
|
3488
|
-
className:
|
|
3489
|
-
children: /* @__PURE__ */ (0,
|
|
3868
|
+
}), /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3869
|
+
"aria-disabled": i,
|
|
3870
|
+
className: p.checkmark,
|
|
3871
|
+
children: /* @__PURE__ */ (0, G.jsx)(Jn, {
|
|
3490
3872
|
value: t,
|
|
3491
|
-
size:
|
|
3873
|
+
size: o,
|
|
3492
3874
|
fill: r
|
|
3493
3875
|
})
|
|
3494
3876
|
})]
|
|
3495
|
-
}),
|
|
3496
|
-
className:
|
|
3497
|
-
[
|
|
3498
|
-
disabled:
|
|
3877
|
+
}), l ? /* @__PURE__ */ (0, G.jsx)("span", {
|
|
3878
|
+
className: _({
|
|
3879
|
+
[p.label]: !0,
|
|
3880
|
+
disabled: i
|
|
3499
3881
|
}),
|
|
3500
3882
|
"data-testid": "checkbox-label",
|
|
3501
|
-
onClick:
|
|
3502
|
-
children:
|
|
3883
|
+
onClick: d,
|
|
3884
|
+
children: l
|
|
3503
3885
|
}) : null]
|
|
3504
3886
|
});
|
|
3505
|
-
},
|
|
3506
|
-
let a = n.toLocaleLowerCase(), o =
|
|
3507
|
-
return /* @__PURE__ */ (0,
|
|
3887
|
+
}, Zn = ({ classNames: e, options: t, searchPhrase: n, autoFocus: r, renderOption: i }) => {
|
|
3888
|
+
let a = n.toLocaleLowerCase(), o = Wn(t, a);
|
|
3889
|
+
return /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3508
3890
|
className: e.divOptions,
|
|
3509
|
-
onKeyDown:
|
|
3891
|
+
onKeyDown: xn,
|
|
3510
3892
|
ref: r,
|
|
3511
3893
|
role: "menu",
|
|
3512
|
-
children: o.map((e) => /* @__PURE__ */ (0,
|
|
3894
|
+
children: o.map((e) => /* @__PURE__ */ (0, G.jsx)(W.Fragment, { children: i(e, a) }, e.key))
|
|
3513
3895
|
});
|
|
3514
|
-
},
|
|
3896
|
+
}, Qn = (e) => /* @__PURE__ */ (0, G.jsx)(Zn, {
|
|
3515
3897
|
classNames: e.classNames,
|
|
3516
3898
|
options: e.options,
|
|
3517
3899
|
searchPhrase: e.searchPhrase,
|
|
3518
3900
|
autoFocus: e.autoFocus,
|
|
3519
|
-
renderOption: (t, n) => /* @__PURE__ */ (0,
|
|
3901
|
+
renderOption: (t, n) => /* @__PURE__ */ (0, G.jsx)(vr, {
|
|
3520
3902
|
...e,
|
|
3521
3903
|
option: t,
|
|
3522
3904
|
searchPhrase: n
|
|
3523
3905
|
})
|
|
3524
|
-
}),
|
|
3906
|
+
}), $n = m({
|
|
3525
3907
|
container: {
|
|
3526
3908
|
position: "relative",
|
|
3527
3909
|
display: "flex",
|
|
@@ -3546,7 +3928,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3546
3928
|
position: "absolute",
|
|
3547
3929
|
cursor: "pointer"
|
|
3548
3930
|
}
|
|
3549
|
-
}),
|
|
3931
|
+
}), er = {
|
|
3550
3932
|
onClick: null,
|
|
3551
3933
|
checkedType: "none",
|
|
3552
3934
|
checkMarkColor: n.mainBrightPink,
|
|
@@ -3555,96 +3937,96 @@ var Ft = ["onEntering"], It = [
|
|
|
3555
3937
|
size: 16,
|
|
3556
3938
|
styles: {},
|
|
3557
3939
|
tabIndex: 0
|
|
3558
|
-
},
|
|
3940
|
+
}, tr = ({ checkedType: e, size: t, fill: r = n.mainBrightPink }) => {
|
|
3559
3941
|
switch (e) {
|
|
3560
|
-
case "full": return /* @__PURE__ */ (0,
|
|
3561
|
-
fill:
|
|
3942
|
+
case "full": return /* @__PURE__ */ (0, G.jsx)(s, {
|
|
3943
|
+
fill: r,
|
|
3562
3944
|
size: t
|
|
3563
3945
|
});
|
|
3564
|
-
case "partial": return /* @__PURE__ */ (0,
|
|
3565
|
-
fill:
|
|
3946
|
+
case "partial": return /* @__PURE__ */ (0, G.jsx)(f, {
|
|
3947
|
+
fill: r,
|
|
3566
3948
|
size: t
|
|
3567
3949
|
});
|
|
3568
3950
|
default: return null;
|
|
3569
3951
|
}
|
|
3570
|
-
},
|
|
3571
|
-
let { onClick: t, checkedType: n, checkMarkColor: r, disabled:
|
|
3572
|
-
...
|
|
3952
|
+
}, nr = (e) => {
|
|
3953
|
+
let { onClick: t, checkedType: n, checkMarkColor: r, disabled: i, readOnly: a, size: o, styles: s, tabIndex: c } = {
|
|
3954
|
+
...er,
|
|
3573
3955
|
...e
|
|
3574
|
-
},
|
|
3575
|
-
t && (e.stopPropagation(), !
|
|
3576
|
-
},
|
|
3577
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
3578
|
-
},
|
|
3579
|
-
return /* @__PURE__ */ (0,
|
|
3580
|
-
className:
|
|
3581
|
-
style: { height:
|
|
3582
|
-
onClick:
|
|
3583
|
-
children: [/* @__PURE__ */ (0,
|
|
3956
|
+
}, l = n !== "none", u = (e) => {
|
|
3957
|
+
t && (e.stopPropagation(), !i && !a && t(e));
|
|
3958
|
+
}, d = (e) => {
|
|
3959
|
+
e.key === "Enter" && (e.preventDefault(), u(e));
|
|
3960
|
+
}, f = $n(), p = s?.borderWidth !== void 0 && !!s?.borderColor && !!s?.borderStyle;
|
|
3961
|
+
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3962
|
+
className: f.container,
|
|
3963
|
+
style: { height: o },
|
|
3964
|
+
onClick: u,
|
|
3965
|
+
children: [/* @__PURE__ */ (0, G.jsx)("input", {
|
|
3584
3966
|
type: "checkbox",
|
|
3585
|
-
"aria-disabled":
|
|
3586
|
-
"aria-readonly":
|
|
3587
|
-
"aria-checked":
|
|
3967
|
+
"aria-disabled": i,
|
|
3968
|
+
"aria-readonly": a,
|
|
3969
|
+
"aria-checked": l,
|
|
3588
3970
|
style: {
|
|
3589
|
-
...
|
|
3590
|
-
height:
|
|
3591
|
-
width:
|
|
3971
|
+
...s,
|
|
3972
|
+
height: o,
|
|
3973
|
+
width: o
|
|
3592
3974
|
},
|
|
3593
|
-
tabIndex:
|
|
3594
|
-
onKeyDown:
|
|
3595
|
-
className:
|
|
3596
|
-
[
|
|
3597
|
-
[
|
|
3598
|
-
[
|
|
3975
|
+
tabIndex: c,
|
|
3976
|
+
onKeyDown: d,
|
|
3977
|
+
className: _({
|
|
3978
|
+
[f.checkbox]: !0,
|
|
3979
|
+
[f.checkboxUnchecked]: !l,
|
|
3980
|
+
[f.checkboxChecked]: !p && l
|
|
3599
3981
|
})
|
|
3600
|
-
}), /* @__PURE__ */ (0,
|
|
3601
|
-
className:
|
|
3602
|
-
children: /* @__PURE__ */ (0,
|
|
3982
|
+
}), /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3983
|
+
className: f.checkmark,
|
|
3984
|
+
children: /* @__PURE__ */ (0, G.jsx)(tr, {
|
|
3603
3985
|
checkedType: n,
|
|
3604
|
-
size:
|
|
3986
|
+
size: o,
|
|
3605
3987
|
fill: r
|
|
3606
3988
|
})
|
|
3607
3989
|
})]
|
|
3608
3990
|
});
|
|
3609
|
-
},
|
|
3991
|
+
}, rr = ({ onCheck: e, checked: t, disabled: n, size: r }) => e ? /* @__PURE__ */ (0, G.jsx)(nr, {
|
|
3610
3992
|
onClick: e,
|
|
3611
3993
|
checkedType: t,
|
|
3612
3994
|
disabled: n,
|
|
3613
3995
|
size: r
|
|
3614
|
-
}) : null,
|
|
3615
|
-
let n =
|
|
3616
|
-
return /* @__PURE__ */ (0,
|
|
3996
|
+
}) : null, ir = ({ multiSelect: e = !1, ...t }) => {
|
|
3997
|
+
let n = S(), r = t.responsive ? _e(16, n.height, n.width) : 16;
|
|
3998
|
+
return /* @__PURE__ */ (0, G.jsx)(ar, {
|
|
3617
3999
|
...t,
|
|
3618
4000
|
appearance: "legacy",
|
|
3619
4001
|
pickedOptionsIds: void 0,
|
|
3620
|
-
renderOptions: (t, n) => /* @__PURE__ */ (0,
|
|
4002
|
+
renderOptions: (t, n) => /* @__PURE__ */ (0, G.jsx)(Zn, {
|
|
3621
4003
|
...t,
|
|
3622
|
-
renderOption: (i, a) => /* @__PURE__ */ (0,
|
|
4004
|
+
renderOption: (i, a) => /* @__PURE__ */ (0, G.jsx)(_r, {
|
|
3623
4005
|
...t,
|
|
3624
4006
|
option: i,
|
|
3625
4007
|
searchPhrase: a,
|
|
3626
4008
|
multiSelect: !n && e,
|
|
3627
4009
|
appearance: "legacy",
|
|
3628
|
-
renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0,
|
|
4010
|
+
renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0, G.jsx)(rr, {
|
|
3629
4011
|
onCheck: e.onCheck,
|
|
3630
4012
|
checked: t,
|
|
3631
4013
|
disabled: e.disabled ?? !1,
|
|
3632
4014
|
size: r
|
|
3633
4015
|
}) : null,
|
|
3634
|
-
renderSubmenu: (e) => /* @__PURE__ */ (0,
|
|
4016
|
+
renderSubmenu: (e) => /* @__PURE__ */ (0, G.jsx)(sr, {
|
|
3635
4017
|
...e,
|
|
3636
4018
|
appearance: "legacy"
|
|
3637
4019
|
})
|
|
3638
4020
|
})
|
|
3639
4021
|
})
|
|
3640
4022
|
});
|
|
3641
|
-
},
|
|
3642
|
-
let m = a(), h =
|
|
4023
|
+
}, ar = ({ actions: e = [], onClose: t, onCloseClick: n = t, options: r, stickyOptions: i, searchEnabled: o = !1, style: s = {}, cssVariables: c, header: l, pickedOptionsIds: u, responsive: d, appearance: f = "default", renderOptions: p }) => {
|
|
4024
|
+
let m = a(), h = jn(d, { appearance: f }), [g, _] = (0, W.useState)({}), [v, y] = (0, W.useState)({}), [b, x] = (0, W.useState)(""), S = (e) => {
|
|
3643
4025
|
x(e), y({});
|
|
3644
4026
|
}, C = {
|
|
3645
|
-
...
|
|
4027
|
+
...wn,
|
|
3646
4028
|
...c
|
|
3647
|
-
}, w =
|
|
4029
|
+
}, w = Tn(C, { appearance: f }), T = {
|
|
3648
4030
|
...C,
|
|
3649
4031
|
...w
|
|
3650
4032
|
}, E = (e) => {
|
|
@@ -3663,7 +4045,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3663
4045
|
default: e.currentTarget.querySelector("input")?.focus();
|
|
3664
4046
|
}
|
|
3665
4047
|
};
|
|
3666
|
-
return /* @__PURE__ */ (0,
|
|
4048
|
+
return /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3667
4049
|
style: {
|
|
3668
4050
|
...T,
|
|
3669
4051
|
...s
|
|
@@ -3674,7 +4056,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3674
4056
|
},
|
|
3675
4057
|
onKeyDown: D,
|
|
3676
4058
|
children: [
|
|
3677
|
-
l ? /* @__PURE__ */ (0,
|
|
4059
|
+
l ? /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
3678
4060
|
className: h.header,
|
|
3679
4061
|
children: [
|
|
3680
4062
|
" ",
|
|
@@ -3693,7 +4075,7 @@ var Ft = ["onEntering"], It = [
|
|
|
3693
4075
|
onCloseClick: n,
|
|
3694
4076
|
autoFocus: m
|
|
3695
4077
|
}, !0) : null,
|
|
3696
|
-
/* @__PURE__ */ (0,
|
|
4078
|
+
/* @__PURE__ */ (0, G.jsx)(Vn, {
|
|
3697
4079
|
searchEnabled: o,
|
|
3698
4080
|
searchPhrase: b,
|
|
3699
4081
|
onChange: S,
|
|
@@ -3716,16 +4098,16 @@ var Ft = ["onEntering"], It = [
|
|
|
3716
4098
|
onCloseClick: n,
|
|
3717
4099
|
pickedOptionsIds: u
|
|
3718
4100
|
}, !1),
|
|
3719
|
-
/* @__PURE__ */ (0,
|
|
4101
|
+
/* @__PURE__ */ (0, G.jsx)(Pn, {
|
|
3720
4102
|
actions: e,
|
|
3721
4103
|
classNames: h
|
|
3722
4104
|
})
|
|
3723
4105
|
]
|
|
3724
4106
|
});
|
|
3725
|
-
},
|
|
4107
|
+
}, or = (e) => e.appearance === "legacy" ? /* @__PURE__ */ (0, G.jsx)(ir, { ...e }) : /* @__PURE__ */ (0, G.jsx)(ar, {
|
|
3726
4108
|
...e,
|
|
3727
|
-
renderOptions: (e) => /* @__PURE__ */ (0,
|
|
3728
|
-
}),
|
|
4109
|
+
renderOptions: (e) => /* @__PURE__ */ (0, G.jsx)(Qn, { ...e })
|
|
4110
|
+
}), sr = ({ actions: e = [], anchorEl: t, anchorPosition: n, cssVariables: r, onClose: i, onCloseClick: a, options: o, searchEnabled: s = !1, style: c = {}, pickedOptionsIds: l, header: u, menuStyle: d, responsive: f, appearance: p, ...m }) => {
|
|
3729
4111
|
let h = {
|
|
3730
4112
|
header: u,
|
|
3731
4113
|
actions: e,
|
|
@@ -3737,28 +4119,28 @@ var Ft = ["onEntering"], It = [
|
|
|
3737
4119
|
cssVariables: r,
|
|
3738
4120
|
responsive: f
|
|
3739
4121
|
};
|
|
3740
|
-
return /* @__PURE__ */ (0,
|
|
4122
|
+
return /* @__PURE__ */ (0, G.jsx)(bn, {
|
|
3741
4123
|
...m,
|
|
3742
4124
|
anchorEl: t,
|
|
3743
4125
|
anchorPosition: n,
|
|
3744
|
-
|
|
4126
|
+
slotProps: { list: {
|
|
3745
4127
|
role: void 0,
|
|
3746
4128
|
tabIndex: void 0
|
|
3747
|
-
},
|
|
4129
|
+
} },
|
|
3748
4130
|
onClose: i,
|
|
3749
4131
|
open: !!t || !!n,
|
|
3750
4132
|
style: d,
|
|
3751
|
-
children: p === "legacy" ? /* @__PURE__ */ (0,
|
|
4133
|
+
children: p === "legacy" ? /* @__PURE__ */ (0, G.jsx)(or, {
|
|
3752
4134
|
...h,
|
|
3753
4135
|
options: o,
|
|
3754
4136
|
appearance: "legacy"
|
|
3755
|
-
}) : /* @__PURE__ */ (0,
|
|
4137
|
+
}) : /* @__PURE__ */ (0, G.jsx)(or, {
|
|
3756
4138
|
...h,
|
|
3757
4139
|
options: o
|
|
3758
4140
|
})
|
|
3759
4141
|
});
|
|
3760
|
-
}, $ = ({ icon: e }) => e ? /* @__PURE__ */ (0,
|
|
3761
|
-
let n =
|
|
4142
|
+
}, $ = ({ icon: e }) => e ? /* @__PURE__ */ (0, G.jsx)("div", { children: e }) : null, cr = m({ span: { fontWeight: "bold" } }), lr = (e, t) => {
|
|
4143
|
+
let n = cr();
|
|
3762
4144
|
if (!e) return [{ children: t }];
|
|
3763
4145
|
let r = e.toLocaleLowerCase(), i = t.toLocaleLowerCase(), a = [], o = 0;
|
|
3764
4146
|
for (; o < t.length;) {
|
|
@@ -3774,147 +4156,147 @@ var Ft = ["onEntering"], It = [
|
|
|
3774
4156
|
}
|
|
3775
4157
|
}
|
|
3776
4158
|
return a;
|
|
3777
|
-
},
|
|
3778
|
-
let i = r ? { color:
|
|
3779
|
-
return /* @__PURE__ */ (0,
|
|
4159
|
+
}, ur = ({ children: e, phrase: t }) => /* @__PURE__ */ (0, G.jsx)(G.Fragment, { children: lr(t, e).map((e, t) => /* @__PURE__ */ (0, G.jsx)("span", { ...e }, t)) }), dr = ({ classNames: e, label: t, searchPhrase: n, color: r }) => {
|
|
4160
|
+
let i = r ? { color: Cn(r) ?? void 0 } : {};
|
|
4161
|
+
return /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3780
4162
|
"data-ellipsis": !0,
|
|
3781
4163
|
className: e.divOptionsOptionOptionLabel,
|
|
3782
4164
|
style: i,
|
|
3783
|
-
children: typeof t == "string" ? /* @__PURE__ */ (0,
|
|
4165
|
+
children: typeof t == "string" ? /* @__PURE__ */ (0, G.jsx)(ur, {
|
|
3784
4166
|
phrase: n,
|
|
3785
4167
|
children: t
|
|
3786
4168
|
}) : t
|
|
3787
4169
|
});
|
|
3788
|
-
},
|
|
4170
|
+
}, fr = ({ tooltipTitle: e }) => e ? /* @__PURE__ */ (0, G.jsx)(le, {
|
|
3789
4171
|
title: e,
|
|
3790
|
-
children: /* @__PURE__ */ (0,
|
|
3791
|
-
}) : null,
|
|
3792
|
-
let { children:
|
|
3793
|
-
return /* @__PURE__ */ (0,
|
|
4172
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", { children: /* @__PURE__ */ (0, G.jsx)(d, {}) })
|
|
4173
|
+
}) : null, pr = ({ classNames: e, option: t, setOpenedElement: n, collapsed: r, setCollapsed: i, searchPhrase: a, checkbox: s, renderOption: l }) => {
|
|
4174
|
+
let { children: u, disabled: d = !1, label: f, tooltip: p, key: m } = t;
|
|
4175
|
+
return /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsx)(fe, {
|
|
3794
4176
|
title: f,
|
|
3795
|
-
children: /* @__PURE__ */ (0,
|
|
3796
|
-
"aria-disabled":
|
|
4177
|
+
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4178
|
+
"aria-disabled": d,
|
|
3797
4179
|
"aria-expanded": !r[m],
|
|
3798
|
-
className:
|
|
4180
|
+
className: _({
|
|
3799
4181
|
[e.divOptionsOption]: !0,
|
|
3800
4182
|
[e.divOptionsOptionCategory]: !0
|
|
3801
4183
|
}),
|
|
3802
4184
|
onClick: () => {
|
|
3803
|
-
|
|
4185
|
+
i({
|
|
3804
4186
|
...r,
|
|
3805
4187
|
[m]: !r[m]
|
|
3806
4188
|
}), n({});
|
|
3807
4189
|
},
|
|
3808
|
-
onKeyDown:
|
|
4190
|
+
onKeyDown: Z,
|
|
3809
4191
|
role: "menuitem",
|
|
3810
|
-
tabIndex:
|
|
4192
|
+
tabIndex: d ? void 0 : 0,
|
|
3811
4193
|
children: [
|
|
3812
4194
|
s,
|
|
3813
|
-
/* @__PURE__ */ (0,
|
|
4195
|
+
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
3814
4196
|
label: f,
|
|
3815
|
-
searchPhrase:
|
|
4197
|
+
searchPhrase: a,
|
|
3816
4198
|
classNames: e
|
|
3817
4199
|
}),
|
|
3818
|
-
/* @__PURE__ */ (0,
|
|
3819
|
-
/* @__PURE__ */ (0,
|
|
4200
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: p }),
|
|
4201
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: r[m] ? /* @__PURE__ */ (0, G.jsx)(c, {}) : /* @__PURE__ */ (0, G.jsx)(o, {}) })
|
|
3820
4202
|
]
|
|
3821
4203
|
})
|
|
3822
|
-
}), r[m] ? null :
|
|
3823
|
-
},
|
|
3824
|
-
className:
|
|
4204
|
+
}), r[m] ? null : u.map(l)] }, m);
|
|
4205
|
+
}, mr = ({ classNames: e, option: t }) => /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4206
|
+
className: _({
|
|
3825
4207
|
[e.divOptionsOption]: !0,
|
|
3826
4208
|
[e.divOptionsOptionDivider]: !0
|
|
3827
4209
|
}),
|
|
3828
4210
|
role: "separator"
|
|
3829
|
-
}, t.key),
|
|
3830
|
-
let { disabled:
|
|
3831
|
-
return /* @__PURE__ */ (0,
|
|
3832
|
-
title:
|
|
3833
|
-
children: /* @__PURE__ */ (0,
|
|
3834
|
-
style: { backgroundColor:
|
|
3835
|
-
"aria-disabled":
|
|
3836
|
-
className:
|
|
4211
|
+
}, t.key), hr = ({ children: e, classNames: t, option: n, onClick: r }) => {
|
|
4212
|
+
let { disabled: i = !1, label: a, key: o, color: s } = n;
|
|
4213
|
+
return /* @__PURE__ */ (0, G.jsx)(fe, {
|
|
4214
|
+
title: a,
|
|
4215
|
+
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4216
|
+
style: { backgroundColor: s || void 0 },
|
|
4217
|
+
"aria-disabled": i,
|
|
4218
|
+
className: _({
|
|
3837
4219
|
[t.divOptionsOption]: !0,
|
|
3838
4220
|
[t.divOptionsOptionOption]: !0
|
|
3839
4221
|
}),
|
|
3840
4222
|
onClick: r,
|
|
3841
|
-
onKeyDown:
|
|
4223
|
+
onKeyDown: Z,
|
|
3842
4224
|
role: "menuitem",
|
|
3843
|
-
tabIndex:
|
|
4225
|
+
tabIndex: i ? void 0 : 0,
|
|
3844
4226
|
children: e
|
|
3845
4227
|
})
|
|
3846
|
-
},
|
|
3847
|
-
},
|
|
3848
|
-
let t = e.option, n = e.classNames, { openedElement:
|
|
3849
|
-
return
|
|
3850
|
-
|
|
3851
|
-
}, /* @__PURE__ */ (0,
|
|
4228
|
+
}, o);
|
|
4229
|
+
}, gr = (e) => {
|
|
4230
|
+
let t = e.option, n = e.classNames, { openedElement: r, setOpenedElement: i, onCloseClick: a, pickedOptionsIds: o, checkbox: c, multiSelect: l = !1, appearance: u = "default", renderSubmenu: d } = e, { children: f = [], disabled: p = !1, icon: m = {}, label: h, onClick: g, tooltip: _, key: v, color: y } = t, b = o?.includes(v), x = y ? Cn(y) : C.fill, S = m.right ?? (b ? /* @__PURE__ */ (0, G.jsx)(s, { fill: x ?? void 0 }) : null), w = C.size, T = !!S, E;
|
|
4231
|
+
return f.length ? (E = (e) => {
|
|
4232
|
+
p || i({ [v]: e.currentTarget });
|
|
4233
|
+
}, /* @__PURE__ */ (0, G.jsxs)(W.Fragment, { children: [/* @__PURE__ */ (0, G.jsxs)(hr, {
|
|
3852
4234
|
...e,
|
|
3853
4235
|
onClick: E,
|
|
3854
4236
|
children: [
|
|
3855
|
-
/* @__PURE__ */ (0,
|
|
3856
|
-
/* @__PURE__ */ (0,
|
|
3857
|
-
label:
|
|
4237
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: m.left }),
|
|
4238
|
+
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4239
|
+
label: h,
|
|
3858
4240
|
classNames: n,
|
|
3859
|
-
color:
|
|
4241
|
+
color: y
|
|
3860
4242
|
}),
|
|
3861
|
-
/* @__PURE__ */ (0,
|
|
3862
|
-
/* @__PURE__ */ (0,
|
|
4243
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: _ }),
|
|
4244
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: S })
|
|
3863
4245
|
]
|
|
3864
|
-
}),
|
|
3865
|
-
anchorEl:
|
|
4246
|
+
}), d({
|
|
4247
|
+
anchorEl: r[v],
|
|
3866
4248
|
anchorOrigin: {
|
|
3867
4249
|
horizontal: "left",
|
|
3868
4250
|
vertical: "top"
|
|
3869
4251
|
},
|
|
3870
4252
|
onClose: () => {
|
|
3871
|
-
|
|
4253
|
+
i({});
|
|
3872
4254
|
},
|
|
3873
4255
|
onCloseClick: (e) => {
|
|
3874
|
-
|
|
4256
|
+
a(e), i({});
|
|
3875
4257
|
},
|
|
3876
|
-
options:
|
|
4258
|
+
options: f,
|
|
3877
4259
|
transformOrigin: {
|
|
3878
4260
|
horizontal: "right",
|
|
3879
4261
|
vertical: "top"
|
|
3880
4262
|
}
|
|
3881
|
-
})] },
|
|
3882
|
-
|
|
3883
|
-
}, /* @__PURE__ */ (0,
|
|
4263
|
+
})] }, v)) : (E = (e) => {
|
|
4264
|
+
p || (g?.(e), !l && !c && a(e));
|
|
4265
|
+
}, /* @__PURE__ */ (0, G.jsxs)(hr, {
|
|
3884
4266
|
...e,
|
|
3885
4267
|
onClick: E,
|
|
3886
4268
|
children: [
|
|
3887
|
-
t.checkboxPosition !==
|
|
3888
|
-
/* @__PURE__ */ (0,
|
|
3889
|
-
/* @__PURE__ */ (0,
|
|
3890
|
-
label:
|
|
4269
|
+
t.checkboxPosition !== ye.right && c,
|
|
4270
|
+
/* @__PURE__ */ (0, G.jsx)($, { icon: m.left }),
|
|
4271
|
+
/* @__PURE__ */ (0, G.jsx)(dr, {
|
|
4272
|
+
label: h,
|
|
3891
4273
|
classNames: n,
|
|
3892
|
-
color:
|
|
4274
|
+
color: y
|
|
3893
4275
|
}),
|
|
3894
|
-
/* @__PURE__ */ (0,
|
|
3895
|
-
T ? /* @__PURE__ */ (0,
|
|
4276
|
+
/* @__PURE__ */ (0, G.jsx)(fr, { tooltipTitle: _ }),
|
|
4277
|
+
T ? /* @__PURE__ */ (0, G.jsx)($, { icon: S }) : u === "default" ? /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3896
4278
|
style: { width: w },
|
|
3897
4279
|
"aria-hidden": !0
|
|
3898
4280
|
}) : null,
|
|
3899
|
-
t.checkboxPosition ===
|
|
4281
|
+
t.checkboxPosition === ye.right && c
|
|
3900
4282
|
]
|
|
3901
4283
|
}));
|
|
3902
|
-
},
|
|
4284
|
+
}, _r = (e) => {
|
|
3903
4285
|
let { option: t, renderCheckbox: n, renderSubmenu: r } = e;
|
|
3904
4286
|
switch (t.type) {
|
|
3905
|
-
case "category": return /* @__PURE__ */ (0,
|
|
4287
|
+
case "category": return /* @__PURE__ */ (0, G.jsx)(pr, {
|
|
3906
4288
|
...e,
|
|
3907
4289
|
option: t,
|
|
3908
|
-
checkbox: t.onCheck ? n(t,
|
|
3909
|
-
renderOption: (t) => /* @__PURE__ */ (0,
|
|
4290
|
+
checkbox: t.onCheck ? n(t, Gn(t.children)) : null,
|
|
4291
|
+
renderOption: (t) => /* @__PURE__ */ (0, W.createElement)(_r, {
|
|
3910
4292
|
...e,
|
|
3911
4293
|
key: t.key,
|
|
3912
4294
|
option: t,
|
|
3913
4295
|
multiSelect: void 0
|
|
3914
4296
|
})
|
|
3915
4297
|
});
|
|
3916
|
-
case "divider": return /* @__PURE__ */ (0,
|
|
3917
|
-
case "option": return /* @__PURE__ */ (0,
|
|
4298
|
+
case "divider": return /* @__PURE__ */ (0, G.jsx)(mr, { ...e });
|
|
4299
|
+
case "option": return /* @__PURE__ */ (0, G.jsx)(gr, {
|
|
3918
4300
|
...e,
|
|
3919
4301
|
option: t,
|
|
3920
4302
|
checkbox: t.onCheck ? n(t, t.isChecked ? "full" : "none") : null,
|
|
@@ -3922,13 +4304,13 @@ var Ft = ["onEntering"], It = [
|
|
|
3922
4304
|
});
|
|
3923
4305
|
default: return null;
|
|
3924
4306
|
}
|
|
3925
|
-
},
|
|
4307
|
+
}, vr = (e) => /* @__PURE__ */ (0, G.jsx)(_r, {
|
|
3926
4308
|
...e,
|
|
3927
|
-
renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0,
|
|
4309
|
+
renderCheckbox: (e, t) => e.type !== "divider" && e.onCheck ? /* @__PURE__ */ (0, G.jsx)(Xn, {
|
|
3928
4310
|
onChange: e.onCheck,
|
|
3929
4311
|
value: t,
|
|
3930
4312
|
disabled: e.disabled ?? !1
|
|
3931
4313
|
}) : null,
|
|
3932
|
-
renderSubmenu: (e) => /* @__PURE__ */ (0,
|
|
4314
|
+
renderSubmenu: (e) => /* @__PURE__ */ (0, G.jsx)(sr, { ...e })
|
|
3933
4315
|
});
|
|
3934
|
-
export {
|
|
4316
|
+
export { qe as A, jt as C, xt as D, Tt as E, K as F, ke as I, U as L, Be as M, Le as N, bt as O, Ne as P, Oe as R, Mt as S, Dt as T, Sn as _, or as a, bn as b, Wn as c, In as d, Pn as f, Cn as g, wn as h, sr as i, We as j, rt as k, Vn as l, Tn as m, mr as n, nr as o, jn as p, ur as r, Xn as s, vr as t, Rn as u, xn as v, Et as w, fn as x, Z as y, De as z };
|