@ukpc-lib/react 0.16.3-dev.25 → 0.16.3-dev.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +16 -16
- package/dist/components/index.js +352 -350
- package/dist/{index.esm2017-BmEMC8xN.cjs → index.esm2017-A_0wLJbQ.cjs} +51 -51
- package/dist/{index.esm2017-Eg6bIH-w.js → index.esm2017-DVc64d4k.js} +1298 -1292
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-jJGPNObX.js → index-BT0XlPI_.js} +1636 -1628
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import pi, { jsx as u, jsxs as O, Fragment as ue } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import Ce, { createElement as sn, PureComponent as gi, useState as
|
|
4
|
-
import { c as Me, a as ht, _ as bi, b as Qn, d as G, C as nt, t as Le, I as Qr, N as vi, p as xi, Q as eo, h as Rn, l as to, L as Si, G as wi, F as _i, e as er, U as Ei, f as Ci, u as Ti, g as no, S as ro, i as Ii, j as Mi, k as Tt, s as tr, m as Pn, P
|
|
5
|
-
import { T as hu, R as mu, K as pu, M as gu, O as yu } from "../index.esm2017-
|
|
3
|
+
import Ce, { createElement as sn, PureComponent as gi, useState as R, useEffect as X, useRef as pe, useContext as Ve, useCallback as dt, forwardRef as yi } from "react";
|
|
4
|
+
import { c as Me, a as ht, _ as bi, b as Qn, d as G, C as nt, t as Le, I as Qr, N as vi, p as xi, Q as eo, h as Rn, l as to, L as Si, G as wi, F as _i, e as er, U as Ei, f as Ci, u as Ti, g as no, S as ro, i as Ii, j as Mi, k as Tt, s as tr, m as Pn, P, n as _e, o as ki, q as Oi, r as Fe, v as Ai, w as Ot, x as nr, y as $i, z as rr, D as Ni, A as oo, B as io, E as Ri, H as Pi, J as zi } from "../index.esm2017-DVc64d4k.js";
|
|
5
|
+
import { T as hu, R as mu, K as pu, M as gu, O as yu } from "../index.esm2017-DVc64d4k.js";
|
|
6
6
|
import { Box as ao, CircularProgress as so, Typography as ke, Stack as we, Dialog as Li, DialogTitle as Di, DialogContent as Fi, DialogActions as ji, Button as gn, ClickAwayListener as Hi, TextField as co, IconButton as Bi, Fade as Wi, Paper as Vi, Checkbox as Ui, Breadcrumbs as Ki } from "@mui/material";
|
|
7
7
|
import "axios";
|
|
8
8
|
import { useLocation as Gi, useParams as Yi, Link as lo } from "react-router-dom";
|
|
@@ -222,26 +222,26 @@ function na(e) {
|
|
|
222
222
|
scrollDirection: "forward",
|
|
223
223
|
scrollOffset: typeof s.props.initialScrollOffset == "number" ? s.props.initialScrollOffset : 0,
|
|
224
224
|
scrollUpdateWasRequested: !1
|
|
225
|
-
}, s._callOnItemsRendered = void 0, s._callOnItemsRendered = cn(function(p,
|
|
225
|
+
}, s._callOnItemsRendered = void 0, s._callOnItemsRendered = cn(function(p, b, w, S) {
|
|
226
226
|
return s.props.onItemsRendered({
|
|
227
227
|
overscanStartIndex: p,
|
|
228
|
-
overscanStopIndex:
|
|
228
|
+
overscanStopIndex: b,
|
|
229
229
|
visibleStartIndex: w,
|
|
230
|
-
visibleStopIndex:
|
|
230
|
+
visibleStopIndex: S
|
|
231
231
|
});
|
|
232
|
-
}), s._callOnScroll = void 0, s._callOnScroll = cn(function(p,
|
|
232
|
+
}), s._callOnScroll = void 0, s._callOnScroll = cn(function(p, b, w) {
|
|
233
233
|
return s.props.onScroll({
|
|
234
234
|
scrollDirection: p,
|
|
235
|
-
scrollOffset:
|
|
235
|
+
scrollOffset: b,
|
|
236
236
|
scrollUpdateWasRequested: w
|
|
237
237
|
});
|
|
238
238
|
}), s._getItemStyle = void 0, s._getItemStyle = function(p) {
|
|
239
|
-
var
|
|
239
|
+
var b = s.props, w = b.direction, S = b.itemSize, E = b.layout, y = s._getItemStyleCache(f && S, f && E, f && w), x;
|
|
240
240
|
if (y.hasOwnProperty(p))
|
|
241
|
-
|
|
241
|
+
x = y[p];
|
|
242
242
|
else {
|
|
243
243
|
var _ = n(s.props, p, s._instanceProps), M = o(s.props, p, s._instanceProps), I = w === "horizontal" || E === "horizontal", D = w === "rtl", T = I ? _ : 0;
|
|
244
|
-
y[p] =
|
|
244
|
+
y[p] = x = {
|
|
245
245
|
position: "absolute",
|
|
246
246
|
left: D ? void 0 : T,
|
|
247
247
|
right: D ? T : void 0,
|
|
@@ -250,22 +250,22 @@ function na(e) {
|
|
|
250
250
|
width: I ? M : "100%"
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
return
|
|
254
|
-
}, s._getItemStyleCache = void 0, s._getItemStyleCache = cn(function(p,
|
|
253
|
+
return x;
|
|
254
|
+
}, s._getItemStyleCache = void 0, s._getItemStyleCache = cn(function(p, b, w) {
|
|
255
255
|
return {};
|
|
256
256
|
}), s._onScrollHorizontal = function(p) {
|
|
257
|
-
var
|
|
257
|
+
var b = p.currentTarget, w = b.clientWidth, S = b.scrollLeft, E = b.scrollWidth;
|
|
258
258
|
s.setState(function(y) {
|
|
259
|
-
if (y.scrollOffset ===
|
|
259
|
+
if (y.scrollOffset === S)
|
|
260
260
|
return null;
|
|
261
|
-
var
|
|
262
|
-
if (
|
|
261
|
+
var x = s.props.direction, _ = S;
|
|
262
|
+
if (x === "rtl")
|
|
263
263
|
switch (cr()) {
|
|
264
264
|
case "negative":
|
|
265
|
-
_ = -
|
|
265
|
+
_ = -S;
|
|
266
266
|
break;
|
|
267
267
|
case "positive-descending":
|
|
268
|
-
_ = E - w -
|
|
268
|
+
_ = E - w - S;
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
return _ = Math.max(0, Math.min(_, E - w)), {
|
|
@@ -276,21 +276,21 @@ function na(e) {
|
|
|
276
276
|
};
|
|
277
277
|
}, s._resetIsScrollingDebounced);
|
|
278
278
|
}, s._onScrollVertical = function(p) {
|
|
279
|
-
var
|
|
279
|
+
var b = p.currentTarget, w = b.clientHeight, S = b.scrollHeight, E = b.scrollTop;
|
|
280
280
|
s.setState(function(y) {
|
|
281
281
|
if (y.scrollOffset === E)
|
|
282
282
|
return null;
|
|
283
|
-
var
|
|
283
|
+
var x = Math.max(0, Math.min(E, S - w));
|
|
284
284
|
return {
|
|
285
285
|
isScrolling: !0,
|
|
286
|
-
scrollDirection: y.scrollOffset <
|
|
287
|
-
scrollOffset:
|
|
286
|
+
scrollDirection: y.scrollOffset < x ? "forward" : "backward",
|
|
287
|
+
scrollOffset: x,
|
|
288
288
|
scrollUpdateWasRequested: !1
|
|
289
289
|
};
|
|
290
290
|
}, s._resetIsScrollingDebounced);
|
|
291
291
|
}, s._outerRefSetter = function(p) {
|
|
292
|
-
var
|
|
293
|
-
s._outerRef = p, typeof
|
|
292
|
+
var b = s.props.outerRef;
|
|
293
|
+
s._outerRef = p, typeof b == "function" ? b(p) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = p);
|
|
294
294
|
}, s._resetIsScrollingDebounced = function() {
|
|
295
295
|
s._resetIsScrollingTimeoutId !== null && ar(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Qi(s._resetIsScrolling, ea);
|
|
296
296
|
}, s._resetIsScrolling = function() {
|
|
@@ -304,8 +304,8 @@ function na(e) {
|
|
|
304
304
|
m.getDerivedStateFromProps = function(s, p) {
|
|
305
305
|
return ra(s, p), d(s), null;
|
|
306
306
|
};
|
|
307
|
-
var
|
|
308
|
-
return
|
|
307
|
+
var v = m.prototype;
|
|
308
|
+
return v.scrollTo = function(s) {
|
|
309
309
|
s = Math.max(0, s), this.setState(function(p) {
|
|
310
310
|
return p.scrollOffset === s ? null : {
|
|
311
311
|
scrollDirection: p.scrollOffset < s ? "forward" : "backward",
|
|
@@ -313,51 +313,51 @@ function na(e) {
|
|
|
313
313
|
scrollUpdateWasRequested: !0
|
|
314
314
|
};
|
|
315
315
|
}, this._resetIsScrollingDebounced);
|
|
316
|
-
},
|
|
316
|
+
}, v.scrollToItem = function(s, p) {
|
|
317
317
|
p === void 0 && (p = "auto");
|
|
318
|
-
var
|
|
318
|
+
var b = this.props, w = b.itemCount, S = b.layout, E = this.state.scrollOffset;
|
|
319
319
|
s = Math.max(0, Math.min(s, w - 1));
|
|
320
320
|
var y = 0;
|
|
321
321
|
if (this._outerRef) {
|
|
322
|
-
var
|
|
323
|
-
|
|
322
|
+
var x = this._outerRef;
|
|
323
|
+
S === "vertical" ? y = x.scrollWidth > x.clientWidth ? sr() : 0 : y = x.scrollHeight > x.clientHeight ? sr() : 0;
|
|
324
324
|
}
|
|
325
325
|
this.scrollTo(i(this.props, s, p, E, this._instanceProps, y));
|
|
326
|
-
},
|
|
327
|
-
var s = this.props, p = s.direction,
|
|
328
|
-
if (typeof
|
|
329
|
-
var
|
|
330
|
-
p === "horizontal" || w === "horizontal" ?
|
|
326
|
+
}, v.componentDidMount = function() {
|
|
327
|
+
var s = this.props, p = s.direction, b = s.initialScrollOffset, w = s.layout;
|
|
328
|
+
if (typeof b == "number" && this._outerRef != null) {
|
|
329
|
+
var S = this._outerRef;
|
|
330
|
+
p === "horizontal" || w === "horizontal" ? S.scrollLeft = b : S.scrollTop = b;
|
|
331
331
|
}
|
|
332
332
|
this._callPropsCallbacks();
|
|
333
|
-
},
|
|
334
|
-
var s = this.props, p = s.direction,
|
|
333
|
+
}, v.componentDidUpdate = function() {
|
|
334
|
+
var s = this.props, p = s.direction, b = s.layout, w = this.state, S = w.scrollOffset, E = w.scrollUpdateWasRequested;
|
|
335
335
|
if (E && this._outerRef != null) {
|
|
336
336
|
var y = this._outerRef;
|
|
337
|
-
if (p === "horizontal" ||
|
|
337
|
+
if (p === "horizontal" || b === "horizontal")
|
|
338
338
|
if (p === "rtl")
|
|
339
339
|
switch (cr()) {
|
|
340
340
|
case "negative":
|
|
341
|
-
y.scrollLeft = -
|
|
341
|
+
y.scrollLeft = -S;
|
|
342
342
|
break;
|
|
343
343
|
case "positive-ascending":
|
|
344
|
-
y.scrollLeft =
|
|
344
|
+
y.scrollLeft = S;
|
|
345
345
|
break;
|
|
346
346
|
default:
|
|
347
|
-
var
|
|
348
|
-
y.scrollLeft = _ -
|
|
347
|
+
var x = y.clientWidth, _ = y.scrollWidth;
|
|
348
|
+
y.scrollLeft = _ - x - S;
|
|
349
349
|
break;
|
|
350
350
|
}
|
|
351
351
|
else
|
|
352
|
-
y.scrollLeft =
|
|
352
|
+
y.scrollLeft = S;
|
|
353
353
|
else
|
|
354
|
-
y.scrollTop =
|
|
354
|
+
y.scrollTop = S;
|
|
355
355
|
}
|
|
356
356
|
this._callPropsCallbacks();
|
|
357
|
-
},
|
|
357
|
+
}, v.componentWillUnmount = function() {
|
|
358
358
|
this._resetIsScrollingTimeoutId !== null && ar(this._resetIsScrollingTimeoutId);
|
|
359
|
-
},
|
|
360
|
-
var s = this.props, p = s.children,
|
|
359
|
+
}, v.render = function() {
|
|
360
|
+
var s = this.props, p = s.children, b = s.className, w = s.direction, S = s.height, E = s.innerRef, y = s.innerElementType, x = s.innerTagName, _ = s.itemCount, M = s.itemData, I = s.itemKey, D = I === void 0 ? ta : I, T = s.layout, z = s.outerElementType, K = s.outerTagName, W = s.style, ie = s.useIsScrolling, ce = s.width, ye = this.state.isScrolling, $ = w === "horizontal" || T === "horizontal", L = $ ? this._onScrollHorizontal : this._onScrollVertical, k = this._getRangeToRender(), F = k[0], Z = k[1], ae = [];
|
|
361
361
|
if (_ > 0)
|
|
362
362
|
for (var re = F; re <= Z; re++)
|
|
363
363
|
ae.push(sn(p, {
|
|
@@ -369,19 +369,19 @@ function na(e) {
|
|
|
369
369
|
}));
|
|
370
370
|
var Ee = r(this.props, this._instanceProps);
|
|
371
371
|
return sn(z || K || "div", {
|
|
372
|
-
className:
|
|
372
|
+
className: b,
|
|
373
373
|
onScroll: L,
|
|
374
374
|
ref: this._outerRefSetter,
|
|
375
375
|
style: G({
|
|
376
376
|
position: "relative",
|
|
377
|
-
height:
|
|
377
|
+
height: S,
|
|
378
378
|
width: ce,
|
|
379
379
|
overflow: "auto",
|
|
380
380
|
WebkitOverflowScrolling: "touch",
|
|
381
381
|
willChange: "transform",
|
|
382
382
|
direction: w
|
|
383
383
|
}, W)
|
|
384
|
-
}, sn(y ||
|
|
384
|
+
}, sn(y || x || "div", {
|
|
385
385
|
children: ae,
|
|
386
386
|
ref: E,
|
|
387
387
|
style: {
|
|
@@ -390,24 +390,24 @@ function na(e) {
|
|
|
390
390
|
width: $ ? Ee : "100%"
|
|
391
391
|
}
|
|
392
392
|
}));
|
|
393
|
-
},
|
|
393
|
+
}, v._callPropsCallbacks = function() {
|
|
394
394
|
if (typeof this.props.onItemsRendered == "function") {
|
|
395
395
|
var s = this.props.itemCount;
|
|
396
396
|
if (s > 0) {
|
|
397
|
-
var p = this._getRangeToRender(),
|
|
398
|
-
this._callOnItemsRendered(
|
|
397
|
+
var p = this._getRangeToRender(), b = p[0], w = p[1], S = p[2], E = p[3];
|
|
398
|
+
this._callOnItemsRendered(b, w, S, E);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
if (typeof this.props.onScroll == "function") {
|
|
402
|
-
var y = this.state,
|
|
403
|
-
this._callOnScroll(
|
|
402
|
+
var y = this.state, x = y.scrollDirection, _ = y.scrollOffset, M = y.scrollUpdateWasRequested;
|
|
403
|
+
this._callOnScroll(x, _, M);
|
|
404
404
|
}
|
|
405
|
-
},
|
|
406
|
-
var s = this.props, p = s.itemCount,
|
|
405
|
+
}, v._getRangeToRender = function() {
|
|
406
|
+
var s = this.props, p = s.itemCount, b = s.overscanCount, w = this.state, S = w.isScrolling, E = w.scrollDirection, y = w.scrollOffset;
|
|
407
407
|
if (p === 0)
|
|
408
408
|
return [0, 0, 0, 0];
|
|
409
|
-
var
|
|
410
|
-
return [Math.max(0,
|
|
409
|
+
var x = a(this.props, y, this._instanceProps), _ = c(this.props, x, y, this._instanceProps), M = !S || E === "backward" ? Math.max(1, b) : 1, I = !S || E === "forward" ? Math.max(1, b) : 1;
|
|
410
|
+
return [Math.max(0, x - M), Math.max(0, Math.min(p - 1, _ + I)), x, _];
|
|
411
411
|
}, m;
|
|
412
412
|
}(gi), t.defaultProps = {
|
|
413
413
|
direction: "ltr",
|
|
@@ -497,7 +497,7 @@ var ra = function(t, n) {
|
|
|
497
497
|
},
|
|
498
498
|
getEstimatedTotalSize: lr,
|
|
499
499
|
getOffsetForIndexAndAlignment: function(t, n, r, o, i, a) {
|
|
500
|
-
var c = t.direction, l = t.height, f = t.layout, d = t.width, h = c === "horizontal" || f === "horizontal", m = h ? d : l,
|
|
500
|
+
var c = t.direction, l = t.height, f = t.layout, d = t.width, h = c === "horizontal" || f === "horizontal", m = h ? d : l, v = Qe(t, n, i), g = lr(t, i), s = Math.max(0, Math.min(g - m, v.offset)), p = Math.max(0, v.offset - m + v.size + a);
|
|
501
501
|
switch (r === "smart" && (o >= p - m && o <= s + m ? r = "auto" : r = "center"), r) {
|
|
502
502
|
case "start":
|
|
503
503
|
return s;
|
|
@@ -514,7 +514,7 @@ var ra = function(t, n) {
|
|
|
514
514
|
return ia(t, r, n);
|
|
515
515
|
},
|
|
516
516
|
getStopIndexForStartIndex: function(t, n, r, o) {
|
|
517
|
-
for (var i = t.direction, a = t.height, c = t.itemCount, l = t.layout, f = t.width, d = i === "horizontal" || l === "horizontal", h = d ? f : a, m = Qe(t, n, o),
|
|
517
|
+
for (var i = t.direction, a = t.height, c = t.itemCount, l = t.layout, f = t.width, d = i === "horizontal" || l === "horizontal", h = d ? f : a, m = Qe(t, n, o), v = r + h, g = m.offset + m.size, s = n; s < c - 1 && g < v; )
|
|
518
518
|
s++, g += Qe(t, s, o).size;
|
|
519
519
|
return s;
|
|
520
520
|
},
|
|
@@ -543,21 +543,21 @@ const un = 20, ur = ({
|
|
|
543
543
|
tabType: o,
|
|
544
544
|
popupRef: i
|
|
545
545
|
}) => {
|
|
546
|
-
const [a, c] =
|
|
546
|
+
const [a, c] = R(!1), [l, f] = R(0);
|
|
547
547
|
X(() => {
|
|
548
548
|
const $ = () => {
|
|
549
549
|
i && i.current && f(i.current.offsetHeight - 200);
|
|
550
550
|
};
|
|
551
551
|
return $(), window.addEventListener("resize", $), () => window.removeEventListener("resize", $);
|
|
552
552
|
}, []);
|
|
553
|
-
const [d, h] =
|
|
553
|
+
const [d, h] = R([]), [m, v] = R(!0), [g, s] = R(!1), [p, b] = R(1), [w, S] = R({}), E = pe(null), { setNotiData: y } = Ve(nt), x = fo({ baseUrl: e, notiPath: t, setNotiData: y }), _ = pe(null), M = dt(async () => {
|
|
554
554
|
if (!(g || !m)) {
|
|
555
555
|
s(!0);
|
|
556
556
|
try {
|
|
557
|
-
const $ = d.length === 0 ? 1 : p + 1, L = await
|
|
558
|
-
_.current = (L == null ? void 0 : L.count) || (L == null ? void 0 : L.total) || null, h((F) => [...F, ...k]),
|
|
557
|
+
const $ = d.length === 0 ? 1 : p + 1, L = await x($, un, o), k = (L == null ? void 0 : L.rows) || [];
|
|
558
|
+
_.current = (L == null ? void 0 : L.count) || (L == null ? void 0 : L.total) || null, h((F) => [...F, ...k]), b($), (k.length < un || _.current && d.length + k.length >= _.current) && v(!1);
|
|
559
559
|
} catch {
|
|
560
|
-
|
|
560
|
+
v(!1);
|
|
561
561
|
} finally {
|
|
562
562
|
s(!1);
|
|
563
563
|
}
|
|
@@ -566,7 +566,7 @@ const un = 20, ur = ({
|
|
|
566
566
|
g,
|
|
567
567
|
m,
|
|
568
568
|
p,
|
|
569
|
-
|
|
569
|
+
x,
|
|
570
570
|
d.length,
|
|
571
571
|
o
|
|
572
572
|
]), I = m ? d.length + 1 : d.length, D = ($) => !m || $ < d.length, T = async () => {
|
|
@@ -576,13 +576,13 @@ const un = 20, ur = ({
|
|
|
576
576
|
} catch (L) {
|
|
577
577
|
console.log(L);
|
|
578
578
|
}
|
|
579
|
-
const $ = await
|
|
579
|
+
const $ = await x(1, un, o);
|
|
580
580
|
h(($ == null ? void 0 : $.rows) || []), y((L) => ({
|
|
581
581
|
...L,
|
|
582
582
|
unread: {
|
|
583
583
|
total: 0
|
|
584
584
|
}
|
|
585
|
-
})),
|
|
585
|
+
})), b(1), v(!0), c(!1);
|
|
586
586
|
}, z = () => {
|
|
587
587
|
c(!0), T();
|
|
588
588
|
}, K = ({ style: $ }) => /* @__PURE__ */ O(
|
|
@@ -619,7 +619,7 @@ const un = 20, ur = ({
|
|
|
619
619
|
const Z = d[$];
|
|
620
620
|
return Z && Z.notificationType === "deleteMultiple" && w[Z.id] ? 90 + 38 * (((ae = Z.data) == null ? void 0 : ae.length) ?? 0) + 8 : 90;
|
|
621
621
|
}, ce = ($, L) => {
|
|
622
|
-
|
|
622
|
+
S((k) => {
|
|
623
623
|
const F = { ...k, [$]: !k[$] };
|
|
624
624
|
return setTimeout(() => {
|
|
625
625
|
var Z;
|
|
@@ -689,34 +689,36 @@ const un = 20, ur = ({
|
|
|
689
689
|
notiPath: t,
|
|
690
690
|
brandColors: n
|
|
691
691
|
}) => {
|
|
692
|
-
var
|
|
692
|
+
var v, g;
|
|
693
693
|
const r = pe(null), { setShowModalFalse: o } = Ve(nt), { notidata: i } = Ve(nt);
|
|
694
694
|
console.log(i);
|
|
695
|
-
const [a, c] =
|
|
695
|
+
const [a, c] = R(window.innerWidth < 767), [l, f] = R(
|
|
696
|
+
window.innerWidth >= 767 && window.innerWidth < 1024
|
|
697
|
+
);
|
|
696
698
|
X(() => {
|
|
697
|
-
const
|
|
698
|
-
c(window.innerWidth <
|
|
699
|
+
const s = () => {
|
|
700
|
+
c(window.innerWidth < 767), f(window.innerWidth >= 767 && window.innerWidth < 1024);
|
|
699
701
|
};
|
|
700
|
-
return window.addEventListener("resize",
|
|
702
|
+
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
701
703
|
}, []), X(() => {
|
|
702
|
-
const
|
|
703
|
-
!(!!
|
|
704
|
-
(
|
|
705
|
-
var
|
|
706
|
-
return
|
|
704
|
+
const s = (b) => {
|
|
705
|
+
!(!!b.composedPath ? b.composedPath() : [b.target]).some(
|
|
706
|
+
(y) => {
|
|
707
|
+
var x;
|
|
708
|
+
return y === r.current || ((x = y == null ? void 0 : y.classList) == null ? void 0 : x.contains("noti-container"));
|
|
707
709
|
}
|
|
708
710
|
) && o();
|
|
709
|
-
},
|
|
710
|
-
document.addEventListener("mousedown",
|
|
711
|
+
}, p = setTimeout(() => {
|
|
712
|
+
document.addEventListener("mousedown", s);
|
|
711
713
|
}, 100);
|
|
712
714
|
return () => {
|
|
713
|
-
clearTimeout(
|
|
715
|
+
clearTimeout(p), document.removeEventListener("mousedown", s);
|
|
714
716
|
};
|
|
715
717
|
}, [o]);
|
|
716
|
-
const [
|
|
718
|
+
const [d, h] = R("all"), m = [
|
|
717
719
|
{
|
|
718
720
|
id: "all",
|
|
719
|
-
tabTitle: `${Le("notificationAdmin.notify.allNotification", { defaultValue: "All" })} (${((
|
|
721
|
+
tabTitle: `${Le("notificationAdmin.notify.allNotification", { defaultValue: "All" })} (${((v = i == null ? void 0 : i.all) == null ? void 0 : v.total) || 0})`,
|
|
720
722
|
children: /* @__PURE__ */ u(
|
|
721
723
|
ur,
|
|
722
724
|
{
|
|
@@ -731,7 +733,7 @@ const un = 20, ur = ({
|
|
|
731
733
|
},
|
|
732
734
|
{
|
|
733
735
|
id: "unread",
|
|
734
|
-
tabTitle: `${Le("notificationAdmin.notify.unreadNotification", { defaultValue: "Unread" })} (${((
|
|
736
|
+
tabTitle: `${Le("notificationAdmin.notify.unreadNotification", { defaultValue: "Unread" })} (${((g = i == null ? void 0 : i.unread) == null ? void 0 : g.total) || 0})`,
|
|
735
737
|
children: /* @__PURE__ */ u(
|
|
736
738
|
ur,
|
|
737
739
|
{
|
|
@@ -754,7 +756,7 @@ const un = 20, ur = ({
|
|
|
754
756
|
backgroundColor: "#fff",
|
|
755
757
|
width: a ? "100vw" : "550px",
|
|
756
758
|
height: "90vh",
|
|
757
|
-
right: a ? "0" : "100px",
|
|
759
|
+
right: a || l ? "0" : "100px",
|
|
758
760
|
left: a ? "0" : "auto",
|
|
759
761
|
top: a ? "64px" : "100%",
|
|
760
762
|
padding: a ? "16px" : "32px",
|
|
@@ -810,9 +812,9 @@ const un = 20, ur = ({
|
|
|
810
812
|
/* @__PURE__ */ u(
|
|
811
813
|
uo,
|
|
812
814
|
{
|
|
813
|
-
tabs:
|
|
814
|
-
setCurrentTab:
|
|
815
|
-
currentTab:
|
|
815
|
+
tabs: m,
|
|
816
|
+
setCurrentTab: h,
|
|
817
|
+
currentTab: d,
|
|
816
818
|
brandColors: n
|
|
817
819
|
}
|
|
818
820
|
)
|
|
@@ -830,7 +832,7 @@ function ca({
|
|
|
830
832
|
const { isOpen: o, toggleOpen: i, setShowModalFalse: a } = Ve(nt), { notidata: c, setNotiData: l } = Ve(nt), f = fo({ baseUrl: t, notiPath: n, setNotiData: l });
|
|
831
833
|
return X(() => {
|
|
832
834
|
(async () => {
|
|
833
|
-
var
|
|
835
|
+
var v, g;
|
|
834
836
|
try {
|
|
835
837
|
const [s] = await Promise.all([
|
|
836
838
|
f(1, 20, "unread")
|
|
@@ -843,7 +845,7 @@ function ca({
|
|
|
843
845
|
}));
|
|
844
846
|
} catch (s) {
|
|
845
847
|
xi(
|
|
846
|
-
((g = (
|
|
848
|
+
((g = (v = s.response) == null ? void 0 : v.data) == null ? void 0 : g.errorMessage) || "Have error when get notification list"
|
|
847
849
|
);
|
|
848
850
|
}
|
|
849
851
|
})();
|
|
@@ -947,40 +949,40 @@ function pa({ baseColor: e, highlightColor: t, width: n, height: r, borderRadius
|
|
|
947
949
|
function yo({ count: e = 1, wrapper: t, className: n, containerClassName: r, containerTestId: o, circle: i = !1, style: a, ...c }) {
|
|
948
950
|
var l, f, d;
|
|
949
951
|
const h = Ce.useContext(ma), m = { ...c };
|
|
950
|
-
for (const [
|
|
951
|
-
typeof E > "u" && delete m[
|
|
952
|
-
const
|
|
952
|
+
for (const [S, E] of Object.entries(c))
|
|
953
|
+
typeof E > "u" && delete m[S];
|
|
954
|
+
const v = {
|
|
953
955
|
...h,
|
|
954
956
|
...m,
|
|
955
957
|
circle: i
|
|
956
958
|
}, g = {
|
|
957
959
|
...a,
|
|
958
|
-
...pa(
|
|
960
|
+
...pa(v)
|
|
959
961
|
};
|
|
960
962
|
let s = "react-loading-skeleton";
|
|
961
963
|
n && (s += ` ${n}`);
|
|
962
|
-
const p = (l =
|
|
963
|
-
for (let
|
|
964
|
+
const p = (l = v.inline) !== null && l !== void 0 ? l : !1, b = [], w = Math.ceil(e);
|
|
965
|
+
for (let S = 0; S < w; S++) {
|
|
964
966
|
let E = g;
|
|
965
|
-
if (w > e &&
|
|
966
|
-
const
|
|
967
|
+
if (w > e && S === w - 1) {
|
|
968
|
+
const x = (f = E.width) !== null && f !== void 0 ? f : "100%", _ = e % 1, M = typeof x == "number" ? x * _ : `calc(${x} * ${_})`;
|
|
967
969
|
E = { ...E, width: M };
|
|
968
970
|
}
|
|
969
|
-
const y = Ce.createElement("span", { className: s, style: E, key:
|
|
970
|
-
p ?
|
|
971
|
+
const y = Ce.createElement("span", { className: s, style: E, key: S }, "");
|
|
972
|
+
p ? b.push(y) : b.push(Ce.createElement(
|
|
971
973
|
Ce.Fragment,
|
|
972
|
-
{ key:
|
|
974
|
+
{ key: S },
|
|
973
975
|
y,
|
|
974
976
|
Ce.createElement("br", null)
|
|
975
977
|
));
|
|
976
978
|
}
|
|
977
|
-
return Ce.createElement("span", { className: r, "data-testid": o, "aria-live": "polite", "aria-busy": (d =
|
|
979
|
+
return Ce.createElement("span", { className: r, "data-testid": o, "aria-live": "polite", "aria-busy": (d = v.enableAnimation) !== null && d !== void 0 ? d : go }, t ? b.map((S, E) => Ce.createElement(t, { key: E }, S)) : b);
|
|
978
980
|
}
|
|
979
981
|
const ga = '@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}', ya = ({
|
|
980
982
|
baseUrl: e,
|
|
981
983
|
searchPath: t
|
|
982
984
|
}) => {
|
|
983
|
-
const [n, r] =
|
|
985
|
+
const [n, r] = R(!1);
|
|
984
986
|
console.log("hasPermission state", n);
|
|
985
987
|
const o = async () => {
|
|
986
988
|
const a = e + (t || "/user-management/api/v1/users/my-account/access-stella-search");
|
|
@@ -1307,24 +1309,24 @@ function La(e, t, n, {
|
|
|
1307
1309
|
if (t.length > We)
|
|
1308
1310
|
throw new Error(Ea(We));
|
|
1309
1311
|
const d = t.length, h = e.length, m = Math.max(0, Math.min(r, h));
|
|
1310
|
-
let
|
|
1312
|
+
let v = i, g = m;
|
|
1311
1313
|
const s = c > 1 || l, p = s ? Array(h) : [];
|
|
1312
|
-
let
|
|
1313
|
-
for (; (
|
|
1314
|
+
let b;
|
|
1315
|
+
for (; (b = e.indexOf(t, g)) > -1; ) {
|
|
1314
1316
|
let _ = It(t, {
|
|
1315
|
-
currentLocation:
|
|
1317
|
+
currentLocation: b,
|
|
1316
1318
|
expectedLocation: m,
|
|
1317
1319
|
distance: o,
|
|
1318
1320
|
ignoreLocation: f
|
|
1319
1321
|
});
|
|
1320
|
-
if (
|
|
1322
|
+
if (v = Math.min(_, v), g = b + d, s) {
|
|
1321
1323
|
let M = 0;
|
|
1322
1324
|
for (; M < d; )
|
|
1323
|
-
p[
|
|
1325
|
+
p[b + M] = 1, M += 1;
|
|
1324
1326
|
}
|
|
1325
1327
|
}
|
|
1326
1328
|
g = -1;
|
|
1327
|
-
let w = [],
|
|
1329
|
+
let w = [], S = 1, E = d + h;
|
|
1328
1330
|
const y = 1 << d - 1;
|
|
1329
1331
|
for (let _ = 0; _ < d; _ += 1) {
|
|
1330
1332
|
let M = 0, I = E;
|
|
@@ -1335,20 +1337,20 @@ function La(e, t, n, {
|
|
|
1335
1337
|
expectedLocation: m,
|
|
1336
1338
|
distance: o,
|
|
1337
1339
|
ignoreLocation: f
|
|
1338
|
-
}) <=
|
|
1340
|
+
}) <= v ? M = I : E = I, I = Math.floor((E - M) / 2 + M);
|
|
1339
1341
|
E = I;
|
|
1340
1342
|
let D = Math.max(1, m - I + 1), T = a ? h : Math.min(m + I, h) + d, z = Array(T + 2);
|
|
1341
1343
|
z[T + 1] = (1 << _) - 1;
|
|
1342
1344
|
for (let W = T; W >= D; W -= 1) {
|
|
1343
1345
|
let ie = W - 1, ce = n[e.charAt(ie)];
|
|
1344
|
-
if (s && (p[ie] = +!!ce), z[W] = (z[W + 1] << 1 | 1) & ce, _ && (z[W] |= (w[W + 1] | w[W]) << 1 | 1 | w[W + 1]), z[W] & y && (
|
|
1346
|
+
if (s && (p[ie] = +!!ce), z[W] = (z[W + 1] << 1 | 1) & ce, _ && (z[W] |= (w[W + 1] | w[W]) << 1 | 1 | w[W + 1]), z[W] & y && (S = It(t, {
|
|
1345
1347
|
errors: _,
|
|
1346
1348
|
currentLocation: ie,
|
|
1347
1349
|
expectedLocation: m,
|
|
1348
1350
|
distance: o,
|
|
1349
1351
|
ignoreLocation: f
|
|
1350
|
-
}),
|
|
1351
|
-
if (
|
|
1352
|
+
}), S <= v)) {
|
|
1353
|
+
if (v = S, g = ie, g <= m)
|
|
1352
1354
|
break;
|
|
1353
1355
|
D = Math.max(1, 2 * m - g);
|
|
1354
1356
|
}
|
|
@@ -1359,20 +1361,20 @@ function La(e, t, n, {
|
|
|
1359
1361
|
expectedLocation: m,
|
|
1360
1362
|
distance: o,
|
|
1361
1363
|
ignoreLocation: f
|
|
1362
|
-
}) >
|
|
1364
|
+
}) > v)
|
|
1363
1365
|
break;
|
|
1364
1366
|
w = z;
|
|
1365
1367
|
}
|
|
1366
|
-
const
|
|
1368
|
+
const x = {
|
|
1367
1369
|
isMatch: g >= 0,
|
|
1368
1370
|
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
1369
|
-
score: Math.max(1e-3,
|
|
1371
|
+
score: Math.max(1e-3, S)
|
|
1370
1372
|
};
|
|
1371
1373
|
if (s) {
|
|
1372
1374
|
const _ = za(p, c);
|
|
1373
|
-
_.length ? l && (
|
|
1375
|
+
_.length ? l && (x.indices = _) : x.isMatch = !1;
|
|
1374
1376
|
}
|
|
1375
|
-
return
|
|
1377
|
+
return x;
|
|
1376
1378
|
}
|
|
1377
1379
|
function Da(e) {
|
|
1378
1380
|
let t = {};
|
|
@@ -1404,19 +1406,19 @@ class _o {
|
|
|
1404
1406
|
ignoreLocation: f
|
|
1405
1407
|
}, this.pattern = l ? t : t.toLowerCase(), this.chunks = [], !this.pattern.length)
|
|
1406
1408
|
return;
|
|
1407
|
-
const d = (m,
|
|
1409
|
+
const d = (m, v) => {
|
|
1408
1410
|
this.chunks.push({
|
|
1409
1411
|
pattern: m,
|
|
1410
1412
|
alphabet: Da(m),
|
|
1411
|
-
startIndex:
|
|
1413
|
+
startIndex: v
|
|
1412
1414
|
});
|
|
1413
1415
|
}, h = this.pattern.length;
|
|
1414
1416
|
if (h > We) {
|
|
1415
1417
|
let m = 0;
|
|
1416
|
-
const
|
|
1418
|
+
const v = h % We, g = h - v;
|
|
1417
1419
|
for (; m < g; )
|
|
1418
1420
|
d(this.pattern.substr(m, We), m), m += We;
|
|
1419
|
-
if (
|
|
1421
|
+
if (v) {
|
|
1420
1422
|
const s = h - We;
|
|
1421
1423
|
d(this.pattern.substr(s), s);
|
|
1422
1424
|
}
|
|
@@ -1442,7 +1444,7 @@ class _o {
|
|
|
1442
1444
|
} = this.options;
|
|
1443
1445
|
let d = [], h = 0, m = !1;
|
|
1444
1446
|
this.chunks.forEach(({ pattern: g, alphabet: s, startIndex: p }) => {
|
|
1445
|
-
const { isMatch:
|
|
1447
|
+
const { isMatch: b, score: w, indices: S } = La(t, g, s, {
|
|
1446
1448
|
location: o + p,
|
|
1447
1449
|
distance: i,
|
|
1448
1450
|
threshold: a,
|
|
@@ -1451,13 +1453,13 @@ class _o {
|
|
|
1451
1453
|
includeMatches: r,
|
|
1452
1454
|
ignoreLocation: f
|
|
1453
1455
|
});
|
|
1454
|
-
|
|
1456
|
+
b && (m = !0), h += w, b && S && (d = [...d, ...S]);
|
|
1455
1457
|
});
|
|
1456
|
-
let
|
|
1458
|
+
let v = {
|
|
1457
1459
|
isMatch: m,
|
|
1458
1460
|
score: m ? h / this.chunks.length : 1
|
|
1459
1461
|
};
|
|
1460
|
-
return m && r && (
|
|
1462
|
+
return m && r && (v.indices = d), v;
|
|
1461
1463
|
}
|
|
1462
1464
|
}
|
|
1463
1465
|
class je {
|
|
@@ -1744,11 +1746,11 @@ class qa {
|
|
|
1744
1746
|
const d = n[l];
|
|
1745
1747
|
a.length = 0, i = 0;
|
|
1746
1748
|
for (let h = 0, m = d.length; h < m; h += 1) {
|
|
1747
|
-
const
|
|
1749
|
+
const v = d[h], { isMatch: g, indices: s, score: p } = v.search(t);
|
|
1748
1750
|
if (g) {
|
|
1749
1751
|
if (i += 1, c += p, r) {
|
|
1750
|
-
const
|
|
1751
|
-
Ya.has(
|
|
1752
|
+
const b = v.constructor.type;
|
|
1753
|
+
Ya.has(b) ? a = [...a, ...s] : a.push(s);
|
|
1752
1754
|
}
|
|
1753
1755
|
} else {
|
|
1754
1756
|
c = 0, i = 0, a.length = 0;
|
|
@@ -1923,22 +1925,22 @@ class ot {
|
|
|
1923
1925
|
_searchLogical(t) {
|
|
1924
1926
|
const n = To(t, this.options), r = (c, l, f) => {
|
|
1925
1927
|
if (!c.children) {
|
|
1926
|
-
const { keyId: h, searcher: m } = c,
|
|
1928
|
+
const { keyId: h, searcher: m } = c, v = this._findMatches({
|
|
1927
1929
|
key: this._keyStore.get(h),
|
|
1928
1930
|
value: this._myIndex.getValueForItemAtKeyId(l, h),
|
|
1929
1931
|
searcher: m
|
|
1930
1932
|
});
|
|
1931
|
-
return
|
|
1933
|
+
return v && v.length ? [
|
|
1932
1934
|
{
|
|
1933
1935
|
idx: f,
|
|
1934
1936
|
item: l,
|
|
1935
|
-
matches:
|
|
1937
|
+
matches: v
|
|
1936
1938
|
}
|
|
1937
1939
|
] : [];
|
|
1938
1940
|
}
|
|
1939
1941
|
const d = [];
|
|
1940
1942
|
for (let h = 0, m = c.children.length; h < m; h += 1) {
|
|
1941
|
-
const
|
|
1943
|
+
const v = c.children[h], g = r(v, l, f);
|
|
1942
1944
|
if (g.length)
|
|
1943
1945
|
d.push(...g);
|
|
1944
1946
|
else if (c.operator === Dt.AND)
|
|
@@ -2040,7 +2042,7 @@ function is({
|
|
|
2040
2042
|
}) {
|
|
2041
2043
|
const h = l || ((g) => g[i]), m = (g) => {
|
|
2042
2044
|
t(g), n(g[i]);
|
|
2043
|
-
},
|
|
2045
|
+
}, v = ({
|
|
2044
2046
|
event: g,
|
|
2045
2047
|
result: s
|
|
2046
2048
|
}) => {
|
|
@@ -2056,7 +2058,7 @@ function is({
|
|
|
2056
2058
|
id: a === s ? "selectedSearch" : "",
|
|
2057
2059
|
onMouseEnter: () => c({ index: s }),
|
|
2058
2060
|
"data-test": "result",
|
|
2059
|
-
onMouseDown: (p) =>
|
|
2061
|
+
onMouseDown: (p) => v({ event: p, result: g }),
|
|
2060
2062
|
onClick: () => m(g),
|
|
2061
2063
|
children: [
|
|
2062
2064
|
/* @__PURE__ */ u(_n, { showIcon: r }),
|
|
@@ -2119,26 +2121,26 @@ function ss({
|
|
|
2119
2121
|
}) {
|
|
2120
2122
|
const h = pe(null);
|
|
2121
2123
|
let m = !0;
|
|
2122
|
-
const
|
|
2124
|
+
const v = () => {
|
|
2123
2125
|
m = !1, h != null && h.current && h.current.focus(), m = !0;
|
|
2124
2126
|
}, g = (p) => {
|
|
2125
2127
|
m && i(p);
|
|
2126
2128
|
}, s = d ? { maxLength: d } : {};
|
|
2127
2129
|
return X(() => {
|
|
2128
2130
|
document.querySelector("global-topbar");
|
|
2129
|
-
const p = (
|
|
2130
|
-
const w = document.getElementById("AddTagButton"),
|
|
2131
|
-
["a", "e", "t"].includes(
|
|
2131
|
+
const p = (b) => {
|
|
2132
|
+
const w = document.getElementById("AddTagButton"), S = document.getElementsByClassName("btn-edit");
|
|
2133
|
+
["a", "e", "t"].includes(b.key.toLowerCase()) && ((S == null ? void 0 : S.length) > 0 && S[0].addEventListener(
|
|
2132
2134
|
"click",
|
|
2133
2135
|
(y) => {
|
|
2134
|
-
const
|
|
2136
|
+
const x = document.querySelector("global-topbar"), _ = x != null ? x.shadowRoot : document, M = _.getElementById("GlobalSearchInput");
|
|
2135
2137
|
_.activeElement === M ? (y.preventDefault(), y.stopPropagation(), console.log("Shadow DOM keydown:", y.key)) : y.click();
|
|
2136
2138
|
},
|
|
2137
2139
|
!0
|
|
2138
2140
|
), w != null && w.addEventListener(
|
|
2139
2141
|
"click",
|
|
2140
2142
|
(y) => {
|
|
2141
|
-
const
|
|
2143
|
+
const x = document.querySelector("global-topbar"), _ = x != null ? x.shadowRoot : document, M = _.getElementById("GlobalSearchInput");
|
|
2142
2144
|
_.activeElement === M ? (y.preventDefault(), y.stopPropagation(), console.log("Shadow DOM keydown:", y.key)) : y.click();
|
|
2143
2145
|
},
|
|
2144
2146
|
!0
|
|
@@ -2164,13 +2166,13 @@ function ss({
|
|
|
2164
2166
|
autoFocus: o,
|
|
2165
2167
|
onBlur: () => r(),
|
|
2166
2168
|
onKeyDown: (p) => {
|
|
2167
|
-
var
|
|
2169
|
+
var b;
|
|
2168
2170
|
if (p.key === "Enter") {
|
|
2169
2171
|
const w = document.querySelector("global-topbar");
|
|
2170
2172
|
if ((w != null ? w.shadowRoot : document).getElementById("selectedSearch") === null) {
|
|
2171
2173
|
console.log("enter", p);
|
|
2172
2174
|
const E = p.currentTarget.value;
|
|
2173
|
-
(
|
|
2175
|
+
(b = window.top) == null || b.shellNavigate(`/app/stella/page/Search/Index?Term=${E}`);
|
|
2174
2176
|
return;
|
|
2175
2177
|
}
|
|
2176
2178
|
}
|
|
@@ -2187,7 +2189,7 @@ function ss({
|
|
|
2187
2189
|
setSearchString: t,
|
|
2188
2190
|
searchString: e,
|
|
2189
2191
|
onClear: a,
|
|
2190
|
-
setFocus:
|
|
2192
|
+
setFocus: v
|
|
2191
2193
|
}
|
|
2192
2194
|
)
|
|
2193
2195
|
] });
|
|
@@ -2212,21 +2214,21 @@ function br({
|
|
|
2212
2214
|
showClear: d = !0,
|
|
2213
2215
|
maxResults: h = ls,
|
|
2214
2216
|
placeholder: m = "",
|
|
2215
|
-
autoFocus:
|
|
2217
|
+
autoFocus: v = !1,
|
|
2216
2218
|
styling: g = {},
|
|
2217
2219
|
resultStringKeyName: s = "name",
|
|
2218
2220
|
inputSearchString: p = "",
|
|
2219
|
-
formatResult:
|
|
2221
|
+
formatResult: b,
|
|
2220
2222
|
showNoResults: w = !0,
|
|
2221
|
-
showNoResultsText:
|
|
2223
|
+
showNoResultsText: S = "No results",
|
|
2222
2224
|
showItemsOnFocus: E = !1,
|
|
2223
2225
|
maxLength: y = 0,
|
|
2224
|
-
baseUrl:
|
|
2226
|
+
baseUrl: x = ""
|
|
2225
2227
|
}) {
|
|
2226
2228
|
({ ...g });
|
|
2227
2229
|
const _ = { ...gr, ...t }, M = new ot(e, _);
|
|
2228
2230
|
M.setCollection(e);
|
|
2229
|
-
const [I, D] =
|
|
2231
|
+
const [I, D] = R(p), [T, z] = R([]), [K, W] = R(-1), [ie, ce] = R(!1), [ye, $] = R(!1), [L, k] = R(!1), [F, Z] = R(!1);
|
|
2230
2232
|
X(() => {
|
|
2231
2233
|
D(p);
|
|
2232
2234
|
const j = setTimeout(
|
|
@@ -2299,7 +2301,7 @@ function br({
|
|
|
2299
2301
|
searchString: I,
|
|
2300
2302
|
setSearchString: an,
|
|
2301
2303
|
eraseResults: Ue,
|
|
2302
|
-
autoFocus:
|
|
2304
|
+
autoFocus: v,
|
|
2303
2305
|
onFocus: ae,
|
|
2304
2306
|
onClear: c,
|
|
2305
2307
|
placeholder: m,
|
|
@@ -2307,7 +2309,7 @@ function br({
|
|
|
2307
2309
|
showClear: d,
|
|
2308
2310
|
setHighlightedItem: Ct,
|
|
2309
2311
|
maxLength: y,
|
|
2310
|
-
baseUrl:
|
|
2312
|
+
baseUrl: x
|
|
2311
2313
|
}
|
|
2312
2314
|
) }),
|
|
2313
2315
|
/* @__PURE__ */ u(
|
|
@@ -2319,11 +2321,11 @@ function br({
|
|
|
2319
2321
|
showIcon: f,
|
|
2320
2322
|
maxResults: h,
|
|
2321
2323
|
resultStringKeyName: s,
|
|
2322
|
-
formatResult:
|
|
2324
|
+
formatResult: b,
|
|
2323
2325
|
highlightedItem: K,
|
|
2324
2326
|
setHighlightedItem: Ct,
|
|
2325
2327
|
showNoResultsFlag: L,
|
|
2326
|
-
showNoResultsText:
|
|
2328
|
+
showNoResultsText: S
|
|
2327
2329
|
}
|
|
2328
2330
|
)
|
|
2329
2331
|
] }) });
|
|
@@ -2360,7 +2362,7 @@ function us({
|
|
|
2360
2362
|
isOpen: n,
|
|
2361
2363
|
onClose: r
|
|
2362
2364
|
}) {
|
|
2363
|
-
const [o, i] =
|
|
2365
|
+
const [o, i] = R("global"), [a, c] = R([]), [l, f] = R([]), [d, h] = R(!1);
|
|
2364
2366
|
X(() => {
|
|
2365
2367
|
n && Rn({
|
|
2366
2368
|
childrenClass: "menu-tabs-container",
|
|
@@ -2372,8 +2374,8 @@ function us({
|
|
|
2372
2374
|
};
|
|
2373
2375
|
return X(() => {
|
|
2374
2376
|
const g = (s) => {
|
|
2375
|
-
const
|
|
2376
|
-
f(
|
|
2377
|
+
const b = s.detail.favoriteMenus || [];
|
|
2378
|
+
f(b);
|
|
2377
2379
|
};
|
|
2378
2380
|
return window.addEventListener("favoriteMenusChange", g), () => {
|
|
2379
2381
|
window.removeEventListener(
|
|
@@ -2506,27 +2508,27 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2506
2508
|
...a,
|
|
2507
2509
|
color: (c == null ? void 0 : c.headerTextColor) || "white",
|
|
2508
2510
|
backgroundColor: (c == null ? void 0 : c.headerBgColor) || "black"
|
|
2509
|
-
}, [
|
|
2511
|
+
}, [v, g] = R(!1), [s, p] = R(!1);
|
|
2510
2512
|
console.log("🚀 ~ TopBarContent ~ isMenuOpen:", s);
|
|
2511
|
-
const [
|
|
2513
|
+
const [b, w] = R(window.innerWidth < 767), S = Gi(), { Term: E } = Yi();
|
|
2512
2514
|
console.log("term", E);
|
|
2513
|
-
const [y,
|
|
2515
|
+
const [y, x] = R([]), [_, M] = R([]), [I, D] = R(!1), T = pe(null), z = ya({ baseUrl: o });
|
|
2514
2516
|
console.log("searchPermission", z.hasPermission), X(() => {
|
|
2515
2517
|
const k = () => {
|
|
2516
|
-
const F = window.innerWidth <
|
|
2518
|
+
const F = window.innerWidth < 767;
|
|
2517
2519
|
w(F), !F && s && p(!1);
|
|
2518
2520
|
};
|
|
2519
2521
|
return window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
|
|
2520
2522
|
}, [s]), X(() => {
|
|
2521
2523
|
s && p(!1);
|
|
2522
|
-
}, [
|
|
2523
|
-
if (
|
|
2524
|
+
}, [S.pathname]), X(() => {
|
|
2525
|
+
if (b && I) {
|
|
2524
2526
|
const k = (F) => {
|
|
2525
2527
|
T.current && !T.current.contains(F.target) && D(!1);
|
|
2526
2528
|
};
|
|
2527
2529
|
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
2528
2530
|
}
|
|
2529
|
-
}, [
|
|
2531
|
+
}, [b, I]), X(() => {
|
|
2530
2532
|
y.length >= 3 ? K(y) : M([]);
|
|
2531
2533
|
}, [y]);
|
|
2532
2534
|
const K = async (k) => {
|
|
@@ -2538,7 +2540,7 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2538
2540
|
}, W = (k) => {
|
|
2539
2541
|
console.log(k);
|
|
2540
2542
|
}, ie = (k, F) => {
|
|
2541
|
-
|
|
2543
|
+
x(k), console.log(k, F);
|
|
2542
2544
|
}, ce = (k) => {
|
|
2543
2545
|
const F = k.entityType, Z = k.entityId;
|
|
2544
2546
|
switch (F) {
|
|
@@ -2592,7 +2594,7 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2592
2594
|
style: c ? m : a,
|
|
2593
2595
|
children: /* @__PURE__ */ O("div", { className: "navbar-container", children: [
|
|
2594
2596
|
/* @__PURE__ */ O("div", { className: "navbar-logo-button", children: [
|
|
2595
|
-
|
|
2597
|
+
b && /* @__PURE__ */ u(
|
|
2596
2598
|
"button",
|
|
2597
2599
|
{
|
|
2598
2600
|
className: "mobile-toggle-btn",
|
|
@@ -2617,7 +2619,7 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2617
2619
|
) })
|
|
2618
2620
|
] }),
|
|
2619
2621
|
/* @__PURE__ */ O("div", { className: "right-side-container", children: [
|
|
2620
|
-
!
|
|
2622
|
+
!b && f && z.hasPermission ? /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(
|
|
2621
2623
|
"label",
|
|
2622
2624
|
{
|
|
2623
2625
|
className: "topbar-search-label",
|
|
@@ -2640,7 +2642,7 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2640
2642
|
}
|
|
2641
2643
|
) })
|
|
2642
2644
|
}
|
|
2643
|
-
) }) :
|
|
2645
|
+
) }) : b && f && z.hasPermission ? /* @__PURE__ */ O(ue, { children: [
|
|
2644
2646
|
I ? null : /* @__PURE__ */ u(
|
|
2645
2647
|
"button",
|
|
2646
2648
|
{
|
|
@@ -2756,7 +2758,7 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2756
2758
|
}
|
|
2757
2759
|
)
|
|
2758
2760
|
] }) }),
|
|
2759
|
-
|
|
2761
|
+
b && /* @__PURE__ */ u(
|
|
2760
2762
|
vr,
|
|
2761
2763
|
{
|
|
2762
2764
|
primaryColor: c == null ? void 0 : c.headerTextColor,
|
|
@@ -2764,7 +2766,7 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2764
2766
|
setShowConfirmModal: g
|
|
2765
2767
|
}
|
|
2766
2768
|
),
|
|
2767
|
-
!
|
|
2769
|
+
!b && /* @__PURE__ */ O(ue, { children: [
|
|
2768
2770
|
/* @__PURE__ */ u(hs, {}),
|
|
2769
2771
|
/* @__PURE__ */ O("div", { className: "userContainer", children: [
|
|
2770
2772
|
/* @__PURE__ */ u(
|
|
@@ -2812,7 +2814,7 @@ function fs({ classNames: e = "", ...t }) {
|
|
|
2812
2814
|
/* @__PURE__ */ u(
|
|
2813
2815
|
Mi,
|
|
2814
2816
|
{
|
|
2815
|
-
isOpen:
|
|
2817
|
+
isOpen: v,
|
|
2816
2818
|
onClose: () => g(!1),
|
|
2817
2819
|
onConfirm: d
|
|
2818
2820
|
}
|
|
@@ -2832,7 +2834,7 @@ function hs() {
|
|
|
2832
2834
|
value: er.de,
|
|
2833
2835
|
element: /* @__PURE__ */ u(Ci, {})
|
|
2834
2836
|
}
|
|
2835
|
-
], [t, n] =
|
|
2837
|
+
], [t, n] = R(!1), [r, o] = R(
|
|
2836
2838
|
new Array(e.length).fill(!1)
|
|
2837
2839
|
), { language: i, setLanguage: a } = Ti();
|
|
2838
2840
|
X(() => {
|
|
@@ -2869,9 +2871,9 @@ function vr({
|
|
|
2869
2871
|
avatarUrl: e,
|
|
2870
2872
|
userName: t
|
|
2871
2873
|
}) {
|
|
2872
|
-
const [n, r] =
|
|
2874
|
+
const [n, r] = R(!1), o = pe(null);
|
|
2873
2875
|
pe(null);
|
|
2874
|
-
const [i, a] =
|
|
2876
|
+
const [i, a] = R(!1), [c, l] = R(!1);
|
|
2875
2877
|
return X(() => {
|
|
2876
2878
|
Rn({
|
|
2877
2879
|
childrenClass: "userAvatar",
|
|
@@ -3248,7 +3250,7 @@ function ms() {
|
|
|
3248
3250
|
var ps = typeof Tt == "object" && Tt && Tt.Object === Object && Tt, gs = typeof self == "object" && self && self.Object === Object && self;
|
|
3249
3251
|
ps || gs || Function("return this")();
|
|
3250
3252
|
function ys(e) {
|
|
3251
|
-
const [t, n] =
|
|
3253
|
+
const [t, n] = R(!!e), r = dt(() => {
|
|
3252
3254
|
n(!0);
|
|
3253
3255
|
}, []), o = dt(() => {
|
|
3254
3256
|
n(!1);
|
|
@@ -3430,7 +3432,7 @@ function xs() {
|
|
|
3430
3432
|
if (xr)
|
|
3431
3433
|
return Y;
|
|
3432
3434
|
xr = 1;
|
|
3433
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"),
|
|
3435
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), v = Symbol.for("react.client.reference");
|
|
3434
3436
|
function g(s) {
|
|
3435
3437
|
if (typeof s == "object" && s !== null) {
|
|
3436
3438
|
var p = s.$$typeof;
|
|
@@ -3486,7 +3488,7 @@ function xs() {
|
|
|
3486
3488
|
}, Y.isSuspenseList = function(s) {
|
|
3487
3489
|
return g(s) === f;
|
|
3488
3490
|
}, Y.isValidElementType = function(s) {
|
|
3489
|
-
return typeof s == "string" || typeof s == "function" || s === n || s === o || s === r || s === l || s === f || s === m || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === d || s.$$typeof === a || s.$$typeof === i || s.$$typeof === c || s.$$typeof ===
|
|
3491
|
+
return typeof s == "string" || typeof s == "function" || s === n || s === o || s === r || s === l || s === f || s === m || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === d || s.$$typeof === a || s.$$typeof === i || s.$$typeof === c || s.$$typeof === v || s.getModuleId !== void 0);
|
|
3490
3492
|
}, Y.typeOf = g, Y;
|
|
3491
3493
|
}
|
|
3492
3494
|
var q = {};
|
|
@@ -3532,7 +3534,7 @@ function Ss() {
|
|
|
3532
3534
|
}
|
|
3533
3535
|
}
|
|
3534
3536
|
}
|
|
3535
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"),
|
|
3537
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), g = Symbol.for("react.client.reference");
|
|
3536
3538
|
q.ContextConsumer = a, q.ContextProvider = c, q.Element = t, q.ForwardRef = l, q.Fragment = r, q.Lazy = m, q.Memo = h, q.Portal = n, q.Profiler = i, q.StrictMode = o, q.Suspense = f, q.SuspenseList = d, q.isContextConsumer = function(s) {
|
|
3537
3539
|
return e(s) === a;
|
|
3538
3540
|
}, q.isContextProvider = function(s) {
|
|
@@ -3558,7 +3560,7 @@ function Ss() {
|
|
|
3558
3560
|
}, q.isSuspenseList = function(s) {
|
|
3559
3561
|
return e(s) === d;
|
|
3560
3562
|
}, q.isValidElementType = function(s) {
|
|
3561
|
-
return typeof s == "string" || typeof s == "function" || s === r || s === i || s === o || s === f || s === d || s ===
|
|
3563
|
+
return typeof s == "string" || typeof s == "function" || s === r || s === i || s === o || s === f || s === d || s === v || typeof s == "object" && s !== null && (s.$$typeof === m || s.$$typeof === h || s.$$typeof === c || s.$$typeof === a || s.$$typeof === l || s.$$typeof === g || s.getModuleId !== void 0);
|
|
3562
3564
|
}, q.typeOf = e;
|
|
3563
3565
|
}()), q;
|
|
3564
3566
|
}
|
|
@@ -3653,9 +3655,9 @@ function As(e, t) {
|
|
|
3653
3655
|
return (o) => (i, a, c, l, f, ...d) => {
|
|
3654
3656
|
const h = f || a, m = n == null ? void 0 : n[h];
|
|
3655
3657
|
if (m) {
|
|
3656
|
-
const
|
|
3657
|
-
if (
|
|
3658
|
-
return
|
|
3658
|
+
const v = m(i, a, c, l, f, ...d);
|
|
3659
|
+
if (v)
|
|
3660
|
+
return v;
|
|
3659
3661
|
}
|
|
3660
3662
|
return typeof i[a] < "u" && !i[o] ? new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null;
|
|
3661
3663
|
};
|
|
@@ -3884,7 +3886,7 @@ const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3884
3886
|
__proto__: null,
|
|
3885
3887
|
default: Xs
|
|
3886
3888
|
}, Symbol.toStringTag, { value: "Module" })), Js = /* @__PURE__ */ N.createContext(void 0);
|
|
3887
|
-
process.env.NODE_ENV !== "production" && (
|
|
3889
|
+
process.env.NODE_ENV !== "production" && (P.node, P.object);
|
|
3888
3890
|
function Qs(e) {
|
|
3889
3891
|
const {
|
|
3890
3892
|
theme: t,
|
|
@@ -3909,7 +3911,7 @@ function ec({
|
|
|
3909
3911
|
}
|
|
3910
3912
|
});
|
|
3911
3913
|
}
|
|
3912
|
-
process.env.NODE_ENV !== "production" && (
|
|
3914
|
+
process.env.NODE_ENV !== "production" && (P.node, P.object.isRequired);
|
|
3913
3915
|
function tc(e) {
|
|
3914
3916
|
return ec(e);
|
|
3915
3917
|
}
|
|
@@ -4107,11 +4109,11 @@ function xc(e) {
|
|
|
4107
4109
|
return jo(Pt("", null, null, null, [""], e = Fo(e), 0, [0], e));
|
|
4108
4110
|
}
|
|
4109
4111
|
function Pt(e, t, n, r, o, i, a, c, l) {
|
|
4110
|
-
for (var f = 0, d = 0, h = a, m = 0,
|
|
4112
|
+
for (var f = 0, d = 0, h = a, m = 0, v = 0, g = 0, s = 1, p = 1, b = 1, w = 0, S = "", E = o, y = i, x = r, _ = S; p; )
|
|
4111
4113
|
switch (g = w, w = ge()) {
|
|
4112
4114
|
case 40:
|
|
4113
4115
|
if (g != 108 && se(_, h - 1) == 58) {
|
|
4114
|
-
In(_ += B(Rt(w), "&", "&\f"), "&\f") != -1 && (
|
|
4116
|
+
In(_ += B(Rt(w), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
4115
4117
|
break;
|
|
4116
4118
|
}
|
|
4117
4119
|
case 34:
|
|
@@ -4139,7 +4141,7 @@ function Pt(e, t, n, r, o, i, a, c, l) {
|
|
|
4139
4141
|
}
|
|
4140
4142
|
break;
|
|
4141
4143
|
case 123 * s:
|
|
4142
|
-
c[f++] = Te(_) *
|
|
4144
|
+
c[f++] = Te(_) * b;
|
|
4143
4145
|
case 125 * s:
|
|
4144
4146
|
case 59:
|
|
4145
4147
|
case 0:
|
|
@@ -4148,30 +4150,30 @@ function Pt(e, t, n, r, o, i, a, c, l) {
|
|
|
4148
4150
|
case 125:
|
|
4149
4151
|
p = 0;
|
|
4150
4152
|
case 59 + d:
|
|
4151
|
-
|
|
4153
|
+
b == -1 && (_ = B(_, /\f/g, "")), v > 0 && Te(_) - h && Mt(v > 32 ? Mr(_ + ";", r, n, h - 1) : Mr(B(_, " ", "") + ";", r, n, h - 2), l);
|
|
4152
4154
|
break;
|
|
4153
4155
|
case 59:
|
|
4154
4156
|
_ += ";";
|
|
4155
4157
|
default:
|
|
4156
|
-
if (Mt(
|
|
4158
|
+
if (Mt(x = Ir(_, t, n, f, d, o, c, S, E = [], y = [], h), i), w === 123)
|
|
4157
4159
|
if (d === 0)
|
|
4158
|
-
Pt(_, t,
|
|
4160
|
+
Pt(_, t, x, x, E, i, h, c, y);
|
|
4159
4161
|
else
|
|
4160
4162
|
switch (m === 99 && se(_, 3) === 110 ? 100 : m) {
|
|
4161
4163
|
case 100:
|
|
4162
4164
|
case 108:
|
|
4163
4165
|
case 109:
|
|
4164
4166
|
case 115:
|
|
4165
|
-
Pt(e,
|
|
4167
|
+
Pt(e, x, x, r && Mt(Ir(e, x, x, 0, 0, o, c, S, o, E = [], h), y), o, y, h, c, r ? E : y);
|
|
4166
4168
|
break;
|
|
4167
4169
|
default:
|
|
4168
|
-
Pt(_,
|
|
4170
|
+
Pt(_, x, x, x, [""], y, 0, c, y);
|
|
4169
4171
|
}
|
|
4170
4172
|
}
|
|
4171
|
-
f = d =
|
|
4173
|
+
f = d = v = 0, s = b = 1, S = _ = "", h = a;
|
|
4172
4174
|
break;
|
|
4173
4175
|
case 58:
|
|
4174
|
-
h = 1 + Te(_),
|
|
4176
|
+
h = 1 + Te(_), v = g;
|
|
4175
4177
|
default:
|
|
4176
4178
|
if (s < 1) {
|
|
4177
4179
|
if (w == 123)
|
|
@@ -4181,13 +4183,13 @@ function Pt(e, t, n, r, o, i, a, c, l) {
|
|
|
4181
4183
|
}
|
|
4182
4184
|
switch (_ += Ut(w), w * s) {
|
|
4183
4185
|
case 38:
|
|
4184
|
-
|
|
4186
|
+
b = d > 0 ? 1 : (_ += "\f", -1);
|
|
4185
4187
|
break;
|
|
4186
4188
|
case 44:
|
|
4187
|
-
c[f++] = (Te(_) - 1) *
|
|
4189
|
+
c[f++] = (Te(_) - 1) * b, b = 1;
|
|
4188
4190
|
break;
|
|
4189
4191
|
case 64:
|
|
4190
|
-
$e() === 45 && (_ += Rt(ge())), m = $e(), d = h = Te(
|
|
4192
|
+
$e() === 45 && (_ += Rt(ge())), m = $e(), d = h = Te(S = _ += vc(Nt())), w++;
|
|
4191
4193
|
break;
|
|
4192
4194
|
case 45:
|
|
4193
4195
|
g === 45 && Te(_) == 2 && (s = 0);
|
|
@@ -4196,9 +4198,9 @@ function Pt(e, t, n, r, o, i, a, c, l) {
|
|
|
4196
4198
|
return i;
|
|
4197
4199
|
}
|
|
4198
4200
|
function Ir(e, t, n, r, o, i, a, c, l, f, d) {
|
|
4199
|
-
for (var h = o - 1, m = o === 0 ? i : [""],
|
|
4200
|
-
for (var
|
|
4201
|
-
(
|
|
4201
|
+
for (var h = o - 1, m = o === 0 ? i : [""], v = Bn(m), g = 0, s = 0, p = 0; g < r; ++g)
|
|
4202
|
+
for (var b = 0, w = pt(e, h + 1, h = lc(s = a[g])), S = e; b < v; ++b)
|
|
4203
|
+
(S = Lo(s > 0 ? m[b] + " " + w : B(w, /&\f/g, m[b]))) && (l[p++] = S);
|
|
4202
4204
|
return Gt(e, t, n, o === 0 ? jn : c, l, f, d);
|
|
4203
4205
|
}
|
|
4204
4206
|
function Sc(e, t, n) {
|
|
@@ -4456,8 +4458,8 @@ var Oc = function(t, n, r, o) {
|
|
|
4456
4458
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
4457
4459
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
4458
4460
|
function(s) {
|
|
4459
|
-
for (var p = s.getAttribute("data-emotion").split(" "),
|
|
4460
|
-
i[p[
|
|
4461
|
+
for (var p = s.getAttribute("data-emotion").split(" "), b = 1; b < p.length; b++)
|
|
4462
|
+
i[p[b]] = !0;
|
|
4461
4463
|
c.push(s);
|
|
4462
4464
|
}
|
|
4463
4465
|
);
|
|
@@ -4465,11 +4467,11 @@ var Oc = function(t, n, r, o) {
|
|
|
4465
4467
|
{
|
|
4466
4468
|
var d, h = [wc, Ec(function(s) {
|
|
4467
4469
|
d.insert(s);
|
|
4468
|
-
})], m = _c(f.concat(o, h)),
|
|
4470
|
+
})], m = _c(f.concat(o, h)), v = function(p) {
|
|
4469
4471
|
return et(xc(p), m);
|
|
4470
4472
|
};
|
|
4471
|
-
l = function(p,
|
|
4472
|
-
d = w,
|
|
4473
|
+
l = function(p, b, w, S) {
|
|
4474
|
+
d = w, v(p ? p + "{" + b.styles + "}" : b.styles), S && (g.inserted[b.name] = !0);
|
|
4473
4475
|
};
|
|
4474
4476
|
}
|
|
4475
4477
|
var g = {
|
|
@@ -4502,11 +4504,11 @@ function $c() {
|
|
|
4502
4504
|
if (Or)
|
|
4503
4505
|
return V;
|
|
4504
4506
|
Or = 1;
|
|
4505
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120,
|
|
4506
|
-
function
|
|
4507
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, p = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
4508
|
+
function S(y) {
|
|
4507
4509
|
if (typeof y == "object" && y !== null) {
|
|
4508
|
-
var
|
|
4509
|
-
switch (
|
|
4510
|
+
var x = y.$$typeof;
|
|
4511
|
+
switch (x) {
|
|
4510
4512
|
case t:
|
|
4511
4513
|
switch (y = y.type, y) {
|
|
4512
4514
|
case l:
|
|
@@ -4521,48 +4523,48 @@ function $c() {
|
|
|
4521
4523
|
case c:
|
|
4522
4524
|
case d:
|
|
4523
4525
|
case g:
|
|
4524
|
-
case
|
|
4526
|
+
case v:
|
|
4525
4527
|
case a:
|
|
4526
4528
|
return y;
|
|
4527
4529
|
default:
|
|
4528
|
-
return
|
|
4530
|
+
return x;
|
|
4529
4531
|
}
|
|
4530
4532
|
}
|
|
4531
4533
|
case n:
|
|
4532
|
-
return
|
|
4534
|
+
return x;
|
|
4533
4535
|
}
|
|
4534
4536
|
}
|
|
4535
4537
|
}
|
|
4536
4538
|
function E(y) {
|
|
4537
|
-
return
|
|
4539
|
+
return S(y) === f;
|
|
4538
4540
|
}
|
|
4539
|
-
return V.AsyncMode = l, V.ConcurrentMode = f, V.ContextConsumer = c, V.ContextProvider = a, V.Element = t, V.ForwardRef = d, V.Fragment = r, V.Lazy = g, V.Memo =
|
|
4540
|
-
return E(y) ||
|
|
4541
|
+
return V.AsyncMode = l, V.ConcurrentMode = f, V.ContextConsumer = c, V.ContextProvider = a, V.Element = t, V.ForwardRef = d, V.Fragment = r, V.Lazy = g, V.Memo = v, V.Portal = n, V.Profiler = i, V.StrictMode = o, V.Suspense = h, V.isAsyncMode = function(y) {
|
|
4542
|
+
return E(y) || S(y) === l;
|
|
4541
4543
|
}, V.isConcurrentMode = E, V.isContextConsumer = function(y) {
|
|
4542
|
-
return
|
|
4544
|
+
return S(y) === c;
|
|
4543
4545
|
}, V.isContextProvider = function(y) {
|
|
4544
|
-
return
|
|
4546
|
+
return S(y) === a;
|
|
4545
4547
|
}, V.isElement = function(y) {
|
|
4546
4548
|
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
4547
4549
|
}, V.isForwardRef = function(y) {
|
|
4548
|
-
return
|
|
4550
|
+
return S(y) === d;
|
|
4549
4551
|
}, V.isFragment = function(y) {
|
|
4550
|
-
return
|
|
4552
|
+
return S(y) === r;
|
|
4551
4553
|
}, V.isLazy = function(y) {
|
|
4552
|
-
return
|
|
4554
|
+
return S(y) === g;
|
|
4553
4555
|
}, V.isMemo = function(y) {
|
|
4554
|
-
return
|
|
4556
|
+
return S(y) === v;
|
|
4555
4557
|
}, V.isPortal = function(y) {
|
|
4556
|
-
return
|
|
4558
|
+
return S(y) === n;
|
|
4557
4559
|
}, V.isProfiler = function(y) {
|
|
4558
|
-
return
|
|
4560
|
+
return S(y) === i;
|
|
4559
4561
|
}, V.isStrictMode = function(y) {
|
|
4560
|
-
return
|
|
4562
|
+
return S(y) === o;
|
|
4561
4563
|
}, V.isSuspense = function(y) {
|
|
4562
|
-
return
|
|
4564
|
+
return S(y) === h;
|
|
4563
4565
|
}, V.isValidElementType = function(y) {
|
|
4564
|
-
return typeof y == "string" || typeof y == "function" || y === r || y === f || y === i || y === o || y === h || y === m || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof ===
|
|
4565
|
-
}, V.typeOf =
|
|
4566
|
+
return typeof y == "string" || typeof y == "function" || y === r || y === f || y === i || y === o || y === h || y === m || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === v || y.$$typeof === a || y.$$typeof === c || y.$$typeof === d || y.$$typeof === p || y.$$typeof === b || y.$$typeof === w || y.$$typeof === s);
|
|
4567
|
+
}, V.typeOf = S, V;
|
|
4566
4568
|
}
|
|
4567
4569
|
var U = {};
|
|
4568
4570
|
/** @license React v16.13.1
|
|
@@ -4576,10 +4578,10 @@ var U = {};
|
|
|
4576
4578
|
var Ar;
|
|
4577
4579
|
function Nc() {
|
|
4578
4580
|
return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4579
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120,
|
|
4580
|
-
function
|
|
4581
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, p = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
4582
|
+
function S(C) {
|
|
4581
4583
|
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4582
|
-
C === r || C === f || C === i || C === o || C === h || C === m || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof ===
|
|
4584
|
+
C === r || C === f || C === i || C === o || C === h || C === m || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === v || C.$$typeof === a || C.$$typeof === c || C.$$typeof === d || C.$$typeof === p || C.$$typeof === b || C.$$typeof === w || C.$$typeof === s);
|
|
4583
4585
|
}
|
|
4584
4586
|
function E(C) {
|
|
4585
4587
|
if (typeof C == "object" && C !== null) {
|
|
@@ -4601,7 +4603,7 @@ function Nc() {
|
|
|
4601
4603
|
case c:
|
|
4602
4604
|
case d:
|
|
4603
4605
|
case g:
|
|
4604
|
-
case
|
|
4606
|
+
case v:
|
|
4605
4607
|
case a:
|
|
4606
4608
|
return Ke;
|
|
4607
4609
|
default:
|
|
@@ -4613,7 +4615,7 @@ function Nc() {
|
|
|
4613
4615
|
}
|
|
4614
4616
|
}
|
|
4615
4617
|
}
|
|
4616
|
-
var y = l,
|
|
4618
|
+
var y = l, x = f, _ = c, M = a, I = t, D = d, T = r, z = g, K = v, W = n, ie = i, ce = o, ye = h, $ = !1;
|
|
4617
4619
|
function L(C) {
|
|
4618
4620
|
return $ || ($ = !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.")), k(C) || E(C) === l;
|
|
4619
4621
|
}
|
|
@@ -4639,7 +4641,7 @@ function Nc() {
|
|
|
4639
4641
|
return E(C) === g;
|
|
4640
4642
|
}
|
|
4641
4643
|
function Et(C) {
|
|
4642
|
-
return E(C) ===
|
|
4644
|
+
return E(C) === v;
|
|
4643
4645
|
}
|
|
4644
4646
|
function an(C) {
|
|
4645
4647
|
return E(C) === n;
|
|
@@ -4653,7 +4655,7 @@ function Nc() {
|
|
|
4653
4655
|
function j(C) {
|
|
4654
4656
|
return E(C) === h;
|
|
4655
4657
|
}
|
|
4656
|
-
U.AsyncMode = y, U.ConcurrentMode =
|
|
4658
|
+
U.AsyncMode = y, U.ConcurrentMode = x, U.ContextConsumer = _, U.ContextProvider = M, U.Element = I, U.ForwardRef = D, U.Fragment = T, U.Lazy = z, U.Memo = K, U.Portal = W, U.Profiler = ie, U.StrictMode = ce, U.Suspense = ye, U.isAsyncMode = L, U.isConcurrentMode = k, U.isContextConsumer = F, U.isContextProvider = Z, U.isElement = ae, U.isForwardRef = re, U.isFragment = Ee, U.isLazy = ct, U.isMemo = Et, U.isPortal = an, U.isProfiler = Ue, U.isStrictMode = Ct, U.isSuspense = j, U.isValidElementType = S, U.typeOf = E;
|
|
4657
4659
|
}()), U;
|
|
4658
4660
|
}
|
|
4659
4661
|
process.env.NODE_ENV === "production" ? kn.exports = $c() : kn.exports = Nc();
|
|
@@ -5028,36 +5030,36 @@ var Zc = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
5028
5030
|
else {
|
|
5029
5031
|
var m = d[0];
|
|
5030
5032
|
h.push(m[0]);
|
|
5031
|
-
for (var
|
|
5033
|
+
for (var v = d.length, g = 1; g < v; g++)
|
|
5032
5034
|
h.push(d[g], m[g]);
|
|
5033
5035
|
}
|
|
5034
|
-
var s = Un(function(p,
|
|
5035
|
-
var
|
|
5036
|
+
var s = Un(function(p, b, w) {
|
|
5037
|
+
var S = f && p.as || o, E = "", y = [], x = p;
|
|
5036
5038
|
if (p.theme == null) {
|
|
5037
|
-
|
|
5039
|
+
x = {};
|
|
5038
5040
|
for (var _ in p)
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
+
x[_] = p[_];
|
|
5042
|
+
x.theme = N.useContext(qt);
|
|
5041
5043
|
}
|
|
5042
|
-
typeof p.className == "string" ? E = Ko(
|
|
5043
|
-
var M = Yt(h.concat(y),
|
|
5044
|
-
E +=
|
|
5045
|
-
var I = f && c === void 0 ? Lr(
|
|
5044
|
+
typeof p.className == "string" ? E = Ko(b.registered, y, p.className) : p.className != null && (E = p.className + " ");
|
|
5045
|
+
var M = Yt(h.concat(y), b.registered, x);
|
|
5046
|
+
E += b.key + "-" + M.name, a !== void 0 && (E += " " + a);
|
|
5047
|
+
var I = f && c === void 0 ? Lr(S) : l, D = {};
|
|
5046
5048
|
for (var T in p)
|
|
5047
5049
|
f && T === "as" || I(T) && (D[T] = p[T]);
|
|
5048
5050
|
return D.className = E, w && (D.ref = w), /* @__PURE__ */ N.createElement(N.Fragment, null, /* @__PURE__ */ N.createElement(tl, {
|
|
5049
|
-
cache:
|
|
5051
|
+
cache: b,
|
|
5050
5052
|
serialized: M,
|
|
5051
|
-
isStringTag: typeof
|
|
5052
|
-
}), /* @__PURE__ */ N.createElement(
|
|
5053
|
+
isStringTag: typeof S == "string"
|
|
5054
|
+
}), /* @__PURE__ */ N.createElement(S, D));
|
|
5053
5055
|
});
|
|
5054
5056
|
return s.displayName = i !== void 0 ? i : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", s.defaultProps = t.defaultProps, s.__emotion_real = s, s.__emotion_base = o, s.__emotion_styles = h, s.__emotion_forwardProp = c, Object.defineProperty(s, "toString", {
|
|
5055
5057
|
value: function() {
|
|
5056
5058
|
return "." + a;
|
|
5057
5059
|
}
|
|
5058
|
-
}), s.withComponent = function(p,
|
|
5059
|
-
var w = e(p, G({}, n,
|
|
5060
|
-
shouldForwardProp: Dr(s,
|
|
5060
|
+
}), s.withComponent = function(p, b) {
|
|
5061
|
+
var w = e(p, G({}, n, b, {
|
|
5062
|
+
shouldForwardProp: Dr(s, b, !0)
|
|
5061
5063
|
}));
|
|
5062
5064
|
return w.apply(void 0, h);
|
|
5063
5065
|
}, s;
|
|
@@ -5221,13 +5223,13 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
|
|
|
5221
5223
|
/**
|
|
5222
5224
|
* Your component tree.
|
|
5223
5225
|
*/
|
|
5224
|
-
children:
|
|
5226
|
+
children: P.node,
|
|
5225
5227
|
/**
|
|
5226
5228
|
* By default, the styles are injected last in the <head> element of the page.
|
|
5227
5229
|
* As a result, they gain more specificity than any other style sheet.
|
|
5228
5230
|
* If you want to override MUI's styles, set this prop.
|
|
5229
5231
|
*/
|
|
5230
|
-
injectFirst:
|
|
5232
|
+
injectFirst: P.bool
|
|
5231
5233
|
});
|
|
5232
5234
|
function ol(e) {
|
|
5233
5235
|
return e == null || Object.keys(e).length === 0;
|
|
@@ -5242,8 +5244,8 @@ function Qo(e) {
|
|
|
5242
5244
|
});
|
|
5243
5245
|
}
|
|
5244
5246
|
process.env.NODE_ENV !== "production" && (Qo.propTypes = {
|
|
5245
|
-
defaultTheme:
|
|
5246
|
-
styles:
|
|
5247
|
+
defaultTheme: P.object,
|
|
5248
|
+
styles: P.oneOfType([P.array, P.string, P.object, P.func])
|
|
5247
5249
|
});
|
|
5248
5250
|
/**
|
|
5249
5251
|
* @mui/styled-engine v5.16.14
|
|
@@ -5305,16 +5307,16 @@ function ei(e) {
|
|
|
5305
5307
|
function l(m) {
|
|
5306
5308
|
return `@media (max-width:${(typeof t[m] == "number" ? t[m] : m) - r / 100}${n})`;
|
|
5307
5309
|
}
|
|
5308
|
-
function f(m,
|
|
5309
|
-
const g = a.indexOf(
|
|
5310
|
-
return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${n}) and (max-width:${(g !== -1 && typeof t[a[g]] == "number" ? t[a[g]] :
|
|
5310
|
+
function f(m, v) {
|
|
5311
|
+
const g = a.indexOf(v);
|
|
5312
|
+
return `@media (min-width:${typeof t[m] == "number" ? t[m] : m}${n}) and (max-width:${(g !== -1 && typeof t[a[g]] == "number" ? t[a[g]] : v) - r / 100}${n})`;
|
|
5311
5313
|
}
|
|
5312
5314
|
function d(m) {
|
|
5313
5315
|
return a.indexOf(m) + 1 < a.length ? f(m, a[a.indexOf(m) + 1]) : c(m);
|
|
5314
5316
|
}
|
|
5315
5317
|
function h(m) {
|
|
5316
|
-
const
|
|
5317
|
-
return
|
|
5318
|
+
const v = a.indexOf(m);
|
|
5319
|
+
return v === 0 ? c(a[1]) : v === a.length - 1 ? l(a[v]) : f(m, a[a.indexOf(m) + 1]).replace("@media", "@media not all and");
|
|
5318
5320
|
}
|
|
5319
5321
|
return G({
|
|
5320
5322
|
keys: a,
|
|
@@ -5329,7 +5331,7 @@ function ei(e) {
|
|
|
5329
5331
|
}
|
|
5330
5332
|
const ml = {
|
|
5331
5333
|
borderRadius: 4
|
|
5332
|
-
}, He = process.env.NODE_ENV !== "production" ?
|
|
5334
|
+
}, He = process.env.NODE_ENV !== "production" ? P.oneOfType([P.number, P.string, P.object, P.array]) : {};
|
|
5333
5335
|
function ft(e, t) {
|
|
5334
5336
|
return t ? Ae(e, t, {
|
|
5335
5337
|
clone: !1
|
|
@@ -6002,25 +6004,25 @@ function ri() {
|
|
|
6002
6004
|
return null;
|
|
6003
6005
|
const d = pl(i.breakpoints), h = Object.keys(d);
|
|
6004
6006
|
let m = d;
|
|
6005
|
-
return Object.keys(f).forEach((
|
|
6006
|
-
const g = n0(f[
|
|
6007
|
+
return Object.keys(f).forEach((v) => {
|
|
6008
|
+
const g = n0(f[v], i);
|
|
6007
6009
|
if (g != null)
|
|
6008
6010
|
if (typeof g == "object")
|
|
6009
|
-
if (a[
|
|
6010
|
-
m = ft(m, e(
|
|
6011
|
+
if (a[v])
|
|
6012
|
+
m = ft(m, e(v, g, i, a));
|
|
6011
6013
|
else {
|
|
6012
6014
|
const s = Re({
|
|
6013
6015
|
theme: i
|
|
6014
6016
|
}, g, (p) => ({
|
|
6015
|
-
[
|
|
6017
|
+
[v]: p
|
|
6016
6018
|
}));
|
|
6017
|
-
t0(s, g) ? m[
|
|
6019
|
+
t0(s, g) ? m[v] = t({
|
|
6018
6020
|
sx: g,
|
|
6019
6021
|
theme: i
|
|
6020
6022
|
}) : m = ft(m, s);
|
|
6021
6023
|
}
|
|
6022
6024
|
else
|
|
6023
|
-
m = ft(m, e(
|
|
6025
|
+
m = ft(m, e(v, g, i, a));
|
|
6024
6026
|
}), gl(h, m);
|
|
6025
6027
|
}
|
|
6026
6028
|
return Array.isArray(o) ? o.map(c) : c(o);
|
|
@@ -6196,7 +6198,7 @@ function C0(e = {}) {
|
|
|
6196
6198
|
}))
|
|
6197
6199
|
}));
|
|
6198
6200
|
return i.__mui_systemSx = !0, (a, c = {}) => {
|
|
6199
|
-
(0, Hr.internal_processStyles)(a, (y) => y.filter((
|
|
6201
|
+
(0, Hr.internal_processStyles)(a, (y) => y.filter((x) => !(x != null && x.__mui_systemSx)));
|
|
6200
6202
|
const {
|
|
6201
6203
|
name: l,
|
|
6202
6204
|
slot: f,
|
|
@@ -6205,27 +6207,27 @@ function C0(e = {}) {
|
|
|
6205
6207
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
6206
6208
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
6207
6209
|
overridesResolver: m = E0(Br(f))
|
|
6208
|
-
} = c,
|
|
6210
|
+
} = c, v = (0, Nn.default)(c, v0), g = d !== void 0 ? d : (
|
|
6209
6211
|
// TODO v6: remove `Root` in the next major release
|
|
6210
6212
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
6211
6213
|
f && f !== "Root" && f !== "root" || !1
|
|
6212
6214
|
), s = h || !1;
|
|
6213
6215
|
let p;
|
|
6214
6216
|
process.env.NODE_ENV !== "production" && l && (p = `${l}-${Br(f || "Root")}`);
|
|
6215
|
-
let
|
|
6216
|
-
f === "Root" || f === "root" ?
|
|
6217
|
+
let b = zt;
|
|
6218
|
+
f === "Root" || f === "root" ? b = r : f ? b = o : w0(a) && (b = void 0);
|
|
6217
6219
|
const w = (0, Hr.default)(a, (0, be.default)({
|
|
6218
|
-
shouldForwardProp:
|
|
6220
|
+
shouldForwardProp: b,
|
|
6219
6221
|
label: p
|
|
6220
|
-
},
|
|
6222
|
+
}, v)), S = (y) => typeof y == "function" && y.__emotion_real !== y || (0, f0.isPlainObject)(y) ? (x) => Lt(y, (0, be.default)({}, x, {
|
|
6221
6223
|
theme: kt({
|
|
6222
|
-
theme:
|
|
6224
|
+
theme: x.theme,
|
|
6223
6225
|
defaultTheme: n,
|
|
6224
6226
|
themeId: t
|
|
6225
6227
|
})
|
|
6226
|
-
})) : y, E = (y, ...
|
|
6227
|
-
let _ =
|
|
6228
|
-
const M =
|
|
6228
|
+
})) : y, E = (y, ...x) => {
|
|
6229
|
+
let _ = S(y);
|
|
6230
|
+
const M = x ? x.map(S) : [];
|
|
6229
6231
|
l && m && M.push((T) => {
|
|
6230
6232
|
const z = kt((0, be.default)({}, T, {
|
|
6231
6233
|
defaultTheme: n,
|
|
@@ -6251,7 +6253,7 @@ function C0(e = {}) {
|
|
|
6251
6253
|
theme: K
|
|
6252
6254
|
}));
|
|
6253
6255
|
}), s || M.push(i);
|
|
6254
|
-
const I = M.length -
|
|
6256
|
+
const I = M.length - x.length;
|
|
6255
6257
|
if (Array.isArray(y) && I > 0) {
|
|
6256
6258
|
const T = new Array(I).fill("");
|
|
6257
6259
|
_ = [...y, ...T], _.raw = [...y.raw, ...T];
|
|
@@ -6652,8 +6654,8 @@ function q0(e) {
|
|
|
6652
6654
|
function h(s) {
|
|
6653
6655
|
const p = Wr(s, mn.text.primary) >= n ? mn.text.primary : Ur.text.primary;
|
|
6654
6656
|
if (process.env.NODE_ENV !== "production") {
|
|
6655
|
-
const
|
|
6656
|
-
|
|
6657
|
+
const b = Wr(s, p);
|
|
6658
|
+
b < 3 && console.error([`MUI: The contrast ratio of ${b}:1 for ${p} on ${s}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
6657
6659
|
`));
|
|
6658
6660
|
}
|
|
6659
6661
|
return p;
|
|
@@ -6661,13 +6663,13 @@ function q0(e) {
|
|
|
6661
6663
|
const m = ({
|
|
6662
6664
|
color: s,
|
|
6663
6665
|
name: p,
|
|
6664
|
-
mainShade:
|
|
6666
|
+
mainShade: b = 500,
|
|
6665
6667
|
lightShade: w = 300,
|
|
6666
|
-
darkShade:
|
|
6668
|
+
darkShade: S = 700
|
|
6667
6669
|
}) => {
|
|
6668
|
-
if (s = G({}, s), !s.main && s[
|
|
6670
|
+
if (s = G({}, s), !s.main && s[b] && (s.main = s[b]), !s.hasOwnProperty("main"))
|
|
6669
6671
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${p ? ` (${p})` : ""} provided to augmentColor(color) is invalid.
|
|
6670
|
-
The color object needs to have a \`main\` property or a \`${
|
|
6672
|
+
The color object needs to have a \`main\` property or a \`${b}\` property.` : mt(11, p ? ` (${p})` : "", b));
|
|
6671
6673
|
if (typeof s.main != "string")
|
|
6672
6674
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${p ? ` (${p})` : ""} provided to augmentColor(color) is invalid.
|
|
6673
6675
|
\`color.main\` should be a string, but \`${JSON.stringify(s.main)}\` was provided instead.
|
|
@@ -6683,12 +6685,12 @@ const theme1 = createTheme({ palette: {
|
|
|
6683
6685
|
const theme2 = createTheme({ palette: {
|
|
6684
6686
|
primary: { main: green[500] },
|
|
6685
6687
|
} });` : mt(12, p ? ` (${p})` : "", JSON.stringify(s.main)));
|
|
6686
|
-
return Kr(s, "light", w, r), Kr(s, "dark",
|
|
6687
|
-
},
|
|
6688
|
+
return Kr(s, "light", w, r), Kr(s, "dark", S, r), s.contrastText || (s.contrastText = h(s.main)), s;
|
|
6689
|
+
}, v = {
|
|
6688
6690
|
dark: mn,
|
|
6689
6691
|
light: Ur
|
|
6690
6692
|
};
|
|
6691
|
-
return process.env.NODE_ENV !== "production" && (
|
|
6693
|
+
return process.env.NODE_ENV !== "production" && (v[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Ae(G({
|
|
6692
6694
|
// A collection of common colors.
|
|
6693
6695
|
common: G({}, bt),
|
|
6694
6696
|
// prevent mutable object.
|
|
@@ -6740,7 +6742,7 @@ const theme2 = createTheme({ palette: {
|
|
|
6740
6742
|
// two indexes within its tonal palette.
|
|
6741
6743
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
6742
6744
|
tonalOffset: r
|
|
6743
|
-
},
|
|
6745
|
+
}, v[t]), o);
|
|
6744
6746
|
}
|
|
6745
6747
|
const X0 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
6746
6748
|
function Z0(e) {
|
|
@@ -6767,12 +6769,12 @@ function J0(e, t) {
|
|
|
6767
6769
|
pxToRem: h
|
|
6768
6770
|
} = n, m = Fe(n, X0);
|
|
6769
6771
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
6770
|
-
const
|
|
6772
|
+
const v = o / 14, g = h || ((b) => `${b / f * v}rem`), s = (b, w, S, E, y) => G({
|
|
6771
6773
|
fontFamily: r,
|
|
6772
|
-
fontWeight:
|
|
6774
|
+
fontWeight: b,
|
|
6773
6775
|
fontSize: g(w),
|
|
6774
6776
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
6775
|
-
lineHeight:
|
|
6777
|
+
lineHeight: S
|
|
6776
6778
|
}, r === Yr ? {
|
|
6777
6779
|
letterSpacing: `${Z0(E / w)}em`
|
|
6778
6780
|
} : {}, y, d), p = {
|
|
@@ -6900,14 +6902,14 @@ function u1(e = {}, ...t) {
|
|
|
6900
6902
|
zIndex: G({}, c1)
|
|
6901
6903
|
});
|
|
6902
6904
|
if (f = Ae(f, a), f = t.reduce((d, h) => Ae(d, h), f), process.env.NODE_ENV !== "production") {
|
|
6903
|
-
const d = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (m,
|
|
6905
|
+
const d = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (m, v) => {
|
|
6904
6906
|
let g;
|
|
6905
6907
|
for (g in m) {
|
|
6906
6908
|
const s = m[g];
|
|
6907
6909
|
if (d.indexOf(g) !== -1 && Object.keys(s).length > 0) {
|
|
6908
6910
|
if (process.env.NODE_ENV !== "production") {
|
|
6909
6911
|
const p = Dn("", g);
|
|
6910
|
-
console.error([`MUI: The \`${
|
|
6912
|
+
console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${g}\` internal state.`, "You can not override it like this: ", JSON.stringify(m, null, 2), "", `Instead, you need to use the '&.${p}' syntax:`, JSON.stringify({
|
|
6911
6913
|
root: {
|
|
6912
6914
|
[`&.${p}`]: s
|
|
6913
6915
|
}
|
|
@@ -6919,8 +6921,8 @@ function u1(e = {}, ...t) {
|
|
|
6919
6921
|
}
|
|
6920
6922
|
};
|
|
6921
6923
|
Object.keys(f.components).forEach((m) => {
|
|
6922
|
-
const
|
|
6923
|
-
|
|
6924
|
+
const v = f.components[m].styleOverrides;
|
|
6925
|
+
v && m.indexOf("Mui") === 0 && h(v, m);
|
|
6924
6926
|
});
|
|
6925
6927
|
}
|
|
6926
6928
|
return f.unstable_sxConfig = G({}, _t, a == null ? void 0 : a.unstable_sxConfig), f.unstable_sx = function(h) {
|
|
@@ -6965,7 +6967,7 @@ const y1 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
6965
6967
|
theme: e,
|
|
6966
6968
|
ownerState: t
|
|
6967
6969
|
}) => {
|
|
6968
|
-
var n, r, o, i, a, c, l, f, d, h, m,
|
|
6970
|
+
var n, r, o, i, a, c, l, f, d, h, m, v, g;
|
|
6969
6971
|
return {
|
|
6970
6972
|
userSelect: "none",
|
|
6971
6973
|
width: "1em",
|
|
@@ -6986,7 +6988,7 @@ const y1 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
6986
6988
|
}[t.fontSize],
|
|
6987
6989
|
// TODO v5 deprecate, v6 remove for sx
|
|
6988
6990
|
color: (h = (m = (e.vars || e).palette) == null || (m = m[t.color]) == null ? void 0 : m.main) != null ? h : {
|
|
6989
|
-
action: (
|
|
6991
|
+
action: (v = (e.vars || e).palette) == null || (v = v.action) == null ? void 0 : v.active,
|
|
6990
6992
|
disabled: (g = (e.vars || e).palette) == null || (g = g.action) == null ? void 0 : g.disabled,
|
|
6991
6993
|
inherit: void 0
|
|
6992
6994
|
}[t.color]
|
|
@@ -7005,7 +7007,7 @@ const y1 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
7005
7007
|
inheritViewBox: d = !1,
|
|
7006
7008
|
titleAccess: h,
|
|
7007
7009
|
viewBox: m = "0 0 24 24"
|
|
7008
|
-
} = r,
|
|
7010
|
+
} = r, v = Fe(r, y1), g = /* @__PURE__ */ N.isValidElement(o) && o.type === "svg", s = G({}, r, {
|
|
7009
7011
|
color: a,
|
|
7010
7012
|
component: c,
|
|
7011
7013
|
fontSize: l,
|
|
@@ -7015,16 +7017,16 @@ const y1 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
7015
7017
|
hasSvgAsChild: g
|
|
7016
7018
|
}), p = {};
|
|
7017
7019
|
d || (p.viewBox = m);
|
|
7018
|
-
const
|
|
7020
|
+
const b = b1(s);
|
|
7019
7021
|
return /* @__PURE__ */ O(v1, G({
|
|
7020
7022
|
as: c,
|
|
7021
|
-
className: Ai(
|
|
7023
|
+
className: Ai(b.root, i),
|
|
7022
7024
|
focusable: "false",
|
|
7023
7025
|
color: f,
|
|
7024
7026
|
"aria-hidden": h ? void 0 : !0,
|
|
7025
7027
|
role: h ? "img" : void 0,
|
|
7026
7028
|
ref: n
|
|
7027
|
-
}, p,
|
|
7029
|
+
}, p, v, g && o.props, {
|
|
7028
7030
|
ownerState: s,
|
|
7029
7031
|
children: [g ? o.props.children : o, h ? /* @__PURE__ */ u("title", {
|
|
7030
7032
|
children: h
|
|
@@ -7039,15 +7041,15 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
7039
7041
|
/**
|
|
7040
7042
|
* Node passed into the SVG element.
|
|
7041
7043
|
*/
|
|
7042
|
-
children:
|
|
7044
|
+
children: P.node,
|
|
7043
7045
|
/**
|
|
7044
7046
|
* Override or extend the styles applied to the component.
|
|
7045
7047
|
*/
|
|
7046
|
-
classes:
|
|
7048
|
+
classes: P.object,
|
|
7047
7049
|
/**
|
|
7048
7050
|
* @ignore
|
|
7049
7051
|
*/
|
|
7050
|
-
className:
|
|
7052
|
+
className: P.string,
|
|
7051
7053
|
/**
|
|
7052
7054
|
* The color of the component.
|
|
7053
7055
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
@@ -7055,21 +7057,21 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
7055
7057
|
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
7056
7058
|
* @default 'inherit'
|
|
7057
7059
|
*/
|
|
7058
|
-
color:
|
|
7060
|
+
color: P.oneOfType([P.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), P.string]),
|
|
7059
7061
|
/**
|
|
7060
7062
|
* The component used for the root node.
|
|
7061
7063
|
* Either a string to use a HTML element or a component.
|
|
7062
7064
|
*/
|
|
7063
|
-
component:
|
|
7065
|
+
component: P.elementType,
|
|
7064
7066
|
/**
|
|
7065
7067
|
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
7066
7068
|
* @default 'medium'
|
|
7067
7069
|
*/
|
|
7068
|
-
fontSize:
|
|
7070
|
+
fontSize: P.oneOfType([P.oneOf(["inherit", "large", "medium", "small"]), P.string]),
|
|
7069
7071
|
/**
|
|
7070
7072
|
* Applies a color attribute to the SVG element.
|
|
7071
7073
|
*/
|
|
7072
|
-
htmlColor:
|
|
7074
|
+
htmlColor: P.string,
|
|
7073
7075
|
/**
|
|
7074
7076
|
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
7075
7077
|
* prop will be ignored.
|
|
@@ -7077,22 +7079,22 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
7077
7079
|
* `component`'s viewBox to the root node.
|
|
7078
7080
|
* @default false
|
|
7079
7081
|
*/
|
|
7080
|
-
inheritViewBox:
|
|
7082
|
+
inheritViewBox: P.bool,
|
|
7081
7083
|
/**
|
|
7082
7084
|
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
7083
7085
|
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
7084
7086
|
* If you are having issues with blurry icons you should investigate this prop.
|
|
7085
7087
|
*/
|
|
7086
|
-
shapeRendering:
|
|
7088
|
+
shapeRendering: P.string,
|
|
7087
7089
|
/**
|
|
7088
7090
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
7089
7091
|
*/
|
|
7090
|
-
sx:
|
|
7092
|
+
sx: P.oneOfType([P.arrayOf(P.oneOfType([P.func, P.object, P.bool])), P.func, P.object]),
|
|
7091
7093
|
/**
|
|
7092
7094
|
* Provides a human-readable title for the element that contains it.
|
|
7093
7095
|
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
7094
7096
|
*/
|
|
7095
|
-
titleAccess:
|
|
7097
|
+
titleAccess: P.string,
|
|
7096
7098
|
/**
|
|
7097
7099
|
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
7098
7100
|
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
@@ -7101,7 +7103,7 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
7101
7103
|
* to bottom right (50,20) and each unit will be worth 10px.
|
|
7102
7104
|
* @default '0 0 24 24'
|
|
7103
7105
|
*/
|
|
7104
|
-
viewBox:
|
|
7106
|
+
viewBox: P.string
|
|
7105
7107
|
});
|
|
7106
7108
|
Bt.muiName = "SvgIcon";
|
|
7107
7109
|
function hi(e, t) {
|
|
@@ -7182,10 +7184,10 @@ const Wt = 37, _1 = (e, t) => {
|
|
|
7182
7184
|
return document.body.removeChild(a), c > 21 ? Wt + 21 : Wt;
|
|
7183
7185
|
};
|
|
7184
7186
|
function ru(e) {
|
|
7185
|
-
const [t, n] =
|
|
7186
|
-
nr.debounce((
|
|
7187
|
+
const [t, n] = R(!1), [r, o] = R(""), [i, a] = R(""), [c, l] = R(!1), { isRequired: f = !1 } = e, d = dt(
|
|
7188
|
+
nr.debounce((x) => {
|
|
7187
7189
|
var _;
|
|
7188
|
-
(_ = e.handleChangeSearch) == null || _.call(e,
|
|
7190
|
+
(_ = e.handleChangeSearch) == null || _.call(e, x);
|
|
7189
7191
|
}, 300),
|
|
7190
7192
|
[e.handleChangeSearch]
|
|
7191
7193
|
), h = () => {
|
|
@@ -7200,19 +7202,19 @@ function ru(e) {
|
|
|
7200
7202
|
}, [t]), X(() => {
|
|
7201
7203
|
l(e.searchLoading);
|
|
7202
7204
|
}, [e.paging.rows, e.searchLoading]);
|
|
7203
|
-
const
|
|
7204
|
-
o(
|
|
7205
|
-
},
|
|
7205
|
+
const v = e.paging.rows, { hasNextPage: g } = e, s = g ? v.length + 1 : v.length, p = () => e.isNextPageLoading ? void 0 : e.loadNextPage(i), b = (x) => !g || x < v.length, w = (x) => {
|
|
7206
|
+
o(x.target.value), t && (a(x.target.value), d(x.target.value), l(!0));
|
|
7207
|
+
}, S = pe(null), E = pe(null), y = pe(null);
|
|
7206
7208
|
return X(() => {
|
|
7207
|
-
var
|
|
7208
|
-
t ? ((
|
|
7209
|
+
var x, _, M, I;
|
|
7210
|
+
t ? ((x = E.current) == null || x.classList.add("Mui-focused"), (_ = y.current) == null || _.classList.add("Mui-focused")) : ((M = E.current) == null || M.classList.remove("Mui-focused"), (I = y.current) == null || I.classList.remove("Mui-focused"));
|
|
7209
7211
|
}, [t]), /* @__PURE__ */ u(
|
|
7210
7212
|
Hi,
|
|
7211
7213
|
{
|
|
7212
7214
|
onClickAway: m,
|
|
7213
7215
|
mouseEvent: "onMouseDown",
|
|
7214
7216
|
touchEvent: "onTouchEnd",
|
|
7215
|
-
children: /* @__PURE__ */ u("div", { ref:
|
|
7217
|
+
children: /* @__PURE__ */ u("div", { ref: S, style: { width: e.wrapperWidth ?? "auto" }, children: /* @__PURE__ */ O(
|
|
7216
7218
|
we,
|
|
7217
7219
|
{
|
|
7218
7220
|
sx: {
|
|
@@ -7230,8 +7232,8 @@ function ru(e) {
|
|
|
7230
7232
|
fullWidth: !0,
|
|
7231
7233
|
error: e.error,
|
|
7232
7234
|
helperText: e.helperText,
|
|
7233
|
-
onFocus: (
|
|
7234
|
-
e.loading || e.disabled || e.readOnly || (
|
|
7235
|
+
onFocus: (x) => {
|
|
7236
|
+
e.loading || e.disabled || e.readOnly || (x.preventDefault(), x.stopPropagation(), n(!0));
|
|
7235
7237
|
},
|
|
7236
7238
|
autoComplete: "off",
|
|
7237
7239
|
onChange: w,
|
|
@@ -7258,9 +7260,9 @@ function ru(e) {
|
|
|
7258
7260
|
sx: {
|
|
7259
7261
|
padding: "1px"
|
|
7260
7262
|
},
|
|
7261
|
-
onClick: (
|
|
7263
|
+
onClick: (x) => {
|
|
7262
7264
|
var _;
|
|
7263
|
-
|
|
7265
|
+
x.preventDefault(), x.stopPropagation(), h(), (_ = S.current) == null || _.focus();
|
|
7264
7266
|
},
|
|
7265
7267
|
disabled: e.loading || e.disabled || e.readOnly,
|
|
7266
7268
|
children: e.loading ? /* @__PURE__ */ u(so, { size: "16px" }) : /* @__PURE__ */ u(
|
|
@@ -7304,8 +7306,8 @@ function ru(e) {
|
|
|
7304
7306
|
select: !e.value,
|
|
7305
7307
|
renderOption: () => /* @__PURE__ */ u(ke, { children: e.placeholder || "All options" }),
|
|
7306
7308
|
onClick: () => {
|
|
7307
|
-
var
|
|
7308
|
-
m(), (
|
|
7309
|
+
var x, _;
|
|
7310
|
+
m(), (x = e.onChange) == null || x.call(e, void 0), (_ = e.handleChangeSearch) == null || _.call(e, "");
|
|
7309
7311
|
}
|
|
7310
7312
|
}
|
|
7311
7313
|
) })
|
|
@@ -7314,30 +7316,30 @@ function ru(e) {
|
|
|
7314
7316
|
!c && /* @__PURE__ */ u(
|
|
7315
7317
|
Qr,
|
|
7316
7318
|
{
|
|
7317
|
-
isItemLoaded:
|
|
7319
|
+
isItemLoaded: b,
|
|
7318
7320
|
itemCount: s,
|
|
7319
7321
|
loadMoreItems: p,
|
|
7320
7322
|
threshold: 5,
|
|
7321
|
-
children: ({ onItemsRendered:
|
|
7323
|
+
children: ({ onItemsRendered: x, ref: _ }) => /* @__PURE__ */ u(
|
|
7322
7324
|
mo,
|
|
7323
7325
|
{
|
|
7324
7326
|
ref: _,
|
|
7325
|
-
onItemsRendered:
|
|
7327
|
+
onItemsRendered: x,
|
|
7326
7328
|
height: Wt * Math.min(e.itemsNumber || 6, s),
|
|
7327
7329
|
itemCount: s,
|
|
7328
7330
|
itemSize: (M) => {
|
|
7329
7331
|
var I;
|
|
7330
7332
|
return _1(
|
|
7331
|
-
(I =
|
|
7332
|
-
|
|
7333
|
+
(I = S.current) == null ? void 0 : I.offsetWidth,
|
|
7334
|
+
v[M] ? e.getOptionLabel(v[M]) : ""
|
|
7333
7335
|
);
|
|
7334
7336
|
},
|
|
7335
7337
|
width: "100%",
|
|
7336
7338
|
className: "styled-scroll",
|
|
7337
7339
|
children: ({ index: M, style: I }) => {
|
|
7338
7340
|
var T;
|
|
7339
|
-
const D =
|
|
7340
|
-
return
|
|
7341
|
+
const D = v[M];
|
|
7342
|
+
return b(M) ? /* @__PURE__ */ u(
|
|
7341
7343
|
Xr,
|
|
7342
7344
|
{
|
|
7343
7345
|
stackProps: { style: I },
|
|
@@ -7400,7 +7402,7 @@ function ru(e) {
|
|
|
7400
7402
|
paddingLeft: "5px",
|
|
7401
7403
|
...Ot(
|
|
7402
7404
|
{ display: "none" },
|
|
7403
|
-
!!(
|
|
7405
|
+
!!(v.length || e.loading || c)
|
|
7404
7406
|
)
|
|
7405
7407
|
},
|
|
7406
7408
|
children: /* @__PURE__ */ u(ke, { color: "grayText", children: "No options" })
|
|
@@ -7417,7 +7419,7 @@ function ru(e) {
|
|
|
7417
7419
|
}
|
|
7418
7420
|
function ou(e) {
|
|
7419
7421
|
var d;
|
|
7420
|
-
const { listProps: t } = e, [n, r] =
|
|
7422
|
+
const { listProps: t } = e, [n, r] = R({
|
|
7421
7423
|
initLoading: !e.disabled,
|
|
7422
7424
|
searchLoading: !1,
|
|
7423
7425
|
hasNextPage: !1,
|
|
@@ -7430,11 +7432,11 @@ function ou(e) {
|
|
|
7430
7432
|
totalPages: 1
|
|
7431
7433
|
}
|
|
7432
7434
|
}), o = async (h, m) => {
|
|
7433
|
-
var
|
|
7435
|
+
var v, g;
|
|
7434
7436
|
if (e.list)
|
|
7435
7437
|
r(() => {
|
|
7436
|
-
var
|
|
7437
|
-
const s = ((
|
|
7438
|
+
var b;
|
|
7439
|
+
const s = ((b = h == null ? void 0 : h.search) == null ? void 0 : b.content) || "";
|
|
7438
7440
|
return {
|
|
7439
7441
|
hasNextPage: !1,
|
|
7440
7442
|
isNextPageLoading: !1,
|
|
@@ -7464,19 +7466,19 @@ function ou(e) {
|
|
|
7464
7466
|
...rr.omit(t, "filter"),
|
|
7465
7467
|
...rr.omit(h, "filter"),
|
|
7466
7468
|
search: {
|
|
7467
|
-
fields: ((
|
|
7469
|
+
fields: ((v = t == null ? void 0 : t.search) == null ? void 0 : v.fields) ?? [],
|
|
7468
7470
|
content: ((g = h == null ? void 0 : h.search) == null ? void 0 : g.content) ?? ""
|
|
7469
7471
|
}
|
|
7470
7472
|
};
|
|
7471
7473
|
m && (s.filter = {}, s.search && (s.search.content = ""), s.page = 1);
|
|
7472
7474
|
const p = await e.getList(s);
|
|
7473
|
-
r((
|
|
7475
|
+
r((b) => ({
|
|
7474
7476
|
initLoading: !1,
|
|
7475
7477
|
searchLoading: !1,
|
|
7476
7478
|
isNextPageLoading: !1,
|
|
7477
7479
|
paging: {
|
|
7478
7480
|
...p,
|
|
7479
|
-
rows: (h == null ? void 0 : h.page) === 1 ? p.rows :
|
|
7481
|
+
rows: (h == null ? void 0 : h.page) === 1 ? p.rows : b.paging.rows.concat(p.rows)
|
|
7480
7482
|
},
|
|
7481
7483
|
hasNextPage: p.page < p.totalPages
|
|
7482
7484
|
}));
|
|
@@ -7588,7 +7590,7 @@ function E1(e) {
|
|
|
7588
7590
|
const C1 = "Reset date";
|
|
7589
7591
|
function iu(e) {
|
|
7590
7592
|
var c, l;
|
|
7591
|
-
const [t, n] =
|
|
7593
|
+
const [t, n] = R(e.value), r = !(t != null && t.startDate) || !(t != null && t.endDate) ? "" : de(t == null ? void 0 : t.startDate).format("DD/MM/YYYY") + " ~ " + de(t == null ? void 0 : t.endDate).format("DD/MM/YYYY");
|
|
7592
7594
|
X(() => {
|
|
7593
7595
|
n(e.value);
|
|
7594
7596
|
}, [e.value]);
|
|
@@ -7624,8 +7626,8 @@ function iu(e) {
|
|
|
7624
7626
|
...e.initialSettings
|
|
7625
7627
|
},
|
|
7626
7628
|
onApply: (f, d) => {
|
|
7627
|
-
var p,
|
|
7628
|
-
const h = d.chosenLabel === C1, { startDate: m, endDate:
|
|
7629
|
+
var p, b, w;
|
|
7630
|
+
const h = d.chosenLabel === C1, { startDate: m, endDate: v } = d, g = h ? ((p = e.dateReset) == null ? void 0 : p.startDate) ?? void 0 : m.toDate(), s = h ? ((b = e.dateReset) == null ? void 0 : b.endDate) ?? void 0 : v.toDate();
|
|
7629
7631
|
n({ startDate: g, endDate: s }), (w = e.onChange) == null || w.call(e, { startDate: g, endDate: s });
|
|
7630
7632
|
},
|
|
7631
7633
|
children: /* @__PURE__ */ u(
|
|
@@ -7809,7 +7811,7 @@ const Zr = (e) => {
|
|
|
7809
7811
|
console.log("payload", r), t(r);
|
|
7810
7812
|
});
|
|
7811
7813
|
}), O1 = (e) => {
|
|
7812
|
-
const [t, n] =
|
|
7814
|
+
const [t, n] = R({
|
|
7813
7815
|
actorName: "",
|
|
7814
7816
|
message: "",
|
|
7815
7817
|
context: "",
|