@realtek/core-theme 0.0.265 → 0.0.267
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-lib/Breadcrumb-C4yW3rKa.cjs +3 -0
- package/dist-lib/Breadcrumb-C4yW3rKa.cjs.map +1 -0
- package/dist-lib/{Breadcrumb-BgXaVW_N.js → Breadcrumb-ClOPzd5R.js} +840 -645
- package/dist-lib/Breadcrumb-ClOPzd5R.js.map +1 -0
- package/dist-lib/index.cjs +7 -7
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +11798 -11494
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
- package/dist-lib/Breadcrumb-BgXaVW_N.js.map +0 -1
- package/dist-lib/Breadcrumb-DVoedtaa.cjs +0 -3
- package/dist-lib/Breadcrumb-DVoedtaa.cjs.map +0 -1
|
@@ -1240,7 +1240,7 @@ async function It(e, { gateway: t, strategies: i }) {
|
|
|
1240
1240
|
async function Lt() {
|
|
1241
1241
|
let e = [];
|
|
1242
1242
|
try {
|
|
1243
|
-
e = await
|
|
1243
|
+
e = await tr();
|
|
1244
1244
|
} catch {
|
|
1245
1245
|
e = [];
|
|
1246
1246
|
}
|
|
@@ -1268,25 +1268,25 @@ async function Rt() {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
return t;
|
|
1270
1270
|
}
|
|
1271
|
-
var
|
|
1272
|
-
function
|
|
1271
|
+
var zt = "/admin/form-groups", Bt = "/admin/config-defaults", Vt = "000000000000000000000000";
|
|
1272
|
+
function Ht(e) {
|
|
1273
1273
|
let t = String(e ?? "").trim();
|
|
1274
|
-
return t === "" || t ===
|
|
1274
|
+
return t === "" || t === Vt;
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function Ut(e = {}) {
|
|
1277
1277
|
let t = new URLSearchParams();
|
|
1278
1278
|
e.module && t.set("module", e.module), e.clientId && t.set("clientId", e.clientId), e.region && t.set("region", e.region);
|
|
1279
1279
|
let n = t.toString();
|
|
1280
1280
|
return n ? `?${n}` : "";
|
|
1281
1281
|
}
|
|
1282
|
-
async function
|
|
1283
|
-
let i = await n(r, `${
|
|
1282
|
+
async function Wt(e = "", t = {}) {
|
|
1283
|
+
let i = await n(r, `${zt}${Ut({
|
|
1284
1284
|
...t,
|
|
1285
1285
|
module: e || t.module || ""
|
|
1286
1286
|
})}`), a = i?.data;
|
|
1287
1287
|
return Array.isArray(a) ? a : a && Array.isArray(a.groups) ? a.groups : Array.isArray(i) ? i : i && Array.isArray(i.groups) ? i.groups : [];
|
|
1288
1288
|
}
|
|
1289
|
-
async function
|
|
1289
|
+
async function Gt({ offset: e = 0, limit: t = 100, sortBy: i = "new", searchvalue: a = "" } = {}) {
|
|
1290
1290
|
let o = new URLSearchParams({
|
|
1291
1291
|
offset: String(e),
|
|
1292
1292
|
limit: String(t),
|
|
@@ -1297,29 +1297,29 @@ async function Ut({ offset: e = 0, limit: t = 100, sortBy: i = "new", searchvalu
|
|
|
1297
1297
|
let u = await n(r, `/client/view?${o.toString()}`), d = u?.data ?? u;
|
|
1298
1298
|
return d?.clients ?? d?.Clients ?? d?.items ?? [];
|
|
1299
1299
|
}
|
|
1300
|
-
async function
|
|
1300
|
+
async function Kt(e) {
|
|
1301
1301
|
let t = await n(r, `/filter-dropdown-fields?module=${encodeURIComponent(e)}`), i = t?.data ?? t;
|
|
1302
1302
|
return Array.isArray(i) ? i : [];
|
|
1303
1303
|
}
|
|
1304
|
-
async function
|
|
1305
|
-
return n(r, `${
|
|
1304
|
+
async function qt(e, t = {}) {
|
|
1305
|
+
return n(r, `${zt}${Ut(t)}`, {
|
|
1306
1306
|
method: "POST",
|
|
1307
1307
|
headers: { "Content-Type": "application/json" },
|
|
1308
1308
|
body: JSON.stringify(e)
|
|
1309
1309
|
});
|
|
1310
1310
|
}
|
|
1311
|
-
async function
|
|
1312
|
-
return n(r, `${
|
|
1311
|
+
async function Jt(e, t, i = {}) {
|
|
1312
|
+
return n(r, `${zt}/${e}${Ut(i)}`, {
|
|
1313
1313
|
method: "PUT",
|
|
1314
1314
|
headers: { "Content-Type": "application/json" },
|
|
1315
1315
|
body: JSON.stringify(t)
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
1318
|
-
async function
|
|
1319
|
-
return n(r, `${
|
|
1318
|
+
async function Yt(e, t = {}) {
|
|
1319
|
+
return n(r, `${zt}/${e}${Ut(t)}`, { method: "DELETE" });
|
|
1320
1320
|
}
|
|
1321
|
-
async function
|
|
1322
|
-
return n(r, `${
|
|
1321
|
+
async function Xt(e, t) {
|
|
1322
|
+
return n(r, `${Bt}/request-otp`, {
|
|
1323
1323
|
method: "POST",
|
|
1324
1324
|
body: JSON.stringify({
|
|
1325
1325
|
scope: e,
|
|
@@ -1327,8 +1327,8 @@ async function Jt(e, t) {
|
|
|
1327
1327
|
})
|
|
1328
1328
|
});
|
|
1329
1329
|
}
|
|
1330
|
-
async function
|
|
1331
|
-
return n(r, `${
|
|
1330
|
+
async function Zt(e, t, i) {
|
|
1331
|
+
return n(r, `${Bt}/apply`, {
|
|
1332
1332
|
method: "POST",
|
|
1333
1333
|
body: JSON.stringify({
|
|
1334
1334
|
scope: e,
|
|
@@ -1337,21 +1337,21 @@ async function Yt(e, t, i) {
|
|
|
1337
1337
|
})
|
|
1338
1338
|
});
|
|
1339
1339
|
}
|
|
1340
|
-
var
|
|
1341
|
-
async function
|
|
1342
|
-
let i = await n(r, `${
|
|
1340
|
+
var Qt = "/admin/detail-config";
|
|
1341
|
+
async function $t(e, t = {}) {
|
|
1342
|
+
let i = await n(r, `${Qt}${Ut({
|
|
1343
1343
|
module: e,
|
|
1344
1344
|
clientId: t.clientId
|
|
1345
1345
|
})}`), a = i?.data ?? i ?? {};
|
|
1346
1346
|
return {
|
|
1347
1347
|
module: a.module ?? e,
|
|
1348
|
-
clientId:
|
|
1348
|
+
clientId: Ht(a.clientId) ? "" : String(a.clientId),
|
|
1349
1349
|
fields: Array.isArray(a.fields) ? a.fields : [],
|
|
1350
1350
|
merges: Array.isArray(a.merges) ? a.merges : []
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
async function
|
|
1354
|
-
return n(r,
|
|
1353
|
+
async function en({ module: e, fields: t = [], merges: i = [], clientId: a = "" }) {
|
|
1354
|
+
return n(r, Qt, {
|
|
1355
1355
|
method: "POST",
|
|
1356
1356
|
headers: { "Content-Type": "application/json" },
|
|
1357
1357
|
body: JSON.stringify({
|
|
@@ -1362,88 +1362,88 @@ async function Qt({ module: e, fields: t = [], merges: i = [], clientId: a = ""
|
|
|
1362
1362
|
})
|
|
1363
1363
|
});
|
|
1364
1364
|
}
|
|
1365
|
-
var
|
|
1366
|
-
async function
|
|
1367
|
-
let e = await n(r,
|
|
1365
|
+
var tn = "/admin/detail-defaults";
|
|
1366
|
+
async function nn() {
|
|
1367
|
+
let e = await n(r, tn);
|
|
1368
1368
|
return e?.data ?? e ?? {};
|
|
1369
1369
|
}
|
|
1370
|
-
async function
|
|
1371
|
-
return n(r,
|
|
1370
|
+
async function rn(e) {
|
|
1371
|
+
return n(r, tn, {
|
|
1372
1372
|
method: "POST",
|
|
1373
1373
|
headers: { "Content-Type": "application/json" },
|
|
1374
1374
|
body: JSON.stringify(e)
|
|
1375
1375
|
});
|
|
1376
1376
|
}
|
|
1377
|
-
var
|
|
1378
|
-
async function
|
|
1379
|
-
let e = await n(r,
|
|
1377
|
+
var an = "/admin/ai-service-config";
|
|
1378
|
+
async function on() {
|
|
1379
|
+
let e = await n(r, an);
|
|
1380
1380
|
return e?.data ?? e ?? [];
|
|
1381
1381
|
}
|
|
1382
|
-
async function
|
|
1383
|
-
return n(r,
|
|
1382
|
+
async function sn(e) {
|
|
1383
|
+
return n(r, an, {
|
|
1384
1384
|
method: "POST",
|
|
1385
1385
|
headers: { "Content-Type": "application/json" },
|
|
1386
1386
|
body: JSON.stringify(e)
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
1389
|
-
async function
|
|
1390
|
-
return n(r, `${
|
|
1389
|
+
async function cn(e) {
|
|
1390
|
+
return n(r, `${an}?serviceKey=${encodeURIComponent(e)}`, { method: "DELETE" });
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
async function
|
|
1394
|
-
let e = await n(r,
|
|
1392
|
+
var ln = "/admin/bgc-integration-config";
|
|
1393
|
+
async function un() {
|
|
1394
|
+
let e = await n(r, ln);
|
|
1395
1395
|
return e?.data ?? e ?? {
|
|
1396
1396
|
updateMethod: "MANUAL",
|
|
1397
1397
|
enabled: !0
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
async function
|
|
1401
|
-
return n(r,
|
|
1400
|
+
async function dn(e) {
|
|
1401
|
+
return n(r, ln, {
|
|
1402
1402
|
method: "PUT",
|
|
1403
1403
|
headers: { "Content-Type": "application/json" },
|
|
1404
1404
|
body: JSON.stringify(e)
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
|
-
async function
|
|
1407
|
+
async function fn() {
|
|
1408
1408
|
let e = await n(r, "/integration-config/bgc/summary");
|
|
1409
1409
|
return e?.data ?? e ?? {
|
|
1410
1410
|
updateMethod: "MANUAL",
|
|
1411
1411
|
enabled: !0
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
|
-
var
|
|
1415
|
-
async function
|
|
1416
|
-
let e = await n(r,
|
|
1414
|
+
var P = "/admin/integration-config";
|
|
1415
|
+
async function pn() {
|
|
1416
|
+
let e = await n(r, P);
|
|
1417
1417
|
return e?.data ?? e ?? [];
|
|
1418
1418
|
}
|
|
1419
|
-
async function
|
|
1420
|
-
let t = await n(r, `${
|
|
1419
|
+
async function mn(e) {
|
|
1420
|
+
let t = await n(r, `${P}/${encodeURIComponent(e)}`);
|
|
1421
1421
|
return t?.data ?? t;
|
|
1422
1422
|
}
|
|
1423
|
-
async function
|
|
1423
|
+
async function hn(e) {
|
|
1424
1424
|
let t = e?.integrationKey;
|
|
1425
|
-
return n(r, t ? `${
|
|
1425
|
+
return n(r, t ? `${P}/${encodeURIComponent(t)}` : P, {
|
|
1426
1426
|
method: t ? "PUT" : "POST",
|
|
1427
1427
|
headers: { "Content-Type": "application/json" },
|
|
1428
1428
|
body: JSON.stringify(e)
|
|
1429
1429
|
});
|
|
1430
1430
|
}
|
|
1431
|
-
async function
|
|
1432
|
-
return n(r, `${
|
|
1431
|
+
async function gn(e) {
|
|
1432
|
+
return n(r, `${P}/${encodeURIComponent(e)}`, { method: "DELETE" });
|
|
1433
1433
|
}
|
|
1434
|
-
async function
|
|
1435
|
-
let t = await n(r, `${
|
|
1434
|
+
async function _n(e) {
|
|
1435
|
+
let t = await n(r, `${P}/test`, {
|
|
1436
1436
|
method: "POST",
|
|
1437
1437
|
headers: { "Content-Type": "application/json" },
|
|
1438
1438
|
body: JSON.stringify(e)
|
|
1439
1439
|
});
|
|
1440
1440
|
return t?.data ?? t;
|
|
1441
1441
|
}
|
|
1442
|
-
async function
|
|
1442
|
+
async function vn(e) {
|
|
1443
1443
|
let t = await n(r, `/integration-config/${encodeURIComponent(e)}/summary`);
|
|
1444
1444
|
return t?.data ?? t;
|
|
1445
1445
|
}
|
|
1446
|
-
async function
|
|
1446
|
+
async function yn(e, t, i) {
|
|
1447
1447
|
let a = await n(r, `/integration-config/${encodeURIComponent(e)}/apply-status/${encodeURIComponent(t)}`, {
|
|
1448
1448
|
method: "POST",
|
|
1449
1449
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1451,11 +1451,11 @@ async function _n(e, t, i) {
|
|
|
1451
1451
|
});
|
|
1452
1452
|
return a?.data ?? a;
|
|
1453
1453
|
}
|
|
1454
|
-
async function
|
|
1455
|
-
let i = await n(r, `${
|
|
1454
|
+
async function bn(e, t) {
|
|
1455
|
+
let i = await n(r, `${zt}?module=${encodeURIComponent(e)}&id=${encodeURIComponent(t)}&view=detail`), a = i?.data ?? i;
|
|
1456
1456
|
return Array.isArray(a) ? a : [];
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function xn(e) {
|
|
1459
1459
|
return {
|
|
1460
1460
|
key: e.role_id ?? e.id,
|
|
1461
1461
|
roleId: e.role_id ?? e.id,
|
|
@@ -1466,17 +1466,17 @@ function yn(e) {
|
|
|
1466
1466
|
raw: e
|
|
1467
1467
|
};
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Sn(e) {
|
|
1470
1470
|
return e?.raw?.role_id ?? e?.roleId ?? e?.key;
|
|
1471
1471
|
}
|
|
1472
|
-
async function
|
|
1473
|
-
let e = await n(r, "/get-roles"), t = e.data ?? e, i = M(t?.zinnext_default).map(
|
|
1472
|
+
async function Cn() {
|
|
1473
|
+
let e = await n(r, "/get-roles"), t = e.data ?? e, i = M(t?.zinnext_default).map(xn), a = M(t?.custom_roles).map(xn), o = [...i, ...a];
|
|
1474
1474
|
return {
|
|
1475
1475
|
roles: o,
|
|
1476
1476
|
total: o.length
|
|
1477
1477
|
};
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function wn(e) {
|
|
1480
1480
|
return {
|
|
1481
1481
|
key: e.teamId,
|
|
1482
1482
|
teamId: e.teamId,
|
|
@@ -1489,10 +1489,10 @@ function xn(e) {
|
|
|
1489
1489
|
raw: e
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function Tn(e) {
|
|
1493
1493
|
return e?.raw?.teamId ?? e?.teamId ?? e?.key;
|
|
1494
1494
|
}
|
|
1495
|
-
async function
|
|
1495
|
+
async function En({ offset: e = 0, limit: t = 10, sortBy: i = "new", search: a = "" } = {}) {
|
|
1496
1496
|
let o = await n(r, `/get-teams?${new URLSearchParams({
|
|
1497
1497
|
searchquery: a,
|
|
1498
1498
|
sortBy: i,
|
|
@@ -1500,12 +1500,12 @@ async function Cn({ offset: e = 0, limit: t = 10, sortBy: i = "new", search: a =
|
|
|
1500
1500
|
offset: String(e)
|
|
1501
1501
|
})}`), s = o.data ?? o, c = M(s?.teams, s, o?.teams), l = s?.totalCount ?? s?.total ?? c.length;
|
|
1502
1502
|
return {
|
|
1503
|
-
teams: c.map(
|
|
1503
|
+
teams: c.map(wn),
|
|
1504
1504
|
total: l
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
|
-
async function
|
|
1508
|
-
return n(r, `/team/edit?teamId=${
|
|
1507
|
+
async function Dn(e, { teamName: t, managerId: i, memberIds: a = [] }) {
|
|
1508
|
+
return n(r, `/team/edit?teamId=${Tn(e)}`, {
|
|
1509
1509
|
method: "PUT",
|
|
1510
1510
|
body: JSON.stringify({
|
|
1511
1511
|
team_name: t,
|
|
@@ -1515,7 +1515,7 @@ async function wn(e, { teamName: t, managerId: i, memberIds: a = [] }) {
|
|
|
1515
1515
|
})
|
|
1516
1516
|
});
|
|
1517
1517
|
}
|
|
1518
|
-
async function
|
|
1518
|
+
async function On(e, t, i, a = "listView") {
|
|
1519
1519
|
let o = await n(r, `${A}?${new URLSearchParams({
|
|
1520
1520
|
module: e,
|
|
1521
1521
|
userId: "0",
|
|
@@ -1524,8 +1524,8 @@ async function Tn(e, t, i, a = "listView") {
|
|
|
1524
1524
|
})}`), s = o.data ?? o;
|
|
1525
1525
|
return M(s, s?.visibleFields, o?.visibleFields);
|
|
1526
1526
|
}
|
|
1527
|
-
async function
|
|
1528
|
-
let r =
|
|
1527
|
+
async function kn(e, t = "listView", n = j) {
|
|
1528
|
+
let r = Sn(e), i = kt(n), a = await Promise.all(i.map(async ({ key: e, apiModule: n }) => [e, (await On(n, "roleId", r, t)).map((t, i) => ({
|
|
1529
1529
|
...Dt(t, i),
|
|
1530
1530
|
module: e,
|
|
1531
1531
|
apiModule: n,
|
|
@@ -1533,8 +1533,8 @@ async function En(e, t = "listView", n = j) {
|
|
|
1533
1533
|
}))]));
|
|
1534
1534
|
return Object.fromEntries(a);
|
|
1535
1535
|
}
|
|
1536
|
-
async function
|
|
1537
|
-
let n =
|
|
1536
|
+
async function An(e, t = "listView") {
|
|
1537
|
+
let n = Tn(e), r = await Promise.all(j.map(async ({ key: e, apiModule: r }) => [e, (await On(r, "teamId", n, t)).map((t, i) => ({
|
|
1538
1538
|
...Dt(t, i),
|
|
1539
1539
|
module: e,
|
|
1540
1540
|
apiModule: r,
|
|
@@ -1542,7 +1542,7 @@ async function Dn(e, t = "listView") {
|
|
|
1542
1542
|
}))]));
|
|
1543
1543
|
return Object.fromEntries(r);
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function jn(e, t) {
|
|
1546
1546
|
let n = !t || t === "listView";
|
|
1547
1547
|
return e.map((e, r) => {
|
|
1548
1548
|
let i = {
|
|
@@ -1578,37 +1578,37 @@ function On(e, t) {
|
|
|
1578
1578
|
].includes(e.type) && (i.dataSource = e.dataSource ?? "module", e.dataSource === "group" && (i.groupName = e.groupName ?? ""))), i;
|
|
1579
1579
|
});
|
|
1580
1580
|
}
|
|
1581
|
-
async function
|
|
1582
|
-
let s =
|
|
1581
|
+
async function Mn(e, t, i, a = "listView", o = j) {
|
|
1582
|
+
let s = Sn(e), c = kt(o).find((e) => e.key === t)?.apiModule ?? t;
|
|
1583
1583
|
return n(r, `${A}/role`, {
|
|
1584
1584
|
method: "PUT",
|
|
1585
1585
|
body: JSON.stringify({
|
|
1586
1586
|
module: c,
|
|
1587
1587
|
roleId: s,
|
|
1588
1588
|
configType: a,
|
|
1589
|
-
visibleFields:
|
|
1589
|
+
visibleFields: jn(i, a)
|
|
1590
1590
|
})
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1594
|
-
function
|
|
1593
|
+
var Nn = "/admin/role-form-permissions";
|
|
1594
|
+
function Pn(e) {
|
|
1595
1595
|
return `__group__:${e}`;
|
|
1596
1596
|
}
|
|
1597
|
-
async function
|
|
1598
|
-
let a =
|
|
1597
|
+
async function Fn(e, t, i = {}) {
|
|
1598
|
+
let a = Sn(e), o = new URLSearchParams({
|
|
1599
1599
|
module: t,
|
|
1600
1600
|
roleId: String(a ?? "")
|
|
1601
1601
|
});
|
|
1602
1602
|
i.clientId && o.set("clientId", i.clientId), i.region && o.set("region", i.region);
|
|
1603
|
-
let s = await n(r, `${
|
|
1603
|
+
let s = await n(r, `${Nn}?${o}`), c = s?.data ?? s;
|
|
1604
1604
|
return Array.isArray(c) ? c : [];
|
|
1605
1605
|
}
|
|
1606
|
-
async function
|
|
1607
|
-
let a =
|
|
1606
|
+
async function In(e, t, i) {
|
|
1607
|
+
let a = Sn(e), o = [], s = 0;
|
|
1608
1608
|
for (let e of i) {
|
|
1609
1609
|
e.locked || o.push({
|
|
1610
1610
|
label: e.label,
|
|
1611
|
-
field:
|
|
1611
|
+
field: Pn(e.name),
|
|
1612
1612
|
isVisible: e.enabled,
|
|
1613
1613
|
isEditable: e.editable !== !1,
|
|
1614
1614
|
order: s++
|
|
@@ -1631,19 +1631,19 @@ async function Nn(e, t, i) {
|
|
|
1631
1631
|
})
|
|
1632
1632
|
});
|
|
1633
1633
|
}
|
|
1634
|
-
async function
|
|
1635
|
-
let o =
|
|
1634
|
+
async function Ln(e, t, i, a = "listView") {
|
|
1635
|
+
let o = Tn(e), s = j.find((e) => e.key === t)?.apiModule ?? t;
|
|
1636
1636
|
return n(r, `${A}/team`, {
|
|
1637
1637
|
method: "PUT",
|
|
1638
1638
|
body: JSON.stringify({
|
|
1639
1639
|
module: s,
|
|
1640
1640
|
teamId: o,
|
|
1641
1641
|
configType: a,
|
|
1642
|
-
visibleFields:
|
|
1642
|
+
visibleFields: jn(i, a)
|
|
1643
1643
|
})
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
|
-
async function
|
|
1646
|
+
async function Rn({ offset: e = 0, limit: t = 10, sortBy: i = "new", searchQuery: a = "" } = {}) {
|
|
1647
1647
|
let o = new URLSearchParams({
|
|
1648
1648
|
offset: String(e),
|
|
1649
1649
|
limit: String(t),
|
|
@@ -1659,21 +1659,21 @@ async function Fn({ offset: e = 0, limit: t = 10, sortBy: i = "new", searchQuery
|
|
|
1659
1659
|
}, l)
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
|
-
async function
|
|
1662
|
+
async function zn(e = []) {
|
|
1663
1663
|
return n(r, `${A}/seed`, {
|
|
1664
1664
|
method: "POST",
|
|
1665
1665
|
headers: { "Content-Type": "application/json" },
|
|
1666
1666
|
body: JSON.stringify({ collections: e })
|
|
1667
1667
|
});
|
|
1668
1668
|
}
|
|
1669
|
-
async function
|
|
1669
|
+
async function Bn() {
|
|
1670
1670
|
let e = await n(r, `${A}/seed-status`), t = e?.data ?? e ?? {};
|
|
1671
1671
|
return {
|
|
1672
1672
|
modules: Array.isArray(t.modules) ? t.modules : [],
|
|
1673
1673
|
seededModules: t.seededModules ?? {}
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
|
-
async function
|
|
1676
|
+
async function Vn(e) {
|
|
1677
1677
|
let t = localStorage.getItem("authToken"), n = new FormData();
|
|
1678
1678
|
n.append("icon", e);
|
|
1679
1679
|
let i = await fetch(`${r}/admin/field-config/action-icon`, {
|
|
@@ -1688,11 +1688,11 @@ async function Rn(e) {
|
|
|
1688
1688
|
let a = await i.json();
|
|
1689
1689
|
return a.data ?? a;
|
|
1690
1690
|
}
|
|
1691
|
-
async function
|
|
1691
|
+
async function Hn() {
|
|
1692
1692
|
let [e, t, n] = await Promise.all([
|
|
1693
1693
|
Lt().catch(() => []),
|
|
1694
|
-
|
|
1695
|
-
|
|
1694
|
+
Qn().catch(() => []),
|
|
1695
|
+
_r().catch(() => [])
|
|
1696
1696
|
]), r = Array.isArray(e) ? e : [], i = n.map((e) => String(e?.module ?? "").trim()).filter(Boolean);
|
|
1697
1697
|
return [
|
|
1698
1698
|
...r,
|
|
@@ -1700,7 +1700,7 @@ async function zn() {
|
|
|
1700
1700
|
...i
|
|
1701
1701
|
];
|
|
1702
1702
|
}
|
|
1703
|
-
async function
|
|
1703
|
+
async function Un(e, { page: t = 1, limit: i = 100 } = {}) {
|
|
1704
1704
|
let a = await n(r, `/module/list?${new URLSearchParams({
|
|
1705
1705
|
module: e,
|
|
1706
1706
|
page: String(t),
|
|
@@ -1711,24 +1711,24 @@ async function Bn(e, { page: t = 1, limit: i = 100 } = {}) {
|
|
|
1711
1711
|
total: o.pagination?.total ?? 0
|
|
1712
1712
|
};
|
|
1713
1713
|
}
|
|
1714
|
-
async function
|
|
1714
|
+
async function Wn(e, t) {
|
|
1715
1715
|
return n(r, `/module/create?module=${encodeURIComponent(e)}`, {
|
|
1716
1716
|
method: "POST",
|
|
1717
1717
|
headers: { "Content-Type": "application/json" },
|
|
1718
1718
|
body: JSON.stringify(t)
|
|
1719
1719
|
});
|
|
1720
1720
|
}
|
|
1721
|
-
async function
|
|
1721
|
+
async function Gn(e, t, i) {
|
|
1722
1722
|
return n(r, `/module/update/${encodeURIComponent(t)}?module=${encodeURIComponent(e)}`, {
|
|
1723
1723
|
method: "PUT",
|
|
1724
1724
|
headers: { "Content-Type": "application/json" },
|
|
1725
1725
|
body: JSON.stringify(i)
|
|
1726
1726
|
});
|
|
1727
1727
|
}
|
|
1728
|
-
async function
|
|
1728
|
+
async function Kn(e, t) {
|
|
1729
1729
|
return n(r, `/module/delete/${encodeURIComponent(t)}?module=${encodeURIComponent(e)}`, { method: "DELETE" });
|
|
1730
1730
|
}
|
|
1731
|
-
async function
|
|
1731
|
+
async function qn(e = "", t = 50) {
|
|
1732
1732
|
let i = await n(r, `/admin/location-dropdown-values?${new URLSearchParams({
|
|
1733
1733
|
search: e,
|
|
1734
1734
|
limit: String(t),
|
|
@@ -1742,7 +1742,7 @@ async function Wn(e = "", t = 50) {
|
|
|
1742
1742
|
};
|
|
1743
1743
|
}).filter((e) => e.label);
|
|
1744
1744
|
}
|
|
1745
|
-
async function
|
|
1745
|
+
async function Jn(e, t, i = "_id") {
|
|
1746
1746
|
let a = await n(r, `/admin/lookup-dropdown-values?${new URLSearchParams({
|
|
1747
1747
|
collection: String(e),
|
|
1748
1748
|
displayField: String(t),
|
|
@@ -1753,11 +1753,11 @@ async function Gn(e, t, i = "_id") {
|
|
|
1753
1753
|
value: String(e.value ?? e._id ?? e.id ?? "")
|
|
1754
1754
|
})).filter((e) => e.value && e.label);
|
|
1755
1755
|
}
|
|
1756
|
-
async function
|
|
1756
|
+
async function Yn(e) {
|
|
1757
1757
|
let t = await n(r, `/admin/default-fields?module=${encodeURIComponent(e)}`), i = t?.data ?? t ?? {};
|
|
1758
1758
|
return Array.isArray(i.fields) ? i.fields : [];
|
|
1759
1759
|
}
|
|
1760
|
-
async function
|
|
1760
|
+
async function Xn(e, t, i) {
|
|
1761
1761
|
return n(r, "/admin/default-fields", {
|
|
1762
1762
|
method: "PUT",
|
|
1763
1763
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1768,7 +1768,7 @@ async function qn(e, t, i) {
|
|
|
1768
1768
|
})
|
|
1769
1769
|
});
|
|
1770
1770
|
}
|
|
1771
|
-
async function
|
|
1771
|
+
async function Zn(e) {
|
|
1772
1772
|
let t = await n(r, "/email-verify", {
|
|
1773
1773
|
method: "POST",
|
|
1774
1774
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1786,23 +1786,23 @@ async function Jn(e) {
|
|
|
1786
1786
|
checks: Array.isArray(i.checks) ? i.checks : []
|
|
1787
1787
|
};
|
|
1788
1788
|
}
|
|
1789
|
-
async function
|
|
1789
|
+
async function Qn() {
|
|
1790
1790
|
let e = await n(r, "/admin/lookup/collections"), t = e.data ?? e;
|
|
1791
1791
|
return Array.isArray(t) ? t : [];
|
|
1792
1792
|
}
|
|
1793
|
-
async function
|
|
1793
|
+
async function $n(e) {
|
|
1794
1794
|
let t = await n(r, `/admin/lookup/collection-fields?collection=${encodeURIComponent(e)}`), i = t.data ?? t;
|
|
1795
1795
|
return Array.isArray(i) ? i : [];
|
|
1796
1796
|
}
|
|
1797
|
-
async function
|
|
1797
|
+
async function er(e, t) {
|
|
1798
1798
|
let i = await n(r, `/admin/field-array-subfields?module=${encodeURIComponent(e)}&field=${encodeURIComponent(t)}`), a = i.data ?? i;
|
|
1799
1799
|
return Array.isArray(a?.fields) ? a.fields : [];
|
|
1800
1800
|
}
|
|
1801
|
-
async function
|
|
1801
|
+
async function tr() {
|
|
1802
1802
|
let e = await n(r, "/admin/menu-modules");
|
|
1803
1803
|
return M(e.data, e);
|
|
1804
1804
|
}
|
|
1805
|
-
async function
|
|
1805
|
+
async function nr({ menuName: e, apiUrl: t = "", menuType: i = "menu", parentMenuId: a = 0, displayOrder: o = 0 }) {
|
|
1806
1806
|
let s = await n(r, "/admin/menu-modules", {
|
|
1807
1807
|
method: "POST",
|
|
1808
1808
|
body: JSON.stringify({
|
|
@@ -1815,22 +1815,22 @@ async function $n({ menuName: e, apiUrl: t = "", menuType: i = "menu", parentMen
|
|
|
1815
1815
|
});
|
|
1816
1816
|
return s.data ?? s;
|
|
1817
1817
|
}
|
|
1818
|
-
async function
|
|
1818
|
+
async function rr(e, { menuName: t }) {
|
|
1819
1819
|
let i = await n(r, `/admin/menu-modules/${e}`, {
|
|
1820
1820
|
method: "PUT",
|
|
1821
1821
|
body: JSON.stringify({ menuName: t })
|
|
1822
1822
|
});
|
|
1823
1823
|
return i.data ?? i;
|
|
1824
1824
|
}
|
|
1825
|
-
async function
|
|
1825
|
+
async function ir(e) {
|
|
1826
1826
|
let t = await n(r, `/admin/menu-modules/${e}`, { method: "DELETE" });
|
|
1827
1827
|
return t.data ?? t;
|
|
1828
1828
|
}
|
|
1829
|
-
async function
|
|
1829
|
+
async function ar() {
|
|
1830
1830
|
let e = await n(r, "/admin/menu-actions");
|
|
1831
1831
|
return M(e.data, e);
|
|
1832
1832
|
}
|
|
1833
|
-
async function
|
|
1833
|
+
async function or({ permissionName: e, permissionKey: t }) {
|
|
1834
1834
|
let i = await n(r, "/admin/menu-actions", {
|
|
1835
1835
|
method: "POST",
|
|
1836
1836
|
body: JSON.stringify({
|
|
@@ -1840,22 +1840,22 @@ async function rr({ permissionName: e, permissionKey: t }) {
|
|
|
1840
1840
|
});
|
|
1841
1841
|
return i.data ?? i;
|
|
1842
1842
|
}
|
|
1843
|
-
async function
|
|
1843
|
+
async function sr(e, { permissionName: t }) {
|
|
1844
1844
|
let i = await n(r, `/admin/menu-actions/${e}`, {
|
|
1845
1845
|
method: "PUT",
|
|
1846
1846
|
body: JSON.stringify({ permissionName: t })
|
|
1847
1847
|
});
|
|
1848
1848
|
return i.data ?? i;
|
|
1849
1849
|
}
|
|
1850
|
-
async function
|
|
1850
|
+
async function cr(e) {
|
|
1851
1851
|
let t = await n(r, `/admin/menu-actions/${e}`, { method: "DELETE" });
|
|
1852
1852
|
return t.data ?? t;
|
|
1853
1853
|
}
|
|
1854
|
-
async function
|
|
1854
|
+
async function lr(e) {
|
|
1855
1855
|
let t = await n(r, `/get-role-details?roleid=${e}`);
|
|
1856
1856
|
return t?.data ?? t ?? {};
|
|
1857
1857
|
}
|
|
1858
|
-
async function
|
|
1858
|
+
async function ur(e, t) {
|
|
1859
1859
|
return n(r, "/edit-role-details", {
|
|
1860
1860
|
method: "PUT",
|
|
1861
1861
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1865,41 +1865,41 @@ async function sr(e, t) {
|
|
|
1865
1865
|
})
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
|
-
var
|
|
1869
|
-
async function
|
|
1868
|
+
var dr = "/admin/custom-forms";
|
|
1869
|
+
async function fr(e = "", t = "", i = "") {
|
|
1870
1870
|
let a = new URLSearchParams();
|
|
1871
1871
|
e && a.append("module", e), t && a.append("formType", t), i && a.append("action", i);
|
|
1872
|
-
let o = await n(r, `${
|
|
1872
|
+
let o = await n(r, `${dr}?${a.toString()}`), s = o?.data;
|
|
1873
1873
|
return Array.isArray(s) ? s : Array.isArray(o) ? o : [];
|
|
1874
1874
|
}
|
|
1875
|
-
async function
|
|
1876
|
-
return n(r,
|
|
1875
|
+
async function pr(e) {
|
|
1876
|
+
return n(r, dr, {
|
|
1877
1877
|
method: "POST",
|
|
1878
1878
|
headers: { "Content-Type": "application/json" },
|
|
1879
1879
|
body: JSON.stringify(e)
|
|
1880
1880
|
});
|
|
1881
1881
|
}
|
|
1882
|
-
async function
|
|
1883
|
-
return n(r, `${
|
|
1882
|
+
async function mr(e, t) {
|
|
1883
|
+
return n(r, `${dr}/${e}`, {
|
|
1884
1884
|
method: "PUT",
|
|
1885
1885
|
headers: { "Content-Type": "application/json" },
|
|
1886
1886
|
body: JSON.stringify(t)
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
|
-
async function
|
|
1890
|
-
return n(r, `${
|
|
1889
|
+
async function hr(e) {
|
|
1890
|
+
return n(r, `${dr}/${e}`, { method: "DELETE" });
|
|
1891
1891
|
}
|
|
1892
|
-
var
|
|
1893
|
-
function
|
|
1892
|
+
var F = "/admin/row-action-config";
|
|
1893
|
+
function gr(e) {
|
|
1894
1894
|
return String(e ?? "").trim().toLowerCase();
|
|
1895
1895
|
}
|
|
1896
|
-
async function
|
|
1897
|
-
let t =
|
|
1896
|
+
async function _r(e = "") {
|
|
1897
|
+
let t = gr(e), i = await n(r, t ? `${F}?module=${encodeURIComponent(t)}` : F), a = i?.data;
|
|
1898
1898
|
return Array.isArray(a) ? a : Array.isArray(i) ? i : [];
|
|
1899
1899
|
}
|
|
1900
|
-
async function
|
|
1901
|
-
let a =
|
|
1902
|
-
return n(r,
|
|
1900
|
+
async function vr({ module: e, roleId: t = 0, rowActions: i = [] }) {
|
|
1901
|
+
let a = gr(e);
|
|
1902
|
+
return n(r, F, {
|
|
1903
1903
|
method: "POST",
|
|
1904
1904
|
headers: { "Content-Type": "application/json" },
|
|
1905
1905
|
body: JSON.stringify({
|
|
@@ -1909,23 +1909,23 @@ async function hr({ module: e, roleId: t = 0, rowActions: i = [] }) {
|
|
|
1909
1909
|
})
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
|
-
async function
|
|
1913
|
-
return n(r, `${
|
|
1912
|
+
async function yr(e, t = []) {
|
|
1913
|
+
return n(r, `${F}/${e}`, {
|
|
1914
1914
|
method: "PUT",
|
|
1915
1915
|
headers: { "Content-Type": "application/json" },
|
|
1916
1916
|
body: JSON.stringify({ rowActions: t })
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
|
-
async function
|
|
1920
|
-
return n(r, `${
|
|
1919
|
+
async function br(e) {
|
|
1920
|
+
return n(r, `${F}/${e}`, { method: "DELETE" });
|
|
1921
1921
|
}
|
|
1922
|
-
var
|
|
1923
|
-
async function
|
|
1924
|
-
let t = await n(r, `${
|
|
1922
|
+
var xr = "/admin/module-action-rules";
|
|
1923
|
+
async function Sr(e) {
|
|
1924
|
+
let t = await n(r, `${xr}?module=${encodeURIComponent(e)}`), i = t?.data;
|
|
1925
1925
|
return Array.isArray(i) ? i : Array.isArray(t) ? t : [];
|
|
1926
1926
|
}
|
|
1927
|
-
async function
|
|
1928
|
-
return n(r,
|
|
1927
|
+
async function Cr({ module: e, name: t, description: i = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
|
|
1928
|
+
return n(r, xr, {
|
|
1929
1929
|
method: "POST",
|
|
1930
1930
|
headers: { "Content-Type": "application/json" },
|
|
1931
1931
|
body: JSON.stringify({
|
|
@@ -1939,8 +1939,8 @@ async function br({ module: e, name: t, description: i = "", conditions: a = [],
|
|
|
1939
1939
|
})
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
|
-
async function
|
|
1943
|
-
return n(r, `${
|
|
1942
|
+
async function wr(e, { name: t, description: i = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
|
|
1943
|
+
return n(r, `${xr}/${e}`, {
|
|
1944
1944
|
method: "PUT",
|
|
1945
1945
|
headers: { "Content-Type": "application/json" },
|
|
1946
1946
|
body: JSON.stringify({
|
|
@@ -1953,15 +1953,15 @@ async function xr(e, { name: t, description: i = "", conditions: a = [], blocked
|
|
|
1953
1953
|
})
|
|
1954
1954
|
});
|
|
1955
1955
|
}
|
|
1956
|
-
async function
|
|
1957
|
-
return n(r, `${
|
|
1956
|
+
async function Tr(e) {
|
|
1957
|
+
return n(r, `${xr}/${e}`, { method: "DELETE" });
|
|
1958
1958
|
}
|
|
1959
1959
|
//#endregion
|
|
1960
1960
|
//#region src/services/documentApi.js
|
|
1961
|
-
function
|
|
1961
|
+
function Er(e) {
|
|
1962
1962
|
return String(e ?? "").replace(/^__mw__.*?__/, "").replace(/\[\d+\]$/, "").trim() || "file";
|
|
1963
1963
|
}
|
|
1964
|
-
async function
|
|
1964
|
+
async function Dr(e, t, n = [], a = {}) {
|
|
1965
1965
|
if (!e) throw Error("moduleName is required to upload documents");
|
|
1966
1966
|
if (!t) throw Error("refId (created record id) is required to upload documents");
|
|
1967
1967
|
if (!n.length) return {
|
|
@@ -1971,7 +1971,7 @@ async function wr(e, t, n = [], a = {}) {
|
|
|
1971
1971
|
let o = await i(), s = new FormData();
|
|
1972
1972
|
n.forEach(({ formKey: e, file: t }) => {
|
|
1973
1973
|
let n = t?.name ?? void 0;
|
|
1974
|
-
s.append(
|
|
1974
|
+
s.append(Er(e), t, n);
|
|
1975
1975
|
}), a && Object.keys(a).length > 0 && s.append("metadata", JSON.stringify(a));
|
|
1976
1976
|
let c = new URLSearchParams({
|
|
1977
1977
|
module: e,
|
|
@@ -1987,7 +1987,7 @@ async function wr(e, t, n = [], a = {}) {
|
|
|
1987
1987
|
}
|
|
1988
1988
|
return u?.data ?? u;
|
|
1989
1989
|
}
|
|
1990
|
-
async function
|
|
1990
|
+
async function Or(e, t, i = "") {
|
|
1991
1991
|
if (!e) throw Error("moduleName is required to fetch documents");
|
|
1992
1992
|
if (!t) throw Error("refId is required to fetch documents");
|
|
1993
1993
|
let a = new URLSearchParams({
|
|
@@ -2003,12 +2003,12 @@ async function Tr(e, t, i = "") {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
//#endregion
|
|
2005
2005
|
//#region src/services/detailedViewApi.js
|
|
2006
|
-
var
|
|
2006
|
+
var kr = {
|
|
2007
2007
|
job: { fetchUrl: (e) => `${t}/edit/detailed-view/${encodeURIComponent(e)}` },
|
|
2008
2008
|
candidates: { fetchUrl: (e) => `${s}/edit/detailed-view?_id=${encodeURIComponent(e)}` },
|
|
2009
2009
|
submission: { fetchUrl: (t) => `${e}/edit/detailed-view?_id=${encodeURIComponent(t)}` }
|
|
2010
2010
|
};
|
|
2011
|
-
async function
|
|
2011
|
+
async function Ar(e, t) {
|
|
2012
2012
|
let i = String(e ?? "").trim().toLowerCase();
|
|
2013
2013
|
if (i === "job" || i === "jobs") {
|
|
2014
2014
|
let { getJobDetailView: e } = await import("./index.js").then((e) => e.r);
|
|
@@ -2019,17 +2019,17 @@ async function Dr(e, t) {
|
|
|
2019
2019
|
id: String(t)
|
|
2020
2020
|
}).toString()}`);
|
|
2021
2021
|
}
|
|
2022
|
-
async function
|
|
2022
|
+
async function jr(e) {
|
|
2023
2023
|
let t = await n(r, `/module-actions?module=${encodeURIComponent(e)}`), i = t?.data ?? t ?? {};
|
|
2024
2024
|
return {
|
|
2025
2025
|
actions: Array.isArray(i.actions) ? i.actions : [],
|
|
2026
2026
|
actionRules: Array.isArray(i.actionRules) ? i.actionRules : []
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
|
-
async function
|
|
2029
|
+
async function Mr(e, t) {
|
|
2030
2030
|
if (!e) throw Error("module is required");
|
|
2031
2031
|
if (!t) throw Error("id is required");
|
|
2032
|
-
let n =
|
|
2032
|
+
let n = kr[e];
|
|
2033
2033
|
if (!n) throw Error(`No edit config for module: ${e}`);
|
|
2034
2034
|
let r = await i(), a = await fetch(n.fetchUrl(t), {
|
|
2035
2035
|
method: "GET",
|
|
@@ -2042,7 +2042,7 @@ async function kr(e, t) {
|
|
|
2042
2042
|
let o = await a.json();
|
|
2043
2043
|
return o.data ?? o;
|
|
2044
2044
|
}
|
|
2045
|
-
async function
|
|
2045
|
+
async function Nr(e, t, n, a = []) {
|
|
2046
2046
|
if (!e) throw Error("module is required");
|
|
2047
2047
|
if (!t) throw Error("id is required");
|
|
2048
2048
|
let o = await i(), s = new FormData();
|
|
@@ -2054,12 +2054,23 @@ async function Ar(e, t, n, a = []) {
|
|
|
2054
2054
|
});
|
|
2055
2055
|
if (!c.ok) {
|
|
2056
2056
|
let e = await c.text();
|
|
2057
|
-
|
|
2057
|
+
console.error("[updateRecord] Error response:", e);
|
|
2058
|
+
let t = Error(Fr(e) || `API ${c.status}: ${c.statusText}`);
|
|
2059
|
+
throw t.status = c.status, t.response = Pr(e), t;
|
|
2058
2060
|
}
|
|
2059
2061
|
let l = await c.json();
|
|
2060
2062
|
return l.data ?? l;
|
|
2061
2063
|
}
|
|
2062
|
-
function
|
|
2064
|
+
function Pr(e) {
|
|
2065
|
+
let t = String(e ?? "").trim();
|
|
2066
|
+
if (!t.startsWith("{")) return null;
|
|
2067
|
+
try {
|
|
2068
|
+
return JSON.parse(t);
|
|
2069
|
+
} catch {
|
|
2070
|
+
return null;
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
function Fr(e) {
|
|
2063
2074
|
let t = String(e ?? "").trim();
|
|
2064
2075
|
if (!t.startsWith("{")) return t;
|
|
2065
2076
|
try {
|
|
@@ -2069,22 +2080,22 @@ function jr(e) {
|
|
|
2069
2080
|
return t;
|
|
2070
2081
|
}
|
|
2071
2082
|
}
|
|
2072
|
-
var
|
|
2073
|
-
async function
|
|
2083
|
+
var Ir = (e) => e?.data ?? e;
|
|
2084
|
+
async function Lr(e, t) {
|
|
2074
2085
|
if (!e || !t) return [];
|
|
2075
|
-
let i =
|
|
2086
|
+
let i = Ir(await n(r, `/module-activity?${new URLSearchParams({
|
|
2076
2087
|
module: e,
|
|
2077
2088
|
id: String(t)
|
|
2078
2089
|
}).toString()}`));
|
|
2079
2090
|
return Array.isArray(i) ? i : [];
|
|
2080
2091
|
}
|
|
2081
|
-
async function
|
|
2092
|
+
async function Rr(e) {
|
|
2082
2093
|
if (!e) return [];
|
|
2083
|
-
let t =
|
|
2094
|
+
let t = Ir(await n(r, `/notes?relatedId=${encodeURIComponent(e)}`));
|
|
2084
2095
|
return Array.isArray(t) ? t : [];
|
|
2085
2096
|
}
|
|
2086
|
-
async function
|
|
2087
|
-
return
|
|
2097
|
+
async function zr({ relatedId: e, notes: t, title: i, notesFor: a }) {
|
|
2098
|
+
return Ir(await n(r, "/notes", {
|
|
2088
2099
|
method: "POST",
|
|
2089
2100
|
body: JSON.stringify({
|
|
2090
2101
|
relatedId: e,
|
|
@@ -2096,7 +2107,7 @@ async function Fr({ relatedId: e, notes: t, title: i, notesFor: a }) {
|
|
|
2096
2107
|
}
|
|
2097
2108
|
//#endregion
|
|
2098
2109
|
//#region src/services/detailDefaults.js
|
|
2099
|
-
var
|
|
2110
|
+
var Br = Object.freeze({
|
|
2100
2111
|
s3BaseUrl: "https://zinnext-devlopment-ap-south-1.s3.ap-south-1.amazonaws.com".replace(/\/+$/, ""),
|
|
2101
2112
|
dateFormat: "DD MMM YYYY",
|
|
2102
2113
|
booleanTrueLabel: "Yes",
|
|
@@ -2112,16 +2123,16 @@ var Ir = Object.freeze({
|
|
|
2112
2123
|
],
|
|
2113
2124
|
phoneFormat: "3-3-4",
|
|
2114
2125
|
phoneCountryCode: ""
|
|
2115
|
-
}),
|
|
2116
|
-
function
|
|
2117
|
-
return
|
|
2126
|
+
}), I = { ...Br }, Vr = null;
|
|
2127
|
+
function Hr() {
|
|
2128
|
+
return I;
|
|
2118
2129
|
}
|
|
2119
|
-
function
|
|
2130
|
+
function Ur(e) {
|
|
2120
2131
|
if (!e || typeof e != "object") return {};
|
|
2121
2132
|
let t = {};
|
|
2122
2133
|
return e.s3BaseUrl && (t.s3BaseUrl = String(e.s3BaseUrl).replace(/\/+$/, "")), e.dateFormat && (t.dateFormat = e.dateFormat), e.booleanTrueLabel && (t.booleanTrueLabel = e.booleanTrueLabel), e.booleanFalseLabel && (t.booleanFalseLabel = e.booleanFalseLabel), e.emptyPlaceholder && (t.emptyPlaceholder = e.emptyPlaceholder), typeof e.separator == "string" && e.separator !== "" && (t.separator = e.separator), typeof e.phoneFormat == "string" && e.phoneFormat.trim() !== "" && (t.phoneFormat = e.phoneFormat.trim()), typeof e.phoneCountryCode == "string" && (t.phoneCountryCode = e.phoneCountryCode.trim()), typeof e.phoneCountryCode == "string" && (t.phoneCountryCode = e.phoneCountryCode.trim()), Array.isArray(e.documentNameOrder) && e.documentNameOrder.length && (t.documentNameOrder = e.documentNameOrder), t;
|
|
2123
2134
|
}
|
|
2124
|
-
function
|
|
2135
|
+
function Wr(e = Gr()) {
|
|
2125
2136
|
let t = (String(e).match(/\d+/g) ?? [
|
|
2126
2137
|
"3",
|
|
2127
2138
|
"3",
|
|
@@ -2137,18 +2148,18 @@ function Br(e = Vr()) {
|
|
|
2137
2148
|
total: r.reduce((e, t) => e + t, 0)
|
|
2138
2149
|
};
|
|
2139
2150
|
}
|
|
2140
|
-
function
|
|
2141
|
-
return
|
|
2151
|
+
function Gr() {
|
|
2152
|
+
return I.phoneFormat || Br.phoneFormat;
|
|
2142
2153
|
}
|
|
2143
|
-
function
|
|
2144
|
-
return
|
|
2154
|
+
function Kr() {
|
|
2155
|
+
return I.phoneCountryCode ?? Br.phoneCountryCode;
|
|
2145
2156
|
}
|
|
2146
|
-
function
|
|
2147
|
-
let { total: n } =
|
|
2157
|
+
function qr(e, t = Gr()) {
|
|
2158
|
+
let { total: n } = Wr(t);
|
|
2148
2159
|
return String(e ?? "").replace(/\D/g, "").slice(0, n);
|
|
2149
2160
|
}
|
|
2150
|
-
function
|
|
2151
|
-
let { groups: n, sep: r } =
|
|
2161
|
+
function Jr(e, t = Gr()) {
|
|
2162
|
+
let { groups: n, sep: r } = Wr(t), i = qr(e, t);
|
|
2152
2163
|
if (!i) return "";
|
|
2153
2164
|
let a = [], o = 0;
|
|
2154
2165
|
for (let e of n) {
|
|
@@ -2157,30 +2168,30 @@ function Wr(e, t = Vr()) {
|
|
|
2157
2168
|
}
|
|
2158
2169
|
return a.join(r);
|
|
2159
2170
|
}
|
|
2160
|
-
function
|
|
2161
|
-
return
|
|
2162
|
-
...
|
|
2163
|
-
...
|
|
2164
|
-
},
|
|
2171
|
+
function Yr(e) {
|
|
2172
|
+
return I = {
|
|
2173
|
+
...I,
|
|
2174
|
+
...Ur(e)
|
|
2175
|
+
}, I;
|
|
2165
2176
|
}
|
|
2166
|
-
function
|
|
2167
|
-
return
|
|
2177
|
+
function Xr(e = !1) {
|
|
2178
|
+
return Vr && !e || (Vr = nn().then((e) => Yr(e)).catch(() => I)), Vr;
|
|
2168
2179
|
}
|
|
2169
2180
|
//#endregion
|
|
2170
2181
|
//#region src/utils/roleFormPermissionGate.js
|
|
2171
|
-
function
|
|
2182
|
+
function Zr(e, t) {
|
|
2172
2183
|
if (!e) return !0;
|
|
2173
2184
|
let n = e.find((e) => e.name === t);
|
|
2174
2185
|
return n ? n.enabled !== !1 : !0;
|
|
2175
2186
|
}
|
|
2176
|
-
function
|
|
2187
|
+
function Qr(e, t, n) {
|
|
2177
2188
|
if (!e) return !0;
|
|
2178
2189
|
let r = e.find((e) => e.name === t);
|
|
2179
2190
|
if (!r) return !0;
|
|
2180
2191
|
let i = r.fields?.find((e) => e.field === n);
|
|
2181
2192
|
return i ? i.enabled !== !1 : !0;
|
|
2182
2193
|
}
|
|
2183
|
-
function
|
|
2194
|
+
function $r(e, t, n) {
|
|
2184
2195
|
if (!e) return !0;
|
|
2185
2196
|
let r = e.find((e) => e.name === t);
|
|
2186
2197
|
if (!r) return !0;
|
|
@@ -2190,7 +2201,7 @@ function Yr(e, t, n) {
|
|
|
2190
2201
|
}
|
|
2191
2202
|
//#endregion
|
|
2192
2203
|
//#region src/components/form/inputSecurity.js
|
|
2193
|
-
var
|
|
2204
|
+
var ei = [
|
|
2194
2205
|
"p",
|
|
2195
2206
|
"br",
|
|
2196
2207
|
"strong",
|
|
@@ -2212,12 +2223,12 @@ var Xr = [
|
|
|
2212
2223
|
"a",
|
|
2213
2224
|
"code",
|
|
2214
2225
|
"pre"
|
|
2215
|
-
],
|
|
2226
|
+
], ti = [
|
|
2216
2227
|
"href",
|
|
2217
2228
|
"title",
|
|
2218
2229
|
"target",
|
|
2219
2230
|
"rel"
|
|
2220
|
-
],
|
|
2231
|
+
], ni = /[\u200B-\u200D\u2060\uFEFF]/g, ri = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, ii = /^[\p{L}\p{M}\p{N} .'-]+$/u, ai = /^\+?[0-9 ()-]+$/, oi = /^-?(?:\d+|\d*\.\d+)$/, si = [
|
|
2221
2232
|
{
|
|
2222
2233
|
re: /<\s*\/?\s*(?:script|iframe|object|embed|svg|img|form|input|style|link|meta)\b/i,
|
|
2223
2234
|
message: "HTML/script content is not allowed"
|
|
@@ -2251,12 +2262,12 @@ var Xr = [
|
|
|
2251
2262
|
message: "Command execution patterns are not allowed"
|
|
2252
2263
|
}
|
|
2253
2264
|
];
|
|
2254
|
-
function
|
|
2265
|
+
function ci(e) {
|
|
2255
2266
|
if (typeof document > "u") return e;
|
|
2256
2267
|
let t = document.createElement("textarea");
|
|
2257
2268
|
return t.innerHTML = e, t.value;
|
|
2258
2269
|
}
|
|
2259
|
-
function
|
|
2270
|
+
function li(e) {
|
|
2260
2271
|
let t = String(e ?? "");
|
|
2261
2272
|
for (let e = 0; e < 2; e += 1) try {
|
|
2262
2273
|
let e = decodeURIComponent(t);
|
|
@@ -2265,12 +2276,12 @@ function ai(e) {
|
|
|
2265
2276
|
} catch {
|
|
2266
2277
|
break;
|
|
2267
2278
|
}
|
|
2268
|
-
return t =
|
|
2279
|
+
return t = ci(t).replace(/\\x([0-9a-f]{2})/gi, (e, t) => String.fromCharCode(Number.parseInt(t, 16))).replace(/\\u([0-9a-f]{4})/gi, (e, t) => String.fromCharCode(Number.parseInt(t, 16))), t.normalize("NFC");
|
|
2269
2280
|
}
|
|
2270
|
-
function
|
|
2281
|
+
function ui(e) {
|
|
2271
2282
|
return Ee.sanitize(String(e ?? ""), {
|
|
2272
|
-
ALLOWED_TAGS:
|
|
2273
|
-
ALLOWED_ATTR:
|
|
2283
|
+
ALLOWED_TAGS: ei,
|
|
2284
|
+
ALLOWED_ATTR: ti,
|
|
2274
2285
|
ALLOW_DATA_ATTR: !1,
|
|
2275
2286
|
FORBID_TAGS: [
|
|
2276
2287
|
"script",
|
|
@@ -2290,40 +2301,40 @@ function oi(e) {
|
|
|
2290
2301
|
]
|
|
2291
2302
|
});
|
|
2292
2303
|
}
|
|
2293
|
-
function
|
|
2304
|
+
function di(e) {
|
|
2294
2305
|
let t = (e.validations ?? []).find((e) => e?.type === "max"), n = Number(e.validator?.maxLength ?? t?.value ?? e.maxLength);
|
|
2295
2306
|
return Number.isFinite(n) && n > 0 ? n : e.type === "email" || e.formatter === "email" ? 255 : e.formatter === "phone" || e.formatter === "digits" ? 32 : e.formatter === "name" ? 100 : e.type === "text-editor" ? 5e4 : (e.type, 5e3);
|
|
2296
2307
|
}
|
|
2297
|
-
function
|
|
2308
|
+
function fi(e) {
|
|
2298
2309
|
return e.type === "textarea" || e.type === "text-editor";
|
|
2299
2310
|
}
|
|
2300
|
-
function
|
|
2311
|
+
function pi(e, t = {}) {
|
|
2301
2312
|
if (typeof e != "string") return e;
|
|
2302
|
-
if (t.type === "text-editor") return
|
|
2303
|
-
let n = e.normalize("NFC").replace(
|
|
2304
|
-
return n =
|
|
2313
|
+
if (t.type === "text-editor") return ui(e.normalize("NFC"));
|
|
2314
|
+
let n = e.normalize("NFC").replace(ni, "").replace(/\u00A0/g, " ").replace(ri, "");
|
|
2315
|
+
return n = fi(t) ? n.replace(/\r\n?/g, "\n").replace(/[ \t]{2,}/g, " ").trim() : n.replace(/\s+/g, " ").trim(), n;
|
|
2305
2316
|
}
|
|
2306
|
-
function
|
|
2317
|
+
function mi(e, t = {}) {
|
|
2307
2318
|
if (typeof e != "string" || e === "") return null;
|
|
2308
|
-
let n = t.label || t.field || "Field", r =
|
|
2319
|
+
let n = t.label || t.field || "Field", r = li(e);
|
|
2309
2320
|
if (r.includes("\0") || r.includes("\0")) return `${n} contains a null byte`;
|
|
2310
2321
|
if (t.type !== "text-editor") {
|
|
2311
|
-
let e =
|
|
2322
|
+
let e = si.find(({ re: e }) => e.test(r));
|
|
2312
2323
|
if (e) return `${n}: ${e.message}`;
|
|
2313
2324
|
} else {
|
|
2314
|
-
let e =
|
|
2325
|
+
let e = si.slice(0, 3).find(({ re: e }) => e.test(r));
|
|
2315
2326
|
if (e) return `${n}: ${e.message}`;
|
|
2316
2327
|
}
|
|
2317
|
-
let i =
|
|
2318
|
-
return [...i].length >
|
|
2328
|
+
let i = pi(e, t);
|
|
2329
|
+
return [...i].length > di(t) ? `${n} is too long` : t.formatter === "name" && i && !ii.test(i) ? `${n} allows only letters, numbers, spaces, apostrophes, hyphens and periods` : (t.formatter === "phone" || t.formatter === "digits") && i && !ai.test(i) ? `${n} contains invalid phone characters` : t.type === "number" && i && !oi.test(i) ? `${n} must contain only a valid number` : (t.type === "url" || t.formatter === "url") && i && !/^https?:\/\//i.test(i) ? `${n} must use http:// or https://` : null;
|
|
2319
2330
|
}
|
|
2320
|
-
function
|
|
2331
|
+
function hi(e) {
|
|
2321
2332
|
return { validator: (t, n) => {
|
|
2322
|
-
let r = (Array.isArray(n) ? n : [n]).map((t) =>
|
|
2333
|
+
let r = (Array.isArray(n) ? n : [n]).map((t) => mi(t, e)).find(Boolean);
|
|
2323
2334
|
return r ? Promise.reject(Error(r)) : Promise.resolve();
|
|
2324
2335
|
} };
|
|
2325
2336
|
}
|
|
2326
|
-
function
|
|
2337
|
+
function gi(e = []) {
|
|
2327
2338
|
let t = /* @__PURE__ */ new Map();
|
|
2328
2339
|
return e.forEach((e) => {
|
|
2329
2340
|
(e.fields ?? []).forEach((n) => {
|
|
@@ -2335,12 +2346,12 @@ function fi(e = []) {
|
|
|
2335
2346
|
});
|
|
2336
2347
|
}), t;
|
|
2337
2348
|
}
|
|
2338
|
-
function
|
|
2339
|
-
let n =
|
|
2349
|
+
function _i(e, t = []) {
|
|
2350
|
+
let n = gi(t), r = (e, t = "") => {
|
|
2340
2351
|
if (typeof e == "string") {
|
|
2341
|
-
let r = n.get(t) ?? {}, i =
|
|
2352
|
+
let r = n.get(t) ?? {}, i = mi(e, r);
|
|
2342
2353
|
if (i) throw Error(i);
|
|
2343
|
-
return
|
|
2354
|
+
return pi(e, r);
|
|
2344
2355
|
}
|
|
2345
2356
|
return Array.isArray(e) ? e.map((e) => r(e, `${t}[]`)) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, n]) => {
|
|
2346
2357
|
if (e.startsWith("$") || e.includes(".") || e.includes("\0")) throw Error(`Unsafe object key: ${e}`);
|
|
@@ -2351,12 +2362,12 @@ function pi(e, t = []) {
|
|
|
2351
2362
|
}
|
|
2352
2363
|
//#endregion
|
|
2353
2364
|
//#region src/components/form/optionMatching.js
|
|
2354
|
-
function
|
|
2365
|
+
function vi(e) {
|
|
2355
2366
|
return String(e ?? "").normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "");
|
|
2356
2367
|
}
|
|
2357
|
-
function
|
|
2368
|
+
function yi(e) {
|
|
2358
2369
|
let t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
2359
|
-
let r =
|
|
2370
|
+
let r = vi(e);
|
|
2360
2371
|
r && !t.has(r) && t.set(r, n);
|
|
2361
2372
|
};
|
|
2362
2373
|
return (Array.isArray(e?.options) ? e.options : []).forEach((e) => {
|
|
@@ -2364,34 +2375,34 @@ function hi(e) {
|
|
|
2364
2375
|
let t = typeof e == "object" ? e.value : e;
|
|
2365
2376
|
t == null || t === "" || (n(t, t), typeof e == "object" && e.label !== void 0 && n(e.label, t));
|
|
2366
2377
|
}), Object.entries(e?.optionAliases ?? {}).forEach(([e, r]) => {
|
|
2367
|
-
let i = t.get(
|
|
2378
|
+
let i = t.get(vi(r));
|
|
2368
2379
|
i !== void 0 && n(e, i);
|
|
2369
2380
|
}), t;
|
|
2370
2381
|
}
|
|
2371
|
-
var
|
|
2372
|
-
function
|
|
2382
|
+
var bi = (e) => Array.isArray(e?.options) && e.options.length > 0;
|
|
2383
|
+
function xi(e, t) {
|
|
2373
2384
|
if (t == null || t === "" || typeof t == "object") return t;
|
|
2374
|
-
let n = e.get(
|
|
2385
|
+
let n = e.get(vi(t));
|
|
2375
2386
|
return n === void 0 ? t : n;
|
|
2376
2387
|
}
|
|
2377
|
-
function
|
|
2378
|
-
if (!
|
|
2379
|
-
let n =
|
|
2380
|
-
return n.size === 0 ? t : Array.isArray(t) ? t.map((e) =>
|
|
2388
|
+
function Si(e, t) {
|
|
2389
|
+
if (!bi(e)) return t;
|
|
2390
|
+
let n = yi(e);
|
|
2391
|
+
return n.size === 0 ? t : Array.isArray(t) ? t.map((e) => xi(n, e)) : xi(n, t);
|
|
2381
2392
|
}
|
|
2382
2393
|
//#endregion
|
|
2383
2394
|
//#region src/components/form/payloadTransformer.js
|
|
2384
|
-
var
|
|
2385
|
-
function
|
|
2395
|
+
var L = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0, Ci = (e) => e === !0 || e === 1 || e === "1", R = (e) => typeof e == "object" && !!e && !Array.isArray(e) && !wi(e);
|
|
2396
|
+
function wi(e) {
|
|
2386
2397
|
return e && typeof e == "object" && typeof e.format == "function" && typeof e.isValid == "function";
|
|
2387
2398
|
}
|
|
2388
|
-
function
|
|
2389
|
-
return
|
|
2399
|
+
function Ti(e) {
|
|
2400
|
+
return wi(e) || e instanceof Date;
|
|
2390
2401
|
}
|
|
2391
|
-
function
|
|
2392
|
-
return e instanceof Date ? e.toISOString() :
|
|
2402
|
+
function Ei(e) {
|
|
2403
|
+
return e instanceof Date ? e.toISOString() : wi(e) ? e.isValid() ? e.toISOString() : null : e;
|
|
2393
2404
|
}
|
|
2394
|
-
function
|
|
2405
|
+
function z(e, t) {
|
|
2395
2406
|
if (!t) return;
|
|
2396
2407
|
let n = String(t).split("."), r = e;
|
|
2397
2408
|
for (let e of n) {
|
|
@@ -2400,51 +2411,51 @@ function H(e, t) {
|
|
|
2400
2411
|
}
|
|
2401
2412
|
return r;
|
|
2402
2413
|
}
|
|
2403
|
-
function
|
|
2404
|
-
return e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] :
|
|
2414
|
+
function B(e, t) {
|
|
2415
|
+
return e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : z(e, t);
|
|
2405
2416
|
}
|
|
2406
|
-
function
|
|
2407
|
-
return e && Object.prototype.hasOwnProperty.call(e, t) ? !0 :
|
|
2417
|
+
function V(e, t) {
|
|
2418
|
+
return e && Object.prototype.hasOwnProperty.call(e, t) ? !0 : z(e, t) !== void 0;
|
|
2408
2419
|
}
|
|
2409
|
-
function
|
|
2420
|
+
function H(e, t, n) {
|
|
2410
2421
|
let r = String(t).split("."), i = e;
|
|
2411
2422
|
for (let e = 0; e < r.length - 1; e += 1) {
|
|
2412
2423
|
let t = r[e];
|
|
2413
|
-
|
|
2424
|
+
R(i[t]) || (i[t] = {}), i = i[t];
|
|
2414
2425
|
}
|
|
2415
2426
|
return i[r[r.length - 1]] = n, e;
|
|
2416
2427
|
}
|
|
2417
|
-
function
|
|
2428
|
+
function Di(e, t, n) {
|
|
2418
2429
|
let r = String(t).split("."), i = e;
|
|
2419
2430
|
for (let e = 0; e < r.length - 1; e += 1) {
|
|
2420
2431
|
let t = r[e];
|
|
2421
|
-
|
|
2432
|
+
R(i[t]) || (i[t] = {}), i = i[t];
|
|
2422
2433
|
}
|
|
2423
2434
|
let a = r[r.length - 1];
|
|
2424
|
-
return i[a] =
|
|
2435
|
+
return i[a] = R(i[a]) && R(n) ? {
|
|
2425
2436
|
...n,
|
|
2426
2437
|
...i[a]
|
|
2427
2438
|
} : n, e;
|
|
2428
2439
|
}
|
|
2429
|
-
function
|
|
2440
|
+
function Oi(e) {
|
|
2430
2441
|
let t = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
2431
2442
|
if (!t.length || t.some((e) => e?.originFileObj)) return;
|
|
2432
2443
|
let n = t.map((e) => e?.stored).filter((e) => e != null);
|
|
2433
2444
|
if (n.length) return n.length === 1 && t.length === 1 ? n[0] : n;
|
|
2434
2445
|
}
|
|
2435
|
-
function
|
|
2446
|
+
function ki(e, t) {
|
|
2436
2447
|
return Object.entries(t ?? {}).forEach(([t, n]) => {
|
|
2437
|
-
|
|
2448
|
+
R(n) && R(e[t]) ? ki(e[t], n) : e[t] = n;
|
|
2438
2449
|
}), e;
|
|
2439
2450
|
}
|
|
2440
|
-
function
|
|
2451
|
+
function Ai(e, t) {
|
|
2441
2452
|
let n = e.options ?? e.values ?? [];
|
|
2442
2453
|
for (let e of n) if (typeof e == "string") {
|
|
2443
2454
|
if (e === t) return e;
|
|
2444
2455
|
} else if ((e.value ?? e.id ?? e.name ?? e.label) === t) return e.label ?? e.name ?? e.value;
|
|
2445
2456
|
}
|
|
2446
|
-
function
|
|
2447
|
-
if (
|
|
2457
|
+
function ji(e, t) {
|
|
2458
|
+
if (R(e)) {
|
|
2448
2459
|
let n = (t.valueKey && e[t.valueKey]) ?? e.value ?? e.id ?? e._id ?? e.key ?? e.code;
|
|
2449
2460
|
return {
|
|
2450
2461
|
value: n,
|
|
@@ -2453,10 +2464,10 @@ function Di(e, t) {
|
|
|
2453
2464
|
}
|
|
2454
2465
|
return {
|
|
2455
2466
|
value: e,
|
|
2456
|
-
label:
|
|
2467
|
+
label: Ai(t, e) ?? e
|
|
2457
2468
|
};
|
|
2458
2469
|
}
|
|
2459
|
-
function
|
|
2470
|
+
function Mi(e = {}) {
|
|
2460
2471
|
if (e.dataType && e.dataType !== "auto") return e.dataType;
|
|
2461
2472
|
if (e.multiSelect || e.mode === "multiple" || e.addRow) return "array";
|
|
2462
2473
|
switch (e.type) {
|
|
@@ -2466,36 +2477,36 @@ function Oi(e = {}) {
|
|
|
2466
2477
|
default: return "auto";
|
|
2467
2478
|
}
|
|
2468
2479
|
}
|
|
2469
|
-
function
|
|
2470
|
-
if (
|
|
2471
|
-
if (t === "string") return
|
|
2480
|
+
function U(e, t, n = {}) {
|
|
2481
|
+
if (Ti(e)) {
|
|
2482
|
+
if (t === "string") return Ei(e);
|
|
2472
2483
|
if (t === "number") {
|
|
2473
|
-
let t =
|
|
2484
|
+
let t = wi(e) ? e.valueOf() : e.getTime();
|
|
2474
2485
|
return Number.isNaN(t) ? null : t;
|
|
2475
2486
|
}
|
|
2476
|
-
if (t === "date" || t === "auto" || !t) return
|
|
2487
|
+
if (t === "date" || t === "auto" || !t) return Ei(e);
|
|
2477
2488
|
}
|
|
2478
2489
|
switch (t) {
|
|
2479
2490
|
case "string": return e == null ? "" : String(e);
|
|
2480
2491
|
case "number": {
|
|
2481
|
-
if (
|
|
2492
|
+
if (L(e)) return null;
|
|
2482
2493
|
let t = Number(e);
|
|
2483
2494
|
return Number.isNaN(t) ? null : t;
|
|
2484
2495
|
}
|
|
2485
2496
|
case "boolean": return e === !0 || e === 1 || e === "1" || e === "true";
|
|
2486
2497
|
case "array": {
|
|
2487
2498
|
let t;
|
|
2488
|
-
return t = Array.isArray(e) ? e :
|
|
2499
|
+
return t = Array.isArray(e) ? e : L(e) ? [] : typeof e == "string" && e.includes(",") ? e.split(",").map((e) => e.trim()).filter(Boolean) : [e], n.elementType ? t.map((e) => U(e, n.elementType, {})).filter((e) => e != null && e !== "") : t;
|
|
2489
2500
|
}
|
|
2490
|
-
case "object": return
|
|
2491
|
-
case "date": return
|
|
2501
|
+
case "object": return R(e), e;
|
|
2502
|
+
case "date": return Ei(e);
|
|
2492
2503
|
case "custom":
|
|
2493
2504
|
case "auto":
|
|
2494
2505
|
case void 0:
|
|
2495
2506
|
default: return e;
|
|
2496
2507
|
}
|
|
2497
2508
|
}
|
|
2498
|
-
var
|
|
2509
|
+
var Ni = {
|
|
2499
2510
|
firstChecked: (e) => Array.isArray(e) ? e[0] : e,
|
|
2500
2511
|
csvToArray: (e) => typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : e,
|
|
2501
2512
|
arrayToCsv: (e) => Array.isArray(e) ? e.join(",") : e,
|
|
@@ -2503,11 +2514,11 @@ var ki = {
|
|
|
2503
2514
|
upper: (e) => typeof e == "string" ? e.toUpperCase() : e,
|
|
2504
2515
|
lower: (e) => typeof e == "string" ? e.toLowerCase() : e
|
|
2505
2516
|
};
|
|
2506
|
-
function
|
|
2517
|
+
function Pi(e, t) {
|
|
2507
2518
|
if (!t) return e;
|
|
2508
2519
|
let n = t;
|
|
2509
2520
|
if (typeof n == "string") {
|
|
2510
|
-
if (
|
|
2521
|
+
if (Ni[n]) return Ni[n](e);
|
|
2511
2522
|
try {
|
|
2512
2523
|
n = JSON.parse(n);
|
|
2513
2524
|
} catch {
|
|
@@ -2515,39 +2526,39 @@ function Ai(e, t) {
|
|
|
2515
2526
|
}
|
|
2516
2527
|
}
|
|
2517
2528
|
let r = e;
|
|
2518
|
-
if (n.name &&
|
|
2529
|
+
if (n.name && Ni[n.name] && (r = Ni[n.name](r)), n.map && typeof n.map == "object") {
|
|
2519
2530
|
let e = String(Array.isArray(r) ? r[0] : r);
|
|
2520
2531
|
Object.prototype.hasOwnProperty.call(n.map, e) ? r = n.map[e] : n.default !== void 0 && (r = n.default);
|
|
2521
2532
|
}
|
|
2522
2533
|
return r;
|
|
2523
2534
|
}
|
|
2524
|
-
var
|
|
2525
|
-
function
|
|
2535
|
+
var Fi = /\{\{\s*([\w.]+)\s*\}\}/g;
|
|
2536
|
+
function Ii(e, t) {
|
|
2526
2537
|
let [n, ...r] = e.split("."), i;
|
|
2527
2538
|
if (n === "value") i = t.value;
|
|
2528
2539
|
else if (n === "label") i = t.label;
|
|
2529
2540
|
else if (n === "raw") i = t.raw;
|
|
2530
2541
|
else return;
|
|
2531
|
-
return r.length ?
|
|
2542
|
+
return r.length ? z(i, r.join(".")) : i;
|
|
2532
2543
|
}
|
|
2533
|
-
function
|
|
2544
|
+
function Li(e, t) {
|
|
2534
2545
|
if (typeof e == "string") {
|
|
2535
2546
|
let n = e.match(/^\{\{\s*([\w.]+)\s*\}\}$/);
|
|
2536
|
-
return n ?
|
|
2537
|
-
let r =
|
|
2547
|
+
return n ? Ii(n[1], t) : e.replace(Fi, (e, n) => {
|
|
2548
|
+
let r = Ii(n, t);
|
|
2538
2549
|
return r == null ? "" : String(r);
|
|
2539
2550
|
});
|
|
2540
2551
|
}
|
|
2541
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
2542
|
-
if (
|
|
2552
|
+
if (Array.isArray(e)) return e.map((e) => Li(e, t));
|
|
2553
|
+
if (R(e)) {
|
|
2543
2554
|
let n = {};
|
|
2544
2555
|
return Object.entries(e).forEach(([e, r]) => {
|
|
2545
|
-
n[e] =
|
|
2556
|
+
n[e] = Li(r, t);
|
|
2546
2557
|
}), n;
|
|
2547
2558
|
}
|
|
2548
2559
|
return e;
|
|
2549
2560
|
}
|
|
2550
|
-
function
|
|
2561
|
+
function Ri(e) {
|
|
2551
2562
|
if (!e) return null;
|
|
2552
2563
|
if (typeof e == "string") try {
|
|
2553
2564
|
return JSON.parse(e);
|
|
@@ -2556,36 +2567,36 @@ function Pi(e) {
|
|
|
2556
2567
|
}
|
|
2557
2568
|
return e;
|
|
2558
2569
|
}
|
|
2559
|
-
function
|
|
2560
|
-
let n = e.payloadMode || "auto", r =
|
|
2570
|
+
function zi(e, t) {
|
|
2571
|
+
let n = e.payloadMode || "auto", r = Mi(e), { value: i, label: a } = ji(t, e);
|
|
2561
2572
|
switch (n) {
|
|
2562
2573
|
case "value": return {
|
|
2563
2574
|
kind: "scalar",
|
|
2564
|
-
out:
|
|
2575
|
+
out: U(i, r, e)
|
|
2565
2576
|
};
|
|
2566
2577
|
case "label": return {
|
|
2567
2578
|
kind: "scalar",
|
|
2568
|
-
out:
|
|
2579
|
+
out: U(a, e.dataType || "string", e)
|
|
2569
2580
|
};
|
|
2570
2581
|
case "object": {
|
|
2571
2582
|
let t = e.valueKey || "id", n = e.displayKey || "name";
|
|
2572
2583
|
return {
|
|
2573
2584
|
kind: "scalar",
|
|
2574
2585
|
out: {
|
|
2575
|
-
[t]:
|
|
2586
|
+
[t]: U(i, e.elementType || "auto", {}),
|
|
2576
2587
|
[n]: a
|
|
2577
2588
|
}
|
|
2578
2589
|
};
|
|
2579
2590
|
}
|
|
2580
2591
|
case "custom":
|
|
2581
2592
|
case "template": {
|
|
2582
|
-
let n =
|
|
2593
|
+
let n = Ri(e.payloadTemplate);
|
|
2583
2594
|
if (!n) return {
|
|
2584
2595
|
kind: "scalar",
|
|
2585
|
-
out:
|
|
2596
|
+
out: U(i, r, e)
|
|
2586
2597
|
};
|
|
2587
|
-
let o =
|
|
2588
|
-
value:
|
|
2598
|
+
let o = Li(n, {
|
|
2599
|
+
value: U(i, e.elementType || "auto", {}),
|
|
2589
2600
|
label: a,
|
|
2590
2601
|
raw: t
|
|
2591
2602
|
});
|
|
@@ -2596,19 +2607,19 @@ function Fi(e, t) {
|
|
|
2596
2607
|
}
|
|
2597
2608
|
default: return {
|
|
2598
2609
|
kind: "scalar",
|
|
2599
|
-
out:
|
|
2610
|
+
out: U(i, r, e)
|
|
2600
2611
|
};
|
|
2601
2612
|
}
|
|
2602
2613
|
}
|
|
2603
|
-
function
|
|
2614
|
+
function Bi(e, t) {
|
|
2604
2615
|
if (e.payloadMode === "skip") return { kind: "skip" };
|
|
2605
2616
|
let n = t;
|
|
2606
|
-
return
|
|
2617
|
+
return L(n) && e.defaultValue !== void 0 && e.defaultValue !== "" && (n = e.defaultValue), n = Pi(n, e.transformRule), L(n) && e.omitEmpty ? { kind: "skip" } : Array.isArray(n) && (Mi(e) === "array" || e.payloadMode === "object") && e.payloadMode && e.payloadMode !== "value" && e.payloadMode !== "auto" ? {
|
|
2607
2618
|
kind: "scalar",
|
|
2608
|
-
out: n.map((t) =>
|
|
2609
|
-
} :
|
|
2619
|
+
out: n.map((t) => zi(e, t).out)
|
|
2620
|
+
} : zi(e, n);
|
|
2610
2621
|
}
|
|
2611
|
-
function
|
|
2622
|
+
function Vi(e = {}) {
|
|
2612
2623
|
return !!e.richValue || [
|
|
2613
2624
|
"label",
|
|
2614
2625
|
"object",
|
|
@@ -2616,10 +2627,10 @@ function Li(e = {}) {
|
|
|
2616
2627
|
"template"
|
|
2617
2628
|
].includes(e.payloadMode);
|
|
2618
2629
|
}
|
|
2619
|
-
function
|
|
2620
|
-
if (!
|
|
2630
|
+
function Hi(e, t, n = []) {
|
|
2631
|
+
if (!Vi(e) || t == null) return t;
|
|
2621
2632
|
let r = (e) => {
|
|
2622
|
-
if (
|
|
2633
|
+
if (R(e) && e.value !== void 0) return e;
|
|
2623
2634
|
let t = n.find((t) => String(t?.value ?? "") === String(e) || String(t?.label ?? "") === String(e));
|
|
2624
2635
|
return {
|
|
2625
2636
|
value: t?.value ?? e,
|
|
@@ -2628,9 +2639,9 @@ function Ri(e, t, n = []) {
|
|
|
2628
2639
|
};
|
|
2629
2640
|
return Array.isArray(t) ? t.map(r) : r(t);
|
|
2630
2641
|
}
|
|
2631
|
-
function
|
|
2642
|
+
function Ui(e, t, n) {
|
|
2632
2643
|
if (!e?.field) return !0;
|
|
2633
|
-
let r =
|
|
2644
|
+
let r = V(t, e.field) ? B(t, e.field) : B(n ?? t, e.field), i = () => String(e.value ?? "").split(",").map((e) => e.trim());
|
|
2634
2645
|
switch (e.operator) {
|
|
2635
2646
|
case "eq": return String(r ?? "") === String(e.value ?? "");
|
|
2636
2647
|
case "neq": return String(r ?? "") !== String(e.value ?? "");
|
|
@@ -2642,45 +2653,45 @@ function zi(e, t, n) {
|
|
|
2642
2653
|
default: return !0;
|
|
2643
2654
|
}
|
|
2644
2655
|
}
|
|
2645
|
-
function
|
|
2656
|
+
function Wi(e) {
|
|
2646
2657
|
let t = [];
|
|
2647
2658
|
return e?.field && t.push(e.field), Array.isArray(e?.conditions) && e.conditions.forEach((e) => {
|
|
2648
2659
|
e?.field && t.push(e.field);
|
|
2649
2660
|
}), t;
|
|
2650
2661
|
}
|
|
2651
|
-
function
|
|
2662
|
+
function Gi(e, t, n) {
|
|
2652
2663
|
if (!e) return !0;
|
|
2653
2664
|
let r = Array.isArray(e.conditions) ? e.conditions.filter((e) => e?.field) : [];
|
|
2654
2665
|
if (r.length) {
|
|
2655
|
-
let i = r.map((e) =>
|
|
2666
|
+
let i = r.map((e) => Ui(e, t, n)), a = String(e.logic ?? "and").toLowerCase() === "or", o = a ? i.some(Boolean) : i.every(Boolean);
|
|
2656
2667
|
if (e.field) {
|
|
2657
|
-
let r =
|
|
2668
|
+
let r = Ui(e, t, n);
|
|
2658
2669
|
o = a ? o || r : o && r;
|
|
2659
2670
|
}
|
|
2660
2671
|
return o;
|
|
2661
2672
|
}
|
|
2662
|
-
return
|
|
2673
|
+
return Ui(e, t, n);
|
|
2663
2674
|
}
|
|
2664
|
-
function
|
|
2665
|
-
let a =
|
|
2666
|
-
return !a.length || i.has(e.field) ? !0 : (i.add(e.field),
|
|
2675
|
+
function Ki(e, t, n, r, i = /* @__PURE__ */ new Set()) {
|
|
2676
|
+
let a = Wi(e?.showIf);
|
|
2677
|
+
return !a.length || i.has(e.field) ? !0 : (i.add(e.field), Gi(e.showIf, t, n) ? a.every((e) => {
|
|
2667
2678
|
let a = r?.get?.(e);
|
|
2668
|
-
return a ?
|
|
2679
|
+
return a ? Ki(a, t, n, r, i) : !0;
|
|
2669
2680
|
}) : !1);
|
|
2670
2681
|
}
|
|
2671
|
-
function
|
|
2682
|
+
function qi(e = []) {
|
|
2672
2683
|
let t = /* @__PURE__ */ new Map();
|
|
2673
2684
|
return e.forEach((e) => (e.fields ?? []).forEach((e) => {
|
|
2674
2685
|
e?.field && !t.has(e.field) && t.set(e.field, e);
|
|
2675
2686
|
})), t;
|
|
2676
2687
|
}
|
|
2677
|
-
function
|
|
2688
|
+
function Ji(e = {}, { editing: t = !1 } = {}) {
|
|
2678
2689
|
let n = {};
|
|
2679
2690
|
return (e.fields ?? []).forEach((e) => {
|
|
2680
|
-
!e.field ||
|
|
2691
|
+
!e.field || W(e) || t && !e.defaultOnEdit || e.defaultValue === void 0 || e.defaultValue === "" || (n[e.field] = e.defaultValue);
|
|
2681
2692
|
}), n;
|
|
2682
2693
|
}
|
|
2683
|
-
function
|
|
2694
|
+
function Yi(e = []) {
|
|
2684
2695
|
let t = [];
|
|
2685
2696
|
return e.forEach((e) => {
|
|
2686
2697
|
(e.fields ?? []).forEach((n) => {
|
|
@@ -2691,27 +2702,27 @@ function Gi(e = []) {
|
|
|
2691
2702
|
});
|
|
2692
2703
|
}), t;
|
|
2693
2704
|
}
|
|
2694
|
-
var
|
|
2705
|
+
var Xi = [
|
|
2695
2706
|
"file",
|
|
2696
2707
|
"document",
|
|
2697
2708
|
"image",
|
|
2698
2709
|
"upload",
|
|
2699
2710
|
"attachment"
|
|
2700
2711
|
];
|
|
2701
|
-
function
|
|
2702
|
-
return
|
|
2712
|
+
function W(e) {
|
|
2713
|
+
return Xi.includes(String(e?.type ?? "").trim().toLowerCase());
|
|
2703
2714
|
}
|
|
2704
|
-
function
|
|
2705
|
-
return
|
|
2715
|
+
function Zi(e = []) {
|
|
2716
|
+
return Yi(e).map(({ field: e }) => e).filter(W);
|
|
2706
2717
|
}
|
|
2707
|
-
function
|
|
2718
|
+
function Qi(e) {
|
|
2708
2719
|
return String(e ?? "").trim().toLowerCase();
|
|
2709
2720
|
}
|
|
2710
|
-
function
|
|
2711
|
-
return !!t &&
|
|
2721
|
+
function $i(e, t) {
|
|
2722
|
+
return !!t && Qi(e.moduleName) === t;
|
|
2712
2723
|
}
|
|
2713
|
-
function
|
|
2714
|
-
let r = [], i = n.scope ?? "all", a =
|
|
2724
|
+
function ea(e, t = [], n = {}) {
|
|
2725
|
+
let r = [], i = n.scope ?? "all", a = Qi(n.module), o = (e, t) => {
|
|
2715
2726
|
t != null && (Array.isArray(t) ? t : [t]).forEach((t) => {
|
|
2716
2727
|
let n = t?.originFileObj || t;
|
|
2717
2728
|
(typeof File < "u" && n instanceof File || typeof Blob < "u" && n instanceof Blob) && r.push({
|
|
@@ -2721,9 +2732,9 @@ function Xi(e, t = [], n = {}) {
|
|
|
2721
2732
|
});
|
|
2722
2733
|
};
|
|
2723
2734
|
return (t ?? []).forEach((t) => {
|
|
2724
|
-
let r = (t.fields ?? []).filter(
|
|
2735
|
+
let r = (t.fields ?? []).filter(W);
|
|
2725
2736
|
if (!r.length) return;
|
|
2726
|
-
let s = t.moduleName &&
|
|
2737
|
+
let s = t.moduleName && !$i(t, a), c = (e) => s ? `__mw__${t.moduleName}__${e}` : e;
|
|
2727
2738
|
if (t.addRow) {
|
|
2728
2739
|
if (i === "flat") return;
|
|
2729
2740
|
let a = e[t.name];
|
|
@@ -2731,89 +2742,89 @@ function Xi(e, t = [], n = {}) {
|
|
|
2731
2742
|
r.forEach((e) => {
|
|
2732
2743
|
let t = e.fileKey ?? String(e.field).split(".")[0];
|
|
2733
2744
|
a.forEach((r, i) => {
|
|
2734
|
-
o(c(n.indexed ? `${t}[${i}]` : t),
|
|
2745
|
+
o(c(n.indexed ? `${t}[${i}]` : t), B(r, e.field));
|
|
2735
2746
|
});
|
|
2736
2747
|
});
|
|
2737
2748
|
return;
|
|
2738
2749
|
}
|
|
2739
2750
|
i !== "addRow" && r.forEach((t) => {
|
|
2740
|
-
o(c(t.fileKey ?? String(t.field).split(".")[0]),
|
|
2751
|
+
o(c(t.fileKey ?? String(t.field).split(".")[0]), B(e, t.field));
|
|
2741
2752
|
});
|
|
2742
2753
|
}), r;
|
|
2743
2754
|
}
|
|
2744
|
-
function
|
|
2745
|
-
let r =
|
|
2746
|
-
|
|
2747
|
-
(e.payloadKey || e.field) && (
|
|
2755
|
+
function ta(e, t, n = {}) {
|
|
2756
|
+
let r = R(n.base) ? structuredClone(n.base) : {};
|
|
2757
|
+
Zi(t).forEach((e) => {
|
|
2758
|
+
(e.payloadKey || e.field) && (ia(r, e.payloadKey || e.field), ia(r, e.field));
|
|
2748
2759
|
});
|
|
2749
|
-
let i =
|
|
2760
|
+
let i = Qi(n.module), a = qi(t), o = /* @__PURE__ */ new Map(), s = (e) => !e.moduleName || $i(e, i) ? r : (o.has(e.moduleName) || o.set(e.moduleName, {}), o.get(e.moduleName));
|
|
2750
2761
|
return (t ?? []).forEach((t) => {
|
|
2751
|
-
let n = s(t), r = t.fields ?? [], i = t.toggleEnabled && t.toggleField &&
|
|
2752
|
-
if (t.toggleEnabled && t.toggleField &&
|
|
2753
|
-
|
|
2762
|
+
let n = s(t), r = t.fields ?? [], i = t.toggleEnabled && t.toggleField && V(e, t.toggleField) ? !!B(e, t.toggleField) : !1;
|
|
2763
|
+
if (t.toggleEnabled && t.toggleField && V(e, t.toggleField) && (H(n, t.toggleField, i), i && t.addRow)) {
|
|
2764
|
+
H(n, t.payloadKey || t.name, []);
|
|
2754
2765
|
return;
|
|
2755
2766
|
}
|
|
2756
2767
|
if (t.addRow) {
|
|
2757
2768
|
let i = e[t.name];
|
|
2758
2769
|
if (!Array.isArray(i)) return;
|
|
2759
|
-
|
|
2770
|
+
H(n, t.payloadKey || t.name, i.map((t) => ra(r, t, e, a)).filter((e) => e && Object.keys(e).length > 0));
|
|
2760
2771
|
return;
|
|
2761
2772
|
}
|
|
2762
|
-
r.forEach((t) =>
|
|
2773
|
+
r.forEach((t) => na(t, e, n, e, a));
|
|
2763
2774
|
}), o.size > 0 && (r.moduleWrites = Array.from(o, ([e, t]) => ({
|
|
2764
2775
|
moduleName: e,
|
|
2765
2776
|
data: t
|
|
2766
|
-
}))),
|
|
2777
|
+
}))), _i(r, t);
|
|
2767
2778
|
}
|
|
2768
|
-
function
|
|
2769
|
-
if (
|
|
2770
|
-
let i =
|
|
2779
|
+
function na(e, t, n, r, i) {
|
|
2780
|
+
if (W(e)) {
|
|
2781
|
+
let i = Oi(B(t, e.field));
|
|
2771
2782
|
if (i !== void 0) {
|
|
2772
2783
|
let a = r !== void 0 && r !== t;
|
|
2773
|
-
|
|
2784
|
+
Di(n, e.payloadKey || (a ? e.field : e.fileKey || e.field), i);
|
|
2774
2785
|
}
|
|
2775
2786
|
return;
|
|
2776
2787
|
}
|
|
2777
|
-
if (
|
|
2778
|
-
(r === void 0 || r === t) &&
|
|
2788
|
+
if (Wi(e.showIf).length && !Ki(e, t, r, i)) {
|
|
2789
|
+
(r === void 0 || r === t) && V(t, e.field) && H(n, e.payloadKey || e.field, null);
|
|
2779
2790
|
return;
|
|
2780
2791
|
}
|
|
2781
2792
|
if (Array.isArray(e.subFields) && e.subFields.length > 0) {
|
|
2782
|
-
if (!
|
|
2783
|
-
let a =
|
|
2793
|
+
if (!V(t, e.field)) return;
|
|
2794
|
+
let a = B(t, e.field);
|
|
2784
2795
|
if (!Array.isArray(a)) return;
|
|
2785
|
-
let o = a.map((t) =>
|
|
2786
|
-
|
|
2796
|
+
let o = a.map((t) => ra(e.subFields, t, r, i)).filter((e) => e && Object.keys(e).length > 0);
|
|
2797
|
+
H(n, e.payloadKey || e.field, o);
|
|
2787
2798
|
return;
|
|
2788
2799
|
}
|
|
2789
|
-
if (!
|
|
2790
|
-
if (
|
|
2791
|
-
let r =
|
|
2792
|
-
|
|
2800
|
+
if (!V(t, e.field)) return;
|
|
2801
|
+
if (Ci(e.addRow) && (!Array.isArray(e.subFields) || e.subFields.length === 0)) {
|
|
2802
|
+
let r = B(t, e.field), i = Array.isArray(r) ? r : L(r) ? [] : [r], a = oa(e), o = i.map((e) => Bi(a, e)).filter((e) => e.kind !== "skip").map((e) => e.out);
|
|
2803
|
+
H(n, e.payloadKey || e.field, o);
|
|
2793
2804
|
return;
|
|
2794
2805
|
}
|
|
2795
|
-
let a =
|
|
2806
|
+
let a = Bi(e, B(t, e.field));
|
|
2796
2807
|
if (a.kind !== "skip") {
|
|
2797
|
-
if (a.kind === "spread" &&
|
|
2798
|
-
|
|
2808
|
+
if (a.kind === "spread" && R(a.out)) {
|
|
2809
|
+
ki(n, a.out);
|
|
2799
2810
|
return;
|
|
2800
2811
|
}
|
|
2801
|
-
|
|
2812
|
+
H(n, e.payloadKey || e.field, a.out);
|
|
2802
2813
|
}
|
|
2803
2814
|
}
|
|
2804
|
-
function
|
|
2815
|
+
function ra(e, t, n, r) {
|
|
2805
2816
|
let i = {};
|
|
2806
|
-
return e.forEach((e) =>
|
|
2817
|
+
return e.forEach((e) => na(e, t, i, n ?? t, r)), i;
|
|
2807
2818
|
}
|
|
2808
|
-
function
|
|
2819
|
+
function ia(e, t) {
|
|
2809
2820
|
let n = String(t).split("."), r = e;
|
|
2810
2821
|
for (let e = 0; e < n.length - 1; e += 1) {
|
|
2811
|
-
if (!
|
|
2822
|
+
if (!R(r[n[e]])) return;
|
|
2812
2823
|
r = r[n[e]];
|
|
2813
2824
|
}
|
|
2814
2825
|
delete r[n[n.length - 1]];
|
|
2815
2826
|
}
|
|
2816
|
-
var
|
|
2827
|
+
var aa = new Set([
|
|
2817
2828
|
"text",
|
|
2818
2829
|
"textarea",
|
|
2819
2830
|
"email",
|
|
@@ -2825,14 +2836,14 @@ var ta = new Set([
|
|
|
2825
2836
|
"datetime",
|
|
2826
2837
|
"password"
|
|
2827
2838
|
]);
|
|
2828
|
-
function
|
|
2839
|
+
function G(e, t) {
|
|
2829
2840
|
let n = (t) => (Array.isArray(e.emptyValues) ? e.emptyValues : []).some((e) => String(e) === String(t)), r = () => e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "" ? e.defaultValue : void 0;
|
|
2830
2841
|
if (t == null) return r() ?? t;
|
|
2831
2842
|
if (n(t)) return r();
|
|
2832
|
-
if (
|
|
2833
|
-
if (
|
|
2843
|
+
if (L(t) && e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "") return e.defaultValue;
|
|
2844
|
+
if (aa.has(e.type) && R(t)) {
|
|
2834
2845
|
let n = String(e.payloadKey || e.field || "").split(".").pop(), r = n ? t[n] : void 0;
|
|
2835
|
-
if (r === void 0 ||
|
|
2846
|
+
if (r === void 0 || R(r)) return;
|
|
2836
2847
|
t = r;
|
|
2837
2848
|
}
|
|
2838
2849
|
if (e.type === "date" || e.type === "time") {
|
|
@@ -2840,8 +2851,8 @@ function J(e, t) {
|
|
|
2840
2851
|
let e = ge(t);
|
|
2841
2852
|
return e.isValid() ? e : null;
|
|
2842
2853
|
}
|
|
2843
|
-
t =
|
|
2844
|
-
let i = (t) =>
|
|
2854
|
+
t = Si(e, t);
|
|
2855
|
+
let i = (t) => R(t) ? (e.valueKey && t[e.valueKey]) ?? t.id ?? t._id ?? t.value ?? t.userId ?? t.recruiterId : t, a = e.type === "radio" ? !1 : Mi(e) === "array", o = (t) => {
|
|
2845
2856
|
if (t == null || t === "" || !Array.isArray(e.options)) return t;
|
|
2846
2857
|
let n = e.options.find((e) => String(e?.value ?? "").toLowerCase() === String(t).toLowerCase());
|
|
2847
2858
|
return n ? n.value : t;
|
|
@@ -2853,7 +2864,7 @@ function J(e, t) {
|
|
|
2853
2864
|
}
|
|
2854
2865
|
return t;
|
|
2855
2866
|
}
|
|
2856
|
-
function
|
|
2867
|
+
function oa(e = {}) {
|
|
2857
2868
|
return {
|
|
2858
2869
|
...e,
|
|
2859
2870
|
addRow: !1,
|
|
@@ -2862,26 +2873,26 @@ function na(e = {}) {
|
|
|
2862
2873
|
dataType: void 0
|
|
2863
2874
|
};
|
|
2864
2875
|
}
|
|
2865
|
-
function
|
|
2876
|
+
function sa(e, t) {
|
|
2866
2877
|
let n = Math.max(0, Number(e.minRows ?? 0) || 0), r = e.initialRows !== void 0 && e.initialRows !== "" ? Math.max(n, Math.max(0, Number(e.initialRows) || 0)) : n;
|
|
2867
2878
|
if (Array.isArray(e.subFields) && e.subFields.length > 0) {
|
|
2868
2879
|
let i = [];
|
|
2869
2880
|
Array.isArray(t) && (i = t.map((t) => {
|
|
2870
2881
|
let n = {};
|
|
2871
2882
|
return e.subFields.forEach((e) => {
|
|
2872
|
-
if (!e.field ||
|
|
2873
|
-
let r =
|
|
2874
|
-
r != null && (n[e.field] =
|
|
2883
|
+
if (!e.field || W(e)) return;
|
|
2884
|
+
let r = z(t ?? {}, e.field) ?? (t ?? {})[e.field];
|
|
2885
|
+
r != null && (n[e.field] = G(e, r));
|
|
2875
2886
|
}), n;
|
|
2876
2887
|
}));
|
|
2877
2888
|
let a = i.length > 0 ? n : Math.max(n, r);
|
|
2878
2889
|
for (; i.length < a;) i.push({});
|
|
2879
2890
|
return i;
|
|
2880
2891
|
}
|
|
2881
|
-
let i =
|
|
2882
|
-
if (Array.isArray(t)) a = t.map((e) =>
|
|
2892
|
+
let i = oa(e), a = [];
|
|
2893
|
+
if (Array.isArray(t)) a = t.map((e) => G(i, e)).filter((e) => e != null && e !== "");
|
|
2883
2894
|
else if (t != null && t !== "") {
|
|
2884
|
-
let e =
|
|
2895
|
+
let e = G(i, t);
|
|
2885
2896
|
e != null && e !== "" && (a = [e]);
|
|
2886
2897
|
}
|
|
2887
2898
|
let o = a.length > 0 ? n : Math.max(n, r);
|
|
@@ -2890,12 +2901,12 @@ function ra(e, t) {
|
|
|
2890
2901
|
}
|
|
2891
2902
|
//#endregion
|
|
2892
2903
|
//#region src/components/form/linkedAddRowGroups.js
|
|
2893
|
-
var
|
|
2894
|
-
function
|
|
2904
|
+
var ca = (e) => e === !0 || e === 1 || e === "1";
|
|
2905
|
+
function la(e = []) {
|
|
2895
2906
|
let t = /* @__PURE__ */ new Map();
|
|
2896
2907
|
e.forEach((e) => {
|
|
2897
2908
|
let n = e?.linkGroup;
|
|
2898
|
-
!
|
|
2909
|
+
!ca(e?.addRow) || !n || (t.has(n) || t.set(n, []), t.get(n).push(e.name));
|
|
2899
2910
|
});
|
|
2900
2911
|
let n = /* @__PURE__ */ new Map();
|
|
2901
2912
|
return t.forEach((e, t) => {
|
|
@@ -2905,11 +2916,11 @@ function aa(e = []) {
|
|
|
2905
2916
|
});
|
|
2906
2917
|
}), n;
|
|
2907
2918
|
}
|
|
2908
|
-
function
|
|
2919
|
+
function ua(e, t) {
|
|
2909
2920
|
for (let n of e.values()) if (n.memberNames.includes(t)) return n;
|
|
2910
2921
|
return null;
|
|
2911
2922
|
}
|
|
2912
|
-
function
|
|
2923
|
+
function da(e, t = {}) {
|
|
2913
2924
|
let n = { ...t };
|
|
2914
2925
|
return e.forEach(({ memberNames: e }) => {
|
|
2915
2926
|
let t = Math.max(...e.map((e) => (n[e] ?? []).length));
|
|
@@ -2921,7 +2932,7 @@ function sa(e, t = {}) {
|
|
|
2921
2932
|
}
|
|
2922
2933
|
//#endregion
|
|
2923
2934
|
//#region src/services/aiActionApi.js
|
|
2924
|
-
async function
|
|
2935
|
+
async function fa({ module: e, group: t, field: n, actionKey: a, inputs: o = {}, files: s = {} }) {
|
|
2925
2936
|
if (!e || !t || !n || !a) throw Error("module, group, field and actionKey are required to run an AI action");
|
|
2926
2937
|
let c = await i(), l = new FormData();
|
|
2927
2938
|
l.append("json", JSON.stringify({ inputs: o })), Object.entries(s).forEach(([e, t]) => {
|
|
@@ -2947,7 +2958,7 @@ async function ca({ module: e, group: t, field: n, actionKey: a, inputs: o = {},
|
|
|
2947
2958
|
}
|
|
2948
2959
|
//#endregion
|
|
2949
2960
|
//#region src/components/detail/renderConfig.js
|
|
2950
|
-
var
|
|
2961
|
+
var pa = [
|
|
2951
2962
|
{
|
|
2952
2963
|
value: "auto",
|
|
2953
2964
|
label: "Default (auto)"
|
|
@@ -3004,7 +3015,7 @@ var la = [
|
|
|
3004
3015
|
value: "html",
|
|
3005
3016
|
label: "HTML"
|
|
3006
3017
|
}
|
|
3007
|
-
],
|
|
3018
|
+
], ma = [
|
|
3008
3019
|
{
|
|
3009
3020
|
value: "preview",
|
|
3010
3021
|
label: "Preview (viewer)"
|
|
@@ -3025,7 +3036,7 @@ var la = [
|
|
|
3025
3036
|
value: "text",
|
|
3026
3037
|
label: "Text (filename)"
|
|
3027
3038
|
}
|
|
3028
|
-
],
|
|
3039
|
+
], ha = [
|
|
3029
3040
|
{
|
|
3030
3041
|
value: "none",
|
|
3031
3042
|
label: "None"
|
|
@@ -3042,71 +3053,71 @@ var la = [
|
|
|
3042
3053
|
value: "title",
|
|
3043
3054
|
label: "Title Case"
|
|
3044
3055
|
}
|
|
3045
|
-
],
|
|
3056
|
+
], ga = [
|
|
3046
3057
|
"location",
|
|
3047
3058
|
"path",
|
|
3048
3059
|
"url",
|
|
3049
3060
|
"key"
|
|
3050
|
-
],
|
|
3061
|
+
], _a = [
|
|
3051
3062
|
"location",
|
|
3052
3063
|
"filepath",
|
|
3053
3064
|
"path",
|
|
3054
3065
|
"url",
|
|
3055
3066
|
"key"
|
|
3056
|
-
],
|
|
3067
|
+
], va = [
|
|
3057
3068
|
"uploadedfilename",
|
|
3058
3069
|
"uploadname",
|
|
3059
3070
|
"originalname",
|
|
3060
3071
|
"displayname",
|
|
3061
3072
|
"documentname",
|
|
3062
3073
|
"filename"
|
|
3063
|
-
],
|
|
3064
|
-
function
|
|
3074
|
+
], ya = ["name"], ba = (e) => String(e).toLowerCase(), xa = (e) => e == null || e === "";
|
|
3075
|
+
function Sa(e, t) {
|
|
3065
3076
|
for (let n of t) {
|
|
3066
3077
|
let t = e[n];
|
|
3067
3078
|
if (typeof t == "string" && t) return t;
|
|
3068
3079
|
}
|
|
3069
3080
|
return "";
|
|
3070
3081
|
}
|
|
3071
|
-
function
|
|
3072
|
-
for (let n of t) for (let [t, r] of Object.entries(e)) if (typeof r == "string" && r &&
|
|
3082
|
+
function Ca(e, t) {
|
|
3083
|
+
for (let n of t) for (let [t, r] of Object.entries(e)) if (typeof r == "string" && r && ba(t).endsWith(n)) return r;
|
|
3073
3084
|
return "";
|
|
3074
3085
|
}
|
|
3075
|
-
function
|
|
3086
|
+
function wa(e) {
|
|
3076
3087
|
if (!e) return "";
|
|
3077
3088
|
let t = String(e).split("?")[0].split("#")[0];
|
|
3078
3089
|
return decodeURIComponent(t.split("/").pop() || "");
|
|
3079
3090
|
}
|
|
3080
|
-
function
|
|
3091
|
+
function K(e) {
|
|
3081
3092
|
if (!e) return "";
|
|
3082
3093
|
let t = String(e);
|
|
3083
3094
|
if (/^https?:\/\//i.test(t)) return t;
|
|
3084
|
-
let n =
|
|
3095
|
+
let n = Hr().s3BaseUrl || "";
|
|
3085
3096
|
return n ? `${n}/${t.replace(/^\/+/, "")}` : "";
|
|
3086
3097
|
}
|
|
3087
|
-
function
|
|
3088
|
-
return typeof e == "string" ? e.includes("/") ? e : "" : !e || typeof e != "object" ? "" :
|
|
3098
|
+
function Ta(e) {
|
|
3099
|
+
return typeof e == "string" ? e.includes("/") ? e : "" : !e || typeof e != "object" ? "" : Sa(e, ga) || Ca(e, _a);
|
|
3089
3100
|
}
|
|
3090
|
-
function
|
|
3091
|
-
return e ? typeof e == "string" ?
|
|
3101
|
+
function Ea(e) {
|
|
3102
|
+
return e ? typeof e == "string" ? wa(e) || e : typeof e == "object" && (Sa(e, Hr().documentNameOrder ?? []) || Ca(e, va) || wa(Ta(e)) || Ca(e, ya)) || "Document" : "Document";
|
|
3092
3103
|
}
|
|
3093
|
-
function
|
|
3094
|
-
if (
|
|
3104
|
+
function Da(e) {
|
|
3105
|
+
if (xa(e)) return [];
|
|
3095
3106
|
let t = Array.isArray(e) ? e : [e], n = [];
|
|
3096
|
-
for (let e of t) if (!
|
|
3107
|
+
for (let e of t) if (!xa(e)) {
|
|
3097
3108
|
if (typeof e == "string") {
|
|
3098
3109
|
let t = e.includes("/") ? e : "";
|
|
3099
3110
|
n.push({
|
|
3100
3111
|
location: t,
|
|
3101
|
-
name:
|
|
3102
|
-
url:
|
|
3112
|
+
name: wa(e) || e,
|
|
3113
|
+
url: K(t)
|
|
3103
3114
|
});
|
|
3104
3115
|
} else if (typeof e == "object") {
|
|
3105
|
-
let t =
|
|
3116
|
+
let t = Ta(e), r = e.fileUrl || e.downloadUrl || e.signedUrl || "";
|
|
3106
3117
|
n.push({
|
|
3107
3118
|
location: t,
|
|
3108
|
-
name:
|
|
3109
|
-
url: r ||
|
|
3119
|
+
name: Ea(e),
|
|
3120
|
+
url: r || K(t)
|
|
3110
3121
|
});
|
|
3111
3122
|
}
|
|
3112
3123
|
}
|
|
@@ -3114,12 +3125,12 @@ function wa(e) {
|
|
|
3114
3125
|
}
|
|
3115
3126
|
//#endregion
|
|
3116
3127
|
//#region src/components/form/applyGroupValues.js
|
|
3117
|
-
var
|
|
3118
|
-
function
|
|
3128
|
+
var Oa = (e) => e === !0 || e === 1 || e === "1", ka = (e) => e == null || e === "";
|
|
3129
|
+
function Aa(e) {
|
|
3119
3130
|
return String(e ?? "").split(".").map((e) => e.trim()).filter(Boolean);
|
|
3120
3131
|
}
|
|
3121
|
-
function
|
|
3122
|
-
let r = Array.isArray(t) ? t :
|
|
3132
|
+
function q(e, t, n) {
|
|
3133
|
+
let r = Array.isArray(t) ? t : Aa(t);
|
|
3123
3134
|
if (!r.length) return e;
|
|
3124
3135
|
let i = e;
|
|
3125
3136
|
for (let e = 0; e < r.length - 1; e += 1) {
|
|
@@ -3128,23 +3139,23 @@ function Y(e, t, n) {
|
|
|
3128
3139
|
}
|
|
3129
3140
|
return i[r[r.length - 1]] = n, e;
|
|
3130
3141
|
}
|
|
3131
|
-
function
|
|
3142
|
+
function ja(e, t = []) {
|
|
3132
3143
|
if (!(!e || typeof e != "object")) for (let n of t) {
|
|
3133
3144
|
if (!n) continue;
|
|
3134
|
-
let t =
|
|
3135
|
-
if (!
|
|
3145
|
+
let t = z(e, n);
|
|
3146
|
+
if (!ka(t)) return t;
|
|
3136
3147
|
}
|
|
3137
3148
|
}
|
|
3138
|
-
function
|
|
3149
|
+
function J(e, t) {
|
|
3139
3150
|
if (!e || typeof e != "object") return;
|
|
3140
|
-
let n = Object.entries(e), r = n.find(([e, n]) => t.test(e) && !
|
|
3151
|
+
let n = Object.entries(e), r = n.find(([e, n]) => t.test(e) && !ka(n));
|
|
3141
3152
|
if (r) return r[1];
|
|
3142
3153
|
for (let [, e] of n) if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
3143
|
-
let n =
|
|
3144
|
-
if (!
|
|
3154
|
+
let n = J(e, t);
|
|
3155
|
+
if (!ka(n)) return n;
|
|
3145
3156
|
}
|
|
3146
3157
|
}
|
|
3147
|
-
function
|
|
3158
|
+
function Ma(e, t) {
|
|
3148
3159
|
let n = Array.isArray(e) ? e : e ? [e] : [];
|
|
3149
3160
|
if (!n.length) return;
|
|
3150
3161
|
let r = n.map((e, n) => {
|
|
@@ -3154,9 +3165,9 @@ function Aa(e, t) {
|
|
|
3154
3165
|
status: "done"
|
|
3155
3166
|
};
|
|
3156
3167
|
if (!e || typeof e != "object") return null;
|
|
3157
|
-
let r =
|
|
3168
|
+
let r = ja(e, [t.fileUrlKey, t.locationKey]) ?? J(e, /(location|url|path)$/i) ?? "", i = ja(e, [t.fileNameKey]) ?? J(e, /(uploadName|uploadedFileName|fileName|name)$/i) ?? "";
|
|
3158
3169
|
if (!r && !i) return null;
|
|
3159
|
-
let a = r && !String(r).startsWith("http") ?
|
|
3170
|
+
let a = r && !String(r).startsWith("http") ? K(r) : r;
|
|
3160
3171
|
return {
|
|
3161
3172
|
uid: String(e.id ?? e._id ?? e.uniqueName ?? e.documentCopyUniqueName ?? `${t.field}-${n}`),
|
|
3162
3173
|
name: i || "file",
|
|
@@ -3168,11 +3179,11 @@ function Aa(e, t) {
|
|
|
3168
3179
|
}).filter(Boolean);
|
|
3169
3180
|
return r.length ? r : void 0;
|
|
3170
3181
|
}
|
|
3171
|
-
function
|
|
3182
|
+
function Na(e, t) {
|
|
3172
3183
|
if (!e || typeof e != "object") return;
|
|
3173
|
-
let n =
|
|
3184
|
+
let n = ja(e, [t.fileNameKey, t.field]) ?? J(e, /(uploadName|uploadedFileName|fileName|name)$/i), r = ja(e, [t.fileUrlKey, t.locationKey]) ?? J(e, /(location|url|path)$/i) ?? "";
|
|
3174
3185
|
if (!n && !r) return;
|
|
3175
|
-
let i = r && !String(r).startsWith("http") ?
|
|
3186
|
+
let i = r && !String(r).startsWith("http") ? K(r) : r, a = e.documentCopyUniqueName ?? e.uniqueName ?? n ?? `${t.field}-0`;
|
|
3176
3187
|
return [{
|
|
3177
3188
|
uid: String(a),
|
|
3178
3189
|
name: n ?? "file",
|
|
@@ -3181,55 +3192,55 @@ function ja(e, t) {
|
|
|
3181
3192
|
url: i || void 0
|
|
3182
3193
|
}];
|
|
3183
3194
|
}
|
|
3184
|
-
function
|
|
3195
|
+
function Pa(e, t, n, r) {
|
|
3185
3196
|
(e.fields ?? []).forEach((e) => {
|
|
3186
3197
|
e?.verifyAction && [
|
|
3187
3198
|
e.verifyResultField,
|
|
3188
3199
|
e.verifyTimestampField,
|
|
3189
3200
|
...String(e.verifyLockedWhenFields ?? "").split(/[,\s]+/)
|
|
3190
3201
|
].map((e) => String(e ?? "").trim()).filter(Boolean).forEach((e) => {
|
|
3191
|
-
if (
|
|
3202
|
+
if (z(n, e) !== void 0) return;
|
|
3192
3203
|
let i = r(t, { field: e });
|
|
3193
|
-
i != null &&
|
|
3204
|
+
i != null && q(n, e, i);
|
|
3194
3205
|
});
|
|
3195
3206
|
});
|
|
3196
3207
|
}
|
|
3197
|
-
function
|
|
3208
|
+
function Fa(e) {
|
|
3198
3209
|
let t = Array.isArray(e.rows) ? e.rows : null, n = Math.max(0, Number(e.minRows ?? 0) || 0), r = (t, n, r) => {
|
|
3199
3210
|
let i = {};
|
|
3200
3211
|
return (e.fields ?? []).forEach((e) => {
|
|
3201
3212
|
if (!e.field) return;
|
|
3202
3213
|
if (e.type === "file") {
|
|
3203
3214
|
let r = n(t, e);
|
|
3204
|
-
r &&
|
|
3215
|
+
r && q(i, e.field, r);
|
|
3205
3216
|
return;
|
|
3206
3217
|
}
|
|
3207
3218
|
let a = r(t, e);
|
|
3208
3219
|
if (a == null) {
|
|
3209
|
-
e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "" &&
|
|
3220
|
+
e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "" && q(i, e.field, e.defaultValue);
|
|
3210
3221
|
return;
|
|
3211
3222
|
}
|
|
3212
|
-
|
|
3213
|
-
}),
|
|
3214
|
-
}, i =
|
|
3223
|
+
q(i, e.field, Oa(e.addRow) ? sa(e, a) : G(e, a));
|
|
3224
|
+
}), Pa(e, t, i, r), i;
|
|
3225
|
+
}, i = Ji(e, { editing: !0 });
|
|
3215
3226
|
if (t && t.length > 0) {
|
|
3216
|
-
let e = t.map((e) => r(e, (e, t) =>
|
|
3227
|
+
let e = t.map((e) => r(e, (e, t) => Na(e, t), (e, t) => z(e, t.field)));
|
|
3217
3228
|
for (; e.length < n;) e.push({ ...i });
|
|
3218
3229
|
return e;
|
|
3219
3230
|
}
|
|
3220
|
-
let a = r(e, (e, t) =>
|
|
3231
|
+
let a = r(e, (e, t) => Ma(t.value, t), (e, t) => t.value), o = Object.keys(a).length > 0 ? [a] : [];
|
|
3221
3232
|
for (; o.length < n;) o.push({ ...i });
|
|
3222
3233
|
return o;
|
|
3223
3234
|
}
|
|
3224
|
-
function
|
|
3235
|
+
function Ia(e, t = []) {
|
|
3225
3236
|
let n = {};
|
|
3226
3237
|
return t.forEach((e) => {
|
|
3227
|
-
e.toggleEnabled && e.toggleField &&
|
|
3238
|
+
e.toggleEnabled && e.toggleField && q(n, e.toggleField, !!e.toggleValue), !e.addRow && (e.fields ?? []).forEach((e) => {
|
|
3228
3239
|
if (!e.field || e.addRow) return;
|
|
3229
3240
|
let t = e.value, r = e.field;
|
|
3230
3241
|
if (e.type === "file") {
|
|
3231
|
-
let i =
|
|
3232
|
-
i &&
|
|
3242
|
+
let i = Ma(t, e);
|
|
3243
|
+
i && q(n, r, i);
|
|
3233
3244
|
return;
|
|
3234
3245
|
}
|
|
3235
3246
|
if (t != null) {
|
|
@@ -3237,38 +3248,38 @@ function Pa(e, t = []) {
|
|
|
3237
3248
|
let i = e.transformRule?.map;
|
|
3238
3249
|
if (i) {
|
|
3239
3250
|
let e = Object.entries(i).find(([, e]) => String(e) === String(t));
|
|
3240
|
-
|
|
3241
|
-
} else
|
|
3251
|
+
q(n, r, e ? [e[0]] : []);
|
|
3252
|
+
} else q(n, r, Si(e, Array.isArray(t) ? t : [t]));
|
|
3242
3253
|
return;
|
|
3243
3254
|
}
|
|
3244
|
-
|
|
3255
|
+
q(n, r, G(e, t));
|
|
3245
3256
|
}
|
|
3246
3257
|
});
|
|
3247
3258
|
}), Object.keys(n).length > 0 && e.setFieldsValue(n), n;
|
|
3248
3259
|
}
|
|
3249
3260
|
//#endregion
|
|
3250
3261
|
//#region src/components/form/useAiActions.js
|
|
3251
|
-
function
|
|
3262
|
+
function La(e) {
|
|
3252
3263
|
let t = document.createElement("div");
|
|
3253
3264
|
return t.innerHTML = String(e ?? ""), t.textContent || t.innerText || "";
|
|
3254
3265
|
}
|
|
3255
|
-
function
|
|
3256
|
-
return t && t === "stripHtml" ?
|
|
3266
|
+
function Ra(e, t) {
|
|
3267
|
+
return t && t === "stripHtml" ? La(e) : e;
|
|
3257
3268
|
}
|
|
3258
|
-
function
|
|
3269
|
+
function za(e) {
|
|
3259
3270
|
return String(e ?? "").trim().split(/\s+/).filter(Boolean).length;
|
|
3260
3271
|
}
|
|
3261
|
-
function
|
|
3272
|
+
function Ba(e) {
|
|
3262
3273
|
return Object.values(e || {}).some((e) => e != null && e !== "");
|
|
3263
3274
|
}
|
|
3264
|
-
function
|
|
3275
|
+
function Va(e, t) {
|
|
3265
3276
|
if (e.kind === "file") return Array.isArray(t) ? t.length > 0 : !!t;
|
|
3266
|
-
let n =
|
|
3277
|
+
let n = Ra(t, e.transform), r = String(n ?? "").trim();
|
|
3267
3278
|
if (!r) return !1;
|
|
3268
3279
|
let i = Number(e.minWords) || 0;
|
|
3269
|
-
return i > 0 ?
|
|
3280
|
+
return i > 0 ? za(r) >= i : !0;
|
|
3270
3281
|
}
|
|
3271
|
-
function
|
|
3282
|
+
function Ha(e, t) {
|
|
3272
3283
|
let n = e.inputs || [];
|
|
3273
3284
|
if (n.length === 0) return !0;
|
|
3274
3285
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -3276,35 +3287,35 @@ function Ba(e, t) {
|
|
|
3276
3287
|
let n = e.group || `__solo_${t}`;
|
|
3277
3288
|
r.has(n) || r.set(n, []), r.get(n).push(e);
|
|
3278
3289
|
});
|
|
3279
|
-
for (let e of r.values()) if (e.some((e) => e.required || Number(e.minWords) > 0) && !e.some((e) =>
|
|
3290
|
+
for (let e of r.values()) if (e.some((e) => e.required || Number(e.minWords) > 0) && !e.some((e) => Va(e, t(e.sourceField)))) return !1;
|
|
3280
3291
|
return !0;
|
|
3281
3292
|
}
|
|
3282
|
-
var
|
|
3293
|
+
var Ua = [
|
|
3283
3294
|
"top-left",
|
|
3284
3295
|
"top-center",
|
|
3285
3296
|
"top-right",
|
|
3286
3297
|
"bottom-left",
|
|
3287
3298
|
"bottom-center",
|
|
3288
3299
|
"bottom-right"
|
|
3289
|
-
],
|
|
3290
|
-
function
|
|
3300
|
+
], Wa = "bottom-left";
|
|
3301
|
+
function Ga(e = []) {
|
|
3291
3302
|
let t = {};
|
|
3292
3303
|
return e.forEach((e) => {
|
|
3293
|
-
let n =
|
|
3304
|
+
let n = Ua.includes(e.position) ? e.position : Wa;
|
|
3294
3305
|
(t[n] ??= []).push(e);
|
|
3295
3306
|
}), t;
|
|
3296
3307
|
}
|
|
3297
|
-
function
|
|
3298
|
-
let [r, i] = g(null), a = y.useWatch((e) => e, e), o = f((e) =>
|
|
3308
|
+
function Ka({ form: e, groups: t, module: n }) {
|
|
3309
|
+
let [r, i] = g(null), a = y.useWatch((e) => e, e), o = f((e) => Ha(e, (e) => (a || {})[e]), [a]), s = f((t) => {
|
|
3299
3310
|
if (!Array.isArray(t) || t.length === 0) return !1;
|
|
3300
|
-
let n =
|
|
3311
|
+
let n = Ia(e, t.filter((e) => !e.addRow)), r = Object.keys(n).length > 0;
|
|
3301
3312
|
return t.forEach((t) => {
|
|
3302
3313
|
if (!t.addRow || !Array.isArray(t.rows) || t.rows.length === 0) return;
|
|
3303
|
-
let n =
|
|
3314
|
+
let n = Fa(t);
|
|
3304
3315
|
if (n.length === 0) return;
|
|
3305
3316
|
r = !0;
|
|
3306
3317
|
let i = () => e.setFieldsValue({ [t.name]: n }), a = e.getFieldValue(t.name) || [];
|
|
3307
|
-
a.some(
|
|
3318
|
+
a.some(Ba) ? b.confirm({
|
|
3308
3319
|
title: "Replace existing rows?",
|
|
3309
3320
|
content: `This will replace ${a.length} existing row(s) in "${t.label || t.name}".`,
|
|
3310
3321
|
okText: "Replace",
|
|
@@ -3324,12 +3335,12 @@ function Wa({ form: e, groups: t, module: n }) {
|
|
|
3324
3335
|
r && (c[t.param] = r);
|
|
3325
3336
|
} else {
|
|
3326
3337
|
let n = e.getFieldValue(t.sourceField);
|
|
3327
|
-
n != null && n !== "" && (i[t.param] =
|
|
3338
|
+
n != null && n !== "" && (i[t.param] = Ra(n, t.transform));
|
|
3328
3339
|
}
|
|
3329
3340
|
}), (a.inputs || []).forEach((e) => {
|
|
3330
3341
|
!e.group || e.kind !== "text" || (a.inputs || []).some((t) => t.group === e.group && t.kind === "file" && c[t.param]) && delete i[e.param];
|
|
3331
3342
|
});
|
|
3332
|
-
let l = await
|
|
3343
|
+
let l = await fa({
|
|
3333
3344
|
module: n,
|
|
3334
3345
|
group: t,
|
|
3335
3346
|
field: r.field,
|
|
@@ -3356,7 +3367,7 @@ function Wa({ form: e, groups: t, module: n }) {
|
|
|
3356
3367
|
}
|
|
3357
3368
|
//#endregion
|
|
3358
3369
|
//#region src/components/form/AiActionButtons.jsx
|
|
3359
|
-
function
|
|
3370
|
+
function qa({ position: e, actions: t, aiActions: n, groupName: r, field: i }) {
|
|
3360
3371
|
return !t || t.length === 0 ? null : /* @__PURE__ */ C(ee, {
|
|
3361
3372
|
size: 8,
|
|
3362
3373
|
className: "v1-ai-action-buttons",
|
|
@@ -3375,18 +3386,18 @@ function Ga({ position: e, actions: t, aiActions: n, groupName: r, field: i }) {
|
|
|
3375
3386
|
}
|
|
3376
3387
|
//#endregion
|
|
3377
3388
|
//#region src/components/form/emailValidator.js
|
|
3378
|
-
function
|
|
3389
|
+
function Ja(e) {
|
|
3379
3390
|
let t = String(e ?? "").trim(), n = /^([^\s@]+)@([^\s@]+)\.([A-Za-z]{2,})$/.exec(t);
|
|
3380
3391
|
if (!n) return !1;
|
|
3381
3392
|
let [, r, i] = n;
|
|
3382
3393
|
return /[A-Za-z]/.test(r) && /[A-Za-z]/.test(i);
|
|
3383
3394
|
}
|
|
3384
|
-
function
|
|
3385
|
-
return { validator: (n, r) => r == null || r === "" ||
|
|
3395
|
+
function Ya(e = "Email", t) {
|
|
3396
|
+
return { validator: (n, r) => r == null || r === "" || Ja(r) ? Promise.resolve() : Promise.reject(Error(t ?? `Enter a valid ${e}; numeric-only email addresses are not allowed`)) };
|
|
3386
3397
|
}
|
|
3387
3398
|
//#endregion
|
|
3388
3399
|
//#region src/components/form/inputValidator.js
|
|
3389
|
-
var
|
|
3400
|
+
var Xa = [
|
|
3390
3401
|
{
|
|
3391
3402
|
label: "Only Numbers",
|
|
3392
3403
|
value: "onlyNumber"
|
|
@@ -3455,7 +3466,7 @@ var Ja = [
|
|
|
3455
3466
|
label: "Website URL",
|
|
3456
3467
|
value: "websiteUrl"
|
|
3457
3468
|
}
|
|
3458
|
-
],
|
|
3469
|
+
], Za = {
|
|
3459
3470
|
onlyNumber: /^[0-9]$/,
|
|
3460
3471
|
experience: /^[0-9]$/,
|
|
3461
3472
|
numericTwoDigits: /^[0-9]$/,
|
|
@@ -3470,10 +3481,10 @@ var Ja = [
|
|
|
3470
3481
|
decimalRange: /^[0-9.]$/,
|
|
3471
3482
|
contactNumber: /^[0-9()\-+\s]$/
|
|
3472
3483
|
};
|
|
3473
|
-
function
|
|
3474
|
-
return
|
|
3484
|
+
function Qa(e) {
|
|
3485
|
+
return Za[e] ?? null;
|
|
3475
3486
|
}
|
|
3476
|
-
function
|
|
3487
|
+
function $a(e, t = {}, n = "change") {
|
|
3477
3488
|
if (!t?.type || e == null) return {
|
|
3478
3489
|
cleaned: e ?? "",
|
|
3479
3490
|
error: null
|
|
@@ -3551,7 +3562,7 @@ function Za(e, t = {}, n = "change") {
|
|
|
3551
3562
|
break;
|
|
3552
3563
|
}
|
|
3553
3564
|
case "email":
|
|
3554
|
-
c = n === "blur" ? r.trim() : r, c && !
|
|
3565
|
+
c = n === "blur" ? r.trim() : r, c && !Ja(c) && (l = `${s} must be a valid email address; numeric-only email addresses are not allowed.`);
|
|
3555
3566
|
break;
|
|
3556
3567
|
case "websiteUrl":
|
|
3557
3568
|
c = n === "blur" ? r.trim() : r, c && !/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/i.test(c) && (l = `${s} must be a valid URL.`);
|
|
@@ -3563,21 +3574,21 @@ function Za(e, t = {}, n = "change") {
|
|
|
3563
3574
|
error: l
|
|
3564
3575
|
};
|
|
3565
3576
|
}
|
|
3566
|
-
var
|
|
3567
|
-
function
|
|
3577
|
+
var eo = "This value is already present";
|
|
3578
|
+
function to(e) {
|
|
3568
3579
|
return typeof e == "string" ? e : e?.type ?? e?.rule ?? e?.name;
|
|
3569
3580
|
}
|
|
3570
|
-
function
|
|
3571
|
-
if (
|
|
3581
|
+
function no(e) {
|
|
3582
|
+
if (to(e) !== "unique") return null;
|
|
3572
3583
|
if (typeof e == "string") return {
|
|
3573
|
-
message:
|
|
3584
|
+
message: eo,
|
|
3574
3585
|
normalizer: "trim",
|
|
3575
3586
|
skipBlank: !0,
|
|
3576
3587
|
validateOn: "blur"
|
|
3577
3588
|
};
|
|
3578
3589
|
let t = e.value && typeof e.value == "object" ? e.value : e, n = String(t.validateOn ?? "blur").toLowerCase();
|
|
3579
3590
|
return {
|
|
3580
|
-
message: typeof e.message == "string" && e.message.trim() ? e.message.trim() :
|
|
3591
|
+
message: typeof e.message == "string" && e.message.trim() ? e.message.trim() : eo,
|
|
3581
3592
|
collectionField: t.collectionField ?? "",
|
|
3582
3593
|
normalizer: String(t.normalizer ?? "trim"),
|
|
3583
3594
|
skipBlank: t.skipBlank !== !1,
|
|
@@ -3588,20 +3599,20 @@ function eo(e) {
|
|
|
3588
3599
|
].includes(n) ? n : "blur"
|
|
3589
3600
|
};
|
|
3590
3601
|
}
|
|
3591
|
-
function
|
|
3602
|
+
function ro(e) {
|
|
3592
3603
|
let t = e?.validations ?? e?.validation ?? e?.rules ?? [];
|
|
3593
3604
|
if (!Array.isArray(t)) return null;
|
|
3594
3605
|
for (let e of t) {
|
|
3595
|
-
let t =
|
|
3606
|
+
let t = no(e);
|
|
3596
3607
|
if (t) return t;
|
|
3597
3608
|
}
|
|
3598
3609
|
return null;
|
|
3599
3610
|
}
|
|
3600
|
-
function
|
|
3611
|
+
function io(e = []) {
|
|
3601
3612
|
let t = [];
|
|
3602
3613
|
return (Array.isArray(e) ? e : []).forEach((e) => {
|
|
3603
3614
|
(e?.fields ?? []).forEach((e) => {
|
|
3604
|
-
let n =
|
|
3615
|
+
let n = ro(e);
|
|
3605
3616
|
!n || !e?.field || t.push({
|
|
3606
3617
|
field: e.field,
|
|
3607
3618
|
label: e.label ?? e.field,
|
|
@@ -3610,10 +3621,10 @@ function no(e = []) {
|
|
|
3610
3621
|
});
|
|
3611
3622
|
}), t;
|
|
3612
3623
|
}
|
|
3613
|
-
function
|
|
3624
|
+
function ao(e) {
|
|
3614
3625
|
return e == null ? !0 : typeof e == "number" ? Number.isNaN(e) : typeof e == "boolean" ? !1 : Array.isArray(e) ? e.length === 0 : String(e).trim() === "";
|
|
3615
3626
|
}
|
|
3616
|
-
function
|
|
3627
|
+
function oo(e, t = "trim") {
|
|
3617
3628
|
if (e == null) return "";
|
|
3618
3629
|
let n = String(e);
|
|
3619
3630
|
switch (String(t)) {
|
|
@@ -3625,34 +3636,34 @@ function io(e, t = "trim") {
|
|
|
3625
3636
|
default: return n.trim();
|
|
3626
3637
|
}
|
|
3627
3638
|
}
|
|
3628
|
-
function
|
|
3629
|
-
return !(!e || e.skipBlank !== !1 &&
|
|
3639
|
+
function so(e, t) {
|
|
3640
|
+
return !(!e || e.skipBlank !== !1 && ao(t));
|
|
3630
3641
|
}
|
|
3631
|
-
function
|
|
3642
|
+
function co(e) {
|
|
3632
3643
|
return !e || e.validateOn === "submit" ? [] : e.validateOn === "change" ? ["onChange", "onBlur"] : ["onBlur"];
|
|
3633
3644
|
}
|
|
3634
|
-
var
|
|
3645
|
+
var Y = {
|
|
3635
3646
|
SKIPPED: "skipped",
|
|
3636
3647
|
AVAILABLE: "available",
|
|
3637
3648
|
DUPLICATE: "duplicate",
|
|
3638
3649
|
STALE: "stale",
|
|
3639
3650
|
ERROR: "error"
|
|
3640
3651
|
};
|
|
3641
|
-
function
|
|
3652
|
+
function lo({ module: e, field: t, recordId: n, normalized: r }) {
|
|
3642
3653
|
return `${e}${t}${n ?? ""}${r}`;
|
|
3643
3654
|
}
|
|
3644
|
-
function
|
|
3655
|
+
function uo({ checkFieldUnique: e, onPendingChange: t } = {}) {
|
|
3645
3656
|
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = 0, a = 0;
|
|
3646
3657
|
function o(e) {
|
|
3647
3658
|
a = e, typeof t == "function" && t(a);
|
|
3648
3659
|
}
|
|
3649
3660
|
async function s({ module: t, field: s, rule: c, value: l, recordId: u, clientId: d, region: f } = {}) {
|
|
3650
|
-
if (!c || !t || !s || typeof e != "function" || !
|
|
3651
|
-
let p =
|
|
3661
|
+
if (!c || !t || !s || typeof e != "function" || !so(c, l)) return { status: Y.SKIPPED };
|
|
3662
|
+
let p = lo({
|
|
3652
3663
|
module: t,
|
|
3653
3664
|
field: s,
|
|
3654
3665
|
recordId: u,
|
|
3655
|
-
normalized:
|
|
3666
|
+
normalized: oo(l, c.normalizer)
|
|
3656
3667
|
});
|
|
3657
3668
|
if (n.has(p)) return n.get(p);
|
|
3658
3669
|
i += 1;
|
|
@@ -3667,17 +3678,17 @@ function co({ checkFieldUnique: e, onPendingChange: t } = {}) {
|
|
|
3667
3678
|
clientId: d,
|
|
3668
3679
|
region: f
|
|
3669
3680
|
});
|
|
3670
|
-
if (r.get(s) !== m) return { status:
|
|
3681
|
+
if (r.get(s) !== m) return { status: Y.STALE };
|
|
3671
3682
|
let a = i?.available === !1 ? {
|
|
3672
|
-
status:
|
|
3673
|
-
message:
|
|
3674
|
-
} : { status:
|
|
3683
|
+
status: Y.DUPLICATE,
|
|
3684
|
+
message: fo(i) || c.message || eo
|
|
3685
|
+
} : { status: Y.AVAILABLE };
|
|
3675
3686
|
return n.set(p, a), a;
|
|
3676
3687
|
} catch (e) {
|
|
3677
3688
|
return r.get(s) === m ? {
|
|
3678
|
-
status:
|
|
3689
|
+
status: Y.ERROR,
|
|
3679
3690
|
error: e
|
|
3680
|
-
} : { status:
|
|
3691
|
+
} : { status: Y.STALE };
|
|
3681
3692
|
} finally {
|
|
3682
3693
|
o(Math.max(0, a - 1));
|
|
3683
3694
|
}
|
|
@@ -3691,17 +3702,17 @@ function co({ checkFieldUnique: e, onPendingChange: t } = {}) {
|
|
|
3691
3702
|
}
|
|
3692
3703
|
};
|
|
3693
3704
|
}
|
|
3694
|
-
function
|
|
3705
|
+
function fo(e) {
|
|
3695
3706
|
return (e?.errors ?? []).find((e) => e?.message)?.message || e?.message || "";
|
|
3696
3707
|
}
|
|
3697
|
-
var
|
|
3698
|
-
function
|
|
3699
|
-
let r =
|
|
3708
|
+
var po = "__uniqueRule";
|
|
3709
|
+
function mo({ field: e, validation: t, context: n }) {
|
|
3710
|
+
let r = no(t);
|
|
3700
3711
|
if (!r) return { validator: () => Promise.resolve() };
|
|
3701
3712
|
let i = e?.field ?? "";
|
|
3702
3713
|
return !n?.checker || !n?.module || !i ? { validator: () => Promise.resolve() } : {
|
|
3703
|
-
[
|
|
3704
|
-
validateTrigger:
|
|
3714
|
+
[po]: r,
|
|
3715
|
+
validateTrigger: co(r),
|
|
3705
3716
|
validator: async (e, t) => {
|
|
3706
3717
|
let a = await n.checker.check({
|
|
3707
3718
|
module: n.module,
|
|
@@ -3712,26 +3723,26 @@ function fo({ field: e, validation: t, context: n }) {
|
|
|
3712
3723
|
clientId: n.clientId,
|
|
3713
3724
|
region: n.region
|
|
3714
3725
|
});
|
|
3715
|
-
return a.status ===
|
|
3726
|
+
return a.status === Y.DUPLICATE ? Promise.reject(Error(a.message || r.message)) : Promise.resolve();
|
|
3716
3727
|
}
|
|
3717
3728
|
};
|
|
3718
3729
|
}
|
|
3719
|
-
function
|
|
3730
|
+
function ho(e = []) {
|
|
3720
3731
|
let t = Array.isArray(e) ? e : [];
|
|
3721
|
-
if (!t.some((e) => e && e[
|
|
3722
|
-
let n = t.filter((e) => e && !e[
|
|
3732
|
+
if (!t.some((e) => e && e[po])) return t;
|
|
3733
|
+
let n = t.filter((e) => e && !e[po]);
|
|
3723
3734
|
return t.map((e) => {
|
|
3724
|
-
if (!e || !e[
|
|
3735
|
+
if (!e || !e[po]) return e;
|
|
3725
3736
|
let t = e.validator;
|
|
3726
3737
|
return {
|
|
3727
3738
|
...e,
|
|
3728
|
-
validator: async (e, r) => await
|
|
3739
|
+
validator: async (e, r) => await go(n, r, e) ? Promise.resolve() : t(e, r)
|
|
3729
3740
|
};
|
|
3730
3741
|
});
|
|
3731
3742
|
}
|
|
3732
|
-
async function
|
|
3743
|
+
async function go(e = [], t, n = {}) {
|
|
3733
3744
|
for (let r of e) if (!(!r || typeof r == "string")) {
|
|
3734
|
-
if (r.required &&
|
|
3745
|
+
if (r.required && ao(t) || !ao(t) && (r.pattern instanceof RegExp && !new RegExp(r.pattern.source, r.pattern.flags).test(String(t)) || r.len != null && String(t).length !== Number(r.len))) return !0;
|
|
3735
3746
|
if (typeof r.validator == "function") try {
|
|
3736
3747
|
await r.validator(n, t);
|
|
3737
3748
|
} catch {
|
|
@@ -3740,7 +3751,7 @@ async function mo(e = [], t, n = {}) {
|
|
|
3740
3751
|
}
|
|
3741
3752
|
return !1;
|
|
3742
3753
|
}
|
|
3743
|
-
function
|
|
3754
|
+
function _o(e) {
|
|
3744
3755
|
let t = String(e ?? "").trim();
|
|
3745
3756
|
if (!t.startsWith("{")) return null;
|
|
3746
3757
|
try {
|
|
@@ -3749,25 +3760,37 @@ function ho(e) {
|
|
|
3749
3760
|
return null;
|
|
3750
3761
|
}
|
|
3751
3762
|
}
|
|
3752
|
-
function
|
|
3763
|
+
function vo(e) {
|
|
3753
3764
|
if (!e) return null;
|
|
3754
|
-
if (typeof e == "string") return
|
|
3765
|
+
if (typeof e == "string") return _o(e);
|
|
3755
3766
|
let t = [
|
|
3756
3767
|
e.data,
|
|
3757
3768
|
e.response,
|
|
3758
3769
|
e,
|
|
3759
|
-
|
|
3770
|
+
_o(e.message)
|
|
3760
3771
|
];
|
|
3761
3772
|
for (let e of t) if (!(!e || typeof e != "object") && (Array.isArray(e.errors) || e.code === "DUPLICATE_VALUE")) return e;
|
|
3762
3773
|
return null;
|
|
3763
3774
|
}
|
|
3764
|
-
function
|
|
3765
|
-
let
|
|
3775
|
+
function yo({ field: e, group: t, rowIndex: n }) {
|
|
3776
|
+
let r = String(e ?? ""), i = Number(n);
|
|
3777
|
+
return t && Number.isInteger(i) && i >= 0 ? [
|
|
3778
|
+
String(t),
|
|
3779
|
+
i,
|
|
3780
|
+
...r.split(".")
|
|
3781
|
+
] : r;
|
|
3782
|
+
}
|
|
3783
|
+
function bo(e, { uniqueRules: t = [] } = {}) {
|
|
3784
|
+
let n = vo(e);
|
|
3766
3785
|
if (n) {
|
|
3767
|
-
let e = (Array.isArray(n.errors) ? n.errors : []).filter((e) => e?.field).map((e) =>
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3786
|
+
let e = (Array.isArray(n.errors) ? n.errors : []).filter((e) => e?.field).map((e) => {
|
|
3787
|
+
let t = {
|
|
3788
|
+
field: e.field,
|
|
3789
|
+
name: yo(e),
|
|
3790
|
+
message: e.message || n.message || eo
|
|
3791
|
+
};
|
|
3792
|
+
return Array.isArray(t.name) && (t.group = String(e.group), t.rowIndex = Number(e.rowIndex)), t;
|
|
3793
|
+
});
|
|
3771
3794
|
if (e.length) return e;
|
|
3772
3795
|
}
|
|
3773
3796
|
let r = String((n && (n.message || n.error)) ?? (typeof e == "string" ? e : e?.message) ?? "").trim();
|
|
@@ -3775,12 +3798,13 @@ function _o(e, { uniqueRules: t = [] } = {}) {
|
|
|
3775
3798
|
let i = e?.status === 409 || n?.code === "DUPLICATE_VALUE", a = t.filter((e) => String(e?.rule?.message ?? "").trim().toLowerCase() === r.toLowerCase());
|
|
3776
3799
|
return a.length && (i || a.length === 1) ? a.map((e) => ({
|
|
3777
3800
|
field: e.field,
|
|
3801
|
+
name: e.field,
|
|
3778
3802
|
message: r
|
|
3779
3803
|
})) : [];
|
|
3780
3804
|
}
|
|
3781
3805
|
//#endregion
|
|
3782
3806
|
//#region src/services/uniqueValidationApi.js
|
|
3783
|
-
async function
|
|
3807
|
+
async function xo({ module: e, field: t, value: i, recordId: a, clientId: o, region: s } = {}) {
|
|
3784
3808
|
if (!e || !t) throw Error("module and field are required to check uniqueness");
|
|
3785
3809
|
let c = {
|
|
3786
3810
|
field: t,
|
|
@@ -3816,7 +3840,7 @@ async function vo({ module: e, field: t, value: i, recordId: a, clientId: o, reg
|
|
|
3816
3840
|
}
|
|
3817
3841
|
//#endregion
|
|
3818
3842
|
//#region src/components/form/uploadAccept.js
|
|
3819
|
-
var
|
|
3843
|
+
var So = [
|
|
3820
3844
|
"jpg",
|
|
3821
3845
|
"jpeg",
|
|
3822
3846
|
"png",
|
|
@@ -3825,18 +3849,18 @@ var yo = [
|
|
|
3825
3849
|
"bmp",
|
|
3826
3850
|
"svg",
|
|
3827
3851
|
"avif"
|
|
3828
|
-
],
|
|
3852
|
+
], Co = [
|
|
3829
3853
|
"mp4",
|
|
3830
3854
|
"webm",
|
|
3831
3855
|
"ogg",
|
|
3832
3856
|
"ogv",
|
|
3833
3857
|
"mov",
|
|
3834
3858
|
"m4v"
|
|
3835
|
-
],
|
|
3859
|
+
], wo = [
|
|
3836
3860
|
"pdf",
|
|
3837
3861
|
"doc",
|
|
3838
3862
|
"docx"
|
|
3839
|
-
],
|
|
3863
|
+
], To = [
|
|
3840
3864
|
{
|
|
3841
3865
|
label: "Any file",
|
|
3842
3866
|
value: "any"
|
|
@@ -3857,34 +3881,34 @@ var yo = [
|
|
|
3857
3881
|
label: "Images & Videos",
|
|
3858
3882
|
value: "imagesAndVideos"
|
|
3859
3883
|
}
|
|
3860
|
-
],
|
|
3884
|
+
], Eo = {
|
|
3861
3885
|
documents: {
|
|
3862
|
-
exts: [...
|
|
3886
|
+
exts: [...wo, ...So],
|
|
3863
3887
|
hint: "PDF, DOC or image files",
|
|
3864
3888
|
error: "Only document (PDF/DOC) or image files are allowed"
|
|
3865
3889
|
},
|
|
3866
3890
|
images: {
|
|
3867
|
-
exts:
|
|
3891
|
+
exts: So,
|
|
3868
3892
|
hint: "Image files",
|
|
3869
3893
|
error: "Only image files are allowed"
|
|
3870
3894
|
},
|
|
3871
3895
|
videos: {
|
|
3872
|
-
exts:
|
|
3896
|
+
exts: Co,
|
|
3873
3897
|
hint: "Video files",
|
|
3874
3898
|
error: "Only video files are allowed"
|
|
3875
3899
|
},
|
|
3876
3900
|
imagesAndVideos: {
|
|
3877
|
-
exts: [...
|
|
3901
|
+
exts: [...So, ...Co],
|
|
3878
3902
|
hint: "Image or video files",
|
|
3879
3903
|
error: "Only image or video files are allowed"
|
|
3880
3904
|
}
|
|
3881
3905
|
};
|
|
3882
|
-
function
|
|
3883
|
-
return
|
|
3906
|
+
function Do(e) {
|
|
3907
|
+
return Eo[String(e?.accept ?? "").trim()] ?? null;
|
|
3884
3908
|
}
|
|
3885
3909
|
//#endregion
|
|
3886
3910
|
//#region src/components/AppButton.jsx
|
|
3887
|
-
function
|
|
3911
|
+
function Oo({ children: e, className: t = "", icon: n, to: r, variant: i = "default", ...a }) {
|
|
3888
3912
|
let o = /* @__PURE__ */ C(v, {
|
|
3889
3913
|
className: `app-button app-button--${i} ${t}`.trim(),
|
|
3890
3914
|
icon: n,
|
|
@@ -3899,13 +3923,13 @@ function To({ children: e, className: t = "", icon: n, to: r, variant: i = "defa
|
|
|
3899
3923
|
}
|
|
3900
3924
|
//#endregion
|
|
3901
3925
|
//#region src/components/detail/userNames.js
|
|
3902
|
-
function
|
|
3926
|
+
function ko(e) {
|
|
3903
3927
|
return !e || typeof e != "object" ? "" : [e.first_name ?? e.firstName ?? e.FIRST_NAME, e.last_name ?? e.lastName ?? e.LAST_NAME].filter(Boolean).join(" ").trim() || e.name || e.user_name || e.userName || e.username || e.email || "";
|
|
3904
3928
|
}
|
|
3905
|
-
function
|
|
3929
|
+
function Ao(e) {
|
|
3906
3930
|
let t = {};
|
|
3907
3931
|
return (Array.isArray(e) ? e : []).forEach((e) => {
|
|
3908
|
-
let n =
|
|
3932
|
+
let n = ko(e);
|
|
3909
3933
|
n && [
|
|
3910
3934
|
e.legacyUserId,
|
|
3911
3935
|
e.userId,
|
|
@@ -3919,29 +3943,29 @@ function Do(e) {
|
|
|
3919
3943
|
});
|
|
3920
3944
|
}), t;
|
|
3921
3945
|
}
|
|
3922
|
-
var
|
|
3923
|
-
function
|
|
3946
|
+
var jo = /* @__PURE__ */ new Map();
|
|
3947
|
+
function Mo(e) {
|
|
3924
3948
|
let t = String(e ?? "").trim();
|
|
3925
3949
|
if (!t) return Promise.resolve("");
|
|
3926
|
-
if (
|
|
3927
|
-
let i = n(r, `/get-detailed-view?userId=${encodeURIComponent(t)}`).then((e) =>
|
|
3928
|
-
return
|
|
3950
|
+
if (jo.has(t)) return jo.get(t);
|
|
3951
|
+
let i = n(r, `/get-detailed-view?userId=${encodeURIComponent(t)}`).then((e) => ko(e?.data ?? e ?? null)).catch(() => "");
|
|
3952
|
+
return jo.set(t, i), i;
|
|
3929
3953
|
}
|
|
3930
|
-
var
|
|
3931
|
-
function
|
|
3954
|
+
var X = (e) => e == null ? "" : String(e).trim();
|
|
3955
|
+
function No(e) {
|
|
3932
3956
|
let t = e?.quickCreateNotice;
|
|
3933
3957
|
return !t || typeof t != "object" || t.enabled === !1 ? null : {
|
|
3934
3958
|
enabled: !0,
|
|
3935
|
-
title:
|
|
3936
|
-
message:
|
|
3959
|
+
title: X(t.title) || "New record created",
|
|
3960
|
+
message: X(t.message) || "A new client has been created successfully. Please contact your Organization Admin to configure the required forms, workflows, permissions, and client-specific details before proceeding with further operations.",
|
|
3937
3961
|
showCreator: t.showCreator !== !1,
|
|
3938
3962
|
showRecordName: t.showRecordName !== !1,
|
|
3939
|
-
recordNameField:
|
|
3940
|
-
recordLabel:
|
|
3941
|
-
creatorLabel:
|
|
3963
|
+
recordNameField: X(t.recordNameField),
|
|
3964
|
+
recordLabel: X(t.recordLabel) || "Record name",
|
|
3965
|
+
creatorLabel: X(t.creatorLabel) || "Created by"
|
|
3942
3966
|
};
|
|
3943
3967
|
}
|
|
3944
|
-
var
|
|
3968
|
+
var Po = [
|
|
3945
3969
|
"clientName",
|
|
3946
3970
|
"companyName",
|
|
3947
3971
|
"name",
|
|
@@ -3951,24 +3975,24 @@ var jo = [
|
|
|
3951
3975
|
"label",
|
|
3952
3976
|
"employerName",
|
|
3953
3977
|
"vendorName"
|
|
3954
|
-
],
|
|
3978
|
+
], Fo = (e, t) => {
|
|
3955
3979
|
if (!(!e || !t)) return String(t).split(".").reduce((e, t) => e && typeof e == "object" ? e[t] : void 0, e);
|
|
3956
|
-
},
|
|
3957
|
-
function
|
|
3980
|
+
}, Io = (e) => typeof e == "string" || typeof e == "number" ? X(e) : e && typeof e == "object" ? X(e.label ?? e.name ?? e.title ?? "") : "";
|
|
3981
|
+
function Lo(e, { recordNameField: t = "", displayField: n = "" } = {}) {
|
|
3958
3982
|
if (!e || typeof e != "object") return "";
|
|
3959
3983
|
for (let r of [
|
|
3960
3984
|
t,
|
|
3961
3985
|
n,
|
|
3962
|
-
...
|
|
3986
|
+
...Po
|
|
3963
3987
|
]) {
|
|
3964
3988
|
if (!r) continue;
|
|
3965
|
-
let t =
|
|
3989
|
+
let t = Io(Fo(e, r));
|
|
3966
3990
|
if (t) return t;
|
|
3967
3991
|
}
|
|
3968
3992
|
let r = Object.keys(e).find((t) => /name$/i.test(t) && typeof e[t] == "string" && e[t].trim());
|
|
3969
|
-
return r ?
|
|
3993
|
+
return r ? X(e[r]) : "";
|
|
3970
3994
|
}
|
|
3971
|
-
function
|
|
3995
|
+
function Ro(e) {
|
|
3972
3996
|
if (!e || typeof e != "object") return "";
|
|
3973
3997
|
let t = [
|
|
3974
3998
|
e.createdBy,
|
|
@@ -3981,45 +4005,45 @@ function Fo(e) {
|
|
|
3981
4005
|
for (let e of t) {
|
|
3982
4006
|
if (e == null || e === "") continue;
|
|
3983
4007
|
if (typeof e == "object") {
|
|
3984
|
-
let t =
|
|
4008
|
+
let t = X(e.$oid ?? e.userId ?? e._id ?? e.id);
|
|
3985
4009
|
if (t) return t;
|
|
3986
4010
|
continue;
|
|
3987
4011
|
}
|
|
3988
|
-
let t =
|
|
4012
|
+
let t = X(e);
|
|
3989
4013
|
if (t) return t;
|
|
3990
4014
|
}
|
|
3991
4015
|
return "";
|
|
3992
4016
|
}
|
|
3993
|
-
function
|
|
4017
|
+
function zo(e = o) {
|
|
3994
4018
|
try {
|
|
3995
|
-
return
|
|
4019
|
+
return ko(e()) || "";
|
|
3996
4020
|
} catch {
|
|
3997
4021
|
return "";
|
|
3998
4022
|
}
|
|
3999
4023
|
}
|
|
4000
|
-
var
|
|
4024
|
+
var Bo = (e, t) => n(r, `/module/list?module=${encodeURIComponent(e)}&id=${encodeURIComponent(t)}`).then((e) => {
|
|
4001
4025
|
let t = e?.data?.data ?? e?.data ?? [];
|
|
4002
4026
|
return Array.isArray(t) ? t[0] : t;
|
|
4003
4027
|
});
|
|
4004
|
-
async function
|
|
4005
|
-
let { fetchRecord: a =
|
|
4028
|
+
async function Vo({ module: e, recordId: t, notice: n, displayField: r = "", deps: i = {} } = {}) {
|
|
4029
|
+
let { fetchRecord: a = Bo, fetchUserNameFn: s = Mo, getUser: c = o } = i, l = null;
|
|
4006
4030
|
if (e && t) try {
|
|
4007
4031
|
l = await a(e, t);
|
|
4008
4032
|
} catch {
|
|
4009
4033
|
l = null;
|
|
4010
4034
|
}
|
|
4011
|
-
let u = n?.showRecordName === !1 ? "" :
|
|
4035
|
+
let u = n?.showRecordName === !1 ? "" : Lo(l, {
|
|
4012
4036
|
recordNameField: n?.recordNameField,
|
|
4013
4037
|
displayField: r
|
|
4014
4038
|
}), d = "";
|
|
4015
4039
|
if (n?.showCreator !== !1) {
|
|
4016
|
-
let e =
|
|
4040
|
+
let e = Ro(l);
|
|
4017
4041
|
if (e) try {
|
|
4018
|
-
d =
|
|
4042
|
+
d = X(await s(e));
|
|
4019
4043
|
} catch {
|
|
4020
4044
|
d = "";
|
|
4021
4045
|
}
|
|
4022
|
-
d ||=
|
|
4046
|
+
d ||= zo(c);
|
|
4023
4047
|
}
|
|
4024
4048
|
return {
|
|
4025
4049
|
recordName: u,
|
|
@@ -4028,17 +4052,17 @@ async function Ro({ module: e, recordId: t, notice: n, displayField: r = "", dep
|
|
|
4028
4052
|
}
|
|
4029
4053
|
//#endregion
|
|
4030
4054
|
//#region src/components/form/QuickCreateEditField.jsx
|
|
4031
|
-
var
|
|
4032
|
-
function
|
|
4055
|
+
var Ho = d(() => import("./index.js").then((e) => e.i)), Uo = d(() => import("./index.js").then((e) => e.n)), Wo = (e) => e == null || e === "", Go = (e) => typeof e == "string" && e.includes(".") ? e.split(".") : [e];
|
|
4056
|
+
function Ko(e, t, n, r, i) {
|
|
4033
4057
|
let a = e.quickEditIdFrom;
|
|
4034
4058
|
if (a) {
|
|
4035
|
-
let e = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number" ? [...n.slice(0, 2), ...
|
|
4036
|
-
return
|
|
4059
|
+
let e = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number" ? [...n.slice(0, 2), ...Go(a)] : Go(a), i = t?.getFieldValue?.(e);
|
|
4060
|
+
return Wo(i) && (i = r?.[a]), Wo(i) ? null : i;
|
|
4037
4061
|
}
|
|
4038
|
-
return i && typeof i == "object" ? i.value ?? null :
|
|
4062
|
+
return i && typeof i == "object" ? i.value ?? null : Wo(i) ? null : i;
|
|
4039
4063
|
}
|
|
4040
|
-
function
|
|
4041
|
-
let [s, c] = g(null), [l, d] = g(null), f = !!e?.quickCreate, p = !!e?.quickEdit, h = e?.quickCreateModule || e?.lookupCollection || "", _ = e?.quickEditModule || e?.lookupCollection || "", y = m(() => p ?
|
|
4064
|
+
function qo({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValue: a, onDone: o }) {
|
|
4065
|
+
let [s, c] = g(null), [l, d] = g(null), f = !!e?.quickCreate, p = !!e?.quickEdit, h = e?.quickCreateModule || e?.lookupCollection || "", _ = e?.quickEditModule || e?.lookupCollection || "", y = m(() => p ? Ko(e, t, n, i, a) : null, [
|
|
4042
4066
|
p,
|
|
4043
4067
|
e,
|
|
4044
4068
|
t,
|
|
@@ -4052,7 +4076,7 @@ function Wo({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4052
4076
|
};
|
|
4053
4077
|
let x = () => c(null), ne = () => {
|
|
4054
4078
|
if (e?.quickCreateOnClick) {
|
|
4055
|
-
e.quickCreateOnClick();
|
|
4079
|
+
e.quickCreateOnClick(), document.activeElement?.blur?.();
|
|
4056
4080
|
return;
|
|
4057
4081
|
}
|
|
4058
4082
|
if (e?.quickCreateRoute) {
|
|
@@ -4068,12 +4092,12 @@ function Wo({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4068
4092
|
module: _,
|
|
4069
4093
|
recordId: String(y)
|
|
4070
4094
|
}), re = (t) => {
|
|
4071
|
-
let n =
|
|
4095
|
+
let n = No(e);
|
|
4072
4096
|
n && (d({
|
|
4073
4097
|
...n,
|
|
4074
4098
|
recordName: "",
|
|
4075
4099
|
creatorName: ""
|
|
4076
|
-
}),
|
|
4100
|
+
}), Vo({
|
|
4077
4101
|
module: h,
|
|
4078
4102
|
recordId: t,
|
|
4079
4103
|
notice: n,
|
|
@@ -4134,7 +4158,7 @@ function Wo({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4134
4158
|
},
|
|
4135
4159
|
children: /* @__PURE__ */ C(te, {})
|
|
4136
4160
|
}),
|
|
4137
|
-
children: s.mode === "create" ? /* @__PURE__ */ C(
|
|
4161
|
+
children: s.mode === "create" ? /* @__PURE__ */ C(Ho, {
|
|
4138
4162
|
moduleName: s.module,
|
|
4139
4163
|
embedded: !0,
|
|
4140
4164
|
breadcrumbItems: [],
|
|
@@ -4142,7 +4166,7 @@ function Wo({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4142
4166
|
onSuccess: (e) => {
|
|
4143
4167
|
x(), re(e), o?.("create", e);
|
|
4144
4168
|
}
|
|
4145
|
-
}) : /* @__PURE__ */ C(
|
|
4169
|
+
}) : /* @__PURE__ */ C(Uo, {
|
|
4146
4170
|
moduleName: s.module,
|
|
4147
4171
|
recordId: s.recordId,
|
|
4148
4172
|
embedded: !0,
|
|
@@ -4166,7 +4190,7 @@ function Wo({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4166
4190
|
width: "min(520px, 94vw)",
|
|
4167
4191
|
maskClosable: !1,
|
|
4168
4192
|
onCancel: () => d(null),
|
|
4169
|
-
footer: /* @__PURE__ */ C(
|
|
4193
|
+
footer: /* @__PURE__ */ C(Oo, {
|
|
4170
4194
|
variant: "primary",
|
|
4171
4195
|
type: "primary",
|
|
4172
4196
|
onClick: () => d(null),
|
|
@@ -4203,8 +4227,8 @@ function Wo({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4203
4227
|
}
|
|
4204
4228
|
//#endregion
|
|
4205
4229
|
//#region src/components/form/crossFieldRules.js
|
|
4206
|
-
var
|
|
4207
|
-
function
|
|
4230
|
+
var Jo = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
4231
|
+
function Yo(e, t, n) {
|
|
4208
4232
|
let r = String(t ?? "").includes(".") ? String(t).split(".") : [t];
|
|
4209
4233
|
if (typeof n == "function") {
|
|
4210
4234
|
let e = n(t);
|
|
@@ -4212,50 +4236,149 @@ function Ko(e, t, n) {
|
|
|
4212
4236
|
}
|
|
4213
4237
|
return Array.isArray(e) && e.length > 1 ? [...e.slice(0, -1), ...r] : r;
|
|
4214
4238
|
}
|
|
4215
|
-
function
|
|
4239
|
+
function Xo({ label: e, message: t, rule: n = {}, value: r, form: i, name: a, prefixFor: o }) {
|
|
4216
4240
|
let s = n.field ?? n.compareField ?? r;
|
|
4217
4241
|
return { validator: async (n, r) => {
|
|
4218
|
-
if (!s ||
|
|
4219
|
-
let c = i?.getFieldValue?.(
|
|
4220
|
-
if (
|
|
4242
|
+
if (!s || Jo(r)) return Promise.resolve();
|
|
4243
|
+
let c = i?.getFieldValue?.(Yo(a, s, o));
|
|
4244
|
+
if (Jo(c)) return Promise.resolve();
|
|
4221
4245
|
let l = Number(c), u = Number(r);
|
|
4222
4246
|
return Number.isNaN(l) || Number.isNaN(u) || u <= l ? Promise.resolve() : Promise.reject(Error(t ?? `${e} must not exceed ${s}`));
|
|
4223
4247
|
} };
|
|
4224
4248
|
}
|
|
4225
|
-
function
|
|
4249
|
+
function Zo(e = {}, t, n) {
|
|
4226
4250
|
let r = e.field ?? e.compareField ?? e.value;
|
|
4227
|
-
return r ?
|
|
4251
|
+
return r ? Yo(t, r, n) : null;
|
|
4252
|
+
}
|
|
4253
|
+
//#endregion
|
|
4254
|
+
//#region src/components/form/maxCeiling.js
|
|
4255
|
+
function Qo(e, t) {
|
|
4256
|
+
let n = String(t).split(".").filter(Boolean);
|
|
4257
|
+
if (!Array.isArray(e)) return n.length > 1 ? n : t;
|
|
4258
|
+
if (n.length > 1) {
|
|
4259
|
+
if (e.length >= 3 && typeof e[1] == "number") {
|
|
4260
|
+
let t = e.slice(0, 2), r = n[0] === String(e[0]) ? n.slice(1) : n;
|
|
4261
|
+
return [...t, ...r];
|
|
4262
|
+
}
|
|
4263
|
+
return n;
|
|
4264
|
+
}
|
|
4265
|
+
let r = [...e];
|
|
4266
|
+
return r[r.length - 1] = n[0], r;
|
|
4267
|
+
}
|
|
4268
|
+
function $o(e) {
|
|
4269
|
+
return String(e ?? "").split(",").map((e) => e.trim()).filter(Boolean);
|
|
4270
|
+
}
|
|
4271
|
+
function es(e, t) {
|
|
4272
|
+
for (let n of e ?? []) {
|
|
4273
|
+
let e = t(n);
|
|
4274
|
+
if (e == null || e === "") continue;
|
|
4275
|
+
let r = Number(e);
|
|
4276
|
+
if (!(!Number.isFinite(r) || r <= 0)) return {
|
|
4277
|
+
field: n,
|
|
4278
|
+
maximum: r
|
|
4279
|
+
};
|
|
4280
|
+
}
|
|
4281
|
+
return null;
|
|
4282
|
+
}
|
|
4283
|
+
function ts({ input: e, compareFields: t, readValue: n }) {
|
|
4284
|
+
let r = {
|
|
4285
|
+
ok: !0,
|
|
4286
|
+
field: null,
|
|
4287
|
+
maximum: null
|
|
4288
|
+
};
|
|
4289
|
+
if (e == null || e === "") return r;
|
|
4290
|
+
let i = es(t, n);
|
|
4291
|
+
if (!i) return r;
|
|
4292
|
+
let a = Number(e);
|
|
4293
|
+
return Number.isFinite(a) ? {
|
|
4294
|
+
ok: a <= i.maximum,
|
|
4295
|
+
field: i.field,
|
|
4296
|
+
maximum: i.maximum
|
|
4297
|
+
} : r;
|
|
4298
|
+
}
|
|
4299
|
+
//#endregion
|
|
4300
|
+
//#region src/components/form/contextPrefill.js
|
|
4301
|
+
var ns = { candidates: ["applicantId"] };
|
|
4302
|
+
function rs(e) {
|
|
4303
|
+
let t = String(e ?? "").trim();
|
|
4304
|
+
if (!t) return [];
|
|
4305
|
+
let n = t.endsWith("s") ? t.slice(0, -1) : t;
|
|
4306
|
+
return [...new Set([
|
|
4307
|
+
`${n}Id`,
|
|
4308
|
+
`${t}Id`,
|
|
4309
|
+
...ns[t] ?? []
|
|
4310
|
+
])];
|
|
4311
|
+
}
|
|
4312
|
+
function is(e, t) {
|
|
4313
|
+
if (!t) return "";
|
|
4314
|
+
let n = (e) => e && typeof e == "object" ? e.id ?? e.value ?? "" : e ?? "";
|
|
4315
|
+
for (let r of rs(e)) {
|
|
4316
|
+
let e = String(n(t[r]) || "");
|
|
4317
|
+
if (e) return e;
|
|
4318
|
+
}
|
|
4319
|
+
return "";
|
|
4320
|
+
}
|
|
4321
|
+
function as(e, t) {
|
|
4322
|
+
let n = /* @__PURE__ */ new Set();
|
|
4323
|
+
return (e ?? []).forEach((e) => (e.fields ?? []).forEach((e) => {
|
|
4324
|
+
e?.prefillFromModule && n.add(t(e.prefillFromModule));
|
|
4325
|
+
})), [...n];
|
|
4326
|
+
}
|
|
4327
|
+
function os(e) {
|
|
4328
|
+
return e?.payloadMode === "skip";
|
|
4329
|
+
}
|
|
4330
|
+
function ss(e) {
|
|
4331
|
+
return Array.isArray(e) ? e : Array.isArray(e?.groups) ? e.groups : Array.isArray(e?.data) ? e.data : Array.isArray(e?.data?.groups) ? e.data.groups : [];
|
|
4332
|
+
}
|
|
4333
|
+
function cs(e) {
|
|
4334
|
+
let t = {};
|
|
4335
|
+
return (e ?? []).forEach((e) => {
|
|
4336
|
+
e?.addRow || (e?.fields ?? []).forEach((e) => {
|
|
4337
|
+
!e?.field || e.value === void 0 || e.value === null || (t[e.field] = e.value, e.payloadKey && e.payloadKey !== e.field && (t[e.payloadKey] = e.value));
|
|
4338
|
+
});
|
|
4339
|
+
}), t;
|
|
4340
|
+
}
|
|
4341
|
+
function ls(e, t) {
|
|
4342
|
+
if (!(!e || !t)) for (let n of [
|
|
4343
|
+
t.prefillFrom,
|
|
4344
|
+
t.field,
|
|
4345
|
+
t.payloadKey
|
|
4346
|
+
]) {
|
|
4347
|
+
if (!n) continue;
|
|
4348
|
+
let t = e[n];
|
|
4349
|
+
if (t ??= z(e, n), t != null) return t;
|
|
4350
|
+
}
|
|
4228
4351
|
}
|
|
4229
4352
|
//#endregion
|
|
4230
4353
|
//#region src/components/form/prefillWhenRules.js
|
|
4231
|
-
var
|
|
4232
|
-
function
|
|
4354
|
+
var us = (e) => String(e ?? "");
|
|
4355
|
+
function ds(e) {
|
|
4233
4356
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
4234
4357
|
return (Array.isArray(e) ? e : []).forEach((e) => {
|
|
4235
4358
|
let r = e?.field;
|
|
4236
4359
|
!r || t.has(r) || (t.add(r), n.push(r));
|
|
4237
4360
|
}), n;
|
|
4238
4361
|
}
|
|
4239
|
-
function
|
|
4240
|
-
return
|
|
4362
|
+
function fs(e, t, n, r) {
|
|
4363
|
+
return ds(e).map((e) => ({
|
|
4241
4364
|
field: e,
|
|
4242
4365
|
path: n(t, e, r)
|
|
4243
4366
|
}));
|
|
4244
4367
|
}
|
|
4245
|
-
function
|
|
4246
|
-
return !e || !e.field ? !1 :
|
|
4368
|
+
function ps(e, t = {}) {
|
|
4369
|
+
return !e || !e.field ? !1 : us(t[e.field]) === us(e.value);
|
|
4247
4370
|
}
|
|
4248
|
-
function
|
|
4249
|
-
let o = (Array.isArray(e) ? e : []).find((e) =>
|
|
4371
|
+
function ms({ rules: e, watched: t = {}, current: n, lastApplied: r, clearOnMismatch: i = !0, initial: a = !1 } = {}) {
|
|
4372
|
+
let o = (Array.isArray(e) ? e : []).find((e) => ps(e, t));
|
|
4250
4373
|
return o ? o.clearValue ? a ? { action: "none" } : { action: "clear" } : {
|
|
4251
4374
|
action: "set",
|
|
4252
4375
|
value: o.setValue
|
|
4253
|
-
} : i && r !== void 0 &&
|
|
4376
|
+
} : i && r !== void 0 && us(n) === us(r) ? { action: "clear" } : { action: "none" };
|
|
4254
4377
|
}
|
|
4255
4378
|
//#endregion
|
|
4256
4379
|
//#region src/components/form/optionConstraints.js
|
|
4257
|
-
var
|
|
4258
|
-
function
|
|
4380
|
+
var Z = (e) => String(e ?? "").trim().toLowerCase();
|
|
4381
|
+
function hs(e) {
|
|
4259
4382
|
let t = Array.isArray(e) ? e : [e], n = [];
|
|
4260
4383
|
return t.forEach((e) => {
|
|
4261
4384
|
if (!(e == null || e === "")) {
|
|
@@ -4267,68 +4390,140 @@ function es(e) {
|
|
|
4267
4390
|
e.label,
|
|
4268
4391
|
e.name
|
|
4269
4392
|
].forEach((e) => {
|
|
4270
|
-
e != null && e !== "" && n.push(
|
|
4393
|
+
e != null && e !== "" && n.push(Z(e));
|
|
4271
4394
|
});
|
|
4272
4395
|
return;
|
|
4273
4396
|
}
|
|
4274
|
-
n.push(
|
|
4397
|
+
n.push(Z(e));
|
|
4275
4398
|
}
|
|
4276
4399
|
}), n;
|
|
4277
4400
|
}
|
|
4278
|
-
function
|
|
4279
|
-
let n =
|
|
4401
|
+
function gs(e = [], t) {
|
|
4402
|
+
let n = hs(t);
|
|
4280
4403
|
if (!n.length || !Array.isArray(e) || e.length === 0) return e;
|
|
4281
|
-
let r = new Set(n), i = e.filter((e) => e == null ? !1 : typeof e == "object" ? r.has(
|
|
4404
|
+
let r = new Set(n), i = e.filter((e) => e == null ? !1 : typeof e == "object" ? r.has(Z(e.value)) || r.has(Z(e.label)) : r.has(Z(e)));
|
|
4282
4405
|
return i.length > 0 ? i : e;
|
|
4283
4406
|
}
|
|
4284
|
-
function
|
|
4407
|
+
function _s(e) {
|
|
4285
4408
|
let t = [];
|
|
4286
4409
|
return [e?.setValue, e?.setValueLabel].forEach((e) => {
|
|
4287
|
-
e == null || e === "" || t.push(
|
|
4410
|
+
e == null || e === "" || t.push(Z(e));
|
|
4288
4411
|
}), t;
|
|
4289
4412
|
}
|
|
4290
|
-
function
|
|
4413
|
+
function vs(e, t = {}) {
|
|
4291
4414
|
let n = Array.isArray(e) ? e : [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
4292
4415
|
return n.forEach((e) => {
|
|
4293
4416
|
if (!e || e.clearValue) return;
|
|
4294
|
-
let n =
|
|
4417
|
+
let n = _s(e);
|
|
4295
4418
|
if (!n.length) return;
|
|
4296
|
-
let a =
|
|
4419
|
+
let a = ps(e, t) ? i : r;
|
|
4297
4420
|
n.forEach((e) => a.add(e));
|
|
4298
4421
|
}), i.forEach((e) => r.delete(e)), [...r];
|
|
4299
4422
|
}
|
|
4300
|
-
function
|
|
4301
|
-
let r =
|
|
4423
|
+
function ys(e = [], t, n) {
|
|
4424
|
+
let r = vs(t, n);
|
|
4302
4425
|
if (!r.length || !Array.isArray(e) || e.length === 0) return e;
|
|
4303
4426
|
let i = new Set(r);
|
|
4304
|
-
return e.filter((e) => e == null ? !0 : typeof e == "object" ? !(i.has(
|
|
4427
|
+
return e.filter((e) => e == null ? !0 : typeof e == "object" ? !(i.has(Z(e.value)) || i.has(Z(e.label))) : !i.has(Z(e)));
|
|
4428
|
+
}
|
|
4429
|
+
//#endregion
|
|
4430
|
+
//#region src/components/form/optionRowFilters.js
|
|
4431
|
+
var bs = 64;
|
|
4432
|
+
function xs(e) {
|
|
4433
|
+
if (String(e ?? "").trim() !== "currentUserId") return "";
|
|
4434
|
+
try {
|
|
4435
|
+
return typeof localStorage > "u" ? "" : String(localStorage.getItem("userId") ?? "").trim();
|
|
4436
|
+
} catch {
|
|
4437
|
+
return "";
|
|
4438
|
+
}
|
|
4439
|
+
}
|
|
4440
|
+
var Q = (e) => String(e ?? "").trim().toLowerCase(), Ss = (e) => e != null && String(e).trim() !== "";
|
|
4441
|
+
function Cs(e) {
|
|
4442
|
+
let t = Array.isArray(e) ? e : String(e ?? "").split(",");
|
|
4443
|
+
return new Set(t.map(Q).filter((e) => e !== ""));
|
|
4444
|
+
}
|
|
4445
|
+
function ws(e, t) {
|
|
4446
|
+
return !t || !Array.isArray(e) || e.length === 0 ? !1 : e.some((e) => Ss(e?.extraData?.[t]));
|
|
4447
|
+
}
|
|
4448
|
+
function Ts(e, t, n) {
|
|
4449
|
+
let r = e?.extraData?.[t];
|
|
4450
|
+
if (!Ss(n)) return r === !0;
|
|
4451
|
+
let i = Cs(n);
|
|
4452
|
+
return i.size === 0 ? r === !0 : i.has(Q(r));
|
|
4453
|
+
}
|
|
4454
|
+
function Es(e, t) {
|
|
4455
|
+
let n = /* @__PURE__ */ new Map();
|
|
4456
|
+
return (Array.isArray(e) ? e : []).forEach((e) => {
|
|
4457
|
+
let r = Q(e?.value);
|
|
4458
|
+
r && n.set(r, Q(e?.extraData?.[t]));
|
|
4459
|
+
}), n;
|
|
4460
|
+
}
|
|
4461
|
+
function Ds(e, t, n) {
|
|
4462
|
+
let r = Q(n);
|
|
4463
|
+
if (!r) return !1;
|
|
4464
|
+
let i = /* @__PURE__ */ new Set(), a = Q(e);
|
|
4465
|
+
if (!a) return !1;
|
|
4466
|
+
i.add(a);
|
|
4467
|
+
for (let e = 0; e < bs; e += 1) {
|
|
4468
|
+
let e = t.get(a);
|
|
4469
|
+
if (!e) return !1;
|
|
4470
|
+
if (e === r) return !0;
|
|
4471
|
+
if (i.has(e)) return !1;
|
|
4472
|
+
i.add(e), a = e;
|
|
4473
|
+
}
|
|
4474
|
+
return !1;
|
|
4475
|
+
}
|
|
4476
|
+
function Os(e = {}) {
|
|
4477
|
+
let t = [], n = (e) => {
|
|
4478
|
+
let n = String(e ?? "").trim();
|
|
4479
|
+
n && !t.includes(n) && t.push(n);
|
|
4480
|
+
};
|
|
4481
|
+
return (Array.isArray(e.extraFields) ? e.extraFields : []).forEach(n), n(e.optionsRequireExtraField), n(e.optionsHierarchyParentField), t;
|
|
4482
|
+
}
|
|
4483
|
+
function ks(e, t = {}, n = {}) {
|
|
4484
|
+
if (!Array.isArray(e) || e.length === 0) return e;
|
|
4485
|
+
let r = n.source ? `[${n.source}]` : "[optionRowFilters]", i = t.field ?? t.label ?? "(unnamed field)", a = typeof n.warn == "function" ? n.warn : (e) => {
|
|
4486
|
+
typeof console < "u" && console.warn(e);
|
|
4487
|
+
}, o = e, s = String(t.optionsRequireExtraField ?? "").trim();
|
|
4488
|
+
s && (ws(o, s) ? o = o.filter((e) => Ts(e, s, t.optionsRequireExtraValue)) : a(`${r} "${i}": option filter SKIPPED — no option carried extraData["${s}"], so the value filter could not be applied (the lookup API returned no such extra field). Showing the unfiltered list; this is NOT "nothing matched".`));
|
|
4489
|
+
let c = String(t.optionsHierarchyParentField ?? "").trim();
|
|
4490
|
+
if (c) {
|
|
4491
|
+
let n = String(t.optionsHierarchySelfFrom ?? "").trim() || "currentUserId", s = xs(n);
|
|
4492
|
+
if (!s) a(`${r} "${i}": hierarchy filter SKIPPED — identity "${n}" could not be resolved (no signed-in user id available). Showing the list unrestricted by reporting line.`);
|
|
4493
|
+
else if (!ws(e, c)) a(`${r} "${i}": hierarchy filter SKIPPED — no option carried extraData["${c}"], so the reporting chain could not be walked (the lookup API returned no such extra field). Showing the list unrestricted by reporting line; this is NOT "nobody reports to you".`);
|
|
4494
|
+
else {
|
|
4495
|
+
let t = Es(e, c);
|
|
4496
|
+
o = o.filter((e) => Ds(e?.value, t, s));
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
return o;
|
|
4305
4500
|
}
|
|
4306
4501
|
//#endregion
|
|
4307
4502
|
//#region src/components/form/fieldTooltip.js
|
|
4308
|
-
var
|
|
4309
|
-
function
|
|
4310
|
-
return
|
|
4503
|
+
var As = (e) => e == null || String(e).trim() === "", js = (e) => e === !0 || e === 1 || e === "1" || e === "true";
|
|
4504
|
+
function Ms(e) {
|
|
4505
|
+
return As(e?.tooltip) ? js(e?.infoEnabled) && !As(e?.infoText) ? String(e.infoText) : "" : String(e.tooltip);
|
|
4311
4506
|
}
|
|
4312
4507
|
//#endregion
|
|
4313
4508
|
//#region src/utils/roleAllowsAction.js
|
|
4314
|
-
function
|
|
4315
|
-
return e == null ? !0 : typeof e == "object" ?
|
|
4509
|
+
function Ns(e) {
|
|
4510
|
+
return e == null ? !0 : typeof e == "object" ? Ns(e.permission ?? e.allowed ?? e.value) : e !== !1 && e !== 0 && e !== "0";
|
|
4316
4511
|
}
|
|
4317
|
-
function
|
|
4512
|
+
function Ps(e, t) {
|
|
4318
4513
|
if (!e) return !0;
|
|
4319
4514
|
try {
|
|
4320
4515
|
let n = JSON.parse(localStorage.getItem("menuPermission") || "{}"), [r, i] = String(e).split(".");
|
|
4321
|
-
return
|
|
4516
|
+
return Ns((n[r || String(t || "").replace(/s$/i, "")] ?? n[String(t || "")] ?? n[String(t || "").replace(/s$/i, "")] ?? {})[i]);
|
|
4322
4517
|
} catch {
|
|
4323
4518
|
return !0;
|
|
4324
4519
|
}
|
|
4325
4520
|
}
|
|
4326
4521
|
//#endregion
|
|
4327
4522
|
//#region src/utils/afterSubmitNav.js
|
|
4328
|
-
function
|
|
4523
|
+
function Fs(e) {
|
|
4329
4524
|
return (e ?? []).filter((e) => e?.afterSubmit?.mode).sort((e, t) => (e.order ?? 0) - (t.order ?? 0))[0]?.afterSubmit ?? null;
|
|
4330
4525
|
}
|
|
4331
|
-
function
|
|
4526
|
+
function Is(e, t, n) {
|
|
4332
4527
|
let r = String(e ?? "").trim();
|
|
4333
4528
|
return !r || !r.startsWith("/") || r.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(r) ? null : r.replace(/:([A-Za-z_][\w]*)/g, (e, r) => {
|
|
4334
4529
|
let i = r === "id" ? t : n?.[r];
|
|
@@ -4337,29 +4532,29 @@ function ds(e, t, n) {
|
|
|
4337
4532
|
}
|
|
4338
4533
|
//#endregion
|
|
4339
4534
|
//#region src/utils/submitMessages.js
|
|
4340
|
-
function
|
|
4535
|
+
function Ls(e) {
|
|
4341
4536
|
return (e ?? []).filter((e) => e?.submitMessages && typeof e.submitMessages == "object").sort((e, t) => (e.order ?? 0) - (t.order ?? 0))[0]?.submitMessages ?? null;
|
|
4342
4537
|
}
|
|
4343
4538
|
function $(e) {
|
|
4344
4539
|
let t = String(e ?? "").trim();
|
|
4345
4540
|
return t ? t.charAt(0).toUpperCase() + t.slice(1) : "Record";
|
|
4346
4541
|
}
|
|
4347
|
-
function
|
|
4542
|
+
function Rs(e, t) {
|
|
4348
4543
|
return String(e).replaceAll("${module}", $(t)).replaceAll("${moduleName}", $(t));
|
|
4349
4544
|
}
|
|
4350
|
-
function
|
|
4351
|
-
let r =
|
|
4545
|
+
function zs(e, t, n) {
|
|
4546
|
+
let r = Ls(e);
|
|
4352
4547
|
if (r?.suppress) return null;
|
|
4353
4548
|
let i = n === "edit" ? r?.editSuccess : r?.addSuccess;
|
|
4354
|
-
return i && String(i).trim() ?
|
|
4549
|
+
return i && String(i).trim() ? Rs(i, t) : n === "edit" ? `${$(t)} has Updated successfully` : `${$(t)} has added successfully`;
|
|
4355
4550
|
}
|
|
4356
|
-
function
|
|
4357
|
-
let i =
|
|
4358
|
-
return a && String(a).trim() ?
|
|
4551
|
+
function Bs(e, t, n, r) {
|
|
4552
|
+
let i = Ls(e), a = n === "edit" ? i?.editError : i?.addError;
|
|
4553
|
+
return a && String(a).trim() ? Rs(a, t) : r && String(r).trim() ? String(r) : n === "edit" ? `Failed to update ${$(t)}` : `Failed to create ${$(t)}`;
|
|
4359
4554
|
}
|
|
4360
4555
|
//#endregion
|
|
4361
4556
|
//#region src/utils/scrollToFirstFormError.js
|
|
4362
|
-
function
|
|
4557
|
+
function Vs({ errorFields: e } = {}, t) {
|
|
4363
4558
|
if (!e?.length) return;
|
|
4364
4559
|
let n = e[0]?.name;
|
|
4365
4560
|
setTimeout(() => {
|
|
@@ -4384,10 +4579,10 @@ function gs({ errorFields: e } = {}, t) {
|
|
|
4384
4579
|
}
|
|
4385
4580
|
//#endregion
|
|
4386
4581
|
//#region src/components/form/conditionalFieldLabel.js
|
|
4387
|
-
function
|
|
4582
|
+
function Hs(e) {
|
|
4388
4583
|
return Array.isArray(e) ? e.map((e) => String(e ?? "").trim()) : String(e ?? "").split(",").map((e) => e.trim());
|
|
4389
4584
|
}
|
|
4390
|
-
function
|
|
4585
|
+
function Us(e, t) {
|
|
4391
4586
|
if (!e?.field) return !1;
|
|
4392
4587
|
switch (e.operator ?? "eq") {
|
|
4393
4588
|
case "eq": return String(t ?? "") === String(e.value ?? "");
|
|
@@ -4395,38 +4590,38 @@ function vs(e, t) {
|
|
|
4395
4590
|
case "truthy": return t != null && t !== "" && t !== !1;
|
|
4396
4591
|
case "falsy": return t == null || t === "" || t === !1;
|
|
4397
4592
|
case "notEmpty": return Array.isArray(t) ? t.length > 0 : !!t;
|
|
4398
|
-
case "in": return
|
|
4399
|
-
case "notIn": return !
|
|
4593
|
+
case "in": return Hs(e.value).includes(String(t ?? ""));
|
|
4594
|
+
case "notIn": return !Hs(e.value).includes(String(t ?? ""));
|
|
4400
4595
|
default: return !1;
|
|
4401
4596
|
}
|
|
4402
4597
|
}
|
|
4403
|
-
function
|
|
4598
|
+
function Ws(e, t, n = !1) {
|
|
4404
4599
|
let r = n ? e?.combineLabel ?? e?.label : e?.label, i = e?.labelWhen;
|
|
4405
|
-
return
|
|
4600
|
+
return Us(i, t) && i?.label ? i.label : r;
|
|
4406
4601
|
}
|
|
4407
|
-
function
|
|
4602
|
+
function Gs(e) {
|
|
4408
4603
|
return e ? [...e.field ? [e] : [], ...(e.conditions ?? []).filter((e) => e?.field)] : [];
|
|
4409
4604
|
}
|
|
4410
|
-
function
|
|
4411
|
-
let n =
|
|
4605
|
+
function Ks(e, t) {
|
|
4606
|
+
let n = Gs(e);
|
|
4412
4607
|
if (!n.length) return !0;
|
|
4413
|
-
let r = n.map((e) =>
|
|
4608
|
+
let r = n.map((e) => Us(e, t(e.field)));
|
|
4414
4609
|
return e.logic === "or" ? r.some(Boolean) : r.every(Boolean);
|
|
4415
4610
|
}
|
|
4416
|
-
function
|
|
4611
|
+
function qs(e) {
|
|
4417
4612
|
let t = e?.colWhen;
|
|
4418
4613
|
return t ? (Array.isArray(t) ? t : [t]).filter((e) => e?.field && Number(e?.col) > 0) : [];
|
|
4419
4614
|
}
|
|
4420
|
-
function
|
|
4421
|
-
for (let t of
|
|
4615
|
+
function Js(e, t, n) {
|
|
4616
|
+
for (let t of qs(e)) if (Us(t, n(t))) return Number(t.col);
|
|
4422
4617
|
return t;
|
|
4423
4618
|
}
|
|
4424
|
-
function
|
|
4619
|
+
function Ys(e, t) {
|
|
4425
4620
|
return e?.field ? t == null ? [e.field] : [...Array.isArray(t) ? t : [t], e.field] : ["__noop_conditional_label__"];
|
|
4426
4621
|
}
|
|
4427
4622
|
//#endregion
|
|
4428
4623
|
//#region src/components/Breadcrumb.jsx
|
|
4429
|
-
function
|
|
4624
|
+
function Xs({ items: e = [] }) {
|
|
4430
4625
|
return /* @__PURE__ */ C(_, { items: e.map((t, n) => ({ title: n === e.length - 1 ? /* @__PURE__ */ C(Be, {
|
|
4431
4626
|
variant: "body",
|
|
4432
4627
|
weight: "medium",
|
|
@@ -4442,6 +4637,6 @@ function Ts({ items: e = [] }) {
|
|
|
4442
4637
|
}) })) });
|
|
4443
4638
|
}
|
|
4444
4639
|
//#endregion
|
|
4445
|
-
export {
|
|
4640
|
+
export { Ga as $, rn as $n, vr as $t, ts as A, qn as An, D as Ar, Jr as At, To as B, jt as Bn, Rr as Bt, ms as C, fr as Cn, vt as Cr, Vi as Ct, cs as D, mn as Dn, ct as Dr, Zr as Dt, ss as E, Bn as En, lt as Er, $r as Et, Yo as F, Mt as Fn, qr as Ft, io as G, _r as Gn, Zt as Gt, xo as H, Sn as Hn, Nr as Ht, qo as I, Rt as In, zr as It, Xa as J, Nt as Jn, pr as Jt, uo as K, An as Kn, yn as Kt, Mo as L, Yn as Ln, Lr as Lt, Qo as M, ar as Mn, Kr as Mt, Zo as N, tr as Nn, Xr as Nt, os as O, pn as On, He as Or, Br as Ot, Xo as P, Sr as Pn, Wr as Pt, qa as Q, en as Qn, Wn as Qt, Ao as R, bn as Rn, jr as Rt, fs as S, $n as Sn, _t as Sr, Hi as St, is as T, nn as Tn, ut as Tr, Qr as Tt, ho as U, kn as Un, Or as Ut, Do as V, Fn as Vn, Mr as Vt, mo as W, lr as Wn, Dr as Wt, Qa as X, sn as Xn, nr as Xt, $a as Y, Xt as Yn, or as Yt, Ya as Z, dn as Zn, Cr as Zt, ks as _, er as _n, Ln as _r, Mi as _t, Ws as a, ir as an, zn as ar, ma as at, ys as b, un as bn, Tt as br, Ji as bt, Gs as c, Ft as cn, mr as cr, K as ct, zs as d, Gt as dn, wr as dr, ua as dt, Yt as en, hn as er, Ka as et, Fs as f, Wt as fn, Gn as fr, da as ft, Ms as g, Rn as gn, Dn as gr, ea as gt, Ps as h, En as hn, yr as hr, sa as ht, Us as i, cr as in, In as ir, q as it, $o as j, Jn as jn, E as jr, Hr as jt, ls as k, vn as kn, Be as kr, Yr as kt, Vs as l, br as ln, sr as lr, Da as lt, Ns as m, Cn as mn, ur as mr, ta as mt, qs as n, hr as nn, Xn as nr, Fa as nt, Ks as o, Tr as on, _n as or, pa as ot, Is as p, on as pn, Mn as pr, G as pt, bo as q, Un as qn, qt, Ys as r, gn as rn, Pt as rr, Aa as rt, Js as s, Kn as sn, Jt as sr, ha as st, Xs as t, cn as tn, It as tr, Ia as tt, Bs as u, Hn as un, rr as ur, la as ut, Os as v, Qn as vn, Vn as vr, z as vt, as as w, $t as wn, yt as wr, hi as wt, ds as x, fn as xn, wt as xr, oa as xt, gs as y, Lt as yn, Zn as yr, W as yt, Oo as z, Kt as zn, Ar as zt };
|
|
4446
4641
|
|
|
4447
|
-
//# sourceMappingURL=Breadcrumb-
|
|
4642
|
+
//# sourceMappingURL=Breadcrumb-ClOPzd5R.js.map
|