@feedmepos/mf-hrm-portal 2.0.8-dev.5 → 2.0.8-dev.7

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 (25) hide show
  1. package/dist/{AuditLogList-ChmO_lsf.js → AuditLogList-DuTClC_6.js} +29 -29
  2. package/dist/{EmployeeList-B43c3tSt.js → EmployeeList-tfcWh61b.js} +5 -5
  3. package/dist/{Main-eEQq0uiP.js → Main-C5Tf5fIU.js} +6 -6
  4. package/dist/{Main-DKJWXUF1.js → Main-CORS-Htr.js} +9 -9
  5. package/dist/{Main--wV8uMFW.js → Main-CwaYKeof.js} +4 -4
  6. package/dist/{PermissionSetList-CA7dsUY5.js → PermissionSetList-uNxQq4Wv.js} +5 -5
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DLZyVi00.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D3ubK_X9.js} +412 -412
  8. package/dist/{RoleList-Nm7T5wl8.js → RoleList-B3_jQZJI.js} +7 -7
  9. package/dist/{TeamMemberList-BOcKTiHH.js → TeamMemberList-SSgf2vJC.js} +8 -8
  10. package/dist/{TimesheetList-CoaX44py.js → TimesheetList-DCkENccG.js} +7 -7
  11. package/dist/{app-CgPpZ0md.js → app-D3JldVcP.js} +597 -493
  12. package/dist/app.js +2 -2
  13. package/dist/{dayjs.min-DLZqYqC8.js → dayjs.min-BRNkTUIX.js} +1 -1
  14. package/dist/{employee-DQIeO3Ta.js → employee-DId_h-zM.js} +4 -4
  15. package/dist/{index-CxEFSIGE.js → index-3DzdZwQh.js} +1 -1
  16. package/dist/{index-D5bUBGCO.js → index-DvCydn2x.js} +18 -18
  17. package/dist/{iteration-Ceh9Zaed.js → iteration-1T1YEj2R.js} +1 -1
  18. package/dist/{lodash-MQv9R8bY.js → lodash-DRA73YM9.js} +1 -1
  19. package/dist/{team-DTdEqDL-.js → team-cNuAS8ny.js} +1 -1
  20. package/dist/{timesheet-Co0CE_kB.js → timesheet-Bav_2l31.js} +3 -3
  21. package/dist/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{useAppStore-CNGyVfbo.js → useAppStore-DQWPMJho.js} +1 -1
  23. package/dist/{useLoading-GdaFiYX1.js → useLoading-DqCwP3Zl.js} +1 -1
  24. package/dist/{useReportPermissions-Cm6b6zJE.js → useReportPermissions-EB8asCMx.js} +3 -3
  25. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { isRef as Bt, ref as T, shallowRef as bt, watchEffect as he, computed as ie, h as fe, defineComponent as N, createBlock as $, renderSlot as Ge, createCommentVNode as pt, unref as Z, openBlock as W, createElementBlock as Ve, createElementVNode as O, toDisplayString as we, watch as Me, nextTick as De, onMounted as je, onBeforeUnmount as ft, normalizeStyle as wt, resolveComponent as le, withCtx as Mt, createVNode as Dt, defineAsyncComponent as yt } from "vue";
1
+ import { isRef as Bt, ref as T, shallowRef as bt, watchEffect as he, computed as ie, h as fe, defineComponent as N, createBlock as $, renderSlot as Ge, createCommentVNode as pt, unref as Z, openBlock as W, createElementBlock as je, createElementVNode as O, toDisplayString as we, watch as Me, nextTick as De, onMounted as Ve, onBeforeUnmount as ft, normalizeStyle as wt, resolveComponent as le, withCtx as Mt, createVNode as Dt, defineAsyncComponent as yt } from "vue";
2
2
  import { useBreakpoints as vt } from "@feedmepos/ui-library";
3
3
  import { useRoute as Ct, useRouter as Yt } from "vue-router";
4
4
  import { useCoreStore as ue, useI18n as Ee } from "@feedmepos/mf-common";
@@ -147,12 +147,12 @@ const xe = {
147
147
  requestPath: "เส้นทางร้องขอ",
148
148
  requestBody: "เนื้อหาคำขอ"
149
149
  }
150
- }, Vt = {
150
+ }, jt = {
151
151
  auditLog: qe
152
- }, jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152
+ }, Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
153
153
  __proto__: null,
154
154
  auditLog: qe,
155
- default: Vt
155
+ default: jt
156
156
  }, Symbol.toStringTag, { value: "Module" })), Qe = {
157
157
  title: "审计日志",
158
158
  dateRange: {
@@ -308,9 +308,9 @@ const xe = {
308
308
  }, Symbol.toStringTag, { value: "Module" })), Xt = {
309
309
  "en-US": Gt,
310
310
  "zh-CN": xt,
311
- "th-TH": jt,
311
+ "th-TH": Vt,
312
312
  "zh-Hant": Qt
313
- }, He = {
313
+ }, Pe = {
314
314
  employee: {
315
315
  title: "Employee",
316
316
  exportButtonLabel: "Export",
@@ -463,13 +463,13 @@ const xe = {
463
463
  placeholder: "Search restaurant"
464
464
  }
465
465
  }
466
- }, Ht = {
467
- hr: He
468
- }, Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
466
+ }, Pt = {
467
+ hr: Pe
468
+ }, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
469
  __proto__: null,
470
- default: Ht,
471
- hr: He
472
- }, Symbol.toStringTag, { value: "Module" })), Pe = {
470
+ default: Pt,
471
+ hr: Pe
472
+ }, Symbol.toStringTag, { value: "Module" })), He = {
473
473
  employee: {
474
474
  title: "พนักงาน",
475
475
  exportButtonLabel: "ส่งออก",
@@ -622,11 +622,11 @@ const xe = {
622
622
  }
623
623
  }
624
624
  }, Ft = {
625
- hr: Pe
625
+ hr: He
626
626
  }, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
627
627
  __proto__: null,
628
628
  default: Ft,
