@feedmepos/mf-hrm-portal 2.3.0-dev.4 → 2.3.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-Pbk3MAP_.js → ApprovalCodeList-Cf1l-ult.js} +2 -2
- package/dist/AuditLogList-D1sMrERs.js +1951 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DPbHx_I8.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BdbfGDI_.js} +2 -2
- package/dist/{EmployeeList-0KpegAhT.js → EmployeeList-sc773luN.js} +4 -4
- package/dist/{GrantUserList-BUkzqot_.js → GrantUserList-2XTroUF8.js} +3 -3
- package/dist/{Main-CNk6IUSX.js → Main-BIo4YcWF.js} +2 -2
- package/dist/{Main-DgmmoN5E.js → Main-BNCfG0Sg.js} +5 -5
- package/dist/{Main-Dx_th1rt.js → Main-CCGYrZsD.js} +9 -9
- package/dist/{PermissionSetList-CzZGiCsv.js → PermissionSetList-7Ut1F99N.js} +5 -5
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B1l2xUpn.js +4167 -0
- package/dist/{RoleList-BE4zTMIf.js → RoleList-DMKdy74J.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BPBc1yaM.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CI94gSkp.js} +1 -1
- package/dist/{ScheduleGeneralPage-OvoLCcup.js → ScheduleGeneralPage-DGdnq7oV.js} +4 -4
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-BOkU6VUe.js → ScheduleModal.vue_vue_type_script_setup_true_lang-Cq-zMPW_.js} +622 -605
- package/dist/{SchedulePage-CujQTlC7.js → SchedulePage-B7M5fPIA.js} +6136 -6020
- package/dist/{SchedulePositionPage-DJ7HABNZ.js → SchedulePositionPage-DeorKiCc.js} +9 -9
- package/dist/{TeamMemberList-DcMBkqKA.js → TeamMemberList-CQswHBEk.js} +6 -6
- package/dist/{TimesheetList-EFkDNiyH.js → TimesheetList-lWsJuha_.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DK7LWwL3.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CLgmz6LT.js} +2 -2
- package/dist/{app-Bljy7Tiw.js → app-MTWSOw4U.js} +452 -216
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-6PYBuPpr.js → dayjs.min-9rM_szda.js} +1 -1
- package/dist/{employee-BabFWzgV.js → employee-BvtW9sI6.js} +3 -3
- package/dist/{iteration-DFJixFmV.js → iteration-Byna7hj1.js} +1 -1
- package/dist/{lodash-CfHZzOs8.js → lodash-CnwRhwQm.js} +1 -1
- package/dist/{role-DzPtXGaE.js → role-N_-ZZfhy.js} +1 -1
- package/dist/{rule-DM5JuuR6.js → rule-B9-ryqfq.js} +2 -2
- package/dist/src/api/audit-log/index.d.ts +4 -0
- package/dist/src/api/schedule/index.d.ts +3 -1
- package/dist/src/types/schedule.d.ts +1 -1
- package/dist/src/views/audit-log/constants.d.ts +9 -30
- package/dist/src/views/audit-log/locales/index.d.ts +236 -0
- package/dist/src/views/audit-log/pos-row.d.ts +27 -0
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -5
- package/dist/src/views/scheduling/schedule-store.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-vTUP3ZOL.js → useReportPermissions-BSOsfpnM.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-B4gAQD41.js +0 -1779
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-t_OkpC_R.js +0 -4167
|
@@ -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 Hs, h as Rt, defineComponent as at, createBlock as $t, renderSlot as Is, 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 He 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 Ie extends Error {
|
|
|
168
168
|
return this.flatten();
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
He.create = (e) => new He(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 Tt() {
|
|
230
230
|
return Bn;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const Ht = (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 It = (e) => {
|
|
|
245
245
|
};
|
|
246
246
|
}, mr = [];
|
|
247
247
|
function P(e, t) {
|
|
248
|
-
const s =
|
|
248
|
+
const s = Ht({
|
|
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
|
+
Tt(),
|
|
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 H;
|
|
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 H;
|
|
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 H = 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", It = (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 (It(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 He(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: T.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: T.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: T.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
|
+
), H;
|
|
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: T.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
|
+
}), H;
|
|
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: T.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
|
+
}), H;
|
|
810
810
|
}
|
|
811
811
|
return ce(t.data);
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
qt.create = (e) => new qt({
|
|
815
|
-
typeName:
|
|
815
|
+
typeName: T.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
|
+
}), H;
|
|
827
827
|
}
|
|
828
828
|
return ce(t.data);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
Nt.create = (e) => new Nt({
|
|
832
|
-
typeName:
|
|
832
|
+
typeName: T.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
|
+
}), H;
|
|
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
|
+
}), H;
|
|
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: T.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
|
+
}), H;
|
|
919
919
|
}
|
|
920
920
|
return ce(t.data);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
Xt.create = (e) => new Xt({
|
|
924
|
-
typeName:
|
|
924
|
+
typeName: T.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
|
+
}), H;
|
|
936
936
|
}
|
|
937
937
|
return ce(t.data);
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
Qt.create = (e) => new Qt({
|
|
941
|
-
typeName:
|
|
941
|
+
typeName: T.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: T.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: T.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
|
+
}), H;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
We.create = (e) => new We({
|
|
979
|
-
typeName:
|
|
979
|
+
typeName: T.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
|
+
}), H;
|
|
991
991
|
}
|
|
992
992
|
return ce(t.data);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
Zt.create = (e) => new Zt({
|
|
996
|
-
typeName:
|
|
996
|
+
typeName: T.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
|
+
}), H;
|
|
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: T.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
|
+
}), H;
|
|
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: T.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: T.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: T.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: T.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 He(c.ctx.common.issues));
|
|
1295
1295
|
return P(s, {
|
|
1296
1296
|
code: M.invalid_union,
|
|
1297
1297
|
unionErrors: l
|
|
1298
|
-
}),
|
|
1298
|
+
}), H;
|
|
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 He(h));
|
|
1342
1342
|
return P(s, {
|
|
1343
1343
|
code: M.invalid_union,
|
|
1344
1344
|
unionErrors: c
|
|
1345
|
-
}),
|
|
1345
|
+
}), H;
|
|
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: T.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
|
+
}), H;
|
|
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
|
+
}), H);
|
|
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: T.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 H;
|
|
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
|
+
}), H);
|
|
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: T.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
|
+
}), H;
|
|
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
|
+
}), H;
|
|
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: T.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
|
+
}), H;
|
|
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: T.ZodRecord,
|
|
1557
1557
|
...N(n)
|
|
1558
1558
|
}) : new Ot({
|
|
1559
1559
|
keyType: ze.create(),
|
|
1560
1560
|
valueType: t,
|
|
1561
|
-
typeName:
|
|
1561
|
+
typeName: T.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
|
+
}), H;
|
|
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 H;
|
|
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 H;
|
|
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: T.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
|
+
}), H;
|
|
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 H;
|
|
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: T.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
|
+
}), H;
|
|
1682
1682
|
function n(c, h) {
|
|
1683
|
-
return
|
|
1683
|
+
return Ht({
|
|
1684
1684
|
data: c,
|
|
1685
1685
|
path: s.path,
|
|
1686
1686
|
errorMaps: [
|
|
1687
1687
|
s.common.contextualErrorMap,
|
|
1688
1688
|
s.schemaErrorMap,
|
|
1689
|
-
|
|
1689
|
+
Tt(),
|
|
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 Ht({
|
|
1700
1700
|
data: c,
|
|
1701
1701
|
path: s.path,
|
|
1702
1702
|
errorMaps: [
|
|
1703
1703
|
s.common.contextualErrorMap,
|
|
1704
1704
|
s.schemaErrorMap,
|
|
1705
|
-
|
|
1705
|
+
Tt(),
|
|
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 He([]), 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 He([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 He([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: T.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: T.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
|
+
}), H;
|
|
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: T.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: T.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
|
+
}), H;
|
|
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
|
+
}), H;
|
|
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
|
+
}), H;
|
|
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
|
+
}), H;
|
|
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: T.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
|
+
}), H;
|
|
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: T.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" ? H : (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" ? H : (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 (!It(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) => It(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: T.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: T.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: T.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: T.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: T.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
|
+
}), H;
|
|
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: T.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 T;
|
|
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
|
+
})(T || (T = {}));
|
|
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, Tr = tt.create, Hr = st.create, Ir = 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: Ht,
|
|
2055
2055
|
EMPTY_PATH: mr,
|
|
2056
2056
|
addIssueToContext: P,
|
|
2057
2057
|
ParseStatus: le,
|
|
2058
|
-
INVALID:
|
|
2058
|
+
INVALID: H,
|
|
2059
2059
|
DIRTY: Ar,
|
|
2060
2060
|
OK: ce,
|
|
2061
2061
|
isAborted: js,
|
|
2062
2062
|
isDirty: Es,
|
|
2063
|
-
isValid:
|
|
2063
|
+
isValid: It,
|
|
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 T;
|
|
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: Hr,
|
|
2118
2118
|
instanceof: br,
|
|
2119
2119
|
intersection: Fr,
|
|
2120
|
-
lazy:
|
|
2120
|
+
lazy: Ir,
|
|
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: Tr,
|
|
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: He,
|
|
2149
2149
|
defaultErrorMap: jt,
|
|
2150
2150
|
setErrorMap: dr,
|
|
2151
|
-
getErrorMap:
|
|
2151
|
+
getErrorMap: Tt
|
|
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,7 +2626,9 @@ const On = {
|
|
|
2626
2626
|
status_placeholder: "Status",
|
|
2627
2627
|
selected_status_prefix: "Status: ",
|
|
2628
2628
|
outcome_placeholder: "Status",
|
|
2629
|
-
selected_outcome_prefix: "Status: "
|
|
2629
|
+
selected_outcome_prefix: "Status: ",
|
|
2630
|
+
restaurant_placeholder: "Restaurant",
|
|
2631
|
+
selected_restaurant_prefix: "Restaurant: "
|
|
2630
2632
|
},
|
|
2631
2633
|
action: {
|
|
2632
2634
|
manage: "Manage",
|
|
@@ -2643,6 +2645,7 @@ const On = {
|
|
|
2643
2645
|
payment: "Payment",
|
|
2644
2646
|
menu: "Menu",
|
|
2645
2647
|
crm: "CRM",
|
|
2648
|
+
pos: "POS",
|
|
2646
2649
|
other: "Other",
|
|
2647
2650
|
more: "More"
|
|
2648
2651
|
},
|
|
@@ -2652,7 +2655,29 @@ const On = {
|
|
|
2652
2655
|
subject: "Subject",
|
|
2653
2656
|
action: "Action Description",
|
|
2654
2657
|
operation: "Operation",
|
|
2655
|
-
outcome: "Status"
|
|
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
|
+
}
|
|
2656
2681
|
},
|
|
2657
2682
|
outcome: {
|
|
2658
2683
|
success: "Success",
|
|
@@ -2779,7 +2804,41 @@ const On = {
|
|
|
2779
2804
|
},
|
|
2780
2805
|
"approval-code": {
|
|
2781
2806
|
create: "Created approval code for {name}",
|
|
2782
|
-
revoke: "Revoked approval code"
|
|
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"
|
|
2783
2842
|
},
|
|
2784
2843
|
"portal-user": {
|
|
2785
2844
|
list: "Listed team members",
|
|
@@ -2855,7 +2914,9 @@ const On = {
|
|
|
2855
2914
|
status_placeholder: "สถานะ",
|
|
2856
2915
|
selected_status_prefix: "สถานะ: ",
|
|
2857
2916
|
outcome_placeholder: "สถานะ",
|
|
2858
|
-
selected_outcome_prefix: "สถานะ: "
|
|
2917
|
+
selected_outcome_prefix: "สถานะ: ",
|
|
2918
|
+
restaurant_placeholder: "ร้านอาหาร",
|
|
2919
|
+
selected_restaurant_prefix: "ร้านอาหาร: "
|
|
2859
2920
|
},
|
|
2860
2921
|
action: {
|
|
2861
2922
|
manage: "จัดการ",
|
|
@@ -2872,6 +2933,7 @@ const On = {
|
|
|
2872
2933
|
payment: "การชำระเงิน",
|
|
2873
2934
|
menu: "เมนู",
|
|
2874
2935
|
crm: "CRM",
|
|
2936
|
+
pos: "POS",
|
|
2875
2937
|
other: "อื่นๆ",
|
|
2876
2938
|
more: "เพิ่มเติม"
|
|
2877
2939
|
},
|
|
@@ -2881,7 +2943,29 @@ const On = {
|
|
|
2881
2943
|
subject: "หัวข้อ",
|
|
2882
2944
|
action: "การดำเนินการ",
|
|
2883
2945
|
operation: "รายละเอียดการดำเนินการ",
|
|
2884
|
-
outcome: "สถานะ"
|
|
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
|
+
}
|
|
2885
2969
|
},
|
|
2886
2970
|
outcome: {
|
|
2887
2971
|
success: "สำเร็จ",
|
|
@@ -3009,7 +3093,41 @@ const On = {
|
|
|
3009
3093
|
},
|
|
3010
3094
|
"approval-code": {
|
|
3011
3095
|
create: "สร้างรหัสอนุมัติสำหรับ {name}",
|
|
3012
|
-
revoke: "เพิกถอนรหัสอนุมัติ"
|
|
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: "ดูรายงาน"
|
|
3013
3131
|
},
|
|
3014
3132
|
"portal-user": {
|
|
3015
3133
|
list: "ดูรายการสมาชิกทีม",
|
|
@@ -3048,12 +3166,12 @@ const On = {
|
|
|
3048
3166
|
}, Ro = {
|
|
3049
3167
|
date: kn,
|
|
3050
3168
|
auditLog: Rn
|
|
3051
|
-
},
|
|
3169
|
+
}, To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3052
3170
|
__proto__: null,
|
|
3053
3171
|
auditLog: Rn,
|
|
3054
3172
|
date: kn,
|
|
3055
3173
|
default: Ro
|
|
3056
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3174
|
+
}, Symbol.toStringTag, { value: "Module" })), Tn = {
|
|
3057
3175
|
predefinedRanges: {
|
|
3058
3176
|
today: "今天",
|
|
3059
3177
|
yesterday: "昨天",
|
|
@@ -3063,7 +3181,7 @@ const On = {
|
|
|
3063
3181
|
thisMonth: "本月",
|
|
3064
3182
|
lastMonth: "上月"
|
|
3065
3183
|
}
|
|
3066
|
-
},
|
|
3184
|
+
}, Hn = {
|
|
3067
3185
|
title: "审计日志",
|
|
3068
3186
|
export: "导出",
|
|
3069
3187
|
dateRange: {
|
|
@@ -3085,7 +3203,9 @@ const On = {
|
|
|
3085
3203
|
status_placeholder: "状态",
|
|
3086
3204
|
selected_status_prefix: "状态: ",
|
|
3087
3205
|
outcome_placeholder: "状态",
|
|
3088
|
-
selected_outcome_prefix: "状态: "
|
|
3206
|
+
selected_outcome_prefix: "状态: ",
|
|
3207
|
+
restaurant_placeholder: "餐厅",
|
|
3208
|
+
selected_restaurant_prefix: "餐厅:"
|
|
3089
3209
|
},
|
|
3090
3210
|
action: {
|
|
3091
3211
|
manage: "管理",
|
|
@@ -3102,6 +3222,7 @@ const On = {
|
|
|
3102
3222
|
payment: "支付",
|
|
3103
3223
|
menu: "菜单",
|
|
3104
3224
|
crm: "CRM",
|
|
3225
|
+
pos: "POS",
|
|
3105
3226
|
other: "其他",
|
|
3106
3227
|
more: "更多"
|
|
3107
3228
|
},
|
|
@@ -3111,7 +3232,29 @@ const On = {
|
|
|
3111
3232
|
subject: "主题",
|
|
3112
3233
|
action: "操作说明",
|
|
3113
3234
|
operation: "操作说明",
|
|
3114
|
-
outcome: "状态"
|
|
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
|
+
}
|
|
3115
3258
|
},
|
|
3116
3259
|
outcome: {
|
|
3117
3260
|
success: "成功",
|
|
@@ -3239,7 +3382,41 @@ const On = {
|
|
|
3239
3382
|
},
|
|
3240
3383
|
"approval-code": {
|
|
3241
3384
|
create: "为 {name} 创建了审批码",
|
|
3242
|
-
revoke: "撤销了审批码"
|
|
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: "查看报表"
|
|
3243
3420
|
},
|
|
3244
3421
|
"portal-user": {
|
|
3245
3422
|
list: "查看了团队成员列表",
|
|
@@ -3275,15 +3452,15 @@ const On = {
|
|
|
3275
3452
|
}
|
|
3276
3453
|
}
|
|
3277
3454
|
}
|
|
3278
|
-
},
|
|
3279
|
-
date:
|
|
3280
|
-
auditLog:
|
|
3281
|
-
},
|
|
3455
|
+
}, Ho = {
|
|
3456
|
+
date: Tn,
|
|
3457
|
+
auditLog: Hn
|
|
3458
|
+
}, Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3282
3459
|
__proto__: null,
|
|
3283
|
-
auditLog:
|
|
3284
|
-
date:
|
|
3285
|
-
default:
|
|
3286
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3460
|
+
auditLog: Hn,
|
|
3461
|
+
date: Tn,
|
|
3462
|
+
default: Ho
|
|
3463
|
+
}, Symbol.toStringTag, { value: "Module" })), In = {
|
|
3287
3464
|
predefinedRanges: {
|
|
3288
3465
|
today: "今天",
|
|
3289
3466
|
yesterday: "昨天",
|
|
@@ -3315,7 +3492,9 @@ const On = {
|
|
|
3315
3492
|
status_placeholder: "狀態",
|
|
3316
3493
|
selected_status_prefix: "狀態: ",
|
|
3317
3494
|
outcome_placeholder: "狀態",
|
|
3318
|
-
selected_outcome_prefix: "狀態: "
|
|
3495
|
+
selected_outcome_prefix: "狀態: ",
|
|
3496
|
+
restaurant_placeholder: "餐廳",
|
|
3497
|
+
selected_restaurant_prefix: "餐廳:"
|
|
3319
3498
|
},
|
|
3320
3499
|
action: {
|
|
3321
3500
|
manage: "管理",
|
|
@@ -3332,6 +3511,7 @@ const On = {
|
|
|
3332
3511
|
payment: "支付",
|
|
3333
3512
|
menu: "菜單",
|
|
3334
3513
|
crm: "CRM",
|
|
3514
|
+
pos: "POS",
|
|
3335
3515
|
other: "其他",
|
|
3336
3516
|
more: "更多"
|
|
3337
3517
|
},
|
|
@@ -3341,7 +3521,29 @@ const On = {
|
|
|
3341
3521
|
subject: "主題",
|
|
3342
3522
|
action: "操作說明",
|
|
3343
3523
|
operation: "操作說明",
|
|
3344
|
-
outcome: "狀態"
|
|
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
|
+
}
|
|
3345
3547
|
},
|
|
3346
3548
|
outcome: {
|
|
3347
3549
|
success: "成功",
|
|
@@ -3469,7 +3671,41 @@ const On = {
|
|
|
3469
3671
|
},
|
|
3470
3672
|
"approval-code": {
|
|
3471
3673
|
create: "為 {name} 建立了核准碼",
|
|
3472
|
-
revoke: "撤銷了核准碼"
|
|
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: "查看報表"
|
|
3473
3709
|
},
|
|
3474
3710
|
"portal-user": {
|
|
3475
3711
|
list: "查看了團隊成員列表",
|
|
@@ -3506,17 +3742,17 @@ const On = {
|
|
|
3506
3742
|
}
|
|
3507
3743
|
}
|
|
3508
3744
|
}, qo = {
|
|
3509
|
-
date:
|
|
3745
|
+
date: In,
|
|
3510
3746
|
auditLog: qn
|
|
3511
3747
|
}, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3512
3748
|
__proto__: null,
|
|
3513
3749
|
auditLog: qn,
|
|
3514
|
-
date:
|
|
3750
|
+
date: In,
|
|
3515
3751
|
default: qo
|
|
3516
3752
|
}, Symbol.toStringTag, { value: "Module" })), Xo = {
|
|
3517
3753
|
"en-US": ko,
|
|
3518
|
-
"zh-CN":
|
|
3519
|
-
"th-TH":
|
|
3754
|
+
"zh-CN": Io,
|
|
3755
|
+
"th-TH": To,
|
|
3520
3756
|
"zh-Hant": No
|
|
3521
3757
|
}, Nn = {
|
|
3522
3758
|
employee: {
|
|
@@ -6424,7 +6660,7 @@ const On = {
|
|
|
6424
6660
|
comingSoon: "Coming soon."
|
|
6425
6661
|
}, Ri = {
|
|
6426
6662
|
scheduling: Aa
|
|
6427
|
-
},
|
|
6663
|
+
}, Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6428
6664
|
__proto__: null,
|
|
6429
6665
|
default: Ri,
|
|
6430
6666
|
scheduling: Aa
|
|
@@ -6596,11 +6832,11 @@ const On = {
|
|
|
6596
6832
|
addTitle: "Add Position"
|
|
6597
6833
|
},
|
|
6598
6834
|
comingSoon: "Coming soon."
|
|
6599
|
-
},
|
|
6835
|
+
}, Hi = {
|
|
6600
6836
|
scheduling: ga
|
|
6601
|
-
},
|
|
6837
|
+
}, Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6602
6838
|
__proto__: null,
|
|
6603
|
-
default:
|
|
6839
|
+
default: Hi,
|
|
6604
6840
|
scheduling: ga
|
|
6605
6841
|
}, Symbol.toStringTag, { value: "Module" })), pa = {
|
|
6606
6842
|
nav: {
|
|
@@ -6778,8 +7014,8 @@ const On = {
|
|
|
6778
7014
|
scheduling: pa
|
|
6779
7015
|
}, Symbol.toStringTag, { value: "Module" })), Xi = {
|
|
6780
7016
|
"en-US": ki,
|
|
6781
|
-
"zh-CN":
|
|
6782
|
-
"th-TH":
|
|
7017
|
+
"zh-CN": Ii,
|
|
7018
|
+
"th-TH": Ti,
|
|
6783
7019
|
"zh-Hant": Ni
|
|
6784
7020
|
};
|
|
6785
7021
|
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 || {});
|
|
@@ -8442,7 +8678,7 @@ const Al = [
|
|
|
8442
8678
|
subject: Y.inventory,
|
|
8443
8679
|
actions: [o.read, o.update]
|
|
8444
8680
|
}
|
|
8445
|
-
],
|
|
8681
|
+
], Ta = [
|
|
8446
8682
|
{
|
|
8447
8683
|
label: "Purchase Order",
|
|
8448
8684
|
subject: Y.inventory_purchaseOrder,
|
|
@@ -8483,7 +8719,7 @@ const Al = [
|
|
|
8483
8719
|
subject: Y.inventory_shipment,
|
|
8484
8720
|
actions: [o.read, o.update]
|
|
8485
8721
|
}
|
|
8486
|
-
],
|
|
8722
|
+
], Ha = [
|
|
8487
8723
|
{
|
|
8488
8724
|
label: "Purchase Order",
|
|
8489
8725
|
subject: Y.inventory_purchaseOrder,
|
|
@@ -8504,7 +8740,7 @@ const Al = [
|
|
|
8504
8740
|
subject: Y.inventory_shipment,
|
|
8505
8741
|
actions: [o.read, o.update]
|
|
8506
8742
|
}
|
|
8507
|
-
],
|
|
8743
|
+
], Ia = [
|
|
8508
8744
|
...ue,
|
|
8509
8745
|
{
|
|
8510
8746
|
label: "Surcharge",
|
|
@@ -8552,9 +8788,9 @@ const Al = [
|
|
|
8552
8788
|
}
|
|
8553
8789
|
];
|
|
8554
8790
|
[
|
|
8791
|
+
...Ta,
|
|
8555
8792
|
...Ha,
|
|
8556
8793
|
...Ia,
|
|
8557
|
-
...Ta,
|
|
8558
8794
|
...qa
|
|
8559
8795
|
];
|
|
8560
8796
|
const yl = [
|
|
@@ -8671,7 +8907,7 @@ const Cl = {
|
|
|
8671
8907
|
[`set_${d.inventory_purchaseTransfer}`]: {
|
|
8672
8908
|
key: "sys:inventory:purchase_transfer",
|
|
8673
8909
|
name: "Purchase Transfer",
|
|
8674
|
-
permissions:
|
|
8910
|
+
permissions: Ta
|
|
8675
8911
|
},
|
|
8676
8912
|
[`set_${d.inventory_orderDraftApproval}`]: {
|
|
8677
8913
|
key: "sys:inventory:order_draft_approval",
|
|
@@ -8681,12 +8917,12 @@ const Cl = {
|
|
|
8681
8917
|
[`set_${d.inventory_transferOut}`]: {
|
|
8682
8918
|
key: "sys:inventory:transfer_out",
|
|
8683
8919
|
name: "Transfer Out",
|
|
8684
|
-
permissions:
|
|
8920
|
+
permissions: Ha
|
|
8685
8921
|
},
|
|
8686
8922
|
[`set_${d.inventory_surcharge}`]: {
|
|
8687
8923
|
key: "sys:inventory:surcharge",
|
|
8688
8924
|
name: "Surcharge",
|
|
8689
|
-
permissions:
|
|
8925
|
+
permissions: Ia
|
|
8690
8926
|
},
|
|
8691
8927
|
[`set_${d.inventory_orderTemplate}`]: {
|
|
8692
8928
|
key: "sys:inventory:order_template",
|
|
@@ -8719,7 +8955,7 @@ const Cl = {
|
|
|
8719
8955
|
permissions: Bl
|
|
8720
8956
|
}
|
|
8721
8957
|
};
|
|
8722
|
-
var
|
|
8958
|
+
var Te = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(Te || {});
|
|
8723
8959
|
const Ml = {
|
|
8724
8960
|
/**
|
|
8725
8961
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
@@ -8732,7 +8968,7 @@ const Ml = {
|
|
|
8732
8968
|
permissions: [
|
|
8733
8969
|
{
|
|
8734
8970
|
label: "Portal Users",
|
|
8735
|
-
subject:
|
|
8971
|
+
subject: Te.hrm_portalUsers,
|
|
8736
8972
|
actions: [o.manage]
|
|
8737
8973
|
},
|
|
8738
8974
|
{
|
|
@@ -8742,12 +8978,12 @@ const Ml = {
|
|
|
8742
8978
|
},
|
|
8743
8979
|
{
|
|
8744
8980
|
label: "Pos Role",
|
|
8745
|
-
subject:
|
|
8981
|
+
subject: Te.hrm_posRole,
|
|
8746
8982
|
actions: [o.read]
|
|
8747
8983
|
},
|
|
8748
8984
|
{
|
|
8749
8985
|
label: "Restaurant resource",
|
|
8750
|
-
subject:
|
|
8986
|
+
subject: Te.hrm_restaurant,
|
|
8751
8987
|
actions: [o.read]
|
|
8752
8988
|
}
|
|
8753
8989
|
]
|
|
@@ -8762,17 +8998,17 @@ const Ml = {
|
|
|
8762
8998
|
permissions: [
|
|
8763
8999
|
{
|
|
8764
9000
|
label: "Portal Users",
|
|
8765
|
-
subject:
|
|
9001
|
+
subject: Te.hrm_portalUsers,
|
|
8766
9002
|
actions: [o.read]
|
|
8767
9003
|
},
|
|
8768
9004
|
{
|
|
8769
9005
|
label: "Restaurant resource",
|
|
8770
|
-
subject:
|
|
9006
|
+
subject: Te.hrm_restaurant,
|
|
8771
9007
|
actions: [o.read]
|
|
8772
9008
|
},
|
|
8773
9009
|
{
|
|
8774
9010
|
label: "Pos Role",
|
|
8775
|
-
subject:
|
|
9011
|
+
subject: Te.hrm_posRole,
|
|
8776
9012
|
actions: [o.manage]
|
|
8777
9013
|
}
|
|
8778
9014
|
]
|
|
@@ -8789,7 +9025,7 @@ const Ml = {
|
|
|
8789
9025
|
permissions: [
|
|
8790
9026
|
{
|
|
8791
9027
|
label: "Portal Users",
|
|
8792
|
-
subject:
|
|
9028
|
+
subject: Te.hrm_portalUsers,
|
|
8793
9029
|
actions: [o.read]
|
|
8794
9030
|
}
|
|
8795
9031
|
]
|
|
@@ -8804,7 +9040,7 @@ const Ml = {
|
|
|
8804
9040
|
permissions: [
|
|
8805
9041
|
{
|
|
8806
9042
|
label: "Restaurant resource",
|
|
8807
|
-
subject:
|
|
9043
|
+
subject: Te.hrm_restaurant,
|
|
8808
9044
|
actions: [o.read]
|
|
8809
9045
|
}
|
|
8810
9046
|
]
|
|
@@ -9076,29 +9312,29 @@ var Qa = { exports: {} };
|
|
|
9076
9312
|
if (!(E instanceof Array)) {
|
|
9077
9313
|
var O = D(E);
|
|
9078
9314
|
if (O === E && r(E) === "object") {
|
|
9079
|
-
for (
|
|
9080
|
-
if (String(A[
|
|
9315
|
+
for (I = A.length; I--; )
|
|
9316
|
+
if (String(A[I]) === String(E) && String(E) !== "[object Object]")
|
|
9081
9317
|
return !0;
|
|
9082
9318
|
}
|
|
9083
9319
|
if (O === void 0) {
|
|
9084
|
-
for (
|
|
9320
|
+
for (I = A.length; I--; ) if (A[I] == null) return !0;
|
|
9085
9321
|
}
|
|
9086
|
-
for (
|
|
9087
|
-
var R = W(ht(w(A,
|
|
9322
|
+
for (I = A.length; I--; ) {
|
|
9323
|
+
var R = W(ht(w(A, I), B), O, I, A);
|
|
9088
9324
|
if (R && String(R) !== "[object Object]" && String(O) !== "[object Object]")
|
|
9089
9325
|
return !0;
|
|
9090
9326
|
}
|
|
9091
9327
|
return !!~A.indexOf(O);
|
|
9092
9328
|
}
|
|
9093
|
-
for (var
|
|
9094
|
-
if (~A.indexOf(D(w(E,
|
|
9329
|
+
for (var I = E.length; I--; )
|
|
9330
|
+
if (~A.indexOf(D(w(E, I)))) return !0;
|
|
9095
9331
|
return !1;
|
|
9096
9332
|
};
|
|
9097
9333
|
},
|
|
9098
9334
|
$nin: function(A, p, B) {
|
|
9099
9335
|
var D = oe.$in(A, p, B);
|
|
9100
|
-
return function(E, O, R,
|
|
9101
|
-
return !D(E, O, R,
|
|
9336
|
+
return function(E, O, R, I) {
|
|
9337
|
+
return !D(E, O, R, I);
|
|
9102
9338
|
};
|
|
9103
9339
|
},
|
|
9104
9340
|
$mod: function(A) {
|
|
@@ -9108,8 +9344,8 @@ var Qa = { exports: {} };
|
|
|
9108
9344
|
},
|
|
9109
9345
|
$ne: function(A, p, B) {
|
|
9110
9346
|
var D = oe.$eq(A, p, B);
|
|
9111
|
-
return Z(function(E, O, R,
|
|
9112
|
-
return !D(E, O, R,
|
|
9347
|
+
return Z(function(E, O, R, I) {
|
|
9348
|
+
return !D(E, O, R, I);
|
|
9113
9349
|
});
|
|
9114
9350
|
},
|
|
9115
9351
|
$and: function(A, p, B) {
|
|
@@ -9167,9 +9403,9 @@ var Qa = { exports: {} };
|
|
|
9167
9403
|
var R = O[0];
|
|
9168
9404
|
return W(D, R[0], R[1], R[2]);
|
|
9169
9405
|
}
|
|
9170
|
-
for (var
|
|
9406
|
+
for (var I = E && E.$ne !== void 0, te = I, ae = 0; ae < O.length; ae++) {
|
|
9171
9407
|
var f = O[ae], u = W(D, f[0], f[1], f[2]);
|
|
9172
|
-
|
|
9408
|
+
I ? te &= u : te |= u;
|
|
9173
9409
|
}
|
|
9174
9410
|
return te;
|
|
9175
9411
|
}
|
|
@@ -9178,29 +9414,29 @@ var Qa = { exports: {} };
|
|
|
9178
9414
|
}
|
|
9179
9415
|
function Ce(A) {
|
|
9180
9416
|
var p = A.comparable, B = A.expressions, D = function(R) {
|
|
9181
|
-
var
|
|
9182
|
-
return (!R || !(
|
|
9417
|
+
var I;
|
|
9418
|
+
return (!R || !(I = R) || I.constructor !== Object && I.constructor !== Array && I.constructor.toString() !== "function Object() { [native code] }" && I.constructor.toString() !== "function Array() { [native code] }" || I.toJSON) && (R = { $eq: R }), R;
|
|
9183
9419
|
}, E = function(R) {
|
|
9184
9420
|
R = p(R);
|
|
9185
|
-
var
|
|
9421
|
+
var I = [];
|
|
9186
9422
|
for (var te in R) {
|
|
9187
9423
|
var ae = R[te];
|
|
9188
9424
|
if (te !== "$options") {
|
|
9189
9425
|
var f = se[te] || A && B && B[te];
|
|
9190
|
-
if (f) oe[te] && (ae = oe[te](ae, R, A)),
|
|
9426
|
+
if (f) oe[te] && (ae = oe[te](ae, R, A)), I.push(fe(p(ae), f));
|
|
9191
9427
|
else {
|
|
9192
9428
|
if (te.charCodeAt(0) === 36)
|
|
9193
9429
|
throw new Error("Unknown operation " + te);
|
|
9194
9430
|
var u = te.split(".");
|
|
9195
|
-
|
|
9431
|
+
I.push(ss(u, O(ae), ae));
|
|
9196
9432
|
}
|
|
9197
9433
|
}
|
|
9198
9434
|
}
|
|
9199
|
-
return
|
|
9435
|
+
return I.length === 1 ? I[0] : fe(I, se.$and);
|
|
9200
9436
|
}, O = function(R) {
|
|
9201
|
-
return R = D(R), function
|
|
9437
|
+
return R = D(R), function I(te, ae) {
|
|
9202
9438
|
if (!h(te)) return ae;
|
|
9203
|
-
for (var f in te) ae.push(f),
|
|
9439
|
+
for (var f in te) ae.push(f), I(te[f], ae);
|
|
9204
9440
|
return ae;
|
|
9205
9441
|
}(R, []).join(",").search(/[$.]/) === -1 ? fe(R, Le) : E(R);
|
|
9206
9442
|
};
|
|
@@ -9376,9 +9612,9 @@ function kl(e) {
|
|
|
9376
9612
|
function Rl(e) {
|
|
9377
9613
|
return JSON.parse(JSON.stringify(e));
|
|
9378
9614
|
}
|
|
9379
|
-
var
|
|
9615
|
+
var Tl = /[-/\\^$+?.()|[\]{}]/g, Hl = /\.?\*+\.?/g, Il = /\*+/, ql = /\./g;
|
|
9380
9616
|
function Nl(e, t, s) {
|
|
9381
|
-
var n = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", r = e.replace(ql, "\\$&").replace(
|
|
9617
|
+
var n = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", a = e.indexOf("**") === -1 ? "[^.]" : ".", r = e.replace(ql, "\\$&").replace(Il, a + n);
|
|
9382
9618
|
return t + e.length === s.length ? "(?:" + r + ")?" : r;
|
|
9383
9619
|
}
|
|
9384
9620
|
function Xl(e, t, s) {
|
|
@@ -9386,7 +9622,7 @@ function Xl(e, t, s) {
|
|
|
9386
9622
|
}
|
|
9387
9623
|
function Ql(e) {
|
|
9388
9624
|
var t = e.map(function(n) {
|
|
9389
|
-
return n.replace(
|
|
9625
|
+
return n.replace(Tl, Xl).replace(Hl, Nl);
|
|
9390
9626
|
}), s = t.length > 1 ? "(?:" + t.join("|") + ")" : t[0];
|
|
9391
9627
|
return new RegExp("^" + s + "$");
|
|
9392
9628
|
}
|
|
@@ -9621,7 +9857,7 @@ function $l(e, t, s) {
|
|
|
9621
9857
|
} finally {
|
|
9622
9858
|
r && Z === w && (r.value = !1), W = !0;
|
|
9623
9859
|
}
|
|
9624
|
-
}), a ?
|
|
9860
|
+
}), a ? Hs(() => (h.value = !0, y.value)) : y;
|
|
9625
9861
|
}
|
|
9626
9862
|
async function ec(e) {
|
|
9627
9863
|
const { sessionUser: t, validationManifest: s } = e, { requiredRoles: n, requiredCaslPermissions: a, customValidationFunction: r } = s;
|
|
@@ -9736,7 +9972,7 @@ const nc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
9736
9972
|
__name: "PermissionWrapper",
|
|
9737
9973
|
setup(e) {
|
|
9738
9974
|
const t = sc();
|
|
9739
|
-
return (s, n) => $e(t) === $e(Rs).Denied ? (rt(), $t(yc, { key: 0 })) : $e(t) === $e(Rs).Allowed ?
|
|
9975
|
+
return (s, n) => $e(t) === $e(Rs).Denied ? (rt(), $t(yc, { key: 0 })) : $e(t) === $e(Rs).Allowed ? Is(s.$slots, "default", { key: 1 }) : $a("", !0);
|
|
9740
9976
|
}
|
|
9741
9977
|
});
|
|
9742
9978
|
function ot(e) {
|
|
@@ -9772,7 +10008,7 @@ function vc(e, t) {
|
|
|
9772
10008
|
const wc = /* @__PURE__ */ at({
|
|
9773
10009
|
__name: "FullWrapper",
|
|
9774
10010
|
setup(e) {
|
|
9775
|
-
const t = or(), s = Ue(null), n = vc(s), a =
|
|
10011
|
+
const t = or(), s = Ue(null), n = vc(s), a = Hs(() => {
|
|
9776
10012
|
var c;
|
|
9777
10013
|
const l = t.isAtMost("sm") ? 56 : 0;
|
|
9778
10014
|
return {
|
|
@@ -9784,7 +10020,7 @@ const wc = /* @__PURE__ */ at({
|
|
|
9784
10020
|
ref: s,
|
|
9785
10021
|
style: sr(a.value)
|
|
9786
10022
|
}, [
|
|
9787
|
-
|
|
10023
|
+
Is(r.$slots, "default")
|
|
9788
10024
|
], 4));
|
|
9789
10025
|
}
|
|
9790
10026
|
}), Bc = { class: "flex justify-center items-center h-full w-full" }, Cc = /* @__PURE__ */ at({
|
|
@@ -9810,7 +10046,7 @@ const wc = /* @__PURE__ */ at({
|
|
|
9810
10046
|
setup(e) {
|
|
9811
10047
|
return (t, s) => (rt(), qs("div", Mc, [
|
|
9812
10048
|
Xe("div", Dc, [
|
|
9813
|
-
|
|
10049
|
+
Is(t.$slots, "default")
|
|
9814
10050
|
])
|
|
9815
10051
|
]));
|
|
9816
10052
|
}
|
|
@@ -9833,16 +10069,16 @@ const _e = (e) => ({
|
|
|
9833
10069
|
}
|
|
9834
10070
|
]
|
|
9835
10071
|
}
|
|
9836
|
-
}), jc = ot(pe(() => import("./Main-
|
|
9837
|
-
pe(() => import("./AuditLogList-
|
|
9838
|
-
), Oc = ot(pe(() => import("./Main-
|
|
9839
|
-
() => import("./PermissionSetList-
|
|
10072
|
+
}), jc = ot(pe(() => import("./Main-CCGYrZsD.js"))), Ec = ot(pe(() => import("./Main-BNCfG0Sg.js"))), Pc = ot(
|
|
10073
|
+
pe(() => import("./AuditLogList-D1sMrERs.js"))
|
|
10074
|
+
), Oc = ot(pe(() => import("./Main-BIo4YcWF.js"))), Gc = pe(() => import("./ApprovalCodeList-Cf1l-ult.js")), Yc = pe(() => import("./GrantUserList-2XTroUF8.js")), Vc = pe(() => import("./EmployeeList-sc773luN.js")), Fc = pe(() => import("./RoleList-DMKdy74J.js")), Sc = pe(() => import("./TimesheetList-lWsJuha_.js")), kc = pe(() => import("./TeamMemberList-CQswHBEk.js")), Rc = pe(
|
|
10075
|
+
() => import("./PermissionSetList-7Ut1F99N.js")
|
|
10076
|
+
), Tc = Ws(
|
|
10077
|
+
ot(pe(() => import("./SchedulePage-B7M5fPIA.js")))
|
|
9840
10078
|
), Hc = Ws(
|
|
9841
|
-
ot(pe(() => import("./
|
|
10079
|
+
ot(pe(() => import("./SchedulePositionPage-DeorKiCc.js")))
|
|
9842
10080
|
), Ic = Ws(
|
|
9843
|
-
ot(pe(() => import("./
|
|
9844
|
-
), Tc = Ws(
|
|
9845
|
-
ot(pe(() => import("./ScheduleGeneralPage-OvoLCcup.js")))
|
|
10081
|
+
ot(pe(() => import("./ScheduleGeneralPage-DGdnq7oV.js")))
|
|
9846
10082
|
), ou = [
|
|
9847
10083
|
{
|
|
9848
10084
|
path: "/",
|
|
@@ -9924,19 +10160,19 @@ const _e = (e) => ({
|
|
|
9924
10160
|
{
|
|
9925
10161
|
path: "/schedule",
|
|
9926
10162
|
name: "schedule",
|
|
9927
|
-
component:
|
|
10163
|
+
component: Tc,
|
|
9928
10164
|
meta: _e(Ne.Subject.Business.hrm_scheduling)
|
|
9929
10165
|
},
|
|
9930
10166
|
{
|
|
9931
10167
|
path: "/schedule/position",
|
|
9932
10168
|
name: "schedule-position",
|
|
9933
|
-
component:
|
|
10169
|
+
component: Hc,
|
|
9934
10170
|
meta: _e(Ne.Subject.Business.hrm_scheduling)
|
|
9935
10171
|
},
|
|
9936
10172
|
{
|
|
9937
10173
|
path: "/schedule/general",
|
|
9938
10174
|
name: "schedule-general",
|
|
9939
|
-
component:
|
|
10175
|
+
component: Ic,
|
|
9940
10176
|
meta: _e(Ne.Subject.Business.hrm_scheduling)
|
|
9941
10177
|
},
|
|
9942
10178
|
// Old bookmarks / deep links from before the POS Access merge.
|
|
@@ -9956,7 +10192,7 @@ const _e = (e) => ({
|
|
|
9956
10192
|
async function r(h) {
|
|
9957
10193
|
await a.push({ name: h, query: a.currentRoute.value.query }), await fn(), s("close-navigation");
|
|
9958
10194
|
}
|
|
9959
|
-
const l =
|
|
10195
|
+
const l = Hs(() => {
|
|
9960
10196
|
const h = [];
|
|
9961
10197
|
return h.push({
|
|
9962
10198
|
label: n("hr.employee.title"),
|
|
@@ -10055,7 +10291,7 @@ const _e = (e) => ({
|
|
|
10055
10291
|
};
|
|
10056
10292
|
}
|
|
10057
10293
|
});
|
|
10058
|
-
var
|
|
10294
|
+
var Ts = { exports: {} };
|
|
10059
10295
|
(function(e, t) {
|
|
10060
10296
|
(function(s, n) {
|
|
10061
10297
|
n(t);
|
|
@@ -10391,18 +10627,18 @@ var Hs = { exports: {} };
|
|
|
10391
10627
|
Ae.setLoadingState(a(a({}, Ae.loadingState), { isFetching: !1, isLoading: !1, error: we })), xe == null || xe(we);
|
|
10392
10628
|
}, 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) {
|
|
10393
10629
|
return function(Ee, Pe) {
|
|
10394
|
-
var
|
|
10630
|
+
var Ie = Pe.headers, _ = Pe.method, ut = Pe.body;
|
|
10395
10631
|
return new Promise(function(Ke) {
|
|
10396
10632
|
switch (_) {
|
|
10397
10633
|
case "GET":
|
|
10398
|
-
return we.get(Ee, { headers:
|
|
10634
|
+
return we.get(Ee, { headers: Ie }).subscribe(function(ke) {
|
|
10399
10635
|
Ke({ ok: !0, text: function() {
|
|
10400
10636
|
return Promise.resolve(ke);
|
|
10401
10637
|
} });
|
|
10402
10638
|
});
|
|
10403
10639
|
case "POST":
|
|
10404
10640
|
case "PUT":
|
|
10405
|
-
return we.post(Ee, ut, { headers:
|
|
10641
|
+
return we.post(Ee, ut, { headers: Ie }).subscribe(function(ke) {
|
|
10406
10642
|
Ke({ ok: !0, text: function() {
|
|
10407
10643
|
return Promise.resolve(ke);
|
|
10408
10644
|
} });
|
|
@@ -10421,22 +10657,22 @@ var Hs = { exports: {} };
|
|
|
10421
10657
|
if (Ee && Ae.evaluationContext.environment) {
|
|
10422
10658
|
var Pe = JSON.parse(Ee);
|
|
10423
10659
|
if (Pe[Ae.evaluationContext.environment.apiKey]) {
|
|
10424
|
-
var
|
|
10425
|
-
Ae.log("Retrieved events from cache", Ee), Ae.setState(a(a({},
|
|
10660
|
+
var Ie = Ae.getState();
|
|
10661
|
+
Ae.log("Retrieved events from cache", Ee), Ae.setState(a(a({}, Ie), { evaluationEvent: Pe[Ae.evaluationContext.environment.apiKey] }));
|
|
10426
10662
|
}
|
|
10427
10663
|
}
|
|
10428
10664
|
})), !L) return [3, 9];
|
|
10429
10665
|
if (!ie || !this.canUseStorage) return [3, 8];
|
|
10430
10666
|
_s = function(we, Ee) {
|
|
10431
10667
|
return r(Ae, void 0, void 0, function() {
|
|
10432
|
-
var Pe,
|
|
10668
|
+
var Pe, Ie, _, ut, Ke, ke, is, en, ls, cs, us, ds, ms, As, gs, ps, hs, fs, ys, bs, vs, ws, Bs, Cs, tn = this;
|
|
10433
10669
|
return l(this, function(qe) {
|
|
10434
10670
|
switch (qe.label) {
|
|
10435
10671
|
case 0:
|
|
10436
10672
|
if (!Ee) return [3, 7];
|
|
10437
|
-
Pe = null,
|
|
10673
|
+
Pe = null, Ie = null, qe.label = 1;
|
|
10438
10674
|
case 1:
|
|
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,
|
|
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, Ie = 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: Ie }, 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) {
|
|
10440
10676
|
var Ms;
|
|
10441
10677
|
(Ms = tn.onError) === null || Ms === void 0 || Ms.call(tn, Wa);
|
|
10442
10678
|
}), [3, 4]) : [3, 2];
|
|
@@ -10596,7 +10832,7 @@ var Hs = { exports: {} };
|
|
|
10596
10832
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
10597
10833
|
}
|
|
10598
10834
|
return B(u, f), u;
|
|
10599
|
-
}(Error),
|
|
10835
|
+
}(Error), I = function() {
|
|
10600
10836
|
function f(u, i) {
|
|
10601
10837
|
var g = this;
|
|
10602
10838
|
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();
|
|
@@ -10700,13 +10936,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
10700
10936
|
}, m.onerror = g, m.withCredentials = u.credentials == "include", u.headers) m.setRequestHeader(X, u.headers[X]);
|
|
10701
10937
|
m.send(u.body || null);
|
|
10702
10938
|
});
|
|
10703
|
-
}, ae = A({ AsyncStorage: n, fetch: te, eventSource:
|
|
10939
|
+
}, ae = A({ AsyncStorage: n, fetch: te, eventSource: I });
|
|
10704
10940
|
typeof window < "u" && (window.flagsmith = ae), s.createFlagsmithInstance = function() {
|
|
10705
|
-
return A({ AsyncStorage: n, fetch: te, eventSource:
|
|
10941
|
+
return A({ AsyncStorage: n, fetch: te, eventSource: I });
|
|
10706
10942
|
}, s.default = ae, Object.defineProperty(s, "__esModule", { value: !0 });
|
|
10707
10943
|
});
|
|
10708
|
-
})(
|
|
10709
|
-
var Nc =
|
|
10944
|
+
})(Ts, Ts.exports);
|
|
10945
|
+
var Nc = Ts.exports, Xc = {
|
|
10710
10946
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first."
|
|
10711
10947
|
}, pn = "business", Oe, Qc = (Oe = class {
|
|
10712
10948
|
constructor() {
|
|
@@ -10888,7 +11124,7 @@ const iu = /* @__PURE__ */ at({
|
|
|
10888
11124
|
};
|
|
10889
11125
|
}
|
|
10890
11126
|
});
|
|
10891
|
-
var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.
|
|
11127
|
+
var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.6", mode: "fmmf" };
|
|
10892
11128
|
console.log(
|
|
10893
11129
|
`%c${xs.name}%c v${xs.version} %c${xs.mode}`,
|
|
10894
11130
|
"background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
|