@feedmepos/mf-hrm-portal 2.2.4 → 2.2.5-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/{ApprovalCodeList-ChGQwko6.js → ApprovalCodeList-DgcWZ3SZ.js} +5 -5
  2. package/dist/{AuditLogList-Cpj8O5qS.js → AuditLogList-vWKMMGvd.js} +235 -233
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CNmbZlVZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js} +2 -2
  4. package/dist/EmployeeList-Cu4RxVQX.js +889 -0
  5. package/dist/{GrantUserList-CAXJmQ4i.js → GrantUserList-BAW0C1bA.js} +6 -6
  6. package/dist/{Main-7yT_w5vt.js → Main-B7Nn8CLQ.js} +11 -11
  7. package/dist/{Main-Ada9K_jO.js → Main-NzpdRNB3.js} +8 -8
  8. package/dist/{Main-T9-30vq8.js → Main-Wr6cTqfM.js} +5 -5
  9. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +85 -0
  10. package/dist/{PermissionSetList-CkWYPmT2.js → PermissionSetList-D6AFOleD.js} +7 -7
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCLLrSyq.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js} +874 -881
  12. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
  13. package/dist/{RoleList-Do36AmlU.js → RoleList-BuqpmXn_.js} +9 -9
  14. package/dist/TeamMemberList-M6HA9BWu.js +1248 -0
  15. package/dist/{TimesheetList-DboJ2_89.js → TimesheetList-B5FyVyCz.js} +92 -90
  16. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-C4g8wRjv.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js} +3 -3
  17. package/dist/{app-CcCcPbyB.js → app-8samJY5z.js} +214 -190
  18. package/dist/app.js +1 -1
  19. package/dist/{approval-code-BRClD2HN.js → approval-code-jIjkeVEb.js} +1 -1
  20. package/dist/{dayjs.min-lvkj1Rwa.js → dayjs.min-Ba4X_9nY.js} +1 -1
  21. package/dist/employee-BcFgm8Rt.js +204 -0
  22. package/dist/{grant-user-Dhi3ilC_.js → grant-user-SNiDV22U.js} +1 -1
  23. package/dist/{iteration-LZbo-knt.js → iteration-Dhdew1jW.js} +1 -1
  24. package/dist/{lodash-CKzaMa7f.js → lodash-CJ3mHku0.js} +1 -1
  25. package/dist/{restaurant-DiYb0pCm.js → restaurant-BTpBmfBV.js} +2 -2
  26. package/dist/{role-BZr8zzeq.js → role-BViYS7RK.js} +2 -2
  27. package/dist/{rule-DNaqlUUB.js → rule-Dxt1ZSQS.js} +48 -40
  28. package/dist/src/api/employee/index.d.ts +5 -1
  29. package/dist/src/api/team/index.d.ts +3 -0
  30. package/dist/src/components/form/PasscodeGenerateButton.vue.d.ts +15 -0
  31. package/dist/src/components/form/PasscodePinField.vue.d.ts +18 -0
  32. package/dist/src/helpers/string.d.ts +2 -1
  33. package/dist/src/views/audit-log/locales/index.d.ts +4 -0
  34. package/dist/src/views/hr/locales/index.d.ts +8 -0
  35. package/dist/src/views/team/locales/index.d.ts +12 -0
  36. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +1 -0
  37. package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +9 -0
  38. package/dist/string-VNuQNweN.js +15 -0
  39. package/dist/style.css +1 -1
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/{useAppStore-BGhlB1_1.js → useAppStore-DCwd8GWN.js} +1 -1
  42. package/dist/{useLoading-CvgqVDbF.js → useLoading-CXzTpIVv.js} +1 -1
  43. package/dist/{useReportPermissions-Buzv6pkY.js → useReportPermissions-BiyAfGvZ.js} +3 -3
  44. package/package.json +1 -1
  45. package/dist/EmployeeList-PdGzSCP-.js +0 -887
  46. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  47. package/dist/TeamMemberList-CVVNnz0R.js +0 -1216
  48. package/dist/employee-CLgrXpmZ.js +0 -201
@@ -113,7 +113,7 @@ const j = U.arrayToEnum([
113
113
  "invalid_intersection_types",
114
114
  "not_multiple_of"
115
115
  ]), ra = (e) => JSON.stringify(e, null, 2).replace(/"([^"]+)":/g, "$1:");
