@realtek/core-theme 0.0.179 → 0.0.180

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.
@@ -1,7 +1,7 @@
1
1
  import { b as e, i as t, r as n, t as r, v as i, x as a, y as o } from "./authApi-BPEW_c3Y.js";
2
2
  import { i as s, r as c } from "./diceCandidateMapper-BKRGwz7g.js";
3
3
  import { Suspense as l, lazy as u, useCallback as d, useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
4
- import { Breadcrumb as g, Button as _, Form as v, Modal as y, Space as ee, Spin as b, Tooltip as x, Typography as te, message as ne } from "antd";
4
+ import { Breadcrumb as g, Button as _, Form as v, Modal as y, Space as ee, Spin as b, Tooltip as te, Typography as ne, message as x } from "antd";
5
5
  import { CloseOutlined as re, DownOutlined as ie, DownloadOutlined as ae, EditOutlined as oe, FileUnknownOutlined as se, LeftOutlined as ce, PlusOutlined as le, RightOutlined as ue, ZoomInOutlined as de, ZoomOutOutlined as fe } from "@ant-design/icons";
6
6
  import { Fragment as pe, jsx as S, jsxs as C } from "react/jsx-runtime";
7
7
  import me from "dayjs";
@@ -162,7 +162,7 @@ var E = {
162
162
  avatarPurpleBg: "var(--color-avatar-purple-bg)",
163
163
  avatarMoreBg: "var(--color-avatar-more-bg)",
164
164
  avatarMoreText: "var(--color-avatar-more-text)"
165
- }, { Text: Te, Title: Ee, Paragraph: De, Link: Oe } = te, ke = {
165
+ }, { Text: Te, Title: Ee, Paragraph: De, Link: Oe } = ne, ke = {
166
166
  display: "h1",
167
167
  h1: "h1",
168
168
  h2: "h2",
@@ -642,7 +642,7 @@ function at({ docs: e, initialIndex: t, onClose: n }) {
642
642
  let n = URL.createObjectURL(t), r = document.createElement("a");
643
643
  r.href = n, r.download = e.name || "document", document.body.appendChild(r), r.click(), r.remove(), URL.revokeObjectURL(n);
644
644
  } catch {
645
- ne.info("Opening file in a new tab…"), e.url && window.open(e.url, "_blank", "noopener,noreferrer");
645
+ x.info("Opening file in a new tab…"), e.url && window.open(e.url, "_blank", "noopener,noreferrer");
646
646
  }
647
647
  }, []);
