omnieye-theme-studio 1.2.6 → 1.2.8
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 +220 -194
- package/dist/index.js +16 -16
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -155,7 +155,7 @@ function pi() {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
var k = c, R = g, z = l,
|
|
158
|
+
var k = c, R = g, z = l, B = a, X = r, Q = f, Y = n, d = x, I = h, A = t, L = s, N = o, K = m, U = !1;
|
|
159
159
|
function J(_) {
|
|
160
160
|
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), P(_) || C(_) === c;
|
|
161
161
|
}
|
|
@@ -195,7 +195,7 @@ function pi() {
|
|
|
195
195
|
function te(_) {
|
|
196
196
|
return C(_) === m;
|
|
197
197
|
}
|
|
198
|
-
oe.AsyncMode = k, oe.ConcurrentMode = R, oe.ContextConsumer = z, oe.ContextProvider =
|
|
198
|
+
oe.AsyncMode = k, oe.ConcurrentMode = R, oe.ContextConsumer = z, oe.ContextProvider = B, oe.Element = X, oe.ForwardRef = Q, oe.Fragment = Y, oe.Lazy = d, oe.Memo = I, 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
201
|
var nn;
|
|
@@ -352,11 +352,11 @@ function hi() {
|
|
|
352
352
|
elementType: k(),
|
|
353
353
|
instanceOf: R,
|
|
354
354
|
node: Q(),
|
|
355
|
-
objectOf:
|
|
355
|
+
objectOf: B,
|
|
356
356
|
oneOf: z,
|
|
357
357
|
oneOfType: X,
|
|
358
358
|
shape: d,
|
|
359
|
-
exact:
|
|
359
|
+
exact: I
|
|
360
360
|
};
|
|
361
361
|
function x(P, D) {
|
|
362
362
|
return P === D ? P !== 0 || 1 / P === 1 / D : P !== P && D !== D;
|
|
@@ -472,7 +472,7 @@ function hi() {
|
|
|
472
472
|
}
|
|
473
473
|
return b(D);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function B(P) {
|
|
476
476
|
function D(q, V, G, M, w) {
|
|
477
477
|
if (typeof P != "function")
|
|
478
478
|
return new u("Property `" + w + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
|
|
@@ -539,7 +539,7 @@ function hi() {
|
|
|
539
539
|
}
|
|
540
540
|
return b(D);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function I(P) {
|
|
543
543
|
function D(q, V, G, M, w) {
|
|
544
544
|
var O = q[V], F = N(O);
|
|
545
545
|
if (F !== "object")
|
|
@@ -1096,18 +1096,18 @@ function _r(e) {
|
|
|
1096
1096
|
function At(e, r) {
|
|
1097
1097
|
return typeof r == "string" || r == null ? r : e(r);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function Bi(e, r) {
|
|
1100
1100
|
return (t) => e.reduce((n, o) => (n[o] = At(r, t), n), {});
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function Ii(e, r, t, n) {
|
|
1103
1103
|
if (!r.includes(t))
|
|
1104
1104
|
return null;
|
|
1105
|
-
const o = $i(t), s =
|
|
1105
|
+
const o = $i(t), s = Bi(o, n), a = e[t];
|
|
1106
1106
|
return Le(e, a, s);
|
|
1107
1107
|
}
|
|
1108
1108
|
function Gn(e, r) {
|
|
1109
1109
|
const t = _r(e.theme);
|
|
1110
|
-
return Object.keys(e).map((n) =>
|
|
1110
|
+
return Object.keys(e).map((n) => Ii(e, r, n, t)).reduce(Ht, {});
|
|
1111
1111
|
}
|
|
1112
1112
|
function fe(e) {
|
|
1113
1113
|
return Gn(e, rr);
|
|
@@ -2099,7 +2099,7 @@ function Qn(e, r, t = [], n = void 0) {
|
|
|
2099
2099
|
}
|
|
2100
2100
|
return t;
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function Ba(e = {}) {
|
|
2103
2103
|
const {
|
|
2104
2104
|
themeId: r,
|
|
2105
2105
|
defaultTheme: t = Pa,
|
|
@@ -2135,8 +2135,8 @@ function Ia(e = {}) {
|
|
|
2135
2135
|
if (R.__emotion_real === R)
|
|
2136
2136
|
return R;
|
|
2137
2137
|
if (typeof R == "function")
|
|
2138
|
-
return function(
|
|
2139
|
-
return Jt(
|
|
2138
|
+
return function(B) {
|
|
2139
|
+
return Jt(B, R, B.theme.modularCssLayers ? u : void 0);
|
|
2140
2140
|
};
|
|
2141
2141
|
if (We(R)) {
|
|
2142
2142
|
const z = Xn(R);
|
|
@@ -2146,32 +2146,32 @@ function Ia(e = {}) {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
return R;
|
|
2148
2148
|
}, k = (...R) => {
|
|
2149
|
-
const z = [],
|
|
2150
|
-
if (z.push(s), g && h && X.push(function(
|
|
2149
|
+
const z = [], B = R.map(C), X = [];
|
|
2150
|
+
if (z.push(s), g && h && X.push(function(I) {
|
|
2151
2151
|
var K, U;
|
|
2152
|
-
const L = (U = (K =
|
|
2152
|
+
const L = (U = (K = I.theme.components) == null ? void 0 : K[g]) == null ? void 0 : U.styleOverrides;
|
|
2153
2153
|
if (!L)
|
|
2154
2154
|
return null;
|
|
2155
2155
|
const N = {};
|
|
2156
2156
|
for (const J in L)
|
|
2157
|
-
N[J] = Jt(
|
|
2158
|
-
return h(
|
|
2159
|
-
}), g && !b && X.push(function(
|
|
2157
|
+
N[J] = Jt(I, L[J], I.theme.modularCssLayers ? "theme" : void 0);
|
|
2158
|
+
return h(I, N);
|
|
2159
|
+
}), g && !b && X.push(function(I) {
|
|
2160
2160
|
var N, K;
|
|
2161
|
-
const A =
|
|
2162
|
-
return L ? Qn(
|
|
2163
|
-
}), v || X.push(vt), Array.isArray(
|
|
2164
|
-
const d =
|
|
2161
|
+
const A = I.theme, L = (K = (N = A == null ? void 0 : A.components) == null ? void 0 : N[g]) == null ? void 0 : K.variants;
|
|
2162
|
+
return L ? Qn(I, L, [], I.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
2163
|
+
}), v || X.push(vt), Array.isArray(B[0])) {
|
|
2164
|
+
const d = B.shift(), I = new Array(z.length).fill(""), A = new Array(X.length).fill("");
|
|
2165
2165
|
let L;
|
|
2166
|
-
L = [...
|
|
2166
|
+
L = [...I, ...d, ...A], L.raw = [...I, ...d.raw, ...A], z.unshift(L);
|
|
2167
2167
|
}
|
|
2168
|
-
const Q = [...z, ...
|
|
2169
|
-
return l.muiName && (Y.muiName = l.muiName), process.env.NODE_ENV !== "production" && (Y.displayName =
|
|
2168
|
+
const Q = [...z, ...B, ...X], Y = H(...Q);
|
|
2169
|
+
return l.muiName && (Y.muiName = l.muiName), process.env.NODE_ENV !== "production" && (Y.displayName = Ia(g, f, l)), Y;
|
|
2170
2170
|
};
|
|
2171
2171
|
return H.withConfig && (k.withConfig = H.withConfig), k;
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function Ia(e, r, t) {
|
|
2175
2175
|
return e ? `${e}${lt(r || "")}` : `Styled(${Ha(t)})`;
|
|
2176
2176
|
}
|
|
2177
2177
|
function Oa(e, r) {
|
|
@@ -2293,13 +2293,13 @@ function eo(e) {
|
|
|
2293
2293
|
values: c
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function Br(e) {
|
|
2297
2297
|
e = Ke(e);
|
|
2298
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
2301
|
function kn(e, r) {
|
|
2302
|
-
const t =
|
|
2302
|
+
const t = Br(e), n = Br(r);
|
|
2303
2303
|
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
2304
2304
|
}
|
|
2305
2305
|
function to(e, r) {
|
|
@@ -2346,7 +2346,7 @@ function ae(e, r, t) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
2348
|
function _a(e, r = 0.15) {
|
|
2349
|
-
return
|
|
2349
|
+
return Br(e) > 0.5 ? pr(e, r) : ur(e, r);
|
|
2350
2350
|
}
|
|
2351
2351
|
function Vt(e, r, t) {
|
|
2352
2352
|
try {
|
|
@@ -2461,9 +2461,9 @@ function Ja(e, r = {}) {
|
|
|
2461
2461
|
const {
|
|
2462
2462
|
vars: R,
|
|
2463
2463
|
css: z,
|
|
2464
|
-
varsWithDefaults:
|
|
2464
|
+
varsWithDefaults: B
|
|
2465
2465
|
} = kr(k, r);
|
|
2466
|
-
h = Pe(h,
|
|
2466
|
+
h = Pe(h, B), x[C] = {
|
|
2467
2467
|
css: z,
|
|
2468
2468
|
vars: R
|
|
2469
2469
|
};
|
|
@@ -2479,12 +2479,12 @@ function Ja(e, r = {}) {
|
|
|
2479
2479
|
};
|
|
2480
2480
|
}
|
|
2481
2481
|
function v(C, k) {
|
|
2482
|
-
var z,
|
|
2482
|
+
var z, B;
|
|
2483
2483
|
let R = o;
|
|
2484
2484
|
if (o === "class" && (R = ".%s"), o === "data" && (R = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (R = `[${o}="%s"]`), C) {
|
|
2485
2485
|
if (R === "media")
|
|
2486
2486
|
return e.defaultColorScheme === C ? ":root" : {
|
|
2487
|
-
[`@media (prefers-color-scheme: ${((
|
|
2487
|
+
[`@media (prefers-color-scheme: ${((B = (z = a[C]) == null ? void 0 : z.palette) == null ? void 0 : B.mode) || C})`]: {
|
|
2488
2488
|
":root": k
|
|
2489
2489
|
}
|
|
2490
2490
|
};
|
|
@@ -2520,27 +2520,27 @@ function Ja(e, r = {}) {
|
|
|
2520
2520
|
}), m);
|
|
2521
2521
|
const {
|
|
2522
2522
|
[k]: z,
|
|
2523
|
-
...
|
|
2523
|
+
...B
|
|
2524
2524
|
} = x;
|
|
2525
2525
|
if (z) {
|
|
2526
2526
|
const {
|
|
2527
2527
|
css: Y
|
|
2528
|
-
} = z, d = (Q = (X = a[k]) == null ? void 0 : X.palette) == null ? void 0 : Q.mode,
|
|
2528
|
+
} = z, d = (Q = (X = a[k]) == null ? void 0 : X.palette) == null ? void 0 : Q.mode, I = !n && d ? {
|
|
2529
2529
|
colorScheme: d,
|
|
2530
2530
|
...Y
|
|
2531
2531
|
} : {
|
|
2532
2532
|
...Y
|
|
2533
2533
|
};
|
|
2534
2534
|
R(t(k, {
|
|
2535
|
-
...
|
|
2536
|
-
}),
|
|
2535
|
+
...I
|
|
2536
|
+
}), I);
|
|
2537
2537
|
}
|
|
2538
|
-
return Object.entries(
|
|
2538
|
+
return Object.entries(B).forEach(([Y, {
|
|
2539
2539
|
css: d
|
|
2540
2540
|
}]) => {
|
|
2541
2541
|
var L, N;
|
|
2542
|
-
const
|
|
2543
|
-
colorScheme:
|
|
2542
|
+
const I = (N = (L = a[Y]) == null ? void 0 : L.palette) == null ? void 0 : N.mode, A = !n && I ? {
|
|
2543
|
+
colorScheme: I,
|
|
2544
2544
|
...d
|
|
2545
2545
|
} : {
|
|
2546
2546
|
...d
|
|
@@ -2691,7 +2691,7 @@ function oo() {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
};
|
|
2693
2693
|
}
|
|
2694
|
-
const
|
|
2694
|
+
const Ir = oo();
|
|
2695
2695
|
function En(e, r, t, n) {
|
|
2696
2696
|
const o = n.light || n, s = n.dark || n * 1.5;
|
|
2697
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)));
|
|
@@ -2781,7 +2781,7 @@ function Vr(e) {
|
|
|
2781
2781
|
function y(b) {
|
|
2782
2782
|
if (o)
|
|
2783
2783
|
return ns(b);
|
|
2784
|
-
const v = kn(b,
|
|
2784
|
+
const v = kn(b, Ir.text.primary) >= t ? Ir.text.primary : no.text.primary;
|
|
2785
2785
|
if (process.env.NODE_ENV !== "production") {
|
|
2786
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(`
|
|
@@ -3076,7 +3076,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
3076
3076
|
|
|
3077
3077
|
export default theme;`;
|
|
3078
3078
|
}
|
|
3079
|
-
function
|
|
3079
|
+
function Bn(e) {
|
|
3080
3080
|
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
3081
3081
|
}
|
|
3082
3082
|
const bs = (e) => {
|
|
@@ -3098,11 +3098,11 @@ function xs(e) {
|
|
|
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 ${Bn(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 ${Bn(t)})` : pr(r, t);
|
|
3106
3106
|
}
|
|
3107
3107
|
});
|
|
3108
3108
|
}
|
|
@@ -3276,7 +3276,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
3276
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
|
-
const
|
|
3279
|
+
const Ie = (e) => {
|
|
3280
3280
|
try {
|
|
3281
3281
|
return e();
|
|
3282
3282
|
} catch {
|
|
@@ -3362,7 +3362,7 @@ function Ps(e = {}, ...r) {
|
|
|
3362
3362
|
spacing: Es(f.spacing)
|
|
3363
3363
|
};
|
|
3364
3364
|
Object.keys(R.colorSchemes).forEach((Y) => {
|
|
3365
|
-
const d = R.colorSchemes[Y].palette,
|
|
3365
|
+
const d = R.colorSchemes[Y].palette, I = (L) => {
|
|
3366
3366
|
const N = L.split("-"), K = N[1], U = N[2];
|
|
3367
3367
|
return h(L, d[K][U]);
|
|
3368
3368
|
};
|
|
@@ -3375,14 +3375,14 @@ function Ps(e = {}, ...r) {
|
|
|
3375
3375
|
return L(N, K);
|
|
3376
3376
|
}
|
|
3377
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",
|
|
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", I("palette-error-main")), T(d.Alert, "infoFilledBg", I("palette-info-main")), T(d.Alert, "successFilledBg", I("palette-success-main")), T(d.Alert, "warningFilledBg", I("palette-warning-main")), T(d.Alert, "errorFilledColor", Ie(() => d.getContrastText(d.error.main))), T(d.Alert, "infoFilledColor", Ie(() => d.getContrastText(d.info.main))), T(d.Alert, "successFilledColor", Ie(() => d.getContrastText(d.success.main))), T(d.Alert, "warningFilledColor", Ie(() => 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", I("palette-error-main")), T(d.Alert, "infoIconColor", I("palette-info-main")), T(d.Alert, "successIconColor", I("palette-success-main")), T(d.Alert, "warningIconColor", I("palette-warning-main")), T(d.AppBar, "defaultBg", I("palette-grey-100")), T(d.Avatar, "defaultBg", I("palette-grey-400")), T(d.Button, "inheritContainedBg", I("palette-grey-300")), T(d.Button, "inheritContainedHoverBg", I("palette-grey-A100")), T(d.Chip, "defaultBorder", I("palette-grey-400")), T(d.Chip, "defaultAvatarColor", I("palette-grey-700")), T(d.Chip, "defaultIconColor", I("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(${I("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
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",
|
|
3380
|
+
T(d.SnackbarContent, "bg", L), T(d.SnackbarContent, "color", Ie(() => C ? Ir.text.primary : d.getContrastText(L))), T(d.SpeedDialAction, "fabHoverBg", Vt(d.background.paper, 0.15)), T(d.StepConnector, "border", I("palette-grey-400")), T(d.StepContent, "border", I("palette-grey-400")), T(d.Switch, "defaultColor", I("palette-common-white")), T(d.Switch, "defaultDisabledColor", I("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",
|
|
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", I("palette-error-dark")), T(d.Alert, "infoFilledBg", I("palette-info-dark")), T(d.Alert, "successFilledBg", I("palette-success-dark")), T(d.Alert, "warningFilledBg", I("palette-warning-dark")), T(d.Alert, "errorFilledColor", Ie(() => d.getContrastText(d.error.dark))), T(d.Alert, "infoFilledColor", Ie(() => d.getContrastText(d.info.dark))), T(d.Alert, "successFilledColor", Ie(() => d.getContrastText(d.success.dark))), T(d.Alert, "warningFilledColor", Ie(() => 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", I("palette-error-main")), T(d.Alert, "infoIconColor", I("palette-info-main")), T(d.Alert, "successIconColor", I("palette-success-main")), T(d.Alert, "warningIconColor", I("palette-warning-main")), T(d.AppBar, "defaultBg", I("palette-grey-900")), T(d.AppBar, "darkBg", I("palette-background-paper")), T(d.AppBar, "darkColor", I("palette-text-primary")), T(d.Avatar, "defaultBg", I("palette-grey-600")), T(d.Button, "inheritContainedBg", I("palette-grey-800")), T(d.Button, "inheritContainedHoverBg", I("palette-grey-700")), T(d.Chip, "defaultBorder", I("palette-grey-700")), T(d.Chip, "defaultAvatarColor", I("palette-grey-300")), T(d.Chip, "defaultIconColor", I("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(${I("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
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",
|
|
3385
|
+
T(d.SnackbarContent, "bg", L), T(d.SnackbarContent, "color", Ie(() => C ? no.text.primary : d.getContrastText(L))), T(d.SpeedDialAction, "fabHoverBg", Vt(d.background.paper, 0.15)), T(d.StepConnector, "border", I("palette-grey-600")), T(d.StepContent, "border", I("palette-grey-600")), T(d.Switch, "defaultColor", I("palette-grey-300")), T(d.Switch, "defaultDisabledColor", I("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];
|
|
@@ -3396,11 +3396,11 @@ function Ps(e = {}, ...r) {
|
|
|
3396
3396
|
getSelector: Ts(R),
|
|
3397
3397
|
enableContrastVars: a
|
|
3398
3398
|
}, {
|
|
3399
|
-
vars:
|
|
3399
|
+
vars: B,
|
|
3400
3400
|
generateThemeVars: X,
|
|
3401
3401
|
generateStyleSheets: Q
|
|
3402
3402
|
} = Ja(R, z);
|
|
3403
|
-
return R.vars =
|
|
3403
|
+
return R.vars = B, 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
3406
|
return Jn(f.spacing, _r(this));
|
|
@@ -3414,7 +3414,7 @@ function Ps(e = {}, ...r) {
|
|
|
3414
3414
|
});
|
|
3415
3415
|
}, R.toRuntimeSource = io, R;
|
|
3416
3416
|
}
|
|
3417
|
-
function
|
|
3417
|
+
function In(e, r, t) {
|
|
3418
3418
|
e.colorSchemes && t && (e.colorSchemes[r] = {
|
|
3419
3419
|
...t !== !0 && t,
|
|
3420
3420
|
palette: Vr({
|
|
@@ -3456,10 +3456,10 @@ function lo(e = {}, ...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
|
+
}, In(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
|
+
}, In(m, "light", g.light)), m;
|
|
3463
3463
|
}
|
|
3464
3464
|
return !t && !("light" in g) && l === "light" && (g.light = !0), Ps({
|
|
3465
3465
|
...a,
|
|
@@ -3469,13 +3469,13 @@ function lo(e = {}, ...r) {
|
|
|
3469
3469
|
}, ...r);
|
|
3470
3470
|
}
|
|
3471
3471
|
const $s = lo(), As = "$$material";
|
|
3472
|
-
function
|
|
3472
|
+
function Bs(e) {
|
|
3473
3473
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
3474
3474
|
}
|
|
3475
|
-
const
|
|
3475
|
+
const Is = (e) => Bs(e) && e !== "classes", Os = Ba({
|
|
3476
3476
|
themeId: As,
|
|
3477
3477
|
defaultTheme: $s,
|
|
3478
|
-
rootShouldForwardProp:
|
|
3478
|
+
rootShouldForwardProp: Is
|
|
3479
3479
|
}), Ds = Va;
|
|
3480
3480
|
process.env.NODE_ENV !== "production" && (re.node, re.object.isRequired);
|
|
3481
3481
|
function Ms(e) {
|
|
@@ -3712,7 +3712,7 @@ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
|
|
|
3712
3712
|
viewBox: re.string
|
|
3713
3713
|
});
|
|
3714
3714
|
Qt.muiName = "SvgIcon";
|
|
3715
|
-
function
|
|
3715
|
+
function Bt(e, r) {
|
|
3716
3716
|
function t(n, o) {
|
|
3717
3717
|
return /* @__PURE__ */ i(Qt, {
|
|
3718
3718
|
"data-testid": process.env.NODE_ENV !== "production" ? `${r}Icon` : void 0,
|
|
@@ -3723,13 +3723,13 @@ function It(e, r) {
|
|
|
3723
3723
|
}
|
|
3724
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 _s =
|
|
3726
|
+
const _s = Bt(/* @__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"), Ls =
|
|
3728
|
+
}), "TuneRounded"), Ls = Bt(/* @__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"), Ns =
|
|
3730
|
+
}), "RestartAltRounded"), Ns = Bt(/* @__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"), js =
|
|
3732
|
+
}), "DarkModeOutlined"), js = Bt(/* @__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
3734
|
}), "LightModeOutlined"), On = (e) => {
|
|
3735
3735
|
let r;
|
|
@@ -3902,6 +3902,10 @@ const Dr = (e) => (r) => {
|
|
|
3902
3902
|
primaryHex: "#4F6BFF",
|
|
3903
3903
|
secondaryHex: "#22D3EE",
|
|
3904
3904
|
highlightHex: "",
|
|
3905
|
+
videoShadowLight: "",
|
|
3906
|
+
videoShadowDark: "",
|
|
3907
|
+
ccBadge: "",
|
|
3908
|
+
hdBadge: "",
|
|
3905
3909
|
errorHex: "#d32f2f",
|
|
3906
3910
|
warningHex: "#ed6c02",
|
|
3907
3911
|
infoHex: "#0288d1",
|
|
@@ -3994,7 +3998,10 @@ const Dr = (e) => (r) => {
|
|
|
3994
3998
|
loginPanelColor: "",
|
|
3995
3999
|
loginImgOpacity: 0,
|
|
3996
4000
|
loginCardW: 0
|
|
3997
|
-
}, Fe = (e) =>
|
|
4001
|
+
}, Fe = (e) => {
|
|
4002
|
+
const { mode: r, ...t } = e;
|
|
4003
|
+
return JSON.stringify(t);
|
|
4004
|
+
};
|
|
3998
4005
|
function Rr(e) {
|
|
3999
4006
|
const r = { ...Oe };
|
|
4000
4007
|
if (e && typeof e == "object")
|
|
@@ -4022,7 +4029,16 @@ const j = co()(
|
|
|
4022
4029
|
baseline: Fe(Oe),
|
|
4023
4030
|
editingSavedId: null,
|
|
4024
4031
|
lastImportedId: null,
|
|
4025
|
-
set: (t) => e((n) =>
|
|
4032
|
+
set: (t) => e((n) => {
|
|
4033
|
+
const o = Object.keys(t), s = o.length > 0 && o.every((a) => a === "mode");
|
|
4034
|
+
return {
|
|
4035
|
+
settings: {
|
|
4036
|
+
...n.settings,
|
|
4037
|
+
...t,
|
|
4038
|
+
...s ? {} : { presetId: "custom" }
|
|
4039
|
+
}
|
|
4040
|
+
};
|
|
4041
|
+
}),
|
|
4026
4042
|
applyPreset: (t, n) => e((o) => {
|
|
4027
4043
|
const s = { ...o.settings, ...n, presetId: t };
|
|
4028
4044
|
return { settings: s, baseline: Fe(s), editingSavedId: null, lastImportedId: null };
|
|
@@ -4031,7 +4047,7 @@ const j = co()(
|
|
|
4031
4047
|
captureBaseline: () => e((t) => ({ baseline: Fe(t.settings) })),
|
|
4032
4048
|
restoreBaseline: () => e((t) => {
|
|
4033
4049
|
try {
|
|
4034
|
-
return { settings: JSON.parse(t.baseline) };
|
|
4050
|
+
return { settings: { ...JSON.parse(t.baseline), mode: t.settings.mode } };
|
|
4035
4051
|
} catch {
|
|
4036
4052
|
return {};
|
|
4037
4053
|
}
|
|
@@ -4201,7 +4217,7 @@ function Ur(e) {
|
|
|
4201
4217
|
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
4218
|
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
4219
|
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
|
|
4220
|
+
const B = e.btnColorHex || o, X = e.accentGradient ? "linear-gradient(135deg," + B + "," + (e.btnColorHex ? Re(e.btnColorHex)[700] : r[n ? 500 : 700]) + ")" : B, Q = e.btnTextHex || (Er(B, "#ffffff") >= 2.9 ? "#ffffff" : "rgba(0,0,0,0.87)"), Y = e.h1Color || null, d = e.h2Color || null, I = 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 }, Be = e.densityScale > 0 ? e.densityScale / 100 : Ze[e.density] ?? 1, fr = Math.round(20 * Be), Ve = Math.round(14 * Be), It = e.cardGapPx > 0 ? e.cardGapPx : Math.round(16 * Be), et = Math.round(11 * Be * ({ compact: 0.66, default: 1, comfortable: 1.32 }[e.tableDensity] ?? 1)), Ue = e.containerPadPx > 0 ? e.containerPadPx : Math.round(10 * Be), 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
4221
|
0: "none",
|
|
4206
4222
|
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
4223
|
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)`,
|
|
@@ -4225,7 +4241,7 @@ function Ur(e) {
|
|
|
4225
4241
|
cbsafe: ["#0072B2", "#E69F00", "#009E73", "#CC79A7", "#56B4E9"],
|
|
4226
4242
|
warm: [ve(8), ve(28), ve(45), ve(350), ve(18)],
|
|
4227
4243
|
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] + ")",
|
|
4244
|
+
}, 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] + ")", Bo = "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" } }, Io = 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
4245
|
let Mt;
|
|
4230
4246
|
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
4247
|
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 = {
|
|
@@ -4281,7 +4297,7 @@ function Ur(e) {
|
|
|
4281
4297
|
btnText: Q,
|
|
4282
4298
|
hc1: Y,
|
|
4283
4299
|
hc2: d,
|
|
4284
|
-
hc3:
|
|
4300
|
+
hc3: I,
|
|
4285
4301
|
hc4: A,
|
|
4286
4302
|
hc5: L,
|
|
4287
4303
|
hc6: N,
|
|
@@ -4310,7 +4326,7 @@ function Ur(e) {
|
|
|
4310
4326
|
bwEmph: Qe,
|
|
4311
4327
|
pad: fr,
|
|
4312
4328
|
padSm: Ve,
|
|
4313
|
-
gap:
|
|
4329
|
+
gap: It,
|
|
4314
4330
|
rowPy: et,
|
|
4315
4331
|
screenPad: Ue,
|
|
4316
4332
|
r: ee,
|
|
@@ -4342,8 +4358,8 @@ function Ur(e) {
|
|
|
4342
4358
|
loginBrandGrad: Po,
|
|
4343
4359
|
loginScrimGrad: $o,
|
|
4344
4360
|
loginCenteredGrad: Ao,
|
|
4345
|
-
loginScrimGradC:
|
|
4346
|
-
npos:
|
|
4361
|
+
loginScrimGradC: Bo,
|
|
4362
|
+
npos: Io,
|
|
4347
4363
|
nacc: Qr,
|
|
4348
4364
|
toastDeco: Mt,
|
|
4349
4365
|
toastBg: Oo,
|
|
@@ -4465,42 +4481,52 @@ const Zt = [
|
|
|
4465
4481
|
id: "corporate",
|
|
4466
4482
|
name: "Corporate Blue",
|
|
4467
4483
|
snap: {
|
|
4468
|
-
primaryHex: "#
|
|
4469
|
-
secondaryHex: "#
|
|
4470
|
-
iconColor: "#
|
|
4471
|
-
|
|
4472
|
-
cardHeader: "accent",
|
|
4473
|
-
highlightHex: "#00D2FF",
|
|
4484
|
+
primaryHex: "#4F6BFF",
|
|
4485
|
+
secondaryHex: "#22D3EE",
|
|
4486
|
+
iconColor: "#4F6BFF",
|
|
4487
|
+
highlightHex: "#6D86FF",
|
|
4474
4488
|
cardStyle: "floating",
|
|
4475
|
-
cardShadowPx: 20
|
|
4489
|
+
cardShadowPx: 20,
|
|
4490
|
+
// Figma video-card drop shadow: solid core + soft outer glow.
|
|
4491
|
+
// Verified against pixelPerfectReactCode_blueLight: single solid shadow.
|
|
4492
|
+
videoShadowLight: "0px 4px 66px 0px #0409D8",
|
|
4493
|
+
// Verified against pixelPerfectReactCode_blueDark: single solid shadow.
|
|
4494
|
+
videoShadowDark: "0px 4px 63.7px 0px #00136f"
|
|
4476
4495
|
}
|
|
4477
4496
|
},
|
|
4478
4497
|
{
|
|
4479
4498
|
id: "emerald",
|
|
4480
4499
|
name: "Emerald",
|
|
4481
4500
|
snap: {
|
|
4482
|
-
primaryHex: "#
|
|
4483
|
-
secondaryHex: "#
|
|
4484
|
-
iconColor: "#
|
|
4485
|
-
|
|
4486
|
-
cardHeader: "accent",
|
|
4487
|
-
highlightHex: "#FFC255",
|
|
4501
|
+
primaryHex: "#10B981",
|
|
4502
|
+
secondaryHex: "#F5A524",
|
|
4503
|
+
iconColor: "#10B981",
|
|
4504
|
+
highlightHex: "#2EE6A6",
|
|
4488
4505
|
cardStyle: "floating",
|
|
4489
|
-
cardShadowPx: 20
|
|
4506
|
+
cardShadowPx: 20,
|
|
4507
|
+
// Figma video-card drop shadow: solid core + soft outer glow.
|
|
4508
|
+
// Verified against pixelPerfectNewReactCode_emeraldLight: single solid shadow.
|
|
4509
|
+
videoShadowLight: "0px 4px 66.3px 0px #0C3726",
|
|
4510
|
+
// Verified against pixelPerfectNewReactCode dark-mode export: single solid shadow.
|
|
4511
|
+
videoShadowDark: "0px 4px 66.3px 14px #0C3726",
|
|
4512
|
+
// Figma CC/HD badges are fixed literals here, not primary/secondary-derived like Corporate's.
|
|
4513
|
+
ccBadge: "#14b8a6",
|
|
4514
|
+
hdBadge: "#f59e0b"
|
|
4490
4515
|
}
|
|
4491
4516
|
},
|
|
4492
4517
|
{
|
|
4493
4518
|
id: "indigo",
|
|
4494
4519
|
name: "Indigo Violet",
|
|
4495
4520
|
snap: {
|
|
4496
|
-
primaryHex: "#
|
|
4497
|
-
secondaryHex: "#
|
|
4498
|
-
iconColor: "#
|
|
4499
|
-
|
|
4500
|
-
cardHeader: "accent",
|
|
4501
|
-
highlightHex: "#7C3AED",
|
|
4521
|
+
primaryHex: "#A97BFF",
|
|
4522
|
+
secondaryHex: "#FF5FA2",
|
|
4523
|
+
iconColor: "#A97BFF",
|
|
4524
|
+
highlightHex: "#A97BFF",
|
|
4502
4525
|
cardStyle: "floating",
|
|
4503
|
-
cardShadowPx: 20
|
|
4526
|
+
cardShadowPx: 20,
|
|
4527
|
+
// Figma video-card drop shadow: solid core + soft outer glow.
|
|
4528
|
+
videoShadowLight: "0 0 33px 0px #F50079, 0 0 44px 12px rgba(169, 123, 255, 0.20)",
|
|
4529
|
+
videoShadowDark: "0 0 20px 0 #9F0087, 0 0 44px 12px rgba(255, 95, 162, 0.32)"
|
|
4504
4530
|
}
|
|
4505
4531
|
},
|
|
4506
4532
|
{ id: "slate", name: "Graphite", snap: { primaryHex: "#455a64", secondaryHex: "#78909c", iconColor: "#455a64", cardStyle: "floating", cardShadowPx: 16 } },
|
|
@@ -4518,7 +4544,7 @@ function Qs() {
|
|
|
4518
4544
|
const w = setTimeout(() => z(""), 5e3);
|
|
4519
4545
|
return () => clearTimeout(w);
|
|
4520
4546
|
}, [R]);
|
|
4521
|
-
const [
|
|
4547
|
+
const [B, X] = Z(null), Q = (w) => {
|
|
4522
4548
|
const O = c.map((W) => W.name.toLowerCase());
|
|
4523
4549
|
let F = w, E = 2;
|
|
4524
4550
|
for (; O.includes(F.toLowerCase()); ) F = `${w} ${E++}`;
|
|
@@ -4545,7 +4571,7 @@ function Qs() {
|
|
|
4545
4571
|
z("Invalid theme file. The selected file is not a valid Theme Studio export.");
|
|
4546
4572
|
}
|
|
4547
4573
|
}, F.readAsText(O), w.target.value = "";
|
|
4548
|
-
}, [d,
|
|
4574
|
+
}, [d, I] = 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) => {
|
|
4549
4575
|
const F = w.trim();
|
|
4550
4576
|
return F ? c.some((E) => E.name.toLowerCase() === F.toLowerCase() && E.id !== O) ? "Name already exists" : "" : "Name required";
|
|
4551
4577
|
};
|
|
@@ -4616,7 +4642,7 @@ function Qs() {
|
|
|
4616
4642
|
] }),
|
|
4617
4643
|
/* @__PURE__ */ i(S, { component: "span", sx: { flex: 1, minWidth: 0, fontSize: "11px", fontWeight: 600, color: O ? a : l, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "normal" }, children: w.name }),
|
|
4618
4644
|
/* @__PURE__ */ i(S, { sx: { display: "flex", alignItems: "center", justifyContent: "flex-end" }, children: /* @__PURE__ */ i(S, { component: "span", onClick: (F) => {
|
|
4619
|
-
F.stopPropagation(),
|
|
4645
|
+
F.stopPropagation(), I({ el: F.currentTarget, id: w.id });
|
|
4620
4646
|
}, sx: { cursor: "pointer", color: "text.muted", px: 0.5 }, children: "⋮" }) })
|
|
4621
4647
|
] })
|
|
4622
4648
|
]
|
|
@@ -4641,22 +4667,22 @@ function Qs() {
|
|
|
4641
4667
|
] }),
|
|
4642
4668
|
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)) })
|
|
4643
4669
|
] }),
|
|
4644
|
-
/* @__PURE__ */ p(ti, { open: !!d, anchorEl: d == null ? void 0 : d.el, onClose: () =>
|
|
4670
|
+
/* @__PURE__ */ p(ti, { open: !!d, anchorEl: d == null ? void 0 : d.el, onClose: () => I(null), children: [
|
|
4645
4671
|
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4646
4672
|
const w = c.find((O) => O.id === d.id);
|
|
4647
|
-
f(w),
|
|
4673
|
+
f(w), I(null);
|
|
4648
4674
|
}, children: "✏️ Edit" }),
|
|
4649
4675
|
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4650
4676
|
const w = c.find((O) => O.id === d.id);
|
|
4651
|
-
J({ id: w.id, name: w.name }),
|
|
4677
|
+
J({ id: w.id, name: w.name }), I(null);
|
|
4652
4678
|
}, children: "✎ Rename" }),
|
|
4653
4679
|
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4654
4680
|
const w = c.find((O) => O.id === d.id);
|
|
4655
|
-
D({ id: w.id, name: w.name }),
|
|
4681
|
+
D({ id: w.id, name: w.name }), I(null);
|
|
4656
4682
|
}, children: "🗑 Delete" }),
|
|
4657
4683
|
/* @__PURE__ */ i(mt, { onClick: () => {
|
|
4658
4684
|
const w = c.find((O) => O.id === d.id);
|
|
4659
|
-
k(w.name, w.snap),
|
|
4685
|
+
k(w.name, w.snap), I(null);
|
|
4660
4686
|
}, children: "⤓ Download" })
|
|
4661
4687
|
] }),
|
|
4662
4688
|
/* @__PURE__ */ p(yt, { open: A, onClose: () => L(!1), children: [
|
|
@@ -4711,11 +4737,11 @@ function Qs() {
|
|
|
4711
4737
|
}, children: "Rename" })
|
|
4712
4738
|
] })
|
|
4713
4739
|
] }),
|
|
4714
|
-
/* @__PURE__ */ p(yt, { open: !!
|
|
4740
|
+
/* @__PURE__ */ p(yt, { open: !!B, onClose: () => X(null), children: [
|
|
4715
4741
|
/* @__PURE__ */ i(Wt, { children: "Theme already exists" }),
|
|
4716
4742
|
/* @__PURE__ */ i(zt, { children: /* @__PURE__ */ p(ue, { variant: "body2", children: [
|
|
4717
4743
|
"A theme named “",
|
|
4718
|
-
|
|
4744
|
+
B == null ? void 0 : B.name,
|
|
4719
4745
|
"” is already in My Themes. Upload it anyway as a copy?"
|
|
4720
4746
|
] }) }),
|
|
4721
4747
|
/* @__PURE__ */ p(_t, { children: [
|
|
@@ -4723,7 +4749,7 @@ function Qs() {
|
|
|
4723
4749
|
X(null), z("You’ve selected a duplicate file — it already exists.");
|
|
4724
4750
|
}, children: "Cancel" }),
|
|
4725
4751
|
/* @__PURE__ */ i(ke, { variant: "contained", onClick: () => {
|
|
4726
|
-
u(Q(
|
|
4752
|
+
u(Q(B.name), B.snap), X(null);
|
|
4727
4753
|
}, children: "Yes, continue" })
|
|
4728
4754
|
] })
|
|
4729
4755
|
] }),
|
|
@@ -4936,18 +4962,18 @@ function rl() {
|
|
|
4936
4962
|
] });
|
|
4937
4963
|
}
|
|
4938
4964
|
function xe(e) {
|
|
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,
|
|
4965
|
+
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, B] = Z(String(o)), [X, Q] = Z(""), Y = Te(void 0);
|
|
4940
4966
|
_e(() => {
|
|
4941
|
-
k ||
|
|
4967
|
+
k || B(String(o));
|
|
4942
4968
|
}, [o, k]), _e(() => () => clearTimeout(Y.current), []);
|
|
4943
4969
|
const d = (K) => {
|
|
4944
4970
|
clearTimeout(Y.current), Q(K), K && (Y.current = setTimeout(() => Q(""), 3e3));
|
|
4945
|
-
},
|
|
4946
|
-
d(u ?? `Minimum is ${x}${c} — reset`), v(x),
|
|
4971
|
+
}, I = (K) => m != null && K < m ? `Below ${m}${c} may break the UI` : y != null && K > y ? `Above ${y}${c} may break the UI` : "", A = () => {
|
|
4972
|
+
d(u ?? `Minimum is ${x}${c} — reset`), v(x), B(String(x));
|
|
4947
4973
|
}, L = (K) => {
|
|
4948
4974
|
const U = parseFloat(K);
|
|
4949
4975
|
if (isNaN(U)) {
|
|
4950
|
-
d("Enter a number"),
|
|
4976
|
+
d("Enter a number"), B(String(o));
|
|
4951
4977
|
return;
|
|
4952
4978
|
}
|
|
4953
4979
|
if (h != null && x != null && U <= h) {
|
|
@@ -4955,7 +4981,7 @@ function xe(e) {
|
|
|
4955
4981
|
return;
|
|
4956
4982
|
}
|
|
4957
4983
|
const J = Math.min(a, Math.max(s, U));
|
|
4958
|
-
d(J !== U ? `Must be between ${s}${c} and ${a}${c} — clamped to ${J}${c}` :
|
|
4984
|
+
d(J !== U ? `Must be between ${s}${c} and ${a}${c} — clamped to ${J}${c}` : I(J)), B(String(J)), v(J);
|
|
4959
4985
|
}, N = n === f && g ? g : `${o}${c}`;
|
|
4960
4986
|
return /* @__PURE__ */ p(S, { sx: { mb: 1.5 }, children: [
|
|
4961
4987
|
/* @__PURE__ */ p(S, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: "8px" }, children: [
|
|
@@ -4969,7 +4995,7 @@ function xe(e) {
|
|
|
4969
4995
|
{
|
|
4970
4996
|
autoFocus: !0,
|
|
4971
4997
|
value: z,
|
|
4972
|
-
onChange: (K) =>
|
|
4998
|
+
onChange: (K) => B(K.target.value),
|
|
4973
4999
|
onBlur: () => {
|
|
4974
5000
|
L(z), R(!1);
|
|
4975
5001
|
},
|
|
@@ -4985,7 +5011,7 @@ function xe(e) {
|
|
|
4985
5011
|
{
|
|
4986
5012
|
component: "button",
|
|
4987
5013
|
onClick: () => {
|
|
4988
|
-
|
|
5014
|
+
B(String(o)), R(!0);
|
|
4989
5015
|
},
|
|
4990
5016
|
sx: { display: "inline-flex", alignItems: "center", gap: "5px", fontFamily: C, fontSize: `${H.tBodySm}px`, fontWeight: 800, color: $.body, bgcolor: "rgba(130,140,155,0.14)", border: "1px solid rgba(130,140,155,0.28)", borderRadius: "6px", px: "7px", py: "2px", cursor: "pointer", lineHeight: 1.3, "&:hover": { bgcolor: "rgba(130,140,155,0.24)" } },
|
|
4991
5017
|
children: [
|
|
@@ -5016,7 +5042,7 @@ function xe(e) {
|
|
|
5016
5042
|
A();
|
|
5017
5043
|
return;
|
|
5018
5044
|
}
|
|
5019
|
-
d(
|
|
5045
|
+
d(I(U)), v(U);
|
|
5020
5046
|
},
|
|
5021
5047
|
sx: {
|
|
5022
5048
|
WebkitAppearance: "none",
|
|
@@ -5129,8 +5155,8 @@ function Wn({ label: e, list: r, onAdd: t }) {
|
|
|
5129
5155
|
b.push(H.name);
|
|
5130
5156
|
continue;
|
|
5131
5157
|
}
|
|
5132
|
-
const k = H.name.replace(/\.[^.]+$/, ""), R = (
|
|
5133
|
-
if (r.some((
|
|
5158
|
+
const k = H.name.replace(/\.[^.]+$/, ""), R = (B) => B.toLowerCase() === k.toLowerCase();
|
|
5159
|
+
if (r.some((B) => R(B.name)) || y.some((B) => R(B.name))) {
|
|
5134
5160
|
h.push(k);
|
|
5135
5161
|
continue;
|
|
5136
5162
|
}
|
|
@@ -5534,9 +5560,9 @@ function bl({ src: e, aspect: r, onCancel: t, onConfirm: n }) {
|
|
|
5534
5560
|
n(e);
|
|
5535
5561
|
return;
|
|
5536
5562
|
}
|
|
5537
|
-
const z = u.getBoundingClientRect(),
|
|
5563
|
+
const z = u.getBoundingClientRect(), B = (z.left - v.left) * C, X = (z.top - v.top) * C, Q = z.width * C, Y = z.height * C;
|
|
5538
5564
|
try {
|
|
5539
|
-
R.drawImage(u,
|
|
5565
|
+
R.drawImage(u, B, X, Q, Y), n(k.toDataURL("image/png"));
|
|
5540
5566
|
} catch {
|
|
5541
5567
|
n(e);
|
|
5542
5568
|
}
|
|
@@ -5545,7 +5571,7 @@ function bl({ src: e, aspect: r, onCancel: t, onConfirm: n }) {
|
|
|
5545
5571
|
/* @__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: [
|
|
5546
5572
|
/* @__PURE__ */ i(ue, { sx: { fontSize: 14, fontWeight: 800, mb: 0.5 }, children: "Adjust brand image" }),
|
|
5547
5573
|
/* @__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." }),
|
|
5548
|
-
/* @__PURE__ */ p(S, { ref: c, onPointerDown: y, sx: { position: "relative", width: "100%", aspectRatio:
|
|
5574
|
+
/* @__PURE__ */ p(S, { ref: c, onPointerDown: y, sx: { position: "relative", width: "100%", aspectRatio: String(r), borderRadius: 2.5, overflow: "hidden", bgcolor: "#e9edf2", cursor: "grab", touchAction: "none", display: "grid", placeItems: "center", "&:active": { cursor: "grabbing" } }, children: [
|
|
5549
5575
|
/* @__PURE__ */ i("img", { ref: g, src: e, alt: "", draggable: !1, style: { position: "absolute", left: "50%", top: "50%", transform: `translate(-50%,-50%) translate(${a.x}px,${a.y}px) scale(${o})`, transformOrigin: "center", maxWidth: "100%", maxHeight: "100%", width: "auto", height: "auto", userSelect: "none", pointerEvents: "none" } }),
|
|
5550
5576
|
/* @__PURE__ */ i(S, { ref: f, sx: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-50%)", height: "72%", aspectRatio: String(r), maxWidth: "90%", boxShadow: "0 0 0 9999px rgba(10,15,25,.62)", border: "2px solid #fff", borderRadius: "3px", pointerEvents: "none" } })
|
|
5551
5577
|
] }),
|
|
@@ -5634,7 +5660,7 @@ function Cl({ onClose: e }) {
|
|
|
5634
5660
|
/* @__PURE__ */ i("circle", { cx: "8.5", cy: "7.5", r: "2.5" }),
|
|
5635
5661
|
/* @__PURE__ */ i("circle", { cx: "6.5", cy: "12.5", r: "2.5" }),
|
|
5636
5662
|
/* @__PURE__ */ i("path", { d: "M12 2a10 10 0 0 0 0 20 3 3 0 0 0 0-6 2 2 0 0 1 0-4 4 4 0 0 0 4-4 6 6 0 0 0-4-6z" })
|
|
5637
|
-
] }),
|
|
5663
|
+
] }), B = /* @__PURE__ */ p(S, { sx: { display: "flex", gap: "2px", width: 14, height: 14 }, children: [
|
|
5638
5664
|
/* @__PURE__ */ i(S, { sx: { flex: 1, background: l.secondaryHex, borderRadius: "2px" } }),
|
|
5639
5665
|
/* @__PURE__ */ i(S, { sx: { flex: 1, background: l.errorHex, borderRadius: "2px" } }),
|
|
5640
5666
|
/* @__PURE__ */ i(S, { sx: { flex: 1, background: l.successHex, borderRadius: "2px" } })
|
|
@@ -5647,7 +5673,7 @@ function Cl({ onClose: e }) {
|
|
|
5647
5673
|
] }), Y = /* @__PURE__ */ p(R, { children: [
|
|
5648
5674
|
/* @__PURE__ */ i("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
5649
5675
|
/* @__PURE__ */ i("path", { d: "M3 9h18M3 15h18M9 3v18" })
|
|
5650
|
-
] }), d = /* @__PURE__ */ i(R, { children: /* @__PURE__ */ i("rect", { x: "4", y: "4", width: "16", height: "16", rx: "4" }) }),
|
|
5676
|
+
] }), d = /* @__PURE__ */ i(R, { children: /* @__PURE__ */ i("rect", { x: "4", y: "4", width: "16", height: "16", rx: "4" }) }), I = /* @__PURE__ */ p(ge, { children: [
|
|
5651
5677
|
/* @__PURE__ */ p(R, { children: [
|
|
5652
5678
|
/* @__PURE__ */ i("path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }),
|
|
5653
5679
|
/* @__PURE__ */ i("path", { d: "M10 21a2 2 0 0 0 4 0" })
|
|
@@ -5668,12 +5694,12 @@ function Cl({ onClose: e }) {
|
|
|
5668
5694
|
login: `${D[l.loginLayout] ?? ""}${l.loginImage ? " · image" : ""}`
|
|
5669
5695
|
}, G = [
|
|
5670
5696
|
{ 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:
|
|
5697
|
+
{ id: "color", title: "Colour Settings", info: "Brand, text & status colours.", icon: B, screen: "components", body: /* @__PURE__ */ i(rl, {}) },
|
|
5672
5698
|
{ id: "type", title: "Typography", info: "Fonts, sizes, weight & line-height.", icon: X, screen: "components", body: /* @__PURE__ */ i(pl, {}) },
|
|
5673
5699
|
{ id: "cards", title: "Cards", info: "Card style, header, nesting & tint.", icon: Q, screen: "dashboard", body: /* @__PURE__ */ i(fl, {}) },
|
|
5674
5700
|
{ id: "tables", title: "Tables", info: "Row/column density, dividers & alignment.", icon: Y, screen: "orders", body: /* @__PURE__ */ i(hl, {}) },
|
|
5675
5701
|
{ 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:
|
|
5702
|
+
{ id: "notif", title: "Notifications", info: "Toast placement & behaviour.", icon: I, screen: "operations", body: /* @__PURE__ */ i(ml, {}) },
|
|
5677
5703
|
{ id: "login", title: "Login Screen", info: "Brand image, logo & panel colour.", icon: A, screen: "login", body: /* @__PURE__ */ i(xl, {}) }
|
|
5678
5704
|
];
|
|
5679
5705
|
return /* @__PURE__ */ p(S, { sx: { display: "flex", flexDirection: "column", bgcolor: h.card }, children: [
|
|
@@ -5751,7 +5777,7 @@ function Cl({ onClose: e }) {
|
|
|
5751
5777
|
] })
|
|
5752
5778
|
] });
|
|
5753
5779
|
}
|
|
5754
|
-
const wl =
|
|
5780
|
+
const wl = Bt(/* @__PURE__ */ i("path", {
|
|
5755
5781
|
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"
|
|
5756
5782
|
}), "DesktopWindowsOutlined");
|
|
5757
5783
|
function Gr(e, r, t) {
|
|
@@ -5794,7 +5820,7 @@ function uo(e, r, t) {
|
|
|
5794
5820
|
}
|
|
5795
5821
|
const kl = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"], Tl = [44, 60, 50, 74, 88, 96], Rl = [24, 32, 30, 42, 52, 60];
|
|
5796
5822
|
function El() {
|
|
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:
|
|
5823
|
+
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: B, sMain: X } = e, Q = x + ",sans-serif", Y = r.fontFamily + ",sans-serif", d = e.hc1 || t.textPrimary, I = e.hc2 || t.textPrimary, A = e.hc3 || t.textPrimary, L = [
|
|
5798
5824
|
{ label: "Revenue", val: "$2.41M", chg: "+12.5%", up: !0 },
|
|
5799
5825
|
{ label: "Open Orders", val: "1,284", chg: "+3.2%", up: !0 },
|
|
5800
5826
|
{ label: "Inventory", val: "8,540", chg: "-1.8%", up: !1 },
|
|
@@ -5833,7 +5859,7 @@ function El() {
|
|
|
5833
5859
|
] }),
|
|
5834
5860
|
/* @__PURE__ */ i("div", { style: { padding: s, display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: l }, children: L.map((M) => /* @__PURE__ */ p("div", { style: { background: t.paper2, border: e.nestBorder, borderRadius: o, boxShadow: e.nestShadow, padding: a }, children: [
|
|
5835
5861
|
/* @__PURE__ */ i("div", { style: { fontSize: y, color: t.textSecondary, fontWeight: h, fontFamily: Q, textTransform: "uppercase", letterSpacing: ".6px", marginBottom: 8 }, children: M.label }),
|
|
5836
|
-
/* @__PURE__ */ i("div", { style: { fontSize: f, fontWeight: h, color:
|
|
5862
|
+
/* @__PURE__ */ i("div", { style: { fontSize: f, fontWeight: h, color: I, letterSpacing: "-.8px", lineHeight: 1, marginBottom: 6 }, children: M.val }),
|
|
5837
5863
|
/* @__PURE__ */ p("span", { style: { fontSize: z, fontWeight: H, color: M.cc, background: M.cb, padding: "3px 9px", borderRadius: 999 }, children: [
|
|
5838
5864
|
M.arrow,
|
|
5839
5865
|
" ",
|
|
@@ -5845,7 +5871,7 @@ function El() {
|
|
|
5845
5871
|
/* @__PURE__ */ p("div", { style: { ...q, display: "flex", flexDirection: "column", minHeight: 0 }, children: [
|
|
5846
5872
|
/* @__PURE__ */ p("div", { style: V, children: [
|
|
5847
5873
|
/* @__PURE__ */ i("span", { style: G, children: "Revenue Trend" }),
|
|
5848
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", gap: 12 }, children: [["Revenue",
|
|
5874
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", gap: 12 }, children: [["Revenue", B], ["Profit", X]].map(([M, w]) => /* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 5 }, children: [
|
|
5849
5875
|
/* @__PURE__ */ i("div", { style: { width: 10, height: 10, borderRadius: 2, background: w } }),
|
|
5850
5876
|
/* @__PURE__ */ i("span", { style: { fontSize: z, color: t.textSecondary }, children: M })
|
|
5851
5877
|
] }, M)) })
|
|
@@ -5853,7 +5879,7 @@ function El() {
|
|
|
5853
5879
|
/* @__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: [
|
|
5854
5880
|
/* @__PURE__ */ p("div", { style: { width: "100%", display: "flex", flexDirection: "column", justifyContent: "flex-end", gap: 3, flex: 1 }, children: [
|
|
5855
5881
|
/* @__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:
|
|
5882
|
+
/* @__PURE__ */ i("div", { style: { width: "100%", height: Tl[w] + "%", background: B, borderRadius: `${o} ${o} 0 0` } })
|
|
5857
5883
|
] }),
|
|
5858
5884
|
/* @__PURE__ */ i("span", { style: { fontSize: z, color: t.textSecondary }, children: M })
|
|
5859
5885
|
] }, M)) })
|
|
@@ -5891,23 +5917,23 @@ const Hl = [
|
|
|
5891
5917
|
{ id: "ORD-1027", cust: "Bluth Company", status: "Processing", amt: "$6,410", date: "Jun 03" }
|
|
5892
5918
|
], Pr = "100px 1fr 120px 100px 80px 70px";
|
|
5893
5919
|
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:
|
|
5920
|
+
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: B } = e, X = m + ",sans-serif", Q = r.fontFamily + ",sans-serif", Y = e.hc1 || t.textPrimary, [d, I, A] = uo(12, 3, 16), L = Hl.slice(0, A).map((J, P) => ({
|
|
5895
5921
|
...J,
|
|
5896
|
-
...
|
|
5897
|
-
rowBg: r.tableStripe && P % 2 === 1 ?
|
|
5922
|
+
...B.statusMap[J.status] || { sb: t.divider, sc: t.textSecondary },
|
|
5923
|
+
rowBg: r.tableStripe && P % 2 === 1 ? B.stripeBg : "transparent"
|
|
5898
5924
|
})), N = e.cardBorder === "none" ? "none" : e.cardBorder, K = (J) => ({
|
|
5899
5925
|
fontSize: H,
|
|
5900
5926
|
fontWeight: C,
|
|
5901
5927
|
color: t.textSecondary,
|
|
5902
5928
|
textTransform: "uppercase",
|
|
5903
5929
|
letterSpacing: ".5px",
|
|
5904
|
-
borderRight:
|
|
5930
|
+
borderRight: B.colBorder,
|
|
5905
5931
|
alignSelf: "stretch",
|
|
5906
5932
|
display: "flex",
|
|
5907
|
-
alignItems:
|
|
5908
|
-
justifyContent:
|
|
5909
|
-
padding: `${
|
|
5910
|
-
}), U = { alignSelf: "stretch", display: "flex", alignItems:
|
|
5933
|
+
alignItems: B.cellAI,
|
|
5934
|
+
justifyContent: B.cellJC,
|
|
5935
|
+
padding: `${B.rowPy} ${B.cellPx}`
|
|
5936
|
+
}), U = { alignSelf: "stretch", display: "flex", alignItems: B.cellAI, justifyContent: B.cellJC, padding: `${B.rowPy} ${B.cellPx}` };
|
|
5911
5937
|
return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", background: t.paper, border: N, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", fontFamily: Q, fontWeight: R, color: t.textPrimary }, children: [
|
|
5912
5938
|
/* @__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: [
|
|
5913
5939
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -5922,22 +5948,22 @@ function Pl() {
|
|
|
5922
5948
|
/* @__PURE__ */ i("span", { style: { color: t.textSecondary, fontSize: 13 }, children: "⌕" }),
|
|
5923
5949
|
/* @__PURE__ */ i("span", { style: { fontSize: v, color: t.textSecondary }, children: "Search orders…" })
|
|
5924
5950
|
] }),
|
|
5925
|
-
|
|
5951
|
+
B.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))
|
|
5926
5952
|
] }),
|
|
5927
|
-
/* @__PURE__ */ p("div", { ref: d, style: { display: "grid", gridTemplateColumns: Pr, padding: `0 ${s}px`, borderBottom:
|
|
5953
|
+
/* @__PURE__ */ p("div", { ref: d, style: { display: "grid", gridTemplateColumns: Pr, padding: `0 ${s}px`, borderBottom: B.rowBorder, background: B.headBg }, children: [
|
|
5928
5954
|
["Order ID", "Customer", "Status", "Amount", "Date"].map((J) => /* @__PURE__ */ i("div", { style: K(), children: J }, J)),
|
|
5929
|
-
/* @__PURE__ */ i("div", { style: { alignSelf: "stretch", padding: `${
|
|
5955
|
+
/* @__PURE__ */ i("div", { style: { alignSelf: "stretch", padding: `${B.rowPy} 0` } })
|
|
5930
5956
|
] }),
|
|
5931
|
-
/* @__PURE__ */ p("div", { ref:
|
|
5957
|
+
/* @__PURE__ */ p("div", { ref: I, style: { position: "relative", display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
5932
5958
|
/* @__PURE__ */ p("div", { style: { position: "absolute", inset: 0, padding: `0 ${s}px`, display: "grid", gridTemplateColumns: Pr, pointerEvents: "none", zIndex: 2 }, children: [
|
|
5933
|
-
/* @__PURE__ */ i("div", { style: { borderRight:
|
|
5934
|
-
/* @__PURE__ */ i("div", { style: { borderRight:
|
|
5935
|
-
/* @__PURE__ */ i("div", { style: { borderRight:
|
|
5936
|
-
/* @__PURE__ */ i("div", { style: { borderRight:
|
|
5937
|
-
/* @__PURE__ */ i("div", { style: { borderRight:
|
|
5959
|
+
/* @__PURE__ */ i("div", { style: { borderRight: B.colBorder } }),
|
|
5960
|
+
/* @__PURE__ */ i("div", { style: { borderRight: B.colBorder } }),
|
|
5961
|
+
/* @__PURE__ */ i("div", { style: { borderRight: B.colBorder } }),
|
|
5962
|
+
/* @__PURE__ */ i("div", { style: { borderRight: B.colBorder } }),
|
|
5963
|
+
/* @__PURE__ */ i("div", { style: { borderRight: B.colBorder } }),
|
|
5938
5964
|
/* @__PURE__ */ i("div", {})
|
|
5939
5965
|
] }),
|
|
5940
|
-
L.map((J) => /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: Pr, padding: `0 ${s}px`, borderBottom:
|
|
5966
|
+
L.map((J) => /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: Pr, padding: `0 ${s}px`, borderBottom: B.rowBorder, alignItems: "stretch", background: J.rowBg }, children: [
|
|
5941
5967
|
/* @__PURE__ */ i("div", { style: { ...U, fontSize: v, fontWeight: C, color: z, fontFamily: Q }, children: J.id }),
|
|
5942
5968
|
/* @__PURE__ */ i("div", { style: { ...U, fontSize: b, color: t.textPrimary, fontWeight: C }, children: J.cust }),
|
|
5943
5969
|
/* @__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 }) }),
|
|
@@ -5984,12 +6010,12 @@ function $l() {
|
|
|
5984
6010
|
accentBg: k,
|
|
5985
6011
|
btnText: R,
|
|
5986
6012
|
btnShadow: z,
|
|
5987
|
-
bwEmph:
|
|
6013
|
+
bwEmph: B,
|
|
5988
6014
|
btnCase: X,
|
|
5989
6015
|
bodyWeightEff: Q,
|
|
5990
6016
|
bodyLH: Y,
|
|
5991
6017
|
pMain: d,
|
|
5992
|
-
errSoft:
|
|
6018
|
+
errSoft: I,
|
|
5993
6019
|
errTxt: A,
|
|
5994
6020
|
warnSoft: L,
|
|
5995
6021
|
warnTxt: N,
|
|
@@ -5997,7 +6023,7 @@ function $l() {
|
|
|
5997
6023
|
infoTxt: U,
|
|
5998
6024
|
sucSoft: J,
|
|
5999
6025
|
sucTxt: P
|
|
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 },
|
|
6026
|
+
} = 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 }, Be = { fontSize: m, lineHeight: C, fontWeight: $, color: te, fontFamily: D }, fr = [
|
|
6001
6027
|
{ label: "Dashboard Overview", size: g, w: $, color: E, lh: 1.1, ls: "-.5px", name: "H1", border: !0 },
|
|
6002
6028
|
{ label: "Revenue Report", size: f, w: $, color: W, lh: 1.1, ls: "-.4px", name: "H2", border: !0 },
|
|
6003
6029
|
{ label: "Performance Overview", size: m, w: $, color: te, lh: 1.15, name: "H3", border: !0 },
|
|
@@ -6006,21 +6032,21 @@ function $l() {
|
|
|
6006
6032
|
{ label: "Status · Live", size: x, w: $, color: Ne, lh: 1.3, name: "H6", border: !0 }
|
|
6007
6033
|
], Ve = (ee) => /* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 10, padding: "11px 12px", borderBottom: "1px solid " + t.divider, background: ee ? G : "transparent", boxShadow: ee ? "inset 3px 0 0 " + V : "none" }, children: [
|
|
6008
6034
|
/* @__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 } }) }),
|
|
6009
|
-
/* @__PURE__ */ i("span", { style: { flex: 1, fontSize: b, fontFamily: q, fontWeight: ee ?
|
|
6010
|
-
ee && /* @__PURE__ */ i("span", { style: { fontSize: v, fontFamily: q, fontWeight:
|
|
6011
|
-
] }),
|
|
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 ?
|
|
6035
|
+
/* @__PURE__ */ i("span", { style: { flex: 1, fontSize: b, fontFamily: q, fontWeight: ee ? B : Q, color: t.textPrimary }, children: ee ? "Selected item" : "Unselected item" }),
|
|
6036
|
+
ee && /* @__PURE__ */ i("span", { style: { fontSize: v, fontFamily: q, fontWeight: B, color: t.textSecondary }, children: "Active" })
|
|
6037
|
+
] }), It = (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: [
|
|
6038
|
+
/* @__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 ? B : void 0 }, children: St }),
|
|
6013
6039
|
/* @__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:
|
|
6040
|
+
] }), et = (ee, St, Ct) => /* @__PURE__ */ i("span", { style: { padding: "5px 13px", borderRadius: 999, background: ee, color: St, fontSize: v, fontWeight: B }, children: Ct }), Ue = (ee) => ({ padding: "9px 20px", borderRadius: o, fontSize: b, fontWeight: B, textTransform: X, letterSpacing: ".4px", cursor: "pointer", ...ee });
|
|
6015
6041
|
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: [
|
|
6016
6042
|
/* @__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: [
|
|
6017
6043
|
/* @__PURE__ */ i("div", { style: { fontSize: g, lineHeight: C, fontWeight: $, color: E, letterSpacing: "-.3px", fontFamily: D }, children: "Component Library" }),
|
|
6018
|
-
/* @__PURE__ */ i("span", { title: "Every Material UI component reflects your live theme", style: { width: 16, height: 16, borderRadius: "50%", border: "1.2px solid " + t.textSecondary, color: t.textSecondary, fontSize: 9.5, fontWeight:
|
|
6044
|
+
/* @__PURE__ */ i("span", { title: "Every Material UI component reflects your live theme", style: { width: 16, height: 16, borderRadius: "50%", border: "1.2px solid " + t.textSecondary, color: t.textSecondary, fontSize: 9.5, fontWeight: B, fontStyle: "italic", fontFamily: "Georgia,serif", display: "grid", placeItems: "center", flexShrink: 0, cursor: "help" }, children: "i" })
|
|
6019
6045
|
] }) }),
|
|
6020
6046
|
/* @__PURE__ */ p("div", { style: { padding: c, background: t.bgDefault, display: "flex", flexDirection: "column", gap: l, flex: 1, minHeight: 0 }, children: [
|
|
6021
6047
|
/* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: l, alignItems: "stretch" }, children: [
|
|
6022
6048
|
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6023
|
-
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style:
|
|
6049
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Be, children: "Typography Scale" }) }),
|
|
6024
6050
|
/* @__PURE__ */ p("div", { style: { padding: s, display: "flex", flexDirection: "column", justifyContent: "space-between", flex: 1, minHeight: 0, gap: 6 }, children: [
|
|
6025
6051
|
fr.map((ee) => /* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "baseline", justifyContent: "space-between", gap: 12, borderBottom: "1px solid " + t.divider, paddingBottom: 14 }, children: [
|
|
6026
6052
|
/* @__PURE__ */ i("span", { style: { fontSize: ee.size, lineHeight: ee.lh, fontWeight: ee.w, color: ee.color, fontFamily: D, letterSpacing: ee.ls }, children: ee.label }),
|
|
@@ -6047,12 +6073,12 @@ function $l() {
|
|
|
6047
6073
|
] })
|
|
6048
6074
|
] }),
|
|
6049
6075
|
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6050
|
-
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style:
|
|
6076
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Be, children: "Selection States" }) }),
|
|
6051
6077
|
/* @__PURE__ */ p("div", { style: { padding: s, display: "flex", flexDirection: "column", gap: 14 }, children: [
|
|
6052
6078
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 2, borderBottom: "1.5px solid " + t.divider }, children: [
|
|
6053
|
-
/* @__PURE__ */ i("div", { style: { flex: 1, textAlign: "center", padding: "8px 4px", fontSize: b, fontWeight:
|
|
6054
|
-
/* @__PURE__ */ i("div", { style: { flex: 1, textAlign: "center", padding: "8px 4px", fontSize: b, fontWeight:
|
|
6055
|
-
/* @__PURE__ */ i("div", { style: { flex: 1, textAlign: "center", padding: "8px 4px", fontSize: b, fontWeight:
|
|
6079
|
+
/* @__PURE__ */ i("div", { style: { flex: 1, textAlign: "center", padding: "8px 4px", fontSize: b, fontWeight: B, color: t.textPrimary, background: G, borderBottom: "2.5px solid " + d, marginBottom: -1.5, borderRadius: "6px 6px 0 0" }, children: "Overview" }),
|
|
6080
|
+
/* @__PURE__ */ i("div", { style: { flex: 1, textAlign: "center", padding: "8px 4px", fontSize: b, fontWeight: B, color: t.textSecondary }, children: "Activity" }),
|
|
6081
|
+
/* @__PURE__ */ i("div", { style: { flex: 1, textAlign: "center", padding: "8px 4px", fontSize: b, fontWeight: B, color: t.textSecondary }, children: "Settings" })
|
|
6056
6082
|
] }),
|
|
6057
6083
|
/* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", border: "1px solid " + t.divider, borderRadius: o, overflow: "hidden" }, children: [
|
|
6058
6084
|
Ve(!0),
|
|
@@ -6062,20 +6088,20 @@ function $l() {
|
|
|
6062
6088
|
Ve(!0),
|
|
6063
6089
|
Ve(!1)
|
|
6064
6090
|
] }),
|
|
6065
|
-
/* @__PURE__ */ i("div", { style: { display: "inline-flex", alignSelf: "flex-start", padding: "6px 12px", borderRadius: o, background: G, border: "1px solid " + M }, children: /* @__PURE__ */ i("span", { style: { fontSize: v, fontWeight:
|
|
6091
|
+
/* @__PURE__ */ i("div", { style: { display: "inline-flex", alignSelf: "flex-start", padding: "6px 12px", borderRadius: o, background: G, border: "1px solid " + M }, children: /* @__PURE__ */ i("span", { style: { fontSize: v, fontWeight: B, color: V }, children: "2 selected items" }) })
|
|
6066
6092
|
] })
|
|
6067
6093
|
] })
|
|
6068
6094
|
] }),
|
|
6069
6095
|
/* @__PURE__ */ p("div", { style: { ...Qe, height: "auto" }, children: [
|
|
6070
|
-
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style:
|
|
6096
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Be, children: "Inputs & Selection" }) }),
|
|
6071
6097
|
/* @__PURE__ */ p("div", { style: { padding: s }, children: [
|
|
6072
6098
|
/* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: l, marginBottom: l }, children: [
|
|
6073
|
-
|
|
6074
|
-
|
|
6099
|
+
It(!1, "Outlined", "Placeholder…"),
|
|
6100
|
+
It(!0, "Focused", "Active value")
|
|
6075
6101
|
] }),
|
|
6076
6102
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 22, alignItems: "center", flexWrap: "wrap", paddingTop: a, borderTop: "1px solid " + t.divider }, children: [
|
|
6077
6103
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
6078
|
-
/* @__PURE__ */ i("div", { style: { width: 18, height: 18, borderRadius: 4, background: d, display: "grid", placeItems: "center", color: F, fontSize: 11, fontWeight:
|
|
6104
|
+
/* @__PURE__ */ i("div", { style: { width: 18, height: 18, borderRadius: 4, background: d, display: "grid", placeItems: "center", color: F, fontSize: 11, fontWeight: B }, children: "✓" }),
|
|
6079
6105
|
/* @__PURE__ */ i("span", { style: { fontSize: b, color: t.textPrimary }, children: "Checkbox" })
|
|
6080
6106
|
] }),
|
|
6081
6107
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -6091,29 +6117,29 @@ function $l() {
|
|
|
6091
6117
|
] }),
|
|
6092
6118
|
/* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: l, alignItems: "stretch" }, children: [
|
|
6093
6119
|
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6094
|
-
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style:
|
|
6120
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Be, children: "Buttons" }) }),
|
|
6095
6121
|
/* @__PURE__ */ p("div", { style: { padding: s, display: "flex", gap: 10, flexWrap: "wrap", alignItems: "center" }, children: [
|
|
6096
6122
|
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background: k, color: R, boxShadow: z }), children: "Contained" }),
|
|
6097
6123
|
/* @__PURE__ */ i("button", { style: Ue({ border: "1.5px solid " + d, background: "transparent", color: d }), children: "Outlined" }),
|
|
6098
6124
|
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background: "transparent", color: d }), children: "Text" }),
|
|
6099
6125
|
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background: w, color: O }), children: "Tonal" }),
|
|
6100
6126
|
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background: k, color: R, boxShadow: z, borderRadius: 999 }), children: "Rounded" }),
|
|
6101
|
-
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background:
|
|
6127
|
+
/* @__PURE__ */ i("button", { style: Ue({ border: "none", background: I, color: A }), children: "Error" })
|
|
6102
6128
|
] })
|
|
6103
6129
|
] }),
|
|
6104
6130
|
/* @__PURE__ */ p("div", { style: Qe, children: [
|
|
6105
|
-
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style:
|
|
6131
|
+
/* @__PURE__ */ i("div", { style: Ze, children: /* @__PURE__ */ i("span", { style: Be, children: "Chips, Alerts & Progress" }) }),
|
|
6106
6132
|
/* @__PURE__ */ p("div", { style: { padding: s }, children: [
|
|
6107
6133
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, flexWrap: "wrap", marginBottom: l }, children: [
|
|
6108
6134
|
et(w, O, "Primary"),
|
|
6109
6135
|
et(J, P, "Success"),
|
|
6110
6136
|
et(L, N, "Warning"),
|
|
6111
6137
|
et(K, U, "Info"),
|
|
6112
|
-
et(
|
|
6138
|
+
et(I, A, "Error")
|
|
6113
6139
|
] }),
|
|
6114
6140
|
/* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: 7 }, children: [
|
|
6115
|
-
/* @__PURE__ */ i("span", { style: { fontSize: b, color: t.textPrimary, fontWeight:
|
|
6116
|
-
/* @__PURE__ */ i("span", { style: { fontSize: b, color: d, fontWeight:
|
|
6141
|
+
/* @__PURE__ */ i("span", { style: { fontSize: b, color: t.textPrimary, fontWeight: B }, children: "Revenue goal" }),
|
|
6142
|
+
/* @__PURE__ */ i("span", { style: { fontSize: b, color: d, fontWeight: B }, children: "74%" })
|
|
6117
6143
|
] }),
|
|
6118
6144
|
/* @__PURE__ */ i("div", { style: { height: 8, background: t.paper2, border: "1px solid " + t.divider, borderRadius: 999, overflow: "hidden" }, children: /* @__PURE__ */ i("div", { style: { height: "100%", width: "74%", background: d, borderRadius: 999 } }) })
|
|
6119
6145
|
] })
|
|
@@ -6127,14 +6153,14 @@ const Al = [
|
|
|
6127
6153
|
{ label: "Recording", val: "4" },
|
|
6128
6154
|
{ label: "Motion Alerts", val: "2" },
|
|
6129
6155
|
{ label: "Storage Used", val: "82%" }
|
|
6130
|
-
],
|
|
6156
|
+
], Bl = [
|
|
6131
6157
|
{ name: "CAM 01", loc: "Main Lobby", rec: !0, online: !0, time: "14:32:08" },
|
|
6132
6158
|
{ name: "CAM 02", loc: "North Gate", rec: !0, online: !0, time: "14:32:08" },
|
|
6133
6159
|
{ name: "CAM 03", loc: "Loading Bay", rec: !1, online: !0, time: "14:32:07" },
|
|
6134
6160
|
{ name: "CAM 04", loc: "Rooftop", rec: !0, online: !0, time: "14:32:08" },
|
|
6135
6161
|
{ name: "CAM 05", loc: "Parking Deck", rec: !1, online: !1, time: "—" },
|
|
6136
6162
|
{ name: "CAM 06", loc: "Server Room", rec: !0, online: !0, time: "14:32:08" }
|
|
6137
|
-
],
|
|
6163
|
+
], Il = [
|
|
6138
6164
|
{ cam: "CAM 04", label: "Motion detected — Rooftop", time: "just now", sev: "error" },
|
|
6139
6165
|
{ cam: "CAM 02", label: "Person identified — North Gate", time: "6m ago", sev: "info" },
|
|
6140
6166
|
{ cam: "CAM 01", label: "Loitering cleared — Main Lobby", time: "22m ago", sev: "success" },
|
|
@@ -6153,7 +6179,7 @@ const Al = [
|
|
|
6153
6179
|
{ cam: "CAM 03", label: "Package scanned — Loading Bay", time: "8h ago", sev: "info" }
|
|
6154
6180
|
];
|
|
6155
6181
|
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:
|
|
6182
|
+
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: B, errTxt: X, mediaBg: Q, overlaySurface: Y, overlayBorder: d, onOverlay: I, 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 = Bl.map((F) => ({ ...F, dotC: F.online ? r.successHex : t.textDisabled })), [q, V] = Gr(3, 3, 16), G = Il.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 };
|
|
6157
6183
|
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: [
|
|
6158
6184
|
/* @__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: [
|
|
6159
6185
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -6161,7 +6187,7 @@ function Ol() {
|
|
|
6161
6187
|
/* @__PURE__ */ i("span", { title: "6 feeds · live monitoring & recording", style: { width: 16, height: 16, borderRadius: "50%", border: "1.2px solid " + t.textSecondary, color: t.textSecondary, fontSize: 9.5, fontWeight: k, fontStyle: "italic", fontFamily: "Georgia,serif", display: "grid", placeItems: "center", flexShrink: 0, cursor: "help" }, children: "i" })
|
|
6162
6188
|
] }),
|
|
6163
6189
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
6164
|
-
/* @__PURE__ */ p("span", { style: { display: "inline-flex", alignItems: "center", gap: 6, fontSize: H, fontWeight: k, color: X, background:
|
|
6190
|
+
/* @__PURE__ */ p("span", { style: { display: "inline-flex", alignItems: "center", gap: 6, fontSize: H, fontWeight: k, color: X, background: B, padding: "6px 12px", borderRadius: 999 }, children: [
|
|
6165
6191
|
/* @__PURE__ */ i("span", { style: { width: 7, height: 7, borderRadius: "50%", background: r.errorHex } }),
|
|
6166
6192
|
"LIVE"
|
|
6167
6193
|
] }),
|
|
@@ -6183,11 +6209,11 @@ function Ol() {
|
|
|
6183
6209
|
/* @__PURE__ */ i("div", { style: { position: "absolute", inset: 0, display: "grid", placeItems: "center" }, children: /* @__PURE__ */ i("span", { style: { fontFamily: "monospace", fontSize: H, color: "rgba(255,255,255,.3)", letterSpacing: 1 }, children: F.loc }) }),
|
|
6184
6210
|
/* @__PURE__ */ p("div", { style: { position: "absolute", top: 7, left: 7, display: "flex", alignItems: "center", gap: 5, background: Y, border: "1px solid " + d, borderRadius: 999, padding: "2px 8px" }, children: [
|
|
6185
6211
|
/* @__PURE__ */ i("span", { style: { width: 6, height: 6, borderRadius: "50%", background: F.dotC } }),
|
|
6186
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
6212
|
+
/* @__PURE__ */ i("span", { style: { color: I, fontSize: H, fontWeight: 700, letterSpacing: ".4px" }, children: F.name })
|
|
6187
6213
|
] }),
|
|
6188
6214
|
F.rec && /* @__PURE__ */ p("div", { style: { position: "absolute", top: 7, right: 7, display: "flex", alignItems: "center", gap: 4, background: Y, borderRadius: 999, padding: "2px 7px" }, children: [
|
|
6189
6215
|
/* @__PURE__ */ i("span", { style: { width: 6, height: 6, borderRadius: "50%", background: r.errorHex } }),
|
|
6190
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
6216
|
+
/* @__PURE__ */ i("span", { style: { color: I, fontSize: 8, fontWeight: 800, letterSpacing: ".5px" }, children: "REC" })
|
|
6191
6217
|
] }),
|
|
6192
6218
|
F.online && /* @__PURE__ */ i("div", { style: { position: "absolute", bottom: 0, left: 0, right: 0, padding: "5px 8px", background: "linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,0))", display: "flex", justifyContent: "space-between", alignItems: "center" }, children: /* @__PURE__ */ i("span", { style: { color: "#fff", fontSize: H, fontWeight: 600, fontFamily: "monospace" }, children: F.time }) })
|
|
6193
6219
|
] }, F.name)) })
|
|
@@ -6229,7 +6255,7 @@ const Dl = [
|
|
|
6229
6255
|
{ ic: "!", label: "Disk latency elevated — NVR-02", time: "18h ago", sev: "warning", unread: !1 }
|
|
6230
6256
|
];
|
|
6231
6257
|
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:
|
|
6258
|
+
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: B, mediaBg: X, overlaySurface: Q, overlayBorder: Y, onOverlay: d, sevMap: I } = 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, ...I[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" };
|
|
6233
6259
|
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: [
|
|
6234
6260
|
/* @__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: [
|
|
6235
6261
|
/* @__PURE__ */ i("div", { style: { fontSize: g, lineHeight: h, fontWeight: m, color: N, letterSpacing: "-.3px", fontFamily: A }, children: "Operations Center" }),
|
|
@@ -6259,7 +6285,7 @@ function Ml() {
|
|
|
6259
6285
|
/* @__PURE__ */ p("div", { style: V, children: [
|
|
6260
6286
|
/* @__PURE__ */ p("div", { style: G, children: [
|
|
6261
6287
|
/* @__PURE__ */ i("span", { style: M, children: "Notifications" }),
|
|
6262
|
-
/* @__PURE__ */ p("span", { style: { fontSize: $, fontWeight: H, color: t.pContrast, background:
|
|
6288
|
+
/* @__PURE__ */ p("span", { style: { fontSize: $, fontWeight: H, color: t.pContrast, background: B, padding: "2px 9px", borderRadius: 999 }, children: [
|
|
6263
6289
|
q,
|
|
6264
6290
|
" NEW"
|
|
6265
6291
|
] })
|
|
@@ -6270,7 +6296,7 @@ function Ml() {
|
|
|
6270
6296
|
/* @__PURE__ */ i("div", { style: { fontSize: b, color: t.textPrimary, fontWeight: C, lineHeight: k }, children: O.label }),
|
|
6271
6297
|
/* @__PURE__ */ i("div", { style: { fontSize: v, color: t.textSecondary, marginTop: 2 }, children: O.time })
|
|
6272
6298
|
] }),
|
|
6273
|
-
O.unread && /* @__PURE__ */ i("div", { style: { width: 8, height: 8, borderRadius: "50%", background:
|
|
6299
|
+
O.unread && /* @__PURE__ */ i("div", { style: { width: 8, height: 8, borderRadius: "50%", background: B, flexShrink: 0, marginTop: 6 } })
|
|
6274
6300
|
] }, F)) })
|
|
6275
6301
|
] })
|
|
6276
6302
|
] }) })
|
|
@@ -6306,7 +6332,7 @@ const Fl = [
|
|
|
6306
6332
|
{ name: "Cost Allocation Summary", type: "Financial", date: "Jun 04", status: "Ready" }
|
|
6307
6333
|
], zn = "1fr 130px 110px 90px 70px";
|
|
6308
6334
|
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:
|
|
6335
|
+
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: B, pMain: X, sMain: Q, chartPalette: Y, table: d } = e, I = 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) => ({
|
|
6310
6336
|
...W,
|
|
6311
6337
|
sb: W.status === "Ready" ? e.sucSoft : e.warnSoft,
|
|
6312
6338
|
sc: W.status === "Ready" ? e.sucTxt : e.warnTxt,
|
|
@@ -6318,11 +6344,11 @@ function jl() {
|
|
|
6318
6344
|
alignItems: d.cellAI,
|
|
6319
6345
|
justifyContent: d.cellJC,
|
|
6320
6346
|
padding: `${d.rowPy} ${d.cellPx}`
|
|
6321
|
-
}, M = { alignSelf: "stretch", display: "flex", alignItems: d.cellAI, justifyContent: d.cellJC, padding: `${d.rowPy} ${d.cellPx}` }, w = { background: t.paper, border: U, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden" }, O = { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent, display: "flex", alignItems: "center", justifyContent: "space-between" }, F = { fontSize: m, lineHeight: x, fontWeight: y, color: K, fontFamily:
|
|
6322
|
-
return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", background: t.paper, border: U, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", fontFamily: A, fontWeight:
|
|
6347
|
+
}, M = { alignSelf: "stretch", display: "flex", alignItems: d.cellAI, justifyContent: d.cellJC, padding: `${d.rowPy} ${d.cellPx}` }, w = { background: t.paper, border: U, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden" }, O = { padding: `${a}px ${s}px`, background: e.cardHdrBg, borderBottom: e.cardHdrBorder, boxShadow: e.cardHdrAccent, display: "flex", alignItems: "center", justifyContent: "space-between" }, F = { fontSize: m, lineHeight: x, fontWeight: y, color: K, fontFamily: I }, E = { fontSize: k, fontWeight: R, color: t.textSecondary, textTransform: "uppercase", letterSpacing: ".5px" };
|
|
6348
|
+
return /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", background: t.paper, border: U, borderRadius: n, boxShadow: e.cardShadow, overflow: "hidden", fontFamily: A, fontWeight: B, color: t.textPrimary }, children: [
|
|
6323
6349
|
/* @__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: [
|
|
6324
6350
|
/* @__PURE__ */ p("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
6325
|
-
/* @__PURE__ */ i("div", { style: { fontSize: g, lineHeight: x, fontWeight: y, color: L, letterSpacing: "-.3px", fontFamily:
|
|
6351
|
+
/* @__PURE__ */ i("div", { style: { fontSize: g, lineHeight: x, fontWeight: y, color: L, letterSpacing: "-.3px", fontFamily: I }, children: "Reports" }),
|
|
6326
6352
|
/* @__PURE__ */ i("span", { title: "Generated insights across every module", style: { width: 16, height: 16, borderRadius: "50%", border: "1.2px solid " + t.textSecondary, color: t.textSecondary, fontSize: 9.5, fontWeight: R, fontStyle: "italic", fontFamily: "Georgia,serif", display: "grid", placeItems: "center", flexShrink: 0, cursor: "help" }, children: "i" })
|
|
6327
6353
|
] }),
|
|
6328
6354
|
/* @__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" })
|
|
@@ -6394,11 +6420,11 @@ function Vl() {
|
|
|
6394
6420
|
hasLoginImage: $,
|
|
6395
6421
|
loginCenteredGrad: H,
|
|
6396
6422
|
loginScrimGradC: C
|
|
6397
|
-
} = e, k = r.fontFamily + ",sans-serif", R = e.hc1 || t.textPrimary, z = t.pContrast,
|
|
6423
|
+
} = e, k = r.fontFamily + ",sans-serif", R = e.hc1 || t.textPrimary, z = t.pContrast, B = e.cardBorder === "none" ? "none" : e.cardBorder, X = r.logoMode === "image" && !!r.logoUrl, Q = e.isDark ? t.paper2 : "#ffffff", Y = r.loginPanelColor || t.bgDefault, d = r.loginImgOpacity > 0 ? r.loginImgOpacity : 1, I = $ ? /* @__PURE__ */ i("img", { src: r.loginImage, alt: "", style: { position: "absolute", inset: 0, width: "100%", height: "100%", objectFit: "cover", zIndex: 0, opacity: d } }) : null, A = { background: t.paper, border: B, borderRadius: n, boxShadow: e.cardShadow, padding: s, display: "flex", flexDirection: "column", gap: 20 }, L = (N) => ({ position: "relative", background: t.paper2, border: "1.5px solid " + (N ? b : t.outline), borderRadius: o });
|
|
6398
6424
|
return r.loginLayout === "centered" ? /* @__PURE__ */ p("div", { style: { minHeight: 560, background: H, display: "flex", alignItems: "center", justifyContent: "center", padding: 40, position: "relative", overflow: "hidden", fontFamily: k, borderRadius: n }, children: [
|
|
6399
|
-
|
|
6425
|
+
I,
|
|
6400
6426
|
$ && /* @__PURE__ */ i("div", { style: { position: "absolute", inset: 0, background: C, zIndex: 0 } }),
|
|
6401
|
-
/* @__PURE__ */ p("div", { style: { position: "relative", zIndex: 1, width: "100%", maxWidth: 380, background: t.paper, border:
|
|
6427
|
+
/* @__PURE__ */ p("div", { style: { position: "relative", zIndex: 1, width: "100%", maxWidth: 380, background: t.paper, border: B, borderRadius: n, boxShadow: "0 24px 60px rgba(0,0,0,.35)", padding: s, display: "flex", flexDirection: "column", gap: 20, alignItems: "center" }, children: [
|
|
6402
6428
|
/* @__PURE__ */ i("div", { style: { width: 72, height: 72, borderRadius: 20, background: r.iconColor, display: "grid", placeItems: "center", boxShadow: "0 6px 18px " + r.iconColor + "55" }, children: /* @__PURE__ */ i("span", { style: { color: "#fff", fontSize: 24, fontWeight: u, letterSpacing: "-1px" }, children: v }) }),
|
|
6403
6429
|
/* @__PURE__ */ p("div", { style: { width: "100%", display: "flex", flexDirection: "column", gap: 14 }, children: [
|
|
6404
6430
|
/* @__PURE__ */ p("div", { style: { position: "relative", border: "1.5px solid " + t.outline, borderRadius: o, padding: "13px 14px" }, children: [
|
|
@@ -6414,7 +6440,7 @@ function Vl() {
|
|
|
6414
6440
|
] })
|
|
6415
6441
|
] }) : /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: "3fr 1fr", minHeight: 560, fontFamily: k, borderRadius: n, overflow: "hidden" }, children: [
|
|
6416
6442
|
/* @__PURE__ */ p("div", { style: { background: Q, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", padding: "48px 40px", gap: 22, position: "relative", overflow: "hidden" }, children: [
|
|
6417
|
-
|
|
6443
|
+
I,
|
|
6418
6444
|
!$ && /* @__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: [
|
|
6419
6445
|
/* @__PURE__ */ i(_n, { size: 46 }),
|
|
6420
6446
|
/* @__PURE__ */ i("div", { style: { fontSize: 14, fontWeight: u, color: t.textPrimary }, children: "No brand image" }),
|
|
@@ -6494,14 +6520,14 @@ function Yl() {
|
|
|
6494
6520
|
if (n !== "fit") {
|
|
6495
6521
|
const d = n / 100;
|
|
6496
6522
|
y.style.zoom = String(d);
|
|
6497
|
-
const
|
|
6498
|
-
y.style.minHeight = (
|
|
6523
|
+
const I = m.clientHeight - H;
|
|
6524
|
+
y.style.minHeight = (I > 0 ? Math.floor(I / d) : 0) + "px", c(n);
|
|
6499
6525
|
return;
|
|
6500
6526
|
}
|
|
6501
6527
|
y.style.zoom = "1", y.style.minHeight = "0px", y.offsetHeight;
|
|
6502
|
-
const C = (parseFloat($.paddingLeft) || 0) + (parseFloat($.paddingRight) || 0), k = m.clientWidth - C, R = m.clientHeight - H, z = y.scrollWidth,
|
|
6503
|
-
if (z <= 0 ||
|
|
6504
|
-
const X = Math.min(k / z, R /
|
|
6528
|
+
const C = (parseFloat($.paddingLeft) || 0) + (parseFloat($.paddingRight) || 0), k = m.clientWidth - C, R = m.clientHeight - H, z = y.scrollWidth, B = y.scrollHeight;
|
|
6529
|
+
if (z <= 0 || B <= 0 || k <= 0 || R <= 0) return;
|
|
6530
|
+
const X = Math.min(k / z, R / B, 1), Q = X < 0.985 ? Math.max(0.36, X) : 1;
|
|
6505
6531
|
y.style.zoom = String(Q);
|
|
6506
6532
|
const Y = Math.min(k / z, 1);
|
|
6507
6533
|
y.style.minHeight = Math.floor(R / Math.max(Y, 0.36)) + "px", c(Math.round(Q * 100));
|