@feedmepos/mf-hrm-portal 2.1.1-dev.4 → 2.1.1-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.
Files changed (40) hide show
  1. package/dist/ApprovalCodeList-B1XHbhum.js +757 -0
  2. package/dist/AuditLogList-DrrL4vf4.js +1149 -0
  3. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-zJwkM_Xb.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-CBjO1MZo.js} +2 -2
  4. package/dist/{EmployeeList-DN2pnXcS.js → EmployeeList-BMol4ah4.js} +7 -8
  5. package/dist/{GrantUserList-DoyxknJZ.js → GrantUserList-CLBl7FZ-.js} +3 -3
  6. package/dist/{Main-DQj4xtkB.js → Main-DNOHZd3j.js} +5 -5
  7. package/dist/{Main-B5BKGpLg.js → Main-D_LwrBdZ.js} +9 -9
  8. package/dist/{Main-BGONIxo8.js → Main-auigiuVZ.js} +2 -2
  9. package/dist/{PermissionSetList-4uIU9FvN.js → PermissionSetList-DLYrXFbz.js} +5 -5
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D0luaKDb.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Drcx0tL_.js} +763 -763
  11. package/dist/{RoleList-Bj5Y5jd_.js → RoleList-g8PjH_k2.js} +7 -7
  12. package/dist/{TeamMemberList-Byjlca2Y.js → TeamMemberList-B9aCagSc.js} +21 -22
  13. package/dist/{TimesheetList-DwIcsOM-.js → TimesheetList-C1IJhOYE.js} +5 -5
  14. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-B9qlQ6KG.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CqtiVm1j.js} +2 -2
  15. package/dist/{app-BZwE2coe.js → app-DnOYVjuj.js} +500 -804
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-BXBPls4m.js → dayjs.min-Dxul0qTK.js} +1 -1
  18. package/dist/{employee-CJTbs1f7.js → employee-sr65CZR7.js} +3 -3
  19. package/dist/{iteration-BCbIbdHR.js → iteration-DIqDMvFa.js} +1 -1
  20. package/dist/{lodash-CUIS1iIz.js → lodash-CXlqXFmD.js} +1 -1
  21. package/dist/{role-CzXchcSS.js → role-CE3NY-63.js} +1 -1
  22. package/dist/{rule-BO6xj2Xa.js → rule-CEjrit6c.js} +2 -2
  23. package/dist/src/api/audit-log/index.d.ts +0 -6
  24. package/dist/src/stores/approval-code.d.ts +6 -6
  25. package/dist/src/types/approval-code.d.ts +51 -26
  26. package/dist/src/types/audit-log.d.ts +1 -1
  27. package/dist/src/views/approval-code/ApprovalCodeList.vue.d.ts +1 -1
  28. package/dist/src/views/approval-code/locales/index.d.ts +4 -12
  29. package/dist/src/views/audit-log/locales/index.d.ts +0 -296
  30. package/dist/style.css +1 -1
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/useDebounce-CWb5QR9G.js +28 -0
  33. package/dist/{useReportPermissions-Q-xLwz5N.js → useReportPermissions-FVW_HwcL.js} +3 -3
  34. package/package.json +1 -1
  35. package/dist/ApprovalCodeList-B0PLZwav.js +0 -758
  36. package/dist/AuditLogList-CRXwPImZ.js +0 -1611
  37. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  38. package/dist/src/views/audit-log/event-line.d.ts +0 -13
  39. package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
  40. package/dist/useDebounce-B8ZPVS5C.js +0 -15
@@ -1,7 +1,7 @@
1
1
  var Rn = Object.defineProperty;
2
2
  var Xn = (e, t, s) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
3
  var xt = (e, t, s) => Xn(e, typeof t != "symbol" ? t + "" : t, s);
4
- import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as zs, defineComponent as it, createBlock as zt, renderSlot as cr, createCommentVNode as Tn, unref as Ue, openBlock as ct, createElementBlock as lr, createElementVNode as Ze, toDisplayString as Ws, watch as Nn, nextTick as Sn, onMounted as ur, onBeforeUnmount as Zn, normalizeStyle as Un, resolveComponent as Fs, withCtx as zn, createVNode as Wn, defineAsyncComponent as Ln, readonly as vs } from "vue";
4
+ import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as Us, defineComponent as it, createBlock as Ut, renderSlot as cr, createCommentVNode as Tn, unref as ze, openBlock as ct, createElementBlock as lr, createElementVNode as Se, toDisplayString as Ws, watch as Nn, nextTick as Zn, onMounted as ur, onBeforeUnmount as Sn, normalizeStyle as zn, resolveComponent as Fs, withCtx as Un, createVNode as Wn, defineAsyncComponent as Ln, readonly as vs } from "vue";
5
5
  import { useBreakpoints as Kn } from "@feedmepos/ui-library";
6
6
  import { useRoute as Jn, useRouter as _n } from "vue-router";
7
7
  import { useCoreStore as Ar, useI18n as dr } from "@feedmepos/mf-common";
@@ -21,7 +21,7 @@ const v = {
21
21
  miniProgram: "Mini Program",
22
22
  media: "Media"
23
23
  }, $n = "access-denied";
24
- var S;
24
+ var Z;
25
25
  (function(e) {
26
26
  function t(n) {
27
27
  }
@@ -55,8 +55,8 @@ var S;
55
55
  return n.map((c) => typeof c == "string" ? `'${c}'` : c).join(a);
56
56
  }
57
57
  e.joinValues = r;
58
- })(S || (S = {}));
59
- const x = S.arrayToEnum([
58
+ })(Z || (Z = {}));
59
+ const x = Z.arrayToEnum([
60
60
  "string",
61
61
  "nan",
62
62
  "number",
@@ -96,7 +96,7 @@ const x = S.arrayToEnum([
96
96
  default:
97
97
  return x.unknown;
98
98
  }
99
- }, C = S.arrayToEnum([
99
+ }, C = Z.arrayToEnum([
100
100
  "invalid_type",
101
101
  "invalid_literal",
102
102
  "custom",
@@ -169,7 +169,7 @@ class Fe extends Error {
169
169
  }
170
170
  }
171
171
  Fe.create = (e) => new Fe(e);
172
- const wt = (e, t) => {
172
+ const Bt = (e, t) => {
173
173
  let s;
174
174
  switch (e.code) {
175
175
  case C.invalid_type:
@@ -179,16 +179,16 @@ const wt = (e, t) => {
179
179
  s = `Invalid literal value, expected ${JSON.stringify(e.expected, qs)}`;
180
180
  break;
181
181
  case C.unrecognized_keys:
182
- s = `Unrecognized key(s) in object: ${S.joinValues(e.keys, ", ")}`;
182
+ s = `Unrecognized key(s) in object: ${Z.joinValues(e.keys, ", ")}`;
183
183
  break;
184
184
  case C.invalid_union:
185
185
  s = "Invalid input";
186
186
  break;
187
187
  case C.invalid_union_discriminator:
188
- s = `Invalid discriminator value. Expected ${S.joinValues(e.options)}`;
188
+ s = `Invalid discriminator value. Expected ${Z.joinValues(e.options)}`;
189
189
  break;
190
190
  case C.invalid_enum_value:
191
- s = `Invalid enum value. Expected ${S.joinValues(e.options)}, received '${e.received}'`;
191
+ s = `Invalid enum value. Expected ${Z.joinValues(e.options)}, received '${e.received}'`;
192
192
  break;
193
193
  case C.invalid_arguments:
194
194
  s = "Invalid function arguments";
@@ -200,7 +200,7 @@ const wt = (e, t) => {
200
200
  s = "Invalid date";
201
201
  break;
202
202
  case C.invalid_string:
203
- typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` : S.assertNever(e.validation) : e.validation !== "regex" ? s = `Invalid ${e.validation}` : s = "Invalid";
203
+ typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` : Z.assertNever(e.validation) : e.validation !== "regex" ? s = `Invalid ${e.validation}` : s = "Invalid";
204
204
  break;
205
205
  case C.too_small:
206
206
  e.type === "array" ? s = `Array must contain ${e.inclusive ? "at least" : "more than"} ${e.minimum} element(s)` : e.type === "string" ? s = `String must contain ${e.inclusive ? "at least" : "over"} ${e.minimum} character(s)` : e.type === "number" ? s = `Number must be greater than ${e.inclusive ? "or equal to " : ""}${e.minimum}` : e.type === "date" ? s = `Date must be greater than ${e.inclusive ? "or equal to " : ""}${new Date(e.minimum)}` : s = "Invalid input";
@@ -218,11 +218,11 @@ const wt = (e, t) => {
218
218
  s = `Number must be a multiple of ${e.multipleOf}`;
219
219
  break;
220
220
  default:
221
- s = t.defaultError, S.assertNever(e);
221
+ s = t.defaultError, Z.assertNever(e);
222
222
  }
223
223
  return { message: s };
224
224
  };
225
- let gr = wt;
225
+ let gr = Bt;
226
226
  function ta(e) {
227
227
  gr = e;
228
228
  }
@@ -253,7 +253,7 @@ function Y(e, t) {
253
253
  e.common.contextualErrorMap,
254
254
  e.schemaErrorMap,
255
255
  Vt(),
256
- wt
256
+ Bt
257
257
  ].filter((r) => !!r)
258
258
  });
259
259
  e.common.issues.push(s);
@@ -299,7 +299,7 @@ class ae {
299
299
  }
300
300
  const H = Object.freeze({
301
301
  status: "aborted"
302
- }), ra = (e) => ({ status: "dirty", value: e }), oe = (e) => ({ status: "valid", value: e }), ws = (e) => e.status === "aborted", Bs = (e) => e.status === "dirty", Ft = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, qs = (e, t) => typeof t == "bigint" ? t.toString() : t;
302
+ }), ra = (e) => ({ status: "dirty", value: e }), oe = (e) => ({ status: "valid", value: e }), Bs = (e) => e.status === "aborted", ws = (e) => e.status === "dirty", Ft = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, qs = (e, t) => typeof t == "bigint" ? t.toString() : t;
303
303
  var T;
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;
@@ -443,13 +443,13 @@ class X {
443
443
  return this.optional().nullable();
444
444
  }
445
445
  array() {
446
- return Pe.create(this);
446
+ return Ge.create(this);
447
447
  }
448
448
  promise() {
449
449
  return ot.create(this);
450
450
  }
451
451
  or(t) {
452
- return Bt.create([this, t]);
452
+ return wt.create([this, t]);
453
453
  }
454
454
  and(t) {
455
455
  return Mt.create(this, t);
@@ -567,7 +567,7 @@ class ke extends X {
567
567
  code: C.invalid_string,
568
568
  validation: { endsWith: a.value },
569
569
  message: a.message
570
- }), r.dirty()) : S.assertNever(a);
570
+ }), r.dirty()) : Z.assertNever(a);
571
571
  return { status: r.value, value: t.data };
572
572
  }
