@feedmepos/mf-hrm-portal 2.1.0 → 2.1.1-dev.2

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 (35) hide show
  1. package/dist/AuditLogList-DHiqs9G0.js +1611 -0
  2. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-CJEkZVoJ.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-CWqNWNdD.js} +2 -2
  3. package/dist/{EmployeeList-CckyPQlP.js → EmployeeList-CUd3VH5h.js} +10 -9
  4. package/dist/{Main-C4cSWAts.js → Main-B_L5flWT.js} +6 -6
  5. package/dist/{Main-BdPIZkik.js → Main-DUbLeLlK.js} +4 -4
  6. package/dist/{Main-BUvX24j0.js → Main-DgemO-iy.js} +9 -9
  7. package/dist/{PermissionSetList-CP8J9Prx.js → PermissionSetList-BaC4lKV5.js} +6 -6
  8. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C7X69eQq.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DddOxcG_.js} +911 -911
  9. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-ZAEcrK9Q.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-DbPzVpnG.js} +1 -1
  10. package/dist/{RoleList-BHvGGF82.js → RoleList-CThb6VEd.js} +8 -8
  11. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
  12. package/dist/{TeamMemberList-DPkocw3U.js → TeamMemberList-CAw4jr1b.js} +24 -23
  13. package/dist/{TimesheetList-mOWHmWwo.js → TimesheetList-C_IMtsTH.js} +6 -6
  14. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CpUHcGUj.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DGwteHIL.js} +2 -2
  15. package/dist/{app-DnaRDAJY.js → app-BW91YDke.js} +596 -300
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-NAaPKajp.js → dayjs.min-DwQTpnVK.js} +1 -1
  18. package/dist/{employee-CILPIL-b.js → employee-yM0kdY70.js} +3 -3
  19. package/dist/{iteration-B7PEDIWb.js → iteration-Dj50K6I7.js} +3 -3
  20. package/dist/{lodash-CgE5OnVa.js → lodash-DLReQyP0.js} +1 -1
  21. package/dist/{rule-BmSYQ3Op.js → rule-BJ-o-PKi.js} +2 -2
  22. package/dist/src/api/audit-log/index.d.ts +6 -0
  23. package/dist/src/types/audit-log.d.ts +1 -1
  24. package/dist/src/views/audit-log/event-line.d.ts +13 -0
  25. package/dist/src/views/audit-log/locales/index.d.ts +296 -0
  26. package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
  27. package/dist/style.css +1 -1
  28. package/dist/tsconfig.app.tsbuildinfo +1 -1
  29. package/dist/{useAppStore-DMmL9JnJ.js → useAppStore-CHkGWiai.js} +1 -1
  30. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  31. package/dist/{useLoading-D56E7ykF.js → useLoading-B89K5XKO.js} +1 -1
  32. package/dist/{useReportPermissions-BKj02rVj.js → useReportPermissions-Bjfhr6FD.js} +3 -3
  33. package/package.json +1 -1
  34. package/dist/AuditLogList-Rrg_dNYp.js +0 -1149
  35. package/dist/useDebounce-CWb5QR9G.js +0 -28
@@ -1,8 +1,8 @@
1
1
  var Gn = Object.defineProperty;
2
2
  var Vn = (e, t, s) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
3
  var Dt = (e, t, s) => Vn(e, typeof t != "symbol" ? t + "" : t, s);
4
- import { isRef as Pn, ref as Re, shallowRef as On, watchEffect as cr, computed as Os, h as Ws, defineComponent as ot, createBlock as Ut, renderSlot as lr, createCommentVNode as Fn, unref as Ue, openBlock as ct, createElementBlock as ur, createElementVNode as Se, toDisplayString as Ls, watch as qn, nextTick as In, onMounted as Ar, onBeforeUnmount as Hn, normalizeStyle as Xn, resolveComponent as Fs, withCtx as Qn, createVNode as Rn, defineAsyncComponent as kn, readonly as bs } from "vue";
5
- import { useBreakpoints as Tn } from "@feedmepos/ui-library";
4
+ import { isRef as Pn, ref as Re, shallowRef as On, watchEffect as cr, computed as Os, h as Ws, defineComponent as ot, createBlock as Ut, renderSlot as lr, createCommentVNode as Fn, unref as Ue, openBlock as ct, createElementBlock as ur, createElementVNode as Se, toDisplayString as Ls, watch as qn, nextTick as In, onMounted as Ar, onBeforeUnmount as Hn, normalizeStyle as Xn, resolveComponent as Fs, withCtx as Qn, createVNode as Rn, defineAsyncComponent as Tn, readonly as bs } from "vue";
5
+ import { useBreakpoints as kn } from "@feedmepos/ui-library";
6
6
  import { useRoute as Nn, useRouter as Zn } from "vue-router";
7
7
  import { useCoreStore as qs, useI18n as mr } from "@feedmepos/mf-common";
8
8
  var i = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(i || {}), m = /* @__PURE__ */ ((e) => (e.miniProgram_profile = "business::miniProgram::profile", e.miniProgram_brandkit = "business::miniProgram::brandkit", e.miniProgram_template = "business::miniProgram::template", e.miniProgram_publish = "business::miniProgram::publish", e.miniProgram_assets = "business::miniProgram::assets", e.miniProgram_nativeCredentials = "business::miniProgram::nativeCredentials", e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.crm_analytic = "business::crm::analytic", e.crm_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.crm_marketingMaterial = "business::crm::marketingMaterial", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.menu_item = "business::menu::item", e.menu_catalog = "business::menu::catalog", e.menu_category = "business::menu::category", e.menu_subCategory = "business::menu::subCategory", e.menu_group = "business::menu::group", e.menu_takeaway = "business::menu::takeaway", e.menu_scheduler = "business::menu::scheduler", e.menu_variant = "business::menu::variant", e.menu_cookingGuide = "business::menu::cookingGuide", e.menu_printRoute = "business::menu::printRoute", e.menu_servingSequence = "business::menu::servingSequence", e.menu_settings = "business::menu::settings", e.menu_publish = "business::menu::publish", e.menu_menuManagement = "business::menu::menuManagement", e.menu_importExport = "business::menu::importExport", e.menu_unit = "business::menu::unit", e.menu_ingredient = "business::menu::ingredient", e.menu_recipe = "business::menu::recipe", e.restaurant = "business::restaurant", e.role = "business::role", e.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.kiosk_deviceManagement = "business::kiosk::deviceManagement", e.kiosk_deviceBinding = "business::kiosk::deviceBinding", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e.operation_receipt = "business::operation::receipt", e.operation_tableManagement = "business::operation::tableManagement", e.operation_offlinePayment = "business::operation::offlinePayment", e.operation_reasonTemplate = "business::operation::reasonTemplate", e.operation_discountRule = "business::operation::discountRule", e.operation_serviceCharge = "business::operation::serviceCharge", e.operation_kitchenPrintTemplate = "business::operation::kitchenPrintTemplate", e.operation_orderSetting = "business::operation::orderSetting", e.media_assets = "business::media::assets", e))(m || {}), ee = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(ee || {}), dr = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(dr || {});
@@ -299,11 +299,11 @@ class ae {
299
299
  }
