@feedmepos/mf-hrm-portal 2.3.0-dev.6 → 2.3.0-dev.8
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-Cf1l-ult.js → ApprovalCodeList-D5E_FN3f.js} +5 -5
- package/dist/AuditLogList-CqqiS2xW.js +1779 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BdbfGDI_.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DC_oQTsP.js} +2 -2
- package/dist/{EmployeeList-sc773luN.js → EmployeeList-ChMlGxmu.js} +6 -6
- package/dist/{GrantUserList-2XTroUF8.js → GrantUserList-DA26W3K3.js} +6 -6
- package/dist/{Main-BNCfG0Sg.js → Main-B27Qx8R2.js} +8 -8
- package/dist/{Main-BIo4YcWF.js → Main-C0gVAR92.js} +5 -5
- package/dist/{Main-CCGYrZsD.js → Main-m39gMG-a.js} +11 -11
- package/dist/{PermissionSetList-7Ut1F99N.js → PermissionSetList-mdA65jmw.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B1l2xUpn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dp6bdEZp.js} +601 -601
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js} +1 -1
- package/dist/{RoleList-DMKdy74J.js → RoleList-BPayuLxA.js} +9 -9
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CI94gSkp.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C_EQivMd.js} +1 -1
- package/dist/{ScheduleGeneralPage-DGdnq7oV.js → ScheduleGeneralPage-sAqR1-hf.js} +4 -4
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Cq-zMPW_.js → ScheduleModal.vue_vue_type_script_setup_true_lang-ABipaQiR.js} +2 -2
- package/dist/{SchedulePage-B7M5fPIA.js → SchedulePage-DhbtCR8U.js} +6243 -6070
- package/dist/{SchedulePositionPage-DeorKiCc.js → SchedulePositionPage-BUQy-Itg.js} +3 -3
- package/dist/{TeamMemberList-CQswHBEk.js → TeamMemberList-CIlvRlf8.js} +10 -10
- package/dist/{TimesheetList-lWsJuha_.js → TimesheetList-DFAfhWYG.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CLgmz6LT.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QGzHuY7V.js} +3 -3
- package/dist/{app-MTWSOw4U.js → app-C_EW9DFr.js} +228 -464
- package/dist/app.js +1 -1
- package/dist/{approval-code-C9DmR4Md.js → approval-code-DHsUgc4K.js} +1 -1
- package/dist/{dayjs.min-9rM_szda.js → dayjs.min-ibysRBBa.js} +1 -1
- package/dist/{employee-BvtW9sI6.js → employee-B1BQc4gB.js} +4 -4
- package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-qzKHFTro.js} +1 -1
- package/dist/{iteration-Byna7hj1.js → iteration-DQVB-iz0.js} +1 -1
- package/dist/{lodash-CnwRhwQm.js → lodash-DOj41a0A.js} +1 -1
- package/dist/{restaurant-D7PEQjPY.js → restaurant-BbYRA_IT.js} +4 -3
- package/dist/{role-N_-ZZfhy.js → role-B9MSLu4B.js} +2 -2
- package/dist/{rule-B9-ryqfq.js → rule-e6okoXK6.js} +3 -3
- package/dist/src/api/audit-log/index.d.ts +0 -4
- package/dist/src/views/audit-log/constants.d.ts +30 -9
- package/dist/src/views/audit-log/locales/index.d.ts +0 -236
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +5 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +126 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-d_nHyK5u.js → useAppStore-BoLkvkE2.js} +1 -1
- package/dist/{useLoading-JFoghhRz.js → useLoading-Ch1AUYT1.js} +1 -1
- package/dist/{useReportPermissions-BSOsfpnM.js → useReportPermissions-CJ9ey1bN.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-D1sMrERs.js +0 -1951
- package/dist/src/views/audit-log/pos-row.d.ts +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var La = Object.defineProperty;
|
|
2
2
|
var Ka = (e, t, s) => t in e ? La(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
3
|
var Yt = (e, t, s) => Ka(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
import { isRef as Ja, ref as Ue, shallowRef as _a, watchEffect as hn, computed as
|
|
4
|
+
import { isRef as Ja, ref as Ue, shallowRef as _a, watchEffect as hn, computed as Is, h as Rt, defineComponent as at, createBlock as $t, renderSlot as Ts, createCommentVNode as $a, unref as $e, openBlock as rt, createElementBlock as qs, createElementVNode as Xe, toDisplayString as sn, watch as er, nextTick as fn, onMounted as yn, onBeforeUnmount as tr, normalizeStyle as sr, resolveComponent as Ns, withCtx as nr, createVNode as ar, defineAsyncComponent as rr, readonly as Ds } from "vue";
|
|
5
5
|
import { useBreakpoints as or } from "@feedmepos/ui-library";
|
|
6
6
|
import { useRoute as ir, useRouter as lr } from "vue-router";
|
|
7
7
|
import { useCoreStore as bn, useI18n as vn } from "@feedmepos/mf-common";
|
|
@@ -113,7 +113,7 @@ const x = U.arrayToEnum([
|
|
|
113
113
|
"invalid_intersection_types",
|
|
114
114
|
"not_multiple_of"
|
|
115
115
|
]), ur = (e) => JSON.stringify(e, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
116
|
-
class
|
|
116
|
+
class Ie extends Error {
|
|
117
117
|
constructor(t) {
|
|
118
118
|
super(), this.issues = [], this.addIssue = (n) => {
|
|
119
119
|
this.issues = [...this.issues, n];
|
|
@@ -168,7 +168,7 @@ class He extends Error {
|
|
|
168
168
|
return this.flatten();
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
Ie.create = (e) => new Ie(e);
|
|
172
172
|
const jt = (e, t) => {
|
|
173
173
|
let s;
|
|
174
174
|
switch (e.code) {
|
|
@@ -226,10 +226,10 @@ let Bn = jt;
|
|
|
226
226
|
function dr(e) {
|
|
227
227
|
Bn = e;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Ht() {
|
|
230
230
|
return Bn;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const It = (e) => {
|
|
233
233
|
const { data: t, path: s, errorMaps: n, issueData: a } = e, r = [...s, ...a.path || []], l = {
|
|
234
234
|
...a,
|
|
235
235
|
path: r
|
|
@@ -245,14 +245,14 @@ const Ht = (e) => {
|
|
|
245
245
|
};
|
|
246
246
|
}, mr = [];
|
|
247
247
|
function P(e, t) {
|
|
248
|
-
const s =
|
|
248
|
+
const s = It({
|
|
249
249
|
issueData: t,
|
|
250
250
|
data: e.data,
|
|
251
251
|
path: e.path,
|
|
252
252
|
errorMaps: [
|
|
253
253
|
e.common.contextualErrorMap,
|
|
254
254
|
e.schemaErrorMap,
|
|
255
|
-
|
|
255
|
+
Ht(),
|
|
256
256
|
jt
|
|
257
257
|
].filter((n) => !!n)
|
|
258
258
|
});
|
|
@@ -272,7 +272,7 @@ class le {
|
|
|
272
272
|
const n = [];
|
|
273
273
|
for (const a of s) {
|
|
274
274
|
if (a.status === "aborted")
|
|
275
|
-
return
|
|
275
|
+
return I;
|
|
276
276
|
a.status === "dirty" && t.dirty(), n.push(a.value);
|
|
277
277
|
}
|
|
278
278
|
return { status: t.value, value: n };
|
|
@@ -291,15 +291,15 @@ class le {
|
|
|
291
291
|
for (const a of s) {
|
|
292
292
|
const { key: r, value: l } = a;
|
|
293
293
|
if (r.status === "aborted" || l.status === "aborted")
|
|
294
|
-
return
|
|
294
|
+
return I;
|
|
295
295
|
r.status === "dirty" && t.dirty(), l.status === "dirty" && t.dirty(), (typeof l.value < "u" || a.alwaysSet) && (n[r.value] = l.value);
|
|
296
296
|
}
|
|
297
297
|
return { status: t.value, value: n };
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const I = Object.freeze({
|
|
301
301
|
status: "aborted"
|
|
302
|
-
}), Ar = (e) => ({ status: "dirty", value: e }), ce = (e) => ({ status: "valid", value: e }), js = (e) => e.status === "aborted", Es = (e) => e.status === "dirty",
|
|
302
|
+
}), Ar = (e) => ({ status: "dirty", value: e }), ce = (e) => ({ status: "valid", value: e }), js = (e) => e.status === "aborted", Es = (e) => e.status === "dirty", Tt = (e) => e.status === "valid", Ps = (e) => typeof Promise !== void 0 && e instanceof Promise, Xs = (e, t) => typeof t == "bigint" ? t.toString() : t;
|
|
303
303
|
var Q;
|
|
304
304
|
(function(e) {
|
|
305
305
|
e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
|
|
@@ -313,11 +313,11 @@ class Ye {
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
const nn = (e, t) => {
|
|
316
|
-
if (
|
|
316
|
+
if (Tt(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 Ie(e.common.issues) };
|
|
321
321
|
};
|
|
322
322
|
function N(e) {
|
|
323
323
|
if (!e)
|
|
@@ -429,7 +429,7 @@ class q {
|
|
|
429
429
|
_refinement(t) {
|
|
430
430
|
return new Se({
|
|
431
431
|
schema: this,
|
|
432
|
-
typeName:
|
|
432
|
+
typeName: H.ZodEffects,
|
|
433
433
|
effect: { type: "refinement", refinement: t }
|
|
434
434
|
});
|
|
435
435
|
}
|
|
@@ -457,7 +457,7 @@ class q {
|
|
|
457
457
|
transform(t) {
|
|
458
458
|
return new Se({
|
|
459
459
|
schema: this,
|
|
460
|
-
typeName:
|
|
460
|
+
typeName: H.ZodEffects,
|
|
461
461
|
effect: { type: "transform", transform: t }
|
|
462
462
|
});
|
|
463
463
|
}
|
|
@@ -466,7 +466,7 @@ class q {
|
|
|
466
466
|
return new Qs({
|
|
467
467
|
innerType: this,
|
|
468
468
|
defaultValue: s,
|
|
469
|
-
typeName:
|
|
469
|
+
typeName: H.ZodDefault
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
describe(t) {
|
|
@@ -506,7 +506,7 @@ class ze extends q {
|
|
|
506
506
|
received: r.parsedType
|
|
507
507
|
}
|
|
508
508
|
//
|
|
509
|
-
),
|
|
509
|
+
), I;
|
|
510
510
|
}
|
|
511
511
|
const n = new le();
|
|
512
512
|
let a;
|
|
@@ -653,7 +653,7 @@ class ze extends q {
|
|
|
653
653
|
}
|
|
654
654
|
ze.create = (e) => new ze({
|
|
655
655
|
checks: [],
|
|
656
|
-
typeName:
|
|
656
|
+
typeName: H.ZodString,
|
|
657
657
|
...N(e)
|
|
658
658
|
});
|
|
659
659
|
function fr(e, t) {
|
|
@@ -671,7 +671,7 @@ class et extends q {
|
|
|
671
671
|
code: M.invalid_type,
|
|
672
672
|
expected: x.number,
|
|
673
673
|
received: r.parsedType
|
|
674
|
-
}),
|
|
674
|
+
}), I;
|
|
675
675
|
}
|
|
676
676
|
let n;
|
|
677
677
|
const a = new le();
|
|
@@ -795,7 +795,7 @@ class et extends q {
|
|
|
795
795
|
}
|
|
796
796
|
et.create = (e) => new et({
|
|
797
797
|
checks: [],
|
|
798
|
-
typeName:
|
|
798
|
+
typeName: H.ZodNumber,
|
|
799
799
|
...N(e)
|
|
800
800
|
});
|
|
801
801
|
class qt extends q {
|
|
@@ -806,13 +806,13 @@ class qt extends q {
|
|
|
806
806
|
code: M.invalid_type,
|
|
807
807
|
expected: x.bigint,
|
|
808
808
|
received: n.parsedType
|
|
809
|
-
}),
|
|
809
|
+
}), I;
|
|
810
810
|
}
|
|
811
811
|
return ce(t.data);
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
qt.create = (e) => new qt({
|
|
815
|
-
typeName:
|
|
815
|
+
typeName: H.ZodBigInt,
|
|
816
816
|
...N(e)
|
|
817
817
|
});
|
|
818
818
|
class Nt extends q {
|
|
@@ -823,13 +823,13 @@ class Nt extends q {
|
|
|
823
823
|
code: M.invalid_type,
|
|
824
824
|
expected: x.boolean,
|
|
825
825
|
received: n.parsedType
|
|
826
|
-
}),
|
|
826
|
+
}), I;
|
|
827
827
|
}
|
|
828
828
|
return ce(t.data);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
Nt.create = (e) => new Nt({
|
|
832
|
-
typeName:
|
|
832
|
+
typeName: H.ZodBoolean,
|
|
833
833
|
...N(e)
|
|
834
834
|
});
|
|
835
835
|
class At extends q {
|
|
@@ -840,13 +840,13 @@ class At extends q {
|
|
|
840
840
|
code: M.invalid_type,
|
|
841
841
|
expected: x.date,
|
|
842
842
|
received: r.parsedType
|
|
843
|
-
}),
|
|
843
|
+
}), I;
|
|
844
844
|
}
|
|
845
845
|
if (isNaN(t.data.getTime())) {
|
|
846
846
|
const r = this._getOrReturnCtx(t);
|
|
847
847
|
return P(r, {
|
|
848
848
|
code: M.invalid_date
|
|
849
|
-
}),
|
|
849
|
+
}), I;
|
|
850
850
|
}
|
|
851
851
|
const n = new le();
|
|
852
852
|
let a;
|
|
@@ -904,7 +904,7 @@ class At extends q {
|
|
|
904
904
|
}
|
|
905
905
|
At.create = (e) => new At({
|
|
906
906
|
checks: [],
|
|
907
|
-
typeName:
|
|
907
|
+
typeName: H.ZodDate,
|
|
908
908
|
...N(e)
|
|
909
909
|
});
|
|
910
910
|
class Xt extends q {
|
|
@@ -915,13 +915,13 @@ class Xt extends q {
|
|
|
915
915
|
code: M.invalid_type,
|
|
916
916
|
expected: x.undefined,
|
|
917
917
|
received: n.parsedType
|
|
918
|
-
}),
|
|
918
|
+
}), I;
|
|
919
919
|
}
|
|
920
920
|
return ce(t.data);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
Xt.create = (e) => new Xt({
|
|
924
|
-
typeName:
|
|
924
|
+
typeName: H.ZodUndefined,
|
|
925
925
|
...N(e)
|
|
926
926
|
});
|
|
927
927
|
class Qt extends q {
|
|
@@ -932,13 +932,13 @@ class Qt extends q {
|
|
|
932
932
|
code: M.invalid_type,
|
|
933
933
|
expected: x.null,
|
|
934
934
|
received: n.parsedType
|
|
935
|
-
}),
|
|
935
|
+
}), I;
|
|
936
936
|
}
|
|
937
937
|
return ce(t.data);
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
Qt.create = (e) => new Qt({
|
|
941
|
-
typeName:
|
|
941
|
+
typeName: H.ZodNull,
|
|
942
942
|
...N(e)
|
|
943
943
|
});
|
|
944
944
|
class gt extends q {
|
|
@@ -950,7 +950,7 @@ class gt extends q {
|
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
gt.create = (e) => new gt({
|
|
953
|
-
typeName:
|
|
953
|
+
typeName: H.ZodAny,
|
|
954
954
|
...N(e)
|
|
955
955
|
});
|
|
956
956
|
class Ze extends q {
|
|
@@ -962,7 +962,7 @@ class Ze extends q {
|
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
Ze.create = (e) => new Ze({
|
|
965
|
-
typeName:
|
|
965
|
+
typeName: H.ZodUnknown,
|
|
966
966
|
...N(e)
|
|
967
967
|
});
|
|
968
968
|
class We extends q {
|
|
@@ -972,11 +972,11 @@ class We extends q {
|
|
|
972
972
|
code: M.invalid_type,
|
|
973
973
|
expected: x.never,
|
|
974
974
|
received: s.parsedType
|
|
975
|
-
}),
|
|
975
|
+
}), I;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
We.create = (e) => new We({
|
|
979
|
-
typeName:
|
|
979
|
+
typeName: H.ZodNever,
|
|
980
980
|
...N(e)
|
|
981
981
|
});
|
|
982
982
|
class Zt extends q {
|
|
@@ -987,13 +987,13 @@ class Zt extends q {
|
|
|
987
987
|
code: M.invalid_type,
|
|
988
988
|
expected: x.void,
|
|
989
989
|
received: n.parsedType
|
|
990
|
-
}),
|
|
990
|
+
}), I;
|
|
991
991
|
}
|
|
992
992
|
return ce(t.data);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
Zt.create = (e) => new Zt({
|
|
996
|
-
typeName:
|
|
996
|
+
typeName: H.ZodVoid,
|
|
997
997
|
...N(e)
|
|
998
998
|
});
|
|
999
999
|
class Ve extends q {
|
|
@@ -1004,7 +1004,7 @@ class Ve extends q {
|
|
|
1004
1004
|
code: M.invalid_type,
|
|
1005
1005
|
expected: x.array,
|
|
1006
1006
|
received: s.parsedType
|
|
1007
|
-
}),
|
|
1007
|
+
}), I;
|
|
1008
1008
|
if (a.minLength !== null && s.data.length < a.minLength.value && (P(s, {
|
|
1009
1009
|
code: M.too_small,
|
|
1010
1010
|
minimum: a.minLength.value,
|
|
@@ -1048,7 +1048,7 @@ Ve.create = (e, t) => new Ve({
|
|
|
1048
1048
|
type: e,
|
|
1049
1049
|
minLength: null,
|
|
1050
1050
|
maxLength: null,
|
|
1051
|
-
typeName:
|
|
1051
|
+
typeName: H.ZodArray,
|
|
1052
1052
|
...N(t)
|
|
1053
1053
|
});
|
|
1054
1054
|
var Ut;
|
|
@@ -1095,7 +1095,7 @@ class ee extends q {
|
|
|
1095
1095
|
code: M.invalid_type,
|
|
1096
1096
|
expected: x.object,
|
|
1097
1097
|
received: y.parsedType
|
|
1098
|
-
}),
|
|
1098
|
+
}), I;
|
|
1099
1099
|
}
|
|
1100
1100
|
const { status: n, ctx: a } = this._processInputParams(t), { shape: r, keys: l } = this._getCached(), c = [];
|
|
1101
1101
|
for (const y in a.data)
|
|
@@ -1195,7 +1195,7 @@ class ee extends q {
|
|
|
1195
1195
|
unknownKeys: t._def.unknownKeys,
|
|
1196
1196
|
catchall: t._def.catchall,
|
|
1197
1197
|
shape: () => Ut.mergeShapes(this._def.shape(), t._def.shape()),
|
|
1198
|
-
typeName:
|
|
1198
|
+
typeName: H.ZodObject
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
1201
|
catchall(t) {
|
|
@@ -1264,21 +1264,21 @@ ee.create = (e, t) => new ee({
|
|
|
1264
1264
|
shape: () => e,
|
|
1265
1265
|
unknownKeys: "strip",
|
|
1266
1266
|
catchall: We.create(),
|
|
1267
|
-
typeName:
|
|
1267
|
+
typeName: H.ZodObject,
|
|
1268
1268
|
...N(t)
|
|
1269
1269
|
});
|
|
1270
1270
|
ee.strictCreate = (e, t) => new ee({
|
|
1271
1271
|
shape: () => e,
|
|
1272
1272
|
unknownKeys: "strict",
|
|
1273
1273
|
catchall: We.create(),
|
|
1274
|
-
typeName:
|
|
1274
|
+
typeName: H.ZodObject,
|
|
1275
1275
|
...N(t)
|
|
1276
1276
|
});
|
|
1277
1277
|
ee.lazycreate = (e, t) => new ee({
|
|
1278
1278
|
shape: e,
|
|
1279
1279
|
unknownKeys: "strip",
|
|
1280
1280
|
catchall: We.create(),
|
|
1281
|
-
typeName:
|
|
1281
|
+
typeName: H.ZodObject,
|
|
1282
1282
|
...N(t)
|
|
1283
1283
|
});
|
|
1284
1284
|
class Et extends q {
|
|
@@ -1291,11 +1291,11 @@ class Et extends q {
|
|
|
1291
1291
|
for (const c of r)
|
|
1292
1292
|
if (c.result.status === "dirty")
|
|
1293
1293
|
return s.common.issues.push(...c.ctx.common.issues), c.result;
|
|
1294
|
-
const l = r.map((c) => new
|
|
1294
|
+
const l = r.map((c) => new Ie(c.ctx.common.issues));
|
|
1295
1295
|
return P(s, {
|
|
1296
1296
|
code: M.invalid_union,
|
|
1297
1297
|
unionErrors: l
|
|
1298
|
-
}),
|
|
1298
|
+
}), I;
|
|
1299
1299
|
}
|
|
1300
1300
|
if (s.common.async)
|
|
1301
1301
|
return Promise.all(n.map(async (r) => {
|
|
@@ -1338,11 +1338,11 @@ class Et extends q {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
if (r)
|
|
1340
1340
|
return s.common.issues.push(...r.ctx.common.issues), r.result;
|
|
1341
|
-
const c = l.map((h) => new
|
|
1341
|
+
const c = l.map((h) => new Ie(h));
|
|
1342
1342
|
return P(s, {
|
|
1343
1343
|
code: M.invalid_union,
|
|
1344
1344
|
unionErrors: c
|
|
1345
|
-
}),
|
|
1345
|
+
}), I;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
get options() {
|
|
@@ -1351,7 +1351,7 @@ class Et extends q {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
Et.create = (e, t) => new Et({
|
|
1353
1353
|
options: e,
|
|
1354
|
-
typeName:
|
|
1354
|
+
typeName: H.ZodUnion,
|
|
1355
1355
|
...N(t)
|
|
1356
1356
|
});
|
|
1357
1357
|
class es extends q {
|
|
@@ -1362,7 +1362,7 @@ class es extends q {
|
|
|
1362
1362
|
code: M.invalid_type,
|
|
1363
1363
|
expected: x.object,
|
|
1364
1364
|
received: s.parsedType
|
|
1365
|
-
}),
|
|
1365
|
+
}), I;
|
|
1366
1366
|
const n = this.discriminator, a = s.data[n], r = this.options.get(a);
|
|
1367
1367
|
return r ? s.common.async ? r._parseAsync({
|
|
1368
1368
|
data: s.data,
|
|
@@ -1376,7 +1376,7 @@ class es extends q {
|
|
|
1376
1376
|
code: M.invalid_union_discriminator,
|
|
1377
1377
|
options: this.validDiscriminatorValues,
|
|
1378
1378
|
path: [n]
|
|
1379
|
-
}),
|
|
1379
|
+
}), I);
|
|
1380
1380
|
}
|
|
1381
1381
|
get discriminator() {
|
|
1382
1382
|
return this._def.discriminator;
|
|
@@ -1408,7 +1408,7 @@ class es extends q {
|
|
|
1408
1408
|
if (a.size !== s.length)
|
|
1409
1409
|
throw new Error("Some of the discriminator values are not unique");
|
|
1410
1410
|
return new es({
|
|
1411
|
-
typeName:
|
|
1411
|
+
typeName: H.ZodDiscriminatedUnion,
|
|
1412
1412
|
discriminator: t,
|
|
1413
1413
|
options: a,
|
|
1414
1414
|
...N(n)
|
|
@@ -1445,11 +1445,11 @@ class Pt extends q {
|
|
|
1445
1445
|
_parse(t) {
|
|
1446
1446
|
const { status: s, ctx: n } = this._processInputParams(t), a = (r, l) => {
|
|
1447
1447
|
if (js(r) || js(l))
|
|
1448
|
-
return
|
|
1448
|
+
return I;
|
|
1449
1449
|
const c = Os(r.value, l.value);
|
|
1450
1450
|
return c.valid ? ((Es(r) || Es(l)) && s.dirty(), { status: s.value, value: c.data }) : (P(n, {
|
|
1451
1451
|
code: M.invalid_intersection_types
|
|
1452
|
-
}),
|
|
1452
|
+
}), I);
|
|
1453
1453
|
};
|
|
1454
1454
|
return n.common.async ? Promise.all([
|
|
1455
1455
|
this._def.left._parseAsync({
|
|
@@ -1476,7 +1476,7 @@ class Pt extends q {
|
|
|
1476
1476
|
Pt.create = (e, t, s) => new Pt({
|
|
1477
1477
|
left: e,
|
|
1478
1478
|
right: t,
|
|
1479
|
-
typeName:
|
|
1479
|
+
typeName: H.ZodIntersection,
|
|
1480
1480
|
...N(s)
|
|
1481
1481
|
});
|
|
1482
1482
|
class Fe extends q {
|
|
@@ -1487,14 +1487,14 @@ class Fe extends q {
|
|
|
1487
1487
|
code: M.invalid_type,
|
|
1488
1488
|
expected: x.array,
|
|
1489
1489
|
received: n.parsedType
|
|
1490
|
-
}),
|
|
1490
|
+
}), I;
|
|
1491
1491
|
if (n.data.length < this._def.items.length)
|
|
1492
1492
|
return P(n, {
|
|
1493
1493
|
code: M.too_small,
|
|
1494
1494
|
minimum: this._def.items.length,
|
|
1495
1495
|
inclusive: !0,
|
|
1496
1496
|
type: "array"
|
|
1497
|
-
}),
|
|
1497
|
+
}), I;
|
|
1498
1498
|
!this._def.rest && n.data.length > this._def.items.length && (P(n, {
|
|
1499
1499
|
code: M.too_big,
|
|
1500
1500
|
maximum: this._def.items.length,
|
|
@@ -1519,7 +1519,7 @@ class Fe extends q {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
Fe.create = (e, t) => new Fe({
|
|
1521
1521
|
items: e,
|
|
1522
|
-
typeName:
|
|
1522
|
+
typeName: H.ZodTuple,
|
|
1523
1523
|
rest: null,
|
|
1524
1524
|
...N(t)
|
|
1525
1525
|
});
|
|
@@ -1537,7 +1537,7 @@ class Ot extends q {
|
|
|
1537
1537
|
code: M.invalid_type,
|
|
1538
1538
|
expected: x.object,
|
|
1539
1539
|
received: n.parsedType
|
|
1540
|
-
}),
|
|
1540
|
+
}), I;
|
|
1541
1541
|
const a = [], r = this._def.keyType, l = this._def.valueType;
|
|
1542
1542
|
for (const c in n.data)
|
|
1543
1543
|
a.push({
|
|
@@ -1553,12 +1553,12 @@ class Ot extends q {
|
|
|
1553
1553
|
return s instanceof q ? new Ot({
|
|
1554
1554
|
keyType: t,
|
|
1555
1555
|
valueType: s,
|
|
1556
|
-
typeName:
|
|
1556
|
+
typeName: H.ZodRecord,
|
|
1557
1557
|
...N(n)
|
|
1558
1558
|
}) : new Ot({
|
|
1559
1559
|
keyType: ze.create(),
|
|
1560
1560
|
valueType: t,
|
|
1561
|
-
typeName:
|
|
1561
|
+
typeName: H.ZodRecord,
|
|
1562
1562
|
...N(s)
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
@@ -1571,7 +1571,7 @@ class zt extends q {
|
|
|
1571
1571
|
code: M.invalid_type,
|
|
1572
1572
|
expected: x.map,
|
|
1573
1573
|
received: n.parsedType
|
|
1574
|
-
}),
|
|
1574
|
+
}), I;
|
|
1575
1575
|
const a = this._def.keyType, r = this._def.valueType, l = [...n.data.entries()].map(([c, h], y) => ({
|
|
1576
1576
|
key: a._parse(new Ye(n, c, n.path, [y, "key"])),
|
|
1577
1577
|
value: r._parse(new Ye(n, h, n.path, [y, "value"]))
|
|
@@ -1582,7 +1582,7 @@ class zt extends q {
|
|
|
1582
1582
|
for (const h of l) {
|
|
1583
1583
|
const y = await h.key, w = await h.value;
|
|
1584
1584
|
if (y.status === "aborted" || w.status === "aborted")
|
|
1585
|
-
return
|
|
1585
|
+
return I;
|
|
1586
1586
|
(y.status === "dirty" || w.status === "dirty") && s.dirty(), c.set(y.value, w.value);
|
|
1587
1587
|
}
|
|
1588
1588
|
return { status: s.value, value: c };
|
|
@@ -1592,7 +1592,7 @@ class zt extends q {
|
|
|
1592
1592
|
for (const h of l) {
|
|
1593
1593
|
const y = h.key, w = h.value;
|
|
1594
1594
|
if (y.status === "aborted" || w.status === "aborted")
|
|
1595
|
-
return
|
|
1595
|
+
return I;
|
|
1596
1596
|
(y.status === "dirty" || w.status === "dirty") && s.dirty(), c.set(y.value, w.value);
|
|
1597
1597
|
}
|
|
1598
1598
|
return { status: s.value, value: c };
|
|
@@ -1602,7 +1602,7 @@ class zt extends q {
|
|
|
1602
1602
|
zt.create = (e, t, s) => new zt({
|
|
1603
1603
|
valueType: t,
|
|
1604
1604
|
keyType: e,
|
|
1605
|
-
typeName:
|
|
1605
|
+
typeName: H.ZodMap,
|
|
1606
1606
|
...N(s)
|
|
1607
1607
|
});
|
|
1608
1608
|
class tt extends q {
|
|
@@ -1613,7 +1613,7 @@ class tt extends q {
|
|
|
1613
1613
|
code: M.invalid_type,
|
|
1614
1614
|
expected: x.set,
|
|
1615
1615
|
received: n.parsedType
|
|
1616
|
-
}),
|
|
1616
|
+
}), I;
|
|
1617
1617
|
const a = this._def;
|
|
1618
1618
|
a.minSize !== null && n.data.size < a.minSize.value && (P(n, {
|
|
1619
1619
|
code: M.too_small,
|
|
@@ -1633,7 +1633,7 @@ class tt extends q {
|
|
|
1633
1633
|
const y = /* @__PURE__ */ new Set();
|
|
1634
1634
|
for (const w of h) {
|
|
1635
1635
|
if (w.status === "aborted")
|
|
1636
|
-
return
|
|
1636
|
+
return I;
|
|
1637
1637
|
w.status === "dirty" && s.dirty(), y.add(w.value);
|
|
1638
1638
|
}
|
|
1639
1639
|
return { status: s.value, value: y };
|
|
@@ -1664,7 +1664,7 @@ tt.create = (e, t) => new tt({
|
|
|
1664
1664
|
valueType: e,
|
|
1665
1665
|
minSize: null,
|
|
1666
1666
|
maxSize: null,
|
|
1667
|
-
typeName:
|
|
1667
|
+
typeName: H.ZodSet,
|
|
1668
1668
|
...N(t)
|
|
1669
1669
|
});
|
|
1670
1670
|
class st extends q {
|
|
@@ -1678,15 +1678,15 @@ class st extends q {
|
|
|
1678
1678
|
code: M.invalid_type,
|
|
1679
1679
|
expected: x.function,
|
|
1680
1680
|
received: s.parsedType
|
|
1681
|
-
}),
|
|
1681
|
+
}), I;
|
|
1682
1682
|
function n(c, h) {
|
|
1683
|
-
return
|
|
1683
|
+
return It({
|
|
1684
1684
|
data: c,
|
|
1685
1685
|
path: s.path,
|
|
1686
1686
|
errorMaps: [
|
|
1687
1687
|
s.common.contextualErrorMap,
|
|
1688
1688
|
s.schemaErrorMap,
|
|
1689
|
-
|
|
1689
|
+
Ht(),
|
|
1690
1690
|
jt
|
|
1691
1691
|
].filter((y) => !!y),
|
|
1692
1692
|
issueData: {
|
|
@@ -1696,13 +1696,13 @@ class st extends q {
|
|
|
1696
1696
|
});
|
|
1697
1697
|
}
|
|
1698
1698
|
function a(c, h) {
|
|
1699
|
-
return
|
|
1699
|
+
return It({
|
|
1700
1700
|
data: c,
|
|
1701
1701
|
path: s.path,
|
|
1702
1702
|
errorMaps: [
|
|
1703
1703
|
s.common.contextualErrorMap,
|
|
1704
1704
|
s.schemaErrorMap,
|
|
1705
|
-
|
|
1705
|
+
Ht(),
|
|
1706
1706
|
jt
|
|
1707
1707
|
].filter((y) => !!y),
|
|
1708
1708
|
issueData: {
|
|
@@ -1713,7 +1713,7 @@ class st extends q {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
const r = { errorMap: s.common.contextualErrorMap }, l = s.data;
|
|
1715
1715
|
return this._def.returns instanceof pt ? ce(async (...c) => {
|
|
1716
|
-
const h = new
|
|
1716
|
+
const h = new Ie([]), y = await this._def.args.parseAsync(c, r).catch((Z) => {
|
|
1717
1717
|
throw h.addIssue(n(c, Z)), h;
|
|
1718
1718
|
}), w = await l(...y);
|
|
1719
1719
|
return await this._def.returns._def.type.parseAsync(w, r).catch((Z) => {
|
|
@@ -1722,10 +1722,10 @@ class st extends q {
|
|
|
1722
1722
|
}) : ce((...c) => {
|
|
1723
1723
|
const h = this._def.args.safeParse(c, r);
|
|
1724
1724
|
if (!h.success)
|
|
1725
|
-
throw new
|
|
1725
|
+
throw new Ie([n(c, h.error)]);
|
|
1726
1726
|
const y = l(...h.data), w = this._def.returns.safeParse(y, r);
|
|
1727
1727
|
if (!w.success)
|
|
1728
|
-
throw new
|
|
1728
|
+
throw new Ie([a(y, w.error)]);
|
|
1729
1729
|
return w.data;
|
|
1730
1730
|
});
|
|
1731
1731
|
}
|
|
@@ -1757,7 +1757,7 @@ class st extends q {
|
|
|
1757
1757
|
st.create = (e, t, s) => new st({
|
|
1758
1758
|
args: e ? e.rest(Ze.create()) : Fe.create([]).rest(Ze.create()),
|
|
1759
1759
|
returns: t || Ze.create(),
|
|
1760
|
-
typeName:
|
|
1760
|
+
typeName: H.ZodFunction,
|
|
1761
1761
|
...N(s)
|
|
1762
1762
|
});
|
|
1763
1763
|
class Wt extends q {
|
|
@@ -1771,7 +1771,7 @@ class Wt extends q {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
Wt.create = (e, t) => new Wt({
|
|
1773
1773
|
getter: e,
|
|
1774
|
-
typeName:
|
|
1774
|
+
typeName: H.ZodLazy,
|
|
1775
1775
|
...N(t)
|
|
1776
1776
|
});
|
|
1777
1777
|
class Lt extends q {
|
|
@@ -1781,7 +1781,7 @@ class Lt extends q {
|
|
|
1781
1781
|
return P(s, {
|
|
1782
1782
|
code: M.invalid_literal,
|
|
1783
1783
|
expected: this._def.value
|
|
1784
|
-
}),
|
|
1784
|
+
}), I;
|
|
1785
1785
|
}
|
|
1786
1786
|
return { status: "valid", value: t.data };
|
|
1787
1787
|
}
|
|
@@ -1791,13 +1791,13 @@ class Lt extends q {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
Lt.create = (e, t) => new Lt({
|
|
1793
1793
|
value: e,
|
|
1794
|
-
typeName:
|
|
1794
|
+
typeName: H.ZodLiteral,
|
|
1795
1795
|
...N(t)
|
|
1796
1796
|
});
|
|
1797
1797
|
function Cn(e, t) {
|
|
1798
1798
|
return new ts({
|
|
1799
1799
|
values: e,
|
|
1800
|
-
typeName:
|
|
1800
|
+
typeName: H.ZodEnum,
|
|
1801
1801
|
...N(t)
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
@@ -1809,7 +1809,7 @@ class ts extends q {
|
|
|
1809
1809
|
expected: U.joinValues(n),
|
|
1810
1810
|
received: s.parsedType,
|
|
1811
1811
|
code: M.invalid_type
|
|
1812
|
-
}),
|
|
1812
|
+
}), I;
|
|
1813
1813
|
}
|
|
1814
1814
|
if (this._def.values.indexOf(t.data) === -1) {
|
|
1815
1815
|
const s = this._getOrReturnCtx(t), n = this._def.values;
|
|
@@ -1817,7 +1817,7 @@ class ts extends q {
|
|
|
1817
1817
|
received: s.data,
|
|
1818
1818
|
code: M.invalid_enum_value,
|
|
1819
1819
|
options: n
|
|
1820
|
-
}),
|
|
1820
|
+
}), I;
|
|
1821
1821
|
}
|
|
1822
1822
|
return ce(t.data);
|
|
1823
1823
|
}
|
|
@@ -1853,7 +1853,7 @@ class Kt extends q {
|
|
|
1853
1853
|
expected: U.joinValues(a),
|
|
1854
1854
|
received: n.parsedType,
|
|
1855
1855
|
code: M.invalid_type
|
|
1856
|
-
}),
|
|
1856
|
+
}), I;
|
|
1857
1857
|
}
|
|
1858
1858
|
if (s.indexOf(t.data) === -1) {
|
|
1859
1859
|
const a = U.objectValues(s);
|
|
@@ -1861,7 +1861,7 @@ class Kt extends q {
|
|
|
1861
1861
|
received: n.data,
|
|
1862
1862
|
code: M.invalid_enum_value,
|
|
1863
1863
|
options: a
|
|
1864
|
-
}),
|
|
1864
|
+
}), I;
|
|
1865
1865
|
}
|
|
1866
1866
|
return ce(t.data);
|
|
1867
1867
|
}
|
|
@@ -1871,7 +1871,7 @@ class Kt extends q {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
Kt.create = (e, t) => new Kt({
|
|
1873
1873
|
values: e,
|
|
1874
|
-
typeName:
|
|
1874
|
+
typeName: H.ZodNativeEnum,
|
|
1875
1875
|
...N(t)
|
|
1876
1876
|
});
|
|
1877
1877
|
class pt extends q {
|
|
@@ -1882,7 +1882,7 @@ class pt extends q {
|
|
|
1882
1882
|
code: M.invalid_type,
|
|
1883
1883
|
expected: x.promise,
|
|
1884
1884
|
received: s.parsedType
|
|
1885
|
-
}),
|
|
1885
|
+
}), I;
|
|
1886
1886
|
const n = s.parsedType === x.promise ? s.data : Promise.resolve(s.data);
|
|
1887
1887
|
return ce(n.then((a) => this._def.type.parseAsync(a, {
|
|
1888
1888
|
path: s.path,
|
|
@@ -1892,7 +1892,7 @@ class pt extends q {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
pt.create = (e, t) => new pt({
|
|
1894
1894
|
type: e,
|
|
1895
|
-
typeName:
|
|
1895
|
+
typeName: H.ZodPromise,
|
|
1896
1896
|
...N(t)
|
|
1897
1897
|
});
|
|
1898
1898
|
class Se extends q {
|
|
@@ -1936,9 +1936,9 @@ class Se extends q {
|
|
|
1936
1936
|
path: n.path,
|
|
1937
1937
|
parent: n
|
|
1938
1938
|
});
|
|
1939
|
-
return c.status === "aborted" ?
|
|
1939
|
+
return c.status === "aborted" ? I : (c.status === "dirty" && s.dirty(), l(c.value), { status: s.value, value: c.value });
|
|
1940
1940
|
} else
|
|
1941
|
-
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((c) => c.status === "aborted" ?
|
|
1941
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((c) => c.status === "aborted" ? I : (c.status === "dirty" && s.dirty(), l(c.value).then(() => ({ status: s.value, value: c.value }))));
|
|
1942
1942
|
}
|
|
1943
1943
|
if (a.type === "transform")
|
|
1944
1944
|
if (n.common.async === !1) {
|
|
@@ -1947,27 +1947,27 @@ class Se extends q {
|
|
|
1947
1947
|
path: n.path,
|
|
1948
1948
|
parent: n
|
|
1949
1949
|
});
|
|
1950
|
-
if (!
|
|
1950
|
+
if (!Tt(l))
|
|
1951
1951
|
return l;
|
|
1952
1952
|
const c = a.transform(l.value, r);
|
|
1953
1953
|
if (c instanceof Promise)
|
|
1954
1954
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
1955
1955
|
return { status: s.value, value: c };
|
|
1956
1956
|
} else
|
|
1957
|
-
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((l) =>
|
|
1957
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((l) => Tt(l) ? Promise.resolve(a.transform(l.value, r)).then((c) => ({ status: s.value, value: c })) : l);
|
|
1958
1958
|
U.assertNever(a);
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
Se.create = (e, t, s) => new Se({
|
|
1962
1962
|
schema: e,
|
|
1963
|
-
typeName:
|
|
1963
|
+
typeName: H.ZodEffects,
|
|
1964
1964
|
effect: t,
|
|
1965
1965
|
...N(s)
|
|
1966
1966
|
});
|
|
1967
1967
|
Se.createWithPreprocess = (e, t, s) => new Se({
|
|
1968
1968
|
schema: t,
|
|
1969
1969
|
effect: { type: "preprocess", transform: e },
|
|
1970
|
-
typeName:
|
|
1970
|
+
typeName: H.ZodEffects,
|
|
1971
1971
|
...N(s)
|
|
1972
1972
|
});
|
|
1973
1973
|
class Ge extends q {
|
|
@@ -1980,7 +1980,7 @@ class Ge extends q {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
Ge.create = (e, t) => new Ge({
|
|
1982
1982
|
innerType: e,
|
|
1983
|
-
typeName:
|
|
1983
|
+
typeName: H.ZodOptional,
|
|
1984
1984
|
...N(t)
|
|
1985
1985
|
});
|
|
1986
1986
|
class nt extends q {
|
|
@@ -1993,7 +1993,7 @@ class nt extends q {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
nt.create = (e, t) => new nt({
|
|
1995
1995
|
innerType: e,
|
|
1996
|
-
typeName:
|
|
1996
|
+
typeName: H.ZodNullable,
|
|
1997
1997
|
...N(t)
|
|
1998
1998
|
});
|
|
1999
1999
|
class Qs extends q {
|
|
@@ -2012,7 +2012,7 @@ class Qs extends q {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
Qs.create = (e, t) => new Ge({
|
|
2014
2014
|
innerType: e,
|
|
2015
|
-
typeName:
|
|
2015
|
+
typeName: H.ZodOptional,
|
|
2016
2016
|
...N(t)
|
|
2017
2017
|
});
|
|
2018
2018
|
class Jt extends q {
|
|
@@ -2023,13 +2023,13 @@ class Jt extends q {
|
|
|
2023
2023
|
code: M.invalid_type,
|
|
2024
2024
|
expected: x.nan,
|
|
2025
2025
|
received: n.parsedType
|
|
2026
|
-
}),
|
|
2026
|
+
}), I;
|
|
2027
2027
|
}
|
|
2028
2028
|
return { status: "valid", value: t.data };
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
2031
|
Jt.create = (e) => new Jt({
|
|
2032
|
-
typeName:
|
|
2032
|
+
typeName: H.ZodNaN,
|
|
2033
2033
|
...N(e)
|
|
2034
2034
|
});
|
|
2035
2035
|
const Mn = (e, t = {}, s) => e ? gt.create().superRefine((n, a) => {
|
|
@@ -2040,27 +2040,27 @@ const Mn = (e, t = {}, s) => e ? gt.create().superRefine((n, a) => {
|
|
|
2040
2040
|
}) : gt.create(), yr = {
|
|
2041
2041
|
object: ee.lazycreate
|
|
2042
2042
|
};
|
|
2043
|
-
var
|
|
2043
|
+
var H;
|
|
2044
2044
|
(function(e) {
|
|
2045
2045
|
e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodPromise = "ZodPromise";
|
|
2046
|
-
})(
|
|
2046
|
+
})(H || (H = {}));
|
|
2047
2047
|
const br = (e, t = {
|
|
2048
2048
|
message: `Input not instance of ${e.name}`
|
|
2049
|
-
}) => Mn((s) => s instanceof e, t, !0), Dn = ze.create, xn = et.create, vr = Jt.create, wr = qt.create, jn = Nt.create, Br = At.create, Cr = Xt.create, Mr = Qt.create, Dr = gt.create, xr = Ze.create, jr = We.create, Er = Zt.create, Pr = Ve.create, Or = ee.create, Gr = ee.strictCreate, Yr = Et.create, Vr = es.create, Fr = Pt.create, Sr = Fe.create, kr = Ot.create, Rr = zt.create,
|
|
2049
|
+
}) => Mn((s) => s instanceof e, t, !0), Dn = ze.create, xn = et.create, vr = Jt.create, wr = qt.create, jn = Nt.create, Br = At.create, Cr = Xt.create, Mr = Qt.create, Dr = gt.create, xr = Ze.create, jr = We.create, Er = Zt.create, Pr = Ve.create, Or = ee.create, Gr = ee.strictCreate, Yr = Et.create, Vr = es.create, Fr = Pt.create, Sr = Fe.create, kr = Ot.create, Rr = zt.create, Hr = tt.create, Ir = st.create, Tr = Wt.create, qr = Lt.create, Nr = ts.create, Xr = Kt.create, Qr = pt.create, rn = Se.create, Zr = Ge.create, Ur = nt.create, zr = Se.createWithPreprocess, Wr = () => Dn().optional(), Lr = () => xn().optional(), Kr = () => jn().optional();
|
|
2050
2050
|
var Ct = /* @__PURE__ */ Object.freeze({
|
|
2051
2051
|
__proto__: null,
|
|
2052
2052
|
getParsedType: Qe,
|
|
2053
2053
|
ZodParsedType: x,
|
|
2054
|
-
makeIssue:
|
|
2054
|
+
makeIssue: It,
|
|
2055
2055
|
EMPTY_PATH: mr,
|
|
2056
2056
|
addIssueToContext: P,
|
|
2057
2057
|
ParseStatus: le,
|
|
2058
|
-
INVALID:
|
|
2058
|
+
INVALID: I,
|
|
2059
2059
|
DIRTY: Ar,
|
|
2060
2060
|
OK: ce,
|
|
2061
2061
|
isAborted: js,
|
|
2062
2062
|
isDirty: Es,
|
|
2063
|
-
isValid:
|
|
2063
|
+
isValid: Tt,
|
|
2064
2064
|
isAsync: Ps,
|
|
2065
2065
|
jsonStringifyReplacer: Xs,
|
|
2066
2066
|
ZodType: q,
|
|
@@ -2104,7 +2104,7 @@ var Ct = /* @__PURE__ */ Object.freeze({
|
|
|
2104
2104
|
ZodSchema: q,
|
|
2105
2105
|
late: yr,
|
|
2106
2106
|
get ZodFirstPartyTypeKind() {
|
|
2107
|
-
return
|
|
2107
|
+
return H;
|
|
2108
2108
|
},
|
|
2109
2109
|
any: Dr,
|
|
2110
2110
|
array: Pr,
|
|
@@ -2114,10 +2114,10 @@ var Ct = /* @__PURE__ */ Object.freeze({
|
|
|
2114
2114
|
discriminatedUnion: Vr,
|
|
2115
2115
|
effect: rn,
|
|
2116
2116
|
enum: Nr,
|
|
2117
|
-
function:
|
|
2117
|
+
function: Ir,
|
|
2118
2118
|
instanceof: br,
|
|
2119
2119
|
intersection: Fr,
|
|
2120
|
-
lazy:
|
|
2120
|
+
lazy: Tr,
|
|
2121
2121
|
literal: qr,
|
|
2122
2122
|
map: Rr,
|
|
2123
2123
|
nan: vr,
|
|
@@ -2134,7 +2134,7 @@ var Ct = /* @__PURE__ */ Object.freeze({
|
|
|
2134
2134
|
preprocess: zr,
|
|
2135
2135
|
promise: Qr,
|
|
2136
2136
|
record: kr,
|
|
2137
|
-
set:
|
|
2137
|
+
set: Hr,
|
|
2138
2138
|
strictObject: Gr,
|
|
2139
2139
|
string: Dn,
|
|
2140
2140
|
transformer: rn,
|
|
@@ -2145,10 +2145,10 @@ var Ct = /* @__PURE__ */ Object.freeze({
|
|
|
2145
2145
|
void: Er,
|
|
2146
2146
|
ZodIssueCode: M,
|
|
2147
2147
|
quotelessJson: ur,
|
|
2148
|
-
ZodError:
|
|
2148
|
+
ZodError: Ie,
|
|
2149
2149
|
defaultErrorMap: jt,
|
|
2150
2150
|
setErrorMap: dr,
|
|
2151
|
-
getErrorMap:
|
|
2151
|
+
getErrorMap: Ht
|
|
2152
2152
|
});
|
|
2153
2153
|
function Zs(e) {
|
|
2154
2154
|
return typeof e == "object" && e !== null && !Array.isArray(e) && Object.keys(e).length === 1 && typeof e.$form == "string";
|
|
@@ -2626,9 +2626,7 @@ const On = {
|
|
|
2626
2626
|
status_placeholder: "Status",
|
|
2627
2627
|
selected_status_prefix: "Status: ",
|
|
2628
2628
|
outcome_placeholder: "Status",
|
|
2629
|
-
selected_outcome_prefix: "Status: "
|
|
2630
|
-
restaurant_placeholder: "Restaurant",
|
|
2631
|
-
selected_restaurant_prefix: "Restaurant: "
|
|
2629
|
+
selected_outcome_prefix: "Status: "
|
|
2632
2630
|
},
|
|
2633
2631
|
action: {
|
|
2634
2632
|
manage: "Manage",
|
|
@@ -2645,7 +2643,6 @@ const On = {
|
|
|
2645
2643
|
payment: "Payment",
|
|
2646
2644
|
menu: "Menu",
|
|
2647
2645
|
crm: "CRM",
|
|
2648
|
-
pos: "POS",
|
|
2649
2646
|
other: "Other",
|
|
2650
2647
|
more: "More"
|
|
2651
2648
|
},
|
|
@@ -2655,29 +2652,7 @@ const On = {
|
|
|
2655
2652
|
subject: "Subject",
|
|
2656
2653
|
action: "Action Description",
|
|
2657
2654
|
operation: "Operation",
|
|
2658
|
-
outcome: "Status"
|
|
2659
|
-
restaurant: "Restaurant",
|
|
2660
|
-
device: "Device",
|
|
2661
|
-
approver: "Approver"
|
|
2662
|
-
},
|
|
2663
|
-
pos: {
|
|
2664
|
-
unverified: "unverified",
|
|
2665
|
-
approverInline: "approver: {name}",
|
|
2666
|
-
viaCode: "via approval code",
|
|
2667
|
-
details: {
|
|
2668
|
-
eventKey: "Event key",
|
|
2669
|
-
appVersion: "App version",
|
|
2670
|
-
clock: "Device clock",
|
|
2671
|
-
clamped: "clock corrected",
|
|
2672
|
-
params: "Parameters"
|
|
2673
|
-
},
|
|
2674
|
-
device: {
|
|
2675
|
-
posV7: "POS v7 (approval code)"
|
|
2676
|
-
},
|
|
2677
|
-
mode: {
|
|
2678
|
-
main: "Main",
|
|
2679
|
-
sub: "Sub"
|
|
2680
|
-
}
|
|
2655
|
+
outcome: "Status"
|
|
2681
2656
|
},
|
|
2682
2657
|
outcome: {
|
|
2683
2658
|
success: "Success",
|
|
@@ -2804,41 +2779,7 @@ const On = {
|
|
|
2804
2779
|
},
|
|
2805
2780
|
"approval-code": {
|
|
2806
2781
|
create: "Created approval code for {name}",
|
|
2807
|
-
revoke: "Revoked approval code"
|
|
2808
|
-
use: "Use approval code"
|
|
2809
|
-
},
|
|
2810
|
-
counter: {
|
|
2811
|
-
open: "Open counter",
|
|
2812
|
-
close: "Close counter"
|
|
2813
|
-
},
|
|
2814
|
-
counterRecord: {
|
|
2815
|
-
manage: "Manage counter"
|
|
2816
|
-
},
|
|
2817
|
-
order: {
|
|
2818
|
-
void: "Void order",
|
|
2819
|
-
discount: "Apply discount",
|
|
2820
|
-
urgent: "Mark order urgent",
|
|
2821
|
-
resend: "Resend order",
|
|
2822
|
-
changePrice: "Change price",
|
|
2823
|
-
changePaymentType: "Change payment type",
|
|
2824
|
-
payment: "Take payment",
|
|
2825
|
-
claimDeposit: "Claim deposit",
|
|
2826
|
-
waiveServiceCharge: "Waive service charge",
|
|
2827
|
-
update: "Update order"
|
|
2828
|
-
},
|
|
2829
|
-
refund: {
|
|
2830
|
-
create: "Refund",
|
|
2831
|
-
manage: "Manage refunds"
|
|
2832
|
-
},
|
|
2833
|
-
drawer: {
|
|
2834
|
-
open: "Open cash drawer",
|
|
2835
|
-
manage: "Manage cash drawer"
|
|
2836
|
-
},
|
|
2837
|
-
paymentType: {
|
|
2838
|
-
manage: "Manage payment types"
|
|
2839
|
-
},
|
|
2840
|
-
report: {
|
|
2841
|
-
read: "View report"
|
|
2782
|
+
revoke: "Revoked approval code"
|
|
2842
2783
|
},
|
|
2843
2784
|
"portal-user": {
|
|
2844
2785
|
list: "Listed team members",
|
|
@@ -2914,9 +2855,7 @@ const On = {
|
|
|
2914
2855
|
status_placeholder: "สถานะ",
|
|
2915
2856
|
selected_status_prefix: "สถานะ: ",
|
|
2916
2857
|
outcome_placeholder: "สถานะ",
|
|
2917
|
-
selected_outcome_prefix: "สถานะ: "
|
|
2918
|
-
restaurant_placeholder: "ร้านอาหาร",
|
|
2919
|
-
selected_restaurant_prefix: "ร้านอาหาร: "
|
|
2858
|
+
selected_outcome_prefix: "สถานะ: "
|
|
2920
2859
|
},
|
|
2921
2860
|
action: {
|
|
2922
2861
|
manage: "จัดการ",
|
|
@@ -2933,7 +2872,6 @@ const On = {
|
|
|
2933
2872
|
payment: "การชำระเงิน",
|
|
2934
2873
|
menu: "เมนู",
|
|
2935
2874
|
crm: "CRM",
|
|
2936
|
-
pos: "POS",
|
|
2937
2875
|
other: "อื่นๆ",
|
|
2938
2876
|
more: "เพิ่มเติม"
|
|
2939
2877
|
},
|
|
@@ -2943,29 +2881,7 @@ const On = {
|
|
|
2943
2881
|
subject: "หัวข้อ",
|
|
2944
2882
|
action: "การดำเนินการ",
|
|
2945
2883
|
operation: "รายละเอียดการดำเนินการ",
|
|
2946
|
-
outcome: "สถานะ"
|
|
2947
|
-
restaurant: "ร้านอาหาร",
|
|
2948
|
-
device: "อุปกรณ์",
|
|
2949
|
-
approver: "ผู้อนุมัติ"
|
|
2950
|
-
},
|
|
2951
|
-
pos: {
|
|
2952
|
-
unverified: "ยังไม่ยืนยัน",
|
|
2953
|
-
approverInline: "ผู้อนุมัติ: {name}",
|
|
2954
|
-
viaCode: "ผ่านรหัสอนุมัติ",
|
|
2955
|
-
details: {
|
|
2956
|
-
eventKey: "คีย์เหตุการณ์",
|
|
2957
|
-
appVersion: "เวอร์ชันแอป",
|
|
2958
|
-
clock: "เวลาอุปกรณ์",
|
|
2959
|
-
clamped: "ปรับเวลาแล้ว",
|
|
2960
|
-
params: "พารามิเตอร์"
|
|
2961
|
-
},
|
|
2962
|
-
device: {
|
|
2963
|
-
posV7: "POS v7 (รหัสอนุมัติ)"
|
|
2964
|
-
},
|
|
2965
|
-
mode: {
|
|
2966
|
-
main: "เครื่องหลัก",
|
|
2967
|
-
sub: "เครื่องรอง"
|
|
2968
|
-
}
|
|
2884
|
+
outcome: "สถานะ"
|
|
2969
2885
|
},
|
|
2970
2886
|
outcome: {
|
|
2971
2887
|
success: "สำเร็จ",
|
|
@@ -3093,41 +3009,7 @@ const On = {
|
|
|
3093
3009
|
},
|
|
3094
3010
|
"approval-code": {
|
|
3095
3011
|
create: "สร้างรหัสอนุมัติสำหรับ {name}",
|
|
3096
|
-
revoke: "เพิกถอนรหัสอนุมัติ"
|
|
3097
|
-
use: "ใช้รหัสอนุมัติ"
|
|
3098
|
-
},
|
|
3099
|
-
counter: {
|
|
3100
|
-
open: "เปิดเคาน์เตอร์",
|
|
3101
|
-
close: "ปิดเคาน์เตอร์"
|
|
3102
|
-
},
|
|
3103
|
-
counterRecord: {
|
|
3104
|
-
manage: "จัดการเคาน์เตอร์"
|
|
3105
|
-
},
|
|
3106
|
-
order: {
|
|
3107
|
-
void: "ยกเลิกออเดอร์",
|
|
3108
|
-
discount: "ใช้ส่วนลด",
|
|
3109
|
-
urgent: "ทำเครื่องหมายเร่งด่วน",
|
|
3110
|
-
resend: "ส่งออเดอร์อีกครั้ง",
|
|
3111
|
-
changePrice: "เปลี่ยนราคา",
|
|
3112
|
-
changePaymentType: "เปลี่ยนวิธีชำระเงิน",
|
|
3113
|
-
payment: "รับชำระเงิน",
|
|
3114
|
-
claimDeposit: "รับเงินมัดจำ",
|
|
3115
|
-
waiveServiceCharge: "ยกเว้นค่าบริการ",
|
|
3116
|
-
update: "อัปเดตออเดอร์"
|
|
3117
|
-
},
|
|
3118
|
-
refund: {
|
|
3119
|
-
create: "คืนเงิน",
|
|
3120
|
-
manage: "จัดการการคืนเงิน"
|
|
3121
|
-
},
|
|
3122
|
-
drawer: {
|
|
3123
|
-
open: "เปิดลิ้นชักเก็บเงิน",
|
|
3124
|
-
manage: "จัดการลิ้นชักเก็บเงิน"
|
|
3125
|
-
},
|
|
3126
|
-
paymentType: {
|
|
3127
|
-
manage: "จัดการวิธีชำระเงิน"
|
|
3128
|
-
},
|
|
3129
|
-
report: {
|
|
3130
|
-
read: "ดูรายงาน"
|
|
3012
|
+
revoke: "เพิกถอนรหัสอนุมัติ"
|
|
3131
3013
|
},
|
|
3132
3014
|
"portal-user": {
|
|
3133
3015
|
list: "ดูรายการสมาชิกทีม",
|
|
@@ -3166,12 +3048,12 @@ const On = {
|
|
|
3166
3048
|
}, Ro = {
|
|
3167
3049
|
date: kn,
|
|
3168
3050
|
auditLog: Rn
|
|
3169
|
-
},
|
|
3051
|
+
}, Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3170
3052
|
__proto__: null,
|
|
3171
3053
|
auditLog: Rn,
|
|
3172
3054
|
date: kn,
|
|
3173
3055
|
default: Ro
|
|
3174
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3056
|
+
}, Symbol.toStringTag, { value: "Module" })), Hn = {
|
|
3175
3057
|
predefinedRanges: {
|
|
3176
3058
|
today: "今天",
|
|
3177
3059
|
yesterday: "昨天",
|
|
@@ -3181,7 +3063,7 @@ const On = {
|
|
|
3181
3063
|
thisMonth: "本月",
|
|
3182
3064
|
lastMonth: "上月"
|
|
3183
3065
|
}
|
|
3184
|
-
},
|
|
3066
|
+
}, In = {
|
|
3185
3067
|
title: "审计日志",
|
|
3186
3068
|
export: "导出",
|
|
3187
3069
|
dateRange: {
|
|
@@ -3203,9 +3085,7 @@ const On = {
|
|
|
3203
3085
|
status_placeholder: "状态",
|
|
3204
3086
|
selected_status_prefix: "状态: ",
|
|
3205
3087
|
outcome_placeholder: "状态",
|
|
3206
|
-
selected_outcome_prefix: "状态: "
|
|
3207
|
-
restaurant_placeholder: "餐厅",
|
|
3208
|
-
selected_restaurant_prefix: "餐厅:"
|
|
3088
|
+
selected_outcome_prefix: "状态: "
|
|
3209
3089
|
},
|
|
3210
3090
|
action: {
|
|
3211
3091
|
manage: "管理",
|
|
@@ -3222,7 +3102,6 @@ const On = {
|
|
|
3222
3102
|
payment: "支付",
|
|
3223
3103
|
menu: "菜单",
|
|
3224
3104
|
crm: "CRM",
|
|
3225
|
-
pos: "POS",
|
|
3226
3105
|
other: "其他",
|
|
3227
3106
|
more: "更多"
|
|
3228
3107
|
},
|
|
@@ -3232,29 +3111,7 @@ const On = {
|
|
|
3232
3111
|
subject: "主题",
|
|
3233
3112
|
action: "操作说明",
|
|
3234
3113
|
operation: "操作说明",
|
|
3235
|
-
outcome: "状态"
|
|
3236
|
-
restaurant: "餐厅",
|
|
3237
|
-
device: "设备",
|
|
3238
|
-
approver: "审批人"
|
|
3239
|
-
},
|
|
3240
|
-
pos: {
|
|
3241
|
-
unverified: "未验证",
|
|
3242
|
-
approverInline: "审批人:{name}",
|
|
3243
|
-
viaCode: "通过审批码",
|
|
3244
|
-
details: {
|
|
3245
|
-
eventKey: "事件键",
|
|
3246
|
-
appVersion: "应用版本",
|
|
3247
|
-
clock: "设备时间",
|
|
3248
|
-
clamped: "已校正时间",
|
|
3249
|
-
params: "参数"
|
|
3250
|
-
},
|
|
3251
|
-
device: {
|
|
3252
|
-
posV7: "POS v7(审批码)"
|
|
3253
|
-
},
|
|
3254
|
-
mode: {
|
|
3255
|
-
main: "主机",
|
|
3256
|
-
sub: "副机"
|
|
3257
|
-
}
|
|
3114
|
+
outcome: "状态"
|
|
3258
3115
|
},
|
|
3259
3116
|
outcome: {
|
|
3260
3117
|
success: "成功",
|
|
@@ -3382,41 +3239,7 @@ const On = {
|
|
|
3382
3239
|
},
|
|
3383
3240
|
"approval-code": {
|
|
3384
3241
|
create: "为 {name} 创建了审批码",
|
|
3385
|
-
revoke: "撤销了审批码"
|
|
3386
|
-
use: "使用审批码"
|
|
3387
|
-
},
|
|
3388
|
-
counter: {
|
|
3389
|
-
open: "开启柜台",
|
|
3390
|
-
close: "关闭柜台"
|
|
3391
|
-
},
|
|
3392
|
-
counterRecord: {
|
|
3393
|
-
manage: "管理柜台"
|
|
3394
|
-
},
|
|
3395
|
-
order: {
|
|
3396
|
-
void: "作废订单",
|
|
3397
|
-
discount: "应用折扣",
|
|
3398
|
-
urgent: "标记加急",
|
|
3399
|
-
resend: "重新发送订单",
|
|
3400
|
-
changePrice: "修改价格",
|
|
3401
|
-
changePaymentType: "更改付款方式",
|
|
3402
|
-
payment: "收款",
|
|
3403
|
-
claimDeposit: "领取押金",
|
|
3404
|
-
waiveServiceCharge: "免除服务费",
|
|
3405
|
-
update: "更新订单"
|
|
3406
|
-
},
|
|
3407
|
-
refund: {
|
|
3408
|
-
create: "退款",
|
|
3409
|
-
manage: "管理退款"
|
|
3410
|
-
},
|
|
3411
|
-
drawer: {
|
|
3412
|
-
open: "打开钱箱",
|
|
3413
|
-
manage: "管理钱箱"
|
|
3414
|
-
},
|
|
3415
|
-
paymentType: {
|
|
3416
|
-
manage: "管理付款方式"
|
|
3417
|
-
},
|
|
3418
|
-
report: {
|
|
3419
|
-
read: "查看报表"
|
|
3242
|
+
revoke: "撤销了审批码"
|
|
3420
3243
|
},
|
|
3421
3244
|
"portal-user": {
|
|
3422
3245
|
list: "查看了团队成员列表",
|
|
@@ -3452,15 +3275,15 @@ const On = {
|
|
|
3452
3275
|
}
|
|
3453
3276
|
}
|
|
3454
3277
|
}
|
|
3455
|
-
},
|
|
3456
|
-
date:
|
|
3457
|
-
auditLog:
|
|
3458
|
-
},
|
|
3278
|
+
}, Io = {
|
|
3279
|
+
date: Hn,
|
|
3280
|
+
auditLog: In
|
|
3281
|
+
}, To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3459
3282
|
__proto__: null,
|
|
3460
|
-
auditLog:
|
|
3461
|
-
date:
|
|
3462
|
-
default:
|
|
3463
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3283
|
+
auditLog: In,
|
|
3284
|
+
date: Hn,
|
|
3285
|
+
default: Io
|
|
3286
|
+
}, Symbol.toStringTag, { value: "Module" })), Tn = {
|
|
3464
3287
|
predefinedRanges: {
|
|
3465
3288
|
today: "今天",
|
|
3466
3289
|
yesterday: "昨天",
|
|
@@ -3492,9 +3315,7 @@ const On = {
|
|
|
3492
3315
|
status_placeholder: "狀態",
|
|
3493
3316
|
selected_status_prefix: "狀態: ",
|
|
3494
3317
|
outcome_placeholder: "狀態",
|
|
3495
|
-
selected_outcome_prefix: "狀態: "
|
|
3496
|
-
restaurant_placeholder: "餐廳",
|
|
3497
|
-
selected_restaurant_prefix: "餐廳:"
|
|
3318
|
+
selected_outcome_prefix: "狀態: "
|
|
3498
3319
|
},
|
|
3499
3320
|
action: {
|
|
3500
3321
|
manage: "管理",
|
|
@@ -3511,7 +3332,6 @@ const On = {
|
|
|
3511
3332
|
payment: "支付",
|
|
3512
3333
|
menu: "菜單",
|
|
3513
3334
|
crm: "CRM",
|
|
3514
|
-
pos: "POS",
|
|
3515
3335
|
other: "其他",
|
|
3516
3336
|
more: "更多"
|
|
3517
3337
|
},
|
|
@@ -3521,29 +3341,7 @@ const On = {
|
|
|
3521
3341
|
subject: "主題",
|
|
3522
3342
|
action: "操作說明",
|
|
3523
3343
|
operation: "操作說明",
|
|
3524
|
-
outcome: "狀態"
|
|
3525
|
-
restaurant: "餐廳",
|
|
3526
|
-
device: "裝置",
|
|
3527
|
-
approver: "審批人"
|
|
3528
|
-
},
|
|
3529
|
-
pos: {
|
|
3530
|
-
unverified: "未驗證",
|
|
3531
|
-
approverInline: "審批人:{name}",
|
|
3532
|
-
viaCode: "透過審批碼",
|
|
3533
|
-
details: {
|
|
3534
|
-
eventKey: "事件鍵",
|
|
3535
|
-
appVersion: "應用版本",
|
|
3536
|
-
clock: "裝置時間",
|
|
3537
|
-
clamped: "已校正時間",
|
|
3538
|
-
params: "參數"
|
|
3539
|
-
},
|
|
3540
|
-
device: {
|
|
3541
|
-
posV7: "POS v7(審批碼)"
|
|
3542
|
-
},
|
|
3543
|
-
mode: {
|
|
3544
|
-
main: "主機",
|
|
3545
|
-
sub: "副機"
|
|
3546
|
-
}
|
|
3344
|
+
outcome: "狀態"
|
|
3547
3345
|
},
|
|
3548
3346
|
outcome: {
|
|
3549
3347
|
success: "成功",
|
|
@@ -3671,41 +3469,7 @@ const On = {
|
|
|
3671
3469
|
},
|
|
3672
3470
|
"approval-code": {
|
|
3673
3471
|
create: "為 {name} 建立了核准碼",
|
|
3674
|
-
revoke: "撤銷了核准碼"
|
|
3675
|
-
use: "使用審批碼"
|
|
3676
|
-
},
|
|
3677
|
-
counter: {
|
|
3678
|
-
open: "開啟櫃台",
|
|
3679
|
-
close: "關閉櫃台"
|
|
3680
|
-
},
|
|
3681
|
-
counterRecord: {
|
|
3682
|
-
manage: "管理櫃台"
|
|
3683
|
-
},
|
|
3684
|
-
order: {
|
|
3685
|
-
void: "作廢訂單",
|
|
3686
|
-
discount: "套用折扣",
|
|
3687
|
-
urgent: "標記加急",
|
|
3688
|
-
resend: "重新發送訂單",
|
|
3689
|
-
changePrice: "修改價格",
|
|
3690
|
-
changePaymentType: "更改付款方式",
|
|
3691
|
-
payment: "收款",
|
|
3692
|
-
claimDeposit: "領取押金",
|
|
3693
|
-
waiveServiceCharge: "免除服務費",
|
|
3694
|
-
update: "更新訂單"
|
|
3695
|
-
},
|
|
3696
|
-
refund: {
|
|
3697
|
-
create: "退款",
|
|
3698
|
-
manage: "管理退款"
|
|
3699
|
-
},
|
|
3700
|
-
drawer: {
|
|
3701
|
-
open: "打開錢箱",
|
|
3702
|
-
manage: "管理錢箱"
|
|
3703
|
-
},
|
|
3704
|
-
paymentType: {
|
|
3705
|
-
manage: "管理付款方式"
|
|
3706
|
-
},
|
|
3707
|
-
report: {
|
|
3708
|
-
read: "查看報表"
|
|
3472
|
+
revoke: "撤銷了核准碼"
|
|
3709
3473
|
},
|
|
3710
3474
|
"portal-user": {
|
|
3711
3475
|
list: "查看了團隊成員列表",
|
|
@@ -3742,17 +3506,17 @@ const On = {
|
|
|
3742
3506
|
}
|
|
3743
3507
|
}
|
|
3744
3508
|
}, qo = {
|
|
3745
|
-
date:
|
|
3509
|
+
date: Tn,
|
|
3746
3510
|
auditLog: qn
|
|
3747
3511
|
}, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3748
3512
|
__proto__: null,
|
|
3749
3513
|
auditLog: qn,
|
|
3750
|
-
date:
|
|
3514
|
+
date: Tn,
|
|
3751
3515
|
default: qo
|
|
3752
3516
|
}, Symbol.toStringTag, { value: "Module" })), Xo = {
|
|
3753
3517
|
"en-US": ko,
|
|
3754
|
-
"zh-CN":
|
|
3755
|
-
"th-TH":
|
|
3518
|
+
"zh-CN": To,
|
|
3519
|
+
"th-TH": Ho,
|
|
3756
3520
|
"zh-Hant": No
|
|
3757
3521
|
}, Nn = {
|
|
3758
3522
|
employee: {
|
|
@@ -6336,9 +6100,9 @@ const On = {
|
|
|
6336
6100
|
demandAndShifts: "Demand + employee shifts",
|
|
6337
6101
|
demandOnly: "Demand only",
|
|
6338
6102
|
clear: "Clear",
|
|
6339
|
-
clearShiftsAndDemand: "
|
|
6340
|
-
clearShifts: "
|
|
6341
|
-
clearDemand: "
|
|
6103
|
+
clearShiftsAndDemand: "Shifts & demand",
|
|
6104
|
+
clearShifts: "Shifts",
|
|
6105
|
+
clearDemand: "Demand",
|
|
6342
6106
|
pdfDescription: "A4 landscape. Preview, then save",
|
|
6343
6107
|
imageDescription: "One picture of the schedule. Send it to the team",
|
|
6344
6108
|
exportSchedule: "Export schedule",
|
|
@@ -6510,9 +6274,9 @@ const On = {
|
|
|
6510
6274
|
demandAndShifts: "Demand + employee shifts",
|
|
6511
6275
|
demandOnly: "Demand only",
|
|
6512
6276
|
clear: "Clear",
|
|
6513
|
-
clearShiftsAndDemand: "
|
|
6514
|
-
clearShifts: "
|
|
6515
|
-
clearDemand: "
|
|
6277
|
+
clearShiftsAndDemand: "Shifts & demand",
|
|
6278
|
+
clearShifts: "Shifts",
|
|
6279
|
+
clearDemand: "Demand",
|
|
6516
6280
|
pdfDescription: "A4 landscape. Preview, then save",
|
|
6517
6281
|
imageDescription: "One picture of the schedule. Send it to the team",
|
|
6518
6282
|
exportSchedule: "Export schedule",
|
|
@@ -6660,7 +6424,7 @@ const On = {
|
|
|
6660
6424
|
comingSoon: "Coming soon."
|
|
6661
6425
|
}, Ri = {
|
|
6662
6426
|
scheduling: Aa
|
|
6663
|
-
},
|
|
6427
|
+
}, Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6664
6428
|
__proto__: null,
|
|
6665
6429
|
default: Ri,
|
|
6666
6430
|
scheduling: Aa
|
|
@@ -6684,9 +6448,9 @@ const On = {
|
|
|
6684
6448
|
demandAndShifts: "Demand + employee shifts",
|
|
6685
6449
|
demandOnly: "Demand only",
|
|
6686
6450
|
clear: "Clear",
|
|
6687
|
-
clearShiftsAndDemand: "
|
|
6688
|
-
clearShifts: "
|
|
6689
|
-
clearDemand: "
|
|
6451
|
+
clearShiftsAndDemand: "Shifts & demand",
|
|
6452
|
+
clearShifts: "Shifts",
|
|
6453
|
+
clearDemand: "Demand",
|
|
6690
6454
|
pdfDescription: "A4 landscape. Preview, then save",
|
|
6691
6455
|
imageDescription: "One picture of the schedule. Send it to the team",
|
|
6692
6456
|
exportSchedule: "Export schedule",
|
|
@@ -6832,11 +6596,11 @@ const On = {
|
|
|
6832
6596
|
addTitle: "Add Position"
|
|
6833
6597
|
},
|
|
6834
6598
|
comingSoon: "Coming soon."
|
|
6835
|
-
},
|
|
6599
|
+
}, Ii = {
|
|
6836
6600
|
scheduling: ga
|
|
6837
|
-
},
|
|
6601
|
+
}, Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6838
6602
|
__proto__: null,
|
|
6839
|
-
default:
|
|
6603
|
+
default: Ii,
|
|
6840
6604
|
scheduling: ga
|
|
6841
6605
|
}, Symbol.toStringTag, { value: "Module" })), pa = {
|
|
6842
6606
|
nav: {
|
|
@@ -6858,9 +6622,9 @@ const On = {
|
|
|
6858
6622
|
demandAndShifts: "Demand + employee shifts",
|
|
6859
6623
|
demandOnly: "Demand only",
|
|
6860
6624
|
clear: "Clear",
|
|
6861
|
-
clearShiftsAndDemand: "
|
|
6862
|
-
clearShifts: "
|
|
6863
|
-
clearDemand: "
|
|
6625
|
+
clearShiftsAndDemand: "Shifts & demand",
|
|
6626
|
+
clearShifts: "Shifts",
|
|
6627
|
+
clearDemand: "Demand",
|
|
6864
6628
|
pdfDescription: "A4 landscape. Preview, then save",
|
|
6865
6629
|
imageDescription: "One picture of the schedule. Send it to the team",
|
|
6866
6630
|
exportSchedule: "Export schedule",
|
|
@@ -7014,8 +6778,8 @@ const On = {
|
|
|
7014
6778
|
scheduling: pa
|
|
7015
6779
|
}, Symbol.toStringTag, { value: "Module" })), Xi = {
|
|
7016
6780
|
"en-US": ki,
|
|
7017
|
-
"zh-CN":
|
|
7018
|
-
"th-TH":
|
|
6781
|
+
"zh-CN": Ti,
|
|
6782
|
+
"th-TH": Hi,
|
|
7019
6783
|
"zh-Hant": Ni
|
|
7020
6784
|
};
|
|
7021
6785
|
var S = /* @__PURE__ */ ((e) => (e.Order = "order", e.Refund = "refund", e.Drawer = "drawer", e.Menu = "menu", e.Inventory = "inventory", e.Deposit = "deposit", e.Delivery = "delivery", e.CounterRecord = "counterRecord", e.Counter = "counter", e.RestaurantSetting = "restaurantSetting", e.Display = "display", e.Printer = "printer", e.Table = "table", e.Employee = "employee", e.System = "system", e.Tax = "tax", e.PaymentType = "paymentType", e.FaceId = "faceId", e.MallIntegration = "mallIntegration", e.Report = "report", e))(S || {}), Re = /* @__PURE__ */ ((e) => (e.Discount = "discount", e.Payment = "payment", e.ClaimDeposit = "claimDeposit", e.ChangePrice = "changePrice", e.Void = "void_", e.WaiveServiceCharge = "waiveServiceCharge", e.Resend = "resend", e.ChangePaymentType = "changePaymentType", e))(Re || {}), k = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(k || {}), re = /* @__PURE__ */ ((e) => (e.Closeup = "closeup", e.Counter = "counter", e.HourlySales = "hourlySales", e.DailySales = "dailySales", e.ProductSales = "productSales", e.SourceProductSales = "sourceProductSales", e.UserProductSales = "userProductSales", e.CategorySales = "categorySales", e.AddonSales = "addonSales", e.SlotSales = "slotSales", e.Drawer = "drawer", e.Discount = "discount", e.Refund = "refund", e.Void = "void_", e.Timesheet = "timesheet", e.CounterPayment = "counterPayment", e))(re || {});
|
|
@@ -8678,7 +8442,7 @@ const Al = [
|
|
|
8678
8442
|
subject: Y.inventory,
|
|
8679
8443
|
actions: [o.read, o.update]
|
|
8680
8444
|
}
|
|
8681
|
-
],
|
|
8445
|
+
], Ha = [
|
|
8682
8446
|
{
|
|
8683
8447
|
label: "Purchase Order",
|
|
8684
8448
|
subject: Y.inventory_purchaseOrder,
|
|
@@ -8719,7 +8483,7 @@ const Al = [
|
|
|
8719
8483
|
subject: Y.inventory_shipment,
|
|
8720
8484
|
actions: [o.read, o.update]
|
|
8721
8485
|
}
|
|
8722
|
-
],
|
|
8486
|
+
], Ia = [
|
|
8723
8487
|
{
|
|
8724
8488
|
label: "Purchase Order",
|
|
8725
8489
|
subject: Y.inventory_purchaseOrder,
|
|
@@ -8740,7 +8504,7 @@ const Al = [
|
|
|
8740
8504
|
subject: Y.inventory_shipment,
|
|
8741
8505
|
actions: [o.read, o.update]
|
|
8742
8506
|
}
|
|
8743
|
-
],
|
|
8507
|
+
], Ta = [
|
|
8744
8508
|
...ue,
|
|
8745
8509
|
{
|
|
8746
8510
|
label: "Surcharge",
|
|
@@ -8788,9 +8552,9 @@ const Al = [
|
|
|
8788
8552
|
}
|
|
8789
8553
|
];
|
|
8790
8554
|
[
|
|
8791
|
-
...Ta,
|
|
8792
8555
|
...Ha,
|
|
8793
8556
|
...Ia,
|
|
8557
|
+
...Ta,
|
|
8794
8558
|
...qa
|
|
8795
8559
|
];
|
|
8796
8560
|
const yl = [
|
|
@@ -8907,7 +8671,7 @@ const Cl = {
|
|
|
8907
8671
|
[`set_${d.inventory_purchaseTransfer}`]: {
|
|
8908
8672
|
key: "sys:inventory:purchase_transfer",
|
|
8909
8673
|
name: "Purchase Transfer",
|
|
8910
|
-
permissions:
|
|
8674
|
+
permissions: Ha
|
|
8911
8675
|
},
|
|
8912
8676
|
[`set_${d.inventory_orderDraftApproval}`]: {
|
|
8913
8677
|
key: "sys:inventory:order_draft_approval",
|
|
@@ -8917,12 +8681,12 @@ const Cl = {
|
|
|
8917
8681
|
[`set_${d.inventory_transferOut}`]: {
|
|
8918
8682
|
key: "sys:inventory:transfer_out",
|
|
8919
8683
|
name: "Transfer Out",
|
|
8920
|
-
permissions:
|
|
8684
|
+
permissions: Ia
|
|
8921
8685
|
},
|
|
8922
8686
|
[`set_${d.inventory_surcharge}`]: {
|
|
8923
8687
|
key: "sys:inventory:surcharge",
|
|
8924
8688
|
name: "Surcharge",
|
|
8925
|
-
permissions:
|
|
8689
|
+
permissions: Ta
|
|
8926
8690
|
},
|
|
8927
8691
|
[`set_${d.inventory_orderTemplate}`]: {
|
|
8928
8692
|
key: "sys:inventory:order_template",
|
|
@@ -8955,7 +8719,7 @@ const Cl = {
|
|
|
8955
8719
|
permissions: Bl
|
|
8956
8720
|
}
|
|
8957
8721
|
};
|
|
8958
|
-
var
|
|
8722
|
+
var He = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(He || {});
|
|
8959
8723
|
const Ml = {
|
|
8960
8724
|
/**
|
|
8961
8725
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
@@ -8968,7 +8732,7 @@ const Ml = {
|
|
|
8968
8732
|
permissions: [
|
|
8969
8733
|
{
|
|
8970
8734
|
label: "Portal Users",
|
|
8971
|
-
subject:
|
|
8735
|
+
subject: He.hrm_portalUsers,
|
|
8972
8736
|
actions: [o.manage]
|
|
8973
8737
|
},
|
|
8974
8738
|
{
|
|
@@ -8978,12 +8742,12 @@ const Ml = {
|
|
|
8978
8742
|
},
|
|
8979
8743
|
{
|
|
8980
8744
|
label: "Pos Role",
|
|
8981
|
-
subject:
|
|
8745
|
+
subject: He.hrm_posRole,
|
|
8982
8746
|
actions: [o.read]
|
|
8983
8747
|
},
|
|
8984
8748
|
{
|
|
8985
8749
|
label: "Restaurant resource",
|
|
8986
|
-
subject:
|
|
8750
|
+
subject: He.hrm_restaurant,
|
|
8987
8751
|
actions: [o.read]
|
|
8988
8752
|
}
|
|
8989
8753
|
]
|
|
@@ -8998,17 +8762,17 @@ const Ml = {
|
|
|
8998
8762
|
permissions: [
|
|
8999
8763
|
{
|
|
9000
8764
|
label: "Portal Users",
|
|
9001
|
-
subject:
|
|
8765
|
+
subject: He.hrm_portalUsers,
|
|
9002
8766
|
actions: [o.read]
|
|
9003
8767
|
},
|
|
9004
8768
|
{
|
|
9005
8769
|
label: "Restaurant resource",
|
|
9006
|
-
subject:
|
|
8770
|
+
subject: He.hrm_restaurant,
|
|
9007
8771
|
actions: [o.read]
|
|
9008
8772
|
},
|
|
9009
8773
|
{
|
|
9010
8774
|
label: "Pos Role",
|
|
9011
|
-
subject:
|
|
8775
|
+
subject: He.hrm_posRole,
|
|
9012
8776
|
actions: [o.manage]
|
|
9013
8777
|
}
|
|
9014
8778
|
]
|
|
@@ -9025,7 +8789,7 @@ const Ml = {
|
|
|
9025
8789
|
permissions: [
|
|
9026
8790
|
{
|
|
9027
8791
|
label: "Portal Users",
|
|
9028
|
-
subject:
|
|
8792
|
+
subject: He.hrm_portalUsers,
|
|
9029
8793
|
actions: [o.read]
|
|
9030
8794
|
}
|
|
9031
8795
|
]
|
|
@@ -9040,7 +8804,7 @@ const Ml = {
|
|
|
9040
8804
|
permissions: [
|
|
9041
8805
|
{
|
|
9042
8806
|
label: "Restaurant resource",
|
|
9043
|
-
subject:
|
|
8807
|
+
subject: He.hrm_restaurant,
|
|
9044
8808
|
actions: [o.read]
|
|
9045
8809
|
}
|
|
9046
8810
|
]
|
|
@@ -9312,29 +9076,29 @@ var Qa = { exports: {} };
|
|
|
9312
9076
|
if (!(E instanceof Array)) {
|
|
9313
9077
|
var O = D(E);
|
|
9314
9078
|
if (O === E && r(E) === "object") {
|
|
9315
|
-
for (
|
|
9316
|
-
if (String(A[
|
|
9079
|
+
for (T = A.length; T--; )
|
|
9080
|
+
if (String(A[T]) === String(E) && String(E) !== "[object Object]")
|
|
9317
9081
|
return !0;
|
|
9318
9082
|
}
|
|
9319
9083
|
if (O === void 0) {
|
|
9320
|
-
for (
|
|
9084
|
+
for (T = A.length; T--; ) if (A[T] == null) return !0;
|
|
9321
9085
|
}
|
|
9322
|
-
for (
|
|
9323
|
-
var R = W(ht(w(A,
|
|
9086
|
+
for (T = A.length; T--; ) {
|
|
9087
|
+
var R = W(ht(w(A, T), B), O, T, A);
|
|
9324
9088
|
if (R && String(R) !== "[object Object]" && String(O) !== "[object Object]")
|
|
9325
9089
|
return !0;
|
|
9326
9090
|
}
|
|
9327
9091
|
return !!~A.indexOf(O);
|
|
9328
9092
|
}
|
|
9329
|
-
for (var
|
|
9330
|
-
if (~A.indexOf(D(w(E,
|
|
9093
|
+
for (var T = E.length; T--; )
|
|
9094
|
+
if (~A.indexOf(D(w(E, T)))) return !0;
|
|
9331
9095
|
return !1;
|
|
9332
9096
|
};
|
|
9333
9097
|
},
|
|
9334
9098
|
$nin: function(A, p, B) {
|
|
9335
9099
|
var D = oe.$in(A, p, B);
|
|
9336
|
-
return function(E, O, R,
|
|
9337
|
-
return !D(E, O, R,
|
|
9100
|
+
return function(E, O, R, T) {
|
|
9101
|
+
return !D(E, O, R, T);
|
|
9338
9102
|
};
|
|
9339
9103
|
},
|
|
9340
9104
|
$mod: function(A) {
|
|
@@ -9344,8 +9108,8 @@ var Qa = { exports: {} };
|
|
|
9344
9108
|
},
|
|
9345
9109
|
$ne: function(A, p, B) {
|
|
9346
9110
|
var D = oe.$eq(A, p, B);
|
|
9347
|
-
return Z(function(E, O, R,
|
|
9348
|
-
return !D(E, O, R,
|
|
9111
|
+
return Z(function(E, O, R, T) {
|
|
9112
|
+
return !D(E, O, R, T);
|
|
9349
9113
|
});
|
|
9350
9114
|
},
|
|
9351
9115
|
$and: function(A, p, B) {
|
|
@@ -9403,9 +9167,9 @@ var Qa = { exports: {} };
|
|
|
9403
9167
|
var R = O[0];
|
|
9404
9168
|
return W(D, R[0], R[1], R[2]);
|
|
9405
9169
|
}
|
|
9406
|
-
for (var
|
|
9170
|
+
for (var T = E && E.$ne !== void 0, te = T, ae = 0; ae < O.length; ae++) {
|
|
9407
9171
|
var f = O[ae], u = W(D, f[0], f[1], f[2]);
|
|
9408
|
-
|
|
9172
|
+
T ? te &= u : te |= u;
|
|
9409
9173
|
}
|
|
9410
9174
|
return te;
|
|
9411
9175
|
}
|
|
@@ -9414,29 +9178,29 @@ var Qa = { exports: {} };
|
|
|
9414
9178
|
}
|
|
9415
9179
|
function Ce(A) {
|
|
9416
9180
|
var p = A.comparable, B = A.expressions, D = function(R) {
|
|
9417
|
-
var
|
|
9418
|
-
return (!R || !(
|
|
9181
|
+
var T;
|
|
9182
|
+
return (!R || !(T = R) || T.constructor !== Object && T.constructor !== Array && T.constructor.toString() !== "function Object() { [native code] }" && T.constructor.toString() !== "function Array() { [native code] }" || T.toJSON) && (R = { $eq: R }), R;
|
|
9419
9183
|
}, E = function(R) {
|
|
9420
9184
|
R = p(R);
|
|
9421
|
-
var
|
|
9185
|
+
var T = [];
|
|
9422
9186
|
for (var te in R) {
|
|
9423
9187
|
var ae = R[te];
|
|
9424
9188
|
if (te !== "$options") {
|
|
9425
9189
|
var f = se[te] || A && B && B[te];
|
|
9426
|
-
if (f) oe[te] && (ae = oe[te](ae, R, A)),
|
|
9190
|
+
if (f) oe[te] && (ae = oe[te](ae, R, A)), T.push(fe(p(ae), f));
|
|
9427
9191
|
else {
|
|
9428
9192
|
if (te.charCodeAt(0) === 36)
|
|
9429
9193
|
throw new Error("Unknown operation " + te);
|
|
9430
9194
|
var u = te.split(".");
|
|
9431
|
-
|
|
9195
|
+
T.push(ss(u, O(ae), ae));
|
|
9432
9196
|
}
|
|
9433
9197
|
}
|
|
9434
9198
|
}
|
|
9435
|
-
return
|
|
9199
|
+
return T.length === 1 ? T[0] : fe(T, se.$and);
|
|
9436
9200
|
}, O = function(R) {
|
|
9437
|
-
return R = D(R), function
|
|
9201
|
+
return R = D(R), function T(te, ae) {
|
|
9438
9202
|
if (!h(te)) return ae;
|
|
9439
|
-
for (var f in te) ae.push(f),
|
|
9203
|
+
for (var f in te) ae.push(f), T(te[f], ae);
|
|
9440
9204
|
return ae;
|
|
9441
9205
|
}(R, []).join(",").search(/[$.]/) === -1 ? fe(R, Le) : E(R);
|
|
9442
9206
|
};
|
|
@@ -9612,9 +9376,9 @@ function kl(e) {
|
|
|
9612
9376
|
function Rl(e) {
|
|
9613
9377
|
return JSON.parse(JSON.stringify(e));
|
|
9614
9378
|
}
|
|
9615
|
-
var
|
|
9379
|
+
var Hl = /[-/\\^$+?.()|[\]{}]/g, Il = /\.?\*+\.?/g, Tl = /\*+/, ql = /\./g;
|
|
9616
9380
|
function Nl(e, t, s) {
|
|
9617
|
-
var n = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", r = e.replace(ql, "\\$&").replace(
|
|
9381
|
+
var n = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", r = e.replace(ql, "\\$&").replace(Tl, a + n);
|
|
9618
9382
|
return t + e.length === s.length ? "(?:" + r + ")?" : r;
|
|
9619
9383
|
}
|
|
9620
9384
|
function Xl(e, t, s) {
|
|
@@ -9622,7 +9386,7 @@ function Xl(e, t, s) {
|
|
|
9622
9386
|
}
|
|
9623
9387
|
function Ql(e) {
|
|
9624
9388
|
var t = e.map(function(n) {
|
|
9625
|
-
return n.replace(
|
|
9389
|
+
return n.replace(Hl, Xl).replace(Il, Nl);
|
|
9626
9390
|
}), s = t.length > 1 ? "(?:" + t.join("|") + ")" : t[0];
|
|
9627
9391
|
return new RegExp("^" + s + "$");
|
|
9628
9392
|
}
|
|
@@ -9857,7 +9621,7 @@ function $l(e, t, s) {
|
|
|
9857
9621
|
} finally {
|
|
9858
9622
|
r && Z === w && (r.value = !1), W = !0;
|
|
9859
9623
|
}
|
|
9860
|
-
}), a ?
|
|
9624
|
+
}), a ? Is(() => (h.value = !0, y.value)) : y;
|
|
9861
9625
|
}
|
|
9862
9626
|
async function ec(e) {
|
|
9863
9627
|
const { sessionUser: t, validationManifest: s } = e, { requiredRoles: n, requiredCaslPermissions: a, customValidationFunction: r } = s;
|
|
@@ -9972,7 +9736,7 @@ const nc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
9972
9736
|
__name: "PermissionWrapper",
|
|
9973
9737
|
setup(e) {
|
|
9974
9738
|
const t = sc();
|
|
9975
|
-
return (s, n) => $e(t) === $e(Rs).Denied ? (rt(), $t(yc, { key: 0 })) : $e(t) === $e(Rs).Allowed ?
|
|
9739
|
+
return (s, n) => $e(t) === $e(Rs).Denied ? (rt(), $t(yc, { key: 0 })) : $e(t) === $e(Rs).Allowed ? Ts(s.$slots, "default", { key: 1 }) : $a("", !0);
|
|
9976
9740
|
}
|
|
9977
9741
|
});
|
|
9978
9742
|
function ot(e) {
|
|
@@ -10008,7 +9772,7 @@ function vc(e, t) {
|
|
|
10008
9772
|
const wc = /* @__PURE__ */ at({
|
|
10009
9773
|
__name: "FullWrapper",
|
|
10010
9774
|
setup(e) {
|
|
10011
|
-
const t = or(), s = Ue(null), n = vc(s), a =
|
|
9775
|
+
const t = or(), s = Ue(null), n = vc(s), a = Is(() => {
|
|
10012
9776
|
var c;
|
|
10013
9777
|
const l = t.isAtMost("sm") ? 56 : 0;
|
|
10014
9778
|
return {
|
|
@@ -10020,7 +9784,7 @@ const wc = /* @__PURE__ */ at({
|
|
|
10020
9784
|
ref: s,
|
|
10021
9785
|
style: sr(a.value)
|
|
10022
9786
|
}, [
|
|
10023
|
-
|
|
9787
|
+
Ts(r.$slots, "default")
|
|
10024
9788
|
], 4));
|
|
10025
9789
|
}
|
|
10026
9790
|
}), Bc = { class: "flex justify-center items-center h-full w-full" }, Cc = /* @__PURE__ */ at({
|
|
@@ -10046,7 +9810,7 @@ const wc = /* @__PURE__ */ at({
|
|
|
10046
9810
|
setup(e) {
|
|
10047
9811
|
return (t, s) => (rt(), qs("div", Mc, [
|
|
10048
9812
|
Xe("div", Dc, [
|
|
10049
|
-
|
|
9813
|
+
Ts(t.$slots, "default")
|
|
10050
9814
|
])
|
|
10051
9815
|
]));
|
|
10052
9816
|
}
|
|
@@ -10069,16 +9833,16 @@ const _e = (e) => ({
|
|
|
10069
9833
|
}
|
|
10070
9834
|
]
|
|
10071
9835
|
}
|
|
10072
|
-
}), jc = ot(pe(() => import("./Main-
|
|
10073
|
-
pe(() => import("./AuditLogList-
|
|
10074
|
-
), Oc = ot(pe(() => import("./Main-
|
|
10075
|
-
() => import("./PermissionSetList-
|
|
10076
|
-
), Tc = Ws(
|
|
10077
|
-
ot(pe(() => import("./SchedulePage-B7M5fPIA.js")))
|
|
9836
|
+
}), jc = ot(pe(() => import("./Main-m39gMG-a.js"))), Ec = ot(pe(() => import("./Main-B27Qx8R2.js"))), Pc = ot(
|
|
9837
|
+
pe(() => import("./AuditLogList-CqqiS2xW.js"))
|
|
9838
|
+
), Oc = ot(pe(() => import("./Main-C0gVAR92.js"))), Gc = pe(() => import("./ApprovalCodeList-D5E_FN3f.js")), Yc = pe(() => import("./GrantUserList-DA26W3K3.js")), Vc = pe(() => import("./EmployeeList-ChMlGxmu.js")), Fc = pe(() => import("./RoleList-BPayuLxA.js")), Sc = pe(() => import("./TimesheetList-DFAfhWYG.js")), kc = pe(() => import("./TeamMemberList-CIlvRlf8.js")), Rc = pe(
|
|
9839
|
+
() => import("./PermissionSetList-mdA65jmw.js")
|
|
10078
9840
|
), Hc = Ws(
|
|
10079
|
-
ot(pe(() => import("./
|
|
9841
|
+
ot(pe(() => import("./SchedulePage-DhbtCR8U.js")))
|
|
10080
9842
|
), Ic = Ws(
|
|
10081
|
-
ot(pe(() => import("./
|
|
9843
|
+
ot(pe(() => import("./SchedulePositionPage-BUQy-Itg.js")))
|
|
9844
|
+
), Tc = Ws(
|
|
9845
|
+
ot(pe(() => import("./ScheduleGeneralPage-sAqR1-hf.js")))
|
|
10082
9846
|
), ou = [
|
|
10083
9847
|
{
|
|
10084
9848
|
path: "/",
|
|
@@ -10160,19 +9924,19 @@ const _e = (e) => ({
|
|
|
10160
9924
|
{
|
|
10161
9925
|
path: "/schedule",
|
|
10162
9926
|
name: "schedule",
|
|
10163
|
-
component:
|
|
9927
|
+
component: Hc,
|
|
10164
9928
|
meta: _e(Ne.Subject.Business.hrm_scheduling)
|
|
10165
9929
|
},
|
|
10166
9930
|
{
|
|
10167
9931
|
path: "/schedule/position",
|
|
10168
9932
|
name: "schedule-position",
|
|
10169
|
-
component:
|
|
9933
|
+
component: Ic,
|
|
10170
9934
|
meta: _e(Ne.Subject.Business.hrm_scheduling)
|
|
10171
9935
|
},
|
|
10172
9936
|
{
|
|
10173
9937
|
path: "/schedule/general",
|
|
10174
9938
|
name: "schedule-general",
|
|
10175
|
-
component:
|
|
9939
|
+
component: Tc,
|
|
10176
9940
|
meta: _e(Ne.Subject.Business.hrm_scheduling)
|
|
10177
9941
|
},
|
|
10178
9942
|
// Old bookmarks / deep links from before the POS Access merge.
|
|
@@ -10192,7 +9956,7 @@ const _e = (e) => ({
|
|
|
10192
9956
|
async function r(h) {
|
|
10193
9957
|
await a.push({ name: h, query: a.currentRoute.value.query }), await fn(), s("close-navigation");
|
|
10194
9958
|
}
|
|
10195
|
-
const l =
|
|
9959
|
+
const l = Is(() => {
|
|
10196
9960
|
const h = [];
|
|
10197
9961
|
return h.push({
|
|
10198
9962
|
label: n("hr.employee.title"),
|
|
@@ -10291,7 +10055,7 @@ const _e = (e) => ({
|
|
|
10291
10055
|
};
|
|
10292
10056
|
}
|
|
10293
10057
|
});
|
|
10294
|
-
var
|
|
10058
|
+
var Hs = { exports: {} };
|
|
10295
10059
|
(function(e, t) {
|
|
10296
10060
|
(function(s, n) {
|
|
10297
10061
|
n(t);
|
|
@@ -10627,18 +10391,18 @@ var Ts = { exports: {} };
|
|
|
10627
10391
|
Ae.setLoadingState(a(a({}, Ae.loadingState), { isFetching: !1, isLoading: !1, error: we })), xe == null || xe(we);
|
|
10628
10392
|
}, this.enableLogs = ve || !1, this.cacheOptions = lt ? { skipAPI: !!lt.skipAPI, ttl: lt.ttl || 0, storageKey: lt.storageKey, loadStale: !!lt.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."), Me && (V = Me), this.enableAnalytics = bt || !1, this.flags = Object.assign({}, ye) || {}, this.datadogRum = de || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ie !== void 0 && !!L, Ce = "FLAGSMITH_EVENT_" + b.environment.apiKey, K && (ie = K), vt && typeof window < "u" && this.setupRealtime(me, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = a(a({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Ls), this.log("Initialising with properties", u, this), je && (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), as && (V = /* @__PURE__ */ function(we) {
|
|
10629
10393
|
return function(Ee, Pe) {
|
|
10630
|
-
var
|
|
10394
|
+
var Te = Pe.headers, _ = Pe.method, ut = Pe.body;
|
|
10631
10395
|
return new Promise(function(Ke) {
|
|
10632
10396
|
switch (_) {
|
|
10633
10397
|
case "GET":
|
|
10634
|
-
return we.get(Ee, { headers:
|
|
10398
|
+
return we.get(Ee, { headers: Te }).subscribe(function(ke) {
|
|
10635
10399
|
Ke({ ok: !0, text: function() {
|
|
10636
10400
|
return Promise.resolve(ke);
|
|
10637
10401
|
} });
|
|
10638
10402
|
});
|
|
10639
10403
|
case "POST":
|
|
10640
10404
|
case "PUT":
|
|
10641
|
-
return we.post(Ee, ut, { headers:
|
|
10405
|
+
return we.post(Ee, ut, { headers: Te }).subscribe(function(ke) {
|
|
10642
10406
|
Ke({ ok: !0, text: function() {
|
|
10643
10407
|
return Promise.resolve(ke);
|
|
10644
10408
|
} });
|
|
@@ -10657,22 +10421,22 @@ var Ts = { exports: {} };
|
|
|
10657
10421
|
if (Ee && Ae.evaluationContext.environment) {
|
|
10658
10422
|
var Pe = JSON.parse(Ee);
|
|
10659
10423
|
if (Pe[Ae.evaluationContext.environment.apiKey]) {
|
|
10660
|
-
var
|
|
10661
|
-
Ae.log("Retrieved events from cache", Ee), Ae.setState(a(a({},
|
|
10424
|
+
var Te = Ae.getState();
|
|
10425
|
+
Ae.log("Retrieved events from cache", Ee), Ae.setState(a(a({}, Te), { evaluationEvent: Pe[Ae.evaluationContext.environment.apiKey] }));
|
|
10662
10426
|
}
|
|
10663
10427
|
}
|
|
10664
10428
|
})), !L) return [3, 9];
|
|
10665
10429
|
if (!ie || !this.canUseStorage) return [3, 8];
|
|
10666
10430
|
_s = function(we, Ee) {
|
|
10667
10431
|
return r(Ae, void 0, void 0, function() {
|
|
10668
|
-
var Pe,
|
|
10432
|
+
var Pe, Te, _, ut, Ke, ke, is, en, ls, cs, us, ds, ms, As, gs, ps, hs, fs, ys, bs, vs, ws, Bs, Cs, tn = this;
|
|
10669
10433
|
return l(this, function(qe) {
|
|
10670
10434
|
switch (qe.label) {
|
|
10671
10435
|
case 0:
|
|
10672
10436
|
if (!Ee) return [3, 7];
|
|
10673
|
-
Pe = null,
|
|
10437
|
+
Pe = null, Te = null, qe.label = 1;
|
|
10674
10438
|
case 1:
|
|
10675
|
-
return qe.trys.push([1, 5, , 6]), _ = JSON.parse(Ee), ut = !1, Ke = !1, _ && _.api === this.api && ((cs = (ls = _.evaluationContext) === null || ls === void 0 ? void 0 : ls.environment) === null || cs === void 0 ? void 0 : cs.apiKey) === ((us = this.evaluationContext.environment) === null || us === void 0 ? void 0 : us.apiKey) && (ke = !0, this.evaluationContext.identity && ((ms = (ds = _.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity) === null || ms === void 0 ? void 0 : ms.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((gs = (As = _.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || gs === void 0 ? void 0 : gs.identifier) + " to " + this.evaluationContext.identity.identifier), ke = !1), this.cacheOptions.ttl && (!_.ts || (/* @__PURE__ */ new Date()).valueOf() - _.ts > this.cacheOptions.ttl) && (_.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), ke = !1) : _.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), Ke = !0, ke = !0)), ke && (ut = !0,
|
|
10439
|
+
return qe.trys.push([1, 5, , 6]), _ = JSON.parse(Ee), ut = !1, Ke = !1, _ && _.api === this.api && ((cs = (ls = _.evaluationContext) === null || ls === void 0 ? void 0 : ls.environment) === null || cs === void 0 ? void 0 : cs.apiKey) === ((us = this.evaluationContext.environment) === null || us === void 0 ? void 0 : us.apiKey) && (ke = !0, this.evaluationContext.identity && ((ms = (ds = _.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity) === null || ms === void 0 ? void 0 : ms.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((gs = (As = _.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || gs === void 0 ? void 0 : gs.identifier) + " to " + this.evaluationContext.identity.identifier), ke = !1), this.cacheOptions.ttl && (!_.ts || (/* @__PURE__ */ new Date()).valueOf() - _.ts > this.cacheOptions.ttl) && (_.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), ke = !1) : _.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), Ke = !0, ke = !0)), ke && (ut = !0, Te = y((ps = this.evaluationContext.identity) === null || ps === void 0 ? void 0 : ps.traits, (fs = (hs = _.evaluationContext) === null || hs === void 0 ? void 0 : hs.identity) === null || fs === void 0 ? void 0 : fs.traits), Pe = y(this.flags, _.flags), this.setState(a(a({}, _), { evaluationContext: oe(a(a({}, _.evaluationContext), { identity: !((ys = _.evaluationContext) === null || ys === void 0) && ys.identity ? a(a({}, (bs = _.evaluationContext) === null || bs === void 0 ? void 0 : bs.identity), { traits: a(a({}, ((ws = (vs = _.evaluationContext) === null || vs === void 0 ? void 0 : vs.identity) === null || ws === void 0 ? void 0 : ws.traits) || {}), wt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", _))), ut ? (is = !be && (!this.cacheOptions.skipAPI || Ke), this._onChange(null, { isFromServer: !1, flagsChanged: Pe, traitsChanged: Te }, this._loadedState(null, w.CACHE, is)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && ut && !Ke && this.log("Skipping API, using cache"), is && this.getFlags().catch(function(Wa) {
|
|
10676
10440
|
var Ms;
|
|
10677
10441
|
(Ms = tn.onError) === null || Ms === void 0 || Ms.call(tn, Wa);
|
|
10678
10442
|
}), [3, 4]) : [3, 2];
|
|
@@ -10832,7 +10596,7 @@ var Ts = { exports: {} };
|
|
|
10832
10596
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
10833
10597
|
}
|
|
10834
10598
|
return B(u, f), u;
|
|
10835
|
-
}(Error),
|
|
10599
|
+
}(Error), T = function() {
|
|
10836
10600
|
function f(u, i) {
|
|
10837
10601
|
var g = this;
|
|
10838
10602
|
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = i != null ? Object.assign({}, i) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = u.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new R();
|
|
@@ -10936,13 +10700,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
10936
10700
|
}, m.onerror = g, m.withCredentials = u.credentials == "include", u.headers) m.setRequestHeader(X, u.headers[X]);
|
|
10937
10701
|
m.send(u.body || null);
|
|
10938
10702
|
});
|
|
10939
|
-
}, ae = A({ AsyncStorage: n, fetch: te, eventSource:
|
|
10703
|
+
}, ae = A({ AsyncStorage: n, fetch: te, eventSource: T });
|
|
10940
10704
|
typeof window < "u" && (window.flagsmith = ae), s.createFlagsmithInstance = function() {
|
|
10941
|
-
return A({ AsyncStorage: n, fetch: te, eventSource:
|
|
10705
|
+
return A({ AsyncStorage: n, fetch: te, eventSource: T });
|
|
10942
10706
|
}, s.default = ae, Object.defineProperty(s, "__esModule", { value: !0 });
|
|
10943
10707
|
});
|
|
10944
|
-
})(
|
|
10945
|
-
var Nc =
|
|
10708
|
+
})(Hs, Hs.exports);
|
|
10709
|
+
var Nc = Hs.exports, Xc = {
|
|
10946
10710
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first."
|
|
10947
10711
|
}, pn = "business", Oe, Qc = (Oe = class {
|
|
10948
10712
|
constructor() {
|
|
@@ -11124,7 +10888,7 @@ const iu = /* @__PURE__ */ at({
|
|
|
11124
10888
|
};
|
|
11125
10889
|
}
|
|
11126
10890
|
});
|
|
11127
|
-
var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.
|
|
10891
|
+
var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.8", mode: "fmmf" };
|
|
11128
10892
|
console.log(
|
|
11129
10893
|
`%c${xs.name}%c v${xs.version} %c${xs.mode}`,
|
|
11130
10894
|
"background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
|