@feedmepos/mf-hrm-portal 1.1.2-dev → 1.1.3-dev

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.
@@ -702,7 +702,7 @@ const Ce = {
702
702
  __proto__: null,
703
703
  default: wA,
704
704
  hr: ve
705
- }, Symbol.toStringTag, { value: "Module" })), xe = {
705
+ }, Symbol.toStringTag, { value: "Module" })), je = {
706
706
  employee: {
707
707
  title: "員工",
708
708
  exportButtonLabel: "導出",
@@ -851,17 +851,17 @@ const Ce = {
851
851
  }
852
852
  }
853
853
  }, bA = {
854
- hr: xe
854
+ hr: je
855
855
  }, MA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
856
856
  __proto__: null,
857
857
  default: bA,
858
- hr: xe
858
+ hr: je
859
859
  }, Symbol.toStringTag, { value: "Module" })), DA = {
860
860
  "en-US": mA,
861
861
  "zh-CN": fA,
862
862
  "th-TH": dA,
863
863
  "zh-Hant": MA
864
- }, je = {
864
+ }, xe = {
865
865
  title: "Team members",
866
866
  actions: {
867
867
  addMember: "Add member",
@@ -989,13 +989,13 @@ const Ce = {
989
989
  }
990
990
  }
991
991
  }, YA = {
992
- team: je,
992
+ team: xe,
993
993
  role: Qe
994
994
  }, CA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
995
995
  __proto__: null,
996
996
  default: YA,
997
997
  role: Qe,
998
- team: je
998
+ team: xe
999
999
  }, Symbol.toStringTag, { value: "Module" })), Xe = {
1000
1000
  title: "สมาชิกในทีม",
1001
1001
  actions: {
@@ -1405,13 +1405,13 @@ const Ce = {
1405
1405
  default: EA,
1406
1406
  role: ye,
1407
1407
  team: Pe
1408
- }, Symbol.toStringTag, { value: "Module" })), xA = {
1408
+ }, Symbol.toStringTag, { value: "Module" })), jA = {
1409
1409
  "en-US": CA,
1410
1410
  "zh-CN": hA,
1411
1411
  "th-TH": pA,
1412
1412
  "zh-Hant": vA
1413
1413
  };
1414
- var jA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1414
+ var xA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1415
1415
  function QA(e) {
1416
1416
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1417
1417
  }
