@feedmepos/mf-hrm-portal 2.1.1-dev.7 → 2.2.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{ApprovalCodeList-CQApO-t4.js → ApprovalCodeList-Cwy-Rn90.js} +2 -2
  2. package/dist/{AuditLogList-DH2ZvAVE.js → AuditLogList-CfDEZ6Z-.js} +3 -3
  3. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-B5OgqCR0.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BTDBRB1-.js} +2 -2
  4. package/dist/{EmployeeList-B1Q4RH2r.js → EmployeeList-DJrCBYvi.js} +6 -4
  5. package/dist/{GrantUserList-DURXYzRs.js → GrantUserList-UgQBjh54.js} +3 -3
  6. package/dist/{Main-B06aoNy1.js → Main-B5YknOhi.js} +9 -9
  7. package/dist/{Main-BC7IPhbz.js → Main-BnWK_GkW.js} +5 -5
  8. package/dist/{Main-BRrcfqXc.js → Main-DQXiP6Io.js} +2 -2
  9. package/dist/{PermissionSetList-CiVFvnlW.js → PermissionSetList-CfPZPmfV.js} +5 -5
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BAmLIGEn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CPk4KJUW.js} +985 -985
  11. package/dist/{RoleList-BVFWURdS.js → RoleList-CHnu2j25.js} +7 -7
  12. package/dist/{TeamMemberList-DlurP2WR.js → TeamMemberList-DprMQ_8g.js} +6 -6
  13. package/dist/{TimesheetList-C4G2Va4m.js → TimesheetList-D5G1dJfp.js} +5 -5
  14. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-BJujYg6e.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DFfYiBBf.js} +2 -2
  15. package/dist/{app-CGL_lSgW.js → app-BhF0Kk5X.js} +111 -107
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-BXDtus8O.js → dayjs.min-Do1gXFxN.js} +1 -1
  18. package/dist/{employee-CVZUQI_y.js → employee-BRCSs9t_.js} +3 -3
  19. package/dist/{iteration-BXcl549C.js → iteration-C2XLVxL1.js} +1 -1
  20. package/dist/{lodash-CmrNrQXn.js → lodash-eudyY8-f.js} +1 -1
  21. package/dist/{role-Ct8MPQeS.js → role-CSL6Qv8l.js} +1 -1
  22. package/dist/{rule-M8SC_Jhl.js → rule-D3DPWTm1.js} +20 -12
  23. package/dist/src/views/hr/locales/index.d.ts +4 -0
  24. package/dist/tsconfig.app.tsbuildinfo +1 -1
  25. package/dist/{useReportPermissions-COONOIe1.js → useReportPermissions-CSdIiY_7.js} +3 -3
  26. package/package.json +2 -2
