@feedmepos/mf-hrm-portal 1.1.3-dev.2 → 1.1.3-dev.3

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.
Files changed (23) hide show
  1. package/dist/{AuditLogList-kZBi77lv.js → AuditLogList-BzlfsxZe.js} +23 -23
  2. package/dist/{EmployeeList-Cg-mhdLv.js → EmployeeList-JwXcalmk.js} +5 -5
  3. package/dist/{Main-CC9_bKTG.js → Main-CXeHhGbn.js} +7 -7
  4. package/dist/{Main-BHF7vXlD.js → Main-rZNF_FTP.js} +5 -5
  5. package/dist/{PermissionSetList-C0FOYrQ6.js → PermissionSetList-DogGMqoY.js} +3 -3
  6. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CS4B-7AU.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-KRwX8ejK.js} +805 -804
  7. package/dist/{RoleList-D2NTVZa_.js → RoleList-D1_HCRy4.js} +5 -5
  8. package/dist/{TeamMemberList-DC0Gxjin.js → TeamMemberList-OfK7zSQC.js} +7 -7
  9. package/dist/{TimesheetList-CksRCsTc.js → TimesheetList-B0ftNJBO.js} +6 -6
  10. package/dist/api/team/index.d.ts +1 -4
  11. package/dist/{app-kKq54h9D.js → app-CSWaQRwW.js} +229 -285
  12. package/dist/app.js +2 -2
  13. package/dist/{dayjs.min-CGTR0SS0.js → dayjs.min-EuIkR9bv.js} +1 -1
  14. package/dist/{employee-CRKx3zN0.js → employee-84RPdPDw.js} +3 -3
  15. package/dist/{index-DRoNwfyW.js → index-B37OJY7u.js} +186 -189
  16. package/dist/{index-TP4vQCyq.js → index-CczCMtDa.js} +1 -1
  17. package/dist/{lodash-CeWi5dyp.js → lodash-DJT7KdyD.js} +1 -1
  18. package/dist/{team-CuLNHjGN.js → team-CypGrdSZ.js} +1 -1
  19. package/dist/{timesheet-V636ISlI.js → timesheet-DhmDGkf5.js} +2 -2
  20. package/dist/tsconfig.app.tsbuildinfo +1 -1
  21. package/dist/{useAppStore-DoX0IUFz.js → useAppStore-DR307TDF.js} +1 -1
  22. package/dist/{useLoading-1yy1KHsE.js → useLoading-WcbjSQRH.js} +1 -1
  23. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { h as ue, defineComponent as y, ref as T, renderSlot as be, createBlock as k, onMounted as re, openBlock as O, createElementBlock as Me, createElementVNode as F, unref as $, toDisplayString as ge, watch as me, nextTick as Be, onBeforeUnmount as Je, computed as De, normalizeStyle as Te, resolveComponent as ae, withCtx as ke, createVNode as Le, defineAsyncComponent as Se, watchEffect as _e } from "vue";
1
+ import { h as ue, defineComponent as y, ref as T, renderSlot as be, createBlock as L, onMounted as re, openBlock as O, createElementBlock as Me, createElementVNode as F, unref as $, toDisplayString as ge, watch as me, nextTick as Be, onBeforeUnmount as Je, computed as De, normalizeStyle as Te, resolveComponent as ae, withCtx as Le, createVNode as ke, defineAsyncComponent as Se, watchEffect as _e } from "vue";
2
2
  import { useBreakpoints as $e } from "@feedmepos/ui-library";
3
3
  import { useRoute as eA, useRouter as AA } from "vue-router";
4
- import { useI18n as pe, useCoreStore as tA } from "@feedmepos/mf-common";
5
- const Ye = {
4
+ import { useI18n as Ye, useCoreStore as tA } from "@feedmepos/mf-common";
5
+ const pe = {
6
6
  title: "Audit Log",
7
7
  dateRange: {
8
8
  placeholder: "Select date range"
@@ -70,10 +70,10 @@ const Ye = {
70
70
  requestBody: "Request Body"
71
71
  }
72
72
  }, sA = {
73
- auditLog: Ye
73
+ auditLog: pe
74
74
  }, rA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
75
75
  __proto__: null,
76
- auditLog: Ye,
76
+ auditLog: pe,
77
77
  default: sA
78
78
  }, Symbol.toStringTag, { value: "Module" })), Ce = {
79
79
  title: "บันทึกการตรวจสอบ",
@@ -223,7 +223,7 @@ const Ye = {
223
223
  __proto__: null,
224
224
  auditLog: Ge,
225
225
  default: oA
226
- }, Symbol.toStringTag, { value: "Module" })), he = {
226
+ }, Symbol.toStringTag, { value: "Module" })), Ve = {
227
227
  title: "審計日誌",
228
228
  dateRange: {
229
229
  placeholder: "選擇日期範圍"
@@ -292,17 +292,17 @@ const Ye = {
292
292
  requestBody: "請求內容"
293
293
  }
294
294
  }, lA = {
295
- auditLog: he
295
+ auditLog: Ve
296
296
  }, iA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
297
297
  __proto__: null,
298
- auditLog: he,
298
+ auditLog: Ve,
299
299
  default: lA
300
300
  }, Symbol.toStringTag, { value: "Module" })), uA = {
301
301
  "en-US": rA,
302
302
  "zh-CN": cA,
303
303
  "th-TH": nA,
304
304
  "zh-Hant": iA
305
- }, Ve = {
305
+ }, he = {
306
306
  employee: {
307
307
  title: "Employee",
308
308
  exportButtonLabel: "Export",
@@ -456,11 +456,11 @@ const Ye = {
456
456
  }
457
457
  }
458
458
  }, gA = {
459
- hr: Ve
459
+ hr: he
460
460
  }, mA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
461
461
  __proto__: null,
462
462
  default: gA,
463
- hr: Ve
463
+ hr: he
464
464
  }, Symbol.toStringTag, { value: "Module" })), Ee = {
465
465
  employee: {
466
466
  title: "พนักงาน",
@@ -1065,12 +1065,12 @@ const Ye = {
1065
1065
  permissions: "Permissions"
1066
1066
  }
1067
1067
  }
1068
- }, pA = {
1068
+ }, YA = {
1069
1069
  team: xe,
1070
1070
  permissionSet: Qe
1071
- }, YA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1071
+ }, pA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1072
1072
  __proto__: null,