@@ -1419,7 +1419,7 @@ var Oe = { exports: {} };
1419
1419
  (function(e, o) {
1420
1420
  (function(n, t) {
1421
1421
  e.exports = t();
1422
- })(jA, function() {
1422
+ })(xA, function() {
1423
1423
  return function(n) {
1424
1424
  var t = {};
1425
1425
  function s(a) {
@@ -1435,13 +1435,13 @@ var Oe = { exports: {} };
1435
1435
  if (1 & l && (a = s(a)), 8 & l || 4 & l && typeof a == "object" && a && a.__esModule) return a;
1436
1436
  var u = /* @__PURE__ */ Object.create(null);
1437
1437
  if (s.r(u), Object.defineProperty(u, "default", { enumerable: !0, value: a }), 2 & l && typeof a != "string")
1438
- for (var f in a)
1438
+ for (var b in a)
1439
1439
  s.d(
1440
1440
  u,
1441
- f,
1441
+ b,
1442
1442
  (function(Y) {
1443
1443
  return a[Y];
1444
- }).bind(null, f)
1444
+ }).bind(null, b)
1445
1445
  );
1446
1446
  return u;
1447
1447
  }, s.n = function(a) {
@@ -1479,7 +1479,7 @@ var Oe = { exports: {} };
1479
1479
  }), s.d(t, "comparable", function() {
1480
1480
  return k;
1481
1481
  });
1482
- var u = l("Array"), f = l("Object"), Y = l("Function");
1482
+ var u = l("Array"), b = l("Object"), Y = l("Function");
1483
1483
  function G(A, r) {
1484
1484
  return Y(A.get) ? A.get(r) : A[r];
1485
1485
  }
@@ -1502,7 +1502,7 @@ var Oe = { exports: {} };
1502
1502
  function V(A, r, c, i) {
1503
1503
  return A.validate(A.options, r, c, i);
1504
1504
  }
1505
- var x = {
1505
+ var j = {
1506
1506
  $eq: p(function(A, r) {
1507
1507
  return A(r);
1508
1508
  }),
@@ -1537,7 +1537,7 @@ var Oe = { exports: {} };
1537
1537
  return A(r);
1538
1538
  },
1539
1539
  $all: function(A, r, c, i) {
1540
- return x.$and(A, r, c, i);
1540
+ return j.$and(A, r, c, i);
1541
1541
  },
1542
1542
  $size: function(A, r) {
1543
1543
  return !!r && A === r.length;
@@ -1548,7 +1548,7 @@ var Oe = { exports: {} };
1548
1548
  return !1;
1549
1549
  },
1550
1550
  $nor: function(A, r, c, i) {
1551
- return !x.$or(A, r, c, i);
1551
+ return !j.$or(A, r, c, i);
1552
1552
  },
1553
1553
  $and: function(A, r, c, i) {
1554
1554
  for (var g = 0, m = A.length; g < m; g++)
@@ -1563,15 +1563,15 @@ var Oe = { exports: {} };
1563
1563
  },
1564
1564
  $elemMatch: function(A, r, c, i) {
1565
1565
  return u(r) ? !!~function(g, m) {
1566
- for (var B = 0; B < g.length; B++)
1567
- if (G(g, B), V(m, G(g, B))) return B;
1566
+ for (var d = 0; d < g.length; d++)
1567
+ if (G(g, d), V(m, G(g, d))) return d;
1568
1568
  return -1;
1569
1569
  }(r, A) : V(A, r, c, i);
1570
1570
  },
1571
1571
  $exists: function(A, r, c, i) {
1572
1572
  return i.hasOwnProperty(c) === A;
1573
1573
  }
1574
- }, j = {
1574
+ }, x = {
1575
1575
  $eq: function(A, r, c) {
1576
1576
  var i = c.comparable, g = c.compare;
1577
1577
  return A instanceof RegExp ? p(function(m) {
@@ -1624,8 +1624,8 @@ var Oe = { exports: {} };
1624
1624
  for (w = A.length; w--; ) if (A[w] == null) return !0;
1625
1625
  }
1626
1626
  for (w = A.length; w--; ) {
1627
- var B = V(oe(G(A, w), c), m, w, A);
1628
- if (B && String(B) !== "[object Object]" && String(m) !== "[object Object]")
1627
+ var d = V(oe(G(A, w), c), m, w, A);
1628
+ if (d && String(d) !== "[object Object]" && String(m) !== "[object Object]")
1629
1629
  return !0;
1630
1630
  }
1631
1631
  return !!~A.indexOf(m);
@@ -1636,9 +1636,9 @@ var Oe = { exports: {} };
1636
1636
  };
1637
1637
  },
1638
1638
  $nin: function(A, r, c) {
1639
- var i = j.$in(A, r, c);
1640
- return function(g, m, B, w) {
1641
- return !i(g, m, B, w);
1639
+ var i = x.$in(A, r, c);
1640
+ return function(g, m, d, w) {
1641
+ return !i(g, m, d, w);
1642
1642
  };
1643
1643
  },
1644
1644
  $mod: function(A) {
@@ -1647,16 +1647,16 @@ var Oe = { exports: {} };
1647
1647
  };
1648
1648
  },
1649
1649
  $ne: function(A, r, c) {
1650
- var i = j.$eq(A, r, c);
1651
- return I(function(g, m, B, w) {
1652
- return !i(g, m, B, w);
1650
+ var i = x.$eq(A, r, c);
1651
+ return I(function(g, m, d, w) {
1652
+ return !i(g, m, d, w);
1653
1653
  });
1654
1654
  },
1655
1655
  $and: function(A, r, c) {
1656
1656
  return A.map(P(c));
1657
1657
  },
1658
1658
  $all: function(A, r, c) {
1659
- return j.$and(A, r, c);
1659
+ return x.$and(A, r, c);
1660
1660
  },
1661
1661
  $or: function(A, r, c) {
1662
1662
  return A.map(P(c));
@@ -1666,8 +1666,8 @@ var Oe = { exports: {} };
1666
1666
  },
1667
1667
  $not: function(A, r, c) {
1668
1668
  var i = P(c)(A);
1669
- return function(g, m, B) {
1670
- return !V(i, g, m, B);
1669
+ return function(g, m, d) {
1670
+ return !V(i, g, m, d);
1671
1671
  };
1672
1672
  },
1673
1673
  $type: function(A) {
@@ -1704,8 +1704,8 @@ var Oe = { exports: {} };
1704
1704
  for (var _ = 0, Ke = q.length; _ < Ke; _++) le(G(q, _), Z, z, q, S);
1705
1705
  else le(G(q, ie), Z, z + 1, q, S);
1706
1706
  }(r, c, 0, r, m), m.length === 1) {
1707
- var B = m[0];
1708
- return V(i, B[0], B[1], B[2]);
1707
+ var d = m[0];
1708
+ return V(i, d[0], d[1], d[2]);
1709
1709
  }
1710
1710
  for (var w = g && g.$ne !== void 0, C = w, h = 0; h < m.length; h++) {
1711
1711
  var Q = m[h], W = V(i, Q[0], Q[1], Q[2]);
@@ -1717,17 +1717,17 @@ var Oe = { exports: {} };
1717
1717
  return X({ keyPath: A, child: r, query: c }, Ne);
1718
1718
  }
1719
1719
  function P(A) {
1720
- var r = A.comparable, c = A.expressions, i = function(B) {
1720
+ var r = A.comparable, c = A.expressions, i = function(d) {
1721
1721
  var w;
1722
- return (!B || !(w = B) || w.constructor !== Object && w.constructor !== Array && w.constructor.toString() !== "function Object() { [native code] }" && w.constructor.toString() !== "function Array() { [native code] }" || w.toJSON) && (B = { $eq: B }), B;
1723
- }, g = function(B) {
1724
- B = r(B);
1722
+ return (!d || !(w = d) || w.constructor !== Object && w.constructor !== Array && w.constructor.toString() !== "function Object() { [native code] }" && w.constructor.toString() !== "function Array() { [native code] }" || w.toJSON) && (d = { $eq: d }), d;
1723
+ }, g = function(d) {
1724
+ d = r(d);
1725
1725
  var w = [];
1726
- for (var C in B) {
1727
- var h = B[C];
1726
+ for (var C in d) {
1727
+ var h = d[C];
1728
1728
  if (C !== "$options") {
1729
- var Q = x[C] || A && c && c[C];
1730
- if (Q) j[C] && (h = j[C](h, B, A)), w.push(X(r(h), Q));
1729
+ var Q = j[C] || A && c && c[C];
1730
+ if (Q) x[C] && (h = x[C](h, d, A)), w.push(X(r(h), Q));
1731
1731
  else {
1732
1732
  if (C.charCodeAt(0) === 36)
1733
1733
  throw new Error("Unknown operation " + C);
@@ -1736,22 +1736,22 @@ var Oe = { exports: {} };
1736
1736
  }
1737
1737
  }
1738
1738
  }
1739
- return w.length === 1 ? w[0] : X(w, x.$and);
1740
- }, m = function(B) {
1741
- return B = i(B), function w(C, h) {
1742
- if (!f(C)) return h;
1739
+ return w.length === 1 ? w[0] : X(w, j.$and);
1740
+ }, m = function(d) {
1741
+ return d = i(d), function w(C, h) {
1742
+ if (!b(C)) return h;
1743
1743
  for (var Q in C) h.push(Q), w(C[Q], h);
1744
1744
  return h;
1745
- }(B, []).join(",").search(/[$.]/) === -1 ? X(B, N) : g(B);
1745
+ }(d, []).join(",").search(/[$.]/) === -1 ? X(d, N) : g(d);
1746
1746
  };
1747
- return function(B) {
1748
- return g(i(B));
1747
+ return function(d) {
1748
+ return g(i(d));
1749
1749
  };
1750
1750
  }
1751
1751
  function N(A, r) {
1752
1752
  if (Object.prototype.toString.call(A) !== Object.prototype.toString.call(r))
1753
1753
  return !1;
1754
- if (f(A)) {
1754
+ if (b(A)) {
1755
1755
  if (Object.keys(A).length !== Object.keys(r).length) return !1;
1756
1756
  for (var c in A) if (!N(A[c], r[c])) return !1;
1757
1757
  return !0;
@@ -1768,8 +1768,8 @@ var Oe = { exports: {} };
1768
1768
  var c = P(r)(A);
1769
1769
  return r && r.select && (c = {
1770
1770
  options: c,
1771
- validate: function(i, g, m, B) {
1772
- return V(i, g && r.select(g), m, B);
1771
+ validate: function(i, g, m, d) {
1772
+ return V(i, g && r.select(g), m, d);
1773
1773
  }
1774
1774
  }), c;
1775
1775
  }
@@ -1831,7 +1831,7 @@ function R(e, o, n) {
1831
1831
  return yA() ? R = Reflect.construct : R = function(s, a, l) {
1832
1832
  var u = [null];
1833
1833
  u.push.apply(u, a);
1834
- var f = Function.bind.apply(s, u), Y = new f();
1834
+ var b = Function.bind.apply(s, u), Y = new b();
1835
1835
  return l && J(Y, l.prototype), Y;
1836
1836
  }, R.apply(null, arguments);
1837
1837
  }
@@ -1897,8 +1897,8 @@ var Ze = function(o) {
1897
1897
  field: l,
1898
1898
  subjectName: this.ability.subjectName(a)
1899
1899
  });
1900
- var f = u ? u.reason : "";
1901
- throw this.message = this._customMessage || f || U(this), this;
1900
+ var b = u ? u.reason : "";
1901
+ throw this.message = this._customMessage || b || U(this), this;
1902
1902
  }
1903
1903
  }, n._setMetadata = function(s) {
1904
1904
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
@@ -1986,15 +1986,15 @@ var kA = /* @__PURE__ */ function() {
1986
1986
  var a = this.buildIndexFor(t);
1987
1987
  return this[v].indexedRules = a.rules, this[v].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", s), this;
1988
1988
  }, o.buildIndexFor = function(t) {
1989
- for (var s = /* @__PURE__ */ Object.create(null), a = this[v].RuleType, l = !0, u = !1, f = 0; f < t.length; f++) {
1990
- var Y = new a(t[f]), G = this.expandActions(Y.actions), p = se(Y.subject), I = t.length - f - 1;
1989
+ for (var s = /* @__PURE__ */ Object.create(null), a = this[v].RuleType, l = !0, u = !1, b = 0; b < t.length; b++) {
1990
+ var Y = new a(t[b]), G = this.expandActions(Y.actions), p = se(Y.subject), I = t.length - b - 1;
1991
1991
  l = !!(l && Y.inverted), !u && Y.fields && (u = !0);
1992
1992
  for (var V = 0; V < p.length; V++) {
1993
- var x = p[V];
1994
- s[x] = s[x] || /* @__PURE__ */ Object.create(null);
1995
- for (var j = 0; j < G.length; j++) {
1996
- var X = G[j];
1997
- s[x][X] = s[x][X] || /* @__PURE__ */ Object.create(null), s[x][X][I] = Y;
1993
+ var j = p[V];
1994
+ s[j] = s[j] || /* @__PURE__ */ Object.create(null);
1995
+ for (var x = 0; x < G.length; x++) {
1996
+ var X = G[x];
1997
+ s[j][X] = s[j][X] || /* @__PURE__ */ Object.create(null), s[j][X][I] = Y;
1998
1998
  }
1999
1999
  }
2000
2000
  }
@@ -2023,8 +2023,8 @@ var kA = /* @__PURE__ */ function() {
2023
2023
  var a = this.subjectName(s), l = this[v].mergedRules, u = a + "_" + t;
2024
2024
  return l[u] || (l[u] = this.mergeRulesFor(t, a)), l[u];
2025
2025
  }, o.mergeRulesFor = function(t, s) {
2026
- var a = this[v].indexedRules, l = [s, "all"].reduce(function(u, f) {
2027
- var Y = a[f];
2026
+ var a = this[v].indexedRules, l = [s, "all"].reduce(function(u, b) {
2027
+ var Y = a[b];
2028
2028
  return Y ? Object.assign(u, Y[t], Y.manage) : u;
2029
2029
  }, []);
2030
2030
  return l.filter(Boolean);
@@ -2060,141 +2060,146 @@ var kA = /* @__PURE__ */ function() {
2060
2060
  return this[v].originalRules;
2061
2061
  }
2062
2062
  }]), e;
2063
- }(), b = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(b || {}), d = /* @__PURE__ */ ((e) => (e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.inventory = "business::inventory", e.inventory_stock = "business::inventory::stock", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_integration = "business::inventory::integration", e.inventory_orderDraft = "business::inventory::orderDraft", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_employee_list = "business::hrm::employee::list", e.hrm_employee_role = "business::hrm::employee::role", e.hrm_employee_timesheet = "business::hrm::employee::timesheet", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_teamMember_list = "business::hrm::teamMember::list", e.hrm_teamMember_role = "business::hrm::teamMember::role", e.menu = "business::menu", e.restaurant = "business::restaurant", e.profile = "business::profile", e))(d || {}), D = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(D || {}), ze = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ze || {});
2063
+ }(), f = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(f || {}), B = /* @__PURE__ */ ((e) => (e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.inventory = "business::inventory", e.inventory_stock = "business::inventory::stock", e.inventory_stock_adjustment = "business::inventory::stock::adjustment", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_integration = "business::inventory::integration", e.inventory_orderDraft = "business::inventory::orderDraft", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_employee_list = "business::hrm::employee::list", e.hrm_employee_role = "business::hrm::employee::role", e.hrm_employee_timesheet = "business::hrm::employee::timesheet", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_teamMember_list = "business::hrm::teamMember::list", e.hrm_teamMember_role = "business::hrm::teamMember::role", e.menu = "business::menu", e.restaurant = "business::restaurant", e.profile = "business::profile", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(D || {}), ze = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ze || {});
2064
2064
  const M = {
2065
2065
  general: "General",
2066
2066
  inventory: "Inventory",
2067
2067
  hrm: "HRM",
2068
2068
  crm: "CRM"
2069
2069
  }, SA = "access-denied", K = {
2070
- Action: b,
2070
+ Action: f,
2071
2071
  Subject: {
2072
- Business: d,
2072
+ Business: B,
2073
2073
  Restaurant: ze
2074
2074
  }
2075
2075
  }, Ie = {
2076
- [D.role]: d.hrm_employee_role,
2077
- [D.permission]: d.hrm_teamMember,
2078
- [D.promotion]: d.crm_promotion,
2079
- [D.voucher]: d.crm_voucher,
2080
- [D.membership]: d.crm_membership,
2081
- [D.stock]: d.inventory_stock,
2082
- [D.wastageTemplate]: d.inventory_wastageTemplate,
2083
- [D.closingTemplate]: d.inventory_closingTemplate,
2084
- [D.orderTemplate]: d.inventory_orderTemplate,
2085
- [D.ingredient]: d.inventory_ingredient,
2086
- [D.recipe]: d.inventory_recipe,
2087
- [D.unit]: d.inventory_unit,
2088
- [D.supplier]: d.inventory_supplier,
2089
- [D.warehouse]: d.inventory_warehouse,
2090
- [D.publish]: d.inventory_publish,
2091
- [D.integration]: d.inventory_integration,
2092
- [D.orderDraft]: d.inventory_orderDraft,
2093
- [D.unitCostHistory]: d.inventory_unitCostHistory
2076
+ [D.role]: B.hrm_employee_role,
2077
+ [D.permission]: B.hrm_teamMember,
2078
+ [D.promotion]: B.crm_promotion,
2079
+ [D.voucher]: B.crm_voucher,
2080
+ [D.membership]: B.crm_membership,
2081
+ [D.stock]: B.inventory_stock,
2082
+ [D.wastageTemplate]: B.inventory_wastageTemplate,
2083
+ [D.closingTemplate]: B.inventory_closingTemplate,
2084
+ [D.orderTemplate]: B.inventory_orderTemplate,
2085
+ [D.ingredient]: B.inventory_ingredient,
2086
+ [D.recipe]: B.inventory_recipe,
2087
+ [D.unit]: B.inventory_unit,
2088
+ [D.supplier]: B.inventory_supplier,
2089
+ [D.warehouse]: B.inventory_warehouse,
2090
+ [D.publish]: B.inventory_publish,
2091
+ [D.integration]: B.inventory_integration,
2092
+ [D.orderDraft]: B.inventory_orderDraft,
2093
+ [D.unitCostHistory]: B.inventory_unitCostHistory
2094
2094
  }, yt = {
2095
2095
  // General
2096
2096
  restaurant: {
2097
2097
  label: "Restaurant Owner",
2098
- subject: d.restaurant,
2099
- actions: [b.manage]
2098
+ subject: B.restaurant,
2099
+ actions: [f.manage]
2100
2100
  },
2101
2101
  menu: {
2102
2102
  label: "Menu Management",
2103
- subject: d.menu,
2104
- actions: [b.manage]
2103
+ subject: B.menu,
2104
+ actions: [f.manage]
2105
2105
  },
2106
2106
  // inventory
2107
2107
  stock: {
2108
2108
  label: "Stock Management",
2109
- subject: d.inventory_stock,
2110
- actions: [b.manage]
2109
+ subject: B.inventory_stock,
2110
+ actions: [f.manage]
2111
2111
  },
2112
2112
  wastageTemplate: {
2113
2113
  label: "Wastage Template Management",
2114
- subject: d.inventory_wastageTemplate,
2115
- actions: [b.manage]
2114
+ subject: B.inventory_wastageTemplate,
2115
+ actions: [f.manage]
2116
2116
  },
2117
2117
  closingTemplate: {
2118
2118
  label: "Closing Template Management",
2119
- subject: d.inventory_closingTemplate,
2120
- actions: [b.manage]
2119
+ subject: B.inventory_closingTemplate,
2120
+ actions: [f.manage]
2121
2121
  },
2122
2122
  orderTemplate: {
2123
2123
  label: "Order Template Management",
2124
- subject: d.inventory_orderTemplate,
2125
- actions: [b.manage]
2124
+ subject: B.inventory_orderTemplate,
2125
+ actions: [f.manage]
2126
2126
  },
2127
2127
  ingredient: {
2128
2128
  label: "Ingredient Management",
2129
- subject: d.inventory_ingredient,
2130
- actions: [b.manage]
2129
+ subject: B.inventory_ingredient,
2130
+ actions: [f.manage]
2131
2131
  },
2132
2132
  recipe: {
2133
2133
  label: "Recipe Management",
2134
- subject: d.inventory_recipe,
2135
- actions: [b.manage]
2134
+ subject: B.inventory_recipe,
2135
+ actions: [f.manage]
2136
2136
  },
2137
2137
  unit: {
2138
2138
  label: "Unit Management",
2139
- subject: d.inventory_unit,
2140
- actions: [b.manage]
2139
+ subject: B.inventory_unit,
2140
+ actions: [f.manage]
2141
2141
  },
2142
2142
  supplier: {
2143
2143
  label: "Supplier Management",
2144
- subject: d.inventory_supplier,
2145
- actions: [b.manage]
2144
+ subject: B.inventory_supplier,
2145
+ actions: [f.manage]
2146
2146
  },
2147
2147
  warehouse: {
2148
2148
  label: "Warehouse Management",
2149
- subject: d.inventory_warehouse,
2150
- actions: [b.manage]
2149
+ subject: B.inventory_warehouse,
2150
+ actions: [f.manage]
2151
2151
  },
2152
2152
  publish: {
2153
2153
  label: "Publish Management",
2154
- subject: d.inventory_publish,
2155
- actions: [b.manage]
2154
+ subject: B.inventory_publish,
2155
+ actions: [f.manage]
2156
2156
  },
2157
2157
  integration: {
2158
2158
  label: "Integration Management",
2159
- subject: d.inventory_integration,
2160
- actions: [b.manage]
2159
+ subject: B.inventory_integration,
2160
+ actions: [f.manage]
2161
2161
  },
2162
2162
  orderDraft: {
2163
2163
  label: "Order Draft Management",
2164
- subject: d.inventory_orderDraft,
2165
- actions: [b.manage]
2164
+ subject: B.inventory_orderDraft,
2165
+ actions: [f.manage]
2166
2166
  },
2167
2167
  unitCostHistory: {
2168
2168
  label: "Unit Cost History Management",
2169
- subject: d.inventory_unitCostHistory,
2170
- actions: [b.manage]
2169
+ subject: B.inventory_unitCostHistory,
2170
+ actions: [f.manage]
2171
+ },
2172
+ stockAdjustment: {
2173
+ label: "Stock Adjustment Management",
2174
+ subject: B.inventory_stock_adjustment,
2175
+ actions: [f.manage]
2171
2176
  },
2172
2177
  // CRM
2173
2178
  promotion: {
2174
2179
  label: "Promotion Management",
2175
- subject: d.crm_promotion,
2176
- actions: [b.manage]
2180
+ subject: B.crm_promotion,
2181
+ actions: [f.manage]
2177
2182
  },
2178
2183
  voucher: {
2179
2184
  label: "Voucher Management",
2180
- subject: d.crm_voucher,
2181
- actions: [b.manage]
2185
+ subject: B.crm_voucher,
2186
+ actions: [f.manage]
2182
2187
  },
2183
2188
  membership: {
2184
2189
  label: "Membership Management",
2185
- subject: d.crm_membership,
2186
- actions: [b.manage]
2190
+ subject: B.crm_membership,
2191
+ actions: [f.manage]
2187
2192
  },
2188
2193
  // HRM
2189
2194
  permission: {
2190
2195
  label: "Team Management",
2191
- subject: d.hrm_teamMember,
2192
- actions: [b.manage]
2196
+ subject: B.hrm_teamMember,
2197
+ actions: [f.manage]
2193
2198
  },
2194
2199
  role: {
2195
2200
  label: "Role Management",
2196
- subject: d.hrm_employee_role,
2197
- actions: [b.manage]
2201
+ subject: B.hrm_employee_role,
2202
+ actions: [f.manage]
2198
2203
  }
2199
2204
  }, Ot = {
2200
2205
  // General
@@ -2214,6 +2219,7 @@ const M = {
2214
2219
  integration: M.inventory,
2215
2220
  orderDraft: M.inventory,
2216
2221
  unitCostHistory: M.inventory,
2222
+ stockAdjustment: M.inventory,
2217
2223
  // CRM
2218
2224
  promotion: M.crm,
2219
2225
  voucher: M.crm,
@@ -2430,7 +2436,7 @@ const ee = (e) => ({
2430
2436
  }
2431
2437
  ]
2432
2438
  }
2433
- }), pt = ne(H(() => import("./Main-YQ5f-v03.js"))), Vt = ne(H(() => import("./Main-HzplGv-e.js"))), ht = ne(H(() => import("./AuditLogList-CjrocQS2.js"))), Et = H(() => import("./EmployeeList-CKHgrdAO.js")), vt = H(() => import("./RoleList-Bef-7IhW.js")), xt = H(() => import("./TimesheetList-DVIk0Tis.js")), jt = H(() => import("./TeamMemberList-D2Xey_w9.js")), Qt = H(() => import("./RolePermissionList-BzwpQFeO.js")), zt = [
2439
+ }), pt = ne(H(() => import("./Main-DGymQNz9.js"))), Vt = ne(H(() => import("./Main-BqhrqOzx.js"))), ht = ne(H(() => import("./AuditLogList-DNQh1rE9.js"))), Et = H(() => import("./EmployeeList-zU7fmC4c.js")), vt = H(() => import("./RoleList-jbZqer7A.js")), jt = H(() => import("./TimesheetList-hgT9DrHd.js")), xt = H(() => import("./TeamMemberList-uamoOFIV.js")), Qt = H(() => import("./RolePermissionList-Dd8ks5i7.js")), zt = [
2434
2440
  {
2435
2441
  path: "/",
2436
2442
  name: "home",
@@ -2454,7 +2460,7 @@ const ee = (e) => ({
2454
2460
  {
2455
2461
  path: "timesheet",
2456
2462
  name: "timesheet",
2457
- component: xt
2463
+ component: jt
2458
2464
  }
2459
2465
  ]
2460
2466
  },
@@ -2477,7 +2483,7 @@ const ee = (e) => ({
2477
2483
  {
2478
2484
  path: "member",
2479
2485
  name: "team-member",
2480
- component: jt
2486
+ component: xt
2481
2487
  },
2482
2488
  {
2483
2489
  path: "role",
@@ -2522,8 +2528,8 @@ const ee = (e) => ({
2522
2528
  }), u;
2523
2529
  }), l = T();
2524
2530
  return _e(() => {
2525
- var f;
2526
- let u = (f = s.currentRoute.value) == null ? void 0 : f.name;
2531
+ var b;
2532
+ let u = (b = s.currentRoute.value) == null ? void 0 : b.name;
2527
2533
  switch (u) {
2528
2534
  case E.EMPLOYEE:
2529
2535
  case E.ROLE:
@@ -2541,11 +2547,11 @@ const ee = (e) => ({
2541
2547
  u = E.EMPLOYEE;
2542
2548
  }
2543
2549
  l.value !== u && (l.value = u);
2544
- }), (u, f) => {
2550
+ }), (u, b) => {
2545
2551
  const Y = ae("FmCollapsibleTabs");
2546
2552
  return O(), L(Y, {
2547
2553
  modelValue: l.value,
2548
- "onUpdate:modelValue": f[0] || (f[0] = (G) => l.value = G),
2554
+ "onUpdate:modelValue": b[0] || (b[0] = (G) => l.value = G),
2549
2555
  items: a.value,
2550
2556
  class: "py-16"
2551
2557
  }, null, 8, ["modelValue", "items"]);
@@ -2563,7 +2569,7 @@ const ee = (e) => ({
2563
2569
  };
2564
2570
  }
2565
2571
  }), Nt = () => {
2566
- const e = [xA, DA, uA], o = new Set(e.flatMap((n) => Object.keys(n)));
2572
+ const e = [jA, DA, uA], o = new Set(e.flatMap((n) => Object.keys(n)));
2567
2573
  return Array.from(o).reduce(
2568
2574
  (n, t) => {
2569
2575
  const s = t;
@@ -2579,14 +2585,14 @@ export {
2579
2585
  E as R,
2580
2586
  Yt as _,
2581
2587
  M as a,
2582
- Nt as b,
2583
- jA as c,
2588
+ _A as b,
2589
+ xA as c,
2584
2590
  It as d,
2585
2591
  zt as e,
2586
2592
  QA as g,
2587
2593
  K as h,
2588
- Ot as i,
2589
- _A as o,
2590
- yt as r,
2594
+ Nt as i,
2595
+ yt as o,
2596
+ Ot as r,
2591
2597
  Zt as s
2592
2598
  };
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as a, b as o, e as p } from "./app-DUs516v0.js";
1
+ import { d as a, i as o, e as p } from "./app-CcbYGJ22.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  o as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-DUs516v0.js";
1
+ import { g as Q, c as K } from "./app-CcbYGJ22.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,9 +1,9 @@
1
- import { d as v } from "./dayjs.min-DVb8OkTL.js";
1
+ import { d as v } from "./dayjs.min-CgN1oBQf.js";
2
2
  import { defineStore as T, storeToRefs as _ } from "pinia";
3
3
  import { ref as h } from "vue";
4
4
  import { useCoreStore as U } from "@feedmepos/mf-common";
5
- import { b as o, g as n, t as $, k as b, s as I } from "./index-CicR1-Jp.js";
6
- import { u as S } from "./useAppStore-RzLLN5d9.js";
5
+ import { b as o, g as n, t as $, k as b, s as I } from "./index-D5sdamN5.js";
6
+ import { u as S } from "./useAppStore-DOSLuH24.js";
7
7
  const c = {
8
8
  async readEmployees() {
9
9
  return n(await o().get("/pos-users"));
@@ -1,5 +1,5 @@
1
1
  import { useCoreStore as Zo, baseClientInstance as Ma } from "@feedmepos/mf-common";
2
- import { c as p, h as Hi, o as Aa, r as pa, i as ja } from "./app-DUs516v0.js";
2
+ import { c as p, h as Hi, b as Aa, o as pa, r as ja } from "./app-CcbYGJ22.js";
3
3
  import { defineStore as Yo, storeToRefs as wo } from "pinia";
4
4
  import { ref as Go } from "vue";
5
5
  const Zi = [