@codeplex-sac/layout 0.0.12 → 0.0.13
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/index.js +75 -67
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -355,8 +355,8 @@ var Hr;
|
|
|
355
355
|
function wn() {
|
|
356
356
|
if (Hr) return q;
|
|
357
357
|
Hr = 1;
|
|
358
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, c = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
359
|
-
function
|
|
358
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, c = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
359
|
+
function _(x) {
|
|
360
360
|
if (typeof x == "object" && x !== null) {
|
|
361
361
|
var k = x.$$typeof;
|
|
362
362
|
switch (k) {
|
|
@@ -387,44 +387,44 @@ function wn() {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
function T(x) {
|
|
390
|
-
return
|
|
390
|
+
return _(x) === u;
|
|
391
391
|
}
|
|
392
392
|
return q.AsyncMode = f, q.ConcurrentMode = u, q.ContextConsumer = l, q.ContextProvider = s, q.Element = r, q.ForwardRef = m, q.Fragment = n, q.Lazy = v, q.Memo = g, q.Portal = t, q.Profiler = i, q.StrictMode = o, q.Suspense = d, q.isAsyncMode = function(x) {
|
|
393
|
-
return T(x) ||
|
|
393
|
+
return T(x) || _(x) === f;
|
|
394
394
|
}, q.isConcurrentMode = T, q.isContextConsumer = function(x) {
|
|
395
|
-
return
|
|
395
|
+
return _(x) === l;
|
|
396
396
|
}, q.isContextProvider = function(x) {
|
|
397
|
-
return
|
|
397
|
+
return _(x) === s;
|
|
398
398
|
}, q.isElement = function(x) {
|
|
399
399
|
return typeof x == "object" && x !== null && x.$$typeof === r;
|
|
400
400
|
}, q.isForwardRef = function(x) {
|
|
401
|
-
return
|
|
401
|
+
return _(x) === m;
|
|
402
402
|
}, q.isFragment = function(x) {
|
|
403
|
-
return
|
|
403
|
+
return _(x) === n;
|
|
404
404
|
}, q.isLazy = function(x) {
|
|
405
|
-
return
|
|
405
|
+
return _(x) === v;
|
|
406
406
|
}, q.isMemo = function(x) {
|
|
407
|
-
return
|
|
407
|
+
return _(x) === g;
|
|
408
408
|
}, q.isPortal = function(x) {
|
|
409
|
-
return
|
|
409
|
+
return _(x) === t;
|
|
410
410
|
}, q.isProfiler = function(x) {
|
|
411
|
-
return
|
|
411
|
+
return _(x) === i;
|
|
412
412
|
}, q.isStrictMode = function(x) {
|
|
413
|
-
return
|
|
413
|
+
return _(x) === o;
|
|
414
414
|
}, q.isSuspense = function(x) {
|
|
415
|
-
return
|
|
415
|
+
return _(x) === d;
|
|
416
416
|
}, q.isValidElementType = function(x) {
|
|
417
|
-
return typeof x == "string" || typeof x == "function" || x === n || x === u || x === i || x === o || x === d || x === p || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === g || x.$$typeof === s || x.$$typeof === l || x.$$typeof === m || x.$$typeof === y || x.$$typeof === C || x.$$typeof ===
|
|
418
|
-
}, q.typeOf =
|
|
417
|
+
return typeof x == "string" || typeof x == "function" || x === n || x === u || x === i || x === o || x === d || x === p || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === g || x.$$typeof === s || x.$$typeof === l || x.$$typeof === m || x.$$typeof === y || x.$$typeof === C || x.$$typeof === R || x.$$typeof === c);
|
|
418
|
+
}, q.typeOf = _, q;
|
|
419
419
|
}
|
|
420
420
|
var H = {};
|
|
421
421
|
var Gr;
|
|
422
422
|
function En() {
|
|
423
423
|
return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
424
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, c = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118,
|
|
425
|
-
function
|
|
424
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, c = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
425
|
+
function _(E) {
|
|
426
426
|
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
427
|
-
E === n || E === u || E === i || E === o || E === d || E === p || typeof E == "object" && E !== null && (E.$$typeof === v || E.$$typeof === g || E.$$typeof === s || E.$$typeof === l || E.$$typeof === m || E.$$typeof === y || E.$$typeof === C || E.$$typeof ===
|
|
427
|
+
E === n || E === u || E === i || E === o || E === d || E === p || typeof E == "object" && E !== null && (E.$$typeof === v || E.$$typeof === g || E.$$typeof === s || E.$$typeof === l || E.$$typeof === m || E.$$typeof === y || E.$$typeof === C || E.$$typeof === R || E.$$typeof === c);
|
|
428
428
|
}
|
|
429
429
|
function T(E) {
|
|
430
430
|
if (typeof E == "object" && E !== null) {
|
|
@@ -498,7 +498,7 @@ function En() {
|
|
|
498
498
|
function se(E) {
|
|
499
499
|
return T(E) === d;
|
|
500
500
|
}
|
|
501
|
-
H.AsyncMode = x, H.ConcurrentMode = k, H.ContextConsumer = O, H.ContextProvider = ee, H.Element = Y, H.ForwardRef = oe, H.Fragment = Z, H.Lazy = a, H.Memo = A, H.Portal = w, H.Profiler = P, H.StrictMode = L, H.Suspense = ae, H.isAsyncMode = vr, H.isConcurrentMode = S, H.isContextConsumer = $, H.isContextProvider = B, H.isElement = D, H.isForwardRef = N, H.isFragment = z, H.isLazy = M, H.isMemo = j, H.isPortal = W, H.isProfiler = G, H.isStrictMode = V, H.isSuspense = se, H.isValidElementType =
|
|
501
|
+
H.AsyncMode = x, H.ConcurrentMode = k, H.ContextConsumer = O, H.ContextProvider = ee, H.Element = Y, H.ForwardRef = oe, H.Fragment = Z, H.Lazy = a, H.Memo = A, H.Portal = w, H.Profiler = P, H.StrictMode = L, H.Suspense = ae, H.isAsyncMode = vr, H.isConcurrentMode = S, H.isContextConsumer = $, H.isContextProvider = B, H.isElement = D, H.isForwardRef = N, H.isFragment = z, H.isLazy = M, H.isMemo = j, H.isPortal = W, H.isProfiler = G, H.isStrictMode = V, H.isSuspense = se, H.isValidElementType = _, H.typeOf = T;
|
|
502
502
|
})()), H;
|
|
503
503
|
}
|
|
504
504
|
var Kr;
|
|
@@ -644,8 +644,8 @@ function kn() {
|
|
|
644
644
|
object: C("object"),
|
|
645
645
|
string: C("string"),
|
|
646
646
|
symbol: C("symbol"),
|
|
647
|
-
any:
|
|
648
|
-
arrayOf:
|
|
647
|
+
any: R(),
|
|
648
|
+
arrayOf: _,
|
|
649
649
|
element: T(),
|
|
650
650
|
elementType: x(),
|
|
651
651
|
instanceOf: k,
|
|
@@ -700,10 +700,10 @@ function kn() {
|
|
|
700
700
|
}
|
|
701
701
|
return y($);
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function R() {
|
|
704
704
|
return y(s);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function _(S) {
|
|
707
707
|
function $(B, D, N, z, M) {
|
|
708
708
|
if (typeof S != "function")
|
|
709
709
|
return new c("Property `" + M + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -2272,8 +2272,8 @@ function Vr(e) {
|
|
|
2272
2272
|
return Bo(y);
|
|
2273
2273
|
const C = dt(y, Ir.text.primary) >= t ? Ir.text.primary : Bt.text.primary;
|
|
2274
2274
|
if (process.env.NODE_ENV !== "production") {
|
|
2275
|
-
const
|
|
2276
|
-
|
|
2275
|
+
const R = dt(y, C);
|
|
2276
|
+
R < 3 && console.error([`MUI: The contrast ratio of ${R}:1 for ${C} on ${y}`, "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(`
|
|
2277
2277
|
`));
|
|
2278
2278
|
}
|
|
2279
2279
|
return C;
|
|
@@ -2281,15 +2281,15 @@ function Vr(e) {
|
|
|
2281
2281
|
const g = ({
|
|
2282
2282
|
color: y,
|
|
2283
2283
|
name: C,
|
|
2284
|
-
mainShade:
|
|
2285
|
-
lightShade:
|
|
2284
|
+
mainShade: R = 500,
|
|
2285
|
+
lightShade: _ = 300,
|
|
2286
2286
|
darkShade: T = 700
|
|
2287
2287
|
}) => {
|
|
2288
2288
|
if (y = {
|
|
2289
2289
|
...y
|
|
2290
|
-
}, !y.main && y[
|
|
2290
|
+
}, !y.main && y[R] && (y.main = y[R]), !y.hasOwnProperty("main"))
|
|
2291
2291
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
|
|
2292
|
-
The color object needs to have a \`main\` property or a \`${
|
|
2292
|
+
The color object needs to have a \`main\` property or a \`${R}\` property.` : we(11, C ? ` (${C})` : "", R));
|
|
2293
2293
|
if (typeof y.main != "string")
|
|
2294
2294
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
|
|
2295
2295
|
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
@@ -2305,7 +2305,7 @@ const theme1 = createTheme({ palette: {
|
|
|
2305
2305
|
const theme2 = createTheme({ palette: {
|
|
2306
2306
|
primary: { main: green[500] },
|
|
2307
2307
|
} });` : we(12, C ? ` (${C})` : "", JSON.stringify(y.main)));
|
|
2308
|
-
return o ? (ft(o, y, "light",
|
|
2308
|
+
return o ? (ft(o, y, "light", _, n), ft(o, y, "dark", T, n)) : (ut(y, "light", _, n), ut(y, "dark", T, n)), y.contrastText || (y.contrastText = p(y.main)), y;
|
|
2309
2309
|
};
|
|
2310
2310
|
let v;
|
|
2311
2311
|
return r === "light" ? v = jt() : r === "dark" && (v = Lt()), process.env.NODE_ENV !== "production" && (v || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), ce({
|
|
@@ -2977,16 +2977,16 @@ function di(e, r) {
|
|
|
2977
2977
|
...d
|
|
2978
2978
|
} = typeof r == "function" ? r(e) : r;
|
|
2979
2979
|
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
2980
|
-
const p = n / 14, g = m || ((y) => `${y / f * p}rem`), v = (y, C,
|
|
2980
|
+
const p = n / 14, g = m || ((y) => `${y / f * p}rem`), v = (y, C, R, _, T) => ({
|
|
2981
2981
|
fontFamily: t,
|
|
2982
2982
|
fontWeight: y,
|
|
2983
2983
|
fontSize: g(C),
|
|
2984
2984
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2985
|
-
lineHeight:
|
|
2985
|
+
lineHeight: R,
|
|
2986
2986
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
2987
2987
|
// across font-families can cause issues with the kerning.
|
|
2988
2988
|
...t === vt ? {
|
|
2989
|
-
letterSpacing: `${ci(
|
|
2989
|
+
letterSpacing: `${ci(_ / C)}em`
|
|
2990
2990
|
} : {},
|
|
2991
2991
|
...T,
|
|
2992
2992
|
...u
|
|
@@ -3191,20 +3191,20 @@ function Nr(e = {}, ...r) {
|
|
|
3191
3191
|
});
|
|
3192
3192
|
if (g = ce(g, m), g = r.reduce((v, c) => ce(v, c), g), process.env.NODE_ENV !== "production") {
|
|
3193
3193
|
const v = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], c = (y, C) => {
|
|
3194
|
-
let
|
|
3195
|
-
for (
|
|
3196
|
-
const
|
|
3197
|
-
if (v.includes(
|
|
3194
|
+
let R;
|
|
3195
|
+
for (R in y) {
|
|
3196
|
+
const _ = y[R];
|
|
3197
|
+
if (v.includes(R) && Object.keys(_).length > 0) {
|
|
3198
3198
|
if (process.env.NODE_ENV !== "production") {
|
|
3199
|
-
const T = Fr("",
|
|
3200
|
-
console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${
|
|
3199
|
+
const T = Fr("", R);
|
|
3200
|
+
console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${R}\` internal state.`, "You can not override it like this: ", JSON.stringify(y, null, 2), "", `Instead, you need to use the '&.${T}' syntax:`, JSON.stringify({
|
|
3201
3201
|
root: {
|
|
3202
|
-
[`&.${T}`]:
|
|
3202
|
+
[`&.${T}`]: _
|
|
3203
3203
|
}
|
|
3204
3204
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
3205
3205
|
`));
|
|
3206
3206
|
}
|
|
3207
|
-
y[
|
|
3207
|
+
y[R] = {};
|
|
3208
3208
|
}
|
|
3209
3209
|
}
|
|
3210
3210
|
};
|
|
@@ -3388,16 +3388,16 @@ function Ii(e = {}, ...r) {
|
|
|
3388
3388
|
light: c,
|
|
3389
3389
|
dark: y,
|
|
3390
3390
|
...C
|
|
3391
|
-
} = t,
|
|
3391
|
+
} = t, R = {
|
|
3392
3392
|
...C
|
|
3393
3393
|
};
|
|
3394
|
-
let
|
|
3395
|
-
if ((p === "dark" && !("dark" in t) || p === "light" && !("light" in t)) && (
|
|
3394
|
+
let _ = v;
|
|
3395
|
+
if ((p === "dark" && !("dark" in t) || p === "light" && !("light" in t)) && (_ = !0), !_)
|
|
3396
3396
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : we(21, p));
|
|
3397
3397
|
let T;
|
|
3398
3398
|
s && (T = "oklch");
|
|
3399
|
-
const x = Ar(T,
|
|
3400
|
-
c && !
|
|
3399
|
+
const x = Ar(T, R, _, m, p);
|
|
3400
|
+
c && !R.light && Ar(T, R, c, void 0, "light"), y && !R.dark && Ar(T, R, y, void 0, "dark");
|
|
3401
3401
|
let k = {
|
|
3402
3402
|
defaultColorScheme: p,
|
|
3403
3403
|
...x,
|
|
@@ -3405,7 +3405,7 @@ function Ii(e = {}, ...r) {
|
|
|
3405
3405
|
colorSchemeSelector: f,
|
|
3406
3406
|
rootSelector: u,
|
|
3407
3407
|
getCssVar: g,
|
|
3408
|
-
colorSchemes:
|
|
3408
|
+
colorSchemes: R,
|
|
3409
3409
|
font: {
|
|
3410
3410
|
...ii(x.typography),
|
|
3411
3411
|
...x.font
|
|
@@ -3642,10 +3642,10 @@ function Li(e = {}) {
|
|
|
3642
3642
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
3643
3643
|
m && m !== "Root" && m !== "root" || !1
|
|
3644
3644
|
), C = p || !1;
|
|
3645
|
-
let
|
|
3646
|
-
m === "Root" || m === "root" ?
|
|
3647
|
-
const
|
|
3648
|
-
shouldForwardProp:
|
|
3645
|
+
let R = Or;
|
|
3646
|
+
m === "Root" || m === "root" ? R = n : m ? R = o : Fi(l) && (R = void 0);
|
|
3647
|
+
const _ = qo(l, {
|
|
3648
|
+
shouldForwardProp: R,
|
|
3649
3649
|
label: Wi(u, m),
|
|
3650
3650
|
...v
|
|
3651
3651
|
}), T = (k) => {
|
|
@@ -3680,10 +3680,10 @@ function Li(e = {}) {
|
|
|
3680
3680
|
let P;
|
|
3681
3681
|
P = [...A, ...a, ...w], P.raw = [...A, ...a.raw, ...w], O.unshift(P);
|
|
3682
3682
|
}
|
|
3683
|
-
const oe = [...O, ...ee, ...Y], Z =
|
|
3683
|
+
const oe = [...O, ...ee, ...Y], Z = _(...oe);
|
|
3684
3684
|
return l.muiName && (Z.muiName = l.muiName), process.env.NODE_ENV !== "production" && (Z.displayName = zi(u, m, l)), Z;
|
|
3685
3685
|
};
|
|
3686
|
-
return
|
|
3686
|
+
return _.withConfig && (x.withConfig = _.withConfig), x;
|
|
3687
3687
|
};
|
|
3688
3688
|
}
|
|
3689
3689
|
function zi(e, r, t) {
|
|
@@ -4579,10 +4579,10 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4579
4579
|
}, ee = O(e);
|
|
4580
4580
|
ee.length > 0 && C((Y) => [.../* @__PURE__ */ new Set([...Y, ...ee])]);
|
|
4581
4581
|
}, [e]);
|
|
4582
|
-
const
|
|
4582
|
+
const R = () => {
|
|
4583
4583
|
const O = !v;
|
|
4584
4584
|
c(O), s && s(O);
|
|
4585
|
-
},
|
|
4585
|
+
}, _ = () => {
|
|
4586
4586
|
g(!p);
|
|
4587
4587
|
}, T = (O) => {
|
|
4588
4588
|
C(
|
|
@@ -4596,7 +4596,15 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4596
4596
|
t && /* @__PURE__ */ h(Ze, { src: t, variant: "rounded", sx: { width: 32, height: 32 } }),
|
|
4597
4597
|
/* @__PURE__ */ h(ue, { variant: "h6", noWrap: !0, fontWeight: "bold", color: "text.primary", children: n })
|
|
4598
4598
|
] }) : t ? /* @__PURE__ */ h(Ze, { src: t, variant: "rounded", sx: { width: 32, height: 32, mx: "auto" } }) : null,
|
|
4599
|
-
|
|
4599
|
+
/* @__PURE__ */ h(
|
|
4600
|
+
je,
|
|
4601
|
+
{
|
|
4602
|
+
onClick: p ? _ : R,
|
|
4603
|
+
size: "small",
|
|
4604
|
+
sx: { display: { xs: p ? "flex" : "none", md: "flex" } },
|
|
4605
|
+
children: v && !p ? /* @__PURE__ */ h(Tt, {}) : /* @__PURE__ */ h(oa, {})
|
|
4606
|
+
}
|
|
4607
|
+
)
|
|
4600
4608
|
] }),
|
|
4601
4609
|
m && /* @__PURE__ */ h(U, { sx: { px: 2, pb: 2 }, children: m }),
|
|
4602
4610
|
/* @__PURE__ */ h(sa, { children: /* @__PURE__ */ h(kt, { component: "nav", sx: { px: 0, py: 0 }, children: e.map((O) => O.tipo === "divisor" ? /* @__PURE__ */ h(_r, { sx: { my: 1, opacity: 0.6 } }, O.id) : O.tipo === "seccion" ? v && !p ? /* @__PURE__ */ h(_r, { sx: { my: 1, opacity: 0.4 } }, O.id) : /* @__PURE__ */ h(
|
|
@@ -4655,7 +4663,7 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4655
4663
|
{
|
|
4656
4664
|
sx: {
|
|
4657
4665
|
mr: 2,
|
|
4658
|
-
display: { md: "none" },
|
|
4666
|
+
display: { xs: p ? "none" : "flex", md: "none" },
|
|
4659
4667
|
position: "fixed",
|
|
4660
4668
|
top: 12,
|
|
4661
4669
|
left: 16,
|
|
@@ -4671,7 +4679,7 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4671
4679
|
},
|
|
4672
4680
|
"aria-label": "open drawer",
|
|
4673
4681
|
edge: "start",
|
|
4674
|
-
onClick:
|
|
4682
|
+
onClick: _,
|
|
4675
4683
|
children: /* @__PURE__ */ h(Tt, {})
|
|
4676
4684
|
}
|
|
4677
4685
|
),
|
|
@@ -4686,7 +4694,7 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4686
4694
|
zIndex: 1200,
|
|
4687
4695
|
display: { xs: p ? "block" : "none", md: "none" }
|
|
4688
4696
|
},
|
|
4689
|
-
onClick:
|
|
4697
|
+
onClick: _
|
|
4690
4698
|
}
|
|
4691
4699
|
),
|
|
4692
4700
|
/* @__PURE__ */ h(
|
|
@@ -4795,7 +4803,7 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4795
4803
|
return `${c}flex-none ${c}w-auto`;
|
|
4796
4804
|
const y = Number(g);
|
|
4797
4805
|
if (!isNaN(y) && y > 0 && y <= 12) {
|
|
4798
|
-
const
|
|
4806
|
+
const R = {
|
|
4799
4807
|
1: "w-1/12",
|
|
4800
4808
|
2: "w-2/12",
|
|
4801
4809
|
3: "w-3/12",
|
|
@@ -4809,8 +4817,8 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4809
4817
|
11: "w-11/12",
|
|
4810
4818
|
12: "w-full"
|
|
4811
4819
|
}[y];
|
|
4812
|
-
if (
|
|
4813
|
-
return `${c}flex-none ${c}${
|
|
4820
|
+
if (R)
|
|
4821
|
+
return `${c}flex-none ${c}${R}`;
|
|
4814
4822
|
}
|
|
4815
4823
|
return "";
|
|
4816
4824
|
};
|
|
@@ -4848,18 +4856,18 @@ const Et = Se(/* @__PURE__ */ h("path", {
|
|
|
4848
4856
|
C.backgroundColor = me(y.palette.background.paper, 0.7), C.backdropFilter = "blur(10px)", C.border = `1px solid ${me(y.palette.common.white, 0.2)}`, y.palette.mode === "dark" && (C.border = `1px solid ${me(y.palette.common.white, 0.05)}`);
|
|
4849
4857
|
break;
|
|
4850
4858
|
case "gradiente":
|
|
4851
|
-
const
|
|
4852
|
-
C.background = `linear-gradient(135deg, ${me(
|
|
4859
|
+
const R = y.palette.mode === "dark" ? y.palette.primary.dark : y.palette.primary.light, _ = y.palette.mode === "dark" ? y.palette.secondary.dark : y.palette.secondary.light;
|
|
4860
|
+
C.background = `linear-gradient(135deg, ${me(R, 0.1)} 0%, ${me(_, 0.1)} 100%)`, C.border = `1px solid ${me(y.palette.primary.main, 0.1)}`;
|
|
4853
4861
|
break;
|
|
4854
4862
|
}
|
|
4855
4863
|
if (r) {
|
|
4856
|
-
const
|
|
4864
|
+
const _ = {
|
|
4857
4865
|
error: y.palette.error.main,
|
|
4858
4866
|
exito: y.palette.success.main,
|
|
4859
4867
|
advertencia: y.palette.warning.main,
|
|
4860
4868
|
info: y.palette.info.main
|
|
4861
4869
|
}[r];
|
|
4862
|
-
C.border = `1px solid ${
|
|
4870
|
+
C.border = `1px solid ${_}`, C.boxShadow = `0 0 0 1px ${me(_, 0.2)}`, C.backgroundColor = me(_, 0.02);
|
|
4863
4871
|
}
|
|
4864
4872
|
return d && (C["&:hover"] = {
|
|
4865
4873
|
...C["&:hover"],
|