1073
- default: pA,
1073
+ default: YA,
1074
1074
  permissionSet: Qe,
1075
1075
  team: xe
1076
1076
  }, Symbol.toStringTag, { value: "Module" })), Xe = {
@@ -1335,12 +1335,12 @@ const Ye = {
1335
1335
  permissions: "权限"
1336
1336
  }
1337
1337
  }
1338
- }, hA = {
1338
+ }, VA = {
1339
1339
  team: He,
1340
1340
  permissionSet: Fe
1341
- }, VA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1341
+ }, hA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1342
1342
  __proto__: null,
1343
- default: hA,
1343
+ default: VA,
1344
1344
  permissionSet: Fe,
1345
1345
  team: He
1346
1346
  }, Symbol.toStringTag, { value: "Module" })), Pe = {
@@ -1486,8 +1486,8 @@ const Ye = {
1486
1486
  permissionSet: ye,
1487
1487
  team: Pe
1488
1488
  }, Symbol.toStringTag, { value: "Module" })), jA = {
1489
- "en-US": YA,
1490
- "zh-CN": VA,
1489
+ "en-US": pA,
1490
+ "zh-CN": hA,
1491
1491
  "th-TH": GA,
1492
1492
  "zh-Hant": vA
1493
1493
  };
@@ -1515,13 +1515,13 @@ var Oe = { exports: {} };
1515
1515
  if (1 & l && (a = s(a)), 8 & l || 4 & l && typeof a == "object" && a && a.__esModule) return a;
1516
1516
  var u = /* @__PURE__ */ Object.create(null);
1517
1517
  if (s.r(u), Object.defineProperty(u, "default", { enumerable: !0, value: a }), 2 & l && typeof a != "string")
1518
- for (var M in a)
1518
+ for (var b in a)
1519
1519
  s.d(
1520
1520
  u,
1521
- M,
1522
- (function(p) {
1523
- return a[p];
1524
- }).bind(null, M)
1521
+ b,
1522
+ (function(Y) {
1523
+ return a[Y];
1524
+ }).bind(null, b)
1525
1525
  );
1526
1526
  return u;
1527
1527
  }, s.n = function(a) {
@@ -1557,11 +1557,11 @@ var Oe = { exports: {} };
1557
1557
  }), s.d(t, "compare", function() {
1558
1558
  return ce;
1559
1559
  }), s.d(t, "comparable", function() {
1560
- return L;
1560
+ return k;
1561
1561
  });
1562
- var u = l("Array"), M = l("Object"), p = l("Function");
1562
+ var u = l("Array"), b = l("Object"), Y = l("Function");
1563
1563
  function C(A, r) {
1564
- return p(A.get) ? A.get(r) : A[r];
1564
+ return Y(A.get) ? A.get(r) : A[r];
1565
1565
  }
1566
1566
  function G(A) {
1567
1567
  return function(r, c) {
@@ -1579,7 +1579,7 @@ var Oe = { exports: {} };
1579
1579
  return !0;
1580
1580
  };
1581
1581
  }