@@ -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 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";
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 Ze, toDisplayString as Ws, watch as Nn, nextTick as Sn, onMounted as ur, onBeforeUnmount as Zn, 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 Z;
24
+ var S;
25
25
  (function(e) {
26
26
  function t(n) {
27
27
  }
@@ -55,8 +55,8 @@ var Z;
55
55
  return n.map((c) => typeof c == "string" ? `'${c}'` : c).join(a);
56
56
  }
57
57
  e.joinValues = r;
58
- })(Z || (Z = {}));
59
- const x = Z.arrayToEnum([
58
+ })(S || (S = {}));
59
+ const x = S.arrayToEnum([
60
60
  "string",
61
61
  "nan",
62
62
  "number",
@@ -96,7 +96,7 @@ const x = Z.arrayToEnum([
96
96
  default:
97
97
  return x.unknown;
98
98
  }
99
- }, C = Z.arrayToEnum([
99
+ }, C = S.arrayToEnum([
100
100
  "invalid_type",
101
101
  "invalid_literal",
102
102
  "custom",
@@ -179,16 +179,16 @@ const Bt = (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: ${Z.joinValues(e.keys, ", ")}`;
182
+ s = `Unrecognized key(s) in object: ${S.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 ${Z.joinValues(e.options)}`;
188
+ s = `Invalid discriminator value. Expected ${S.joinValues(e.options)}`;
189
189
  break;
190
190
  case C.invalid_enum_value:
191
- s = `Invalid enum value. Expected ${Z.joinValues(e.options)}, received '${e.received}'`;
191
+ s = `Invalid enum value. Expected ${S.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 Bt = (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}"` : Z.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}"` : S.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,7 +218,7 @@ const Bt = (e, t) => {
218
218
  s = `Number must be a multiple of ${e.multipleOf}`;
219
219
  break;
220
220
  default:
221
- s = t.defaultError, Z.assertNever(e);
221
+ s = t.defaultError, S.assertNever(e);
222
222
  }
223
223
  return { message: s };
224
224
  };
@@ -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()) : Z.assertNever(a);
570
+ }), r.dirty()) : S.assertNever(a);
571
571
  return { status: r.value, value: t.data };
572
572
  }
573
573
  _addCheck(t) {
@@ -676,7 +676,7 @@ class Ue 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" ? Z.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), Y(r, {
679
+ a.kind === "int" ? S.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 Ue extends X {
697
697
  code: C.not_multiple_of,
698
698
  multipleOf: a.value,
699
699
  message: a.message
700
- }), n.dirty()) : Z.assertNever(a);
700
+ }), n.dirty()) : S.assertNever(a);
701
701
  return { status: n.value, value: t.data };
702
702
  }
703
703
  gte(t, s) {
@@ -863,7 +863,7 @@ class nt extends X {
863
863
  inclusive: !0,
864
864
  maximum: a.value,
865
865
  type: "date"
866
- }), r.dirty()) : Z.assertNever(a);
866
+ }), r.dirty()) : S.assertNever(a);
867
867
  return {
868
868
  status: r.value,
869
869
  value: new Date(t.data.getTime())
@@ -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 = Z.objectKeys(t);
1088
+ const t = this._def.shape(), s = S.objectKeys(t);
1089
1089
  return this._cached = { shape: t, keys: s };
1090
1090
  }
1091
1091
  _parse(t) {
@@ -1206,7 +1206,7 @@ class J extends X {
1206
1206
  }
1207
1207
  pick(t) {
1208
1208
  const s = {};
1209
- return Z.objectKeys(t).map((r) => {
1209
+ return S.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 Z.objectKeys(this.shape).map((r) => {
1219
- Z.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
1218
+ return S.objectKeys(this.shape).map((r) => {
1219
+ S.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 Z.objectKeys(this.shape).map((r) => {
1232
- Z.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
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();
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(Z.objectKeys(this.shape));
1260
+ return pr(S.objectKeys(this.shape));
1261
1261
  }
1262
1262
  }
1263
1263
  J.create = (e, t) => new J({
@@ -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 = Z.objectKeys(t), a = Z.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1423
+ const n = S.objectKeys(t), a = S.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)
@@ -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: Z.joinValues(r),
1809
+ expected: S.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 Zt extends X {
1847
+ class St extends X {
1848
1848
  _parse(t) {
1849
- const s = Z.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1849
+ const s = S.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1850
1850
  if (r.parsedType !== x.string && r.parsedType !== x.number) {
1851
- const n = Z.objectValues(s);
1851
+ const n = S.objectValues(s);
1852
1852
  return Y(r, {
1853
- expected: Z.joinValues(n),
1853
+ expected: S.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 = Z.objectValues(s);
1859
+ const n = S.objectValues(s);
1860
1860
  return Y(r, {
1861
1861
  received: r.data,
1862
1862
  code: C.invalid_enum_value,
@@ -1869,7 +1869,7 @@ class Zt extends X {
1869
1869
  return this._def.values;
1870
1870
  }
1871
1871
  }
1872
- Zt.create = (e, t) => new Zt({
1872
+ St.create = (e, t) => new St({
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
- Z.assertNever(n);
1958
+ S.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 St extends X {
2018
+ class Zt 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 St extends X {
2028
2028
  return { status: "valid", value: t.data };
2029
2029
  }
2030
2030
  }
2031
- St.create = (e) => new St({
2031
+ Zt.create = (e) => new Zt({
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 = 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();
2049
+ }) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = Ue.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 = 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 = 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();
2050
2050
  var ft = /* @__PURE__ */ Object.freeze({
2051
2051
  __proto__: null,
2052
2052
  getParsedType: Re,
@@ -2091,14 +2091,14 @@ var ft = /* @__PURE__ */ Object.freeze({
2091
2091
  ZodLazy: Tt,
2092
2092
  ZodLiteral: Nt,
2093
2093
  ZodEnum: Lt,
2094
- ZodNativeEnum: Zt,
2094
+ ZodNativeEnum: St,
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: St,
2101
+ ZodNaN: Zt,
2102
2102
  custom: fr,
2103
2103
  Schema: X,
2104
2104
  ZodSchema: X,
@@ -2222,17 +2222,17 @@ 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 Za(e) {
2225
+ function Sa(e) {
2226
2226
  return "fields" in e;
2227
2227
  }
2228
- function Sa(e, t) {
2228
+ function Za(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
2234
  function za(e, t) {
2235
- return e.fields.filter((s) => Sa(s, t));
2235
+ return e.fields.filter((s) => Za(s, t));
2236
2236
  }
2237
2237
  function El(e, t) {
2238
2238
  const s = { ...t };
@@ -2241,7 +2241,7 @@ function El(e, t) {
2241
2241
  return s;
2242
2242
  }
2243
2243
  function Ua(e) {
2244
- if (Za(e.form)) {
2244
+ if (Sa(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))
@@ -3272,6 +3272,7 @@ const wr = {
3272
3272
  "order:discount": "Discount",
3273
3273
  "order:changePrice": "Change Price",
3274
3274
  "order:void": "Void",
3275
+ "order:waiveServiceCharge": "Waive Service Charge",
3275
3276
  "order:payment": "Payment",
3276
3277
  "order:claimDeposit": "Claim Deposit",
3277
3278
  "order:resend": "Resend",
@@ -3479,6 +3480,7 @@ const wr = {
3479
3480
  "order:discount": "ใช้ส่วนลด",
3480
3481
  "order:changePrice": "เปลี่ยนราคา",
3481
3482
  "order:void": "ยกเลิกออเดอร์",
3483
+ "order:waiveServiceCharge": "ยกเว้นค่าบริการ",
3482
3484
  "order:payment": "ชำระเงิน",
3483
3485
  "order:claimDeposit": "ขอคืนมัดจำ",
3484
3486
  "order:resend": "ส่งออเดอร์ซ้ำ",
@@ -3685,6 +3687,7 @@ const wr = {
3685
3687
  "order:discount": "折扣",
3686
3688
  "order:changePrice": "修改价格",
3687
3689
  "order:void": "作废",
3690
+ "order:waiveServiceCharge": "免除服务费",
3688
3691
  "order:payment": "付款",
3689
3692
  "order:claimDeposit": "领取押金",
3690
3693
  "order:resend": "重新发送",
@@ -3892,6 +3895,7 @@ const wr = {
3892
3895
  "order:discount": "折扣",
3893
3896
  "order:changePrice": "修改價格",
3894
3897
  "order:void": "作廢",
3898
+ "order:waiveServiceCharge": "免除服務費",
3895
3899
  "order:payment": "付款",
3896
3900
  "order:claimDeposit": "領取押金",
3897
3901
  "order:resend": "重新發送",
@@ -4234,7 +4238,7 @@ const wr = {
4234
4238
  }, No = {
4235
4239
  team: Rr,
4236
4240
  permissionSet: Xr
4237
- }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4241
+ }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4238
4242
  __proto__: null,
4239
4243
  default: No,
4240
4244
  permissionSet: Xr,
@@ -4486,12 +4490,12 @@ const wr = {
4486
4490
  permissions: "สิทธิ์"
4487
4491
  }
4488
4492
  }
4489
- }, So = {
4493
+ }, Zo = {
4490
4494
  team: Qr,
4491
4495
  permissionSet: kr
4492
4496
  }, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4493
4497
  __proto__: null,
4494
- default: So,
4498
+ default: Zo,
4495
4499
  permissionSet: kr,
4496
4500
  team: Qr
4497
4501
  }, Symbol.toStringTag, { value: "Module" })), Tr = {
@@ -4749,7 +4753,7 @@ const wr = {
4749
4753
  default: Uo,
4750
4754
  permissionSet: Nr,
4751
4755
  team: Tr
4752
- }, Symbol.toStringTag, { value: "Module" })), Zr = {
4756
+ }, Symbol.toStringTag, { value: "Module" })), Sr = {
4753
4757
  title: "團隊成員",
4754
4758
  subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
4755
4759
  actions: {
@@ -4875,7 +4879,7 @@ const wr = {
4875
4879
  placeholder: "搜索角色"
4876
4880
  }
4877
4881
  }
4878
- }, Sr = {
4882
+ }, Zr = {
4879
4883
  title: "角色",
4880
4884
  createButtonLabel: "創建角色",
4881
4885
  search: {
@@ -5004,15 +5008,15 @@ const wr = {
5004
5008
  }
5005
5009
  }
5006
5010
  }, Lo = {
5007
- team: Zr,
5008
- permissionSet: Sr
5011
+ team: Sr,
5012
+ permissionSet: Zr
5009
5013
  }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5010
5014
  __proto__: null,
5011
5015
  default: Lo,
5012
- permissionSet: Sr,
5013
- team: Zr
5016
+ permissionSet: Zr,
5017
+ team: Sr
5014
5018
  }, Symbol.toStringTag, { value: "Module" })), Jo = {
5015
- "en-US": Zo,
5019
+ "en-US": So,
5016
5020
  "zh-CN": Wo,
5017
5021
  "th-TH": zo,
5018
5022
  "zh-Hant": Ko
@@ -6358,18 +6362,18 @@ const wr = {
6358
6362
  showByFeatureFlag: "hrm_enable_media_permission"
6359
6363
  }
6360
6364
  };
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 || {});
6365
+ 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 || {});
6362
6366
  const L = [
6363
6367
  {
6364
6368
  label: "CRM",
6365
- subject: S.crm,
6369
+ subject: Z.crm,
6366
6370
  actions: [o.read]
6367
6371
  }
6368
6372
  ], Ae = (...e) => e.flat(), Di = [
6369
6373
  ...L,
6370
6374
  {
6371
6375
  label: "User",
6372
- subject: S.crm_user,
6376
+ subject: Z.crm_user,
6373
6377
  actions: [
6374
6378
  o.read,
6375
6379
  o.create,
@@ -6381,7 +6385,7 @@ const L = [
6381
6385
  ...L,
6382
6386
  {
6383
6387
  label: "Segmentation",
6384
- subject: S.crm_segmentation,
6388
+ subject: Z.crm_segmentation,
6385
6389
  actions: [
6386
6390
  o.read,
6387
6391
  o.create,
@@ -6393,7 +6397,7 @@ const L = [
6393
6397
  ...L,
6394
6398
  {
6395
6399
  label: "Transaction",
6396
- subject: S.crm_transaction,
6400
+ subject: Z.crm_transaction,
6397
6401
  actions: [
6398
6402
  o.read,
6399
6403
  o.create,
@@ -6405,7 +6409,7 @@ const L = [
6405
6409
  ...L,
6406
6410
  {
6407
6411
  label: "Store",
6408
- subject: S.crm_store,
6412
+ subject: Z.crm_store,
6409
6413
  actions: [
6410
6414
  o.read,
6411
6415
  o.create,
@@ -6417,7 +6421,7 @@ const L = [
6417
6421
  ...L,
6418
6422
  {
6419
6423
  label: "Location",
6420
- subject: S.crm_location,
6424
+ subject: Z.crm_location,
6421
6425
  actions: [
6422
6426
  o.read,
6423
6427
  o.create,
@@ -6429,7 +6433,7 @@ const L = [
6429
6433
  ...L,
6430
6434
  {
6431
6435
  label: "Effect",
6432
- subject: S.crm_effect,
6436
+ subject: Z.crm_effect,
6433
6437
  actions: [
6434
6438
  o.read,
6435
6439
  o.create,
@@ -6441,14 +6445,14 @@ const L = [
6441
6445
  ...L,
6442
6446
  {
6443
6447
  label: "Setting",
6444
- subject: S.crm_setting,
6448
+ subject: Z.crm_setting,
6445
6449
  actions: [o.read, o.update]
6446
6450
  }
6447
6451
  ], Gi = [
6448
6452
  ...L,
6449
6453
  {
6450
6454
  label: "Reward",
6451
- subject: S.crm_reward,
6455
+ subject: Z.crm_reward,
6452
6456
  actions: [
6453
6457
  o.read,
6454
6458
  o.create,
@@ -6460,7 +6464,7 @@ const L = [
6460
6464
  ...L,
6461
6465
  {
6462
6466
  label: "Campaign",
6463
- subject: S.crm_campaign,
6467
+ subject: Z.crm_campaign,
6464
6468
  actions: [
6465
6469
  o.read,
6466
6470
  o.create,
@@ -6472,7 +6476,7 @@ const L = [
6472
6476
  ...L,
6473
6477
  {
6474
6478
  label: "Referral",
6475
- subject: S.crm_referral,
6479
+ subject: Z.crm_referral,
6476
6480
  actions: [
6477
6481
  o.read,
6478
6482
  o.create,
@@ -6484,7 +6488,7 @@ const L = [
6484
6488
  ...L,
6485
6489
  {
6486
6490
  label: "Marketing Material",
6487
- subject: S.crm_marketingMaterial,
6491
+ subject: Z.crm_marketingMaterial,
6488
6492
  actions: [
6489
6493
  o.read,
6490
6494
  o.create,
@@ -6496,14 +6500,14 @@ const L = [
6496
6500
  ...L,
6497
6501
  {
6498
6502
  label: "Analytic",
6499
- subject: S.crm_analytic,
6503
+ subject: Z.crm_analytic,
6500
6504
  actions: [o.read]
6501
6505
  }
6502
6506
  ], Pi = [
6503
6507
  ...L,
6504
6508
  {
6505
6509
  label: "Tier",
6506
- subject: S.crm_tier,
6510
+ subject: Z.crm_tier,
6507
6511
  actions: [
6508
6512
  o.read,
6509
6513
  o.create,
@@ -6515,7 +6519,7 @@ const L = [
6515
6519
  ...L,
6516
6520
  {
6517
6521
  label: "Title",
6518
- subject: S.crm_title,
6522
+ subject: Z.crm_title,
6519
6523
  actions: [
6520
6524
  o.read,
6521
6525
  o.create,
@@ -6527,7 +6531,7 @@ const L = [
6527
6531
  ...L,
6528
6532
  {
6529
6533
  label: "Broadcast",
6530
- subject: S.crm_broadcast,
6534
+ subject: Z.crm_broadcast,
6531
6535
  actions: [
6532
6536
  o.read,
6533
6537
  o.create,
@@ -6539,7 +6543,7 @@ const L = [
6539
6543
  ...L,
6540
6544
  {
6541
6545
  label: "Point",
6542
- subject: S.crm_point,
6546
+ subject: Z.crm_point,
6543
6547
  actions: [
6544
6548
  o.read,
6545
6549
  o.create,
@@ -6551,7 +6555,7 @@ const L = [
6551
6555
  ...L,
6552
6556
  {
6553
6557
  label: "Credit",
6554
- subject: S.crm_credit,
6558
+ subject: Z.crm_credit,
6555
6559
  actions: [
6556
6560
  o.read,
6557
6561
  o.create,
@@ -6563,7 +6567,7 @@ const L = [
6563
6567
  ...L,
6564
6568
  {
6565
6569
  label: "Experience",
6566
- subject: S.crm_experience,
6570
+ subject: Z.crm_experience,
6567
6571
  actions: [
6568
6572
  o.read,
6569
6573
  o.create,
@@ -6575,7 +6579,7 @@ const L = [
6575
6579
  ...L,
6576
6580
  {
6577
6581
  label: "Game",
6578
- subject: S.crm_game,
6582
+ subject: Z.crm_game,
6579
6583
  actions: [
6580
6584
  o.read,
6581
6585
  o.create,
@@ -6587,7 +6591,7 @@ const L = [
6587
6591
  ...L,
6588
6592
  {
6589
6593
  label: "Mission",
6590
- subject: S.crm_mission,
6594
+ subject: Z.crm_mission,
6591
6595
  actions: [
6592
6596
  o.read,
6593
6597
  o.create,
@@ -6599,7 +6603,7 @@ const L = [
6599
6603
  ...L,
6600
6604
  {
6601
6605
  label: "Loyalty Member",
6602
- subject: S.crm_loyaltyMember,
6606
+ subject: Z.crm_loyaltyMember,
6603
6607
  actions: [
6604
6608
  o.read,
6605
6609
  o.create,
@@ -6611,7 +6615,7 @@ const L = [
6611
6615
  ...L,
6612
6616
  {
6613
6617
  label: "Loyalty Segment",
6614
- subject: S.crm_loyaltySegment,
6618
+ subject: Z.crm_loyaltySegment,
6615
6619
  actions: [
6616
6620
  o.read,
6617
6621
  o.create,
@@ -6623,7 +6627,7 @@ const L = [
6623
6627
  ...L,
6624
6628
  {
6625
6629
  label: "Loyalty Card",
6626
- subject: S.crm_loyaltyCard,
6630
+ subject: Z.crm_loyaltyCard,
6627
6631
  actions: [
6628
6632
  o.read,
6629
6633
  o.create,
@@ -6635,7 +6639,7 @@ const L = [
6635
6639
  ...L,
6636
6640
  {
6637
6641
  label: "Bin",
6638
- subject: S.crm_bin,
6642
+ subject: Z.crm_bin,
6639
6643
  actions: [o.read, o.update, o.delete]
6640
6644
  }
6641
6645
  ], pn = Ae(
@@ -6672,7 +6676,7 @@ const L = [
6672
6676
  ...L,
6673
6677
  {
6674
6678
  label: "Voucher",
6675
- subject: S.crm_voucher,
6679
+ subject: Z.crm_voucher,
6676
6680
  actions: [
6677
6681
  o.read,
6678
6682
  o.create,
@@ -6684,7 +6688,7 @@ const L = [
6684
6688
  ...L,
6685
6689
  {
6686
6690
  label: "Membership",
6687
- subject: S.crm_membership,
6691
+ subject: Z.crm_membership,
6688
6692
  actions: [
6689
6693
  o.read,
6690
6694
  o.create,
@@ -6718,10 +6722,10 @@ const L = [
6718
6722
  ye,
6719
6723
  cn,
6720
6724
  ln
6721
- ), Zi = Ae(
6725
+ ), Si = Ae(
6722
6726
  ye,
6723
6727
  Qi
6724
- ), Si = Ae(ki), zi = {
6728
+ ), Zi = Ae(ki), zi = {
6725
6729
  [`set_${d.crm}`]: {
6726
6730
  key: "sys:crm:access",
6727
6731
  name: "CRM Access",
@@ -6735,12 +6739,12 @@ const L = [
6735
6739
  [`set_${d.crm_voucher}`]: {
6736
6740
  key: "sys:crm:voucher",
6737
6741
  name: "CRM Voucher",
6738
- permissions: Zi
6742
+ permissions: Si
6739
6743
  },
6740
6744
  [`set_${d.crm_membership}`]: {
6741
6745
  key: "sys:crm:membership",
6742
6746
  name: "CRM Membership",
6743
- permissions: Si
6747
+ permissions: Zi
6744
6748
  },
6745
6749
  [`set_${d.crm_analytic}`]: {
6746
6750
  key: "sys:crm:analytic",
@@ -8233,13 +8237,13 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8233
8237
  }, Nc = {
8234
8238
  title: "存取被拒絕",
8235
8239
  subtitle: "哎呀!您沒有權限存取此頁面。"
8236
- }, Zc = {
8237
- noPermission: Nc
8238
8240
  }, Sc = {
8241
+ noPermission: Nc
8242
+ }, Zc = {
8239
8243
  title: "การเข้าถึงถูกปฏิเสธ",
8240
8244
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
8241
8245
  }, zc = {
8242
- noPermission: Sc
8246
+ noPermission: Zc
8243
8247
  }, 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({
8244
8248
  __name: "NoPermission",
8245
8249
  setup(e) {
@@ -8247,21 +8251,21 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8247
8251
  messages: {
8248
8252
  "en-US": Qc,
8249
8253
  "zh-CN": Tc,
8250
- "zh-Hant": Zc,
8254
+ "zh-Hant": Sc,
8251
8255
  "th-TH": zc
8252
8256
  }
8253
8257
  });
8254
8258
  return (s, r) => (ct(), lr("div", Uc, [
8255
- Se("div", Wc, [
8256
- Se("div", Lc, [
8257
- Se("img", {
8259
+ Ze("div", Wc, [
8260
+ Ze("div", Lc, [
8261
+ Ze("img", {
8258
8262
  src: ze(Rc),
8259
8263
  class: "w-full h-full"
8260
8264
  }, null, 8, Kc)
8261
8265
  ]),
8262
- Se("div", null, [
8263
- Se("h1", Jc, Ws(ze(t)("noPermission.title")), 1),
8264
- Se("h2", _c, Ws(ze(t)("noPermission.subtitle")), 1)
8266
+ Ze("div", null, [
8267
+ Ze("h1", Jc, Ws(ze(t)("noPermission.title")), 1),
8268
+ Ze("h2", _c, Ws(ze(t)("noPermission.subtitle")), 1)
8265
8269
  ])
8266
8270
  ])
8267
8271
  ]));
@@ -8296,10 +8300,10 @@ function tl(e, t) {
8296
8300
  }
8297
8301
  let n = null;
8298
8302
  return Nn(e, async (a) => {
8299
- a && (await Zn(), r());
8303
+ a && (await Sn(), r());
8300
8304
  }), ur(() => {
8301
8305
  window.addEventListener("resize", r), n = new ResizeObserver(r), n.observe(document.body);
8302
- }), Sn(() => {
8306
+ }), Zn(() => {
8303
8307
  window.removeEventListener("resize", r), n == null || n.disconnect(), n = null;
8304
8308
  }), s;
8305
8309
  }
@@ -8328,7 +8332,7 @@ const sl = /* @__PURE__ */ it({
8328
8332
  const r = Fs("FmCircularProgress");
8329
8333
  return ct(), Ut(sl, null, {
8330
8334
  default: Un(() => [
8331
- Se("div", rl, [
8335
+ Ze("div", rl, [
8332
8336
  Wn(r, { size: "xl" })
8333
8337
  ])
8334
8338
  ]),
@@ -8350,10 +8354,10 @@ const Et = (e) => ({
8350
8354
  }
8351
8355
  ]
8352
8356
  }
8353
- }), al = Kt(we(() => import("./Main-B06aoNy1.js"))), ol = Kt(we(() => import("./Main-BC7IPhbz.js"))), il = Kt(
8354
- we(() => import("./AuditLogList-DH2ZvAVE.js"))
8355
- ), cl = Kt(we(() => import("./Main-BRrcfqXc.js"))), ll = we(() => import("./ApprovalCodeList-CQApO-t4.js")), ul = we(() => import("./GrantUserList-DURXYzRs.js")), Al = we(() => import("./EmployeeList-B1Q4RH2r.js")), dl = we(() => import("./RoleList-BVFWURdS.js")), ml = we(() => import("./TimesheetList-C4G2Va4m.js")), gl = we(() => import("./TeamMemberList-DlurP2WR.js")), pl = we(
8356
- () => import("./PermissionSetList-CiVFvnlW.js")
8357
+ }), al = Kt(we(() => import("./Main-B5YknOhi.js"))), ol = Kt(we(() => import("./Main-BnWK_GkW.js"))), il = Kt(
8358
+ we(() => import("./AuditLogList-CfDEZ6Z-.js"))
8359
+ ), cl = Kt(we(() => import("./Main-DQXiP6Io.js"))), ll = we(() => import("./ApprovalCodeList-Cwy-Rn90.js")), ul = we(() => import("./GrantUserList-UgQBjh54.js")), Al = we(() => import("./EmployeeList-DJrCBYvi.js")), dl = we(() => import("./RoleList-CHnu2j25.js")), ml = we(() => import("./TimesheetList-D5G1dJfp.js")), gl = we(() => import("./TeamMemberList-DprMQ_8g.js")), pl = we(
8360
+ () => import("./PermissionSetList-CfPZPmfV.js")
8357
8361
  ), Fl = [
8358
8362
  {
8359
8363
  path: "/",
@@ -8843,7 +8847,7 @@ var Vs = { exports: {} };
8843
8847
  return f.prototype.init = function(u) {
8844
8848
  var i, g, A;
8845
8849
  return a(this, void 0, void 0, function() {
8846
- 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;
8850
+ 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, Ss, ue = this;
8847
8851
  return c(this, function(Be) {
8848
8852
  switch (Be.label) {
8849
8853
  case 0:
@@ -8857,18 +8861,18 @@ var Vs = { exports: {} };
8857
8861
  }, 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) {
8858
8862
  return function(De, xe) {
8859
8863
  var Ie = xe.headers, K = xe.method, et = xe.body;
8860
- return new Promise(function(Ze) {
8864
+ return new Promise(function(Se) {
8861
8865
  switch (K) {
8862
8866
  case "GET":
8863
8867
  return he.get(De, { headers: Ie }).subscribe(function(Oe) {
8864
- Ze({ ok: !0, text: function() {
8868
+ Se({ ok: !0, text: function() {
8865
8869
  return Promise.resolve(Oe);
8866
8870
  } });
8867
8871
  });
8868
8872
  case "POST":
8869
8873
  case "PUT":
8870
8874
  return he.post(De, et, { headers: Ie }).subscribe(function(Oe) {
8871
- Ze({ ok: !0, text: function() {
8875
+ Se({ ok: !0, text: function() {
8872
8876
  return Promise.resolve(Oe);
8873
8877
  } });
8874
8878
  });
@@ -8894,14 +8898,14 @@ var Vs = { exports: {} };
8894
8898
  if (!ne || !this.canUseStorage) return [3, 8];
8895
8899
  Ns = function(he, De) {
8896
8900
  return a(ue, void 0, void 0, function() {
8897
- var xe, Ie, K, et, Ze, Oe, ss, Ss, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, zs = this;
8901
+ var xe, Ie, K, et, Se, Oe, ss, Zs, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, zs = this;
8898
8902
  return c(this, function(He) {
8899
8903
  switch (He.label) {
8900
8904
  case 0:
8901
8905
  if (!De) return [3, 7];
8902
8906
  xe = null, Ie = null, He.label = 1;
8903
8907
  case 1:
8904
- return He.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, Ie = 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: Ie }, 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) {
8908
+ return He.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, Ie = 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: Ie }, this._loadedState(null, B.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && et && !Se && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
8905
8909
  var bs;
8906
8910
  (bs = zs.onError) === null || bs === void 0 || bs.call(zs, Hn);
8907
8911
  }), [3, 4]) : [3, 2];
@@ -8912,7 +8916,7 @@ var Vs = { exports: {} };
8912
8916
  case 4:
8913
8917
  return [3, 6];
8914
8918
  case 5:
8915
- return Ss = He.sent(), this.log("Exception fetching cached logs", Ss), [3, 6];
8919
+ return Zs = He.sent(), this.log("Exception fetching cached logs", Zs), [3, 6];
8916
8920
  case 6:
8917
8921
  return [3, 10];
8918
8922
  case 7:
@@ -8956,7 +8960,7 @@ var Vs = { exports: {} };
8956
8960
  case 12:
8957
8961
  return [3, 14];
8958
8962
  case 13:
8959
- 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;
8963
+ throw $e = Be.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;
8960
8964
  case 14:
8961
8965
  return [2];
8962
8966
  }
@@ -9379,7 +9383,7 @@ export {
9379
9383
  ic as P,
9380
9384
  te as R,
9381
9385
  Gl as S,
9382
- Za as U,
9386
+ Sa as U,
9383
9387
  sl as _,
9384
9388
  nl as a,
9385
9389
  Pl as b,