@feedmepos/mf-hrm-portal 2.0.14 → 2.0.15-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuditLogList-n6b4-GzJ.js → AuditLogList-DBIsI4YF.js} +4 -4
- package/dist/{EmployeeList-B7cemoN0.js → EmployeeList-BOSxLZbY.js} +5 -5
- package/dist/{Main-Dn71WvVQ.js → Main-B3YiMuFq.js} +9 -9
- package/dist/{Main-79eUPL7p.js → Main-BAZAQTWi.js} +4 -4
- package/dist/{Main-Cw4gYTr3.js → Main-D7yzD5SW.js} +5 -5
- package/dist/{PermissionSetList-BNNwLjXj.js → PermissionSetList-DBT9LtfT.js} +15 -15
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYyT6oya.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js} +793 -793
- package/dist/{RoleList-DY8Za0dd.js → RoleList-DeE5tN-5.js} +7 -7
- package/dist/{TeamMemberList-DSHrsX5J.js → TeamMemberList-BCv5Vixx.js} +65 -65
- package/dist/{TimesheetList-CXPqOjdC.js → TimesheetList-DpMBgVtY.js} +7 -7
- package/dist/{app-DPZbZJCq.js → app-pvHHFjbx.js} +283 -242
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-DW1WmkoA.js → dayjs.min-BK_bM9xY.js} +1 -1
- package/dist/{employee-Kw8TDet-.js → employee-DhkixwiI.js} +4 -4
- package/dist/{index-nwRgIeL9.js → index-Bckj5jnu.js} +17 -17
- package/dist/{index-CQ9ZArJF.js → index-DK4fVbTF.js} +1 -1
- package/dist/{iteration-BFQu0b3r.js → iteration-Bk3cnP07.js} +2 -2
- package/dist/{lodash-Dsav6UyM.js → lodash-TrOlqj07.js} +1 -1
- package/dist/{timesheet-ZmSkwQIE.js → timesheet-DSQeCVfL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CKbtSJIP.js → useAppStore-DwfwjZpc.js} +1 -1
- package/dist/{useLoading-C0ICgchk.js → useLoading-fEAOlgoV.js} +1 -1
- package/dist/{useReportPermissions-lRru0ii7.js → useReportPermissions-CkOk_2tl.js} +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRef as It, ref as L, shallowRef as
|
|
1
|
+
import { isRef as It, ref as L, shallowRef as Rt, watchEffect as Ee, computed as ge, h as De, defineComponent as T, createBlock as ae, renderSlot as xe, createCommentVNode as Nt, unref as z, openBlock as k, createElementBlock as qe, createElementVNode as N, toDisplayString as ve, watch as Ce, nextTick as he, onMounted as Pe, onBeforeUnmount as zt, 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" })), Re = {
|
|
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
|
+
}, Ne = {
|
|
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: Re,
|
|
550
|
+
auditLog: Ne
|
|
551
551
|
}, rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
552
552
|
__proto__: null,
|
|
553
|
-
auditLog:
|
|
554
|
-
date:
|
|
553
|
+
auditLog: Ne,
|
|
554
|
+
date: Re,
|
|
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
|
+
}, ze = {
|
|
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: ze
|
|
716
716
|
}, os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
717
717
|
__proto__: null,
|
|
718
718
|
default: As,
|
|
719
|
-
hr:
|
|
719
|
+
hr: ze
|
|
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(u) {
|
|
2076
|
+
return Object.prototype.toString.call(u) === 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, u) {
|
|
2092
|
+
if (!d(u) || !u.length) return s(A, u);
|
|
2093
|
+
for (var g = 0, B = u.length; g < B; g++)
|
|
2094
|
+
if (s(A, M(u, 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 R(s) {
|
|
2099
|
+
return function(A, u) {
|
|
2100
|
+
if (!d(u) || !u.length) return s(A, u);
|
|
2101
|
+
for (var g = 0, B = u.length; g < B; g++)
|
|
2102
|
+
if (!s(A, M(u, 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, u, g) {
|
|
2107
|
+
return s.validate(s.options, A, u, 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: R(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, u, g) {
|
|
2138
|
+
return s(A, u, 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, u, g) {
|
|
2144
|
+
return x.$and(s, A, u, 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, u, 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, u, 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, u, g) {
|
|
2155
|
+
return !x.$or(s, A, u, g);
|
|
2156
2156
|
},
|
|
2157
|
-
$and: function(s, A,
|
|
2157
|
+
$and: function(s, A, u, 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, u, 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, u, g) {
|
|
2166
|
+
return s.call(A, A, u, g);
|
|
2167
2167
|
},
|
|
2168
|
-
$elemMatch: function(s, A,
|
|
2168
|
+
$elemMatch: function(s, A, u, 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, u, g);
|
|
2174
2174
|
},
|
|
2175
|
-
$exists: function(s, A,
|
|
2176
|
-
return g.hasOwnProperty(
|
|
2175
|
+
$exists: function(s, A, u, g) {
|
|
2176
|
+
return g.hasOwnProperty(u) === s;
|
|
2177
2177
|
}
|
|
2178
2178
|
}, X = {
|
|
2179
|
-
$eq: function(s, A,
|
|
2180
|
-
var g =
|
|
2179
|
+
$eq: function(s, A, u) {
|
|
2180
|
+
var g = u.comparable, B = u.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, u) {
|
|
2194
|
+
var g = u.comparable, B = u.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, u) {
|
|
2200
|
+
var g = u.comparable, B = u.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, u) {
|
|
2206
|
+
var g = u.comparable, B = u.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, u) {
|
|
2212
|
+
var g = u.comparable, B = u.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, u) {
|
|
2218
|
+
var g = u.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), u), 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, u) {
|
|
2243
|
+
var g = X.$in(s, A, u);
|
|
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, u) {
|
|
2254
|
+
var g = X.$eq(s, A, u);
|
|
2255
|
+
return R(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, u) {
|
|
2260
|
+
return s.map(W(u));
|
|
2261
2261
|
},
|
|
2262
|
-
$all: function(s, A,
|
|
2263
|
-
return X.$and(s, A,
|
|
2262
|
+
$all: function(s, A, u) {
|
|
2263
|
+
return X.$and(s, A, u);
|
|
2264
2264
|
},
|
|
2265
|
-
$or: function(s, A,
|
|
2266
|
-
return s.map(W(
|
|
2265
|
+
$or: function(s, A, u) {
|
|
2266
|
+
return s.map(W(u));
|
|
2267
2267
|
},
|
|
2268
|
-
$nor: function(s, A,
|
|
2269
|
-
return s.map(W(
|
|
2268
|
+
$nor: function(s, A, u) {
|
|
2269
|
+
return s.map(W(u));
|
|
2270
2270
|
},
|
|
2271
|
-
$not: function(s, A,
|
|
2272
|
-
var g = W(
|
|
2271
|
+
$not: function(s, A, u) {
|
|
2272
|
+
var g = W(u)(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, u, 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, u) {
|
|
2292
|
+
return W(u)(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 u = 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, u, 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, u) {
|
|
2321
|
+
return Z({ keyPath: s, child: A, query: u }, Ft);
|
|
2322
2322
|
}
|
|
2323
2323
|
function W(s) {
|
|
2324
|
-
var A = s.comparable,
|
|
2324
|
+
var A = s.comparable, u = 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 && u && u[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 u in s) if (!S(s[u], A[u])) 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 u = W(A)(s);
|
|
2373
|
+
return A && A.select && (u = {
|
|
2374
|
+
options: u,
|
|
2375
2375
|
validate: function(g, B, p, w) {
|
|
2376
2376
|
return G(g, B && A.select(B), p, w);
|
|
2377
2377
|
}
|
|
2378
|
-
}),
|
|
2378
|
+
}), u;
|
|
2379
2379
|
}
|
|
2380
2380
|
function Ht(s, A) {
|
|
2381
|
-
var
|
|
2381
|
+
var u = fe(s, A = Object.assign({ compare: we, comparable: ne }, A));
|
|
2382
2382
|
return function(g, B, p) {
|
|
2383
|
-
return G(
|
|
2383
|
+
return G(u, 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 Rs(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 || !Rs(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, Ns = /* @__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 zs(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 || zs
|
|
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), R = 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][R] = 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 = Ns.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,14 +2664,15 @@ 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))(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
|
|
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.operation_receipt = "business::operation::receipt", e.operation_tableManagement = "business::operation::tableManagement", e.operation_offlinePayment = "business::operation::offlinePayment", e.operation_reasonTemplate = "business::operation::reasonTemplate", e.operation_discountRule = "business::operation::discountRule", e.operation_serviceCharge = "business::operation::serviceCharge", e.operation_kitchenPrintTemplate = "business::operation::kitchenPrintTemplate", 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 l = {
|
|
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",
|
|
2675
2676
|
settings: "Settings",
|
|
2676
2677
|
report: "Report",
|
|
2677
2678
|
reports: "Default Report",
|
|
@@ -2714,452 +2715,452 @@ const Er = {
|
|
|
2714
2715
|
label: "Restaurant Owner",
|
|
2715
2716
|
subject: a.restaurant,
|
|
2716
2717
|
actions: [t.manage],
|
|
2717
|
-
category:
|
|
2718
|
+
category: l.general
|
|
2718
2719
|
},
|
|
2719
2720
|
// menu
|
|
2720
2721
|
menuItem: {
|
|
2721
2722
|
label: "Menu Items Management",
|
|
2722
2723
|
subject: a.menu_item,
|
|
2723
2724
|
actions: [t.manage],
|
|
2724
|
-
category:
|
|
2725
|
+
category: l.menu
|
|
2725
2726
|
},
|
|
2726
2727
|
menuCatalog: {
|
|
2727
2728
|
label: "Menu Catalog Management",
|
|
2728
2729
|
subject: a.menu_catalog,
|
|
2729
2730
|
actions: [t.manage],
|
|
2730
|
-
category:
|
|
2731
|
+
category: l.menu
|
|
2731
2732
|
},
|
|
2732
2733
|
menuCategory: {
|
|
2733
2734
|
label: "Menu Category Management",
|
|
2734
2735
|
subject: a.menu_category,
|
|
2735
2736
|
actions: [t.manage],
|
|
2736
|
-
category:
|
|
2737
|
+
category: l.menu
|
|
2737
2738
|
},
|
|
2738
2739
|
menuSubCategory: {
|
|
2739
2740
|
label: "Menu Sub-category Management",
|
|
2740
2741
|
subject: a.menu_subCategory,
|
|
2741
2742
|
actions: [t.manage],
|
|
2742
|
-
category:
|
|
2743
|
+
category: l.menu
|
|
2743
2744
|
},
|
|
2744
2745
|
menuGroup: {
|
|
2745
2746
|
label: "Menu Group Management",
|
|
2746
2747
|
subject: a.menu_group,
|
|
2747
2748
|
actions: [t.manage],
|
|
2748
|
-
category:
|
|
2749
|
+
category: l.menu
|
|
2749
2750
|
},
|
|
2750
2751
|
menuTakeaway: {
|
|
2751
2752
|
label: "Menu Takeaway Management",
|
|
2752
2753
|
subject: a.menu_takeaway,
|
|
2753
2754
|
actions: [t.manage],
|
|
2754
|
-
category:
|
|
2755
|
+
category: l.menu
|
|
2755
2756
|
},
|
|
2756
2757
|
menuScheduler: {
|
|
2757
2758
|
label: "Menu Scheduler Management",
|
|
2758
2759
|
subject: a.menu_scheduler,
|
|
2759
2760
|
actions: [t.manage],
|
|
2760
|
-
category:
|
|
2761
|
+
category: l.menu
|
|
2761
2762
|
},
|
|
2762
2763
|
menuVariant: {
|
|
2763
2764
|
label: "Menu Variant Management",
|
|
2764
2765
|
subject: a.menu_variant,
|
|
2765
2766
|
actions: [t.manage],
|
|
2766
|
-
category:
|
|
2767
|
+
category: l.menu
|
|
2767
2768
|
},
|
|
2768
2769
|
menuCookingGuide: {
|
|
2769
2770
|
label: "Menu Cooking Guide Management",
|
|
2770
2771
|
subject: a.menu_cookingGuide,
|
|
2771
2772
|
actions: [t.manage],
|
|
2772
|
-
category:
|
|
2773
|
+
category: l.menu
|
|
2773
2774
|
},
|
|
2774
2775
|
menuPrintRoute: {
|
|
2775
2776
|
label: "Menu Print Route Management",
|
|
2776
2777
|
subject: a.menu_printRoute,
|
|
2777
2778
|
actions: [t.manage],
|
|
2778
|
-
category:
|
|
2779
|
+
category: l.menu
|
|
2779
2780
|
},
|
|
2780
2781
|
menuServingSequence: {
|
|
2781
2782
|
label: "Menu Serving Sequence Management",
|
|
2782
2783
|
subject: a.menu_servingSequence,
|
|
2783
2784
|
actions: [t.manage],
|
|
2784
|
-
category:
|
|
2785
|
+
category: l.menu
|
|
2785
2786
|
},
|
|
2786
2787
|
menuUnit: {
|
|
2787
2788
|
label: "Menu Unit Management",
|
|
2788
2789
|
subject: a.menu_unit,
|
|
2789
2790
|
actions: [t.manage],
|
|
2790
|
-
category:
|
|
2791
|
+
category: l.menu
|
|
2791
2792
|
},
|
|
2792
2793
|
menuIngredient: {
|
|
2793
2794
|
label: "Menu Ingredient Management",
|
|
2794
2795
|
subject: a.menu_ingredient,
|
|
2795
2796
|
actions: [t.manage],
|
|
2796
|
-
category:
|
|
2797
|
+
category: l.menu
|
|
2797
2798
|
},
|
|
2798
2799
|
menuRecipe: {
|
|
2799
2800
|
label: "Menu Recipe Management",
|
|
2800
2801
|
subject: a.menu_recipe,
|
|
2801
2802
|
actions: [t.manage],
|
|
2802
|
-
category:
|
|
2803
|
+
category: l.menu
|
|
2803
2804
|
},
|
|
2804
2805
|
menuSettings: {
|
|
2805
2806
|
label: "Menu Settings Management",
|
|
2806
2807
|
subject: a.menu_settings,
|
|
2807
2808
|
actions: [t.manage],
|
|
2808
|
-
category:
|
|
2809
|
+
category: l.menu
|
|
2809
2810
|
},
|
|
2810
2811
|
menuPublish: {
|
|
2811
2812
|
label: "Menu Publish",
|
|
2812
2813
|
subject: a.menu_publish,
|
|
2813
2814
|
actions: [t.manage],
|
|
2814
|
-
category:
|
|
2815
|
+
category: l.menu
|
|
2815
2816
|
},
|
|
2816
2817
|
menuManagement: {
|
|
2817
2818
|
label: "Menu Management",
|
|
2818
2819
|
subject: a.menu_menuManagement,
|
|
2819
2820
|
actions: [t.manage],
|
|
2820
|
-
category:
|
|
2821
|
+
category: l.menu
|
|
2821
2822
|
},
|
|
2822
2823
|
menuImportExport: {
|
|
2823
2824
|
label: "Menu Import/Export",
|
|
2824
2825
|
subject: a.menu_importExport,
|
|
2825
2826
|
actions: [t.manage],
|
|
2826
|
-
category:
|
|
2827
|
+
category: l.menu
|
|
2827
2828
|
},
|
|
2828
2829
|
// inventory
|
|
2829
2830
|
inventoryStockBalance: {
|
|
2830
2831
|
label: "Stock Balance Management",
|
|
2831
2832
|
subject: a.inventory_stockBalance,
|
|
2832
2833
|
actions: [t.manage],
|
|
2833
|
-
category:
|
|
2834
|
+
category: l.inventory
|
|
2834
2835
|
},
|
|
2835
2836
|
inventoryStockAdjustment: {
|
|
2836
2837
|
label: "Stock Adjustment Management",
|
|
2837
2838
|
subject: a.inventory_stockAdjustment,
|
|
2838
2839
|
actions: [t.manage],
|
|
2839
|
-
category:
|
|
2840
|
+
category: l.inventory
|
|
2840
2841
|
},
|
|
2841
2842
|
inventoryUnitCostHistory: {
|
|
2842
2843
|
label: "Unit Cost History Management",
|
|
2843
2844
|
subject: a.inventory_unitCostHistory,
|
|
2844
2845
|
actions: [t.manage],
|
|
2845
|
-
category:
|
|
2846
|
+
category: l.inventory
|
|
2846
2847
|
},
|
|
2847
2848
|
inventoryWastageTemplate: {
|
|
2848
2849
|
label: "Wastage Template Management",
|
|
2849
2850
|
subject: a.inventory_wastageTemplate,
|
|
2850
2851
|
actions: [t.manage],
|
|
2851
|
-
category:
|
|
2852
|
+
category: l.inventory,
|
|
2852
2853
|
showByFeatureFlag: "inventory_pos_adjust_v2_wastage"
|
|
2853
2854
|
},
|
|
2854
2855
|
inventoryClosingHistory: {
|
|
2855
2856
|
label: "Closing History Management",
|
|
2856
2857
|
subject: a.inventory_closingHistory,
|
|
2857
2858
|
actions: [t.manage],
|
|
2858
|
-
category:
|
|
2859
|
+
category: l.inventory
|
|
2859
2860
|
},
|
|
2860
2861
|
inventoryClosingTemplate: {
|
|
2861
2862
|
label: "Closing Template Management",
|
|
2862
2863
|
subject: a.inventory_closingTemplate,
|
|
2863
2864
|
actions: [t.manage],
|
|
2864
|
-
category:
|
|
2865
|
+
category: l.inventory,
|
|
2865
2866
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
2866
2867
|
},
|
|
2867
2868
|
inventoryClosingDraft: {
|
|
2868
2869
|
label: "Closing Draft Management",
|
|
2869
2870
|
subject: a.inventory_closingDraft,
|
|
2870
2871
|
actions: [t.manage],
|
|
2871
|
-
category:
|
|
2872
|
+
category: l.inventory,
|
|
2872
2873
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
2873
2874
|
},
|
|
2874
2875
|
inventoryIngredient: {
|
|
2875
2876
|
label: "Ingredient Management",
|
|
2876
2877
|
subject: a.inventory_ingredient,
|
|
2877
2878
|
actions: [t.manage],
|
|
2878
|
-
category:
|
|
2879
|
+
category: l.inventory
|
|
2879
2880
|
},
|
|
2880
2881
|
inventoryIngredientGroup: {
|
|
2881
2882
|
label: "Ingredient Group Management",
|
|
2882
2883
|
subject: a.inventory_ingredientGroup,
|
|
2883
2884
|
actions: [t.manage],
|
|
2884
2885
|
showByFeatureFlag: "inventory_ingredient_group",
|
|
2885
|
-
category:
|
|
2886
|
+
category: l.inventory
|
|
2886
2887
|
},
|
|
2887
2888
|
inventoryRecipe: {
|
|
2888
2889
|
label: "Recipe Management",
|
|
2889
2890
|
subject: a.inventory_recipe,
|
|
2890
2891
|
actions: [t.manage],
|
|
2891
|
-
category:
|
|
2892
|
+
category: l.inventory
|
|
2892
2893
|
},
|
|
2893
2894
|
inventoryUnit: {
|
|
2894
2895
|
label: "Unit Management",
|
|
2895
2896
|
subject: a.inventory_unit,
|
|
2896
2897
|
actions: [t.manage],
|
|
2897
|
-
category:
|
|
2898
|
+
category: l.inventory
|
|
2898
2899
|
},
|
|
2899
2900
|
inventoryPurchaseTransfer: {
|
|
2900
2901
|
label: "Purchase / Transfer Management",
|
|
2901
2902
|
subject: a.inventory_purchaseTransfer,
|
|
2902
2903
|
actions: [t.manage],
|
|
2903
|
-
category:
|
|
2904
|
+
category: l.inventory
|
|
2904
2905
|
},
|
|
2905
2906
|
inventoryOrderDraftApproval: {
|
|
2906
2907
|
label: "Order Draft Approval",
|
|
2907
2908
|
subject: a.inventory_orderDraftApproval,
|
|
2908
2909
|
actions: [t.manage],
|
|
2909
|
-
category:
|
|
2910
|
+
category: l.inventory
|
|
2910
2911
|
},
|
|
2911
2912
|
inventoryTransferOut: {
|
|
2912
2913
|
label: "Transfer Out Management",
|
|
2913
2914
|
subject: a.inventory_transferOut,
|
|
2914
2915
|
actions: [t.manage],
|
|
2915
|
-
category:
|
|
2916
|
+
category: l.inventory
|
|
2916
2917
|
},
|
|
2917
2918
|
inventorySurcharge: {
|
|
2918
2919
|
label: "Surcharge Management",
|
|
2919
2920
|
subject: a.inventory_surcharge,
|
|
2920
2921
|
actions: [t.manage],
|
|
2921
2922
|
showByFeatureFlag: "inventory_portal_surcharge",
|
|
2922
|
-
category:
|
|
2923
|
+
category: l.inventory
|
|
2923
2924
|
},
|
|
2924
2925
|
inventoryOrderTemplate: {
|
|
2925
2926
|
label: "Order Template Management",
|
|
2926
2927
|
subject: a.inventory_orderTemplate,
|
|
2927
2928
|
actions: [t.manage],
|
|
2928
2929
|
showByFeatureFlag: "inventory_portal_must_use_transfer_template",
|
|
2929
|
-
category:
|
|
2930
|
+
category: l.inventory
|
|
2930
2931
|
},
|
|
2931
2932
|
inventorySupplier: {
|
|
2932
2933
|
label: "Supplier Management",
|
|
2933
2934
|
subject: a.inventory_supplier,
|
|
2934
2935
|
actions: [t.manage],
|
|
2935
|
-
category:
|
|
2936
|
+
category: l.inventory
|
|
2936
2937
|
},
|
|
2937
2938
|
inventoryWarehouse: {
|
|
2938
2939
|
label: "Warehouse Management",
|
|
2939
2940
|
subject: a.inventory_warehouse,
|
|
2940
2941
|
actions: [t.manage],
|
|
2941
|
-
category:
|
|
2942
|
+
category: l.inventory
|
|
2942
2943
|
},
|
|
2943
2944
|
inventoryPublish: {
|
|
2944
2945
|
label: "Publish Management",
|
|
2945
2946
|
subject: a.inventory_publish,
|
|
2946
2947
|
actions: [t.manage],
|
|
2947
|
-
category:
|
|
2948
|
+
category: l.inventory
|
|
2948
2949
|
},
|
|
2949
2950
|
inventoryImport: {
|
|
2950
2951
|
label: "Import Management",
|
|
2951
2952
|
subject: a.inventory_import,
|
|
2952
2953
|
actions: [t.manage],
|
|
2953
2954
|
showByFeatureFlag: "inventory_bulk_import",
|
|
2954
|
-
category:
|
|
2955
|
+
category: l.inventory
|
|
2955
2956
|
},
|
|
2956
2957
|
inventoryIntegration: {
|
|
2957
2958
|
label: "Integration Management",
|
|
2958
2959
|
subject: a.inventory_integration,
|
|
2959
2960
|
actions: [t.manage],
|
|
2960
|
-
category:
|
|
2961
|
+
category: l.inventory
|
|
2961
2962
|
},
|
|
2962
2963
|
// CRM
|
|
2963
2964
|
crmMembership: {
|
|
2964
2965
|
label: "Membership Management (V1)",
|
|
2965
2966
|
subject: a.crm_membership,
|
|
2966
2967
|
actions: [t.manage],
|
|
2967
|
-
category:
|
|
2968
|
+
category: l.crm
|
|
2968
2969
|
},
|
|
2969
2970
|
crmPromotion: {
|
|
2970
2971
|
label: "Promotion Management (V1/V2)",
|
|
2971
2972
|
subject: a.crm_promotion,
|
|
2972
2973
|
actions: [t.manage],
|
|
2973
|
-
category:
|
|
2974
|
+
category: l.crm
|
|
2974
2975
|
},
|
|
2975
2976
|
crmVoucher: {
|
|
2976
2977
|
label: "Voucher Management (V1/V2)",
|
|
2977
2978
|
subject: a.crm_voucher,
|
|
2978
2979
|
actions: [t.manage],
|
|
2979
|
-
category:
|
|
2980
|
+
category: l.crm
|
|
2980
2981
|
},
|
|
2981
2982
|
crmAnalytic: {
|
|
2982
2983
|
label: "Analytic Management",
|
|
2983
2984
|
subject: a.crm_analytic,
|
|
2984
2985
|
actions: [t.manage],
|
|
2985
|
-
category:
|
|
2986
|
+
category: l.crm
|
|
2986
2987
|
},
|
|
2987
2988
|
crmTier: {
|
|
2988
2989
|
label: "Tier Management",
|
|
2989
2990
|
subject: a.crm_tier,
|
|
2990
2991
|
actions: [t.manage],
|
|
2991
|
-
category:
|
|
2992
|
+
category: l.crm
|
|
2992
2993
|
},
|
|
2993
2994
|
crmTitle: {
|
|
2994
2995
|
label: "Title Management",
|
|
2995
2996
|
subject: a.crm_title,
|
|
2996
2997
|
actions: [t.manage],
|
|
2997
|
-
category:
|
|
2998
|
+
category: l.crm
|
|
2998
2999
|
},
|
|
2999
3000
|
crmBroadcast: {
|
|
3000
3001
|
label: "Broadcast Management",
|
|
3001
3002
|
subject: a.crm_broadcast,
|
|
3002
3003
|
actions: [t.manage],
|
|
3003
|
-
category:
|
|
3004
|
+
category: l.crm
|
|
3004
3005
|
},
|
|
3005
3006
|
crmPoint: {
|
|
3006
3007
|
label: "Point Management",
|
|
3007
3008
|
subject: a.crm_point,
|
|
3008
3009
|
actions: [t.manage],
|
|
3009
|
-
category:
|
|
3010
|
+
category: l.crm
|
|
3010
3011
|
},
|
|
3011
3012
|
crmCredit: {
|
|
3012
3013
|
label: "Credit Management",
|
|
3013
3014
|
subject: a.crm_credit,
|
|
3014
3015
|
actions: [t.manage],
|
|
3015
|
-
category:
|
|
3016
|
+
category: l.crm
|
|
3016
3017
|
},
|
|
3017
3018
|
crmExperience: {
|
|
3018
3019
|
label: "Experience Management",
|
|
3019
3020
|
subject: a.crm_experience,
|
|
3020
3021
|
actions: [t.manage],
|
|
3021
|
-
category:
|
|
3022
|
+
category: l.crm
|
|
3022
3023
|
},
|
|
3023
3024
|
crmGame: {
|
|
3024
3025
|
label: "Game Management",
|
|
3025
3026
|
subject: a.crm_game,
|
|
3026
3027
|
actions: [t.manage],
|
|
3027
|
-
category:
|
|
3028
|
+
category: l.crm
|
|
3028
3029
|
},
|
|
3029
3030
|
crmMission: {
|
|
3030
3031
|
label: "Mission Management",
|
|
3031
3032
|
subject: a.crm_mission,
|
|
3032
3033
|
actions: [t.manage],
|
|
3033
|
-
category:
|
|
3034
|
+
category: l.crm
|
|
3034
3035
|
},
|
|
3035
3036
|
crmLoyaltyMember: {
|
|
3036
3037
|
label: "Loyalty Member Management",
|
|
3037
3038
|
subject: a.crm_loyaltyMember,
|
|
3038
3039
|
actions: [t.manage],
|
|
3039
|
-
category:
|
|
3040
|
+
category: l.crm
|
|
3040
3041
|
},
|
|
3041
3042
|
crmLoyaltySegment: {
|
|
3042
3043
|
label: "Loyalty Segment Management",
|
|
3043
3044
|
subject: a.crm_loyaltySegment,
|
|
3044
3045
|
actions: [t.manage],
|
|
3045
|
-
category:
|
|
3046
|
+
category: l.crm
|
|
3046
3047
|
},
|
|
3047
3048
|
crmLoyaltyCard: {
|
|
3048
3049
|
label: "Loyalty Card Management",
|
|
3049
3050
|
subject: a.crm_loyaltyCard,
|
|
3050
3051
|
actions: [t.manage],
|
|
3051
|
-
category:
|
|
3052
|
+
category: l.crm
|
|
3052
3053
|
},
|
|
3053
3054
|
crmReferral: {
|
|
3054
3055
|
label: "Referral Management",
|
|
3055
3056
|
subject: a.crm_referral,
|
|
3056
3057
|
actions: [t.manage],
|
|
3057
|
-
category:
|
|
3058
|
+
category: l.crm
|
|
3058
3059
|
},
|
|
3059
3060
|
crmStore: {
|
|
3060
3061
|
label: "Store Management",
|
|
3061
3062
|
subject: a.crm_store,
|
|
3062
3063
|
actions: [t.manage],
|
|
3063
|
-
category:
|
|
3064
|
+
category: l.crm
|
|
3064
3065
|
},
|
|
3065
3066
|
crmTransaction: {
|
|
3066
3067
|
label: "Transaction Management",
|
|
3067
3068
|
subject: a.crm_transaction,
|
|
3068
3069
|
actions: [t.manage],
|
|
3069
|
-
category:
|
|
3070
|
+
category: l.crm
|
|
3070
3071
|
},
|
|
3071
3072
|
crmSetting: {
|
|
3072
3073
|
label: "Setting Management",
|
|
3073
3074
|
subject: a.crm_setting,
|
|
3074
3075
|
actions: [t.manage],
|
|
3075
|
-
category:
|
|
3076
|
+
category: l.crm
|
|
3076
3077
|
},
|
|
3077
3078
|
crmBin: {
|
|
3078
3079
|
label: "Bin Management",
|
|
3079
3080
|
subject: a.crm_bin,
|
|
3080
3081
|
actions: [t.manage],
|
|
3081
|
-
category:
|
|
3082
|
+
category: l.crm
|
|
3082
3083
|
},
|
|
3083
3084
|
// Payment
|
|
3084
3085
|
paymentPayoutAccount: {
|
|
3085
3086
|
label: "Payout Account Management",
|
|
3086
3087
|
subject: a.payment_payoutAccount,
|
|
3087
3088
|
actions: [t.manage],
|
|
3088
|
-
category:
|
|
3089
|
+
category: l.payment
|
|
3089
3090
|
},
|
|
3090
3091
|
paymentOnboarding: {
|
|
3091
3092
|
label: "Payment Onboarding Management",
|
|
3092
3093
|
subject: a.payment_paymentOnboarding,
|
|
3093
3094
|
actions: [t.manage],
|
|
3094
|
-
category:
|
|
3095
|
+
category: l.payment
|
|
3095
3096
|
},
|
|
3096
3097
|
paymentTransactions: {
|
|
3097
3098
|
label: "Transactions Management",
|
|
3098
3099
|
subject: a.payment_transactions,
|
|
3099
3100
|
actions: [t.manage],
|
|
3100
|
-
category:
|
|
3101
|
+
category: l.payment
|
|
3101
3102
|
},
|
|
3102
3103
|
paymentSettlements: {
|
|
3103
3104
|
label: "Settlements Management",
|
|
3104
3105
|
subject: a.payment_settlements,
|
|
3105
3106
|
actions: [t.manage],
|
|
3106
|
-
category:
|
|
3107
|
+
category: l.payment
|
|
3107
3108
|
},
|
|
3108
3109
|
// HRM
|
|
3109
3110
|
hrmTeamMember: {
|
|
3110
3111
|
label: "Team Member Management",
|
|
3111
3112
|
subject: a.hrm_teamMember,
|
|
3112
3113
|
actions: [t.manage],
|
|
3113
|
-
category:
|
|
3114
|
+
category: l.hrm
|
|
3114
3115
|
},
|
|
3115
3116
|
hrmEmployee: {
|
|
3116
3117
|
label: "Employee Management",
|
|
3117
3118
|
subject: a.hrm_employee,
|
|
3118
3119
|
actions: [t.manage],
|
|
3119
|
-
category:
|
|
3120
|
+
category: l.hrm
|
|
3120
3121
|
},
|
|
3121
3122
|
hrmAuditLog: {
|
|
3122
3123
|
label: "Audit Log Management",
|
|
3123
3124
|
subject: a.hrm_auditLog,
|
|
3124
3125
|
actions: [t.manage],
|
|
3125
|
-
category:
|
|
3126
|
+
category: l.hrm
|
|
3126
3127
|
},
|
|
3127
3128
|
// Report
|
|
3128
3129
|
reportReports: {
|
|
3129
3130
|
label: "Create Report",
|
|
3130
3131
|
subject: a.report_createReport,
|
|
3131
3132
|
actions: [t.manage],
|
|
3132
|
-
category:
|
|
3133
|
+
category: l.report
|
|
3133
3134
|
},
|
|
3134
3135
|
reportAccessOverview: {
|
|
3135
3136
|
label: "Access Overview Page",
|
|
3136
3137
|
subject: a.report_accessOverview,
|
|
3137
3138
|
actions: [t.manage],
|
|
3138
|
-
category:
|
|
3139
|
+
category: l.report
|
|
3139
3140
|
},
|
|
3140
3141
|
reportAccessInsight: {
|
|
3141
3142
|
label: "Access Insight Page",
|
|
3142
3143
|
subject: a.report_accessInsight,
|
|
3143
3144
|
actions: [t.manage],
|
|
3144
|
-
category:
|
|
3145
|
+
category: l.report
|
|
3145
3146
|
},
|
|
3146
3147
|
reportAccessSetting: {
|
|
3147
3148
|
label: "Access Setting Page",
|
|
3148
3149
|
subject: a.report_accessSetting,
|
|
3149
3150
|
actions: [t.manage],
|
|
3150
|
-
category:
|
|
3151
|
+
category: l.report
|
|
3151
3152
|
},
|
|
3152
3153
|
reportAccessIntegration: {
|
|
3153
3154
|
label: "Access Integration Page",
|
|
3154
3155
|
subject: a.report_accessIntegration,
|
|
3155
3156
|
actions: [t.manage],
|
|
3156
|
-
category:
|
|
3157
|
+
category: l.report
|
|
3157
3158
|
},
|
|
3158
3159
|
reportAllDefaultReports: {
|
|
3159
3160
|
label: "Include future Default Reports",
|
|
3160
3161
|
subject: a.report_reports_allDefaultReports,
|
|
3161
3162
|
actions: [t.manage, t.read, t.create],
|
|
3162
|
-
category:
|
|
3163
|
+
category: l.reports,
|
|
3163
3164
|
isCategoryCover: !0
|
|
3164
3165
|
},
|
|
3165
3166
|
reportAllCustomReports: {
|
|
@@ -3172,51 +3173,91 @@ const Er = {
|
|
|
3172
3173
|
t.update,
|
|
3173
3174
|
t.delete
|
|
3174
3175
|
],
|
|
3175
|
-
category:
|
|
3176
|
+
category: l.customReports,
|
|
3176
3177
|
isCategoryCover: !0
|
|
3177
|
-
}
|
|
3178
|
+
},
|
|
3178
3179
|
// MDM
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3180
|
+
mdmDeviceManagement: {
|
|
3181
|
+
label: "Device Management",
|
|
3182
|
+
subject: a.mdm_deviceManagement,
|
|
3183
|
+
actions: [t.manage],
|
|
3184
|
+
category: l.settings
|
|
3185
|
+
},
|
|
3186
|
+
mdmCreateDevice: {
|
|
3187
|
+
label: "Create New Device",
|
|
3188
|
+
subject: a.mdm_createDevice,
|
|
3189
|
+
actions: [t.manage],
|
|
3190
|
+
category: l.settings
|
|
3191
|
+
},
|
|
3192
|
+
mdmDeviceBinding: {
|
|
3193
|
+
label: "Manage Device Binding",
|
|
3194
|
+
subject: a.mdm_deviceBinding,
|
|
3195
|
+
actions: [t.manage],
|
|
3196
|
+
category: l.settings
|
|
3197
|
+
},
|
|
3198
|
+
mdmCustomerDisplay: {
|
|
3199
|
+
label: "Manage Customer Display",
|
|
3200
|
+
subject: a.mdm_customerDisplay,
|
|
3201
|
+
actions: [t.manage, t.read, t.update],
|
|
3202
|
+
category: l.settings
|
|
3203
|
+
},
|
|
3203
3204
|
// E-invoice
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
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
|
|
3259
|
+
}
|
|
3260
|
+
}, xr = {};
|
|
3220
3261
|
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 || {});
|
|
3221
3262
|
const C = [
|
|
3222
3263
|
{
|
|
@@ -4246,11 +4287,11 @@ function Ia(e) {
|
|
|
4246
4287
|
reason: c.source !== void 0 ? JSON.stringify(c.source) : c.reason
|
|
4247
4288
|
}));
|
|
4248
4289
|
}
|
|
4249
|
-
function
|
|
4290
|
+
function Ra(e) {
|
|
4250
4291
|
return new $s(Ia(e));
|
|
4251
4292
|
}
|
|
4252
|
-
function
|
|
4253
|
-
const r = Array.isArray(e) ? e : [e], n =
|
|
4293
|
+
function Na(e, c, i) {
|
|
4294
|
+
const r = Array.isArray(e) ? e : [e], n = Ra(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));
|
|
4254
4295
|
if (d) {
|
|
4255
4296
|
const M = n.relevantRuleFor(
|
|
4256
4297
|
d.action,
|
|
@@ -4267,7 +4308,7 @@ function za(e, c, i) {
|
|
|
4267
4308
|
return { granted: !0, decisivePermission: f, decisiveRule: D ?? null };
|
|
4268
4309
|
}
|
|
4269
4310
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4270
|
-
const
|
|
4311
|
+
const za = () => {
|
|
4271
4312
|
};
|
|
4272
4313
|
function Wa(e, c, i) {
|
|
4273
4314
|
let r;
|
|
@@ -4278,14 +4319,14 @@ function Wa(e, c, i) {
|
|
|
4278
4319
|
lazy: n = !1,
|
|
4279
4320
|
evaluating: o = void 0,
|
|
4280
4321
|
shallow: m = !0,
|
|
4281
|
-
onError: d =
|
|
4282
|
-
} = r, f = L(!n), D = m ?
|
|
4322
|
+
onError: d = za
|
|
4323
|
+
} = r, f = L(!n), D = m ? Rt(c) : L(c);
|
|
4283
4324
|
let M = 0;
|
|
4284
4325
|
return Ee(async (h) => {
|
|
4285
4326
|
if (!f.value)
|
|
4286
4327
|
return;
|
|
4287
4328
|
M++;
|
|
4288
|
-
const
|
|
4329
|
+
const R = M;
|
|
4289
4330
|
let G = !1;
|
|
4290
4331
|
o && Promise.resolve().then(() => {
|
|
4291
4332
|
o.value = !0;
|
|
@@ -4296,11 +4337,11 @@ function Wa(e, c, i) {
|
|
|
4296
4337
|
o && (o.value = !1), G || X();
|
|
4297
4338
|
});
|
|
4298
4339
|
});
|
|
4299
|
-
|
|
4340
|
+
R === M && (D.value = x);
|
|
4300
4341
|
} catch (x) {
|
|
4301
4342
|
d(x);
|
|
4302
4343
|
} finally {
|
|
4303
|
-
o &&
|
|
4344
|
+
o && R === M && (o.value = !1), G = !0;
|
|
4304
4345
|
}
|
|
4305
4346
|
}), n ? ge(() => (f.value = !0, D.value)) : D;
|
|
4306
4347
|
}
|
|
@@ -4314,7 +4355,7 @@ async function Ua(e) {
|
|
|
4314
4355
|
message: "User does not have permission to access"
|
|
4315
4356
|
});
|
|
4316
4357
|
if (n && n.length > 0) {
|
|
4317
|
-
const { granted: m } =
|
|
4358
|
+
const { granted: m } = Na(n, c.permissions);
|
|
4318
4359
|
if (!m)
|
|
4319
4360
|
return Promise.resolve({
|
|
4320
4361
|
canAccess: !1,
|
|
@@ -4399,16 +4440,16 @@ const Ka = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
4399
4440
|
}
|
|
4400
4441
|
});
|
|
4401
4442
|
return (i, r) => (k(), qe("div", ar, [
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
src:
|
|
4443
|
+
N("div", rr, [
|
|
4444
|
+
N("div", nr, [
|
|
4445
|
+
N("img", {
|
|
4446
|
+
src: z(Ka),
|
|
4406
4447
|
class: "w-full h-full"
|
|
4407
4448
|
}, null, 8, Ar)
|
|
4408
4449
|
]),
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4450
|
+
N("div", null, [
|
|
4451
|
+
N("h1", or, ve(z(c)("noPermission.title")), 1),
|
|
4452
|
+
N("h2", cr, ve(z(c)("noPermission.subtitle")), 1)
|
|
4412
4453
|
])
|
|
4413
4454
|
])
|
|
4414
4455
|
]));
|
|
@@ -4417,7 +4458,7 @@ const Ka = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
4417
4458
|
__name: "PermissionWrapper",
|
|
4418
4459
|
setup(e) {
|
|
4419
4460
|
const c = ka();
|
|
4420
|
-
return (i, r) =>
|
|
4461
|
+
return (i, r) => z(c) === z(me).Denied ? (k(), ae(ir, { key: 0 })) : z(c) === z(me).Allowed ? xe(i.$slots, "default", { key: 1 }) : Nt("", !0);
|
|
4421
4462
|
}
|
|
4422
4463
|
});
|
|
4423
4464
|
function re(e) {
|
|
@@ -4447,7 +4488,7 @@ function ur(e, c) {
|
|
|
4447
4488
|
n && (await he(), r());
|
|
4448
4489
|
}), Pe(() => {
|
|
4449
4490
|
window.addEventListener("resize", r);
|
|
4450
|
-
}),
|
|
4491
|
+
}), zt(() => {
|
|
4451
4492
|
window.removeEventListener("resize", r);
|
|
4452
4493
|
}), i;
|
|
4453
4494
|
}
|
|
@@ -4476,7 +4517,7 @@ const mr = /* @__PURE__ */ T({
|
|
|
4476
4517
|
const r = de("FmCircularProgress");
|
|
4477
4518
|
return k(), ae(mr, null, {
|
|
4478
4519
|
default: Ut(() => [
|
|
4479
|
-
|
|
4520
|
+
N("div", gr, [
|
|
4480
4521
|
Tt(r, { size: "xl" })
|
|
4481
4522
|
])
|
|
4482
4523
|
]),
|
|
@@ -4498,10 +4539,10 @@ const ce = (e) => ({
|
|
|
4498
4539
|
}
|
|
4499
4540
|
]
|
|
4500
4541
|
}
|
|
4501
|
-
}), Br = re(O(() => import("./Main-
|
|
4502
|
-
O(() => import("./AuditLogList-
|
|
4503
|
-
), fr = re(O(() => import("./Main-
|
|
4504
|
-
() => import("./PermissionSetList-
|
|
4542
|
+
}), Br = re(O(() => import("./Main-B3YiMuFq.js"))), br = re(O(() => import("./Main-D7yzD5SW.js"))), pr = re(
|
|
4543
|
+
O(() => import("./AuditLogList-DBIsI4YF.js"))
|
|
4544
|
+
), fr = re(O(() => import("./Main-BAZAQTWi.js"))), wr = O(() => import("./EmployeeList-BOSxLZbY.js")), Mr = O(() => import("./RoleList-DeE5tN-5.js")), yr = O(() => import("./TimesheetList-DpMBgVtY.js")), Dr = O(() => import("./TeamMemberList-BCv5Vixx.js")), vr = O(
|
|
4545
|
+
() => import("./PermissionSetList-DBT9LtfT.js")
|
|
4505
4546
|
), Pr = [
|
|
4506
4547
|
{
|
|
4507
4548
|
path: "/",
|
|
@@ -4666,20 +4707,20 @@ const ce = (e) => ({
|
|
|
4666
4707
|
};
|
|
4667
4708
|
export {
|
|
4668
4709
|
Za as A,
|
|
4669
|
-
|
|
4710
|
+
Er as C,
|
|
4670
4711
|
qr as I,
|
|
4671
4712
|
V as R,
|
|
4672
4713
|
mr as _,
|
|
4673
4714
|
dr as a,
|
|
4674
|
-
|
|
4715
|
+
Vr as b,
|
|
4675
4716
|
Ps as c,
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4717
|
+
l as d,
|
|
4718
|
+
Fr as e,
|
|
4719
|
+
Qr as f,
|
|
4679
4720
|
Qs as g,
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
u as p,
|
|
4721
|
+
te as i,
|
|
4722
|
+
xr as k,
|
|
4683
4723
|
Pr as r,
|
|
4684
|
-
|
|
4724
|
+
ta as u,
|
|
4725
|
+
t as y
|
|
4685
4726
|
};
|