648
648
  function ee() {
@@ -694,7 +694,7 @@ function at({ docs: e, initialIndex: t, onClose: n }) {
694
694
  className: "dv-actions",
695
695
  children: [
696
696
  m && /* @__PURE__ */ C(pe, { children: [
697
- /* @__PURE__ */ S(x, {
697
+ /* @__PURE__ */ S(te, {
698
698
  title: "Zoom out",
699
699
  children: /* @__PURE__ */ S("button", {
700
700
  type: "button",
@@ -708,7 +708,7 @@ function at({ docs: e, initialIndex: t, onClose: n }) {
708
708
  className: "dv-zoom-label",
709
709
  children: [Math.round(o * 100), "%"]
710
710
  }),
711
- /* @__PURE__ */ S(x, {
711
+ /* @__PURE__ */ S(te, {
712
712
  title: "Zoom in",
713
713
  children: /* @__PURE__ */ S("button", {
714
714
  type: "button",
@@ -720,7 +720,7 @@ function at({ docs: e, initialIndex: t, onClose: n }) {
720
720
  }),
721
721
  /* @__PURE__ */ S("span", { className: "dv-divider" })
722
722
  ] }),
723
- /* @__PURE__ */ S(x, {
723
+ /* @__PURE__ */ S(te, {
724
724
  title: "Download",
725
725
  children: /* @__PURE__ */ S("button", {
726
726
  type: "button",
@@ -729,7 +729,7 @@ function at({ docs: e, initialIndex: t, onClose: n }) {
729
729
  children: /* @__PURE__ */ S(ae, {})
730
730
  })
731
731
  }),
732
- /* @__PURE__ */ S(x, {
732
+ /* @__PURE__ */ S(te, {
733
733
  title: "Close",
734
734
  children: /* @__PURE__ */ S("button", {
735
735
  type: "button",
@@ -1239,7 +1239,7 @@ async function Nt(e, { gateway: n, strategies: r }) {
1239
1239
  async function Pt() {
1240
1240
  let e = [];
1241
1241
  try {
1242
- e = await Gn();
1242
+ e = await Kn();
1243
1243
  } catch {
1244
1244
  e = [];
1245
1245
  }
@@ -1404,11 +1404,19 @@ async function un(e) {
1404
1404
  let n = await t(i, `/integration-config/${encodeURIComponent(e)}/summary`);
1405
1405
  return n?.data ?? n;
1406
1406
  }
1407
- async function dn(e, n) {
1407
+ async function dn(e, n, r) {
1408
+ let a = await t(i, `/integration-config/${encodeURIComponent(e)}/apply-status/${encodeURIComponent(n)}`, {
1409
+ method: "POST",
1410
+ headers: { "Content-Type": "application/json" },
1411
+ body: JSON.stringify(r)
1412
+ });
1413
+ return a?.data ?? a;
1414
+ }
1415
+ async function fn(e, n) {
1408
1416
  let r = await t(i, `${P}?module=${encodeURIComponent(e)}&id=${encodeURIComponent(n)}&view=detail`), a = r?.data ?? r;
1409
1417
  return Array.isArray(a) ? a : [];
1410
1418
  }
1411
- function fn(e) {
1419
+ function pn(e) {
1412
1420
  return {
1413
1421
  key: e.role_id ?? e.id,
1414
1422
  roleId: e.role_id ?? e.id,
@@ -1422,14 +1430,14 @@ function fn(e) {
1422
1430
  function I(e) {
1423
1431
  return e?.raw?.role_id ?? e?.roleId ?? e?.key;
1424
1432
  }
1425
- async function pn() {
1426
- let e = await t(i, "/get-roles"), n = e.data ?? e, r = M(n?.zinnext_default).map(fn), a = M(n?.custom_roles).map(fn), o = [...r, ...a];
1433
+ async function mn() {
1434
+ let e = await t(i, "/get-roles"), n = e.data ?? e, r = M(n?.zinnext_default).map(pn), a = M(n?.custom_roles).map(pn), o = [...r, ...a];
1427
1435
  return {
1428
1436
  roles: o,
1429
1437
  total: o.length
1430
1438
  };
1431
1439
  }
1432
- function mn(e) {
1440
+ function hn(e) {
1433
1441
  return {
1434
1442
  key: e.teamId,
1435
1443
  teamId: e.teamId,
@@ -1442,10 +1450,10 @@ function mn(e) {
1442
1450
  raw: e
1443
1451
  };
1444
1452
  }
1445
- function hn(e) {
1453
+ function gn(e) {
1446
1454
  return e?.raw?.teamId ?? e?.teamId ?? e?.key;
1447
1455
  }
1448
- async function gn({ offset: e = 0, limit: n = 10, sortBy: r = "new", search: a = "" } = {}) {
1456
+ async function _n({ offset: e = 0, limit: n = 10, sortBy: r = "new", search: a = "" } = {}) {
1449
1457
  let o = await t(i, `/get-teams?${new URLSearchParams({
1450
1458
  searchquery: a,
1451
1459
  sortBy: r,
@@ -1453,12 +1461,12 @@ async function gn({ offset: e = 0, limit: n = 10, sortBy: r = "new", search: a =
1453
1461
  offset: String(e)
1454
1462
  })}`), s = o.data ?? o, c = M(s?.teams, s, o?.teams), l = s?.totalCount ?? s?.total ?? c.length;
1455
1463
  return {
1456
- teams: c.map(mn),
1464
+ teams: c.map(hn),
1457
1465
  total: l
1458
1466
  };
1459
1467
  }
1460
- async function _n(e, { teamName: n, managerId: r, memberIds: a = [] }) {
1461
- return t(i, `/team/edit?teamId=${hn(e)}`, {
1468
+ async function vn(e, { teamName: n, managerId: r, memberIds: a = [] }) {
1469
+ return t(i, `/team/edit?teamId=${gn(e)}`, {
1462
1470
  method: "PUT",
1463
1471
  body: JSON.stringify({
1464
1472
  team_name: n,
@@ -1468,7 +1476,7 @@ async function _n(e, { teamName: n, managerId: r, memberIds: a = [] }) {
1468
1476
  })
1469
1477
  });
1470
1478
  }
1471
- async function vn(e, n, r, a = "listView") {
1479
+ async function yn(e, n, r, a = "listView") {
1472
1480
  let o = await t(i, `${A}?${new URLSearchParams({
1473
1481
  module: e,
1474
1482
  userId: "0",
@@ -1477,8 +1485,8 @@ async function vn(e, n, r, a = "listView") {
1477
1485
  })}`), s = o.data ?? o;
1478
1486
  return M(s, s?.visibleFields, o?.visibleFields);
1479
1487
  }
1480
- async function yn(e, t = "listView", n = j) {
1481
- let r = I(e), i = Et(n), a = await Promise.all(i.map(async ({ key: e, apiModule: n }) => [e, (await vn(n, "roleId", r, t)).map((t, i) => ({
1488
+ async function bn(e, t = "listView", n = j) {
1489
+ let r = I(e), i = Et(n), a = await Promise.all(i.map(async ({ key: e, apiModule: n }) => [e, (await yn(n, "roleId", r, t)).map((t, i) => ({
1482
1490
  ...wt(t, i),
1483
1491
  module: e,
1484
1492
  apiModule: n,
@@ -1486,8 +1494,8 @@ async function yn(e, t = "listView", n = j) {
1486
1494
  }))]));
1487
1495
  return Object.fromEntries(a);
1488
1496
  }
1489
- async function bn(e, t = "listView") {
1490
- let n = hn(e), r = await Promise.all(j.map(async ({ key: e, apiModule: r }) => [e, (await vn(r, "teamId", n, t)).map((t, i) => ({
1497
+ async function xn(e, t = "listView") {
1498
+ let n = gn(e), r = await Promise.all(j.map(async ({ key: e, apiModule: r }) => [e, (await yn(r, "teamId", n, t)).map((t, i) => ({
1491
1499
  ...wt(t, i),
1492
1500
  module: e,
1493
1501
  apiModule: r,
@@ -1495,7 +1503,7 @@ async function bn(e, t = "listView") {
1495
1503
  }))]));
1496
1504
  return Object.fromEntries(r);
1497
1505
  }
1498
- function xn(e, t) {
1506
+ function Sn(e, t) {
1499
1507
  let n = !t || t === "listView";
1500
1508
  return e.map((e, r) => {
1501
1509
  let i = {
@@ -1531,7 +1539,7 @@ function xn(e, t) {
1531
1539
  ].includes(e.type) && (i.dataSource = e.dataSource ?? "module", e.dataSource === "group" && (i.groupName = e.groupName ?? ""))), i;
1532
1540
  });
1533
1541
  }
1534
- async function Sn(e, n, r, a = "listView", o = j) {
1542
+ async function Cn(e, n, r, a = "listView", o = j) {
1535
1543
  let s = I(e), c = Et(o).find((e) => e.key === n)?.apiModule ?? n;
1536
1544
  return t(i, `${A}/role`, {
1537
1545
  method: "PUT",
@@ -1539,29 +1547,29 @@ async function Sn(e, n, r, a = "listView", o = j) {
1539
1547
  module: c,
1540
1548
  roleId: s,
1541
1549
  configType: a,
1542
- visibleFields: xn(r, a)
1550
+ visibleFields: Sn(r, a)
1543
1551
  })
1544
1552
  });
1545
1553
  }
1546
- var Cn = "/admin/role-form-permissions";
1547
- function wn(e) {
1554
+ var wn = "/admin/role-form-permissions";
1555
+ function Tn(e) {
1548
1556
  return `__group__:${e}`;
1549
1557
  }
1550
- async function Tn(e, n, r = {}) {
1558
+ async function En(e, n, r = {}) {
1551
1559
  let a = I(e), o = new URLSearchParams({
1552
1560
  module: n,
1553
1561
  roleId: String(a ?? "")
1554
1562
  });
1555
1563
  r.clientId && o.set("clientId", r.clientId), r.region && o.set("region", r.region);
1556
- let s = await t(i, `${Cn}?${o}`), c = s?.data ?? s;
1564
+ let s = await t(i, `${wn}?${o}`), c = s?.data ?? s;
1557
1565
  return Array.isArray(c) ? c : [];
1558
1566
  }
1559
- async function En(e, n, r) {
1567
+ async function Dn(e, n, r) {
1560
1568
  let a = I(e), o = [], s = 0;
1561
1569
  for (let e of r) {
1562
1570
  e.locked || o.push({
1563
1571
  label: e.label,
1564
- field: wn(e.name),
1572
+ field: Tn(e.name),
1565
1573
  isVisible: e.enabled,
1566
1574
  isEditable: e.editable !== !1,
1567
1575
  order: s++
@@ -1584,19 +1592,19 @@ async function En(e, n, r) {
1584
1592
  })
1585
1593
  });
1586
1594
  }
1587
- async function Dn(e, n, r, a = "listView") {
1588
- let o = hn(e), s = j.find((e) => e.key === n)?.apiModule ?? n;
1595
+ async function On(e, n, r, a = "listView") {
1596
+ let o = gn(e), s = j.find((e) => e.key === n)?.apiModule ?? n;
1589
1597
  return t(i, `${A}/team`, {
1590
1598
  method: "PUT",
1591
1599
  body: JSON.stringify({
1592
1600
  module: s,
1593
1601
  teamId: o,
1594
1602
  configType: a,
1595
- visibleFields: xn(r, a)
1603
+ visibleFields: Sn(r, a)
1596
1604
  })
1597
1605
  });
1598
1606
  }
1599
- async function On({ offset: e = 0, limit: n = 10, sortBy: r = "new", searchQuery: a = "" } = {}) {
1607
+ async function kn({ offset: e = 0, limit: n = 10, sortBy: r = "new", searchQuery: a = "" } = {}) {
1600
1608
  let o = new URLSearchParams({
1601
1609
  offset: String(e),
1602
1610
  limit: String(n),
@@ -1612,21 +1620,21 @@ async function On({ offset: e = 0, limit: n = 10, sortBy: r = "new", searchQuery
1612
1620
  }, l)
1613
1621
  };
1614
1622
  }
1615
- async function kn(e = []) {
1623
+ async function An(e = []) {
1616
1624
  return t(i, `${A}/seed`, {
1617
1625
  method: "POST",
1618
1626
  headers: { "Content-Type": "application/json" },
1619
1627
  body: JSON.stringify({ collections: e })
1620
1628
  });
1621
1629
  }
1622
- async function An() {
1630
+ async function jn() {
1623
1631
  let e = await t(i, `${A}/seed-status`), n = e?.data ?? e ?? {};
1624
1632
  return {
1625
1633
  modules: Array.isArray(n.modules) ? n.modules : [],
1626
1634
  seededModules: n.seededModules ?? {}
1627
1635
  };
1628
1636
  }
1629
- async function jn(e) {
1637
+ async function Mn(e) {
1630
1638
  let t = localStorage.getItem("authToken"), n = new FormData();
1631
1639
  n.append("icon", e);
1632
1640
  let r = await fetch(`${i}/admin/field-config/action-icon`, {
@@ -1641,15 +1649,15 @@ async function jn(e) {
1641
1649
  let a = await r.json();
1642
1650
  return a.data ?? a;
1643
1651
  }
1644
- async function Mn() {
1645
- let [e, t] = await Promise.all([Pt().catch(() => []), Hn().catch(() => [])]), n = Array.isArray(e) ? e : [], r = n.map((e) => typeof e == "string" ? e : e?.menuKey ?? e?.module ?? e?.key ?? e?.value ?? e?.name).filter(Boolean).map((e) => `${String(e).toLowerCase()}detail`);
1652
+ async function Nn() {
1653
+ let [e, t] = await Promise.all([Pt().catch(() => []), Un().catch(() => [])]), n = Array.isArray(e) ? e : [], r = n.map((e) => typeof e == "string" ? e : e?.menuKey ?? e?.module ?? e?.key ?? e?.value ?? e?.name).filter(Boolean).map((e) => `${String(e).toLowerCase()}detail`);
1646
1654
  return [
1647
1655
  ...n,
1648
1656
  ...Array.isArray(t) ? t : [],
1649
1657
  ...r
1650
1658
  ];
1651
1659
  }
1652
- async function Nn(e, { page: n = 1, limit: r = 100 } = {}) {
1660
+ async function Pn(e, { page: n = 1, limit: r = 100 } = {}) {
1653
1661
  let a = await t(i, `/module/list?${new URLSearchParams({
1654
1662
  module: e,
1655
1663
  page: String(n),
@@ -1660,24 +1668,24 @@ async function Nn(e, { page: n = 1, limit: r = 100 } = {}) {
1660
1668
  total: o.pagination?.total ?? 0
1661
1669
  };
1662
1670
  }
1663
- async function Pn(e, n) {
1671
+ async function Fn(e, n) {
1664
1672
  return t(i, `/module/create?module=${encodeURIComponent(e)}`, {
1665
1673
  method: "POST",
1666
1674
  headers: { "Content-Type": "application/json" },
1667
1675
  body: JSON.stringify(n)
1668
1676
  });
1669
1677
  }
1670
- async function Fn(e, n, r) {
1678
+ async function In(e, n, r) {
1671
1679
  return t(i, `/module/update/${encodeURIComponent(n)}?module=${encodeURIComponent(e)}`, {
1672
1680
  method: "PUT",
1673
1681
  headers: { "Content-Type": "application/json" },
1674
1682
  body: JSON.stringify(r)
1675
1683
  });
1676
1684
  }
1677
- async function In(e, n) {
1685
+ async function Ln(e, n) {
1678
1686
  return t(i, `/module/delete/${encodeURIComponent(n)}?module=${encodeURIComponent(e)}`, { method: "DELETE" });
1679
1687
  }
1680
- async function Ln(e = "", n = 50) {
1688
+ async function Rn(e = "", n = 50) {
1681
1689
  let r = await t(i, `/admin/location-dropdown-values?${new URLSearchParams({
1682
1690
  search: e,
1683
1691
  limit: String(n),
@@ -1691,7 +1699,7 @@ async function Ln(e = "", n = 50) {
1691
1699
  };
1692
1700
  }).filter((e) => e.label);
1693
1701
  }
1694
- async function Rn(e, n, r = "_id") {
1702
+ async function zn(e, n, r = "_id") {
1695
1703
  let a = await t(i, `/admin/lookup-dropdown-values?${new URLSearchParams({
1696
1704
  collection: String(e),
1697
1705
  displayField: String(n),
@@ -1702,11 +1710,11 @@ async function Rn(e, n, r = "_id") {
1702
1710
  value: String(e.value ?? e._id ?? e.id ?? "")
1703
1711
  })).filter((e) => e.value && e.label);
1704
1712
  }
1705
- async function zn(e) {
1713
+ async function Bn(e) {
1706
1714
  let n = await t(i, `/admin/default-fields?module=${encodeURIComponent(e)}`), r = n?.data ?? n ?? {};
1707
1715
  return Array.isArray(r.fields) ? r.fields : [];
1708
1716
  }
1709
- async function Bn(e, n, r) {
1717
+ async function Vn(e, n, r) {
1710
1718
  return t(i, "/admin/default-fields", {
1711
1719
  method: "PUT",
1712
1720
  headers: { "Content-Type": "application/json" },
@@ -1717,7 +1725,7 @@ async function Bn(e, n, r) {
1717
1725
  })
1718
1726
  });
1719
1727
  }
1720
- async function Vn(e) {
1728
+ async function Hn(e) {
1721
1729
  let n = await t(i, "/email-verify", {
1722
1730
  method: "POST",
1723
1731
  headers: { "Content-Type": "application/json" },
@@ -1735,23 +1743,23 @@ async function Vn(e) {
1735
1743
  checks: Array.isArray(r.checks) ? r.checks : []
1736
1744
  };
1737
1745
  }
1738
- async function Hn() {
1746
+ async function Un() {
1739
1747
  let e = await t(i, "/admin/lookup/collections"), n = e.data ?? e;
1740
1748
  return Array.isArray(n) ? n : [];
1741
1749
  }
1742
- async function Un(e) {
1750
+ async function Wn(e) {
1743
1751
  let n = await t(i, `/admin/lookup/collection-fields?collection=${encodeURIComponent(e)}`), r = n.data ?? n;
1744
1752
  return Array.isArray(r) ? r : [];
1745
1753
  }
1746
- async function Wn(e, n) {
1754
+ async function Gn(e, n) {
1747
1755
  let r = await t(i, `/admin/field-array-subfields?module=${encodeURIComponent(e)}&field=${encodeURIComponent(n)}`), a = r.data ?? r;
1748
1756
  return Array.isArray(a?.fields) ? a.fields : [];
1749
1757
  }
1750
- async function Gn() {
1758
+ async function Kn() {
1751
1759
  let e = await t(i, "/admin/menu-modules");
1752
1760
  return M(e.data, e);
1753
1761
  }
1754
- async function Kn({ menuName: e, apiUrl: n = "", menuType: r = "menu", parentMenuId: a = 0, displayOrder: o = 0 }) {
1762
+ async function qn({ menuName: e, apiUrl: n = "", menuType: r = "menu", parentMenuId: a = 0, displayOrder: o = 0 }) {
1755
1763
  let s = await t(i, "/admin/menu-modules", {
1756
1764
  method: "POST",
1757
1765
  body: JSON.stringify({
@@ -1764,22 +1772,22 @@ async function Kn({ menuName: e, apiUrl: n = "", menuType: r = "menu", parentMen
1764
1772
  });
1765
1773
  return s.data ?? s;
1766
1774
  }
1767
- async function qn(e, { menuName: n }) {
1775
+ async function Jn(e, { menuName: n }) {
1768
1776
  let r = await t(i, `/admin/menu-modules/${e}`, {
1769
1777
  method: "PUT",
1770
1778
  body: JSON.stringify({ menuName: n })
1771
1779
  });
1772
1780
  return r.data ?? r;
1773
1781
  }
1774
- async function Jn(e) {
1782
+ async function Yn(e) {
1775
1783
  let n = await t(i, `/admin/menu-modules/${e}`, { method: "DELETE" });
1776
1784
  return n.data ?? n;
1777
1785
  }
1778
- async function Yn() {
1786
+ async function Xn() {
1779
1787
  let e = await t(i, "/admin/menu-actions");
1780
1788
  return M(e.data, e);
1781
1789
  }
1782
- async function Xn({ permissionName: e, permissionKey: n }) {
1790
+ async function Zn({ permissionName: e, permissionKey: n }) {
1783
1791
  let r = await t(i, "/admin/menu-actions", {
1784
1792
  method: "POST",
1785
1793
  body: JSON.stringify({
@@ -1789,22 +1797,22 @@ async function Xn({ permissionName: e, permissionKey: n }) {
1789
1797
  });
1790
1798
  return r.data ?? r;
1791
1799
  }
1792
- async function Zn(e, { permissionName: n }) {
1800
+ async function Qn(e, { permissionName: n }) {
1793
1801
  let r = await t(i, `/admin/menu-actions/${e}`, {
1794
1802
  method: "PUT",
1795
1803
  body: JSON.stringify({ permissionName: n })
1796
1804
  });
1797
1805
  return r.data ?? r;
1798
1806
  }
1799
- async function Qn(e) {
1807
+ async function $n(e) {
1800
1808
  let n = await t(i, `/admin/menu-actions/${e}`, { method: "DELETE" });
1801
1809
  return n.data ?? n;
1802
1810
  }
1803
- async function $n(e) {
1811
+ async function er(e) {
1804
1812
  let n = await t(i, `/get-role-details?roleid=${e}`);
1805
1813
  return n?.data ?? n ?? {};
1806
1814
  }
1807
- async function er(e, n) {
1815
+ async function tr(e, n) {
1808
1816
  return t(i, "/edit-role-details", {
1809
1817
  method: "PUT",
1810
1818
  headers: { "Content-Type": "application/json" },
@@ -1815,39 +1823,39 @@ async function er(e, n) {
1815
1823
  });
1816
1824
  }
1817
1825
  var L = "/admin/custom-forms";
1818
- async function tr(e = "", n = "", r = "") {
1826
+ async function nr(e = "", n = "", r = "") {
1819
1827
  let a = new URLSearchParams();
1820
1828
  e && a.append("module", e), n && a.append("formType", n), r && a.append("action", r);
1821
1829
  let o = await t(i, `${L}?${a.toString()}`), s = o?.data;
1822
1830
  return Array.isArray(s) ? s : Array.isArray(o) ? o : [];
1823
1831
  }
1824
- async function nr(e) {
1832
+ async function rr(e) {
1825
1833
  return t(i, L, {
1826
1834
  method: "POST",
1827
1835
  headers: { "Content-Type": "application/json" },
1828
1836
  body: JSON.stringify(e)
1829
1837
  });
1830
1838
  }
1831
- async function rr(e, n) {
1839
+ async function ir(e, n) {
1832
1840
  return t(i, `${L}/${e}`, {
1833
1841
  method: "PUT",
1834
1842
  headers: { "Content-Type": "application/json" },
1835
1843
  body: JSON.stringify(n)
1836
1844
  });
1837
1845
  }
1838
- async function ir(e) {
1846
+ async function ar(e) {
1839
1847
  return t(i, `${L}/${e}`, { method: "DELETE" });
1840
1848
  }
1841
1849
  var R = "/admin/row-action-config";
1842
- function ar(e) {
1850
+ function or(e) {
1843
1851
  return String(e ?? "").trim().toLowerCase();
1844
1852
  }
1845
- async function or(e = "") {
1846
- let n = ar(e), r = await t(i, n ? `${R}?module=${encodeURIComponent(n)}` : R), a = r?.data;
1853
+ async function sr(e = "") {
1854
+ let n = or(e), r = await t(i, n ? `${R}?module=${encodeURIComponent(n)}` : R), a = r?.data;
1847
1855
  return Array.isArray(a) ? a : Array.isArray(r) ? r : [];
1848
1856
  }
1849
- async function sr({ module: e, roleId: n = 0, rowActions: r = [] }) {
1850
- let a = ar(e);
1857
+ async function cr({ module: e, roleId: n = 0, rowActions: r = [] }) {
1858
+ let a = or(e);
1851
1859
  return t(i, R, {
1852
1860
  method: "POST",
1853
1861
  headers: { "Content-Type": "application/json" },
@@ -1858,22 +1866,22 @@ async function sr({ module: e, roleId: n = 0, rowActions: r = [] }) {
1858
1866
  })
1859
1867
  });
1860
1868
  }
1861
- async function cr(e, n = []) {
1869
+ async function lr(e, n = []) {
1862
1870
  return t(i, `${R}/${e}`, {
1863
1871
  method: "PUT",
1864
1872
  headers: { "Content-Type": "application/json" },
1865
1873
  body: JSON.stringify({ rowActions: n })
1866
1874
  });
1867
1875
  }
1868
- async function lr(e) {
1876
+ async function ur(e) {
1869
1877
  return t(i, `${R}/${e}`, { method: "DELETE" });
1870
1878
  }
1871
1879
  var z = "/admin/module-action-rules";
1872
- async function ur(e) {
1880
+ async function dr(e) {
1873
1881
  let n = await t(i, `${z}?module=${encodeURIComponent(e)}`), r = n?.data;
1874
1882
  return Array.isArray(r) ? r : Array.isArray(n) ? n : [];
1875
1883
  }
1876
- async function dr({ module: e, name: n, description: r = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1884
+ async function fr({ module: e, name: n, description: r = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1877
1885
  return t(i, z, {
1878
1886
  method: "POST",
1879
1887
  headers: { "Content-Type": "application/json" },
@@ -1888,7 +1896,7 @@ async function dr({ module: e, name: n, description: r = "", conditions: a = [],
1888
1896
  })
1889
1897
  });
1890
1898
  }
1891
- async function fr(e, { name: n, description: r = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1899
+ async function pr(e, { name: n, description: r = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1892
1900
  return t(i, `${z}/${e}`, {
1893
1901
  method: "PUT",
1894
1902
  headers: { "Content-Type": "application/json" },
@@ -1902,17 +1910,17 @@ async function fr(e, { name: n, description: r = "", conditions: a = [], blocked
1902
1910
  })
1903
1911
  });
1904
1912
  }
1905
- async function pr(e) {
1913
+ async function mr(e) {
1906
1914
  return t(i, `${z}/${e}`, { method: "DELETE" });
1907
1915
  }
1908
1916
  //#endregion
1909
1917
  //#region src/services/detailedViewApi.js
1910
- var mr = {
1918
+ var hr = {
1911
1919
  job: { fetchUrl: (t) => `${e}/edit/detailed-view/${encodeURIComponent(t)}` },
1912
1920
  candidates: { fetchUrl: (e) => `${o}/edit/detailed-view?_id=${encodeURIComponent(e)}` },
1913
1921
  submission: { fetchUrl: (e) => `${a}/edit/detailed-view?_id=${encodeURIComponent(e)}` }
1914
1922
  };
1915
- async function hr(e, n) {
1923
+ async function gr(e, n) {
1916
1924
  let r = String(e ?? "").trim().toLowerCase();
1917
1925
  if (r === "job" || r === "jobs") {
1918
1926
  let { getJobDetailView: e } = await import("./index.js").then((e) => e.r);
@@ -1923,17 +1931,17 @@ async function hr(e, n) {
1923
1931
  id: String(n)
1924
1932
  }).toString()}`);
1925
1933
  }
1926
- async function gr(e) {
1934
+ async function _r(e) {
1927
1935
  let n = await t(i, `/module-actions?module=${encodeURIComponent(e)}`), r = n?.data ?? n ?? {};
1928
1936
  return {
1929
1937
  actions: Array.isArray(r.actions) ? r.actions : [],
1930
1938
  actionRules: Array.isArray(r.actionRules) ? r.actionRules : []
1931
1939
  };
1932
1940
  }
1933
- async function _r(e, t) {
1941
+ async function vr(e, t) {
1934
1942
  if (!e) throw Error("module is required");
1935
1943
  if (!t) throw Error("id is required");
1936
- let r = mr[e];
1944
+ let r = hr[e];
1937
1945
  if (!r) throw Error(`No edit config for module: ${e}`);
1938
1946
  let i = await n(), a = await fetch(r.fetchUrl(t), {
1939
1947
  method: "GET",
@@ -1946,7 +1954,7 @@ async function _r(e, t) {
1946
1954
  let o = await a.json();
1947
1955
  return o.data ?? o;
1948
1956
  }
1949
- async function vr(e, t, r, a = []) {
1957
+ async function yr(e, t, r, a = []) {
1950
1958
  if (!e) throw Error("module is required");
1951
1959
  if (!t) throw Error("id is required");
1952
1960
  let o = await n(), s = new FormData();
@@ -1963,22 +1971,22 @@ async function vr(e, t, r, a = []) {
1963
1971
  let l = await c.json();
1964
1972
  return l.data ?? l;
1965
1973
  }
1966
- var yr = (e) => e?.data ?? e;
1967
- async function br(e, n) {
1974
+ var br = (e) => e?.data ?? e;
1975
+ async function xr(e, n) {
1968
1976
  if (!e || !n) return [];
1969
- let r = yr(await t(i, `/module-activity?${new URLSearchParams({
1977
+ let r = br(await t(i, `/module-activity?${new URLSearchParams({
1970
1978
  module: e,
1971
1979
  id: String(n)
1972
1980
  }).toString()}`));
1973
1981
  return Array.isArray(r) ? r : [];
1974
1982
  }
1975
- async function xr(e) {
1983
+ async function Sr(e) {
1976
1984
  if (!e) return [];
1977
- let n = yr(await t(i, `/notes?relatedId=${encodeURIComponent(e)}`));
1985
+ let n = br(await t(i, `/notes?relatedId=${encodeURIComponent(e)}`));
1978
1986
  return Array.isArray(n) ? n : [];
1979
1987
  }
1980
- async function Sr({ relatedId: e, notes: n, title: r, notesFor: a }) {
1981
- return yr(await t(i, "/notes", {
1988
+ async function Cr({ relatedId: e, notes: n, title: r, notesFor: a }) {
1989
+ return br(await t(i, "/notes", {
1982
1990
  method: "POST",
1983
1991
  body: JSON.stringify({
1984
1992
  relatedId: e,
@@ -1990,19 +1998,19 @@ async function Sr({ relatedId: e, notes: n, title: r, notesFor: a }) {
1990
1998
  }
1991
1999
  //#endregion
1992
2000
  //#region src/utils/roleFormPermissionGate.js
1993
- function Cr(e, t) {
2001
+ function wr(e, t) {
1994
2002
  if (!e) return !0;
1995
2003
  let n = e.find((e) => e.name === t);
1996
2004
  return n ? n.enabled !== !1 : !0;
1997
2005
  }
1998
- function wr(e, t, n) {
2006
+ function Tr(e, t, n) {
1999
2007
  if (!e) return !0;
2000
2008
  let r = e.find((e) => e.name === t);
2001
2009
  if (!r) return !0;
2002
2010
  let i = r.fields?.find((e) => e.field === n);
2003
2011
  return i ? i.enabled !== !1 : !0;
2004
2012
  }
2005
- function Tr(e, t, n) {
2013
+ function Er(e, t, n) {
2006
2014
  if (!e) return !0;
2007
2015
  let r = e.find((e) => e.name === t);
2008
2016
  if (!r) return !0;
@@ -2012,7 +2020,7 @@ function Tr(e, t, n) {
2012
2020
  }
2013
2021
  //#endregion
2014
2022
  //#region src/components/form/inputSecurity.js
2015
- var Er = [
2023
+ var Dr = [
2016
2024
  "p",
2017
2025
  "br",
2018
2026
  "strong",
@@ -2034,12 +2042,12 @@ var Er = [
2034
2042
  "a",
2035
2043
  "code",
2036
2044
  "pre"
2037
- ], Dr = [
2045
+ ], Or = [
2038
2046
  "href",
2039
2047
  "title",
2040
2048
  "target",
2041
2049
  "rel"
2042
- ], Or = /[\u200B-\u200D\u2060\uFEFF]/g, kr = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, Ar = /^[\p{L}\p{M}\p{N} .'-]+$/u, jr = /^\+?[0-9 ()-]+$/, Mr = /^-?(?:\d+|\d*\.\d+)$/, Nr = [
2050
+ ], kr = /[\u200B-\u200D\u2060\uFEFF]/g, Ar = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, jr = /^[\p{L}\p{M}\p{N} .'-]+$/u, Mr = /^\+?[0-9 ()-]+$/, Nr = /^-?(?:\d+|\d*\.\d+)$/, Pr = [
2043
2051
  {
2044
2052
  re: /<\s*\/?\s*(?:script|iframe|object|embed|svg|img|form|input|style|link|meta)\b/i,
2045
2053
  message: "HTML/script content is not allowed"
@@ -2073,12 +2081,12 @@ var Er = [
2073
2081
  message: "Command execution patterns are not allowed"
2074
2082
  }
2075
2083
  ];
2076
- function Pr(e) {
2084
+ function Fr(e) {
2077
2085
  if (typeof document > "u") return e;
2078
2086
  let t = document.createElement("textarea");
2079
2087
  return t.innerHTML = e, t.value;
2080
2088
  }
2081
- function Fr(e) {
2089
+ function Ir(e) {
2082
2090
  let t = String(e ?? "");
2083
2091
  for (let e = 0; e < 2; e += 1) try {
2084
2092
  let e = decodeURIComponent(t);
@@ -2087,12 +2095,12 @@ function Fr(e) {
2087
2095
  } catch {
2088
2096
  break;
2089
2097
  }
2090
- return t = Pr(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");
2098
+ return t = Fr(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");
2091
2099
  }
2092
- function Ir(e) {
2100
+ function Lr(e) {
2093
2101
  return we.sanitize(String(e ?? ""), {
2094
- ALLOWED_TAGS: Er,
2095
- ALLOWED_ATTR: Dr,
2102
+ ALLOWED_TAGS: Dr,
2103
+ ALLOWED_ATTR: Or,
2096
2104
  ALLOW_DATA_ATTR: !1,
2097
2105
  FORBID_TAGS: [
2098
2106
  "script",
@@ -2112,40 +2120,40 @@ function Ir(e) {
2112
2120
  ]
2113
2121
  });
2114
2122
  }
2115
- function Lr(e) {
2123
+ function Rr(e) {
2116
2124
  let t = (e.validations ?? []).find((e) => e?.type === "max"), n = Number(e.validator?.maxLength ?? t?.value ?? e.maxLength);
2117
2125
  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);
2118
2126
  }
2119
- function Rr(e) {
2127
+ function zr(e) {
2120
2128
  return e.type === "textarea" || e.type === "text-editor";
2121
2129
  }
2122
- function zr(e, t = {}) {
2130
+ function Br(e, t = {}) {
2123
2131
  if (typeof e != "string") return e;
2124
- if (t.type === "text-editor") return Ir(e.normalize("NFC"));
2125
- let n = e.normalize("NFC").replace(Or, "").replace(/\u00A0/g, " ").replace(kr, "");
2126
- return n = Rr(t) ? n.replace(/\r\n?/g, "\n").replace(/[ \t]{2,}/g, " ").trim() : n.replace(/\s+/g, " ").trim(), n;
2132
+ if (t.type === "text-editor") return Lr(e.normalize("NFC"));
2133
+ let n = e.normalize("NFC").replace(kr, "").replace(/\u00A0/g, " ").replace(Ar, "");
2134
+ return n = zr(t) ? n.replace(/\r\n?/g, "\n").replace(/[ \t]{2,}/g, " ").trim() : n.replace(/\s+/g, " ").trim(), n;
2127
2135
  }
2128
- function Br(e, t = {}) {
2136
+ function Vr(e, t = {}) {
2129
2137
  if (typeof e != "string" || e === "") return null;
2130
- let n = t.label || t.field || "Field", r = Fr(e);
2138
+ let n = t.label || t.field || "Field", r = Ir(e);
2131
2139
  if (r.includes("\0") || r.includes("\0")) return `${n} contains a null byte`;
2132
2140
  if (t.type !== "text-editor") {
2133
- let e = Nr.find(({ re: e }) => e.test(r));
2141
+ let e = Pr.find(({ re: e }) => e.test(r));
2134
2142
  if (e) return `${n}: ${e.message}`;
2135
2143
  } else {
2136
- let e = Nr.slice(0, 3).find(({ re: e }) => e.test(r));
2144
+ let e = Pr.slice(0, 3).find(({ re: e }) => e.test(r));
2137
2145
  if (e) return `${n}: ${e.message}`;
2138
2146
  }
2139
- let i = zr(e, t);
2140
- return [...i].length > Lr(t) ? `${n} is too long` : t.formatter === "name" && i && !Ar.test(i) ? `${n} allows only letters, numbers, spaces, apostrophes, hyphens and periods` : (t.formatter === "phone" || t.formatter === "digits") && i && !jr.test(i) ? `${n} contains invalid phone characters` : t.type === "number" && i && !Mr.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;
2147
+ let i = Br(e, t);
2148
+ return [...i].length > Rr(t) ? `${n} is too long` : t.formatter === "name" && i && !jr.test(i) ? `${n} allows only letters, numbers, spaces, apostrophes, hyphens and periods` : (t.formatter === "phone" || t.formatter === "digits") && i && !Mr.test(i) ? `${n} contains invalid phone characters` : t.type === "number" && i && !Nr.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;
2141
2149
  }
2142
- function Vr(e) {
2150
+ function Hr(e) {
2143
2151
  return { validator: (t, n) => {
2144
- let r = (Array.isArray(n) ? n : [n]).map((t) => Br(t, e)).find(Boolean);
2152
+ let r = (Array.isArray(n) ? n : [n]).map((t) => Vr(t, e)).find(Boolean);
2145
2153
  return r ? Promise.reject(Error(r)) : Promise.resolve();
2146
2154
  } };
2147
2155
  }
2148
- function Hr(e = []) {
2156
+ function Ur(e = []) {
2149
2157
  let t = /* @__PURE__ */ new Map();
2150
2158
  return e.forEach((e) => {
2151
2159
  (e.fields ?? []).forEach((n) => {
@@ -2157,12 +2165,12 @@ function Hr(e = []) {
2157
2165
  });
2158
2166
  }), t;
2159
2167
  }
2160
- function Ur(e, t = []) {
2161
- let n = Hr(t), r = (e, t = "") => {
2168
+ function Wr(e, t = []) {
2169
+ let n = Ur(t), r = (e, t = "") => {
2162
2170
  if (typeof e == "string") {
2163
- let r = n.get(t) ?? {}, i = Br(e, r);
2171
+ let r = n.get(t) ?? {}, i = Vr(e, r);
2164
2172
  if (i) throw Error(i);
2165
- return zr(e, r);
2173
+ return Br(e, r);
2166
2174
  }
2167
2175
  return Array.isArray(e) ? e.map((e) => r(e, `${t}[]`)) : e && typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, n]) => {
2168
2176
  if (e.startsWith("$") || e.includes(".") || e.includes("\0")) throw Error(`Unsafe object key: ${e}`);
@@ -2173,14 +2181,14 @@ function Ur(e, t = []) {
2173
2181
  }
2174
2182
  //#endregion
2175
2183
  //#region src/components/form/payloadTransformer.js
2176
- var B = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0, Wr = (e) => e === !0 || e === 1 || e === "1", V = (e) => typeof e == "object" && !!e && !Array.isArray(e) && !H(e);
2184
+ var B = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0, Gr = (e) => e === !0 || e === 1 || e === "1", V = (e) => typeof e == "object" && !!e && !Array.isArray(e) && !H(e);
2177
2185
  function H(e) {
2178
2186
  return e && typeof e == "object" && typeof e.format == "function" && typeof e.isValid == "function";
2179
2187
  }
2180
- function Gr(e) {
2188
+ function Kr(e) {
2181
2189
  return H(e) || e instanceof Date;
2182
2190
  }
2183
- function Kr(e) {
2191
+ function qr(e) {
2184
2192
  return e instanceof Date ? e.toISOString() : H(e) ? e.isValid() ? e.toISOString() : null : e;
2185
2193
  }
2186
2194
  function U(e, t) {
@@ -2206,18 +2214,18 @@ function K(e, t, n) {
2206
2214
  }
2207
2215
  return i[r[r.length - 1]] = n, e;
2208
2216
  }
2209
- function qr(e, t) {
2217
+ function Jr(e, t) {
2210
2218
  return Object.entries(t ?? {}).forEach(([t, n]) => {
2211
- V(n) && V(e[t]) ? qr(e[t], n) : e[t] = n;
2219
+ V(n) && V(e[t]) ? Jr(e[t], n) : e[t] = n;
2212
2220
  }), e;
2213
2221
  }
2214
- function Jr(e, t) {
2222
+ function Yr(e, t) {
2215
2223
  let n = e.options ?? e.values ?? [];
2216
2224
  for (let e of n) if (typeof e == "string") {
2217
2225
  if (e === t) return e;
2218
2226
  } else if ((e.value ?? e.id ?? e.name ?? e.label) === t) return e.label ?? e.name ?? e.value;
2219
2227
  }
2220
- function Yr(e, t) {
2228
+ function Xr(e, t) {
2221
2229
  if (V(e)) {
2222
2230
  let n = (t.valueKey && e[t.valueKey]) ?? e.value ?? e.id ?? e._id ?? e.key ?? e.code;
2223
2231
  return {
@@ -2227,10 +2235,10 @@ function Yr(e, t) {
2227
2235
  }
2228
2236
  return {
2229
2237
  value: e,
2230
- label: Jr(t, e) ?? e
2238
+ label: Yr(t, e) ?? e
2231
2239
  };
2232
2240
  }
2233
- function Xr(e = {}) {
2241
+ function Zr(e = {}) {
2234
2242
  if (e.dataType && e.dataType !== "auto") return e.dataType;
2235
2243
  if (e.multiSelect || e.mode === "multiple" || e.addRow) return "array";
2236
2244
  switch (e.type) {
@@ -2241,13 +2249,13 @@ function Xr(e = {}) {
2241
2249
  }
2242
2250
  }
2243
2251
  function q(e, t, n = {}) {
2244
- if (Gr(e)) {
2245
- if (t === "string") return Kr(e);
2252
+ if (Kr(e)) {
2253
+ if (t === "string") return qr(e);
2246
2254
  if (t === "number") {
2247
2255
  let t = H(e) ? e.valueOf() : e.getTime();
2248
2256
  return Number.isNaN(t) ? null : t;
2249
2257
  }
2250
- if (t === "date" || t === "auto" || !t) return Kr(e);
2258
+ if (t === "date" || t === "auto" || !t) return qr(e);
2251
2259
  }
2252
2260
  switch (t) {
2253
2261
  case "string": return e == null ? "" : String(e);
@@ -2262,14 +2270,14 @@ function q(e, t, n = {}) {
2262
2270
  return t = Array.isArray(e) ? e : B(e) ? [] : typeof e == "string" && e.includes(",") ? e.split(",").map((e) => e.trim()).filter(Boolean) : [e], n.elementType ? t.map((e) => q(e, n.elementType, {})).filter((e) => e != null && e !== "") : t;
2263
2271
  }
2264
2272
  case "object": return V(e), e;
2265
- case "date": return Kr(e);
2273
+ case "date": return qr(e);
2266
2274
  case "custom":
2267
2275
  case "auto":
2268
2276
  case void 0:
2269
2277
  default: return e;
2270
2278
  }
2271
2279
  }
2272
- var Zr = {
2280
+ var Qr = {
2273
2281
  firstChecked: (e) => Array.isArray(e) ? e[0] : e,
2274
2282
  csvToArray: (e) => typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : e,
2275
2283
  arrayToCsv: (e) => Array.isArray(e) ? e.join(",") : e,
@@ -2277,11 +2285,11 @@ var Zr = {
2277
2285
  upper: (e) => typeof e == "string" ? e.toUpperCase() : e,
2278
2286
  lower: (e) => typeof e == "string" ? e.toLowerCase() : e
2279
2287
  };
2280
- function Qr(e, t) {
2288
+ function $r(e, t) {
2281
2289
  if (!t) return e;
2282
2290
  let n = t;
2283
2291
  if (typeof n == "string") {
2284
- if (Zr[n]) return Zr[n](e);
2292
+ if (Qr[n]) return Qr[n](e);
2285
2293
  try {
2286
2294
  n = JSON.parse(n);
2287
2295
  } catch {
@@ -2289,14 +2297,14 @@ function Qr(e, t) {
2289
2297
  }
2290
2298
  }
2291
2299
  let r = e;
2292
- if (n.name && Zr[n.name] && (r = Zr[n.name](r)), n.map && typeof n.map == "object") {
2300
+ if (n.name && Qr[n.name] && (r = Qr[n.name](r)), n.map && typeof n.map == "object") {
2293
2301
  let e = String(Array.isArray(r) ? r[0] : r);
2294
2302
  Object.prototype.hasOwnProperty.call(n.map, e) ? r = n.map[e] : n.default !== void 0 && (r = n.default);
2295
2303
  }
2296
2304
  return r;
2297
2305
  }
2298
- var $r = /\{\{\s*([\w.]+)\s*\}\}/g;
2299
- function ei(e, t) {
2306
+ var ei = /\{\{\s*([\w.]+)\s*\}\}/g;
2307
+ function ti(e, t) {
2300
2308
  let [n, ...r] = e.split("."), i;
2301
2309
  if (n === "value") i = t.value;
2302
2310
  else if (n === "label") i = t.label;
@@ -2304,24 +2312,24 @@ function ei(e, t) {
2304
2312
  else return;
2305
2313
  return r.length ? U(i, r.join(".")) : i;
2306
2314
  }
2307
- function ti(e, t) {
2315
+ function ni(e, t) {
2308
2316
  if (typeof e == "string") {
2309
2317
  let n = e.match(/^\{\{\s*([\w.]+)\s*\}\}$/);
2310
- return n ? ei(n[1], t) : e.replace($r, (e, n) => {
2311
- let r = ei(n, t);
2318
+ return n ? ti(n[1], t) : e.replace(ei, (e, n) => {
2319
+ let r = ti(n, t);
2312
2320
  return r == null ? "" : String(r);
2313
2321
  });
2314
2322
  }
2315
- if (Array.isArray(e)) return e.map((e) => ti(e, t));
2323
+ if (Array.isArray(e)) return e.map((e) => ni(e, t));
2316
2324
  if (V(e)) {
2317
2325
  let n = {};
2318
2326
  return Object.entries(e).forEach(([e, r]) => {
2319
- n[e] = ti(r, t);
2327
+ n[e] = ni(r, t);
2320
2328
  }), n;
2321
2329
  }
2322
2330
  return e;
2323
2331
  }
2324
- function ni(e) {
2332
+ function ri(e) {
2325
2333
  if (!e) return null;
2326
2334
  if (typeof e == "string") try {
2327
2335
  return JSON.parse(e);
@@ -2330,8 +2338,8 @@ function ni(e) {
2330
2338
  }
2331
2339
  return e;
2332
2340
  }
2333
- function ri(e, t) {
2334
- let n = e.payloadMode || "auto", r = Xr(e), { value: i, label: a } = Yr(t, e);
2341
+ function ii(e, t) {
2342
+ let n = e.payloadMode || "auto", r = Zr(e), { value: i, label: a } = Xr(t, e);
2335
2343
  switch (n) {
2336
2344
  case "value": return {
2337
2345
  kind: "scalar",
@@ -2353,12 +2361,12 @@ function ri(e, t) {
2353
2361
  }
2354
2362
  case "custom":
2355
2363
  case "template": {
2356
- let n = ni(e.payloadTemplate);
2364
+ let n = ri(e.payloadTemplate);
2357
2365
  if (!n) return {
2358
2366
  kind: "scalar",
2359
2367
  out: q(i, r, e)
2360
2368
  };
2361
- let o = ti(n, {
2369
+ let o = ni(n, {
2362
2370
  value: q(i, e.elementType || "auto", {}),
2363
2371
  label: a,
2364
2372
  raw: t
@@ -2374,15 +2382,15 @@ function ri(e, t) {
2374
2382
  };
2375
2383
  }
2376
2384
  }
2377
- function ii(e, t) {
2385
+ function ai(e, t) {
2378
2386
  if (e.payloadMode === "skip") return { kind: "skip" };
2379
2387
  let n = t;
2380
- return B(n) && e.defaultValue !== void 0 && e.defaultValue !== "" && (n = e.defaultValue), n = Qr(n, e.transformRule), B(n) && e.omitEmpty ? { kind: "skip" } : Array.isArray(n) && (Xr(e) === "array" || e.payloadMode === "object") && e.payloadMode && e.payloadMode !== "value" && e.payloadMode !== "auto" ? {
2388
+ return B(n) && e.defaultValue !== void 0 && e.defaultValue !== "" && (n = e.defaultValue), n = $r(n, e.transformRule), B(n) && e.omitEmpty ? { kind: "skip" } : Array.isArray(n) && (Zr(e) === "array" || e.payloadMode === "object") && e.payloadMode && e.payloadMode !== "value" && e.payloadMode !== "auto" ? {
2381
2389
  kind: "scalar",
2382
- out: n.map((t) => ri(e, t).out)
2383
- } : ri(e, n);
2390
+ out: n.map((t) => ii(e, t).out)
2391
+ } : ii(e, n);
2384
2392
  }
2385
- function ai(e = {}) {
2393
+ function oi(e = {}) {
2386
2394
  return !!e.richValue || [
2387
2395
  "label",
2388
2396
  "object",
@@ -2390,8 +2398,8 @@ function ai(e = {}) {
2390
2398
  "template"
2391
2399
  ].includes(e.payloadMode);
2392
2400
  }
2393
- function oi(e, t, n = []) {
2394
- if (!ai(e) || t == null) return t;
2401
+ function si(e, t, n = []) {
2402
+ if (!oi(e) || t == null) return t;
2395
2403
  let r = (e) => {
2396
2404
  if (V(e) && e.value !== void 0) return e;
2397
2405
  let t = n.find((t) => String(t?.value ?? "") === String(e) || String(t?.label ?? "") === String(e));
@@ -2402,7 +2410,7 @@ function oi(e, t, n = []) {
2402
2410
  };
2403
2411
  return Array.isArray(t) ? t.map(r) : r(t);
2404
2412
  }
2405
- function si(e, t, n) {
2413
+ function ci(e, t, n) {
2406
2414
  if (!e?.field) return !0;
2407
2415
  let r = G(t, e.field) ? W(t, e.field) : W(n ?? t, e.field), i = () => String(e.value ?? "").split(",").map((e) => e.trim());
2408
2416
  switch (e.operator) {
@@ -2416,25 +2424,25 @@ function si(e, t, n) {
2416
2424
  default: return !0;
2417
2425
  }
2418
2426
  }
2419
- function ci(e, t, n, r, i = /* @__PURE__ */ new Set()) {
2427
+ function li(e, t, n, r, i = /* @__PURE__ */ new Set()) {
2420
2428
  if (!e?.showIf?.field || i.has(e.field)) return !0;
2421
- if (i.add(e.field), !si(e.showIf, t, n)) return !1;
2429
+ if (i.add(e.field), !ci(e.showIf, t, n)) return !1;
2422
2430
  let a = r?.get?.(e.showIf.field);
2423
- return a ? ci(a, t, n, r, i) : !0;
2431
+ return a ? li(a, t, n, r, i) : !0;
2424
2432
  }
2425
- function li(e = []) {
2433
+ function ui(e = []) {
2426
2434
  let t = /* @__PURE__ */ new Map();
2427
2435
  return e.forEach((e) => (e.fields ?? []).forEach((e) => {
2428
2436
  e?.field && !t.has(e.field) && t.set(e.field, e);
2429
2437
  })), t;
2430
2438
  }
2431
- function ui(e = {}, { editing: t = !1 } = {}) {
2439
+ function di(e = {}, { editing: t = !1 } = {}) {
2432
2440
  let n = {};
2433
2441
  return (e.fields ?? []).forEach((e) => {
2434
2442
  !e.field || e.type === "file" || t && !e.defaultOnEdit || e.defaultValue === void 0 || e.defaultValue === "" || (n[e.field] = e.defaultValue);
2435
2443
  }), n;
2436
2444
  }
2437
- function di(e = []) {
2445
+ function fi(e = []) {
2438
2446
  let t = [];
2439
2447
  return e.forEach((e) => {
2440
2448
  (e.fields ?? []).forEach((n) => {
@@ -2445,17 +2453,17 @@ function di(e = []) {
2445
2453
  });
2446
2454
  }), t;
2447
2455
  }
2448
- function fi(e = []) {
2449
- return di(e).map(({ field: e }) => e).filter((e) => e.type === "file");
2456
+ function pi(e = []) {
2457
+ return fi(e).map(({ field: e }) => e).filter((e) => e.type === "file");
2450
2458
  }
2451
- function pi(e) {
2459
+ function mi(e) {
2452
2460
  return String(e ?? "").trim().toLowerCase();
2453
2461
  }
2454
- function mi(e, t) {
2455
- return !!t && pi(e.moduleName) === t;
2462
+ function hi(e, t) {
2463
+ return !!t && mi(e.moduleName) === t;
2456
2464
  }
2457
- function hi(e, t = [], n = {}) {
2458
- let r = [], i = n.scope ?? "all", a = pi(n.module), o = (e, t) => {
2465
+ function gi(e, t = [], n = {}) {
2466
+ let r = [], i = n.scope ?? "all", a = mi(n.module), o = (e, t) => {
2459
2467
  t != null && (Array.isArray(t) ? t : [t]).forEach((t) => {
2460
2468
  let n = t?.originFileObj || t;
2461
2469
  (typeof File < "u" && n instanceof File || typeof Blob < "u" && n instanceof Blob) && r.push({
@@ -2467,7 +2475,7 @@ function hi(e, t = [], n = {}) {
2467
2475
  return (t ?? []).forEach((t) => {
2468
2476
  let r = (t.fields ?? []).filter((e) => e.type === "file");
2469
2477
  if (!r.length) return;
2470
- let s = t.moduleName && !mi(t, a), c = (e) => s ? `__mw__${t.moduleName}__${e}` : e;
2478
+ let s = t.moduleName && !hi(t, a), c = (e) => s ? `__mw__${t.moduleName}__${e}` : e;
2471
2479
  if (t.addRow) {
2472
2480
  if (i === "flat") return;
2473
2481
  let a = e[t.name];
@@ -2485,12 +2493,12 @@ function hi(e, t = [], n = {}) {
2485
2493
  });
2486
2494
  }), r;
2487
2495
  }
2488
- function gi(e, t, n = {}) {
2496
+ function _i(e, t, n = {}) {
2489
2497
  let r = V(n.base) ? structuredClone(n.base) : {};
2490
- fi(t).forEach((e) => {
2491
- (e.payloadKey || e.field) && (yi(r, e.payloadKey || e.field), yi(r, e.field));
2498
+ pi(t).forEach((e) => {
2499
+ (e.payloadKey || e.field) && (bi(r, e.payloadKey || e.field), bi(r, e.field));
2492
2500
  });
2493
- let i = pi(n.module), a = li(t), o = /* @__PURE__ */ new Map(), s = (e) => !e.moduleName || mi(e, i) ? r : (o.has(e.moduleName) || o.set(e.moduleName, {}), o.get(e.moduleName));
2501
+ let i = mi(n.module), a = ui(t), o = /* @__PURE__ */ new Map(), s = (e) => !e.moduleName || hi(e, i) ? r : (o.has(e.moduleName) || o.set(e.moduleName, {}), o.get(e.moduleName));
2494
2502
  return (t ?? []).forEach((t) => {
2495
2503
  let n = s(t), r = t.fields ?? [], i = t.toggleEnabled && t.toggleField && G(e, t.toggleField) ? !!W(e, t.toggleField) : !1;
2496
2504
  if (t.toggleEnabled && t.toggleField && G(e, t.toggleField) && (K(n, t.toggleField, i), i && t.addRow)) {
@@ -2500,18 +2508,18 @@ function gi(e, t, n = {}) {
2500
2508
  if (t.addRow) {
2501
2509
  let i = e[t.name];
2502
2510
  if (!Array.isArray(i)) return;
2503
- K(n, t.payloadKey || t.name, i.map((t) => vi(r, t, e, a)).filter((e) => e && Object.keys(e).length > 0));
2511
+ K(n, t.payloadKey || t.name, i.map((t) => yi(r, t, e, a)).filter((e) => e && Object.keys(e).length > 0));
2504
2512
  return;
2505
2513
  }
2506
- r.forEach((t) => _i(t, e, n, e, a));
2514
+ r.forEach((t) => vi(t, e, n, e, a));
2507
2515
  }), o.size > 0 && (r.moduleWrites = Array.from(o, ([e, t]) => ({
2508
2516
  moduleName: e,
2509
2517
  data: t
2510
- }))), Ur(r, t);
2518
+ }))), Wr(r, t);
2511
2519
  }
2512
- function _i(e, t, n, r, i) {
2520
+ function vi(e, t, n, r, i) {
2513
2521
  if (e.type === "file") return;
2514
- if (e.showIf?.field && !ci(e, t, r, i)) {
2522
+ if (e.showIf?.field && !li(e, t, r, i)) {
2515
2523
  (r === void 0 || r === t) && G(t, e.field) && K(n, e.payloadKey || e.field, null);
2516
2524
  return;
2517
2525
  }
@@ -2519,30 +2527,30 @@ function _i(e, t, n, r, i) {
2519
2527
  if (!G(t, e.field)) return;
2520
2528
  let a = W(t, e.field);
2521
2529
  if (!Array.isArray(a)) return;
2522
- let o = a.map((t) => vi(e.subFields, t, r, i)).filter((e) => e && Object.keys(e).length > 0);
2530
+ let o = a.map((t) => yi(e.subFields, t, r, i)).filter((e) => e && Object.keys(e).length > 0);
2523
2531
  K(n, e.payloadKey || e.field, o);
2524
2532
  return;
2525
2533
  }
2526
2534
  if (!G(t, e.field)) return;
2527
- if (Wr(e.addRow) && (!Array.isArray(e.subFields) || e.subFields.length === 0)) {
2528
- let r = W(t, e.field), i = Array.isArray(r) ? r : B(r) ? [] : [r], a = bi(e), o = i.map((e) => ii(a, e)).filter((e) => e.kind !== "skip").map((e) => e.out);
2535
+ if (Gr(e.addRow) && (!Array.isArray(e.subFields) || e.subFields.length === 0)) {
2536
+ let r = W(t, e.field), i = Array.isArray(r) ? r : B(r) ? [] : [r], a = xi(e), o = i.map((e) => ai(a, e)).filter((e) => e.kind !== "skip").map((e) => e.out);
2529
2537
  K(n, e.payloadKey || e.field, o);
2530
2538
  return;
2531
2539
  }
2532
- let a = ii(e, W(t, e.field));
2540
+ let a = ai(e, W(t, e.field));
2533
2541
  if (a.kind !== "skip") {
2534
2542
  if (a.kind === "spread" && V(a.out)) {
2535
- qr(n, a.out);
2543
+ Jr(n, a.out);
2536
2544
  return;
2537
2545
  }
2538
2546
  K(n, e.payloadKey || e.field, a.out);
2539
2547
  }
2540
2548
  }
2541
- function vi(e, t, n, r) {
2549
+ function yi(e, t, n, r) {
2542
2550
  let i = {};
2543
- return e.forEach((e) => _i(e, t, i, n ?? t, r)), i;
2551
+ return e.forEach((e) => vi(e, t, i, n ?? t, r)), i;
2544
2552
  }
2545
- function yi(e, t) {
2553
+ function bi(e, t) {
2546
2554
  let n = String(t).split("."), r = e;
2547
2555
  for (let e = 0; e < n.length - 1; e += 1) {
2548
2556
  if (!V(r[n[e]])) return;
@@ -2560,7 +2568,7 @@ function J(e, t) {
2560
2568
  let e = me(t);
2561
2569
  return e.isValid() ? e : null;
2562
2570
  }
2563
- let i = (t) => V(t) ? (e.valueKey && t[e.valueKey]) ?? t.id ?? t._id ?? t.value ?? t.userId ?? t.recruiterId : t, a = e.type === "radio" ? !1 : Xr(e) === "array", o = (t) => {
2571
+ let i = (t) => V(t) ? (e.valueKey && t[e.valueKey]) ?? t.id ?? t._id ?? t.value ?? t.userId ?? t.recruiterId : t, a = e.type === "radio" ? !1 : Zr(e) === "array", o = (t) => {
2564
2572
  if (t == null || t === "" || !Array.isArray(e.options)) return t;
2565
2573
  let n = e.options.find((e) => String(e?.value ?? "").toLowerCase() === String(t).toLowerCase());
2566
2574
  return n ? n.value : t;
@@ -2572,7 +2580,7 @@ function J(e, t) {
2572
2580
  }
2573
2581
  return t;
2574
2582
  }
2575
- function bi(e = {}) {
2583
+ function xi(e = {}) {
2576
2584
  return {
2577
2585
  ...e,
2578
2586
  addRow: !1,
@@ -2581,7 +2589,7 @@ function bi(e = {}) {
2581
2589
  dataType: void 0
2582
2590
  };
2583
2591
  }
2584
- function xi(e, t) {
2592
+ function Si(e, t) {
2585
2593
  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;
2586
2594
  if (Array.isArray(e.subFields) && e.subFields.length > 0) {
2587
2595
  let i = [];
@@ -2597,7 +2605,7 @@ function xi(e, t) {
2597
2605
  for (; i.length < a;) i.push({});
2598
2606
  return i;
2599
2607
  }
2600
- let i = bi(e), a = [];
2608
+ let i = xi(e), a = [];
2601
2609
  if (Array.isArray(t)) a = t.map((e) => J(i, e)).filter((e) => e != null && e !== "");
2602
2610
  else if (t != null && t !== "") {
2603
2611
  let e = J(i, t);
@@ -2609,12 +2617,12 @@ function xi(e, t) {
2609
2617
  }
2610
2618
  //#endregion
2611
2619
  //#region src/components/form/linkedAddRowGroups.js
2612
- var Si = (e) => e === !0 || e === 1 || e === "1";
2613
- function Ci(e = []) {
2620
+ var Ci = (e) => e === !0 || e === 1 || e === "1";
2621
+ function wi(e = []) {
2614
2622
  let t = /* @__PURE__ */ new Map();
2615
2623
  e.forEach((e) => {
2616
2624
  let n = e?.linkGroup;
2617
- !Si(e?.addRow) || !n || (t.has(n) || t.set(n, []), t.get(n).push(e.name));
2625
+ !Ci(e?.addRow) || !n || (t.has(n) || t.set(n, []), t.get(n).push(e.name));
2618
2626
  });
2619
2627
  let n = /* @__PURE__ */ new Map();
2620
2628
  return t.forEach((e, t) => {
@@ -2624,11 +2632,11 @@ function Ci(e = []) {
2624
2632
  });
2625
2633
  }), n;
2626
2634
  }
2627
- function wi(e, t) {
2635
+ function Ti(e, t) {
2628
2636
  for (let n of e.values()) if (n.memberNames.includes(t)) return n;
2629
2637
  return null;
2630
2638
  }
2631
- function Ti(e, t = {}) {
2639
+ function Ei(e, t = {}) {
2632
2640
  let n = { ...t };
2633
2641
  return e.forEach(({ memberNames: e }) => {
2634
2642
  let t = Math.max(...e.map((e) => (n[e] ?? []).length));
@@ -2640,7 +2648,7 @@ function Ti(e, t = {}) {
2640
2648
  }
2641
2649
  //#endregion
2642
2650
  //#region src/services/aiActionApi.js
2643
- async function Ei({ module: e, group: t, field: r, actionKey: a, inputs: o = {}, files: s = {} }) {
2651
+ async function Di({ module: e, group: t, field: r, actionKey: a, inputs: o = {}, files: s = {} }) {
2644
2652
  if (!e || !t || !r || !a) throw Error("module, group, field and actionKey are required to run an AI action");
2645
2653
  let c = await n(), l = new FormData();
2646
2654
  l.append("json", JSON.stringify({ inputs: o })), Object.entries(s).forEach(([e, t]) => {
@@ -2666,7 +2674,7 @@ async function Ei({ module: e, group: t, field: r, actionKey: a, inputs: o = {},
2666
2674
  }
2667
2675
  //#endregion
2668
2676
  //#region src/services/detailDefaults.js
2669
- var Di = Object.freeze({
2677
+ var Oi = Object.freeze({
2670
2678
  s3BaseUrl: "https://zinnext-devlopment-ap-south-1.s3.ap-south-1.amazonaws.com".replace(/\/+$/, ""),
2671
2679
  dateFormat: "DD MMM YYYY",
2672
2680
  booleanTrueLabel: "Yes",
@@ -2680,27 +2688,27 @@ var Di = Object.freeze({
2680
2688
  "uploadedFileName",
2681
2689
  "uniqueName"
2682
2690
  ]
2683
- }), Y = { ...Di }, Oi = null;
2684
- function ki() {
2691
+ }), Y = { ...Oi }, ki = null;
2692
+ function Ai() {
2685
2693
  return Y;
2686
2694
  }
2687
- function Ai(e) {
2695
+ function ji(e) {
2688
2696
  if (!e || typeof e != "object") return {};
2689
2697
  let t = {};
2690
2698
  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), Array.isArray(e.documentNameOrder) && e.documentNameOrder.length && (t.documentNameOrder = e.documentNameOrder), t;
2691
2699
  }
2692
- function ji(e) {
2700
+ function Mi(e) {
2693
2701
  return Y = {
2694
2702
  ...Y,
2695
- ...Ai(e)
2703
+ ...ji(e)
2696
2704
  }, Y;
2697
2705
  }
2698
- function Mi(e = !1) {
2699
- return Oi && !e || (Oi = Yt().then((e) => ji(e)).catch(() => Y)), Oi;
2706
+ function Ni(e = !1) {
2707
+ return ki && !e || (ki = Yt().then((e) => Mi(e)).catch(() => Y)), ki;
2700
2708
  }
2701
2709
  //#endregion
2702
2710
  //#region src/components/detail/renderConfig.js
2703
- var Ni = [
2711
+ var Pi = [
2704
2712
  {
2705
2713
  value: "auto",
2706
2714
  label: "Default (auto)"
@@ -2757,7 +2765,7 @@ var Ni = [
2757
2765
  value: "html",
2758
2766
  label: "HTML"
2759
2767
  }
2760
- ], Pi = [
2768
+ ], Fi = [
2761
2769
  {
2762
2770
  value: "preview",
2763
2771
  label: "Preview (viewer)"
@@ -2778,7 +2786,7 @@ var Ni = [
2778
2786
  value: "text",
2779
2787
  label: "Text (filename)"
2780
2788
  }
2781
- ], Fi = [
2789
+ ], Ii = [
2782
2790
  {
2783
2791
  value: "none",
2784
2792
  label: "None"
@@ -2795,36 +2803,36 @@ var Ni = [
2795
2803
  value: "title",
2796
2804
  label: "Title Case"
2797
2805
  }
2798
- ], Ii = [
2806
+ ], Li = [
2799
2807
  "location",
2800
2808
  "path",
2801
2809
  "url",
2802
2810
  "key"
2803
- ], Li = [
2811
+ ], Ri = [
2804
2812
  "location",
2805
2813
  "filepath",
2806
2814
  "path",
2807
2815
  "url",
2808
2816
  "key"
2809
- ], Ri = [
2817
+ ], zi = [
2810
2818
  "uploadedfilename",
2811
2819
  "uploadname",
2812
2820
  "originalname",
2813
2821
  "displayname",
2814
2822
  "documentname"
2815
- ], zi = ["name"], Bi = (e) => String(e).toLowerCase(), Vi = (e) => e == null || e === "";
2816
- function Hi(e, t) {
2823
+ ], Bi = ["name"], Vi = (e) => String(e).toLowerCase(), Hi = (e) => e == null || e === "";
2824
+ function Ui(e, t) {
2817
2825
  for (let n of t) {
2818
2826
  let t = e[n];
2819
2827
  if (typeof t == "string" && t) return t;
2820
2828
  }
2821
2829
  return "";
2822
2830
  }
2823
- function Ui(e, t) {
2824
- for (let n of t) for (let [t, r] of Object.entries(e)) if (typeof r == "string" && r && Bi(t).endsWith(n)) return r;
2831
+ function Wi(e, t) {
2832
+ for (let n of t) for (let [t, r] of Object.entries(e)) if (typeof r == "string" && r && Vi(t).endsWith(n)) return r;
2825
2833
  return "";
2826
2834
  }
2827
- function Wi(e) {
2835
+ function Gi(e) {
2828
2836
  if (!e) return "";
2829
2837
  let t = String(e).split("?")[0].split("#")[0];
2830
2838
  return decodeURIComponent(t.split("/").pop() || "");
@@ -2833,31 +2841,31 @@ function X(e) {
2833
2841
  if (!e) return "";
2834
2842
  let t = String(e);
2835
2843
  if (/^https?:\/\//i.test(t)) return t;
2836
- let n = ki().s3BaseUrl || "";
2844
+ let n = Ai().s3BaseUrl || "";
2837
2845
  return n ? `${n}/${t.replace(/^\/+/, "")}` : "";
2838
2846
  }
2839
- function Gi(e) {
2840
- return typeof e == "string" ? e.includes("/") ? e : "" : !e || typeof e != "object" ? "" : Hi(e, Ii) || Ui(e, Li);
2841
- }
2842
2847
  function Ki(e) {
2843
- return e ? typeof e == "string" ? Wi(e) || e : typeof e == "object" && (Hi(e, ki().documentNameOrder ?? []) || Ui(e, Ri) || Wi(Gi(e)) || Ui(e, zi)) || "Document" : "Document";
2848
+ return typeof e == "string" ? e.includes("/") ? e : "" : !e || typeof e != "object" ? "" : Ui(e, Li) || Wi(e, Ri);
2844
2849
  }
2845
2850
  function qi(e) {
2846
- if (Vi(e)) return [];
2851
+ return e ? typeof e == "string" ? Gi(e) || e : typeof e == "object" && (Ui(e, Ai().documentNameOrder ?? []) || Wi(e, zi) || Gi(Ki(e)) || Wi(e, Bi)) || "Document" : "Document";
2852
+ }
2853
+ function Ji(e) {
2854
+ if (Hi(e)) return [];
2847
2855
  let t = Array.isArray(e) ? e : [e], n = [];
2848
- for (let e of t) if (!Vi(e)) {
2856
+ for (let e of t) if (!Hi(e)) {
2849
2857
  if (typeof e == "string") {
2850
2858
  let t = e.includes("/") ? e : "";
2851
2859
  n.push({
2852
2860
  location: t,
2853
- name: Wi(e) || e,
2861
+ name: Gi(e) || e,
2854
2862
  url: X(t)
2855
2863
  });
2856
2864
  } else if (typeof e == "object") {
2857
- let t = Gi(e);
2865
+ let t = Ki(e);
2858
2866
  n.push({
2859
2867
  location: t,
2860
- name: Ki(e),
2868
+ name: qi(e),
2861
2869
  url: X(t)
2862
2870
  });
2863
2871
  }
@@ -2866,12 +2874,12 @@ function qi(e) {
2866
2874
  }
2867
2875
  //#endregion
2868
2876
  //#region src/components/form/applyGroupValues.js
2869
- var Ji = (e) => e === !0 || e === 1 || e === "1", Yi = (e) => e == null || e === "";
2870
- function Xi(e) {
2877
+ var Yi = (e) => e === !0 || e === 1 || e === "1", Xi = (e) => e == null || e === "";
2878
+ function Zi(e) {
2871
2879
  return String(e ?? "").split(".").map((e) => e.trim()).filter(Boolean);
2872
2880
  }
2873
2881
  function Z(e, t, n) {
2874
- let r = Array.isArray(t) ? t : Xi(t);
2882
+ let r = Array.isArray(t) ? t : Zi(t);
2875
2883
  if (!r.length) return e;
2876
2884
  let i = e;
2877
2885
  for (let e = 0; e < r.length - 1; e += 1) {
@@ -2880,23 +2888,23 @@ function Z(e, t, n) {
2880
2888
  }
2881
2889
  return i[r[r.length - 1]] = n, e;
2882
2890
  }
2883
- function Zi(e, t = []) {
2891
+ function Qi(e, t = []) {
2884
2892
  if (!(!e || typeof e != "object")) for (let n of t) {
2885
2893
  if (!n) continue;
2886
2894
  let t = U(e, n);
2887
- if (!Yi(t)) return t;
2895
+ if (!Xi(t)) return t;
2888
2896
  }
2889
2897
  }
2890
2898
  function Q(e, t) {
2891
2899
  if (!e || typeof e != "object") return;
2892
- let n = Object.entries(e), r = n.find(([e, n]) => t.test(e) && !Yi(n));
2900
+ let n = Object.entries(e), r = n.find(([e, n]) => t.test(e) && !Xi(n));
2893
2901
  if (r) return r[1];
2894
2902
  for (let [, e] of n) if (e && typeof e == "object" && !Array.isArray(e)) {
2895
2903
  let n = Q(e, t);
2896
- if (!Yi(n)) return n;
2904
+ if (!Xi(n)) return n;
2897
2905
  }
2898
2906
  }
2899
- function Qi(e, t) {
2907
+ function $i(e, t) {
2900
2908
  let n = Array.isArray(e) ? e : e ? [e] : [];
2901
2909
  if (!n.length) return;
2902
2910
  let r = n.map((e, n) => {
@@ -2906,7 +2914,7 @@ function Qi(e, t) {
2906
2914
  status: "done"
2907
2915
  };
2908
2916
  if (!e || typeof e != "object") return null;
2909
- let r = Zi(e, [t.fileUrlKey, t.locationKey]) ?? Q(e, /(location|url|path)$/i) ?? "", i = Zi(e, [t.fileNameKey]) ?? Q(e, /(uploadName|uploadedFileName|fileName|name)$/i) ?? "";
2917
+ let r = Qi(e, [t.fileUrlKey, t.locationKey]) ?? Q(e, /(location|url|path)$/i) ?? "", i = Qi(e, [t.fileNameKey]) ?? Q(e, /(uploadName|uploadedFileName|fileName|name)$/i) ?? "";
2910
2918
  if (!r && !i) return null;
2911
2919
  let a = r && !String(r).startsWith("http") ? X(r) : r;
2912
2920
  return {
@@ -2919,9 +2927,9 @@ function Qi(e, t) {
2919
2927
  }).filter(Boolean);
2920
2928
  return r.length ? r : void 0;
2921
2929
  }
2922
- function $i(e, t) {
2930
+ function ea(e, t) {
2923
2931
  if (!e || typeof e != "object") return;
2924
- let n = Zi(e, [t.fileNameKey, t.field]) ?? Q(e, /(uploadName|uploadedFileName|fileName|name)$/i), r = Zi(e, [t.fileUrlKey, t.locationKey]) ?? Q(e, /(location|url|path)$/i) ?? "";
2932
+ let n = Qi(e, [t.fileNameKey, t.field]) ?? Q(e, /(uploadName|uploadedFileName|fileName|name)$/i), r = Qi(e, [t.fileUrlKey, t.locationKey]) ?? Q(e, /(location|url|path)$/i) ?? "";
2925
2933
  if (!n && !r) return;
2926
2934
  let i = r && !String(r).startsWith("http") ? X(r) : r, a = e.documentCopyUniqueName ?? e.uniqueName ?? n ?? `${t.field}-0`;
2927
2935
  return [{
@@ -2932,7 +2940,7 @@ function $i(e, t) {
2932
2940
  url: i || void 0
2933
2941
  }];
2934
2942
  }
2935
- function ea(e) {
2943
+ function ta(e) {
2936
2944
  let t = Array.isArray(e.rows) ? e.rows : null, n = Math.max(0, Number(e.minRows ?? 0) || 0), r = (t, n, r) => {
2937
2945
  let i = {};
2938
2946
  return (e.fields ?? []).forEach((e) => {
@@ -2947,26 +2955,26 @@ function ea(e) {
2947
2955
  e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "" && Z(i, e.field, e.defaultValue);
2948
2956
  return;
2949
2957
  }
2950
- Z(i, e.field, Ji(e.addRow) ? xi(e, a) : J(e, a));
2958
+ Z(i, e.field, Yi(e.addRow) ? Si(e, a) : J(e, a));
2951
2959
  }), i;
2952
- }, i = ui(e, { editing: !0 });
2960
+ }, i = di(e, { editing: !0 });
2953
2961
  if (t && t.length > 0) {
2954
- let e = t.map((e) => r(e, (e, t) => $i(e, t), (e, t) => U(e, t.field)));
2962
+ let e = t.map((e) => r(e, (e, t) => ea(e, t), (e, t) => U(e, t.field)));
2955
2963
  for (; e.length < n;) e.push({ ...i });
2956
2964
  return e;
2957
2965
  }
2958
- let a = r(e, (e, t) => Qi(t.value, t), (e, t) => t.value), o = Object.keys(a).length > 0 ? [a] : [];
2966
+ let a = r(e, (e, t) => $i(t.value, t), (e, t) => t.value), o = Object.keys(a).length > 0 ? [a] : [];
2959
2967
  for (; o.length < n;) o.push({ ...i });
2960
2968
  return o;
2961
2969
  }
2962
- function ta(e, t = []) {
2970
+ function na(e, t = []) {
2963
2971
  let n = {};
2964
2972
  return t.forEach((e) => {
2965
2973
  e.toggleEnabled && e.toggleField && Z(n, e.toggleField, !!e.toggleValue), !e.addRow && (e.fields ?? []).forEach((e) => {
2966
2974
  if (!e.field || e.addRow) return;
2967
2975
  let t = e.value, r = e.field;
2968
2976
  if (e.type === "file") {
2969
- let i = Qi(t, e);
2977
+ let i = $i(t, e);
2970
2978
  i && Z(n, r, i);
2971
2979
  return;
2972
2980
  }
@@ -2986,27 +2994,27 @@ function ta(e, t = []) {
2986
2994
  }
2987
2995
  //#endregion
2988
2996
  //#region src/components/form/useAiActions.js
2989
- function na(e) {
2997
+ function ra(e) {
2990
2998
  let t = document.createElement("div");
2991
2999
  return t.innerHTML = String(e ?? ""), t.textContent || t.innerText || "";
2992
3000
  }
2993
- function ra(e, t) {
2994
- return t && t === "stripHtml" ? na(e) : e;
3001
+ function ia(e, t) {
3002
+ return t && t === "stripHtml" ? ra(e) : e;
2995
3003
  }
2996
- function ia(e) {
3004
+ function aa(e) {
2997
3005
  return String(e ?? "").trim().split(/\s+/).filter(Boolean).length;
2998
3006
  }
2999
- function aa(e) {
3007
+ function oa(e) {
3000
3008
  return Object.values(e || {}).some((e) => e != null && e !== "");
3001
3009
  }
3002
- function oa(e, t) {
3010
+ function sa(e, t) {
3003
3011
  if (e.kind === "file") return Array.isArray(t) ? t.length > 0 : !!t;
3004
- let n = ra(t, e.transform), r = String(n ?? "").trim();
3012
+ let n = ia(t, e.transform), r = String(n ?? "").trim();
3005
3013
  if (!r) return !1;
3006
3014
  let i = Number(e.minWords) || 0;
3007
- return i > 0 ? ia(r) >= i : !0;
3015
+ return i > 0 ? aa(r) >= i : !0;
3008
3016
  }
3009
- function sa(e, t) {
3017
+ function ca(e, t) {
3010
3018
  let n = e.inputs || [];
3011
3019
  if (n.length === 0) return !0;
3012
3020
  let r = /* @__PURE__ */ new Map();
@@ -3014,35 +3022,35 @@ function sa(e, t) {
3014
3022
  let n = e.group || `__solo_${t}`;
3015
3023
  r.has(n) || r.set(n, []), r.get(n).push(e);
3016
3024
  });
3017
- for (let e of r.values()) if (e.some((e) => e.required || Number(e.minWords) > 0) && !e.some((e) => oa(e, t(e.sourceField)))) return !1;
3025
+ for (let e of r.values()) if (e.some((e) => e.required || Number(e.minWords) > 0) && !e.some((e) => sa(e, t(e.sourceField)))) return !1;
3018
3026
  return !0;
3019
3027
  }
3020
- var ca = [
3028
+ var la = [
3021
3029
  "top-left",
3022
3030
  "top-center",
3023
3031
  "top-right",
3024
3032
  "bottom-left",
3025
3033
  "bottom-center",
3026
3034
  "bottom-right"
3027
- ], la = "bottom-left";
3028
- function ua(e = []) {
3035
+ ], ua = "bottom-left";
3036
+ function da(e = []) {
3029
3037
  let t = {};
3030
3038
  return e.forEach((e) => {
3031
- let n = ca.includes(e.position) ? e.position : la;
3039
+ let n = la.includes(e.position) ? e.position : ua;
3032
3040
  (t[n] ??= []).push(e);
3033
3041
  }), t;
3034
3042
  }
3035
- function da({ form: e, groups: t, module: n }) {
3036
- let [r, i] = h(null), a = v.useWatch((e) => e, e), o = d((e) => sa(e, (e) => (a || {})[e]), [a]), s = d((t) => {
3043
+ function fa({ form: e, groups: t, module: n }) {
3044
+ let [r, i] = h(null), a = v.useWatch((e) => e, e), o = d((e) => ca(e, (e) => (a || {})[e]), [a]), s = d((t) => {
3037
3045
  if (!Array.isArray(t) || t.length === 0) return !1;
3038
- let n = ta(e, t.filter((e) => !e.addRow)), r = Object.keys(n).length > 0;
3046
+ let n = na(e, t.filter((e) => !e.addRow)), r = Object.keys(n).length > 0;
3039
3047
  return t.forEach((t) => {
3040
3048
  if (!t.addRow || !Array.isArray(t.rows) || t.rows.length === 0) return;
3041
- let n = ea(t);
3049
+ let n = ta(t);
3042
3050
  if (n.length === 0) return;
3043
3051
  r = !0;
3044
3052
  let i = () => e.setFieldsValue({ [t.name]: n }), a = e.getFieldValue(t.name) || [];
3045
- a.some(aa) ? y.confirm({
3053
+ a.some(oa) ? y.confirm({
3046
3054
  title: "Replace existing rows?",
3047
3055
  content: `This will replace ${a.length} existing row(s) in "${t.label || t.name}".`,
3048
3056
  okText: "Replace",
@@ -3062,12 +3070,12 @@ function da({ form: e, groups: t, module: n }) {
3062
3070
  r && (c[t.param] = r);
3063
3071
  } else {
3064
3072
  let n = e.getFieldValue(t.sourceField);
3065
- n != null && n !== "" && (i[t.param] = ra(n, t.transform));
3073
+ n != null && n !== "" && (i[t.param] = ia(n, t.transform));
3066
3074
  }
3067
3075
  }), (a.inputs || []).forEach((e) => {
3068
3076
  !e.group || e.kind !== "text" || (a.inputs || []).some((t) => t.group === e.group && t.kind === "file" && c[t.param]) && delete i[e.param];
3069
3077
  });
3070
- let l = await Ei({
3078
+ let l = await Di({
3071
3079
  module: n,
3072
3080
  group: t,
3073
3081
  field: r.field,
@@ -3075,9 +3083,9 @@ function da({ form: e, groups: t, module: n }) {
3075
3083
  inputs: i,
3076
3084
  files: c
3077
3085
  }), u = s(l?.groups), d = a.label || "AI action";
3078
- return u ? ne.success(`${d} completed successfully.`) : ne.info(`${d} completed, but no matching details were found.`), l;
3086
+ return u ? x.success(`${d} completed successfully.`) : x.info(`${d} completed, but no matching details were found.`), l;
3079
3087
  } catch (e) {
3080
- ne.error(e?.message || `${a.label || "AI action"} failed`);
3088
+ x.error(e?.message || `${a.label || "AI action"} failed`);
3081
3089
  return;
3082
3090
  } finally {
3083
3091
  i(null);
@@ -3094,7 +3102,7 @@ function da({ form: e, groups: t, module: n }) {
3094
3102
  }
3095
3103
  //#endregion
3096
3104
  //#region src/components/form/AiActionButtons.jsx
3097
- function fa({ position: e, actions: t, aiActions: n, groupName: r, field: i }) {
3105
+ function pa({ position: e, actions: t, aiActions: n, groupName: r, field: i }) {
3098
3106
  return !t || t.length === 0 ? null : /* @__PURE__ */ S(ee, {
3099
3107
  size: 8,
3100
3108
  className: "v1-ai-action-buttons",
@@ -3113,18 +3121,18 @@ function fa({ position: e, actions: t, aiActions: n, groupName: r, field: i }) {
3113
3121
  }
3114
3122
  //#endregion
3115
3123
  //#region src/components/form/emailValidator.js
3116
- function pa(e) {
3124
+ function ma(e) {
3117
3125
  let t = String(e ?? "").trim(), n = /^([^\s@]+)@([^\s@]+)\.([A-Za-z]{2,})$/.exec(t);
3118
3126
  if (!n) return !1;
3119
3127
  let [, r, i] = n;
3120
3128
  return /[A-Za-z]/.test(r) && /[A-Za-z]/.test(i);
3121
3129
  }
3122
- function ma(e = "Email", t) {
3123
- return { validator: (n, r) => r == null || r === "" || pa(r) ? Promise.resolve() : Promise.reject(Error(t ?? `Enter a valid ${e}; numeric-only email addresses are not allowed`)) };
3130
+ function ha(e = "Email", t) {
3131
+ return { validator: (n, r) => r == null || r === "" || ma(r) ? Promise.resolve() : Promise.reject(Error(t ?? `Enter a valid ${e}; numeric-only email addresses are not allowed`)) };
3124
3132
  }
3125
3133
  //#endregion
3126
3134
  //#region src/components/form/inputValidator.js
3127
- var ha = [
3135
+ var ga = [
3128
3136
  {
3129
3137
  label: "Only Numbers",
3130
3138
  value: "onlyNumber"
@@ -3193,7 +3201,7 @@ var ha = [
3193
3201
  label: "Website URL",
3194
3202
  value: "websiteUrl"
3195
3203
  }
3196
- ], ga = {
3204
+ ], _a = {
3197
3205
  onlyNumber: /^[0-9]$/,
3198
3206
  experience: /^[0-9]$/,
3199
3207
  numericTwoDigits: /^[0-9]$/,
@@ -3208,10 +3216,10 @@ var ha = [
3208
3216
  decimalRange: /^[0-9.]$/,
3209
3217
  contactNumber: /^[0-9()\-+\s]$/
3210
3218
  };
3211
- function _a(e) {
3212
- return ga[e] ?? null;
3219
+ function va(e) {
3220
+ return _a[e] ?? null;
3213
3221
  }
3214
- function va(e, t = {}, n = "change") {
3222
+ function ya(e, t = {}, n = "change") {
3215
3223
  if (!t?.type || e == null) return {
3216
3224
  cleaned: e ?? "",
3217
3225
  error: null
@@ -3289,7 +3297,7 @@ function va(e, t = {}, n = "change") {
3289
3297
  break;
3290
3298
  }
3291
3299
  case "email":
3292
- c = n === "blur" ? r.trim() : r, c && !pa(c) && (l = `${s} must be a valid email address; numeric-only email addresses are not allowed.`);
3300
+ c = n === "blur" ? r.trim() : r, c && !ma(c) && (l = `${s} must be a valid email address; numeric-only email addresses are not allowed.`);
3293
3301
  break;
3294
3302
  case "websiteUrl":
3295
3303
  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.`);
@@ -3303,7 +3311,7 @@ function va(e, t = {}, n = "change") {
3303
3311
  }
3304
3312
  //#endregion
3305
3313
  //#region src/components/form/uploadAccept.js
3306
- var ya = [
3314
+ var ba = [
3307
3315
  "jpg",
3308
3316
  "jpeg",
3309
3317
  "png",
@@ -3312,18 +3320,18 @@ var ya = [
3312
3320
  "bmp",
3313
3321
  "svg",
3314
3322
  "avif"
3315
- ], ba = [
3323
+ ], xa = [
3316
3324
  "mp4",
3317
3325
  "webm",
3318
3326
  "ogg",
3319
3327
  "ogv",
3320
3328
  "mov",
3321
3329
  "m4v"
3322
- ], xa = [
3330
+ ], Sa = [
3323
3331
  "pdf",
3324
3332
  "doc",
3325
3333
  "docx"
3326
- ], Sa = [
3334
+ ], Ca = [
3327
3335
  {
3328
3336
  label: "Any file",
3329
3337
  value: "any"
@@ -3344,44 +3352,44 @@ var ya = [
3344
3352
  label: "Images & Videos",
3345
3353
  value: "imagesAndVideos"
3346
3354
  }
3347
- ], Ca = {
3355
+ ], wa = {
3348
3356
  documents: {
3349
- exts: [...xa, ...ya],
3357
+ exts: [...Sa, ...ba],
3350
3358
  hint: "PDF, DOC or image files",
3351
3359
  error: "Only document (PDF/DOC) or image files are allowed"
3352
3360
  },
3353
3361
  images: {
3354
- exts: ya,
3362
+ exts: ba,
3355
3363
  hint: "Image files",
3356
3364
  error: "Only image files are allowed"
3357
3365
  },
3358
3366
  videos: {
3359
- exts: ba,
3367
+ exts: xa,
3360
3368
  hint: "Video files",
3361
3369
  error: "Only video files are allowed"
3362
3370
  },
3363
3371
  imagesAndVideos: {
3364
- exts: [...ya, ...ba],
3372
+ exts: [...ba, ...xa],
3365
3373
  hint: "Image or video files",
3366
3374
  error: "Only image or video files are allowed"
3367
3375
  }
3368
3376
  };
3369
- function wa(e) {
3370
- return Ca[String(e?.accept ?? "").trim()] ?? null;
3377
+ function Ta(e) {
3378
+ return wa[String(e?.accept ?? "").trim()] ?? null;
3371
3379
  }
3372
3380
  //#endregion
3373
3381
  //#region src/components/form/QuickCreateEditField.jsx
3374
- var Ta = u(() => import("./index.js").then((e) => e.i)), Ea = u(() => import("./index.js").then((e) => e.n)), Da = (e) => e == null || e === "", Oa = (e) => typeof e == "string" && e.includes(".") ? e.split(".") : [e];
3375
- function ka(e, t, n, r, i) {
3382
+ var Ea = u(() => import("./index.js").then((e) => e.i)), Da = u(() => import("./index.js").then((e) => e.n)), Oa = (e) => e == null || e === "", ka = (e) => typeof e == "string" && e.includes(".") ? e.split(".") : [e];
3383
+ function Aa(e, t, n, r, i) {
3376
3384
  let a = e.quickEditIdFrom;
3377
3385
  if (a) {
3378
- let e = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number" ? [...n.slice(0, 2), ...Oa(a)] : Oa(a), i = t?.getFieldValue?.(e);
3379
- return Da(i) && (i = r?.[a]), Da(i) ? null : i;
3386
+ let e = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number" ? [...n.slice(0, 2), ...ka(a)] : ka(a), i = t?.getFieldValue?.(e);
3387
+ return Oa(i) && (i = r?.[a]), Oa(i) ? null : i;
3380
3388
  }
3381
- return i && typeof i == "object" ? i.value ?? null : Da(i) ? null : i;
3389
+ return i && typeof i == "object" ? i.value ?? null : Oa(i) ? null : i;
3382
3390
  }
3383
- function Aa({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValue: a, onDone: o }) {
3384
- let [s, c] = h(null), u = !!e?.quickCreate, d = !!e?.quickEdit, f = e?.quickCreateModule || e?.lookupCollection || "", m = e?.quickEditModule || e?.lookupCollection || "", g = p(() => d ? ka(e, t, n, i, a) : null, [
3391
+ function ja({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValue: a, onDone: o }) {
3392
+ let [s, c] = h(null), u = !!e?.quickCreate, d = !!e?.quickEdit, f = e?.quickCreateModule || e?.lookupCollection || "", m = e?.quickEditModule || e?.lookupCollection || "", g = p(() => d ? Aa(e, t, n, i, a) : null, [
3385
3393
  d,
3386
3394
  e,
3387
3395
  t,
@@ -3452,7 +3460,7 @@ function Aa({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
3452
3460
  },
3453
3461
  children: /* @__PURE__ */ S(b, {})
3454
3462
  }),
3455
- children: s.mode === "create" ? /* @__PURE__ */ S(Ta, {
3463
+ children: s.mode === "create" ? /* @__PURE__ */ S(Ea, {
3456
3464
  moduleName: s.module,
3457
3465
  embedded: !0,
3458
3466
  breadcrumbItems: [],
@@ -3460,7 +3468,7 @@ function Aa({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
3460
3468
  onSuccess: (e) => {
3461
3469
  v(), o?.("create", e);
3462
3470
  }
3463
- }) : /* @__PURE__ */ S(Ea, {
3471
+ }) : /* @__PURE__ */ S(Da, {
3464
3472
  moduleName: s.module,
3465
3473
  recordId: s.recordId,
3466
3474
  embedded: !0,
@@ -3476,24 +3484,24 @@ function Aa({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
3476
3484
  }
3477
3485
  //#endregion
3478
3486
  //#region src/utils/roleAllowsAction.js
3479
- function ja(e) {
3480
- return e == null ? !0 : typeof e == "object" ? ja(e.permission ?? e.allowed ?? e.value) : e !== !1 && e !== 0 && e !== "0";
3487
+ function Ma(e) {
3488
+ return e == null ? !0 : typeof e == "object" ? Ma(e.permission ?? e.allowed ?? e.value) : e !== !1 && e !== 0 && e !== "0";
3481
3489
  }
3482
- function Ma(e, t) {
3490
+ function Na(e, t) {
3483
3491
  if (!e) return !0;
3484
3492
  try {
3485
3493
  let n = JSON.parse(localStorage.getItem("menuPermission") || "{}"), [r, i] = String(e).split(".");
3486
- return ja((n[r || String(t || "").replace(/s$/i, "")] ?? n[String(t || "")] ?? n[String(t || "").replace(/s$/i, "")] ?? {})[i]);
3494
+ return Ma((n[r || String(t || "").replace(/s$/i, "")] ?? n[String(t || "")] ?? n[String(t || "").replace(/s$/i, "")] ?? {})[i]);
3487
3495
  } catch {
3488
3496
  return !0;
3489
3497
  }
3490
3498
  }
3491
3499
  //#endregion
3492
3500
  //#region src/utils/afterSubmitNav.js
3493
- function Na(e) {
3501
+ function Pa(e) {
3494
3502
  return (e ?? []).filter((e) => e?.afterSubmit?.mode).sort((e, t) => (e.order ?? 0) - (t.order ?? 0))[0]?.afterSubmit ?? null;
3495
3503
  }
3496
- function Pa(e, t, n) {
3504
+ function Fa(e, t, n) {
3497
3505
  let r = String(e ?? "").trim();
3498
3506
  return !r || !r.startsWith("/") || r.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(r) ? null : r.replace(/:([A-Za-z_][\w]*)/g, (e, r) => {
3499
3507
  let i = r === "id" ? t : n?.[r];
@@ -3502,29 +3510,29 @@ function Pa(e, t, n) {
3502
3510
  }
3503
3511
  //#endregion
3504
3512
  //#region src/utils/submitMessages.js
3505
- function Fa(e) {
3513
+ function Ia(e) {
3506
3514
  return (e ?? []).filter((e) => e?.submitMessages && typeof e.submitMessages == "object").sort((e, t) => (e.order ?? 0) - (t.order ?? 0))[0]?.submitMessages ?? null;
3507
3515
  }
3508
3516
  function $(e) {
3509
3517
  let t = String(e ?? "").trim();
3510
3518
  return t ? t.charAt(0).toUpperCase() + t.slice(1) : "Record";
3511
3519
  }
3512
- function Ia(e, t) {
3520
+ function La(e, t) {
3513
3521
  return String(e).replaceAll("${module}", $(t)).replaceAll("${moduleName}", $(t));
3514
3522
  }
3515
- function La(e, t, n) {
3516
- let r = Fa(e);
3523
+ function Ra(e, t, n) {
3524
+ let r = Ia(e);
3517
3525
  if (r?.suppress) return null;
3518
3526
  let i = n === "edit" ? r?.editSuccess : r?.addSuccess;
3519
- return i && String(i).trim() ? Ia(i, t) : n === "edit" ? `${$(t)} has Updated successfully` : `${$(t)} has added successfully`;
3527
+ return i && String(i).trim() ? La(i, t) : n === "edit" ? `${$(t)} has Updated successfully` : `${$(t)} has added successfully`;
3520
3528
  }
3521
- function Ra(e, t, n, r) {
3522
- let i = Fa(e), a = n === "edit" ? i?.editError : i?.addError;
3523
- return a && String(a).trim() ? Ia(a, t) : r && String(r).trim() ? String(r) : n === "edit" ? `Failed to update ${$(t)}` : `Failed to create ${$(t)}`;
3529
+ function za(e, t, n, r) {
3530
+ let i = Ia(e), a = n === "edit" ? i?.editError : i?.addError;
3531
+ return a && String(a).trim() ? La(a, t) : r && String(r).trim() ? String(r) : n === "edit" ? `Failed to update ${$(t)}` : `Failed to create ${$(t)}`;
3524
3532
  }
3525
3533
  //#endregion
3526
3534
  //#region src/utils/scrollToFirstFormError.js
3527
- function za({ errorFields: e } = {}, t) {
3535
+ function Ba({ errorFields: e } = {}, t) {
3528
3536
  if (!e?.length) return;
3529
3537
  let n = e[0]?.name;
3530
3538
  setTimeout(() => {
@@ -3549,10 +3557,10 @@ function za({ errorFields: e } = {}, t) {
3549
3557
  }
3550
3558
  //#endregion
3551
3559
  //#region src/components/form/conditionalFieldLabel.js
3552
- function Ba(e) {
3560
+ function Va(e) {
3553
3561
  return Array.isArray(e) ? e.map((e) => String(e ?? "").trim()) : String(e ?? "").split(",").map((e) => e.trim());
3554
3562
  }
3555
- function Va(e, t) {
3563
+ function Ha(e, t) {
3556
3564
  if (!e?.field) return !1;
3557
3565
  switch (e.operator ?? "eq") {
3558
3566
  case "eq": return String(t ?? "") === String(e.value ?? "");
@@ -3560,21 +3568,21 @@ function Va(e, t) {
3560
3568
  case "truthy": return t != null && t !== "" && t !== !1;
3561
3569
  case "falsy": return t == null || t === "" || t === !1;
3562
3570
  case "notEmpty": return Array.isArray(t) ? t.length > 0 : !!t;
3563
- case "in": return Ba(e.value).includes(String(t ?? ""));
3564
- case "notIn": return !Ba(e.value).includes(String(t ?? ""));
3571
+ case "in": return Va(e.value).includes(String(t ?? ""));
3572
+ case "notIn": return !Va(e.value).includes(String(t ?? ""));
3565
3573
  default: return !1;
3566
3574
  }
3567
3575
  }
3568
- function Ha(e, t, n = !1) {
3576
+ function Ua(e, t, n = !1) {
3569
3577
  let r = n ? e?.combineLabel ?? e?.label : e?.label, i = e?.labelWhen;
3570
- return Va(i, t) && i?.label ? i.label : r;
3578
+ return Ha(i, t) && i?.label ? i.label : r;
3571
3579
  }
3572
- function Ua(e, t) {
3580
+ function Wa(e, t) {
3573
3581
  return e?.field ? t == null ? [e.field] : [...Array.isArray(t) ? t : [t], e.field] : ["__noop_conditional_label__"];
3574
3582
  }
3575
3583
  //#endregion
3576
3584
  //#region src/components/Breadcrumb.jsx
3577
- function Wa({ items: e = [] }) {
3585
+ function Ga({ items: e = [] }) {
3578
3586
  return /* @__PURE__ */ S(g, { items: e.map((t, n) => ({ title: n === e.length - 1 ? /* @__PURE__ */ S(Re, {
3579
3587
  variant: "body",
3580
3588
  weight: "medium",
@@ -3590,6 +3598,6 @@ function Wa({ items: e = [] }) {
3590
3598
  }) })) });
3591
3599
  }
3592
3600
  //#endregion
3593
- export { gr as $, I as $t, Di as A, St as An, Hn as At, hi as B, E as Bn, on as Bt, ea as C, Sn as Cn, Rt as Ct, Fi as D, Dn, gn as Dt, Ni as E, _n as En, pn as Et, wi as F, k as Fn, tr as Ft, oi as G, Gn as Gt, U as H, Ln as Ht, Ti as I, st as In, Kt as It, wr as J, zn as Jt, ai as K, ur as Kt, J as L, ot as Ln, Yt as Lt, ki as M, mt as Mn, nn as Mt, Mi as N, ht as Nn, an as Nt, X as O, jn as On, On as Ot, Ci as P, gt as Pn, Un as Pt, br as Q, Tn as Qt, gi as R, Be as Rn, An as Rt, ta as S, Fn as Sn, Mn as St, Pi as T, cr as Tn, Qt as Tt, ui as U, Rn as Ut, Xr as V, T as Vn, un as Vt, bi as W, Yn as Wt, Cr as X, zt as Xt, Tr as Y, dn as Yt, Sr as Z, Ot as Zt, _a as _, Vt as _n, Jn as _t, za as a, At as an, Bt as at, ua as b, qn as bn, Mt as bt, Na as c, rn as cn, Kn as ct, Ma as d, cn as dn, sr as dt, yn as en, hr as et, Aa as f, Nt as fn, Ht as ft, va as g, kn as gn, Qn as gt, ha as h, En as hn, ln as ht, Ha as i, Nn as in, Wt as it, ji as j, xt as jn, Pt as jt, qi as k, Vn as kn, Wn as kt, Pa as l, qt as ln, dr as lt, wa as m, jt as mn, ir as mt, Ua as n, or as nn, _r as nt, Ra as o, Ut as on, nr as ot, Sa as p, Bn as pn, en as pt, Vr as q, kt as qt, Va as r, bn as rn, vr as rt, La as s, $t as sn, Xn as st, Wa as t, $n as tn, xr as tt, ja as u, Xt as un, Pn as ut, ma as v, rr as vn, pr as vt, Xi as w, er as wn, Lt as wt, da as x, fr as xn, lr as xt, fa as y, Zn as yn, In as yt, xi as z, Re as zn, sn as zt };
3601
+ export { _r as $, En as $t, Oi as A, Hn as An, Gn as At, gi as B, Re as Bn, sn as Bt, ta as C, In as Cn, Nn as Ct, Ii as D, vn as Dn, mn as Dt, Pi as E, lr as En, Qt as Et, Ti as F, gt as Fn, Wn as Ft, si as G, Xn as Gt, U as H, T as Hn, un as Ht, Ei as I, k as In, nr as It, Tr as J, kt as Jt, oi as K, Kn as Kt, J as L, st as Ln, Kt as Lt, Ai as M, xt as Mn, Pt as Mt, Ni as N, mt as Nn, nn as Nt, X as O, On, _n as Ot, wi as P, ht as Pn, an as Pt, xr as Q, Ot as Qt, _i as R, ot as Rn, Yt as Rt, na as S, pr as Sn, ur as St, Fi as T, tr as Tn, Lt as Tt, di as U, Rn as Ut, Zr as V, E as Vn, on as Vt, xi as W, zn as Wt, wr as X, fn as Xt, Er as Y, Bn as Yt, Cr as Z, zt as Zt, va as _, An as _n, $n as _t, Ba as a, Pn as an, dn as at, da as b, Qn as bn, Ln as bt, Pa as c, $t as cn, Zn as ct, Na as d, Xt as dn, Fn as dt, I as en, gr as et, ja as f, cn as fn, cr as ft, ya as g, Dn as gn, ln as gt, ga as h, jt as hn, ar as ht, Ua as i, xn as in, Wt as it, Mi as j, St as jn, Un as jt, Ji as k, Mn as kn, kn as kt, Fa as l, rn as ln, qn as lt, Ta as m, Vn as mn, en as mt, Wa as n, er as nn, vr as nt, za as o, At as on, Bt as ot, Ca as p, Nt as pn, Ht as pt, Hr as q, dr as qt, Ha as r, sr as rn, yr as rt, Ra as s, Ut as sn, rr as st, Ga as t, bn as tn, Sr as tt, Ma as u, qt as un, fr as ut, ha as v, Vt as vn, Yn as vt, Zi as w, Cn as wn, Rt as wt, fa as x, Jn as xn, Mt as xt, pa as y, ir as yn, mr as yt, Si as z, Be as zn, jn as zt };
3594
3602
 
3595
- //# sourceMappingURL=Breadcrumb-DCO-ieeC.js.map
3603
+ //# sourceMappingURL=Breadcrumb-C_QGuzaP.js.map