@feedmepos/mf-hrm-portal 2.0.8-dev.5 → 2.0.8-dev.6
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.
- package/dist/{AuditLogList-ChmO_lsf.js → AuditLogList-Bi--djNo.js} +29 -29
- package/dist/{EmployeeList-B43c3tSt.js → EmployeeList-DQ34Em1k.js} +5 -5
- package/dist/{Main-eEQq0uiP.js → Main-B6ILrjGv.js} +6 -6
- package/dist/{Main-DKJWXUF1.js → Main-CL5HSLrz.js} +9 -9
- package/dist/{Main--wV8uMFW.js → Main-HFWa8_uW.js} +4 -4
- package/dist/{PermissionSetList-CA7dsUY5.js → PermissionSetList-Ci09rB-p.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DLZyVi00.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmhe2tvI.js} +583 -583
- package/dist/{RoleList-Nm7T5wl8.js → RoleList-B_zQKYCH.js} +7 -7
- package/dist/{TeamMemberList-BOcKTiHH.js → TeamMemberList-DFCtu_c7.js} +8 -8
- package/dist/{TimesheetList-CoaX44py.js → TimesheetList-DHaqTrL0.js} +7 -7
- package/dist/{app-CgPpZ0md.js → app-2XxqgDvK.js} +597 -493
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-DLZqYqC8.js → dayjs.min-Asc6YM-u.js} +1 -1
- package/dist/{employee-DQIeO3Ta.js → employee-CmfuGEin.js} +4 -4
- package/dist/{index-D5bUBGCO.js → index-3FnU8yA-.js} +18 -18
- package/dist/{index-CxEFSIGE.js → index-DQ49uyb8.js} +1 -1
- package/dist/{iteration-Ceh9Zaed.js → iteration-3TwyQk8f.js} +1 -1
- package/dist/{lodash-MQv9R8bY.js → lodash-BLoODBU6.js} +1 -1
- package/dist/{team-DTdEqDL-.js → team-CMljmy8s.js} +1 -1
- package/dist/{timesheet-Co0CE_kB.js → timesheet-DLuq_W9t.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CNGyVfbo.js → useAppStore-C1nsK_PE.js} +1 -1
- package/dist/{useLoading-GdaFiYX1.js → useLoading-B1KB5VuL.js} +1 -1
- package/dist/{useReportPermissions-Cm6b6zJE.js → useReportPermissions-CkPrwNqW.js} +3 -3
- 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
|
|
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
|
-
},
|
|
150
|
+
}, jt = {
|
|
151
151
|
auditLog: qe
|
|
152
|
-
},
|
|
152
|
+
}, Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153
153
|
__proto__: null,
|
|
154
154
|
auditLog: qe,
|
|
155
|
-
default:
|
|
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":
|
|
311
|
+
"th-TH": Vt,
|
|
312
312
|
"zh-Hant": Qt
|
|
313
|
-
},
|
|
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
|
-
},
|
|
467
|
-
hr:
|
|
468
|
-
},
|
|
466
|
+
}, Pt = {
|
|
467
|
+
hr: Pe
|
|
468
|
+
}, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
469
469
|
__proto__: null,
|
|
470
|
-
default:
|
|
471
|
-
hr:
|
|
472
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
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:
|
|
625
|
+
hr: He
|
|
626
626
|
}, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
627
627
|
__proto__: null,
|
|
628
628
|
default: Ft,
|
|
629
|
-
hr:
|
|
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":
|
|
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,
|
|
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(
|
|
1779
|
-
if (a[
|
|
1780
|
-
var u = a[
|
|
1781
|
-
return i[
|
|
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(
|
|
1784
|
-
r.o(
|
|
1785
|
-
}, r.r = function(
|
|
1786
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
1787
|
-
}, r.t = function(
|
|
1788
|
-
if (1 & u && (
|
|
1789
|
-
var
|
|
1790
|
-
if (r.r(
|
|
1791
|
-
for (var f in
|
|
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
|
-
|
|
1793
|
+
d,
|
|
1794
1794
|
f,
|
|
1795
1795
|
(function(y) {
|
|
1796
|
-
return
|
|
1796
|
+
return o[y];
|
|
1797
1797
|
}).bind(null, f)
|
|
1798
1798
|
);
|
|
1799
|
-
return
|
|
1800
|
-
}, r.n = function(
|
|
1801
|
-
var u =
|
|
1802
|
-
return
|
|
1799
|
+
return d;
|
|
1800
|
+
}, r.n = function(o) {
|
|
1801
|
+
var u = o && o.__esModule ? function() {
|
|
1802
|
+
return o.default;
|
|
1803
1803
|
} : function() {
|
|
1804
|
-
return
|
|
1804
|
+
return o;
|
|
1805
1805
|
};
|
|
1806
1806
|
return r.d(u, "a", u), u;
|
|
1807
|
-
}, r.o = function(
|
|
1808
|
-
return Object.prototype.hasOwnProperty.call(
|
|
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
|
|
1816
|
-
return (
|
|
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
|
|
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 (!
|
|
1842
|
-
for (var
|
|
1843
|
-
if (s(A, M(l,
|
|
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 (!
|
|
1850
|
-
for (var
|
|
1851
|
-
if (!s(A, M(l,
|
|
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,
|
|
1856
|
-
return s.validate(s.options, A, l,
|
|
1855
|
+
function Y(s, A, l, m) {
|
|
1856
|
+
return s.validate(s.options, A, l, m);
|
|
1857
1857
|
}
|
|
1858
|
-
var
|
|
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,
|
|
1887
|
-
return s(A, l,
|
|
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,
|
|
1893
|
-
return
|
|
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,
|
|
1899
|
-
for (var
|
|
1900
|
-
if (Y(M(s,
|
|
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,
|
|
1904
|
-
return !
|
|
1903
|
+
$nor: function(s, A, l, m) {
|
|
1904
|
+
return !V.$or(s, A, l, m);
|
|
1905
1905
|
},
|
|
1906
|
-
$and: function(s, A, l,
|
|
1907
|
-
for (var
|
|
1908
|
-
if (!Y(M(s,
|
|
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,
|
|
1915
|
-
return s.call(A, A, l,
|
|
1914
|
+
$where: function(s, A, l, m) {
|
|
1915
|
+
return s.call(A, A, l, m);
|
|
1916
1916
|
},
|
|
1917
|
-
$elemMatch: function(s, A, l,
|
|
1918
|
-
return
|
|
1919
|
-
for (var w = 0; w <
|
|
1920
|
-
if (M(
|
|
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,
|
|
1922
|
+
}(A, s) : Y(s, A, l, m);
|
|
1923
1923
|
},
|
|
1924
|
-
$exists: function(s, A, l,
|
|
1925
|
-
return
|
|
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
|
|
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) :
|
|
1933
|
-
return
|
|
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
|
|
1938
|
+
return B(m(p), m(s)) === 0;
|
|
1939
1939
|
}
|
|
1940
1940
|
);
|
|
1941
1941
|
},
|
|
1942
1942
|
$gt: function(s, A, l) {
|
|
1943
|
-
var
|
|
1943
|
+
var m = l.comparable, B = l.compare;
|
|
1944
1944
|
return function(p) {
|
|
1945
|
-
return
|
|
1945
|
+
return B(m(p), m(s)) > 0;
|
|
1946
1946
|
};
|
|
1947
1947
|
},
|
|
1948
1948
|
$gte: function(s, A, l) {
|
|
1949
|
-
var
|
|
1949
|
+
var m = l.comparable, B = l.compare;
|
|
1950
1950
|
return function(p) {
|
|
1951
|
-
return
|
|
1951
|
+
return B(m(p), m(s)) >= 0;
|
|
1952
1952
|
};
|
|
1953
1953
|
},
|
|
1954
1954
|
$lt: function(s, A, l) {
|
|
1955
|
-
var
|
|
1955
|
+
var m = l.comparable, B = l.compare;
|
|
1956
1956
|
return function(p) {
|
|
1957
|
-
return
|
|
1957
|
+
return B(m(p), m(s)) < 0;
|
|
1958
1958
|
};
|
|
1959
1959
|
},
|
|
1960
1960
|
$lte: function(s, A, l) {
|
|
1961
|
-
var
|
|
1961
|
+
var m = l.comparable, B = l.compare;
|
|
1962
1962
|
return function(p) {
|
|
1963
|
-
return
|
|
1963
|
+
return B(m(p), m(s)) <= 0;
|
|
1964
1964
|
};
|
|
1965
1965
|
},
|
|
1966
1966
|
$in: function(s, A, l) {
|
|
1967
|
-
var
|
|
1968
|
-
return function(
|
|
1969
|
-
if (!(
|
|
1970
|
-
var p =
|
|
1971
|
-
if (p ===
|
|
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(
|
|
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 =
|
|
1987
|
-
if (~s.indexOf(
|
|
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
|
|
1993
|
-
return function(
|
|
1994
|
-
return !
|
|
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
|
|
2004
|
-
return F(function(
|
|
2005
|
-
return !
|
|
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
|
|
2022
|
-
return function(
|
|
2023
|
-
return !Y(
|
|
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,
|
|
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
|
|
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,
|
|
2052
|
-
if (function be(
|
|
2053
|
-
if (R === U.length ||
|
|
2054
|
-
return void se.push([
|
|
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 (
|
|
2057
|
-
for (var ae = 0, dt =
|
|
2058
|
-
else be(M(
|
|
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(
|
|
2061
|
+
return Y(m, w[0], w[1], w[2]);
|
|
2062
2062
|
}
|
|
2063
|
-
for (var D =
|
|
2064
|
-
var Q = p[E], J = Y(
|
|
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
|
|
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,
|
|
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
|
-
},
|
|
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 =
|
|
2083
|
-
if (Q) q[h] && (E = q[h](E, w, s)), D.push(
|
|
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] :
|
|
2092
|
+
return D.length === 1 ? D[0] : P(D, V.$and);
|
|
2093
2093
|
}, p = function(w) {
|
|
2094
|
-
return w =
|
|
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 ?
|
|
2098
|
+
}(w, []).join(",").search(/[$.]/) === -1 ? P(w, K) : B(w);
|
|
2099
2099
|
};
|
|
2100
2100
|
return function(w) {
|
|
2101
|
-
return
|
|
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 (
|
|
2112
|
+
if (d(s)) {
|
|
2113
2113
|
if (s.length !== A.length) return !1;
|
|
2114
|
-
for (var
|
|
2115
|
-
if (!K(s[
|
|
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(
|
|
2125
|
-
return Y(
|
|
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(
|
|
2132
|
-
return Y(l,
|
|
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 (
|
|
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() :
|
|
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,
|
|
2152
|
-
for (var i = 0; i <
|
|
2153
|
-
var a =
|
|
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,
|
|
2158
|
-
return
|
|
2157
|
+
function ms(e, c, i) {
|
|
2158
|
+
return c && gs(e.prototype, c), e;
|
|
2159
2159
|
}
|
|
2160
|
-
function ds(e,
|
|
2161
|
-
e.prototype = Object.create(
|
|
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,
|
|
2168
|
+
function _(e, c) {
|
|
2169
2169
|
return _ = Object.setPrototypeOf || function(a, r) {
|
|
2170
2170
|
return a.__proto__ = r, a;
|
|
2171
|
-
}, _(e,
|
|
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,
|
|
2184
|
-
return Bs() ? L = Reflect.construct : L = function(r,
|
|
2185
|
-
var
|
|
2186
|
-
|
|
2187
|
-
var f = Function.bind.apply(r,
|
|
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
|
|
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
|
|
2201
|
-
if (
|
|
2202
|
-
|
|
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(
|
|
2223
|
-
return 'Cannot execute "' +
|
|
2222
|
+
var _e = function(c) {
|
|
2223
|
+
return 'Cannot execute "' + c.action + '" on "' + c.subjectName + '"';
|
|
2224
2224
|
}, k = _e, ps = /* @__PURE__ */ function(e) {
|
|
2225
|
-
ds(
|
|
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
|
-
},
|
|
2230
|
-
var
|
|
2231
|
-
return Object.defineProperty(
|
|
2229
|
+
}, c.from = function(r) {
|
|
2230
|
+
var o = new this("");
|
|
2231
|
+
return Object.defineProperty(o, "ability", {
|
|
2232
2232
|
value: r
|
|
2233
|
-
}),
|
|
2233
|
+
}), o;
|
|
2234
2234
|
};
|
|
2235
|
-
function
|
|
2236
|
-
var
|
|
2237
|
-
return r === void 0 && (r = {}),
|
|
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 =
|
|
2239
|
+
var i = c.prototype;
|
|
2240
2240
|
return i.setMessage = function(r) {
|
|
2241
2241
|
return this._customMessage = r, this;
|
|
2242
|
-
}, i.throwUnlessCan = function(r,
|
|
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
|
|
2246
|
-
if (!(
|
|
2245
|
+
var d = this.ability.relevantRuleFor(r, o, u);
|
|
2246
|
+
if (!(d && !d.inverted)) {
|
|
2247
2247
|
this._setMetadata({
|
|
2248
2248
|
action: r,
|
|
2249
|
-
subject:
|
|
2249
|
+
subject: o,
|
|
2250
2250
|
field: u,
|
|
2251
|
-
subjectName: this.ability.subjectName(
|
|
2251
|
+
subjectName: this.ability.subjectName(o)
|
|
2252
2252
|
});
|
|
2253
|
-
var f =
|
|
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
|
-
},
|
|
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
|
|
2267
|
-
return
|
|
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,
|
|
2274
|
-
var a = i[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", r = e.indexOf("**") === -1 ? "[^.]" : ".",
|
|
2275
|
-
return
|
|
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,
|
|
2278
|
-
return e === "." && (i[
|
|
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
|
|
2281
|
+
var c = e.map(function(a) {
|
|
2282
2282
|
return a.replace(Ms, Ys).replace(Ds, Cs);
|
|
2283
|
-
}), i =
|
|
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
|
|
2296
|
-
return
|
|
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
|
-
},
|
|
2298
|
+
}, c.isRelevantFor = function(a, r) {
|
|
2299
2299
|
return this.fields ? r ? this.matchesField(r) : !this.inverted : !0;
|
|
2300
|
-
},
|
|
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,
|
|
2307
|
-
return e ===
|
|
2306
|
+
function Ce(e, c) {
|
|
2307
|
+
return e === c || Array.isArray(c) && c.indexOf(e) !== -1;
|
|
2308
2308
|
}
|
|
2309
|
-
var
|
|
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
|
|
2331
|
-
return
|
|
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
|
|
2340
|
-
return this[x].indexedRules =
|
|
2341
|
-
},
|
|
2342
|
-
for (var r = /* @__PURE__ */ Object.create(null),
|
|
2343
|
-
var y = new
|
|
2344
|
-
u = !!(u && y.inverted), !
|
|
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
|
|
2347
|
-
r[
|
|
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
|
|
2350
|
-
r[
|
|
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:
|
|
2356
|
+
hasPerFieldRules: d,
|
|
2357
2357
|
rules: r
|
|
2358
2358
|
};
|
|
2359
|
-
},
|
|
2360
|
-
for (var r = this[x].aliases,
|
|
2361
|
-
var
|
|
2362
|
-
r.hasOwnProperty(
|
|
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
|
|
2365
|
-
},
|
|
2366
|
-
if (
|
|
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,
|
|
2368
|
+
var u = this.relevantRuleFor(a, r, o);
|
|
2369
2369
|
return !!u && !u.inverted;
|
|
2370
|
-
},
|
|
2371
|
-
for (var u = this.rulesFor(a, r,
|
|
2372
|
-
if (u[
|
|
2373
|
-
return u[
|
|
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
|
-
},
|
|
2376
|
-
var
|
|
2377
|
-
return u[
|
|
2378
|
-
},
|
|
2379
|
-
var
|
|
2380
|
-
var y =
|
|
2381
|
-
return y ? Object.assign(
|
|
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
|
-
},
|
|
2384
|
+
}, c.rulesFor = function(a, r, o) {
|
|
2385
2385
|
var u = this.possibleRulesFor(a, r);
|
|
2386
|
-
return this[x].hasPerFieldRules ? u.filter(function(
|
|
2387
|
-
return
|
|
2386
|
+
return this[x].hasPerFieldRules ? u.filter(function(d) {
|
|
2387
|
+
return d.isRelevantFor(r, o);
|
|
2388
2388
|
}) : u;
|
|
2389
|
-
},
|
|
2389
|
+
}, c.cannot = function() {
|
|
2390
2390
|
return !this.can.apply(this, arguments);
|
|
2391
|
-
},
|
|
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
|
-
},
|
|
2398
|
-
var
|
|
2399
|
-
return
|
|
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
|
|
2402
|
-
|
|
2401
|
+
var d = o[a].indexOf(r);
|
|
2402
|
+
o[a].splice(d, 1), u = !1;
|
|
2403
2403
|
}
|
|
2404
2404
|
};
|
|
2405
|
-
},
|
|
2406
|
-
var
|
|
2407
|
-
|
|
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 || {}),
|
|
2417
|
-
const
|
|
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
|
-
},
|
|
2427
|
+
}, Vs = "access-denied", S = {
|
|
2427
2428
|
Action: t,
|
|
2428
2429
|
Subject: {
|
|
2429
|
-
Business:
|
|
2430
|
+
Business: n,
|
|
2430
2431
|
Restaurant: $e
|
|
2431
2432
|
}
|
|
2432
2433
|
}, et = {
|
|
2433
|
-
[C.permission]:
|
|
2434
|
-
[C.promotion]:
|
|
2435
|
-
[C.voucher]:
|
|
2436
|
-
[C.membership]:
|
|
2437
|
-
[C.stock]:
|
|
2438
|
-
[C.wastageTemplate]:
|
|
2439
|
-
[C.closingTemplate]:
|
|
2440
|
-
[C.orderTemplate]:
|
|
2441
|
-
[C.ingredient]:
|
|
2442
|
-
[C.recipe]:
|
|
2443
|
-
[C.unit]:
|
|
2444
|
-
[C.supplier]:
|
|
2445
|
-
[C.warehouse]:
|
|
2446
|
-
[C.publish]:
|
|
2447
|
-
[C.integration]:
|
|
2448
|
-
[C.orderDraft]:
|
|
2449
|
-
[C.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
|
|
2455
|
-
const
|
|
2456
|
-
return
|
|
2455
|
+
function Pa(e) {
|
|
2456
|
+
const c = Object.entries(et).find(([, i]) => i === e);
|
|
2457
|
+
return c ? c[0] : e;
|
|
2457
2458
|
}
|
|
2458
|
-
const
|
|
2459
|
+
const Ha = {
|
|
2459
2460
|
// General
|
|
2460
2461
|
restaurant: {
|
|
2461
2462
|
label: "Restaurant Owner",
|
|
2462
|
-
subject:
|
|
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:
|
|
2544
|
+
category: g.menu
|
|
2465
2545
|
},
|
|
2466
|
-
|
|
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:
|
|
2566
|
+
subject: n.menu_menuManagement,
|
|
2469
2567
|
actions: [t.manage],
|
|
2470
|
-
category:
|
|
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:
|
|
2579
|
+
subject: n.inventory_stockBalance,
|
|
2476
2580
|
actions: [t.manage],
|
|
2477
|
-
category:
|
|
2581
|
+
category: g.inventory
|
|
2478
2582
|
},
|
|
2479
2583
|
stockAdjustment: {
|
|
2480
2584
|
label: "Stock Adjustment Management",
|
|
2481
|
-
subject:
|
|
2585
|
+
subject: n.inventory_stockAdjustment,
|
|
2482
2586
|
actions: [t.manage],
|
|
2483
|
-
category:
|
|
2587
|
+
category: g.inventory
|
|
2484
2588
|
},
|
|
2485
2589
|
unitCostHistory: {
|
|
2486
2590
|
label: "Unit Cost History Management",
|
|
2487
|
-
subject:
|
|
2591
|
+
subject: n.inventory_unitCostHistory,
|
|
2488
2592
|
actions: [t.manage],
|
|
2489
|
-
category:
|
|
2593
|
+
category: g.inventory
|
|
2490
2594
|
},
|
|
2491
2595
|
wastageTemplate: {
|
|
2492
2596
|
label: "Wastage Template Management",
|
|
2493
|
-
subject:
|
|
2597
|
+
subject: n.inventory_wastageTemplate,
|
|
2494
2598
|
actions: [t.manage],
|
|
2495
|
-
category:
|
|
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:
|
|
2604
|
+
subject: n.inventory_closingHistory,
|
|
2501
2605
|
actions: [t.manage],
|
|
2502
|
-
category:
|
|
2606
|
+
category: g.inventory
|
|
2503
2607
|
},
|
|
2504
2608
|
closingTemplate: {
|
|
2505
2609
|
label: "Closing Template Management",
|
|
2506
|
-
subject:
|
|
2610
|
+
subject: n.inventory_closingTemplate,
|
|
2507
2611
|
actions: [t.manage],
|
|
2508
|
-
category:
|
|
2612
|
+
category: g.inventory,
|
|
2509
2613
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
2510
2614
|
},
|
|
2511
2615
|
closingDraft: {
|
|
2512
2616
|
label: "Closing Draft Management",
|
|
2513
|
-
subject:
|
|
2617
|
+
subject: n.inventory_closingDraft,
|
|
2514
2618
|
actions: [t.manage],
|
|
2515
|
-
category:
|
|
2619
|
+
category: g.inventory,
|
|
2516
2620
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
2517
2621
|
},
|
|
2518
2622
|
ingredient: {
|
|
2519
2623
|
label: "Ingredient Management",
|
|
2520
|
-
subject:
|
|
2624
|
+
subject: n.inventory_ingredient,
|
|
2521
2625
|
actions: [t.manage],
|
|
2522
|
-
category:
|
|
2626
|
+
category: g.inventory
|
|
2523
2627
|
},
|
|
2524
2628
|
ingredientGroup: {
|
|
2525
2629
|
label: "Ingredient Group Management",
|
|
2526
|
-
subject:
|
|
2630
|
+
subject: n.inventory_ingredientGroup,
|
|
2527
2631
|
actions: [t.manage],
|
|
2528
2632
|
showByFeatureFlag: "inventory_ingredient_group",
|
|
2529
|
-
category:
|
|
2633
|
+
category: g.inventory
|
|
2530
2634
|
},
|
|
2531
2635
|
recipe: {
|
|
2532
2636
|
label: "Recipe Management",
|
|
2533
|
-
subject:
|
|
2637
|
+
subject: n.inventory_recipe,
|
|
2534
2638
|
actions: [t.manage],
|
|
2535
|
-
category:
|
|
2639
|
+
category: g.inventory
|
|
2536
2640
|
},
|
|
2537
2641
|
unit: {
|
|
2538
2642
|
label: "Unit Management",
|
|
2539
|
-
subject:
|
|
2643
|
+
subject: n.inventory_unit,
|
|
2540
2644
|
actions: [t.manage],
|
|
2541
|
-
category:
|
|
2645
|
+
category: g.inventory
|
|
2542
2646
|
},
|
|
2543
2647
|
purchaseTransfer: {
|
|
2544
2648
|
label: "Purchase / Transfer Management",
|
|
2545
|
-
subject:
|
|
2649
|
+
subject: n.inventory_purchaseTransfer,
|
|
2546
2650
|
actions: [t.manage],
|
|
2547
|
-
category:
|
|
2651
|
+
category: g.inventory
|
|
2548
2652
|
},
|
|
2549
2653
|
orderDraftApproval: {
|
|
2550
2654
|
label: "Order Draft Approval",
|
|
2551
|
-
subject:
|
|
2655
|
+
subject: n.inventory_orderDraftApproval,
|
|
2552
2656
|
actions: [t.manage],
|
|
2553
|
-
category:
|
|
2657
|
+
category: g.inventory
|
|
2554
2658
|
},
|
|
2555
2659
|
transferOut: {
|
|
2556
2660
|
label: "Transfer Out Management",
|
|
2557
|
-
subject:
|
|
2661
|
+
subject: n.inventory_transferOut,
|
|
2558
2662
|
actions: [t.manage],
|
|
2559
|
-
category:
|
|
2663
|
+
category: g.inventory
|
|
2560
2664
|
},
|
|
2561
2665
|
surcharge: {
|
|
2562
2666
|
label: "Surcharge Management",
|
|
2563
|
-
subject:
|
|
2667
|
+
subject: n.inventory_surcharge,
|
|
2564
2668
|
actions: [t.manage],
|
|
2565
2669
|
showByFeatureFlag: "inventory_portal_surcharge",
|
|
2566
|
-
category:
|
|
2670
|
+
category: g.inventory
|
|
2567
2671
|
},
|
|
2568
2672
|
orderTemplate: {
|
|
2569
2673
|
label: "Order Template Management",
|
|
2570
|
-
subject:
|
|
2674
|
+
subject: n.inventory_orderTemplate,
|
|
2571
2675
|
actions: [t.manage],
|
|
2572
2676
|
showByFeatureFlag: "inventory_portal_must_use_transfer_template",
|
|
2573
|
-
category:
|
|
2677
|
+
category: g.inventory
|
|
2574
2678
|
},
|
|
2575
2679
|
supplier: {
|
|
2576
2680
|
label: "Supplier Management",
|
|
2577
|
-
subject:
|
|
2681
|
+
subject: n.inventory_supplier,
|
|
2578
2682
|
actions: [t.manage],
|
|
2579
|
-
category:
|
|
2683
|
+
category: g.inventory
|
|
2580
2684
|
},
|
|
2581
2685
|
warehouse: {
|
|
2582
2686
|
label: "Warehouse Management",
|
|
2583
|
-
subject:
|
|
2687
|
+
subject: n.inventory_warehouse,
|
|
2584
2688
|
actions: [t.manage],
|
|
2585
|
-
category:
|
|
2689
|
+
category: g.inventory
|
|
2586
2690
|
},
|
|
2587
2691
|
publish: {
|
|
2588
2692
|
label: "Publish Management",
|
|
2589
|
-
subject:
|
|
2693
|
+
subject: n.inventory_publish,
|
|
2590
2694
|
actions: [t.manage],
|
|
2591
|
-
category:
|
|
2695
|
+
category: g.inventory
|
|
2592
2696
|
},
|
|
2593
2697
|
import: {
|
|
2594
2698
|
label: "Import Management",
|
|
2595
|
-
subject:
|
|
2699
|
+
subject: n.inventory_import,
|
|
2596
2700
|
actions: [t.manage],
|
|
2597
2701
|
showByFeatureFlag: "inventory_bulk_import",
|
|
2598
|
-
category:
|
|
2702
|
+
category: g.inventory
|
|
2599
2703
|
},
|
|
2600
2704
|
integration: {
|
|
2601
2705
|
label: "Integration Management",
|
|
2602
|
-
subject:
|
|
2706
|
+
subject: n.inventory_integration,
|
|
2603
2707
|
actions: [t.manage],
|
|
2604
|
-
category:
|
|
2708
|
+
category: g.inventory
|
|
2605
2709
|
},
|
|
2606
2710
|
// CRM
|
|
2607
2711
|
promotion: {
|
|
2608
2712
|
label: "Promotion Management V1",
|
|
2609
|
-
subject:
|
|
2713
|
+
subject: n.crm_promotion,
|
|
2610
2714
|
actions: [t.manage],
|
|
2611
|
-
category:
|
|
2715
|
+
category: g.crm
|
|
2612
2716
|
},
|
|
2613
2717
|
voucher: {
|
|
2614
2718
|
label: "Voucher Management V1",
|
|
2615
|
-
subject:
|
|
2719
|
+
subject: n.crm_voucher,
|
|
2616
2720
|
actions: [t.manage],
|
|
2617
|
-
category:
|
|
2721
|
+
category: g.crm
|
|
2618
2722
|
},
|
|
2619
2723
|
membership: {
|
|
2620
2724
|
label: "Membership Management V1",
|
|
2621
|
-
subject:
|
|
2725
|
+
subject: n.crm_membership,
|
|
2622
2726
|
actions: [t.manage],
|
|
2623
|
-
category:
|
|
2727
|
+
category: g.crm
|
|
2624
2728
|
},
|
|
2625
2729
|
analytic: {
|
|
2626
2730
|
label: "Analytic Management",
|
|
2627
|
-
subject:
|
|
2731
|
+
subject: n.crm_analytic,
|
|
2628
2732
|
actions: [t.manage],
|
|
2629
|
-
category:
|
|
2733
|
+
category: g.crm
|
|
2630
2734
|
},
|
|
2631
2735
|
broadcast: {
|
|
2632
2736
|
label: "Broadcast Management",
|
|
2633
|
-
subject:
|
|
2737
|
+
subject: n.crm_broadcast,
|
|
2634
2738
|
actions: [t.manage],
|
|
2635
|
-
category:
|
|
2739
|
+
category: g.crm
|
|
2636
2740
|
},
|
|
2637
2741
|
program: {
|
|
2638
2742
|
label: "Program Management",
|
|
2639
|
-
subject:
|
|
2743
|
+
subject: n.crm_program,
|
|
2640
2744
|
actions: [t.manage],
|
|
2641
|
-
category:
|
|
2745
|
+
category: g.crm
|
|
2642
2746
|
},
|
|
2643
2747
|
loyaltyMember: {
|
|
2644
2748
|
label: "Loyalty Member Management",
|
|
2645
|
-
subject:
|
|
2749
|
+
subject: n.crm_loyaltyMember,
|
|
2646
2750
|
actions: [t.manage],
|
|
2647
|
-
category:
|
|
2751
|
+
category: g.crm
|
|
2648
2752
|
},
|
|
2649
2753
|
loyaltySegment: {
|
|
2650
2754
|
label: "Loyalty Segment Management",
|
|
2651
|
-
subject:
|
|
2755
|
+
subject: n.crm_loyaltySegment,
|
|
2652
2756
|
actions: [t.manage],
|
|
2653
|
-
category:
|
|
2757
|
+
category: g.crm
|
|
2654
2758
|
},
|
|
2655
2759
|
loyaltyCard: {
|
|
2656
2760
|
label: "Loyalty Card Management",
|
|
2657
|
-
subject:
|
|
2761
|
+
subject: n.crm_loyaltyCard,
|
|
2658
2762
|
actions: [t.manage],
|
|
2659
|
-
category:
|
|
2763
|
+
category: g.crm
|
|
2660
2764
|
},
|
|
2661
2765
|
referral: {
|
|
2662
2766
|
label: "Referral Management",
|
|
2663
|
-
subject:
|
|
2767
|
+
subject: n.crm_referral,
|
|
2664
2768
|
actions: [t.manage],
|
|
2665
|
-
category:
|
|
2769
|
+
category: g.crm
|
|
2666
2770
|
},
|
|
2667
2771
|
store: {
|
|
2668
2772
|
label: "Store Management",
|
|
2669
|
-
subject:
|
|
2773
|
+
subject: n.crm_store,
|
|
2670
2774
|
actions: [t.manage],
|
|
2671
|
-
category:
|
|
2775
|
+
category: g.crm
|
|
2672
2776
|
},
|
|
2673
2777
|
transaction: {
|
|
2674
2778
|
label: "Transaction Management",
|
|
2675
|
-
subject:
|
|
2779
|
+
subject: n.crm_transaction,
|
|
2676
2780
|
actions: [t.manage],
|
|
2677
|
-
category:
|
|
2781
|
+
category: g.crm
|
|
2678
2782
|
},
|
|
2679
2783
|
marketing: {
|
|
2680
2784
|
label: "Marketing Management",
|
|
2681
|
-
subject:
|
|
2785
|
+
subject: n.crm_marketing,
|
|
2682
2786
|
actions: [t.manage],
|
|
2683
|
-
category:
|
|
2787
|
+
category: g.crm
|
|
2684
2788
|
},
|
|
2685
2789
|
setting: {
|
|
2686
2790
|
label: "Setting Management",
|
|
2687
|
-
subject:
|
|
2791
|
+
subject: n.crm_setting,
|
|
2688
2792
|
actions: [t.manage],
|
|
2689
|
-
category:
|
|
2793
|
+
category: g.crm
|
|
2690
2794
|
},
|
|
2691
2795
|
bin: {
|
|
2692
2796
|
label: "Bin Management",
|
|
2693
|
-
subject:
|
|
2797
|
+
subject: n.crm_bin,
|
|
2694
2798
|
actions: [t.manage],
|
|
2695
|
-
category:
|
|
2799
|
+
category: g.crm
|
|
2696
2800
|
},
|
|
2697
2801
|
queue: {
|
|
2698
2802
|
label: "Queue Management",
|
|
2699
|
-
subject:
|
|
2803
|
+
subject: n.crm_queue,
|
|
2700
2804
|
actions: [t.manage],
|
|
2701
|
-
category:
|
|
2805
|
+
category: g.crm
|
|
2702
2806
|
},
|
|
2703
2807
|
// Payment
|
|
2704
2808
|
payoutAccount: {
|
|
2705
2809
|
label: "Payout Account Management",
|
|
2706
|
-
subject:
|
|
2810
|
+
subject: n.payment_payoutAccount,
|
|
2707
2811
|
actions: [t.manage],
|
|
2708
|
-
category:
|
|
2812
|
+
category: g.payment
|
|
2709
2813
|
},
|
|
2710
2814
|
paymentOnboarding: {
|
|
2711
2815
|
label: "Payment Onboarding Management",
|
|
2712
|
-
subject:
|
|
2816
|
+
subject: n.payment_paymentOnboarding,
|
|
2713
2817
|
actions: [t.manage],
|
|
2714
|
-
category:
|
|
2818
|
+
category: g.payment
|
|
2715
2819
|
},
|
|
2716
2820
|
transactions: {
|
|
2717
2821
|
label: "Transactions Management",
|
|
2718
|
-
subject:
|
|
2822
|
+
subject: n.payment_transactions,
|
|
2719
2823
|
actions: [t.manage],
|
|
2720
|
-
category:
|
|
2824
|
+
category: g.payment
|
|
2721
2825
|
},
|
|
2722
2826
|
settlements: {
|
|
2723
2827
|
label: "Settlements Management",
|
|
2724
|
-
subject:
|
|
2828
|
+
subject: n.payment_settlements,
|
|
2725
2829
|
actions: [t.manage],
|
|
2726
|
-
category:
|
|
2830
|
+
category: g.payment
|
|
2727
2831
|
},
|
|
2728
2832
|
// HRM
|
|
2729
2833
|
teamMember: {
|
|
2730
2834
|
label: "Team Member Management",
|
|
2731
|
-
subject:
|
|
2835
|
+
subject: n.hrm_teamMember,
|
|
2732
2836
|
actions: [t.manage],
|
|
2733
|
-
category:
|
|
2837
|
+
category: g.hrm
|
|
2734
2838
|
},
|
|
2735
2839
|
employee: {
|
|
2736
2840
|
label: "Employee Management",
|
|
2737
|
-
subject:
|
|
2841
|
+
subject: n.hrm_employee,
|
|
2738
2842
|
actions: [t.manage],
|
|
2739
|
-
category:
|
|
2843
|
+
category: g.hrm
|
|
2740
2844
|
},
|
|
2741
2845
|
auditLog: {
|
|
2742
2846
|
label: "Audit Log Management",
|
|
2743
|
-
subject:
|
|
2847
|
+
subject: n.hrm_auditLog,
|
|
2744
2848
|
actions: [t.manage],
|
|
2745
|
-
category:
|
|
2849
|
+
category: g.hrm
|
|
2746
2850
|
},
|
|
2747
2851
|
// Report
|
|
2748
2852
|
report_reports: {
|
|
2749
2853
|
label: "Create Report",
|
|
2750
|
-
subject:
|
|
2854
|
+
subject: n.report_createReport,
|
|
2751
2855
|
actions: [t.manage],
|
|
2752
|
-
category:
|
|
2856
|
+
category: g.report
|
|
2753
2857
|
},
|
|
2754
2858
|
report_accessOverview: {
|
|
2755
2859
|
label: "Access Overview Page",
|
|
2756
|
-
subject:
|
|
2860
|
+
subject: n.report_accessOverview,
|
|
2757
2861
|
actions: [t.manage],
|
|
2758
|
-
category:
|
|
2862
|
+
category: g.report
|
|
2759
2863
|
},
|
|
2760
2864
|
report_accessInsight: {
|
|
2761
2865
|
label: "Access Insight Page",
|
|
2762
|
-
subject:
|
|
2866
|
+
subject: n.report_accessInsight,
|
|
2763
2867
|
actions: [t.manage],
|
|
2764
|
-
category:
|
|
2868
|
+
category: g.report
|
|
2765
2869
|
},
|
|
2766
2870
|
report_accessSetting: {
|
|
2767
2871
|
label: "Access Setting Page",
|
|
2768
|
-
subject:
|
|
2872
|
+
subject: n.report_accessSetting,
|
|
2769
2873
|
actions: [t.manage],
|
|
2770
|
-
category:
|
|
2874
|
+
category: g.report
|
|
2771
2875
|
},
|
|
2772
2876
|
report_accessIntegration: {
|
|
2773
2877
|
label: "Access Integration Page",
|
|
2774
|
-
subject:
|
|
2878
|
+
subject: n.report_accessIntegration,
|
|
2775
2879
|
actions: [t.manage],
|
|
2776
|
-
category:
|
|
2880
|
+
category: g.report
|
|
2777
2881
|
},
|
|
2778
2882
|
report_reports_allDefaultReports: {
|
|
2779
2883
|
label: "Include future Default Reports",
|
|
2780
|
-
subject:
|
|
2884
|
+
subject: n.report_reports_allDefaultReports,
|
|
2781
2885
|
actions: [t.manage, t.read, t.create],
|
|
2782
|
-
category:
|
|
2886
|
+
category: g.reports,
|
|
2783
2887
|
isCategoryCover: !0
|
|
2784
2888
|
},
|
|
2785
2889
|
report_reports_allCustomReports: {
|
|
2786
2890
|
label: "Include future Custom Reports",
|
|
2787
|
-
subject:
|
|
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:
|
|
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
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
],
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
],
|
|
3068
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
3221
|
+
...j,
|
|
3118
3222
|
{
|
|
3119
3223
|
label: "Inventory",
|
|
3120
3224
|
subject: b.inventory,
|
|
3121
3225
|
actions: [t.update]
|
|
3122
3226
|
}
|
|
3123
3227
|
], zs = [
|
|
3124
|
-
...
|
|
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
|
-
...
|
|
3236
|
+
...j,
|
|
3133
3237
|
...ge,
|
|
3134
3238
|
...me
|
|
3135
3239
|
];
|
|
3136
3240
|
const Ns = {
|
|
3137
|
-
[`set_${
|
|
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_${
|
|
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_${
|
|
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_${
|
|
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_${
|
|
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_${
|
|
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_${
|
|
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_${
|
|
3276
|
+
[`set_${n.inventory_ingredient}`]: {
|
|
3173
3277
|
key: "sys:inventory:ingredient",
|
|
3174
3278
|
name: "Ingredient",
|
|
3175
3279
|
permissions: qs
|
|
3176
3280
|
},
|
|
3177
|
-
[`set_${
|
|
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_${
|
|
3286
|
+
[`set_${n.inventory_recipe}`]: {
|
|
3183
3287
|
key: "sys:inventory:recipe",
|
|
3184
3288
|
name: "Recipe",
|
|
3185
3289
|
permissions: Xs
|
|
3186
3290
|
},
|
|
3187
|
-
[`set_${
|
|
3291
|
+
[`set_${n.inventory_unit}`]: {
|
|
3188
3292
|
key: "sys:inventory:unit",
|
|
3189
3293
|
name: "Unit",
|
|
3190
|
-
permissions:
|
|
3294
|
+
permissions: Ps
|
|
3191
3295
|
},
|
|
3192
|
-
[`set_${
|
|
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_${
|
|
3301
|
+
[`set_${n.inventory_orderDraftApproval}`]: {
|
|
3198
3302
|
key: "sys:inventory:order_draft_approval",
|
|
3199
3303
|
name: "Order Draft Approval",
|
|
3200
|
-
permissions:
|
|
3304
|
+
permissions: Hs
|
|
3201
3305
|
},
|
|
3202
|
-
[`set_${
|
|
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_${
|
|
3311
|
+
[`set_${n.inventory_surcharge}`]: {
|
|
3208
3312
|
key: "sys:inventory:surcharge",
|
|
3209
3313
|
name: "Surcharge",
|
|
3210
3314
|
permissions: ot
|
|
3211
3315
|
},
|
|
3212
|
-
[`set_${
|
|
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_${
|
|
3321
|
+
[`set_${n.inventory_supplier}`]: {
|
|
3218
3322
|
key: "sys:inventory:supplier",
|
|
3219
3323
|
name: "Supplier",
|
|
3220
3324
|
permissions: Fs
|
|
3221
3325
|
},
|
|
3222
|
-
[`set_${
|
|
3326
|
+
[`set_${n.inventory_warehouse}`]: {
|
|
3223
3327
|
key: "sys:inventory:warehouse",
|
|
3224
3328
|
name: "Warehouse",
|
|
3225
3329
|
permissions: Os
|
|
3226
3330
|
},
|
|
3227
|
-
[`set_${
|
|
3331
|
+
[`set_${n.inventory_publish}`]: {
|
|
3228
3332
|
key: "sys:inventory:publish",
|
|
3229
3333
|
name: "Publish",
|
|
3230
3334
|
permissions: Zs
|
|
3231
3335
|
},
|
|
3232
|
-
[`set_${
|
|
3336
|
+
[`set_${n.inventory_import}`]: {
|
|
3233
3337
|
key: "sys:inventory:import",
|
|
3234
3338
|
name: "Import",
|
|
3235
3339
|
permissions: Is
|
|
3236
3340
|
},
|
|
3237
|
-
[`set_${
|
|
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_${
|
|
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:
|
|
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_${
|
|
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:
|
|
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_${
|
|
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:
|
|
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_${
|
|
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_${
|
|
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,
|
|
3448
|
+
(e, c) => {
|
|
3345
3449
|
var i;
|
|
3346
|
-
return e[i =
|
|
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((
|
|
3352
|
-
...
|
|
3353
|
-
subject: Es(
|
|
3354
|
-
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
|
|
3462
|
+
return new js(Ts(e));
|
|
3359
3463
|
}
|
|
3360
|
-
function Js(e,
|
|
3361
|
-
const a = Array.isArray(e) ? e : [e], r = Ks(
|
|
3362
|
-
if (
|
|
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
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3468
|
+
d.action,
|
|
3469
|
+
o(d),
|
|
3470
|
+
d.field
|
|
3367
3471
|
);
|
|
3368
3472
|
return {
|
|
3369
3473
|
granted: !1,
|
|
3370
|
-
decisivePermission:
|
|
3474
|
+
decisivePermission: d,
|
|
3371
3475
|
decisiveRule: M ?? null
|
|
3372
3476
|
};
|
|
3373
3477
|
}
|
|
3374
|
-
const f = a[0], y = r.relevantRuleFor(f.action,
|
|
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,
|
|
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:
|
|
3491
|
+
evaluating: o = void 0,
|
|
3388
3492
|
shallow: u = !0,
|
|
3389
|
-
onError:
|
|
3390
|
-
} = a, f = T(!r), y = u ? bt(
|
|
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
|
-
|
|
3399
|
-
|
|
3502
|
+
o && Promise.resolve().then(() => {
|
|
3503
|
+
o.value = !0;
|
|
3400
3504
|
});
|
|
3401
3505
|
try {
|
|
3402
|
-
const
|
|
3506
|
+
const V = await e((q) => {
|
|
3403
3507
|
v(() => {
|
|
3404
|
-
|
|
3508
|
+
o && (o.value = !1), Y || q();
|
|
3405
3509
|
});
|
|
3406
3510
|
});
|
|
3407
|
-
F === M && (y.value =
|
|
3408
|
-
} catch (
|
|
3409
|
-
|
|
3511
|
+
F === M && (y.value = V);
|
|
3512
|
+
} catch (V) {
|
|
3513
|
+
d(V);
|
|
3410
3514
|
} finally {
|
|
3411
|
-
|
|
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:
|
|
3417
|
-
if (!
|
|
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(
|
|
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,
|
|
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 (
|
|
3433
|
-
const u = await
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
3563
|
+
const e = Ct(), { sessionUser: c } = ue();
|
|
3460
3564
|
return Ls(
|
|
3461
3565
|
async () => {
|
|
3462
3566
|
e.matched;
|
|
3463
|
-
const i =
|
|
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:
|
|
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(),
|
|
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(
|
|
3519
|
-
O("h2", da, we(Z(
|
|
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
|
|
3528
|
-
return (i, a) => Z(
|
|
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(
|
|
3638
|
+
setup(c, { attrs: i }) {
|
|
3535
3639
|
return () => fe(ba, {}, { default: () => fe(e, i) });
|
|
3536
3640
|
}
|
|
3537
3641
|
};
|
|
3538
3642
|
}
|
|
3539
|
-
function pa(e,
|
|
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(
|
|
3656
|
+
return Me(c, async () => {
|
|
3553
3657
|
await De(), a();
|
|
3554
3658
|
}), Me(e, async (r) => {
|
|
3555
3659
|
r && (await De(), a());
|
|
3556
|
-
}),
|
|
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
|
|
3566
|
-
var
|
|
3567
|
-
const u =
|
|
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 - ${((
|
|
3673
|
+
height: `calc(100dvh - ${((d = a.value) == null ? void 0 : d.top) + 24 + u}px)`
|
|
3570
3674
|
};
|
|
3571
3675
|
});
|
|
3572
|
-
return (
|
|
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(
|
|
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 (
|
|
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-
|
|
3610
|
-
X(() => import("./AuditLogList-
|
|
3611
|
-
), Ca = ee(X(() => import("./Main
|
|
3612
|
-
() => import("./PermissionSetList-
|
|
3713
|
+
}), Da = ee(X(() => import("./Main-CL5HSLrz.js"))), ya = ee(X(() => import("./Main-B6ILrjGv.js"))), va = ee(
|
|
3714
|
+
X(() => import("./AuditLogList-Bi--djNo.js"))
|
|
3715
|
+
), Ca = ee(X(() => import("./Main-HFWa8_uW.js"))), Ya = X(() => import("./EmployeeList-DQ34Em1k.js")), ha = X(() => import("./RoleList-B_zQKYCH.js")), Ga = X(() => import("./TimesheetList-DHaqTrL0.js")), ja = X(() => import("./TeamMemberList-DFCtu_c7.js")), Va = X(
|
|
3716
|
+
() => import("./PermissionSetList-Ci09rB-p.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:
|
|
3764
|
+
component: ja
|
|
3661
3765
|
},
|
|
3662
3766
|
{
|
|
3663
3767
|
path: "role",
|
|
3664
3768
|
name: "team-role",
|
|
3665
|
-
component:
|
|
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:
|
|
3678
|
-
const i =
|
|
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 =
|
|
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
|
-
}),
|
|
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
|
-
|
|
3844
|
+
d.value !== f && (d.value = f);
|
|
3741
3845
|
}), (f, y) => {
|
|
3742
3846
|
const M = le("FmCollapsibleTabs");
|
|
3743
3847
|
return W(), $(M, {
|
|
3744
|
-
modelValue:
|
|
3745
|
-
"onUpdate:modelValue": y[0] || (y[0] = (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
|
|
3755
|
-
return
|
|
3756
|
-
|
|
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],
|
|
3764
|
-
return Array.from(
|
|
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((
|
|
3768
|
-
...
|
|
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
|
-
|
|
3777
|
-
|
|
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
|
-
|
|
3885
|
+
Za as a,
|
|
3782
3886
|
Es as b,
|
|
3783
3887
|
cs as c,
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
S as f,
|
|
3888
|
+
t as e,
|
|
3889
|
+
Pa as f,
|
|
3787
3890
|
is as g,
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
Oa as r
|
|
3891
|
+
S as h,
|
|
3892
|
+
Ia as i,
|
|
3893
|
+
Oa as r,
|
|
3894
|
+
g as u
|
|
3791
3895
|
};
|