573
573
  _addCheck(t) {
@@ -660,7 +660,7 @@ function ia(e, t) {
660
660
  const s = (e.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, n = s > r ? s : r, a = parseInt(e.toFixed(n).replace(".", "")), c = parseInt(t.toFixed(n).replace(".", ""));
661
661
  return a % c / Math.pow(10, n);
662
662
  }
663
- class ze extends X {
663
+ class Ue extends X {
664
664
  constructor() {
665
665
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
666
666
  }
@@ -676,7 +676,7 @@ class ze extends X {
676
676
  let r;
677
677
  const n = new ae();
678
678
  for (const a of this._def.checks)
679
- a.kind === "int" ? S.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), Y(r, {
679
+ a.kind === "int" ? Z.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), Y(r, {
680
680
  code: C.invalid_type,
681
681
  expected: "integer",
682
682
  received: "float",
@@ -697,7 +697,7 @@ class ze extends X {
697
697
  code: C.not_multiple_of,
698
698
  multipleOf: a.value,
699
699
  message: a.message
700
- }), n.dirty()) : S.assertNever(a);
700
+ }), n.dirty()) : Z.assertNever(a);
701
701
  return { status: n.value, value: t.data };
702
702
  }
703
703
  gte(t, s) {
@@ -713,7 +713,7 @@ class ze extends X {
713
713
  return this.setLimit("max", t, !1, T.toString(s));
714
714
  }
715
715
  setLimit(t, s, r, n) {
716
- return new ze({
716
+ return new Ue({
717
717
  ...this._def,
718
718
  checks: [
719
719
  ...this._def.checks,
@@ -727,7 +727,7 @@ class ze extends X {
727
727
  });
728
728
  }
729
729
  _addCheck(t) {
730
- return new ze({
730
+ return new Ue({
731
731
  ...this._def,
732
732
  checks: [...this._def.checks, t]
733
733
  });
@@ -793,7 +793,7 @@ class ze extends X {
793
793
  return !!this._def.checks.find((t) => t.kind === "int");
794
794
  }
795
795
  }
796
- ze.create = (e) => new ze({
796
+ Ue.create = (e) => new Ue({
797
797
  checks: [],
798
798
  typeName: I.ZodNumber,
799
799
  ...Q(e)
@@ -863,7 +863,7 @@ class nt extends X {
863
863
  inclusive: !0,
864
864
  maximum: a.value,
865
865
  type: "date"
866
- }), r.dirty()) : S.assertNever(a);
866
+ }), r.dirty()) : Z.assertNever(a);
867
867
  return {
868
868
  status: r.value,
869
869
  value: new Date(t.data.getTime())
@@ -996,7 +996,7 @@ Xt.create = (e) => new Xt({
996
996
  typeName: I.ZodVoid,
997
997
  ...Q(e)
998
998
  });
999
- class Pe extends X {
999
+ class Ge extends X {
1000
1000
  _parse(t) {
1001
1001
  const { ctx: s, status: r } = this._processInputParams(t), n = this._def;
1002
1002
  if (s.parsedType !== x.array)
@@ -1026,13 +1026,13 @@ class Pe extends X {
1026
1026
  return this._def.type;
1027
1027
  }
1028
1028
  min(t, s) {
1029
- return new Pe({
1029
+ return new Ge({
1030
1030
  ...this._def,
1031
1031
  minLength: { value: t, message: T.toString(s) }
1032
1032
  });
1033
1033
  }
1034
1034
  max(t, s) {
1035
- return new Pe({
1035
+ return new Ge({
1036
1036
  ...this._def,
1037
1037
  maxLength: { value: t, message: T.toString(s) }
1038
1038
  });
@@ -1044,7 +1044,7 @@ class Pe extends X {
1044
1044
  return this.min(1, t);
1045
1045
  }
1046
1046
  }
1047
- Pe.create = (e, t) => new Pe({
1047
+ Ge.create = (e, t) => new Ge({
1048
1048
  type: e,
1049
1049
  minLength: null,
1050
1050
  maxLength: null,
@@ -1076,7 +1076,7 @@ function rt(e) {
1076
1076
  ...e._def,
1077
1077
  shape: () => t
1078
1078
  });
1079
- } else return e instanceof Pe ? Pe.create(rt(e.element)) : e instanceof Ee ? Ee.create(rt(e.unwrap())) : e instanceof Ke ? Ke.create(rt(e.unwrap())) : e instanceof Ge ? Ge.create(e.items.map((t) => rt(t))) : e;
1079
+ } else return e instanceof Ge ? Ge.create(rt(e.element)) : e instanceof Ee ? Ee.create(rt(e.unwrap())) : e instanceof Ke ? Ke.create(rt(e.unwrap())) : e instanceof Pe ? Pe.create(e.items.map((t) => rt(t))) : e;
1080
1080
  }
1081
1081
  class J extends X {
1082
1082
  constructor() {
@@ -1085,7 +1085,7 @@ class J extends X {
1085
1085
  _getCached() {
1086
1086
  if (this._cached !== null)
1087
1087
  return this._cached;
1088
- const t = this._def.shape(), s = S.objectKeys(t);
1088
+ const t = this._def.shape(), s = Z.objectKeys(t);
1089
1089
  return this._cached = { shape: t, keys: s };
1090
1090
  }
1091
1091
  _parse(t) {
@@ -1102,20 +1102,20 @@ class J extends X {
1102
1102
  c.includes(h) || l.push(h);
1103
1103
  const y = [];
1104
1104
  for (const h of c) {
1105
- const w = a[h], O = n.data[h];
1105
+ const B = a[h], O = n.data[h];
1106
1106
  y.push({
1107
1107
  key: { status: "valid", value: h },
1108
- value: w._parse(new Ye(n, O, n.path, h)),
1108
+ value: B._parse(new Ye(n, O, n.path, h)),
1109
1109
  alwaysSet: h in n.data
1110
1110
  });
1111
1111
  }
1112
1112
  if (this._def.catchall instanceof Te) {
1113
1113
  const h = this._def.unknownKeys;
1114
1114
  if (h === "passthrough")
1115
- for (const w of l)
1115
+ for (const B of l)
1116
1116
  y.push({
1117
- key: { status: "valid", value: w },
1118
- value: { status: "valid", value: n.data[w] }
1117
+ key: { status: "valid", value: B },
1118
+ value: { status: "valid", value: n.data[B] }
1119
1119
  });
1120
1120
  else if (h === "strict")
1121
1121
  l.length > 0 && (Y(n, {
@@ -1125,26 +1125,26 @@ class J extends X {
1125
1125
  else if (h !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1126
1126
  } else {
1127
1127
  const h = this._def.catchall;
1128
- for (const w of l) {
1129
- const O = n.data[w];
1128
+ for (const B of l) {
1129
+ const O = n.data[B];
1130
1130
  y.push({
1131
- key: { status: "valid", value: w },
1131
+ key: { status: "valid", value: B },
1132
1132
  value: h._parse(
1133
- new Ye(n, O, n.path, w)
1133
+ new Ye(n, O, n.path, B)
1134
1134
  //, ctx.child(key), value, getParsedType(value)
1135
1135
  ),
1136
- alwaysSet: w in n.data
1136
+ alwaysSet: B in n.data
1137
1137
  });
1138
1138
  }
1139
1139
  }
1140
1140
  return n.common.async ? Promise.resolve().then(async () => {
1141
1141
  const h = [];
1142
- for (const w of y) {
1143
- const O = await w.key;
1142
+ for (const B of y) {
1143
+ const O = await B.key;
1144
1144
  h.push({
1145
1145
  key: O,
1146
- value: await w.value,
1147
- alwaysSet: w.alwaysSet
1146
+ value: await B.value,
1147
+ alwaysSet: B.alwaysSet
1148
1148
  });
1149
1149
  }
1150
1150
  return h;
@@ -1206,7 +1206,7 @@ class J extends X {
1206
1206
  }
1207
1207
  pick(t) {
1208
1208
  const s = {};
1209
- return S.objectKeys(t).map((r) => {
1209
+ return Z.objectKeys(t).map((r) => {
1210
1210
  this.shape[r] && (s[r] = this.shape[r]);
1211
1211
  }), new J({
1212
1212
  ...this._def,
@@ -1215,8 +1215,8 @@ class J extends X {
1215
1215
  }
1216
1216
  omit(t) {
1217
1217
  const s = {};
1218
- return S.objectKeys(this.shape).map((r) => {
1219
- S.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
1218
+ return Z.objectKeys(this.shape).map((r) => {
1219
+ Z.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
1220
1220
  }), new J({
1221
1221
  ...this._def,
1222
1222
  shape: () => s
@@ -1228,8 +1228,8 @@ class J extends X {
1228
1228
  partial(t) {
1229
1229
  const s = {};
1230
1230
  if (t)
1231
- return S.objectKeys(this.shape).map((r) => {
1232
- S.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
1231
+ return Z.objectKeys(this.shape).map((r) => {
1232
+ Z.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
1233
1233
  }), new J({
1234
1234
  ...this._def,
1235
1235
  shape: () => s
@@ -1257,7 +1257,7 @@ class J extends X {
1257
1257
  });
1258
1258
  }
1259
1259
  keyof() {
1260
- return pr(S.objectKeys(this.shape));
1260
+ return pr(Z.objectKeys(this.shape));
1261
1261
  }
1262
1262
  }
1263
1263
  J.create = (e, t) => new J({
@@ -1281,7 +1281,7 @@ J.lazycreate = (e, t) => new J({
1281
1281
  typeName: I.ZodObject,
1282
1282
  ...Q(t)
1283
1283
  });
1284
- class Bt extends X {
1284
+ class wt extends X {
1285
1285
  _parse(t) {
1286
1286
  const { ctx: s } = this._processInputParams(t), r = this._def.options;
1287
1287
  function n(a) {
@@ -1327,14 +1327,14 @@ class Bt extends X {
1327
1327
  issues: []
1328
1328
  },
1329
1329
  parent: null
1330
- }, w = y._parseSync({
1330
+ }, B = y._parseSync({
1331
1331
  data: s.data,
1332
1332
  path: s.path,
1333
1333
  parent: h
1334
1334
  });
1335
- if (w.status === "valid")
1336
- return w;
1337
- w.status === "dirty" && !a && (a = { result: w, ctx: h }), h.common.issues.length && c.push(h.common.issues);
1335
+ if (B.status === "valid")
1336
+ return B;
1337
+ B.status === "dirty" && !a && (a = { result: B, ctx: h }), h.common.issues.length && c.push(h.common.issues);
1338
1338
  }
1339
1339
  if (a)
1340
1340
  return s.common.issues.push(...a.ctx.common.issues), a.result;
@@ -1349,7 +1349,7 @@ class Bt extends X {
1349
1349
  return this._def.options;
1350
1350
  }
1351
1351
  }
1352
- Bt.create = (e, t) => new Bt({
1352
+ wt.create = (e, t) => new wt({
1353
1353
  options: e,
1354
1354
  typeName: I.ZodUnion,
1355
1355
  ...Q(t)
@@ -1420,7 +1420,7 @@ function Cs(e, t) {
1420
1420
  if (e === t)
1421
1421
  return { valid: !0, data: e };
1422
1422
  if (s === x.object && r === x.object) {
1423
- const n = S.objectKeys(t), a = S.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1423
+ const n = Z.objectKeys(t), a = Z.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1424
1424
  for (const l of a) {
1425
1425
  const y = Cs(e[l], t[l]);
1426
1426
  if (!y.valid)
@@ -1444,10 +1444,10 @@ function Cs(e, t) {
1444
1444
  class Mt extends X {
1445
1445
  _parse(t) {
1446
1446
  const { status: s, ctx: r } = this._processInputParams(t), n = (a, c) => {
1447
- if (ws(a) || ws(c))
1447
+ if (Bs(a) || Bs(c))
1448
1448
  return H;
1449
1449
  const l = Cs(a.value, c.value);
1450
- return l.valid ? ((Bs(a) || Bs(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1450
+ return l.valid ? ((ws(a) || ws(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1451
1451
  code: C.invalid_intersection_types
1452
1452
  }), H);
1453
1453
  };
@@ -1479,7 +1479,7 @@ Mt.create = (e, t, s) => new Mt({
1479
1479
  typeName: I.ZodIntersection,
1480
1480
  ...Q(s)
1481
1481
  });
1482
- class Ge extends X {
1482
+ class Pe extends X {
1483
1483
  _parse(t) {
1484
1484
  const { status: s, ctx: r } = this._processInputParams(t);
1485
1485
  if (r.parsedType !== x.array)
@@ -1511,13 +1511,13 @@ class Ge extends X {
1511
1511
  return this._def.items;
1512
1512
  }
1513
1513
  rest(t) {
1514
- return new Ge({
1514
+ return new Pe({
1515
1515
  ...this._def,
1516
1516
  rest: t
1517
1517
  });
1518
1518
  }
1519
1519
  }
1520
- Ge.create = (e, t) => new Ge({
1520
+ Pe.create = (e, t) => new Pe({
1521
1521
  items: e,
1522
1522
  typeName: I.ZodTuple,
1523
1523
  rest: null,
@@ -1580,20 +1580,20 @@ class kt extends X {
1580
1580
  const l = /* @__PURE__ */ new Map();
1581
1581
  return Promise.resolve().then(async () => {
1582
1582
  for (const y of c) {
1583
- const h = await y.key, w = await y.value;
1584
- if (h.status === "aborted" || w.status === "aborted")
1583
+ const h = await y.key, B = await y.value;
1584
+ if (h.status === "aborted" || B.status === "aborted")
1585
1585
  return H;
1586
- (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1586
+ (h.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(h.value, B.value);
1587
1587
  }
1588
1588
  return { status: s.value, value: l };
1589
1589
  });
1590
1590
  } else {
1591
1591
  const l = /* @__PURE__ */ new Map();
1592
1592
  for (const y of c) {
1593
- const h = y.key, w = y.value;
1594
- if (h.status === "aborted" || w.status === "aborted")
1593
+ const h = y.key, B = y.value;
1594
+ if (h.status === "aborted" || B.status === "aborted")
1595
1595
  return H;
1596
- (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1596
+ (h.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(h.value, B.value);
1597
1597
  }
1598
1598
  return { status: s.value, value: l };
1599
1599
  }
@@ -1631,10 +1631,10 @@ class We extends X {
1631
1631
  const a = this._def.valueType;
1632
1632
  function c(y) {
1633
1633
  const h = /* @__PURE__ */ new Set();
1634
- for (const w of y) {
1635
- if (w.status === "aborted")
1634
+ for (const B of y) {
1635
+ if (B.status === "aborted")
1636
1636
  return H;
1637
- w.status === "dirty" && s.dirty(), h.add(w.value);
1637
+ B.status === "dirty" && s.dirty(), h.add(B.value);
1638
1638
  }
1639
1639
  return { status: s.value, value: h };
1640
1640
  }
@@ -1687,7 +1687,7 @@ class Le extends X {
1687
1687
  s.common.contextualErrorMap,
1688
1688
  s.schemaErrorMap,
1689
1689
  Vt(),
1690
- wt
1690
+ Bt
1691
1691
  ].filter((h) => !!h),
1692
1692
  issueData: {
1693
1693
  code: C.invalid_arguments,
@@ -1703,7 +1703,7 @@ class Le extends X {
1703
1703
  s.common.contextualErrorMap,
1704
1704
  s.schemaErrorMap,
1705
1705
  Vt(),
1706
- wt
1706
+ Bt
1707
1707
  ].filter((h) => !!h),
1708
1708
  issueData: {
1709
1709
  code: C.invalid_return_type,
@@ -1715,18 +1715,18 @@ class Le extends X {
1715
1715
  return this._def.returns instanceof ot ? oe(async (...l) => {
1716
1716
  const y = new Fe([]), h = await this._def.args.parseAsync(l, a).catch((N) => {
1717
1717
  throw y.addIssue(r(l, N)), y;
1718
- }), w = await c(...h);
1719
- return await this._def.returns._def.type.parseAsync(w, a).catch((N) => {
1720
- throw y.addIssue(n(w, N)), y;
1718
+ }), B = await c(...h);
1719
+ return await this._def.returns._def.type.parseAsync(B, a).catch((N) => {
1720
+ throw y.addIssue(n(B, N)), y;
1721
1721
  });
1722
1722
  }) : oe((...l) => {
1723
1723
  const y = this._def.args.safeParse(l, a);
1724
1724
  if (!y.success)
1725
1725
  throw new Fe([r(l, y.error)]);
1726
- const h = c(...y.data), w = this._def.returns.safeParse(h, a);
1727
- if (!w.success)
1728
- throw new Fe([n(h, w.error)]);
1729
- return w.data;
1726
+ const h = c(...y.data), B = this._def.returns.safeParse(h, a);
1727
+ if (!B.success)
1728
+ throw new Fe([n(h, B.error)]);
1729
+ return B.data;
1730
1730
  });
1731
1731
  }
1732
1732
  parameters() {
@@ -1738,7 +1738,7 @@ class Le extends X {
1738
1738
  args(...t) {
1739
1739
  return new Le({
1740
1740
  ...this._def,
1741
- args: Ge.create(t).rest(Xe.create())
1741
+ args: Pe.create(t).rest(Xe.create())
1742
1742
  });
1743
1743
  }
1744
1744
  returns(t) {
@@ -1755,7 +1755,7 @@ class Le extends X {
1755
1755
  }
1756
1756
  }
1757
1757
  Le.create = (e, t, s) => new Le({
1758
- args: e ? e.rest(Xe.create()) : Ge.create([]).rest(Xe.create()),
1758
+ args: e ? e.rest(Xe.create()) : Pe.create([]).rest(Xe.create()),
1759
1759
  returns: t || Xe.create(),
1760
1760
  typeName: I.ZodFunction,
1761
1761
  ...Q(s)
@@ -1806,7 +1806,7 @@ class Lt extends X {
1806
1806
  if (typeof t.data != "string") {
1807
1807
  const s = this._getOrReturnCtx(t), r = this._def.values;
1808
1808
  return Y(s, {
1809
- expected: S.joinValues(r),
1809
+ expected: Z.joinValues(r),
1810
1810
  received: s.parsedType,
1811
1811
  code: C.invalid_type
1812
1812
  }), H;
@@ -1844,19 +1844,19 @@ class Lt extends X {
1844
1844
  }
1845
1845
  }
1846
1846
  Lt.create = pr;
1847
- class St extends X {
1847
+ class Zt extends X {
1848
1848
  _parse(t) {
1849
- const s = S.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1849
+ const s = Z.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1850
1850
  if (r.parsedType !== x.string && r.parsedType !== x.number) {
1851
- const n = S.objectValues(s);
1851
+ const n = Z.objectValues(s);
1852
1852
  return Y(r, {
1853
- expected: S.joinValues(n),
1853
+ expected: Z.joinValues(n),
1854
1854
  received: r.parsedType,
1855
1855
  code: C.invalid_type
1856
1856
  }), H;
1857
1857
  }
1858
1858
  if (s.indexOf(t.data) === -1) {
1859
- const n = S.objectValues(s);
1859
+ const n = Z.objectValues(s);
1860
1860
  return Y(r, {
1861
1861
  received: r.data,
1862
1862
  code: C.invalid_enum_value,
@@ -1869,7 +1869,7 @@ class St extends X {
1869
1869
  return this._def.values;
1870
1870
  }
1871
1871
  }
1872
- St.create = (e, t) => new St({
1872
+ Zt.create = (e, t) => new Zt({
1873
1873
  values: e,
1874
1874
  typeName: I.ZodNativeEnum,
1875
1875
  ...Q(t)
@@ -1955,7 +1955,7 @@ class Ve extends X {
1955
1955
  return { status: s.value, value: l };
1956
1956
  } else
1957
1957
  return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((c) => Ft(c) ? Promise.resolve(n.transform(c.value, a)).then((l) => ({ status: s.value, value: l })) : c);
1958
- S.assertNever(n);
1958
+ Z.assertNever(n);
1959
1959
  }
1960
1960
  }
1961
1961
  Ve.create = (e, t, s) => new Ve({
@@ -2015,7 +2015,7 @@ Is.create = (e, t) => new Ee({
2015
2015
  typeName: I.ZodOptional,
2016
2016
  ...Q(t)
2017
2017
  });
2018
- class Zt extends X {
2018
+ class St extends X {
2019
2019
  _parse(t) {
2020
2020
  if (this._getType(t) !== x.nan) {
2021
2021
  const r = this._getOrReturnCtx(t);
@@ -2028,7 +2028,7 @@ class Zt extends X {
2028
2028
  return { status: "valid", value: t.data };
2029
2029
  }
2030
2030
  }
2031
- Zt.create = (e) => new Zt({
2031
+ St.create = (e) => new St({
2032
2032
  typeName: I.ZodNaN,
2033
2033
  ...Q(e)
2034
2034
  });
@@ -2046,7 +2046,7 @@ var I;
2046
2046
  })(I || (I = {}));
2047
2047
  const la = (e, t = {
2048
2048
  message: `Input not instance of ${e.name}`
2049
- }) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = ze.create, ua = Zt.create, Aa = qt.create, br = It.create, da = nt.create, ma = Ht.create, ga = Rt.create, pa = at.create, fa = Xe.create, ha = Te.create, ya = Xt.create, ba = Pe.create, va = J.create, wa = J.strictCreate, Ba = Bt.create, Ma = Wt.create, Ca = Mt.create, Da = Ge.create, xa = Ct.create, ja = kt.create, Ea = We.create, Ya = Le.create, Pa = Tt.create, Ga = Nt.create, Va = Lt.create, Oa = St.create, Fa = ot.create, Js = Ve.create, qa = Ee.create, Ia = Ke.create, Ha = Ve.createWithPreprocess, Ra = () => hr().optional(), Xa = () => yr().optional(), Qa = () => br().optional();
2049
+ }) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = Ue.create, ua = St.create, Aa = qt.create, br = It.create, da = nt.create, ma = Ht.create, ga = Rt.create, pa = at.create, fa = Xe.create, ha = Te.create, ya = Xt.create, ba = Ge.create, va = J.create, Ba = J.strictCreate, wa = wt.create, Ma = Wt.create, Ca = Mt.create, Da = Pe.create, xa = Ct.create, ja = kt.create, Ea = We.create, Ya = Le.create, Ga = Tt.create, Pa = Nt.create, Va = Lt.create, Oa = Zt.create, Fa = ot.create, Js = Ve.create, qa = Ee.create, Ia = Ke.create, Ha = Ve.createWithPreprocess, Ra = () => hr().optional(), Xa = () => yr().optional(), Qa = () => br().optional();
2050
2050
  var ft = /* @__PURE__ */ Object.freeze({
2051
2051
  __proto__: null,
2052
2052
  getParsedType: Re,
@@ -2058,14 +2058,14 @@ var ft = /* @__PURE__ */ Object.freeze({
2058
2058
  INVALID: H,
2059
2059
  DIRTY: ra,
2060
2060
  OK: oe,
2061
- isAborted: ws,
2062
- isDirty: Bs,
2061
+ isAborted: Bs,
2062
+ isDirty: ws,
2063
2063
  isValid: Ft,
2064
2064
  isAsync: Ms,
2065
2065
  jsonStringifyReplacer: qs,
2066
2066
  ZodType: X,
2067
2067
  ZodString: ke,
2068
- ZodNumber: ze,
2068
+ ZodNumber: Ue,
2069
2069
  ZodBigInt: qt,
2070
2070
  ZodBoolean: It,
2071
2071
  ZodDate: nt,
@@ -2075,15 +2075,15 @@ var ft = /* @__PURE__ */ Object.freeze({
2075
2075
  ZodUnknown: Xe,
2076
2076
  ZodNever: Te,
2077
2077
  ZodVoid: Xt,
2078
- ZodArray: Pe,
2078
+ ZodArray: Ge,
2079
2079
  get objectUtil() {
2080
2080
  return Qt;
2081
2081
  },
2082
2082
  ZodObject: J,
2083
- ZodUnion: Bt,
2083
+ ZodUnion: wt,
2084
2084
  ZodDiscriminatedUnion: Wt,
2085
2085
  ZodIntersection: Mt,
2086
- ZodTuple: Ge,
2086
+ ZodTuple: Pe,
2087
2087
  ZodRecord: Ct,
2088
2088
  ZodMap: kt,
2089
2089
  ZodSet: We,
@@ -2091,14 +2091,14 @@ var ft = /* @__PURE__ */ Object.freeze({
2091
2091
  ZodLazy: Tt,
2092
2092
  ZodLiteral: Nt,
2093
2093
  ZodEnum: Lt,
2094
- ZodNativeEnum: St,
2094
+ ZodNativeEnum: Zt,
2095
2095
  ZodPromise: ot,
2096
2096
  ZodEffects: Ve,
2097
2097
  ZodTransformer: Ve,
2098
2098
  ZodOptional: Ee,
2099
2099
  ZodNullable: Ke,
2100
2100
  ZodDefault: Is,
2101
- ZodNaN: Zt,
2101
+ ZodNaN: St,
2102
2102
  custom: fr,
2103
2103
  Schema: X,
2104
2104
  ZodSchema: X,
@@ -2117,8 +2117,8 @@ var ft = /* @__PURE__ */ Object.freeze({
2117
2117
  function: Ya,
2118
2118
  instanceof: la,
2119
2119
  intersection: Ca,
2120
- lazy: Pa,
2121
- literal: Ga,
2120
+ lazy: Ga,
2121
+ literal: Pa,
2122
2122
  map: ja,
2123
2123
  nan: ua,
2124
2124
  nativeEnum: Oa,
@@ -2135,18 +2135,18 @@ var ft = /* @__PURE__ */ Object.freeze({
2135
2135
  promise: Fa,
2136
2136
  record: xa,
2137
2137
  set: Ea,
2138
- strictObject: wa,
2138
+ strictObject: Ba,
2139
2139
  string: hr,
2140
2140
  transformer: Js,
2141
2141
  tuple: Da,
2142
2142
  undefined: ma,
2143
- union: Ba,
2143
+ union: wa,
2144
2144
  unknown: fa,
2145
2145
  void: ya,
2146
2146
  ZodIssueCode: C,
2147
2147
  quotelessJson: ea,
2148
2148
  ZodError: Fe,
2149
- defaultErrorMap: wt,
2149
+ defaultErrorMap: Bt,
2150
2150
  setErrorMap: ta,
2151
2151
  getErrorMap: Vt
2152
2152
  });
@@ -2222,26 +2222,26 @@ function Na(e, t, s) {
2222
2222
  const r = s.fields.find((n) => n.key === e);
2223
2223
  return (r == null ? void 0 : r.kind) === "number" ? typeof t == "number" : (r == null ? void 0 : r.kind) === "switch" ? typeof t == "boolean" : typeof t == "number" || typeof t == "string" || typeof t == "boolean";
2224
2224
  }
2225
- function Sa(e) {
2225
+ function Za(e) {
2226
2226
  return "fields" in e;
2227
2227
  }
2228
- function Za(e, t) {
2228
+ function Sa(e, t) {
2229
2229
  const s = e.visibleWhen;
2230
2230
  if (!s) return !0;
2231
2231
  const r = t[s.field];
2232
2232
  return "eq" in s ? r === s.eq : s.in ? s.in.includes(r) : !0;
2233
2233
  }
2234
- function Ua(e, t) {
2235
- return e.fields.filter((s) => Za(s, t));
2234
+ function za(e, t) {
2235
+ return e.fields.filter((s) => Sa(s, t));
2236
2236
  }
2237
2237
  function El(e, t) {
2238
2238
  const s = { ...t };
2239
- for (const r of Ua(e, s))
2239
+ for (const r of za(e, s))
2240
2240
  (s[r.key] === void 0 || s[r.key] === null) && r.default !== void 0 && (s[r.key] = r.default);
2241
2241
  return s;
2242
2242
  }
2243
- function za(e) {
2244
- if (Sa(e.form)) {
2243
+ function Ua(e) {
2244
+ if (Za(e.form)) {
2245
2245
  const s = new Set(e.form.fields.map((r) => r.key));
2246
2246
  for (const r of e.form.fields)
2247
2247
  if (r.visibleWhen && !s.has(r.visibleWhen.field))
@@ -2267,7 +2267,7 @@ function Wa(e) {
2267
2267
  const t = e == null ? void 0 : e.shape;
2268
2268
  return t ? Object.keys(t) : void 0;
2269
2269
  }
2270
- const wr = /* @__PURE__ */ new Map(), Pt = [], La = /* @__PURE__ */ new Map(), _s = "prefix:";
2270
+ const Br = /* @__PURE__ */ new Map(), Gt = [], La = /* @__PURE__ */ new Map(), _s = "prefix:";
2271
2271
  function Ka(e) {
2272
2272
  for (const [t, s] of Object.entries(e))
2273
2273
  Ja([t], s);
@@ -2278,10 +2278,10 @@ function Ja(e, t) {
2278
2278
  for (const r of s) La.set(r.builderKey, r);
2279
2279
  for (const r of e)
2280
2280
  if (r.startsWith(_s)) {
2281
- const n = r.slice(_s.length), a = Pt.findIndex((c) => c.prefix === n);
2282
- a >= 0 ? Pt[a] = { prefix: n, builders: s } : Pt.push({ prefix: n, builders: s });
2281
+ const n = r.slice(_s.length), a = Gt.findIndex((c) => c.prefix === n);
2282
+ a >= 0 ? Gt[a] = { prefix: n, builders: s } : Gt.push({ prefix: n, builders: s });
2283
2283
  } else
2284
- wr.set(r, s);
2284
+ Br.set(r, s);
2285
2285
  }
2286
2286
  function _a(e, t) {
2287
2287
  const s = /* @__PURE__ */ new Map();
@@ -2300,10 +2300,10 @@ function _a(e, t) {
2300
2300
  }
2301
2301
  }
2302
2302
  function $a(e) {
2303
- const t = wr.get(e);
2303
+ const t = Br.get(e);
2304
2304
  if (t) return t;
2305
2305
  let s;
2306
- for (const r of Pt)
2306
+ for (const r of Gt)
2307
2307
  e.startsWith(r.prefix) && (!s || r.prefix.length > s.prefix.length) && (s = r);
2308
2308
  return (s == null ? void 0 : s.builders) ?? [];
2309
2309
  }
@@ -2438,7 +2438,7 @@ const Ao = {
2438
2438
  }
2439
2439
  }
2440
2440
  ]
2441
- }, mo = za({
2441
+ }, mo = Ua({
2442
2442
  version: 1,
2443
2443
  builderKey: io,
2444
2444
  contextSchema: to,
@@ -2495,7 +2495,7 @@ function po(e, t) {
2495
2495
  const s = new Set(t.flatMap((r) => r.ownedFields));
2496
2496
  return Object.fromEntries(Object.entries(e).filter(([r]) => !s.has(r)));
2497
2497
  }
2498
- function Pl(e, t) {
2498
+ function Gl(e, t) {
2499
2499
  return Object.assign(
2500
2500
  po(
2501
2501
  e,
@@ -2504,7 +2504,7 @@ function Pl(e, t) {
2504
2504
  ...t.map((s) => s.builder.toCondition(s.formValue))
2505
2505
  );
2506
2506
  }
2507
- const Br = {
2507
+ const wr = {
2508
2508
  mode: "Access window",
2509
2509
  unrestricted: "No restriction",
2510
2510
  since: "Since date",
@@ -2520,11 +2520,11 @@ const Br = {
2520
2520
  inheritedLastMonths: "last {amount} months",
2521
2521
  inheritedLastYears: "last {amount} years"
2522
2522
  }, fo = {
2523
- reportAccessWindow: Br
2523
+ reportAccessWindow: wr
2524
2524
  }, ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2525
2525
  __proto__: null,
2526
2526
  default: fo,
2527
- reportAccessWindow: Br
2527
+ reportAccessWindow: wr
2528
2528
  }, Symbol.toStringTag, { value: "Module" })), Mr = {
2529
2529
  mode: "访问期限",
2530
2530
  unrestricted: "无限制",
@@ -2563,7 +2563,7 @@ const Br = {
2563
2563
  inheritedLastYears: "最近 {amount} 年"
2564
2564
  }, vo = {
2565
2565
  reportAccessWindow: Cr
2566
- }, wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2566
+ }, Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2567
2567
  __proto__: null,
2568
2568
  default: vo,
2569
2569
  reportAccessWindow: Cr
@@ -2582,16 +2582,16 @@ const Br = {
2582
2582
  inheritedLastDays: "ล่าสุด {amount} วัน",
2583
2583
  inheritedLastMonths: "ล่าสุด {amount} เดือน",
2584
2584
  inheritedLastYears: "ล่าสุด {amount} ปี"
2585
- }, Bo = {
2585
+ }, wo = {
2586
2586
  reportAccessWindow: Dr
2587
2587
  }, Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2588
2588
  __proto__: null,
2589
- default: Bo,
2589
+ default: wo,
2590
2590
  reportAccessWindow: Dr
2591
2591
  }, Symbol.toStringTag, { value: "Module" })), Co = {
2592
2592
  "en-US": { conditionBuilder: { ...ho } },
2593
2593
  "zh-CN": { conditionBuilder: { ...bo } },
2594
- "zh-Hant": { conditionBuilder: { ...wo } },
2594
+ "zh-Hant": { conditionBuilder: { ...Bo } },
2595
2595
  "th-TH": { conditionBuilder: { ...Mo } }
2596
2596
  }, xr = {
2597
2597
  predefinedRanges: {
@@ -2609,9 +2609,6 @@ const Br = {
2609
2609
  dateRange: {
2610
2610
  placeholder: "Select date range"
2611
2611
  },
2612
- search: {
2613
- placeholder: "Search user, event, or record"
2614
- },
2615
2612
  user: {
2616
2613
  feedmeAdmin: "FeedMe Admin"
2617
2614
  },
@@ -2726,77 +2723,6 @@ const Br = {
2726
2723
  requestMethod: "Request Method",
2727
2724
  requestPath: "Request Path",
2728
2725
  requestBody: "Request Body"
2729
- },
2730
- operation: {
2731
- toggle: "Toggle operations",
2732
- rowHint: "Operation",
2733
- unlabeled: "Operation",
2734
- badge: "{count} ops",
2735
- sheetHeader: "Operation Detail",
2736
- entity: "Entity",
2737
- duration: "Duration",
2738
- durationValue: "{ms} ms",
2739
- error: "Error",
2740
- changes: "Changes",
2741
- showData: "Show data",
2742
- added: "Added",
2743
- removed: "Removed",
2744
- updated: "Updated",
2745
- before: "Before",
2746
- after: "After",
2747
- noChanges: "No changes recorded for this operation.",
2748
- wholeValue: "Value"
2749
- },
2750
- event: {
2751
- sentence: {
2752
- "audit-log": {
2753
- view: "Viewed audit logs"
2754
- },
2755
- restaurant: {
2756
- list: "Listed restaurants"
2757
- },
2758
- "permission-assignment": {
2759
- manage: "Managed permission assignments",
2760
- list: "Listed permission assignments",
2761
- view: "Viewed permission assignment {id}"
2762
- },
2763
- "permission-set": {
2764
- manage: "Managed permission sets",
2765
- list: "Listed permission sets",
2766
- view: "Viewed permission set {id}"
2767
- },
2768
- "portal-user": {
2769
- list: "Listed team members",
2770
- "list-page": "Listed team members",
2771
- view: "Viewed team member {id}",
2772
- create: "Added team member {name}",
2773
- update: "Updated team member {name}",
2774
- delete: "Removed team member {name}"
2775
- },
2776
- "pos-user": {
2777
- list: "Listed employees",
2778
- "list-page": "Listed employees",
2779
- create: "Added employee {name}",
2780
- "sync-meta": "Synced employee data",
2781
- update: "Updated employee {id}",
2782
- migrate: "Migrated employee {id}",
2783
- "generate-passcode": "Generated employee passcode"
2784
- },
2785
- "pos-master-user": {
2786
- create: "Added POS master employee {name}",
2787
- update: "Updated POS master employee {name}",
2788
- delete: "Removed POS master employee {name}"
2789
- },
2790
- "pos-role": {
2791
- list: "Listed employee roles",
2792
- create: "Added employee role {name}",
2793
- update: "Updated employee role {name}"
2794
- },
2795
- timesheet: {
2796
- view: "Viewed timesheets",
2797
- update: "Updated timesheet"
2798
- }
2799
- }
2800
2726
  }
2801
2727
  }, Do = {
2802
2728
  date: xr,
@@ -2822,9 +2748,6 @@ const Br = {
2822
2748
  dateRange: {
2823
2749
  placeholder: "เลือกช่วงวันที่"
2824
2750
  },
2825
- search: {
2826
- placeholder: "ค้นหาผู้ใช้ เหตุการณ์ หรือรายการ"
2827
- },
2828
2751
  user: {
2829
2752
  feedmeAdmin: "ผู้ดูแล FeedMe"
2830
2753
  },
@@ -2940,77 +2863,6 @@ const Br = {
2940
2863
  requestMethod: "วิธีการเข้าถึง",
2941
2864
  requestPath: "URL ที่เข้าถึง",
2942
2865
  requestBody: "เนื้อหาคำขอ"
2943
- },
2944
- operation: {
2945
- toggle: "แสดง/ซ่อนการดำเนินการ",
2946
- rowHint: "การดำเนินการ",
2947
- unlabeled: "การดำเนินการ",
2948
- badge: "{count} รายการ",
2949
- sheetHeader: "รายละเอียดการดำเนินการ",
2950
- entity: "ข้อมูลที่เกี่ยวข้อง",
2951
- duration: "ระยะเวลา",
2952
- durationValue: "{ms} มิลลิวินาที",
2953
- error: "ข้อผิดพลาด",
2954
- changes: "การเปลี่ยนแปลง",
2955
- showData: "แสดงข้อมูล",
2956
- added: "เพิ่ม",
2957
- removed: "ลบ",
2958
- updated: "อัปเดต",
2959
- before: "ก่อนหน้า",
2960
- after: "หลังจาก",
2961
- noChanges: "ไม่มีการเปลี่ยนแปลงที่บันทึกไว้สำหรับการดำเนินการนี้",
2962
- wholeValue: "ค่า"
2963
- },
2964
- event: {
2965
- sentence: {
2966
- "audit-log": {
2967
- view: "ดูบันทึกการตรวจสอบ"
2968
- },
2969
- restaurant: {
2970
- list: "ดูรายการร้านอาหาร"
2971
- },
2972
- "permission-assignment": {
2973
- manage: "จัดการการกำหนดสิทธิ์",
2974
- list: "ดูรายการการกำหนดสิทธิ์",
2975
- view: "ดูการกำหนดสิทธิ์ {id}"
2976
- },
2977
- "permission-set": {
2978
- manage: "จัดการกลุ่มสิทธิ์",
2979
- list: "ดูรายการกลุ่มสิทธิ์",
2980
- view: "ดูกลุ่มสิทธิ์ {id}"
2981
- },
2982
- "portal-user": {
2983
- list: "ดูรายการสมาชิกทีม",
2984
- "list-page": "ดูรายการสมาชิกทีม",
2985
- view: "ดูสมาชิกทีม {id}",
2986
- create: "เพิ่มสมาชิกทีม {name}",
2987
- update: "อัปเดตสมาชิกทีม {name}",
2988
- delete: "ลบสมาชิกทีม {name}"
2989
- },
2990
- "pos-user": {
2991
- list: "ดูรายการพนักงาน",
2992
- "list-page": "ดูรายการพนักงาน",
2993
- create: "เพิ่มพนักงาน {name}",
2994
- "sync-meta": "ซิงค์ข้อมูลพนักงาน",
2995
- update: "อัปเดตพนักงาน {id}",
2996
- migrate: "ย้ายพนักงาน {id}",
2997
- "generate-passcode": "สร้างรหัสผ่านพนักงาน"
2998
- },
2999
- "pos-master-user": {
3000
- create: "เพิ่มพนักงานหลัก POS {name}",
3001
- update: "อัปเดตพนักงานหลัก POS {name}",
3002
- delete: "ลบพนักงานหลัก POS {name}"
3003
- },
3004
- "pos-role": {
3005
- list: "ดูรายการบทบาทพนักงาน",
3006
- create: "เพิ่มบทบาทพนักงาน {name}",
3007
- update: "อัปเดตบทบาทพนักงาน {name}"
3008
- },
3009
- timesheet: {
3010
- view: "ดูใบบันทึกเวลา",
3011
- update: "อัปเดตใบบันทึกเวลา"
3012
- }
3013
- }
3014
2866
  }
3015
2867
  }, jo = {
3016
2868
  date: Er,
@@ -3020,7 +2872,7 @@ const Br = {
3020
2872
  auditLog: Yr,
3021
2873
  date: Er,
3022
2874
  default: jo
3023
- }, Symbol.toStringTag, { value: "Module" })), Pr = {
2875
+ }, Symbol.toStringTag, { value: "Module" })), Gr = {
3024
2876
  predefinedRanges: {
3025
2877
  today: "今天",
3026
2878
  yesterday: "昨天",
@@ -3030,15 +2882,12 @@ const Br = {
3030
2882
  thisMonth: "本月",
3031
2883
  lastMonth: "上月"
3032
2884
  }
3033
- }, Gr = {
2885
+ }, Pr = {
3034
2886
  title: "审计日志",
3035
2887
  export: "导出",
3036
2888
  dateRange: {
3037
2889
  placeholder: "选择日期范围"
3038
2890
  },
3039
- search: {
3040
- placeholder: "搜索用户、事件或记录"
3041
- },
3042
2891
  user: {
3043
2892
  feedmeAdmin: "FeedMe 管理员"
3044
2893
  },
@@ -3154,85 +3003,14 @@ const Br = {
3154
3003
  requestMethod: "请求方法",
3155
3004
  requestPath: "请求路径",
3156
3005
  requestBody: "请求内容"
3157
- },
3158
- operation: {
3159
- toggle: "展开/收起操作",
3160
- rowHint: "操作",
3161
- unlabeled: "操作",
3162
- badge: "{count} 项操作",
3163
- sheetHeader: "操作详情",
3164
- entity: "对象",
3165
- duration: "耗时",
3166
- durationValue: "{ms} 毫秒",
3167
- error: "错误",
3168
- changes: "变更内容",
3169
- showData: "显示数据",
3170
- added: "已添加",
3171
- removed: "已移除",
3172
- updated: "已更新",
3173
- before: "变更前",
3174
- after: "变更后",
3175
- noChanges: "此操作未记录任何变更。",
3176
- wholeValue: "值"
3177
- },
3178
- event: {
3179
- sentence: {
3180
- "audit-log": {
3181
- view: "查看了审计日志"
3182
- },
3183
- restaurant: {
3184
- list: "查看了餐厅列表"
3185
- },
3186
- "permission-assignment": {
3187
- manage: "管理了权限分配",
3188
- list: "查看了权限分配列表",
3189
- view: "查看了权限分配 {id}"
3190
- },
3191
- "permission-set": {
3192
- manage: "管理了权限集",
3193
- list: "查看了权限集列表",
3194
- view: "查看了权限集 {id}"
3195
- },
3196
- "portal-user": {
3197
- list: "查看了团队成员列表",
3198
- "list-page": "查看了团队成员列表",
3199
- view: "查看了团队成员 {id}",
3200
- create: "添加了团队成员 {name}",
3201
- update: "更新了团队成员 {name}",
3202
- delete: "移除了团队成员 {name}"
3203
- },
3204
- "pos-user": {
3205
- list: "查看了员工列表",
3206
- "list-page": "查看了员工列表",
3207
- create: "添加了员工 {name}",
3208
- "sync-meta": "同步了员工数据",
3209
- update: "更新了员工 {id}",
3210
- migrate: "迁移了员工 {id}",
3211
- "generate-passcode": "生成了员工密码"
3212
- },
3213
- "pos-master-user": {
3214
- create: "添加了 POS 主员工 {name}",
3215
- update: "更新了 POS 主员工 {name}",
3216
- delete: "移除了 POS 主员工 {name}"
3217
- },
3218
- "pos-role": {
3219
- list: "查看了员工角色列表",
3220
- create: "添加了员工角色 {name}",
3221
- update: "更新了员工角色 {name}"
3222
- },
3223
- timesheet: {
3224
- view: "查看了工时表",
3225
- update: "更新了工时表"
3226
- }
3227
- }
3228
3006
  }
3229
3007
  }, Yo = {
3230
- date: Pr,
3231
- auditLog: Gr
3232
- }, Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3008
+ date: Gr,
3009
+ auditLog: Pr
3010
+ }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3233
3011
  __proto__: null,
3234
- auditLog: Gr,
3235
- date: Pr,
3012
+ auditLog: Pr,
3013
+ date: Gr,
3236
3014
  default: Yo
3237
3015
  }, Symbol.toStringTag, { value: "Module" })), Vr = {
3238
3016
  predefinedRanges: {
@@ -3250,9 +3028,6 @@ const Br = {
3250
3028
  dateRange: {
3251
3029
  placeholder: "選擇日期範圍"
3252
3030
  },
3253
- search: {
3254
- placeholder: "搜尋使用者、事件或記錄"
3255
- },
3256
3031
  user: {
3257
3032
  feedmeAdmin: "FeedMe 管理員"
3258
3033
  },
@@ -3368,89 +3143,18 @@ const Br = {
3368
3143
  requestMethod: "請求方法",
3369
3144
  requestPath: "請求路徑",
3370
3145
  requestBody: "請求內容"
3371
- },
3372
- operation: {
3373
- toggle: "展開/收起操作",
3374
- rowHint: "操作",
3375
- unlabeled: "操作",
3376
- badge: "{count} 項操作",
3377
- sheetHeader: "操作詳情",
3378
- entity: "對象",
3379
- duration: "耗時",
3380
- durationValue: "{ms} 毫秒",
3381
- error: "錯誤",
3382
- changes: "變更內容",
3383
- showData: "顯示資料",
3384
- added: "已新增",
3385
- removed: "已移除",
3386
- updated: "已更新",
3387
- before: "變更前",
3388
- after: "變更後",
3389
- noChanges: "此操作未記錄任何變更。",
3390
- wholeValue: "值"
3391
- },
3392
- event: {
3393
- sentence: {
3394
- "audit-log": {
3395
- view: "查看了稽核紀錄"
3396
- },
3397
- restaurant: {
3398
- list: "查看了餐廳列表"
3399
- },
3400
- "permission-assignment": {
3401
- manage: "管理了權限指派",
3402
- list: "查看了權限指派列表",
3403
- view: "查看了權限指派 {id}"
3404
- },
3405
- "permission-set": {
3406
- manage: "管理了權限集",
3407
- list: "查看了權限集列表",
3408
- view: "查看了權限集 {id}"
3409
- },
3410
- "portal-user": {
3411
- list: "查看了團隊成員列表",
3412
- "list-page": "查看了團隊成員列表",
3413
- view: "查看了團隊成員 {id}",
3414
- create: "新增了團隊成員 {name}",
3415
- update: "更新了團隊成員 {name}",
3416
- delete: "移除了團隊成員 {name}"
3417
- },
3418
- "pos-user": {
3419
- list: "查看了員工列表",
3420
- "list-page": "查看了員工列表",
3421
- create: "新增了員工 {name}",
3422
- "sync-meta": "同步了員工資料",
3423
- update: "更新了員工 {id}",
3424
- migrate: "移轉了員工 {id}",
3425
- "generate-passcode": "產生了員工密碼"
3426
- },
3427
- "pos-master-user": {
3428
- create: "新增了 POS 主員工 {name}",
3429
- update: "更新了 POS 主員工 {name}",
3430
- delete: "移除了 POS 主員工 {name}"
3431
- },
3432
- "pos-role": {
3433
- list: "查看了員工角色列表",
3434
- create: "新增了員工角色 {name}",
3435
- update: "更新了員工角色 {name}"
3436
- },
3437
- timesheet: {
3438
- view: "查看了工時表",
3439
- update: "更新了工時表"
3440
- }
3441
- }
3442
3146
  }
3443
- }, Go = {
3147
+ }, Po = {
3444
3148
  date: Vr,
3445
3149
  auditLog: Or
3446
3150
  }, Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3447
3151
  __proto__: null,
3448
3152
  auditLog: Or,
3449
3153
  date: Vr,
3450
- default: Go
3154
+ default: Po
3451
3155
  }, Symbol.toStringTag, { value: "Module" })), Oo = {
3452
3156
  "en-US": xo,
3453
- "zh-CN": Po,
3157
+ "zh-CN": Go,
3454
3158
  "th-TH": Eo,
3455
3159
  "zh-Hant": Vo
3456
3160
  }, Fr = {
@@ -4530,7 +4234,7 @@ const Br = {
4530
4234
  }, No = {
4531
4235
  team: Rr,
4532
4236
  permissionSet: Xr
4533
- }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4237
+ }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4534
4238
  __proto__: null,
4535
4239
  default: No,
4536
4240
  permissionSet: Xr,
@@ -4782,12 +4486,12 @@ const Br = {
4782
4486
  permissions: "สิทธิ์"
4783
4487
  }
4784
4488
  }
4785
- }, Zo = {
4489
+ }, So = {
4786
4490
  team: Qr,
4787
4491
  permissionSet: kr
4788
- }, Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4492
+ }, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4789
4493
  __proto__: null,
4790
- default: Zo,
4494
+ default: So,
4791
4495
  permissionSet: kr,
4792
4496
  team: Qr
4793
4497
  }, Symbol.toStringTag, { value: "Module" })), Tr = {
@@ -5037,15 +4741,15 @@ const Br = {
5037
4741
  permissions: "权限"
5038
4742
  }
5039
4743
  }
5040
- }, zo = {
4744
+ }, Uo = {
5041
4745
  team: Tr,
5042
4746
  permissionSet: Nr
5043
4747
  }, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5044
4748
  __proto__: null,
5045
- default: zo,
4749
+ default: Uo,
5046
4750
  permissionSet: Nr,
5047
4751
  team: Tr
5048
- }, Symbol.toStringTag, { value: "Module" })), Sr = {
4752
+ }, Symbol.toStringTag, { value: "Module" })), Zr = {
5049
4753
  title: "團隊成員",
5050
4754
  subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
5051
4755
  actions: {
@@ -5171,7 +4875,7 @@ const Br = {
5171
4875
  placeholder: "搜索角色"
5172
4876
  }
5173
4877
  }
5174
- }, Zr = {
4878
+ }, Sr = {
5175
4879
  title: "角色",
5176
4880
  createButtonLabel: "創建角色",
5177
4881
  search: {
@@ -5300,19 +5004,19 @@ const Br = {
5300
5004
  }
5301
5005
  }
5302
5006
  }, Lo = {
5303
- team: Sr,
5304
- permissionSet: Zr
5007
+ team: Zr,
5008
+ permissionSet: Sr
5305
5009
  }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5306
5010
  __proto__: null,
5307
5011
  default: Lo,
5308
- permissionSet: Zr,
5309
- team: Sr
5012
+ permissionSet: Sr,
5013
+ team: Zr
5310
5014
  }, Symbol.toStringTag, { value: "Module" })), Jo = {
5311
- "en-US": So,
5015
+ "en-US": Zo,
5312
5016
  "zh-CN": Wo,
5313
- "th-TH": Uo,
5017
+ "th-TH": zo,
5314
5018
  "zh-Hant": Ko
5315
- }, Ur = {
5019
+ }, zr = {
5316
5020
  title: "POS Grant",
5317
5021
  actions: {
5318
5022
  create: "Create Passcode",
@@ -5367,12 +5071,12 @@ const Br = {
5367
5071
  copied: "Passcode copied"
5368
5072
  }
5369
5073
  }, _o = {
5370
- grantUser: Ur
5074
+ grantUser: zr
5371
5075
  }, $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5372
5076
  __proto__: null,
5373
5077
  default: _o,
5374
- grantUser: Ur
5375
- }, Symbol.toStringTag, { value: "Module" })), zr = {
5078
+ grantUser: zr
5079
+ }, Symbol.toStringTag, { value: "Module" })), Ur = {
5376
5080
  title: "POS Grant",
5377
5081
  actions: {
5378
5082
  create: "สร้างรหัสผ่าน",
@@ -5427,11 +5131,11 @@ const Br = {
5427
5131
  copied: "คัดลอกรหัสผ่านแล้ว"
5428
5132
  }
5429
5133
  }, ei = {
5430
- grantUser: zr
5134
+ grantUser: Ur
5431
5135
  }, ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5432
5136
  __proto__: null,
5433
5137
  default: ei,
5434
- grantUser: zr
5138
+ grantUser: Ur
5435
5139
  }, Symbol.toStringTag, { value: "Module" })), Wr = {
5436
5140
  title: "POS 授予",
5437
5141
  actions: {
@@ -5567,6 +5271,7 @@ const Br = {
5567
5271
  title: "Create Access Code",
5568
5272
  section: "Access Code Details",
5569
5273
  name: "Name",
5274
+ namePlaceholder: "e.g. Refund, Cashier 1, Jane/John",
5570
5275
  nameRequired: "Name is required",
5571
5276
  restaurant: "Restaurant",
5572
5277
  selectRestaurant: "Select a restaurant",
@@ -5603,9 +5308,6 @@ const Br = {
5603
5308
  resend: "Resend to kitchen",
5604
5309
  changePaymentType: "Change payment method",
5605
5310
  openDrawer: "Open drawer",
5606
- openCounter: "Open counter",
5607
- closeCounter: "Close counter",
5608
- printReceipt: "Print receipt",
5609
5311
  counter: "Open / Close counter"
5610
5312
  },
5611
5313
  create: {
@@ -5659,6 +5361,7 @@ const Br = {
5659
5361
  title: "สร้างรหัสเข้าใช้งาน",
5660
5362
  section: "รายละเอียดรหัสเข้าใช้งาน",
5661
5363
  name: "ชื่อ",
5364
+ namePlaceholder: "เช่น คืนเงิน, แคชเชียร์ 1, สมชาย/สมหญิง",
5662
5365
  nameRequired: "กรุณากรอกชื่อ",
5663
5366
  restaurant: "ร้านอาหาร",
5664
5367
  selectRestaurant: "เลือกร้านอาหาร",
@@ -5695,9 +5398,6 @@ const Br = {
5695
5398
  resend: "ส่งเข้าครัวอีกครั้ง",
5696
5399
  changePaymentType: "เปลี่ยนวิธีชำระเงิน",
5697
5400
  openDrawer: "เปิดลิ้นชักเก็บเงิน",
5698
- openCounter: "เปิดเคาน์เตอร์",
5699
- closeCounter: "ปิดเคาน์เตอร์",
5700
- printReceipt: "พิมพ์ใบเสร็จ",
5701
5401
  counter: "เปิด / ปิดเคาน์เตอร์"
5702
5402
  },
5703
5403
  create: {
@@ -5751,6 +5451,7 @@ const Br = {
5751
5451
  title: "创建授权码",
5752
5452
  section: "授权码信息",
5753
5453
  name: "名称",
5454
+ namePlaceholder: "例如:退款、收银员 1、张三/李四",
5754
5455
  nameRequired: "请输入名称",
5755
5456
  restaurant: "餐厅",
5756
5457
  selectRestaurant: "选择餐厅",
@@ -5787,9 +5488,6 @@ const Br = {
5787
5488
  resend: "重发厨房",
5788
5489
  changePaymentType: "更改支付方式",
5789
5490
  openDrawer: "打开钱箱",
5790
- openCounter: "开柜",
5791
- closeCounter: "关柜",
5792
- printReceipt: "打印收据",
5793
5491
  counter: "开柜 / 关柜"
5794
5492
  },
5795
5493
  create: {
@@ -5843,6 +5541,7 @@ const Br = {
5843
5541
  title: "建立授權碼",
5844
5542
  section: "授權碼資訊",
5845
5543
  name: "名稱",
5544
+ namePlaceholder: "例如:退款、收銀員 1、張三/李四",
5846
5545
  nameRequired: "請輸入名稱",
5847
5546
  restaurant: "餐廳",
5848
5547
  selectRestaurant: "選擇餐廳",
@@ -5879,9 +5578,6 @@ const Br = {
5879
5578
  resend: "重發廚房",
5880
5579
  changePaymentType: "更改支付方式",
5881
5580
  openDrawer: "打開錢箱",
5882
- openCounter: "開櫃",
5883
- closeCounter: "關櫃",
5884
- printReceipt: "列印收據",
5885
5581
  counter: "開櫃 / 關櫃"
5886
5582
  },
5887
5583
  create: {
@@ -5968,7 +5664,7 @@ const Br = {
5968
5664
  }
5969
5665
  }, vi = {
5970
5666
  posAccess: sn
5971
- }, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5667
+ }, Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5972
5668
  __proto__: null,
5973
5669
  default: vi,
5974
5670
  posAccess: sn
@@ -5980,15 +5676,15 @@ const Br = {
5980
5676
  codes: "授權碼",
5981
5677
  codesDescription: "產生一次性授權碼,用於核准退款、作廢等敏感操作。"
5982
5678
  }
5983
- }, Bi = {
5679
+ }, wi = {
5984
5680
  posAccess: rn
5985
5681
  }, Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5986
5682
  __proto__: null,
5987
- default: Bi,
5683
+ default: wi,
5988
5684
  posAccess: rn
5989
5685
  }, Symbol.toStringTag, { value: "Module" })), Ci = {
5990
5686
  "en-US": hi,
5991
- "zh-CN": wi,
5687
+ "zh-CN": Bi,
5992
5688
  "th-TH": bi,
5993
5689
  "zh-Hant": Mi
5994
5690
  }, yt = {
@@ -6015,7 +5711,7 @@ const Br = {
6015
5711
  [ee.integration]: d.inventory_integration,
6016
5712
  [ee.orderDraft]: d.inventory_orderDraftApproval,
6017
5713
  [ee.unitCostHistory]: d.inventory_unitCostHistory
6018
- }, Gl = {
5714
+ }, Pl = {
6019
5715
  // General
6020
5716
  restaurant: {
6021
5717
  label: "Restaurant Owner",
@@ -6662,18 +6358,18 @@ const Br = {
6662
6358
  showByFeatureFlag: "hrm_enable_media_permission"
6663
6359
  }
6664
6360
  };
6665
- var Z = /* @__PURE__ */ ((e) => (e.crm = "crm", e.crm_user = "crm::user", e.crm_segmentation = "crm::segmentation", e.crm_queue = "crm::queue", e.crm_transaction = "crm::transaction", e.crm_store = "crm::store", e.crm_location = "crm::location", e.crm_effect = "crm::effect", e.crm_setting = "crm::setting", e.crm_reward = "crm::reward", e.crm_campaign = "crm::campaign", e.crm_referral = "crm::referral", e.crm_marketingMaterial = "crm::marketingMaterial", e.crm_voucher = "crm::voucher", e.crm_membership = "crm::membership", e.crm_analytic = "crm::analytic", e.crm_tier = "crm::tier", e.crm_title = "crm::title", e.crm_broadcast = "crm::broadcast", e.crm_point = "crm::point", e.crm_credit = "crm::credit", e.crm_experience = "crm::experience", e.crm_game = "crm::game", e.crm_mission = "crm::mission", e.crm_loyaltyMember = "crm::loyaltyMember", e.crm_loyaltySegment = "crm::loyaltySegment", e.crm_loyaltyCard = "crm::loyaltyCard", e.crm_bin = "crm::bin", e))(Z || {});
6361
+ var S = /* @__PURE__ */ ((e) => (e.crm = "crm", e.crm_user = "crm::user", e.crm_segmentation = "crm::segmentation", e.crm_queue = "crm::queue", e.crm_transaction = "crm::transaction", e.crm_store = "crm::store", e.crm_location = "crm::location", e.crm_effect = "crm::effect", e.crm_setting = "crm::setting", e.crm_reward = "crm::reward", e.crm_campaign = "crm::campaign", e.crm_referral = "crm::referral", e.crm_marketingMaterial = "crm::marketingMaterial", e.crm_voucher = "crm::voucher", e.crm_membership = "crm::membership", e.crm_analytic = "crm::analytic", e.crm_tier = "crm::tier", e.crm_title = "crm::title", e.crm_broadcast = "crm::broadcast", e.crm_point = "crm::point", e.crm_credit = "crm::credit", e.crm_experience = "crm::experience", e.crm_game = "crm::game", e.crm_mission = "crm::mission", e.crm_loyaltyMember = "crm::loyaltyMember", e.crm_loyaltySegment = "crm::loyaltySegment", e.crm_loyaltyCard = "crm::loyaltyCard", e.crm_bin = "crm::bin", e))(S || {});
6666
6362
  const L = [
6667
6363
  {
6668
6364
  label: "CRM",
6669
- subject: Z.crm,
6365
+ subject: S.crm,
6670
6366
  actions: [o.read]
6671
6367
  }
6672
6368
  ], Ae = (...e) => e.flat(), Di = [
6673
6369
  ...L,
6674
6370
  {
6675
6371
  label: "User",
6676
- subject: Z.crm_user,
6372
+ subject: S.crm_user,
6677
6373
  actions: [
6678
6374
  o.read,
6679
6375
  o.create,
@@ -6685,7 +6381,7 @@ const L = [
6685
6381
  ...L,
6686
6382
  {
6687
6383
  label: "Segmentation",
6688
- subject: Z.crm_segmentation,
6384
+ subject: S.crm_segmentation,
6689
6385
  actions: [
6690
6386
  o.read,
6691
6387
  o.create,
@@ -6697,7 +6393,7 @@ const L = [
6697
6393
  ...L,
6698
6394
  {
6699
6395
  label: "Transaction",
6700
- subject: Z.crm_transaction,
6396
+ subject: S.crm_transaction,
6701
6397
  actions: [
6702
6398
  o.read,
6703
6399
  o.create,
@@ -6709,7 +6405,7 @@ const L = [
6709
6405
  ...L,
6710
6406
  {
6711
6407
  label: "Store",
6712
- subject: Z.crm_store,
6408
+ subject: S.crm_store,
6713
6409
  actions: [
6714
6410
  o.read,
6715
6411
  o.create,
@@ -6721,7 +6417,7 @@ const L = [
6721
6417
  ...L,
6722
6418
  {
6723
6419
  label: "Location",
6724
- subject: Z.crm_location,
6420
+ subject: S.crm_location,
6725
6421
  actions: [
6726
6422
  o.read,
6727
6423
  o.create,
@@ -6733,7 +6429,7 @@ const L = [
6733
6429
  ...L,
6734
6430
  {
6735
6431
  label: "Effect",
6736
- subject: Z.crm_effect,
6432
+ subject: S.crm_effect,
6737
6433
  actions: [
6738
6434
  o.read,
6739
6435
  o.create,
@@ -6745,14 +6441,14 @@ const L = [
6745
6441
  ...L,
6746
6442
  {
6747
6443
  label: "Setting",
6748
- subject: Z.crm_setting,
6444
+ subject: S.crm_setting,
6749
6445
  actions: [o.read, o.update]
6750
6446
  }
6751
- ], Pi = [
6447
+ ], Gi = [
6752
6448
  ...L,
6753
6449
  {
6754
6450
  label: "Reward",
6755
- subject: Z.crm_reward,
6451
+ subject: S.crm_reward,
6756
6452
  actions: [
6757
6453
  o.read,
6758
6454
  o.create,
@@ -6764,7 +6460,7 @@ const L = [
6764
6460
  ...L,
6765
6461
  {
6766
6462
  label: "Campaign",
6767
- subject: Z.crm_campaign,
6463
+ subject: S.crm_campaign,
6768
6464
  actions: [
6769
6465
  o.read,
6770
6466
  o.create,
@@ -6776,7 +6472,7 @@ const L = [
6776
6472
  ...L,
6777
6473
  {
6778
6474
  label: "Referral",
6779
- subject: Z.crm_referral,
6475
+ subject: S.crm_referral,
6780
6476
  actions: [
6781
6477
  o.read,
6782
6478
  o.create,
@@ -6788,7 +6484,7 @@ const L = [
6788
6484
  ...L,
6789
6485
  {
6790
6486
  label: "Marketing Material",
6791
- subject: Z.crm_marketingMaterial,
6487
+ subject: S.crm_marketingMaterial,
6792
6488
  actions: [
6793
6489
  o.read,
6794
6490
  o.create,
@@ -6800,14 +6496,14 @@ const L = [
6800
6496
  ...L,
6801
6497
  {
6802
6498
  label: "Analytic",
6803
- subject: Z.crm_analytic,
6499
+ subject: S.crm_analytic,
6804
6500
  actions: [o.read]
6805
6501
  }
6806
- ], Gi = [
6502
+ ], Pi = [
6807
6503
  ...L,
6808
6504
  {
6809
6505
  label: "Tier",
6810
- subject: Z.crm_tier,
6506
+ subject: S.crm_tier,
6811
6507
  actions: [
6812
6508
  o.read,
6813
6509
  o.create,
@@ -6819,7 +6515,7 @@ const L = [
6819
6515
  ...L,
6820
6516
  {
6821
6517
  label: "Title",
6822
- subject: Z.crm_title,
6518
+ subject: S.crm_title,
6823
6519
  actions: [
6824
6520
  o.read,
6825
6521
  o.create,
@@ -6831,7 +6527,7 @@ const L = [
6831
6527
  ...L,
6832
6528
  {
6833
6529
  label: "Broadcast",
6834
- subject: Z.crm_broadcast,
6530
+ subject: S.crm_broadcast,
6835
6531
  actions: [
6836
6532
  o.read,
6837
6533
  o.create,
@@ -6843,7 +6539,7 @@ const L = [
6843
6539
  ...L,
6844
6540
  {
6845
6541
  label: "Point",
6846
- subject: Z.crm_point,
6542
+ subject: S.crm_point,
6847
6543
  actions: [
6848
6544
  o.read,
6849
6545
  o.create,
@@ -6855,7 +6551,7 @@ const L = [
6855
6551
  ...L,
6856
6552
  {
6857
6553
  label: "Credit",
6858
- subject: Z.crm_credit,
6554
+ subject: S.crm_credit,
6859
6555
  actions: [
6860
6556
  o.read,
6861
6557
  o.create,
@@ -6867,7 +6563,7 @@ const L = [
6867
6563
  ...L,
6868
6564
  {
6869
6565
  label: "Experience",
6870
- subject: Z.crm_experience,
6566
+ subject: S.crm_experience,
6871
6567
  actions: [
6872
6568
  o.read,
6873
6569
  o.create,
@@ -6879,7 +6575,7 @@ const L = [
6879
6575
  ...L,
6880
6576
  {
6881
6577
  label: "Game",
6882
- subject: Z.crm_game,
6578
+ subject: S.crm_game,
6883
6579
  actions: [
6884
6580
  o.read,
6885
6581
  o.create,
@@ -6891,7 +6587,7 @@ const L = [
6891
6587
  ...L,
6892
6588
  {
6893
6589
  label: "Mission",
6894
- subject: Z.crm_mission,
6590
+ subject: S.crm_mission,
6895
6591
  actions: [
6896
6592
  o.read,
6897
6593
  o.create,
@@ -6903,7 +6599,7 @@ const L = [
6903
6599
  ...L,
6904
6600
  {
6905
6601
  label: "Loyalty Member",
6906
- subject: Z.crm_loyaltyMember,
6602
+ subject: S.crm_loyaltyMember,
6907
6603
  actions: [
6908
6604
  o.read,
6909
6605
  o.create,
@@ -6915,7 +6611,7 @@ const L = [
6915
6611
  ...L,
6916
6612
  {
6917
6613
  label: "Loyalty Segment",
6918
- subject: Z.crm_loyaltySegment,
6614
+ subject: S.crm_loyaltySegment,
6919
6615
  actions: [
6920
6616
  o.read,
6921
6617
  o.create,
@@ -6927,7 +6623,7 @@ const L = [
6927
6623
  ...L,
6928
6624
  {
6929
6625
  label: "Loyalty Card",
6930
- subject: Z.crm_loyaltyCard,
6626
+ subject: S.crm_loyaltyCard,
6931
6627
  actions: [
6932
6628
  o.read,
6933
6629
  o.create,
@@ -6939,12 +6635,12 @@ const L = [
6939
6635
  ...L,
6940
6636
  {
6941
6637
  label: "Bin",
6942
- subject: Z.crm_bin,
6638
+ subject: S.crm_bin,
6943
6639
  actions: [o.read, o.update, o.delete]
6944
6640
  }
6945
6641
  ], pn = Ae(
6946
6642
  ye,
6947
- Gi
6643
+ Pi
6948
6644
  ), fn = Ae(
6949
6645
  ye,
6950
6646
  Vi
@@ -6960,10 +6656,10 @@ const L = [
6960
6656
  ), vn = Ae(
6961
6657
  ye,
6962
6658
  Ii
6963
- ), wn = Ae(
6659
+ ), Bn = Ae(
6964
6660
  ye,
6965
6661
  Hi
6966
- ), Bn = Ae(
6662
+ ), wn = Ae(
6967
6663
  ye,
6968
6664
  Ri
6969
6665
  ), Xi = Ae(
@@ -6976,7 +6672,7 @@ const L = [
6976
6672
  ...L,
6977
6673
  {
6978
6674
  label: "Voucher",
6979
- subject: Z.crm_voucher,
6675
+ subject: S.crm_voucher,
6980
6676
  actions: [
6981
6677
  o.read,
6982
6678
  o.create,
@@ -6988,7 +6684,7 @@ const L = [
6988
6684
  ...L,
6989
6685
  {
6990
6686
  label: "Membership",
6991
- subject: Z.crm_membership,
6687
+ subject: S.crm_membership,
6992
6688
  actions: [
6993
6689
  o.read,
6994
6690
  o.create,
@@ -7004,7 +6700,7 @@ const L = [
7004
6700
  ji,
7005
6701
  Ei,
7006
6702
  Mn,
7007
- Pi,
6703
+ Gi,
7008
6704
  un,
7009
6705
  pn,
7010
6706
  fn,
@@ -7012,8 +6708,8 @@ const L = [
7012
6708
  yn,
7013
6709
  bn,
7014
6710
  vn,
7015
- wn,
7016
6711
  Bn,
6712
+ wn,
7017
6713
  An,
7018
6714
  dn,
7019
6715
  mn,
@@ -7022,10 +6718,10 @@ const L = [
7022
6718
  ye,
7023
6719
  cn,
7024
6720
  ln
7025
- ), Si = Ae(
6721
+ ), Zi = Ae(
7026
6722
  ye,
7027
6723
  Qi
7028
- ), Zi = Ae(ki), Ui = {
6724
+ ), Si = Ae(ki), zi = {
7029
6725
  [`set_${d.crm}`]: {
7030
6726
  key: "sys:crm:access",
7031
6727
  name: "CRM Access",
@@ -7039,12 +6735,12 @@ const L = [
7039
6735
  [`set_${d.crm_voucher}`]: {
7040
6736
  key: "sys:crm:voucher",
7041
6737
  name: "CRM Voucher",
7042
- permissions: Si
6738
+ permissions: Zi
7043
6739
  },
7044
6740
  [`set_${d.crm_membership}`]: {
7045
6741
  key: "sys:crm:membership",
7046
6742
  name: "CRM Membership",
7047
- permissions: Zi
6743
+ permissions: Si
7048
6744
  },
7049
6745
  [`set_${d.crm_analytic}`]: {
7050
6746
  key: "sys:crm:analytic",
@@ -7084,12 +6780,12 @@ const L = [
7084
6780
  [`set_${d.crm_game}`]: {
7085
6781
  key: "sys:crm:game",
7086
6782
  name: "CRM Game",
7087
- permissions: wn
6783
+ permissions: Bn
7088
6784
  },
7089
6785
  [`set_${d.crm_mission}`]: {
7090
6786
  key: "sys:crm:mission",
7091
6787
  name: "CRM Mission",
7092
- permissions: Bn
6788
+ permissions: wn
7093
6789
  },
7094
6790
  [`set_${d.crm_loyaltyMember}`]: {
7095
6791
  key: "sys:crm:loyaltyMember",
@@ -7166,7 +6862,7 @@ const ie = [
7166
6862
  subject: V.inventory_unitCostHistory,
7167
6863
  actions: [o.read]
7168
6864
  }
7169
- ], zi = [
6865
+ ], Ui = [
7170
6866
  ...ie,
7171
6867
  {
7172
6868
  label: "Stock Adjustment",
@@ -7366,7 +7062,7 @@ const Wi = [
7366
7062
  subject: V.inventory_shipment,
7367
7063
  actions: [o.read, o.update]
7368
7064
  }
7369
- ], Pn = [
7065
+ ], Gn = [
7370
7066
  ...ie,
7371
7067
  {
7372
7068
  label: "Surcharge",
@@ -7383,7 +7079,7 @@ const Wi = [
7383
7079
  subject: V.inventory_supplier,
7384
7080
  actions: [o.read]
7385
7081
  }
7386
- ], Gn = [
7082
+ ], Pn = [
7387
7083
  ...ie,
7388
7084
  {
7389
7085
  label: "Order Template",
@@ -7416,8 +7112,8 @@ const Wi = [
7416
7112
  [
7417
7113
  ...En,
7418
7114
  ...Yn,
7419
- ...Pn,
7420
- ...Gn
7115
+ ...Gn,
7116
+ ...Pn
7421
7117
  ];
7422
7118
  const $i = [
7423
7119
  ...ie,
@@ -7483,7 +7179,7 @@ const nc = {
7483
7179
  [`set_${d.inventory_stockAdjustment}`]: {
7484
7180
  key: "sys:inventory:stock_adjustment",
7485
7181
  name: "Stock Adjustment",
7486
- permissions: zi
7182
+ permissions: Ui
7487
7183
  },
7488
7184
  [`set_${d.inventory_unitCostHistory}`]: {
7489
7185
  key: "sys:inventory:unit_cost_history",
@@ -7548,12 +7244,12 @@ const nc = {
7548
7244
  [`set_${d.inventory_surcharge}`]: {
7549
7245
  key: "sys:inventory:surcharge",
7550
7246
  name: "Surcharge",
7551
- permissions: Pn
7247
+ permissions: Gn
7552
7248
  },
7553
7249
  [`set_${d.inventory_orderTemplate}`]: {
7554
7250
  key: "sys:inventory:order_template",
7555
7251
  name: "Order Template",
7556
- permissions: Gn
7252
+ permissions: Pn
7557
7253
  },
7558
7254
  [`set_${d.inventory_supplier}`]: {
7559
7255
  key: "sys:inventory:supplier",
@@ -7681,7 +7377,7 @@ const sr = [
7681
7377
  permissions: sr
7682
7378
  }
7683
7379
  }, ic = {
7684
- ...Ui,
7380
+ ...zi,
7685
7381
  ...nc,
7686
7382
  ...ac,
7687
7383
  ...oc
@@ -7751,8 +7447,8 @@ var On = { exports: {} };
7751
7447
  }
7752
7448
  function c(m) {
7753
7449
  var p = "[object " + m + "]";
7754
- return function(B) {
7755
- return Object.prototype.toString.call(B) === p;
7450
+ return function(w) {
7451
+ return Object.prototype.toString.call(w) === p;
7756
7452
  };
7757
7453
  }
7758
7454
  n.r(r), n.d(r, "default", function() {
@@ -7763,27 +7459,27 @@ var On = { exports: {} };
7763
7459
  return At;
7764
7460
  });
7765
7461
  var l = c("Array"), y = c("Object"), h = c("Function");
7766
- function w(m, p) {
7462
+ function B(m, p) {
7767
7463
  return h(m.get) ? m.get(p) : m[p];
7768
7464
  }
7769
7465
  function O(m) {
7770
- return function(p, B) {
7771
- if (!l(B) || !B.length) return m(p, B);
7772
- for (var D = 0, E = B.length; D < E; D++)
7773
- if (m(p, w(B, D))) return !0;
7466
+ return function(p, w) {
7467
+ if (!l(w) || !w.length) return m(p, w);
7468
+ for (var D = 0, E = w.length; D < E; D++)
7469
+ if (m(p, B(w, D))) return !0;
7774
7470
  return !1;
7775
7471
  };
7776
7472
  }
7777
7473
  function N(m) {
7778
- return function(p, B) {
7779
- if (!l(B) || !B.length) return m(p, B);
7780
- for (var D = 0, E = B.length; D < E; D++)
7781
- if (!m(p, w(B, D))) return !1;
7474
+ return function(p, w) {
7475
+ if (!l(w) || !w.length) return m(p, w);
7476
+ for (var D = 0, E = w.length; D < E; D++)
7477
+ if (!m(p, B(w, D))) return !1;
7782
7478
  return !0;
7783
7479
  };
7784
7480
  }
7785
- function U(m, p, B, D) {
7786
- return m.validate(m.options, p, B, D);
7481
+ function z(m, p, w, D) {
7482
+ return m.validate(m.options, p, w, D);
7787
7483
  }
7788
7484
  var $ = {
7789
7485
  $eq: O(function(m, p) {
@@ -7813,115 +7509,115 @@ var On = { exports: {} };
7813
7509
  $nin: function(m, p) {
7814
7510
  return m(p);
7815
7511
  },
7816
- $not: function(m, p, B, D) {
7817
- return m(p, B, D);
7512
+ $not: function(m, p, w, D) {
7513
+ return m(p, w, D);
7818
7514
  },
7819
7515
  $type: function(m, p) {
7820
7516
  return m(p);
7821
7517
  },
7822
- $all: function(m, p, B, D) {
7823
- return $.$and(m, p, B, D);
7518
+ $all: function(m, p, w, D) {
7519
+ return $.$and(m, p, w, D);
7824
7520
  },
7825
7521
  $size: function(m, p) {
7826
7522
  return !!p && m === p.length;
7827
7523
  },
7828
- $or: function(m, p, B, D) {
7829
- for (var E = 0, P = m.length; E < P; E++)
7830
- if (U(w(m, E), p, B, D)) return !0;
7524
+ $or: function(m, p, w, D) {
7525
+ for (var E = 0, G = m.length; E < G; E++)
7526
+ if (z(B(m, E), p, w, D)) return !0;
7831
7527
  return !1;
7832
7528
  },
7833
- $nor: function(m, p, B, D) {
7834
- return !$.$or(m, p, B, D);
7529
+ $nor: function(m, p, w, D) {
7530
+ return !$.$or(m, p, w, D);
7835
7531
  },
7836
- $and: function(m, p, B, D) {
7837
- for (var E = 0, P = m.length; E < P; E++)
7838
- if (!U(w(m, E), p, B, D)) return !1;
7532
+ $and: function(m, p, w, D) {
7533
+ for (var E = 0, G = m.length; E < G; E++)
7534
+ if (!z(B(m, E), p, w, D)) return !1;
7839
7535
  return !0;
7840
7536
  },
7841
7537
  $regex: O(function(m, p) {
7842
7538
  return typeof p == "string" && m.test(p);
7843
7539
  }),
7844
- $where: function(m, p, B, D) {
7845
- return m.call(p, p, B, D);
7540
+ $where: function(m, p, w, D) {
7541
+ return m.call(p, p, w, D);
7846
7542
  },
7847
- $elemMatch: function(m, p, B, D) {
7848
- return l(p) ? !!~function(E, P) {
7543
+ $elemMatch: function(m, p, w, D) {
7544
+ return l(p) ? !!~function(E, G) {
7849
7545
  for (var q = 0; q < E.length; q++)
7850
- if (w(E, q), U(P, w(E, q))) return q;
7546
+ if (B(E, q), z(G, B(E, q))) return q;
7851
7547
  return -1;
7852
- }(p, m) : U(m, p, B, D);
7548
+ }(p, m) : z(m, p, w, D);
7853
7549
  },
7854
- $exists: function(m, p, B, D) {
7855
- return D.hasOwnProperty(B) === m;
7550
+ $exists: function(m, p, w, D) {
7551
+ return D.hasOwnProperty(w) === m;
7856
7552
  }
7857
7553
  }, re = {
7858
- $eq: function(m, p, B) {
7859
- var D = B.comparable, E = B.compare;
7860
- return m instanceof RegExp ? O(function(P) {
7861
- return typeof P == "string" && m.test(P);
7862
- }) : m instanceof Function ? O(m) : l(m) && !m.length ? O(function(P) {
7863
- return l(P) && !P.length;
7554
+ $eq: function(m, p, w) {
7555
+ var D = w.comparable, E = w.compare;
7556
+ return m instanceof RegExp ? O(function(G) {
7557
+ return typeof G == "string" && m.test(G);
7558
+ }) : m instanceof Function ? O(m) : l(m) && !m.length ? O(function(G) {
7559
+ return l(G) && !G.length;
7864
7560
  }) : O(
7865
- m === null ? function(P) {
7866
- return P == null;
7867
- } : function(P) {
7868
- return E(D(P), D(m)) === 0;
7561
+ m === null ? function(G) {
7562
+ return G == null;
7563
+ } : function(G) {
7564
+ return E(D(G), D(m)) === 0;
7869
7565
  }
7870
7566
  );
7871
7567
  },
7872
- $gt: function(m, p, B) {
7873
- var D = B.comparable, E = B.compare;
7874
- return function(P) {
7875
- return E(D(P), D(m)) > 0;
7568
+ $gt: function(m, p, w) {
7569
+ var D = w.comparable, E = w.compare;
7570
+ return function(G) {
7571
+ return E(D(G), D(m)) > 0;
7876
7572
  };
7877
7573
  },
7878
- $gte: function(m, p, B) {
7879
- var D = B.comparable, E = B.compare;
7880
- return function(P) {
7881
- return E(D(P), D(m)) >= 0;
7574
+ $gte: function(m, p, w) {
7575
+ var D = w.comparable, E = w.compare;
7576
+ return function(G) {
7577
+ return E(D(G), D(m)) >= 0;
7882
7578
  };
7883
7579
  },
7884
- $lt: function(m, p, B) {
7885
- var D = B.comparable, E = B.compare;
7886
- return function(P) {
7887
- return E(D(P), D(m)) < 0;
7580
+ $lt: function(m, p, w) {
7581
+ var D = w.comparable, E = w.compare;
7582
+ return function(G) {
7583
+ return E(D(G), D(m)) < 0;
7888
7584
  };
7889
7585
  },
7890
- $lte: function(m, p, B) {
7891
- var D = B.comparable, E = B.compare;
7892
- return function(P) {
7893
- return E(D(P), D(m)) <= 0;
7586
+ $lte: function(m, p, w) {
7587
+ var D = w.comparable, E = w.compare;
7588
+ return function(G) {
7589
+ return E(D(G), D(m)) <= 0;
7894
7590
  };
7895
7591
  },
7896
- $in: function(m, p, B) {
7897
- var D = B.comparable;
7592
+ $in: function(m, p, w) {
7593
+ var D = w.comparable;
7898
7594
  return function(E) {
7899
7595
  if (!(E instanceof Array)) {
7900
- var P = D(E);
7901
- if (P === E && a(E) === "object") {
7596
+ var G = D(E);
7597
+ if (G === E && a(E) === "object") {
7902
7598
  for (R = m.length; R--; )
7903
7599
  if (String(m[R]) === String(E) && String(E) !== "[object Object]")
7904
7600
  return !0;
7905
7601
  }
7906
- if (P === void 0) {
7602
+ if (G === void 0) {
7907
7603
  for (R = m.length; R--; ) if (m[R] == null) return !0;
7908
7604
  }
7909
7605
  for (R = m.length; R--; ) {
7910
- var q = U(lt(w(m, R), B), P, R, m);
7911
- if (q && String(q) !== "[object Object]" && String(P) !== "[object Object]")
7606
+ var q = z(lt(B(m, R), w), G, R, m);
7607
+ if (q && String(q) !== "[object Object]" && String(G) !== "[object Object]")
7912
7608
  return !0;
7913
7609
  }
7914
- return !!~m.indexOf(P);
7610
+ return !!~m.indexOf(G);
7915
7611
  }
7916
7612
  for (var R = E.length; R--; )
7917
- if (~m.indexOf(D(w(E, R)))) return !0;
7613
+ if (~m.indexOf(D(B(E, R)))) return !0;
7918
7614
  return !1;
7919
7615
  };
7920
7616
  },
7921
- $nin: function(m, p, B) {
7922
- var D = re.$in(m, p, B);
7923
- return function(E, P, q, R) {
7924
- return !D(E, P, q, R);
7617
+ $nin: function(m, p, w) {
7618
+ var D = re.$in(m, p, w);
7619
+ return function(E, G, q, R) {
7620
+ return !D(E, G, q, R);
7925
7621
  };
7926
7622
  },
7927
7623
  $mod: function(m) {
@@ -7929,32 +7625,32 @@ var On = { exports: {} };
7929
7625
  return p % m[0] == m[1];
7930
7626
  };
7931
7627
  },
7932
- $ne: function(m, p, B) {
7933
- var D = re.$eq(m, p, B);
7934
- return N(function(E, P, q, R) {
7935
- return !D(E, P, q, R);
7628
+ $ne: function(m, p, w) {
7629
+ var D = re.$eq(m, p, w);
7630
+ return N(function(E, G, q, R) {
7631
+ return !D(E, G, q, R);
7936
7632
  });
7937
7633
  },
7938
- $and: function(m, p, B) {
7939
- return m.map(be(B));
7634
+ $and: function(m, p, w) {
7635
+ return m.map(be(w));
7940
7636
  },
7941
- $all: function(m, p, B) {
7942
- return re.$and(m, p, B);
7637
+ $all: function(m, p, w) {
7638
+ return re.$and(m, p, w);
7943
7639
  },
7944
- $or: function(m, p, B) {
7945
- return m.map(be(B));
7640
+ $or: function(m, p, w) {
7641
+ return m.map(be(w));
7946
7642
  },
7947
- $nor: function(m, p, B) {
7948
- return m.map(be(B));
7643
+ $nor: function(m, p, w) {
7644
+ return m.map(be(w));
7949
7645
  },
7950
- $not: function(m, p, B) {
7951
- var D = be(B)(m);
7952
- return function(E, P, q) {
7953
- return !U(D, E, P, q);
7646
+ $not: function(m, p, w) {
7647
+ var D = be(w)(m);
7648
+ return function(E, G, q) {
7649
+ return !z(D, E, G, q);
7954
7650
  };
7955
7651
  },
7956
7652
  $type: function(m) {
7957
- return function(p, B, D) {
7653
+ return function(p, w, D) {
7958
7654
  return p != null && (p instanceof m || p.constructor == m);
7959
7655
  };
7960
7656
  },
@@ -7967,8 +7663,8 @@ var On = { exports: {} };
7967
7663
  'In CSP mode, sift does not support strings in "$where" condition'
7968
7664
  );
7969
7665
  },
7970
- $elemMatch: function(m, p, B) {
7971
- return be(B)(m);
7666
+ $elemMatch: function(m, p, w) {
7667
+ return be(w)(m);
7972
7668
  },
7973
7669
  $exists: function(m) {
7974
7670
  return !!m;
@@ -7978,29 +7674,29 @@ var On = { exports: {} };
7978
7674
  return { options: m, validate: p };
7979
7675
  }
7980
7676
  function ne(m, p) {
7981
- var B = m.keyPath, D = m.child, E = m.query, P = [];
7982
- if (function i(g, A, b, M, G) {
7677
+ var w = m.keyPath, D = m.child, E = m.query, G = [];
7678
+ if (function i(g, A, b, M, P) {
7983
7679
  if (b === A.length || g == null)
7984
- return void G.push([g, A[b - 1], M]);
7985
- var F = w(A, b);
7680
+ return void P.push([g, A[b - 1], M]);
7681
+ var F = B(A, b);
7986
7682
  if (l(g) && isNaN(Number(F)))
7987
- for (var k = 0, j = g.length; k < j; k++) i(w(g, k), A, b, g, G);
7988
- else i(w(g, F), A, b + 1, g, G);
7989
- }(p, B, 0, p, P), P.length === 1) {
7990
- var q = P[0];
7991
- return U(D, q[0], q[1], q[2]);
7683
+ for (var k = 0, j = g.length; k < j; k++) i(B(g, k), A, b, g, P);
7684
+ else i(B(g, F), A, b + 1, g, P);
7685
+ }(p, w, 0, p, G), G.length === 1) {
7686
+ var q = G[0];
7687
+ return z(D, q[0], q[1], q[2]);
7992
7688
  }
7993
- for (var R = E && E.$ne !== void 0, _ = R, se = 0; se < P.length; se++) {
7994
- var f = P[se], u = U(D, f[0], f[1], f[2]);
7689
+ for (var R = E && E.$ne !== void 0, _ = R, se = 0; se < G.length; se++) {
7690
+ var f = G[se], u = z(D, f[0], f[1], f[2]);
7995
7691
  R ? _ &= u : _ |= u;
7996
7692
  }
7997
7693
  return _;
7998
7694
  }
7999
- function Jt(m, p, B) {
8000
- return me({ keyPath: m, child: p, query: B }, ne);
7695
+ function Jt(m, p, w) {
7696
+ return me({ keyPath: m, child: p, query: w }, ne);
8001
7697
  }
8002
7698
  function be(m) {
8003
- var p = m.comparable, B = m.expressions, D = function(q) {
7699
+ var p = m.comparable, w = m.expressions, D = function(q) {
8004
7700
  var R;
8005
7701
  return (!q || !(R = q) || R.constructor !== Object && R.constructor !== Array && R.constructor.toString() !== "function Object() { [native code] }" && R.constructor.toString() !== "function Array() { [native code] }" || R.toJSON) && (q = { $eq: q }), q;
8006
7702
  }, E = function(q) {
@@ -8009,18 +7705,18 @@ var On = { exports: {} };
8009
7705
  for (var _ in q) {
8010
7706
  var se = q[_];
8011
7707
  if (_ !== "$options") {
8012
- var f = $[_] || m && B && B[_];
7708
+ var f = $[_] || m && w && w[_];
8013
7709
  if (f) re[_] && (se = re[_](se, q, m)), R.push(me(p(se), f));
8014
7710
  else {
8015
7711
  if (_.charCodeAt(0) === 36)
8016
7712
  throw new Error("Unknown operation " + _);
8017
7713
  var u = _.split(".");
8018
- R.push(Jt(u, P(se), se));
7714
+ R.push(Jt(u, G(se), se));
8019
7715
  }
8020
7716
  }
8021
7717
  }
8022
7718
  return R.length === 1 ? R[0] : me(R, $.$and);
8023
- }, P = function(q) {
7719
+ }, G = function(q) {
8024
7720
  return q = D(q), function R(_, se) {
8025
7721
  if (!y(_)) return se;
8026
7722
  for (var f in _) se.push(f), R(_[f], se);
@@ -8036,7 +7732,7 @@ var On = { exports: {} };
8036
7732
  return !1;
8037
7733
  if (y(m)) {
8038
7734
  if (Object.keys(m).length !== Object.keys(p).length) return !1;
8039
- for (var B in m) if (!Ne(m[B], p[B])) return !1;
7735
+ for (var w in m) if (!Ne(m[w], p[w])) return !1;
8040
7736
  return !0;
8041
7737
  }
8042
7738
  if (l(m)) {
@@ -8048,18 +7744,18 @@ var On = { exports: {} };
8048
7744
  return m === p;
8049
7745
  }
8050
7746
  function lt(m, p) {
8051
- var B = be(p)(m);
8052
- return p && p.select && (B = {
8053
- options: B,
8054
- validate: function(D, E, P, q) {
8055
- return U(D, E && p.select(E), P, q);
7747
+ var w = be(p)(m);
7748
+ return p && p.select && (w = {
7749
+ options: w,
7750
+ validate: function(D, E, G, q) {
7751
+ return z(D, E && p.select(E), G, q);
8056
7752
  }
8057
- }), B;
7753
+ }), w;
8058
7754
  }
8059
7755
  function Dt(m, p) {
8060
- var B = lt(m, p = Object.assign({ compare: ut, comparable: At }, p));
8061
- return function(D, E, P) {
8062
- return U(B, D, E, P);
7756
+ var w = lt(m, p = Object.assign({ compare: ut, comparable: At }, p));
7757
+ return function(D, E, G) {
7758
+ return z(w, D, E, G);
8063
7759
  };
8064
7760
  }
8065
7761
  function ut(m, p) {
@@ -8095,10 +7791,10 @@ function js(e) {
8095
7791
  return s.__proto__ || Object.getPrototypeOf(s);
8096
7792
  }, js(e);
8097
7793
  }
8098
- function Ut(e, t) {
8099
- return Ut = Object.setPrototypeOf || function(r, n) {
7794
+ function zt(e, t) {
7795
+ return zt = Object.setPrototypeOf || function(r, n) {
8100
7796
  return r.__proto__ = n, r;
8101
- }, Ut(e, t);
7797
+ }, zt(e, t);
8102
7798
  }
8103
7799
  function gc() {
8104
7800
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -8110,13 +7806,13 @@ function gc() {
8110
7806
  return !1;
8111
7807
  }
8112
7808
  }
8113
- function Gt(e, t, s) {
8114
- return gc() ? Gt = Reflect.construct : Gt = function(n, a, c) {
7809
+ function Pt(e, t, s) {
7810
+ return gc() ? Pt = Reflect.construct : Pt = function(n, a, c) {
8115
7811
  var l = [null];
8116
7812
  l.push.apply(l, a);
8117
7813
  var y = Function.bind.apply(n, l), h = new y();
8118
- return c && Ut(h, c.prototype), h;
8119
- }, Gt.apply(null, arguments);
7814
+ return c && zt(h, c.prototype), h;
7815
+ }, Pt.apply(null, arguments);
8120
7816
  }
8121
7817
  function pc(e) {
8122
7818
  return Function.toString.call(e).indexOf("[native code]") !== -1;
@@ -8132,7 +7828,7 @@ function Es(e) {
8132
7828
  t.set(r, n);
8133
7829
  }
8134
7830
  function n() {
8135
- return Gt(r, arguments, js(this).constructor);
7831
+ return Pt(r, arguments, js(this).constructor);
8136
7832
  }
8137
7833
  return n.prototype = Object.create(r.prototype, {
8138
7834
  constructor: {
@@ -8141,7 +7837,7 @@ function Es(e) {
8141
7837
  writable: !0,
8142
7838
  configurable: !0
8143
7839
  }
8144
- }), Ut(n, r);
7840
+ }), zt(n, r);
8145
7841
  }, Es(e);
8146
7842
  }
8147
7843
  function rr(e) {
@@ -8199,9 +7895,9 @@ function hc(e) {
8199
7895
  function yc(e) {
8200
7896
  return JSON.parse(JSON.stringify(e));
8201
7897
  }
8202
- var bc = /[-/\\^$+?.()|[\]{}]/g, vc = /\.?\*+\.?/g, wc = /\*+/, Bc = /\./g;
7898
+ var bc = /[-/\\^$+?.()|[\]{}]/g, vc = /\.?\*+\.?/g, Bc = /\*+/, wc = /\./g;
8203
7899
  function Mc(e, t, s) {
8204
- var r = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", a = e.replace(Bc, "\\$&").replace(wc, n + r);
7900
+ var r = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", a = e.replace(wc, "\\$&").replace(Bc, n + r);
8205
7901
  return t + e.length === s.length ? "(?:" + a + ")?" : a;
8206
7902
  }
8207
7903
  function Cc(e, t, s) {
@@ -8270,13 +7966,13 @@ var jc = /* @__PURE__ */ function() {
8270
7966
  return this[de].indexedRules = a.rules, this[de].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", n), this;
8271
7967
  }, t.buildIndexFor = function(r) {
8272
7968
  for (var n = /* @__PURE__ */ Object.create(null), a = this[de].RuleType, c = !0, l = !1, y = 0; y < r.length; y++) {
8273
- var h = new a(r[y]), w = this.expandActions(h.actions), O = Ys(h.subject), N = r.length - y - 1;
7969
+ var h = new a(r[y]), B = this.expandActions(h.actions), O = Ys(h.subject), N = r.length - y - 1;
8274
7970
  c = !!(c && h.inverted), !l && h.fields && (l = !0);
8275
- for (var U = 0; U < O.length; U++) {
8276
- var $ = O[U];
7971
+ for (var z = 0; z < O.length; z++) {
7972
+ var $ = O[z];
8277
7973
  n[$] = n[$] || /* @__PURE__ */ Object.create(null);
8278
- for (var re = 0; re < w.length; re++) {
8279
- var me = w[re];
7974
+ for (var re = 0; re < B.length; re++) {
7975
+ var me = B[re];
8280
7976
  n[$][me] = n[$][me] || /* @__PURE__ */ Object.create(null), n[$][me][N] = h;
8281
7977
  }
8282
7978
  }
@@ -8361,13 +8057,13 @@ function Yc(e) {
8361
8057
  function qn(e) {
8362
8058
  return new jc(Yc(e));
8363
8059
  }
8364
- function Pc(e, t) {
8060
+ function Gc(e, t) {
8365
8061
  return e.rulesFor(t.action, t.subject, t.field).some((s) => !s.inverted);
8366
8062
  }
8367
8063
  function In(e, t) {
8368
- return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !Pc(e, t);
8064
+ return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !Gc(e, t);
8369
8065
  }
8370
- function Ps(e, t) {
8066
+ function Gs(e, t) {
8371
8067
  const s = qn(t), r = (l) => s.can(l.action, l.subject, l.field) ? !0 : In(s, l) ? s.can(l.action, l.coverSubject, l.field) : !1, n = e.find((l) => !r(l));
8372
8068
  if (n) {
8373
8069
  const l = s.relevantRuleFor(
@@ -8384,8 +8080,8 @@ function Ps(e, t) {
8384
8080
  const a = e[0], c = s.relevantRuleFor(a.action, a.subject, a.field);
8385
8081
  return { granted: !0, decisivePermission: a, decisiveRule: c ?? null };
8386
8082
  }
8387
- function Gc(e, t) {
8388
- const s = Ps([e], t);
8083
+ function Pc(e, t) {
8084
+ const s = Gs([e], t);
8389
8085
  if (!s.granted)
8390
8086
  return { ...s, conditionEvaluation: "not_enforced" };
8391
8087
  const r = qn(t), n = In(r, e) ? e.coverSubject : void 0, a = [e.subject, n].filter(
@@ -8406,7 +8102,7 @@ function Gc(e, t) {
8406
8102
  }
8407
8103
  function Vc(e, t, s) {
8408
8104
  const r = arguments.length >= 3;
8409
- return Array.isArray(e) ? Ps(e, t) : r ? Gc(e, t) : Ps([e], t);
8105
+ return Array.isArray(e) ? Gs(e, t) : r ? Pc(e, t) : Gs([e], t);
8410
8106
  }
8411
8107
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8412
8108
  const Oc = () => {
@@ -8422,27 +8118,27 @@ function Fc(e, t, s) {
8422
8118
  shallow: c = !0,
8423
8119
  onError: l = Oc
8424
8120
  } = r, y = Qe(!n), h = c ? kn(t) : Qe(t);
8425
- let w = 0;
8121
+ let B = 0;
8426
8122
  return ir(async (O) => {
8427
8123
  if (!y.value)
8428
8124
  return;
8429
- w++;
8430
- const N = w;
8431
- let U = !1;
8125
+ B++;
8126
+ const N = B;
8127
+ let z = !1;
8432
8128
  a && Promise.resolve().then(() => {
8433
8129
  a.value = !0;
8434
8130
  });
8435
8131
  try {
8436
8132
  const $ = await e((re) => {
8437
8133
  O(() => {
8438
- a && (a.value = !1), U || re();
8134
+ a && (a.value = !1), z || re();
8439
8135
  });
8440
8136
  });
8441
- N === w && (h.value = $);
8137
+ N === B && (h.value = $);
8442
8138
  } catch ($) {
8443
8139
  l($);
8444
8140
  } finally {
8445
- a && N === w && (a.value = !1), U = !0;
8141
+ a && N === B && (a.value = !1), z = !0;
8446
8142
  }
8447
8143
  }), n ? Os(() => (y.value = !0, h.value)) : h;
8448
8144
  }
@@ -8488,7 +8184,7 @@ async function Ic(e, t) {
8488
8184
  canAccess: !0
8489
8185
  };
8490
8186
  }
8491
- var Gs = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(Gs || {});
8187
+ var Ps = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(Ps || {});
8492
8188
  function Hc() {
8493
8189
  const e = Jn(), { sessionUser: t } = Ar();
8494
8190
  return Fc(
@@ -8522,35 +8218,35 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8522
8218
  }, Nc = {
8523
8219
  title: "存取被拒絕",
8524
8220
  subtitle: "哎呀!您沒有權限存取此頁面。"
8525
- }, Sc = {
8526
- noPermission: Nc
8527
8221
  }, Zc = {
8222
+ noPermission: Nc
8223
+ }, Sc = {
8528
8224
  title: "การเข้าถึงถูกปฏิเสธ",
8529
8225
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
8530
- }, Uc = {
8531
- noPermission: Zc
8532
- }, zc = { class: "w-full h-full flex justify-center items-center" }, Wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Lc = { class: "w-[300px] h-[300px]" }, Kc = ["src"], Jc = { class: "text-2xl" }, _c = { class: "text-xl" }, $c = /* @__PURE__ */ it({
8226
+ }, zc = {
8227
+ noPermission: Sc
8228
+ }, Uc = { class: "w-full h-full flex justify-center items-center" }, Wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Lc = { class: "w-[300px] h-[300px]" }, Kc = ["src"], Jc = { class: "text-2xl" }, _c = { class: "text-xl" }, $c = /* @__PURE__ */ it({
8533
8229
  __name: "NoPermission",
8534
8230
  setup(e) {
8535
8231
  const { t } = dr({
8536
8232
  messages: {
8537
8233
  "en-US": Qc,
8538
8234
  "zh-CN": Tc,
8539
- "zh-Hant": Sc,
8540
- "th-TH": Uc
8235
+ "zh-Hant": Zc,
8236
+ "th-TH": zc
8541
8237
  }
8542
8238
  });
8543
- return (s, r) => (ct(), lr("div", zc, [
8544
- Ze("div", Wc, [
8545
- Ze("div", Lc, [
8546
- Ze("img", {
8547
- src: Ue(Rc),
8239
+ return (s, r) => (ct(), lr("div", Uc, [
8240
+ Se("div", Wc, [
8241
+ Se("div", Lc, [
8242
+ Se("img", {
8243
+ src: ze(Rc),
8548
8244
  class: "w-full h-full"
8549
8245
  }, null, 8, Kc)
8550
8246
  ]),
8551
- Ze("div", null, [
8552
- Ze("h1", Jc, Ws(Ue(t)("noPermission.title")), 1),
8553
- Ze("h2", _c, Ws(Ue(t)("noPermission.subtitle")), 1)
8247
+ Se("div", null, [
8248
+ Se("h1", Jc, Ws(ze(t)("noPermission.title")), 1),
8249
+ Se("h2", _c, Ws(ze(t)("noPermission.subtitle")), 1)
8554
8250
  ])
8555
8251
  ])
8556
8252
  ]));
@@ -8559,14 +8255,14 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8559
8255
  __name: "PermissionWrapper",
8560
8256
  setup(e) {
8561
8257
  const t = Hc();
8562
- return (s, r) => Ue(t) === Ue(Gs).Denied ? (ct(), zt($c, { key: 0 })) : Ue(t) === Ue(Gs).Allowed ? cr(s.$slots, "default", { key: 1 }) : Tn("", !0);
8258
+ return (s, r) => ze(t) === ze(Ps).Denied ? (ct(), Ut($c, { key: 0 })) : ze(t) === ze(Ps).Allowed ? cr(s.$slots, "default", { key: 1 }) : Tn("", !0);
8563
8259
  }
8564
8260
  });
8565
8261
  function Kt(e) {
8566
8262
  return {
8567
8263
  inheritAttrs: !1,
8568
8264
  setup(t, { attrs: s }) {
8569
- return () => zs(el, {}, { default: () => zs(e, s) });
8265
+ return () => Us(el, {}, { default: () => Us(e, s) });
8570
8266
  }
8571
8267
  };
8572
8268
  }
@@ -8585,10 +8281,10 @@ function tl(e, t) {
8585
8281
  }
8586
8282
  let n = null;
8587
8283
  return Nn(e, async (a) => {
8588
- a && (await Sn(), r());
8284
+ a && (await Zn(), r());
8589
8285
  }), ur(() => {
8590
8286
  window.addEventListener("resize", r), n = new ResizeObserver(r), n.observe(document.body);
8591
- }), Zn(() => {
8287
+ }), Sn(() => {
8592
8288
  window.removeEventListener("resize", r), n == null || n.disconnect(), n = null;
8593
8289
  }), s;
8594
8290
  }
@@ -8605,7 +8301,7 @@ const sl = /* @__PURE__ */ it({
8605
8301
  return (a, c) => (ct(), lr("div", {
8606
8302
  ref_key: "wrapper",
8607
8303
  ref: s,
8608
- style: Un(n.value)
8304
+ style: zn(n.value)
8609
8305
  }, [
8610
8306
  cr(a.$slots, "default")
8611
8307
  ], 4));
@@ -8615,9 +8311,9 @@ const sl = /* @__PURE__ */ it({
8615
8311
  setup(e) {
8616
8312
  return (t, s) => {
8617
8313
  const r = Fs("FmCircularProgress");
8618
- return ct(), zt(sl, null, {
8619
- default: zn(() => [
8620
- Ze("div", rl, [
8314
+ return ct(), Ut(sl, null, {
8315
+ default: Un(() => [
8316
+ Se("div", rl, [
8621
8317
  Wn(r, { size: "xl" })
8622
8318
  ])
8623
8319
  ]),
@@ -8625,7 +8321,7 @@ const sl = /* @__PURE__ */ it({
8625
8321
  });
8626
8322
  };
8627
8323
  }
8628
- }), Be = (e) => Ln({
8324
+ }), we = (e) => Ln({
8629
8325
  loader: e,
8630
8326
  loadingComponent: nl
8631
8327
  });
@@ -8639,10 +8335,10 @@ const Et = (e) => ({
8639
8335
  }
8640
8336
  ]
8641
8337
  }
8642
- }), al = Kt(Be(() => import("./Main-B5BKGpLg.js"))), ol = Kt(Be(() => import("./Main-DQj4xtkB.js"))), il = Kt(
8643
- Be(() => import("./AuditLogList-CRXwPImZ.js"))
8644
- ), cl = Kt(Be(() => import("./Main-BGONIxo8.js"))), ll = Be(() => import("./ApprovalCodeList-B0PLZwav.js")), ul = Be(() => import("./GrantUserList-DoyxknJZ.js")), Al = Be(() => import("./EmployeeList-DN2pnXcS.js")), dl = Be(() => import("./RoleList-Bj5Y5jd_.js")), ml = Be(() => import("./TimesheetList-DwIcsOM-.js")), gl = Be(() => import("./TeamMemberList-Byjlca2Y.js")), pl = Be(
8645
- () => import("./PermissionSetList-4uIU9FvN.js")
8338
+ }), al = Kt(we(() => import("./Main-D_LwrBdZ.js"))), ol = Kt(we(() => import("./Main-DNOHZd3j.js"))), il = Kt(
8339
+ we(() => import("./AuditLogList-DrrL4vf4.js"))
8340
+ ), cl = Kt(we(() => import("./Main-auigiuVZ.js"))), ll = we(() => import("./ApprovalCodeList-B1XHbhum.js")), ul = we(() => import("./GrantUserList-CLBl7FZ-.js")), Al = we(() => import("./EmployeeList-BMol4ah4.js")), dl = we(() => import("./RoleList-g8PjH_k2.js")), ml = we(() => import("./TimesheetList-C1IJhOYE.js")), gl = we(() => import("./TeamMemberList-B9aCagSc.js")), pl = we(
8341
+ () => import("./PermissionSetList-DLYrXFbz.js")
8646
8342
  ), Fl = [
8647
8343
  {
8648
8344
  path: "/",
@@ -8800,9 +8496,9 @@ const Et = (e) => ({
8800
8496
  c.value !== l && (c.value = l);
8801
8497
  }), (l, y) => {
8802
8498
  const h = Fs("FmCollapsibleTabs");
8803
- return ct(), zt(h, {
8499
+ return ct(), Ut(h, {
8804
8500
  modelValue: c.value,
8805
- "onUpdate:modelValue": y[0] || (y[0] = (w) => c.value = w),
8501
+ "onUpdate:modelValue": y[0] || (y[0] = (B) => c.value = B),
8806
8502
  items: a.value,
8807
8503
  class: "py-16"
8808
8504
  }, null, 8, ["modelValue", "items"]);
@@ -8853,7 +8549,7 @@ var Vs = { exports: {} };
8853
8549
  b(j);
8854
8550
  }
8855
8551
  }
8856
- function G(k) {
8552
+ function P(k) {
8857
8553
  try {
8858
8554
  F(g.throw(k));
8859
8555
  } catch (j) {
@@ -8862,9 +8558,9 @@ var Vs = { exports: {} };
8862
8558
  }
8863
8559
  function F(k) {
8864
8560
  var j;
8865
- k.done ? A(k.value) : (j = k.value, j instanceof i ? j : new i(function(z) {
8866
- z(j);
8867
- })).then(M, G);
8561
+ k.done ? A(k.value) : (j = k.value, j instanceof i ? j : new i(function(U) {
8562
+ U(j);
8563
+ })).then(M, P);
8868
8564
  }
8869
8565
  F((g = g.apply(f, [])).next());
8870
8566
  });
@@ -8874,10 +8570,10 @@ var Vs = { exports: {} };
8874
8570
  if (1 & A[0]) throw A[1];
8875
8571
  return A[1];
8876
8572
  }, trys: [], ops: [] };
8877
- return b = { next: G(0), throw: G(1), return: G(2) }, typeof Symbol == "function" && (b[Symbol.iterator] = function() {
8573
+ return b = { next: P(0), throw: P(1), return: P(2) }, typeof Symbol == "function" && (b[Symbol.iterator] = function() {
8878
8574
  return this;
8879
8575
  }), b;
8880
- function G(F) {
8576
+ function P(F) {
8881
8577
  return function(k) {
8882
8578
  return function(j) {
8883
8579
  if (i) throw new TypeError("Generator is already executing.");
@@ -8917,8 +8613,8 @@ var Vs = { exports: {} };
8917
8613
  continue;
8918
8614
  }
8919
8615
  j = u.call(f, M);
8920
- } catch (z) {
8921
- j = [6, z], g = 0;
8616
+ } catch (U) {
8617
+ j = [6, U], g = 0;
8922
8618
  } finally {
8923
8619
  i = A = 0;
8924
8620
  }
@@ -8964,18 +8660,18 @@ var Vs = { exports: {} };
8964
8660
  Object.keys(u || {}).includes(g) || i.push(g);
8965
8661
  }), Object.keys(i).length ? i : null;
8966
8662
  }
8967
- var w, O;
8663
+ var B, O;
8968
8664
  function N(f, u, i) {
8969
8665
  var g = "shortString", A = !0;
8970
8666
  typeof i == "number" && (g = "javaDouble", A = !1), f[g] = f[g] || {}, f[g][u] = A ? i + "" : i;
8971
8667
  }
8972
- function U(f) {
8668
+ function z(f) {
8973
8669
  return !!f && typeof f == "object" && f.value !== void 0;
8974
8670
  }
8975
8671
  function $(f) {
8976
8672
  return Object.fromEntries(Object.entries(f).map(function(u) {
8977
8673
  var i = u[0], g = u[1];
8978
- return [i, U(g) ? g : { value: g }];
8674
+ return [i, z(g) ? g : { value: g }];
8979
8675
  }));
8980
8676
  }
8981
8677
  function re(f) {
@@ -8983,15 +8679,15 @@ var Vs = { exports: {} };
8983
8679
  }
8984
8680
  (function(f) {
8985
8681
  f.NONE = "NONE", f.DEFAULT_FLAGS = "DEFAULT_FLAGS", f.CACHE = "CACHE", f.SERVER = "SERVER";
8986
- })(w || (w = {}));
8682
+ })(B || (B = {}));
8987
8683
  var me, ne = null, Jt = "FLAGSMITH_EVENT", be = Jt, Ne = "https://edge.api.flagsmith.com/api/v1/", lt = "flagsmith_value_", Dt = "flagsmith_enabled_", ut = "flagsmith_trait_", At = function() {
8988
8684
  function f(u) {
8989
8685
  var i = this;
8990
8686
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
8991
8687
  var g = i, A = g.api, b = g.evaluationContext;
8992
8688
  i.log("Get Flags"), i.isLoading = !0, i.loadingState.isFetching || i.setLoadingState(n(n({}, i.loadingState), { isFetching: !0 }));
8993
- var M = "".concat(i.getContext().identity), G = function(F) {
8994
- var k, j, z, ce;
8689
+ var M = "".concat(i.getContext().identity), P = function(F) {
8690
+ var k, j, U, ce;
8995
8691
  if (F && M === "".concat(i.getContext().identity)) {
8996
8692
  var Me = F.flags, ge = F.traits, ve = F.identifier;
8997
8693
  i.isLoading = !1;
@@ -9002,13 +8698,13 @@ var Vs = { exports: {} };
9002
8698
  fe[W.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: W.transient, value: W.trait_value };
9003
8699
  }), i.oldFlags = n({}, i.flags);
9004
8700
  var Ce = h(i.oldFlags, pe), dt = h((k = i.evaluationContext.identity) === null || k === void 0 ? void 0 : k.traits, fe);
9005
- if ((ve || Object.keys(fe).length) && (i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: fe }), ve && (i.evaluationContext.identity.identifier = ve)), i.flags = pe, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: Ce, traitsChanged: dt }, i._loadedState(null, w.SERVER)), i.datadogRum) try {
8701
+ if ((ve || Object.keys(fe).length) && (i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: fe }), ve && (i.evaluationContext.identity.identifier = ve)), i.flags = pe, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: Ce, traitsChanged: dt }, i._loadedState(null, B.SERVER)), i.datadogRum) try {
9006
8702
  if (i.datadogRum.trackTraits) {
9007
8703
  var mt = {};
9008
8704
  Object.keys(((j = i.evaluationContext.identity) === null || j === void 0 ? void 0 : j.traits) || {}).map(function(W) {
9009
8705
  mt[ut + W] = i.getTrait(W);
9010
8706
  });
9011
- var Je = n(n(n({}, i.datadogRum.client.getUser()), { id: i.datadogRum.client.getUser().id || ((z = i.evaluationContext.identity) === null || z === void 0 ? void 0 : z.identifier) }), mt);
8707
+ var Je = n(n(n({}, i.datadogRum.client.getUser()), { id: i.datadogRum.client.getUser().id || ((U = i.evaluationContext.identity) === null || U === void 0 ? void 0 : U.identifier) }), mt);
9012
8708
  i.log("Setting Datadog user", Je), i.datadogRum.client.setUser(Je);
9013
8709
  }
9014
8710
  } catch (W) {
@@ -9032,12 +8728,12 @@ var Vs = { exports: {} };
9032
8728
  }).filter(function(F) {
9033
8729
  return F.trait_value !== void 0 || (i.log("Warning - attempted to set an undefined trait value for key", F.trait_key), !1);
9034
8730
  }) })) : i.getJSON(A + "identities/?identifier=" + encodeURIComponent(b.identity.identifier) + (b.identity.transient ? "&transient=true" : ""))]).then(function(F) {
9035
- return i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: {} }), G(F == null ? void 0 : F[0]);
8731
+ return i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: {} }), P(F == null ? void 0 : F[0]);
9036
8732
  }).catch(function(F) {
9037
8733
  var k = F.message, j = new Error(k);
9038
8734
  return Promise.reject(j);
9039
8735
  }) : i.getJSON(A + "flags/").then(function(F) {
9040
- return G({ flags: F, traits: void 0 });
8736
+ return P({ flags: F, traits: void 0 });
9041
8737
  });
9042
8738
  }, this.analyticsFlags = function() {
9043
8739
  var g = i.api;
@@ -9049,15 +8745,15 @@ var Vs = { exports: {} };
9049
8745
  }).catch(function(A) {
9050
8746
  i.log("Exception fetching evaluationEvent", A);
9051
8747
  }) : void 0;
9052
- }, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: w.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(g, A, b) {
9053
- var M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], G = null;
9054
- if (M && (G = M.value), A != null && A.skipAnalytics || b || i.evaluateFlag(g, "VALUE"), G === null && (A == null ? void 0 : A.fallback) !== void 0) return A.fallback;
8748
+ }, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: B.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(g, A, b) {
8749
+ var M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], P = null;
8750
+ if (M && (P = M.value), A != null && A.skipAnalytics || b || i.evaluateFlag(g, "VALUE"), P === null && (A == null ? void 0 : A.fallback) !== void 0) return A.fallback;
9055
8751
  if (A != null && A.json) try {
9056
- return G === null ? (i.log("Tried to parse null flag as JSON: " + g), null) : JSON.parse(G);
8752
+ return P === null ? (i.log("Tried to parse null flag as JSON: " + g), null) : JSON.parse(P);
9057
8753
  } catch {
9058
8754
  return A.fallback;
9059
8755
  }
9060
- return G;
8756
+ return P;
9061
8757
  }, this.getTrait = function(g) {
9062
8758
  var A, b;
9063
8759
  return ((A = i.evaluationContext.identity) === null || A === void 0 ? void 0 : A.traits) && ((b = i.evaluationContext.identity.traits[g.toLowerCase().replace(/ /g, "_")]) === null || b === void 0 ? void 0 : b.value);
@@ -9080,26 +8776,26 @@ var Vs = { exports: {} };
9080
8776
  }, this.setTraits = function(g) {
9081
8777
  var A;
9082
8778
  if (i.api) return i.setContext(n(n({}, i.evaluationContext), { identity: n(n({}, i.evaluationContext.identity), { traits: n(n({}, (A = i.evaluationContext.identity) === null || A === void 0 ? void 0 : A.traits), Object.fromEntries(Object.entries(g).map(function(b) {
9083
- var M = b[0], G = b[1];
9084
- return [M, U(G) ? G : { value: G }];
8779
+ var M = b[0], P = b[1];
8780
+ return [M, z(P) ? P : { value: P }];
9085
8781
  }))) }) }));
9086
8782
  console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
9087
8783
  }, this.hasFeature = function(g, A) {
9088
- var b = typeof A == "object", M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], G = !1;
9089
- return !M && b && A.fallback !== void 0 ? G = A == null ? void 0 : A.fallback : M && M.enabled && (G = !0), (b && !A.skipAnalytics || !A) && i.evaluateFlag(g, "ENABLED"), G;
8784
+ var b = typeof A == "object", M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], P = !1;
8785
+ return !M && b && A.fallback !== void 0 ? P = A == null ? void 0 : A.fallback : M && M.enabled && (P = !0), (b && !A.skipAnalytics || !A) && i.evaluateFlag(g, "ENABLED"), P;
9090
8786
  }, this.getStorageKey = function() {
9091
8787
  var g, A;
9092
8788
  return ((g = i.cacheOptions) === null || g === void 0 ? void 0 : g.storageKey) || "FLAGSMITH_DB_" + ((A = i.evaluationContext.environment) === null || A === void 0 ? void 0 : A.apiKey);
9093
8789
  }, this.getJSON = function(g, A, b) {
9094
- var M, G = i;
9095
- G.evaluationContext;
9096
- var F = G.headers, k = { method: A || "GET", body: b, cache: "no-cache", headers: {} };
8790
+ var M, P = i;
8791
+ P.evaluationContext;
8792
+ var F = P.headers, k = { method: A || "GET", body: b, cache: "no-cache", headers: {} };
9097
8793
  i.evaluationContext.environment && (k.headers["X-Environment-Key"] = i.evaluationContext.environment.apiKey), A && A !== "GET" && (k.headers["Content-Type"] = "application/json; charset=utf-8"), F && Object.assign(k.headers, F), O || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
9098
8794
  var j = "".concat((M = i.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
9099
- return O(g, k).then(function(z) {
8795
+ return O(g, k).then(function(U) {
9100
8796
  var ce, Me, ge = "".concat((ce = i.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
9101
8797
  if (j === ge) {
9102
- var ve = (Me = z.headers) === null || Me === void 0 ? void 0 : Me.get("x-flagsmith-document-updated-at");
8798
+ var ve = (Me = U.headers) === null || Me === void 0 ? void 0 : Me.get("x-flagsmith-document-updated-at");
9103
8799
  if (ve) try {
9104
8800
  var pe = parseFloat(ve);
9105
8801
  if (isNaN(pe)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
@@ -9107,13 +8803,13 @@ var Vs = { exports: {} };
9107
8803
  } catch (fe) {
9108
8804
  i.log(fe, "Failed to parse x-flagsmith-document-updated-at", ve);
9109
8805
  }
9110
- return i.log("Fetch response: " + z.status + " " + (A || "GET") + 0 + g), z.text().then(function(fe) {
8806
+ return i.log("Fetch response: " + U.status + " " + (A || "GET") + 0 + g), U.text().then(function(fe) {
9111
8807
  var Ce = fe;
9112
8808
  try {
9113
8809
  Ce = JSON.parse(fe);
9114
8810
  } catch {
9115
8811
  }
9116
- return !Ce && z.status && (Ce = "API Response: ".concat(z.status)), z.status && z.status >= 200 && z.status < 300 ? Ce : Promise.reject(new Error(Ce));
8812
+ return !Ce && U.status && (Ce = "API Response: ".concat(U.status)), U.status && U.status >= 200 && U.status < 300 ? Ce : Promise.reject(new Error(Ce));
9117
8813
  });
9118
8814
  }
9119
8815
  i.log("Received response with identity mismatch, ignoring response. Requested: ".concat(j, ", Current: ").concat(ge));
@@ -9125,39 +8821,39 @@ var Vs = { exports: {} };
9125
8821
  }
9126
8822
  i.updateEventStorage();
9127
8823
  }, this._onChange = function(g, A, b) {
9128
- var M, G;
9129
- i.setLoadingState(b), (M = i.onChange) === null || M === void 0 || M.call(i, g, A, i.loadingState), (G = i._trigger) === null || G === void 0 || G.call(i);
8824
+ var M, P;
8825
+ i.setLoadingState(b), (M = i.onChange) === null || M === void 0 || M.call(i, g, A, i.loadingState), (P = i._trigger) === null || P === void 0 || P.call(i);
9130
8826
  }, O = u.fetch ? u.fetch : typeof fetch < "u" ? fetch : bt == null ? void 0 : bt.fetch, this.canUseStorage = typeof window < "u" || !!u.browserlessStorage, this.log("Constructing flagsmith instance " + u), u.eventSource && (me = u.eventSource), u.AsyncStorage && (ne = u.AsyncStorage);
9131
8827
  }
9132
8828
  return f.prototype.init = function(u) {
9133
8829
  var i, g, A;
9134
8830
  return a(this, void 0, void 0, function() {
9135
- var b, M, G, F, k, j, z, ce, Me, ge, ve, pe, fe, Ce, dt, mt, Je, le, W, _t, gt, Qs, _e, $t, ks, Ts, es, Ns, ts, pt, $e, Ss, ue = this;
9136
- return c(this, function(we) {
9137
- switch (we.label) {
8831
+ var b, M, P, F, k, j, U, ce, Me, ge, ve, pe, fe, Ce, dt, mt, Je, le, W, _t, gt, Qs, _e, $t, ks, Ts, es, Ns, ts, pt, $e, Zs, ue = this;
8832
+ return c(this, function(Be) {
8833
+ switch (Be.label) {
9138
8834
  case 0:
9139
- b = re(u.evaluationContext || this.evaluationContext), we.label = 1;
8835
+ b = re(u.evaluationContext || this.evaluationContext), Be.label = 1;
9140
8836
  case 1:
9141
- if (we.trys.push([1, 13, , 14]), M = u.environmentID, G = u.api, F = G === void 0 ? Ne : G, k = u.headers, j = u.onChange, z = u.cacheFlags, ce = u.datadogRum, Me = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Ce = u.enableDynatrace, dt = u.enableAnalytics, mt = u.realtime, Je = u.eventSourceUrl, le = Je === void 0 ? "https://realtime.flagsmith.com/" : Je, W = u.AsyncStorage, _t = u.identity, gt = u.traits, Qs = u.state, _e = u.cacheOptions, $t = u.angularHttpClient, ks = u._trigger, Ts = u._triggerLoadingState, b.environment = M ? { apiKey: M } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
8837
+ if (Be.trys.push([1, 13, , 14]), M = u.environmentID, P = u.api, F = P === void 0 ? Ne : P, k = u.headers, j = u.onChange, U = u.cacheFlags, ce = u.datadogRum, Me = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Ce = u.enableDynatrace, dt = u.enableAnalytics, mt = u.realtime, Je = u.eventSourceUrl, le = Je === void 0 ? "https://realtime.flagsmith.com/" : Je, W = u.AsyncStorage, _t = u.identity, gt = u.traits, Qs = u.state, _e = u.cacheOptions, $t = u.angularHttpClient, ks = u._trigger, Ts = u._triggerLoadingState, b.environment = M ? { apiKey: M } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
9142
8838
  if (b.identity = _t || gt ? { identifier: _t, traits: gt ? Object.fromEntries(Object.entries(gt).map(function(he) {
9143
8839
  return [he[0], { value: he[1] }];
9144
8840
  })) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers = k, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = j, es = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = ks || this._trigger, this._triggerLoadingState = Ts || this._triggerLoadingState, this.onError = function(he) {
9145
8841
  ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), Me == null || Me(he);
9146
- }, this.enableLogs = fe || !1, this.cacheOptions = _e ? { skipAPI: !!_e.skipAPI, ttl: _e.ttl || 0, storageKey: _e.storageKey, loadStale: !!_e.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ve && (O = ve), this.enableAnalytics = dt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!z, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), mt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Qs), this.log("Initialising with properties", u, this), Ce && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), $t && (O = /* @__PURE__ */ function(he) {
8842
+ }, this.enableLogs = fe || !1, this.cacheOptions = _e ? { skipAPI: !!_e.skipAPI, ttl: _e.ttl || 0, storageKey: _e.storageKey, loadStale: !!_e.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ve && (O = ve), this.enableAnalytics = dt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!U, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), mt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: B.DEFAULT_FLAGS })), this.setState(Qs), this.log("Initialising with properties", u, this), Ce && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), $t && (O = /* @__PURE__ */ function(he) {
9147
8843
  return function(De, xe) {
9148
8844
  var qe = xe.headers, K = xe.method, et = xe.body;
9149
- return new Promise(function(Se) {
8845
+ return new Promise(function(Ze) {
9150
8846
  switch (K) {
9151
8847
  case "GET":
9152
8848
  return he.get(De, { headers: qe }).subscribe(function(Oe) {
9153
- Se({ ok: !0, text: function() {
8849
+ Ze({ ok: !0, text: function() {
9154
8850
  return Promise.resolve(Oe);
9155
8851
  } });
9156
8852
  });
9157
8853
  case "POST":
9158
8854
  case "PUT":
9159
8855
  return he.post(De, et, { headers: qe }).subscribe(function(Oe) {
9160
- Se({ ok: !0, text: function() {
8856
+ Ze({ ok: !0, text: function() {
9161
8857
  return Promise.resolve(Oe);
9162
8858
  } });
9163
8859
  });
@@ -9179,20 +8875,20 @@ var Vs = { exports: {} };
9179
8875
  ue.log("Retrieved events from cache", De), ue.setState(n(n({}, qe), { evaluationEvent: xe[ue.evaluationContext.environment.apiKey] }));
9180
8876
  }
9181
8877
  }
9182
- })), !z) return [3, 9];
8878
+ })), !U) return [3, 9];
9183
8879
  if (!ne || !this.canUseStorage) return [3, 8];
9184
8880
  Ns = function(he, De) {
9185
8881
  return a(ue, void 0, void 0, function() {
9186
- var xe, qe, K, et, Se, Oe, ss, Zs, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, Us = this;
8882
+ var xe, qe, K, et, Ze, Oe, ss, Ss, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, zs = this;
9187
8883
  return c(this, function(Ie) {
9188
8884
  switch (Ie.label) {
9189
8885
  case 0:
9190
8886
  if (!De) return [3, 7];
9191
8887
  xe = null, qe = null, Ie.label = 1;
9192
8888
  case 1:
9193
- return Ie.trys.push([1, 5, , 6]), K = JSON.parse(De), et = !1, Se = !1, K && K.api === this.api && ((ns = (rs = K.evaluationContext) === null || rs === void 0 ? void 0 : rs.environment) === null || ns === void 0 ? void 0 : ns.apiKey) === ((as = this.evaluationContext.environment) === null || as === void 0 ? void 0 : as.apiKey) && (Oe = !0, this.evaluationContext.identity && ((is = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ls = (cs = K.evaluationContext) === null || cs === void 0 ? void 0 : cs.identity) === null || ls === void 0 ? void 0 : ls.identifier) + " to " + this.evaluationContext.identity.identifier), Oe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Oe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Se = !0, Oe = !0)), Oe && (et = !0, qe = h((us = this.evaluationContext.identity) === null || us === void 0 ? void 0 : us.traits, (ds = (As = K.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || ds === void 0 ? void 0 : ds.traits), xe = h(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity), { traits: n(n({}, ((fs = (ps = K.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), et ? (ss = !pe && (!this.cacheOptions.skipAPI || Se), this._onChange(null, { isFromServer: !1, flagsChanged: xe, traitsChanged: qe }, this._loadedState(null, w.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && et && !Se && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
8889
+ return Ie.trys.push([1, 5, , 6]), K = JSON.parse(De), et = !1, Ze = !1, K && K.api === this.api && ((ns = (rs = K.evaluationContext) === null || rs === void 0 ? void 0 : rs.environment) === null || ns === void 0 ? void 0 : ns.apiKey) === ((as = this.evaluationContext.environment) === null || as === void 0 ? void 0 : as.apiKey) && (Oe = !0, this.evaluationContext.identity && ((is = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ls = (cs = K.evaluationContext) === null || cs === void 0 ? void 0 : cs.identity) === null || ls === void 0 ? void 0 : ls.identifier) + " to " + this.evaluationContext.identity.identifier), Oe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Oe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Ze = !0, Oe = !0)), Oe && (et = !0, qe = h((us = this.evaluationContext.identity) === null || us === void 0 ? void 0 : us.traits, (ds = (As = K.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || ds === void 0 ? void 0 : ds.traits), xe = h(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity), { traits: n(n({}, ((fs = (ps = K.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), et ? (ss = !pe && (!this.cacheOptions.skipAPI || Ze), this._onChange(null, { isFromServer: !1, flagsChanged: xe, traitsChanged: qe }, this._loadedState(null, B.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && et && !Ze && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
9194
8890
  var bs;
9195
- (bs = Us.onError) === null || bs === void 0 || bs.call(Us, Hn);
8891
+ (bs = zs.onError) === null || bs === void 0 || bs.call(zs, Hn);
9196
8892
  }), [3, 4]) : [3, 2];
9197
8893
  case 2:
9198
8894
  return pe ? [3, 4] : [4, this.getFlags()];
@@ -9201,7 +8897,7 @@ var Vs = { exports: {} };
9201
8897
  case 4:
9202
8898
  return [3, 6];
9203
8899
  case 5:
9204
- return Zs = Ie.sent(), this.log("Exception fetching cached logs", Zs), [3, 6];
8900
+ return Ss = Ie.sent(), this.log("Exception fetching cached logs", Ss), [3, 6];
9205
8901
  case 6:
9206
8902
  return [3, 10];
9207
8903
  case 7:
@@ -9209,10 +8905,10 @@ var Vs = { exports: {} };
9209
8905
  case 8:
9210
8906
  return Ie.sent(), [3, 10];
9211
8907
  case 9:
9212
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8908
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
9213
8909
  else {
9214
8910
  if (!this.flags) throw new Error(es);
9215
- this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ys = this.evaluationContext.identity) === null || ys === void 0 ? void 0 : ys.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8911
+ this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ys = this.evaluationContext.identity) === null || ys === void 0 ? void 0 : ys.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
9216
8912
  }
9217
8913
  Ie.label = 10;
9218
8914
  case 10:
@@ -9220,32 +8916,32 @@ var Vs = { exports: {} };
9220
8916
  }
9221
8917
  });
9222
8918
  });
9223
- }, we.label = 2;
8919
+ }, Be.label = 2;
9224
8920
  case 2:
9225
- return we.trys.push([2, 7, , 8]), ne.getItemSync ? (ts = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
8921
+ return Be.trys.push([2, 7, , 8]), ne.getItemSync ? (ts = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
9226
8922
  case 3:
9227
8923
  return [4, ne.getItem(this.getStorageKey())];
9228
8924
  case 4:
9229
- ts = we.sent(), we.label = 5;
8925
+ ts = Be.sent(), Be.label = 5;
9230
8926
  case 5:
9231
8927
  return [4, Ns(null, ts)];
9232
8928
  case 6:
9233
8929
  case 7:
9234
- return we.sent(), [3, 8];
8930
+ return Be.sent(), [3, 8];
9235
8931
  case 8:
9236
8932
  return [3, 12];
9237
8933
  case 9:
9238
8934
  return pe ? [3, 11] : [4, this.getFlags()];
9239
8935
  case 10:
9240
- return we.sent(), [3, 12];
8936
+ return Be.sent(), [3, 12];
9241
8937
  case 11:
9242
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, ge), traitsChanged: h({}, (i = b.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
9243
- else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = es), this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, w.DEFAULT_FLAGS)), pt)) throw new Error(pt);
9244
- we.label = 12;
8938
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, ge), traitsChanged: h({}, (i = b.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
8939
+ else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = es), this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, B.DEFAULT_FLAGS)), pt)) throw new Error(pt);
8940
+ Be.label = 12;
9245
8941
  case 12:
9246
8942
  return [3, 14];
9247
8943
  case 13:
9248
- throw $e = we.sent(), this.log("Error during initialisation ", $e), Ss = $e instanceof Error ? $e : new Error("".concat($e)), (A = this.onError) === null || A === void 0 || A.call(this, Ss), $e;
8944
+ throw $e = Be.sent(), this.log("Error during initialisation ", $e), Zs = $e instanceof Error ? $e : new Error("".concat($e)), (A = this.onError) === null || A === void 0 || A.call(this, Zs), $e;
9249
8945
  case 14:
9250
8946
  return [2];
9251
8947
  }
@@ -9256,7 +8952,7 @@ var Vs = { exports: {} };
9256
8952
  }, f.prototype.identify = function(u, i, g) {
9257
8953
  return this.evaluationContext.identity = { identifier: u, transient: g, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == u ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = u, this.log("Identify: " + this.evaluationContext.identity.identifier), i && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(i).map(function(A) {
9258
8954
  var b = A[0], M = A[1];
9259
- return [b, U(M) ? M : { value: M }];
8955
+ return [b, z(M) ? M : { value: M }];
9260
8956
  }))), this.initialised ? this.getFlags() : Promise.resolve();
9261
8957
  }, f.prototype.getState = function() {
9262
8958
  return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
@@ -9295,8 +8991,8 @@ var Vs = { exports: {} };
9295
8991
  var M;
9296
8992
  try {
9297
8993
  M = JSON.parse(b.data).updated_at;
9298
- } catch (G) {
9299
- g.log("Could not parse sse event", G);
8994
+ } catch (P) {
8995
+ g.log("Could not parse sse event", P);
9300
8996
  }
9301
8997
  M ? !g.timestamp || M > g.timestamp ? g.isLoading ? g.log("updated_at is new, but flags are loading", b.data, g.timestamp) : (g.log("updated_at is new, fetching flags", b.data, g.timestamp), g.getFlags()) : g.log("updated_at is outdated, skipping get flags", b.data, g.timestamp) : g.log("No updated_at received, fetching flags", b);
9302
8998
  })) : this.log("Error, EventSource is undefined");
@@ -9306,7 +9002,7 @@ var Vs = { exports: {} };
9306
9002
  var u = f.fetch, i = f.AsyncStorage, g = f.eventSource;
9307
9003
  return new At({ fetch: u, AsyncStorage: i, eventSource: g });
9308
9004
  }
9309
- var p, B = (p = function(f, u) {
9005
+ var p, w = (p = function(f, u) {
9310
9006
  return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, g) {
9311
9007
  i.__proto__ = g;
9312
9008
  } || function(i, g) {
@@ -9331,8 +9027,8 @@ var Vs = { exports: {} };
9331
9027
  var g, A, b = i.call(f), M = [];
9332
9028
  try {
9333
9029
  for (; (u === void 0 || u-- > 0) && !(g = b.next()).done; ) M.push(g.value);
9334
- } catch (G) {
9335
- A = { error: G };
9030
+ } catch (P) {
9031
+ A = { error: P };
9336
9032
  } finally {
9337
9033
  try {
9338
9034
  g && !g.done && (i = b.return) && i.call(b);
@@ -9341,7 +9037,7 @@ var Vs = { exports: {} };
9341
9037
  }
9342
9038
  }
9343
9039
  return M;
9344
- }, P = function(f, u, i) {
9040
+ }, G = function(f, u, i) {
9345
9041
  if (arguments.length === 2) for (var g, A = 0, b = u.length; A < b; A++) !g && A in u || (g || (g = Array.prototype.slice.call(u, 0, A)), g[A] = u[A]);
9346
9042
  return f.concat(g || Array.prototype.slice.call(u));
9347
9043
  }, q = function(f) {
@@ -9349,7 +9045,7 @@ var Vs = { exports: {} };
9349
9045
  return f.call(this, `EventSource not available.
9350
9046
  Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
9351
9047
  }
9352
- return B(u, f), u;
9048
+ return w(u, f), u;
9353
9049
  }(Error), R = function() {
9354
9050
  function f(u, i) {
9355
9051
  var g = this;
@@ -9371,8 +9067,8 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9371
9067
  };
9372
9068
  try {
9373
9069
  for (var b = D(Object.keys(this._listeners)), M = b.next(); !M.done; M = b.next()) {
9374
- var G = M.value;
9375
- this._eventSource.addEventListener(G, this._onevent_wrapped);
9070
+ var P = M.value;
9071
+ this._eventSource.addEventListener(P, this._onevent_wrapped);
9376
9072
  }
9377
9073
  } catch (F) {
9378
9074
  u = { error: F };
@@ -9399,10 +9095,10 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9399
9095
  u && u.lastEventId && (this._lastEventId = u.lastEventId);
9400
9096
  var A = this._listeners[u.type];
9401
9097
  if (A != null) try {
9402
- for (var b = D(P([], E(A), !1)), M = b.next(); !M.done; M = b.next())
9098
+ for (var b = D(G([], E(A), !1)), M = b.next(); !M.done; M = b.next())
9403
9099
  M.value.call(this, u);
9404
- } catch (G) {
9405
- i = { error: G };
9100
+ } catch (P) {
9101
+ i = { error: P };
9406
9102
  } finally {
9407
9103
  try {
9408
9104
  M && !M.done && (g = b.return) && g.call(b);
@@ -9419,7 +9115,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9419
9115
  }, f.prototype.addEventListener = function(u, i, g) {
9420
9116
  this._listeners[u] == null && (this._listeners[u] = [], this._eventSource != null && this._eventSource.addEventListener(u, this._onevent_wrapped));
9421
9117
  var A = this._listeners[u];
9422
- A.includes(i) || (this._listeners[u] = P(P([], E(A), !1), [i], !1));
9118
+ A.includes(i) || (this._listeners[u] = G(G([], E(A), !1), [i], !1));
9423
9119
  }, f.prototype.removeEventListener = function(u, i, g) {
9424
9120
  var A = this._listeners[u];
9425
9121
  this._listeners[u] = A.filter(function(b) {
@@ -9430,7 +9126,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9430
9126
  globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
9431
9127
  var _ = function(f, u) {
9432
9128
  return u = u || {}, new Promise(function(i, g) {
9433
- var A = new XMLHttpRequest(), b = [], M = [], G = {}, F = function() {
9129
+ var A = new XMLHttpRequest(), b = [], M = [], P = {}, F = function() {
9434
9130
  return { ok: (A.status / 100 | 0) == 2, statusText: A.statusText, status: A.status, url: A.responseURL, text: function() {
9435
9131
  return Promise.resolve(A.responseText);
9436
9132
  }, json: function() {
@@ -9442,14 +9138,14 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9442
9138
  }, entries: function() {
9443
9139
  return M;
9444
9140
  }, get: function(j) {
9445
- return G[j.toLowerCase()];
9141
+ return P[j.toLowerCase()];
9446
9142
  }, has: function(j) {
9447
- return j.toLowerCase() in G;
9143
+ return j.toLowerCase() in P;
9448
9144
  } } };
9449
9145
  };
9450
9146
  for (var k in A.open(u.method || "get", f, !0), A.onload = function() {
9451
- A.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, z, ce) {
9452
- b.push(z = z.toLowerCase()), M.push([z, ce]), G[z] = G[z] ? G[z] + "," + ce : ce;
9147
+ A.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, U, ce) {
9148
+ b.push(U = U.toLowerCase()), M.push([U, ce]), P[U] = P[U] ? P[U] + "," + ce : ce;
9453
9149
  }), i(F());
9454
9150
  }, A.onerror = g, A.withCredentials = u.credentials == "include", u.headers) A.setRequestHeader(k, u.headers[k]);
9455
9151
  A.send(u.body || null);
@@ -9565,50 +9261,50 @@ var hl = Vs.exports, yl = {
9565
9261
  this.flagsmithClient = null, this.userContext = null;
9566
9262
  }
9567
9263
  }, xt(je, "instance"), je), vl = bl.getInstance(), ht = Qe(!1), Yt = Qe([]), st = Qe(null);
9568
- function wl(e = vl) {
9569
- const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (w, O = []) => {
9264
+ function Bl(e = vl) {
9265
+ const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (B, O = []) => {
9570
9266
  if (ht.value) {
9571
9267
  console.warn("FeatureFlag is already initialized.");
9572
9268
  return;
9573
9269
  }
9574
9270
  try {
9575
- await e.init(w, O), Yt.value = await e.getFlags(), ht.value = !0, st.value = null;
9271
+ await e.init(B, O), Yt.value = await e.getFlags(), ht.value = !0, st.value = null;
9576
9272
  } catch (N) {
9577
9273
  console.error("Failed to initialize feature flags:", N), st.value = N;
9578
9274
  }
9579
- }, r = async (w) => {
9275
+ }, r = async (B) => {
9580
9276
  if (t())
9581
9277
  try {
9582
- await e.setUser(w), Yt.value = await e.getFlags(), st.value = null;
9278
+ await e.setUser(B), Yt.value = await e.getFlags(), st.value = null;
9583
9279
  } catch (O) {
9584
9280
  console.error("Failed to set user:", O), st.value = O;
9585
9281
  }
9586
- }, n = async (w) => r(`${or}-${w}`), a = (w, O, N = null) => {
9282
+ }, n = async (B) => r(`${or}-${B}`), a = (B, O, N = null) => {
9587
9283
  if (!t()) return N;
9588
9284
  try {
9589
- return e.getFlagValue(w, O) ?? N;
9590
- } catch (U) {
9591
- return console.error(`Error getting flag value for ${w}:`, U), N;
9285
+ return e.getFlagValue(B, O) ?? N;
9286
+ } catch (z) {
9287
+ return console.error(`Error getting flag value for ${B}:`, z), N;
9592
9288
  }
9593
- }, c = (w, O) => {
9289
+ }, c = (B, O) => {
9594
9290
  if (!t()) return O ?? null;
9595
9291
  try {
9596
- return e.getFlag(w) ?? O ?? null;
9292
+ return e.getFlag(B) ?? O ?? null;
9597
9293
  } catch (N) {
9598
- return console.error(`Error getting flag for ${w}:`, N), O ?? null;
9294
+ return console.error(`Error getting flag for ${B}:`, N), O ?? null;
9599
9295
  }
9600
- }, l = async (w, O, N = null, U) => {
9296
+ }, l = async (B, O, N = null, z) => {
9601
9297
  if (!t()) return N;
9602
9298
  try {
9603
- return await e.getUserFlagValue(w, O, N, U);
9299
+ return await e.getUserFlagValue(B, O, N, z);
9604
9300
  } catch ($) {
9605
9301
  return console.error(`Error getting user flag value for ${O}:`, $), N;
9606
9302
  }
9607
- }, y = async (w, O, N = null, U) => l(`${or}-${w}`, O, N, U), h = () => {
9303
+ }, y = async (B, O, N = null, z) => l(`${or}-${B}`, O, N, z), h = () => {
9608
9304
  try {
9609
9305
  e.reset();
9610
- } catch (w) {
9611
- console.error("Error resetting feature flags:", w);
9306
+ } catch (B) {
9307
+ console.error("Error resetting feature flags:", B);
9612
9308
  } finally {
9613
9309
  Yt.value = [], ht.value = !1, st.value = null;
9614
9310
  }
@@ -9627,18 +9323,18 @@ function wl(e = vl) {
9627
9323
  reset: h
9628
9324
  };
9629
9325
  }
9630
- var Bl = () => wl();
9326
+ var wl = () => Bl();
9631
9327
  const ql = /* @__PURE__ */ it({
9632
9328
  __name: "App",
9633
9329
  setup(e) {
9634
- const t = Ar(), { init: s } = Bl();
9330
+ const t = Ar(), { init: s } = wl();
9635
9331
  return ur(async () => {
9636
9332
  t.registerSidebarComponent(fl), await s({
9637
9333
  apiKey: t.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
9638
9334
  });
9639
9335
  }), (r, n) => {
9640
9336
  const a = Fs("RouterView");
9641
- return ct(), zt(a);
9337
+ return ct(), Ut(a);
9642
9338
  };
9643
9339
  }
9644
9340
  }), Il = () => {
@@ -9667,14 +9363,14 @@ export {
9667
9363
  Vl as G,
9668
9364
  ic as P,
9669
9365
  te as R,
9670
- Pl as S,
9671
- Sa as U,
9366
+ Gl as S,
9367
+ Za as U,
9672
9368
  sl as _,
9673
9369
  nl as a,
9674
- Gl as b,
9370
+ Pl as b,
9675
9371
  bt as c,
9676
9372
  yt as d,
9677
- Ua as e,
9373
+ za as e,
9678
9374
  El as f,
9679
9375
  cc as g,
9680
9376
  Ec as h,
@@ -9684,6 +9380,6 @@ export {
9684
9380
  Ol as m,
9685
9381
  o as n,
9686
9382
  Fl as r,
9687
- Bl as u,
9383
+ wl as u,
9688
9384
  v
9689
9385
  };