@tracktor/design-system 4.7.2 → 4.7.3
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/CHANGELOG.md +2 -2
- package/dist/main.cjs +4 -4
- package/dist/main.js +85 -83
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -86,7 +86,7 @@ function Pr() {
|
|
|
86
86
|
function A(f) {
|
|
87
87
|
if (f == null) return null;
|
|
88
88
|
if (typeof f == "function")
|
|
89
|
-
return f.$$typeof ===
|
|
89
|
+
return f.$$typeof === X ? null : f.displayName || f.name || null;
|
|
90
90
|
if (typeof f == "string") return f;
|
|
91
91
|
switch (f) {
|
|
92
92
|
case u:
|
|
@@ -173,7 +173,7 @@ function Pr() {
|
|
|
173
173
|
}
|
|
174
174
|
function a(f, x) {
|
|
175
175
|
function M() {
|
|
176
|
-
|
|
176
|
+
_ || (_ = !0, console.error(
|
|
177
177
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
178
178
|
x
|
|
179
179
|
));
|
|
@@ -225,7 +225,7 @@ function Pr() {
|
|
|
225
225
|
var Y = x.children;
|
|
226
226
|
if (Y !== void 0)
|
|
227
227
|
if (L)
|
|
228
|
-
if (
|
|
228
|
+
if (K(Y)) {
|
|
229
229
|
for (L = 0; L < Y.length; L++)
|
|
230
230
|
g(Y[L]);
|
|
231
231
|
Object.freeze && Object.freeze(Y);
|
|
@@ -239,7 +239,7 @@ function Pr() {
|
|
|
239
239
|
var vA = Object.keys(x).filter(function(me) {
|
|
240
240
|
return me !== "key";
|
|
241
241
|
});
|
|
242
|
-
L = 0 < vA.length ? "{key: someKey, " + vA.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
242
|
+
L = 0 < vA.length ? "{key: someKey, " + vA.join(": ..., ") + ": ...}" : "{key: someKey}", eA[Y + L] || (vA = 0 < vA.length ? "{" + vA.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
243
243
|
`A props object containing a "key" prop is being spread into JSX:
|
|
244
244
|
let props = %s;
|
|
245
245
|
<%s {...props} />
|
|
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
250
250
|
Y,
|
|
251
251
|
vA,
|
|
252
252
|
Y
|
|
253
|
-
),
|
|
253
|
+
), eA[Y + L] = !0);
|
|
254
254
|
}
|
|
255
255
|
if (Y = null, M !== void 0 && (r(M), Y = "" + M), s(x) && (r(x.key), Y = "" + x.key), "key" in x) {
|
|
256
256
|
M = {};
|
|
@@ -274,7 +274,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
274
274
|
function g(f) {
|
|
275
275
|
typeof f == "object" && f !== null && f.$$typeof === w && f._store && (f._store.validated = 1);
|
|
276
276
|
}
|
|
277
|
-
var v = Er, w = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), T = Symbol.for("react.activity"),
|
|
277
|
+
var v = Er, w = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), N = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, K = Array.isArray, AA = console.createTask ? console.createTask : function() {
|
|
278
278
|
return null;
|
|
279
279
|
};
|
|
280
280
|
v = {
|
|
@@ -282,10 +282,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
282
282
|
return f();
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
|
-
var
|
|
285
|
+
var _, Z = {}, q = v["react-stack-bottom-frame"].bind(
|
|
286
286
|
v,
|
|
287
287
|
i
|
|
288
|
-
)(), U =
|
|
288
|
+
)(), U = AA(n(i)), eA = {};
|
|
289
289
|
QA.Fragment = u, QA.jsx = function(f, x, M, L, P) {
|
|
290
290
|
var tA = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
291
291
|
return p(
|
|
@@ -296,7 +296,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
296
296
|
L,
|
|
297
297
|
P,
|
|
298
298
|
tA ? Error("react-stack-top-frame") : q,
|
|
299
|
-
tA ?
|
|
299
|
+
tA ? AA(n(f)) : U
|
|
300
300
|
);
|
|
301
301
|
}, QA.jsxs = function(f, x, M, L, P) {
|
|
302
302
|
var tA = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
@@ -308,7 +308,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
308
308
|
L,
|
|
309
309
|
P,
|
|
310
310
|
tA ? Error("react-stack-top-frame") : q,
|
|
311
|
-
tA ?
|
|
311
|
+
tA ? AA(n(f)) : U
|
|
312
312
|
);
|
|
313
313
|
};
|
|
314
314
|
}()), QA;
|
|
@@ -360,7 +360,7 @@ var Hr = /* @__PURE__ */ function() {
|
|
|
360
360
|
}, A;
|
|
361
361
|
}(), nA = "-ms-", se = "-moz-", H = "-webkit-", D1 = "comm", _e = "rule", $e = "decl", Or = "@import", H1 = "@keyframes", Qr = "@layer", Vr = Math.abs, ge = String.fromCharCode, Fr = Object.assign;
|
|
362
362
|
function Nr(A, e) {
|
|
363
|
-
return
|
|
363
|
+
return rA(A, 0) ^ 45 ? (((e << 2 ^ rA(A, 0)) << 2 ^ rA(A, 1)) << 2 ^ rA(A, 2)) << 2 ^ rA(A, 3) : 0;
|
|
364
364
|
}
|
|
365
365
|
function O1(A) {
|
|
366
366
|
return A.trim();
|
|
@@ -374,7 +374,7 @@ function O(A, e, r) {
|
|
|
374
374
|
function De(A, e) {
|
|
375
375
|
return A.indexOf(e);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function rA(A, e) {
|
|
378
378
|
return A.charCodeAt(e) | 0;
|
|
379
379
|
}
|
|
380
380
|
function GA(A, e, r) {
|
|
@@ -403,13 +403,13 @@ function zr() {
|
|
|
403
403
|
return W;
|
|
404
404
|
}
|
|
405
405
|
function Jr() {
|
|
406
|
-
return W = lA > 0 ?
|
|
406
|
+
return W = lA > 0 ? rA(LA, --lA) : 0, TA--, W === 10 && (TA = 1, he--), W;
|
|
407
407
|
}
|
|
408
408
|
function dA() {
|
|
409
|
-
return W = lA < Q1 ?
|
|
409
|
+
return W = lA < Q1 ? rA(LA, lA++) : 0, TA++, W === 10 && (TA = 1, he++), W;
|
|
410
410
|
}
|
|
411
411
|
function xA() {
|
|
412
|
-
return
|
|
412
|
+
return rA(LA, lA);
|
|
413
413
|
}
|
|
414
414
|
function re() {
|
|
415
415
|
return lA;
|
|
@@ -515,7 +515,7 @@ function ne(A, e, r, n, o, i, s, a, c) {
|
|
|
515
515
|
switch (C = S, S = dA()) {
|
|
516
516
|
// (
|
|
517
517
|
case 40:
|
|
518
|
-
if (C != 108 &&
|
|
518
|
+
if (C != 108 && rA(E, g - 1) == 58) {
|
|
519
519
|
De(E += O(te(S), "&", "&\f"), "&\f") != -1 && (I = -1);
|
|
520
520
|
break;
|
|
521
521
|
}
|
|
@@ -572,7 +572,7 @@ function ne(A, e, r, n, o, i, s, a, c) {
|
|
|
572
572
|
if (p === 0)
|
|
573
573
|
ne(E, e, k, k, y, i, g, a, l);
|
|
574
574
|
else
|
|
575
|
-
switch (v === 99 &&
|
|
575
|
+
switch (v === 99 && rA(E, 3) === 110 ? 100 : v) {
|
|
576
576
|
// d l m s
|
|
577
577
|
case 100:
|
|
578
578
|
case 108:
|
|
@@ -815,13 +815,13 @@ function N1(A, e) {
|
|
|
815
815
|
case 5789:
|
|
816
816
|
case 5021:
|
|
817
817
|
case 4765:
|
|
818
|
-
if (hA(A) - 1 - e > 6) switch (
|
|
818
|
+
if (hA(A) - 1 - e > 6) switch (rA(A, e + 1)) {
|
|
819
819
|
// (m)ax-content, (m)in-content
|
|
820
820
|
case 109:
|
|
821
|
-
if (
|
|
821
|
+
if (rA(A, e + 4) !== 45) break;
|
|
822
822
|
// (f)ill-available, (f)it-content
|
|
823
823
|
case 102:
|
|
824
|
-
return O(A, /(.+:)(.+)-([^]+)/, "$1" + H + "$2-$3$1" + se + (
|
|
824
|
+
return O(A, /(.+:)(.+)-([^]+)/, "$1" + H + "$2-$3$1" + se + (rA(A, e + 3) == 108 ? "$3" : "$2-$3")) + A;
|
|
825
825
|
// (s)tretch
|
|
826
826
|
case 115:
|
|
827
827
|
return ~De(A, "stretch") ? N1(O(A, "stretch", "fill-available"), e) + A : A;
|
|
@@ -829,21 +829,21 @@ function N1(A, e) {
|
|
|
829
829
|
break;
|
|
830
830
|
// position: sticky
|
|
831
831
|
case 4949:
|
|
832
|
-
if (
|
|
832
|
+
if (rA(A, e + 1) !== 115) break;
|
|
833
833
|
// display: (flex|inline-flex)
|
|
834
834
|
case 6444:
|
|
835
|
-
switch (
|
|
835
|
+
switch (rA(A, hA(A) - 3 - (~De(A, "!important") && 10))) {
|
|
836
836
|
// stic(k)y
|
|
837
837
|
case 107:
|
|
838
838
|
return O(A, ":", ":" + H) + A;
|
|
839
839
|
// (inline-)?fl(e)x
|
|
840
840
|
case 101:
|
|
841
|
-
return O(A, /(.+:)([^;!]+)(;|!.+)?/, "$1" + H + (
|
|
841
|
+
return O(A, /(.+:)([^;!]+)(;|!.+)?/, "$1" + H + (rA(A, 14) === 45 ? "inline-" : "") + "box$3$1" + H + "$2$3$1" + nA + "$2box$3") + A;
|
|
842
842
|
}
|
|
843
843
|
break;
|
|
844
844
|
// writing-mode
|
|
845
845
|
case 5936:
|
|
846
|
-
switch (
|
|
846
|
+
switch (rA(A, e + 11)) {
|
|
847
847
|
// vertical-l(r)
|
|
848
848
|
case 114:
|
|
849
849
|
return H + A + nA + O(A, /[svh]\w+-[tblr]{2}/, "tb") + A;
|
|
@@ -1060,8 +1060,8 @@ function ct() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
var l = c, k = d, E = a, D = s, T = e,
|
|
1064
|
-
function
|
|
1063
|
+
var l = c, k = d, E = a, D = s, T = e, X = p, N = n, J = C, K = w, AA = r, _ = i, Z = o, q = g, U = !1;
|
|
1064
|
+
function eA(B) {
|
|
1065
1065
|
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.")), f(B) || y(B) === c;
|
|
1066
1066
|
}
|
|
1067
1067
|
function f(B) {
|
|
@@ -1100,7 +1100,7 @@ function ct() {
|
|
|
1100
1100
|
function me(B) {
|
|
1101
1101
|
return y(B) === g;
|
|
1102
1102
|
}
|
|
1103
|
-
F.AsyncMode = l, F.ConcurrentMode = k, F.ContextConsumer = E, F.ContextProvider = D, F.Element = T, F.ForwardRef =
|
|
1103
|
+
F.AsyncMode = l, F.ConcurrentMode = k, F.ContextConsumer = E, F.ContextProvider = D, F.Element = T, F.ForwardRef = X, F.Fragment = N, F.Lazy = J, F.Memo = K, F.Portal = AA, F.Profiler = _, F.StrictMode = Z, F.Suspense = q, F.isAsyncMode = eA, F.isConcurrentMode = f, F.isContextConsumer = x, F.isContextProvider = M, F.isElement = L, F.isForwardRef = P, F.isFragment = tA, F.isLazy = aA, F.isMemo = bA, F.isPortal = Y, F.isProfiler = vA, F.isStrictMode = HA, F.isSuspense = me, F.isValidElementType = h, F.typeOf = y;
|
|
1104
1104
|
}()), F;
|
|
1105
1105
|
}
|
|
1106
1106
|
var p1;
|
|
@@ -2533,7 +2533,7 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
|
|
|
2533
2533
|
emptyText: r,
|
|
2534
2534
|
typographyProps: n = { color: "text.secondary", variant: "body2" },
|
|
2535
2535
|
skeletonProps: o
|
|
2536
|
-
}) => A ? /* @__PURE__ */ t(z, { ...n, children: /* @__PURE__ */ t(cA, { ...o }) }) : e ? /* @__PURE__ */ t(z, { ...n, children: e }) : /* @__PURE__ */ t(z, { ...n, color: "text.disabled", children: r }),
|
|
2536
|
+
}) => A ? /* @__PURE__ */ t(z, { ...n, children: /* @__PURE__ */ t(cA, { ...o }) }) : e ? /* @__PURE__ */ t(z, { ...n, children: e }) : /* @__PURE__ */ t(z, { ...n, color: "text.disabled", children: r }), $ = {
|
|
2537
2537
|
large: {
|
|
2538
2538
|
primary: 40,
|
|
2539
2539
|
secondary: 32
|
|
@@ -2547,32 +2547,32 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
|
|
|
2547
2547
|
secondary: 16
|
|
2548
2548
|
}
|
|
2549
2549
|
}, Ve = (A) => A !== void 0 && typeof A == "object" && !Array.isArray(A), de = (A) => {
|
|
2550
|
-
if (A === void 0) return
|
|
2550
|
+
if (A === void 0) return $.medium.primary;
|
|
2551
2551
|
if (typeof A == "number")
|
|
2552
2552
|
return A;
|
|
2553
2553
|
const e = parseFloat(A);
|
|
2554
|
-
return Number.isNaN(e) ?
|
|
2554
|
+
return Number.isNaN(e) ? $.medium.primary : e;
|
|
2555
2555
|
}, tn = (A, e) => {
|
|
2556
2556
|
if (e)
|
|
2557
2557
|
return {
|
|
2558
|
-
height:
|
|
2559
|
-
width:
|
|
2558
|
+
height: $[e].secondary,
|
|
2559
|
+
width: $[e].secondary
|
|
2560
2560
|
};
|
|
2561
2561
|
if (Ve(A)) {
|
|
2562
2562
|
const { height: r, width: n } = A;
|
|
2563
2563
|
return {
|
|
2564
|
-
height: Math.max(de(r) - (
|
|
2565
|
-
width: Math.max(de(n) - (
|
|
2564
|
+
height: Math.max(de(r) - ($.medium.primary - $.medium.secondary), $.small.secondary),
|
|
2565
|
+
width: Math.max(de(n) - ($.medium.primary - $.medium.secondary), $.small.secondary)
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
2568
|
return {
|
|
2569
|
-
height:
|
|
2570
|
-
width:
|
|
2569
|
+
height: $.medium.secondary,
|
|
2570
|
+
width: $.medium.secondary
|
|
2571
2571
|
};
|
|
2572
2572
|
}, G1 = iA(
|
|
2573
2573
|
({ secondarySrc: A, secondaryAvatarProps: e, size: r, ...n }, o) => {
|
|
2574
2574
|
if (A || e) {
|
|
2575
|
-
const i = r ?
|
|
2575
|
+
const i = r ? $[r].primary : de(Ve(n.sx) ? n.sx.width : void 0), s = r ? $[r].primary : de(Ve(n.sx) ? n.sx.height : void 0), a = tn(n?.sx, r), c = a.width / 3, d = a.height / 3;
|
|
2576
2576
|
return /* @__PURE__ */ m(
|
|
2577
2577
|
R,
|
|
2578
2578
|
{
|
|
@@ -2590,8 +2590,8 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
|
|
|
2590
2590
|
ref: o,
|
|
2591
2591
|
sx: {
|
|
2592
2592
|
...r && {
|
|
2593
|
-
height:
|
|
2594
|
-
width:
|
|
2593
|
+
height: $[r].primary,
|
|
2594
|
+
width: $[r].primary
|
|
2595
2595
|
},
|
|
2596
2596
|
...n.sx
|
|
2597
2597
|
}
|
|
@@ -2623,7 +2623,7 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
|
|
|
2623
2623
|
...n,
|
|
2624
2624
|
ref: o,
|
|
2625
2625
|
sx: {
|
|
2626
|
-
...r && { height:
|
|
2626
|
+
...r && { height: $[r].primary, width: $[r].primary },
|
|
2627
2627
|
...n.sx
|
|
2628
2628
|
}
|
|
2629
2629
|
}
|
|
@@ -2801,17 +2801,17 @@ const nn = (A, e) => {
|
|
|
2801
2801
|
height: C = 152,
|
|
2802
2802
|
width: u = 220
|
|
2803
2803
|
}) => {
|
|
2804
|
-
const [b, I] = G(!1), [S, h] = G(!1), [y, l] = G(!0), k = A?.toLowerCase(), E = !k?.endsWith(".pdf") && !k?.startsWith("blob:") && !k?.endsWith(".eml"), D = k?.endsWith(".pdf"), T = c ? 1 : 0.8,
|
|
2804
|
+
const [b, I] = G(!1), [S, h] = G(!1), [y, l] = G(!0), k = A?.toLowerCase(), E = !k?.endsWith(".pdf") && !k?.startsWith("blob:") && !k?.endsWith(".eml"), D = k?.endsWith(".pdf"), T = c ? 1 : 0.8, X = d ? !0 : !y, N = Fe(A) || Fe(e), J = (E || D) && !N && X && !S && !c && A, K = A?.split(".").pop()?.toLowerCase(), AA = r || A?.split("/").pop()?.split("?")[0] || "", _ = () => N ? q1 : S ? an : e || A || void 0, Z = () => {
|
|
2805
2805
|
I((x) => !x);
|
|
2806
2806
|
}, q = () => {
|
|
2807
2807
|
I(!1), g?.();
|
|
2808
2808
|
}, U = () => {
|
|
2809
2809
|
h(!0);
|
|
2810
|
-
},
|
|
2810
|
+
}, eA = () => {
|
|
2811
2811
|
l(!1);
|
|
2812
2812
|
};
|
|
2813
2813
|
return /* @__PURE__ */ m(mA, { children: [
|
|
2814
|
-
!d && !n && /* @__PURE__ */ t(Be, { title: N ?
|
|
2814
|
+
!d && !n && /* @__PURE__ */ t(Be, { title: N ? AA : "", children: /* @__PURE__ */ m(
|
|
2815
2815
|
R,
|
|
2816
2816
|
{
|
|
2817
2817
|
"data-test": "fileViewer",
|
|
@@ -2820,7 +2820,7 @@ const nn = (A, e) => {
|
|
|
2820
2820
|
onClick: async () => {
|
|
2821
2821
|
if (N && A) {
|
|
2822
2822
|
const M = await (await fetch(A)).blob(), L = window.URL.createObjectURL(M), P = document.createElement("a");
|
|
2823
|
-
P.href = L, P.download =
|
|
2823
|
+
P.href = L, P.download = AA, P.target = "_blank", document.body.appendChild(P), P.click(), setTimeout(() => {
|
|
2824
2824
|
document.body.removeChild(P), window.URL.revokeObjectURL(L);
|
|
2825
2825
|
}, 100);
|
|
2826
2826
|
}
|
|
@@ -2842,18 +2842,18 @@ const nn = (A, e) => {
|
|
|
2842
2842
|
width: "100%",
|
|
2843
2843
|
component: E ? "img" : "iframe",
|
|
2844
2844
|
height: E ? "100%" : "auto",
|
|
2845
|
-
src:
|
|
2845
|
+
src: _(),
|
|
2846
2846
|
onError: U,
|
|
2847
|
-
onLoad:
|
|
2847
|
+
onLoad: eA,
|
|
2848
2848
|
sx: {
|
|
2849
2849
|
...FA.thumb,
|
|
2850
2850
|
objectFit: N ? "contain" : "cover",
|
|
2851
2851
|
padding: N ? "15%" : 0
|
|
2852
2852
|
}
|
|
2853
2853
|
},
|
|
2854
|
-
|
|
2854
|
+
_()
|
|
2855
2855
|
),
|
|
2856
|
-
N && /* @__PURE__ */ t(z, { sx: FA.extension, variant: "body3", color: "black", children:
|
|
2856
|
+
N && /* @__PURE__ */ t(z, { sx: FA.extension, variant: "body3", color: "black", children: K })
|
|
2857
2857
|
]
|
|
2858
2858
|
}
|
|
2859
2859
|
) }),
|
|
@@ -3619,17 +3619,17 @@ const nn = (A, e) => {
|
|
|
3619
3619
|
}
|
|
3620
3620
|
}
|
|
3621
3621
|
},
|
|
3622
|
-
children: h?.map((T,
|
|
3622
|
+
children: h?.map((T, X) => {
|
|
3623
3623
|
if (UA(T)) {
|
|
3624
3624
|
if (T.key)
|
|
3625
3625
|
return T;
|
|
3626
|
-
const N = `${h}-${
|
|
3626
|
+
const N = `${h}-${X}`;
|
|
3627
3627
|
return Xe(T, { key: N });
|
|
3628
3628
|
}
|
|
3629
3629
|
if (T && typeof T == "object" && "url" in T) {
|
|
3630
|
-
const { url: N, label: J, icon:
|
|
3631
|
-
return /* @__PURE__ */ t(lr, { sx: D.menuItem, onClick: u, children: /* @__PURE__ */ m(A1, { url: N, component: o, active:
|
|
3632
|
-
|
|
3630
|
+
const { url: N, label: J, icon: K, active: AA, end: _, state: Z } = T, q = `${N}-${J}-${X}`;
|
|
3631
|
+
return /* @__PURE__ */ t(lr, { sx: D.menuItem, onClick: u, children: /* @__PURE__ */ m(A1, { url: N, component: o, active: AA, end: _, state: Z, children: [
|
|
3632
|
+
K && /* @__PURE__ */ t(cr, { children: K }),
|
|
3633
3633
|
J && /* @__PURE__ */ t(BA, { children: J })
|
|
3634
3634
|
] }, q) }, q);
|
|
3635
3635
|
}
|
|
@@ -4790,12 +4790,14 @@ const nn = (A, e) => {
|
|
|
4790
4790
|
value: b,
|
|
4791
4791
|
variant: I = "vertical"
|
|
4792
4792
|
}, S) => {
|
|
4793
|
-
const [h, y] = G(null), { t: l } = Ar(), { palette: k } = uA(), E = I === "vertical", D = a || e, T = Te(null),
|
|
4793
|
+
const [h, y] = G(null), { t: l } = Ar(), { palette: k } = uA(), E = I === "vertical", D = a || e, T = Te(null), X = Te(null), N = b !== void 0 ? b : h, J = Bn(N);
|
|
4794
4794
|
kr(S, () => ({
|
|
4795
|
-
input:
|
|
4796
|
-
reset: () =>
|
|
4795
|
+
input: X.current,
|
|
4796
|
+
reset: () => {
|
|
4797
|
+
y(null), X.current && (X.current.value = "");
|
|
4798
|
+
}
|
|
4797
4799
|
}));
|
|
4798
|
-
const
|
|
4800
|
+
const K = (Z) => {
|
|
4799
4801
|
v?.(Z), y(Z.target.files);
|
|
4800
4802
|
};
|
|
4801
4803
|
return /* @__PURE__ */ m(
|
|
@@ -4808,10 +4810,10 @@ const nn = (A, e) => {
|
|
|
4808
4810
|
},
|
|
4809
4811
|
onDrop: (Z) => {
|
|
4810
4812
|
if (Z.preventDefault(), Z.dataTransfer.files.length > 0) {
|
|
4811
|
-
const q =
|
|
4813
|
+
const q = X.current, U = Z.dataTransfer.files;
|
|
4812
4814
|
y(U);
|
|
4813
|
-
const
|
|
4814
|
-
Array.from(U).forEach((f) =>
|
|
4815
|
+
const eA = new DataTransfer();
|
|
4816
|
+
Array.from(U).forEach((f) => eA.items.add(f)), q && (q.files = eA.files), q?.focus(), q?.blur(), v?.({ ...Z, target: q }), Z.dataTransfer.clearData();
|
|
4815
4817
|
}
|
|
4816
4818
|
},
|
|
4817
4819
|
sx: {
|
|
@@ -4870,7 +4872,7 @@ const nn = (A, e) => {
|
|
|
4870
4872
|
"input",
|
|
4871
4873
|
{
|
|
4872
4874
|
id: D,
|
|
4873
|
-
ref:
|
|
4875
|
+
ref: X,
|
|
4874
4876
|
type: "file",
|
|
4875
4877
|
title: u,
|
|
4876
4878
|
disabled: r,
|
|
@@ -4879,7 +4881,7 @@ const nn = (A, e) => {
|
|
|
4879
4881
|
multiple: s,
|
|
4880
4882
|
accept: A,
|
|
4881
4883
|
pattern: C,
|
|
4882
|
-
onChange:
|
|
4884
|
+
onChange: K,
|
|
4883
4885
|
style: {
|
|
4884
4886
|
left: "50%",
|
|
4885
4887
|
opacity: 0,
|
|
@@ -4956,13 +4958,13 @@ const nn = (A, e) => {
|
|
|
4956
4958
|
children: [
|
|
4957
4959
|
r?.map(
|
|
4958
4960
|
({ id: g, title: v, subtitle: w, image: C, thumbnail: u, secondaryAction: b, chipLabel: I, chipColor: S, onClick: h, icon: y, Avatar: l }, k) => {
|
|
4959
|
-
const E = `key-${k}-${v}-${g}`, D = !!C?.toLowerCase()?.endsWith(".pdf"), T = B1(C),
|
|
4961
|
+
const E = `key-${k}-${v}-${g}`, D = !!C?.toLowerCase()?.endsWith(".pdf"), T = B1(C), X = B1(u), N = Fe(C), J = h ? "none" : void 0, K = a || !!y || !T || N, AA = !!h || !!(!h && !a && (u || C)), _ = d === E, U = (X ? u : "") || (T ? C : "") || "";
|
|
4960
4962
|
return /* @__PURE__ */ m(
|
|
4961
4963
|
EA,
|
|
4962
4964
|
{
|
|
4963
4965
|
secondaryAction: b,
|
|
4964
|
-
onClick: (
|
|
4965
|
-
h?.(
|
|
4966
|
+
onClick: (eA) => {
|
|
4967
|
+
h?.(eA, {
|
|
4966
4968
|
...y && { icon: y },
|
|
4967
4969
|
...g && { id: g },
|
|
4968
4970
|
...C && { image: C },
|
|
@@ -4971,7 +4973,7 @@ const nn = (A, e) => {
|
|
|
4971
4973
|
...v && { thumbnail: u },
|
|
4972
4974
|
isFile: N,
|
|
4973
4975
|
isPdf: D
|
|
4974
|
-
}),
|
|
4976
|
+
}), AA && !_ && !h && p(E);
|
|
4975
4977
|
},
|
|
4976
4978
|
sx: {
|
|
4977
4979
|
...ZA.listItem,
|
|
@@ -4981,16 +4983,16 @@ const nn = (A, e) => {
|
|
|
4981
4983
|
justifyContent: "center",
|
|
4982
4984
|
opacity: i ? 1 : 0,
|
|
4983
4985
|
position: "static",
|
|
4984
|
-
right: ({ spacing:
|
|
4986
|
+
right: ({ spacing: eA }) => eA(0.5),
|
|
4985
4987
|
transform: "none"
|
|
4986
4988
|
},
|
|
4987
4989
|
"&:hover": {
|
|
4988
4990
|
"& .MuiListItemSecondaryAction-root": {
|
|
4989
4991
|
opacity: 1
|
|
4990
4992
|
},
|
|
4991
|
-
backgroundColor: ({ palette:
|
|
4993
|
+
backgroundColor: ({ palette: eA }) => AA ? eA.action.hover : "transparent"
|
|
4992
4994
|
},
|
|
4993
|
-
cursor:
|
|
4995
|
+
cursor: AA ? "pointer" : "default"
|
|
4994
4996
|
},
|
|
4995
4997
|
children: [
|
|
4996
4998
|
l !== void 0 && /* @__PURE__ */ t(R, { marginRight: NA, children: l }),
|
|
@@ -5003,7 +5005,7 @@ const nn = (A, e) => {
|
|
|
5003
5005
|
height: 40,
|
|
5004
5006
|
sx: { borderRadius: 1, marginRight: NA },
|
|
5005
5007
|
disableLightbox: a,
|
|
5006
|
-
open:
|
|
5008
|
+
open: _,
|
|
5007
5009
|
onClose: () => p("")
|
|
5008
5010
|
}
|
|
5009
5011
|
),
|
|
@@ -5013,8 +5015,8 @@ const nn = (A, e) => {
|
|
|
5013
5015
|
disableThumb: !0,
|
|
5014
5016
|
src: C,
|
|
5015
5017
|
srcThumb: u,
|
|
5016
|
-
disableLightbox:
|
|
5017
|
-
open:
|
|
5018
|
+
disableLightbox: K,
|
|
5019
|
+
open: _,
|
|
5018
5020
|
onClose: () => p(""),
|
|
5019
5021
|
children: /* @__PURE__ */ t(
|
|
5020
5022
|
kA,
|
|
@@ -5227,16 +5229,16 @@ const nn = (A, e) => {
|
|
|
5227
5229
|
multiple: E = !0,
|
|
5228
5230
|
options: D = [],
|
|
5229
5231
|
slotProps: T,
|
|
5230
|
-
...
|
|
5232
|
+
...X
|
|
5231
5233
|
}, N) => {
|
|
5232
|
-
const [J,
|
|
5234
|
+
const [J, K] = G(!1), [AA, _] = G(""), Z = w || AA, q = A === "chip", U = Array.isArray(a) ? !!a.length : a != null, eA = Rn(a, E);
|
|
5233
5235
|
return /* @__PURE__ */ t(
|
|
5234
5236
|
gr,
|
|
5235
5237
|
{
|
|
5236
5238
|
freeSolo: !1,
|
|
5237
5239
|
multiple: E,
|
|
5238
5240
|
disableClearable: C,
|
|
5239
|
-
value:
|
|
5241
|
+
value: eA,
|
|
5240
5242
|
options: D,
|
|
5241
5243
|
loading: u,
|
|
5242
5244
|
ref: N,
|
|
@@ -5247,12 +5249,12 @@ const nn = (A, e) => {
|
|
|
5247
5249
|
e?.(x, E ? [] : null, L, P);
|
|
5248
5250
|
return;
|
|
5249
5251
|
}
|
|
5250
|
-
e?.(x, M, L, P), (!k || !E) &&
|
|
5252
|
+
e?.(x, M, L, P), (!k || !E) && K(!1);
|
|
5251
5253
|
},
|
|
5252
5254
|
getLimitTagsText: Pn(A),
|
|
5253
5255
|
inputValue: Z,
|
|
5254
5256
|
open: p || J,
|
|
5255
|
-
onOpen: () =>
|
|
5257
|
+
onOpen: () => K(!0),
|
|
5256
5258
|
sx: {
|
|
5257
5259
|
width: h,
|
|
5258
5260
|
...y
|
|
@@ -5276,13 +5278,13 @@ const nn = (A, e) => {
|
|
|
5276
5278
|
}
|
|
5277
5279
|
},
|
|
5278
5280
|
onInputChange: (x, M, L) => {
|
|
5279
|
-
L === "reset" && J && !b || L === "selectOption" && !b || L === "removeOption" && !b || (w ||
|
|
5281
|
+
L === "reset" && J && !b || L === "selectOption" && !b || L === "removeOption" && !b || (w || _(M), v?.(x, M, L));
|
|
5280
5282
|
},
|
|
5281
5283
|
onFocus: (x) => {
|
|
5282
|
-
|
|
5284
|
+
K(!0), c?.(x);
|
|
5283
5285
|
},
|
|
5284
5286
|
onBlur: (x) => {
|
|
5285
|
-
|
|
5287
|
+
K(!1), d?.(x);
|
|
5286
5288
|
},
|
|
5287
5289
|
getOptionLabel: g || ((x) => {
|
|
5288
5290
|
const M = typeof x == "object" && "label" in x ? x.label : x;
|
|
@@ -5333,7 +5335,7 @@ const nn = (A, e) => {
|
|
|
5333
5335
|
{
|
|
5334
5336
|
size: "small",
|
|
5335
5337
|
onClick: (P) => {
|
|
5336
|
-
P.preventDefault(), P.stopPropagation(),
|
|
5338
|
+
P.preventDefault(), P.stopPropagation(), _(""), v?.(P, "", "clear"), U && e?.(P, E ? [] : null, "clear");
|
|
5337
5339
|
},
|
|
5338
5340
|
onMouseDown: (P) => {
|
|
5339
5341
|
P.preventDefault(), P.stopPropagation();
|
|
@@ -5392,7 +5394,7 @@ const nn = (A, e) => {
|
|
|
5392
5394
|
{
|
|
5393
5395
|
size: "small",
|
|
5394
5396
|
onClick: (P) => {
|
|
5395
|
-
|
|
5397
|
+
_(""), v?.(P, "", "clear");
|
|
5396
5398
|
},
|
|
5397
5399
|
sx: { marginRight: "-3px" },
|
|
5398
5400
|
children: /* @__PURE__ */ t(le, { sx: { fontSize: j(20) } })
|
|
@@ -5444,7 +5446,7 @@ const nn = (A, e) => {
|
|
|
5444
5446
|
}
|
|
5445
5447
|
);
|
|
5446
5448
|
},
|
|
5447
|
-
...
|
|
5449
|
+
...X
|
|
5448
5450
|
}
|
|
5449
5451
|
);
|
|
5450
5452
|
}, io = iA(Ln), Dn = ({
|