@feedmepos/mf-hrm-portal 2.0.15-dev → 2.0.15-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuditLogList-DBIsI4YF.js → AuditLogList-eyzJecZc.js} +4 -4
- package/dist/EmployeeList-QibdsTN-.js +736 -0
- package/dist/{Main-BAZAQTWi.js → Main-B_QCpWOx.js} +4 -4
- package/dist/{Main-D7yzD5SW.js → Main-Bjfm9a6M.js} +5 -5
- package/dist/{Main-B3YiMuFq.js → Main-DX1aet8y.js} +1298 -1294
- package/dist/{PermissionSetList-DBT9LtfT.js → PermissionSetList-fE9Zfrl6.js} +30 -30
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JpCfRxA9.js} +500 -500
- package/dist/RoleList-ByXZemFz.js +528 -0
- package/dist/{TeamMemberList-BCv5Vixx.js → TeamMemberList-D-_icv19.js} +327 -324
- package/dist/{TimesheetList-DpMBgVtY.js → TimesheetList-DVvz6id4.js} +7 -7
- package/dist/{app-pvHHFjbx.js → app-DJG3HGqG.js} +220 -261
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-BK_bM9xY.js → dayjs.min-CN6o-ax9.js} +1 -1
- package/dist/{employee-DhkixwiI.js → employee-CU-G-rAZ.js} +71 -74
- package/dist/{index-DK4fVbTF.js → index-ynxje0mm.js} +1 -1
- package/dist/{iteration-Bk3cnP07.js → iteration-C6Km_Rno.js} +1 -1
- package/dist/{lodash-TrOlqj07.js → lodash-DZvG4gEx.js} +1 -1
- package/dist/rule-X41LxaES.js +991 -0
- package/dist/src/helpers/rule.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +124 -19
- package/dist/src/types/employee.d.ts +3 -0
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/{timesheet-DSQeCVfL.js → timesheet-DUtxTIA4.js} +9 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useAppStore-CrUYEAtX.js +171 -0
- package/dist/useDiscardConfirm-BHni0LNu.js +28 -0
- package/dist/{useLoading-fEAOlgoV.js → useLoading-hGUqfW4U.js} +1 -1
- package/dist/{useReportPermissions-CkOk_2tl.js → useReportPermissions-BgTdISQy.js} +3 -3
- package/dist/utils-BZkjJbju.js +17 -0
- package/package.json +1 -1
- package/dist/EmployeeList-BOSxLZbY.js +0 -702
- package/dist/RoleList-DeE5tN-5.js +0 -519
- package/dist/index-Bckj5jnu.js +0 -998
- package/dist/useAppStore-DwfwjZpc.js +0 -168
- package/dist/useRestaurantMap-e9fQJiLC.js +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRef as It, ref as L, shallowRef as
|
|
1
|
+
import { isRef as It, ref as L, shallowRef as Nt, watchEffect as Ee, computed as ge, h as De, defineComponent as T, createBlock as ae, renderSlot as xe, createCommentVNode as zt, unref as R, openBlock as k, createElementBlock as qe, createElementVNode as z, toDisplayString as ve, watch as Ce, nextTick as he, onMounted as Pe, onBeforeUnmount as Rt, normalizeStyle as Wt, resolveComponent as de, withCtx as Ut, createVNode as Tt, defineAsyncComponent as kt } from "vue";
|
|
2
2
|
import { useBreakpoints as Kt } from "@feedmepos/ui-library";
|
|
3
3
|
import { useRoute as Jt, useRouter as Lt } from "vue-router";
|
|
4
4
|
import { useCoreStore as Be, useI18n as Qe } from "@feedmepos/mf-common";
|
|
@@ -415,7 +415,7 @@ const Fe = {
|
|
|
415
415
|
auditLog: Ie,
|
|
416
416
|
date: Ze,
|
|
417
417
|
default: ts
|
|
418
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
418
|
+
}, Symbol.toStringTag, { value: "Module" })), Ne = {
|
|
419
419
|
predefinedRanges: {
|
|
420
420
|
today: "今天",
|
|
421
421
|
yesterday: "昨天",
|
|
@@ -425,7 +425,7 @@ const Fe = {
|
|
|
425
425
|
thisMonth: "本月",
|
|
426
426
|
lastMonth: "上月"
|
|
427
427
|
}
|
|
428
|
-
},
|
|
428
|
+
}, ze = {
|
|
429
429
|
title: "審計日誌",
|
|
430
430
|
export: "匯出",
|
|
431
431
|
dateRange: {
|
|
@@ -546,19 +546,19 @@ const Fe = {
|
|
|
546
546
|
requestBody: "請求內容"
|
|
547
547
|
}
|
|
548
548
|
}, as = {
|
|
549
|
-
date:
|
|
550
|
-
auditLog:
|
|
549
|
+
date: Ne,
|
|
550
|
+
auditLog: ze
|
|
551
551
|
}, rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
552
552
|
__proto__: null,
|
|
553
|
-
auditLog:
|
|
554
|
-
date:
|
|
553
|
+
auditLog: ze,
|
|
554
|
+
date: Ne,
|
|
555
555
|
default: as
|
|
556
556
|
}, Symbol.toStringTag, { value: "Module" })), ns = {
|
|
557
557
|
"en-US": _t,
|
|
558
558
|
"zh-CN": ss,
|
|
559
559
|
"th-TH": es,
|
|
560
560
|
"zh-Hant": rs
|
|
561
|
-
},
|
|
561
|
+
}, Re = {
|
|
562
562
|
employee: {
|
|
563
563
|
title: "Employee",
|
|
564
564
|
exportButtonLabel: "Export",
|
|
@@ -712,11 +712,11 @@ const Fe = {
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
}, As = {
|
|
715
|
-
hr:
|
|
715
|
+
hr: Re
|
|
716
716
|
}, os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
717
717
|
__proto__: null,
|
|
718
718
|
default: As,
|
|
719
|
-
hr:
|
|
719
|
+
hr: Re
|
|
720
720
|
}, Symbol.toStringTag, { value: "Module" })), We = {
|
|
721
721
|
employee: {
|
|
722
722
|
title: "พนักงาน",
|
|
@@ -2072,8 +2072,8 @@ var nt = { exports: {} };
|
|
|
2072
2072
|
}
|
|
2073
2073
|
function m(s) {
|
|
2074
2074
|
var A = "[object " + s + "]";
|
|
2075
|
-
return function(
|
|
2076
|
-
return Object.prototype.toString.call(
|
|
2075
|
+
return function(l) {
|
|
2076
|
+
return Object.prototype.toString.call(l) === A;
|
|
2077
2077
|
};
|
|
2078
2078
|
}
|
|
2079
2079
|
n.r(r), n.d(r, "default", function() {
|
|
@@ -2088,29 +2088,29 @@ var nt = { exports: {} };
|
|
|
2088
2088
|
return D(s.get) ? s.get(A) : s[A];
|
|
2089
2089
|
}
|
|
2090
2090
|
function h(s) {
|
|
2091
|
-
return function(A,
|
|
2092
|
-
if (!d(
|
|
2093
|
-
for (var g = 0, B =
|
|
2094
|
-
if (s(A, M(
|
|
2091
|
+
return function(A, l) {
|
|
2092
|
+
if (!d(l) || !l.length) return s(A, l);
|
|
2093
|
+
for (var g = 0, B = l.length; g < B; g++)
|
|
2094
|
+
if (s(A, M(l, g))) return !0;
|
|
2095
2095
|
return !1;
|
|
2096
2096
|
};
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2099
|
-
return function(A,
|
|
2100
|
-
if (!d(
|
|
2101
|
-
for (var g = 0, B =
|
|
2102
|
-
if (!s(A, M(
|
|
2098
|
+
function N(s) {
|
|
2099
|
+
return function(A, l) {
|
|
2100
|
+
if (!d(l) || !l.length) return s(A, l);
|
|
2101
|
+
for (var g = 0, B = l.length; g < B; g++)
|
|
2102
|
+
if (!s(A, M(l, g))) return !1;
|
|
2103
2103
|
return !0;
|
|
2104
2104
|
};
|
|
2105
2105
|
}
|
|
2106
|
-
function G(s, A,
|
|
2107
|
-
return s.validate(s.options, A,
|
|
2106
|
+
function G(s, A, l, g) {
|
|
2107
|
+
return s.validate(s.options, A, l, g);
|
|
2108
2108
|
}
|
|
2109
2109
|
var x = {
|
|
2110
2110
|
$eq: h(function(s, A) {
|
|
2111
2111
|
return s(A);
|
|
2112
2112
|
}),
|
|
2113
|
-
$ne:
|
|
2113
|
+
$ne: N(function(s, A) {
|
|
2114
2114
|
return s(A);
|
|
2115
2115
|
}),
|
|
2116
2116
|
$gt: h(function(s, A) {
|
|
@@ -2134,50 +2134,50 @@ var nt = { exports: {} };
|
|
|
2134
2134
|
$nin: function(s, A) {
|
|
2135
2135
|
return s(A);
|
|
2136
2136
|
},
|
|
2137
|
-
$not: function(s, A,
|
|
2138
|
-
return s(A,
|
|
2137
|
+
$not: function(s, A, l, g) {
|
|
2138
|
+
return s(A, l, g);
|
|
2139
2139
|
},
|
|
2140
2140
|
$type: function(s, A) {
|
|
2141
2141
|
return s(A);
|
|
2142
2142
|
},
|
|
2143
|
-
$all: function(s, A,
|
|
2144
|
-
return x.$and(s, A,
|
|
2143
|
+
$all: function(s, A, l, g) {
|
|
2144
|
+
return x.$and(s, A, l, g);
|
|
2145
2145
|
},
|
|
2146
2146
|
$size: function(s, A) {
|
|
2147
2147
|
return !!A && s === A.length;
|
|
2148
2148
|
},
|
|
2149
|
-
$or: function(s, A,
|
|
2149
|
+
$or: function(s, A, l, g) {
|
|
2150
2150
|
for (var B = 0, p = s.length; B < p; B++)
|
|
2151
|
-
if (G(M(s, B), A,
|
|
2151
|
+
if (G(M(s, B), A, l, g)) return !0;
|
|
2152
2152
|
return !1;
|
|
2153
2153
|
},
|
|
2154
|
-
$nor: function(s, A,
|
|
2155
|
-
return !x.$or(s, A,
|
|
2154
|
+
$nor: function(s, A, l, g) {
|
|
2155
|
+
return !x.$or(s, A, l, g);
|
|
2156
2156
|
},
|
|
2157
|
-
$and: function(s, A,
|
|
2157
|
+
$and: function(s, A, l, g) {
|
|
2158
2158
|
for (var B = 0, p = s.length; B < p; B++)
|
|
2159
|
-
if (!G(M(s, B), A,
|
|
2159
|
+
if (!G(M(s, B), A, l, g)) return !1;
|
|
2160
2160
|
return !0;
|
|
2161
2161
|
},
|
|
2162
2162
|
$regex: h(function(s, A) {
|
|
2163
2163
|
return typeof A == "string" && s.test(A);
|
|
2164
2164
|
}),
|
|
2165
|
-
$where: function(s, A,
|
|
2166
|
-
return s.call(A, A,
|
|
2165
|
+
$where: function(s, A, l, g) {
|
|
2166
|
+
return s.call(A, A, l, g);
|
|
2167
2167
|
},
|
|
2168
|
-
$elemMatch: function(s, A,
|
|
2168
|
+
$elemMatch: function(s, A, l, g) {
|
|
2169
2169
|
return d(A) ? !!~function(B, p) {
|
|
2170
2170
|
for (var w = 0; w < B.length; w++)
|
|
2171
2171
|
if (M(B, w), G(p, M(B, w))) return w;
|
|
2172
2172
|
return -1;
|
|
2173
|
-
}(A, s) : G(s, A,
|
|
2173
|
+
}(A, s) : G(s, A, l, g);
|
|
2174
2174
|
},
|
|
2175
|
-
$exists: function(s, A,
|
|
2176
|
-
return g.hasOwnProperty(
|
|
2175
|
+
$exists: function(s, A, l, g) {
|
|
2176
|
+
return g.hasOwnProperty(l) === s;
|
|
2177
2177
|
}
|
|
2178
2178
|
}, X = {
|
|
2179
|
-
$eq: function(s, A,
|
|
2180
|
-
var g =
|
|
2179
|
+
$eq: function(s, A, l) {
|
|
2180
|
+
var g = l.comparable, B = l.compare;
|
|
2181
2181
|
return s instanceof RegExp ? h(function(p) {
|
|
2182
2182
|
return typeof p == "string" && s.test(p);
|
|
2183
2183
|
}) : s instanceof Function ? h(s) : d(s) && !s.length ? h(function(p) {
|
|
@@ -2190,32 +2190,32 @@ var nt = { exports: {} };
|
|
|
2190
2190
|
}
|
|
2191
2191
|
);
|
|
2192
2192
|
},
|
|
2193
|
-
$gt: function(s, A,
|
|
2194
|
-
var g =
|
|
2193
|
+
$gt: function(s, A, l) {
|
|
2194
|
+
var g = l.comparable, B = l.compare;
|
|
2195
2195
|
return function(p) {
|
|
2196
2196
|
return B(g(p), g(s)) > 0;
|
|
2197
2197
|
};
|
|
2198
2198
|
},
|
|
2199
|
-
$gte: function(s, A,
|
|
2200
|
-
var g =
|
|
2199
|
+
$gte: function(s, A, l) {
|
|
2200
|
+
var g = l.comparable, B = l.compare;
|
|
2201
2201
|
return function(p) {
|
|
2202
2202
|
return B(g(p), g(s)) >= 0;
|
|
2203
2203
|
};
|
|
2204
2204
|
},
|
|
2205
|
-
$lt: function(s, A,
|
|
2206
|
-
var g =
|
|
2205
|
+
$lt: function(s, A, l) {
|
|
2206
|
+
var g = l.comparable, B = l.compare;
|
|
2207
2207
|
return function(p) {
|
|
2208
2208
|
return B(g(p), g(s)) < 0;
|
|
2209
2209
|
};
|
|
2210
2210
|
},
|
|
2211
|
-
$lte: function(s, A,
|
|
2212
|
-
var g =
|
|
2211
|
+
$lte: function(s, A, l) {
|
|
2212
|
+
var g = l.comparable, B = l.compare;
|
|
2213
2213
|
return function(p) {
|
|
2214
2214
|
return B(g(p), g(s)) <= 0;
|
|
2215
2215
|
};
|
|
2216
2216
|
},
|
|
2217
|
-
$in: function(s, A,
|
|
2218
|
-
var g =
|
|
2217
|
+
$in: function(s, A, l) {
|
|
2218
|
+
var g = l.comparable;
|
|
2219
2219
|
return function(B) {
|
|
2220
2220
|
if (!(B instanceof Array)) {
|
|
2221
2221
|
var p = g(B);
|
|
@@ -2228,7 +2228,7 @@ var nt = { exports: {} };
|
|
|
2228
2228
|
for (y = s.length; y--; ) if (s[y] == null) return !0;
|
|
2229
2229
|
}
|
|
2230
2230
|
for (y = s.length; y--; ) {
|
|
2231
|
-
var w = G(fe(M(s, y),
|
|
2231
|
+
var w = G(fe(M(s, y), l), p, y, s);
|
|
2232
2232
|
if (w && String(w) !== "[object Object]" && String(p) !== "[object Object]")
|
|
2233
2233
|
return !0;
|
|
2234
2234
|
}
|
|
@@ -2239,8 +2239,8 @@ var nt = { exports: {} };
|
|
|
2239
2239
|
return !1;
|
|
2240
2240
|
};
|
|
2241
2241
|
},
|
|
2242
|
-
$nin: function(s, A,
|
|
2243
|
-
var g = X.$in(s, A,
|
|
2242
|
+
$nin: function(s, A, l) {
|
|
2243
|
+
var g = X.$in(s, A, l);
|
|
2244
2244
|
return function(B, p, w, y) {
|
|
2245
2245
|
return !g(B, p, w, y);
|
|
2246
2246
|
};
|
|
@@ -2250,32 +2250,32 @@ var nt = { exports: {} };
|
|
|
2250
2250
|
return A % s[0] == s[1];
|
|
2251
2251
|
};
|
|
2252
2252
|
},
|
|
2253
|
-
$ne: function(s, A,
|
|
2254
|
-
var g = X.$eq(s, A,
|
|
2255
|
-
return
|
|
2253
|
+
$ne: function(s, A, l) {
|
|
2254
|
+
var g = X.$eq(s, A, l);
|
|
2255
|
+
return N(function(B, p, w, y) {
|
|
2256
2256
|
return !g(B, p, w, y);
|
|
2257
2257
|
});
|
|
2258
2258
|
},
|
|
2259
|
-
$and: function(s, A,
|
|
2260
|
-
return s.map(W(
|
|
2259
|
+
$and: function(s, A, l) {
|
|
2260
|
+
return s.map(W(l));
|
|
2261
2261
|
},
|
|
2262
|
-
$all: function(s, A,
|
|
2263
|
-
return X.$and(s, A,
|
|
2262
|
+
$all: function(s, A, l) {
|
|
2263
|
+
return X.$and(s, A, l);
|
|
2264
2264
|
},
|
|
2265
|
-
$or: function(s, A,
|
|
2266
|
-
return s.map(W(
|
|
2265
|
+
$or: function(s, A, l) {
|
|
2266
|
+
return s.map(W(l));
|
|
2267
2267
|
},
|
|
2268
|
-
$nor: function(s, A,
|
|
2269
|
-
return s.map(W(
|
|
2268
|
+
$nor: function(s, A, l) {
|
|
2269
|
+
return s.map(W(l));
|
|
2270
2270
|
},
|
|
2271
|
-
$not: function(s, A,
|
|
2272
|
-
var g = W(
|
|
2271
|
+
$not: function(s, A, l) {
|
|
2272
|
+
var g = W(l)(s);
|
|
2273
2273
|
return function(B, p, w) {
|
|
2274
2274
|
return !G(g, B, p, w);
|
|
2275
2275
|
};
|
|
2276
2276
|
},
|
|
2277
2277
|
$type: function(s) {
|
|
2278
|
-
return function(A,
|
|
2278
|
+
return function(A, l, g) {
|
|
2279
2279
|
return A != null && (A instanceof s || A.constructor == s);
|
|
2280
2280
|
};
|
|
2281
2281
|
},
|
|
@@ -2288,8 +2288,8 @@ var nt = { exports: {} };
|
|
|
2288
2288
|
'In CSP mode, sift does not support strings in "$where" condition'
|
|
2289
2289
|
);
|
|
2290
2290
|
},
|
|
2291
|
-
$elemMatch: function(s, A,
|
|
2292
|
-
return W(
|
|
2291
|
+
$elemMatch: function(s, A, l) {
|
|
2292
|
+
return W(l)(s);
|
|
2293
2293
|
},
|
|
2294
2294
|
$exists: function(s) {
|
|
2295
2295
|
return !!s;
|
|
@@ -2299,7 +2299,7 @@ var nt = { exports: {} };
|
|
|
2299
2299
|
return { options: s, validate: A };
|
|
2300
2300
|
}
|
|
2301
2301
|
function Ft(s, A) {
|
|
2302
|
-
var
|
|
2302
|
+
var l = s.keyPath, g = s.child, B = s.query, p = [];
|
|
2303
2303
|
if (function Me(I, K, J, Ot, Ae) {
|
|
2304
2304
|
if (J === K.length || I == null)
|
|
2305
2305
|
return void Ae.push([I, K[J - 1], Ot]);
|
|
@@ -2307,7 +2307,7 @@ var nt = { exports: {} };
|
|
|
2307
2307
|
if (d(I) && isNaN(Number(ye)))
|
|
2308
2308
|
for (var oe = 0, Zt = I.length; oe < Zt; oe++) Me(M(I, oe), K, J, I, Ae);
|
|
2309
2309
|
else Me(M(I, ye), K, J + 1, I, Ae);
|
|
2310
|
-
}(A,
|
|
2310
|
+
}(A, l, 0, A, p), p.length === 1) {
|
|
2311
2311
|
var w = p[0];
|
|
2312
2312
|
return G(g, w[0], w[1], w[2]);
|
|
2313
2313
|
}
|
|
@@ -2317,11 +2317,11 @@ var nt = { exports: {} };
|
|
|
2317
2317
|
}
|
|
2318
2318
|
return j;
|
|
2319
2319
|
}
|
|
2320
|
-
function Xt(s, A,
|
|
2321
|
-
return Z({ keyPath: s, child: A, query:
|
|
2320
|
+
function Xt(s, A, l) {
|
|
2321
|
+
return Z({ keyPath: s, child: A, query: l }, Ft);
|
|
2322
2322
|
}
|
|
2323
2323
|
function W(s) {
|
|
2324
|
-
var A = s.comparable,
|
|
2324
|
+
var A = s.comparable, l = s.expressions, g = function(w) {
|
|
2325
2325
|
var y;
|
|
2326
2326
|
return (!w || !(y = w) || y.constructor !== Object && y.constructor !== Array && y.constructor.toString() !== "function Object() { [native code] }" && y.constructor.toString() !== "function Array() { [native code] }" || y.toJSON) && (w = { $eq: w }), w;
|
|
2327
2327
|
}, B = function(w) {
|
|
@@ -2330,7 +2330,7 @@ var nt = { exports: {} };
|
|
|
2330
2330
|
for (var j in w) {
|
|
2331
2331
|
var q = w[j];
|
|
2332
2332
|
if (j !== "$options") {
|
|
2333
|
-
var H = x[j] || s &&
|
|
2333
|
+
var H = x[j] || s && l && l[j];
|
|
2334
2334
|
if (H) X[j] && (q = X[j](q, w, s)), y.push(Z(A(q), H));
|
|
2335
2335
|
else {
|
|
2336
2336
|
if (j.charCodeAt(0) === 36)
|
|
@@ -2357,7 +2357,7 @@ var nt = { exports: {} };
|
|
|
2357
2357
|
return !1;
|
|
2358
2358
|
if (f(s)) {
|
|
2359
2359
|
if (Object.keys(s).length !== Object.keys(A).length) return !1;
|
|
2360
|
-
for (var
|
|
2360
|
+
for (var l in s) if (!S(s[l], A[l])) return !1;
|
|
2361
2361
|
return !0;
|
|
2362
2362
|
}
|
|
2363
2363
|
if (d(s)) {
|
|
@@ -2369,18 +2369,18 @@ var nt = { exports: {} };
|
|
|
2369
2369
|
return s === A;
|
|
2370
2370
|
}
|
|
2371
2371
|
function fe(s, A) {
|
|
2372
|
-
var
|
|
2373
|
-
return A && A.select && (
|
|
2374
|
-
options:
|
|
2372
|
+
var l = W(A)(s);
|
|
2373
|
+
return A && A.select && (l = {
|
|
2374
|
+
options: l,
|
|
2375
2375
|
validate: function(g, B, p, w) {
|
|
2376
2376
|
return G(g, B && A.select(B), p, w);
|
|
2377
2377
|
}
|
|
2378
|
-
}),
|
|
2378
|
+
}), l;
|
|
2379
2379
|
}
|
|
2380
2380
|
function Ht(s, A) {
|
|
2381
|
-
var
|
|
2381
|
+
var l = fe(s, A = Object.assign({ compare: we, comparable: ne }, A));
|
|
2382
2382
|
return function(g, B, p) {
|
|
2383
|
-
return G(
|
|
2383
|
+
return G(l, g, B, p);
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
2386
|
function we(s, A) {
|
|
@@ -2439,13 +2439,13 @@ function ee(e, c, i) {
|
|
|
2439
2439
|
return m && se(D, m.prototype), D;
|
|
2440
2440
|
}, ee.apply(null, arguments);
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function Ns(e) {
|
|
2443
2443
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
2444
2444
|
}
|
|
2445
2445
|
function le(e) {
|
|
2446
2446
|
var c = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
2447
2447
|
return le = function(r) {
|
|
2448
|
-
if (r === null || !
|
|
2448
|
+
if (r === null || !Ns(r)) return r;
|
|
2449
2449
|
if (typeof r != "function")
|
|
2450
2450
|
throw new TypeError("Super expression must either be null or a function");
|
|
2451
2451
|
if (typeof c < "u") {
|
|
@@ -2472,7 +2472,7 @@ function Ye(e) {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
var At = function(c) {
|
|
2474
2474
|
return 'Cannot execute "' + c.action + '" on "' + c.subjectName + '"';
|
|
2475
|
-
}, $ = At,
|
|
2475
|
+
}, $ = At, zs = /* @__PURE__ */ function(e) {
|
|
2476
2476
|
Zs(c, e), c.setDefaultMessage = function(n) {
|
|
2477
2477
|
n === null ? $ = At : $ = typeof n == "string" ? function() {
|
|
2478
2478
|
return n;
|
|
@@ -2511,7 +2511,7 @@ var At = function(c) {
|
|
|
2511
2511
|
function ue(e) {
|
|
2512
2512
|
return Array.isArray(e) ? e : [e];
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function Rs(e) {
|
|
2515
2515
|
if (!e || typeof e == "string")
|
|
2516
2516
|
return e;
|
|
2517
2517
|
var c = typeof e == "object" ? e.constructor : e;
|
|
@@ -2567,7 +2567,7 @@ var $s = /* @__PURE__ */ function() {
|
|
|
2567
2567
|
};
|
|
2568
2568
|
function e(i, r) {
|
|
2569
2569
|
r === void 0 && (r = {}), Object.defineProperty(this, "subjectName", {
|
|
2570
|
-
value: r.subjectName ||
|
|
2570
|
+
value: r.subjectName || Rs
|
|
2571
2571
|
}), this[Q] = {
|
|
2572
2572
|
RuleType: r.RuleType || _s,
|
|
2573
2573
|
originalRules: i || [],
|
|
@@ -2591,14 +2591,14 @@ var $s = /* @__PURE__ */ function() {
|
|
|
2591
2591
|
return this[Q].indexedRules = o.rules, this[Q].hasPerFieldRules = o.hasPerFieldRules, this.emit("updated", n), this;
|
|
2592
2592
|
}, c.buildIndexFor = function(r) {
|
|
2593
2593
|
for (var n = /* @__PURE__ */ Object.create(null), o = this[Q].RuleType, m = !0, d = !1, f = 0; f < r.length; f++) {
|
|
2594
|
-
var D = new o(r[f]), M = this.expandActions(D.actions), h = ue(D.subject),
|
|
2594
|
+
var D = new o(r[f]), M = this.expandActions(D.actions), h = ue(D.subject), N = r.length - f - 1;
|
|
2595
2595
|
m = !!(m && D.inverted), !d && D.fields && (d = !0);
|
|
2596
2596
|
for (var G = 0; G < h.length; G++) {
|
|
2597
2597
|
var x = h[G];
|
|
2598
2598
|
n[x] = n[x] || /* @__PURE__ */ Object.create(null);
|
|
2599
2599
|
for (var X = 0; X < M.length; X++) {
|
|
2600
2600
|
var Z = M[X];
|
|
2601
|
-
n[x][Z] = n[x][Z] || /* @__PURE__ */ Object.create(null), n[x][Z][
|
|
2601
|
+
n[x][Z] = n[x][Z] || /* @__PURE__ */ Object.create(null), n[x][Z][N] = D;
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
2604
|
}
|
|
@@ -2644,7 +2644,7 @@ var $s = /* @__PURE__ */ function() {
|
|
|
2644
2644
|
console.warn(`
|
|
2645
2645
|
Ability.throwUnlessCan is deprecated and will be removed in 4.x version.
|
|
2646
2646
|
Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
|
|
2647
|
-
`.trim()), (r =
|
|
2647
|
+
`.trim()), (r = zs.from(this)).throwUnlessCan.apply(r, arguments);
|
|
2648
2648
|
}, c.on = function(r, n) {
|
|
2649
2649
|
var o = this[Q].events, m = !0;
|
|
2650
2650
|
return o[r] || (o[r] = []), o[r].push(n), function() {
|
|
@@ -2664,15 +2664,14 @@ var $s = /* @__PURE__ */ function() {
|
|
|
2664
2664
|
return this[Q].originalRules;
|
|
2665
2665
|
}
|
|
2666
2666
|
}]), e;
|
|
2667
|
-
}(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), a = /* @__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_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", 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_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.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.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", 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
|
|
2668
|
-
const
|
|
2667
|
+
}(), t = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(t || {}), a = /* @__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_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", 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_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.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.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", 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))(a || {}), Y = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(Y || {}), ot = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(ot || {});
|
|
2668
|
+
const u = {
|
|
2669
2669
|
general: "General",
|
|
2670
2670
|
inventory: "Inventory",
|
|
2671
2671
|
hrm: "HRM",
|
|
2672
2672
|
crm: "CRM",
|
|
2673
2673
|
payment: "Payment",
|
|
2674
2674
|
menu: "Menu",
|
|
2675
|
-
operation: "Operation",
|
|
2676
2675
|
settings: "Settings",
|
|
2677
2676
|
report: "Report",
|
|
2678
2677
|
reports: "Default Report",
|
|
@@ -2715,452 +2714,452 @@ const Er = {
|
|
|
2715
2714
|
label: "Restaurant Owner",
|
|
2716
2715
|
subject: a.restaurant,
|
|
2717
2716
|
actions: [t.manage],
|
|
2718
|
-
category:
|
|
2717
|
+
category: u.general
|
|
2719
2718
|
},
|
|
2720
2719
|
// menu
|
|
2721
2720
|
menuItem: {
|
|
2722
2721
|
label: "Menu Items Management",
|
|
2723
2722
|
subject: a.menu_item,
|
|
2724
2723
|
actions: [t.manage],
|
|
2725
|
-
category:
|
|
2724
|
+
category: u.menu
|
|
2726
2725
|
},
|
|
2727
2726
|
menuCatalog: {
|
|
2728
2727
|
label: "Menu Catalog Management",
|
|
2729
2728
|
subject: a.menu_catalog,
|
|
2730
2729
|
actions: [t.manage],
|
|
2731
|
-
category:
|
|
2730
|
+
category: u.menu
|
|
2732
2731
|
},
|
|
2733
2732
|
menuCategory: {
|
|
2734
2733
|
label: "Menu Category Management",
|
|
2735
2734
|
subject: a.menu_category,
|
|
2736
2735
|
actions: [t.manage],
|
|
2737
|
-
category:
|
|
2736
|
+
category: u.menu
|
|
2738
2737
|
},
|
|
2739
2738
|
menuSubCategory: {
|
|
2740
2739
|
label: "Menu Sub-category Management",
|
|
2741
2740
|
subject: a.menu_subCategory,
|
|
2742
2741
|
actions: [t.manage],
|
|
2743
|
-
category:
|
|
2742
|
+
category: u.menu
|
|
2744
2743
|
},
|
|
2745
2744
|
menuGroup: {
|
|
2746
2745
|
label: "Menu Group Management",
|
|
2747
2746
|
subject: a.menu_group,
|
|
2748
2747
|
actions: [t.manage],
|
|
2749
|
-
category:
|
|
2748
|
+
category: u.menu
|
|
2750
2749
|
},
|
|
2751
2750
|
menuTakeaway: {
|
|
2752
2751
|
label: "Menu Takeaway Management",
|
|
2753
2752
|
subject: a.menu_takeaway,
|
|
2754
2753
|
actions: [t.manage],
|
|
2755
|
-
category:
|
|
2754
|
+
category: u.menu
|
|
2756
2755
|
},
|
|
2757
2756
|
menuScheduler: {
|
|
2758
2757
|
label: "Menu Scheduler Management",
|
|
2759
2758
|
subject: a.menu_scheduler,
|
|
2760
2759
|
actions: [t.manage],
|
|
2761
|
-
category:
|
|
2760
|
+
category: u.menu
|
|
2762
2761
|
},
|
|
2763
2762
|
menuVariant: {
|
|
2764
2763
|
label: "Menu Variant Management",
|
|
2765
2764
|
subject: a.menu_variant,
|
|
2766
2765
|
actions: [t.manage],
|
|
2767
|
-
category:
|
|
2766
|
+
category: u.menu
|
|
2768
2767
|
},
|
|
2769
2768
|
menuCookingGuide: {
|
|
2770
2769
|
label: "Menu Cooking Guide Management",
|
|
2771
2770
|
subject: a.menu_cookingGuide,
|
|
2772
2771
|
actions: [t.manage],
|
|
2773
|
-
category:
|
|
2772
|
+
category: u.menu
|
|
2774
2773
|
},
|
|
2775
2774
|
menuPrintRoute: {
|
|
2776
2775
|
label: "Menu Print Route Management",
|
|
2777
2776
|
subject: a.menu_printRoute,
|
|
2778
2777
|
actions: [t.manage],
|
|
2779
|
-
category:
|
|
2778
|
+
category: u.menu
|
|
2780
2779
|
},
|
|
2781
2780
|
menuServingSequence: {
|
|
2782
2781
|
label: "Menu Serving Sequence Management",
|
|
2783
2782
|
subject: a.menu_servingSequence,
|
|
2784
2783
|
actions: [t.manage],
|
|
2785
|
-
category:
|
|
2784
|
+
category: u.menu
|
|
2786
2785
|
},
|
|
2787
2786
|
menuUnit: {
|
|
2788
2787
|
label: "Menu Unit Management",
|
|
2789
2788
|
subject: a.menu_unit,
|
|
2790
2789
|
actions: [t.manage],
|
|
2791
|
-
category:
|
|
2790
|
+
category: u.menu
|
|
2792
2791
|
},
|
|
2793
2792
|
menuIngredient: {
|
|
2794
2793
|
label: "Menu Ingredient Management",
|
|
2795
2794
|
subject: a.menu_ingredient,
|
|
2796
2795
|
actions: [t.manage],
|
|
2797
|
-
category:
|
|
2796
|
+
category: u.menu
|
|
2798
2797
|
},
|
|
2799
2798
|
menuRecipe: {
|
|
2800
2799
|
label: "Menu Recipe Management",
|
|
2801
2800
|
subject: a.menu_recipe,
|
|
2802
2801
|
actions: [t.manage],
|
|
2803
|
-
category:
|
|
2802
|
+
category: u.menu
|
|
2804
2803
|
},
|
|
2805
2804
|
menuSettings: {
|
|
2806
2805
|
label: "Menu Settings Management",
|
|
2807
2806
|
subject: a.menu_settings,
|
|
2808
2807
|
actions: [t.manage],
|
|
2809
|
-
category:
|
|
2808
|
+
category: u.menu
|
|
2810
2809
|
},
|
|
2811
2810
|
menuPublish: {
|
|
2812
2811
|
label: "Menu Publish",
|
|
2813
2812
|
subject: a.menu_publish,
|
|
2814
2813
|
actions: [t.manage],
|
|
2815
|
-
category:
|
|
2814
|
+
category: u.menu
|
|
2816
2815
|
},
|
|
2817
2816
|
menuManagement: {
|
|
2818
2817
|
label: "Menu Management",
|
|
2819
2818
|
subject: a.menu_menuManagement,
|
|
2820
2819
|
actions: [t.manage],
|
|
2821
|
-
category:
|
|
2820
|
+
category: u.menu
|
|
2822
2821
|
},
|
|
2823
2822
|
menuImportExport: {
|
|
2824
2823
|
label: "Menu Import/Export",
|
|
2825
2824
|
subject: a.menu_importExport,
|
|
2826
2825
|
actions: [t.manage],
|
|
2827
|
-
category:
|
|
2826
|
+
category: u.menu
|
|
2828
2827
|
},
|
|
2829
2828
|
// inventory
|
|
2830
2829
|
inventoryStockBalance: {
|
|
2831
2830
|
label: "Stock Balance Management",
|
|
2832
2831
|
subject: a.inventory_stockBalance,
|
|
2833
2832
|
actions: [t.manage],
|
|
2834
|
-
category:
|
|
2833
|
+
category: u.inventory
|
|
2835
2834
|
},
|
|
2836
2835
|
inventoryStockAdjustment: {
|
|
2837
2836
|
label: "Stock Adjustment Management",
|
|
2838
2837
|
subject: a.inventory_stockAdjustment,
|
|
2839
2838
|
actions: [t.manage],
|
|
2840
|
-
category:
|
|
2839
|
+
category: u.inventory
|
|
2841
2840
|
},
|
|
2842
2841
|
inventoryUnitCostHistory: {
|
|
2843
2842
|
label: "Unit Cost History Management",
|
|
2844
2843
|
subject: a.inventory_unitCostHistory,
|
|
2845
2844
|
actions: [t.manage],
|
|
2846
|
-
category:
|
|
2845
|
+
category: u.inventory
|
|
2847
2846
|
},
|
|
2848
2847
|
inventoryWastageTemplate: {
|
|
2849
2848
|
label: "Wastage Template Management",
|
|
2850
2849
|
subject: a.inventory_wastageTemplate,
|
|
2851
2850
|
actions: [t.manage],
|
|
2852
|
-
category:
|
|
2851
|
+
category: u.inventory,
|
|
2853
2852
|
showByFeatureFlag: "inventory_pos_adjust_v2_wastage"
|
|
2854
2853
|
},
|
|
2855
2854
|
inventoryClosingHistory: {
|
|
2856
2855
|
label: "Closing History Management",
|
|
2857
2856
|
subject: a.inventory_closingHistory,
|
|
2858
2857
|
actions: [t.manage],
|
|
2859
|
-
category:
|
|
2858
|
+
category: u.inventory
|
|
2860
2859
|
},
|
|
2861
2860
|
inventoryClosingTemplate: {
|
|
2862
2861
|
label: "Closing Template Management",
|
|
2863
2862
|
subject: a.inventory_closingTemplate,
|
|
2864
2863
|
actions: [t.manage],
|
|
2865
|
-
category:
|
|
2864
|
+
category: u.inventory,
|
|
2866
2865
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
2867
2866
|
},
|
|
2868
2867
|
inventoryClosingDraft: {
|
|
2869
2868
|
label: "Closing Draft Management",
|
|
2870
2869
|
subject: a.inventory_closingDraft,
|
|
2871
2870
|
actions: [t.manage],
|
|
2872
|
-
category:
|
|
2871
|
+
category: u.inventory,
|
|
2873
2872
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
2874
2873
|
},
|
|
2875
2874
|
inventoryIngredient: {
|
|
2876
2875
|
label: "Ingredient Management",
|
|
2877
2876
|
subject: a.inventory_ingredient,
|
|
2878
2877
|
actions: [t.manage],
|
|
2879
|
-
category:
|
|
2878
|
+
category: u.inventory
|
|
2880
2879
|
},
|
|
2881
2880
|
inventoryIngredientGroup: {
|
|
2882
2881
|
label: "Ingredient Group Management",
|
|
2883
2882
|
subject: a.inventory_ingredientGroup,
|
|
2884
2883
|
actions: [t.manage],
|
|
2885
2884
|
showByFeatureFlag: "inventory_ingredient_group",
|
|
2886
|
-
category:
|
|
2885
|
+
category: u.inventory
|
|
2887
2886
|
},
|
|
2888
2887
|
inventoryRecipe: {
|
|
2889
2888
|
label: "Recipe Management",
|
|
2890
2889
|
subject: a.inventory_recipe,
|
|
2891
2890
|
actions: [t.manage],
|
|
2892
|
-
category:
|
|
2891
|
+
category: u.inventory
|
|
2893
2892
|
},
|
|
2894
2893
|
inventoryUnit: {
|
|
2895
2894
|
label: "Unit Management",
|
|
2896
2895
|
subject: a.inventory_unit,
|
|
2897
2896
|
actions: [t.manage],
|
|
2898
|
-
category:
|
|
2897
|
+
category: u.inventory
|
|
2899
2898
|
},
|
|
2900
2899
|
inventoryPurchaseTransfer: {
|
|
2901
2900
|
label: "Purchase / Transfer Management",
|
|
2902
2901
|
subject: a.inventory_purchaseTransfer,
|
|
2903
2902
|
actions: [t.manage],
|
|
2904
|
-
category:
|
|
2903
|
+
category: u.inventory
|
|
2905
2904
|
},
|
|
2906
2905
|
inventoryOrderDraftApproval: {
|
|
2907
2906
|
label: "Order Draft Approval",
|
|
2908
2907
|
subject: a.inventory_orderDraftApproval,
|
|
2909
2908
|
actions: [t.manage],
|
|
2910
|
-
category:
|
|
2909
|
+
category: u.inventory
|
|
2911
2910
|
},
|
|
2912
2911
|
inventoryTransferOut: {
|
|
2913
2912
|
label: "Transfer Out Management",
|
|
2914
2913
|
subject: a.inventory_transferOut,
|
|
2915
2914
|
actions: [t.manage],
|
|
2916
|
-
category:
|
|
2915
|
+
category: u.inventory
|
|
2917
2916
|
},
|
|
2918
2917
|
inventorySurcharge: {
|
|
2919
2918
|
label: "Surcharge Management",
|
|
2920
2919
|
subject: a.inventory_surcharge,
|
|
2921
2920
|
actions: [t.manage],
|
|
2922
2921
|
showByFeatureFlag: "inventory_portal_surcharge",
|
|
2923
|
-
category:
|
|
2922
|
+
category: u.inventory
|
|
2924
2923
|
},
|
|
2925
2924
|
inventoryOrderTemplate: {
|
|
2926
2925
|
label: "Order Template Management",
|
|
2927
2926
|
subject: a.inventory_orderTemplate,
|
|
2928
2927
|
actions: [t.manage],
|
|
2929
2928
|
showByFeatureFlag: "inventory_portal_must_use_transfer_template",
|
|
2930
|
-
category:
|
|
2929
|
+
category: u.inventory
|
|
2931
2930
|
},
|
|
2932
2931
|
inventorySupplier: {
|
|
2933
2932
|
label: "Supplier Management",
|
|
2934
2933
|
subject: a.inventory_supplier,
|
|
2935
2934
|
actions: [t.manage],
|
|
2936
|
-
category:
|
|
2935
|
+
category: u.inventory
|
|
2937
2936
|
},
|
|
2938
2937
|
inventoryWarehouse: {
|
|
2939
2938
|
label: "Warehouse Management",
|
|
2940
2939
|
subject: a.inventory_warehouse,
|
|
2941
2940
|
actions: [t.manage],
|
|
2942
|
-
category:
|
|
2941
|
+
category: u.inventory
|
|
2943
2942
|
},
|
|
2944
2943
|
inventoryPublish: {
|
|
2945
2944
|
label: "Publish Management",
|
|
2946
2945
|
subject: a.inventory_publish,
|
|
2947
2946
|
actions: [t.manage],
|
|
2948
|
-
category:
|
|
2947
|
+
category: u.inventory
|
|
2949
2948
|
},
|
|
2950
2949
|
inventoryImport: {
|
|
2951
2950
|
label: "Import Management",
|
|
2952
2951
|
subject: a.inventory_import,
|
|
2953
2952
|
actions: [t.manage],
|
|
2954
2953
|
showByFeatureFlag: "inventory_bulk_import",
|
|
2955
|
-
category:
|
|
2954
|
+
category: u.inventory
|
|
2956
2955
|
},
|
|
2957
2956
|
inventoryIntegration: {
|
|
2958
2957
|
label: "Integration Management",
|
|
2959
2958
|
subject: a.inventory_integration,
|
|
2960
2959
|
actions: [t.manage],
|
|
2961
|
-
category:
|
|
2960
|
+
category: u.inventory
|
|
2962
2961
|
},
|
|
2963
2962
|
// CRM
|
|
2964
2963
|
crmMembership: {
|
|
2965
2964
|
label: "Membership Management (V1)",
|
|
2966
2965
|
subject: a.crm_membership,
|
|
2967
2966
|
actions: [t.manage],
|
|
2968
|
-
category:
|
|
2967
|
+
category: u.crm
|
|
2969
2968
|
},
|
|
2970
2969
|
crmPromotion: {
|
|
2971
2970
|
label: "Promotion Management (V1/V2)",
|
|
2972
2971
|
subject: a.crm_promotion,
|
|
2973
2972
|
actions: [t.manage],
|
|
2974
|
-
category:
|
|
2973
|
+
category: u.crm
|
|
2975
2974
|
},
|
|
2976
2975
|
crmVoucher: {
|
|
2977
2976
|
label: "Voucher Management (V1/V2)",
|
|
2978
2977
|
subject: a.crm_voucher,
|
|
2979
2978
|
actions: [t.manage],
|
|
2980
|
-
category:
|
|
2979
|
+
category: u.crm
|
|
2981
2980
|
},
|
|
2982
2981
|
crmAnalytic: {
|
|
2983
2982
|
label: "Analytic Management",
|
|
2984
2983
|
subject: a.crm_analytic,
|
|
2985
2984
|
actions: [t.manage],
|
|
2986
|
-
category:
|
|
2985
|
+
category: u.crm
|
|
2987
2986
|
},
|
|
2988
2987
|
crmTier: {
|
|
2989
2988
|
label: "Tier Management",
|
|
2990
2989
|
subject: a.crm_tier,
|
|
2991
2990
|
actions: [t.manage],
|
|
2992
|
-
category:
|
|
2991
|
+
category: u.crm
|
|
2993
2992
|
},
|
|
2994
2993
|
crmTitle: {
|
|
2995
2994
|
label: "Title Management",
|
|
2996
2995
|
subject: a.crm_title,
|
|
2997
2996
|
actions: [t.manage],
|
|
2998
|
-
category:
|
|
2997
|
+
category: u.crm
|
|
2999
2998
|
},
|
|
3000
2999
|
crmBroadcast: {
|
|
3001
3000
|
label: "Broadcast Management",
|
|
3002
3001
|
subject: a.crm_broadcast,
|
|
3003
3002
|
actions: [t.manage],
|
|
3004
|
-
category:
|
|
3003
|
+
category: u.crm
|
|
3005
3004
|
},
|
|
3006
3005
|
crmPoint: {
|
|
3007
3006
|
label: "Point Management",
|
|
3008
3007
|
subject: a.crm_point,
|
|
3009
3008
|
actions: [t.manage],
|
|
3010
|
-
category:
|
|
3009
|
+
category: u.crm
|
|
3011
3010
|
},
|
|
3012
3011
|
crmCredit: {
|
|
3013
3012
|
label: "Credit Management",
|
|
3014
3013
|
subject: a.crm_credit,
|
|
3015
3014
|
actions: [t.manage],
|
|
3016
|
-
category:
|
|
3015
|
+
category: u.crm
|
|
3017
3016
|
},
|
|
3018
3017
|
crmExperience: {
|
|
3019
3018
|
label: "Experience Management",
|
|
3020
3019
|
subject: a.crm_experience,
|
|
3021
3020
|
actions: [t.manage],
|
|
3022
|
-
category:
|
|
3021
|
+
category: u.crm
|
|
3023
3022
|
},
|
|
3024
3023
|
crmGame: {
|
|
3025
3024
|
label: "Game Management",
|
|
3026
3025
|
subject: a.crm_game,
|
|
3027
3026
|
actions: [t.manage],
|
|
3028
|
-
category:
|
|
3027
|
+
category: u.crm
|
|
3029
3028
|
},
|
|
3030
3029
|
crmMission: {
|
|
3031
3030
|
label: "Mission Management",
|
|
3032
3031
|
subject: a.crm_mission,
|
|
3033
3032
|
actions: [t.manage],
|
|
3034
|
-
category:
|
|
3033
|
+
category: u.crm
|
|
3035
3034
|
},
|
|
3036
3035
|
crmLoyaltyMember: {
|
|
3037
3036
|
label: "Loyalty Member Management",
|
|
3038
3037
|
subject: a.crm_loyaltyMember,
|
|
3039
3038
|
actions: [t.manage],
|
|
3040
|
-
category:
|
|
3039
|
+
category: u.crm
|
|
3041
3040
|
},
|
|
3042
3041
|
crmLoyaltySegment: {
|
|
3043
3042
|
label: "Loyalty Segment Management",
|
|
3044
3043
|
subject: a.crm_loyaltySegment,
|
|
3045
3044
|
actions: [t.manage],
|
|
3046
|
-
category:
|
|
3045
|
+
category: u.crm
|
|
3047
3046
|
},
|
|
3048
3047
|
crmLoyaltyCard: {
|
|
3049
3048
|
label: "Loyalty Card Management",
|
|
3050
3049
|
subject: a.crm_loyaltyCard,
|
|
3051
3050
|
actions: [t.manage],
|
|
3052
|
-
category:
|
|
3051
|
+
category: u.crm
|
|
3053
3052
|
},
|
|
3054
3053
|
crmReferral: {
|
|
3055
3054
|
label: "Referral Management",
|
|
3056
3055
|
subject: a.crm_referral,
|
|
3057
3056
|
actions: [t.manage],
|
|
3058
|
-
category:
|
|
3057
|
+
category: u.crm
|
|
3059
3058
|
},
|
|
3060
3059
|
crmStore: {
|
|
3061
3060
|
label: "Store Management",
|
|
3062
3061
|
subject: a.crm_store,
|
|
3063
3062
|
actions: [t.manage],
|
|
3064
|
-
category:
|
|
3063
|
+
category: u.crm
|
|
3065
3064
|
},
|
|
3066
3065
|
crmTransaction: {
|
|
3067
3066
|
label: "Transaction Management",
|
|
3068
3067
|
subject: a.crm_transaction,
|
|
3069
3068
|
actions: [t.manage],
|
|
3070
|
-
category:
|
|
3069
|
+
category: u.crm
|
|
3071
3070
|
},
|
|
3072
3071
|
crmSetting: {
|
|
3073
3072
|
label: "Setting Management",
|
|
3074
3073
|
subject: a.crm_setting,
|
|
3075
3074
|
actions: [t.manage],
|
|
3076
|
-
category:
|
|
3075
|
+
category: u.crm
|
|
3077
3076
|
},
|
|
3078
3077
|
crmBin: {
|
|
3079
3078
|
label: "Bin Management",
|
|
3080
3079
|
subject: a.crm_bin,
|
|
3081
3080
|
actions: [t.manage],
|
|
3082
|
-
category:
|
|
3081
|
+
category: u.crm
|
|
3083
3082
|
},
|
|
3084
3083
|
// Payment
|
|
3085
3084
|
paymentPayoutAccount: {
|
|
3086
3085
|
label: "Payout Account Management",
|
|
3087
3086
|
subject: a.payment_payoutAccount,
|
|
3088
3087
|
actions: [t.manage],
|
|
3089
|
-
category:
|
|
3088
|
+
category: u.payment
|
|
3090
3089
|
},
|
|
3091
3090
|
paymentOnboarding: {
|
|
3092
3091
|
label: "Payment Onboarding Management",
|
|
3093
3092
|
subject: a.payment_paymentOnboarding,
|
|
3094
3093
|
actions: [t.manage],
|
|
3095
|
-
category:
|
|
3094
|
+
category: u.payment
|
|
3096
3095
|
},
|
|
3097
3096
|
paymentTransactions: {
|
|
3098
3097
|
label: "Transactions Management",
|
|
3099
3098
|
subject: a.payment_transactions,
|
|
3100
3099
|
actions: [t.manage],
|
|
3101
|
-
category:
|
|
3100
|
+
category: u.payment
|
|
3102
3101
|
},
|
|
3103
3102
|
paymentSettlements: {
|
|
3104
3103
|
label: "Settlements Management",
|
|
3105
3104
|
subject: a.payment_settlements,
|
|
3106
3105
|
actions: [t.manage],
|
|
3107
|
-
category:
|
|
3106
|
+
category: u.payment
|
|
3108
3107
|
},
|
|
3109
3108
|
// HRM
|
|
3110
3109
|
hrmTeamMember: {
|
|
3111
3110
|
label: "Team Member Management",
|
|
3112
3111
|
subject: a.hrm_teamMember,
|
|
3113
3112
|
actions: [t.manage],
|
|
3114
|
-
category:
|
|
3113
|
+
category: u.hrm
|
|
3115
3114
|
},
|
|
3116
3115
|
hrmEmployee: {
|
|
3117
3116
|
label: "Employee Management",
|
|
3118
3117
|
subject: a.hrm_employee,
|
|
3119
3118
|
actions: [t.manage],
|
|
3120
|
-
category:
|
|
3119
|
+
category: u.hrm
|
|
3121
3120
|
},
|
|
3122
3121
|
hrmAuditLog: {
|
|
3123
3122
|
label: "Audit Log Management",
|
|
3124
3123
|
subject: a.hrm_auditLog,
|
|
3125
3124
|
actions: [t.manage],
|
|
3126
|
-
category:
|
|
3125
|
+
category: u.hrm
|
|
3127
3126
|
},
|
|
3128
3127
|
// Report
|
|
3129
3128
|
reportReports: {
|
|
3130
3129
|
label: "Create Report",
|
|
3131
3130
|
subject: a.report_createReport,
|
|
3132
3131
|
actions: [t.manage],
|
|
3133
|
-
category:
|
|
3132
|
+
category: u.report
|
|
3134
3133
|
},
|
|
3135
3134
|
reportAccessOverview: {
|
|
3136
3135
|
label: "Access Overview Page",
|
|
3137
3136
|
subject: a.report_accessOverview,
|
|
3138
3137
|
actions: [t.manage],
|
|
3139
|
-
category:
|
|
3138
|
+
category: u.report
|
|
3140
3139
|
},
|
|
3141
3140
|
reportAccessInsight: {
|
|
3142
3141
|
label: "Access Insight Page",
|
|
3143
3142
|
subject: a.report_accessInsight,
|
|
3144
3143
|
actions: [t.manage],
|
|
3145
|
-
category:
|
|
3144
|
+
category: u.report
|
|
3146
3145
|
},
|
|
3147
3146
|
reportAccessSetting: {
|
|
3148
3147
|
label: "Access Setting Page",
|
|
3149
3148
|
subject: a.report_accessSetting,
|
|
3150
3149
|
actions: [t.manage],
|
|
3151
|
-
category:
|
|
3150
|
+
category: u.report
|
|
3152
3151
|
},
|
|
3153
3152
|
reportAccessIntegration: {
|
|
3154
3153
|
label: "Access Integration Page",
|
|
3155
3154
|
subject: a.report_accessIntegration,
|
|
3156
3155
|
actions: [t.manage],
|
|
3157
|
-
category:
|
|
3156
|
+
category: u.report
|
|
3158
3157
|
},
|
|
3159
3158
|
reportAllDefaultReports: {
|
|
3160
3159
|
label: "Include future Default Reports",
|
|
3161
3160
|
subject: a.report_reports_allDefaultReports,
|
|
3162
3161
|
actions: [t.manage, t.read, t.create],
|
|
3163
|
-
category:
|
|
3162
|
+
category: u.reports,
|
|
3164
3163
|
isCategoryCover: !0
|
|
3165
3164
|
},
|
|
3166
3165
|
reportAllCustomReports: {
|
|
@@ -3173,7 +3172,7 @@ const Er = {
|
|
|
3173
3172
|
t.update,
|
|
3174
3173
|
t.delete
|
|
3175
3174
|
],
|
|
3176
|
-
category:
|
|
3175
|
+
category: u.customReports,
|
|
3177
3176
|
isCategoryCover: !0
|
|
3178
3177
|
},
|
|
3179
3178
|
// MDM
|
|
@@ -3181,83 +3180,43 @@ const Er = {
|
|
|
3181
3180
|
label: "Device Management",
|
|
3182
3181
|
subject: a.mdm_deviceManagement,
|
|
3183
3182
|
actions: [t.manage],
|
|
3184
|
-
category:
|
|
3183
|
+
category: u.settings
|
|
3185
3184
|
},
|
|
3186
3185
|
mdmCreateDevice: {
|
|
3187
3186
|
label: "Create New Device",
|
|
3188
3187
|
subject: a.mdm_createDevice,
|
|
3189
3188
|
actions: [t.manage],
|
|
3190
|
-
category:
|
|
3189
|
+
category: u.settings
|
|
3191
3190
|
},
|
|
3192
3191
|
mdmDeviceBinding: {
|
|
3193
3192
|
label: "Manage Device Binding",
|
|
3194
3193
|
subject: a.mdm_deviceBinding,
|
|
3195
3194
|
actions: [t.manage],
|
|
3196
|
-
category:
|
|
3195
|
+
category: u.settings
|
|
3197
3196
|
},
|
|
3198
3197
|
mdmCustomerDisplay: {
|
|
3199
3198
|
label: "Manage Customer Display",
|
|
3200
3199
|
subject: a.mdm_customerDisplay,
|
|
3201
3200
|
actions: [t.manage, t.read, t.update],
|
|
3202
|
-
category:
|
|
3203
|
-
},
|
|
3204
|
-
// E-invoice
|
|
3205
|
-
eInvoiceManagement: {
|
|
3206
|
-
label: "E-invoice Management",
|
|
3207
|
-
subject: a.eInvoice_management,
|
|
3208
|
-
actions: [t.manage],
|
|
3209
|
-
category: l.settings
|
|
3210
|
-
},
|
|
3211
|
-
eInvoiceIntegration: {
|
|
3212
|
-
label: "Manage E-invoice Integration",
|
|
3213
|
-
subject: a.eInvoice_integration,
|
|
3214
|
-
actions: [t.manage],
|
|
3215
|
-
category: l.settings
|
|
3216
|
-
},
|
|
3217
|
-
// operation
|
|
3218
|
-
operationReceipt: {
|
|
3219
|
-
label: "Receipt",
|
|
3220
|
-
subject: a.operation_receipt,
|
|
3221
|
-
actions: [t.manage],
|
|
3222
|
-
category: l.operation
|
|
3223
|
-
},
|
|
3224
|
-
operationTableManagement: {
|
|
3225
|
-
label: "Table Management",
|
|
3226
|
-
subject: a.operation_tableManagement,
|
|
3227
|
-
actions: [t.manage],
|
|
3228
|
-
category: l.operation
|
|
3229
|
-
},
|
|
3230
|
-
operationOfflinePayment: {
|
|
3231
|
-
label: "Offline Payment Management",
|
|
3232
|
-
subject: a.operation_offlinePayment,
|
|
3233
|
-
actions: [t.manage],
|
|
3234
|
-
category: l.operation
|
|
3235
|
-
},
|
|
3236
|
-
operationReasonTemplate: {
|
|
3237
|
-
label: "Reason Template Management",
|
|
3238
|
-
subject: a.operation_reasonTemplate,
|
|
3239
|
-
actions: [t.manage],
|
|
3240
|
-
category: l.operation
|
|
3241
|
-
},
|
|
3242
|
-
operationDiscountRule: {
|
|
3243
|
-
label: "Discount Rule Management",
|
|
3244
|
-
subject: a.operation_discountRule,
|
|
3245
|
-
actions: [t.manage],
|
|
3246
|
-
category: l.operation
|
|
3247
|
-
},
|
|
3248
|
-
operationServiceCharge: {
|
|
3249
|
-
label: "Service Charge Management",
|
|
3250
|
-
subject: a.operation_serviceCharge,
|
|
3251
|
-
actions: [t.manage],
|
|
3252
|
-
category: l.operation
|
|
3253
|
-
},
|
|
3254
|
-
operationKitchenPrintTemplate: {
|
|
3255
|
-
label: "Print Template Management",
|
|
3256
|
-
subject: a.operation_kitchenPrintTemplate,
|
|
3257
|
-
actions: [t.manage],
|
|
3258
|
-
category: l.operation
|
|
3201
|
+
category: u.settings
|
|
3259
3202
|
}
|
|
3260
|
-
|
|
3203
|
+
// E-invoice
|
|
3204
|
+
// eInvoiceManagement: {
|
|
3205
|
+
// label: 'E-invoice Management',
|
|
3206
|
+
// subject: PermissionSubjectBusinessNamespace.eInvoice_management,
|
|
3207
|
+
// actions: [PermissionAction.manage],
|
|
3208
|
+
// category: PermissionCategory.settings,
|
|
3209
|
+
// },
|
|
3210
|
+
// eInvoiceIntegration: {
|
|
3211
|
+
// label: 'Manage E-invoice Integration',
|
|
3212
|
+
// subject: PermissionSubjectBusinessNamespace.eInvoice_integration,
|
|
3213
|
+
// actions: [PermissionAction.manage],
|
|
3214
|
+
// category: PermissionCategory.settings,
|
|
3215
|
+
// },
|
|
3216
|
+
}, xr = {
|
|
3217
|
+
[u.crm]: "hrm_enable_crm_permission",
|
|
3218
|
+
[u.payment]: "hrm_enable_payment_permission"
|
|
3219
|
+
};
|
|
3261
3220
|
var v = /* @__PURE__ */ ((e) => (e.crm = "crm", e.crm_user = "crm::user", e.crm_segmentation = "crm::segmentation", e.crm_queue = "crm::queue", e.crm_transaction = "crm::transaction", e.crm_store = "crm::store", e.crm_location = "crm::location", e.crm_effect = "crm::effect", e.crm_setting = "crm::setting", e.crm_reward = "crm::reward", e.crm_campaign = "crm::campaign", e.crm_referral = "crm::referral", e.crm_marketingMaterial = "crm::marketingMaterial", e.crm_voucher = "crm::voucher", e.crm_membership = "crm::membership", e.crm_analytic = "crm::analytic", e.crm_tier = "crm::tier", e.crm_title = "crm::title", e.crm_broadcast = "crm::broadcast", e.crm_point = "crm::point", e.crm_credit = "crm::credit", e.crm_experience = "crm::experience", e.crm_game = "crm::game", e.crm_mission = "crm::mission", e.crm_loyaltyMember = "crm::loyaltyMember", e.crm_loyaltySegment = "crm::loyaltySegment", e.crm_loyaltyCard = "crm::loyaltyCard", e.crm_bin = "crm::bin", e))(v || {});
|
|
3262
3221
|
const C = [
|
|
3263
3222
|
{
|
|
@@ -4287,11 +4246,11 @@ function Ia(e) {
|
|
|
4287
4246
|
reason: c.source !== void 0 ? JSON.stringify(c.source) : c.reason
|
|
4288
4247
|
}));
|
|
4289
4248
|
}
|
|
4290
|
-
function
|
|
4249
|
+
function Na(e) {
|
|
4291
4250
|
return new $s(Ia(e));
|
|
4292
4251
|
}
|
|
4293
|
-
function
|
|
4294
|
-
const r = Array.isArray(e) ? e : [e], n =
|
|
4252
|
+
function za(e, c, i) {
|
|
4253
|
+
const r = Array.isArray(e) ? e : [e], n = Na(c), o = (M) => M.subject, m = (M) => n.can(M.action, o(M), M.field) ? !0 : M.coverSubject !== void 0 ? n.can(M.action, M.coverSubject, M.field) : !1, d = r.find((M) => !m(M));
|
|
4295
4254
|
if (d) {
|
|
4296
4255
|
const M = n.relevantRuleFor(
|
|
4297
4256
|
d.action,
|
|
@@ -4308,7 +4267,7 @@ function Na(e, c, i) {
|
|
|
4308
4267
|
return { granted: !0, decisivePermission: f, decisiveRule: D ?? null };
|
|
4309
4268
|
}
|
|
4310
4269
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4311
|
-
const
|
|
4270
|
+
const Ra = () => {
|
|
4312
4271
|
};
|
|
4313
4272
|
function Wa(e, c, i) {
|
|
4314
4273
|
let r;
|
|
@@ -4319,14 +4278,14 @@ function Wa(e, c, i) {
|
|
|
4319
4278
|
lazy: n = !1,
|
|
4320
4279
|
evaluating: o = void 0,
|
|
4321
4280
|
shallow: m = !0,
|
|
4322
|
-
onError: d =
|
|
4323
|
-
} = r, f = L(!n), D = m ?
|
|
4281
|
+
onError: d = Ra
|
|
4282
|
+
} = r, f = L(!n), D = m ? Nt(c) : L(c);
|
|
4324
4283
|
let M = 0;
|
|
4325
4284
|
return Ee(async (h) => {
|
|
4326
4285
|
if (!f.value)
|
|
4327
4286
|
return;
|
|
4328
4287
|
M++;
|
|
4329
|
-
const
|
|
4288
|
+
const N = M;
|
|
4330
4289
|
let G = !1;
|
|
4331
4290
|
o && Promise.resolve().then(() => {
|
|
4332
4291
|
o.value = !0;
|
|
@@ -4337,11 +4296,11 @@ function Wa(e, c, i) {
|
|
|
4337
4296
|
o && (o.value = !1), G || X();
|
|
4338
4297
|
});
|
|
4339
4298
|
});
|
|
4340
|
-
|
|
4299
|
+
N === M && (D.value = x);
|
|
4341
4300
|
} catch (x) {
|
|
4342
4301
|
d(x);
|
|
4343
4302
|
} finally {
|
|
4344
|
-
o &&
|
|
4303
|
+
o && N === M && (o.value = !1), G = !0;
|
|
4345
4304
|
}
|
|
4346
4305
|
}), n ? ge(() => (f.value = !0, D.value)) : D;
|
|
4347
4306
|
}
|
|
@@ -4355,7 +4314,7 @@ async function Ua(e) {
|
|
|
4355
4314
|
message: "User does not have permission to access"
|
|
4356
4315
|
});
|
|
4357
4316
|
if (n && n.length > 0) {
|
|
4358
|
-
const { granted: m } =
|
|
4317
|
+
const { granted: m } = za(n, c.permissions);
|
|
4359
4318
|
if (!m)
|
|
4360
4319
|
return Promise.resolve({
|
|
4361
4320
|
canAccess: !1,
|
|
@@ -4440,16 +4399,16 @@ const Ka = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
4440
4399
|
}
|
|
4441
4400
|
});
|
|
4442
4401
|
return (i, r) => (k(), qe("div", ar, [
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
src:
|
|
4402
|
+
z("div", rr, [
|
|
4403
|
+
z("div", nr, [
|
|
4404
|
+
z("img", {
|
|
4405
|
+
src: R(Ka),
|
|
4447
4406
|
class: "w-full h-full"
|
|
4448
4407
|
}, null, 8, Ar)
|
|
4449
4408
|
]),
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4409
|
+
z("div", null, [
|
|
4410
|
+
z("h1", or, ve(R(c)("noPermission.title")), 1),
|
|
4411
|
+
z("h2", cr, ve(R(c)("noPermission.subtitle")), 1)
|
|
4453
4412
|
])
|
|
4454
4413
|
])
|
|
4455
4414
|
]));
|
|
@@ -4458,7 +4417,7 @@ const Ka = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
4458
4417
|
__name: "PermissionWrapper",
|
|
4459
4418
|
setup(e) {
|
|
4460
4419
|
const c = ka();
|
|
4461
|
-
return (i, r) =>
|
|
4420
|
+
return (i, r) => R(c) === R(me).Denied ? (k(), ae(ir, { key: 0 })) : R(c) === R(me).Allowed ? xe(i.$slots, "default", { key: 1 }) : zt("", !0);
|
|
4462
4421
|
}
|
|
4463
4422
|
});
|
|
4464
4423
|
function re(e) {
|
|
@@ -4488,7 +4447,7 @@ function ur(e, c) {
|
|
|
4488
4447
|
n && (await he(), r());
|
|
4489
4448
|
}), Pe(() => {
|
|
4490
4449
|
window.addEventListener("resize", r);
|
|
4491
|
-
}),
|
|
4450
|
+
}), Rt(() => {
|
|
4492
4451
|
window.removeEventListener("resize", r);
|
|
4493
4452
|
}), i;
|
|
4494
4453
|
}
|
|
@@ -4517,7 +4476,7 @@ const mr = /* @__PURE__ */ T({
|
|
|
4517
4476
|
const r = de("FmCircularProgress");
|
|
4518
4477
|
return k(), ae(mr, null, {
|
|
4519
4478
|
default: Ut(() => [
|
|
4520
|
-
|
|
4479
|
+
z("div", gr, [
|
|
4521
4480
|
Tt(r, { size: "xl" })
|
|
4522
4481
|
])
|
|
4523
4482
|
]),
|
|
@@ -4539,10 +4498,10 @@ const ce = (e) => ({
|
|
|
4539
4498
|
}
|
|
4540
4499
|
]
|
|
4541
4500
|
}
|
|
4542
|
-
}), Br = re(O(() => import("./Main-
|
|
4543
|
-
O(() => import("./AuditLogList-
|
|
4544
|
-
), fr = re(O(() => import("./Main-
|
|
4545
|
-
() => import("./PermissionSetList-
|
|
4501
|
+
}), Br = re(O(() => import("./Main-DX1aet8y.js"))), br = re(O(() => import("./Main-Bjfm9a6M.js"))), pr = re(
|
|
4502
|
+
O(() => import("./AuditLogList-eyzJecZc.js"))
|
|
4503
|
+
), fr = re(O(() => import("./Main-B_QCpWOx.js"))), wr = O(() => import("./EmployeeList-QibdsTN-.js")), Mr = O(() => import("./RoleList-ByXZemFz.js")), yr = O(() => import("./TimesheetList-DVvz6id4.js")), Dr = O(() => import("./TeamMemberList-D-_icv19.js")), vr = O(
|
|
4504
|
+
() => import("./PermissionSetList-fE9Zfrl6.js")
|
|
4546
4505
|
), Pr = [
|
|
4547
4506
|
{
|
|
4548
4507
|
path: "/",
|
|
@@ -4712,15 +4671,15 @@ export {
|
|
|
4712
4671
|
V as R,
|
|
4713
4672
|
mr as _,
|
|
4714
4673
|
dr as a,
|
|
4715
|
-
|
|
4674
|
+
ta as b,
|
|
4716
4675
|
Ps as c,
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4676
|
+
Qr as d,
|
|
4677
|
+
t as e,
|
|
4678
|
+
Vr as f,
|
|
4720
4679
|
Qs as g,
|
|
4721
|
-
|
|
4680
|
+
Fr as i,
|
|
4722
4681
|
xr as k,
|
|
4682
|
+
u as p,
|
|
4723
4683
|
Pr as r,
|
|
4724
|
-
|
|
4725
|
-
t as y
|
|
4684
|
+
te as u
|
|
4726
4685
|
};
|