anarock-widgets 1.0.210 → 1.0.211
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/anarock-widgets.css +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.es.js +530 -440
- package/dist/index.umd.js +7 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4381,7 +4381,7 @@ function _m(e, t) {
|
|
|
4381
4381
|
varsWithDefaults: a
|
|
4382
4382
|
};
|
|
4383
4383
|
}
|
|
4384
|
-
function
|
|
4384
|
+
function e$(e, t = {}) {
|
|
4385
4385
|
const {
|
|
4386
4386
|
getSelector: n = b,
|
|
4387
4387
|
disableCssColorScheme: r,
|
|
@@ -4502,7 +4502,7 @@ function e5(e, t = {}) {
|
|
|
4502
4502
|
}
|
|
4503
4503
|
};
|
|
4504
4504
|
}
|
|
4505
|
-
function
|
|
4505
|
+
function t$(e) {
|
|
4506
4506
|
return function(n) {
|
|
4507
4507
|
return e === "media" ? (process.env.NODE_ENV !== "production" && n !== "light" && n !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`), `@media (prefers-color-scheme: ${n})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${n}"] &` : e === "class" ? `.${n} &` : e === "data" ? `[data-${n}] &` : `${e.replace("%s", n)} &` : "&";
|
|
4508
4508
|
};
|
|
@@ -4510,7 +4510,7 @@ function t5(e) {
|
|
|
4510
4510
|
const zc = {
|
|
4511
4511
|
black: "#000",
|
|
4512
4512
|
white: "#fff"
|
|
4513
|
-
},
|
|
4513
|
+
}, n$ = {
|
|
4514
4514
|
50: "#fafafa",
|
|
4515
4515
|
100: "#f5f5f5",
|
|
4516
4516
|
200: "#eeeeee",
|
|
@@ -4642,7 +4642,7 @@ function vw(e, t, n, r, i) {
|
|
|
4642
4642
|
const o = i.light || i, a = i.dark || i * 1.5;
|
|
4643
4643
|
t[n] || (t.hasOwnProperty(r) ? t[n] = t[r] : n === "light" ? t.light = `color-mix(in ${e}, ${t.main}, #fff ${(o * 100).toFixed(0)}%)` : n === "dark" && (t.dark = `color-mix(in ${e}, ${t.main}, #000 ${(a * 100).toFixed(0)}%)`));
|
|
4644
4644
|
}
|
|
4645
|
-
function
|
|
4645
|
+
function r$(e = "light") {
|
|
4646
4646
|
return e === "dark" ? {
|
|
4647
4647
|
main: Os[200],
|
|
4648
4648
|
light: Os[50],
|
|
@@ -4653,7 +4653,7 @@ function r5(e = "light") {
|
|
|
4653
4653
|
dark: Os[800]
|
|
4654
4654
|
};
|
|
4655
4655
|
}
|
|
4656
|
-
function
|
|
4656
|
+
function i$(e = "light") {
|
|
4657
4657
|
return e === "dark" ? {
|
|
4658
4658
|
main: _s[200],
|
|
4659
4659
|
light: _s[50],
|
|
@@ -4664,7 +4664,7 @@ function i5(e = "light") {
|
|
|
4664
4664
|
dark: _s[700]
|
|
4665
4665
|
};
|
|
4666
4666
|
}
|
|
4667
|
-
function
|
|
4667
|
+
function o$(e = "light") {
|
|
4668
4668
|
return e === "dark" ? {
|
|
4669
4669
|
main: Ss[500],
|
|
4670
4670
|
light: Ss[300],
|
|
@@ -4675,7 +4675,7 @@ function o5(e = "light") {
|
|
|
4675
4675
|
dark: Ss[800]
|
|
4676
4676
|
};
|
|
4677
4677
|
}
|
|
4678
|
-
function
|
|
4678
|
+
function a$(e = "light") {
|
|
4679
4679
|
return e === "dark" ? {
|
|
4680
4680
|
main: Es[400],
|
|
4681
4681
|
light: Es[300],
|
|
@@ -4686,7 +4686,7 @@ function a5(e = "light") {
|
|
|
4686
4686
|
dark: Es[900]
|
|
4687
4687
|
};
|
|
4688
4688
|
}
|
|
4689
|
-
function
|
|
4689
|
+
function s$(e = "light") {
|
|
4690
4690
|
return e === "dark" ? {
|
|
4691
4691
|
main: Ps[400],
|
|
4692
4692
|
light: Ps[300],
|
|
@@ -4697,7 +4697,7 @@ function s5(e = "light") {
|
|
|
4697
4697
|
dark: Ps[900]
|
|
4698
4698
|
};
|
|
4699
4699
|
}
|
|
4700
|
-
function
|
|
4700
|
+
function l$(e = "light") {
|
|
4701
4701
|
return e === "dark" ? {
|
|
4702
4702
|
main: Ul[400],
|
|
4703
4703
|
light: Ul[300],
|
|
@@ -4709,7 +4709,7 @@ function l5(e = "light") {
|
|
|
4709
4709
|
dark: Ul[900]
|
|
4710
4710
|
};
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4712
|
+
function c$(e) {
|
|
4713
4713
|
return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
|
|
4714
4714
|
}
|
|
4715
4715
|
function bb(e) {
|
|
@@ -4719,10 +4719,10 @@ function bb(e) {
|
|
|
4719
4719
|
tonalOffset: r = 0.2,
|
|
4720
4720
|
colorSpace: i,
|
|
4721
4721
|
...o
|
|
4722
|
-
} = e, a = e.primary ||
|
|
4722
|
+
} = e, a = e.primary || r$(t), s = e.secondary || i$(t), l = e.error || o$(t), c = e.info || a$(t), u = e.success || s$(t), d = e.warning || l$(t);
|
|
4723
4723
|
function f(g) {
|
|
4724
4724
|
if (i)
|
|
4725
|
-
return
|
|
4725
|
+
return c$(g);
|
|
4726
4726
|
const b = dw(g, Iv.text.primary) >= n ? Iv.text.primary : fC.text.primary;
|
|
4727
4727
|
if (process.env.NODE_ENV !== "production") {
|
|
4728
4728
|
const S = dw(g, b);
|
|
@@ -4803,7 +4803,7 @@ const theme2 = createTheme({ palette: {
|
|
|
4803
4803
|
name: "success"
|
|
4804
4804
|
}),
|
|
4805
4805
|
// The grey colors.
|
|
4806
|
-
grey:
|
|
4806
|
+
grey: n$,
|
|
4807
4807
|
// Used by `getContrastText()` to maximize the contrast between
|
|
4808
4808
|
// the background and the text.
|
|
4809
4809
|
contrastThreshold: n,
|
|
@@ -4819,14 +4819,14 @@ const theme2 = createTheme({ palette: {
|
|
|
4819
4819
|
...h
|
|
4820
4820
|
}, o);
|
|
4821
4821
|
}
|
|
4822
|
-
function
|
|
4822
|
+
function u$(e) {
|
|
4823
4823
|
const t = {};
|
|
4824
4824
|
return Object.entries(e).forEach((r) => {
|
|
4825
4825
|
const [i, o] = r;
|
|
4826
4826
|
typeof o == "object" && (t[i] = `${o.fontStyle ? `${o.fontStyle} ` : ""}${o.fontVariant ? `${o.fontVariant} ` : ""}${o.fontWeight ? `${o.fontWeight} ` : ""}${o.fontStretch ? `${o.fontStretch} ` : ""}${o.fontSize || ""}${o.lineHeight ? `/${o.lineHeight} ` : ""}${o.fontFamily || ""}`);
|
|
4827
4827
|
}), t;
|
|
4828
4828
|
}
|
|
4829
|
-
function
|
|
4829
|
+
function d$(e, t) {
|
|
4830
4830
|
return {
|
|
4831
4831
|
toolbar: {
|
|
4832
4832
|
minHeight: 56,
|
|
@@ -4842,13 +4842,13 @@ function d5(e, t) {
|
|
|
4842
4842
|
...t
|
|
4843
4843
|
};
|
|
4844
4844
|
}
|
|
4845
|
-
function
|
|
4845
|
+
function f$(e) {
|
|
4846
4846
|
return Math.round(e * 1e5) / 1e5;
|
|
4847
4847
|
}
|
|
4848
4848
|
const yw = {
|
|
4849
4849
|
textTransform: "uppercase"
|
|
4850
4850
|
}, bw = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
4851
|
-
function
|
|
4851
|
+
function p$(e, t) {
|
|
4852
4852
|
const {
|
|
4853
4853
|
fontFamily: n = bw,
|
|
4854
4854
|
// The default font size of the Material Specification.
|
|
@@ -4876,7 +4876,7 @@ function p5(e, t) {
|
|
|
4876
4876
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
4877
4877
|
// across font-families can cause issues with the kerning.
|
|
4878
4878
|
...n === bw ? {
|
|
4879
|
-
letterSpacing: `${
|
|
4879
|
+
letterSpacing: `${f$(w / b)}em`
|
|
4880
4880
|
} : {},
|
|
4881
4881
|
...x,
|
|
4882
4882
|
...c
|
|
@@ -4918,11 +4918,11 @@ function p5(e, t) {
|
|
|
4918
4918
|
// No need to clone deep
|
|
4919
4919
|
});
|
|
4920
4920
|
}
|
|
4921
|
-
const
|
|
4921
|
+
const h$ = 0.2, m$ = 0.14, g$ = 0.12;
|
|
4922
4922
|
function wt(...e) {
|
|
4923
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
4923
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${h$})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${m$})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${g$})`].join(",");
|
|
4924
4924
|
}
|
|
4925
|
-
const
|
|
4925
|
+
const v$ = ["none", wt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), wt(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), wt(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), wt(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), wt(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), wt(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), wt(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), wt(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), wt(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), wt(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), wt(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), wt(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), wt(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), wt(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), wt(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), wt(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), wt(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), wt(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), wt(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), wt(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), wt(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), wt(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), wt(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), wt(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], y$ = {
|
|
4926
4926
|
// This is the most common easing curve.
|
|
4927
4927
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
4928
4928
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -4932,7 +4932,7 @@ const v5 = ["none", wt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), wt(0, 3, 1, -2, 0,
|
|
|
4932
4932
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
4933
4933
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
4934
4934
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
4935
|
-
},
|
|
4935
|
+
}, b$ = {
|
|
4936
4936
|
shortest: 150,
|
|
4937
4937
|
shorter: 200,
|
|
4938
4938
|
short: 250,
|
|
@@ -4948,22 +4948,22 @@ const v5 = ["none", wt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), wt(0, 3, 1, -2, 0,
|
|
|
4948
4948
|
function xw(e) {
|
|
4949
4949
|
return `${Math.round(e)}ms`;
|
|
4950
4950
|
}
|
|
4951
|
-
function
|
|
4951
|
+
function x$(e) {
|
|
4952
4952
|
if (!e)
|
|
4953
4953
|
return 0;
|
|
4954
4954
|
const t = e / 36;
|
|
4955
4955
|
return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
|
|
4956
4956
|
}
|
|
4957
|
-
function
|
|
4957
|
+
function w$(e) {
|
|
4958
4958
|
const t = {
|
|
4959
|
-
...
|
|
4959
|
+
...y$,
|
|
4960
4960
|
...e.easing
|
|
4961
4961
|
}, n = {
|
|
4962
|
-
...
|
|
4962
|
+
...b$,
|
|
4963
4963
|
...e.duration
|
|
4964
4964
|
};
|
|
4965
4965
|
return {
|
|
4966
|
-
getAutoHeightDuration:
|
|
4966
|
+
getAutoHeightDuration: x$,
|
|
4967
4967
|
create: (i = ["all"], o = {}) => {
|
|
4968
4968
|
const {
|
|
4969
4969
|
duration: a = n.standard,
|
|
@@ -4983,7 +4983,7 @@ function w5(e) {
|
|
|
4983
4983
|
duration: n
|
|
4984
4984
|
};
|
|
4985
4985
|
}
|
|
4986
|
-
const
|
|
4986
|
+
const _$ = {
|
|
4987
4987
|
mobileStepper: 1e3,
|
|
4988
4988
|
fab: 1050,
|
|
4989
4989
|
speedDial: 1050,
|
|
@@ -4993,7 +4993,7 @@ const _5 = {
|
|
|
4993
4993
|
snackbar: 1400,
|
|
4994
4994
|
tooltip: 1500
|
|
4995
4995
|
};
|
|
4996
|
-
function
|
|
4996
|
+
function S$(e) {
|
|
4997
4997
|
return eo(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
4998
4998
|
}
|
|
4999
4999
|
function hC(e = {}) {
|
|
@@ -5004,7 +5004,7 @@ function hC(e = {}) {
|
|
|
5004
5004
|
const i = Object.entries(r);
|
|
5005
5005
|
for (let o = 0; o < i.length; o++) {
|
|
5006
5006
|
const [a, s] = i[o];
|
|
5007
|
-
!
|
|
5007
|
+
!S$(s) || a.startsWith("unstable_") ? delete r[a] : eo(s) && (r[a] = {
|
|
5008
5008
|
...s
|
|
5009
5009
|
}, n(r[a]));
|
|
5010
5010
|
}
|
|
@@ -5021,7 +5021,7 @@ export default theme;`;
|
|
|
5021
5021
|
function ww(e) {
|
|
5022
5022
|
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
5023
5023
|
}
|
|
5024
|
-
const
|
|
5024
|
+
const O$ = (e) => {
|
|
5025
5025
|
if (!Number.isNaN(+e))
|
|
5026
5026
|
return +e;
|
|
5027
5027
|
const t = e.match(/\d*\.?\d+/g);
|
|
@@ -5032,11 +5032,11 @@ const O5 = (e) => {
|
|
|
5032
5032
|
n += +t[r];
|
|
5033
5033
|
return n;
|
|
5034
5034
|
};
|
|
5035
|
-
function
|
|
5035
|
+
function E$(e) {
|
|
5036
5036
|
Object.assign(e, {
|
|
5037
5037
|
alpha(t, n) {
|
|
5038
5038
|
const r = this || e;
|
|
5039
|
-
return r.colorSpace ? `oklch(from ${t} l c h / ${typeof n == "string" ? `calc(${n})` : n})` : r.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof n == "string" ? `calc(${n})` : n})` : Sf(t,
|
|
5039
|
+
return r.colorSpace ? `oklch(from ${t} l c h / ${typeof n == "string" ? `calc(${n})` : n})` : r.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof n == "string" ? `calc(${n})` : n})` : Sf(t, O$(n));
|
|
5040
5040
|
},
|
|
5041
5041
|
lighten(t, n) {
|
|
5042
5042
|
const r = this || e;
|
|
@@ -5069,14 +5069,14 @@ function Lv(e = {}, ...t) {
|
|
|
5069
5069
|
colorSpace: c
|
|
5070
5070
|
}), f = gb(e);
|
|
5071
5071
|
let p = Mn(f, {
|
|
5072
|
-
mixins:
|
|
5072
|
+
mixins: d$(f.breakpoints, r),
|
|
5073
5073
|
palette: d,
|
|
5074
5074
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
5075
|
-
shadows:
|
|
5076
|
-
typography:
|
|
5077
|
-
transitions:
|
|
5075
|
+
shadows: v$.slice(),
|
|
5076
|
+
typography: p$(d, s),
|
|
5077
|
+
transitions: w$(a),
|
|
5078
5078
|
zIndex: {
|
|
5079
|
-
...
|
|
5079
|
+
..._$
|
|
5080
5080
|
}
|
|
5081
5081
|
});
|
|
5082
5082
|
if (p = Mn(p, u), p = t.reduce((h, m) => Mn(h, m), p), process.env.NODE_ENV !== "production") {
|
|
@@ -5111,13 +5111,13 @@ function Lv(e = {}, ...t) {
|
|
|
5111
5111
|
sx: m,
|
|
5112
5112
|
theme: this
|
|
5113
5113
|
});
|
|
5114
|
-
}, p.toRuntimeSource = hC,
|
|
5114
|
+
}, p.toRuntimeSource = hC, E$(p), p;
|
|
5115
5115
|
}
|
|
5116
5116
|
function Fv(e) {
|
|
5117
5117
|
let t;
|
|
5118
5118
|
return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
5119
5119
|
}
|
|
5120
|
-
const
|
|
5120
|
+
const P$ = [...Array(25)].map((e, t) => {
|
|
5121
5121
|
if (t === 0)
|
|
5122
5122
|
return "none";
|
|
5123
5123
|
const n = Fv(t);
|
|
@@ -5132,9 +5132,9 @@ function mC(e) {
|
|
|
5132
5132
|
};
|
|
5133
5133
|
}
|
|
5134
5134
|
function gC(e) {
|
|
5135
|
-
return e === "dark" ?
|
|
5135
|
+
return e === "dark" ? P$ : [];
|
|
5136
5136
|
}
|
|
5137
|
-
function
|
|
5137
|
+
function k$(e) {
|
|
5138
5138
|
const {
|
|
5139
5139
|
palette: t = {
|
|
5140
5140
|
mode: "light"
|
|
@@ -5158,17 +5158,17 @@ function k5(e) {
|
|
|
5158
5158
|
...o
|
|
5159
5159
|
};
|
|
5160
5160
|
}
|
|
5161
|
-
function
|
|
5161
|
+
function C$(e) {
|
|
5162
5162
|
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
5163
5163
|
e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
5164
5164
|
}
|
|
5165
|
-
const
|
|
5165
|
+
const D$ = (e) => [...[...Array(25)].map((t, n) => `--${e ? `${e}-` : ""}overlays-${n}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], A$ = (e) => (t, n) => {
|
|
5166
5166
|
const r = e.rootSelector || ":root", i = e.colorSchemeSelector;
|
|
5167
5167
|
let o = i;
|
|
5168
5168
|
if (i === "class" && (o = ".%s"), i === "data" && (o = "[data-%s]"), i?.startsWith("data-") && !i.includes("%s") && (o = `[${i}="%s"]`), e.defaultColorScheme === t) {
|
|
5169
5169
|
if (t === "dark") {
|
|
5170
5170
|
const a = {};
|
|
5171
|
-
return
|
|
5171
|
+
return D$(e.cssVarPrefix).forEach((s) => {
|
|
5172
5172
|
a[s] = n[s], delete n[s];
|
|
5173
5173
|
}), o === "media" ? {
|
|
5174
5174
|
[r]: n,
|
|
@@ -5199,7 +5199,7 @@ const D5 = (e) => [...[...Array(25)].map((t, n) => `--${e ? `${e}-` : ""}overlay
|
|
|
5199
5199
|
}
|
|
5200
5200
|
return r;
|
|
5201
5201
|
};
|
|
5202
|
-
function
|
|
5202
|
+
function T$(e, t) {
|
|
5203
5203
|
t.forEach((n) => {
|
|
5204
5204
|
e[n] || (e[n] = {});
|
|
5205
5205
|
});
|
|
@@ -5214,7 +5214,7 @@ function Ui(e, t) {
|
|
|
5214
5214
|
`${t}Channel` in e || (e[`${t}Channel`] = gc(vc(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
5215
5215
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
5216
5216
|
}
|
|
5217
|
-
function
|
|
5217
|
+
function M$(e) {
|
|
5218
5218
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
5219
5219
|
}
|
|
5220
5220
|
const di = (e) => {
|
|
@@ -5222,14 +5222,14 @@ const di = (e) => {
|
|
|
5222
5222
|
return e();
|
|
5223
5223
|
} catch {
|
|
5224
5224
|
}
|
|
5225
|
-
},
|
|
5225
|
+
}, N$ = (e = "mui") => QF(e);
|
|
5226
5226
|
function Sm(e, t, n, r, i) {
|
|
5227
5227
|
if (!n)
|
|
5228
5228
|
return;
|
|
5229
5229
|
n = n === !0 ? {} : n;
|
|
5230
5230
|
const o = i === "dark" ? "dark" : "light";
|
|
5231
5231
|
if (!r) {
|
|
5232
|
-
t[i] =
|
|
5232
|
+
t[i] = k$({
|
|
5233
5233
|
...n,
|
|
5234
5234
|
palette: {
|
|
5235
5235
|
mode: o,
|
|
@@ -5260,7 +5260,7 @@ function Sm(e, t, n, r, i) {
|
|
|
5260
5260
|
overlays: n?.overlays || gC(o)
|
|
5261
5261
|
}, s;
|
|
5262
5262
|
}
|
|
5263
|
-
function
|
|
5263
|
+
function j$(e = {}, ...t) {
|
|
5264
5264
|
const {
|
|
5265
5265
|
colorSchemes: n = {
|
|
5266
5266
|
light: !0
|
|
@@ -5269,11 +5269,11 @@ function j5(e = {}, ...t) {
|
|
|
5269
5269
|
disableCssColorScheme: i = !1,
|
|
5270
5270
|
cssVarPrefix: o = "mui",
|
|
5271
5271
|
nativeColor: a = !1,
|
|
5272
|
-
shouldSkipGeneratingVar: s =
|
|
5272
|
+
shouldSkipGeneratingVar: s = C$,
|
|
5273
5273
|
colorSchemeSelector: l = n.light && n.dark ? "media" : void 0,
|
|
5274
5274
|
rootSelector: c = ":root",
|
|
5275
5275
|
...u
|
|
5276
|
-
} = e, d = Object.keys(n)[0], f = r || (n.light && d !== "light" ? "light" : d), p =
|
|
5276
|
+
} = e, d = Object.keys(n)[0], f = r || (n.light && d !== "light" ? "light" : d), p = N$(o), {
|
|
5277
5277
|
[f]: h,
|
|
5278
5278
|
light: m,
|
|
5279
5279
|
dark: g,
|
|
@@ -5297,10 +5297,10 @@ function j5(e = {}, ...t) {
|
|
|
5297
5297
|
getCssVar: p,
|
|
5298
5298
|
colorSchemes: S,
|
|
5299
5299
|
font: {
|
|
5300
|
-
...
|
|
5300
|
+
...u$(_.typography),
|
|
5301
5301
|
..._.font
|
|
5302
5302
|
},
|
|
5303
|
-
spacing:
|
|
5303
|
+
spacing: M$(u.spacing)
|
|
5304
5304
|
};
|
|
5305
5305
|
Object.keys(E.colorSchemes).forEach((D) => {
|
|
5306
5306
|
const P = E.colorSchemes[D].palette, M = (R) => {
|
|
@@ -5315,7 +5315,7 @@ function j5(e = {}, ...t) {
|
|
|
5315
5315
|
}
|
|
5316
5316
|
return R(I, F);
|
|
5317
5317
|
}
|
|
5318
|
-
if (
|
|
5318
|
+
if (T$(P, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), P.mode === "light") {
|
|
5319
5319
|
Y(P.Alert, "errorColor", T(Ge, P.error.light, 0.6)), Y(P.Alert, "infoColor", T(Ge, P.info.light, 0.6)), Y(P.Alert, "successColor", T(Ge, P.success.light, 0.6)), Y(P.Alert, "warningColor", T(Ge, P.warning.light, 0.6)), Y(P.Alert, "errorFilledBg", M("palette-error-main")), Y(P.Alert, "infoFilledBg", M("palette-info-main")), Y(P.Alert, "successFilledBg", M("palette-success-main")), Y(P.Alert, "warningFilledBg", M("palette-warning-main")), Y(P.Alert, "errorFilledColor", di(() => P.getContrastText(P.error.main))), Y(P.Alert, "infoFilledColor", di(() => P.getContrastText(P.info.main))), Y(P.Alert, "successFilledColor", di(() => P.getContrastText(P.success.main))), Y(P.Alert, "warningFilledColor", di(() => P.getContrastText(P.warning.main))), Y(P.Alert, "errorStandardBg", T(Xe, P.error.light, 0.9)), Y(P.Alert, "infoStandardBg", T(Xe, P.info.light, 0.9)), Y(P.Alert, "successStandardBg", T(Xe, P.success.light, 0.9)), Y(P.Alert, "warningStandardBg", T(Xe, P.warning.light, 0.9)), Y(P.Alert, "errorIconColor", M("palette-error-main")), Y(P.Alert, "infoIconColor", M("palette-info-main")), Y(P.Alert, "successIconColor", M("palette-success-main")), Y(P.Alert, "warningIconColor", M("palette-warning-main")), Y(P.AppBar, "defaultBg", M("palette-grey-100")), Y(P.Avatar, "defaultBg", M("palette-grey-400")), Y(P.Button, "inheritContainedBg", M("palette-grey-300")), Y(P.Button, "inheritContainedHoverBg", M("palette-grey-A100")), Y(P.Chip, "defaultBorder", M("palette-grey-400")), Y(P.Chip, "defaultAvatarColor", M("palette-grey-700")), Y(P.Chip, "defaultIconColor", M("palette-grey-700")), Y(P.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), Y(P.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), Y(P.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), Y(P.LinearProgress, "primaryBg", T(Xe, P.primary.main, 0.62)), Y(P.LinearProgress, "secondaryBg", T(Xe, P.secondary.main, 0.62)), Y(P.LinearProgress, "errorBg", T(Xe, P.error.main, 0.62)), Y(P.LinearProgress, "infoBg", T(Xe, P.info.main, 0.62)), Y(P.LinearProgress, "successBg", T(Xe, P.success.main, 0.62)), Y(P.LinearProgress, "warningBg", T(Xe, P.warning.main, 0.62)), Y(P.Skeleton, "bg", x ? T(wa, P.text.primary, 0.11) : `rgba(${M("palette-text-primaryChannel")} / 0.11)`), Y(P.Slider, "primaryTrack", T(Xe, P.primary.main, 0.62)), Y(P.Slider, "secondaryTrack", T(Xe, P.secondary.main, 0.62)), Y(P.Slider, "errorTrack", T(Xe, P.error.main, 0.62)), Y(P.Slider, "infoTrack", T(Xe, P.info.main, 0.62)), Y(P.Slider, "successTrack", T(Xe, P.success.main, 0.62)), Y(P.Slider, "warningTrack", T(Xe, P.warning.main, 0.62));
|
|
5320
5320
|
const R = x ? T(Ge, P.background.default, 0.6825) : ad(P.background.default, 0.8);
|
|
5321
5321
|
Y(P.SnackbarContent, "bg", R), Y(P.SnackbarContent, "color", di(() => x ? Iv.text.primary : P.getContrastText(R))), Y(P.SpeedDialAction, "fabHoverBg", ad(P.background.paper, 0.15)), Y(P.StepConnector, "border", M("palette-grey-400")), Y(P.StepContent, "border", M("palette-grey-400")), Y(P.Switch, "defaultColor", M("palette-common-white")), Y(P.Switch, "defaultDisabledColor", M("palette-grey-100")), Y(P.Switch, "primaryDisabledColor", T(Xe, P.primary.main, 0.62)), Y(P.Switch, "secondaryDisabledColor", T(Xe, P.secondary.main, 0.62)), Y(P.Switch, "errorDisabledColor", T(Xe, P.error.main, 0.62)), Y(P.Switch, "infoDisabledColor", T(Xe, P.info.main, 0.62)), Y(P.Switch, "successDisabledColor", T(Xe, P.success.main, 0.62)), Y(P.Switch, "warningDisabledColor", T(Xe, P.warning.main, 0.62)), Y(P.TableCell, "border", T(Xe, T(wa, P.divider, 1), 0.88)), Y(P.Tooltip, "bg", T(wa, P.grey[700], 0.92));
|
|
@@ -5334,18 +5334,18 @@ function j5(e = {}, ...t) {
|
|
|
5334
5334
|
prefix: o,
|
|
5335
5335
|
disableCssColorScheme: i,
|
|
5336
5336
|
shouldSkipGeneratingVar: s,
|
|
5337
|
-
getSelector:
|
|
5337
|
+
getSelector: A$(E),
|
|
5338
5338
|
enableContrastVars: a
|
|
5339
5339
|
}, {
|
|
5340
5340
|
vars: C,
|
|
5341
5341
|
generateThemeVars: A,
|
|
5342
5342
|
generateStyleSheets: N
|
|
5343
|
-
} =
|
|
5343
|
+
} = e$(E, k);
|
|
5344
5344
|
return E.vars = C, Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([D, P]) => {
|
|
5345
5345
|
E[D] = P;
|
|
5346
5346
|
}), E.generateThemeVars = A, E.generateStyleSheets = N, E.generateSpacing = function() {
|
|
5347
5347
|
return tC(u.spacing, sb(this));
|
|
5348
|
-
}, E.getColorSchemeSelector =
|
|
5348
|
+
}, E.getColorSchemeSelector = t$(l), E.spacing = E.generateSpacing(), E.shouldSkipGeneratingVar = s, E.unstable_sxConfig = {
|
|
5349
5349
|
...qp,
|
|
5350
5350
|
...u?.unstable_sxConfig
|
|
5351
5351
|
}, E.unstable_sx = function(P) {
|
|
@@ -5365,7 +5365,7 @@ function _w(e, t, n) {
|
|
|
5365
5365
|
// cast type to skip module augmentation test
|
|
5366
5366
|
});
|
|
5367
5367
|
}
|
|
5368
|
-
function
|
|
5368
|
+
function R$(e = {}, ...t) {
|
|
5369
5369
|
const {
|
|
5370
5370
|
palette: n,
|
|
5371
5371
|
cssVariables: r = !1,
|
|
@@ -5402,14 +5402,14 @@ function R5(e = {}, ...t) {
|
|
|
5402
5402
|
palette: d.palette
|
|
5403
5403
|
}, _w(d, "light", c.light)), d;
|
|
5404
5404
|
}
|
|
5405
|
-
return !n && !("light" in c) && s === "light" && (c.light = !0),
|
|
5405
|
+
return !n && !("light" in c) && s === "light" && (c.light = !0), j$({
|
|
5406
5406
|
...a,
|
|
5407
5407
|
colorSchemes: c,
|
|
5408
5408
|
defaultColorScheme: s,
|
|
5409
5409
|
...typeof r != "boolean" && r
|
|
5410
5410
|
}, ...t);
|
|
5411
5411
|
}
|
|
5412
|
-
const xb =
|
|
5412
|
+
const xb = R$(), wb = "$$material";
|
|
5413
5413
|
function rh() {
|
|
5414
5414
|
const e = nC(xb);
|
|
5415
5415
|
return process.env.NODE_ENV !== "production" && O.useDebugValue(e), e[wb] || e;
|
|
@@ -5439,7 +5439,7 @@ const Eo = (e) => yC(e) && e !== "classes", Ae = jF({
|
|
|
5439
5439
|
defaultTheme: xb,
|
|
5440
5440
|
rootShouldForwardProp: Eo
|
|
5441
5441
|
});
|
|
5442
|
-
function
|
|
5442
|
+
function I$(e) {
|
|
5443
5443
|
return function(n) {
|
|
5444
5444
|
return (
|
|
5445
5445
|
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
|
|
@@ -5457,11 +5457,11 @@ process.env.NODE_ENV !== "production" && (y.node, y.object.isRequired);
|
|
|
5457
5457
|
function ur(e) {
|
|
5458
5458
|
return KF(e);
|
|
5459
5459
|
}
|
|
5460
|
-
function
|
|
5460
|
+
function L$(e) {
|
|
5461
5461
|
return bn("MuiSvgIcon", e);
|
|
5462
5462
|
}
|
|
5463
5463
|
Hn("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
5464
|
-
const
|
|
5464
|
+
const F$ = (e) => {
|
|
5465
5465
|
const {
|
|
5466
5466
|
color: t,
|
|
5467
5467
|
fontSize: n,
|
|
@@ -5469,8 +5469,8 @@ const F5 = (e) => {
|
|
|
5469
5469
|
} = e, i = {
|
|
5470
5470
|
root: ["root", t !== "inherit" && `color${gn(t)}`, `fontSize${gn(n)}`]
|
|
5471
5471
|
};
|
|
5472
|
-
return In(i,
|
|
5473
|
-
},
|
|
5472
|
+
return In(i, L$, r);
|
|
5473
|
+
}, $$ = Ae("svg", {
|
|
5474
5474
|
name: "MuiSvgIcon",
|
|
5475
5475
|
slot: "Root",
|
|
5476
5476
|
overridesResolver: (e, t) => {
|
|
@@ -5591,8 +5591,8 @@ const F5 = (e) => {
|
|
|
5591
5591
|
hasSvgAsChild: h
|
|
5592
5592
|
}, g = {};
|
|
5593
5593
|
u || (g.viewBox = f);
|
|
5594
|
-
const b =
|
|
5595
|
-
return /* @__PURE__ */ v.jsxs(
|
|
5594
|
+
const b = F$(m);
|
|
5595
|
+
return /* @__PURE__ */ v.jsxs($$, {
|
|
5596
5596
|
as: s,
|
|
5597
5597
|
className: oe(b.root, o),
|
|
5598
5598
|
focusable: "false",
|
|
@@ -5773,17 +5773,17 @@ function Vn(...e) {
|
|
|
5773
5773
|
t.current && (t.current(), t.current = void 0), r != null && (t.current = n(r));
|
|
5774
5774
|
}, e);
|
|
5775
5775
|
}
|
|
5776
|
-
function
|
|
5776
|
+
function B$(e, t) {
|
|
5777
5777
|
const n = e.charCodeAt(2);
|
|
5778
5778
|
return e[0] === "o" && e[1] === "n" && n >= 65 && n <= 90 && typeof t == "function";
|
|
5779
5779
|
}
|
|
5780
|
-
function
|
|
5780
|
+
function W$(e, t) {
|
|
5781
5781
|
if (!e)
|
|
5782
5782
|
return t;
|
|
5783
5783
|
function n(a, s) {
|
|
5784
5784
|
const l = {};
|
|
5785
5785
|
return Object.keys(s).forEach((c) => {
|
|
5786
|
-
|
|
5786
|
+
B$(c, s[c]) && typeof a[c] == "function" && (l[c] = (...u) => {
|
|
5787
5787
|
a[c](...u), s[c](...u);
|
|
5788
5788
|
});
|
|
5789
5789
|
}), l;
|
|
@@ -5831,17 +5831,17 @@ function W5(e, t) {
|
|
|
5831
5831
|
}
|
|
5832
5832
|
};
|
|
5833
5833
|
}
|
|
5834
|
-
const
|
|
5834
|
+
const z$ = Ol(/* @__PURE__ */ v.jsx("path", {
|
|
5835
5835
|
d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"
|
|
5836
5836
|
}), "CalendarTodayOutlined"), _u = Ol(/* @__PURE__ */ v.jsx("path", {
|
|
5837
5837
|
d: "M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"
|
|
5838
|
-
}), "DescriptionOutlined"),
|
|
5838
|
+
}), "DescriptionOutlined"), V$ = Ol(/* @__PURE__ */ v.jsx("path", {
|
|
5839
5839
|
d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"
|
|
5840
|
-
}), "FileDownloadOutlined"),
|
|
5840
|
+
}), "FileDownloadOutlined"), H$ = Ol(/* @__PURE__ */ v.jsx("path", {
|
|
5841
5841
|
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
5842
5842
|
}), "KeyboardArrowDown"), Xr = Ol(/* @__PURE__ */ v.jsx("path", {
|
|
5843
5843
|
d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"
|
|
5844
|
-
}), "OpenInNewOutlined"), xC = 6048e5,
|
|
5844
|
+
}), "OpenInNewOutlined"), xC = 6048e5, Y$ = 864e5, ih = 6e4, oh = 36e5, U$ = 1e3, Ow = Symbol.for("constructDateFrom");
|
|
5845
5845
|
function et(e, t) {
|
|
5846
5846
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Ow in e ? e[Ow](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
5847
5847
|
}
|
|
@@ -5869,12 +5869,12 @@ function ai(e, t, n) {
|
|
|
5869
5869
|
function wC(e, t, n) {
|
|
5870
5870
|
return et(e, +me(e) + t);
|
|
5871
5871
|
}
|
|
5872
|
-
function
|
|
5872
|
+
function K$(e, t, n) {
|
|
5873
5873
|
return wC(e, t * oh);
|
|
5874
5874
|
}
|
|
5875
|
-
let
|
|
5875
|
+
let q$ = {};
|
|
5876
5876
|
function hs() {
|
|
5877
|
-
return
|
|
5877
|
+
return q$;
|
|
5878
5878
|
}
|
|
5879
5879
|
function vo(e, t) {
|
|
5880
5880
|
const n = hs(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = me(e, t?.in), o = i.getDay(), a = (o < r ? 7 : 0) + o - r;
|
|
@@ -5922,9 +5922,9 @@ function Js(e, t, n) {
|
|
|
5922
5922
|
e,
|
|
5923
5923
|
t
|
|
5924
5924
|
), o = ns(r), a = ns(i), s = +o - Ef(o), l = +a - Ef(a);
|
|
5925
|
-
return Math.round((s - l) /
|
|
5925
|
+
return Math.round((s - l) / Y$);
|
|
5926
5926
|
}
|
|
5927
|
-
function
|
|
5927
|
+
function G$(e, t) {
|
|
5928
5928
|
const n = _C(e, t), r = et(e, 0);
|
|
5929
5929
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Zs(r);
|
|
5930
5930
|
}
|
|
@@ -5935,7 +5935,7 @@ function Hc(e, t, n) {
|
|
|
5935
5935
|
function _b(e, t, n) {
|
|
5936
5936
|
return ai(e, t * 3, n);
|
|
5937
5937
|
}
|
|
5938
|
-
function
|
|
5938
|
+
function X$(e, t, n) {
|
|
5939
5939
|
return wC(e, t * 1e3);
|
|
5940
5940
|
}
|
|
5941
5941
|
function Pf(e, t, n) {
|
|
@@ -5960,7 +5960,7 @@ function Pw(e, t) {
|
|
|
5960
5960
|
(!n || n > o || isNaN(+o)) && (n = o);
|
|
5961
5961
|
}), et(r, n || NaN);
|
|
5962
5962
|
}
|
|
5963
|
-
function
|
|
5963
|
+
function Q$(e, t, n) {
|
|
5964
5964
|
const [r, i] = Po(
|
|
5965
5965
|
n?.in,
|
|
5966
5966
|
e,
|
|
@@ -6002,7 +6002,7 @@ function Df(e, t, n) {
|
|
|
6002
6002
|
);
|
|
6003
6003
|
return r.getFullYear() - i.getFullYear();
|
|
6004
6004
|
}
|
|
6005
|
-
function
|
|
6005
|
+
function Z$(e, t, n) {
|
|
6006
6006
|
const [r, i] = Po(
|
|
6007
6007
|
n?.in,
|
|
6008
6008
|
e,
|
|
@@ -6042,11 +6042,11 @@ function ah(e, t) {
|
|
|
6042
6042
|
const n = me(e, t?.in);
|
|
6043
6043
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
6044
6044
|
}
|
|
6045
|
-
function
|
|
6045
|
+
function J$(e, t) {
|
|
6046
6046
|
const n = hs(), r = n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = me(e, t?.in), o = i.getDay(), a = (o < r ? -7 : 0) + 6 - (o - r);
|
|
6047
6047
|
return i.setDate(i.getDate() + a), i.setHours(23, 59, 59, 999), i;
|
|
6048
6048
|
}
|
|
6049
|
-
const
|
|
6049
|
+
const e5 = {
|
|
6050
6050
|
lessThanXSeconds: {
|
|
6051
6051
|
one: "less than a second",
|
|
6052
6052
|
other: "less than {{count}} seconds"
|
|
@@ -6108,9 +6108,9 @@ const e$ = {
|
|
|
6108
6108
|
one: "almost 1 year",
|
|
6109
6109
|
other: "almost {{count}} years"
|
|
6110
6110
|
}
|
|
6111
|
-
},
|
|
6111
|
+
}, t5 = (e, t, n) => {
|
|
6112
6112
|
let r;
|
|
6113
|
-
const i =
|
|
6113
|
+
const i = e5[e];
|
|
6114
6114
|
return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
6115
6115
|
};
|
|
6116
6116
|
function Om(e) {
|
|
@@ -6119,42 +6119,42 @@ function Om(e) {
|
|
|
6119
6119
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
6120
6120
|
};
|
|
6121
6121
|
}
|
|
6122
|
-
const
|
|
6122
|
+
const n5 = {
|
|
6123
6123
|
full: "EEEE, MMMM do, y",
|
|
6124
6124
|
long: "MMMM do, y",
|
|
6125
6125
|
medium: "MMM d, y",
|
|
6126
6126
|
short: "MM/dd/yyyy"
|
|
6127
|
-
},
|
|
6127
|
+
}, r5 = {
|
|
6128
6128
|
full: "h:mm:ss a zzzz",
|
|
6129
6129
|
long: "h:mm:ss a z",
|
|
6130
6130
|
medium: "h:mm:ss a",
|
|
6131
6131
|
short: "h:mm a"
|
|
6132
|
-
},
|
|
6132
|
+
}, i5 = {
|
|
6133
6133
|
full: "{{date}} 'at' {{time}}",
|
|
6134
6134
|
long: "{{date}} 'at' {{time}}",
|
|
6135
6135
|
medium: "{{date}}, {{time}}",
|
|
6136
6136
|
short: "{{date}}, {{time}}"
|
|
6137
|
-
},
|
|
6137
|
+
}, o5 = {
|
|
6138
6138
|
date: Om({
|
|
6139
|
-
formats:
|
|
6139
|
+
formats: n5,
|
|
6140
6140
|
defaultWidth: "full"
|
|
6141
6141
|
}),
|
|
6142
6142
|
time: Om({
|
|
6143
|
-
formats:
|
|
6143
|
+
formats: r5,
|
|
6144
6144
|
defaultWidth: "full"
|
|
6145
6145
|
}),
|
|
6146
6146
|
dateTime: Om({
|
|
6147
|
-
formats:
|
|
6147
|
+
formats: i5,
|
|
6148
6148
|
defaultWidth: "full"
|
|
6149
6149
|
})
|
|
6150
|
-
},
|
|
6150
|
+
}, a5 = {
|
|
6151
6151
|
lastWeek: "'last' eeee 'at' p",
|
|
6152
6152
|
yesterday: "'yesterday at' p",
|
|
6153
6153
|
today: "'today at' p",
|
|
6154
6154
|
tomorrow: "'tomorrow at' p",
|
|
6155
6155
|
nextWeek: "eeee 'at' p",
|
|
6156
6156
|
other: "P"
|
|
6157
|
-
},
|
|
6157
|
+
}, s5 = (e, t, n, r) => a5[e];
|
|
6158
6158
|
function Kl(e) {
|
|
6159
6159
|
return (t, n) => {
|
|
6160
6160
|
const r = n?.context ? String(n.context) : "standalone";
|
|
@@ -6170,15 +6170,15 @@ function Kl(e) {
|
|
|
6170
6170
|
return i[o];
|
|
6171
6171
|
};
|
|
6172
6172
|
}
|
|
6173
|
-
const
|
|
6173
|
+
const l5 = {
|
|
6174
6174
|
narrow: ["B", "A"],
|
|
6175
6175
|
abbreviated: ["BC", "AD"],
|
|
6176
6176
|
wide: ["Before Christ", "Anno Domini"]
|
|
6177
|
-
},
|
|
6177
|
+
}, c5 = {
|
|
6178
6178
|
narrow: ["1", "2", "3", "4"],
|
|
6179
6179
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
6180
6180
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
6181
|
-
},
|
|
6181
|
+
}, u5 = {
|
|
6182
6182
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
6183
6183
|
abbreviated: [
|
|
6184
6184
|
"Jan",
|
|
@@ -6208,7 +6208,7 @@ const l$ = {
|
|
|
6208
6208
|
"November",
|
|
6209
6209
|
"December"
|
|
6210
6210
|
]
|
|
6211
|
-
},
|
|
6211
|
+
}, d5 = {
|
|
6212
6212
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
6213
6213
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
6214
6214
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -6221,7 +6221,7 @@ const l$ = {
|
|
|
6221
6221
|
"Friday",
|
|
6222
6222
|
"Saturday"
|
|
6223
6223
|
]
|
|
6224
|
-
},
|
|
6224
|
+
}, f5 = {
|
|
6225
6225
|
narrow: {
|
|
6226
6226
|
am: "a",
|
|
6227
6227
|
pm: "p",
|
|
@@ -6252,7 +6252,7 @@ const l$ = {
|
|
|
6252
6252
|
evening: "evening",
|
|
6253
6253
|
night: "night"
|
|
6254
6254
|
}
|
|
6255
|
-
},
|
|
6255
|
+
}, p5 = {
|
|
6256
6256
|
narrow: {
|
|
6257
6257
|
am: "a",
|
|
6258
6258
|
pm: "p",
|
|
@@ -6283,7 +6283,7 @@ const l$ = {
|
|
|
6283
6283
|
evening: "in the evening",
|
|
6284
6284
|
night: "at night"
|
|
6285
6285
|
}
|
|
6286
|
-
},
|
|
6286
|
+
}, h5 = (e, t) => {
|
|
6287
6287
|
const n = Number(e), r = n % 100;
|
|
6288
6288
|
if (r > 20 || r < 10)
|
|
6289
6289
|
switch (r % 10) {
|
|
@@ -6295,29 +6295,29 @@ const l$ = {
|
|
|
6295
6295
|
return n + "rd";
|
|
6296
6296
|
}
|
|
6297
6297
|
return n + "th";
|
|
6298
|
-
},
|
|
6299
|
-
ordinalNumber:
|
|
6298
|
+
}, m5 = {
|
|
6299
|
+
ordinalNumber: h5,
|
|
6300
6300
|
era: Kl({
|
|
6301
|
-
values:
|
|
6301
|
+
values: l5,
|
|
6302
6302
|
defaultWidth: "wide"
|
|
6303
6303
|
}),
|
|
6304
6304
|
quarter: Kl({
|
|
6305
|
-
values:
|
|
6305
|
+
values: c5,
|
|
6306
6306
|
defaultWidth: "wide",
|
|
6307
6307
|
argumentCallback: (e) => e - 1
|
|
6308
6308
|
}),
|
|
6309
6309
|
month: Kl({
|
|
6310
|
-
values:
|
|
6310
|
+
values: u5,
|
|
6311
6311
|
defaultWidth: "wide"
|
|
6312
6312
|
}),
|
|
6313
6313
|
day: Kl({
|
|
6314
|
-
values:
|
|
6314
|
+
values: d5,
|
|
6315
6315
|
defaultWidth: "wide"
|
|
6316
6316
|
}),
|
|
6317
6317
|
dayPeriod: Kl({
|
|
6318
|
-
values:
|
|
6318
|
+
values: f5,
|
|
6319
6319
|
defaultWidth: "wide",
|
|
6320
|
-
formattingValues:
|
|
6320
|
+
formattingValues: p5,
|
|
6321
6321
|
defaultFormattingWidth: "wide"
|
|
6322
6322
|
})
|
|
6323
6323
|
};
|
|
@@ -6326,9 +6326,9 @@ function ql(e) {
|
|
|
6326
6326
|
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
6327
6327
|
if (!o)
|
|
6328
6328
|
return null;
|
|
6329
|
-
const a = o[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ?
|
|
6329
|
+
const a = o[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? v5(s, (d) => d.test(a)) : (
|
|
6330
6330
|
// [TODO] -- I challenge you to fix the type
|
|
6331
|
-
|
|
6331
|
+
g5(s, (d) => d.test(a))
|
|
6332
6332
|
);
|
|
6333
6333
|
let c;
|
|
6334
6334
|
c = e.valueCallback ? e.valueCallback(l) : l, c = n.valueCallback ? (
|
|
@@ -6339,17 +6339,17 @@ function ql(e) {
|
|
|
6339
6339
|
return { value: c, rest: u };
|
|
6340
6340
|
};
|
|
6341
6341
|
}
|
|
6342
|
-
function
|
|
6342
|
+
function g5(e, t) {
|
|
6343
6343
|
for (const n in e)
|
|
6344
6344
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
6345
6345
|
return n;
|
|
6346
6346
|
}
|
|
6347
|
-
function
|
|
6347
|
+
function v5(e, t) {
|
|
6348
6348
|
for (let n = 0; n < e.length; n++)
|
|
6349
6349
|
if (t(e[n]))
|
|
6350
6350
|
return n;
|
|
6351
6351
|
}
|
|
6352
|
-
function
|
|
6352
|
+
function y5(e) {
|
|
6353
6353
|
return (t, n = {}) => {
|
|
6354
6354
|
const r = t.match(e.matchPattern);
|
|
6355
6355
|
if (!r) return null;
|
|
@@ -6361,23 +6361,23 @@ function y$(e) {
|
|
|
6361
6361
|
return { value: a, rest: s };
|
|
6362
6362
|
};
|
|
6363
6363
|
}
|
|
6364
|
-
const
|
|
6364
|
+
const b5 = /^(\d+)(th|st|nd|rd)?/i, x5 = /\d+/i, w5 = {
|
|
6365
6365
|
narrow: /^(b|a)/i,
|
|
6366
6366
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
6367
6367
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
6368
|
-
},
|
|
6368
|
+
}, _5 = {
|
|
6369
6369
|
any: [/^b/i, /^(a|c)/i]
|
|
6370
|
-
},
|
|
6370
|
+
}, S5 = {
|
|
6371
6371
|
narrow: /^[1234]/i,
|
|
6372
6372
|
abbreviated: /^q[1234]/i,
|
|
6373
6373
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
6374
|
-
},
|
|
6374
|
+
}, O5 = {
|
|
6375
6375
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
6376
|
-
},
|
|
6376
|
+
}, E5 = {
|
|
6377
6377
|
narrow: /^[jfmasond]/i,
|
|
6378
6378
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
6379
6379
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
6380
|
-
},
|
|
6380
|
+
}, P5 = {
|
|
6381
6381
|
narrow: [
|
|
6382
6382
|
/^j/i,
|
|
6383
6383
|
/^f/i,
|
|
@@ -6406,18 +6406,18 @@ const b$ = /^(\d+)(th|st|nd|rd)?/i, x$ = /\d+/i, w$ = {
|
|
|
6406
6406
|
/^n/i,
|
|
6407
6407
|
/^d/i
|
|
6408
6408
|
]
|
|
6409
|
-
},
|
|
6409
|
+
}, k5 = {
|
|
6410
6410
|
narrow: /^[smtwf]/i,
|
|
6411
6411
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
6412
6412
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
6413
6413
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
6414
|
-
},
|
|
6414
|
+
}, C5 = {
|
|
6415
6415
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
6416
6416
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
6417
|
-
},
|
|
6417
|
+
}, D5 = {
|
|
6418
6418
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
6419
6419
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
6420
|
-
},
|
|
6420
|
+
}, A5 = {
|
|
6421
6421
|
any: {
|
|
6422
6422
|
am: /^a/i,
|
|
6423
6423
|
pm: /^p/i,
|
|
@@ -6428,61 +6428,61 @@ const b$ = /^(\d+)(th|st|nd|rd)?/i, x$ = /\d+/i, w$ = {
|
|
|
6428
6428
|
evening: /evening/i,
|
|
6429
6429
|
night: /night/i
|
|
6430
6430
|
}
|
|
6431
|
-
},
|
|
6432
|
-
ordinalNumber:
|
|
6433
|
-
matchPattern:
|
|
6434
|
-
parsePattern:
|
|
6431
|
+
}, T5 = {
|
|
6432
|
+
ordinalNumber: y5({
|
|
6433
|
+
matchPattern: b5,
|
|
6434
|
+
parsePattern: x5,
|
|
6435
6435
|
valueCallback: (e) => parseInt(e, 10)
|
|
6436
6436
|
}),
|
|
6437
6437
|
era: ql({
|
|
6438
|
-
matchPatterns:
|
|
6438
|
+
matchPatterns: w5,
|
|
6439
6439
|
defaultMatchWidth: "wide",
|
|
6440
|
-
parsePatterns:
|
|
6440
|
+
parsePatterns: _5,
|
|
6441
6441
|
defaultParseWidth: "any"
|
|
6442
6442
|
}),
|
|
6443
6443
|
quarter: ql({
|
|
6444
|
-
matchPatterns:
|
|
6444
|
+
matchPatterns: S5,
|
|
6445
6445
|
defaultMatchWidth: "wide",
|
|
6446
|
-
parsePatterns:
|
|
6446
|
+
parsePatterns: O5,
|
|
6447
6447
|
defaultParseWidth: "any",
|
|
6448
6448
|
valueCallback: (e) => e + 1
|
|
6449
6449
|
}),
|
|
6450
6450
|
month: ql({
|
|
6451
|
-
matchPatterns:
|
|
6451
|
+
matchPatterns: E5,
|
|
6452
6452
|
defaultMatchWidth: "wide",
|
|
6453
|
-
parsePatterns:
|
|
6453
|
+
parsePatterns: P5,
|
|
6454
6454
|
defaultParseWidth: "any"
|
|
6455
6455
|
}),
|
|
6456
6456
|
day: ql({
|
|
6457
|
-
matchPatterns:
|
|
6457
|
+
matchPatterns: k5,
|
|
6458
6458
|
defaultMatchWidth: "wide",
|
|
6459
|
-
parsePatterns:
|
|
6459
|
+
parsePatterns: C5,
|
|
6460
6460
|
defaultParseWidth: "any"
|
|
6461
6461
|
}),
|
|
6462
6462
|
dayPeriod: ql({
|
|
6463
|
-
matchPatterns:
|
|
6463
|
+
matchPatterns: D5,
|
|
6464
6464
|
defaultMatchWidth: "any",
|
|
6465
|
-
parsePatterns:
|
|
6465
|
+
parsePatterns: A5,
|
|
6466
6466
|
defaultParseWidth: "any"
|
|
6467
6467
|
})
|
|
6468
6468
|
}, kC = {
|
|
6469
6469
|
code: "en-US",
|
|
6470
|
-
formatDistance:
|
|
6471
|
-
formatLong:
|
|
6472
|
-
formatRelative:
|
|
6473
|
-
localize:
|
|
6474
|
-
match:
|
|
6470
|
+
formatDistance: t5,
|
|
6471
|
+
formatLong: o5,
|
|
6472
|
+
formatRelative: s5,
|
|
6473
|
+
localize: m5,
|
|
6474
|
+
match: T5,
|
|
6475
6475
|
options: {
|
|
6476
6476
|
weekStartsOn: 0,
|
|
6477
6477
|
firstWeekContainsDate: 1
|
|
6478
6478
|
}
|
|
6479
6479
|
};
|
|
6480
|
-
function
|
|
6480
|
+
function M5(e, t) {
|
|
6481
6481
|
const n = me(e, t?.in);
|
|
6482
6482
|
return Js(n, ah(n)) + 1;
|
|
6483
6483
|
}
|
|
6484
6484
|
function Sb(e, t) {
|
|
6485
|
-
const n = me(e, t?.in), r = +Zs(n) - +
|
|
6485
|
+
const n = me(e, t?.in), r = +Zs(n) - +G$(n);
|
|
6486
6486
|
return Math.round(r / xC) + 1;
|
|
6487
6487
|
}
|
|
6488
6488
|
function Ob(e, t) {
|
|
@@ -6493,12 +6493,12 @@ function Ob(e, t) {
|
|
|
6493
6493
|
const c = vo(l, t);
|
|
6494
6494
|
return +n >= +s ? r + 1 : +n >= +c ? r : r - 1;
|
|
6495
6495
|
}
|
|
6496
|
-
function
|
|
6496
|
+
function N5(e, t) {
|
|
6497
6497
|
const n = hs(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Ob(e, t), o = et(t?.in || e, 0);
|
|
6498
6498
|
return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), vo(o, t);
|
|
6499
6499
|
}
|
|
6500
6500
|
function CC(e, t) {
|
|
6501
|
-
const n = me(e, t?.in), r = +vo(n, t) - +
|
|
6501
|
+
const n = me(e, t?.in), r = +vo(n, t) - +N5(n, t);
|
|
6502
6502
|
return Math.round(r / xC) + 1;
|
|
6503
6503
|
}
|
|
6504
6504
|
function Qe(e, t) {
|
|
@@ -6763,7 +6763,7 @@ const $o = {
|
|
|
6763
6763
|
},
|
|
6764
6764
|
// Day of year
|
|
6765
6765
|
D: function(e, t, n) {
|
|
6766
|
-
const r =
|
|
6766
|
+
const r = M5(e);
|
|
6767
6767
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Qe(r, t.length);
|
|
6768
6768
|
},
|
|
6769
6769
|
// Day of week
|
|
@@ -7156,7 +7156,7 @@ const Tw = (e, t) => {
|
|
|
7156
7156
|
default:
|
|
7157
7157
|
return t.time({ width: "full" });
|
|
7158
7158
|
}
|
|
7159
|
-
},
|
|
7159
|
+
}, j5 = (e, t) => {
|
|
7160
7160
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
7161
7161
|
if (!i)
|
|
7162
7162
|
return Tw(e, t);
|
|
@@ -7179,43 +7179,43 @@ const Tw = (e, t) => {
|
|
|
7179
7179
|
return o.replace("{{date}}", Tw(r, t)).replace("{{time}}", DC(i, t));
|
|
7180
7180
|
}, Wv = {
|
|
7181
7181
|
p: DC,
|
|
7182
|
-
P:
|
|
7183
|
-
},
|
|
7184
|
-
function
|
|
7185
|
-
return
|
|
7182
|
+
P: j5
|
|
7183
|
+
}, R5 = /^D+$/, I5 = /^Y+$/, L5 = ["D", "DD", "YY", "YYYY"];
|
|
7184
|
+
function F5(e) {
|
|
7185
|
+
return R5.test(e);
|
|
7186
7186
|
}
|
|
7187
|
-
function
|
|
7188
|
-
return
|
|
7187
|
+
function $5(e) {
|
|
7188
|
+
return I5.test(e);
|
|
7189
7189
|
}
|
|
7190
|
-
function
|
|
7191
|
-
const r =
|
|
7192
|
-
if (console.warn(r),
|
|
7190
|
+
function B5(e, t, n) {
|
|
7191
|
+
const r = W5(e, t, n);
|
|
7192
|
+
if (console.warn(r), L5.includes(e)) throw new RangeError(r);
|
|
7193
7193
|
}
|
|
7194
|
-
function
|
|
7194
|
+
function W5(e, t, n) {
|
|
7195
7195
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
7196
7196
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
7197
7197
|
}
|
|
7198
|
-
const
|
|
7198
|
+
const z5 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, V5 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, H5 = /^'([^]*?)'?$/, Y5 = /''/g, U5 = /[a-zA-Z]/;
|
|
7199
7199
|
function Mw(e, t, n) {
|
|
7200
7200
|
const r = hs(), i = n?.locale ?? r.locale ?? kC, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = me(e, n?.in);
|
|
7201
7201
|
if (!el(s))
|
|
7202
7202
|
throw new RangeError("Invalid time value");
|
|
7203
|
-
let l = t.match(
|
|
7203
|
+
let l = t.match(V5).map((u) => {
|
|
7204
7204
|
const d = u[0];
|
|
7205
7205
|
if (d === "p" || d === "P") {
|
|
7206
7206
|
const f = Wv[d];
|
|
7207
7207
|
return f(u, i.formatLong);
|
|
7208
7208
|
}
|
|
7209
7209
|
return u;
|
|
7210
|
-
}).join("").match(
|
|
7210
|
+
}).join("").match(z5).map((u) => {
|
|
7211
7211
|
if (u === "''")
|
|
7212
7212
|
return { isToken: !1, value: "'" };
|
|
7213
7213
|
const d = u[0];
|
|
7214
7214
|
if (d === "'")
|
|
7215
|
-
return { isToken: !1, value:
|
|
7215
|
+
return { isToken: !1, value: K5(u) };
|
|
7216
7216
|
if (Cw[d])
|
|
7217
7217
|
return { isToken: !0, value: u };
|
|
7218
|
-
if (d.match(
|
|
7218
|
+
if (d.match(U5))
|
|
7219
7219
|
throw new RangeError(
|
|
7220
7220
|
"Format string contains an unescaped latin alphabet character `" + d + "`"
|
|
7221
7221
|
);
|
|
@@ -7230,32 +7230,32 @@ function Mw(e, t, n) {
|
|
|
7230
7230
|
return l.map((u) => {
|
|
7231
7231
|
if (!u.isToken) return u.value;
|
|
7232
7232
|
const d = u.value;
|
|
7233
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
7233
|
+
(!n?.useAdditionalWeekYearTokens && $5(d) || !n?.useAdditionalDayOfYearTokens && F5(d)) && B5(d, t, String(e));
|
|
7234
7234
|
const f = Cw[d[0]];
|
|
7235
7235
|
return f(s, d, i.localize, c);
|
|
7236
7236
|
}).join("");
|
|
7237
7237
|
}
|
|
7238
|
-
function
|
|
7239
|
-
const t = e.match(
|
|
7240
|
-
return t ? t[1].replace(
|
|
7238
|
+
function K5(e) {
|
|
7239
|
+
const t = e.match(H5);
|
|
7240
|
+
return t ? t[1].replace(Y5, "'") : e;
|
|
7241
7241
|
}
|
|
7242
7242
|
function Nw(e, t) {
|
|
7243
7243
|
return me(e, t?.in).getDate();
|
|
7244
7244
|
}
|
|
7245
|
-
function
|
|
7245
|
+
function q5(e, t) {
|
|
7246
7246
|
return me(e, t?.in).getDay();
|
|
7247
7247
|
}
|
|
7248
|
-
function
|
|
7248
|
+
function G5(e, t) {
|
|
7249
7249
|
const n = me(e, t?.in), r = n.getFullYear(), i = n.getMonth(), o = et(n, 0);
|
|
7250
7250
|
return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
7251
7251
|
}
|
|
7252
|
-
function
|
|
7252
|
+
function X5() {
|
|
7253
7253
|
return Object.assign({}, hs());
|
|
7254
7254
|
}
|
|
7255
7255
|
function kn(e, t) {
|
|
7256
7256
|
return me(e, t?.in).getHours();
|
|
7257
7257
|
}
|
|
7258
|
-
function
|
|
7258
|
+
function Q5(e, t) {
|
|
7259
7259
|
const n = me(e, t?.in).getDay();
|
|
7260
7260
|
return n === 0 ? 7 : n;
|
|
7261
7261
|
}
|
|
@@ -7280,10 +7280,10 @@ function lo(e, t) {
|
|
|
7280
7280
|
function Si(e, t) {
|
|
7281
7281
|
return +me(e) < +me(t);
|
|
7282
7282
|
}
|
|
7283
|
-
function
|
|
7283
|
+
function Z5(e, t) {
|
|
7284
7284
|
return +me(e) == +me(t);
|
|
7285
7285
|
}
|
|
7286
|
-
function
|
|
7286
|
+
function J5(e, t) {
|
|
7287
7287
|
const n = e4(t) ? new t(0) : et(t, 0);
|
|
7288
7288
|
return n.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), n.setHours(
|
|
7289
7289
|
e.getHours(),
|
|
@@ -7320,7 +7320,7 @@ class r4 extends AC {
|
|
|
7320
7320
|
super(), this.context = t || ((r) => et(n, r));
|
|
7321
7321
|
}
|
|
7322
7322
|
set(t, n) {
|
|
7323
|
-
return n.timestampIsSet ? t : et(t,
|
|
7323
|
+
return n.timestampIsSet ? t : et(t, J5(t, this.context));
|
|
7324
7324
|
}
|
|
7325
7325
|
}
|
|
7326
7326
|
class $e {
|
|
@@ -7433,7 +7433,7 @@ function _i(e, t) {
|
|
|
7433
7433
|
};
|
|
7434
7434
|
const r = n[1] === "+" ? 1 : -1, i = n[2] ? parseInt(n[2], 10) : 0, o = n[3] ? parseInt(n[3], 10) : 0, a = n[5] ? parseInt(n[5], 10) : 0;
|
|
7435
7435
|
return {
|
|
7436
|
-
value: r * (i * oh + o * ih + a *
|
|
7436
|
+
value: r * (i * oh + o * ih + a * U$),
|
|
7437
7437
|
rest: t.slice(n[0].length)
|
|
7438
7438
|
};
|
|
7439
7439
|
}
|
|
@@ -8232,7 +8232,7 @@ class S4 extends $e {
|
|
|
8232
8232
|
];
|
|
8233
8233
|
}
|
|
8234
8234
|
function O4(e, t, n) {
|
|
8235
|
-
const r = me(e, n?.in), i =
|
|
8235
|
+
const r = me(e, n?.in), i = Q5(r, n), o = t - i;
|
|
8236
8236
|
return ii(r, o, n);
|
|
8237
8237
|
}
|
|
8238
8238
|
class E4 extends $e {
|
|
@@ -8697,7 +8697,7 @@ const B4 = {
|
|
|
8697
8697
|
T: new $4()
|
|
8698
8698
|
}, W4 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, z4 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, V4 = /^'([^]*?)'?$/, H4 = /''/g, Y4 = /\S/, U4 = /[a-zA-Z]/;
|
|
8699
8699
|
function K4(e, t, n, r) {
|
|
8700
|
-
const i = () => et(r?.in || n, NaN), o =
|
|
8700
|
+
const i = () => et(r?.in || n, NaN), o = X5(), a = r?.locale ?? o.locale ?? kC, s = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, l = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0;
|
|
8701
8701
|
if (!t)
|
|
8702
8702
|
return e ? i() : me(n, r?.in);
|
|
8703
8703
|
const c = {
|
|
@@ -8920,7 +8920,7 @@ function hB(e, t) {
|
|
|
8920
8920
|
function hr(e, t, n) {
|
|
8921
8921
|
const r = me(e, n?.in), i = r.getFullYear(), o = r.getDate(), a = et(e, 0);
|
|
8922
8922
|
a.setFullYear(i, t, 15), a.setHours(0, 0, 0, 0);
|
|
8923
|
-
const s =
|
|
8923
|
+
const s = G5(a);
|
|
8924
8924
|
return r.setMonth(t, Math.min(o, s)), r;
|
|
8925
8925
|
}
|
|
8926
8926
|
function uf(e, t, n) {
|
|
@@ -10516,7 +10516,7 @@ function Xw(e) {
|
|
|
10516
10516
|
return SC(e);
|
|
10517
10517
|
}
|
|
10518
10518
|
function V6(e) {
|
|
10519
|
-
return
|
|
10519
|
+
return J$(e);
|
|
10520
10520
|
}
|
|
10521
10521
|
function H6(e) {
|
|
10522
10522
|
return OC(e);
|
|
@@ -10531,10 +10531,10 @@ function If(e, t) {
|
|
|
10531
10531
|
return e && t ? X4(e, t) : !e && !t;
|
|
10532
10532
|
}
|
|
10533
10533
|
function Ce(e, t) {
|
|
10534
|
-
return e && t ?
|
|
10534
|
+
return e && t ? Q$(e, t) : !e && !t;
|
|
10535
10535
|
}
|
|
10536
10536
|
function Wa(e, t) {
|
|
10537
|
-
return e && t ?
|
|
10537
|
+
return e && t ? Z5(e, t) : !e && !t;
|
|
10538
10538
|
}
|
|
10539
10539
|
function Da(e, t, n) {
|
|
10540
10540
|
var r, i = ns(t), o = SC(n);
|
|
@@ -10794,7 +10794,7 @@ function t3(e, t) {
|
|
|
10794
10794
|
function n3(e, t, n, r, i) {
|
|
10795
10795
|
for (var o = i.length, a = [], s = 0; s < o; s++) {
|
|
10796
10796
|
var l = e, c = i[s];
|
|
10797
|
-
c && (l =
|
|
10797
|
+
c && (l = K$(l, kn(c)), l = Hc(l, Cn(c)), l = X$(l, Xo(c)));
|
|
10798
10798
|
var u = Hc(e, (n + 1) * r);
|
|
10799
10799
|
lo(l, t) && Si(l, u) && c != null && a.push(c);
|
|
10800
10800
|
}
|
|
@@ -10976,7 +10976,7 @@ var Dm = (
|
|
|
10976
10976
|
var r = n.props, i = r.day, o = r.startDate, a = r.endDate;
|
|
10977
10977
|
return !o || !a ? !1 : Ce(a, i);
|
|
10978
10978
|
}, n.isWeekend = function() {
|
|
10979
|
-
var r =
|
|
10979
|
+
var r = q5(n.props.day);
|
|
10980
10980
|
return r === 0 || r === 6;
|
|
10981
10981
|
}, n.isAfterMonth = function() {
|
|
10982
10982
|
return n.props.month !== void 0 && (n.props.month + 1) % 12 === er(n.props.day);
|
|
@@ -12204,7 +12204,7 @@ var v3 = (
|
|
|
12204
12204
|
}, r.getEnabledPreSelectionDateForMonth = function(i) {
|
|
12205
12205
|
if (!Ir(i, r.props))
|
|
12206
12206
|
return i;
|
|
12207
|
-
for (var o = co(i), a = H6(i), s =
|
|
12207
|
+
for (var o = co(i), a = H6(i), s = Z$(a, o), l = null, c = 0; c <= s; c++) {
|
|
12208
12208
|
var u = ii(o, c);
|
|
12209
12209
|
if (!Ir(u, r.props)) {
|
|
12210
12210
|
l = u;
|
|
@@ -13377,26 +13377,26 @@ function afe({ title: e, description: t, onExport: n }) {
|
|
|
13377
13377
|
g(!1);
|
|
13378
13378
|
}
|
|
13379
13379
|
};
|
|
13380
|
-
return /* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between px-
|
|
13380
|
+
return /* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between px-[24px] my-6", children: [
|
|
13381
13381
|
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
13382
13382
|
/* @__PURE__ */ v.jsx("div", { className: "text-[24px] font-semibold text-[#121212]", children: e }),
|
|
13383
13383
|
/* @__PURE__ */ v.jsx("div", { className: "text-gray-500 text-sm", children: t })
|
|
13384
13384
|
] }),
|
|
13385
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex gap-
|
|
13385
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex gap-[12px]", children: [
|
|
13386
13386
|
/* @__PURE__ */ v.jsxs("div", { className: "relative", ref: b, children: [
|
|
13387
13387
|
/* @__PURE__ */ v.jsxs(
|
|
13388
13388
|
"button",
|
|
13389
13389
|
{
|
|
13390
13390
|
onClick: () => i((D) => !D),
|
|
13391
|
-
className: "flex items-center gap-
|
|
13391
|
+
className: "flex items-center gap-[8px] bg-gray-50 px-[16px] py-[8px].5 rounded-[8px] border border-gray-200 text-sm font-medium text-gray-700 hover:bg-gray-100 transition-colors",
|
|
13392
13392
|
children: [
|
|
13393
|
-
/* @__PURE__ */ v.jsx(
|
|
13393
|
+
/* @__PURE__ */ v.jsx(z$, { fontSize: "small", className: "text-gray-600" }),
|
|
13394
13394
|
A(),
|
|
13395
|
-
/* @__PURE__ */ v.jsx(
|
|
13395
|
+
/* @__PURE__ */ v.jsx(H$, { className: "text-gray-500" })
|
|
13396
13396
|
]
|
|
13397
13397
|
}
|
|
13398
13398
|
),
|
|
13399
|
-
r && /* @__PURE__ */ v.jsx("div", { className: "absolute right-0 mt-2 bg-white rounded-
|
|
13399
|
+
r && /* @__PURE__ */ v.jsx("div", { className: "absolute right-0 mt-2 bg-white rounded-[8px] shadow-xl border border-gray-200 z-50", children: p ? /* @__PURE__ */ v.jsxs("div", { className: "p-[16px] w-[360px]", children: [
|
|
13400
13400
|
/* @__PURE__ */ v.jsx(
|
|
13401
13401
|
oD,
|
|
13402
13402
|
{
|
|
@@ -13413,12 +13413,12 @@ function afe({ title: e, description: t, onExport: n }) {
|
|
|
13413
13413
|
yearDropdownItemNumber: 40
|
|
13414
13414
|
}
|
|
13415
13415
|
),
|
|
13416
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between mt-4 gap-
|
|
13416
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between mt-4 gap-[8px]", children: [
|
|
13417
13417
|
/* @__PURE__ */ v.jsx(
|
|
13418
13418
|
"button",
|
|
13419
13419
|
{
|
|
13420
13420
|
onClick: () => h(!1),
|
|
13421
|
-
className: "px-
|
|
13421
|
+
className: "px-[16px] py-[8px] border border-gray-300 rounded-[8px] text-sm font-medium text-gray-700 hover:bg-gray-50 transition-colors",
|
|
13422
13422
|
children: "Cancel"
|
|
13423
13423
|
}
|
|
13424
13424
|
),
|
|
@@ -13427,16 +13427,16 @@ function afe({ title: e, description: t, onExport: n }) {
|
|
|
13427
13427
|
{
|
|
13428
13428
|
onClick: C,
|
|
13429
13429
|
disabled: !c || !d,
|
|
13430
|
-
className: "px-
|
|
13430
|
+
className: "px-[16px] py-[8px] bg-purple-600 text-white rounded-[8px] text-sm font-medium hover:bg-purple-700 disabled:bg-gray-300 disabled:cursor-not-allowed transition-colors",
|
|
13431
13431
|
children: "Apply"
|
|
13432
13432
|
}
|
|
13433
13433
|
)
|
|
13434
13434
|
] })
|
|
13435
|
-
] }) : /* @__PURE__ */ v.jsx("div", { className: "min-w-[200px] py-
|
|
13435
|
+
] }) : /* @__PURE__ */ v.jsx("div", { className: "min-w-[200px] py-[4px]", children: w.map((D) => /* @__PURE__ */ v.jsx(
|
|
13436
13436
|
"button",
|
|
13437
13437
|
{
|
|
13438
13438
|
onClick: () => k(D),
|
|
13439
|
-
className: `w-full text-left px-
|
|
13439
|
+
className: `w-full text-left px-[16px] py-[8px].5 text-sm hover:bg-purple-50 transition-colors ${s === D ? "bg-purple-50 text-purple-600 font-medium" : "text-gray-700"}`,
|
|
13440
13440
|
children: D
|
|
13441
13441
|
},
|
|
13442
13442
|
D
|
|
@@ -13448,18 +13448,18 @@ function afe({ title: e, description: t, onExport: n }) {
|
|
|
13448
13448
|
{
|
|
13449
13449
|
disabled: m,
|
|
13450
13450
|
onClick: () => a((D) => !D),
|
|
13451
|
-
className: "flex items-center gap-
|
|
13451
|
+
className: "flex items-center gap-[8px] px-[16px] py-[8px].5 rounded-[8px] bg-purple-600 text-white font-medium text-sm hover:bg-purple-700 transition-colors disabled:bg-gray-400 disabled:cursor-not-allowed",
|
|
13452
13452
|
children: [
|
|
13453
13453
|
m ? "Exporting..." : "Export Report",
|
|
13454
|
-
/* @__PURE__ */ v.jsx(
|
|
13454
|
+
/* @__PURE__ */ v.jsx(V$, { fontSize: "small" })
|
|
13455
13455
|
]
|
|
13456
13456
|
}
|
|
13457
13457
|
),
|
|
13458
|
-
o && /* @__PURE__ */ v.jsx("div", { className: "absolute right-0 mt-2 bg-white border border-gray-200 rounded-
|
|
13458
|
+
o && /* @__PURE__ */ v.jsx("div", { className: "absolute right-0 mt-2 bg-white border border-gray-200 rounded-[8px] shadow-lg z-50 min-w-[180px]", children: x.map((D) => /* @__PURE__ */ v.jsx(
|
|
13459
13459
|
"button",
|
|
13460
13460
|
{
|
|
13461
13461
|
onClick: () => N(D.value),
|
|
13462
|
-
className: "block px-
|
|
13462
|
+
className: "block px-[16px] py-[8px].5 text-sm hover:bg-purple-50 w-full text-left text-gray-700 transition-colors first:rounded-t-lg last:rounded-b-lg",
|
|
13463
13463
|
children: D.label
|
|
13464
13464
|
},
|
|
13465
13465
|
D.value
|
|
@@ -13632,13 +13632,13 @@ const B3 = [
|
|
|
13632
13632
|
];
|
|
13633
13633
|
function sfe() {
|
|
13634
13634
|
const [e, t] = Fe("Overview");
|
|
13635
|
-
return /* @__PURE__ */ v.jsx("div", { className: "flex gap-[8px] p-
|
|
13635
|
+
return /* @__PURE__ */ v.jsx("div", { className: "flex gap-[8px] p-[12px]", children: B3.map((n) => {
|
|
13636
13636
|
const r = n.icon, i = e === n.name;
|
|
13637
13637
|
return /* @__PURE__ */ v.jsxs(
|
|
13638
13638
|
"button",
|
|
13639
13639
|
{
|
|
13640
13640
|
onClick: () => t(n.name),
|
|
13641
|
-
className: `flex items-center gap-[8px] rounded px-
|
|
13641
|
+
className: `flex items-center gap-[8px] rounded px-[16px] py-[12px] text-[14px] leading-[16px] font-medium transition
|
|
13642
13642
|
${i ? "bg-[#FBF5FF] text-[#884EA7]" : "bg-white text-[#64748B] hover:bg-gray-50"}`,
|
|
13643
13643
|
children: [
|
|
13644
13644
|
/* @__PURE__ */ v.jsx(r, { className: "h-[15px] w-[15px] font-bold" }),
|
|
@@ -13683,7 +13683,7 @@ const U3 = ({ color: e }) => /* @__PURE__ */ v.jsx(
|
|
|
13683
13683
|
return o + r / 2 > i && (o = i - r / 2 - 8), o - r / 2 < 0 && (o = r / 2 + 8), /* @__PURE__ */ v.jsxs(
|
|
13684
13684
|
"div",
|
|
13685
13685
|
{
|
|
13686
|
-
className: "relative bg-[#121212] text-white text-[12px] px-
|
|
13686
|
+
className: "relative bg-[#121212] text-white text-[12px] px-[16px] py-[8px] rounded-[8px] shadow-lg",
|
|
13687
13687
|
style: {
|
|
13688
13688
|
transform: `translateY(${o}px) translateY(-50%)`
|
|
13689
13689
|
},
|
|
@@ -13697,7 +13697,7 @@ const U3 = ({ color: e }) => /* @__PURE__ */ v.jsx(
|
|
|
13697
13697
|
border-r-[6px] border-r-[#121212]`
|
|
13698
13698
|
}
|
|
13699
13699
|
),
|
|
13700
|
-
t.map((a, s) => /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
13700
|
+
t.map((a, s) => /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px] capitalize", children: [
|
|
13701
13701
|
a.payload.color && /* @__PURE__ */ v.jsx(U3, { color: a.payload.color }),
|
|
13702
13702
|
/* @__PURE__ */ v.jsx("span", { className: "text-[#D1D3D4] min-w-[70px]", children: a?.payload?.name }),
|
|
13703
13703
|
/* @__PURE__ */ v.jsx("span", { className: "font-semibold", children: a.value })
|
|
@@ -13710,7 +13710,7 @@ const U3 = ({ color: e }) => /* @__PURE__ */ v.jsx(
|
|
|
13710
13710
|
return /* @__PURE__ */ v.jsxs(
|
|
13711
13711
|
"div",
|
|
13712
13712
|
{
|
|
13713
|
-
className: `w-fit p-
|
|
13713
|
+
className: `w-fit p-[4px] rounded text-[10px] leading-[14px] font-medium flex items-center gap-[4px] ${n ? "bg-[#F7FEFA] text-[#1FA05B]" : "bg-[#FFF2F2] text-[#AB0000]"}`,
|
|
13714
13714
|
children: [
|
|
13715
13715
|
n ? /* @__PURE__ */ v.jsx(H3, {}) : /* @__PURE__ */ v.jsx(V3, {}),
|
|
13716
13716
|
Math.abs(t).toFixed(1),
|
|
@@ -13753,12 +13753,18 @@ const U3 = ({ color: e }) => /* @__PURE__ */ v.jsx(
|
|
|
13753
13753
|
}
|
|
13754
13754
|
)
|
|
13755
13755
|
] }),
|
|
13756
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
13756
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
13757
13757
|
r && r,
|
|
13758
13758
|
n && /* @__PURE__ */ v.jsx("div", { className: "!text-[12px] !leading-[16px] !text-[#64748B]", children: n })
|
|
13759
13759
|
] })
|
|
13760
13760
|
] }),
|
|
13761
|
-
/* @__PURE__ */ v.jsx(
|
|
13761
|
+
/* @__PURE__ */ v.jsx(
|
|
13762
|
+
"div",
|
|
13763
|
+
{
|
|
13764
|
+
className: `flex-1 min-h-0 ${u || "space-y-[24px]"}`,
|
|
13765
|
+
children: i
|
|
13766
|
+
}
|
|
13767
|
+
),
|
|
13762
13768
|
o && /* @__PURE__ */ v.jsx("div", { className: "mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]", children: o })
|
|
13763
13769
|
]
|
|
13764
13770
|
}
|
|
@@ -34663,7 +34669,7 @@ const nm = (e, t) => {
|
|
|
34663
34669
|
}
|
|
34664
34670
|
}]
|
|
34665
34671
|
};
|
|
34666
|
-
})), $2 =
|
|
34672
|
+
})), $2 = I$({
|
|
34667
34673
|
"@keyframes mui-auto-fill": {
|
|
34668
34674
|
from: {
|
|
34669
34675
|
display: "block"
|
|
@@ -37684,7 +37690,7 @@ const Iie = (e) => {
|
|
|
37684
37690
|
backdrop: g.backdrop
|
|
37685
37691
|
},
|
|
37686
37692
|
slotProps: {
|
|
37687
|
-
backdrop:
|
|
37693
|
+
backdrop: W$(typeof b.backdrop == "function" ? b.backdrop(A) : b.backdrop, {
|
|
37688
37694
|
invisible: !0
|
|
37689
37695
|
})
|
|
37690
37696
|
},
|
|
@@ -40451,11 +40457,11 @@ function $l({
|
|
|
40451
40457
|
const u = () => {
|
|
40452
40458
|
h_("widget_id", e), h_("export", !0), i();
|
|
40453
40459
|
};
|
|
40454
|
-
return /* @__PURE__ */ v.jsx("div", { className: "flex items-center gap-
|
|
40460
|
+
return /* @__PURE__ */ v.jsx("div", { className: "flex items-center gap-[8px]", children: /* @__PURE__ */ v.jsx(Xj, { title: "Export CSV for this widget", children: /* @__PURE__ */ v.jsx(
|
|
40455
40461
|
"button",
|
|
40456
40462
|
{
|
|
40457
40463
|
onClick: u,
|
|
40458
|
-
className: "px-
|
|
40464
|
+
className: "px-[12px] py-[8px] bg-[#FBF5FF] rounded cursor-pointer",
|
|
40459
40465
|
children: /* @__PURE__ */ v.jsx(voe, { className: "stroke-[#884EA7] stroke-[1.4]" })
|
|
40460
40466
|
}
|
|
40461
40467
|
) }) });
|
|
@@ -40771,13 +40777,13 @@ function kfe({ data: e }) {
|
|
|
40771
40777
|
}
|
|
40772
40778
|
),
|
|
40773
40779
|
children: /* @__PURE__ */ v.jsxs("div", { children: [
|
|
40774
|
-
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-4 !text-[12px] text-[#64748B] mb-
|
|
40780
|
+
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-4 !text-[12px] text-[#64748B] mb-[8px]", children: [
|
|
40775
40781
|
/* @__PURE__ */ v.jsx("div", { children: "Opening" }),
|
|
40776
40782
|
/* @__PURE__ */ v.jsx("div", { children: "Income" }),
|
|
40777
40783
|
/* @__PURE__ */ v.jsx("div", { children: "Collection" }),
|
|
40778
40784
|
/* @__PURE__ */ v.jsx("div", { children: "Closing" })
|
|
40779
40785
|
] }),
|
|
40780
|
-
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-
|
|
40786
|
+
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-[8px]", children: [
|
|
40781
40787
|
/* @__PURE__ */ v.jsx("div", { children: a(t.opening_balance, t?.currency_type) }),
|
|
40782
40788
|
/* @__PURE__ */ v.jsx("div", { children: a(t.income, t?.currency_type) }),
|
|
40783
40789
|
/* @__PURE__ */ v.jsx("div", { children: a(t.collection, t?.currency_type) }),
|
|
@@ -40788,7 +40794,7 @@ function kfe({ data: e }) {
|
|
|
40788
40794
|
/* @__PURE__ */ v.jsx(Uv, { className: "!text-[24px] text-red-600" }),
|
|
40789
40795
|
/* @__PURE__ */ v.jsx("div", { className: "!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]", children: "Expenditure" })
|
|
40790
40796
|
] }) }),
|
|
40791
|
-
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-
|
|
40797
|
+
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-[8px]", children: [
|
|
40792
40798
|
/* @__PURE__ */ v.jsx("div", { children: "Opening" }),
|
|
40793
40799
|
/* @__PURE__ */ v.jsx("div", { children: "Expenditure" }),
|
|
40794
40800
|
/* @__PURE__ */ v.jsx("div", { children: "Payment" }),
|
|
@@ -41872,7 +41878,7 @@ function nae({ type: e, data: t, children: n }) {
|
|
|
41872
41878
|
title: i[e],
|
|
41873
41879
|
period: "Today",
|
|
41874
41880
|
icon: /* @__PURE__ */ v.jsx(Rb, { className: `${o[e]} !text-[24px]` }),
|
|
41875
|
-
className: "!gap-0 min-w-[353px] bg-white shadow-xl rounded-
|
|
41881
|
+
className: "!gap-0 min-w-[353px] bg-white shadow-xl rounded-[8px] border border-gray-200",
|
|
41876
41882
|
children: /* @__PURE__ */ v.jsx("div", { className: "flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]", children: r[e].map(([s, l]) => /* @__PURE__ */ v.jsxs(
|
|
41877
41883
|
"div",
|
|
41878
41884
|
{
|
|
@@ -49937,8 +49943,8 @@ const Oue = {
|
|
|
49937
49943
|
/* @__PURE__ */ v.jsx("div", { className: `${o} !text-[12px] font-bold mt-1`, children: e }),
|
|
49938
49944
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] text-[#64748B] mt-1", children: r })
|
|
49939
49945
|
] });
|
|
49940
|
-
}, Ek = ({ title: e, value: t, suffix: n, valueClass: r = "" }) => /* @__PURE__ */ v.jsxs("div", { className: "bg-white border border-[#EBEBEB] rounded-
|
|
49941
|
-
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] leading-[16px] text-[#121212] mb-
|
|
49946
|
+
}, Ek = ({ title: e, value: t, suffix: n, valueClass: r = "" }) => /* @__PURE__ */ v.jsxs("div", { className: "bg-white border border-[#EBEBEB] rounded-[12px] shadow-[0_0_12px_0_#EAF2FF] h-[98px] p-[16px] flex flex-col justify-center", children: [
|
|
49947
|
+
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] leading-[16px] text-[#121212] mb-[4px]", children: e }),
|
|
49942
49948
|
/* @__PURE__ */ v.jsxs(
|
|
49943
49949
|
"div",
|
|
49944
49950
|
{
|
|
@@ -49963,7 +49969,7 @@ const Oue = {
|
|
|
49963
49969
|
e?.occupiedUnits ?? n ?? 0
|
|
49964
49970
|
), c = Number(e?.ownerCount ?? r ?? 0), u = Number(e?.tenantCount ?? i ?? 0), d = e?.avgResidents ?? o, f = e?.avgLeaseMonths ?? a, p = c + u;
|
|
49965
49971
|
return /* @__PURE__ */ v.jsxs("div", { children: [
|
|
49966
|
-
/* @__PURE__ */ v.jsxs("div", { className: "bg-white border border-[#EBEBEB] rounded-
|
|
49972
|
+
/* @__PURE__ */ v.jsxs("div", { className: "bg-white border border-[#EBEBEB] rounded-[12px] shadow-[0_0_12px_0_#EAF2FF] p-[16px] h-[128px]", children: [
|
|
49967
49973
|
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[12px] mb-4", children: [
|
|
49968
49974
|
/* @__PURE__ */ v.jsx(Ib, { className: "h-6 w-6 text-[#329DFF]" }),
|
|
49969
49975
|
/* @__PURE__ */ v.jsx("div", { className: "font-medium text-[#121212]", children: "Occupancy Overview" })
|
|
@@ -49971,7 +49977,7 @@ const Oue = {
|
|
|
49971
49977
|
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between gap-", children: [
|
|
49972
49978
|
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
49973
49979
|
/* @__PURE__ */ v.jsx("div", { className: "text-xs leading-[16px] text-[#64748B]", children: "Occupied Units" }),
|
|
49974
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
49980
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[4px]", children: [
|
|
49975
49981
|
/* @__PURE__ */ v.jsx("div", { className: "text-[28px] leading-[32px] font-medium text-[#121212]", children: l }),
|
|
49976
49982
|
/* @__PURE__ */ v.jsxs("div", { className: "text-[#64748B] text-[20px] leading-[32px]", children: [
|
|
49977
49983
|
"/",
|
|
@@ -50094,7 +50100,7 @@ const Eue = {
|
|
|
50094
50100
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] text-[#64748B] leading-[16px]", children: "Total Tenants" }),
|
|
50095
50101
|
/* @__PURE__ */ v.jsx("div", { className: "text-[28px] leading-[32px ] text-[#08B6D4]", children: a })
|
|
50096
50102
|
] }),
|
|
50097
|
-
/* @__PURE__ */ v.jsxs("div", { className: "text-[10px] text-[#1FA05B] flex gap-
|
|
50103
|
+
/* @__PURE__ */ v.jsxs("div", { className: "text-[10px] text-[#1FA05B] flex gap-[8px] items-center", children: [
|
|
50098
50104
|
l,
|
|
50099
50105
|
" ",
|
|
50100
50106
|
/* @__PURE__ */ v.jsx("div", { className: "text-[#64748B] ", children: "Compared to last month" })
|
|
@@ -50407,7 +50413,7 @@ function Pk({
|
|
|
50407
50413
|
return /* @__PURE__ */ v.jsxs(
|
|
50408
50414
|
"div",
|
|
50409
50415
|
{
|
|
50410
|
-
className: `rounded-
|
|
50416
|
+
className: `rounded-[8px] p-[16px] ${r} border border-[#EBEBEB] h-[126px]`,
|
|
50411
50417
|
children: [
|
|
50412
50418
|
/* @__PURE__ */ v.jsx("div", { className: `text-[16px] leading-[20px] ${a}`, children: e }),
|
|
50413
50419
|
/* @__PURE__ */ v.jsx("div", { className: "mt-[16px] leading-[28px] !text-[24px] font-medium text-[#121212]", children: t }),
|
|
@@ -50554,7 +50560,7 @@ const Mue = [
|
|
|
50554
50560
|
/* @__PURE__ */ v.jsx("div", { className: "flex flex-col gap-[12px]", children: t.map((i, o) => /* @__PURE__ */ v.jsxs(
|
|
50555
50561
|
"div",
|
|
50556
50562
|
{
|
|
50557
|
-
className: "flex items-center justify-between bg-[#F9FAFB] rounded-
|
|
50563
|
+
className: "flex items-center justify-between bg-[#F9FAFB] rounded-[8px] p-[12px]",
|
|
50558
50564
|
children: [
|
|
50559
50565
|
/* @__PURE__ */ v.jsxs("div", { className: "flex flex-col", children: [
|
|
50560
50566
|
/* @__PURE__ */ v.jsx("div", { className: "text-[14px] font-medium text-[#121212]", children: i.title }),
|
|
@@ -50565,7 +50571,7 @@ const Mue = [
|
|
|
50565
50571
|
},
|
|
50566
50572
|
o
|
|
50567
50573
|
)) }),
|
|
50568
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between border-t border-[#EBEBEB] h-[68px] px-
|
|
50574
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between border-t border-[#EBEBEB] h-[68px] px-[12px]", children: [
|
|
50569
50575
|
/* @__PURE__ */ v.jsx("div", { className: "text-[14px] font-medium text-[#121212]", children: "Total" }),
|
|
50570
50576
|
/* @__PURE__ */ v.jsx("div", { className: "text-[16px] text-[#1FA05B] font-bold", children: r(n) })
|
|
50571
50577
|
] })
|
|
@@ -50632,7 +50638,7 @@ const Iue = [
|
|
|
50632
50638
|
period: /* @__PURE__ */ v.jsx(Xr, { className: "h-5 w-5 text-[#884EA7] cursor-pointer" }),
|
|
50633
50639
|
titleWeight: "semi-bold",
|
|
50634
50640
|
children: [
|
|
50635
|
-
/* @__PURE__ */ v.jsx("div", { className: "grid grid-cols-4 md:grid-cols-4 gap-[12px] h-[48px]", children: n.map((s, l) => /* @__PURE__ */ v.jsx("div", { className: "p-
|
|
50641
|
+
/* @__PURE__ */ v.jsx("div", { className: "grid grid-cols-4 md:grid-cols-4 gap-[12px] h-[48px]", children: n.map((s, l) => /* @__PURE__ */ v.jsx("div", { className: "p-[8px] rounded-[8px] bg-slate-50", children: /* @__PURE__ */ v.jsxs("div", { className: "flex justify-between items-start", children: [
|
|
50636
50642
|
/* @__PURE__ */ v.jsx("div", { className: "font-medium leading-[16px] !text-[12px] rounded", children: s }),
|
|
50637
50643
|
/* @__PURE__ */ v.jsxs("div", { className: "text-right", children: [
|
|
50638
50644
|
/* @__PURE__ */ v.jsxs("div", { className: "text-red-600 font-medium leading-[16px] !text-[12px]", children: [
|
|
@@ -50776,7 +50782,7 @@ function Vfe({ data: e }) {
|
|
|
50776
50782
|
/* @__PURE__ */ v.jsx("div", { className: "text-[10px] leading-[12.59px] text-[#121212] mt-[6px]", children: "Total Assets" })
|
|
50777
50783
|
] })
|
|
50778
50784
|
] }),
|
|
50779
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between w-full px-
|
|
50785
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between w-full px-[16px] sm:px-[32px] mt-4 text-[14px]", children: [
|
|
50780
50786
|
/* @__PURE__ */ v.jsx("div", { className: "flex flex-col gap-[8px]", children: t.slice(0, 3).map((r) => /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
50781
50787
|
/* @__PURE__ */ v.jsx(
|
|
50782
50788
|
"div",
|
|
@@ -50942,7 +50948,7 @@ const Vue = [
|
|
|
50942
50948
|
];
|
|
50943
50949
|
function Yfe({ data: e }) {
|
|
50944
50950
|
const t = Array.isArray(e) && e.length > 0 ? e : Vue;
|
|
50945
|
-
return /* @__PURE__ */ v.jsx("div", { className: "px-
|
|
50951
|
+
return /* @__PURE__ */ v.jsx("div", { className: "px-[20px] grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: t.map((n, r) => /* @__PURE__ */ v.jsx(zue, { ...n }, r)) });
|
|
50946
50952
|
}
|
|
50947
50953
|
/**
|
|
50948
50954
|
* @license lucide-react v0.564.0 - ISC
|
|
@@ -51190,7 +51196,7 @@ const cde = [
|
|
|
51190
51196
|
className: `relative bg-white rounded-[12px] p-[24px] shadow-[0_0_12px_0_#EAF2FF] ${a}`,
|
|
51191
51197
|
children: [
|
|
51192
51198
|
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
51193
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
51199
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
51194
51200
|
t && /* @__PURE__ */ v.jsx("div", { className: c, children: t }),
|
|
51195
51201
|
/* @__PURE__ */ v.jsx(
|
|
51196
51202
|
"div",
|
|
@@ -51205,7 +51211,7 @@ const cde = [
|
|
|
51205
51211
|
)
|
|
51206
51212
|
] }),
|
|
51207
51213
|
n && !r && /* @__PURE__ */ v.jsx("div", { className: "text-[12px] leading-[16px] text-[#64748B]", children: n }),
|
|
51208
|
-
r && /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
51214
|
+
r && /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[12px] px-[16px] py-[8px] rounded-[8px] bg-white text-sm text-[#64748B]", children: [
|
|
51209
51215
|
/* @__PURE__ */ v.jsx(
|
|
51210
51216
|
Zue,
|
|
51211
51217
|
{
|
|
@@ -51261,66 +51267,53 @@ function Ufe({ data: e = {} }) {
|
|
|
51261
51267
|
color: "#F69E0A"
|
|
51262
51268
|
}
|
|
51263
51269
|
], r = Number(t?.completed ?? 0) + Number(t?.not_completed ?? 0) + Number(t?.missed ?? 0), i = Number(t?.completed ?? 0);
|
|
51264
|
-
return /* @__PURE__ */ v.jsx(
|
|
51265
|
-
|
|
51266
|
-
|
|
51267
|
-
|
|
51268
|
-
|
|
51269
|
-
|
|
51270
|
-
|
|
51271
|
-
|
|
51272
|
-
|
|
51270
|
+
return /* @__PURE__ */ v.jsx(yn, { title: "Guard Patrols", className: "h-[362px]", titleWeight: "semi-bold", children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col items-center justify-center", children: [
|
|
51271
|
+
/* @__PURE__ */ v.jsxs("div", { className: "w-[215px] h-[182px] relative", children: [
|
|
51272
|
+
/* @__PURE__ */ v.jsx(zt, { width: "100%", height: "100%", children: /* @__PURE__ */ v.jsxs(Mo, { children: [
|
|
51273
|
+
/* @__PURE__ */ v.jsx(
|
|
51274
|
+
Vi,
|
|
51275
|
+
{
|
|
51276
|
+
data: n ?? [],
|
|
51277
|
+
innerRadius: 60,
|
|
51278
|
+
outerRadius: 90,
|
|
51279
|
+
paddingAngle: 2,
|
|
51280
|
+
dataKey: "value",
|
|
51281
|
+
nameKey: "name",
|
|
51282
|
+
children: n?.map?.((o, a) => /* @__PURE__ */ v.jsx(Rn, { fill: o?.color ?? "#ccc" }, `cell-${a}`))
|
|
51283
|
+
}
|
|
51284
|
+
),
|
|
51285
|
+
/* @__PURE__ */ v.jsx(qt, { formatter: (o) => Number(o ?? 0).toLocaleString() })
|
|
51286
|
+
] }) }),
|
|
51287
|
+
/* @__PURE__ */ v.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center pointer-events-none", children: [
|
|
51288
|
+
/* @__PURE__ */ v.jsxs("div", { className: "font-medium text-[19.35px] leading-[23.65px]", children: [
|
|
51289
|
+
i ?? 0,
|
|
51290
|
+
"/",
|
|
51291
|
+
r ?? 0
|
|
51292
|
+
] }),
|
|
51293
|
+
/* @__PURE__ */ v.jsx("div", { className: "text-[10.75px] leading-[15.05px] text-[#64748B]", children: "Completed" })
|
|
51294
|
+
] })
|
|
51295
|
+
] }),
|
|
51296
|
+
/* @__PURE__ */ v.jsx("div", { className: "flex flex-col w-full text-[14px]", children: n?.length ? n?.map?.((o, a) => /* @__PURE__ */ v.jsxs(
|
|
51297
|
+
"div",
|
|
51298
|
+
{
|
|
51299
|
+
className: `flex items-center justify-between py-[10px] ${a !== (n?.length ?? 0) - 1 ? "border-b border-[#F1F5F9]" : ""}`,
|
|
51300
|
+
children: [
|
|
51301
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[10px]", children: [
|
|
51273
51302
|
/* @__PURE__ */ v.jsx(
|
|
51274
|
-
|
|
51303
|
+
"div",
|
|
51275
51304
|
{
|
|
51276
|
-
|
|
51277
|
-
|
|
51278
|
-
outerRadius: 90,
|
|
51279
|
-
paddingAngle: 2,
|
|
51280
|
-
dataKey: "value",
|
|
51281
|
-
nameKey: "name",
|
|
51282
|
-
children: n?.map?.((o, a) => /* @__PURE__ */ v.jsx(Rn, { fill: o?.color ?? "#ccc" }, `cell-${a}`))
|
|
51305
|
+
className: "inline-block w-[16px] h-[7px]",
|
|
51306
|
+
style: { backgroundColor: o?.color ?? "#ccc" }
|
|
51283
51307
|
}
|
|
51284
51308
|
),
|
|
51285
|
-
/* @__PURE__ */ v.jsx(
|
|
51286
|
-
|
|
51287
|
-
|
|
51288
|
-
|
|
51289
|
-
|
|
51290
|
-
|
|
51291
|
-
|
|
51292
|
-
|
|
51293
|
-
/* @__PURE__ */ v.jsxs("div", { className: "font-medium text-[19.35px] leading-[23.65px]", children: [
|
|
51294
|
-
i ?? 0,
|
|
51295
|
-
"/",
|
|
51296
|
-
r ?? 0
|
|
51297
|
-
] }),
|
|
51298
|
-
/* @__PURE__ */ v.jsx("div", { className: "text-[10.75px] leading-[15.05px] text-[#64748B]", children: "Completed" })
|
|
51299
|
-
] })
|
|
51300
|
-
] }),
|
|
51301
|
-
/* @__PURE__ */ v.jsx("div", { className: "flex flex-col w-full text-[14px]", children: n?.length ? n?.map?.((o, a) => /* @__PURE__ */ v.jsxs(
|
|
51302
|
-
"div",
|
|
51303
|
-
{
|
|
51304
|
-
className: `flex items-center justify-between py-[10px] ${a !== (n?.length ?? 0) - 1 ? "border-b border-[#F1F5F9]" : ""}`,
|
|
51305
|
-
children: [
|
|
51306
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[10px]", children: [
|
|
51307
|
-
/* @__PURE__ */ v.jsx(
|
|
51308
|
-
"div",
|
|
51309
|
-
{
|
|
51310
|
-
className: "inline-block w-[16px] h-[7px]",
|
|
51311
|
-
style: { backgroundColor: o?.color ?? "#ccc" }
|
|
51312
|
-
}
|
|
51313
|
-
),
|
|
51314
|
-
/* @__PURE__ */ v.jsx("div", { className: "leading-[16.09px] text-[12.07px] text-[#64748B]", children: o?.name ?? "-" })
|
|
51315
|
-
] }),
|
|
51316
|
-
/* @__PURE__ */ v.jsx("div", { className: "leading-[16.09px] text-[12.07px] text-[#64748B]", children: o?.value ?? 0 })
|
|
51317
|
-
]
|
|
51318
|
-
},
|
|
51319
|
-
o?.name ?? a
|
|
51320
|
-
)) : /* @__PURE__ */ v.jsx("div", { className: "text-center text-gray-400 text-sm py-6", children: "No patrol data" }) })
|
|
51321
|
-
] })
|
|
51322
|
-
}
|
|
51323
|
-
);
|
|
51309
|
+
/* @__PURE__ */ v.jsx("div", { className: "leading-[16.09px] text-[12.07px] text-[#64748B]", children: o?.name ?? "-" })
|
|
51310
|
+
] }),
|
|
51311
|
+
/* @__PURE__ */ v.jsx("div", { className: "leading-[16.09px] text-[12.07px] text-[#64748B]", children: o?.value ?? 0 })
|
|
51312
|
+
]
|
|
51313
|
+
},
|
|
51314
|
+
o?.name ?? a
|
|
51315
|
+
)) : /* @__PURE__ */ v.jsx("div", { className: "text-center text-gray-400 text-sm py-[24px]", children: "No patrol data" }) })
|
|
51316
|
+
] }) });
|
|
51324
51317
|
}
|
|
51325
51318
|
Un.register(
|
|
51326
51319
|
jo,
|
|
@@ -51438,7 +51431,10 @@ const fde = ["10 AM", "12 PM", "2 PM", "4 PM", "6 PM", "8 PM", "10 PM"], nf = {
|
|
|
51438
51431
|
{ incident_code: "INC-402", severity_level: "L2", severity: "High" },
|
|
51439
51432
|
{ incident_code: "INC-403", severity_level: "L3", severity: "Low" }
|
|
51440
51433
|
];
|
|
51441
|
-
function qfe({
|
|
51434
|
+
function qfe({
|
|
51435
|
+
incidentReports: e = {},
|
|
51436
|
+
incidentReportsDetails: t = []
|
|
51437
|
+
}) {
|
|
51442
51438
|
const n = e && Object.keys(e).length > 0 ? e : pde, r = Array.isArray(t) && t.length > 0 ? t : hde, i = Number(n?.open ?? 0), o = Number(n?.in_progress ?? 0), a = Number(n?.closed ?? 0);
|
|
51443
51439
|
return /* @__PURE__ */ v.jsx(
|
|
51444
51440
|
yn,
|
|
@@ -51448,15 +51444,15 @@ function qfe({ incidentReports: e = {}, incidentReportsDetails: t = [] }) {
|
|
|
51448
51444
|
titleWeight: "semi-bold",
|
|
51449
51445
|
children: /* @__PURE__ */ v.jsxs("div", { children: [
|
|
51450
51446
|
/* @__PURE__ */ v.jsxs("div", { className: "flex w-full text-center gap-[24px]", children: [
|
|
51451
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-
|
|
51447
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-[12px] bg-[#FBF4F4] h-[76px] rounded", children: [
|
|
51452
51448
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[24px] leading-[28px] font-medium text-[#AB0000]", children: i ?? 0 }),
|
|
51453
51449
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] leading-[16px] text-[#AB0000]", children: "Open" })
|
|
51454
51450
|
] }),
|
|
51455
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-
|
|
51451
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-[12px] bg-[#FFFBF2] h-[76px] rounded", children: [
|
|
51456
51452
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[24px] leading-[28px] font-medium text-[#E7A015]", children: o ?? 0 }),
|
|
51457
51453
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] leading-[16px] text-[#E7A015]", children: "In-progress" })
|
|
51458
51454
|
] }),
|
|
51459
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-
|
|
51455
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-[12px] bg-[#F7FEFA] h-[76px] rounded", children: [
|
|
51460
51456
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[24px] leading-[28px] font-medium text-[#1FA05B]", children: a ?? 0 }),
|
|
51461
51457
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] leading-[16px] text-[#1FA05B]", children: "Closed" })
|
|
51462
51458
|
] })
|
|
@@ -51466,7 +51462,7 @@ function qfe({ incidentReports: e = {}, incidentReportsDetails: t = [] }) {
|
|
|
51466
51462
|
return /* @__PURE__ */ v.jsxs(
|
|
51467
51463
|
"div",
|
|
51468
51464
|
{
|
|
51469
|
-
className: "flex items-center justify-between p-
|
|
51465
|
+
className: "flex items-center justify-between p-[12px] bg-[#FAFBFD] rounded-md",
|
|
51470
51466
|
children: [
|
|
51471
51467
|
/* @__PURE__ */ v.jsx("div", { className: "flex items-center gap-[8px]", children: /* @__PURE__ */ v.jsx("div", { className: "text-gray-700 font-medium", children: s?.incident_code ?? "-" }) }),
|
|
51472
51468
|
/* @__PURE__ */ v.jsx(
|
|
@@ -51484,7 +51480,7 @@ function qfe({ incidentReports: e = {}, incidentReportsDetails: t = [] }) {
|
|
|
51484
51480
|
},
|
|
51485
51481
|
l
|
|
51486
51482
|
);
|
|
51487
|
-
}) : /* @__PURE__ */ v.jsx("div", { className: "text-center text-gray-400 text-sm py-
|
|
51483
|
+
}) : /* @__PURE__ */ v.jsx("div", { className: "text-center text-gray-400 text-sm py-[24px]", children: "No incidents found" }) })
|
|
51488
51484
|
] })
|
|
51489
51485
|
}
|
|
51490
51486
|
);
|
|
@@ -51505,11 +51501,11 @@ function Gfe({ staffPresentAbsent: e, staffPresentByRole: t }) {
|
|
|
51505
51501
|
titleWeight: "semi-bold",
|
|
51506
51502
|
children: /* @__PURE__ */ v.jsxs("div", { children: [
|
|
51507
51503
|
/* @__PURE__ */ v.jsxs("div", { className: "flex gap-[24px] text-center", children: [
|
|
51508
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-
|
|
51504
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-[12px] bg-[#F7FEFA] rounded h-[76px]", children: [
|
|
51509
51505
|
/* @__PURE__ */ v.jsx("div", { className: "text-[24px] font-medium text-[#1FA05B]", children: a ?? 0 }),
|
|
51510
51506
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] text-[#1FA05B]", children: "Present" })
|
|
51511
51507
|
] }),
|
|
51512
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-
|
|
51508
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex-1 py-[12px] bg-[#FBF4F4] rounded h-[76px]", children: [
|
|
51513
51509
|
/* @__PURE__ */ v.jsx("div", { className: "text-[24px] font-medium text-[#AB0000]", children: o ?? 0 }),
|
|
51514
51510
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] text-[#AB0000]", children: "Absent" })
|
|
51515
51511
|
] })
|
|
@@ -51519,7 +51515,7 @@ function Gfe({ staffPresentAbsent: e, staffPresentByRole: t }) {
|
|
|
51519
51515
|
return /* @__PURE__ */ v.jsxs(
|
|
51520
51516
|
"div",
|
|
51521
51517
|
{
|
|
51522
|
-
className: "flex items-center justify-between p-
|
|
51518
|
+
className: "flex items-center justify-between p-[12px] bg-[#F8FAFC] rounded-md",
|
|
51523
51519
|
children: [
|
|
51524
51520
|
/* @__PURE__ */ v.jsx("div", { className: "text-[#121212] text-[14px] leading-[18px] font-medium", children: s?.staff_role_name ?? "-" }),
|
|
51525
51521
|
/* @__PURE__ */ v.jsxs("div", { className: "text-[14px] leading-[20px] text-[#64748B]", children: [
|
|
@@ -51610,7 +51606,7 @@ const bde = [
|
|
|
51610
51606
|
];
|
|
51611
51607
|
function Xfe({ data: e }) {
|
|
51612
51608
|
const t = Array.isArray(e) && e.length > 0 ? e : bde;
|
|
51613
|
-
return /* @__PURE__ */ v.jsx("div", { className: "px-
|
|
51609
|
+
return /* @__PURE__ */ v.jsx("div", { className: "px-[20px] grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: t.map((n, r) => /* @__PURE__ */ v.jsx(yde, { ...n }, r)) });
|
|
51614
51610
|
}
|
|
51615
51611
|
const xde = [
|
|
51616
51612
|
{ title: "Maintenance", total: 12, pending: 3 },
|
|
@@ -51634,7 +51630,7 @@ function Qfe({ data: e }) {
|
|
|
51634
51630
|
children: /* @__PURE__ */ v.jsx("div", { className: "flex flex-col gap-[12px]", children: t.map((n, r) => /* @__PURE__ */ v.jsxs(
|
|
51635
51631
|
"div",
|
|
51636
51632
|
{
|
|
51637
|
-
className: "flex items-center justify-between bg-[#F9FAFB] rounded-
|
|
51633
|
+
className: "flex items-center justify-between bg-[#F9FAFB] rounded-[8px] p-[12px] h-[62px]",
|
|
51638
51634
|
children: [
|
|
51639
51635
|
/* @__PURE__ */ v.jsxs("div", { className: "flex flex-col", children: [
|
|
51640
51636
|
/* @__PURE__ */ v.jsx("div", { className: "text-[14px] leading-[18px] font-medium text-[#121212] capitalize", children: n.title }),
|
|
@@ -51881,7 +51877,7 @@ function Jfe({ data: e }) {
|
|
|
51881
51877
|
children: /* @__PURE__ */ v.jsx("div", { className: "flex flex-col gap-[12px]", children: t.map((n, r) => /* @__PURE__ */ v.jsxs(
|
|
51882
51878
|
"div",
|
|
51883
51879
|
{
|
|
51884
|
-
className: "flex items-center justify-between bg-[#F9FAFB] rounded-
|
|
51880
|
+
className: "flex items-center justify-between bg-[#F9FAFB] rounded-[8px] p-[12px] h-[62px]",
|
|
51885
51881
|
children: [
|
|
51886
51882
|
/* @__PURE__ */ v.jsxs("div", { className: "flex flex-col", children: [
|
|
51887
51883
|
/* @__PURE__ */ v.jsx("div", { className: "text-[14px] leading-[18px] font-medium text-[#121212] capitalize", children: n.title }),
|
|
@@ -51982,7 +51978,7 @@ const Cde = [
|
|
|
51982
51978
|
}
|
|
51983
51979
|
};
|
|
51984
51980
|
function epe({ id: e, data: t }) {
|
|
51985
|
-
return e && t && !t[e] && t.current !== void 0 ? /* @__PURE__ */ v.jsx(Ck, { id: e, data: t }) : /* @__PURE__ */ v.jsx("div", { className: "px-
|
|
51981
|
+
return e && t && !t[e] && t.current !== void 0 ? /* @__PURE__ */ v.jsx(Ck, { id: e, data: t }) : /* @__PURE__ */ v.jsx("div", { className: "px-[20px] grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[16px]", children: Cde.map((n) => /* @__PURE__ */ v.jsx(Ck, { id: n }, n)) });
|
|
51986
51982
|
}
|
|
51987
51983
|
function Ck({ id: e, data: t }) {
|
|
51988
51984
|
const n = Dde[e];
|
|
@@ -52028,13 +52024,13 @@ const Nde = [
|
|
|
52028
52024
|
}
|
|
52029
52025
|
];
|
|
52030
52026
|
function jde({ title: e, date: t, rsvp: n, utilisation: r, status: i }) {
|
|
52031
|
-
return /* @__PURE__ */ v.jsxs("div", { className: " bg-[#F8FAFC] h-[106px] px-
|
|
52027
|
+
return /* @__PURE__ */ v.jsxs("div", { className: " bg-[#F8FAFC] h-[106px] px-[12px] mt-3", children: [
|
|
52032
52028
|
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
52033
52029
|
/* @__PURE__ */ v.jsx("div", { className: "text-[16px] leading-[20px] font-semibold text-[#121212]", children: e }),
|
|
52034
52030
|
/* @__PURE__ */ v.jsx(
|
|
52035
52031
|
"div",
|
|
52036
52032
|
{
|
|
52037
|
-
className: `!text-[12px] font-medium leading-[16px] px-
|
|
52033
|
+
className: `!text-[12px] font-medium leading-[16px] px-[8px] py-[4px] ${i === "Completed" ? "text-[#36AB6C] bg-[#E6F7EE]" : i === "Upcoming" ? "text-[#329DFF] bg-[#E6F2FF]" : "text-slate-500 bg-slate-100"}`,
|
|
52038
52034
|
children: i
|
|
52039
52035
|
}
|
|
52040
52036
|
)
|
|
@@ -52102,7 +52098,7 @@ const Rde = [
|
|
|
52102
52098
|
}
|
|
52103
52099
|
];
|
|
52104
52100
|
function Ide({ label: e, value: t, subLabel: n, bgColor: r, textColor: i }) {
|
|
52105
|
-
return /* @__PURE__ */ v.jsxs("div", { className: `rounded-
|
|
52101
|
+
return /* @__PURE__ */ v.jsxs("div", { className: `rounded-[8px] p-[16px] ${r} h-[124px]`, children: [
|
|
52106
52102
|
/* @__PURE__ */ v.jsx("div", { className: `text-[16px] font-medium ${i} leading-[20px]`, children: e }),
|
|
52107
52103
|
/* @__PURE__ */ v.jsx("div", { className: "mt-4 text-[28px] leading-[32px] font-semibold text-[#121212]", children: t }),
|
|
52108
52104
|
/* @__PURE__ */ v.jsx("div", { className: "!text-[12px] leading-[16px] text-[#64748B] mt-2", children: n })
|
|
@@ -52249,7 +52245,7 @@ const Bde = [
|
|
|
52249
52245
|
];
|
|
52250
52246
|
function ipe({ data: e }) {
|
|
52251
52247
|
const t = Array.isArray(e) && e.length > 0 ? e : Bde;
|
|
52252
|
-
return /* @__PURE__ */ v.jsx("div", { className: "px-
|
|
52248
|
+
return /* @__PURE__ */ v.jsx("div", { className: "px-[20px] grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: t.map((n, r) => /* @__PURE__ */ v.jsx($de, { ...n }, r)) });
|
|
52253
52249
|
}
|
|
52254
52250
|
const Dk = ({ value: e = 0, total: t = 1, colorClass: n = "", label: r = "" }) => {
|
|
52255
52251
|
const i = Number(e) || 0, o = Number(t) || 1, a = Math.max(0, Math.min(100, i / o * 100)), s = n === "bg-[#3C81F6]" ? "text-[#8B5CF6]" : n === "bg-[#8B5CF6]" ? "text-[#12B981]" : "text-slate-600";
|
|
@@ -52273,7 +52269,7 @@ const Dk = ({ value: e = 0, total: t = 1, colorClass: n = "", label: r = "" }) =
|
|
|
52273
52269
|
AdminsCount: r = 910
|
|
52274
52270
|
}) => {
|
|
52275
52271
|
const i = e?.total_occupants !== void 0 && e?.total_occupants !== null ? Number(e?.total_occupants) || 0 : Number(t) || 0, o = e?.total_members !== void 0 && e?.total_members !== null ? Number(e?.total_members) || 0 : Number(n) || 0, a = e?.total_admins !== void 0 && e?.total_admins !== null ? Number(e?.total_admins) || 0 : Number(r) || 0, s = (o || 0) + (a || 0);
|
|
52276
|
-
return /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs("div", { className: "bg-white !border-[0.5px] !border-[#EBEBEB] rounded-
|
|
52272
|
+
return /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs("div", { className: "bg-white !border-[0.5px] !border-[#EBEBEB] rounded-[12px] shadow-[0_0_12px_0_#EAF2FF] p-[16px] h-[128px]", children: [
|
|
52277
52273
|
/* @__PURE__ */ v.jsxs(
|
|
52278
52274
|
"div",
|
|
52279
52275
|
{
|
|
@@ -52290,7 +52286,7 @@ const Dk = ({ value: e = 0, total: t = 1, colorClass: n = "", label: r = "" }) =
|
|
|
52290
52286
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] leading-[16px] text-[#64748B] font-normal", children: "Total Occupants" }),
|
|
52291
52287
|
/* @__PURE__ */ v.jsx("div", { className: "text-[28px] leading-[32px] font-medium text-[#121212]", children: i ?? 0 })
|
|
52292
52288
|
] }),
|
|
52293
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-end gap-
|
|
52289
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-end gap-[4px]", children: [
|
|
52294
52290
|
/* @__PURE__ */ v.jsx(
|
|
52295
52291
|
Dk,
|
|
52296
52292
|
{
|
|
@@ -52491,7 +52487,7 @@ function spe({ data: e, title: t, period: n, icon: r }) {
|
|
|
52491
52487
|
period: a,
|
|
52492
52488
|
icon: s,
|
|
52493
52489
|
children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
52494
|
-
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-2 gap-
|
|
52490
|
+
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-2 gap-[24px] mb-6", children: [
|
|
52495
52491
|
/* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-[8px]!", children: [
|
|
52496
52492
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] leading-[16px] text-[#64748B]", children: "Total Orders" }),
|
|
52497
52493
|
/* @__PURE__ */ v.jsx("div", { className: "text-[28px] leading-[32px] font-medium text-[#8B5CF6]", children: l })
|
|
@@ -52506,7 +52502,7 @@ function spe({ data: e, title: t, period: n, icon: r }) {
|
|
|
52506
52502
|
/* @__PURE__ */ v.jsxs(
|
|
52507
52503
|
"div",
|
|
52508
52504
|
{
|
|
52509
|
-
className: `inline-flex items-center gap-
|
|
52505
|
+
className: `w-fit inline-flex items-center gap-[4px] text-[10px] leading-[14px] p-[4px] rounded-[4px] ${d ? "text-[#1FA05B] bg-green-50" : "text-red-600 bg-red-50"}`,
|
|
52510
52506
|
children: [
|
|
52511
52507
|
d ? /* @__PURE__ */ v.jsx(al, {}) : /* @__PURE__ */ v.jsx(ol, {}),
|
|
52512
52508
|
u,
|
|
@@ -52518,7 +52514,7 @@ function spe({ data: e, title: t, period: n, icon: r }) {
|
|
|
52518
52514
|
] })
|
|
52519
52515
|
] }),
|
|
52520
52516
|
/* @__PURE__ */ v.jsx("div", { className: "mt-[16px]", children: i.outlets.map((f, p) => /* @__PURE__ */ v.jsxs("div", { className: "mb-[16px]", children: [
|
|
52521
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between text-sm mb-
|
|
52517
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between text-sm mb-[8px]", children: [
|
|
52522
52518
|
/* @__PURE__ */ v.jsx("div", { className: "text-[#64748B] text-[12px] leading-[16px]", children: f.name }),
|
|
52523
52519
|
/* @__PURE__ */ v.jsxs("div", { className: "font-medium text-[12px] leading-[16px] flex items-center", children: [
|
|
52524
52520
|
/* @__PURE__ */ v.jsxs("div", { className: "text-[#64748B] inline-block", children: [
|
|
@@ -52601,14 +52597,14 @@ function lpe({ data: e }) {
|
|
|
52601
52597
|
period: "Today",
|
|
52602
52598
|
icon: /* @__PURE__ */ v.jsx(ude, { className: "!text-[24px] text-[#8B5CF6]" }),
|
|
52603
52599
|
children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
52604
|
-
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-2 gap-
|
|
52600
|
+
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-2 gap-[24px] mb-6", children: [
|
|
52605
52601
|
/* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-[8px]!", children: [
|
|
52606
52602
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] leading-[16px] text-[#64748B]", children: "Total Bookings" }),
|
|
52607
52603
|
/* @__PURE__ */ v.jsx("div", { className: "text-[28px] leading-[32px] font-medium text-[#8B5CF6]", children: a }),
|
|
52608
52604
|
/* @__PURE__ */ v.jsxs(
|
|
52609
52605
|
"div",
|
|
52610
52606
|
{
|
|
52611
|
-
className: `inline-flex items-center gap-
|
|
52607
|
+
className: `w-fit inline-flex items-center gap-[4px] text-[10px] leading-[14px] p-[4px] rounded-[4px] ${l >= 0 ? "text-[#1FA05B] bg-green-50" : "text-red-600 bg-red-50"}`,
|
|
52612
52608
|
children: [
|
|
52613
52609
|
l >= 0 ? /* @__PURE__ */ v.jsx(al, {}) : /* @__PURE__ */ v.jsx(ol, {}),
|
|
52614
52610
|
l,
|
|
@@ -52628,7 +52624,7 @@ function lpe({ data: e }) {
|
|
|
52628
52624
|
f !== null && /* @__PURE__ */ v.jsxs(
|
|
52629
52625
|
"div",
|
|
52630
52626
|
{
|
|
52631
|
-
className: `inline-flex items-center gap-
|
|
52627
|
+
className: `w-fit inline-flex items-center gap-[4px] text-[10px] leading-[14px] p-[4px] rounded-[4px] ${p ? "text-[#1FA05B] bg-green-50" : "text-red-600 bg-red-50"}`,
|
|
52632
52628
|
children: [
|
|
52633
52629
|
p ? /* @__PURE__ */ v.jsx(al, {}) : /* @__PURE__ */ v.jsx(ol, {}),
|
|
52634
52630
|
f,
|
|
@@ -52640,7 +52636,7 @@ function lpe({ data: e }) {
|
|
|
52640
52636
|
] })
|
|
52641
52637
|
] }),
|
|
52642
52638
|
/* @__PURE__ */ v.jsx("div", { className: "mt-[16px]", children: u.length > 0 ? u.map((h, m) => /* @__PURE__ */ v.jsxs("div", { className: "mb-[16px]", children: [
|
|
52643
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between text-sm mb-
|
|
52639
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-between text-sm mb-[8px]", children: [
|
|
52644
52640
|
/* @__PURE__ */ v.jsx("div", { className: "text-[#64748B] text-[12px] leading-[16px]", children: h?.name }),
|
|
52645
52641
|
/* @__PURE__ */ v.jsxs("div", { className: "font-medium text-[12px] leading-[16px]", children: [
|
|
52646
52642
|
/* @__PURE__ */ v.jsxs("div", { className: "text-[#64748B] inline", children: [
|
|
@@ -52801,7 +52797,7 @@ const Vde = ({ active: e, payload: t }) => {
|
|
|
52801
52797
|
borderRadius: "8px",
|
|
52802
52798
|
fontSize: "12px"
|
|
52803
52799
|
},
|
|
52804
|
-
children: /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
52800
|
+
children: /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px] font-medium", children: [
|
|
52805
52801
|
/* @__PURE__ */ v.jsx(
|
|
52806
52802
|
"div",
|
|
52807
52803
|
{
|
|
@@ -52831,11 +52827,23 @@ function upe({ data: e = null }) {
|
|
|
52831
52827
|
const s = Number(a);
|
|
52832
52828
|
return isNaN(s) ? 0 : s;
|
|
52833
52829
|
}, i = [
|
|
52834
|
-
{
|
|
52830
|
+
{
|
|
52831
|
+
name: "Completed",
|
|
52832
|
+
value: r(n.completed),
|
|
52833
|
+
color: "#10B981"
|
|
52834
|
+
},
|
|
52835
52835
|
{ name: "Open", value: r(n.open), color: "#3B82F6" },
|
|
52836
|
-
{
|
|
52836
|
+
{
|
|
52837
|
+
name: "In Progress",
|
|
52838
|
+
value: r(n.in_progress),
|
|
52839
|
+
color: "#F59E0B"
|
|
52840
|
+
},
|
|
52837
52841
|
{ name: "On Hold", value: r(n.on_hold), color: "#6B7280" },
|
|
52838
|
-
{
|
|
52842
|
+
{
|
|
52843
|
+
name: "Cancelled",
|
|
52844
|
+
value: r(n.cancelled),
|
|
52845
|
+
color: "#EF4444"
|
|
52846
|
+
}
|
|
52839
52847
|
], o = r(n.total_complaints);
|
|
52840
52848
|
return /* @__PURE__ */ v.jsx(
|
|
52841
52849
|
Ke,
|
|
@@ -52844,7 +52852,7 @@ function upe({ data: e = null }) {
|
|
|
52844
52852
|
title: "Ticket Status",
|
|
52845
52853
|
period: "Today",
|
|
52846
52854
|
icon: /* @__PURE__ */ v.jsx(Uv, { className: "!text-[24px] text-[#EF4444]" }),
|
|
52847
|
-
children: /* @__PURE__ */ v.jsxs("div", { className: "flex h-full items-center gap-
|
|
52855
|
+
children: /* @__PURE__ */ v.jsxs("div", { className: "flex h-full items-center gap-[16px]", children: [
|
|
52848
52856
|
/* @__PURE__ */ v.jsxs("div", { className: "w-[202px] h-[170px] relative", children: [
|
|
52849
52857
|
/* @__PURE__ */ v.jsx(zt, { width: "100%", height: "100%", children: /* @__PURE__ */ v.jsxs(Mo, { children: [
|
|
52850
52858
|
/* @__PURE__ */ v.jsx(
|
|
@@ -52883,7 +52891,7 @@ function upe({ data: e = null }) {
|
|
|
52883
52891
|
{
|
|
52884
52892
|
className: "flex items-center justify-between text-[12px] leading-[17px] mt-[12px]",
|
|
52885
52893
|
children: [
|
|
52886
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
52894
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
52887
52895
|
/* @__PURE__ */ v.jsx(
|
|
52888
52896
|
"div",
|
|
52889
52897
|
{
|
|
@@ -52962,8 +52970,8 @@ function Ude(e = []) {
|
|
|
52962
52970
|
});
|
|
52963
52971
|
}
|
|
52964
52972
|
function Nk({ title: e, color: t, rows: n = [], children: r }) {
|
|
52965
|
-
const i = /* @__PURE__ */ v.jsxs("div", { className: "bg-white rounded-
|
|
52966
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
52973
|
+
const i = /* @__PURE__ */ v.jsxs("div", { className: "bg-white rounded-[12px] min-w-[260px] p-[16px]", children: [
|
|
52974
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px] font-medium text-[#121212]", children: [
|
|
52967
52975
|
/* @__PURE__ */ v.jsx(ph, { className: `text-[20px] ${t}` }),
|
|
52968
52976
|
/* @__PURE__ */ v.jsx("div", { children: e ?? "" })
|
|
52969
52977
|
] }),
|
|
@@ -52995,7 +53003,7 @@ function Nk({ title: e, color: t, rows: n = [], children: r }) {
|
|
|
52995
53003
|
);
|
|
52996
53004
|
}
|
|
52997
53005
|
function Kde({ active: e, payload: t }) {
|
|
52998
|
-
return !e || !t?.length ? null : /* @__PURE__ */ v.jsx("div", { className: "rounded-
|
|
53006
|
+
return !e || !t?.length ? null : /* @__PURE__ */ v.jsx("div", { className: "rounded-[8px] bg-[#121212] px-[12px] py-[8px] text-[12px] text-white shadow-lg", children: t.map((n) => /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
52999
53007
|
/* @__PURE__ */ v.jsx(
|
|
53000
53008
|
"span",
|
|
53001
53009
|
{
|
|
@@ -53201,7 +53209,7 @@ const qde = ({ color: e }) => /* @__PURE__ */ v.jsx(
|
|
|
53201
53209
|
marginRight: "6px"
|
|
53202
53210
|
}
|
|
53203
53211
|
}
|
|
53204
|
-
), Gde = ({ active: e, payload: t }) => !e || !t || !t.length ? null : /* @__PURE__ */ v.jsx("div", { className: "bg-black text-white !text-[12px] px-
|
|
53212
|
+
), Gde = ({ active: e, payload: t }) => !e || !t || !t.length ? null : /* @__PURE__ */ v.jsx("div", { className: "bg-black text-white !text-[12px] px-[12px] py-[8px] rounded-[8px] shadow-lg", children: t.map((n, r) => /* @__PURE__ */ v.jsxs(
|
|
53205
53213
|
"div",
|
|
53206
53214
|
{
|
|
53207
53215
|
className: "capitalize flex gap-[4px] items-center leading-relaxed",
|
|
@@ -53225,64 +53233,72 @@ function fpe({ data: e = null }) {
|
|
|
53225
53233
|
const s = Number(a);
|
|
53226
53234
|
return isNaN(s) ? 0 : s;
|
|
53227
53235
|
}, i = [
|
|
53228
|
-
{ name: "Card Entry", value: r(n.card_entry), color: "#329DFF" },
|
|
53229
|
-
{ name: "Mobile Entry", value: r(n.mobile_entry), color: "#8B5CF6" },
|
|
53230
|
-
{ name: "Card Exit", value: r(n.card_exit), color: "#B1D2F0" },
|
|
53231
|
-
{ name: "Mobile Exit", value: r(n.mobile_exit), color: "#DACBFB" }
|
|
53232
|
-
], o = r(n.total);
|
|
53233
|
-
return /* @__PURE__ */ v.jsx(
|
|
53234
|
-
yn,
|
|
53235
53236
|
{
|
|
53236
|
-
|
|
53237
|
-
|
|
53238
|
-
|
|
53239
|
-
|
|
53240
|
-
|
|
53241
|
-
|
|
53242
|
-
|
|
53243
|
-
|
|
53244
|
-
|
|
53245
|
-
|
|
53246
|
-
|
|
53247
|
-
|
|
53248
|
-
|
|
53249
|
-
|
|
53250
|
-
|
|
53251
|
-
|
|
53252
|
-
|
|
53253
|
-
|
|
53254
|
-
|
|
53255
|
-
|
|
53256
|
-
|
|
53257
|
-
|
|
53258
|
-
|
|
53259
|
-
|
|
53260
|
-
|
|
53261
|
-
|
|
53262
|
-
|
|
53263
|
-
|
|
53264
|
-
|
|
53265
|
-
|
|
53266
|
-
|
|
53267
|
-
|
|
53268
|
-
|
|
53269
|
-
|
|
53270
|
-
|
|
53271
|
-
|
|
53237
|
+
name: "Card Entry",
|
|
53238
|
+
value: r(n.card_entry),
|
|
53239
|
+
color: "#329DFF"
|
|
53240
|
+
},
|
|
53241
|
+
{
|
|
53242
|
+
name: "Mobile Entry",
|
|
53243
|
+
value: r(n.mobile_entry),
|
|
53244
|
+
color: "#8B5CF6"
|
|
53245
|
+
},
|
|
53246
|
+
{
|
|
53247
|
+
name: "Card Exit",
|
|
53248
|
+
value: r(n.card_exit),
|
|
53249
|
+
color: "#B1D2F0"
|
|
53250
|
+
},
|
|
53251
|
+
{
|
|
53252
|
+
name: "Mobile Exit",
|
|
53253
|
+
value: r(n.mobile_exit),
|
|
53254
|
+
color: "#DACBFB"
|
|
53255
|
+
}
|
|
53256
|
+
], o = r(n.total);
|
|
53257
|
+
return /* @__PURE__ */ v.jsx(yn, { className: "h-[362px]", title: "Access Overview", titleWeight: "semi-bold", children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col items-center mt-[16px]", children: [
|
|
53258
|
+
/* @__PURE__ */ v.jsxs("div", { className: "relative w-[200px] h-[200px]", children: [
|
|
53259
|
+
/* @__PURE__ */ v.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ v.jsx("div", { className: "w-[130px] h-[130px] rounded-full shadow-[0px_12px_35px_rgba(0,0,0,0.12)]" }) }),
|
|
53260
|
+
/* @__PURE__ */ v.jsx("div", { className: "h-[184px]", children: /* @__PURE__ */ v.jsx(zt, { width: "100%", height: "100%", children: /* @__PURE__ */ v.jsxs(Mo, { children: [
|
|
53261
|
+
/* @__PURE__ */ v.jsx(
|
|
53262
|
+
Vi,
|
|
53263
|
+
{
|
|
53264
|
+
data: i,
|
|
53265
|
+
dataKey: "value",
|
|
53266
|
+
innerRadius: 65,
|
|
53267
|
+
outerRadius: 90,
|
|
53268
|
+
startAngle: 110,
|
|
53269
|
+
endAngle: -250,
|
|
53270
|
+
paddingAngle: 2,
|
|
53271
|
+
stroke: "transparent",
|
|
53272
|
+
children: i.map((a, s) => /* @__PURE__ */ v.jsx(Rn, { fill: a.color }, s))
|
|
53273
|
+
}
|
|
53274
|
+
),
|
|
53275
|
+
/* @__PURE__ */ v.jsx(
|
|
53276
|
+
qt,
|
|
53277
|
+
{
|
|
53278
|
+
content: /* @__PURE__ */ v.jsx(Gde, {}),
|
|
53279
|
+
wrapperStyle: { zIndex: 9999 }
|
|
53280
|
+
}
|
|
53281
|
+
)
|
|
53282
|
+
] }) }) }),
|
|
53283
|
+
/* @__PURE__ */ v.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center pointer-events-none", children: [
|
|
53284
|
+
/* @__PURE__ */ v.jsxs("div", { className: "text-[20px] leading-[24px] font-semibold text-[#121212]", children: [
|
|
53285
|
+
o,
|
|
53286
|
+
"L"
|
|
53272
53287
|
] }),
|
|
53273
|
-
/* @__PURE__ */ v.jsx("div", { className: "
|
|
53274
|
-
/* @__PURE__ */ v.jsx(
|
|
53275
|
-
"div",
|
|
53276
|
-
{
|
|
53277
|
-
className: "w-[16px] h-[7px] ",
|
|
53278
|
-
style: { backgroundColor: a.color }
|
|
53279
|
-
}
|
|
53280
|
-
),
|
|
53281
|
-
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] leading-[16px] text-[#64748B]", children: a.name })
|
|
53282
|
-
] }, a.name)) })
|
|
53288
|
+
/* @__PURE__ */ v.jsx("div", { className: "text-[10px] leading-[15px] text-[#64748B]", children: "Total Access" })
|
|
53283
53289
|
] })
|
|
53284
|
-
}
|
|
53285
|
-
|
|
53290
|
+
] }),
|
|
53291
|
+
/* @__PURE__ */ v.jsx("div", { className: "mt-[32px] grid grid-cols-2 gap-x-[20px] gap-y-[12px] text-[12px] text-[#94A3B8]", children: i.map((a) => /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
53292
|
+
/* @__PURE__ */ v.jsx(
|
|
53293
|
+
"div",
|
|
53294
|
+
{
|
|
53295
|
+
className: "w-[16px] h-[7px] ",
|
|
53296
|
+
style: { backgroundColor: a.color }
|
|
53297
|
+
}
|
|
53298
|
+
),
|
|
53299
|
+
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] leading-[16px] text-[#64748B]", children: a.name })
|
|
53300
|
+
] }, a.name)) })
|
|
53301
|
+
] }) });
|
|
53286
53302
|
}
|
|
53287
53303
|
function ppe({
|
|
53288
53304
|
title: e = "Access",
|
|
@@ -53290,7 +53306,7 @@ function ppe({
|
|
|
53290
53306
|
height: n = "h-[362px]"
|
|
53291
53307
|
}) {
|
|
53292
53308
|
const r = (i) => i == null ? "0" : Number(i).toLocaleString();
|
|
53293
|
-
return /* @__PURE__ */ v.jsx(yn, { className: n, title: e, titleWeight: "semi-bold", children: /* @__PURE__ */ v.jsxs("div", { className: "rounded-
|
|
53309
|
+
return /* @__PURE__ */ v.jsx(yn, { className: n, title: e, titleWeight: "semi-bold", children: /* @__PURE__ */ v.jsxs("div", { className: "rounded-[12px] overflow-hidden mt-[16px]", children: [
|
|
53294
53310
|
/* @__PURE__ */ v.jsxs("div", { className: "grid grid-cols-2 bg-[#F8FAFC] py-[8px] px-[12px] text-[12px] leading-[16px] font-medium text-[#64748B]", children: [
|
|
53295
53311
|
/* @__PURE__ */ v.jsx("div", { children: "Point" }),
|
|
53296
53312
|
/* @__PURE__ */ v.jsx("div", { className: "text-right", children: "Access" })
|
|
@@ -53370,35 +53386,18 @@ function Lo({
|
|
|
53370
53386
|
title: t = "No Data Available",
|
|
53371
53387
|
description: n = "Catch up all the data. Change the date range to see the data."
|
|
53372
53388
|
}) {
|
|
53373
|
-
return /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col items-center justify-center h-full text-center px-
|
|
53374
|
-
/* @__PURE__ */ v.jsx(
|
|
53375
|
-
"img",
|
|
53376
|
-
{
|
|
53377
|
-
src: e,
|
|
53378
|
-
alt: "no data",
|
|
53379
|
-
className: "w-32 h-32 mb-4 opacity-80"
|
|
53380
|
-
}
|
|
53381
|
-
),
|
|
53389
|
+
return /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col items-center justify-center h-full text-center px-[16px]", children: [
|
|
53390
|
+
/* @__PURE__ */ v.jsx("img", { src: e, alt: "no data", className: "w-32 h-32 mb-4 opacity-80" }),
|
|
53382
53391
|
/* @__PURE__ */ v.jsx("div", { className: "text-[16px] font-semibold text-gray-900 mb-[4px]", children: t }),
|
|
53383
53392
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] text-gray-500 max-w-[260px]", children: n })
|
|
53384
53393
|
] });
|
|
53385
53394
|
}
|
|
53386
|
-
const Xde = ({ active: e, payload: t }) => e && t && t.length ? /* @__PURE__ */ v.jsx("div", { className: "bg-black text-white px-
|
|
53395
|
+
const Xde = ({ active: e, payload: t }) => e && t && t.length ? /* @__PURE__ */ v.jsx("div", { className: "bg-black text-white px-[16px] py-[8px] rounded-[8px] text-sm shadow-lg", children: /* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
53387
53396
|
/* @__PURE__ */ v.jsx("div", { children: t[0].payload.name }),
|
|
53388
53397
|
/* @__PURE__ */ v.jsx("div", { className: "font-semibold", children: t[0].value })
|
|
53389
53398
|
] }) }) : null, Qde = ({ x: e, y: t, payload: n }) => {
|
|
53390
53399
|
const r = n.value.split(" ");
|
|
53391
|
-
return /* @__PURE__ */ v.jsx("g", { transform: `translate(${e},${t})`, children: /* @__PURE__ */ v.jsx(
|
|
53392
|
-
"text",
|
|
53393
|
-
{
|
|
53394
|
-
x: -85,
|
|
53395
|
-
y: 0,
|
|
53396
|
-
textAnchor: "start",
|
|
53397
|
-
fill: "#121212",
|
|
53398
|
-
fontSize: 14,
|
|
53399
|
-
children: r.map((i, o) => /* @__PURE__ */ v.jsx("tspan", { x: -85, dy: o === 0 ? 0 : 16, children: i }, o))
|
|
53400
|
-
}
|
|
53401
|
-
) });
|
|
53400
|
+
return /* @__PURE__ */ v.jsx("g", { transform: `translate(${e},${t})`, children: /* @__PURE__ */ v.jsx("text", { x: -85, y: 0, textAnchor: "start", fill: "#121212", fontSize: 14, children: r.map((i, o) => /* @__PURE__ */ v.jsx("tspan", { x: -85, dy: o === 0 ? 0 : 16, children: i }, o)) }) });
|
|
53402
53401
|
};
|
|
53403
53402
|
function mpe({ data: e = [] }) {
|
|
53404
53403
|
const t = e && e.length > 0, n = e.map((r) => ({
|
|
@@ -53463,7 +53462,7 @@ function gpe({
|
|
|
53463
53462
|
}) {
|
|
53464
53463
|
const a = parseFloat(i), s = a >= 0, l = s ? "#16A34A" : "#DC2626";
|
|
53465
53464
|
return /* @__PURE__ */ v.jsxs("div", { className: "relative bg-white rounded-[12px] shadow-[0_0_12px_0_#EAF2FF] p-[16px]", children: [
|
|
53466
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
53465
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
53467
53466
|
e && /* @__PURE__ */ v.jsx(
|
|
53468
53467
|
"div",
|
|
53469
53468
|
{
|
|
@@ -53480,7 +53479,7 @@ function gpe({
|
|
|
53480
53479
|
/* @__PURE__ */ v.jsx("div", { className: "text-[16px] leading-[20px] font-medium text-[#64748B]", children: n })
|
|
53481
53480
|
] }),
|
|
53482
53481
|
/* @__PURE__ */ v.jsx("div", { className: "mt-[16px] text-[28px] leading-[32px] font-medium text-[#121212]", children: r }),
|
|
53483
|
-
(i || o) && /* @__PURE__ */ v.jsxs("div", { className: "mt-[12px] flex items-center gap-
|
|
53482
|
+
(i || o) && /* @__PURE__ */ v.jsxs("div", { className: "mt-[12px] flex items-center gap-[8px]", children: [
|
|
53484
53483
|
i && /* @__PURE__ */ v.jsxs(
|
|
53485
53484
|
"div",
|
|
53486
53485
|
{
|
|
@@ -53538,7 +53537,7 @@ const vpe = ({ data: e = [], onDateChange: t }) => {
|
|
|
53538
53537
|
onNextClick: d,
|
|
53539
53538
|
onCalendarClick: f,
|
|
53540
53539
|
children: [
|
|
53541
|
-
i && /* @__PURE__ */ v.jsx("div", { className: "anarock-datepicker absolute top-[70px] right-[24px] z-50 rounded-
|
|
53540
|
+
i && /* @__PURE__ */ v.jsx("div", { className: "anarock-datepicker absolute top-[70px] right-[24px] z-50 rounded-[8px] bg-white shadow-lg", children: /* @__PURE__ */ v.jsx(
|
|
53542
53541
|
oD,
|
|
53543
53542
|
{
|
|
53544
53543
|
selected: n,
|
|
@@ -53930,7 +53929,7 @@ function _pe({ data: e, currencyType: t }) {
|
|
|
53930
53929
|
title: "Amenity Wise Revenue",
|
|
53931
53930
|
titleWeight: "semi-bold",
|
|
53932
53931
|
className: "h-[362px]",
|
|
53933
|
-
children: /* @__PURE__ */ v.jsx("div", { className: "grid grid-cols-12 gap-
|
|
53932
|
+
children: /* @__PURE__ */ v.jsx("div", { className: "grid grid-cols-12 gap-[24px] items-center h-full", children: n ? /* @__PURE__ */ v.jsx("div", { className: "col-span-12 flex items-center justify-center h-[240px]", children: /* @__PURE__ */ v.jsx(
|
|
53934
53933
|
Lo,
|
|
53935
53934
|
{
|
|
53936
53935
|
title: "No Amenity Found",
|
|
@@ -53979,9 +53978,9 @@ function _pe({ data: e, currencyType: t }) {
|
|
|
53979
53978
|
/* @__PURE__ */ v.jsx("div", { className: "divide-y divide-[#F1F5F9]", children: i?.map?.((l, c) => /* @__PURE__ */ v.jsxs(
|
|
53980
53979
|
"div",
|
|
53981
53980
|
{
|
|
53982
|
-
className: "grid grid-cols-2 px-
|
|
53981
|
+
className: "grid grid-cols-2 px-[16px] py-[16px] text-[14px] text-[#121212]",
|
|
53983
53982
|
children: [
|
|
53984
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
53983
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[12px]", children: [
|
|
53985
53984
|
/* @__PURE__ */ v.jsx(
|
|
53986
53985
|
"span",
|
|
53987
53986
|
{
|
|
@@ -54050,16 +54049,16 @@ const of = ["#8CB33E", "#F59E0B", "#3B82F6", "#06B6D4", "#CFCFCF"], rfe = [
|
|
|
54050
54049
|
] })
|
|
54051
54050
|
] }),
|
|
54052
54051
|
/* @__PURE__ */ v.jsx("div", { className: "flex-1 max-w-[280px]", children: /* @__PURE__ */ v.jsxs("div", { className: "rounded-[12px] overflow-hidden bg-white", children: [
|
|
54053
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between px-
|
|
54052
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center justify-between px-[16px] py-[12px] bg-[#F8FAFC]", children: [
|
|
54054
54053
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] font-medium text-[#64748B]", children: "Asset" }),
|
|
54055
54054
|
/* @__PURE__ */ v.jsx("div", { className: "text-[12px] font-medium text-[#64748B]", children: "Count" })
|
|
54056
54055
|
] }),
|
|
54057
54056
|
n.map((i, o) => /* @__PURE__ */ v.jsxs(
|
|
54058
54057
|
"div",
|
|
54059
54058
|
{
|
|
54060
|
-
className: "flex items-center justify-between px-
|
|
54059
|
+
className: "flex items-center justify-between px-[16px] py-[12px] border-t border-[#F1F5F9]",
|
|
54061
54060
|
children: [
|
|
54062
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
54061
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
54063
54062
|
/* @__PURE__ */ v.jsx(
|
|
54064
54063
|
"div",
|
|
54065
54064
|
{
|
|
@@ -54078,11 +54077,46 @@ const of = ["#8CB33E", "#F59E0B", "#3B82F6", "#06B6D4", "#CFCFCF"], rfe = [
|
|
|
54078
54077
|
] }) });
|
|
54079
54078
|
}, Ope = ({ data: e }) => {
|
|
54080
54079
|
const [t, n] = Fe({}), r = [
|
|
54081
|
-
{
|
|
54082
|
-
|
|
54083
|
-
|
|
54084
|
-
|
|
54085
|
-
|
|
54080
|
+
{
|
|
54081
|
+
name: "Lifts",
|
|
54082
|
+
Cancelled: 55,
|
|
54083
|
+
Closed: 45,
|
|
54084
|
+
Open: 50,
|
|
54085
|
+
OnHold: 20,
|
|
54086
|
+
InProgress: 10
|
|
54087
|
+
},
|
|
54088
|
+
{
|
|
54089
|
+
name: "Fire Systems",
|
|
54090
|
+
Cancelled: 15,
|
|
54091
|
+
Closed: 45,
|
|
54092
|
+
Open: 15,
|
|
54093
|
+
OnHold: 8,
|
|
54094
|
+
InProgress: 5
|
|
54095
|
+
},
|
|
54096
|
+
{
|
|
54097
|
+
name: "Generators",
|
|
54098
|
+
Cancelled: 12,
|
|
54099
|
+
Closed: 45,
|
|
54100
|
+
Open: 75,
|
|
54101
|
+
OnHold: 18,
|
|
54102
|
+
InProgress: 7
|
|
54103
|
+
},
|
|
54104
|
+
{
|
|
54105
|
+
name: "HVAC",
|
|
54106
|
+
Cancelled: 45,
|
|
54107
|
+
Closed: 80,
|
|
54108
|
+
Open: 30,
|
|
54109
|
+
OnHold: 22,
|
|
54110
|
+
InProgress: 12
|
|
54111
|
+
},
|
|
54112
|
+
{
|
|
54113
|
+
name: "Others",
|
|
54114
|
+
Cancelled: 18,
|
|
54115
|
+
Closed: 18,
|
|
54116
|
+
Open: 45,
|
|
54117
|
+
OnHold: 9,
|
|
54118
|
+
InProgress: 4
|
|
54119
|
+
}
|
|
54086
54120
|
], i = B.useMemo(() => e ? Array.isArray(e) && e.length === 0 ? [] : e : r, [e]), o = (a) => {
|
|
54087
54121
|
const { dataKey: s } = a;
|
|
54088
54122
|
n((l) => ({
|
|
@@ -54090,19 +54124,27 @@ const of = ["#8CB33E", "#F59E0B", "#3B82F6", "#06B6D4", "#CFCFCF"], rfe = [
|
|
|
54090
54124
|
[s]: !l[s]
|
|
54091
54125
|
}));
|
|
54092
54126
|
};
|
|
54093
|
-
return Array.isArray(e) && e.length === 0 ? /* @__PURE__ */ v.jsx(
|
|
54094
|
-
|
|
54127
|
+
return Array.isArray(e) && e.length === 0 ? /* @__PURE__ */ v.jsx(
|
|
54128
|
+
yn,
|
|
54095
54129
|
{
|
|
54096
|
-
title: "
|
|
54097
|
-
|
|
54130
|
+
title: "Maintenance Status",
|
|
54131
|
+
titleWeight: "semi-bold",
|
|
54132
|
+
className: "h-full",
|
|
54133
|
+
children: /* @__PURE__ */ v.jsx("div", { className: "w-full h-[260px] flex items-center justify-center", children: /* @__PURE__ */ v.jsx(
|
|
54134
|
+
Lo,
|
|
54135
|
+
{
|
|
54136
|
+
title: "No Maintenance Assets Status Found",
|
|
54137
|
+
description: "Catch up all the data. Change the date range to see the data."
|
|
54138
|
+
}
|
|
54139
|
+
) })
|
|
54098
54140
|
}
|
|
54099
|
-
)
|
|
54141
|
+
) : /* @__PURE__ */ v.jsx(yn, { title: "Maintenance Status", titleWeight: "semi-bold", className: "h-full", children: /* @__PURE__ */ v.jsx("div", { className: "w-full h-[260px] flex items-center justify-center", children: Array.isArray(e) && e.length === 0 ? /* @__PURE__ */ v.jsx("div", { className: "text-[#94A3B8] text-sm", children: "No Data Found" }) : /* @__PURE__ */ v.jsx("div", { className: "relative w-full h-[297px] mt-[20px]", children: /* @__PURE__ */ v.jsx(zt, { width: "100%", height: "100%", children: /* @__PURE__ */ v.jsxs(
|
|
54100
54142
|
ga,
|
|
54101
54143
|
{
|
|
54102
54144
|
data: i,
|
|
54103
54145
|
barSize: 54,
|
|
54104
54146
|
barCategoryGap: "40%",
|
|
54105
|
-
margin: { top: 20, right: 20, left: -
|
|
54147
|
+
margin: { top: 20, right: 20, left: -20, bottom: 0 },
|
|
54106
54148
|
children: [
|
|
54107
54149
|
/* @__PURE__ */ v.jsx(
|
|
54108
54150
|
Jr,
|
|
@@ -54147,11 +54189,11 @@ const of = ["#8CB33E", "#F59E0B", "#3B82F6", "#06B6D4", "#CFCFCF"], rfe = [
|
|
|
54147
54189
|
verticalAlign: "bottom",
|
|
54148
54190
|
align: "center",
|
|
54149
54191
|
onClick: o,
|
|
54150
|
-
content: ({ payload: a }) => /* @__PURE__ */ v.jsx("div", { className: "flex items-center justify-center gap-
|
|
54192
|
+
content: ({ payload: a }) => /* @__PURE__ */ v.jsx("div", { className: "flex items-center justify-center gap-[16px] pt-4 flex-wrap", children: a.map((s, l) => /* @__PURE__ */ v.jsxs(
|
|
54151
54193
|
"div",
|
|
54152
54194
|
{
|
|
54153
54195
|
onClick: () => o({ dataKey: s.dataKey }),
|
|
54154
|
-
className: "flex items-center gap-
|
|
54196
|
+
className: "flex items-center gap-[8px] cursor-pointer",
|
|
54155
54197
|
children: [
|
|
54156
54198
|
/* @__PURE__ */ v.jsx(
|
|
54157
54199
|
"div",
|
|
@@ -54180,11 +54222,52 @@ const of = ["#8CB33E", "#F59E0B", "#3B82F6", "#06B6D4", "#CFCFCF"], rfe = [
|
|
|
54180
54222
|
)) })
|
|
54181
54223
|
}
|
|
54182
54224
|
),
|
|
54183
|
-
/* @__PURE__ */ v.jsx(
|
|
54184
|
-
|
|
54185
|
-
|
|
54186
|
-
|
|
54187
|
-
|
|
54225
|
+
/* @__PURE__ */ v.jsx(
|
|
54226
|
+
Wn,
|
|
54227
|
+
{
|
|
54228
|
+
dataKey: "Open",
|
|
54229
|
+
stackId: "a",
|
|
54230
|
+
fill: "#3B82F6",
|
|
54231
|
+
hide: t.Open
|
|
54232
|
+
}
|
|
54233
|
+
),
|
|
54234
|
+
/* @__PURE__ */ v.jsx(
|
|
54235
|
+
Wn,
|
|
54236
|
+
{
|
|
54237
|
+
dataKey: "Closed",
|
|
54238
|
+
stackId: "a",
|
|
54239
|
+
fill: "#10B981",
|
|
54240
|
+
hide: t.Closed
|
|
54241
|
+
}
|
|
54242
|
+
),
|
|
54243
|
+
/* @__PURE__ */ v.jsx(
|
|
54244
|
+
Wn,
|
|
54245
|
+
{
|
|
54246
|
+
dataKey: "Cancelled",
|
|
54247
|
+
stackId: "a",
|
|
54248
|
+
fill: "#B91C1C",
|
|
54249
|
+
hide: t.Cancelled
|
|
54250
|
+
}
|
|
54251
|
+
),
|
|
54252
|
+
/* @__PURE__ */ v.jsx(
|
|
54253
|
+
Wn,
|
|
54254
|
+
{
|
|
54255
|
+
dataKey: "OnHold",
|
|
54256
|
+
stackId: "a",
|
|
54257
|
+
fill: "#64748B",
|
|
54258
|
+
hide: t.OnHold
|
|
54259
|
+
}
|
|
54260
|
+
),
|
|
54261
|
+
/* @__PURE__ */ v.jsx(
|
|
54262
|
+
Wn,
|
|
54263
|
+
{
|
|
54264
|
+
dataKey: "InProgress",
|
|
54265
|
+
stackId: "a",
|
|
54266
|
+
fill: "#F59E0B",
|
|
54267
|
+
hide: t.InProgress,
|
|
54268
|
+
name: "In Progress"
|
|
54269
|
+
}
|
|
54270
|
+
)
|
|
54188
54271
|
]
|
|
54189
54272
|
}
|
|
54190
54273
|
) }) }) }) });
|
|
@@ -54291,7 +54374,7 @@ function Ppe({ incidentReports: e, incidentReportsDetails: t }) {
|
|
|
54291
54374
|
return /* @__PURE__ */ v.jsxs(
|
|
54292
54375
|
"div",
|
|
54293
54376
|
{
|
|
54294
|
-
className: "flex items-center justify-between p-
|
|
54377
|
+
className: "flex items-center justify-between p-[12px] bg-[#FAFBFD] rounded-md",
|
|
54295
54378
|
children: [
|
|
54296
54379
|
/* @__PURE__ */ v.jsx("div", { className: "flex items-center gap-[8px]", children: /* @__PURE__ */ v.jsx("div", { className: "text-gray-700 font-medium", children: o?.incident_code }) }),
|
|
54297
54380
|
/* @__PURE__ */ v.jsx(
|
|
@@ -54352,13 +54435,20 @@ function kpe({
|
|
|
54352
54435
|
pageOptions: l = [10, 20, 30, 40, 50]
|
|
54353
54436
|
}) {
|
|
54354
54437
|
const c = Array.isArray(t) ? t : [], u = Array.isArray(e) ? e : [], d = n > 0 ? Math.ceil(c.length / n) : 1, f = s || d, p = c, h = n - p.length > 0 ? n - p.length : 0, m = a === 0 && c.length === 0;
|
|
54355
|
-
return console.log("safeData:", c), console.log("currentData:", p), /* @__PURE__ */ v.jsxs("div", { className: "w-full bg-white rounded-
|
|
54438
|
+
return console.log("safeData:", c), console.log("currentData:", p), /* @__PURE__ */ v.jsxs("div", { className: "w-full bg-white rounded-[12px] h-[390px] shadow-md overflow-hidden flex flex-col", children: [
|
|
54356
54439
|
/* @__PURE__ */ v.jsx(
|
|
54357
54440
|
"div",
|
|
54358
54441
|
{
|
|
54359
54442
|
className: "grid bg-[#354A5E] text-white text-[16px] leading-[20px] font-medium",
|
|
54360
54443
|
style: { gridTemplateColumns: `repeat(${u.length}, 1fr)` },
|
|
54361
|
-
children: u.map((g, b) => /* @__PURE__ */ v.jsx(
|
|
54444
|
+
children: u.map((g, b) => /* @__PURE__ */ v.jsx(
|
|
54445
|
+
"div",
|
|
54446
|
+
{
|
|
54447
|
+
className: "px-[24px] py-[16px] text-[16px] leading-[20px] whitespace-nowrap text-center",
|
|
54448
|
+
children: g.label
|
|
54449
|
+
},
|
|
54450
|
+
b
|
|
54451
|
+
))
|
|
54362
54452
|
}
|
|
54363
54453
|
),
|
|
54364
54454
|
/* @__PURE__ */ v.jsx("div", { className: "flex-1 overflow-y-auto", children: m ? /* @__PURE__ */ v.jsx(
|
|
@@ -54380,11 +54470,11 @@ function kpe({
|
|
|
54380
54470
|
return /* @__PURE__ */ v.jsx(
|
|
54381
54471
|
"div",
|
|
54382
54472
|
{
|
|
54383
|
-
className: `px-
|
|
54473
|
+
className: `px-[24px] py-[16px] flex items-center justify-center ${w === 0 ? "bg-white" : "bg-gray-50"}`,
|
|
54384
54474
|
children: _ ? /* @__PURE__ */ v.jsx(
|
|
54385
54475
|
"div",
|
|
54386
54476
|
{
|
|
54387
|
-
className: `inline-block px-
|
|
54477
|
+
className: `inline-block px-[12px] py-[4px] rounded-full text-[14px] font-medium ${E}`,
|
|
54388
54478
|
children: x
|
|
54389
54479
|
}
|
|
54390
54480
|
) : /* @__PURE__ */ v.jsx("div", { children: x ?? "-" })
|
|
@@ -54405,7 +54495,7 @@ function kpe({
|
|
|
54405
54495
|
children: u.map((S, w) => /* @__PURE__ */ v.jsx(
|
|
54406
54496
|
"div",
|
|
54407
54497
|
{
|
|
54408
|
-
className: `px-
|
|
54498
|
+
className: `px-[24px] py-[16px] ${w === 0 ? "bg-white" : "bg-gray-50"}`,
|
|
54409
54499
|
children: " "
|
|
54410
54500
|
},
|
|
54411
54501
|
w
|
|
@@ -54414,8 +54504,8 @@ function kpe({
|
|
|
54414
54504
|
`empty-${b}`
|
|
54415
54505
|
))
|
|
54416
54506
|
] }) }),
|
|
54417
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-end items-center px-
|
|
54418
|
-
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-
|
|
54507
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex justify-end items-center px-[24px] py-[16px] text-sm bg-white border-t border-[#F0F0F0] gap-[32px]", children: [
|
|
54508
|
+
/* @__PURE__ */ v.jsxs("div", { className: "flex items-center gap-[8px] text-gray-600 text-[14px]", children: [
|
|
54419
54509
|
/* @__PURE__ */ v.jsx("div", { children: "Rows per page:" }),
|
|
54420
54510
|
/* @__PURE__ */ v.jsx(
|
|
54421
54511
|
"select",
|
|
@@ -54424,14 +54514,14 @@ function kpe({
|
|
|
54424
54514
|
onChange: (g) => {
|
|
54425
54515
|
r(Number(g.target.value)), o(1);
|
|
54426
54516
|
},
|
|
54427
|
-
className: "border rounded px-
|
|
54517
|
+
className: "border rounded px-[8px] py-[4px]",
|
|
54428
54518
|
children: l.map((g, b) => /* @__PURE__ */ v.jsx("option", { value: g, children: g }, b))
|
|
54429
54519
|
}
|
|
54430
54520
|
),
|
|
54431
54521
|
/* @__PURE__ */ v.jsxs("div", { className: "ml-4 text-[14px]", children: [
|
|
54432
54522
|
c?.length === 0 ? "0–0" : `1–${c?.length}`,
|
|
54523
|
+
" of",
|
|
54433
54524
|
" ",
|
|
54434
|
-
"of ",
|
|
54435
54525
|
a || c?.length
|
|
54436
54526
|
] })
|
|
54437
54527
|
] }),
|
|
@@ -54441,7 +54531,7 @@ function kpe({
|
|
|
54441
54531
|
{
|
|
54442
54532
|
onClick: () => o(1),
|
|
54443
54533
|
disabled: i === 1,
|
|
54444
|
-
className: "p-
|
|
54534
|
+
className: "p-[8px] rounded hover:bg-gray-100 disabled:opacity-40",
|
|
54445
54535
|
children: /* @__PURE__ */ v.jsx(nde, { size: 18 })
|
|
54446
54536
|
}
|
|
54447
54537
|
),
|
|
@@ -54450,7 +54540,7 @@ function kpe({
|
|
|
54450
54540
|
{
|
|
54451
54541
|
onClick: () => o((g) => g - 1),
|
|
54452
54542
|
disabled: i === 1,
|
|
54453
|
-
className: "p-
|
|
54543
|
+
className: "p-[8px] rounded hover:bg-gray-100 disabled:opacity-40",
|
|
54454
54544
|
children: /* @__PURE__ */ v.jsx(nI, { size: 18 })
|
|
54455
54545
|
}
|
|
54456
54546
|
),
|
|
@@ -54459,7 +54549,7 @@ function kpe({
|
|
|
54459
54549
|
{
|
|
54460
54550
|
onClick: () => o((g) => g + 1),
|
|
54461
54551
|
disabled: i === f,
|
|
54462
|
-
className: "p-
|
|
54552
|
+
className: "p-[8px] rounded hover:bg-gray-100 disabled:opacity-40",
|
|
54463
54553
|
children: /* @__PURE__ */ v.jsx(rI, { size: 18 })
|
|
54464
54554
|
}
|
|
54465
54555
|
),
|
|
@@ -54468,7 +54558,7 @@ function kpe({
|
|
|
54468
54558
|
{
|
|
54469
54559
|
onClick: () => o(f),
|
|
54470
54560
|
disabled: i === f,
|
|
54471
|
-
className: "p-
|
|
54561
|
+
className: "p-[8px] rounded hover:bg-gray-100 disabled:opacity-40",
|
|
54472
54562
|
children: /* @__PURE__ */ v.jsx(ide, { size: 18 })
|
|
54473
54563
|
}
|
|
54474
54564
|
)
|