@feedmepos/mf-hrm-portal 2.3.0-dev.12 → 2.3.0-dev.13

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 (32) hide show
  1. package/dist/{ApprovalCodeList--NA0toYU.js → ApprovalCodeList-D3egZFML.js} +2 -2
  2. package/dist/{AuditLogList-B-NaB6OX.js → AuditLogList-BzbaEsSj.js} +3 -3
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-AEr2bDPY.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Do52KbKm.js} +2 -2
  4. package/dist/{EmployeeList-idO38m7y.js → EmployeeList-BiM8dRwZ.js} +4 -4
  5. package/dist/{GrantUserList-B1S7yDKu.js → GrantUserList-Dj2ms20E.js} +3 -3
  6. package/dist/{Main-mcCvBPvJ.js → Main-C2z7Jf9A.js} +5 -5
  7. package/dist/{Main-cdf9NV8P.js → Main-DklZWoKj.js} +2 -2
  8. package/dist/{Main-D5cWrqP3.js → Main-DmpwTPaI.js} +9 -9
  9. package/dist/{PermissionSetList-3_f6sJpK.js → PermissionSetList-C-qgCcRO.js} +5 -5
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cmin3rlY.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ggZB5zWW.js} +982 -982
  11. package/dist/{RoleList-ByQelhuG.js → RoleList-ohfin77B.js} +7 -7
  12. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-e4YOu59G.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-diuWysro.js} +1 -1
  13. package/dist/{ScheduleGeneralPage-TKWgkAoE.js → ScheduleGeneralPage-aCljFf21.js} +4 -4
  14. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-6bTAsmpp.js → ScheduleModal.vue_vue_type_script_setup_true_lang-x_-BYkcc.js} +3 -3
  15. package/dist/{SchedulePage-BpvgQYqL.js → SchedulePage-DdMHF6kX.js} +1234 -1226
  16. package/dist/{SchedulePositionPage-BjvKTHyY.js → SchedulePositionPage-CID91orD.js} +3 -3
  17. package/dist/{TeamMemberList-CJzF0wNK.js → TeamMemberList-DJIKL4dE.js} +6 -6
  18. package/dist/{TimesheetList-CJcSs_B1.js → TimesheetList-BPXWPNfT.js} +5 -5
  19. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-zttvxhi-.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DVcV0knM.js} +2 -2
  20. package/dist/{app-DLiYhsK2.js → app-Bz8568j8.js} +127 -97
  21. package/dist/app.js +1 -1
  22. package/dist/{dayjs.min-ar-wg1yi.js → dayjs.min-DhSRKSu4.js} +1 -1
  23. package/dist/{employee-CmUfaF0i.js → employee-BM44u8b-.js} +3 -3
  24. package/dist/{iteration-uWvyRKkX.js → iteration-BHDxs89d.js} +1 -1
  25. package/dist/{lodash-BzVEbSHJ.js → lodash-DgSYLwYD.js} +1 -1
  26. package/dist/{role-R2KDFlIY.js → role-BMJ7LEHN.js} +1 -1
  27. package/dist/{rule-C6ELRd3E.js → rule-CCo7_ckA.js} +2 -2
  28. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -2
  29. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -1
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/dist/{useReportPermissions-B2U347Ey.js → useReportPermissions-C_Cd__n1.js} +3 -3
  32. package/package.json +3 -3
@@ -304,7 +304,7 @@ var Q;
304
304
  (function(e) {
305
305
  e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
306
306
  })(Q || (Q = {}));