1582
- function h(A, r, c, i) {
1582
+ function V(A, r, c, i) {
1583
1583
  return A.validate(A.options, r, c, i);
1584
1584
  }
1585
1585
  var j = {
@@ -1623,16 +1623,16 @@ var Oe = { exports: {} };
1623
1623
  return !!r && A === r.length;
1624
1624
  },
1625
1625
  $or: function(A, r, c, i) {
1626
- for (var g = 0, B = A.length; g < B; g++)
1627
- if (h(C(A, g), r, c, i)) return !0;
1626
+ for (var g = 0, m = A.length; g < m; g++)
1627
+ if (V(C(A, g), r, c, i)) return !0;
1628
1628
  return !1;
1629
1629
  },
1630
1630
  $nor: function(A, r, c, i) {
1631
1631
  return !j.$or(A, r, c, i);
1632
1632
  },
1633
1633
  $and: function(A, r, c, i) {
1634
- for (var g = 0, B = A.length; g < B; g++)
1635
- if (!h(C(A, g), r, c, i)) return !1;
1634
+ for (var g = 0, m = A.length; g < m; g++)
1635
+ if (!V(C(A, g), r, c, i)) return !1;
1636
1636
  return !0;
1637
1637
  },
1638
1638
  $regex: G(function(A, r) {
@@ -1642,11 +1642,11 @@ var Oe = { exports: {} };
1642
1642
  return A.call(r, r, c, i);
1643
1643
  },
1644
1644
  $elemMatch: function(A, r, c, i) {
1645
- return u(r) ? !!~function(g, B) {
1645
+ return u(r) ? !!~function(g, m) {
1646
1646
  for (var d = 0; d < g.length; d++)
1647
- if (C(g, d), h(B, C(g, d))) return d;
1647
+ if (C(g, d), V(m, C(g, d))) return d;
1648
1648
  return -1;
1649
- }(r, A) : h(A, r, c, i);
1649
+ }(r, A) : V(A, r, c, i);
1650
1650
  },
1651
1651
  $exists: function(A, r, c, i) {
1652
1652
  return i.hasOwnProperty(c) === A;
@@ -1654,61 +1654,61 @@ var Oe = { exports: {} };
1654
1654
  }, x = {
1655
1655
  $eq: function(A, r, c) {
1656
1656
  var i = c.comparable, g = c.compare;
1657
- return A instanceof RegExp ? G(function(B) {
1658
- return typeof B == "string" && A.test(B);
1659
- }) : A instanceof Function ? G(A) : u(A) && !A.length ? G(function(B) {
1660
- return u(B) && !B.length;
1657
+ return A instanceof RegExp ? G(function(m) {
1658
+ return typeof m == "string" && A.test(m);
1659
+ }) : A instanceof Function ? G(A) : u(A) && !A.length ? G(function(m) {
1660
+ return u(m) && !m.length;
1661
1661
  }) : G(
1662
- A === null ? function(B) {
1663
- return B == null;
1664
- } : function(B) {
1665
- return g(i(B), i(A)) === 0;
1662
+ A === null ? function(m) {
1663
+ return m == null;
1664
+ } : function(m) {
1665
+ return g(i(m), i(A)) === 0;
1666
1666
  }
1667
1667
  );
1668
1668
  },
1669
1669
  $gt: function(A, r, c) {
1670
1670
  var i = c.comparable, g = c.compare;
1671
- return function(B) {
1672
- return g(i(B), i(A)) > 0;
1671
+ return function(m) {
1672
+ return g(i(m), i(A)) > 0;
1673
1673
  };
1674
1674
  },
1675
1675
  $gte: function(A, r, c) {
1676
1676
  var i = c.comparable, g = c.compare;
1677
- return function(B) {
1678
- return g(i(B), i(A)) >= 0;
1677
+ return function(m) {
1678
+ return g(i(m), i(A)) >= 0;
1679
1679
  };
1680
1680
  },
1681
1681
  $lt: function(A, r, c) {
1682
1682
  var i = c.comparable, g = c.compare;
1683
- return function(B) {
1684
- return g(i(B), i(A)) < 0;
1683
+ return function(m) {
1684
+ return g(i(m), i(A)) < 0;
1685
1685
  };
1686
1686
  },
1687
1687
  $lte: function(A, r, c) {
1688
1688
  var i = c.comparable, g = c.compare;
1689
- return function(B) {
1690
- return g(i(B), i(A)) <= 0;
1689
+ return function(m) {
1690
+ return g(i(m), i(A)) <= 0;
1691
1691
  };
1692
1692
  },
1693
1693
  $in: function(A, r, c) {
1694
1694
  var i = c.comparable;
1695
1695
  return function(g) {
1696
1696
  if (!(g instanceof Array)) {
1697
- var B = i(g);
1698
- if (B === g && a(g) === "object") {
1697
+ var m = i(g);
1698
+ if (m === g && a(g) === "object") {
1699
1699
  for (w = A.length; w--; )
1700
1700
  if (String(A[w]) === String(g) && String(g) !== "[object Object]")
1701
1701
  return !0;
1702
1702
  }
1703
- if (B === void 0) {
1703
+ if (m === void 0) {
1704
1704
  for (w = A.length; w--; ) if (A[w] == null) return !0;
1705
1705
  }
1706
1706
  for (w = A.length; w--; ) {
1707
- var d = h(oe(C(A, w), c), B, w, A);
1708
- if (d && String(d) !== "[object Object]" && String(B) !== "[object Object]")
1707
+ var d = V(oe(C(A, w), c), m, w, A);
1708
+ if (d && String(d) !== "[object Object]" && String(m) !== "[object Object]")
1709
1709
  return !0;
1710
1710
  }
1711
- return !!~A.indexOf(B);
1711
+ return !!~A.indexOf(m);
1712
1712
  }
1713
1713
  for (var w = g.length; w--; )
1714
1714
  if (~A.indexOf(i(C(g, w)))) return !0;
@@ -1717,8 +1717,8 @@ var Oe = { exports: {} };
1717
1717
  },
1718
1718
  $nin: function(A, r, c) {
1719
1719
  var i = x.$in(A, r, c);
1720
- return function(g, B, d, w) {
1721
- return !i(g, B, d, w);
1720
+ return function(g, m, d, w) {
1721
+ return !i(g, m, d, w);
1722
1722
  };
1723
1723
  },
1724
1724
  $mod: function(A) {
@@ -1728,8 +1728,8 @@ var Oe = { exports: {} };
1728
1728
  },
1729
1729
  $ne: function(A, r, c) {
1730
1730
  var i = x.$eq(A, r, c);
1731
- return I(function(g, B, d, w) {
1732
- return !i(g, B, d, w);
1731
+ return I(function(g, m, d, w) {
1732
+ return !i(g, m, d, w);
1733
1733
  });
1734
1734
  },
1735
1735
  $and: function(A, r, c) {
@@ -1746,8 +1746,8 @@ var Oe = { exports: {} };
1746
1746
  },
1747
1747
  $not: function(A, r, c) {
1748
1748
  var i = P(c)(A);
1749
- return function(g, B, d) {
1750
- return !h(i, g, B, d);
1749
+ return function(g, m, d) {
1750
+ return !V(i, g, m, d);
1751
1751
  };
1752
1752
  },
1753
1753
  $type: function(A) {
@@ -1775,7 +1775,7 @@ var Oe = { exports: {} };
1775
1775
  return { options: A, validate: r };
1776
1776
  }
1777
1777
  function Ne(A, r) {
1778
- var c = A.keyPath, i = A.child, g = A.query, B = [];
1778
+ var c = A.keyPath, i = A.child, g = A.query, m = [];
1779
1779
  if (function le(q, Z, z, Re, S) {
1780
1780
  if (z === Z.length || q == null)
1781
1781
  return void S.push([q, Z[z - 1], Re]);
@@ -1783,15 +1783,15 @@ var Oe = { exports: {} };
1783
1783
  if (u(q) && isNaN(Number(ie)))
1784
1784
  for (var _ = 0, Ke = q.length; _ < Ke; _++) le(C(q, _), Z, z, q, S);
1785
1785
  else le(C(q, ie), Z, z + 1, q, S);
1786
- }(r, c, 0, r, B), B.length === 1) {
1787
- var d = B[0];
1788
- return h(i, d[0], d[1], d[2]);
1786
+ }(r, c, 0, r, m), m.length === 1) {
1787
+ var d = m[0];
1788
+ return V(i, d[0], d[1], d[2]);
1789
1789
  }
1790
- for (var w = g && g.$ne !== void 0, Y = w, V = 0; V < B.length; V++) {
1791
- var Q = B[V], W = h(i, Q[0], Q[1], Q[2]);
1792
- w ? Y &= W : Y |= W;
1790
+ for (var w = g && g.$ne !== void 0, p = w, h = 0; h < m.length; h++) {
1791
+ var Q = m[h], W = V(i, Q[0], Q[1], Q[2]);
1792
+ w ? p &= W : p |= W;
1793
1793
  }
1794
- return Y;
1794
+ return p;
1795
1795
  }
1796
1796
  function We(A, r, c) {
1797
1797
  return X({ keyPath: A, child: r, query: c }, Ne);
@@ -1803,25 +1803,25 @@ var Oe = { exports: {} };
1803
1803
  }, g = function(d) {
1804
1804
  d = r(d);
1805
1805
  var w = [];
1806
- for (var Y in d) {
1807
- var V = d[Y];
1808
- if (Y !== "$options") {
1809
- var Q = j[Y] || A && c && c[Y];
1810
- if (Q) x[Y] && (V = x[Y](V, d, A)), w.push(X(r(V), Q));
1806
+ for (var p in d) {
1807
+ var h = d[p];
1808
+ if (p !== "$options") {
1809
+ var Q = j[p] || A && c && c[p];
1810
+ if (Q) x[p] && (h = x[p](h, d, A)), w.push(X(r(h), Q));
1811
1811
  else {
1812
- if (Y.charCodeAt(0) === 36)
1813
- throw new Error("Unknown operation " + Y);
1814
- var W = Y.split(".");
1815
- w.push(We(W, B(V), V));
1812
+ if (p.charCodeAt(0) === 36)
1813
+ throw new Error("Unknown operation " + p);
1814
+ var W = p.split(".");
1815
+ w.push(We(W, m(h), h));
1816
1816
  }
1817
1817
  }
1818
1818
  }
1819
1819
  return w.length === 1 ? w[0] : X(w, j.$and);
1820
- }, B = function(d) {
1821
- return d = i(d), function w(Y, V) {
1822
- if (!M(Y)) return V;
1823
- for (var Q in Y) V.push(Q), w(Y[Q], V);
1824
- return V;
1820
+ }, m = function(d) {
1821
+ return d = i(d), function w(p, h) {
1822
+ if (!b(p)) return h;
1823
+ for (var Q in p) h.push(Q), w(p[Q], h);
1824
+ return h;
1825
1825
  }(d, []).join(",").search(/[$.]/) === -1 ? X(d, N) : g(d);
1826
1826
  };
1827
1827
  return function(d) {
@@ -1831,7 +1831,7 @@ var Oe = { exports: {} };
1831
1831
  function N(A, r) {
1832
1832
  if (Object.prototype.toString.call(A) !== Object.prototype.toString.call(r))
1833
1833
  return !1;
1834
- if (M(A)) {
1834
+ if (b(A)) {
1835
1835
  if (Object.keys(A).length !== Object.keys(r).length) return !1;
1836
1836
  for (var c in A) if (!N(A[c], r[c])) return !1;
1837
1837
  return !0;
@@ -1848,15 +1848,15 @@ var Oe = { exports: {} };
1848
1848
  var c = P(r)(A);
1849
1849
  return r && r.select && (c = {
1850
1850
  options: c,
1851
- validate: function(i, g, B, d) {
1852
- return h(i, g && r.select(g), B, d);
1851
+ validate: function(i, g, m, d) {
1852
+ return V(i, g && r.select(g), m, d);
1853
1853
  }
1854
1854
  }), c;
1855
1855
  }
1856
1856
  function Ue(A, r) {
1857
- var c = oe(A, r = Object.assign({ compare: ce, comparable: L }, r));
1858
- return function(i, g, B) {
1859
- return h(c, i, g, B);
1857
+ var c = oe(A, r = Object.assign({ compare: ce, comparable: k }, r));
1858
+ return function(i, g, m) {
1859
+ return V(c, i, g, m);
1860
1860
  };
1861
1861
  }
1862
1862
  function ce(A, r) {
@@ -1866,8 +1866,8 @@ var Oe = { exports: {} };
1866
1866
  if (A < r) return -1;
1867
1867
  }
1868
1868
  }
1869
- function L(A) {
1870
- return A instanceof Date ? A.getTime() : u(A) ? A.map(L) : A && typeof A.toJSON == "function" ? A.toJSON() : A;
1869
+ function k(A) {
1870
+ return A instanceof Date ? A.getTime() : u(A) ? A.map(k) : A && typeof A.toJSON == "function" ? A.toJSON() : A;
1871
1871
  }
1872
1872
  }
1873
1873
  ]);
@@ -1911,8 +1911,8 @@ function R(e, o, n) {
1911
1911
  return yA() ? R = Reflect.construct : R = function(s, a, l) {
1912
1912
  var u = [null];
1913
1913
  u.push.apply(u, a);
1914
- var M = Function.bind.apply(s, u), p = new M();
1915
- return l && J(p, l.prototype), p;
1914
+ var b = Function.bind.apply(s, u), Y = new b();
1915
+ return l && J(Y, l.prototype), Y;
1916
1916
  }, R.apply(null, arguments);
1917
1917
  }
1918
1918
  function OA(e) {
@@ -1977,8 +1977,8 @@ var Ze = function(o) {
1977
1977
  field: l,
1978
1978
  subjectName: this.ability.subjectName(a)
1979
1979
  });
1980
- var M = u ? u.reason : "";
1981
- throw this.message = this._customMessage || M || U(this), this;
1980
+ var b = u ? u.reason : "";
1981
+ throw this.message = this._customMessage || b || U(this), this;
1982
1982
  }
1983
1983
  }, n._setMetadata = function(s) {
1984
1984
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
@@ -2010,7 +2010,7 @@ function TA(e) {
2010
2010
  }), n = o.length > 1 ? "(?:" + o.join("|") + ")" : o[0];
2011
2011
  return new RegExp("^" + n + "$");
2012
2012
  }
2013
- var kA = /* @__PURE__ */ function() {
2013
+ var LA = /* @__PURE__ */ function() {
2014
2014
  function e(n) {
2015
2015
  this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : se(n.fields), Object.defineProperty(this, "_fieldsPattern", {
2016
2016
  writable: !0
@@ -2033,7 +2033,7 @@ var kA = /* @__PURE__ */ function() {
2033
2033
  function fe(e, o) {
2034
2034
  return e === o || Array.isArray(o) && o.indexOf(e) !== -1;
2035
2035
  }
2036
- var LA = /* @__PURE__ */ function() {
2036
+ var kA = /* @__PURE__ */ function() {
2037
2037
  e.addAlias = function(t, s) {
2038
2038
  if (t === "manage" || fe("manage", s))
2039
2039
  throw new Error('Cannot add alias for "manage" action because it represents any action');
@@ -2045,7 +2045,7 @@ var LA = /* @__PURE__ */ function() {
2045
2045
  t === void 0 && (t = {}), Object.defineProperty(this, "subjectName", {
2046
2046
  value: t.subjectName || zA
2047
2047
  }), this[v] = {
2048
- RuleType: t.RuleType || kA,
2048
+ RuleType: t.RuleType || LA,
2049
2049
  originalRules: n || [],
2050
2050
  hasPerFieldRules: !1,
2051
2051
  indexedRules: /* @__PURE__ */ Object.create(null),
@@ -2066,15 +2066,15 @@ var LA = /* @__PURE__ */ function() {
2066
2066
  var a = this.buildIndexFor(t);
2067
2067
  return this[v].indexedRules = a.rules, this[v].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", s), this;
2068
2068
  }, o.buildIndexFor = function(t) {
2069
- for (var s = /* @__PURE__ */ Object.create(null), a = this[v].RuleType, l = !0, u = !1, M = 0; M < t.length; M++) {
2070
- var p = new a(t[M]), C = this.expandActions(p.actions), G = se(p.subject), I = t.length - M - 1;
2071
- l = !!(l && p.inverted), !u && p.fields && (u = !0);
2072
- for (var h = 0; h < G.length; h++) {
2073
- var j = G[h];
2069
+ for (var s = /* @__PURE__ */ Object.create(null), a = this[v].RuleType, l = !0, u = !1, b = 0; b < t.length; b++) {
2070
+ var Y = new a(t[b]), C = this.expandActions(Y.actions), G = se(Y.subject), I = t.length - b - 1;
2071
+ l = !!(l && Y.inverted), !u && Y.fields && (u = !0);
2072
+ for (var V = 0; V < G.length; V++) {
2073
+ var j = G[V];
2074
2074
  s[j] = s[j] || /* @__PURE__ */ Object.create(null);
2075
2075
  for (var x = 0; x < C.length; x++) {
2076
2076
  var X = C[x];
2077
- s[j][X] = s[j][X] || /* @__PURE__ */ Object.create(null), s[j][X][I] = p;
2077
+ s[j][X] = s[j][X] || /* @__PURE__ */ Object.create(null), s[j][X][I] = Y;
2078
2078
  }
2079
2079
  }
2080
2080
  }
@@ -2103,9 +2103,9 @@ var LA = /* @__PURE__ */ function() {
2103
2103
  var a = this.subjectName(s), l = this[v].mergedRules, u = a + "_" + t;
2104
2104
  return l[u] || (l[u] = this.mergeRulesFor(t, a)), l[u];
2105
2105
  }, o.mergeRulesFor = function(t, s) {
2106
- var a = this[v].indexedRules, l = [s, "all"].reduce(function(u, M) {
2107
- var p = a[M];
2108
- return p ? Object.assign(u, p[t], p.manage) : u;
2106
+ var a = this[v].indexedRules, l = [s, "all"].reduce(function(u, b) {
2107
+ var Y = a[b];
2108
+ return Y ? Object.assign(u, Y[t], Y.manage) : u;
2109
2109
  }, []);
2110
2110
  return l.filter(Boolean);
2111
2111
  }, o.rulesFor = function(t, s, a) {
@@ -2140,8 +2140,8 @@ var LA = /* @__PURE__ */ function() {
2140
2140
  return this[v].originalRules;
2141
2141
  }
2142
2142
  }]), e;
2143
- }(), f = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(f || {}), m = /* @__PURE__ */ ((e) => (e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.inventory = "business::inventory", e.inventory_stock = "business::inventory::stock", e.inventory_stock_adjustment = "business::inventory::stock::adjustment", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_integration = "business::inventory::integration", e.inventory_orderDraft = "business::inventory::orderDraft", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_employee_role = "business::hrm::employee::role", e.hrm_employee_timesheet = "business::hrm::employee::timesheet", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_teamMember_role = "business::hrm::teamMember::role", e.hrm_teamMember_test = "business::hrm::teamMember::test", e.hrm_teamMember_test2 = "business::hrm::teamMember::test2", e.hrm_teamMember_test3 = "business::hrm::teamMember::test3", e.menu = "business::menu", e.restaurant = "business::restaurant", e.profile = "business::profile", e))(m || {}), D = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(D || {}), ze = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ze || {});
2144
- const b = {
2143
+ }(), f = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(f || {}), B = /* @__PURE__ */ ((e) => (e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.inventory = "business::inventory", e.inventory_stock = "business::inventory::stock", e.inventory_stock_adjustment = "business::inventory::stock::adjustment", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_integration = "business::inventory::integration", e.inventory_orderDraft = "business::inventory::orderDraft", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_employee_role = "business::hrm::employee::role", e.hrm_employee_timesheet = "business::hrm::employee::timesheet", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_teamMember_role = "business::hrm::teamMember::role", e.menu = "business::menu", e.restaurant = "business::restaurant", e.profile = "business::profile", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(D || {}), ze = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ze || {});
2144
+ const M = {
2145
2145
  general: "General",
2146
2146
  inventory: "Inventory",
2147
2147
  hrm: "HRM",
@@ -2149,221 +2149,166 @@ const b = {
2149
2149
  }, SA = "access-denied", K = {
2150
2150
  Action: f,
2151
2151
  Subject: {
2152
- Business: m,
2152
+ Business: B,
2153
2153
  Restaurant: ze
2154
2154
  }
2155
2155
  }, Ie = {
2156
- [D.role]: m.hrm_employee_role,
2157
- [D.permission]: m.hrm_teamMember,
2158
- [D.promotion]: m.crm_promotion,
2159
- [D.voucher]: m.crm_voucher,
2160
- [D.membership]: m.crm_membership,
2161
- [D.stock]: m.inventory_stock,
2162
- [D.wastageTemplate]: m.inventory_wastageTemplate,
2163
- [D.closingTemplate]: m.inventory_closingTemplate,
2164
- [D.orderTemplate]: m.inventory_orderTemplate,
2165
- [D.ingredient]: m.inventory_ingredient,
2166
- [D.recipe]: m.inventory_recipe,
2167
- [D.unit]: m.inventory_unit,
2168
- [D.supplier]: m.inventory_supplier,
2169
- [D.warehouse]: m.inventory_warehouse,
2170
- [D.publish]: m.inventory_publish,
2171
- [D.integration]: m.inventory_integration,
2172
- [D.orderDraft]: m.inventory_orderDraft,
2173
- [D.unitCostHistory]: m.inventory_unitCostHistory
2156
+ [D.role]: B.hrm_employee_role,
2157
+ [D.permission]: B.hrm_teamMember,
2158
+ [D.promotion]: B.crm_promotion,
2159
+ [D.voucher]: B.crm_voucher,
2160
+ [D.membership]: B.crm_membership,
2161
+ [D.stock]: B.inventory_stock,
2162
+ [D.wastageTemplate]: B.inventory_wastageTemplate,
2163
+ [D.closingTemplate]: B.inventory_closingTemplate,
2164
+ [D.orderTemplate]: B.inventory_orderTemplate,
2165
+ [D.ingredient]: B.inventory_ingredient,
2166
+ [D.recipe]: B.inventory_recipe,
2167
+ [D.unit]: B.inventory_unit,
2168
+ [D.supplier]: B.inventory_supplier,
2169
+ [D.warehouse]: B.inventory_warehouse,
2170
+ [D.publish]: B.inventory_publish,
2171
+ [D.integration]: B.inventory_integration,
2172
+ [D.orderDraft]: B.inventory_orderDraft,
2173
+ [D.unitCostHistory]: B.inventory_unitCostHistory
2174
2174
  }, Ot = {
2175
2175
  // General
2176
2176
  restaurant: {
2177
2177
  label: "Restaurant Owner",
2178
- subject: m.restaurant,
2179
- actions: [f.manage]
2178
+ subject: B.restaurant,
2179
+ actions: [f.manage],
2180
+ category: M.general
2180
2181
  },
2181
2182
  menu: {
2182
2183
  label: "Menu Management",
2183
- subject: m.menu,
2184
- actions: [f.manage]
2184
+ subject: B.menu,
2185
+ actions: [f.manage],
2186
+ category: M.general
2185
2187
  },
2186
2188
  // inventory
2187
2189
  stock: {
2188
2190
  label: "Stock Management",
2189
- subject: m.inventory_stock,
2190
- actions: [f.manage]
2191
+ subject: B.inventory_stock,
2192
+ actions: [f.manage],
2193
+ category: M.inventory
2191
2194
  },
2192
2195
  wastageTemplate: {
2193
2196
  label: "Wastage Template Management",
2194
- subject: m.inventory_wastageTemplate,
2195
- actions: [f.manage]
2197
+ subject: B.inventory_wastageTemplate,
2198
+ actions: [f.manage],
2199
+ category: M.inventory
2196
2200
  },
2197
2201
  closingTemplate: {
2198
2202
  label: "Closing Template Management",
2199
- subject: m.inventory_closingTemplate,
2200
- actions: [f.manage]
2203
+ subject: B.inventory_closingTemplate,
2204
+ actions: [f.manage],
2205
+ category: M.inventory
2201
2206
  },
2202
2207
  orderTemplate: {
2203
2208
  label: "Order Template Management",
2204
- subject: m.inventory_orderTemplate,
2205
- actions: [f.manage]
2209
+ subject: B.inventory_orderTemplate,
2210
+ actions: [f.manage],
2211
+ category: M.inventory
2206
2212
  },
2207
2213
  ingredient: {
2208
2214
  label: "Ingredient Management",
2209
- subject: m.inventory_ingredient,
2210
- actions: [f.manage]
2215
+ subject: B.inventory_ingredient,
2216
+ actions: [f.manage],
2217
+ category: M.inventory
2211
2218
  },
2212
2219
  recipe: {
2213
2220
  label: "Recipe Management",
2214
- subject: m.inventory_recipe,
2215
- actions: [f.manage]
2221
+ subject: B.inventory_recipe,
2222
+ actions: [f.manage],
2223
+ category: M.inventory
2216
2224
  },
2217
2225
  unit: {
2218
2226
  label: "Unit Management",
2219
- subject: m.inventory_unit,
2220
- actions: [f.manage]
2227
+ subject: B.inventory_unit,
2228
+ actions: [f.manage],
2229
+ category: M.inventory
2221
2230
  },
2222
2231
  supplier: {
2223
2232
  label: "Supplier Management",
2224
- subject: m.inventory_supplier,
2225
- actions: [f.manage]
2233
+ subject: B.inventory_supplier,
2234
+ actions: [f.manage],
2235
+ category: M.inventory
2226
2236
  },
2227
2237
  warehouse: {
2228
2238
  label: "Warehouse Management",
2229
- subject: m.inventory_warehouse,
2230
- actions: [f.manage]
2239
+ subject: B.inventory_warehouse,
2240
+ actions: [f.manage],
2241
+ category: M.inventory
2231
2242
  },
2232
2243
  publish: {
2233
2244
  label: "Publish Management",
2234
- subject: m.inventory_publish,
2235
- actions: [f.manage]
2245
+ subject: B.inventory_publish,
2246
+ actions: [f.manage],
2247
+ category: M.inventory
2236
2248
  },
2237
2249
  integration: {
2238
2250
  label: "Integration Management",
2239
- subject: m.inventory_integration,
2240
- actions: [f.manage]
2251
+ subject: B.inventory_integration,
2252
+ actions: [f.manage],
2253
+ category: M.inventory
2241
2254
  },
2242
2255
  orderDraft: {
2243
2256
  label: "Order Draft Management",
2244
- subject: m.inventory_orderDraft,
2245
- actions: [f.manage]
2257
+ subject: B.inventory_orderDraft,
2258
+ actions: [f.manage],
2259
+ category: M.inventory
2246
2260
  },
2247
2261
  unitCostHistory: {
2248
2262
  label: "Unit Cost History Management",
2249
- subject: m.inventory_unitCostHistory,
2250
- actions: [f.manage]
2263
+ subject: B.inventory_unitCostHistory,
2264
+ actions: [f.manage],
2265
+ category: M.inventory
2251
2266
  },
2252
2267
  stockAdjustment: {
2253
2268
  label: "Stock Adjustment Management",
2254
- subject: m.inventory_stock_adjustment,
2255
- actions: [f.manage]
2269
+ subject: B.inventory_stock_adjustment,
2270
+ actions: [f.manage],
2271
+ category: M.inventory
2256
2272
  },
2257
2273
  // CRM
2258
2274
  promotion: {
2259
2275
  label: "Promotion Management",
2260
- subject: m.crm_promotion,
2261
- actions: [f.manage]
2276
+ subject: B.crm_promotion,
2277
+ actions: [f.manage],
2278
+ category: M.crm
2262
2279
  },
2263
2280
  voucher: {
2264
2281
  label: "Voucher Management",
2265
- subject: m.crm_voucher,
2266
- actions: [f.manage]
2282
+ subject: B.crm_voucher,
2283
+ actions: [f.manage],
2284
+ category: M.crm
2267
2285
  },
2268
2286
  membership: {
2269
2287
  label: "Membership Management",
2270
- subject: m.crm_membership,
2271
- actions: [f.manage]
2288
+ subject: B.crm_membership,
2289
+ actions: [f.manage],
2290
+ category: M.crm
2272
2291
  },
2273
2292
  // HRM
2274
2293
  permission: {
2275
2294
  label: "Team Management",
2276
- subject: m.hrm_teamMember,
2277
- actions: [f.manage]
2278
- },
2279
- test: {
2280
- label: "Test management",
2281
- subject: m.hrm_teamMember_test,
2282
- actions: [f.manage]
2283
- },
2284
- test2: {
2285
- label: "Test2 management",
2286
- subject: m.hrm_teamMember_test2,
2287
- actions: [f.manage]
2288
- },
2289
- test3: {
2290
- label: "Test3 management",
2291
- subject: m.hrm_teamMember_test3,
2292
- actions: [f.manage]
2295
+ subject: B.hrm_teamMember,
2296
+ actions: [f.manage],
2297
+ category: M.hrm
2293
2298
  }
2294
- }, Zt = {
2295
- // General
2296
- menu: b.general,
2297
- restaurant: b.general,
2298
- // Inventory
2299
- stock: b.inventory,
2300
- wastageTemplate: b.inventory,
2301
- closingTemplate: b.inventory,
2302
- orderTemplate: b.inventory,
2303
- ingredient: b.inventory,
2304
- recipe: b.inventory,
2305
- unit: b.inventory,
2306
- supplier: b.inventory,
2307
- warehouse: b.inventory,
2308
- publish: b.inventory,
2309
- integration: b.inventory,
2310
- orderDraft: b.inventory,
2311
- unitCostHistory: b.inventory,
2312
- stockAdjustment: b.inventory,
2313
- // CRM
2314
- promotion: b.crm,
2315
- voucher: b.crm,
2316
- membership: b.crm,
2317
- // HRM
2318
- permission: b.hrm,
2319
- test: b.hrm,
2320
- test2: b.hrm,
2321
- test3: b.hrm
2322
2299
  }, _A = {
2323
- [`set_${m.inventory_orderDraft}`]: {
2324
- key: "sys:order_draft_access",
2325
- name: "Order Draft Access",
2326
- permissions: [
2327
- {
2328
- label: "Stock",
2329
- subject: m.inventory_stock,
2330
- actions: [f.read]
2331
- },
2332
- {
2333
- label: "Supplier",
2334
- subject: m.inventory_supplier,
2335
- actions: [f.read]
2336
- }
2337
- ]
2338
- },
2339
- [`set_${m.hrm_teamMember}`]: {
2300
+ [`set_${B.hrm_teamMember}`]: {
2340
2301
  key: "sys:team_member_access",
2341
2302
  name: "Team Member Access",
2342
- permissionSets: [
2343
- m.hrm_teamMember_test,
2344
- m.hrm_teamMember_test2,
2345
- m.hrm_teamMember_test3
2346
- ],
2347
2303
  permissions: [
2348
2304
  {
2349
2305
  label: "POS Role",
2350
- subject: m.hrm_employee_role,
2351
- actions: [f.read]
2352
- }
2353
- ]
2354
- },
2355
- [`set_${m.hrm_teamMember_test}`]: {
2356
- key: "sys:team_member_test_access",
2357
- name: "Team Member Test Access",
2358
- permissions: [
2359
- {
2360
- label: "Timesheet",
2361
- subject: m.hrm_employee_timesheet,
2362
- actions: [f.read]
2306
+ subject: B.hrm_employee_role,
2307
+ actions: [f.update]
2363
2308
  }
2364
2309
  ]
2365
2310
  }
2366
- }, zt = Object.values(
2311
+ }, Zt = Object.values(
2367
2312
  _A
2368
2313
  ).flatMap((e) => e.permissions ?? []).reduce(
2369
2314
  (e, o) => {
@@ -2375,7 +2320,7 @@ const b = {
2375
2320
  function $A(e) {
2376
2321
  return Ie[e] ?? e;
2377
2322
  }
2378
- function It(e) {
2323
+ function zt(e) {
2379
2324
  const o = Object.entries(Ie).find(([, n]) => n === e);
2380
2325
  return o ? o[0] : e;
2381
2326
  }
@@ -2385,7 +2330,7 @@ function et(e) {
2385
2330
  subject: $A(n.subject),
2386
2331
  reason: n.source !== void 0 ? JSON.stringify(n.source) : n.reason
2387
2332
  }));
2388
- return new LA(o);
2333
+ return new kA(o);
2389
2334
  }
2390
2335
  function At(e, o) {
2391
2336
  const n = et(o), t = e.find(
@@ -2472,7 +2417,7 @@ const rt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2472
2417
  }, mt = { class: "w-full h-full flex justify-center items-center" }, Bt = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, dt = { class: "w-[300px] h-[300px]" }, wt = ["src"], ft = { class: "text-2xl" }, bt = { class: "text-xl" }, Mt = /* @__PURE__ */ y({
2473
2418
  __name: "NoPermission",
2474
2419
  setup(e) {
2475
- const { t: o } = pe({
2420
+ const { t: o } = Ye({
2476
2421
  messages: {
2477
2422
  "en-US": nt,
2478
2423
  "zh-CN": ct,
@@ -2502,7 +2447,7 @@ const rt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2502
2447
  return re(async () => {
2503
2448
  const t = await st(n);
2504
2449
  o.value = t.canAccess;
2505
- }), (t, s) => o.value ? be(t.$slots, "default", { key: 1 }) : (O(), k(Mt, { key: 0 }));
2450
+ }), (t, s) => o.value ? be(t.$slots, "default", { key: 1 }) : (O(), L(Mt, { key: 0 }));
2506
2451
  }
2507
2452
  });
2508
2453
  function ne(e) {
@@ -2510,7 +2455,7 @@ function ne(e) {
2510
2455
  render: () => ue(Dt, {}, { default: () => ue(e) })
2511
2456
  };
2512
2457
  }
2513
- function pt(e, o) {
2458
+ function Yt(e, o) {
2514
2459
  const n = T({ top: 0, bottom: 0, left: 0, right: 0 });
2515
2460
  function t() {
2516
2461
  if (e.value) {
@@ -2533,10 +2478,10 @@ function pt(e, o) {
2533
2478
  window.removeEventListener("resize", t);
2534
2479
  }), n;
2535
2480
  }
2536
- const Yt = /* @__PURE__ */ y({
2481
+ const pt = /* @__PURE__ */ y({
2537
2482
  __name: "FullWrapper",
2538
2483
  setup(e) {
2539
- const o = $e(), n = T(null), t = pt(n), s = De(() => {
2484
+ const o = $e(), n = T(null), t = Yt(n), s = De(() => {
2540
2485
  var u;
2541
2486
  const l = o.isAtMost("sm") ? 56 : 0;
2542
2487
  return {
@@ -2556,10 +2501,10 @@ const Yt = /* @__PURE__ */ y({
2556
2501
  setup(e) {
2557
2502
  return (o, n) => {
2558
2503
  const t = ae("FmCircularProgress");
2559
- return O(), k(Yt, null, {
2560
- default: ke(() => [
2504
+ return O(), L(pt, null, {
2505
+ default: Le(() => [
2561
2506
  F("div", Ct, [
2562
- Le(t, { size: "xl" })
2507
+ ke(t, { size: "xl" })
2563
2508
  ])
2564
2509
  ]),
2565
2510
  _: 1
@@ -2580,11 +2525,11 @@ const ee = (e) => ({
2580
2525
  }
2581
2526
  ]
2582
2527
  }
2583
- }), ht = ne(H(() => import("./Main-CC9_bKTG.js"))), Vt = ne(H(() => import("./Main-BHF7vXlD.js"))), Et = ne(H(() => import("./AuditLogList-kZBi77lv.js"))), vt = H(() => import("./EmployeeList-Cg-mhdLv.js")), jt = H(() => import("./RoleList-D2NTVZa_.js")), xt = H(() => import("./TimesheetList-CksRCsTc.js")), Qt = H(() => import("./TeamMemberList-DC0Gxjin.js")), Xt = H(() => import("./PermissionSetList-C0FOYrQ6.js")), Nt = [
2528
+ }), Vt = ne(H(() => import("./Main-CXeHhGbn.js"))), ht = ne(H(() => import("./Main-rZNF_FTP.js"))), Et = ne(H(() => import("./AuditLogList-BzlfsxZe.js"))), vt = H(() => import("./EmployeeList-JwXcalmk.js")), jt = H(() => import("./RoleList-D1_HCRy4.js")), xt = H(() => import("./TimesheetList-B0ftNJBO.js")), Qt = H(() => import("./TeamMemberList-OfK7zSQC.js")), Xt = H(() => import("./PermissionSetList-DogGMqoY.js")), It = [
2584
2529
  {
2585
2530
  path: "/",
2586
2531
  name: "home",
2587
- component: ht,
2532
+ component: Vt,
2588
2533
  meta: ee(K.Subject.Business.hrm_teamMember),
2589
2534
  redirect: {
2590
2535
  name: "employee"
@@ -2617,7 +2562,7 @@ const ee = (e) => ({
2617
2562
  {
2618
2563
  path: "/team",
2619
2564
  name: "team",
2620
- component: Vt,
2565
+ component: ht,
2621
2566
  meta: ee(K.Subject.Business.hrm_teamMember),
2622
2567
  redirect: {
2623
2568
  name: "team-member"
@@ -2640,7 +2585,7 @@ const ee = (e) => ({
2640
2585
  __name: "Navigator",
2641
2586
  emits: ["close-navigation"],
2642
2587
  setup(e, { emit: o }) {
2643
- const n = o, { t } = pe(), s = AA(), a = De(() => {
2588
+ const n = o, { t } = Ye(), s = AA(), a = De(() => {
2644
2589
  const u = [];
2645
2590
  return u.push({
2646
2591
  label: t("hr.employee.title"),
@@ -2672,8 +2617,8 @@ const ee = (e) => ({
2672
2617
  }), u;
2673
2618
  }), l = T();
2674
2619
  return _e(() => {
2675
- var M;
2676
- let u = (M = s.currentRoute.value) == null ? void 0 : M.name;
2620
+ var b;
2621
+ let u = (b = s.currentRoute.value) == null ? void 0 : b.name;
2677
2622
  switch (u) {
2678
2623
  case E.EMPLOYEE:
2679
2624
  case E.ROLE:
@@ -2691,17 +2636,17 @@ const ee = (e) => ({
2691
2636
  u = E.EMPLOYEE;
2692
2637
  }
2693
2638
  l.value !== u && (l.value = u);
2694
- }), (u, M) => {
2695
- const p = ae("FmCollapsibleTabs");
2696
- return O(), k(p, {
2639
+ }), (u, b) => {
2640
+ const Y = ae("FmCollapsibleTabs");
2641
+ return O(), L(Y, {
2697
2642
  modelValue: l.value,
2698
- "onUpdate:modelValue": M[0] || (M[0] = (C) => l.value = C),
2643
+ "onUpdate:modelValue": b[0] || (b[0] = (C) => l.value = C),
2699
2644
  items: a.value,
2700
2645
  class: "py-16"
2701
2646
  }, null, 8, ["modelValue", "items"]);
2702
2647
  };
2703
2648
  }
2704
- }), Wt = /* @__PURE__ */ y({
2649
+ }), Nt = /* @__PURE__ */ y({
2705
2650
  __name: "App",
2706
2651
  setup(e) {
2707
2652
  const o = tA();
@@ -2709,10 +2654,10 @@ const ee = (e) => ({
2709
2654
  o.registerSidebarComponent(qt);
2710
2655
  }), (n, t) => {
2711
2656
  const s = ae("RouterView");
2712
- return O(), k(s);
2657
+ return O(), L(s);
2713
2658
  };
2714
2659
  }
2715
- }), Ut = () => {
2660
+ }), Wt = () => {
2716
2661
  const e = [jA, DA, uA], o = new Set(e.flatMap((n) => Object.keys(n)));
2717
2662
  return Array.from(o).reduce(
2718
2663
  (n, t) => {
@@ -2727,18 +2672,17 @@ const ee = (e) => ({
2727
2672
  };
2728
2673
  export {
2729
2674
  E as R,
2730
- Yt as _,
2731
- b as a,
2732
- $A as b,
2733
- xA as c,
2734
- Zt as d,
2735
- Wt as e,
2675
+ pt as _,
2676
+ xA as a,
2677
+ _A as b,
2678
+ Zt as c,
2679
+ Nt as d,
2736
2680
  QA as g,
2737
- Ut as i,
2738
- zt as l,
2739
- _A as m,
2740
- Ot as o,
2741
- K as p,
2742
- Nt as r,
2743
- It as s
2681
+ K as h,
2682
+ Wt as i,
2683
+ Ot as m,
2684
+ $A as o,
2685
+ M as p,
2686
+ It as r,
2687
+ zt as s
2744
2688
  };