react-crud-mui 0.2.74 → 0.2.75
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/coreui.js
CHANGED
|
@@ -226,11 +226,11 @@ function fo({
|
|
|
226
226
|
}) {
|
|
227
227
|
const [f, g] = Ge(null), m = () => g(null);
|
|
228
228
|
return /* @__PURE__ */ $("div", { children: [
|
|
229
|
-
/* @__PURE__ */ c(vx, { size: n, "aria-label": "more", "aria-haspopup": "true", onClick: (
|
|
230
|
-
|
|
229
|
+
/* @__PURE__ */ c(vx, { size: n, "aria-label": "more", "aria-haspopup": "true", onClick: (p) => {
|
|
230
|
+
p.preventDefault(), p.stopPropagation(), g(p.currentTarget);
|
|
231
231
|
}, ...s, children: /* @__PURE__ */ c(o, { fontSize: "small" }) }),
|
|
232
232
|
/* @__PURE__ */ c(fu, { anchorEl: f, onClose: m, open: !!f, TransitionComponent: cm, children: a ? a(m) : i == null ? void 0 : i.map(({
|
|
233
|
-
children:
|
|
233
|
+
children: p,
|
|
234
234
|
key: x,
|
|
235
235
|
danger: b,
|
|
236
236
|
icon: w,
|
|
@@ -244,7 +244,7 @@ function fo({
|
|
|
244
244
|
}
|
|
245
245
|
}, children: [
|
|
246
246
|
w ? /* @__PURE__ */ c(uu, { children: w }) : null,
|
|
247
|
-
|
|
247
|
+
p
|
|
248
248
|
] }, x)) })
|
|
249
249
|
] });
|
|
250
250
|
}
|
|
@@ -388,16 +388,16 @@ function kr({
|
|
|
388
388
|
moreOptions: f,
|
|
389
389
|
rightContent: g,
|
|
390
390
|
useHeaderIconWrapper: m = !0,
|
|
391
|
-
styles:
|
|
391
|
+
styles: p,
|
|
392
392
|
...x
|
|
393
393
|
}) {
|
|
394
394
|
return /* @__PURE__ */ $(He, { children: [
|
|
395
|
-
/* @__PURE__ */ $(Kr, { flexWrap: "wrap", p: 2, gap: 1, sx:
|
|
395
|
+
/* @__PURE__ */ $(Kr, { flexWrap: "wrap", p: 2, gap: 1, sx: p == null ? void 0 : p.wrapper, ...x, children: [
|
|
396
396
|
/* @__PURE__ */ c(st, { children: /* @__PURE__ */ $(Ot, { alignItems: "center", gap: 1, children: [
|
|
397
|
-
s ? m ? /* @__PURE__ */ c(xx, { sx:
|
|
397
|
+
s ? m ? /* @__PURE__ */ c(xx, { sx: p == null ? void 0 : p.icon, children: s }) : s : null,
|
|
398
398
|
/* @__PURE__ */ $(Ot, { flexDirection: "column", children: [
|
|
399
|
-
i ? /* @__PURE__ */ c(st, { fontSize: 16, fontWeight: 600, component: bx, sx:
|
|
400
|
-
a ? /* @__PURE__ */ c(pn, { color: "text.secondary", sx:
|
|
399
|
+
i ? /* @__PURE__ */ c(st, { fontSize: 16, fontWeight: 600, component: bx, sx: p == null ? void 0 : p.title, children: i }) : null,
|
|
400
|
+
a ? /* @__PURE__ */ c(pn, { color: "text.secondary", sx: p == null ? void 0 : p.helperText, children: a }) : null
|
|
401
401
|
] })
|
|
402
402
|
] }) }),
|
|
403
403
|
n,
|
|
@@ -447,7 +447,7 @@ function _x({
|
|
|
447
447
|
header: f,
|
|
448
448
|
icon: g,
|
|
449
449
|
moreOptions: m,
|
|
450
|
-
useHeaderIconWrapper:
|
|
450
|
+
useHeaderIconWrapper: p,
|
|
451
451
|
activeTabKey: x,
|
|
452
452
|
onTabChange: b,
|
|
453
453
|
styles: w,
|
|
@@ -471,7 +471,7 @@ function _x({
|
|
|
471
471
|
mr: 2
|
|
472
472
|
} }) : null
|
|
473
473
|
] })
|
|
474
|
-
] }) : /* @__PURE__ */ c(kr, { rightContent: i, centerContent: a, helperText: s, header: f, icon: g, moreOptions: m, useHeaderIconWrapper:
|
|
474
|
+
] }) : /* @__PURE__ */ c(kr, { rightContent: i, centerContent: a, helperText: s, header: f, icon: g, moreOptions: m, useHeaderIconWrapper: p, styles: w }),
|
|
475
475
|
n ? V() : null,
|
|
476
476
|
o
|
|
477
477
|
] });
|
|
@@ -937,7 +937,7 @@ function Jr({
|
|
|
937
937
|
canDelete: f = !0,
|
|
938
938
|
canEdit: g = !0,
|
|
939
939
|
canCopy: m = !0,
|
|
940
|
-
showCopy:
|
|
940
|
+
showCopy: p = !0,
|
|
941
941
|
showView: x = !0,
|
|
942
942
|
showEdit: b = !0,
|
|
943
943
|
showDelete: w = !0,
|
|
@@ -958,7 +958,7 @@ function Jr({
|
|
|
958
958
|
b ? /* @__PURE__ */ c(Xn, { Icon: xm, title: (k == null ? void 0 : k.fetch) ?? B("edit"), handleClick: () => {
|
|
959
959
|
o == null || o(), Z();
|
|
960
960
|
}, disabled: !g }) : null,
|
|
961
|
-
|
|
961
|
+
p ? /* @__PURE__ */ c(Xn, { Icon: Ub, title: (k == null ? void 0 : k.create) ?? B("copyitem"), handleClick: () => {
|
|
962
962
|
i == null || i(), Z();
|
|
963
963
|
}, disabled: !m }) : null,
|
|
964
964
|
w ? /* @__PURE__ */ c(Xn, { Icon: mm, title: (k == null ? void 0 : k.view) ?? B("delete"), color: "error.main", sx: {
|
|
@@ -1042,9 +1042,9 @@ const fw = (n, {
|
|
|
1042
1042
|
length: i
|
|
1043
1043
|
}).reduce((w) => w += "0", ""), g = `0${s}0${a}${f}`, {
|
|
1044
1044
|
prefix: m = "",
|
|
1045
|
-
suffix:
|
|
1045
|
+
suffix: p = ""
|
|
1046
1046
|
} = Yl(o), x = io(n).format(g);
|
|
1047
|
-
return [m, x,
|
|
1047
|
+
return [m, x, p].filter(Boolean).join("");
|
|
1048
1048
|
};
|
|
1049
1049
|
function eu(n) {
|
|
1050
1050
|
const i = Object.entries(n.shape).reduce((a, [s, f]) => (a[s] = f.nullable(), a), {});
|
|
@@ -1085,7 +1085,7 @@ function Jb({
|
|
|
1085
1085
|
displayTemplate: f,
|
|
1086
1086
|
error: g,
|
|
1087
1087
|
getOptionLabel: m,
|
|
1088
|
-
helperText:
|
|
1088
|
+
helperText: p,
|
|
1089
1089
|
loading: x,
|
|
1090
1090
|
onBlur: b,
|
|
1091
1091
|
onCreate: w,
|
|
@@ -1141,7 +1141,7 @@ function Jb({
|
|
|
1141
1141
|
borderRadius: 1,
|
|
1142
1142
|
backgroundColor: "success.main"
|
|
1143
1143
|
}, children: K("combobox.newLabel") }) })
|
|
1144
|
-
}), /* @__PURE__ */ c(lo, { label: S, ...Q, fullWidth: !0, inputRef: V, autoFocus: n, error: g, helperText:
|
|
1144
|
+
}), /* @__PURE__ */ c(lo, { label: S, ...Q, fullWidth: !0, inputRef: V, autoFocus: n, error: g, helperText: p, sx: {
|
|
1145
1145
|
"& > .MuiFormLabel-root": {
|
|
1146
1146
|
lineHeight: k === "smaller" ? 1.2 : void 0
|
|
1147
1147
|
},
|
|
@@ -1259,7 +1259,7 @@ function jb({
|
|
|
1259
1259
|
enableCreate: f,
|
|
1260
1260
|
enableClose: g,
|
|
1261
1261
|
enableDiscardChanges: m,
|
|
1262
|
-
enableDelete:
|
|
1262
|
+
enableDelete: p,
|
|
1263
1263
|
onSave: x,
|
|
1264
1264
|
enableSave: b,
|
|
1265
1265
|
disabled: w,
|
|
@@ -1273,14 +1273,14 @@ function jb({
|
|
|
1273
1273
|
enableCopy: s && f,
|
|
1274
1274
|
enableClose: g,
|
|
1275
1275
|
enableCreate: f,
|
|
1276
|
-
enableDelete:
|
|
1276
|
+
enableDelete: p,
|
|
1277
1277
|
enableDiscardChanges: m,
|
|
1278
1278
|
enableSave: b,
|
|
1279
1279
|
disabled: w,
|
|
1280
1280
|
activeSegmentIndex: I,
|
|
1281
1281
|
onSave: x,
|
|
1282
1282
|
setActiveSegmentIndex: S
|
|
1283
|
-
}), [o, i, a, s, f, g,
|
|
1283
|
+
}), [o, i, a, s, f, g, p, m, b, w, I, x, S]);
|
|
1284
1284
|
return /* @__PURE__ */ c(Ru.Provider, { value: k, children: n });
|
|
1285
1285
|
}
|
|
1286
1286
|
const ey = () => gn(Ru);
|
|
@@ -1292,17 +1292,17 @@ function Kl({
|
|
|
1292
1292
|
models: n,
|
|
1293
1293
|
uniqueIdParamName: o = Bl
|
|
1294
1294
|
} = {}) {
|
|
1295
|
-
const i = he((
|
|
1296
|
-
const x = i(
|
|
1295
|
+
const i = he((p) => p ? p[o] : null, [o]), a = he((p) => n == null ? void 0 : n.find((x) => p === i(x)), [i, n]), s = he((p) => n == null ? void 0 : n.findIndex((x) => i(x) === p), [i, n]), f = he((p) => {
|
|
1296
|
+
const x = i(p);
|
|
1297
1297
|
return s(x);
|
|
1298
|
-
}, [s, i]), g = he((
|
|
1299
|
-
const x = (n == null ? void 0 : n.length) ?? 0, b = s(
|
|
1298
|
+
}, [s, i]), g = he((p) => {
|
|
1299
|
+
const x = (n == null ? void 0 : n.length) ?? 0, b = s(p);
|
|
1300
1300
|
if (lr(b) || b === -1)
|
|
1301
1301
|
return null;
|
|
1302
1302
|
let w;
|
|
1303
1303
|
return b + 1 < x ? w = b + 1 : w = 0, n == null ? void 0 : n[w];
|
|
1304
|
-
}, [s, n]), m = he((
|
|
1305
|
-
const x = (n == null ? void 0 : n.length) ?? 0, b = s(
|
|
1304
|
+
}, [s, n]), m = he((p) => {
|
|
1305
|
+
const x = (n == null ? void 0 : n.length) ?? 0, b = s(p);
|
|
1306
1306
|
if (lr(b) || b === -1)
|
|
1307
1307
|
return null;
|
|
1308
1308
|
let w;
|
|
@@ -1339,7 +1339,7 @@ function Du({
|
|
|
1339
1339
|
}));
|
|
1340
1340
|
}
|
|
1341
1341
|
}, [n, i, s]);
|
|
1342
|
-
const
|
|
1342
|
+
const p = he(() => {
|
|
1343
1343
|
a((I) => ({
|
|
1344
1344
|
...I,
|
|
1345
1345
|
open: !1,
|
|
@@ -1379,7 +1379,7 @@ function Du({
|
|
|
1379
1379
|
return [x, {
|
|
1380
1380
|
...i,
|
|
1381
1381
|
onReasonChange: b,
|
|
1382
|
-
onClose:
|
|
1382
|
+
onClose: p,
|
|
1383
1383
|
onNavigate: ({
|
|
1384
1384
|
direction: I
|
|
1385
1385
|
}) => {
|
|
@@ -1415,23 +1415,23 @@ function Ou({
|
|
|
1415
1415
|
} = {}) {
|
|
1416
1416
|
const {
|
|
1417
1417
|
segmentParamName: f
|
|
1418
|
-
} = Xt(), g = Pl(), m = ty(), [
|
|
1418
|
+
} = Xt(), g = Pl(), m = ty(), [p, x] = Ul(), [b, w] = Ge();
|
|
1419
1419
|
let I = b;
|
|
1420
1420
|
const S = Array.isArray(o) ? o : s == null ? void 0 : s.map(({
|
|
1421
1421
|
key: O
|
|
1422
1422
|
}) => O);
|
|
1423
|
-
i && (I = o && S ? m(S) : Number(
|
|
1423
|
+
i && (I = o && S ? m(S) : Number(p.get(n ?? f))), I && I < 0 && a > -1 && (I = a);
|
|
1424
1424
|
const k = he((O) => {
|
|
1425
1425
|
i ? o && S ? g({
|
|
1426
1426
|
pathname: `../${S[O]}`,
|
|
1427
|
-
search:
|
|
1427
|
+
search: p.size > 0 ? `?${p.toString()}` : ""
|
|
1428
1428
|
}, {
|
|
1429
1429
|
relative: "path"
|
|
1430
1430
|
}) : x(new URLSearchParams({
|
|
1431
|
-
...Object.fromEntries(
|
|
1431
|
+
...Object.fromEntries(p),
|
|
1432
1432
|
[n ?? f]: O.toString()
|
|
1433
1433
|
})) : w(O);
|
|
1434
|
-
}, [
|
|
1434
|
+
}, [p, n, o, i, g, S, f, x]);
|
|
1435
1435
|
return [I, k, {
|
|
1436
1436
|
segmentParamName: f
|
|
1437
1437
|
}];
|
|
@@ -1444,8 +1444,8 @@ function zu({
|
|
|
1444
1444
|
uniqueIdParamName: i,
|
|
1445
1445
|
newItemParamValue: a
|
|
1446
1446
|
} = Xt(), s = Hm(), [f] = Ul(), [g, m] = Ou(o), {
|
|
1447
|
-
state:
|
|
1448
|
-
} = hu(), x = s[n ?? i], b = (k) => f.has(k) || (
|
|
1447
|
+
state: p
|
|
1448
|
+
} = hu(), x = s[n ?? i], b = (k) => f.has(k) || (p == null ? void 0 : p[k]), w = b("copy") ? "copy" : x === a ? "create" : "fetch", I = !!b("disabled"), S = !!b("readonly");
|
|
1449
1449
|
return {
|
|
1450
1450
|
reason: w,
|
|
1451
1451
|
id: x,
|
|
@@ -1487,11 +1487,11 @@ function Bu() {
|
|
|
1487
1487
|
enableDiscardChanges: f,
|
|
1488
1488
|
enableSave: g,
|
|
1489
1489
|
reason: m,
|
|
1490
|
-
disabled:
|
|
1490
|
+
disabled: p
|
|
1491
1491
|
} = ey(), x = Vt(), {
|
|
1492
1492
|
isValid: b,
|
|
1493
1493
|
isDirty: w
|
|
1494
|
-
} = x, I = m !== "fetch" && m !== "view", S =
|
|
1494
|
+
} = x, I = m !== "fetch" && m !== "view", S = p;
|
|
1495
1495
|
return Xe(() => ({
|
|
1496
1496
|
visible: {
|
|
1497
1497
|
discardchanges: !I && !!f,
|
|
@@ -1524,7 +1524,7 @@ function ji(n) {
|
|
|
1524
1524
|
onSaveCreate: f,
|
|
1525
1525
|
onClose: g,
|
|
1526
1526
|
onDiscardChanges: m,
|
|
1527
|
-
onCreate:
|
|
1527
|
+
onCreate: p,
|
|
1528
1528
|
onPrevClick: x,
|
|
1529
1529
|
onNextClick: b,
|
|
1530
1530
|
options: w,
|
|
@@ -1592,7 +1592,7 @@ function ji(n) {
|
|
|
1592
1592
|
title: `${T("newitemtitle")}
|
|
1593
1593
|
(${ye.toUpperCase()})`,
|
|
1594
1594
|
disabled: se.create,
|
|
1595
|
-
onClick:
|
|
1595
|
+
onClick: p,
|
|
1596
1596
|
children: T("newitem"),
|
|
1597
1597
|
...k == null ? void 0 : k.create
|
|
1598
1598
|
},
|
|
@@ -1678,7 +1678,7 @@ function ji(n) {
|
|
|
1678
1678
|
key: "create",
|
|
1679
1679
|
icon: /* @__PURE__ */ c(Nc, {}),
|
|
1680
1680
|
disabled: se.create,
|
|
1681
|
-
onClick:
|
|
1681
|
+
onClick: p,
|
|
1682
1682
|
children: T("newitem")
|
|
1683
1683
|
};
|
|
1684
1684
|
case "copy":
|
|
@@ -1791,12 +1791,12 @@ function iy({
|
|
|
1791
1791
|
}) {
|
|
1792
1792
|
const {
|
|
1793
1793
|
t: g
|
|
1794
|
-
} = qe(), [m,
|
|
1794
|
+
} = qe(), [m, p] = Ge(o);
|
|
1795
1795
|
return /* @__PURE__ */ $(He, { children: [
|
|
1796
1796
|
m ? n : null,
|
|
1797
1797
|
/* @__PURE__ */ $(Kr, { alignItems: "center", width: "100%", p: 1.5, ...f, children: [
|
|
1798
1798
|
i ?? /* @__PURE__ */ c(st, {}),
|
|
1799
|
-
/* @__PURE__ */ c(ry, { disableRipple: !0, children: /* @__PURE__ */ c(Cr, { flexDirection: "row", alignItems: "center", onClick: () =>
|
|
1799
|
+
/* @__PURE__ */ c(ry, { disableRipple: !0, children: /* @__PURE__ */ c(Cr, { flexDirection: "row", alignItems: "center", onClick: () => p((x) => !x), children: m ? /* @__PURE__ */ $(He, { children: [
|
|
1800
1800
|
/* @__PURE__ */ c(Ym, { sx: {
|
|
1801
1801
|
color: "text.secondary",
|
|
1802
1802
|
fontSize: "1.5em"
|
|
@@ -1866,7 +1866,7 @@ function ay({
|
|
|
1866
1866
|
...m
|
|
1867
1867
|
}) {
|
|
1868
1868
|
const {
|
|
1869
|
-
isLoading:
|
|
1869
|
+
isLoading: p,
|
|
1870
1870
|
state: x
|
|
1871
1871
|
} = Nu(!!n, {
|
|
1872
1872
|
delay: i,
|
|
@@ -1888,9 +1888,9 @@ function ay({
|
|
|
1888
1888
|
b.current && (Ki.dismiss(b.current), b.current = null);
|
|
1889
1889
|
break;
|
|
1890
1890
|
}
|
|
1891
|
-
}, [x, w, g]), !o && !
|
|
1891
|
+
}, [x, w, g]), !o && !p ? null : /* @__PURE__ */ c(sy, { style: {
|
|
1892
1892
|
visibility: n || o ? "visible" : "hidden"
|
|
1893
|
-
}, variant:
|
|
1893
|
+
}, variant: p ? "indeterminate" : "determinate", value: 0, ...m });
|
|
1894
1894
|
}
|
|
1895
1895
|
function ql({
|
|
1896
1896
|
alertsContent: n,
|
|
@@ -1901,7 +1901,7 @@ function ql({
|
|
|
1901
1901
|
options: f,
|
|
1902
1902
|
pageHeader: g,
|
|
1903
1903
|
moreContent: m,
|
|
1904
|
-
tabsContent:
|
|
1904
|
+
tabsContent: p,
|
|
1905
1905
|
tabsHeaderContent: x
|
|
1906
1906
|
}) {
|
|
1907
1907
|
return /* @__PURE__ */ $(Ir, { style: f == null ? void 0 : f.style, sx: f == null ? void 0 : f.sx, children: [
|
|
@@ -1910,7 +1910,7 @@ function ql({
|
|
|
1910
1910
|
n,
|
|
1911
1911
|
x,
|
|
1912
1912
|
o,
|
|
1913
|
-
|
|
1913
|
+
p,
|
|
1914
1914
|
i,
|
|
1915
1915
|
m,
|
|
1916
1916
|
a
|
|
@@ -1946,10 +1946,10 @@ function Hu({
|
|
|
1946
1946
|
hidden: m
|
|
1947
1947
|
}) => m !== !0).map(({
|
|
1948
1948
|
children: m,
|
|
1949
|
-
key:
|
|
1949
|
+
key: p,
|
|
1950
1950
|
hidden: x,
|
|
1951
1951
|
...b
|
|
1952
|
-
}) => /* @__PURE__ */ c(e3, { disableRipple: !0, iconPosition: "start", ...b },
|
|
1952
|
+
}) => /* @__PURE__ */ c(e3, { disableRipple: !0, iconPosition: "start", ...b }, p));
|
|
1953
1953
|
return s && g.length === 1 ? null : /* @__PURE__ */ $(Ot, { sx: i, alignItems: "center", children: [
|
|
1954
1954
|
/* @__PURE__ */ c(uy, { variant: "scrollable", ...f, sx: {
|
|
1955
1955
|
flexGrow: 1,
|
|
@@ -2060,14 +2060,14 @@ function vn({
|
|
|
2060
2060
|
disablePortal: f,
|
|
2061
2061
|
disableScrollLock: g,
|
|
2062
2062
|
disableEnforceFocus: m,
|
|
2063
|
-
disableEscapeKeyDown:
|
|
2063
|
+
disableEscapeKeyDown: p,
|
|
2064
2064
|
disableRestoreFocus: x,
|
|
2065
2065
|
...b
|
|
2066
2066
|
}) {
|
|
2067
2067
|
const {
|
|
2068
2068
|
t: w
|
|
2069
2069
|
} = qe();
|
|
2070
|
-
return /* @__PURE__ */ c(o3, { open: o, onClose: i, disableAutoFocus: s, disablePortal: f, disableScrollLock: g, disableEnforceFocus: m, disableEscapeKeyDown:
|
|
2070
|
+
return /* @__PURE__ */ c(o3, { open: o, onClose: i, disableAutoFocus: s, disablePortal: f, disableScrollLock: g, disableEnforceFocus: m, disableEscapeKeyDown: p, disableRestoreFocus: x, children: /* @__PURE__ */ $(hy, { ...b, children: [
|
|
2071
2071
|
a && /* @__PURE__ */ c(sr, { onClick: i, title: w("close"), disableRipple: !0, sx: {
|
|
2072
2072
|
position: "absolute",
|
|
2073
2073
|
right: 5,
|
|
@@ -2103,7 +2103,7 @@ function _t({
|
|
|
2103
2103
|
commandsPosition: f = "top-right",
|
|
2104
2104
|
disabled: g,
|
|
2105
2105
|
enableProgress: m = !0,
|
|
2106
|
-
footerContent:
|
|
2106
|
+
footerContent: p,
|
|
2107
2107
|
loading: x,
|
|
2108
2108
|
moreContent: b,
|
|
2109
2109
|
progressProps: w,
|
|
@@ -2190,7 +2190,7 @@ function _t({
|
|
|
2190
2190
|
const G = oe === "bottom" ? ve() : null;
|
|
2191
2191
|
return /* @__PURE__ */ $(He, { children: [
|
|
2192
2192
|
G ? /* @__PURE__ */ c(st, { p: Gr[E], children: G }) : null,
|
|
2193
|
-
|
|
2193
|
+
p ? /* @__PURE__ */ c(st, { p: Gr[E], children: p }) : null
|
|
2194
2194
|
] });
|
|
2195
2195
|
}, fe = () => m ? /* @__PURE__ */ c(ay, { loading: x, visible: o, ...w }) : null, re = () => V != null && V.length ? /* @__PURE__ */ c(cy, { panels: V, sx: {
|
|
2196
2196
|
pt: o ? void 0 : 0
|
|
@@ -2243,9 +2243,9 @@ function Gu({
|
|
|
2243
2243
|
disabled: f,
|
|
2244
2244
|
expanded: g,
|
|
2245
2245
|
icon: m,
|
|
2246
|
-
optional:
|
|
2246
|
+
optional: p,
|
|
2247
2247
|
label: x
|
|
2248
|
-
}) => /* @__PURE__ */ c(Vm, { completed: s, disabled: f, expanded: g, children: /* @__PURE__ */ c(Xm, { icon: m, optional:
|
|
2248
|
+
}) => /* @__PURE__ */ c(Vm, { completed: s, disabled: f, expanded: g, children: /* @__PURE__ */ c(Xm, { icon: m, optional: p, children: x }) }, a)) }) }) });
|
|
2249
2249
|
}
|
|
2250
2250
|
function Vu({
|
|
2251
2251
|
onDirtyStateChange: n
|
|
@@ -2272,7 +2272,7 @@ function Zu({
|
|
|
2272
2272
|
options: f,
|
|
2273
2273
|
pageHeader: g,
|
|
2274
2274
|
moreContent: m,
|
|
2275
|
-
stickyContent:
|
|
2275
|
+
stickyContent: p,
|
|
2276
2276
|
tabsContent: x,
|
|
2277
2277
|
tabsHeaderContent: b
|
|
2278
2278
|
}) {
|
|
@@ -2280,7 +2280,7 @@ function Zu({
|
|
|
2280
2280
|
g,
|
|
2281
2281
|
s,
|
|
2282
2282
|
n,
|
|
2283
|
-
|
|
2283
|
+
p,
|
|
2284
2284
|
b,
|
|
2285
2285
|
/* @__PURE__ */ c(or, { sx: {
|
|
2286
2286
|
flex: 1,
|
|
@@ -2332,13 +2332,13 @@ function vy({
|
|
|
2332
2332
|
}) {
|
|
2333
2333
|
const [o, i] = Ge(() => /* @__PURE__ */ new Map()), a = he((g) => {
|
|
2334
2334
|
i((m) => {
|
|
2335
|
-
const
|
|
2336
|
-
return
|
|
2335
|
+
const p = new Map(m);
|
|
2336
|
+
return p.set(g.name, g.form), p;
|
|
2337
2337
|
});
|
|
2338
2338
|
}, []), s = he((g) => {
|
|
2339
2339
|
i((m) => {
|
|
2340
|
-
const
|
|
2341
|
-
return
|
|
2340
|
+
const p = new Map(m);
|
|
2341
|
+
return p.delete(g), p;
|
|
2342
2342
|
});
|
|
2343
2343
|
}, []), f = Xe(() => ({
|
|
2344
2344
|
forms: o,
|
|
@@ -2364,17 +2364,17 @@ const Ku = At.createContext(null), by = l3((n, o) => {
|
|
|
2364
2364
|
function yy({
|
|
2365
2365
|
children: n
|
|
2366
2366
|
}) {
|
|
2367
|
-
const [o, i] = su(by, /* @__PURE__ */ new Map()), a = he((
|
|
2367
|
+
const [o, i] = su(by, /* @__PURE__ */ new Map()), a = he((p) => {
|
|
2368
2368
|
i({
|
|
2369
2369
|
type: "register",
|
|
2370
|
-
data:
|
|
2370
|
+
data: p
|
|
2371
2371
|
});
|
|
2372
|
-
}, []), s = he((
|
|
2372
|
+
}, []), s = he((p) => {
|
|
2373
2373
|
i({
|
|
2374
2374
|
type: "unregister",
|
|
2375
|
-
name:
|
|
2375
|
+
name: p
|
|
2376
2376
|
});
|
|
2377
|
-
}, []), f = he((
|
|
2377
|
+
}, []), f = he((p) => p ? Object.values(o).filter(p) : Object.values(o), [o]), g = he((p) => Array.from(o).filter(([, x]) => x.group === p).map(([x]) => x), [o]), m = Xe(() => ({
|
|
2378
2378
|
registerField: a,
|
|
2379
2379
|
unRegisterField: s,
|
|
2380
2380
|
getFields: f,
|
|
@@ -2433,9 +2433,9 @@ function ts({
|
|
|
2433
2433
|
...o
|
|
2434
2434
|
}), {
|
|
2435
2435
|
handleSubmit: s
|
|
2436
|
-
} = a, f = he(() => new Promise((m,
|
|
2436
|
+
} = a, f = he(() => new Promise((m, p) => {
|
|
2437
2437
|
s(m, (x) => {
|
|
2438
|
-
|
|
2438
|
+
p(new Error("Form validation error"));
|
|
2439
2439
|
})();
|
|
2440
2440
|
}), [s]);
|
|
2441
2441
|
return Xe(() => Object.assign(a, {
|
|
@@ -2494,21 +2494,21 @@ function Qu({
|
|
|
2494
2494
|
}) {
|
|
2495
2495
|
const {
|
|
2496
2496
|
errors: a
|
|
2497
|
-
} = Vt(), s = he((m) => m.message, []), f = he((m,
|
|
2497
|
+
} = Vt(), s = he((m) => m.message, []), f = he((m, p = []) => {
|
|
2498
2498
|
if (!m)
|
|
2499
|
-
return
|
|
2499
|
+
return p;
|
|
2500
2500
|
if (tu(m)) {
|
|
2501
2501
|
const b = s(m);
|
|
2502
|
-
return b &&
|
|
2502
|
+
return b && p.push(b), p;
|
|
2503
2503
|
}
|
|
2504
2504
|
return Object.entries(m).filter(([b, w]) => !w || !b && !n ? !1 : o && b ? (Array.isArray(o) ? o : [o]).includes(b) : !0).reduce((b, [, w]) => {
|
|
2505
2505
|
if (tu(w)) {
|
|
2506
2506
|
const I = s(w);
|
|
2507
2507
|
I && b.push(I);
|
|
2508
2508
|
} else
|
|
2509
|
-
return Array.isArray(w) ? w.reduce((I, S) => f(S, I),
|
|
2509
|
+
return Array.isArray(w) ? w.reduce((I, S) => f(S, I), p) : f(w, p);
|
|
2510
2510
|
return b;
|
|
2511
|
-
},
|
|
2511
|
+
}, p);
|
|
2512
2512
|
}, [n, s, o]);
|
|
2513
2513
|
return i ? [] : f(a);
|
|
2514
2514
|
}
|
|
@@ -2553,13 +2553,13 @@ function ky({
|
|
|
2553
2553
|
const {
|
|
2554
2554
|
uid: g,
|
|
2555
2555
|
model: m,
|
|
2556
|
-
reason:
|
|
2556
|
+
reason: p
|
|
2557
2557
|
} = f;
|
|
2558
2558
|
return o.reduce((b, {
|
|
2559
2559
|
fields: w,
|
|
2560
2560
|
message: I
|
|
2561
2561
|
}) => (w.every((k) => typeof k == "function" ? k(f, n) : n.fields.findIndex((O) => {
|
|
2562
|
-
if (!(
|
|
2562
|
+
if (!(p === "fetch" && a(O) === g))
|
|
2563
2563
|
return En(O, k) == En(m, k);
|
|
2564
2564
|
}) > -1) && b.push(I ?? i("uniqueconstraint", {
|
|
2565
2565
|
fields: w.filter((k) => typeof k == "string").join(",")
|
|
@@ -2593,7 +2593,7 @@ function hw() {
|
|
|
2593
2593
|
const n = lt(), o = he((a, s) => (n.current || (n.current = {}), n.current[s] || (n.current[s] = []), n.current[s].push(a), () => {
|
|
2594
2594
|
const f = n.current && n.current[s];
|
|
2595
2595
|
if (f) {
|
|
2596
|
-
const g = f.findIndex((
|
|
2596
|
+
const g = f.findIndex((p) => p === a);
|
|
2597
2597
|
return !!f.splice(g, 1);
|
|
2598
2598
|
}
|
|
2599
2599
|
}), []), i = he((a) => {
|
|
@@ -2605,7 +2605,7 @@ function Ty({
|
|
|
2605
2605
|
error: n,
|
|
2606
2606
|
loading: o
|
|
2607
2607
|
} = {}) {
|
|
2608
|
-
const i = My(), a = lt(0), [s, f] = Ge(o), [g, m] = Ge(n),
|
|
2608
|
+
const i = My(), a = lt(0), [s, f] = Ge(o), [g, m] = Ge(n), p = he(() => {
|
|
2609
2609
|
f(void 0), m(void 0);
|
|
2610
2610
|
}, []);
|
|
2611
2611
|
return [he(async (b, w) => {
|
|
@@ -2625,7 +2625,7 @@ function Ty({
|
|
|
2625
2625
|
}, [i]), {
|
|
2626
2626
|
loading: s,
|
|
2627
2627
|
error: g,
|
|
2628
|
-
reset:
|
|
2628
|
+
reset: p,
|
|
2629
2629
|
setLoading: f,
|
|
2630
2630
|
setError: m
|
|
2631
2631
|
}];
|
|
@@ -2684,7 +2684,7 @@ function bw({
|
|
|
2684
2684
|
schema: n,
|
|
2685
2685
|
enableMemoizedRefine: o = !0
|
|
2686
2686
|
}) {
|
|
2687
|
-
const [i, a] = Ge(n), s = he((g, m,
|
|
2687
|
+
const [i, a] = Ge(n), s = he((g, m, p) => {
|
|
2688
2688
|
const x = eu(n.pick(g));
|
|
2689
2689
|
let b, w;
|
|
2690
2690
|
const I = x.refine(async (S) => {
|
|
@@ -2697,8 +2697,8 @@ function bw({
|
|
|
2697
2697
|
const k = m(S);
|
|
2698
2698
|
return o && (w = eo(k) ? await k : k), k;
|
|
2699
2699
|
}, (S) => ({
|
|
2700
|
-
message: typeof (
|
|
2701
|
-
path:
|
|
2700
|
+
message: typeof (p == null ? void 0 : p.message) == "function" ? p.message(S) : p == null ? void 0 : p.message,
|
|
2701
|
+
path: p == null ? void 0 : p.path
|
|
2702
2702
|
}));
|
|
2703
2703
|
a((S) => ln.intersection(S, I));
|
|
2704
2704
|
}, [o, n]), f = he((g, m) => {
|
|
@@ -2827,7 +2827,7 @@ function Qr({
|
|
|
2827
2827
|
borderRadius: 0,
|
|
2828
2828
|
border: "none",
|
|
2829
2829
|
display: a ? "flex" : "none"
|
|
2830
|
-
}, onClose: () => s(!1), children: /* @__PURE__ */ c(By, { children: i[g].map((m,
|
|
2830
|
+
}, onClose: () => s(!1), children: /* @__PURE__ */ c(By, { children: i[g].map((m, p) => /* @__PURE__ */ c("li", { children: m.message }, p)) }) }, g));
|
|
2831
2831
|
return /* @__PURE__ */ c(He, { children: f });
|
|
2832
2832
|
}
|
|
2833
2833
|
Qr.Error = zy;
|
|
@@ -2862,7 +2862,7 @@ var Pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2862
2862
|
to.exports;
|
|
2863
2863
|
(function(n, o) {
|
|
2864
2864
|
(function() {
|
|
2865
|
-
var i, a = "4.17.21", s = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", g = "Expected a function", m = "Invalid `variable` option passed into `_.template`",
|
|
2865
|
+
var i, a = "4.17.21", s = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", g = "Expected a function", m = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", x = 500, b = "__lodash_placeholder__", w = 1, I = 2, S = 4, k = 1, O = 2, B = 1, V = 2, N = 4, K = 8, Z = 16, q = 32, E = 64, T = 128, X = 256, U = 512, Fe = 30, Te = "...", ye = 800, Q = 16, oe = 1, le = 2, se = 3, ve = 1 / 0, we = 9007199254740991, Ee = 17976931348623157e292, fe = NaN, re = 4294967295, De = re - 1, G = re >>> 1, at = [
|
|
2866
2866
|
["ary", T],
|
|
2867
2867
|
["bind", B],
|
|
2868
2868
|
["bindKey", V],
|
|
@@ -3418,7 +3418,7 @@ to.exports;
|
|
|
3418
3418
|
} catch {
|
|
3419
3419
|
}
|
|
3420
3420
|
}(), s0 = A.clearTimeout !== vt.clearTimeout && A.clearTimeout, a0 = P && P.now !== vt.Date.now && P.now, c0 = A.setTimeout !== vt.setTimeout && A.setTimeout, hi = ct.ceil, mi = ct.floor, zo = Ue.getOwnPropertySymbols, u0 = ui ? ui.isBuffer : i, ta = A.isFinite, f0 = li.join, d0 = Ys(Ue.keys, Ue), ut = ct.max, yt = ct.min, p0 = P.now, g0 = A.parseInt, na = ct.random, h0 = li.reverse, $o = tr(A, "DataView"), Tr = tr(A, "Map"), Bo = tr(A, "Promise"), gr = tr(A, "Set"), Lr = tr(A, "WeakMap"), Fr = tr(Ue, "create"), xi = Lr && new Lr(), hr = {}, m0 = nr($o), x0 = nr(Tr), v0 = nr(Bo), b0 = nr(gr), y0 = nr(Lr), vi = Wn ? Wn.prototype : i, Er = vi ? vi.valueOf : i, ra = vi ? vi.toString : i;
|
|
3421
|
-
function
|
|
3421
|
+
function d(e) {
|
|
3422
3422
|
if (nt(e) && !ue(e) && !(e instanceof ke)) {
|
|
3423
3423
|
if (e instanceof jt)
|
|
3424
3424
|
return e;
|
|
@@ -3445,7 +3445,7 @@ to.exports;
|
|
|
3445
3445
|
function jt(e, t) {
|
|
3446
3446
|
this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!t, this.__index__ = 0, this.__values__ = i;
|
|
3447
3447
|
}
|
|
3448
|
-
|
|
3448
|
+
d.templateSettings = {
|
|
3449
3449
|
/**
|
|
3450
3450
|
* Used to detect `data` property values to be HTML-escaped.
|
|
3451
3451
|
*
|
|
@@ -3487,9 +3487,9 @@ to.exports;
|
|
|
3487
3487
|
* @memberOf _.templateSettings.imports
|
|
3488
3488
|
* @type {Function}
|
|
3489
3489
|
*/
|
|
3490
|
-
_:
|
|
3490
|
+
_: d
|
|
3491
3491
|
}
|
|
3492
|
-
},
|
|
3492
|
+
}, d.prototype = bi.prototype, d.prototype.constructor = d, jt.prototype = mr(bi.prototype), jt.prototype.constructor = jt;
|
|
3493
3493
|
function ke(e) {
|
|
3494
3494
|
this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = re, this.__views__ = [];
|
|
3495
3495
|
}
|
|
@@ -3546,7 +3546,7 @@ to.exports;
|
|
|
3546
3546
|
var t = this.__data__;
|
|
3547
3547
|
if (Fr) {
|
|
3548
3548
|
var r = t[e];
|
|
3549
|
-
return r ===
|
|
3549
|
+
return r === p ? i : r;
|
|
3550
3550
|
}
|
|
3551
3551
|
return Ne.call(t, e) ? t[e] : i;
|
|
3552
3552
|
}
|
|
@@ -3556,7 +3556,7 @@ to.exports;
|
|
|
3556
3556
|
}
|
|
3557
3557
|
function A0(e, t) {
|
|
3558
3558
|
var r = this.__data__;
|
|
3559
|
-
return this.size += this.has(e) ? 0 : 1, r[e] = Fr && t === i ?
|
|
3559
|
+
return this.size += this.has(e) ? 0 : 1, r[e] = Fr && t === i ? p : t, this;
|
|
3560
3560
|
}
|
|
3561
3561
|
qn.prototype.clear = C0, qn.prototype.delete = I0, qn.prototype.get = k0, qn.prototype.has = M0, qn.prototype.set = A0;
|
|
3562
3562
|
function _n(e) {
|
|
@@ -3623,7 +3623,7 @@ to.exports;
|
|
|
3623
3623
|
this.add(e[t]);
|
|
3624
3624
|
}
|
|
3625
3625
|
function W0(e) {
|
|
3626
|
-
return this.__data__.set(e,
|
|
3626
|
+
return this.__data__.set(e, p), this;
|
|
3627
3627
|
}
|
|
3628
3628
|
function N0(e) {
|
|
3629
3629
|
return this.__data__.has(e);
|
|
@@ -4789,11 +4789,11 @@ to.exports;
|
|
|
4789
4789
|
return t;
|
|
4790
4790
|
}
|
|
4791
4791
|
function br(e) {
|
|
4792
|
-
var t = Ne.call(
|
|
4792
|
+
var t = Ne.call(d, "placeholder") ? d : e;
|
|
4793
4793
|
return t.placeholder;
|
|
4794
4794
|
}
|
|
4795
4795
|
function ee() {
|
|
4796
|
-
var e =
|
|
4796
|
+
var e = d.iteratee || Cl;
|
|
4797
4797
|
return e = e === Cl ? ha : e, arguments.length ? e(arguments[0], arguments[1]) : e;
|
|
4798
4798
|
}
|
|
4799
4799
|
function Ei(e, t) {
|
|
@@ -4954,7 +4954,7 @@ to.exports;
|
|
|
4954
4954
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
4955
4955
|
}
|
|
4956
4956
|
function fl(e) {
|
|
4957
|
-
var t = Fi(e), r =
|
|
4957
|
+
var t = Fi(e), r = d[t];
|
|
4958
4958
|
if (typeof r != "function" || !(t in ke.prototype))
|
|
4959
4959
|
return !1;
|
|
4960
4960
|
if (e === r)
|
|
@@ -5365,7 +5365,7 @@ to.exports;
|
|
|
5365
5365
|
return r = typeof r == "function" ? (e.pop(), r) : i, uc(e, r);
|
|
5366
5366
|
});
|
|
5367
5367
|
function fc(e) {
|
|
5368
|
-
var t =
|
|
5368
|
+
var t = d(e);
|
|
5369
5369
|
return t.__chain__ = !0, t;
|
|
5370
5370
|
}
|
|
5371
5371
|
function q1(e, t) {
|
|
@@ -6152,7 +6152,7 @@ to.exports;
|
|
|
6152
6152
|
return e = ze(e), r = r == null ? 0 : jn(ge(r), 0, e.length), t = Wt(t), e.slice(r, r + t.length) == t;
|
|
6153
6153
|
}
|
|
6154
6154
|
function g2(e, t, r) {
|
|
6155
|
-
var l =
|
|
6155
|
+
var l = d.templateSettings;
|
|
6156
6156
|
r && kt(e, t, r) && (t = i), e = ze(e), t = Hi({}, t, l, Ga);
|
|
6157
6157
|
var u = Hi({}, t.imports, l.imports, Ga), h = gt(u), v = Ro(u, h), y, C, L = 0, F = t.interpolate || ei, R = "__p += '", W = Oo(
|
|
6158
6158
|
(t.escape || ei).source + "|" + F.source + "|" + (F === ds ? Zf : ei).source + "|" + (t.evaluate || ei).source + "|$",
|
|
@@ -6422,13 +6422,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
6422
6422
|
function sm(e, t) {
|
|
6423
6423
|
return e && e.length ? Fo(e, ee(t, 2)) : 0;
|
|
6424
6424
|
}
|
|
6425
|
-
return
|
|
6425
|
+
return d.after = Tg, d.ary = gc, d.assign = mh, d.assignIn = Ac, d.assignInWith = Hi, d.assignWith = xh, d.at = vh, d.before = hc, d.bind = ml, d.bindAll = S2, d.bindKey = mc, d.castArray = Hg, d.chain = fc, d.chunk = Jp, d.compact = qp, d.concat = Qp, d.cond = C2, d.conforms = I2, d.constant = Sl, d.countBy = lg, d.create = bh, d.curry = xc, d.curryRight = vc, d.debounce = bc, d.defaults = yh, d.defaultsDeep = wh, d.defer = Lg, d.delay = Fg, d.difference = jp, d.differenceBy = e1, d.differenceWith = t1, d.drop = n1, d.dropRight = r1, d.dropRightWhile = i1, d.dropWhile = o1, d.fill = l1, d.filter = ag, d.flatMap = fg, d.flatMapDeep = dg, d.flatMapDepth = pg, d.flatten = sc, d.flattenDeep = s1, d.flattenDepth = a1, d.flip = Eg, d.flow = M2, d.flowRight = A2, d.fromPairs = c1, d.functions = Ah, d.functionsIn = Th, d.groupBy = gg, d.initial = f1, d.intersection = d1, d.intersectionBy = p1, d.intersectionWith = g1, d.invert = Fh, d.invertBy = Eh, d.invokeMap = mg, d.iteratee = Cl, d.keyBy = xg, d.keys = gt, d.keysIn = Rt, d.map = Oi, d.mapKeys = Dh, d.mapValues = Oh, d.matches = T2, d.matchesProperty = L2, d.memoize = $i, d.merge = zh, d.mergeWith = Tc, d.method = F2, d.methodOf = E2, d.mixin = Il, d.negate = Bi, d.nthArg = D2, d.omit = $h, d.omitBy = Bh, d.once = Rg, d.orderBy = vg, d.over = O2, d.overArgs = Dg, d.overEvery = z2, d.overSome = $2, d.partial = xl, d.partialRight = yc, d.partition = bg, d.pick = Wh, d.pickBy = Lc, d.property = $c, d.propertyOf = B2, d.pull = v1, d.pullAll = cc, d.pullAllBy = b1, d.pullAllWith = y1, d.pullAt = w1, d.range = W2, d.rangeRight = N2, d.rearg = Og, d.reject = _g, d.remove = _1, d.rest = zg, d.reverse = gl, d.sampleSize = Cg, d.set = Hh, d.setWith = Ph, d.shuffle = Ig, d.slice = S1, d.sortBy = Ag, d.sortedUniq = L1, d.sortedUniqBy = F1, d.split = f2, d.spread = $g, d.tail = E1, d.take = R1, d.takeRight = D1, d.takeRightWhile = O1, d.takeWhile = z1, d.tap = q1, d.throttle = Bg, d.thru = Di, d.toArray = Ic, d.toPairs = Fc, d.toPairsIn = Ec, d.toPath = V2, d.toPlainObject = Mc, d.transform = Uh, d.unary = Wg, d.union = $1, d.unionBy = B1, d.unionWith = W1, d.uniq = N1, d.uniqBy = H1, d.uniqWith = P1, d.unset = Gh, d.unzip = hl, d.unzipWith = uc, d.update = Vh, d.updateWith = Xh, d.values = wr, d.valuesIn = Zh, d.without = U1, d.words = Oc, d.wrap = Ng, d.xor = G1, d.xorBy = V1, d.xorWith = X1, d.zip = Z1, d.zipObject = Y1, d.zipObjectDeep = K1, d.zipWith = J1, d.entries = Fc, d.entriesIn = Ec, d.extend = Ac, d.extendWith = Hi, Il(d, d), d.add = Z2, d.attempt = zc, d.camelCase = qh, d.capitalize = Rc, d.ceil = Y2, d.clamp = Yh, d.clone = Pg, d.cloneDeep = Gg, d.cloneDeepWith = Vg, d.cloneWith = Ug, d.conformsTo = Xg, d.deburr = Dc, d.defaultTo = k2, d.divide = K2, d.endsWith = Qh, d.eq = fn, d.escape = jh, d.escapeRegExp = e2, d.every = sg, d.find = cg, d.findIndex = oc, d.findKey = _h, d.findLast = ug, d.findLastIndex = lc, d.findLastKey = Sh, d.floor = J2, d.forEach = dc, d.forEachRight = pc, d.forIn = Ch, d.forInRight = Ih, d.forOwn = kh, d.forOwnRight = Mh, d.get = yl, d.gt = Zg, d.gte = Yg, d.has = Lh, d.hasIn = wl, d.head = ac, d.identity = Dt, d.includes = hg, d.indexOf = u1, d.inRange = Kh, d.invoke = Rh, d.isArguments = rr, d.isArray = ue, d.isArrayBuffer = Kg, d.isArrayLike = Et, d.isArrayLikeObject = it, d.isBoolean = Jg, d.isBuffer = Gn, d.isDate = qg, d.isElement = Qg, d.isEmpty = jg, d.isEqual = eh, d.isEqualWith = th, d.isError = vl, d.isFinite = nh, d.isFunction = An, d.isInteger = wc, d.isLength = Wi, d.isMap = _c, d.isMatch = rh, d.isMatchWith = ih, d.isNaN = oh, d.isNative = lh, d.isNil = ah, d.isNull = sh, d.isNumber = Sc, d.isObject = tt, d.isObjectLike = nt, d.isPlainObject = Hr, d.isRegExp = bl, d.isSafeInteger = ch, d.isSet = Cc, d.isString = Ni, d.isSymbol = Nt, d.isTypedArray = yr, d.isUndefined = uh, d.isWeakMap = fh, d.isWeakSet = dh, d.join = h1, d.kebabCase = t2, d.last = nn, d.lastIndexOf = m1, d.lowerCase = n2, d.lowerFirst = r2, d.lt = ph, d.lte = gh, d.max = q2, d.maxBy = Q2, d.mean = j2, d.meanBy = em, d.min = tm, d.minBy = nm, d.stubArray = Ml, d.stubFalse = Al, d.stubObject = H2, d.stubString = P2, d.stubTrue = U2, d.multiply = rm, d.nth = x1, d.noConflict = R2, d.noop = kl, d.now = zi, d.pad = i2, d.padEnd = o2, d.padStart = l2, d.parseInt = s2, d.random = Jh, d.reduce = yg, d.reduceRight = wg, d.repeat = a2, d.replace = c2, d.result = Nh, d.round = im, d.runInContext = _, d.sample = Sg, d.size = kg, d.snakeCase = u2, d.some = Mg, d.sortedIndex = C1, d.sortedIndexBy = I1, d.sortedIndexOf = k1, d.sortedLastIndex = M1, d.sortedLastIndexBy = A1, d.sortedLastIndexOf = T1, d.startCase = d2, d.startsWith = p2, d.subtract = om, d.sum = lm, d.sumBy = sm, d.template = g2, d.times = G2, d.toFinite = Tn, d.toInteger = ge, d.toLength = kc, d.toLower = h2, d.toNumber = rn, d.toSafeInteger = hh, d.toString = ze, d.toUpper = m2, d.trim = x2, d.trimEnd = v2, d.trimStart = b2, d.truncate = y2, d.unescape = w2, d.uniqueId = X2, d.upperCase = _2, d.upperFirst = _l, d.each = dc, d.eachRight = pc, d.first = ac, Il(d, function() {
|
|
6426
6426
|
var e = {};
|
|
6427
|
-
return hn(
|
|
6428
|
-
Ne.call(
|
|
6427
|
+
return hn(d, function(t, r) {
|
|
6428
|
+
Ne.call(d.prototype, r) || (e[r] = t);
|
|
6429
6429
|
}), e;
|
|
6430
|
-
}(), { chain: !1 }),
|
|
6431
|
-
|
|
6430
|
+
}(), { chain: !1 }), d.VERSION = a, qt(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
|
|
6431
|
+
d[e].placeholder = d;
|
|
6432
6432
|
}), qt(["drop", "take"], function(e, t) {
|
|
6433
6433
|
ke.prototype[e] = function(r) {
|
|
6434
6434
|
r = r === i ? 1 : ut(ge(r), 0);
|
|
@@ -6480,10 +6480,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
6480
6480
|
}, ke.prototype.toArray = function() {
|
|
6481
6481
|
return this.take(re);
|
|
6482
6482
|
}, hn(ke.prototype, function(e, t) {
|
|
6483
|
-
var r = /^(?:filter|find|map|reject)|While$/.test(t), l = /^(?:head|last)$/.test(t), u =
|
|
6484
|
-
u && (
|
|
6483
|
+
var r = /^(?:filter|find|map|reject)|While$/.test(t), l = /^(?:head|last)$/.test(t), u = d[l ? "take" + (t == "last" ? "Right" : "") : t], h = l || /^find/.test(t);
|
|
6484
|
+
u && (d.prototype[t] = function() {
|
|
6485
6485
|
var v = this.__wrapped__, y = l ? [1] : arguments, C = v instanceof ke, L = y[0], F = C || ue(v), R = function(Ie) {
|
|
6486
|
-
var Me = u.apply(
|
|
6486
|
+
var Me = u.apply(d, $n([Ie], y));
|
|
6487
6487
|
return l && W ? Me[0] : Me;
|
|
6488
6488
|
};
|
|
6489
6489
|
F && r && typeof L == "function" && L.length != 1 && (C = F = !1);
|
|
@@ -6497,7 +6497,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
6497
6497
|
});
|
|
6498
6498
|
}), qt(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
|
|
6499
6499
|
var t = li[e], r = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", l = /^(?:pop|shift)$/.test(e);
|
|
6500
|
-
|
|
6500
|
+
d.prototype[e] = function() {
|
|
6501
6501
|
var u = arguments;
|
|
6502
6502
|
if (l && !this.__chain__) {
|
|
6503
6503
|
var h = this.value();
|
|
@@ -6508,7 +6508,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
6508
6508
|
});
|
|
6509
6509
|
};
|
|
6510
6510
|
}), hn(ke.prototype, function(e, t) {
|
|
6511
|
-
var r =
|
|
6511
|
+
var r = d[t];
|
|
6512
6512
|
if (r) {
|
|
6513
6513
|
var l = r.name + "";
|
|
6514
6514
|
Ne.call(hr, l) || (hr[l] = []), hr[l].push({ name: t, func: r });
|
|
@@ -6516,7 +6516,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
6516
6516
|
}), hr[Mi(i, V).name] = [{
|
|
6517
6517
|
name: "wrapper",
|
|
6518
6518
|
func: i
|
|
6519
|
-
}], ke.prototype.clone = w0, ke.prototype.reverse = _0, ke.prototype.value = S0,
|
|
6519
|
+
}], ke.prototype.clone = w0, ke.prototype.reverse = _0, ke.prototype.value = S0, d.prototype.at = Q1, d.prototype.chain = j1, d.prototype.commit = eg, d.prototype.next = tg, d.prototype.plant = rg, d.prototype.reverse = ig, d.prototype.toJSON = d.prototype.valueOf = d.prototype.value = og, d.prototype.first = d.prototype.head, Ar && (d.prototype[Ar] = ng), d;
|
|
6520
6520
|
}, dr = e0();
|
|
6521
6521
|
Kn ? ((Kn.exports = dr)._ = dr, Co._ = dr) : vt._ = dr;
|
|
6522
6522
|
}).call(Pr);
|
|
@@ -6566,7 +6566,7 @@ function Ny({
|
|
|
6566
6566
|
...m
|
|
6567
6567
|
}) {
|
|
6568
6568
|
const {
|
|
6569
|
-
disabled:
|
|
6569
|
+
disabled: p,
|
|
6570
6570
|
loading: x,
|
|
6571
6571
|
visible: b
|
|
6572
6572
|
} = Bu(), {
|
|
@@ -6581,31 +6581,31 @@ function Ny({
|
|
|
6581
6581
|
}
|
|
6582
6582
|
} = Xt();
|
|
6583
6583
|
Fn(I, g === "save-close" ? a : g === "save-create" ? i : n, {
|
|
6584
|
-
enabled: !
|
|
6584
|
+
enabled: !p.save && b.save && !x,
|
|
6585
6585
|
description: w("savetitle"),
|
|
6586
6586
|
scopes: f,
|
|
6587
6587
|
...Ur,
|
|
6588
6588
|
...m
|
|
6589
6589
|
}), Fn(B, (N, K) => s == null ? void 0 : s(N, K), {
|
|
6590
|
-
enabled: !
|
|
6590
|
+
enabled: !p.create && b.create && !x,
|
|
6591
6591
|
description: w("newitemtitle"),
|
|
6592
6592
|
scopes: f,
|
|
6593
6593
|
...Ur,
|
|
6594
6594
|
...m
|
|
6595
6595
|
}), Fn(S, i, {
|
|
6596
|
-
enabled: !
|
|
6596
|
+
enabled: !p.save && b.savecreate && !x,
|
|
6597
6597
|
description: w("savecreate"),
|
|
6598
6598
|
scopes: f,
|
|
6599
6599
|
...Ur,
|
|
6600
6600
|
...m
|
|
6601
6601
|
}), Fn(k, a, {
|
|
6602
|
-
enabled: !
|
|
6602
|
+
enabled: !p.save && b.savecreate && !x,
|
|
6603
6603
|
description: w("saveclosetitle"),
|
|
6604
6604
|
scopes: f,
|
|
6605
6605
|
...Ur,
|
|
6606
6606
|
...m
|
|
6607
6607
|
}), Fn(O, o, {
|
|
6608
|
-
enabled: !
|
|
6608
|
+
enabled: !p.delete && b.delete && !x,
|
|
6609
6609
|
description: w("deletetitle"),
|
|
6610
6610
|
scopes: f,
|
|
6611
6611
|
...Ur,
|
|
@@ -6671,7 +6671,7 @@ function Gy({
|
|
|
6671
6671
|
commandsProps: f,
|
|
6672
6672
|
customSteps: g,
|
|
6673
6673
|
data: m,
|
|
6674
|
-
defaultSaveMode:
|
|
6674
|
+
defaultSaveMode: p = "save",
|
|
6675
6675
|
disabled: x,
|
|
6676
6676
|
disableShortCuts: b,
|
|
6677
6677
|
enableClose: w,
|
|
@@ -6763,7 +6763,7 @@ function Gy({
|
|
|
6763
6763
|
onClose: q,
|
|
6764
6764
|
onNavigate: le,
|
|
6765
6765
|
options: {
|
|
6766
|
-
saveCommandMode:
|
|
6766
|
+
saveCommandMode: p,
|
|
6767
6767
|
reason: re
|
|
6768
6768
|
},
|
|
6769
6769
|
commandsProps: typeof f == "function" ? f(re) : f
|
|
@@ -6817,7 +6817,7 @@ function Gy({
|
|
|
6817
6817
|
currentKey: z,
|
|
6818
6818
|
currentForm: me,
|
|
6819
6819
|
name: J,
|
|
6820
|
-
saveCommandMode:
|
|
6820
|
+
saveCommandMode: p
|
|
6821
6821
|
}
|
|
6822
6822
|
};
|
|
6823
6823
|
if (E)
|
|
@@ -6832,7 +6832,7 @@ function Gy({
|
|
|
6832
6832
|
reason: re
|
|
6833
6833
|
};
|
|
6834
6834
|
return oe ? oe(J) : /* @__PURE__ */ c(Wu, { ...J });
|
|
6835
|
-
}, Zt = () => b ? null : /* @__PURE__ */ c(Hy, { onSave: se, onSaveClose: ve, onSaveCreate: we, onNewItem: U, onDelete: Fe, scopes: K, defaultSaveMode:
|
|
6835
|
+
}, Zt = () => b ? null : /* @__PURE__ */ c(Hy, { onSave: se, onSaveClose: ve, onSaveCreate: we, onNewItem: U, onDelete: Fe, scopes: K, defaultSaveMode: p }), an = () => {
|
|
6836
6836
|
if (!(G != null && G.length))
|
|
6837
6837
|
return null;
|
|
6838
6838
|
const J = /* @__PURE__ */ c(g ?? Gu, { items: G, activeStep: n, ...at }), me = G.map(({
|
|
@@ -6867,7 +6867,7 @@ function Vy({
|
|
|
6867
6867
|
loading: f,
|
|
6868
6868
|
onAfterDelete: g,
|
|
6869
6869
|
onAfterSave: m,
|
|
6870
|
-
onClose:
|
|
6870
|
+
onClose: p,
|
|
6871
6871
|
onDelete: x,
|
|
6872
6872
|
onDiscardChanges: b,
|
|
6873
6873
|
onReasonChange: w,
|
|
@@ -6911,7 +6911,7 @@ function Vy({
|
|
|
6911
6911
|
}, oe = async () => {
|
|
6912
6912
|
await ye("save-create"), we();
|
|
6913
6913
|
}, le = async () => {
|
|
6914
|
-
await ye("save-close"),
|
|
6914
|
+
await ye("save-close"), p == null || p("action");
|
|
6915
6915
|
}, se = async () => {
|
|
6916
6916
|
q();
|
|
6917
6917
|
const fe = X(), re = {
|
|
@@ -6919,7 +6919,7 @@ function Vy({
|
|
|
6919
6919
|
data: i,
|
|
6920
6920
|
model: fe
|
|
6921
6921
|
}, De = x == null ? void 0 : x(re, s);
|
|
6922
|
-
eo(De) && await N(De), O && Ki.success(V("deletedsuccesfully")), g == null || g(re, s),
|
|
6922
|
+
eo(De) && await N(De), O && Ki.success(V("deletedsuccesfully")), g == null || g(re, s), p == null || p("action");
|
|
6923
6923
|
}, ve = () => {
|
|
6924
6924
|
E(), b == null || b();
|
|
6925
6925
|
}, we = (fe = "create") => {
|
|
@@ -6932,7 +6932,7 @@ function Vy({
|
|
|
6932
6932
|
};
|
|
6933
6933
|
I == null || I(De, s);
|
|
6934
6934
|
};
|
|
6935
|
-
return /* @__PURE__ */ c(Gy, { ...B, form: s, alerts: Te, error: a, data: i ?? U, autoSave: o, loading: f || K || Fe, reason: k, onCreate: () => we(), onCopy: () => we("copy"), onSaveCreate: () => void oe(), onSaveClose: () => void le(), onSave: () => void Q(), onDelete: () => void se(), onNavigate: (fe) => void Ee(fe), onDiscardChanges: ve, onClose:
|
|
6935
|
+
return /* @__PURE__ */ c(Gy, { ...B, form: s, alerts: Te, error: a, data: i ?? U, autoSave: o, loading: f || K || Fe, reason: k, onCreate: () => we(), onCopy: () => we("copy"), onSaveCreate: () => void oe(), onSaveClose: () => void le(), onSave: () => void Q(), onDelete: () => void se(), onNavigate: (fe) => void Ee(fe), onDiscardChanges: ve, onClose: p });
|
|
6936
6936
|
}
|
|
6937
6937
|
function sf({
|
|
6938
6938
|
activeSegmentIndex: n = 0,
|
|
@@ -6944,7 +6944,7 @@ function sf({
|
|
|
6944
6944
|
validationOptions: g,
|
|
6945
6945
|
...m
|
|
6946
6946
|
}) {
|
|
6947
|
-
const
|
|
6947
|
+
const p = ts({
|
|
6948
6948
|
schema: f,
|
|
6949
6949
|
defaultValues: typeof i == "function" ? () => {
|
|
6950
6950
|
const I = i == null ? void 0 : i(s);
|
|
@@ -6952,7 +6952,7 @@ function sf({
|
|
|
6952
6952
|
} : i,
|
|
6953
6953
|
values: o,
|
|
6954
6954
|
...a
|
|
6955
|
-
}), x = m.form ??
|
|
6955
|
+
}), x = m.form ?? p, b = Ay(s), {
|
|
6956
6956
|
reset: w
|
|
6957
6957
|
} = x;
|
|
6958
6958
|
return Ze(() => {
|
|
@@ -6974,7 +6974,7 @@ function af({
|
|
|
6974
6974
|
pageHeader: f,
|
|
6975
6975
|
panelsContent: g,
|
|
6976
6976
|
progressContent: m,
|
|
6977
|
-
stickyContent:
|
|
6977
|
+
stickyContent: p,
|
|
6978
6978
|
tabsContent: x,
|
|
6979
6979
|
tabsHeaderContent: b
|
|
6980
6980
|
}) {
|
|
@@ -6982,7 +6982,7 @@ function af({
|
|
|
6982
6982
|
f,
|
|
6983
6983
|
m,
|
|
6984
6984
|
i,
|
|
6985
|
-
|
|
6985
|
+
p,
|
|
6986
6986
|
b,
|
|
6987
6987
|
/* @__PURE__ */ $(vn.Scroll, { autoHide: !1, children: [
|
|
6988
6988
|
o,
|
|
@@ -7008,9 +7008,9 @@ function cf({
|
|
|
7008
7008
|
...s,
|
|
7009
7009
|
onClose: o
|
|
7010
7010
|
});
|
|
7011
|
-
return /* @__PURE__ */ c(vn, { open: !!i, onClose: () => m("backdrop"), closable: a, ...n, children: /* @__PURE__ */ c(zt, { defaultSaveMode: "save-close", enableClose: a, enableDelete: !0, enableDiscardChanges: !1, commandsPosition: "bottom-right", onLayout: (
|
|
7011
|
+
return /* @__PURE__ */ c(vn, { open: !!i, onClose: () => m("backdrop"), closable: a, ...n, children: /* @__PURE__ */ c(zt, { defaultSaveMode: "save-close", enableClose: a, enableDelete: !0, enableDiscardChanges: !1, commandsPosition: "bottom-right", onLayout: (p) => /* @__PURE__ */ $(He, { children: [
|
|
7012
7012
|
/* @__PURE__ */ c(Vu, { onDirtyStateChange: g }),
|
|
7013
|
-
/* @__PURE__ */ c(af, { ...
|
|
7013
|
+
/* @__PURE__ */ c(af, { ...p })
|
|
7014
7014
|
] }), bordered: !f.tabs, ...f, onClose: m }) });
|
|
7015
7015
|
}
|
|
7016
7016
|
cf.Layout = af;
|
|
@@ -7021,8 +7021,8 @@ function Xy({
|
|
|
7021
7021
|
anchorEl: a,
|
|
7022
7022
|
...s
|
|
7023
7023
|
}) {
|
|
7024
|
-
const f = (
|
|
7025
|
-
|
|
7024
|
+
const f = (p) => {
|
|
7025
|
+
p == null || p.stopPropagation(), i();
|
|
7026
7026
|
}, g = !!a;
|
|
7027
7027
|
return /* @__PURE__ */ c(h3, { id: g ? "detailpage-popover" : void 0, open: g, anchorEl: a, onClose: f, anchorOrigin: {
|
|
7028
7028
|
vertical: "bottom",
|
|
@@ -7039,7 +7039,7 @@ function Zy({
|
|
|
7039
7039
|
isDirty: s
|
|
7040
7040
|
} = Vt(), {
|
|
7041
7041
|
t: f
|
|
7042
|
-
} = qe(), g = a ?? f("promptunsavedchanges"), m = s && !!i,
|
|
7042
|
+
} = qe(), g = a ?? f("promptunsavedchanges"), m = s && !!i, p = mu(At.useCallback(({
|
|
7043
7043
|
nextLocation: b,
|
|
7044
7044
|
currentLocation: w
|
|
7045
7045
|
}) => {
|
|
@@ -7047,10 +7047,10 @@ function Zy({
|
|
|
7047
7047
|
noBlock: I
|
|
7048
7048
|
} = b.state || {};
|
|
7049
7049
|
return I !== !0 && (n || b.pathname !== w.pathname) && m ? !window.confirm(g) : !1;
|
|
7050
|
-
}, [n, m, g])), x = At.useRef(
|
|
7050
|
+
}, [n, m, g])), x = At.useRef(p.state);
|
|
7051
7051
|
At.useEffect(() => {
|
|
7052
|
-
|
|
7053
|
-
}, [
|
|
7052
|
+
p.state === "blocked" && p.reset(), x.current = p.state;
|
|
7053
|
+
}, [p]), xu(At.useCallback((b) => {
|
|
7054
7054
|
o && m && (b.preventDefault(), b.returnValue = g);
|
|
7055
7055
|
}, [o, g, m]), {
|
|
7056
7056
|
capture: !0
|
|
@@ -7068,14 +7068,14 @@ function ss({
|
|
|
7068
7068
|
fallbackSegmentIndex: f,
|
|
7069
7069
|
onReasonChange: g,
|
|
7070
7070
|
uniqueIdParamName: m,
|
|
7071
|
-
...
|
|
7071
|
+
...p
|
|
7072
7072
|
}) {
|
|
7073
7073
|
const x = Pl(), {
|
|
7074
7074
|
newItemParamValue: b
|
|
7075
7075
|
} = Xt(), {
|
|
7076
7076
|
tabs: w,
|
|
7077
7077
|
steps: I
|
|
7078
|
-
} =
|
|
7078
|
+
} = p, {
|
|
7079
7079
|
reason: S,
|
|
7080
7080
|
segment: k,
|
|
7081
7081
|
setSegment: O,
|
|
@@ -7127,7 +7127,7 @@ function ss({
|
|
|
7127
7127
|
}, activeSegmentIndex: k, onSegmentChanged: O, onContentLayout: (E) => /* @__PURE__ */ $(He, { children: [
|
|
7128
7128
|
/* @__PURE__ */ c(Yy, { ...i }),
|
|
7129
7129
|
/* @__PURE__ */ c(Jl, { ...E })
|
|
7130
|
-
] }), disabled: B || V, ...
|
|
7130
|
+
] }), disabled: B || V, ...p });
|
|
7131
7131
|
}
|
|
7132
7132
|
ss.useDetailPageRouteParams = zu;
|
|
7133
7133
|
function Ky({
|
|
@@ -7331,7 +7331,7 @@ function Zn({
|
|
|
7331
7331
|
delayOptions: f,
|
|
7332
7332
|
descriptionField: g,
|
|
7333
7333
|
emptyText: m,
|
|
7334
|
-
enablePagination:
|
|
7334
|
+
enablePagination: p,
|
|
7335
7335
|
enableRowClickSelect: x,
|
|
7336
7336
|
enableNestedComponent: b,
|
|
7337
7337
|
enableSkeleton: w = !0,
|
|
@@ -7606,7 +7606,7 @@ function Zn({
|
|
|
7606
7606
|
z(),
|
|
7607
7607
|
me()
|
|
7608
7608
|
] }), Ye = () => {
|
|
7609
|
-
if (!
|
|
7609
|
+
if (!p)
|
|
7610
7610
|
return null;
|
|
7611
7611
|
const {
|
|
7612
7612
|
pageSize: D,
|
|
@@ -7692,9 +7692,9 @@ function xf({
|
|
|
7692
7692
|
}) {
|
|
7693
7693
|
const {
|
|
7694
7694
|
t: g
|
|
7695
|
-
} = qe(), [m,
|
|
7696
|
-
|
|
7697
|
-
}, b = () =>
|
|
7695
|
+
} = qe(), [m, p] = Ge(null), x = (w) => {
|
|
7696
|
+
p(w.currentTarget);
|
|
7697
|
+
}, b = () => p(null);
|
|
7698
7698
|
return /* @__PURE__ */ $(Xl, { open: m, handleOpen: x, handleClose: b, disabled: s, children: [
|
|
7699
7699
|
/* @__PURE__ */ c(Xn, { Icon: Nl, title: a ?? g("newitem"), handleClick: () => {
|
|
7700
7700
|
b(), n();
|
|
@@ -7715,7 +7715,7 @@ function as({
|
|
|
7715
7715
|
showEdit: f = !0,
|
|
7716
7716
|
children: g,
|
|
7717
7717
|
columns: m,
|
|
7718
|
-
commandColProps:
|
|
7718
|
+
commandColProps: p,
|
|
7719
7719
|
onCommands: x,
|
|
7720
7720
|
onLayout: b,
|
|
7721
7721
|
detailPageProps: w,
|
|
@@ -7811,8 +7811,8 @@ function as({
|
|
|
7811
7811
|
};
|
|
7812
7812
|
return q ? q(J) : /* @__PURE__ */ c(Jr, { ...J });
|
|
7813
7813
|
},
|
|
7814
|
-
...
|
|
7815
|
-
}], [n, o, i, m,
|
|
7814
|
+
...p
|
|
7815
|
+
}], [n, o, i, m, p, De, fe, de, se, q, a, s, f]), St = he((Oe) => {
|
|
7816
7816
|
const {
|
|
7817
7817
|
model: z,
|
|
7818
7818
|
reason: J,
|
|
@@ -7938,10 +7938,10 @@ function r4({
|
|
|
7938
7938
|
invalid: f,
|
|
7939
7939
|
labelProps: g,
|
|
7940
7940
|
wrapperProps: m,
|
|
7941
|
-
disabled:
|
|
7941
|
+
disabled: p
|
|
7942
7942
|
}) {
|
|
7943
7943
|
const x = () => s ? /* @__PURE__ */ c(wu, { error: !0, children: s.message }) : null, b = (I) => /* @__PURE__ */ $(st, { children: [
|
|
7944
|
-
/* @__PURE__ */ c(qi, { fontWeight: 500, lineHeight: 1, color:
|
|
7944
|
+
/* @__PURE__ */ c(qi, { fontWeight: 500, lineHeight: 1, color: p ? "text.secondary" : f ? "error.main" : "text.primary", ...g, children: I }),
|
|
7945
7945
|
a ? /* @__PURE__ */ c(pn, { color: "text.secondary", children: a }) : null
|
|
7946
7946
|
] }, "label");
|
|
7947
7947
|
return /* @__PURE__ */ $(st, { children: [
|
|
@@ -7965,9 +7965,9 @@ function i4({
|
|
|
7965
7965
|
label: o,
|
|
7966
7966
|
helperText: i,
|
|
7967
7967
|
placement: a
|
|
7968
|
-
}, disabled: f, render: (m) => /* @__PURE__ */ c(Dl, { ...g, ...m, checked: m.value, onChange: (
|
|
7968
|
+
}, disabled: f, render: (m) => /* @__PURE__ */ c(Dl, { ...g, ...m, checked: m.value, onChange: (p, x) => {
|
|
7969
7969
|
var b;
|
|
7970
|
-
m.onChange(x), (b = g == null ? void 0 : g.onChange) == null || b.call(g,
|
|
7970
|
+
m.onChange(x), (b = g == null ? void 0 : g.onChange) == null || b.call(g, p, x);
|
|
7971
7971
|
} }), ...s });
|
|
7972
7972
|
}
|
|
7973
7973
|
function o4({
|
|
@@ -7980,12 +7980,12 @@ function o4({
|
|
|
7980
7980
|
return /* @__PURE__ */ c(Be, { name: n, render: (f, {
|
|
7981
7981
|
invalid: g,
|
|
7982
7982
|
error: m
|
|
7983
|
-
}) => /* @__PURE__ */ c(qb, { ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (
|
|
7983
|
+
}) => /* @__PURE__ */ c(qb, { ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (p, x, b, w) => {
|
|
7984
7984
|
var I;
|
|
7985
|
-
b === "createOption" && typeof x == "string" || ((I = s == null ? void 0 : s.onChange) == null || I.call(s,
|
|
7986
|
-
}, onBlur: (
|
|
7985
|
+
b === "createOption" && typeof x == "string" || ((I = s == null ? void 0 : s.onChange) == null || I.call(s, p, x, b, w), f.onChange(x));
|
|
7986
|
+
}, onBlur: (p) => {
|
|
7987
7987
|
var x;
|
|
7988
|
-
(x = s == null ? void 0 : s.onBlur) == null || x.call(s,
|
|
7988
|
+
(x = s == null ? void 0 : s.onBlur) == null || x.call(s, p);
|
|
7989
7989
|
} }), disabled: i, formControlProps: a, ...o });
|
|
7990
7990
|
}
|
|
7991
7991
|
function l4({
|
|
@@ -7997,22 +7997,24 @@ function l4({
|
|
|
7997
7997
|
disabled: f,
|
|
7998
7998
|
allowClear: g = !0,
|
|
7999
7999
|
formControlProps: m,
|
|
8000
|
-
|
|
8000
|
+
sx: p,
|
|
8001
|
+
...x
|
|
8001
8002
|
}) {
|
|
8002
|
-
return /* @__PURE__ */ c(Be, { name: n, render: (
|
|
8003
|
-
invalid:
|
|
8004
|
-
error:
|
|
8005
|
-
}) => /* @__PURE__ */ c(F3, { ...
|
|
8006
|
-
var
|
|
8007
|
-
|
|
8003
|
+
return /* @__PURE__ */ c(Be, { name: n, render: (b, {
|
|
8004
|
+
invalid: w,
|
|
8005
|
+
error: I
|
|
8006
|
+
}) => /* @__PURE__ */ c(F3, { ...x, ...b, value: Zb(b.value), onChange: (S, k) => {
|
|
8007
|
+
var O;
|
|
8008
|
+
b.onChange(S), (O = x == null ? void 0 : x.onChange) == null || O.call(x, S, k);
|
|
8008
8009
|
}, slotProps: {
|
|
8009
8010
|
textField: {
|
|
8010
8011
|
...i == null ? void 0 : i.textField,
|
|
8011
8012
|
size: s,
|
|
8012
8013
|
fullWidth: !0,
|
|
8013
8014
|
autoFocus: a,
|
|
8014
|
-
error:
|
|
8015
|
-
helperText:
|
|
8015
|
+
error: w,
|
|
8016
|
+
helperText: I == null ? void 0 : I.message,
|
|
8017
|
+
sx: p
|
|
8016
8018
|
},
|
|
8017
8019
|
field: {
|
|
8018
8020
|
clearable: g
|
|
@@ -8047,17 +8049,17 @@ function s4({
|
|
|
8047
8049
|
onFocus: s,
|
|
8048
8050
|
...f
|
|
8049
8051
|
}) {
|
|
8050
|
-
const g = (
|
|
8051
|
-
const x =
|
|
8052
|
+
const g = (p) => {
|
|
8053
|
+
const x = p.target.value;
|
|
8052
8054
|
switch (n) {
|
|
8053
8055
|
case "firstUpper":
|
|
8054
|
-
|
|
8056
|
+
p.target.value = x.split(" ").map(_u).join(" ");
|
|
8055
8057
|
break;
|
|
8056
8058
|
case "upperCase":
|
|
8057
|
-
|
|
8059
|
+
p.target.value = x.toUpperCase();
|
|
8058
8060
|
break;
|
|
8059
8061
|
case "lowerCase":
|
|
8060
|
-
|
|
8062
|
+
p.target.value = x.toLowerCase();
|
|
8061
8063
|
break;
|
|
8062
8064
|
}
|
|
8063
8065
|
}, m = bf({
|
|
@@ -8065,9 +8067,9 @@ function s4({
|
|
|
8065
8067
|
onBlur: a,
|
|
8066
8068
|
onFocus: s
|
|
8067
8069
|
});
|
|
8068
|
-
return /* @__PURE__ */ c(lo, { ...f, ...m, value: i, ref: o, onChange: (
|
|
8070
|
+
return /* @__PURE__ */ c(lo, { ...f, ...m, value: i, ref: o, onChange: (p) => {
|
|
8069
8071
|
var x;
|
|
8070
|
-
g(
|
|
8072
|
+
g(p), (x = f.onChange) == null || x.call(f, p);
|
|
8071
8073
|
} });
|
|
8072
8074
|
}
|
|
8073
8075
|
const yf = Lt((n, o) => /* @__PURE__ */ c(s4, { ...n, getRef: o }));
|
|
@@ -8083,12 +8085,12 @@ function a4({
|
|
|
8083
8085
|
error: m
|
|
8084
8086
|
}) => /* @__PURE__ */ c(yf, { sx: {
|
|
8085
8087
|
width: "100%"
|
|
8086
|
-
}, ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (
|
|
8088
|
+
}, ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (p) => {
|
|
8087
8089
|
var x;
|
|
8088
|
-
f.onChange(
|
|
8089
|
-
}, onBlur: (
|
|
8090
|
+
f.onChange(p), (x = s == null ? void 0 : s.onChange) == null || x.call(s, p);
|
|
8091
|
+
}, onBlur: (p) => {
|
|
8090
8092
|
var x;
|
|
8091
|
-
f.onBlur(), (x = s == null ? void 0 : s.onBlur) == null || x.call(s,
|
|
8093
|
+
f.onBlur(), (x = s == null ? void 0 : s.onBlur) == null || x.call(s, p);
|
|
8092
8094
|
} }), disabled: a, formControlProps: i, ...o });
|
|
8093
8095
|
}
|
|
8094
8096
|
function c4({
|
|
@@ -8114,7 +8116,7 @@ function u4({
|
|
|
8114
8116
|
maskInputProps: f,
|
|
8115
8117
|
onBlur: g,
|
|
8116
8118
|
value: m,
|
|
8117
|
-
onChange:
|
|
8119
|
+
onChange: p,
|
|
8118
8120
|
getRef: x,
|
|
8119
8121
|
...b
|
|
8120
8122
|
}) {
|
|
@@ -8145,7 +8147,7 @@ function u4({
|
|
|
8145
8147
|
...I,
|
|
8146
8148
|
value: S
|
|
8147
8149
|
};
|
|
8148
|
-
}, disabled: o, maskPlaceholder: s, inputRef: x, onBlur: g, value: m, onChange:
|
|
8150
|
+
}, disabled: o, maskPlaceholder: s, inputRef: x, onBlur: g, value: m, onChange: p, autoComplete: "off", ...f, children: /* @__PURE__ */ c(yf, { ...b }) });
|
|
8149
8151
|
}
|
|
8150
8152
|
const f4 = Lt((n, o) => /* @__PURE__ */ c(u4, { ...n, getRef: o }));
|
|
8151
8153
|
function d4({
|
|
@@ -8158,7 +8160,7 @@ function d4({
|
|
|
8158
8160
|
}) {
|
|
8159
8161
|
return /* @__PURE__ */ c(Be, { name: n, render: (g, {
|
|
8160
8162
|
invalid: m,
|
|
8161
|
-
error:
|
|
8163
|
+
error: p
|
|
8162
8164
|
}) => /* @__PURE__ */ c(
|
|
8163
8165
|
f4,
|
|
8164
8166
|
{
|
|
@@ -8166,7 +8168,7 @@ function d4({
|
|
|
8166
8168
|
...g,
|
|
8167
8169
|
value: lr(g.value) ? "" : g.value,
|
|
8168
8170
|
error: m,
|
|
8169
|
-
helperText: (
|
|
8171
|
+
helperText: (p == null ? void 0 : p.message) || s,
|
|
8170
8172
|
onChange: (x) => {
|
|
8171
8173
|
var b;
|
|
8172
8174
|
g.onChange(x), (b = f == null ? void 0 : f.onChange) == null || b.call(f, x);
|
|
@@ -8219,16 +8221,16 @@ function m4({
|
|
|
8219
8221
|
error: m
|
|
8220
8222
|
}) => /* @__PURE__ */ c(h4, { sx: {
|
|
8221
8223
|
width: "100%"
|
|
8222
|
-
}, ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (
|
|
8224
|
+
}, ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (p) => {
|
|
8223
8225
|
var x;
|
|
8224
8226
|
f.onChange({
|
|
8225
8227
|
target: {
|
|
8226
|
-
value:
|
|
8228
|
+
value: p
|
|
8227
8229
|
}
|
|
8228
|
-
}), (x = s == null ? void 0 : s.onChange) == null || x.call(s,
|
|
8229
|
-
}, onBlur: (
|
|
8230
|
+
}), (x = s == null ? void 0 : s.onChange) == null || x.call(s, p);
|
|
8231
|
+
}, onBlur: (p) => {
|
|
8230
8232
|
var x;
|
|
8231
|
-
f.onBlur(), (x = s == null ? void 0 : s.onBlur) == null || x.call(s,
|
|
8233
|
+
f.onBlur(), (x = s == null ? void 0 : s.onBlur) == null || x.call(s, p);
|
|
8232
8234
|
} }), disabled: i, formControlProps: a, ...o });
|
|
8233
8235
|
}
|
|
8234
8236
|
function x4({
|
|
@@ -8241,10 +8243,10 @@ function x4({
|
|
|
8241
8243
|
}) {
|
|
8242
8244
|
return /* @__PURE__ */ c(Be, { name: n, render: (g, {
|
|
8243
8245
|
invalid: m,
|
|
8244
|
-
error:
|
|
8246
|
+
error: p
|
|
8245
8247
|
}) => /* @__PURE__ */ c(wf, { sx: {
|
|
8246
8248
|
width: "100%"
|
|
8247
|
-
}, ...f, ...g, error: m, helperText: (
|
|
8249
|
+
}, ...f, ...g, error: m, helperText: (p == null ? void 0 : p.message) || s, onChange: (x) => {
|
|
8248
8250
|
var b;
|
|
8249
8251
|
g.onChange({
|
|
8250
8252
|
target: {
|
|
@@ -8293,7 +8295,7 @@ function y4({
|
|
|
8293
8295
|
onChange: f,
|
|
8294
8296
|
onDelete: g,
|
|
8295
8297
|
rightContent: m,
|
|
8296
|
-
selected:
|
|
8298
|
+
selected: p,
|
|
8297
8299
|
selectedIcon: x,
|
|
8298
8300
|
sx: b,
|
|
8299
8301
|
children: w
|
|
@@ -8301,7 +8303,7 @@ function y4({
|
|
|
8301
8303
|
const I = (S) => {
|
|
8302
8304
|
S.stopPropagation(), g == null || g();
|
|
8303
8305
|
};
|
|
8304
|
-
return /* @__PURE__ */ $(b4, { onClick: f, selected:
|
|
8306
|
+
return /* @__PURE__ */ $(b4, { onClick: f, selected: p, sx: b, disabled: o, children: [
|
|
8305
8307
|
/* @__PURE__ */ $(Kr, { children: [
|
|
8306
8308
|
/* @__PURE__ */ $("div", { children: [
|
|
8307
8309
|
/* @__PURE__ */ $("div", { className: "place", children: [
|
|
@@ -8310,9 +8312,9 @@ function y4({
|
|
|
8310
8312
|
] }),
|
|
8311
8313
|
/* @__PURE__ */ c(qi, { color: "text.secondary", className: "panel-helper-label", fontWeight: 400, children: i })
|
|
8312
8314
|
] }),
|
|
8313
|
-
|
|
8315
|
+
p ? x ?? /* @__PURE__ */ c("div", { className: "check-mark", children: /* @__PURE__ */ c(v4, {}) }) : n ? /* @__PURE__ */ c(sr, { onClick: (S) => I(S), children: /* @__PURE__ */ c(Rl, { color: "action" }) }) : m
|
|
8314
8316
|
] }),
|
|
8315
|
-
/* @__PURE__ */ c(Mm, { in:
|
|
8317
|
+
/* @__PURE__ */ c(Mm, { in: p, children: w ? /* @__PURE__ */ c(or, { sx: {
|
|
8316
8318
|
mt: 2
|
|
8317
8319
|
}, children: w }) : null })
|
|
8318
8320
|
] });
|
|
@@ -8326,7 +8328,7 @@ function w4({
|
|
|
8326
8328
|
size: f = "normal",
|
|
8327
8329
|
direction: g = "vertical",
|
|
8328
8330
|
selectInitialOption: m,
|
|
8329
|
-
...
|
|
8331
|
+
...p
|
|
8330
8332
|
}) {
|
|
8331
8333
|
const x = o.map(({
|
|
8332
8334
|
label: b,
|
|
@@ -8372,7 +8374,7 @@ function w4({
|
|
|
8372
8374
|
[`& .${Am.root}`]: {
|
|
8373
8375
|
padding: f === "small" ? ".87em" : f === "large" ? "1.3em" : "1em"
|
|
8374
8376
|
}
|
|
8375
|
-
}, direction: g === "vertical" ? "column" : "row", ...
|
|
8377
|
+
}, direction: g === "vertical" ? "column" : "row", ...p, children: x });
|
|
8376
8378
|
}
|
|
8377
8379
|
function _4({
|
|
8378
8380
|
name: n,
|
|
@@ -8389,9 +8391,9 @@ function _4({
|
|
|
8389
8391
|
placement: a,
|
|
8390
8392
|
disabled: g.disabled,
|
|
8391
8393
|
...f
|
|
8392
|
-
}, render: (m) => /* @__PURE__ */ c(w4, { ...g, ...m, onChange: (
|
|
8394
|
+
}, render: (m) => /* @__PURE__ */ c(w4, { ...g, ...m, onChange: (p) => {
|
|
8393
8395
|
var x;
|
|
8394
|
-
m.onChange(
|
|
8396
|
+
m.onChange(p), (x = g == null ? void 0 : g.onChange) == null || x.call(g, p);
|
|
8395
8397
|
} }), ...s });
|
|
8396
8398
|
}
|
|
8397
8399
|
const S4 = "tr";
|
|
@@ -8407,7 +8409,7 @@ function C4({
|
|
|
8407
8409
|
...m
|
|
8408
8410
|
}) {
|
|
8409
8411
|
const {
|
|
8410
|
-
t:
|
|
8412
|
+
t: p
|
|
8411
8413
|
} = qe(), x = bf({
|
|
8412
8414
|
value: n,
|
|
8413
8415
|
onBlur: a,
|
|
@@ -8426,7 +8428,7 @@ function C4({
|
|
|
8426
8428
|
defaultCountry: S4,
|
|
8427
8429
|
...i
|
|
8428
8430
|
});
|
|
8429
|
-
return /* @__PURE__ */ c(lo, { label:
|
|
8431
|
+
return /* @__PURE__ */ c(lo, { label: p("phone_number"), value: b, onChange: w, type: "tel", inputRef: I, InputProps: {
|
|
8430
8432
|
startAdornment: /* @__PURE__ */ c(du, { position: "start", style: {
|
|
8431
8433
|
marginRight: "2px",
|
|
8432
8434
|
marginLeft: "-8px"
|
|
@@ -8499,9 +8501,9 @@ function k4({
|
|
|
8499
8501
|
error: m
|
|
8500
8502
|
}) => /* @__PURE__ */ c(I4, { sx: {
|
|
8501
8503
|
width: "100%"
|
|
8502
|
-
}, ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (
|
|
8504
|
+
}, ...s, ...f, error: g, helperText: m == null ? void 0 : m.message, onChange: (p) => {
|
|
8503
8505
|
var x;
|
|
8504
|
-
f.onChange(
|
|
8506
|
+
f.onChange(p.inputValue ? p.phone : p.inputValue), (x = s == null ? void 0 : s.onChange) == null || x.call(s, p);
|
|
8505
8507
|
} }), disabled: i, formControlProps: a, ...o });
|
|
8506
8508
|
}
|
|
8507
8509
|
const iu = bn(z3)({
|
|
@@ -8519,7 +8521,7 @@ function M4({
|
|
|
8519
8521
|
showAllOption: f,
|
|
8520
8522
|
showAllOptionValue: g = null,
|
|
8521
8523
|
disabled: m,
|
|
8522
|
-
formControlProps:
|
|
8524
|
+
formControlProps: p,
|
|
8523
8525
|
data: x,
|
|
8524
8526
|
...b
|
|
8525
8527
|
}) {
|
|
@@ -8530,7 +8532,7 @@ function M4({
|
|
|
8530
8532
|
label: o,
|
|
8531
8533
|
helperText: i,
|
|
8532
8534
|
placement: a,
|
|
8533
|
-
...
|
|
8535
|
+
...p
|
|
8534
8536
|
}, disabled: m, render: (I) => /* @__PURE__ */ $($3, { row: !0, ...b, ...I, onChange: (S, k) => {
|
|
8535
8537
|
var O;
|
|
8536
8538
|
I.onChange(k), (O = b == null ? void 0 : b.onChange) == null || O.call(b, S, k);
|
|
@@ -8569,14 +8571,14 @@ const _f = Gt(/* @__PURE__ */ c("path", { d: "M20.85,19.44l-4-4a2.44,2.44,0,0,0-
|
|
|
8569
8571
|
bordered: a = !0,
|
|
8570
8572
|
...s
|
|
8571
8573
|
}, f) => {
|
|
8572
|
-
const [g, m] = Ge(i),
|
|
8574
|
+
const [g, m] = Ge(i), p = /* @__PURE__ */ c(_f, { sx: {
|
|
8573
8575
|
mr: 1,
|
|
8574
8576
|
fontSize: 18,
|
|
8575
8577
|
color: "text.secondary"
|
|
8576
8578
|
} }), {
|
|
8577
8579
|
t: x
|
|
8578
8580
|
} = qe(), b = Xe(() => Cu(n, 400), []);
|
|
8579
|
-
return /* @__PURE__ */ c(A4, { ref: f, border: a ? 1 : 0, startAdornment:
|
|
8581
|
+
return /* @__PURE__ */ c(A4, { ref: f, border: a ? 1 : 0, startAdornment: p, placeholder: x("search"), ...s, value: g, onChange: (w) => {
|
|
8580
8582
|
m(w.target.value), o == null || o(w), b(w.target.value);
|
|
8581
8583
|
} });
|
|
8582
8584
|
});
|
|
@@ -8601,7 +8603,7 @@ function F4({
|
|
|
8601
8603
|
displayTemplate: f,
|
|
8602
8604
|
dropDownHeight: g,
|
|
8603
8605
|
error: m,
|
|
8604
|
-
groupBy:
|
|
8606
|
+
groupBy: p,
|
|
8605
8607
|
helperText: x,
|
|
8606
8608
|
labelWrapperProps: b,
|
|
8607
8609
|
id: w,
|
|
@@ -8644,7 +8646,7 @@ function F4({
|
|
|
8644
8646
|
}
|
|
8645
8647
|
}, [i]);
|
|
8646
8648
|
const le = (ie) => {
|
|
8647
|
-
const Ce = Vn.groupBy(ie,
|
|
8649
|
+
const Ce = Vn.groupBy(ie, p);
|
|
8648
8650
|
return Object.keys(Ce).sort().reduce((de, _e) => {
|
|
8649
8651
|
de.push(/* @__PURE__ */ c(U3, { children: _e }, _e));
|
|
8650
8652
|
const pe = se(Ce[_e], 3);
|
|
@@ -8717,7 +8719,7 @@ function F4({
|
|
|
8717
8719
|
size: "small"
|
|
8718
8720
|
}, renderValue: lr(E) ? () => null : f ? () => we(E) : void 0, children: [
|
|
8719
8721
|
o,
|
|
8720
|
-
|
|
8722
|
+
p ? le(i) : se(i)
|
|
8721
8723
|
] }), re = () => x ? /* @__PURE__ */ c(wu, { error: !0, children: x }) : null, De = (ie, Ce) => /* @__PURE__ */ $(H3, { fullWidth: !0, ...b, error: !!m, size: "small", children: [
|
|
8722
8724
|
/* @__PURE__ */ c(P3, { shrink: X ? !!(E != null && E.length) : !!E, id: `${w}-label`, sx: {
|
|
8723
8725
|
lineHeight: U === "smaller" ? 1.4 : void 0
|
|
@@ -8741,12 +8743,12 @@ function R4({
|
|
|
8741
8743
|
return /* @__PURE__ */ c(Be, { name: n, render: (f, {
|
|
8742
8744
|
invalid: g,
|
|
8743
8745
|
error: m
|
|
8744
|
-
}) => /* @__PURE__ */ c(E4, { ...s, ...f, id: n, error: g, helperText: m == null ? void 0 : m.message, onChange: (
|
|
8746
|
+
}) => /* @__PURE__ */ c(E4, { ...s, ...f, id: n, error: g, helperText: m == null ? void 0 : m.message, onChange: (p, x) => {
|
|
8745
8747
|
var b;
|
|
8746
|
-
f.onChange(
|
|
8747
|
-
}, onBlur: (
|
|
8748
|
+
f.onChange(p.target.value), (b = s == null ? void 0 : s.onChange) == null || b.call(s, p, x);
|
|
8749
|
+
}, onBlur: (p) => {
|
|
8748
8750
|
var x;
|
|
8749
|
-
(x = s == null ? void 0 : s.onBlur) == null || x.call(s,
|
|
8751
|
+
(x = s == null ? void 0 : s.onBlur) == null || x.call(s, p);
|
|
8750
8752
|
} }), disabled: i, formControlProps: a, ...o });
|
|
8751
8753
|
}
|
|
8752
8754
|
function D4({
|
|
@@ -8758,7 +8760,7 @@ function D4({
|
|
|
8758
8760
|
wrapperProps: f,
|
|
8759
8761
|
fieldProps: g,
|
|
8760
8762
|
disabled: m,
|
|
8761
|
-
...
|
|
8763
|
+
...p
|
|
8762
8764
|
}) {
|
|
8763
8765
|
return /* @__PURE__ */ c(Be, { name: n, formControlProps: {
|
|
8764
8766
|
label: o,
|
|
@@ -8766,9 +8768,9 @@ function D4({
|
|
|
8766
8768
|
placement: a,
|
|
8767
8769
|
labelProps: s,
|
|
8768
8770
|
wrapperProps: f
|
|
8769
|
-
}, disabled: m, render: (x) => /* @__PURE__ */ c(G3, { ...
|
|
8771
|
+
}, disabled: m, render: (x) => /* @__PURE__ */ c(G3, { ...p, ...x, checked: x.value, onChange: (b, w) => {
|
|
8770
8772
|
var I;
|
|
8771
|
-
x.onChange(w), (I =
|
|
8773
|
+
x.onChange(w), (I = p == null ? void 0 : p.onChange) == null || I.call(p, b, w);
|
|
8772
8774
|
} }), ...g });
|
|
8773
8775
|
}
|
|
8774
8776
|
function Be({
|
|
@@ -8780,7 +8782,7 @@ function Be({
|
|
|
8780
8782
|
render: f,
|
|
8781
8783
|
rules: g,
|
|
8782
8784
|
validationMode: m = "onChange",
|
|
8783
|
-
shouldUnregister:
|
|
8785
|
+
shouldUnregister: p,
|
|
8784
8786
|
formControlProps: x
|
|
8785
8787
|
}) {
|
|
8786
8788
|
const {
|
|
@@ -8804,7 +8806,7 @@ function Be({
|
|
|
8804
8806
|
name: B,
|
|
8805
8807
|
control: o,
|
|
8806
8808
|
defaultValue: i,
|
|
8807
|
-
shouldUnregister:
|
|
8809
|
+
shouldUnregister: p,
|
|
8808
8810
|
rules: g
|
|
8809
8811
|
});
|
|
8810
8812
|
ef({
|
|
@@ -8869,10 +8871,10 @@ function _w({
|
|
|
8869
8871
|
variant: f = "contained",
|
|
8870
8872
|
...g
|
|
8871
8873
|
}) {
|
|
8872
|
-
const [m,
|
|
8873
|
-
I.stopPropagation(),
|
|
8874
|
+
const [m, p] = Ge(!1), x = lt(null), b = (I) => {
|
|
8875
|
+
I.stopPropagation(), p((S) => !S);
|
|
8874
8876
|
}, w = (I) => {
|
|
8875
|
-
x.current && x.current.contains(I.target) ||
|
|
8877
|
+
x.current && x.current.contains(I.target) || p(!1);
|
|
8876
8878
|
};
|
|
8877
8879
|
return /* @__PURE__ */ $(He, { children: [
|
|
8878
8880
|
/* @__PURE__ */ $(Tm, { variant: f, ref: x, disabled: o, size: i, color: s, ...a, children: [
|
|
@@ -8893,7 +8895,7 @@ function _w({
|
|
|
8893
8895
|
textAlign: "left"
|
|
8894
8896
|
}, children: n.map((k) => /* @__PURE__ */ $(Om, { disabled: k.disabled, onClick: (O) => {
|
|
8895
8897
|
var B;
|
|
8896
|
-
O.stopPropagation(),
|
|
8898
|
+
O.stopPropagation(), p(!1), (B = k.onClick) == null || B.call(k, O);
|
|
8897
8899
|
}, children: [
|
|
8898
8900
|
k.icon ? /* @__PURE__ */ c(zm, { sx: {
|
|
8899
8901
|
color: "inherit"
|
|
@@ -8915,13 +8917,13 @@ function O4({
|
|
|
8915
8917
|
}, g) {
|
|
8916
8918
|
const {
|
|
8917
8919
|
thousandSeparator: m,
|
|
8918
|
-
decimalSeparator:
|
|
8920
|
+
decimalSeparator: p
|
|
8919
8921
|
} = Xt(), x = Xe(() => {
|
|
8920
8922
|
const w = Array.from({
|
|
8921
8923
|
length: a
|
|
8922
8924
|
}).reduce((S) => S += "0", "");
|
|
8923
|
-
return `0${m}0${
|
|
8924
|
-
}, [a,
|
|
8925
|
+
return `0${m}0${p}${w}`;
|
|
8926
|
+
}, [a, p, m]), b = Xe(() => {
|
|
8925
8927
|
const w = io(n).format(s ?? x);
|
|
8926
8928
|
return [i, w, o].filter(Boolean).join("");
|
|
8927
8929
|
}, [i, o, x, n, s]);
|
|
@@ -8938,10 +8940,10 @@ function z4({
|
|
|
8938
8940
|
...g
|
|
8939
8941
|
}, m) {
|
|
8940
8942
|
const {
|
|
8941
|
-
prefix:
|
|
8943
|
+
prefix: p = "",
|
|
8942
8944
|
suffix: x = ""
|
|
8943
8945
|
} = Yl(o);
|
|
8944
|
-
return /* @__PURE__ */ c(Sf, { decimalDigit: n, ref: m, prefix: `${i} ${
|
|
8946
|
+
return /* @__PURE__ */ c(Sf, { decimalDigit: n, ref: m, prefix: `${i} ${p}`, suffix: `${x} ${a}`, value: s, sx: {
|
|
8945
8947
|
color: s ? void 0 : "text.secondary",
|
|
8946
8948
|
...f
|
|
8947
8949
|
}, ...g });
|
|
@@ -8956,7 +8958,7 @@ function W4({
|
|
|
8956
8958
|
convertToLocal: f,
|
|
8957
8959
|
format: g,
|
|
8958
8960
|
showUndefinedMessage: m = !1,
|
|
8959
|
-
unDefinedMessage:
|
|
8961
|
+
unDefinedMessage: p = "-",
|
|
8960
8962
|
...x
|
|
8961
8963
|
}, b) {
|
|
8962
8964
|
const {
|
|
@@ -8966,7 +8968,7 @@ function W4({
|
|
|
8966
8968
|
convertToLocaleDateTime: k
|
|
8967
8969
|
} = Xt();
|
|
8968
8970
|
if (!n)
|
|
8969
|
-
return m ?
|
|
8971
|
+
return m ? p : null;
|
|
8970
8972
|
const O = g ?? (a ? S : o ? I : w);
|
|
8971
8973
|
let B, V = k;
|
|
8972
8974
|
f != null && (V = f), V ? B = Tt.utc(n, i).local() : B = Tt(n, i);
|
|
@@ -9040,7 +9042,7 @@ function G4({
|
|
|
9040
9042
|
enableExport: f,
|
|
9041
9043
|
enableSearch: g,
|
|
9042
9044
|
search: m,
|
|
9043
|
-
clear:
|
|
9045
|
+
clear: p,
|
|
9044
9046
|
triggerAction: x
|
|
9045
9047
|
}) {
|
|
9046
9048
|
const b = Xe(() => ({
|
|
@@ -9048,12 +9050,12 @@ function G4({
|
|
|
9048
9050
|
loading: i,
|
|
9049
9051
|
data: o,
|
|
9050
9052
|
search: m,
|
|
9051
|
-
clear:
|
|
9053
|
+
clear: p,
|
|
9052
9054
|
enableClear: a,
|
|
9053
9055
|
enableCreateItem: s,
|
|
9054
9056
|
enableExport: f,
|
|
9055
9057
|
enableSearch: g
|
|
9056
|
-
}), [o, a, s, f, g, i,
|
|
9058
|
+
}), [o, a, s, f, g, i, p, x, m]);
|
|
9057
9059
|
return /* @__PURE__ */ c(Cf.Provider, { value: b, children: n });
|
|
9058
9060
|
}
|
|
9059
9061
|
const V4 = () => gn(Cf);
|
|
@@ -9097,7 +9099,7 @@ function kf(n) {
|
|
|
9097
9099
|
moreCommands: g,
|
|
9098
9100
|
commandsProps: m
|
|
9099
9101
|
} = n, {
|
|
9100
|
-
t:
|
|
9102
|
+
t: p
|
|
9101
9103
|
} = qe(), {
|
|
9102
9104
|
visible: x,
|
|
9103
9105
|
disabled: b,
|
|
@@ -9113,13 +9115,13 @@ function kf(n) {
|
|
|
9113
9115
|
Xi,
|
|
9114
9116
|
{
|
|
9115
9117
|
startIcon: /* @__PURE__ */ c(Kc, {}),
|
|
9116
|
-
title: `${
|
|
9118
|
+
title: `${p("listpage.listbuttons.searchtitle")}
|
|
9117
9119
|
(${I.toUpperCase()})`,
|
|
9118
9120
|
onClick: o,
|
|
9119
9121
|
color: "success",
|
|
9120
9122
|
disabled: b.search,
|
|
9121
9123
|
loading: w,
|
|
9122
|
-
children:
|
|
9124
|
+
children: p("listpage.listbuttons.search"),
|
|
9123
9125
|
...m == null ? void 0 : m.search
|
|
9124
9126
|
},
|
|
9125
9127
|
"search"
|
|
@@ -9129,11 +9131,11 @@ function kf(n) {
|
|
|
9129
9131
|
startIcon: /* @__PURE__ */ c(ou, {}),
|
|
9130
9132
|
color: "secondary",
|
|
9131
9133
|
variant: "outlined",
|
|
9132
|
-
title: `${
|
|
9134
|
+
title: `${p("listpage.listbuttons.cleartitle")}
|
|
9133
9135
|
(${k.toUpperCase()})`,
|
|
9134
9136
|
onClick: a,
|
|
9135
9137
|
disabled: b.clear,
|
|
9136
|
-
children:
|
|
9138
|
+
children: p("listpage.listbuttons.clear"),
|
|
9137
9139
|
...m == null ? void 0 : m.clear
|
|
9138
9140
|
},
|
|
9139
9141
|
"clear"
|
|
@@ -9142,7 +9144,7 @@ function kf(n) {
|
|
|
9142
9144
|
{
|
|
9143
9145
|
color: "secondary",
|
|
9144
9146
|
variant: "outlined",
|
|
9145
|
-
title: `${
|
|
9147
|
+
title: `${p("listpage.settings.exportExcel")}
|
|
9146
9148
|
(${O.toUpperCase()})`,
|
|
9147
9149
|
onClick: s,
|
|
9148
9150
|
disabled: b.export,
|
|
@@ -9154,11 +9156,11 @@ function kf(n) {
|
|
|
9154
9156
|
Vr,
|
|
9155
9157
|
{
|
|
9156
9158
|
startIcon: /* @__PURE__ */ c(Nl, {}),
|
|
9157
|
-
title: `${
|
|
9159
|
+
title: `${p("newitemtitle")}
|
|
9158
9160
|
(${S.toUpperCase()})`,
|
|
9159
9161
|
onClick: () => i == null ? void 0 : i(),
|
|
9160
9162
|
disabled: b.create,
|
|
9161
|
-
children:
|
|
9163
|
+
children: p("listpage.listbuttons.newitem"),
|
|
9162
9164
|
...m == null ? void 0 : m.create
|
|
9163
9165
|
},
|
|
9164
9166
|
"create"
|
|
@@ -9172,7 +9174,7 @@ function kf(n) {
|
|
|
9172
9174
|
icon: /* @__PURE__ */ c(Kc, {}),
|
|
9173
9175
|
disabled: b.search,
|
|
9174
9176
|
onClick: o,
|
|
9175
|
-
children:
|
|
9177
|
+
children: p("listpage.listbuttons.search")
|
|
9176
9178
|
};
|
|
9177
9179
|
case "create":
|
|
9178
9180
|
return {
|
|
@@ -9180,7 +9182,7 @@ function kf(n) {
|
|
|
9180
9182
|
icon: /* @__PURE__ */ c(Nl, {}),
|
|
9181
9183
|
disabled: b.create,
|
|
9182
9184
|
onClick: i,
|
|
9183
|
-
children:
|
|
9185
|
+
children: p("listpage.listbuttons.newitem")
|
|
9184
9186
|
};
|
|
9185
9187
|
case "clear":
|
|
9186
9188
|
return {
|
|
@@ -9188,7 +9190,7 @@ function kf(n) {
|
|
|
9188
9190
|
icon: /* @__PURE__ */ c(ou, {}),
|
|
9189
9191
|
disabled: b.clear,
|
|
9190
9192
|
onClick: a,
|
|
9191
|
-
children:
|
|
9193
|
+
children: p("listpage.listbuttons.clear")
|
|
9192
9194
|
};
|
|
9193
9195
|
case "export":
|
|
9194
9196
|
return {
|
|
@@ -9196,7 +9198,7 @@ function kf(n) {
|
|
|
9196
9198
|
icon: /* @__PURE__ */ c(Yc, {}),
|
|
9197
9199
|
disabled: b.export,
|
|
9198
9200
|
onClick: s,
|
|
9199
|
-
children:
|
|
9201
|
+
children: p("listpage.settings.exportExcel")
|
|
9200
9202
|
};
|
|
9201
9203
|
}
|
|
9202
9204
|
}).filter(Boolean);
|
|
@@ -9220,13 +9222,13 @@ function Mf({
|
|
|
9220
9222
|
footerContent: f,
|
|
9221
9223
|
progressContent: g,
|
|
9222
9224
|
options: m,
|
|
9223
|
-
pageHeader:
|
|
9225
|
+
pageHeader: p,
|
|
9224
9226
|
moreContent: x,
|
|
9225
9227
|
tabsContent: b,
|
|
9226
9228
|
tabsHeaderContent: w
|
|
9227
9229
|
}) {
|
|
9228
9230
|
return /* @__PURE__ */ $(Ir, { style: m == null ? void 0 : m.style, sx: m == null ? void 0 : m.sx, children: [
|
|
9229
|
-
|
|
9231
|
+
p,
|
|
9230
9232
|
g,
|
|
9231
9233
|
i,
|
|
9232
9234
|
w,
|
|
@@ -9262,13 +9264,13 @@ function Z4({
|
|
|
9262
9264
|
enablePagination: f,
|
|
9263
9265
|
onCardMeta: g,
|
|
9264
9266
|
paginationProps: m,
|
|
9265
|
-
onActionCommandProps:
|
|
9267
|
+
onActionCommandProps: p,
|
|
9266
9268
|
emptyTextProps: x
|
|
9267
9269
|
}) {
|
|
9268
9270
|
const {
|
|
9269
9271
|
t: b
|
|
9270
9272
|
} = qe(), I = s == null ? void 0 : s.map((k, O) => {
|
|
9271
|
-
const B =
|
|
9273
|
+
const B = p(k, O), V = n ? /* @__PURE__ */ c(Jr, { ...B }) : void 0, N = g(k, V, B);
|
|
9272
9274
|
return /* @__PURE__ */ c(Ll, { size: {
|
|
9273
9275
|
lg: 3,
|
|
9274
9276
|
md: 4,
|
|
@@ -9303,7 +9305,7 @@ function J4({
|
|
|
9303
9305
|
const {
|
|
9304
9306
|
disabled: g,
|
|
9305
9307
|
loading: m,
|
|
9306
|
-
visible:
|
|
9308
|
+
visible: p
|
|
9307
9309
|
} = If(), {
|
|
9308
9310
|
t: x
|
|
9309
9311
|
} = qe(), {
|
|
@@ -9315,13 +9317,13 @@ function J4({
|
|
|
9315
9317
|
}
|
|
9316
9318
|
} = Xt();
|
|
9317
9319
|
Fn(b, n, {
|
|
9318
|
-
enabled: !g.search && !!
|
|
9320
|
+
enabled: !g.search && !!p.search && !m,
|
|
9319
9321
|
description: x("listpage.listbuttons.searchtitle"),
|
|
9320
9322
|
scopes: s,
|
|
9321
9323
|
...Ui,
|
|
9322
9324
|
...f
|
|
9323
9325
|
}), Fn(S, () => a == null ? void 0 : a(), {
|
|
9324
|
-
enabled: !g.search && !!
|
|
9326
|
+
enabled: !g.search && !!p.export && !m,
|
|
9325
9327
|
description: x("listpage.settings.exportExcel"),
|
|
9326
9328
|
scopes: s,
|
|
9327
9329
|
...Ui,
|
|
@@ -9329,7 +9331,7 @@ function J4({
|
|
|
9329
9331
|
}), Fn(w, () => {
|
|
9330
9332
|
o == null || o();
|
|
9331
9333
|
}, {
|
|
9332
|
-
enabled: !!o && !g.create && !!
|
|
9334
|
+
enabled: !!o && !g.create && !!p.create && !m,
|
|
9333
9335
|
description: x("newitemtitle"),
|
|
9334
9336
|
scopes: s,
|
|
9335
9337
|
...Ui,
|
|
@@ -9359,7 +9361,7 @@ function Q4({
|
|
|
9359
9361
|
cardProps: f,
|
|
9360
9362
|
children: g,
|
|
9361
9363
|
columns: m = [],
|
|
9362
|
-
commandsProps:
|
|
9364
|
+
commandsProps: p,
|
|
9363
9365
|
data: x,
|
|
9364
9366
|
dataCount: b,
|
|
9365
9367
|
disabled: w,
|
|
@@ -9458,7 +9460,7 @@ function Q4({
|
|
|
9458
9460
|
onSearch: fe,
|
|
9459
9461
|
onCreateItem: () => pe("create"),
|
|
9460
9462
|
onClear: Te,
|
|
9461
|
-
commandsProps:
|
|
9463
|
+
commandsProps: p
|
|
9462
9464
|
};
|
|
9463
9465
|
if (Q)
|
|
9464
9466
|
return Q(z);
|
|
@@ -9480,7 +9482,7 @@ function Q4({
|
|
|
9480
9482
|
}), data: x, enableActionCommands: S }) : null, Zt = () => {
|
|
9481
9483
|
var me;
|
|
9482
9484
|
const z = {
|
|
9483
|
-
newRowButtonText: ((me =
|
|
9485
|
+
newRowButtonText: ((me = p == null ? void 0 : p.create) == null ? void 0 : me.children) ?? ie("newitem"),
|
|
9484
9486
|
onNewRow: () => pe("create"),
|
|
9485
9487
|
...De,
|
|
9486
9488
|
columns: S ? [...m ?? [], {
|
|
@@ -9519,7 +9521,7 @@ function Q4({
|
|
|
9519
9521
|
const z = _e.reason, J = _e.disabled, me = {
|
|
9520
9522
|
fetch: ie("edit"),
|
|
9521
9523
|
copy: ie("tags.copy"),
|
|
9522
|
-
create: ((Ye =
|
|
9524
|
+
create: ((Ye = p == null ? void 0 : p.create) == null ? void 0 : Ye.children) ?? ie("newitem"),
|
|
9523
9525
|
view: ie("browse")
|
|
9524
9526
|
}, Le = {
|
|
9525
9527
|
enableCreate: !0,
|
|
@@ -9528,7 +9530,7 @@ function Q4({
|
|
|
9528
9530
|
header: J ? ie("browse") : me[z],
|
|
9529
9531
|
commandsProps: {
|
|
9530
9532
|
create: {
|
|
9531
|
-
children: ((mt =
|
|
9533
|
+
children: ((mt = p == null ? void 0 : p.create) == null ? void 0 : mt.children) ?? ie("newitem")
|
|
9532
9534
|
}
|
|
9533
9535
|
},
|
|
9534
9536
|
onAfterSave: (Yt, {
|
|
@@ -9563,7 +9565,7 @@ function j4({
|
|
|
9563
9565
|
enablePagination: f = !0,
|
|
9564
9566
|
enableSorting: g = !0,
|
|
9565
9567
|
form: m,
|
|
9566
|
-
meta:
|
|
9568
|
+
meta: p,
|
|
9567
9569
|
onChange: x,
|
|
9568
9570
|
onClear: b,
|
|
9569
9571
|
searchOnLoad: w = !0,
|
|
@@ -9587,7 +9589,7 @@ function j4({
|
|
|
9587
9589
|
manualFiltering: I === "server",
|
|
9588
9590
|
// setters
|
|
9589
9591
|
onColumnFiltersChange: (T) => {
|
|
9590
|
-
const X = T instanceof Function ? T(
|
|
9592
|
+
const X = T instanceof Function ? T(p.columnFilters) : T;
|
|
9591
9593
|
Z({
|
|
9592
9594
|
columnFilters: X,
|
|
9593
9595
|
reason: "columnfilter"
|
|
@@ -9595,7 +9597,7 @@ function j4({
|
|
|
9595
9597
|
},
|
|
9596
9598
|
...f ? {
|
|
9597
9599
|
onPaginationChange: (T) => {
|
|
9598
|
-
const X = T instanceof Function ? T(
|
|
9600
|
+
const X = T instanceof Function ? T(p.pagination) : T;
|
|
9599
9601
|
Z({
|
|
9600
9602
|
pagination: X,
|
|
9601
9603
|
reason: "pagination"
|
|
@@ -9607,7 +9609,7 @@ function j4({
|
|
|
9607
9609
|
} : void 0,
|
|
9608
9610
|
...g ? {
|
|
9609
9611
|
onSortingChange: (T) => {
|
|
9610
|
-
const X = T instanceof Function ? T(
|
|
9612
|
+
const X = T instanceof Function ? T(p.sorting) : T;
|
|
9611
9613
|
Z({
|
|
9612
9614
|
sorting: X,
|
|
9613
9615
|
reason: "sorting"
|
|
@@ -9621,12 +9623,12 @@ function j4({
|
|
|
9621
9623
|
// states
|
|
9622
9624
|
state: {
|
|
9623
9625
|
...f ? {
|
|
9624
|
-
pagination:
|
|
9626
|
+
pagination: p == null ? void 0 : p.pagination
|
|
9625
9627
|
} : void 0,
|
|
9626
9628
|
...g ? {
|
|
9627
|
-
sorting:
|
|
9629
|
+
sorting: p == null ? void 0 : p.sorting
|
|
9628
9630
|
} : void 0,
|
|
9629
|
-
columnFilters:
|
|
9631
|
+
columnFilters: p == null ? void 0 : p.columnFilters,
|
|
9630
9632
|
...S == null ? void 0 : S.state
|
|
9631
9633
|
}
|
|
9632
9634
|
}, Z = async (T) => {
|
|
@@ -9658,7 +9660,7 @@ function j4({
|
|
|
9658
9660
|
pagination: {
|
|
9659
9661
|
pageIndex: Xr
|
|
9660
9662
|
}
|
|
9661
|
-
}), tableProps: K, activeSegmentIndex:
|
|
9663
|
+
}), tableProps: K, activeSegmentIndex: p == null ? void 0 : p.selectedTabIndex, onTabChanged: (T) => {
|
|
9662
9664
|
Z({
|
|
9663
9665
|
reason: "tabChanged",
|
|
9664
9666
|
...T
|
|
@@ -9666,7 +9668,7 @@ function j4({
|
|
|
9666
9668
|
}, onClear: q, cardProps: {
|
|
9667
9669
|
enablePagination: f,
|
|
9668
9670
|
paginationProps: {
|
|
9669
|
-
count: Math.ceil((i ?? (o == null ? void 0 : o.length) ?? 0) / ((E =
|
|
9671
|
+
count: Math.ceil((i ?? (o == null ? void 0 : o.length) ?? 0) / ((E = p == null ? void 0 : p.pagination) == null ? void 0 : E.pageSize)),
|
|
9670
9672
|
onChange(T, X) {
|
|
9671
9673
|
Z({
|
|
9672
9674
|
pagination: {
|
|
@@ -9706,14 +9708,14 @@ function cs({
|
|
|
9706
9708
|
footerContent: f,
|
|
9707
9709
|
progressContent: g,
|
|
9708
9710
|
options: m,
|
|
9709
|
-
pageHeader:
|
|
9711
|
+
pageHeader: p,
|
|
9710
9712
|
moreContent: x,
|
|
9711
9713
|
stickyContent: b,
|
|
9712
9714
|
tabsContent: w,
|
|
9713
9715
|
tabsHeaderContent: I
|
|
9714
9716
|
}) {
|
|
9715
9717
|
return /* @__PURE__ */ $(Ir, { style: m == null ? void 0 : m.style, sx: m == null ? void 0 : m.sx, children: [
|
|
9716
|
-
|
|
9718
|
+
p,
|
|
9717
9719
|
g,
|
|
9718
9720
|
i,
|
|
9719
9721
|
I,
|
|
@@ -9748,15 +9750,15 @@ function t5({
|
|
|
9748
9750
|
} = Xt(), [i, a] = Ul(), s = Xe(() => {
|
|
9749
9751
|
if (n) {
|
|
9750
9752
|
const m = new URLSearchParams();
|
|
9751
|
-
return i.forEach((
|
|
9752
|
-
x in n && m.append(x,
|
|
9753
|
+
return i.forEach((p, x) => {
|
|
9754
|
+
x in n && m.append(x, p);
|
|
9753
9755
|
}), m.toString();
|
|
9754
9756
|
}
|
|
9755
9757
|
return i.toString();
|
|
9756
9758
|
}, [i, n]), f = he(() => {
|
|
9757
9759
|
const {
|
|
9758
9760
|
page: m,
|
|
9759
|
-
size:
|
|
9761
|
+
size: p,
|
|
9760
9762
|
sorting: x = [],
|
|
9761
9763
|
[o]: b,
|
|
9762
9764
|
...w
|
|
@@ -9780,19 +9782,19 @@ function t5({
|
|
|
9780
9782
|
meta: {
|
|
9781
9783
|
pagination: {
|
|
9782
9784
|
pageIndex: m ? Number(m) : Xr,
|
|
9783
|
-
pageSize:
|
|
9785
|
+
pageSize: p ? Number(p) : no
|
|
9784
9786
|
},
|
|
9785
9787
|
sorting: x,
|
|
9786
9788
|
selectedTabIndex: b
|
|
9787
9789
|
}
|
|
9788
9790
|
};
|
|
9789
|
-
}, [s, o]), g = he((m,
|
|
9791
|
+
}, [s, o]), g = he((m, p, x) => {
|
|
9790
9792
|
const b = {
|
|
9791
9793
|
...m,
|
|
9792
9794
|
...x,
|
|
9793
|
-
page:
|
|
9794
|
-
size:
|
|
9795
|
-
sorting:
|
|
9795
|
+
page: p.pagination.pageIndex,
|
|
9796
|
+
size: p.pagination.pageSize,
|
|
9797
|
+
sorting: p.sorting
|
|
9796
9798
|
}, w = Jc.stringify(b, {
|
|
9797
9799
|
skipNulls: !0,
|
|
9798
9800
|
strictNullHandling: !0,
|
|
@@ -9818,7 +9820,7 @@ function n5({
|
|
|
9818
9820
|
fallbackSegmentIndex: f,
|
|
9819
9821
|
onNeedData: g,
|
|
9820
9822
|
tabs: m,
|
|
9821
|
-
onActionClick:
|
|
9823
|
+
onActionClick: p,
|
|
9822
9824
|
...x
|
|
9823
9825
|
}) {
|
|
9824
9826
|
const {
|
|
@@ -9895,7 +9897,7 @@ function n5({
|
|
|
9895
9897
|
});
|
|
9896
9898
|
};
|
|
9897
9899
|
return /* @__PURE__ */ c(Dn, { onActionClick: (E, T) => {
|
|
9898
|
-
E !== "delete" && (E === "create" ? Z() : q(E, T)),
|
|
9900
|
+
E !== "delete" && (E === "create" ? Z() : q(E, T)), p == null || p(E, T);
|
|
9899
9901
|
}, activeSegmentIndex: S, onWrapperLayout: (E) => /* @__PURE__ */ $(He, { children: [
|
|
9900
9902
|
E.pageContent,
|
|
9901
9903
|
E.detailPageContent,
|
|
@@ -9914,13 +9916,13 @@ function r5({
|
|
|
9914
9916
|
}) {
|
|
9915
9917
|
const {
|
|
9916
9918
|
t: m
|
|
9917
|
-
} = qe(), [
|
|
9919
|
+
} = qe(), [p, x] = Ge(i), b = Object.keys(p).length;
|
|
9918
9920
|
return /* @__PURE__ */ c(vn, { open: a, onClose: s, sx: {
|
|
9919
9921
|
maxWidth: 900
|
|
9920
9922
|
}, ...n, children: /* @__PURE__ */ c(Dn, { enableCreateItem: !1, enableClear: !0, onLayout: (w) => /* @__PURE__ */ c(cs, { ...w }), ...g, onClose: s, tableProps: {
|
|
9921
9923
|
enableRowSelection: !0,
|
|
9922
9924
|
state: {
|
|
9923
|
-
rowSelection:
|
|
9925
|
+
rowSelection: p
|
|
9924
9926
|
},
|
|
9925
9927
|
onRowSelectionChange: x,
|
|
9926
9928
|
skeletonRows: 5,
|
|
@@ -9928,7 +9930,7 @@ function r5({
|
|
|
9928
9930
|
...f
|
|
9929
9931
|
}, onClear: () => x({}), onCommands: (w) => /* @__PURE__ */ $(He, { children: [
|
|
9930
9932
|
/* @__PURE__ */ c(Dn.Commands, { ...w }),
|
|
9931
|
-
/* @__PURE__ */ c(J3, { badgeContent: b, color: "primary", children: /* @__PURE__ */ c(Vr, { startIcon: /* @__PURE__ */ c(K3, {}), color: "success", onClick: () => o == null ? void 0 : o(
|
|
9933
|
+
/* @__PURE__ */ c(J3, { badgeContent: b, color: "primary", children: /* @__PURE__ */ c(Vr, { startIcon: /* @__PURE__ */ c(K3, {}), color: "success", onClick: () => o == null ? void 0 : o(p), disabled: !b, children: m("listpage.selection.selectClose") }) })
|
|
9932
9934
|
] }) }) });
|
|
9933
9935
|
}
|
|
9934
9936
|
const i5 = {
|
|
@@ -9952,7 +9954,7 @@ function Dn({
|
|
|
9952
9954
|
tabs: g,
|
|
9953
9955
|
...m
|
|
9954
9956
|
}) {
|
|
9955
|
-
const [
|
|
9957
|
+
const [p, x] = Ge(() => {
|
|
9956
9958
|
let w;
|
|
9957
9959
|
if (g) {
|
|
9958
9960
|
const I = n ?? i, S = g && I <= g.length - 1 ? g[I].value : "";
|
|
@@ -9963,7 +9965,7 @@ function Dn({
|
|
|
9963
9965
|
}
|
|
9964
9966
|
return ao({}, i5, o, w);
|
|
9965
9967
|
});
|
|
9966
|
-
return /* @__PURE__ */ c(e5, { ...m, meta:
|
|
9968
|
+
return /* @__PURE__ */ c(e5, { ...m, meta: p, onChange: (w, I) => {
|
|
9967
9969
|
x((S) => {
|
|
9968
9970
|
const k = {
|
|
9969
9971
|
...S,
|
|
@@ -12031,13 +12033,13 @@ function Iw({
|
|
|
12031
12033
|
}) {
|
|
12032
12034
|
const {
|
|
12033
12035
|
t: f
|
|
12034
|
-
} = qe(), [g, m] = Ge(!1),
|
|
12036
|
+
} = qe(), [g, m] = Ge(!1), p = fx((w) => w.breakpoints.down("md")), x = (w) => () => {
|
|
12035
12037
|
i == null || i(w), m(!1);
|
|
12036
12038
|
}, b = () => /* @__PURE__ */ c(Ot, { flexDirection: "column", children: n == null ? void 0 : n.map((w) => /* @__PURE__ */ c(M9, { variant: "text", startIcon: w.icon, endIcon: w.endIcon, active: o === w.key, onClick: x(w), children: /* @__PURE__ */ c("span", { style: {
|
|
12037
12039
|
flexGrow: "1",
|
|
12038
12040
|
textAlign: "left"
|
|
12039
12041
|
}, children: w.name }) }, w.key)) });
|
|
12040
|
-
if (
|
|
12042
|
+
if (p) {
|
|
12041
12043
|
const w = a || /* @__PURE__ */ $(He, { children: [
|
|
12042
12044
|
/* @__PURE__ */ c(km, { sx: {
|
|
12043
12045
|
color: "text.primary",
|