@feedmepos/mf-hrm-portal 2.0.8-dev.1 → 2.0.8-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 (29) hide show
  1. package/dist/{AuditLogList-YGP3G14A.js → AuditLogList-DU9bvapH.js} +5 -5
  2. package/dist/{EmployeeList-DuRlCrqN.js → EmployeeList-C0Kt6J2s.js} +5 -5
  3. package/dist/{Main-BfDH3uAt.js → Main-CGoSOSHf.js} +9 -9
  4. package/dist/{Main-D4ueBOl0.js → Main-YgAJrDXR.js} +6 -6
  5. package/dist/{Main-QpKV1hdj.js → Main-wneSr3Yj.js} +4 -4
  6. package/dist/{PermissionSetList-DfAZmUkI.js → PermissionSetList-BG5FcHDo.js} +5 -5
  7. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dfey316Z.js +3471 -0
  8. package/dist/{RoleList-D4mup6LW.js → RoleList-D6aapDtQ.js} +7 -7
  9. package/dist/{TeamMemberList-D9rTKS5N.js → TeamMemberList-BQ3xq4Q2.js} +8 -8
  10. package/dist/{TimesheetList-CBudjg1y.js → TimesheetList-DqEtBC_2.js} +7 -7
  11. package/dist/{app-BO9lM0sJ.js → app-efNRBiJB.js} +255 -226
  12. package/dist/app.js +2 -2
  13. package/dist/{dayjs.min-lY-LRZuh.js → dayjs.min-O2mY8Dsx.js} +1 -1
  14. package/dist/{employee-DXp_u8jd.js → employee-Cr5TX4u1.js} +4 -4
  15. package/dist/{index-BigKo-lS.js → index-CMFJQ1p8.js} +1 -1
  16. package/dist/{index-DAuOIotV.js → index-DPcm9B8U.js} +2 -2
  17. package/dist/{iteration-DgaP-HFg.js → iteration-BzPWNf3I.js} +1 -1
  18. package/dist/{lodash-Mhrrz947.js → lodash-rnloBy2O.js} +1 -1
  19. package/dist/src/composables/useBasePermission.d.ts +37 -0
  20. package/dist/src/helpers/permission-sync.d.ts +12 -0
  21. package/dist/src/views/team/components/BasePermission.vue.d.ts +1 -1
  22. package/dist/{team-oeTIbsa-.js → team-CJ3xjFT7.js} +1 -1
  23. package/dist/{timesheet-B4XO3Kjx.js → timesheet-BABSsqqp.js} +3 -3
  24. package/dist/tsconfig.app.tsbuildinfo +1 -1
  25. package/dist/{useAppStore-Cu5QCTlx.js → useAppStore-DxEeYbWz.js} +1 -1
  26. package/dist/{useLoading-DKnxkHGF.js → useLoading-zLCQaKfz.js} +1 -1
  27. package/dist/{useReportPermissions-B_w5FiAK.js → useReportPermissions-BB-vWjkE.js} +3 -3
  28. package/package.json +1 -1
  29. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DokyDyxJ.js +0 -3432
@@ -1,4 +1,4 @@
1
- import { isRef as mt, ref as T, shallowRef as dt, watchEffect as he, computed as ie, h as fe, defineComponent as N, createBlock as $, renderSlot as Ge, createCommentVNode as Bt, unref as Z, openBlock as W, createElementBlock as ye, createElementVNode as O, toDisplayString as we, watch as De, nextTick as Me, onMounted as Ve, onBeforeUnmount as pt, normalizeStyle as bt, resolveComponent as le, withCtx as ft, createVNode as wt, defineAsyncComponent as Dt } from "vue";
1
+ import { isRef as mt, ref as T, shallowRef as dt, watchEffect as ye, computed as ie, h as fe, defineComponent as N, createBlock as $, renderSlot as he, createCommentVNode as Bt, unref as Z, openBlock as W, createElementBlock as Ge, createElementVNode as O, toDisplayString as we, watch as De, nextTick as Me, onMounted as Ve, onBeforeUnmount as pt, normalizeStyle as bt, resolveComponent as le, withCtx as ft, createVNode as wt, defineAsyncComponent as Dt } from "vue";
2
2
  import { useBreakpoints as Mt } from "@feedmepos/ui-library";
3
3
  import { useRoute as vt, useRouter as Ct } from "vue-router";
4
4
  import { useCoreStore as ue, useI18n as je } from "@feedmepos/mf-common";
@@ -73,7 +73,7 @@ const Ee = {
73
73
  }
74
74
  }, Yt = {
75
75
  auditLog: Ee
76
- }, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
76
+ }, yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
77
77
  __proto__: null,
78
78
  auditLog: Ee,
79
79
  default: Yt
@@ -147,12 +147,12 @@ const Ee = {
147
147
  requestPath: "เส้นทางร้องขอ",
148
148
  requestBody: "เนื้อหาคำขอ"
149
149
  }
150
- }, Gt = {
150
+ }, ht = {
151
151
  auditLog: xe
152
- }, yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152
+ }, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
153
153
  __proto__: null,
154
154
  auditLog: xe,