307
- class Ye {
307
+ class Ve {
308
308
  constructor(t, s, n, a) {
309
309
  this.parent = t, this.data = s, this._path = n, this._key = a;
310
310
  }
@@ -427,14 +427,14 @@ class q {
427
427
  return this._refinement((n, a) => t(n) ? !0 : (a.addIssue(typeof s == "function" ? s(n, a) : s), !1));
428
428
  }
429
429
  _refinement(t) {
430
- return new Se({
430
+ return new ke({
431
431
  schema: this,
432
432
  typeName: H.ZodEffects,
433
433
  effect: { type: "refinement", refinement: t }
434
434
  });
435
435
  }
436
436
  optional() {
437
- return Ge.create(this);
437
+ return Ye.create(this);
438
438
  }
439
439
  nullable() {
440
440
  return nt.create(this);
@@ -443,7 +443,7 @@ class q {
443
443
  return this.optional().nullable();
444
444
  }
445
445
  array() {
446
- return Ve.create(this);
446
+ return Fe.create(this);
447
447
  }
448
448
  promise() {
449
449
  return pt.create(this);
@@ -455,7 +455,7 @@ class q {
455
455
  return Pt.create(this, t);
456
456
  }
457
457
  transform(t) {
458
- return new Se({
458
+ return new ke({
459
459
  schema: this,
460
460
  typeName: H.ZodEffects,
461
461
  effect: { type: "transform", transform: t }
@@ -996,7 +996,7 @@ Zt.create = (e) => new Zt({
996
996
  typeName: H.ZodVoid,
997
997
  ...N(e)
998
998
  });
999
- class Ve extends q {
999
+ class Fe extends q {
1000
1000
  _parse(t) {
1001
1001
  const { ctx: s, status: n } = this._processInputParams(t), a = this._def;
1002
1002
  if (s.parsedType !== x.array)
@@ -1018,21 +1018,21 @@ class Ve extends q {
1018
1018
  inclusive: !0,
1019
1019
  message: a.maxLength.message
1020
1020
  }), n.dirty()), s.common.async)
1021
- return Promise.all(s.data.map((l, c) => a.type._parseAsync(new Ye(s, l, s.path, c)))).then((l) => le.mergeArray(n, l));
1022
- const r = s.data.map((l, c) => a.type._parseSync(new Ye(s, l, s.path, c)));
1021
+ return Promise.all(s.data.map((l, c) => a.type._parseAsync(new Ve(s, l, s.path, c)))).then((l) => le.mergeArray(n, l));
1022
+ const r = s.data.map((l, c) => a.type._parseSync(new Ve(s, l, s.path, c)));
1023
1023
  return le.mergeArray(n, r);
1024
1024
  }
1025
1025
  get element() {
1026
1026
  return this._def.type;
1027
1027
  }
1028
1028
  min(t, s) {
1029
- return new Ve({
1029
+ return new Fe({
1030
1030
  ...this._def,
1031
1031
  minLength: { value: t, message: Q.toString(s) }
1032
1032
  });
1033
1033
  }
1034
1034
  max(t, s) {
1035
- return new Ve({
1035
+ return new Fe({
1036
1036
  ...this._def,
1037
1037
  maxLength: { value: t, message: Q.toString(s) }
1038
1038
  });
@@ -1044,7 +1044,7 @@ class Ve extends q {
1044
1044
  return this.min(1, t);
1045
1045
  }
1046
1046
  }
1047
- Ve.create = (e, t) => new Ve({
1047
+ Fe.create = (e, t) => new Fe({
1048
1048
  type: e,
1049
1049
  minLength: null,
1050
1050
  maxLength: null,
@@ -1070,13 +1070,13 @@ function mt(e) {
1070
1070
  const t = {};
1071
1071
  for (const s in e.shape) {
1072
1072
  const n = e.shape[s];
1073
- t[s] = Ge.create(mt(n));
1073
+ t[s] = Ye.create(mt(n));
1074
1074
  }
1075
1075
  return new ee({
1076
1076
  ...e._def,
1077
1077
  shape: () => t
1078
1078
  });
1079
- } else return e instanceof Ve ? Ve.create(mt(e.element)) : e instanceof Ge ? Ge.create(mt(e.unwrap())) : e instanceof nt ? nt.create(mt(e.unwrap())) : e instanceof Fe ? Fe.create(e.items.map((t) => mt(t))) : e;
1079
+ } else return e instanceof Fe ? Fe.create(mt(e.element)) : e instanceof Ye ? Ye.create(mt(e.unwrap())) : e instanceof nt ? nt.create(mt(e.unwrap())) : e instanceof Se ? Se.create(e.items.map((t) => mt(t))) : e;
1080
1080
  }
1081
1081
  class ee extends q {
1082
1082
  constructor() {
@@ -1105,7 +1105,7 @@ class ee extends q {
1105
1105
  const w = r[y], V = a.data[y];
1106
1106
  h.push({
1107
1107
  key: { status: "valid", value: y },
1108
- value: w._parse(new Ye(a, V, a.path, y)),
1108
+ value: w._parse(new Ve(a, V, a.path, y)),
1109
1109
  alwaysSet: y in a.data
1110
1110
  });
1111
1111
  }
@@ -1130,7 +1130,7 @@ class ee extends q {
1130
1130
  h.push({
1131
1131
  key: { status: "valid", value: w },
1132
1132
  value: y._parse(
1133
- new Ye(a, V, a.path, w)
1133
+ new Ve(a, V, a.path, w)
1134
1134
  //, ctx.child(key), value, getParsedType(value)
1135
1135
  ),
1136
1136
  alwaysSet: w in a.data
@@ -1247,7 +1247,7 @@ class ee extends q {
1247
1247
  const t = {};
1248
1248
  for (const s in this.shape) {
1249
1249
  let a = this.shape[s];
1250
- for (; a instanceof Ge; )
1250
+ for (; a instanceof Ye; )
1251
1251
  a = a._def.innerType;
1252
1252
  t[s] = a;
1253
1253
  }
@@ -1479,7 +1479,7 @@ Pt.create = (e, t, s) => new Pt({
1479
1479
  typeName: H.ZodIntersection,
1480
1480
  ...N(s)
1481
1481
  });
1482
- class Fe extends q {
1482
+ class Se extends q {
1483
1483
  _parse(t) {
1484
1484
  const { status: s, ctx: n } = this._processInputParams(t);
1485
1485
  if (n.parsedType !== x.array)
@@ -1503,7 +1503,7 @@ class Fe extends q {
1503
1503
  }), s.dirty());
1504
1504
  const r = n.data.map((l, c) => {
1505
1505
  const h = this._def.items[c] || this._def.rest;
1506
- return h ? h._parse(new Ye(n, l, n.path, c)) : null;
1506
+ return h ? h._parse(new Ve(n, l, n.path, c)) : null;
1507
1507
  }).filter((l) => !!l);
1508
1508
  return n.common.async ? Promise.all(r).then((l) => le.mergeArray(s, l)) : le.mergeArray(s, r);
1509
1509
  }
@@ -1511,13 +1511,13 @@ class Fe extends q {
1511
1511
  return this._def.items;
1512
1512
  }
1513
1513
  rest(t) {
1514
- return new Fe({
1514
+ return new Se({
1515
1515
  ...this._def,
1516
1516
  rest: t
1517
1517
  });
1518
1518
  }
1519
1519
  }
1520
- Fe.create = (e, t) => new Fe({
1520
+ Se.create = (e, t) => new Se({
1521
1521
  items: e,
1522
1522
  typeName: H.ZodTuple,
1523
1523
  rest: null,
@@ -1541,8 +1541,8 @@ class Ot extends q {
1541
1541
  const a = [], r = this._def.keyType, l = this._def.valueType;
1542
1542
  for (const c in n.data)
1543
1543
  a.push({
1544
- key: r._parse(new Ye(n, c, n.path, c)),
1545
- value: l._parse(new Ye(n, n.data[c], n.path, c))
1544
+ key: r._parse(new Ve(n, c, n.path, c)),
1545
+ value: l._parse(new Ve(n, n.data[c], n.path, c))
1546
1546
  });
1547
1547
  return n.common.async ? le.mergeObjectAsync(s, a) : le.mergeObjectSync(s, a);
1548
1548
  }
@@ -1573,8 +1573,8 @@ class zt extends q {
1573
1573
  received: n.parsedType
1574
1574
  }), I;
1575
1575
  const a = this._def.keyType, r = this._def.valueType, l = [...n.data.entries()].map(([c, h], y) => ({
1576
- key: a._parse(new Ye(n, c, n.path, [y, "key"])),
1577
- value: r._parse(new Ye(n, h, n.path, [y, "value"]))
1576
+ key: a._parse(new Ve(n, c, n.path, [y, "key"])),
1577
+ value: r._parse(new Ve(n, h, n.path, [y, "value"]))
1578
1578
  }));
1579
1579
  if (n.common.async) {
1580
1580
  const c = /* @__PURE__ */ new Map();
@@ -1638,7 +1638,7 @@ class tt extends q {
1638
1638
  }
1639
1639
  return { status: s.value, value: y };
1640
1640
  }
1641
- const c = [...n.data.values()].map((h, y) => r._parse(new Ye(n, h, n.path, y)));
1641
+ const c = [...n.data.values()].map((h, y) => r._parse(new Ve(n, h, n.path, y)));
1642
1642
  return n.common.async ? Promise.all(c).then((h) => l(h)) : l(c);
1643
1643
  }
1644
1644
  min(t, s) {
@@ -1738,7 +1738,7 @@ class st extends q {
1738
1738
  args(...t) {
1739
1739
  return new st({
1740
1740
  ...this._def,
1741
- args: Fe.create(t).rest(Ze.create())
1741
+ args: Se.create(t).rest(Ze.create())
1742
1742
  });
1743
1743
  }
1744
1744
  returns(t) {
@@ -1755,7 +1755,7 @@ class st extends q {
1755
1755
  }
1756
1756
  }
1757
1757
  st.create = (e, t, s) => new st({
1758
- args: e ? e.rest(Ze.create()) : Fe.create([]).rest(Ze.create()),
1758
+ args: e ? e.rest(Ze.create()) : Se.create([]).rest(Ze.create()),
1759
1759
  returns: t || Ze.create(),
1760
1760
  typeName: H.ZodFunction,
1761
1761
  ...N(s)
@@ -1895,7 +1895,7 @@ pt.create = (e, t) => new pt({
1895
1895
  typeName: H.ZodPromise,
1896
1896
  ...N(t)
1897
1897
  });
1898
- class Se extends q {
1898
+ class ke extends q {
1899
1899
  innerType() {
1900
1900
  return this._def.schema;
1901
1901
  }
@@ -1958,19 +1958,19 @@ class Se extends q {
1958
1958
  U.assertNever(a);
1959
1959
  }
1960
1960
  }
1961
- Se.create = (e, t, s) => new Se({
1961
+ ke.create = (e, t, s) => new ke({
1962
1962
  schema: e,
1963
1963
  typeName: H.ZodEffects,
1964
1964
  effect: t,
1965
1965
  ...N(s)
1966
1966
  });
1967
- Se.createWithPreprocess = (e, t, s) => new Se({
1967
+ ke.createWithPreprocess = (e, t, s) => new ke({
1968
1968
  schema: t,
1969
1969
  effect: { type: "preprocess", transform: e },
1970
1970
  typeName: H.ZodEffects,
1971
1971
  ...N(s)
1972
1972
  });
1973
- class Ge extends q {
1973
+ class Ye extends q {
1974
1974
  _parse(t) {
1975
1975
  return this._getType(t) === x.undefined ? ce(void 0) : this._def.innerType._parse(t);
1976
1976
  }
@@ -1978,7 +1978,7 @@ class Ge extends q {
1978
1978
  return this._def.innerType;
1979
1979
  }
1980
1980
  }
1981
- Ge.create = (e, t) => new Ge({
1981
+ Ye.create = (e, t) => new Ye({
1982
1982
  innerType: e,
1983
1983
  typeName: H.ZodOptional,
1984
1984
  ...N(t)
@@ -2010,7 +2010,7 @@ class Qs extends q {
2010
2010
  return this._def.innerType;
2011
2011
  }
2012
2012
  }
2013
- Qs.create = (e, t) => new Ge({
2013
+ Qs.create = (e, t) => new Ye({
2014
2014
  innerType: e,
2015
2015
  typeName: H.ZodOptional,
2016
2016
  ...N(t)
@@ -2046,7 +2046,7 @@ var H;
2046
2046
  })(H || (H = {}));
2047
2047
  const br = (e, t = {
2048
2048
  message: `Input not instance of ${e.name}`
2049
- }) => Mn((s) => s instanceof e, t, !0), Dn = ze.create, xn = et.create, vr = Jt.create, wr = qt.create, jn = Nt.create, Br = At.create, Cr = Xt.create, Mr = Qt.create, Dr = gt.create, xr = Ze.create, jr = We.create, Er = Zt.create, Pr = Ve.create, Or = ee.create, Gr = ee.strictCreate, Yr = Et.create, Vr = es.create, Fr = Pt.create, Sr = Fe.create, kr = Ot.create, Rr = zt.create, Hr = tt.create, Ir = st.create, Tr = Wt.create, qr = Lt.create, Nr = ts.create, Xr = Kt.create, Qr = pt.create, rn = Se.create, Zr = Ge.create, Ur = nt.create, zr = Se.createWithPreprocess, Wr = () => Dn().optional(), Lr = () => xn().optional(), Kr = () => jn().optional();
2049
+ }) => Mn((s) => s instanceof e, t, !0), Dn = ze.create, xn = et.create, vr = Jt.create, wr = qt.create, jn = Nt.create, Br = At.create, Cr = Xt.create, Mr = Qt.create, Dr = gt.create, xr = Ze.create, jr = We.create, Er = Zt.create, Pr = Fe.create, Or = ee.create, Gr = ee.strictCreate, Yr = Et.create, Vr = es.create, Fr = Pt.create, Sr = Se.create, kr = Ot.create, Rr = zt.create, Hr = tt.create, Ir = st.create, Tr = Wt.create, qr = Lt.create, Nr = ts.create, Xr = Kt.create, Qr = pt.create, rn = ke.create, Zr = Ye.create, Ur = nt.create, zr = ke.createWithPreprocess, Wr = () => Dn().optional(), Lr = () => xn().optional(), Kr = () => jn().optional();
2050
2050
  var Ct = /* @__PURE__ */ Object.freeze({
2051
2051
  __proto__: null,
2052
2052
  getParsedType: Qe,
@@ -2075,7 +2075,7 @@ var Ct = /* @__PURE__ */ Object.freeze({
2075
2075
  ZodUnknown: Ze,
2076
2076
  ZodNever: We,
2077
2077
  ZodVoid: Zt,
2078
- ZodArray: Ve,
2078
+ ZodArray: Fe,
2079
2079
  get objectUtil() {
2080
2080
  return Ut;
2081
2081
  },
@@ -2083,7 +2083,7 @@ var Ct = /* @__PURE__ */ Object.freeze({
2083
2083
  ZodUnion: Et,
2084
2084
  ZodDiscriminatedUnion: es,
2085
2085
  ZodIntersection: Pt,
2086
- ZodTuple: Fe,
2086
+ ZodTuple: Se,
2087
2087
  ZodRecord: Ot,
2088
2088
  ZodMap: zt,
2089
2089
  ZodSet: tt,
@@ -2093,9 +2093,9 @@ var Ct = /* @__PURE__ */ Object.freeze({
2093
2093
  ZodEnum: ts,
2094
2094
  ZodNativeEnum: Kt,
2095
2095
  ZodPromise: pt,
2096
- ZodEffects: Se,
2097
- ZodTransformer: Se,
2098
- ZodOptional: Ge,
2096
+ ZodEffects: ke,
2097
+ ZodTransformer: ke,
2098
+ ZodOptional: Ye,
2099
2099
  ZodNullable: nt,
2100
2100
  ZodDefault: Qs,
2101
2101
  ZodNaN: Jt,
@@ -6782,7 +6782,7 @@ const On = {
6782
6782
  "th-TH": Hi,
6783
6783
  "zh-Hant": Ni
6784
6784
  };
6785
- var S = /* @__PURE__ */ ((e) => (e.Order = "order", e.Refund = "refund", e.Drawer = "drawer", e.Menu = "menu", e.Inventory = "inventory", e.Deposit = "deposit", e.Delivery = "delivery", e.CounterRecord = "counterRecord", e.Counter = "counter", e.RestaurantSetting = "restaurantSetting", e.Display = "display", e.Printer = "printer", e.Table = "table", e.Employee = "employee", e.System = "system", e.Tax = "tax", e.PaymentType = "paymentType", e.FaceId = "faceId", e.MallIntegration = "mallIntegration", e.Report = "report", e))(S || {}), Re = /* @__PURE__ */ ((e) => (e.Discount = "discount", e.Payment = "payment", e.ClaimDeposit = "claimDeposit", e.ChangePrice = "changePrice", e.Void = "void_", e.WaiveServiceCharge = "waiveServiceCharge", e.Resend = "resend", e.ChangePaymentType = "changePaymentType", e))(Re || {}), k = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(k || {}), re = /* @__PURE__ */ ((e) => (e.Closeup = "closeup", e.Counter = "counter", e.HourlySales = "hourlySales", e.DailySales = "dailySales", e.ProductSales = "productSales", e.SourceProductSales = "sourceProductSales", e.UserProductSales = "userProductSales", e.CategorySales = "categorySales", e.AddonSales = "addonSales", e.SlotSales = "slotSales", e.Drawer = "drawer", e.Discount = "discount", e.Refund = "refund", e.Void = "void_", e.Timesheet = "timesheet", e.CounterPayment = "counterPayment", e))(re || {});
6785
+ var S = /* @__PURE__ */ ((e) => (e.Order = "order", e.Refund = "refund", e.Drawer = "drawer", e.Menu = "menu", e.Inventory = "inventory", e.Deposit = "deposit", e.Delivery = "delivery", e.CounterRecord = "counterRecord", e.Counter = "counter", e.RestaurantSetting = "restaurantSetting", e.Display = "display", e.Printer = "printer", e.Table = "table", e.Employee = "employee", e.System = "system", e.Tax = "tax", e.PaymentType = "paymentType", e.FaceId = "faceId", e.MallIntegration = "mallIntegration", e.Report = "report", e))(S || {}), He = /* @__PURE__ */ ((e) => (e.Discount = "discount", e.Payment = "payment", e.ClaimDeposit = "claimDeposit", e.ChangePrice = "changePrice", e.Void = "void_", e.WaiveServiceCharge = "waiveServiceCharge", e.Resend = "resend", e.ChangePaymentType = "changePaymentType", e))(He || {}), k = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(k || {}), re = /* @__PURE__ */ ((e) => (e.Closeup = "closeup", e.Counter = "counter", e.HourlySales = "hourlySales", e.DailySales = "dailySales", e.ProductSales = "productSales", e.SourceProductSales = "sourceProductSales", e.UserProductSales = "userProductSales", e.CategorySales = "categorySales", e.AddonSales = "addonSales", e.SlotSales = "slotSales", e.Drawer = "drawer", e.Discount = "discount", e.Refund = "refund", e.Void = "void_", e.Timesheet = "timesheet", e.CounterPayment = "counterPayment", e))(re || {});
6786
6786
  const su = {
6787
6787
  // General
6788
6788
  restaurant: {
@@ -7456,7 +7456,7 @@ const su = {
7456
7456
  subject: S.Order,
7457
7457
  actions: [k.update],
7458
7458
  conditions: {
7459
- operation: Re.Discount,
7459
+ operation: He.Discount,
7460
7460
  adjustment: {
7461
7461
  $lte: 1
7462
7462
  }
@@ -7468,7 +7468,7 @@ const su = {
7468
7468
  label: "",
7469
7469
  subject: S.Order,
7470
7470
  actions: [k.update],
7471
- conditions: { operation: Re.ChangePrice },
7471
+ conditions: { operation: He.ChangePrice },
7472
7472
  inverted: !1,
7473
7473
  reason: null
7474
7474
  },
@@ -7480,7 +7480,7 @@ const su = {
7480
7480
  // 'void' is a reserved word in the POS Flutter/Dart client, so the identifier
7481
7481
  // POS actually evaluates against (and sends to the approval-code validate
7482
7482
  // endpoint) is already 'void_'. Keep in sync with approval-code-rules.ts.
7483
- conditions: { operation: Re.Void },
7483
+ conditions: { operation: He.Void },
7484
7484
  inverted: !1,
7485
7485
  reason: null
7486
7486
  },
@@ -7488,7 +7488,7 @@ const su = {
7488
7488
  label: "",
7489
7489
  subject: S.Order,
7490
7490
  actions: [k.update],
7491
- conditions: { operation: Re.WaiveServiceCharge },
7491
+ conditions: { operation: He.WaiveServiceCharge },
7492
7492
  inverted: !1,
7493
7493
  reason: null
7494
7494
  },
@@ -7496,7 +7496,7 @@ const su = {
7496
7496
  label: "",
7497
7497
  subject: S.Order,
7498
7498
  actions: [k.update],
7499
- conditions: { operation: Re.Payment },
7499
+ conditions: { operation: He.Payment },
7500
7500
  inverted: !1,
7501
7501
  reason: null
7502
7502
  },
@@ -7504,7 +7504,7 @@ const su = {
7504
7504
  label: "",
7505
7505
  subject: S.Order,
7506
7506
  actions: [k.update],
7507
- conditions: { operation: Re.ClaimDeposit },
7507
+ conditions: { operation: He.ClaimDeposit },
7508
7508
  inverted: !1,
7509
7509
  reason: null
7510
7510
  },
@@ -7512,7 +7512,7 @@ const su = {
7512
7512
  label: "",
7513
7513
  subject: S.Order,
7514
7514
  actions: [k.update],
7515
- conditions: { operation: Re.Resend },
7515
+ conditions: { operation: He.Resend },
7516
7516
  inverted: !1,
7517
7517
  reason: null
7518
7518
  },
@@ -7520,7 +7520,7 @@ const su = {
7520
7520
  label: "",
7521
7521
  subject: S.Order,
7522
7522
  actions: [k.update],
7523
- conditions: { operation: Re.ChangePaymentType },
7523
+ conditions: { operation: He.ChangePaymentType },
7524
7524
  inverted: !1,
7525
7525
  reason: null
7526
7526
  },
@@ -8719,7 +8719,7 @@ const Cl = {
8719
8719
  permissions: Bl
8720
8720
  }
8721
8721
  };
8722
- var He = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(He || {});
8722
+ var xe = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(xe || {});
8723
8723
  const Ml = {
8724
8724
  /**
8725
8725
  * Triggered by: hrm_teamMember:manage (portal toggle)
@@ -8732,7 +8732,7 @@ const Ml = {
8732
8732
  permissions: [
8733
8733
  {
8734
8734
  label: "Portal Users",
8735
- subject: He.hrm_portalUsers,
8735
+ subject: xe.hrm_portalUsers,
8736
8736
  actions: [o.manage]
8737
8737
  },
8738
8738
  {
@@ -8742,12 +8742,12 @@ const Ml = {
8742
8742
  },
8743
8743
  {
8744
8744
  label: "Pos Role",
8745
- subject: He.hrm_posRole,
8745
+ subject: xe.hrm_posRole,
8746
8746
  actions: [o.read]
8747
8747
  },
8748
8748
  {
8749
8749
  label: "Restaurant resource",
8750
- subject: He.hrm_restaurant,
8750
+ subject: xe.hrm_restaurant,
8751
8751
  actions: [o.read]
8752
8752
  }
8753
8753
  ]
@@ -8762,17 +8762,17 @@ const Ml = {
8762
8762
  permissions: [
8763
8763
  {
8764
8764
  label: "Portal Users",
8765
- subject: He.hrm_portalUsers,
8765
+ subject: xe.hrm_portalUsers,
8766
8766
  actions: [o.read]
8767
8767
  },
8768
8768
  {
8769
8769
  label: "Restaurant resource",
8770
- subject: He.hrm_restaurant,
8770
+ subject: xe.hrm_restaurant,
8771
8771
  actions: [o.read]
8772
8772
  },
8773
8773
  {
8774
8774
  label: "Pos Role",
8775
- subject: He.hrm_posRole,
8775
+ subject: xe.hrm_posRole,
8776
8776
  actions: [o.manage]
8777
8777
  }
8778
8778
  ]
@@ -8789,7 +8789,7 @@ const Ml = {
8789
8789
  permissions: [
8790
8790
  {
8791
8791
  label: "Portal Users",
8792
- subject: He.hrm_portalUsers,
8792
+ subject: xe.hrm_portalUsers,
8793
8793
  actions: [o.read]
8794
8794
  }
8795
8795
  ]
@@ -8804,7 +8804,37 @@ const Ml = {
8804
8804
  permissions: [
8805
8805
  {
8806
8806
  label: "Restaurant resource",
8807
- subject: He.hrm_restaurant,
8807
+ subject: xe.hrm_restaurant,
8808
+ actions: [o.read]
8809
+ }
8810
+ ]
8811
+ },
8812
+ /**
8813
+ * Triggered by: hrm_scheduling:manage (portal toggle)
8814
+ * Injects: restaurant read + pos role read + employee read
8815
+ * The schedule page loads the outlet picker from hr-restaurants and the POS role list for the
8816
+ * add-employee and POS access forms. The board's roster and the business employee list are read
8817
+ * from /pos-users/paged, which is gated by hrm_employee read. Read (not manage) is injected so
8818
+ * hrm_employee's own system set is not triggered. Creating/updating employees from the schedule
8819
+ * still requires the real Employee permission. Schedule endpoints themselves are guarded by hrm_scheduling.
8820
+ */
8821
+ [`set_${d.hrm_scheduling}`]: {
8822
+ key: "sys:scheduling_access",
8823
+ name: "Scheduling Access",
8824
+ permissions: [
8825
+ {
8826
+ label: "Restaurant resource",
8827
+ subject: xe.hrm_restaurant,
8828
+ actions: [o.read]
8829
+ },
8830
+ {
8831
+ label: "Pos Role",
8832
+ subject: xe.hrm_posRole,
8833
+ actions: [o.read]
8834
+ },
8835
+ {
8836
+ label: "Employee",
8837
+ subject: d.hrm_employee,
8808
8838
  actions: [o.read]
8809
8839
  }
8810
8840
  ]
@@ -9833,16 +9863,16 @@ const _e = (e) => ({
9833
9863
  }
9834
9864
  ]
9835
9865
  }
9836
- }), jc = ot(pe(() => import("./Main-D5cWrqP3.js"))), Ec = ot(pe(() => import("./Main-mcCvBPvJ.js"))), Pc = ot(
9837
- pe(() => import("./AuditLogList-B-NaB6OX.js"))
9838
- ), Oc = ot(pe(() => import("./Main-cdf9NV8P.js"))), Gc = pe(() => import("./ApprovalCodeList--NA0toYU.js")), Yc = pe(() => import("./GrantUserList-B1S7yDKu.js")), Vc = pe(() => import("./EmployeeList-idO38m7y.js")), Fc = pe(() => import("./RoleList-ByQelhuG.js")), Sc = pe(() => import("./TimesheetList-CJcSs_B1.js")), kc = pe(() => import("./TeamMemberList-CJzF0wNK.js")), Rc = pe(
9839
- () => import("./PermissionSetList-3_f6sJpK.js")
9866
+ }), jc = ot(pe(() => import("./Main-DmpwTPaI.js"))), Ec = ot(pe(() => import("./Main-C2z7Jf9A.js"))), Pc = ot(
9867
+ pe(() => import("./AuditLogList-BzbaEsSj.js"))
9868
+ ), Oc = ot(pe(() => import("./Main-DklZWoKj.js"))), Gc = pe(() => import("./ApprovalCodeList-D3egZFML.js")), Yc = pe(() => import("./GrantUserList-Dj2ms20E.js")), Vc = pe(() => import("./EmployeeList-BiM8dRwZ.js")), Fc = pe(() => import("./RoleList-ohfin77B.js")), Sc = pe(() => import("./TimesheetList-BPXWPNfT.js")), kc = pe(() => import("./TeamMemberList-DJIKL4dE.js")), Rc = pe(
9869
+ () => import("./PermissionSetList-C-qgCcRO.js")
9840
9870
  ), Hc = Ws(
9841
- ot(pe(() => import("./SchedulePage-BpvgQYqL.js")))
9871
+ ot(pe(() => import("./SchedulePage-DdMHF6kX.js")))
9842
9872
  ), Ic = Ws(
9843
- ot(pe(() => import("./SchedulePositionPage-BjvKTHyY.js")))
9873
+ ot(pe(() => import("./SchedulePositionPage-CID91orD.js")))
9844
9874
  ), Tc = Ws(
9845
- ot(pe(() => import("./ScheduleGeneralPage-TKWgkAoE.js")))
9875
+ ot(pe(() => import("./ScheduleGeneralPage-aCljFf21.js")))
9846
9876
  ), ou = [
9847
9877
  {
9848
9878
  path: "/",
@@ -10243,16 +10273,16 @@ var Hs = { exports: {} };
10243
10273
  var C = "".concat(i.getContext().identity), G = function(F) {
10244
10274
  var X, j, L, de;
10245
10275
  if (F && C === "".concat(i.getContext().identity)) {
10246
- var xe = F.flags, ye = F.traits, Me = F.identifier;
10276
+ var je = F.flags, ye = F.traits, Me = F.identifier;
10247
10277
  i.isLoading = !1;
10248
10278
  var be = {}, ve = {};
10249
- ye = ye || [], (xe = xe || []).forEach(function(K) {
10279
+ ye = ye || [], (je = je || []).forEach(function(K) {
10250
10280
  be[K.feature.name.toLowerCase().replace(/ /g, "_")] = { id: K.feature.id, enabled: K.enabled, value: K.feature_state_value };
10251
10281
  }), ye.forEach(function(K) {
10252
10282
  ve[K.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: K.transient, value: K.trait_value };
10253
10283
  }), i.oldFlags = a({}, i.flags);
10254
- var je = y(i.oldFlags, be), bt = y((X = i.evaluationContext.identity) === null || X === void 0 ? void 0 : X.traits, ve);
10255
- if ((Me || Object.keys(ve).length) && (i.evaluationContext.identity = a(a({}, i.evaluationContext.identity), { traits: ve }), Me && (i.evaluationContext.identity.identifier = Me)), i.flags = be, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: je, traitsChanged: bt }, i._loadedState(null, w.SERVER)), i.datadogRum) try {
10284
+ var Ee = y(i.oldFlags, be), bt = y((X = i.evaluationContext.identity) === null || X === void 0 ? void 0 : X.traits, ve);
10285
+ if ((Me || Object.keys(ve).length) && (i.evaluationContext.identity = a(a({}, i.evaluationContext.identity), { traits: ve }), Me && (i.evaluationContext.identity.identifier = Me)), i.flags = be, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: Ee, traitsChanged: bt }, i._loadedState(null, w.SERVER)), i.datadogRum) try {
10256
10286
  if (i.datadogRum.trackTraits) {
10257
10287
  var vt = {};
10258
10288
  Object.keys(((j = i.evaluationContext.identity) === null || j === void 0 ? void 0 : j.traits) || {}).map(function(K) {
@@ -10347,9 +10377,9 @@ var Hs = { exports: {} };
10347
10377
  i.evaluationContext.environment && (X.headers["X-Environment-Key"] = i.evaluationContext.environment.apiKey), m && m !== "GET" && (X.headers["Content-Type"] = "application/json; charset=utf-8"), F && Object.assign(X.headers, F), V || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
10348
10378
  var j = "".concat((C = i.evaluationContext.identity) === null || C === void 0 ? void 0 : C.identifier);
10349
10379
  return V(g, X).then(function(L) {
10350
- var de, xe, ye = "".concat((de = i.evaluationContext.identity) === null || de === void 0 ? void 0 : de.identifier);
10380
+ var de, je, ye = "".concat((de = i.evaluationContext.identity) === null || de === void 0 ? void 0 : de.identifier);
10351
10381
  if (j === ye) {
10352
- var Me = (xe = L.headers) === null || xe === void 0 ? void 0 : xe.get("x-flagsmith-document-updated-at");
10382
+ var Me = (je = L.headers) === null || je === void 0 ? void 0 : je.get("x-flagsmith-document-updated-at");
10353
10383
  if (Me) try {
10354
10384
  var be = parseFloat(Me);
10355
10385
  if (isNaN(be)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
@@ -10358,12 +10388,12 @@ var Hs = { exports: {} };
10358
10388
  i.log(ve, "Failed to parse x-flagsmith-document-updated-at", Me);
10359
10389
  }
10360
10390
  return i.log("Fetch response: " + L.status + " " + (m || "GET") + 0 + g), L.text().then(function(ve) {
10361
- var je = ve;
10391
+ var Ee = ve;
10362
10392
  try {
10363
- je = JSON.parse(ve);
10393
+ Ee = JSON.parse(ve);
10364
10394
  } catch {
10365
10395
  }
10366
- return !je && L.status && (je = "API Response: ".concat(L.status)), L.status && L.status >= 200 && L.status < 300 ? je : Promise.reject(new Error(je));
10396
+ return !Ee && L.status && (Ee = "API Response: ".concat(L.status)), L.status && L.status >= 200 && L.status < 300 ? Ee : Promise.reject(new Error(Ee));
10367
10397
  });
10368
10398
  }
10369
10399
  i.log("Received response with identity mismatch, ignoring response. Requested: ".concat(j, ", Current: ").concat(ye));
@@ -10382,33 +10412,33 @@ var Hs = { exports: {} };
10382
10412
  return f.prototype.init = function(u) {
10383
10413
  var i, g, m;
10384
10414
  return r(this, void 0, void 0, function() {
10385
- var b, C, G, F, X, j, L, de, xe, ye, Me, be, ve, je, bt, vt, it, me, K, ns, wt, Ls, lt, as, Ks, Js, rs, _s, os, Bt, ct, $s, Ae = this;
10415
+ var b, C, G, F, X, j, L, de, je, ye, Me, be, ve, Ee, bt, vt, it, me, K, ns, wt, Ls, lt, as, Ks, Js, rs, _s, os, Bt, ct, $s, Ae = this;
10386
10416
  return l(this, function(De) {
10387
10417
  switch (De.label) {
10388
10418
  case 0:
10389
10419
  b = oe(u.evaluationContext || this.evaluationContext), De.label = 1;
10390
10420
  case 1:
10391
- if (De.trys.push([1, 13, , 14]), C = u.environmentID, G = u.api, F = G === void 0 ? Le : G, X = u.headers, j = u.onChange, L = u.cacheFlags, de = u.datadogRum, xe = u.onError, ye = u.defaultFlags, Me = u.fetch, be = u.preventFetch, ve = u.enableLogs, je = u.enableDynatrace, bt = u.enableAnalytics, vt = u.realtime, it = u.eventSourceUrl, me = it === void 0 ? "https://realtime.flagsmith.com/" : it, K = u.AsyncStorage, ns = u.identity, wt = u.traits, Ls = u.state, lt = u.cacheOptions, as = u.angularHttpClient, Ks = u._trigger, Js = u._triggerLoadingState, b.environment = C ? { apiKey: C } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
10421
+ if (De.trys.push([1, 13, , 14]), C = u.environmentID, G = u.api, F = G === void 0 ? Le : G, X = u.headers, j = u.onChange, L = u.cacheFlags, de = u.datadogRum, je = u.onError, ye = u.defaultFlags, Me = u.fetch, be = u.preventFetch, ve = u.enableLogs, Ee = u.enableDynatrace, bt = u.enableAnalytics, vt = u.realtime, it = u.eventSourceUrl, me = it === void 0 ? "https://realtime.flagsmith.com/" : it, K = u.AsyncStorage, ns = u.identity, wt = u.traits, Ls = u.state, lt = u.cacheOptions, as = u.angularHttpClient, Ks = u._trigger, Js = u._triggerLoadingState, b.environment = C ? { apiKey: C } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
10392
10422
  if (b.identity = ns || wt ? { identifier: ns, traits: wt ? Object.fromEntries(Object.entries(wt).map(function(we) {
10393
10423
  return [we[0], { value: we[1] }];
10394
10424
  })) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers = X, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = j, rs = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Ks || this._trigger, this._triggerLoadingState = Js || this._triggerLoadingState, this.onError = function(we) {
10395
- Ae.setLoadingState(a(a({}, Ae.loadingState), { isFetching: !1, isLoading: !1, error: we })), xe == null || xe(we);
10396
- }, this.enableLogs = ve || !1, this.cacheOptions = lt ? { skipAPI: !!lt.skipAPI, ttl: lt.ttl || 0, storageKey: lt.storageKey, loadStale: !!lt.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), Me && (V = Me), this.enableAnalytics = bt || !1, this.flags = Object.assign({}, ye) || {}, this.datadogRum = de || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ie !== void 0 && !!L, Ce = "FLAGSMITH_EVENT_" + b.environment.apiKey, K && (ie = K), vt && typeof window < "u" && this.setupRealtime(me, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = a(a({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Ls), this.log("Initialising with properties", u, this), je && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), as && (V = /* @__PURE__ */ function(we) {
10397
- return function(Ee, Pe) {
10398
- var Te = Pe.headers, _ = Pe.method, ut = Pe.body;
10425
+ Ae.setLoadingState(a(a({}, Ae.loadingState), { isFetching: !1, isLoading: !1, error: we })), je == null || je(we);
10426
+ }, this.enableLogs = ve || !1, this.cacheOptions = lt ? { skipAPI: !!lt.skipAPI, ttl: lt.ttl || 0, storageKey: lt.storageKey, loadStale: !!lt.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), Me && (V = Me), this.enableAnalytics = bt || !1, this.flags = Object.assign({}, ye) || {}, this.datadogRum = de || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ie !== void 0 && !!L, Ce = "FLAGSMITH_EVENT_" + b.environment.apiKey, K && (ie = K), vt && typeof window < "u" && this.setupRealtime(me, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = a(a({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Ls), this.log("Initialising with properties", u, this), Ee && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), as && (V = /* @__PURE__ */ function(we) {
10427
+ return function(Pe, Oe) {
10428
+ var Te = Oe.headers, _ = Oe.method, ut = Oe.body;
10399
10429
  return new Promise(function(Ke) {
10400
10430
  switch (_) {
10401
10431
  case "GET":
10402
- return we.get(Ee, { headers: Te }).subscribe(function(ke) {
10432
+ return we.get(Pe, { headers: Te }).subscribe(function(Re) {
10403
10433
  Ke({ ok: !0, text: function() {
10404
- return Promise.resolve(ke);
10434
+ return Promise.resolve(Re);
10405
10435
  } });
10406
10436
  });
10407
10437
  case "POST":
10408
10438
  case "PUT":
10409
- return we.post(Ee, ut, { headers: Te }).subscribe(function(ke) {
10439
+ return we.post(Pe, ut, { headers: Te }).subscribe(function(Re) {
10410
10440
  Ke({ ok: !0, text: function() {
10411
- return Promise.resolve(ke);
10441
+ return Promise.resolve(Re);
10412
10442
  } });
10413
10443
  });
10414
10444
  }
@@ -10421,26 +10451,26 @@ var Hs = { exports: {} };
10421
10451
  Ae.evaluationEvent = {};
10422
10452
  }
10423
10453
  Ae.analyticsInterval = setInterval(Ae.analyticsFlags, Ae.ticks);
10424
- }), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), ie && this.canUseStorage && ie.getItem(Ce, function(we, Ee) {
10425
- if (Ee && Ae.evaluationContext.environment) {
10426
- var Pe = JSON.parse(Ee);
10427
- if (Pe[Ae.evaluationContext.environment.apiKey]) {
10454
+ }), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), ie && this.canUseStorage && ie.getItem(Ce, function(we, Pe) {
10455
+ if (Pe && Ae.evaluationContext.environment) {
10456
+ var Oe = JSON.parse(Pe);
10457
+ if (Oe[Ae.evaluationContext.environment.apiKey]) {
10428
10458
  var Te = Ae.getState();
10429
- Ae.log("Retrieved events from cache", Ee), Ae.setState(a(a({}, Te), { evaluationEvent: Pe[Ae.evaluationContext.environment.apiKey] }));
10459
+ Ae.log("Retrieved events from cache", Pe), Ae.setState(a(a({}, Te), { evaluationEvent: Oe[Ae.evaluationContext.environment.apiKey] }));
10430
10460
  }
10431
10461
  }
10432
10462
  })), !L) return [3, 9];
10433
10463
  if (!ie || !this.canUseStorage) return [3, 8];
10434
- _s = function(we, Ee) {
10464
+ _s = function(we, Pe) {
10435
10465
  return r(Ae, void 0, void 0, function() {
10436
- var Pe, Te, _, ut, Ke, ke, is, en, ls, cs, us, ds, ms, As, gs, ps, hs, fs, ys, bs, vs, ws, Bs, Cs, tn = this;
10466
+ var Oe, Te, _, ut, Ke, Re, is, en, ls, cs, us, ds, ms, As, gs, ps, hs, fs, ys, bs, vs, ws, Bs, Cs, tn = this;
10437
10467
  return l(this, function(qe) {
10438
10468
  switch (qe.label) {
10439
10469
  case 0:
10440
- if (!Ee) return [3, 7];
10441
- Pe = null, Te = null, qe.label = 1;
10470
+ if (!Pe) return [3, 7];
10471
+ Oe = null, Te = null, qe.label = 1;
10442
10472
  case 1:
10443
- return qe.trys.push([1, 5, , 6]), _ = JSON.parse(Ee), ut = !1, Ke = !1, _ && _.api === this.api && ((cs = (ls = _.evaluationContext) === null || ls === void 0 ? void 0 : ls.environment) === null || cs === void 0 ? void 0 : cs.apiKey) === ((us = this.evaluationContext.environment) === null || us === void 0 ? void 0 : us.apiKey) && (ke = !0, this.evaluationContext.identity && ((ms = (ds = _.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity) === null || ms === void 0 ? void 0 : ms.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((gs = (As = _.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || gs === void 0 ? void 0 : gs.identifier) + " to " + this.evaluationContext.identity.identifier), ke = !1), this.cacheOptions.ttl && (!_.ts || (/* @__PURE__ */ new Date()).valueOf() - _.ts > this.cacheOptions.ttl) && (_.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), ke = !1) : _.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), Ke = !0, ke = !0)), ke && (ut = !0, Te = y((ps = this.evaluationContext.identity) === null || ps === void 0 ? void 0 : ps.traits, (fs = (hs = _.evaluationContext) === null || hs === void 0 ? void 0 : hs.identity) === null || fs === void 0 ? void 0 : fs.traits), Pe = y(this.flags, _.flags), this.setState(a(a({}, _), { evaluationContext: oe(a(a({}, _.evaluationContext), { identity: !((ys = _.evaluationContext) === null || ys === void 0) && ys.identity ? a(a({}, (bs = _.evaluationContext) === null || bs === void 0 ? void 0 : bs.identity), { traits: a(a({}, ((ws = (vs = _.evaluationContext) === null || vs === void 0 ? void 0 : vs.identity) === null || ws === void 0 ? void 0 : ws.traits) || {}), wt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", _))), ut ? (is = !be && (!this.cacheOptions.skipAPI || Ke), this._onChange(null, { isFromServer: !1, flagsChanged: Pe, traitsChanged: Te }, this._loadedState(null, w.CACHE, is)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && ut && !Ke && this.log("Skipping API, using cache"), is && this.getFlags().catch(function(Wa) {
10473
+ return qe.trys.push([1, 5, , 6]), _ = JSON.parse(Pe), ut = !1, Ke = !1, _ && _.api === this.api && ((cs = (ls = _.evaluationContext) === null || ls === void 0 ? void 0 : ls.environment) === null || cs === void 0 ? void 0 : cs.apiKey) === ((us = this.evaluationContext.environment) === null || us === void 0 ? void 0 : us.apiKey) && (Re = !0, this.evaluationContext.identity && ((ms = (ds = _.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity) === null || ms === void 0 ? void 0 : ms.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((gs = (As = _.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || gs === void 0 ? void 0 : gs.identifier) + " to " + this.evaluationContext.identity.identifier), Re = !1), this.cacheOptions.ttl && (!_.ts || (/* @__PURE__ */ new Date()).valueOf() - _.ts > this.cacheOptions.ttl) && (_.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), Re = !1) : _.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + _.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - _.ts) + "ms"), Ke = !0, Re = !0)), Re && (ut = !0, Te = y((ps = this.evaluationContext.identity) === null || ps === void 0 ? void 0 : ps.traits, (fs = (hs = _.evaluationContext) === null || hs === void 0 ? void 0 : hs.identity) === null || fs === void 0 ? void 0 : fs.traits), Oe = y(this.flags, _.flags), this.setState(a(a({}, _), { evaluationContext: oe(a(a({}, _.evaluationContext), { identity: !((ys = _.evaluationContext) === null || ys === void 0) && ys.identity ? a(a({}, (bs = _.evaluationContext) === null || bs === void 0 ? void 0 : bs.identity), { traits: a(a({}, ((ws = (vs = _.evaluationContext) === null || vs === void 0 ? void 0 : vs.identity) === null || ws === void 0 ? void 0 : ws.traits) || {}), wt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", _))), ut ? (is = !be && (!this.cacheOptions.skipAPI || Ke), this._onChange(null, { isFromServer: !1, flagsChanged: Oe, traitsChanged: Te }, this._loadedState(null, w.CACHE, is)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && ut && !Ke && this.log("Skipping API, using cache"), is && this.getFlags().catch(function(Wa) {
10444
10474
  var Ms;
10445
10475
  (Ms = tn.onError) === null || Ms === void 0 || Ms.call(tn, Wa);
10446
10476
  }), [3, 4]) : [3, 2];
@@ -10712,13 +10742,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
10712
10742
  })(Hs, Hs.exports);
10713
10743
  var Nc = Hs.exports, Xc = {
10714
10744
  NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first."
10715
- }, pn = "business", Oe, Qc = (Oe = class {
10745
+ }, pn = "business", Ge, Qc = (Ge = class {
10716
10746
  constructor() {
10717
10747
  Yt(this, "flagsmithClient", null);
10718
10748
  Yt(this, "userContext", null);
10719
10749
  }
10720
10750
  static getInstance() {
10721
- return Oe.instance || (Oe.instance = new Oe()), Oe.instance;
10751
+ return Ge.instance || (Ge.instance = new Ge()), Ge.instance;
10722
10752
  }
10723
10753
  ensureInitialized() {
10724
10754
  if (!this.flagsmithClient)
@@ -10814,7 +10844,7 @@ var Nc = Hs.exports, Xc = {
10814
10844
  reset() {
10815
10845
  this.flagsmithClient = null, this.userContext = null;
10816
10846
  }
10817
- }, Yt(Oe, "instance"), Oe), Zc = Qc.getInstance(), Mt = Ue(!1), Ft = Ue([]), dt = Ue(null);
10847
+ }, Yt(Ge, "instance"), Ge), Zc = Qc.getInstance(), Mt = Ue(!1), Ft = Ue([]), dt = Ue(null);
10818
10848
  function Uc(e = Zc) {
10819
10849
  const t = () => Mt.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (w, V = []) => {
10820
10850
  if (Mt.value) {
@@ -10892,7 +10922,7 @@ const iu = /* @__PURE__ */ at({
10892
10922
  };
10893
10923
  }
10894
10924
  });
10895
- var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.12", mode: "fmmf" };
10925
+ var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.13", mode: "fmmf" };
10896
10926
  console.log(
10897
10927
  `%c${xs.name}%c v${xs.version} %c${xs.mode}`,
10898
10928
  "background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",