@feedmepos/mf-hrm-portal 2.1.1-dev.6 → 2.2.0-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/ApprovalCodeList-Cwy-Rn90.js +728 -0
- package/dist/{AuditLogList-DrrL4vf4.js → AuditLogList-CfDEZ6Z-.js} +3 -3
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-CBjO1MZo.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BTDBRB1-.js} +2 -2
- package/dist/{EmployeeList-BMol4ah4.js → EmployeeList-DJrCBYvi.js} +6 -4
- package/dist/{GrantUserList-CLBl7FZ-.js → GrantUserList-UgQBjh54.js} +3 -3
- package/dist/{Main-D_LwrBdZ.js → Main-B5YknOhi.js} +9 -9
- package/dist/{Main-DNOHZd3j.js → Main-BnWK_GkW.js} +5 -5
- package/dist/Main-DQXiP6Io.js +121 -0
- package/dist/{PermissionSetList-DLYrXFbz.js → PermissionSetList-CfPZPmfV.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Drcx0tL_.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CPk4KJUW.js} +803 -803
- package/dist/{RoleList-g8PjH_k2.js → RoleList-CHnu2j25.js} +7 -7
- package/dist/{TeamMemberList-B9aCagSc.js → TeamMemberList-DprMQ_8g.js} +6 -6
- package/dist/{TimesheetList-C1IJhOYE.js → TimesheetList-D5G1dJfp.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CqtiVm1j.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DFfYiBBf.js} +2 -2
- package/dist/{app-DnOYVjuj.js → app-BhF0Kk5X.js} +154 -135
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Dxul0qTK.js → dayjs.min-Do1gXFxN.js} +1 -1
- package/dist/{employee-sr65CZR7.js → employee-BRCSs9t_.js} +3 -3
- package/dist/{iteration-DIqDMvFa.js → iteration-C2XLVxL1.js} +1 -1
- package/dist/{lodash-CXlqXFmD.js → lodash-eudyY8-f.js} +1 -1
- package/dist/{role-CE3NY-63.js → role-CSL6Qv8l.js} +1 -1
- package/dist/{rule-CEjrit6c.js → rule-D3DPWTm1.js} +20 -12
- package/dist/src/types/approval-code.d.ts +29 -48
- package/dist/src/views/hr/locales/index.d.ts +4 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-FVW_HwcL.js → useReportPermissions-CSdIiY_7.js} +3 -3
- package/package.json +2 -2
- package/dist/ApprovalCodeList-B1XHbhum.js +0 -757
- package/dist/Main-auigiuVZ.js +0 -122
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Rn = Object.defineProperty;
|
|
2
2
|
var Xn = (e, t, s) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
3
|
var xt = (e, t, s) => Xn(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as Us, defineComponent as it, createBlock as Ut, renderSlot as cr, createCommentVNode as Tn, unref as ze, openBlock as ct, createElementBlock as lr, createElementVNode as
|
|
4
|
+
import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as Us, defineComponent as it, createBlock as Ut, renderSlot as cr, createCommentVNode as Tn, unref as ze, openBlock as ct, createElementBlock as lr, createElementVNode as Ze, toDisplayString as Ws, watch as Nn, nextTick as Sn, onMounted as ur, onBeforeUnmount as Zn, normalizeStyle as zn, resolveComponent as Fs, withCtx as Un, createVNode as Wn, defineAsyncComponent as Ln, readonly as vs } from "vue";
|
|
5
5
|
import { useBreakpoints as Kn } from "@feedmepos/ui-library";
|
|
6
6
|
import { useRoute as Jn, useRouter as _n } from "vue-router";
|
|
7
7
|
import { useCoreStore as Ar, useI18n as dr } from "@feedmepos/mf-common";
|
|
@@ -21,7 +21,7 @@ const v = {
|
|
|
21
21
|
miniProgram: "Mini Program",
|
|
22
22
|
media: "Media"
|
|
23
23
|
}, $n = "access-denied";
|
|
24
|
-
var
|
|
24
|
+
var S;
|
|
25
25
|
(function(e) {
|
|
26
26
|
function t(n) {
|
|
27
27
|
}
|
|
@@ -55,8 +55,8 @@ var Z;
|
|
|
55
55
|
return n.map((c) => typeof c == "string" ? `'${c}'` : c).join(a);
|
|
56
56
|
}
|
|
57
57
|
e.joinValues = r;
|
|
58
|
-
})(
|
|
59
|
-
const x =
|
|
58
|
+
})(S || (S = {}));
|
|
59
|
+
const x = S.arrayToEnum([
|
|
60
60
|
"string",
|
|
61
61
|
"nan",
|
|
62
62
|
"number",
|
|
@@ -96,7 +96,7 @@ const x = Z.arrayToEnum([
|
|
|
96
96
|
default:
|
|
97
97
|
return x.unknown;
|
|
98
98
|
}
|
|
99
|
-
}, C =
|
|
99
|
+
}, C = S.arrayToEnum([
|
|
100
100
|
"invalid_type",
|
|
101
101
|
"invalid_literal",
|
|
102
102
|
"custom",
|
|
@@ -113,7 +113,7 @@ const x = Z.arrayToEnum([
|
|
|
113
113
|
"invalid_intersection_types",
|
|
114
114
|
"not_multiple_of"
|
|
115
115
|
]), ea = (e) => JSON.stringify(e, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
116
|
-
class
|
|
116
|
+
class qe extends Error {
|
|
117
117
|
constructor(t) {
|
|
118
118
|
super(), this.issues = [], this.addIssue = (r) => {
|
|
119
119
|
this.issues = [...this.issues, r];
|
|
@@ -168,7 +168,7 @@ class Fe extends Error {
|
|
|
168
168
|
return this.flatten();
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
qe.create = (e) => new qe(e);
|
|
172
172
|
const Bt = (e, t) => {
|
|
173
173
|
let s;
|
|
174
174
|
switch (e.code) {
|
|
@@ -179,16 +179,16 @@ const Bt = (e, t) => {
|
|
|
179
179
|
s = `Invalid literal value, expected ${JSON.stringify(e.expected, qs)}`;
|
|
180
180
|
break;
|
|
181
181
|
case C.unrecognized_keys:
|
|
182
|
-
s = `Unrecognized key(s) in object: ${
|
|
182
|
+
s = `Unrecognized key(s) in object: ${S.joinValues(e.keys, ", ")}`;
|
|
183
183
|
break;
|
|
184
184
|
case C.invalid_union:
|
|
185
185
|
s = "Invalid input";
|
|
186
186
|
break;
|
|
187
187
|
case C.invalid_union_discriminator:
|
|
188
|
-
s = `Invalid discriminator value. Expected ${
|
|
188
|
+
s = `Invalid discriminator value. Expected ${S.joinValues(e.options)}`;
|
|
189
189
|
break;
|
|
190
190
|
case C.invalid_enum_value:
|
|
191
|
-
s = `Invalid enum value. Expected ${
|
|
191
|
+
s = `Invalid enum value. Expected ${S.joinValues(e.options)}, received '${e.received}'`;
|
|
192
192
|
break;
|
|
193
193
|
case C.invalid_arguments:
|
|
194
194
|
s = "Invalid function arguments";
|
|
@@ -200,7 +200,7 @@ const Bt = (e, t) => {
|
|
|
200
200
|
s = "Invalid date";
|
|
201
201
|
break;
|
|
202
202
|
case C.invalid_string:
|
|
203
|
-
typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` :
|
|
203
|
+
typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` : S.assertNever(e.validation) : e.validation !== "regex" ? s = `Invalid ${e.validation}` : s = "Invalid";
|
|
204
204
|
break;
|
|
205
205
|
case C.too_small:
|
|
206
206
|
e.type === "array" ? s = `Array must contain ${e.inclusive ? "at least" : "more than"} ${e.minimum} element(s)` : e.type === "string" ? s = `String must contain ${e.inclusive ? "at least" : "over"} ${e.minimum} character(s)` : e.type === "number" ? s = `Number must be greater than ${e.inclusive ? "or equal to " : ""}${e.minimum}` : e.type === "date" ? s = `Date must be greater than ${e.inclusive ? "or equal to " : ""}${new Date(e.minimum)}` : s = "Invalid input";
|
|
@@ -218,7 +218,7 @@ const Bt = (e, t) => {
|
|
|
218
218
|
s = `Number must be a multiple of ${e.multipleOf}`;
|
|
219
219
|
break;
|
|
220
220
|
default:
|
|
221
|
-
s = t.defaultError,
|
|
221
|
+
s = t.defaultError, S.assertNever(e);
|
|
222
222
|
}
|
|
223
223
|
return { message: s };
|
|
224
224
|
};
|
|
@@ -317,7 +317,7 @@ const Ls = (e, t) => {
|
|
|
317
317
|
return { success: !0, data: t.value };
|
|
318
318
|
if (!e.common.issues.length)
|
|
319
319
|
throw new Error("Validation failed but no issues detected.");
|
|
320
|
-
return { success: !1, error: new
|
|
320
|
+
return { success: !1, error: new qe(e.common.issues) };
|
|
321
321
|
};
|
|
322
322
|
function Q(e) {
|
|
323
323
|
if (!e)
|
|
@@ -567,7 +567,7 @@ class ke extends X {
|
|
|
567
567
|
code: C.invalid_string,
|
|
568
568
|
validation: { endsWith: a.value },
|
|
569
569
|
message: a.message
|
|
570
|
-
}), r.dirty()) :
|
|
570
|
+
}), r.dirty()) : S.assertNever(a);
|
|
571
571
|
return { status: r.value, value: t.data };
|
|
572
572
|
}
|
|
573
573
|
_addCheck(t) {
|
|
@@ -676,7 +676,7 @@ class Ue extends X {
|
|
|
676
676
|
let r;
|
|
677
677
|
const n = new ae();
|
|
678
678
|
for (const a of this._def.checks)
|
|
679
|
-
a.kind === "int" ?
|
|
679
|
+
a.kind === "int" ? S.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), Y(r, {
|
|
680
680
|
code: C.invalid_type,
|
|
681
681
|
expected: "integer",
|
|
682
682
|
received: "float",
|
|
@@ -697,7 +697,7 @@ class Ue extends X {
|
|
|
697
697
|
code: C.not_multiple_of,
|
|
698
698
|
multipleOf: a.value,
|
|
699
699
|
message: a.message
|
|
700
|
-
}), n.dirty()) :
|
|
700
|
+
}), n.dirty()) : S.assertNever(a);
|
|
701
701
|
return { status: n.value, value: t.data };
|
|
702
702
|
}
|
|
703
703
|
gte(t, s) {
|
|
@@ -863,7 +863,7 @@ class nt extends X {
|
|
|
863
863
|
inclusive: !0,
|
|
864
864
|
maximum: a.value,
|
|
865
865
|
type: "date"
|
|
866
|
-
}), r.dirty()) :
|
|
866
|
+
}), r.dirty()) : S.assertNever(a);
|
|
867
867
|
return {
|
|
868
868
|
status: r.value,
|
|
869
869
|
value: new Date(t.data.getTime())
|
|
@@ -1085,7 +1085,7 @@ class J extends X {
|
|
|
1085
1085
|
_getCached() {
|
|
1086
1086
|
if (this._cached !== null)
|
|
1087
1087
|
return this._cached;
|
|
1088
|
-
const t = this._def.shape(), s =
|
|
1088
|
+
const t = this._def.shape(), s = S.objectKeys(t);
|
|
1089
1089
|
return this._cached = { shape: t, keys: s };
|
|
1090
1090
|
}
|
|
1091
1091
|
_parse(t) {
|
|
@@ -1206,7 +1206,7 @@ class J extends X {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
pick(t) {
|
|
1208
1208
|
const s = {};
|
|
1209
|
-
return
|
|
1209
|
+
return S.objectKeys(t).map((r) => {
|
|
1210
1210
|
this.shape[r] && (s[r] = this.shape[r]);
|
|
1211
1211
|
}), new J({
|
|
1212
1212
|
...this._def,
|
|
@@ -1215,8 +1215,8 @@ class J extends X {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
omit(t) {
|
|
1217
1217
|
const s = {};
|
|
1218
|
-
return
|
|
1219
|
-
|
|
1218
|
+
return S.objectKeys(this.shape).map((r) => {
|
|
1219
|
+
S.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
|
|
1220
1220
|
}), new J({
|
|
1221
1221
|
...this._def,
|
|
1222
1222
|
shape: () => s
|
|
@@ -1228,8 +1228,8 @@ class J extends X {
|
|
|
1228
1228
|
partial(t) {
|
|
1229
1229
|
const s = {};
|
|
1230
1230
|
if (t)
|
|
1231
|
-
return
|
|
1232
|
-
|
|
1231
|
+
return S.objectKeys(this.shape).map((r) => {
|
|
1232
|
+
S.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
|
|
1233
1233
|
}), new J({
|
|
1234
1234
|
...this._def,
|
|
1235
1235
|
shape: () => s
|
|
@@ -1257,7 +1257,7 @@ class J extends X {
|
|
|
1257
1257
|
});
|
|
1258
1258
|
}
|
|
1259
1259
|
keyof() {
|
|
1260
|
-
return pr(
|
|
1260
|
+
return pr(S.objectKeys(this.shape));
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
J.create = (e, t) => new J({
|
|
@@ -1291,7 +1291,7 @@ class wt extends X {
|
|
|
1291
1291
|
for (const l of a)
|
|
1292
1292
|
if (l.result.status === "dirty")
|
|
1293
1293
|
return s.common.issues.push(...l.ctx.common.issues), l.result;
|
|
1294
|
-
const c = a.map((l) => new
|
|
1294
|
+
const c = a.map((l) => new qe(l.ctx.common.issues));
|
|
1295
1295
|
return Y(s, {
|
|
1296
1296
|
code: C.invalid_union,
|
|
1297
1297
|
unionErrors: c
|
|
@@ -1338,7 +1338,7 @@ class wt extends X {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
if (a)
|
|
1340
1340
|
return s.common.issues.push(...a.ctx.common.issues), a.result;
|
|
1341
|
-
const l = c.map((y) => new
|
|
1341
|
+
const l = c.map((y) => new qe(y));
|
|
1342
1342
|
return Y(s, {
|
|
1343
1343
|
code: C.invalid_union,
|
|
1344
1344
|
unionErrors: l
|
|
@@ -1420,7 +1420,7 @@ function Cs(e, t) {
|
|
|
1420
1420
|
if (e === t)
|
|
1421
1421
|
return { valid: !0, data: e };
|
|
1422
1422
|
if (s === x.object && r === x.object) {
|
|
1423
|
-
const n =
|
|
1423
|
+
const n = S.objectKeys(t), a = S.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
|
|
1424
1424
|
for (const l of a) {
|
|
1425
1425
|
const y = Cs(e[l], t[l]);
|
|
1426
1426
|
if (!y.valid)
|
|
@@ -1713,7 +1713,7 @@ class Le extends X {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
const a = { errorMap: s.common.contextualErrorMap }, c = s.data;
|
|
1715
1715
|
return this._def.returns instanceof ot ? oe(async (...l) => {
|
|
1716
|
-
const y = new
|
|
1716
|
+
const y = new qe([]), h = await this._def.args.parseAsync(l, a).catch((N) => {
|
|
1717
1717
|
throw y.addIssue(r(l, N)), y;
|
|
1718
1718
|
}), B = await c(...h);
|
|
1719
1719
|
return await this._def.returns._def.type.parseAsync(B, a).catch((N) => {
|
|
@@ -1722,10 +1722,10 @@ class Le extends X {
|
|
|
1722
1722
|
}) : oe((...l) => {
|
|
1723
1723
|
const y = this._def.args.safeParse(l, a);
|
|
1724
1724
|
if (!y.success)
|
|
1725
|
-
throw new
|
|
1725
|
+
throw new qe([r(l, y.error)]);
|
|
1726
1726
|
const h = c(...y.data), B = this._def.returns.safeParse(h, a);
|
|
1727
1727
|
if (!B.success)
|
|
1728
|
-
throw new
|
|
1728
|
+
throw new qe([n(h, B.error)]);
|
|
1729
1729
|
return B.data;
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
@@ -1806,7 +1806,7 @@ class Lt extends X {
|
|
|
1806
1806
|
if (typeof t.data != "string") {
|
|
1807
1807
|
const s = this._getOrReturnCtx(t), r = this._def.values;
|
|
1808
1808
|
return Y(s, {
|
|
1809
|
-
expected:
|
|
1809
|
+
expected: S.joinValues(r),
|
|
1810
1810
|
received: s.parsedType,
|
|
1811
1811
|
code: C.invalid_type
|
|
1812
1812
|
}), H;
|
|
@@ -1844,19 +1844,19 @@ class Lt extends X {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
1846
|
Lt.create = pr;
|
|
1847
|
-
class
|
|
1847
|
+
class St extends X {
|
|
1848
1848
|
_parse(t) {
|
|
1849
|
-
const s =
|
|
1849
|
+
const s = S.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
|
|
1850
1850
|
if (r.parsedType !== x.string && r.parsedType !== x.number) {
|
|
1851
|
-
const n =
|
|
1851
|
+
const n = S.objectValues(s);
|
|
1852
1852
|
return Y(r, {
|
|
1853
|
-
expected:
|
|
1853
|
+
expected: S.joinValues(n),
|
|
1854
1854
|
received: r.parsedType,
|
|
1855
1855
|
code: C.invalid_type
|
|
1856
1856
|
}), H;
|
|
1857
1857
|
}
|
|
1858
1858
|
if (s.indexOf(t.data) === -1) {
|
|
1859
|
-
const n =
|
|
1859
|
+
const n = S.objectValues(s);
|
|
1860
1860
|
return Y(r, {
|
|
1861
1861
|
received: r.data,
|
|
1862
1862
|
code: C.invalid_enum_value,
|
|
@@ -1869,7 +1869,7 @@ class Zt extends X {
|
|
|
1869
1869
|
return this._def.values;
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
|
-
|
|
1872
|
+
St.create = (e, t) => new St({
|
|
1873
1873
|
values: e,
|
|
1874
1874
|
typeName: I.ZodNativeEnum,
|
|
1875
1875
|
...Q(t)
|
|
@@ -1955,7 +1955,7 @@ class Ve extends X {
|
|
|
1955
1955
|
return { status: s.value, value: l };
|
|
1956
1956
|
} else
|
|
1957
1957
|
return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((c) => Ft(c) ? Promise.resolve(n.transform(c.value, a)).then((l) => ({ status: s.value, value: l })) : c);
|
|
1958
|
-
|
|
1958
|
+
S.assertNever(n);
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
Ve.create = (e, t, s) => new Ve({
|
|
@@ -2015,7 +2015,7 @@ Is.create = (e, t) => new Ee({
|
|
|
2015
2015
|
typeName: I.ZodOptional,
|
|
2016
2016
|
...Q(t)
|
|
2017
2017
|
});
|
|
2018
|
-
class
|
|
2018
|
+
class Zt extends X {
|
|
2019
2019
|
_parse(t) {
|
|
2020
2020
|
if (this._getType(t) !== x.nan) {
|
|
2021
2021
|
const r = this._getOrReturnCtx(t);
|
|
@@ -2028,7 +2028,7 @@ class St extends X {
|
|
|
2028
2028
|
return { status: "valid", value: t.data };
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
|
-
|
|
2031
|
+
Zt.create = (e) => new Zt({
|
|
2032
2032
|
typeName: I.ZodNaN,
|
|
2033
2033
|
...Q(e)
|
|
2034
2034
|
});
|
|
@@ -2046,7 +2046,7 @@ var I;
|
|
|
2046
2046
|
})(I || (I = {}));
|
|
2047
2047
|
const la = (e, t = {
|
|
2048
2048
|
message: `Input not instance of ${e.name}`
|
|
2049
|
-
}) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = Ue.create, ua =
|
|
2049
|
+
}) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = Ue.create, ua = Zt.create, Aa = qt.create, br = It.create, da = nt.create, ma = Ht.create, ga = Rt.create, pa = at.create, fa = Xe.create, ha = Te.create, ya = Xt.create, ba = Ge.create, va = J.create, Ba = J.strictCreate, wa = wt.create, Ma = Wt.create, Ca = Mt.create, Da = Pe.create, xa = Ct.create, ja = kt.create, Ea = We.create, Ya = Le.create, Ga = Tt.create, Pa = Nt.create, Va = Lt.create, Oa = St.create, Fa = ot.create, Js = Ve.create, qa = Ee.create, Ia = Ke.create, Ha = Ve.createWithPreprocess, Ra = () => hr().optional(), Xa = () => yr().optional(), Qa = () => br().optional();
|
|
2050
2050
|
var ft = /* @__PURE__ */ Object.freeze({
|
|
2051
2051
|
__proto__: null,
|
|
2052
2052
|
getParsedType: Re,
|
|
@@ -2091,14 +2091,14 @@ var ft = /* @__PURE__ */ Object.freeze({
|
|
|
2091
2091
|
ZodLazy: Tt,
|
|
2092
2092
|
ZodLiteral: Nt,
|
|
2093
2093
|
ZodEnum: Lt,
|
|
2094
|
-
ZodNativeEnum:
|
|
2094
|
+
ZodNativeEnum: St,
|
|
2095
2095
|
ZodPromise: ot,
|
|
2096
2096
|
ZodEffects: Ve,
|
|
2097
2097
|
ZodTransformer: Ve,
|
|
2098
2098
|
ZodOptional: Ee,
|
|
2099
2099
|
ZodNullable: Ke,
|
|
2100
2100
|
ZodDefault: Is,
|
|
2101
|
-
ZodNaN:
|
|
2101
|
+
ZodNaN: Zt,
|
|
2102
2102
|
custom: fr,
|
|
2103
2103
|
Schema: X,
|
|
2104
2104
|
ZodSchema: X,
|
|
@@ -2145,7 +2145,7 @@ var ft = /* @__PURE__ */ Object.freeze({
|
|
|
2145
2145
|
void: ya,
|
|
2146
2146
|
ZodIssueCode: C,
|
|
2147
2147
|
quotelessJson: ea,
|
|
2148
|
-
ZodError:
|
|
2148
|
+
ZodError: qe,
|
|
2149
2149
|
defaultErrorMap: Bt,
|
|
2150
2150
|
setErrorMap: ta,
|
|
2151
2151
|
getErrorMap: Vt
|
|
@@ -2222,17 +2222,17 @@ function Na(e, t, s) {
|
|
|
2222
2222
|
const r = s.fields.find((n) => n.key === e);
|
|
2223
2223
|
return (r == null ? void 0 : r.kind) === "number" ? typeof t == "number" : (r == null ? void 0 : r.kind) === "switch" ? typeof t == "boolean" : typeof t == "number" || typeof t == "string" || typeof t == "boolean";
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function Sa(e) {
|
|
2226
2226
|
return "fields" in e;
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function Za(e, t) {
|
|
2229
2229
|
const s = e.visibleWhen;
|
|
2230
2230
|
if (!s) return !0;
|
|
2231
2231
|
const r = t[s.field];
|
|
2232
2232
|
return "eq" in s ? r === s.eq : s.in ? s.in.includes(r) : !0;
|
|
2233
2233
|
}
|
|
2234
2234
|
function za(e, t) {
|
|
2235
|
-
return e.fields.filter((s) =>
|
|
2235
|
+
return e.fields.filter((s) => Za(s, t));
|
|
2236
2236
|
}
|
|
2237
2237
|
function El(e, t) {
|
|
2238
2238
|
const s = { ...t };
|
|
@@ -2241,7 +2241,7 @@ function El(e, t) {
|
|
|
2241
2241
|
return s;
|
|
2242
2242
|
}
|
|
2243
2243
|
function Ua(e) {
|
|
2244
|
-
if (
|
|
2244
|
+
if (Sa(e.form)) {
|
|
2245
2245
|
const s = new Set(e.form.fields.map((r) => r.key));
|
|
2246
2246
|
for (const r of e.form.fields)
|
|
2247
2247
|
if (r.visibleWhen && !s.has(r.visibleWhen.field))
|
|
@@ -3272,6 +3272,7 @@ const wr = {
|
|
|
3272
3272
|
"order:discount": "Discount",
|
|
3273
3273
|
"order:changePrice": "Change Price",
|
|
3274
3274
|
"order:void": "Void",
|
|
3275
|
+
"order:waiveServiceCharge": "Waive Service Charge",
|
|
3275
3276
|
"order:payment": "Payment",
|
|
3276
3277
|
"order:claimDeposit": "Claim Deposit",
|
|
3277
3278
|
"order:resend": "Resend",
|
|
@@ -3479,6 +3480,7 @@ const wr = {
|
|
|
3479
3480
|
"order:discount": "ใช้ส่วนลด",
|
|
3480
3481
|
"order:changePrice": "เปลี่ยนราคา",
|
|
3481
3482
|
"order:void": "ยกเลิกออเดอร์",
|
|
3483
|
+
"order:waiveServiceCharge": "ยกเว้นค่าบริการ",
|
|
3482
3484
|
"order:payment": "ชำระเงิน",
|
|
3483
3485
|
"order:claimDeposit": "ขอคืนมัดจำ",
|
|
3484
3486
|
"order:resend": "ส่งออเดอร์ซ้ำ",
|
|
@@ -3685,6 +3687,7 @@ const wr = {
|
|
|
3685
3687
|
"order:discount": "折扣",
|
|
3686
3688
|
"order:changePrice": "修改价格",
|
|
3687
3689
|
"order:void": "作废",
|
|
3690
|
+
"order:waiveServiceCharge": "免除服务费",
|
|
3688
3691
|
"order:payment": "付款",
|
|
3689
3692
|
"order:claimDeposit": "领取押金",
|
|
3690
3693
|
"order:resend": "重新发送",
|
|
@@ -3892,6 +3895,7 @@ const wr = {
|
|
|
3892
3895
|
"order:discount": "折扣",
|
|
3893
3896
|
"order:changePrice": "修改價格",
|
|
3894
3897
|
"order:void": "作廢",
|
|
3898
|
+
"order:waiveServiceCharge": "免除服務費",
|
|
3895
3899
|
"order:payment": "付款",
|
|
3896
3900
|
"order:claimDeposit": "領取押金",
|
|
3897
3901
|
"order:resend": "重新發送",
|
|
@@ -4234,7 +4238,7 @@ const wr = {
|
|
|
4234
4238
|
}, No = {
|
|
4235
4239
|
team: Rr,
|
|
4236
4240
|
permissionSet: Xr
|
|
4237
|
-
},
|
|
4241
|
+
}, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4238
4242
|
__proto__: null,
|
|
4239
4243
|
default: No,
|
|
4240
4244
|
permissionSet: Xr,
|
|
@@ -4486,12 +4490,12 @@ const wr = {
|
|
|
4486
4490
|
permissions: "สิทธิ์"
|
|
4487
4491
|
}
|
|
4488
4492
|
}
|
|
4489
|
-
},
|
|
4493
|
+
}, Zo = {
|
|
4490
4494
|
team: Qr,
|
|
4491
4495
|
permissionSet: kr
|
|
4492
4496
|
}, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4493
4497
|
__proto__: null,
|
|
4494
|
-
default:
|
|
4498
|
+
default: Zo,
|
|
4495
4499
|
permissionSet: kr,
|
|
4496
4500
|
team: Qr
|
|
4497
4501
|
}, Symbol.toStringTag, { value: "Module" })), Tr = {
|
|
@@ -4749,7 +4753,7 @@ const wr = {
|
|
|
4749
4753
|
default: Uo,
|
|
4750
4754
|
permissionSet: Nr,
|
|
4751
4755
|
team: Tr
|
|
4752
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4756
|
+
}, Symbol.toStringTag, { value: "Module" })), Sr = {
|
|
4753
4757
|
title: "團隊成員",
|
|
4754
4758
|
subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
|
|
4755
4759
|
actions: {
|
|
@@ -4875,7 +4879,7 @@ const wr = {
|
|
|
4875
4879
|
placeholder: "搜索角色"
|
|
4876
4880
|
}
|
|
4877
4881
|
}
|
|
4878
|
-
},
|
|
4882
|
+
}, Zr = {
|
|
4879
4883
|
title: "角色",
|
|
4880
4884
|
createButtonLabel: "創建角色",
|
|
4881
4885
|
search: {
|
|
@@ -5004,15 +5008,15 @@ const wr = {
|
|
|
5004
5008
|
}
|
|
5005
5009
|
}
|
|
5006
5010
|
}, Lo = {
|
|
5007
|
-
team:
|
|
5008
|
-
permissionSet:
|
|
5011
|
+
team: Sr,
|
|
5012
|
+
permissionSet: Zr
|
|
5009
5013
|
}, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5010
5014
|
__proto__: null,
|
|
5011
5015
|
default: Lo,
|
|
5012
|
-
permissionSet:
|
|
5013
|
-
team:
|
|
5016
|
+
permissionSet: Zr,
|
|
5017
|
+
team: Sr
|
|
5014
5018
|
}, Symbol.toStringTag, { value: "Module" })), Jo = {
|
|
5015
|
-
"en-US":
|
|
5019
|
+
"en-US": So,
|
|
5016
5020
|
"zh-CN": Wo,
|
|
5017
5021
|
"th-TH": zo,
|
|
5018
5022
|
"zh-Hant": Ko
|
|
@@ -6358,18 +6362,18 @@ const wr = {
|
|
|
6358
6362
|
showByFeatureFlag: "hrm_enable_media_permission"
|
|
6359
6363
|
}
|
|
6360
6364
|
};
|
|
6361
|
-
var
|
|
6365
|
+
var Z = /* @__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))(Z || {});
|
|
6362
6366
|
const L = [
|
|
6363
6367
|
{
|
|
6364
6368
|
label: "CRM",
|
|
6365
|
-
subject:
|
|
6369
|
+
subject: Z.crm,
|
|
6366
6370
|
actions: [o.read]
|
|
6367
6371
|
}
|
|
6368
6372
|
], Ae = (...e) => e.flat(), Di = [
|
|
6369
6373
|
...L,
|
|
6370
6374
|
{
|
|
6371
6375
|
label: "User",
|
|
6372
|
-
subject:
|
|
6376
|
+
subject: Z.crm_user,
|
|
6373
6377
|
actions: [
|
|
6374
6378
|
o.read,
|
|
6375
6379
|
o.create,
|
|
@@ -6381,7 +6385,7 @@ const L = [
|
|
|
6381
6385
|
...L,
|
|
6382
6386
|
{
|
|
6383
6387
|
label: "Segmentation",
|
|
6384
|
-
subject:
|
|
6388
|
+
subject: Z.crm_segmentation,
|
|
6385
6389
|
actions: [
|
|
6386
6390
|
o.read,
|
|
6387
6391
|
o.create,
|
|
@@ -6393,7 +6397,7 @@ const L = [
|
|
|
6393
6397
|
...L,
|
|
6394
6398
|
{
|
|
6395
6399
|
label: "Transaction",
|
|
6396
|
-
subject:
|
|
6400
|
+
subject: Z.crm_transaction,
|
|
6397
6401
|
actions: [
|
|
6398
6402
|
o.read,
|
|
6399
6403
|
o.create,
|
|
@@ -6405,7 +6409,7 @@ const L = [
|
|
|
6405
6409
|
...L,
|
|
6406
6410
|
{
|
|
6407
6411
|
label: "Store",
|
|
6408
|
-
subject:
|
|
6412
|
+
subject: Z.crm_store,
|
|
6409
6413
|
actions: [
|
|
6410
6414
|
o.read,
|
|
6411
6415
|
o.create,
|
|
@@ -6417,7 +6421,7 @@ const L = [
|
|
|
6417
6421
|
...L,
|
|
6418
6422
|
{
|
|
6419
6423
|
label: "Location",
|
|
6420
|
-
subject:
|
|
6424
|
+
subject: Z.crm_location,
|
|
6421
6425
|
actions: [
|
|
6422
6426
|
o.read,
|
|
6423
6427
|
o.create,
|
|
@@ -6429,7 +6433,7 @@ const L = [
|
|
|
6429
6433
|
...L,
|
|
6430
6434
|
{
|
|
6431
6435
|
label: "Effect",
|
|
6432
|
-
subject:
|
|
6436
|
+
subject: Z.crm_effect,
|
|
6433
6437
|
actions: [
|
|
6434
6438
|
o.read,
|
|
6435
6439
|
o.create,
|
|
@@ -6441,14 +6445,14 @@ const L = [
|
|
|
6441
6445
|
...L,
|
|
6442
6446
|
{
|
|
6443
6447
|
label: "Setting",
|
|
6444
|
-
subject:
|
|
6448
|
+
subject: Z.crm_setting,
|
|
6445
6449
|
actions: [o.read, o.update]
|
|
6446
6450
|
}
|
|
6447
6451
|
], Gi = [
|
|
6448
6452
|
...L,
|
|
6449
6453
|
{
|
|
6450
6454
|
label: "Reward",
|
|
6451
|
-
subject:
|
|
6455
|
+
subject: Z.crm_reward,
|
|
6452
6456
|
actions: [
|
|
6453
6457
|
o.read,
|
|
6454
6458
|
o.create,
|
|
@@ -6460,7 +6464,7 @@ const L = [
|
|
|
6460
6464
|
...L,
|
|
6461
6465
|
{
|
|
6462
6466
|
label: "Campaign",
|
|
6463
|
-
subject:
|
|
6467
|
+
subject: Z.crm_campaign,
|
|
6464
6468
|
actions: [
|
|
6465
6469
|
o.read,
|
|
6466
6470
|
o.create,
|
|
@@ -6472,7 +6476,7 @@ const L = [
|
|
|
6472
6476
|
...L,
|
|
6473
6477
|
{
|
|
6474
6478
|
label: "Referral",
|
|
6475
|
-
subject:
|
|
6479
|
+
subject: Z.crm_referral,
|
|
6476
6480
|
actions: [
|
|
6477
6481
|
o.read,
|
|
6478
6482
|
o.create,
|
|
@@ -6484,7 +6488,7 @@ const L = [
|
|
|
6484
6488
|
...L,
|
|
6485
6489
|
{
|
|
6486
6490
|
label: "Marketing Material",
|
|
6487
|
-
subject:
|
|
6491
|
+
subject: Z.crm_marketingMaterial,
|
|
6488
6492
|
actions: [
|
|
6489
6493
|
o.read,
|
|
6490
6494
|
o.create,
|
|
@@ -6496,14 +6500,14 @@ const L = [
|
|
|
6496
6500
|
...L,
|
|
6497
6501
|
{
|
|
6498
6502
|
label: "Analytic",
|
|
6499
|
-
subject:
|
|
6503
|
+
subject: Z.crm_analytic,
|
|
6500
6504
|
actions: [o.read]
|
|
6501
6505
|
}
|
|
6502
6506
|
], Pi = [
|
|
6503
6507
|
...L,
|
|
6504
6508
|
{
|
|
6505
6509
|
label: "Tier",
|
|
6506
|
-
subject:
|
|
6510
|
+
subject: Z.crm_tier,
|
|
6507
6511
|
actions: [
|
|
6508
6512
|
o.read,
|
|
6509
6513
|
o.create,
|
|
@@ -6515,7 +6519,7 @@ const L = [
|
|
|
6515
6519
|
...L,
|
|
6516
6520
|
{
|
|
6517
6521
|
label: "Title",
|
|
6518
|
-
subject:
|
|
6522
|
+
subject: Z.crm_title,
|
|
6519
6523
|
actions: [
|
|
6520
6524
|
o.read,
|
|
6521
6525
|
o.create,
|
|
@@ -6527,7 +6531,7 @@ const L = [
|
|
|
6527
6531
|
...L,
|
|
6528
6532
|
{
|
|
6529
6533
|
label: "Broadcast",
|
|
6530
|
-
subject:
|
|
6534
|
+
subject: Z.crm_broadcast,
|
|
6531
6535
|
actions: [
|
|
6532
6536
|
o.read,
|
|
6533
6537
|
o.create,
|
|
@@ -6539,7 +6543,7 @@ const L = [
|
|
|
6539
6543
|
...L,
|
|
6540
6544
|
{
|
|
6541
6545
|
label: "Point",
|
|
6542
|
-
subject:
|
|
6546
|
+
subject: Z.crm_point,
|
|
6543
6547
|
actions: [
|
|
6544
6548
|
o.read,
|
|
6545
6549
|
o.create,
|
|
@@ -6551,7 +6555,7 @@ const L = [
|
|
|
6551
6555
|
...L,
|
|
6552
6556
|
{
|
|
6553
6557
|
label: "Credit",
|
|
6554
|
-
subject:
|
|
6558
|
+
subject: Z.crm_credit,
|
|
6555
6559
|
actions: [
|
|
6556
6560
|
o.read,
|
|
6557
6561
|
o.create,
|
|
@@ -6563,7 +6567,7 @@ const L = [
|
|
|
6563
6567
|
...L,
|
|
6564
6568
|
{
|
|
6565
6569
|
label: "Experience",
|
|
6566
|
-
subject:
|
|
6570
|
+
subject: Z.crm_experience,
|
|
6567
6571
|
actions: [
|
|
6568
6572
|
o.read,
|
|
6569
6573
|
o.create,
|
|
@@ -6575,7 +6579,7 @@ const L = [
|
|
|
6575
6579
|
...L,
|
|
6576
6580
|
{
|
|
6577
6581
|
label: "Game",
|
|
6578
|
-
subject:
|
|
6582
|
+
subject: Z.crm_game,
|
|
6579
6583
|
actions: [
|
|
6580
6584
|
o.read,
|
|
6581
6585
|
o.create,
|
|
@@ -6587,7 +6591,7 @@ const L = [
|
|
|
6587
6591
|
...L,
|
|
6588
6592
|
{
|
|
6589
6593
|
label: "Mission",
|
|
6590
|
-
subject:
|
|
6594
|
+
subject: Z.crm_mission,
|
|
6591
6595
|
actions: [
|
|
6592
6596
|
o.read,
|
|
6593
6597
|
o.create,
|
|
@@ -6599,7 +6603,7 @@ const L = [
|
|
|
6599
6603
|
...L,
|
|
6600
6604
|
{
|
|
6601
6605
|
label: "Loyalty Member",
|
|
6602
|
-
subject:
|
|
6606
|
+
subject: Z.crm_loyaltyMember,
|
|
6603
6607
|
actions: [
|
|
6604
6608
|
o.read,
|
|
6605
6609
|
o.create,
|
|
@@ -6611,7 +6615,7 @@ const L = [
|
|
|
6611
6615
|
...L,
|
|
6612
6616
|
{
|
|
6613
6617
|
label: "Loyalty Segment",
|
|
6614
|
-
subject:
|
|
6618
|
+
subject: Z.crm_loyaltySegment,
|
|
6615
6619
|
actions: [
|
|
6616
6620
|
o.read,
|
|
6617
6621
|
o.create,
|
|
@@ -6623,7 +6627,7 @@ const L = [
|
|
|
6623
6627
|
...L,
|
|
6624
6628
|
{
|
|
6625
6629
|
label: "Loyalty Card",
|
|
6626
|
-
subject:
|
|
6630
|
+
subject: Z.crm_loyaltyCard,
|
|
6627
6631
|
actions: [
|
|
6628
6632
|
o.read,
|
|
6629
6633
|
o.create,
|
|
@@ -6635,7 +6639,7 @@ const L = [
|
|
|
6635
6639
|
...L,
|
|
6636
6640
|
{
|
|
6637
6641
|
label: "Bin",
|
|
6638
|
-
subject:
|
|
6642
|
+
subject: Z.crm_bin,
|
|
6639
6643
|
actions: [o.read, o.update, o.delete]
|
|
6640
6644
|
}
|
|
6641
6645
|
], pn = Ae(
|
|
@@ -6672,7 +6676,7 @@ const L = [
|
|
|
6672
6676
|
...L,
|
|
6673
6677
|
{
|
|
6674
6678
|
label: "Voucher",
|
|
6675
|
-
subject:
|
|
6679
|
+
subject: Z.crm_voucher,
|
|
6676
6680
|
actions: [
|
|
6677
6681
|
o.read,
|
|
6678
6682
|
o.create,
|
|
@@ -6684,7 +6688,7 @@ const L = [
|
|
|
6684
6688
|
...L,
|
|
6685
6689
|
{
|
|
6686
6690
|
label: "Membership",
|
|
6687
|
-
subject:
|
|
6691
|
+
subject: Z.crm_membership,
|
|
6688
6692
|
actions: [
|
|
6689
6693
|
o.read,
|
|
6690
6694
|
o.create,
|
|
@@ -6718,10 +6722,10 @@ const L = [
|
|
|
6718
6722
|
ye,
|
|
6719
6723
|
cn,
|
|
6720
6724
|
ln
|
|
6721
|
-
),
|
|
6725
|
+
), Si = Ae(
|
|
6722
6726
|
ye,
|
|
6723
6727
|
Qi
|
|
6724
|
-
),
|
|
6728
|
+
), Zi = Ae(ki), zi = {
|
|
6725
6729
|
[`set_${d.crm}`]: {
|
|
6726
6730
|
key: "sys:crm:access",
|
|
6727
6731
|
name: "CRM Access",
|
|
@@ -6735,12 +6739,12 @@ const L = [
|
|
|
6735
6739
|
[`set_${d.crm_voucher}`]: {
|
|
6736
6740
|
key: "sys:crm:voucher",
|
|
6737
6741
|
name: "CRM Voucher",
|
|
6738
|
-
permissions:
|
|
6742
|
+
permissions: Si
|
|
6739
6743
|
},
|
|
6740
6744
|
[`set_${d.crm_membership}`]: {
|
|
6741
6745
|
key: "sys:crm:membership",
|
|
6742
6746
|
name: "CRM Membership",
|
|
6743
|
-
permissions:
|
|
6747
|
+
permissions: Zi
|
|
6744
6748
|
},
|
|
6745
6749
|
[`set_${d.crm_analytic}`]: {
|
|
6746
6750
|
key: "sys:crm:analytic",
|
|
@@ -7277,7 +7281,7 @@ const nc = {
|
|
|
7277
7281
|
permissions: rc
|
|
7278
7282
|
}
|
|
7279
7283
|
};
|
|
7280
|
-
var
|
|
7284
|
+
var Fe = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(Fe || {});
|
|
7281
7285
|
const ac = {
|
|
7282
7286
|
/**
|
|
7283
7287
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
@@ -7290,7 +7294,7 @@ const ac = {
|
|
|
7290
7294
|
permissions: [
|
|
7291
7295
|
{
|
|
7292
7296
|
label: "Portal Users",
|
|
7293
|
-
subject:
|
|
7297
|
+
subject: Fe.hrm_portalUsers,
|
|
7294
7298
|
actions: [o.manage]
|
|
7295
7299
|
},
|
|
7296
7300
|
{
|
|
@@ -7300,12 +7304,12 @@ const ac = {
|
|
|
7300
7304
|
},
|
|
7301
7305
|
{
|
|
7302
7306
|
label: "Pos Role",
|
|
7303
|
-
subject:
|
|
7307
|
+
subject: Fe.hrm_posRole,
|
|
7304
7308
|
actions: [o.read]
|
|
7305
7309
|
},
|
|
7306
7310
|
{
|
|
7307
7311
|
label: "Restaurant resource",
|
|
7308
|
-
subject:
|
|
7312
|
+
subject: Fe.hrm_restaurant,
|
|
7309
7313
|
actions: [o.read]
|
|
7310
7314
|
}
|
|
7311
7315
|
]
|
|
@@ -7320,17 +7324,17 @@ const ac = {
|
|
|
7320
7324
|
permissions: [
|
|
7321
7325
|
{
|
|
7322
7326
|
label: "Portal Users",
|
|
7323
|
-
subject:
|
|
7327
|
+
subject: Fe.hrm_portalUsers,
|
|
7324
7328
|
actions: [o.read]
|
|
7325
7329
|
},
|
|
7326
7330
|
{
|
|
7327
7331
|
label: "Restaurant resource",
|
|
7328
|
-
subject:
|
|
7332
|
+
subject: Fe.hrm_restaurant,
|
|
7329
7333
|
actions: [o.read]
|
|
7330
7334
|
},
|
|
7331
7335
|
{
|
|
7332
7336
|
label: "Pos Role",
|
|
7333
|
-
subject:
|
|
7337
|
+
subject: Fe.hrm_posRole,
|
|
7334
7338
|
actions: [o.manage]
|
|
7335
7339
|
}
|
|
7336
7340
|
]
|
|
@@ -7347,7 +7351,22 @@ const ac = {
|
|
|
7347
7351
|
permissions: [
|
|
7348
7352
|
{
|
|
7349
7353
|
label: "Portal Users",
|
|
7350
|
-
subject:
|
|
7354
|
+
subject: Fe.hrm_portalUsers,
|
|
7355
|
+
actions: [o.read]
|
|
7356
|
+
}
|
|
7357
|
+
]
|
|
7358
|
+
},
|
|
7359
|
+
/**
|
|
7360
|
+
* Triggered by: hrm_approvalCode:manage (portal toggle)
|
|
7361
|
+
* Injects: restaurant read — approval code management needs the restaurant list.
|
|
7362
|
+
*/
|
|
7363
|
+
[`set_${d.hrm_approvalCode}`]: {
|
|
7364
|
+
key: "sys:approval_code_access",
|
|
7365
|
+
name: "Approval Code Access",
|
|
7366
|
+
permissions: [
|
|
7367
|
+
{
|
|
7368
|
+
label: "Restaurant resource",
|
|
7369
|
+
subject: Fe.hrm_restaurant,
|
|
7351
7370
|
actions: [o.read]
|
|
7352
7371
|
}
|
|
7353
7372
|
]
|
|
@@ -8218,13 +8237,13 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
8218
8237
|
}, Nc = {
|
|
8219
8238
|
title: "存取被拒絕",
|
|
8220
8239
|
subtitle: "哎呀!您沒有權限存取此頁面。"
|
|
8221
|
-
}, Zc = {
|
|
8222
|
-
noPermission: Nc
|
|
8223
8240
|
}, Sc = {
|
|
8241
|
+
noPermission: Nc
|
|
8242
|
+
}, Zc = {
|
|
8224
8243
|
title: "การเข้าถึงถูกปฏิเสธ",
|
|
8225
8244
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
8226
8245
|
}, zc = {
|
|
8227
|
-
noPermission:
|
|
8246
|
+
noPermission: Zc
|
|
8228
8247
|
}, Uc = { class: "w-full h-full flex justify-center items-center" }, Wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Lc = { class: "w-[300px] h-[300px]" }, Kc = ["src"], Jc = { class: "text-2xl" }, _c = { class: "text-xl" }, $c = /* @__PURE__ */ it({
|
|
8229
8248
|
__name: "NoPermission",
|
|
8230
8249
|
setup(e) {
|
|
@@ -8232,21 +8251,21 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
8232
8251
|
messages: {
|
|
8233
8252
|
"en-US": Qc,
|
|
8234
8253
|
"zh-CN": Tc,
|
|
8235
|
-
"zh-Hant":
|
|
8254
|
+
"zh-Hant": Sc,
|
|
8236
8255
|
"th-TH": zc
|
|
8237
8256
|
}
|
|
8238
8257
|
});
|
|
8239
8258
|
return (s, r) => (ct(), lr("div", Uc, [
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8259
|
+
Ze("div", Wc, [
|
|
8260
|
+
Ze("div", Lc, [
|
|
8261
|
+
Ze("img", {
|
|
8243
8262
|
src: ze(Rc),
|
|
8244
8263
|
class: "w-full h-full"
|
|
8245
8264
|
}, null, 8, Kc)
|
|
8246
8265
|
]),
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8266
|
+
Ze("div", null, [
|
|
8267
|
+
Ze("h1", Jc, Ws(ze(t)("noPermission.title")), 1),
|
|
8268
|
+
Ze("h2", _c, Ws(ze(t)("noPermission.subtitle")), 1)
|
|
8250
8269
|
])
|
|
8251
8270
|
])
|
|
8252
8271
|
]));
|
|
@@ -8281,10 +8300,10 @@ function tl(e, t) {
|
|
|
8281
8300
|
}
|
|
8282
8301
|
let n = null;
|
|
8283
8302
|
return Nn(e, async (a) => {
|
|
8284
|
-
a && (await
|
|
8303
|
+
a && (await Sn(), r());
|
|
8285
8304
|
}), ur(() => {
|
|
8286
8305
|
window.addEventListener("resize", r), n = new ResizeObserver(r), n.observe(document.body);
|
|
8287
|
-
}),
|
|
8306
|
+
}), Zn(() => {
|
|
8288
8307
|
window.removeEventListener("resize", r), n == null || n.disconnect(), n = null;
|
|
8289
8308
|
}), s;
|
|
8290
8309
|
}
|
|
@@ -8313,7 +8332,7 @@ const sl = /* @__PURE__ */ it({
|
|
|
8313
8332
|
const r = Fs("FmCircularProgress");
|
|
8314
8333
|
return ct(), Ut(sl, null, {
|
|
8315
8334
|
default: Un(() => [
|
|
8316
|
-
|
|
8335
|
+
Ze("div", rl, [
|
|
8317
8336
|
Wn(r, { size: "xl" })
|
|
8318
8337
|
])
|
|
8319
8338
|
]),
|
|
@@ -8335,10 +8354,10 @@ const Et = (e) => ({
|
|
|
8335
8354
|
}
|
|
8336
8355
|
]
|
|
8337
8356
|
}
|
|
8338
|
-
}), al = Kt(we(() => import("./Main-
|
|
8339
|
-
we(() => import("./AuditLogList-
|
|
8340
|
-
), cl = Kt(we(() => import("./Main-
|
|
8341
|
-
() => import("./PermissionSetList-
|
|
8357
|
+
}), al = Kt(we(() => import("./Main-B5YknOhi.js"))), ol = Kt(we(() => import("./Main-BnWK_GkW.js"))), il = Kt(
|
|
8358
|
+
we(() => import("./AuditLogList-CfDEZ6Z-.js"))
|
|
8359
|
+
), cl = Kt(we(() => import("./Main-DQXiP6Io.js"))), ll = we(() => import("./ApprovalCodeList-Cwy-Rn90.js")), ul = we(() => import("./GrantUserList-UgQBjh54.js")), Al = we(() => import("./EmployeeList-DJrCBYvi.js")), dl = we(() => import("./RoleList-CHnu2j25.js")), ml = we(() => import("./TimesheetList-D5G1dJfp.js")), gl = we(() => import("./TeamMemberList-DprMQ_8g.js")), pl = we(
|
|
8360
|
+
() => import("./PermissionSetList-CfPZPmfV.js")
|
|
8342
8361
|
), Fl = [
|
|
8343
8362
|
{
|
|
8344
8363
|
path: "/",
|
|
@@ -8828,7 +8847,7 @@ var Vs = { exports: {} };
|
|
|
8828
8847
|
return f.prototype.init = function(u) {
|
|
8829
8848
|
var i, g, A;
|
|
8830
8849
|
return a(this, void 0, void 0, function() {
|
|
8831
|
-
var b, M, P, F, k, j, U, ce, Me, ge, ve, pe, fe, Ce, dt, mt, Je, le, W, _t, gt, Qs, _e, $t, ks, Ts, es, Ns, ts, pt, $e,
|
|
8850
|
+
var b, M, P, F, k, j, U, ce, Me, ge, ve, pe, fe, Ce, dt, mt, Je, le, W, _t, gt, Qs, _e, $t, ks, Ts, es, Ns, ts, pt, $e, Ss, ue = this;
|
|
8832
8851
|
return c(this, function(Be) {
|
|
8833
8852
|
switch (Be.label) {
|
|
8834
8853
|
case 0:
|
|
@@ -8841,19 +8860,19 @@ var Vs = { exports: {} };
|
|
|
8841
8860
|
ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), Me == null || Me(he);
|
|
8842
8861
|
}, this.enableLogs = fe || !1, this.cacheOptions = _e ? { skipAPI: !!_e.skipAPI, ttl: _e.ttl || 0, storageKey: _e.storageKey, loadStale: !!_e.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ve && (O = ve), this.enableAnalytics = dt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!U, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), mt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: B.DEFAULT_FLAGS })), this.setState(Qs), this.log("Initialising with properties", u, this), Ce && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), $t && (O = /* @__PURE__ */ function(he) {
|
|
8843
8862
|
return function(De, xe) {
|
|
8844
|
-
var
|
|
8845
|
-
return new Promise(function(
|
|
8863
|
+
var Ie = xe.headers, K = xe.method, et = xe.body;
|
|
8864
|
+
return new Promise(function(Se) {
|
|
8846
8865
|
switch (K) {
|
|
8847
8866
|
case "GET":
|
|
8848
|
-
return he.get(De, { headers:
|
|
8849
|
-
|
|
8867
|
+
return he.get(De, { headers: Ie }).subscribe(function(Oe) {
|
|
8868
|
+
Se({ ok: !0, text: function() {
|
|
8850
8869
|
return Promise.resolve(Oe);
|
|
8851
8870
|
} });
|
|
8852
8871
|
});
|
|
8853
8872
|
case "POST":
|
|
8854
8873
|
case "PUT":
|
|
8855
|
-
return he.post(De, et, { headers:
|
|
8856
|
-
|
|
8874
|
+
return he.post(De, et, { headers: Ie }).subscribe(function(Oe) {
|
|
8875
|
+
Se({ ok: !0, text: function() {
|
|
8857
8876
|
return Promise.resolve(Oe);
|
|
8858
8877
|
} });
|
|
8859
8878
|
});
|
|
@@ -8871,46 +8890,46 @@ var Vs = { exports: {} };
|
|
|
8871
8890
|
if (De && ue.evaluationContext.environment) {
|
|
8872
8891
|
var xe = JSON.parse(De);
|
|
8873
8892
|
if (xe[ue.evaluationContext.environment.apiKey]) {
|
|
8874
|
-
var
|
|
8875
|
-
ue.log("Retrieved events from cache", De), ue.setState(n(n({},
|
|
8893
|
+
var Ie = ue.getState();
|
|
8894
|
+
ue.log("Retrieved events from cache", De), ue.setState(n(n({}, Ie), { evaluationEvent: xe[ue.evaluationContext.environment.apiKey] }));
|
|
8876
8895
|
}
|
|
8877
8896
|
}
|
|
8878
8897
|
})), !U) return [3, 9];
|
|
8879
8898
|
if (!ne || !this.canUseStorage) return [3, 8];
|
|
8880
8899
|
Ns = function(he, De) {
|
|
8881
8900
|
return a(ue, void 0, void 0, function() {
|
|
8882
|
-
var xe,
|
|
8883
|
-
return c(this, function(
|
|
8884
|
-
switch (
|
|
8901
|
+
var xe, Ie, K, et, Se, Oe, ss, Zs, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, zs = this;
|
|
8902
|
+
return c(this, function(He) {
|
|
8903
|
+
switch (He.label) {
|
|
8885
8904
|
case 0:
|
|
8886
8905
|
if (!De) return [3, 7];
|
|
8887
|
-
xe = null,
|
|
8906
|
+
xe = null, Ie = null, He.label = 1;
|
|
8888
8907
|
case 1:
|
|
8889
|
-
return
|
|
8908
|
+
return He.trys.push([1, 5, , 6]), K = JSON.parse(De), et = !1, Se = !1, K && K.api === this.api && ((ns = (rs = K.evaluationContext) === null || rs === void 0 ? void 0 : rs.environment) === null || ns === void 0 ? void 0 : ns.apiKey) === ((as = this.evaluationContext.environment) === null || as === void 0 ? void 0 : as.apiKey) && (Oe = !0, this.evaluationContext.identity && ((is = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ls = (cs = K.evaluationContext) === null || cs === void 0 ? void 0 : cs.identity) === null || ls === void 0 ? void 0 : ls.identifier) + " to " + this.evaluationContext.identity.identifier), Oe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Oe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Se = !0, Oe = !0)), Oe && (et = !0, Ie = h((us = this.evaluationContext.identity) === null || us === void 0 ? void 0 : us.traits, (ds = (As = K.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || ds === void 0 ? void 0 : ds.traits), xe = h(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity), { traits: n(n({}, ((fs = (ps = K.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), et ? (ss = !pe && (!this.cacheOptions.skipAPI || Se), this._onChange(null, { isFromServer: !1, flagsChanged: xe, traitsChanged: Ie }, this._loadedState(null, B.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && et && !Se && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
|
|
8890
8909
|
var bs;
|
|
8891
8910
|
(bs = zs.onError) === null || bs === void 0 || bs.call(zs, Hn);
|
|
8892
8911
|
}), [3, 4]) : [3, 2];
|
|
8893
8912
|
case 2:
|
|
8894
8913
|
return pe ? [3, 4] : [4, this.getFlags()];
|
|
8895
8914
|
case 3:
|
|
8896
|
-
|
|
8915
|
+
He.sent(), He.label = 4;
|
|
8897
8916
|
case 4:
|
|
8898
8917
|
return [3, 6];
|
|
8899
8918
|
case 5:
|
|
8900
|
-
return
|
|
8919
|
+
return Zs = He.sent(), this.log("Exception fetching cached logs", Zs), [3, 6];
|
|
8901
8920
|
case 6:
|
|
8902
8921
|
return [3, 10];
|
|
8903
8922
|
case 7:
|
|
8904
8923
|
return pe ? [3, 9] : [4, this.getFlags()];
|
|
8905
8924
|
case 8:
|
|
8906
|
-
return
|
|
8925
|
+
return He.sent(), [3, 10];
|
|
8907
8926
|
case 9:
|
|
8908
8927
|
if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
|
|
8909
8928
|
else {
|
|
8910
8929
|
if (!this.flags) throw new Error(es);
|
|
8911
8930
|
this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ys = this.evaluationContext.identity) === null || ys === void 0 ? void 0 : ys.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
|
|
8912
8931
|
}
|
|
8913
|
-
|
|
8932
|
+
He.label = 10;
|
|
8914
8933
|
case 10:
|
|
8915
8934
|
return [2];
|
|
8916
8935
|
}
|
|
@@ -8941,7 +8960,7 @@ var Vs = { exports: {} };
|
|
|
8941
8960
|
case 12:
|
|
8942
8961
|
return [3, 14];
|
|
8943
8962
|
case 13:
|
|
8944
|
-
throw $e = Be.sent(), this.log("Error during initialisation ", $e),
|
|
8963
|
+
throw $e = Be.sent(), this.log("Error during initialisation ", $e), Ss = $e instanceof Error ? $e : new Error("".concat($e)), (A = this.onError) === null || A === void 0 || A.call(this, Ss), $e;
|
|
8945
8964
|
case 14:
|
|
8946
8965
|
return [2];
|
|
8947
8966
|
}
|
|
@@ -9364,7 +9383,7 @@ export {
|
|
|
9364
9383
|
ic as P,
|
|
9365
9384
|
te as R,
|
|
9366
9385
|
Gl as S,
|
|
9367
|
-
|
|
9386
|
+
Sa as U,
|
|
9368
9387
|
sl as _,
|
|
9369
9388
|
nl as a,
|
|
9370
9389
|
Pl as b,
|