@tracktor/design-system 4.8.2 → 4.9.0
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 +9 -9
- package/dist/main.js +918 -903
- package/dist/src/components/Inputs/ChipFilter/ChipFilter.d.ts +42 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useTheme as fe, Box as T, Skeleton as ce, Tab as i1, Card as zA, GlobalStyles as ze, TextareaAutosize as a1, InputAdornment as Pe, IconButton as ue, SvgIcon as pe, TextField as gA, Toolbar as s1, Stack as Q, AppBar as RA, Typography as
|
|
1
|
+
import { useTheme as fe, Box as T, Skeleton as ce, Tab as i1, Card as zA, GlobalStyles as ze, TextareaAutosize as a1, InputAdornment as Pe, IconButton as ue, SvgIcon as pe, TextField as gA, Toolbar as s1, Stack as Q, AppBar as RA, Typography as Y, Divider as JA, Fade as UA, List as sA, ListItem as Ie, Chip as Te, useMediaQuery as Je, SwipeableDrawer as l1, Alert as YA, alpha as ge, Button as Ue, CircularProgress as Tr, Modal as c1, Avatar as Se, Tooltip as MA, Collapse as or, CardContent as d1, Menu as Lr, MenuItem as Dr, ListItemIcon as Hr, ListItemText as Ee, Backdrop as Or, responsiveFontSizes as WA, createTheme as Re, getOverlayAlpha as PA, css as lA, CssBaseline as p1, ThemeProvider as u1, InputLabel as f1, ListItemButton as TA, Checkbox as cA, ListItemAvatar as g1, Autocomplete as h1, Paper as GA, Badge as C1, Slide as x1, Popper as m1, DialogContent as b1, DialogContentText as y1, DialogActions as w1, Dialog as v1, Radio as E1, Snackbar as I1 } from "@mui/material";
|
|
2
2
|
export * from "@mui/material";
|
|
3
3
|
import * as ye from "react";
|
|
4
|
-
import k1, { createContext as hA, useContext as we, useCallback as oe, forwardRef as ie, useState as
|
|
4
|
+
import k1, { createContext as hA, useContext as we, useCallback as oe, forwardRef as ie, useState as q, useEffect as qA, cloneElement as XA, isValidElement as Ye, memo as Qr, useMemo as We, useRef as LA, Children as S1, useImperativeHandle as B1 } from "react";
|
|
5
5
|
import { createElement as R1 } from "@emotion/react";
|
|
6
6
|
const M1 = {
|
|
7
7
|
disabledPermissions: void 0,
|
|
@@ -11,8 +11,8 @@ const M1 = {
|
|
|
11
11
|
}, Vr = hA(M1), DA = "or", vA = (e, A) => e === "" || !A.length ? !1 : A.some((r) => e === r), P1 = () => {
|
|
12
12
|
const { permissions: e, setPermissions: A, disabledPermissions: r } = we(Vr), n = oe(
|
|
13
13
|
(i, s, a = DA) => {
|
|
14
|
-
const
|
|
15
|
-
return
|
|
14
|
+
const d = [...s || [], ...e || []].filter((u) => !r?.includes(u));
|
|
15
|
+
return d.length ? Array.isArray(i) ? a === DA ? i.some((u) => vA(u, d)) : i.every((u) => vA(u, d)) : vA(i, d) : !1;
|
|
16
16
|
},
|
|
17
17
|
[r, e]
|
|
18
18
|
);
|
|
@@ -86,41 +86,41 @@ function L1() {
|
|
|
86
86
|
function e(g) {
|
|
87
87
|
if (g == null) return null;
|
|
88
88
|
if (typeof g == "function")
|
|
89
|
-
return g.$$typeof ===
|
|
89
|
+
return g.$$typeof === X ? null : g.displayName || g.name || null;
|
|
90
90
|
if (typeof g == "string") return g;
|
|
91
91
|
switch (g) {
|
|
92
|
-
case
|
|
92
|
+
case p:
|
|
93
93
|
return "Fragment";
|
|
94
|
-
case
|
|
94
|
+
case k:
|
|
95
95
|
return "Profiler";
|
|
96
|
-
case
|
|
96
|
+
case b:
|
|
97
97
|
return "StrictMode";
|
|
98
98
|
case l:
|
|
99
99
|
return "Suspense";
|
|
100
|
-
case
|
|
100
|
+
case I:
|
|
101
101
|
return "SuspenseList";
|
|
102
|
-
case
|
|
102
|
+
case D:
|
|
103
103
|
return "Activity";
|
|
104
104
|
}
|
|
105
105
|
if (typeof g == "object")
|
|
106
106
|
switch (typeof g.tag == "number" && console.error(
|
|
107
107
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
108
108
|
), g.$$typeof) {
|
|
109
|
-
case C:
|
|
110
|
-
return "Portal";
|
|
111
109
|
case h:
|
|
110
|
+
return "Portal";
|
|
111
|
+
case C:
|
|
112
112
|
return (g.displayName || "Context") + ".Provider";
|
|
113
|
-
case
|
|
113
|
+
case S:
|
|
114
114
|
return (g._context.displayName || "Context") + ".Consumer";
|
|
115
|
-
case
|
|
116
|
-
var
|
|
117
|
-
return g = g.displayName, g || (g =
|
|
115
|
+
case y:
|
|
116
|
+
var w = g.render;
|
|
117
|
+
return g = g.displayName, g || (g = w.displayName || w.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
118
118
|
case E:
|
|
119
|
-
return
|
|
119
|
+
return w = g.displayName || null, w !== null ? w : e(g.type) || "Memo";
|
|
120
120
|
case H:
|
|
121
|
-
|
|
121
|
+
w = g._payload, g = g._init;
|
|
122
122
|
try {
|
|
123
|
-
return e(g(
|
|
123
|
+
return e(g(w));
|
|
124
124
|
} catch {
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -132,50 +132,50 @@ function L1() {
|
|
|
132
132
|
function r(g) {
|
|
133
133
|
try {
|
|
134
134
|
A(g);
|
|
135
|
-
var
|
|
135
|
+
var w = !1;
|
|
136
136
|
} catch {
|
|
137
|
-
|
|
137
|
+
w = !0;
|
|
138
138
|
}
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
var M =
|
|
139
|
+
if (w) {
|
|
140
|
+
w = console;
|
|
141
|
+
var M = w.error, O = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
142
142
|
return M.call(
|
|
143
|
-
|
|
143
|
+
w,
|
|
144
144
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
145
145
|
O
|
|
146
146
|
), A(g);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
function n(g) {
|
|
150
|
-
if (g ===
|
|
150
|
+
if (g === p) return "<>";
|
|
151
151
|
if (typeof g == "object" && g !== null && g.$$typeof === H)
|
|
152
152
|
return "<...>";
|
|
153
153
|
try {
|
|
154
|
-
var
|
|
155
|
-
return
|
|
154
|
+
var w = e(g);
|
|
155
|
+
return w ? "<" + w + ">" : "<...>";
|
|
156
156
|
} catch {
|
|
157
157
|
return "<...>";
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function o() {
|
|
161
|
-
var g =
|
|
161
|
+
var g = V.A;
|
|
162
162
|
return g === null ? null : g.getOwner();
|
|
163
163
|
}
|
|
164
164
|
function i() {
|
|
165
165
|
return Error("react-stack-top-frame");
|
|
166
166
|
}
|
|
167
167
|
function s(g) {
|
|
168
|
-
if (
|
|
169
|
-
var
|
|
170
|
-
if (
|
|
168
|
+
if (W.call(g, "key")) {
|
|
169
|
+
var w = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
170
|
+
if (w && w.isReactWarning) return !1;
|
|
171
171
|
}
|
|
172
172
|
return g.key !== void 0;
|
|
173
173
|
}
|
|
174
|
-
function a(g,
|
|
174
|
+
function a(g, w) {
|
|
175
175
|
function M() {
|
|
176
|
-
|
|
176
|
+
P || (P = !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
|
+
w
|
|
179
179
|
));
|
|
180
180
|
}
|
|
181
181
|
M.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
@@ -183,22 +183,22 @@ function L1() {
|
|
|
183
183
|
configurable: !0
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function c() {
|
|
187
187
|
var g = e(this.type);
|
|
188
|
-
return
|
|
188
|
+
return R[g] || (R[g] = !0, console.error(
|
|
189
189
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
190
190
|
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function d(g, w, M, O, L, te, ae, be) {
|
|
193
193
|
return M = te.ref, g = {
|
|
194
|
-
$$typeof:
|
|
194
|
+
$$typeof: x,
|
|
195
195
|
type: g,
|
|
196
|
-
key:
|
|
196
|
+
key: w,
|
|
197
197
|
props: te,
|
|
198
|
-
_owner:
|
|
198
|
+
_owner: L
|
|
199
199
|
}, (M !== void 0 ? M : null) !== null ? Object.defineProperty(g, "ref", {
|
|
200
200
|
enumerable: !1,
|
|
201
|
-
get:
|
|
201
|
+
get: c
|
|
202
202
|
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
203
203
|
configurable: !1,
|
|
204
204
|
enumerable: !1,
|
|
@@ -221,25 +221,25 @@ function L1() {
|
|
|
221
221
|
value: be
|
|
222
222
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
var
|
|
226
|
-
if (
|
|
224
|
+
function u(g, w, M, O, L, te, ae, be) {
|
|
225
|
+
var $ = w.children;
|
|
226
|
+
if ($ !== void 0)
|
|
227
227
|
if (O)
|
|
228
|
-
if (
|
|
229
|
-
for (O = 0; O <
|
|
230
|
-
f(
|
|
231
|
-
Object.freeze && Object.freeze(
|
|
228
|
+
if (G($)) {
|
|
229
|
+
for (O = 0; O < $.length; O++)
|
|
230
|
+
f($[O]);
|
|
231
|
+
Object.freeze && Object.freeze($);
|
|
232
232
|
} else
|
|
233
233
|
console.error(
|
|
234
234
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
235
235
|
);
|
|
236
|
-
else f(
|
|
237
|
-
if (
|
|
238
|
-
|
|
239
|
-
var ve = Object.keys(
|
|
236
|
+
else f($);
|
|
237
|
+
if (W.call(w, "key")) {
|
|
238
|
+
$ = e(g);
|
|
239
|
+
var ve = Object.keys(w).filter(function(yA) {
|
|
240
240
|
return yA !== "key";
|
|
241
241
|
});
|
|
242
|
-
O = 0 < ve.length ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}", Ae[
|
|
242
|
+
O = 0 < ve.length ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}", Ae[$ + O] || (ve = 0 < ve.length ? "{" + ve.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} />
|
|
@@ -247,24 +247,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
let props = %s;
|
|
248
248
|
<%s key={someKey} {...props} />`,
|
|
249
249
|
O,
|
|
250
|
-
|
|
250
|
+
$,
|
|
251
251
|
ve,
|
|
252
|
-
|
|
253
|
-
), Ae[
|
|
252
|
+
$
|
|
253
|
+
), Ae[$ + O] = !0);
|
|
254
254
|
}
|
|
255
|
-
if (
|
|
255
|
+
if ($ = null, M !== void 0 && (r(M), $ = "" + M), s(w) && (r(w.key), $ = "" + w.key), "key" in w) {
|
|
256
256
|
M = {};
|
|
257
|
-
for (var Oe in
|
|
258
|
-
Oe !== "key" && (M[Oe] =
|
|
259
|
-
} else M =
|
|
260
|
-
return
|
|
257
|
+
for (var Oe in w)
|
|
258
|
+
Oe !== "key" && (M[Oe] = w[Oe]);
|
|
259
|
+
} else M = w;
|
|
260
|
+
return $ && a(
|
|
261
261
|
M,
|
|
262
262
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
263
|
-
),
|
|
263
|
+
), d(
|
|
264
264
|
g,
|
|
265
|
-
|
|
265
|
+
$,
|
|
266
266
|
te,
|
|
267
|
-
|
|
267
|
+
L,
|
|
268
268
|
o(),
|
|
269
269
|
M,
|
|
270
270
|
ae,
|
|
@@ -272,9 +272,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
274
|
function f(g) {
|
|
275
|
-
typeof g == "object" && g !== null && g.$$typeof ===
|
|
275
|
+
typeof g == "object" && g !== null && g.$$typeof === x && g._store && (g._store.validated = 1);
|
|
276
276
|
}
|
|
277
|
-
var v = k1,
|
|
277
|
+
var v = k1, x = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), C = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), V = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, G = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
278
278
|
return null;
|
|
279
279
|
};
|
|
280
280
|
v = {
|
|
@@ -282,33 +282,33 @@ React keys must be passed directly to JSX without using spread:
|
|
|
282
282
|
return g();
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
|
-
var
|
|
285
|
+
var P, R = {}, U = v["react-stack-bottom-frame"].bind(
|
|
286
286
|
v,
|
|
287
287
|
i
|
|
288
|
-
)(),
|
|
289
|
-
Ve.Fragment =
|
|
290
|
-
var te = 1e4 >
|
|
291
|
-
return
|
|
288
|
+
)(), z = K(n(i)), Ae = {};
|
|
289
|
+
Ve.Fragment = p, Ve.jsx = function(g, w, M, O, L) {
|
|
290
|
+
var te = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
291
|
+
return u(
|
|
292
292
|
g,
|
|
293
|
-
|
|
293
|
+
w,
|
|
294
294
|
M,
|
|
295
295
|
!1,
|
|
296
296
|
O,
|
|
297
|
-
|
|
298
|
-
te ? Error("react-stack-top-frame") :
|
|
299
|
-
te ?
|
|
297
|
+
L,
|
|
298
|
+
te ? Error("react-stack-top-frame") : U,
|
|
299
|
+
te ? K(n(g)) : z
|
|
300
300
|
);
|
|
301
|
-
}, Ve.jsxs = function(g,
|
|
302
|
-
var te = 1e4 >
|
|
303
|
-
return
|
|
301
|
+
}, Ve.jsxs = function(g, w, M, O, L) {
|
|
302
|
+
var te = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
303
|
+
return u(
|
|
304
304
|
g,
|
|
305
|
-
|
|
305
|
+
w,
|
|
306
306
|
M,
|
|
307
307
|
!0,
|
|
308
308
|
O,
|
|
309
|
-
|
|
310
|
-
te ? Error("react-stack-top-frame") :
|
|
311
|
-
te ?
|
|
309
|
+
L,
|
|
310
|
+
te ? Error("react-stack-top-frame") : U,
|
|
311
|
+
te ? K(n(g)) : z
|
|
312
312
|
);
|
|
313
313
|
};
|
|
314
314
|
}()), Ve;
|
|
@@ -358,7 +358,7 @@ var Q1 = /* @__PURE__ */ function() {
|
|
|
358
358
|
return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
|
|
359
359
|
}), this.tags = [], this.ctr = 0;
|
|
360
360
|
}, e;
|
|
361
|
-
}(), ne = "-ms-", dA = "-moz-",
|
|
361
|
+
}(), ne = "-ms-", dA = "-moz-", F = "-webkit-", Fr = "comm", $A = "rule", _A = "decl", V1 = "@import", Nr = "@keyframes", F1 = "@layer", N1 = Math.abs, CA = String.fromCharCode, Z1 = Object.assign;
|
|
362
362
|
function j1(e, A) {
|
|
363
363
|
return re(e, 0) ^ 45 ? (((A << 2 ^ re(e, 0)) << 2 ^ re(e, 1)) << 2 ^ re(e, 2)) << 2 ^ re(e, 3) : 0;
|
|
364
364
|
}
|
|
@@ -368,7 +368,7 @@ function Zr(e) {
|
|
|
368
368
|
function z1(e, A) {
|
|
369
369
|
return (e = A.exec(e)) ? e[0] : e;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function N(e, A, r) {
|
|
372
372
|
return e.replace(A, r);
|
|
373
373
|
}
|
|
374
374
|
function HA(e, A) {
|
|
@@ -392,7 +392,7 @@ function rA(e, A) {
|
|
|
392
392
|
function J1(e, A) {
|
|
393
393
|
return e.map(A).join("");
|
|
394
394
|
}
|
|
395
|
-
var xA = 1, Le = 1, jr = 0, le = 0,
|
|
395
|
+
var xA = 1, Le = 1, jr = 0, le = 0, _ = 0, De = "";
|
|
396
396
|
function mA(e, A, r, n, o, i, s) {
|
|
397
397
|
return { value: e, root: A, parent: r, type: n, props: o, children: i, line: xA, column: Le, length: s, return: "" };
|
|
398
398
|
}
|
|
@@ -400,13 +400,13 @@ function Fe(e, A) {
|
|
|
400
400
|
return Z1(mA("", null, null, "", null, null, 0), e, { length: -e.length }, A);
|
|
401
401
|
}
|
|
402
402
|
function U1() {
|
|
403
|
-
return
|
|
403
|
+
return _;
|
|
404
404
|
}
|
|
405
405
|
function Y1() {
|
|
406
|
-
return
|
|
406
|
+
return _ = le > 0 ? re(De, --le) : 0, Le--, _ === 10 && (Le = 1, xA--), _;
|
|
407
407
|
}
|
|
408
408
|
function de() {
|
|
409
|
-
return
|
|
409
|
+
return _ = le < jr ? re(De, le++) : 0, Le++, _ === 10 && (Le = 1, xA++), _;
|
|
410
410
|
}
|
|
411
411
|
function me() {
|
|
412
412
|
return re(De, le);
|
|
@@ -465,25 +465,25 @@ function oA(e) {
|
|
|
465
465
|
return Zr(Ke(le - 1, OA(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
466
466
|
}
|
|
467
467
|
function W1(e) {
|
|
468
|
-
for (; (
|
|
468
|
+
for (; (_ = me()) && _ < 33; )
|
|
469
469
|
de();
|
|
470
|
-
return Xe(e) > 2 || Xe(
|
|
470
|
+
return Xe(e) > 2 || Xe(_) > 3 ? "" : " ";
|
|
471
471
|
}
|
|
472
472
|
function G1(e, A) {
|
|
473
|
-
for (; --A && de() && !(
|
|
473
|
+
for (; --A && de() && !(_ < 48 || _ > 102 || _ > 57 && _ < 65 || _ > 70 && _ < 97); )
|
|
474
474
|
;
|
|
475
475
|
return Ke(e, nA() + (A < 6 && me() == 32 && de() == 32));
|
|
476
476
|
}
|
|
477
477
|
function OA(e) {
|
|
478
478
|
for (; de(); )
|
|
479
|
-
switch (
|
|
479
|
+
switch (_) {
|
|
480
480
|
// ] ) " '
|
|
481
481
|
case e:
|
|
482
482
|
return le;
|
|
483
483
|
// " '
|
|
484
484
|
case 34:
|
|
485
485
|
case 39:
|
|
486
|
-
e !== 34 && e !== 39 && OA(
|
|
486
|
+
e !== 34 && e !== 39 && OA(_);
|
|
487
487
|
break;
|
|
488
488
|
// (
|
|
489
489
|
case 40:
|
|
@@ -497,8 +497,8 @@ function OA(e) {
|
|
|
497
497
|
return le;
|
|
498
498
|
}
|
|
499
499
|
function q1(e, A) {
|
|
500
|
-
for (; de() && e +
|
|
501
|
-
if (e +
|
|
500
|
+
for (; de() && e + _ !== 57; )
|
|
501
|
+
if (e + _ === 84 && me() === 47)
|
|
502
502
|
break;
|
|
503
503
|
return "/*" + Ke(A, le - 1) + "*" + CA(e === 47 ? e : de());
|
|
504
504
|
}
|
|
@@ -510,27 +510,27 @@ function X1(e) {
|
|
|
510
510
|
function $1(e) {
|
|
511
511
|
return Jr(iA("", null, null, null, [""], e = zr(e), 0, [0], e));
|
|
512
512
|
}
|
|
513
|
-
function iA(e, A, r, n, o, i, s, a,
|
|
514
|
-
for (var
|
|
515
|
-
switch (
|
|
513
|
+
function iA(e, A, r, n, o, i, s, a, c) {
|
|
514
|
+
for (var d = 0, u = 0, f = s, v = 0, x = 0, h = 0, p = 1, b = 1, k = 1, S = 0, C = "", y = o, l = i, I = n, E = C; b; )
|
|
515
|
+
switch (h = S, S = de()) {
|
|
516
516
|
// (
|
|
517
517
|
case 40:
|
|
518
|
-
if (
|
|
519
|
-
HA(E +=
|
|
518
|
+
if (h != 108 && re(E, f - 1) == 58) {
|
|
519
|
+
HA(E += N(oA(S), "&", "&\f"), "&\f") != -1 && (k = -1);
|
|
520
520
|
break;
|
|
521
521
|
}
|
|
522
522
|
// " ' [
|
|
523
523
|
case 34:
|
|
524
524
|
case 39:
|
|
525
525
|
case 91:
|
|
526
|
-
E += oA(
|
|
526
|
+
E += oA(S);
|
|
527
527
|
break;
|
|
528
528
|
// \t \n \r \s
|
|
529
529
|
case 9:
|
|
530
530
|
case 10:
|
|
531
531
|
case 13:
|
|
532
532
|
case 32:
|
|
533
|
-
E += W1(
|
|
533
|
+
E += W1(h);
|
|
534
534
|
break;
|
|
535
535
|
// \
|
|
536
536
|
case 92:
|
|
@@ -541,36 +541,36 @@ function iA(e, A, r, n, o, i, s, a, d) {
|
|
|
541
541
|
switch (me()) {
|
|
542
542
|
case 42:
|
|
543
543
|
case 47:
|
|
544
|
-
rA(_1(q1(de(), nA()), A, r),
|
|
544
|
+
rA(_1(q1(de(), nA()), A, r), c);
|
|
545
545
|
break;
|
|
546
546
|
default:
|
|
547
547
|
E += "/";
|
|
548
548
|
}
|
|
549
549
|
break;
|
|
550
550
|
// {
|
|
551
|
-
case 123 *
|
|
552
|
-
a[
|
|
551
|
+
case 123 * p:
|
|
552
|
+
a[d++] = Ce(E) * k;
|
|
553
553
|
// } ; \0
|
|
554
|
-
case 125 *
|
|
554
|
+
case 125 * p:
|
|
555
555
|
case 59:
|
|
556
556
|
case 0:
|
|
557
|
-
switch (
|
|
557
|
+
switch (S) {
|
|
558
558
|
// \0 }
|
|
559
559
|
case 0:
|
|
560
560
|
case 125:
|
|
561
|
-
|
|
561
|
+
b = 0;
|
|
562
562
|
// ;
|
|
563
|
-
case 59 +
|
|
564
|
-
|
|
563
|
+
case 59 + u:
|
|
564
|
+
k == -1 && (E = N(E, /\f/g, "")), x > 0 && Ce(E) - f && rA(x > 32 ? cr(E + ";", n, r, f - 1) : cr(N(E, " ", "") + ";", n, r, f - 2), c);
|
|
565
565
|
break;
|
|
566
566
|
// @ ;
|
|
567
567
|
case 59:
|
|
568
568
|
E += ";";
|
|
569
569
|
// { rule/at-rule
|
|
570
570
|
default:
|
|
571
|
-
if (rA(
|
|
572
|
-
if (
|
|
573
|
-
iA(E, A,
|
|
571
|
+
if (rA(I = lr(E, A, r, d, u, o, a, C, y = [], l = [], f), i), S === 123)
|
|
572
|
+
if (u === 0)
|
|
573
|
+
iA(E, A, I, I, y, i, f, a, l);
|
|
574
574
|
else
|
|
575
575
|
switch (v === 99 && re(E, 3) === 110 ? 100 : v) {
|
|
576
576
|
// d l m s
|
|
@@ -578,49 +578,49 @@ function iA(e, A, r, n, o, i, s, a, d) {
|
|
|
578
578
|
case 108:
|
|
579
579
|
case 109:
|
|
580
580
|
case 115:
|
|
581
|
-
iA(e,
|
|
581
|
+
iA(e, I, I, n && rA(lr(e, I, I, 0, 0, o, a, C, o, y = [], f), l), o, l, f, a, n ? y : l);
|
|
582
582
|
break;
|
|
583
583
|
default:
|
|
584
|
-
iA(E,
|
|
584
|
+
iA(E, I, I, I, [""], l, 0, a, l);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
d = u = x = 0, p = k = 1, C = E = "", f = s;
|
|
588
588
|
break;
|
|
589
589
|
// :
|
|
590
590
|
case 58:
|
|
591
|
-
f = 1 + Ce(E),
|
|
591
|
+
f = 1 + Ce(E), x = h;
|
|
592
592
|
default:
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
--
|
|
596
|
-
else if (
|
|
593
|
+
if (p < 1) {
|
|
594
|
+
if (S == 123)
|
|
595
|
+
--p;
|
|
596
|
+
else if (S == 125 && p++ == 0 && Y1() == 125)
|
|
597
597
|
continue;
|
|
598
598
|
}
|
|
599
|
-
switch (E += CA(
|
|
599
|
+
switch (E += CA(S), S * p) {
|
|
600
600
|
// &
|
|
601
601
|
case 38:
|
|
602
|
-
|
|
602
|
+
k = u > 0 ? 1 : (E += "\f", -1);
|
|
603
603
|
break;
|
|
604
604
|
// ,
|
|
605
605
|
case 44:
|
|
606
|
-
a[
|
|
606
|
+
a[d++] = (Ce(E) - 1) * k, k = 1;
|
|
607
607
|
break;
|
|
608
608
|
// @
|
|
609
609
|
case 64:
|
|
610
|
-
me() === 45 && (E += oA(de())), v = me(),
|
|
610
|
+
me() === 45 && (E += oA(de())), v = me(), u = f = Ce(C = E += X1(nA())), S++;
|
|
611
611
|
break;
|
|
612
612
|
// -
|
|
613
613
|
case 45:
|
|
614
|
-
|
|
614
|
+
h === 45 && Ce(E) == 2 && (p = 0);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
return i;
|
|
618
618
|
}
|
|
619
|
-
function lr(e, A, r, n, o, i, s, a,
|
|
620
|
-
for (var f = o - 1, v = o === 0 ? i : [""],
|
|
621
|
-
for (var
|
|
622
|
-
(
|
|
623
|
-
return mA(e, A, r, o === 0 ? $A : a,
|
|
619
|
+
function lr(e, A, r, n, o, i, s, a, c, d, u) {
|
|
620
|
+
for (var f = o - 1, v = o === 0 ? i : [""], x = KA(v), h = 0, p = 0, b = 0; h < n; ++h)
|
|
621
|
+
for (var k = 0, S = qe(e, f + 1, f = N1(p = s[h])), C = e; k < x; ++k)
|
|
622
|
+
(C = Zr(p > 0 ? v[k] + " " + S : N(S, /&\f/g, v[k]))) && (c[b++] = C);
|
|
623
|
+
return mA(e, A, r, o === 0 ? $A : a, c, d, u);
|
|
624
624
|
}
|
|
625
625
|
function _1(e, A, r) {
|
|
626
626
|
return mA(e, A, r, Fr, CA(U1()), qe(e, 2, -2), 0);
|
|
@@ -703,9 +703,9 @@ var tt = function(A, r, n) {
|
|
|
703
703
|
if (n = n.parent, !n) return;
|
|
704
704
|
if (!(A.props.length === 1 && r.charCodeAt(0) !== 58 && !dr.get(n)) && !o) {
|
|
705
705
|
dr.set(A, !0);
|
|
706
|
-
for (var i = [], s = ot(r, i), a = n.props,
|
|
707
|
-
for (var
|
|
708
|
-
A.props[
|
|
706
|
+
for (var i = [], s = ot(r, i), a = n.props, c = 0, d = 0; c < s.length; c++)
|
|
707
|
+
for (var u = 0; u < a.length; u++, d++)
|
|
708
|
+
A.props[d] = i[c] ? s[c].replace(/&\f/g, a[u]) : a[u] + " " + s[c];
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
}, at = function(A) {
|
|
@@ -720,7 +720,7 @@ function Ur(e, A) {
|
|
|
720
720
|
switch (j1(e, A)) {
|
|
721
721
|
// color-adjust
|
|
722
722
|
case 5103:
|
|
723
|
-
return
|
|
723
|
+
return F + "print-" + e + e;
|
|
724
724
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
725
725
|
case 5737:
|
|
726
726
|
case 4201:
|
|
@@ -750,58 +750,58 @@ function Ur(e, A) {
|
|
|
750
750
|
case 5365:
|
|
751
751
|
case 5621:
|
|
752
752
|
case 3829:
|
|
753
|
-
return
|
|
753
|
+
return F + e + e;
|
|
754
754
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
755
755
|
case 5349:
|
|
756
756
|
case 4246:
|
|
757
757
|
case 4810:
|
|
758
758
|
case 6968:
|
|
759
759
|
case 2756:
|
|
760
|
-
return
|
|
760
|
+
return F + e + dA + e + ne + e + e;
|
|
761
761
|
// flex, flex-direction
|
|
762
762
|
case 6828:
|
|
763
763
|
case 4268:
|
|
764
|
-
return
|
|
764
|
+
return F + e + ne + e + e;
|
|
765
765
|
// order
|
|
766
766
|
case 6165:
|
|
767
|
-
return
|
|
767
|
+
return F + e + ne + "flex-" + e + e;
|
|
768
768
|
// align-items
|
|
769
769
|
case 5187:
|
|
770
|
-
return
|
|
770
|
+
return F + e + N(e, /(\w+).+(:[^]+)/, F + "box-$1$2" + ne + "flex-$1$2") + e;
|
|
771
771
|
// align-self
|
|
772
772
|
case 5443:
|
|
773
|
-
return
|
|
773
|
+
return F + e + ne + "flex-item-" + N(e, /flex-|-self/, "") + e;
|
|
774
774
|
// align-content
|
|
775
775
|
case 4675:
|
|
776
|
-
return
|
|
776
|
+
return F + e + ne + "flex-line-pack" + N(e, /align-content|flex-|-self/, "") + e;
|
|
777
777
|
// flex-shrink
|
|
778
778
|
case 5548:
|
|
779
|
-
return
|
|
779
|
+
return F + e + ne + N(e, "shrink", "negative") + e;
|
|
780
780
|
// flex-basis
|
|
781
781
|
case 5292:
|
|
782
|
-
return
|
|
782
|
+
return F + e + ne + N(e, "basis", "preferred-size") + e;
|
|
783
783
|
// flex-grow
|
|
784
784
|
case 6060:
|
|
785
|
-
return
|
|
785
|
+
return F + "box-" + N(e, "-grow", "") + F + e + ne + N(e, "grow", "positive") + e;
|
|
786
786
|
// transition
|
|
787
787
|
case 4554:
|
|
788
|
-
return
|
|
788
|
+
return F + N(e, /([^-])(transform)/g, "$1" + F + "$2") + e;
|
|
789
789
|
// cursor
|
|
790
790
|
case 6187:
|
|
791
|
-
return
|
|
791
|
+
return N(N(N(e, /(zoom-|grab)/, F + "$1"), /(image-set)/, F + "$1"), e, "") + e;
|
|
792
792
|
// background, background-image
|
|
793
793
|
case 5495:
|
|
794
794
|
case 3959:
|
|
795
|
-
return
|
|
795
|
+
return N(e, /(image-set\([^]*)/, F + "$1$`$1");
|
|
796
796
|
// justify-content
|
|
797
797
|
case 4968:
|
|
798
|
-
return
|
|
798
|
+
return N(N(e, /(.+:)(flex-)?(.*)/, F + "box-pack:$3" + ne + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + F + e + e;
|
|
799
799
|
// (margin|padding)-inline-(start|end)
|
|
800
800
|
case 4095:
|
|
801
801
|
case 3583:
|
|
802
802
|
case 4068:
|
|
803
803
|
case 2532:
|
|
804
|
-
return
|
|
804
|
+
return N(e, /(.+)-inline(.+)/, F + "$1$2") + e;
|
|
805
805
|
// (min|max)?(width|height|inline-size|block-size)
|
|
806
806
|
case 8116:
|
|
807
807
|
case 7059:
|
|
@@ -821,10 +821,10 @@ function Ur(e, A) {
|
|
|
821
821
|
if (re(e, A + 4) !== 45) break;
|
|
822
822
|
// (f)ill-available, (f)it-content
|
|
823
823
|
case 102:
|
|
824
|
-
return
|
|
824
|
+
return N(e, /(.+:)(.+)-([^]+)/, "$1" + F + "$2-$3$1" + dA + (re(e, A + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
825
825
|
// (s)tretch
|
|
826
826
|
case 115:
|
|
827
|
-
return ~HA(e, "stretch") ? Ur(
|
|
827
|
+
return ~HA(e, "stretch") ? Ur(N(e, "stretch", "fill-available"), A) + e : e;
|
|
828
828
|
}
|
|
829
829
|
break;
|
|
830
830
|
// position: sticky
|
|
@@ -835,10 +835,10 @@ function Ur(e, A) {
|
|
|
835
835
|
switch (re(e, Ce(e) - 3 - (~HA(e, "!important") && 10))) {
|
|
836
836
|
// stic(k)y
|
|
837
837
|
case 107:
|
|
838
|
-
return
|
|
838
|
+
return N(e, ":", ":" + F) + e;
|
|
839
839
|
// (inline-)?fl(e)x
|
|
840
840
|
case 101:
|
|
841
|
-
return
|
|
841
|
+
return N(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + F + (re(e, 14) === 45 ? "inline-" : "") + "box$3$1" + F + "$2$3$1" + ne + "$2box$3") + e;
|
|
842
842
|
}
|
|
843
843
|
break;
|
|
844
844
|
// writing-mode
|
|
@@ -846,15 +846,15 @@ function Ur(e, A) {
|
|
|
846
846
|
switch (re(e, A + 11)) {
|
|
847
847
|
// vertical-l(r)
|
|
848
848
|
case 114:
|
|
849
|
-
return
|
|
849
|
+
return F + e + ne + N(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
850
850
|
// vertical-r(l)
|
|
851
851
|
case 108:
|
|
852
|
-
return
|
|
852
|
+
return F + e + ne + N(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
853
853
|
// horizontal(-)tb
|
|
854
854
|
case 45:
|
|
855
|
-
return
|
|
855
|
+
return F + e + ne + N(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
856
856
|
}
|
|
857
|
-
return
|
|
857
|
+
return F + e + ne + e + e;
|
|
858
858
|
}
|
|
859
859
|
return e;
|
|
860
860
|
}
|
|
@@ -865,7 +865,7 @@ var st = function(A, r, n, o) {
|
|
|
865
865
|
break;
|
|
866
866
|
case Nr:
|
|
867
867
|
return Me([Fe(A, {
|
|
868
|
-
value:
|
|
868
|
+
value: N(A.value, "@", "@" + F)
|
|
869
869
|
})], o);
|
|
870
870
|
case $A:
|
|
871
871
|
if (A.length) return J1(A.props, function(i) {
|
|
@@ -874,16 +874,16 @@ var st = function(A, r, n, o) {
|
|
|
874
874
|
case ":read-only":
|
|
875
875
|
case ":read-write":
|
|
876
876
|
return Me([Fe(A, {
|
|
877
|
-
props: [
|
|
877
|
+
props: [N(i, /:(read-\w+)/, ":" + dA + "$1")]
|
|
878
878
|
})], o);
|
|
879
879
|
// :placeholder
|
|
880
880
|
case "::placeholder":
|
|
881
881
|
return Me([Fe(A, {
|
|
882
|
-
props: [
|
|
882
|
+
props: [N(i, /:(plac\w+)/, ":" + F + "input-$1")]
|
|
883
883
|
}), Fe(A, {
|
|
884
|
-
props: [
|
|
884
|
+
props: [N(i, /:(plac\w+)/, ":" + dA + "$1")]
|
|
885
885
|
}), Fe(A, {
|
|
886
|
-
props: [
|
|
886
|
+
props: [N(i, /:(plac\w+)/, ne + "input-$1")]
|
|
887
887
|
})], o);
|
|
888
888
|
}
|
|
889
889
|
return "";
|
|
@@ -893,9 +893,9 @@ var st = function(A, r, n, o) {
|
|
|
893
893
|
var r = A.key;
|
|
894
894
|
if (r === "css") {
|
|
895
895
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
896
|
-
Array.prototype.forEach.call(n, function(
|
|
897
|
-
var
|
|
898
|
-
|
|
896
|
+
Array.prototype.forEach.call(n, function(p) {
|
|
897
|
+
var b = p.getAttribute("data-emotion");
|
|
898
|
+
b.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
901
|
var o = A.stylisPlugins || lt, i = {}, s, a = [];
|
|
@@ -903,24 +903,24 @@ var st = function(A, r, n, o) {
|
|
|
903
903
|
// this means we will ignore elements which don't have a space in them which
|
|
904
904
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
905
905
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
906
|
-
function(
|
|
907
|
-
for (var
|
|
908
|
-
i[
|
|
909
|
-
a.push(
|
|
906
|
+
function(p) {
|
|
907
|
+
for (var b = p.getAttribute("data-emotion").split(" "), k = 1; k < b.length; k++)
|
|
908
|
+
i[b[k]] = !0;
|
|
909
|
+
a.push(p);
|
|
910
910
|
}
|
|
911
911
|
);
|
|
912
|
-
var
|
|
912
|
+
var c, d = [it, at];
|
|
913
913
|
{
|
|
914
|
-
var
|
|
915
|
-
|
|
916
|
-
})], v = et(
|
|
917
|
-
return Me($1(
|
|
914
|
+
var u, f = [K1, At(function(p) {
|
|
915
|
+
u.insert(p);
|
|
916
|
+
})], v = et(d.concat(o, f)), x = function(b) {
|
|
917
|
+
return Me($1(b), v);
|
|
918
918
|
};
|
|
919
|
-
|
|
920
|
-
|
|
919
|
+
c = function(b, k, S, C) {
|
|
920
|
+
u = S, x(b ? b + "{" + k.styles + "}" : k.styles), C && (h.inserted[k.name] = !0);
|
|
921
921
|
};
|
|
922
922
|
}
|
|
923
|
-
var
|
|
923
|
+
var h = {
|
|
924
924
|
key: r,
|
|
925
925
|
sheet: new Q1({
|
|
926
926
|
key: r,
|
|
@@ -933,9 +933,9 @@ var st = function(A, r, n, o) {
|
|
|
933
933
|
nonce: A.nonce,
|
|
934
934
|
inserted: i,
|
|
935
935
|
registered: {},
|
|
936
|
-
insert:
|
|
936
|
+
insert: c
|
|
937
937
|
};
|
|
938
|
-
return
|
|
938
|
+
return h.sheet.hydrate(a), h;
|
|
939
939
|
}, tA = { exports: {} }, Z = {};
|
|
940
940
|
/** @license React v16.13.1
|
|
941
941
|
* react-is.production.min.js
|
|
@@ -949,15 +949,15 @@ var pr;
|
|
|
949
949
|
function dt() {
|
|
950
950
|
if (pr) return Z;
|
|
951
951
|
pr = 1;
|
|
952
|
-
var e = typeof Symbol == "function" && Symbol.for, A = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110,
|
|
953
|
-
function
|
|
952
|
+
var e = typeof Symbol == "function" && Symbol.for, A = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
953
|
+
function C(l) {
|
|
954
954
|
if (typeof l == "object" && l !== null) {
|
|
955
|
-
var
|
|
956
|
-
switch (
|
|
955
|
+
var I = l.$$typeof;
|
|
956
|
+
switch (I) {
|
|
957
957
|
case A:
|
|
958
958
|
switch (l = l.type, l) {
|
|
959
|
-
case d:
|
|
960
959
|
case c:
|
|
960
|
+
case d:
|
|
961
961
|
case n:
|
|
962
962
|
case i:
|
|
963
963
|
case o:
|
|
@@ -966,50 +966,50 @@ function dt() {
|
|
|
966
966
|
default:
|
|
967
967
|
switch (l = l && l.$$typeof, l) {
|
|
968
968
|
case a:
|
|
969
|
-
case
|
|
970
|
-
case
|
|
971
|
-
case
|
|
969
|
+
case u:
|
|
970
|
+
case h:
|
|
971
|
+
case x:
|
|
972
972
|
case s:
|
|
973
973
|
return l;
|
|
974
974
|
default:
|
|
975
|
-
return
|
|
975
|
+
return I;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
case r:
|
|
979
|
-
return
|
|
979
|
+
return I;
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
983
|
+
function y(l) {
|
|
984
|
+
return C(l) === d;
|
|
985
985
|
}
|
|
986
|
-
return Z.AsyncMode =
|
|
987
|
-
return
|
|
988
|
-
}, Z.isConcurrentMode =
|
|
989
|
-
return
|
|
986
|
+
return Z.AsyncMode = c, Z.ConcurrentMode = d, Z.ContextConsumer = a, Z.ContextProvider = s, Z.Element = A, Z.ForwardRef = u, Z.Fragment = n, Z.Lazy = h, Z.Memo = x, Z.Portal = r, Z.Profiler = i, Z.StrictMode = o, Z.Suspense = f, Z.isAsyncMode = function(l) {
|
|
987
|
+
return y(l) || C(l) === c;
|
|
988
|
+
}, Z.isConcurrentMode = y, Z.isContextConsumer = function(l) {
|
|
989
|
+
return C(l) === a;
|
|
990
990
|
}, Z.isContextProvider = function(l) {
|
|
991
|
-
return
|
|
991
|
+
return C(l) === s;
|
|
992
992
|
}, Z.isElement = function(l) {
|
|
993
993
|
return typeof l == "object" && l !== null && l.$$typeof === A;
|
|
994
994
|
}, Z.isForwardRef = function(l) {
|
|
995
|
-
return
|
|
995
|
+
return C(l) === u;
|
|
996
996
|
}, Z.isFragment = function(l) {
|
|
997
|
-
return
|
|
997
|
+
return C(l) === n;
|
|
998
998
|
}, Z.isLazy = function(l) {
|
|
999
|
-
return
|
|
999
|
+
return C(l) === h;
|
|
1000
1000
|
}, Z.isMemo = function(l) {
|
|
1001
|
-
return
|
|
1001
|
+
return C(l) === x;
|
|
1002
1002
|
}, Z.isPortal = function(l) {
|
|
1003
|
-
return
|
|
1003
|
+
return C(l) === r;
|
|
1004
1004
|
}, Z.isProfiler = function(l) {
|
|
1005
|
-
return
|
|
1005
|
+
return C(l) === i;
|
|
1006
1006
|
}, Z.isStrictMode = function(l) {
|
|
1007
|
-
return
|
|
1007
|
+
return C(l) === o;
|
|
1008
1008
|
}, Z.isSuspense = function(l) {
|
|
1009
|
-
return
|
|
1009
|
+
return C(l) === f;
|
|
1010
1010
|
}, Z.isValidElementType = function(l) {
|
|
1011
|
-
return typeof l == "string" || typeof l == "function" || l === n || l ===
|
|
1012
|
-
}, Z.typeOf =
|
|
1011
|
+
return typeof l == "string" || typeof l == "function" || l === n || l === d || l === i || l === o || l === f || l === v || typeof l == "object" && l !== null && (l.$$typeof === h || l.$$typeof === x || l.$$typeof === s || l.$$typeof === a || l.$$typeof === u || l.$$typeof === b || l.$$typeof === k || l.$$typeof === S || l.$$typeof === p);
|
|
1012
|
+
}, Z.typeOf = C, Z;
|
|
1013
1013
|
}
|
|
1014
1014
|
var j = {};
|
|
1015
1015
|
/** @license React v16.13.1
|
|
@@ -1023,20 +1023,20 @@ var j = {};
|
|
|
1023
1023
|
var ur;
|
|
1024
1024
|
function pt() {
|
|
1025
1025
|
return ur || (ur = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1026
|
-
var e = typeof Symbol == "function" && Symbol.for, A = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110,
|
|
1027
|
-
function
|
|
1028
|
-
return typeof
|
|
1029
|
-
|
|
1026
|
+
var e = typeof Symbol == "function" && Symbol.for, A = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
1027
|
+
function C(B) {
|
|
1028
|
+
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1029
|
+
B === n || B === d || B === i || B === o || B === f || B === v || typeof B == "object" && B !== null && (B.$$typeof === h || B.$$typeof === x || B.$$typeof === s || B.$$typeof === a || B.$$typeof === u || B.$$typeof === b || B.$$typeof === k || B.$$typeof === S || B.$$typeof === p);
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1032
|
-
if (typeof
|
|
1033
|
-
var wA =
|
|
1031
|
+
function y(B) {
|
|
1032
|
+
if (typeof B == "object" && B !== null) {
|
|
1033
|
+
var wA = B.$$typeof;
|
|
1034
1034
|
switch (wA) {
|
|
1035
1035
|
case A:
|
|
1036
|
-
var eA =
|
|
1036
|
+
var eA = B.type;
|
|
1037
1037
|
switch (eA) {
|
|
1038
|
-
case d:
|
|
1039
1038
|
case c:
|
|
1039
|
+
case d:
|
|
1040
1040
|
case n:
|
|
1041
1041
|
case i:
|
|
1042
1042
|
case o:
|
|
@@ -1046,9 +1046,9 @@ function pt() {
|
|
|
1046
1046
|
var nr = eA && eA.$$typeof;
|
|
1047
1047
|
switch (nr) {
|
|
1048
1048
|
case a:
|
|
1049
|
-
case
|
|
1050
|
-
case
|
|
1051
|
-
case
|
|
1049
|
+
case u:
|
|
1050
|
+
case h:
|
|
1051
|
+
case x:
|
|
1052
1052
|
case s:
|
|
1053
1053
|
return nr;
|
|
1054
1054
|
default:
|
|
@@ -1060,47 +1060,47 @@ function pt() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
var l =
|
|
1064
|
-
function Ae(
|
|
1065
|
-
return
|
|
1063
|
+
var l = c, I = d, E = a, H = s, D = A, X = u, V = n, W = h, G = x, K = r, P = i, R = o, U = f, z = !1;
|
|
1064
|
+
function Ae(B) {
|
|
1065
|
+
return z || (z = !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.")), g(B) || y(B) === c;
|
|
1066
1066
|
}
|
|
1067
|
-
function g(
|
|
1068
|
-
return
|
|
1067
|
+
function g(B) {
|
|
1068
|
+
return y(B) === d;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return
|
|
1070
|
+
function w(B) {
|
|
1071
|
+
return y(B) === a;
|
|
1072
1072
|
}
|
|
1073
|
-
function M(
|
|
1074
|
-
return
|
|
1073
|
+
function M(B) {
|
|
1074
|
+
return y(B) === s;
|
|
1075
1075
|
}
|
|
1076
|
-
function O(
|
|
1077
|
-
return typeof
|
|
1076
|
+
function O(B) {
|
|
1077
|
+
return typeof B == "object" && B !== null && B.$$typeof === A;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
return
|
|
1079
|
+
function L(B) {
|
|
1080
|
+
return y(B) === u;
|
|
1081
1081
|
}
|
|
1082
|
-
function te(
|
|
1083
|
-
return
|
|
1082
|
+
function te(B) {
|
|
1083
|
+
return y(B) === n;
|
|
1084
1084
|
}
|
|
1085
|
-
function ae(
|
|
1086
|
-
return
|
|
1085
|
+
function ae(B) {
|
|
1086
|
+
return y(B) === h;
|
|
1087
1087
|
}
|
|
1088
|
-
function be(
|
|
1089
|
-
return
|
|
1088
|
+
function be(B) {
|
|
1089
|
+
return y(B) === x;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return
|
|
1091
|
+
function $(B) {
|
|
1092
|
+
return y(B) === r;
|
|
1093
1093
|
}
|
|
1094
|
-
function ve(
|
|
1095
|
-
return
|
|
1094
|
+
function ve(B) {
|
|
1095
|
+
return y(B) === i;
|
|
1096
1096
|
}
|
|
1097
|
-
function Oe(
|
|
1098
|
-
return
|
|
1097
|
+
function Oe(B) {
|
|
1098
|
+
return y(B) === o;
|
|
1099
1099
|
}
|
|
1100
|
-
function yA(
|
|
1101
|
-
return
|
|
1100
|
+
function yA(B) {
|
|
1101
|
+
return y(B) === f;
|
|
1102
1102
|
}
|
|
1103
|
-
j.AsyncMode = l, j.ConcurrentMode =
|
|
1103
|
+
j.AsyncMode = l, j.ConcurrentMode = I, j.ContextConsumer = E, j.ContextProvider = H, j.Element = D, j.ForwardRef = X, j.Fragment = V, j.Lazy = W, j.Memo = G, j.Portal = K, j.Profiler = P, j.StrictMode = R, j.Suspense = U, j.isAsyncMode = Ae, j.isConcurrentMode = g, j.isContextConsumer = w, j.isContextProvider = M, j.isElement = O, j.isForwardRef = L, j.isFragment = te, j.isLazy = ae, j.isMemo = be, j.isPortal = $, j.isProfiler = ve, j.isStrictMode = Oe, j.isSuspense = yA, j.isValidElementType = C, j.typeOf = y;
|
|
1104
1104
|
}()), j;
|
|
1105
1105
|
}
|
|
1106
1106
|
var fr;
|
|
@@ -1146,32 +1146,32 @@ function ft() {
|
|
|
1146
1146
|
type: !0
|
|
1147
1147
|
}, i = {};
|
|
1148
1148
|
i[e.ForwardRef] = n, i[e.Memo] = o;
|
|
1149
|
-
function s(
|
|
1150
|
-
return e.isMemo(
|
|
1149
|
+
function s(h) {
|
|
1150
|
+
return e.isMemo(h) ? o : i[h.$$typeof] || A;
|
|
1151
1151
|
}
|
|
1152
|
-
var a = Object.defineProperty,
|
|
1153
|
-
function
|
|
1154
|
-
if (typeof
|
|
1152
|
+
var a = Object.defineProperty, c = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, u = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, v = Object.prototype;
|
|
1153
|
+
function x(h, p, b) {
|
|
1154
|
+
if (typeof p != "string") {
|
|
1155
1155
|
if (v) {
|
|
1156
|
-
var
|
|
1157
|
-
|
|
1156
|
+
var k = f(p);
|
|
1157
|
+
k && k !== v && x(h, k, b);
|
|
1158
1158
|
}
|
|
1159
|
-
var
|
|
1160
|
-
|
|
1161
|
-
for (var
|
|
1162
|
-
var
|
|
1163
|
-
if (!r[
|
|
1164
|
-
var E = p
|
|
1159
|
+
var S = c(p);
|
|
1160
|
+
d && (S = S.concat(d(p)));
|
|
1161
|
+
for (var C = s(h), y = s(p), l = 0; l < S.length; ++l) {
|
|
1162
|
+
var I = S[l];
|
|
1163
|
+
if (!r[I] && !(b && b[I]) && !(y && y[I]) && !(C && C[I])) {
|
|
1164
|
+
var E = u(p, I);
|
|
1165
1165
|
try {
|
|
1166
|
-
a(
|
|
1166
|
+
a(h, I, E);
|
|
1167
1167
|
} catch {
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
return
|
|
1172
|
+
return h;
|
|
1173
1173
|
}
|
|
1174
|
-
return EA =
|
|
1174
|
+
return EA = x, EA;
|
|
1175
1175
|
}
|
|
1176
1176
|
ft();
|
|
1177
1177
|
var gt = !0;
|
|
@@ -1326,14 +1326,14 @@ function $e(e, A, r) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
case "function": {
|
|
1328
1328
|
if (e !== void 0) {
|
|
1329
|
-
var
|
|
1330
|
-
return xe =
|
|
1329
|
+
var c = xe, d = r(e);
|
|
1330
|
+
return xe = c, $e(e, A, d);
|
|
1331
1331
|
}
|
|
1332
1332
|
break;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
|
-
var
|
|
1336
|
-
return
|
|
1335
|
+
var u = r;
|
|
1336
|
+
return u;
|
|
1337
1337
|
}
|
|
1338
1338
|
function wt(e, A, r) {
|
|
1339
1339
|
var n = "";
|
|
@@ -1347,18 +1347,18 @@ function wt(e, A, r) {
|
|
|
1347
1347
|
var a = s;
|
|
1348
1348
|
hr(a) && (n += IA(i) + ":" + Cr(i, a) + ";");
|
|
1349
1349
|
} else if (Array.isArray(s) && typeof s[0] == "string" && A == null)
|
|
1350
|
-
for (var
|
|
1351
|
-
hr(s[
|
|
1350
|
+
for (var c = 0; c < s.length; c++)
|
|
1351
|
+
hr(s[c]) && (n += IA(i) + ":" + Cr(i, s[c]) + ";");
|
|
1352
1352
|
else {
|
|
1353
|
-
var
|
|
1353
|
+
var d = $e(e, A, s);
|
|
1354
1354
|
switch (i) {
|
|
1355
1355
|
case "animation":
|
|
1356
1356
|
case "animationName": {
|
|
1357
|
-
n += IA(i) + ":" +
|
|
1357
|
+
n += IA(i) + ":" + d + ";";
|
|
1358
1358
|
break;
|
|
1359
1359
|
}
|
|
1360
1360
|
default:
|
|
1361
|
-
n += i + "{" +
|
|
1361
|
+
n += i + "{" + d + "}";
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
@@ -1379,13 +1379,13 @@ function vt(e, A, r) {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
for (var a = 1; a < e.length; a++)
|
|
1381
1381
|
if (o += $e(r, A, e[a]), n) {
|
|
1382
|
-
var
|
|
1383
|
-
o +=
|
|
1382
|
+
var c = i;
|
|
1383
|
+
o += c[a];
|
|
1384
1384
|
}
|
|
1385
1385
|
xr.lastIndex = 0;
|
|
1386
|
-
for (var
|
|
1387
|
-
|
|
1388
|
-
var f = xt(o) +
|
|
1386
|
+
for (var d = "", u; (u = xr.exec(o)) !== null; )
|
|
1387
|
+
d += "-" + u[1];
|
|
1388
|
+
var f = xt(o) + d;
|
|
1389
1389
|
return {
|
|
1390
1390
|
name: f,
|
|
1391
1391
|
styles: o,
|
|
@@ -1428,17 +1428,17 @@ var St = function(A) {
|
|
|
1428
1428
|
typeof e.className == "string" ? s = ht(A.registered, i, e.className) : e.className != null && (s = e.className + " ");
|
|
1429
1429
|
var a = vt(i, void 0, ye.useContext(Bt));
|
|
1430
1430
|
s += A.key + "-" + a.name;
|
|
1431
|
-
var
|
|
1432
|
-
for (var
|
|
1433
|
-
bA.call(e,
|
|
1434
|
-
return
|
|
1431
|
+
var c = {};
|
|
1432
|
+
for (var d in e)
|
|
1433
|
+
bA.call(e, d) && d !== "css" && d !== QA && (c[d] = e[d]);
|
|
1434
|
+
return c.className = s, r && (c.ref = r), /* @__PURE__ */ ye.createElement(ye.Fragment, null, /* @__PURE__ */ ye.createElement(Rt, {
|
|
1435
1435
|
cache: A,
|
|
1436
1436
|
serialized: a,
|
|
1437
1437
|
isStringTag: typeof o == "string"
|
|
1438
|
-
}), /* @__PURE__ */ ye.createElement(o,
|
|
1438
|
+
}), /* @__PURE__ */ ye.createElement(o, c));
|
|
1439
1439
|
}), Xr = Mt, he = Ge.Fragment, t = function(A, r, n) {
|
|
1440
1440
|
return bA.call(r, "css") ? Ge.jsx(Xr, qr(A, r), n) : Ge.jsx(A, r, n);
|
|
1441
|
-
},
|
|
1441
|
+
}, m = function(A, r, n) {
|
|
1442
1442
|
return bA.call(r, "css") ? Ge.jsxs(Xr, qr(A, r), n) : Ge.jsxs(A, r, n);
|
|
1443
1443
|
};
|
|
1444
1444
|
const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = () => {
|
|
@@ -1451,8 +1451,8 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1451
1451
|
), n = oe(
|
|
1452
1452
|
(s) => s || e.text.primary,
|
|
1453
1453
|
[e.text.primary]
|
|
1454
|
-
), o = oe(async (s, a,
|
|
1455
|
-
if (
|
|
1454
|
+
), o = oe(async (s, a, c) => {
|
|
1455
|
+
if (c)
|
|
1456
1456
|
return import("./tracktor-logo-BZpNIZuZ.js");
|
|
1457
1457
|
switch (s) {
|
|
1458
1458
|
case "supplier":
|
|
@@ -1466,19 +1466,19 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1466
1466
|
({
|
|
1467
1467
|
variant: s,
|
|
1468
1468
|
width: a,
|
|
1469
|
-
height:
|
|
1470
|
-
withoutText:
|
|
1471
|
-
}) =>
|
|
1469
|
+
height: c,
|
|
1470
|
+
withoutText: d
|
|
1471
|
+
}) => d ? {
|
|
1472
1472
|
height: mr,
|
|
1473
1473
|
width: mr
|
|
1474
1474
|
} : s === "default" ? {
|
|
1475
|
-
height:
|
|
1475
|
+
height: c || Pt,
|
|
1476
1476
|
width: a || Tt
|
|
1477
1477
|
} : s === "supplier" ? {
|
|
1478
|
-
height:
|
|
1478
|
+
height: c || Lt,
|
|
1479
1479
|
width: a || Dt
|
|
1480
1480
|
} : {
|
|
1481
|
-
height:
|
|
1481
|
+
height: c || Ht,
|
|
1482
1482
|
width: a || Ot
|
|
1483
1483
|
},
|
|
1484
1484
|
[]
|
|
@@ -1490,59 +1490,59 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1490
1490
|
getSize: i,
|
|
1491
1491
|
getTextColor: A
|
|
1492
1492
|
};
|
|
1493
|
-
}, Vt = ({ colorShape: e, shapeBackgroundColor: A, color: r, height: n, width: o, withoutText: i, mode: s, sx: a, variant:
|
|
1494
|
-
const [f, v] =
|
|
1493
|
+
}, Vt = ({ colorShape: e, shapeBackgroundColor: A, color: r, height: n, width: o, withoutText: i, mode: s, sx: a, variant: c = "default", component: d = "img" }, u) => {
|
|
1494
|
+
const [f, v] = q(""), { palette: x } = fe(), { getTextColor: h, getImageModule: p, getSize: b, getShapeColor: k, getShapeBackgroundColor: S } = Qt(), { height: C, width: y } = b({ height: n, variant: c, width: o, withoutText: i }), l = h(r), I = k(e), E = S(A);
|
|
1495
1495
|
if (qA(() => {
|
|
1496
|
-
|
|
1497
|
-
const H = await
|
|
1496
|
+
d !== "svg" && (async () => {
|
|
1497
|
+
const H = await p(c, s || x.mode, i);
|
|
1498
1498
|
H?.default && typeof H.default == "string" && v(H.default);
|
|
1499
1499
|
})();
|
|
1500
|
-
}, [
|
|
1500
|
+
}, [d, p, s, x.mode, c, i]), d === "img")
|
|
1501
1501
|
return f ? /* @__PURE__ */ t(
|
|
1502
1502
|
T,
|
|
1503
1503
|
{
|
|
1504
1504
|
component: "img",
|
|
1505
1505
|
src: f,
|
|
1506
1506
|
alt: "Tracktor",
|
|
1507
|
-
height:
|
|
1508
|
-
width:
|
|
1509
|
-
ref:
|
|
1507
|
+
height: C,
|
|
1508
|
+
width: y,
|
|
1509
|
+
ref: u,
|
|
1510
1510
|
sx: a
|
|
1511
1511
|
}
|
|
1512
1512
|
) : /* @__PURE__ */ t(
|
|
1513
1513
|
ce,
|
|
1514
1514
|
{
|
|
1515
1515
|
variant: "rounded",
|
|
1516
|
-
ref:
|
|
1516
|
+
ref: u,
|
|
1517
1517
|
sx: {
|
|
1518
1518
|
display: "inline-block",
|
|
1519
1519
|
fontSize: 0,
|
|
1520
|
-
height:
|
|
1521
|
-
maxHeight:
|
|
1522
|
-
maxWidth:
|
|
1523
|
-
width:
|
|
1520
|
+
height: C,
|
|
1521
|
+
maxHeight: C,
|
|
1522
|
+
maxWidth: y,
|
|
1523
|
+
width: y
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
1526
|
);
|
|
1527
1527
|
if (i) {
|
|
1528
|
-
const H = e ||
|
|
1529
|
-
return /* @__PURE__ */
|
|
1528
|
+
const H = e || x.primary.main;
|
|
1529
|
+
return /* @__PURE__ */ m(T, { component: "svg", viewBox: "0 0 32 32", fill: "none", sx: { height: C, width: y, ...a }, children: [
|
|
1530
1530
|
/* @__PURE__ */ t("path", { d: "M17 0V15H32C32 6.71026 25.2897 0 17 0Z", fill: H }),
|
|
1531
1531
|
/* @__PURE__ */ t("path", { d: "M0 0V15H15C15 6.71026 8.27968 0 0 0Z", fill: H }),
|
|
1532
1532
|
/* @__PURE__ */ t("path", { d: "M14.9955 16C14.9955 16 15.0056 16 14.9955 16V32H0C0 23.1576 6.71832 16 14.9955 16Z", fill: H }),
|
|
1533
1533
|
/* @__PURE__ */ t("path", { d: "M32 16V32H17C17 23.1576 23.7103 16 32 16Z", fill: H })
|
|
1534
1534
|
] });
|
|
1535
1535
|
}
|
|
1536
|
-
return
|
|
1536
|
+
return c === "pricing" ? /* @__PURE__ */ m(
|
|
1537
1537
|
T,
|
|
1538
1538
|
{
|
|
1539
1539
|
component: "svg",
|
|
1540
1540
|
viewBox: "0 0 147 44",
|
|
1541
1541
|
fill: "none",
|
|
1542
|
-
sx: { height:
|
|
1543
|
-
ref:
|
|
1542
|
+
sx: { height: C, width: y, ...a },
|
|
1543
|
+
ref: u,
|
|
1544
1544
|
children: [
|
|
1545
|
-
/* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ m("g", { clipPath: "url(#clip0_12018_69701)", children: [
|
|
1546
1546
|
/* @__PURE__ */ t(
|
|
1547
1547
|
"path",
|
|
1548
1548
|
{
|
|
@@ -1634,14 +1634,14 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1634
1634
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_12018_69701", children: /* @__PURE__ */ t("rect", { width: "147", height: "44", fill: "white" }) }) })
|
|
1635
1635
|
]
|
|
1636
1636
|
}
|
|
1637
|
-
) :
|
|
1637
|
+
) : c === "supplier" ? /* @__PURE__ */ m(
|
|
1638
1638
|
T,
|
|
1639
1639
|
{
|
|
1640
1640
|
component: "svg",
|
|
1641
1641
|
viewBox: "0 0 195 24",
|
|
1642
1642
|
fill: "none",
|
|
1643
|
-
sx: { height:
|
|
1644
|
-
ref:
|
|
1643
|
+
sx: { height: C, width: y, ...a },
|
|
1644
|
+
ref: u,
|
|
1645
1645
|
children: [
|
|
1646
1646
|
/* @__PURE__ */ t(
|
|
1647
1647
|
"path",
|
|
@@ -1650,21 +1650,21 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1650
1650
|
fill: E
|
|
1651
1651
|
}
|
|
1652
1652
|
),
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */ t("path", { d: "M12.3637 4C12.3629 4 12.3622 4 12.3615 4V11.6381H20C19.9993 7.41966 16.5811 4 12.3637 4Z", fill:
|
|
1655
|
-
/* @__PURE__ */ t("path", { d: "M4.0022 4C4.00147 4 4.00073 4 4 4V11.6381H11.6386C11.6378 7.41966 8.2196 4 4.0022 4Z", fill:
|
|
1653
|
+
/* @__PURE__ */ m("g", { clipPath: "url(#clip0_14141_226706)", children: [
|
|
1654
|
+
/* @__PURE__ */ t("path", { d: "M12.3637 4C12.3629 4 12.3622 4 12.3615 4V11.6381H20C19.9993 7.41966 16.5811 4 12.3637 4Z", fill: I }),
|
|
1655
|
+
/* @__PURE__ */ t("path", { d: "M4.0022 4C4.00147 4 4.00073 4 4 4V11.6381H11.6386C11.6378 7.41966 8.2196 4 4.0022 4Z", fill: I }),
|
|
1656
1656
|
/* @__PURE__ */ t(
|
|
1657
1657
|
"path",
|
|
1658
1658
|
{
|
|
1659
1659
|
d: "M11.6364 12.3619C11.6371 12.3619 11.6378 12.3619 11.6386 12.3619V20H4C4.00073 15.7816 7.41898 12.3619 11.6364 12.3619Z",
|
|
1660
|
-
fill:
|
|
1660
|
+
fill: I
|
|
1661
1661
|
}
|
|
1662
1662
|
),
|
|
1663
1663
|
/* @__PURE__ */ t(
|
|
1664
1664
|
"path",
|
|
1665
1665
|
{
|
|
1666
1666
|
d: "M19.9978 12.3619C19.9986 12.3619 19.9993 12.3619 20 12.3619V20H12.3615C12.3622 15.7816 15.7804 12.3619 19.9978 12.3619Z",
|
|
1667
|
-
fill:
|
|
1667
|
+
fill: I
|
|
1668
1668
|
}
|
|
1669
1669
|
)
|
|
1670
1670
|
] }),
|
|
@@ -1742,20 +1742,20 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1742
1742
|
"path",
|
|
1743
1743
|
{
|
|
1744
1744
|
d: "M118.652 9.636V10.524H115.016V13.344H117.968V14.232H115.016V18H113.924V9.636H118.652ZM124.163 18.084C123.387 18.084 122.679 17.904 122.039 17.544C121.399 17.176 120.891 16.668 120.515 16.02C120.147 15.364 119.963 14.628 119.963 13.812C119.963 12.996 120.147 12.264 120.515 11.616C120.891 10.96 121.399 10.452 122.039 10.092C122.679 9.724 123.387 9.54 124.163 9.54C124.947 9.54 125.659 9.724 126.299 10.092C126.939 10.452 127.443 10.956 127.811 11.604C128.179 12.252 128.363 12.988 128.363 13.812C128.363 14.636 128.179 15.372 127.811 16.02C127.443 16.668 126.939 17.176 126.299 17.544C125.659 17.904 124.947 18.084 124.163 18.084ZM124.163 17.136C124.747 17.136 125.271 17 125.735 16.728C126.207 16.456 126.575 16.068 126.839 15.564C127.111 15.06 127.247 14.476 127.247 13.812C127.247 13.14 127.111 12.556 126.839 12.06C126.575 11.556 126.211 11.168 125.747 10.896C125.283 10.624 124.755 10.488 124.163 10.488C123.571 10.488 123.043 10.624 122.579 10.896C122.115 11.168 121.747 11.556 121.475 12.06C121.211 12.556 121.079 13.14 121.079 13.812C121.079 14.476 121.211 15.06 121.475 15.564C121.747 16.068 122.115 16.456 122.579 16.728C123.051 17 123.579 17.136 124.163 17.136ZM131.272 9.636V14.928C131.272 15.672 131.452 16.224 131.812 16.584C132.18 16.944 132.688 17.124 133.336 17.124C133.976 17.124 134.476 16.944 134.836 16.584C135.204 16.224 135.388 15.672 135.388 14.928V9.636H136.48V14.916C136.48 15.612 136.34 16.2 136.06 16.68C135.78 17.152 135.4 17.504 134.92 17.736C134.448 17.968 133.916 18.084 133.324 18.084C132.732 18.084 132.196 17.968 131.716 17.736C131.244 17.504 130.868 17.152 130.588 16.68C130.316 16.2 130.18 15.612 130.18 14.916V9.636H131.272ZM143.106 18L141.114 14.58H139.794V18H138.702V9.636H141.402C142.034 9.636 142.566 9.744 142.998 9.96C143.438 10.176 143.766 10.468 143.982 10.836C144.198 11.204 144.306 11.624 144.306 12.096C144.306 12.672 144.138 13.18 143.802 13.62C143.474 14.06 142.978 14.352 142.314 14.496L144.414 18H143.106ZM139.794 13.704H141.402C141.994 13.704 142.438 13.56 142.734 13.272C143.03 12.976 143.178 12.584 143.178 12.096C143.178 11.6 143.03 11.216 142.734 10.944C142.446 10.672 142.002 10.536 141.402 10.536H139.794V13.704ZM152.979 18H151.887L147.495 11.34V18H146.403V9.624H147.495L151.887 16.272V9.624H152.979V18ZM156.332 9.636V18H155.24V9.636H156.332ZM161.246 18.084C160.694 18.084 160.198 17.988 159.758 17.796C159.326 17.596 158.986 17.324 158.738 16.98C158.49 16.628 158.362 16.224 158.354 15.768H159.518C159.558 16.16 159.718 16.492 159.998 16.764C160.286 17.028 160.702 17.16 161.246 17.16C161.766 17.16 162.174 17.032 162.47 16.776C162.774 16.512 162.926 16.176 162.926 15.768C162.926 15.448 162.838 15.188 162.662 14.988C162.486 14.788 162.266 14.636 162.002 14.532C161.738 14.428 161.382 14.316 160.934 14.196C160.382 14.052 159.938 13.908 159.602 13.764C159.274 13.62 158.99 13.396 158.75 13.092C158.518 12.78 158.402 12.364 158.402 11.844C158.402 11.388 158.518 10.984 158.75 10.632C158.982 10.28 159.306 10.008 159.722 9.816C160.146 9.624 160.63 9.528 161.174 9.528C161.958 9.528 162.598 9.724 163.094 10.116C163.598 10.508 163.882 11.028 163.946 11.676H162.746C162.706 11.356 162.538 11.076 162.242 10.836C161.946 10.588 161.554 10.464 161.066 10.464C160.61 10.464 160.238 10.584 159.95 10.824C159.662 11.056 159.518 11.384 159.518 11.808C159.518 12.112 159.602 12.36 159.77 12.552C159.946 12.744 160.158 12.892 160.406 12.996C160.662 13.092 161.018 13.204 161.474 13.332C162.026 13.484 162.47 13.636 162.806 13.788C163.142 13.932 163.43 14.16 163.67 14.472C163.91 14.776 164.03 15.192 164.03 15.72C164.03 16.128 163.922 16.512 163.706 16.872C163.49 17.232 163.17 17.524 162.746 17.748C162.322 17.972 161.822 18.084 161.246 18.084ZM168.688 18.084C168.136 18.084 167.64 17.988 167.2 17.796C166.768 17.596 166.428 17.324 166.18 16.98C165.932 16.628 165.804 16.224 165.796 15.768H166.96C167 16.16 167.16 16.492 167.44 16.764C167.728 17.028 168.144 17.16 168.688 17.16C169.208 17.16 169.616 17.032 169.912 16.776C170.216 16.512 170.368 16.176 170.368 15.768C170.368 15.448 170.28 15.188 170.104 14.988C169.928 14.788 169.708 14.636 169.444 14.532C169.18 14.428 168.824 14.316 168.376 14.196C167.824 14.052 167.38 13.908 167.044 13.764C166.716 13.62 166.432 13.396 166.192 13.092C165.96 12.78 165.844 12.364 165.844 11.844C165.844 11.388 165.96 10.984 166.192 10.632C166.424 10.28 166.748 10.008 167.164 9.816C167.588 9.624 168.072 9.528 168.616 9.528C169.4 9.528 170.04 9.724 170.536 10.116C171.04 10.508 171.324 11.028 171.388 11.676H170.188C170.148 11.356 169.98 11.076 169.684 10.836C169.388 10.588 168.996 10.464 168.508 10.464C168.052 10.464 167.68 10.584 167.392 10.824C167.104 11.056 166.96 11.384 166.96 11.808C166.96 12.112 167.044 12.36 167.212 12.552C167.388 12.744 167.6 12.892 167.848 12.996C168.104 13.092 168.46 13.204 168.916 13.332C169.468 13.484 169.912 13.636 170.248 13.788C170.584 13.932 170.872 14.16 171.112 14.472C171.352 14.776 171.472 15.192 171.472 15.72C171.472 16.128 171.364 16.512 171.148 16.872C170.932 17.232 170.612 17.524 170.188 17.748C169.764 17.972 169.264 18.084 168.688 18.084ZM174.571 10.524V13.32H177.619V14.22H174.571V17.1H177.979V18H173.479V9.624H177.979V10.524H174.571ZM181.1 9.636V14.928C181.1 15.672 181.28 16.224 181.64 16.584C182.008 16.944 182.516 17.124 183.164 17.124C183.804 17.124 184.304 16.944 184.664 16.584C185.032 16.224 185.216 15.672 185.216 14.928V9.636H186.308V14.916C186.308 15.612 186.168 16.2 185.888 16.68C185.608 17.152 185.228 17.504 184.748 17.736C184.276 17.968 183.744 18.084 183.152 18.084C182.56 18.084 182.024 17.968 181.544 17.736C181.072 17.504 180.696 17.152 180.416 16.68C180.144 16.2 180.008 15.612 180.008 14.916V9.636H181.1ZM192.933 18L190.941 14.58H189.621V18H188.529V9.636H191.229C191.861 9.636 192.393 9.744 192.825 9.96C193.265 10.176 193.593 10.468 193.809 10.836C194.025 11.204 194.133 11.624 194.133 12.096C194.133 12.672 193.965 13.18 193.629 13.62C193.301 14.06 192.805 14.352 192.141 14.496L194.241 18H192.933ZM189.621 13.704H191.229C191.821 13.704 192.265 13.56 192.561 13.272C192.857 12.976 193.005 12.584 193.005 12.096C193.005 11.6 192.857 11.216 192.561 10.944C192.273 10.672 191.829 10.536 191.229 10.536H189.621V13.704Z",
|
|
1745
|
-
fill:
|
|
1745
|
+
fill: x.text.secondary
|
|
1746
1746
|
}
|
|
1747
1747
|
),
|
|
1748
1748
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_14141_226706", children: /* @__PURE__ */ t("rect", { width: "16", height: "16", fill: "white", transform: "translate(4 4)" }) }) })
|
|
1749
1749
|
]
|
|
1750
1750
|
}
|
|
1751
|
-
) : /* @__PURE__ */
|
|
1751
|
+
) : /* @__PURE__ */ m(
|
|
1752
1752
|
T,
|
|
1753
1753
|
{
|
|
1754
1754
|
component: "svg",
|
|
1755
1755
|
viewBox: "0 0 105 24",
|
|
1756
1756
|
fill: "none",
|
|
1757
|
-
sx: { height:
|
|
1758
|
-
ref:
|
|
1757
|
+
sx: { height: C, width: y, ...a },
|
|
1758
|
+
ref: u,
|
|
1759
1759
|
children: [
|
|
1760
1760
|
/* @__PURE__ */ t(
|
|
1761
1761
|
"path",
|
|
@@ -1764,21 +1764,21 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1764
1764
|
fill: E
|
|
1765
1765
|
}
|
|
1766
1766
|
),
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
/* @__PURE__ */ t("path", { d: "M12.3637 4C12.3629 4 12.3622 4 12.3615 4V11.6381H20C19.9993 7.41966 16.5811 4 12.3637 4Z", fill:
|
|
1769
|
-
/* @__PURE__ */ t("path", { d: "M4.0022 4C4.00147 4 4.00073 4 4 4V11.6381H11.6386C11.6378 7.41966 8.2196 4 4.0022 4Z", fill:
|
|
1767
|
+
/* @__PURE__ */ m("g", { clipPath: "url(#clip0_14141_226601)", children: [
|
|
1768
|
+
/* @__PURE__ */ t("path", { d: "M12.3637 4C12.3629 4 12.3622 4 12.3615 4V11.6381H20C19.9993 7.41966 16.5811 4 12.3637 4Z", fill: I }),
|
|
1769
|
+
/* @__PURE__ */ t("path", { d: "M4.0022 4C4.00147 4 4.00073 4 4 4V11.6381H11.6386C11.6378 7.41966 8.2196 4 4.0022 4Z", fill: I }),
|
|
1770
1770
|
/* @__PURE__ */ t(
|
|
1771
1771
|
"path",
|
|
1772
1772
|
{
|
|
1773
1773
|
d: "M11.6364 12.3619C11.6371 12.3619 11.6378 12.3619 11.6386 12.3619V20H4C4.00073 15.7816 7.41898 12.3619 11.6364 12.3619Z",
|
|
1774
|
-
fill:
|
|
1774
|
+
fill: I
|
|
1775
1775
|
}
|
|
1776
1776
|
),
|
|
1777
1777
|
/* @__PURE__ */ t(
|
|
1778
1778
|
"path",
|
|
1779
1779
|
{
|
|
1780
1780
|
d: "M19.9978 12.3619C19.9986 12.3619 19.9993 12.3619 20 12.3619V20H12.3615C12.3622 15.7816 15.7804 12.3619 19.9978 12.3619Z",
|
|
1781
|
-
fill:
|
|
1781
|
+
fill: I
|
|
1782
1782
|
}
|
|
1783
1783
|
)
|
|
1784
1784
|
] }),
|
|
@@ -1878,7 +1878,7 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1878
1878
|
}
|
|
1879
1879
|
), Un = ie(Nt), Zt = ({ className: e, style: A, minRows: r = 4, ...n }, o) => {
|
|
1880
1880
|
const { palette: i, shape: s, spacing: a } = fe();
|
|
1881
|
-
return /* @__PURE__ */
|
|
1881
|
+
return /* @__PURE__ */ m(he, { children: [
|
|
1882
1882
|
/* @__PURE__ */ t(
|
|
1883
1883
|
ze,
|
|
1884
1884
|
{
|
|
@@ -1917,8 +1917,8 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1917
1917
|
gA,
|
|
1918
1918
|
{
|
|
1919
1919
|
onChange: (f) => {
|
|
1920
|
-
const { target: v } = f,
|
|
1921
|
-
|
|
1920
|
+
const { target: v } = f, x = +v.value;
|
|
1921
|
+
x <= o && x >= n && r?.(x);
|
|
1922
1922
|
},
|
|
1923
1923
|
autoComplete: "off",
|
|
1924
1924
|
InputProps: {
|
|
@@ -1983,21 +1983,21 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
1983
1983
|
},
|
|
1984
1984
|
children: /* @__PURE__ */ t("path", { d: "M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" })
|
|
1985
1985
|
}
|
|
1986
|
-
), er = ({ url: e, end: A, children: r, active: n, state: o, component: i, disabled: s, onClick: a, target:
|
|
1987
|
-
const { closeDrawerMenu:
|
|
1988
|
-
a?.(f),
|
|
1986
|
+
), er = ({ url: e, end: A, children: r, active: n, state: o, component: i, disabled: s, onClick: a, target: c }) => {
|
|
1987
|
+
const { closeDrawerMenu: d } = we(He), u = (f) => {
|
|
1988
|
+
a?.(f), d?.();
|
|
1989
1989
|
};
|
|
1990
|
-
return s ? /* @__PURE__ */ t(
|
|
1990
|
+
return s ? /* @__PURE__ */ t(Y, { component: "div", color: "text.disabled", "aria-disabled": "true", onClick: u, children: r }) : i && e ? /* @__PURE__ */ t(i, { onClick: u, to: e, end: A, state: o, target: c, children: r }) : /* @__PURE__ */ t(
|
|
1991
1991
|
T,
|
|
1992
1992
|
{
|
|
1993
1993
|
component: "a",
|
|
1994
1994
|
href: e,
|
|
1995
|
-
onClick:
|
|
1995
|
+
onClick: u,
|
|
1996
1996
|
className: n ? "active" : void 0,
|
|
1997
1997
|
"data-end": A,
|
|
1998
1998
|
"data-state": o,
|
|
1999
1999
|
sx: { cursor: "pointer" },
|
|
2000
|
-
target:
|
|
2000
|
+
target: c,
|
|
2001
2001
|
children: r
|
|
2002
2002
|
}
|
|
2003
2003
|
);
|
|
@@ -2075,7 +2075,7 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2075
2075
|
NavLink: A,
|
|
2076
2076
|
isCollapsed: r,
|
|
2077
2077
|
sx: n
|
|
2078
|
-
}) => /* @__PURE__ */ t(T, { sx: n?.bottomLink, children: /* @__PURE__ */ t(er, { component: A, ...e, children: /* @__PURE__ */
|
|
2078
|
+
}) => /* @__PURE__ */ t(T, { sx: n?.bottomLink, children: /* @__PURE__ */ t(er, { component: A, ...e, children: /* @__PURE__ */ m(Q, { alignItems: "center", spacing: 1, direction: "row", children: [
|
|
2079
2079
|
e?.icon && /* @__PURE__ */ t(T, { component: "span", sx: n.iconWrapper, children: e.icon }),
|
|
2080
2080
|
e?.label && /* @__PURE__ */ t(UA, { in: !r, children: /* @__PURE__ */ t(T, { component: "span", display: "flex", children: e.label }) })
|
|
2081
2081
|
] }) }) }), yr = ({ children: e, ...A }) => {
|
|
@@ -2086,29 +2086,29 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2086
2086
|
isTablet: i,
|
|
2087
2087
|
isDrawerOpen: s,
|
|
2088
2088
|
isCollapsed: a,
|
|
2089
|
-
toggleCollapse:
|
|
2090
|
-
sideBarWidth:
|
|
2091
|
-
bottomLink:
|
|
2089
|
+
toggleCollapse: c,
|
|
2090
|
+
sideBarWidth: d,
|
|
2091
|
+
bottomLink: u,
|
|
2092
2092
|
NavLink: f,
|
|
2093
2093
|
Footer: v,
|
|
2094
|
-
Search:
|
|
2095
|
-
Logo:
|
|
2096
|
-
} = we(He), { palette:
|
|
2097
|
-
return /* @__PURE__ */
|
|
2094
|
+
Search: x = A.Logo,
|
|
2095
|
+
Logo: h = A.Logo
|
|
2096
|
+
} = we(He), { palette: p } = fe(), b = p.mode === "dark" ? p.background.default : p.primary.black, k = o && s ? "none" : `solid 1px ${p.divider}`, C = r ? !(!o && !i) : !0;
|
|
2097
|
+
return /* @__PURE__ */ m(
|
|
2098
2098
|
T,
|
|
2099
2099
|
{
|
|
2100
2100
|
component: "aside",
|
|
2101
2101
|
sx: {
|
|
2102
2102
|
...ke.container,
|
|
2103
|
-
borderRight:
|
|
2103
|
+
borderRight: k,
|
|
2104
2104
|
overflowX: "hidden",
|
|
2105
2105
|
transform: "translateZ(0)",
|
|
2106
2106
|
transition: "width 0.3s ease-in-out",
|
|
2107
|
-
width: a ? 80 :
|
|
2107
|
+
width: a ? 80 : d || "auto",
|
|
2108
2108
|
willChange: "width"
|
|
2109
2109
|
},
|
|
2110
2110
|
children: [
|
|
2111
|
-
|
|
2111
|
+
h && /* @__PURE__ */ m(
|
|
2112
2112
|
Q,
|
|
2113
2113
|
{
|
|
2114
2114
|
sx: {
|
|
@@ -2132,24 +2132,24 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
},
|
|
2135
|
-
children:
|
|
2135
|
+
children: h
|
|
2136
2136
|
}
|
|
2137
2137
|
),
|
|
2138
|
-
o && /* @__PURE__ */ t(ue, { onClick: n, children: /* @__PURE__ */ t(_e, { color:
|
|
2138
|
+
o && /* @__PURE__ */ t(ue, { onClick: n, children: /* @__PURE__ */ t(_e, { color: p.getContrastText(b) }) })
|
|
2139
2139
|
]
|
|
2140
2140
|
}
|
|
2141
2141
|
),
|
|
2142
|
-
|
|
2142
|
+
x && C && /* @__PURE__ */ t(T, { p: 2, children: x }),
|
|
2143
2143
|
/* @__PURE__ */ t(T, { flex: 1, children: e }),
|
|
2144
|
-
|
|
2145
|
-
const
|
|
2146
|
-
return /* @__PURE__ */ t(br, { link:
|
|
2147
|
-
}) : /* @__PURE__ */ t(br, { link:
|
|
2144
|
+
u && /* @__PURE__ */ t(Q, { sx: ke.bottomLinkWrapper, spacing: 1, whiteSpace: "nowrap", children: Array.isArray(u) ? u.map((y, l) => {
|
|
2145
|
+
const I = typeof y == "object" && "url" in y ? `$${y.url}-${l}` : l;
|
|
2146
|
+
return /* @__PURE__ */ t(br, { link: y, NavLink: f, isCollapsed: a, sx: ke }, I);
|
|
2147
|
+
}) : /* @__PURE__ */ t(br, { link: u, NavLink: f, isCollapsed: a, sx: ke }) }),
|
|
2148
2148
|
/* @__PURE__ */ t(JA, {}),
|
|
2149
2149
|
/* @__PURE__ */ t(T, { display: "flex", justifyContent: "flex-end", children: /* @__PURE__ */ t(
|
|
2150
2150
|
ue,
|
|
2151
2151
|
{
|
|
2152
|
-
onClick:
|
|
2152
|
+
onClick: c,
|
|
2153
2153
|
disableFocusRipple: !0,
|
|
2154
2154
|
disableTouchRipple: !0,
|
|
2155
2155
|
sx: {
|
|
@@ -2232,14 +2232,14 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2232
2232
|
if (Ye(i))
|
|
2233
2233
|
return i;
|
|
2234
2234
|
if (i && typeof i == "object" && "label" in i) {
|
|
2235
|
-
const { count: a, url:
|
|
2236
|
-
return /* @__PURE__ */ t(Ie, { disableGutters: !0, sx: { paddingY: 0.5 }, children: /* @__PURE__ */ t(er, { url:
|
|
2237
|
-
|
|
2238
|
-
/* @__PURE__ */ t(UA, { in: !o, children: /* @__PURE__ */
|
|
2239
|
-
|
|
2235
|
+
const { count: a, url: c, label: d, icon: u, active: f, disabled: v, target: x } = i, h = `${c}-${d}-${s}`;
|
|
2236
|
+
return /* @__PURE__ */ t(Ie, { disableGutters: !0, sx: { paddingY: 0.5 }, children: /* @__PURE__ */ t(er, { url: c, component: r, active: f, disabled: v, target: x, children: /* @__PURE__ */ m(Q, { direction: "row", component: "span", spacing: 1.5, width: "100%", alignItems: "center", children: [
|
|
2237
|
+
u ? /* @__PURE__ */ t(T, { component: "div", sx: kA.iconWrapper, children: u }) : o && /* @__PURE__ */ t(T, { component: "div", sx: kA.iconWrapper, children: typeof d == "string" ? d.charAt(0) : "" }),
|
|
2238
|
+
/* @__PURE__ */ t(UA, { in: !o, children: /* @__PURE__ */ m(Q, { direction: "row", justifyContent: "space-between", flex: 1, whiteSpace: "nowrap", children: [
|
|
2239
|
+
d,
|
|
2240
2240
|
a && /* @__PURE__ */ t(Te, { color: "warning", size: "small", label: a, variant: "rounded" })
|
|
2241
2241
|
] }) })
|
|
2242
|
-
] }) }) },
|
|
2242
|
+
] }) }) }, h);
|
|
2243
2243
|
}
|
|
2244
2244
|
return null;
|
|
2245
2245
|
}) }) });
|
|
@@ -2256,7 +2256,7 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2256
2256
|
}
|
|
2257
2257
|
}, He = hA(VA), Ut = () => {
|
|
2258
2258
|
const { items: e, disableResponsive: A, isMobile: r, isTablet: n, isDrawerOpen: o, closeDrawerMenu: i, sideBarWidth: s, openDrawerMenu: a } = we(He);
|
|
2259
|
-
return (r || n) && !A ? /* @__PURE__ */
|
|
2259
|
+
return (r || n) && !A ? /* @__PURE__ */ m(he, { children: [
|
|
2260
2260
|
/* @__PURE__ */ t(zt, {}),
|
|
2261
2261
|
/* @__PURE__ */ t(l1, { anchor: "left", open: o, onClose: i, onOpen: a, children: /* @__PURE__ */ t(yr, { children: /* @__PURE__ */ t(wr, { items: e }) }) })
|
|
2262
2262
|
] }) : /* @__PURE__ */ t(yr, { width: s, children: /* @__PURE__ */ t(wr, { items: e }) });
|
|
@@ -2269,56 +2269,56 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2269
2269
|
items: i,
|
|
2270
2270
|
enableSearchFocusShortcut: s,
|
|
2271
2271
|
disableResponsive: a,
|
|
2272
|
-
hideSearchDesktop:
|
|
2273
|
-
bottomLink:
|
|
2274
|
-
sideBarWidth:
|
|
2272
|
+
hideSearchDesktop: c,
|
|
2273
|
+
bottomLink: d,
|
|
2274
|
+
sideBarWidth: u = 260
|
|
2275
2275
|
}) => {
|
|
2276
|
-
const { breakpoints: f } = fe(), v = Je(f.down("sm")),
|
|
2277
|
-
|
|
2278
|
-
}, []),
|
|
2279
|
-
|
|
2280
|
-
}, []),
|
|
2281
|
-
|
|
2276
|
+
const { breakpoints: f } = fe(), v = Je(f.down("sm")), x = Je(f.between("sm", "md")), [h, p] = q(VA.isDrawerOpen), [b, k] = q(VA.isCollapsed), S = oe(() => {
|
|
2277
|
+
p(!1);
|
|
2278
|
+
}, []), C = oe(() => {
|
|
2279
|
+
p(!0);
|
|
2280
|
+
}, []), y = oe(() => {
|
|
2281
|
+
k((I) => !I);
|
|
2282
2282
|
}, []), l = We(
|
|
2283
2283
|
() => ({
|
|
2284
2284
|
AppBar: e,
|
|
2285
|
-
bottomLink:
|
|
2286
|
-
closeDrawerMenu:
|
|
2285
|
+
bottomLink: d,
|
|
2286
|
+
closeDrawerMenu: S,
|
|
2287
2287
|
disableResponsive: a,
|
|
2288
2288
|
enableSearchFocusShortcut: s,
|
|
2289
2289
|
Footer: o,
|
|
2290
|
-
hideSearchDesktop:
|
|
2291
|
-
isCollapsed:
|
|
2292
|
-
isDrawerOpen:
|
|
2290
|
+
hideSearchDesktop: c,
|
|
2291
|
+
isCollapsed: b,
|
|
2292
|
+
isDrawerOpen: h,
|
|
2293
2293
|
isMobile: v,
|
|
2294
|
-
isTablet:
|
|
2294
|
+
isTablet: x,
|
|
2295
2295
|
items: i,
|
|
2296
2296
|
Logo: n,
|
|
2297
2297
|
NavLink: A,
|
|
2298
|
-
openDrawerMenu:
|
|
2298
|
+
openDrawerMenu: C,
|
|
2299
2299
|
Search: r,
|
|
2300
|
-
sideBarWidth:
|
|
2301
|
-
toggleCollapse:
|
|
2300
|
+
sideBarWidth: u,
|
|
2301
|
+
toggleCollapse: y
|
|
2302
2302
|
}),
|
|
2303
2303
|
[
|
|
2304
|
-
|
|
2304
|
+
S,
|
|
2305
2305
|
a,
|
|
2306
|
-
|
|
2306
|
+
h,
|
|
2307
2307
|
v,
|
|
2308
|
-
|
|
2308
|
+
x,
|
|
2309
2309
|
i,
|
|
2310
|
-
|
|
2311
|
-
|
|
2310
|
+
C,
|
|
2311
|
+
u,
|
|
2312
2312
|
n,
|
|
2313
2313
|
A,
|
|
2314
2314
|
s,
|
|
2315
2315
|
r,
|
|
2316
|
-
d,
|
|
2317
2316
|
c,
|
|
2317
|
+
d,
|
|
2318
2318
|
e,
|
|
2319
2319
|
o,
|
|
2320
|
-
|
|
2321
|
-
|
|
2320
|
+
b,
|
|
2321
|
+
y
|
|
2322
2322
|
]
|
|
2323
2323
|
);
|
|
2324
2324
|
return /* @__PURE__ */ t(He.Provider, { value: l, children: /* @__PURE__ */ t(Ut, {}) });
|
|
@@ -2326,11 +2326,11 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2326
2326
|
large: 80,
|
|
2327
2327
|
medium: 50,
|
|
2328
2328
|
small: 40
|
|
2329
|
-
}, Gt = ({ children: e, ...A }, r) => /* @__PURE__ */ t(zA, { component: "li", ref: r, ...A, children: e }), qt = ie(Gt), Xt = ({ children: e, isEmpty: A, isLoading: r, emptyMessage: n, sx: o, height: i, onClick: s, size: a = "medium", ...
|
|
2329
|
+
}, Gt = ({ children: e, ...A }, r) => /* @__PURE__ */ t(zA, { component: "li", ref: r, ...A, children: e }), qt = ie(Gt), Xt = ({ children: e, isEmpty: A, isLoading: r, emptyMessage: n, sx: o, height: i, onClick: s, size: a = "medium", ...c }, d) => r ? /* @__PURE__ */ t(ce, { width: "100%", variant: "rounded", height: i || vr[a], sx: { marginBottom: 1 }, ref: d, component: "li" }) : A ? /* @__PURE__ */ t(Ie, { disablePadding: !0, children: /* @__PURE__ */ t(YA, { severity: "info", sx: { width: "100%" }, ref: d, children: n || Wt }) }) : /* @__PURE__ */ t(
|
|
2330
2330
|
Ie,
|
|
2331
2331
|
{
|
|
2332
2332
|
component: qt,
|
|
2333
|
-
ref:
|
|
2333
|
+
ref: d,
|
|
2334
2334
|
onClick: s,
|
|
2335
2335
|
sx: {
|
|
2336
2336
|
alignItems: "center",
|
|
@@ -2347,12 +2347,12 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2347
2347
|
},
|
|
2348
2348
|
...o
|
|
2349
2349
|
},
|
|
2350
|
-
...
|
|
2350
|
+
...c,
|
|
2351
2351
|
children: /* @__PURE__ */ t(T, { flex: "auto", minWidth: 0, children: e })
|
|
2352
2352
|
}
|
|
2353
2353
|
), qn = Qr(ie(Xt)), $t = ["warning", "info", "success", "error", "primary", "secondary"], _t = (e) => $t.includes(e), Kt = ({ color: e, sx: A, variant: r = "filled", fontSize: n = "medium" }, o) => {
|
|
2354
|
-
const { palette: i } = fe(), s = i.mode === "dark" ? i.text.disabled : i.grey[400], a = e || s,
|
|
2355
|
-
return /* @__PURE__ */
|
|
2354
|
+
const { palette: i } = fe(), s = i.mode === "dark" ? i.text.disabled : i.grey[400], a = e || s, c = _t(e) ? i?.[e]?.main : a, d = ge(c, 0.2);
|
|
2355
|
+
return /* @__PURE__ */ m(
|
|
2356
2356
|
pe,
|
|
2357
2357
|
{
|
|
2358
2358
|
viewBox: "0 0 16 16",
|
|
@@ -2364,8 +2364,8 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2364
2364
|
...A
|
|
2365
2365
|
},
|
|
2366
2366
|
children: [
|
|
2367
|
-
/* @__PURE__ */ t("circle", { cx: "8", cy: "8", r: "8", fill: r === "filled" ?
|
|
2368
|
-
r === "filled" ? /* @__PURE__ */ t("circle", { cx: "8", cy: "8", r: "4", fill:
|
|
2367
|
+
/* @__PURE__ */ t("circle", { cx: "8", cy: "8", r: "8", fill: r === "filled" ? d : "transparent" }),
|
|
2368
|
+
r === "filled" ? /* @__PURE__ */ t("circle", { cx: "8", cy: "8", r: "4", fill: c }) : /* @__PURE__ */ t("circle", { cx: "8", cy: "8", r: "4", stroke: c, strokeWidth: "2", fill: "transparent" })
|
|
2369
2369
|
]
|
|
2370
2370
|
}
|
|
2371
2371
|
);
|
|
@@ -2404,13 +2404,13 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2404
2404
|
endIcon: s
|
|
2405
2405
|
}) => {
|
|
2406
2406
|
const a = i || s;
|
|
2407
|
-
return A && n ? /* @__PURE__ */
|
|
2407
|
+
return A && n ? /* @__PURE__ */ m(Q, { direction: n === "start" ? "row" : "row-reverse", alignItems: "center", children: [
|
|
2408
2408
|
/* @__PURE__ */ t(pA, { size: o, position: "relative", loadingPosition: n }),
|
|
2409
2409
|
/* @__PURE__ */ t(T, { component: "span", children: e })
|
|
2410
|
-
] }) : A && !r && !a ? /* @__PURE__ */
|
|
2410
|
+
] }) : A && !r && !a ? /* @__PURE__ */ m(he, { children: [
|
|
2411
2411
|
A && !r && /* @__PURE__ */ t(pA, { size: o }),
|
|
2412
2412
|
/* @__PURE__ */ t(T, { component: "span", sx: { opacity: 0 }, children: e })
|
|
2413
|
-
] }) : A && r ? /* @__PURE__ */
|
|
2413
|
+
] }) : A && r ? /* @__PURE__ */ m(he, { children: [
|
|
2414
2414
|
" ",
|
|
2415
2415
|
r,
|
|
2416
2416
|
" "
|
|
@@ -2423,9 +2423,9 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2423
2423
|
isLoading: i,
|
|
2424
2424
|
loadingIndicator: s,
|
|
2425
2425
|
loadingPosition: a,
|
|
2426
|
-
size:
|
|
2427
|
-
variant:
|
|
2428
|
-
startIcon:
|
|
2426
|
+
size: c,
|
|
2427
|
+
variant: d,
|
|
2428
|
+
startIcon: u,
|
|
2429
2429
|
endIcon: f,
|
|
2430
2430
|
...v
|
|
2431
2431
|
} = e;
|
|
@@ -2434,11 +2434,11 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2434
2434
|
{
|
|
2435
2435
|
disabled: n || i,
|
|
2436
2436
|
ref: A,
|
|
2437
|
-
size:
|
|
2438
|
-
variant:
|
|
2439
|
-
disableRipple: o ||
|
|
2440
|
-
startIcon: i &&
|
|
2441
|
-
endIcon: i && f ? /* @__PURE__ */ t(pA, { position: "relative", size:
|
|
2437
|
+
size: c,
|
|
2438
|
+
variant: d,
|
|
2439
|
+
disableRipple: o || d === "link",
|
|
2440
|
+
startIcon: i && u ? /* @__PURE__ */ t(pA, { position: "relative", size: c }) : u,
|
|
2441
|
+
endIcon: i && f ? /* @__PURE__ */ t(pA, { position: "relative", size: c }) : f,
|
|
2442
2442
|
...v,
|
|
2443
2443
|
children: /* @__PURE__ */ t(
|
|
2444
2444
|
An,
|
|
@@ -2446,8 +2446,8 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2446
2446
|
isLoading: i,
|
|
2447
2447
|
loadingIndicator: s,
|
|
2448
2448
|
loadingPosition: a,
|
|
2449
|
-
size:
|
|
2450
|
-
startIcon:
|
|
2449
|
+
size: c,
|
|
2450
|
+
startIcon: u,
|
|
2451
2451
|
endIcon: f,
|
|
2452
2452
|
children: r
|
|
2453
2453
|
}
|
|
@@ -2455,23 +2455,23 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2455
2455
|
}
|
|
2456
2456
|
);
|
|
2457
2457
|
}, Er = ie(rn), _r = ({ children: e, open: A, onClose: r, src: n, ...o }) => {
|
|
2458
|
-
const [i, s] =
|
|
2458
|
+
const [i, s] = q(!1), a = () => {
|
|
2459
2459
|
s(!0);
|
|
2460
|
-
},
|
|
2461
|
-
r?.(f,
|
|
2460
|
+
}, c = (d, u) => (d && (r?.(d, u), s(!1)), (f) => {
|
|
2461
|
+
r?.(f, u), s(!1);
|
|
2462
2462
|
});
|
|
2463
|
-
return /* @__PURE__ */ t(c1, { open: A, onClose:
|
|
2463
|
+
return /* @__PURE__ */ t(c1, { open: A, onClose: c, ...o, children: /* @__PURE__ */ m(T, { children: [
|
|
2464
2464
|
/* @__PURE__ */ t(
|
|
2465
2465
|
ue,
|
|
2466
2466
|
{
|
|
2467
2467
|
size: "small",
|
|
2468
2468
|
"aria-label": "close",
|
|
2469
|
-
onClick:
|
|
2469
|
+
onClick: c(void 0, "closeButton"),
|
|
2470
2470
|
sx: {
|
|
2471
2471
|
"&:hover": {
|
|
2472
|
-
background: ({ palette:
|
|
2472
|
+
background: ({ palette: d }) => d.augmentColor({ color: { main: d.background.default } }).light
|
|
2473
2473
|
},
|
|
2474
|
-
background: ({ palette:
|
|
2474
|
+
background: ({ palette: d }) => d.background.default,
|
|
2475
2475
|
fontSize: 35,
|
|
2476
2476
|
height: 30,
|
|
2477
2477
|
position: "absolute",
|
|
@@ -2512,17 +2512,17 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2512
2512
|
},
|
|
2513
2513
|
children: /* @__PURE__ */ t(_e, {})
|
|
2514
2514
|
}
|
|
2515
|
-
), nn = ({ children: e, value: A, index: r, orientation: n, paddingY: o, paddingX: i, fullHeight: s, sx: a },
|
|
2516
|
-
const
|
|
2515
|
+
), nn = ({ children: e, value: A, index: r, orientation: n, paddingY: o, paddingX: i, fullHeight: s, sx: a }, c) => {
|
|
2516
|
+
const d = o || 3, u = i || n === "vertical" ? 3 : 0;
|
|
2517
2517
|
return A === r ? /* @__PURE__ */ t(
|
|
2518
2518
|
T,
|
|
2519
2519
|
{
|
|
2520
|
-
ref:
|
|
2520
|
+
ref: c,
|
|
2521
2521
|
role: "tabpanel",
|
|
2522
2522
|
hidden: A !== r,
|
|
2523
2523
|
id: `tabpanel-${r}`,
|
|
2524
|
-
paddingY:
|
|
2525
|
-
paddingX:
|
|
2524
|
+
paddingY: d,
|
|
2525
|
+
paddingX: u,
|
|
2526
2526
|
height: s ? "100%" : void 0,
|
|
2527
2527
|
sx: a,
|
|
2528
2528
|
children: e
|
|
@@ -2534,7 +2534,7 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2534
2534
|
emptyText: r,
|
|
2535
2535
|
typographyProps: n = { color: "text.secondary", variant: "body2" },
|
|
2536
2536
|
skeletonProps: o
|
|
2537
|
-
}) => e ? /* @__PURE__ */ t(
|
|
2537
|
+
}) => e ? /* @__PURE__ */ t(Y, { ...n, children: /* @__PURE__ */ t(ce, { ...o }) }) : A ? /* @__PURE__ */ t(Y, { ...n, children: A }) : /* @__PURE__ */ t(Y, { ...n, color: "text.disabled", children: r }), ee = {
|
|
2538
2538
|
large: {
|
|
2539
2539
|
primary: 40,
|
|
2540
2540
|
secondary: 32
|
|
@@ -2573,15 +2573,15 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2573
2573
|
}, Kr = ie(
|
|
2574
2574
|
({ secondarySrc: e, secondaryAvatarProps: A, size: r, ...n }, o) => {
|
|
2575
2575
|
if (e || A) {
|
|
2576
|
-
const i = r ? ee[r].primary : uA(FA(n.sx) ? n.sx.width : void 0), s = r ? ee[r].primary : uA(FA(n.sx) ? n.sx.height : void 0), a = on(n?.sx, r),
|
|
2577
|
-
return /* @__PURE__ */
|
|
2576
|
+
const i = r ? ee[r].primary : uA(FA(n.sx) ? n.sx.width : void 0), s = r ? ee[r].primary : uA(FA(n.sx) ? n.sx.height : void 0), a = on(n?.sx, r), c = a.width / 3, d = a.height / 3;
|
|
2577
|
+
return /* @__PURE__ */ m(
|
|
2578
2578
|
T,
|
|
2579
2579
|
{
|
|
2580
2580
|
sx: {
|
|
2581
2581
|
display: "flex",
|
|
2582
|
-
height: s +
|
|
2582
|
+
height: s + c,
|
|
2583
2583
|
position: "relative",
|
|
2584
|
-
width: i +
|
|
2584
|
+
width: i + d
|
|
2585
2585
|
},
|
|
2586
2586
|
children: [
|
|
2587
2587
|
/* @__PURE__ */ t(
|
|
@@ -2606,7 +2606,7 @@ const mr = 32, Pt = 24, Tt = 105, Lt = 24, Dt = 195, Ht = 44, Ot = 147, Qt = ()
|
|
|
2606
2606
|
sx: {
|
|
2607
2607
|
bottom: 0,
|
|
2608
2608
|
height: a.height,
|
|
2609
|
-
outline: ({ palette:
|
|
2609
|
+
outline: ({ palette: u }) => `2px solid ${u.common.white}`,
|
|
2610
2610
|
position: "absolute",
|
|
2611
2611
|
right: 0,
|
|
2612
2612
|
width: a.width,
|
|
@@ -2644,14 +2644,14 @@ const an = (e, A) => {
|
|
|
2644
2644
|
secondaryTitle: i,
|
|
2645
2645
|
width: s = 64,
|
|
2646
2646
|
height: a = 64,
|
|
2647
|
-
alt:
|
|
2647
|
+
alt: c = "Article"
|
|
2648
2648
|
}) => {
|
|
2649
|
-
const [
|
|
2650
|
-
v(!1),
|
|
2651
|
-
},
|
|
2652
|
-
v(!0),
|
|
2649
|
+
const [d, u] = q(!1), [f, v] = q(!1), { borderRadius: x, padding: h } = an(s, a), p = { borderRadius: x, flexShrink: 0 }, b = e && !d && !f, k = !e || f, S = e?.endsWith(".png") || e?.endsWith(".svg") || e?.endsWith(".gif") || e?.endsWith(".webp") || !1, C = () => {
|
|
2650
|
+
v(!1), u(!0);
|
|
2651
|
+
}, y = () => {
|
|
2652
|
+
v(!0), u(!1);
|
|
2653
2653
|
};
|
|
2654
|
-
return /* @__PURE__ */
|
|
2654
|
+
return /* @__PURE__ */ m(
|
|
2655
2655
|
Kr,
|
|
2656
2656
|
{
|
|
2657
2657
|
src: e,
|
|
@@ -2663,24 +2663,24 @@ const an = (e, A) => {
|
|
|
2663
2663
|
},
|
|
2664
2664
|
title: i
|
|
2665
2665
|
},
|
|
2666
|
-
alt:
|
|
2667
|
-
onError:
|
|
2668
|
-
onLoad:
|
|
2666
|
+
alt: c,
|
|
2667
|
+
onError: y,
|
|
2668
|
+
onLoad: C,
|
|
2669
2669
|
sx: {
|
|
2670
|
-
...
|
|
2670
|
+
...p,
|
|
2671
2671
|
// Hide image until loaded
|
|
2672
2672
|
"& img": {
|
|
2673
|
-
visibility:
|
|
2673
|
+
visibility: d || f ? "visible" : "hidden"
|
|
2674
2674
|
},
|
|
2675
2675
|
background: ({ palette: l }) => l.grey[100],
|
|
2676
2676
|
height: a,
|
|
2677
|
-
padding:
|
|
2677
|
+
padding: S || k ? h : 0,
|
|
2678
2678
|
width: s,
|
|
2679
2679
|
...o
|
|
2680
2680
|
},
|
|
2681
2681
|
children: [
|
|
2682
|
-
(A ||
|
|
2683
|
-
|
|
2682
|
+
(A || b) && /* @__PURE__ */ t(sn, { width: s, height: a, sx: p }),
|
|
2683
|
+
k && /* @__PURE__ */ m("svg", { width: "100%", height: "100%", viewBox: "0 0 39 38", fill: "none", children: [
|
|
2684
2684
|
/* @__PURE__ */ t(
|
|
2685
2685
|
"path",
|
|
2686
2686
|
{
|
|
@@ -2793,46 +2793,46 @@ const an = (e, A) => {
|
|
|
2793
2793
|
widthLightbox: i,
|
|
2794
2794
|
heightLightbox: s,
|
|
2795
2795
|
sxLightbox: a,
|
|
2796
|
-
disableLightbox:
|
|
2797
|
-
disableThumb:
|
|
2798
|
-
open:
|
|
2796
|
+
disableLightbox: c,
|
|
2797
|
+
disableThumb: d,
|
|
2798
|
+
open: u,
|
|
2799
2799
|
onClose: f,
|
|
2800
2800
|
onClickThumb: v,
|
|
2801
|
-
variant:
|
|
2802
|
-
height:
|
|
2803
|
-
width:
|
|
2801
|
+
variant: x,
|
|
2802
|
+
height: h = 152,
|
|
2803
|
+
width: p = 220
|
|
2804
2804
|
}) => {
|
|
2805
|
-
const [
|
|
2806
|
-
|
|
2807
|
-
},
|
|
2808
|
-
|
|
2809
|
-
},
|
|
2810
|
-
|
|
2805
|
+
const [b, k] = q(!1), [S, C] = q(!1), [y, l] = q(!0), I = e?.toLowerCase(), E = !I?.endsWith(".pdf") && !I?.startsWith("blob:") && !I?.endsWith(".eml"), H = I?.endsWith(".pdf"), D = c ? 1 : 0.8, X = d ? !0 : !y, V = NA(e) || NA(A), W = (E || H) && !V && X && !S && !c && e, G = e?.split(".").pop()?.toLowerCase(), K = r || e?.split("/").pop()?.split("?")[0] || "", P = () => V ? e1 : S ? ln : A || e || void 0, R = () => {
|
|
2806
|
+
k((w) => !w);
|
|
2807
|
+
}, U = () => {
|
|
2808
|
+
k(!1), f?.();
|
|
2809
|
+
}, z = () => {
|
|
2810
|
+
C(!0);
|
|
2811
2811
|
}, Ae = () => {
|
|
2812
2812
|
l(!1);
|
|
2813
2813
|
};
|
|
2814
|
-
return /* @__PURE__ */
|
|
2815
|
-
!
|
|
2814
|
+
return /* @__PURE__ */ m(he, { children: [
|
|
2815
|
+
!d && !n && /* @__PURE__ */ t(MA, { title: V ? K : "", children: /* @__PURE__ */ m(
|
|
2816
2816
|
T,
|
|
2817
2817
|
{
|
|
2818
2818
|
"data-test": "fileViewer",
|
|
2819
|
-
width:
|
|
2820
|
-
height:
|
|
2819
|
+
width: p,
|
|
2820
|
+
height: h,
|
|
2821
2821
|
onClick: async () => {
|
|
2822
|
-
if (
|
|
2823
|
-
const M = await (await fetch(e)).blob(), O = window.URL.createObjectURL(M),
|
|
2824
|
-
|
|
2825
|
-
document.body.removeChild(
|
|
2822
|
+
if (V && e) {
|
|
2823
|
+
const M = await (await fetch(e)).blob(), O = window.URL.createObjectURL(M), L = document.createElement("a");
|
|
2824
|
+
L.href = O, L.download = K, L.target = "_blank", document.body.appendChild(L), L.click(), setTimeout(() => {
|
|
2825
|
+
document.body.removeChild(L), window.URL.revokeObjectURL(O);
|
|
2826
2826
|
}, 100);
|
|
2827
2827
|
}
|
|
2828
|
-
v?.(),
|
|
2828
|
+
v?.(), R();
|
|
2829
2829
|
},
|
|
2830
2830
|
sx: {
|
|
2831
2831
|
...Ne.container,
|
|
2832
|
-
":hover": { opacity:
|
|
2833
|
-
borderRadius:
|
|
2834
|
-
cursor:
|
|
2835
|
-
pointerEvents:
|
|
2832
|
+
":hover": { opacity: D },
|
|
2833
|
+
borderRadius: x === "rounded" ? 1 : "0",
|
|
2834
|
+
cursor: c ? "default" : "pointer",
|
|
2835
|
+
pointerEvents: c ? "none" : "auto",
|
|
2836
2836
|
...o
|
|
2837
2837
|
},
|
|
2838
2838
|
children: [
|
|
@@ -2843,22 +2843,22 @@ const an = (e, A) => {
|
|
|
2843
2843
|
width: "100%",
|
|
2844
2844
|
component: E ? "img" : "iframe",
|
|
2845
2845
|
height: E ? "100%" : "auto",
|
|
2846
|
-
src:
|
|
2847
|
-
onError:
|
|
2846
|
+
src: P(),
|
|
2847
|
+
onError: z,
|
|
2848
2848
|
onLoad: Ae,
|
|
2849
2849
|
sx: {
|
|
2850
2850
|
...Ne.thumb,
|
|
2851
|
-
objectFit:
|
|
2852
|
-
padding:
|
|
2851
|
+
objectFit: V ? "contain" : "cover",
|
|
2852
|
+
padding: V ? "15%" : 0
|
|
2853
2853
|
}
|
|
2854
2854
|
},
|
|
2855
|
-
|
|
2855
|
+
P()
|
|
2856
2856
|
),
|
|
2857
|
-
|
|
2857
|
+
V && /* @__PURE__ */ t(Y, { sx: Ne.extension, variant: "body3", color: "black", children: G })
|
|
2858
2858
|
]
|
|
2859
2859
|
}
|
|
2860
2860
|
) }),
|
|
2861
|
-
|
|
2861
|
+
W && /* @__PURE__ */ t(_r, { open: u !== void 0 && (H || E) ? u : b, onClose: U, src: e, title: r, children: /* @__PURE__ */ t(
|
|
2862
2862
|
T,
|
|
2863
2863
|
{
|
|
2864
2864
|
component: H ? "iframe" : "img",
|
|
@@ -2874,9 +2874,9 @@ const an = (e, A) => {
|
|
|
2874
2874
|
n && /* @__PURE__ */ t(
|
|
2875
2875
|
T,
|
|
2876
2876
|
{
|
|
2877
|
-
onClick:
|
|
2877
|
+
onClick: R,
|
|
2878
2878
|
sx: {
|
|
2879
|
-
":hover": { opacity:
|
|
2879
|
+
":hover": { opacity: D },
|
|
2880
2880
|
cursor: "pointer"
|
|
2881
2881
|
},
|
|
2882
2882
|
children: n
|
|
@@ -2892,23 +2892,23 @@ const an = (e, A) => {
|
|
|
2892
2892
|
variant: i,
|
|
2893
2893
|
tag: s,
|
|
2894
2894
|
collapseItems: a,
|
|
2895
|
-
collapseDefaultOpen:
|
|
2896
|
-
Action:
|
|
2897
|
-
Icon:
|
|
2895
|
+
collapseDefaultOpen: c,
|
|
2896
|
+
Action: d,
|
|
2897
|
+
Icon: u,
|
|
2898
2898
|
Footer: f,
|
|
2899
2899
|
Collapse: v
|
|
2900
2900
|
}) => {
|
|
2901
|
-
const [
|
|
2901
|
+
const [x, h] = q(!1), p = v || !!a?.length;
|
|
2902
2902
|
return qA(() => {
|
|
2903
|
-
|
|
2904
|
-
}, [
|
|
2905
|
-
/* @__PURE__ */ t(T, { mt: 1.5, textAlign: "center", children: /* @__PURE__ */ t(Q, { spacing: 1, alignItems: "center", sx: { height: "100%", width: 32 }, children: /* @__PURE__ */
|
|
2906
|
-
|
|
2903
|
+
c && h(!0);
|
|
2904
|
+
}, [c]), /* @__PURE__ */ m(Q, { direction: "row", alignItems: "stretch", spacing: 0, mt: 0.5, children: [
|
|
2905
|
+
/* @__PURE__ */ t(T, { mt: 1.5, textAlign: "center", children: /* @__PURE__ */ t(Q, { spacing: 1, alignItems: "center", sx: { height: "100%", width: 32 }, children: /* @__PURE__ */ m(he, { children: [
|
|
2906
|
+
u || /* @__PURE__ */ t(aA, { color: n ? "secondary" : "primary" }),
|
|
2907
2907
|
/* @__PURE__ */ t(T, { sx: { flex: 1 }, children: !r && /* @__PURE__ */ t(
|
|
2908
2908
|
JA,
|
|
2909
2909
|
{
|
|
2910
2910
|
sx: {
|
|
2911
|
-
borderColor: ({ palette:
|
|
2911
|
+
borderColor: ({ palette: b }) => n ? b.secondary.main : b.divider,
|
|
2912
2912
|
borderStyle: n ? "solid" : "dashed",
|
|
2913
2913
|
height: "100%"
|
|
2914
2914
|
},
|
|
@@ -2917,7 +2917,7 @@ const an = (e, A) => {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
) })
|
|
2919
2919
|
] }) }) }),
|
|
2920
|
-
/* @__PURE__ */
|
|
2920
|
+
/* @__PURE__ */ m(
|
|
2921
2921
|
Q,
|
|
2922
2922
|
{
|
|
2923
2923
|
flex: 1,
|
|
@@ -2934,35 +2934,35 @@ const an = (e, A) => {
|
|
|
2934
2934
|
padding: 1.5
|
|
2935
2935
|
},
|
|
2936
2936
|
children: [
|
|
2937
|
-
/* @__PURE__ */
|
|
2938
|
-
/* @__PURE__ */
|
|
2939
|
-
/* @__PURE__ */
|
|
2937
|
+
/* @__PURE__ */ m(Q, { spacing: 1, justifyContent: "space-between", direction: "row", children: [
|
|
2938
|
+
/* @__PURE__ */ m(T, { children: [
|
|
2939
|
+
/* @__PURE__ */ m(
|
|
2940
2940
|
Q,
|
|
2941
2941
|
{
|
|
2942
2942
|
direction: "row",
|
|
2943
2943
|
alignItems: "center",
|
|
2944
|
-
sx: { cursor:
|
|
2945
|
-
onClick: () =>
|
|
2944
|
+
sx: { cursor: p ? "pointer" : "default" },
|
|
2945
|
+
onClick: () => h((b) => !b),
|
|
2946
2946
|
children: [
|
|
2947
2947
|
/* @__PURE__ */ t(
|
|
2948
|
-
|
|
2948
|
+
Y,
|
|
2949
2949
|
{
|
|
2950
2950
|
component: "span",
|
|
2951
2951
|
onClick: o,
|
|
2952
2952
|
variant: "h6",
|
|
2953
2953
|
sx: {
|
|
2954
|
-
cursor:
|
|
2954
|
+
cursor: p || o ? "pointer" : "default",
|
|
2955
2955
|
marginRight: 1,
|
|
2956
2956
|
textDecoration: o ? "underline" : "none"
|
|
2957
2957
|
},
|
|
2958
2958
|
children: e
|
|
2959
2959
|
}
|
|
2960
2960
|
),
|
|
2961
|
-
|
|
2961
|
+
p && /* @__PURE__ */ t(
|
|
2962
2962
|
Ar,
|
|
2963
2963
|
{
|
|
2964
2964
|
sx: {
|
|
2965
|
-
transform:
|
|
2965
|
+
transform: x ? "rotate(180deg)" : "rotate(0deg)",
|
|
2966
2966
|
transition: "transform 0.3s"
|
|
2967
2967
|
}
|
|
2968
2968
|
}
|
|
@@ -2971,9 +2971,9 @@ const an = (e, A) => {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
),
|
|
2973
2973
|
s && /* @__PURE__ */ t(Te, { color: s?.color || "default", label: s?.label, size: "xSmall", variant: "outlined" }),
|
|
2974
|
-
A && /* @__PURE__ */ t(
|
|
2974
|
+
A && /* @__PURE__ */ t(Y, { variant: "body2", color: "textSecondary", children: A })
|
|
2975
2975
|
] }),
|
|
2976
|
-
|
|
2976
|
+
d && /* @__PURE__ */ t(
|
|
2977
2977
|
T,
|
|
2978
2978
|
{
|
|
2979
2979
|
className: "action",
|
|
@@ -2981,47 +2981,47 @@ const an = (e, A) => {
|
|
|
2981
2981
|
opacity: i === "hover" ? 0 : 1,
|
|
2982
2982
|
transition: "opacity 0.15s"
|
|
2983
2983
|
},
|
|
2984
|
-
children:
|
|
2984
|
+
children: d
|
|
2985
2985
|
}
|
|
2986
2986
|
)
|
|
2987
2987
|
] }),
|
|
2988
2988
|
f,
|
|
2989
|
-
v && /* @__PURE__ */ t(or, { in:
|
|
2990
|
-
!!a?.length && /* @__PURE__ */ t(or, { in:
|
|
2991
|
-
const
|
|
2992
|
-
return /* @__PURE__ */
|
|
2989
|
+
v && /* @__PURE__ */ t(or, { in: x, children: v }),
|
|
2990
|
+
!!a?.length && /* @__PURE__ */ t(or, { in: x, children: /* @__PURE__ */ t(Q, { marginTop: 3, spacing: 3, children: a?.map((b, k) => {
|
|
2991
|
+
const S = `${b.title}-${k}`, C = Array.isArray(b?.file) ? b?.file : [b?.file], y = C.length > 0 ? C[0] : null;
|
|
2992
|
+
return /* @__PURE__ */ m(Q, { direction: "row", spacing: 1, minWidth: 0, children: [
|
|
2993
2993
|
/* @__PURE__ */ t(cn, { sx: { height: 18, paddingTop: 0.5, width: 18 } }),
|
|
2994
|
-
/* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
2996
|
-
|
|
2994
|
+
/* @__PURE__ */ m(Q, { minWidth: 0, children: [
|
|
2995
|
+
/* @__PURE__ */ m(Q, { direction: "row", alignItems: "center", spacing: 1, overflow: "hidden", children: [
|
|
2996
|
+
b?.title && /* @__PURE__ */ t(
|
|
2997
2997
|
MA,
|
|
2998
2998
|
{
|
|
2999
|
-
title:
|
|
2999
|
+
title: b?.title,
|
|
3000
3000
|
enterDelay: Ir,
|
|
3001
3001
|
sx: {
|
|
3002
|
-
...
|
|
3002
|
+
...b?.onClick && {
|
|
3003
3003
|
cursor: "pointer",
|
|
3004
3004
|
textDecoration: "underline"
|
|
3005
3005
|
}
|
|
3006
3006
|
},
|
|
3007
3007
|
children: /* @__PURE__ */ t(
|
|
3008
|
-
|
|
3008
|
+
Y,
|
|
3009
3009
|
{
|
|
3010
3010
|
variant: "h6",
|
|
3011
3011
|
whiteSpace: "nowrap",
|
|
3012
3012
|
textOverflow: "ellipsis",
|
|
3013
3013
|
overflow: "hidden",
|
|
3014
3014
|
minWidth: 0,
|
|
3015
|
-
onClick:
|
|
3016
|
-
children:
|
|
3015
|
+
onClick: b?.onClick,
|
|
3016
|
+
children: b?.title
|
|
3017
3017
|
}
|
|
3018
3018
|
)
|
|
3019
3019
|
}
|
|
3020
3020
|
),
|
|
3021
|
-
|
|
3021
|
+
b?.tag && /* @__PURE__ */ t(Te, { color: b?.tag?.color || "default", label: b?.tag?.label, size: "xSmall", variant: "outlined" })
|
|
3022
3022
|
] }),
|
|
3023
|
-
|
|
3024
|
-
|
|
3023
|
+
b?.subtitle && /* @__PURE__ */ t(MA, { title: b?.subtitle, enterDelay: Ir, children: /* @__PURE__ */ t(
|
|
3024
|
+
Y,
|
|
3025
3025
|
{
|
|
3026
3026
|
variant: "body2",
|
|
3027
3027
|
color: "textSecondary",
|
|
@@ -3029,14 +3029,14 @@ const an = (e, A) => {
|
|
|
3029
3029
|
textOverflow: "ellipsis",
|
|
3030
3030
|
overflow: "hidden",
|
|
3031
3031
|
minWidth: 0,
|
|
3032
|
-
children:
|
|
3032
|
+
children: b?.subtitle
|
|
3033
3033
|
}
|
|
3034
3034
|
) }),
|
|
3035
|
-
|
|
3036
|
-
|
|
3035
|
+
b?.file && /* @__PURE__ */ m(Q, { direction: "row", marginTop: 1, spacing: 0.5, children: [
|
|
3036
|
+
y && (typeof y == "string" ? /* @__PURE__ */ t(
|
|
3037
3037
|
fA,
|
|
3038
3038
|
{
|
|
3039
|
-
src:
|
|
3039
|
+
src: y,
|
|
3040
3040
|
sx: {
|
|
3041
3041
|
borderRadius: 0.5,
|
|
3042
3042
|
cursor: "pointer",
|
|
@@ -3047,9 +3047,9 @@ const an = (e, A) => {
|
|
|
3047
3047
|
) : /* @__PURE__ */ t(
|
|
3048
3048
|
fA,
|
|
3049
3049
|
{
|
|
3050
|
-
src:
|
|
3051
|
-
srcThumb:
|
|
3052
|
-
fileName:
|
|
3050
|
+
src: y.src || "",
|
|
3051
|
+
srcThumb: y.srcThumb,
|
|
3052
|
+
fileName: y.fileName,
|
|
3053
3053
|
sx: {
|
|
3054
3054
|
borderRadius: 0.5,
|
|
3055
3055
|
cursor: "pointer",
|
|
@@ -3058,7 +3058,7 @@ const an = (e, A) => {
|
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
)),
|
|
3061
|
-
|
|
3061
|
+
C.length > 1 && /* @__PURE__ */ t(
|
|
3062
3062
|
T,
|
|
3063
3063
|
{
|
|
3064
3064
|
sx: {
|
|
@@ -3070,12 +3070,12 @@ const an = (e, A) => {
|
|
|
3070
3070
|
justifyContent: "center",
|
|
3071
3071
|
width: Be
|
|
3072
3072
|
},
|
|
3073
|
-
children: `${
|
|
3073
|
+
children: `${C.length - 1}+`
|
|
3074
3074
|
}
|
|
3075
3075
|
)
|
|
3076
3076
|
] })
|
|
3077
3077
|
] })
|
|
3078
|
-
] },
|
|
3078
|
+
] }, S);
|
|
3079
3079
|
}) }) })
|
|
3080
3080
|
]
|
|
3081
3081
|
}
|
|
@@ -3106,61 +3106,61 @@ const an = (e, A) => {
|
|
|
3106
3106
|
"data-test": i,
|
|
3107
3107
|
"data-testid": s
|
|
3108
3108
|
}) => {
|
|
3109
|
-
const [a,
|
|
3110
|
-
return A ? /* @__PURE__ */ t(SA, { sx: n, "data-test": i, "data-testid": s, children: /* @__PURE__ */
|
|
3111
|
-
/* @__PURE__ */
|
|
3109
|
+
const [a, c] = q("");
|
|
3110
|
+
return A ? /* @__PURE__ */ t(SA, { sx: n, "data-test": i, "data-testid": s, children: /* @__PURE__ */ m(Q, { spacing: 3, children: [
|
|
3111
|
+
/* @__PURE__ */ m(Q, { spacing: 2, pt: 1, pl: 0.5, direction: "row", children: [
|
|
3112
3112
|
/* @__PURE__ */ t(aA, {}),
|
|
3113
|
-
/* @__PURE__ */
|
|
3114
|
-
/* @__PURE__ */ t(
|
|
3115
|
-
/* @__PURE__ */ t(
|
|
3113
|
+
/* @__PURE__ */ m(Q, { children: [
|
|
3114
|
+
/* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(ce, { width: 100 }) }),
|
|
3115
|
+
/* @__PURE__ */ t(Y, { variant: "body2", children: /* @__PURE__ */ t(ce, { width: 130 }) })
|
|
3116
3116
|
] })
|
|
3117
3117
|
] }),
|
|
3118
|
-
/* @__PURE__ */
|
|
3118
|
+
/* @__PURE__ */ m(Q, { spacing: 2, pt: 1, pl: 0.5, direction: "row", children: [
|
|
3119
3119
|
/* @__PURE__ */ t(aA, {}),
|
|
3120
|
-
/* @__PURE__ */
|
|
3121
|
-
/* @__PURE__ */ t(
|
|
3122
|
-
/* @__PURE__ */ t(
|
|
3120
|
+
/* @__PURE__ */ m(Q, { children: [
|
|
3121
|
+
/* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(ce, { width: 150 }) }),
|
|
3122
|
+
/* @__PURE__ */ t(Y, { variant: "body2", children: /* @__PURE__ */ t(ce, { width: 100, height: 20 }) })
|
|
3123
3123
|
] })
|
|
3124
3124
|
] }),
|
|
3125
|
-
/* @__PURE__ */
|
|
3125
|
+
/* @__PURE__ */ m(Q, { spacing: 2, pt: 1, pl: 0.5, direction: "row", children: [
|
|
3126
3126
|
/* @__PURE__ */ t(aA, {}),
|
|
3127
|
-
/* @__PURE__ */
|
|
3128
|
-
/* @__PURE__ */ t(
|
|
3129
|
-
/* @__PURE__ */ t(
|
|
3127
|
+
/* @__PURE__ */ m(Q, { children: [
|
|
3128
|
+
/* @__PURE__ */ t(Y, { children: /* @__PURE__ */ t(ce, { width: 80 }) }),
|
|
3129
|
+
/* @__PURE__ */ t(Y, { variant: "body2", children: /* @__PURE__ */ t(ce, { width: 110, height: 20 }) })
|
|
3130
3130
|
] })
|
|
3131
3131
|
] })
|
|
3132
|
-
] }) }) : !e?.length && !A ? /* @__PURE__ */ t(SA, { sx: n, children: /* @__PURE__ */ t(YA, { severity: "info", children: r }) }) : /* @__PURE__ */
|
|
3132
|
+
] }) }) : !e?.length && !A ? /* @__PURE__ */ t(SA, { sx: n, children: /* @__PURE__ */ t(YA, { severity: "info", children: r }) }) : /* @__PURE__ */ m(he, { children: [
|
|
3133
3133
|
/* @__PURE__ */ t(SA, { sx: n, "data-test": i, "data-testid": s, children: e?.map(
|
|
3134
|
-
({ Action:
|
|
3135
|
-
const
|
|
3134
|
+
({ Action: d, Collapse: u, collapseItems: f, collapseDefaultOpen: v, subtitle: x, key: h, active: p, Footer: b, Icon: k, onClick: S, tag: C, title: y }, l) => {
|
|
3135
|
+
const I = `${h}-${l}-${y}`, E = l === e.length - 1;
|
|
3136
3136
|
return /* @__PURE__ */ t(
|
|
3137
3137
|
dn,
|
|
3138
3138
|
{
|
|
3139
|
-
Action:
|
|
3140
|
-
Footer:
|
|
3141
|
-
Collapse:
|
|
3139
|
+
Action: d,
|
|
3140
|
+
Footer: b,
|
|
3141
|
+
Collapse: u,
|
|
3142
3142
|
collapseDefaultOpen: v,
|
|
3143
3143
|
collapseItems: f,
|
|
3144
|
-
active:
|
|
3145
|
-
title:
|
|
3146
|
-
subtitle:
|
|
3147
|
-
Icon:
|
|
3144
|
+
active: p,
|
|
3145
|
+
title: y,
|
|
3146
|
+
subtitle: x,
|
|
3147
|
+
Icon: k,
|
|
3148
3148
|
isLastElement: E,
|
|
3149
|
-
onClick:
|
|
3150
|
-
tag:
|
|
3149
|
+
onClick: S,
|
|
3150
|
+
tag: C,
|
|
3151
3151
|
variant: o
|
|
3152
3152
|
},
|
|
3153
|
-
|
|
3153
|
+
I
|
|
3154
3154
|
);
|
|
3155
3155
|
}
|
|
3156
3156
|
) }),
|
|
3157
|
-
/* @__PURE__ */ t(_r, { open: !!a, onClose: () =>
|
|
3157
|
+
/* @__PURE__ */ t(_r, { open: !!a, onClose: () => c(""), src: a })
|
|
3158
3158
|
] });
|
|
3159
3159
|
}, pn = (e, A) => XA(e, A), eo = ({ Main: e, Sidebar: A, AppBar: r }) => {
|
|
3160
3160
|
const { breakpoints: n } = fe(), o = LA(null), i = Je(n.down("md")), s = A && pn(A, { AppBar: r });
|
|
3161
|
-
return /* @__PURE__ */
|
|
3161
|
+
return /* @__PURE__ */ m(Q, { height: "100%", children: [
|
|
3162
3162
|
!i && r,
|
|
3163
|
-
/* @__PURE__ */
|
|
3163
|
+
/* @__PURE__ */ m(Q, { height: "100%", direction: i ? "column" : "row", minHeight: 0, children: [
|
|
3164
3164
|
s,
|
|
3165
3165
|
/* @__PURE__ */ t(
|
|
3166
3166
|
T,
|
|
@@ -3499,8 +3499,8 @@ const an = (e, A) => {
|
|
|
3499
3499
|
...A,
|
|
3500
3500
|
input: {
|
|
3501
3501
|
autoComplete: "off",
|
|
3502
|
-
startAdornment: r === "search" && /* @__PURE__ */ t(Pe, { position: "start", children: /* @__PURE__ */ t(pe, { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", children: /* @__PURE__ */
|
|
3503
|
-
/* @__PURE__ */
|
|
3502
|
+
startAdornment: r === "search" && /* @__PURE__ */ t(Pe, { position: "start", children: /* @__PURE__ */ t(pe, { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", children: /* @__PURE__ */ m("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3503
|
+
/* @__PURE__ */ m("g", { clipPath: "url(#clip0_14432_13952)", children: [
|
|
3504
3504
|
/* @__PURE__ */ t(
|
|
3505
3505
|
"path",
|
|
3506
3506
|
{
|
|
@@ -3520,7 +3520,7 @@ const an = (e, A) => {
|
|
|
3520
3520
|
...n
|
|
3521
3521
|
}
|
|
3522
3522
|
)), A1 = () => {
|
|
3523
|
-
const [e, A] =
|
|
3523
|
+
const [e, A] = q(null), r = !!e, n = oe(() => {
|
|
3524
3524
|
A(null);
|
|
3525
3525
|
}, []), o = oe(({ currentTarget: i }) => {
|
|
3526
3526
|
A(i);
|
|
@@ -3540,14 +3540,14 @@ const an = (e, A) => {
|
|
|
3540
3540
|
avatarProps: i,
|
|
3541
3541
|
searchProps: s,
|
|
3542
3542
|
actionProps: a,
|
|
3543
|
-
logoProps:
|
|
3544
|
-
children:
|
|
3545
|
-
onClickBurger:
|
|
3543
|
+
logoProps: c,
|
|
3544
|
+
children: d,
|
|
3545
|
+
onClickBurger: u,
|
|
3546
3546
|
sx: f,
|
|
3547
3547
|
position: v = "static",
|
|
3548
|
-
elevation:
|
|
3548
|
+
elevation: x = 0
|
|
3549
3549
|
}) => {
|
|
3550
|
-
const { breakpoints:
|
|
3550
|
+
const { breakpoints: h } = fe(), { closeMenu: p, isMenuOpen: b, anchorMenu: k, openMenu: S } = A1(), { menuItems: C, ...y } = i || {}, l = Je(h.down("sm")), I = Je(h.between("sm", "md")), E = l || I, H = {
|
|
3551
3551
|
logoContainer: {
|
|
3552
3552
|
a: {
|
|
3553
3553
|
display: "flex"
|
|
@@ -3566,10 +3566,10 @@ const an = (e, A) => {
|
|
|
3566
3566
|
width: "100%"
|
|
3567
3567
|
},
|
|
3568
3568
|
"& > a.active": {
|
|
3569
|
-
backgroundColor: ({ palette:
|
|
3569
|
+
backgroundColor: ({ palette: D }) => ge(D.primary.main, D.action.selectedOpacity)
|
|
3570
3570
|
},
|
|
3571
3571
|
"& > a.active:hover": {
|
|
3572
|
-
backgroundColor: ({ palette:
|
|
3572
|
+
backgroundColor: ({ palette: D }) => ge(D.primary.main, D.action.selectedOpacity + D.action.hoverOpacity)
|
|
3573
3573
|
},
|
|
3574
3574
|
overflow: "hidden",
|
|
3575
3575
|
padding: "0 !important"
|
|
@@ -3577,38 +3577,38 @@ const an = (e, A) => {
|
|
|
3577
3577
|
paddingX: l ? 1 : 3,
|
|
3578
3578
|
...f
|
|
3579
3579
|
};
|
|
3580
|
-
return
|
|
3581
|
-
/* @__PURE__ */ t(RA, { position: v, elevation:
|
|
3582
|
-
E && /* @__PURE__ */ t(ue, { onClick:
|
|
3583
|
-
E || n === null ? null : /* @__PURE__ */ t(T, { sx: H.logoContainer, children: n || /* @__PURE__ */ t(Ft, { mode: "dark", ...
|
|
3584
|
-
/* @__PURE__ */
|
|
3580
|
+
return d ? /* @__PURE__ */ t(RA, { position: v, elevation: x, sx: H, children: d }) : /* @__PURE__ */ m(he, { children: [
|
|
3581
|
+
/* @__PURE__ */ t(RA, { position: v, elevation: x, sx: H, children: /* @__PURE__ */ m(Q, { direction: "row", sx: { alignItems: "center", height: "100%", width: "100%" }, spacing: 1, children: [
|
|
3582
|
+
E && /* @__PURE__ */ t(ue, { onClick: u, edge: "end", color: "inherit", "aria-label": "menu", children: /* @__PURE__ */ t($r, {}) }),
|
|
3583
|
+
E || n === null ? null : /* @__PURE__ */ t(T, { sx: H.logoContainer, children: n || /* @__PURE__ */ t(Ft, { mode: "dark", ...c }) }),
|
|
3584
|
+
/* @__PURE__ */ m(Q, { alignItems: "center", direction: "row", justifyContent: l ? "flex-end" : "center", spacing: 1, flex: 1, children: [
|
|
3585
3585
|
l && (r === null ? null : r || /* @__PURE__ */ t(kr, { ...a })),
|
|
3586
3586
|
A === null ? null : A || /* @__PURE__ */ t(gn, { ...s })
|
|
3587
3587
|
] }),
|
|
3588
|
-
/* @__PURE__ */
|
|
3588
|
+
/* @__PURE__ */ m(Q, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
3589
3589
|
!l && (r === null ? null : r || /* @__PURE__ */ t(kr, { ...a })),
|
|
3590
3590
|
e === null ? null : e || /* @__PURE__ */ t(
|
|
3591
3591
|
fn,
|
|
3592
3592
|
{
|
|
3593
|
-
...
|
|
3593
|
+
...y,
|
|
3594
3594
|
sx: {
|
|
3595
|
-
cursor:
|
|
3595
|
+
cursor: C ? "pointer" : "default"
|
|
3596
3596
|
},
|
|
3597
|
-
onClick: (
|
|
3598
|
-
|
|
3597
|
+
onClick: (D) => {
|
|
3598
|
+
S(D), i?.onClick?.(D);
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
)
|
|
3602
3602
|
] })
|
|
3603
3603
|
] }) }),
|
|
3604
|
-
|
|
3604
|
+
C && /* @__PURE__ */ t(Or, { sx: { zIndex: (D) => D.zIndex.drawer + 1 }, open: b, onClick: p, children: /* @__PURE__ */ t(
|
|
3605
3605
|
Lr,
|
|
3606
3606
|
{
|
|
3607
3607
|
id: hn,
|
|
3608
|
-
anchorEl:
|
|
3609
|
-
open:
|
|
3610
|
-
onClose:
|
|
3611
|
-
onChange:
|
|
3608
|
+
anchorEl: k,
|
|
3609
|
+
open: b,
|
|
3610
|
+
onClose: p,
|
|
3611
|
+
onChange: p,
|
|
3612
3612
|
anchorOrigin: {
|
|
3613
3613
|
horizontal: "right",
|
|
3614
3614
|
vertical: "bottom"
|
|
@@ -3620,19 +3620,19 @@ const an = (e, A) => {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
3622
3622
|
},
|
|
3623
|
-
children:
|
|
3624
|
-
if (Ye(
|
|
3625
|
-
if (
|
|
3626
|
-
return
|
|
3627
|
-
const
|
|
3628
|
-
return XA(
|
|
3623
|
+
children: C?.map((D, X) => {
|
|
3624
|
+
if (Ye(D)) {
|
|
3625
|
+
if (D.key)
|
|
3626
|
+
return D;
|
|
3627
|
+
const V = `${C}-${X}`;
|
|
3628
|
+
return XA(D, { key: V });
|
|
3629
3629
|
}
|
|
3630
|
-
if (
|
|
3631
|
-
const { url:
|
|
3632
|
-
return /* @__PURE__ */ t(Dr, { sx: H.menuItem, onClick:
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
] },
|
|
3630
|
+
if (D && typeof D == "object" && "url" in D) {
|
|
3631
|
+
const { url: V, label: W, icon: G, active: K, end: P, state: R } = D, U = `${V}-${W}-${X}`;
|
|
3632
|
+
return /* @__PURE__ */ t(Dr, { sx: H.menuItem, onClick: p, children: /* @__PURE__ */ m(er, { url: V, component: o, active: K, end: P, state: R, children: [
|
|
3633
|
+
G && /* @__PURE__ */ t(Hr, { children: G }),
|
|
3634
|
+
W && /* @__PURE__ */ t(Ee, { children: W })
|
|
3635
|
+
] }, U) }, U);
|
|
3636
3636
|
}
|
|
3637
3637
|
return null;
|
|
3638
3638
|
})
|
|
@@ -3640,7 +3640,7 @@ const an = (e, A) => {
|
|
|
3640
3640
|
) })
|
|
3641
3641
|
] });
|
|
3642
3642
|
}, Cn = ({ sx: e, fontSize: A, color: r = "currentColor" }) => /* @__PURE__ */ t(pe, { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: A, sx: e, children: /* @__PURE__ */ t("rect", { x: "1", y: "1", width: "6", height: "6", rx: "3", fill: r }) }), xn = ({ dot: e, color: A, variant: r, sx: n, lineThrough: o, ...i }, s) => {
|
|
3643
|
-
const { palette: a } = fe(),
|
|
3643
|
+
const { palette: a } = fe(), c = {
|
|
3644
3644
|
active: a.text.contrast,
|
|
3645
3645
|
default: a.text.secondary,
|
|
3646
3646
|
error: a.error.main,
|
|
@@ -3663,7 +3663,7 @@ const an = (e, A) => {
|
|
|
3663
3663
|
icon: e ? /* @__PURE__ */ t(
|
|
3664
3664
|
Cn,
|
|
3665
3665
|
{
|
|
3666
|
-
color:
|
|
3666
|
+
color: c[A || "default"],
|
|
3667
3667
|
fontSize: "inherit",
|
|
3668
3668
|
sx: {
|
|
3669
3669
|
height: 8,
|
|
@@ -3675,7 +3675,7 @@ const an = (e, A) => {
|
|
|
3675
3675
|
...i
|
|
3676
3676
|
}
|
|
3677
3677
|
);
|
|
3678
|
-
}, ro = ie(xn), mn = ({ fontSize: e, sx: A, color: r = "currentColor" }) => /* @__PURE__ */
|
|
3678
|
+
}, ro = ie(xn), mn = ({ fontSize: e, sx: A, color: r = "currentColor" }) => /* @__PURE__ */ m(pe, { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: e, sx: A, children: [
|
|
3679
3679
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_12914_201806)", children: /* @__PURE__ */ t(
|
|
3680
3680
|
"path",
|
|
3681
3681
|
{
|
|
@@ -3729,7 +3729,7 @@ const an = (e, A) => {
|
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
|
3731
3731
|
}
|
|
3732
|
-
}, yn = [400, 500, 600, 700], wn = "Poppins, sans-serif",
|
|
3732
|
+
}, yn = [400, 500, 600, 700], wn = "Poppins, sans-serif", J = (e, A = 16, r = 14) => {
|
|
3733
3733
|
const n = r / 14;
|
|
3734
3734
|
return `${e / A * n}rem`;
|
|
3735
3735
|
}, Sr = {
|
|
@@ -3817,7 +3817,7 @@ const an = (e, A) => {
|
|
|
3817
3817
|
MuiAlertTitle: {
|
|
3818
3818
|
styleOverrides: {
|
|
3819
3819
|
root: {
|
|
3820
|
-
fontSize:
|
|
3820
|
+
fontSize: J(16),
|
|
3821
3821
|
letterSpacing: -0.35
|
|
3822
3822
|
}
|
|
3823
3823
|
}
|
|
@@ -3875,7 +3875,7 @@ const an = (e, A) => {
|
|
|
3875
3875
|
},
|
|
3876
3876
|
backgroundColor: e.palette.grey[100],
|
|
3877
3877
|
color: e.palette.text.primary,
|
|
3878
|
-
fontSize:
|
|
3878
|
+
fontSize: J(14),
|
|
3879
3879
|
letterSpacing: -0.45
|
|
3880
3880
|
})
|
|
3881
3881
|
}
|
|
@@ -3888,7 +3888,7 @@ const an = (e, A) => {
|
|
|
3888
3888
|
backgroundColor: e.palette.mode === "light" && A.color === "default" ? e.palette.grey[100] : A.color,
|
|
3889
3889
|
borderRadius: e.shape.borderRadiusS,
|
|
3890
3890
|
color: r(e.palette.mode, A.color),
|
|
3891
|
-
fontSize:
|
|
3891
|
+
fontSize: J(12),
|
|
3892
3892
|
letterSpacing: 0.14
|
|
3893
3893
|
};
|
|
3894
3894
|
}
|
|
@@ -3901,7 +3901,7 @@ const an = (e, A) => {
|
|
|
3901
3901
|
color: e.palette.common.white
|
|
3902
3902
|
},
|
|
3903
3903
|
color: e.palette.text.secondary,
|
|
3904
|
-
fontSize:
|
|
3904
|
+
fontSize: J(14),
|
|
3905
3905
|
letterSpacing: -0.3
|
|
3906
3906
|
}),
|
|
3907
3907
|
root: ({ theme: e }) => ({
|
|
@@ -3942,7 +3942,7 @@ const an = (e, A) => {
|
|
|
3942
3942
|
{
|
|
3943
3943
|
props: { size: "small" },
|
|
3944
3944
|
style: {
|
|
3945
|
-
fontSize:
|
|
3945
|
+
fontSize: J(13),
|
|
3946
3946
|
letterSpacing: -0.3,
|
|
3947
3947
|
minHeight: 40
|
|
3948
3948
|
}
|
|
@@ -3956,7 +3956,7 @@ const an = (e, A) => {
|
|
|
3956
3956
|
{
|
|
3957
3957
|
props: { size: "large" },
|
|
3958
3958
|
style: {
|
|
3959
|
-
fontSize:
|
|
3959
|
+
fontSize: J(15),
|
|
3960
3960
|
letterSpacing: -0.35,
|
|
3961
3961
|
minHeight: 56
|
|
3962
3962
|
}
|
|
@@ -4250,7 +4250,7 @@ const an = (e, A) => {
|
|
|
4250
4250
|
MuiFormHelperText: {
|
|
4251
4251
|
styleOverrides: {
|
|
4252
4252
|
root: {
|
|
4253
|
-
fontSize:
|
|
4253
|
+
fontSize: J(14),
|
|
4254
4254
|
letterSpacing: 0.4
|
|
4255
4255
|
}
|
|
4256
4256
|
}
|
|
@@ -4542,7 +4542,7 @@ const an = (e, A) => {
|
|
|
4542
4542
|
MuiTooltip: {
|
|
4543
4543
|
styleOverrides: {
|
|
4544
4544
|
tooltip: {
|
|
4545
|
-
fontSize:
|
|
4545
|
+
fontSize: J(14),
|
|
4546
4546
|
letterSpacing: 0
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
@@ -4582,66 +4582,66 @@ const an = (e, A) => {
|
|
|
4582
4582
|
},
|
|
4583
4583
|
typography: () => ({
|
|
4584
4584
|
body1: {
|
|
4585
|
-
fontSize:
|
|
4585
|
+
fontSize: J(16),
|
|
4586
4586
|
letterSpacing: -0.35
|
|
4587
4587
|
},
|
|
4588
4588
|
body2: {
|
|
4589
|
-
fontSize:
|
|
4589
|
+
fontSize: J(14),
|
|
4590
4590
|
letterSpacing: -0.3
|
|
4591
4591
|
},
|
|
4592
4592
|
body3: {
|
|
4593
|
-
fontSize:
|
|
4593
|
+
fontSize: J(12),
|
|
4594
4594
|
letterSpacing: -0.3
|
|
4595
4595
|
},
|
|
4596
4596
|
button: {
|
|
4597
|
-
fontSize:
|
|
4597
|
+
fontSize: J(14),
|
|
4598
4598
|
letterSpacing: -0.3
|
|
4599
4599
|
},
|
|
4600
4600
|
caption: {
|
|
4601
|
-
fontSize:
|
|
4601
|
+
fontSize: J(12),
|
|
4602
4602
|
letterSpacing: -0.3
|
|
4603
4603
|
},
|
|
4604
4604
|
fontFamily: wn,
|
|
4605
4605
|
h1: {
|
|
4606
|
-
fontSize:
|
|
4606
|
+
fontSize: J(28),
|
|
4607
4607
|
fontWeight: 700,
|
|
4608
4608
|
letterSpacing: -0.6
|
|
4609
4609
|
},
|
|
4610
4610
|
h2: {
|
|
4611
|
-
fontSize:
|
|
4611
|
+
fontSize: J(24),
|
|
4612
4612
|
fontWeight: 600,
|
|
4613
4613
|
letterSpacing: -0.5
|
|
4614
4614
|
},
|
|
4615
4615
|
h3: {
|
|
4616
|
-
fontSize:
|
|
4616
|
+
fontSize: J(20),
|
|
4617
4617
|
fontWeight: 600,
|
|
4618
4618
|
letterSpacing: -0.45
|
|
4619
4619
|
},
|
|
4620
4620
|
h4: {
|
|
4621
|
-
fontSize:
|
|
4621
|
+
fontSize: J(18),
|
|
4622
4622
|
fontWeight: 500,
|
|
4623
4623
|
letterSpacing: -0.4
|
|
4624
4624
|
},
|
|
4625
4625
|
h5: {
|
|
4626
|
-
fontSize:
|
|
4626
|
+
fontSize: J(16),
|
|
4627
4627
|
fontWeight: 500,
|
|
4628
4628
|
letterSpacing: -0.35
|
|
4629
4629
|
},
|
|
4630
4630
|
h6: {
|
|
4631
|
-
fontSize:
|
|
4631
|
+
fontSize: J(14),
|
|
4632
4632
|
fontWeight: 500,
|
|
4633
4633
|
letterSpacing: -0.3
|
|
4634
4634
|
},
|
|
4635
4635
|
overline: {
|
|
4636
|
-
fontSize:
|
|
4636
|
+
fontSize: J(12),
|
|
4637
4637
|
letterSpacing: 0.25
|
|
4638
4638
|
},
|
|
4639
4639
|
subtitle1: {
|
|
4640
|
-
fontSize:
|
|
4640
|
+
fontSize: J(16),
|
|
4641
4641
|
letterSpacing: -0.35
|
|
4642
4642
|
},
|
|
4643
4643
|
subtitle2: {
|
|
4644
|
-
fontSize:
|
|
4644
|
+
fontSize: J(14),
|
|
4645
4645
|
letterSpacing: -0.3
|
|
4646
4646
|
}
|
|
4647
4647
|
})
|
|
@@ -4709,13 +4709,13 @@ const an = (e, A) => {
|
|
|
4709
4709
|
language: s = "en",
|
|
4710
4710
|
font: a = Br
|
|
4711
4711
|
}) => {
|
|
4712
|
-
const
|
|
4713
|
-
const
|
|
4712
|
+
const c = { ...Br, ...a }, d = c?.googleFontName || ZA.typography.fontFamily?.split(",")[0], u = c?.fontWeight?.join(";"), f = We(() => ({ language: s }), [s]), v = We(() => {
|
|
4713
|
+
const x = typeof i == "object" ? i : {}, h = {
|
|
4714
4714
|
...s === "fr" && bn
|
|
4715
4715
|
};
|
|
4716
|
-
return i === "dark" || typeof i == "object" && "palette" in i && i?.palette?.mode === "dark" ? Re(t1,
|
|
4716
|
+
return i === "dark" || typeof i == "object" && "palette" in i && i?.palette?.mode === "dark" ? Re(t1, x, h) : !i || i === "light" || typeof i == "object" && "palette" in i && i?.palette?.mode === "light" ? Re(r1, x, h) : Re(ZA, x, h);
|
|
4717
4717
|
}, [i, s]);
|
|
4718
|
-
return /* @__PURE__ */ t(n1.Provider, { value: f, children: /* @__PURE__ */
|
|
4718
|
+
return /* @__PURE__ */ t(n1.Provider, { value: f, children: /* @__PURE__ */ m(u1, { theme: v, children: [
|
|
4719
4719
|
/* @__PURE__ */ t(
|
|
4720
4720
|
ze,
|
|
4721
4721
|
{
|
|
@@ -4726,11 +4726,11 @@ const an = (e, A) => {
|
|
|
4726
4726
|
`
|
|
4727
4727
|
}
|
|
4728
4728
|
),
|
|
4729
|
-
|
|
4729
|
+
c.import && /* @__PURE__ */ t(
|
|
4730
4730
|
ze,
|
|
4731
4731
|
{
|
|
4732
4732
|
styles: lA`
|
|
4733
|
-
@import url("https://fonts.googleapis.com/css2?family=${
|
|
4733
|
+
@import url("https://fonts.googleapis.com/css2?family=${d}:wght@${u}&display=swap");
|
|
4734
4734
|
`
|
|
4735
4735
|
}
|
|
4736
4736
|
),
|
|
@@ -4780,58 +4780,58 @@ const an = (e, A) => {
|
|
|
4780
4780
|
localeText: i,
|
|
4781
4781
|
multiple: s,
|
|
4782
4782
|
id: a,
|
|
4783
|
-
size:
|
|
4784
|
-
helperText:
|
|
4785
|
-
fullWidth:
|
|
4783
|
+
size: c,
|
|
4784
|
+
helperText: d,
|
|
4785
|
+
fullWidth: u,
|
|
4786
4786
|
icon: f,
|
|
4787
4787
|
onChange: v,
|
|
4788
|
-
label:
|
|
4789
|
-
pattern:
|
|
4790
|
-
title:
|
|
4791
|
-
value:
|
|
4792
|
-
variant:
|
|
4793
|
-
},
|
|
4794
|
-
const [
|
|
4795
|
-
B1(
|
|
4796
|
-
const
|
|
4797
|
-
return
|
|
4798
|
-
|
|
4799
|
-
},
|
|
4788
|
+
label: x,
|
|
4789
|
+
pattern: h,
|
|
4790
|
+
title: p,
|
|
4791
|
+
value: b,
|
|
4792
|
+
variant: k = "vertical"
|
|
4793
|
+
}, S) => {
|
|
4794
|
+
const [C, y] = q(null), { t: l } = tr(), { palette: I } = fe(), E = k === "vertical", H = a || A, D = LA(null), X = LA(null), V = b !== void 0 ? b : C, W = Rn(V);
|
|
4795
|
+
B1(S, () => {
|
|
4796
|
+
const R = X.current;
|
|
4797
|
+
return R.reset = () => {
|
|
4798
|
+
y(null), X.current && (X.current.value = "");
|
|
4799
|
+
}, R;
|
|
4800
4800
|
});
|
|
4801
|
-
const
|
|
4802
|
-
v?.(
|
|
4801
|
+
const G = (R) => {
|
|
4802
|
+
v?.(R), y(R.target.files);
|
|
4803
4803
|
};
|
|
4804
|
-
return /* @__PURE__ */
|
|
4804
|
+
return /* @__PURE__ */ m(
|
|
4805
4805
|
f1,
|
|
4806
4806
|
{
|
|
4807
|
-
ref:
|
|
4807
|
+
ref: D,
|
|
4808
4808
|
htmlFor: H,
|
|
4809
|
-
onDragOver: (
|
|
4810
|
-
|
|
4809
|
+
onDragOver: (R) => {
|
|
4810
|
+
R.preventDefault();
|
|
4811
4811
|
},
|
|
4812
|
-
onDrop: (
|
|
4813
|
-
if (
|
|
4814
|
-
const
|
|
4815
|
-
|
|
4812
|
+
onDrop: (R) => {
|
|
4813
|
+
if (R.preventDefault(), R.dataTransfer.files.length > 0) {
|
|
4814
|
+
const U = X.current, z = R.dataTransfer.files;
|
|
4815
|
+
y(z);
|
|
4816
4816
|
const Ae = new DataTransfer();
|
|
4817
|
-
Array.from(
|
|
4817
|
+
Array.from(z).forEach((g) => Ae.items.add(g)), U && (U.files = Ae.files), U?.focus(), U?.blur(), v?.({ ...R, target: U }), R.dataTransfer.clearData();
|
|
4818
4818
|
}
|
|
4819
4819
|
},
|
|
4820
4820
|
sx: {
|
|
4821
4821
|
"&:hover, &:focus": {
|
|
4822
|
-
borderColor:
|
|
4822
|
+
borderColor: I.primary.main
|
|
4823
4823
|
},
|
|
4824
|
-
border: `1px dashed ${o ?
|
|
4824
|
+
border: `1px dashed ${o ? I.error.main : I.divider}`,
|
|
4825
4825
|
borderRadius: 1,
|
|
4826
4826
|
cursor: "pointer",
|
|
4827
|
-
height: Bn(
|
|
4828
|
-
maxWidth:
|
|
4827
|
+
height: Bn(c, k),
|
|
4828
|
+
maxWidth: u ? "100%" : 400,
|
|
4829
4829
|
padding: 2,
|
|
4830
4830
|
position: "relative",
|
|
4831
4831
|
width: "100%"
|
|
4832
4832
|
},
|
|
4833
4833
|
children: [
|
|
4834
|
-
/* @__PURE__ */
|
|
4834
|
+
/* @__PURE__ */ m(
|
|
4835
4835
|
Q,
|
|
4836
4836
|
{
|
|
4837
4837
|
alignItems: "center",
|
|
@@ -4843,29 +4843,29 @@ const an = (e, A) => {
|
|
|
4843
4843
|
color: r ? "text.disabled" : "text.secondary",
|
|
4844
4844
|
children: [
|
|
4845
4845
|
f || /* @__PURE__ */ t(mn, { sx: { height: 40, width: 40 } }),
|
|
4846
|
-
|
|
4847
|
-
/* @__PURE__ */
|
|
4848
|
-
|
|
4846
|
+
W ? /* @__PURE__ */ m(he, { children: [
|
|
4847
|
+
/* @__PURE__ */ m(Y, { variant: "body2", color: "textSecondary", children: [
|
|
4848
|
+
V?.length,
|
|
4849
4849
|
" ",
|
|
4850
4850
|
i?.files || l("files")
|
|
4851
4851
|
] }),
|
|
4852
4852
|
/* @__PURE__ */ t(
|
|
4853
|
-
|
|
4853
|
+
Y,
|
|
4854
4854
|
{
|
|
4855
4855
|
variant: "body2",
|
|
4856
4856
|
color: "primary",
|
|
4857
4857
|
whiteSpace: E ? "normal" : "nowrap",
|
|
4858
4858
|
textOverflow: "ellipsis",
|
|
4859
4859
|
overflow: "hidden",
|
|
4860
|
-
children:
|
|
4860
|
+
children: W
|
|
4861
4861
|
}
|
|
4862
4862
|
)
|
|
4863
|
-
] }) : /* @__PURE__ */
|
|
4864
|
-
|
|
4863
|
+
] }) : /* @__PURE__ */ m(Y, { variant: "subtitle1", color: r ? "text.disabled" : "primary", children: [
|
|
4864
|
+
x || l("clickToUpload"),
|
|
4865
4865
|
" ",
|
|
4866
4866
|
n && "*"
|
|
4867
4867
|
] }),
|
|
4868
|
-
|
|
4868
|
+
d && /* @__PURE__ */ t(Y, { color: o ? "error" : "textSecondary", variant: "body2", children: d })
|
|
4869
4869
|
]
|
|
4870
4870
|
}
|
|
4871
4871
|
),
|
|
@@ -4873,16 +4873,16 @@ const an = (e, A) => {
|
|
|
4873
4873
|
"input",
|
|
4874
4874
|
{
|
|
4875
4875
|
id: H,
|
|
4876
|
-
ref:
|
|
4876
|
+
ref: X,
|
|
4877
4877
|
type: "file",
|
|
4878
|
-
title:
|
|
4878
|
+
title: p,
|
|
4879
4879
|
disabled: r,
|
|
4880
4880
|
required: n,
|
|
4881
4881
|
name: A,
|
|
4882
4882
|
multiple: s,
|
|
4883
4883
|
accept: e,
|
|
4884
|
-
pattern:
|
|
4885
|
-
onChange:
|
|
4884
|
+
pattern: h,
|
|
4885
|
+
onChange: G,
|
|
4886
4886
|
style: {
|
|
4887
4887
|
left: "50%",
|
|
4888
4888
|
opacity: 0,
|
|
@@ -4893,7 +4893,7 @@ const an = (e, A) => {
|
|
|
4893
4893
|
zIndex: -1
|
|
4894
4894
|
}
|
|
4895
4895
|
},
|
|
4896
|
-
|
|
4896
|
+
b ? "has-files" : "no-files"
|
|
4897
4897
|
)
|
|
4898
4898
|
]
|
|
4899
4899
|
}
|
|
@@ -4926,9 +4926,9 @@ const an = (e, A) => {
|
|
|
4926
4926
|
alwaysDisplaySecondaryAction: i,
|
|
4927
4927
|
isLoading: s,
|
|
4928
4928
|
disableLightbox: a,
|
|
4929
|
-
numberLoadingItems:
|
|
4929
|
+
numberLoadingItems: c = 3
|
|
4930
4930
|
}) => {
|
|
4931
|
-
const [
|
|
4931
|
+
const [d, u] = q("");
|
|
4932
4932
|
return !r?.length && !s && !A ? e || null : s ? /* @__PURE__ */ t(
|
|
4933
4933
|
sA,
|
|
4934
4934
|
{
|
|
@@ -4936,19 +4936,19 @@ const an = (e, A) => {
|
|
|
4936
4936
|
...je.list,
|
|
4937
4937
|
...n && { width: "100%" }
|
|
4938
4938
|
},
|
|
4939
|
-
children: [...Array(
|
|
4939
|
+
children: [...Array(c).keys()].map((f) => /* @__PURE__ */ m(Ie, { sx: je.listItem, children: [
|
|
4940
4940
|
/* @__PURE__ */ t(ce, { width: 40, height: 40, sx: { marginRight: Ze }, variant: "rounded" }),
|
|
4941
4941
|
/* @__PURE__ */ t(
|
|
4942
4942
|
Ee,
|
|
4943
4943
|
{
|
|
4944
|
-
primary: /* @__PURE__ */ t(
|
|
4944
|
+
primary: /* @__PURE__ */ t(Y, { variant: "h6", children: /* @__PURE__ */ t(ce, { width: 90 }) }),
|
|
4945
4945
|
secondary: /* @__PURE__ */ t(ce, { width: 70 }),
|
|
4946
4946
|
sx: { marginY: 0 }
|
|
4947
4947
|
}
|
|
4948
4948
|
)
|
|
4949
4949
|
] }, f))
|
|
4950
4950
|
}
|
|
4951
|
-
) : /* @__PURE__ */
|
|
4951
|
+
) : /* @__PURE__ */ m(
|
|
4952
4952
|
sA,
|
|
4953
4953
|
{
|
|
4954
4954
|
sx: {
|
|
@@ -4958,23 +4958,23 @@ const an = (e, A) => {
|
|
|
4958
4958
|
},
|
|
4959
4959
|
children: [
|
|
4960
4960
|
r?.map(
|
|
4961
|
-
({ id: f, title: v, subtitle:
|
|
4962
|
-
const E = `key-${
|
|
4963
|
-
return /* @__PURE__ */
|
|
4961
|
+
({ id: f, title: v, subtitle: x, image: h, thumbnail: p, secondaryAction: b, chipLabel: k, chipColor: S, onClick: C, icon: y, Avatar: l }, I) => {
|
|
4962
|
+
const E = `key-${I}-${v}-${f}`, H = !!h?.toLowerCase()?.endsWith(".pdf"), D = Mr(h), X = Mr(p), V = NA(h), W = C ? "none" : void 0, G = a || !!y || !D || V, K = !!C || !!(!C && !a && (p || h)), P = d === E, z = (X ? p : "") || (D ? h : "") || "";
|
|
4963
|
+
return /* @__PURE__ */ m(
|
|
4964
4964
|
Ie,
|
|
4965
4965
|
{
|
|
4966
|
-
secondaryAction:
|
|
4966
|
+
secondaryAction: b,
|
|
4967
4967
|
onClick: (Ae) => {
|
|
4968
|
-
|
|
4969
|
-
...
|
|
4968
|
+
C?.(Ae, {
|
|
4969
|
+
...y && { icon: y },
|
|
4970
4970
|
...f && { id: f },
|
|
4971
|
-
...
|
|
4972
|
-
...
|
|
4973
|
-
...
|
|
4974
|
-
...v && { thumbnail:
|
|
4975
|
-
isFile:
|
|
4971
|
+
...h && { image: h },
|
|
4972
|
+
...x && { subtitle: x },
|
|
4973
|
+
...p && { thumbnail: p },
|
|
4974
|
+
...v && { thumbnail: p },
|
|
4975
|
+
isFile: V,
|
|
4976
4976
|
isPdf: H
|
|
4977
|
-
}),
|
|
4977
|
+
}), K && !P && !C && u(E);
|
|
4978
4978
|
},
|
|
4979
4979
|
sx: {
|
|
4980
4980
|
...je.listItem,
|
|
@@ -4991,48 +4991,48 @@ const an = (e, A) => {
|
|
|
4991
4991
|
"& .MuiListItemSecondaryAction-root": {
|
|
4992
4992
|
opacity: 1
|
|
4993
4993
|
},
|
|
4994
|
-
backgroundColor: ({ palette: Ae }) =>
|
|
4994
|
+
backgroundColor: ({ palette: Ae }) => K ? Ae.action.hover : "transparent"
|
|
4995
4995
|
},
|
|
4996
|
-
cursor:
|
|
4996
|
+
cursor: K ? "pointer" : "default"
|
|
4997
4997
|
},
|
|
4998
4998
|
children: [
|
|
4999
4999
|
l !== void 0 && /* @__PURE__ */ t(T, { marginRight: Ze, children: l }),
|
|
5000
5000
|
!l && H && /* @__PURE__ */ t(
|
|
5001
5001
|
fA,
|
|
5002
5002
|
{
|
|
5003
|
-
src:
|
|
5004
|
-
srcThumb:
|
|
5003
|
+
src: h,
|
|
5004
|
+
srcThumb: p,
|
|
5005
5005
|
width: 40,
|
|
5006
5006
|
height: 40,
|
|
5007
5007
|
sx: { borderRadius: 1, marginRight: Ze },
|
|
5008
5008
|
disableLightbox: a,
|
|
5009
|
-
open:
|
|
5010
|
-
onClose: () =>
|
|
5009
|
+
open: P,
|
|
5010
|
+
onClose: () => u("")
|
|
5011
5011
|
}
|
|
5012
5012
|
),
|
|
5013
5013
|
!l && !H && /* @__PURE__ */ t(
|
|
5014
5014
|
fA,
|
|
5015
5015
|
{
|
|
5016
5016
|
disableThumb: !0,
|
|
5017
|
-
src:
|
|
5018
|
-
srcThumb:
|
|
5019
|
-
disableLightbox:
|
|
5020
|
-
open:
|
|
5021
|
-
onClose: () =>
|
|
5017
|
+
src: h,
|
|
5018
|
+
srcThumb: p,
|
|
5019
|
+
disableLightbox: G,
|
|
5020
|
+
open: P,
|
|
5021
|
+
onClose: () => u(""),
|
|
5022
5022
|
children: /* @__PURE__ */ t(
|
|
5023
5023
|
Se,
|
|
5024
5024
|
{
|
|
5025
|
-
src:
|
|
5025
|
+
src: V ? e1 : z,
|
|
5026
5026
|
variant: "rounded",
|
|
5027
5027
|
sx: { marginRight: Ze },
|
|
5028
5028
|
slotProps: {
|
|
5029
5029
|
img: {
|
|
5030
5030
|
sx: {
|
|
5031
|
-
...
|
|
5031
|
+
...V && { padding: "15%" }
|
|
5032
5032
|
}
|
|
5033
5033
|
}
|
|
5034
5034
|
},
|
|
5035
|
-
children: !
|
|
5035
|
+
children: !V && (y || typeof v == "string" && (v || "")?.charAt(0).toUpperCase())
|
|
5036
5036
|
}
|
|
5037
5037
|
)
|
|
5038
5038
|
}
|
|
@@ -5040,11 +5040,11 @@ const an = (e, A) => {
|
|
|
5040
5040
|
/* @__PURE__ */ t(
|
|
5041
5041
|
Ee,
|
|
5042
5042
|
{
|
|
5043
|
-
primary: /* @__PURE__ */
|
|
5044
|
-
v && /* @__PURE__ */ t(
|
|
5045
|
-
|
|
5043
|
+
primary: /* @__PURE__ */ m(Q, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
5044
|
+
v && /* @__PURE__ */ t(Y, { variant: "h6", whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden", children: v }),
|
|
5045
|
+
k && /* @__PURE__ */ t(Te, { label: k, variant: "rounded", size: "xSmall", color: Mn(S) ? S : "default" })
|
|
5046
5046
|
] }),
|
|
5047
|
-
secondary:
|
|
5047
|
+
secondary: x,
|
|
5048
5048
|
slotProps: {
|
|
5049
5049
|
primary: {
|
|
5050
5050
|
component: "div"
|
|
@@ -5053,7 +5053,7 @@ const an = (e, A) => {
|
|
|
5053
5053
|
component: "div"
|
|
5054
5054
|
}
|
|
5055
5055
|
},
|
|
5056
|
-
sx: { marginY: 0, userSelect:
|
|
5056
|
+
sx: { marginY: 0, userSelect: W }
|
|
5057
5057
|
}
|
|
5058
5058
|
)
|
|
5059
5059
|
]
|
|
@@ -5062,7 +5062,7 @@ const an = (e, A) => {
|
|
|
5062
5062
|
);
|
|
5063
5063
|
}
|
|
5064
5064
|
),
|
|
5065
|
-
A && /* @__PURE__ */
|
|
5065
|
+
A && /* @__PURE__ */ m(
|
|
5066
5066
|
TA,
|
|
5067
5067
|
{
|
|
5068
5068
|
onClick: A?.onClick,
|
|
@@ -5077,7 +5077,7 @@ const an = (e, A) => {
|
|
|
5077
5077
|
/* @__PURE__ */ t(
|
|
5078
5078
|
Ee,
|
|
5079
5079
|
{
|
|
5080
|
-
primary: A?.title && /* @__PURE__ */ t(
|
|
5080
|
+
primary: A?.title && /* @__PURE__ */ t(Y, { variant: "h6", children: A?.title }),
|
|
5081
5081
|
secondary: A?.subtitle,
|
|
5082
5082
|
sx: { marginY: 0 }
|
|
5083
5083
|
}
|
|
@@ -5089,13 +5089,13 @@ const an = (e, A) => {
|
|
|
5089
5089
|
}
|
|
5090
5090
|
);
|
|
5091
5091
|
}, jA = { padding: 0, paddingRight: 1 }, BA = (e) => e === "xSmall" ? {
|
|
5092
|
-
fontSize:
|
|
5092
|
+
fontSize: J(12),
|
|
5093
5093
|
height: 20
|
|
5094
5094
|
} : e === "small" ? {
|
|
5095
|
-
fontSize:
|
|
5095
|
+
fontSize: J(13),
|
|
5096
5096
|
height: 24
|
|
5097
5097
|
} : {
|
|
5098
|
-
fontSize:
|
|
5098
|
+
fontSize: J(14),
|
|
5099
5099
|
height: 32
|
|
5100
5100
|
}, Pn = (e, A) => A ? e ? Array.isArray(e) ? e : [e] : [] : e || null, Tn = (e) => {
|
|
5101
5101
|
const { palette: A } = fe(), r = A.mode === "light" ? "default" : "primary", n = e === "chip";
|
|
@@ -5128,27 +5128,27 @@ const an = (e, A) => {
|
|
|
5128
5128
|
onChange: i,
|
|
5129
5129
|
loading: s,
|
|
5130
5130
|
options: a,
|
|
5131
|
-
value:
|
|
5132
|
-
multiple:
|
|
5133
|
-
...
|
|
5131
|
+
value: c,
|
|
5132
|
+
multiple: d,
|
|
5133
|
+
...u
|
|
5134
5134
|
}) => {
|
|
5135
|
-
const { t: f } = tr(), v = Array.isArray(
|
|
5136
|
-
return /* @__PURE__ */
|
|
5137
|
-
|
|
5138
|
-
/* @__PURE__ */
|
|
5135
|
+
const { t: f } = tr(), v = Array.isArray(c) ? c?.length === a?.length : !1, x = Array.isArray(a) && a.every((p) => typeof p == "string"), h = !x && a?.filter((p) => p?.isHeader) || [];
|
|
5136
|
+
return /* @__PURE__ */ m(GA, { sx: { minWidth: 250 }, ...u, children: [
|
|
5137
|
+
d && !s && (!r || !!h?.length) && /* @__PURE__ */ m(he, { children: [
|
|
5138
|
+
/* @__PURE__ */ m(sA, { role: "listbox", children: [
|
|
5139
5139
|
!r && /* @__PURE__ */ t(
|
|
5140
5140
|
Ie,
|
|
5141
5141
|
{
|
|
5142
5142
|
disablePadding: !0,
|
|
5143
5143
|
role: "option",
|
|
5144
|
-
onMouseDown: (
|
|
5145
|
-
if (
|
|
5146
|
-
i?.(
|
|
5144
|
+
onMouseDown: (p) => {
|
|
5145
|
+
if (p.stopPropagation(), p.preventDefault(), v) {
|
|
5146
|
+
i?.(p, [], "removeOption");
|
|
5147
5147
|
return;
|
|
5148
5148
|
}
|
|
5149
|
-
i?.(
|
|
5149
|
+
i?.(p, a || [], "selectOption");
|
|
5150
5150
|
},
|
|
5151
|
-
children: /* @__PURE__ */
|
|
5151
|
+
children: /* @__PURE__ */ m(TA, { disableRipple: !0, children: [
|
|
5152
5152
|
/* @__PURE__ */ t(cA, { disableRipple: !0, id: "select-all-checkbox", checked: v, sx: jA }),
|
|
5153
5153
|
/* @__PURE__ */ t(Ee, { primary: n?.selectAll || f("selectAll"), slotProps: { primary: { variant: "body2" } } }),
|
|
5154
5154
|
!o && /* @__PURE__ */ t(
|
|
@@ -5160,42 +5160,42 @@ const an = (e, A) => {
|
|
|
5160
5160
|
marginX: 1,
|
|
5161
5161
|
textDecoration: "none"
|
|
5162
5162
|
},
|
|
5163
|
-
onClick: (
|
|
5164
|
-
i?.(
|
|
5163
|
+
onClick: (p) => {
|
|
5164
|
+
i?.(p, [], "removeOption");
|
|
5165
5165
|
},
|
|
5166
|
-
onMouseDown: (
|
|
5167
|
-
|
|
5166
|
+
onMouseDown: (p) => {
|
|
5167
|
+
p.stopPropagation(), p.preventDefault();
|
|
5168
5168
|
},
|
|
5169
|
-
children: /* @__PURE__ */ t(
|
|
5169
|
+
children: /* @__PURE__ */ t(Y, { variant: "body2", children: n?.reset || f("reset") })
|
|
5170
5170
|
}
|
|
5171
5171
|
)
|
|
5172
5172
|
] })
|
|
5173
5173
|
}
|
|
5174
5174
|
),
|
|
5175
|
-
!
|
|
5176
|
-
const
|
|
5177
|
-
(
|
|
5175
|
+
!x && h?.map((p, b) => {
|
|
5176
|
+
const k = `header-options-${b}`, S = Array.isArray(c) && c.some(
|
|
5177
|
+
(C) => JSON.stringify(C) === JSON.stringify(p) || C && typeof C == "object" && "id" in C && C?.id === p?.id
|
|
5178
5178
|
);
|
|
5179
5179
|
return /* @__PURE__ */ t(
|
|
5180
5180
|
Ie,
|
|
5181
5181
|
{
|
|
5182
5182
|
disablePadding: !0,
|
|
5183
|
-
onMouseDown: (
|
|
5184
|
-
if (
|
|
5185
|
-
const
|
|
5186
|
-
(l) => !(JSON.stringify(l) === JSON.stringify(
|
|
5183
|
+
onMouseDown: (C) => {
|
|
5184
|
+
if (C.stopPropagation(), C.preventDefault(), S) {
|
|
5185
|
+
const y = Array.isArray(c) ? c?.filter(
|
|
5186
|
+
(l) => !(JSON.stringify(l) === JSON.stringify(p) || l && typeof l == "object" && "id" in l && l?.id === p?.id)
|
|
5187
5187
|
) : [];
|
|
5188
|
-
i?.(
|
|
5188
|
+
i?.(C, y, "removeOption");
|
|
5189
5189
|
return;
|
|
5190
5190
|
}
|
|
5191
|
-
i?.(
|
|
5191
|
+
i?.(C, [...Array.isArray(c) ? c : [], p], "selectOption");
|
|
5192
5192
|
},
|
|
5193
|
-
children: /* @__PURE__ */
|
|
5194
|
-
/* @__PURE__ */ t(cA, { disableRipple: !0, checked:
|
|
5195
|
-
/* @__PURE__ */ t(Ee, { primary:
|
|
5193
|
+
children: /* @__PURE__ */ m(TA, { disableRipple: !0, children: [
|
|
5194
|
+
/* @__PURE__ */ t(cA, { disableRipple: !0, checked: S, sx: jA }),
|
|
5195
|
+
/* @__PURE__ */ t(Ee, { primary: p?.label })
|
|
5196
5196
|
] })
|
|
5197
5197
|
},
|
|
5198
|
-
|
|
5198
|
+
k
|
|
5199
5199
|
);
|
|
5200
5200
|
})
|
|
5201
5201
|
] }),
|
|
@@ -5212,91 +5212,91 @@ const an = (e, A) => {
|
|
|
5212
5212
|
disableReset: i,
|
|
5213
5213
|
disableSelectAll: s,
|
|
5214
5214
|
value: a,
|
|
5215
|
-
onFocus:
|
|
5216
|
-
onBlur:
|
|
5217
|
-
open:
|
|
5215
|
+
onFocus: c,
|
|
5216
|
+
onBlur: d,
|
|
5217
|
+
open: u,
|
|
5218
5218
|
getOptionLabel: f,
|
|
5219
5219
|
onInputChange: v,
|
|
5220
|
-
inputValue:
|
|
5221
|
-
disableClearable:
|
|
5222
|
-
loading:
|
|
5223
|
-
resetInputValueOnSelectOption:
|
|
5224
|
-
renderOption:
|
|
5225
|
-
renderValue:
|
|
5226
|
-
width:
|
|
5227
|
-
sx:
|
|
5220
|
+
inputValue: x,
|
|
5221
|
+
disableClearable: h,
|
|
5222
|
+
loading: p,
|
|
5223
|
+
resetInputValueOnSelectOption: b,
|
|
5224
|
+
renderOption: k,
|
|
5225
|
+
renderValue: S,
|
|
5226
|
+
width: C,
|
|
5227
|
+
sx: y,
|
|
5228
5228
|
size: l = "small",
|
|
5229
|
-
disableCloseOnSelect:
|
|
5229
|
+
disableCloseOnSelect: I = !0,
|
|
5230
5230
|
multiple: E = !0,
|
|
5231
5231
|
options: H = [],
|
|
5232
|
-
slotProps:
|
|
5233
|
-
|
|
5234
|
-
},
|
|
5235
|
-
const [
|
|
5232
|
+
slotProps: D,
|
|
5233
|
+
...X
|
|
5234
|
+
}, V) => {
|
|
5235
|
+
const [W, G] = q(!1), [K, P] = q(""), R = x || K, U = e === "chip", z = Array.isArray(a) ? !!a.length : a != null, Ae = Pn(a, E);
|
|
5236
5236
|
return /* @__PURE__ */ t(
|
|
5237
5237
|
h1,
|
|
5238
5238
|
{
|
|
5239
5239
|
freeSolo: !1,
|
|
5240
5240
|
multiple: E,
|
|
5241
|
-
disableClearable:
|
|
5241
|
+
disableClearable: h,
|
|
5242
5242
|
value: Ae,
|
|
5243
5243
|
options: H,
|
|
5244
|
-
loading:
|
|
5245
|
-
ref:
|
|
5244
|
+
loading: p,
|
|
5245
|
+
ref: V,
|
|
5246
5246
|
size: l,
|
|
5247
|
-
disableCloseOnSelect:
|
|
5248
|
-
onChange: (
|
|
5247
|
+
disableCloseOnSelect: I,
|
|
5248
|
+
onChange: (w, M, O, L) => {
|
|
5249
5249
|
if (M === null) {
|
|
5250
|
-
A?.(
|
|
5250
|
+
A?.(w, E ? [] : null, O, L);
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
|
-
A?.(
|
|
5253
|
+
A?.(w, M, O, L), (!I || !E) && G(!1);
|
|
5254
5254
|
},
|
|
5255
5255
|
getLimitTagsText: Tn(e),
|
|
5256
|
-
inputValue:
|
|
5257
|
-
open:
|
|
5258
|
-
onOpen: () =>
|
|
5256
|
+
inputValue: R,
|
|
5257
|
+
open: u || W,
|
|
5258
|
+
onOpen: () => G(!0),
|
|
5259
5259
|
sx: {
|
|
5260
|
-
width:
|
|
5261
|
-
...
|
|
5260
|
+
width: C,
|
|
5261
|
+
...y
|
|
5262
5262
|
},
|
|
5263
5263
|
slots: {
|
|
5264
5264
|
paper: Ln
|
|
5265
5265
|
},
|
|
5266
5266
|
slotProps: {
|
|
5267
|
-
...
|
|
5267
|
+
...D,
|
|
5268
5268
|
paper: {
|
|
5269
5269
|
disableReset: i,
|
|
5270
5270
|
disableSelectAll: s,
|
|
5271
|
-
loading:
|
|
5271
|
+
loading: p,
|
|
5272
5272
|
localeText: o,
|
|
5273
5273
|
multiple: E,
|
|
5274
5274
|
onChange: A,
|
|
5275
5275
|
options: H,
|
|
5276
5276
|
value: a,
|
|
5277
5277
|
variant: e,
|
|
5278
|
-
...
|
|
5278
|
+
...D?.paper
|
|
5279
5279
|
}
|
|
5280
5280
|
},
|
|
5281
|
-
onInputChange: (
|
|
5282
|
-
O === "reset" &&
|
|
5281
|
+
onInputChange: (w, M, O) => {
|
|
5282
|
+
O === "reset" && W && !b || O === "selectOption" && !b || O === "removeOption" && !b || (x || P(M), v?.(w, M, O));
|
|
5283
5283
|
},
|
|
5284
|
-
onFocus: (
|
|
5285
|
-
|
|
5284
|
+
onFocus: (w) => {
|
|
5285
|
+
G(!0), c?.(w);
|
|
5286
5286
|
},
|
|
5287
|
-
onBlur: (
|
|
5288
|
-
|
|
5287
|
+
onBlur: (w) => {
|
|
5288
|
+
G(!1), d?.(w);
|
|
5289
5289
|
},
|
|
5290
|
-
getOptionLabel: f || ((
|
|
5291
|
-
const M = typeof
|
|
5290
|
+
getOptionLabel: f || ((w) => {
|
|
5291
|
+
const M = typeof w == "object" && "label" in w ? w.label : w;
|
|
5292
5292
|
return String(M);
|
|
5293
5293
|
}),
|
|
5294
|
-
renderOption:
|
|
5295
|
-
const
|
|
5296
|
-
if (
|
|
5294
|
+
renderOption: k || ((w, M, { selected: O }) => {
|
|
5295
|
+
const L = typeof M != "string" && M.isHeader;
|
|
5296
|
+
if (p || L)
|
|
5297
5297
|
return null;
|
|
5298
|
-
const te = typeof M == "string" ? M : M?.id || M?.value || "", ae = typeof M == "string" ? M : M?.label, be = typeof M == "string" ? void 0 : M?.image,
|
|
5299
|
-
return /* @__PURE__ */ R1(Ie, { ...
|
|
5298
|
+
const te = typeof M == "string" ? M : M?.id || M?.value || "", ae = typeof M == "string" ? M : M?.label, be = typeof M == "string" ? void 0 : M?.image, $ = `${te}-${w?.key}`;
|
|
5299
|
+
return /* @__PURE__ */ R1(Ie, { ...w, key: $ }, !r && /* @__PURE__ */ t(cA, { disableRipple: !0, checked: O, sx: jA }), be && /* @__PURE__ */ t(
|
|
5300
5300
|
g1,
|
|
5301
5301
|
{
|
|
5302
5302
|
sx: {
|
|
@@ -5307,49 +5307,49 @@ const an = (e, A) => {
|
|
|
5307
5307
|
},
|
|
5308
5308
|
children: /* @__PURE__ */ t(Se, { variant: "rounded", src: be, sx: { height: 24, width: 24 }, children: be === "letter" && typeof ae == "string" && ae?.charAt(0).toUpperCase() })
|
|
5309
5309
|
}
|
|
5310
|
-
), typeof ae == "string" ? /* @__PURE__ */ t(
|
|
5310
|
+
), typeof ae == "string" ? /* @__PURE__ */ t(Y, { variant: "body2", whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden", title: ae, children: ae }) : ae);
|
|
5311
5311
|
}),
|
|
5312
|
-
renderValue:
|
|
5312
|
+
renderValue: S || (E ? (w, M, O) => Array.isArray(w) ? w.map((L, te) => {
|
|
5313
5313
|
if (O?.focused)
|
|
5314
5314
|
return null;
|
|
5315
5315
|
const { key: ae } = M({ index: te });
|
|
5316
|
-
return /* @__PURE__ */ t(
|
|
5316
|
+
return /* @__PURE__ */ t(Y, { marginX: 1, whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden", children: typeof L == "object" && "label" in L && L?.label ? L.label : L.toString() }, ae);
|
|
5317
5317
|
}) : null : void 0),
|
|
5318
|
-
renderInput: (
|
|
5318
|
+
renderInput: (w) => {
|
|
5319
5319
|
const M = () => {
|
|
5320
|
-
if (!(!
|
|
5320
|
+
if (!(!W && (Array.isArray(a) && a.length || !Array.isArray(a) && a)))
|
|
5321
5321
|
return n;
|
|
5322
|
-
}, O = () =>
|
|
5322
|
+
}, O = () => U ? /* @__PURE__ */ m(
|
|
5323
5323
|
Pe,
|
|
5324
5324
|
{
|
|
5325
5325
|
position: "end",
|
|
5326
5326
|
sx: {
|
|
5327
|
-
color:
|
|
5327
|
+
color: z ? "text.contrast" : "text.primary",
|
|
5328
5328
|
position: "absolute",
|
|
5329
5329
|
right: 5,
|
|
5330
|
-
transform:
|
|
5330
|
+
transform: W ? "rotate(180deg)" : "rotate(0deg)",
|
|
5331
5331
|
transition: "transform 0.2s ease-in-out"
|
|
5332
5332
|
},
|
|
5333
5333
|
children: [
|
|
5334
|
-
(
|
|
5334
|
+
(R || z) && !h && /* @__PURE__ */ t(
|
|
5335
5335
|
ue,
|
|
5336
5336
|
{
|
|
5337
5337
|
size: "small",
|
|
5338
|
-
onClick: (
|
|
5339
|
-
|
|
5338
|
+
onClick: (L) => {
|
|
5339
|
+
L.preventDefault(), L.stopPropagation(), P(""), v?.(L, "", "clear"), z && A?.(L, E ? [] : null, "clear");
|
|
5340
5340
|
},
|
|
5341
|
-
onMouseDown: (
|
|
5342
|
-
|
|
5341
|
+
onMouseDown: (L) => {
|
|
5342
|
+
L.preventDefault(), L.stopPropagation();
|
|
5343
5343
|
},
|
|
5344
5344
|
sx: {
|
|
5345
5345
|
"& .MuiSvgIcon-root": {
|
|
5346
|
-
fontSize:
|
|
5346
|
+
fontSize: J(16),
|
|
5347
5347
|
pointerEvents: "none"
|
|
5348
5348
|
},
|
|
5349
5349
|
".MuiTextField-root:hover &": {
|
|
5350
5350
|
opacity: 1
|
|
5351
5351
|
},
|
|
5352
|
-
color:
|
|
5352
|
+
color: z ? "text.contrast" : "text.primary",
|
|
5353
5353
|
cursor: "pointer",
|
|
5354
5354
|
left: "50%",
|
|
5355
5355
|
opacity: 0,
|
|
@@ -5371,7 +5371,7 @@ const an = (e, A) => {
|
|
|
5371
5371
|
sx: {
|
|
5372
5372
|
cursor: "pointer",
|
|
5373
5373
|
transition: "opacity 0.2s ease-in-out",
|
|
5374
|
-
...(
|
|
5374
|
+
...(R || z) && !h && {
|
|
5375
5375
|
".MuiTextField-root:hover &": {
|
|
5376
5376
|
opacity: 0
|
|
5377
5377
|
}
|
|
@@ -5381,7 +5381,7 @@ const an = (e, A) => {
|
|
|
5381
5381
|
)
|
|
5382
5382
|
]
|
|
5383
5383
|
}
|
|
5384
|
-
) :
|
|
5384
|
+
) : W ? /* @__PURE__ */ m(
|
|
5385
5385
|
Pe,
|
|
5386
5386
|
{
|
|
5387
5387
|
position: "end",
|
|
@@ -5390,34 +5390,34 @@ const an = (e, A) => {
|
|
|
5390
5390
|
right: 8
|
|
5391
5391
|
},
|
|
5392
5392
|
children: [
|
|
5393
|
-
|
|
5393
|
+
R && !h && /* @__PURE__ */ t(
|
|
5394
5394
|
ue,
|
|
5395
5395
|
{
|
|
5396
5396
|
size: "small",
|
|
5397
|
-
onClick: (
|
|
5398
|
-
|
|
5397
|
+
onClick: (L) => {
|
|
5398
|
+
P(""), v?.(L, "", "clear");
|
|
5399
5399
|
},
|
|
5400
5400
|
sx: { marginRight: "-3px" },
|
|
5401
|
-
children: /* @__PURE__ */ t(_e, { sx: { fontSize:
|
|
5401
|
+
children: /* @__PURE__ */ t(_e, { sx: { fontSize: J(20) } })
|
|
5402
5402
|
}
|
|
5403
5403
|
),
|
|
5404
|
-
Ye(
|
|
5404
|
+
Ye(w.InputProps?.endAdornment) && typeof w.InputProps.endAdornment == "object" && "props" in w.InputProps.endAdornment && w.InputProps.endAdornment.props && typeof w.InputProps.endAdornment.props == "object" && "children" in w.InputProps.endAdornment.props && Array.isArray(w.InputProps.endAdornment.props.children) && w.InputProps.endAdornment.props.children[1]
|
|
5405
5405
|
]
|
|
5406
5406
|
}
|
|
5407
|
-
) : Ye(
|
|
5407
|
+
) : Ye(w.InputProps?.endAdornment) ? w.InputProps.endAdornment : null;
|
|
5408
5408
|
return /* @__PURE__ */ t(
|
|
5409
5409
|
gA,
|
|
5410
5410
|
{
|
|
5411
5411
|
sx: {
|
|
5412
5412
|
"& .MuiInputBase-root .MuiInputBase-input": {
|
|
5413
|
-
flex: !E || !
|
|
5413
|
+
flex: !E || !W && !R || W ? 1 : 0,
|
|
5414
5414
|
minWidth: 0
|
|
5415
5415
|
},
|
|
5416
|
-
...
|
|
5416
|
+
...U && {
|
|
5417
5417
|
"& .MuiInputBase-root": {
|
|
5418
|
-
backgroundColor:
|
|
5418
|
+
backgroundColor: z ? "text.primary" : "grey.100",
|
|
5419
5419
|
borderRadius: 20,
|
|
5420
|
-
color:
|
|
5420
|
+
color: z ? "text.contrast" : "text.primary",
|
|
5421
5421
|
fieldset: {
|
|
5422
5422
|
borderColor: "transparent !important"
|
|
5423
5423
|
},
|
|
@@ -5436,10 +5436,10 @@ const an = (e, A) => {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
5438
|
},
|
|
5439
|
-
...
|
|
5439
|
+
...w,
|
|
5440
5440
|
slotProps: {
|
|
5441
5441
|
input: {
|
|
5442
|
-
...
|
|
5442
|
+
...w.InputProps,
|
|
5443
5443
|
endAdornment: O()
|
|
5444
5444
|
}
|
|
5445
5445
|
},
|
|
@@ -5447,7 +5447,7 @@ const an = (e, A) => {
|
|
|
5447
5447
|
}
|
|
5448
5448
|
);
|
|
5449
5449
|
},
|
|
5450
|
-
|
|
5450
|
+
...X
|
|
5451
5451
|
}
|
|
5452
5452
|
);
|
|
5453
5453
|
}, ao = ie(Dn), Hn = ({
|
|
@@ -5459,15 +5459,15 @@ const an = (e, A) => {
|
|
|
5459
5459
|
position: i = "fixed",
|
|
5460
5460
|
mountOnEnter: s = !0,
|
|
5461
5461
|
unmountOnExit: a = !0,
|
|
5462
|
-
...
|
|
5463
|
-
},
|
|
5462
|
+
...c
|
|
5463
|
+
}, d) => /* @__PURE__ */ t(x1, { mountOnEnter: s, unmountOnExit: a, in: e === void 0 ? !0 : e, direction: "up", children: /* @__PURE__ */ t(
|
|
5464
5464
|
GA,
|
|
5465
5465
|
{
|
|
5466
5466
|
square: !0,
|
|
5467
5467
|
elevation: 0,
|
|
5468
|
-
ref:
|
|
5468
|
+
ref: d,
|
|
5469
5469
|
sx: {
|
|
5470
|
-
borderTop: ({ palette:
|
|
5470
|
+
borderTop: ({ palette: u }) => `1px solid ${u.divider}`,
|
|
5471
5471
|
bottom: 0,
|
|
5472
5472
|
left: 0,
|
|
5473
5473
|
padding: n,
|
|
@@ -5486,7 +5486,7 @@ const an = (e, A) => {
|
|
|
5486
5486
|
},
|
|
5487
5487
|
...r
|
|
5488
5488
|
},
|
|
5489
|
-
...
|
|
5489
|
+
...c,
|
|
5490
5490
|
children: A
|
|
5491
5491
|
}
|
|
5492
5492
|
) }), so = ie(Hn), On = ({ sx: e, fontSize: A, color: r = "currentColor" }) => /* @__PURE__ */ t(pe, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: A, sx: e, children: /* @__PURE__ */ t(
|
|
@@ -5502,7 +5502,7 @@ const an = (e, A) => {
|
|
|
5502
5502
|
fill: r
|
|
5503
5503
|
}
|
|
5504
5504
|
) }), lo = ({ slotProps: e, ...A }) => {
|
|
5505
|
-
const [r, n] =
|
|
5505
|
+
const [r, n] = q(!1), o = () => {
|
|
5506
5506
|
n((a) => !a);
|
|
5507
5507
|
}, i = (a) => {
|
|
5508
5508
|
a.preventDefault();
|
|
@@ -5589,42 +5589,42 @@ const an = (e, A) => {
|
|
|
5589
5589
|
fullWidth: i = !0,
|
|
5590
5590
|
maxWidth: s = "xs",
|
|
5591
5591
|
onClose: a,
|
|
5592
|
-
...
|
|
5593
|
-
}) => /* @__PURE__ */
|
|
5592
|
+
...c
|
|
5593
|
+
}) => /* @__PURE__ */ m(
|
|
5594
5594
|
v1,
|
|
5595
5595
|
{
|
|
5596
5596
|
maxWidth: s,
|
|
5597
5597
|
fullWidth: i,
|
|
5598
5598
|
onClose: a,
|
|
5599
|
-
...
|
|
5599
|
+
...c,
|
|
5600
5600
|
sx: {
|
|
5601
5601
|
"& .MuiDialog-paper": {
|
|
5602
|
-
borderColor: ({ palette:
|
|
5602
|
+
borderColor: ({ palette: d }) => d[o]["30p"]
|
|
5603
5603
|
}
|
|
5604
5604
|
},
|
|
5605
5605
|
children: [
|
|
5606
|
-
/* @__PURE__ */
|
|
5606
|
+
/* @__PURE__ */ m(
|
|
5607
5607
|
b1,
|
|
5608
5608
|
{
|
|
5609
5609
|
sx: {
|
|
5610
5610
|
alignItems: "center",
|
|
5611
|
-
backgroundColor: ({ palette:
|
|
5611
|
+
backgroundColor: ({ palette: d }) => d[o]["4p"],
|
|
5612
5612
|
display: "flex",
|
|
5613
5613
|
flexDirection: "column",
|
|
5614
5614
|
padding: 3,
|
|
5615
5615
|
textAlign: "center",
|
|
5616
|
-
...(r || n) && { borderBottom: ({ palette:
|
|
5616
|
+
...(r || n) && { borderBottom: ({ palette: d }) => `1px solid ${d[o]["12p"]}` }
|
|
5617
5617
|
},
|
|
5618
5618
|
children: [
|
|
5619
|
-
/* @__PURE__ */ t(tn, { onClick: (
|
|
5619
|
+
/* @__PURE__ */ t(tn, { onClick: (d) => a?.(d, "closeButton") }),
|
|
5620
5620
|
/* @__PURE__ */ t(
|
|
5621
5621
|
T,
|
|
5622
5622
|
{
|
|
5623
5623
|
sx: {
|
|
5624
5624
|
alignItems: "center",
|
|
5625
|
-
backgroundColor: ({ palette:
|
|
5625
|
+
backgroundColor: ({ palette: d }) => d[o]["12p"],
|
|
5626
5626
|
borderRadius: "50%",
|
|
5627
|
-
color: ({ palette:
|
|
5627
|
+
color: ({ palette: d }) => d[o].main,
|
|
5628
5628
|
display: "flex",
|
|
5629
5629
|
flexShrink: 0,
|
|
5630
5630
|
height: Pr,
|
|
@@ -5633,7 +5633,7 @@ const an = (e, A) => {
|
|
|
5633
5633
|
width: Pr,
|
|
5634
5634
|
...Vn
|
|
5635
5635
|
},
|
|
5636
|
-
children: /* @__PURE__ */
|
|
5636
|
+
children: /* @__PURE__ */ m("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5637
5637
|
/* @__PURE__ */ t(
|
|
5638
5638
|
"path",
|
|
5639
5639
|
{
|
|
@@ -5645,12 +5645,12 @@ const an = (e, A) => {
|
|
|
5645
5645
|
] })
|
|
5646
5646
|
}
|
|
5647
5647
|
),
|
|
5648
|
-
/* @__PURE__ */ t(
|
|
5648
|
+
/* @__PURE__ */ t(Y, { variant: "h4", sx: { marginBottom: 1 }, children: e }),
|
|
5649
5649
|
/* @__PURE__ */ t(y1, { variant: "body2", children: A })
|
|
5650
5650
|
]
|
|
5651
5651
|
}
|
|
5652
5652
|
),
|
|
5653
|
-
(r || n) && /* @__PURE__ */
|
|
5653
|
+
(r || n) && /* @__PURE__ */ m(w1, { children: [
|
|
5654
5654
|
n && /* @__PURE__ */ t(Er, { variant: "outlined", size: "small", isLoading: n?.loading, onClick: n?.onClick, sx: { flex: 1 }, children: n?.text }),
|
|
5655
5655
|
r && /* @__PURE__ */ t(
|
|
5656
5656
|
Er,
|
|
@@ -5671,86 +5671,101 @@ function uo({
|
|
|
5671
5671
|
label: e,
|
|
5672
5672
|
value: A,
|
|
5673
5673
|
onChange: r,
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5674
|
+
checked: n,
|
|
5675
|
+
onCheckedChange: o,
|
|
5676
|
+
options: i,
|
|
5677
|
+
variant: s,
|
|
5678
|
+
disabled: a,
|
|
5679
|
+
labelMenu: c,
|
|
5680
|
+
labelOnlyAfterSelection: d,
|
|
5681
|
+
separatorBetweenLabelAndOptionSelected: u = ":",
|
|
5682
|
+
multiple: f = !1,
|
|
5683
|
+
size: v = "medium"
|
|
5682
5684
|
}) {
|
|
5683
|
-
const [
|
|
5684
|
-
(
|
|
5685
|
-
},
|
|
5686
|
-
if (
|
|
5687
|
-
|
|
5688
|
-
|
|
5685
|
+
const x = n !== void 0, [h, p] = q(() => x ? n || !1 : f ? A || [] : A), b = x ? n === !0 : f ? A?.length > 0 : A != null, { anchorMenu: k, openMenu: S, isMenuOpen: C, closeMenu: y } = A1(), { t: l } = tr(), I = Array.isArray(i), E = i !== void 0, H = () => {
|
|
5686
|
+
x ? o?.(h) : (f || h !== void 0) && r?.(h), y();
|
|
5687
|
+
}, D = () => {
|
|
5688
|
+
if (x)
|
|
5689
|
+
p(!1), o?.(!1);
|
|
5690
|
+
else if (f) {
|
|
5691
|
+
const P = [];
|
|
5692
|
+
p(P), r?.(P);
|
|
5689
5693
|
} else
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
},
|
|
5693
|
-
if (
|
|
5694
|
-
|
|
5694
|
+
p(void 0), r?.(void 0);
|
|
5695
|
+
y();
|
|
5696
|
+
}, X = (P) => {
|
|
5697
|
+
if (x && !E) {
|
|
5698
|
+
o?.(!n);
|
|
5695
5699
|
return;
|
|
5696
5700
|
}
|
|
5697
|
-
if (
|
|
5698
|
-
|
|
5699
|
-
|
|
5701
|
+
if (E && I) {
|
|
5702
|
+
S(P);
|
|
5703
|
+
return;
|
|
5700
5704
|
}
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
+
if (E && !I)
|
|
5706
|
+
if (x)
|
|
5707
|
+
o?.(!n);
|
|
5708
|
+
else {
|
|
5709
|
+
const R = A != null ? void 0 : i?.value;
|
|
5710
|
+
r?.(f ? R !== void 0 ? [R] : [] : R);
|
|
5711
|
+
}
|
|
5712
|
+
}, V = (P) => {
|
|
5713
|
+
if (x)
|
|
5714
|
+
p(!0);
|
|
5715
|
+
else if (f) {
|
|
5716
|
+
const R = h || [], U = R.includes(P) ? R.filter((z) => z !== P) : [...R, P];
|
|
5717
|
+
p(U);
|
|
5705
5718
|
} else
|
|
5706
|
-
|
|
5707
|
-
},
|
|
5708
|
-
return /* @__PURE__ */
|
|
5719
|
+
p(P);
|
|
5720
|
+
}, W = (P) => x ? n === !0 : f ? h?.includes(P) || !1 : h === P, G = (P) => I ? `${c ? `${c} ${u} ` : ""}${i.find((R) => R.value === P)?.label || ""}` : i?.label;
|
|
5721
|
+
return /* @__PURE__ */ m(he, { children: [
|
|
5709
5722
|
/* @__PURE__ */ t(
|
|
5710
5723
|
Te,
|
|
5711
5724
|
{
|
|
5712
|
-
disabled:
|
|
5713
|
-
size:
|
|
5725
|
+
disabled: a,
|
|
5726
|
+
size: v,
|
|
5714
5727
|
label: (() => {
|
|
5715
|
-
if (
|
|
5716
|
-
|
|
5717
|
-
|
|
5728
|
+
if (x)
|
|
5729
|
+
return e;
|
|
5730
|
+
if (d && b) {
|
|
5731
|
+
const P = A || [], R = Array.isArray(P) ? P.length : 1;
|
|
5732
|
+
return `${e || c}${f && R > 1 ? ` (${R})` : ""}`;
|
|
5718
5733
|
}
|
|
5719
|
-
if (
|
|
5720
|
-
const
|
|
5721
|
-
if (
|
|
5722
|
-
return
|
|
5723
|
-
if (
|
|
5724
|
-
const U =
|
|
5725
|
-
return `${U || String(
|
|
5734
|
+
if (f && b) {
|
|
5735
|
+
const P = A || [], R = P.length;
|
|
5736
|
+
if (R === 1)
|
|
5737
|
+
return G(P[0]) || e;
|
|
5738
|
+
if (R > 1) {
|
|
5739
|
+
const U = G(P[0]), z = R - 1;
|
|
5740
|
+
return `${U || String(P[0])}... (+${z})`;
|
|
5726
5741
|
}
|
|
5727
5742
|
}
|
|
5728
|
-
return !
|
|
5743
|
+
return !f && !x && A !== void 0 && A !== null && I && G(A) || e;
|
|
5729
5744
|
})(),
|
|
5730
|
-
variant:
|
|
5731
|
-
deleteIcon:
|
|
5745
|
+
variant: s,
|
|
5746
|
+
deleteIcon: E && I ? /* @__PURE__ */ t(
|
|
5732
5747
|
Ar,
|
|
5733
5748
|
{
|
|
5734
5749
|
fontSize: "small",
|
|
5735
5750
|
sx: {
|
|
5736
5751
|
marginLeft: -0.5,
|
|
5737
5752
|
marginRight: 0.5,
|
|
5738
|
-
transform:
|
|
5753
|
+
transform: C ? "rotate(180deg)" : "rotate(0deg)"
|
|
5739
5754
|
}
|
|
5740
5755
|
}
|
|
5741
5756
|
) : void 0,
|
|
5742
|
-
onClick:
|
|
5743
|
-
onDelete:
|
|
5757
|
+
onClick: X,
|
|
5758
|
+
onDelete: E && I ? () => {
|
|
5744
5759
|
} : void 0,
|
|
5745
|
-
color:
|
|
5760
|
+
color: b ? "active" : "default"
|
|
5746
5761
|
}
|
|
5747
5762
|
),
|
|
5748
|
-
|
|
5763
|
+
E && I && /* @__PURE__ */ m(
|
|
5749
5764
|
Lr,
|
|
5750
5765
|
{
|
|
5751
|
-
anchorEl:
|
|
5752
|
-
open:
|
|
5753
|
-
onClose:
|
|
5766
|
+
anchorEl: k,
|
|
5767
|
+
open: C,
|
|
5768
|
+
onClose: y,
|
|
5754
5769
|
slotProps: {
|
|
5755
5770
|
paper: {
|
|
5756
5771
|
sx: {
|
|
@@ -5759,20 +5774,20 @@ function uo({
|
|
|
5759
5774
|
}
|
|
5760
5775
|
},
|
|
5761
5776
|
children: [
|
|
5762
|
-
/* @__PURE__ */
|
|
5763
|
-
/* @__PURE__ */ t(Ee, { children:
|
|
5764
|
-
/* @__PURE__ */ t(ue, { onClick:
|
|
5777
|
+
/* @__PURE__ */ m(Q, { component: "li", direction: "row", paddingLeft: 2, marginBottom: 1, children: [
|
|
5778
|
+
/* @__PURE__ */ t(Ee, { children: c }),
|
|
5779
|
+
/* @__PURE__ */ t(ue, { onClick: y, children: /* @__PURE__ */ t(_e, { fontSize: "small" }) })
|
|
5765
5780
|
] }),
|
|
5766
|
-
|
|
5767
|
-
const U = `${
|
|
5768
|
-
return /* @__PURE__ */
|
|
5769
|
-
/* @__PURE__ */ t(Hr, { children:
|
|
5770
|
-
/* @__PURE__ */ t(Ee, { sx: { color: "text.secondary" }, children:
|
|
5781
|
+
i.map((P, R) => {
|
|
5782
|
+
const U = `${P.id || P.value}-${R}`, z = W(P.value);
|
|
5783
|
+
return /* @__PURE__ */ m(Dr, { onClick: () => V(P.value), children: [
|
|
5784
|
+
/* @__PURE__ */ t(Hr, { children: f || x ? /* @__PURE__ */ t(cA, { disableRipple: !0, checked: z, sx: { padding: 0 } }) : /* @__PURE__ */ t(E1, { disableRipple: !0, checked: z, sx: { padding: 0 } }) }),
|
|
5785
|
+
/* @__PURE__ */ t(Ee, { sx: { color: "text.secondary" }, children: P.label })
|
|
5771
5786
|
] }, U);
|
|
5772
5787
|
}),
|
|
5773
|
-
/* @__PURE__ */
|
|
5774
|
-
/* @__PURE__ */ t(Ue, { size: "small", onClick:
|
|
5775
|
-
/* @__PURE__ */ t(Ue, { variant: "contained", size: "small", onClick:
|
|
5788
|
+
/* @__PURE__ */ m(Q, { component: "li", direction: "row", justifyContent: "flex-end", spacing: 1, marginTop: 1, children: [
|
|
5789
|
+
/* @__PURE__ */ t(Ue, { size: "small", onClick: D, children: l("reset") }),
|
|
5790
|
+
/* @__PURE__ */ t(Ue, { variant: "contained", size: "small", onClick: H, children: l("apply") })
|
|
5776
5791
|
] })
|
|
5777
5792
|
]
|
|
5778
5793
|
}
|
|
@@ -5780,7 +5795,7 @@ function uo({
|
|
|
5780
5795
|
] });
|
|
5781
5796
|
}
|
|
5782
5797
|
const fo = ({ children: e, permissions: A, disabledPermissions: r }) => {
|
|
5783
|
-
const [n, o] =
|
|
5798
|
+
const [n, o] = q(), i = We(
|
|
5784
5799
|
() => ({
|
|
5785
5800
|
disabledPermissions: r,
|
|
5786
5801
|
permissions: n,
|
|
@@ -5808,16 +5823,16 @@ const fo = ({ children: e, permissions: A, disabledPermissions: r }) => {
|
|
|
5808
5823
|
autoHideDuration: A = 5e3,
|
|
5809
5824
|
anchorOrigin: r = { horizontal: "center", vertical: "bottom" }
|
|
5810
5825
|
}) => {
|
|
5811
|
-
const [n, o] =
|
|
5826
|
+
const [n, o] = q(Fn), i = oe((c) => {
|
|
5812
5827
|
o({
|
|
5813
|
-
component:
|
|
5828
|
+
component: c?.component,
|
|
5814
5829
|
isOpen: !0,
|
|
5815
|
-
message:
|
|
5816
|
-
severity:
|
|
5817
|
-
variant:
|
|
5830
|
+
message: c?.message || "",
|
|
5831
|
+
severity: c?.severity || "success",
|
|
5832
|
+
variant: c?.variant || "standard"
|
|
5818
5833
|
});
|
|
5819
|
-
}, []), s = oe((
|
|
5820
|
-
|
|
5834
|
+
}, []), s = oe((c, d) => {
|
|
5835
|
+
d !== "clickaway" && o((u) => ({ ...u, isOpen: !1 }));
|
|
5821
5836
|
}, []), a = We(
|
|
5822
5837
|
() => ({
|
|
5823
5838
|
closeSnackbar: s,
|
|
@@ -5826,7 +5841,7 @@ const fo = ({ children: e, permissions: A, disabledPermissions: r }) => {
|
|
|
5826
5841
|
}),
|
|
5827
5842
|
[s, i, n.isOpen]
|
|
5828
5843
|
);
|
|
5829
|
-
return /* @__PURE__ */
|
|
5844
|
+
return /* @__PURE__ */ m(o1.Provider, { value: a, children: [
|
|
5830
5845
|
/* @__PURE__ */ t(
|
|
5831
5846
|
I1,
|
|
5832
5847
|
{
|
|
@@ -5850,7 +5865,7 @@ const fo = ({ children: e, permissions: A, disabledPermissions: r }) => {
|
|
|
5850
5865
|
openSnackbar: n
|
|
5851
5866
|
};
|
|
5852
5867
|
}, Co = () => {
|
|
5853
|
-
const [e, A] =
|
|
5868
|
+
const [e, A] = q(0);
|
|
5854
5869
|
return {
|
|
5855
5870
|
handleChange: oe((n, o) => {
|
|
5856
5871
|
A(o);
|
|
@@ -5899,7 +5914,7 @@ export {
|
|
|
5899
5914
|
Kn as TimeLine,
|
|
5900
5915
|
$n as TypographySkeleton,
|
|
5901
5916
|
xo as getBackgroundImageElevation,
|
|
5902
|
-
|
|
5917
|
+
J as pxToRem,
|
|
5903
5918
|
to as theme,
|
|
5904
5919
|
A1 as useMenu,
|
|
5905
5920
|
P1 as usePermission,
|