155
- default: Gt
155
+ default: ht
156
156
  }, Symbol.toStringTag, { value: "Module" })), qe = {
157
157
  title: "审计日志",
158
158
  dateRange: {
@@ -306,9 +306,9 @@ const Ee = {
306
306
  auditLog: Qe,
307
307
  default: Et
308
308
  }, Symbol.toStringTag, { value: "Module" })), qt = {
309
- "en-US": ht,
309
+ "en-US": yt,
310
310
  "zh-CN": jt,
311
- "th-TH": yt,
311
+ "th-TH": Gt,
312
312
  "zh-Hant": xt
313
313
  }, Xe = {
314
314
  employee: {
@@ -1821,8 +1821,8 @@ var Le = { exports: {} };
1821
1821
  }
1822
1822
  function u(t) {
1823
1823
  var a = "[object " + t + "]";
1824
- return function(i) {
1825
- return Object.prototype.toString.call(i) === a;
1824
+ return function(l) {
1825
+ return Object.prototype.toString.call(l) === a;
1826
1826
  };
1827
1827
  }
1828
1828
  A.r(r), A.d(r, "default", function() {
@@ -1837,23 +1837,23 @@ var Le = { exports: {} };
1837
1837
  return v(t.get) ? t.get(a) : t[a];
1838
1838
  }
1839
1839
  function C(t) {
1840
- return function(a, i) {
1841
- if (!m(i) || !i.length) return t(a, i);
1842
- for (var g = 0, d = i.length; g < d; g++)
1843
- if (t(a, D(i, g))) return !0;
1840
+ return function(a, l) {
1841
+ if (!m(l) || !l.length) return t(a, l);
1842
+ for (var g = 0, d = l.length; g < d; g++)
1843
+ if (t(a, D(l, g))) return !0;
1844
1844
  return !1;
1845
1845
  };
1846
1846
  }
1847
1847
  function P(t) {
1848
- return function(a, i) {
1849
- if (!m(i) || !i.length) return t(a, i);
1850
- for (var g = 0, d = i.length; g < d; g++)
1851
- if (!t(a, D(i, g))) return !1;
1848
+ return function(a, l) {
1849
+ if (!m(l) || !l.length) return t(a, l);
1850
+ for (var g = 0, d = l.length; g < d; g++)
1851
+ if (!t(a, D(l, g))) return !1;
1852
1852
  return !0;
1853
1853
  };
1854
1854
  }
1855
- function h(t, a, i, g) {
1856
- return t.validate(t.options, a, i, g);
1855
+ function y(t, a, l, g) {
1856
+ return t.validate(t.options, a, l, g);
1857
1857
  }
1858
1858
  var j = {
1859
1859
  $eq: C(function(t, a) {
@@ -1883,50 +1883,50 @@ var Le = { exports: {} };
1883
1883
  $nin: function(t, a) {
1884
1884
  return t(a);
1885
1885
  },
1886
- $not: function(t, a, i, g) {
1887
- return t(a, i, g);
1886
+ $not: function(t, a, l, g) {
1887
+ return t(a, l, g);
1888
1888
  },
1889
1889
  $type: function(t, a) {
1890
1890
  return t(a);
1891
1891
  },
1892
- $all: function(t, a, i, g) {
1893
- return j.$and(t, a, i, g);
1892
+ $all: function(t, a, l, g) {
1893
+ return j.$and(t, a, l, g);
1894
1894
  },
1895
1895
  $size: function(t, a) {
1896
1896
  return !!a && t === a.length;
1897
1897
  },
1898
- $or: function(t, a, i, g) {
1898
+ $or: function(t, a, l, g) {
1899
1899
  for (var d = 0, p = t.length; d < p; d++)
1900
- if (h(D(t, d), a, i, g)) return !0;
1900
+ if (y(D(t, d), a, l, g)) return !0;
1901
1901
  return !1;
1902
1902
  },
1903
- $nor: function(t, a, i, g) {
1904
- return !j.$or(t, a, i, g);
1903
+ $nor: function(t, a, l, g) {
1904
+ return !j.$or(t, a, l, g);
1905
1905
  },
1906
- $and: function(t, a, i, g) {
1906
+ $and: function(t, a, l, g) {
1907
1907
  for (var d = 0, p = t.length; d < p; d++)
1908
- if (!h(D(t, d), a, i, g)) return !1;
1908
+ if (!y(D(t, d), a, l, g)) return !1;
1909
1909
  return !0;
1910
1910
  },
1911
1911
  $regex: C(function(t, a) {
1912
1912
  return typeof a == "string" && t.test(a);
1913
1913
  }),
1914
- $where: function(t, a, i, g) {
1915
- return t.call(a, a, i, g);
1914
+ $where: function(t, a, l, g) {
1915
+ return t.call(a, a, l, g);
1916
1916
  },
1917
- $elemMatch: function(t, a, i, g) {
1917
+ $elemMatch: function(t, a, l, g) {
1918
1918
  return m(a) ? !!~function(d, p) {
1919
1919
  for (var f = 0; f < d.length; f++)
1920
- if (D(d, f), h(p, D(d, f))) return f;
1920
+ if (D(d, f), y(p, D(d, f))) return f;
1921
1921
  return -1;
1922
- }(a, t) : h(t, a, i, g);
1922
+ }(a, t) : y(t, a, l, g);
1923
1923
  },
1924
- $exists: function(t, a, i, g) {
1925
- return g.hasOwnProperty(i) === t;
1924
+ $exists: function(t, a, l, g) {
1925
+ return g.hasOwnProperty(l) === t;
1926
1926
  }
1927
1927
  }, q = {
1928
- $eq: function(t, a, i) {
1929
- var g = i.comparable, d = i.compare;
1928
+ $eq: function(t, a, l) {
1929
+ var g = l.comparable, d = l.compare;
1930
1930
  return t instanceof RegExp ? C(function(p) {
1931
1931
  return typeof p == "string" && t.test(p);
1932
1932
  }) : t instanceof Function ? C(t) : m(t) && !t.length ? C(function(p) {
@@ -1939,32 +1939,32 @@ var Le = { exports: {} };
1939
1939
  }
1940
1940
  );
1941
1941
  },
1942
- $gt: function(t, a, i) {
1943
- var g = i.comparable, d = i.compare;
1942
+ $gt: function(t, a, l) {
1943
+ var g = l.comparable, d = l.compare;
1944
1944
  return function(p) {
1945
1945
  return d(g(p), g(t)) > 0;
1946
1946
  };
1947
1947
  },
1948
- $gte: function(t, a, i) {
1949
- var g = i.comparable, d = i.compare;
1948
+ $gte: function(t, a, l) {
1949
+ var g = l.comparable, d = l.compare;
1950
1950
  return function(p) {
1951
1951
  return d(g(p), g(t)) >= 0;
1952
1952
  };
1953
1953
  },
1954
- $lt: function(t, a, i) {
1955
- var g = i.comparable, d = i.compare;
1954
+ $lt: function(t, a, l) {
1955
+ var g = l.comparable, d = l.compare;
1956
1956
  return function(p) {
1957
1957
  return d(g(p), g(t)) < 0;
1958
1958
  };
1959
1959
  },
1960
- $lte: function(t, a, i) {
1961
- var g = i.comparable, d = i.compare;
1960
+ $lte: function(t, a, l) {
1961
+ var g = l.comparable, d = l.compare;
1962
1962
  return function(p) {
1963
1963
  return d(g(p), g(t)) <= 0;
1964
1964
  };
1965
1965
  },
1966
- $in: function(t, a, i) {
1967
- var g = i.comparable;
1966
+ $in: function(t, a, l) {
1967
+ var g = l.comparable;
1968
1968
  return function(d) {
1969
1969
  if (!(d instanceof Array)) {
1970
1970
  var p = g(d);
@@ -1977,7 +1977,7 @@ var Le = { exports: {} };
1977
1977
  for (M = t.length; M--; ) if (t[M] == null) return !0;
1978
1978
  }
1979
1979
  for (M = t.length; M--; ) {
1980
- var f = h(de(D(t, M), i), p, M, t);
1980
+ var f = y(de(D(t, M), l), p, M, t);
1981
1981
  if (f && String(f) !== "[object Object]" && String(p) !== "[object Object]")
1982
1982
  return !0;
1983
1983
  }
@@ -1988,8 +1988,8 @@ var Le = { exports: {} };
1988
1988
  return !1;
1989
1989
  };
1990
1990
  },
1991
- $nin: function(t, a, i) {
1992
- var g = q.$in(t, a, i);
1991
+ $nin: function(t, a, l) {
1992
+ var g = q.$in(t, a, l);
1993
1993
  return function(d, p, f, M) {
1994
1994
  return !g(d, p, f, M);
1995
1995
  };
@@ -1999,32 +1999,32 @@ var Le = { exports: {} };
1999
1999
  return a % t[0] == t[1];
2000
2000
  };
2001
2001
  },
2002
- $ne: function(t, a, i) {
2003
- var g = q.$eq(t, a, i);
2002
+ $ne: function(t, a, l) {
2003
+ var g = q.$eq(t, a, l);
2004
2004
  return P(function(d, p, f, M) {
2005
2005
  return !g(d, p, f, M);
2006
2006
  });
2007
2007
  },
2008
- $and: function(t, a, i) {
2009
- return t.map(I(i));
2008
+ $and: function(t, a, l) {
2009
+ return t.map(I(l));
2010
2010
  },
2011
- $all: function(t, a, i) {
2012
- return q.$and(t, a, i);
2011
+ $all: function(t, a, l) {
2012
+ return q.$and(t, a, l);
2013
2013
  },
2014
- $or: function(t, a, i) {
2015
- return t.map(I(i));
2014
+ $or: function(t, a, l) {
2015
+ return t.map(I(l));
2016
2016
  },
2017
- $nor: function(t, a, i) {
2018
- return t.map(I(i));
2017
+ $nor: function(t, a, l) {
2018
+ return t.map(I(l));
2019
2019
  },
2020
- $not: function(t, a, i) {
2021
- var g = I(i)(t);
2020
+ $not: function(t, a, l) {
2021
+ var g = I(l)(t);
2022
2022
  return function(d, p, f) {
2023
- return !h(g, d, p, f);
2023
+ return !y(g, d, p, f);
2024
2024
  };
2025
2025
  },
2026
2026
  $type: function(t) {
2027
- return function(a, i, g) {
2027
+ return function(a, l, g) {
2028
2028
  return a != null && (a instanceof t || a.constructor == t);
2029
2029
  };
2030
2030
  },
@@ -2037,8 +2037,8 @@ var Le = { exports: {} };
2037
2037
  'In CSP mode, sift does not support strings in "$where" condition'
2038
2038
  );
2039
2039
  },
2040
- $elemMatch: function(t, a, i) {
2041
- return I(i)(t);
2040
+ $elemMatch: function(t, a, l) {
2041
+ return I(l)(t);
2042
2042
  },
2043
2043
  $exists: function(t) {
2044
2044
  return !!t;
@@ -2048,7 +2048,7 @@ var Le = { exports: {} };
2048
2048
  return { options: t, validate: a };
2049
2049
  }
2050
2050
  function ct(t, a) {
2051
- var i = t.keyPath, g = t.child, d = t.query, p = [];
2051
+ var l = t.keyPath, g = t.child, d = t.query, p = [];
2052
2052
  if (function pe(F, U, R, ut, se) {
2053
2053
  if (R === U.length || F == null)
2054
2054
  return void se.push([F, U[R - 1], ut]);
@@ -2056,44 +2056,44 @@ var Le = { exports: {} };
2056
2056
  if (m(F) && isNaN(Number(be)))
2057
2057
  for (var re = 0, gt = F.length; re < gt; re++) pe(D(F, re), U, R, F, se);
2058
2058
  else pe(D(F, be), U, R + 1, F, se);
2059
- }(a, i, 0, a, p), p.length === 1) {
2059
+ }(a, l, 0, a, p), p.length === 1) {
2060
2060
  var f = p[0];
2061
- return h(g, f[0], f[1], f[2]);
2061
+ return y(g, f[0], f[1], f[2]);
2062
2062
  }
2063
- for (var M = d && d.$ne !== void 0, G = M, E = 0; E < p.length; E++) {
2064
- var Q = p[E], J = h(g, Q[0], Q[1], Q[2]);
2065
- M ? G &= J : G |= J;
2063
+ for (var M = d && d.$ne !== void 0, h = M, E = 0; E < p.length; E++) {
2064
+ var Q = p[E], J = y(g, Q[0], Q[1], Q[2]);
2065
+ M ? h &= J : h |= J;
2066
2066
  }
2067
- return G;
2067
+ return h;
2068
2068
  }
2069
- function it(t, a, i) {
2070
- return H({ keyPath: t, child: a, query: i }, ct);
2069
+ function it(t, a, l) {
2070
+ return H({ keyPath: t, child: a, query: l }, ct);
2071
2071
  }
2072
2072
  function I(t) {
2073
- var a = t.comparable, i = t.expressions, g = function(f) {
2073
+ var a = t.comparable, l = t.expressions, g = function(f) {
2074
2074
  var M;
2075
2075
  return (!f || !(M = f) || M.constructor !== Object && M.constructor !== Array && M.constructor.toString() !== "function Object() { [native code] }" && M.constructor.toString() !== "function Array() { [native code] }" || M.toJSON) && (f = { $eq: f }), f;
2076
2076
  }, d = function(f) {
2077
2077
  f = a(f);
2078
2078
  var M = [];
2079
- for (var G in f) {
2080
- var E = f[G];
2081
- if (G !== "$options") {
2082
- var Q = j[G] || t && i && i[G];
2083
- if (Q) q[G] && (E = q[G](E, f, t)), M.push(H(a(E), Q));
2079
+ for (var h in f) {
2080
+ var E = f[h];
2081
+ if (h !== "$options") {
2082
+ var Q = j[h] || t && l && l[h];
2083
+ if (Q) q[h] && (E = q[h](E, f, t)), M.push(H(a(E), Q));
2084
2084
  else {
2085
- if (G.charCodeAt(0) === 36)
2086
- throw new Error("Unknown operation " + G);
2087
- var J = G.split(".");
2085
+ if (h.charCodeAt(0) === 36)
2086
+ throw new Error("Unknown operation " + h);
2087
+ var J = h.split(".");
2088
2088
  M.push(it(J, p(E), E));
2089
2089
  }
2090
2090
  }
2091
2091
  }
2092
2092
  return M.length === 1 ? M[0] : H(M, j.$and);
2093
2093
  }, p = function(f) {
2094
- return f = g(f), function M(G, E) {
2095
- if (!b(G)) return E;
2096
- for (var Q in G) E.push(Q), M(G[Q], E);
2094
+ return f = g(f), function M(h, E) {
2095
+ if (!b(h)) return E;
2096
+ for (var Q in h) E.push(Q), M(h[Q], E);
2097
2097
  return E;
2098
2098
  }(f, []).join(",").search(/[$.]/) === -1 ? H(f, K) : d(f);
2099
2099
  };
@@ -2106,7 +2106,7 @@ var Le = { exports: {} };
2106
2106
  return !1;
2107
2107
  if (b(t)) {
2108
2108
  if (Object.keys(t).length !== Object.keys(a).length) return !1;
2109
- for (var i in t) if (!K(t[i], a[i])) return !1;
2109
+ for (var l in t) if (!K(t[l], a[l])) return !1;
2110
2110
  return !0;
2111
2111
  }
2112
2112
  if (m(t)) {
@@ -2118,18 +2118,18 @@ var Le = { exports: {} };
2118
2118
  return t === a;
2119
2119
  }
2120
2120
  function de(t, a) {
2121
- var i = I(a)(t);
2122
- return a && a.select && (i = {
2123
- options: i,
2121
+ var l = I(a)(t);
2122
+ return a && a.select && (l = {
2123
+ options: l,
2124
2124
  validate: function(g, d, p, f) {
2125
- return h(g, d && a.select(d), p, f);
2125
+ return y(g, d && a.select(d), p, f);
2126
2126
  }
2127
- }), i;
2127
+ }), l;
2128
2128
  }
2129
2129
  function lt(t, a) {
2130
- var i = de(t, a = Object.assign({ compare: Be, comparable: te }, a));
2130
+ var l = de(t, a = Object.assign({ compare: Be, comparable: te }, a));
2131
2131
  return function(g, d, p) {
2132
- return h(i, g, d, p);
2132
+ return y(l, g, d, p);
2133
2133
  };
2134
2134
  }
2135
2135
  function Be(t, a) {
@@ -2283,7 +2283,7 @@ function Ys(e) {
2283
2283
  }), c = o.length > 1 ? "(?:" + o.join("|") + ")" : o[0];
2284
2284
  return new RegExp("^" + c + "$");
2285
2285
  }
2286
- var hs = /* @__PURE__ */ function() {
2286
+ var ys = /* @__PURE__ */ function() {
2287
2287
  function e(c) {
2288
2288
  this.actions = c.actions || c.action, this.subject = c.subject, this.fields = !c.fields || c.fields.length === 0 ? void 0 : oe(c.fields), Object.defineProperty(this, "_fieldsPattern", {
2289
2289
  writable: !0
@@ -2306,7 +2306,7 @@ var hs = /* @__PURE__ */ function() {
2306
2306
  function Ye(e, o) {
2307
2307
  return e === o || Array.isArray(o) && o.indexOf(e) !== -1;
2308
2308
  }
2309
- var Gs = /* @__PURE__ */ function() {
2309
+ var hs = /* @__PURE__ */ function() {
2310
2310
  e.addAlias = function(r, A) {
2311
2311
  if (r === "manage" || Ye("manage", A))
2312
2312
  throw new Error('Cannot add alias for "manage" action because it represents any action');
@@ -2318,7 +2318,7 @@ var Gs = /* @__PURE__ */ function() {
2318
2318
  r === void 0 && (r = {}), Object.defineProperty(this, "subjectName", {
2319
2319
  value: r.subjectName || ps
2320
2320
  }), this[x] = {
2321
- RuleType: r.RuleType || hs,
2321
+ RuleType: r.RuleType || ys,
2322
2322
  originalRules: c || [],
2323
2323
  hasPerFieldRules: !1,
2324
2324
  indexedRules: /* @__PURE__ */ Object.create(null),
@@ -2342,8 +2342,8 @@ var Gs = /* @__PURE__ */ function() {
2342
2342
  for (var A = /* @__PURE__ */ Object.create(null), n = this[x].RuleType, u = !0, m = !1, b = 0; b < r.length; b++) {
2343
2343
  var v = new n(r[b]), D = this.expandActions(v.actions), C = oe(v.subject), P = r.length - b - 1;
2344
2344
  u = !!(u && v.inverted), !m && v.fields && (m = !0);
2345
- for (var h = 0; h < C.length; h++) {
2346
- var j = C[h];
2345
+ for (var y = 0; y < C.length; y++) {
2346
+ var j = C[y];
2347
2347
  A[j] = A[j] || /* @__PURE__ */ Object.create(null);
2348
2348
  for (var q = 0; q < D.length; q++) {
2349
2349
  var H = D[q];
@@ -2413,39 +2413,40 @@ var Gs = /* @__PURE__ */ function() {
2413
2413
  return this[x].originalRules;
2414
2414
  }
2415
2415
  }]), e;
2416
- }(), s = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(s || {}), l = /* @__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_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))(l || {}), Y = /* @__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))(Y || {}), _e = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(_e || {});
2416
+ }(), s = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(s || {}), i = /* @__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.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))(i || {}), Y = /* @__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))(Y || {}), _e = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(_e || {});
2417
2417
  const w = {
2418
2418
  general: "General",
2419
2419
  inventory: "Inventory",
2420
2420
  hrm: "HRM",
2421
2421
  crm: "CRM",
2422
+ payment: "Payment",
2422
2423
  report: "Report",
2423
2424
  reports: "Default Report",
2424
2425
  customReports: "Custom Report"
2425
- }, ys = "access-denied", S = {
2426
+ }, Gs = "access-denied", S = {
2426
2427
  Action: s,
2427
2428
  Subject: {
2428
- Business: l,
2429
+ Business: i,
2429
2430
  Restaurant: _e
2430
2431
  }
2431
2432
  }, $e = {
2432
- [Y.permission]: l.hrm_teamMember,
2433
- [Y.promotion]: l.crm_promotion,
2434
- [Y.voucher]: l.crm_voucher,
2435
- [Y.membership]: l.crm_membership,
2436
- [Y.stock]: l.inventory_stock,
2437
- [Y.wastageTemplate]: l.inventory_wastageTemplate,
2438
- [Y.closingTemplate]: l.inventory_closingTemplate,
2439
- [Y.orderTemplate]: l.inventory_orderTemplate,
2440
- [Y.ingredient]: l.inventory_ingredient,
2441
- [Y.recipe]: l.inventory_recipe,
2442
- [Y.unit]: l.inventory_unit,
2443
- [Y.supplier]: l.inventory_supplier,
2444
- [Y.warehouse]: l.inventory_warehouse,
2445
- [Y.publish]: l.inventory_publish,
2446
- [Y.integration]: l.inventory_integration,
2447
- [Y.orderDraft]: l.inventory_orderDraftApproval,
2448
- [Y.unitCostHistory]: l.inventory_unitCostHistory
2433
+ [Y.permission]: i.hrm_teamMember,
2434
+ [Y.promotion]: i.crm_promotion,
2435
+ [Y.voucher]: i.crm_voucher,
2436
+ [Y.membership]: i.crm_membership,
2437
+ [Y.stock]: i.inventory_stock,
2438
+ [Y.wastageTemplate]: i.inventory_wastageTemplate,
2439
+ [Y.closingTemplate]: i.inventory_closingTemplate,
2440
+ [Y.orderTemplate]: i.inventory_orderTemplate,
2441
+ [Y.ingredient]: i.inventory_ingredient,
2442
+ [Y.recipe]: i.inventory_recipe,
2443
+ [Y.unit]: i.inventory_unit,
2444
+ [Y.supplier]: i.inventory_supplier,
2445
+ [Y.warehouse]: i.inventory_warehouse,
2446
+ [Y.publish]: i.inventory_publish,
2447
+ [Y.integration]: i.inventory_integration,
2448
+ [Y.orderDraft]: i.inventory_orderDraftApproval,
2449
+ [Y.unitCostHistory]: i.inventory_unitCostHistory
2449
2450
  };
2450
2451
  function Vs(e) {
2451
2452
  return $e[e] ?? e;
@@ -2458,229 +2459,254 @@ const Qr = {
2458
2459
  // General
2459
2460
  restaurant: {
2460
2461
  label: "Restaurant Owner",
2461
- subject: l.restaurant,
2462
+ subject: i.restaurant,
2462
2463
  actions: [s.manage],
2463
2464
  category: w.general
2464
2465
  },
2465
2466
  menu: {
2466
2467
  label: "Menu Management",
2467
- subject: l.menu,
2468
+ subject: i.menu,
2468
2469
  actions: [s.manage],
2469
2470
  category: w.general
2470
2471
  },
2471
2472
  // inventory
2472
2473
  stockBalance: {
2473
2474
  label: "Stock Balance Management",
2474
- subject: l.inventory_stockBalance,
2475
+ subject: i.inventory_stockBalance,
2475
2476
  actions: [s.manage],
2476
2477
  category: w.inventory
2477
2478
  },
2478
2479
  stockAdjustment: {
2479
2480
  label: "Stock Adjustment Management",
2480
- subject: l.inventory_stockAdjustment,
2481
+ subject: i.inventory_stockAdjustment,
2481
2482
  actions: [s.manage],
2482
2483
  category: w.inventory
2483
2484
  },
2484
2485
  unitCostHistory: {
2485
2486
  label: "Unit Cost History Management",
2486
- subject: l.inventory_unitCostHistory,
2487
+ subject: i.inventory_unitCostHistory,
2487
2488
  actions: [s.manage],
2488
2489
  category: w.inventory
2489
2490
  },
2490
2491
  wastageTemplate: {
2491
2492
  label: "Wastage Template Management",
2492
- subject: l.inventory_wastageTemplate,
2493
+ subject: i.inventory_wastageTemplate,
2493
2494
  actions: [s.manage],
2494
2495
  category: w.inventory,
2495
2496
  showByFeatureFlag: "inventory_pos_adjust_v2_wastage"
2496
2497
  },
2497
2498
  closingHistory: {
2498
2499
  label: "Closing History Management",
2499
- subject: l.inventory_closingHistory,
2500
+ subject: i.inventory_closingHistory,
2500
2501
  actions: [s.manage],
2501
2502
  category: w.inventory
2502
2503
  },
2503
2504
  closingTemplate: {
2504
2505
  label: "Closing Template Management",
2505
- subject: l.inventory_closingTemplate,
2506
+ subject: i.inventory_closingTemplate,
2506
2507
  actions: [s.manage],
2507
2508
  category: w.inventory,
2508
2509
  showByFeatureFlag: "inventory_pos_closing_v2"
2509
2510
  },
2510
2511
  closingDraft: {
2511
2512
  label: "Closing Draft Management",
2512
- subject: l.inventory_closingDraft,
2513
+ subject: i.inventory_closingDraft,
2513
2514
  actions: [s.manage],
2514
2515
  category: w.inventory,
2515
2516
  showByFeatureFlag: "inventory_pos_closing_v2"
2516
2517
  },
2517
2518
  ingredient: {
2518
2519
  label: "Ingredient Management",
2519
- subject: l.inventory_ingredient,
2520
+ subject: i.inventory_ingredient,
2520
2521
  actions: [s.manage],
2521
2522
  category: w.inventory
2522
2523
  },
2523
2524
  ingredientGroup: {
2524
2525
  label: "Ingredient Group Management",
2525
- subject: l.inventory_ingredientGroup,
2526
+ subject: i.inventory_ingredientGroup,
2526
2527
  actions: [s.manage],
2527
2528
  showByFeatureFlag: "inventory_ingredient_group",
2528
2529
  category: w.inventory
2529
2530
  },
2530
2531
  recipe: {
2531
2532
  label: "Recipe Management",
2532
- subject: l.inventory_recipe,
2533
+ subject: i.inventory_recipe,
2533
2534
  actions: [s.manage],
2534
2535
  category: w.inventory
2535
2536
  },
2536
2537
  unit: {
2537
2538
  label: "Unit Management",
2538
- subject: l.inventory_unit,
2539
+ subject: i.inventory_unit,
2539
2540
  actions: [s.manage],
2540
2541
  category: w.inventory
2541
2542
  },
2542
2543
  purchaseTransfer: {
2543
2544
  label: "Purchase / Transfer Management",
2544
- subject: l.inventory_purchaseTransfer,
2545
+ subject: i.inventory_purchaseTransfer,
2545
2546
  actions: [s.manage],
2546
2547
  category: w.inventory
2547
2548
  },
2548
2549
  orderDraftApproval: {
2549
2550
  label: "Order Draft Approval",
2550
- subject: l.inventory_orderDraftApproval,
2551
+ subject: i.inventory_orderDraftApproval,
2551
2552
  actions: [s.manage],
2552
2553
  category: w.inventory
2553
2554
  },
2554
2555
  transferOut: {
2555
2556
  label: "Transfer Out Management",
2556
- subject: l.inventory_transferOut,
2557
+ subject: i.inventory_transferOut,
2557
2558
  actions: [s.manage],
2558
2559
  category: w.inventory
2559
2560
  },
2560
2561
  surcharge: {
2561
2562
  label: "Surcharge Management",
2562
- subject: l.inventory_surcharge,
2563
+ subject: i.inventory_surcharge,
2563
2564
  actions: [s.manage],
2564
2565
  showByFeatureFlag: "inventory_portal_surcharge",
2565
2566
  category: w.inventory
2566
2567
  },
2567
2568
  orderTemplate: {
2568
2569
  label: "Order Template Management",
2569
- subject: l.inventory_orderTemplate,
2570
+ subject: i.inventory_orderTemplate,
2570
2571
  actions: [s.manage],
2571
2572
  showByFeatureFlag: "inventory_portal_must_use_transfer_template",
2572
2573
  category: w.inventory
2573
2574
  },
2574
2575
  supplier: {
2575
2576
  label: "Supplier Management",
2576
- subject: l.inventory_supplier,
2577
+ subject: i.inventory_supplier,
2577
2578
  actions: [s.manage],
2578
2579
  category: w.inventory
2579
2580
  },
2580
2581
  warehouse: {
2581
2582
  label: "Warehouse Management",
2582
- subject: l.inventory_warehouse,
2583
+ subject: i.inventory_warehouse,
2583
2584
  actions: [s.manage],
2584
2585
  category: w.inventory
2585
2586
  },
2586
2587
  publish: {
2587
2588
  label: "Publish Management",
2588
- subject: l.inventory_publish,
2589
+ subject: i.inventory_publish,
2589
2590
  actions: [s.manage],
2590
2591
  category: w.inventory
2591
2592
  },
2592
2593
  import: {
2593
2594
  label: "Import Management",
2594
- subject: l.inventory_import,
2595
+ subject: i.inventory_import,
2595
2596
  actions: [s.manage],
2596
2597
  showByFeatureFlag: "inventory_bulk_import",
2597
2598
  category: w.inventory
2598
2599
  },
2599
2600
  integration: {
2600
2601
  label: "Integration Management",
2601
- subject: l.inventory_integration,
2602
+ subject: i.inventory_integration,
2602
2603
  actions: [s.manage],
2603
2604
  category: w.inventory
2604
2605
  },
2605
2606
  // CRM
2606
2607
  promotion: {
2607
2608
  label: "Promotion Management",
2608
- subject: l.crm_promotion,
2609
+ subject: i.crm_promotion,
2609
2610
  actions: [s.manage],
2610
2611
  category: w.crm
2611
2612
  },
2612
2613
  voucher: {
2613
2614
  label: "Voucher Management",
2614
- subject: l.crm_voucher,
2615
+ subject: i.crm_voucher,
2615
2616
  actions: [s.manage],
2616
2617
  category: w.crm
2617
2618
  },
2618
2619
  membership: {
2619
2620
  label: "Membership Management",
2620
- subject: l.crm_membership,
2621
+ subject: i.crm_membership,
2621
2622
  actions: [s.manage],
2622
2623
  category: w.crm
2623
2624
  },
2625
+ // Payment
2626
+ payoutAccount: {
2627
+ label: "Payout Account Management",
2628
+ subject: i.payment_payoutAccount,
2629
+ actions: [s.manage],
2630
+ category: w.payment
2631
+ },
2632
+ paymentOnboarding: {
2633
+ label: "Payment Onboarding Management",
2634
+ subject: i.payment_paymentOnboarding,
2635
+ actions: [s.manage],
2636
+ category: w.payment
2637
+ },
2638
+ transactions: {
2639
+ label: "Transactions Management",
2640
+ subject: i.payment_transactions,
2641
+ actions: [s.manage],
2642
+ category: w.payment
2643
+ },
2644
+ settlements: {
2645
+ label: "Settlements Management",
2646
+ subject: i.payment_settlements,
2647
+ actions: [s.manage],
2648
+ category: w.payment
2649
+ },
2624
2650
  // HRM
2625
2651
  teamMember: {
2626
2652
  label: "Team Member Management",
2627
- subject: l.hrm_teamMember,
2653
+ subject: i.hrm_teamMember,
2628
2654
  actions: [s.manage],
2629
2655
  category: w.hrm
2630
2656
  },
2631
2657
  employee: {
2632
2658
  label: "Employee Management",
2633
- subject: l.hrm_employee,
2659
+ subject: i.hrm_employee,
2634
2660
  actions: [s.manage],
2635
2661
  category: w.hrm
2636
2662
  },
2637
2663
  auditLog: {
2638
2664
  label: "Audit Log Management",
2639
- subject: l.hrm_auditLog,
2665
+ subject: i.hrm_auditLog,
2640
2666
  actions: [s.manage],
2641
2667
  category: w.hrm
2642
2668
  },
2643
2669
  // Report
2644
2670
  report_reports: {
2645
2671
  label: "Create Report",
2646
- subject: l.report_createReport,
2672
+ subject: i.report_createReport,
2647
2673
  actions: [s.manage],
2648
2674
  category: w.report
2649
2675
  },
2650
2676
  report_accessOverview: {
2651
2677
  label: "Access Overview Page",
2652
- subject: l.report_accessOverview,
2678
+ subject: i.report_accessOverview,
2653
2679
  actions: [s.manage],
2654
2680
  category: w.report
2655
2681
  },
2656
2682
  report_accessInsight: {
2657
2683
  label: "Access Insight Page",
2658
- subject: l.report_accessInsight,
2684
+ subject: i.report_accessInsight,
2659
2685
  actions: [s.manage],
2660
2686
  category: w.report
2661
2687
  },
2662
2688
  report_accessSetting: {
2663
2689
  label: "Access Setting Page",
2664
- subject: l.report_accessSetting,
2690
+ subject: i.report_accessSetting,
2665
2691
  actions: [s.manage],
2666
2692
  category: w.report
2667
2693
  },
2668
2694
  report_accessIntegration: {
2669
2695
  label: "Access Integration Page",
2670
- subject: l.report_accessIntegration,
2696
+ subject: i.report_accessIntegration,
2671
2697
  actions: [s.manage],
2672
2698
  category: w.report
2673
2699
  },
2674
2700
  report_reports_allDefaultReports: {
2675
2701
  label: "Include future Default Reports",
2676
- subject: l.report_reports_allDefaultReports,
2702
+ subject: i.report_reports_allDefaultReports,
2677
2703
  actions: [s.manage, s.read, s.create],
2678
2704
  category: w.reports,
2679
2705
  isCategoryCover: !0
2680
2706
  },
2681
2707
  report_reports_allCustomReports: {
2682
2708
  label: "Include future Custom Reports",
2683
- subject: l.report_reports_allCustomReports,
2709
+ subject: i.report_reports_allCustomReports,
2684
2710
  actions: [
2685
2711
  s.manage,
2686
2712
  s.read,
@@ -3030,107 +3056,107 @@ const Hs = [
3030
3056
  ...me
3031
3057
  ];
3032
3058
  const Is = {
3033
- [`set_${l.inventory_stockBalance}`]: {
3059
+ [`set_${i.inventory_stockBalance}`]: {
3034
3060
  key: "sys:inventory:stock_balance",
3035
3061
  name: "Stock Balance",
3036
3062
  permissions: ge
3037
3063
  },
3038
- [`set_${l.inventory_stockAdjustment}`]: {
3064
+ [`set_${i.inventory_stockAdjustment}`]: {
3039
3065
  key: "sys:inventory:stock_adjustment",
3040
3066
  name: "Stock Adjustment",
3041
3067
  permissions: js
3042
3068
  },
3043
- [`set_${l.inventory_unitCostHistory}`]: {
3069
+ [`set_${i.inventory_unitCostHistory}`]: {
3044
3070
  key: "sys:inventory:unit_cost_history",
3045
3071
  name: "Unit Cost History",
3046
3072
  permissions: et
3047
3073
  },
3048
- [`set_${l.inventory_wastageTemplate}`]: {
3074
+ [`set_${i.inventory_wastageTemplate}`]: {
3049
3075
  key: "sys:inventory:wastage_template",
3050
3076
  name: "Wastage Template",
3051
3077
  permissions: tt
3052
3078
  },
3053
- [`set_${l.inventory_closingHistory}`]: {
3079
+ [`set_${i.inventory_closingHistory}`]: {
3054
3080
  key: "sys:inventory:closing_history",
3055
3081
  name: "Closing History",
3056
3082
  permissions: me
3057
3083
  },
3058
- [`set_${l.inventory_closingTemplate}`]: {
3084
+ [`set_${i.inventory_closingTemplate}`]: {
3059
3085
  key: "sys:inventory:closing_template",
3060
3086
  name: "Closing Template",
3061
3087
  permissions: rt
3062
3088
  },
3063
- [`set_${l.inventory_closingDraft}`]: {
3089
+ [`set_${i.inventory_closingDraft}`]: {
3064
3090
  key: "sys:inventory:closing_draft",
3065
3091
  name: "Closing Draft",
3066
3092
  permissions: st
3067
3093
  },
3068
- [`set_${l.inventory_ingredient}`]: {
3094
+ [`set_${i.inventory_ingredient}`]: {
3069
3095
  key: "sys:inventory:ingredient",
3070
3096
  name: "Ingredient",
3071
3097
  permissions: Es
3072
3098
  },
3073
- [`set_${l.inventory_ingredientGroup}`]: {
3099
+ [`set_${i.inventory_ingredientGroup}`]: {
3074
3100
  key: "sys:inventory:ingredient_group",
3075
3101
  name: "Ingredient Group",
3076
3102
  permissions: xs
3077
3103
  },
3078
- [`set_${l.inventory_recipe}`]: {
3104
+ [`set_${i.inventory_recipe}`]: {
3079
3105
  key: "sys:inventory:recipe",
3080
3106
  name: "Recipe",
3081
3107
  permissions: qs
3082
3108
  },
3083
- [`set_${l.inventory_unit}`]: {
3109
+ [`set_${i.inventory_unit}`]: {
3084
3110
  key: "sys:inventory:unit",
3085
3111
  name: "Unit",
3086
3112
  permissions: Qs
3087
3113
  },
3088
- [`set_${l.inventory_purchaseTransfer}`]: {
3114
+ [`set_${i.inventory_purchaseTransfer}`]: {
3089
3115
  key: "sys:inventory:purchase_transfer",
3090
3116
  name: "Purchase Transfer",
3091
3117
  permissions: At
3092
3118
  },
3093
- [`set_${l.inventory_orderDraftApproval}`]: {
3119
+ [`set_${i.inventory_orderDraftApproval}`]: {
3094
3120
  key: "sys:inventory:order_draft_approval",
3095
3121
  name: "Order Draft Approval",
3096
3122
  permissions: Xs
3097
3123
  },
3098
- [`set_${l.inventory_transferOut}`]: {
3124
+ [`set_${i.inventory_transferOut}`]: {
3099
3125
  key: "sys:inventory:transfer_out",
3100
3126
  name: "Transfer Out",
3101
3127
  permissions: at
3102
3128
  },
3103
- [`set_${l.inventory_surcharge}`]: {
3129
+ [`set_${i.inventory_surcharge}`]: {
3104
3130
  key: "sys:inventory:surcharge",
3105
3131
  name: "Surcharge",
3106
3132
  permissions: nt
3107
3133
  },
3108
- [`set_${l.inventory_orderTemplate}`]: {
3134
+ [`set_${i.inventory_orderTemplate}`]: {
3109
3135
  key: "sys:inventory:order_template",
3110
3136
  name: "Order Template",
3111
3137
  permissions: ot
3112
3138
  },
3113
- [`set_${l.inventory_supplier}`]: {
3139
+ [`set_${i.inventory_supplier}`]: {
3114
3140
  key: "sys:inventory:supplier",
3115
3141
  name: "Supplier",
3116
3142
  permissions: Hs
3117
3143
  },
3118
- [`set_${l.inventory_warehouse}`]: {
3144
+ [`set_${i.inventory_warehouse}`]: {
3119
3145
  key: "sys:inventory:warehouse",
3120
3146
  name: "Warehouse",
3121
3147
  permissions: Fs
3122
3148
  },
3123
- [`set_${l.inventory_publish}`]: {
3149
+ [`set_${i.inventory_publish}`]: {
3124
3150
  key: "sys:inventory:publish",
3125
3151
  name: "Publish",
3126
3152
  permissions: Ps
3127
3153
  },
3128
- [`set_${l.inventory_import}`]: {
3154
+ [`set_${i.inventory_import}`]: {
3129
3155
  key: "sys:inventory:import",
3130
3156
  name: "Import",
3131
3157
  permissions: Os
3132
3158
  },
3133
- [`set_${l.inventory_integration}`]: {
3159
+ [`set_${i.inventory_integration}`]: {
3134
3160
  key: "sys:inventory:integration",
3135
3161
  name: "Integration",
3136
3162
  permissions: Zs
@@ -3143,7 +3169,7 @@ const zs = {
3143
3169
  * Injects: team member list read + pos role read
3144
3170
  * Users who can manage team members need to see the team member list and assign POS roles.
3145
3171
  */
3146
- [`set_${l.hrm_teamMember}`]: {
3172
+ [`set_${i.hrm_teamMember}`]: {
3147
3173
  key: "sys:team_member_access",
3148
3174
  name: "Team Member Access",
3149
3175
  permissions: [
@@ -3154,7 +3180,7 @@ const zs = {
3154
3180
  },
3155
3181
  {
3156
3182
  label: "Role resource",
3157
- subject: l.role,
3183
+ subject: i.role,
3158
3184
  actions: [s.read, s.update]
3159
3185
  },
3160
3186
  {
@@ -3168,7 +3194,7 @@ const zs = {
3168
3194
  * Triggered by: hrm_employee:manage (portal toggle)
3169
3195
  * Injects: pos role read + restaurant manage (cross-level: needed for employee–restaurant linking)
3170
3196
  */
3171
- [`set_${l.hrm_employee}`]: {
3197
+ [`set_${i.hrm_employee}`]: {
3172
3198
  key: "sys:employee_access",
3173
3199
  name: "Employee Access",
3174
3200
  permissions: [
@@ -3179,7 +3205,7 @@ const zs = {
3179
3205
  },
3180
3206
  {
3181
3207
  label: "Restaurant resource",
3182
- subject: l.restaurant,
3208
+ subject: i.restaurant,
3183
3209
  actions: [s.read]
3184
3210
  },
3185
3211
  {
@@ -3195,7 +3221,7 @@ const zs = {
3195
3221
  * Uses HrmResource.hrm_portalUsers (not the module subject hrm_teamMember) to avoid
3196
3222
  * conflating the audit-log read dependency with the full team-management module grant.
3197
3223
  */
3198
- [`set_${l.hrm_auditLog}`]: {
3224
+ [`set_${i.hrm_auditLog}`]: {
3199
3225
  key: "sys:audit_log_access",
3200
3226
  name: "Audit Log Access",
3201
3227
  permissions: [
@@ -3226,7 +3252,7 @@ function Ws(e) {
3226
3252
  }));
3227
3253
  }
3228
3254
  function Us(e) {
3229
- return new Gs(Ws(e));
3255
+ return new hs(Ws(e));
3230
3256
  }
3231
3257
  function Rs(e, o, c) {
3232
3258
  const r = Array.isArray(e) ? e : [e], A = Us(o), n = (D) => D.subject, u = (D) => A.can(D.action, n(D), D.field) ? !0 : D.coverSubject !== void 0 ? A.can(D.action, D.coverSubject, D.field) : !1, m = r.find((D) => !u(D));
@@ -3260,26 +3286,26 @@ function Ks(e, o, c) {
3260
3286
  onError: m = Ts
3261
3287
  } = r, b = T(!A), v = u ? dt(o) : T(o);
3262
3288
  let D = 0;
3263
- return he(async (C) => {
3289
+ return ye(async (C) => {
3264
3290
  if (!b.value)
3265
3291
  return;
3266
3292
  D++;
3267
3293
  const P = D;
3268
- let h = !1;
3294
+ let y = !1;
3269
3295
  n && Promise.resolve().then(() => {
3270
3296
  n.value = !0;
3271
3297
  });
3272
3298
  try {
3273
3299
  const j = await e((q) => {
3274
3300
  C(() => {
3275
- n && (n.value = !1), h || q();
3301
+ n && (n.value = !1), y || q();
3276
3302
  });
3277
3303
  });
3278
3304
  P === D && (v.value = j);
3279
3305
  } catch (j) {
3280
3306
  m(j);
3281
3307
  } finally {
3282
- n && P === D && (n.value = !1), h = !0;
3308
+ n && P === D && (n.value = !1), y = !0;
3283
3309
  }
3284
3310
  }), A ? ie(() => (b.value = !0, v.value)) : v;
3285
3311
  }
@@ -3318,7 +3344,7 @@ async function ks(e, o) {
3318
3344
  return {
3319
3345
  canAccess: !1,
3320
3346
  message: r.message,
3321
- redirectTo: ys
3347
+ redirectTo: Gs
3322
3348
  };
3323
3349
  }
3324
3350
  return {
@@ -3377,7 +3403,7 @@ const Ss = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
3377
3403
  "th-TH": ar
3378
3404
  }
3379
3405
  });
3380
- return (c, r) => (W(), ye("div", nr, [
3406
+ return (c, r) => (W(), Ge("div", nr, [
3381
3407
  O("div", or, [
3382
3408
  O("div", cr, [
3383
3409
  O("img", {
@@ -3396,12 +3422,15 @@ const Ss = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
3396
3422
  __name: "PermissionWrapper",
3397
3423
  setup(e) {
3398
3424
  const o = Ls();
3399
- return (c, r) => Z(o) === Z(ce).Denied ? (W(), $(gr, { key: 0 })) : Z(o) === Z(ce).Allowed ? Ge(c.$slots, "default", { key: 1 }) : Bt("", !0);
3425
+ return (c, r) => Z(o) === Z(ce).Denied ? (W(), $(gr, { key: 0 })) : Z(o) === Z(ce).Allowed ? he(c.$slots, "default", { key: 1 }) : Bt("", !0);
3400
3426
  }
3401
3427
  });
3402
3428
  function ee(e) {
3403
3429
  return {
3404
- render: () => fe(mr, {}, { default: () => fe(e) })
3430
+ inheritAttrs: !1,
3431
+ setup(o, { attrs: c }) {
3432
+ return () => fe(mr, {}, { default: () => fe(e, c) });
3433
+ }
3405
3434
  };
3406
3435
  }
3407
3436
  function dr(e, o) {
@@ -3437,12 +3466,12 @@ const Br = /* @__PURE__ */ N({
3437
3466
  height: `calc(100dvh - ${((m = r.value) == null ? void 0 : m.top) + 24 + u}px)`
3438
3467
  };
3439
3468
  });
3440
- return (n, u) => (W(), ye("div", {
3469
+ return (n, u) => (W(), Ge("div", {
3441
3470
  ref_key: "wrapper",
3442
3471
  ref: c,
3443
3472
  style: bt(A.value)
3444
3473
  }, [
3445
- Ge(n.$slots, "default")
3474
+ he(n.$slots, "default")
3446
3475
  ], 4));
3447
3476
  }
3448
3477
  }), pr = { class: "flex justify-center items-center h-full w-full" }, br = /* @__PURE__ */ N({
@@ -3464,7 +3493,7 @@ const Br = /* @__PURE__ */ N({
3464
3493
  loader: e,
3465
3494
  loadingComponent: br
3466
3495
  });
3467
- var y = /* @__PURE__ */ ((e) => (e.HOME = "home", e.EMPLOYEE = "employee", e.ROLE = "role", e.TIMESHEET = "timesheet", e.AUDIT_LOG = "audit-log", e.TEAM = "team", e.TEAM_MEMBER = "team-member", e.TEAM_ROLE = "team-role", e.POS_GRANT = "pos-grant", e))(y || {});
3496
+ var G = /* @__PURE__ */ ((e) => (e.HOME = "home", e.EMPLOYEE = "employee", e.ROLE = "role", e.TIMESHEET = "timesheet", e.AUDIT_LOG = "audit-log", e.TEAM = "team", e.TEAM_MEMBER = "team-member", e.TEAM_ROLE = "team-role", e.POS_GRANT = "pos-grant", e))(G || {});
3468
3497
  const Ae = (e) => ({
3469
3498
  validationManifest: {
3470
3499
  requiredCaslPermissions: [
@@ -3474,10 +3503,10 @@ const Ae = (e) => ({
3474
3503
  }
3475
3504
  ]
3476
3505
  }
3477
- }), fr = ee(X(() => import("./Main-BfDH3uAt.js"))), wr = ee(X(() => import("./Main-D4ueBOl0.js"))), Dr = ee(
3478
- X(() => import("./AuditLogList-YGP3G14A.js"))
3479
- ), Mr = ee(X(() => import("./Main-QpKV1hdj.js"))), vr = X(() => import("./EmployeeList-DuRlCrqN.js")), Cr = X(() => import("./RoleList-D4mup6LW.js")), Yr = X(() => import("./TimesheetList-CBudjg1y.js")), hr = X(() => import("./TeamMemberList-D9rTKS5N.js")), Gr = X(
3480
- () => import("./PermissionSetList-DfAZmUkI.js")
3506
+ }), fr = ee(X(() => import("./Main-CGoSOSHf.js"))), wr = ee(X(() => import("./Main-YgAJrDXR.js"))), Dr = ee(
3507
+ X(() => import("./AuditLogList-DU9bvapH.js"))
3508
+ ), Mr = ee(X(() => import("./Main-wneSr3Yj.js"))), vr = X(() => import("./EmployeeList-C0Kt6J2s.js")), Cr = X(() => import("./RoleList-D6aapDtQ.js")), Yr = X(() => import("./TimesheetList-DqEtBC_2.js")), yr = X(() => import("./TeamMemberList-BQ3xq4Q2.js")), hr = X(
3509
+ () => import("./PermissionSetList-BG5FcHDo.js")
3481
3510
  ), Hr = [
3482
3511
  {
3483
3512
  path: "/",
@@ -3525,12 +3554,12 @@ const Ae = (e) => ({
3525
3554
  {
3526
3555
  path: "member",
3527
3556
  name: "team-member",
3528
- component: hr
3557
+ component: yr
3529
3558
  },
3530
3559
  {
3531
3560
  path: "role",
3532
3561
  name: "team-role",
3533
- component: Gr
3562
+ component: hr
3534
3563
  }
3535
3564
  ]
3536
3565
  },
@@ -3539,7 +3568,7 @@ const Ae = (e) => ({
3539
3568
  name: "pos-grant",
3540
3569
  component: Mr
3541
3570
  }
3542
- ], yr = /* @__PURE__ */ N({
3571
+ ], Gr = /* @__PURE__ */ N({
3543
3572
  __name: "Navigator",
3544
3573
  emits: ["close-navigation"],
3545
3574
  setup(e, { emit: o }) {
@@ -3551,7 +3580,7 @@ const Ae = (e) => ({
3551
3580
  value: "employee",
3552
3581
  action: () => {
3553
3582
  A.push({
3554
- name: y.EMPLOYEE,
3583
+ name: G.EMPLOYEE,
3555
3584
  query: A.currentRoute.value.query
3556
3585
  }), c("close-navigation");
3557
3586
  }
@@ -3560,7 +3589,7 @@ const Ae = (e) => ({
3560
3589
  value: "team-member",
3561
3590
  action: () => {
3562
3591
  A.push({
3563
- name: y.TEAM,
3592
+ name: G.TEAM,
3564
3593
  query: A.currentRoute.value.query
3565
3594
  }), c("close-navigation");
3566
3595
  }
@@ -3569,7 +3598,7 @@ const Ae = (e) => ({
3569
3598
  value: "audit-log",
3570
3599
  action: () => {
3571
3600
  A.push({
3572
- name: y.AUDIT_LOG
3601
+ name: G.AUDIT_LOG
3573
3602
  }), c("close-navigation");
3574
3603
  }
3575
3604
  }), (v = n.value) != null && v.role.isAdmin && b.push({
@@ -3577,33 +3606,33 @@ const Ae = (e) => ({
3577
3606
  value: "pos-grant",
3578
3607
  action: () => {
3579
3608
  A.push({
3580
- name: y.POS_GRANT,
3609
+ name: G.POS_GRANT,
3581
3610
  query: A.currentRoute.value.query
3582
3611
  }), c("close-navigation");
3583
3612
  }
3584
3613
  }), b;
3585
3614
  }), m = T();
3586
- return he(() => {
3615
+ return ye(() => {
3587
3616
  var v;
3588
3617
  let b = (v = A.currentRoute.value) == null ? void 0 : v.name;
3589
3618
  switch (b) {
3590
- case y.EMPLOYEE:
3591
- case y.ROLE:
3592
- case y.TIMESHEET:
3593
- b = y.EMPLOYEE;
3619
+ case G.EMPLOYEE:
3620
+ case G.ROLE:
3621
+ case G.TIMESHEET:
3622
+ b = G.EMPLOYEE;
3594
3623
  break;
3595
- case y.TEAM_MEMBER:
3596
- case y.TEAM_ROLE:
3597
- b = y.TEAM_MEMBER;
3624
+ case G.TEAM_MEMBER:
3625
+ case G.TEAM_ROLE:
3626
+ b = G.TEAM_MEMBER;
3598
3627
  break;
3599
- case y.AUDIT_LOG:
3600
- b = y.AUDIT_LOG;
3628
+ case G.AUDIT_LOG:
3629
+ b = G.AUDIT_LOG;
3601
3630
  break;
3602
- case y.POS_GRANT:
3631
+ case G.POS_GRANT:
3603
3632
  b = "pos-grant";
3604
3633
  break;
3605
3634
  default:
3606
- b = y.EMPLOYEE;
3635
+ b = G.EMPLOYEE;
3607
3636
  }
3608
3637
  m.value !== b && (m.value = b);
3609
3638
  }), (b, v) => {
@@ -3621,7 +3650,7 @@ const Ae = (e) => ({
3621
3650
  setup(e) {
3622
3651
  const o = ue();
3623
3652
  return Ve(() => {
3624
- o.registerSidebarComponent(yr);
3653
+ o.registerSidebarComponent(Gr);
3625
3654
  }), (c, r) => {
3626
3655
  const A = le("RouterView");
3627
3656
  return W(), $(A);
@@ -3643,17 +3672,17 @@ const Ae = (e) => ({
3643
3672
  export {
3644
3673
  Xr as F,
3645
3674
  Qr as N,
3646
- y as R,
3675
+ G as R,
3647
3676
  Br as _,
3648
3677
  Ns as a,
3649
- s as b,
3678
+ Fr as b,
3650
3679
  ns as c,
3651
3680
  S as d,
3652
- Pr as e,
3653
- qr as f,
3681
+ Vs as f,
3654
3682
  os as g,
3655
- Fr as h,
3656
- w as i,
3683
+ w as h,
3684
+ Pr as i,
3657
3685
  Hr as r,
3658
- Vs as u
3686
+ qr as u,
3687
+ s as y
3659
3688
  };