omnieye-theme-studio 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +996 -987
- package/dist/index.js +19 -19
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as p, jsx as i, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { Box as S, Collapse as
|
|
5
|
-
import
|
|
2
|
+
import * as qe from "react";
|
|
3
|
+
import Ft, { useMemo as Zo, useState as Z, useEffect as _e, useRef as Te, useLayoutEffect as Fr } from "react";
|
|
4
|
+
import { Box as S, Collapse as ei, Button as ke, Tooltip as ze, Typography as ue, Menu as ti, MenuItem as mt, Dialog as yt, DialogTitle as Wt, DialogContent as zt, TextField as Zr, DialogActions as _t, InputBase as Wr, FormControlLabel as Et, Switch as bt, Popover as ri, Slider as ni, IconButton as $r, Select as oi } from "@mui/material";
|
|
5
|
+
import ii from "@emotion/styled";
|
|
6
6
|
import "@emotion/react";
|
|
7
|
-
import { createPortal as
|
|
8
|
-
const
|
|
9
|
-
let e =
|
|
7
|
+
import { createPortal as ai } from "react-dom";
|
|
8
|
+
const en = (e) => e, si = () => {
|
|
9
|
+
let e = en;
|
|
10
10
|
return {
|
|
11
11
|
configure(r) {
|
|
12
12
|
e = r;
|
|
@@ -15,23 +15,23 @@ const Zr = (e) => e, ai = () => {
|
|
|
15
15
|
return e(r);
|
|
16
16
|
},
|
|
17
17
|
reset() {
|
|
18
|
-
e =
|
|
18
|
+
e = en;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
},
|
|
22
|
-
function
|
|
21
|
+
}, li = si();
|
|
22
|
+
function st(e, ...r) {
|
|
23
23
|
const t = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
24
24
|
return r.forEach((n) => t.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${t} for the full message.`;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function lt(e) {
|
|
27
27
|
if (typeof e != "string")
|
|
28
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
28
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : st(7));
|
|
29
29
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function di(e) {
|
|
32
32
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var Lt = { exports: {} }, Nt = { exports: {} }, ne = {};
|
|
35
35
|
/** @license React v16.13.1
|
|
36
36
|
* react-is.production.min.js
|
|
37
37
|
*
|
|
@@ -40,10 +40,10 @@ var _t = { exports: {} }, Lt = { exports: {} }, ne = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
46
|
-
|
|
43
|
+
var tn;
|
|
44
|
+
function ci() {
|
|
45
|
+
if (tn) return ne;
|
|
46
|
+
tn = 1;
|
|
47
47
|
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, u = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
|
|
48
48
|
function H(k) {
|
|
49
49
|
if (typeof k == "object" && k !== null) {
|
|
@@ -115,9 +115,9 @@ var oe = {};
|
|
|
115
115
|
* This source code is licensed under the MIT license found in the
|
|
116
116
|
* LICENSE file in the root directory of this source tree.
|
|
117
117
|
*/
|
|
118
|
-
var
|
|
119
|
-
function
|
|
120
|
-
return
|
|
118
|
+
var rn;
|
|
119
|
+
function pi() {
|
|
120
|
+
return rn || (rn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
121
121
|
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, u = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
|
|
122
122
|
function H(_) {
|
|
123
123
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -198,19 +198,19 @@ function ci() {
|
|
|
198
198
|
oe.AsyncMode = k, oe.ConcurrentMode = R, oe.ContextConsumer = z, oe.ContextProvider = I, oe.Element = X, oe.ForwardRef = Q, oe.Fragment = Y, oe.Lazy = d, oe.Memo = B, oe.Portal = A, oe.Profiler = L, oe.StrictMode = N, oe.Suspense = K, oe.isAsyncMode = J, oe.isConcurrentMode = P, oe.isContextConsumer = D, oe.isContextProvider = q, oe.isElement = V, oe.isForwardRef = G, oe.isFragment = M, oe.isLazy = w, oe.isMemo = O, oe.isPortal = F, oe.isProfiler = E, oe.isStrictMode = W, oe.isSuspense = te, oe.isValidElementType = H, oe.typeOf = C;
|
|
199
199
|
})()), oe;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
function
|
|
203
|
-
return
|
|
201
|
+
var nn;
|
|
202
|
+
function Ln() {
|
|
203
|
+
return nn || (nn = 1, process.env.NODE_ENV === "production" ? Nt.exports = ci() : Nt.exports = pi()), Nt.exports;
|
|
204
204
|
}
|
|
205
205
|
/*
|
|
206
206
|
object-assign
|
|
207
207
|
(c) Sindre Sorhus
|
|
208
208
|
@license MIT
|
|
209
209
|
*/
|
|
210
|
-
var
|
|
211
|
-
function
|
|
212
|
-
if (
|
|
213
|
-
|
|
210
|
+
var mr, on;
|
|
211
|
+
function ui() {
|
|
212
|
+
if (on) return mr;
|
|
213
|
+
on = 1;
|
|
214
214
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
215
215
|
function n(s) {
|
|
216
216
|
if (s == null)
|
|
@@ -239,7 +239,7 @@ function pi() {
|
|
|
239
239
|
return !1;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
return
|
|
242
|
+
return mr = o() ? Object.assign : function(s, a) {
|
|
243
243
|
for (var l, c = n(s), g, f = 1; f < arguments.length; f++) {
|
|
244
244
|
l = Object(arguments[f]);
|
|
245
245
|
for (var m in l)
|
|
@@ -251,27 +251,27 @@ function pi() {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
return c;
|
|
254
|
-
},
|
|
255
|
-
}
|
|
256
|
-
var mr, on;
|
|
257
|
-
function Wr() {
|
|
258
|
-
if (on) return mr;
|
|
259
|
-
on = 1;
|
|
260
|
-
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
261
|
-
return mr = e, mr;
|
|
254
|
+
}, mr;
|
|
262
255
|
}
|
|
263
256
|
var yr, an;
|
|
264
|
-
function
|
|
265
|
-
|
|
257
|
+
function zr() {
|
|
258
|
+
if (an) return yr;
|
|
259
|
+
an = 1;
|
|
260
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
261
|
+
return yr = e, yr;
|
|
266
262
|
}
|
|
267
263
|
var br, sn;
|
|
268
|
-
function
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
function Nn() {
|
|
265
|
+
return sn || (sn = 1, br = Function.call.bind(Object.prototype.hasOwnProperty)), br;
|
|
266
|
+
}
|
|
267
|
+
var xr, ln;
|
|
268
|
+
function fi() {
|
|
269
|
+
if (ln) return xr;
|
|
270
|
+
ln = 1;
|
|
271
271
|
var e = function() {
|
|
272
272
|
};
|
|
273
273
|
if (process.env.NODE_ENV !== "production") {
|
|
274
|
-
var r = /* @__PURE__ */
|
|
274
|
+
var r = /* @__PURE__ */ zr(), t = {}, n = /* @__PURE__ */ Nn();
|
|
275
275
|
e = function(s) {
|
|
276
276
|
var a = "Warning: " + s;
|
|
277
277
|
typeof console < "u" && console.error(a);
|
|
@@ -311,13 +311,13 @@ function ui() {
|
|
|
311
311
|
}
|
|
312
312
|
return o.resetWarningCache = function() {
|
|
313
313
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
314
|
-
},
|
|
314
|
+
}, xr = o, xr;
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
318
|
-
if (
|
|
319
|
-
|
|
320
|
-
var e =
|
|
316
|
+
var vr, dn;
|
|
317
|
+
function hi() {
|
|
318
|
+
if (dn) return vr;
|
|
319
|
+
dn = 1;
|
|
320
|
+
var e = Ln(), r = ui(), t = /* @__PURE__ */ zr(), n = /* @__PURE__ */ Nn(), o = /* @__PURE__ */ fi(), s = function() {
|
|
321
321
|
};
|
|
322
322
|
process.env.NODE_ENV !== "production" && (s = function(l) {
|
|
323
323
|
var c = "Warning: " + l;
|
|
@@ -330,7 +330,7 @@ function fi() {
|
|
|
330
330
|
function a() {
|
|
331
331
|
return null;
|
|
332
332
|
}
|
|
333
|
-
return
|
|
333
|
+
return vr = function(l, c) {
|
|
334
334
|
var g = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
335
335
|
function m(P) {
|
|
336
336
|
var D = P && (g && P[g] || P[f]);
|
|
@@ -632,18 +632,18 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
|
632
632
|
return !P.constructor || !P.constructor.name ? y : P.constructor.name;
|
|
633
633
|
}
|
|
634
634
|
return h.checkPropTypes = o, h.resetWarningCache = o.resetWarningCache, h.PropTypes = h, h;
|
|
635
|
-
},
|
|
635
|
+
}, vr;
|
|
636
636
|
}
|
|
637
|
-
var
|
|
638
|
-
function
|
|
639
|
-
if (
|
|
640
|
-
|
|
641
|
-
var e = /* @__PURE__ */
|
|
637
|
+
var Sr, cn;
|
|
638
|
+
function gi() {
|
|
639
|
+
if (cn) return Sr;
|
|
640
|
+
cn = 1;
|
|
641
|
+
var e = /* @__PURE__ */ zr();
|
|
642
642
|
function r() {
|
|
643
643
|
}
|
|
644
644
|
function t() {
|
|
645
645
|
}
|
|
646
|
-
return t.resetWarningCache = r,
|
|
646
|
+
return t.resetWarningCache = r, Sr = function() {
|
|
647
647
|
function n(a, l, c, g, f, m) {
|
|
648
648
|
if (m !== e) {
|
|
649
649
|
var y = new Error(
|
|
@@ -680,34 +680,34 @@ function hi() {
|
|
|
680
680
|
resetWarningCache: r
|
|
681
681
|
};
|
|
682
682
|
return s.PropTypes = s, s;
|
|
683
|
-
},
|
|
683
|
+
}, Sr;
|
|
684
684
|
}
|
|
685
|
-
var
|
|
686
|
-
function
|
|
687
|
-
if (
|
|
688
|
-
if (
|
|
689
|
-
var e =
|
|
690
|
-
|
|
685
|
+
var pn;
|
|
686
|
+
function mi() {
|
|
687
|
+
if (pn) return Lt.exports;
|
|
688
|
+
if (pn = 1, process.env.NODE_ENV !== "production") {
|
|
689
|
+
var e = Ln(), r = !0;
|
|
690
|
+
Lt.exports = /* @__PURE__ */ hi()(e.isElement, r);
|
|
691
691
|
} else
|
|
692
|
-
|
|
693
|
-
return
|
|
692
|
+
Lt.exports = /* @__PURE__ */ gi()();
|
|
693
|
+
return Lt.exports;
|
|
694
694
|
}
|
|
695
|
-
var
|
|
696
|
-
const re = /* @__PURE__ */
|
|
697
|
-
function
|
|
695
|
+
var yi = /* @__PURE__ */ mi();
|
|
696
|
+
const re = /* @__PURE__ */ di(yi);
|
|
697
|
+
function jn(e) {
|
|
698
698
|
var r, t, n = "";
|
|
699
699
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
700
700
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
701
701
|
var o = e.length;
|
|
702
|
-
for (r = 0; r < o; r++) e[r] && (t =
|
|
702
|
+
for (r = 0; r < o; r++) e[r] && (t = jn(e[r])) && (n && (n += " "), n += t);
|
|
703
703
|
} else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
704
704
|
return n;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
for (var e, r, t = 0, n = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (r =
|
|
706
|
+
function Vn() {
|
|
707
|
+
for (var e, r, t = 0, n = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (r = jn(e)) && (n && (n += " "), n += r);
|
|
708
708
|
return n;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function bi(e, r, t = void 0) {
|
|
711
711
|
const n = {};
|
|
712
712
|
for (const o in e) {
|
|
713
713
|
const s = e[o];
|
|
@@ -720,7 +720,7 @@ function yi(e, r, t = void 0) {
|
|
|
720
720
|
}
|
|
721
721
|
return n;
|
|
722
722
|
}
|
|
723
|
-
var
|
|
723
|
+
var jt = { exports: {} }, se = {};
|
|
724
724
|
/**
|
|
725
725
|
* @license React
|
|
726
726
|
* react-is.production.js
|
|
@@ -730,10 +730,10 @@ var Nt = { exports: {} }, se = {};
|
|
|
730
730
|
* This source code is licensed under the MIT license found in the
|
|
731
731
|
* LICENSE file in the root directory of this source tree.
|
|
732
732
|
*/
|
|
733
|
-
var
|
|
734
|
-
function
|
|
735
|
-
if (
|
|
736
|
-
|
|
733
|
+
var un;
|
|
734
|
+
function xi() {
|
|
735
|
+
if (un) return se;
|
|
736
|
+
un = 1;
|
|
737
737
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), y = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference");
|
|
738
738
|
function x(u) {
|
|
739
739
|
if (typeof u == "object" && u !== null) {
|
|
@@ -804,9 +804,9 @@ var le = {};
|
|
|
804
804
|
* This source code is licensed under the MIT license found in the
|
|
805
805
|
* LICENSE file in the root directory of this source tree.
|
|
806
806
|
*/
|
|
807
|
-
var
|
|
808
|
-
function
|
|
809
|
-
return
|
|
807
|
+
var fn;
|
|
808
|
+
function vi() {
|
|
809
|
+
return fn || (fn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
810
810
|
function e(u) {
|
|
811
811
|
if (typeof u == "object" && u !== null) {
|
|
812
812
|
var b = u.$$typeof;
|
|
@@ -868,23 +868,23 @@ function xi() {
|
|
|
868
868
|
}, le.typeOf = e;
|
|
869
869
|
})()), le;
|
|
870
870
|
}
|
|
871
|
-
var
|
|
872
|
-
function
|
|
873
|
-
return
|
|
871
|
+
var hn;
|
|
872
|
+
function Si() {
|
|
873
|
+
return hn || (hn = 1, process.env.NODE_ENV === "production" ? jt.exports = /* @__PURE__ */ xi() : jt.exports = /* @__PURE__ */ vi()), jt.exports;
|
|
874
874
|
}
|
|
875
|
-
var
|
|
875
|
+
var qt = /* @__PURE__ */ Si();
|
|
876
876
|
function We(e) {
|
|
877
877
|
if (typeof e != "object" || e === null)
|
|
878
878
|
return !1;
|
|
879
879
|
const r = Object.getPrototypeOf(e);
|
|
880
880
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
883
|
-
if (/* @__PURE__ */
|
|
882
|
+
function Un(e) {
|
|
883
|
+
if (/* @__PURE__ */ qe.isValidElement(e) || qt.isValidElementType(e) || !We(e))
|
|
884
884
|
return e;
|
|
885
885
|
const r = {};
|
|
886
886
|
return Object.keys(e).forEach((t) => {
|
|
887
|
-
r[t] =
|
|
887
|
+
r[t] = Un(e[t]);
|
|
888
888
|
}), r;
|
|
889
889
|
}
|
|
890
890
|
function Pe(e, r, t = {
|
|
@@ -894,18 +894,18 @@ function Pe(e, r, t = {
|
|
|
894
894
|
...e
|
|
895
895
|
} : e;
|
|
896
896
|
return We(e) && We(r) && Object.keys(r).forEach((o) => {
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
Object.prototype.hasOwnProperty.call(e, o) && We(e[o]) ? n[o] = Pe(e[o], r[o], t) : t.clone ? n[o] = We(r[o]) ?
|
|
897
|
+
/* @__PURE__ */ qe.isValidElement(r[o]) || qt.isValidElementType(r[o]) ? n[o] = r[o] : We(r[o]) && // Avoid prototype pollution
|
|
898
|
+
Object.prototype.hasOwnProperty.call(e, o) && We(e[o]) ? n[o] = Pe(e[o], r[o], t) : t.clone ? n[o] = We(r[o]) ? Un(r[o]) : r[o] : n[o] = r[o];
|
|
899
899
|
}), n;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Ht(e, r) {
|
|
902
902
|
return r ? Pe(e, r, {
|
|
903
903
|
clone: !1
|
|
904
904
|
// No need to clone deep, it's way faster.
|
|
905
905
|
}) : e;
|
|
906
906
|
}
|
|
907
|
-
const
|
|
908
|
-
function
|
|
907
|
+
const Xe = process.env.NODE_ENV !== "production" ? re.oneOfType([re.number, re.string, re.object, re.array]) : {};
|
|
908
|
+
function gn(e, r) {
|
|
909
909
|
if (!e.containerQueries)
|
|
910
910
|
return r;
|
|
911
911
|
const t = Object.keys(r).filter((n) => n.startsWith("@container")).sort((n, o) => {
|
|
@@ -920,10 +920,10 @@ function hn(e, r) {
|
|
|
920
920
|
...r
|
|
921
921
|
}) : r;
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Ci(e, r) {
|
|
924
924
|
return r === "@" || r.startsWith("@") && (e.some((t) => r.startsWith(`@${t}`)) || !!r.match(/^@\d/));
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function wi(e, r) {
|
|
927
927
|
const t = r.match(/^@([^/]+)?\/?(.+)?$/);
|
|
928
928
|
if (!t) {
|
|
929
929
|
if (process.env.NODE_ENV !== "production")
|
|
@@ -937,7 +937,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`)
|
|
|
937
937
|
const [, n, o] = t, s = Number.isNaN(+n) ? n || 0 : +n;
|
|
938
938
|
return e.containerQueries(o).up(s);
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function ki(e) {
|
|
941
941
|
const r = (s, a) => s.replace("@media", a ? `@container ${a}` : "@container");
|
|
942
942
|
function t(s, a) {
|
|
943
943
|
s.up = (...l) => r(e.breakpoints.up(...l), a), s.down = (...l) => r(e.breakpoints.down(...l), a), s.between = (...l) => r(e.breakpoints.between(...l), a), s.only = (...l) => r(e.breakpoints.only(...l), a), s.not = (...l) => {
|
|
@@ -951,7 +951,7 @@ function wi(e) {
|
|
|
951
951
|
containerQueries: o
|
|
952
952
|
};
|
|
953
953
|
}
|
|
954
|
-
const
|
|
954
|
+
const er = {
|
|
955
955
|
xs: 0,
|
|
956
956
|
// phone
|
|
957
957
|
sm: 600,
|
|
@@ -962,15 +962,15 @@ const Zt = {
|
|
|
962
962
|
// desktop
|
|
963
963
|
xl: 1536
|
|
964
964
|
// large screen
|
|
965
|
-
},
|
|
965
|
+
}, mn = {
|
|
966
966
|
// Sorted ASC by size. That's important.
|
|
967
967
|
// It can't be configured as it's used statically for propTypes.
|
|
968
968
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
969
|
-
up: (e) => `@media (min-width:${
|
|
970
|
-
},
|
|
969
|
+
up: (e) => `@media (min-width:${er[e]}px)`
|
|
970
|
+
}, Ti = {
|
|
971
971
|
containerQueries: (e) => ({
|
|
972
972
|
up: (r) => {
|
|
973
|
-
let t = typeof r == "number" ? r :
|
|
973
|
+
let t = typeof r == "number" ? r : er[r] || r;
|
|
974
974
|
return typeof t == "number" && (t = `${t}px`), e ? `@container ${e} (min-width:${t})` : `@container (min-width:${t})`;
|
|
975
975
|
}
|
|
976
976
|
})
|
|
@@ -978,16 +978,16 @@ const Zt = {
|
|
|
978
978
|
function Le(e, r, t) {
|
|
979
979
|
const n = e.theme || {};
|
|
980
980
|
if (Array.isArray(r)) {
|
|
981
|
-
const s = n.breakpoints ||
|
|
981
|
+
const s = n.breakpoints || mn;
|
|
982
982
|
return r.reduce((a, l, c) => (a[s.up(s.keys[c])] = t(r[c]), a), {});
|
|
983
983
|
}
|
|
984
984
|
if (typeof r == "object") {
|
|
985
|
-
const s = n.breakpoints ||
|
|
985
|
+
const s = n.breakpoints || mn;
|
|
986
986
|
return Object.keys(r).reduce((a, l) => {
|
|
987
|
-
if (
|
|
988
|
-
const c =
|
|
987
|
+
if (Ci(s.keys, l)) {
|
|
988
|
+
const c = wi(n.containerQueries ? n : Ti, l);
|
|
989
989
|
c && (a[c] = t(r[l], l));
|
|
990
|
-
} else if (Object.keys(s.values ||
|
|
990
|
+
} else if (Object.keys(s.values || er).includes(l)) {
|
|
991
991
|
const c = s.up(l);
|
|
992
992
|
a[c] = t(r[l], l);
|
|
993
993
|
} else {
|
|
@@ -999,20 +999,20 @@ function Le(e, r, t) {
|
|
|
999
999
|
}
|
|
1000
1000
|
return t(r);
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function Ri(e = {}) {
|
|
1003
1003
|
var t;
|
|
1004
1004
|
return ((t = e.keys) == null ? void 0 : t.reduce((n, o) => {
|
|
1005
1005
|
const s = e.up(o);
|
|
1006
1006
|
return n[s] = {}, n;
|
|
1007
1007
|
}, {})) || {};
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function yn(e, r) {
|
|
1010
1010
|
return e.reduce((t, n) => {
|
|
1011
1011
|
const o = t[n];
|
|
1012
1012
|
return (!o || Object.keys(o).length === 0) && delete t[n], t;
|
|
1013
1013
|
}, r);
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function tr(e, r, t = !0) {
|
|
1016
1016
|
if (!r || typeof r != "string")
|
|
1017
1017
|
return null;
|
|
1018
1018
|
if (e && e.vars && t) {
|
|
@@ -1022,9 +1022,9 @@ function er(e, r, t = !0) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
return r.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function Kt(e, r, t, n = t) {
|
|
1026
1026
|
let o;
|
|
1027
|
-
return typeof e == "function" ? o = e(t) : Array.isArray(e) ? o = e[t] || n : o =
|
|
1027
|
+
return typeof e == "function" ? o = e(t) : Array.isArray(e) ? o = e[t] || n : o = tr(e, t) || n, r && (o = r(o, n, e)), o;
|
|
1028
1028
|
}
|
|
1029
1029
|
function ye(e) {
|
|
1030
1030
|
const {
|
|
@@ -1035,48 +1035,48 @@ function ye(e) {
|
|
|
1035
1035
|
} = e, s = (a) => {
|
|
1036
1036
|
if (a[r] == null)
|
|
1037
1037
|
return null;
|
|
1038
|
-
const l = a[r], c = a.theme, g =
|
|
1038
|
+
const l = a[r], c = a.theme, g = tr(c, n) || {};
|
|
1039
1039
|
return Le(a, l, (m) => {
|
|
1040
|
-
let y =
|
|
1041
|
-
return m === y && typeof m == "string" && (y =
|
|
1040
|
+
let y = Kt(g, o, m);
|
|
1041
|
+
return m === y && typeof m == "string" && (y = Kt(g, o, `${r}${m === "default" ? "" : lt(m)}`, m)), t === !1 ? y : {
|
|
1042
1042
|
[t]: y
|
|
1043
1043
|
};
|
|
1044
1044
|
});
|
|
1045
1045
|
};
|
|
1046
1046
|
return s.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1047
|
-
[r]:
|
|
1047
|
+
[r]: Xe
|
|
1048
1048
|
} : {}, s.filterProps = [r], s;
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Ei(e) {
|
|
1051
1051
|
const r = {};
|
|
1052
1052
|
return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Hi = {
|
|
1055
1055
|
m: "margin",
|
|
1056
1056
|
p: "padding"
|
|
1057
|
-
},
|
|
1057
|
+
}, Pi = {
|
|
1058
1058
|
t: "Top",
|
|
1059
1059
|
r: "Right",
|
|
1060
1060
|
b: "Bottom",
|
|
1061
1061
|
l: "Left",
|
|
1062
1062
|
x: ["Left", "Right"],
|
|
1063
1063
|
y: ["Top", "Bottom"]
|
|
1064
|
-
},
|
|
1064
|
+
}, bn = {
|
|
1065
1065
|
marginX: "mx",
|
|
1066
1066
|
marginY: "my",
|
|
1067
1067
|
paddingX: "px",
|
|
1068
1068
|
paddingY: "py"
|
|
1069
|
-
},
|
|
1069
|
+
}, $i = Ei((e) => {
|
|
1070
1070
|
if (e.length > 2)
|
|
1071
|
-
if (
|
|
1072
|
-
e =
|
|
1071
|
+
if (bn[e])
|
|
1072
|
+
e = bn[e];
|
|
1073
1073
|
else
|
|
1074
1074
|
return [e];
|
|
1075
|
-
const [r, t] = e.split(""), n =
|
|
1075
|
+
const [r, t] = e.split(""), n = Hi[r], o = Pi[t] || "";
|
|
1076
1076
|
return Array.isArray(o) ? o.map((s) => n + s) : [n + o];
|
|
1077
|
-
}),
|
|
1078
|
-
function
|
|
1079
|
-
const o =
|
|
1077
|
+
}), rr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], nr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Ai = [...rr, ...nr];
|
|
1078
|
+
function $t(e, r, t, n) {
|
|
1079
|
+
const o = tr(e, r, !0) ?? t;
|
|
1080
1080
|
return typeof o == "number" || typeof o == "string" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`), typeof o == "string" ? o.startsWith("var(") && s === 0 ? 0 : o.startsWith("var(") && s === 1 ? o : `calc(${s} * ${o})` : o * s) : Array.isArray(o) ? (s) => {
|
|
1081
1081
|
if (typeof s == "string")
|
|
1082
1082
|
return s;
|
|
@@ -1090,40 +1090,40 @@ function Pt(e, r, t, n) {
|
|
|
1090
1090
|
`)), () => {
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return
|
|
1093
|
+
function _r(e) {
|
|
1094
|
+
return $t(e, "spacing", 8, "spacing");
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function At(e, r) {
|
|
1097
1097
|
return typeof r == "string" || r == null ? r : e(r);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return (t) => e.reduce((n, o) => (n[o] =
|
|
1099
|
+
function Ii(e, r) {
|
|
1100
|
+
return (t) => e.reduce((n, o) => (n[o] = At(r, t), n), {});
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function Bi(e, r, t, n) {
|
|
1103
1103
|
if (!r.includes(t))
|
|
1104
1104
|
return null;
|
|
1105
|
-
const o =
|
|
1105
|
+
const o = $i(t), s = Ii(o, n), a = e[t];
|
|
1106
1106
|
return Le(e, a, s);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
const t =
|
|
1110
|
-
return Object.keys(e).map((n) =>
|
|
1108
|
+
function Gn(e, r) {
|
|
1109
|
+
const t = _r(e.theme);
|
|
1110
|
+
return Object.keys(e).map((n) => Bi(e, r, n, t)).reduce(Ht, {});
|
|
1111
1111
|
}
|
|
1112
1112
|
function fe(e) {
|
|
1113
|
-
return
|
|
1113
|
+
return Gn(e, rr);
|
|
1114
1114
|
}
|
|
1115
|
-
fe.propTypes = process.env.NODE_ENV !== "production" ?
|
|
1116
|
-
fe.filterProps =
|
|
1115
|
+
fe.propTypes = process.env.NODE_ENV !== "production" ? rr.reduce((e, r) => (e[r] = Xe, e), {}) : {};
|
|
1116
|
+
fe.filterProps = rr;
|
|
1117
1117
|
function he(e) {
|
|
1118
|
-
return
|
|
1118
|
+
return Gn(e, nr);
|
|
1119
1119
|
}
|
|
1120
|
-
he.propTypes = process.env.NODE_ENV !== "production" ?
|
|
1121
|
-
he.filterProps =
|
|
1122
|
-
process.env.NODE_ENV !== "production" &&
|
|
1123
|
-
function
|
|
1120
|
+
he.propTypes = process.env.NODE_ENV !== "production" ? nr.reduce((e, r) => (e[r] = Xe, e), {}) : {};
|
|
1121
|
+
he.filterProps = nr;
|
|
1122
|
+
process.env.NODE_ENV !== "production" && Ai.reduce((e, r) => (e[r] = Xe, e), {});
|
|
1123
|
+
function or(...e) {
|
|
1124
1124
|
const r = e.reduce((n, o) => (o.filterProps.forEach((s) => {
|
|
1125
1125
|
n[s] = o;
|
|
1126
|
-
}), n), {}), t = (n) => Object.keys(n).reduce((o, s) => r[s] ?
|
|
1126
|
+
}), n), {}), t = (n) => Object.keys(n).reduce((o, s) => r[s] ? Ht(o, r[s](n)) : o, {});
|
|
1127
1127
|
return t.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, t.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), t;
|
|
1128
1128
|
}
|
|
1129
1129
|
function $e(e) {
|
|
@@ -1136,108 +1136,108 @@ function Ae(e, r) {
|
|
|
1136
1136
|
transform: r
|
|
1137
1137
|
});
|
|
1138
1138
|
}
|
|
1139
|
-
const
|
|
1139
|
+
const Oi = Ae("border", $e), Di = Ae("borderTop", $e), Mi = Ae("borderRight", $e), Fi = Ae("borderBottom", $e), Wi = Ae("borderLeft", $e), zi = Ae("borderColor"), _i = Ae("borderTopColor"), Li = Ae("borderRightColor"), Ni = Ae("borderBottomColor"), ji = Ae("borderLeftColor"), Vi = Ae("outline", $e), Ui = Ae("outlineColor"), ir = (e) => {
|
|
1140
1140
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1141
|
-
const r =
|
|
1142
|
-
borderRadius:
|
|
1141
|
+
const r = $t(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
|
|
1142
|
+
borderRadius: At(r, n)
|
|
1143
1143
|
});
|
|
1144
1144
|
return Le(e, e.borderRadius, t);
|
|
1145
1145
|
}
|
|
1146
1146
|
return null;
|
|
1147
1147
|
};
|
|
1148
|
-
|
|
1149
|
-
borderRadius:
|
|
1148
|
+
ir.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1149
|
+
borderRadius: Xe
|
|
1150
1150
|
} : {};
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
const
|
|
1151
|
+
ir.filterProps = ["borderRadius"];
|
|
1152
|
+
or(Oi, Di, Mi, Fi, Wi, zi, _i, Li, Ni, ji, ir, Vi, Ui);
|
|
1153
|
+
const ar = (e) => {
|
|
1154
1154
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
1155
|
-
const r =
|
|
1156
|
-
gap:
|
|
1155
|
+
const r = $t(e.theme, "spacing", 8, "gap"), t = (n) => ({
|
|
1156
|
+
gap: At(r, n)
|
|
1157
1157
|
});
|
|
1158
1158
|
return Le(e, e.gap, t);
|
|
1159
1159
|
}
|
|
1160
1160
|
return null;
|
|
1161
1161
|
};
|
|
1162
|
-
|
|
1163
|
-
gap:
|
|
1162
|
+
ar.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1163
|
+
gap: Xe
|
|
1164
1164
|
} : {};
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1165
|
+
ar.filterProps = ["gap"];
|
|
1166
|
+
const sr = (e) => {
|
|
1167
1167
|
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
1168
|
-
const r =
|
|
1169
|
-
columnGap:
|
|
1168
|
+
const r = $t(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
|
|
1169
|
+
columnGap: At(r, n)
|
|
1170
1170
|
});
|
|
1171
1171
|
return Le(e, e.columnGap, t);
|
|
1172
1172
|
}
|
|
1173
1173
|
return null;
|
|
1174
1174
|
};
|
|
1175
|
-
|
|
1176
|
-
columnGap:
|
|
1175
|
+
sr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1176
|
+
columnGap: Xe
|
|
1177
1177
|
} : {};
|
|
1178
|
-
|
|
1179
|
-
const
|
|
1178
|
+
sr.filterProps = ["columnGap"];
|
|
1179
|
+
const lr = (e) => {
|
|
1180
1180
|
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
1181
|
-
const r =
|
|
1182
|
-
rowGap:
|
|
1181
|
+
const r = $t(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
|
|
1182
|
+
rowGap: At(r, n)
|
|
1183
1183
|
});
|
|
1184
1184
|
return Le(e, e.rowGap, t);
|
|
1185
1185
|
}
|
|
1186
1186
|
return null;
|
|
1187
1187
|
};
|
|
1188
|
-
|
|
1189
|
-
rowGap:
|
|
1188
|
+
lr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1189
|
+
rowGap: Xe
|
|
1190
1190
|
} : {};
|
|
1191
|
-
|
|
1192
|
-
const
|
|
1191
|
+
lr.filterProps = ["rowGap"];
|
|
1192
|
+
const Gi = ye({
|
|
1193
1193
|
prop: "gridColumn"
|
|
1194
|
-
}), Gi = ye({
|
|
1195
|
-
prop: "gridRow"
|
|
1196
1194
|
}), Yi = ye({
|
|
1197
|
-
prop: "
|
|
1195
|
+
prop: "gridRow"
|
|
1198
1196
|
}), Ji = ye({
|
|
1199
|
-
prop: "
|
|
1197
|
+
prop: "gridAutoFlow"
|
|
1200
1198
|
}), qi = ye({
|
|
1201
|
-
prop: "
|
|
1199
|
+
prop: "gridAutoColumns"
|
|
1202
1200
|
}), Ki = ye({
|
|
1203
|
-
prop: "
|
|
1201
|
+
prop: "gridAutoRows"
|
|
1204
1202
|
}), Xi = ye({
|
|
1205
|
-
prop: "
|
|
1203
|
+
prop: "gridTemplateColumns"
|
|
1206
1204
|
}), Qi = ye({
|
|
1207
|
-
prop: "
|
|
1205
|
+
prop: "gridTemplateRows"
|
|
1208
1206
|
}), Zi = ye({
|
|
1207
|
+
prop: "gridTemplateAreas"
|
|
1208
|
+
}), ea = ye({
|
|
1209
1209
|
prop: "gridArea"
|
|
1210
1210
|
});
|
|
1211
|
-
|
|
1212
|
-
function
|
|
1211
|
+
or(ar, sr, lr, Gi, Yi, Ji, qi, Ki, Xi, Qi, Zi, ea);
|
|
1212
|
+
function xt(e, r) {
|
|
1213
1213
|
return r === "grey" ? r : e;
|
|
1214
1214
|
}
|
|
1215
|
-
const
|
|
1215
|
+
const ta = ye({
|
|
1216
1216
|
prop: "color",
|
|
1217
1217
|
themeKey: "palette",
|
|
1218
|
-
transform:
|
|
1219
|
-
}),
|
|
1218
|
+
transform: xt
|
|
1219
|
+
}), ra = ye({
|
|
1220
1220
|
prop: "bgcolor",
|
|
1221
1221
|
cssProperty: "backgroundColor",
|
|
1222
1222
|
themeKey: "palette",
|
|
1223
|
-
transform:
|
|
1224
|
-
}),
|
|
1223
|
+
transform: xt
|
|
1224
|
+
}), na = ye({
|
|
1225
1225
|
prop: "backgroundColor",
|
|
1226
1226
|
themeKey: "palette",
|
|
1227
|
-
transform:
|
|
1227
|
+
transform: xt
|
|
1228
1228
|
});
|
|
1229
|
-
|
|
1229
|
+
or(ta, ra, na);
|
|
1230
1230
|
function Ee(e) {
|
|
1231
1231
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1232
1232
|
}
|
|
1233
|
-
const
|
|
1233
|
+
const oa = ye({
|
|
1234
1234
|
prop: "width",
|
|
1235
1235
|
transform: Ee
|
|
1236
|
-
}),
|
|
1236
|
+
}), Lr = (e) => {
|
|
1237
1237
|
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
1238
1238
|
const r = (t) => {
|
|
1239
1239
|
var o, s, a, l, c;
|
|
1240
|
-
const n = ((a = (s = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : s.values) == null ? void 0 : a[t]) ||
|
|
1240
|
+
const n = ((a = (s = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : s.values) == null ? void 0 : a[t]) || er[t];
|
|
1241
1241
|
return n ? ((c = (l = e.theme) == null ? void 0 : l.breakpoints) == null ? void 0 : c.unit) !== "px" ? {
|
|
1242
1242
|
maxWidth: `${n}${e.theme.breakpoints.unit}`
|
|
1243
1243
|
} : {
|
|
@@ -1250,17 +1250,17 @@ const na = ye({
|
|
|
1250
1250
|
}
|
|
1251
1251
|
return null;
|
|
1252
1252
|
};
|
|
1253
|
-
|
|
1254
|
-
const
|
|
1253
|
+
Lr.filterProps = ["maxWidth"];
|
|
1254
|
+
const ia = ye({
|
|
1255
1255
|
prop: "minWidth",
|
|
1256
1256
|
transform: Ee
|
|
1257
|
-
}),
|
|
1257
|
+
}), aa = ye({
|
|
1258
1258
|
prop: "height",
|
|
1259
1259
|
transform: Ee
|
|
1260
|
-
}),
|
|
1260
|
+
}), sa = ye({
|
|
1261
1261
|
prop: "maxHeight",
|
|
1262
1262
|
transform: Ee
|
|
1263
|
-
}),
|
|
1263
|
+
}), la = ye({
|
|
1264
1264
|
prop: "minHeight",
|
|
1265
1265
|
transform: Ee
|
|
1266
1266
|
});
|
|
@@ -1274,11 +1274,11 @@ ye({
|
|
|
1274
1274
|
cssProperty: "height",
|
|
1275
1275
|
transform: Ee
|
|
1276
1276
|
});
|
|
1277
|
-
const
|
|
1277
|
+
const da = ye({
|
|
1278
1278
|
prop: "boxSizing"
|
|
1279
1279
|
});
|
|
1280
|
-
|
|
1281
|
-
const
|
|
1280
|
+
or(oa, Lr, ia, aa, sa, la, da);
|
|
1281
|
+
const dr = {
|
|
1282
1282
|
// borders
|
|
1283
1283
|
border: {
|
|
1284
1284
|
themeKey: "borders",
|
|
@@ -1324,21 +1324,21 @@ const lr = {
|
|
|
1324
1324
|
},
|
|
1325
1325
|
borderRadius: {
|
|
1326
1326
|
themeKey: "shape.borderRadius",
|
|
1327
|
-
style:
|
|
1327
|
+
style: ir
|
|
1328
1328
|
},
|
|
1329
1329
|
// palette
|
|
1330
1330
|
color: {
|
|
1331
1331
|
themeKey: "palette",
|
|
1332
|
-
transform:
|
|
1332
|
+
transform: xt
|
|
1333
1333
|
},
|
|
1334
1334
|
bgcolor: {
|
|
1335
1335
|
themeKey: "palette",
|
|
1336
1336
|
cssProperty: "backgroundColor",
|
|
1337
|
-
transform:
|
|
1337
|
+
transform: xt
|
|
1338
1338
|
},
|
|
1339
1339
|
backgroundColor: {
|
|
1340
1340
|
themeKey: "palette",
|
|
1341
|
-
transform:
|
|
1341
|
+
transform: xt
|
|
1342
1342
|
},
|
|
1343
1343
|
// spacing
|
|
1344
1344
|
p: {
|
|
@@ -1491,13 +1491,13 @@ const lr = {
|
|
|
1491
1491
|
justifySelf: {},
|
|
1492
1492
|
// grid
|
|
1493
1493
|
gap: {
|
|
1494
|
-
style:
|
|
1494
|
+
style: ar
|
|
1495
1495
|
},
|
|
1496
1496
|
rowGap: {
|
|
1497
|
-
style:
|
|
1497
|
+
style: lr
|
|
1498
1498
|
},
|
|
1499
1499
|
columnGap: {
|
|
1500
|
-
style:
|
|
1500
|
+
style: sr
|
|
1501
1501
|
},
|
|
1502
1502
|
gridColumn: {},
|
|
1503
1503
|
gridRow: {},
|
|
@@ -1526,7 +1526,7 @@ const lr = {
|
|
|
1526
1526
|
transform: Ee
|
|
1527
1527
|
},
|
|
1528
1528
|
maxWidth: {
|
|
1529
|
-
style:
|
|
1529
|
+
style: Lr
|
|
1530
1530
|
},
|
|
1531
1531
|
minWidth: {
|
|
1532
1532
|
transform: Ee
|
|
@@ -1566,14 +1566,14 @@ const lr = {
|
|
|
1566
1566
|
themeKey: "typography"
|
|
1567
1567
|
}
|
|
1568
1568
|
};
|
|
1569
|
-
function
|
|
1569
|
+
function ca(...e) {
|
|
1570
1570
|
const r = e.reduce((n, o) => n.concat(Object.keys(o)), []), t = new Set(r);
|
|
1571
1571
|
return e.every((n) => t.size === Object.keys(n).length);
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function pa(e, r) {
|
|
1574
1574
|
return typeof e == "function" ? e(r) : e;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function ua() {
|
|
1577
1577
|
function e(t, n, o, s) {
|
|
1578
1578
|
const a = {
|
|
1579
1579
|
[t]: n,
|
|
@@ -1595,10 +1595,10 @@ function pa() {
|
|
|
1595
1595
|
return {
|
|
1596
1596
|
[t]: n
|
|
1597
1597
|
};
|
|
1598
|
-
const y =
|
|
1598
|
+
const y = tr(o, g) || {};
|
|
1599
1599
|
return m ? m(a) : Le(a, n, (x) => {
|
|
1600
|
-
let u =
|
|
1601
|
-
return x === u && typeof x == "string" && (u =
|
|
1600
|
+
let u = Kt(y, f, x);
|
|
1601
|
+
return x === u && typeof x == "string" && (u = Kt(y, f, `${t}${x === "default" ? "" : lt(x)}`, x)), c === !1 ? u : {
|
|
1602
1602
|
[c]: u
|
|
1603
1603
|
};
|
|
1604
1604
|
});
|
|
@@ -1611,7 +1611,7 @@ function pa() {
|
|
|
1611
1611
|
} = t || {};
|
|
1612
1612
|
if (!n)
|
|
1613
1613
|
return null;
|
|
1614
|
-
const a = o.unstable_sxConfig ??
|
|
1614
|
+
const a = o.unstable_sxConfig ?? dr;
|
|
1615
1615
|
function l(c) {
|
|
1616
1616
|
let g = c;
|
|
1617
1617
|
if (typeof c == "function")
|
|
@@ -1620,39 +1620,39 @@ function pa() {
|
|
|
1620
1620
|
return c;
|
|
1621
1621
|
if (!g)
|
|
1622
1622
|
return null;
|
|
1623
|
-
const f =
|
|
1623
|
+
const f = Ri(o.breakpoints), m = Object.keys(f);
|
|
1624
1624
|
let y = f;
|
|
1625
1625
|
return Object.keys(g).forEach((h) => {
|
|
1626
|
-
const x =
|
|
1626
|
+
const x = pa(g[h], o);
|
|
1627
1627
|
if (x != null)
|
|
1628
1628
|
if (typeof x == "object")
|
|
1629
1629
|
if (a[h])
|
|
1630
|
-
y =
|
|
1630
|
+
y = Ht(y, e(h, x, o, a));
|
|
1631
1631
|
else {
|
|
1632
1632
|
const u = Le({
|
|
1633
1633
|
theme: o
|
|
1634
1634
|
}, x, (b) => ({
|
|
1635
1635
|
[h]: b
|
|
1636
1636
|
}));
|
|
1637
|
-
|
|
1637
|
+
ca(u, x) ? y[h] = r({
|
|
1638
1638
|
sx: x,
|
|
1639
1639
|
theme: o,
|
|
1640
1640
|
nested: !0
|
|
1641
|
-
}) : y =
|
|
1641
|
+
}) : y = Ht(y, u);
|
|
1642
1642
|
}
|
|
1643
1643
|
else
|
|
1644
|
-
y =
|
|
1644
|
+
y = Ht(y, e(h, x, o, a));
|
|
1645
1645
|
}), !s && o.modularCssLayers ? {
|
|
1646
|
-
"@layer sx":
|
|
1647
|
-
} :
|
|
1646
|
+
"@layer sx": gn(o, yn(m, y))
|
|
1647
|
+
} : gn(o, yn(m, y));
|
|
1648
1648
|
}
|
|
1649
1649
|
return Array.isArray(n) ? n.map(l) : l(n);
|
|
1650
1650
|
}
|
|
1651
1651
|
return r;
|
|
1652
1652
|
}
|
|
1653
|
-
const
|
|
1654
|
-
|
|
1655
|
-
function
|
|
1653
|
+
const vt = ua();
|
|
1654
|
+
vt.filterProps = ["sx"];
|
|
1655
|
+
function fa(e) {
|
|
1656
1656
|
for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
1657
1657
|
t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
|
|
1658
1658
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
@@ -1671,7 +1671,7 @@ function ua(e) {
|
|
|
1671
1671
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
1672
1672
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
1673
1673
|
}
|
|
1674
|
-
var
|
|
1674
|
+
var ha = {
|
|
1675
1675
|
animationIterationCount: 1,
|
|
1676
1676
|
aspectRatio: 1,
|
|
1677
1677
|
borderImageOutset: 1,
|
|
@@ -1721,34 +1721,34 @@ var fa = {
|
|
|
1721
1721
|
strokeOpacity: 1,
|
|
1722
1722
|
strokeWidth: 1
|
|
1723
1723
|
};
|
|
1724
|
-
function
|
|
1724
|
+
function ga(e) {
|
|
1725
1725
|
var r = /* @__PURE__ */ Object.create(null);
|
|
1726
1726
|
return function(t) {
|
|
1727
1727
|
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
1728
1728
|
};
|
|
1729
1729
|
}
|
|
1730
|
-
var
|
|
1730
|
+
var ma = /[A-Z]|^ms/g, ya = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Yn = function(r) {
|
|
1731
1731
|
return r.charCodeAt(1) === 45;
|
|
1732
|
-
},
|
|
1732
|
+
}, xn = function(r) {
|
|
1733
1733
|
return r != null && typeof r != "boolean";
|
|
1734
|
-
},
|
|
1735
|
-
return
|
|
1736
|
-
}),
|
|
1734
|
+
}, Cr = /* @__PURE__ */ ga(function(e) {
|
|
1735
|
+
return Yn(e) ? e : e.replace(ma, "-$&").toLowerCase();
|
|
1736
|
+
}), vn = function(r, t) {
|
|
1737
1737
|
switch (r) {
|
|
1738
1738
|
case "animation":
|
|
1739
1739
|
case "animationName":
|
|
1740
1740
|
if (typeof t == "string")
|
|
1741
|
-
return t.replace(
|
|
1742
|
-
return
|
|
1741
|
+
return t.replace(ya, function(n, o, s) {
|
|
1742
|
+
return Je = {
|
|
1743
1743
|
name: o,
|
|
1744
1744
|
styles: s,
|
|
1745
|
-
next:
|
|
1745
|
+
next: Je
|
|
1746
1746
|
}, o;
|
|
1747
1747
|
});
|
|
1748
1748
|
}
|
|
1749
|
-
return
|
|
1749
|
+
return ha[r] !== 1 && !Yn(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1750
1750
|
};
|
|
1751
|
-
function
|
|
1751
|
+
function Xt(e, r, t) {
|
|
1752
1752
|
if (t == null)
|
|
1753
1753
|
return "";
|
|
1754
1754
|
var n = t;
|
|
@@ -1760,50 +1760,50 @@ function Kt(e, r, t) {
|
|
|
1760
1760
|
case "object": {
|
|
1761
1761
|
var o = t;
|
|
1762
1762
|
if (o.anim === 1)
|
|
1763
|
-
return
|
|
1763
|
+
return Je = {
|
|
1764
1764
|
name: o.name,
|
|
1765
1765
|
styles: o.styles,
|
|
1766
|
-
next:
|
|
1766
|
+
next: Je
|
|
1767
1767
|
}, o.name;
|
|
1768
1768
|
var s = t;
|
|
1769
1769
|
if (s.styles !== void 0) {
|
|
1770
1770
|
var a = s.next;
|
|
1771
1771
|
if (a !== void 0)
|
|
1772
1772
|
for (; a !== void 0; )
|
|
1773
|
-
|
|
1773
|
+
Je = {
|
|
1774
1774
|
name: a.name,
|
|
1775
1775
|
styles: a.styles,
|
|
1776
|
-
next:
|
|
1776
|
+
next: Je
|
|
1777
1777
|
}, a = a.next;
|
|
1778
1778
|
var l = s.styles + ";";
|
|
1779
1779
|
return l;
|
|
1780
1780
|
}
|
|
1781
|
-
return
|
|
1781
|
+
return ba(e, r, t);
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
1784
1784
|
var c = t;
|
|
1785
1785
|
return c;
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function ba(e, r, t) {
|
|
1788
1788
|
var n = "";
|
|
1789
1789
|
if (Array.isArray(t))
|
|
1790
1790
|
for (var o = 0; o < t.length; o++)
|
|
1791
|
-
n +=
|
|
1791
|
+
n += Xt(e, r, t[o]) + ";";
|
|
1792
1792
|
else
|
|
1793
1793
|
for (var s in t) {
|
|
1794
1794
|
var a = t[s];
|
|
1795
1795
|
if (typeof a != "object") {
|
|
1796
1796
|
var l = a;
|
|
1797
|
-
|
|
1797
|
+
xn(l) && (n += Cr(s) + ":" + vn(s, l) + ";");
|
|
1798
1798
|
} else if (Array.isArray(a) && typeof a[0] == "string" && r == null)
|
|
1799
1799
|
for (var c = 0; c < a.length; c++)
|
|
1800
|
-
|
|
1800
|
+
xn(a[c]) && (n += Cr(s) + ":" + vn(s, a[c]) + ";");
|
|
1801
1801
|
else {
|
|
1802
|
-
var g =
|
|
1802
|
+
var g = Xt(e, r, a);
|
|
1803
1803
|
switch (s) {
|
|
1804
1804
|
case "animation":
|
|
1805
1805
|
case "animationName": {
|
|
1806
|
-
n +=
|
|
1806
|
+
n += Cr(s) + ":" + g + ";";
|
|
1807
1807
|
break;
|
|
1808
1808
|
}
|
|
1809
1809
|
default:
|
|
@@ -1813,32 +1813,32 @@ function ya(e, r, t) {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
return n;
|
|
1815
1815
|
}
|
|
1816
|
-
var
|
|
1817
|
-
function
|
|
1816
|
+
var Sn = /label:\s*([^\s;{]+)\s*(;|$)/g, Je;
|
|
1817
|
+
function xa(e, r, t) {
|
|
1818
1818
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1819
1819
|
return e[0];
|
|
1820
1820
|
var n = !0, o = "";
|
|
1821
|
-
|
|
1821
|
+
Je = void 0;
|
|
1822
1822
|
var s = e[0];
|
|
1823
1823
|
if (s == null || s.raw === void 0)
|
|
1824
|
-
n = !1, o +=
|
|
1824
|
+
n = !1, o += Xt(t, r, s);
|
|
1825
1825
|
else {
|
|
1826
1826
|
var a = s;
|
|
1827
1827
|
o += a[0];
|
|
1828
1828
|
}
|
|
1829
1829
|
for (var l = 1; l < e.length; l++)
|
|
1830
|
-
if (o +=
|
|
1830
|
+
if (o += Xt(t, r, e[l]), n) {
|
|
1831
1831
|
var c = s;
|
|
1832
1832
|
o += c[l];
|
|
1833
1833
|
}
|
|
1834
|
-
|
|
1835
|
-
for (var g = "", f; (f =
|
|
1834
|
+
Sn.lastIndex = 0;
|
|
1835
|
+
for (var g = "", f; (f = Sn.exec(o)) !== null; )
|
|
1836
1836
|
g += "-" + f[1];
|
|
1837
|
-
var m =
|
|
1837
|
+
var m = fa(o) + g;
|
|
1838
1838
|
return {
|
|
1839
1839
|
name: m,
|
|
1840
1840
|
styles: o,
|
|
1841
|
-
next:
|
|
1841
|
+
next: Je
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
1844
1844
|
/**
|
|
@@ -1848,22 +1848,22 @@ function ba(e, r, t) {
|
|
|
1848
1848
|
* This source code is licensed under the MIT license found in the
|
|
1849
1849
|
* LICENSE file in the root directory of this source tree.
|
|
1850
1850
|
*/
|
|
1851
|
-
function
|
|
1852
|
-
const t =
|
|
1851
|
+
function va(e, r) {
|
|
1852
|
+
const t = ii(e, r);
|
|
1853
1853
|
return process.env.NODE_ENV !== "production" ? (...n) => {
|
|
1854
1854
|
const o = typeof e == "string" ? `"${e}"` : "component";
|
|
1855
1855
|
return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
1856
1856
|
`)) : n.some((s) => s === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), t(...n);
|
|
1857
1857
|
} : t;
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function Sa(e, r) {
|
|
1860
1860
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = r(e.__emotion_styles));
|
|
1861
1861
|
}
|
|
1862
|
-
const
|
|
1863
|
-
function
|
|
1864
|
-
return
|
|
1862
|
+
const Cn = [];
|
|
1863
|
+
function at(e) {
|
|
1864
|
+
return Cn[0] = e, xa(Cn);
|
|
1865
1865
|
}
|
|
1866
|
-
const
|
|
1866
|
+
const Ca = (e) => {
|
|
1867
1867
|
const r = Object.keys(e).map((t) => ({
|
|
1868
1868
|
key: t,
|
|
1869
1869
|
val: e[t]
|
|
@@ -1873,7 +1873,7 @@ const Sa = (e) => {
|
|
|
1873
1873
|
[n.key]: n.val
|
|
1874
1874
|
}), {});
|
|
1875
1875
|
};
|
|
1876
|
-
function
|
|
1876
|
+
function wa(e) {
|
|
1877
1877
|
const {
|
|
1878
1878
|
// The breakpoint **start** at this value.
|
|
1879
1879
|
// For instance with the first breakpoint xs: [xs, sm).
|
|
@@ -1892,7 +1892,7 @@ function Ca(e) {
|
|
|
1892
1892
|
unit: t = "px",
|
|
1893
1893
|
step: n = 5,
|
|
1894
1894
|
...o
|
|
1895
|
-
} = e, s =
|
|
1895
|
+
} = e, s = Ca(r), a = Object.keys(s);
|
|
1896
1896
|
function l(y) {
|
|
1897
1897
|
return `@media (min-width:${typeof r[y] == "number" ? r[y] : y}${t})`;
|
|
1898
1898
|
}
|
|
@@ -1922,10 +1922,10 @@ function Ca(e) {
|
|
|
1922
1922
|
...o
|
|
1923
1923
|
};
|
|
1924
1924
|
}
|
|
1925
|
-
const
|
|
1925
|
+
const ka = {
|
|
1926
1926
|
borderRadius: 4
|
|
1927
1927
|
};
|
|
1928
|
-
function
|
|
1928
|
+
function Jn(e = 8, r = _r({
|
|
1929
1929
|
spacing: e
|
|
1930
1930
|
})) {
|
|
1931
1931
|
if (e.mui)
|
|
@@ -1936,7 +1936,7 @@ function Yn(e = 8, r = zr({
|
|
|
1936
1936
|
}).join(" "));
|
|
1937
1937
|
return t.mui = !0, t;
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Ta(e, r) {
|
|
1940
1940
|
var n;
|
|
1941
1941
|
const t = this;
|
|
1942
1942
|
if (t.vars) {
|
|
@@ -1949,14 +1949,14 @@ function ka(e, r) {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
return t.palette.mode === e ? r : {};
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function qn(e = {}, ...r) {
|
|
1953
1953
|
const {
|
|
1954
1954
|
breakpoints: t = {},
|
|
1955
1955
|
palette: n = {},
|
|
1956
1956
|
spacing: o,
|
|
1957
1957
|
shape: s = {},
|
|
1958
1958
|
...a
|
|
1959
|
-
} = e, l =
|
|
1959
|
+
} = e, l = wa(t), c = Jn(o);
|
|
1960
1960
|
let g = Pe({
|
|
1961
1961
|
breakpoints: l,
|
|
1962
1962
|
direction: "ltr",
|
|
@@ -1968,21 +1968,21 @@ function Jn(e = {}, ...r) {
|
|
|
1968
1968
|
},
|
|
1969
1969
|
spacing: c,
|
|
1970
1970
|
shape: {
|
|
1971
|
-
...
|
|
1971
|
+
...ka,
|
|
1972
1972
|
...s
|
|
1973
1973
|
}
|
|
1974
1974
|
}, a);
|
|
1975
|
-
return g =
|
|
1976
|
-
...
|
|
1975
|
+
return g = ki(g), g.applyStyles = Ta, g = r.reduce((f, m) => Pe(f, m), g), g.unstable_sxConfig = {
|
|
1976
|
+
...dr,
|
|
1977
1977
|
...a == null ? void 0 : a.unstable_sxConfig
|
|
1978
1978
|
}, g.unstable_sx = function(m) {
|
|
1979
|
-
return
|
|
1979
|
+
return vt({
|
|
1980
1980
|
sx: m,
|
|
1981
1981
|
theme: this
|
|
1982
1982
|
});
|
|
1983
1983
|
}, g;
|
|
1984
1984
|
}
|
|
1985
|
-
const
|
|
1985
|
+
const Ra = {
|
|
1986
1986
|
active: "active",
|
|
1987
1987
|
checked: "checked",
|
|
1988
1988
|
completed: "completed",
|
|
@@ -1996,86 +1996,86 @@ const Ta = {
|
|
|
1996
1996
|
required: "required",
|
|
1997
1997
|
selected: "selected"
|
|
1998
1998
|
};
|
|
1999
|
-
function
|
|
2000
|
-
const n =
|
|
2001
|
-
return n ? `${t}-${n}` : `${
|
|
1999
|
+
function Nr(e, r, t = "Mui") {
|
|
2000
|
+
const n = Ra[r];
|
|
2001
|
+
return n ? `${t}-${n}` : `${li.generate(e)}-${r}`;
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2003
|
+
function Ea(e, r, t = "Mui") {
|
|
2004
2004
|
const n = {};
|
|
2005
2005
|
return r.forEach((o) => {
|
|
2006
|
-
n[o] =
|
|
2006
|
+
n[o] = Nr(e, o, t);
|
|
2007
2007
|
}), n;
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function Kn(e, r = "") {
|
|
2010
2010
|
return e.displayName || e.name || r;
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2013
|
-
const n =
|
|
2012
|
+
function wn(e, r, t) {
|
|
2013
|
+
const n = Kn(r);
|
|
2014
2014
|
return e.displayName || (n !== "" ? `${t}(${n})` : t);
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function Ha(e) {
|
|
2017
2017
|
if (e != null) {
|
|
2018
2018
|
if (typeof e == "string")
|
|
2019
2019
|
return e;
|
|
2020
2020
|
if (typeof e == "function")
|
|
2021
|
-
return
|
|
2021
|
+
return Kn(e, "Component");
|
|
2022
2022
|
if (typeof e == "object")
|
|
2023
2023
|
switch (e.$$typeof) {
|
|
2024
|
-
case
|
|
2025
|
-
return
|
|
2026
|
-
case
|
|
2027
|
-
return
|
|
2024
|
+
case qt.ForwardRef:
|
|
2025
|
+
return wn(e, e.render, "ForwardRef");
|
|
2026
|
+
case qt.Memo:
|
|
2027
|
+
return wn(e, e.type, "memo");
|
|
2028
2028
|
default:
|
|
2029
2029
|
return;
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Xn(e) {
|
|
2034
2034
|
const {
|
|
2035
2035
|
variants: r,
|
|
2036
2036
|
...t
|
|
2037
2037
|
} = e, n = {
|
|
2038
2038
|
variants: r,
|
|
2039
|
-
style:
|
|
2039
|
+
style: at(t),
|
|
2040
2040
|
isProcessed: !0
|
|
2041
2041
|
};
|
|
2042
2042
|
return n.style === t || r && r.forEach((o) => {
|
|
2043
|
-
typeof o.style != "function" && (o.style =
|
|
2043
|
+
typeof o.style != "function" && (o.style = at(o.style));
|
|
2044
2044
|
}), n;
|
|
2045
2045
|
}
|
|
2046
|
-
const
|
|
2047
|
-
function
|
|
2046
|
+
const Pa = qn();
|
|
2047
|
+
function wr(e) {
|
|
2048
2048
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function it(e, r) {
|
|
2051
2051
|
return r && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${r}{${String(e.styles)}}`), e;
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function $a(e) {
|
|
2054
2054
|
return e ? (r, t) => t[e] : null;
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2057
|
-
e.theme =
|
|
2056
|
+
function Aa(e, r, t) {
|
|
2057
|
+
e.theme = Da(e.theme) ? t : e.theme[r] || e.theme;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function Jt(e, r, t) {
|
|
2060
2060
|
const n = typeof r == "function" ? r(e) : r;
|
|
2061
2061
|
if (Array.isArray(n))
|
|
2062
|
-
return n.flatMap((o) =>
|
|
2062
|
+
return n.flatMap((o) => Jt(e, o, t));
|
|
2063
2063
|
if (Array.isArray(n == null ? void 0 : n.variants)) {
|
|
2064
2064
|
let o;
|
|
2065
2065
|
if (n.isProcessed)
|
|
2066
|
-
o = t ?
|
|
2066
|
+
o = t ? it(n.style, t) : n.style;
|
|
2067
2067
|
else {
|
|
2068
2068
|
const {
|
|
2069
2069
|
variants: s,
|
|
2070
2070
|
...a
|
|
2071
2071
|
} = n;
|
|
2072
|
-
o = t ?
|
|
2072
|
+
o = t ? it(at(a), t) : a;
|
|
2073
2073
|
}
|
|
2074
|
-
return
|
|
2074
|
+
return Qn(e, n.variants, [o], t);
|
|
2075
2075
|
}
|
|
2076
|
-
return n != null && n.isProcessed ? t ?
|
|
2076
|
+
return n != null && n.isProcessed ? t ? it(at(n.style), t) : n.style : t ? it(at(n), t) : n;
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function Qn(e, r, t = [], n = void 0) {
|
|
2079
2079
|
var s;
|
|
2080
2080
|
let o;
|
|
2081
2081
|
e: for (let a = 0; a < r.length; a += 1) {
|
|
@@ -2095,22 +2095,22 @@ function Xn(e, r, t = [], n = void 0) {
|
|
|
2095
2095
|
...e,
|
|
2096
2096
|
...e.ownerState,
|
|
2097
2097
|
ownerState: e.ownerState
|
|
2098
|
-
}), t.push(n ?
|
|
2098
|
+
}), t.push(n ? it(at(l.style(o)), n) : l.style(o))) : t.push(n ? it(at(l.style), n) : l.style);
|
|
2099
2099
|
}
|
|
2100
2100
|
return t;
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function Ia(e = {}) {
|
|
2103
2103
|
const {
|
|
2104
2104
|
themeId: r,
|
|
2105
|
-
defaultTheme: t =
|
|
2106
|
-
rootShouldForwardProp: n =
|
|
2107
|
-
slotShouldForwardProp: o =
|
|
2105
|
+
defaultTheme: t = Pa,
|
|
2106
|
+
rootShouldForwardProp: n = wr,
|
|
2107
|
+
slotShouldForwardProp: o = wr
|
|
2108
2108
|
} = e;
|
|
2109
2109
|
function s(l) {
|
|
2110
|
-
|
|
2110
|
+
Aa(l, r, t);
|
|
2111
2111
|
}
|
|
2112
2112
|
return (l, c = {}) => {
|
|
2113
|
-
|
|
2113
|
+
Sa(l, (R) => R.filter((z) => z !== vt));
|
|
2114
2114
|
const {
|
|
2115
2115
|
name: g,
|
|
2116
2116
|
slot: f,
|
|
@@ -2118,30 +2118,30 @@ function Aa(e = {}) {
|
|
|
2118
2118
|
skipSx: y,
|
|
2119
2119
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
2120
2120
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2121
|
-
overridesResolver: h =
|
|
2121
|
+
overridesResolver: h = $a(Zn(f)),
|
|
2122
2122
|
...x
|
|
2123
2123
|
} = c, u = g && g.startsWith("Mui") || f ? "components" : "custom", b = m !== void 0 ? m : (
|
|
2124
2124
|
// TODO v6: remove `Root` in the next major release
|
|
2125
2125
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
2126
2126
|
f && f !== "Root" && f !== "root" || !1
|
|
2127
2127
|
), v = y || !1;
|
|
2128
|
-
let $ =
|
|
2129
|
-
f === "Root" || f === "root" ? $ = n : f ? $ = o :
|
|
2130
|
-
const H =
|
|
2128
|
+
let $ = wr;
|
|
2129
|
+
f === "Root" || f === "root" ? $ = n : f ? $ = o : Ma(l) && ($ = void 0);
|
|
2130
|
+
const H = va(l, {
|
|
2131
2131
|
shouldForwardProp: $,
|
|
2132
|
-
label:
|
|
2132
|
+
label: Oa(g, f),
|
|
2133
2133
|
...x
|
|
2134
2134
|
}), C = (R) => {
|
|
2135
2135
|
if (R.__emotion_real === R)
|
|
2136
2136
|
return R;
|
|
2137
2137
|
if (typeof R == "function")
|
|
2138
2138
|
return function(I) {
|
|
2139
|
-
return
|
|
2139
|
+
return Jt(I, R, I.theme.modularCssLayers ? u : void 0);
|
|
2140
2140
|
};
|
|
2141
2141
|
if (We(R)) {
|
|
2142
|
-
const z =
|
|
2142
|
+
const z = Xn(R);
|
|
2143
2143
|
return function(X) {
|
|
2144
|
-
return z.variants ?
|
|
2144
|
+
return z.variants ? Jt(X, z, X.theme.modularCssLayers ? u : void 0) : X.theme.modularCssLayers ? it(z.style, u) : z.style;
|
|
2145
2145
|
};
|
|
2146
2146
|
}
|
|
2147
2147
|
return R;
|
|
@@ -2154,45 +2154,45 @@ function Aa(e = {}) {
|
|
|
2154
2154
|
return null;
|
|
2155
2155
|
const N = {};
|
|
2156
2156
|
for (const J in L)
|
|
2157
|
-
N[J] =
|
|
2157
|
+
N[J] = Jt(B, L[J], B.theme.modularCssLayers ? "theme" : void 0);
|
|
2158
2158
|
return h(B, N);
|
|
2159
2159
|
}), g && !b && X.push(function(B) {
|
|
2160
2160
|
var N, K;
|
|
2161
2161
|
const A = B.theme, L = (K = (N = A == null ? void 0 : A.components) == null ? void 0 : N[g]) == null ? void 0 : K.variants;
|
|
2162
|
-
return L ?
|
|
2163
|
-
}), v || X.push(
|
|
2162
|
+
return L ? Qn(B, L, [], B.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
2163
|
+
}), v || X.push(vt), Array.isArray(I[0])) {
|
|
2164
2164
|
const d = I.shift(), B = new Array(z.length).fill(""), A = new Array(X.length).fill("");
|
|
2165
2165
|
let L;
|
|
2166
2166
|
L = [...B, ...d, ...A], L.raw = [...B, ...d.raw, ...A], z.unshift(L);
|
|
2167
2167
|
}
|
|
2168
2168
|
const Q = [...z, ...I, ...X], Y = H(...Q);
|
|
2169
|
-
return l.muiName && (Y.muiName = l.muiName), process.env.NODE_ENV !== "production" && (Y.displayName =
|
|
2169
|
+
return l.muiName && (Y.muiName = l.muiName), process.env.NODE_ENV !== "production" && (Y.displayName = Ba(g, f, l)), Y;
|
|
2170
2170
|
};
|
|
2171
2171
|
return H.withConfig && (k.withConfig = H.withConfig), k;
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2175
|
-
return e ? `${e}${
|
|
2174
|
+
function Ba(e, r, t) {
|
|
2175
|
+
return e ? `${e}${lt(r || "")}` : `Styled(${Ha(t)})`;
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2177
|
+
function Oa(e, r) {
|
|
2178
2178
|
let t;
|
|
2179
|
-
return process.env.NODE_ENV !== "production" && e && (t = `${e}-${
|
|
2179
|
+
return process.env.NODE_ENV !== "production" && e && (t = `${e}-${Zn(r || "Root")}`), t;
|
|
2180
2180
|
}
|
|
2181
|
-
function
|
|
2181
|
+
function Da(e) {
|
|
2182
2182
|
for (const r in e)
|
|
2183
2183
|
return !1;
|
|
2184
2184
|
return !0;
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function Ma(e) {
|
|
2187
2187
|
return typeof e == "string" && // 96 is one less than the char code
|
|
2188
2188
|
// for "a" so this is checking that
|
|
2189
2189
|
// it's a lowercase character
|
|
2190
2190
|
e.charCodeAt(0) > 96;
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Zn(e) {
|
|
2193
2193
|
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function Ar(e, r, t = !1) {
|
|
2196
2196
|
const n = {
|
|
2197
2197
|
...r
|
|
2198
2198
|
};
|
|
@@ -2217,42 +2217,42 @@ function $r(e, r, t = !1) {
|
|
|
2217
2217
|
for (const c in a)
|
|
2218
2218
|
if (Object.prototype.hasOwnProperty.call(a, c)) {
|
|
2219
2219
|
const g = c;
|
|
2220
|
-
n[s][g] =
|
|
2220
|
+
n[s][g] = Ar(a[g], l[g], t);
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
|
-
} else s === "className" && t && r.className ? n.className =
|
|
2223
|
+
} else s === "className" && t && r.className ? n.className = Vn(e == null ? void 0 : e.className, r == null ? void 0 : r.className) : s === "style" && t && r.style ? n.style = {
|
|
2224
2224
|
...e == null ? void 0 : e.style,
|
|
2225
2225
|
...r == null ? void 0 : r.style
|
|
2226
2226
|
} : n[s] === void 0 && (n[s] = e[s]);
|
|
2227
2227
|
}
|
|
2228
2228
|
return n;
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function Fa(e, r = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
2231
2231
|
return Math.max(r, Math.min(e, t));
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2234
|
-
return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),
|
|
2233
|
+
function jr(e, r = 0, t = 1) {
|
|
2234
|
+
return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), Fa(e, r, t);
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function Wa(e) {
|
|
2237
2237
|
e = e.slice(1);
|
|
2238
2238
|
const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
2239
2239
|
let t = e.match(r);
|
|
2240
2240
|
return t && t[0].length === 1 && (t = t.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function Ke(e) {
|
|
2243
2243
|
if (e.type)
|
|
2244
2244
|
return e;
|
|
2245
2245
|
if (e.charAt(0) === "#")
|
|
2246
|
-
return
|
|
2246
|
+
return Ke(Wa(e));
|
|
2247
2247
|
const r = e.indexOf("("), t = e.substring(0, r);
|
|
2248
2248
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(t))
|
|
2249
2249
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
2250
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
2250
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : st(9, e));
|
|
2251
2251
|
let n = e.substring(r + 1, e.length - 1), o;
|
|
2252
2252
|
if (t === "color") {
|
|
2253
2253
|
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
|
|
2254
2254
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
2255
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
2255
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : st(10, o));
|
|
2256
2256
|
} else
|
|
2257
2257
|
n = n.split(",");
|
|
2258
2258
|
return n = n.map((s) => parseFloat(s)), {
|
|
@@ -2261,17 +2261,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
2261
2261
|
colorSpace: o
|
|
2262
2262
|
};
|
|
2263
2263
|
}
|
|
2264
|
-
const
|
|
2265
|
-
const r =
|
|
2264
|
+
const za = (e) => {
|
|
2265
|
+
const r = Ke(e);
|
|
2266
2266
|
return r.values.slice(0, 3).map((t, n) => r.type.includes("hsl") && n !== 0 ? `${t}%` : t).join(" ");
|
|
2267
|
-
},
|
|
2267
|
+
}, Tt = (e, r) => {
|
|
2268
2268
|
try {
|
|
2269
|
-
return
|
|
2269
|
+
return za(e);
|
|
2270
2270
|
} catch {
|
|
2271
2271
|
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
2272
2272
|
}
|
|
2273
2273
|
};
|
|
2274
|
-
function
|
|
2274
|
+
function cr(e) {
|
|
2275
2275
|
const {
|
|
2276
2276
|
type: r,
|
|
2277
2277
|
colorSpace: t
|
|
@@ -2281,54 +2281,54 @@ function dr(e) {
|
|
|
2281
2281
|
} = e;
|
|
2282
2282
|
return r.includes("rgb") ? n = n.map((o, s) => s < 3 ? parseInt(o, 10) : o) : r.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.includes("color") ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2285
|
-
e =
|
|
2284
|
+
function eo(e) {
|
|
2285
|
+
e = Ke(e);
|
|
2286
2286
|
const {
|
|
2287
2287
|
values: r
|
|
2288
2288
|
} = e, t = r[0], n = r[1] / 100, o = r[2] / 100, s = n * Math.min(o, 1 - o), a = (g, f = (g + t / 30) % 12) => o - s * Math.max(Math.min(f - 3, 9 - f, 1), -1);
|
|
2289
2289
|
let l = "rgb";
|
|
2290
2290
|
const c = [Math.round(a(0) * 255), Math.round(a(8) * 255), Math.round(a(4) * 255)];
|
|
2291
|
-
return e.type === "hsla" && (l += "a", c.push(r[3])),
|
|
2291
|
+
return e.type === "hsla" && (l += "a", c.push(r[3])), cr({
|
|
2292
2292
|
type: l,
|
|
2293
2293
|
values: c
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2297
|
-
e =
|
|
2298
|
-
let r = e.type === "hsl" || e.type === "hsla" ?
|
|
2296
|
+
function Ir(e) {
|
|
2297
|
+
e = Ke(e);
|
|
2298
|
+
let r = e.type === "hsl" || e.type === "hsla" ? Ke(eo(e)).values : e.values;
|
|
2299
2299
|
return r = r.map((t) => (e.type !== "color" && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2302
|
-
const t =
|
|
2301
|
+
function kn(e, r) {
|
|
2302
|
+
const t = Ir(e), n = Ir(r);
|
|
2303
2303
|
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2306
|
-
return e =
|
|
2305
|
+
function to(e, r) {
|
|
2306
|
+
return e = Ke(e), r = jr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, cr(e);
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function rt(e, r, t) {
|
|
2309
2309
|
try {
|
|
2310
|
-
return
|
|
2310
|
+
return to(e, r);
|
|
2311
2311
|
} catch {
|
|
2312
2312
|
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2316
|
-
if (e =
|
|
2315
|
+
function pr(e, r) {
|
|
2316
|
+
if (e = Ke(e), r = jr(r), e.type.includes("hsl"))
|
|
2317
2317
|
e.values[2] *= 1 - r;
|
|
2318
2318
|
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
2319
2319
|
for (let t = 0; t < 3; t += 1)
|
|
2320
2320
|
e.values[t] *= 1 - r;
|
|
2321
|
-
return
|
|
2321
|
+
return cr(e);
|
|
2322
2322
|
}
|
|
2323
2323
|
function ie(e, r, t) {
|
|
2324
2324
|
try {
|
|
2325
|
-
return
|
|
2325
|
+
return pr(e, r);
|
|
2326
2326
|
} catch {
|
|
2327
2327
|
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2331
|
-
if (e =
|
|
2330
|
+
function ur(e, r) {
|
|
2331
|
+
if (e = Ke(e), r = jr(r), e.type.includes("hsl"))
|
|
2332
2332
|
e.values[2] += (100 - e.values[2]) * r;
|
|
2333
2333
|
else if (e.type.includes("rgb"))
|
|
2334
2334
|
for (let t = 0; t < 3; t += 1)
|
|
@@ -2336,28 +2336,28 @@ function pr(e, r) {
|
|
|
2336
2336
|
else if (e.type.includes("color"))
|
|
2337
2337
|
for (let t = 0; t < 3; t += 1)
|
|
2338
2338
|
e.values[t] += (1 - e.values[t]) * r;
|
|
2339
|
-
return
|
|
2339
|
+
return cr(e);
|
|
2340
2340
|
}
|
|
2341
2341
|
function ae(e, r, t) {
|
|
2342
2342
|
try {
|
|
2343
|
-
return
|
|
2343
|
+
return ur(e, r);
|
|
2344
2344
|
} catch {
|
|
2345
2345
|
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2349
|
-
return
|
|
2348
|
+
function _a(e, r = 0.15) {
|
|
2349
|
+
return Ir(e) > 0.5 ? pr(e, r) : ur(e, r);
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function Vt(e, r, t) {
|
|
2352
2352
|
try {
|
|
2353
|
-
return
|
|
2353
|
+
return _a(e, r);
|
|
2354
2354
|
} catch {
|
|
2355
2355
|
return e;
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
2358
|
-
const
|
|
2358
|
+
const La = /* @__PURE__ */ qe.createContext(void 0);
|
|
2359
2359
|
process.env.NODE_ENV !== "production" && (re.node, re.object);
|
|
2360
|
-
function
|
|
2360
|
+
function Na(e) {
|
|
2361
2361
|
const {
|
|
2362
2362
|
theme: r,
|
|
2363
2363
|
name: t,
|
|
@@ -2366,14 +2366,14 @@ function La(e) {
|
|
|
2366
2366
|
if (!r || !r.components || !r.components[t])
|
|
2367
2367
|
return n;
|
|
2368
2368
|
const o = r.components[t];
|
|
2369
|
-
return o.defaultProps ?
|
|
2369
|
+
return o.defaultProps ? Ar(o.defaultProps, n, r.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? Ar(o, n, r.components.mergeClassNameAndStyle) : n;
|
|
2370
2370
|
}
|
|
2371
|
-
function
|
|
2371
|
+
function ja({
|
|
2372
2372
|
props: e,
|
|
2373
2373
|
name: r
|
|
2374
2374
|
}) {
|
|
2375
|
-
const t =
|
|
2376
|
-
return
|
|
2375
|
+
const t = qe.useContext(La);
|
|
2376
|
+
return Na({
|
|
2377
2377
|
props: e,
|
|
2378
2378
|
name: r,
|
|
2379
2379
|
theme: {
|
|
@@ -2381,17 +2381,17 @@ function Na({
|
|
|
2381
2381
|
}
|
|
2382
2382
|
});
|
|
2383
2383
|
}
|
|
2384
|
-
const
|
|
2384
|
+
const Tn = {
|
|
2385
2385
|
theme: void 0
|
|
2386
2386
|
};
|
|
2387
|
-
function
|
|
2387
|
+
function Va(e) {
|
|
2388
2388
|
let r, t;
|
|
2389
2389
|
return function(o) {
|
|
2390
2390
|
let s = r;
|
|
2391
|
-
return (s === void 0 || o.theme !== t) && (
|
|
2391
|
+
return (s === void 0 || o.theme !== t) && (Tn.theme = o.theme, s = Xn(e(Tn)), r = s, t = o.theme), s;
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function Ua(e = "") {
|
|
2395
2395
|
function r(...n) {
|
|
2396
2396
|
if (!n.length)
|
|
2397
2397
|
return "";
|
|
@@ -2400,32 +2400,32 @@ function Va(e = "") {
|
|
|
2400
2400
|
}
|
|
2401
2401
|
return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${r(...o)})`;
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2403
|
+
const Rn = (e, r, t, n = []) => {
|
|
2404
2404
|
let o = e;
|
|
2405
2405
|
r.forEach((s, a) => {
|
|
2406
2406
|
a === r.length - 1 ? Array.isArray(o) ? o[Number(s)] = t : o && typeof o == "object" && (o[s] = t) : o && typeof o == "object" && (o[s] || (o[s] = n.includes(s) ? [] : {}), o = o[s]);
|
|
2407
2407
|
});
|
|
2408
|
-
},
|
|
2408
|
+
}, Ga = (e, r, t) => {
|
|
2409
2409
|
function n(o, s = [], a = []) {
|
|
2410
2410
|
Object.entries(o).forEach(([l, c]) => {
|
|
2411
2411
|
(!t || t && !t([...s, l])) && c != null && (typeof c == "object" && Object.keys(c).length > 0 ? n(c, [...s, l], Array.isArray(c) ? [...a, l] : a) : r([...s, l], c, a));
|
|
2412
2412
|
});
|
|
2413
2413
|
}
|
|
2414
2414
|
n(e);
|
|
2415
|
-
},
|
|
2416
|
-
function
|
|
2415
|
+
}, Ya = (e, r) => typeof r == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? r : `${r}px` : r;
|
|
2416
|
+
function kr(e, r) {
|
|
2417
2417
|
const {
|
|
2418
2418
|
prefix: t,
|
|
2419
2419
|
shouldSkipGeneratingVar: n
|
|
2420
2420
|
} = r || {}, o = {}, s = {}, a = {};
|
|
2421
|
-
return
|
|
2421
|
+
return Ga(
|
|
2422
2422
|
e,
|
|
2423
2423
|
(l, c, g) => {
|
|
2424
2424
|
if ((typeof c == "string" || typeof c == "number") && (!n || !n(l, c))) {
|
|
2425
|
-
const f = `--${t ? `${t}-` : ""}${l.join("-")}`, m =
|
|
2425
|
+
const f = `--${t ? `${t}-` : ""}${l.join("-")}`, m = Ya(l, c);
|
|
2426
2426
|
Object.assign(o, {
|
|
2427
2427
|
[f]: m
|
|
2428
|
-
}),
|
|
2428
|
+
}), Rn(s, l, `var(${f})`, g), Rn(a, l, `var(${f}, ${m})`, g);
|
|
2429
2429
|
}
|
|
2430
2430
|
},
|
|
2431
2431
|
(l) => l[0] === "vars"
|
|
@@ -2436,7 +2436,7 @@ function wr(e, r) {
|
|
|
2436
2436
|
varsWithDefaults: a
|
|
2437
2437
|
};
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function Ja(e, r = {}) {
|
|
2440
2440
|
const {
|
|
2441
2441
|
getSelector: t = v,
|
|
2442
2442
|
disableCssColorScheme: n,
|
|
@@ -2451,7 +2451,7 @@ function Ya(e, r = {}) {
|
|
|
2451
2451
|
vars: f,
|
|
2452
2452
|
css: m,
|
|
2453
2453
|
varsWithDefaults: y
|
|
2454
|
-
} =
|
|
2454
|
+
} = kr(g, r);
|
|
2455
2455
|
let h = y;
|
|
2456
2456
|
const x = {}, {
|
|
2457
2457
|
[c]: u,
|
|
@@ -2462,7 +2462,7 @@ function Ya(e, r = {}) {
|
|
|
2462
2462
|
vars: R,
|
|
2463
2463
|
css: z,
|
|
2464
2464
|
varsWithDefaults: I
|
|
2465
|
-
} =
|
|
2465
|
+
} = kr(k, r);
|
|
2466
2466
|
h = Pe(h, I), x[C] = {
|
|
2467
2467
|
css: z,
|
|
2468
2468
|
vars: R
|
|
@@ -2472,7 +2472,7 @@ function Ya(e, r = {}) {
|
|
|
2472
2472
|
css: C,
|
|
2473
2473
|
vars: k,
|
|
2474
2474
|
varsWithDefaults: R
|
|
2475
|
-
} =
|
|
2475
|
+
} = kr(u, r);
|
|
2476
2476
|
h = Pe(h, R), x[c] = {
|
|
2477
2477
|
css: C,
|
|
2478
2478
|
vars: k
|
|
@@ -2560,15 +2560,15 @@ function Ya(e, r = {}) {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
};
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function qa(e) {
|
|
2564
2564
|
return function(t) {
|
|
2565
2565
|
return e === "media" ? (process.env.NODE_ENV !== "production" && t !== "light" && t !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`), `@media (prefers-color-scheme: ${t})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${t}"] &` : e === "class" ? `.${t} &` : e === "data" ? `[data-${t}] &` : `${e.replace("%s", t)} &` : "&";
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
|
-
const
|
|
2568
|
+
const Pt = {
|
|
2569
2569
|
black: "#000",
|
|
2570
2570
|
white: "#fff"
|
|
2571
|
-
},
|
|
2571
|
+
}, Ka = {
|
|
2572
2572
|
50: "#fafafa",
|
|
2573
2573
|
100: "#f5f5f5",
|
|
2574
2574
|
200: "#eeeeee",
|
|
@@ -2583,38 +2583,38 @@ const Ht = {
|
|
|
2583
2583
|
A200: "#eeeeee",
|
|
2584
2584
|
A400: "#bdbdbd",
|
|
2585
2585
|
A700: "#616161"
|
|
2586
|
-
},
|
|
2586
|
+
}, ct = {
|
|
2587
2587
|
50: "#f3e5f5",
|
|
2588
2588
|
200: "#ce93d8",
|
|
2589
2589
|
300: "#ba68c8",
|
|
2590
2590
|
400: "#ab47bc",
|
|
2591
2591
|
500: "#9c27b0",
|
|
2592
2592
|
700: "#7b1fa2"
|
|
2593
|
-
},
|
|
2593
|
+
}, pt = {
|
|
2594
2594
|
300: "#e57373",
|
|
2595
2595
|
400: "#ef5350",
|
|
2596
2596
|
500: "#f44336",
|
|
2597
2597
|
700: "#d32f2f",
|
|
2598
2598
|
800: "#c62828"
|
|
2599
|
-
},
|
|
2599
|
+
}, kt = {
|
|
2600
2600
|
300: "#ffb74d",
|
|
2601
2601
|
400: "#ffa726",
|
|
2602
2602
|
500: "#ff9800",
|
|
2603
2603
|
700: "#f57c00",
|
|
2604
2604
|
900: "#e65100"
|
|
2605
|
-
},
|
|
2605
|
+
}, ut = {
|
|
2606
2606
|
50: "#e3f2fd",
|
|
2607
2607
|
200: "#90caf9",
|
|
2608
2608
|
400: "#42a5f5",
|
|
2609
2609
|
700: "#1976d2",
|
|
2610
2610
|
800: "#1565c0"
|
|
2611
|
-
},
|
|
2611
|
+
}, ft = {
|
|
2612
2612
|
300: "#4fc3f7",
|
|
2613
2613
|
400: "#29b6f6",
|
|
2614
2614
|
500: "#03a9f4",
|
|
2615
2615
|
700: "#0288d1",
|
|
2616
2616
|
900: "#01579b"
|
|
2617
|
-
},
|
|
2617
|
+
}, ht = {
|
|
2618
2618
|
300: "#81c784",
|
|
2619
2619
|
400: "#66bb6a",
|
|
2620
2620
|
500: "#4caf50",
|
|
@@ -2622,7 +2622,7 @@ const Ht = {
|
|
|
2622
2622
|
800: "#2e7d32",
|
|
2623
2623
|
900: "#1b5e20"
|
|
2624
2624
|
};
|
|
2625
|
-
function
|
|
2625
|
+
function ro() {
|
|
2626
2626
|
return {
|
|
2627
2627
|
// The colors used to style the text.
|
|
2628
2628
|
text: {
|
|
@@ -2638,8 +2638,8 @@ function to() {
|
|
|
2638
2638
|
// The background colors used to style the surfaces.
|
|
2639
2639
|
// Consistency between these values is important.
|
|
2640
2640
|
background: {
|
|
2641
|
-
paper:
|
|
2642
|
-
default:
|
|
2641
|
+
paper: Pt.white,
|
|
2642
|
+
default: Pt.white
|
|
2643
2643
|
},
|
|
2644
2644
|
// The colors used to style the action elements.
|
|
2645
2645
|
action: {
|
|
@@ -2662,11 +2662,11 @@ function to() {
|
|
|
2662
2662
|
}
|
|
2663
2663
|
};
|
|
2664
2664
|
}
|
|
2665
|
-
const
|
|
2666
|
-
function
|
|
2665
|
+
const no = ro();
|
|
2666
|
+
function oo() {
|
|
2667
2667
|
return {
|
|
2668
2668
|
text: {
|
|
2669
|
-
primary:
|
|
2669
|
+
primary: Pt.white,
|
|
2670
2670
|
secondary: "rgba(255, 255, 255, 0.7)",
|
|
2671
2671
|
disabled: "rgba(255, 255, 255, 0.5)",
|
|
2672
2672
|
icon: "rgba(255, 255, 255, 0.5)"
|
|
@@ -2677,7 +2677,7 @@ function no() {
|
|
|
2677
2677
|
default: "#121212"
|
|
2678
2678
|
},
|
|
2679
2679
|
action: {
|
|
2680
|
-
active:
|
|
2680
|
+
active: Pt.white,
|
|
2681
2681
|
hover: "rgba(255, 255, 255, 0.08)",
|
|
2682
2682
|
hoverOpacity: 0.08,
|
|
2683
2683
|
selected: "rgba(255, 255, 255, 0.16)",
|
|
@@ -2691,57 +2691,46 @@ function no() {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
};
|
|
2693
2693
|
}
|
|
2694
|
-
const
|
|
2695
|
-
function
|
|
2694
|
+
const Br = oo();
|
|
2695
|
+
function En(e, r, t, n) {
|
|
2696
2696
|
const o = n.light || n, s = n.dark || n * 1.5;
|
|
2697
|
-
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light =
|
|
2697
|
+
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = ur(e.main, o) : r === "dark" && (e.dark = pr(e.main, s)));
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function Hn(e, r, t, n, o) {
|
|
2700
2700
|
const s = o.light || o, a = o.dark || o * 1.5;
|
|
2701
2701
|
r[t] || (r.hasOwnProperty(n) ? r[t] = r[n] : t === "light" ? r.light = `color-mix(in ${e}, ${r.main}, #fff ${(s * 100).toFixed(0)}%)` : t === "dark" && (r.dark = `color-mix(in ${e}, ${r.main}, #000 ${(a * 100).toFixed(0)}%)`));
|
|
2702
2702
|
}
|
|
2703
|
-
function Ka(e = "light") {
|
|
2704
|
-
return e === "dark" ? {
|
|
2705
|
-
main: pt[200],
|
|
2706
|
-
light: pt[50],
|
|
2707
|
-
dark: pt[400]
|
|
2708
|
-
} : {
|
|
2709
|
-
main: pt[700],
|
|
2710
|
-
light: pt[400],
|
|
2711
|
-
dark: pt[800]
|
|
2712
|
-
};
|
|
2713
|
-
}
|
|
2714
2703
|
function Xa(e = "light") {
|
|
2715
2704
|
return e === "dark" ? {
|
|
2716
|
-
main:
|
|
2717
|
-
light:
|
|
2718
|
-
dark:
|
|
2705
|
+
main: ut[200],
|
|
2706
|
+
light: ut[50],
|
|
2707
|
+
dark: ut[400]
|
|
2719
2708
|
} : {
|
|
2720
|
-
main:
|
|
2721
|
-
light:
|
|
2722
|
-
dark:
|
|
2709
|
+
main: ut[700],
|
|
2710
|
+
light: ut[400],
|
|
2711
|
+
dark: ut[800]
|
|
2723
2712
|
};
|
|
2724
2713
|
}
|
|
2725
2714
|
function Qa(e = "light") {
|
|
2726
2715
|
return e === "dark" ? {
|
|
2716
|
+
main: ct[200],
|
|
2717
|
+
light: ct[50],
|
|
2718
|
+
dark: ct[400]
|
|
2719
|
+
} : {
|
|
2727
2720
|
main: ct[500],
|
|
2728
2721
|
light: ct[300],
|
|
2729
2722
|
dark: ct[700]
|
|
2730
|
-
} : {
|
|
2731
|
-
main: ct[700],
|
|
2732
|
-
light: ct[400],
|
|
2733
|
-
dark: ct[800]
|
|
2734
2723
|
};
|
|
2735
2724
|
}
|
|
2736
2725
|
function Za(e = "light") {
|
|
2737
2726
|
return e === "dark" ? {
|
|
2738
|
-
main:
|
|
2739
|
-
light:
|
|
2740
|
-
dark:
|
|
2727
|
+
main: pt[500],
|
|
2728
|
+
light: pt[300],
|
|
2729
|
+
dark: pt[700]
|
|
2741
2730
|
} : {
|
|
2742
|
-
main:
|
|
2743
|
-
light:
|
|
2744
|
-
dark:
|
|
2731
|
+
main: pt[700],
|
|
2732
|
+
light: pt[400],
|
|
2733
|
+
dark: pt[800]
|
|
2745
2734
|
};
|
|
2746
2735
|
}
|
|
2747
2736
|
function es(e = "light") {
|
|
@@ -2750,40 +2739,51 @@ function es(e = "light") {
|
|
|
2750
2739
|
light: ft[300],
|
|
2751
2740
|
dark: ft[700]
|
|
2752
2741
|
} : {
|
|
2753
|
-
main: ft[
|
|
2742
|
+
main: ft[700],
|
|
2754
2743
|
light: ft[500],
|
|
2755
2744
|
dark: ft[900]
|
|
2756
2745
|
};
|
|
2757
2746
|
}
|
|
2758
2747
|
function ts(e = "light") {
|
|
2759
2748
|
return e === "dark" ? {
|
|
2760
|
-
main:
|
|
2761
|
-
light:
|
|
2762
|
-
dark:
|
|
2749
|
+
main: ht[400],
|
|
2750
|
+
light: ht[300],
|
|
2751
|
+
dark: ht[700]
|
|
2752
|
+
} : {
|
|
2753
|
+
main: ht[800],
|
|
2754
|
+
light: ht[500],
|
|
2755
|
+
dark: ht[900]
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
2758
|
+
function rs(e = "light") {
|
|
2759
|
+
return e === "dark" ? {
|
|
2760
|
+
main: kt[400],
|
|
2761
|
+
light: kt[300],
|
|
2762
|
+
dark: kt[700]
|
|
2763
2763
|
} : {
|
|
2764
2764
|
main: "#ed6c02",
|
|
2765
2765
|
// closest to orange[800] that pass 3:1.
|
|
2766
|
-
light:
|
|
2767
|
-
dark:
|
|
2766
|
+
light: kt[500],
|
|
2767
|
+
dark: kt[900]
|
|
2768
2768
|
};
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function ns(e) {
|
|
2771
2771
|
return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function Vr(e) {
|
|
2774
2774
|
const {
|
|
2775
2775
|
mode: r = "light",
|
|
2776
2776
|
contrastThreshold: t = 3,
|
|
2777
2777
|
tonalOffset: n = 0.2,
|
|
2778
2778
|
colorSpace: o,
|
|
2779
2779
|
...s
|
|
2780
|
-
} = e, a = e.primary ||
|
|
2780
|
+
} = e, a = e.primary || Xa(r), l = e.secondary || Qa(r), c = e.error || Za(r), g = e.info || es(r), f = e.success || ts(r), m = e.warning || rs(r);
|
|
2781
2781
|
function y(b) {
|
|
2782
2782
|
if (o)
|
|
2783
|
-
return
|
|
2784
|
-
const v =
|
|
2783
|
+
return ns(b);
|
|
2784
|
+
const v = kn(b, Br.text.primary) >= t ? Br.text.primary : no.text.primary;
|
|
2785
2785
|
if (process.env.NODE_ENV !== "production") {
|
|
2786
|
-
const $ =
|
|
2786
|
+
const $ = kn(b, v);
|
|
2787
2787
|
$ < 3 && console.error([`MUI: The contrast ratio of ${$}:1 for ${v} on ${b}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
2788
2788
|
`));
|
|
2789
2789
|
}
|
|
@@ -2800,7 +2800,7 @@ function jr(e) {
|
|
|
2800
2800
|
...b
|
|
2801
2801
|
}, !b.main && b[$] && (b.main = b[$]), !b.hasOwnProperty("main"))
|
|
2802
2802
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${v ? ` (${v})` : ""} provided to augmentColor(color) is invalid.
|
|
2803
|
-
The color object needs to have a \`main\` property or a \`${$}\` property.` :
|
|
2803
|
+
The color object needs to have a \`main\` property or a \`${$}\` property.` : st(11, v ? ` (${v})` : "", $));
|
|
2804
2804
|
if (typeof b.main != "string")
|
|
2805
2805
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${v ? ` (${v})` : ""} provided to augmentColor(color) is invalid.
|
|
2806
2806
|
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
@@ -2815,14 +2815,14 @@ const theme1 = createTheme({ palette: {
|
|
|
2815
2815
|
|
|
2816
2816
|
const theme2 = createTheme({ palette: {
|
|
2817
2817
|
primary: { main: green[500] },
|
|
2818
|
-
} });` :
|
|
2819
|
-
return o ? (
|
|
2818
|
+
} });` : st(12, v ? ` (${v})` : "", JSON.stringify(b.main)));
|
|
2819
|
+
return o ? (Hn(o, b, "light", H, n), Hn(o, b, "dark", C, n)) : (En(b, "light", H, n), En(b, "dark", C, n)), b.contrastText || (b.contrastText = y(b.main)), b;
|
|
2820
2820
|
};
|
|
2821
2821
|
let x;
|
|
2822
|
-
return r === "light" ? x =
|
|
2822
|
+
return r === "light" ? x = ro() : r === "dark" && (x = oo()), process.env.NODE_ENV !== "production" && (x || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), Pe({
|
|
2823
2823
|
// A collection of common colors.
|
|
2824
2824
|
common: {
|
|
2825
|
-
...
|
|
2825
|
+
...Pt
|
|
2826
2826
|
},
|
|
2827
2827
|
// prevent mutable object.
|
|
2828
2828
|
// The palette mode, can be light or dark.
|
|
@@ -2861,7 +2861,7 @@ const theme2 = createTheme({ palette: {
|
|
|
2861
2861
|
name: "success"
|
|
2862
2862
|
}),
|
|
2863
2863
|
// The grey colors.
|
|
2864
|
-
grey:
|
|
2864
|
+
grey: Ka,
|
|
2865
2865
|
// Used by `getContrastText()` to maximize the contrast between
|
|
2866
2866
|
// the background and the text.
|
|
2867
2867
|
contrastThreshold: t,
|
|
@@ -2877,14 +2877,14 @@ const theme2 = createTheme({ palette: {
|
|
|
2877
2877
|
...x
|
|
2878
2878
|
}, s);
|
|
2879
2879
|
}
|
|
2880
|
-
function
|
|
2880
|
+
function os(e) {
|
|
2881
2881
|
const r = {};
|
|
2882
2882
|
return Object.entries(e).forEach((n) => {
|
|
2883
2883
|
const [o, s] = n;
|
|
2884
2884
|
typeof s == "object" && (r[o] = `${s.fontStyle ? `${s.fontStyle} ` : ""}${s.fontVariant ? `${s.fontVariant} ` : ""}${s.fontWeight ? `${s.fontWeight} ` : ""}${s.fontStretch ? `${s.fontStretch} ` : ""}${s.fontSize || ""}${s.lineHeight ? `/${s.lineHeight} ` : ""}${s.fontFamily || ""}`);
|
|
2885
2885
|
}), r;
|
|
2886
2886
|
}
|
|
2887
|
-
function
|
|
2887
|
+
function is(e, r) {
|
|
2888
2888
|
return {
|
|
2889
2889
|
toolbar: {
|
|
2890
2890
|
minHeight: 56,
|
|
@@ -2900,15 +2900,15 @@ function os(e, r) {
|
|
|
2900
2900
|
...r
|
|
2901
2901
|
};
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function as(e) {
|
|
2904
2904
|
return Math.round(e * 1e5) / 1e5;
|
|
2905
2905
|
}
|
|
2906
|
-
const
|
|
2906
|
+
const Pn = {
|
|
2907
2907
|
textTransform: "uppercase"
|
|
2908
|
-
},
|
|
2909
|
-
function
|
|
2908
|
+
}, $n = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2909
|
+
function ss(e, r) {
|
|
2910
2910
|
const {
|
|
2911
|
-
fontFamily: t =
|
|
2911
|
+
fontFamily: t = $n,
|
|
2912
2912
|
// The default font size of the Material Specification.
|
|
2913
2913
|
fontSize: n = 14,
|
|
2914
2914
|
// px
|
|
@@ -2933,8 +2933,8 @@ function as(e, r) {
|
|
|
2933
2933
|
lineHeight: $,
|
|
2934
2934
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
2935
2935
|
// across font-families can cause issues with the kerning.
|
|
2936
|
-
...t ===
|
|
2937
|
-
letterSpacing: `${
|
|
2936
|
+
...t === $n ? {
|
|
2937
|
+
letterSpacing: `${as(H / v)}em`
|
|
2938
2938
|
} : {},
|
|
2939
2939
|
...C,
|
|
2940
2940
|
...g
|
|
@@ -2949,9 +2949,9 @@ function as(e, r) {
|
|
|
2949
2949
|
subtitle2: x(a, 14, 1.57, 0.1),
|
|
2950
2950
|
body1: x(s, 16, 1.5, 0.15),
|
|
2951
2951
|
body2: x(s, 14, 1.43, 0.15),
|
|
2952
|
-
button: x(a, 14, 1.75, 0.4,
|
|
2952
|
+
button: x(a, 14, 1.75, 0.4, Pn),
|
|
2953
2953
|
caption: x(s, 12, 1.66, 0.4),
|
|
2954
|
-
overline: x(s, 12, 2.66, 1,
|
|
2954
|
+
overline: x(s, 12, 2.66, 1, Pn),
|
|
2955
2955
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
2956
2956
|
inherit: {
|
|
2957
2957
|
fontFamily: "inherit",
|
|
@@ -2976,11 +2976,11 @@ function as(e, r) {
|
|
|
2976
2976
|
// No need to clone deep
|
|
2977
2977
|
});
|
|
2978
2978
|
}
|
|
2979
|
-
const
|
|
2980
|
-
function
|
|
2981
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
2979
|
+
const ls = 0.2, ds = 0.14, cs = 0.12;
|
|
2980
|
+
function ce(...e) {
|
|
2981
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ls})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ds})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cs})`].join(",");
|
|
2982
2982
|
}
|
|
2983
|
-
const
|
|
2983
|
+
const ps = ["none", ce(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ce(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ce(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ce(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ce(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ce(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ce(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ce(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ce(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ce(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ce(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ce(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ce(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ce(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ce(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ce(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ce(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ce(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ce(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ce(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ce(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ce(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ce(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ce(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], us = {
|
|
2984
2984
|
// This is the most common easing curve.
|
|
2985
2985
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2986
2986
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -2990,7 +2990,7 @@ const cs = ["none", de(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), de(0, 3, 1, -2, 0,
|
|
|
2990
2990
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2991
2991
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
2992
2992
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
2993
|
-
},
|
|
2993
|
+
}, fs = {
|
|
2994
2994
|
shortest: 150,
|
|
2995
2995
|
shorter: 200,
|
|
2996
2996
|
short: 250,
|
|
@@ -3003,25 +3003,25 @@ const cs = ["none", de(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), de(0, 3, 1, -2, 0,
|
|
|
3003
3003
|
// recommended when something is leaving screen
|
|
3004
3004
|
leavingScreen: 195
|
|
3005
3005
|
};
|
|
3006
|
-
function
|
|
3006
|
+
function An(e) {
|
|
3007
3007
|
return `${Math.round(e)}ms`;
|
|
3008
3008
|
}
|
|
3009
|
-
function
|
|
3009
|
+
function hs(e) {
|
|
3010
3010
|
if (!e)
|
|
3011
3011
|
return 0;
|
|
3012
3012
|
const r = e / 36;
|
|
3013
3013
|
return Math.min(Math.round((4 + 15 * r ** 0.25 + r / 5) * 10), 3e3);
|
|
3014
3014
|
}
|
|
3015
|
-
function
|
|
3015
|
+
function gs(e) {
|
|
3016
3016
|
const r = {
|
|
3017
|
-
...
|
|
3017
|
+
...us,
|
|
3018
3018
|
...e.easing
|
|
3019
3019
|
}, t = {
|
|
3020
|
-
...
|
|
3020
|
+
...fs,
|
|
3021
3021
|
...e.duration
|
|
3022
3022
|
};
|
|
3023
3023
|
return {
|
|
3024
|
-
getAutoHeightDuration:
|
|
3024
|
+
getAutoHeightDuration: hs,
|
|
3025
3025
|
create: (o = ["all"], s = {}) => {
|
|
3026
3026
|
const {
|
|
3027
3027
|
duration: a = t.standard,
|
|
@@ -3034,14 +3034,14 @@ function hs(e) {
|
|
|
3034
3034
|
!f(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !m(a) && !f(a) && console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`), f(l) || console.error('MUI: Argument "easing" must be a string.'), !m(c) && !f(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof s != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
3035
3035
|
`)), Object.keys(g).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(g).join(",")}].`);
|
|
3036
3036
|
}
|
|
3037
|
-
return (Array.isArray(o) ? o : [o]).map((f) => `${f} ${typeof a == "string" ? a :
|
|
3037
|
+
return (Array.isArray(o) ? o : [o]).map((f) => `${f} ${typeof a == "string" ? a : An(a)} ${l} ${typeof c == "string" ? c : An(c)}`).join(",");
|
|
3038
3038
|
},
|
|
3039
3039
|
...e,
|
|
3040
3040
|
easing: r,
|
|
3041
3041
|
duration: t
|
|
3042
3042
|
};
|
|
3043
3043
|
}
|
|
3044
|
-
const
|
|
3044
|
+
const ms = {
|
|
3045
3045
|
mobileStepper: 1e3,
|
|
3046
3046
|
fab: 1050,
|
|
3047
3047
|
speedDial: 1050,
|
|
@@ -3051,10 +3051,10 @@ const gs = {
|
|
|
3051
3051
|
snackbar: 1400,
|
|
3052
3052
|
tooltip: 1500
|
|
3053
3053
|
};
|
|
3054
|
-
function
|
|
3054
|
+
function ys(e) {
|
|
3055
3055
|
return We(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function io(e = {}) {
|
|
3058
3058
|
const r = {
|
|
3059
3059
|
...e
|
|
3060
3060
|
};
|
|
@@ -3062,7 +3062,7 @@ function oo(e = {}) {
|
|
|
3062
3062
|
const o = Object.entries(n);
|
|
3063
3063
|
for (let s = 0; s < o.length; s++) {
|
|
3064
3064
|
const [a, l] = o[s];
|
|
3065
|
-
!
|
|
3065
|
+
!ys(l) || a.startsWith("unstable_") ? delete n[a] : We(l) && (n[a] = {
|
|
3066
3066
|
...l
|
|
3067
3067
|
}, t(n[a]));
|
|
3068
3068
|
}
|
|
@@ -3076,10 +3076,10 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
3076
3076
|
|
|
3077
3077
|
export default theme;`;
|
|
3078
3078
|
}
|
|
3079
|
-
function
|
|
3079
|
+
function In(e) {
|
|
3080
3080
|
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
3081
3081
|
}
|
|
3082
|
-
const
|
|
3082
|
+
const bs = (e) => {
|
|
3083
3083
|
if (!Number.isNaN(+e))
|
|
3084
3084
|
return +e;
|
|
3085
3085
|
const r = e.match(/\d*\.?\d+/g);
|
|
@@ -3090,23 +3090,23 @@ const ys = (e) => {
|
|
|
3090
3090
|
t += +r[n];
|
|
3091
3091
|
return t;
|
|
3092
3092
|
};
|
|
3093
|
-
function
|
|
3093
|
+
function xs(e) {
|
|
3094
3094
|
Object.assign(e, {
|
|
3095
3095
|
alpha(r, t) {
|
|
3096
3096
|
const n = this || e;
|
|
3097
|
-
return n.colorSpace ? `oklch(from ${r} l c h / ${typeof t == "string" ? `calc(${t})` : t})` : n.vars ? `rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof t == "string" ? `calc(${t})` : t})` :
|
|
3097
|
+
return n.colorSpace ? `oklch(from ${r} l c h / ${typeof t == "string" ? `calc(${t})` : t})` : n.vars ? `rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof t == "string" ? `calc(${t})` : t})` : to(r, bs(t));
|
|
3098
3098
|
},
|
|
3099
3099
|
lighten(r, t) {
|
|
3100
3100
|
const n = this || e;
|
|
3101
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #fff ${
|
|
3101
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #fff ${In(t)})` : ur(r, t);
|
|
3102
3102
|
},
|
|
3103
3103
|
darken(r, t) {
|
|
3104
3104
|
const n = this || e;
|
|
3105
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #000 ${
|
|
3105
|
+
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #000 ${In(t)})` : pr(r, t);
|
|
3106
3106
|
}
|
|
3107
3107
|
});
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function Or(e = {}, ...r) {
|
|
3110
3110
|
const {
|
|
3111
3111
|
breakpoints: t,
|
|
3112
3112
|
mixins: n = {},
|
|
@@ -3121,20 +3121,20 @@ function Br(e = {}, ...r) {
|
|
|
3121
3121
|
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
3122
3122
|
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
3123
3123
|
e.generateThemeVars === void 0)
|
|
3124
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." :
|
|
3125
|
-
const m =
|
|
3124
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : st(20));
|
|
3125
|
+
const m = Vr({
|
|
3126
3126
|
...s,
|
|
3127
3127
|
colorSpace: g
|
|
3128
|
-
}), y =
|
|
3128
|
+
}), y = qn(e);
|
|
3129
3129
|
let h = Pe(y, {
|
|
3130
|
-
mixins:
|
|
3130
|
+
mixins: is(y.breakpoints, n),
|
|
3131
3131
|
palette: m,
|
|
3132
3132
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
3133
|
-
shadows:
|
|
3134
|
-
typography:
|
|
3135
|
-
transitions:
|
|
3133
|
+
shadows: ps.slice(),
|
|
3134
|
+
typography: ss(m, l),
|
|
3135
|
+
transitions: gs(a),
|
|
3136
3136
|
zIndex: {
|
|
3137
|
-
...
|
|
3137
|
+
...ms
|
|
3138
3138
|
}
|
|
3139
3139
|
});
|
|
3140
3140
|
if (h = Pe(h, f), h = r.reduce((x, u) => Pe(x, u), h), process.env.NODE_ENV !== "production") {
|
|
@@ -3144,7 +3144,7 @@ function Br(e = {}, ...r) {
|
|
|
3144
3144
|
const H = b[$];
|
|
3145
3145
|
if (x.includes($) && Object.keys(H).length > 0) {
|
|
3146
3146
|
if (process.env.NODE_ENV !== "production") {
|
|
3147
|
-
const C =
|
|
3147
|
+
const C = Nr("", $);
|
|
3148
3148
|
console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${$}\` internal state.`, "You can not override it like this: ", JSON.stringify(b, null, 2), "", `Instead, you need to use the '&.${C}' syntax:`, JSON.stringify({
|
|
3149
3149
|
root: {
|
|
3150
3150
|
[`&.${C}`]: H
|
|
@@ -3162,26 +3162,26 @@ function Br(e = {}, ...r) {
|
|
|
3162
3162
|
});
|
|
3163
3163
|
}
|
|
3164
3164
|
return h.unstable_sxConfig = {
|
|
3165
|
-
...
|
|
3165
|
+
...dr,
|
|
3166
3166
|
...f == null ? void 0 : f.unstable_sxConfig
|
|
3167
3167
|
}, h.unstable_sx = function(u) {
|
|
3168
|
-
return
|
|
3168
|
+
return vt({
|
|
3169
3169
|
sx: u,
|
|
3170
3170
|
theme: this
|
|
3171
3171
|
});
|
|
3172
|
-
}, h.toRuntimeSource =
|
|
3172
|
+
}, h.toRuntimeSource = io, xs(h), h;
|
|
3173
3173
|
}
|
|
3174
|
-
function
|
|
3174
|
+
function vs(e) {
|
|
3175
3175
|
let r;
|
|
3176
3176
|
return e < 1 ? r = 5.11916 * e ** 2 : r = 4.5 * Math.log(e + 1) + 2, Math.round(r * 10) / 1e3;
|
|
3177
3177
|
}
|
|
3178
|
-
const
|
|
3178
|
+
const Ss = [...Array(25)].map((e, r) => {
|
|
3179
3179
|
if (r === 0)
|
|
3180
3180
|
return "none";
|
|
3181
|
-
const t =
|
|
3181
|
+
const t = vs(r);
|
|
3182
3182
|
return `linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`;
|
|
3183
3183
|
});
|
|
3184
|
-
function
|
|
3184
|
+
function ao(e) {
|
|
3185
3185
|
return {
|
|
3186
3186
|
inputPlaceholder: e === "dark" ? 0.5 : 0.42,
|
|
3187
3187
|
inputUnderline: e === "dark" ? 0.7 : 0.42,
|
|
@@ -3189,10 +3189,10 @@ function io(e) {
|
|
|
3189
3189
|
switchTrack: e === "dark" ? 0.3 : 0.38
|
|
3190
3190
|
};
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3193
|
-
return e === "dark" ?
|
|
3192
|
+
function so(e) {
|
|
3193
|
+
return e === "dark" ? Ss : [];
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3195
|
+
function Cs(e) {
|
|
3196
3196
|
const {
|
|
3197
3197
|
palette: r = {
|
|
3198
3198
|
mode: "light"
|
|
@@ -3202,32 +3202,32 @@ function Ss(e) {
|
|
|
3202
3202
|
overlays: n,
|
|
3203
3203
|
colorSpace: o,
|
|
3204
3204
|
...s
|
|
3205
|
-
} = e, a =
|
|
3205
|
+
} = e, a = Vr({
|
|
3206
3206
|
...r,
|
|
3207
3207
|
colorSpace: o
|
|
3208
3208
|
});
|
|
3209
3209
|
return {
|
|
3210
3210
|
palette: a,
|
|
3211
3211
|
opacity: {
|
|
3212
|
-
...
|
|
3212
|
+
...ao(a.mode),
|
|
3213
3213
|
...t
|
|
3214
3214
|
},
|
|
3215
|
-
overlays: n ||
|
|
3215
|
+
overlays: n || so(a.mode),
|
|
3216
3216
|
...s
|
|
3217
3217
|
};
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3219
|
+
function ws(e) {
|
|
3220
3220
|
var r;
|
|
3221
3221
|
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
3222
3222
|
e[0] === "palette" && !!((r = e[1]) != null && r.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
3223
3223
|
}
|
|
3224
|
-
const
|
|
3224
|
+
const ks = (e) => [...[...Array(25)].map((r, t) => `--${e ? `${e}-` : ""}overlays-${t}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Ts = (e) => (r, t) => {
|
|
3225
3225
|
const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
|
|
3226
3226
|
let s = o;
|
|
3227
3227
|
if (o === "class" && (s = ".%s"), o === "data" && (s = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (s = `[${o}="%s"]`), e.defaultColorScheme === r) {
|
|
3228
3228
|
if (r === "dark") {
|
|
3229
3229
|
const a = {};
|
|
3230
|
-
return
|
|
3230
|
+
return ks(e.cssVarPrefix).forEach((l) => {
|
|
3231
3231
|
a[l] = t[l], delete t[l];
|
|
3232
3232
|
}), s === "media" ? {
|
|
3233
3233
|
[n]: t,
|
|
@@ -3258,7 +3258,7 @@ const ws = (e) => [...[...Array(25)].map((r, t) => `--${e ? `${e}-` : ""}overlay
|
|
|
3258
3258
|
}
|
|
3259
3259
|
return n;
|
|
3260
3260
|
};
|
|
3261
|
-
function
|
|
3261
|
+
function Rs(e, r) {
|
|
3262
3262
|
r.forEach((t) => {
|
|
3263
3263
|
e[t] || (e[t] = {});
|
|
3264
3264
|
});
|
|
@@ -3266,14 +3266,14 @@ function Ts(e, r) {
|
|
|
3266
3266
|
function T(e, r, t) {
|
|
3267
3267
|
!e[r] && t && (e[r] = t);
|
|
3268
3268
|
}
|
|
3269
|
-
function
|
|
3270
|
-
return typeof e != "string" || !e.startsWith("hsl") ? e :
|
|
3269
|
+
function Rt(e) {
|
|
3270
|
+
return typeof e != "string" || !e.startsWith("hsl") ? e : eo(e);
|
|
3271
3271
|
}
|
|
3272
3272
|
function Me(e, r) {
|
|
3273
|
-
`${r}Channel` in e || (e[`${r}Channel`] =
|
|
3273
|
+
`${r}Channel` in e || (e[`${r}Channel`] = Tt(Rt(e[r]), `MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
3274
3274
|
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3276
|
+
function Es(e) {
|
|
3277
3277
|
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
3278
3278
|
}
|
|
3279
3279
|
const Be = (e) => {
|
|
@@ -3281,14 +3281,14 @@ const Be = (e) => {
|
|
|
3281
3281
|
return e();
|
|
3282
3282
|
} catch {
|
|
3283
3283
|
}
|
|
3284
|
-
},
|
|
3285
|
-
function
|
|
3284
|
+
}, Hs = (e = "mui") => Ua(e);
|
|
3285
|
+
function Tr(e, r, t, n, o) {
|
|
3286
3286
|
if (!t)
|
|
3287
3287
|
return;
|
|
3288
3288
|
t = t === !0 ? {} : t;
|
|
3289
3289
|
const s = o === "dark" ? "dark" : "light";
|
|
3290
3290
|
if (!n) {
|
|
3291
|
-
r[o] =
|
|
3291
|
+
r[o] = Cs({
|
|
3292
3292
|
...t,
|
|
3293
3293
|
palette: {
|
|
3294
3294
|
mode: s,
|
|
@@ -3301,7 +3301,7 @@ function kr(e, r, t, n, o) {
|
|
|
3301
3301
|
const {
|
|
3302
3302
|
palette: a,
|
|
3303
3303
|
...l
|
|
3304
|
-
} =
|
|
3304
|
+
} = Or({
|
|
3305
3305
|
...n,
|
|
3306
3306
|
palette: {
|
|
3307
3307
|
mode: s,
|
|
@@ -3313,13 +3313,13 @@ function kr(e, r, t, n, o) {
|
|
|
3313
3313
|
...t,
|
|
3314
3314
|
palette: a,
|
|
3315
3315
|
opacity: {
|
|
3316
|
-
...
|
|
3316
|
+
...ao(s),
|
|
3317
3317
|
...t == null ? void 0 : t.opacity
|
|
3318
3318
|
},
|
|
3319
|
-
overlays: (t == null ? void 0 : t.overlays) ||
|
|
3319
|
+
overlays: (t == null ? void 0 : t.overlays) || so(s)
|
|
3320
3320
|
}, l;
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function Ps(e = {}, ...r) {
|
|
3323
3323
|
const {
|
|
3324
3324
|
colorSchemes: t = {
|
|
3325
3325
|
light: !0
|
|
@@ -3328,11 +3328,11 @@ function Hs(e = {}, ...r) {
|
|
|
3328
3328
|
disableCssColorScheme: o = !1,
|
|
3329
3329
|
cssVarPrefix: s = "mui",
|
|
3330
3330
|
nativeColor: a = !1,
|
|
3331
|
-
shouldSkipGeneratingVar: l =
|
|
3331
|
+
shouldSkipGeneratingVar: l = ws,
|
|
3332
3332
|
colorSchemeSelector: c = t.light && t.dark ? "media" : void 0,
|
|
3333
3333
|
rootSelector: g = ":root",
|
|
3334
3334
|
...f
|
|
3335
|
-
} = e, m = Object.keys(t)[0], y = n || (t.light && m !== "light" ? "light" : m), h =
|
|
3335
|
+
} = e, m = Object.keys(t)[0], y = n || (t.light && m !== "light" ? "light" : m), h = Hs(s), {
|
|
3336
3336
|
[y]: x,
|
|
3337
3337
|
light: u,
|
|
3338
3338
|
dark: b,
|
|
@@ -3342,11 +3342,11 @@ function Hs(e = {}, ...r) {
|
|
|
3342
3342
|
};
|
|
3343
3343
|
let H = x;
|
|
3344
3344
|
if ((y === "dark" && !("dark" in t) || y === "light" && !("light" in t)) && (H = !0), !H)
|
|
3345
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${y}\` option is either missing or invalid.` :
|
|
3345
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${y}\` option is either missing or invalid.` : st(21, y));
|
|
3346
3346
|
let C;
|
|
3347
3347
|
a && (C = "oklch");
|
|
3348
|
-
const k =
|
|
3349
|
-
u && !$.light &&
|
|
3348
|
+
const k = Tr(C, $, H, f, y);
|
|
3349
|
+
u && !$.light && Tr(C, $, u, void 0, "light"), b && !$.dark && Tr(C, $, b, void 0, "dark");
|
|
3350
3350
|
let R = {
|
|
3351
3351
|
defaultColorScheme: y,
|
|
3352
3352
|
...k,
|
|
@@ -3356,10 +3356,10 @@ function Hs(e = {}, ...r) {
|
|
|
3356
3356
|
getCssVar: h,
|
|
3357
3357
|
colorSchemes: $,
|
|
3358
3358
|
font: {
|
|
3359
|
-
...
|
|
3359
|
+
...os(k.typography),
|
|
3360
3360
|
...k.font
|
|
3361
3361
|
},
|
|
3362
|
-
spacing:
|
|
3362
|
+
spacing: Es(f.spacing)
|
|
3363
3363
|
};
|
|
3364
3364
|
Object.keys(R.colorSchemes).forEach((Y) => {
|
|
3365
3365
|
const d = R.colorSchemes[Y].palette, B = (L) => {
|
|
@@ -3370,61 +3370,61 @@ function Hs(e = {}, ...r) {
|
|
|
3370
3370
|
function A(L, N, K) {
|
|
3371
3371
|
if (C) {
|
|
3372
3372
|
let U;
|
|
3373
|
-
return L ===
|
|
3373
|
+
return L === rt && (U = `transparent ${((1 - K) * 100).toFixed(0)}%`), L === ie && (U = `#000 ${(K * 100).toFixed(0)}%`), L === ae && (U = `#fff ${(K * 100).toFixed(0)}%`), `color-mix(in ${C}, ${N}, ${U})`;
|
|
3374
3374
|
}
|
|
3375
3375
|
return L(N, K);
|
|
3376
3376
|
}
|
|
3377
|
-
if (
|
|
3378
|
-
T(d.Alert, "errorColor", A(ie, a ? h("palette-error-light") : d.error.light, 0.6)), T(d.Alert, "infoColor", A(ie, a ? h("palette-info-light") : d.info.light, 0.6)), T(d.Alert, "successColor", A(ie, a ? h("palette-success-light") : d.success.light, 0.6)), T(d.Alert, "warningColor", A(ie, a ? h("palette-warning-light") : d.warning.light, 0.6)), T(d.Alert, "errorFilledBg", B("palette-error-main")), T(d.Alert, "infoFilledBg", B("palette-info-main")), T(d.Alert, "successFilledBg", B("palette-success-main")), T(d.Alert, "warningFilledBg", B("palette-warning-main")), T(d.Alert, "errorFilledColor", Be(() => d.getContrastText(d.error.main))), T(d.Alert, "infoFilledColor", Be(() => d.getContrastText(d.info.main))), T(d.Alert, "successFilledColor", Be(() => d.getContrastText(d.success.main))), T(d.Alert, "warningFilledColor", Be(() => d.getContrastText(d.warning.main))), T(d.Alert, "errorStandardBg", A(ae, a ? h("palette-error-light") : d.error.light, 0.9)), T(d.Alert, "infoStandardBg", A(ae, a ? h("palette-info-light") : d.info.light, 0.9)), T(d.Alert, "successStandardBg", A(ae, a ? h("palette-success-light") : d.success.light, 0.9)), T(d.Alert, "warningStandardBg", A(ae, a ? h("palette-warning-light") : d.warning.light, 0.9)), T(d.Alert, "errorIconColor", B("palette-error-main")), T(d.Alert, "infoIconColor", B("palette-info-main")), T(d.Alert, "successIconColor", B("palette-success-main")), T(d.Alert, "warningIconColor", B("palette-warning-main")), T(d.AppBar, "defaultBg", B("palette-grey-100")), T(d.Avatar, "defaultBg", B("palette-grey-400")), T(d.Button, "inheritContainedBg", B("palette-grey-300")), T(d.Button, "inheritContainedHoverBg", B("palette-grey-A100")), T(d.Chip, "defaultBorder", B("palette-grey-400")), T(d.Chip, "defaultAvatarColor", B("palette-grey-700")), T(d.Chip, "defaultIconColor", B("palette-grey-700")), T(d.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), T(d.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), T(d.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), T(d.LinearProgress, "primaryBg", A(ae, a ? h("palette-primary-main") : d.primary.main, 0.62)), T(d.LinearProgress, "secondaryBg", A(ae, a ? h("palette-secondary-main") : d.secondary.main, 0.62)), T(d.LinearProgress, "errorBg", A(ae, a ? h("palette-error-main") : d.error.main, 0.62)), T(d.LinearProgress, "infoBg", A(ae, a ? h("palette-info-main") : d.info.main, 0.62)), T(d.LinearProgress, "successBg", A(ae, a ? h("palette-success-main") : d.success.main, 0.62)), T(d.LinearProgress, "warningBg", A(ae, a ? h("palette-warning-light") : d.warning.main, 0.62)), T(d.Skeleton, "bg", C ? A(
|
|
3379
|
-
const L = C ? A(ie, a ? h("palette-background-default") : d.background.default, 0.6825) :
|
|
3380
|
-
T(d.SnackbarContent, "bg", L), T(d.SnackbarContent, "color", Be(() => C ?
|
|
3377
|
+
if (Rs(d, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), d.mode === "light") {
|
|
3378
|
+
T(d.Alert, "errorColor", A(ie, a ? h("palette-error-light") : d.error.light, 0.6)), T(d.Alert, "infoColor", A(ie, a ? h("palette-info-light") : d.info.light, 0.6)), T(d.Alert, "successColor", A(ie, a ? h("palette-success-light") : d.success.light, 0.6)), T(d.Alert, "warningColor", A(ie, a ? h("palette-warning-light") : d.warning.light, 0.6)), T(d.Alert, "errorFilledBg", B("palette-error-main")), T(d.Alert, "infoFilledBg", B("palette-info-main")), T(d.Alert, "successFilledBg", B("palette-success-main")), T(d.Alert, "warningFilledBg", B("palette-warning-main")), T(d.Alert, "errorFilledColor", Be(() => d.getContrastText(d.error.main))), T(d.Alert, "infoFilledColor", Be(() => d.getContrastText(d.info.main))), T(d.Alert, "successFilledColor", Be(() => d.getContrastText(d.success.main))), T(d.Alert, "warningFilledColor", Be(() => d.getContrastText(d.warning.main))), T(d.Alert, "errorStandardBg", A(ae, a ? h("palette-error-light") : d.error.light, 0.9)), T(d.Alert, "infoStandardBg", A(ae, a ? h("palette-info-light") : d.info.light, 0.9)), T(d.Alert, "successStandardBg", A(ae, a ? h("palette-success-light") : d.success.light, 0.9)), T(d.Alert, "warningStandardBg", A(ae, a ? h("palette-warning-light") : d.warning.light, 0.9)), T(d.Alert, "errorIconColor", B("palette-error-main")), T(d.Alert, "infoIconColor", B("palette-info-main")), T(d.Alert, "successIconColor", B("palette-success-main")), T(d.Alert, "warningIconColor", B("palette-warning-main")), T(d.AppBar, "defaultBg", B("palette-grey-100")), T(d.Avatar, "defaultBg", B("palette-grey-400")), T(d.Button, "inheritContainedBg", B("palette-grey-300")), T(d.Button, "inheritContainedHoverBg", B("palette-grey-A100")), T(d.Chip, "defaultBorder", B("palette-grey-400")), T(d.Chip, "defaultAvatarColor", B("palette-grey-700")), T(d.Chip, "defaultIconColor", B("palette-grey-700")), T(d.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), T(d.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), T(d.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), T(d.LinearProgress, "primaryBg", A(ae, a ? h("palette-primary-main") : d.primary.main, 0.62)), T(d.LinearProgress, "secondaryBg", A(ae, a ? h("palette-secondary-main") : d.secondary.main, 0.62)), T(d.LinearProgress, "errorBg", A(ae, a ? h("palette-error-main") : d.error.main, 0.62)), T(d.LinearProgress, "infoBg", A(ae, a ? h("palette-info-main") : d.info.main, 0.62)), T(d.LinearProgress, "successBg", A(ae, a ? h("palette-success-main") : d.success.main, 0.62)), T(d.LinearProgress, "warningBg", A(ae, a ? h("palette-warning-light") : d.warning.main, 0.62)), T(d.Skeleton, "bg", C ? A(rt, a ? h("palette-text-primary") : d.text.primary, 0.11) : `rgba(${B("palette-text-primaryChannel")} / 0.11)`), T(d.Slider, "primaryTrack", A(ae, a ? h("palette-primary-main") : d.primary.main, 0.62)), T(d.Slider, "secondaryTrack", A(ae, a ? h("palette-secondary-main") : d.secondary.main, 0.62)), T(d.Slider, "errorTrack", A(ae, a ? h("palette-error-main") : d.error.main, 0.62)), T(d.Slider, "infoTrack", A(ae, a ? h("palette-info-main") : d.info.main, 0.62)), T(d.Slider, "successTrack", A(ae, a ? h("palette-success-main") : d.success.main, 0.62)), T(d.Slider, "warningTrack", A(ae, a ? h("palette-warning-main") : d.warning.main, 0.62));
|
|
3379
|
+
const L = C ? A(ie, a ? h("palette-background-default") : d.background.default, 0.6825) : Vt(d.background.default, 0.8);
|
|
3380
|
+
T(d.SnackbarContent, "bg", L), T(d.SnackbarContent, "color", Be(() => C ? Br.text.primary : d.getContrastText(L))), T(d.SpeedDialAction, "fabHoverBg", Vt(d.background.paper, 0.15)), T(d.StepConnector, "border", B("palette-grey-400")), T(d.StepContent, "border", B("palette-grey-400")), T(d.Switch, "defaultColor", B("palette-common-white")), T(d.Switch, "defaultDisabledColor", B("palette-grey-100")), T(d.Switch, "primaryDisabledColor", A(ae, a ? h("palette-primary-main") : d.primary.main, 0.62)), T(d.Switch, "secondaryDisabledColor", A(ae, a ? h("palette-secondary-main") : d.secondary.main, 0.62)), T(d.Switch, "errorDisabledColor", A(ae, a ? h("palette-error-main") : d.error.main, 0.62)), T(d.Switch, "infoDisabledColor", A(ae, a ? h("palette-info-main") : d.info.main, 0.62)), T(d.Switch, "successDisabledColor", A(ae, a ? h("palette-success-main") : d.success.main, 0.62)), T(d.Switch, "warningDisabledColor", A(ae, a ? h("palette-warning-main") : d.warning.main, 0.62)), T(d.TableCell, "border", A(ae, rt(a ? h("palette-divider") : d.divider, 1), 0.88)), T(d.Tooltip, "bg", A(rt, a ? h("palette-grey-700") : d.grey[700], 0.92));
|
|
3381
3381
|
}
|
|
3382
3382
|
if (d.mode === "dark") {
|
|
3383
|
-
T(d.Alert, "errorColor", A(ae, a ? h("palette-error-light") : d.error.light, 0.6)), T(d.Alert, "infoColor", A(ae, a ? h("palette-info-light") : d.info.light, 0.6)), T(d.Alert, "successColor", A(ae, a ? h("palette-success-light") : d.success.light, 0.6)), T(d.Alert, "warningColor", A(ae, a ? h("palette-warning-light") : d.warning.light, 0.6)), T(d.Alert, "errorFilledBg", B("palette-error-dark")), T(d.Alert, "infoFilledBg", B("palette-info-dark")), T(d.Alert, "successFilledBg", B("palette-success-dark")), T(d.Alert, "warningFilledBg", B("palette-warning-dark")), T(d.Alert, "errorFilledColor", Be(() => d.getContrastText(d.error.dark))), T(d.Alert, "infoFilledColor", Be(() => d.getContrastText(d.info.dark))), T(d.Alert, "successFilledColor", Be(() => d.getContrastText(d.success.dark))), T(d.Alert, "warningFilledColor", Be(() => d.getContrastText(d.warning.dark))), T(d.Alert, "errorStandardBg", A(ie, a ? h("palette-error-light") : d.error.light, 0.9)), T(d.Alert, "infoStandardBg", A(ie, a ? h("palette-info-light") : d.info.light, 0.9)), T(d.Alert, "successStandardBg", A(ie, a ? h("palette-success-light") : d.success.light, 0.9)), T(d.Alert, "warningStandardBg", A(ie, a ? h("palette-warning-light") : d.warning.light, 0.9)), T(d.Alert, "errorIconColor", B("palette-error-main")), T(d.Alert, "infoIconColor", B("palette-info-main")), T(d.Alert, "successIconColor", B("palette-success-main")), T(d.Alert, "warningIconColor", B("palette-warning-main")), T(d.AppBar, "defaultBg", B("palette-grey-900")), T(d.AppBar, "darkBg", B("palette-background-paper")), T(d.AppBar, "darkColor", B("palette-text-primary")), T(d.Avatar, "defaultBg", B("palette-grey-600")), T(d.Button, "inheritContainedBg", B("palette-grey-800")), T(d.Button, "inheritContainedHoverBg", B("palette-grey-700")), T(d.Chip, "defaultBorder", B("palette-grey-700")), T(d.Chip, "defaultAvatarColor", B("palette-grey-300")), T(d.Chip, "defaultIconColor", B("palette-grey-300")), T(d.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), T(d.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), T(d.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), T(d.LinearProgress, "primaryBg", A(ie, a ? h("palette-primary-main") : d.primary.main, 0.5)), T(d.LinearProgress, "secondaryBg", A(ie, a ? h("palette-secondary-main") : d.secondary.main, 0.5)), T(d.LinearProgress, "errorBg", A(ie, a ? h("palette-error-main") : d.error.main, 0.5)), T(d.LinearProgress, "infoBg", A(ie, a ? h("palette-info-main") : d.info.main, 0.5)), T(d.LinearProgress, "successBg", A(ie, a ? h("palette-success-main") : d.success.main, 0.5)), T(d.LinearProgress, "warningBg", A(ie, a ? h("palette-warning-main") : d.warning.main, 0.5)), T(d.Skeleton, "bg", C ? A(
|
|
3384
|
-
const L = C ? A(ae, a ? h("palette-background-default") : d.background.default, 0.985) :
|
|
3385
|
-
T(d.SnackbarContent, "bg", L), T(d.SnackbarContent, "color", Be(() => C ?
|
|
3383
|
+
T(d.Alert, "errorColor", A(ae, a ? h("palette-error-light") : d.error.light, 0.6)), T(d.Alert, "infoColor", A(ae, a ? h("palette-info-light") : d.info.light, 0.6)), T(d.Alert, "successColor", A(ae, a ? h("palette-success-light") : d.success.light, 0.6)), T(d.Alert, "warningColor", A(ae, a ? h("palette-warning-light") : d.warning.light, 0.6)), T(d.Alert, "errorFilledBg", B("palette-error-dark")), T(d.Alert, "infoFilledBg", B("palette-info-dark")), T(d.Alert, "successFilledBg", B("palette-success-dark")), T(d.Alert, "warningFilledBg", B("palette-warning-dark")), T(d.Alert, "errorFilledColor", Be(() => d.getContrastText(d.error.dark))), T(d.Alert, "infoFilledColor", Be(() => d.getContrastText(d.info.dark))), T(d.Alert, "successFilledColor", Be(() => d.getContrastText(d.success.dark))), T(d.Alert, "warningFilledColor", Be(() => d.getContrastText(d.warning.dark))), T(d.Alert, "errorStandardBg", A(ie, a ? h("palette-error-light") : d.error.light, 0.9)), T(d.Alert, "infoStandardBg", A(ie, a ? h("palette-info-light") : d.info.light, 0.9)), T(d.Alert, "successStandardBg", A(ie, a ? h("palette-success-light") : d.success.light, 0.9)), T(d.Alert, "warningStandardBg", A(ie, a ? h("palette-warning-light") : d.warning.light, 0.9)), T(d.Alert, "errorIconColor", B("palette-error-main")), T(d.Alert, "infoIconColor", B("palette-info-main")), T(d.Alert, "successIconColor", B("palette-success-main")), T(d.Alert, "warningIconColor", B("palette-warning-main")), T(d.AppBar, "defaultBg", B("palette-grey-900")), T(d.AppBar, "darkBg", B("palette-background-paper")), T(d.AppBar, "darkColor", B("palette-text-primary")), T(d.Avatar, "defaultBg", B("palette-grey-600")), T(d.Button, "inheritContainedBg", B("palette-grey-800")), T(d.Button, "inheritContainedHoverBg", B("palette-grey-700")), T(d.Chip, "defaultBorder", B("palette-grey-700")), T(d.Chip, "defaultAvatarColor", B("palette-grey-300")), T(d.Chip, "defaultIconColor", B("palette-grey-300")), T(d.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), T(d.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), T(d.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), T(d.LinearProgress, "primaryBg", A(ie, a ? h("palette-primary-main") : d.primary.main, 0.5)), T(d.LinearProgress, "secondaryBg", A(ie, a ? h("palette-secondary-main") : d.secondary.main, 0.5)), T(d.LinearProgress, "errorBg", A(ie, a ? h("palette-error-main") : d.error.main, 0.5)), T(d.LinearProgress, "infoBg", A(ie, a ? h("palette-info-main") : d.info.main, 0.5)), T(d.LinearProgress, "successBg", A(ie, a ? h("palette-success-main") : d.success.main, 0.5)), T(d.LinearProgress, "warningBg", A(ie, a ? h("palette-warning-main") : d.warning.main, 0.5)), T(d.Skeleton, "bg", C ? A(rt, a ? h("palette-text-primary") : d.text.primary, 0.13) : `rgba(${B("palette-text-primaryChannel")} / 0.13)`), T(d.Slider, "primaryTrack", A(ie, a ? h("palette-primary-main") : d.primary.main, 0.5)), T(d.Slider, "secondaryTrack", A(ie, a ? h("palette-secondary-main") : d.secondary.main, 0.5)), T(d.Slider, "errorTrack", A(ie, a ? h("palette-error-main") : d.error.main, 0.5)), T(d.Slider, "infoTrack", A(ie, a ? h("palette-info-main") : d.info.main, 0.5)), T(d.Slider, "successTrack", A(ie, a ? h("palette-success-main") : d.success.main, 0.5)), T(d.Slider, "warningTrack", A(ie, a ? h("palette-warning-light") : d.warning.main, 0.5));
|
|
3384
|
+
const L = C ? A(ae, a ? h("palette-background-default") : d.background.default, 0.985) : Vt(d.background.default, 0.98);
|
|
3385
|
+
T(d.SnackbarContent, "bg", L), T(d.SnackbarContent, "color", Be(() => C ? no.text.primary : d.getContrastText(L))), T(d.SpeedDialAction, "fabHoverBg", Vt(d.background.paper, 0.15)), T(d.StepConnector, "border", B("palette-grey-600")), T(d.StepContent, "border", B("palette-grey-600")), T(d.Switch, "defaultColor", B("palette-grey-300")), T(d.Switch, "defaultDisabledColor", B("palette-grey-600")), T(d.Switch, "primaryDisabledColor", A(ie, a ? h("palette-primary-main") : d.primary.main, 0.55)), T(d.Switch, "secondaryDisabledColor", A(ie, a ? h("palette-secondary-main") : d.secondary.main, 0.55)), T(d.Switch, "errorDisabledColor", A(ie, a ? h("palette-error-main") : d.error.main, 0.55)), T(d.Switch, "infoDisabledColor", A(ie, a ? h("palette-info-main") : d.info.main, 0.55)), T(d.Switch, "successDisabledColor", A(ie, a ? h("palette-success-main") : d.success.main, 0.55)), T(d.Switch, "warningDisabledColor", A(ie, a ? h("palette-warning-light") : d.warning.main, 0.55)), T(d.TableCell, "border", A(ie, rt(a ? h("palette-divider") : d.divider, 1), 0.68)), T(d.Tooltip, "bg", A(rt, a ? h("palette-grey-700") : d.grey[700], 0.92));
|
|
3386
3386
|
}
|
|
3387
3387
|
a || (Me(d.background, "default"), Me(d.background, "paper"), Me(d.common, "background"), Me(d.common, "onBackground"), Me(d, "divider")), Object.keys(d).forEach((L) => {
|
|
3388
3388
|
const N = d[L];
|
|
3389
|
-
L !== "tonalOffset" && !a && N && typeof N == "object" && (N.main && T(d[L], "mainChannel",
|
|
3389
|
+
L !== "tonalOffset" && !a && N && typeof N == "object" && (N.main && T(d[L], "mainChannel", Tt(Rt(N.main))), N.light && T(d[L], "lightChannel", Tt(Rt(N.light))), N.dark && T(d[L], "darkChannel", Tt(Rt(N.dark))), N.contrastText && T(d[L], "contrastTextChannel", Tt(Rt(N.contrastText))), L === "text" && (Me(d[L], "primary"), Me(d[L], "secondary")), L === "action" && (N.active && Me(d[L], "active"), N.selected && Me(d[L], "selected")));
|
|
3390
3390
|
});
|
|
3391
3391
|
}), R = r.reduce((Y, d) => Pe(Y, d), R);
|
|
3392
3392
|
const z = {
|
|
3393
3393
|
prefix: s,
|
|
3394
3394
|
disableCssColorScheme: o,
|
|
3395
3395
|
shouldSkipGeneratingVar: l,
|
|
3396
|
-
getSelector:
|
|
3396
|
+
getSelector: Ts(R),
|
|
3397
3397
|
enableContrastVars: a
|
|
3398
3398
|
}, {
|
|
3399
3399
|
vars: I,
|
|
3400
3400
|
generateThemeVars: X,
|
|
3401
3401
|
generateStyleSheets: Q
|
|
3402
|
-
} =
|
|
3402
|
+
} = Ja(R, z);
|
|
3403
3403
|
return R.vars = I, Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([Y, d]) => {
|
|
3404
3404
|
R[Y] = d;
|
|
3405
3405
|
}), R.generateThemeVars = X, R.generateStyleSheets = Q, R.generateSpacing = function() {
|
|
3406
|
-
return
|
|
3407
|
-
}, R.getColorSchemeSelector =
|
|
3408
|
-
...
|
|
3406
|
+
return Jn(f.spacing, _r(this));
|
|
3407
|
+
}, R.getColorSchemeSelector = qa(c), R.spacing = R.generateSpacing(), R.shouldSkipGeneratingVar = l, R.unstable_sxConfig = {
|
|
3408
|
+
...dr,
|
|
3409
3409
|
...f == null ? void 0 : f.unstable_sxConfig
|
|
3410
3410
|
}, R.unstable_sx = function(d) {
|
|
3411
|
-
return
|
|
3411
|
+
return vt({
|
|
3412
3412
|
sx: d,
|
|
3413
3413
|
theme: this
|
|
3414
3414
|
});
|
|
3415
|
-
}, R.toRuntimeSource =
|
|
3415
|
+
}, R.toRuntimeSource = io, R;
|
|
3416
3416
|
}
|
|
3417
|
-
function
|
|
3417
|
+
function Bn(e, r, t) {
|
|
3418
3418
|
e.colorSchemes && t && (e.colorSchemes[r] = {
|
|
3419
3419
|
...t !== !0 && t,
|
|
3420
|
-
palette:
|
|
3420
|
+
palette: Vr({
|
|
3421
3421
|
...t === !0 ? {} : t.palette,
|
|
3422
3422
|
mode: r
|
|
3423
3423
|
})
|
|
3424
3424
|
// cast type to skip module augmentation test
|
|
3425
3425
|
});
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3427
|
+
function lo(e = {}, ...r) {
|
|
3428
3428
|
const {
|
|
3429
3429
|
palette: t,
|
|
3430
3430
|
cssVariables: n = !1,
|
|
@@ -3444,66 +3444,66 @@ function so(e = {}, ...r) {
|
|
|
3444
3444
|
};
|
|
3445
3445
|
if (n === !1) {
|
|
3446
3446
|
if (!("colorSchemes" in e))
|
|
3447
|
-
return
|
|
3447
|
+
return Or(e, ...r);
|
|
3448
3448
|
let f = t;
|
|
3449
3449
|
"palette" in e || g[l] && (g[l] !== !0 ? f = g[l].palette : l === "dark" && (f = {
|
|
3450
3450
|
mode: "dark"
|
|
3451
3451
|
}));
|
|
3452
|
-
const m =
|
|
3452
|
+
const m = Or({
|
|
3453
3453
|
...e,
|
|
3454
3454
|
palette: f
|
|
3455
3455
|
}, ...r);
|
|
3456
3456
|
return m.defaultColorScheme = l, m.colorSchemes = g, m.palette.mode === "light" && (m.colorSchemes.light = {
|
|
3457
3457
|
...g.light !== !0 && g.light,
|
|
3458
3458
|
palette: m.palette
|
|
3459
|
-
},
|
|
3459
|
+
}, Bn(m, "dark", g.dark)), m.palette.mode === "dark" && (m.colorSchemes.dark = {
|
|
3460
3460
|
...g.dark !== !0 && g.dark,
|
|
3461
3461
|
palette: m.palette
|
|
3462
|
-
},
|
|
3462
|
+
}, Bn(m, "light", g.light)), m;
|
|
3463
3463
|
}
|
|
3464
|
-
return !t && !("light" in g) && l === "light" && (g.light = !0),
|
|
3464
|
+
return !t && !("light" in g) && l === "light" && (g.light = !0), Ps({
|
|
3465
3465
|
...a,
|
|
3466
3466
|
colorSchemes: g,
|
|
3467
3467
|
defaultColorScheme: l,
|
|
3468
3468
|
...typeof n != "boolean" && n
|
|
3469
3469
|
}, ...r);
|
|
3470
3470
|
}
|
|
3471
|
-
const
|
|
3472
|
-
function
|
|
3471
|
+
const $s = lo(), As = "$$material";
|
|
3472
|
+
function Is(e) {
|
|
3473
3473
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
3474
3474
|
}
|
|
3475
|
-
const
|
|
3476
|
-
themeId:
|
|
3477
|
-
defaultTheme:
|
|
3478
|
-
rootShouldForwardProp:
|
|
3479
|
-
}),
|
|
3475
|
+
const Bs = (e) => Is(e) && e !== "classes", Os = Ia({
|
|
3476
|
+
themeId: As,
|
|
3477
|
+
defaultTheme: $s,
|
|
3478
|
+
rootShouldForwardProp: Bs
|
|
3479
|
+
}), Ds = Va;
|
|
3480
3480
|
process.env.NODE_ENV !== "production" && (re.node, re.object.isRequired);
|
|
3481
|
-
function Ds(e) {
|
|
3482
|
-
return Na(e);
|
|
3483
|
-
}
|
|
3484
3481
|
function Ms(e) {
|
|
3485
|
-
return
|
|
3482
|
+
return ja(e);
|
|
3486
3483
|
}
|
|
3487
|
-
|
|
3488
|
-
|
|
3484
|
+
function Fs(e) {
|
|
3485
|
+
return Nr("MuiSvgIcon", e);
|
|
3486
|
+
}
|
|
3487
|
+
Ea("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
3488
|
+
const Ws = (e) => {
|
|
3489
3489
|
const {
|
|
3490
3490
|
color: r,
|
|
3491
3491
|
fontSize: t,
|
|
3492
3492
|
classes: n
|
|
3493
3493
|
} = e, o = {
|
|
3494
|
-
root: ["root", r !== "inherit" && `color${
|
|
3494
|
+
root: ["root", r !== "inherit" && `color${lt(r)}`, `fontSize${lt(t)}`]
|
|
3495
3495
|
};
|
|
3496
|
-
return
|
|
3497
|
-
},
|
|
3496
|
+
return bi(o, Fs, n);
|
|
3497
|
+
}, zs = Os("svg", {
|
|
3498
3498
|
name: "MuiSvgIcon",
|
|
3499
3499
|
slot: "Root",
|
|
3500
3500
|
overridesResolver: (e, r) => {
|
|
3501
3501
|
const {
|
|
3502
3502
|
ownerState: t
|
|
3503
3503
|
} = e;
|
|
3504
|
-
return [r.root, t.color !== "inherit" && r[`color${
|
|
3504
|
+
return [r.root, t.color !== "inherit" && r[`color${lt(t.color)}`], r[`fontSize${lt(t.fontSize)}`]];
|
|
3505
3505
|
}
|
|
3506
|
-
})(
|
|
3506
|
+
})(Ds(({
|
|
3507
3507
|
theme: e
|
|
3508
3508
|
}) => {
|
|
3509
3509
|
var r, t, n, o, s, a, l, c, g, f, m, y, h, x;
|
|
@@ -3595,8 +3595,8 @@ const Fs = (e) => {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
]
|
|
3597
3597
|
};
|
|
3598
|
-
})),
|
|
3599
|
-
const n =
|
|
3598
|
+
})), Qt = /* @__PURE__ */ qe.forwardRef(function(r, t) {
|
|
3599
|
+
const n = Ms({
|
|
3600
3600
|
props: r,
|
|
3601
3601
|
name: "MuiSvgIcon"
|
|
3602
3602
|
}), {
|
|
@@ -3610,7 +3610,7 @@ const Fs = (e) => {
|
|
|
3610
3610
|
titleAccess: m,
|
|
3611
3611
|
viewBox: y = "0 0 24 24",
|
|
3612
3612
|
...h
|
|
3613
|
-
} = n, x = /* @__PURE__ */
|
|
3613
|
+
} = n, x = /* @__PURE__ */ qe.isValidElement(o) && o.type === "svg", u = {
|
|
3614
3614
|
...n,
|
|
3615
3615
|
color: a,
|
|
3616
3616
|
component: l,
|
|
@@ -3621,10 +3621,10 @@ const Fs = (e) => {
|
|
|
3621
3621
|
hasSvgAsChild: x
|
|
3622
3622
|
}, b = {};
|
|
3623
3623
|
f || (b.viewBox = y);
|
|
3624
|
-
const v =
|
|
3625
|
-
return /* @__PURE__ */ p(
|
|
3624
|
+
const v = Ws(u);
|
|
3625
|
+
return /* @__PURE__ */ p(zs, {
|
|
3626
3626
|
as: l,
|
|
3627
|
-
className:
|
|
3627
|
+
className: Vn(v.root, s),
|
|
3628
3628
|
focusable: "false",
|
|
3629
3629
|
color: g,
|
|
3630
3630
|
"aria-hidden": m ? void 0 : !0,
|
|
@@ -3639,7 +3639,7 @@ const Fs = (e) => {
|
|
|
3639
3639
|
}) : null]
|
|
3640
3640
|
});
|
|
3641
3641
|
});
|
|
3642
|
-
process.env.NODE_ENV !== "production" && (
|
|
3642
|
+
process.env.NODE_ENV !== "production" && (Qt.propTypes = {
|
|
3643
3643
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3644
3644
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3645
3645
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3711,27 +3711,27 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
3711
3711
|
*/
|
|
3712
3712
|
viewBox: re.string
|
|
3713
3713
|
});
|
|
3714
|
-
|
|
3715
|
-
function
|
|
3714
|
+
Qt.muiName = "SvgIcon";
|
|
3715
|
+
function It(e, r) {
|
|
3716
3716
|
function t(n, o) {
|
|
3717
|
-
return /* @__PURE__ */ i(
|
|
3717
|
+
return /* @__PURE__ */ i(Qt, {
|
|
3718
3718
|
"data-testid": process.env.NODE_ENV !== "production" ? `${r}Icon` : void 0,
|
|
3719
3719
|
ref: o,
|
|
3720
3720
|
...n,
|
|
3721
3721
|
children: e
|
|
3722
3722
|
});
|
|
3723
3723
|
}
|
|
3724
|
-
return process.env.NODE_ENV !== "production" && (t.displayName = `${r}Icon`), t.muiName =
|
|
3724
|
+
return process.env.NODE_ENV !== "production" && (t.displayName = `${r}Icon`), t.muiName = Qt.muiName, /* @__PURE__ */ qe.memo(/* @__PURE__ */ qe.forwardRef(t));
|
|
3725
3725
|
}
|
|
3726
|
-
const
|
|
3726
|
+
const _s = It(/* @__PURE__ */ i("path", {
|
|
3727
3727
|
d: "M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"
|
|
3728
|
-
}), "TuneRounded"),
|
|
3728
|
+
}), "TuneRounded"), Ls = It(/* @__PURE__ */ i("path", {
|
|
3729
3729
|
d: "M12 5V3.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V7c3.31 0 6 2.69 6 6 0 2.72-1.83 5.02-4.31 5.75-.42.12-.69.52-.69.95 0 .65.62 1.16 1.25.97C17.57 19.7 20 16.64 20 13c0-4.42-3.58-8-8-8m-6 8c0-1.34.44-2.58 1.19-3.59.3-.4.26-.95-.09-1.31-.42-.42-1.14-.38-1.5.1-1 1.34-1.6 3-1.6 4.8 0 3.64 2.43 6.7 5.75 7.67.63.19 1.25-.32 1.25-.97 0-.43-.27-.83-.69-.95C7.83 18.02 6 15.72 6 13"
|
|
3730
|
-
}), "RestartAltRounded"),
|
|
3730
|
+
}), "RestartAltRounded"), Ns = It(/* @__PURE__ */ i("path", {
|
|
3731
3731
|
d: "M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"
|
|
3732
|
-
}), "DarkModeOutlined"),
|
|
3732
|
+
}), "DarkModeOutlined"), js = It(/* @__PURE__ */ i("path", {
|
|
3733
3733
|
d: "M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"
|
|
3734
|
-
}), "LightModeOutlined"),
|
|
3734
|
+
}), "LightModeOutlined"), On = (e) => {
|
|
3735
3735
|
let r;
|
|
3736
3736
|
const t = /* @__PURE__ */ new Set(), n = (g, f) => {
|
|
3737
3737
|
const m = typeof g == "function" ? g(r) : g;
|
|
@@ -3741,20 +3741,20 @@ const zs = At(/* @__PURE__ */ i("path", {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
}, o = () => r, l = { setState: n, getState: o, getInitialState: () => c, subscribe: (g) => (t.add(g), () => t.delete(g)) }, c = r = e(n, o, l);
|
|
3743
3743
|
return l;
|
|
3744
|
-
},
|
|
3745
|
-
function
|
|
3746
|
-
const t =
|
|
3744
|
+
}, Vs = ((e) => e ? On(e) : On), Us = (e) => e;
|
|
3745
|
+
function Gs(e, r = Us) {
|
|
3746
|
+
const t = Ft.useSyncExternalStore(
|
|
3747
3747
|
e.subscribe,
|
|
3748
|
-
|
|
3749
|
-
|
|
3748
|
+
Ft.useCallback(() => r(e.getState()), [e, r]),
|
|
3749
|
+
Ft.useCallback(() => r(e.getInitialState()), [e, r])
|
|
3750
3750
|
);
|
|
3751
|
-
return
|
|
3751
|
+
return Ft.useDebugValue(t), t;
|
|
3752
3752
|
}
|
|
3753
|
-
const
|
|
3754
|
-
const r =
|
|
3753
|
+
const Dn = (e) => {
|
|
3754
|
+
const r = Vs(e), t = (n) => Gs(r, n);
|
|
3755
3755
|
return Object.assign(t, r), t;
|
|
3756
|
-
},
|
|
3757
|
-
function
|
|
3756
|
+
}, co = ((e) => e ? Dn(e) : Dn);
|
|
3757
|
+
function Ys(e, r) {
|
|
3758
3758
|
let t;
|
|
3759
3759
|
try {
|
|
3760
3760
|
t = e();
|
|
@@ -3771,12 +3771,12 @@ function Gs(e, r) {
|
|
|
3771
3771
|
removeItem: (o) => t.removeItem(o)
|
|
3772
3772
|
};
|
|
3773
3773
|
}
|
|
3774
|
-
const
|
|
3774
|
+
const Dr = (e) => (r) => {
|
|
3775
3775
|
try {
|
|
3776
3776
|
const t = e(r);
|
|
3777
3777
|
return t instanceof Promise ? t : {
|
|
3778
3778
|
then(n) {
|
|
3779
|
-
return
|
|
3779
|
+
return Dr(n)(t);
|
|
3780
3780
|
},
|
|
3781
3781
|
catch(n) {
|
|
3782
3782
|
return this;
|
|
@@ -3788,13 +3788,13 @@ const Or = (e) => (r) => {
|
|
|
3788
3788
|
return this;
|
|
3789
3789
|
},
|
|
3790
3790
|
catch(n) {
|
|
3791
|
-
return
|
|
3791
|
+
return Dr(n)(t);
|
|
3792
3792
|
}
|
|
3793
3793
|
};
|
|
3794
3794
|
}
|
|
3795
|
-
},
|
|
3795
|
+
}, Js = (e, r) => (t, n, o) => {
|
|
3796
3796
|
let s = {
|
|
3797
|
-
storage:
|
|
3797
|
+
storage: Ys(() => window.localStorage),
|
|
3798
3798
|
partialize: (b) => b,
|
|
3799
3799
|
version: 0,
|
|
3800
3800
|
merge: (b, v) => ({
|
|
@@ -3839,7 +3839,7 @@ const Or = (e) => (r) => {
|
|
|
3839
3839
|
return C((k = n()) != null ? k : h);
|
|
3840
3840
|
});
|
|
3841
3841
|
const H = ((v = s.onRehydrateStorage) == null ? void 0 : v.call(s, (b = n()) != null ? b : h)) || void 0;
|
|
3842
|
-
return
|
|
3842
|
+
return Dr(f.getItem.bind(f))(s.name).then((C) => {
|
|
3843
3843
|
if (C)
|
|
3844
3844
|
if (typeof C.version == "number" && C.version !== s.version) {
|
|
3845
3845
|
if (s.migrate) {
|
|
@@ -3891,7 +3891,7 @@ const Or = (e) => (r) => {
|
|
|
3891
3891
|
g.delete(b);
|
|
3892
3892
|
})
|
|
3893
3893
|
}, s.skipHydration || u(), x || h;
|
|
3894
|
-
},
|
|
3894
|
+
}, qs = Js, Oe = {
|
|
3895
3895
|
appName: "Crystal Ball",
|
|
3896
3896
|
appTagline: "Run your whole business in one place",
|
|
3897
3897
|
logoMode: "icon",
|
|
@@ -3995,7 +3995,7 @@ const Or = (e) => (r) => {
|
|
|
3995
3995
|
loginImgOpacity: 0,
|
|
3996
3996
|
loginCardW: 0
|
|
3997
3997
|
}, Fe = (e) => JSON.stringify(e);
|
|
3998
|
-
function
|
|
3998
|
+
function Rr(e) {
|
|
3999
3999
|
const r = { ...Oe };
|
|
4000
4000
|
if (e && typeof e == "object")
|
|
4001
4001
|
for (const t of Object.keys(Oe)) {
|
|
@@ -4004,7 +4004,7 @@ function Tr(e) {
|
|
|
4004
4004
|
}
|
|
4005
4005
|
return r;
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4007
|
+
function Ks(e) {
|
|
4008
4008
|
if (!e || typeof e != "object") return !1;
|
|
4009
4009
|
const r = Object.keys(Oe);
|
|
4010
4010
|
let t = 0;
|
|
@@ -4014,8 +4014,8 @@ function qs(e) {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
return t / r.length >= 0.5;
|
|
4016
4016
|
}
|
|
4017
|
-
const j =
|
|
4018
|
-
|
|
4017
|
+
const j = co()(
|
|
4018
|
+
qs(
|
|
4019
4019
|
(e, r) => ({
|
|
4020
4020
|
settings: { ...Oe },
|
|
4021
4021
|
savedThemes: [],
|
|
@@ -4058,7 +4058,7 @@ const j = lo()(
|
|
|
4058
4058
|
};
|
|
4059
4059
|
}),
|
|
4060
4060
|
applySaved: (t) => e(() => {
|
|
4061
|
-
const n = { ...
|
|
4061
|
+
const n = { ...Rr(t.snap), presetId: t.id };
|
|
4062
4062
|
return { settings: n, baseline: Fe(n), editingSavedId: t.id, lastImportedId: null };
|
|
4063
4063
|
}),
|
|
4064
4064
|
renameSaved: (t, n) => e((o) => ({
|
|
@@ -4070,7 +4070,7 @@ const j = lo()(
|
|
|
4070
4070
|
lastImportedId: n.lastImportedId === t ? null : n.lastImportedId
|
|
4071
4071
|
})),
|
|
4072
4072
|
importTheme: (t, n) => {
|
|
4073
|
-
const o =
|
|
4073
|
+
const o = Rr(n), s = { id: "imp" + Date.now(), name: t, snap: o };
|
|
4074
4074
|
return e((a) => {
|
|
4075
4075
|
const l = { ...o, presetId: s.id };
|
|
4076
4076
|
return {
|
|
@@ -4091,7 +4091,7 @@ const j = lo()(
|
|
|
4091
4091
|
return {
|
|
4092
4092
|
...r,
|
|
4093
4093
|
...t,
|
|
4094
|
-
settings:
|
|
4094
|
+
settings: Rr(t.settings),
|
|
4095
4095
|
// Same reasoning as sanitizeSettings above: a corrupt/stale persisted value here
|
|
4096
4096
|
// (anything but a real array) would otherwise flow straight into state and crash
|
|
4097
4097
|
// every `.length`/`.map`/`.filter` call site on it (ThemeManagement.tsx, saveTheme,
|
|
@@ -4121,14 +4121,14 @@ function De(e) {
|
|
|
4121
4121
|
chevron: r ? "rgba(255,255,255,0.42)" : "#b3bcc7"
|
|
4122
4122
|
};
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function Mr(e) {
|
|
4125
4125
|
if (!e || e.length < 7) return [210, 60, 45];
|
|
4126
4126
|
const r = parseInt(e.slice(1, 3), 16) / 255, t = parseInt(e.slice(3, 5), 16) / 255, n = parseInt(e.slice(5, 7), 16) / 255, o = Math.max(r, t, n), s = Math.min(r, t, n), a = o - s;
|
|
4127
4127
|
let l = 0, c = 0;
|
|
4128
4128
|
const g = (o + s) / 2;
|
|
4129
4129
|
return a && (c = a / (1 - Math.abs(2 * g - 1)), o === r ? l = (t - n) / a % 6 : o === t ? l = (n - r) / a + 2 : l = (r - t) / a + 4, l = Math.round(l * 60), l < 0 && (l += 360)), [l, Math.round(c * 100), Math.round(g * 100)];
|
|
4130
4130
|
}
|
|
4131
|
-
function
|
|
4131
|
+
function pe(e, r, t) {
|
|
4132
4132
|
r /= 100, t /= 100;
|
|
4133
4133
|
const n = (o) => {
|
|
4134
4134
|
const s = (o + e / 30) % 12, a = r * Math.min(t, 1 - t);
|
|
@@ -4138,24 +4138,24 @@ function ce(e, r, t) {
|
|
|
4138
4138
|
}
|
|
4139
4139
|
function Re(e) {
|
|
4140
4140
|
try {
|
|
4141
|
-
const [r, t] =
|
|
4141
|
+
const [r, t] = Mr(e), n = Math.max(t, 18);
|
|
4142
4142
|
return {
|
|
4143
|
-
50:
|
|
4144
|
-
100:
|
|
4145
|
-
200:
|
|
4146
|
-
300:
|
|
4147
|
-
400:
|
|
4143
|
+
50: pe(r, Math.max(Math.round(n * 0.3), 10), 96),
|
|
4144
|
+
100: pe(r, Math.max(Math.round(n * 0.42), 12), 91),
|
|
4145
|
+
200: pe(r, Math.max(Math.round(n * 0.55), 16), 82),
|
|
4146
|
+
300: pe(r, Math.max(Math.round(n * 0.7), 20), 70),
|
|
4147
|
+
400: pe(r, n, 60),
|
|
4148
4148
|
500: e,
|
|
4149
|
-
600:
|
|
4150
|
-
700:
|
|
4151
|
-
800:
|
|
4152
|
-
900:
|
|
4149
|
+
600: pe(r, Math.min(n + 4, 100), 44),
|
|
4150
|
+
700: pe(r, Math.min(n + 8, 100), 36),
|
|
4151
|
+
800: pe(r, Math.max(Math.round(n * 0.92), 16), 26),
|
|
4152
|
+
900: pe(r, Math.max(Math.round(n * 0.8), 14), 16)
|
|
4153
4153
|
};
|
|
4154
4154
|
} catch {
|
|
4155
4155
|
return { 50: "#eef", 100: "#dde", 200: "#bbd", 300: "#99c", 400: "#77b", 500: e || "#4F6BFF", 600: "#1257a8", 700: "#0e4488", 800: "#0a3266", 900: "#062044" };
|
|
4156
4156
|
}
|
|
4157
4157
|
}
|
|
4158
|
-
function
|
|
4158
|
+
function Er(e, r) {
|
|
4159
4159
|
try {
|
|
4160
4160
|
const t = (l) => {
|
|
4161
4161
|
const c = [1, 3, 5].map((g) => {
|
|
@@ -4169,24 +4169,24 @@ function Rr(e, r) {
|
|
|
4169
4169
|
return 1;
|
|
4170
4170
|
}
|
|
4171
4171
|
}
|
|
4172
|
-
function
|
|
4172
|
+
function de(e, r) {
|
|
4173
4173
|
if (!e || e[0] !== "#" || e.length < 7) return "rgba(20,30,48," + r + ")";
|
|
4174
4174
|
const t = parseInt(e.slice(1, 3), 16), n = parseInt(e.slice(3, 5), 16), o = parseInt(e.slice(5, 7), 16);
|
|
4175
4175
|
return "rgba(" + t + "," + n + "," + o + "," + r + ")";
|
|
4176
4176
|
}
|
|
4177
|
-
function
|
|
4177
|
+
function Ur(e) {
|
|
4178
4178
|
const r = Re(e.primaryHex), t = Re(e.secondaryHex), n = e.mode === "dark", o = n ? r[300] : e.primaryHex, s = n ? t[300] : e.secondaryHex, a = {
|
|
4179
4179
|
pMain: o,
|
|
4180
4180
|
pDark: r[700],
|
|
4181
4181
|
pLight: r[300],
|
|
4182
4182
|
highlight: e.highlightHex || o,
|
|
4183
|
-
highlightSoft:
|
|
4184
|
-
highlightBd:
|
|
4185
|
-
pContrast: e.contrastMode === "light" ? "#ffffff" : e.contrastMode === "dark" ? "rgba(0,0,0,0.87)" :
|
|
4186
|
-
pContainer: n ?
|
|
4183
|
+
highlightSoft: de(e.highlightHex || o, n ? 0.22 : 0.14),
|
|
4184
|
+
highlightBd: de(e.highlightHex || o, n ? 0.45 : 0.32),
|
|
4185
|
+
pContrast: e.contrastMode === "light" ? "#ffffff" : e.contrastMode === "dark" ? "rgba(0,0,0,0.87)" : Er(o, "#ffffff") >= 2.9 ? "#ffffff" : "rgba(0,0,0,0.87)",
|
|
4186
|
+
pContainer: n ? de(e.primaryHex, 0.26) : r[50],
|
|
4187
4187
|
onPContainer: n ? r[100] : r[800],
|
|
4188
4188
|
sMain: s,
|
|
4189
|
-
sContrast:
|
|
4189
|
+
sContrast: Er(s, "#ffffff") >= 2.9 ? "#ffffff" : "rgba(0,0,0,0.87)",
|
|
4190
4190
|
bgDefault: n ? "#121212" : "#f3f5f8",
|
|
4191
4191
|
paper: n ? "#1e1e1e" : "#ffffff",
|
|
4192
4192
|
paper2: n ? "#262630" : "#f6f8fb",
|
|
@@ -4197,42 +4197,45 @@ function Vr(e) {
|
|
|
4197
4197
|
textDisabled: n ? "rgba(255,255,255,0.4)" : "rgba(0,0,0,0.38)",
|
|
4198
4198
|
divider: n ? "rgba(255,255,255,0.12)" : "rgba(0,0,0,0.12)",
|
|
4199
4199
|
outline: n ? "rgba(255,255,255,0.23)" : "rgba(0,0,0,0.23)"
|
|
4200
|
-
}, l = e.statusBold, c = l ? e.errorHex :
|
|
4201
|
-
n ? (a.bgDefault =
|
|
4200
|
+
}, l = e.statusBold, c = l ? e.errorHex : de(e.errorHex, n ? 0.22 : 0.13), g = l ? e.warningHex : de(e.warningHex, n ? 0.22 : 0.14), f = l ? e.infoHex : de(e.infoHex, n ? 0.22 : 0.13), m = l ? e.successHex : de(e.successHex, n ? 0.22 : 0.13), y = l ? "#ffffff" : n ? Re(e.errorHex)[300] : e.errorHex, h = l ? "#ffffff" : n ? Re(e.warningHex)[300] : Re(e.warningHex)[700], x = l ? "#ffffff" : n ? Re(e.infoHex)[300] : e.infoHex, u = l ? "#ffffff" : n ? Re(e.successHex)[300] : Re(e.successHex)[700], b = Mr(e.primaryHex)[0], v = { neutral: [220, 6], warm: [32, 26], cool: [210, 30], brand: [b, 42], slate: [214, 16], snow: [0, 0] }, $ = v[e.surfaceTint] || v.neutral, H = e.tintIntensity >= 0 ? e.tintIntensity : 100, C = [$[0], Math.round($[1] * H / 100)];
|
|
4201
|
+
n ? (a.bgDefault = pe(C[0], Math.round(C[1] * 0.7), 7), a.paper = pe(C[0], Math.round(C[1] * 0.7), 13), a.paper2 = pe(C[0], Math.round(C[1] * 0.85), 19)) : (a.bgDefault = "#ffffff", a.paper = "#ffffff", a.paper2 = pe(C[0], Math.round(C[1] * 0.85), e.surfaceTint === "brand" ? 95 : 96.5)), e.pageBgHex && (a.bgDefault = e.pageBgHex), e.cardBgHex && (a.paper = e.cardBgHex);
|
|
4202
4202
|
const k = { soft: 0, standard: 1, medium: 2, high: 3 }, R = k[e.contrast] !== void 0 ? k[e.contrast] : 1, z = n ? [["rgba(255,255,255,0.82)", "rgba(255,255,255,0.55)", "rgba(255,255,255,0.09)", "rgba(255,255,255,0.16)"], ["rgba(255,255,255,0.92)", "rgba(255,255,255,0.62)", "rgba(255,255,255,0.12)", "rgba(255,255,255,0.23)"], ["rgba(255,255,255,0.96)", "rgba(255,255,255,0.74)", "rgba(255,255,255,0.18)", "rgba(255,255,255,0.34)"], ["#ffffff", "rgba(255,255,255,0.87)", "rgba(255,255,255,0.26)", "rgba(255,255,255,0.46)"]] : [["rgba(0,0,0,0.72)", "rgba(0,0,0,0.5)", "rgba(0,0,0,0.08)", "rgba(0,0,0,0.16)"], ["rgba(0,0,0,0.87)", "rgba(0,0,0,0.6)", "rgba(0,0,0,0.12)", "rgba(0,0,0,0.23)"], ["rgba(0,0,0,0.92)", "rgba(0,0,0,0.7)", "rgba(0,0,0,0.18)", "rgba(0,0,0,0.34)"], ["#000000", "rgba(0,0,0,0.8)", "rgba(0,0,0,0.24)", "rgba(0,0,0,0.46)"]];
|
|
4203
|
-
a.textPrimary = z[R][0], a.textSecondary = z[R][1], a.divider = z[R][2], a.outline = z[R][3], e.textPrimaryHex && (a.textPrimary = e.textPrimaryHex), e.textSecondaryHex && (a.textSecondary = e.textSecondaryHex), e.dividerHex && (a.divider = e.dividerHex), e.nestedStyle === "lighter" ? a.paper2 = n ?
|
|
4204
|
-
const I = e.btnColorHex || o, X = e.accentGradient ? "linear-gradient(135deg," + I + "," + (e.btnColorHex ? Re(e.btnColorHex)[700] : r[n ? 500 : 700]) + ")" : I, Q = e.btnTextHex || (
|
|
4203
|
+
a.textPrimary = z[R][0], a.textSecondary = z[R][1], a.divider = z[R][2], a.outline = z[R][3], e.textPrimaryHex && (a.textPrimary = e.textPrimaryHex), e.textSecondaryHex && (a.textSecondary = e.textSecondaryHex), e.dividerHex && (a.divider = e.dividerHex), e.nestedStyle === "lighter" ? a.paper2 = n ? pe(C[0], Math.round(C[1] * 0.9), 22) : pe(C[0], Math.max(Math.round(C[1] * 0.3), 4), 100) : e.nestedStyle === "bordered" ? a.paper2 = a.paper : a.paper2 = n ? pe(C[0], Math.round(C[1] * 0.9), Math.max(3, 5)) : pe(C[0], Math.min(Math.round(C[1] * 1.1), 60), Math.max(88, 94 - C[1] * 0.18));
|
|
4204
|
+
const I = e.btnColorHex || o, X = e.accentGradient ? "linear-gradient(135deg," + I + "," + (e.btnColorHex ? Re(e.btnColorHex)[700] : r[n ? 500 : 700]) + ")" : I, Q = e.btnTextHex || (Er(I, "#ffffff") >= 2.9 ? "#ffffff" : "rgba(0,0,0,0.87)"), Y = e.h1Color || null, d = e.h2Color || null, B = e.h3Color || null, A = e.h4Color || null, L = e.h5Color || null, N = e.h6Color || null, K = [{ key: "sm", px: 13 }, { key: "df", px: 12 }, { key: "lg", px: 18 }], U = K.find((be) => be.key === e.textSize) || K[1], J = e.baseFontPx > 0 ? e.baseFontPx : U.px, P = e.bodyLineHeight > 0 ? e.bodyLineHeight : 1.5, D = e.h1Size > 0 ? e.h1Size : 20, q = Math.round(D * 1.1), V = D, G = Math.max(Math.round(D * 0.9), 11), M = Math.max(Math.round(D * 0.8), 11), w = Math.max(Math.round(D * 0.7), 10), O = Math.max(Math.round(D * 0.6), 10), F = Math.max(Math.round(D * 0.5), 9), E = J, W = Math.round(J * 0.92), te = Math.round(J * 0.8), _ = Math.round(J * 0.72), me = e.headingWeight, Ne = e.headingLH > 0 ? e.headingLH : 1.2, je = e.bodyWeight > 0 ? e.bodyWeight : 400, Qe = Math.min(900, je + 200), Ze = { compact: 0.82, default: 1, comfortable: 1.16 }, Ie = e.densityScale > 0 ? e.densityScale / 100 : Ze[e.density] ?? 1, fr = Math.round(20 * Ie), Ve = Math.round(14 * Ie), Bt = e.cardGapPx > 0 ? e.cardGapPx : Math.round(16 * Ie), et = Math.round(11 * Ie * ({ compact: 0.66, default: 1, comfortable: 1.32 }[e.tableDensity] ?? 1)), Ue = e.containerPadPx > 0 ? e.containerPadPx : Math.round(10 * Ie), ee = e.radiusVal, St = ee + "px", Ct = Math.max(Math.round(ee * 0.6), 2) + "px", Ge = de(o, n ? 0.22 : 0.14), Ye = {
|
|
4205
4205
|
0: "none",
|
|
4206
|
-
1:
|
|
4207
|
-
2:
|
|
4208
|
-
4:
|
|
4209
|
-
8:
|
|
4210
|
-
},
|
|
4211
|
-
let
|
|
4212
|
-
e.cardStyle === "outlined" ? (
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4206
|
+
1: n ? `0 2px 8px -1px ${Ge}, 0 2px 4px 0 rgba(0,0,0,0.28)` : `0 2px 6px -1px ${Ge}, 0 1px 3px 0 rgba(0,0,0,0.08)`,
|
|
4207
|
+
2: n ? `0 4px 14px -2px ${Ge}, 0 3px 8px 0 rgba(0,0,0,0.32)` : `0 3px 8px -2px ${Ge}, 0 2px 6px 0 rgba(0,0,0,0.08)`,
|
|
4208
|
+
4: n ? `0 6px 20px -3px ${Ge}, 0 4px 12px 0 rgba(0,0,0,0.38)` : `0 4px 12px -2px ${Ge}, 0 3px 8px 0 rgba(0,0,0,0.1)`,
|
|
4209
|
+
8: n ? `0 8px 32px -4px ${Ge}, 0 16px 36px 0 rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08)` : `0 6px 22px -2px ${Ge}, 0 8px 24px 0 rgba(0,0,0,0.08)`
|
|
4210
|
+
}, Yr = "1px solid rgba(255,255,255,0.06)";
|
|
4211
|
+
let wt, tt, Ot;
|
|
4212
|
+
if (e.cardStyle === "outlined" ? (wt = "none", tt = "1.5px solid " + a.outline, Ot = "none") : e.cardStyle === "soft" ? (wt = Ye[1], tt = n ? Yr : "none", Ot = Ye[1]) : (wt = Ye[8], tt = n ? Yr : "none", Ot = Ye[4]), e.cardShadowPx >= 0) {
|
|
4213
|
+
const be = de(o, n ? Math.min(0.38, 0.12 + e.cardShadowPx / 80) : Math.min(0.24, 0.08 + e.cardShadowPx / 130));
|
|
4214
|
+
wt = `0 ${Math.round(e.cardShadowPx * 0.4)}px ${Math.round(e.cardShadowPx * 1.3)}px ${be}, 0 ${Math.round(e.cardShadowPx * 0.6)}px ${Math.round(e.cardShadowPx * 1.8)}px rgba(0,0,0,${n ? 0.52 : 0.08})`;
|
|
4215
|
+
}
|
|
4216
|
+
let Dt = "transparent", Jr = "1px solid " + a.divider, hr = "none";
|
|
4217
|
+
e.cardHeader === "plain" ? Jr = "none" : e.cardHeader === "tinted" ? Dt = a.pContainer : e.cardHeader === "accent" && (hr = "inset 3px 0 0 " + o), e.headerStrength >= 0 && (e.cardHeader === "tinted" ? Dt = de(e.primaryHex, (n ? 0.14 : 0.08) * (e.headerStrength / 100)) : e.cardHeader === "accent" && (hr = "inset " + Math.round(e.headerStrength * 0.06) + "px 0 0 " + o)), e.cardHdrHex && (Dt = e.cardHdrHex);
|
|
4218
|
+
const fo = n ? "none" : Ye[4], ho = n ? "1px solid " + a.divider : "none", go = e.nestedStyle === "bordered" ? "1.5px solid " + a.outline : "1px solid " + a.divider, mo = e.nestedDepth > 0 ? "inset 3px 0 0 " + de(e.primaryHex, 0.55) + ", 0 " + Math.round(e.nestedDepth * 0.4) + "px " + e.nestedDepth + "px rgba(16,24,40," + (n ? 0.42 : 0.1) + ")" : "none", yo = (e.appName || "").trim().split(/\s+/).slice(0, 2).map((be) => be[0] || "").join("").toUpperCase() || "AP", bo = !!(e.logoMode === "image" && e.logoUrl), xo = !!e.loginImage, qr = (be) => {
|
|
4219
|
+
const Ce = be || "Roboto";
|
|
4217
4220
|
return Ce.includes(" ") && !Ce.startsWith('"') && !Ce.startsWith("'") ? `"${Ce}"` : Ce;
|
|
4218
|
-
},
|
|
4219
|
-
brand: [o, s,
|
|
4220
|
-
categorical: [
|
|
4221
|
-
sequential: [
|
|
4221
|
+
}, vo = qr(e.headingFont || e.fontFamily), So = qr(e.fontFamily), Se = Mr(e.primaryHex)[0], ve = (be, Ce) => pe((be % 360 + 360) % 360, 62, n ? 60 : 46), Kr = {
|
|
4222
|
+
brand: [o, s, ve(Se + 42), ve(Se + 205), ve(Se + 120)],
|
|
4223
|
+
categorical: [ve(Se), ve(Se + 72), ve(Se + 144), ve(Se + 216), ve(Se + 288)],
|
|
4224
|
+
sequential: [pe(Se, 55, n ? 40 : 78), pe(Se, 60, n ? 50 : 64), o, pe(Se, 70, n ? 70 : 38), pe(Se, 78, n ? 82 : 26)],
|
|
4222
4225
|
cbsafe: ["#0072B2", "#E69F00", "#009E73", "#CC79A7", "#56B4E9"],
|
|
4223
|
-
warm: [
|
|
4224
|
-
cool: [
|
|
4225
|
-
},
|
|
4226
|
-
let
|
|
4227
|
-
e.notifStyle === "toast" ?
|
|
4228
|
-
const
|
|
4229
|
-
rowPy:
|
|
4230
|
-
cellPx:
|
|
4226
|
+
warm: [ve(8), ve(28), ve(45), ve(350), ve(18)],
|
|
4227
|
+
cool: [ve(200), ve(220), ve(255), ve(180), ve(235)]
|
|
4228
|
+
}, Co = Kr[e.chartScheme] || Kr.brand, wo = [r[600], t[600], pe((Se + 42) % 360, 55, 46), pe((Se + 205) % 360, 50, 46)], ko = { error: { cb: c, cc: y }, success: { cb: m, cc: u }, info: { cb: f, cc: x }, warning: { cb: g, cc: h } }, gr = e.mapGlass === "light", To = gr ? "rgba(255,255,255,0.84)" : "rgba(15,20,28,0.74)", Ro = gr ? "#1c2733" : "#f3f6fa", Eo = gr ? "rgba(0,0,0,0.12)" : "rgba(255,255,255,0.18)", Ho = "repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 11px, rgba(255,255,255,0) 11px, rgba(255,255,255,0) 22px), radial-gradient(circle at 50% 38%, " + de(o, 0.22) + ", rgba(0,0,0,0) 60%), " + "#0f141c", Po = "linear-gradient(135deg," + o + "," + r[700] + ")", $o = "linear-gradient(180deg," + de(r[900], 0.12) + "," + de(r[900], 0.55) + ")", Ao = "linear-gradient(135deg," + r[700] + "," + r[900] + ")", Io = "linear-gradient(135deg," + de(r[900], 0.55) + "," + de(e.primaryHex, 0.45) + ")", Xr = { "top-right": { top: "14px", right: "14px" }, "top-center": { top: "14px", left: "50%", transform: "translateX(-50%)" }, "bottom-right": { bottom: "14px", right: "14px" }, "bottom-left": { bottom: "14px", left: "14px" } }, Bo = Xr[e.notifPosition] || Xr["top-right"], Qr = e.notifAccent === "primary" ? { bar: o, icbg: a.pContainer, icc: a.onPContainer, dot: o } : e.notifAccent === "mono" ? { bar: a.textSecondary, icbg: a.paper2, icc: a.textPrimary, dot: a.textSecondary } : { bar: e.warningHex, icbg: g, icc: h, dot: e.warningHex };
|
|
4229
|
+
let Mt;
|
|
4230
|
+
e.notifStyle === "toast" ? Mt = { boxShadow: Ye[8], border: typeof tt == "string" && tt !== "none" ? tt : "none" } : e.notifStyle === "banner" ? Mt = { boxShadow: Ye[2], borderLeft: "4px solid " + Qr.bar } : Mt = { boxShadow: "none", border: "1px solid " + a.divider };
|
|
4231
|
+
const Oo = e.notifCardHex || (n ? "#1e1e1e" : "#ffffff"), Do = { compact: "7px", default: "11px", comfortable: "16px" }, Mo = { compact: "6px", default: "12px", comfortable: "22px" }, Fo = { top: "flex-start", middle: "center", bottom: "flex-end" }, Wo = { left: "flex-start", center: "center", right: "flex-end" }, zo = { plain: "transparent", tinted: a.paper2, accent: a.highlightSoft }, _o = {
|
|
4232
|
+
rowPy: Do[e.tableDensity] || "11px",
|
|
4233
|
+
cellPx: Mo[e.tableColDensity] || "12px",
|
|
4231
4234
|
rowBorder: e.tableDividers ? (e.tableRowDivW || 1) + "px solid " + a.divider : "none",
|
|
4232
4235
|
colBorder: e.tableColDividers ? (e.tableColDivW || 1) + "px solid " + a.divider : "none",
|
|
4233
|
-
headBg:
|
|
4234
|
-
cellAI:
|
|
4235
|
-
cellJC:
|
|
4236
|
+
headBg: zo[e.tableHeaderStyle] || a.paper2,
|
|
4237
|
+
cellAI: Fo[e.tableCellAlignV] || "center",
|
|
4238
|
+
cellJC: Wo[e.tableCellAlignH] || "flex-start",
|
|
4236
4239
|
stripeBg: n ? "rgba(255,255,255,0.035)" : "rgba(0,0,0,0.028)",
|
|
4237
4240
|
statusMap: {
|
|
4238
4241
|
Delivered: { sb: m, sc: u },
|
|
@@ -4240,24 +4243,24 @@ function Vr(e) {
|
|
|
4240
4243
|
Pending: { sb: g, sc: h },
|
|
4241
4244
|
Shipped: { sb: f, sc: x }
|
|
4242
4245
|
},
|
|
4243
|
-
filters: ["All", "Delivered", "Processing", "Pending"].map((
|
|
4244
|
-
label:
|
|
4246
|
+
filters: ["All", "Delivered", "Processing", "Pending"].map((be, Ce) => ({
|
|
4247
|
+
label: be,
|
|
4245
4248
|
bg: Ce === 0 ? a.highlightSoft : "transparent",
|
|
4246
4249
|
c: Ce === 0 ? a.textPrimary : a.textSecondary,
|
|
4247
4250
|
brd: Ce === 0 ? a.highlightBd : a.outline
|
|
4248
4251
|
}))
|
|
4249
|
-
},
|
|
4252
|
+
}, Lo = { sm: "Small", df: "Default", lg: "Large" }, No = { compact: "Compact", default: "Default", comfortable: "Comfortable" }, jo = { outlined: "Outlined", soft: "Soft", floating: "Floating" }, Vo = { sharp: "Sharp", rounded: "Rounded", round: "Round" }, Uo = [
|
|
4250
4253
|
{ key: "sidebar", label: "Sidebar", desc: "Full drawer", ic: "▤" },
|
|
4251
4254
|
{ key: "rail", label: "Rail", desc: "Icons only", ic: "▥" },
|
|
4252
4255
|
{ key: "topbar", label: "Top Bar", desc: "Horizontal", ic: "▦" }
|
|
4253
|
-
],
|
|
4256
|
+
], Go = e.fontFamily + " · " + (Lo[e.textSize] || "Default"), Yo = (Vo[e.radiusPreset] || "Custom") + " · " + (No[e.density] || "Default") + " · " + (jo[e.cardStyle] || "Soft"), Jo = [
|
|
4254
4257
|
{ label: "General", ic: "◉" },
|
|
4255
4258
|
{ label: "Appearance", ic: "◧" },
|
|
4256
4259
|
{ label: "Modules", ic: "◫" },
|
|
4257
4260
|
{ label: "Team", ic: "◍" },
|
|
4258
4261
|
{ label: "Security", ic: "▣" },
|
|
4259
4262
|
{ label: "Billing", ic: "◳" }
|
|
4260
|
-
].map((
|
|
4263
|
+
].map((be, Ce) => ({ ...be, on: Ce === 1, bg: Ce === 1 ? a.highlightSoft : "transparent", c: Ce === 1 ? a.textPrimary : a.textSecondary, bar: Ce === 1 ? "3px solid " + a.highlight : "3px solid transparent" })), qo = Uo.map((be) => ({ ...be, active: e.navPattern === be.key, brd: e.navPattern === be.key ? o : a.divider, bg: e.navPattern === be.key ? a.pContainer : a.paper, color: e.navPattern === be.key ? a.onPContainer : a.textPrimary })), Ko = e.sidebarWidth, Xo = e.appBarH > 0 ? e.appBarH : 56, Qo = e.appBarH > 0 ? e.appBarH + "px" : "Auto (56px)";
|
|
4261
4264
|
return {
|
|
4262
4265
|
pal: r,
|
|
4263
4266
|
spal: t,
|
|
@@ -4273,7 +4276,7 @@ function Vr(e) {
|
|
|
4273
4276
|
warnTxt: h,
|
|
4274
4277
|
infoTxt: x,
|
|
4275
4278
|
sucTxt: u,
|
|
4276
|
-
sevMap:
|
|
4279
|
+
sevMap: ko,
|
|
4277
4280
|
accentBg: X,
|
|
4278
4281
|
btnText: Q,
|
|
4279
4282
|
hc1: Y,
|
|
@@ -4304,59 +4307,59 @@ function Vr(e) {
|
|
|
4304
4307
|
wH6: me,
|
|
4305
4308
|
headLH: Ne,
|
|
4306
4309
|
bodyWeightEff: je,
|
|
4307
|
-
bwEmph:
|
|
4308
|
-
pad:
|
|
4310
|
+
bwEmph: Qe,
|
|
4311
|
+
pad: fr,
|
|
4309
4312
|
padSm: Ve,
|
|
4310
|
-
gap:
|
|
4311
|
-
rowPy:
|
|
4313
|
+
gap: Bt,
|
|
4314
|
+
rowPy: et,
|
|
4312
4315
|
screenPad: Ue,
|
|
4313
4316
|
r: ee,
|
|
4314
|
-
rad:
|
|
4315
|
-
radSm:
|
|
4316
|
-
SH:
|
|
4317
|
-
cardShadow:
|
|
4318
|
-
cardBorder:
|
|
4319
|
-
btnShadow:
|
|
4320
|
-
cardHdrBg:
|
|
4321
|
-
cardHdrBorder:
|
|
4322
|
-
cardHdrAccent:
|
|
4323
|
-
appbarShadow:
|
|
4324
|
-
appbarBorder:
|
|
4325
|
-
nestBorder:
|
|
4326
|
-
nestShadow:
|
|
4327
|
-
iconInitials:
|
|
4328
|
-
hasLogo:
|
|
4329
|
-
hasLoginImage:
|
|
4330
|
-
headFam:
|
|
4331
|
-
bodyFam:
|
|
4317
|
+
rad: St,
|
|
4318
|
+
radSm: Ct,
|
|
4319
|
+
SH: Ye,
|
|
4320
|
+
cardShadow: wt,
|
|
4321
|
+
cardBorder: tt,
|
|
4322
|
+
btnShadow: Ot,
|
|
4323
|
+
cardHdrBg: Dt,
|
|
4324
|
+
cardHdrBorder: Jr,
|
|
4325
|
+
cardHdrAccent: hr,
|
|
4326
|
+
appbarShadow: fo,
|
|
4327
|
+
appbarBorder: ho,
|
|
4328
|
+
nestBorder: go,
|
|
4329
|
+
nestShadow: mo,
|
|
4330
|
+
iconInitials: yo,
|
|
4331
|
+
hasLogo: bo,
|
|
4332
|
+
hasLoginImage: xo,
|
|
4333
|
+
headFam: vo,
|
|
4334
|
+
bodyFam: So,
|
|
4332
4335
|
chartHue: Se,
|
|
4333
|
-
chartPalette:
|
|
4334
|
-
avatarColors:
|
|
4335
|
-
overlaySurface:
|
|
4336
|
-
onOverlay:
|
|
4337
|
-
overlayBorder:
|
|
4338
|
-
mediaBg:
|
|
4339
|
-
loginBrandGrad:
|
|
4340
|
-
loginScrimGrad:
|
|
4341
|
-
loginCenteredGrad:
|
|
4342
|
-
loginScrimGradC:
|
|
4343
|
-
npos:
|
|
4344
|
-
nacc:
|
|
4345
|
-
toastDeco:
|
|
4346
|
-
toastBg:
|
|
4336
|
+
chartPalette: Co,
|
|
4337
|
+
avatarColors: wo,
|
|
4338
|
+
overlaySurface: To,
|
|
4339
|
+
onOverlay: Ro,
|
|
4340
|
+
overlayBorder: Eo,
|
|
4341
|
+
mediaBg: Ho,
|
|
4342
|
+
loginBrandGrad: Po,
|
|
4343
|
+
loginScrimGrad: $o,
|
|
4344
|
+
loginCenteredGrad: Ao,
|
|
4345
|
+
loginScrimGradC: Io,
|
|
4346
|
+
npos: Bo,
|
|
4347
|
+
nacc: Qr,
|
|
4348
|
+
toastDeco: Mt,
|
|
4349
|
+
toastBg: Oo,
|
|
4347
4350
|
btnCase: e.btnCase !== "none" ? "uppercase" : "none",
|
|
4348
|
-
table:
|
|
4349
|
-
typeSummary:
|
|
4350
|
-
shapeSummary:
|
|
4351
|
-
settingsCats:
|
|
4352
|
-
navSettingsChips:
|
|
4353
|
-
sidebarWidth:
|
|
4354
|
-
appBarHEff:
|
|
4355
|
-
appBarHLabel:
|
|
4351
|
+
table: _o,
|
|
4352
|
+
typeSummary: Go,
|
|
4353
|
+
shapeSummary: Yo,
|
|
4354
|
+
settingsCats: Jo,
|
|
4355
|
+
navSettingsChips: qo,
|
|
4356
|
+
sidebarWidth: Ko,
|
|
4357
|
+
appBarHEff: Xo,
|
|
4358
|
+
appBarHLabel: Qo
|
|
4356
4359
|
};
|
|
4357
4360
|
}
|
|
4358
|
-
function
|
|
4359
|
-
const c = j((v) => v.settings), g = c.mode === "dark", f = c.primaryHex || "#4F6BFF", m = De(c.mode), y = Re(f), h =
|
|
4361
|
+
function Xs({ icon: e, title: r, info: t, open: n, dimmed: o, onToggle: s, onPreviewMenu: a, children: l }) {
|
|
4362
|
+
const c = j((v) => v.settings), g = c.mode === "dark", f = c.primaryHex || "#4F6BFF", m = De(c.mode), y = Re(f), h = Ur(c), x = n ? g ? de(f, 0.22) : de(f, 0.1) : "transparent", u = n ? g ? y[200] : y[700] : m.text, b = n ? f : m.chevron;
|
|
4360
4363
|
return /* @__PURE__ */ p(
|
|
4361
4364
|
S,
|
|
4362
4365
|
{
|
|
@@ -4409,16 +4412,16 @@ function Ks({ icon: e, title: r, info: t, open: n, dimmed: o, onToggle: s, onPre
|
|
|
4409
4412
|
]
|
|
4410
4413
|
}
|
|
4411
4414
|
),
|
|
4412
|
-
/* @__PURE__ */ i(
|
|
4415
|
+
/* @__PURE__ */ i(ei, { in: n, unmountOnExit: !0, timeout: 280, children: /* @__PURE__ */ i(S, { sx: { p: "2px 13px 12px", borderTop: `1px solid ${m.divider}` }, children: l }) })
|
|
4413
4416
|
]
|
|
4414
4417
|
}
|
|
4415
4418
|
);
|
|
4416
4419
|
}
|
|
4417
4420
|
function we() {
|
|
4418
4421
|
const e = j((r) => r.settings);
|
|
4419
|
-
return
|
|
4422
|
+
return Zo(() => Ur(e), [e]);
|
|
4420
4423
|
}
|
|
4421
|
-
function
|
|
4424
|
+
function dt({ tabs: e, active: r, onChange: t }) {
|
|
4422
4425
|
const n = j((y) => y.settings.mode), o = j((y) => y.settings.primaryHex) || "#4F6BFF", s = j((y) => y.settings.highlightHex) || "#ffd400", a = j((y) => y.settings.bodyWeight) || 400, l = n === "dark", c = Math.min(900, a + 200), g = we(), f = l ? "#e6edf3" : "#1c2127", m = l ? "#cdd4de" : "#5a6573";
|
|
4423
4426
|
return /* @__PURE__ */ i(S, { sx: { display: "flex", gap: "2px", mb: "2px", px: "2px", borderBottom: "1.5px solid rgba(120,130,145,0.5)" }, children: e.map((y) => {
|
|
4424
4427
|
const h = y.key === r, x = /* @__PURE__ */ i(
|
|
@@ -4445,10 +4448,10 @@ function lt({ tabs: e, active: r, onChange: t }) {
|
|
|
4445
4448
|
textAlign: "center",
|
|
4446
4449
|
color: h ? f : m,
|
|
4447
4450
|
opacity: h ? 1 : 0.3,
|
|
4448
|
-
bgcolor: h ?
|
|
4451
|
+
bgcolor: h ? de(s, l ? 0.26 : 0.18) : "transparent",
|
|
4449
4452
|
borderBottom: h ? `3px solid ${o}` : "2px solid transparent",
|
|
4450
4453
|
transition: "color .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease",
|
|
4451
|
-
"&:hover": h ? { bgcolor:
|
|
4454
|
+
"&:hover": h ? { bgcolor: de(s, l ? 0.26 : 0.18) } : { opacity: 1, bgcolor: "rgba(150,160,175,0.35)", borderRadius: "8px", boxShadow: "0 6px 18px rgba(0,0,0,0.35)", transform: "translateY(-2px)" }
|
|
4452
4455
|
},
|
|
4453
4456
|
children: y.label
|
|
4454
4457
|
},
|
|
@@ -4457,7 +4460,7 @@ function lt({ tabs: e, active: r, onChange: t }) {
|
|
|
4457
4460
|
return y.info ? /* @__PURE__ */ i(ze, { title: y.info, arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: x }, y.key) : x;
|
|
4458
4461
|
}) });
|
|
4459
4462
|
}
|
|
4460
|
-
const
|
|
4463
|
+
const Zt = [
|
|
4461
4464
|
{
|
|
4462
4465
|
id: "corporate",
|
|
4463
4466
|
name: "Corporate Blue",
|
|
@@ -4467,7 +4470,9 @@ const Qt = [
|
|
|
4467
4470
|
iconColor: "#2563EB",
|
|
4468
4471
|
surfaceTint: "brand",
|
|
4469
4472
|
cardHeader: "accent",
|
|
4470
|
-
highlightHex: "#00D2FF"
|
|
4473
|
+
highlightHex: "#00D2FF",
|
|
4474
|
+
cardStyle: "floating",
|
|
4475
|
+
cardShadowPx: 20
|
|
4471
4476
|
}
|
|
4472
4477
|
},
|
|
4473
4478
|
{
|
|
@@ -4479,28 +4484,32 @@ const Qt = [
|
|
|
4479
4484
|
iconColor: "#2EE6A6",
|
|
4480
4485
|
surfaceTint: "brand",
|
|
4481
4486
|
cardHeader: "accent",
|
|
4482
|
-
highlightHex: "#FFC255"
|
|
4487
|
+
highlightHex: "#FFC255",
|
|
4488
|
+
cardStyle: "floating",
|
|
4489
|
+
cardShadowPx: 20
|
|
4483
4490
|
}
|
|
4484
4491
|
},
|
|
4485
4492
|
{
|
|
4486
4493
|
id: "indigo",
|
|
4487
4494
|
name: "Indigo Violet",
|
|
4488
4495
|
snap: {
|
|
4489
|
-
primaryHex: "#
|
|
4490
|
-
secondaryHex: "#
|
|
4491
|
-
iconColor: "#
|
|
4496
|
+
primaryHex: "#EC4899",
|
|
4497
|
+
secondaryHex: "#7C3AED",
|
|
4498
|
+
iconColor: "#EC4899",
|
|
4492
4499
|
surfaceTint: "brand",
|
|
4493
4500
|
cardHeader: "accent",
|
|
4494
|
-
highlightHex: "#
|
|
4501
|
+
highlightHex: "#7C3AED",
|
|
4502
|
+
cardStyle: "floating",
|
|
4503
|
+
cardShadowPx: 20
|
|
4495
4504
|
}
|
|
4496
4505
|
},
|
|
4497
|
-
{ id: "slate", name: "Graphite", snap: { primaryHex: "#455a64", secondaryHex: "#78909c", iconColor: "#455a64" } },
|
|
4498
|
-
{ id: "teal", name: "Ocean Teal", snap: { primaryHex: "#00838f", secondaryHex: "#0277bd", iconColor: "#00838f" } },
|
|
4499
|
-
{ id: "amber", name: "Amber", snap: { primaryHex: "#e65100", secondaryHex: "#d84315", iconColor: "#e65100" } }
|
|
4506
|
+
{ id: "slate", name: "Graphite", snap: { primaryHex: "#455a64", secondaryHex: "#78909c", iconColor: "#455a64", cardStyle: "floating", cardShadowPx: 16 } },
|
|
4507
|
+
{ id: "teal", name: "Ocean Teal", snap: { primaryHex: "#00838f", secondaryHex: "#0277bd", iconColor: "#00838f", cardStyle: "floating", cardShadowPx: 20 } },
|
|
4508
|
+
{ id: "amber", name: "Amber", snap: { primaryHex: "#e65100", secondaryHex: "#d84315", iconColor: "#e65100", cardStyle: "floating", cardShadowPx: 20 } }
|
|
4500
4509
|
];
|
|
4501
|
-
function
|
|
4510
|
+
function Qs() {
|
|
4502
4511
|
var G, M;
|
|
4503
|
-
const [e, r] = Z("presets"), t = j((w) => w.settings), n = t.mode === "dark", o = t.highlightHex || "#ffd400", s =
|
|
4512
|
+
const [e, r] = Z("presets"), t = j((w) => w.settings), n = t.mode === "dark", o = t.highlightHex || "#ffd400", s = de(o, n ? 0.3 : 0.18), a = n ? "#e6edf3" : "#1c2127", l = n ? "rgba(255,255,255,0.82)" : "#2c333d", c = j((w) => w.savedThemes), g = j((w) => w.applyPreset), f = j((w) => w.applySaved), m = j((w) => w.saveTheme), y = j((w) => w.updateSaved), h = j((w) => w.renameSaved), x = j((w) => w.deleteSaved), u = j((w) => w.importTheme), b = j((w) => w.set), v = j((w) => w.isDirty), $ = j((w) => w.editingSavedId), H = j((w) => w.lastImportedId), C = c.find((w) => w.id === $), k = (w, O) => {
|
|
4504
4513
|
const F = new Blob([JSON.stringify({ name: w, snap: O }, null, 2)], { type: "application/json" }), E = URL.createObjectURL(F), W = document.createElement("a");
|
|
4505
4514
|
W.href = E, W.download = `${w.replace(/[^a-z0-9]+/gi, "-").toLowerCase()}.theme.json`, W.click(), URL.revokeObjectURL(E);
|
|
4506
4515
|
}, [R, z] = Z("");
|
|
@@ -4522,7 +4531,7 @@ function Xs() {
|
|
|
4522
4531
|
F.onload = () => {
|
|
4523
4532
|
try {
|
|
4524
4533
|
const W = JSON.parse(F.result), te = W.snap ?? W;
|
|
4525
|
-
if (!
|
|
4534
|
+
if (!Ks(te)) {
|
|
4526
4535
|
z("Invalid theme file. The selected file is not a valid Theme Studio export.");
|
|
4527
4536
|
return;
|
|
4528
4537
|
}
|
|
@@ -4536,18 +4545,18 @@ function Xs() {
|
|
|
4536
4545
|
z("Invalid theme file. The selected file is not a valid Theme Studio export.");
|
|
4537
4546
|
}
|
|
4538
4547
|
}, F.readAsText(O), w.target.value = "";
|
|
4539
|
-
}, [d, B] = Z(null), [A, L] = Z(!1), [N, K] = Z(""), [U, J] = Z(null), [P, D] = Z(null), q = (C == null ? void 0 : C.name) || ((G =
|
|
4548
|
+
}, [d, B] = Z(null), [A, L] = Z(!1), [N, K] = Z(""), [U, J] = Z(null), [P, D] = Z(null), q = (C == null ? void 0 : C.name) || ((G = Zt.find((w) => w.id === t.presetId)) == null ? void 0 : G.name) || ((M = c.find((w) => w.id === t.presetId)) == null ? void 0 : M.name) || "Custom Theme", V = (w, O) => {
|
|
4540
4549
|
const F = w.trim();
|
|
4541
4550
|
return F ? c.some((E) => E.name.toLowerCase() === F.toLowerCase() && E.id !== O) ? "Name already exists" : "" : "Name required";
|
|
4542
4551
|
};
|
|
4543
4552
|
return /* @__PURE__ */ p(ge, { children: [
|
|
4544
|
-
/* @__PURE__ */ i(
|
|
4553
|
+
/* @__PURE__ */ i(dt, { active: e, onChange: r, tabs: [
|
|
4545
4554
|
{ key: "presets", label: "Presets", info: "Ready-made colour themes." },
|
|
4546
4555
|
{ key: "saved", label: "My Themes", info: "Your saved custom themes." },
|
|
4547
4556
|
{ key: "mode", label: "Mode", info: "Light / Dark." }
|
|
4548
4557
|
] }),
|
|
4549
4558
|
/* @__PURE__ */ p(S, { sx: { p: "12px 2px 2px" }, children: [
|
|
4550
|
-
e === "presets" && /* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "9px" }, children:
|
|
4559
|
+
e === "presets" && /* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "9px" }, children: Zt.map((w) => {
|
|
4551
4560
|
const O = t.presetId === w.id;
|
|
4552
4561
|
return /* @__PURE__ */ p(
|
|
4553
4562
|
S,
|
|
@@ -4632,28 +4641,28 @@ function Xs() {
|
|
|
4632
4641
|
] }),
|
|
4633
4642
|
e === "mode" && /* @__PURE__ */ i(S, { sx: { display: "flex", gap: 1 }, children: ["light", "dark"].map((w) => /* @__PURE__ */ i(ke, { onClick: () => b({ mode: w }), variant: t.mode === w ? "contained" : "outlined", sx: { flex: 1, textTransform: "capitalize" }, children: w }, w)) })
|
|
4634
4643
|
] }),
|
|
4635
|
-
/* @__PURE__ */ p(
|
|
4636
|
-
/* @__PURE__ */ i(
|
|
4644
|
+
/* @__PURE__ */ p(ti, { open: !!d, anchorEl: d == null ? void 0 : d.el, onClose: () => B(null), children: [
|
|
4645
|
+
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4637
4646
|
const w = c.find((O) => O.id === d.id);
|
|
4638
4647
|
f(w), B(null);
|
|
4639
4648
|
}, children: "✏️ Edit" }),
|
|
4640
|
-
/* @__PURE__ */ i(
|
|
4649
|
+
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4641
4650
|
const w = c.find((O) => O.id === d.id);
|
|
4642
4651
|
J({ id: w.id, name: w.name }), B(null);
|
|
4643
4652
|
}, children: "✎ Rename" }),
|
|
4644
|
-
/* @__PURE__ */ i(
|
|
4653
|
+
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4645
4654
|
const w = c.find((O) => O.id === d.id);
|
|
4646
4655
|
D({ id: w.id, name: w.name }), B(null);
|
|
4647
4656
|
}, children: "🗑 Delete" }),
|
|
4648
|
-
/* @__PURE__ */ i(
|
|
4657
|
+
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4649
4658
|
const w = c.find((O) => O.id === d.id);
|
|
4650
4659
|
k(w.name, w.snap), B(null);
|
|
4651
4660
|
}, children: "⤓ Download" })
|
|
4652
4661
|
] }),
|
|
4653
|
-
/* @__PURE__ */ p(
|
|
4654
|
-
/* @__PURE__ */ i(
|
|
4655
|
-
/* @__PURE__ */ i(
|
|
4656
|
-
|
|
4662
|
+
/* @__PURE__ */ p(yt, { open: A, onClose: () => L(!1), children: [
|
|
4663
|
+
/* @__PURE__ */ i(Wt, { children: C ? `Save changes to “${C.name}”` : "Save theme" }),
|
|
4664
|
+
/* @__PURE__ */ i(zt, { children: /* @__PURE__ */ i(
|
|
4665
|
+
Zr,
|
|
4657
4666
|
{
|
|
4658
4667
|
autoFocus: !0,
|
|
4659
4668
|
fullWidth: !0,
|
|
@@ -4666,7 +4675,7 @@ function Xs() {
|
|
|
4666
4675
|
sx: { mt: 1 }
|
|
4667
4676
|
}
|
|
4668
4677
|
) }),
|
|
4669
|
-
/* @__PURE__ */ p(
|
|
4678
|
+
/* @__PURE__ */ p(_t, { children: [
|
|
4670
4679
|
/* @__PURE__ */ i(ke, { onClick: () => L(!1), children: "Cancel" }),
|
|
4671
4680
|
C && /* @__PURE__ */ i(
|
|
4672
4681
|
ke,
|
|
@@ -4692,24 +4701,24 @@ function Xs() {
|
|
|
4692
4701
|
)
|
|
4693
4702
|
] })
|
|
4694
4703
|
] }),
|
|
4695
|
-
/* @__PURE__ */ p(
|
|
4696
|
-
/* @__PURE__ */ i(
|
|
4697
|
-
/* @__PURE__ */ i(
|
|
4698
|
-
/* @__PURE__ */ p(
|
|
4704
|
+
/* @__PURE__ */ p(yt, { open: !!U, onClose: () => J(null), children: [
|
|
4705
|
+
/* @__PURE__ */ i(Wt, { children: "Rename theme" }),
|
|
4706
|
+
/* @__PURE__ */ i(zt, { children: /* @__PURE__ */ i(Zr, { autoFocus: !0, fullWidth: !0, size: "small", label: "New name", value: (U == null ? void 0 : U.name) ?? "", onChange: (w) => J((O) => O && { ...O, name: w.target.value }), error: !!(U && V(U.name, U.id)), helperText: U ? V(U.name, U.id) : "", sx: { mt: 1 } }) }),
|
|
4707
|
+
/* @__PURE__ */ p(_t, { children: [
|
|
4699
4708
|
/* @__PURE__ */ i(ke, { onClick: () => J(null), children: "Cancel" }),
|
|
4700
4709
|
/* @__PURE__ */ i(ke, { variant: "contained", disabled: !!(U && V(U.name, U.id)), onClick: () => {
|
|
4701
4710
|
h(U.id, U.name.trim()), J(null);
|
|
4702
4711
|
}, children: "Rename" })
|
|
4703
4712
|
] })
|
|
4704
4713
|
] }),
|
|
4705
|
-
/* @__PURE__ */ p(
|
|
4706
|
-
/* @__PURE__ */ i(
|
|
4707
|
-
/* @__PURE__ */ i(
|
|
4714
|
+
/* @__PURE__ */ p(yt, { open: !!I, onClose: () => X(null), children: [
|
|
4715
|
+
/* @__PURE__ */ i(Wt, { children: "Theme already exists" }),
|
|
4716
|
+
/* @__PURE__ */ i(zt, { children: /* @__PURE__ */ p(ue, { variant: "body2", children: [
|
|
4708
4717
|
"A theme named “",
|
|
4709
4718
|
I == null ? void 0 : I.name,
|
|
4710
4719
|
"” is already in My Themes. Upload it anyway as a copy?"
|
|
4711
4720
|
] }) }),
|
|
4712
|
-
/* @__PURE__ */ p(
|
|
4721
|
+
/* @__PURE__ */ p(_t, { children: [
|
|
4713
4722
|
/* @__PURE__ */ i(ke, { onClick: () => {
|
|
4714
4723
|
X(null), z("You’ve selected a duplicate file — it already exists.");
|
|
4715
4724
|
}, children: "Cancel" }),
|
|
@@ -4718,14 +4727,14 @@ function Xs() {
|
|
|
4718
4727
|
}, children: "Yes, continue" })
|
|
4719
4728
|
] })
|
|
4720
4729
|
] }),
|
|
4721
|
-
/* @__PURE__ */ p(
|
|
4722
|
-
/* @__PURE__ */ i(
|
|
4723
|
-
/* @__PURE__ */ i(
|
|
4730
|
+
/* @__PURE__ */ p(yt, { open: !!P, onClose: () => D(null), children: [
|
|
4731
|
+
/* @__PURE__ */ i(Wt, { children: "Delete theme" }),
|
|
4732
|
+
/* @__PURE__ */ i(zt, { children: /* @__PURE__ */ p(ue, { variant: "body2", children: [
|
|
4724
4733
|
"Delete “",
|
|
4725
4734
|
P == null ? void 0 : P.name,
|
|
4726
4735
|
"”? This cannot be undone."
|
|
4727
4736
|
] }) }),
|
|
4728
|
-
/* @__PURE__ */ p(
|
|
4737
|
+
/* @__PURE__ */ p(_t, { children: [
|
|
4729
4738
|
/* @__PURE__ */ i(ke, { onClick: () => D(null), children: "Cancel" }),
|
|
4730
4739
|
/* @__PURE__ */ i(ke, { color: "error", variant: "contained", onClick: () => {
|
|
4731
4740
|
x(P.id), D(null);
|
|
@@ -4734,7 +4743,7 @@ function Xs() {
|
|
|
4734
4743
|
] })
|
|
4735
4744
|
] });
|
|
4736
4745
|
}
|
|
4737
|
-
function
|
|
4746
|
+
function Zs({ tip: e, sk: r }) {
|
|
4738
4747
|
return /* @__PURE__ */ i(
|
|
4739
4748
|
S,
|
|
4740
4749
|
{
|
|
@@ -4745,14 +4754,14 @@ function Qs({ tip: e, sk: r }) {
|
|
|
4745
4754
|
}
|
|
4746
4755
|
);
|
|
4747
4756
|
}
|
|
4748
|
-
function
|
|
4757
|
+
function nt({ children: e, tip: r, sk: t, mt: n }) {
|
|
4749
4758
|
const o = we();
|
|
4750
4759
|
return /* @__PURE__ */ p(S, { sx: { fontSize: `${o.tCaption}px`, fontWeight: o.bwEmph, fontFamily: `${o.bodyFam},sans-serif`, color: t.label2, textTransform: "uppercase", letterSpacing: ".5px", mb: "6px", mt: n ? `${n}px` : 0, display: "flex", alignItems: "center", gap: "5px" }, children: [
|
|
4751
4760
|
e,
|
|
4752
|
-
r && /* @__PURE__ */ i(
|
|
4761
|
+
r && /* @__PURE__ */ i(Zs, { tip: r, sk: t })
|
|
4753
4762
|
] });
|
|
4754
4763
|
}
|
|
4755
|
-
function
|
|
4764
|
+
function gt({ value: e, onChange: r, w: t = 30, h: n = 24, r: o = 7, border: s, sk: a }) {
|
|
4756
4765
|
return /* @__PURE__ */ i(S, { sx: { width: t, height: n, borderRadius: `${o}px`, position: "relative", overflow: "hidden", flexShrink: 0, background: e, border: s ? `1px solid ${a.insetBd}` : "none" }, children: /* @__PURE__ */ i(
|
|
4757
4766
|
S,
|
|
4758
4767
|
{
|
|
@@ -4764,8 +4773,8 @@ function ht({ value: e, onChange: r, w: t = 30, h: n = 24, r: o = 7, border: s,
|
|
|
4764
4773
|
}
|
|
4765
4774
|
) });
|
|
4766
4775
|
}
|
|
4767
|
-
const
|
|
4768
|
-
function
|
|
4776
|
+
const el = /^#[0-9a-fA-F]{6}$/;
|
|
4777
|
+
function tl({ value: e, onCommit: r, onWarnChange: t }) {
|
|
4769
4778
|
const [n, o] = Z(!1), [s, a] = Z(e), [l, c] = Z(""), g = Te(void 0);
|
|
4770
4779
|
_e(() => {
|
|
4771
4780
|
n || a(e);
|
|
@@ -4776,10 +4785,10 @@ function el({ value: e, onCommit: r, onWarnChange: t }) {
|
|
|
4776
4785
|
}, 3e3));
|
|
4777
4786
|
}, m = (y) => {
|
|
4778
4787
|
const h = y.trim();
|
|
4779
|
-
return
|
|
4788
|
+
return el.test(h) ? (f(""), r(h), !0) : (f("Enter a valid hex colour, e.g. #4F6BFF"), !1);
|
|
4780
4789
|
};
|
|
4781
4790
|
return n ? /* @__PURE__ */ i(
|
|
4782
|
-
|
|
4791
|
+
Wr,
|
|
4783
4792
|
{
|
|
4784
4793
|
autoFocus: !0,
|
|
4785
4794
|
value: s,
|
|
@@ -4811,7 +4820,7 @@ function el({ value: e, onCommit: r, onWarnChange: t }) {
|
|
|
4811
4820
|
}
|
|
4812
4821
|
);
|
|
4813
4822
|
}
|
|
4814
|
-
function
|
|
4823
|
+
function rl() {
|
|
4815
4824
|
const [e, r] = Z("brand"), [t, n] = Z(""), o = j((v) => v.settings), s = j((v) => v.set), a = De(o.mode), l = we(), c = { fontSize: "11.5px", color: a.body, fontWeight: 600 }, g = { fontSize: `${l.tBodySm}px`, color: a.body, fontWeight: l.bodyWeightEff, fontFamily: `${l.bodyFam},sans-serif`, lineHeight: l.bodyLH }, f = o.primaryHex || "#4F6BFF", m = Re(f), y = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900].map((v) => m[v]), h = (v) => s({ ...v, presetId: "custom" }), x = [
|
|
4816
4825
|
{ key: "h1Color", label: "H1 · Page Title" },
|
|
4817
4826
|
{ key: "h2Color", label: "H2 · Metric" },
|
|
@@ -4831,7 +4840,7 @@ function tl() {
|
|
|
4831
4840
|
{ key: "notifCardHex", label: "Notification background", fb: "#ffffff" }
|
|
4832
4841
|
];
|
|
4833
4842
|
return /* @__PURE__ */ p(S, { sx: { display: "flex", flexDirection: "column", gap: "11px" }, children: [
|
|
4834
|
-
/* @__PURE__ */ i(
|
|
4843
|
+
/* @__PURE__ */ i(dt, { active: e, onChange: r, tabs: [
|
|
4835
4844
|
{ key: "brand", label: "Brand", info: "Core brand colours — primary, secondary and the selection highlight colour used across the app." },
|
|
4836
4845
|
{ key: "text", label: "Text", info: "Heading and body text colours" },
|
|
4837
4846
|
{ key: "status", label: "Status", info: "Status colours & surface overrides" }
|
|
@@ -4839,9 +4848,9 @@ function tl() {
|
|
|
4839
4848
|
/* @__PURE__ */ p(S, { sx: { p: "12px 2px 2px", display: "flex", flexDirection: "column", gap: "11px" }, children: [
|
|
4840
4849
|
e === "brand" && /* @__PURE__ */ p(S, { sx: { display: "flex", flexDirection: "column", gap: "11px" }, children: [
|
|
4841
4850
|
/* @__PURE__ */ p(S, { children: [
|
|
4842
|
-
/* @__PURE__ */ i(
|
|
4851
|
+
/* @__PURE__ */ i(nt, { sk: a, tip: "Primary brand colour — main/filled buttons, active sidebar item, links, focus rings, first chart series, and the login Sign-in button.", children: "Brand Color" }),
|
|
4843
4852
|
/* @__PURE__ */ p(S, { sx: { position: "relative", height: 46, borderRadius: "11px", background: f, overflow: "hidden", display: "flex", alignItems: "center", px: "14px", boxShadow: `0 3px 10px ${f}44` }, children: [
|
|
4844
|
-
/* @__PURE__ */ i(
|
|
4853
|
+
/* @__PURE__ */ i(tl, { value: f, onCommit: (v) => h({ primaryHex: v }), onWarnChange: n }),
|
|
4845
4854
|
/* @__PURE__ */ i(S, { component: "input", type: "color", value: f, onChange: (v) => h({ primaryHex: v.target.value }), sx: { position: "absolute", inset: 0, width: "100%", height: "100%", opacity: 0, cursor: "pointer", border: "none", p: 0 } })
|
|
4846
4855
|
] }),
|
|
4847
4856
|
/* @__PURE__ */ i(S, { sx: { display: "flex", gap: "2px", borderRadius: "7px", overflow: "hidden", height: 14, mt: "7px" }, children: y.map((v, $) => /* @__PURE__ */ i(S, { sx: { flex: 1, background: v } }, $)) }),
|
|
@@ -4864,50 +4873,50 @@ function tl() {
|
|
|
4864
4873
|
] })
|
|
4865
4874
|
] }),
|
|
4866
4875
|
/* @__PURE__ */ p(S, { children: [
|
|
4867
|
-
/* @__PURE__ */ i(
|
|
4876
|
+
/* @__PURE__ */ i(nt, { sk: a, tip: "Secondary accent — secondary/outlined buttons, switches & toggles, selected chips, and the second data series in charts.", children: "Secondary / Accent" }),
|
|
4868
4877
|
/* @__PURE__ */ i(S, { sx: { position: "relative", height: 34, borderRadius: "9px", background: o.secondaryHex, overflow: "hidden" }, children: /* @__PURE__ */ i(S, { component: "input", type: "color", value: o.secondaryHex, onChange: (v) => h({ secondaryHex: v.target.value }), sx: { position: "absolute", inset: 0, width: "100%", height: "100%", opacity: 0, cursor: "pointer", border: "none", p: 0 } }) })
|
|
4869
4878
|
] }),
|
|
4870
4879
|
/* @__PURE__ */ p(S, { children: [
|
|
4871
|
-
/* @__PURE__ */ i(
|
|
4880
|
+
/* @__PURE__ */ i(nt, { sk: a, tip: "Accent colour used to draw attention — highlight panels, featured badges, callouts. Defaults to the brand colour.", children: "Highlight Colour" }),
|
|
4872
4881
|
/* @__PURE__ */ i(S, { sx: { position: "relative", height: 34, borderRadius: "8px", background: o.highlightHex || o.primaryHex, overflow: "hidden", border: `1px solid ${a.insetBd}` }, children: /* @__PURE__ */ i(S, { component: "input", type: "color", value: o.highlightHex || o.primaryHex, onChange: (v) => h({ highlightHex: v.target.value }), sx: { position: "absolute", inset: 0, width: "100%", height: "100%", opacity: 0, cursor: "pointer", border: "none", p: 0 } }) })
|
|
4873
4882
|
] })
|
|
4874
4883
|
] }),
|
|
4875
4884
|
e === "text" && /* @__PURE__ */ p(S, { sx: { display: "flex", flexDirection: "column", gap: "11px" }, children: [
|
|
4876
|
-
/* @__PURE__ */ i(
|
|
4885
|
+
/* @__PURE__ */ i(nt, { sk: a, children: "Heading Text Colors" }),
|
|
4877
4886
|
/* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "9px" }, children: x.map((v) => /* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: "9px" }, children: [
|
|
4878
|
-
/* @__PURE__ */ i(
|
|
4887
|
+
/* @__PURE__ */ i(gt, { sk: a, border: !0, value: o[v.key] || "#1c2127", onChange: ($) => s({ [v.key]: $ }) }),
|
|
4879
4888
|
/* @__PURE__ */ i(S, { component: "span", sx: g, children: v.label })
|
|
4880
4889
|
] }, v.key)) }),
|
|
4881
|
-
/* @__PURE__ */ i(
|
|
4890
|
+
/* @__PURE__ */ i(nt, { sk: a, children: "Body Text Colors" }),
|
|
4882
4891
|
/* @__PURE__ */ p(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "7px" }, children: [
|
|
4883
4892
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: "9px" }, children: [
|
|
4884
|
-
/* @__PURE__ */ i(
|
|
4893
|
+
/* @__PURE__ */ i(gt, { sk: a, border: !0, value: o.textPrimaryHex || "#1c2127", onChange: (v) => s({ textPrimaryHex: v }) }),
|
|
4885
4894
|
/* @__PURE__ */ i(S, { component: "span", sx: c, title: "Main body text colour.", children: "Primary Text" })
|
|
4886
4895
|
] }),
|
|
4887
4896
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: "9px" }, children: [
|
|
4888
|
-
/* @__PURE__ */ i(
|
|
4897
|
+
/* @__PURE__ */ i(gt, { sk: a, border: !0, value: o.textSecondaryHex || "#5a6573", onChange: (v) => s({ textSecondaryHex: v }) }),
|
|
4889
4898
|
/* @__PURE__ */ i(S, { component: "span", sx: c, title: "Muted text colour.", children: "Secondary Text" })
|
|
4890
4899
|
] }),
|
|
4891
4900
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: "9px" }, children: [
|
|
4892
|
-
/* @__PURE__ */ i(
|
|
4901
|
+
/* @__PURE__ */ i(gt, { sk: a, border: !0, value: o.dividerHex || "#e3e8ee", onChange: (v) => s({ dividerHex: v }) }),
|
|
4893
4902
|
/* @__PURE__ */ i(S, { component: "span", sx: c, title: "Divider / border colour.", children: "Divider" })
|
|
4894
4903
|
] })
|
|
4895
4904
|
] })
|
|
4896
4905
|
] }),
|
|
4897
4906
|
e === "status" && /* @__PURE__ */ p(S, { sx: { display: "flex", flexDirection: "column", gap: "7px" }, children: [
|
|
4898
4907
|
/* @__PURE__ */ p(S, { children: [
|
|
4899
|
-
/* @__PURE__ */ i(
|
|
4908
|
+
/* @__PURE__ */ i(nt, { sk: a, tip: "Success, warning, error & info colours — used for alerts, status pills, toasts and validation states.", children: "Status Colors" }),
|
|
4900
4909
|
/* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "7px" }, children: u.map((v) => /* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: "8px", background: a.card, border: `1px solid ${a.insetBd}`, borderRadius: "9px", px: "9px", py: "7px" }, children: [
|
|
4901
|
-
/* @__PURE__ */ i(
|
|
4910
|
+
/* @__PURE__ */ i(gt, { sk: a, w: 22, h: 22, r: 6, value: o[v.key], onChange: ($) => s({ [v.key]: $ }) }),
|
|
4902
4911
|
/* @__PURE__ */ i(S, { component: "span", sx: c, children: v.label })
|
|
4903
4912
|
] }, v.key)) })
|
|
4904
4913
|
] }),
|
|
4905
4914
|
/* @__PURE__ */ p(S, { children: [
|
|
4906
|
-
/* @__PURE__ */ i(
|
|
4915
|
+
/* @__PURE__ */ i(nt, { sk: a, tip: "Override the auto-generated surface colours. Leave on Auto to follow the surface tint & mode.", children: "Surfaces" }),
|
|
4907
4916
|
/* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "7px" }, children: b.map((v) => {
|
|
4908
4917
|
const $ = !!o[v.key];
|
|
4909
4918
|
return /* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: "8px", background: a.card, border: `1px solid ${a.insetBd}`, borderRadius: "9px", px: "9px", py: "5px" }, children: [
|
|
4910
|
-
/* @__PURE__ */ i(
|
|
4919
|
+
/* @__PURE__ */ i(gt, { sk: a, w: 22, h: 22, r: 6, border: !0, value: o[v.key] || v.fb, onChange: (H) => s({ [v.key]: H }) }),
|
|
4911
4920
|
/* @__PURE__ */ i(S, { component: "span", sx: { ...c, flex: 1 }, children: v.label }),
|
|
4912
4921
|
$ && /* @__PURE__ */ i(
|
|
4913
4922
|
S,
|
|
@@ -4926,7 +4935,7 @@ function tl() {
|
|
|
4926
4935
|
] })
|
|
4927
4936
|
] });
|
|
4928
4937
|
}
|
|
4929
|
-
function
|
|
4938
|
+
function xe(e) {
|
|
4930
4939
|
const { label: r, info: t, value: n, effective: o, min: s, max: a, step: l = 1, unit: c = "", autoLabel: g, autoValue: f = 0, softMin: m, softMax: y, floorValue: h, floorReset: x, floorMessage: u, extra: b, onChange: v } = e, $ = De(j((K) => K.settings.mode)), H = we(), C = `${H.bodyFam},sans-serif`, [k, R] = Z(!1), [z, I] = Z(String(o)), [X, Q] = Z(""), Y = Te(void 0);
|
|
4931
4940
|
_e(() => {
|
|
4932
4941
|
k || I(String(o));
|
|
@@ -4956,7 +4965,7 @@ function be(e) {
|
|
|
4956
4965
|
] }),
|
|
4957
4966
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: "5px", flexShrink: 0 }, children: [
|
|
4958
4967
|
k ? /* @__PURE__ */ i(
|
|
4959
|
-
|
|
4968
|
+
Wr,
|
|
4960
4969
|
{
|
|
4961
4970
|
autoFocus: !0,
|
|
4962
4971
|
value: z,
|
|
@@ -5046,24 +5055,24 @@ function be(e) {
|
|
|
5046
5055
|
] })
|
|
5047
5056
|
] });
|
|
5048
5057
|
}
|
|
5049
|
-
const
|
|
5050
|
-
function
|
|
5051
|
-
if (
|
|
5052
|
-
|
|
5058
|
+
const Mn = /* @__PURE__ */ new Set();
|
|
5059
|
+
function po(e, r) {
|
|
5060
|
+
if (Mn.has(e)) return;
|
|
5061
|
+
Mn.add(e);
|
|
5053
5062
|
const t = document.createElement("style");
|
|
5054
5063
|
t.textContent = `@font-face{font-family:'${e}';src:url('${r}');font-display:swap;}`, document.head.appendChild(t);
|
|
5055
5064
|
}
|
|
5056
|
-
function
|
|
5057
|
-
e.forEach((r) =>
|
|
5065
|
+
function Fn(e) {
|
|
5066
|
+
e.forEach((r) => po(r.name, r.dataUrl));
|
|
5058
5067
|
}
|
|
5059
|
-
const
|
|
5068
|
+
const nl = [
|
|
5060
5069
|
{ key: "Roboto", label: "Roboto", sub: "Material" },
|
|
5061
5070
|
{ key: "Inter", label: "Inter", sub: "Enterprise" },
|
|
5062
5071
|
{ key: "DM Sans", label: "DM Sans", sub: "Modern" },
|
|
5063
5072
|
{ key: "Manrope", label: "Manrope", sub: "Geometric" },
|
|
5064
5073
|
{ key: "Plus Jakarta Sans", label: "Jakarta", sub: "Friendly" },
|
|
5065
5074
|
{ key: "Nunito Sans", label: "Nunito", sub: "Rounded" }
|
|
5066
|
-
],
|
|
5075
|
+
], ol = [
|
|
5067
5076
|
{ key: "Figtree", label: "Google Sans" },
|
|
5068
5077
|
{ key: "Roboto", label: "Roboto" },
|
|
5069
5078
|
{ key: "Inter", label: "Inter" },
|
|
@@ -5071,14 +5080,14 @@ const rl = [
|
|
|
5071
5080
|
{ key: "Manrope", label: "Manrope" },
|
|
5072
5081
|
{ key: "Plus Jakarta Sans", label: "Jakarta" }
|
|
5073
5082
|
];
|
|
5074
|
-
function
|
|
5075
|
-
const o = j((f) => f.settings.mode), s = j((f) => f.settings.primaryHex) || "#4F6BFF", a = j((f) => f.settings.highlightHex) || "#ffd400", l = o === "dark", c = Re(s), g =
|
|
5083
|
+
function Ut({ label: e, fam: r, active: t, onClick: n }) {
|
|
5084
|
+
const o = j((f) => f.settings.mode), s = j((f) => f.settings.primaryHex) || "#4F6BFF", a = j((f) => f.settings.highlightHex) || "#ffd400", l = o === "dark", c = Re(s), g = de(a, l ? 0.3 : 0.18);
|
|
5076
5085
|
return /* @__PURE__ */ i(S, { onClick: n, sx: { py: "17px", px: "4px", borderRadius: "10px", textAlign: "center", cursor: "pointer", border: `1px solid ${t ? l ? c[400] : s : l ? "#363d48" : "#e3e8ee"}`, bgcolor: t ? g : l ? "#262b34" : "#ffffff", transition: "all .14s ease", "&:hover": t ? {} : { borderColor: l ? "#4a5361" : "#c9d0d9" } }, children: /* @__PURE__ */ i(S, { sx: { fontFamily: `${r}, sans-serif`, fontSize: 13, fontWeight: 700, lineHeight: 1, color: t ? l ? c[200] : c[700] : l ? "#aeb6c0" : "#5a6573" }, children: e }) });
|
|
5077
5086
|
}
|
|
5078
|
-
const
|
|
5087
|
+
const il = ["woff2", "woff", "ttf", "otf"], al = 10 * 1024 * 1024, sl = (e) => new Promise((r, t) => {
|
|
5079
5088
|
const n = new FileReader();
|
|
5080
5089
|
n.onload = () => r(n.result), n.onerror = () => t(n.error), n.readAsDataURL(e);
|
|
5081
|
-
}),
|
|
5090
|
+
}), ll = (e) => new Promise((r) => {
|
|
5082
5091
|
const t = setTimeout(() => r(!1), 5e3), n = new FileReader();
|
|
5083
5092
|
n.onload = () => {
|
|
5084
5093
|
var a;
|
|
@@ -5096,7 +5105,7 @@ const ol = ["woff2", "woff", "ttf", "otf"], il = 10 * 1024 * 1024, al = (e) => n
|
|
|
5096
5105
|
clearTimeout(t), r(!1);
|
|
5097
5106
|
}
|
|
5098
5107
|
});
|
|
5099
|
-
function
|
|
5108
|
+
function Wn({ label: e, list: r, onAdd: t }) {
|
|
5100
5109
|
const n = De(j((f) => f.settings.mode)), o = we(), [s, a] = Z(""), l = Te(void 0);
|
|
5101
5110
|
_e(() => () => clearTimeout(l.current), []);
|
|
5102
5111
|
const c = (f) => {
|
|
@@ -5108,15 +5117,15 @@ function Fn({ label: e, list: r, onAdd: t }) {
|
|
|
5108
5117
|
const y = [], h = [], x = [], u = [], b = [];
|
|
5109
5118
|
for (const H of m) {
|
|
5110
5119
|
const C = (($ = H.name.split(".").pop()) == null ? void 0 : $.toLowerCase()) || "";
|
|
5111
|
-
if (!
|
|
5120
|
+
if (!il.includes(C)) {
|
|
5112
5121
|
x.push(H.name);
|
|
5113
5122
|
continue;
|
|
5114
5123
|
}
|
|
5115
|
-
if (H.size >
|
|
5124
|
+
if (H.size > al) {
|
|
5116
5125
|
u.push(H.name);
|
|
5117
5126
|
continue;
|
|
5118
5127
|
}
|
|
5119
|
-
if (!await
|
|
5128
|
+
if (!await ll(H)) {
|
|
5120
5129
|
b.push(H.name);
|
|
5121
5130
|
continue;
|
|
5122
5131
|
}
|
|
@@ -5125,8 +5134,8 @@ function Fn({ label: e, list: r, onAdd: t }) {
|
|
|
5125
5134
|
h.push(k);
|
|
5126
5135
|
continue;
|
|
5127
5136
|
}
|
|
5128
|
-
const z = await
|
|
5129
|
-
|
|
5137
|
+
const z = await sl(H);
|
|
5138
|
+
po(k, z), y.push({ name: k, dataUrl: z });
|
|
5130
5139
|
}
|
|
5131
5140
|
y.length && t(y);
|
|
5132
5141
|
const v = [];
|
|
@@ -5145,9 +5154,9 @@ function Fn({ label: e, list: r, onAdd: t }) {
|
|
|
5145
5154
|
] })
|
|
5146
5155
|
] });
|
|
5147
5156
|
}
|
|
5148
|
-
const
|
|
5149
|
-
function
|
|
5150
|
-
const e = j((f) => f.settings), r = j((f) => f.set), t = De(e.mode), n = we(), [o, s] = Z(!1), a = e.scaleRatioCustom > 0 ? e.scaleRatioCustom :
|
|
5157
|
+
const dl = { compact: 1.15, default: 1.25, airy: 1.414 };
|
|
5158
|
+
function cl() {
|
|
5159
|
+
const e = j((f) => f.settings), r = j((f) => f.set), t = De(e.mode), n = we(), [o, s] = Z(!1), a = e.scaleRatioCustom > 0 ? e.scaleRatioCustom : dl[e.scaleRatio] ?? 1.25, [l, c] = Z(a.toFixed(2));
|
|
5151
5160
|
_e(() => {
|
|
5152
5161
|
o || c(a.toFixed(2));
|
|
5153
5162
|
}, [a, o]);
|
|
@@ -5156,7 +5165,7 @@ function dl() {
|
|
|
5156
5165
|
isNaN(f) || r({ scaleRatioCustom: f }), s(!1);
|
|
5157
5166
|
};
|
|
5158
5167
|
return o ? /* @__PURE__ */ i(
|
|
5159
|
-
|
|
5168
|
+
Wr,
|
|
5160
5169
|
{
|
|
5161
5170
|
autoFocus: !0,
|
|
5162
5171
|
value: l,
|
|
@@ -5183,11 +5192,11 @@ function dl() {
|
|
|
5183
5192
|
}
|
|
5184
5193
|
);
|
|
5185
5194
|
}
|
|
5186
|
-
function
|
|
5195
|
+
function pl() {
|
|
5187
5196
|
const [e, r] = Z("bodyFont"), t = j((o) => o.settings), n = j((o) => o.set);
|
|
5188
5197
|
return /* @__PURE__ */ p(ge, { children: [
|
|
5189
5198
|
/* @__PURE__ */ i(
|
|
5190
|
-
|
|
5199
|
+
dt,
|
|
5191
5200
|
{
|
|
5192
5201
|
active: e,
|
|
5193
5202
|
onChange: r,
|
|
@@ -5202,33 +5211,33 @@ function cl() {
|
|
|
5202
5211
|
/* @__PURE__ */ p(S, { sx: { p: "12px 2px 2px" }, children: [
|
|
5203
5212
|
e === "bodyFont" && /* @__PURE__ */ p(ge, { children: [
|
|
5204
5213
|
/* @__PURE__ */ p(S, { sx: { display: "grid", gridTemplateColumns: "repeat(3,1fr)", gap: "10px" }, children: [
|
|
5205
|
-
|
|
5206
|
-
t.customFonts.map((o) => /* @__PURE__ */ i(
|
|
5214
|
+
nl.map((o) => /* @__PURE__ */ i(Ut, { label: o.label, sub: o.sub, fam: o.key, active: t.fontFamily === o.key, onClick: () => n({ fontFamily: o.key }) }, o.key)),
|
|
5215
|
+
t.customFonts.map((o) => /* @__PURE__ */ i(Ut, { label: o.name, sub: "Custom", fam: o.name, active: t.fontFamily === o.name, onClick: () => n({ fontFamily: o.name }) }, o.name))
|
|
5207
5216
|
] }),
|
|
5208
|
-
/* @__PURE__ */ i(
|
|
5217
|
+
/* @__PURE__ */ i(Wn, { label: "Upload custom font", list: t.customFonts, onAdd: (o) => n({ customFonts: [...o, ...t.customFonts], fontFamily: o[0].name }) })
|
|
5209
5218
|
] }),
|
|
5210
5219
|
e === "headFont" && /* @__PURE__ */ p(ge, { children: [
|
|
5211
5220
|
/* @__PURE__ */ p(S, { sx: { display: "grid", gridTemplateColumns: "repeat(3,1fr)", gap: "10px" }, children: [
|
|
5212
|
-
|
|
5213
|
-
t.customHeadFonts.map((o) => /* @__PURE__ */ i(
|
|
5221
|
+
ol.map((o) => /* @__PURE__ */ i(Ut, { label: o.label, fam: o.key, active: t.headingFont === o.key, onClick: () => n({ headingFont: o.key }) }, o.key)),
|
|
5222
|
+
t.customHeadFonts.map((o) => /* @__PURE__ */ i(Ut, { label: o.name, sub: "Custom", fam: o.name, active: t.headingFont === o.name, onClick: () => n({ headingFont: o.name }) }, o.name))
|
|
5214
5223
|
] }),
|
|
5215
|
-
/* @__PURE__ */ i(
|
|
5224
|
+
/* @__PURE__ */ i(Wn, { label: "Upload heading font", list: t.customHeadFonts, onAdd: (o) => n({ customHeadFonts: [...o, ...t.customHeadFonts], headingFont: o[0].name }) })
|
|
5216
5225
|
] }),
|
|
5217
5226
|
e === "headText" && /* @__PURE__ */ p(ge, { children: [
|
|
5218
|
-
/* @__PURE__ */ i(
|
|
5219
|
-
/* @__PURE__ */ i(
|
|
5220
|
-
/* @__PURE__ */ i(
|
|
5227
|
+
/* @__PURE__ */ i(xe, { label: "H1 size", info: "All heading levels scale from H1 by a modular ratio (configurable via the gear icon).", value: t.h1Size, effective: t.h1Size || 20, min: 18, max: 56, unit: "px", extra: /* @__PURE__ */ i(cl, {}), onChange: (o) => n({ h1Size: o }) }),
|
|
5228
|
+
/* @__PURE__ */ i(xe, { label: "Weight (all headings)", value: t.headingWeight, effective: t.headingWeight, min: 300, max: 900, step: 100, onChange: (o) => n({ headingWeight: o }) }),
|
|
5229
|
+
/* @__PURE__ */ i(xe, { label: "Line height (all headings)", value: t.headingLH, effective: t.headingLH || 1.2, min: 0.9, max: 2, step: 0.05, autoLabel: "Auto (1.20)", onChange: (o) => n({ headingLH: o }) })
|
|
5221
5230
|
] }),
|
|
5222
5231
|
e === "bodyText" && /* @__PURE__ */ p(ge, { children: [
|
|
5223
|
-
/* @__PURE__ */ i(
|
|
5224
|
-
/* @__PURE__ */ i(
|
|
5225
|
-
/* @__PURE__ */ i(
|
|
5232
|
+
/* @__PURE__ */ i(xe, { label: "Base font size", info: "Root body text size.", value: t.baseFontPx, effective: t.baseFontPx || 12, min: 9, max: 20, unit: "px", softMin: 9, onChange: (o) => n({ baseFontPx: o }) }),
|
|
5233
|
+
/* @__PURE__ */ i(xe, { label: "Body weight", value: t.bodyWeight, effective: t.bodyWeight || 400, min: 300, max: 900, step: 100, autoLabel: "Auto (400)", onChange: (o) => n({ bodyWeight: o }) }),
|
|
5234
|
+
/* @__PURE__ */ i(xe, { label: "Body line height", value: t.bodyLineHeight, effective: t.bodyLineHeight || 1.5, min: 1.2, max: 2, step: 0.05, autoLabel: "Auto (1.50)", onChange: (o) => n({ bodyLineHeight: o }) })
|
|
5226
5235
|
] })
|
|
5227
5236
|
] })
|
|
5228
5237
|
] });
|
|
5229
5238
|
}
|
|
5230
5239
|
function He({ options: e, value: r, columns: t = 3, onChange: n }) {
|
|
5231
|
-
const o = j((v) => v.settings.mode), s = j((v) => v.settings.primaryHex) || "#4F6BFF", a = j((v) => v.settings.highlightHex) || "#ffd400", l = o === "dark", c = Re(s), g = we(), f = `${g.bodyFam},sans-serif`, m =
|
|
5240
|
+
const o = j((v) => v.settings.mode), s = j((v) => v.settings.primaryHex) || "#4F6BFF", a = j((v) => v.settings.highlightHex) || "#ffd400", l = o === "dark", c = Re(s), g = we(), f = `${g.bodyFam},sans-serif`, m = de(a, l ? 0.3 : 0.18), y = l ? c[400] : s, h = l ? c[200] : c[700], x = l ? "#262b34" : "#ffffff", u = l ? "#363d48" : "#e3e8ee", b = l ? "#aeb6c0" : "#5a6573";
|
|
5232
5241
|
return /* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: `repeat(${t}, 1fr)`, gap: "6px" }, children: e.map((v) => {
|
|
5233
5242
|
const $ = v.key === r, H = /* @__PURE__ */ i(
|
|
5234
5243
|
S,
|
|
@@ -5257,12 +5266,12 @@ function He({ options: e, value: r, columns: t = 3, onChange: n }) {
|
|
|
5257
5266
|
return v.info ? /* @__PURE__ */ i(ze, { title: v.info, arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: H }, v.key) : H;
|
|
5258
5267
|
}) });
|
|
5259
5268
|
}
|
|
5260
|
-
const
|
|
5261
|
-
function
|
|
5262
|
-
const [e, r] = Z("style"), t = j((c) => c.settings), n = j((c) => c.set), o = t.cardShadowPx >= 0 ? t.cardShadowPx :
|
|
5269
|
+
const Gt = { outlined: 0, soft: 6, floating: 24 }, Yt = { plain: 0, tinted: 40, accent: 60 }, ul = { bordered: 0, recessed: 6, lighter: 4 };
|
|
5270
|
+
function fl() {
|
|
5271
|
+
const [e, r] = Z("style"), t = j((c) => c.settings), n = j((c) => c.set), o = t.cardShadowPx >= 0 ? t.cardShadowPx : Gt[t.cardStyle] ?? 24, s = t.headerStrength >= 0 ? t.headerStrength : Yt[t.cardHeader] ?? 45, a = t.nestedDepth >= 0 ? t.nestedDepth : ul[t.nestedStyle] ?? 6, l = t.tintIntensity >= 0 ? t.tintIntensity : 100;
|
|
5263
5272
|
return /* @__PURE__ */ p(ge, { children: [
|
|
5264
5273
|
/* @__PURE__ */ i(
|
|
5265
|
-
|
|
5274
|
+
dt,
|
|
5266
5275
|
{
|
|
5267
5276
|
active: e,
|
|
5268
5277
|
onChange: r,
|
|
@@ -5282,12 +5291,12 @@ function ul() {
|
|
|
5282
5291
|
value: t.cardStyle,
|
|
5283
5292
|
onChange: (c) => {
|
|
5284
5293
|
const g = c;
|
|
5285
|
-
n({ cardStyle: g, cardShadowPx:
|
|
5294
|
+
n({ cardStyle: g, cardShadowPx: Gt[g] });
|
|
5286
5295
|
},
|
|
5287
5296
|
options: [{ key: "outlined", label: "Outlined" }, { key: "soft", label: "Soft" }, { key: "floating", label: "Floating" }]
|
|
5288
5297
|
}
|
|
5289
5298
|
),
|
|
5290
|
-
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(
|
|
5299
|
+
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(xe, { label: "Shadow depth", info: "Card elevation (px).", value: t.cardShadowPx, effective: o, min: 0, max: 32, unit: "px", autoValue: -1, autoLabel: `Auto (${o}px)`, softMin: t.cardStyle === "outlined" ? void 0 : 1, softMax: 32, floorValue: t.cardStyle === "outlined" ? void 0 : 0, floorReset: Gt[t.cardStyle], floorMessage: `${t.cardStyle === "soft" ? "Soft" : "Floating"} cards need shadow - reset to ${Gt[t.cardStyle]}px`, onChange: (c) => n({ cardShadowPx: c }) }) })
|
|
5291
5300
|
] }),
|
|
5292
5301
|
e === "header" && /* @__PURE__ */ p(ge, { children: [
|
|
5293
5302
|
/* @__PURE__ */ i(
|
|
@@ -5296,12 +5305,12 @@ function ul() {
|
|
|
5296
5305
|
value: t.cardHeader,
|
|
5297
5306
|
onChange: (c) => {
|
|
5298
5307
|
const g = c;
|
|
5299
|
-
n({ cardHeader: g, headerStrength:
|
|
5308
|
+
n({ cardHeader: g, headerStrength: Yt[g] });
|
|
5300
5309
|
},
|
|
5301
5310
|
options: [{ key: "plain", label: "Plain" }, { key: "tinted", label: "Tinted" }, { key: "accent", label: "Accent" }]
|
|
5302
5311
|
}
|
|
5303
5312
|
),
|
|
5304
|
-
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(
|
|
5313
|
+
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(xe, { label: "Header strength", info: "Header tint / accent intensity.", value: t.headerStrength, effective: s, min: 0, max: 100, unit: "%", autoValue: -1, autoLabel: `Auto (${s}%)`, softMin: t.cardHeader === "plain" ? void 0 : 1, floorValue: t.cardHeader === "plain" ? void 0 : 0, floorReset: Yt[t.cardHeader], floorMessage: `${t.cardHeader === "tinted" ? "Tinted" : "Accent"} headers need strength - reset to ${Yt[t.cardHeader]}%`, onChange: (c) => n({ headerStrength: c }) }) })
|
|
5305
5314
|
] }),
|
|
5306
5315
|
e === "nested" && /* @__PURE__ */ p(ge, { children: [
|
|
5307
5316
|
/* @__PURE__ */ i(
|
|
@@ -5312,7 +5321,7 @@ function ul() {
|
|
|
5312
5321
|
options: [{ key: "recessed", label: "Recessed" }, { key: "lighter", label: "Lighter" }, { key: "bordered", label: "Bordered" }]
|
|
5313
5322
|
}
|
|
5314
5323
|
),
|
|
5315
|
-
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(
|
|
5324
|
+
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(xe, { label: "Nested depth", info: "Inset depth of cards-within-cards.", value: t.nestedDepth, effective: a, min: 0, max: 24, unit: "px", autoValue: -1, autoLabel: `Auto (${a}px)`, onChange: (c) => n({ nestedDepth: c }) }) })
|
|
5316
5325
|
] }),
|
|
5317
5326
|
e === "tint" && /* @__PURE__ */ p(ge, { children: [
|
|
5318
5327
|
/* @__PURE__ */ i(
|
|
@@ -5323,15 +5332,15 @@ function ul() {
|
|
|
5323
5332
|
options: [{ key: "snow", label: "None" }, { key: "neutral", label: "Low" }, { key: "brand", label: "High" }]
|
|
5324
5333
|
}
|
|
5325
5334
|
),
|
|
5326
|
-
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(
|
|
5335
|
+
/* @__PURE__ */ i(S, { sx: { mt: 1.5 }, children: /* @__PURE__ */ i(xe, { label: "Tint intensity", info: "Strength of the page surface tint.", value: t.tintIntensity, effective: l, min: 0, max: 100, unit: "%", autoValue: -1, autoLabel: `Auto (${l}%)`, onChange: (c) => n({ tintIntensity: c }) }) })
|
|
5327
5336
|
] })
|
|
5328
5337
|
] })
|
|
5329
5338
|
] });
|
|
5330
5339
|
}
|
|
5331
|
-
function
|
|
5340
|
+
function hl() {
|
|
5332
5341
|
const [e, r] = Z("rows"), t = j((o) => o.settings), n = j((o) => o.set);
|
|
5333
5342
|
return /* @__PURE__ */ p(ge, { children: [
|
|
5334
|
-
/* @__PURE__ */ i(
|
|
5343
|
+
/* @__PURE__ */ i(dt, { active: e, onChange: r, tabs: [
|
|
5335
5344
|
{ key: "rows", label: "Rows", info: "Row density & dividers." },
|
|
5336
5345
|
{ key: "cols", label: "Columns", info: "Column density & dividers." },
|
|
5337
5346
|
{ key: "cells", label: "Cells", info: "Cell text & vertical alignment." },
|
|
@@ -5347,8 +5356,8 @@ function fl() {
|
|
|
5347
5356
|
options: [{ key: "compact", label: "Compact" }, { key: "default", label: "Default" }, { key: "comfortable", label: "Comfortable" }]
|
|
5348
5357
|
}
|
|
5349
5358
|
),
|
|
5350
|
-
/* @__PURE__ */ i(
|
|
5351
|
-
t.tableDividers && /* @__PURE__ */ i(
|
|
5359
|
+
/* @__PURE__ */ i(Et, { sx: { mt: 1 }, control: /* @__PURE__ */ i(bt, { checked: t.tableDividers, onChange: (o) => n({ tableDividers: o.target.checked }) }), label: "Row dividers" }),
|
|
5360
|
+
t.tableDividers && /* @__PURE__ */ i(xe, { label: "Divider width", value: t.tableRowDivW, effective: t.tableRowDivW, min: 1, max: 4, unit: "px", onChange: (o) => n({ tableRowDivW: o }) })
|
|
5352
5361
|
] }),
|
|
5353
5362
|
e === "cols" && /* @__PURE__ */ p(ge, { children: [
|
|
5354
5363
|
/* @__PURE__ */ i(
|
|
@@ -5359,8 +5368,8 @@ function fl() {
|
|
|
5359
5368
|
options: [{ key: "compact", label: "Compact" }, { key: "default", label: "Default" }, { key: "comfortable", label: "Comfortable" }]
|
|
5360
5369
|
}
|
|
5361
5370
|
),
|
|
5362
|
-
/* @__PURE__ */ i(
|
|
5363
|
-
t.tableColDividers && /* @__PURE__ */ i(
|
|
5371
|
+
/* @__PURE__ */ i(Et, { sx: { mt: 1 }, control: /* @__PURE__ */ i(bt, { checked: t.tableColDividers, onChange: (o) => n({ tableColDividers: o.target.checked }) }), label: "Column dividers" }),
|
|
5372
|
+
t.tableColDividers && /* @__PURE__ */ i(xe, { label: "Divider width", value: t.tableColDivW, effective: t.tableColDivW, min: 1, max: 4, unit: "px", onChange: (o) => n({ tableColDivW: o }) })
|
|
5364
5373
|
] }),
|
|
5365
5374
|
e === "cells" && /* @__PURE__ */ p(ge, { children: [
|
|
5366
5375
|
/* @__PURE__ */ i(
|
|
@@ -5389,16 +5398,16 @@ function fl() {
|
|
|
5389
5398
|
options: [{ key: "plain", label: "Plain" }, { key: "tinted", label: "Tinted" }, { key: "accent", label: "Accent" }]
|
|
5390
5399
|
}
|
|
5391
5400
|
),
|
|
5392
|
-
/* @__PURE__ */ i(
|
|
5401
|
+
/* @__PURE__ */ i(Et, { sx: { mt: 1 }, control: /* @__PURE__ */ i(bt, { checked: t.tableStripe, onChange: (o) => n({ tableStripe: o.target.checked }) }), label: "Striped rows" })
|
|
5393
5402
|
] })
|
|
5394
5403
|
] })
|
|
5395
5404
|
] });
|
|
5396
5405
|
}
|
|
5397
|
-
const
|
|
5398
|
-
function
|
|
5399
|
-
const [e, r] = Z("shape"), t = j((c) => c.settings), n = j((c) => c.set), o = De(t.mode), s = t.densityScale > 0 ? t.densityScale : Math.round((
|
|
5406
|
+
const Hr = { compact: 0.82, default: 1, comfortable: 1.16 };
|
|
5407
|
+
function gl() {
|
|
5408
|
+
const [e, r] = Z("shape"), t = j((c) => c.settings), n = j((c) => c.set), o = De(t.mode), s = t.densityScale > 0 ? t.densityScale : Math.round((Hr[t.density] ?? 1) * 100), a = t.cardGapPx > 0 ? t.cardGapPx : Math.round(16 * (Hr[t.density] ?? 1)), l = t.containerPadPx > 0 ? t.containerPadPx : Math.round(10 * (Hr[t.density] ?? 1));
|
|
5400
5409
|
return /* @__PURE__ */ p(ge, { children: [
|
|
5401
|
-
/* @__PURE__ */ i(
|
|
5410
|
+
/* @__PURE__ */ i(dt, { active: e, onChange: r, tabs: [
|
|
5402
5411
|
{ key: "shape", label: "Shape", info: "Corner radius & layout density." },
|
|
5403
5412
|
{ key: "effects", label: "Effects", info: "Spacing, button case & status chips." }
|
|
5404
5413
|
] }),
|
|
@@ -5413,7 +5422,7 @@ function hl() {
|
|
|
5413
5422
|
options: [{ key: "sharp", label: "Sharp" }, { key: "rounded", label: "Rounded" }, { key: "round", label: "Round" }]
|
|
5414
5423
|
}
|
|
5415
5424
|
),
|
|
5416
|
-
/* @__PURE__ */ i(S, { sx: { mt: 1.25 }, children: /* @__PURE__ */ i(
|
|
5425
|
+
/* @__PURE__ */ i(S, { sx: { mt: 1.25 }, children: /* @__PURE__ */ i(xe, { label: "Exact radius", value: t.radiusVal, effective: t.radiusVal, min: 0, max: 28, unit: "px", onChange: (c) => n({ radiusVal: c, radiusPreset: "rounded" }) }) }),
|
|
5417
5426
|
/* @__PURE__ */ i(ue, { variant: "caption", sx: { fontWeight: 700, color: o.label2, textTransform: "uppercase", letterSpacing: ".6px", display: "block", mb: 0.75, mt: 0.5 }, children: "Density" }),
|
|
5418
5427
|
/* @__PURE__ */ i(
|
|
5419
5428
|
He,
|
|
@@ -5423,15 +5432,15 @@ function hl() {
|
|
|
5423
5432
|
options: [{ key: "compact", label: "Compact" }, { key: "default", label: "Default" }, { key: "comfortable", label: "Comfortable" }]
|
|
5424
5433
|
}
|
|
5425
5434
|
),
|
|
5426
|
-
/* @__PURE__ */ i(S, { sx: { mt: 1.25 }, children: /* @__PURE__ */ i(
|
|
5435
|
+
/* @__PURE__ */ i(S, { sx: { mt: 1.25 }, children: /* @__PURE__ */ i(xe, { label: "Exact density", info: "Fine-tune spacing scale (%).", value: t.densityScale, effective: s, min: 60, max: 140, unit: "%", onChange: (c) => n({ densityScale: c }) }) })
|
|
5427
5436
|
] }),
|
|
5428
5437
|
e === "effects" && /* @__PURE__ */ p(ge, { children: [
|
|
5429
|
-
/* @__PURE__ */ i(
|
|
5430
|
-
/* @__PURE__ */ i(
|
|
5431
|
-
/* @__PURE__ */ i(
|
|
5438
|
+
/* @__PURE__ */ i(xe, { label: "Card-to-card gap", value: t.cardGapPx, effective: a, min: 0, max: 40, step: 2, unit: "px", autoLabel: `Auto (${a}px)`, onChange: (c) => n({ cardGapPx: c }) }),
|
|
5439
|
+
/* @__PURE__ */ i(xe, { label: "Container padding", value: t.containerPadPx, effective: l, min: 0, max: 40, step: 2, unit: "px", autoLabel: `Auto (${l}px)`, onChange: (c) => n({ containerPadPx: c }) }),
|
|
5440
|
+
/* @__PURE__ */ i(xe, { label: "Edge gap", info: "Space between the preview frame and the outer app card.", value: t.edgePadPx, effective: t.edgePadPx, min: 0, max: 40, step: 2, unit: "px", autoLabel: "0px (flush)", onChange: (c) => n({ edgePadPx: c }) }),
|
|
5432
5441
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mt: 1 }, children: [
|
|
5433
5442
|
/* @__PURE__ */ i(ue, { variant: "caption", sx: { fontWeight: 700, color: o.label2 }, children: "Uppercase button labels" }),
|
|
5434
|
-
/* @__PURE__ */ i(
|
|
5443
|
+
/* @__PURE__ */ i(bt, { size: "small", checked: t.btnCase === "upper", onChange: (c) => n({ btnCase: c.target.checked ? "upper" : "none" }) })
|
|
5435
5444
|
] }),
|
|
5436
5445
|
/* @__PURE__ */ p(S, { sx: { mt: 1.25 }, children: [
|
|
5437
5446
|
/* @__PURE__ */ i(ue, { variant: "caption", sx: { fontWeight: 700, color: o.label2, textTransform: "uppercase", letterSpacing: ".6px", display: "block", mb: 0.75 }, children: "Status Chips" }),
|
|
@@ -5449,10 +5458,10 @@ function hl() {
|
|
|
5449
5458
|
] })
|
|
5450
5459
|
] });
|
|
5451
5460
|
}
|
|
5452
|
-
function
|
|
5461
|
+
function ml() {
|
|
5453
5462
|
const [e, r] = Z("placement"), t = j((o) => o.settings), n = j((o) => o.set);
|
|
5454
5463
|
return /* @__PURE__ */ p(ge, { children: [
|
|
5455
|
-
/* @__PURE__ */ i(
|
|
5464
|
+
/* @__PURE__ */ i(dt, { active: e, onChange: r, tabs: [
|
|
5456
5465
|
{ key: "placement", label: "Placement", info: "Where toasts appear." },
|
|
5457
5466
|
{ key: "behaviour", label: "Behaviour", info: "Width & auto-dismiss." }
|
|
5458
5467
|
] }),
|
|
@@ -5472,15 +5481,15 @@ function gl() {
|
|
|
5472
5481
|
}
|
|
5473
5482
|
),
|
|
5474
5483
|
e === "behaviour" && /* @__PURE__ */ p(ge, { children: [
|
|
5475
|
-
/* @__PURE__ */ i(
|
|
5476
|
-
/* @__PURE__ */ i(
|
|
5477
|
-
/* @__PURE__ */ i(
|
|
5478
|
-
t.notifAutoDismiss && /* @__PURE__ */ i(
|
|
5484
|
+
/* @__PURE__ */ i(xe, { label: "Toast width", value: t.toastW, effective: t.toastW || 252, min: 200, max: 500, unit: "px", softMax: 500, onChange: (o) => n({ toastW: o }) }),
|
|
5485
|
+
/* @__PURE__ */ i(Et, { sx: { mt: 0.5 }, control: /* @__PURE__ */ i(bt, { checked: t.notifBadge, onChange: (o) => n({ notifBadge: o.target.checked }) }), label: "Show unread badge" }),
|
|
5486
|
+
/* @__PURE__ */ i(Et, { sx: { mt: 0.5, display: "flex" }, control: /* @__PURE__ */ i(bt, { checked: t.notifAutoDismiss, onChange: (o) => n({ notifAutoDismiss: o.target.checked }) }), label: "Auto-dismiss toasts" }),
|
|
5487
|
+
t.notifAutoDismiss && /* @__PURE__ */ i(xe, { label: "Dismiss after", value: t.autoDismissSec, effective: t.autoDismissSec || 5, min: 5, max: 30, unit: "s", onChange: (o) => n({ autoDismissSec: o }) })
|
|
5479
5488
|
] })
|
|
5480
5489
|
] })
|
|
5481
5490
|
] });
|
|
5482
5491
|
}
|
|
5483
|
-
function
|
|
5492
|
+
function yl({ label: e, info: r, value: t, fallback: n, onChange: o, onReset: s }) {
|
|
5484
5493
|
const a = De(j((f) => f.settings.mode)), [l, c] = Z(null), g = t || n;
|
|
5485
5494
|
return /* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: 1, py: 0.5 }, children: [
|
|
5486
5495
|
/* @__PURE__ */ i(
|
|
@@ -5495,10 +5504,10 @@ function ml({ label: e, info: r, value: t, fallback: n, onChange: o, onReset: s
|
|
|
5495
5504
|
r && /* @__PURE__ */ i(ze, { title: r, arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i(S, { component: "span", sx: { width: 13, height: 13, borderRadius: "50%", border: `1.1px solid ${a.chevron}`, color: a.chevron, fontSize: 8, fontWeight: 800, fontStyle: "italic", fontFamily: "Georgia, serif", display: "inline-grid", placeItems: "center", cursor: "help" }, children: "i" }) })
|
|
5496
5505
|
] }),
|
|
5497
5506
|
t && s && /* @__PURE__ */ i(S, { component: "span", onClick: s, title: "Reset to theme default", sx: { fontSize: 13, color: a.muted, cursor: "pointer" }, children: "↺" }),
|
|
5498
|
-
/* @__PURE__ */ i(
|
|
5507
|
+
/* @__PURE__ */ i(ri, { open: !!l, anchorEl: l, onClose: () => c(null), anchorOrigin: { vertical: "bottom", horizontal: "right" }, children: /* @__PURE__ */ i(S, { sx: { p: 1 }, children: /* @__PURE__ */ i("input", { type: "color", value: g, onChange: (f) => o(f.target.value), style: { width: 160, height: 40, border: "none", background: "none" } }) }) })
|
|
5499
5508
|
] });
|
|
5500
5509
|
}
|
|
5501
|
-
function
|
|
5510
|
+
function bl({ src: e, aspect: r, onCancel: t, onConfirm: n }) {
|
|
5502
5511
|
const [o, s] = Z(1), [a, l] = Z({ x: 0, y: 0 }), c = Te(null), g = Te(null), f = Te(null), m = Te(null);
|
|
5503
5512
|
_e(() => {
|
|
5504
5513
|
const x = (b) => {
|
|
@@ -5532,7 +5541,7 @@ function yl({ src: e, aspect: r, onCancel: t, onConfirm: n }) {
|
|
|
5532
5541
|
n(e);
|
|
5533
5542
|
}
|
|
5534
5543
|
};
|
|
5535
|
-
return
|
|
5544
|
+
return ai(
|
|
5536
5545
|
/* @__PURE__ */ i(S, { sx: { position: "fixed", inset: 0, zIndex: 1400, bgcolor: "rgba(15,23,42,.6)", display: "flex", alignItems: "center", justifyContent: "center", p: 2.25, overflow: "auto" }, children: /* @__PURE__ */ p(S, { sx: { width: "100%", maxWidth: 320, bgcolor: "background.paper", border: "1px solid", borderColor: "divider", borderRadius: 3, boxShadow: "0 20px 50px rgba(15,23,42,.4)", p: 2 }, children: [
|
|
5537
5546
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 14, fontWeight: 800, mb: 0.5 }, children: "Adjust brand image" }),
|
|
5538
5547
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 11.5, color: "text.secondary", mb: 1.5, lineHeight: 1.45 }, children: "Drag and zoom to fit your image inside the bright frame. Anything in the dimmed area is cropped out." }),
|
|
@@ -5542,7 +5551,7 @@ function yl({ src: e, aspect: r, onCancel: t, onConfirm: n }) {
|
|
|
5542
5551
|
] }),
|
|
5543
5552
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: 1, my: 1.5 }, children: [
|
|
5544
5553
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 12, fontWeight: 700, color: "text.secondary" }, children: "Zoom" }),
|
|
5545
|
-
/* @__PURE__ */ i(
|
|
5554
|
+
/* @__PURE__ */ i(ni, { size: "small", min: 0.3, max: 4, step: 0.02, value: o, onChange: (x, u) => s(u) })
|
|
5546
5555
|
] }),
|
|
5547
5556
|
/* @__PURE__ */ p(S, { sx: { display: "flex", gap: 1 }, children: [
|
|
5548
5557
|
/* @__PURE__ */ i(S, { component: "button", onClick: t, sx: { flex: 1, p: 1.25, borderRadius: 2.5, border: "1px solid", borderColor: "divider", bgcolor: "action.hover", color: "text.secondary", fontSize: 12.5, fontWeight: 700, cursor: "pointer" }, children: "Cancel" }),
|
|
@@ -5552,7 +5561,7 @@ function yl({ src: e, aspect: r, onCancel: t, onConfirm: n }) {
|
|
|
5552
5561
|
document.body
|
|
5553
5562
|
);
|
|
5554
5563
|
}
|
|
5555
|
-
function
|
|
5564
|
+
function xl() {
|
|
5556
5565
|
const e = j((f) => f.settings), r = j((f) => f.set), t = De(e.mode), [n, o] = Z(null), s = (f, m) => {
|
|
5557
5566
|
var x;
|
|
5558
5567
|
const y = (x = f.target.files) == null ? void 0 : x[0];
|
|
@@ -5584,12 +5593,12 @@ function bl() {
|
|
|
5584
5593
|
] }),
|
|
5585
5594
|
/* @__PURE__ */ p(S, { children: [
|
|
5586
5595
|
/* @__PURE__ */ i(ue, { variant: "caption", sx: { ...l, color: t.label2, display: "block", mb: 0.5 }, children: "Panel Colour" }),
|
|
5587
|
-
/* @__PURE__ */ i(
|
|
5596
|
+
/* @__PURE__ */ i(yl, { label: "Login panel background", value: e.loginPanelColor, fallback: e.primaryHex, onChange: (f) => r({ loginPanelColor: f }), onReset: () => r({ loginPanelColor: "" }) })
|
|
5588
5597
|
] }),
|
|
5589
|
-
n && /* @__PURE__ */ i(
|
|
5598
|
+
n && /* @__PURE__ */ i(bl, { src: n.src, aspect: n.aspect, onCancel: () => o(null), onConfirm: a })
|
|
5590
5599
|
] });
|
|
5591
5600
|
}
|
|
5592
|
-
const
|
|
5601
|
+
const vl = [
|
|
5593
5602
|
{ key: "dashboard", label: "Dashboard" },
|
|
5594
5603
|
{ key: "orders", label: "Orders" },
|
|
5595
5604
|
{ key: "reports", label: "Reports" },
|
|
@@ -5597,14 +5606,14 @@ const xl = [
|
|
|
5597
5606
|
{ key: "operations", label: "Operations" },
|
|
5598
5607
|
{ key: "components", label: "Components" },
|
|
5599
5608
|
{ key: "login", label: "Login" }
|
|
5600
|
-
],
|
|
5609
|
+
], Sl = [
|
|
5601
5610
|
{ key: "dashboard", label: "Dashboard" },
|
|
5602
5611
|
{ key: "operations", label: "Operations" },
|
|
5603
5612
|
{ key: "cameras", label: "Cameras" },
|
|
5604
5613
|
{ key: "reports", label: "Reports" },
|
|
5605
5614
|
{ key: "orders", label: "Orders" },
|
|
5606
5615
|
{ key: "components", label: "Components" }
|
|
5607
|
-
],
|
|
5616
|
+
], ot = co((e) => ({
|
|
5608
5617
|
openSection: "",
|
|
5609
5618
|
setOpenSection: (r) => e({ openSection: r }),
|
|
5610
5619
|
previewScreen: "dashboard",
|
|
@@ -5614,12 +5623,12 @@ const xl = [
|
|
|
5614
5623
|
studioOpen: !0,
|
|
5615
5624
|
setStudioOpen: (r) => e({ studioOpen: r })
|
|
5616
5625
|
}));
|
|
5617
|
-
function
|
|
5626
|
+
function Cl({ onClose: e }) {
|
|
5618
5627
|
var M, w, O, F;
|
|
5619
|
-
const r =
|
|
5628
|
+
const r = ot((E) => E.openSection), t = ot((E) => E.setOpenSection), n = ot((E) => E.setPreviewScreen), o = ot((E) => E.previewScreen), s = ot((E) => E.previewMenuOpen), a = ot((E) => E.setPreviewMenuOpen), l = j((E) => E.settings), c = j((E) => E.savedThemes), g = j((E) => E.editingSavedId), f = j((E) => E.isDirty), m = j((E) => E.set), y = j((E) => E.reset), h = De(l.mode), x = Te("theme"), [u, b] = Z(!1), v = (E, W) => {
|
|
5620
5629
|
const te = r !== E;
|
|
5621
5630
|
t(te ? E : ""), a(!1), te && x.current !== E && (n(W), x.current = E);
|
|
5622
|
-
}, $ = ((M = c.find((E) => E.id === g)) == null ? void 0 : M.name) || ((w =
|
|
5631
|
+
}, $ = ((M = c.find((E) => E.id === g)) == null ? void 0 : M.name) || ((w = Zt.find((E) => E.id === l.presetId)) == null ? void 0 : w.name) || ((O = c.find((E) => E.id === l.presetId)) == null ? void 0 : O.name) || "Custom Theme", H = f(), C = ((F = Zt.find((E) => E.id === Oe.presetId)) == null ? void 0 : F.name) ?? "default", k = { fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }, R = ({ children: E }) => /* @__PURE__ */ i("svg", { width: "18", height: "18", viewBox: "0 0 24 24", ...k, children: E }), z = /* @__PURE__ */ p(R, { children: [
|
|
5623
5632
|
/* @__PURE__ */ i("circle", { cx: "13.5", cy: "6.5", r: "2.5" }),
|
|
5624
5633
|
/* @__PURE__ */ i("circle", { cx: "17.5", cy: "10.5", r: "2.5" }),
|
|
5625
5634
|
/* @__PURE__ */ i("circle", { cx: "8.5", cy: "7.5", r: "2.5" }),
|
|
@@ -5658,14 +5667,14 @@ function Sl({ onClose: e }) {
|
|
|
5658
5667
|
notif: `${q[l.notifPosition] ?? ""} · ${N(l.notifStyle)}`,
|
|
5659
5668
|
login: `${D[l.loginLayout] ?? ""}${l.loginImage ? " · image" : ""}`
|
|
5660
5669
|
}, G = [
|
|
5661
|
-
{ id: "theme", title: "Theme Settings", info: "Presets, saved themes & light/dark mode.", icon: z, screen: "dashboard", body: /* @__PURE__ */ i(
|
|
5662
|
-
{ id: "color", title: "Colour Settings", info: "Brand, text & status colours.", icon: I, screen: "components", body: /* @__PURE__ */ i(
|
|
5663
|
-
{ id: "type", title: "Typography", info: "Fonts, sizes, weight & line-height.", icon: X, screen: "components", body: /* @__PURE__ */ i(
|
|
5664
|
-
{ id: "cards", title: "Cards", info: "Card style, header, nesting & tint.", icon: Q, screen: "dashboard", body: /* @__PURE__ */ i(
|
|
5665
|
-
{ id: "tables", title: "Tables", info: "Row/column density, dividers & alignment.", icon: Y, screen: "orders", body: /* @__PURE__ */ i(
|
|
5666
|
-
{ id: "shape", title: "Surface & Shape", info: "Radius, density, elevation & spacing.", icon: d, screen: "dashboard", body: /* @__PURE__ */ i(
|
|
5667
|
-
{ id: "notif", title: "Notifications", info: "Toast placement & behaviour.", icon: B, screen: "operations", body: /* @__PURE__ */ i(
|
|
5668
|
-
{ id: "login", title: "Login Screen", info: "Brand image, logo & panel colour.", icon: A, screen: "login", body: /* @__PURE__ */ i(
|
|
5670
|
+
{ id: "theme", title: "Theme Settings", info: "Presets, saved themes & light/dark mode.", icon: z, screen: "dashboard", body: /* @__PURE__ */ i(Qs, {}) },
|
|
5671
|
+
{ id: "color", title: "Colour Settings", info: "Brand, text & status colours.", icon: I, screen: "components", body: /* @__PURE__ */ i(rl, {}) },
|
|
5672
|
+
{ id: "type", title: "Typography", info: "Fonts, sizes, weight & line-height.", icon: X, screen: "components", body: /* @__PURE__ */ i(pl, {}) },
|
|
5673
|
+
{ id: "cards", title: "Cards", info: "Card style, header, nesting & tint.", icon: Q, screen: "dashboard", body: /* @__PURE__ */ i(fl, {}) },
|
|
5674
|
+
{ id: "tables", title: "Tables", info: "Row/column density, dividers & alignment.", icon: Y, screen: "orders", body: /* @__PURE__ */ i(hl, {}) },
|
|
5675
|
+
{ id: "shape", title: "Surface & Shape", info: "Radius, density, elevation & spacing.", icon: d, screen: "dashboard", body: /* @__PURE__ */ i(gl, {}) },
|
|
5676
|
+
{ id: "notif", title: "Notifications", info: "Toast placement & behaviour.", icon: B, screen: "operations", body: /* @__PURE__ */ i(ml, {}) },
|
|
5677
|
+
{ id: "login", title: "Login Screen", info: "Brand image, logo & panel colour.", icon: A, screen: "login", body: /* @__PURE__ */ i(xl, {}) }
|
|
5669
5678
|
];
|
|
5670
5679
|
return /* @__PURE__ */ p(S, { sx: { display: "flex", flexDirection: "column", bgcolor: h.card }, children: [
|
|
5671
5680
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", gap: 1, px: 1.5, py: 1.1, borderBottom: `1px solid ${h.divider}`, bgcolor: h.card }, children: [
|
|
@@ -5677,12 +5686,12 @@ function Sl({ onClose: e }) {
|
|
|
5677
5686
|
/* @__PURE__ */ i(ue, { variant: "caption", sx: { minWidth: 0, fontWeight: 800, color: h.text, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: $ }),
|
|
5678
5687
|
H && /* @__PURE__ */ i(ze, { title: "Unsaved changes", arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i(S, { component: "span", sx: { width: 6, height: 6, borderRadius: "50%", bgcolor: "error.main", flexShrink: 0 } }) })
|
|
5679
5688
|
] }),
|
|
5680
|
-
/* @__PURE__ */ i(ze, { title: "Reset to defaults", arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i(
|
|
5681
|
-
/* @__PURE__ */ i(ze, { title: l.mode === "dark" ? "Switch to light" : "Switch to dark", arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i(
|
|
5689
|
+
/* @__PURE__ */ i(ze, { title: "Reset to defaults", arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i($r, { size: "small", onClick: () => b(!0), sx: { bgcolor: "action.selected" }, children: /* @__PURE__ */ i(Ls, { sx: { fontSize: 16 } }) }) }),
|
|
5690
|
+
/* @__PURE__ */ i(ze, { title: l.mode === "dark" ? "Switch to light" : "Switch to dark", arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i($r, { size: "small", onClick: () => m({ mode: l.mode === "dark" ? "light" : "dark" }), sx: { bgcolor: "action.selected" }, children: l.mode === "dark" ? /* @__PURE__ */ i(js, { sx: { fontSize: 16 } }) : /* @__PURE__ */ i(Ns, { sx: { fontSize: 16 } }) }) })
|
|
5682
5691
|
] }),
|
|
5683
5692
|
s && /* @__PURE__ */ p(S, { sx: { borderBottom: "1px solid", borderColor: "divider", borderLeft: "3px solid #eab308", bgcolor: (E) => E.palette.mode === "dark" ? "rgba(234,179,8,0.14)" : "#fef9c3", px: 1.6, py: 1.5 }, children: [
|
|
5684
5693
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 10, fontWeight: 800, textTransform: "uppercase", letterSpacing: ".6px", color: (E) => E.palette.mode === "dark" ? "#f2cd5c" : "#854d0e", mb: 1 }, children: "Previewing Screen" }),
|
|
5685
|
-
/* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: 0.75 }, children:
|
|
5694
|
+
/* @__PURE__ */ i(S, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: 0.75 }, children: Sl.map((E) => {
|
|
5686
5695
|
const W = o === E.key;
|
|
5687
5696
|
return /* @__PURE__ */ i(
|
|
5688
5697
|
S,
|
|
@@ -5713,7 +5722,7 @@ function Sl({ onClose: e }) {
|
|
|
5713
5722
|
}) })
|
|
5714
5723
|
] }),
|
|
5715
5724
|
G.map((E) => /* @__PURE__ */ i(
|
|
5716
|
-
|
|
5725
|
+
Xs,
|
|
5717
5726
|
{
|
|
5718
5727
|
icon: E.icon,
|
|
5719
5728
|
title: E.title,
|
|
@@ -5726,7 +5735,7 @@ function Sl({ onClose: e }) {
|
|
|
5726
5735
|
},
|
|
5727
5736
|
E.id
|
|
5728
5737
|
)),
|
|
5729
|
-
/* @__PURE__ */ p(
|
|
5738
|
+
/* @__PURE__ */ p(yt, { open: u, onClose: () => b(!1), PaperProps: { sx: { borderRadius: 3, width: 320, p: 2.5 } }, children: [
|
|
5730
5739
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 15, fontWeight: 800, mb: 0.75 }, children: "Reset everything?" }),
|
|
5731
5740
|
/* @__PURE__ */ p(ue, { sx: { fontSize: 12.5, color: "text.secondary", lineHeight: 1.5, mb: 2.25 }, children: [
|
|
5732
5741
|
"This reverts every change you've made — theme preset, light/dark mode, brand colours, logo, typography, cards, surface & shape, notifications and login screen — back to the default ",
|
|
@@ -5742,12 +5751,12 @@ function Sl({ onClose: e }) {
|
|
|
5742
5751
|
] })
|
|
5743
5752
|
] });
|
|
5744
5753
|
}
|
|
5745
|
-
const
|
|
5754
|
+
const wl = It(/* @__PURE__ */ i("path", {
|
|
5746
5755
|
d: "M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H3V4h18z"
|
|
5747
5756
|
}), "DesktopWindowsOutlined");
|
|
5748
|
-
function
|
|
5757
|
+
function Gr(e, r, t) {
|
|
5749
5758
|
const n = Te(null), [o, s] = Z(e);
|
|
5750
|
-
return
|
|
5759
|
+
return Fr(() => {
|
|
5751
5760
|
const a = n.current;
|
|
5752
5761
|
if (!a) return;
|
|
5753
5762
|
const l = () => {
|
|
@@ -5766,9 +5775,9 @@ function Ur(e, r, t) {
|
|
|
5766
5775
|
};
|
|
5767
5776
|
}, [r, t]), [n, o];
|
|
5768
5777
|
}
|
|
5769
|
-
function
|
|
5778
|
+
function uo(e, r, t) {
|
|
5770
5779
|
const n = Te(null), o = Te(null), [s, a] = Z(e);
|
|
5771
|
-
return
|
|
5780
|
+
return Fr(() => {
|
|
5772
5781
|
const l = o.current;
|
|
5773
5782
|
if (!l) return;
|
|
5774
5783
|
const c = () => {
|
|
@@ -5783,8 +5792,8 @@ function po(e, r, t) {
|
|
|
5783
5792
|
};
|
|
5784
5793
|
}, [r, t]), [n, o, s];
|
|
5785
5794
|
}
|
|
5786
|
-
const
|
|
5787
|
-
function
|
|
5795
|
+
const kl = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"], Tl = [44, 60, 50, 74, 88, 96], Rl = [24, 32, 30, 42, 52, 60];
|
|
5796
|
+
function El() {
|
|
5788
5797
|
const e = we(), r = j((M) => M.settings), { t, rad: n, radSm: o, pad: s, padSm: a, gap: l, screenPad: c, tH1: g, tH2: f, tTitle: m, tH4: y, wH1: h, headFam: x, headLH: u, accentBg: b, btnText: v, tBodySm: $, bwEmph: H, btnCase: C, bodyWeightEff: k, bodyLH: R, tCaption: z, pMain: I, sMain: X } = e, Q = x + ",sans-serif", Y = r.fontFamily + ",sans-serif", d = e.hc1 || t.textPrimary, B = e.hc2 || t.textPrimary, A = e.hc3 || t.textPrimary, L = [
|
|
5789
5798
|
{ label: "Revenue", val: "$2.41M", chg: "+12.5%", up: !0 },
|
|
5790
5799
|
{ label: "Open Orders", val: "1,284", chg: "+3.2%", up: !0 },
|
|
@@ -5807,7 +5816,7 @@ function Rl() {
|
|
|
5807
5816
|
{ title: "New user invited — M. Fernandez", time: "19h ago", ic: "+" },
|
|
5808
5817
|
{ title: "Quarterly report scheduled", time: "21h ago", ic: "▤" },
|
|
5809
5818
|
{ title: "Order ORD-1039 delivered to Oscorp", time: "23h ago", ic: "✓" }
|
|
5810
|
-
].map((M) => ({ ...M, ...N(M.ic) })), [U, J] =
|
|
5819
|
+
].map((M) => ({ ...M, ...N(M.ic) })), [U, J] = Gr(5, 4, K.length), P = K.slice(0, J), D = e.cardBorder === "none" ? "none" : e.cardBorder, q = { background: t.paper, border: D, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden" }, V = { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent, display: "flex", alignItems: "center", justifyContent: "space-between" }, G = { fontSize: m, lineHeight: u, fontWeight: h, color: A, fontFamily: Q };
|
|
5811
5820
|
return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", background: t.paper, border: D, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", fontFamily: Y, fontWeight: k, color: t.textPrimary }, children: [
|
|
5812
5821
|
/* @__PURE__ */ p("div", { style: { padding: s, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent, display: "flex", alignItems: "center", justifyContent: "space-between", gap: 14 }, children: [
|
|
5813
5822
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -5841,10 +5850,10 @@ function Rl() {
|
|
|
5841
5850
|
/* @__PURE__ */ i("span", { style: { fontSize: z, color: t.textSecondary }, children: M })
|
|
5842
5851
|
] }, M)) })
|
|
5843
5852
|
] }),
|
|
5844
|
-
/* @__PURE__ */ i("div", { style: { padding: `${a}px ${s}px`, display: "flex", alignItems: "flex-end", gap: 12, flex: 1, minHeight: 200 }, children:
|
|
5853
|
+
/* @__PURE__ */ i("div", { style: { padding: `${a}px ${s}px`, display: "flex", alignItems: "flex-end", gap: 12, flex: 1, minHeight: 200 }, children: kl.map((M, w) => /* @__PURE__ */ p("div", { style: { flex: 1, display: "flex", flexDirection: "column", alignItems: "center", gap: 6, height: "100%" }, children: [
|
|
5845
5854
|
/* @__PURE__ */ p("div", { style: { width: "100%", display: "flex", flexDirection: "column", justifyContent: "flex-end", gap: 3, flex: 1 }, children: [
|
|
5846
|
-
/* @__PURE__ */ i("div", { style: { width: "100%", height:
|
|
5847
|
-
/* @__PURE__ */ i("div", { style: { width: "100%", height:
|
|
5855
|
+
/* @__PURE__ */ i("div", { style: { width: "100%", height: Rl[w] + "%", background: X, opacity: 0.55, borderRadius: `${o} ${o} 0 0` } }),
|
|
5856
|
+
/* @__PURE__ */ i("div", { style: { width: "100%", height: Tl[w] + "%", background: I, borderRadius: `${o} ${o} 0 0` } })
|
|
5848
5857
|
] }),
|
|
5849
5858
|
/* @__PURE__ */ i("span", { style: { fontSize: z, color: t.textSecondary }, children: M })
|
|
5850
5859
|
] }, M)) })
|
|
@@ -5863,7 +5872,7 @@ function Rl() {
|
|
|
5863
5872
|
] })
|
|
5864
5873
|
] });
|
|
5865
5874
|
}
|
|
5866
|
-
const
|
|
5875
|
+
const Hl = [
|
|
5867
5876
|
{ id: "ORD-1042", cust: "Acme Corporation", status: "Delivered", amt: "$12,400", date: "Jun 18" },
|
|
5868
5877
|
{ id: "ORD-1041", cust: "Globex Ltd", status: "Processing", amt: "$8,750", date: "Jun 17" },
|
|
5869
5878
|
{ id: "ORD-1040", cust: "Initech", status: "Pending", amt: "$5,200", date: "Jun 16" },
|
|
@@ -5880,9 +5889,9 @@ const El = [
|
|
|
5880
5889
|
{ id: "ORD-1029", cust: "Nakatomi Trading", status: "Pending", amt: "$3,560", date: "Jun 05" },
|
|
5881
5890
|
{ id: "ORD-1028", cust: "Gekko & Co", status: "Delivered", amt: "$25,300", date: "Jun 04" },
|
|
5882
5891
|
{ id: "ORD-1027", cust: "Bluth Company", status: "Processing", amt: "$6,410", date: "Jun 03" }
|
|
5883
|
-
],
|
|
5884
|
-
function
|
|
5885
|
-
const e = we(), r = j((J) => J.settings), { t, rad: n, radSm: o, pad: s, padSm: a, screenPad: l, rowPy: c, tH1: g, wH1: f, headFam: m, headLH: y, accentBg: h, btnText: x, btnShadow: u, tBody: b, tBodySm: v, tCaption: $, tOverline: H, bwEmph: C, btnCase: k, bodyWeightEff: R, pMain: z, table: I } = e, X = m + ",sans-serif", Q = r.fontFamily + ",sans-serif", Y = e.hc1 || t.textPrimary, [d, B, A] =
|
|
5892
|
+
], Pr = "100px 1fr 120px 100px 80px 70px";
|
|
5893
|
+
function Pl() {
|
|
5894
|
+
const e = we(), r = j((J) => J.settings), { t, rad: n, radSm: o, pad: s, padSm: a, screenPad: l, rowPy: c, tH1: g, wH1: f, headFam: m, headLH: y, accentBg: h, btnText: x, btnShadow: u, tBody: b, tBodySm: v, tCaption: $, tOverline: H, bwEmph: C, btnCase: k, bodyWeightEff: R, pMain: z, table: I } = e, X = m + ",sans-serif", Q = r.fontFamily + ",sans-serif", Y = e.hc1 || t.textPrimary, [d, B, A] = uo(12, 3, 16), L = Hl.slice(0, A).map((J, P) => ({
|
|
5886
5895
|
...J,
|
|
5887
5896
|
...I.statusMap[J.status] || { sb: t.divider, sc: t.textSecondary },
|
|
5888
5897
|
rowBg: r.tableStripe && P % 2 === 1 ? I.stripeBg : "transparent"
|
|
@@ -5915,12 +5924,12 @@ function Hl() {
|
|
|
5915
5924
|
] }),
|
|
5916
5925
|
I.filters.map((J) => /* @__PURE__ */ i("button", { style: { padding: "7px 14px", borderRadius: 999, border: "1px solid " + J.brd, background: J.bg, color: J.c, fontSize: $, fontWeight: C, whiteSpace: "nowrap", cursor: "pointer" }, children: J.label }, J.label))
|
|
5917
5926
|
] }),
|
|
5918
|
-
/* @__PURE__ */ p("div", { ref: d, style: { display: "grid", gridTemplateColumns:
|
|
5927
|
+
/* @__PURE__ */ p("div", { ref: d, style: { display: "grid", gridTemplateColumns: Pr, padding: `0 ${s}px`, borderBottom: I.rowBorder, background: I.headBg }, children: [
|
|
5919
5928
|
["Order ID", "Customer", "Status", "Amount", "Date"].map((J) => /* @__PURE__ */ i("div", { style: K(), children: J }, J)),
|
|
5920
5929
|
/* @__PURE__ */ i("div", { style: { alignSelf: "stretch", padding: `${I.rowPy} 0` } })
|
|
5921
5930
|
] }),
|
|
5922
5931
|
/* @__PURE__ */ p("div", { ref: B, style: { position: "relative", display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
5923
|
-
/* @__PURE__ */ p("div", { style: { position: "absolute", inset: 0, padding: `0 ${s}px`, display: "grid", gridTemplateColumns:
|
|
5932
|
+
/* @__PURE__ */ p("div", { style: { position: "absolute", inset: 0, padding: `0 ${s}px`, display: "grid", gridTemplateColumns: Pr, pointerEvents: "none", zIndex: 2 }, children: [
|
|
5924
5933
|
/* @__PURE__ */ i("div", { style: { borderRight: I.colBorder } }),
|
|
5925
5934
|
/* @__PURE__ */ i("div", { style: { borderRight: I.colBorder } }),
|
|
5926
5935
|
/* @__PURE__ */ i("div", { style: { borderRight: I.colBorder } }),
|
|
@@ -5928,7 +5937,7 @@ function Hl() {
|
|
|
5928
5937
|
/* @__PURE__ */ i("div", { style: { borderRight: I.colBorder } }),
|
|
5929
5938
|
/* @__PURE__ */ i("div", {})
|
|
5930
5939
|
] }),
|
|
5931
|
-
L.map((J) => /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns:
|
|
5940
|
+
L.map((J) => /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: Pr, padding: `0 ${s}px`, borderBottom: I.rowBorder, alignItems: "stretch", background: J.rowBg }, children: [
|
|
5932
5941
|
/* @__PURE__ */ i("div", { style: { ...U, fontSize: v, fontWeight: C, color: z, fontFamily: Q }, children: J.id }),
|
|
5933
5942
|
/* @__PURE__ */ i("div", { style: { ...U, fontSize: b, color: t.textPrimary, fontWeight: C }, children: J.cust }),
|
|
5934
5943
|
/* @__PURE__ */ i("div", { style: U, children: /* @__PURE__ */ i("span", { style: { padding: "4px 11px", borderRadius: 999, fontSize: $, fontWeight: C, background: J.sb, color: J.sc, whiteSpace: "nowrap" }, children: J.status }) }),
|
|
@@ -5951,7 +5960,7 @@ function Hl() {
|
|
|
5951
5960
|
] }) })
|
|
5952
5961
|
] });
|
|
5953
5962
|
}
|
|
5954
|
-
function
|
|
5963
|
+
function $l() {
|
|
5955
5964
|
const e = we(), r = j((ee) => ee.settings), {
|
|
5956
5965
|
t,
|
|
5957
5966
|
rad: n,
|
|
@@ -5988,7 +5997,7 @@ function Pl() {
|
|
|
5988
5997
|
infoTxt: U,
|
|
5989
5998
|
sucSoft: J,
|
|
5990
5999
|
sucTxt: P
|
|
5991
|
-
} = e, D = H + ",sans-serif", q = r.fontFamily + ",sans-serif", V = e.t.highlight, G = e.t.highlightSoft, M = e.t.highlightBd, w = t.pContainer, O = t.onPContainer, F = t.pContrast, E = e.hc1 || t.textPrimary, W = e.hc2 || t.textPrimary, te = e.hc3 || t.textPrimary, _ = e.hc4 || t.textPrimary, me = e.hc5 || t.textPrimary, Ne = e.hc6 || t.textPrimary, je = e.cardBorder === "none" ? "none" : e.cardBorder,
|
|
6000
|
+
} = e, D = H + ",sans-serif", q = r.fontFamily + ",sans-serif", V = e.t.highlight, G = e.t.highlightSoft, M = e.t.highlightBd, w = t.pContainer, O = t.onPContainer, F = t.pContrast, E = e.hc1 || t.textPrimary, W = e.hc2 || t.textPrimary, te = e.hc3 || t.textPrimary, _ = e.hc4 || t.textPrimary, me = e.hc5 || t.textPrimary, Ne = e.hc6 || t.textPrimary, je = e.cardBorder === "none" ? "none" : e.cardBorder, Qe = { display: "flex", flexDirection: "column", background: t.paper, border: je, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", height: "100%" }, Ze = { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent }, Ie = { fontSize: m, lineHeight: C, fontWeight: $, color: te, fontFamily: D }, fr = [
|
|
5992
6001
|
{ label: "Dashboard Overview", size: g, w: $, color: E, lh: 1.1, ls: "-.5px", name: "H1", border: !0 },
|
|
5993
6002
|
{ label: "Revenue Report", size: f, w: $, color: W, lh: 1.1, ls: "-.4px", name: "H2", border: !0 },
|
|
5994
6003
|
{ label: "Performance Overview", size: m, w: $, color: te, lh: 1.15, name: "H3", border: !0 },
|
|
@@ -5999,10 +6008,10 @@ function Pl() {
|
|
|
5999
6008
|
/* @__PURE__ */ i("div", { style: { width: 16, height: 16, borderRadius: "50%", border: "2px solid " + (ee ? V : t.outline), display: "grid", placeItems: "center", flexShrink: 0 }, children: ee && /* @__PURE__ */ i("div", { style: { width: 8, height: 8, borderRadius: "50%", background: V } }) }),
|
|
6000
6009
|
/* @__PURE__ */ i("span", { style: { flex: 1, fontSize: b, fontFamily: q, fontWeight: ee ? I : Q, color: t.textPrimary }, children: ee ? "Selected item" : "Unselected item" }),
|
|
6001
6010
|
ee && /* @__PURE__ */ i("span", { style: { fontSize: v, fontFamily: q, fontWeight: I, color: t.textSecondary }, children: "Active" })
|
|
6002
|
-
] }),
|
|
6003
|
-
/* @__PURE__ */ i("span", { style: { position: "absolute", top: -8, left: 10, background: t.paper, padding: "0 5px", fontSize: v, color: ee ? d : t.textSecondary, fontWeight: ee ? I : void 0 }, children:
|
|
6004
|
-
/* @__PURE__ */ i("span", { style: { fontSize: u, color: ee ? t.textPrimary : t.textSecondary }, children:
|
|
6005
|
-
] }),
|
|
6011
|
+
] }), Bt = (ee, St, Ct) => /* @__PURE__ */ p("div", { style: { position: "relative", border: ee ? "2px solid " + d : "1.5px solid " + t.outline, borderRadius: o, padding: "12px 13px" }, children: [
|
|
6012
|
+
/* @__PURE__ */ i("span", { style: { position: "absolute", top: -8, left: 10, background: t.paper, padding: "0 5px", fontSize: v, color: ee ? d : t.textSecondary, fontWeight: ee ? I : void 0 }, children: St }),
|
|
6013
|
+
/* @__PURE__ */ i("span", { style: { fontSize: u, color: ee ? t.textPrimary : t.textSecondary }, children: Ct })
|
|
6014
|
+
] }), et = (ee, St, Ct) => /* @__PURE__ */ i("span", { style: { padding: "5px 13px", borderRadius: 999, background: ee, color: St, fontSize: v, fontWeight: I }, children: Ct }), Ue = (ee) => ({ padding: "9px 20px", borderRadius: o, fontSize: b, fontWeight: I, textTransform: X, letterSpacing: ".4px", cursor: "pointer", ...ee });
|
|
6006
6015
|
return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", background: t.paper, border: je, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", fontFamily: q, fontWeight: Q, color: t.textPrimary }, children: [
|
|
6007
6016
|
/* @__PURE__ */ i("div", { style: { padding: s, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent }, children: /* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
6008
6017
|
/* @__PURE__ */ i("div", { style: { fontSize: g, lineHeight: C, fontWeight: $, color: E, letterSpacing: "-.3px", fontFamily: D }, children: "Component Library" }),
|
|
@@ -6010,10 +6019,10 @@ function Pl() {
|
|
|
6010
6019
|
] }) }),
|
|
6011
6020
|
/* @__PURE__ */ p("div", { style: { padding: c, background: t.bgDefault, display: "flex", flexDirection: "column", gap: l, flex: 1, minHeight: 0 }, children: [
|
|
6012
6021
|
/* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: l, alignItems: "stretch" }, children: [
|
|
6013
|
-
/* @__PURE__ */ p("div", { style:
|
|
6014
|
-
/* @__PURE__ */ i("div", { style:
|
|
6022
|
+
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6023
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Ie, children: "Typography Scale" }) }),
|
|
6015
6024
|
/* @__PURE__ */ p("div", { style: { padding: s, display: "flex", flexDirection: "column", justifyContent: "space-between", flex: 1, minHeight: 0, gap: 6 }, children: [
|
|
6016
|
-
|
|
6025
|
+
fr.map((ee) => /* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "baseline", justifyContent: "space-between", gap: 12, borderBottom: "1px solid " + t.divider, paddingBottom: 14 }, children: [
|
|
6017
6026
|
/* @__PURE__ */ i("span", { style: { fontSize: ee.size, lineHeight: ee.lh, fontWeight: ee.w, color: ee.color, fontFamily: D, letterSpacing: ee.ls }, children: ee.label }),
|
|
6018
6027
|
/* @__PURE__ */ p("span", { style: { fontSize: ee.size, color: t.textSecondary, fontWeight: ee.w, whiteSpace: "nowrap", flexShrink: 0, fontFamily: D }, children: [
|
|
6019
6028
|
ee.name,
|
|
@@ -6037,8 +6046,8 @@ function Pl() {
|
|
|
6037
6046
|
] })
|
|
6038
6047
|
] })
|
|
6039
6048
|
] }),
|
|
6040
|
-
/* @__PURE__ */ p("div", { style:
|
|
6041
|
-
/* @__PURE__ */ i("div", { style:
|
|
6049
|
+
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6050
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Ie, children: "Selection States" }) }),
|
|
6042
6051
|
/* @__PURE__ */ p("div", { style: { padding: s, display: "flex", flexDirection: "column", gap: 14 }, children: [
|
|
6043
6052
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 2, borderBottom: "1.5px solid " + t.divider }, children: [
|
|
6044
6053
|
/* @__PURE__ */ i("div", { style: { flex: 1, textAlign: "center", padding: "8px 4px", fontSize: b, fontWeight: I, color: t.textPrimary, background: G, borderBottom: "2.5px solid " + d, marginBottom: -1.5, borderRadius: "6px 6px 0 0" }, children: "Overview" }),
|
|
@@ -6057,12 +6066,12 @@ function Pl() {
|
|
|
6057
6066
|
] })
|
|
6058
6067
|
] })
|
|
6059
6068
|
] }),
|
|
6060
|
-
/* @__PURE__ */ p("div", { style: { ...
|
|
6061
|
-
/* @__PURE__ */ i("div", { style:
|
|
6069
|
+
/* @__PURE__ */ p("div", { style: { ...Qe, height: "auto" }, children: [
|
|
6070
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Ie, children: "Inputs & Selection" }) }),
|
|
6062
6071
|
/* @__PURE__ */ p("div", { style: { padding: s }, children: [
|
|
6063
6072
|
/* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: l, marginBottom: l }, children: [
|
|
6064
|
-
|
|
6065
|
-
|
|
6073
|
+
Bt(!1, "Outlined", "Placeholder…"),
|
|
6074
|
+
Bt(!0, "Focused", "Active value")
|
|
6066
6075
|
] }),
|
|
6067
6076
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 22, alignItems: "center", flexWrap: "wrap", paddingTop: a, borderTop: "1px solid " + t.divider }, children: [
|
|
6068
6077
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -6081,8 +6090,8 @@ function Pl() {
|
|
|
6081
6090
|
] })
|
|
6082
6091
|
] }),
|
|
6083
6092
|
/* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: l, alignItems: "stretch" }, children: [
|
|
6084
|
-
/* @__PURE__ */ p("div", { style:
|
|
6085
|
-
/* @__PURE__ */ i("div", { style:
|
|
6093
|
+
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6094
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Ie, children: "Buttons" }) }),
|
|
6086
6095
|
/* @__PURE__ */ p("div", { style: { padding: s, display: "flex", gap: 10, flexWrap: "wrap", alignItems: "center" }, children: [
|
|
6087
6096
|
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background: k, color: R, boxShadow: z }), children: "Contained" }),
|
|
6088
6097
|
/* @__PURE__ */ i("button", { style: Ue({ border: "1.5px solid " + d, background: "transparent", color: d }), children: "Outlined" }),
|
|
@@ -6092,15 +6101,15 @@ function Pl() {
|
|
|
6092
6101
|
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background: B, color: A }), children: "Error" })
|
|
6093
6102
|
] })
|
|
6094
6103
|
] }),
|
|
6095
|
-
/* @__PURE__ */ p("div", { style:
|
|
6096
|
-
/* @__PURE__ */ i("div", { style:
|
|
6104
|
+
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6105
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Ie, children: "Chips, Alerts & Progress" }) }),
|
|
6097
6106
|
/* @__PURE__ */ p("div", { style: { padding: s }, children: [
|
|
6098
6107
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, flexWrap: "wrap", marginBottom: l }, children: [
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6108
|
+
et(w, O, "Primary"),
|
|
6109
|
+
et(J, P, "Success"),
|
|
6110
|
+
et(L, N, "Warning"),
|
|
6111
|
+
et(K, U, "Info"),
|
|
6112
|
+
et(B, A, "Error")
|
|
6104
6113
|
] }),
|
|
6105
6114
|
/* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: 7 }, children: [
|
|
6106
6115
|
/* @__PURE__ */ i("span", { style: { fontSize: b, color: t.textPrimary, fontWeight: I }, children: "Revenue goal" }),
|
|
@@ -6113,19 +6122,19 @@ function Pl() {
|
|
|
6113
6122
|
] })
|
|
6114
6123
|
] });
|
|
6115
6124
|
}
|
|
6116
|
-
const
|
|
6125
|
+
const Al = [
|
|
6117
6126
|
{ label: "Cameras Online", val: "5 / 6" },
|
|
6118
6127
|
{ label: "Recording", val: "4" },
|
|
6119
6128
|
{ label: "Motion Alerts", val: "2" },
|
|
6120
6129
|
{ label: "Storage Used", val: "82%" }
|
|
6121
|
-
],
|
|
6130
|
+
], Il = [
|
|
6122
6131
|
{ name: "CAM 01", loc: "Main Lobby", rec: !0, online: !0, time: "14:32:08" },
|
|
6123
6132
|
{ name: "CAM 02", loc: "North Gate", rec: !0, online: !0, time: "14:32:08" },
|
|
6124
6133
|
{ name: "CAM 03", loc: "Loading Bay", rec: !1, online: !0, time: "14:32:07" },
|
|
6125
6134
|
{ name: "CAM 04", loc: "Rooftop", rec: !0, online: !0, time: "14:32:08" },
|
|
6126
6135
|
{ name: "CAM 05", loc: "Parking Deck", rec: !1, online: !1, time: "—" },
|
|
6127
6136
|
{ name: "CAM 06", loc: "Server Room", rec: !0, online: !0, time: "14:32:08" }
|
|
6128
|
-
],
|
|
6137
|
+
], Bl = [
|
|
6129
6138
|
{ cam: "CAM 04", label: "Motion detected — Rooftop", time: "just now", sev: "error" },
|
|
6130
6139
|
{ cam: "CAM 02", label: "Person identified — North Gate", time: "6m ago", sev: "info" },
|
|
6131
6140
|
{ cam: "CAM 01", label: "Loitering cleared — Main Lobby", time: "22m ago", sev: "success" },
|
|
@@ -6143,8 +6152,8 @@ const $l = [
|
|
|
6143
6152
|
{ cam: "CAM 04", label: "Perimeter breach — Rooftop", time: "7h ago", sev: "error" },
|
|
6144
6153
|
{ cam: "CAM 03", label: "Package scanned — Loading Bay", time: "8h ago", sev: "info" }
|
|
6145
6154
|
];
|
|
6146
|
-
function
|
|
6147
|
-
const e = we(), r = j((F) => F.settings), { t, rad: n, radSm: o, pad: s, padSm: a, gap: l, screenPad: c, tH1: g, tH2: f, tTitle: m, wH1: y, headFam: h, headLH: x, accentBg: u, btnText: b, btnShadow: v, tBodySm: $, tCaption: H, tOverline: C, bwEmph: k, btnCase: R, bodyWeightEff: z, errSoft: I, errTxt: X, mediaBg: Q, overlaySurface: Y, overlayBorder: d, onOverlay: B, sevMap: A } = e, L = h + ",sans-serif", N = r.fontFamily + ",sans-serif", K = e.hc1 || t.textPrimary, U = e.hc2 || t.textPrimary, J = e.hc3 || t.textPrimary, P = e.cardBorder === "none" ? "none" : e.cardBorder, D =
|
|
6155
|
+
function Ol() {
|
|
6156
|
+
const e = we(), r = j((F) => F.settings), { t, rad: n, radSm: o, pad: s, padSm: a, gap: l, screenPad: c, tH1: g, tH2: f, tTitle: m, wH1: y, headFam: h, headLH: x, accentBg: u, btnText: b, btnShadow: v, tBodySm: $, tCaption: H, tOverline: C, bwEmph: k, btnCase: R, bodyWeightEff: z, errSoft: I, errTxt: X, mediaBg: Q, overlaySurface: Y, overlayBorder: d, onOverlay: B, sevMap: A } = e, L = h + ",sans-serif", N = r.fontFamily + ",sans-serif", K = e.hc1 || t.textPrimary, U = e.hc2 || t.textPrimary, J = e.hc3 || t.textPrimary, P = e.cardBorder === "none" ? "none" : e.cardBorder, D = Il.map((F) => ({ ...F, dotC: F.online ? r.successHex : t.textDisabled })), [q, V] = Gr(3, 3, 16), G = Bl.slice(0, V).map((F) => ({ ...F, ...A[F.sev] })), M = { background: t.paper, border: P, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden" }, w = { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent, display: "flex", alignItems: "center", justifyContent: "space-between" }, O = { fontSize: m, lineHeight: x, fontWeight: y, color: J, fontFamily: L };
|
|
6148
6157
|
return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", background: t.paper, border: P, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", fontFamily: N, fontWeight: z, color: t.textPrimary }, children: [
|
|
6149
6158
|
/* @__PURE__ */ p("div", { style: { padding: s, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent, display: "flex", alignItems: "flex-start", justifyContent: "space-between", gap: 14 }, children: [
|
|
6150
6159
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -6160,7 +6169,7 @@ function Bl() {
|
|
|
6160
6169
|
] })
|
|
6161
6170
|
] }),
|
|
6162
6171
|
/* @__PURE__ */ p("div", { style: { padding: c, background: t.bgDefault, display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
6163
|
-
/* @__PURE__ */ i("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: l, marginBottom: l }, children:
|
|
6172
|
+
/* @__PURE__ */ i("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: l, marginBottom: l }, children: Al.map((F) => /* @__PURE__ */ p("div", { style: M, children: [
|
|
6164
6173
|
/* @__PURE__ */ i("div", { style: { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent }, children: /* @__PURE__ */ i("span", { style: { fontSize: C, color: t.textSecondary, textTransform: "uppercase", letterSpacing: ".6px", fontWeight: k }, children: F.label }) }),
|
|
6165
6174
|
/* @__PURE__ */ i("div", { style: { padding: `${a}px ${s}px` }, children: /* @__PURE__ */ i("div", { style: { fontSize: f, fontWeight: y, color: U, letterSpacing: "-.8px", lineHeight: 1 }, children: F.val }) })
|
|
6166
6175
|
] }, F.label)) }),
|
|
@@ -6201,7 +6210,7 @@ function Bl() {
|
|
|
6201
6210
|
] })
|
|
6202
6211
|
] });
|
|
6203
6212
|
}
|
|
6204
|
-
const
|
|
6213
|
+
const Dl = [
|
|
6205
6214
|
{ ic: "!", label: "Camera 04 motion detected — Loading Bay", time: "just now", sev: "error", unread: !0 },
|
|
6206
6215
|
{ ic: "✓", label: "Stream reconnected — North Gate feed", time: "4m ago", sev: "success", unread: !0 },
|
|
6207
6216
|
{ ic: "i", label: "Access request — J. Okoro (Operator)", time: "22m ago", sev: "info", unread: !1 },
|
|
@@ -6219,8 +6228,8 @@ const Ol = [
|
|
|
6219
6228
|
{ ic: "i", label: "Analytics model updated — v2.4.1", time: "16h ago", sev: "info", unread: !1 },
|
|
6220
6229
|
{ ic: "!", label: "Disk latency elevated — NVR-02", time: "18h ago", sev: "warning", unread: !1 }
|
|
6221
6230
|
];
|
|
6222
|
-
function
|
|
6223
|
-
const e = we(), r = j((O) => O.settings), { t, rad: n, radSm: o, pad: s, padSm: a, gap: l, screenPad: c, tH1: g, tTitle: f, wH1: m, headFam: y, headLH: h, accentBg: x, btnText: u, tBodySm: b, tCaption: v, tOverline: $, bwEmph: H, bodyWeightEff: C, bodyLH: k, errSoft: R, errTxt: z, pMain: I, mediaBg: X, overlaySurface: Q, overlayBorder: Y, onOverlay: d, sevMap: B } = e, A = y + ",sans-serif", L = r.fontFamily + ",sans-serif", N = e.hc1 || t.textPrimary, K = e.hc3 || t.textPrimary, U = e.cardBorder === "none" ? "none" : e.cardBorder, [J, P] =
|
|
6231
|
+
function Ml() {
|
|
6232
|
+
const e = we(), r = j((O) => O.settings), { t, rad: n, radSm: o, pad: s, padSm: a, gap: l, screenPad: c, tH1: g, tTitle: f, wH1: m, headFam: y, headLH: h, accentBg: x, btnText: u, tBodySm: b, tCaption: v, tOverline: $, bwEmph: H, bodyWeightEff: C, bodyLH: k, errSoft: R, errTxt: z, pMain: I, mediaBg: X, overlaySurface: Q, overlayBorder: Y, onOverlay: d, sevMap: B } = e, A = y + ",sans-serif", L = r.fontFamily + ",sans-serif", N = e.hc1 || t.textPrimary, K = e.hc3 || t.textPrimary, U = e.cardBorder === "none" ? "none" : e.cardBorder, [J, P] = Gr(7, 4, 16), D = Dl.slice(0, P).map((O) => ({ ...O, ...B[O.sev], rowBg: O.unread ? de(r.primaryHex, e.isDark ? 0.12 : 0.05) : "transparent" })), q = D.filter((O) => O.unread).length, V = { display: "flex", flexDirection: "column", minHeight: 0, background: t.paper, border: U, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden" }, G = { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent, display: "flex", alignItems: "center", justifyContent: "space-between" }, M = { fontSize: f, lineHeight: h, fontWeight: m, color: K, fontFamily: A }, w = { height: 30, borderRadius: o, border: "none", background: "rgba(255,255,255,.14)", color: d, fontSize: v, fontWeight: H, cursor: "pointer", fontFamily: "inherit" };
|
|
6224
6233
|
return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", background: t.paper, border: U, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", fontFamily: L, fontWeight: C, color: t.textPrimary }, children: [
|
|
6225
6234
|
/* @__PURE__ */ i("div", { style: { padding: s, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent }, children: /* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
6226
6235
|
/* @__PURE__ */ i("div", { style: { fontSize: g, lineHeight: h, fontWeight: m, color: N, letterSpacing: "-.3px", fontFamily: A }, children: "Operations Center" }),
|
|
@@ -6267,18 +6276,18 @@ function Dl() {
|
|
|
6267
6276
|
] }) })
|
|
6268
6277
|
] });
|
|
6269
6278
|
}
|
|
6270
|
-
const
|
|
6279
|
+
const Fl = [
|
|
6271
6280
|
{ label: "Reports Generated", val: "248" },
|
|
6272
6281
|
{ label: "Avg Generation", val: "1.2s" },
|
|
6273
6282
|
{ label: "Data Points", val: "84.2K" },
|
|
6274
6283
|
{ label: "Scheduled", val: "12" }
|
|
6275
|
-
],
|
|
6284
|
+
], Wl = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"], zl = [44, 60, 50, 74, 88, 96], _l = [24, 32, 30, 42, 52, 60], Ll = [
|
|
6276
6285
|
{ l: "Reports", h: 72 },
|
|
6277
6286
|
{ l: "Cameras", h: 92 },
|
|
6278
6287
|
{ l: "Alerts", h: 40 },
|
|
6279
6288
|
{ l: "Users", h: 58 },
|
|
6280
6289
|
{ l: "Storage", h: 80 }
|
|
6281
|
-
],
|
|
6290
|
+
], Nl = [
|
|
6282
6291
|
{ name: "Q2 Revenue Summary", type: "Financial", date: "Jun 20", status: "Ready" },
|
|
6283
6292
|
{ name: "Camera Uptime Audit", type: "Operations", date: "Jun 19", status: "Ready" },
|
|
6284
6293
|
{ name: "User Access Log", type: "Security", date: "Jun 18", status: "Ready" },
|
|
@@ -6295,14 +6304,14 @@ const Ml = [
|
|
|
6295
6304
|
{ name: "Device Firmware Ledger", type: "Operations", date: "Jun 06", status: "Ready" },
|
|
6296
6305
|
{ name: "Access Anomaly Report", type: "Security", date: "Jun 05", status: "Ready" },
|
|
6297
6306
|
{ name: "Cost Allocation Summary", type: "Financial", date: "Jun 04", status: "Ready" }
|
|
6298
|
-
],
|
|
6299
|
-
function
|
|
6300
|
-
const e = we(), r = j((W) => W.settings), { t, rad: n, radSm: o, pad: s, padSm: a, gap: l, screenPad: c, tH1: g, tH2: f, tTitle: m, wH1: y, headFam: h, headLH: x, accentBg: u, btnText: b, btnShadow: v, tBody: $, tBodySm: H, tCaption: C, tOverline: k, bwEmph: R, btnCase: z, bodyWeightEff: I, pMain: X, sMain: Q, chartPalette: Y, table: d } = e, B = h + ",sans-serif", A = r.fontFamily + ",sans-serif", L = e.hc1 || t.textPrimary, N = e.hc2 || t.textPrimary, K = e.hc3 || t.textPrimary, U = e.cardBorder === "none" ? "none" : e.cardBorder, [J, P, D] =
|
|
6307
|
+
], zn = "1fr 130px 110px 90px 70px";
|
|
6308
|
+
function jl() {
|
|
6309
|
+
const e = we(), r = j((W) => W.settings), { t, rad: n, radSm: o, pad: s, padSm: a, gap: l, screenPad: c, tH1: g, tH2: f, tTitle: m, wH1: y, headFam: h, headLH: x, accentBg: u, btnText: b, btnShadow: v, tBody: $, tBodySm: H, tCaption: C, tOverline: k, bwEmph: R, btnCase: z, bodyWeightEff: I, pMain: X, sMain: Q, chartPalette: Y, table: d } = e, B = h + ",sans-serif", A = r.fontFamily + ",sans-serif", L = e.hc1 || t.textPrimary, N = e.hc2 || t.textPrimary, K = e.hc3 || t.textPrimary, U = e.cardBorder === "none" ? "none" : e.cardBorder, [J, P, D] = uo(5, 3, 16), q = Nl.slice(0, D).map((W, te) => ({
|
|
6301
6310
|
...W,
|
|
6302
6311
|
sb: W.status === "Ready" ? e.sucSoft : e.warnSoft,
|
|
6303
6312
|
sc: W.status === "Ready" ? e.sucTxt : e.warnTxt,
|
|
6304
6313
|
rowBg: r.tableStripe && te % 2 === 1 ? d.stripeBg : "transparent"
|
|
6305
|
-
})), V =
|
|
6314
|
+
})), V = Ll.map((W, te) => ({ ...W, c: Y[te % Y.length] })), G = {
|
|
6306
6315
|
borderRight: d.colBorder,
|
|
6307
6316
|
alignSelf: "stretch",
|
|
6308
6317
|
display: "flex",
|
|
@@ -6319,7 +6328,7 @@ function Nl() {
|
|
|
6319
6328
|
/* @__PURE__ */ i("button", { style: { padding: "10px 20px", borderRadius: o, border: "none", background: u, color: b, fontSize: H, fontWeight: R, textTransform: z, letterSpacing: ".4px", boxShadow: v, whiteSpace: "nowrap", cursor: "pointer" }, children: "↓ Export PDF" })
|
|
6320
6329
|
] }),
|
|
6321
6330
|
/* @__PURE__ */ p("div", { style: { padding: c, background: t.bgDefault, display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
6322
|
-
/* @__PURE__ */ i("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: l, marginBottom: l }, children:
|
|
6331
|
+
/* @__PURE__ */ i("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: l, marginBottom: l }, children: Fl.map((W) => /* @__PURE__ */ p("div", { style: w, children: [
|
|
6323
6332
|
/* @__PURE__ */ i("div", { style: { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent }, children: /* @__PURE__ */ i("span", { style: { fontSize: k, color: t.textSecondary, textTransform: "uppercase", letterSpacing: ".6px", fontWeight: R }, children: W.label }) }),
|
|
6324
6333
|
/* @__PURE__ */ i("div", { style: { padding: `${a}px ${s}px` }, children: /* @__PURE__ */ i("div", { style: { fontSize: f, fontWeight: y, color: N, letterSpacing: "-.8px", lineHeight: 1 }, children: W.val }) })
|
|
6325
6334
|
] }, W.label)) }),
|
|
@@ -6329,10 +6338,10 @@ function Nl() {
|
|
|
6329
6338
|
/* @__PURE__ */ i("span", { style: F, children: "Revenue & Profit Trend" }),
|
|
6330
6339
|
/* @__PURE__ */ i("span", { style: { fontSize: C, color: t.textSecondary, fontWeight: R }, children: "6 months" })
|
|
6331
6340
|
] }),
|
|
6332
|
-
/* @__PURE__ */ i("div", { style: { padding: s, display: "flex", alignItems: "flex-end", gap: 12, height: 160 }, children:
|
|
6341
|
+
/* @__PURE__ */ i("div", { style: { padding: s, display: "flex", alignItems: "flex-end", gap: 12, height: 160 }, children: Wl.map((W, te) => /* @__PURE__ */ p("div", { style: { flex: 1, display: "flex", flexDirection: "column", alignItems: "center", gap: 6, height: "100%" }, children: [
|
|
6333
6342
|
/* @__PURE__ */ p("div", { style: { width: "100%", display: "flex", flexDirection: "column", justifyContent: "flex-end", gap: 3, flex: 1 }, children: [
|
|
6334
|
-
/* @__PURE__ */ i("div", { style: { width: "100%", height:
|
|
6335
|
-
/* @__PURE__ */ i("div", { style: { width: "100%", height:
|
|
6343
|
+
/* @__PURE__ */ i("div", { style: { width: "100%", height: _l[te] + "%", background: Q, opacity: 0.55, borderRadius: `${o} ${o} 0 0` } }),
|
|
6344
|
+
/* @__PURE__ */ i("div", { style: { width: "100%", height: zl[te] + "%", background: X, borderRadius: `${o} ${o} 0 0` } })
|
|
6336
6345
|
] }),
|
|
6337
6346
|
/* @__PURE__ */ i("span", { style: { fontSize: C, color: t.textSecondary }, children: W })
|
|
6338
6347
|
] }, W)) })
|
|
@@ -6344,11 +6353,11 @@ function Nl() {
|
|
|
6344
6353
|
] }),
|
|
6345
6354
|
/* @__PURE__ */ p("div", { style: { ...w, display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
6346
6355
|
/* @__PURE__ */ i("div", { style: { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent }, children: /* @__PURE__ */ i("span", { style: F, children: "Recent Reports" }) }),
|
|
6347
|
-
/* @__PURE__ */ p("div", { ref: J, style: { display: "grid", gridTemplateColumns:
|
|
6356
|
+
/* @__PURE__ */ p("div", { ref: J, style: { display: "grid", gridTemplateColumns: zn, padding: `0 ${s}px`, borderBottom: d.rowBorder, background: d.headBg }, children: [
|
|
6348
6357
|
["Report", "Type", "Status", "Date"].map((W) => /* @__PURE__ */ i("div", { style: { ...E, ...G }, children: W }, W)),
|
|
6349
6358
|
/* @__PURE__ */ i("div", { style: { alignSelf: "stretch", padding: `${d.rowPy} 0` } })
|
|
6350
6359
|
] }),
|
|
6351
|
-
/* @__PURE__ */ i("div", { ref: P, style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: q.map((W) => /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns:
|
|
6360
|
+
/* @__PURE__ */ i("div", { ref: P, style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: q.map((W) => /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: zn, padding: `0 ${s}px`, borderBottom: d.rowBorder, background: W.rowBg }, children: [
|
|
6352
6361
|
/* @__PURE__ */ i("div", { style: { ...M, fontSize: $, color: t.textPrimary, fontWeight: R }, children: W.name }),
|
|
6353
6362
|
/* @__PURE__ */ i("div", { style: { ...M, fontSize: H, color: t.textSecondary }, children: W.type }),
|
|
6354
6363
|
/* @__PURE__ */ i("div", { style: M, children: /* @__PURE__ */ i("span", { style: { padding: "4px 11px", borderRadius: 999, fontSize: C, fontWeight: R, background: W.sb, color: W.sc, whiteSpace: "nowrap" }, children: W.status }) }),
|
|
@@ -6359,12 +6368,12 @@ function Nl() {
|
|
|
6359
6368
|
] })
|
|
6360
6369
|
] });
|
|
6361
6370
|
}
|
|
6362
|
-
const
|
|
6371
|
+
const _n = ({ size: e }) => /* @__PURE__ */ p("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 1.6, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
6363
6372
|
/* @__PURE__ */ i("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
6364
6373
|
/* @__PURE__ */ i("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
|
|
6365
6374
|
/* @__PURE__ */ i("path", { d: "m21 15-5-5L5 21" })
|
|
6366
6375
|
] });
|
|
6367
|
-
function
|
|
6376
|
+
function Vl() {
|
|
6368
6377
|
const e = we(), r = j((N) => N.settings), {
|
|
6369
6378
|
t,
|
|
6370
6379
|
rad: n,
|
|
@@ -6407,14 +6416,14 @@ function jl() {
|
|
|
6407
6416
|
/* @__PURE__ */ p("div", { style: { background: Q, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", padding: "48px 40px", gap: 22, position: "relative", overflow: "hidden" }, children: [
|
|
6408
6417
|
B,
|
|
6409
6418
|
!$ && /* @__PURE__ */ p("div", { style: { position: "absolute", inset: 0, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: 12, color: t.textSecondary, border: "1.5px dashed " + t.outline, padding: 24, boxSizing: "border-box" }, children: [
|
|
6410
|
-
/* @__PURE__ */ i(
|
|
6419
|
+
/* @__PURE__ */ i(_n, { size: 46 }),
|
|
6411
6420
|
/* @__PURE__ */ i("div", { style: { fontSize: 14, fontWeight: u, color: t.textPrimary }, children: "No brand image" }),
|
|
6412
6421
|
/* @__PURE__ */ i("div", { style: { fontSize: 12, color: t.textSecondary, textAlign: "center", maxWidth: 220 }, children: "Upload an image in the Login Screen settings to fill this panel." })
|
|
6413
6422
|
] })
|
|
6414
6423
|
] }),
|
|
6415
6424
|
/* @__PURE__ */ p("div", { style: { background: Y, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: 22, padding: "48px 40px" }, children: [
|
|
6416
6425
|
X ? /* @__PURE__ */ i("img", { src: r.logoUrl, alt: r.appName, style: { maxHeight: 64, maxWidth: 200, objectFit: "contain" } }) : /* @__PURE__ */ p("div", { style: { display: "inline-flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: 6, maxWidth: 200, maxHeight: 64, border: "1.5px dashed " + t.outline, borderRadius: o, boxSizing: "border-box", color: t.textSecondary, padding: "8px 16px" }, children: [
|
|
6417
|
-
/* @__PURE__ */ i(
|
|
6426
|
+
/* @__PURE__ */ i(_n, { size: 20 }),
|
|
6418
6427
|
/* @__PURE__ */ i("span", { style: { fontSize: g, fontWeight: u, color: t.textSecondary, whiteSpace: "nowrap" }, children: "No logo uploaded" })
|
|
6419
6428
|
] }),
|
|
6420
6429
|
/* @__PURE__ */ p("div", { style: { width: "100%", maxWidth: 340, ...A }, children: [
|
|
@@ -6459,7 +6468,7 @@ function jl() {
|
|
|
6459
6468
|
] })
|
|
6460
6469
|
] });
|
|
6461
6470
|
}
|
|
6462
|
-
function
|
|
6471
|
+
function Ul() {
|
|
6463
6472
|
const e = we(), r = j((x) => x.settings), [t, n] = Z(!1);
|
|
6464
6473
|
if (t) return null;
|
|
6465
6474
|
const { t: o, npos: s, nacc: a, toastDeco: l, toastBg: c, rad: g, radSm: f, tBodySm: m, tCaption: y } = e, h = (r.toastW > 0 ? r.toastW : 252) + "px";
|
|
@@ -6469,15 +6478,15 @@ function Vl() {
|
|
|
6469
6478
|
/* @__PURE__ */ i("div", { style: { fontSize: m + "px", fontWeight: 700, color: o.textPrimary, marginBottom: "2px" }, children: "Low stock alert" }),
|
|
6470
6479
|
/* @__PURE__ */ i("div", { style: { fontSize: y + "px", color: o.textSecondary, lineHeight: 1.4 }, children: "Widget Pro is down to 12 units left." })
|
|
6471
6480
|
] }),
|
|
6472
|
-
r.notifAutoDismiss && /* @__PURE__ */ i("div", { title: "Auto-dismiss countdown", style: { flexShrink: 0, marginTop: "1px", minWidth: "26px", height: "20px", padding: "0 7px", borderRadius: "999px", background:
|
|
6481
|
+
r.notifAutoDismiss && /* @__PURE__ */ i("div", { title: "Auto-dismiss countdown", style: { flexShrink: 0, marginTop: "1px", minWidth: "26px", height: "20px", padding: "0 7px", borderRadius: "999px", background: de(a.dot, 0.14), color: a.dot, fontSize: y - 0.5 + "px", fontWeight: 800, display: "grid", placeItems: "center", fontVariantNumeric: "tabular-nums" }, children: (r.autoDismissSec > 0 ? r.autoDismissSec : 8) + "s" }),
|
|
6473
6482
|
/* @__PURE__ */ i("button", { title: "Dismiss notification", onClick: () => n(!0), style: { flexShrink: 0, width: "20px", height: "20px", marginTop: "1px", border: "none", background: "transparent", color: o.textSecondary, cursor: "pointer", borderRadius: "6px", display: "grid", placeItems: "center", padding: 0, lineHeight: 1 }, children: /* @__PURE__ */ i("svg", { width: 13, height: 13, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.4, strokeLinecap: "round", children: /* @__PURE__ */ i("path", { d: "M18 6 6 18M6 6l12 12" }) }) })
|
|
6474
6483
|
] });
|
|
6475
6484
|
}
|
|
6476
|
-
const
|
|
6477
|
-
function
|
|
6485
|
+
const Gl = [75, 90, 100, 125];
|
|
6486
|
+
function Yl() {
|
|
6478
6487
|
var f;
|
|
6479
|
-
const e =
|
|
6480
|
-
|
|
6488
|
+
const e = ot((m) => m.previewScreen), r = j((m) => m.settings.edgePadPx) || 0, t = e === "operations" ? 0 : r, [n, o] = Z("fit"), s = Te(null), a = Te(null), [l, c] = Z(100);
|
|
6489
|
+
Fr(() => {
|
|
6481
6490
|
const m = s.current, y = a.current;
|
|
6482
6491
|
if (!m || !y) return;
|
|
6483
6492
|
const h = () => {
|
|
@@ -6507,28 +6516,28 @@ function Gl() {
|
|
|
6507
6516
|
cancelAnimationFrame(x), v.disconnect();
|
|
6508
6517
|
};
|
|
6509
6518
|
}, [n, t, e]);
|
|
6510
|
-
const g = ((f =
|
|
6519
|
+
const g = ((f = vl.find((m) => m.key === e)) == null ? void 0 : f.label) ?? "";
|
|
6511
6520
|
return /* @__PURE__ */ p(S, { sx: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", bgcolor: "background.default" }, children: [
|
|
6512
6521
|
/* @__PURE__ */ p(S, { sx: { px: 2.5, py: 1.25, borderBottom: "1px solid", borderColor: "divider", display: "flex", alignItems: "center", gap: 1.5, bgcolor: "background.paper" }, children: [
|
|
6513
|
-
/* @__PURE__ */ i(
|
|
6522
|
+
/* @__PURE__ */ i(wl, { sx: { fontSize: 22, color: "text.secondary" } }),
|
|
6514
6523
|
/* @__PURE__ */ p(ue, { variant: "h5", sx: { flex: 1, fontSize: 18, fontWeight: 700, letterSpacing: "-.2px" }, children: [
|
|
6515
6524
|
"Previewing ",
|
|
6516
6525
|
g
|
|
6517
6526
|
] }),
|
|
6518
6527
|
/* @__PURE__ */ p(
|
|
6519
|
-
|
|
6528
|
+
oi,
|
|
6520
6529
|
{
|
|
6521
6530
|
size: "small",
|
|
6522
6531
|
value: n,
|
|
6523
6532
|
onChange: (m) => o(m.target.value === "fit" ? "fit" : Number(m.target.value)),
|
|
6524
6533
|
sx: { minWidth: 128, fontSize: 13, fontWeight: 600, "& .MuiSelect-select": { py: 0.75 } },
|
|
6525
6534
|
children: [
|
|
6526
|
-
/* @__PURE__ */ p(
|
|
6535
|
+
/* @__PURE__ */ p(mt, { value: "fit", children: [
|
|
6527
6536
|
"Fit (",
|
|
6528
6537
|
l,
|
|
6529
6538
|
"%)"
|
|
6530
6539
|
] }),
|
|
6531
|
-
|
|
6540
|
+
Gl.map((m) => /* @__PURE__ */ p(mt, { value: m, children: [
|
|
6532
6541
|
m,
|
|
6533
6542
|
"%"
|
|
6534
6543
|
] }, m))
|
|
@@ -6538,29 +6547,29 @@ function Gl() {
|
|
|
6538
6547
|
] }),
|
|
6539
6548
|
/* @__PURE__ */ p(S, { ref: s, sx: { flex: 1, overflow: "auto", p: `${t}px`, position: "relative", bgcolor: "background.default" }, children: [
|
|
6540
6549
|
/* @__PURE__ */ p(S, { ref: a, sx: { width: "100%", display: "flex", flexDirection: "column", "& > *": { flex: "1 1 0%", minHeight: 0 } }, children: [
|
|
6541
|
-
e === "dashboard" && /* @__PURE__ */ i(
|
|
6542
|
-
e === "orders" && /* @__PURE__ */ i(
|
|
6543
|
-
e === "reports" && /* @__PURE__ */ i(
|
|
6544
|
-
e === "cameras" && /* @__PURE__ */ i(
|
|
6545
|
-
e === "operations" && /* @__PURE__ */ i(
|
|
6546
|
-
e === "components" && /* @__PURE__ */ i(
|
|
6547
|
-
e === "login" && /* @__PURE__ */ i(
|
|
6550
|
+
e === "dashboard" && /* @__PURE__ */ i(El, {}),
|
|
6551
|
+
e === "orders" && /* @__PURE__ */ i(Pl, {}),
|
|
6552
|
+
e === "reports" && /* @__PURE__ */ i(jl, {}),
|
|
6553
|
+
e === "cameras" && /* @__PURE__ */ i(Ol, {}),
|
|
6554
|
+
e === "operations" && /* @__PURE__ */ i(Ml, {}),
|
|
6555
|
+
e === "components" && /* @__PURE__ */ i($l, {}),
|
|
6556
|
+
e === "login" && /* @__PURE__ */ i(Vl, {})
|
|
6548
6557
|
] }),
|
|
6549
|
-
e !== "login" && /* @__PURE__ */ i(
|
|
6558
|
+
e !== "login" && /* @__PURE__ */ i(Ul, {})
|
|
6550
6559
|
] })
|
|
6551
6560
|
] });
|
|
6552
6561
|
}
|
|
6553
|
-
const
|
|
6554
|
-
function
|
|
6562
|
+
const Jl = 300, ql = 520;
|
|
6563
|
+
function id() {
|
|
6555
6564
|
const [e, r] = Z(!0), [t, n] = Z(300), [o, s] = Z(!1), a = j((b) => b.isDirty), l = j((b) => b.captureBaseline), c = j((b) => b.restoreBaseline), g = De(j((b) => b.settings.mode)), f = j((b) => b.settings.customFonts), m = j((b) => b.settings.customHeadFonts), y = Te(null);
|
|
6556
6565
|
_e(() => {
|
|
6557
|
-
|
|
6566
|
+
Fn(f), Fn(m);
|
|
6558
6567
|
}, [f, m]);
|
|
6559
6568
|
const h = (b) => {
|
|
6560
6569
|
b.preventDefault(), y.current = { x: b.clientX, w: t };
|
|
6561
6570
|
const v = (H) => {
|
|
6562
6571
|
if (!y.current) return;
|
|
6563
|
-
const C = Math.max(
|
|
6572
|
+
const C = Math.max(Jl, Math.min(ql, y.current.w + (H.clientX - y.current.x)));
|
|
6564
6573
|
n(C);
|
|
6565
6574
|
}, $ = () => {
|
|
6566
6575
|
y.current = null, window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", $);
|
|
@@ -6583,14 +6592,14 @@ function od() {
|
|
|
6583
6592
|
scrollbarWidth: "none",
|
|
6584
6593
|
msOverflowStyle: "none",
|
|
6585
6594
|
"&::-webkit-scrollbar": { display: "none" }
|
|
6586
|
-
}, children: /* @__PURE__ */ i(
|
|
6595
|
+
}, children: /* @__PURE__ */ i(Cl, { onClose: x }) }),
|
|
6587
6596
|
/* @__PURE__ */ i(S, { onMouseDown: h, sx: { width: 5, cursor: "col-resize", flexShrink: 0, bgcolor: "divider", opacity: 0.4, "&:hover": { opacity: 1, bgcolor: "primary.main" } } })
|
|
6588
|
-
] }) : /* @__PURE__ */ i(ze, { title: "Open Theme Studio", placement: "right", arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i(
|
|
6597
|
+
] }) : /* @__PURE__ */ i(ze, { title: "Open Theme Studio", placement: "right", arrow: !0, slotProps: { popper: { style: { pointerEvents: "none" } } }, children: /* @__PURE__ */ i($r, { onClick: () => {
|
|
6589
6598
|
r(!0), l();
|
|
6590
|
-
}, sx: { position: "absolute", left: 68, bottom: 56, zIndex: 10, bgcolor: "primary.main", color: "primary.contrastText", boxShadow: 4, "&:hover": { bgcolor: "primary.dark" } }, children: /* @__PURE__ */ i(
|
|
6591
|
-
/* @__PURE__ */ i(
|
|
6599
|
+
}, sx: { position: "absolute", left: 68, bottom: 56, zIndex: 10, bgcolor: "primary.main", color: "primary.contrastText", boxShadow: 4, "&:hover": { bgcolor: "primary.dark" } }, children: /* @__PURE__ */ i(_s, {}) }) }),
|
|
6600
|
+
/* @__PURE__ */ i(Yl, {})
|
|
6592
6601
|
] }) }),
|
|
6593
|
-
/* @__PURE__ */ p(
|
|
6602
|
+
/* @__PURE__ */ p(yt, { open: o, onClose: () => s(!1), PaperProps: { sx: { borderRadius: 3, width: 300, p: 2.5 } }, children: [
|
|
6594
6603
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 15, fontWeight: 800, mb: 0.75 }, children: "Save changes?" }),
|
|
6595
6604
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 12.5, color: "text.secondary", lineHeight: 1.5, mb: 2.25 }, children: "You've made changes to the theme. Do you want to save them before leaving?" }),
|
|
6596
6605
|
/* @__PURE__ */ p(S, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
@@ -6605,8 +6614,8 @@ function od() {
|
|
|
6605
6614
|
] })
|
|
6606
6615
|
] });
|
|
6607
6616
|
}
|
|
6608
|
-
function
|
|
6609
|
-
const r =
|
|
6617
|
+
function ad(e) {
|
|
6618
|
+
const r = Ur(e), t = r.t, n = `${r.headFam},sans-serif`, o = `${r.bodyFam},sans-serif`, s = (a) => ({ fontFamily: n, fontSize: a, fontWeight: r.wH1, lineHeight: r.headLH });
|
|
6610
6619
|
if (typeof window < "u" && typeof document < "u") {
|
|
6611
6620
|
const a = ["Roboto", "Inter", "DM Sans", "Manrope", "Plus Jakarta Sans", "Nunito Sans", "Figtree"], c = [e.fontFamily, e.headingFont].filter(Boolean).map((f) => f.replace(/"/g, "").replace(/'/g, "")), g = Array.from(new Set(c)).filter((f) => a.includes(f));
|
|
6612
6621
|
if (g.length > 0) {
|
|
@@ -6616,7 +6625,7 @@ function id(e) {
|
|
|
6616
6625
|
m || (m = document.createElement("link"), m.id = f, m.rel = "stylesheet", document.head.appendChild(m)), m.href = h;
|
|
6617
6626
|
}
|
|
6618
6627
|
}
|
|
6619
|
-
return
|
|
6628
|
+
return lo({
|
|
6620
6629
|
palette: {
|
|
6621
6630
|
mode: e.mode,
|
|
6622
6631
|
primary: { main: r.pMain, dark: r.pal[700], light: r.pal[300], contrastText: t.pContrast },
|
|
@@ -6735,7 +6744,7 @@ function id(e) {
|
|
|
6735
6744
|
}
|
|
6736
6745
|
export {
|
|
6737
6746
|
Oe as DEFAULT_SETTINGS,
|
|
6738
|
-
|
|
6739
|
-
|
|
6747
|
+
id as ThemeStudio,
|
|
6748
|
+
ad as buildMuiTheme,
|
|
6740
6749
|
j as useThemeStore
|
|
6741
6750
|
};
|