116
- class ke extends Error {
116
+ class Se extends Error {
117
117
  constructor(t) {
118
118
  super(), this.issues = [], this.addIssue = (n) => {
119
119
  this.issues = [...this.issues, n];
@@ -153,7 +153,7 @@ class ke extends Error {
153
153
  return this.message;
154
154
  }
155
155
  get message() {
156
- return JSON.stringify(this.issues, ks, 2);
156
+ return JSON.stringify(this.issues, Ss, 2);
157
157
  }
158
158
  get isEmpty() {
159
159
  return this.issues.length === 0;
@@ -168,7 +168,7 @@ class ke extends Error {
168
168
  return this.flatten();
169
169
  }
170
170
  }
171
- ke.create = (e) => new ke(e);
171
+ Se.create = (e) => new Se(e);
172
172
  const Dt = (e, t) => {
173
173
  let s;
174
174
  switch (e.code) {
@@ -176,7 +176,7 @@ const Dt = (e, t) => {
176
176
  e.received === j.undefined ? s = "Required" : s = `Expected ${e.expected}, received ${e.received}`;
177
177
  break;
178
178
  case C.invalid_literal:
179
- s = `Invalid literal value, expected ${JSON.stringify(e.expected, ks)}`;
179
+ s = `Invalid literal value, expected ${JSON.stringify(e.expected, Ss)}`;
180
180
  break;
181
181
  case C.unrecognized_keys:
182
182
  s = `Unrecognized key(s) in object: ${U.joinValues(e.keys, ", ")}`;
@@ -272,7 +272,7 @@ class ce {
272
272
  const n = [];
273
273
  for (const r of s) {
274
274
  if (r.status === "aborted")
275
- return k;
275
+ return S;
276
276
  r.status === "dirty" && t.dirty(), n.push(r.value);
277
277
  }
278
278
  return { status: t.value, value: n };
@@ -291,15 +291,15 @@ class ce {
291
291
  for (const r of s) {
292
292
  const { key: a, value: c } = r;
293
293
  if (a.status === "aborted" || c.status === "aborted")
294
- return k;
294
+ return S;
295
295
  a.status === "dirty" && t.dirty(), c.status === "dirty" && t.dirty(), (typeof c.value < "u" || r.alwaysSet) && (n[a.value] = c.value);
296
296
  }
297
297
  return { status: t.value, value: n };
298
298
  }
299
299
  }
300
- const k = Object.freeze({
300
+ const S = Object.freeze({
301
301
  status: "aborted"
302
- }), ia = (e) => ({ status: "dirty", value: e }), le = (e) => ({ status: "valid", value: e }), Ds = (e) => e.status === "aborted", js = (e) => e.status === "dirty", Ht = (e) => e.status === "valid", xs = (e) => typeof Promise !== void 0 && e instanceof Promise, ks = (e, t) => typeof t == "bigint" ? t.toString() : t;
302
+ }), ia = (e) => ({ status: "dirty", value: e }), le = (e) => ({ status: "valid", value: e }), Ds = (e) => e.status === "aborted", js = (e) => e.status === "dirty", Ht = (e) => e.status === "valid", xs = (e) => typeof Promise !== void 0 && e instanceof Promise, Ss = (e, t) => typeof t == "bigint" ? t.toString() : t;
303
303
  var N;
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;
@@ -317,7 +317,7 @@ const $s = (e, t) => {
317
317
  return { success: !0, data: t.value };
318
318
  if (!e.common.issues.length)
319
319
  throw new Error("Validation failed but no issues detected.");
320
- return { success: !1, error: new ke(e.common.issues) };
320
+ return { success: !1, error: new Se(e.common.issues) };
321
321
  };
322
322
  function Q(e) {
323
323
  if (!e)
@@ -327,7 +327,7 @@ function Q(e) {
327
327
  throw new Error(`Can't use "invalid" or "required" in conjunction with custom error map.`);
328
328
  return t ? { errorMap: t, description: r } : { errorMap: (c, l) => c.code !== "invalid_type" ? { message: l.defaultError } : typeof l.data > "u" ? { message: n ?? l.defaultError } : { message: s ?? l.defaultError }, description: r };
329
329
  }
330
- class S {
330
+ class X {
331
331
  constructor(t) {
332
332
  this.spa = this.safeParseAsync, this.superRefine = this._refinement, this._def = t, this.parse = this.parse.bind(this), this.safeParse = this.safeParse.bind(this), this.parseAsync = this.parseAsync.bind(this), this.safeParseAsync = this.safeParseAsync.bind(this), this.spa = this.spa.bind(this), this.refine = this.refine.bind(this), this.refinement = this.refinement.bind(this), this.superRefine = this.superRefine.bind(this), this.optional = this.optional.bind(this), this.nullable = this.nullable.bind(this), this.nullish = this.nullish.bind(this), this.array = this.array.bind(this), this.promise = this.promise.bind(this), this.or = this.or.bind(this), this.and = this.and.bind(this), this.transform = this.transform.bind(this), this.default = this.default.bind(this), this.describe = this.describe.bind(this), this.isNullable = this.isNullable.bind(this), this.isOptional = this.isOptional.bind(this);
333
333
  }
@@ -463,7 +463,7 @@ class S {
463
463
  }
464
464
  default(t) {
465
465
  const s = typeof t == "function" ? t : () => t;
466
- return new Xs({
466
+ return new ks({
467
467
  innerType: this,
468
468
  defaultValue: s,
469
469
  typeName: H.ZodDefault
@@ -484,7 +484,7 @@ class S {
484
484
  }
485
485
  }
486
486
  const ca = /^c[^\s-]{8,}$/i, la = /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i, ua = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
487
- class Ze extends S {
487
+ class Ze extends X {
488
488
  constructor() {
489
489
  super(...arguments), this._regex = (t, s, n) => this.refinement((r) => t.test(r), {
490
490
  validation: s,
@@ -506,7 +506,7 @@ class Ze extends S {
506
506
  received: a.parsedType
507
507
  }
508
508
  //
509
- ), k;
509
+ ), S;
510
510
  }
511
511
  const n = new ce();
512
512
  let r;
@@ -660,7 +660,7 @@ function Aa(e, t) {
660
660
  const s = (e.toString().split(".")[1] || "").length, n = (t.toString().split(".")[1] || "").length, r = s > n ? s : n, a = parseInt(e.toFixed(r).replace(".", "")), c = parseInt(t.toFixed(r).replace(".", ""));
661
661
  return a % c / Math.pow(10, r);
662
662
  }
663
- class _e extends S {
663
+ class _e extends X {
664
664
  constructor() {
665
665
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
666
666
  }
@@ -671,7 +671,7 @@ class _e extends S {
671
671
  code: C.invalid_type,
672
672
  expected: j.number,
673
673
  received: a.parsedType
674
- }), k;
674
+ }), S;
675
675
  }
676
676
  let n;
677
677
  const r = new ce();
@@ -798,7 +798,7 @@ _e.create = (e) => new _e({
798
798
  typeName: H.ZodNumber,
799
799
  ...Q(e)
800
800
  });
801
- class kt extends S {
801
+ class St extends X {
802
802
  _parse(t) {
803
803
  if (this._getType(t) !== j.bigint) {
804
804
  const n = this._getOrReturnCtx(t);
@@ -806,16 +806,16 @@ class kt extends S {
806
806
  code: C.invalid_type,
807
807
  expected: j.bigint,
808
808
  received: n.parsedType
809
- }), k;
809
+ }), S;
810
810
  }
811
811
  return le(t.data);
812
812
  }
813
813
  }
814
- kt.create = (e) => new kt({
814
+ St.create = (e) => new St({
815
815
  typeName: H.ZodBigInt,
816
816
  ...Q(e)
817
817
  });
818
- class Xt extends S {
818
+ class kt extends X {
819
819
  _parse(t) {
820
820
  if (this._getType(t) !== j.boolean) {
821
821
  const n = this._getOrReturnCtx(t);
@@ -823,16 +823,16 @@ class Xt extends S {
823
823
  code: C.invalid_type,
824
824
  expected: j.boolean,
825
825
  received: n.parsedType
826
- }), k;
826
+ }), S;
827
827
  }
828
828
  return le(t.data);
829
829
  }
830
830
  }
831
- Xt.create = (e) => new Xt({
831
+ kt.create = (e) => new kt({
832
832
  typeName: H.ZodBoolean,
833
833
  ...Q(e)
834
834
  });
835
- class ct extends S {
835
+ class ct extends X {
836
836
  _parse(t) {
837
837
  if (this._getType(t) !== j.date) {
838
838
  const a = this._getOrReturnCtx(t);
@@ -840,13 +840,13 @@ class ct extends S {
840
840
  code: C.invalid_type,
841
841
  expected: j.date,
842
842
  received: a.parsedType
843
- }), k;
843
+ }), S;
844
844
  }
845
845
  if (isNaN(t.data.getTime())) {
846
846
  const a = this._getOrReturnCtx(t);
847
847
  return P(a, {
848
848
  code: C.invalid_date
849
- }), k;
849
+ }), S;
850
850
  }
851
851
  const n = new ce();
852
852
  let r;
@@ -907,7 +907,7 @@ ct.create = (e) => new ct({
907
907
  typeName: H.ZodDate,
908
908
  ...Q(e)
909
909
  });
910
- class St extends S {
910
+ class Xt extends X {
911
911
  _parse(t) {
912
912
  if (this._getType(t) !== j.undefined) {
913
913
  const n = this._getOrReturnCtx(t);
@@ -915,16 +915,16 @@ class St extends S {
915
915
  code: C.invalid_type,
916
916
  expected: j.undefined,
917
917
  received: n.parsedType
918
- }), k;
918
+ }), S;
919
919
  }
920
920
  return le(t.data);
921
921
  }
922
922
  }
923
- St.create = (e) => new St({
923
+ Xt.create = (e) => new Xt({
924
924
  typeName: H.ZodUndefined,
925
925
  ...Q(e)
926
926
  });
927
- class Qt extends S {
927
+ class Qt extends X {
928
928
  _parse(t) {
929
929
  if (this._getType(t) !== j.null) {
930
930
  const n = this._getOrReturnCtx(t);
@@ -932,7 +932,7 @@ class Qt extends S {
932
932
  code: C.invalid_type,
933
933
  expected: j.null,
934
934
  received: n.parsedType
935
- }), k;
935
+ }), S;
936
936
  }
937
937
  return le(t.data);
938
938
  }
@@ -941,7 +941,7 @@ Qt.create = (e) => new Qt({
941
941
  typeName: H.ZodNull,
942
942
  ...Q(e)
943
943
  });
944
- class lt extends S {
944
+ class lt extends X {
945
945
  constructor() {
946
946
  super(...arguments), this._any = !0;
947
947
  }
@@ -953,7 +953,7 @@ lt.create = (e) => new lt({
953
953
  typeName: H.ZodAny,
954
954
  ...Q(e)
955
955
  });
956
- class Te extends S {
956
+ class Te extends X {
957
957
  constructor() {
958
958
  super(...arguments), this._unknown = !0;
959
959
  }
@@ -965,21 +965,21 @@ Te.create = (e) => new Te({
965
965
  typeName: H.ZodUnknown,
966
966
  ...Q(e)
967
967
  });
968
- class Ue extends S {
968
+ class Ue extends X {
969
969
  _parse(t) {
970
970
  const s = this._getOrReturnCtx(t);
971
971
  return P(s, {
972
972
  code: C.invalid_type,
973
973
  expected: j.never,
974
974
  received: s.parsedType
975
- }), k;
975
+ }), S;
976
976
  }
977
977
  }
978
978
  Ue.create = (e) => new Ue({
979
979
  typeName: H.ZodNever,
980
980
  ...Q(e)
981
981
  });
982
- class Tt extends S {
982
+ class Tt extends X {
983
983
  _parse(t) {
984
984
  if (this._getType(t) !== j.undefined) {
985
985
  const n = this._getOrReturnCtx(t);
@@ -987,7 +987,7 @@ class Tt extends S {
987
987
  code: C.invalid_type,
988
988
  expected: j.void,
989
989
  received: n.parsedType
990
- }), k;
990
+ }), S;
991
991
  }
992
992
  return le(t.data);
993
993
  }
@@ -996,7 +996,7 @@ Tt.create = (e) => new Tt({
996
996
  typeName: H.ZodVoid,
997
997
  ...Q(e)
998
998
  });
999
- class Ve extends S {
999
+ class Ve extends X {
1000
1000
  _parse(t) {
1001
1001
  const { ctx: s, status: n } = this._processInputParams(t), r = this._def;
1002
1002
  if (s.parsedType !== j.array)
@@ -1004,7 +1004,7 @@ class Ve extends S {
1004
1004
  code: C.invalid_type,
1005
1005
  expected: j.array,
1006
1006
  received: s.parsedType
1007
- }), k;
1007
+ }), S;
1008
1008
  if (r.minLength !== null && s.data.length < r.minLength.value && (P(s, {
1009
1009
  code: C.too_small,
1010
1010
  minimum: r.minLength.value,
@@ -1078,7 +1078,7 @@ function it(e) {
1078
1078
  });
1079
1079
  } else return e instanceof Ve ? Ve.create(it(e.element)) : e instanceof Ge ? Ge.create(it(e.unwrap())) : e instanceof tt ? tt.create(it(e.unwrap())) : e instanceof Fe ? Fe.create(e.items.map((t) => it(t))) : e;
1080
1080
  }
1081
- class $ extends S {
1081
+ class $ extends X {
1082
1082
  constructor() {
1083
1083
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = en(this._def), this.extend = en(this._def);
1084
1084
  }
@@ -1095,7 +1095,7 @@ class $ extends S {
1095
1095
  code: C.invalid_type,
1096
1096
  expected: j.object,
1097
1097
  received: h.parsedType
1098
- }), k;
1098
+ }), S;
1099
1099
  }
1100
1100
  const { status: n, ctx: r } = this._processInputParams(t), { shape: a, keys: c } = this._getCached(), l = [];
1101
1101
  for (const h in r.data)
@@ -1281,7 +1281,7 @@ $.lazycreate = (e, t) => new $({
1281
1281
  typeName: H.ZodObject,
1282
1282
  ...Q(t)
1283
1283
  });
1284
- class jt extends S {
1284
+ class jt extends X {
1285
1285
  _parse(t) {
1286
1286
  const { ctx: s } = this._processInputParams(t), n = this._def.options;
1287
1287
  function r(a) {
@@ -1291,11 +1291,11 @@ class jt extends S {
1291
1291
  for (const l of a)
1292
1292
  if (l.result.status === "dirty")
1293
1293
  return s.common.issues.push(...l.ctx.common.issues), l.result;
1294
- const c = a.map((l) => new ke(l.ctx.common.issues));
1294
+ const c = a.map((l) => new Se(l.ctx.common.issues));
1295
1295
  return P(s, {
1296
1296
  code: C.invalid_union,
1297
1297
  unionErrors: c
1298
- }), k;
1298
+ }), S;
1299
1299
  }
1300
1300
  if (s.common.async)
1301
1301
  return Promise.all(n.map(async (a) => {
@@ -1338,11 +1338,11 @@ class jt extends S {
1338
1338
  }
1339
1339
  if (a)
1340
1340
  return s.common.issues.push(...a.ctx.common.issues), a.result;
1341
- const l = c.map((y) => new ke(y));
1341
+ const l = c.map((y) => new Se(y));
1342
1342
  return P(s, {
1343
1343
  code: C.invalid_union,
1344
1344
  unionErrors: l
1345
- }), k;
1345
+ }), S;
1346
1346
  }
1347
1347
  }
1348
1348
  get options() {
@@ -1354,7 +1354,7 @@ jt.create = (e, t) => new jt({
1354
1354
  typeName: H.ZodUnion,
1355
1355
  ...Q(t)
1356
1356
  });
1357
- class _t extends S {
1357
+ class _t extends X {
1358
1358
  _parse(t) {
1359
1359
  const { ctx: s } = this._processInputParams(t);
1360
1360
  if (s.parsedType !== j.object)
@@ -1362,7 +1362,7 @@ class _t extends S {
1362
1362
  code: C.invalid_type,
1363
1363
  expected: j.object,
1364
1364
  received: s.parsedType
1365
- }), k;
1365
+ }), S;
1366
1366
  const n = this.discriminator, r = s.data[n], a = this.options.get(r);
1367
1367
  return a ? s.common.async ? a._parseAsync({
1368
1368
  data: s.data,
@@ -1376,7 +1376,7 @@ class _t extends S {
1376
1376
  code: C.invalid_union_discriminator,
1377
1377
  options: this.validDiscriminatorValues,
1378
1378
  path: [n]
1379
- }), k);
1379
+ }), S);
1380
1380
  }
1381
1381
  get discriminator() {
1382
1382
  return this._def.discriminator;
@@ -1441,15 +1441,15 @@ function Es(e, t) {
1441
1441
  return { valid: !0, data: r };
1442
1442
  } else return s === j.date && n === j.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
1443
1443
  }
1444
- class xt extends S {
1444
+ class xt extends X {
1445
1445
  _parse(t) {
1446
1446
  const { status: s, ctx: n } = this._processInputParams(t), r = (a, c) => {
1447
1447
  if (Ds(a) || Ds(c))
1448
- return k;
1448
+ return S;
1449
1449
  const l = Es(a.value, c.value);
1450
1450
  return l.valid ? ((js(a) || js(c)) && s.dirty(), { status: s.value, value: l.data }) : (P(n, {
1451
1451
  code: C.invalid_intersection_types
1452
- }), k);
1452
+ }), S);
1453
1453
  };
1454
1454
  return n.common.async ? Promise.all([
1455
1455
  this._def.left._parseAsync({
@@ -1479,7 +1479,7 @@ xt.create = (e, t, s) => new xt({
1479
1479
  typeName: H.ZodIntersection,
1480
1480
  ...Q(s)
1481
1481
  });
1482
- class Fe extends S {
1482
+ class Fe extends X {
1483
1483
  _parse(t) {
1484
1484
  const { status: s, ctx: n } = this._processInputParams(t);
1485
1485
  if (n.parsedType !== j.array)
@@ -1487,14 +1487,14 @@ class Fe extends S {
1487
1487
  code: C.invalid_type,
1488
1488
  expected: j.array,
1489
1489
  received: n.parsedType
1490
- }), k;
1490
+ }), S;
1491
1491
  if (n.data.length < this._def.items.length)
1492
1492
  return P(n, {
1493
1493
  code: C.too_small,
1494
1494
  minimum: this._def.items.length,
1495
1495
  inclusive: !0,
1496
1496
  type: "array"
1497
- }), k;
1497
+ }), S;
1498
1498
  !this._def.rest && n.data.length > this._def.items.length && (P(n, {
1499
1499
  code: C.too_big,
1500
1500
  maximum: this._def.items.length,
@@ -1523,7 +1523,7 @@ Fe.create = (e, t) => new Fe({
1523
1523
  rest: null,
1524
1524
  ...Q(t)
1525
1525
  });
1526
- class Et extends S {
1526
+ class Et extends X {
1527
1527
  get keySchema() {
1528
1528
  return this._def.keyType;
1529
1529
  }
@@ -1537,7 +1537,7 @@ class Et extends S {
1537
1537
  code: C.invalid_type,
1538
1538
  expected: j.object,
1539
1539
  received: n.parsedType
1540
- }), k;
1540
+ }), S;
1541
1541
  const r = [], a = this._def.keyType, c = this._def.valueType;
1542
1542
  for (const l in n.data)
1543
1543
  r.push({
@@ -1550,7 +1550,7 @@ class Et extends S {
1550
1550
  return this._def.valueType;
1551
1551
  }
1552
1552
  static create(t, s, n) {
1553
- return s instanceof S ? new Et({
1553
+ return s instanceof X ? new Et({
1554
1554
  keyType: t,
1555
1555
  valueType: s,
1556
1556
  typeName: H.ZodRecord,
@@ -1563,7 +1563,7 @@ class Et extends S {
1563
1563
  });
1564
1564
  }
1565
1565
  }
1566
- class Zt extends S {
1566
+ class Zt extends X {
1567
1567
  _parse(t) {
1568
1568
  const { status: s, ctx: n } = this._processInputParams(t);
1569
1569
  if (n.parsedType !== j.map)
@@ -1571,7 +1571,7 @@ class Zt extends S {
1571
1571
  code: C.invalid_type,
1572
1572
  expected: j.map,
1573
1573
  received: n.parsedType
1574
- }), k;
1574
+ }), S;
1575
1575
  const r = this._def.keyType, a = this._def.valueType, c = [...n.data.entries()].map(([l, y], h) => ({
1576
1576
  key: r._parse(new Oe(n, l, n.path, [h, "key"])),
1577
1577
  value: a._parse(new Oe(n, y, n.path, [h, "value"]))
@@ -1582,7 +1582,7 @@ class Zt extends S {
1582
1582
  for (const y of c) {
1583
1583
  const h = await y.key, w = await y.value;
1584
1584
  if (h.status === "aborted" || w.status === "aborted")
1585
- return k;
1585
+ return S;
1586
1586
  (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1587
1587
  }
1588
1588
  return { status: s.value, value: l };
@@ -1592,7 +1592,7 @@ class Zt extends S {
1592
1592
  for (const y of c) {
1593
1593
  const h = y.key, w = y.value;
1594
1594
  if (h.status === "aborted" || w.status === "aborted")
1595
- return k;
1595
+ return S;
1596
1596
  (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1597
1597
  }
1598
1598
  return { status: s.value, value: l };
@@ -1605,7 +1605,7 @@ Zt.create = (e, t, s) => new Zt({
1605
1605
  typeName: H.ZodMap,
1606
1606
  ...Q(s)
1607
1607
  });
1608
- class $e extends S {
1608
+ class $e extends X {
1609
1609
  _parse(t) {
1610
1610
  const { status: s, ctx: n } = this._processInputParams(t);
1611
1611
  if (n.parsedType !== j.set)
@@ -1613,7 +1613,7 @@ class $e extends S {
1613
1613
  code: C.invalid_type,
1614
1614
  expected: j.set,
1615
1615
  received: n.parsedType
1616
- }), k;
1616
+ }), S;
1617
1617
  const r = this._def;
1618
1618
  r.minSize !== null && n.data.size < r.minSize.value && (P(n, {
1619
1619
  code: C.too_small,
@@ -1633,7 +1633,7 @@ class $e extends S {
1633
1633
  const h = /* @__PURE__ */ new Set();
1634
1634
  for (const w of y) {
1635
1635
  if (w.status === "aborted")
1636
- return k;
1636
+ return S;
1637
1637
  w.status === "dirty" && s.dirty(), h.add(w.value);
1638
1638
  }
1639
1639
  return { status: s.value, value: h };
@@ -1667,7 +1667,7 @@ $e.create = (e, t) => new $e({
1667
1667
  typeName: H.ZodSet,
1668
1668
  ...Q(t)
1669
1669
  });
1670
- class et extends S {
1670
+ class et extends X {
1671
1671
  constructor() {
1672
1672
  super(...arguments), this.validate = this.implement;
1673
1673
  }
@@ -1678,7 +1678,7 @@ class et extends S {
1678
1678
  code: C.invalid_type,
1679
1679
  expected: j.function,
1680
1680
  received: s.parsedType
1681
- }), k;
1681
+ }), S;
1682
1682
  function n(l, y) {
1683
1683
  return Rt({
1684
1684
  data: l,
@@ -1713,7 +1713,7 @@ class et extends S {
1713
1713
  }
1714
1714
  const a = { errorMap: s.common.contextualErrorMap }, c = s.data;
1715
1715
  return this._def.returns instanceof ut ? le(async (...l) => {
1716
- const y = new ke([]), h = await this._def.args.parseAsync(l, a).catch((Z) => {
1716
+ const y = new Se([]), h = await this._def.args.parseAsync(l, a).catch((Z) => {
1717
1717
  throw y.addIssue(n(l, Z)), y;
1718
1718
  }), w = await c(...h);
1719
1719
  return await this._def.returns._def.type.parseAsync(w, a).catch((Z) => {
@@ -1722,10 +1722,10 @@ class et extends S {
1722
1722
  }) : le((...l) => {
1723
1723
  const y = this._def.args.safeParse(l, a);
1724
1724
  if (!y.success)
1725
- throw new ke([n(l, y.error)]);
1725
+ throw new Se([n(l, y.error)]);
1726
1726
  const h = c(...y.data), w = this._def.returns.safeParse(h, a);
1727
1727
  if (!w.success)
1728
- throw new ke([r(h, w.error)]);
1728
+ throw new Se([r(h, w.error)]);
1729
1729
  return w.data;
1730
1730
  });
1731
1731
  }
@@ -1760,7 +1760,7 @@ et.create = (e, t, s) => new et({
1760
1760
  typeName: H.ZodFunction,
1761
1761
  ...Q(s)
1762
1762
  });
1763
- class Ut extends S {
1763
+ class Ut extends X {
1764
1764
  get schema() {
1765
1765
  return this._def.getter();
1766
1766
  }
@@ -1774,14 +1774,14 @@ Ut.create = (e, t) => new Ut({
1774
1774
  typeName: H.ZodLazy,
1775
1775
  ...Q(t)
1776
1776
  });
1777
- class zt extends S {
1777
+ class zt extends X {
1778
1778
  _parse(t) {
1779
1779
  if (t.data !== this._def.value) {
1780
1780
  const s = this._getOrReturnCtx(t);
1781
1781
  return P(s, {
1782
1782
  code: C.invalid_literal,
1783
1783
  expected: this._def.value
1784
- }), k;
1784
+ }), S;
1785
1785
  }
1786
1786
  return { status: "valid", value: t.data };
1787
1787
  }
@@ -1801,7 +1801,7 @@ function vn(e, t) {
1801
1801
  ...Q(t)
1802
1802
  });
1803
1803
  }
1804
- class $t extends S {
1804
+ class $t extends X {
1805
1805
  _parse(t) {
1806
1806
  if (typeof t.data != "string") {
1807
1807
  const s = this._getOrReturnCtx(t), n = this._def.values;
@@ -1809,7 +1809,7 @@ class $t extends S {
1809
1809
  expected: U.joinValues(n),
1810
1810
  received: s.parsedType,
1811
1811
  code: C.invalid_type
1812
- }), k;
1812
+ }), S;
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 $t extends S {
1817
1817
  received: s.data,
1818
1818
  code: C.invalid_enum_value,
1819
1819
  options: n
1820
- }), k;
1820
+ }), S;
1821
1821
  }
1822
1822
  return le(t.data);
1823
1823
  }
@@ -1844,7 +1844,7 @@ class $t extends S {
1844
1844
  }
1845
1845
  }
1846
1846
  $t.create = vn;
1847
- class Wt extends S {
1847
+ class Wt extends X {
1848
1848
  _parse(t) {
1849
1849
  const s = U.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(t);
1850
1850
  if (n.parsedType !== j.string && n.parsedType !== j.number) {
@@ -1853,7 +1853,7 @@ class Wt extends S {
1853
1853
  expected: U.joinValues(r),
1854
1854
  received: n.parsedType,
1855
1855
  code: C.invalid_type
1856
- }), k;
1856
+ }), S;
1857
1857
  }
1858
1858
  if (s.indexOf(t.data) === -1) {
1859
1859
  const r = U.objectValues(s);
@@ -1861,7 +1861,7 @@ class Wt extends S {
1861
1861
  received: n.data,
1862
1862
  code: C.invalid_enum_value,
1863
1863
  options: r
1864
- }), k;
1864
+ }), S;
1865
1865
  }
1866
1866
  return le(t.data);
1867
1867
  }
@@ -1874,7 +1874,7 @@ Wt.create = (e, t) => new Wt({
1874
1874
  typeName: H.ZodNativeEnum,
1875
1875
  ...Q(t)
1876
1876
  });
1877
- class ut extends S {
1877
+ class ut extends X {
1878
1878
  _parse(t) {
1879
1879
  const { ctx: s } = this._processInputParams(t);
1880
1880
  if (s.parsedType !== j.promise && s.common.async === !1)
@@ -1882,7 +1882,7 @@ class ut extends S {
1882
1882
  code: C.invalid_type,
1883
1883
  expected: j.promise,
1884
1884
  received: s.parsedType
1885
- }), k;
1885
+ }), S;
1886
1886
  const n = s.parsedType === j.promise ? s.data : Promise.resolve(s.data);
1887
1887
  return le(n.then((r) => this._def.type.parseAsync(r, {
1888
1888
  path: s.path,
@@ -1895,7 +1895,7 @@ ut.create = (e, t) => new ut({
1895
1895
  typeName: H.ZodPromise,
1896
1896
  ...Q(t)
1897
1897
  });
1898
- class qe extends S {
1898
+ class qe extends X {
1899
1899
  innerType() {
1900
1900
  return this._def.schema;
1901
1901
  }
@@ -1936,9 +1936,9 @@ class qe extends S {
1936
1936
  path: n.path,
1937
1937
  parent: n
1938
1938
  });
1939
- return l.status === "aborted" ? k : (l.status === "dirty" && s.dirty(), c(l.value), { status: s.value, value: l.value });
1939
+ return l.status === "aborted" ? S : (l.status === "dirty" && s.dirty(), c(l.value), { status: s.value, value: l.value });
1940
1940
  } else
1941
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((l) => l.status === "aborted" ? k : (l.status === "dirty" && s.dirty(), c(l.value).then(() => ({ status: s.value, value: l.value }))));
1941
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((l) => l.status === "aborted" ? S : (l.status === "dirty" && s.dirty(), c(l.value).then(() => ({ status: s.value, value: l.value }))));
1942
1942
  }
1943
1943
  if (r.type === "transform")
1944
1944
  if (n.common.async === !1) {
@@ -1970,7 +1970,7 @@ qe.createWithPreprocess = (e, t, s) => new qe({
1970
1970
  typeName: H.ZodEffects,
1971
1971
  ...Q(s)
1972
1972
  });
1973
- class Ge extends S {
1973
+ class Ge extends X {
1974
1974
  _parse(t) {
1975
1975
  return this._getType(t) === j.undefined ? le(void 0) : this._def.innerType._parse(t);
1976
1976
  }
@@ -1983,7 +1983,7 @@ Ge.create = (e, t) => new Ge({
1983
1983
  typeName: H.ZodOptional,
1984
1984
  ...Q(t)
1985
1985
  });
1986
- class tt extends S {
1986
+ class tt extends X {
1987
1987
  _parse(t) {
1988
1988
  return this._getType(t) === j.null ? le(null) : this._def.innerType._parse(t);
1989
1989
  }
@@ -1996,7 +1996,7 @@ tt.create = (e, t) => new tt({
1996
1996
  typeName: H.ZodNullable,
1997
1997
  ...Q(t)
1998
1998
  });
1999
- class Xs extends S {
1999
+ class ks extends X {
2000
2000
  _parse(t) {
2001
2001
  const { ctx: s } = this._processInputParams(t);
2002
2002
  let n = s.data;
@@ -2010,12 +2010,12 @@ class Xs extends S {
2010
2010
  return this._def.innerType;
2011
2011
  }
2012
2012
  }
2013
- Xs.create = (e, t) => new Ge({
2013
+ ks.create = (e, t) => new Ge({
2014
2014
  innerType: e,
2015
2015
  typeName: H.ZodOptional,
2016
2016
  ...Q(t)
2017
2017
  });
2018
- class Lt extends S {
2018
+ class Lt extends X {
2019
2019
  _parse(t) {
2020
2020
  if (this._getType(t) !== j.nan) {
2021
2021
  const n = this._getOrReturnCtx(t);
@@ -2023,7 +2023,7 @@ class Lt extends S {
2023
2023
  code: C.invalid_type,
2024
2024
  expected: j.nan,
2025
2025
  received: n.parsedType
2026
- }), k;
2026
+ }), S;
2027
2027
  }
2028
2028
  return { status: "valid", value: t.data };
2029
2029
  }
@@ -2046,7 +2046,7 @@ var H;
2046
2046
  })(H || (H = {}));
2047
2047
  const ma = (e, t = {
2048
2048
  message: `Input not instance of ${e.name}`
2049
- }) => wn((s) => s instanceof e, t, !0), Bn = Ze.create, Mn = _e.create, ga = Lt.create, pa = kt.create, Cn = Xt.create, fa = ct.create, ha = St.create, ya = Qt.create, ba = lt.create, va = Te.create, wa = Ue.create, Ba = Tt.create, Ma = Ve.create, Ca = $.create, Da = $.strictCreate, ja = jt.create, xa = _t.create, Ea = xt.create, Pa = Fe.create, Ya = Et.create, Ga = Zt.create, Oa = $e.create, Va = et.create, Fa = Ut.create, qa = zt.create, Ia = $t.create, Ra = Wt.create, Ha = ut.create, tn = qe.create, ka = Ge.create, Xa = tt.create, Sa = qe.createWithPreprocess, Qa = () => Bn().optional(), Ta = () => Mn().optional(), Na = () => Cn().optional();
2049
+ }) => wn((s) => s instanceof e, t, !0), Bn = Ze.create, Mn = _e.create, ga = Lt.create, pa = St.create, Cn = kt.create, fa = ct.create, ha = Xt.create, ya = Qt.create, ba = lt.create, va = Te.create, wa = Ue.create, Ba = Tt.create, Ma = Ve.create, Ca = $.create, Da = $.strictCreate, ja = jt.create, xa = _t.create, Ea = xt.create, Pa = Fe.create, Ya = Et.create, Ga = Zt.create, Oa = $e.create, Va = et.create, Fa = Ut.create, qa = zt.create, Ia = $t.create, Ra = Wt.create, Ha = ut.create, tn = qe.create, Sa = Ge.create, ka = tt.create, Xa = qe.createWithPreprocess, Qa = () => Bn().optional(), Ta = () => Mn().optional(), Na = () => Cn().optional();
2050
2050
  var vt = /* @__PURE__ */ Object.freeze({
2051
2051
  __proto__: null,
2052
2052
  getParsedType: Qe,
@@ -2055,21 +2055,21 @@ var vt = /* @__PURE__ */ Object.freeze({
2055
2055
  EMPTY_PATH: oa,
2056
2056
  addIssueToContext: P,
2057
2057
  ParseStatus: ce,
2058
- INVALID: k,
2058
+ INVALID: S,
2059
2059
  DIRTY: ia,
2060
2060
  OK: le,
2061
2061
  isAborted: Ds,
2062
2062
  isDirty: js,
2063
2063
  isValid: Ht,
2064
2064
  isAsync: xs,
2065
- jsonStringifyReplacer: ks,
2066
- ZodType: S,
2065
+ jsonStringifyReplacer: Ss,
2066
+ ZodType: X,
2067
2067
  ZodString: Ze,
2068
2068
  ZodNumber: _e,
2069
- ZodBigInt: kt,
2070
- ZodBoolean: Xt,
2069
+ ZodBigInt: St,
2070
+ ZodBoolean: kt,
2071
2071
  ZodDate: ct,
2072
- ZodUndefined: St,
2072
+ ZodUndefined: Xt,
2073
2073
  ZodNull: Qt,
2074
2074
  ZodAny: lt,
2075
2075
  ZodUnknown: Te,
@@ -2097,11 +2097,11 @@ var vt = /* @__PURE__ */ Object.freeze({
2097
2097
  ZodTransformer: qe,
2098
2098
  ZodOptional: Ge,
2099
2099
  ZodNullable: tt,
2100
- ZodDefault: Xs,
2100
+ ZodDefault: ks,
2101
2101
  ZodNaN: Lt,
2102
2102
  custom: wn,
2103
- Schema: S,
2104
- ZodSchema: S,
2103
+ Schema: X,
2104
+ ZodSchema: X,
2105
2105
  late: da,
2106
2106
  get ZodFirstPartyTypeKind() {
2107
2107
  return H;
@@ -2124,14 +2124,14 @@ var vt = /* @__PURE__ */ Object.freeze({
2124
2124
  nativeEnum: Ra,
2125
2125
  never: wa,
2126
2126
  null: ya,
2127
- nullable: Xa,
2127
+ nullable: ka,
2128
2128
  number: Mn,
2129
2129
  object: Ca,
2130
2130
  oboolean: Na,
2131
2131
  onumber: Ta,
2132
- optional: ka,
2132
+ optional: Sa,
2133
2133
  ostring: Qa,
2134
- preprocess: Sa,
2134
+ preprocess: Xa,
2135
2135
  promise: Ha,
2136
2136
  record: Ya,
2137
2137
  set: Oa,
@@ -2145,12 +2145,12 @@ var vt = /* @__PURE__ */ Object.freeze({
2145
2145
  void: Ba,
2146
2146
  ZodIssueCode: C,
2147
2147
  quotelessJson: ra,
2148
- ZodError: ke,
2148
+ ZodError: Se,
2149
2149
  defaultErrorMap: Dt,
2150
2150
  setErrorMap: aa,
2151
2151
  getErrorMap: It
2152
2152
  });
2153
- function Ss(e) {
2153
+ function Xs(e) {
2154
2154
  return typeof e == "object" && e !== null && !Array.isArray(e) && Object.keys(e).length === 1 && typeof e.$form == "string";
2155
2155
  }
2156
2156
  function Za(e, t, s) {
@@ -2169,7 +2169,7 @@ function Za(e, t, s) {
2169
2169
  });
2170
2170
  }
2171
2171
  function Dn(e, t = []) {
2172
- if (Ss(e))
2172
+ if (Xs(e))
2173
2173
  t.push(e.$form);
2174
2174
  else if (typeof e == "object" && e !== null)
2175
2175
  for (const s of Object.values(e)) Dn(s, t);
@@ -2195,12 +2195,12 @@ function Ua(e, t) {
2195
2195
  };
2196
2196
  }
2197
2197
  function Ps(e, t) {
2198
- return Ss(e) ? t[e.$form] : Array.isArray(e) ? e.map((s) => Ps(s, t)) : typeof e == "object" && e !== null ? Object.fromEntries(
2198
+ return Xs(e) ? t[e.$form] : Array.isArray(e) ? e.map((s) => Ps(s, t)) : typeof e == "object" && e !== null ? Object.fromEntries(
2199
2199
  Object.entries(e).map(([s, n]) => [s, Ps(n, t)])
2200
2200
  ) : e;
2201
2201
  }
2202
2202
  function Ys(e, t, s, n) {
2203
- if (Ss(e))
2203
+ if (Xs(e))
2204
2204
  return za(e.$form, t, s) ? (n[e.$form] = t, !0) : !1;
2205
2205
  if (Array.isArray(e) || Array.isArray(t))
2206
2206
  return !Array.isArray(e) || !Array.isArray(t) || e.length !== t.length ? !1 : e.every((r, a) => Ys(r, t[a], s, n));
@@ -2787,7 +2787,8 @@ const xn = {
2787
2787
  view: "Viewed team member {id}",
2788
2788
  create: "Added team member {name}",
2789
2789
  update: "Updated team member {name}",
2790
- delete: "Removed team member {name}"
2790
+ delete: "Removed team member {name}",
2791
+ "generate-passcode": "Generated team member passcode"
2791
2792
  },
2792
2793
  "pos-user": {
2793
2794
  list: "Listed employees",
@@ -3016,7 +3017,8 @@ const xn = {
3016
3017
  view: "ดูสมาชิกทีม {id}",
3017
3018
  create: "เพิ่มสมาชิกทีม {name}",
3018
3019
  update: "อัปเดตสมาชิกทีม {name}",
3019
- delete: "ลบสมาชิกทีม {name}"
3020
+ delete: "ลบสมาชิกทีม {name}",
3021
+ "generate-passcode": "สร้างรหัสผ่านสมาชิกทีม"
3020
3022
  },
3021
3023
  "pos-user": {
3022
3024
  list: "ดูรายการพนักงาน",
@@ -3245,7 +3247,8 @@ const xn = {
3245
3247
  view: "查看了团队成员 {id}",
3246
3248
  create: "添加了团队成员 {name}",
3247
3249
  update: "更新了团队成员 {name}",
3248
- delete: "移除了团队成员 {name}"
3250
+ delete: "移除了团队成员 {name}",
3251
+ "generate-passcode": "生成了团队成员密码"
3249
3252
  },
3250
3253
  "pos-user": {
3251
3254
  list: "查看了员工列表",
@@ -3474,7 +3477,8 @@ const xn = {
3474
3477
  view: "查看了團隊成員 {id}",
3475
3478
  create: "新增了團隊成員 {name}",
3476
3479
  update: "更新了團隊成員 {name}",
3477
- delete: "移除了團隊成員 {name}"
3480
+ delete: "移除了團隊成員 {name}",
3481
+ "generate-passcode": "產生了團隊成員密碼"
3478
3482
  },
3479
3483
  "pos-user": {
3480
3484
  list: "查看了員工列表",
@@ -3514,7 +3518,7 @@ const xn = {
3514
3518
  "zh-CN": Fo,
3515
3519
  "th-TH": Oo,
3516
3520
  "zh-Hant": Io
3517
- }, kn = {
3521
+ }, Sn = {
3518
3522
  employee: {
3519
3523
  title: "Employee",
3520
3524
  subtitle: "Manage employees with access to the POS at your outlets.",
@@ -3541,6 +3545,8 @@ const xn = {
3541
3545
  passcode: "Passcode",
3542
3546
  passcodeRequired: "Passcode must be 4 digits",
3543
3547
  passcodeGenerate: "Generate code",
3548
+ passcodeSelectOutletFirst: "Select an outlet first",
3549
+ passcodeToggleVisibility: "Show or hide passcode",
3544
3550
  atLeastOneRestaurant: "Select at least one restaurant",
3545
3551
  roleRequired: "Select a role for every restaurant",
3546
3552
  all: "All",
@@ -3718,12 +3724,12 @@ const xn = {
3718
3724
  }
3719
3725
  }
3720
3726
  }, Ho = {
3721
- hr: kn
3722
- }, ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3727
+ hr: Sn
3728
+ }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3723
3729
  __proto__: null,
3724
3730
  default: Ho,
3725
- hr: kn
3726
- }, Symbol.toStringTag, { value: "Module" })), Xn = {
3731
+ hr: Sn
3732
+ }, Symbol.toStringTag, { value: "Module" })), kn = {
3727
3733
  employee: {
3728
3734
  title: "พนักงาน",
3729
3735
  subtitle: "จัดการพนักงานที่สามารถเข้าถึงระบบ POS ในสาขาของคุณ",
@@ -3750,6 +3756,8 @@ const xn = {
3750
3756
  passcode: "รหัสผ่าน",
3751
3757
  passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
3752
3758
  passcodeGenerate: "สร้างรหัส",
3759
+ passcodeSelectOutletFirst: "กรุณาเลือกร้านอาหารก่อน",
3760
+ passcodeToggleVisibility: "แสดงหรือซ่อนรหัสผ่าน",
3753
3761
  atLeastOneRestaurant: "เลือกร้านอาหารอย่างน้อยหนึ่งสาขา",
3754
3762
  roleRequired: "กรุณาเลือกตำแหน่งให้ทุกร้านอาหาร",
3755
3763
  all: "ทั้งหมด",
@@ -3925,13 +3933,13 @@ const xn = {
3925
3933
  placeholder: "ค้นหาร้านอาหาร"
3926
3934
  }
3927
3935
  }
3928
- }, Xo = {
3929
- hr: Xn
3930
- }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3936
+ }, ko = {
3937
+ hr: kn
3938
+ }, Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3931
3939
  __proto__: null,
3932
- default: Xo,
3933
- hr: Xn
3934
- }, Symbol.toStringTag, { value: "Module" })), Sn = {
3940
+ default: ko,
3941
+ hr: kn
3942
+ }, Symbol.toStringTag, { value: "Module" })), Xn = {
3935
3943
  employee: {
3936
3944
  title: "员工",
3937
3945
  subtitle: "管理可访问您门店 POS 系统的员工。",
@@ -3958,6 +3966,8 @@ const xn = {
3958
3966
  passcode: "密码",
3959
3967
  passcodeRequired: "密码必须为4位数字",
3960
3968
  passcodeGenerate: "生成密码",
3969
+ passcodeSelectOutletFirst: "请先选择餐厅",
3970
+ passcodeToggleVisibility: "显示或隐藏密码",
3961
3971
  atLeastOneRestaurant: "至少选择一个餐厅",
3962
3972
  roleRequired: "请为每个餐厅选择角色",
3963
3973
  all: "全选",
@@ -4135,11 +4145,11 @@ const xn = {
4135
4145
  }
4136
4146
  }
4137
4147
  }, Qo = {
4138
- hr: Sn
4148
+ hr: Xn
4139
4149
  }, To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4140
4150
  __proto__: null,
4141
4151
  default: Qo,
4142
- hr: Sn
4152
+ hr: Xn
4143
4153
  }, Symbol.toStringTag, { value: "Module" })), Qn = {
4144
4154
  employee: {
4145
4155
  title: "員工",
@@ -4167,6 +4177,8 @@ const xn = {
4167
4177
  passcode: "密碼",
4168
4178
  passcodeRequired: "密碼必須為4位數字",
4169
4179
  passcodeGenerate: "生成密碼",
4180
+ passcodeSelectOutletFirst: "請先選擇餐廳",
4181
+ passcodeToggleVisibility: "顯示或隱藏密碼",
4170
4182
  atLeastOneRestaurant: "至少選擇一個餐廳",
4171
4183
  roleRequired: "請為每個餐廳選擇角色",
4172
4184
  all: "全選",
@@ -4345,9 +4357,9 @@ const xn = {
4345
4357
  default: No,
4346
4358
  hr: Qn
4347
4359
  }, Symbol.toStringTag, { value: "Module" })), Uo = {
4348
- "en-US": ko,
4360
+ "en-US": So,
4349
4361
  "zh-CN": To,
4350
- "th-TH": So,
4362
+ "th-TH": Xo,
4351
4363
  "zh-Hant": Zo
4352
4364
  }, Tn = {
4353
4365
  title: "Team members",
@@ -4450,6 +4462,9 @@ const xn = {
4450
4462
  title: "Master user",
4451
4463
  passcode: "Master user passcode",
4452
4464
  passcodeRequired: "Passcode must be 4 digits",
4465
+ passcodeGenerate: "Generate code",
4466
+ passcodeSelectOutletFirst: "Select an outlet first",
4467
+ passcodeToggleVisibility: "Show or hide passcode",
4453
4468
  sublabel: "Master user can access restaurant POS system.",
4454
4469
  assignmentSection: "Outlet & Role Assignment",
4455
4470
  addAnother: "Add another",
@@ -4706,6 +4721,9 @@ const xn = {
4706
4721
  title: "ผู้ใช้หลัก",
4707
4722
  passcode: "รหัสผ่านผู้ใช้หลัก",
4708
4723
  passcodeRequired: "รหัสผ่านต้องเป็นตัวเลข 4 หลัก",
4724
+ passcodeGenerate: "สร้างรหัส",
4725
+ passcodeSelectOutletFirst: "กรุณาเลือกร้านอาหารก่อน",
4726
+ passcodeToggleVisibility: "แสดงหรือซ่อนรหัสผ่าน",
4709
4727
  sublabel: "ผู้ใช้หลักสามารถเข้าถึงระบบ POS ของร้านอาหารได้",
4710
4728
  assignmentSection: "การกำหนดสาขาและตำแหน่ง",
4711
4729
  addAnother: "เพิ่มอีก",
@@ -4962,6 +4980,9 @@ const xn = {
4962
4980
  title: "主用户",
4963
4981
  passcode: "主用户密码",
4964
4982
  passcodeRequired: "密码必须为4位数字",
4983
+ passcodeGenerate: "生成密码",
4984
+ passcodeSelectOutletFirst: "请先选择餐厅",
4985
+ passcodeToggleVisibility: "显示或隐藏密码",
4965
4986
  sublabel: "主用户可以访问餐厅 POS 系统。",
4966
4987
  assignmentSection: "门店与角色分配",
4967
4988
  addAnother: "再添加一项",
@@ -5218,6 +5239,9 @@ const xn = {
5218
5239
  title: "主用户",
5219
5240
  passcode: "主用户密碼",
5220
5241
  passcodeRequired: "密碼必須為4位數字",
5242
+ passcodeGenerate: "生成密碼",
5243
+ passcodeSelectOutletFirst: "請先選擇餐廳",
5244
+ passcodeToggleVisibility: "顯示或隱藏密碼",
5221
5245
  sublabel: "主用户可以訪問餐廳 POS 系統。",
5222
5246
  assignmentSection: "門店與角色分配",
5223
5247
  addAnother: "再新增一項",
@@ -7258,7 +7282,7 @@ const J = [
7258
7282
  o.delete
7259
7283
  ]
7260
7284
  }
7261
- ], ki = [
7285
+ ], Si = [
7262
7286
  ...J,
7263
7287
  {
7264
7288
  label: "Credit",
@@ -7270,7 +7294,7 @@ const J = [
7270
7294
  o.delete
7271
7295
  ]
7272
7296
  }
7273
- ], Xi = [
7297
+ ], ki = [
7274
7298
  ...J,
7275
7299
  {
7276
7300
  label: "Experience",
@@ -7282,7 +7306,7 @@ const J = [
7282
7306
  o.delete
7283
7307
  ]
7284
7308
  }
7285
- ], Si = [
7309
+ ], Xi = [
7286
7310
  ...J,
7287
7311
  {
7288
7312
  label: "Game",
@@ -7363,13 +7387,13 @@ const J = [
7363
7387
  Hi
7364
7388
  ), Br = ge(
7365
7389
  we,
7366
- ki
7390
+ Si
7367
7391
  ), Mr = ge(
7368
7392
  we,
7369
- Xi
7393
+ ki
7370
7394
  ), Cr = ge(
7371
7395
  we,
7372
- Si
7396
+ Xi
7373
7397
  ), Dr = ge(
7374
7398
  we,
7375
7399
  Qi
@@ -8345,29 +8369,29 @@ var Rr = { exports: {} };
8345
8369
  if (!(E instanceof Array)) {
8346
8370
  var Y = D(E);
8347
8371
  if (Y === E && a(E) === "object") {
8348
- for (X = m.length; X--; )
8349
- if (String(m[X]) === String(E) && String(E) !== "[object Object]")
8372
+ for (k = m.length; k--; )
8373
+ if (String(m[k]) === String(E) && String(E) !== "[object Object]")
8350
8374
  return !0;
8351
8375
  }
8352
8376
  if (Y === void 0) {
8353
- for (X = m.length; X--; ) if (m[X] == null) return !0;
8377
+ for (k = m.length; k--; ) if (m[k] == null) return !0;
8354
8378
  }
8355
- for (X = m.length; X--; ) {
8356
- var R = W(mt(w(m, X), B), Y, X, m);
8379
+ for (k = m.length; k--; ) {
8380
+ var R = W(mt(w(m, k), B), Y, k, m);
8357
8381
  if (R && String(R) !== "[object Object]" && String(Y) !== "[object Object]")
8358
8382
  return !0;
8359
8383
  }
8360
8384
  return !!~m.indexOf(Y);
8361
8385
  }
8362
- for (var X = E.length; X--; )
8363
- if (~m.indexOf(D(w(E, X)))) return !0;
8386
+ for (var k = E.length; k--; )
8387
+ if (~m.indexOf(D(w(E, k)))) return !0;
8364
8388
  return !1;
8365
8389
  };
8366
8390
  },
8367
8391
  $nin: function(m, p, B) {
8368
8392
  var D = oe.$in(m, p, B);
8369
- return function(E, Y, R, X) {
8370
- return !D(E, Y, R, X);
8393
+ return function(E, Y, R, k) {
8394
+ return !D(E, Y, R, k);
8371
8395
  };
8372
8396
  },
8373
8397
  $mod: function(m) {
@@ -8377,8 +8401,8 @@ var Rr = { exports: {} };
8377
8401
  },
8378
8402
  $ne: function(m, p, B) {
8379
8403
  var D = oe.$eq(m, p, B);
8380
- return Z(function(E, Y, R, X) {
8381
- return !D(E, Y, R, X);
8404
+ return Z(function(E, Y, R, k) {
8405
+ return !D(E, Y, R, k);
8382
8406
  });
8383
8407
  },
8384
8408
  $and: function(m, p, B) {
@@ -8436,9 +8460,9 @@ var Rr = { exports: {} };
8436
8460
  var R = Y[0];
8437
8461
  return W(D, R[0], R[1], R[2]);
8438
8462
  }
8439
- for (var X = E && E.$ne !== void 0, ee = X, re = 0; re < Y.length; re++) {
8463
+ for (var k = E && E.$ne !== void 0, ee = k, re = 0; re < Y.length; re++) {
8440
8464
  var f = Y[re], u = W(D, f[0], f[1], f[2]);
8441
- X ? ee &= u : ee |= u;
8465
+ k ? ee &= u : ee |= u;
8442
8466
  }
8443
8467
  return ee;
8444
8468
  }
@@ -8447,29 +8471,29 @@ var Rr = { exports: {} };
8447
8471
  }
8448
8472
  function Be(m) {
8449
8473
  var p = m.comparable, B = m.expressions, D = function(R) {
8450
- var X;
8451
- return (!R || !(X = R) || X.constructor !== Object && X.constructor !== Array && X.constructor.toString() !== "function Object() { [native code] }" && X.constructor.toString() !== "function Array() { [native code] }" || X.toJSON) && (R = { $eq: R }), R;
8474
+ var k;
8475
+ return (!R || !(k = R) || k.constructor !== Object && k.constructor !== Array && k.constructor.toString() !== "function Object() { [native code] }" && k.constructor.toString() !== "function Array() { [native code] }" || k.toJSON) && (R = { $eq: R }), R;
8452
8476
  }, E = function(R) {
8453
8477
  R = p(R);
8454
- var X = [];
8478
+ var k = [];
8455
8479
  for (var ee in R) {
8456
8480
  var re = R[ee];
8457
8481
  if (ee !== "$options") {
8458
8482
  var f = te[ee] || m && B && B[ee];
8459
- if (f) oe[ee] && (re = oe[ee](re, R, m)), X.push(fe(p(re), f));
8483
+ if (f) oe[ee] && (re = oe[ee](re, R, m)), k.push(fe(p(re), f));
8460
8484
  else {
8461
8485
  if (ee.charCodeAt(0) === 36)
8462
8486
  throw new Error("Unknown operation " + ee);
8463
8487
  var u = ee.split(".");
8464
- X.push(ts(u, Y(re), re));
8488
+ k.push(ts(u, Y(re), re));
8465
8489
  }
8466
8490
  }
8467
8491
  }
8468
- return X.length === 1 ? X[0] : fe(X, te.$and);
8492
+ return k.length === 1 ? k[0] : fe(k, te.$and);
8469
8493
  }, Y = function(R) {
8470
- return R = D(R), function X(ee, re) {
8494
+ return R = D(R), function k(ee, re) {
8471
8495
  if (!y(ee)) return re;
8472
- for (var f in ee) re.push(f), X(ee[f], re);
8496
+ for (var f in ee) re.push(f), k(ee[f], re);
8473
8497
  return re;
8474
8498
  }(R, []).join(",").search(/[$.]/) === -1 ? fe(R, ze) : E(R);
8475
8499
  };
@@ -8804,17 +8828,17 @@ function Vc(e) {
8804
8828
  reason: t.source !== void 0 ? JSON.stringify(t.source) : t.reason
8805
8829
  }));
8806
8830
  }
8807
- function kr(e) {
8831
+ function Sr(e) {
8808
8832
  return new Gc(Vc(e));
8809
8833
  }
8810
8834
  function Fc(e, t) {
8811
8835
  return e.rulesFor(t.action, t.subject, t.field).some((s) => !s.inverted);
8812
8836
  }
8813
- function Xr(e, t) {
8837
+ function kr(e, t) {
8814
8838
  return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !Fc(e, t);
8815
8839
  }
8816
8840
  function Fs(e, t) {
8817
- const s = kr(t), n = (l) => s.can(l.action, l.subject, l.field) ? !0 : Xr(s, l) ? s.can(l.action, l.coverSubject, l.field) : !1, r = e.find((l) => !n(l));
8841
+ const s = Sr(t), n = (l) => s.can(l.action, l.subject, l.field) ? !0 : kr(s, l) ? s.can(l.action, l.coverSubject, l.field) : !1, r = e.find((l) => !n(l));
8818
8842
  if (r) {
8819
8843
  const l = s.relevantRuleFor(
8820
8844
  r.action,
@@ -8834,7 +8858,7 @@ function qc(e, t) {
8834
8858
  const s = Fs([e], t);
8835
8859
  if (!s.granted)
8836
8860
  return { ...s, conditionEvaluation: "not_enforced" };
8837
- const n = kr(t), r = Xr(n, e) ? e.coverSubject : void 0, a = [e.subject, r].filter(
8861
+ const n = Sr(t), r = kr(n, e) ? e.coverSubject : void 0, a = [e.subject, r].filter(
8838
8862
  (c) => c !== void 0
8839
8863
  ).flatMap((c) => {
8840
8864
  const l = no(c).filter((y) => {
@@ -8892,7 +8916,7 @@ function Hc(e, t, s) {
8892
8916
  }
8893
8917
  }), r ? Rs(() => (y.value = !0, h.value)) : h;
8894
8918
  }
8895
- async function kc(e) {
8919
+ async function Sc(e) {
8896
8920
  const { sessionUser: t, validationManifest: s } = e, { requiredRoles: n, requiredCaslPermissions: r, customValidationFunction: a } = s;
8897
8921
  if (!t)
8898
8922
  return { canAccess: !1 };
@@ -8916,10 +8940,10 @@ async function kc(e) {
8916
8940
  }
8917
8941
  return Promise.resolve({ canAccess: !0 });
8918
8942
  }
8919
- async function Xc(e, t) {
8943
+ async function kc(e, t) {
8920
8944
  for (const s of e.matched)
8921
8945
  if (s.meta.validationManifest) {
8922
- const n = await kc({
8946
+ const n = await Sc({
8923
8947
  sessionUser: t,
8924
8948
  validationManifest: s.meta.validationManifest
8925
8949
  });
@@ -8935,7 +8959,7 @@ async function Xc(e, t) {
8935
8959
  };
8936
8960
  }
8937
8961
  var qs = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(qs || {});
8938
- function Sc() {
8962
+ function Xc() {
8939
8963
  const e = ta(), { sessionUser: t } = fn();
8940
8964
  return Hc(
8941
8965
  async () => {
@@ -8946,7 +8970,7 @@ function Sc() {
8946
8970
  if (!s)
8947
8971
  return "denied";
8948
8972
  try {
8949
- return (await Xc(e, s)).canAccess ? "allowed" : "denied";
8973
+ return (await kc(e, s)).canAccess ? "allowed" : "denied";
8950
8974
  } catch {
8951
8975
  return "denied";
8952
8976
  }
@@ -9004,7 +9028,7 @@ const Qc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
9004
9028
  }), rl = /* @__PURE__ */ At({
9005
9029
  __name: "PermissionWrapper",
9006
9030
  setup(e) {
9007
- const t = Sc();
9031
+ const t = Xc();
9008
9032
  return (s, n) => Je(t) === Je(qs).Denied ? (dt(), Jt(nl, { key: 0 })) : Je(t) === Je(qs).Allowed ? mn(s.$slots, "default", { key: 1 }) : Ur("", !0);
9009
9033
  }
9010
9034
  });
@@ -9085,11 +9109,11 @@ const Ot = (e) => ({
9085
9109
  }
9086
9110
  ]
9087
9111
  }
9088
- }), ll = es(De(() => import("./Main-7yT_w5vt.js"))), ul = es(De(() => import("./Main-Ada9K_jO.js"))), Al = es(
9089
- De(() => import("./AuditLogList-Cpj8O5qS.js"))
9090
- ), dl = es(De(() => import("./Main-T9-30vq8.js"))), ml = De(() => import("./ApprovalCodeList-ChGQwko6.js")), gl = De(() => import("./GrantUserList-CAXJmQ4i.js")), pl = De(() => import("./EmployeeList-PdGzSCP-.js")), fl = De(() => import("./RoleList-Do36AmlU.js")), hl = De(() => import("./TimesheetList-DboJ2_89.js")), yl = De(() => import("./TeamMemberList-CVVNnz0R.js")), bl = De(
9091
- () => import("./PermissionSetList-CkWYPmT2.js")
9092
- ), kl = [
9112
+ }), ll = es(De(() => import("./Main-B7Nn8CLQ.js"))), ul = es(De(() => import("./Main-NzpdRNB3.js"))), Al = es(
9113
+ De(() => import("./AuditLogList-vWKMMGvd.js"))
9114
+ ), dl = es(De(() => import("./Main-Wr6cTqfM.js"))), ml = De(() => import("./ApprovalCodeList-DgcWZ3SZ.js")), gl = De(() => import("./GrantUserList-BAW0C1bA.js")), pl = De(() => import("./EmployeeList-Cu4RxVQX.js")), fl = De(() => import("./RoleList-BuqpmXn_.js")), hl = De(() => import("./TimesheetList-B5FyVyCz.js")), yl = De(() => import("./TeamMemberList-M6HA9BWu.js")), bl = De(
9115
+ () => import("./PermissionSetList-D6AFOleD.js")
9116
+ ), Sl = [
9093
9117
  {
9094
9118
  path: "/",
9095
9119
  name: "home",
@@ -9591,18 +9615,18 @@ var Is = { exports: {} };
9591
9615
  me.setLoadingState(r(r({}, me.loadingState), { isFetching: !1, isLoading: !1, error: ve })), je == null || je(ve);
9592
9616
  }, this.enableLogs = be || !1, this.cacheOptions = nt ? { skipAPI: !!nt.skipAPI, ttl: nt.ttl || 0, storageKey: nt.storageKey, loadStale: !!nt.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 = ft || !1, this.flags = Object.assign({}, he) || {}, this.datadogRum = Ae || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ie !== void 0 && !!L, Be = "FLAGSMITH_EVENT_" + b.environment.apiKey, K && (ie = K), ht && typeof window < "u" && this.setupRealtime(de, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = r(r({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Ns), this.log("Initialising with properties", u, this), xe && (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), ns && (V = /* @__PURE__ */ function(ve) {
9593
9617
  return function(Ee, Pe) {
9594
- var Xe = Pe.headers, _ = Pe.method, at = Pe.body;
9618
+ var ke = Pe.headers, _ = Pe.method, at = Pe.body;
9595
9619
  return new Promise(function(We) {
9596
9620
  switch (_) {
9597
9621
  case "GET":
9598
- return ve.get(Ee, { headers: Xe }).subscribe(function(Ie) {
9622
+ return ve.get(Ee, { headers: ke }).subscribe(function(Ie) {
9599
9623
  We({ ok: !0, text: function() {
9600
9624
  return Promise.resolve(Ie);
9601
9625
  } });
9602
9626
  });
9603
9627
  case "POST":
9604
9628
  case "PUT":
9605
- return ve.post(Ee, at, { headers: Xe }).subscribe(function(Ie) {
9629
+ return ve.post(Ee, at, { headers: ke }).subscribe(function(Ie) {
9606
9630
  We({ ok: !0, text: function() {
9607
9631
  return Promise.resolve(Ie);
9608
9632
  } });
@@ -9621,46 +9645,46 @@ var Is = { exports: {} };
9621
9645
  if (Ee && me.evaluationContext.environment) {
9622
9646
  var Pe = JSON.parse(Ee);
9623
9647
  if (Pe[me.evaluationContext.environment.apiKey]) {
9624
- var Xe = me.getState();
9625
- me.log("Retrieved events from cache", Ee), me.setState(r(r({}, Xe), { evaluationEvent: Pe[me.evaluationContext.environment.apiKey] }));
9648
+ var ke = me.getState();
9649
+ me.log("Retrieved events from cache", Ee), me.setState(r(r({}, ke), { evaluationEvent: Pe[me.evaluationContext.environment.apiKey] }));
9626
9650
  }
9627
9651
  }
9628
9652
  })), !L) return [3, 9];
9629
9653
  if (!ie || !this.canUseStorage) return [3, 8];
9630
9654
  zs = function(ve, Ee) {
9631
9655
  return a(me, void 0, void 0, function() {
9632
- var Pe, Xe, _, at, We, Ie, os, Ls, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, bs, vs, ws, Bs, Ks = this;
9633
- return c(this, function(Se) {
9634
- switch (Se.label) {
9656
+ var Pe, ke, _, at, We, Ie, os, Ls, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, bs, vs, ws, Bs, Ks = this;
9657
+ return c(this, function(Xe) {
9658
+ switch (Xe.label) {
9635
9659
  case 0:
9636
9660
  if (!Ee) return [3, 7];
9637
- Pe = null, Xe = null, Se.label = 1;
9661
+ Pe = null, ke = null, Xe.label = 1;
9638
9662
  case 1:
9639
- return Se.trys.push([1, 5, , 6]), _ = JSON.parse(Ee), at = !1, We = !1, _ && _.api === this.api && ((cs = (is = _.evaluationContext) === null || is === void 0 ? void 0 : is.environment) === null || cs === void 0 ? void 0 : cs.apiKey) === ((ls = this.evaluationContext.environment) === null || ls === void 0 ? void 0 : ls.apiKey) && (Ie = !0, this.evaluationContext.identity && ((As = (us = _.evaluationContext) === null || us === void 0 ? void 0 : us.identity) === null || As === void 0 ? void 0 : As.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ms = (ds = _.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity) === null || ms === void 0 ? void 0 : ms.identifier) + " to " + this.evaluationContext.identity.identifier), Ie = !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"), Ie = !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"), We = !0, Ie = !0)), Ie && (at = !0, Xe = h((gs = this.evaluationContext.identity) === null || gs === void 0 ? void 0 : gs.traits, (fs = (ps = _.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits), Pe = h(this.flags, _.flags), this.setState(r(r({}, _), { evaluationContext: oe(r(r({}, _.evaluationContext), { identity: !((hs = _.evaluationContext) === null || hs === void 0) && hs.identity ? r(r({}, (ys = _.evaluationContext) === null || ys === void 0 ? void 0 : ys.identity), { traits: r(r({}, ((vs = (bs = _.evaluationContext) === null || bs === void 0 ? void 0 : bs.identity) === null || vs === void 0 ? void 0 : vs.traits) || {}), yt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", _))), at ? (os = !ye && (!this.cacheOptions.skipAPI || We), this._onChange(null, { isFromServer: !1, flagsChanged: Pe, traitsChanged: Xe }, this._loadedState(null, w.CACHE, os)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && at && !We && this.log("Skipping API, using cache"), os && this.getFlags().catch(function(Sr) {
9663
+ return Xe.trys.push([1, 5, , 6]), _ = JSON.parse(Ee), at = !1, We = !1, _ && _.api === this.api && ((cs = (is = _.evaluationContext) === null || is === void 0 ? void 0 : is.environment) === null || cs === void 0 ? void 0 : cs.apiKey) === ((ls = this.evaluationContext.environment) === null || ls === void 0 ? void 0 : ls.apiKey) && (Ie = !0, this.evaluationContext.identity && ((As = (us = _.evaluationContext) === null || us === void 0 ? void 0 : us.identity) === null || As === void 0 ? void 0 : As.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ms = (ds = _.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity) === null || ms === void 0 ? void 0 : ms.identifier) + " to " + this.evaluationContext.identity.identifier), Ie = !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"), Ie = !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"), We = !0, Ie = !0)), Ie && (at = !0, ke = h((gs = this.evaluationContext.identity) === null || gs === void 0 ? void 0 : gs.traits, (fs = (ps = _.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits), Pe = h(this.flags, _.flags), this.setState(r(r({}, _), { evaluationContext: oe(r(r({}, _.evaluationContext), { identity: !((hs = _.evaluationContext) === null || hs === void 0) && hs.identity ? r(r({}, (ys = _.evaluationContext) === null || ys === void 0 ? void 0 : ys.identity), { traits: r(r({}, ((vs = (bs = _.evaluationContext) === null || bs === void 0 ? void 0 : bs.identity) === null || vs === void 0 ? void 0 : vs.traits) || {}), yt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", _))), at ? (os = !ye && (!this.cacheOptions.skipAPI || We), this._onChange(null, { isFromServer: !1, flagsChanged: Pe, traitsChanged: ke }, this._loadedState(null, w.CACHE, os)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && at && !We && this.log("Skipping API, using cache"), os && this.getFlags().catch(function(Xr) {
9640
9664
  var Ms;
9641
- (Ms = Ks.onError) === null || Ms === void 0 || Ms.call(Ks, Sr);
9665
+ (Ms = Ks.onError) === null || Ms === void 0 || Ms.call(Ks, Xr);
9642
9666
  }), [3, 4]) : [3, 2];
9643
9667
  case 2:
9644
9668
  return ye ? [3, 4] : [4, this.getFlags()];
9645
9669
  case 3:
9646
- Se.sent(), Se.label = 4;
9670
+ Xe.sent(), Xe.label = 4;
9647
9671
  case 4:
9648
9672
  return [3, 6];
9649
9673
  case 5:
9650
- return Ls = Se.sent(), this.log("Exception fetching cached logs", Ls), [3, 6];
9674
+ return Ls = Xe.sent(), this.log("Exception fetching cached logs", Ls), [3, 6];
9651
9675
  case 6:
9652
9676
  return [3, 10];
9653
9677
  case 7:
9654
9678
  return ye ? [3, 9] : [4, this.getFlags()];
9655
9679
  case 8:
9656
- return Se.sent(), [3, 10];
9680
+ return Xe.sent(), [3, 10];
9657
9681
  case 9:
9658
9682
  if (he) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ws = this.evaluationContext.identity) === null || ws === void 0 ? void 0 : ws.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
9659
9683
  else {
9660
9684
  if (!this.flags) throw new Error(rs);
9661
9685
  this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (Bs = this.evaluationContext.identity) === null || Bs === void 0 ? void 0 : Bs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
9662
9686
  }
9663
- Se.label = 10;
9687
+ Xe.label = 10;
9664
9688
  case 10:
9665
9689
  return [2];
9666
9690
  }
@@ -9796,7 +9820,7 @@ var Is = { exports: {} };
9796
9820
  Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
9797
9821
  }
9798
9822
  return B(u, f), u;
9799
- }(Error), X = function() {
9823
+ }(Error), k = function() {
9800
9824
  function f(u, i) {
9801
9825
  var g = this;
9802
9826
  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();
@@ -9900,9 +9924,9 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9900
9924
  }, d.onerror = g, d.withCredentials = u.credentials == "include", u.headers) d.setRequestHeader(T, u.headers[T]);
9901
9925
  d.send(u.body || null);
9902
9926
  });
9903
- }, re = m({ AsyncStorage: n, fetch: ee, eventSource: X });
9927
+ }, re = m({ AsyncStorage: n, fetch: ee, eventSource: k });
9904
9928
  typeof window < "u" && (window.flagsmith = re), s.createFlagsmithInstance = function() {
9905
- return m({ AsyncStorage: n, fetch: ee, eventSource: X });
9929
+ return m({ AsyncStorage: n, fetch: ee, eventSource: k });
9906
9930
  }, s.default = re, Object.defineProperty(s, "__esModule", { value: !0 });
9907
9931
  });
9908
9932
  })(Is, Is.exports);
@@ -10074,7 +10098,7 @@ function Dl(e = Cl) {
10074
10098
  };
10075
10099
  }
10076
10100
  var jl = () => Dl();
10077
- const Xl = /* @__PURE__ */ At({
10101
+ const kl = /* @__PURE__ */ At({
10078
10102
  __name: "App",
10079
10103
  setup(e) {
10080
10104
  const t = fn(), { init: s } = jl();
@@ -10087,7 +10111,7 @@ const Xl = /* @__PURE__ */ At({
10087
10111
  return dt(), Jt(a);
10088
10112
  };
10089
10113
  }
10090
- }), Sl = () => {
10114
+ }), Xl = () => {
10091
10115
  const e = [
10092
10116
  ti,
10093
10117
  Uo,
@@ -10126,11 +10150,11 @@ export {
10126
10150
  Ka as f,
10127
10151
  dc as g,
10128
10152
  Oc as h,
10129
- Sl as i,
10130
- Xl as j,
10153
+ Xl as i,
10154
+ kl as j,
10131
10155
  no as k,
10132
10156
  Hl as m,
10133
10157
  o as n,
10134
- kl as r,
10158
+ Sl as r,
10135
10159
  jl as u
10136
10160
  };