629
- hr: Pe
629
+ hr: He
630
630
  }, Symbol.toStringTag, { value: "Module" })), Fe = {
631
631
  employee: {
632
632
  title: "员工",
@@ -941,7 +941,7 @@ const xe = {
941
941
  default: zt,
942
942
  hr: Oe
943
943
  }, Symbol.toStringTag, { value: "Module" })), Wt = {
944
- "en-US": Pt,
944
+ "en-US": Ht,
945
945
  "zh-CN": It,
946
946
  "th-TH": Ot,
947
947
  "zh-Hant": Nt
@@ -1769,51 +1769,51 @@ function is(e) {
1769
1769
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1770
1770
  }
1771
1771
  var Se = { exports: {} };
1772
- (function(e, o) {
1772
+ (function(e, c) {
1773
1773
  (function(i, a) {
1774
1774
  e.exports = a();
1775
1775
  })(cs, function() {
1776
1776
  return function(i) {
1777
1777
  var a = {};
1778
- function r(n) {
1779
- if (a[n]) return a[n].exports;
1780
- var u = a[n] = { i: n, l: !1, exports: {} };
1781
- return i[n].call(u.exports, u, u.exports, r), u.l = !0, u.exports;
1778
+ function r(o) {
1779
+ if (a[o]) return a[o].exports;
1780
+ var u = a[o] = { i: o, l: !1, exports: {} };
1781
+ return i[o].call(u.exports, u, u.exports, r), u.l = !0, u.exports;
1782
1782
  }
1783
- return r.m = i, r.c = a, r.d = function(n, u, m) {
1784
- r.o(n, u) || Object.defineProperty(n, u, { enumerable: !0, get: m });
1785
- }, r.r = function(n) {
1786
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 });
1787
- }, r.t = function(n, u) {
1788
- if (1 & u && (n = r(n)), 8 & u || 4 & u && typeof n == "object" && n && n.__esModule) return n;
1789
- var m = /* @__PURE__ */ Object.create(null);
1790
- if (r.r(m), Object.defineProperty(m, "default", { enumerable: !0, value: n }), 2 & u && typeof n != "string")
1791
- for (var f in n)
1783
+ return r.m = i, r.c = a, r.d = function(o, u, d) {
1784
+ r.o(o, u) || Object.defineProperty(o, u, { enumerable: !0, get: d });
1785
+ }, r.r = function(o) {
1786
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(o, "__esModule", { value: !0 });
1787
+ }, r.t = function(o, u) {
1788
+ if (1 & u && (o = r(o)), 8 & u || 4 & u && typeof o == "object" && o && o.__esModule) return o;
1789
+ var d = /* @__PURE__ */ Object.create(null);
1790
+ if (r.r(d), Object.defineProperty(d, "default", { enumerable: !0, value: o }), 2 & u && typeof o != "string")
1791
+ for (var f in o)
1792
1792
  r.d(
1793
- m,
1793
+ d,
1794
1794
  f,
1795
1795
  (function(y) {
1796
- return n[y];
1796
+ return o[y];
1797
1797
  }).bind(null, f)
1798
1798
  );
1799
- return m;
1800
- }, r.n = function(n) {
1801
- var u = n && n.__esModule ? function() {
1802
- return n.default;
1799
+ return d;
1800
+ }, r.n = function(o) {
1801
+ var u = o && o.__esModule ? function() {
1802
+ return o.default;
1803
1803
  } : function() {
1804
- return n;
1804
+ return o;
1805
1805
  };
1806
1806
  return r.d(u, "a", u), u;
1807
- }, r.o = function(n, u) {
1808
- return Object.prototype.hasOwnProperty.call(n, u);
1807
+ }, r.o = function(o, u) {
1808
+ return Object.prototype.hasOwnProperty.call(o, u);
1809
1809
  }, r.p = "", r(r.s = 0);
1810
1810
  }([
1811
1811
  function(i, a, r) {
1812
1812
  i.exports = r(1);
1813
1813
  },
1814
1814
  function(i, a, r) {
1815
- function n(s) {
1816
- return (n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
1815
+ function o(s) {
1816
+ return (o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
1817
1817
  return typeof A;
1818
1818
  } : function(A) {
1819
1819
  return A && typeof Symbol == "function" && A.constructor === Symbol && A !== Symbol.prototype ? "symbol" : typeof A;
@@ -1832,30 +1832,30 @@ var Se = { exports: {} };
1832
1832
  }), r.d(a, "comparable", function() {
1833
1833
  return te;
1834
1834
  });
1835
- var m = u("Array"), f = u("Object"), y = u("Function");
1835
+ var d = u("Array"), f = u("Object"), y = u("Function");
1836
1836
  function M(s, A) {
1837
1837
  return y(s.get) ? s.get(A) : s[A];
1838
1838
  }
1839
1839
  function v(s) {
1840
1840
  return function(A, l) {
1841
- if (!m(l) || !l.length) return s(A, l);
1842
- for (var g = 0, d = l.length; g < d; g++)
1843
- if (s(A, M(l, g))) return !0;
1841
+ if (!d(l) || !l.length) return s(A, l);
1842
+ for (var m = 0, B = l.length; m < B; m++)
1843
+ if (s(A, M(l, m))) return !0;
1844
1844
  return !1;
1845
1845
  };
1846
1846
  }
1847
1847
  function F(s) {
1848
1848
  return function(A, l) {
1849
- if (!m(l) || !l.length) return s(A, l);
1850
- for (var g = 0, d = l.length; g < d; g++)
1851
- if (!s(A, M(l, g))) return !1;
1849
+ if (!d(l) || !l.length) return s(A, l);
1850
+ for (var m = 0, B = l.length; m < B; m++)
1851
+ if (!s(A, M(l, m))) return !1;
1852
1852
  return !0;
1853
1853
  };
1854
1854
  }
1855
- function Y(s, A, l, g) {
1856
- return s.validate(s.options, A, l, g);
1855
+ function Y(s, A, l, m) {
1856
+ return s.validate(s.options, A, l, m);
1857
1857
  }
1858
- var j = {
1858
+ var V = {
1859
1859
  $eq: v(function(s, A) {
1860
1860
  return s(A);
1861
1861
  }),
@@ -1883,94 +1883,94 @@ var Se = { exports: {} };
1883
1883
  $nin: function(s, A) {
1884
1884
  return s(A);
1885
1885
  },
1886
- $not: function(s, A, l, g) {
1887
- return s(A, l, g);
1886
+ $not: function(s, A, l, m) {
1887
+ return s(A, l, m);
1888
1888
  },
1889
1889
  $type: function(s, A) {
1890
1890
  return s(A);
1891
1891
  },
1892
- $all: function(s, A, l, g) {
1893
- return j.$and(s, A, l, g);
1892
+ $all: function(s, A, l, m) {
1893
+ return V.$and(s, A, l, m);
1894
1894
  },
1895
1895
  $size: function(s, A) {
1896
1896
  return !!A && s === A.length;
1897
1897
  },
1898
- $or: function(s, A, l, g) {
1899
- for (var d = 0, p = s.length; d < p; d++)
1900
- if (Y(M(s, d), A, l, g)) return !0;
1898
+ $or: function(s, A, l, m) {
1899
+ for (var B = 0, p = s.length; B < p; B++)
1900
+ if (Y(M(s, B), A, l, m)) return !0;
1901
1901
  return !1;
1902
1902
  },
1903
- $nor: function(s, A, l, g) {
1904
- return !j.$or(s, A, l, g);
1903
+ $nor: function(s, A, l, m) {
1904
+ return !V.$or(s, A, l, m);
1905
1905
  },
1906
- $and: function(s, A, l, g) {
1907
- for (var d = 0, p = s.length; d < p; d++)
1908
- if (!Y(M(s, d), A, l, g)) return !1;
1906
+ $and: function(s, A, l, m) {
1907
+ for (var B = 0, p = s.length; B < p; B++)
1908
+ if (!Y(M(s, B), A, l, m)) return !1;
1909
1909
  return !0;
1910
1910
  },
1911
1911
  $regex: v(function(s, A) {
1912
1912
  return typeof A == "string" && s.test(A);
1913
1913
  }),
1914
- $where: function(s, A, l, g) {
1915
- return s.call(A, A, l, g);
1914
+ $where: function(s, A, l, m) {
1915
+ return s.call(A, A, l, m);
1916
1916
  },
1917
- $elemMatch: function(s, A, l, g) {
1918
- return m(A) ? !!~function(d, p) {
1919
- for (var w = 0; w < d.length; w++)
1920
- if (M(d, w), Y(p, M(d, w))) return w;
1917
+ $elemMatch: function(s, A, l, m) {
1918
+ return d(A) ? !!~function(B, p) {
1919
+ for (var w = 0; w < B.length; w++)
1920
+ if (M(B, w), Y(p, M(B, w))) return w;
1921
1921
  return -1;
1922
- }(A, s) : Y(s, A, l, g);
1922
+ }(A, s) : Y(s, A, l, m);
1923
1923
  },
1924
- $exists: function(s, A, l, g) {
1925
- return g.hasOwnProperty(l) === s;
1924
+ $exists: function(s, A, l, m) {
1925
+ return m.hasOwnProperty(l) === s;
1926
1926
  }
1927
1927
  }, q = {
1928
1928
  $eq: function(s, A, l) {
1929
- var g = l.comparable, d = l.compare;
1929
+ var m = l.comparable, B = l.compare;
1930
1930
  return s instanceof RegExp ? v(function(p) {
1931
1931
  return typeof p == "string" && s.test(p);
1932
- }) : s instanceof Function ? v(s) : m(s) && !s.length ? v(function(p) {
1933
- return m(p) && !p.length;
1932
+ }) : s instanceof Function ? v(s) : d(s) && !s.length ? v(function(p) {
1933
+ return d(p) && !p.length;
1934
1934
  }) : v(
1935
1935
  s === null ? function(p) {
1936
1936
  return p == null;
1937
1937
  } : function(p) {
1938
- return d(g(p), g(s)) === 0;
1938
+ return B(m(p), m(s)) === 0;
1939
1939
  }
1940
1940
  );
1941
1941
  },
1942
1942
  $gt: function(s, A, l) {
1943
- var g = l.comparable, d = l.compare;
1943
+ var m = l.comparable, B = l.compare;
1944
1944
  return function(p) {
1945
- return d(g(p), g(s)) > 0;
1945
+ return B(m(p), m(s)) > 0;
1946
1946
  };
1947
1947
  },
1948
1948
  $gte: function(s, A, l) {
1949
- var g = l.comparable, d = l.compare;
1949
+ var m = l.comparable, B = l.compare;
1950
1950
  return function(p) {
1951
- return d(g(p), g(s)) >= 0;
1951
+ return B(m(p), m(s)) >= 0;
1952
1952
  };
1953
1953
  },
1954
1954
  $lt: function(s, A, l) {
1955
- var g = l.comparable, d = l.compare;
1955
+ var m = l.comparable, B = l.compare;
1956
1956
  return function(p) {
1957
- return d(g(p), g(s)) < 0;
1957
+ return B(m(p), m(s)) < 0;
1958
1958
  };
1959
1959
  },
1960
1960
  $lte: function(s, A, l) {
1961
- var g = l.comparable, d = l.compare;
1961
+ var m = l.comparable, B = l.compare;
1962
1962
  return function(p) {
1963
- return d(g(p), g(s)) <= 0;
1963
+ return B(m(p), m(s)) <= 0;
1964
1964
  };
1965
1965
  },
1966
1966
  $in: function(s, A, l) {
1967
- var g = l.comparable;
1968
- return function(d) {
1969
- if (!(d instanceof Array)) {
1970
- var p = g(d);
1971
- if (p === d && n(d) === "object") {
1967
+ var m = l.comparable;
1968
+ return function(B) {
1969
+ if (!(B instanceof Array)) {
1970
+ var p = m(B);
1971
+ if (p === B && o(B) === "object") {
1972
1972
  for (D = s.length; D--; )
1973
- if (String(s[D]) === String(d) && String(d) !== "[object Object]")
1973
+ if (String(s[D]) === String(B) && String(B) !== "[object Object]")
1974
1974
  return !0;
1975
1975
  }
1976
1976
  if (p === void 0) {
@@ -1983,15 +1983,15 @@ var Se = { exports: {} };
1983
1983
  }
1984
1984
  return !!~s.indexOf(p);
1985
1985
  }
1986
- for (var D = d.length; D--; )
1987
- if (~s.indexOf(g(M(d, D)))) return !0;
1986
+ for (var D = B.length; D--; )
1987
+ if (~s.indexOf(m(M(B, D)))) return !0;
1988
1988
  return !1;
1989
1989
  };
1990
1990
  },
1991
1991
  $nin: function(s, A, l) {
1992
- var g = q.$in(s, A, l);
1993
- return function(d, p, w, D) {
1994
- return !g(d, p, w, D);
1992
+ var m = q.$in(s, A, l);
1993
+ return function(B, p, w, D) {
1994
+ return !m(B, p, w, D);
1995
1995
  };
1996
1996
  },
1997
1997
  $mod: function(s) {
@@ -2000,9 +2000,9 @@ var Se = { exports: {} };
2000
2000
  };
2001
2001
  },
2002
2002
  $ne: function(s, A, l) {
2003
- var g = q.$eq(s, A, l);
2004
- return F(function(d, p, w, D) {
2005
- return !g(d, p, w, D);
2003
+ var m = q.$eq(s, A, l);
2004
+ return F(function(B, p, w, D) {
2005
+ return !m(B, p, w, D);
2006
2006
  });
2007
2007
  },
2008
2008
  $and: function(s, A, l) {
@@ -2018,13 +2018,13 @@ var Se = { exports: {} };
2018
2018
  return s.map(I(l));
2019
2019
  },
2020
2020
  $not: function(s, A, l) {
2021
- var g = I(l)(s);
2022
- return function(d, p, w) {
2023
- return !Y(g, d, p, w);
2021
+ var m = I(l)(s);
2022
+ return function(B, p, w) {
2023
+ return !Y(m, B, p, w);
2024
2024
  };
2025
2025
  },
2026
2026
  $type: function(s) {
2027
- return function(A, l, g) {
2027
+ return function(A, l, m) {
2028
2028
  return A != null && (A instanceof s || A.constructor == s);
2029
2029
  };
2030
2030
  },
@@ -2044,43 +2044,43 @@ var Se = { exports: {} };
2044
2044
  return !!s;
2045
2045
  }
2046
2046
  };
2047
- function H(s, A) {
2047
+ function P(s, A) {
2048
2048
  return { options: s, validate: A };
2049
2049
  }
2050
2050
  function lt(s, A) {
2051
- var l = s.keyPath, g = s.child, d = s.query, p = [];
2052
- if (function be(P, U, R, mt, se) {
2053
- if (R === U.length || P == null)
2054
- return void se.push([P, U[R - 1], mt]);
2051
+ var l = s.keyPath, m = s.child, B = s.query, p = [];
2052
+ if (function be(H, U, R, mt, se) {
2053
+ if (R === U.length || H == null)
2054
+ return void se.push([H, U[R - 1], mt]);
2055
2055
  var pe = M(U, R);
2056
- if (m(P) && isNaN(Number(pe)))
2057
- for (var ae = 0, dt = P.length; ae < dt; ae++) be(M(P, ae), U, R, P, se);
2058
- else be(M(P, pe), U, R + 1, P, se);
2056
+ if (d(H) && isNaN(Number(pe)))
2057
+ for (var ae = 0, dt = H.length; ae < dt; ae++) be(M(H, ae), U, R, H, se);
2058
+ else be(M(H, pe), U, R + 1, H, se);
2059
2059
  }(A, l, 0, A, p), p.length === 1) {
2060
2060
  var w = p[0];
2061
- return Y(g, w[0], w[1], w[2]);
2061
+ return Y(m, w[0], w[1], w[2]);
2062
2062
  }
2063
- for (var D = d && d.$ne !== void 0, h = D, E = 0; E < p.length; E++) {
2064
- var Q = p[E], J = Y(g, Q[0], Q[1], Q[2]);
2063
+ for (var D = B && B.$ne !== void 0, h = D, E = 0; E < p.length; E++) {
2064
+ var Q = p[E], J = Y(m, Q[0], Q[1], Q[2]);
2065
2065
  D ? h &= J : h |= J;
2066
2066
  }
2067
2067
  return h;
2068
2068
  }
2069
2069
  function ut(s, A, l) {
2070
- return H({ keyPath: s, child: A, query: l }, lt);
2070
+ return P({ keyPath: s, child: A, query: l }, lt);
2071
2071
  }
2072
2072
  function I(s) {
2073
- var A = s.comparable, l = s.expressions, g = function(w) {
2073
+ var A = s.comparable, l = s.expressions, m = function(w) {
2074
2074
  var D;
2075
2075
  return (!w || !(D = w) || D.constructor !== Object && D.constructor !== Array && D.constructor.toString() !== "function Object() { [native code] }" && D.constructor.toString() !== "function Array() { [native code] }" || D.toJSON) && (w = { $eq: w }), w;
2076
- }, d = function(w) {
2076
+ }, B = function(w) {
2077
2077
  w = A(w);
2078
2078
  var D = [];
2079
2079
  for (var h in w) {
2080
2080
  var E = w[h];
2081
2081
  if (h !== "$options") {
2082
- var Q = j[h] || s && l && l[h];
2083
- if (Q) q[h] && (E = q[h](E, w, s)), D.push(H(A(E), Q));
2082
+ var Q = V[h] || s && l && l[h];
2083
+ if (Q) q[h] && (E = q[h](E, w, s)), D.push(P(A(E), Q));
2084
2084
  else {
2085
2085
  if (h.charCodeAt(0) === 36)
2086
2086
  throw new Error("Unknown operation " + h);
@@ -2089,16 +2089,16 @@ var Se = { exports: {} };
2089
2089
  }
2090
2090
  }
2091
2091
  }
2092
- return D.length === 1 ? D[0] : H(D, j.$and);
2092
+ return D.length === 1 ? D[0] : P(D, V.$and);
2093
2093
  }, p = function(w) {
2094
- return w = g(w), function D(h, E) {
2094
+ return w = m(w), function D(h, E) {
2095
2095
  if (!f(h)) return E;
2096
2096
  for (var Q in h) E.push(Q), D(h[Q], E);
2097
2097
  return E;
2098
- }(w, []).join(",").search(/[$.]/) === -1 ? H(w, K) : d(w);
2098
+ }(w, []).join(",").search(/[$.]/) === -1 ? P(w, K) : B(w);
2099
2099
  };
2100
2100
  return function(w) {
2101
- return d(g(w));
2101
+ return B(m(w));
2102
2102
  };
2103
2103
  }
2104
2104
  function K(s, A) {
@@ -2109,10 +2109,10 @@ var Se = { exports: {} };
2109
2109
  for (var l in s) if (!K(s[l], A[l])) return !1;
2110
2110
  return !0;
2111
2111
  }
2112
- if (m(s)) {
2112
+ if (d(s)) {
2113
2113
  if (s.length !== A.length) return !1;
2114
- for (var g = 0, d = s.length; g < d; g++)
2115
- if (!K(s[g], A[g])) return !1;
2114
+ for (var m = 0, B = s.length; m < B; m++)
2115
+ if (!K(s[m], A[m])) return !1;
2116
2116
  return !0;
2117
2117
  }
2118
2118
  return s === A;
@@ -2121,26 +2121,26 @@ var Se = { exports: {} };
2121
2121
  var l = I(A)(s);
2122
2122
  return A && A.select && (l = {
2123
2123
  options: l,
2124
- validate: function(g, d, p, w) {
2125
- return Y(g, d && A.select(d), p, w);
2124
+ validate: function(m, B, p, w) {
2125
+ return Y(m, B && A.select(B), p, w);
2126
2126
  }
2127
2127
  }), l;
2128
2128
  }
2129
2129
  function gt(s, A) {
2130
2130
  var l = de(s, A = Object.assign({ compare: Be, comparable: te }, A));
2131
- return function(g, d, p) {
2132
- return Y(l, g, d, p);
2131
+ return function(m, B, p) {
2132
+ return Y(l, m, B, p);
2133
2133
  };
2134
2134
  }
2135
2135
  function Be(s, A) {
2136
2136
  if (K(s, A)) return 0;
2137
- if (n(s) === n(A)) {
2137
+ if (o(s) === o(A)) {
2138
2138
  if (s > A) return 1;
2139
2139
  if (s < A) return -1;
2140
2140
  }
2141
2141
  }
2142
2142
  function te(s) {
2143
- return s instanceof Date ? s.getTime() : m(s) ? s.map(te) : s && typeof s.toJSON == "function" ? s.toJSON() : s;
2143
+ return s instanceof Date ? s.getTime() : d(s) ? s.map(te) : s && typeof s.toJSON == "function" ? s.toJSON() : s;
2144
2144
  }
2145
2145
  }
2146
2146
  ]);
@@ -2148,27 +2148,27 @@ var Se = { exports: {} };
2148
2148
  })(Se);
2149
2149
  var ls = Se.exports;
2150
2150
  const us = /* @__PURE__ */ is(ls);
2151
- function gs(e, o) {
2152
- for (var i = 0; i < o.length; i++) {
2153
- var a = o[i];
2151
+ function gs(e, c) {
2152
+ for (var i = 0; i < c.length; i++) {
2153
+ var a = c[i];
2154
2154
  a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
2155
2155
  }
2156
2156
  }
2157
- function ms(e, o, i) {
2158
- return o && gs(e.prototype, o), e;
2157
+ function ms(e, c, i) {
2158
+ return c && gs(e.prototype, c), e;
2159
2159
  }
2160
- function ds(e, o) {
2161
- e.prototype = Object.create(o.prototype), e.prototype.constructor = e, e.__proto__ = o;
2160
+ function ds(e, c) {
2161
+ e.prototype = Object.create(c.prototype), e.prototype.constructor = e, e.__proto__ = c;
2162
2162
  }
2163
2163
  function Ae(e) {
2164
2164
  return Ae = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
2165
2165
  return i.__proto__ || Object.getPrototypeOf(i);
2166
2166
  }, Ae(e);
2167
2167
  }
2168
- function _(e, o) {
2168
+ function _(e, c) {
2169
2169
  return _ = Object.setPrototypeOf || function(a, r) {
2170
2170
  return a.__proto__ = r, a;
2171
- }, _(e, o);
2171
+ }, _(e, c);
2172
2172
  }
2173
2173
  function Bs() {
2174
2174
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -2180,11 +2180,11 @@ function Bs() {
2180
2180
  return !1;
2181
2181
  }
2182
2182
  }
2183
- function L(e, o, i) {
2184
- return Bs() ? L = Reflect.construct : L = function(r, n, u) {
2185
- var m = [null];
2186
- m.push.apply(m, n);
2187
- var f = Function.bind.apply(r, m), y = new f();
2183
+ function L(e, c, i) {
2184
+ return Bs() ? L = Reflect.construct : L = function(r, o, u) {
2185
+ var d = [null];
2186
+ d.push.apply(d, o);
2187
+ var f = Function.bind.apply(r, d), y = new f();
2188
2188
  return u && _(y, u.prototype), y;
2189
2189
  }, L.apply(null, arguments);
2190
2190
  }
@@ -2192,14 +2192,14 @@ function bs(e) {
2192
2192
  return Function.toString.call(e).indexOf("[native code]") !== -1;
2193
2193
  }
2194
2194
  function ne(e) {
2195
- var o = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
2195
+ var c = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
2196
2196
  return ne = function(a) {
2197
2197
  if (a === null || !bs(a)) return a;
2198
2198
  if (typeof a != "function")
2199
2199
  throw new TypeError("Super expression must either be null or a function");
2200
- if (typeof o < "u") {
2201
- if (o.has(a)) return o.get(a);
2202
- o.set(a, r);
2200
+ if (typeof c < "u") {
2201
+ if (c.has(a)) return c.get(a);
2202
+ c.set(a, r);
2203
2203
  }
2204
2204
  function r() {
2205
2205
  return L(a, arguments, Ae(this).constructor);
@@ -2219,43 +2219,43 @@ function ye(e) {
2219
2219
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2220
2220
  return e;
2221
2221
  }
2222
- var _e = function(o) {
2223
- return 'Cannot execute "' + o.action + '" on "' + o.subjectName + '"';
2222
+ var _e = function(c) {
2223
+ return 'Cannot execute "' + c.action + '" on "' + c.subjectName + '"';
2224
2224
  }, k = _e, ps = /* @__PURE__ */ function(e) {
2225
- ds(o, e), o.setDefaultMessage = function(r) {
2225
+ ds(c, e), c.setDefaultMessage = function(r) {
2226
2226
  r === null ? k = _e : k = typeof r == "string" ? function() {
2227
2227
  return r;
2228
2228
  } : r;
2229
- }, o.from = function(r) {
2230
- var n = new this("");
2231
- return Object.defineProperty(n, "ability", {
2229
+ }, c.from = function(r) {
2230
+ var o = new this("");
2231
+ return Object.defineProperty(o, "ability", {
2232
2232
  value: r
2233
- }), n;
2233
+ }), o;
2234
2234
  };
2235
- function o(a, r) {
2236
- var n;
2237
- return r === void 0 && (r = {}), n = e.call(this, a) || this, n._setMetadata(r), n.message = a || k(ye(n)), n._customMessage = null, typeof Error.captureStackTrace == "function" && (n.name = n.constructor.name, Error.captureStackTrace(ye(n), n.constructor)), n;
2235
+ function c(a, r) {
2236
+ var o;
2237
+ return r === void 0 && (r = {}), o = e.call(this, a) || this, o._setMetadata(r), o.message = a || k(ye(o)), o._customMessage = null, typeof Error.captureStackTrace == "function" && (o.name = o.constructor.name, Error.captureStackTrace(ye(o), o.constructor)), o;
2238
2238
  }
2239
- var i = o.prototype;
2239
+ var i = c.prototype;
2240
2240
  return i.setMessage = function(r) {
2241
2241
  return this._customMessage = r, this;
2242
- }, i.throwUnlessCan = function(r, n, u) {
2242
+ }, i.throwUnlessCan = function(r, o, u) {
2243
2243
  if (!this.ability)
2244
2244
  throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
2245
- var m = this.ability.relevantRuleFor(r, n, u);
2246
- if (!(m && !m.inverted)) {
2245
+ var d = this.ability.relevantRuleFor(r, o, u);
2246
+ if (!(d && !d.inverted)) {
2247
2247
  this._setMetadata({
2248
2248
  action: r,
2249
- subject: n,
2249
+ subject: o,
2250
2250
  field: u,
2251
- subjectName: this.ability.subjectName(n)
2251
+ subjectName: this.ability.subjectName(o)
2252
2252
  });
2253
- var f = m ? m.reason : "";
2253
+ var f = d ? d.reason : "";
2254
2254
  throw this.message = this._customMessage || f || k(this), this;
2255
2255
  }
2256
2256
  }, i._setMetadata = function(r) {
2257
2257
  this.subject = r.subject, this.subjectName = r.subjectName, this.action = r.action, this.field = r.field;
2258
- }, o;
2258
+ }, c;
2259
2259
  }(ne(Error));
2260
2260
  function oe(e) {
2261
2261
  return Array.isArray(e) ? e : [e];
@@ -2263,24 +2263,24 @@ function oe(e) {
2263
2263
  function fs(e) {
2264
2264
  if (!e || typeof e == "string")
2265
2265
  return e;
2266
- var o = typeof e == "object" ? e.constructor : e;
2267
- return o.modelName || o.name;
2266
+ var c = typeof e == "object" ? e.constructor : e;
2267
+ return c.modelName || c.name;
2268
2268
  }
2269
2269
  function ws(e) {
2270
2270
  return JSON.parse(JSON.stringify(e));
2271
2271
  }
2272
2272
  var Ms = /[-/\\^$+?.()|[\]{}]/g, Ds = /\.?\*+\.?/g, ys = /\*+/, vs = /\./g;
2273
- function Cs(e, o, i) {
2274
- var a = i[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", r = e.indexOf("**") === -1 ? "[^.]" : ".", n = e.replace(vs, "\\$&").replace(ys, r + a);
2275
- return o + e.length === i.length ? "(?:" + n + ")?" : n;
2273
+ function Cs(e, c, i) {
2274
+ var a = i[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", r = e.indexOf("**") === -1 ? "[^.]" : ".", o = e.replace(vs, "\\$&").replace(ys, r + a);
2275
+ return c + e.length === i.length ? "(?:" + o + ")?" : o;
2276
2276
  }
2277
- function Ys(e, o, i) {
2278
- return e === "." && (i[o - 1] === "*" || i[o + 1] === "*") ? e : "\\" + e;
2277
+ function Ys(e, c, i) {
2278
+ return e === "." && (i[c - 1] === "*" || i[c + 1] === "*") ? e : "\\" + e;
2279
2279
  }
2280
2280
  function hs(e) {
2281
- var o = e.map(function(a) {
2281
+ var c = e.map(function(a) {
2282
2282
  return a.replace(Ms, Ys).replace(Ds, Cs);
2283
- }), i = o.length > 1 ? "(?:" + o.join("|") + ")" : o[0];
2283
+ }), i = c.length > 1 ? "(?:" + c.join("|") + ")" : c[0];
2284
2284
  return new RegExp("^" + i + "$");
2285
2285
  }
2286
2286
  var Gs = /* @__PURE__ */ function() {
@@ -2292,21 +2292,21 @@ var Gs = /* @__PURE__ */ function() {
2292
2292
  value: this.conditions ? us(this.conditions) : void 0
2293
2293
  }), this.reason = i.reason;
2294
2294
  }
2295
- var o = e.prototype;
2296
- return o.matches = function(a) {
2295
+ var c = e.prototype;
2296
+ return c.matches = function(a) {
2297
2297
  return this._matches ? typeof a == "string" ? !this.inverted : this._matches(a) : !0;
2298
- }, o.isRelevantFor = function(a, r) {
2298
+ }, c.isRelevantFor = function(a, r) {
2299
2299
  return this.fields ? r ? this.matchesField(r) : !this.inverted : !0;
2300
- }, o.matchesField = function(a) {
2300
+ }, c.matchesField = function(a) {
2301
2301
  return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : hs(this.fields)), this._fieldsPattern === null || a.indexOf("*") !== -1 ? this.fields.indexOf(a) !== -1 : this._fieldsPattern.test(a);
2302
2302
  }, e;
2303
2303
  }(), x = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), ve = {
2304
2304
  crud: ["create", "read", "update", "delete"]
2305
2305
  };
2306
- function Ce(e, o) {
2307
- return e === o || Array.isArray(o) && o.indexOf(e) !== -1;
2306
+ function Ce(e, c) {
2307
+ return e === c || Array.isArray(c) && c.indexOf(e) !== -1;
2308
2308
  }
2309
- var Vs = /* @__PURE__ */ function() {
2309
+ var js = /* @__PURE__ */ function() {
2310
2310
  e.addAlias = function(a, r) {
2311
2311
  if (a === "manage" || Ce("manage", r))
2312
2312
  throw new Error('Cannot add alias for "manage" action because it represents any action');
@@ -2327,8 +2327,8 @@ var Vs = /* @__PURE__ */ function() {
2327
2327
  aliases: ws(ve)
2328
2328
  }, this.update(i);
2329
2329
  }
2330
- var o = e.prototype;
2331
- return o.update = function(a) {
2330
+ var c = e.prototype;
2331
+ return c.update = function(a) {
2332
2332
  if (!Array.isArray(a))
2333
2333
  return this;
2334
2334
  var r = {
@@ -2336,75 +2336,75 @@ var Vs = /* @__PURE__ */ function() {
2336
2336
  ability: this
2337
2337
  };
2338
2338
  this.emit("update", r), this[x].originalRules = a.slice(0), this[x].mergedRules = /* @__PURE__ */ Object.create(null);
2339
- var n = this.buildIndexFor(a);
2340
- return this[x].indexedRules = n.rules, this[x].hasPerFieldRules = n.hasPerFieldRules, this.emit("updated", r), this;
2341
- }, o.buildIndexFor = function(a) {
2342
- for (var r = /* @__PURE__ */ Object.create(null), n = this[x].RuleType, u = !0, m = !1, f = 0; f < a.length; f++) {
2343
- var y = new n(a[f]), M = this.expandActions(y.actions), v = oe(y.subject), F = a.length - f - 1;
2344
- u = !!(u && y.inverted), !m && y.fields && (m = !0);
2339
+ var o = this.buildIndexFor(a);
2340
+ return this[x].indexedRules = o.rules, this[x].hasPerFieldRules = o.hasPerFieldRules, this.emit("updated", r), this;
2341
+ }, c.buildIndexFor = function(a) {
2342
+ for (var r = /* @__PURE__ */ Object.create(null), o = this[x].RuleType, u = !0, d = !1, f = 0; f < a.length; f++) {
2343
+ var y = new o(a[f]), M = this.expandActions(y.actions), v = oe(y.subject), F = a.length - f - 1;
2344
+ u = !!(u && y.inverted), !d && y.fields && (d = !0);
2345
2345
  for (var Y = 0; Y < v.length; Y++) {
2346
- var j = v[Y];
2347
- r[j] = r[j] || /* @__PURE__ */ Object.create(null);
2346
+ var V = v[Y];
2347
+ r[V] = r[V] || /* @__PURE__ */ Object.create(null);
2348
2348
  for (var q = 0; q < M.length; q++) {
2349
- var H = M[q];
2350
- r[j][H] = r[j][H] || /* @__PURE__ */ Object.create(null), r[j][H][F] = y;
2349
+ var P = M[q];
2350
+ r[V][P] = r[V][P] || /* @__PURE__ */ Object.create(null), r[V][P][F] = y;
2351
2351
  }
2352
2352
  }
2353
2353
  }
2354
2354
  return {
2355
2355
  isAllInverted: u,
2356
- hasPerFieldRules: m,
2356
+ hasPerFieldRules: d,
2357
2357
  rules: r
2358
2358
  };
2359
- }, o.expandActions = function(a) {
2360
- for (var r = this[x].aliases, n = oe(a), u = 0; u < n.length; ) {
2361
- var m = n[u++];
2362
- r.hasOwnProperty(m) && (n = n.concat(r[m]));
2359
+ }, c.expandActions = function(a) {
2360
+ for (var r = this[x].aliases, o = oe(a), u = 0; u < o.length; ) {
2361
+ var d = o[u++];
2362
+ r.hasOwnProperty(d) && (o = o.concat(r[d]));
2363
2363
  }
2364
- return n;
2365
- }, o.can = function(a, r, n) {
2366
- if (n && typeof n != "string")
2364
+ return o;
2365
+ }, c.can = function(a, r, o) {
2366
+ if (o && typeof o != "string")
2367
2367
  throw new Error("Ability.can expects 3rd parameter to be a string. See https://stalniy.github.io/casl/abilities/2017/07/21/check-abilities.html#checking-fields for details");
2368
- var u = this.relevantRuleFor(a, r, n);
2368
+ var u = this.relevantRuleFor(a, r, o);
2369
2369
  return !!u && !u.inverted;
2370
- }, o.relevantRuleFor = function(a, r, n) {
2371
- for (var u = this.rulesFor(a, r, n), m = 0; m < u.length; m++)
2372
- if (u[m].matches(r))
2373
- return u[m];
2370
+ }, c.relevantRuleFor = function(a, r, o) {
2371
+ for (var u = this.rulesFor(a, r, o), d = 0; d < u.length; d++)
2372
+ if (u[d].matches(r))
2373
+ return u[d];
2374
2374
  return null;
2375
- }, o.possibleRulesFor = function(a, r) {
2376
- var n = this.subjectName(r), u = this[x].mergedRules, m = n + "_" + a;
2377
- return u[m] || (u[m] = this.mergeRulesFor(a, n)), u[m];
2378
- }, o.mergeRulesFor = function(a, r) {
2379
- var n = this[x].indexedRules, u = [r, "all"].reduce(function(m, f) {
2380
- var y = n[f];
2381
- return y ? Object.assign(m, y[a], y.manage) : m;
2375
+ }, c.possibleRulesFor = function(a, r) {
2376
+ var o = this.subjectName(r), u = this[x].mergedRules, d = o + "_" + a;
2377
+ return u[d] || (u[d] = this.mergeRulesFor(a, o)), u[d];
2378
+ }, c.mergeRulesFor = function(a, r) {
2379
+ var o = this[x].indexedRules, u = [r, "all"].reduce(function(d, f) {
2380
+ var y = o[f];
2381
+ return y ? Object.assign(d, y[a], y.manage) : d;
2382
2382
  }, []);
2383
2383
  return u.filter(Boolean);
2384
- }, o.rulesFor = function(a, r, n) {
2384
+ }, c.rulesFor = function(a, r, o) {
2385
2385
  var u = this.possibleRulesFor(a, r);
2386
- return this[x].hasPerFieldRules ? u.filter(function(m) {
2387
- return m.isRelevantFor(r, n);
2386
+ return this[x].hasPerFieldRules ? u.filter(function(d) {
2387
+ return d.isRelevantFor(r, o);
2388
2388
  }) : u;
2389
- }, o.cannot = function() {
2389
+ }, c.cannot = function() {
2390
2390
  return !this.can.apply(this, arguments);
2391
- }, o.throwUnlessCan = function() {
2391
+ }, c.throwUnlessCan = function() {
2392
2392
  var a;
2393
2393
  console.warn(`
2394
2394
  Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
2395
2395
  Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
2396
2396
  `.trim()), (a = ps.from(this)).throwUnlessCan.apply(a, arguments);
2397
- }, o.on = function(a, r) {
2398
- var n = this[x].events, u = !0;
2399
- return n[a] || (n[a] = []), n[a].push(r), function() {
2397
+ }, c.on = function(a, r) {
2398
+ var o = this[x].events, u = !0;
2399
+ return o[a] || (o[a] = []), o[a].push(r), function() {
2400
2400
  if (u) {
2401
- var m = n[a].indexOf(r);
2402
- n[a].splice(m, 1), u = !1;
2401
+ var d = o[a].indexOf(r);
2402
+ o[a].splice(d, 1), u = !1;
2403
2403
  }
2404
2404
  };
2405
- }, o.emit = function(a, r) {
2406
- var n = this[x].events[a];
2407
- n && n.slice(0).forEach(function(u) {
2405
+ }, c.emit = function(a, r) {
2406
+ var o = this[x].events[a];
2407
+ o && o.slice(0).forEach(function(u) {
2408
2408
  return u(r);
2409
2409
  });
2410
2410
  }, ms(e, [{
@@ -2413,378 +2413,482 @@ var Vs = /* @__PURE__ */ function() {
2413
2413
  return this[x].originalRules;
2414
2414
  }
2415
2415
  }]), e;
2416
- }(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), c = /* @__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.crm_analytic = "business::crm::analytic", e.crm_broadcast = "business::crm::broadcast", e.crm_program = "business::crm::program", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_marketing = "business::crm::marketing", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.crm_queue = "business::crm::queue", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.restaurant = "business::restaurant", e.role = "business::role", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e))(c || {}), C = /* @__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))(C || {}), $e = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))($e || {});
2417
- const B = {
2416
+ }(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), n = /* @__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.crm_analytic = "business::crm::analytic", e.crm_broadcast = "business::crm::broadcast", e.crm_program = "business::crm::program", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_marketing = "business::crm::marketing", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.crm_queue = "business::crm::queue", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu_item = "business::menu::item", e.menu_catalog = "business::menu::catalog", e.menu_category = "business::menu::category", e.menu_subCategory = "business::menu::subCategory", e.menu_group = "business::menu::group", e.menu_takeaway = "business::menu::takeaway", e.menu_scheduler = "business::menu::scheduler", e.menu_variant = "business::menu::variant", e.menu_cookingGuide = "business::menu::cookingGuide", e.menu_printRoute = "business::menu::printRoute", e.menu_servingSequence = "business::menu::servingSequence", e.menu_settings = "business::menu::settings", e.menu_publish = "business::menu::publish", e.menu_menuManagement = "business::menu::menuManagement", e.menu_importExport = "business::menu::importExport", e.menu_unit = "business::menu::unit", e.menu_ingredient = "business::menu::ingredient", e.menu_recipe = "business::menu::recipe", e.restaurant = "business::restaurant", e.role = "business::role", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e))(n || {}), C = /* @__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))(C || {}), $e = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))($e || {});
2417
+ const g = {
2418
2418
  general: "General",
2419
2419
  inventory: "Inventory",
2420
2420
  hrm: "HRM",
2421
2421
  crm: "CRM",
2422
2422
  payment: "Payment",
2423
+ menu: "Menu",
2423
2424
  report: "Report",
2424
2425
  reports: "Default Report",
2425
2426
  customReports: "Custom Report"
2426
- }, js = "access-denied", S = {
2427
+ }, Vs = "access-denied", S = {
2427
2428
  Action: t,
2428
2429
  Subject: {
2429
- Business: c,
2430
+ Business: n,
2430
2431
  Restaurant: $e
2431
2432
  }
2432
2433
  }, et = {
2433
- [C.permission]: c.hrm_teamMember,
2434
- [C.promotion]: c.crm_promotion,
2435
- [C.voucher]: c.crm_voucher,
2436
- [C.membership]: c.crm_membership,
2437
- [C.stock]: c.inventory_stock,
2438
- [C.wastageTemplate]: c.inventory_wastageTemplate,
2439
- [C.closingTemplate]: c.inventory_closingTemplate,
2440
- [C.orderTemplate]: c.inventory_orderTemplate,
2441
- [C.ingredient]: c.inventory_ingredient,
2442
- [C.recipe]: c.inventory_recipe,
2443
- [C.unit]: c.inventory_unit,
2444
- [C.supplier]: c.inventory_supplier,
2445
- [C.warehouse]: c.inventory_warehouse,
2446
- [C.publish]: c.inventory_publish,
2447
- [C.integration]: c.inventory_integration,
2448
- [C.orderDraft]: c.inventory_orderDraftApproval,
2449
- [C.unitCostHistory]: c.inventory_unitCostHistory
2434
+ [C.permission]: n.hrm_teamMember,
2435
+ [C.promotion]: n.crm_promotion,
2436
+ [C.voucher]: n.crm_voucher,
2437
+ [C.membership]: n.crm_membership,
2438
+ [C.stock]: n.inventory_stock,
2439
+ [C.wastageTemplate]: n.inventory_wastageTemplate,
2440
+ [C.closingTemplate]: n.inventory_closingTemplate,
2441
+ [C.orderTemplate]: n.inventory_orderTemplate,
2442
+ [C.ingredient]: n.inventory_ingredient,
2443
+ [C.recipe]: n.inventory_recipe,
2444
+ [C.unit]: n.inventory_unit,
2445
+ [C.supplier]: n.inventory_supplier,
2446
+ [C.warehouse]: n.inventory_warehouse,
2447
+ [C.publish]: n.inventory_publish,
2448
+ [C.integration]: n.inventory_integration,
2449
+ [C.orderDraft]: n.inventory_orderDraftApproval,
2450
+ [C.unitCostHistory]: n.inventory_unitCostHistory
2450
2451
  };
2451
2452
  function Es(e) {
2452
2453
  return et[e] ?? e;
2453
2454
  }
2454
- function Ha(e) {
2455
- const o = Object.entries(et).find(([, i]) => i === e);
2456
- return o ? o[0] : e;
2455
+ function Pa(e) {
2456
+ const c = Object.entries(et).find(([, i]) => i === e);
2457
+ return c ? c[0] : e;
2457
2458
  }
2458
- const Pa = {
2459
+ const Ha = {
2459
2460
  // General
2460
2461
  restaurant: {
2461
2462
  label: "Restaurant Owner",
2462
- subject: c.restaurant,
2463
+ subject: n.restaurant,
2464
+ actions: [t.manage],
2465
+ category: g.general
2466
+ },
2467
+ // menu
2468
+ menuItem: {
2469
+ label: "Menu Items Management",
2470
+ subject: n.menu_item,
2471
+ actions: [t.manage],
2472
+ category: g.menu
2473
+ },
2474
+ menuCatalog: {
2475
+ label: "Menu Catalog Management",
2476
+ subject: n.menu_catalog,
2477
+ actions: [t.manage],
2478
+ category: g.menu
2479
+ },
2480
+ menuCategory: {
2481
+ label: "Menu Category Management",
2482
+ subject: n.menu_category,
2483
+ actions: [t.manage],
2484
+ category: g.menu
2485
+ },
2486
+ menuSubCategory: {
2487
+ label: "Menu Sub-category Management",
2488
+ subject: n.menu_subCategory,
2489
+ actions: [t.manage],
2490
+ category: g.menu
2491
+ },
2492
+ menuGroup: {
2493
+ label: "Menu Group Management",
2494
+ subject: n.menu_group,
2495
+ actions: [t.manage],
2496
+ category: g.menu
2497
+ },
2498
+ menuTakeaway: {
2499
+ label: "Menu Takeaway Management",
2500
+ subject: n.menu_takeaway,
2501
+ actions: [t.manage],
2502
+ category: g.menu
2503
+ },
2504
+ menuScheduler: {
2505
+ label: "Menu Scheduler Management",
2506
+ subject: n.menu_scheduler,
2507
+ actions: [t.manage],
2508
+ category: g.menu
2509
+ },
2510
+ menuVariant: {
2511
+ label: "Menu Variant Management",
2512
+ subject: n.menu_variant,
2513
+ actions: [t.manage],
2514
+ category: g.menu
2515
+ },
2516
+ menuCookingGuide: {
2517
+ label: "Menu Cooking Guide Management",
2518
+ subject: n.menu_cookingGuide,
2519
+ actions: [t.manage],
2520
+ category: g.menu
2521
+ },
2522
+ menuPrintRoute: {
2523
+ label: "Menu Print Route Management",
2524
+ subject: n.menu_printRoute,
2525
+ actions: [t.manage],
2526
+ category: g.menu
2527
+ },
2528
+ menuServingSequence: {
2529
+ label: "Menu Serving Sequence Management",
2530
+ subject: n.menu_servingSequence,
2531
+ actions: [t.manage],
2532
+ category: g.menu
2533
+ },
2534
+ menuUnit: {
2535
+ label: "Menu Unit Management",
2536
+ subject: n.menu_unit,
2537
+ actions: [t.manage],
2538
+ category: g.menu
2539
+ },
2540
+ menuIngredient: {
2541
+ label: "Menu Ingredient Management",
2542
+ subject: n.menu_ingredient,
2463
2543
  actions: [t.manage],
2464
- category: B.general
2544
+ category: g.menu
2465
2545
  },
2466
- menu: {
2546
+ menuRecipe: {
2547
+ label: "Menu Recipe Management",
2548
+ subject: n.menu_recipe,
2549
+ actions: [t.manage],
2550
+ category: g.menu
2551
+ },
2552
+ menuSettings: {
2553
+ label: "Menu Settings Management",
2554
+ subject: n.menu_settings,
2555
+ actions: [t.manage],
2556
+ category: g.menu
2557
+ },
2558
+ menuPublish: {
2559
+ label: "Menu Publish",
2560
+ subject: n.menu_publish,
2561
+ actions: [t.manage],
2562
+ category: g.menu
2563
+ },
2564
+ menuManagement: {
2467
2565
  label: "Menu Management",
2468
- subject: c.menu,
2566
+ subject: n.menu_menuManagement,
2469
2567
  actions: [t.manage],
2470
- category: B.general
2568
+ category: g.menu
2569
+ },
2570
+ menuImportExport: {
2571
+ label: "Menu Import/Export",
2572
+ subject: n.menu_importExport,
2573
+ actions: [t.manage],
2574
+ category: g.menu
2471
2575
  },
2472
2576
  // inventory
2473
2577
  stockBalance: {
2474
2578
  label: "Stock Balance Management",
2475
- subject: c.inventory_stockBalance,
2579
+ subject: n.inventory_stockBalance,
2476
2580
  actions: [t.manage],
2477
- category: B.inventory
2581
+ category: g.inventory
2478
2582
  },
2479
2583
  stockAdjustment: {
2480
2584
  label: "Stock Adjustment Management",
2481
- subject: c.inventory_stockAdjustment,
2585
+ subject: n.inventory_stockAdjustment,
2482
2586
  actions: [t.manage],
2483
- category: B.inventory
2587
+ category: g.inventory
2484
2588
  },
2485
2589
  unitCostHistory: {
2486
2590
  label: "Unit Cost History Management",
2487
- subject: c.inventory_unitCostHistory,
2591
+ subject: n.inventory_unitCostHistory,
2488
2592
  actions: [t.manage],
2489
- category: B.inventory
2593
+ category: g.inventory
2490
2594
  },
2491
2595
  wastageTemplate: {
2492
2596
  label: "Wastage Template Management",
2493
- subject: c.inventory_wastageTemplate,
2597
+ subject: n.inventory_wastageTemplate,
2494
2598
  actions: [t.manage],
2495
- category: B.inventory,
2599
+ category: g.inventory,
2496
2600
  showByFeatureFlag: "inventory_pos_adjust_v2_wastage"
2497
2601
  },
2498
2602
  closingHistory: {
2499
2603
  label: "Closing History Management",
2500
- subject: c.inventory_closingHistory,
2604
+ subject: n.inventory_closingHistory,
2501
2605
  actions: [t.manage],
2502
- category: B.inventory
2606
+ category: g.inventory
2503
2607
  },
2504
2608
  closingTemplate: {
2505
2609
  label: "Closing Template Management",
2506
- subject: c.inventory_closingTemplate,
2610
+ subject: n.inventory_closingTemplate,
2507
2611
  actions: [t.manage],
2508
- category: B.inventory,
2612
+ category: g.inventory,
2509
2613
  showByFeatureFlag: "inventory_pos_closing_v2"
2510
2614
  },
2511
2615
  closingDraft: {
2512
2616
  label: "Closing Draft Management",
2513
- subject: c.inventory_closingDraft,
2617
+ subject: n.inventory_closingDraft,
2514
2618
  actions: [t.manage],
2515
- category: B.inventory,
2619
+ category: g.inventory,
2516
2620
  showByFeatureFlag: "inventory_pos_closing_v2"
2517
2621
  },
2518
2622
  ingredient: {
2519
2623
  label: "Ingredient Management",
2520
- subject: c.inventory_ingredient,
2624
+ subject: n.inventory_ingredient,
2521
2625
  actions: [t.manage],
2522
- category: B.inventory
2626
+ category: g.inventory
2523
2627
  },
2524
2628
  ingredientGroup: {
2525
2629
  label: "Ingredient Group Management",
2526
- subject: c.inventory_ingredientGroup,
2630
+ subject: n.inventory_ingredientGroup,
2527
2631
  actions: [t.manage],
2528
2632
  showByFeatureFlag: "inventory_ingredient_group",
2529
- category: B.inventory
2633
+ category: g.inventory
2530
2634
  },
2531
2635
  recipe: {
2532
2636
  label: "Recipe Management",
2533
- subject: c.inventory_recipe,
2637
+ subject: n.inventory_recipe,
2534
2638
  actions: [t.manage],
2535
- category: B.inventory
2639
+ category: g.inventory
2536
2640
  },
2537
2641
  unit: {
2538
2642
  label: "Unit Management",
2539
- subject: c.inventory_unit,
2643
+ subject: n.inventory_unit,
2540
2644
  actions: [t.manage],
2541
- category: B.inventory
2645
+ category: g.inventory
2542
2646
  },
2543
2647
  purchaseTransfer: {
2544
2648
  label: "Purchase / Transfer Management",
2545
- subject: c.inventory_purchaseTransfer,
2649
+ subject: n.inventory_purchaseTransfer,
2546
2650
  actions: [t.manage],
2547
- category: B.inventory
2651
+ category: g.inventory
2548
2652
  },
2549
2653
  orderDraftApproval: {
2550
2654
  label: "Order Draft Approval",
2551
- subject: c.inventory_orderDraftApproval,
2655
+ subject: n.inventory_orderDraftApproval,
2552
2656
  actions: [t.manage],
2553
- category: B.inventory
2657
+ category: g.inventory
2554
2658
  },
2555
2659
  transferOut: {
2556
2660
  label: "Transfer Out Management",
2557
- subject: c.inventory_transferOut,
2661
+ subject: n.inventory_transferOut,
2558
2662
  actions: [t.manage],
2559
- category: B.inventory
2663
+ category: g.inventory
2560
2664
  },
2561
2665
  surcharge: {
2562
2666
  label: "Surcharge Management",
2563
- subject: c.inventory_surcharge,
2667
+ subject: n.inventory_surcharge,
2564
2668
  actions: [t.manage],
2565
2669
  showByFeatureFlag: "inventory_portal_surcharge",
2566
- category: B.inventory
2670
+ category: g.inventory
2567
2671
  },
2568
2672
  orderTemplate: {
2569
2673
  label: "Order Template Management",
2570
- subject: c.inventory_orderTemplate,
2674
+ subject: n.inventory_orderTemplate,
2571
2675
  actions: [t.manage],
2572
2676
  showByFeatureFlag: "inventory_portal_must_use_transfer_template",
2573
- category: B.inventory
2677
+ category: g.inventory
2574
2678
  },
2575
2679
  supplier: {
2576
2680
  label: "Supplier Management",
2577
- subject: c.inventory_supplier,
2681
+ subject: n.inventory_supplier,
2578
2682
  actions: [t.manage],
2579
- category: B.inventory
2683
+ category: g.inventory
2580
2684
  },
2581
2685
  warehouse: {
2582
2686
  label: "Warehouse Management",
2583
- subject: c.inventory_warehouse,
2687
+ subject: n.inventory_warehouse,
2584
2688
  actions: [t.manage],
2585
- category: B.inventory
2689
+ category: g.inventory
2586
2690
  },
2587
2691
  publish: {
2588
2692
  label: "Publish Management",
2589
- subject: c.inventory_publish,
2693
+ subject: n.inventory_publish,
2590
2694
  actions: [t.manage],
2591
- category: B.inventory
2695
+ category: g.inventory
2592
2696
  },
2593
2697
  import: {
2594
2698
  label: "Import Management",
2595
- subject: c.inventory_import,
2699
+ subject: n.inventory_import,
2596
2700
  actions: [t.manage],
2597
2701
  showByFeatureFlag: "inventory_bulk_import",
2598
- category: B.inventory
2702
+ category: g.inventory
2599
2703
  },
2600
2704
  integration: {
2601
2705
  label: "Integration Management",
2602
- subject: c.inventory_integration,
2706
+ subject: n.inventory_integration,
2603
2707
  actions: [t.manage],
2604
- category: B.inventory
2708
+ category: g.inventory
2605
2709
  },
2606
2710
  // CRM
2607
2711
  promotion: {
2608
2712
  label: "Promotion Management V1",
2609
- subject: c.crm_promotion,
2713
+ subject: n.crm_promotion,
2610
2714
  actions: [t.manage],
2611
- category: B.crm
2715
+ category: g.crm
2612
2716
  },
2613
2717
  voucher: {
2614
2718
  label: "Voucher Management V1",
2615
- subject: c.crm_voucher,
2719
+ subject: n.crm_voucher,
2616
2720
  actions: [t.manage],
2617
- category: B.crm
2721
+ category: g.crm
2618
2722
  },
2619
2723
  membership: {
2620
2724
  label: "Membership Management V1",
2621
- subject: c.crm_membership,
2725
+ subject: n.crm_membership,
2622
2726
  actions: [t.manage],
2623
- category: B.crm
2727
+ category: g.crm
2624
2728
  },
2625
2729
  analytic: {
2626
2730
  label: "Analytic Management",
2627
- subject: c.crm_analytic,
2731
+ subject: n.crm_analytic,
2628
2732
  actions: [t.manage],
2629
- category: B.crm
2733
+ category: g.crm
2630
2734
  },
2631
2735
  broadcast: {
2632
2736
  label: "Broadcast Management",
2633
- subject: c.crm_broadcast,
2737
+ subject: n.crm_broadcast,
2634
2738
  actions: [t.manage],
2635
- category: B.crm
2739
+ category: g.crm
2636
2740
  },
2637
2741
  program: {
2638
2742
  label: "Program Management",
2639
- subject: c.crm_program,
2743
+ subject: n.crm_program,
2640
2744
  actions: [t.manage],
2641
- category: B.crm
2745
+ category: g.crm
2642
2746
  },
2643
2747
  loyaltyMember: {
2644
2748
  label: "Loyalty Member Management",
2645
- subject: c.crm_loyaltyMember,
2749
+ subject: n.crm_loyaltyMember,
2646
2750
  actions: [t.manage],
2647
- category: B.crm
2751
+ category: g.crm
2648
2752
  },
2649
2753
  loyaltySegment: {
2650
2754
  label: "Loyalty Segment Management",
2651
- subject: c.crm_loyaltySegment,
2755
+ subject: n.crm_loyaltySegment,
2652
2756
  actions: [t.manage],
2653
- category: B.crm
2757
+ category: g.crm
2654
2758
  },
2655
2759
  loyaltyCard: {
2656
2760
  label: "Loyalty Card Management",
2657
- subject: c.crm_loyaltyCard,
2761
+ subject: n.crm_loyaltyCard,
2658
2762
  actions: [t.manage],
2659
- category: B.crm
2763
+ category: g.crm
2660
2764
  },
2661
2765
  referral: {
2662
2766
  label: "Referral Management",
2663
- subject: c.crm_referral,
2767
+ subject: n.crm_referral,
2664
2768
  actions: [t.manage],
2665
- category: B.crm
2769
+ category: g.crm
2666
2770
  },
2667
2771
  store: {
2668
2772
  label: "Store Management",
2669
- subject: c.crm_store,
2773
+ subject: n.crm_store,
2670
2774
  actions: [t.manage],
2671
- category: B.crm
2775
+ category: g.crm
2672
2776
  },
2673
2777
  transaction: {
2674
2778
  label: "Transaction Management",
2675
- subject: c.crm_transaction,
2779
+ subject: n.crm_transaction,
2676
2780
  actions: [t.manage],
2677
- category: B.crm
2781
+ category: g.crm
2678
2782
  },
2679
2783
  marketing: {
2680
2784
  label: "Marketing Management",
2681
- subject: c.crm_marketing,
2785
+ subject: n.crm_marketing,
2682
2786
  actions: [t.manage],
2683
- category: B.crm
2787
+ category: g.crm
2684
2788
  },
2685
2789
  setting: {
2686
2790
  label: "Setting Management",
2687
- subject: c.crm_setting,
2791
+ subject: n.crm_setting,
2688
2792
  actions: [t.manage],
2689
- category: B.crm
2793
+ category: g.crm
2690
2794
  },
2691
2795
  bin: {
2692
2796
  label: "Bin Management",
2693
- subject: c.crm_bin,
2797
+ subject: n.crm_bin,
2694
2798
  actions: [t.manage],
2695
- category: B.crm
2799
+ category: g.crm
2696
2800
  },
2697
2801
  queue: {
2698
2802
  label: "Queue Management",
2699
- subject: c.crm_queue,
2803
+ subject: n.crm_queue,
2700
2804
  actions: [t.manage],
2701
- category: B.crm
2805
+ category: g.crm
2702
2806
  },
2703
2807
  // Payment
2704
2808
  payoutAccount: {
2705
2809
  label: "Payout Account Management",
2706
- subject: c.payment_payoutAccount,
2810
+ subject: n.payment_payoutAccount,
2707
2811
  actions: [t.manage],
2708
- category: B.payment
2812
+ category: g.payment
2709
2813
  },
2710
2814
  paymentOnboarding: {
2711
2815
  label: "Payment Onboarding Management",
2712
- subject: c.payment_paymentOnboarding,
2816
+ subject: n.payment_paymentOnboarding,
2713
2817
  actions: [t.manage],
2714
- category: B.payment
2818
+ category: g.payment
2715
2819
  },
2716
2820
  transactions: {
2717
2821
  label: "Transactions Management",
2718
- subject: c.payment_transactions,
2822
+ subject: n.payment_transactions,
2719
2823
  actions: [t.manage],
2720
- category: B.payment
2824
+ category: g.payment
2721
2825
  },
2722
2826
  settlements: {
2723
2827
  label: "Settlements Management",
2724
- subject: c.payment_settlements,
2828
+ subject: n.payment_settlements,
2725
2829
  actions: [t.manage],
2726
- category: B.payment
2830
+ category: g.payment
2727
2831
  },
2728
2832
  // HRM
2729
2833
  teamMember: {
2730
2834
  label: "Team Member Management",
2731
- subject: c.hrm_teamMember,
2835
+ subject: n.hrm_teamMember,
2732
2836
  actions: [t.manage],
2733
- category: B.hrm
2837
+ category: g.hrm
2734
2838
  },
2735
2839
  employee: {
2736
2840
  label: "Employee Management",
2737
- subject: c.hrm_employee,
2841
+ subject: n.hrm_employee,
2738
2842
  actions: [t.manage],
2739
- category: B.hrm
2843
+ category: g.hrm
2740
2844
  },
2741
2845
  auditLog: {
2742
2846
  label: "Audit Log Management",
2743
- subject: c.hrm_auditLog,
2847
+ subject: n.hrm_auditLog,
2744
2848
  actions: [t.manage],
2745
- category: B.hrm
2849
+ category: g.hrm
2746
2850
  },
2747
2851
  // Report
2748
2852
  report_reports: {
2749
2853
  label: "Create Report",
2750
- subject: c.report_createReport,
2854
+ subject: n.report_createReport,
2751
2855
  actions: [t.manage],
2752
- category: B.report
2856
+ category: g.report
2753
2857
  },
2754
2858
  report_accessOverview: {
2755
2859
  label: "Access Overview Page",
2756
- subject: c.report_accessOverview,
2860
+ subject: n.report_accessOverview,
2757
2861
  actions: [t.manage],
2758
- category: B.report
2862
+ category: g.report
2759
2863
  },
2760
2864
  report_accessInsight: {
2761
2865
  label: "Access Insight Page",
2762
- subject: c.report_accessInsight,
2866
+ subject: n.report_accessInsight,
2763
2867
  actions: [t.manage],
2764
- category: B.report
2868
+ category: g.report
2765
2869
  },
2766
2870
  report_accessSetting: {
2767
2871
  label: "Access Setting Page",
2768
- subject: c.report_accessSetting,
2872
+ subject: n.report_accessSetting,
2769
2873
  actions: [t.manage],
2770
- category: B.report
2874
+ category: g.report
2771
2875
  },
2772
2876
  report_accessIntegration: {
2773
2877
  label: "Access Integration Page",
2774
- subject: c.report_accessIntegration,
2878
+ subject: n.report_accessIntegration,
2775
2879
  actions: [t.manage],
2776
- category: B.report
2880
+ category: g.report
2777
2881
  },
2778
2882
  report_reports_allDefaultReports: {
2779
2883
  label: "Include future Default Reports",
2780
- subject: c.report_reports_allDefaultReports,
2884
+ subject: n.report_reports_allDefaultReports,
2781
2885
  actions: [t.manage, t.read, t.create],
2782
- category: B.reports,
2886
+ category: g.reports,
2783
2887
  isCategoryCover: !0
2784
2888
  },
2785
2889
  report_reports_allCustomReports: {
2786
2890
  label: "Include future Custom Reports",
2787
- subject: c.report_reports_allCustomReports,
2891
+ subject: n.report_reports_allCustomReports,
2788
2892
  actions: [
2789
2893
  t.manage,
2790
2894
  t.read,
@@ -2792,19 +2896,19 @@ const Pa = {
2792
2896
  t.update,
2793
2897
  t.delete
2794
2898
  ],
2795
- category: B.customReports,
2899
+ category: g.customReports,
2796
2900
  isCategoryCover: !0
2797
2901
  }
2798
2902
  };
2799
2903
  var b = /* @__PURE__ */ ((e) => (e.inventory = "inventory", e.inventory_stock = "inventory::stock", e.inventory_stockAdjustment = "inventory::stockAdjustment", e.inventory_stockRecalculation = "inventory::stockRecalculation", e.inventory_unitCostHistory = "inventory::unitCostHistory", e.inventory_wastageTemplate = "inventory::wastageTemplate", e.inventory_closing = "inventory::closing", e.inventory_closingDraft = "inventory::closingDraft", e.inventory_closingTemplate = "inventory::closingTemplate", e.inventory_ingredient = "inventory::ingredient", e.inventory_ingredientGroup = "inventory::ingredientGroup", e.inventory_recipe = "inventory::recipe", e.inventory_unit = "inventory::unit", e.inventory_orderTemplate = "inventory::orderTemplate", e.inventory_orderDraft = "inventory::orderDraft", e.inventory_printTemplate = "inventory::printTemplate", e.inventory_purchaseOrder = "inventory::purchaseOrder", e.inventory_transferOutApproval = "inventory::transferOutApproval", e.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", e.inventory_surcharge = "inventory::surcharge", e.inventory_supplier = "inventory::supplier", e.inventory_warehouse = "inventory::warehouse", e.inventory_publish = "inventory::publish", e.inventory_integration = "inventory::integration", e.inventory_deliveryOrder = "inventory::deliveryOrder", e.inventory_shipment = "inventory::shipment", e.inventory_orderDraftApproval = "inventory::orderDraftApproval", e))(b || {});
2800
- const V = [
2904
+ const j = [
2801
2905
  {
2802
2906
  label: "Inventory",
2803
2907
  subject: b.inventory,
2804
2908
  actions: [t.read]
2805
2909
  }
2806
2910
  ], ge = [
2807
- ...V,
2911
+ ...j,
2808
2912
  {
2809
2913
  label: "Stock",
2810
2914
  subject: b.inventory_stock,
@@ -2826,21 +2930,21 @@ const V = [
2826
2930
  actions: [t.read]
2827
2931
  }
2828
2932
  ], xs = [
2829
- ...V,
2933
+ ...j,
2830
2934
  {
2831
2935
  label: "Stock Adjustment",
2832
2936
  subject: b.inventory_stockAdjustment,
2833
2937
  actions: [t.update]
2834
2938
  }
2835
2939
  ], tt = [
2836
- ...V,
2940
+ ...j,
2837
2941
  {
2838
2942
  label: "Unit Cost History",
2839
2943
  subject: b.inventory_unitCostHistory,
2840
2944
  actions: [t.read, t.update]
2841
2945
  }
2842
2946
  ], st = [
2843
- ...V,
2947
+ ...j,
2844
2948
  {
2845
2949
  label: "Wastage Template",
2846
2950
  subject: b.inventory_wastageTemplate,
@@ -2858,7 +2962,7 @@ const V = [
2858
2962
  ...st
2859
2963
  ];
2860
2964
  const me = [
2861
- ...V,
2965
+ ...j,
2862
2966
  {
2863
2967
  label: "Closing",
2864
2968
  subject: b.inventory_closing,
@@ -2875,7 +2979,7 @@ const me = [
2875
2979
  actions: [t.read]
2876
2980
  }
2877
2981
  ], at = [
2878
- ...V,
2982
+ ...j,
2879
2983
  {
2880
2984
  label: "Closing Draft",
2881
2985
  subject: b.inventory_closingDraft,
@@ -2902,7 +3006,7 @@ const me = [
2902
3006
  actions: [t.read]
2903
3007
  }
2904
3008
  ], rt = [
2905
- ...V,
3009
+ ...j,
2906
3010
  {
2907
3011
  label: "Closing Template",
2908
3012
  subject: b.inventory_closingTemplate,
@@ -2957,7 +3061,7 @@ const qs = [
2957
3061
  subject: b.inventory,
2958
3062
  actions: [t.read, t.update]
2959
3063
  }
2960
- ], Hs = [
3064
+ ], Ps = [
2961
3065
  {
2962
3066
  label: "Inventory",
2963
3067
  subject: b.inventory,
@@ -3026,7 +3130,7 @@ const qs = [
3026
3130
  actions: [t.read, t.update]
3027
3131
  }
3028
3132
  ], ot = [
3029
- ...V,
3133
+ ...j,
3030
3134
  {
3031
3135
  label: "Surcharge",
3032
3136
  subject: b.inventory_surcharge,
@@ -3043,7 +3147,7 @@ const qs = [
3043
3147
  actions: [t.read]
3044
3148
  }
3045
3149
  ], ct = [
3046
- ...V,
3150
+ ...j,
3047
3151
  {
3048
3152
  label: "Order Template",
3049
3153
  subject: b.inventory_orderTemplate,
@@ -3064,8 +3168,8 @@ const qs = [
3064
3168
  subject: b.inventory_shipment,
3065
3169
  actions: [t.read, t.update]
3066
3170
  }
3067
- ], Ps = [
3068
- ...V,
3171
+ ], Hs = [
3172
+ ...j,
3069
3173
  {
3070
3174
  label: "Order Draft Approval",
3071
3175
  subject: b.inventory_orderDraftApproval,
@@ -3079,7 +3183,7 @@ const qs = [
3079
3183
  ...ct
3080
3184
  ];
3081
3185
  const Fs = [
3082
- ...V,
3186
+ ...j,
3083
3187
  {
3084
3188
  label: "Supplier",
3085
3189
  subject: b.inventory_supplier,
@@ -3096,7 +3200,7 @@ const Fs = [
3096
3200
  actions: [t.read, t.update]
3097
3201
  }
3098
3202
  ], Os = [
3099
- ...V,
3203
+ ...j,
3100
3204
  {
3101
3205
  label: "Warehouse",
3102
3206
  subject: b.inventory_warehouse,
@@ -3114,14 +3218,14 @@ const Fs = [
3114
3218
  actions: [t.read, t.update]
3115
3219
  }
3116
3220
  ], Is = [
3117
- ...V,
3221
+ ...j,
3118
3222
  {
3119
3223
  label: "Inventory",
3120
3224
  subject: b.inventory,
3121
3225
  actions: [t.update]
3122
3226
  }
3123
3227
  ], zs = [
3124
- ...V,
3228
+ ...j,
3125
3229
  {
3126
3230
  label: "Integration",
3127
3231
  subject: b.inventory_integration,
@@ -3129,112 +3233,112 @@ const Fs = [
3129
3233
  }
3130
3234
  ];
3131
3235
  [
3132
- ...V,
3236
+ ...j,
3133
3237
  ...ge,
3134
3238
  ...me
3135
3239
  ];
3136
3240
  const Ns = {
3137
- [`set_${c.inventory_stockBalance}`]: {
3241
+ [`set_${n.inventory_stockBalance}`]: {
3138
3242
  key: "sys:inventory:stock_balance",
3139
3243
  name: "Stock Balance",
3140
3244
  permissions: ge
3141
3245
  },
3142
- [`set_${c.inventory_stockAdjustment}`]: {
3246
+ [`set_${n.inventory_stockAdjustment}`]: {
3143
3247
  key: "sys:inventory:stock_adjustment",
3144
3248
  name: "Stock Adjustment",
3145
3249
  permissions: xs
3146
3250
  },
3147
- [`set_${c.inventory_unitCostHistory}`]: {
3251
+ [`set_${n.inventory_unitCostHistory}`]: {
3148
3252
  key: "sys:inventory:unit_cost_history",
3149
3253
  name: "Unit Cost History",
3150
3254
  permissions: tt
3151
3255
  },
3152
- [`set_${c.inventory_wastageTemplate}`]: {
3256
+ [`set_${n.inventory_wastageTemplate}`]: {
3153
3257
  key: "sys:inventory:wastage_template",
3154
3258
  name: "Wastage Template",
3155
3259
  permissions: st
3156
3260
  },
3157
- [`set_${c.inventory_closingHistory}`]: {
3261
+ [`set_${n.inventory_closingHistory}`]: {
3158
3262
  key: "sys:inventory:closing_history",
3159
3263
  name: "Closing History",
3160
3264
  permissions: me
3161
3265
  },
3162
- [`set_${c.inventory_closingTemplate}`]: {
3266
+ [`set_${n.inventory_closingTemplate}`]: {
3163
3267
  key: "sys:inventory:closing_template",
3164
3268
  name: "Closing Template",
3165
3269
  permissions: rt
3166
3270
  },
3167
- [`set_${c.inventory_closingDraft}`]: {
3271
+ [`set_${n.inventory_closingDraft}`]: {
3168
3272
  key: "sys:inventory:closing_draft",
3169
3273
  name: "Closing Draft",
3170
3274
  permissions: at
3171
3275
  },
3172
- [`set_${c.inventory_ingredient}`]: {
3276
+ [`set_${n.inventory_ingredient}`]: {
3173
3277
  key: "sys:inventory:ingredient",
3174
3278
  name: "Ingredient",
3175
3279
  permissions: qs
3176
3280
  },
3177
- [`set_${c.inventory_ingredientGroup}`]: {
3281
+ [`set_${n.inventory_ingredientGroup}`]: {
3178
3282
  key: "sys:inventory:ingredient_group",
3179
3283
  name: "Ingredient Group",
3180
3284
  permissions: Qs
3181
3285
  },
3182
- [`set_${c.inventory_recipe}`]: {
3286
+ [`set_${n.inventory_recipe}`]: {
3183
3287
  key: "sys:inventory:recipe",
3184
3288
  name: "Recipe",
3185
3289
  permissions: Xs
3186
3290
  },
3187
- [`set_${c.inventory_unit}`]: {
3291
+ [`set_${n.inventory_unit}`]: {
3188
3292
  key: "sys:inventory:unit",
3189
3293
  name: "Unit",
3190
- permissions: Hs
3294
+ permissions: Ps
3191
3295
  },
3192
- [`set_${c.inventory_purchaseTransfer}`]: {
3296
+ [`set_${n.inventory_purchaseTransfer}`]: {
3193
3297
  key: "sys:inventory:purchase_transfer",
3194
3298
  name: "Purchase Transfer",
3195
3299
  permissions: At
3196
3300
  },
3197
- [`set_${c.inventory_orderDraftApproval}`]: {
3301
+ [`set_${n.inventory_orderDraftApproval}`]: {
3198
3302
  key: "sys:inventory:order_draft_approval",
3199
3303
  name: "Order Draft Approval",
3200
- permissions: Ps
3304
+ permissions: Hs
3201
3305
  },
3202
- [`set_${c.inventory_transferOut}`]: {
3306
+ [`set_${n.inventory_transferOut}`]: {
3203
3307
  key: "sys:inventory:transfer_out",
3204
3308
  name: "Transfer Out",
3205
3309
  permissions: nt
3206
3310
  },
3207
- [`set_${c.inventory_surcharge}`]: {
3311
+ [`set_${n.inventory_surcharge}`]: {
3208
3312
  key: "sys:inventory:surcharge",
3209
3313
  name: "Surcharge",
3210
3314
  permissions: ot
3211
3315
  },
3212
- [`set_${c.inventory_orderTemplate}`]: {
3316
+ [`set_${n.inventory_orderTemplate}`]: {
3213
3317
  key: "sys:inventory:order_template",
3214
3318
  name: "Order Template",
3215
3319
  permissions: ct
3216
3320
  },
3217
- [`set_${c.inventory_supplier}`]: {
3321
+ [`set_${n.inventory_supplier}`]: {
3218
3322
  key: "sys:inventory:supplier",
3219
3323
  name: "Supplier",
3220
3324
  permissions: Fs
3221
3325
  },
3222
- [`set_${c.inventory_warehouse}`]: {
3326
+ [`set_${n.inventory_warehouse}`]: {
3223
3327
  key: "sys:inventory:warehouse",
3224
3328
  name: "Warehouse",
3225
3329
  permissions: Os
3226
3330
  },
3227
- [`set_${c.inventory_publish}`]: {
3331
+ [`set_${n.inventory_publish}`]: {
3228
3332
  key: "sys:inventory:publish",
3229
3333
  name: "Publish",
3230
3334
  permissions: Zs
3231
3335
  },
3232
- [`set_${c.inventory_import}`]: {
3336
+ [`set_${n.inventory_import}`]: {
3233
3337
  key: "sys:inventory:import",
3234
3338
  name: "Import",
3235
3339
  permissions: Is
3236
3340
  },
3237
- [`set_${c.inventory_integration}`]: {
3341
+ [`set_${n.inventory_integration}`]: {
3238
3342
  key: "sys:inventory:integration",
3239
3343
  name: "Integration",
3240
3344
  permissions: zs
@@ -3247,7 +3351,7 @@ const Ws = {
3247
3351
  * Injects: team member list read + pos role read
3248
3352
  * Users who can manage team members need to see the team member list and assign POS roles.
3249
3353
  */
3250
- [`set_${c.hrm_teamMember}`]: {
3354
+ [`set_${n.hrm_teamMember}`]: {
3251
3355
  key: "sys:team_member_access",
3252
3356
  name: "Team Member Access",
3253
3357
  permissions: [
@@ -3258,7 +3362,7 @@ const Ws = {
3258
3362
  },
3259
3363
  {
3260
3364
  label: "Role resource",
3261
- subject: c.role,
3365
+ subject: n.role,
3262
3366
  actions: [t.read, t.update]
3263
3367
  },
3264
3368
  {
@@ -3272,7 +3376,7 @@ const Ws = {
3272
3376
  * Triggered by: hrm_employee:manage (portal toggle)
3273
3377
  * Injects: pos role read + restaurant manage (cross-level: needed for employee–restaurant linking)
3274
3378
  */
3275
- [`set_${c.hrm_employee}`]: {
3379
+ [`set_${n.hrm_employee}`]: {
3276
3380
  key: "sys:employee_access",
3277
3381
  name: "Employee Access",
3278
3382
  permissions: [
@@ -3283,7 +3387,7 @@ const Ws = {
3283
3387
  },
3284
3388
  {
3285
3389
  label: "Restaurant resource",
3286
- subject: c.restaurant,
3390
+ subject: n.restaurant,
3287
3391
  actions: [t.read]
3288
3392
  },
3289
3393
  {
@@ -3299,7 +3403,7 @@ const Ws = {
3299
3403
  * Uses HrmResource.hrm_portalUsers (not the module subject hrm_teamMember) to avoid
3300
3404
  * conflating the audit-log read dependency with the full team-management module grant.
3301
3405
  */
3302
- [`set_${c.hrm_auditLog}`]: {
3406
+ [`set_${n.hrm_auditLog}`]: {
3303
3407
  key: "sys:audit_log_access",
3304
3408
  name: "Audit Log Access",
3305
3409
  permissions: [
@@ -3315,7 +3419,7 @@ var it = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e)
3315
3419
  const Ye = [
3316
3420
  {
3317
3421
  label: "Payout Account",
3318
- subject: c.payment_payoutAccount,
3422
+ subject: n.payment_payoutAccount,
3319
3423
  actions: [t.read]
3320
3424
  },
3321
3425
  {
@@ -3324,12 +3428,12 @@ const Ye = [
3324
3428
  actions: [t.read]
3325
3429
  }
3326
3430
  ], Us = {
3327
- [`set_${c.payment_transactions}`]: {
3431
+ [`set_${n.payment_transactions}`]: {
3328
3432
  key: "sys:payment:transactions",
3329
3433
  name: "Payment Transactions Access",
3330
3434
  permissions: Ye
3331
3435
  },
3332
- [`set_${c.payment_settlements}`]: {
3436
+ [`set_${n.payment_settlements}`]: {
3333
3437
  key: "sys:payment:settlements",
3334
3438
  name: "Payment Settlements Access",
3335
3439
  permissions: Ye
@@ -3341,53 +3445,53 @@ const Ye = [
3341
3445
  }, Fa = Object.values(
3342
3446
  Rs
3343
3447
  ).flatMap((e) => e.permissions ?? []).reduce(
3344
- (e, o) => {
3448
+ (e, c) => {
3345
3449
  var i;
3346
- return e[i = o.subject] ?? (e[i] = o.label), e;
3450
+ return e[i = c.subject] ?? (e[i] = c.label), e;
3347
3451
  },
3348
3452
  {}
3349
3453
  );
3350
3454
  function Ts(e) {
3351
- return e.map((o) => ({
3352
- ...o,
3353
- subject: Es(o.subject),
3354
- reason: o.source !== void 0 ? JSON.stringify(o.source) : o.reason
3455
+ return e.map((c) => ({
3456
+ ...c,
3457
+ subject: Es(c.subject),
3458
+ reason: c.source !== void 0 ? JSON.stringify(c.source) : c.reason
3355
3459
  }));
3356
3460
  }
3357
3461
  function Ks(e) {
3358
- return new Vs(Ts(e));
3462
+ return new js(Ts(e));
3359
3463
  }
3360
- function Js(e, o, i) {
3361
- const a = Array.isArray(e) ? e : [e], r = Ks(o), n = (M) => M.subject, u = (M) => r.can(M.action, n(M), M.field) ? !0 : M.coverSubject !== void 0 ? r.can(M.action, M.coverSubject, M.field) : !1, m = a.find((M) => !u(M));
3362
- if (m) {
3464
+ function Js(e, c, i) {
3465
+ const a = Array.isArray(e) ? e : [e], r = Ks(c), o = (M) => M.subject, u = (M) => r.can(M.action, o(M), M.field) ? !0 : M.coverSubject !== void 0 ? r.can(M.action, M.coverSubject, M.field) : !1, d = a.find((M) => !u(M));
3466
+ if (d) {
3363
3467
  const M = r.relevantRuleFor(
3364
- m.action,
3365
- n(m),
3366
- m.field
3468
+ d.action,
3469
+ o(d),
3470
+ d.field
3367
3471
  );
3368
3472
  return {
3369
3473
  granted: !1,
3370
- decisivePermission: m,
3474
+ decisivePermission: d,
3371
3475
  decisiveRule: M ?? null
3372
3476
  };
3373
3477
  }
3374
- const f = a[0], y = r.relevantRuleFor(f.action, n(f), f.field);
3478
+ const f = a[0], y = r.relevantRuleFor(f.action, o(f), f.field);
3375
3479
  return { granted: !0, decisivePermission: f, decisiveRule: y ?? null };
3376
3480
  }
3377
3481
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3378
3482
  const ks = () => {
3379
3483
  };
3380
- function Ls(e, o, i) {
3484
+ function Ls(e, c, i) {
3381
3485
  let a;
3382
3486
  Bt(i) ? a = {
3383
3487
  evaluating: i
3384
3488
  } : a = {};
3385
3489
  const {
3386
3490
  lazy: r = !1,
3387
- evaluating: n = void 0,
3491
+ evaluating: o = void 0,
3388
3492
  shallow: u = !0,
3389
- onError: m = ks
3390
- } = a, f = T(!r), y = u ? bt(o) : T(o);
3493
+ onError: d = ks
3494
+ } = a, f = T(!r), y = u ? bt(c) : T(c);
3391
3495
  let M = 0;
3392
3496
  return he(async (v) => {
3393
3497
  if (!f.value)
@@ -3395,59 +3499,59 @@ function Ls(e, o, i) {
3395
3499
  M++;
3396
3500
  const F = M;
3397
3501
  let Y = !1;
3398
- n && Promise.resolve().then(() => {
3399
- n.value = !0;
3502
+ o && Promise.resolve().then(() => {
3503
+ o.value = !0;
3400
3504
  });
3401
3505
  try {
3402
- const j = await e((q) => {
3506
+ const V = await e((q) => {
3403
3507
  v(() => {
3404
- n && (n.value = !1), Y || q();
3508
+ o && (o.value = !1), Y || q();
3405
3509
  });
3406
3510
  });
3407
- F === M && (y.value = j);
3408
- } catch (j) {
3409
- m(j);
3511
+ F === M && (y.value = V);
3512
+ } catch (V) {
3513
+ d(V);
3410
3514
  } finally {
3411
- n && F === M && (n.value = !1), Y = !0;
3515
+ o && F === M && (o.value = !1), Y = !0;
3412
3516
  }
3413
3517
  }), r ? ie(() => (f.value = !0, y.value)) : y;
3414
3518
  }
3415
3519
  async function Ss(e) {
3416
- const { sessionUser: o, validationManifest: i } = e, { requiredRoles: a, requiredCaslPermissions: r, customValidationFunction: n } = i;
3417
- if (!o)
3520
+ const { sessionUser: c, validationManifest: i } = e, { requiredRoles: a, requiredCaslPermissions: r, customValidationFunction: o } = i;
3521
+ if (!c)
3418
3522
  return { canAccess: !1 };
3419
- if (a && a.length > 0 && !a.includes(o._role || ""))
3523
+ if (a && a.length > 0 && !a.includes(c._role || ""))
3420
3524
  return Promise.resolve({
3421
3525
  canAccess: !1,
3422
3526
  message: "User does not have permission to access"
3423
3527
  });
3424
3528
  if (r && r.length > 0) {
3425
- const { granted: u } = Js(r, o.permissions);
3529
+ const { granted: u } = Js(r, c.permissions);
3426
3530
  if (!u)
3427
3531
  return Promise.resolve({
3428
3532
  canAccess: !1,
3429
3533
  message: "User does not have permission to access"
3430
3534
  });
3431
3535
  }
3432
- if (n) {
3433
- const u = await n();
3536
+ if (o) {
3537
+ const u = await o();
3434
3538
  if (!u.canAccess)
3435
3539
  return u;
3436
3540
  }
3437
3541
  return Promise.resolve({ canAccess: !0 });
3438
3542
  }
3439
- async function _s(e, o) {
3543
+ async function _s(e, c) {
3440
3544
  for (const i of e.matched)
3441
3545
  if (i.meta.validationManifest) {
3442
3546
  const a = await Ss({
3443
- sessionUser: o,
3547
+ sessionUser: c,
3444
3548
  validationManifest: i.meta.validationManifest
3445
3549
  });
3446
3550
  if (!a.canAccess)
3447
3551
  return {
3448
3552
  canAccess: !1,
3449
3553
  message: a.message,
3450
- redirectTo: js
3554
+ redirectTo: Vs
3451
3555
  };
3452
3556
  }
3453
3557
  return {
@@ -3456,11 +3560,11 @@ async function _s(e, o) {
3456
3560
  }
3457
3561
  var ce = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(ce || {});
3458
3562
  function $s() {
3459
- const e = Ct(), { sessionUser: o } = ue();
3563
+ const e = Ct(), { sessionUser: c } = ue();
3460
3564
  return Ls(
3461
3565
  async () => {
3462
3566
  e.matched;
3463
- const i = o.value;
3567
+ const i = c.value;
3464
3568
  if (i === void 0)
3465
3569
  return "loading";
3466
3570
  if (!i)
@@ -3498,7 +3602,7 @@ const ea = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
3498
3602
  }, ia = { class: "w-full h-full flex justify-center items-center" }, la = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, ua = { class: "w-[300px] h-[300px]" }, ga = ["src"], ma = { class: "text-2xl" }, da = { class: "text-xl" }, Ba = /* @__PURE__ */ N({
3499
3603
  __name: "NoPermission",
3500
3604
  setup(e) {
3501
- const { t: o } = Ee({
3605
+ const { t: c } = Ee({
3502
3606
  messages: {
3503
3607
  "en-US": sa,
3504
3608
  "zh-CN": ra,
@@ -3506,7 +3610,7 @@ const ea = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
3506
3610
  "th-TH": ca
3507
3611
  }
3508
3612
  });
3509
- return (i, a) => (W(), Ve("div", ia, [
3613
+ return (i, a) => (W(), je("div", ia, [
3510
3614
  O("div", la, [
3511
3615
  O("div", ua, [
3512
3616
  O("img", {
@@ -3515,8 +3619,8 @@ const ea = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
3515
3619
  }, null, 8, ga)
3516
3620
  ]),
3517
3621
  O("div", null, [
3518
- O("h1", ma, we(Z(o)("noPermission.title")), 1),
3519
- O("h2", da, we(Z(o)("noPermission.subtitle")), 1)
3622
+ O("h1", ma, we(Z(c)("noPermission.title")), 1),
3623
+ O("h2", da, we(Z(c)("noPermission.subtitle")), 1)
3520
3624
  ])
3521
3625
  ])
3522
3626
  ]));
@@ -3524,19 +3628,19 @@ const ea = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
3524
3628
  }), ba = /* @__PURE__ */ N({
3525
3629
  __name: "PermissionWrapper",
3526
3630
  setup(e) {
3527
- const o = $s();
3528
- return (i, a) => Z(o) === Z(ce).Denied ? (W(), $(Ba, { key: 0 })) : Z(o) === Z(ce).Allowed ? Ge(i.$slots, "default", { key: 1 }) : pt("", !0);
3631
+ const c = $s();
3632
+ return (i, a) => Z(c) === Z(ce).Denied ? (W(), $(Ba, { key: 0 })) : Z(c) === Z(ce).Allowed ? Ge(i.$slots, "default", { key: 1 }) : pt("", !0);
3529
3633
  }
3530
3634
  });
3531
3635
  function ee(e) {
3532
3636
  return {
3533
3637
  inheritAttrs: !1,
3534
- setup(o, { attrs: i }) {
3638
+ setup(c, { attrs: i }) {
3535
3639
  return () => fe(ba, {}, { default: () => fe(e, i) });
3536
3640
  }
3537
3641
  };
3538
3642
  }
3539
- function pa(e, o) {
3643
+ function pa(e, c) {
3540
3644
  const i = T({ top: 0, bottom: 0, left: 0, right: 0 });
3541
3645
  function a() {
3542
3646
  if (e.value) {
@@ -3549,11 +3653,11 @@ function pa(e, o) {
3549
3653
  };
3550
3654
  }
3551
3655
  }
3552
- return Me(o, async () => {
3656
+ return Me(c, async () => {
3553
3657
  await De(), a();
3554
3658
  }), Me(e, async (r) => {
3555
3659
  r && (await De(), a());
3556
- }), je(() => {
3660
+ }), Ve(() => {
3557
3661
  window.addEventListener("resize", a);
3558
3662
  }), ft(() => {
3559
3663
  window.removeEventListener("resize", a);
@@ -3562,25 +3666,25 @@ function pa(e, o) {
3562
3666
  const fa = /* @__PURE__ */ N({
3563
3667
  __name: "FullWrapper",
3564
3668
  setup(e) {
3565
- const o = vt(), i = T(null), a = pa(i), r = ie(() => {
3566
- var m;
3567
- const u = o.isAtMost("sm") ? 56 : 0;
3669
+ const c = vt(), i = T(null), a = pa(i), r = ie(() => {
3670
+ var d;
3671
+ const u = c.isAtMost("sm") ? 56 : 0;
3568
3672
  return {
3569
- height: `calc(100dvh - ${((m = a.value) == null ? void 0 : m.top) + 24 + u}px)`
3673
+ height: `calc(100dvh - ${((d = a.value) == null ? void 0 : d.top) + 24 + u}px)`
3570
3674
  };
3571
3675
  });
3572
- return (n, u) => (W(), Ve("div", {
3676
+ return (o, u) => (W(), je("div", {
3573
3677
  ref_key: "wrapper",
3574
3678
  ref: i,
3575
3679
  style: wt(r.value)
3576
3680
  }, [
3577
- Ge(n.$slots, "default")
3681
+ Ge(o.$slots, "default")
3578
3682
  ], 4));
3579
3683
  }
3580
3684
  }), wa = { class: "flex justify-center items-center h-full w-full" }, Ma = /* @__PURE__ */ N({
3581
3685
  __name: "PageLoading",
3582
3686
  setup(e) {
3583
- return (o, i) => {
3687
+ return (c, i) => {
3584
3688
  const a = le("FmCircularProgress");
3585
3689
  return W(), $(fa, null, {
3586
3690
  default: Mt(() => [
@@ -3606,10 +3710,10 @@ const re = (e) => ({
3606
3710
  }
3607
3711
  ]
3608
3712
  }
3609
- }), Da = ee(X(() => import("./Main-DKJWXUF1.js"))), ya = ee(X(() => import("./Main-eEQq0uiP.js"))), va = ee(
3610
- X(() => import("./AuditLogList-ChmO_lsf.js"))
3611
- ), Ca = ee(X(() => import("./Main--wV8uMFW.js"))), Ya = X(() => import("./EmployeeList-B43c3tSt.js")), ha = X(() => import("./RoleList-Nm7T5wl8.js")), Ga = X(() => import("./TimesheetList-CoaX44py.js")), Va = X(() => import("./TeamMemberList-BOcKTiHH.js")), ja = X(
3612
- () => import("./PermissionSetList-CA7dsUY5.js")
3713
+ }), Da = ee(X(() => import("./Main-CORS-Htr.js"))), ya = ee(X(() => import("./Main-C5Tf5fIU.js"))), va = ee(
3714
+ X(() => import("./AuditLogList-DuTClC_6.js"))
3715
+ ), Ca = ee(X(() => import("./Main-CwaYKeof.js"))), Ya = X(() => import("./EmployeeList-tfcWh61b.js")), ha = X(() => import("./RoleList-B3_jQZJI.js")), Ga = X(() => import("./TimesheetList-DCkENccG.js")), ja = X(() => import("./TeamMemberList-SSgf2vJC.js")), Va = X(
3716
+ () => import("./PermissionSetList-uNxQq4Wv.js")
3613
3717
  ), Oa = [
3614
3718
  {
3615
3719
  path: "/",
@@ -3657,12 +3761,12 @@ const re = (e) => ({
3657
3761
  {
3658
3762
  path: "member",
3659
3763
  name: "team-member",
3660
- component: Va
3764
+ component: ja
3661
3765
  },
3662
3766
  {
3663
3767
  path: "role",
3664
3768
  name: "team-role",
3665
- component: ja
3769
+ component: Va
3666
3770
  }
3667
3771
  ]
3668
3772
  },
@@ -3674,8 +3778,8 @@ const re = (e) => ({
3674
3778
  ], Ea = /* @__PURE__ */ N({
3675
3779
  __name: "Navigator",
3676
3780
  emits: ["close-navigation"],
3677
- setup(e, { emit: o }) {
3678
- const i = o, { t: a } = Ee(), r = Yt(), { sessionUser: n } = ue(), u = ie(() => {
3781
+ setup(e, { emit: c }) {
3782
+ const i = c, { t: a } = Ee(), r = Yt(), { sessionUser: o } = ue(), u = ie(() => {
3679
3783
  var y;
3680
3784
  const f = [];
3681
3785
  return f.push({
@@ -3704,7 +3808,7 @@ const re = (e) => ({
3704
3808
  name: G.AUDIT_LOG
3705
3809
  }), i("close-navigation");
3706
3810
  }
3707
- }), (y = n.value) != null && y.role.isAdmin && f.push({
3811
+ }), (y = o.value) != null && y.role.isAdmin && f.push({
3708
3812
  label: a("grantUser.title"),
3709
3813
  value: "pos-grant",
3710
3814
  action: () => {
@@ -3714,7 +3818,7 @@ const re = (e) => ({
3714
3818
  }), i("close-navigation");
3715
3819
  }
3716
3820
  }), f;
3717
- }), m = T();
3821
+ }), d = T();
3718
3822
  return he(() => {
3719
3823
  var y;
3720
3824
  let f = (y = r.currentRoute.value) == null ? void 0 : y.name;
@@ -3737,12 +3841,12 @@ const re = (e) => ({
3737
3841
  default:
3738
3842
  f = G.EMPLOYEE;
3739
3843
  }
3740
- m.value !== f && (m.value = f);
3844
+ d.value !== f && (d.value = f);
3741
3845
  }), (f, y) => {
3742
3846
  const M = le("FmCollapsibleTabs");
3743
3847
  return W(), $(M, {
3744
- modelValue: m.value,
3745
- "onUpdate:modelValue": y[0] || (y[0] = (v) => m.value = v),
3848
+ modelValue: d.value,
3849
+ "onUpdate:modelValue": y[0] || (y[0] = (v) => d.value = v),
3746
3850
  items: u.value,
3747
3851
  class: "py-16"
3748
3852
  }, null, 8, ["modelValue", "items"]);
@@ -3751,21 +3855,21 @@ const re = (e) => ({
3751
3855
  }), Za = /* @__PURE__ */ N({
3752
3856
  __name: "App",
3753
3857
  setup(e) {
3754
- const o = ue();
3755
- return je(() => {
3756
- o.registerSidebarComponent(Ea);
3858
+ const c = ue();
3859
+ return Ve(() => {
3860
+ c.registerSidebarComponent(Ea);
3757
3861
  }), (i, a) => {
3758
3862
  const r = le("RouterView");
3759
3863
  return W(), $(r);
3760
3864
  };
3761
3865
  }
3762
3866
  }), Ia = () => {
3763
- const e = [_t, Wt, Xt, os], o = new Set(e.flatMap((i) => Object.keys(i)));
3764
- return Array.from(o).reduce(
3867
+ const e = [_t, Wt, Xt, os], c = new Set(e.flatMap((i) => Object.keys(i)));
3868
+ return Array.from(c).reduce(
3765
3869
  (i, a) => {
3766
3870
  const r = a;
3767
- return i[a] = e.reduce((n, u) => ({
3768
- ...n,
3871
+ return i[a] = e.reduce((o, u) => ({
3872
+ ...o,
3769
3873
  ...u[r] || {}
3770
3874
  }), {}), i;
3771
3875
  },
@@ -3773,19 +3877,19 @@ const re = (e) => ({
3773
3877
  );
3774
3878
  };
3775
3879
  export {
3776
- Fa as G,
3777
- Pa as H,
3880
+ Ha as $,
3881
+ Fa as F,
3882
+ Rs as I,
3778
3883
  G as R,
3779
- Rs as U,
3780
3884
  fa as _,
3781
- t as a,
3885
+ Za as a,
3782
3886
  Es as b,
3783
3887
  cs as c,
3784
- B as d,
3785
- Ia as e,
3786
- S as f,
3888
+ t as e,
3889
+ Pa as f,
3787
3890
  is as g,
3788
- Za as h,
3789
- Ha as i,
3790
- Oa as r
3891
+ S as h,
3892
+ Ia as i,
3893
+ Oa as r,
3894
+ g as u
3791
3895
  };