@instructure/platform-institutional-tagging 7.0.5 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/UserTagList/UserTagList.d.ts.map +1 -1
- package/dist/components/UserTagList/index.d.ts +1 -1
- package/dist/components/UserTagList/index.d.ts.map +1 -1
- package/dist/components/UserTagList/types.d.ts +5 -1
- package/dist/components/UserTagList/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +651 -651
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1441,11 +1441,11 @@ const Bf = N.div`
|
|
|
1441
1441
|
gap: ${p.spacing.space4};
|
|
1442
1442
|
`, jf = N.span`
|
|
1443
1443
|
cursor: default;
|
|
1444
|
-
`,
|
|
1444
|
+
`, Gf = (e) => "_id" in e ? e._id : String(e.id), Ib = ({ tags: e }) => {
|
|
1445
1445
|
if (!e.length) return null;
|
|
1446
1446
|
const t = e.slice(0, ko), n = e.slice(ko);
|
|
1447
1447
|
return /* @__PURE__ */ O(Bf, { children: [
|
|
1448
|
-
t.map((r) => /* @__PURE__ */ u(Zn, { text: r.name, size: "small" }, r
|
|
1448
|
+
t.map((r) => /* @__PURE__ */ u(Zn, { text: r.name, size: "small" }, Gf(r))),
|
|
1449
1449
|
n.length > 0 && /* @__PURE__ */ u(Ut, { renderTip: n.map((r) => r.name).join(", "), children: /* @__PURE__ */ u(
|
|
1450
1450
|
jf,
|
|
1451
1451
|
{
|
|
@@ -1461,7 +1461,7 @@ const Bf = N.div`
|
|
|
1461
1461
|
}), Me = () => v.useContext(Wc), zi = ["inst-tagging-sr-polite-0", "inst-tagging-sr-polite-1"], Uc = [
|
|
1462
1462
|
"inst-tagging-sr-assertive-0",
|
|
1463
1463
|
"inst-tagging-sr-assertive-1"
|
|
1464
|
-
],
|
|
1464
|
+
], Hf = N.div`
|
|
1465
1465
|
position: fixed;
|
|
1466
1466
|
top: 0;
|
|
1467
1467
|
left: 0;
|
|
@@ -1477,7 +1477,7 @@ const Bf = N.div`
|
|
|
1477
1477
|
clip: rect(0, 0, 0, 0);
|
|
1478
1478
|
white-space: nowrap;
|
|
1479
1479
|
border: 0;
|
|
1480
|
-
`,
|
|
1480
|
+
`, Zf = N.div`
|
|
1481
1481
|
width: 50%;
|
|
1482
1482
|
margin: 0 auto;
|
|
1483
1483
|
overflow-wrap: break-word;
|
|
@@ -1490,28 +1490,28 @@ const Bf = N.div`
|
|
|
1490
1490
|
function ln() {
|
|
1491
1491
|
return document.getElementById(zi[0]) ?? document.body;
|
|
1492
1492
|
}
|
|
1493
|
-
const
|
|
1493
|
+
const Yf = () => Ja(
|
|
1494
1494
|
/* @__PURE__ */ O(Hn, { children: [
|
|
1495
1495
|
zi.map((e) => /* @__PURE__ */ u(yn, { id: e, role: "alert", "aria-atomic": !0, "aria-live": "polite" }, e)),
|
|
1496
1496
|
Uc.map((e) => /* @__PURE__ */ u(yn, { id: e, role: "alert", "aria-atomic": !0, "aria-live": "assertive" }, e))
|
|
1497
1497
|
] }),
|
|
1498
1498
|
document.body
|
|
1499
|
-
), Uo = { polite: 0, assertive: 0 },
|
|
1499
|
+
), Uo = { polite: 0, assertive: 0 }, Kf = (e, t) => {
|
|
1500
1500
|
const n = t ? Uc : zi, r = t ? "assertive" : "polite", s = Uo[r], i = 1 - s;
|
|
1501
1501
|
Uo[r] = i;
|
|
1502
1502
|
const o = document.getElementById(n[s]), a = document.getElementById(n[i]);
|
|
1503
1503
|
a && (a.textContent = ""), o && (o.textContent = e);
|
|
1504
|
-
},
|
|
1504
|
+
}, Qf = ({ children: e }) => {
|
|
1505
1505
|
const [t, n] = v.useState([]), r = v.useRef(0), { translations: s } = W(), i = v.useCallback((a) => {
|
|
1506
1506
|
const c = ++r.current, l = a.assertive || a.variant === "error" || a.variant === "warning";
|
|
1507
|
-
|
|
1507
|
+
Kf(a.message, l), n((f) => [...f, { ...a, id: c }]);
|
|
1508
1508
|
}, []), o = v.useCallback((a) => {
|
|
1509
1509
|
n((c) => c.filter((l) => l.id !== a));
|
|
1510
1510
|
}, []);
|
|
1511
1511
|
return /* @__PURE__ */ O(Wc.Provider, { value: { showAlert: i }, children: [
|
|
1512
|
-
/* @__PURE__ */ u(
|
|
1512
|
+
/* @__PURE__ */ u(Yf, {}),
|
|
1513
1513
|
e,
|
|
1514
|
-
t.length > 0 && /* @__PURE__ */ u(
|
|
1514
|
+
t.length > 0 && /* @__PURE__ */ u(Hf, { children: t.map((a) => /* @__PURE__ */ u(Zf, { children: /* @__PURE__ */ u(
|
|
1515
1515
|
$t,
|
|
1516
1516
|
{
|
|
1517
1517
|
variant: a.variant,
|
|
@@ -1561,7 +1561,7 @@ function cs(e) {
|
|
|
1561
1561
|
return t.current == null ? void 0 : t.current(...r);
|
|
1562
1562
|
}, []);
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function Xf() {
|
|
1565
1565
|
const e = ie(null), t = Ie((r, s) => {
|
|
1566
1566
|
e.current = setInterval(r, s);
|
|
1567
1567
|
}, []), n = Ie(() => {
|
|
@@ -1629,7 +1629,7 @@ function Vc(e) {
|
|
|
1629
1629
|
};
|
|
1630
1630
|
}
|
|
1631
1631
|
const un = /* @__PURE__ */ Vc(1), jr = /* @__PURE__ */ Vc(-1);
|
|
1632
|
-
function
|
|
1632
|
+
function Jf(e) {
|
|
1633
1633
|
return "clientX" in e && "clientY" in e;
|
|
1634
1634
|
}
|
|
1635
1635
|
function ji(e) {
|
|
@@ -1640,7 +1640,7 @@ function ji(e) {
|
|
|
1640
1640
|
} = Ae(e.target);
|
|
1641
1641
|
return t && e instanceof t;
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function eg(e) {
|
|
1644
1644
|
if (!e)
|
|
1645
1645
|
return !1;
|
|
1646
1646
|
const {
|
|
@@ -1649,7 +1649,7 @@ function Jf(e) {
|
|
|
1649
1649
|
return t && e instanceof t;
|
|
1650
1650
|
}
|
|
1651
1651
|
function Gr(e) {
|
|
1652
|
-
if (
|
|
1652
|
+
if (eg(e)) {
|
|
1653
1653
|
if (e.touches && e.touches.length) {
|
|
1654
1654
|
const {
|
|
1655
1655
|
clientX: t,
|
|
@@ -1670,7 +1670,7 @@ function Gr(e) {
|
|
|
1670
1670
|
};
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
|
-
return
|
|
1673
|
+
return Jf(e) ? {
|
|
1674
1674
|
x: e.clientX,
|
|
1675
1675
|
y: e.clientY
|
|
1676
1676
|
} : null;
|
|
@@ -1715,23 +1715,23 @@ const Xn = /* @__PURE__ */ Object.freeze({
|
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
1717
|
}), zo = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
1718
|
-
function
|
|
1718
|
+
function tg(e) {
|
|
1719
1719
|
return e.matches(zo) ? e : e.querySelector(zo);
|
|
1720
1720
|
}
|
|
1721
|
-
const
|
|
1721
|
+
const ng = {
|
|
1722
1722
|
display: "none"
|
|
1723
1723
|
};
|
|
1724
|
-
function
|
|
1724
|
+
function rg(e) {
|
|
1725
1725
|
let {
|
|
1726
1726
|
id: t,
|
|
1727
1727
|
value: n
|
|
1728
1728
|
} = e;
|
|
1729
1729
|
return v.createElement("div", {
|
|
1730
1730
|
id: t,
|
|
1731
|
-
style:
|
|
1731
|
+
style: ng
|
|
1732
1732
|
}, n);
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function sg(e) {
|
|
1735
1735
|
let {
|
|
1736
1736
|
id: t,
|
|
1737
1737
|
announcement: n,
|
|
@@ -1759,7 +1759,7 @@ function rg(e) {
|
|
|
1759
1759
|
"aria-atomic": !0
|
|
1760
1760
|
}, n);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function ig() {
|
|
1763
1763
|
const [e, t] = Oe("");
|
|
1764
1764
|
return {
|
|
1765
1765
|
announce: Ie((r) => {
|
|
@@ -1769,7 +1769,7 @@ function sg() {
|
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
1771
|
const Bc = /* @__PURE__ */ nr(null);
|
|
1772
|
-
function
|
|
1772
|
+
function og(e) {
|
|
1773
1773
|
const t = Bt(Bc);
|
|
1774
1774
|
de(() => {
|
|
1775
1775
|
if (!t)
|
|
@@ -1777,7 +1777,7 @@ function ig(e) {
|
|
|
1777
1777
|
return t(e);
|
|
1778
1778
|
}, [e, t]);
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function ag() {
|
|
1781
1781
|
const [e] = Oe(() => /* @__PURE__ */ new Set()), t = Ie((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
1782
1782
|
return [Ie((r) => {
|
|
1783
1783
|
let {
|
|
@@ -1790,13 +1790,13 @@ function og() {
|
|
|
1790
1790
|
});
|
|
1791
1791
|
}, [e]), t];
|
|
1792
1792
|
}
|
|
1793
|
-
const
|
|
1793
|
+
const cg = {
|
|
1794
1794
|
draggable: `
|
|
1795
1795
|
To pick up a draggable item, press the space bar.
|
|
1796
1796
|
While dragging, use the arrow keys to move the item.
|
|
1797
1797
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
1798
1798
|
`
|
|
1799
|
-
},
|
|
1799
|
+
}, lg = {
|
|
1800
1800
|
onDragStart(e) {
|
|
1801
1801
|
let {
|
|
1802
1802
|
active: t
|
|
@@ -1824,20 +1824,20 @@ const ag = {
|
|
|
1824
1824
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
1825
1825
|
}
|
|
1826
1826
|
};
|
|
1827
|
-
function
|
|
1827
|
+
function ug(e) {
|
|
1828
1828
|
let {
|
|
1829
|
-
announcements: t =
|
|
1829
|
+
announcements: t = lg,
|
|
1830
1830
|
container: n,
|
|
1831
1831
|
hiddenTextDescribedById: r,
|
|
1832
|
-
screenReaderInstructions: s =
|
|
1832
|
+
screenReaderInstructions: s = cg
|
|
1833
1833
|
} = e;
|
|
1834
1834
|
const {
|
|
1835
1835
|
announce: i,
|
|
1836
1836
|
announcement: o
|
|
1837
|
-
} =
|
|
1837
|
+
} = ig(), a = ls("DndLiveRegion"), [c, l] = Oe(!1);
|
|
1838
1838
|
if (de(() => {
|
|
1839
1839
|
l(!0);
|
|
1840
|
-
}, []),
|
|
1840
|
+
}, []), og(ue(() => ({
|
|
1841
1841
|
onDragStart(d) {
|
|
1842
1842
|
let {
|
|
1843
1843
|
active: h
|
|
@@ -1888,10 +1888,10 @@ function lg(e) {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
}), [i, t])), !c)
|
|
1890
1890
|
return null;
|
|
1891
|
-
const f = v.createElement(v.Fragment, null, v.createElement(
|
|
1891
|
+
const f = v.createElement(v.Fragment, null, v.createElement(rg, {
|
|
1892
1892
|
id: r,
|
|
1893
1893
|
value: s.draggable
|
|
1894
|
-
}), v.createElement(
|
|
1894
|
+
}), v.createElement(sg, {
|
|
1895
1895
|
id: a,
|
|
1896
1896
|
announcement: o
|
|
1897
1897
|
}));
|
|
@@ -1913,7 +1913,7 @@ function Vo(e, t) {
|
|
|
1913
1913
|
[e, t]
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function dg() {
|
|
1917
1917
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1918
1918
|
t[n] = arguments[n];
|
|
1919
1919
|
return ue(
|
|
@@ -1929,7 +1929,7 @@ const nt = /* @__PURE__ */ Object.freeze({
|
|
|
1929
1929
|
function jc(e, t) {
|
|
1930
1930
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function fg(e, t) {
|
|
1933
1933
|
const n = Gr(e);
|
|
1934
1934
|
if (!n)
|
|
1935
1935
|
return "0 0";
|
|
@@ -1951,7 +1951,7 @@ function Gc(e, t) {
|
|
|
1951
1951
|
} = t;
|
|
1952
1952
|
return n - r;
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function gg(e, t) {
|
|
1955
1955
|
let {
|
|
1956
1956
|
data: {
|
|
1957
1957
|
value: n
|
|
@@ -1963,7 +1963,7 @@ function fg(e, t) {
|
|
|
1963
1963
|
} = t;
|
|
1964
1964
|
return r - n;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function hg(e) {
|
|
1967
1967
|
let {
|
|
1968
1968
|
left: t,
|
|
1969
1969
|
top: n,
|
|
@@ -1984,7 +1984,7 @@ function gg(e) {
|
|
|
1984
1984
|
y: n + r
|
|
1985
1985
|
}];
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function mg(e, t) {
|
|
1988
1988
|
if (!e || e.length === 0)
|
|
1989
1989
|
return null;
|
|
1990
1990
|
const [n] = e;
|
|
@@ -1996,7 +1996,7 @@ function Bo(e, t, n) {
|
|
|
1996
1996
|
y: n + e.height * 0.5
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
|
-
const
|
|
1999
|
+
const pg = (e) => {
|
|
2000
2000
|
let {
|
|
2001
2001
|
collisionRect: t,
|
|
2002
2002
|
droppableRects: n,
|
|
@@ -2020,7 +2020,7 @@ const mg = (e) => {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
return i.sort(Gc);
|
|
2022
2022
|
};
|
|
2023
|
-
function
|
|
2023
|
+
function yg(e, t) {
|
|
2024
2024
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), s = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), o = s - r, a = i - n;
|
|
2025
2025
|
if (r < s && n < i) {
|
|
2026
2026
|
const c = t.width * t.height, l = e.width * e.height, f = o * a, d = f / (c + l - f);
|
|
@@ -2028,7 +2028,7 @@ function pg(e, t) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
return 0;
|
|
2030
2030
|
}
|
|
2031
|
-
const
|
|
2031
|
+
const vg = (e) => {
|
|
2032
2032
|
let {
|
|
2033
2033
|
collisionRect: t,
|
|
2034
2034
|
droppableRects: n,
|
|
@@ -2040,7 +2040,7 @@ const yg = (e) => {
|
|
|
2040
2040
|
id: o
|
|
2041
2041
|
} = i, a = n.get(o);
|
|
2042
2042
|
if (a) {
|
|
2043
|
-
const c =
|
|
2043
|
+
const c = yg(a, t);
|
|
2044
2044
|
c > 0 && s.push({
|
|
2045
2045
|
id: o,
|
|
2046
2046
|
data: {
|
|
@@ -2050,9 +2050,9 @@ const yg = (e) => {
|
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
|
-
return s.sort(
|
|
2053
|
+
return s.sort(gg);
|
|
2054
2054
|
};
|
|
2055
|
-
function
|
|
2055
|
+
function wg(e, t) {
|
|
2056
2056
|
const {
|
|
2057
2057
|
top: n,
|
|
2058
2058
|
left: r,
|
|
@@ -2061,7 +2061,7 @@ function vg(e, t) {
|
|
|
2061
2061
|
} = t;
|
|
2062
2062
|
return n <= e.y && e.y <= s && r <= e.x && e.x <= i;
|
|
2063
2063
|
}
|
|
2064
|
-
const
|
|
2064
|
+
const bg = (e) => {
|
|
2065
2065
|
let {
|
|
2066
2066
|
droppableContainers: t,
|
|
2067
2067
|
droppableRects: n,
|
|
@@ -2074,8 +2074,8 @@ const wg = (e) => {
|
|
|
2074
2074
|
const {
|
|
2075
2075
|
id: o
|
|
2076
2076
|
} = i, a = n.get(o);
|
|
2077
|
-
if (a &&
|
|
2078
|
-
const l =
|
|
2077
|
+
if (a && wg(r, a)) {
|
|
2078
|
+
const l = hg(a).reduce((d, h) => d + jc(r, h), 0), f = Number((l / 4).toFixed(4));
|
|
2079
2079
|
s.push({
|
|
2080
2080
|
id: o,
|
|
2081
2081
|
data: {
|
|
@@ -2087,7 +2087,7 @@ const wg = (e) => {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
return s.sort(Gc);
|
|
2089
2089
|
};
|
|
2090
|
-
function
|
|
2090
|
+
function Tg(e, t, n) {
|
|
2091
2091
|
return {
|
|
2092
2092
|
...e,
|
|
2093
2093
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -2100,7 +2100,7 @@ function Hc(e, t) {
|
|
|
2100
2100
|
y: e.top - t.top
|
|
2101
2101
|
} : nt;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Cg(e) {
|
|
2104
2104
|
return function(n) {
|
|
2105
2105
|
for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
2106
2106
|
s[i - 1] = arguments[i];
|
|
@@ -2115,7 +2115,7 @@ function Tg(e) {
|
|
|
2115
2115
|
});
|
|
2116
2116
|
};
|
|
2117
2117
|
}
|
|
2118
|
-
const
|
|
2118
|
+
const Sg = /* @__PURE__ */ Cg(1);
|
|
2119
2119
|
function Zc(e) {
|
|
2120
2120
|
if (e.startsWith("matrix3d(")) {
|
|
2121
2121
|
const t = e.slice(9, -1).split(/, /);
|
|
@@ -2136,7 +2136,7 @@ function Zc(e) {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
return null;
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function xg(e, t, n) {
|
|
2140
2140
|
const r = Zc(t);
|
|
2141
2141
|
if (!r)
|
|
2142
2142
|
return e;
|
|
@@ -2155,18 +2155,18 @@ function Sg(e, t, n) {
|
|
|
2155
2155
|
left: c
|
|
2156
2156
|
};
|
|
2157
2157
|
}
|
|
2158
|
-
const
|
|
2158
|
+
const kg = {
|
|
2159
2159
|
ignoreTransform: !1
|
|
2160
2160
|
};
|
|
2161
2161
|
function ir(e, t) {
|
|
2162
|
-
t === void 0 && (t =
|
|
2162
|
+
t === void 0 && (t = kg);
|
|
2163
2163
|
let n = e.getBoundingClientRect();
|
|
2164
2164
|
if (t.ignoreTransform) {
|
|
2165
2165
|
const {
|
|
2166
2166
|
transform: l,
|
|
2167
2167
|
transformOrigin: f
|
|
2168
2168
|
} = Ae(e).getComputedStyle(e);
|
|
2169
|
-
l && (n =
|
|
2169
|
+
l && (n = xg(n, l, f));
|
|
2170
2170
|
}
|
|
2171
2171
|
const {
|
|
2172
2172
|
top: r,
|
|
@@ -2190,7 +2190,7 @@ function jo(e) {
|
|
|
2190
2190
|
ignoreTransform: !0
|
|
2191
2191
|
});
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Ig(e) {
|
|
2194
2194
|
const t = e.innerWidth, n = e.innerHeight;
|
|
2195
2195
|
return {
|
|
2196
2196
|
top: 0,
|
|
@@ -2201,10 +2201,10 @@ function kg(e) {
|
|
|
2201
2201
|
height: n
|
|
2202
2202
|
};
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function Ng(e, t) {
|
|
2205
2205
|
return t === void 0 && (t = Ae(e).getComputedStyle(e)), t.position === "fixed";
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function Eg(e, t) {
|
|
2208
2208
|
t === void 0 && (t = Ae(e).getComputedStyle(e));
|
|
2209
2209
|
const n = /(auto|scroll|overlay)/;
|
|
2210
2210
|
return ["overflow", "overflowX", "overflowY"].some((s) => {
|
|
@@ -2222,7 +2222,7 @@ function Gi(e, t) {
|
|
|
2222
2222
|
if (!rr(s) || zc(s) || n.includes(s))
|
|
2223
2223
|
return n;
|
|
2224
2224
|
const i = Ae(e).getComputedStyle(s);
|
|
2225
|
-
return s !== e &&
|
|
2225
|
+
return s !== e && Eg(s, i) && n.push(s), Ng(s, i) ? n : r(s.parentNode);
|
|
2226
2226
|
}
|
|
2227
2227
|
return e ? r(e) : n;
|
|
2228
2228
|
}
|
|
@@ -2275,18 +2275,18 @@ function Jc(e) {
|
|
|
2275
2275
|
minScroll: t
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
|
-
const
|
|
2278
|
+
const Ag = {
|
|
2279
2279
|
x: 0.2,
|
|
2280
2280
|
y: 0.2
|
|
2281
2281
|
};
|
|
2282
|
-
function
|
|
2282
|
+
function Og(e, t, n, r, s) {
|
|
2283
2283
|
let {
|
|
2284
2284
|
top: i,
|
|
2285
2285
|
left: o,
|
|
2286
2286
|
right: a,
|
|
2287
2287
|
bottom: c
|
|
2288
2288
|
} = n;
|
|
2289
|
-
r === void 0 && (r = 10), s === void 0 && (s =
|
|
2289
|
+
r === void 0 && (r = 10), s === void 0 && (s = Ag);
|
|
2290
2290
|
const {
|
|
2291
2291
|
isTop: l,
|
|
2292
2292
|
isBottom: f,
|
|
@@ -2307,7 +2307,7 @@ function Ag(e, t, n, r, s) {
|
|
|
2307
2307
|
speed: m
|
|
2308
2308
|
};
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function Dg(e) {
|
|
2311
2311
|
if (e === document.scrollingElement) {
|
|
2312
2312
|
const {
|
|
2313
2313
|
innerWidth: i,
|
|
@@ -2340,10 +2340,10 @@ function Og(e) {
|
|
|
2340
2340
|
function el(e) {
|
|
2341
2341
|
return e.reduce((t, n) => un(t, fi(n)), nt);
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function $g(e) {
|
|
2344
2344
|
return e.reduce((t, n) => t + Kc(n), 0);
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2346
|
+
function Rg(e) {
|
|
2347
2347
|
return e.reduce((t, n) => t + Qc(n), 0);
|
|
2348
2348
|
}
|
|
2349
2349
|
function tl(e, t) {
|
|
@@ -2360,7 +2360,7 @@ function tl(e, t) {
|
|
|
2360
2360
|
inline: "center"
|
|
2361
2361
|
});
|
|
2362
2362
|
}
|
|
2363
|
-
const
|
|
2363
|
+
const Mg = [["x", ["left", "right"], $g], ["y", ["top", "bottom"], Rg]];
|
|
2364
2364
|
class Hi {
|
|
2365
2365
|
constructor(t, n) {
|
|
2366
2366
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
@@ -2368,7 +2368,7 @@ class Hi {
|
|
|
2368
2368
|
this.rect = {
|
|
2369
2369
|
...t
|
|
2370
2370
|
}, this.width = t.width, this.height = t.height;
|
|
2371
|
-
for (const [i, o, a] of
|
|
2371
|
+
for (const [i, o, a] of Mg)
|
|
2372
2372
|
for (const c of o)
|
|
2373
2373
|
Object.defineProperty(this, c, {
|
|
2374
2374
|
get: () => {
|
|
@@ -2396,7 +2396,7 @@ class Vn {
|
|
|
2396
2396
|
(s = this.target) == null || s.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function Lg(e) {
|
|
2400
2400
|
const {
|
|
2401
2401
|
EventTarget: t
|
|
2402
2402
|
} = Ae(e);
|
|
@@ -2413,7 +2413,7 @@ var Ge;
|
|
|
2413
2413
|
function Go(e) {
|
|
2414
2414
|
e.preventDefault();
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Pg(e) {
|
|
2417
2417
|
e.stopPropagation();
|
|
2418
2418
|
}
|
|
2419
2419
|
var Z;
|
|
@@ -2424,7 +2424,7 @@ const nl = {
|
|
|
2424
2424
|
start: [Z.Space, Z.Enter],
|
|
2425
2425
|
cancel: [Z.Esc],
|
|
2426
2426
|
end: [Z.Space, Z.Enter, Z.Tab]
|
|
2427
|
-
},
|
|
2427
|
+
}, Fg = (e, t) => {
|
|
2428
2428
|
let {
|
|
2429
2429
|
currentCoordinates: n
|
|
2430
2430
|
} = t;
|
|
@@ -2479,7 +2479,7 @@ class Zi {
|
|
|
2479
2479
|
options: s
|
|
2480
2480
|
} = this.props, {
|
|
2481
2481
|
keyboardCodes: i = nl,
|
|
2482
|
-
coordinateGetter: o =
|
|
2482
|
+
coordinateGetter: o = Fg,
|
|
2483
2483
|
scrollBehavior: a = "smooth"
|
|
2484
2484
|
} = s, {
|
|
2485
2485
|
code: c
|
|
@@ -2519,7 +2519,7 @@ class Zi {
|
|
|
2519
2519
|
isBottom: E,
|
|
2520
2520
|
maxScroll: k,
|
|
2521
2521
|
minScroll: A
|
|
2522
|
-
} = Jc(y), x =
|
|
2522
|
+
} = Jc(y), x = Dg(y), C = {
|
|
2523
2523
|
x: Math.min(b === Z.Right ? x.right - x.width / 2 : x.right, Math.max(b === Z.Right ? x.left : x.left + x.width / 2, d.x)),
|
|
2524
2524
|
y: Math.min(b === Z.Down ? x.bottom - x.height / 2 : x.bottom, Math.max(b === Z.Down ? x.top : x.top + x.height / 2, d.y))
|
|
2525
2525
|
}, I = b === Z.Right && !w || b === Z.Left && !S, D = b === Z.Down && !E || b === Z.Up && !T;
|
|
@@ -2609,7 +2609,7 @@ function Zo(e) {
|
|
|
2609
2609
|
class Yi {
|
|
2610
2610
|
constructor(t, n, r) {
|
|
2611
2611
|
var s;
|
|
2612
|
-
r === void 0 && (r =
|
|
2612
|
+
r === void 0 && (r = Lg(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
2613
2613
|
const {
|
|
2614
2614
|
event: i
|
|
2615
2615
|
} = t, {
|
|
@@ -2663,7 +2663,7 @@ class Yi {
|
|
|
2663
2663
|
} = this, {
|
|
2664
2664
|
onStart: n
|
|
2665
2665
|
} = this.props;
|
|
2666
|
-
t && (this.activated = !0, this.documentListeners.add(Ge.Click,
|
|
2666
|
+
t && (this.activated = !0, this.documentListeners.add(Ge.Click, Pg, {
|
|
2667
2667
|
capture: !0
|
|
2668
2668
|
}), this.removeTextSelection(), this.documentListeners.add(Ge.SelectionChange, this.removeTextSelection), n(t));
|
|
2669
2669
|
}
|
|
@@ -2718,7 +2718,7 @@ class Yi {
|
|
|
2718
2718
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
2719
2719
|
}
|
|
2720
2720
|
}
|
|
2721
|
-
const
|
|
2721
|
+
const _g = {
|
|
2722
2722
|
cancel: {
|
|
2723
2723
|
name: "pointercancel"
|
|
2724
2724
|
},
|
|
@@ -2734,7 +2734,7 @@ class Ki extends Yi {
|
|
|
2734
2734
|
const {
|
|
2735
2735
|
event: n
|
|
2736
2736
|
} = t, r = Cn(n.target);
|
|
2737
|
-
super(t,
|
|
2737
|
+
super(t, _g, r);
|
|
2738
2738
|
}
|
|
2739
2739
|
}
|
|
2740
2740
|
Ki.activators = [{
|
|
@@ -2750,7 +2750,7 @@ Ki.activators = [{
|
|
|
2750
2750
|
}), !0);
|
|
2751
2751
|
}
|
|
2752
2752
|
}];
|
|
2753
|
-
const
|
|
2753
|
+
const qg = {
|
|
2754
2754
|
move: {
|
|
2755
2755
|
name: "mousemove"
|
|
2756
2756
|
},
|
|
@@ -2762,12 +2762,12 @@ var gi;
|
|
|
2762
2762
|
(function(e) {
|
|
2763
2763
|
e[e.RightClick = 2] = "RightClick";
|
|
2764
2764
|
})(gi || (gi = {}));
|
|
2765
|
-
class
|
|
2765
|
+
class Wg extends Yi {
|
|
2766
2766
|
constructor(t) {
|
|
2767
|
-
super(t,
|
|
2767
|
+
super(t, qg, Cn(t.event.target));
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
2770
|
-
|
|
2770
|
+
Wg.activators = [{
|
|
2771
2771
|
eventName: "onMouseDown",
|
|
2772
2772
|
handler: (e, t) => {
|
|
2773
2773
|
let {
|
|
@@ -2791,7 +2791,7 @@ const $s = {
|
|
|
2791
2791
|
name: "touchend"
|
|
2792
2792
|
}
|
|
2793
2793
|
};
|
|
2794
|
-
class
|
|
2794
|
+
class Ug extends Yi {
|
|
2795
2795
|
constructor(t) {
|
|
2796
2796
|
super(t, $s);
|
|
2797
2797
|
}
|
|
@@ -2806,7 +2806,7 @@ class Wg extends Yi {
|
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
|
-
|
|
2809
|
+
Ug.activators = [{
|
|
2810
2810
|
eventName: "onTouchStart",
|
|
2811
2811
|
handler: (e, t) => {
|
|
2812
2812
|
let {
|
|
@@ -2830,7 +2830,7 @@ var Zr;
|
|
|
2830
2830
|
(function(e) {
|
|
2831
2831
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
2832
2832
|
})(Zr || (Zr = {}));
|
|
2833
|
-
function
|
|
2833
|
+
function zg(e) {
|
|
2834
2834
|
let {
|
|
2835
2835
|
acceleration: t,
|
|
2836
2836
|
activator: n = Bn.Pointer,
|
|
@@ -2845,10 +2845,10 @@ function Ug(e) {
|
|
|
2845
2845
|
delta: d,
|
|
2846
2846
|
threshold: h
|
|
2847
2847
|
} = e;
|
|
2848
|
-
const g =
|
|
2848
|
+
const g = Bg({
|
|
2849
2849
|
delta: d,
|
|
2850
2850
|
disabled: !i
|
|
2851
|
-
}), [m, y] =
|
|
2851
|
+
}), [m, y] = Xf(), b = ie({
|
|
2852
2852
|
x: 0,
|
|
2853
2853
|
y: 0
|
|
2854
2854
|
}), T = ie({
|
|
@@ -2888,7 +2888,7 @@ function Ug(e) {
|
|
|
2888
2888
|
const {
|
|
2889
2889
|
direction: I,
|
|
2890
2890
|
speed: D
|
|
2891
|
-
} =
|
|
2891
|
+
} = Og(A, C, w, t, h);
|
|
2892
2892
|
for (const M of ["x", "y"])
|
|
2893
2893
|
g[M][I[M]] || (D[M] = 0, I[M] = 0);
|
|
2894
2894
|
if (D.x > 0 || D.y > 0) {
|
|
@@ -2925,7 +2925,7 @@ function Ug(e) {
|
|
|
2925
2925
|
]
|
|
2926
2926
|
);
|
|
2927
2927
|
}
|
|
2928
|
-
const
|
|
2928
|
+
const Vg = {
|
|
2929
2929
|
x: {
|
|
2930
2930
|
[be.Backward]: !1,
|
|
2931
2931
|
[be.Forward]: !1
|
|
@@ -2935,7 +2935,7 @@ const zg = {
|
|
|
2935
2935
|
[be.Forward]: !1
|
|
2936
2936
|
}
|
|
2937
2937
|
};
|
|
2938
|
-
function
|
|
2938
|
+
function Bg(e) {
|
|
2939
2939
|
let {
|
|
2940
2940
|
delta: t,
|
|
2941
2941
|
disabled: n
|
|
@@ -2943,7 +2943,7 @@ function Vg(e) {
|
|
|
2943
2943
|
const r = Br(t);
|
|
2944
2944
|
return sr((s) => {
|
|
2945
2945
|
if (n || !r || !s)
|
|
2946
|
-
return
|
|
2946
|
+
return Vg;
|
|
2947
2947
|
const i = {
|
|
2948
2948
|
x: Math.sign(t.x - r.x),
|
|
2949
2949
|
y: Math.sign(t.y - r.y)
|
|
@@ -2960,14 +2960,14 @@ function Vg(e) {
|
|
|
2960
2960
|
};
|
|
2961
2961
|
}, [n, t, r]);
|
|
2962
2962
|
}
|
|
2963
|
-
function
|
|
2963
|
+
function jg(e, t) {
|
|
2964
2964
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
2965
2965
|
return sr((s) => {
|
|
2966
2966
|
var i;
|
|
2967
2967
|
return t == null ? null : (i = r ?? s) != null ? i : null;
|
|
2968
2968
|
}, [r, t]);
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function Gg(e, t) {
|
|
2971
2971
|
return ue(() => e.reduce((n, r) => {
|
|
2972
2972
|
const {
|
|
2973
2973
|
sensor: s
|
|
@@ -2987,7 +2987,7 @@ var hi;
|
|
|
2987
2987
|
e.Optimized = "optimized";
|
|
2988
2988
|
})(hi || (hi = {}));
|
|
2989
2989
|
const Yo = /* @__PURE__ */ new Map();
|
|
2990
|
-
function
|
|
2990
|
+
function Hg(e, t) {
|
|
2991
2991
|
let {
|
|
2992
2992
|
dragging: n,
|
|
2993
2993
|
dependencies: r,
|
|
@@ -3059,10 +3059,10 @@ function Gg(e, t) {
|
|
|
3059
3059
|
function Qi(e, t) {
|
|
3060
3060
|
return sr((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
3061
3061
|
}
|
|
3062
|
-
function
|
|
3062
|
+
function Zg(e, t) {
|
|
3063
3063
|
return Qi(e, t);
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function Yg(e) {
|
|
3066
3066
|
let {
|
|
3067
3067
|
callback: t,
|
|
3068
3068
|
disabled: n
|
|
@@ -3096,11 +3096,11 @@ function us(e) {
|
|
|
3096
3096
|
);
|
|
3097
3097
|
return de(() => () => s == null ? void 0 : s.disconnect(), [s]), s;
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3099
|
+
function Kg(e) {
|
|
3100
3100
|
return new Hi(ir(e), e);
|
|
3101
3101
|
}
|
|
3102
3102
|
function Ko(e, t, n) {
|
|
3103
|
-
t === void 0 && (t =
|
|
3103
|
+
t === void 0 && (t = Kg);
|
|
3104
3104
|
const [r, s] = Oe(null);
|
|
3105
3105
|
function i() {
|
|
3106
3106
|
s((c) => {
|
|
@@ -3114,7 +3114,7 @@ function Ko(e, t, n) {
|
|
|
3114
3114
|
return JSON.stringify(c) === JSON.stringify(f) ? c : f;
|
|
3115
3115
|
});
|
|
3116
3116
|
}
|
|
3117
|
-
const o =
|
|
3117
|
+
const o = Yg({
|
|
3118
3118
|
callback(c) {
|
|
3119
3119
|
if (e)
|
|
3120
3120
|
for (const l of c) {
|
|
@@ -3138,18 +3138,18 @@ function Ko(e, t, n) {
|
|
|
3138
3138
|
})) : (a == null || a.disconnect(), o == null || o.disconnect());
|
|
3139
3139
|
}, [e]), r;
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function Qg(e) {
|
|
3142
3142
|
const t = Qi(e);
|
|
3143
3143
|
return Hc(e, t);
|
|
3144
3144
|
}
|
|
3145
3145
|
const Qo = [];
|
|
3146
|
-
function
|
|
3146
|
+
function Xg(e) {
|
|
3147
3147
|
const t = ie(e), n = sr((r) => e ? r && r !== Qo && e && t.current && e.parentNode === t.current.parentNode ? r : Gi(e) : Qo, [e]);
|
|
3148
3148
|
return de(() => {
|
|
3149
3149
|
t.current = e;
|
|
3150
3150
|
}, [e]), n;
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function Jg(e) {
|
|
3153
3153
|
const [t, n] = Oe(null), r = ie(e), s = Ie((i) => {
|
|
3154
3154
|
const o = Os(i.target);
|
|
3155
3155
|
o && n((a) => a ? (a.set(o, fi(o)), new Map(a)) : null);
|
|
@@ -3191,7 +3191,7 @@ function Xo(e, t) {
|
|
|
3191
3191
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
3192
3192
|
}, [e]), n.current ? jr(e, n.current) : nt;
|
|
3193
3193
|
}
|
|
3194
|
-
function
|
|
3194
|
+
function eh(e) {
|
|
3195
3195
|
de(
|
|
3196
3196
|
() => {
|
|
3197
3197
|
if (!as)
|
|
@@ -3217,7 +3217,7 @@ function Jg(e) {
|
|
|
3217
3217
|
})
|
|
3218
3218
|
);
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function th(e, t) {
|
|
3221
3221
|
return ue(() => e.reduce((n, r) => {
|
|
3222
3222
|
let {
|
|
3223
3223
|
eventName: s,
|
|
@@ -3229,10 +3229,10 @@ function eh(e, t) {
|
|
|
3229
3229
|
}, {}), [e, t]);
|
|
3230
3230
|
}
|
|
3231
3231
|
function rl(e) {
|
|
3232
|
-
return ue(() => e ?
|
|
3232
|
+
return ue(() => e ? Ig(e) : null, [e]);
|
|
3233
3233
|
}
|
|
3234
3234
|
const Jo = [];
|
|
3235
|
-
function
|
|
3235
|
+
function nh(e, t) {
|
|
3236
3236
|
t === void 0 && (t = ir);
|
|
3237
3237
|
const [n] = e, r = rl(n ? Ae(n) : null), [s, i] = Oe(Jo);
|
|
3238
3238
|
function o() {
|
|
@@ -3253,7 +3253,7 @@ function sl(e) {
|
|
|
3253
3253
|
const t = e.children[0];
|
|
3254
3254
|
return rr(t) ? t : e;
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function rh(e) {
|
|
3257
3257
|
let {
|
|
3258
3258
|
measure: t
|
|
3259
3259
|
} = e;
|
|
@@ -3284,13 +3284,13 @@ function nh(e) {
|
|
|
3284
3284
|
setRef: c
|
|
3285
3285
|
}), [n, a, c]);
|
|
3286
3286
|
}
|
|
3287
|
-
const
|
|
3287
|
+
const sh = [{
|
|
3288
3288
|
sensor: Ki,
|
|
3289
3289
|
options: {}
|
|
3290
3290
|
}, {
|
|
3291
3291
|
sensor: Zi,
|
|
3292
3292
|
options: {}
|
|
3293
|
-
}],
|
|
3293
|
+
}], ih = {
|
|
3294
3294
|
current: {}
|
|
3295
3295
|
}, Lr = {
|
|
3296
3296
|
draggable: {
|
|
@@ -3326,7 +3326,7 @@ class jn extends Map {
|
|
|
3326
3326
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
3327
3327
|
}
|
|
3328
3328
|
}
|
|
3329
|
-
const
|
|
3329
|
+
const oh = {
|
|
3330
3330
|
activatorEvent: null,
|
|
3331
3331
|
active: null,
|
|
3332
3332
|
activeNode: null,
|
|
@@ -3362,8 +3362,8 @@ const ih = {
|
|
|
3362
3362
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
3363
3363
|
over: null,
|
|
3364
3364
|
measureDroppableContainers: Hr
|
|
3365
|
-
}, or = /* @__PURE__ */ nr(il), ol = /* @__PURE__ */ nr(
|
|
3366
|
-
function
|
|
3365
|
+
}, or = /* @__PURE__ */ nr(il), ol = /* @__PURE__ */ nr(oh);
|
|
3366
|
+
function ah() {
|
|
3367
3367
|
return {
|
|
3368
3368
|
draggable: {
|
|
3369
3369
|
active: null,
|
|
@@ -3382,7 +3382,7 @@ function oh() {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
};
|
|
3384
3384
|
}
|
|
3385
|
-
function
|
|
3385
|
+
function ch(e, t) {
|
|
3386
3386
|
switch (t.type) {
|
|
3387
3387
|
case we.DragStart:
|
|
3388
3388
|
return {
|
|
@@ -3475,7 +3475,7 @@ function ah(e, t) {
|
|
|
3475
3475
|
return e;
|
|
3476
3476
|
}
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3478
|
+
function lh(e) {
|
|
3479
3479
|
let {
|
|
3480
3480
|
disabled: t
|
|
3481
3481
|
} = e;
|
|
@@ -3501,7 +3501,7 @@ function ch(e) {
|
|
|
3501
3501
|
for (const f of [c.current, l.current]) {
|
|
3502
3502
|
if (!f)
|
|
3503
3503
|
continue;
|
|
3504
|
-
const d =
|
|
3504
|
+
const d = tg(f);
|
|
3505
3505
|
if (d) {
|
|
3506
3506
|
d.focus();
|
|
3507
3507
|
break;
|
|
@@ -3521,7 +3521,7 @@ function al(e, t) {
|
|
|
3521
3521
|
...r
|
|
3522
3522
|
}), n) : n;
|
|
3523
3523
|
}
|
|
3524
|
-
function
|
|
3524
|
+
function uh(e) {
|
|
3525
3525
|
return ue(
|
|
3526
3526
|
() => ({
|
|
3527
3527
|
draggable: {
|
|
@@ -3541,7 +3541,7 @@ function lh(e) {
|
|
|
3541
3541
|
[e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
|
|
3542
3542
|
);
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function dh(e) {
|
|
3545
3545
|
let {
|
|
3546
3546
|
activeNode: t,
|
|
3547
3547
|
measure: n,
|
|
@@ -3584,20 +3584,20 @@ var Nt;
|
|
|
3584
3584
|
(function(e) {
|
|
3585
3585
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
3586
3586
|
})(Nt || (Nt = {}));
|
|
3587
|
-
const
|
|
3587
|
+
const fh = /* @__PURE__ */ sd(function(t) {
|
|
3588
3588
|
var n, r, s, i;
|
|
3589
3589
|
let {
|
|
3590
3590
|
id: o,
|
|
3591
3591
|
accessibility: a,
|
|
3592
3592
|
autoScroll: c = !0,
|
|
3593
3593
|
children: l,
|
|
3594
|
-
sensors: f =
|
|
3595
|
-
collisionDetection: d =
|
|
3594
|
+
sensors: f = sh,
|
|
3595
|
+
collisionDetection: d = vg,
|
|
3596
3596
|
measuring: h,
|
|
3597
3597
|
modifiers: g,
|
|
3598
3598
|
...m
|
|
3599
3599
|
} = t;
|
|
3600
|
-
const y = id(
|
|
3600
|
+
const y = id(ch, void 0, ah), [b, T] = y, [w, S] = ag(), [E, k] = Oe(Nt.Uninitialized), A = E === Nt.Initialized, {
|
|
3601
3601
|
draggable: {
|
|
3602
3602
|
active: x,
|
|
3603
3603
|
nodes: C,
|
|
@@ -3614,19 +3614,19 @@ const dh = /* @__PURE__ */ sd(function(t) {
|
|
|
3614
3614
|
return x != null ? {
|
|
3615
3615
|
id: x,
|
|
3616
3616
|
// It's possible for the active node to unmount while dragging
|
|
3617
|
-
data: (Se = M == null ? void 0 : M.data) != null ? Se :
|
|
3617
|
+
data: (Se = M == null ? void 0 : M.data) != null ? Se : ih,
|
|
3618
3618
|
rect: F
|
|
3619
3619
|
} : null;
|
|
3620
|
-
}, [x, M]), U = ie(null), [L, Q] = Oe(null), [P, fe] = Oe(null), ne = Qn(m, Object.values(m)), ye = ls("DndDescribedBy", o), Ke = ue(() => D.getEnabled(), [D]), re =
|
|
3620
|
+
}, [x, M]), U = ie(null), [L, Q] = Oe(null), [P, fe] = Oe(null), ne = Qn(m, Object.values(m)), ye = ls("DndDescribedBy", o), Ke = ue(() => D.getEnabled(), [D]), re = uh(h), {
|
|
3621
3621
|
droppableRects: se,
|
|
3622
3622
|
measureDroppableContainers: X,
|
|
3623
3623
|
measuringScheduled: ge
|
|
3624
|
-
} =
|
|
3624
|
+
} = Hg(Ke, {
|
|
3625
3625
|
dragging: A,
|
|
3626
3626
|
dependencies: [I.x, I.y],
|
|
3627
3627
|
config: re.droppable
|
|
3628
|
-
}), he =
|
|
3629
|
-
|
|
3628
|
+
}), he = jg(C, x), Pe = ue(() => P ? Gr(P) : null, [P]), ut = td(), dt = Zg(he, re.draggable.measure);
|
|
3629
|
+
dh({
|
|
3630
3630
|
activeNode: x != null ? C.get(x) : null,
|
|
3631
3631
|
config: ut.layoutShiftCompensation,
|
|
3632
3632
|
initialRect: dt,
|
|
@@ -3646,9 +3646,9 @@ const dh = /* @__PURE__ */ sd(function(t) {
|
|
|
3646
3646
|
over: null,
|
|
3647
3647
|
scrollableAncestors: [],
|
|
3648
3648
|
scrollAdjustedTranslate: null
|
|
3649
|
-
}), ee = D.getNodeFor((n = J.current.over) == null ? void 0 : n.id), st =
|
|
3649
|
+
}), ee = D.getNodeFor((n = J.current.over) == null ? void 0 : n.id), st = rh({
|
|
3650
3650
|
measure: re.dragOverlay.measure
|
|
3651
|
-
}), mr = (r = st.nodeRef.current) != null ? r : he, Qt = A ? (s = st.rect) != null ? s : ae : null, po = !!(st.nodeRef.current && st.rect), yo =
|
|
3651
|
+
}), mr = (r = st.nodeRef.current) != null ? r : he, Qt = A ? (s = st.rect) != null ? s : ae : null, po = !!(st.nodeRef.current && st.rect), yo = Qg(po ? null : ae), ws = rl(mr ? Ae(mr) : null), bt = Xg(A ? ee ?? he : null), pr = nh(bt), yr = al(g, {
|
|
3652
3652
|
transform: {
|
|
3653
3653
|
x: I.x - yo.x,
|
|
3654
3654
|
y: I.y - yo.y,
|
|
@@ -3665,13 +3665,13 @@ const dh = /* @__PURE__ */ sd(function(t) {
|
|
|
3665
3665
|
scrollableAncestors: bt,
|
|
3666
3666
|
scrollableAncestorRects: pr,
|
|
3667
3667
|
windowRect: ws
|
|
3668
|
-
}), vo = Pe ? un(Pe, I) : null, wo =
|
|
3668
|
+
}), vo = Pe ? un(Pe, I) : null, wo = Jg(bt), Zu = Xo(wo), Yu = Xo(wo, [ae]), Xt = un(yr, Zu), Jt = Qt ? Sg(Qt, yr) : null, En = R && Jt ? d({
|
|
3669
3669
|
active: R,
|
|
3670
3670
|
collisionRect: Jt,
|
|
3671
3671
|
droppableRects: se,
|
|
3672
3672
|
droppableContainers: Ke,
|
|
3673
3673
|
pointerCoordinates: vo
|
|
3674
|
-
}) : null, bo =
|
|
3674
|
+
}) : null, bo = mg(En, "id"), [Tt, To] = Oe(null), Ku = po ? yr : un(yr, Yu), Qu = Tg(Ku, (i = Tt == null ? void 0 : Tt.rect) != null ? i : null, ae), bs = ie(null), Co = Ie(
|
|
3675
3675
|
(Se, Fe) => {
|
|
3676
3676
|
let {
|
|
3677
3677
|
sensor: _e,
|
|
@@ -3811,8 +3811,8 @@ const dh = /* @__PURE__ */ sd(function(t) {
|
|
|
3811
3811
|
Se(_e, Fe.options, it) === !0 && (Be.dndKit = {
|
|
3812
3812
|
capturedBy: Fe.sensor
|
|
3813
3813
|
}, U.current = Ct, Co(_e, Fe));
|
|
3814
|
-
}, [C, Co]), So =
|
|
3815
|
-
|
|
3814
|
+
}, [C, Co]), So = Gg(f, Xu);
|
|
3815
|
+
eh(f), yt(() => {
|
|
3816
3816
|
ae && E === Nt.Initializing && k(Nt.Initialized);
|
|
3817
3817
|
}, [ae, E]), de(
|
|
3818
3818
|
() => {
|
|
@@ -3901,7 +3901,7 @@ const dh = /* @__PURE__ */ sd(function(t) {
|
|
|
3901
3901
|
initial: Qt,
|
|
3902
3902
|
translated: Jt
|
|
3903
3903
|
};
|
|
3904
|
-
}, [R, he, En, Jt, C, mr, Qt, se, D, Tt, bt, Xt]),
|
|
3904
|
+
}, [R, he, En, Jt, C, mr, Qt, se, D, Tt, bt, Xt]), zg({
|
|
3905
3905
|
...ut,
|
|
3906
3906
|
delta: I,
|
|
3907
3907
|
draggingRect: Jt,
|
|
@@ -3948,9 +3948,9 @@ const dh = /* @__PURE__ */ sd(function(t) {
|
|
|
3948
3948
|
value: Ju
|
|
3949
3949
|
}, v.createElement(ds.Provider, {
|
|
3950
3950
|
value: Qu
|
|
3951
|
-
}, l)), v.createElement(
|
|
3951
|
+
}, l)), v.createElement(lh, {
|
|
3952
3952
|
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
3953
|
-
})), v.createElement(
|
|
3953
|
+
})), v.createElement(ug, {
|
|
3954
3954
|
...a,
|
|
3955
3955
|
hiddenTextDescribedById: ye
|
|
3956
3956
|
}));
|
|
@@ -3963,15 +3963,15 @@ const dh = /* @__PURE__ */ sd(function(t) {
|
|
|
3963
3963
|
enabled: _e
|
|
3964
3964
|
};
|
|
3965
3965
|
}
|
|
3966
|
-
}),
|
|
3967
|
-
function
|
|
3966
|
+
}), gh = /* @__PURE__ */ nr(null), ea = "button", hh = "Draggable";
|
|
3967
|
+
function mh(e) {
|
|
3968
3968
|
let {
|
|
3969
3969
|
id: t,
|
|
3970
3970
|
data: n,
|
|
3971
3971
|
disabled: r = !1,
|
|
3972
3972
|
attributes: s
|
|
3973
3973
|
} = e;
|
|
3974
|
-
const i = ls(
|
|
3974
|
+
const i = ls(hh), {
|
|
3975
3975
|
activators: o,
|
|
3976
3976
|
activatorEvent: a,
|
|
3977
3977
|
active: c,
|
|
@@ -3983,7 +3983,7 @@ function hh(e) {
|
|
|
3983
3983
|
role: g = ea,
|
|
3984
3984
|
roleDescription: m = "draggable",
|
|
3985
3985
|
tabIndex: y = 0
|
|
3986
|
-
} = s ?? {}, b = (c == null ? void 0 : c.id) === t, T = Bt(b ? ds :
|
|
3986
|
+
} = s ?? {}, b = (c == null ? void 0 : c.id) === t, T = Bt(b ? ds : gh), [w, S] = Vr(), [E, k] = Vr(), A = th(o, t), x = Qn(n);
|
|
3987
3987
|
yt(
|
|
3988
3988
|
() => (d.set(t, {
|
|
3989
3989
|
id: t,
|
|
@@ -4020,20 +4020,20 @@ function hh(e) {
|
|
|
4020
4020
|
transform: T
|
|
4021
4021
|
};
|
|
4022
4022
|
}
|
|
4023
|
-
function
|
|
4023
|
+
function ph() {
|
|
4024
4024
|
return Bt(ol);
|
|
4025
4025
|
}
|
|
4026
|
-
const
|
|
4026
|
+
const yh = "Droppable", vh = {
|
|
4027
4027
|
timeout: 25
|
|
4028
4028
|
};
|
|
4029
|
-
function
|
|
4029
|
+
function wh(e) {
|
|
4030
4030
|
let {
|
|
4031
4031
|
data: t,
|
|
4032
4032
|
disabled: n = !1,
|
|
4033
4033
|
id: r,
|
|
4034
4034
|
resizeObserverConfig: s
|
|
4035
4035
|
} = e;
|
|
4036
|
-
const i = ls(
|
|
4036
|
+
const i = ls(yh), {
|
|
4037
4037
|
active: o,
|
|
4038
4038
|
dispatch: a,
|
|
4039
4039
|
over: c,
|
|
@@ -4045,7 +4045,7 @@ function vh(e) {
|
|
|
4045
4045
|
updateMeasurementsFor: y,
|
|
4046
4046
|
timeout: b
|
|
4047
4047
|
} = {
|
|
4048
|
-
...
|
|
4048
|
+
...vh,
|
|
4049
4049
|
...s
|
|
4050
4050
|
}, T = Qn(y ?? r), w = Ie(
|
|
4051
4051
|
() => {
|
|
@@ -4101,7 +4101,7 @@ function vh(e) {
|
|
|
4101
4101
|
setNodeRef: A
|
|
4102
4102
|
};
|
|
4103
4103
|
}
|
|
4104
|
-
function
|
|
4104
|
+
function bh(e) {
|
|
4105
4105
|
let {
|
|
4106
4106
|
animation: t,
|
|
4107
4107
|
children: n
|
|
@@ -4122,26 +4122,26 @@ function wh(e) {
|
|
|
4122
4122
|
ref: o
|
|
4123
4123
|
}) : null);
|
|
4124
4124
|
}
|
|
4125
|
-
const
|
|
4125
|
+
const Th = {
|
|
4126
4126
|
x: 0,
|
|
4127
4127
|
y: 0,
|
|
4128
4128
|
scaleX: 1,
|
|
4129
4129
|
scaleY: 1
|
|
4130
4130
|
};
|
|
4131
|
-
function
|
|
4131
|
+
function Ch(e) {
|
|
4132
4132
|
let {
|
|
4133
4133
|
children: t
|
|
4134
4134
|
} = e;
|
|
4135
4135
|
return v.createElement(or.Provider, {
|
|
4136
4136
|
value: il
|
|
4137
4137
|
}, v.createElement(ds.Provider, {
|
|
4138
|
-
value:
|
|
4138
|
+
value: Th
|
|
4139
4139
|
}, t));
|
|
4140
4140
|
}
|
|
4141
|
-
const
|
|
4141
|
+
const Sh = {
|
|
4142
4142
|
position: "fixed",
|
|
4143
4143
|
touchAction: "none"
|
|
4144
|
-
},
|
|
4144
|
+
}, xh = (e) => ji(e) ? "transform 250ms ease" : void 0, kh = /* @__PURE__ */ od((e, t) => {
|
|
4145
4145
|
let {
|
|
4146
4146
|
as: n,
|
|
4147
4147
|
activatorEvent: r,
|
|
@@ -4151,7 +4151,7 @@ const Ch = {
|
|
|
4151
4151
|
rect: a,
|
|
4152
4152
|
style: c,
|
|
4153
4153
|
transform: l,
|
|
4154
|
-
transition: f =
|
|
4154
|
+
transition: f = xh
|
|
4155
4155
|
} = e;
|
|
4156
4156
|
if (!a)
|
|
4157
4157
|
return null;
|
|
@@ -4160,13 +4160,13 @@ const Ch = {
|
|
|
4160
4160
|
scaleX: 1,
|
|
4161
4161
|
scaleY: 1
|
|
4162
4162
|
}, h = {
|
|
4163
|
-
...
|
|
4163
|
+
...Sh,
|
|
4164
4164
|
width: a.width,
|
|
4165
4165
|
height: a.height,
|
|
4166
4166
|
top: a.top,
|
|
4167
4167
|
left: a.left,
|
|
4168
4168
|
transform: Xn.Transform.toString(d),
|
|
4169
|
-
transformOrigin: s && r ?
|
|
4169
|
+
transformOrigin: s && r ? fg(r, a) : void 0,
|
|
4170
4170
|
transition: typeof f == "function" ? f(r) : f,
|
|
4171
4171
|
...c
|
|
4172
4172
|
};
|
|
@@ -4175,7 +4175,7 @@ const Ch = {
|
|
|
4175
4175
|
style: h,
|
|
4176
4176
|
ref: t
|
|
4177
4177
|
}, i);
|
|
4178
|
-
}),
|
|
4178
|
+
}), Ih = (e) => (t) => {
|
|
4179
4179
|
let {
|
|
4180
4180
|
active: n,
|
|
4181
4181
|
dragOverlay: r
|
|
@@ -4195,7 +4195,7 @@ const Ch = {
|
|
|
4195
4195
|
n.node.style.setProperty(c, l);
|
|
4196
4196
|
o != null && o.active && n.node.classList.remove(o.active);
|
|
4197
4197
|
};
|
|
4198
|
-
},
|
|
4198
|
+
}, Nh = (e) => {
|
|
4199
4199
|
let {
|
|
4200
4200
|
transform: {
|
|
4201
4201
|
initial: t,
|
|
@@ -4207,11 +4207,11 @@ const Ch = {
|
|
|
4207
4207
|
}, {
|
|
4208
4208
|
transform: Xn.Transform.toString(n)
|
|
4209
4209
|
}];
|
|
4210
|
-
},
|
|
4210
|
+
}, Eh = {
|
|
4211
4211
|
duration: 250,
|
|
4212
4212
|
easing: "ease",
|
|
4213
|
-
keyframes:
|
|
4214
|
-
sideEffects: /* @__PURE__ */
|
|
4213
|
+
keyframes: Nh,
|
|
4214
|
+
sideEffects: /* @__PURE__ */ Ih({
|
|
4215
4215
|
styles: {
|
|
4216
4216
|
active: {
|
|
4217
4217
|
opacity: "0"
|
|
@@ -4219,7 +4219,7 @@ const Ch = {
|
|
|
4219
4219
|
}
|
|
4220
4220
|
})
|
|
4221
4221
|
};
|
|
4222
|
-
function
|
|
4222
|
+
function Ah(e) {
|
|
4223
4223
|
let {
|
|
4224
4224
|
config: t,
|
|
4225
4225
|
draggableNodes: n,
|
|
@@ -4243,7 +4243,7 @@ function Eh(e) {
|
|
|
4243
4243
|
} = Ae(o).getComputedStyle(o), d = Zc(f);
|
|
4244
4244
|
if (!d)
|
|
4245
4245
|
return;
|
|
4246
|
-
const h = typeof t == "function" ? t :
|
|
4246
|
+
const h = typeof t == "function" ? t : Oh(t);
|
|
4247
4247
|
return tl(c, s.draggable.measure), h({
|
|
4248
4248
|
active: {
|
|
4249
4249
|
id: i,
|
|
@@ -4262,14 +4262,14 @@ function Eh(e) {
|
|
|
4262
4262
|
});
|
|
4263
4263
|
});
|
|
4264
4264
|
}
|
|
4265
|
-
function
|
|
4265
|
+
function Oh(e) {
|
|
4266
4266
|
const {
|
|
4267
4267
|
duration: t,
|
|
4268
4268
|
easing: n,
|
|
4269
4269
|
sideEffects: r,
|
|
4270
4270
|
keyframes: s
|
|
4271
4271
|
} = {
|
|
4272
|
-
...
|
|
4272
|
+
...Eh,
|
|
4273
4273
|
...e
|
|
4274
4274
|
};
|
|
4275
4275
|
return (i) => {
|
|
@@ -4319,13 +4319,13 @@ function Ah(e) {
|
|
|
4319
4319
|
};
|
|
4320
4320
|
}
|
|
4321
4321
|
let ta = 0;
|
|
4322
|
-
function
|
|
4322
|
+
function Dh(e) {
|
|
4323
4323
|
return ue(() => {
|
|
4324
4324
|
if (e != null)
|
|
4325
4325
|
return ta++, ta;
|
|
4326
4326
|
}, [e]);
|
|
4327
4327
|
}
|
|
4328
|
-
const
|
|
4328
|
+
const $h = /* @__PURE__ */ v.memo((e) => {
|
|
4329
4329
|
let {
|
|
4330
4330
|
adjustScale: t = !1,
|
|
4331
4331
|
children: n,
|
|
@@ -4350,7 +4350,7 @@ const Dh = /* @__PURE__ */ v.memo((e) => {
|
|
|
4350
4350
|
scrollableAncestors: S,
|
|
4351
4351
|
scrollableAncestorRects: E,
|
|
4352
4352
|
windowRect: k
|
|
4353
|
-
} =
|
|
4353
|
+
} = ph(), A = Bt(ds), x = Dh(d == null ? void 0 : d.id), C = al(o, {
|
|
4354
4354
|
activatorEvent: f,
|
|
4355
4355
|
active: d,
|
|
4356
4356
|
activeNodeRect: h,
|
|
@@ -4362,15 +4362,15 @@ const Dh = /* @__PURE__ */ v.memo((e) => {
|
|
|
4362
4362
|
scrollableAncestorRects: E,
|
|
4363
4363
|
transform: A,
|
|
4364
4364
|
windowRect: k
|
|
4365
|
-
}), I = Qi(h), D =
|
|
4365
|
+
}), I = Qi(h), D = Ah({
|
|
4366
4366
|
config: r,
|
|
4367
4367
|
draggableNodes: m,
|
|
4368
4368
|
droppableContainers: y,
|
|
4369
4369
|
measuringConfiguration: w
|
|
4370
4370
|
}), M = I ? b.setRef : void 0;
|
|
4371
|
-
return v.createElement(
|
|
4371
|
+
return v.createElement(Ch, null, v.createElement(bh, {
|
|
4372
4372
|
animation: D
|
|
4373
|
-
}, d && x ? v.createElement(
|
|
4373
|
+
}, d && x ? v.createElement(kh, {
|
|
4374
4374
|
key: x,
|
|
4375
4375
|
id: d.id,
|
|
4376
4376
|
ref: M,
|
|
@@ -4386,14 +4386,14 @@ const Dh = /* @__PURE__ */ v.memo((e) => {
|
|
|
4386
4386
|
},
|
|
4387
4387
|
transform: C
|
|
4388
4388
|
}, n) : null));
|
|
4389
|
-
}),
|
|
4389
|
+
}), Rh = {
|
|
4390
4390
|
categoryAutocomplete: !1,
|
|
4391
4391
|
archiveEnabled: !0
|
|
4392
|
-
},
|
|
4392
|
+
}, Mh = v.createContext(Rh), Lt = () => v.useContext(Mh), cl = v.createContext({
|
|
4393
4393
|
canView: !1,
|
|
4394
4394
|
canCreate: !1,
|
|
4395
4395
|
canEdit: !1
|
|
4396
|
-
}),
|
|
4396
|
+
}), Lh = ({ children: e }) => {
|
|
4397
4397
|
const { permissions: t } = sc(), n = t.canView ?? !1, r = (t.canCreate ?? !1) && n, s = (t.canEdit ?? !1) && n, i = v.useMemo(
|
|
4398
4398
|
() => ({ canView: n, canCreate: r, canEdit: s }),
|
|
4399
4399
|
[n, r, s]
|
|
@@ -4419,7 +4419,7 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4419
4419
|
flex: 1;
|
|
4420
4420
|
flex-direction: column;
|
|
4421
4421
|
}
|
|
4422
|
-
`,
|
|
4422
|
+
`, Ph = N.div`
|
|
4423
4423
|
padding: ${p.spacing.small};
|
|
4424
4424
|
border: ${p.borders.widthSmall} solid ${p.colors.contrasts.grey1214};
|
|
4425
4425
|
border-radius: ${p.borders.radiusLarge};
|
|
@@ -4443,7 +4443,7 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4443
4443
|
column-gap: ${p.spacing.small};
|
|
4444
4444
|
row-gap: ${p.spacing.xxSmall};
|
|
4445
4445
|
}
|
|
4446
|
-
`,
|
|
4446
|
+
`, Fh = N.div`
|
|
4447
4447
|
display: flex;
|
|
4448
4448
|
flex-direction: column;
|
|
4449
4449
|
overflow: hidden;
|
|
@@ -4452,25 +4452,25 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4452
4452
|
text-align: start;
|
|
4453
4453
|
|
|
4454
4454
|
${ar} { grid-area: text; }
|
|
4455
|
-
`,
|
|
4455
|
+
`, _h = N.div`
|
|
4456
4456
|
overflow-wrap: normal;
|
|
4457
4457
|
font-weight: ${p.typography.fontWeightBold};
|
|
4458
|
-
`,
|
|
4458
|
+
`, qh = N.div`
|
|
4459
4459
|
flex: none;
|
|
4460
4460
|
cursor: ${({ $isDraggable: e, $isDragging: t }) => e ? t ? "grabbing" : "grab" : "default"};
|
|
4461
4461
|
|
|
4462
4462
|
${ar} { grid-area: drag; align-self: center; }
|
|
4463
|
-
`,
|
|
4463
|
+
`, Wh = N.div`
|
|
4464
4464
|
flex: 1;
|
|
4465
4465
|
|
|
4466
4466
|
${ar} { grid-area: pill; align-self: start; }
|
|
4467
|
-
`,
|
|
4467
|
+
`, Uh = N.div`
|
|
4468
4468
|
flex: none;
|
|
4469
4469
|
|
|
4470
4470
|
${ar} { grid-area: menu; align-self:
|
|
4471
4471
|
${(e) => e.$isArchived ? "center" : "end"};
|
|
4472
4472
|
}
|
|
4473
|
-
`,
|
|
4473
|
+
`, zh = v.forwardRef(
|
|
4474
4474
|
({ elementRef: e, ...t }, n) => /* @__PURE__ */ u(
|
|
4475
4475
|
We,
|
|
4476
4476
|
{
|
|
@@ -4501,9 +4501,9 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4501
4501
|
);
|
|
4502
4502
|
}, Xi = ({ tag: e, isArchived: t, pill: n, actions: r, dragHandleProps: s }) => {
|
|
4503
4503
|
const { resolveToken: i } = W();
|
|
4504
|
-
return /* @__PURE__ */ O(
|
|
4504
|
+
return /* @__PURE__ */ O(Ph, { $isDragging: s == null ? void 0 : s.isDragging, children: [
|
|
4505
4505
|
/* @__PURE__ */ u(
|
|
4506
|
-
|
|
4506
|
+
qh,
|
|
4507
4507
|
{
|
|
4508
4508
|
ref: s == null ? void 0 : s.setActivatorNodeRef,
|
|
4509
4509
|
...s == null ? void 0 : s.listeners,
|
|
@@ -4514,14 +4514,14 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4514
4514
|
children: /* @__PURE__ */ u(fd, {})
|
|
4515
4515
|
}
|
|
4516
4516
|
),
|
|
4517
|
-
/* @__PURE__ */ O(
|
|
4518
|
-
/* @__PURE__ */ u(Wr, { children: /* @__PURE__ */ u(
|
|
4517
|
+
/* @__PURE__ */ O(Fh, { children: [
|
|
4518
|
+
/* @__PURE__ */ u(Wr, { children: /* @__PURE__ */ u(_h, { children: /* @__PURE__ */ u(Yn, { level: "h4", variant: "titleCardMini", children: e.name }) }) }),
|
|
4519
4519
|
/* @__PURE__ */ u(Wr, { children: /* @__PURE__ */ u(K, { size: "small", children: e.description }) })
|
|
4520
4520
|
] }),
|
|
4521
|
-
/* @__PURE__ */ u(
|
|
4522
|
-
/* @__PURE__ */ u(
|
|
4521
|
+
/* @__PURE__ */ u(Wh, { children: n }),
|
|
4522
|
+
/* @__PURE__ */ u(Uh, { $isArchived: t, children: r })
|
|
4523
4523
|
] });
|
|
4524
|
-
},
|
|
4524
|
+
}, Vh = ({
|
|
4525
4525
|
tag: e,
|
|
4526
4526
|
editHandler: t,
|
|
4527
4527
|
viewTagAssociationsHandler: n,
|
|
@@ -4530,7 +4530,7 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4530
4530
|
moveToHandler: i,
|
|
4531
4531
|
moreButtonRef: o
|
|
4532
4532
|
}) => {
|
|
4533
|
-
const { translations: a, resolveToken: c } = W(), { canCreate: l, canEdit: f } = Yt(), { archiveEnabled: d } = Lt(), h = e.associationsCount === 0, { setActivatorNodeRef: g, setNodeRef: m, listeners: y, attributes: b, isDragging: T } =
|
|
4533
|
+
const { translations: a, resolveToken: c } = W(), { canCreate: l, canEdit: f } = Yt(), { archiveEnabled: d } = Lt(), h = e.associationsCount === 0, { setActivatorNodeRef: g, setNodeRef: m, listeners: y, attributes: b, isDragging: T } = mh({
|
|
4534
4534
|
id: e._id,
|
|
4535
4535
|
data: { tag: e }
|
|
4536
4536
|
}), w = () => {
|
|
@@ -4582,7 +4582,7 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4582
4582
|
hn,
|
|
4583
4583
|
{
|
|
4584
4584
|
trigger: /* @__PURE__ */ u(
|
|
4585
|
-
|
|
4585
|
+
zh,
|
|
4586
4586
|
{
|
|
4587
4587
|
elementRef: (S) => o == null ? void 0 : o(S),
|
|
4588
4588
|
screenReaderLabel: c({
|
|
@@ -4599,7 +4599,7 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4599
4599
|
)
|
|
4600
4600
|
}
|
|
4601
4601
|
) });
|
|
4602
|
-
},
|
|
4602
|
+
}, Bh = ({
|
|
4603
4603
|
tag: e,
|
|
4604
4604
|
restoreHandler: t
|
|
4605
4605
|
}) => {
|
|
@@ -4621,10 +4621,10 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4621
4621
|
) : null
|
|
4622
4622
|
}
|
|
4623
4623
|
) });
|
|
4624
|
-
},
|
|
4624
|
+
}, jh = ({ tag: e, ...t }) => e.workflowState === $e.Deleted ? /* @__PURE__ */ u(Bh, { tag: e, ...t }) : /* @__PURE__ */ u(Vh, { tag: e, ...t }), Gh = ({ tag: e }) => /* @__PURE__ */ u(Xi, { tag: e, isArchived: !1, pill: /* @__PURE__ */ u(ul, { tag: e }), actions: null }), Hh = (e, t) => {
|
|
4625
4625
|
const n = parseInt(e.slice(1, 3), 16), r = parseInt(e.slice(3, 5), 16), s = parseInt(e.slice(5, 7), 16);
|
|
4626
4626
|
return `rgb(${n} ${r} ${s} / ${t * 100}%)`;
|
|
4627
|
-
},
|
|
4627
|
+
}, Zh = N.div`
|
|
4628
4628
|
cursor: grabbing;
|
|
4629
4629
|
opacity: 0.92;
|
|
4630
4630
|
pointer-events: none;
|
|
@@ -4637,7 +4637,7 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4637
4637
|
display: flex;
|
|
4638
4638
|
flex-direction: column;
|
|
4639
4639
|
gap: ${p.spacing.mediumSmall};
|
|
4640
|
-
`,
|
|
4640
|
+
`, Yh = N.li`
|
|
4641
4641
|
list-style: none;
|
|
4642
4642
|
margin: 0;
|
|
4643
4643
|
padding: 0;
|
|
@@ -4651,24 +4651,24 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4651
4651
|
width: 100%;
|
|
4652
4652
|
overflow: hidden;
|
|
4653
4653
|
transition: border-color 0.15s ease;
|
|
4654
|
-
`,
|
|
4654
|
+
`, Kh = N.div`
|
|
4655
4655
|
position: absolute;
|
|
4656
4656
|
inset: 0;
|
|
4657
|
-
background: ${
|
|
4657
|
+
background: ${Hh(p.colors.contrasts.blue4570, 0.12)};
|
|
4658
4658
|
border-radius: ${p.borders.radiusLarge};
|
|
4659
4659
|
display: flex;
|
|
4660
4660
|
align-items: center;
|
|
4661
4661
|
justify-content: center;
|
|
4662
4662
|
pointer-events: none;
|
|
4663
4663
|
z-index: 1;
|
|
4664
|
-
`,
|
|
4664
|
+
`, Qh = N.span`
|
|
4665
4665
|
background: ${p.colors.contrasts.blue4570};
|
|
4666
4666
|
color: ${p.colors.contrasts.white1010};
|
|
4667
4667
|
padding: ${p.spacing.xSmall} ${p.spacing.small};
|
|
4668
4668
|
border-radius: ${p.borders.radiusMedium};
|
|
4669
4669
|
font-size: ${p.typography.fontSizeMedium};
|
|
4670
4670
|
font-weight: ${p.typography.fontWeightBold};
|
|
4671
|
-
`,
|
|
4671
|
+
`, Xh = N.div`
|
|
4672
4672
|
background: ${p.colors.contrasts.grey100100};
|
|
4673
4673
|
color: ${p.colors.contrasts.white1010};
|
|
4674
4674
|
border-radius: ${p.borders.radiusLarge} ${p.borders.radiusLarge} 0 0;
|
|
@@ -4678,10 +4678,10 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4678
4678
|
display: flex;
|
|
4679
4679
|
flex-direction: row;
|
|
4680
4680
|
align-items: flex-start;
|
|
4681
|
-
`,
|
|
4681
|
+
`, Jh = N.div`
|
|
4682
4682
|
order: -1;
|
|
4683
4683
|
flex-shrink: 0;
|
|
4684
|
-
`,
|
|
4684
|
+
`, em = N.div`
|
|
4685
4685
|
gap: ${({ $isExpanded: e }) => e ? p.spacing.small : "0"};
|
|
4686
4686
|
display: flex;
|
|
4687
4687
|
flex-direction: column;
|
|
@@ -4693,7 +4693,7 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4693
4693
|
justify-content: space-between;
|
|
4694
4694
|
align-items: ${({ $isMobile: e }) => e ? "flex-start" : "center"};
|
|
4695
4695
|
gap: ${({ $isMobile: e }) => e ? p.spacing.xSmall : "0"};
|
|
4696
|
-
`,
|
|
4696
|
+
`, tm = N.div`
|
|
4697
4697
|
display: flex;
|
|
4698
4698
|
flex-direction: row;
|
|
4699
4699
|
overflow: hidden;
|
|
@@ -4707,35 +4707,35 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4707
4707
|
flex-shrink: 0;
|
|
4708
4708
|
font-size: ${p.typography.fontSizeMedium};
|
|
4709
4709
|
font-weight: ${p.typography.fontWeightBold};
|
|
4710
|
-
`,
|
|
4710
|
+
`, nm = N.div`
|
|
4711
4711
|
width: 100%;
|
|
4712
4712
|
overflow: hidden;
|
|
4713
4713
|
overflow-wrap: break-word;
|
|
4714
4714
|
word-break: break-word;
|
|
4715
|
-
`,
|
|
4715
|
+
`, rm = N.div`
|
|
4716
4716
|
display: flex;
|
|
4717
4717
|
flex-direction: row;
|
|
4718
4718
|
gap: ${p.spacing.small};
|
|
4719
|
-
`,
|
|
4719
|
+
`, sm = N.div`
|
|
4720
4720
|
display: flex;
|
|
4721
4721
|
flex-direction: row;
|
|
4722
4722
|
justify-content: space-between;
|
|
4723
4723
|
align-items: center;
|
|
4724
|
-
`,
|
|
4724
|
+
`, im = N.div`
|
|
4725
4725
|
display: flex;
|
|
4726
4726
|
flex-direction: row;
|
|
4727
4727
|
flex-wrap: wrap;
|
|
4728
4728
|
gap: ${p.spacing.small};
|
|
4729
4729
|
align-items: center;
|
|
4730
4730
|
${({ $withInlineSpacing: e }) => e && `margin: 0 ${p.spacing.medium};`}
|
|
4731
|
-
`, im = N.div`
|
|
4732
|
-
padding: ${p.spacing.medium} ${p.spacing.small};
|
|
4733
4731
|
`, om = N.div`
|
|
4732
|
+
padding: ${p.spacing.medium} ${p.spacing.small};
|
|
4733
|
+
`, am = N.div`
|
|
4734
4734
|
display: flex;
|
|
4735
4735
|
flex-direction: column;
|
|
4736
4736
|
gap: ${p.spacing.medium};
|
|
4737
4737
|
width: 100%;
|
|
4738
|
-
`,
|
|
4738
|
+
`, cm = N.ul`
|
|
4739
4739
|
list-style: none;
|
|
4740
4740
|
margin: 0;
|
|
4741
4741
|
padding: 0;
|
|
@@ -4746,12 +4746,12 @@ const mi = (e, { canEdit: t, canCreate: n }) => e.filter(
|
|
|
4746
4746
|
list-style: none;
|
|
4747
4747
|
margin: 0;
|
|
4748
4748
|
padding: 0;
|
|
4749
|
-
`,
|
|
4749
|
+
`, lm = N.div`
|
|
4750
4750
|
border: ${p.borders.widthSmall} dashed ${p.colors.contrasts.grey3045};
|
|
4751
4751
|
border-radius: ${p.borders.radiusLarge};
|
|
4752
4752
|
padding: ${p.spacing.medium} ${p.spacing.mediumSmall};
|
|
4753
4753
|
background: ${p.colors.contrasts.grey1111};
|
|
4754
|
-
`,
|
|
4754
|
+
`, um = ({ tag: e }) => /* @__PURE__ */ u(Zh, { "aria-hidden": "true", children: /* @__PURE__ */ u(Gh, { tag: e }) });
|
|
4755
4755
|
function Re(e) {
|
|
4756
4756
|
var t;
|
|
4757
4757
|
return (((t = e == null ? void 0 : e.errors) == null ? void 0 : t.length) ?? 0) > 0;
|
|
@@ -4781,7 +4781,7 @@ const fl = Ce`
|
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
4784
|
-
`,
|
|
4784
|
+
`, dm = Ce`
|
|
4785
4785
|
mutation UpdateInstitutionalTagCategory($input: UpdateInstitutionalTagCategoryInput!) {
|
|
4786
4786
|
updateInstitutionalTagCategory(input: $input) {
|
|
4787
4787
|
institutionalTagCategory {
|
|
@@ -4811,7 +4811,7 @@ const fl = Ce`
|
|
|
4811
4811
|
}
|
|
4812
4812
|
}
|
|
4813
4813
|
}
|
|
4814
|
-
`,
|
|
4814
|
+
`, fm = Ce`
|
|
4815
4815
|
mutation CreateInstitutionalTag($input: CreateInstitutionalTagInput!) {
|
|
4816
4816
|
createInstitutionalTag(input: $input) {
|
|
4817
4817
|
institutionalTag {
|
|
@@ -4952,7 +4952,7 @@ const yl = () => {
|
|
|
4952
4952
|
}, nn = (e) => {
|
|
4953
4953
|
var t;
|
|
4954
4954
|
return (t = e.data.current) == null ? void 0 : t.tag;
|
|
4955
|
-
},
|
|
4955
|
+
}, gm = () => {
|
|
4956
4956
|
const [e, t] = v.useState(null), [n, r] = v.useState(null), [s, i] = v.useState(null), { moveTagDirect: o } = yl(), { resolveToken: a } = W(), c = (g) => {
|
|
4957
4957
|
const m = nn(g.active);
|
|
4958
4958
|
m && (t(m), r(m.category._id));
|
|
@@ -5021,7 +5021,7 @@ const yl = () => {
|
|
|
5021
5021
|
}, vl = v.createContext({
|
|
5022
5022
|
activeTagCategoryId: null,
|
|
5023
5023
|
pendingMove: null
|
|
5024
|
-
}),
|
|
5024
|
+
}), hm = (e) => e.pointerCoordinates ? bg(e) : pg(e), mm = (e, { context: { droppableRects: t, droppableContainers: n, over: r } }) => {
|
|
5025
5025
|
const s = e.code === Z.Down || e.code === Z.Right, i = e.code === Z.Up || e.code === Z.Left;
|
|
5026
5026
|
if (!s && !i) return;
|
|
5027
5027
|
e.preventDefault();
|
|
@@ -5038,7 +5038,7 @@ const yl = () => {
|
|
|
5038
5038
|
x: l.left + l.width / 2,
|
|
5039
5039
|
y: l.top + l.height / 2
|
|
5040
5040
|
};
|
|
5041
|
-
}, eo = () => v.useContext(vl),
|
|
5041
|
+
}, eo = () => v.useContext(vl), pm = ({ children: e }) => {
|
|
5042
5042
|
const {
|
|
5043
5043
|
activeTag: t,
|
|
5044
5044
|
activeTagCategoryId: n,
|
|
@@ -5048,15 +5048,15 @@ const yl = () => {
|
|
|
5048
5048
|
handleDragCancel: o,
|
|
5049
5049
|
announcements: a,
|
|
5050
5050
|
screenReaderInstructions: c
|
|
5051
|
-
} =
|
|
5051
|
+
} = gm(), l = dg(
|
|
5052
5052
|
Vo(Ki, { activationConstraint: { distance: 8 } }),
|
|
5053
|
-
Vo(Zi, { coordinateGetter:
|
|
5053
|
+
Vo(Zi, { coordinateGetter: mm })
|
|
5054
5054
|
);
|
|
5055
5055
|
return /* @__PURE__ */ u(vl.Provider, { value: { activeTagCategoryId: n, pendingMove: r }, children: /* @__PURE__ */ O(
|
|
5056
|
-
|
|
5056
|
+
fh,
|
|
5057
5057
|
{
|
|
5058
5058
|
sensors: l,
|
|
5059
|
-
collisionDetection:
|
|
5059
|
+
collisionDetection: hm,
|
|
5060
5060
|
onDragStart: s,
|
|
5061
5061
|
onDragEnd: i,
|
|
5062
5062
|
onDragCancel: o,
|
|
@@ -5066,11 +5066,11 @@ const yl = () => {
|
|
|
5066
5066
|
},
|
|
5067
5067
|
children: [
|
|
5068
5068
|
e,
|
|
5069
|
-
/* @__PURE__ */ u(
|
|
5069
|
+
/* @__PURE__ */ u($h, { children: t ? /* @__PURE__ */ u(um, { tag: t }) : null })
|
|
5070
5070
|
]
|
|
5071
5071
|
}
|
|
5072
5072
|
) });
|
|
5073
|
-
}, Yr = (e) => Array.from({ length: e }, (t, n) => ({ id: n })), lr = (e) => v.useMemo(() => Yr(e).map((t) => t.id), [e]),
|
|
5073
|
+
}, Yr = (e) => Array.from({ length: e }, (t, n) => ({ id: n })), lr = (e) => v.useMemo(() => Yr(e).map((t) => t.id), [e]), ym = N.li`
|
|
5074
5074
|
list-style: none;
|
|
5075
5075
|
margin: 0;
|
|
5076
5076
|
padding: 0;
|
|
@@ -5078,7 +5078,7 @@ const yl = () => {
|
|
|
5078
5078
|
border-radius: ${p.borders.radiusLarge};
|
|
5079
5079
|
box-shadow: ${p.shadows.resting};
|
|
5080
5080
|
width: 100%;
|
|
5081
|
-
`,
|
|
5081
|
+
`, vm = N.div`
|
|
5082
5082
|
background: ${p.colors.contrasts.grey100100};
|
|
5083
5083
|
border-radius: ${p.borders.radiusLarge} ${p.borders.radiusLarge} 0 0;
|
|
5084
5084
|
padding: ${p.spacing.small} ${p.spacing.medium};
|
|
@@ -5086,46 +5086,46 @@ const yl = () => {
|
|
|
5086
5086
|
flex-direction: row;
|
|
5087
5087
|
gap: ${p.spacing.small};
|
|
5088
5088
|
align-items: flex-start;
|
|
5089
|
-
`,
|
|
5089
|
+
`, wm = N.div`
|
|
5090
5090
|
display: flex;
|
|
5091
5091
|
flex-direction: column;
|
|
5092
5092
|
gap: ${p.spacing.small};
|
|
5093
5093
|
flex: 1;
|
|
5094
5094
|
min-width: 0;
|
|
5095
|
-
`,
|
|
5095
|
+
`, bm = N.div`
|
|
5096
5096
|
display: flex;
|
|
5097
5097
|
flex-direction: row;
|
|
5098
5098
|
align-items: center;
|
|
5099
5099
|
justify-content: space-between;
|
|
5100
|
-
`,
|
|
5100
|
+
`, Tm = N.div`
|
|
5101
5101
|
display: flex;
|
|
5102
5102
|
flex-direction: row;
|
|
5103
5103
|
gap: ${p.spacing.xSmall};
|
|
5104
5104
|
align-items: center;
|
|
5105
5105
|
width: 100%;
|
|
5106
|
-
`,
|
|
5106
|
+
`, Cm = N.div`
|
|
5107
5107
|
display: flex;
|
|
5108
5108
|
flex-direction: row;
|
|
5109
5109
|
gap: ${p.spacing.small};
|
|
5110
5110
|
align-items: center;
|
|
5111
5111
|
justify-content: flex-end;
|
|
5112
|
-
`,
|
|
5112
|
+
`, Sm = N.div`
|
|
5113
5113
|
display: flex;
|
|
5114
5114
|
flex-direction: row;
|
|
5115
5115
|
gap: ${p.spacing.small};
|
|
5116
|
-
`,
|
|
5116
|
+
`, xm = N.div`
|
|
5117
5117
|
padding: ${p.spacing.medium} ${p.spacing.small};
|
|
5118
5118
|
display: grid;
|
|
5119
5119
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
5120
5120
|
gap: ${p.spacing.medium};
|
|
5121
|
-
`,
|
|
5121
|
+
`, km = N.div`
|
|
5122
5122
|
padding: ${p.spacing.small};
|
|
5123
5123
|
border: ${p.borders.widthSmall} solid ${p.colors.contrasts.grey1214};
|
|
5124
5124
|
border-radius: ${p.borders.radiusLarge};
|
|
5125
5125
|
display: flex;
|
|
5126
5126
|
flex-direction: column;
|
|
5127
5127
|
gap: ${p.spacing.xxSmall};
|
|
5128
|
-
`,
|
|
5128
|
+
`, Im = N.li`
|
|
5129
5129
|
display: flex;
|
|
5130
5130
|
flex-direction: row;
|
|
5131
5131
|
align-items: center;
|
|
@@ -5135,40 +5135,40 @@ const yl = () => {
|
|
|
5135
5135
|
border-radius: ${p.borders.radiusLarge};
|
|
5136
5136
|
background: ${p.colors.contrasts.white1010};
|
|
5137
5137
|
box-shadow: ${p.shadows.resting};
|
|
5138
|
-
`,
|
|
5138
|
+
`, Nm = N.div`
|
|
5139
5139
|
display: flex;
|
|
5140
5140
|
flex-direction: column;
|
|
5141
5141
|
gap: ${p.spacing.xxSmall};
|
|
5142
5142
|
flex: 1;
|
|
5143
5143
|
min-width: 0;
|
|
5144
|
-
`,
|
|
5144
|
+
`, Em = N.div`
|
|
5145
5145
|
border: ${p.borders.widthSmall} solid ${p.colors.contrasts.grey1214};
|
|
5146
5146
|
border-radius: ${p.borders.radiusLarge};
|
|
5147
5147
|
padding: ${p.spacing.small} ${p.spacing.medium};
|
|
5148
5148
|
display: flex;
|
|
5149
5149
|
flex-direction: column;
|
|
5150
5150
|
gap: ${p.spacing.small};
|
|
5151
|
-
`,
|
|
5151
|
+
`, Am = N.div`
|
|
5152
5152
|
display: flex;
|
|
5153
5153
|
flex-direction: row;
|
|
5154
5154
|
align-items: center;
|
|
5155
5155
|
gap: ${p.spacing.small};
|
|
5156
5156
|
justify-content: space-between;
|
|
5157
|
-
`,
|
|
5157
|
+
`, Om = N.div`
|
|
5158
5158
|
display: flex;
|
|
5159
5159
|
flex-direction: row;
|
|
5160
5160
|
align-items: center;
|
|
5161
5161
|
gap: ${p.spacing.small};
|
|
5162
|
-
`,
|
|
5162
|
+
`, Dm = N.div`
|
|
5163
5163
|
display: flex;
|
|
5164
5164
|
flex-direction: row;
|
|
5165
5165
|
gap: ${p.spacing.xSmall};
|
|
5166
|
-
`,
|
|
5166
|
+
`, $m = N.div`
|
|
5167
5167
|
display: flex;
|
|
5168
5168
|
flex-direction: row;
|
|
5169
5169
|
gap: ${p.spacing.small};
|
|
5170
5170
|
align-items: flex-end;
|
|
5171
|
-
`,
|
|
5171
|
+
`, Rm = N.div`
|
|
5172
5172
|
display: flex;
|
|
5173
5173
|
flex-direction: column;
|
|
5174
5174
|
gap: ${p.spacing.small};
|
|
@@ -5178,22 +5178,22 @@ const yl = () => {
|
|
|
5178
5178
|
gap: ${p.spacing.medium};
|
|
5179
5179
|
align-items: center;
|
|
5180
5180
|
padding: ${p.spacing.xSmall} 0;
|
|
5181
|
-
`,
|
|
5181
|
+
`, Mm = N.ul`
|
|
5182
5182
|
display: flex;
|
|
5183
5183
|
flex-wrap: wrap;
|
|
5184
5184
|
gap: ${p.spacing.xxSmall};
|
|
5185
5185
|
list-style: none;
|
|
5186
5186
|
margin: 0;
|
|
5187
5187
|
padding: 0;
|
|
5188
|
-
`,
|
|
5188
|
+
`, Lm = N.span`
|
|
5189
5189
|
display: flex;
|
|
5190
5190
|
align-items: center;
|
|
5191
5191
|
gap: ${p.spacing.small};
|
|
5192
|
-
`,
|
|
5192
|
+
`, Pm = N.span`
|
|
5193
5193
|
display: flex;
|
|
5194
5194
|
flex-direction: column;
|
|
5195
5195
|
gap: ${p.spacing.xxxSmall};
|
|
5196
|
-
`,
|
|
5196
|
+
`, Fm = Vf`
|
|
5197
5197
|
0% { background-position: -200% 0; }
|
|
5198
5198
|
100% { background-position: 200% 0; }
|
|
5199
5199
|
`, V = N.div`
|
|
@@ -5204,11 +5204,11 @@ const yl = () => {
|
|
|
5204
5204
|
|
|
5205
5205
|
background: ${({ $dark: e }) => e ? "linear-gradient(90deg, rgb(255 255 255 / 8%) 25%, rgb(255 255 255 / 18%) 50%, rgb(255 255 255 / 8%) 75%)" : `linear-gradient(90deg, ${p.colors.contrasts.grey1214} 25%, ${p.colors.contrasts.grey1111} 50%, ${p.colors.contrasts.grey1214} 75%)`};
|
|
5206
5206
|
background-size: 200% 100%;
|
|
5207
|
-
animation: ${
|
|
5207
|
+
animation: ${Fm} 1.5s infinite linear;
|
|
5208
5208
|
`, wl = () => {
|
|
5209
5209
|
const e = lr(3);
|
|
5210
|
-
return /* @__PURE__ */ O(
|
|
5211
|
-
/* @__PURE__ */ O(
|
|
5210
|
+
return /* @__PURE__ */ O(ym, { "aria-hidden": !0, children: [
|
|
5211
|
+
/* @__PURE__ */ O(vm, { children: [
|
|
5212
5212
|
/* @__PURE__ */ u(
|
|
5213
5213
|
V,
|
|
5214
5214
|
{
|
|
@@ -5218,13 +5218,13 @@ const yl = () => {
|
|
|
5218
5218
|
$radius: p.borders.radiusMedium
|
|
5219
5219
|
}
|
|
5220
5220
|
),
|
|
5221
|
-
/* @__PURE__ */ O(
|
|
5222
|
-
/* @__PURE__ */ O(
|
|
5223
|
-
/* @__PURE__ */ O(
|
|
5221
|
+
/* @__PURE__ */ O(wm, { children: [
|
|
5222
|
+
/* @__PURE__ */ O(bm, { children: [
|
|
5223
|
+
/* @__PURE__ */ O(Tm, { children: [
|
|
5224
5224
|
/* @__PURE__ */ u(V, { $dark: !0, $width: "25%", $height: p.typography.fontSizeMedium }),
|
|
5225
5225
|
/* @__PURE__ */ u(V, { $dark: !0, $width: "50%", $height: p.typography.fontSizeSmall })
|
|
5226
5226
|
] }),
|
|
5227
|
-
/* @__PURE__ */ O(
|
|
5227
|
+
/* @__PURE__ */ O(Cm, { children: [
|
|
5228
5228
|
/* @__PURE__ */ u(
|
|
5229
5229
|
V,
|
|
5230
5230
|
{
|
|
@@ -5245,7 +5245,7 @@ const yl = () => {
|
|
|
5245
5245
|
)
|
|
5246
5246
|
] })
|
|
5247
5247
|
] }),
|
|
5248
|
-
/* @__PURE__ */ O(
|
|
5248
|
+
/* @__PURE__ */ O(Sm, { children: [
|
|
5249
5249
|
/* @__PURE__ */ u(
|
|
5250
5250
|
V,
|
|
5251
5251
|
{
|
|
@@ -5276,7 +5276,7 @@ const yl = () => {
|
|
|
5276
5276
|
] })
|
|
5277
5277
|
] })
|
|
5278
5278
|
] }),
|
|
5279
|
-
/* @__PURE__ */ u(
|
|
5279
|
+
/* @__PURE__ */ u(xm, { children: e.map((t) => /* @__PURE__ */ O(km, { children: [
|
|
5280
5280
|
/* @__PURE__ */ u(V, { $width: "50%", $height: p.typography.fontSizeSmall }),
|
|
5281
5281
|
/* @__PURE__ */ u(V, { $width: "75%", $height: p.typography.fontSizeXSmall })
|
|
5282
5282
|
] }, t)) })
|
|
@@ -5289,7 +5289,7 @@ const yl = () => {
|
|
|
5289
5289
|
setSelectedTags: () => {
|
|
5290
5290
|
},
|
|
5291
5291
|
categoryMoreButtonRef: { current: null }
|
|
5292
|
-
}),
|
|
5292
|
+
}), _m = ({
|
|
5293
5293
|
children: e,
|
|
5294
5294
|
editHandler: t,
|
|
5295
5295
|
archiveHandler: n,
|
|
@@ -5316,7 +5316,7 @@ const yl = () => {
|
|
|
5316
5316
|
allExpanded: !0,
|
|
5317
5317
|
handleExpandAllToggle: () => {
|
|
5318
5318
|
}
|
|
5319
|
-
}),
|
|
5319
|
+
}), qm = ({ children: e }) => {
|
|
5320
5320
|
const [t, n] = v.useState(!0), r = () => n((s) => !s);
|
|
5321
5321
|
return /* @__PURE__ */ u(Cl.Provider, { value: { allExpanded: t, handleExpandAllToggle: r }, children: e });
|
|
5322
5322
|
}, Sl = () => v.useContext(Cl);
|
|
@@ -5334,17 +5334,17 @@ const an = {
|
|
|
5334
5334
|
}, kl = v.createContext(xl), ur = () => v.useContext(kl);
|
|
5335
5335
|
class Kt extends Error {
|
|
5336
5336
|
}
|
|
5337
|
-
class
|
|
5337
|
+
class Wm extends Kt {
|
|
5338
5338
|
constructor(t) {
|
|
5339
5339
|
super(`Invalid DateTime: ${t.toMessage()}`);
|
|
5340
5340
|
}
|
|
5341
5341
|
}
|
|
5342
|
-
class
|
|
5342
|
+
class Um extends Kt {
|
|
5343
5343
|
constructor(t) {
|
|
5344
5344
|
super(`Invalid Interval: ${t.toMessage()}`);
|
|
5345
5345
|
}
|
|
5346
5346
|
}
|
|
5347
|
-
class
|
|
5347
|
+
class zm extends Kt {
|
|
5348
5348
|
constructor(t) {
|
|
5349
5349
|
super(`Invalid Duration: ${t.toMessage()}`);
|
|
5350
5350
|
}
|
|
@@ -5371,7 +5371,7 @@ const $ = "numeric", rt = "short", Ue = "long", Kr = {
|
|
|
5371
5371
|
year: $,
|
|
5372
5372
|
month: rt,
|
|
5373
5373
|
day: $
|
|
5374
|
-
},
|
|
5374
|
+
}, Vm = {
|
|
5375
5375
|
year: $,
|
|
5376
5376
|
month: rt,
|
|
5377
5377
|
day: $,
|
|
@@ -5449,7 +5449,7 @@ const $ = "numeric", rt = "short", Ue = "long", Kr = {
|
|
|
5449
5449
|
hour: $,
|
|
5450
5450
|
minute: $,
|
|
5451
5451
|
second: $
|
|
5452
|
-
},
|
|
5452
|
+
}, Bm = {
|
|
5453
5453
|
year: $,
|
|
5454
5454
|
month: rt,
|
|
5455
5455
|
day: $,
|
|
@@ -5616,7 +5616,7 @@ class fs extends dr {
|
|
|
5616
5616
|
}
|
|
5617
5617
|
}
|
|
5618
5618
|
const yi = /* @__PURE__ */ new Map();
|
|
5619
|
-
function
|
|
5619
|
+
function jm(e) {
|
|
5620
5620
|
let t = yi.get(e);
|
|
5621
5621
|
return t === void 0 && (t = new Intl.DateTimeFormat("en-US", {
|
|
5622
5622
|
hour12: !1,
|
|
@@ -5630,7 +5630,7 @@ function Bm(e) {
|
|
|
5630
5630
|
era: "short"
|
|
5631
5631
|
}), yi.set(e, t)), t;
|
|
5632
5632
|
}
|
|
5633
|
-
const
|
|
5633
|
+
const Gm = {
|
|
5634
5634
|
year: 0,
|
|
5635
5635
|
month: 1,
|
|
5636
5636
|
day: 2,
|
|
@@ -5639,14 +5639,14 @@ const jm = {
|
|
|
5639
5639
|
minute: 5,
|
|
5640
5640
|
second: 6
|
|
5641
5641
|
};
|
|
5642
|
-
function
|
|
5642
|
+
function Hm(e, t) {
|
|
5643
5643
|
const n = e.format(t).replace(/\u200E/g, ""), r = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n), [, s, i, o, a, c, l, f] = r;
|
|
5644
5644
|
return [o, s, i, a, c, l, f];
|
|
5645
5645
|
}
|
|
5646
|
-
function
|
|
5646
|
+
function Zm(e, t) {
|
|
5647
5647
|
const n = e.formatToParts(t), r = [];
|
|
5648
5648
|
for (let s = 0; s < n.length; s++) {
|
|
5649
|
-
const { type: i, value: o } = n[s], a =
|
|
5649
|
+
const { type: i, value: o } = n[s], a = Gm[i];
|
|
5650
5650
|
i === "era" ? r[a] = o : _(a) || (r[a] = parseInt(o, 10));
|
|
5651
5651
|
}
|
|
5652
5652
|
return r;
|
|
@@ -5757,8 +5757,8 @@ class vt extends dr {
|
|
|
5757
5757
|
if (!this.valid) return NaN;
|
|
5758
5758
|
const n = new Date(t);
|
|
5759
5759
|
if (isNaN(n)) return NaN;
|
|
5760
|
-
const r =
|
|
5761
|
-
let [s, i, o, a, c, l, f] = r.formatToParts ?
|
|
5760
|
+
const r = jm(this.name);
|
|
5761
|
+
let [s, i, o, a, c, l, f] = r.formatToParts ? Zm(r, n) : Hm(r, n);
|
|
5762
5762
|
a === "BC" && (s = -Math.abs(s) + 1);
|
|
5763
5763
|
const h = hs({
|
|
5764
5764
|
year: s,
|
|
@@ -5792,7 +5792,7 @@ class vt extends dr {
|
|
|
5792
5792
|
}
|
|
5793
5793
|
}
|
|
5794
5794
|
let ia = {};
|
|
5795
|
-
function
|
|
5795
|
+
function Ym(e, t = {}) {
|
|
5796
5796
|
const n = JSON.stringify([e, t]);
|
|
5797
5797
|
let r = ia[n];
|
|
5798
5798
|
return r || (r = new Intl.ListFormat(e, t), ia[n] = r), r;
|
|
@@ -5804,19 +5804,19 @@ function wi(e, t = {}) {
|
|
|
5804
5804
|
return r === void 0 && (r = new Intl.DateTimeFormat(e, t), vi.set(n, r)), r;
|
|
5805
5805
|
}
|
|
5806
5806
|
const bi = /* @__PURE__ */ new Map();
|
|
5807
|
-
function
|
|
5807
|
+
function Km(e, t = {}) {
|
|
5808
5808
|
const n = JSON.stringify([e, t]);
|
|
5809
5809
|
let r = bi.get(n);
|
|
5810
5810
|
return r === void 0 && (r = new Intl.NumberFormat(e, t), bi.set(n, r)), r;
|
|
5811
5811
|
}
|
|
5812
5812
|
const Ti = /* @__PURE__ */ new Map();
|
|
5813
|
-
function
|
|
5813
|
+
function Qm(e, t = {}) {
|
|
5814
5814
|
const { base: n, ...r } = t, s = JSON.stringify([e, r]);
|
|
5815
5815
|
let i = Ti.get(s);
|
|
5816
5816
|
return i === void 0 && (i = new Intl.RelativeTimeFormat(e, t), Ti.set(s, i)), i;
|
|
5817
5817
|
}
|
|
5818
5818
|
let _n = null;
|
|
5819
|
-
function
|
|
5819
|
+
function Xm() {
|
|
5820
5820
|
return _n || (_n = new Intl.DateTimeFormat().resolvedOptions().locale, _n);
|
|
5821
5821
|
}
|
|
5822
5822
|
const Ci = /* @__PURE__ */ new Map();
|
|
@@ -5825,7 +5825,7 @@ function Gl(e) {
|
|
|
5825
5825
|
return t === void 0 && (t = new Intl.DateTimeFormat(e).resolvedOptions(), Ci.set(e, t)), t;
|
|
5826
5826
|
}
|
|
5827
5827
|
const Si = /* @__PURE__ */ new Map();
|
|
5828
|
-
function
|
|
5828
|
+
function Jm(e) {
|
|
5829
5829
|
let t = Si.get(e);
|
|
5830
5830
|
if (!t) {
|
|
5831
5831
|
const n = new Intl.Locale(e);
|
|
@@ -5833,7 +5833,7 @@ function Xm(e) {
|
|
|
5833
5833
|
}
|
|
5834
5834
|
return t;
|
|
5835
5835
|
}
|
|
5836
|
-
function
|
|
5836
|
+
function ep(e) {
|
|
5837
5837
|
const t = e.indexOf("-x-");
|
|
5838
5838
|
t !== -1 && (e = e.substring(0, t));
|
|
5839
5839
|
const n = e.indexOf("-u-");
|
|
@@ -5851,10 +5851,10 @@ function Jm(e) {
|
|
|
5851
5851
|
return [s, i, o];
|
|
5852
5852
|
}
|
|
5853
5853
|
}
|
|
5854
|
-
function
|
|
5854
|
+
function tp(e, t, n) {
|
|
5855
5855
|
return (n || t) && (e.includes("-u-") || (e += "-u"), n && (e += `-ca-${n}`), t && (e += `-nu-${t}`)), e;
|
|
5856
5856
|
}
|
|
5857
|
-
function
|
|
5857
|
+
function np(e) {
|
|
5858
5858
|
const t = [];
|
|
5859
5859
|
for (let n = 1; n <= 12; n++) {
|
|
5860
5860
|
const r = q.utc(2009, n, 1);
|
|
@@ -5862,7 +5862,7 @@ function tp(e) {
|
|
|
5862
5862
|
}
|
|
5863
5863
|
return t;
|
|
5864
5864
|
}
|
|
5865
|
-
function
|
|
5865
|
+
function rp(e) {
|
|
5866
5866
|
const t = [];
|
|
5867
5867
|
for (let n = 1; n <= 7; n++) {
|
|
5868
5868
|
const r = q.utc(2016, 11, 13 + n);
|
|
@@ -5874,16 +5874,16 @@ function Cr(e, t, n, r) {
|
|
|
5874
5874
|
const s = e.listingMode();
|
|
5875
5875
|
return s === "error" ? null : s === "en" ? n(t) : r(t);
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5877
|
+
function sp(e) {
|
|
5878
5878
|
return e.numberingSystem && e.numberingSystem !== "latn" ? !1 : e.numberingSystem === "latn" || !e.locale || e.locale.startsWith("en") || Gl(e.locale).numberingSystem === "latn";
|
|
5879
5879
|
}
|
|
5880
|
-
class
|
|
5880
|
+
class ip {
|
|
5881
5881
|
constructor(t, n, r) {
|
|
5882
5882
|
this.padTo = r.padTo || 0, this.floor = r.floor || !1;
|
|
5883
5883
|
const { padTo: s, floor: i, ...o } = r;
|
|
5884
5884
|
if (!n || Object.keys(o).length > 0) {
|
|
5885
5885
|
const a = { useGrouping: !1, ...r };
|
|
5886
|
-
r.padTo > 0 && (a.minimumIntegerDigits = r.padTo), this.inf =
|
|
5886
|
+
r.padTo > 0 && (a.minimumIntegerDigits = r.padTo), this.inf = Km(t, a);
|
|
5887
5887
|
}
|
|
5888
5888
|
}
|
|
5889
5889
|
format(t) {
|
|
@@ -5896,7 +5896,7 @@ class sp {
|
|
|
5896
5896
|
}
|
|
5897
5897
|
}
|
|
5898
5898
|
}
|
|
5899
|
-
class
|
|
5899
|
+
class op {
|
|
5900
5900
|
constructor(t, n, r) {
|
|
5901
5901
|
this.opts = r, this.originalZone = void 0;
|
|
5902
5902
|
let s;
|
|
@@ -5932,12 +5932,12 @@ class ip {
|
|
|
5932
5932
|
return this.dtf.resolvedOptions();
|
|
5933
5933
|
}
|
|
5934
5934
|
}
|
|
5935
|
-
class
|
|
5935
|
+
class ap {
|
|
5936
5936
|
constructor(t, n, r) {
|
|
5937
|
-
this.opts = { style: "long", ...r }, !n && eu() && (this.rtf =
|
|
5937
|
+
this.opts = { style: "long", ...r }, !n && eu() && (this.rtf = Qm(t, r));
|
|
5938
5938
|
}
|
|
5939
5939
|
format(t, n) {
|
|
5940
|
-
return this.rtf ? this.rtf.format(t, n) :
|
|
5940
|
+
return this.rtf ? this.rtf.format(t, n) : Ap(n, t, this.opts.numeric, this.opts.style !== "long");
|
|
5941
5941
|
}
|
|
5942
5942
|
formatToParts(t, n) {
|
|
5943
5943
|
return this.rtf ? this.rtf.formatToParts(t, n) : [];
|
|
@@ -5959,7 +5959,7 @@ class Y {
|
|
|
5959
5959
|
);
|
|
5960
5960
|
}
|
|
5961
5961
|
static create(t, n, r, s, i = !1) {
|
|
5962
|
-
const o = t || le.defaultLocale, a = o || (i ? "en-US" :
|
|
5962
|
+
const o = t || le.defaultLocale, a = o || (i ? "en-US" : Xm()), c = n || le.defaultNumberingSystem, l = r || le.defaultOutputCalendar, f = ki(s) || le.defaultWeekSettings;
|
|
5963
5963
|
return new Y(a, c, l, f, o);
|
|
5964
5964
|
}
|
|
5965
5965
|
static resetCache() {
|
|
@@ -5969,11 +5969,11 @@ class Y {
|
|
|
5969
5969
|
return Y.create(t, n, r, s);
|
|
5970
5970
|
}
|
|
5971
5971
|
constructor(t, n, r, s, i) {
|
|
5972
|
-
const [o, a, c] =
|
|
5973
|
-
this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = r || c || null, this.weekSettings = s, this.intl =
|
|
5972
|
+
const [o, a, c] = ep(t);
|
|
5973
|
+
this.locale = o, this.numberingSystem = n || a || null, this.outputCalendar = r || c || null, this.weekSettings = s, this.intl = tp(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = { format: {}, standalone: {} }, this.monthsCache = { format: {}, standalone: {} }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = i, this.fastNumbersCached = null;
|
|
5974
5974
|
}
|
|
5975
5975
|
get fastNumbers() {
|
|
5976
|
-
return this.fastNumbersCached == null && (this.fastNumbersCached =
|
|
5976
|
+
return this.fastNumbersCached == null && (this.fastNumbersCached = sp(this)), this.fastNumbersCached;
|
|
5977
5977
|
}
|
|
5978
5978
|
listingMode() {
|
|
5979
5979
|
const t = this.isEnglish(), n = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
|
@@ -6001,7 +6001,7 @@ class Y {
|
|
|
6001
6001
|
const s = n ? { month: t, day: "numeric" } : { month: t }, i = n ? "format" : "standalone";
|
|
6002
6002
|
if (!this.monthsCache[i][t]) {
|
|
6003
6003
|
const o = r ? (a) => this.dtFormatter(a, s).format() : (a) => this.extract(a, s, "month");
|
|
6004
|
-
this.monthsCache[i][t] =
|
|
6004
|
+
this.monthsCache[i][t] = np(o);
|
|
6005
6005
|
}
|
|
6006
6006
|
return this.monthsCache[i][t];
|
|
6007
6007
|
});
|
|
@@ -6009,7 +6009,7 @@ class Y {
|
|
|
6009
6009
|
weekdays(t, n = !1) {
|
|
6010
6010
|
return Cr(this, t, cu, () => {
|
|
6011
6011
|
const r = n ? { weekday: t, year: "numeric", month: "long", day: "numeric" } : { weekday: t }, s = n ? "format" : "standalone";
|
|
6012
|
-
return this.weekdaysCache[s][t] || (this.weekdaysCache[s][t] =
|
|
6012
|
+
return this.weekdaysCache[s][t] || (this.weekdaysCache[s][t] = rp(
|
|
6013
6013
|
(i) => this.extract(i, r, "weekday")
|
|
6014
6014
|
)), this.weekdaysCache[s][t];
|
|
6015
6015
|
});
|
|
@@ -6043,22 +6043,22 @@ class Y {
|
|
|
6043
6043
|
return o ? o.value : null;
|
|
6044
6044
|
}
|
|
6045
6045
|
numberFormatter(t = {}) {
|
|
6046
|
-
return new
|
|
6046
|
+
return new ip(this.intl, t.forceSimple || this.fastNumbers, t);
|
|
6047
6047
|
}
|
|
6048
6048
|
dtFormatter(t, n = {}) {
|
|
6049
|
-
return new
|
|
6049
|
+
return new op(t, this.intl, n);
|
|
6050
6050
|
}
|
|
6051
6051
|
relFormatter(t = {}) {
|
|
6052
|
-
return new
|
|
6052
|
+
return new ap(this.intl, this.isEnglish(), t);
|
|
6053
6053
|
}
|
|
6054
6054
|
listFormatter(t = {}) {
|
|
6055
|
-
return
|
|
6055
|
+
return Ym(this.intl, t);
|
|
6056
6056
|
}
|
|
6057
6057
|
isEnglish() {
|
|
6058
6058
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || Gl(this.intl).locale.startsWith("en-us");
|
|
6059
6059
|
}
|
|
6060
6060
|
getWeekSettings() {
|
|
6061
|
-
return this.weekSettings ? this.weekSettings : tu() ?
|
|
6061
|
+
return this.weekSettings ? this.weekSettings : tu() ? Jm(this.locale) : Hl;
|
|
6062
6062
|
}
|
|
6063
6063
|
getStartOfWeek() {
|
|
6064
6064
|
return this.getWeekSettings().firstDay;
|
|
@@ -6196,7 +6196,7 @@ class Ee extends dr {
|
|
|
6196
6196
|
return !0;
|
|
6197
6197
|
}
|
|
6198
6198
|
}
|
|
6199
|
-
class
|
|
6199
|
+
class cp extends dr {
|
|
6200
6200
|
constructor(t) {
|
|
6201
6201
|
super(), this.zoneName = t;
|
|
6202
6202
|
}
|
|
@@ -6238,10 +6238,10 @@ function At(e, t) {
|
|
|
6238
6238
|
return t;
|
|
6239
6239
|
if (e instanceof dr)
|
|
6240
6240
|
return e;
|
|
6241
|
-
if (
|
|
6241
|
+
if (hp(e)) {
|
|
6242
6242
|
const n = e.toLowerCase();
|
|
6243
6243
|
return n === "default" ? t : n === "local" || n === "system" ? fs.instance : n === "utc" || n === "gmt" ? Ee.utcInstance : Ee.parseSpecifier(n) || vt.create(e);
|
|
6244
|
-
} else return Rt(e) ? Ee.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new
|
|
6244
|
+
} else return Rt(e) ? Ee.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new cp(e);
|
|
6245
6245
|
}
|
|
6246
6246
|
const to = {
|
|
6247
6247
|
arab: "[٠-٩]",
|
|
@@ -6285,15 +6285,15 @@ const to = {
|
|
|
6285
6285
|
telu: [3174, 3183],
|
|
6286
6286
|
thai: [3664, 3673],
|
|
6287
6287
|
tibt: [3872, 3881]
|
|
6288
|
-
},
|
|
6289
|
-
function
|
|
6288
|
+
}, lp = to.hanidec.replace(/[\[|\]]/g, "").split("");
|
|
6289
|
+
function up(e) {
|
|
6290
6290
|
let t = parseInt(e, 10);
|
|
6291
6291
|
if (isNaN(t)) {
|
|
6292
6292
|
t = "";
|
|
6293
6293
|
for (let n = 0; n < e.length; n++) {
|
|
6294
6294
|
const r = e.charCodeAt(n);
|
|
6295
6295
|
if (e[n].search(to.hanidec) !== -1)
|
|
6296
|
-
t +=
|
|
6296
|
+
t += lp.indexOf(e[n]);
|
|
6297
6297
|
else
|
|
6298
6298
|
for (const s in oa) {
|
|
6299
6299
|
const [i, o] = oa[s];
|
|
@@ -6305,7 +6305,7 @@ function lp(e) {
|
|
|
6305
6305
|
return t;
|
|
6306
6306
|
}
|
|
6307
6307
|
const xi = /* @__PURE__ */ new Map();
|
|
6308
|
-
function
|
|
6308
|
+
function dp() {
|
|
6309
6309
|
xi.clear();
|
|
6310
6310
|
}
|
|
6311
6311
|
function Qe({ numberingSystem: e }, t = "") {
|
|
@@ -6452,7 +6452,7 @@ class le {
|
|
|
6452
6452
|
* @return {void}
|
|
6453
6453
|
*/
|
|
6454
6454
|
static resetCaches() {
|
|
6455
|
-
Y.resetCache(), vt.resetCache(), q.resetCache(),
|
|
6455
|
+
Y.resetCache(), vt.resetCache(), q.resetCache(), dp();
|
|
6456
6456
|
}
|
|
6457
6457
|
}
|
|
6458
6458
|
class et {
|
|
@@ -6519,7 +6519,7 @@ function ya(e, t) {
|
|
|
6519
6519
|
} else
|
|
6520
6520
|
return { minDaysInFirstWeek: 4, startOfWeek: 1 };
|
|
6521
6521
|
}
|
|
6522
|
-
function
|
|
6522
|
+
function fp(e, t = 4, n = 1) {
|
|
6523
6523
|
const r = gs(e.weekYear), s = Ze(
|
|
6524
6524
|
e.weekNumber,
|
|
6525
6525
|
1,
|
|
@@ -6527,7 +6527,7 @@ function dp(e, t = 4, n = 1) {
|
|
|
6527
6527
|
), i = Ze(e.weekday, 1, 7);
|
|
6528
6528
|
return r ? s ? i ? !1 : He("weekday", e.weekday) : He("week", e.weekNumber) : He("weekYear", e.weekYear);
|
|
6529
6529
|
}
|
|
6530
|
-
function
|
|
6530
|
+
function gp(e) {
|
|
6531
6531
|
const t = gs(e.year), n = Ze(e.ordinal, 1, dn(e.year));
|
|
6532
6532
|
return t ? n ? !1 : He("ordinal", e.ordinal) : He("year", e.year);
|
|
6533
6533
|
}
|
|
@@ -6548,10 +6548,10 @@ function Rt(e) {
|
|
|
6548
6548
|
function gs(e) {
|
|
6549
6549
|
return typeof e == "number" && e % 1 === 0;
|
|
6550
6550
|
}
|
|
6551
|
-
function
|
|
6551
|
+
function hp(e) {
|
|
6552
6552
|
return typeof e == "string";
|
|
6553
6553
|
}
|
|
6554
|
-
function
|
|
6554
|
+
function mp(e) {
|
|
6555
6555
|
return Object.prototype.toString.call(e) === "[object Date]";
|
|
6556
6556
|
}
|
|
6557
6557
|
function eu() {
|
|
@@ -6568,7 +6568,7 @@ function tu() {
|
|
|
6568
6568
|
return !1;
|
|
6569
6569
|
}
|
|
6570
6570
|
}
|
|
6571
|
-
function
|
|
6571
|
+
function pp(e) {
|
|
6572
6572
|
return Array.isArray(e) ? e : [e];
|
|
6573
6573
|
}
|
|
6574
6574
|
function va(e, t, n) {
|
|
@@ -6578,7 +6578,7 @@ function va(e, t, n) {
|
|
|
6578
6578
|
return r && n(r[0], i[0]) === r[0] ? r : i;
|
|
6579
6579
|
}, null)[1];
|
|
6580
6580
|
}
|
|
6581
|
-
function
|
|
6581
|
+
function yp(e, t) {
|
|
6582
6582
|
return t.reduce((n, r) => (n[r] = e[r], n), {});
|
|
6583
6583
|
}
|
|
6584
6584
|
function vn(e, t) {
|
|
@@ -6600,7 +6600,7 @@ function ki(e) {
|
|
|
6600
6600
|
function Ze(e, t, n) {
|
|
6601
6601
|
return gs(e) && e >= t && e <= n;
|
|
6602
6602
|
}
|
|
6603
|
-
function
|
|
6603
|
+
function vp(e, t) {
|
|
6604
6604
|
return e - t * Math.floor(e / t);
|
|
6605
6605
|
}
|
|
6606
6606
|
function me(e, t = 2) {
|
|
@@ -6646,7 +6646,7 @@ function dn(e) {
|
|
|
6646
6646
|
return fr(e) ? 366 : 365;
|
|
6647
6647
|
}
|
|
6648
6648
|
function Xr(e, t) {
|
|
6649
|
-
const n =
|
|
6649
|
+
const n = vp(t - 1, 12) + 1, r = e + (t - n) / 12;
|
|
6650
6650
|
return n === 2 ? fr(r) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
|
|
6651
6651
|
}
|
|
6652
6652
|
function hs(e) {
|
|
@@ -6720,9 +6720,9 @@ function Gn(e, t) {
|
|
|
6720
6720
|
}
|
|
6721
6721
|
}
|
|
6722
6722
|
function ps(e) {
|
|
6723
|
-
return
|
|
6723
|
+
return yp(e, ["hour", "minute", "second", "millisecond"]);
|
|
6724
6724
|
}
|
|
6725
|
-
const
|
|
6725
|
+
const wp = [
|
|
6726
6726
|
"January",
|
|
6727
6727
|
"February",
|
|
6728
6728
|
"March",
|
|
@@ -6748,15 +6748,15 @@ const vp = [
|
|
|
6748
6748
|
"Oct",
|
|
6749
6749
|
"Nov",
|
|
6750
6750
|
"Dec"
|
|
6751
|
-
],
|
|
6751
|
+
], bp = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
|
|
6752
6752
|
function iu(e) {
|
|
6753
6753
|
switch (e) {
|
|
6754
6754
|
case "narrow":
|
|
6755
|
-
return [...
|
|
6755
|
+
return [...bp];
|
|
6756
6756
|
case "short":
|
|
6757
6757
|
return [...su];
|
|
6758
6758
|
case "long":
|
|
6759
|
-
return [...
|
|
6759
|
+
return [...wp];
|
|
6760
6760
|
case "numeric":
|
|
6761
6761
|
return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
6762
6762
|
case "2-digit":
|
|
@@ -6773,11 +6773,11 @@ const ou = [
|
|
|
6773
6773
|
"Friday",
|
|
6774
6774
|
"Saturday",
|
|
6775
6775
|
"Sunday"
|
|
6776
|
-
], au = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
6776
|
+
], au = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Tp = ["M", "T", "W", "T", "F", "S", "S"];
|
|
6777
6777
|
function cu(e) {
|
|
6778
6778
|
switch (e) {
|
|
6779
6779
|
case "narrow":
|
|
6780
|
-
return [...
|
|
6780
|
+
return [...Tp];
|
|
6781
6781
|
case "short":
|
|
6782
6782
|
return [...au];
|
|
6783
6783
|
case "long":
|
|
@@ -6788,32 +6788,32 @@ function cu(e) {
|
|
|
6788
6788
|
return null;
|
|
6789
6789
|
}
|
|
6790
6790
|
}
|
|
6791
|
-
const lu = ["AM", "PM"],
|
|
6791
|
+
const lu = ["AM", "PM"], Cp = ["Before Christ", "Anno Domini"], Sp = ["BC", "AD"], xp = ["B", "A"];
|
|
6792
6792
|
function uu(e) {
|
|
6793
6793
|
switch (e) {
|
|
6794
6794
|
case "narrow":
|
|
6795
|
-
return [...
|
|
6795
|
+
return [...xp];
|
|
6796
6796
|
case "short":
|
|
6797
|
-
return [...
|
|
6797
|
+
return [...Sp];
|
|
6798
6798
|
case "long":
|
|
6799
|
-
return [...
|
|
6799
|
+
return [...Cp];
|
|
6800
6800
|
default:
|
|
6801
6801
|
return null;
|
|
6802
6802
|
}
|
|
6803
6803
|
}
|
|
6804
|
-
function
|
|
6804
|
+
function kp(e) {
|
|
6805
6805
|
return lu[e.hour < 12 ? 0 : 1];
|
|
6806
6806
|
}
|
|
6807
|
-
function
|
|
6807
|
+
function Ip(e, t) {
|
|
6808
6808
|
return cu(t)[e.weekday - 1];
|
|
6809
6809
|
}
|
|
6810
|
-
function
|
|
6810
|
+
function Np(e, t) {
|
|
6811
6811
|
return iu(t)[e.month - 1];
|
|
6812
6812
|
}
|
|
6813
|
-
function
|
|
6813
|
+
function Ep(e, t) {
|
|
6814
6814
|
return uu(t)[e.year < 0 ? 0 : 1];
|
|
6815
6815
|
}
|
|
6816
|
-
function
|
|
6816
|
+
function Ap(e, t, n = "always", r = !1) {
|
|
6817
6817
|
const s = {
|
|
6818
6818
|
years: ["year", "yr."],
|
|
6819
6819
|
quarters: ["quarter", "qtr."],
|
|
@@ -6844,7 +6844,7 @@ function ba(e, t) {
|
|
|
6844
6844
|
r.literal ? n += r.val : n += t(r.val);
|
|
6845
6845
|
return n;
|
|
6846
6846
|
}
|
|
6847
|
-
const
|
|
6847
|
+
const Op = {
|
|
6848
6848
|
D: Kr,
|
|
6849
6849
|
DD: Nl,
|
|
6850
6850
|
DDD: El,
|
|
@@ -6883,7 +6883,7 @@ class ke {
|
|
|
6883
6883
|
return r.length > 0 && i.push({ literal: s || /^\s+$/.test(r), val: r }), i;
|
|
6884
6884
|
}
|
|
6885
6885
|
static macroTokenToFormatOpts(t) {
|
|
6886
|
-
return
|
|
6886
|
+
return Op[t];
|
|
6887
6887
|
}
|
|
6888
6888
|
constructor(t, n) {
|
|
6889
6889
|
this.opts = n, this.loc = t, this.systemLoc = null;
|
|
@@ -6913,13 +6913,13 @@ class ke {
|
|
|
6913
6913
|
return n > 0 && (s.padTo = n), r && (s.signDisplay = r), this.loc.numberFormatter(s).format(t);
|
|
6914
6914
|
}
|
|
6915
6915
|
formatDateTimeFromString(t, n) {
|
|
6916
|
-
const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (g, m) => this.loc.extract(t, g, m), o = (g) => t.isOffsetFixed && t.offset === 0 && g.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, g.format) : "", a = () => r ?
|
|
6916
|
+
const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (g, m) => this.loc.extract(t, g, m), o = (g) => t.isOffsetFixed && t.offset === 0 && g.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, g.format) : "", a = () => r ? kp(t) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), c = (g, m) => r ? Np(t, g) : i(m ? { month: g } : { month: g, day: "numeric" }, "month"), l = (g, m) => r ? Ip(t, g) : i(
|
|
6917
6917
|
m ? { weekday: g } : { weekday: g, month: "long", day: "numeric" },
|
|
6918
6918
|
"weekday"
|
|
6919
6919
|
), f = (g) => {
|
|
6920
6920
|
const m = ke.macroTokenToFormatOpts(g);
|
|
6921
6921
|
return m ? this.formatWithSystemDefault(t, m) : g;
|
|
6922
|
-
}, d = (g) => r ?
|
|
6922
|
+
}, d = (g) => r ? Ep(t, g) : i({ era: g }, "era"), h = (g) => {
|
|
6923
6923
|
switch (g) {
|
|
6924
6924
|
case "S":
|
|
6925
6925
|
return this.num(t.millisecond);
|
|
@@ -7123,14 +7123,14 @@ function fu(...e) {
|
|
|
7123
7123
|
return [r, null, n + s];
|
|
7124
7124
|
};
|
|
7125
7125
|
}
|
|
7126
|
-
const gu = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,
|
|
7126
|
+
const gu = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, Dp = `(?:${gu.source}?(?:\\[(${du.source})\\])?)?`, oo = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, hu = RegExp(`${oo.source}${Dp}`), ao = RegExp(`(?:[Tt]${hu.source})?`), $p = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Rp = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Mp = /(\d{4})-?(\d{3})/, Lp = fu("weekYear", "weekNumber", "weekDay"), Pp = fu("year", "ordinal"), Fp = /(\d{4})-(\d\d)-(\d\d)/, mu = RegExp(
|
|
7127
7127
|
`${oo.source} ?(?:${gu.source}|(${du.source}))?`
|
|
7128
|
-
),
|
|
7128
|
+
), _p = RegExp(`(?: ${mu.source})?`);
|
|
7129
7129
|
function fn(e, t, n) {
|
|
7130
7130
|
const r = e[t];
|
|
7131
7131
|
return _(r) ? n : Et(r);
|
|
7132
7132
|
}
|
|
7133
|
-
function
|
|
7133
|
+
function qp(e, t) {
|
|
7134
7134
|
return [{
|
|
7135
7135
|
year: fn(e, t),
|
|
7136
7136
|
month: fn(e, t + 1, 1),
|
|
@@ -7153,8 +7153,8 @@ function hr(e, t) {
|
|
|
7153
7153
|
const n = e[t] ? vt.create(e[t]) : null;
|
|
7154
7154
|
return [{}, n, t + 1];
|
|
7155
7155
|
}
|
|
7156
|
-
const
|
|
7157
|
-
function
|
|
7156
|
+
const Wp = RegExp(`^T?${oo.source}$`), Up = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
7157
|
+
function zp(e) {
|
|
7158
7158
|
const [t, n, r, s, i, o, a, c, l] = e, f = t[0] === "-", d = c && c[0] === "-", h = (g, m = !1) => g !== void 0 && (m || g && f) ? -g : g;
|
|
7159
7159
|
return [
|
|
7160
7160
|
{
|
|
@@ -7169,7 +7169,7 @@ function Up(e) {
|
|
|
7169
7169
|
}
|
|
7170
7170
|
];
|
|
7171
7171
|
}
|
|
7172
|
-
const
|
|
7172
|
+
const Vp = {
|
|
7173
7173
|
GMT: 0,
|
|
7174
7174
|
EDT: -4 * 60,
|
|
7175
7175
|
EST: -5 * 60,
|
|
@@ -7190,8 +7190,8 @@ function co(e, t, n, r, s, i, o) {
|
|
|
7190
7190
|
};
|
|
7191
7191
|
return o && (a.second = Et(o)), e && (a.weekday = e.length > 3 ? ou.indexOf(e) + 1 : au.indexOf(e) + 1), a;
|
|
7192
7192
|
}
|
|
7193
|
-
const
|
|
7194
|
-
function
|
|
7193
|
+
const Bp = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
|
|
7194
|
+
function jp(e) {
|
|
7195
7195
|
const [
|
|
7196
7196
|
,
|
|
7197
7197
|
t,
|
|
@@ -7207,27 +7207,22 @@ function Bp(e) {
|
|
|
7207
7207
|
d
|
|
7208
7208
|
] = e, h = co(t, s, r, n, i, o, a);
|
|
7209
7209
|
let g;
|
|
7210
|
-
return c ? g =
|
|
7210
|
+
return c ? g = Vp[c] : l ? g = 0 : g = ms(f, d), [h, new Ee(g)];
|
|
7211
7211
|
}
|
|
7212
|
-
function
|
|
7212
|
+
function Gp(e) {
|
|
7213
7213
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
7214
7214
|
}
|
|
7215
|
-
const
|
|
7215
|
+
const Hp = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, Zp = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, Yp = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
7216
7216
|
function Ta(e) {
|
|
7217
7217
|
const [, t, n, r, s, i, o, a] = e;
|
|
7218
7218
|
return [co(t, s, r, n, i, o, a), Ee.utcInstance];
|
|
7219
7219
|
}
|
|
7220
|
-
function
|
|
7220
|
+
function Kp(e) {
|
|
7221
7221
|
const [, t, n, r, s, i, o, a] = e;
|
|
7222
7222
|
return [co(t, a, n, r, s, i, o), Ee.utcInstance];
|
|
7223
7223
|
}
|
|
7224
|
-
const
|
|
7225
|
-
|
|
7226
|
-
In,
|
|
7227
|
-
gr,
|
|
7228
|
-
hr
|
|
7229
|
-
), ey = xn(
|
|
7230
|
-
Mp,
|
|
7224
|
+
const Qp = Sn($p, ao), Xp = Sn(Rp, ao), Jp = Sn(Mp, ao), ey = Sn(hu), pu = xn(
|
|
7225
|
+
qp,
|
|
7231
7226
|
In,
|
|
7232
7227
|
gr,
|
|
7233
7228
|
hr
|
|
@@ -7237,47 +7232,52 @@ const Kp = Sn(Dp, ao), Qp = Sn($p, ao), Xp = Sn(Rp, ao), Jp = Sn(hu), pu = xn(
|
|
|
7237
7232
|
gr,
|
|
7238
7233
|
hr
|
|
7239
7234
|
), ny = xn(
|
|
7235
|
+
Pp,
|
|
7236
|
+
In,
|
|
7237
|
+
gr,
|
|
7238
|
+
hr
|
|
7239
|
+
), ry = xn(
|
|
7240
7240
|
In,
|
|
7241
7241
|
gr,
|
|
7242
7242
|
hr
|
|
7243
7243
|
);
|
|
7244
|
-
function
|
|
7244
|
+
function sy(e) {
|
|
7245
7245
|
return kn(
|
|
7246
7246
|
e,
|
|
7247
|
-
[
|
|
7248
|
-
[Qp, ey],
|
|
7247
|
+
[Qp, pu],
|
|
7249
7248
|
[Xp, ty],
|
|
7250
|
-
[Jp, ny]
|
|
7249
|
+
[Jp, ny],
|
|
7250
|
+
[ey, ry]
|
|
7251
7251
|
);
|
|
7252
7252
|
}
|
|
7253
|
-
function sy(e) {
|
|
7254
|
-
return kn(jp(e), [Vp, Bp]);
|
|
7255
|
-
}
|
|
7256
7253
|
function iy(e) {
|
|
7254
|
+
return kn(Gp(e), [Bp, jp]);
|
|
7255
|
+
}
|
|
7256
|
+
function oy(e) {
|
|
7257
7257
|
return kn(
|
|
7258
7258
|
e,
|
|
7259
|
-
[Gp, Ta],
|
|
7260
7259
|
[Hp, Ta],
|
|
7261
|
-
[Zp,
|
|
7260
|
+
[Zp, Ta],
|
|
7261
|
+
[Yp, Kp]
|
|
7262
7262
|
);
|
|
7263
7263
|
}
|
|
7264
|
-
function
|
|
7265
|
-
return kn(e, [
|
|
7264
|
+
function ay(e) {
|
|
7265
|
+
return kn(e, [Up, zp]);
|
|
7266
7266
|
}
|
|
7267
|
-
const
|
|
7268
|
-
function
|
|
7269
|
-
return kn(e, [
|
|
7267
|
+
const cy = xn(In);
|
|
7268
|
+
function ly(e) {
|
|
7269
|
+
return kn(e, [Wp, cy]);
|
|
7270
7270
|
}
|
|
7271
|
-
const
|
|
7271
|
+
const uy = Sn(Fp, _p), dy = Sn(mu), fy = xn(
|
|
7272
7272
|
In,
|
|
7273
7273
|
gr,
|
|
7274
7274
|
hr
|
|
7275
7275
|
);
|
|
7276
|
-
function
|
|
7276
|
+
function gy(e) {
|
|
7277
7277
|
return kn(
|
|
7278
7278
|
e,
|
|
7279
|
-
[
|
|
7280
|
-
[
|
|
7279
|
+
[uy, pu],
|
|
7280
|
+
[dy, fy]
|
|
7281
7281
|
);
|
|
7282
7282
|
}
|
|
7283
7283
|
const Ca = "Invalid Duration", yu = {
|
|
@@ -7297,7 +7297,7 @@ const Ca = "Invalid Duration", yu = {
|
|
|
7297
7297
|
hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1e3 },
|
|
7298
7298
|
minutes: { seconds: 60, milliseconds: 60 * 1e3 },
|
|
7299
7299
|
seconds: { milliseconds: 1e3 }
|
|
7300
|
-
},
|
|
7300
|
+
}, hy = {
|
|
7301
7301
|
years: {
|
|
7302
7302
|
quarters: 4,
|
|
7303
7303
|
months: 12,
|
|
@@ -7326,7 +7326,7 @@ const Ca = "Invalid Duration", yu = {
|
|
|
7326
7326
|
milliseconds: 30 * 24 * 60 * 60 * 1e3
|
|
7327
7327
|
},
|
|
7328
7328
|
...yu
|
|
7329
|
-
}, je = 146097 / 400, rn = 146097 / 4800,
|
|
7329
|
+
}, je = 146097 / 400, rn = 146097 / 4800, my = {
|
|
7330
7330
|
years: {
|
|
7331
7331
|
quarters: 4,
|
|
7332
7332
|
months: 12,
|
|
@@ -7365,7 +7365,7 @@ const Ca = "Invalid Duration", yu = {
|
|
|
7365
7365
|
"minutes",
|
|
7366
7366
|
"seconds",
|
|
7367
7367
|
"milliseconds"
|
|
7368
|
-
],
|
|
7368
|
+
], py = Wt.slice(0).reverse();
|
|
7369
7369
|
function gt(e, t, n = !1) {
|
|
7370
7370
|
const r = {
|
|
7371
7371
|
values: n ? t.values : { ...e.values, ...t.values || {} },
|
|
@@ -7377,7 +7377,7 @@ function gt(e, t, n = !1) {
|
|
|
7377
7377
|
}
|
|
7378
7378
|
function vu(e, t) {
|
|
7379
7379
|
let n = t.milliseconds ?? 0;
|
|
7380
|
-
for (const r of
|
|
7380
|
+
for (const r of py.slice(1))
|
|
7381
7381
|
t[r] && (n += t[r] * e[r].milliseconds);
|
|
7382
7382
|
return n;
|
|
7383
7383
|
}
|
|
@@ -7413,7 +7413,7 @@ class B {
|
|
|
7413
7413
|
*/
|
|
7414
7414
|
constructor(t) {
|
|
7415
7415
|
const n = t.conversionAccuracy === "longterm" || !1;
|
|
7416
|
-
let r = n ?
|
|
7416
|
+
let r = n ? my : hy;
|
|
7417
7417
|
t.matrix && (r = t.matrix), this.values = t.values, this.loc = t.loc || Y.create(), this.conversionAccuracy = n ? "longterm" : "casual", this.invalid = t.invalid || null, this.matrix = r, this.isLuxonDuration = !0;
|
|
7418
7418
|
}
|
|
7419
7419
|
/**
|
|
@@ -7496,7 +7496,7 @@ class B {
|
|
|
7496
7496
|
* @return {Duration}
|
|
7497
7497
|
*/
|
|
7498
7498
|
static fromISO(t, n) {
|
|
7499
|
-
const [r] =
|
|
7499
|
+
const [r] = ay(t);
|
|
7500
7500
|
return r ? B.fromObject(r, n) : B.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
|
|
7501
7501
|
}
|
|
7502
7502
|
/**
|
|
@@ -7516,7 +7516,7 @@ class B {
|
|
|
7516
7516
|
* @return {Duration}
|
|
7517
7517
|
*/
|
|
7518
7518
|
static fromISOTime(t, n) {
|
|
7519
|
-
const [r] =
|
|
7519
|
+
const [r] = ly(t);
|
|
7520
7520
|
return r ? B.fromObject(r, n) : B.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
|
|
7521
7521
|
}
|
|
7522
7522
|
/**
|
|
@@ -7530,7 +7530,7 @@ class B {
|
|
|
7530
7530
|
throw new xe("need to specify a reason the Duration is invalid");
|
|
7531
7531
|
const r = t instanceof et ? t : new et(t, n);
|
|
7532
7532
|
if (le.throwOnInvalid)
|
|
7533
|
-
throw new
|
|
7533
|
+
throw new zm(r);
|
|
7534
7534
|
return new B({ invalid: r });
|
|
7535
7535
|
}
|
|
7536
7536
|
/**
|
|
@@ -8004,7 +8004,7 @@ class B {
|
|
|
8004
8004
|
}
|
|
8005
8005
|
}
|
|
8006
8006
|
const sn = "Invalid Interval";
|
|
8007
|
-
function
|
|
8007
|
+
function yy(e, t) {
|
|
8008
8008
|
return !e || !e.isValid ? ce.invalid("missing or invalid start") : !t || !t.isValid ? ce.invalid("missing or invalid end") : t < e ? ce.invalid(
|
|
8009
8009
|
"end before start",
|
|
8010
8010
|
`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`
|
|
@@ -8028,7 +8028,7 @@ class ce {
|
|
|
8028
8028
|
throw new xe("need to specify a reason the Interval is invalid");
|
|
8029
8029
|
const r = t instanceof et ? t : new et(t, n);
|
|
8030
8030
|
if (le.throwOnInvalid)
|
|
8031
|
-
throw new
|
|
8031
|
+
throw new Um(r);
|
|
8032
8032
|
return new ce({ invalid: r });
|
|
8033
8033
|
}
|
|
8034
8034
|
/**
|
|
@@ -8038,7 +8038,7 @@ class ce {
|
|
|
8038
8038
|
* @return {Interval}
|
|
8039
8039
|
*/
|
|
8040
8040
|
static fromDateTimes(t, n) {
|
|
8041
|
-
const r = Mn(t), s = Mn(n), i =
|
|
8041
|
+
const r = Mn(t), s = Mn(n), i = yy(r, s);
|
|
8042
8042
|
return i ?? new ce({
|
|
8043
8043
|
start: r,
|
|
8044
8044
|
end: s
|
|
@@ -8645,7 +8645,7 @@ function ka(e, t) {
|
|
|
8645
8645
|
const n = (s) => s.toUTC(0, { keepLocalTime: !0 }).startOf("day").valueOf(), r = n(t) - n(e);
|
|
8646
8646
|
return Math.floor(B.fromMillis(r).as("days"));
|
|
8647
8647
|
}
|
|
8648
|
-
function
|
|
8648
|
+
function vy(e, t, n) {
|
|
8649
8649
|
const r = [
|
|
8650
8650
|
["years", (c, l) => l.year - c.year],
|
|
8651
8651
|
["quarters", (c, l) => l.quarter - c.quarter + (l.year - c.year) * 4],
|
|
@@ -8664,8 +8664,8 @@ function yy(e, t, n) {
|
|
|
8664
8664
|
n.indexOf(c) >= 0 && (o = c, s[c] = l(e, t), a = i.plus(s), a > t ? (s[c]--, e = i.plus(s), e > t && (a = e, s[c]--, e = i.plus(s))) : e = a);
|
|
8665
8665
|
return [e, s, a, o];
|
|
8666
8666
|
}
|
|
8667
|
-
function
|
|
8668
|
-
let [s, i, o, a] =
|
|
8667
|
+
function wy(e, t, n, r) {
|
|
8668
|
+
let [s, i, o, a] = vy(e, t, n);
|
|
8669
8669
|
const c = t - s, l = n.filter(
|
|
8670
8670
|
(d) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(d) >= 0
|
|
8671
8671
|
);
|
|
@@ -8673,12 +8673,12 @@ function vy(e, t, n, r) {
|
|
|
8673
8673
|
const f = B.fromObject(i, r);
|
|
8674
8674
|
return l.length > 0 ? B.fromMillis(c, r).shiftTo(...l).plus(f) : f;
|
|
8675
8675
|
}
|
|
8676
|
-
const
|
|
8676
|
+
const by = "missing Intl.DateTimeFormat.formatToParts support";
|
|
8677
8677
|
function G(e, t = (n) => n) {
|
|
8678
|
-
return { regex: e, deser: ([n]) => t(
|
|
8678
|
+
return { regex: e, deser: ([n]) => t(up(n)) };
|
|
8679
8679
|
}
|
|
8680
|
-
const
|
|
8681
|
-
function
|
|
8680
|
+
const Ty = " ", wu = `[ ${Ty}]`, bu = new RegExp(wu, "g");
|
|
8681
|
+
function Cy(e) {
|
|
8682
8682
|
return e.replace(/\./g, "\\.?").replace(bu, wu);
|
|
8683
8683
|
}
|
|
8684
8684
|
function Ia(e) {
|
|
@@ -8686,7 +8686,7 @@ function Ia(e) {
|
|
|
8686
8686
|
}
|
|
8687
8687
|
function Xe(e, t) {
|
|
8688
8688
|
return e === null ? null : {
|
|
8689
|
-
regex: RegExp(e.map(
|
|
8689
|
+
regex: RegExp(e.map(Cy).join("|")),
|
|
8690
8690
|
deser: ([n]) => e.findIndex((r) => Ia(n) === Ia(r)) + t
|
|
8691
8691
|
};
|
|
8692
8692
|
}
|
|
@@ -8696,11 +8696,11 @@ function Na(e, t) {
|
|
|
8696
8696
|
function xr(e) {
|
|
8697
8697
|
return { regex: e, deser: ([t]) => t };
|
|
8698
8698
|
}
|
|
8699
|
-
function
|
|
8699
|
+
function Sy(e) {
|
|
8700
8700
|
return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
8701
8701
|
}
|
|
8702
|
-
function
|
|
8703
|
-
const n = Qe(t), r = Qe(t, "{2}"), s = Qe(t, "{3}"), i = Qe(t, "{4}"), o = Qe(t, "{6}"), a = Qe(t, "{1,2}"), c = Qe(t, "{1,3}"), l = Qe(t, "{1,6}"), f = Qe(t, "{1,9}"), d = Qe(t, "{2,4}"), h = Qe(t, "{4,6}"), g = (b) => ({ regex: RegExp(
|
|
8702
|
+
function xy(e, t) {
|
|
8703
|
+
const n = Qe(t), r = Qe(t, "{2}"), s = Qe(t, "{3}"), i = Qe(t, "{4}"), o = Qe(t, "{6}"), a = Qe(t, "{1,2}"), c = Qe(t, "{1,3}"), l = Qe(t, "{1,6}"), f = Qe(t, "{1,9}"), d = Qe(t, "{2,4}"), h = Qe(t, "{4,6}"), g = (b) => ({ regex: RegExp(Sy(b.val)), deser: ([T]) => T, literal: !0 }), y = ((b) => {
|
|
8704
8704
|
if (e.literal)
|
|
8705
8705
|
return g(b);
|
|
8706
8706
|
switch (b.val) {
|
|
@@ -8806,11 +8806,11 @@ function Sy(e, t) {
|
|
|
8806
8806
|
return g(b);
|
|
8807
8807
|
}
|
|
8808
8808
|
})(e) || {
|
|
8809
|
-
invalidReason:
|
|
8809
|
+
invalidReason: by
|
|
8810
8810
|
};
|
|
8811
8811
|
return y.token = e, y;
|
|
8812
8812
|
}
|
|
8813
|
-
const
|
|
8813
|
+
const ky = {
|
|
8814
8814
|
year: {
|
|
8815
8815
|
"2-digit": "yy",
|
|
8816
8816
|
numeric: "yyyyy"
|
|
@@ -8852,7 +8852,7 @@ const xy = {
|
|
|
8852
8852
|
short: "ZZZ"
|
|
8853
8853
|
}
|
|
8854
8854
|
};
|
|
8855
|
-
function
|
|
8855
|
+
function Iy(e, t, n) {
|
|
8856
8856
|
const { type: r, value: s } = e;
|
|
8857
8857
|
if (r === "literal") {
|
|
8858
8858
|
const c = /^\s+$/.test(s);
|
|
@@ -8864,17 +8864,17 @@ function ky(e, t, n) {
|
|
|
8864
8864
|
const i = t[r];
|
|
8865
8865
|
let o = r;
|
|
8866
8866
|
r === "hour" && (t.hour12 != null ? o = t.hour12 ? "hour12" : "hour24" : t.hourCycle != null ? t.hourCycle === "h11" || t.hourCycle === "h12" ? o = "hour12" : o = "hour24" : o = n.hour12 ? "hour12" : "hour24");
|
|
8867
|
-
let a =
|
|
8867
|
+
let a = ky[o];
|
|
8868
8868
|
if (typeof a == "object" && (a = a[i]), a)
|
|
8869
8869
|
return {
|
|
8870
8870
|
literal: !1,
|
|
8871
8871
|
val: a
|
|
8872
8872
|
};
|
|
8873
8873
|
}
|
|
8874
|
-
function
|
|
8874
|
+
function Ny(e) {
|
|
8875
8875
|
return [`^${e.map((n) => n.regex).reduce((n, r) => `${n}(${r.source})`, "")}$`, e];
|
|
8876
8876
|
}
|
|
8877
|
-
function
|
|
8877
|
+
function Ey(e, t, n) {
|
|
8878
8878
|
const r = e.match(t);
|
|
8879
8879
|
if (r) {
|
|
8880
8880
|
const s = {};
|
|
@@ -8888,7 +8888,7 @@ function Ny(e, t, n) {
|
|
|
8888
8888
|
} else
|
|
8889
8889
|
return [r, {}];
|
|
8890
8890
|
}
|
|
8891
|
-
function
|
|
8891
|
+
function Ay(e) {
|
|
8892
8892
|
const t = (i) => {
|
|
8893
8893
|
switch (i) {
|
|
8894
8894
|
case "S":
|
|
@@ -8929,28 +8929,28 @@ function Ey(e) {
|
|
|
8929
8929
|
}, {}), n, r];
|
|
8930
8930
|
}
|
|
8931
8931
|
let Fs = null;
|
|
8932
|
-
function
|
|
8932
|
+
function Oy() {
|
|
8933
8933
|
return Fs || (Fs = q.fromMillis(1555555555555)), Fs;
|
|
8934
8934
|
}
|
|
8935
|
-
function
|
|
8935
|
+
function Dy(e, t) {
|
|
8936
8936
|
if (e.literal)
|
|
8937
8937
|
return e;
|
|
8938
8938
|
const n = ke.macroTokenToFormatOpts(e.val), r = xu(n, t);
|
|
8939
8939
|
return r == null || r.includes(void 0) ? e : r;
|
|
8940
8940
|
}
|
|
8941
8941
|
function Tu(e, t) {
|
|
8942
|
-
return Array.prototype.concat(...e.map((n) =>
|
|
8942
|
+
return Array.prototype.concat(...e.map((n) => Dy(n, t)));
|
|
8943
8943
|
}
|
|
8944
8944
|
class Cu {
|
|
8945
8945
|
constructor(t, n) {
|
|
8946
|
-
if (this.locale = t, this.format = n, this.tokens = Tu(ke.parseFormat(n), t), this.units = this.tokens.map((r) =>
|
|
8947
|
-
const [r, s] =
|
|
8946
|
+
if (this.locale = t, this.format = n, this.tokens = Tu(ke.parseFormat(n), t), this.units = this.tokens.map((r) => xy(r, t)), this.disqualifyingUnit = this.units.find((r) => r.invalidReason), !this.disqualifyingUnit) {
|
|
8947
|
+
const [r, s] = Ny(this.units);
|
|
8948
8948
|
this.regex = RegExp(r, "i"), this.handlers = s;
|
|
8949
8949
|
}
|
|
8950
8950
|
}
|
|
8951
8951
|
explainFromTokens(t) {
|
|
8952
8952
|
if (this.isValid) {
|
|
8953
|
-
const [n, r] =
|
|
8953
|
+
const [n, r] = Ey(t, this.regex, this.handlers), [s, i, o] = r ? Ay(r) : [null, null, void 0];
|
|
8954
8954
|
if (vn(r, "a") && vn(r, "H"))
|
|
8955
8955
|
throw new cn(
|
|
8956
8956
|
"Can't include meridiem when specifying 24-hour format"
|
|
@@ -8978,15 +8978,15 @@ class Cu {
|
|
|
8978
8978
|
function Su(e, t, n) {
|
|
8979
8979
|
return new Cu(e, n).explainFromTokens(t);
|
|
8980
8980
|
}
|
|
8981
|
-
function
|
|
8981
|
+
function $y(e, t, n) {
|
|
8982
8982
|
const { result: r, zone: s, specificOffset: i, invalidReason: o } = Su(e, t, n);
|
|
8983
8983
|
return [r, s, i, o];
|
|
8984
8984
|
}
|
|
8985
8985
|
function xu(e, t) {
|
|
8986
8986
|
if (!e)
|
|
8987
8987
|
return null;
|
|
8988
|
-
const r = ke.create(t, e).dtFormatter(
|
|
8989
|
-
return s.map((o) =>
|
|
8988
|
+
const r = ke.create(t, e).dtFormatter(Oy()), s = r.formatToParts(), i = r.resolvedOptions();
|
|
8989
|
+
return s.map((o) => Iy(o, e, i));
|
|
8990
8990
|
}
|
|
8991
8991
|
const _s = "Invalid DateTime", Ea = 864e13;
|
|
8992
8992
|
function qn(e) {
|
|
@@ -9116,20 +9116,20 @@ const Iu = {
|
|
|
9116
9116
|
minute: 0,
|
|
9117
9117
|
second: 0,
|
|
9118
9118
|
millisecond: 0
|
|
9119
|
-
},
|
|
9119
|
+
}, Ry = {
|
|
9120
9120
|
weekNumber: 1,
|
|
9121
9121
|
weekday: 1,
|
|
9122
9122
|
hour: 0,
|
|
9123
9123
|
minute: 0,
|
|
9124
9124
|
second: 0,
|
|
9125
9125
|
millisecond: 0
|
|
9126
|
-
},
|
|
9126
|
+
}, My = {
|
|
9127
9127
|
ordinal: 1,
|
|
9128
9128
|
hour: 0,
|
|
9129
9129
|
minute: 0,
|
|
9130
9130
|
second: 0,
|
|
9131
9131
|
millisecond: 0
|
|
9132
|
-
}, _r = ["year", "month", "day", "hour", "minute", "second", "millisecond"],
|
|
9132
|
+
}, _r = ["year", "month", "day", "hour", "minute", "second", "millisecond"], Ly = [
|
|
9133
9133
|
"weekYear",
|
|
9134
9134
|
"weekNumber",
|
|
9135
9135
|
"weekday",
|
|
@@ -9137,7 +9137,7 @@ const Iu = {
|
|
|
9137
9137
|
"minute",
|
|
9138
9138
|
"second",
|
|
9139
9139
|
"millisecond"
|
|
9140
|
-
],
|
|
9140
|
+
], Py = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
|
9141
9141
|
function qr(e) {
|
|
9142
9142
|
const t = {
|
|
9143
9143
|
year: "year",
|
|
@@ -9183,7 +9183,7 @@ function Da(e) {
|
|
|
9183
9183
|
return qr(e);
|
|
9184
9184
|
}
|
|
9185
9185
|
}
|
|
9186
|
-
function
|
|
9186
|
+
function Fy(e) {
|
|
9187
9187
|
if (Wn === void 0 && (Wn = le.now()), e.type !== "iana")
|
|
9188
9188
|
return e.offset(Wn);
|
|
9189
9189
|
const t = e.name;
|
|
@@ -9204,7 +9204,7 @@ function $a(e, t) {
|
|
|
9204
9204
|
const o = Xl(e) || Jl(e);
|
|
9205
9205
|
if (o)
|
|
9206
9206
|
return q.invalid(o);
|
|
9207
|
-
const a =
|
|
9207
|
+
const a = Fy(n);
|
|
9208
9208
|
[s, i] = Fr(e, a, n);
|
|
9209
9209
|
}
|
|
9210
9210
|
return new q({ ts: s, zone: n, loc: r, o: i });
|
|
@@ -9317,7 +9317,7 @@ class q {
|
|
|
9317
9317
|
* @return {DateTime}
|
|
9318
9318
|
*/
|
|
9319
9319
|
static fromJSDate(t, n = {}) {
|
|
9320
|
-
const r =
|
|
9320
|
+
const r = mp(t) ? t.valueOf() : NaN;
|
|
9321
9321
|
if (Number.isNaN(r))
|
|
9322
9322
|
return q.invalid("invalid input");
|
|
9323
9323
|
const s = At(n.zone, le.defaultZone);
|
|
@@ -9416,13 +9416,13 @@ class q {
|
|
|
9416
9416
|
throw new cn("Can't mix ordinal dates with month/day");
|
|
9417
9417
|
const y = m || i.weekday && !g;
|
|
9418
9418
|
let b, T, w = kr(c, l);
|
|
9419
|
-
y ? (b =
|
|
9419
|
+
y ? (b = Ly, T = Ry, w = Qr(w, o, a)) : f ? (b = Py, T = My, w = Ps(w)) : (b = _r, T = Iu);
|
|
9420
9420
|
let S = !1;
|
|
9421
9421
|
for (const D of b) {
|
|
9422
9422
|
const M = i[D];
|
|
9423
9423
|
_(M) ? S ? i[D] = T[D] : i[D] = w[D] : S = !0;
|
|
9424
9424
|
}
|
|
9425
|
-
const E = y ?
|
|
9425
|
+
const E = y ? fp(i, o, a) : f ? gp(i) : Xl(i), k = E || Jl(i);
|
|
9426
9426
|
if (k)
|
|
9427
9427
|
return q.invalid(k);
|
|
9428
9428
|
const A = y ? ma(i, o, a) : f ? pa(i) : i, [x, C] = Fr(A, l, r), I = new q({
|
|
@@ -9454,7 +9454,7 @@ class q {
|
|
|
9454
9454
|
* @return {DateTime}
|
|
9455
9455
|
*/
|
|
9456
9456
|
static fromISO(t, n = {}) {
|
|
9457
|
-
const [r, s] =
|
|
9457
|
+
const [r, s] = sy(t);
|
|
9458
9458
|
return on(r, s, n, "ISO 8601", t);
|
|
9459
9459
|
}
|
|
9460
9460
|
/**
|
|
@@ -9473,7 +9473,7 @@ class q {
|
|
|
9473
9473
|
* @return {DateTime}
|
|
9474
9474
|
*/
|
|
9475
9475
|
static fromRFC2822(t, n = {}) {
|
|
9476
|
-
const [r, s] =
|
|
9476
|
+
const [r, s] = iy(t);
|
|
9477
9477
|
return on(r, s, n, "RFC 2822", t);
|
|
9478
9478
|
}
|
|
9479
9479
|
/**
|
|
@@ -9493,7 +9493,7 @@ class q {
|
|
|
9493
9493
|
* @return {DateTime}
|
|
9494
9494
|
*/
|
|
9495
9495
|
static fromHTTP(t, n = {}) {
|
|
9496
|
-
const [r, s] =
|
|
9496
|
+
const [r, s] = oy(t);
|
|
9497
9497
|
return on(r, s, n, "HTTP", n);
|
|
9498
9498
|
}
|
|
9499
9499
|
/**
|
|
@@ -9517,7 +9517,7 @@ class q {
|
|
|
9517
9517
|
locale: s,
|
|
9518
9518
|
numberingSystem: i,
|
|
9519
9519
|
defaultToEN: !0
|
|
9520
|
-
}), [a, c, l, f] =
|
|
9520
|
+
}), [a, c, l, f] = $y(o, t, n);
|
|
9521
9521
|
return f ? q.invalid(f) : on(a, c, r, `format ${n}`, t, l);
|
|
9522
9522
|
}
|
|
9523
9523
|
/**
|
|
@@ -9548,7 +9548,7 @@ class q {
|
|
|
9548
9548
|
* @return {DateTime}
|
|
9549
9549
|
*/
|
|
9550
9550
|
static fromSQL(t, n = {}) {
|
|
9551
|
-
const [r, s] =
|
|
9551
|
+
const [r, s] = gy(t);
|
|
9552
9552
|
return on(r, s, n, "SQL", t);
|
|
9553
9553
|
}
|
|
9554
9554
|
/**
|
|
@@ -9562,7 +9562,7 @@ class q {
|
|
|
9562
9562
|
throw new xe("need to specify a reason the DateTime is invalid");
|
|
9563
9563
|
const r = t instanceof et ? t : new et(t, n);
|
|
9564
9564
|
if (le.throwOnInvalid)
|
|
9565
|
-
throw new
|
|
9565
|
+
throw new Wm(r);
|
|
9566
9566
|
return new q({ invalid: r });
|
|
9567
9567
|
}
|
|
9568
9568
|
/**
|
|
@@ -10446,7 +10446,7 @@ class q {
|
|
|
10446
10446
|
diff(t, n = "milliseconds", r = {}) {
|
|
10447
10447
|
if (!this.isValid || !t.isValid)
|
|
10448
10448
|
return B.invalid("created by diffing an invalid DateTime");
|
|
10449
|
-
const s = { locale: this.locale, numberingSystem: this.numberingSystem, ...r }, i =
|
|
10449
|
+
const s = { locale: this.locale, numberingSystem: this.numberingSystem, ...r }, i = pp(n).map(B.normalizeUnit), o = t.valueOf() > this.valueOf(), a = o ? this : t, c = o ? t : this, l = wy(a, c, i, s);
|
|
10450
10450
|
return o ? l.negate() : l;
|
|
10451
10451
|
}
|
|
10452
10452
|
/**
|
|
@@ -10661,7 +10661,7 @@ class q {
|
|
|
10661
10661
|
* @type {Object}
|
|
10662
10662
|
*/
|
|
10663
10663
|
static get DATE_MED_WITH_WEEKDAY() {
|
|
10664
|
-
return
|
|
10664
|
+
return Vm;
|
|
10665
10665
|
}
|
|
10666
10666
|
/**
|
|
10667
10667
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
|
@@ -10766,7 +10766,7 @@ class q {
|
|
|
10766
10766
|
* @type {Object}
|
|
10767
10767
|
*/
|
|
10768
10768
|
static get DATETIME_MED_WITH_WEEKDAY() {
|
|
10769
|
-
return
|
|
10769
|
+
return Bm;
|
|
10770
10770
|
}
|
|
10771
10771
|
/**
|
|
10772
10772
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
@@ -10813,7 +10813,7 @@ const Nu = (e) => q.fromISO(e).toFormat("MMM d"), Ei = ({
|
|
|
10813
10813
|
withInlineSpacing: t
|
|
10814
10814
|
}) => {
|
|
10815
10815
|
const { resolveToken: n } = W(), r = e.workflowState === $e.Deleted;
|
|
10816
|
-
return /* @__PURE__ */ O(
|
|
10816
|
+
return /* @__PURE__ */ O(im, { $withInlineSpacing: t, children: [
|
|
10817
10817
|
r ? /* @__PURE__ */ u(qt, { color: "danger", children: /* @__PURE__ */ u(K, { weight: "bold", children: n("categoryArchived") }) }) : e.createdAt ? /* @__PURE__ */ u(qt, { color: "info", children: /* @__PURE__ */ u(K, { weight: "bold", children: n({
|
|
10818
10818
|
key: "createdAt",
|
|
10819
10819
|
vars: { date: Nu(e.createdAt) }
|
|
@@ -11020,7 +11020,7 @@ Ce`
|
|
|
11020
11020
|
}
|
|
11021
11021
|
}
|
|
11022
11022
|
`;
|
|
11023
|
-
const
|
|
11023
|
+
const _y = Ce`
|
|
11024
11024
|
query GetAccountUsers(
|
|
11025
11025
|
$accountId: ID!
|
|
11026
11026
|
$first: Int
|
|
@@ -11046,7 +11046,7 @@ const Fy = Ce`
|
|
|
11046
11046
|
}
|
|
11047
11047
|
}
|
|
11048
11048
|
}
|
|
11049
|
-
`,
|
|
11049
|
+
`, qy = Ce`
|
|
11050
11050
|
query GetAllActiveTags($accountId: ID!, $first: Int, $after: String) {
|
|
11051
11051
|
account(id: $accountId) {
|
|
11052
11052
|
_id
|
|
@@ -11071,7 +11071,7 @@ const Fy = Ce`
|
|
|
11071
11071
|
}
|
|
11072
11072
|
}
|
|
11073
11073
|
}
|
|
11074
|
-
`,
|
|
11074
|
+
`, Wy = Ce`
|
|
11075
11075
|
query GetUserInstitutionalTags($userId: ID!, $accountId: ID!) {
|
|
11076
11076
|
user(id: $userId) {
|
|
11077
11077
|
_id
|
|
@@ -11133,14 +11133,14 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11133
11133
|
category: e.category ?? t ?? { _id: "", name: "" },
|
|
11134
11134
|
createdAt: e.createdAt ?? void 0,
|
|
11135
11135
|
updatedAt: e.updatedAt ?? void 0
|
|
11136
|
-
}),
|
|
11136
|
+
}), Uy = (e) => ({
|
|
11137
11137
|
_id: e._id,
|
|
11138
11138
|
name: e.name,
|
|
11139
11139
|
description: e.description,
|
|
11140
11140
|
workflowState: e.workflowState,
|
|
11141
11141
|
createdAt: e.createdAt ?? void 0,
|
|
11142
11142
|
updatedAt: e.updatedAt ?? void 0
|
|
11143
|
-
}),
|
|
11143
|
+
}), zy = (e) => ({
|
|
11144
11144
|
_id: e._id,
|
|
11145
11145
|
name: e.name,
|
|
11146
11146
|
description: e.description,
|
|
@@ -11156,11 +11156,11 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11156
11156
|
avatarUrl: e.avatarUrl ?? void 0,
|
|
11157
11157
|
email: e.email ?? void 0,
|
|
11158
11158
|
sisId: e.sisId ?? void 0
|
|
11159
|
-
}),
|
|
11159
|
+
}), Vy = (e) => ({
|
|
11160
11160
|
_id: e._id,
|
|
11161
11161
|
name: e.name,
|
|
11162
11162
|
category: e.category ?? { _id: "", name: "" }
|
|
11163
|
-
}),
|
|
11163
|
+
}), By = (e) => {
|
|
11164
11164
|
var t, n, r, s;
|
|
11165
11165
|
return {
|
|
11166
11166
|
tags: (((t = e.tagsConnection) == null ? void 0 : t.nodes) ?? []).filter(lt).map((i) => lo(i, { _id: e._id, name: e.name })),
|
|
@@ -11170,7 +11170,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11170
11170
|
totalCount: (s = e.tagsConnection) == null ? void 0 : s.pageInfo.totalCount
|
|
11171
11171
|
}
|
|
11172
11172
|
};
|
|
11173
|
-
},
|
|
11173
|
+
}, jy = 500, Gy = 5 * 60 * 1e3, Nn = ({ enabled: e = !1 } = {}) => {
|
|
11174
11174
|
const { accountId: t, executeQuery: n } = oe();
|
|
11175
11175
|
return wt({
|
|
11176
11176
|
queryKey: ["allCategories", t],
|
|
@@ -11182,18 +11182,18 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11182
11182
|
for (; i; ) {
|
|
11183
11183
|
const c = (o = (await n(Au, {
|
|
11184
11184
|
accountId: t,
|
|
11185
|
-
first:
|
|
11185
|
+
first: jy,
|
|
11186
11186
|
after: s,
|
|
11187
11187
|
workflowState: "active",
|
|
11188
11188
|
tagsFirst: 1
|
|
11189
|
-
})).account) == null ? void 0 : o.institutionalTagCategoriesConnection, l = ((c == null ? void 0 : c.nodes) ?? []).filter(lt).map(
|
|
11189
|
+
})).account) == null ? void 0 : o.institutionalTagCategoriesConnection, l = ((c == null ? void 0 : c.nodes) ?? []).filter(lt).map(Uy);
|
|
11190
11190
|
r.push(...l), i = (c == null ? void 0 : c.pageInfo.hasNextPage) ?? !1, s = (c == null ? void 0 : c.pageInfo.endCursor) ?? void 0;
|
|
11191
11191
|
}
|
|
11192
11192
|
return r;
|
|
11193
11193
|
},
|
|
11194
|
-
staleTime:
|
|
11194
|
+
staleTime: Gy
|
|
11195
11195
|
});
|
|
11196
|
-
},
|
|
11196
|
+
}, Hy = 500, Zy = 5 * 60 * 1e3, uo = ({ enabled: e = !1 } = {}) => {
|
|
11197
11197
|
const { accountId: t, executeQuery: n } = oe();
|
|
11198
11198
|
return wt({
|
|
11199
11199
|
queryKey: ["allTagNames", t],
|
|
@@ -11205,7 +11205,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11205
11205
|
for (; i; ) {
|
|
11206
11206
|
const c = (o = (await n(Ou, {
|
|
11207
11207
|
accountId: t,
|
|
11208
|
-
first:
|
|
11208
|
+
first: Hy,
|
|
11209
11209
|
after: s,
|
|
11210
11210
|
workflowState: "active"
|
|
11211
11211
|
})).account) == null ? void 0 : o.institutionalTagsConnection;
|
|
@@ -11215,7 +11215,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11215
11215
|
}
|
|
11216
11216
|
return [...r];
|
|
11217
11217
|
},
|
|
11218
|
-
staleTime:
|
|
11218
|
+
staleTime: Zy
|
|
11219
11219
|
});
|
|
11220
11220
|
}, fo = N.div`
|
|
11221
11221
|
container-type: inline-size;
|
|
@@ -11263,7 +11263,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11263
11263
|
))
|
|
11264
11264
|
}
|
|
11265
11265
|
);
|
|
11266
|
-
},
|
|
11266
|
+
}, Yy = N.div`
|
|
11267
11267
|
display: grid;
|
|
11268
11268
|
grid-template-columns: 1fr 1fr;
|
|
11269
11269
|
gap: ${p.spacing.small};
|
|
@@ -11339,7 +11339,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11339
11339
|
}) => {
|
|
11340
11340
|
const { translations: d } = W();
|
|
11341
11341
|
return /* @__PURE__ */ O(Mi, { description: null, layout: "stacked", vAlign: "top", children: [
|
|
11342
|
-
/* @__PURE__ */ O(
|
|
11342
|
+
/* @__PURE__ */ O(Yy, { children: [
|
|
11343
11343
|
/* @__PURE__ */ u(
|
|
11344
11344
|
ys,
|
|
11345
11345
|
{
|
|
@@ -11521,7 +11521,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11521
11521
|
onTagDescriptionRequired: () => c([{ type: "newError", text: l.tagDescriptionRequired }]),
|
|
11522
11522
|
onConflictError: () => o([{ type: "newError", text: l.tagAlreadyExists }])
|
|
11523
11523
|
};
|
|
11524
|
-
},
|
|
11524
|
+
}, Ky = ({
|
|
11525
11525
|
categories: e,
|
|
11526
11526
|
submitRef: t,
|
|
11527
11527
|
initialCategoryId: n
|
|
@@ -11555,7 +11555,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11555
11555
|
mutationFn: async () => {
|
|
11556
11556
|
const P = await C();
|
|
11557
11557
|
return h && (L.current = P), U(
|
|
11558
|
-
|
|
11558
|
+
fm,
|
|
11559
11559
|
{ input: { name: r, description: s, categoryId: P } }
|
|
11560
11560
|
);
|
|
11561
11561
|
},
|
|
@@ -11592,7 +11592,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11592
11592
|
onNewCategoryNameChange: k,
|
|
11593
11593
|
onNewCategoryDescriptionChange: A
|
|
11594
11594
|
};
|
|
11595
|
-
},
|
|
11595
|
+
}, Qy = ({
|
|
11596
11596
|
tag: e,
|
|
11597
11597
|
categories: t,
|
|
11598
11598
|
submitRef: n
|
|
@@ -11684,7 +11684,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11684
11684
|
onCategoryChange: b,
|
|
11685
11685
|
onNewCategoryNameChange: T,
|
|
11686
11686
|
onNewCategoryDescriptionChange: w
|
|
11687
|
-
} =
|
|
11687
|
+
} = Ky({
|
|
11688
11688
|
categories: e,
|
|
11689
11689
|
submitRef: t,
|
|
11690
11690
|
initialCategoryId: n == null ? void 0 : n.id
|
|
@@ -11761,7 +11761,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11761
11761
|
color: "primary-inverse"
|
|
11762
11762
|
}
|
|
11763
11763
|
) });
|
|
11764
|
-
return /* @__PURE__ */ O(
|
|
11764
|
+
return /* @__PURE__ */ O(rm, { children: [
|
|
11765
11765
|
d && e.workflowState === $e.Active && /* @__PURE__ */ u(Ut, { renderTip: t.addTags, children: /* @__PURE__ */ u(
|
|
11766
11766
|
We,
|
|
11767
11767
|
{
|
|
@@ -11810,23 +11810,23 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11810
11810
|
}
|
|
11811
11811
|
)
|
|
11812
11812
|
] });
|
|
11813
|
-
},
|
|
11813
|
+
}, Xy = ({ category: e, isExpanded: t }) => {
|
|
11814
11814
|
const { isMobile: n } = ur();
|
|
11815
11815
|
return n ? /* @__PURE__ */ O(na, { $isMobile: !0, children: [
|
|
11816
11816
|
/* @__PURE__ */ u(ra, { children: /* @__PURE__ */ u(Yn, { level: "h3", variant: "titleCardMini", children: e.name }) }),
|
|
11817
|
-
/* @__PURE__ */ u(
|
|
11817
|
+
/* @__PURE__ */ u(nm, { children: /* @__PURE__ */ u(K, { size: "medium", children: e.description }) }),
|
|
11818
11818
|
/* @__PURE__ */ u(Ei, { category: e })
|
|
11819
11819
|
] }) : /* @__PURE__ */ O(na, { children: [
|
|
11820
|
-
/* @__PURE__ */ O(
|
|
11820
|
+
/* @__PURE__ */ O(tm, { children: [
|
|
11821
11821
|
/* @__PURE__ */ u(ra, { children: /* @__PURE__ */ u(Yn, { level: "h3", variant: "titleCardMini", children: t ? /* @__PURE__ */ u(Wr, { children: e.name }) : e.name }) }),
|
|
11822
11822
|
t ? /* @__PURE__ */ u(K, { size: "medium", children: e.description }) : /* @__PURE__ */ u(K, { size: "medium", children: /* @__PURE__ */ u(Wr, { children: e.description }) })
|
|
11823
11823
|
] }),
|
|
11824
11824
|
!t && /* @__PURE__ */ u(Ei, { category: e, withInlineSpacing: !0 }),
|
|
11825
11825
|
/* @__PURE__ */ u(_u, { category: e })
|
|
11826
11826
|
] });
|
|
11827
|
-
},
|
|
11827
|
+
}, Jy = ({ category: e, isExpanded: t }) => {
|
|
11828
11828
|
const { isMobile: n } = ur();
|
|
11829
|
-
return /* @__PURE__ */ O(
|
|
11829
|
+
return /* @__PURE__ */ O(sm, { children: [
|
|
11830
11830
|
t && !n && /* @__PURE__ */ u(Ei, { category: e }),
|
|
11831
11831
|
n && /* @__PURE__ */ u(_u, { category: e })
|
|
11832
11832
|
] });
|
|
@@ -11835,7 +11835,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11835
11835
|
},
|
|
11836
11836
|
setPendingFocus: () => {
|
|
11837
11837
|
}
|
|
11838
|
-
}),
|
|
11838
|
+
}), ev = () => v.useContext(qu), tv = ({
|
|
11839
11839
|
children: e,
|
|
11840
11840
|
pendingFocusTagIdRef: t
|
|
11841
11841
|
}) => {
|
|
@@ -11851,7 +11851,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11851
11851
|
[t]
|
|
11852
11852
|
);
|
|
11853
11853
|
return /* @__PURE__ */ u(qu.Provider, { value: { registerTagTrigger: n, setPendingFocus: r }, children: e });
|
|
11854
|
-
},
|
|
11854
|
+
}, nv = (e, t) => {
|
|
11855
11855
|
const n = ze(), { showAlert: r } = Me(), { translations: s, resolveToken: i } = W(), { executeQuery: o } = oe(), { closeModal: a } = Le(), { mutate: c, isPending: l } = Ve({
|
|
11856
11856
|
mutationFn: async (f) => {
|
|
11857
11857
|
const d = await Promise.all(
|
|
@@ -11881,12 +11881,12 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11881
11881
|
}
|
|
11882
11882
|
});
|
|
11883
11883
|
return { addPeople: c, isPending: l };
|
|
11884
|
-
},
|
|
11884
|
+
}, rv = 100, sv = (e) => {
|
|
11885
11885
|
const { executeQuery: t } = oe(), { data: n } = wt({
|
|
11886
11886
|
queryKey: ["tagExistingUsers", e],
|
|
11887
11887
|
queryFn: () => t(
|
|
11888
11888
|
Du,
|
|
11889
|
-
{ id: e, first:
|
|
11889
|
+
{ id: e, first: rv }
|
|
11890
11890
|
).then((s) => s.institutionalTag)
|
|
11891
11891
|
});
|
|
11892
11892
|
return { existingUserIds: v.useMemo(
|
|
@@ -11924,14 +11924,14 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11924
11924
|
return t.slice(C, C + ct);
|
|
11925
11925
|
}, [t, y, c, E]);
|
|
11926
11926
|
return { cursor: T, currentPage: E, totalPages: k, shownItems: x, handlePageChange: A, getTotalPages: b };
|
|
11927
|
-
},
|
|
11927
|
+
}, iv = (e) => {
|
|
11928
11928
|
var h, g, m;
|
|
11929
11929
|
const { accountId: t, executeQuery: n } = oe(), r = v.useRef(void 0), { cursor: s, currentPage: i, handlePageChange: o, getTotalPages: a } = vs({
|
|
11930
11930
|
endCursorRef: r,
|
|
11931
11931
|
resetKey: e
|
|
11932
11932
|
}), { data: c, isPending: l, isFetching: f } = wt({
|
|
11933
11933
|
queryKey: ["accountUsers", t, e, s],
|
|
11934
|
-
queryFn: () => n(
|
|
11934
|
+
queryFn: () => n(_y, {
|
|
11935
11935
|
accountId: t,
|
|
11936
11936
|
first: ct,
|
|
11937
11937
|
after: s ?? void 0,
|
|
@@ -11947,35 +11947,35 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11947
11947
|
totalPages: a((m = c == null ? void 0 : c.usersConnection) == null ? void 0 : m.pageInfo.totalCount),
|
|
11948
11948
|
handlePageChange: o
|
|
11949
11949
|
};
|
|
11950
|
-
},
|
|
11950
|
+
}, ov = (e) => e.map((t) => /* @__PURE__ */ u(De.Option, { id: `skeleton-${t}`, isDisabled: !0, "aria-hidden": !0, children: /* @__PURE__ */ O(Lm, { children: [
|
|
11951
11951
|
/* @__PURE__ */ u(V, { $width: "2rem", $height: "2rem", $radius: "50%" }),
|
|
11952
|
-
/* @__PURE__ */ O(
|
|
11952
|
+
/* @__PURE__ */ O(Pm, { children: [
|
|
11953
11953
|
/* @__PURE__ */ u(V, { $width: "140px", $height: "1rem" }),
|
|
11954
11954
|
/* @__PURE__ */ u(V, { $width: "180px", $height: "0.75rem" })
|
|
11955
11955
|
] })
|
|
11956
|
-
] }) }, t)),
|
|
11956
|
+
] }) }, t)), av = N.div`
|
|
11957
11957
|
display: flex;
|
|
11958
11958
|
flex-direction: column;
|
|
11959
11959
|
gap: ${p.spacing.small};
|
|
11960
|
-
`,
|
|
11960
|
+
`, cv = N.span`
|
|
11961
11961
|
display: inline-block;
|
|
11962
11962
|
padding: ${p.spacing.xxSmall};
|
|
11963
|
-
`,
|
|
11963
|
+
`, lv = N.span`
|
|
11964
11964
|
display: flex;
|
|
11965
11965
|
align-items: center;
|
|
11966
11966
|
gap: ${p.spacing.small};
|
|
11967
|
-
`,
|
|
11967
|
+
`, uv = N.span`
|
|
11968
11968
|
display: flex;
|
|
11969
11969
|
flex-direction: column;
|
|
11970
11970
|
gap: ${p.spacing.xxxSmall};
|
|
11971
|
-
`,
|
|
11971
|
+
`, dv = ({
|
|
11972
11972
|
existingUserIds: e,
|
|
11973
11973
|
selectedUsers: t,
|
|
11974
11974
|
messages: n,
|
|
11975
11975
|
onToggleUser: r,
|
|
11976
11976
|
onRemoveUser: s
|
|
11977
11977
|
}) => {
|
|
11978
|
-
const { translations: i, resolveToken: o } = W(), a = lr(5), [c, l] = v.useState(""), [f, d] = v.useState(""), [h, g] = v.useState(!1), [m, y] = v.useState(null), b = v.useId(), T = v.useRef(null), { users: w, isPending: S } =
|
|
11978
|
+
const { translations: i, resolveToken: o } = W(), a = lr(5), [c, l] = v.useState(""), [f, d] = v.useState(""), [h, g] = v.useState(!1), [m, y] = v.useState(null), b = v.useId(), T = v.useRef(null), { users: w, isPending: S } = iv(f), E = w.filter((I) => !e.has(I._id));
|
|
11979
11979
|
v.useEffect(() => {
|
|
11980
11980
|
const I = setTimeout(() => {
|
|
11981
11981
|
(c.length === 0 || c.length >= 2) && d(c);
|
|
@@ -11987,23 +11987,23 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
11987
11987
|
const M = (I.getAttribute("aria-describedby") ?? "").split(" ").filter(Boolean).filter((R) => R !== b), F = t.length > 0 ? [...M, b] : M;
|
|
11988
11988
|
F.length > 0 ? I.setAttribute("aria-describedby", F.join(" ")) : I.removeAttribute("aria-describedby");
|
|
11989
11989
|
}, [t.length, b]);
|
|
11990
|
-
const k = (I) => t.some((D) => D._id === I), A = !S && f.length > 0 && E.length === 0, x = () => S ?
|
|
11990
|
+
const k = (I) => t.some((D) => D._id === I), A = !S && f.length > 0 && E.length === 0, x = () => S ? ov(a) : E.length === 0 ? /* @__PURE__ */ u(De.Option, { id: "no-results", isDisabled: !0, children: i.noResultsFound }) : E.map((I) => /* @__PURE__ */ u(
|
|
11991
11991
|
De.Option,
|
|
11992
11992
|
{
|
|
11993
11993
|
id: I._id,
|
|
11994
11994
|
isHighlighted: m === I._id,
|
|
11995
11995
|
isSelected: k(I._id),
|
|
11996
11996
|
renderAfterLabel: ({ isSelected: D }) => D ? /* @__PURE__ */ u(nc, { size: "x-small" }) : null,
|
|
11997
|
-
children: /* @__PURE__ */ O(
|
|
11997
|
+
children: /* @__PURE__ */ O(lv, { children: [
|
|
11998
11998
|
/* @__PURE__ */ u(ic, { name: I.name, src: I.avatarUrl, size: "x-small" }),
|
|
11999
|
-
/* @__PURE__ */ O(
|
|
11999
|
+
/* @__PURE__ */ O(uv, { children: [
|
|
12000
12000
|
/* @__PURE__ */ u(K, { weight: "bold", children: I.name }),
|
|
12001
12001
|
I.email && /* @__PURE__ */ u(K, { size: "small", children: I.email })
|
|
12002
12002
|
] })
|
|
12003
12003
|
] })
|
|
12004
12004
|
},
|
|
12005
12005
|
I._id
|
|
12006
|
-
)), C = t.length > 0 ? /* @__PURE__ */ u(
|
|
12006
|
+
)), C = t.length > 0 ? /* @__PURE__ */ u(cv, { children: t.map((I) => /* @__PURE__ */ u(
|
|
12007
12007
|
Zn,
|
|
12008
12008
|
{
|
|
12009
12009
|
text: I.name,
|
|
@@ -12023,7 +12023,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12023
12023
|
},
|
|
12024
12024
|
I._id
|
|
12025
12025
|
)) }) : null;
|
|
12026
|
-
return /* @__PURE__ */ O(
|
|
12026
|
+
return /* @__PURE__ */ O(av, { children: [
|
|
12027
12027
|
A && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: ln, children: i.noResultsFound }),
|
|
12028
12028
|
/* @__PURE__ */ u(
|
|
12029
12029
|
De,
|
|
@@ -12063,8 +12063,8 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12063
12063
|
vars: { count: t.length }
|
|
12064
12064
|
}) })
|
|
12065
12065
|
] });
|
|
12066
|
-
},
|
|
12067
|
-
const { translations: n } = W(), [r, s] = v.useState([]), [i, o] = v.useState([]), { existingUserIds: a, tagName: c } =
|
|
12066
|
+
}, fv = ({ tagId: e, submitRef: t }) => {
|
|
12067
|
+
const { translations: n } = W(), [r, s] = v.useState([]), [i, o] = v.useState([]), { existingUserIds: a, tagName: c } = sv(e), { addPeople: l } = nv(e, c);
|
|
12068
12068
|
return t.current = () => {
|
|
12069
12069
|
if (r.length === 0) {
|
|
12070
12070
|
o([{ type: "newError", text: n.addPeopleRequired }]);
|
|
@@ -12072,7 +12072,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12072
12072
|
}
|
|
12073
12073
|
l(r.map((h) => h._id));
|
|
12074
12074
|
}, /* @__PURE__ */ u(
|
|
12075
|
-
|
|
12075
|
+
dv,
|
|
12076
12076
|
{
|
|
12077
12077
|
existingUserIds: a,
|
|
12078
12078
|
selectedUsers: r,
|
|
@@ -12090,7 +12090,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12090
12090
|
return { handleAddPeople: (s) => {
|
|
12091
12091
|
t({
|
|
12092
12092
|
heading: "addPeopleToTag",
|
|
12093
|
-
body: /* @__PURE__ */ u(
|
|
12093
|
+
body: /* @__PURE__ */ u(fv, { tagId: s, submitRef: e }),
|
|
12094
12094
|
handleClose: n,
|
|
12095
12095
|
primaryButtonLabel: "add",
|
|
12096
12096
|
onPrimaryClick: () => {
|
|
@@ -12117,7 +12117,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12117
12117
|
}
|
|
12118
12118
|
});
|
|
12119
12119
|
return { archive: i };
|
|
12120
|
-
},
|
|
12120
|
+
}, gv = (e) => {
|
|
12121
12121
|
const t = ze(), { showAlert: n } = Me(), { translations: r } = W(), { executeQuery: s } = oe(), i = v.useRef(void 0), o = v.useRef(void 0), a = v.useRef(!1), { mutate: c } = Ve({
|
|
12122
12122
|
mutationFn: async (l) => {
|
|
12123
12123
|
const f = await s(hl, { input: { id: l._id, archived: !1 } });
|
|
@@ -12143,11 +12143,11 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12143
12143
|
}
|
|
12144
12144
|
});
|
|
12145
12145
|
return { restore: c, validateRef: i, selectedCategoryRef: o, restoreAssociationsRef: a };
|
|
12146
|
-
},
|
|
12146
|
+
}, hv = N.div`
|
|
12147
12147
|
gap: ${p.spacing.small};
|
|
12148
12148
|
display: flex;
|
|
12149
12149
|
flex-direction: column;
|
|
12150
|
-
`,
|
|
12150
|
+
`, mv = (e) => {
|
|
12151
12151
|
const { translations: t, resolveToken: n } = W(), [r, s] = v.useState(void 0), [i, o] = v.useState([]), a = v.useId(), c = v.useRef(null);
|
|
12152
12152
|
v.useEffect(() => {
|
|
12153
12153
|
const f = c.current;
|
|
@@ -12159,7 +12159,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12159
12159
|
var d;
|
|
12160
12160
|
s(f), o([]), e.selectedCategoryRef.current = f, e.selectedCategoryNameRef.current = ((d = e.allCategories.find((h) => h.id === f)) == null ? void 0 : d.label) ?? "";
|
|
12161
12161
|
};
|
|
12162
|
-
return e.validateRef.current = () => r == null ? (o([{ type: "newError", text: t.categoryRequired }]), !1) : !0, /* @__PURE__ */ O(
|
|
12162
|
+
return e.validateRef.current = () => r == null ? (o([{ type: "newError", text: t.categoryRequired }]), !1) : !0, /* @__PURE__ */ O(hv, { children: [
|
|
12163
12163
|
/* @__PURE__ */ u(K, { id: a, size: "small", color: "secondary", children: n({
|
|
12164
12164
|
key: "tagsSelected",
|
|
12165
12165
|
count: 1,
|
|
@@ -12180,23 +12180,23 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12180
12180
|
}
|
|
12181
12181
|
)
|
|
12182
12182
|
] });
|
|
12183
|
-
},
|
|
12183
|
+
}, pv = N.div`
|
|
12184
12184
|
gap: ${p.spacing.small};
|
|
12185
12185
|
display: flex;
|
|
12186
12186
|
flex-direction: column;
|
|
12187
|
-
`,
|
|
12187
|
+
`, yv = N.div`
|
|
12188
12188
|
background-color: ${p.colors.contrasts.grey1111};
|
|
12189
12189
|
border-radius: ${p.borders.radiusMedium};
|
|
12190
12190
|
padding: ${p.spacing.small};
|
|
12191
|
-
`,
|
|
12191
|
+
`, vv = (e) => {
|
|
12192
12192
|
const { translations: t, resolveToken: n } = W(), [r, s] = v.useState(void 0), [i, o] = v.useState([]), [a, c] = v.useState(!1), l = (h) => {
|
|
12193
12193
|
s(h), o([]), e.selectedCategoryRef.current = h;
|
|
12194
12194
|
}, f = (h) => {
|
|
12195
12195
|
c(h.target.checked), e.restoreAssociationsRef.current = h.target.checked;
|
|
12196
12196
|
}, d = v.useCallback(() => r == null ? (o([{ type: "newError", text: t.restoreTagCategoryRequired }]), !1) : !0, [r, t.restoreTagCategoryRequired]);
|
|
12197
|
-
return e.validateRef.current = d, /* @__PURE__ */ O(
|
|
12197
|
+
return e.validateRef.current = d, /* @__PURE__ */ O(pv, { children: [
|
|
12198
12198
|
/* @__PURE__ */ u(K, { children: n({ key: "restoreTagDescription", vars: { count: e.associationsCount } }) }),
|
|
12199
|
-
/* @__PURE__ */ u(
|
|
12199
|
+
/* @__PURE__ */ u(yv, { children: /* @__PURE__ */ u(
|
|
12200
12200
|
oc,
|
|
12201
12201
|
{
|
|
12202
12202
|
label: /* @__PURE__ */ u(K, { weight: "bold", children: t.restoreAssociations }),
|
|
@@ -12238,7 +12238,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12238
12238
|
onCategoryChange: b,
|
|
12239
12239
|
onNewCategoryNameChange: T,
|
|
12240
12240
|
onNewCategoryDescriptionChange: w
|
|
12241
|
-
} =
|
|
12241
|
+
} = Qy({ tag: e, categories: t, submitRef: n });
|
|
12242
12242
|
return /* @__PURE__ */ O(fo, { children: [
|
|
12243
12243
|
/* @__PURE__ */ u(
|
|
12244
12244
|
Mu,
|
|
@@ -12269,7 +12269,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12269
12269
|
}
|
|
12270
12270
|
)
|
|
12271
12271
|
] });
|
|
12272
|
-
}, Nr = () => /* @__PURE__ */ O(
|
|
12272
|
+
}, Nr = () => /* @__PURE__ */ O(Im, { "aria-hidden": !0, children: [
|
|
12273
12273
|
/* @__PURE__ */ u(
|
|
12274
12274
|
V,
|
|
12275
12275
|
{
|
|
@@ -12278,7 +12278,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12278
12278
|
$radius: p.borders.radiusSmall
|
|
12279
12279
|
}
|
|
12280
12280
|
),
|
|
12281
|
-
/* @__PURE__ */ O(
|
|
12281
|
+
/* @__PURE__ */ O(Nm, { children: [
|
|
12282
12282
|
/* @__PURE__ */ u(V, { $width: "55%", $height: p.typography.fontSizeSmall }),
|
|
12283
12283
|
/* @__PURE__ */ u(V, { $width: "80%", $height: p.typography.fontSizeXSmall })
|
|
12284
12284
|
] }),
|
|
@@ -12298,7 +12298,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12298
12298
|
$radius: p.borders.radiusSmall
|
|
12299
12299
|
}
|
|
12300
12300
|
)
|
|
12301
|
-
] }),
|
|
12301
|
+
] }), wv = ({
|
|
12302
12302
|
category: { _id: e, name: t, workflowState: n },
|
|
12303
12303
|
tags: r,
|
|
12304
12304
|
isLoadingTags: s,
|
|
@@ -12318,7 +12318,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12318
12318
|
validateRef: M,
|
|
12319
12319
|
selectedCategoryRef: F,
|
|
12320
12320
|
restoreAssociationsRef: R
|
|
12321
|
-
} =
|
|
12321
|
+
} = gv(e), U = v.useRef(void 0), { handleAddPeople: L } = Wu(U), Q = v.useRef(/* @__PURE__ */ new Map()), { registerTagTrigger: P, setPendingFocus: fe } = ev(), ne = b ? 1 : T ? 2 : 3, ye = lr(ne * 2), Ke = (j) => {
|
|
12322
12322
|
var ee;
|
|
12323
12323
|
if (j <= 0) return w.current;
|
|
12324
12324
|
const J = (ee = r == null ? void 0 : r[j - 1]) == null ? void 0 : ee._id;
|
|
@@ -12361,7 +12361,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12361
12361
|
J && S({
|
|
12362
12362
|
heading: "restoreTag",
|
|
12363
12363
|
body: /* @__PURE__ */ u(
|
|
12364
|
-
|
|
12364
|
+
vv,
|
|
12365
12365
|
{
|
|
12366
12366
|
associationsCount: J.associationsCount ?? 0,
|
|
12367
12367
|
allCategories: mt(m),
|
|
@@ -12401,7 +12401,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12401
12401
|
S({
|
|
12402
12402
|
heading: "moveTags",
|
|
12403
12403
|
body: /* @__PURE__ */ u(
|
|
12404
|
-
|
|
12404
|
+
mv,
|
|
12405
12405
|
{
|
|
12406
12406
|
allCategories: mt(m, j.category._id),
|
|
12407
12407
|
validateRef: A,
|
|
@@ -12423,7 +12423,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12423
12423
|
return ye.map((ee) => /* @__PURE__ */ u(Rn, { children: /* @__PURE__ */ u(Nr, {}) }, ee));
|
|
12424
12424
|
const j = (r ?? []).map(
|
|
12425
12425
|
(ee) => ee._id === h || ee._id === (d == null ? void 0 : d.tagId) && e === (d == null ? void 0 : d.sourceCategoryId) ? /* @__PURE__ */ u(Rn, { children: /* @__PURE__ */ u(Nr, {}) }, ee._id) : /* @__PURE__ */ u(Rn, { children: /* @__PURE__ */ u(
|
|
12426
|
-
|
|
12426
|
+
jh,
|
|
12427
12427
|
{
|
|
12428
12428
|
tag: ee,
|
|
12429
12429
|
editHandler: ge,
|
|
@@ -12446,8 +12446,8 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12446
12446
|
/* @__PURE__ */ u(Rn, { children: /* @__PURE__ */ u(Nr, {}) }, "pending-incoming")
|
|
12447
12447
|
] : J;
|
|
12448
12448
|
}, ae = s || r && r.length > 0 || Pe || ut;
|
|
12449
|
-
return /* @__PURE__ */ u(
|
|
12450
|
-
/* @__PURE__ */ u(
|
|
12449
|
+
return /* @__PURE__ */ u(om, { children: ae ? /* @__PURE__ */ O(am, { children: [
|
|
12450
|
+
/* @__PURE__ */ u(cm, { $columns: ne, children: dt() }),
|
|
12451
12451
|
!s && (o ?? 0) > 1 && ((r == null ? void 0 : r.length) ?? 0) > 0 && /* @__PURE__ */ u(
|
|
12452
12452
|
Oi,
|
|
12453
12453
|
{
|
|
@@ -12462,7 +12462,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12462
12462
|
onPageChange: a
|
|
12463
12463
|
}
|
|
12464
12464
|
)
|
|
12465
|
-
] }) : n === $e.Active && /* @__PURE__ */ u(
|
|
12465
|
+
] }) : n === $e.Active && /* @__PURE__ */ u(lm, { children: /* @__PURE__ */ u(
|
|
12466
12466
|
We,
|
|
12467
12467
|
{
|
|
12468
12468
|
screenReaderLabel: f({
|
|
@@ -12475,7 +12475,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12475
12475
|
onClick: re
|
|
12476
12476
|
}
|
|
12477
12477
|
) }) });
|
|
12478
|
-
},
|
|
12478
|
+
}, bv = v.memo(
|
|
12479
12479
|
({
|
|
12480
12480
|
category: e,
|
|
12481
12481
|
tags: t,
|
|
@@ -12494,18 +12494,18 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12494
12494
|
}, [h]);
|
|
12495
12495
|
const m = `category-info-${e._id}`;
|
|
12496
12496
|
return /* @__PURE__ */ O(
|
|
12497
|
-
|
|
12497
|
+
_m,
|
|
12498
12498
|
{
|
|
12499
12499
|
editHandler: o,
|
|
12500
12500
|
archiveHandler: a,
|
|
12501
12501
|
restoreHandler: c,
|
|
12502
12502
|
children: [
|
|
12503
|
-
/* @__PURE__ */ O(
|
|
12504
|
-
/* @__PURE__ */ O(
|
|
12505
|
-
/* @__PURE__ */ u(
|
|
12506
|
-
/* @__PURE__ */ u(
|
|
12503
|
+
/* @__PURE__ */ O(Xh, { children: [
|
|
12504
|
+
/* @__PURE__ */ O(em, { id: m, $isExpanded: f, children: [
|
|
12505
|
+
/* @__PURE__ */ u(Xy, { category: e, isExpanded: f }),
|
|
12506
|
+
/* @__PURE__ */ u(Jy, { category: e, isExpanded: f })
|
|
12507
12507
|
] }),
|
|
12508
|
-
/* @__PURE__ */ u(
|
|
12508
|
+
/* @__PURE__ */ u(Jh, { children: /* @__PURE__ */ u(
|
|
12509
12509
|
We,
|
|
12510
12510
|
{
|
|
12511
12511
|
...Ai,
|
|
@@ -12523,7 +12523,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12523
12523
|
) })
|
|
12524
12524
|
] }),
|
|
12525
12525
|
f && /* @__PURE__ */ u(
|
|
12526
|
-
|
|
12526
|
+
wv,
|
|
12527
12527
|
{
|
|
12528
12528
|
category: e,
|
|
12529
12529
|
tags: t,
|
|
@@ -12538,16 +12538,16 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12538
12538
|
}
|
|
12539
12539
|
);
|
|
12540
12540
|
}
|
|
12541
|
-
),
|
|
12542
|
-
const { category: t } = e, { translations: n } = W(), { activeTagCategoryId: r } = eo(), s = r !== null && r !== t._id, { setNodeRef: i, isOver: o } =
|
|
12541
|
+
), Tv = (e) => {
|
|
12542
|
+
const { category: t } = e, { translations: n } = W(), { activeTagCategoryId: r } = eo(), s = r !== null && r !== t._id, { setNodeRef: i, isOver: o } = wh({
|
|
12543
12543
|
id: t._id,
|
|
12544
12544
|
data: { categoryName: t.name }
|
|
12545
12545
|
}), a = o && s;
|
|
12546
|
-
return /* @__PURE__ */ O(
|
|
12547
|
-
a && /* @__PURE__ */ u(
|
|
12548
|
-
/* @__PURE__ */ u(
|
|
12546
|
+
return /* @__PURE__ */ O(Yh, { ref: i, $isDropTarget: a, children: [
|
|
12547
|
+
a && /* @__PURE__ */ u(Kh, { children: /* @__PURE__ */ u(Qh, { children: n.dropToMoveHere }) }),
|
|
12548
|
+
/* @__PURE__ */ u(bv, { ...e })
|
|
12549
12549
|
] });
|
|
12550
|
-
}, Vu = v.createContext(null),
|
|
12550
|
+
}, Vu = v.createContext(null), Cv = ({ children: e }) => {
|
|
12551
12551
|
const [t, n] = v.useState(""), [r, s] = v.useState(""), [i, o] = v.useState(Mt.Active), [a, c] = v.useState(pt.Asc);
|
|
12552
12552
|
v.useEffect(() => {
|
|
12553
12553
|
const m = setTimeout(
|
|
@@ -12587,7 +12587,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12587
12587
|
const e = v.useContext(Vu);
|
|
12588
12588
|
if (!e) throw new Error("useViewContext must be used within a ViewProvider");
|
|
12589
12589
|
return e;
|
|
12590
|
-
},
|
|
12590
|
+
}, Sv = () => {
|
|
12591
12591
|
const e = ze(), { showAlert: t } = Me(), { translations: n } = W(), { executeQuery: r } = oe(), { mutate: s } = Ve({
|
|
12592
12592
|
mutationFn: (i) => r(gl, { input: { id: i, archived: !0 } }),
|
|
12593
12593
|
onSuccess: (i) => {
|
|
@@ -12602,7 +12602,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12602
12602
|
}
|
|
12603
12603
|
});
|
|
12604
12604
|
return { archive: s };
|
|
12605
|
-
},
|
|
12605
|
+
}, xv = (e, t, n) => {
|
|
12606
12606
|
const { accountId: r, executeQuery: s } = oe(), i = v.useRef(n == null ? void 0 : n.pageInfo.endCursor), { cursor: o, currentPage: a, handlePageChange: c, getTotalPages: l } = vs({
|
|
12607
12607
|
endCursorRef: i,
|
|
12608
12608
|
totalCount: n == null ? void 0 : n.pageInfo.totalCount,
|
|
@@ -12635,7 +12635,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12635
12635
|
totalTagCount: (b == null ? void 0 : b.totalCount) ?? 0,
|
|
12636
12636
|
handlePageChange: c
|
|
12637
12637
|
};
|
|
12638
|
-
},
|
|
12638
|
+
}, kv = () => {
|
|
12639
12639
|
const e = ze(), { showAlert: t } = Me(), { translations: n } = W(), { executeQuery: r } = oe(), s = v.useRef(!1), { mutate: i } = Ve({
|
|
12640
12640
|
mutationFn: (o) => r(gl, { input: { id: o, archived: !1 } }),
|
|
12641
12641
|
onSuccess: (o) => {
|
|
@@ -12650,7 +12650,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12650
12650
|
}
|
|
12651
12651
|
});
|
|
12652
12652
|
return { restore: i, restoreAssociationsRef: s };
|
|
12653
|
-
},
|
|
12653
|
+
}, Iv = ({
|
|
12654
12654
|
category: e,
|
|
12655
12655
|
submitRef: t
|
|
12656
12656
|
}) => {
|
|
@@ -12666,7 +12666,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12666
12666
|
}, S = (k) => {
|
|
12667
12667
|
o(k);
|
|
12668
12668
|
}, { mutate: E } = Ve({
|
|
12669
|
-
mutationFn: () => g(
|
|
12669
|
+
mutationFn: () => g(dm, {
|
|
12670
12670
|
input: { id: e._id, name: r.trim(), description: i.trim() }
|
|
12671
12671
|
}),
|
|
12672
12672
|
onSuccess: (k) => {
|
|
@@ -12687,8 +12687,8 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12687
12687
|
}
|
|
12688
12688
|
E();
|
|
12689
12689
|
}, { name: r, nameError: a, filteredSuggestions: b, onNameChange: w, onDescriptionChange: S };
|
|
12690
|
-
},
|
|
12691
|
-
const { translations: n } = W(), { name: r, nameError: s, filteredSuggestions: i, onNameChange: o, onDescriptionChange: a } =
|
|
12690
|
+
}, Nv = ({ category: e, submitRef: t }) => {
|
|
12691
|
+
const { translations: n } = W(), { name: r, nameError: s, filteredSuggestions: i, onNameChange: o, onDescriptionChange: a } = Iv({
|
|
12692
12692
|
category: e,
|
|
12693
12693
|
submitRef: t
|
|
12694
12694
|
});
|
|
@@ -12721,23 +12721,23 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12721
12721
|
]
|
|
12722
12722
|
}
|
|
12723
12723
|
) });
|
|
12724
|
-
},
|
|
12724
|
+
}, Ev = N.div`
|
|
12725
12725
|
gap: ${p.spacing.small};
|
|
12726
12726
|
display: flex;
|
|
12727
12727
|
flex-direction: column;
|
|
12728
|
-
`,
|
|
12728
|
+
`, Av = N.div`
|
|
12729
12729
|
background-color: ${p.colors.contrasts.grey1111};
|
|
12730
12730
|
border-radius: ${p.borders.radiusMedium};
|
|
12731
12731
|
padding: ${p.spacing.small};
|
|
12732
|
-
`,
|
|
12732
|
+
`, Ov = ({
|
|
12733
12733
|
restoreAssociationsRef: e
|
|
12734
12734
|
}) => {
|
|
12735
12735
|
const { translations: t } = W(), [n, r] = v.useState(!1), s = (i) => {
|
|
12736
12736
|
r(i.target.checked), e.current = i.target.checked;
|
|
12737
12737
|
};
|
|
12738
|
-
return /* @__PURE__ */ O(
|
|
12738
|
+
return /* @__PURE__ */ O(Ev, { children: [
|
|
12739
12739
|
/* @__PURE__ */ u(K, { children: t.restoreCategoryDescription }),
|
|
12740
|
-
/* @__PURE__ */ u(
|
|
12740
|
+
/* @__PURE__ */ u(Av, { children: /* @__PURE__ */ u(
|
|
12741
12741
|
oc,
|
|
12742
12742
|
{
|
|
12743
12743
|
label: /* @__PURE__ */ u(K, { weight: "bold", children: t.restoreAssociations }),
|
|
@@ -12747,16 +12747,16 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12747
12747
|
}
|
|
12748
12748
|
) })
|
|
12749
12749
|
] });
|
|
12750
|
-
},
|
|
12750
|
+
}, Dv = ({
|
|
12751
12751
|
category: e,
|
|
12752
12752
|
initialTagsData: t,
|
|
12753
12753
|
viewTagAssociationsHandler: n
|
|
12754
12754
|
}) => {
|
|
12755
|
-
const { tagsWorkflowState: r } = mo(), { tags: s, isPending: i, currentPage: o, totalPages: a, totalTagCount: c, handlePageChange: l } =
|
|
12755
|
+
const { tagsWorkflowState: r } = mo(), { tags: s, isPending: i, currentPage: o, totalPages: a, totalTagCount: c, handlePageChange: l } = xv(e._id, r, t), { data: f = [] } = Nn({ enabled: !0 }), { openModal: d, closeModal: h } = Le(), { archive: g } = Sv(), { restore: m, restoreAssociationsRef: y } = kv(), b = v.useRef(void 0), T = (E) => {
|
|
12756
12756
|
const k = f.find((A) => A._id === E) ?? e;
|
|
12757
12757
|
d({
|
|
12758
12758
|
heading: "editCategory",
|
|
12759
|
-
body: /* @__PURE__ */ u(
|
|
12759
|
+
body: /* @__PURE__ */ u(Nv, { category: k, submitRef: b }),
|
|
12760
12760
|
handleClose: h,
|
|
12761
12761
|
onPrimaryClick: () => {
|
|
12762
12762
|
var A;
|
|
@@ -12777,7 +12777,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12777
12777
|
}, S = (E, k) => {
|
|
12778
12778
|
y.current = !1, d({
|
|
12779
12779
|
heading: "restoreCategory",
|
|
12780
|
-
body: /* @__PURE__ */ u(
|
|
12780
|
+
body: /* @__PURE__ */ u(Ov, { restoreAssociationsRef: y }),
|
|
12781
12781
|
handleClose: () => h(k),
|
|
12782
12782
|
primaryButtonLabel: "restoreCategory",
|
|
12783
12783
|
onPrimaryClick: () => {
|
|
@@ -12786,7 +12786,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12786
12786
|
});
|
|
12787
12787
|
};
|
|
12788
12788
|
return /* @__PURE__ */ u(
|
|
12789
|
-
|
|
12789
|
+
Tv,
|
|
12790
12790
|
{
|
|
12791
12791
|
category: { ...e, tagsCount: c },
|
|
12792
12792
|
tags: s,
|
|
@@ -12800,7 +12800,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12800
12800
|
viewTagAssociationsHandler: n
|
|
12801
12801
|
}
|
|
12802
12802
|
);
|
|
12803
|
-
},
|
|
12803
|
+
}, $v = ({
|
|
12804
12804
|
categories: e,
|
|
12805
12805
|
categoryTagsMap: t,
|
|
12806
12806
|
isFetching: n,
|
|
@@ -12809,7 +12809,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12809
12809
|
const { pendingMove: s } = eo();
|
|
12810
12810
|
return /* @__PURE__ */ O(dl, { children: [
|
|
12811
12811
|
e.map((i) => /* @__PURE__ */ u(
|
|
12812
|
-
|
|
12812
|
+
Dv,
|
|
12813
12813
|
{
|
|
12814
12814
|
category: i,
|
|
12815
12815
|
initialTagsData: t[i._id],
|
|
@@ -12819,7 +12819,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12819
12819
|
)),
|
|
12820
12820
|
n && !s && /* @__PURE__ */ u(wl, {})
|
|
12821
12821
|
] });
|
|
12822
|
-
},
|
|
12822
|
+
}, Rv = ({
|
|
12823
12823
|
categories: e,
|
|
12824
12824
|
categoryTagsMap: t,
|
|
12825
12825
|
isPending: n,
|
|
@@ -12835,9 +12835,9 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12835
12835
|
return n ? /* @__PURE__ */ u(dl, { children: h.map((g) => /* @__PURE__ */ u(wl, {}, g)) }) : s ? /* @__PURE__ */ u($t, { variant: "error", margin: "medium", children: d({
|
|
12836
12836
|
key: "loadCategories",
|
|
12837
12837
|
vars: { errorMessage: (i == null ? void 0 : i.message) ?? "Unknown error" }
|
|
12838
|
-
}) }) : /* @__PURE__ */ O(
|
|
12838
|
+
}) }) : /* @__PURE__ */ O(pm, { children: [
|
|
12839
12839
|
/* @__PURE__ */ u(
|
|
12840
|
-
|
|
12840
|
+
$v,
|
|
12841
12841
|
{
|
|
12842
12842
|
categories: e,
|
|
12843
12843
|
categoryTagsMap: t,
|
|
@@ -12861,7 +12861,7 @@ const lt = (e) => e != null, lo = (e, t) => ({
|
|
|
12861
12861
|
] });
|
|
12862
12862
|
};
|
|
12863
12863
|
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12864
|
-
function
|
|
12864
|
+
function Mv(e) {
|
|
12865
12865
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12866
12866
|
}
|
|
12867
12867
|
var zs, La;
|
|
@@ -12875,7 +12875,7 @@ function Bu() {
|
|
|
12875
12875
|
return zs = e, zs;
|
|
12876
12876
|
}
|
|
12877
12877
|
var Vs, Pa;
|
|
12878
|
-
function
|
|
12878
|
+
function Lv() {
|
|
12879
12879
|
if (Pa) return Vs;
|
|
12880
12880
|
Pa = 1;
|
|
12881
12881
|
var e = typeof Er == "object" && Er && Er.Object === Object && Er;
|
|
@@ -12885,11 +12885,11 @@ var Bs, Fa;
|
|
|
12885
12885
|
function ju() {
|
|
12886
12886
|
if (Fa) return Bs;
|
|
12887
12887
|
Fa = 1;
|
|
12888
|
-
var e =
|
|
12888
|
+
var e = Lv(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
12889
12889
|
return Bs = n, Bs;
|
|
12890
12890
|
}
|
|
12891
12891
|
var js, _a;
|
|
12892
|
-
function
|
|
12892
|
+
function Pv() {
|
|
12893
12893
|
if (_a) return js;
|
|
12894
12894
|
_a = 1;
|
|
12895
12895
|
var e = ju(), t = function() {
|
|
@@ -12898,7 +12898,7 @@ function Lv() {
|
|
|
12898
12898
|
return js = t, js;
|
|
12899
12899
|
}
|
|
12900
12900
|
var Gs, qa;
|
|
12901
|
-
function
|
|
12901
|
+
function Fv() {
|
|
12902
12902
|
if (qa) return Gs;
|
|
12903
12903
|
qa = 1;
|
|
12904
12904
|
var e = /\s/;
|
|
@@ -12910,10 +12910,10 @@ function Pv() {
|
|
|
12910
12910
|
return Gs = t, Gs;
|
|
12911
12911
|
}
|
|
12912
12912
|
var Hs, Wa;
|
|
12913
|
-
function
|
|
12913
|
+
function _v() {
|
|
12914
12914
|
if (Wa) return Hs;
|
|
12915
12915
|
Wa = 1;
|
|
12916
|
-
var e =
|
|
12916
|
+
var e = Fv(), t = /^\s+/;
|
|
12917
12917
|
function n(r) {
|
|
12918
12918
|
return r && r.slice(0, e(r) + 1).replace(t, "");
|
|
12919
12919
|
}
|
|
@@ -12927,7 +12927,7 @@ function Gu() {
|
|
|
12927
12927
|
return Zs = t, Zs;
|
|
12928
12928
|
}
|
|
12929
12929
|
var Ys, za;
|
|
12930
|
-
function
|
|
12930
|
+
function qv() {
|
|
12931
12931
|
if (za) return Ys;
|
|
12932
12932
|
za = 1;
|
|
12933
12933
|
var e = Gu(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, s = e ? e.toStringTag : void 0;
|
|
@@ -12944,7 +12944,7 @@ function _v() {
|
|
|
12944
12944
|
return Ys = i, Ys;
|
|
12945
12945
|
}
|
|
12946
12946
|
var Ks, Va;
|
|
12947
|
-
function
|
|
12947
|
+
function Wv() {
|
|
12948
12948
|
if (Va) return Ks;
|
|
12949
12949
|
Va = 1;
|
|
12950
12950
|
var e = Object.prototype, t = e.toString;
|
|
@@ -12954,17 +12954,17 @@ function qv() {
|
|
|
12954
12954
|
return Ks = n, Ks;
|
|
12955
12955
|
}
|
|
12956
12956
|
var Qs, Ba;
|
|
12957
|
-
function
|
|
12957
|
+
function Uv() {
|
|
12958
12958
|
if (Ba) return Qs;
|
|
12959
12959
|
Ba = 1;
|
|
12960
|
-
var e = Gu(), t =
|
|
12960
|
+
var e = Gu(), t = qv(), n = Wv(), r = "[object Null]", s = "[object Undefined]", i = e ? e.toStringTag : void 0;
|
|
12961
12961
|
function o(a) {
|
|
12962
12962
|
return a == null ? a === void 0 ? s : r : i && i in Object(a) ? t(a) : n(a);
|
|
12963
12963
|
}
|
|
12964
12964
|
return Qs = o, Qs;
|
|
12965
12965
|
}
|
|
12966
12966
|
var Xs, ja;
|
|
12967
|
-
function
|
|
12967
|
+
function zv() {
|
|
12968
12968
|
if (ja) return Xs;
|
|
12969
12969
|
ja = 1;
|
|
12970
12970
|
function e(t) {
|
|
@@ -12973,20 +12973,20 @@ function Uv() {
|
|
|
12973
12973
|
return Xs = e, Xs;
|
|
12974
12974
|
}
|
|
12975
12975
|
var Js, Ga;
|
|
12976
|
-
function
|
|
12976
|
+
function Vv() {
|
|
12977
12977
|
if (Ga) return Js;
|
|
12978
12978
|
Ga = 1;
|
|
12979
|
-
var e =
|
|
12979
|
+
var e = Uv(), t = zv(), n = "[object Symbol]";
|
|
12980
12980
|
function r(s) {
|
|
12981
12981
|
return typeof s == "symbol" || t(s) && e(s) == n;
|
|
12982
12982
|
}
|
|
12983
12983
|
return Js = r, Js;
|
|
12984
12984
|
}
|
|
12985
12985
|
var ei, Ha;
|
|
12986
|
-
function
|
|
12986
|
+
function Bv() {
|
|
12987
12987
|
if (Ha) return ei;
|
|
12988
12988
|
Ha = 1;
|
|
12989
|
-
var e =
|
|
12989
|
+
var e = _v(), t = Bu(), n = Vv(), r = NaN, s = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, o = /^0o[0-7]+$/i, a = parseInt;
|
|
12990
12990
|
function c(l) {
|
|
12991
12991
|
if (typeof l == "number")
|
|
12992
12992
|
return l;
|
|
@@ -13005,10 +13005,10 @@ function Vv() {
|
|
|
13005
13005
|
return ei = c, ei;
|
|
13006
13006
|
}
|
|
13007
13007
|
var ti, Za;
|
|
13008
|
-
function
|
|
13008
|
+
function jv() {
|
|
13009
13009
|
if (Za) return ti;
|
|
13010
13010
|
Za = 1;
|
|
13011
|
-
var e = Bu(), t =
|
|
13011
|
+
var e = Bu(), t = Pv(), n = Bv(), r = "Expected a function", s = Math.max, i = Math.min;
|
|
13012
13012
|
function o(a, c, l) {
|
|
13013
13013
|
var f, d, h, g, m, y, b = 0, T = !1, w = !1, S = !0;
|
|
13014
13014
|
if (typeof a != "function")
|
|
@@ -13058,16 +13058,16 @@ function Bv() {
|
|
|
13058
13058
|
}
|
|
13059
13059
|
return ti = o, ti;
|
|
13060
13060
|
}
|
|
13061
|
-
var
|
|
13062
|
-
const
|
|
13061
|
+
var Gv = jv();
|
|
13062
|
+
const Hv = /* @__PURE__ */ Mv(Gv), Ya = N.div`
|
|
13063
13063
|
container-type: inline-size;
|
|
13064
13064
|
container-name: ${er};
|
|
13065
|
-
`,
|
|
13065
|
+
`, Zv = ({
|
|
13066
13066
|
ignoreContainerSize: e = !1,
|
|
13067
13067
|
children: t
|
|
13068
13068
|
}) => {
|
|
13069
13069
|
const n = v.useRef(null), [r, s] = v.useState(xl.width), i = v.useMemo(
|
|
13070
|
-
() =>
|
|
13070
|
+
() => Hv((a) => {
|
|
13071
13071
|
s((c) => c !== a ? a : c);
|
|
13072
13072
|
}, 40),
|
|
13073
13073
|
[]
|
|
@@ -13092,20 +13092,20 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13092
13092
|
[r]
|
|
13093
13093
|
);
|
|
13094
13094
|
return e ? /* @__PURE__ */ u(Ya, { id: er, children: t }) : /* @__PURE__ */ u(Ya, { id: er, ref: n, children: /* @__PURE__ */ u(kl.Provider, { value: o, children: t }) });
|
|
13095
|
-
},
|
|
13095
|
+
}, Yv = N.div`
|
|
13096
13096
|
display: flex;
|
|
13097
13097
|
flex-direction: row;
|
|
13098
13098
|
justify-content: space-between;
|
|
13099
13099
|
align-items: center;
|
|
13100
13100
|
|
|
13101
|
-
`,
|
|
13101
|
+
`, Kv = N.div`
|
|
13102
13102
|
display: flex;
|
|
13103
13103
|
flex-direction: row;
|
|
13104
13104
|
justify-content: flex-end;
|
|
13105
13105
|
align-items: center;
|
|
13106
13106
|
gap: ${p.spacing.small};
|
|
13107
13107
|
padding: ${p.spacing.small};
|
|
13108
|
-
`,
|
|
13108
|
+
`, Qv = ({
|
|
13109
13109
|
onPrimaryClick: e,
|
|
13110
13110
|
primaryButton: t,
|
|
13111
13111
|
primaryButtonLabel: n,
|
|
@@ -13133,7 +13133,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13133
13133
|
size: f.size ?? "large",
|
|
13134
13134
|
...f,
|
|
13135
13135
|
children: [
|
|
13136
|
-
/* @__PURE__ */ u(wr.Header, { ...a, children: /* @__PURE__ */ O(
|
|
13136
|
+
/* @__PURE__ */ u(wr.Header, { ...a, children: /* @__PURE__ */ O(Yv, { children: [
|
|
13137
13137
|
/* @__PURE__ */ u(Yn, { children: g }),
|
|
13138
13138
|
/* @__PURE__ */ u(
|
|
13139
13139
|
ld,
|
|
@@ -13155,7 +13155,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13155
13155
|
children: b()
|
|
13156
13156
|
}
|
|
13157
13157
|
),
|
|
13158
|
-
/* @__PURE__ */ u(wr.Footer, { ...l, children: /* @__PURE__ */ O(
|
|
13158
|
+
/* @__PURE__ */ u(wr.Footer, { ...l, children: /* @__PURE__ */ O(Kv, { children: [
|
|
13159
13159
|
/* @__PURE__ */ u(
|
|
13160
13160
|
gn,
|
|
13161
13161
|
{
|
|
@@ -13180,7 +13180,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13180
13180
|
]
|
|
13181
13181
|
}
|
|
13182
13182
|
);
|
|
13183
|
-
},
|
|
13183
|
+
}, Xv = ({ children: e }) => {
|
|
13184
13184
|
const [t, n] = v.useState(null), r = v.useRef(null), s = v.useCallback((o) => {
|
|
13185
13185
|
r.current = document.activeElement, n(o);
|
|
13186
13186
|
}, []), i = v.useCallback((o) => {
|
|
@@ -13190,13 +13190,13 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13190
13190
|
}, []);
|
|
13191
13191
|
return /* @__PURE__ */ O(Eu.Provider, { value: { openModal: s, closeModal: i }, children: [
|
|
13192
13192
|
e,
|
|
13193
|
-
t && /* @__PURE__ */ u(
|
|
13193
|
+
t && /* @__PURE__ */ u(Qv, { ...t })
|
|
13194
13194
|
] });
|
|
13195
|
-
}, Hu = (e) => /* @__PURE__ */ u(Cd, { theme: { ...p }, children: /* @__PURE__ */ u(Ad, { translations: ac, translate: lc, children: /* @__PURE__ */ u(
|
|
13195
|
+
}, Hu = (e) => /* @__PURE__ */ u(Cd, { theme: { ...p }, children: /* @__PURE__ */ u(Ad, { translations: ac, translate: lc, children: /* @__PURE__ */ u(Lh, { children: /* @__PURE__ */ u(Zv, { children: /* @__PURE__ */ u(Qf, { children: /* @__PURE__ */ u(Xv, { children: e.children }) }) }) }) }) }), Jv = N.div`
|
|
13196
13196
|
display: flex;
|
|
13197
13197
|
flex-direction: column;
|
|
13198
13198
|
gap: ${p.spacing.mediumSmall};
|
|
13199
|
-
`,
|
|
13199
|
+
`, ew = ({ onSuccess: e, onError: t }) => {
|
|
13200
13200
|
const n = ze(), { showAlert: r } = Me(), { translations: s } = W(), { executeQuery: i } = oe(), { mutate: o, isPending: a } = Ve({
|
|
13201
13201
|
mutationFn: (c) => i(fl, { input: c }),
|
|
13202
13202
|
onSuccess: (c) => {
|
|
@@ -13211,13 +13211,13 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13211
13211
|
}
|
|
13212
13212
|
});
|
|
13213
13213
|
return { create: o, isPending: a };
|
|
13214
|
-
}, ni = [],
|
|
13214
|
+
}, ni = [], tw = [], nw = (e) => {
|
|
13215
13215
|
const { categoryAutocomplete: t } = Lt(), { data: n = [] } = Nn({ enabled: t }), r = v.useMemo(
|
|
13216
13216
|
() => mt(n),
|
|
13217
13217
|
[n]
|
|
13218
13218
|
), { translations: s } = W(), { showAlert: i } = Me(), [o, a] = v.useState(""), [c, l] = v.useState(""), [f, d] = v.useState(ni), h = () => {
|
|
13219
13219
|
a(""), l(""), d(ni), e();
|
|
13220
|
-
}, { create: g, isPending: m } =
|
|
13220
|
+
}, { create: g, isPending: m } = ew({
|
|
13221
13221
|
onSuccess: h,
|
|
13222
13222
|
onError: (S) => {
|
|
13223
13223
|
cr(S) ? d([{ text: s.categoryNameAlreadyExists, type: "newError" }]) : i({ message: s.saveCategoryFailed, variant: "error" });
|
|
@@ -13225,7 +13225,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13225
13225
|
}), y = (S) => r.some((E) => E.label.trim().toLowerCase() === S.trim().toLowerCase()), b = (S) => {
|
|
13226
13226
|
a(S), S.trim() && y(S) ? d([{ type: "newError", text: s.categoryNameAlreadyExists }]) : d(ni);
|
|
13227
13227
|
}, T = v.useMemo(() => {
|
|
13228
|
-
if (!t) return
|
|
13228
|
+
if (!t) return tw;
|
|
13229
13229
|
const S = o.trim().toLowerCase();
|
|
13230
13230
|
return S ? r.filter((E) => E.label.toLowerCase().includes(S)) : r;
|
|
13231
13231
|
}, [t, r, o]);
|
|
@@ -13255,7 +13255,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13255
13255
|
},
|
|
13256
13256
|
isPending: m
|
|
13257
13257
|
};
|
|
13258
|
-
},
|
|
13258
|
+
}, rw = ({ submitRef: e }) => {
|
|
13259
13259
|
const { translations: t } = W(), { closeModal: n } = Le(), {
|
|
13260
13260
|
name: r,
|
|
13261
13261
|
description: s,
|
|
@@ -13264,8 +13264,8 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13264
13264
|
onNameChange: a,
|
|
13265
13265
|
onDescriptionChange: c,
|
|
13266
13266
|
onSave: l
|
|
13267
|
-
} =
|
|
13268
|
-
return e.current = l, /* @__PURE__ */ O(
|
|
13267
|
+
} = nw(n);
|
|
13268
|
+
return e.current = l, /* @__PURE__ */ O(Jv, { children: [
|
|
13269
13269
|
/* @__PURE__ */ u(
|
|
13270
13270
|
go,
|
|
13271
13271
|
{
|
|
@@ -13285,7 +13285,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13285
13285
|
}
|
|
13286
13286
|
)
|
|
13287
13287
|
] });
|
|
13288
|
-
},
|
|
13288
|
+
}, sw = N.div`
|
|
13289
13289
|
display: flex;
|
|
13290
13290
|
flex-direction: row;
|
|
13291
13291
|
align-items: center;
|
|
@@ -13298,7 +13298,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13298
13298
|
@container (max-width: ${p.breakpoints.medium}) {
|
|
13299
13299
|
flex-direction: column;
|
|
13300
13300
|
}
|
|
13301
|
-
`,
|
|
13301
|
+
`, iw = N.div`
|
|
13302
13302
|
display: flex;
|
|
13303
13303
|
flex-direction: row;
|
|
13304
13304
|
flex: 2;
|
|
@@ -13312,7 +13312,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13312
13312
|
span[class*='-formFieldLayout__label'] {
|
|
13313
13313
|
padding: 0;
|
|
13314
13314
|
}
|
|
13315
|
-
`,
|
|
13315
|
+
`, ow = N.div`
|
|
13316
13316
|
display: flex;
|
|
13317
13317
|
flex-direction: row;
|
|
13318
13318
|
flex: 3;
|
|
@@ -13326,14 +13326,14 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13326
13326
|
flex: 1;
|
|
13327
13327
|
text-align: center;
|
|
13328
13328
|
}
|
|
13329
|
-
`,
|
|
13329
|
+
`, aw = N.div`
|
|
13330
13330
|
padding: ${p.spacing.small} ${p.spacing.mediumSmall};
|
|
13331
13331
|
text-align: center;
|
|
13332
|
-
`,
|
|
13332
|
+
`, cw = N.hr`
|
|
13333
13333
|
border: none;
|
|
13334
13334
|
border-top: ${p.borders.widthSmall} solid ${p.colors.contrasts.grey1214};
|
|
13335
13335
|
width: 100%;
|
|
13336
|
-
`,
|
|
13336
|
+
`, lw = N.div`
|
|
13337
13337
|
display: flex;
|
|
13338
13338
|
flex-direction: row;
|
|
13339
13339
|
gap: ${p.spacing.xSmall};
|
|
@@ -13342,7 +13342,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13342
13342
|
justify-content: space-between;
|
|
13343
13343
|
width: 100%;
|
|
13344
13344
|
}
|
|
13345
|
-
`, Ka = "search-categories-description",
|
|
13345
|
+
`, Ka = "search-categories-description", uw = ({
|
|
13346
13346
|
searchResultCount: e,
|
|
13347
13347
|
isFetching: t
|
|
13348
13348
|
}) => {
|
|
@@ -13356,7 +13356,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13356
13356
|
b({
|
|
13357
13357
|
heading: "newCategory",
|
|
13358
13358
|
size: "small",
|
|
13359
|
-
body: /* @__PURE__ */ u(
|
|
13359
|
+
body: /* @__PURE__ */ u(rw, { submitRef: w }),
|
|
13360
13360
|
handleClose: T,
|
|
13361
13361
|
onPrimaryClick: () => {
|
|
13362
13362
|
var F;
|
|
@@ -13371,11 +13371,11 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13371
13371
|
o(), C(i ? n.allCategoriesCollapsed : n.allCategoriesExpanded);
|
|
13372
13372
|
}, M = !!m && !t && e === 0;
|
|
13373
13373
|
return /* @__PURE__ */ O(Hn, { children: [
|
|
13374
|
-
/* @__PURE__ */ O(
|
|
13374
|
+
/* @__PURE__ */ O(sw, { role: "group", "aria-label": n.searchAndFilter, children: [
|
|
13375
13375
|
m && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: ln, children: t ? n.loadingData : r({ key: "searchResults", vars: { resultCount: e } }) }),
|
|
13376
13376
|
k && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: ln, children: k }),
|
|
13377
13377
|
x && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: ln, children: x }),
|
|
13378
|
-
c && /* @__PURE__ */ u(
|
|
13378
|
+
c && /* @__PURE__ */ u(iw, { children: /* @__PURE__ */ u(
|
|
13379
13379
|
ys,
|
|
13380
13380
|
{
|
|
13381
13381
|
label: "view",
|
|
@@ -13390,7 +13390,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13390
13390
|
]
|
|
13391
13391
|
}
|
|
13392
13392
|
) }),
|
|
13393
|
-
/* @__PURE__ */ O(
|
|
13393
|
+
/* @__PURE__ */ O(ow, { children: [
|
|
13394
13394
|
/* @__PURE__ */ u(yn, { id: Ka, children: n.searchCategoriesDescription }),
|
|
13395
13395
|
/* @__PURE__ */ u(
|
|
13396
13396
|
jt,
|
|
@@ -13432,8 +13432,8 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13432
13432
|
}
|
|
13433
13433
|
) })
|
|
13434
13434
|
] }),
|
|
13435
|
-
s && /* @__PURE__ */ u(
|
|
13436
|
-
/* @__PURE__ */ O(
|
|
13435
|
+
s && /* @__PURE__ */ u(cw, {}),
|
|
13436
|
+
/* @__PURE__ */ O(lw, { children: [
|
|
13437
13437
|
/* @__PURE__ */ u(gn, { size: "small", onClick: D, children: i ? n.collapseAll : n.expandAll }),
|
|
13438
13438
|
a && /* @__PURE__ */ u(
|
|
13439
13439
|
gn,
|
|
@@ -13448,13 +13448,13 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13448
13448
|
)
|
|
13449
13449
|
] })
|
|
13450
13450
|
] }),
|
|
13451
|
-
M && /* @__PURE__ */ u(
|
|
13451
|
+
M && /* @__PURE__ */ u(aw, { children: /* @__PURE__ */ u(K, { children: n.noCategoriesFound }) })
|
|
13452
13452
|
] });
|
|
13453
|
-
},
|
|
13453
|
+
}, dw = {
|
|
13454
13454
|
[Mt.Active]: $e.Active,
|
|
13455
13455
|
[Mt.Archive]: $e.Deleted
|
|
13456
|
-
},
|
|
13457
|
-
const { debouncedSearch: e, selectedView: t, sortOrder: n, tagsWorkflowState: r } = mo(), s = v.useRef(void 0), { accountId: i, executeQuery: o } = oe(), a =
|
|
13456
|
+
}, fw = () => {
|
|
13457
|
+
const { debouncedSearch: e, selectedView: t, sortOrder: n, tagsWorkflowState: r } = mo(), s = v.useRef(void 0), { accountId: i, executeQuery: o } = oe(), a = dw[t], c = t === Mt.Archive, l = c ? $e.Any : $e.Active, f = c ? $e.Deleted : void 0, { cursor: d, currentPage: h, handlePageChange: g, getTotalPages: m } = vs({
|
|
13458
13458
|
endCursorRef: s,
|
|
13459
13459
|
resetKey: `${e}:${a}`
|
|
13460
13460
|
}), { data: y, isPending: b, isFetching: T, isError: w, error: S } = wt({
|
|
@@ -13478,7 +13478,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13478
13478
|
});
|
|
13479
13479
|
s.current = y == null ? void 0 : y.pageInfo.endCursor;
|
|
13480
13480
|
const E = ((y == null ? void 0 : y.nodes) ?? []).filter(lt), k = Object.fromEntries(
|
|
13481
|
-
E.map((C) => [C._id,
|
|
13481
|
+
E.map((C) => [C._id, By(C)])
|
|
13482
13482
|
);
|
|
13483
13483
|
return {
|
|
13484
13484
|
shownCategories: [...((y == null ? void 0 : y.nodes) ?? []).filter(
|
|
@@ -13497,7 +13497,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13497
13497
|
handlePageChange: g,
|
|
13498
13498
|
searchResultCount: (y == null ? void 0 : y.pageInfo.totalCount) ?? 0
|
|
13499
13499
|
};
|
|
13500
|
-
},
|
|
13500
|
+
}, gw = (e, t, n) => {
|
|
13501
13501
|
var b, T, w, S;
|
|
13502
13502
|
const { executeQuery: r } = oe(), s = v.useRef(void 0), { cursor: i, currentPage: o, handlePageChange: a, getTotalPages: c } = vs({
|
|
13503
13503
|
endCursorRef: s,
|
|
@@ -13516,7 +13516,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13516
13516
|
).then((E) => E.institutionalTag)
|
|
13517
13517
|
});
|
|
13518
13518
|
s.current = (b = l == null ? void 0 : l.usersConnection) == null ? void 0 : b.pageInfo.endCursor;
|
|
13519
|
-
const g = l ?
|
|
13519
|
+
const g = l ? zy(l) : void 0, m = v.useRef(g);
|
|
13520
13520
|
g && (m.current = g);
|
|
13521
13521
|
const y = (((T = l == null ? void 0 : l.usersConnection) == null ? void 0 : T.nodes) ?? []).filter(lt).map($u);
|
|
13522
13522
|
return {
|
|
@@ -13530,7 +13530,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13530
13530
|
totalUserCount: ((S = l == null ? void 0 : l.usersConnection) == null ? void 0 : S.pageInfo.totalCount) ?? 0,
|
|
13531
13531
|
handlePageChange: a
|
|
13532
13532
|
};
|
|
13533
|
-
},
|
|
13533
|
+
}, hw = (e) => {
|
|
13534
13534
|
const t = ze(), { showAlert: n } = Me(), { translations: r } = W(), { executeQuery: s } = oe(), { mutate: i } = Ve({
|
|
13535
13535
|
mutationFn: (o) => s(
|
|
13536
13536
|
pl,
|
|
@@ -13548,10 +13548,10 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13548
13548
|
}
|
|
13549
13549
|
});
|
|
13550
13550
|
return { removeUser: i };
|
|
13551
|
-
},
|
|
13552
|
-
/* @__PURE__ */ O(
|
|
13553
|
-
/* @__PURE__ */ O(
|
|
13554
|
-
/* @__PURE__ */ O(
|
|
13551
|
+
}, mw = () => /* @__PURE__ */ O("div", { "aria-hidden": !0, children: [
|
|
13552
|
+
/* @__PURE__ */ O(Em, { children: [
|
|
13553
|
+
/* @__PURE__ */ O(Am, { children: [
|
|
13554
|
+
/* @__PURE__ */ O(Om, { children: [
|
|
13555
13555
|
/* @__PURE__ */ u(
|
|
13556
13556
|
V,
|
|
13557
13557
|
{
|
|
@@ -13578,7 +13578,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13578
13578
|
}
|
|
13579
13579
|
)
|
|
13580
13580
|
] }),
|
|
13581
|
-
/* @__PURE__ */ u(
|
|
13581
|
+
/* @__PURE__ */ u(Dm, { children: Yr(3).map((e) => /* @__PURE__ */ u(
|
|
13582
13582
|
V,
|
|
13583
13583
|
{
|
|
13584
13584
|
$width: p.spacing.large,
|
|
@@ -13590,7 +13590,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13590
13590
|
] }),
|
|
13591
13591
|
/* @__PURE__ */ u(V, { $width: "60%", $height: p.typography.fontSizeSmall })
|
|
13592
13592
|
] }),
|
|
13593
|
-
/* @__PURE__ */ O(
|
|
13593
|
+
/* @__PURE__ */ O($m, { style: { marginTop: p.spacing.medium }, children: [
|
|
13594
13594
|
/* @__PURE__ */ u(V, { $height: p.spacing.xLarge }),
|
|
13595
13595
|
/* @__PURE__ */ u(
|
|
13596
13596
|
V,
|
|
@@ -13601,7 +13601,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13601
13601
|
}
|
|
13602
13602
|
)
|
|
13603
13603
|
] }),
|
|
13604
|
-
/* @__PURE__ */ O(
|
|
13604
|
+
/* @__PURE__ */ O(Rm, { style: { marginTop: p.spacing.medium }, children: [
|
|
13605
13605
|
/* @__PURE__ */ O(sa, { children: [
|
|
13606
13606
|
/* @__PURE__ */ u(V, { $height: p.typography.fontSizeMedium, $width: "40px" }),
|
|
13607
13607
|
/* @__PURE__ */ u(V, { $height: p.typography.fontSizeMedium, $width: "120px" }),
|
|
@@ -13620,21 +13620,21 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13620
13620
|
)
|
|
13621
13621
|
] }, e.id))
|
|
13622
13622
|
] })
|
|
13623
|
-
] }),
|
|
13623
|
+
] }), pw = `@container ${er} (max-width: ${p.breakpoints.small})`, yw = N.div`
|
|
13624
13624
|
display: flex;
|
|
13625
13625
|
flex-direction: column;
|
|
13626
13626
|
gap: ${p.spacing.medium};
|
|
13627
|
-
`,
|
|
13627
|
+
`, vw = N.div`
|
|
13628
13628
|
border: ${p.borders.widthSmall} solid ${p.colors.contrasts.grey1214};
|
|
13629
13629
|
border-radius: ${p.borders.radiusLarge};
|
|
13630
13630
|
padding: ${p.spacing.small} ${p.spacing.medium};
|
|
13631
|
-
`,
|
|
13631
|
+
`, ww = N.div`
|
|
13632
13632
|
display: flex;
|
|
13633
13633
|
flex-direction: row;
|
|
13634
13634
|
align-items: center;
|
|
13635
13635
|
gap: ${p.spacing.small};
|
|
13636
13636
|
justify-content: space-between;
|
|
13637
|
-
`,
|
|
13637
|
+
`, bw = N.div`
|
|
13638
13638
|
display: flex;
|
|
13639
13639
|
flex-direction: row;
|
|
13640
13640
|
align-items: center;
|
|
@@ -13642,22 +13642,22 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13642
13642
|
flex: 1;
|
|
13643
13643
|
min-width: 0;
|
|
13644
13644
|
flex-wrap: wrap;
|
|
13645
|
-
`,
|
|
13645
|
+
`, Tw = N.div`
|
|
13646
13646
|
display: flex;
|
|
13647
13647
|
flex-direction: row;
|
|
13648
13648
|
gap: ${p.spacing.xSmall};
|
|
13649
13649
|
flex-shrink: 0;
|
|
13650
|
-
`,
|
|
13650
|
+
`, Cw = N.div`
|
|
13651
13651
|
display: flex;
|
|
13652
13652
|
flex-direction: row;
|
|
13653
13653
|
gap: ${p.spacing.small};
|
|
13654
13654
|
align-items: flex-end;
|
|
13655
13655
|
|
|
13656
|
-
${
|
|
13656
|
+
${pw} {
|
|
13657
13657
|
flex-direction: column;
|
|
13658
13658
|
align-items: stretch;
|
|
13659
13659
|
}
|
|
13660
|
-
`,
|
|
13660
|
+
`, Sw = N.div`
|
|
13661
13661
|
flex: 1;
|
|
13662
13662
|
min-width: 0;
|
|
13663
13663
|
`, Qa = N.div`
|
|
@@ -13669,10 +13669,10 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13669
13669
|
display: flex;
|
|
13670
13670
|
flex-direction: column;
|
|
13671
13671
|
gap: ${p.spacing.xxxSmall};
|
|
13672
|
-
`,
|
|
13672
|
+
`, xw = N.div`
|
|
13673
13673
|
padding: ${p.spacing.small} 0;
|
|
13674
13674
|
text-align: center;
|
|
13675
|
-
`,
|
|
13675
|
+
`, kw = N.span.attrs({ "aria-hidden": "true" })``, Iw = ({
|
|
13676
13676
|
tag: e,
|
|
13677
13677
|
onEdit: t,
|
|
13678
13678
|
onArchive: n,
|
|
@@ -13700,9 +13700,9 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13700
13700
|
}
|
|
13701
13701
|
) })
|
|
13702
13702
|
] }) : null;
|
|
13703
|
-
return /* @__PURE__ */ O(
|
|
13704
|
-
/* @__PURE__ */ O(
|
|
13705
|
-
/* @__PURE__ */ O(
|
|
13703
|
+
return /* @__PURE__ */ O(vw, { children: [
|
|
13704
|
+
/* @__PURE__ */ O(ww, { children: [
|
|
13705
|
+
/* @__PURE__ */ O(bw, { children: [
|
|
13706
13706
|
/* @__PURE__ */ u(tc, {}),
|
|
13707
13707
|
/* @__PURE__ */ u(Yn, { level: "h3", variant: "titleCardMini", children: e.name }),
|
|
13708
13708
|
e.createdAt && /* @__PURE__ */ u(qt, { color: "info", children: /* @__PURE__ */ u(K, { weight: "bold", children: i({ key: "createdAt", vars: { date: Nu(e.createdAt) } }) }) }),
|
|
@@ -13719,7 +13719,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13719
13719
|
}
|
|
13720
13720
|
)
|
|
13721
13721
|
] }),
|
|
13722
|
-
/* @__PURE__ */ O(
|
|
13722
|
+
/* @__PURE__ */ O(Tw, { children: [
|
|
13723
13723
|
c(),
|
|
13724
13724
|
/* @__PURE__ */ u(Ut, { renderTip: s.closeTagDetails, children: /* @__PURE__ */ u(
|
|
13725
13725
|
We,
|
|
@@ -13735,7 +13735,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13735
13735
|
] }),
|
|
13736
13736
|
e.description && /* @__PURE__ */ u(K, { size: "medium", children: e.description })
|
|
13737
13737
|
] });
|
|
13738
|
-
},
|
|
13738
|
+
}, Nw = ({
|
|
13739
13739
|
users: e,
|
|
13740
13740
|
isLoading: t,
|
|
13741
13741
|
currentPage: n,
|
|
@@ -13776,8 +13776,8 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13776
13776
|
return /* @__PURE__ */ O(Hn, { children: [
|
|
13777
13777
|
S && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: ln, children: S }),
|
|
13778
13778
|
F && /* @__PURE__ */ u($t, { screenReaderOnly: !0, liveRegion: ln, children: m({ key: "searchResults", vars: { resultCount: s } }) }),
|
|
13779
|
-
/* @__PURE__ */ O(
|
|
13780
|
-
/* @__PURE__ */ O(
|
|
13779
|
+
/* @__PURE__ */ O(Cw, { children: [
|
|
13780
|
+
/* @__PURE__ */ O(Sw, { children: [
|
|
13781
13781
|
/* @__PURE__ */ u(yn, { id: C, children: g.searchUsersDescription }),
|
|
13782
13782
|
/* @__PURE__ */ u(
|
|
13783
13783
|
jt,
|
|
@@ -13821,7 +13821,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13821
13821
|
}
|
|
13822
13822
|
)
|
|
13823
13823
|
] }),
|
|
13824
|
-
R && /* @__PURE__ */ u(
|
|
13824
|
+
R && /* @__PURE__ */ u(xw, { children: /* @__PURE__ */ u(K, { children: g.noUsersFound }) }),
|
|
13825
13825
|
/* @__PURE__ */ O(Ne, { caption: U, layout: b ? "stacked" : void 0, hover: !b, children: [
|
|
13826
13826
|
/* @__PURE__ */ u(Ne.Head, { renderSortLabel: g.sortPeople, children: /* @__PURE__ */ O(Ne.Row, { children: [
|
|
13827
13827
|
/* @__PURE__ */ u(Ne.ColHeader, { id: "name", sortDirection: i, onRequestSort: I, children: g.name }),
|
|
@@ -13847,7 +13847,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13847
13847
|
] })
|
|
13848
13848
|
] }) }),
|
|
13849
13849
|
/* @__PURE__ */ u(Ne.Cell, { children: L.sisId ?? /* @__PURE__ */ O(Hn, { children: [
|
|
13850
|
-
/* @__PURE__ */ u(
|
|
13850
|
+
/* @__PURE__ */ u(kw, { children: "—" }),
|
|
13851
13851
|
/* @__PURE__ */ u(yn, { children: g.noData })
|
|
13852
13852
|
] }) }),
|
|
13853
13853
|
y && /* @__PURE__ */ u(Ne.Cell, { children: /* @__PURE__ */ u(
|
|
@@ -13886,10 +13886,10 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13886
13886
|
}
|
|
13887
13887
|
)
|
|
13888
13888
|
] });
|
|
13889
|
-
},
|
|
13889
|
+
}, Ew = (e) => {
|
|
13890
13890
|
if (e !== "none")
|
|
13891
13891
|
return { field: "username", direction: e === "ascending" ? "asc" : "desc" };
|
|
13892
|
-
},
|
|
13892
|
+
}, Aw = ({ tagId: e, onClose: t }) => {
|
|
13893
13893
|
const { openModal: n, closeModal: r } = Le(), { data: s = [] } = Nn({ enabled: !0 }), { data: i = [] } = uo(), o = v.useRef(void 0), [a, c] = v.useState("none"), [l, f] = v.useState(""), [d, h] = v.useState(""), { handleAddPeople: g } = Wu(o);
|
|
13894
13894
|
v.useEffect(() => {
|
|
13895
13895
|
const D = setTimeout(() => h(l), ho);
|
|
@@ -13904,7 +13904,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13904
13904
|
totalPages: S,
|
|
13905
13905
|
totalUserCount: E,
|
|
13906
13906
|
handlePageChange: k
|
|
13907
|
-
} =
|
|
13907
|
+
} = gw(e, Ew(a), d || void 0), { archive: A } = Uu((m == null ? void 0 : m.category._id) ?? ""), { removeUser: x } = hw(e), C = () => {
|
|
13908
13908
|
m && n({
|
|
13909
13909
|
heading: "editTag",
|
|
13910
13910
|
body: /* @__PURE__ */ u(
|
|
@@ -13934,9 +13934,9 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13934
13934
|
}
|
|
13935
13935
|
});
|
|
13936
13936
|
};
|
|
13937
|
-
return b || !m ? /* @__PURE__ */ u(
|
|
13937
|
+
return b || !m ? /* @__PURE__ */ u(mw, {}) : /* @__PURE__ */ O(yw, { children: [
|
|
13938
13938
|
/* @__PURE__ */ u(
|
|
13939
|
-
|
|
13939
|
+
Iw,
|
|
13940
13940
|
{
|
|
13941
13941
|
tag: m,
|
|
13942
13942
|
onEdit: C,
|
|
@@ -13945,7 +13945,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13945
13945
|
}
|
|
13946
13946
|
),
|
|
13947
13947
|
/* @__PURE__ */ u(
|
|
13948
|
-
|
|
13948
|
+
Nw,
|
|
13949
13949
|
{
|
|
13950
13950
|
users: y,
|
|
13951
13951
|
isLoading: T,
|
|
@@ -13963,12 +13963,12 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13963
13963
|
}
|
|
13964
13964
|
)
|
|
13965
13965
|
] });
|
|
13966
|
-
},
|
|
13966
|
+
}, Ow = N.div`
|
|
13967
13967
|
display: flex;
|
|
13968
13968
|
flex-direction: column;
|
|
13969
13969
|
padding-block-start: ${p.spacing.mediumSmall};
|
|
13970
13970
|
gap: ${p.spacing.mediumSmall};
|
|
13971
|
-
`,
|
|
13971
|
+
`, Dw = ({ onTagSelect: e }) => {
|
|
13972
13972
|
const { translations: t } = W(), {
|
|
13973
13973
|
shownCategories: n,
|
|
13974
13974
|
categoryTagsMap: r,
|
|
@@ -13980,12 +13980,12 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
13980
13980
|
totalPages: l,
|
|
13981
13981
|
handlePageChange: f,
|
|
13982
13982
|
searchResultCount: d
|
|
13983
|
-
} =
|
|
13984
|
-
return /* @__PURE__ */ O(
|
|
13983
|
+
} = fw();
|
|
13984
|
+
return /* @__PURE__ */ O(qm, { children: [
|
|
13985
13985
|
/* @__PURE__ */ u(yn, { as: "h2", children: t.accountTags }),
|
|
13986
|
-
/* @__PURE__ */ u(
|
|
13986
|
+
/* @__PURE__ */ u(uw, { searchResultCount: d, isFetching: i }),
|
|
13987
13987
|
/* @__PURE__ */ u(
|
|
13988
|
-
|
|
13988
|
+
Rv,
|
|
13989
13989
|
{
|
|
13990
13990
|
categories: n,
|
|
13991
13991
|
categoryTagsMap: r,
|
|
@@ -14000,7 +14000,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14000
14000
|
}
|
|
14001
14001
|
)
|
|
14002
14002
|
] });
|
|
14003
|
-
},
|
|
14003
|
+
}, $w = ({ onTagSelect: e }) => /* @__PURE__ */ u(Cv, { children: /* @__PURE__ */ u(Dw, { onTagSelect: e }) }), Nb = ({ initialTagId: e, onTagSelect: t }) => {
|
|
14004
14004
|
const [n, r] = v.useState(e ?? null), s = v.useRef(null), i = v.useCallback(
|
|
14005
14005
|
(a) => {
|
|
14006
14006
|
r(a), t == null || t(a);
|
|
@@ -14009,22 +14009,22 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14009
14009
|
), o = v.useCallback(() => {
|
|
14010
14010
|
s.current = n, i(null);
|
|
14011
14011
|
}, [n, i]);
|
|
14012
|
-
return /* @__PURE__ */ u(Hu, { children: /* @__PURE__ */ u(
|
|
14013
|
-
},
|
|
14012
|
+
return /* @__PURE__ */ u(Hu, { children: /* @__PURE__ */ u(Ow, { children: n ? /* @__PURE__ */ u(Aw, { tagId: n, onClose: o }) : /* @__PURE__ */ u(tv, { pendingFocusTagIdRef: s, children: /* @__PURE__ */ u($w, { onTagSelect: i }) }) }) });
|
|
14013
|
+
}, Rw = (e) => {
|
|
14014
14014
|
const { accountId: t, executeQuery: n } = oe(), { data: r, isPending: s, isError: i } = wt({
|
|
14015
14015
|
queryKey: ["userTags", e, t],
|
|
14016
14016
|
queryFn: () => n(
|
|
14017
|
-
|
|
14017
|
+
Wy,
|
|
14018
14018
|
{ userId: e, accountId: t }
|
|
14019
14019
|
).then(
|
|
14020
14020
|
(a) => {
|
|
14021
14021
|
var c, l;
|
|
14022
|
-
return (((l = (c = a.user) == null ? void 0 : c.institutionalTagsConnection) == null ? void 0 : l.nodes) ?? []).filter(lt).map(
|
|
14022
|
+
return (((l = (c = a.user) == null ? void 0 : c.institutionalTagsConnection) == null ? void 0 : l.nodes) ?? []).filter(lt).map(Vy);
|
|
14023
14023
|
}
|
|
14024
14024
|
)
|
|
14025
14025
|
});
|
|
14026
14026
|
return { tags: r ?? [], isPending: s, isError: i };
|
|
14027
|
-
},
|
|
14027
|
+
}, Mw = (e) => {
|
|
14028
14028
|
const t = ze(), { showAlert: n } = Me(), { translations: r } = W(), { accountId: s, executeQuery: i } = oe(), { mutate: o } = Ve({
|
|
14029
14029
|
mutationFn: (a) => i(
|
|
14030
14030
|
pl,
|
|
@@ -14042,12 +14042,12 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14042
14042
|
}
|
|
14043
14043
|
});
|
|
14044
14044
|
return { removeTag: o };
|
|
14045
|
-
},
|
|
14045
|
+
}, Lw = 500, Pw = 5 * 60 * 1e3, Fw = ({ enabled: e = !1 } = {}) => {
|
|
14046
14046
|
const { accountId: t, executeQuery: n } = oe();
|
|
14047
14047
|
return wt({
|
|
14048
14048
|
queryKey: ["allActiveTags", t],
|
|
14049
14049
|
enabled: e,
|
|
14050
|
-
staleTime:
|
|
14050
|
+
staleTime: Pw,
|
|
14051
14051
|
queryFn: async ({ signal: r }) => {
|
|
14052
14052
|
var a;
|
|
14053
14053
|
const s = [];
|
|
@@ -14055,15 +14055,15 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14055
14055
|
for (; o; ) {
|
|
14056
14056
|
if (r != null && r.aborted) throw new DOMException("Query aborted", "AbortError");
|
|
14057
14057
|
const l = (a = (await n(
|
|
14058
|
-
|
|
14059
|
-
{ accountId: t, first:
|
|
14058
|
+
qy,
|
|
14059
|
+
{ accountId: t, first: Lw, after: i }
|
|
14060
14060
|
)).account) == null ? void 0 : a.institutionalTagsConnection, f = ((l == null ? void 0 : l.nodes) ?? []).filter(lt).map((d) => lo(d));
|
|
14061
14061
|
s.push(...f), o = (l == null ? void 0 : l.pageInfo.hasNextPage) ?? !1, i = (l == null ? void 0 : l.pageInfo.endCursor) ?? void 0;
|
|
14062
14062
|
}
|
|
14063
14063
|
return s;
|
|
14064
14064
|
}
|
|
14065
14065
|
});
|
|
14066
|
-
},
|
|
14066
|
+
}, _w = (e) => {
|
|
14067
14067
|
const t = ze(), { showAlert: n } = Me(), { translations: r, resolveToken: s } = W(), { accountId: i, executeQuery: o } = oe(), { closeModal: a } = Le(), { mutate: c, isPending: l } = Ve({
|
|
14068
14068
|
mutationFn: (f) => Promise.all(
|
|
14069
14069
|
f.map(
|
|
@@ -14092,21 +14092,21 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14092
14092
|
}
|
|
14093
14093
|
});
|
|
14094
14094
|
return { assignTags: c, isPending: l };
|
|
14095
|
-
},
|
|
14095
|
+
}, qw = N.div`
|
|
14096
14096
|
padding: ${p.spacing.mediumSmall};
|
|
14097
14097
|
display: flex;
|
|
14098
14098
|
flex-direction: column;
|
|
14099
14099
|
gap: ${p.spacing.small};
|
|
14100
|
-
`,
|
|
14100
|
+
`, Ww = N.div`
|
|
14101
14101
|
display: flex;
|
|
14102
14102
|
flex-wrap: wrap;
|
|
14103
14103
|
gap: ${p.spacing.xxSmall};
|
|
14104
|
-
`,
|
|
14104
|
+
`, Uw = ({
|
|
14105
14105
|
userId: e,
|
|
14106
14106
|
existingTagIds: t,
|
|
14107
14107
|
submitRef: n
|
|
14108
14108
|
}) => {
|
|
14109
|
-
const { translations: r, resolveToken: s } = W(), [i, o] = v.useState(""), [a, c] = v.useState(!1), [l, f] = v.useState(null), [d, h] = v.useState([]), [g, m] = v.useState([]), { data: y = [] } =
|
|
14109
|
+
const { translations: r, resolveToken: s } = W(), [i, o] = v.useState(""), [a, c] = v.useState(!1), [l, f] = v.useState(null), [d, h] = v.useState([]), [g, m] = v.useState([]), { data: y = [] } = Fw({ enabled: !0 }), { assignTags: b } = _w(e);
|
|
14110
14110
|
v.useEffect(() => {
|
|
14111
14111
|
n.current = () => {
|
|
14112
14112
|
if (d.length === 0) {
|
|
@@ -14144,7 +14144,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14144
14144
|
children: C.name
|
|
14145
14145
|
},
|
|
14146
14146
|
C._id
|
|
14147
|
-
)) }, x.categoryId)), A = d.length > 0 ? /* @__PURE__ */ u(
|
|
14147
|
+
)) }, x.categoryId)), A = d.length > 0 ? /* @__PURE__ */ u(Ww, { children: d.map((x) => /* @__PURE__ */ u(
|
|
14148
14148
|
Zn,
|
|
14149
14149
|
{
|
|
14150
14150
|
text: x.name,
|
|
@@ -14157,7 +14157,7 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14157
14157
|
},
|
|
14158
14158
|
x._id
|
|
14159
14159
|
)) }) : null;
|
|
14160
|
-
return /* @__PURE__ */ O(
|
|
14160
|
+
return /* @__PURE__ */ O(qw, { children: [
|
|
14161
14161
|
/* @__PURE__ */ u(
|
|
14162
14162
|
De,
|
|
14163
14163
|
{
|
|
@@ -14186,43 +14186,43 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14186
14186
|
vars: { count: d.length }
|
|
14187
14187
|
}) })
|
|
14188
14188
|
] });
|
|
14189
|
-
},
|
|
14189
|
+
}, zw = 4, Vw = [
|
|
14190
14190
|
p.spacing.xxLarge,
|
|
14191
14191
|
p.spacing.xLarge,
|
|
14192
14192
|
p.spacing.xxLarge,
|
|
14193
14193
|
p.spacing.xLarge
|
|
14194
|
-
],
|
|
14195
|
-
const e = lr(
|
|
14196
|
-
return /* @__PURE__ */ u(
|
|
14194
|
+
], Bw = () => {
|
|
14195
|
+
const e = lr(zw);
|
|
14196
|
+
return /* @__PURE__ */ u(Mm, { "aria-hidden": !0, children: e.map((t, n) => /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u(
|
|
14197
14197
|
V,
|
|
14198
14198
|
{
|
|
14199
|
-
$width:
|
|
14199
|
+
$width: Vw[n],
|
|
14200
14200
|
$height: p.spacing.mediumSmall,
|
|
14201
14201
|
$radius: "999px"
|
|
14202
14202
|
}
|
|
14203
14203
|
) }, t)) });
|
|
14204
|
-
},
|
|
14204
|
+
}, jw = N.div`
|
|
14205
14205
|
padding: ${p.spacing.small} 0;
|
|
14206
|
-
`,
|
|
14206
|
+
`, Gw = N.div`
|
|
14207
14207
|
display: flex;
|
|
14208
14208
|
align-items: flex-start;
|
|
14209
14209
|
gap: ${p.spacing.mediumSmall};
|
|
14210
|
-
`,
|
|
14210
|
+
`, Hw = N.div`
|
|
14211
14211
|
flex: 1;
|
|
14212
|
-
`,
|
|
14212
|
+
`, Zw = N.ul`
|
|
14213
14213
|
display: flex;
|
|
14214
14214
|
flex-wrap: wrap;
|
|
14215
14215
|
gap: ${p.spacing.xxSmall};
|
|
14216
14216
|
list-style: none;
|
|
14217
14217
|
margin: 0;
|
|
14218
14218
|
padding: 0;
|
|
14219
|
-
`,
|
|
14219
|
+
`, Yw = N.li`
|
|
14220
14220
|
display: flex;
|
|
14221
|
-
`,
|
|
14222
|
-
const { translations: t, resolveToken: n } = W(), { canEdit: r } = Yt(), { openModal: s, closeModal: i } = Le(), { tags: o, isPending: a, isError: c } =
|
|
14221
|
+
`, Kw = ({ userId: e }) => {
|
|
14222
|
+
const { translations: t, resolveToken: n } = W(), { canEdit: r } = Yt(), { openModal: s, closeModal: i } = Le(), { tags: o, isPending: a, isError: c } = Rw(e), { removeTag: l } = Mw(e), f = v.useRef(void 0), d = v.useMemo(() => new Set(o.map((y) => y._id)), [o]), h = () => {
|
|
14223
14223
|
s({
|
|
14224
14224
|
heading: "assignTagsToUser",
|
|
14225
|
-
body: /* @__PURE__ */ u(
|
|
14225
|
+
body: /* @__PURE__ */ u(Uw, { userId: e, existingTagIds: d, submitRef: f }),
|
|
14226
14226
|
handleClose: i,
|
|
14227
14227
|
primaryButtonLabel: "add",
|
|
14228
14228
|
onPrimaryClick: () => {
|
|
@@ -14242,8 +14242,8 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14242
14242
|
}
|
|
14243
14243
|
});
|
|
14244
14244
|
};
|
|
14245
|
-
return /* @__PURE__ */ u(
|
|
14246
|
-
/* @__PURE__ */ u(
|
|
14245
|
+
return /* @__PURE__ */ u(jw, { children: /* @__PURE__ */ O(Gw, { children: [
|
|
14246
|
+
/* @__PURE__ */ u(Hw, { children: a ? /* @__PURE__ */ u(Bw, {}) : c ? /* @__PURE__ */ u(K, { color: "danger", size: "small", children: t.loadTagsFailed }) : o.length === 0 ? /* @__PURE__ */ u(K, { color: "secondary", size: "small", children: t.noTagsAssigned }) : /* @__PURE__ */ u(Zw, { children: o.map((y) => /* @__PURE__ */ u(Yw, { children: /* @__PURE__ */ u(
|
|
14247
14247
|
Zn,
|
|
14248
14248
|
{
|
|
14249
14249
|
text: y.name,
|
|
@@ -14257,9 +14257,9 @@ const Gv = /* @__PURE__ */ Rv(jv), Ya = N.div`
|
|
|
14257
14257
|
) }, y._id)) }) }),
|
|
14258
14258
|
r && /* @__PURE__ */ u(gn, { size: "small", onClick: h, children: t.assignTagsToUser })
|
|
14259
14259
|
] }) });
|
|
14260
|
-
},
|
|
14260
|
+
}, Eb = ({ userId: e }) => /* @__PURE__ */ u(Hu, { children: /* @__PURE__ */ u(Kw, { userId: e }) });
|
|
14261
14261
|
export {
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14262
|
+
Nb as AccountTags,
|
|
14263
|
+
Eb as UserProfileTags,
|
|
14264
|
+
Ib as UserTagList
|
|
14265
14265
|
};
|