300
300
  const H = Object.freeze({
301
301
  status: "aborted"
302
- }), Ln = (e) => ({ status: "dirty", value: e }), ie = (e) => ({ status: "valid", value: e }), Bs = (e) => e.status === "aborted", ws = (e) => e.status === "dirty", Ot = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, Is = (e, t) => typeof t == "bigint" ? t.toString() : t;
303
- var T;
302
+ }), Ln = (e) => ({ status: "dirty", value: e }), ie = (e) => ({ status: "valid", value: e }), ws = (e) => e.status === "aborted", Bs = (e) => e.status === "dirty", Ot = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, Is = (e, t) => typeof t == "bigint" ? t.toString() : t;
303
+ var k;
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
- })(T || (T = {}));
306
+ })(k || (k = {}));
307
307
  class Ee {
308
308
  constructor(t, s, r, n) {
309
309
  this.parent = t, this.data = s, this._path = r, this._key = n;
@@ -449,10 +449,10 @@ class Q {
449
449
  return it.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
- return wt.create(this, t);
455
+ return Bt.create(this, t);
456
456
  }
457
457
  transform(t) {
458
458
  return new Ve({
@@ -484,13 +484,13 @@ class Q {
484
484
  }
485
485
  }
486
486
  const Kn = /^c[^\s-]{8,}$/i, Jn = /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i, _n = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
487
- class ke extends Q {
487
+ class Te extends Q {
488
488
  constructor() {
489
489
  super(...arguments), this._regex = (t, s, r) => this.refinement((n) => t.test(n), {
490
490
  validation: s,
491
491
  code: C.invalid_string,
492
- ...T.errToObj(r)
493
- }), this.nonempty = (t) => this.min(1, T.errToObj(t)), this.trim = () => new ke({
492
+ ...k.errToObj(r)
493
+ }), this.nonempty = (t) => this.min(1, k.errToObj(t)), this.trim = () => new Te({
494
494
  ...this._def,
495
495
  checks: [...this._def.checks, { kind: "trim" }]
496
496
  });
@@ -571,56 +571,56 @@ class ke extends Q {
571
571
  return { status: r.value, value: t.data };
572
572
  }
573
573
  _addCheck(t) {
574
- return new ke({
574
+ return new Te({
575
575
  ...this._def,
576
576
  checks: [...this._def.checks, t]
577
577
  });
578
578
  }
579
579
  email(t) {
580
- return this._addCheck({ kind: "email", ...T.errToObj(t) });
580
+ return this._addCheck({ kind: "email", ...k.errToObj(t) });
581
581
  }
582
582
  url(t) {
583
- return this._addCheck({ kind: "url", ...T.errToObj(t) });
583
+ return this._addCheck({ kind: "url", ...k.errToObj(t) });
584
584
  }
585
585
  uuid(t) {
586
- return this._addCheck({ kind: "uuid", ...T.errToObj(t) });
586
+ return this._addCheck({ kind: "uuid", ...k.errToObj(t) });
587
587
  }
588
588
  cuid(t) {
589
- return this._addCheck({ kind: "cuid", ...T.errToObj(t) });
589
+ return this._addCheck({ kind: "cuid", ...k.errToObj(t) });
590
590
  }
591
591
  regex(t, s) {
592
592
  return this._addCheck({
593
593
  kind: "regex",
594
594
  regex: t,
595
- ...T.errToObj(s)
595
+ ...k.errToObj(s)
596
596
  });
597
597
  }
598
598
  startsWith(t, s) {
599
599
  return this._addCheck({
600
600
  kind: "startsWith",
601
601
  value: t,
602
- ...T.errToObj(s)
602
+ ...k.errToObj(s)
603
603
  });
604
604
  }
605
605
  endsWith(t, s) {
606
606
  return this._addCheck({
607
607
  kind: "endsWith",
608
608
  value: t,
609
- ...T.errToObj(s)
609
+ ...k.errToObj(s)
610
610
  });
611
611
  }
612
612
  min(t, s) {
613
613
  return this._addCheck({
614
614
  kind: "min",
615
615
  value: t,
616
- ...T.errToObj(s)
616
+ ...k.errToObj(s)
617
617
  });
618
618
  }
619
619
  max(t, s) {
620
620
  return this._addCheck({
621
621
  kind: "max",
622
622
  value: t,
623
- ...T.errToObj(s)
623
+ ...k.errToObj(s)
624
624
  });
625
625
  }
626
626
  length(t, s) {
@@ -651,7 +651,7 @@ class ke extends Q {
651
651
  return t;
652
652
  }
653
653
  }
654
- ke.create = (e) => new ke({
654
+ Te.create = (e) => new Te({
655
655
  checks: [],
656
656
  typeName: I.ZodString,
657
657
  ...R(e)
@@ -701,16 +701,16 @@ class ze extends Q {
701
701
  return { status: n.value, value: t.data };
702
702
  }
703
703
  gte(t, s) {
704
- return this.setLimit("min", t, !0, T.toString(s));
704
+ return this.setLimit("min", t, !0, k.toString(s));
705
705
  }
706
706
  gt(t, s) {
707
- return this.setLimit("min", t, !1, T.toString(s));
707
+ return this.setLimit("min", t, !1, k.toString(s));
708
708
  }
709
709
  lte(t, s) {
710
- return this.setLimit("max", t, !0, T.toString(s));
710
+ return this.setLimit("max", t, !0, k.toString(s));
711
711
  }
712
712
  lt(t, s) {
713
- return this.setLimit("max", t, !1, T.toString(s));
713
+ return this.setLimit("max", t, !1, k.toString(s));
714
714
  }
715
715
  setLimit(t, s, r, n) {
716
716
  return new ze({
@@ -721,7 +721,7 @@ class ze extends Q {
721
721
  kind: t,
722
722
  value: s,
723
723
  inclusive: r,
724
- message: T.toString(n)
724
+ message: k.toString(n)
725
725
  }
726
726
  ]
727
727
  });
@@ -735,7 +735,7 @@ class ze extends Q {
735
735
  int(t) {
736
736
  return this._addCheck({
737
737
  kind: "int",
738
- message: T.toString(t)
738
+ message: k.toString(t)
739
739
  });
740
740
  }
741
741
  positive(t) {
@@ -743,7 +743,7 @@ class ze extends Q {
743
743
  kind: "min",
744
744
  value: 0,
745
745
  inclusive: !1,
746
- message: T.toString(t)
746
+ message: k.toString(t)
747
747
  });
748
748
  }
749
749
  negative(t) {
@@ -751,7 +751,7 @@ class ze extends Q {
751
751
  kind: "max",
752
752
  value: 0,
753
753
  inclusive: !1,
754
- message: T.toString(t)
754
+ message: k.toString(t)
755
755
  });
756
756
  }
757
757
  nonpositive(t) {
@@ -759,7 +759,7 @@ class ze extends Q {
759
759
  kind: "max",
760
760
  value: 0,
761
761
  inclusive: !0,
762
- message: T.toString(t)
762
+ message: k.toString(t)
763
763
  });
764
764
  }
765
765
  nonnegative(t) {
@@ -767,14 +767,14 @@ class ze extends Q {
767
767
  kind: "min",
768
768
  value: 0,
769
769
  inclusive: !0,
770
- message: T.toString(t)
770
+ message: k.toString(t)
771
771
  });
772
772
  }
773
773
  multipleOf(t, s) {
774
774
  return this._addCheck({
775
775
  kind: "multipleOf",
776
776
  value: t,
777
- message: T.toString(s)
777
+ message: k.toString(s)
778
778
  });
779
779
  }
780
780
  get minValue() {
@@ -879,14 +879,14 @@ class nt extends Q {
879
879
  return this._addCheck({
880
880
  kind: "min",
881
881
  value: t.getTime(),
882
- message: T.toString(s)
882
+ message: k.toString(s)
883
883
  });
884
884
  }
885
885
  max(t, s) {
886
886
  return this._addCheck({
887
887
  kind: "max",
888
888
  value: t.getTime(),
889
- message: T.toString(s)
889
+ message: k.toString(s)
890
890
  });
891
891
  }
892
892
  get minDate() {
@@ -965,7 +965,7 @@ Qe.create = (e) => new Qe({
965
965
  typeName: I.ZodUnknown,
966
966
  ...R(e)
967
967
  });
968
- class Te extends Q {
968
+ class ke extends Q {
969
969
  _parse(t) {
970
970
  const s = this._getOrReturnCtx(t);
971
971
  return Y(s, {
@@ -975,7 +975,7 @@ class Te extends Q {
975
975
  }), H;
976
976
  }
977
977
  }
978
- Te.create = (e) => new Te({
978
+ ke.create = (e) => new ke({
979
979
  typeName: I.ZodNever,
980
980
  ...R(e)
981
981
  });
@@ -1028,13 +1028,13 @@ class Ye extends Q {
1028
1028
  min(t, s) {
1029
1029
  return new Ye({
1030
1030
  ...this._def,
1031
- minLength: { value: t, message: T.toString(s) }
1031
+ minLength: { value: t, message: k.toString(s) }
1032
1032
  });
1033
1033
  }
1034
1034
  max(t, s) {
1035
1035
  return new Ye({
1036
1036
  ...this._def,
1037
- maxLength: { value: t, message: T.toString(s) }
1037
+ maxLength: { value: t, message: k.toString(s) }
1038
1038
  });
1039
1039
  }
1040
1040
  length(t, s) {
@@ -1102,20 +1102,20 @@ class J extends Q {
1102
1102
  c.includes(y) || l.push(y);
1103
1103
  const f = [];
1104
1104
  for (const y of c) {
1105
- const B = a[y], O = n.data[y];
1105
+ const w = a[y], O = n.data[y];
1106
1106
  f.push({
1107
1107
  key: { status: "valid", value: y },
1108
- value: B._parse(new Ee(n, O, n.path, y)),
1108
+ value: w._parse(new Ee(n, O, n.path, y)),
1109
1109
  alwaysSet: y in n.data
1110
1110
  });
1111
1111
  }
1112
- if (this._def.catchall instanceof Te) {
1112
+ if (this._def.catchall instanceof ke) {
1113
1113
  const y = this._def.unknownKeys;
1114
1114
  if (y === "passthrough")
1115
- for (const B of l)
1115
+ for (const w of l)
1116
1116
  f.push({
1117
- key: { status: "valid", value: B },
1118
- value: { status: "valid", value: n.data[B] }
1117
+ key: { status: "valid", value: w },
1118
+ value: { status: "valid", value: n.data[w] }
1119
1119
  });
1120
1120
  else if (y === "strict")
1121
1121
  l.length > 0 && (Y(n, {
@@ -1125,26 +1125,26 @@ class J extends Q {
1125
1125
  else if (y !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1126
1126
  } else {
1127
1127
  const y = this._def.catchall;
1128
- for (const B of l) {
1129
- const O = n.data[B];
1128
+ for (const w of l) {
1129
+ const O = n.data[w];
1130
1130
  f.push({
1131
- key: { status: "valid", value: B },
1131
+ key: { status: "valid", value: w },
1132
1132
  value: y._parse(
1133
- new Ee(n, O, n.path, B)
1133
+ new Ee(n, O, n.path, w)
1134
1134
  //, ctx.child(key), value, getParsedType(value)
1135
1135
  ),
1136
- alwaysSet: B in n.data
1136
+ alwaysSet: w in n.data
1137
1137
  });
1138
1138
  }
1139
1139
  }
1140
1140
  return n.common.async ? Promise.resolve().then(async () => {
1141
1141
  const y = [];
1142
- for (const B of f) {
1143
- const O = await B.key;
1142
+ for (const w of f) {
1143
+ const O = await w.key;
1144
1144
  y.push({
1145
1145
  key: O,
1146
- value: await B.value,
1147
- alwaysSet: B.alwaysSet
1146
+ value: await w.value,
1147
+ alwaysSet: w.alwaysSet
1148
1148
  });
1149
1149
  }
1150
1150
  return y;
@@ -1154,7 +1154,7 @@ class J extends Q {
1154
1154
  return this._def.shape();
1155
1155
  }
1156
1156
  strict(t) {
1157
- return T.errToObj, new J({
1157
+ return k.errToObj, new J({
1158
1158
  ...this._def,
1159
1159
  unknownKeys: "strict",
1160
1160
  ...t !== void 0 ? {
@@ -1162,7 +1162,7 @@ class J extends Q {
1162
1162
  var n, a, c, l;
1163
1163
  const f = (c = (a = (n = this._def).errorMap) === null || a === void 0 ? void 0 : a.call(n, s, r).message) !== null && c !== void 0 ? c : r.defaultError;
1164
1164
  return s.code === "unrecognized_keys" ? {
1165
- message: (l = T.errToObj(t).message) !== null && l !== void 0 ? l : f
1165
+ message: (l = k.errToObj(t).message) !== null && l !== void 0 ? l : f
1166
1166
  } : {
1167
1167
  message: f
1168
1168
  };
@@ -1263,25 +1263,25 @@ class J extends Q {
1263
1263
  J.create = (e, t) => new J({
1264
1264
  shape: () => e,
1265
1265
  unknownKeys: "strip",
1266
- catchall: Te.create(),
1266
+ catchall: ke.create(),
1267
1267
  typeName: I.ZodObject,
1268
1268
  ...R(t)
1269
1269
  });
1270
1270
  J.strictCreate = (e, t) => new J({
1271
1271
  shape: () => e,
1272
1272
  unknownKeys: "strict",
1273
- catchall: Te.create(),
1273
+ catchall: ke.create(),
1274
1274
  typeName: I.ZodObject,
1275
1275
  ...R(t)
1276
1276
  });
1277
1277
  J.lazycreate = (e, t) => new J({
1278
1278
  shape: e,
1279
1279
  unknownKeys: "strip",
1280
- catchall: Te.create(),
1280
+ catchall: ke.create(),
1281
1281
  typeName: I.ZodObject,
1282
1282
  ...R(t)
1283
1283
  });
1284
- class Bt extends Q {
1284
+ class wt extends Q {
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 Q {
1327
1327
  issues: []
1328
1328
  },
1329
1329
  parent: null
1330
- }, B = f._parseSync({
1330
+ }, w = f._parseSync({
1331
1331
  data: s.data,
1332
1332
  path: s.path,
1333
1333
  parent: y
1334
1334
  });
1335
- if (B.status === "valid")
1336
- return B;
1337
- B.status === "dirty" && !a && (a = { result: B, ctx: y }), y.common.issues.length && c.push(y.common.issues);
1335
+ if (w.status === "valid")
1336
+ return w;
1337
+ w.status === "dirty" && !a && (a = { result: w, ctx: y }), y.common.issues.length && c.push(y.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 Q {
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
  ...R(t)
@@ -1441,13 +1441,13 @@ function Cs(e, t) {
1441
1441
  return { valid: !0, data: n };
1442
1442
  } else return s === x.date && r === x.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
1443
1443
  }
1444
- class wt extends Q {
1444
+ class Bt extends Q {
1445
1445
  _parse(t) {
1446
1446
  const { status: s, ctx: r } = this._processInputParams(t), n = (a, c) => {
1447
- if (Bs(a) || Bs(c))
1447
+ if (ws(a) || ws(c))
1448
1448
  return H;
1449
1449
  const l = Cs(a.value, c.value);
1450
- return l.valid ? ((ws(a) || ws(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1450
+ return l.valid ? ((Bs(a) || Bs(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1451
1451
  code: C.invalid_intersection_types
1452
1452
  }), H);
1453
1453
  };
@@ -1473,7 +1473,7 @@ class wt extends Q {
1473
1473
  }));
1474
1474
  }
1475
1475
  }
1476
- wt.create = (e, t, s) => new wt({
1476
+ Bt.create = (e, t, s) => new Bt({
1477
1477
  left: e,
1478
1478
  right: t,
1479
1479
  typeName: I.ZodIntersection,
@@ -1556,7 +1556,7 @@ class Mt extends Q {
1556
1556
  typeName: I.ZodRecord,
1557
1557
  ...R(r)
1558
1558
  }) : new Mt({
1559
- keyType: ke.create(),
1559
+ keyType: Te.create(),
1560
1560
  valueType: t,
1561
1561
  typeName: I.ZodRecord,
1562
1562
  ...R(s)
@@ -1580,20 +1580,20 @@ class Rt extends Q {
1580
1580
  const l = /* @__PURE__ */ new Map();
1581
1581
  return Promise.resolve().then(async () => {
1582
1582
  for (const f of c) {
1583
- const y = await f.key, B = await f.value;
1584
- if (y.status === "aborted" || B.status === "aborted")
1583
+ const y = await f.key, w = await f.value;
1584
+ if (y.status === "aborted" || w.status === "aborted")
1585
1585
  return H;
1586
- (y.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(y.value, B.value);
1586
+ (y.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(y.value, w.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 f of c) {
1593
- const y = f.key, B = f.value;
1594
- if (y.status === "aborted" || B.status === "aborted")
1593
+ const y = f.key, w = f.value;
1594
+ if (y.status === "aborted" || w.status === "aborted")
1595
1595
  return H;
1596
- (y.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(y.value, B.value);
1596
+ (y.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(y.value, w.value);
1597
1597
  }
1598
1598
  return { status: s.value, value: l };
1599
1599
  }
@@ -1631,10 +1631,10 @@ class We extends Q {
1631
1631
  const a = this._def.valueType;
1632
1632
  function c(f) {
1633
1633
  const y = /* @__PURE__ */ new Set();
1634
- for (const B of f) {
1635
- if (B.status === "aborted")
1634
+ for (const w of f) {
1635
+ if (w.status === "aborted")
1636
1636
  return H;
1637
- B.status === "dirty" && s.dirty(), y.add(B.value);
1637
+ w.status === "dirty" && s.dirty(), y.add(w.value);
1638
1638
  }
1639
1639
  return { status: s.value, value: y };
1640
1640
  }
@@ -1644,13 +1644,13 @@ class We extends Q {
1644
1644
  min(t, s) {
1645
1645
  return new We({
1646
1646
  ...this._def,
1647
- minSize: { value: t, message: T.toString(s) }
1647
+ minSize: { value: t, message: k.toString(s) }
1648
1648
  });
1649
1649
  }
1650
1650
  max(t, s) {
1651
1651
  return new We({
1652
1652
  ...this._def,
1653
- maxSize: { value: t, message: T.toString(s) }
1653
+ maxSize: { value: t, message: k.toString(s) }
1654
1654
  });
1655
1655
  }
1656
1656
  size(t, s) {
@@ -1715,18 +1715,18 @@ class Le extends Q {
1715
1715
  return this._def.returns instanceof it ? ie(async (...l) => {
1716
1716
  const f = new Oe([]), y = await this._def.args.parseAsync(l, a).catch((N) => {
1717
1717
  throw f.addIssue(r(l, N)), f;
1718
- }), B = await c(...y);
1719
- return await this._def.returns._def.type.parseAsync(B, a).catch((N) => {
1720
- throw f.addIssue(n(B, N)), f;
1718
+ }), w = await c(...y);
1719
+ return await this._def.returns._def.type.parseAsync(w, a).catch((N) => {
1720
+ throw f.addIssue(n(w, N)), f;
1721
1721
  });
1722
1722
  }) : ie((...l) => {
1723
1723
  const f = this._def.args.safeParse(l, a);
1724
1724
  if (!f.success)
1725
1725
  throw new Oe([r(l, f.error)]);
1726
- const y = c(...f.data), B = this._def.returns.safeParse(y, a);
1727
- if (!B.success)
1728
- throw new Oe([n(y, B.error)]);
1729
- return B.data;
1726
+ const y = c(...f.data), w = this._def.returns.safeParse(y, a);
1727
+ if (!w.success)
1728
+ throw new Oe([n(y, w.error)]);
1729
+ return w.data;
1730
1730
  });
1731
1731
  }
1732
1732
  parameters() {
@@ -1760,7 +1760,7 @@ Le.create = (e, t, s) => new Le({
1760
1760
  typeName: I.ZodFunction,
1761
1761
  ...R(s)
1762
1762
  });
1763
- class kt extends Q {
1763
+ class Tt extends Q {
1764
1764
  get schema() {
1765
1765
  return this._def.getter();
1766
1766
  }
@@ -1769,12 +1769,12 @@ class kt extends Q {
1769
1769
  return this._def.getter()._parse({ data: s.data, path: s.path, parent: s });
1770
1770
  }
1771
1771
  }
1772
- kt.create = (e, t) => new kt({
1772
+ Tt.create = (e, t) => new Tt({
1773
1773
  getter: e,
1774
1774
  typeName: I.ZodLazy,
1775
1775
  ...R(t)
1776
1776
  });
1777
- class Tt extends Q {
1777
+ class kt extends Q {
1778
1778
  _parse(t) {
1779
1779
  if (t.data !== this._def.value) {
1780
1780
  const s = this._getOrReturnCtx(t);
@@ -1789,7 +1789,7 @@ class Tt extends Q {
1789
1789
  return this._def.value;
1790
1790
  }
1791
1791
  }
1792
- Tt.create = (e, t) => new Tt({
1792
+ kt.create = (e, t) => new kt({
1793
1793
  value: e,
1794
1794
  typeName: I.ZodLiteral,
1795
1795
  ...R(t)
@@ -2046,7 +2046,7 @@ var I;
2046
2046
  })(I || (I = {}));
2047
2047
  const ta = (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, sa = Zt.create, ra = Ft.create, br = qt.create, na = nt.create, aa = It.create, ia = Ht.create, oa = at.create, ca = Qe.create, la = Te.create, ua = Xt.create, Aa = Ye.create, ma = J.create, da = J.strictCreate, ga = Bt.create, pa = zt.create, fa = wt.create, ha = Ge.create, ya = Mt.create, ba = Rt.create, va = We.create, Ba = Le.create, wa = kt.create, Ma = Tt.create, Ca = Wt.create, Da = Nt.create, xa = it.create, _s = Ve.create, ja = je.create, Ea = Ke.create, Ya = Ve.createWithPreprocess, Ga = () => hr().optional(), Va = () => yr().optional(), Pa = () => br().optional();
2049
+ }) => fr((s) => s instanceof e, t, !0), hr = Te.create, yr = ze.create, sa = Zt.create, ra = Ft.create, br = qt.create, na = nt.create, aa = It.create, ia = Ht.create, oa = at.create, ca = Qe.create, la = ke.create, ua = Xt.create, Aa = Ye.create, ma = J.create, da = J.strictCreate, ga = wt.create, pa = zt.create, fa = Bt.create, ha = Ge.create, ya = Mt.create, ba = Rt.create, va = We.create, wa = Le.create, Ba = Tt.create, Ma = kt.create, Ca = Wt.create, Da = Nt.create, xa = it.create, _s = Ve.create, ja = je.create, Ea = Ke.create, Ya = Ve.createWithPreprocess, Ga = () => hr().optional(), Va = () => yr().optional(), Pa = () => br().optional();
2050
2050
  var ft = /* @__PURE__ */ Object.freeze({
2051
2051
  __proto__: null,
2052
2052
  getParsedType: Xe,
@@ -2058,13 +2058,13 @@ var ft = /* @__PURE__ */ Object.freeze({
2058
2058
  INVALID: H,
2059
2059
  DIRTY: Ln,
2060
2060
  OK: ie,
2061
- isAborted: Bs,
2062
- isDirty: ws,
2061
+ isAborted: ws,
2062
+ isDirty: Bs,
2063
2063
  isValid: Ot,
2064
2064
  isAsync: Ms,
2065
2065
  jsonStringifyReplacer: Is,
2066
2066
  ZodType: Q,
2067
- ZodString: ke,
2067
+ ZodString: Te,
2068
2068
  ZodNumber: ze,
2069
2069
  ZodBigInt: Ft,
2070
2070
  ZodBoolean: qt,
@@ -2073,23 +2073,23 @@ var ft = /* @__PURE__ */ Object.freeze({
2073
2073
  ZodNull: Ht,
2074
2074
  ZodAny: at,
2075
2075
  ZodUnknown: Qe,
2076
- ZodNever: Te,
2076
+ ZodNever: ke,
2077
2077
  ZodVoid: Xt,
2078
2078
  ZodArray: Ye,
2079
2079
  get objectUtil() {
2080
2080
  return Qt;
2081
2081
  },
2082
2082
  ZodObject: J,
2083
- ZodUnion: Bt,
2083
+ ZodUnion: wt,
2084
2084
  ZodDiscriminatedUnion: zt,
2085
- ZodIntersection: wt,
2085
+ ZodIntersection: Bt,
2086
2086
  ZodTuple: Ge,
2087
2087
  ZodRecord: Mt,
2088
2088
  ZodMap: Rt,
2089
2089
  ZodSet: We,
2090
2090
  ZodFunction: Le,
2091
- ZodLazy: kt,
2092
- ZodLiteral: Tt,
2091
+ ZodLazy: Tt,
2092
+ ZodLiteral: kt,
2093
2093
  ZodEnum: Wt,
2094
2094
  ZodNativeEnum: Nt,
2095
2095
  ZodPromise: it,
@@ -2114,10 +2114,10 @@ var ft = /* @__PURE__ */ Object.freeze({
2114
2114
  discriminatedUnion: pa,
2115
2115
  effect: _s,
2116
2116
  enum: Ca,
2117
- function: Ba,
2117
+ function: wa,
2118
2118
  instanceof: ta,
2119
2119
  intersection: fa,
2120
- lazy: wa,
2120
+ lazy: Ba,
2121
2121
  literal: Ma,
2122
2122
  map: ba,
2123
2123
  nan: sa,
@@ -2267,21 +2267,21 @@ function Ra(e) {
2267
2267
  const t = e == null ? void 0 : e.shape;
2268
2268
  return t ? Object.keys(t) : void 0;
2269
2269
  }
2270
- const Br = /* @__PURE__ */ new Map(), Et = [], ka = /* @__PURE__ */ new Map(), $s = "prefix:";
2271
- function Ta(e) {
2270
+ const wr = /* @__PURE__ */ new Map(), Et = [], Ta = /* @__PURE__ */ new Map(), $s = "prefix:";
2271
+ function ka(e) {
2272
2272
  for (const [t, s] of Object.entries(e))
2273
2273
  Na([t], s);
2274
2274
  }
2275
2275
  function Na(e, t) {
2276
2276
  const s = Array.isArray(t) ? t : [t];
2277
2277
  Za(s, e);
2278
- for (const r of s) ka.set(r.builderKey, r);
2278
+ for (const r of s) Ta.set(r.builderKey, r);
2279
2279
  for (const r of e)
2280
2280
  if (r.startsWith($s)) {
2281
2281
  const n = r.slice($s.length), a = Et.findIndex((c) => c.prefix === n);
2282
2282
  a >= 0 ? Et[a] = { prefix: n, builders: s } : Et.push({ prefix: n, builders: s });
2283
2283
  } else
2284
- Br.set(r, s);
2284
+ wr.set(r, s);
2285
2285
  }
2286
2286
  function Za(e, t) {
2287
2287
  const s = /* @__PURE__ */ new Map();
@@ -2300,7 +2300,7 @@ function Za(e, t) {
2300
2300
  }
2301
2301
  }
2302
2302
  function Sa(e) {
2303
- const t = Br.get(e);
2303
+ const t = wr.get(e);
2304
2304
  if (t) return t;
2305
2305
  let s;
2306
2306
  for (const r of Et)
@@ -2484,7 +2484,7 @@ const ri = {
2484
2484
  // Flat POS report subject used by the restaurant role editor.
2485
2485
  report: tt
2486
2486
  };
2487
- Ta(ai);
2487
+ ka(ai);
2488
2488
  function tl(e, t) {
2489
2489
  if (!e) return {};
2490
2490
  const s = new Set(t.ownedFields);
@@ -2504,7 +2504,7 @@ function sl(e, t) {
2504
2504
  ...t.map((s) => s.builder.toCondition(s.formValue))
2505
2505
  );
2506
2506
  }
2507
- const wr = {
2507
+ const Br = {
2508
2508
  mode: "Access window",
2509
2509
  unrestricted: "No restriction",
2510
2510
  since: "Since date",
@@ -2520,11 +2520,11 @@ const wr = {
2520
2520
  inheritedLastMonths: "last {amount} months",
2521
2521
  inheritedLastYears: "last {amount} years"
2522
2522
  }, oi = {
2523
- reportAccessWindow: wr
2523
+ reportAccessWindow: Br
2524
2524
  }, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2525
2525
  __proto__: null,
2526
2526
  default: oi,
2527
- reportAccessWindow: wr
2527
+ reportAccessWindow: Br
2528
2528
  }, Symbol.toStringTag, { value: "Module" })), Mr = {
2529
2529
  mode: "访问期限",
2530
2530
  unrestricted: "无限制",
@@ -2609,6 +2609,9 @@ const wr = {
2609
2609
  dateRange: {
2610
2610
  placeholder: "Select date range"
2611
2611
  },
2612
+ search: {
2613
+ placeholder: "Search user, event, or record"
2614
+ },
2612
2615
  user: {
2613
2616
  feedmeAdmin: "FeedMe Admin"
2614
2617
  },
@@ -2723,6 +2726,77 @@ const wr = {
2723
2726
  requestMethod: "Request Method",
2724
2727
  requestPath: "Request Path",
2725
2728
  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
+ }
2726
2800
  }
2727
2801
  }, fi = {
2728
2802
  date: xr,
@@ -2748,6 +2822,9 @@ const wr = {
2748
2822
  dateRange: {
2749
2823
  placeholder: "เลือกช่วงวันที่"
2750
2824
  },
2825
+ search: {
2826
+ placeholder: "ค้นหาผู้ใช้ เหตุการณ์ หรือรายการ"
2827
+ },
2751
2828
  user: {
2752
2829
  feedmeAdmin: "ผู้ดูแล FeedMe"
2753
2830
  },
@@ -2863,6 +2940,77 @@ const wr = {
2863
2940
  requestMethod: "วิธีการเข้าถึง",
2864
2941
  requestPath: "URL ที่เข้าถึง",
2865
2942
  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
+ }
2866
3014
  }
2867
3015
  }, yi = {
2868
3016
  date: Er,
@@ -2888,6 +3036,9 @@ const wr = {
2888
3036
  dateRange: {
2889
3037
  placeholder: "选择日期范围"
2890
3038
  },
3039
+ search: {
3040
+ placeholder: "搜索用户、事件或记录"
3041
+ },
2891
3042
  user: {
2892
3043
  feedmeAdmin: "FeedMe 管理员"
2893
3044
  },
@@ -3003,11 +3154,82 @@ const wr = {
3003
3154
  requestMethod: "请求方法",
3004
3155
  requestPath: "请求路径",
3005
3156
  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
+ }
3006
3228
  }
3007
3229
  }, vi = {
3008
3230
  date: Gr,
3009
3231
  auditLog: Vr
3010
- }, Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3232
+ }, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3011
3233
  __proto__: null,
3012
3234
  auditLog: Vr,
3013
3235
  date: Gr,
@@ -3028,6 +3250,9 @@ const wr = {
3028
3250
  dateRange: {
3029
3251
  placeholder: "選擇日期範圍"
3030
3252
  },
3253
+ search: {
3254
+ placeholder: "搜尋使用者、事件或記錄"
3255
+ },
3031
3256
  user: {
3032
3257
  feedmeAdmin: "FeedMe 管理員"
3033
3258
  },
@@ -3143,18 +3368,89 @@ const wr = {
3143
3368
  requestMethod: "請求方法",
3144
3369
  requestPath: "請求路徑",
3145
3370
  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
+ }
3146
3442
  }
3147
- }, wi = {
3443
+ }, Bi = {
3148
3444
  date: Pr,
3149
3445
  auditLog: Or
3150
3446
  }, Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3151
3447
  __proto__: null,
3152
3448
  auditLog: Or,
3153
3449
  date: Pr,
3154
- default: wi
3450
+ default: Bi
3155
3451
  }, Symbol.toStringTag, { value: "Module" })), Ci = {
3156
3452
  "en-US": hi,
3157
- "zh-CN": Bi,
3453
+ "zh-CN": wi,
3158
3454
  "th-TH": bi,
3159
3455
  "zh-Hant": Mi
3160
3456
  }, Fr = {
@@ -4354,7 +4650,7 @@ const wr = {
4354
4650
  selectPlaceholder: "เลือกตำแหน่งสิทธิ์"
4355
4651
  }
4356
4652
  }
4357
- }, kr = {
4653
+ }, Tr = {
4358
4654
  title: "บทบาท",
4359
4655
  createButtonLabel: "สร้างบทบาท",
4360
4656
  search: {
@@ -4484,13 +4780,13 @@ const wr = {
4484
4780
  }
4485
4781
  }, Ii = {
4486
4782
  team: Rr,
4487
- permissionSet: kr
4783
+ permissionSet: Tr
4488
4784
  }, Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4489
4785
  __proto__: null,
4490
4786
  default: Ii,
4491
- permissionSet: kr,
4787
+ permissionSet: Tr,
4492
4788
  team: Rr
4493
- }, Symbol.toStringTag, { value: "Module" })), Tr = {
4789
+ }, Symbol.toStringTag, { value: "Module" })), kr = {
4494
4790
  title: "团队成员",
4495
4791
  subtitle: "管理可访问 Portal 和 POS 的团队成员,分配 Portal 权限和 POS 角色。",
4496
4792
  actions: {
@@ -4736,13 +5032,13 @@ const wr = {
4736
5032
  }
4737
5033
  }
4738
5034
  }, Xi = {
4739
- team: Tr,
5035
+ team: kr,
4740
5036
  permissionSet: Nr
4741
5037
  }, Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4742
5038
  __proto__: null,
4743
5039
  default: Xi,
4744
5040
  permissionSet: Nr,
4745
- team: Tr
5041
+ team: kr
4746
5042
  }, Symbol.toStringTag, { value: "Module" })), Zr = {
4747
5043
  title: "團隊成員",
4748
5044
  subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
@@ -4998,16 +5294,16 @@ const wr = {
4998
5294
  }, Ri = {
4999
5295
  team: Zr,
5000
5296
  permissionSet: Sr
5001
- }, ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5297
+ }, Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5002
5298
  __proto__: null,
5003
5299
  default: Ri,
5004
5300
  permissionSet: Sr,
5005
5301
  team: Zr
5006
- }, Symbol.toStringTag, { value: "Module" })), Ti = {
5302
+ }, Symbol.toStringTag, { value: "Module" })), ki = {
5007
5303
  "en-US": qi,
5008
5304
  "zh-CN": Qi,
5009
5305
  "th-TH": Hi,
5010
- "zh-Hant": ki
5306
+ "zh-Hant": Ti
5011
5307
  }, Ur = {
5012
5308
  title: "POS Grant",
5013
5309
  actions: {
@@ -6422,7 +6718,7 @@ const oe = [
6422
6718
  subject: P.inventory_unitCostHistory,
6423
6719
  actions: [i.read]
6424
6720
  }
6425
- ], Bo = [
6721
+ ], wo = [
6426
6722
  ...oe,
6427
6723
  {
6428
6724
  label: "Stock Adjustment",
@@ -6521,7 +6817,7 @@ const Rs = [
6521
6817
  ...yn,
6522
6818
  ...bn
6523
6819
  ];
6524
- const wo = [
6820
+ const Bo = [
6525
6821
  {
6526
6822
  label: "Inventory",
6527
6823
  subject: P.inventory,
@@ -6601,7 +6897,7 @@ const wo = [
6601
6897
  subject: P.inventory_shipment,
6602
6898
  actions: [i.read, i.update]
6603
6899
  }
6604
- ], Bn = [
6900
+ ], wn = [
6605
6901
  {
6606
6902
  label: "Purchase Order",
6607
6903
  subject: P.inventory_purchaseOrder,
@@ -6622,7 +6918,7 @@ const wo = [
6622
6918
  subject: P.inventory_shipment,
6623
6919
  actions: [i.read, i.update]
6624
6920
  }
6625
- ], wn = [
6921
+ ], Bn = [
6626
6922
  ...oe,
6627
6923
  {
6628
6924
  label: "Surcharge",
@@ -6671,8 +6967,8 @@ const wo = [
6671
6967
  ];
6672
6968
  [
6673
6969
  ...vn,
6674
- ...Bn,
6675
6970
  ...wn,
6971
+ ...Bn,
6676
6972
  ...Mn
6677
6973
  ];
6678
6974
  const jo = [
@@ -6739,7 +7035,7 @@ const Po = {
6739
7035
  [`set_${m.inventory_stockAdjustment}`]: {
6740
7036
  key: "sys:inventory:stock_adjustment",
6741
7037
  name: "Stock Adjustment",
6742
- permissions: Bo
7038
+ permissions: wo
6743
7039
  },
6744
7040
  [`set_${m.inventory_unitCostHistory}`]: {
6745
7041
  key: "sys:inventory:unit_cost_history",
@@ -6769,7 +7065,7 @@ const Po = {
6769
7065
  [`set_${m.inventory_ingredient}`]: {
6770
7066
  key: "sys:inventory:ingredient",
6771
7067
  name: "Ingredient",
6772
- permissions: wo
7068
+ permissions: Bo
6773
7069
  },
6774
7070
  [`set_${m.inventory_ingredientGroup}`]: {
6775
7071
  key: "sys:inventory:ingredient_group",
@@ -6799,12 +7095,12 @@ const Po = {
6799
7095
  [`set_${m.inventory_transferOut}`]: {
6800
7096
  key: "sys:inventory:transfer_out",
6801
7097
  name: "Transfer Out",
6802
- permissions: Bn
7098
+ permissions: wn
6803
7099
  },
6804
7100
  [`set_${m.inventory_surcharge}`]: {
6805
7101
  key: "sys:inventory:surcharge",
6806
7102
  name: "Surcharge",
6807
- permissions: wn
7103
+ permissions: Bn
6808
7104
  },
6809
7105
  [`set_${m.inventory_orderTemplate}`]: {
6810
7106
  key: "sys:inventory:order_template",
@@ -7007,8 +7303,8 @@ var Dn = { exports: {} };
7007
7303
  }
7008
7304
  function c(d) {
7009
7305
  var p = "[object " + d + "]";
7010
- return function(w) {
7011
- return Object.prototype.toString.call(w) === p;
7306
+ return function(B) {
7307
+ return Object.prototype.toString.call(B) === p;
7012
7308
  };
7013
7309
  }
7014
7310
  n.r(r), n.d(r, "default", function() {
@@ -7019,27 +7315,27 @@ var Dn = { exports: {} };
7019
7315
  return At;
7020
7316
  });
7021
7317
  var l = c("Array"), f = c("Object"), y = c("Function");
7022
- function B(d, p) {
7318
+ function w(d, p) {
7023
7319
  return y(d.get) ? d.get(p) : d[p];
7024
7320
  }
7025
7321
  function O(d) {
7026
- return function(p, w) {
7027
- if (!l(w) || !w.length) return d(p, w);
7028
- for (var D = 0, E = w.length; D < E; D++)
7029
- if (d(p, B(w, D))) return !0;
7322
+ return function(p, B) {
7323
+ if (!l(B) || !B.length) return d(p, B);
7324
+ for (var D = 0, E = B.length; D < E; D++)
7325
+ if (d(p, w(B, D))) return !0;
7030
7326
  return !1;
7031
7327
  };
7032
7328
  }
7033
7329
  function N(d) {
7034
- return function(p, w) {
7035
- if (!l(w) || !w.length) return d(p, w);
7036
- for (var D = 0, E = w.length; D < E; D++)
7037
- if (!d(p, B(w, D))) return !1;
7330
+ return function(p, B) {
7331
+ if (!l(B) || !B.length) return d(p, B);
7332
+ for (var D = 0, E = B.length; D < E; D++)
7333
+ if (!d(p, w(B, D))) return !1;
7038
7334
  return !0;
7039
7335
  };
7040
7336
  }
7041
- function U(d, p, w, D) {
7042
- return d.validate(d.options, p, w, D);
7337
+ function U(d, p, B, D) {
7338
+ return d.validate(d.options, p, B, D);
7043
7339
  }
7044
7340
  var $ = {
7045
7341
  $eq: O(function(d, p) {
@@ -7069,50 +7365,50 @@ var Dn = { exports: {} };
7069
7365
  $nin: function(d, p) {
7070
7366
  return d(p);
7071
7367
  },
7072
- $not: function(d, p, w, D) {
7073
- return d(p, w, D);
7368
+ $not: function(d, p, B, D) {
7369
+ return d(p, B, D);
7074
7370
  },
7075
7371
  $type: function(d, p) {
7076
7372
  return d(p);
7077
7373
  },
7078
- $all: function(d, p, w, D) {
7079
- return $.$and(d, p, w, D);
7374
+ $all: function(d, p, B, D) {
7375
+ return $.$and(d, p, B, D);
7080
7376
  },
7081
7377
  $size: function(d, p) {
7082
7378
  return !!p && d === p.length;
7083
7379
  },
7084
- $or: function(d, p, w, D) {
7380
+ $or: function(d, p, B, D) {
7085
7381
  for (var E = 0, G = d.length; E < G; E++)
7086
- if (U(B(d, E), p, w, D)) return !0;
7382
+ if (U(w(d, E), p, B, D)) return !0;
7087
7383
  return !1;
7088
7384
  },
7089
- $nor: function(d, p, w, D) {
7090
- return !$.$or(d, p, w, D);
7385
+ $nor: function(d, p, B, D) {
7386
+ return !$.$or(d, p, B, D);
7091
7387
  },
7092
- $and: function(d, p, w, D) {
7388
+ $and: function(d, p, B, D) {
7093
7389
  for (var E = 0, G = d.length; E < G; E++)
7094
- if (!U(B(d, E), p, w, D)) return !1;
7390
+ if (!U(w(d, E), p, B, D)) return !1;
7095
7391
  return !0;
7096
7392
  },
7097
7393
  $regex: O(function(d, p) {
7098
7394
  return typeof p == "string" && d.test(p);
7099
7395
  }),
7100
- $where: function(d, p, w, D) {
7101
- return d.call(p, p, w, D);
7396
+ $where: function(d, p, B, D) {
7397
+ return d.call(p, p, B, D);
7102
7398
  },
7103
- $elemMatch: function(d, p, w, D) {
7399
+ $elemMatch: function(d, p, B, D) {
7104
7400
  return l(p) ? !!~function(E, G) {
7105
7401
  for (var q = 0; q < E.length; q++)
7106
- if (B(E, q), U(G, B(E, q))) return q;
7402
+ if (w(E, q), U(G, w(E, q))) return q;
7107
7403
  return -1;
7108
- }(p, d) : U(d, p, w, D);
7404
+ }(p, d) : U(d, p, B, D);
7109
7405
  },
7110
- $exists: function(d, p, w, D) {
7111
- return D.hasOwnProperty(w) === d;
7406
+ $exists: function(d, p, B, D) {
7407
+ return D.hasOwnProperty(B) === d;
7112
7408
  }
7113
7409
  }, re = {
7114
- $eq: function(d, p, w) {
7115
- var D = w.comparable, E = w.compare;
7410
+ $eq: function(d, p, B) {
7411
+ var D = B.comparable, E = B.compare;
7116
7412
  return d instanceof RegExp ? O(function(G) {
7117
7413
  return typeof G == "string" && d.test(G);
7118
7414
  }) : d instanceof Function ? O(d) : l(d) && !d.length ? O(function(G) {
@@ -7125,32 +7421,32 @@ var Dn = { exports: {} };
7125
7421
  }
7126
7422
  );
7127
7423
  },
7128
- $gt: function(d, p, w) {
7129
- var D = w.comparable, E = w.compare;
7424
+ $gt: function(d, p, B) {
7425
+ var D = B.comparable, E = B.compare;
7130
7426
  return function(G) {
7131
7427
  return E(D(G), D(d)) > 0;
7132
7428
  };
7133
7429
  },
7134
- $gte: function(d, p, w) {
7135
- var D = w.comparable, E = w.compare;
7430
+ $gte: function(d, p, B) {
7431
+ var D = B.comparable, E = B.compare;
7136
7432
  return function(G) {
7137
7433
  return E(D(G), D(d)) >= 0;
7138
7434
  };
7139
7435
  },
7140
- $lt: function(d, p, w) {
7141
- var D = w.comparable, E = w.compare;
7436
+ $lt: function(d, p, B) {
7437
+ var D = B.comparable, E = B.compare;
7142
7438
  return function(G) {
7143
7439
  return E(D(G), D(d)) < 0;
7144
7440
  };
7145
7441
  },
7146
- $lte: function(d, p, w) {
7147
- var D = w.comparable, E = w.compare;
7442
+ $lte: function(d, p, B) {
7443
+ var D = B.comparable, E = B.compare;
7148
7444
  return function(G) {
7149
7445
  return E(D(G), D(d)) <= 0;
7150
7446
  };
7151
7447
  },
7152
- $in: function(d, p, w) {
7153
- var D = w.comparable;
7448
+ $in: function(d, p, B) {
7449
+ var D = B.comparable;
7154
7450
  return function(E) {
7155
7451
  if (!(E instanceof Array)) {
7156
7452
  var G = D(E);
@@ -7163,19 +7459,19 @@ var Dn = { exports: {} };
7163
7459
  for (X = d.length; X--; ) if (d[X] == null) return !0;
7164
7460
  }
7165
7461
  for (X = d.length; X--; ) {
7166
- var q = U(lt(B(d, X), w), G, X, d);
7462
+ var q = U(lt(w(d, X), B), G, X, d);
7167
7463
  if (q && String(q) !== "[object Object]" && String(G) !== "[object Object]")
7168
7464
  return !0;
7169
7465
  }
7170
7466
  return !!~d.indexOf(G);
7171
7467
  }
7172
7468
  for (var X = E.length; X--; )
7173
- if (~d.indexOf(D(B(E, X)))) return !0;
7469
+ if (~d.indexOf(D(w(E, X)))) return !0;
7174
7470
  return !1;
7175
7471
  };
7176
7472
  },
7177
- $nin: function(d, p, w) {
7178
- var D = re.$in(d, p, w);
7473
+ $nin: function(d, p, B) {
7474
+ var D = re.$in(d, p, B);
7179
7475
  return function(E, G, q, X) {
7180
7476
  return !D(E, G, q, X);
7181
7477
  };
@@ -7185,32 +7481,32 @@ var Dn = { exports: {} };
7185
7481
  return p % d[0] == d[1];
7186
7482
  };
7187
7483
  },
7188
- $ne: function(d, p, w) {
7189
- var D = re.$eq(d, p, w);
7484
+ $ne: function(d, p, B) {
7485
+ var D = re.$eq(d, p, B);
7190
7486
  return N(function(E, G, q, X) {
7191
7487
  return !D(E, G, q, X);
7192
7488
  });
7193
7489
  },
7194
- $and: function(d, p, w) {
7195
- return d.map(be(w));
7490
+ $and: function(d, p, B) {
7491
+ return d.map(be(B));
7196
7492
  },
7197
- $all: function(d, p, w) {
7198
- return re.$and(d, p, w);
7493
+ $all: function(d, p, B) {
7494
+ return re.$and(d, p, B);
7199
7495
  },
7200
- $or: function(d, p, w) {
7201
- return d.map(be(w));
7496
+ $or: function(d, p, B) {
7497
+ return d.map(be(B));
7202
7498
  },
7203
- $nor: function(d, p, w) {
7204
- return d.map(be(w));
7499
+ $nor: function(d, p, B) {
7500
+ return d.map(be(B));
7205
7501
  },
7206
- $not: function(d, p, w) {
7207
- var D = be(w)(d);
7502
+ $not: function(d, p, B) {
7503
+ var D = be(B)(d);
7208
7504
  return function(E, G, q) {
7209
7505
  return !U(D, E, G, q);
7210
7506
  };
7211
7507
  },
7212
7508
  $type: function(d) {
7213
- return function(p, w, D) {
7509
+ return function(p, B, D) {
7214
7510
  return p != null && (p instanceof d || p.constructor == d);
7215
7511
  };
7216
7512
  },
@@ -7223,8 +7519,8 @@ var Dn = { exports: {} };
7223
7519
  'In CSP mode, sift does not support strings in "$where" condition'
7224
7520
  );
7225
7521
  },
7226
- $elemMatch: function(d, p, w) {
7227
- return be(w)(d);
7522
+ $elemMatch: function(d, p, B) {
7523
+ return be(B)(d);
7228
7524
  },
7229
7525
  $exists: function(d) {
7230
7526
  return !!d;
@@ -7234,15 +7530,15 @@ var Dn = { exports: {} };
7234
7530
  return { options: d, validate: p };
7235
7531
  }
7236
7532
  function ne(d, p) {
7237
- var w = d.keyPath, D = d.child, E = d.query, G = [];
7533
+ var B = d.keyPath, D = d.child, E = d.query, G = [];
7238
7534
  if (function o(g, A, b, M, V) {
7239
7535
  if (b === A.length || g == null)
7240
7536
  return void V.push([g, A[b - 1], M]);
7241
- var F = B(A, b);
7537
+ var F = w(A, b);
7242
7538
  if (l(g) && isNaN(Number(F)))
7243
- for (var k = 0, j = g.length; k < j; k++) o(B(g, k), A, b, g, V);
7244
- else o(B(g, F), A, b + 1, g, V);
7245
- }(p, w, 0, p, G), G.length === 1) {
7539
+ for (var T = 0, j = g.length; T < j; T++) o(w(g, T), A, b, g, V);
7540
+ else o(w(g, F), A, b + 1, g, V);
7541
+ }(p, B, 0, p, G), G.length === 1) {
7246
7542
  var q = G[0];
7247
7543
  return U(D, q[0], q[1], q[2]);
7248
7544
  }
@@ -7252,11 +7548,11 @@ var Dn = { exports: {} };
7252
7548
  }
7253
7549
  return _;
7254
7550
  }
7255
- function Kt(d, p, w) {
7256
- return de({ keyPath: d, child: p, query: w }, ne);
7551
+ function Kt(d, p, B) {
7552
+ return de({ keyPath: d, child: p, query: B }, ne);
7257
7553
  }
7258
7554
  function be(d) {
7259
- var p = d.comparable, w = d.expressions, D = function(q) {
7555
+ var p = d.comparable, B = d.expressions, D = function(q) {
7260
7556
  var X;
7261
7557
  return (!q || !(X = q) || X.constructor !== Object && X.constructor !== Array && X.constructor.toString() !== "function Object() { [native code] }" && X.constructor.toString() !== "function Array() { [native code] }" || X.toJSON) && (q = { $eq: q }), q;
7262
7558
  }, E = function(q) {
@@ -7265,7 +7561,7 @@ var Dn = { exports: {} };
7265
7561
  for (var _ in q) {
7266
7562
  var te = q[_];
7267
7563
  if (_ !== "$options") {
7268
- var h = $[_] || d && w && w[_];
7564
+ var h = $[_] || d && B && B[_];
7269
7565
  if (h) re[_] && (te = re[_](te, q, d)), X.push(de(p(te), h));
7270
7566
  else {
7271
7567
  if (_.charCodeAt(0) === 36)
@@ -7292,7 +7588,7 @@ var Dn = { exports: {} };
7292
7588
  return !1;
7293
7589
  if (f(d)) {
7294
7590
  if (Object.keys(d).length !== Object.keys(p).length) return !1;
7295
- for (var w in d) if (!Ne(d[w], p[w])) return !1;
7591
+ for (var B in d) if (!Ne(d[B], p[B])) return !1;
7296
7592
  return !0;
7297
7593
  }
7298
7594
  if (l(d)) {
@@ -7304,18 +7600,18 @@ var Dn = { exports: {} };
7304
7600
  return d === p;
7305
7601
  }
7306
7602
  function lt(d, p) {
7307
- var w = be(p)(d);
7308
- return p && p.select && (w = {
7309
- options: w,
7603
+ var B = be(p)(d);
7604
+ return p && p.select && (B = {
7605
+ options: B,
7310
7606
  validate: function(D, E, G, q) {
7311
7607
  return U(D, E && p.select(E), G, q);
7312
7608
  }
7313
- }), w;
7609
+ }), B;
7314
7610
  }
7315
7611
  function Ct(d, p) {
7316
- var w = lt(d, p = Object.assign({ compare: ut, comparable: At }, p));
7612
+ var B = lt(d, p = Object.assign({ compare: ut, comparable: At }, p));
7317
7613
  return function(D, E, G) {
7318
- return U(w, D, E, G);
7614
+ return U(B, D, E, G);
7319
7615
  };
7320
7616
  }
7321
7617
  function ut(d, p) {
@@ -7343,7 +7639,7 @@ function Qo(e, t) {
7343
7639
  function Ro(e, t, s) {
7344
7640
  return t && Qo(e.prototype, t), e;
7345
7641
  }
7346
- function ko(e, t) {
7642
+ function To(e, t) {
7347
7643
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
7348
7644
  }
7349
7645
  function js(e) {
@@ -7356,7 +7652,7 @@ function St(e, t) {
7356
7652
  return r.__proto__ = n, r;
7357
7653
  }, St(e, t);
7358
7654
  }
7359
- function To() {
7655
+ function ko() {
7360
7656
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
7361
7657
  if (typeof Proxy == "function") return !0;
7362
7658
  try {
@@ -7367,7 +7663,7 @@ function To() {
7367
7663
  }
7368
7664
  }
7369
7665
  function Gt(e, t, s) {
7370
- return To() ? Gt = Reflect.construct : Gt = function(n, a, c) {
7666
+ return ko() ? Gt = Reflect.construct : Gt = function(n, a, c) {
7371
7667
  var l = [null];
7372
7668
  l.push.apply(l, a);
7373
7669
  var f = Function.bind.apply(n, l), y = new f();
@@ -7408,7 +7704,7 @@ function nr(e) {
7408
7704
  var xn = function(t) {
7409
7705
  return 'Cannot execute "' + t.action + '" on "' + t.subjectName + '"';
7410
7706
  }, xt = xn, Zo = /* @__PURE__ */ function(e) {
7411
- ko(t, e), t.setDefaultMessage = function(n) {
7707
+ To(t, e), t.setDefaultMessage = function(n) {
7412
7708
  n === null ? xt = xn : xt = typeof n == "string" ? function() {
7413
7709
  return n;
7414
7710
  } : n;
@@ -7526,13 +7822,13 @@ var tc = /* @__PURE__ */ function() {
7526
7822
  return this[me].indexedRules = a.rules, this[me].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", n), this;
7527
7823
  }, t.buildIndexFor = function(r) {
7528
7824
  for (var n = /* @__PURE__ */ Object.create(null), a = this[me].RuleType, c = !0, l = !1, f = 0; f < r.length; f++) {
7529
- var y = new a(r[f]), B = this.expandActions(y.actions), O = Ys(y.subject), N = r.length - f - 1;
7825
+ var y = new a(r[f]), w = this.expandActions(y.actions), O = Ys(y.subject), N = r.length - f - 1;
7530
7826
  c = !!(c && y.inverted), !l && y.fields && (l = !0);
7531
7827
  for (var U = 0; U < O.length; U++) {
7532
7828
  var $ = O[U];
7533
7829
  n[$] = n[$] || /* @__PURE__ */ Object.create(null);
7534
- for (var re = 0; re < B.length; re++) {
7535
- var de = B[re];
7830
+ for (var re = 0; re < w.length; re++) {
7831
+ var de = w[re];
7536
7832
  n[$][de] = n[$][de] || /* @__PURE__ */ Object.create(null), n[$][de][N] = y;
7537
7833
  }
7538
7834
  }
@@ -7678,12 +7974,12 @@ function cc(e, t, s) {
7678
7974
  shallow: c = !0,
7679
7975
  onError: l = oc
7680
7976
  } = r, f = Re(!n), y = c ? On(t) : Re(t);
7681
- let B = 0;
7977
+ let w = 0;
7682
7978
  return cr(async (O) => {
7683
7979
  if (!f.value)
7684
7980
  return;
7685
- B++;
7686
- const N = B;
7981
+ w++;
7982
+ const N = w;
7687
7983
  let U = !1;
7688
7984
  a && Promise.resolve().then(() => {
7689
7985
  a.value = !0;
@@ -7694,11 +7990,11 @@ function cc(e, t, s) {
7694
7990
  a && (a.value = !1), U || re();
7695
7991
  });
7696
7992
  });
7697
- N === B && (y.value = $);
7993
+ N === w && (y.value = $);
7698
7994
  } catch ($) {
7699
7995
  l($);
7700
7996
  } finally {
7701
- a && N === B && (a.value = !1), U = !0;
7997
+ a && N === w && (a.value = !1), U = !0;
7702
7998
  }
7703
7999
  }), n ? Os(() => (f.value = !0, y.value)) : y;
7704
8000
  }
@@ -7785,7 +8081,7 @@ const mc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
7785
8081
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
7786
8082
  }, vc = {
7787
8083
  noPermission: bc
7788
- }, Bc = { class: "w-full h-full flex justify-center items-center" }, wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Mc = { class: "w-[300px] h-[300px]" }, Cc = ["src"], Dc = { class: "text-2xl" }, xc = { class: "text-xl" }, jc = /* @__PURE__ */ ot({
8084
+ }, wc = { class: "w-full h-full flex justify-center items-center" }, Bc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Mc = { class: "w-[300px] h-[300px]" }, Cc = ["src"], Dc = { class: "text-2xl" }, xc = { class: "text-xl" }, jc = /* @__PURE__ */ ot({
7789
8085
  __name: "NoPermission",
7790
8086
  setup(e) {
7791
8087
  const { t } = mr({
@@ -7796,8 +8092,8 @@ const mc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
7796
8092
  "th-TH": vc
7797
8093
  }
7798
8094
  });
7799
- return (s, r) => (ct(), ur("div", Bc, [
7800
- Se("div", wc, [
8095
+ return (s, r) => (ct(), ur("div", wc, [
8096
+ Se("div", Bc, [
7801
8097
  Se("div", Mc, [
7802
8098
  Se("img", {
7803
8099
  src: Ue(mc),
@@ -7851,7 +8147,7 @@ function Yc(e, t) {
7851
8147
  const Gc = /* @__PURE__ */ ot({
7852
8148
  __name: "FullWrapper",
7853
8149
  setup(e) {
7854
- const t = Tn(), s = Re(null), r = Yc(s), n = Os(() => {
8150
+ const t = kn(), s = Re(null), r = Yc(s), n = Os(() => {
7855
8151
  var l;
7856
8152
  const c = t.isAtMost("sm") ? 56 : 0;
7857
8153
  return {
@@ -7881,7 +8177,7 @@ const Gc = /* @__PURE__ */ ot({
7881
8177
  });
7882
8178
  };
7883
8179
  }
7884
- }), Fe = (e) => kn({
8180
+ }), Fe = (e) => Tn({
7885
8181
  loader: e,
7886
8182
  loadingComponent: Pc
7887
8183
  });
@@ -7895,10 +8191,10 @@ const vs = (e) => ({
7895
8191
  }
7896
8192
  ]
7897
8193
  }
7898
- }), Oc = Lt(Fe(() => import("./Main-BUvX24j0.js"))), Fc = Lt(Fe(() => import("./Main-C4cSWAts.js"))), qc = Lt(
7899
- Fe(() => import("./AuditLogList-Rrg_dNYp.js"))
7900
- ), Ic = Lt(Fe(() => import("./Main-BdPIZkik.js"))), Hc = Fe(() => import("./EmployeeList-CckyPQlP.js")), Xc = Fe(() => import("./RoleList-BHvGGF82.js")), Qc = Fe(() => import("./TimesheetList-mOWHmWwo.js")), Rc = Fe(() => import("./TeamMemberList-DPkocw3U.js")), kc = Fe(
7901
- () => import("./PermissionSetList-CP8J9Prx.js")
8194
+ }), Oc = Lt(Fe(() => import("./Main-DgemO-iy.js"))), Fc = Lt(Fe(() => import("./Main-B_L5flWT.js"))), qc = Lt(
8195
+ Fe(() => import("./AuditLogList-DHiqs9G0.js"))
8196
+ ), Ic = Lt(Fe(() => import("./Main-DUbLeLlK.js"))), Hc = Fe(() => import("./EmployeeList-CUd3VH5h.js")), Xc = Fe(() => import("./RoleList-CThb6VEd.js")), Qc = Fe(() => import("./TimesheetList-C_IMtsTH.js")), Rc = Fe(() => import("./TeamMemberList-CAw4jr1b.js")), Tc = Fe(
8197
+ () => import("./PermissionSetList-BaC4lKV5.js")
7902
8198
  ), il = [
7903
8199
  {
7904
8200
  path: "/",
@@ -7951,7 +8247,7 @@ const vs = (e) => ({
7951
8247
  {
7952
8248
  path: "role",
7953
8249
  name: "team-role",
7954
- component: kc
8250
+ component: Tc
7955
8251
  }
7956
8252
  ]
7957
8253
  },
@@ -7960,7 +8256,7 @@ const vs = (e) => ({
7960
8256
  name: "pos-grant",
7961
8257
  component: Ic
7962
8258
  }
7963
- ], Tc = /* @__PURE__ */ ot({
8259
+ ], kc = /* @__PURE__ */ ot({
7964
8260
  __name: "Navigator",
7965
8261
  emits: ["close-navigation"],
7966
8262
  setup(e, { emit: t }) {
@@ -8028,8 +8324,8 @@ const vs = (e) => ({
8028
8324
  }
8029
8325
  l.value !== f && (l.value = f);
8030
8326
  }), (f, y) => {
8031
- const B = Fs("FmCollapsibleTabs");
8032
- return ct(), Ut(B, {
8327
+ const w = Fs("FmCollapsibleTabs");
8328
+ return ct(), Ut(w, {
8033
8329
  modelValue: l.value,
8034
8330
  "onUpdate:modelValue": y[0] || (y[0] = (O) => l.value = O),
8035
8331
  items: c.value,
@@ -8075,23 +8371,23 @@ var Ps = { exports: {} };
8075
8371
  };
8076
8372
  function a(h, u, o, g) {
8077
8373
  return new (o || (o = Promise))(function(A, b) {
8078
- function M(k) {
8374
+ function M(T) {
8079
8375
  try {
8080
- F(g.next(k));
8376
+ F(g.next(T));
8081
8377
  } catch (j) {
8082
8378
  b(j);
8083
8379
  }
8084
8380
  }
8085
- function V(k) {
8381
+ function V(T) {
8086
8382
  try {
8087
- F(g.throw(k));
8383
+ F(g.throw(T));
8088
8384
  } catch (j) {
8089
8385
  b(j);
8090
8386
  }
8091
8387
  }
8092
- function F(k) {
8388
+ function F(T) {
8093
8389
  var j;
8094
- k.done ? A(k.value) : (j = k.value, j instanceof o ? j : new o(function(z) {
8390
+ T.done ? A(T.value) : (j = T.value, j instanceof o ? j : new o(function(z) {
8095
8391
  z(j);
8096
8392
  })).then(M, V);
8097
8393
  }
@@ -8107,7 +8403,7 @@ var Ps = { exports: {} };
8107
8403
  return this;
8108
8404
  }), b;
8109
8405
  function V(F) {
8110
- return function(k) {
8406
+ return function(T) {
8111
8407
  return function(j) {
8112
8408
  if (o) throw new TypeError("Generator is already executing.");
8113
8409
  for (; M; ) try {
@@ -8153,7 +8449,7 @@ var Ps = { exports: {} };
8153
8449
  }
8154
8450
  if (5 & j[0]) throw j[1];
8155
8451
  return { value: j[0] ? j[1] : void 0, done: !0 };
8156
- }([F, k]);
8452
+ }([F, T]);
8157
8453
  };
8158
8454
  }
8159
8455
  }
@@ -8193,7 +8489,7 @@ var Ps = { exports: {} };
8193
8489
  Object.keys(u || {}).includes(g) || o.push(g);
8194
8490
  }), Object.keys(o).length ? o : null;
8195
8491
  }
8196
- var B, O;
8492
+ var w, O;
8197
8493
  function N(h, u, o) {
8198
8494
  var g = "shortString", A = !0;
8199
8495
  typeof o == "number" && (g = "javaDouble", A = !1), h[g] = h[g] || {}, h[g][u] = A ? o + "" : o;
@@ -8212,7 +8508,7 @@ var Ps = { exports: {} };
8212
8508
  }
8213
8509
  (function(h) {
8214
8510
  h.NONE = "NONE", h.DEFAULT_FLAGS = "DEFAULT_FLAGS", h.CACHE = "CACHE", h.SERVER = "SERVER";
8215
- })(B || (B = {}));
8511
+ })(w || (w = {}));
8216
8512
  var de, ne = null, Kt = "FLAGSMITH_EVENT", be = Kt, Ne = "https://edge.api.flagsmith.com/api/v1/", lt = "flagsmith_value_", Ct = "flagsmith_enabled_", ut = "flagsmith_trait_", At = function() {
8217
8513
  function h(u) {
8218
8514
  var o = this;
@@ -8220,18 +8516,18 @@ var Ps = { exports: {} };
8220
8516
  var g = o, A = g.api, b = g.evaluationContext;
8221
8517
  o.log("Get Flags"), o.isLoading = !0, o.loadingState.isFetching || o.setLoadingState(n(n({}, o.loadingState), { isFetching: !0 }));
8222
8518
  var M = "".concat(o.getContext().identity), V = function(F) {
8223
- var k, j, z, ce;
8519
+ var T, j, z, ce;
8224
8520
  if (F && M === "".concat(o.getContext().identity)) {
8225
- var we = F.flags, ge = F.traits, ve = F.identifier;
8521
+ var Be = F.flags, ge = F.traits, ve = F.identifier;
8226
8522
  o.isLoading = !1;
8227
8523
  var pe = {}, fe = {};
8228
- ge = ge || [], (we = we || []).forEach(function(W) {
8524
+ ge = ge || [], (Be = Be || []).forEach(function(W) {
8229
8525
  pe[W.feature.name.toLowerCase().replace(/ /g, "_")] = { id: W.feature.id, enabled: W.enabled, value: W.feature_state_value };
8230
8526
  }), ge.forEach(function(W) {
8231
8527
  fe[W.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: W.transient, value: W.trait_value };
8232
8528
  }), o.oldFlags = n({}, o.flags);
8233
- var Me = y(o.oldFlags, pe), mt = y((k = o.evaluationContext.identity) === null || k === void 0 ? void 0 : k.traits, fe);
8234
- if ((ve || Object.keys(fe).length) && (o.evaluationContext.identity = n(n({}, o.evaluationContext.identity), { traits: fe }), ve && (o.evaluationContext.identity.identifier = ve)), o.flags = pe, o.updateStorage(), o._onChange(o.oldFlags, { isFromServer: !0, flagsChanged: Me, traitsChanged: mt }, o._loadedState(null, B.SERVER)), o.datadogRum) try {
8529
+ var Me = y(o.oldFlags, pe), mt = y((T = o.evaluationContext.identity) === null || T === void 0 ? void 0 : T.traits, fe);
8530
+ if ((ve || Object.keys(fe).length) && (o.evaluationContext.identity = n(n({}, o.evaluationContext.identity), { traits: fe }), ve && (o.evaluationContext.identity.identifier = ve)), o.flags = pe, o.updateStorage(), o._onChange(o.oldFlags, { isFromServer: !0, flagsChanged: Me, traitsChanged: mt }, o._loadedState(null, w.SERVER)), o.datadogRum) try {
8235
8531
  if (o.datadogRum.trackTraits) {
8236
8532
  var dt = {};
8237
8533
  Object.keys(((j = o.evaluationContext.identity) === null || j === void 0 ? void 0 : j.traits) || {}).map(function(W) {
@@ -8256,14 +8552,14 @@ var Ps = { exports: {} };
8256
8552
  }
8257
8553
  };
8258
8554
  return b.identity ? Promise.all([b.identity.traits && Object.keys(b.identity.traits).length || !b.identity.identifier ? o.getJSON(A + "identities/", "POST", JSON.stringify({ identifier: b.identity.identifier, transient: b.identity.transient, traits: Object.entries(b.identity.traits).map(function(F) {
8259
- var k = F[0], j = F[1];
8260
- return { trait_key: k, trait_value: j == null ? void 0 : j.value, transient: j == null ? void 0 : j.transient };
8555
+ var T = F[0], j = F[1];
8556
+ return { trait_key: T, trait_value: j == null ? void 0 : j.value, transient: j == null ? void 0 : j.transient };
8261
8557
  }).filter(function(F) {
8262
8558
  return F.trait_value !== void 0 || (o.log("Warning - attempted to set an undefined trait value for key", F.trait_key), !1);
8263
8559
  }) })) : o.getJSON(A + "identities/?identifier=" + encodeURIComponent(b.identity.identifier) + (b.identity.transient ? "&transient=true" : ""))]).then(function(F) {
8264
8560
  return o.evaluationContext.identity = n(n({}, o.evaluationContext.identity), { traits: {} }), V(F == null ? void 0 : F[0]);
8265
8561
  }).catch(function(F) {
8266
- var k = F.message, j = new Error(k);
8562
+ var T = F.message, j = new Error(T);
8267
8563
  return Promise.reject(j);
8268
8564
  }) : o.getJSON(A + "flags/").then(function(F) {
8269
8565
  return V({ flags: F, traits: void 0 });
@@ -8278,7 +8574,7 @@ var Ps = { exports: {} };
8278
8574
  }).catch(function(A) {
8279
8575
  o.log("Exception fetching evaluationEvent", A);
8280
8576
  }) : void 0;
8281
- }, 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) {
8577
+ }, 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) {
8282
8578
  var M = o.flags && o.flags[g.toLowerCase().replace(/ /g, "_")], V = null;
8283
8579
  if (M && (V = M.value), A != null && A.skipAnalytics || b || o.evaluateFlag(g, "VALUE"), V === null && (A == null ? void 0 : A.fallback) !== void 0) return A.fallback;
8284
8580
  if (A != null && A.json) try {
@@ -8322,13 +8618,13 @@ var Ps = { exports: {} };
8322
8618
  }, this.getJSON = function(g, A, b) {
8323
8619
  var M, V = o;
8324
8620
  V.evaluationContext;
8325
- var F = V.headers, k = { method: A || "GET", body: b, cache: "no-cache", headers: {} };
8326
- o.evaluationContext.environment && (k.headers["X-Environment-Key"] = o.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.");
8621
+ var F = V.headers, T = { method: A || "GET", body: b, cache: "no-cache", headers: {} };
8622
+ o.evaluationContext.environment && (T.headers["X-Environment-Key"] = o.evaluationContext.environment.apiKey), A && A !== "GET" && (T.headers["Content-Type"] = "application/json; charset=utf-8"), F && Object.assign(T.headers, F), O || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
8327
8623
  var j = "".concat((M = o.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
8328
- return O(g, k).then(function(z) {
8329
- var ce, we, ge = "".concat((ce = o.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
8624
+ return O(g, T).then(function(z) {
8625
+ var ce, Be, ge = "".concat((ce = o.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
8330
8626
  if (j === ge) {
8331
- var ve = (we = z.headers) === null || we === void 0 ? void 0 : we.get("x-flagsmith-document-updated-at");
8627
+ var ve = (Be = z.headers) === null || Be === void 0 ? void 0 : Be.get("x-flagsmith-document-updated-at");
8332
8628
  if (ve) try {
8333
8629
  var pe = parseFloat(ve);
8334
8630
  if (isNaN(pe)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
@@ -8361,18 +8657,18 @@ var Ps = { exports: {} };
8361
8657
  return h.prototype.init = function(u) {
8362
8658
  var o, g, A;
8363
8659
  return a(this, void 0, void 0, function() {
8364
- var b, M, V, F, k, j, z, ce, we, ge, ve, pe, fe, Me, mt, dt, Je, le, W, Jt, gt, ks, _e, _t, Ts, Ns, $t, Zs, es, pt, $e, Ss, ue = this;
8365
- return c(this, function(Be) {
8366
- switch (Be.label) {
8660
+ var b, M, V, F, T, j, z, ce, Be, ge, ve, pe, fe, Me, mt, dt, Je, le, W, Jt, gt, Ts, _e, _t, ks, Ns, $t, Zs, es, pt, $e, Ss, ue = this;
8661
+ return c(this, function(we) {
8662
+ switch (we.label) {
8367
8663
  case 0:
8368
- b = re(u.evaluationContext || this.evaluationContext), Be.label = 1;
8664
+ b = re(u.evaluationContext || this.evaluationContext), we.label = 1;
8369
8665
  case 1:
8370
- if (Be.trys.push([1, 13, , 14]), M = u.environmentID, V = u.api, F = V === void 0 ? Ne : V, k = u.headers, j = u.onChange, z = u.cacheFlags, ce = u.datadogRum, we = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Me = u.enableDynatrace, mt = u.enableAnalytics, dt = u.realtime, Je = u.eventSourceUrl, le = Je === void 0 ? "https://realtime.flagsmith.com/" : Je, W = u.AsyncStorage, Jt = u.identity, gt = u.traits, ks = u.state, _e = u.cacheOptions, _t = u.angularHttpClient, Ts = u._trigger, Ns = 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`");
8666
+ if (we.trys.push([1, 13, , 14]), M = u.environmentID, V = u.api, F = V === void 0 ? Ne : V, T = u.headers, j = u.onChange, z = u.cacheFlags, ce = u.datadogRum, Be = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Me = u.enableDynatrace, mt = u.enableAnalytics, dt = u.realtime, Je = u.eventSourceUrl, le = Je === void 0 ? "https://realtime.flagsmith.com/" : Je, W = u.AsyncStorage, Jt = u.identity, gt = u.traits, Ts = u.state, _e = u.cacheOptions, _t = u.angularHttpClient, ks = u._trigger, Ns = 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`");
8371
8667
  if (b.identity = Jt || gt ? { identifier: Jt, traits: gt ? Object.fromEntries(Object.entries(gt).map(function(he) {
8372
8668
  return [he[0], { value: he[1] }];
8373
- })) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers = k, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = j, $t = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Ts || this._trigger, this._triggerLoadingState = Ns || this._triggerLoadingState, this.onError = function(he) {
8374
- ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), we == null || we(he);
8375
- }, 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 = mt || !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), dt && 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(ks), this.log("Initialising with properties", u, this), Me && (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) {
8669
+ })) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers = T, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = j, $t = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = ks || this._trigger, this._triggerLoadingState = Ns || this._triggerLoadingState, this.onError = function(he) {
8670
+ ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), Be == null || Be(he);
8671
+ }, 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 = mt || !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), dt && 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(Ts), this.log("Initialising with properties", u, this), Me && (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) {
8376
8672
  return function(Ce, De) {
8377
8673
  var qe = De.headers, K = De.method, et = De.body;
8378
8674
  return new Promise(function(Ze) {
@@ -8419,7 +8715,7 @@ var Ps = { exports: {} };
8419
8715
  if (!Ce) return [3, 7];
8420
8716
  De = null, qe = null, Ie.label = 1;
8421
8717
  case 1:
8422
- return Ie.trys.push([1, 5, , 6]), K = JSON.parse(Ce), et = !1, Ze = !1, K && K.api === this.api && ((rs = (ss = K.evaluationContext) === null || ss === void 0 ? void 0 : ss.environment) === null || rs === void 0 ? void 0 : rs.apiKey) === ((ns = this.evaluationContext.environment) === null || ns === void 0 ? void 0 : ns.apiKey) && (Pe = !0, this.evaluationContext.identity && ((is = (as = K.evaluationContext) === null || as === void 0 ? void 0 : as.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((cs = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || cs === void 0 ? void 0 : cs.identifier) + " to " + this.evaluationContext.identity.identifier), Pe = !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"), Pe = !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, Pe = !0)), Pe && (et = !0, qe = y((ls = this.evaluationContext.identity) === null || ls === void 0 ? void 0 : ls.traits, (As = (us = K.evaluationContext) === null || us === void 0 ? void 0 : us.identity) === null || As === void 0 ? void 0 : As.traits), De = y(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({}, (ds = K.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity), { traits: n(n({}, ((ps = (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity) === null || ps === void 0 ? void 0 : ps.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), et ? (ts = !pe && (!this.cacheOptions.skipAPI || Ze), this._onChange(null, { isFromServer: !1, flagsChanged: De, traitsChanged: qe }, this._loadedState(null, B.CACHE, ts)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && et && !Ze && this.log("Skipping API, using cache"), ts && this.getFlags().catch(function(Yn) {
8718
+ return Ie.trys.push([1, 5, , 6]), K = JSON.parse(Ce), et = !1, Ze = !1, K && K.api === this.api && ((rs = (ss = K.evaluationContext) === null || ss === void 0 ? void 0 : ss.environment) === null || rs === void 0 ? void 0 : rs.apiKey) === ((ns = this.evaluationContext.environment) === null || ns === void 0 ? void 0 : ns.apiKey) && (Pe = !0, this.evaluationContext.identity && ((is = (as = K.evaluationContext) === null || as === void 0 ? void 0 : as.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((cs = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || cs === void 0 ? void 0 : cs.identifier) + " to " + this.evaluationContext.identity.identifier), Pe = !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"), Pe = !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, Pe = !0)), Pe && (et = !0, qe = y((ls = this.evaluationContext.identity) === null || ls === void 0 ? void 0 : ls.traits, (As = (us = K.evaluationContext) === null || us === void 0 ? void 0 : us.identity) === null || As === void 0 ? void 0 : As.traits), De = y(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({}, (ds = K.evaluationContext) === null || ds === void 0 ? void 0 : ds.identity), { traits: n(n({}, ((ps = (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity) === null || ps === void 0 ? void 0 : ps.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), et ? (ts = !pe && (!this.cacheOptions.skipAPI || Ze), this._onChange(null, { isFromServer: !1, flagsChanged: De, traitsChanged: qe }, this._loadedState(null, w.CACHE, ts)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && et && !Ze && this.log("Skipping API, using cache"), ts && this.getFlags().catch(function(Yn) {
8423
8719
  var ys;
8424
8720
  (ys = zs.onError) === null || ys === void 0 || ys.call(zs, Yn);
8425
8721
  }), [3, 4]) : [3, 2];
@@ -8438,10 +8734,10 @@ var Ps = { exports: {} };
8438
8734
  case 8:
8439
8735
  return Ie.sent(), [3, 10];
8440
8736
  case 9:
8441
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (fs = this.evaluationContext.identity) === null || fs === void 0 ? void 0 : fs.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
8737
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (fs = this.evaluationContext.identity) === null || fs === void 0 ? void 0 : fs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8442
8738
  else {
8443
8739
  if (!this.flags) throw new Error($t);
8444
- this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
8740
+ this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8445
8741
  }
8446
8742
  Ie.label = 10;
8447
8743
  case 10:
@@ -8449,32 +8745,32 @@ var Ps = { exports: {} };
8449
8745
  }
8450
8746
  });
8451
8747
  });
8452
- }, Be.label = 2;
8748
+ }, we.label = 2;
8453
8749
  case 2:
8454
- return Be.trys.push([2, 7, , 8]), ne.getItemSync ? (es = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
8750
+ return we.trys.push([2, 7, , 8]), ne.getItemSync ? (es = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
8455
8751
  case 3:
8456
8752
  return [4, ne.getItem(this.getStorageKey())];
8457
8753
  case 4:
8458
- es = Be.sent(), Be.label = 5;
8754
+ es = we.sent(), we.label = 5;
8459
8755
  case 5:
8460
8756
  return [4, Zs(null, es)];
8461
8757
  case 6:
8462
8758
  case 7:
8463
- return Be.sent(), [3, 8];
8759
+ return we.sent(), [3, 8];
8464
8760
  case 8:
8465
8761
  return [3, 12];
8466
8762
  case 9:
8467
8763
  return pe ? [3, 11] : [4, this.getFlags()];
8468
8764
  case 10:
8469
- return Be.sent(), [3, 12];
8765
+ return we.sent(), [3, 12];
8470
8766
  case 11:
8471
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, ge), traitsChanged: y({}, (o = b.identity) === null || o === void 0 ? void 0 : o.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
8472
- else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = $t), this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, B.DEFAULT_FLAGS)), pt)) throw new Error(pt);
8473
- Be.label = 12;
8767
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, ge), traitsChanged: y({}, (o = b.identity) === null || o === void 0 ? void 0 : o.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8768
+ else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = $t), this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, w.DEFAULT_FLAGS)), pt)) throw new Error(pt);
8769
+ we.label = 12;
8474
8770
  case 12:
8475
8771
  return [3, 14];
8476
8772
  case 13:
8477
- 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;
8773
+ 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;
8478
8774
  case 14:
8479
8775
  return [2];
8480
8776
  }
@@ -8535,7 +8831,7 @@ var Ps = { exports: {} };
8535
8831
  var u = h.fetch, o = h.AsyncStorage, g = h.eventSource;
8536
8832
  return new At({ fetch: u, AsyncStorage: o, eventSource: g });
8537
8833
  }
8538
- var p, w = (p = function(h, u) {
8834
+ var p, B = (p = function(h, u) {
8539
8835
  return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, g) {
8540
8836
  o.__proto__ = g;
8541
8837
  } || function(o, g) {
@@ -8578,7 +8874,7 @@ var Ps = { exports: {} };
8578
8874
  return h.call(this, `EventSource not available.
8579
8875
  Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
8580
8876
  }
8581
- return w(u, h), u;
8877
+ return B(u, h), u;
8582
8878
  }(Error), X = function() {
8583
8879
  function h(u, o) {
8584
8880
  var g = this;
@@ -8676,11 +8972,11 @@ Consider loading an EventSource polyfill and making it available globally as Eve
8676
8972
  return j.toLowerCase() in V;
8677
8973
  } } };
8678
8974
  };
8679
- for (var k in A.open(u.method || "get", h, !0), A.onload = function() {
8975
+ for (var T in A.open(u.method || "get", h, !0), A.onload = function() {
8680
8976
  A.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, z, ce) {
8681
8977
  b.push(z = z.toLowerCase()), M.push([z, ce]), V[z] = V[z] ? V[z] + "," + ce : ce;
8682
8978
  }), o(F());
8683
- }, A.onerror = g, A.withCredentials = u.credentials == "include", u.headers) A.setRequestHeader(k, u.headers[k]);
8979
+ }, A.onerror = g, A.withCredentials = u.credentials == "include", u.headers) A.setRequestHeader(T, u.headers[T]);
8684
8980
  A.send(u.body || null);
8685
8981
  });
8686
8982
  }, te = d({ AsyncStorage: r, fetch: _, eventSource: X });
@@ -8795,49 +9091,49 @@ var Nc = Ps.exports, Zc = {
8795
9091
  }
8796
9092
  }, Dt(xe, "instance"), xe), Uc = Sc.getInstance(), ht = Re(!1), jt = Re([]), st = Re(null);
8797
9093
  function zc(e = Uc) {
8798
- const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (B, O = []) => {
9094
+ const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (w, O = []) => {
8799
9095
  if (ht.value) {
8800
9096
  console.warn("FeatureFlag is already initialized.");
8801
9097
  return;
8802
9098
  }
8803
9099
  try {
8804
- await e.init(B, O), jt.value = await e.getFlags(), ht.value = !0, st.value = null;
9100
+ await e.init(w, O), jt.value = await e.getFlags(), ht.value = !0, st.value = null;
8805
9101
  } catch (N) {
8806
9102
  console.error("Failed to initialize feature flags:", N), st.value = N;
8807
9103
  }
8808
- }, r = async (B) => {
9104
+ }, r = async (w) => {
8809
9105
  if (t())
8810
9106
  try {
8811
- await e.setUser(B), jt.value = await e.getFlags(), st.value = null;
9107
+ await e.setUser(w), jt.value = await e.getFlags(), st.value = null;
8812
9108
  } catch (O) {
8813
9109
  console.error("Failed to set user:", O), st.value = O;
8814
9110
  }
8815
- }, n = async (B) => r(`${or}-${B}`), a = (B, O, N = null) => {
9111
+ }, n = async (w) => r(`${or}-${w}`), a = (w, O, N = null) => {
8816
9112
  if (!t()) return N;
8817
9113
  try {
8818
- return e.getFlagValue(B, O) ?? N;
9114
+ return e.getFlagValue(w, O) ?? N;
8819
9115
  } catch (U) {
8820
- return console.error(`Error getting flag value for ${B}:`, U), N;
9116
+ return console.error(`Error getting flag value for ${w}:`, U), N;
8821
9117
  }
8822
- }, c = (B, O) => {
9118
+ }, c = (w, O) => {
8823
9119
  if (!t()) return O ?? null;
8824
9120
  try {
8825
- return e.getFlag(B) ?? O ?? null;
9121
+ return e.getFlag(w) ?? O ?? null;
8826
9122
  } catch (N) {
8827
- return console.error(`Error getting flag for ${B}:`, N), O ?? null;
9123
+ return console.error(`Error getting flag for ${w}:`, N), O ?? null;
8828
9124
  }
8829
- }, l = async (B, O, N = null, U) => {
9125
+ }, l = async (w, O, N = null, U) => {
8830
9126
  if (!t()) return N;
8831
9127
  try {
8832
- return await e.getUserFlagValue(B, O, N, U);
9128
+ return await e.getUserFlagValue(w, O, N, U);
8833
9129
  } catch ($) {
8834
9130
  return console.error(`Error getting user flag value for ${O}:`, $), N;
8835
9131
  }
8836
- }, f = async (B, O, N = null, U) => l(`${or}-${B}`, O, N, U), y = () => {
9132
+ }, f = async (w, O, N = null, U) => l(`${or}-${w}`, O, N, U), y = () => {
8837
9133
  try {
8838
9134
  e.reset();
8839
- } catch (B) {
8840
- console.error("Error resetting feature flags:", B);
9135
+ } catch (w) {
9136
+ console.error("Error resetting feature flags:", w);
8841
9137
  } finally {
8842
9138
  jt.value = [], ht.value = !1, st.value = null;
8843
9139
  }
@@ -8862,7 +9158,7 @@ const ol = /* @__PURE__ */ ot({
8862
9158
  setup(e) {
8863
9159
  const t = qs(), { init: s } = Wc();
8864
9160
  return Ar(async () => {
8865
- t.registerSidebarComponent(Tc), await s({
9161
+ t.registerSidebarComponent(kc), await s({
8866
9162
  apiKey: t.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
8867
9163
  });
8868
9164
  }), (r, n) => {
@@ -8872,7 +9168,7 @@ const ol = /* @__PURE__ */ ot({
8872
9168
  }
8873
9169
  }), cl = () => {
8874
9170
  const e = [
8875
- Ti,
9171
+ ki,
8876
9172
  Oi,
8877
9173
  Ci,
8878
9174
  Ji,