arkenstone-ui 0.0.68 → 0.0.69
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/index.js +471 -469
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1796,10 +1796,10 @@ function Ev(e) {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
const Rv = (e) => {
|
|
1798
1798
|
var t, n, r, o, i, a, s, l, c;
|
|
1799
|
-
const { invert: d, toast: u, unstyled: m, interacting: p, setHeights: y, visibleToasts: g, heights: b, index: x, toasts: v, expanded: w, removeToast: S, defaultRichColors: _, closeButton: C, style: k, cancelButtonStyle: O, actionButtonStyle: $, className: V = "", descriptionClassName: U = "", duration: ee, position: Q, gap: z, expandByDefault: G, classNames: A, icons:
|
|
1799
|
+
const { invert: d, toast: u, unstyled: m, interacting: p, setHeights: y, visibleToasts: g, heights: b, index: x, toasts: v, expanded: w, removeToast: S, defaultRichColors: _, closeButton: C, style: k, cancelButtonStyle: O, actionButtonStyle: $, className: V = "", descriptionClassName: U = "", duration: ee, position: Q, gap: z, expandByDefault: G, classNames: A, icons: Z, closeButtonAriaLabel: J = "Close toast" } = e, [M, E] = P.useState(null), [I, ne] = P.useState(null), [j, H] = P.useState(!1), [B, Y] = P.useState(!1), [N, F] = P.useState(!1), [q, X] = P.useState(!1), [oe, L] = P.useState(!1), [be, Se] = P.useState(0), [Ue, Xe] = P.useState(0), Ge = P.useRef(u.duration || ee || dc), Je = P.useRef(null), $e = P.useRef(null), Rt = x === 0, kt = x + 1 <= g, te = u.type, fe = u.dismissible !== !1, Ce = u.className || "", W = u.descriptionClassName || "", K = P.useMemo(() => b.findIndex((ue) => ue.toastId === u.id) || 0, [
|
|
1800
1800
|
b,
|
|
1801
1801
|
u.id
|
|
1802
|
-
]),
|
|
1802
|
+
]), ve = P.useMemo(() => {
|
|
1803
1803
|
var ue;
|
|
1804
1804
|
return (ue = u.closeButton) != null ? ue : C;
|
|
1805
1805
|
}, [
|
|
@@ -1808,12 +1808,12 @@ const Rv = (e) => {
|
|
|
1808
1808
|
]), ce = P.useMemo(() => u.duration || ee || dc, [
|
|
1809
1809
|
u.duration,
|
|
1810
1810
|
ee
|
|
1811
|
-
]),
|
|
1811
|
+
]), me = P.useRef(0), ke = P.useRef(0), je = P.useRef(0), rt = P.useRef(null), [jt, Jt] = Q.split("-"), xt = P.useMemo(() => b.reduce((ue, de, Ye) => Ye >= K ? ue : ue + de.height, 0), [
|
|
1812
1812
|
b,
|
|
1813
|
-
|
|
1814
|
-
]), pn = dv(), mn = u.invert || d, Qt =
|
|
1815
|
-
ke.current = P.useMemo(() =>
|
|
1816
|
-
|
|
1813
|
+
K
|
|
1814
|
+
]), pn = dv(), mn = u.invert || d, Qt = te === "loading";
|
|
1815
|
+
ke.current = P.useMemo(() => K * z + xt, [
|
|
1816
|
+
K,
|
|
1817
1817
|
xt
|
|
1818
1818
|
]), P.useEffect(() => {
|
|
1819
1819
|
Ge.current = ce;
|
|
@@ -1874,16 +1874,16 @@ const Rv = (e) => {
|
|
|
1874
1874
|
ke
|
|
1875
1875
|
]);
|
|
1876
1876
|
P.useEffect(() => {
|
|
1877
|
-
if (u.promise &&
|
|
1877
|
+
if (u.promise && te === "loading" || u.duration === 1 / 0 || u.type === "loading") return;
|
|
1878
1878
|
let ue;
|
|
1879
1879
|
return w || p || pn ? (() => {
|
|
1880
|
-
if (je.current <
|
|
1881
|
-
const it = (/* @__PURE__ */ new Date()).getTime() -
|
|
1880
|
+
if (je.current < me.current) {
|
|
1881
|
+
const it = (/* @__PURE__ */ new Date()).getTime() - me.current;
|
|
1882
1882
|
Ge.current = Ge.current - it;
|
|
1883
1883
|
}
|
|
1884
1884
|
je.current = (/* @__PURE__ */ new Date()).getTime();
|
|
1885
1885
|
})() : (() => {
|
|
1886
|
-
Ge.current !== 1 / 0 && (
|
|
1886
|
+
Ge.current !== 1 / 0 && (me.current = (/* @__PURE__ */ new Date()).getTime(), ue = setTimeout(() => {
|
|
1887
1887
|
u.onAutoClose == null || u.onAutoClose.call(u, u), ot();
|
|
1888
1888
|
}, Ge.current));
|
|
1889
1889
|
})(), () => clearTimeout(ue);
|
|
@@ -1891,7 +1891,7 @@ const Rv = (e) => {
|
|
|
1891
1891
|
w,
|
|
1892
1892
|
p,
|
|
1893
1893
|
u,
|
|
1894
|
-
|
|
1894
|
+
te,
|
|
1895
1895
|
pn,
|
|
1896
1896
|
ot
|
|
1897
1897
|
]), P.useEffect(() => {
|
|
@@ -1902,26 +1902,26 @@ const Rv = (e) => {
|
|
|
1902
1902
|
]);
|
|
1903
1903
|
function ye() {
|
|
1904
1904
|
var ue;
|
|
1905
|
-
if (
|
|
1905
|
+
if (Z != null && Z.loading) {
|
|
1906
1906
|
var de;
|
|
1907
1907
|
return /* @__PURE__ */ P.createElement("div", {
|
|
1908
1908
|
className: Bt(A == null ? void 0 : A.loader, u == null || (de = u.classNames) == null ? void 0 : de.loader, "sonner-loader"),
|
|
1909
|
-
"data-visible":
|
|
1910
|
-
},
|
|
1909
|
+
"data-visible": te === "loading"
|
|
1910
|
+
}, Z.loading);
|
|
1911
1911
|
}
|
|
1912
1912
|
return /* @__PURE__ */ P.createElement(iv, {
|
|
1913
1913
|
className: Bt(A == null ? void 0 : A.loader, u == null || (ue = u.classNames) == null ? void 0 : ue.loader),
|
|
1914
|
-
visible:
|
|
1914
|
+
visible: te === "loading"
|
|
1915
1915
|
});
|
|
1916
1916
|
}
|
|
1917
|
-
const Re = u.icon || (
|
|
1918
|
-
var
|
|
1917
|
+
const Re = u.icon || (Z == null ? void 0 : Z[te]) || rv(te);
|
|
1918
|
+
var pe, _e;
|
|
1919
1919
|
return /* @__PURE__ */ P.createElement("li", {
|
|
1920
1920
|
tabIndex: 0,
|
|
1921
1921
|
ref: $e,
|
|
1922
|
-
className: Bt(V, Ce, A == null ? void 0 : A.toast, u == null || (t = u.classNames) == null ? void 0 : t.toast, A == null ? void 0 : A.default, A == null ? void 0 : A[
|
|
1922
|
+
className: Bt(V, Ce, A == null ? void 0 : A.toast, u == null || (t = u.classNames) == null ? void 0 : t.toast, A == null ? void 0 : A.default, A == null ? void 0 : A[te], u == null || (n = u.classNames) == null ? void 0 : n[te]),
|
|
1923
1923
|
"data-sonner-toast": "",
|
|
1924
|
-
"data-rich-colors": (
|
|
1924
|
+
"data-rich-colors": (pe = u.richColors) != null ? pe : _,
|
|
1925
1925
|
"data-styled": !(u.jsx || u.unstyled || m),
|
|
1926
1926
|
"data-mounted": j,
|
|
1927
1927
|
"data-promise": !!u.promise,
|
|
@@ -1933,8 +1933,8 @@ const Rv = (e) => {
|
|
|
1933
1933
|
"data-index": x,
|
|
1934
1934
|
"data-front": Rt,
|
|
1935
1935
|
"data-swiping": N,
|
|
1936
|
-
"data-dismissible":
|
|
1937
|
-
"data-type":
|
|
1936
|
+
"data-dismissible": fe,
|
|
1937
|
+
"data-type": te,
|
|
1938
1938
|
"data-invert": mn,
|
|
1939
1939
|
"data-swipe-out": q,
|
|
1940
1940
|
"data-swipe-direction": I,
|
|
@@ -1953,18 +1953,18 @@ const Rv = (e) => {
|
|
|
1953
1953
|
F(!1), E(null), rt.current = null;
|
|
1954
1954
|
},
|
|
1955
1955
|
onPointerDown: (ue) => {
|
|
1956
|
-
ue.button !== 2 && (Qt || !
|
|
1956
|
+
ue.button !== 2 && (Qt || !fe || (Je.current = /* @__PURE__ */ new Date(), Se(ke.current), ue.target.setPointerCapture(ue.pointerId), ue.target.tagName !== "BUTTON" && (F(!0), rt.current = {
|
|
1957
1957
|
x: ue.clientX,
|
|
1958
1958
|
y: ue.clientY
|
|
1959
1959
|
})));
|
|
1960
1960
|
},
|
|
1961
1961
|
onPointerUp: () => {
|
|
1962
1962
|
var ue, de, Ye;
|
|
1963
|
-
if (q || !
|
|
1963
|
+
if (q || !fe) return;
|
|
1964
1964
|
rt.current = null;
|
|
1965
1965
|
const it = Number(((ue = $e.current) == null ? void 0 : ue.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Jn = Number(((de = $e.current) == null ? void 0 : de.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Be = (/* @__PURE__ */ new Date()).getTime() - ((Ye = Je.current) == null ? void 0 : Ye.getTime()), Qe = M === "x" ? it : Jn, bo = Math.abs(Qe) / Be;
|
|
1966
1966
|
if (Math.abs(Qe) >= Cv || bo > 0.11) {
|
|
1967
|
-
Se(ke.current), u.onDismiss == null || u.onDismiss.call(u, u),
|
|
1967
|
+
Se(ke.current), u.onDismiss == null || u.onDismiss.call(u, u), ne(M === "x" ? it > 0 ? "right" : "left" : Jn > 0 ? "down" : "up"), ot(), X(!0);
|
|
1968
1968
|
return;
|
|
1969
1969
|
} else {
|
|
1970
1970
|
var Ot, Pt;
|
|
@@ -1974,7 +1974,7 @@ const Rv = (e) => {
|
|
|
1974
1974
|
},
|
|
1975
1975
|
onPointerMove: (ue) => {
|
|
1976
1976
|
var de, Ye, it;
|
|
1977
|
-
if (!rt.current || !
|
|
1977
|
+
if (!rt.current || !fe || ((de = window.getSelection()) == null ? void 0 : de.toString().length) > 0) return;
|
|
1978
1978
|
const Be = ue.clientY - rt.current.y, Qe = ue.clientX - rt.current.x;
|
|
1979
1979
|
var bo;
|
|
1980
1980
|
const Ot = (bo = e.swipeDirections) != null ? bo : Ev(Q);
|
|
@@ -2001,16 +2001,16 @@ const Rv = (e) => {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
(Math.abs(Pt.x) > 0 || Math.abs(Pt.y) > 0) && L(!0), (Ye = $e.current) == null || Ye.style.setProperty("--swipe-amount-x", `${Pt.x}px`), (it = $e.current) == null || it.style.setProperty("--swipe-amount-y", `${Pt.y}px`);
|
|
2003
2003
|
}
|
|
2004
|
-
},
|
|
2004
|
+
}, ve && !u.jsx && te !== "loading" ? /* @__PURE__ */ P.createElement("button", {
|
|
2005
2005
|
"aria-label": J,
|
|
2006
2006
|
"data-disabled": Qt,
|
|
2007
2007
|
"data-close-button": !0,
|
|
2008
|
-
onClick: Qt || !
|
|
2008
|
+
onClick: Qt || !fe ? () => {
|
|
2009
2009
|
} : () => {
|
|
2010
2010
|
ot(), u.onDismiss == null || u.onDismiss.call(u, u);
|
|
2011
2011
|
},
|
|
2012
2012
|
className: Bt(A == null ? void 0 : A.closeButton, u == null || (r = u.classNames) == null ? void 0 : r.closeButton)
|
|
2013
|
-
}, (_e =
|
|
2013
|
+
}, (_e = Z == null ? void 0 : Z.close) != null ? _e : uv) : null, (te || u.icon || u.promise) && u.icon !== null && ((Z == null ? void 0 : Z[te]) !== null || u.icon) ? /* @__PURE__ */ P.createElement("div", {
|
|
2014
2014
|
"data-icon": "",
|
|
2015
2015
|
className: Bt(A == null ? void 0 : A.icon, u == null || (o = u.classNames) == null ? void 0 : o.icon)
|
|
2016
2016
|
}, u.promise || u.type === "loading" && !u.icon ? u.icon || ye() : null, u.type !== "loading" ? Re : null) : null, /* @__PURE__ */ P.createElement("div", {
|
|
@@ -2027,7 +2027,7 @@ const Rv = (e) => {
|
|
|
2027
2027
|
"data-cancel": !0,
|
|
2028
2028
|
style: u.cancelButtonStyle || O,
|
|
2029
2029
|
onClick: (ue) => {
|
|
2030
|
-
wo(u.cancel) &&
|
|
2030
|
+
wo(u.cancel) && fe && (u.cancel.onClick == null || u.cancel.onClick.call(u.cancel, ue), ot());
|
|
2031
2031
|
},
|
|
2032
2032
|
className: Bt(A == null ? void 0 : A.cancelButton, u == null || (l = u.classNames) == null ? void 0 : l.cancelButton)
|
|
2033
2033
|
}, u.cancel.label) : null, /* @__PURE__ */ P.isValidElement(u.action) ? u.action : u.action && wo(u.action) ? /* @__PURE__ */ P.createElement("button", {
|
|
@@ -2084,7 +2084,7 @@ const Ov = /* @__PURE__ */ P.forwardRef(function(t, n) {
|
|
|
2084
2084
|
].concat(O.filter((j) => j.position).map((j) => j.position)))), [
|
|
2085
2085
|
O,
|
|
2086
2086
|
i
|
|
2087
|
-
]), [V, U] = P.useState([]), [ee, Q] = P.useState(!1), [z, G] = P.useState(!1), [A,
|
|
2087
|
+
]), [V, U] = P.useState([]), [ee, Q] = P.useState(!1), [z, G] = P.useState(!1), [A, Z] = P.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = P.useRef(null), M = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), E = P.useRef(null), I = P.useRef(!1), ne = P.useCallback((j) => {
|
|
2088
2088
|
k((H) => {
|
|
2089
2089
|
var B;
|
|
2090
2090
|
return (B = H.find((Y) => Y.id === j.id)) != null && B.delete || ut.dismiss(j.id), H.filter(({ id: Y }) => Y !== j.id);
|
|
@@ -2122,19 +2122,19 @@ const Ov = /* @__PURE__ */ P.forwardRef(function(t, n) {
|
|
|
2122
2122
|
C
|
|
2123
2123
|
]), P.useEffect(() => {
|
|
2124
2124
|
if (m !== "system") {
|
|
2125
|
-
|
|
2125
|
+
Z(m);
|
|
2126
2126
|
return;
|
|
2127
2127
|
}
|
|
2128
|
-
if (m === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ?
|
|
2128
|
+
if (m === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? Z("dark") : Z("light")), typeof window > "u") return;
|
|
2129
2129
|
const j = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2130
2130
|
try {
|
|
2131
2131
|
j.addEventListener("change", ({ matches: H }) => {
|
|
2132
|
-
|
|
2132
|
+
Z(H ? "dark" : "light");
|
|
2133
2133
|
});
|
|
2134
2134
|
} catch {
|
|
2135
2135
|
j.addListener(({ matches: B }) => {
|
|
2136
2136
|
try {
|
|
2137
|
-
|
|
2137
|
+
Z(B ? "dark" : "light");
|
|
2138
2138
|
} catch (Y) {
|
|
2139
2139
|
console.error(Y);
|
|
2140
2140
|
}
|
|
@@ -2215,14 +2215,14 @@ const Ov = /* @__PURE__ */ P.forwardRef(function(t, n) {
|
|
|
2215
2215
|
},
|
|
2216
2216
|
onPointerUp: () => G(!1)
|
|
2217
2217
|
}, O.filter((F) => !F.position && H === 0 || F.position === j).map((F, q) => {
|
|
2218
|
-
var
|
|
2218
|
+
var X, oe;
|
|
2219
2219
|
return /* @__PURE__ */ P.createElement(Rv, {
|
|
2220
2220
|
key: F.id,
|
|
2221
2221
|
icons: S,
|
|
2222
2222
|
index: q,
|
|
2223
2223
|
toast: F,
|
|
2224
2224
|
defaultRichColors: p,
|
|
2225
|
-
duration: (
|
|
2225
|
+
duration: (X = x == null ? void 0 : x.duration) != null ? X : y,
|
|
2226
2226
|
className: x == null ? void 0 : x.className,
|
|
2227
2227
|
descriptionClassName: x == null ? void 0 : x.descriptionClassName,
|
|
2228
2228
|
invert: o,
|
|
@@ -2236,7 +2236,7 @@ const Ov = /* @__PURE__ */ P.forwardRef(function(t, n) {
|
|
|
2236
2236
|
cancelButtonStyle: x == null ? void 0 : x.cancelButtonStyle,
|
|
2237
2237
|
actionButtonStyle: x == null ? void 0 : x.actionButtonStyle,
|
|
2238
2238
|
closeButtonAriaLabel: x == null ? void 0 : x.closeButtonAriaLabel,
|
|
2239
|
-
removeToast:
|
|
2239
|
+
removeToast: ne,
|
|
2240
2240
|
toasts: O.filter((L) => L.position == F.position),
|
|
2241
2241
|
heights: V.filter((L) => L.position == F.position),
|
|
2242
2242
|
setHeights: U,
|
|
@@ -2738,9 +2738,9 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
2738
2738
|
"left-bottom"
|
|
2739
2739
|
], _ = () => [...S(), ae, ie], C = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], O = () => [ae, ie, l], $ = () => [gn, "full", "auto", ...O()], V = () => [Wt, "none", "subgrid", ae, ie], U = () => ["auto", {
|
|
2740
2740
|
span: ["full", Wt, ae, ie]
|
|
2741
|
-
}, Wt, ae, ie], ee = () => [Wt, "auto", ae, ie], Q = () => ["auto", "min", "max", "fr", ae, ie], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...O()],
|
|
2741
|
+
}, Wt, ae, ie], ee = () => [Wt, "auto", ae, ie], Q = () => ["auto", "min", "max", "fr", ae, ie], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...O()], Z = () => [gn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], J = () => [gn, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...O()], M = () => [gn, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...O()], E = () => [e, ae, ie], I = () => [...S(), wc, xc, {
|
|
2742
2742
|
position: [ae, ie]
|
|
2743
|
-
}],
|
|
2743
|
+
}], ne = () => ["no-repeat", {
|
|
2744
2744
|
repeat: ["", "x", "y", "space", "round"]
|
|
2745
2745
|
}], j = () => ["auto", "cover", "contain", Sy, vy, {
|
|
2746
2746
|
size: [ae, ie]
|
|
@@ -2752,7 +2752,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
2752
2752
|
c,
|
|
2753
2753
|
ae,
|
|
2754
2754
|
ie
|
|
2755
|
-
], Y = () => ["", we, _r, Dn], N = () => ["solid", "dashed", "dotted", "double"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [we, la, wc, xc],
|
|
2755
|
+
], Y = () => ["", we, _r, Dn], N = () => ["solid", "dashed", "dotted", "double"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [we, la, wc, xc], X = () => [
|
|
2756
2756
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2757
2757
|
"",
|
|
2758
2758
|
"none",
|
|
@@ -3449,7 +3449,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
3449
3449
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
3450
3450
|
*/
|
|
3451
3451
|
size: [{
|
|
3452
|
-
size:
|
|
3452
|
+
size: Z()
|
|
3453
3453
|
}],
|
|
3454
3454
|
/**
|
|
3455
3455
|
* Inline Size
|
|
@@ -3498,7 +3498,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
3498
3498
|
* @see https://tailwindcss.com/docs/width
|
|
3499
3499
|
*/
|
|
3500
3500
|
w: [{
|
|
3501
|
-
w: [s, "screen", ...
|
|
3501
|
+
w: [s, "screen", ...Z()]
|
|
3502
3502
|
}],
|
|
3503
3503
|
/**
|
|
3504
3504
|
* Min-Width
|
|
@@ -3510,7 +3510,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
3510
3510
|
"screen",
|
|
3511
3511
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
3512
3512
|
"none",
|
|
3513
|
-
...
|
|
3513
|
+
...Z()
|
|
3514
3514
|
]
|
|
3515
3515
|
}],
|
|
3516
3516
|
/**
|
|
@@ -3528,7 +3528,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
3528
3528
|
{
|
|
3529
3529
|
screen: [a]
|
|
3530
3530
|
},
|
|
3531
|
-
...
|
|
3531
|
+
...Z()
|
|
3532
3532
|
]
|
|
3533
3533
|
}],
|
|
3534
3534
|
/**
|
|
@@ -3536,21 +3536,21 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
3536
3536
|
* @see https://tailwindcss.com/docs/height
|
|
3537
3537
|
*/
|
|
3538
3538
|
h: [{
|
|
3539
|
-
h: ["screen", "lh", ...
|
|
3539
|
+
h: ["screen", "lh", ...Z()]
|
|
3540
3540
|
}],
|
|
3541
3541
|
/**
|
|
3542
3542
|
* Min-Height
|
|
3543
3543
|
* @see https://tailwindcss.com/docs/min-height
|
|
3544
3544
|
*/
|
|
3545
3545
|
"min-h": [{
|
|
3546
|
-
"min-h": ["screen", "lh", "none", ...
|
|
3546
|
+
"min-h": ["screen", "lh", "none", ...Z()]
|
|
3547
3547
|
}],
|
|
3548
3548
|
/**
|
|
3549
3549
|
* Max-Height
|
|
3550
3550
|
* @see https://tailwindcss.com/docs/max-height
|
|
3551
3551
|
*/
|
|
3552
3552
|
"max-h": [{
|
|
3553
|
-
"max-h": ["screen", "lh", ...
|
|
3553
|
+
"max-h": ["screen", "lh", ...Z()]
|
|
3554
3554
|
}],
|
|
3555
3555
|
// ------------------
|
|
3556
3556
|
// --- Typography ---
|
|
@@ -3840,7 +3840,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
3840
3840
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
3841
3841
|
*/
|
|
3842
3842
|
"bg-repeat": [{
|
|
3843
|
-
bg:
|
|
3843
|
+
bg: ne()
|
|
3844
3844
|
}],
|
|
3845
3845
|
/**
|
|
3846
3846
|
* Background Size
|
|
@@ -4545,7 +4545,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
4545
4545
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
4546
4546
|
*/
|
|
4547
4547
|
"mask-repeat": [{
|
|
4548
|
-
mask:
|
|
4548
|
+
mask: ne()
|
|
4549
4549
|
}],
|
|
4550
4550
|
/**
|
|
4551
4551
|
* Mask Size
|
|
@@ -4589,7 +4589,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
4589
4589
|
* @see https://tailwindcss.com/docs/blur
|
|
4590
4590
|
*/
|
|
4591
4591
|
blur: [{
|
|
4592
|
-
blur:
|
|
4592
|
+
blur: X()
|
|
4593
4593
|
}],
|
|
4594
4594
|
/**
|
|
4595
4595
|
* Brightness
|
|
@@ -4679,7 +4679,7 @@ const mc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gc = Ed, R
|
|
|
4679
4679
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
4680
4680
|
*/
|
|
4681
4681
|
"backdrop-blur": [{
|
|
4682
|
-
"backdrop-blur":
|
|
4682
|
+
"backdrop-blur": X()
|
|
4683
4683
|
}],
|
|
4684
4684
|
/**
|
|
4685
4685
|
* Backdrop Brightness
|
|
@@ -6785,14 +6785,14 @@ const xx = 50, wx = async (e, t, n) => {
|
|
|
6785
6785
|
}, p = nl(o), y = tl(p), g = await a.getDimensions(c), b = p === "y", x = b ? "top" : "left", v = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", S = i.reference[y] + i.reference[p] - m[p] - i.floating[y], _ = m[p] - i.reference[p], C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
6786
6786
|
let k = C ? C[w] : 0;
|
|
6787
6787
|
(!k || !await (a.isElement == null ? void 0 : a.isElement(C))) && (k = s.floating[w] || i.floating[y]);
|
|
6788
|
-
const O = S / 2 - _ / 2, $ = k / 2 - g[y] / 2 - 1, V = wn(u[x], $), U = wn(u[v], $), ee = V, Q = k - g[y] - U, z = k / 2 - g[y] / 2 + O, G = fs(ee, z, Q), A = !l.arrow && yr(o) != null && z !== G && i.reference[y] / 2 - (z < ee ? V : U) - g[y] / 2 < 0,
|
|
6788
|
+
const O = S / 2 - _ / 2, $ = k / 2 - g[y] / 2 - 1, V = wn(u[x], $), U = wn(u[v], $), ee = V, Q = k - g[y] - U, z = k / 2 - g[y] / 2 + O, G = fs(ee, z, Q), A = !l.arrow && yr(o) != null && z !== G && i.reference[y] / 2 - (z < ee ? V : U) - g[y] / 2 < 0, Z = A ? z < ee ? z - ee : z - Q : 0;
|
|
6789
6789
|
return {
|
|
6790
|
-
[p]: m[p] +
|
|
6790
|
+
[p]: m[p] + Z,
|
|
6791
6791
|
data: {
|
|
6792
6792
|
[p]: G,
|
|
6793
|
-
centerOffset: z - G -
|
|
6793
|
+
centerOffset: z - G - Z,
|
|
6794
6794
|
...A && {
|
|
6795
|
-
alignmentOffset:
|
|
6795
|
+
alignmentOffset: Z
|
|
6796
6796
|
}
|
|
6797
6797
|
},
|
|
6798
6798
|
reset: A
|
|
@@ -6848,12 +6848,12 @@ const xx = 50, wx = async (e, t, n) => {
|
|
|
6848
6848
|
placement: G
|
|
6849
6849
|
}
|
|
6850
6850
|
};
|
|
6851
|
-
let A = (ee = V.filter((
|
|
6851
|
+
let A = (ee = V.filter((Z) => Z.overflows[0] <= 0).sort((Z, J) => Z.overflows[1] - J.overflows[1])[0]) == null ? void 0 : ee.placement;
|
|
6852
6852
|
if (!A)
|
|
6853
6853
|
switch (p) {
|
|
6854
6854
|
case "bestFit": {
|
|
6855
6855
|
var Q;
|
|
6856
|
-
const
|
|
6856
|
+
const Z = (Q = V.filter((J) => {
|
|
6857
6857
|
if (C) {
|
|
6858
6858
|
const M = Gt(J.placement);
|
|
6859
6859
|
return M === v || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -6862,7 +6862,7 @@ const xx = 50, wx = async (e, t, n) => {
|
|
|
6862
6862
|
}
|
|
6863
6863
|
return !0;
|
|
6864
6864
|
}).map((J) => [J.placement, J.overflows.filter((M) => M > 0).reduce((M, E) => M + E, 0)]).sort((J, M) => J[1] - M[1])[0]) == null ? void 0 : Q[0];
|
|
6865
|
-
|
|
6865
|
+
Z && (A = Z);
|
|
6866
6866
|
break;
|
|
6867
6867
|
}
|
|
6868
6868
|
case "initialPlacement":
|
|
@@ -7742,7 +7742,7 @@ function iw(e) {
|
|
|
7742
7742
|
}), [v, w]), A = h.useMemo(() => ({
|
|
7743
7743
|
reference: S,
|
|
7744
7744
|
floating: _
|
|
7745
|
-
}), [S, _]),
|
|
7745
|
+
}), [S, _]), Z = h.useMemo(() => {
|
|
7746
7746
|
const J = {
|
|
7747
7747
|
position: n,
|
|
7748
7748
|
left: 0,
|
|
@@ -7768,8 +7768,8 @@ function iw(e) {
|
|
|
7768
7768
|
update: Q,
|
|
7769
7769
|
refs: G,
|
|
7770
7770
|
elements: A,
|
|
7771
|
-
floatingStyles:
|
|
7772
|
-
}), [d, Q, G, A,
|
|
7771
|
+
floatingStyles: Z
|
|
7772
|
+
}), [d, Q, G, A, Z]);
|
|
7773
7773
|
}
|
|
7774
7774
|
const aw = (e) => {
|
|
7775
7775
|
function t(n) {
|
|
@@ -7894,7 +7894,7 @@ var df = "PopperAnchor", ff = h.forwardRef(
|
|
|
7894
7894
|
ff.displayName = df;
|
|
7895
7895
|
var sl = "PopperContent", [vw, yw] = lf(sl), pf = h.forwardRef(
|
|
7896
7896
|
(e, t) => {
|
|
7897
|
-
var N, F, q,
|
|
7897
|
+
var N, F, q, X, oe, L;
|
|
7898
7898
|
const {
|
|
7899
7899
|
__scopePopper: n,
|
|
7900
7900
|
side: r = "bottom",
|
|
@@ -7915,7 +7915,7 @@ var sl = "PopperContent", [vw, yw] = lf(sl), pf = h.forwardRef(
|
|
|
7915
7915
|
boundary: U.filter(xw),
|
|
7916
7916
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
7917
7917
|
altBoundary: ee
|
|
7918
|
-
}, { refs: z, floatingStyles: G, placement: A, isPositioned:
|
|
7918
|
+
}, { refs: z, floatingStyles: G, placement: A, isPositioned: Z, middlewareData: J } = iw({
|
|
7919
7919
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
7920
7920
|
strategy: "fixed",
|
|
7921
7921
|
placement: $,
|
|
@@ -7947,9 +7947,9 @@ var sl = "PopperContent", [vw, yw] = lf(sl), pf = h.forwardRef(
|
|
|
7947
7947
|
]
|
|
7948
7948
|
}), [M, E] = hf(A), I = Nt(y);
|
|
7949
7949
|
Ve(() => {
|
|
7950
|
-
|
|
7951
|
-
}, [
|
|
7952
|
-
const
|
|
7950
|
+
Z && (I == null || I());
|
|
7951
|
+
}, [Z, I]);
|
|
7952
|
+
const ne = (N = J.arrow) == null ? void 0 : N.x, j = (F = J.arrow) == null ? void 0 : F.y, H = ((q = J.arrow) == null ? void 0 : q.centerOffset) !== 0, [B, Y] = h.useState();
|
|
7953
7953
|
return Ve(() => {
|
|
7954
7954
|
x && Y(window.getComputedStyle(x).zIndex);
|
|
7955
7955
|
}, [x]), /* @__PURE__ */ f(
|
|
@@ -7959,12 +7959,12 @@ var sl = "PopperContent", [vw, yw] = lf(sl), pf = h.forwardRef(
|
|
|
7959
7959
|
"data-radix-popper-content-wrapper": "",
|
|
7960
7960
|
style: {
|
|
7961
7961
|
...G,
|
|
7962
|
-
transform:
|
|
7962
|
+
transform: Z ? G.transform : "translate(0, -200%)",
|
|
7963
7963
|
// keep off the page when measuring
|
|
7964
7964
|
minWidth: "max-content",
|
|
7965
7965
|
zIndex: B,
|
|
7966
7966
|
"--radix-popper-transform-origin": [
|
|
7967
|
-
(
|
|
7967
|
+
(X = J.transformOrigin) == null ? void 0 : X.x,
|
|
7968
7968
|
(oe = J.transformOrigin) == null ? void 0 : oe.y
|
|
7969
7969
|
].join(" "),
|
|
7970
7970
|
// hide the content if using the hide middleware and should be hidden
|
|
@@ -7982,7 +7982,7 @@ var sl = "PopperContent", [vw, yw] = lf(sl), pf = h.forwardRef(
|
|
|
7982
7982
|
scope: n,
|
|
7983
7983
|
placedSide: M,
|
|
7984
7984
|
onArrowChange: _,
|
|
7985
|
-
arrowX:
|
|
7985
|
+
arrowX: ne,
|
|
7986
7986
|
arrowY: j,
|
|
7987
7987
|
shouldHideArrow: H,
|
|
7988
7988
|
children: /* @__PURE__ */ f(
|
|
@@ -7996,7 +7996,7 @@ var sl = "PopperContent", [vw, yw] = lf(sl), pf = h.forwardRef(
|
|
|
7996
7996
|
...g.style,
|
|
7997
7997
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
7998
7998
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
7999
|
-
animation:
|
|
7999
|
+
animation: Z ? void 0 : "none"
|
|
8000
8000
|
}
|
|
8001
8001
|
}
|
|
8002
8002
|
)
|
|
@@ -9021,17 +9021,17 @@ var Et = "MenuContent", [z0, ul] = Zn(Et), $f = h.forwardRef(
|
|
|
9021
9021
|
onDismiss: p,
|
|
9022
9022
|
disableOutsideScroll: y,
|
|
9023
9023
|
...g
|
|
9024
|
-
} = e, b = Xn(Et, n), x = eo(Et, n), v = Mi(n), w = Af(n), S = A0(n), [_, C] = h.useState(null), k = h.useRef(null), O = Ee(t, k, b.onContentChange), $ = h.useRef(0), V = h.useRef(""), U = h.useRef(0), ee = h.useRef(null), Q = h.useRef("right"), z = h.useRef(0), G = y ? Jr : h.Fragment, A = y ? { as: W0, allowPinchZoom: !0 } : void 0,
|
|
9024
|
+
} = e, b = Xn(Et, n), x = eo(Et, n), v = Mi(n), w = Af(n), S = A0(n), [_, C] = h.useState(null), k = h.useRef(null), O = Ee(t, k, b.onContentChange), $ = h.useRef(0), V = h.useRef(""), U = h.useRef(0), ee = h.useRef(null), Q = h.useRef("right"), z = h.useRef(0), G = y ? Jr : h.Fragment, A = y ? { as: W0, allowPinchZoom: !0 } : void 0, Z = (M) => {
|
|
9025
9025
|
var N, F;
|
|
9026
|
-
const E = V.current + M, I = S().filter((q) => !q.disabled),
|
|
9027
|
-
(function q(
|
|
9028
|
-
V.current =
|
|
9026
|
+
const E = V.current + M, I = S().filter((q) => !q.disabled), ne = document.activeElement, j = (N = I.find((q) => q.ref.current === ne)) == null ? void 0 : N.textValue, H = I.map((q) => q.textValue), B = eS(H, E, j), Y = (F = I.find((q) => q.textValue === B)) == null ? void 0 : F.ref.current;
|
|
9027
|
+
(function q(X) {
|
|
9028
|
+
V.current = X, window.clearTimeout($.current), X !== "" && ($.current = window.setTimeout(() => q(""), 1e3));
|
|
9029
9029
|
})(E), Y && setTimeout(() => Y.focus());
|
|
9030
9030
|
};
|
|
9031
9031
|
h.useEffect(() => () => window.clearTimeout($.current), []), Si();
|
|
9032
9032
|
const J = h.useCallback((M) => {
|
|
9033
|
-
var I,
|
|
9034
|
-
return Q.current === ((I = ee.current) == null ? void 0 : I.side) && nS(M, (
|
|
9033
|
+
var I, ne;
|
|
9034
|
+
return Q.current === ((I = ee.current) == null ? void 0 : I.side) && nS(M, (ne = ee.current) == null ? void 0 : ne.area);
|
|
9035
9035
|
}, []);
|
|
9036
9036
|
return /* @__PURE__ */ f(
|
|
9037
9037
|
z0,
|
|
@@ -9108,8 +9108,8 @@ var Et = "MenuContent", [z0, ul] = Zn(Et), $f = h.forwardRef(
|
|
|
9108
9108
|
ref: O,
|
|
9109
9109
|
style: { outline: "none", ...g.style },
|
|
9110
9110
|
onKeyDown: re(g.onKeyDown, (M) => {
|
|
9111
|
-
const I = M.target.closest("[data-radix-menu-content]") === M.currentTarget,
|
|
9112
|
-
I && (M.key === "Tab" && M.preventDefault(), !
|
|
9111
|
+
const I = M.target.closest("[data-radix-menu-content]") === M.currentTarget, ne = M.ctrlKey || M.altKey || M.metaKey, j = M.key.length === 1;
|
|
9112
|
+
I && (M.key === "Tab" && M.preventDefault(), !ne && j && Z(M.key));
|
|
9113
9113
|
const H = k.current;
|
|
9114
9114
|
if (M.target !== H || !D0.includes(M.key)) return;
|
|
9115
9115
|
M.preventDefault();
|
|
@@ -9124,8 +9124,8 @@ var Et = "MenuContent", [z0, ul] = Zn(Et), $f = h.forwardRef(
|
|
|
9124
9124
|
Br((M) => {
|
|
9125
9125
|
const E = M.target, I = z.current !== M.clientX;
|
|
9126
9126
|
if (M.currentTarget.contains(E) && I) {
|
|
9127
|
-
const
|
|
9128
|
-
Q.current =
|
|
9127
|
+
const ne = M.clientX > z.current ? "right" : "left";
|
|
9128
|
+
Q.current = ne, z.current = M.clientX;
|
|
9129
9129
|
}
|
|
9130
9130
|
})
|
|
9131
9131
|
)
|
|
@@ -13429,15 +13429,15 @@ function EE(e) {
|
|
|
13429
13429
|
}), t.disabled !== void 0 && (t.disabled = ka(t.disabled, n)), t.hidden !== void 0 && (t.hidden = ka(t.hidden, n)), t.modifiers)) {
|
|
13430
13430
|
const ye = {};
|
|
13431
13431
|
Object.keys(t.modifiers).forEach((Re) => {
|
|
13432
|
-
var
|
|
13433
|
-
ye[Re] = ka((
|
|
13432
|
+
var pe;
|
|
13433
|
+
ye[Re] = ka((pe = t.modifiers) == null ? void 0 : pe[Re], n);
|
|
13434
13434
|
}), t.modifiers = ye;
|
|
13435
13435
|
}
|
|
13436
13436
|
const { components: r, formatters: o, labels: i, dateLib: a, locale: s, classNames: l } = at(() => {
|
|
13437
|
-
const ye = { ...am, ...t.locale }, Re = t.broadcastCalendar ? 1 : t.weekStartsOn,
|
|
13437
|
+
const ye = { ...am, ...t.locale }, Re = t.broadcastCalendar ? 1 : t.weekStartsOn, pe = t.noonSafe && t.timeZone ? tE(t.timeZone, {
|
|
13438
13438
|
weekStartsOn: Re,
|
|
13439
13439
|
locale: ye
|
|
13440
|
-
}) : void 0, _e = t.dateLib &&
|
|
13440
|
+
}) : void 0, _e = t.dateLib && pe ? { ...pe, ...t.dateLib } : t.dateLib ?? pe, ue = new yt({
|
|
13441
13441
|
locale: ye,
|
|
13442
13442
|
weekStartsOn: Re,
|
|
13443
13443
|
firstWeekContainsDate: t.firstWeekContainsDate,
|
|
@@ -13471,48 +13471,48 @@ function EE(e) {
|
|
|
13471
13471
|
t.classNames
|
|
13472
13472
|
]);
|
|
13473
13473
|
t.today || (t = { ...t, today: a.today() });
|
|
13474
|
-
const { captionLayout: c, mode: d, navLayout: u, numberOfMonths: m = 1, onDayBlur: p, onDayClick: y, onDayFocus: g, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: v, onNextClick: w, onPrevClick: S, showWeekNumber: _, styles: C } = t, { formatCaption: k, formatDay: O, formatMonthDropdown: $, formatWeekNumber: V, formatWeekNumberHeader: U, formatWeekdayName: ee, formatYearDropdown: Q } = o, z = mE(t, a), { days: G, months: A, navStart:
|
|
13474
|
+
const { captionLayout: c, mode: d, navLayout: u, numberOfMonths: m = 1, onDayBlur: p, onDayClick: y, onDayFocus: g, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: v, onNextClick: w, onPrevClick: S, showWeekNumber: _, styles: C } = t, { formatCaption: k, formatDay: O, formatMonthDropdown: $, formatWeekNumber: V, formatWeekNumberHeader: U, formatWeekdayName: ee, formatYearDropdown: Q } = o, z = mE(t, a), { days: G, months: A, navStart: Z, navEnd: J, previousMonth: M, nextMonth: E, goToMonth: I } = z, ne = A1(G, t, Z, J, a), { isSelected: j, select: H, selected: B } = _E(t, a) ?? {}, { blur: Y, focused: N, isFocusTarget: F, moveFocus: q, setFocused: X } = vE(t, z, ne, j ?? (() => !1), a), { labelDayButton: oe, labelGridcell: L, labelGrid: be, labelMonthDropdown: Se, labelNav: Ue, labelPrevious: Xe, labelNext: Ge, labelWeekday: Je, labelWeekNumber: $e, labelWeekNumberHeader: Rt, labelYearDropdown: kt } = i, te = at(() => Q1(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), fe = d !== void 0 || y !== void 0, Ce = Te(() => {
|
|
13475
13475
|
M && (I(M), S == null || S(M));
|
|
13476
13476
|
}, [M, I, S]), W = Te(() => {
|
|
13477
13477
|
E && (I(E), w == null || w(E));
|
|
13478
|
-
}, [I, E, w]),
|
|
13479
|
-
|
|
13480
|
-
}, [H, y,
|
|
13481
|
-
|
|
13482
|
-
}, [g,
|
|
13483
|
-
Y(), p == null || p(ye.date, Re,
|
|
13484
|
-
}, [Y, p]),
|
|
13478
|
+
}, [I, E, w]), K = Te((ye, Re) => (pe) => {
|
|
13479
|
+
pe.preventDefault(), pe.stopPropagation(), X(ye), !Re.disabled && (H == null || H(ye.date, Re, pe), y == null || y(ye.date, Re, pe));
|
|
13480
|
+
}, [H, y, X]), ve = Te((ye, Re) => (pe) => {
|
|
13481
|
+
X(ye), g == null || g(ye.date, Re, pe);
|
|
13482
|
+
}, [g, X]), ce = Te((ye, Re) => (pe) => {
|
|
13483
|
+
Y(), p == null || p(ye.date, Re, pe);
|
|
13484
|
+
}, [Y, p]), me = Te((ye, Re) => (pe) => {
|
|
13485
13485
|
const _e = {
|
|
13486
13486
|
ArrowLeft: [
|
|
13487
|
-
|
|
13487
|
+
pe.shiftKey ? "month" : "day",
|
|
13488
13488
|
t.dir === "rtl" ? "after" : "before"
|
|
13489
13489
|
],
|
|
13490
13490
|
ArrowRight: [
|
|
13491
|
-
|
|
13491
|
+
pe.shiftKey ? "month" : "day",
|
|
13492
13492
|
t.dir === "rtl" ? "before" : "after"
|
|
13493
13493
|
],
|
|
13494
|
-
ArrowDown: [
|
|
13495
|
-
ArrowUp: [
|
|
13496
|
-
PageUp: [
|
|
13497
|
-
PageDown: [
|
|
13494
|
+
ArrowDown: [pe.shiftKey ? "year" : "week", "after"],
|
|
13495
|
+
ArrowUp: [pe.shiftKey ? "year" : "week", "before"],
|
|
13496
|
+
PageUp: [pe.shiftKey ? "year" : "month", "before"],
|
|
13497
|
+
PageDown: [pe.shiftKey ? "year" : "month", "after"],
|
|
13498
13498
|
Home: ["startOfWeek", "before"],
|
|
13499
13499
|
End: ["endOfWeek", "after"]
|
|
13500
13500
|
};
|
|
13501
|
-
if (_e[
|
|
13502
|
-
|
|
13503
|
-
const [ue, de] = _e[
|
|
13501
|
+
if (_e[pe.key]) {
|
|
13502
|
+
pe.preventDefault(), pe.stopPropagation();
|
|
13503
|
+
const [ue, de] = _e[pe.key];
|
|
13504
13504
|
q(ue, de);
|
|
13505
13505
|
}
|
|
13506
|
-
b == null || b(ye.date, Re,
|
|
13507
|
-
}, [q, b, t.dir]), ke = Te((ye, Re) => (
|
|
13508
|
-
x == null || x(ye.date, Re,
|
|
13509
|
-
}, [x]), je = Te((ye, Re) => (
|
|
13510
|
-
v == null || v(ye.date, Re,
|
|
13506
|
+
b == null || b(ye.date, Re, pe);
|
|
13507
|
+
}, [q, b, t.dir]), ke = Te((ye, Re) => (pe) => {
|
|
13508
|
+
x == null || x(ye.date, Re, pe);
|
|
13509
|
+
}, [x]), je = Te((ye, Re) => (pe) => {
|
|
13510
|
+
v == null || v(ye.date, Re, pe);
|
|
13511
13511
|
}, [v]), rt = Te((ye) => (Re) => {
|
|
13512
|
-
const
|
|
13512
|
+
const pe = Number(Re.target.value), _e = a.setMonth(a.startOfMonth(ye), pe);
|
|
13513
13513
|
I(_e);
|
|
13514
13514
|
}, [a, I]), jt = Te((ye) => (Re) => {
|
|
13515
|
-
const
|
|
13515
|
+
const pe = Number(Re.target.value), _e = a.setYear(a.startOfMonth(ye), pe);
|
|
13516
13516
|
I(_e);
|
|
13517
13517
|
}, [a, I]), { className: Jt, style: xt } = at(() => ({
|
|
13518
13518
|
className: [l[le.Root], t.className].filter(Boolean).join(" "),
|
|
@@ -13533,7 +13533,7 @@ function EE(e) {
|
|
|
13533
13533
|
nextMonth: E,
|
|
13534
13534
|
previousMonth: M,
|
|
13535
13535
|
goToMonth: I,
|
|
13536
|
-
getModifiers:
|
|
13536
|
+
getModifiers: ne,
|
|
13537
13537
|
components: r,
|
|
13538
13538
|
classNames: l,
|
|
13539
13539
|
styles: C,
|
|
@@ -13570,8 +13570,8 @@ function EE(e) {
|
|
|
13570
13570
|
r.DropdownNav,
|
|
13571
13571
|
{ className: l[le.Dropdowns], style: C == null ? void 0 : C[le.Dropdowns] },
|
|
13572
13572
|
(() => {
|
|
13573
|
-
const
|
|
13574
|
-
return a.getMonthYearOrder() === "year-first" ? [_e,
|
|
13573
|
+
const pe = c === "dropdown" || c === "dropdown-months" ? P.createElement(r.MonthsDropdown, { key: "month", className: l[le.MonthsDropdown], "aria-label": Se(), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: rt(ye.date), options: X1(ye.date, Z, J, o, a), style: C == null ? void 0 : C[le.Dropdown], value: a.getMonth(ye.date) }) : P.createElement("span", { key: "month" }, $(ye.date, a)), _e = c === "dropdown" || c === "dropdown-years" ? P.createElement(r.YearsDropdown, { key: "year", className: l[le.YearsDropdown], "aria-label": kt(a.options), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: jt(ye.date), options: eE(Z, J, o, a, !!t.reverseYears), style: C == null ? void 0 : C[le.Dropdown], value: a.getYear(ye.date) }) : P.createElement("span", { key: "year" }, Q(ye.date, a));
|
|
13574
|
+
return a.getMonthYearOrder() === "year-first" ? [_e, pe] : [pe, _e];
|
|
13575
13575
|
})(),
|
|
13576
13576
|
P.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
13577
13577
|
border: 0,
|
|
@@ -13599,22 +13599,22 @@ function EE(e) {
|
|
|
13599
13599
|
r.Weekdays,
|
|
13600
13600
|
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: l[le.Weekdays], style: C == null ? void 0 : C[le.Weekdays] },
|
|
13601
13601
|
_ && P.createElement(r.WeekNumberHeader, { "aria-label": Rt(a.options), className: l[le.WeekNumberHeader], style: C == null ? void 0 : C[le.WeekNumberHeader], scope: "col" }, U()),
|
|
13602
|
-
|
|
13602
|
+
te.map((pe) => P.createElement(r.Weekday, { "aria-label": Je(pe, a.options, a), className: l[le.Weekday], key: String(pe), style: C == null ? void 0 : C[le.Weekday], scope: "col" }, ee(pe, a.options, a)))
|
|
13603
13603
|
),
|
|
13604
|
-
P.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: l[le.Weeks], style: C == null ? void 0 : C[le.Weeks] }, ye.weeks.map((
|
|
13604
|
+
P.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: l[le.Weeks], style: C == null ? void 0 : C[le.Weeks] }, ye.weeks.map((pe) => P.createElement(
|
|
13605
13605
|
r.Week,
|
|
13606
|
-
{ className: l[le.Week], key:
|
|
13607
|
-
_ && P.createElement(r.WeekNumber, { week:
|
|
13606
|
+
{ className: l[le.Week], key: pe.weekNumber, style: C == null ? void 0 : C[le.Week], week: pe },
|
|
13607
|
+
_ && P.createElement(r.WeekNumber, { week: pe, style: C == null ? void 0 : C[le.WeekNumber], "aria-label": $e(pe.weekNumber, {
|
|
13608
13608
|
locale: s
|
|
13609
|
-
}), className: l[le.WeekNumber], scope: "row", role: "rowheader" }, V(
|
|
13610
|
-
|
|
13611
|
-
const { date: ue } = _e, de =
|
|
13609
|
+
}), className: l[le.WeekNumber], scope: "row", role: "rowheader" }, V(pe.weekNumber, a)),
|
|
13610
|
+
pe.days.map((_e) => {
|
|
13611
|
+
const { date: ue } = _e, de = ne(_e);
|
|
13612
13612
|
if (de[Le.focused] = !de.hidden && !!(N != null && N.isEqualTo(_e)), de[Mt.selected] = (j == null ? void 0 : j(ue)) || de.selected, Bi(B)) {
|
|
13613
13613
|
const { from: Be, to: Qe } = B;
|
|
13614
13614
|
de[Mt.range_start] = !!(Be && Qe && a.isSameDay(ue, Be)), de[Mt.range_end] = !!(Be && Qe && a.isSameDay(ue, Qe)), de[Mt.range_middle] = an(B, ue, !0, a);
|
|
13615
13615
|
}
|
|
13616
|
-
const Ye = J1(de, C, t.modifiersStyles), it = N1(de, l, t.modifiersClassNames), Jn = !
|
|
13617
|
-
return P.createElement(r.Day, { key: `${_e.isoDate}_${_e.displayMonthId}`, day: _e, modifiers: de, className: it.join(" "), style: Ye, role: "gridcell", "aria-selected": de.selected || void 0, "aria-label": Jn, "data-day": _e.isoDate, "data-month": _e.outside ? _e.dateMonthId : void 0, "data-selected": de.selected || void 0, "data-disabled": de.disabled || void 0, "data-hidden": de.hidden || void 0, "data-outside": _e.outside || void 0, "data-focused": de.focused || void 0, "data-today": de.today || void 0 }, !de.hidden &&
|
|
13616
|
+
const Ye = J1(de, C, t.modifiersStyles), it = N1(de, l, t.modifiersClassNames), Jn = !fe && !de.hidden ? L(ue, de, a.options, a) : void 0;
|
|
13617
|
+
return P.createElement(r.Day, { key: `${_e.isoDate}_${_e.displayMonthId}`, day: _e, modifiers: de, className: it.join(" "), style: Ye, role: "gridcell", "aria-selected": de.selected || void 0, "aria-label": Jn, "data-day": _e.isoDate, "data-month": _e.outside ? _e.dateMonthId : void 0, "data-selected": de.selected || void 0, "data-disabled": de.disabled || void 0, "data-hidden": de.hidden || void 0, "data-outside": _e.outside || void 0, "data-focused": de.focused || void 0, "data-today": de.today || void 0 }, !de.hidden && fe ? P.createElement(r.DayButton, { className: l[le.DayButton], style: C == null ? void 0 : C[le.DayButton], type: "button", day: _e, modifiers: de, disabled: !de.focused && de.disabled || void 0, "aria-disabled": de.focused && de.disabled || void 0, tabIndex: F(_e) ? 0 : -1, "aria-label": oe(ue, de, a.options, a), onClick: K(_e, de), onBlur: ce(_e, de), onFocus: ve(_e, de), onKeyDown: me(_e, de), onMouseEnter: ke(_e, de), onMouseLeave: je(_e, de) }, O(ue, a.options, a)) : !de.hidden && O(_e.date, a.options, a));
|
|
13618
13618
|
})
|
|
13619
13619
|
)))
|
|
13620
13620
|
)
|
|
@@ -14216,7 +14216,7 @@ function JE() {
|
|
|
14216
14216
|
}
|
|
14217
14217
|
}
|
|
14218
14218
|
}
|
|
14219
|
-
var _ = l, C = c, k = s, O = a, $ = t, V = d, U = r, ee = y, Q = p, z = n, G = i, A = o,
|
|
14219
|
+
var _ = l, C = c, k = s, O = a, $ = t, V = d, U = r, ee = y, Q = p, z = n, G = i, A = o, Z = u, J = !1;
|
|
14220
14220
|
function M(L) {
|
|
14221
14221
|
return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), E(L) || S(L) === l;
|
|
14222
14222
|
}
|
|
@@ -14226,7 +14226,7 @@ function JE() {
|
|
|
14226
14226
|
function I(L) {
|
|
14227
14227
|
return S(L) === s;
|
|
14228
14228
|
}
|
|
14229
|
-
function
|
|
14229
|
+
function ne(L) {
|
|
14230
14230
|
return S(L) === a;
|
|
14231
14231
|
}
|
|
14232
14232
|
function j(L) {
|
|
@@ -14250,13 +14250,13 @@ function JE() {
|
|
|
14250
14250
|
function q(L) {
|
|
14251
14251
|
return S(L) === i;
|
|
14252
14252
|
}
|
|
14253
|
-
function
|
|
14253
|
+
function X(L) {
|
|
14254
14254
|
return S(L) === o;
|
|
14255
14255
|
}
|
|
14256
14256
|
function oe(L) {
|
|
14257
14257
|
return S(L) === u;
|
|
14258
14258
|
}
|
|
14259
|
-
Pe.AsyncMode = _, Pe.ConcurrentMode = C, Pe.ContextConsumer = k, Pe.ContextProvider = O, Pe.Element = $, Pe.ForwardRef = V, Pe.Fragment = U, Pe.Lazy = ee, Pe.Memo = Q, Pe.Portal = z, Pe.Profiler = G, Pe.StrictMode = A, Pe.Suspense =
|
|
14259
|
+
Pe.AsyncMode = _, Pe.ConcurrentMode = C, Pe.ContextConsumer = k, Pe.ContextProvider = O, Pe.Element = $, Pe.ForwardRef = V, Pe.Fragment = U, Pe.Lazy = ee, Pe.Memo = Q, Pe.Portal = z, Pe.Profiler = G, Pe.StrictMode = A, Pe.Suspense = Z, Pe.isAsyncMode = M, Pe.isConcurrentMode = E, Pe.isContextConsumer = I, Pe.isContextProvider = ne, Pe.isElement = j, Pe.isForwardRef = H, Pe.isFragment = B, Pe.isLazy = Y, Pe.isMemo = N, Pe.isPortal = F, Pe.isProfiler = q, Pe.isStrictMode = X, Pe.isSuspense = oe, Pe.isValidElementType = w, Pe.typeOf = S;
|
|
14260
14260
|
}()), Pe;
|
|
14261
14261
|
}
|
|
14262
14262
|
var pu;
|
|
@@ -14428,9 +14428,9 @@ function tR() {
|
|
|
14428
14428
|
g.prototype = Error.prototype;
|
|
14429
14429
|
function b(E) {
|
|
14430
14430
|
if (process.env.NODE_ENV !== "production")
|
|
14431
|
-
var I = {},
|
|
14432
|
-
function j(B, Y, N, F, q,
|
|
14433
|
-
if (F = F || m,
|
|
14431
|
+
var I = {}, ne = 0;
|
|
14432
|
+
function j(B, Y, N, F, q, X, oe) {
|
|
14433
|
+
if (F = F || m, X = X || N, oe !== n) {
|
|
14434
14434
|
if (l) {
|
|
14435
14435
|
var L = new Error(
|
|
14436
14436
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -14439,23 +14439,23 @@ function tR() {
|
|
|
14439
14439
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
14440
14440
|
var be = F + ":" + N;
|
|
14441
14441
|
!I[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
14442
|
-
|
|
14443
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
14444
|
-
), I[be] = !0,
|
|
14442
|
+
ne < 3 && (i(
|
|
14443
|
+
"You are manually calling a React.PropTypes validation function for the `" + X + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
14444
|
+
), I[be] = !0, ne++);
|
|
14445
14445
|
}
|
|
14446
14446
|
}
|
|
14447
|
-
return Y[N] == null ? B ? Y[N] === null ? new g("The " + q + " `" +
|
|
14447
|
+
return Y[N] == null ? B ? Y[N] === null ? new g("The " + q + " `" + X + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new g("The " + q + " `" + X + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : E(Y, N, F, q, X);
|
|
14448
14448
|
}
|
|
14449
14449
|
var H = j.bind(null, !1);
|
|
14450
14450
|
return H.isRequired = j.bind(null, !0), H;
|
|
14451
14451
|
}
|
|
14452
14452
|
function x(E) {
|
|
14453
|
-
function I(
|
|
14454
|
-
var F =
|
|
14453
|
+
function I(ne, j, H, B, Y, N) {
|
|
14454
|
+
var F = ne[j], q = A(F);
|
|
14455
14455
|
if (q !== E) {
|
|
14456
|
-
var
|
|
14456
|
+
var X = Z(F);
|
|
14457
14457
|
return new g(
|
|
14458
|
-
"Invalid " + B + " `" + Y + "` of type " + ("`" +
|
|
14458
|
+
"Invalid " + B + " `" + Y + "` of type " + ("`" + X + "` supplied to `" + H + "`, expected ") + ("`" + E + "`."),
|
|
14459
14459
|
{ expectedType: E }
|
|
14460
14460
|
);
|
|
14461
14461
|
}
|
|
@@ -14467,26 +14467,26 @@ function tR() {
|
|
|
14467
14467
|
return b(a);
|
|
14468
14468
|
}
|
|
14469
14469
|
function w(E) {
|
|
14470
|
-
function I(
|
|
14470
|
+
function I(ne, j, H, B, Y) {
|
|
14471
14471
|
if (typeof E != "function")
|
|
14472
14472
|
return new g("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
|
|
14473
|
-
var N =
|
|
14473
|
+
var N = ne[j];
|
|
14474
14474
|
if (!Array.isArray(N)) {
|
|
14475
14475
|
var F = A(N);
|
|
14476
14476
|
return new g("Invalid " + B + " `" + Y + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected an array."));
|
|
14477
14477
|
}
|
|
14478
14478
|
for (var q = 0; q < N.length; q++) {
|
|
14479
|
-
var
|
|
14480
|
-
if (
|
|
14481
|
-
return
|
|
14479
|
+
var X = E(N, q, H, B, Y + "[" + q + "]", n);
|
|
14480
|
+
if (X instanceof Error)
|
|
14481
|
+
return X;
|
|
14482
14482
|
}
|
|
14483
14483
|
return null;
|
|
14484
14484
|
}
|
|
14485
14485
|
return b(I);
|
|
14486
14486
|
}
|
|
14487
14487
|
function S() {
|
|
14488
|
-
function E(I,
|
|
14489
|
-
var Y = I[
|
|
14488
|
+
function E(I, ne, j, H, B) {
|
|
14489
|
+
var Y = I[ne];
|
|
14490
14490
|
if (!s(Y)) {
|
|
14491
14491
|
var N = A(Y);
|
|
14492
14492
|
return new g("Invalid " + H + " `" + B + "` of type " + ("`" + N + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
@@ -14496,8 +14496,8 @@ function tR() {
|
|
|
14496
14496
|
return b(E);
|
|
14497
14497
|
}
|
|
14498
14498
|
function _() {
|
|
14499
|
-
function E(I,
|
|
14500
|
-
var Y = I[
|
|
14499
|
+
function E(I, ne, j, H, B) {
|
|
14500
|
+
var Y = I[ne];
|
|
14501
14501
|
if (!e.isValidElementType(Y)) {
|
|
14502
14502
|
var N = A(Y);
|
|
14503
14503
|
return new g("Invalid " + H + " `" + B + "` of type " + ("`" + N + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
@@ -14507,9 +14507,9 @@ function tR() {
|
|
|
14507
14507
|
return b(E);
|
|
14508
14508
|
}
|
|
14509
14509
|
function C(E) {
|
|
14510
|
-
function I(
|
|
14511
|
-
if (!(
|
|
14512
|
-
var N = E.name || m, F = M(
|
|
14510
|
+
function I(ne, j, H, B, Y) {
|
|
14511
|
+
if (!(ne[j] instanceof E)) {
|
|
14512
|
+
var N = E.name || m, F = M(ne[j]);
|
|
14513
14513
|
return new g("Invalid " + B + " `" + Y + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected ") + ("instance of `" + N + "`."));
|
|
14514
14514
|
}
|
|
14515
14515
|
return null;
|
|
@@ -14521,12 +14521,12 @@ function tR() {
|
|
|
14521
14521
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
14522
14522
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
14523
14523
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
14524
|
-
function I(
|
|
14525
|
-
for (var N =
|
|
14524
|
+
function I(ne, j, H, B, Y) {
|
|
14525
|
+
for (var N = ne[j], F = 0; F < E.length; F++)
|
|
14526
14526
|
if (y(N, E[F]))
|
|
14527
14527
|
return null;
|
|
14528
14528
|
var q = JSON.stringify(E, function(oe, L) {
|
|
14529
|
-
var be =
|
|
14529
|
+
var be = Z(L);
|
|
14530
14530
|
return be === "symbol" ? String(L) : L;
|
|
14531
14531
|
});
|
|
14532
14532
|
return new g("Invalid " + B + " `" + Y + "` of value `" + String(N) + "` " + ("supplied to `" + H + "`, expected one of " + q + "."));
|
|
@@ -14534,17 +14534,17 @@ function tR() {
|
|
|
14534
14534
|
return b(I);
|
|
14535
14535
|
}
|
|
14536
14536
|
function O(E) {
|
|
14537
|
-
function I(
|
|
14537
|
+
function I(ne, j, H, B, Y) {
|
|
14538
14538
|
if (typeof E != "function")
|
|
14539
14539
|
return new g("Property `" + Y + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
|
|
14540
|
-
var N =
|
|
14540
|
+
var N = ne[j], F = A(N);
|
|
14541
14541
|
if (F !== "object")
|
|
14542
14542
|
return new g("Invalid " + B + " `" + Y + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected an object."));
|
|
14543
14543
|
for (var q in N)
|
|
14544
14544
|
if (r(N, q)) {
|
|
14545
|
-
var
|
|
14546
|
-
if (
|
|
14547
|
-
return
|
|
14545
|
+
var X = E(N, q, H, B, Y + "." + q, n);
|
|
14546
|
+
if (X instanceof Error)
|
|
14547
|
+
return X;
|
|
14548
14548
|
}
|
|
14549
14549
|
return null;
|
|
14550
14550
|
}
|
|
@@ -14554,15 +14554,15 @@ function tR() {
|
|
|
14554
14554
|
if (!Array.isArray(E))
|
|
14555
14555
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
14556
14556
|
for (var I = 0; I < E.length; I++) {
|
|
14557
|
-
var
|
|
14558
|
-
if (typeof
|
|
14557
|
+
var ne = E[I];
|
|
14558
|
+
if (typeof ne != "function")
|
|
14559
14559
|
return i(
|
|
14560
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(
|
|
14560
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(ne) + " at index " + I + "."
|
|
14561
14561
|
), a;
|
|
14562
14562
|
}
|
|
14563
14563
|
function j(H, B, Y, N, F) {
|
|
14564
|
-
for (var q = [],
|
|
14565
|
-
var oe = E[
|
|
14564
|
+
for (var q = [], X = 0; X < E.length; X++) {
|
|
14565
|
+
var oe = E[X], L = oe(H, B, Y, N, F, n);
|
|
14566
14566
|
if (L == null)
|
|
14567
14567
|
return null;
|
|
14568
14568
|
L.data && r(L.data, "expectedType") && q.push(L.data.expectedType);
|
|
@@ -14573,26 +14573,26 @@ function tR() {
|
|
|
14573
14573
|
return b(j);
|
|
14574
14574
|
}
|
|
14575
14575
|
function V() {
|
|
14576
|
-
function E(I,
|
|
14577
|
-
return z(I[
|
|
14576
|
+
function E(I, ne, j, H, B) {
|
|
14577
|
+
return z(I[ne]) ? null : new g("Invalid " + H + " `" + B + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
14578
14578
|
}
|
|
14579
14579
|
return b(E);
|
|
14580
14580
|
}
|
|
14581
|
-
function U(E, I,
|
|
14581
|
+
function U(E, I, ne, j, H) {
|
|
14582
14582
|
return new g(
|
|
14583
|
-
(E || "React class") + ": " + I + " type `" +
|
|
14583
|
+
(E || "React class") + ": " + I + " type `" + ne + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
|
|
14584
14584
|
);
|
|
14585
14585
|
}
|
|
14586
14586
|
function ee(E) {
|
|
14587
|
-
function I(
|
|
14588
|
-
var N =
|
|
14587
|
+
function I(ne, j, H, B, Y) {
|
|
14588
|
+
var N = ne[j], F = A(N);
|
|
14589
14589
|
if (F !== "object")
|
|
14590
14590
|
return new g("Invalid " + B + " `" + Y + "` of type `" + F + "` " + ("supplied to `" + H + "`, expected `object`."));
|
|
14591
14591
|
for (var q in E) {
|
|
14592
|
-
var
|
|
14593
|
-
if (typeof
|
|
14594
|
-
return U(H, B, Y, q,
|
|
14595
|
-
var oe =
|
|
14592
|
+
var X = E[q];
|
|
14593
|
+
if (typeof X != "function")
|
|
14594
|
+
return U(H, B, Y, q, Z(X));
|
|
14595
|
+
var oe = X(N, q, H, B, Y + "." + q, n);
|
|
14596
14596
|
if (oe)
|
|
14597
14597
|
return oe;
|
|
14598
14598
|
}
|
|
@@ -14601,21 +14601,21 @@ function tR() {
|
|
|
14601
14601
|
return b(I);
|
|
14602
14602
|
}
|
|
14603
14603
|
function Q(E) {
|
|
14604
|
-
function I(
|
|
14605
|
-
var N =
|
|
14604
|
+
function I(ne, j, H, B, Y) {
|
|
14605
|
+
var N = ne[j], F = A(N);
|
|
14606
14606
|
if (F !== "object")
|
|
14607
14607
|
return new g("Invalid " + B + " `" + Y + "` of type `" + F + "` " + ("supplied to `" + H + "`, expected `object`."));
|
|
14608
|
-
var q = t({},
|
|
14609
|
-
for (var
|
|
14610
|
-
var oe = E[
|
|
14611
|
-
if (r(E,
|
|
14612
|
-
return U(H, B, Y,
|
|
14608
|
+
var q = t({}, ne[j], E);
|
|
14609
|
+
for (var X in q) {
|
|
14610
|
+
var oe = E[X];
|
|
14611
|
+
if (r(E, X) && typeof oe != "function")
|
|
14612
|
+
return U(H, B, Y, X, Z(oe));
|
|
14613
14613
|
if (!oe)
|
|
14614
14614
|
return new g(
|
|
14615
|
-
"Invalid " + B + " `" + Y + "` key `" +
|
|
14615
|
+
"Invalid " + B + " `" + Y + "` key `" + X + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(ne[j], null, " ") + `
|
|
14616
14616
|
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
14617
14617
|
);
|
|
14618
|
-
var L = oe(N,
|
|
14618
|
+
var L = oe(N, X, H, B, Y + "." + X, n);
|
|
14619
14619
|
if (L)
|
|
14620
14620
|
return L;
|
|
14621
14621
|
}
|
|
@@ -14638,13 +14638,13 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
14638
14638
|
return !0;
|
|
14639
14639
|
var I = u(E);
|
|
14640
14640
|
if (I) {
|
|
14641
|
-
var
|
|
14641
|
+
var ne = I.call(E), j;
|
|
14642
14642
|
if (I !== E.entries) {
|
|
14643
|
-
for (; !(j =
|
|
14643
|
+
for (; !(j = ne.next()).done; )
|
|
14644
14644
|
if (!z(j.value))
|
|
14645
14645
|
return !1;
|
|
14646
14646
|
} else
|
|
14647
|
-
for (; !(j =
|
|
14647
|
+
for (; !(j = ne.next()).done; ) {
|
|
14648
14648
|
var H = j.value;
|
|
14649
14649
|
if (H && !z(H[1]))
|
|
14650
14650
|
return !1;
|
|
@@ -14663,7 +14663,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
14663
14663
|
var I = typeof E;
|
|
14664
14664
|
return Array.isArray(E) ? "array" : E instanceof RegExp ? "object" : G(I, E) ? "symbol" : I;
|
|
14665
14665
|
}
|
|
14666
|
-
function
|
|
14666
|
+
function Z(E) {
|
|
14667
14667
|
if (typeof E > "u" || E === null)
|
|
14668
14668
|
return "" + E;
|
|
14669
14669
|
var I = A(E);
|
|
@@ -14676,7 +14676,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
|
14676
14676
|
return I;
|
|
14677
14677
|
}
|
|
14678
14678
|
function J(E) {
|
|
14679
|
-
var I =
|
|
14679
|
+
var I = Z(E);
|
|
14680
14680
|
switch (I) {
|
|
14681
14681
|
case "array":
|
|
14682
14682
|
case "object":
|
|
@@ -16629,11 +16629,11 @@ function Tl() {
|
|
|
16629
16629
|
return typeof b == "function" ? b : Tu;
|
|
16630
16630
|
}, [b]), Q = at(function() {
|
|
16631
16631
|
return typeof g == "function" ? g : Tu;
|
|
16632
|
-
}, [g]), z = rn(null), G = rn(null), A = Ch(JR, Cs),
|
|
16633
|
-
!
|
|
16632
|
+
}, [g]), z = rn(null), G = rn(null), A = Ch(JR, Cs), Z = Ia(A, 2), J = Z[0], M = Z[1], E = J.isFocused, I = J.isFileDialogActive, ne = rn(typeof window < "u" && window.isSecureContext && x && FR()), j = function() {
|
|
16633
|
+
!ne.current && I && setTimeout(function() {
|
|
16634
16634
|
if (G.current) {
|
|
16635
|
-
var
|
|
16636
|
-
|
|
16635
|
+
var K = G.current.files;
|
|
16636
|
+
K.length || (M({
|
|
16637
16637
|
type: "closeDialog"
|
|
16638
16638
|
}), Q());
|
|
16639
16639
|
}
|
|
@@ -16643,9 +16643,9 @@ function Tl() {
|
|
|
16643
16643
|
return window.addEventListener("focus", j, !1), function() {
|
|
16644
16644
|
window.removeEventListener("focus", j, !1);
|
|
16645
16645
|
};
|
|
16646
|
-
}, [G, I, Q,
|
|
16647
|
-
var H = rn([]), B = rn([]), Y = function(
|
|
16648
|
-
z.current && z.current.contains(
|
|
16646
|
+
}, [G, I, Q, ne]);
|
|
16647
|
+
var H = rn([]), B = rn([]), Y = function(K) {
|
|
16648
|
+
z.current && z.current.contains(K.target) || (K.preventDefault(), H.current = []);
|
|
16649
16649
|
};
|
|
16650
16650
|
Ze(function() {
|
|
16651
16651
|
return w && (document.addEventListener("dragover", Ou, !1), document.addEventListener("drop", Y, !1)), function() {
|
|
@@ -16657,14 +16657,14 @@ function Tl() {
|
|
|
16657
16657
|
isDragGlobal: !0,
|
|
16658
16658
|
type: "setDragGlobal"
|
|
16659
16659
|
});
|
|
16660
|
-
},
|
|
16660
|
+
}, K = function(ke) {
|
|
16661
16661
|
B.current = B.current.filter(function(je) {
|
|
16662
16662
|
return je !== ke.target && je !== null;
|
|
16663
16663
|
}), !(B.current.length > 0) && M({
|
|
16664
16664
|
isDragGlobal: !1,
|
|
16665
16665
|
type: "setDragGlobal"
|
|
16666
16666
|
});
|
|
16667
|
-
},
|
|
16667
|
+
}, ve = function() {
|
|
16668
16668
|
B.current = [], M({
|
|
16669
16669
|
isDragGlobal: !1,
|
|
16670
16670
|
type: "setDragGlobal"
|
|
@@ -16675,8 +16675,8 @@ function Tl() {
|
|
|
16675
16675
|
type: "setDragGlobal"
|
|
16676
16676
|
});
|
|
16677
16677
|
};
|
|
16678
|
-
return document.addEventListener("dragenter", W, !1), document.addEventListener("dragleave",
|
|
16679
|
-
document.removeEventListener("dragenter", W), document.removeEventListener("dragleave",
|
|
16678
|
+
return document.addEventListener("dragenter", W, !1), document.addEventListener("dragleave", K, !1), document.addEventListener("dragend", ve, !1), document.addEventListener("drop", ce, !1), function() {
|
|
16679
|
+
document.removeEventListener("dragenter", W), document.removeEventListener("dragleave", K), document.removeEventListener("dragend", ve), document.removeEventListener("drop", ce);
|
|
16680
16680
|
};
|
|
16681
16681
|
}, [z]), Ze(function() {
|
|
16682
16682
|
return !r && v && z.current && z.current.focus(), function() {
|
|
@@ -16685,83 +16685,83 @@ function Tl() {
|
|
|
16685
16685
|
var N = Te(function(W) {
|
|
16686
16686
|
O ? O(W) : console.error(W);
|
|
16687
16687
|
}, [O]), F = Te(function(W) {
|
|
16688
|
-
W.preventDefault(), W.persist(), kt(W), H.current = [].concat(Pu(H.current), [W.target]), Or(W) && Promise.resolve(o(W)).then(function(
|
|
16688
|
+
W.preventDefault(), W.persist(), kt(W), H.current = [].concat(Pu(H.current), [W.target]), Or(W) && Promise.resolve(o(W)).then(function(K) {
|
|
16689
16689
|
if (!(li(W) && !k)) {
|
|
16690
|
-
var
|
|
16691
|
-
files:
|
|
16690
|
+
var ve = K.length, ce = ve > 0 && MR({
|
|
16691
|
+
files: K,
|
|
16692
16692
|
accept: V,
|
|
16693
16693
|
minSize: a,
|
|
16694
16694
|
maxSize: i,
|
|
16695
16695
|
multiple: s,
|
|
16696
16696
|
maxFiles: l,
|
|
16697
16697
|
validator: $
|
|
16698
|
-
}),
|
|
16698
|
+
}), me = ve > 0 && !ce;
|
|
16699
16699
|
M({
|
|
16700
16700
|
isDragAccept: ce,
|
|
16701
|
-
isDragReject:
|
|
16701
|
+
isDragReject: me,
|
|
16702
16702
|
isDragActive: !0,
|
|
16703
16703
|
type: "setDraggedFiles"
|
|
16704
16704
|
}), c && c(W);
|
|
16705
16705
|
}
|
|
16706
|
-
}).catch(function(
|
|
16707
|
-
return N(
|
|
16706
|
+
}).catch(function(K) {
|
|
16707
|
+
return N(K);
|
|
16708
16708
|
});
|
|
16709
16709
|
}, [o, c, N, k, V, a, i, s, l, $]), q = Te(function(W) {
|
|
16710
16710
|
W.preventDefault(), W.persist(), kt(W);
|
|
16711
|
-
var
|
|
16712
|
-
if (
|
|
16711
|
+
var K = Or(W);
|
|
16712
|
+
if (K && W.dataTransfer)
|
|
16713
16713
|
try {
|
|
16714
16714
|
W.dataTransfer.dropEffect = "copy";
|
|
16715
16715
|
} catch {
|
|
16716
16716
|
}
|
|
16717
|
-
return
|
|
16718
|
-
}, [u, k]),
|
|
16717
|
+
return K && u && u(W), !1;
|
|
16718
|
+
}, [u, k]), X = Te(function(W) {
|
|
16719
16719
|
W.preventDefault(), W.persist(), kt(W);
|
|
16720
|
-
var
|
|
16720
|
+
var K = H.current.filter(function(ce) {
|
|
16721
16721
|
return z.current && z.current.contains(ce);
|
|
16722
|
-
}),
|
|
16723
|
-
|
|
16722
|
+
}), ve = K.indexOf(W.target);
|
|
16723
|
+
ve !== -1 && K.splice(ve, 1), H.current = K, !(K.length > 0) && (M({
|
|
16724
16724
|
type: "setDraggedFiles",
|
|
16725
16725
|
isDragActive: !1,
|
|
16726
16726
|
isDragAccept: !1,
|
|
16727
16727
|
isDragReject: !1
|
|
16728
16728
|
}), Or(W) && d && d(W));
|
|
16729
|
-
}, [z, d, k]), oe = Te(function(W,
|
|
16730
|
-
var
|
|
16731
|
-
W.forEach(function(
|
|
16732
|
-
var ke = Bm(
|
|
16729
|
+
}, [z, d, k]), oe = Te(function(W, K) {
|
|
16730
|
+
var ve = [], ce = [];
|
|
16731
|
+
W.forEach(function(me) {
|
|
16732
|
+
var ke = Bm(me, V), je = Ia(ke, 2), rt = je[0], jt = je[1], Jt = Wm(me, a, i), xt = Ia(Jt, 2), pn = xt[0], mn = xt[1], Qt = $ ? $(me) : null;
|
|
16733
16733
|
if (rt && pn && !Qt)
|
|
16734
|
-
|
|
16734
|
+
ve.push(me);
|
|
16735
16735
|
else {
|
|
16736
16736
|
var ot = [jt, mn];
|
|
16737
16737
|
Qt && (ot = ot.concat(Qt)), ce.push({
|
|
16738
|
-
file:
|
|
16738
|
+
file: me,
|
|
16739
16739
|
errors: ot.filter(function(ye) {
|
|
16740
16740
|
return ye;
|
|
16741
16741
|
})
|
|
16742
16742
|
});
|
|
16743
16743
|
}
|
|
16744
|
-
}), (!s &&
|
|
16744
|
+
}), (!s && ve.length > 1 || s && l >= 1 && ve.length > l) && (ve.forEach(function(me) {
|
|
16745
16745
|
ce.push({
|
|
16746
|
-
file:
|
|
16746
|
+
file: me,
|
|
16747
16747
|
errors: [DR]
|
|
16748
16748
|
});
|
|
16749
|
-
}),
|
|
16750
|
-
acceptedFiles:
|
|
16749
|
+
}), ve.splice(0)), M({
|
|
16750
|
+
acceptedFiles: ve,
|
|
16751
16751
|
fileRejections: ce,
|
|
16752
16752
|
isDragReject: ce.length > 0,
|
|
16753
16753
|
type: "setFiles"
|
|
16754
|
-
}), m && m(
|
|
16754
|
+
}), m && m(ve, ce, K), ce.length > 0 && y && y(ce, K), ve.length > 0 && p && p(ve, K);
|
|
16755
16755
|
}, [M, s, V, a, i, l, m, p, y, $]), L = Te(function(W) {
|
|
16756
|
-
W.preventDefault(), W.persist(), kt(W), H.current = [], Or(W) && Promise.resolve(o(W)).then(function(
|
|
16757
|
-
li(W) && !k || oe(
|
|
16758
|
-
}).catch(function(
|
|
16759
|
-
return N(
|
|
16756
|
+
W.preventDefault(), W.persist(), kt(W), H.current = [], Or(W) && Promise.resolve(o(W)).then(function(K) {
|
|
16757
|
+
li(W) && !k || oe(K, W);
|
|
16758
|
+
}).catch(function(K) {
|
|
16759
|
+
return N(K);
|
|
16760
16760
|
}), M({
|
|
16761
16761
|
type: "reset"
|
|
16762
16762
|
});
|
|
16763
16763
|
}, [o, oe, N, k]), be = Te(function() {
|
|
16764
|
-
if (
|
|
16764
|
+
if (ne.current) {
|
|
16765
16765
|
M({
|
|
16766
16766
|
type: "openDialog"
|
|
16767
16767
|
}), ee();
|
|
@@ -16769,16 +16769,16 @@ function Tl() {
|
|
|
16769
16769
|
multiple: s,
|
|
16770
16770
|
types: U
|
|
16771
16771
|
};
|
|
16772
|
-
window.showOpenFilePicker(W).then(function(
|
|
16773
|
-
return o(
|
|
16774
|
-
}).then(function(
|
|
16775
|
-
oe(
|
|
16772
|
+
window.showOpenFilePicker(W).then(function(K) {
|
|
16773
|
+
return o(K);
|
|
16774
|
+
}).then(function(K) {
|
|
16775
|
+
oe(K, null), M({
|
|
16776
16776
|
type: "closeDialog"
|
|
16777
16777
|
});
|
|
16778
|
-
}).catch(function(
|
|
16779
|
-
zR(
|
|
16778
|
+
}).catch(function(K) {
|
|
16779
|
+
zR(K) ? (Q(K), M({
|
|
16780
16780
|
type: "closeDialog"
|
|
16781
|
-
})) : jR(
|
|
16781
|
+
})) : jR(K) ? (ne.current = !1, G.current ? (G.current.value = null, G.current.click()) : N(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : N(K);
|
|
16782
16782
|
});
|
|
16783
16783
|
return;
|
|
16784
16784
|
}
|
|
@@ -16797,36 +16797,36 @@ function Tl() {
|
|
|
16797
16797
|
});
|
|
16798
16798
|
}, []), Ge = Te(function() {
|
|
16799
16799
|
S || (IR() ? setTimeout(be, 0) : be());
|
|
16800
|
-
}, [S, be]), Je = function(
|
|
16801
|
-
return r ? null :
|
|
16802
|
-
}, $e = function(
|
|
16803
|
-
return _ ? null : Je(
|
|
16804
|
-
}, Rt = function(
|
|
16805
|
-
return C ? null : Je(
|
|
16806
|
-
}, kt = function(
|
|
16807
|
-
k &&
|
|
16808
|
-
},
|
|
16800
|
+
}, [S, be]), Je = function(K) {
|
|
16801
|
+
return r ? null : K;
|
|
16802
|
+
}, $e = function(K) {
|
|
16803
|
+
return _ ? null : Je(K);
|
|
16804
|
+
}, Rt = function(K) {
|
|
16805
|
+
return C ? null : Je(K);
|
|
16806
|
+
}, kt = function(K) {
|
|
16807
|
+
k && K.stopPropagation();
|
|
16808
|
+
}, te = at(function() {
|
|
16809
16809
|
return function() {
|
|
16810
|
-
var W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
16810
|
+
var W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, K = W.refKey, ve = K === void 0 ? "ref" : K, ce = W.role, me = W.onKeyDown, ke = W.onFocus, je = W.onBlur, rt = W.onClick, jt = W.onDragEnter, Jt = W.onDragOver, xt = W.onDragLeave, pn = W.onDrop, mn = ci(W, VR);
|
|
16811
16811
|
return Fe(Fe(Ss({
|
|
16812
|
-
onKeyDown: $e(Vt(
|
|
16812
|
+
onKeyDown: $e(Vt(me, Se)),
|
|
16813
16813
|
onFocus: $e(Vt(ke, Ue)),
|
|
16814
16814
|
onBlur: $e(Vt(je, Xe)),
|
|
16815
16815
|
onClick: Je(Vt(rt, Ge)),
|
|
16816
16816
|
onDragEnter: Rt(Vt(jt, F)),
|
|
16817
16817
|
onDragOver: Rt(Vt(Jt, q)),
|
|
16818
|
-
onDragLeave: Rt(Vt(xt,
|
|
16818
|
+
onDragLeave: Rt(Vt(xt, X)),
|
|
16819
16819
|
onDrop: Rt(Vt(pn, L)),
|
|
16820
16820
|
role: typeof ce == "string" && ce !== "" ? ce : "presentation"
|
|
16821
|
-
},
|
|
16821
|
+
}, ve, z), !r && !_ ? {
|
|
16822
16822
|
tabIndex: 0
|
|
16823
16823
|
} : {}), mn);
|
|
16824
16824
|
};
|
|
16825
|
-
}, [z, Se, Ue, Xe, Ge, F, q,
|
|
16825
|
+
}, [z, Se, Ue, Xe, Ge, F, q, X, L, _, C, r]), fe = Te(function(W) {
|
|
16826
16826
|
W.stopPropagation();
|
|
16827
16827
|
}, []), Ce = at(function() {
|
|
16828
16828
|
return function() {
|
|
16829
|
-
var W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
16829
|
+
var W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, K = W.refKey, ve = K === void 0 ? "ref" : K, ce = W.onChange, me = W.onClick, ke = ci(W, HR), je = Ss({
|
|
16830
16830
|
accept: V,
|
|
16831
16831
|
multiple: s,
|
|
16832
16832
|
type: "file",
|
|
@@ -16843,15 +16843,15 @@ function Tl() {
|
|
|
16843
16843
|
whiteSpace: "nowrap"
|
|
16844
16844
|
},
|
|
16845
16845
|
onChange: Je(Vt(ce, L)),
|
|
16846
|
-
onClick: Je(Vt(
|
|
16846
|
+
onClick: Je(Vt(me, fe)),
|
|
16847
16847
|
tabIndex: -1
|
|
16848
|
-
},
|
|
16848
|
+
}, ve, G);
|
|
16849
16849
|
return Fe(Fe({}, je), ke);
|
|
16850
16850
|
};
|
|
16851
16851
|
}, [G, n, s, L, r]);
|
|
16852
16852
|
return Fe(Fe({}, J), {}, {
|
|
16853
16853
|
isFocused: E && !r,
|
|
16854
|
-
getRootProps:
|
|
16854
|
+
getRootProps: te,
|
|
16855
16855
|
getInputProps: Ce,
|
|
16856
16856
|
rootRef: z,
|
|
16857
16857
|
inputRef: G,
|
|
@@ -18623,7 +18623,7 @@ const Fl = "1.16.1", Wu = 64 * 1024, { isFunction: Mo } = D, Vu = (e, ...t) => {
|
|
|
18623
18623
|
maxContentLength: z,
|
|
18624
18624
|
maxBodyLength: G
|
|
18625
18625
|
} = ug(x);
|
|
18626
|
-
const A = D.isNumber(z) && z > -1,
|
|
18626
|
+
const A = D.isNumber(z) && z > -1, Z = D.isNumber(G) && G > -1;
|
|
18627
18627
|
let J = o || fetch;
|
|
18628
18628
|
V = V ? (V + "").toLowerCase() : "text";
|
|
18629
18629
|
let M = MO(
|
|
@@ -18633,7 +18633,7 @@ const Fl = "1.16.1", Wu = 64 * 1024, { isFunction: Mo } = D, Vu = (e, ...t) => {
|
|
|
18633
18633
|
const I = M && M.unsubscribe && (() => {
|
|
18634
18634
|
M.unsubscribe();
|
|
18635
18635
|
});
|
|
18636
|
-
let
|
|
18636
|
+
let ne;
|
|
18637
18637
|
try {
|
|
18638
18638
|
if (A && typeof v == "string" && v.startsWith("data:") && FO(v) > z)
|
|
18639
18639
|
throw new se(
|
|
@@ -18642,7 +18642,7 @@ const Fl = "1.16.1", Wu = 64 * 1024, { isFunction: Mo } = D, Vu = (e, ...t) => {
|
|
|
18642
18642
|
x,
|
|
18643
18643
|
E
|
|
18644
18644
|
);
|
|
18645
|
-
if (
|
|
18645
|
+
if (Z && w !== "get" && w !== "head") {
|
|
18646
18646
|
const F = await b(U, S);
|
|
18647
18647
|
if (typeof F == "number" && isFinite(F) && F > G)
|
|
18648
18648
|
throw new se(
|
|
@@ -18652,18 +18652,18 @@ const Fl = "1.16.1", Wu = 64 * 1024, { isFunction: Mo } = D, Vu = (e, ...t) => {
|
|
|
18652
18652
|
E
|
|
18653
18653
|
);
|
|
18654
18654
|
}
|
|
18655
|
-
if ($ && m && w !== "get" && w !== "head" && (
|
|
18655
|
+
if ($ && m && w !== "get" && w !== "head" && (ne = await b(U, S)) !== 0) {
|
|
18656
18656
|
let F = new i(v, {
|
|
18657
18657
|
method: "POST",
|
|
18658
18658
|
body: S,
|
|
18659
18659
|
duplex: "half"
|
|
18660
18660
|
}), q;
|
|
18661
18661
|
if (D.isFormData(S) && (q = F.headers.get("content-type")) && U.setContentType(q), F.body) {
|
|
18662
|
-
const [
|
|
18663
|
-
|
|
18662
|
+
const [X, oe] = Lu(
|
|
18663
|
+
ne,
|
|
18664
18664
|
ui(zu($))
|
|
18665
18665
|
);
|
|
18666
|
-
S = Bu(F.body, Wu,
|
|
18666
|
+
S = Bu(F.body, Wu, X, oe);
|
|
18667
18667
|
}
|
|
18668
18668
|
}
|
|
18669
18669
|
D.isString(ee) || (ee = ee ? "include" : "omit");
|
|
@@ -18700,7 +18700,7 @@ const Fl = "1.16.1", Wu = 64 * 1024, { isFunction: Mo } = D, Vu = (e, ...t) => {
|
|
|
18700
18700
|
["status", "statusText", "headers"].forEach((Se) => {
|
|
18701
18701
|
F[Se] = B[Se];
|
|
18702
18702
|
});
|
|
18703
|
-
const q = D.toFiniteNumber(B.headers.get("content-length")), [
|
|
18703
|
+
const q = D.toFiniteNumber(B.headers.get("content-length")), [X, oe] = O && Lu(
|
|
18704
18704
|
q,
|
|
18705
18705
|
ui(zu(O), !0)
|
|
18706
18706
|
) || [];
|
|
@@ -18713,7 +18713,7 @@ const Fl = "1.16.1", Wu = 64 * 1024, { isFunction: Mo } = D, Vu = (e, ...t) => {
|
|
|
18713
18713
|
x,
|
|
18714
18714
|
E
|
|
18715
18715
|
);
|
|
18716
|
-
|
|
18716
|
+
X && X(Se);
|
|
18717
18717
|
};
|
|
18718
18718
|
B = new a(
|
|
18719
18719
|
Bu(B.body, Wu, be, () => {
|
|
@@ -19532,8 +19532,8 @@ const $A = (e) => {
|
|
|
19532
19532
|
}), typeof C == "object" && ((ee = v.removeImageOptions) != null && ee.removedImagesField) && ((Q = v.removeImageOptions) != null && Q.removedImagesKey)) {
|
|
19533
19533
|
const G = C[(z = v.removeImageOptions) == null ? void 0 : z.removedImagesKey];
|
|
19534
19534
|
d((A) => {
|
|
19535
|
-
const
|
|
19536
|
-
return
|
|
19535
|
+
const Z = A[k] || [];
|
|
19536
|
+
return Z.includes(G) ? A : { ...A, [k]: [...Z, G] };
|
|
19537
19537
|
});
|
|
19538
19538
|
}
|
|
19539
19539
|
},
|
|
@@ -19564,8 +19564,8 @@ const $A = (e) => {
|
|
|
19564
19564
|
}), typeof C == "object" && ((ee = v.removeImageOptions) != null && ee.removedImagesField) && ((Q = v.removeImageOptions) != null && Q.removedImagesKey)) {
|
|
19565
19565
|
const G = C[(z = v.removeImageOptions) == null ? void 0 : z.removedImagesKey];
|
|
19566
19566
|
d((A) => {
|
|
19567
|
-
const
|
|
19568
|
-
return
|
|
19567
|
+
const Z = A[k] || [];
|
|
19568
|
+
return Z.includes(G) ? A : { ...A, [k]: [...Z, G] };
|
|
19569
19569
|
});
|
|
19570
19570
|
}
|
|
19571
19571
|
},
|
|
@@ -19635,7 +19635,7 @@ function YO(e, t) {
|
|
|
19635
19635
|
};
|
|
19636
19636
|
return r(e), n;
|
|
19637
19637
|
}
|
|
19638
|
-
function
|
|
19638
|
+
function ge(e, t, n) {
|
|
19639
19639
|
let r = [], o;
|
|
19640
19640
|
return (i) => {
|
|
19641
19641
|
let a;
|
|
@@ -19659,7 +19659,7 @@ function me(e, t, n) {
|
|
|
19659
19659
|
return o;
|
|
19660
19660
|
};
|
|
19661
19661
|
}
|
|
19662
|
-
function
|
|
19662
|
+
function he(e, t, n, r) {
|
|
19663
19663
|
return {
|
|
19664
19664
|
debug: () => {
|
|
19665
19665
|
var o;
|
|
@@ -19679,14 +19679,14 @@ function KO(e, t, n, r) {
|
|
|
19679
19679
|
column: n,
|
|
19680
19680
|
getValue: () => t.getValue(r),
|
|
19681
19681
|
renderValue: o,
|
|
19682
|
-
getContext:
|
|
19682
|
+
getContext: ge(() => [e, n, t, i], (a, s, l, c) => ({
|
|
19683
19683
|
table: a,
|
|
19684
19684
|
column: s,
|
|
19685
19685
|
row: l,
|
|
19686
19686
|
cell: c,
|
|
19687
19687
|
getValue: c.getValue,
|
|
19688
19688
|
renderValue: c.renderValue
|
|
19689
|
-
}),
|
|
19689
|
+
}), he(e.options, "debugCells", "cell.getContext"))
|
|
19690
19690
|
};
|
|
19691
19691
|
return e._features.forEach((a) => {
|
|
19692
19692
|
a.createCell == null || a.createCell(i, n, t, e);
|
|
@@ -19715,18 +19715,18 @@ function ZO(e, t, n, r) {
|
|
|
19715
19715
|
depth: n,
|
|
19716
19716
|
columnDef: s,
|
|
19717
19717
|
columns: [],
|
|
19718
|
-
getFlatColumns:
|
|
19718
|
+
getFlatColumns: ge(() => [!0], () => {
|
|
19719
19719
|
var m;
|
|
19720
19720
|
return [u, ...(m = u.columns) == null ? void 0 : m.flatMap((p) => p.getFlatColumns())];
|
|
19721
|
-
},
|
|
19722
|
-
getLeafColumns:
|
|
19721
|
+
}, he(e.options, "debugColumns", "column.getFlatColumns")),
|
|
19722
|
+
getLeafColumns: ge(() => [e._getOrderColumnsFn()], (m) => {
|
|
19723
19723
|
var p;
|
|
19724
19724
|
if ((p = u.columns) != null && p.length) {
|
|
19725
19725
|
let y = u.columns.flatMap((g) => g.getLeafColumns());
|
|
19726
19726
|
return m(y);
|
|
19727
19727
|
}
|
|
19728
19728
|
return [u];
|
|
19729
|
-
},
|
|
19729
|
+
}, he(e.options, "debugColumns", "column.getLeafColumns"))
|
|
19730
19730
|
};
|
|
19731
19731
|
for (const m of e._features)
|
|
19732
19732
|
m.createColumn == null || m.createColumn(u, e);
|
|
@@ -19764,31 +19764,31 @@ function Yu(e, t, n) {
|
|
|
19764
19764
|
}
|
|
19765
19765
|
const XO = {
|
|
19766
19766
|
createTable: (e) => {
|
|
19767
|
-
e.getHeaderGroups =
|
|
19767
|
+
e.getHeaderGroups = ge(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => {
|
|
19768
19768
|
var i, a;
|
|
19769
19769
|
const s = (i = r == null ? void 0 : r.map((u) => n.find((m) => m.id === u)).filter(Boolean)) != null ? i : [], l = (a = o == null ? void 0 : o.map((u) => n.find((m) => m.id === u)).filter(Boolean)) != null ? a : [], c = n.filter((u) => !(r != null && r.includes(u.id)) && !(o != null && o.includes(u.id)));
|
|
19770
19770
|
return Ao(t, [...s, ...c, ...l], e);
|
|
19771
|
-
},
|
|
19771
|
+
}, he(e.options, et, "getHeaderGroups")), e.getCenterHeaderGroups = ge(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => (n = n.filter((i) => !(r != null && r.includes(i.id)) && !(o != null && o.includes(i.id))), Ao(t, n, e, "center")), he(e.options, et, "getCenterHeaderGroups")), e.getLeftHeaderGroups = ge(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (t, n, r) => {
|
|
19772
19772
|
var o;
|
|
19773
19773
|
const i = (o = r == null ? void 0 : r.map((a) => n.find((s) => s.id === a)).filter(Boolean)) != null ? o : [];
|
|
19774
19774
|
return Ao(t, i, e, "left");
|
|
19775
|
-
},
|
|
19775
|
+
}, he(e.options, et, "getLeftHeaderGroups")), e.getRightHeaderGroups = ge(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (t, n, r) => {
|
|
19776
19776
|
var o;
|
|
19777
19777
|
const i = (o = r == null ? void 0 : r.map((a) => n.find((s) => s.id === a)).filter(Boolean)) != null ? o : [];
|
|
19778
19778
|
return Ao(t, i, e, "right");
|
|
19779
|
-
},
|
|
19779
|
+
}, he(e.options, et, "getRightHeaderGroups")), e.getFooterGroups = ge(() => [e.getHeaderGroups()], (t) => [...t].reverse(), he(e.options, et, "getFooterGroups")), e.getLeftFooterGroups = ge(() => [e.getLeftHeaderGroups()], (t) => [...t].reverse(), he(e.options, et, "getLeftFooterGroups")), e.getCenterFooterGroups = ge(() => [e.getCenterHeaderGroups()], (t) => [...t].reverse(), he(e.options, et, "getCenterFooterGroups")), e.getRightFooterGroups = ge(() => [e.getRightHeaderGroups()], (t) => [...t].reverse(), he(e.options, et, "getRightFooterGroups")), e.getFlatHeaders = ge(() => [e.getHeaderGroups()], (t) => t.map((n) => n.headers).flat(), he(e.options, et, "getFlatHeaders")), e.getLeftFlatHeaders = ge(() => [e.getLeftHeaderGroups()], (t) => t.map((n) => n.headers).flat(), he(e.options, et, "getLeftFlatHeaders")), e.getCenterFlatHeaders = ge(() => [e.getCenterHeaderGroups()], (t) => t.map((n) => n.headers).flat(), he(e.options, et, "getCenterFlatHeaders")), e.getRightFlatHeaders = ge(() => [e.getRightHeaderGroups()], (t) => t.map((n) => n.headers).flat(), he(e.options, et, "getRightFlatHeaders")), e.getCenterLeafHeaders = ge(() => [e.getCenterFlatHeaders()], (t) => t.filter((n) => {
|
|
19780
19780
|
var r;
|
|
19781
19781
|
return !((r = n.subHeaders) != null && r.length);
|
|
19782
|
-
}),
|
|
19782
|
+
}), he(e.options, et, "getCenterLeafHeaders")), e.getLeftLeafHeaders = ge(() => [e.getLeftFlatHeaders()], (t) => t.filter((n) => {
|
|
19783
19783
|
var r;
|
|
19784
19784
|
return !((r = n.subHeaders) != null && r.length);
|
|
19785
|
-
}),
|
|
19785
|
+
}), he(e.options, et, "getLeftLeafHeaders")), e.getRightLeafHeaders = ge(() => [e.getRightFlatHeaders()], (t) => t.filter((n) => {
|
|
19786
19786
|
var r;
|
|
19787
19787
|
return !((r = n.subHeaders) != null && r.length);
|
|
19788
|
-
}),
|
|
19788
|
+
}), he(e.options, et, "getRightLeafHeaders")), e.getLeafHeaders = ge(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (t, n, r) => {
|
|
19789
19789
|
var o, i, a, s, l, c;
|
|
19790
19790
|
return [...(o = (i = t[0]) == null ? void 0 : i.headers) != null ? o : [], ...(a = (s = n[0]) == null ? void 0 : s.headers) != null ? a : [], ...(l = (c = r[0]) == null ? void 0 : c.headers) != null ? l : []].map((d) => d.getLeafHeaders()).flat();
|
|
19791
|
-
},
|
|
19791
|
+
}, he(e.options, et, "getLeafHeaders"));
|
|
19792
19792
|
}
|
|
19793
19793
|
};
|
|
19794
19794
|
function Ao(e, t, n, r) {
|
|
@@ -19886,8 +19886,8 @@ const Ll = (e, t, n, r, o, i, a) => {
|
|
|
19886
19886
|
}
|
|
19887
19887
|
return l.reverse();
|
|
19888
19888
|
},
|
|
19889
|
-
getAllCells:
|
|
19890
|
-
_getAllCellsByColumnId:
|
|
19889
|
+
getAllCells: ge(() => [e.getAllLeafColumns()], (l) => l.map((c) => KO(e, s, c, c.id)), he(e.options, "debugRows", "getAllCells")),
|
|
19890
|
+
_getAllCellsByColumnId: ge(() => [s.getAllCells()], (l) => l.reduce((c, d) => (c[d.column.id] = d, c), {}), he(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
19891
19891
|
};
|
|
19892
19892
|
for (let l = 0; l < e._features.length; l++) {
|
|
19893
19893
|
const c = e._features[l];
|
|
@@ -20171,7 +20171,7 @@ const dP = {
|
|
|
20171
20171
|
onColumnOrderChange: bt("columnOrder", e)
|
|
20172
20172
|
}),
|
|
20173
20173
|
createColumn: (e, t) => {
|
|
20174
|
-
e.getIndex =
|
|
20174
|
+
e.getIndex = ge((n) => [Ir(t, n)], (n) => n.findIndex((r) => r.id === e.id), he(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => {
|
|
20175
20175
|
var r;
|
|
20176
20176
|
return ((r = Ir(t, n)[0]) == null ? void 0 : r.id) === e.id;
|
|
20177
20177
|
}, e.getIsLastColumn = (n) => {
|
|
@@ -20184,7 +20184,7 @@ const dP = {
|
|
|
20184
20184
|
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
|
|
20185
20185
|
var n;
|
|
20186
20186
|
e.setColumnOrder(t ? [] : (n = e.initialState.columnOrder) != null ? n : []);
|
|
20187
|
-
}, e._getOrderColumnsFn =
|
|
20187
|
+
}, e._getOrderColumnsFn = ge(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (t, n, r) => (o) => {
|
|
20188
20188
|
let i = [];
|
|
20189
20189
|
if (!(t != null && t.length))
|
|
20190
20190
|
i = o;
|
|
@@ -20197,7 +20197,7 @@ const dP = {
|
|
|
20197
20197
|
i = [...i, ...s];
|
|
20198
20198
|
}
|
|
20199
20199
|
return uP(i, n, r);
|
|
20200
|
-
},
|
|
20200
|
+
}, he(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
20201
20201
|
}
|
|
20202
20202
|
}, Ba = () => ({
|
|
20203
20203
|
left: [],
|
|
@@ -20250,16 +20250,16 @@ const dP = {
|
|
|
20250
20250
|
};
|
|
20251
20251
|
},
|
|
20252
20252
|
createRow: (e, t) => {
|
|
20253
|
-
e.getCenterVisibleCells =
|
|
20253
|
+
e.getCenterVisibleCells = ge(() => [e._getAllVisibleCells(), t.getState().columnPinning.left, t.getState().columnPinning.right], (n, r, o) => {
|
|
20254
20254
|
const i = [...r ?? [], ...o ?? []];
|
|
20255
20255
|
return n.filter((a) => !i.includes(a.column.id));
|
|
20256
|
-
},
|
|
20256
|
+
}, he(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = ge(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (n, r) => (r ?? []).map((i) => n.find((a) => a.column.id === i)).filter(Boolean).map((i) => ({
|
|
20257
20257
|
...i,
|
|
20258
20258
|
position: "left"
|
|
20259
|
-
})),
|
|
20259
|
+
})), he(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = ge(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (n, r) => (r ?? []).map((i) => n.find((a) => a.column.id === i)).filter(Boolean).map((i) => ({
|
|
20260
20260
|
...i,
|
|
20261
20261
|
position: "right"
|
|
20262
|
-
})),
|
|
20262
|
+
})), he(t.options, "debugRows", "getRightVisibleCells"));
|
|
20263
20263
|
},
|
|
20264
20264
|
createTable: (e) => {
|
|
20265
20265
|
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => {
|
|
@@ -20273,10 +20273,10 @@ const dP = {
|
|
|
20273
20273
|
return !!((o = r.left) != null && o.length || (i = r.right) != null && i.length);
|
|
20274
20274
|
}
|
|
20275
20275
|
return !!((n = r[t]) != null && n.length);
|
|
20276
|
-
}, e.getLeftLeafColumns =
|
|
20276
|
+
}, e.getLeftLeafColumns = ge(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (t, n) => (n ?? []).map((r) => t.find((o) => o.id === r)).filter(Boolean), he(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = ge(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (t, n) => (n ?? []).map((r) => t.find((o) => o.id === r)).filter(Boolean), he(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = ge(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r) => {
|
|
20277
20277
|
const o = [...n ?? [], ...r ?? []];
|
|
20278
20278
|
return t.filter((i) => !o.includes(i.id));
|
|
20279
|
-
},
|
|
20279
|
+
}, he(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
20280
20280
|
}
|
|
20281
20281
|
};
|
|
20282
20282
|
function pP(e) {
|
|
@@ -20311,7 +20311,7 @@ const No = {
|
|
|
20311
20311
|
var n, r, o;
|
|
20312
20312
|
const i = t.getState().columnSizing[e.id];
|
|
20313
20313
|
return Math.min(Math.max((n = e.columnDef.minSize) != null ? n : No.minSize, (r = i ?? e.columnDef.size) != null ? r : No.size), (o = e.columnDef.maxSize) != null ? o : No.maxSize);
|
|
20314
|
-
}, e.getStart =
|
|
20314
|
+
}, e.getStart = ge((n) => [n, Ir(t, n), t.getState().columnSizing], (n, r) => r.slice(0, e.getIndex(n)).reduce((o, i) => o + i.getSize(), 0), he(t.options, "debugColumns", "getStart")), e.getAfter = ge((n) => [n, Ir(t, n), t.getState().columnSizing], (n, r) => r.slice(e.getIndex(n) + 1).reduce((o, i) => o + i.getSize(), 0), he(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
20315
20315
|
t.setColumnSizing((n) => {
|
|
20316
20316
|
let {
|
|
20317
20317
|
[e.id]: r,
|
|
@@ -20467,10 +20467,10 @@ const hP = {
|
|
|
20467
20467
|
};
|
|
20468
20468
|
},
|
|
20469
20469
|
createRow: (e, t) => {
|
|
20470
|
-
e._getAllVisibleCells =
|
|
20470
|
+
e._getAllVisibleCells = ge(() => [e.getAllCells(), t.getState().columnVisibility], (n) => n.filter((r) => r.column.getIsVisible()), he(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = ge(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (n, r, o) => [...n, ...r, ...o], he(t.options, "debugRows", "getVisibleCells"));
|
|
20471
20471
|
},
|
|
20472
20472
|
createTable: (e) => {
|
|
20473
|
-
const t = (n, r) =>
|
|
20473
|
+
const t = (n, r) => ge(() => [r(), r().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), he(e.options, "debugColumns", n));
|
|
20474
20474
|
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (n) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(n), e.resetColumnVisibility = (n) => {
|
|
20475
20475
|
var r;
|
|
20476
20476
|
e.setColumnVisibility(n ? {} : (r = e.initialState.columnVisibility) != null ? r : {});
|
|
@@ -20683,10 +20683,10 @@ const vP = {
|
|
|
20683
20683
|
...o,
|
|
20684
20684
|
pageCount: a
|
|
20685
20685
|
};
|
|
20686
|
-
}), e.getPageOptions =
|
|
20686
|
+
}), e.getPageOptions = ge(() => [e.getPageCount()], (r) => {
|
|
20687
20687
|
let o = [];
|
|
20688
20688
|
return r && r > 0 && (o = [...new Array(r)].fill(null).map((i, a) => a)), o;
|
|
20689
|
-
},
|
|
20689
|
+
}, he(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
20690
20690
|
const {
|
|
20691
20691
|
pageIndex: r
|
|
20692
20692
|
} = e.getState().pagination, o = e.getPageCount();
|
|
@@ -20798,10 +20798,10 @@ const vP = {
|
|
|
20798
20798
|
...a,
|
|
20799
20799
|
position: r
|
|
20800
20800
|
}));
|
|
20801
|
-
}, e.getTopRows =
|
|
20801
|
+
}, e.getTopRows = ge(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), he(e.options, "debugRows", "getTopRows")), e.getBottomRows = ge(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), he(e.options, "debugRows", "getBottomRows")), e.getCenterRows = ge(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (t, n, r) => {
|
|
20802
20802
|
const o = /* @__PURE__ */ new Set([...n ?? [], ...r ?? []]);
|
|
20803
20803
|
return t.filter((i) => !o.has(i.id));
|
|
20804
|
-
},
|
|
20804
|
+
}, he(e.options, "debugRows", "getCenterRows"));
|
|
20805
20805
|
}
|
|
20806
20806
|
}, SP = {
|
|
20807
20807
|
getInitialState: (e) => ({
|
|
@@ -20840,19 +20840,19 @@ const vP = {
|
|
|
20840
20840
|
return e.getRowModel().rows.forEach((i) => {
|
|
20841
20841
|
Ts(o, i.id, r, !0, e);
|
|
20842
20842
|
}), o;
|
|
20843
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
20843
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = ge(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? Ga(e, n) : {
|
|
20844
20844
|
rows: [],
|
|
20845
20845
|
flatRows: [],
|
|
20846
20846
|
rowsById: {}
|
|
20847
|
-
},
|
|
20847
|
+
}, he(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = ge(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? Ga(e, n) : {
|
|
20848
20848
|
rows: [],
|
|
20849
20849
|
flatRows: [],
|
|
20850
20850
|
rowsById: {}
|
|
20851
|
-
},
|
|
20851
|
+
}, he(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = ge(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? Ga(e, n) : {
|
|
20852
20852
|
rows: [],
|
|
20853
20853
|
flatRows: [],
|
|
20854
20854
|
rowsById: {}
|
|
20855
|
-
},
|
|
20855
|
+
}, he(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
20856
20856
|
const t = e.getFilteredRowModel().flatRows, {
|
|
20857
20857
|
rowSelection: n
|
|
20858
20858
|
} = e.getState();
|
|
@@ -21168,7 +21168,7 @@ function TP(e) {
|
|
|
21168
21168
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${m}`) : new Error();
|
|
21169
21169
|
return y;
|
|
21170
21170
|
},
|
|
21171
|
-
_getDefaultColumnDef:
|
|
21171
|
+
_getDefaultColumnDef: ge(() => [o.options.defaultColumn], (m) => {
|
|
21172
21172
|
var p;
|
|
21173
21173
|
return m = (p = m) != null ? p : {}, {
|
|
21174
21174
|
header: (y) => {
|
|
@@ -21183,9 +21183,9 @@ function TP(e) {
|
|
|
21183
21183
|
...o._features.reduce((y, g) => Object.assign(y, g.getDefaultColumnDef == null ? void 0 : g.getDefaultColumnDef()), {}),
|
|
21184
21184
|
...m
|
|
21185
21185
|
};
|
|
21186
|
-
},
|
|
21186
|
+
}, he(e, "debugColumns", "_getDefaultColumnDef")),
|
|
21187
21187
|
_getColumnDefs: () => o.options.columns,
|
|
21188
|
-
getAllColumns:
|
|
21188
|
+
getAllColumns: ge(() => [o._getColumnDefs()], (m) => {
|
|
21189
21189
|
const p = function(y, g, b) {
|
|
21190
21190
|
return b === void 0 && (b = 0), y.map((x) => {
|
|
21191
21191
|
const v = ZO(o, x, b, g), w = x;
|
|
@@ -21193,13 +21193,13 @@ function TP(e) {
|
|
|
21193
21193
|
});
|
|
21194
21194
|
};
|
|
21195
21195
|
return p(m);
|
|
21196
|
-
},
|
|
21197
|
-
getAllFlatColumns:
|
|
21198
|
-
_getAllFlatColumnsById:
|
|
21199
|
-
getAllLeafColumns:
|
|
21196
|
+
}, he(e, "debugColumns", "getAllColumns")),
|
|
21197
|
+
getAllFlatColumns: ge(() => [o.getAllColumns()], (m) => m.flatMap((p) => p.getFlatColumns()), he(e, "debugColumns", "getAllFlatColumns")),
|
|
21198
|
+
_getAllFlatColumnsById: ge(() => [o.getAllFlatColumns()], (m) => m.reduce((p, y) => (p[y.id] = y, p), {}), he(e, "debugColumns", "getAllFlatColumnsById")),
|
|
21199
|
+
getAllLeafColumns: ge(() => [o.getAllColumns(), o._getOrderColumnsFn()], (m, p) => {
|
|
21200
21200
|
let y = m.flatMap((g) => g.getLeafColumns());
|
|
21201
21201
|
return p(y);
|
|
21202
|
-
},
|
|
21202
|
+
}, he(e, "debugColumns", "getAllLeafColumns")),
|
|
21203
21203
|
getColumn: (m) => {
|
|
21204
21204
|
const p = o._getAllFlatColumnsById()[m];
|
|
21205
21205
|
return process.env.NODE_ENV !== "production" && !p && console.error(`[Table] Column with id '${m}' does not exist.`), p;
|
|
@@ -21213,7 +21213,7 @@ function TP(e) {
|
|
|
21213
21213
|
return o;
|
|
21214
21214
|
}
|
|
21215
21215
|
function MP() {
|
|
21216
|
-
return (e) =>
|
|
21216
|
+
return (e) => ge(() => [e.options.data], (t) => {
|
|
21217
21217
|
const n = {
|
|
21218
21218
|
rows: [],
|
|
21219
21219
|
flatRows: [],
|
|
@@ -21231,7 +21231,7 @@ function MP() {
|
|
|
21231
21231
|
return s;
|
|
21232
21232
|
};
|
|
21233
21233
|
return n.rows = r(t), n;
|
|
21234
|
-
},
|
|
21234
|
+
}, he(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
21235
21235
|
}
|
|
21236
21236
|
function AP(e) {
|
|
21237
21237
|
const t = [], n = (r) => {
|
|
@@ -21301,7 +21301,7 @@ function FP(e, t, n) {
|
|
|
21301
21301
|
};
|
|
21302
21302
|
}
|
|
21303
21303
|
function $P() {
|
|
21304
|
-
return (e) =>
|
|
21304
|
+
return (e) => ge(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (t, n, r) => {
|
|
21305
21305
|
if (!t.rows.length || !(n != null && n.length) && !r) {
|
|
21306
21306
|
for (let m = 0; m < t.flatRows.length; m++)
|
|
21307
21307
|
t.flatRows[m].columnFilters = {}, t.flatRows[m].columnFiltersMeta = {};
|
|
@@ -21365,10 +21365,10 @@ function $P() {
|
|
|
21365
21365
|
return !0;
|
|
21366
21366
|
};
|
|
21367
21367
|
return NP(t.rows, u, e);
|
|
21368
|
-
},
|
|
21368
|
+
}, he(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
21369
21369
|
}
|
|
21370
21370
|
function LP(e) {
|
|
21371
|
-
return (t) =>
|
|
21371
|
+
return (t) => ge(() => [t.getState().pagination, t.getPrePaginationRowModel(), t.options.paginateExpandedRows ? void 0 : t.getState().expanded], (n, r) => {
|
|
21372
21372
|
if (!r.rows.length)
|
|
21373
21373
|
return r;
|
|
21374
21374
|
const {
|
|
@@ -21396,10 +21396,10 @@ function LP(e) {
|
|
|
21396
21396
|
u.flatRows.push(p), p.subRows.length && p.subRows.forEach(m);
|
|
21397
21397
|
};
|
|
21398
21398
|
return u.rows.forEach(m), u;
|
|
21399
|
-
},
|
|
21399
|
+
}, he(t.options, "debugTable", "getPaginationRowModel"));
|
|
21400
21400
|
}
|
|
21401
21401
|
function zP() {
|
|
21402
|
-
return (e) =>
|
|
21402
|
+
return (e) => ge(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
21403
21403
|
if (!n.rows.length || !(t != null && t.length))
|
|
21404
21404
|
return n;
|
|
21405
21405
|
const r = e.getState().sorting, o = [], i = r.filter((l) => {
|
|
@@ -21445,7 +21445,7 @@ function zP() {
|
|
|
21445
21445
|
flatRows: o,
|
|
21446
21446
|
rowsById: n.rowsById
|
|
21447
21447
|
};
|
|
21448
|
-
},
|
|
21448
|
+
}, he(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
21449
21449
|
}
|
|
21450
21450
|
/**
|
|
21451
21451
|
* react-table
|
|
@@ -21623,11 +21623,11 @@ var XP = Eg, JP = [" ", "Enter", "ArrowUp", "ArrowDown"], QP = [" ", "Enter"], U
|
|
|
21623
21623
|
{
|
|
21624
21624
|
scope: e.__scopeSelect,
|
|
21625
21625
|
onNativeOptionAdd: h.useCallback((A) => {
|
|
21626
|
-
z((
|
|
21626
|
+
z((Z) => new Set(Z).add(A));
|
|
21627
21627
|
}, []),
|
|
21628
21628
|
onNativeOptionRemove: h.useCallback((A) => {
|
|
21629
|
-
z((
|
|
21630
|
-
const J = new Set(
|
|
21629
|
+
z((Z) => {
|
|
21630
|
+
const J = new Set(Z);
|
|
21631
21631
|
return J.delete(A), J;
|
|
21632
21632
|
});
|
|
21633
21633
|
}, []),
|
|
@@ -21774,30 +21774,30 @@ var Tt = 10, [Ng, On] = Cr(Gn), aD = "SelectContentImpl", sD = /* @__PURE__ */ H
|
|
|
21774
21774
|
}, [w]), Si();
|
|
21775
21775
|
const A = h.useCallback(
|
|
21776
21776
|
(N) => {
|
|
21777
|
-
const [F, ...q] = ee().map((L) => L.ref.current), [
|
|
21777
|
+
const [F, ...q] = ee().map((L) => L.ref.current), [X] = q.slice(-1), oe = document.activeElement;
|
|
21778
21778
|
for (const L of N)
|
|
21779
|
-
if (L === oe || (L == null || L.scrollIntoView({ block: "nearest" }), L === F && _ && (_.scrollTop = 0), L ===
|
|
21779
|
+
if (L === oe || (L == null || L.scrollIntoView({ block: "nearest" }), L === F && _ && (_.scrollTop = 0), L === X && _ && (_.scrollTop = _.scrollHeight), L == null || L.focus(), document.activeElement !== oe)) return;
|
|
21780
21780
|
},
|
|
21781
21781
|
[ee, _]
|
|
21782
|
-
),
|
|
21782
|
+
), Z = h.useCallback(
|
|
21783
21783
|
() => A([O, w]),
|
|
21784
21784
|
[A, O, w]
|
|
21785
21785
|
);
|
|
21786
21786
|
h.useEffect(() => {
|
|
21787
|
-
Q &&
|
|
21788
|
-
}, [Q,
|
|
21787
|
+
Q && Z();
|
|
21788
|
+
}, [Q, Z]);
|
|
21789
21789
|
const { onOpenChange: J, triggerPointerDownPosRef: M } = v;
|
|
21790
21790
|
h.useEffect(() => {
|
|
21791
21791
|
if (w) {
|
|
21792
21792
|
let N = { x: 0, y: 0 };
|
|
21793
|
-
const F = (
|
|
21793
|
+
const F = (X) => {
|
|
21794
21794
|
var oe, L;
|
|
21795
21795
|
N = {
|
|
21796
|
-
x: Math.abs(Math.round(
|
|
21797
|
-
y: Math.abs(Math.round(
|
|
21796
|
+
x: Math.abs(Math.round(X.pageX) - (((oe = M.current) == null ? void 0 : oe.x) ?? 0)),
|
|
21797
|
+
y: Math.abs(Math.round(X.pageY) - (((L = M.current) == null ? void 0 : L.y) ?? 0))
|
|
21798
21798
|
};
|
|
21799
|
-
}, q = (
|
|
21800
|
-
N.x <= 10 && N.y <= 10 ?
|
|
21799
|
+
}, q = (X) => {
|
|
21800
|
+
N.x <= 10 && N.y <= 10 ? X.preventDefault() : w.contains(X.target) || J(!1), document.removeEventListener("pointermove", F), M.current = null;
|
|
21801
21801
|
};
|
|
21802
21802
|
return M.current !== null && (document.addEventListener("pointermove", F), document.addEventListener("pointerup", q, { capture: !0, once: !0 })), () => {
|
|
21803
21803
|
document.removeEventListener("pointermove", F), document.removeEventListener("pointerup", q, { capture: !0 });
|
|
@@ -21810,18 +21810,18 @@ var Tt = 10, [Ng, On] = Cr(Gn), aD = "SelectContentImpl", sD = /* @__PURE__ */ H
|
|
|
21810
21810
|
};
|
|
21811
21811
|
}, [J]);
|
|
21812
21812
|
const [E, I] = Zg((N) => {
|
|
21813
|
-
const F = ee().filter((oe) => !oe.disabled), q = F.find((oe) => oe.ref.current === document.activeElement),
|
|
21814
|
-
|
|
21815
|
-
}),
|
|
21813
|
+
const F = ee().filter((oe) => !oe.disabled), q = F.find((oe) => oe.ref.current === document.activeElement), X = Xg(F, N, q);
|
|
21814
|
+
X && setTimeout(() => X.ref.current.focus());
|
|
21815
|
+
}), ne = h.useCallback(
|
|
21816
21816
|
(N, F, q) => {
|
|
21817
|
-
const
|
|
21818
|
-
(v.value !== void 0 && v.value === F ||
|
|
21817
|
+
const X = !G.current && !q;
|
|
21818
|
+
(v.value !== void 0 && v.value === F || X) && ($(N), X && (G.current = !0));
|
|
21819
21819
|
},
|
|
21820
21820
|
[v.value]
|
|
21821
21821
|
), j = h.useCallback(() => w == null ? void 0 : w.focus(), [w]), H = h.useCallback(
|
|
21822
21822
|
(N, F, q) => {
|
|
21823
|
-
const
|
|
21824
|
-
(v.value !== void 0 && v.value === F ||
|
|
21823
|
+
const X = !G.current && !q;
|
|
21824
|
+
(v.value !== void 0 && v.value === F || X) && U(N);
|
|
21825
21825
|
},
|
|
21826
21826
|
[v.value]
|
|
21827
21827
|
), B = r === "popper" ? Ns : Fg, Y = B === Ns ? {
|
|
@@ -21843,11 +21843,11 @@ var Tt = 10, [Ng, On] = Cr(Gn), aD = "SelectContentImpl", sD = /* @__PURE__ */ H
|
|
|
21843
21843
|
content: w,
|
|
21844
21844
|
viewport: _,
|
|
21845
21845
|
onViewportChange: C,
|
|
21846
|
-
itemRefCallback:
|
|
21846
|
+
itemRefCallback: ne,
|
|
21847
21847
|
selectedItem: O,
|
|
21848
21848
|
onItemLeave: j,
|
|
21849
21849
|
itemTextRefCallback: H,
|
|
21850
|
-
focusSelectedItem:
|
|
21850
|
+
focusSelectedItem: Z,
|
|
21851
21851
|
selectedItemText: V,
|
|
21852
21852
|
position: r,
|
|
21853
21853
|
isPositioned: Q,
|
|
@@ -21896,12 +21896,12 @@ var Tt = 10, [Ng, On] = Cr(Gn), aD = "SelectContentImpl", sD = /* @__PURE__ */ H
|
|
|
21896
21896
|
onKeyDown: re(x.onKeyDown, (N) => {
|
|
21897
21897
|
const F = N.ctrlKey || N.altKey || N.metaKey;
|
|
21898
21898
|
if (N.key === "Tab" && N.preventDefault(), !F && N.key.length === 1 && I(N.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(N.key)) {
|
|
21899
|
-
let
|
|
21900
|
-
if (["ArrowUp", "End"].includes(N.key) && (
|
|
21901
|
-
const oe = N.target, L =
|
|
21902
|
-
|
|
21899
|
+
let X = ee().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
|
|
21900
|
+
if (["ArrowUp", "End"].includes(N.key) && (X = X.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(N.key)) {
|
|
21901
|
+
const oe = N.target, L = X.indexOf(oe);
|
|
21902
|
+
X = X.slice(L + 1);
|
|
21903
21903
|
}
|
|
21904
|
-
setTimeout(() => A(
|
|
21904
|
+
setTimeout(() => A(X)), N.preventDefault();
|
|
21905
21905
|
}
|
|
21906
21906
|
})
|
|
21907
21907
|
}
|
|
@@ -21937,14 +21937,14 @@ var lD = "SelectItemAlignedPosition", Fg = h.forwardRef((e, t) => {
|
|
|
21937
21937
|
]);
|
|
21938
21938
|
s.style.minWidth = Se + "px", s.style.right = Ge + "px";
|
|
21939
21939
|
}
|
|
21940
|
-
const U = m(), ee = window.innerHeight - Tt * 2, Q = g.scrollHeight, z = window.getComputedStyle(c), G = parseInt(z.borderTopWidth, 10), A = parseInt(z.paddingTop, 10),
|
|
21940
|
+
const U = m(), ee = window.innerHeight - Tt * 2, Q = g.scrollHeight, z = window.getComputedStyle(c), G = parseInt(z.borderTopWidth, 10), A = parseInt(z.paddingTop, 10), Z = parseInt(z.borderBottomWidth, 10), J = parseInt(z.paddingBottom, 10), M = G + A + Q + J + Z, E = Math.min(b.offsetHeight * 5, M), I = window.getComputedStyle(g), ne = parseInt(I.paddingTop, 10), j = parseInt(I.paddingBottom, 10), H = k.top + k.height / 2 - Tt, B = ee - H, Y = b.offsetHeight / 2, N = b.offsetTop + Y, F = G + A + N, q = M - F;
|
|
21941
21941
|
if (F <= H) {
|
|
21942
21942
|
const oe = U.length > 0 && b === U[U.length - 1].ref.current;
|
|
21943
21943
|
s.style.bottom = "0px";
|
|
21944
21944
|
const L = c.clientHeight - g.offsetTop - g.offsetHeight, be = Math.max(
|
|
21945
21945
|
B,
|
|
21946
21946
|
Y + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
21947
|
-
(oe ? j : 0) + L +
|
|
21947
|
+
(oe ? j : 0) + L + Z
|
|
21948
21948
|
), Se = F + be;
|
|
21949
21949
|
s.style.height = Se + "px";
|
|
21950
21950
|
} else {
|
|
@@ -21953,7 +21953,7 @@ var lD = "SelectItemAlignedPosition", Fg = h.forwardRef((e, t) => {
|
|
|
21953
21953
|
const be = Math.max(
|
|
21954
21954
|
H,
|
|
21955
21955
|
G + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
21956
|
-
(oe ?
|
|
21956
|
+
(oe ? ne : 0) + Y
|
|
21957
21957
|
) + q;
|
|
21958
21958
|
s.style.height = be + "px", g.scrollTop = F - H + g.offsetTop;
|
|
21959
21959
|
}
|
|
@@ -22630,10 +22630,10 @@ function YD({
|
|
|
22630
22630
|
onRowSelectionChange: m,
|
|
22631
22631
|
bulkActions: p
|
|
22632
22632
|
}) {
|
|
22633
|
-
var
|
|
22633
|
+
var Z, J;
|
|
22634
22634
|
const [y, g] = P.useState([]), [b, x] = P.useState([]), [v, w] = P.useState({}), S = u ?? v, _ = m ?? w, [C, k] = P.useState({}), O = c ?? C, $ = d ?? k, [V, U] = P.useState({
|
|
22635
22635
|
pageIndex: 0,
|
|
22636
|
-
pageSize: ((
|
|
22636
|
+
pageSize: ((Z = a == null ? void 0 : a.pageSizeOptions) == null ? void 0 : Z[0]) ?? 10
|
|
22637
22637
|
}), ee = s ?? V, Q = l ?? U, z = VP({
|
|
22638
22638
|
data: e,
|
|
22639
22639
|
columns: t,
|
|
@@ -22677,8 +22677,8 @@ function YD({
|
|
|
22677
22677
|
placeholder: M.placeholder ?? `Filter ${M.column}...`,
|
|
22678
22678
|
value: ((E = z.getColumn(M.column)) == null ? void 0 : E.getFilterValue()) ?? "",
|
|
22679
22679
|
onChange: (I) => {
|
|
22680
|
-
var
|
|
22681
|
-
return (
|
|
22680
|
+
var ne;
|
|
22681
|
+
return (ne = z.getColumn(M.column)) == null ? void 0 : ne.setFilterValue(I.target.value);
|
|
22682
22682
|
},
|
|
22683
22683
|
className: R("pl-8", M.className)
|
|
22684
22684
|
}
|
|
@@ -22712,22 +22712,22 @@ function YD({
|
|
|
22712
22712
|
] }),
|
|
22713
22713
|
/* @__PURE__ */ f("div", { className: "rounded-md border bg-card", children: /* @__PURE__ */ T(jD, { children: [
|
|
22714
22714
|
/* @__PURE__ */ f(BD, { children: z.getHeaderGroups().map((M) => /* @__PURE__ */ f(qa, { children: M.headers.map((E, I) => {
|
|
22715
|
-
const
|
|
22715
|
+
const ne = E.column.getCanSort(), j = E.column.getIsSorted();
|
|
22716
22716
|
return /* @__PURE__ */ f(
|
|
22717
22717
|
VD,
|
|
22718
22718
|
{
|
|
22719
22719
|
className: R(
|
|
22720
22720
|
"bg-secondary text-secondary-foreground",
|
|
22721
22721
|
I === M.headers.length - 1 ? "text-end" : "",
|
|
22722
|
-
|
|
22722
|
+
ne ? "cursor-pointer select-none hover:bg-secondary/80" : ""
|
|
22723
22723
|
),
|
|
22724
|
-
onClick:
|
|
22724
|
+
onClick: ne ? E.column.getToggleSortingHandler() : void 0,
|
|
22725
22725
|
children: E.isPlaceholder ? null : /* @__PURE__ */ T("div", { className: R(
|
|
22726
22726
|
"flex items-center gap-1",
|
|
22727
22727
|
I === M.headers.length - 1 ? "justify-end" : "justify-start"
|
|
22728
22728
|
), children: [
|
|
22729
22729
|
Zu(E.column.columnDef.header, E.getContext()),
|
|
22730
|
-
|
|
22730
|
+
ne && /* @__PURE__ */ f("span", { children: j === "asc" ? /* @__PURE__ */ f(zy, { className: "h-4 w-4" }) : j === "desc" ? /* @__PURE__ */ f(Iy, { className: "h-4 w-4" }) : /* @__PURE__ */ f($y, { className: "h-4 w-4 opacity-50" }) })
|
|
22731
22731
|
] })
|
|
22732
22732
|
},
|
|
22733
22733
|
E.id
|
|
@@ -22844,18 +22844,18 @@ const JD = ({
|
|
|
22844
22844
|
function LA({
|
|
22845
22845
|
config: e
|
|
22846
22846
|
}) {
|
|
22847
|
-
var B, Y, N, F, q,
|
|
22847
|
+
var B, Y, N, F, q, X, oe, L, be, Se, Ue, Xe, Ge, Je, $e, Rt, kt;
|
|
22848
22848
|
const { service: t, devMode: n } = e, r = {
|
|
22849
22849
|
view: !0,
|
|
22850
22850
|
edit: !0,
|
|
22851
22851
|
delete: !0,
|
|
22852
22852
|
...e.display.actions
|
|
22853
|
-
}, { list: o, loading: i, update: a } = t.useStore(), [s, l] = Ie(null), [c, d] = Ie(!1), [u, m] = Ie(!1), [p, y] = Ie(!1), [g, b] = Ie({}), x = at(() => Object.keys(g).filter((
|
|
22854
|
-
var
|
|
22853
|
+
}, { list: o, loading: i, update: a } = t.useStore(), [s, l] = Ie(null), [c, d] = Ie(!1), [u, m] = Ie(!1), [p, y] = Ie(!1), [g, b] = Ie({}), x = at(() => Object.keys(g).filter((te) => g[te]), [g]), v = at(() => {
|
|
22854
|
+
var fe;
|
|
22855
22855
|
if (!Array.isArray(o)) return [];
|
|
22856
|
-
const
|
|
22856
|
+
const te = ((fe = e.display.bulkActions) == null ? void 0 : fe.identifierKey) || "id";
|
|
22857
22857
|
return o.filter((Ce) => {
|
|
22858
|
-
const W = String(Ce[
|
|
22858
|
+
const W = String(Ce[te]);
|
|
22859
22859
|
return !!g[W];
|
|
22860
22860
|
});
|
|
22861
22861
|
}, [o, g, (B = e.display.bulkActions) == null ? void 0 : B.identifierKey]), [w, S] = Ie({
|
|
@@ -22863,165 +22863,167 @@ function LA({
|
|
|
22863
22863
|
message: "",
|
|
22864
22864
|
resolver: null
|
|
22865
22865
|
}), [_, C] = Ie(() => {
|
|
22866
|
-
var
|
|
22867
|
-
if (((
|
|
22868
|
-
const
|
|
22869
|
-
if (
|
|
22870
|
-
return
|
|
22866
|
+
var te, fe, Ce, W;
|
|
22867
|
+
if (((te = e.display.pagination) == null ? void 0 : te.persistPagination) !== !1 && typeof ((fe = t.useStore) == null ? void 0 : fe.getState) == "function") {
|
|
22868
|
+
const K = t.useStore.getState();
|
|
22869
|
+
if (K.pagination)
|
|
22870
|
+
return K.pagination;
|
|
22871
22871
|
}
|
|
22872
22872
|
return {
|
|
22873
22873
|
pageIndex: 0,
|
|
22874
|
-
pageSize: ((
|
|
22874
|
+
pageSize: ((W = (Ce = e.display.pagination) == null ? void 0 : Ce.pageSizeOptions) == null ? void 0 : W[0]) ?? 10
|
|
22875
22875
|
};
|
|
22876
22876
|
});
|
|
22877
22877
|
Ze(() => {
|
|
22878
|
-
var
|
|
22879
|
-
((
|
|
22878
|
+
var te, fe;
|
|
22879
|
+
((te = e.display.pagination) == null ? void 0 : te.persistPagination) !== !1 && typeof ((fe = t.useStore) == null ? void 0 : fe.setState) == "function" && t.useStore.setState({ pagination: _ });
|
|
22880
22880
|
}, [_, (Y = e.display.pagination) == null ? void 0 : Y.persistPagination, t]);
|
|
22881
22881
|
const [k, O] = Ie(() => {
|
|
22882
|
-
|
|
22883
|
-
|
|
22884
|
-
|
|
22885
|
-
|
|
22882
|
+
var te;
|
|
22883
|
+
if (e.display.persistColumnVisibility !== !1 && typeof ((te = t.useStore) == null ? void 0 : te.getState) == "function") {
|
|
22884
|
+
const fe = t.useStore.getState();
|
|
22885
|
+
if (fe.columnVisibility)
|
|
22886
|
+
return fe.columnVisibility;
|
|
22886
22887
|
}
|
|
22887
22888
|
return {};
|
|
22888
22889
|
});
|
|
22889
22890
|
Ze(() => {
|
|
22890
|
-
|
|
22891
|
+
var te;
|
|
22892
|
+
e.display.persistColumnVisibility !== !1 && typeof ((te = t.useStore) == null ? void 0 : te.setState) == "function" && t.useStore.setState({ columnVisibility: k });
|
|
22891
22893
|
}, [k, e.display.persistColumnVisibility, t]);
|
|
22892
22894
|
const $ = at(
|
|
22893
|
-
() => s ? o.find((
|
|
22895
|
+
() => s ? o.find((te) => te.id === s) : null,
|
|
22894
22896
|
[s, o]
|
|
22895
|
-
), V = (!!s || c) && !u, U = (...
|
|
22896
|
-
n && console.log(`[DataManager:${e.title}]`, ...
|
|
22897
|
-
}, ee = Te((
|
|
22897
|
+
), V = (!!s || c) && !u, U = (...te) => {
|
|
22898
|
+
n && console.log(`[DataManager:${e.title}]`, ...te);
|
|
22899
|
+
}, ee = Te((te) => new Promise((fe) => {
|
|
22898
22900
|
S({
|
|
22899
22901
|
isOpen: !0,
|
|
22900
|
-
message:
|
|
22901
|
-
resolver:
|
|
22902
|
+
message: te,
|
|
22903
|
+
resolver: fe
|
|
22902
22904
|
});
|
|
22903
22905
|
}), []), Q = () => {
|
|
22904
|
-
w.resolver && w.resolver(!0), S((
|
|
22906
|
+
w.resolver && w.resolver(!0), S((te) => ({ ...te, isOpen: !1 }));
|
|
22905
22907
|
}, z = () => {
|
|
22906
|
-
w.resolver && w.resolver(!1), S((
|
|
22908
|
+
w.resolver && w.resolver(!1), S((te) => ({ ...te, isOpen: !1 }));
|
|
22907
22909
|
}, G = JSON.stringify(((F = (N = e == null ? void 0 : e.serviceConfig) == null ? void 0 : N.getAll) == null ? void 0 : F.params) ?? {}), A = Te(async () => {
|
|
22908
22910
|
try {
|
|
22909
22911
|
U("Fetching Data..."), a((Ce) => {
|
|
22910
22912
|
Ce.loading = !0;
|
|
22911
22913
|
});
|
|
22912
|
-
const
|
|
22914
|
+
const te = await t.getAll(JSON.parse(G)), fe = Array.isArray(te) ? te : (te == null ? void 0 : te.data) || [];
|
|
22913
22915
|
a((Ce) => {
|
|
22914
|
-
Ce.list =
|
|
22916
|
+
Ce.list = fe, Ce.loading = !1;
|
|
22915
22917
|
});
|
|
22916
|
-
} catch (
|
|
22917
|
-
console.error("Failed to load data",
|
|
22918
|
-
|
|
22918
|
+
} catch (te) {
|
|
22919
|
+
console.error("Failed to load data", te), a((fe) => {
|
|
22920
|
+
fe.loading = !1;
|
|
22919
22921
|
});
|
|
22920
22922
|
}
|
|
22921
22923
|
}, [t, G, a]);
|
|
22922
22924
|
Ze(() => {
|
|
22923
22925
|
A();
|
|
22924
22926
|
}, [A]);
|
|
22925
|
-
const
|
|
22927
|
+
const Z = (X = (q = e.form) == null ? void 0 : q.fields) == null ? void 0 : X.some((te) => te.type === "image"), J = async (te) => {
|
|
22926
22928
|
if (!e.display.disableCreate) {
|
|
22927
|
-
y(!0), U("Creating Item",
|
|
22929
|
+
y(!0), U("Creating Item", te);
|
|
22928
22930
|
try {
|
|
22929
|
-
let
|
|
22930
|
-
|
|
22931
|
+
let fe = {};
|
|
22932
|
+
Z && (fe = {
|
|
22931
22933
|
headers: { "Content-Type": "multipart/form-data" }
|
|
22932
22934
|
});
|
|
22933
|
-
let Ce =
|
|
22934
|
-
if (
|
|
22935
|
-
const
|
|
22936
|
-
Object.keys(
|
|
22937
|
-
const ce =
|
|
22938
|
-
Array.isArray(ce) ? ce.forEach((
|
|
22939
|
-
|
|
22940
|
-
}) : ce instanceof File ?
|
|
22941
|
-
}), Ce =
|
|
22935
|
+
let Ce = te;
|
|
22936
|
+
if (Z) {
|
|
22937
|
+
const K = new FormData();
|
|
22938
|
+
Object.keys(te).forEach((ve) => {
|
|
22939
|
+
const ce = te[ve];
|
|
22940
|
+
Array.isArray(ce) ? ce.forEach((me) => {
|
|
22941
|
+
me instanceof File ? K.append(`${ve}[]`, me) : me != null && typeof me != "object" && K.append(`${ve}[]`, String(me));
|
|
22942
|
+
}) : ce instanceof File ? K.append(ve, ce) : ce != null && K.append(ve, String(ce));
|
|
22943
|
+
}), Ce = K;
|
|
22942
22944
|
}
|
|
22943
|
-
const W = await t.create(Ce,
|
|
22944
|
-
W && (Ct.success(`${e.title} created successfully`), a((
|
|
22945
|
-
|
|
22945
|
+
const W = await t.create(Ce, fe);
|
|
22946
|
+
W && (Ct.success(`${e.title} created successfully`), a((K) => {
|
|
22947
|
+
K.list.unshift(W);
|
|
22946
22948
|
}), d(!1));
|
|
22947
|
-
} catch (
|
|
22948
|
-
U("Create Error",
|
|
22949
|
+
} catch (fe) {
|
|
22950
|
+
U("Create Error", fe);
|
|
22949
22951
|
}
|
|
22950
22952
|
y(!1);
|
|
22951
22953
|
}
|
|
22952
|
-
}, M = async (
|
|
22954
|
+
}, M = async (te) => {
|
|
22953
22955
|
if (!s) return;
|
|
22954
|
-
y(!0), U("Updating Item 123",
|
|
22955
|
-
let
|
|
22956
|
+
y(!0), U("Updating Item 123", te);
|
|
22957
|
+
let fe = te;
|
|
22956
22958
|
if (!!e.form.disablePartialUpdate && $) {
|
|
22957
22959
|
const W = {};
|
|
22958
|
-
let
|
|
22959
|
-
if (e.form.fields.forEach((
|
|
22960
|
-
const ce =
|
|
22961
|
-
|
|
22962
|
-
}), !
|
|
22960
|
+
let K = !1;
|
|
22961
|
+
if (e.form.fields.forEach((ve) => {
|
|
22962
|
+
const ce = ve.name, me = te[ce], ke = $[ce];
|
|
22963
|
+
me !== void 0 && me != ke && (W[ce] = me, K = !0);
|
|
22964
|
+
}), !K) {
|
|
22963
22965
|
Ct.info("No changes detected.");
|
|
22964
22966
|
return;
|
|
22965
22967
|
}
|
|
22966
|
-
|
|
22968
|
+
fe = W, U("Updating with Partial Payload", fe);
|
|
22967
22969
|
} else
|
|
22968
|
-
U("Updating with Full Payload (Legacy Mode)",
|
|
22970
|
+
U("Updating with Full Payload (Legacy Mode)", fe);
|
|
22969
22971
|
e.form.fields.forEach((W) => {
|
|
22970
22972
|
if (W.type === "image") {
|
|
22971
|
-
const
|
|
22972
|
-
Array.isArray(
|
|
22973
|
+
const K = W.name, ve = fe[K];
|
|
22974
|
+
Array.isArray(ve) && (fe[K] = ve.filter((ce) => ce instanceof File));
|
|
22973
22975
|
}
|
|
22974
22976
|
});
|
|
22975
22977
|
try {
|
|
22976
|
-
let W =
|
|
22977
|
-
if (
|
|
22978
|
-
|
|
22979
|
-
...
|
|
22978
|
+
let W = fe, K = {};
|
|
22979
|
+
if (Z) {
|
|
22980
|
+
K = {
|
|
22981
|
+
...K,
|
|
22980
22982
|
headers: { "Content-Type": "multipart/form-data" }
|
|
22981
22983
|
};
|
|
22982
22984
|
const ce = new FormData();
|
|
22983
|
-
Object.keys(
|
|
22984
|
-
const ke =
|
|
22985
|
+
Object.keys(fe).forEach((me) => {
|
|
22986
|
+
const ke = fe[me];
|
|
22985
22987
|
Array.isArray(ke) ? ke.forEach((je) => {
|
|
22986
22988
|
var rt, jt;
|
|
22987
|
-
je instanceof File ? ce.append(`${
|
|
22989
|
+
je instanceof File ? ce.append(`${me}[]`, je) : typeof je == "string" ? (me.includes("removed") || me === ((jt = (rt = e.form.fields.find((Jt) => {
|
|
22988
22990
|
var xt;
|
|
22989
|
-
return ((xt = Jt.removeImageOptions) == null ? void 0 : xt.removedImagesField) ===
|
|
22990
|
-
})) == null ? void 0 : rt.removeImageOptions) == null ? void 0 : jt.removedImagesField)) && ce.append(`${
|
|
22991
|
-
}) : ke instanceof File ? ce.append(
|
|
22991
|
+
return ((xt = Jt.removeImageOptions) == null ? void 0 : xt.removedImagesField) === me;
|
|
22992
|
+
})) == null ? void 0 : rt.removeImageOptions) == null ? void 0 : jt.removedImagesField)) && ce.append(`${me}[]`, je) : je != null && ce.append(`${me}[]`, String(je));
|
|
22993
|
+
}) : ke instanceof File ? ce.append(me, ke) : ke != null && ce.append(me, String(ke));
|
|
22992
22994
|
}), W = ce;
|
|
22993
22995
|
}
|
|
22994
|
-
const
|
|
22995
|
-
|
|
22996
|
-
const
|
|
22997
|
-
|
|
22996
|
+
const ve = await t.update(s, W, K);
|
|
22997
|
+
ve && (Ct.success(`${e.title} updated successfully`), a((ce) => {
|
|
22998
|
+
const me = ce.list.findIndex((ke) => ke.id === s);
|
|
22999
|
+
me !== -1 && (ce.list[me] = ve);
|
|
22998
23000
|
}), l(null));
|
|
22999
23001
|
} catch (W) {
|
|
23000
23002
|
U("Update Error", W);
|
|
23001
23003
|
}
|
|
23002
23004
|
y(!1);
|
|
23003
|
-
}, E = async (
|
|
23005
|
+
}, E = async (te) => {
|
|
23004
23006
|
var Ce, W;
|
|
23005
23007
|
if (await ee("Are you sure you want to delete this item? This action cannot be undone.")) {
|
|
23006
|
-
U("Deleting Item",
|
|
23008
|
+
U("Deleting Item", te);
|
|
23007
23009
|
try {
|
|
23008
|
-
await t.delete(
|
|
23010
|
+
await t.delete(te, {
|
|
23009
23011
|
data: ((W = (Ce = e.serviceConfig) == null ? void 0 : Ce.delete) == null ? void 0 : W.params) ?? {}
|
|
23010
|
-
}), Ct.success("Item deleted"), a((
|
|
23011
|
-
|
|
23012
|
-
}), s ===
|
|
23013
|
-
} catch (
|
|
23014
|
-
U("Delete Error",
|
|
23012
|
+
}), Ct.success("Item deleted"), a((K) => {
|
|
23013
|
+
K.list = K.list.filter((ve) => ve.id !== te);
|
|
23014
|
+
}), s === te && l(null);
|
|
23015
|
+
} catch (K) {
|
|
23016
|
+
U("Delete Error", K);
|
|
23015
23017
|
}
|
|
23016
23018
|
}
|
|
23017
23019
|
}, I = () => {
|
|
23018
23020
|
l(null), d(!1), m(!1);
|
|
23019
|
-
},
|
|
23020
|
-
var
|
|
23021
|
-
if (!((
|
|
23021
|
+
}, ne = at(() => {
|
|
23022
|
+
var fe;
|
|
23023
|
+
if (!((fe = e.display.bulkActions) != null && fe.enabled)) return [];
|
|
23022
23024
|
if (e.display.bulkActions.actions)
|
|
23023
23025
|
return e.display.bulkActions.actions;
|
|
23024
|
-
const
|
|
23026
|
+
const te = e.display.bulkActions.identifierKey || "id";
|
|
23025
23027
|
return [
|
|
23026
23028
|
{
|
|
23027
23029
|
label: "Delete Selected",
|
|
@@ -23032,25 +23034,25 @@ function LA({
|
|
|
23032
23034
|
`Are you sure you want to delete the selected ${Ce.length} items? This action cannot be undone.`
|
|
23033
23035
|
))
|
|
23034
23036
|
try {
|
|
23035
|
-
const
|
|
23036
|
-
Ce.map((
|
|
23037
|
-
var ce,
|
|
23038
|
-
return t.delete(
|
|
23039
|
-
data: ((
|
|
23037
|
+
const K = Promise.all(
|
|
23038
|
+
Ce.map((ve) => {
|
|
23039
|
+
var ce, me;
|
|
23040
|
+
return t.delete(ve, {
|
|
23041
|
+
data: ((me = (ce = e.serviceConfig) == null ? void 0 : ce.delete) == null ? void 0 : me.params) ?? {}
|
|
23040
23042
|
});
|
|
23041
23043
|
})
|
|
23042
23044
|
);
|
|
23043
|
-
Ct.promise(
|
|
23045
|
+
Ct.promise(K, {
|
|
23044
23046
|
loading: "Deleting selected items...",
|
|
23045
23047
|
success: "Selected items deleted successfully",
|
|
23046
23048
|
error: "Failed to delete some items"
|
|
23047
|
-
}), await
|
|
23048
|
-
|
|
23049
|
-
(ce) => !Ce.includes(String(ce[
|
|
23049
|
+
}), await K, a((ve) => {
|
|
23050
|
+
ve.list = (ve.list || []).filter(
|
|
23051
|
+
(ce) => !Ce.includes(String(ce[te]))
|
|
23050
23052
|
);
|
|
23051
23053
|
}), b({});
|
|
23052
|
-
} catch (
|
|
23053
|
-
U("Bulk Delete Error",
|
|
23054
|
+
} catch (K) {
|
|
23055
|
+
U("Bulk Delete Error", K);
|
|
23054
23056
|
}
|
|
23055
23057
|
}
|
|
23056
23058
|
}
|
|
@@ -23062,10 +23064,10 @@ function LA({
|
|
|
23062
23064
|
a,
|
|
23063
23065
|
ee
|
|
23064
23066
|
]), j = at(() => {
|
|
23065
|
-
var
|
|
23067
|
+
var fe;
|
|
23066
23068
|
if (e.display.type !== "table") return [];
|
|
23067
|
-
const
|
|
23068
|
-
return (
|
|
23069
|
+
const te = [...e.display.columns];
|
|
23070
|
+
return (fe = e.display.bulkActions) != null && fe.enabled && te.unshift({
|
|
23069
23071
|
id: "select",
|
|
23070
23072
|
header: ({ table: Ce }) => /* @__PURE__ */ f(
|
|
23071
23073
|
"input",
|
|
@@ -23089,7 +23091,7 @@ function LA({
|
|
|
23089
23091
|
),
|
|
23090
23092
|
enableSorting: !1,
|
|
23091
23093
|
enableHiding: !1
|
|
23092
|
-
}), (r != null && r.view || r != null && r.edit || r != null && r.delete) &&
|
|
23094
|
+
}), (r != null && r.view || r != null && r.edit || r != null && r.delete) && te.push({
|
|
23093
23095
|
id: "actions",
|
|
23094
23096
|
header: "Actions",
|
|
23095
23097
|
cell: ({ row: Ce }) => /* @__PURE__ */ T("div", { className: "flex items-center justify-end gap-2", children: [
|
|
@@ -23130,12 +23132,12 @@ function LA({
|
|
|
23130
23132
|
}
|
|
23131
23133
|
)
|
|
23132
23134
|
] })
|
|
23133
|
-
}),
|
|
23134
|
-
}, [e.display.columns, (be = e.display.bulkActions) == null ? void 0 : be.enabled, s]), H = (
|
|
23135
|
-
e.display.renderItem(
|
|
23135
|
+
}), te;
|
|
23136
|
+
}, [e.display.columns, (be = e.display.bulkActions) == null ? void 0 : be.enabled, s]), H = (te) => e.display.renderItem ? /* @__PURE__ */ T("div", { className: "group relative", children: [
|
|
23137
|
+
e.display.renderItem(te),
|
|
23136
23138
|
/* @__PURE__ */ T("div", { className: "absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity flex gap-1 bg-white/90 p-1 rounded-md shadow-sm border", children: [
|
|
23137
|
-
/* @__PURE__ */ f(We, { size: "icon", variant: "ghost", className: "h-6 w-6", onClick: () => l(
|
|
23138
|
-
/* @__PURE__ */ f(We, { size: "icon", variant: "ghost", className: "h-6 w-6 text-destructive", onClick: () => E(
|
|
23139
|
+
/* @__PURE__ */ f(We, { size: "icon", variant: "ghost", className: "h-6 w-6", onClick: () => l(te.id), children: /* @__PURE__ */ f(_c, { className: "h-3 w-3" }) }),
|
|
23140
|
+
/* @__PURE__ */ f(We, { size: "icon", variant: "ghost", className: "h-6 w-6 text-destructive", onClick: () => E(te.id), children: /* @__PURE__ */ f(ca, { className: "h-3 w-3" }) })
|
|
23139
23141
|
] })
|
|
23140
23142
|
] }) : null;
|
|
23141
23143
|
return /* @__PURE__ */ T("div", { className: "w-full flex flex-col overflow-hidden bg-sidebar rounded-2xl relative", children: [
|
|
@@ -23190,19 +23192,19 @@ function LA({
|
|
|
23190
23192
|
}
|
|
23191
23193
|
)
|
|
23192
23194
|
] }),
|
|
23193
|
-
/* @__PURE__ */ f("div", { className: "flex items-center gap-2", children:
|
|
23195
|
+
/* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: ne.map((te, fe) => /* @__PURE__ */ T(
|
|
23194
23196
|
We,
|
|
23195
23197
|
{
|
|
23196
|
-
variant:
|
|
23198
|
+
variant: te.variant || "outline",
|
|
23197
23199
|
size: "sm",
|
|
23198
|
-
onClick: () =>
|
|
23200
|
+
onClick: () => te.onClick(x, v),
|
|
23199
23201
|
className: "gap-2 cursor-pointer h-8",
|
|
23200
23202
|
children: [
|
|
23201
|
-
|
|
23202
|
-
|
|
23203
|
+
te.icon,
|
|
23204
|
+
te.label
|
|
23203
23205
|
]
|
|
23204
23206
|
},
|
|
23205
|
-
|
|
23207
|
+
fe
|
|
23206
23208
|
)) })
|
|
23207
23209
|
] }) }) }),
|
|
23208
23210
|
/* @__PURE__ */ f(
|