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

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 (43) hide show
  1. package/dist/AuditLogList-Rrg_dNYp.js +1149 -0
  2. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-CJEkZVoJ.js} +104 -100
  3. package/dist/{EmployeeList-KvjoGI87.js → EmployeeList-CckyPQlP.js} +9 -10
  4. package/dist/{Main-Dn1TfDRj.js → Main-BUvX24j0.js} +9 -9
  5. package/dist/{Main-BLh16xRg.js → Main-BdPIZkik.js} +4 -4
  6. package/dist/{Main-D3TSdtSE.js → Main-C4cSWAts.js} +6 -6
  7. package/dist/{PermissionSetList-Ds69m9UU.js → PermissionSetList-CP8J9Prx.js} +6 -6
  8. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C7X69eQq.js +4121 -0
  9. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-ZAEcrK9Q.js} +2 -1
  10. package/dist/{RoleList-v8McRCnz.js → RoleList-BHvGGF82.js} +8 -8
  11. package/dist/TeamMemberList-DPkocw3U.js +1185 -0
  12. package/dist/{TimesheetList-C1OWa6kf.js → TimesheetList-mOWHmWwo.js} +6 -6
  13. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CLu9gzzi.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CpUHcGUj.js} +2 -2
  14. package/dist/{app-CJouCBgi.js → app-DnaRDAJY.js} +394 -674
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-DUugkgDM.js → dayjs.min-NAaPKajp.js} +1 -1
  17. package/dist/{employee-D5rEVmge.js → employee-CILPIL-b.js} +3 -3
  18. package/dist/{iteration-QRRNYlps.js → iteration-B7PEDIWb.js} +3 -3
  19. package/dist/{lodash-BlZhpHhM.js → lodash-CgE5OnVa.js} +1 -1
  20. package/dist/{rule-Dy7eMChN.js → rule-BmSYQ3Op.js} +17 -13
  21. package/dist/src/api/audit-log/index.d.ts +0 -6
  22. package/dist/src/composables/useBasePermission.d.ts +1 -1
  23. package/dist/src/helpers/filter.d.ts +15 -0
  24. package/dist/src/helpers/permission-reconcile.d.ts +15 -0
  25. package/dist/src/helpers/permission-reconcile.test.d.ts +1 -0
  26. package/dist/src/helpers/permission-set.d.ts +4 -2
  27. package/dist/src/types/audit-log.d.ts +1 -1
  28. package/dist/src/views/audit-log/locales/index.d.ts +0 -296
  29. package/dist/src/views/team/locales/index.d.ts +4 -0
  30. package/dist/style.css +1 -1
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/{useAppStore-CtMoad7V.js → useAppStore-DMmL9JnJ.js} +1 -1
  33. package/dist/useDebounce-CWb5QR9G.js +28 -0
  34. package/dist/{useLoading-CNqlchYO.js → useLoading-D56E7ykF.js} +1 -1
  35. package/dist/{useReportPermissions-C5wGC9bf.js → useReportPermissions-BKj02rVj.js} +3 -3
  36. package/package.json +2 -2
  37. package/dist/AuditLogList-AGlAsWwd.js +0 -1608
  38. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js +0 -4030
  39. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  40. package/dist/TeamMemberList-BYQnNIhT.js +0 -1169
  41. package/dist/src/views/audit-log/event-line.d.ts +0 -13
  42. package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
  43. package/dist/useDebounce-B8ZPVS5C.js +0 -15
@@ -5,7 +5,7 @@ import { isRef as Pn, ref as Re, shallowRef as On, watchEffect as cr, computed a
5
5
  import { useBreakpoints as Tn } 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
- 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))(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 || {});
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 || {});
9
9
  const v = {
10
10
  general: "General",
11
11
  inventory: "Inventory",
@@ -18,7 +18,8 @@ const v = {
18
18
  report: "Report",
19
19
  reports: "Default Report",
20
20
  customReports: "Custom Report",
21
- miniProgram: "Mini Program"
21
+ miniProgram: "Mini Program",
22
+ media: "Media"
22
23
  }, Sn = "access-denied";
23
24
  var Z;
24
25
  (function(e) {
@@ -139,10 +140,10 @@ class Oe extends Error {
139
140
  else if (c.path.length === 0)
140
141
  r._errors.push(s(c));
141
142
  else {
142
- let l = r, h = 0;
143
- for (; h < c.path.length; ) {
144
- const y = c.path[h];
145
- h === c.path.length - 1 ? (l[y] = l[y] || { _errors: [] }, l[y]._errors.push(s(c))) : l[y] = l[y] || { _errors: [] }, l = l[y], h++;
143
+ let l = r, f = 0;
144
+ for (; f < c.path.length; ) {
145
+ const y = c.path[f];
146
+ f === c.path.length - 1 ? (l[y] = l[y] || { _errors: [] }, l[y]._errors.push(s(c))) : l[y] = l[y] || { _errors: [] }, l = l[y], f++;
146
147
  }
147
148
  }
148
149
  };
@@ -234,8 +235,8 @@ const Pt = (e) => {
234
235
  path: a
235
236
  };
236
237
  let l = "";
237
- const h = r.filter((y) => !!y).slice().reverse();
238
- for (const y of h)
238
+ const f = r.filter((y) => !!y).slice().reverse();
239
+ for (const y of f)
239
240
  l = y(c, { data: t, defaultError: l }).message;
240
241
  return {
241
242
  ...n,
@@ -298,7 +299,7 @@ class ae {
298
299
  }
299
300
  const H = Object.freeze({
300
301
  status: "aborted"
301
- }), 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;
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;
302
303
  var T;
303
304
  (function(e) {
304
305
  e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
@@ -419,7 +420,7 @@ class Q {
419
420
  code: C.custom,
420
421
  ...r(n)
421
422
  });
422
- return typeof Promise < "u" && c instanceof Promise ? c.then((h) => h ? !0 : (l(), !1)) : c ? !0 : (l(), !1);
423
+ return typeof Promise < "u" && c instanceof Promise ? c.then((f) => f ? !0 : (l(), !1)) : c ? !0 : (l(), !1);
423
424
  });
424
425
  }
425
426
  refinement(t, s) {
@@ -448,10 +449,10 @@ class Q {
448
449
  return it.create(this);
449
450
  }
450
451
  or(t) {
451
- return wt.create([this, t]);
452
+ return Bt.create([this, t]);
452
453
  }
453
454
  and(t) {
454
- return Bt.create(this, t);
455
+ return wt.create(this, t);
455
456
  }
456
457
  transform(t) {
457
458
  return new Ve({
@@ -1099,22 +1100,22 @@ class J extends Q {
1099
1100
  const { status: r, ctx: n } = this._processInputParams(t), { shape: a, keys: c } = this._getCached(), l = [];
1100
1101
  for (const y in n.data)
1101
1102
  c.includes(y) || l.push(y);
1102
- const h = [];
1103
+ const f = [];
1103
1104
  for (const y of c) {
1104
- const w = a[y], O = n.data[y];
1105
- h.push({
1105
+ const B = a[y], O = n.data[y];
1106
+ f.push({
1106
1107
  key: { status: "valid", value: y },
1107
- value: w._parse(new Ee(n, O, n.path, y)),
1108
+ value: B._parse(new Ee(n, O, n.path, y)),
1108
1109
  alwaysSet: y in n.data
1109
1110
  });
1110
1111
  }
1111
1112
  if (this._def.catchall instanceof Te) {
1112
1113
  const y = this._def.unknownKeys;
1113
1114
  if (y === "passthrough")
1114
- for (const w of l)
1115
- h.push({
1116
- key: { status: "valid", value: w },
1117
- value: { status: "valid", value: n.data[w] }
1115
+ for (const B of l)
1116
+ f.push({
1117
+ key: { status: "valid", value: B },
1118
+ value: { status: "valid", value: n.data[B] }
1118
1119
  });
1119
1120
  else if (y === "strict")
1120
1121
  l.length > 0 && (Y(n, {
@@ -1124,30 +1125,30 @@ class J extends Q {
1124
1125
  else if (y !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1125
1126
  } else {
1126
1127
  const y = this._def.catchall;
1127
- for (const w of l) {
1128
- const O = n.data[w];
1129
- h.push({
1130
- key: { status: "valid", value: w },
1128
+ for (const B of l) {
1129
+ const O = n.data[B];
1130
+ f.push({
1131
+ key: { status: "valid", value: B },
1131
1132
  value: y._parse(
1132
- new Ee(n, O, n.path, w)
1133
+ new Ee(n, O, n.path, B)
1133
1134
  //, ctx.child(key), value, getParsedType(value)
1134
1135
  ),
1135
- alwaysSet: w in n.data
1136
+ alwaysSet: B in n.data
1136
1137
  });
1137
1138
  }
1138
1139
  }
1139
1140
  return n.common.async ? Promise.resolve().then(async () => {
1140
1141
  const y = [];
1141
- for (const w of h) {
1142
- const O = await w.key;
1142
+ for (const B of f) {
1143
+ const O = await B.key;
1143
1144
  y.push({
1144
1145
  key: O,
1145
- value: await w.value,
1146
- alwaysSet: w.alwaysSet
1146
+ value: await B.value,
1147
+ alwaysSet: B.alwaysSet
1147
1148
  });
1148
1149
  }
1149
1150
  return y;
1150
- }).then((y) => ae.mergeObjectSync(r, y)) : ae.mergeObjectSync(r, h);
1151
+ }).then((y) => ae.mergeObjectSync(r, y)) : ae.mergeObjectSync(r, f);
1151
1152
  }
1152
1153
  get shape() {
1153
1154
  return this._def.shape();
@@ -1159,11 +1160,11 @@ class J extends Q {
1159
1160
  ...t !== void 0 ? {
1160
1161
  errorMap: (s, r) => {
1161
1162
  var n, a, c, l;
1162
- const h = (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;
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;
1163
1164
  return s.code === "unrecognized_keys" ? {
1164
- message: (l = T.errToObj(t).message) !== null && l !== void 0 ? l : h
1165
+ message: (l = T.errToObj(t).message) !== null && l !== void 0 ? l : f
1165
1166
  } : {
1166
- message: h
1167
+ message: f
1167
1168
  };
1168
1169
  }
1169
1170
  } : {}
@@ -1280,7 +1281,7 @@ J.lazycreate = (e, t) => new J({
1280
1281
  typeName: I.ZodObject,
1281
1282
  ...R(t)
1282
1283
  });
1283
- class wt extends Q {
1284
+ class Bt extends Q {
1284
1285
  _parse(t) {
1285
1286
  const { ctx: s } = this._processInputParams(t), r = this._def.options;
1286
1287
  function n(a) {
@@ -1318,7 +1319,7 @@ class wt extends Q {
1318
1319
  {
1319
1320
  let a;
1320
1321
  const c = [];
1321
- for (const h of r) {
1322
+ for (const f of r) {
1322
1323
  const y = {
1323
1324
  ...s,
1324
1325
  common: {
@@ -1326,18 +1327,18 @@ class wt extends Q {
1326
1327
  issues: []
1327
1328
  },
1328
1329
  parent: null
1329
- }, w = h._parseSync({
1330
+ }, B = f._parseSync({
1330
1331
  data: s.data,
1331
1332
  path: s.path,
1332
1333
  parent: y
1333
1334
  });
1334
- if (w.status === "valid")
1335
- return w;
1336
- w.status === "dirty" && !a && (a = { result: w, ctx: y }), y.common.issues.length && c.push(y.common.issues);
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);
1337
1338
  }
1338
1339
  if (a)
1339
1340
  return s.common.issues.push(...a.ctx.common.issues), a.result;
1340
- const l = c.map((h) => new Oe(h));
1341
+ const l = c.map((f) => new Oe(f));
1341
1342
  return Y(s, {
1342
1343
  code: C.invalid_union,
1343
1344
  unionErrors: l
@@ -1348,7 +1349,7 @@ class wt extends Q {
1348
1349
  return this._def.options;
1349
1350
  }
1350
1351
  }
1351
- wt.create = (e, t) => new wt({
1352
+ Bt.create = (e, t) => new Bt({
1352
1353
  options: e,
1353
1354
  typeName: I.ZodUnion,
1354
1355
  ...R(t)
@@ -1421,10 +1422,10 @@ function Cs(e, t) {
1421
1422
  if (s === x.object && r === x.object) {
1422
1423
  const n = Z.objectKeys(t), a = Z.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1423
1424
  for (const l of a) {
1424
- const h = Cs(e[l], t[l]);
1425
- if (!h.valid)
1425
+ const f = Cs(e[l], t[l]);
1426
+ if (!f.valid)
1426
1427
  return { valid: !1 };
1427
- c[l] = h.data;
1428
+ c[l] = f.data;
1428
1429
  }
1429
1430
  return { valid: !0, data: c };
1430
1431
  } else if (s === x.array && r === x.array) {
@@ -1432,21 +1433,21 @@ function Cs(e, t) {
1432
1433
  return { valid: !1 };
1433
1434
  const n = [];
1434
1435
  for (let a = 0; a < e.length; a++) {
1435
- const c = e[a], l = t[a], h = Cs(c, l);
1436
- if (!h.valid)
1436
+ const c = e[a], l = t[a], f = Cs(c, l);
1437
+ if (!f.valid)
1437
1438
  return { valid: !1 };
1438
- n.push(h.data);
1439
+ n.push(f.data);
1439
1440
  }
1440
1441
  return { valid: !0, data: n };
1441
1442
  } else return s === x.date && r === x.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
1442
1443
  }
1443
- class Bt extends Q {
1444
+ class wt extends Q {
1444
1445
  _parse(t) {
1445
1446
  const { status: s, ctx: r } = this._processInputParams(t), n = (a, c) => {
1446
- if (ws(a) || ws(c))
1447
+ if (Bs(a) || Bs(c))
1447
1448
  return H;
1448
1449
  const l = Cs(a.value, c.value);
1449
- return l.valid ? ((Bs(a) || Bs(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1450
+ return l.valid ? ((ws(a) || ws(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1450
1451
  code: C.invalid_intersection_types
1451
1452
  }), H);
1452
1453
  };
@@ -1472,7 +1473,7 @@ class Bt extends Q {
1472
1473
  }));
1473
1474
  }
1474
1475
  }
1475
- Bt.create = (e, t, s) => new Bt({
1476
+ wt.create = (e, t, s) => new wt({
1476
1477
  left: e,
1477
1478
  right: t,
1478
1479
  typeName: I.ZodIntersection,
@@ -1501,8 +1502,8 @@ class Ge extends Q {
1501
1502
  type: "array"
1502
1503
  }), s.dirty());
1503
1504
  const a = r.data.map((c, l) => {
1504
- const h = this._def.items[l] || this._def.rest;
1505
- return h ? h._parse(new Ee(r, c, r.path, l)) : null;
1505
+ const f = this._def.items[l] || this._def.rest;
1506
+ return f ? f._parse(new Ee(r, c, r.path, l)) : null;
1506
1507
  }).filter((c) => !!c);
1507
1508
  return r.common.async ? Promise.all(a).then((c) => ae.mergeArray(s, c)) : ae.mergeArray(s, a);
1508
1509
  }
@@ -1571,28 +1572,28 @@ class Rt extends Q {
1571
1572
  expected: x.map,
1572
1573
  received: r.parsedType
1573
1574
  }), H;
1574
- const n = this._def.keyType, a = this._def.valueType, c = [...r.data.entries()].map(([l, h], y) => ({
1575
+ const n = this._def.keyType, a = this._def.valueType, c = [...r.data.entries()].map(([l, f], y) => ({
1575
1576
  key: n._parse(new Ee(r, l, r.path, [y, "key"])),
1576
- value: a._parse(new Ee(r, h, r.path, [y, "value"]))
1577
+ value: a._parse(new Ee(r, f, r.path, [y, "value"]))
1577
1578
  }));
1578
1579
  if (r.common.async) {
1579
1580
  const l = /* @__PURE__ */ new Map();
1580
1581
  return Promise.resolve().then(async () => {
1581
- for (const h of c) {
1582
- const y = await h.key, w = await h.value;
1583
- if (y.status === "aborted" || w.status === "aborted")
1582
+ for (const f of c) {
1583
+ const y = await f.key, B = await f.value;
1584
+ if (y.status === "aborted" || B.status === "aborted")
1584
1585
  return H;
1585
- (y.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(y.value, w.value);
1586
+ (y.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(y.value, B.value);
1586
1587
  }
1587
1588
  return { status: s.value, value: l };
1588
1589
  });
1589
1590
  } else {
1590
1591
  const l = /* @__PURE__ */ new Map();
1591
- for (const h of c) {
1592
- const y = h.key, w = h.value;
1593
- if (y.status === "aborted" || w.status === "aborted")
1592
+ for (const f of c) {
1593
+ const y = f.key, B = f.value;
1594
+ if (y.status === "aborted" || B.status === "aborted")
1594
1595
  return H;
1595
- (y.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(y.value, w.value);
1596
+ (y.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(y.value, B.value);
1596
1597
  }
1597
1598
  return { status: s.value, value: l };
1598
1599
  }
@@ -1628,17 +1629,17 @@ class We extends Q {
1628
1629
  message: n.maxSize.message
1629
1630
  }), s.dirty());
1630
1631
  const a = this._def.valueType;
1631
- function c(h) {
1632
+ function c(f) {
1632
1633
  const y = /* @__PURE__ */ new Set();
1633
- for (const w of h) {
1634
- if (w.status === "aborted")
1634
+ for (const B of f) {
1635
+ if (B.status === "aborted")
1635
1636
  return H;
1636
- w.status === "dirty" && s.dirty(), y.add(w.value);
1637
+ B.status === "dirty" && s.dirty(), y.add(B.value);
1637
1638
  }
1638
1639
  return { status: s.value, value: y };
1639
1640
  }
1640
- const l = [...r.data.values()].map((h, y) => a._parse(new Ee(r, h, r.path, y)));
1641
- return r.common.async ? Promise.all(l).then((h) => c(h)) : c(l);
1641
+ const l = [...r.data.values()].map((f, y) => a._parse(new Ee(r, f, r.path, y)));
1642
+ return r.common.async ? Promise.all(l).then((f) => c(f)) : c(l);
1642
1643
  }
1643
1644
  min(t, s) {
1644
1645
  return new We({
@@ -1678,7 +1679,7 @@ class Le extends Q {
1678
1679
  expected: x.function,
1679
1680
  received: s.parsedType
1680
1681
  }), H;
1681
- function r(l, h) {
1682
+ function r(l, f) {
1682
1683
  return Pt({
1683
1684
  data: l,
1684
1685
  path: s.path,
@@ -1690,11 +1691,11 @@ class Le extends Q {
1690
1691
  ].filter((y) => !!y),
1691
1692
  issueData: {
1692
1693
  code: C.invalid_arguments,
1693
- argumentsError: h
1694
+ argumentsError: f
1694
1695
  }
1695
1696
  });
1696
1697
  }
1697
- function n(l, h) {
1698
+ function n(l, f) {
1698
1699
  return Pt({
1699
1700
  data: l,
1700
1701
  path: s.path,
@@ -1706,26 +1707,26 @@ class Le extends Q {
1706
1707
  ].filter((y) => !!y),
1707
1708
  issueData: {
1708
1709
  code: C.invalid_return_type,
1709
- returnTypeError: h
1710
+ returnTypeError: f
1710
1711
  }
1711
1712
  });
1712
1713
  }
1713
1714
  const a = { errorMap: s.common.contextualErrorMap }, c = s.data;
1714
1715
  return this._def.returns instanceof it ? ie(async (...l) => {
1715
- const h = new Oe([]), y = await this._def.args.parseAsync(l, a).catch((N) => {
1716
- throw h.addIssue(r(l, N)), h;
1717
- }), w = await c(...y);
1718
- return await this._def.returns._def.type.parseAsync(w, a).catch((N) => {
1719
- throw h.addIssue(n(w, N)), h;
1716
+ const f = new Oe([]), y = await this._def.args.parseAsync(l, a).catch((N) => {
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;
1720
1721
  });
1721
1722
  }) : ie((...l) => {
1722
- const h = this._def.args.safeParse(l, a);
1723
- if (!h.success)
1724
- throw new Oe([r(l, h.error)]);
1725
- const y = c(...h.data), w = this._def.returns.safeParse(y, a);
1726
- if (!w.success)
1727
- throw new Oe([n(y, w.error)]);
1728
- return w.data;
1723
+ const f = this._def.args.safeParse(l, a);
1724
+ if (!f.success)
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;
1729
1730
  });
1730
1731
  }
1731
1732
  parameters() {
@@ -1922,10 +1923,10 @@ class Ve extends Q {
1922
1923
  };
1923
1924
  if (a.addIssue = a.addIssue.bind(a), n.type === "refinement") {
1924
1925
  const c = (l) => {
1925
- const h = n.refinement(l, a);
1926
+ const f = n.refinement(l, a);
1926
1927
  if (r.common.async)
1927
- return Promise.resolve(h);
1928
- if (h instanceof Promise)
1928
+ return Promise.resolve(f);
1929
+ if (f instanceof Promise)
1929
1930
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
1930
1931
  return l;
1931
1932
  };
@@ -2045,7 +2046,7 @@ var I;
2045
2046
  })(I || (I = {}));
2046
2047
  const ta = (e, t = {
2047
2048
  message: `Input not instance of ${e.name}`
2048
- }) => 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 = wt.create, pa = zt.create, fa = Bt.create, ha = Ge.create, ya = Mt.create, ba = Rt.create, va = We.create, wa = Le.create, Ba = 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 = 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
2050
  var ft = /* @__PURE__ */ Object.freeze({
2050
2051
  __proto__: null,
2051
2052
  getParsedType: Xe,
@@ -2057,8 +2058,8 @@ var ft = /* @__PURE__ */ Object.freeze({
2057
2058
  INVALID: H,
2058
2059
  DIRTY: Ln,
2059
2060
  OK: ie,
2060
- isAborted: ws,
2061
- isDirty: Bs,
2061
+ isAborted: Bs,
2062
+ isDirty: ws,
2062
2063
  isValid: Ot,
2063
2064
  isAsync: Ms,
2064
2065
  jsonStringifyReplacer: Is,
@@ -2079,9 +2080,9 @@ var ft = /* @__PURE__ */ Object.freeze({
2079
2080
  return Qt;
2080
2081
  },
2081
2082
  ZodObject: J,
2082
- ZodUnion: wt,
2083
+ ZodUnion: Bt,
2083
2084
  ZodDiscriminatedUnion: zt,
2084
- ZodIntersection: Bt,
2085
+ ZodIntersection: wt,
2085
2086
  ZodTuple: Ge,
2086
2087
  ZodRecord: Mt,
2087
2088
  ZodMap: Rt,
@@ -2113,10 +2114,10 @@ var ft = /* @__PURE__ */ Object.freeze({
2113
2114
  discriminatedUnion: pa,
2114
2115
  effect: _s,
2115
2116
  enum: Ca,
2116
- function: wa,
2117
+ function: Ba,
2117
2118
  instanceof: ta,
2118
2119
  intersection: fa,
2119
- lazy: Ba,
2120
+ lazy: wa,
2120
2121
  literal: Ma,
2121
2122
  map: ba,
2122
2123
  nan: sa,
@@ -2266,7 +2267,7 @@ function Ra(e) {
2266
2267
  const t = e == null ? void 0 : e.shape;
2267
2268
  return t ? Object.keys(t) : void 0;
2268
2269
  }
2269
- const wr = /* @__PURE__ */ new Map(), Et = [], ka = /* @__PURE__ */ new Map(), $s = "prefix:";
2270
+ const Br = /* @__PURE__ */ new Map(), Et = [], ka = /* @__PURE__ */ new Map(), $s = "prefix:";
2270
2271
  function Ta(e) {
2271
2272
  for (const [t, s] of Object.entries(e))
2272
2273
  Na([t], s);
@@ -2280,7 +2281,7 @@ function Na(e, t) {
2280
2281
  const n = r.slice($s.length), a = Et.findIndex((c) => c.prefix === n);
2281
2282
  a >= 0 ? Et[a] = { prefix: n, builders: s } : Et.push({ prefix: n, builders: s });
2282
2283
  } else
2283
- wr.set(r, s);
2284
+ Br.set(r, s);
2284
2285
  }
2285
2286
  function Za(e, t) {
2286
2287
  const s = /* @__PURE__ */ new Map();
@@ -2299,7 +2300,7 @@ function Za(e, t) {
2299
2300
  }
2300
2301
  }
2301
2302
  function Sa(e) {
2302
- const t = wr.get(e);
2303
+ const t = Br.get(e);
2303
2304
  if (t) return t;
2304
2305
  let s;
2305
2306
  for (const r of Et)
@@ -2503,7 +2504,7 @@ function sl(e, t) {
2503
2504
  ...t.map((s) => s.builder.toCondition(s.formValue))
2504
2505
  );
2505
2506
  }
2506
- const Br = {
2507
+ const wr = {
2507
2508
  mode: "Access window",
2508
2509
  unrestricted: "No restriction",
2509
2510
  since: "Since date",
@@ -2519,11 +2520,11 @@ const Br = {
2519
2520
  inheritedLastMonths: "last {amount} months",
2520
2521
  inheritedLastYears: "last {amount} years"
2521
2522
  }, oi = {
2522
- reportAccessWindow: Br
2523
+ reportAccessWindow: wr
2523
2524
  }, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2524
2525
  __proto__: null,
2525
2526
  default: oi,
2526
- reportAccessWindow: Br
2527
+ reportAccessWindow: wr
2527
2528
  }, Symbol.toStringTag, { value: "Module" })), Mr = {
2528
2529
  mode: "访问期限",
2529
2530
  unrestricted: "无限制",
@@ -2608,9 +2609,6 @@ const Br = {
2608
2609
  dateRange: {
2609
2610
  placeholder: "Select date range"
2610
2611
  },
2611
- search: {
2612
- placeholder: "Search user, event, or record"
2613
- },
2614
2612
  user: {
2615
2613
  feedmeAdmin: "FeedMe Admin"
2616
2614
  },
@@ -2725,77 +2723,6 @@ const Br = {
2725
2723
  requestMethod: "Request Method",
2726
2724
  requestPath: "Request Path",
2727
2725
  requestBody: "Request Body"
2728
- },
2729
- operation: {
2730
- toggle: "Toggle operations",
2731
- rowHint: "Operation",
2732
- unlabeled: "Operation",
2733
- badge: "{count} ops",
2734
- sheetHeader: "Operation Detail",
2735
- entity: "Entity",
2736
- duration: "Duration",
2737
- durationValue: "{ms} ms",
2738
- error: "Error",
2739
- changes: "Changes",
2740
- showData: "Show data",
2741
- added: "Added",
2742
- removed: "Removed",
2743
- updated: "Updated",
2744
- before: "Before",
2745
- after: "After",
2746
- noChanges: "No changes recorded for this operation.",
2747
- wholeValue: "Value"
2748
- },
2749
- event: {
2750
- sentence: {
2751
- "audit-log": {
2752
- view: "Viewed audit logs"
2753
- },
2754
- restaurant: {
2755
- list: "Listed restaurants"
2756
- },
2757
- "permission-assignment": {
2758
- manage: "Managed permission assignments",
2759
- list: "Listed permission assignments",
2760
- view: "Viewed permission assignment {id}"
2761
- },
2762
- "permission-set": {
2763
- manage: "Managed permission sets",
2764
- list: "Listed permission sets",
2765
- view: "Viewed permission set {id}"
2766
- },
2767
- "portal-user": {
2768
- list: "Listed team members",
2769
- "list-page": "Listed team members",
2770
- view: "Viewed team member {id}",
2771
- create: "Added team member {name}",
2772
- update: "Updated team member {name}",
2773
- delete: "Removed team member {name}"
2774
- },
2775
- "pos-user": {
2776
- list: "Listed employees",
2777
- "list-page": "Listed employees",
2778
- create: "Added employee {name}",
2779
- "sync-meta": "Synced employee data",
2780
- update: "Updated employee {id}",
2781
- migrate: "Migrated employee {id}",
2782
- "generate-passcode": "Generated employee passcode"
2783
- },
2784
- "pos-master-user": {
2785
- create: "Added POS master employee {name}",
2786
- update: "Updated POS master employee {name}",
2787
- delete: "Removed POS master employee {name}"
2788
- },
2789
- "pos-role": {
2790
- list: "Listed employee roles",
2791
- create: "Added employee role {name}",
2792
- update: "Updated employee role {name}"
2793
- },
2794
- timesheet: {
2795
- view: "Viewed timesheets",
2796
- update: "Updated timesheet"
2797
- }
2798
- }
2799
2726
  }
2800
2727
  }, fi = {
2801
2728
  date: xr,
@@ -2821,9 +2748,6 @@ const Br = {
2821
2748
  dateRange: {
2822
2749
  placeholder: "เลือกช่วงวันที่"
2823
2750
  },
2824
- search: {
2825
- placeholder: "ค้นหาผู้ใช้ เหตุการณ์ หรือรายการ"
2826
- },
2827
2751
  user: {
2828
2752
  feedmeAdmin: "ผู้ดูแล FeedMe"
2829
2753
  },
@@ -2939,77 +2863,6 @@ const Br = {
2939
2863
  requestMethod: "วิธีการเข้าถึง",
2940
2864
  requestPath: "URL ที่เข้าถึง",
2941
2865
  requestBody: "เนื้อหาคำขอ"
2942
- },
2943
- operation: {
2944
- toggle: "แสดง/ซ่อนการดำเนินการ",
2945
- rowHint: "การดำเนินการ",
2946
- unlabeled: "การดำเนินการ",
2947
- badge: "{count} รายการ",
2948
- sheetHeader: "รายละเอียดการดำเนินการ",
2949
- entity: "ข้อมูลที่เกี่ยวข้อง",
2950
- duration: "ระยะเวลา",
2951
- durationValue: "{ms} มิลลิวินาที",
2952
- error: "ข้อผิดพลาด",
2953
- changes: "การเปลี่ยนแปลง",
2954
- showData: "แสดงข้อมูล",
2955
- added: "เพิ่ม",
2956
- removed: "ลบ",
2957
- updated: "อัปเดต",
2958
- before: "ก่อนหน้า",
2959
- after: "หลังจาก",
2960
- noChanges: "ไม่มีการเปลี่ยนแปลงที่บันทึกไว้สำหรับการดำเนินการนี้",
2961
- wholeValue: "ค่า"
2962
- },
2963
- event: {
2964
- sentence: {
2965
- "audit-log": {
2966
- view: "ดูบันทึกการตรวจสอบ"
2967
- },
2968
- restaurant: {
2969
- list: "ดูรายการร้านอาหาร"
2970
- },
2971
- "permission-assignment": {
2972
- manage: "จัดการการกำหนดสิทธิ์",
2973
- list: "ดูรายการการกำหนดสิทธิ์",
2974
- view: "ดูการกำหนดสิทธิ์ {id}"
2975
- },
2976
- "permission-set": {
2977
- manage: "จัดการกลุ่มสิทธิ์",
2978
- list: "ดูรายการกลุ่มสิทธิ์",
2979
- view: "ดูกลุ่มสิทธิ์ {id}"
2980
- },
2981
- "portal-user": {
2982
- list: "ดูรายการสมาชิกทีม",
2983
- "list-page": "ดูรายการสมาชิกทีม",
2984
- view: "ดูสมาชิกทีม {id}",
2985
- create: "เพิ่มสมาชิกทีม {name}",
2986
- update: "อัปเดตสมาชิกทีม {name}",
2987
- delete: "ลบสมาชิกทีม {name}"
2988
- },
2989
- "pos-user": {
2990
- list: "ดูรายการพนักงาน",
2991
- "list-page": "ดูรายการพนักงาน",
2992
- create: "เพิ่มพนักงาน {name}",
2993
- "sync-meta": "ซิงค์ข้อมูลพนักงาน",
2994
- update: "อัปเดตพนักงาน {id}",
2995
- migrate: "ย้ายพนักงาน {id}",
2996
- "generate-passcode": "สร้างรหัสผ่านพนักงาน"
2997
- },
2998
- "pos-master-user": {
2999
- create: "เพิ่มพนักงานหลัก POS {name}",
3000
- update: "อัปเดตพนักงานหลัก POS {name}",
3001
- delete: "ลบพนักงานหลัก POS {name}"
3002
- },
3003
- "pos-role": {
3004
- list: "ดูรายการบทบาทพนักงาน",
3005
- create: "เพิ่มบทบาทพนักงาน {name}",
3006
- update: "อัปเดตบทบาทพนักงาน {name}"
3007
- },
3008
- timesheet: {
3009
- view: "ดูใบบันทึกเวลา",
3010
- update: "อัปเดตใบบันทึกเวลา"
3011
- }
3012
- }
3013
2866
  }
3014
2867
  }, yi = {
3015
2868
  date: Er,
@@ -3035,9 +2888,6 @@ const Br = {
3035
2888
  dateRange: {
3036
2889
  placeholder: "选择日期范围"
3037
2890
  },
3038
- search: {
3039
- placeholder: "搜索用户、事件或记录"
3040
- },
3041
2891
  user: {
3042
2892
  feedmeAdmin: "FeedMe 管理员"
3043
2893
  },
@@ -3153,82 +3003,11 @@ const Br = {
3153
3003
  requestMethod: "请求方法",
3154
3004
  requestPath: "请求路径",
3155
3005
  requestBody: "请求内容"
3156
- },
3157
- operation: {
3158
- toggle: "展开/收起操作",
3159
- rowHint: "操作",
3160
- unlabeled: "操作",
3161
- badge: "{count} 项操作",
3162
- sheetHeader: "操作详情",
3163
- entity: "对象",
3164
- duration: "耗时",
3165
- durationValue: "{ms} 毫秒",
3166
- error: "错误",
3167
- changes: "变更内容",
3168
- showData: "显示数据",
3169
- added: "已添加",
3170
- removed: "已移除",
3171
- updated: "已更新",
3172
- before: "变更前",
3173
- after: "变更后",
3174
- noChanges: "此操作未记录任何变更。",
3175
- wholeValue: "值"
3176
- },
3177
- event: {
3178
- sentence: {
3179
- "audit-log": {
3180
- view: "查看了审计日志"
3181
- },
3182
- restaurant: {
3183
- list: "查看了餐厅列表"
3184
- },
3185
- "permission-assignment": {
3186
- manage: "管理了权限分配",
3187
- list: "查看了权限分配列表",
3188
- view: "查看了权限分配 {id}"
3189
- },
3190
- "permission-set": {
3191
- manage: "管理了权限集",
3192
- list: "查看了权限集列表",
3193
- view: "查看了权限集 {id}"
3194
- },
3195
- "portal-user": {
3196
- list: "查看了团队成员列表",
3197
- "list-page": "查看了团队成员列表",
3198
- view: "查看了团队成员 {id}",
3199
- create: "添加了团队成员 {name}",
3200
- update: "更新了团队成员 {name}",
3201
- delete: "移除了团队成员 {name}"
3202
- },
3203
- "pos-user": {
3204
- list: "查看了员工列表",
3205
- "list-page": "查看了员工列表",
3206
- create: "添加了员工 {name}",
3207
- "sync-meta": "同步了员工数据",
3208
- update: "更新了员工 {id}",
3209
- migrate: "迁移了员工 {id}",
3210
- "generate-passcode": "生成了员工密码"
3211
- },
3212
- "pos-master-user": {
3213
- create: "添加了 POS 主员工 {name}",
3214
- update: "更新了 POS 主员工 {name}",
3215
- delete: "移除了 POS 主员工 {name}"
3216
- },
3217
- "pos-role": {
3218
- list: "查看了员工角色列表",
3219
- create: "添加了员工角色 {name}",
3220
- update: "更新了员工角色 {name}"
3221
- },
3222
- timesheet: {
3223
- view: "查看了工时表",
3224
- update: "更新了工时表"
3225
- }
3226
- }
3227
3006
  }
3228
3007
  }, vi = {
3229
3008
  date: Gr,
3230
3009
  auditLog: Vr
3231
- }, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3010
+ }, Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3232
3011
  __proto__: null,
3233
3012
  auditLog: Vr,
3234
3013
  date: Gr,
@@ -3249,9 +3028,6 @@ const Br = {
3249
3028
  dateRange: {
3250
3029
  placeholder: "選擇日期範圍"
3251
3030
  },
3252
- search: {
3253
- placeholder: "搜尋使用者、事件或記錄"
3254
- },
3255
3031
  user: {
3256
3032
  feedmeAdmin: "FeedMe 管理員"
3257
3033
  },
@@ -3367,89 +3143,18 @@ const Br = {
3367
3143
  requestMethod: "請求方法",
3368
3144
  requestPath: "請求路徑",
3369
3145
  requestBody: "請求內容"
3370
- },
3371
- operation: {
3372
- toggle: "展開/收起操作",
3373
- rowHint: "操作",
3374
- unlabeled: "操作",
3375
- badge: "{count} 項操作",
3376
- sheetHeader: "操作詳情",
3377
- entity: "對象",
3378
- duration: "耗時",
3379
- durationValue: "{ms} 毫秒",
3380
- error: "錯誤",
3381
- changes: "變更內容",
3382
- showData: "顯示資料",
3383
- added: "已新增",
3384
- removed: "已移除",
3385
- updated: "已更新",
3386
- before: "變更前",
3387
- after: "變更後",
3388
- noChanges: "此操作未記錄任何變更。",
3389
- wholeValue: "值"
3390
- },
3391
- event: {
3392
- sentence: {
3393
- "audit-log": {
3394
- view: "查看了稽核紀錄"
3395
- },
3396
- restaurant: {
3397
- list: "查看了餐廳列表"
3398
- },
3399
- "permission-assignment": {
3400
- manage: "管理了權限指派",
3401
- list: "查看了權限指派列表",
3402
- view: "查看了權限指派 {id}"
3403
- },
3404
- "permission-set": {
3405
- manage: "管理了權限集",
3406
- list: "查看了權限集列表",
3407
- view: "查看了權限集 {id}"
3408
- },
3409
- "portal-user": {
3410
- list: "查看了團隊成員列表",
3411
- "list-page": "查看了團隊成員列表",
3412
- view: "查看了團隊成員 {id}",
3413
- create: "新增了團隊成員 {name}",
3414
- update: "更新了團隊成員 {name}",
3415
- delete: "移除了團隊成員 {name}"
3416
- },
3417
- "pos-user": {
3418
- list: "查看了員工列表",
3419
- "list-page": "查看了員工列表",
3420
- create: "新增了員工 {name}",
3421
- "sync-meta": "同步了員工資料",
3422
- update: "更新了員工 {id}",
3423
- migrate: "移轉了員工 {id}",
3424
- "generate-passcode": "產生了員工密碼"
3425
- },
3426
- "pos-master-user": {
3427
- create: "新增了 POS 主員工 {name}",
3428
- update: "更新了 POS 主員工 {name}",
3429
- delete: "移除了 POS 主員工 {name}"
3430
- },
3431
- "pos-role": {
3432
- list: "查看了員工角色列表",
3433
- create: "新增了員工角色 {name}",
3434
- update: "更新了員工角色 {name}"
3435
- },
3436
- timesheet: {
3437
- view: "查看了工時表",
3438
- update: "更新了工時表"
3439
- }
3440
- }
3441
3146
  }
3442
- }, Bi = {
3147
+ }, wi = {
3443
3148
  date: Pr,
3444
3149
  auditLog: Or
3445
3150
  }, Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3446
3151
  __proto__: null,
3447
3152
  auditLog: Or,
3448
3153
  date: Pr,
3449
- default: Bi
3154
+ default: wi
3450
3155
  }, Symbol.toStringTag, { value: "Module" })), Ci = {
3451
3156
  "en-US": hi,
3452
- "zh-CN": wi,
3157
+ "zh-CN": Bi,
3453
3158
  "th-TH": bi,
3454
3159
  "zh-Hant": Mi
3455
3160
  }, Fr = {
@@ -4325,7 +4030,8 @@ const Br = {
4325
4030
  permission_placeholder: "Filter by permission",
4326
4031
  selected_permission_prefix: "Selected permissions: ",
4327
4032
  assigned_role_placeholder: "Assigned Role",
4328
- selected_assigned_role_prefix: "Assigned roles: "
4033
+ selected_assigned_role_prefix: "Assigned roles: ",
4034
+ unassigned_label: "Unassigned"
4329
4035
  },
4330
4036
  emptyState: {
4331
4037
  title: "No team members found",
@@ -4577,7 +4283,8 @@ const Br = {
4577
4283
  permission_placeholder: "กรองตามสิทธิ์",
4578
4284
  selected_permission_prefix: "สิทธิ์ที่เลือก: ",
4579
4285
  assigned_role_placeholder: "ตำแหน่งที่กำหนด",
4580
- selected_assigned_role_prefix: "ตำแหน่งที่เลือก: "
4286
+ selected_assigned_role_prefix: "ตำแหน่งที่เลือก: ",
4287
+ unassigned_label: "ยังไม่ได้กำหนด"
4581
4288
  },
4582
4289
  emptyState: {
4583
4290
  title: "ไม่พบผู้ดูแลระบบ",
@@ -4680,7 +4387,7 @@ const Br = {
4680
4387
  includedSetsPlaceholder: "เลือกบทบาทหนึ่งรายการขึ้นไปเพื่อรับสิทธิ์ที่สืบทอดมา",
4681
4388
  overrideInherited: {
4682
4389
  title: "แทนที่สิทธิ์ที่กำหนดเอง?",
4683
- message: "การเปลี่ยนตำแหน่งสิทธิ์ที่เลือกอาจแทนที่สิทธิ์ที่เลือกอยู่ด้วยสิทธิ์ที่สืบทอดจากตำแหน่งเหล่านั้น ต้องการแทนที่รายการที่เลือกอยู่หรือไม่?",
4390
+ message: "การเปลี่ยนบทบาทสิทธิ์ที่เลือกอาจแทนที่สิทธิ์ที่เลือกอยู่ด้วยสิทธิ์ที่สืบทอดจากบทบาทเหล่านั้น ต้องการแทนที่รายการที่เลือกอยู่หรือไม่?",
4684
4391
  override: "แทนที่",
4685
4392
  keepCurrent: "เก็บรายการปัจจุบัน"
4686
4393
  }
@@ -4829,7 +4536,8 @@ const Br = {
4829
4536
  permission_placeholder: "按权限筛选",
4830
4537
  selected_permission_prefix: "已选权限: ",
4831
4538
  assigned_role_placeholder: "分配角色",
4832
- selected_assigned_role_prefix: "已选角色: "
4539
+ selected_assigned_role_prefix: "已选角色: ",
4540
+ unassigned_label: "未分配"
4833
4541
  },
4834
4542
  emptyState: {
4835
4543
  title: "没有团队成员",
@@ -5081,7 +4789,8 @@ const Br = {
5081
4789
  permission_placeholder: "按權限篩選",
5082
4790
  selected_permission_prefix: "已選權限: ",
5083
4791
  assigned_role_placeholder: "分配角色",
5084
- selected_assigned_role_prefix: "已選角色: "
4792
+ selected_assigned_role_prefix: "已選角色: ",
4793
+ unassigned_label: "未分配"
5085
4794
  },
5086
4795
  emptyState: {
5087
4796
  title: "沒有團隊成員",
@@ -6199,6 +5908,14 @@ const Br = {
6199
5908
  actions: [i.manage],
6200
5909
  category: v.miniProgram,
6201
5910
  showByFeatureFlag: "hrm_enable_miniprogram_permission"
5911
+ },
5912
+ // Media
5913
+ mediaAssets: {
5914
+ label: "Media Library Management",
5915
+ subject: m.media_assets,
5916
+ actions: [i.manage],
5917
+ category: v.media,
5918
+ showByFeatureFlag: "hrm_enable_media_permission"
6202
5919
  }
6203
5920
  };
6204
5921
  var S = /* @__PURE__ */ ((e) => (e.crm = "crm", e.crm_user = "crm::user", e.crm_segmentation = "crm::segmentation", e.crm_queue = "crm::queue", e.crm_transaction = "crm::transaction", e.crm_store = "crm::store", e.crm_location = "crm::location", e.crm_effect = "crm::effect", e.crm_setting = "crm::setting", e.crm_reward = "crm::reward", e.crm_campaign = "crm::campaign", e.crm_referral = "crm::referral", e.crm_marketingMaterial = "crm::marketingMaterial", e.crm_voucher = "crm::voucher", e.crm_membership = "crm::membership", e.crm_analytic = "crm::analytic", e.crm_tier = "crm::tier", e.crm_title = "crm::title", e.crm_broadcast = "crm::broadcast", e.crm_point = "crm::point", e.crm_credit = "crm::credit", e.crm_experience = "crm::experience", e.crm_game = "crm::game", e.crm_mission = "crm::mission", e.crm_loyaltyMember = "crm::loyaltyMember", e.crm_loyaltySegment = "crm::loyaltySegment", e.crm_loyaltyCard = "crm::loyaltyCard", e.crm_bin = "crm::bin", e))(S || {});
@@ -6705,7 +6422,7 @@ const oe = [
6705
6422
  subject: P.inventory_unitCostHistory,
6706
6423
  actions: [i.read]
6707
6424
  }
6708
- ], wo = [
6425
+ ], Bo = [
6709
6426
  ...oe,
6710
6427
  {
6711
6428
  label: "Stock Adjustment",
@@ -6804,7 +6521,7 @@ const Rs = [
6804
6521
  ...yn,
6805
6522
  ...bn
6806
6523
  ];
6807
- const Bo = [
6524
+ const wo = [
6808
6525
  {
6809
6526
  label: "Inventory",
6810
6527
  subject: P.inventory,
@@ -6884,7 +6601,7 @@ const Bo = [
6884
6601
  subject: P.inventory_shipment,
6885
6602
  actions: [i.read, i.update]
6886
6603
  }
6887
- ], wn = [
6604
+ ], Bn = [
6888
6605
  {
6889
6606
  label: "Purchase Order",
6890
6607
  subject: P.inventory_purchaseOrder,
@@ -6905,7 +6622,7 @@ const Bo = [
6905
6622
  subject: P.inventory_shipment,
6906
6623
  actions: [i.read, i.update]
6907
6624
  }
6908
- ], Bn = [
6625
+ ], wn = [
6909
6626
  ...oe,
6910
6627
  {
6911
6628
  label: "Surcharge",
@@ -6954,8 +6671,8 @@ const Bo = [
6954
6671
  ];
6955
6672
  [
6956
6673
  ...vn,
6957
- ...wn,
6958
6674
  ...Bn,
6675
+ ...wn,
6959
6676
  ...Mn
6960
6677
  ];
6961
6678
  const jo = [
@@ -7022,7 +6739,7 @@ const Po = {
7022
6739
  [`set_${m.inventory_stockAdjustment}`]: {
7023
6740
  key: "sys:inventory:stock_adjustment",
7024
6741
  name: "Stock Adjustment",
7025
- permissions: wo
6742
+ permissions: Bo
7026
6743
  },
7027
6744
  [`set_${m.inventory_unitCostHistory}`]: {
7028
6745
  key: "sys:inventory:unit_cost_history",
@@ -7052,7 +6769,7 @@ const Po = {
7052
6769
  [`set_${m.inventory_ingredient}`]: {
7053
6770
  key: "sys:inventory:ingredient",
7054
6771
  name: "Ingredient",
7055
- permissions: Bo
6772
+ permissions: wo
7056
6773
  },
7057
6774
  [`set_${m.inventory_ingredientGroup}`]: {
7058
6775
  key: "sys:inventory:ingredient_group",
@@ -7082,12 +6799,12 @@ const Po = {
7082
6799
  [`set_${m.inventory_transferOut}`]: {
7083
6800
  key: "sys:inventory:transfer_out",
7084
6801
  name: "Transfer Out",
7085
- permissions: wn
6802
+ permissions: Bn
7086
6803
  },
7087
6804
  [`set_${m.inventory_surcharge}`]: {
7088
6805
  key: "sys:inventory:surcharge",
7089
6806
  name: "Surcharge",
7090
- permissions: Bn
6807
+ permissions: wn
7091
6808
  },
7092
6809
  [`set_${m.inventory_orderTemplate}`]: {
7093
6810
  key: "sys:inventory:order_template",
@@ -7257,13 +6974,13 @@ var Dn = { exports: {} };
7257
6974
  if (1 & c && (a = n(a)), 8 & c || 4 & c && typeof a == "object" && a && a.__esModule) return a;
7258
6975
  var l = /* @__PURE__ */ Object.create(null);
7259
6976
  if (n.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: a }), 2 & c && typeof a != "string")
7260
- for (var h in a)
6977
+ for (var f in a)
7261
6978
  n.d(
7262
6979
  l,
7263
- h,
6980
+ f,
7264
6981
  (function(y) {
7265
6982
  return a[y];
7266
- }).bind(null, h)
6983
+ }).bind(null, f)
7267
6984
  );
7268
6985
  return l;
7269
6986
  }, n.n = function(a) {
@@ -7290,8 +7007,8 @@ var Dn = { exports: {} };
7290
7007
  }
7291
7008
  function c(d) {
7292
7009
  var p = "[object " + d + "]";
7293
- return function(B) {
7294
- return Object.prototype.toString.call(B) === p;
7010
+ return function(w) {
7011
+ return Object.prototype.toString.call(w) === p;
7295
7012
  };
7296
7013
  }
7297
7014
  n.r(r), n.d(r, "default", function() {
@@ -7301,28 +7018,28 @@ var Dn = { exports: {} };
7301
7018
  }), n.d(r, "comparable", function() {
7302
7019
  return At;
7303
7020
  });
7304
- var l = c("Array"), h = c("Object"), y = c("Function");
7305
- function w(d, p) {
7021
+ var l = c("Array"), f = c("Object"), y = c("Function");
7022
+ function B(d, p) {
7306
7023
  return y(d.get) ? d.get(p) : d[p];
7307
7024
  }
7308
7025
  function O(d) {
7309
- return function(p, B) {
7310
- if (!l(B) || !B.length) return d(p, B);
7311
- for (var D = 0, E = B.length; D < E; D++)
7312
- if (d(p, w(B, D))) return !0;
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;
7313
7030
  return !1;
7314
7031
  };
7315
7032
  }
7316
7033
  function N(d) {
7317
- return function(p, B) {
7318
- if (!l(B) || !B.length) return d(p, B);
7319
- for (var D = 0, E = B.length; D < E; D++)
7320
- if (!d(p, w(B, D))) return !1;
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;
7321
7038
  return !0;
7322
7039
  };
7323
7040
  }
7324
- function U(d, p, B, D) {
7325
- return d.validate(d.options, p, B, D);
7041
+ function U(d, p, w, D) {
7042
+ return d.validate(d.options, p, w, D);
7326
7043
  }
7327
7044
  var $ = {
7328
7045
  $eq: O(function(d, p) {
@@ -7352,50 +7069,50 @@ var Dn = { exports: {} };
7352
7069
  $nin: function(d, p) {
7353
7070
  return d(p);
7354
7071
  },
7355
- $not: function(d, p, B, D) {
7356
- return d(p, B, D);
7072
+ $not: function(d, p, w, D) {
7073
+ return d(p, w, D);
7357
7074
  },
7358
7075
  $type: function(d, p) {
7359
7076
  return d(p);
7360
7077
  },
7361
- $all: function(d, p, B, D) {
7362
- return $.$and(d, p, B, D);
7078
+ $all: function(d, p, w, D) {
7079
+ return $.$and(d, p, w, D);
7363
7080
  },
7364
7081
  $size: function(d, p) {
7365
7082
  return !!p && d === p.length;
7366
7083
  },
7367
- $or: function(d, p, B, D) {
7084
+ $or: function(d, p, w, D) {
7368
7085
  for (var E = 0, G = d.length; E < G; E++)
7369
- if (U(w(d, E), p, B, D)) return !0;
7086
+ if (U(B(d, E), p, w, D)) return !0;
7370
7087
  return !1;
7371
7088
  },
7372
- $nor: function(d, p, B, D) {
7373
- return !$.$or(d, p, B, D);
7089
+ $nor: function(d, p, w, D) {
7090
+ return !$.$or(d, p, w, D);
7374
7091
  },
7375
- $and: function(d, p, B, D) {
7092
+ $and: function(d, p, w, D) {
7376
7093
  for (var E = 0, G = d.length; E < G; E++)
7377
- if (!U(w(d, E), p, B, D)) return !1;
7094
+ if (!U(B(d, E), p, w, D)) return !1;
7378
7095
  return !0;
7379
7096
  },
7380
7097
  $regex: O(function(d, p) {
7381
7098
  return typeof p == "string" && d.test(p);
7382
7099
  }),
7383
- $where: function(d, p, B, D) {
7384
- return d.call(p, p, B, D);
7100
+ $where: function(d, p, w, D) {
7101
+ return d.call(p, p, w, D);
7385
7102
  },
7386
- $elemMatch: function(d, p, B, D) {
7103
+ $elemMatch: function(d, p, w, D) {
7387
7104
  return l(p) ? !!~function(E, G) {
7388
7105
  for (var q = 0; q < E.length; q++)
7389
- if (w(E, q), U(G, w(E, q))) return q;
7106
+ if (B(E, q), U(G, B(E, q))) return q;
7390
7107
  return -1;
7391
- }(p, d) : U(d, p, B, D);
7108
+ }(p, d) : U(d, p, w, D);
7392
7109
  },
7393
- $exists: function(d, p, B, D) {
7394
- return D.hasOwnProperty(B) === d;
7110
+ $exists: function(d, p, w, D) {
7111
+ return D.hasOwnProperty(w) === d;
7395
7112
  }
7396
7113
  }, re = {
7397
- $eq: function(d, p, B) {
7398
- var D = B.comparable, E = B.compare;
7114
+ $eq: function(d, p, w) {
7115
+ var D = w.comparable, E = w.compare;
7399
7116
  return d instanceof RegExp ? O(function(G) {
7400
7117
  return typeof G == "string" && d.test(G);
7401
7118
  }) : d instanceof Function ? O(d) : l(d) && !d.length ? O(function(G) {
@@ -7408,32 +7125,32 @@ var Dn = { exports: {} };
7408
7125
  }
7409
7126
  );
7410
7127
  },
7411
- $gt: function(d, p, B) {
7412
- var D = B.comparable, E = B.compare;
7128
+ $gt: function(d, p, w) {
7129
+ var D = w.comparable, E = w.compare;
7413
7130
  return function(G) {
7414
7131
  return E(D(G), D(d)) > 0;
7415
7132
  };
7416
7133
  },
7417
- $gte: function(d, p, B) {
7418
- var D = B.comparable, E = B.compare;
7134
+ $gte: function(d, p, w) {
7135
+ var D = w.comparable, E = w.compare;
7419
7136
  return function(G) {
7420
7137
  return E(D(G), D(d)) >= 0;
7421
7138
  };
7422
7139
  },
7423
- $lt: function(d, p, B) {
7424
- var D = B.comparable, E = B.compare;
7140
+ $lt: function(d, p, w) {
7141
+ var D = w.comparable, E = w.compare;
7425
7142
  return function(G) {
7426
7143
  return E(D(G), D(d)) < 0;
7427
7144
  };
7428
7145
  },
7429
- $lte: function(d, p, B) {
7430
- var D = B.comparable, E = B.compare;
7146
+ $lte: function(d, p, w) {
7147
+ var D = w.comparable, E = w.compare;
7431
7148
  return function(G) {
7432
7149
  return E(D(G), D(d)) <= 0;
7433
7150
  };
7434
7151
  },
7435
- $in: function(d, p, B) {
7436
- var D = B.comparable;
7152
+ $in: function(d, p, w) {
7153
+ var D = w.comparable;
7437
7154
  return function(E) {
7438
7155
  if (!(E instanceof Array)) {
7439
7156
  var G = D(E);
@@ -7446,19 +7163,19 @@ var Dn = { exports: {} };
7446
7163
  for (X = d.length; X--; ) if (d[X] == null) return !0;
7447
7164
  }
7448
7165
  for (X = d.length; X--; ) {
7449
- var q = U(lt(w(d, X), B), G, X, d);
7166
+ var q = U(lt(B(d, X), w), G, X, d);
7450
7167
  if (q && String(q) !== "[object Object]" && String(G) !== "[object Object]")
7451
7168
  return !0;
7452
7169
  }
7453
7170
  return !!~d.indexOf(G);
7454
7171
  }
7455
7172
  for (var X = E.length; X--; )
7456
- if (~d.indexOf(D(w(E, X)))) return !0;
7173
+ if (~d.indexOf(D(B(E, X)))) return !0;
7457
7174
  return !1;
7458
7175
  };
7459
7176
  },
7460
- $nin: function(d, p, B) {
7461
- var D = re.$in(d, p, B);
7177
+ $nin: function(d, p, w) {
7178
+ var D = re.$in(d, p, w);
7462
7179
  return function(E, G, q, X) {
7463
7180
  return !D(E, G, q, X);
7464
7181
  };
@@ -7468,32 +7185,32 @@ var Dn = { exports: {} };
7468
7185
  return p % d[0] == d[1];
7469
7186
  };
7470
7187
  },
7471
- $ne: function(d, p, B) {
7472
- var D = re.$eq(d, p, B);
7188
+ $ne: function(d, p, w) {
7189
+ var D = re.$eq(d, p, w);
7473
7190
  return N(function(E, G, q, X) {
7474
7191
  return !D(E, G, q, X);
7475
7192
  });
7476
7193
  },
7477
- $and: function(d, p, B) {
7478
- return d.map(be(B));
7194
+ $and: function(d, p, w) {
7195
+ return d.map(be(w));
7479
7196
  },
7480
- $all: function(d, p, B) {
7481
- return re.$and(d, p, B);
7197
+ $all: function(d, p, w) {
7198
+ return re.$and(d, p, w);
7482
7199
  },
7483
- $or: function(d, p, B) {
7484
- return d.map(be(B));
7200
+ $or: function(d, p, w) {
7201
+ return d.map(be(w));
7485
7202
  },
7486
- $nor: function(d, p, B) {
7487
- return d.map(be(B));
7203
+ $nor: function(d, p, w) {
7204
+ return d.map(be(w));
7488
7205
  },
7489
- $not: function(d, p, B) {
7490
- var D = be(B)(d);
7206
+ $not: function(d, p, w) {
7207
+ var D = be(w)(d);
7491
7208
  return function(E, G, q) {
7492
7209
  return !U(D, E, G, q);
7493
7210
  };
7494
7211
  },
7495
7212
  $type: function(d) {
7496
- return function(p, B, D) {
7213
+ return function(p, w, D) {
7497
7214
  return p != null && (p instanceof d || p.constructor == d);
7498
7215
  };
7499
7216
  },
@@ -7506,8 +7223,8 @@ var Dn = { exports: {} };
7506
7223
  'In CSP mode, sift does not support strings in "$where" condition'
7507
7224
  );
7508
7225
  },
7509
- $elemMatch: function(d, p, B) {
7510
- return be(B)(d);
7226
+ $elemMatch: function(d, p, w) {
7227
+ return be(w)(d);
7511
7228
  },
7512
7229
  $exists: function(d) {
7513
7230
  return !!d;
@@ -7517,29 +7234,29 @@ var Dn = { exports: {} };
7517
7234
  return { options: d, validate: p };
7518
7235
  }
7519
7236
  function ne(d, p) {
7520
- var B = d.keyPath, D = d.child, E = d.query, G = [];
7237
+ var w = d.keyPath, D = d.child, E = d.query, G = [];
7521
7238
  if (function o(g, A, b, M, V) {
7522
7239
  if (b === A.length || g == null)
7523
7240
  return void V.push([g, A[b - 1], M]);
7524
- var F = w(A, b);
7241
+ var F = B(A, b);
7525
7242
  if (l(g) && isNaN(Number(F)))
7526
- for (var k = 0, j = g.length; k < j; k++) o(w(g, k), A, b, g, V);
7527
- else o(w(g, F), A, b + 1, g, V);
7528
- }(p, B, 0, p, G), G.length === 1) {
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) {
7529
7246
  var q = G[0];
7530
7247
  return U(D, q[0], q[1], q[2]);
7531
7248
  }
7532
7249
  for (var X = E && E.$ne !== void 0, _ = X, te = 0; te < G.length; te++) {
7533
- var f = G[te], u = U(D, f[0], f[1], f[2]);
7250
+ var h = G[te], u = U(D, h[0], h[1], h[2]);
7534
7251
  X ? _ &= u : _ |= u;
7535
7252
  }
7536
7253
  return _;
7537
7254
  }
7538
- function Kt(d, p, B) {
7539
- return de({ keyPath: d, child: p, query: B }, ne);
7255
+ function Kt(d, p, w) {
7256
+ return de({ keyPath: d, child: p, query: w }, ne);
7540
7257
  }
7541
7258
  function be(d) {
7542
- var p = d.comparable, B = d.expressions, D = function(q) {
7259
+ var p = d.comparable, w = d.expressions, D = function(q) {
7543
7260
  var X;
7544
7261
  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;
7545
7262
  }, E = function(q) {
@@ -7548,8 +7265,8 @@ var Dn = { exports: {} };
7548
7265
  for (var _ in q) {
7549
7266
  var te = q[_];
7550
7267
  if (_ !== "$options") {
7551
- var f = $[_] || d && B && B[_];
7552
- if (f) re[_] && (te = re[_](te, q, d)), X.push(de(p(te), f));
7268
+ var h = $[_] || d && w && w[_];
7269
+ if (h) re[_] && (te = re[_](te, q, d)), X.push(de(p(te), h));
7553
7270
  else {
7554
7271
  if (_.charCodeAt(0) === 36)
7555
7272
  throw new Error("Unknown operation " + _);
@@ -7561,8 +7278,8 @@ var Dn = { exports: {} };
7561
7278
  return X.length === 1 ? X[0] : de(X, $.$and);
7562
7279
  }, G = function(q) {
7563
7280
  return q = D(q), function X(_, te) {
7564
- if (!h(_)) return te;
7565
- for (var f in _) te.push(f), X(_[f], te);
7281
+ if (!f(_)) return te;
7282
+ for (var h in _) te.push(h), X(_[h], te);
7566
7283
  return te;
7567
7284
  }(q, []).join(",").search(/[$.]/) === -1 ? de(q, Ne) : E(q);
7568
7285
  };
@@ -7573,9 +7290,9 @@ var Dn = { exports: {} };
7573
7290
  function Ne(d, p) {
7574
7291
  if (Object.prototype.toString.call(d) !== Object.prototype.toString.call(p))
7575
7292
  return !1;
7576
- if (h(d)) {
7293
+ if (f(d)) {
7577
7294
  if (Object.keys(d).length !== Object.keys(p).length) return !1;
7578
- for (var B in d) if (!Ne(d[B], p[B])) return !1;
7295
+ for (var w in d) if (!Ne(d[w], p[w])) return !1;
7579
7296
  return !0;
7580
7297
  }
7581
7298
  if (l(d)) {
@@ -7587,18 +7304,18 @@ var Dn = { exports: {} };
7587
7304
  return d === p;
7588
7305
  }
7589
7306
  function lt(d, p) {
7590
- var B = be(p)(d);
7591
- return p && p.select && (B = {
7592
- options: B,
7307
+ var w = be(p)(d);
7308
+ return p && p.select && (w = {
7309
+ options: w,
7593
7310
  validate: function(D, E, G, q) {
7594
7311
  return U(D, E && p.select(E), G, q);
7595
7312
  }
7596
- }), B;
7313
+ }), w;
7597
7314
  }
7598
7315
  function Ct(d, p) {
7599
- var B = lt(d, p = Object.assign({ compare: ut, comparable: At }, p));
7316
+ var w = lt(d, p = Object.assign({ compare: ut, comparable: At }, p));
7600
7317
  return function(D, E, G) {
7601
- return U(B, D, E, G);
7318
+ return U(w, D, E, G);
7602
7319
  };
7603
7320
  }
7604
7321
  function ut(d, p) {
@@ -7653,7 +7370,7 @@ function Gt(e, t, s) {
7653
7370
  return To() ? Gt = Reflect.construct : Gt = function(n, a, c) {
7654
7371
  var l = [null];
7655
7372
  l.push.apply(l, a);
7656
- var h = Function.bind.apply(n, l), y = new h();
7373
+ var f = Function.bind.apply(n, l), y = new f();
7657
7374
  return c && St(y, c.prototype), y;
7658
7375
  }, Gt.apply(null, arguments);
7659
7376
  }
@@ -7719,8 +7436,8 @@ var xn = function(t) {
7719
7436
  field: c,
7720
7437
  subjectName: this.ability.subjectName(a)
7721
7438
  });
7722
- var h = l ? l.reason : "";
7723
- throw this.message = this._customMessage || h || xt(this), this;
7439
+ var f = l ? l.reason : "";
7440
+ throw this.message = this._customMessage || f || xt(this), this;
7724
7441
  }
7725
7442
  }, s._setMetadata = function(n) {
7726
7443
  this.subject = n.subject, this.subjectName = n.subjectName, this.action = n.action, this.field = n.field;
@@ -7808,14 +7525,14 @@ var tc = /* @__PURE__ */ function() {
7808
7525
  var a = this.buildIndexFor(r);
7809
7526
  return this[me].indexedRules = a.rules, this[me].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", n), this;
7810
7527
  }, t.buildIndexFor = function(r) {
7811
- for (var n = /* @__PURE__ */ Object.create(null), a = this[me].RuleType, c = !0, l = !1, h = 0; h < r.length; h++) {
7812
- var y = new a(r[h]), w = this.expandActions(y.actions), O = Ys(y.subject), N = r.length - h - 1;
7528
+ 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;
7813
7530
  c = !!(c && y.inverted), !l && y.fields && (l = !0);
7814
7531
  for (var U = 0; U < O.length; U++) {
7815
7532
  var $ = O[U];
7816
7533
  n[$] = n[$] || /* @__PURE__ */ Object.create(null);
7817
- for (var re = 0; re < w.length; re++) {
7818
- var de = w[re];
7534
+ for (var re = 0; re < B.length; re++) {
7535
+ var de = B[re];
7819
7536
  n[$][de] = n[$][de] || /* @__PURE__ */ Object.create(null), n[$][de][N] = y;
7820
7537
  }
7821
7538
  }
@@ -7845,8 +7562,8 @@ var tc = /* @__PURE__ */ function() {
7845
7562
  var a = this.subjectName(n), c = this[me].mergedRules, l = a + "_" + r;
7846
7563
  return c[l] || (c[l] = this.mergeRulesFor(r, a)), c[l];
7847
7564
  }, t.mergeRulesFor = function(r, n) {
7848
- var a = this[me].indexedRules, c = [n, "all"].reduce(function(l, h) {
7849
- var y = a[h];
7565
+ var a = this[me].indexedRules, c = [n, "all"].reduce(function(l, f) {
7566
+ var y = a[f];
7850
7567
  return y ? Object.assign(l, y[r], y.manage) : l;
7851
7568
  }, []);
7852
7569
  return c.filter(Boolean);
@@ -7930,10 +7647,13 @@ function ac(e, t) {
7930
7647
  const r = jn(t), n = En(r, e) ? e.coverSubject : void 0, a = [e.subject, n].filter(
7931
7648
  (c) => c !== void 0
7932
7649
  ).flatMap((c) => {
7933
- const l = Sa(c).flatMap((h) => h.ownedFields);
7934
- return l.length === 0 ? [] : r.rulesFor(e.action, c).filter((h) => !h.inverted).map((h) => ({ rule: h, ownedFields: l }));
7650
+ const l = Sa(c).filter((f) => {
7651
+ var y;
7652
+ return ((y = f.appliesToActions) == null ? void 0 : y.call(f, [e.action])) ?? !0;
7653
+ }).flatMap((f) => f.ownedFields);
7654
+ return l.length === 0 ? [] : r.rulesFor(e.action, c, e.field).filter((f) => !f.inverted).map((f) => ({ rule: f, ownedFields: l }));
7935
7655
  });
7936
- return a.length === 0 ? { ...s, conditionEvaluation: "not_enforced" } : a.some(({ rule: c, ownedFields: l }) => !(c.conditions ? Object.keys(c.conditions) : []).some((h) => l.includes(h))) ? { ...s, conditionEvaluation: "not_enforced" } : {
7656
+ return a.length === 0 ? { ...s, conditionEvaluation: "not_enforced" } : a.some(({ rule: c, ownedFields: l }) => !(c.conditions ? Object.keys(c.conditions) : []).some((f) => l.includes(f))) ? { ...s, conditionEvaluation: "not_enforced" } : {
7937
7657
  granted: !1,
7938
7658
  decisivePermission: e,
7939
7659
  decisiveRule: null,
@@ -7957,13 +7677,13 @@ function cc(e, t, s) {
7957
7677
  evaluating: a = void 0,
7958
7678
  shallow: c = !0,
7959
7679
  onError: l = oc
7960
- } = r, h = Re(!n), y = c ? On(t) : Re(t);
7961
- let w = 0;
7680
+ } = r, f = Re(!n), y = c ? On(t) : Re(t);
7681
+ let B = 0;
7962
7682
  return cr(async (O) => {
7963
- if (!h.value)
7683
+ if (!f.value)
7964
7684
  return;
7965
- w++;
7966
- const N = w;
7685
+ B++;
7686
+ const N = B;
7967
7687
  let U = !1;
7968
7688
  a && Promise.resolve().then(() => {
7969
7689
  a.value = !0;
@@ -7974,13 +7694,13 @@ function cc(e, t, s) {
7974
7694
  a && (a.value = !1), U || re();
7975
7695
  });
7976
7696
  });
7977
- N === w && (y.value = $);
7697
+ N === B && (y.value = $);
7978
7698
  } catch ($) {
7979
7699
  l($);
7980
7700
  } finally {
7981
- a && N === w && (a.value = !1), U = !0;
7701
+ a && N === B && (a.value = !1), U = !0;
7982
7702
  }
7983
- }), n ? Os(() => (h.value = !0, y.value)) : y;
7703
+ }), n ? Os(() => (f.value = !0, y.value)) : y;
7984
7704
  }
7985
7705
  async function lc(e) {
7986
7706
  const { sessionUser: t, validationManifest: s } = e, { requiredRoles: r, requiredCaslPermissions: n, customValidationFunction: a } = s;
@@ -8065,7 +7785,7 @@ const mc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8065
7785
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
8066
7786
  }, vc = {
8067
7787
  noPermission: bc
8068
- }, 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({
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({
8069
7789
  __name: "NoPermission",
8070
7790
  setup(e) {
8071
7791
  const { t } = mr({
@@ -8076,8 +7796,8 @@ const mc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8076
7796
  "th-TH": vc
8077
7797
  }
8078
7798
  });
8079
- return (s, r) => (ct(), ur("div", wc, [
8080
- Se("div", Bc, [
7799
+ return (s, r) => (ct(), ur("div", Bc, [
7800
+ Se("div", wc, [
8081
7801
  Se("div", Mc, [
8082
7802
  Se("img", {
8083
7803
  src: Ue(mc),
@@ -8175,10 +7895,10 @@ const vs = (e) => ({
8175
7895
  }
8176
7896
  ]
8177
7897
  }
8178
- }), Oc = Lt(Fe(() => import("./Main-Dn1TfDRj.js"))), Fc = Lt(Fe(() => import("./Main-D3TSdtSE.js"))), qc = Lt(
8179
- Fe(() => import("./AuditLogList-AGlAsWwd.js"))
8180
- ), Ic = Lt(Fe(() => import("./Main-BLh16xRg.js"))), Hc = Fe(() => import("./EmployeeList-KvjoGI87.js")), Xc = Fe(() => import("./RoleList-v8McRCnz.js")), Qc = Fe(() => import("./TimesheetList-C1OWa6kf.js")), Rc = Fe(() => import("./TeamMemberList-BYQnNIhT.js")), kc = Fe(
8181
- () => import("./PermissionSetList-Ds69m9UU.js")
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")
8182
7902
  ), il = [
8183
7903
  {
8184
7904
  path: "/",
@@ -8246,8 +7966,8 @@ const vs = (e) => ({
8246
7966
  setup(e, { emit: t }) {
8247
7967
  const s = t, { t: r } = mr(), n = Zn(), { sessionUser: a } = qs(), c = Os(() => {
8248
7968
  var y;
8249
- const h = [];
8250
- return h.push({
7969
+ const f = [];
7970
+ return f.push({
8251
7971
  label: r("hr.employee.title"),
8252
7972
  value: "employee",
8253
7973
  action: () => {
@@ -8256,7 +7976,7 @@ const vs = (e) => ({
8256
7976
  query: n.currentRoute.value.query
8257
7977
  }), s("close-navigation");
8258
7978
  }
8259
- }), h.push({
7979
+ }), f.push({
8260
7980
  label: r("team.title"),
8261
7981
  value: "team-member",
8262
7982
  action: () => {
@@ -8265,7 +7985,7 @@ const vs = (e) => ({
8265
7985
  query: n.currentRoute.value.query
8266
7986
  }), s("close-navigation");
8267
7987
  }
8268
- }), h.push({
7988
+ }), f.push({
8269
7989
  label: r("auditLog.title"),
8270
7990
  value: "audit-log",
8271
7991
  action: () => {
@@ -8273,7 +7993,7 @@ const vs = (e) => ({
8273
7993
  name: se.AUDIT_LOG
8274
7994
  }), s("close-navigation");
8275
7995
  }
8276
- }), (y = a.value) != null && y.role.isAdmin && h.push({
7996
+ }), (y = a.value) != null && y.role.isAdmin && f.push({
8277
7997
  label: r("grantUser.title"),
8278
7998
  value: "pos-grant",
8279
7999
  action: () => {
@@ -8282,34 +8002,34 @@ const vs = (e) => ({
8282
8002
  query: n.currentRoute.value.query
8283
8003
  }), s("close-navigation");
8284
8004
  }
8285
- }), h;
8005
+ }), f;
8286
8006
  }), l = Re();
8287
8007
  return cr(() => {
8288
8008
  var y;
8289
- let h = (y = n.currentRoute.value) == null ? void 0 : y.name;
8290
- switch (h) {
8009
+ let f = (y = n.currentRoute.value) == null ? void 0 : y.name;
8010
+ switch (f) {
8291
8011
  case se.EMPLOYEE:
8292
8012
  case se.ROLE:
8293
8013
  case se.TIMESHEET:
8294
- h = se.EMPLOYEE;
8014
+ f = se.EMPLOYEE;
8295
8015
  break;
8296
8016
  case se.TEAM_MEMBER:
8297
8017
  case se.TEAM_ROLE:
8298
- h = se.TEAM_MEMBER;
8018
+ f = se.TEAM_MEMBER;
8299
8019
  break;
8300
8020
  case se.AUDIT_LOG:
8301
- h = se.AUDIT_LOG;
8021
+ f = se.AUDIT_LOG;
8302
8022
  break;
8303
8023
  case se.POS_GRANT:
8304
- h = "pos-grant";
8024
+ f = "pos-grant";
8305
8025
  break;
8306
8026
  default:
8307
- h = se.EMPLOYEE;
8027
+ f = se.EMPLOYEE;
8308
8028
  }
8309
- l.value !== h && (l.value = h);
8310
- }), (h, y) => {
8311
- const w = Fs("FmCollapsibleTabs");
8312
- return ct(), Ut(w, {
8029
+ l.value !== f && (l.value = f);
8030
+ }), (f, y) => {
8031
+ const B = Fs("FmCollapsibleTabs");
8032
+ return ct(), Ut(B, {
8313
8033
  modelValue: l.value,
8314
8034
  "onUpdate:modelValue": y[0] || (y[0] = (O) => l.value = O),
8315
8035
  items: c.value,
@@ -8323,37 +8043,37 @@ var Ps = { exports: {} };
8323
8043
  (function(s, r) {
8324
8044
  r(t);
8325
8045
  })(yt, function(s) {
8326
- var r = { getItemSync: function(f) {
8046
+ var r = { getItemSync: function(h) {
8327
8047
  try {
8328
- return localStorage.getItem(f) || null;
8048
+ return localStorage.getItem(h) || null;
8329
8049
  } catch {
8330
8050
  return null;
8331
8051
  }
8332
- }, getItem: function(f, u) {
8052
+ }, getItem: function(h, u) {
8333
8053
  var o = this;
8334
8054
  return new Promise(function(g, A) {
8335
8055
  try {
8336
- var b = o.getItemSync(f);
8056
+ var b = o.getItemSync(h);
8337
8057
  u == null || u(null, b), g(b);
8338
8058
  } catch (M) {
8339
8059
  u && u(M, null), A(M);
8340
8060
  }
8341
8061
  });
8342
- }, setItem: function(f, u, o) {
8062
+ }, setItem: function(h, u, o) {
8343
8063
  return new Promise(function(g, A) {
8344
8064
  try {
8345
- localStorage.setItem(f, u), o && o(null, u), g(u);
8065
+ localStorage.setItem(h, u), o && o(null, u), g(u);
8346
8066
  } catch (b) {
8347
8067
  o && o(b, null), A(b);
8348
8068
  }
8349
8069
  });
8350
8070
  } }, n = function() {
8351
- return n = Object.assign || function(f) {
8352
- for (var u, o = 1, g = arguments.length; o < g; o++) for (var A in u = arguments[o]) Object.prototype.hasOwnProperty.call(u, A) && (f[A] = u[A]);
8353
- return f;
8071
+ return n = Object.assign || function(h) {
8072
+ for (var u, o = 1, g = arguments.length; o < g; o++) for (var A in u = arguments[o]) Object.prototype.hasOwnProperty.call(u, A) && (h[A] = u[A]);
8073
+ return h;
8354
8074
  }, n.apply(this, arguments);
8355
8075
  };
8356
- function a(f, u, o, g) {
8076
+ function a(h, u, o, g) {
8357
8077
  return new (o || (o = Promise))(function(A, b) {
8358
8078
  function M(k) {
8359
8079
  try {
@@ -8375,10 +8095,10 @@ var Ps = { exports: {} };
8375
8095
  z(j);
8376
8096
  })).then(M, V);
8377
8097
  }
8378
- F((g = g.apply(f, [])).next());
8098
+ F((g = g.apply(h, [])).next());
8379
8099
  });
8380
8100
  }
8381
- function c(f, u) {
8101
+ function c(h, u) {
8382
8102
  var o, g, A, b, M = { label: 0, sent: function() {
8383
8103
  if (1 & A[0]) throw A[1];
8384
8104
  return A[1];
@@ -8425,7 +8145,7 @@ var Ps = { exports: {} };
8425
8145
  A[2] && M.ops.pop(), M.trys.pop();
8426
8146
  continue;
8427
8147
  }
8428
- j = u.call(f, M);
8148
+ j = u.call(h, M);
8429
8149
  } catch (z) {
8430
8150
  j = [6, z], g = 0;
8431
8151
  } finally {
@@ -8437,18 +8157,18 @@ var Ps = { exports: {} };
8437
8157
  };
8438
8158
  }
8439
8159
  }
8440
- function l(f, u, o) {
8160
+ function l(h, u, o) {
8441
8161
  for (var g, A = 0, b = u.length; A < b; A++) !g && A in u || (g || (g = Array.prototype.slice.call(u, 0, A)), g[A] = u[A]);
8442
- return f.concat(g || Array.prototype.slice.call(u));
8162
+ return h.concat(g || Array.prototype.slice.call(u));
8443
8163
  }
8444
- var h = function f(u, o) {
8164
+ var f = function h(u, o) {
8445
8165
  if (u === o) return !0;
8446
8166
  if (u && o && typeof u == "object" && typeof o == "object") {
8447
8167
  if (u.constructor !== o.constructor) return !1;
8448
8168
  var g, A, b;
8449
8169
  if (Array.isArray(u)) {
8450
8170
  if ((g = u.length) != o.length) return !1;
8451
- for (A = g; A-- != 0; ) if (!f(u[A], o[A])) return !1;
8171
+ for (A = g; A-- != 0; ) if (!h(u[A], o[A])) return !1;
8452
8172
  return !0;
8453
8173
  }
8454
8174
  if (u.constructor === RegExp) return u.source === o.source && u.flags === o.flags;
@@ -8458,43 +8178,43 @@ var Ps = { exports: {} };
8458
8178
  for (A = g; A-- != 0; ) if (!Object.prototype.hasOwnProperty.call(o, b[A])) return !1;
8459
8179
  for (A = g; A-- != 0; ) {
8460
8180
  var M = b[A];
8461
- if (!f(u[M], o[M])) return !1;
8181
+ if (!h(u[M], o[M])) return !1;
8462
8182
  }
8463
8183
  return !0;
8464
8184
  }
8465
8185
  return u != u && o != o;
8466
8186
  };
8467
- function y(f, u) {
8187
+ function y(h, u) {
8468
8188
  var o = Object.keys(u || {}).filter(function(g) {
8469
- var A = f == null ? void 0 : f[g], b = u == null ? void 0 : u[g];
8470
- return !h(A, b);
8189
+ var A = h == null ? void 0 : h[g], b = u == null ? void 0 : u[g];
8190
+ return !f(A, b);
8471
8191
  });
8472
- return Object.keys(f || {}).filter(function(g) {
8192
+ return Object.keys(h || {}).filter(function(g) {
8473
8193
  Object.keys(u || {}).includes(g) || o.push(g);
8474
8194
  }), Object.keys(o).length ? o : null;
8475
8195
  }
8476
- var w, O;
8477
- function N(f, u, o) {
8196
+ var B, O;
8197
+ function N(h, u, o) {
8478
8198
  var g = "shortString", A = !0;
8479
- typeof o == "number" && (g = "javaDouble", A = !1), f[g] = f[g] || {}, f[g][u] = A ? o + "" : o;
8199
+ typeof o == "number" && (g = "javaDouble", A = !1), h[g] = h[g] || {}, h[g][u] = A ? o + "" : o;
8480
8200
  }
8481
- function U(f) {
8482
- return !!f && typeof f == "object" && f.value !== void 0;
8201
+ function U(h) {
8202
+ return !!h && typeof h == "object" && h.value !== void 0;
8483
8203
  }
8484
- function $(f) {
8485
- return Object.fromEntries(Object.entries(f).map(function(u) {
8204
+ function $(h) {
8205
+ return Object.fromEntries(Object.entries(h).map(function(u) {
8486
8206
  var o = u[0], g = u[1];
8487
8207
  return [o, U(g) ? g : { value: g }];
8488
8208
  }));
8489
8209
  }
8490
- function re(f) {
8491
- return n(n({}, f), { identity: f.identity ? n(n({}, f.identity), { traits: $(f.identity.traits || {}) }) : void 0 });
8210
+ function re(h) {
8211
+ return n(n({}, h), { identity: h.identity ? n(n({}, h.identity), { traits: $(h.identity.traits || {}) }) : void 0 });
8492
8212
  }
8493
- (function(f) {
8494
- f.NONE = "NONE", f.DEFAULT_FLAGS = "DEFAULT_FLAGS", f.CACHE = "CACHE", f.SERVER = "SERVER";
8495
- })(w || (w = {}));
8213
+ (function(h) {
8214
+ h.NONE = "NONE", h.DEFAULT_FLAGS = "DEFAULT_FLAGS", h.CACHE = "CACHE", h.SERVER = "SERVER";
8215
+ })(B || (B = {}));
8496
8216
  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() {
8497
- function f(u) {
8217
+ function h(u) {
8498
8218
  var o = this;
8499
8219
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
8500
8220
  var g = o, A = g.api, b = g.evaluationContext;
@@ -8502,16 +8222,16 @@ var Ps = { exports: {} };
8502
8222
  var M = "".concat(o.getContext().identity), V = function(F) {
8503
8223
  var k, j, z, ce;
8504
8224
  if (F && M === "".concat(o.getContext().identity)) {
8505
- var Be = F.flags, ge = F.traits, ve = F.identifier;
8225
+ var we = F.flags, ge = F.traits, ve = F.identifier;
8506
8226
  o.isLoading = !1;
8507
8227
  var pe = {}, fe = {};
8508
- ge = ge || [], (Be = Be || []).forEach(function(W) {
8228
+ ge = ge || [], (we = we || []).forEach(function(W) {
8509
8229
  pe[W.feature.name.toLowerCase().replace(/ /g, "_")] = { id: W.feature.id, enabled: W.enabled, value: W.feature_state_value };
8510
8230
  }), ge.forEach(function(W) {
8511
8231
  fe[W.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: W.transient, value: W.trait_value };
8512
8232
  }), o.oldFlags = n({}, o.flags);
8513
8233
  var Me = y(o.oldFlags, pe), mt = y((k = o.evaluationContext.identity) === null || k === void 0 ? void 0 : k.traits, fe);
8514
- 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 {
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 {
8515
8235
  if (o.datadogRum.trackTraits) {
8516
8236
  var dt = {};
8517
8237
  Object.keys(((j = o.evaluationContext.identity) === null || j === void 0 ? void 0 : j.traits) || {}).map(function(W) {
@@ -8558,7 +8278,7 @@ var Ps = { exports: {} };
8558
8278
  }).catch(function(A) {
8559
8279
  o.log("Exception fetching evaluationEvent", A);
8560
8280
  }) : void 0;
8561
- }, 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) {
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) {
8562
8282
  var M = o.flags && o.flags[g.toLowerCase().replace(/ /g, "_")], V = null;
8563
8283
  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;
8564
8284
  if (A != null && A.json) try {
@@ -8606,9 +8326,9 @@ var Ps = { exports: {} };
8606
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.");
8607
8327
  var j = "".concat((M = o.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
8608
8328
  return O(g, k).then(function(z) {
8609
- var ce, Be, ge = "".concat((ce = o.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
8329
+ var ce, we, ge = "".concat((ce = o.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
8610
8330
  if (j === ge) {
8611
- var ve = (Be = z.headers) === null || Be === void 0 ? void 0 : Be.get("x-flagsmith-document-updated-at");
8331
+ var ve = (we = z.headers) === null || we === void 0 ? void 0 : we.get("x-flagsmith-document-updated-at");
8612
8332
  if (ve) try {
8613
8333
  var pe = parseFloat(ve);
8614
8334
  if (isNaN(pe)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
@@ -8638,21 +8358,21 @@ var Ps = { exports: {} };
8638
8358
  o.setLoadingState(b), (M = o.onChange) === null || M === void 0 || M.call(o, g, A, o.loadingState), (V = o._trigger) === null || V === void 0 || V.call(o);
8639
8359
  }, O = u.fetch ? u.fetch : typeof fetch < "u" ? fetch : yt == null ? void 0 : yt.fetch, this.canUseStorage = typeof window < "u" || !!u.browserlessStorage, this.log("Constructing flagsmith instance " + u), u.eventSource && (de = u.eventSource), u.AsyncStorage && (ne = u.AsyncStorage);
8640
8360
  }
8641
- return f.prototype.init = function(u) {
8361
+ return h.prototype.init = function(u) {
8642
8362
  var o, g, A;
8643
8363
  return a(this, void 0, void 0, function() {
8644
- var b, M, V, F, k, j, z, ce, Be, 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;
8645
- return c(this, function(we) {
8646
- switch (we.label) {
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) {
8647
8367
  case 0:
8648
- b = re(u.evaluationContext || this.evaluationContext), we.label = 1;
8368
+ b = re(u.evaluationContext || this.evaluationContext), Be.label = 1;
8649
8369
  case 1:
8650
- if (we.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, 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, 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`");
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`");
8651
8371
  if (b.identity = Jt || gt ? { identifier: Jt, traits: gt ? Object.fromEntries(Object.entries(gt).map(function(he) {
8652
8372
  return [he[0], { value: he[1] }];
8653
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) {
8654
- ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), Be == null || Be(he);
8655
- }, 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(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) {
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) {
8656
8376
  return function(Ce, De) {
8657
8377
  var qe = De.headers, K = De.method, et = De.body;
8658
8378
  return new Promise(function(Ze) {
@@ -8699,7 +8419,7 @@ var Ps = { exports: {} };
8699
8419
  if (!Ce) return [3, 7];
8700
8420
  De = null, qe = null, Ie.label = 1;
8701
8421
  case 1:
8702
- 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) {
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) {
8703
8423
  var ys;
8704
8424
  (ys = zs.onError) === null || ys === void 0 || ys.call(zs, Yn);
8705
8425
  }), [3, 4]) : [3, 2];
@@ -8718,10 +8438,10 @@ var Ps = { exports: {} };
8718
8438
  case 8:
8719
8439
  return Ie.sent(), [3, 10];
8720
8440
  case 9:
8721
- 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));
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));
8722
8442
  else {
8723
8443
  if (!this.flags) throw new Error($t);
8724
- 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));
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));
8725
8445
  }
8726
8446
  Ie.label = 10;
8727
8447
  case 10:
@@ -8729,76 +8449,76 @@ var Ps = { exports: {} };
8729
8449
  }
8730
8450
  });
8731
8451
  });
8732
- }, we.label = 2;
8452
+ }, Be.label = 2;
8733
8453
  case 2:
8734
- return we.trys.push([2, 7, , 8]), ne.getItemSync ? (es = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
8454
+ return Be.trys.push([2, 7, , 8]), ne.getItemSync ? (es = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
8735
8455
  case 3:
8736
8456
  return [4, ne.getItem(this.getStorageKey())];
8737
8457
  case 4:
8738
- es = we.sent(), we.label = 5;
8458
+ es = Be.sent(), Be.label = 5;
8739
8459
  case 5:
8740
8460
  return [4, Zs(null, es)];
8741
8461
  case 6:
8742
8462
  case 7:
8743
- return we.sent(), [3, 8];
8463
+ return Be.sent(), [3, 8];
8744
8464
  case 8:
8745
8465
  return [3, 12];
8746
8466
  case 9:
8747
8467
  return pe ? [3, 11] : [4, this.getFlags()];
8748
8468
  case 10:
8749
- return we.sent(), [3, 12];
8469
+ return Be.sent(), [3, 12];
8750
8470
  case 11:
8751
- 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));
8752
- 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);
8753
- we.label = 12;
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;
8754
8474
  case 12:
8755
8475
  return [3, 14];
8756
8476
  case 13:
8757
- 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;
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;
8758
8478
  case 14:
8759
8479
  return [2];
8760
8480
  }
8761
8481
  });
8762
8482
  });
8763
- }, f.prototype.getAllFlags = function() {
8483
+ }, h.prototype.getAllFlags = function() {
8764
8484
  return this.flags;
8765
- }, f.prototype.identify = function(u, o, g) {
8485
+ }, h.prototype.identify = function(u, o, g) {
8766
8486
  return this.evaluationContext.identity = { identifier: u, transient: g, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == u ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = u, this.log("Identify: " + this.evaluationContext.identity.identifier), o && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(o).map(function(A) {
8767
8487
  var b = A[0], M = A[1];
8768
8488
  return [b, U(M) ? M : { value: M }];
8769
8489
  }))), this.initialised ? this.getFlags() : Promise.resolve();
8770
- }, f.prototype.getState = function() {
8490
+ }, h.prototype.getState = function() {
8771
8491
  return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
8772
- }, f.prototype.setState = function(u) {
8492
+ }, h.prototype.setState = function(u) {
8773
8493
  u && (this.initialised = !0, this.api = u.api || this.api || Ne, this.flags = u.flags || this.flags, this.evaluationContext = u.evaluationContext || this.evaluationContext, this.evaluationEvent = u.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
8774
- }, f.prototype.logout = function() {
8494
+ }, h.prototype.logout = function() {
8775
8495
  return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
8776
- }, f.prototype.startListening = function(u) {
8496
+ }, h.prototype.startListening = function(u) {
8777
8497
  u === void 0 && (u = 1e3), this.getFlagInterval && clearInterval(this.getFlagInterval), this.getFlagInterval = setInterval(this.getFlags, u);
8778
- }, f.prototype.stopListening = function() {
8498
+ }, h.prototype.stopListening = function() {
8779
8499
  this.getFlagInterval && (clearInterval(this.getFlagInterval), this.getFlagInterval = null);
8780
- }, f.prototype._loadedState = function(u, o, g) {
8500
+ }, h.prototype._loadedState = function(u, o, g) {
8781
8501
  return u === void 0 && (u = null), g === void 0 && (g = !1), { error: u, isFetching: g, isLoading: !1, source: o };
8782
- }, f.prototype.log = function() {
8502
+ }, h.prototype.log = function() {
8783
8503
  for (var u = [], o = 0; o < arguments.length; o++) u[o] = arguments[o];
8784
8504
  this.enableLogs && console.log.apply(this, l(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], u));
8785
- }, f.prototype.updateStorage = function() {
8505
+ }, h.prototype.updateStorage = function() {
8786
8506
  if (this.cacheFlags) {
8787
8507
  this.ts = (/* @__PURE__ */ new Date()).valueOf();
8788
8508
  var u = JSON.stringify(this.getState());
8789
8509
  this.log("Setting storage", u), ne.setItem(this.getStorageKey(), u);
8790
8510
  }
8791
- }, f.prototype.updateEventStorage = function() {
8511
+ }, h.prototype.updateEventStorage = function() {
8792
8512
  if (this.enableAnalytics) {
8793
8513
  var u = JSON.stringify(this.getState().evaluationEvent);
8794
8514
  ne.setItem(be, u).catch(function(o) {
8795
8515
  return console.error("Flagsmith: Error setting item in async storage", o);
8796
8516
  });
8797
8517
  }
8798
- }, f.prototype.setLoadingState = function(u) {
8518
+ }, h.prototype.setLoadingState = function(u) {
8799
8519
  var o;
8800
- h(u, this.loadingState) || (this.loadingState = n({}, u), this.log("Loading state changed", u), (o = this._triggerLoadingState) === null || o === void 0 || o.call(this));
8801
- }, f.prototype.setupRealtime = function(u, o) {
8520
+ f(u, this.loadingState) || (this.loadingState = n({}, u), this.log("Loading state changed", u), (o = this._triggerLoadingState) === null || o === void 0 || o.call(this));
8521
+ }, h.prototype.setupRealtime = function(u, o) {
8802
8522
  var g = this, A = u + "sse/environments/" + o + "/stream";
8803
8523
  de ? this.eventSource || (this.log("Creating event source with url " + A), this.eventSource = new de(A), this.eventSource.addEventListener("environment_updated", function(b) {
8804
8524
  var M;
@@ -8809,35 +8529,35 @@ var Ps = { exports: {} };
8809
8529
  }
8810
8530
  M ? !g.timestamp || M > g.timestamp ? g.isLoading ? g.log("updated_at is new, but flags are loading", b.data, g.timestamp) : (g.log("updated_at is new, fetching flags", b.data, g.timestamp), g.getFlags()) : g.log("updated_at is outdated, skipping get flags", b.data, g.timestamp) : g.log("No updated_at received, fetching flags", b);
8811
8531
  })) : this.log("Error, EventSource is undefined");
8812
- }, f;
8532
+ }, h;
8813
8533
  }();
8814
- function d(f) {
8815
- var u = f.fetch, o = f.AsyncStorage, g = f.eventSource;
8534
+ function d(h) {
8535
+ var u = h.fetch, o = h.AsyncStorage, g = h.eventSource;
8816
8536
  return new At({ fetch: u, AsyncStorage: o, eventSource: g });
8817
8537
  }
8818
- var p, B = (p = function(f, u) {
8538
+ var p, w = (p = function(h, u) {
8819
8539
  return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, g) {
8820
8540
  o.__proto__ = g;
8821
8541
  } || function(o, g) {
8822
8542
  for (var A in g) Object.prototype.hasOwnProperty.call(g, A) && (o[A] = g[A]);
8823
- }, p(f, u);
8824
- }, function(f, u) {
8543
+ }, p(h, u);
8544
+ }, function(h, u) {
8825
8545
  if (typeof u != "function" && u !== null) throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
8826
8546
  function o() {
8827
- this.constructor = f;
8547
+ this.constructor = h;
8828
8548
  }
8829
- p(f, u), f.prototype = u === null ? Object.create(u) : (o.prototype = u.prototype, new o());
8830
- }), D = function(f) {
8831
- var u = typeof Symbol == "function" && Symbol.iterator, o = u && f[u], g = 0;
8832
- if (o) return o.call(f);
8833
- if (f && typeof f.length == "number") return { next: function() {
8834
- return f && g >= f.length && (f = void 0), { value: f && f[g++], done: !f };
8549
+ p(h, u), h.prototype = u === null ? Object.create(u) : (o.prototype = u.prototype, new o());
8550
+ }), D = function(h) {
8551
+ var u = typeof Symbol == "function" && Symbol.iterator, o = u && h[u], g = 0;
8552
+ if (o) return o.call(h);
8553
+ if (h && typeof h.length == "number") return { next: function() {
8554
+ return h && g >= h.length && (h = void 0), { value: h && h[g++], done: !h };
8835
8555
  } };
8836
8556
  throw new TypeError(u ? "Object is not iterable." : "Symbol.iterator is not defined.");
8837
- }, E = function(f, u) {
8838
- var o = typeof Symbol == "function" && f[Symbol.iterator];
8839
- if (!o) return f;
8840
- var g, A, b = o.call(f), M = [];
8557
+ }, E = function(h, u) {
8558
+ var o = typeof Symbol == "function" && h[Symbol.iterator];
8559
+ if (!o) return h;
8560
+ var g, A, b = o.call(h), M = [];
8841
8561
  try {
8842
8562
  for (; (u === void 0 || u-- > 0) && !(g = b.next()).done; ) M.push(g.value);
8843
8563
  } catch (V) {
@@ -8850,26 +8570,26 @@ var Ps = { exports: {} };
8850
8570
  }
8851
8571
  }
8852
8572
  return M;
8853
- }, G = function(f, u, o) {
8573
+ }, G = function(h, u, o) {
8854
8574
  if (arguments.length === 2) for (var g, A = 0, b = u.length; A < b; A++) !g && A in u || (g || (g = Array.prototype.slice.call(u, 0, A)), g[A] = u[A]);
8855
- return f.concat(g || Array.prototype.slice.call(u));
8856
- }, q = function(f) {
8575
+ return h.concat(g || Array.prototype.slice.call(u));
8576
+ }, q = function(h) {
8857
8577
  function u() {
8858
- return f.call(this, `EventSource not available.
8578
+ return h.call(this, `EventSource not available.
8859
8579
  Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
8860
8580
  }
8861
- return B(u, f), u;
8581
+ return w(u, h), u;
8862
8582
  }(Error), X = function() {
8863
- function f(u, o) {
8583
+ function h(u, o) {
8864
8584
  var g = this;
8865
8585
  if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = o != null ? Object.assign({}, o) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = u.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new q();
8866
8586
  this._onevent_wrapped = function(A) {
8867
8587
  g._onevent(A);
8868
8588
  }, this._start();
8869
8589
  }
8870
- return f.prototype.dispatchEvent = function(u) {
8590
+ return h.prototype.dispatchEvent = function(u) {
8871
8591
  throw new Error("Method not implemented.");
8872
- }, f.prototype._start = function() {
8592
+ }, h.prototype._start = function() {
8873
8593
  var u, o, g = this, A = this.url;
8874
8594
  this._lastEventId && (A.indexOf("?") === -1 ? A += "?" : A += "&", A += "lastEventId=" + encodeURIComponent(this._lastEventId)), this._eventSource = new this.eventSourceClass(A, this._configuration), this._eventSource.onopen = function(F) {
8875
8595
  g._onopen(F);
@@ -8892,9 +8612,9 @@ Consider loading an EventSource polyfill and making it available globally as Eve
8892
8612
  if (u) throw u.error;
8893
8613
  }
8894
8614
  }
8895
- }, f.prototype._onopen = function(u) {
8615
+ }, h.prototype._onopen = function(u) {
8896
8616
  this.readyState === 0 && (this.readyState = 1, this.onopen(u));
8897
- }, f.prototype._onerror = function(u) {
8617
+ }, h.prototype._onerror = function(u) {
8898
8618
  var o = this;
8899
8619
  if (this.readyState === 1 && (this.readyState = 0, this.onerror(u)), this._eventSource) {
8900
8620
  this._eventSource.close(), this._eventSource = null;
@@ -8903,7 +8623,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
8903
8623
  return o._start();
8904
8624
  }, g);
8905
8625
  }
8906
- }, f.prototype._onevent = function(u) {
8626
+ }, h.prototype._onevent = function(u) {
8907
8627
  var o, g;
8908
8628
  u && u.lastEventId && (this._lastEventId = u.lastEventId);
8909
8629
  var A = this._listeners[u.type];
@@ -8920,24 +8640,24 @@ Consider loading an EventSource polyfill and making it available globally as Eve
8920
8640
  }
8921
8641
  }
8922
8642
  u.type === "message" && this.onmessage(u);
8923
- }, f.prototype.onopen = function(u) {
8924
- }, f.prototype.onerror = function(u) {
8925
- }, f.prototype.onmessage = function(u) {
8926
- }, f.prototype.close = function() {
8643
+ }, h.prototype.onopen = function(u) {
8644
+ }, h.prototype.onerror = function(u) {
8645
+ }, h.prototype.onmessage = function(u) {
8646
+ }, h.prototype.close = function() {
8927
8647
  this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
8928
- }, f.prototype.addEventListener = function(u, o, g) {
8648
+ }, h.prototype.addEventListener = function(u, o, g) {
8929
8649
  this._listeners[u] == null && (this._listeners[u] = [], this._eventSource != null && this._eventSource.addEventListener(u, this._onevent_wrapped));
8930
8650
  var A = this._listeners[u];
8931
8651
  A.includes(o) || (this._listeners[u] = G(G([], E(A), !1), [o], !1));
8932
- }, f.prototype.removeEventListener = function(u, o, g) {
8652
+ }, h.prototype.removeEventListener = function(u, o, g) {
8933
8653
  var A = this._listeners[u];
8934
8654
  this._listeners[u] = A.filter(function(b) {
8935
8655
  return b !== o;
8936
8656
  });
8937
- }, f;
8657
+ }, h;
8938
8658
  }();
8939
8659
  globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
8940
- var _ = function(f, u) {
8660
+ var _ = function(h, u) {
8941
8661
  return u = u || {}, new Promise(function(o, g) {
8942
8662
  var A = new XMLHttpRequest(), b = [], M = [], V = {}, F = function() {
8943
8663
  return { ok: (A.status / 100 | 0) == 2, statusText: A.statusText, status: A.status, url: A.responseURL, text: function() {
@@ -8956,7 +8676,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
8956
8676
  return j.toLowerCase() in V;
8957
8677
  } } };
8958
8678
  };
8959
- for (var k in A.open(u.method || "get", f, !0), A.onload = function() {
8679
+ for (var k in A.open(u.method || "get", h, !0), A.onload = function() {
8960
8680
  A.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, z, ce) {
8961
8681
  b.push(z = z.toLowerCase()), M.push([z, ce]), V[z] = V[z] ? V[z] + "," + ce : ce;
8962
8682
  }), o(F());
@@ -9075,49 +8795,49 @@ var Nc = Ps.exports, Zc = {
9075
8795
  }
9076
8796
  }, Dt(xe, "instance"), xe), Uc = Sc.getInstance(), ht = Re(!1), jt = Re([]), st = Re(null);
9077
8797
  function zc(e = Uc) {
9078
- const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (w, O = []) => {
8798
+ const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (B, O = []) => {
9079
8799
  if (ht.value) {
9080
8800
  console.warn("FeatureFlag is already initialized.");
9081
8801
  return;
9082
8802
  }
9083
8803
  try {
9084
- await e.init(w, O), jt.value = await e.getFlags(), ht.value = !0, st.value = null;
8804
+ await e.init(B, O), jt.value = await e.getFlags(), ht.value = !0, st.value = null;
9085
8805
  } catch (N) {
9086
8806
  console.error("Failed to initialize feature flags:", N), st.value = N;
9087
8807
  }
9088
- }, r = async (w) => {
8808
+ }, r = async (B) => {
9089
8809
  if (t())
9090
8810
  try {
9091
- await e.setUser(w), jt.value = await e.getFlags(), st.value = null;
8811
+ await e.setUser(B), jt.value = await e.getFlags(), st.value = null;
9092
8812
  } catch (O) {
9093
8813
  console.error("Failed to set user:", O), st.value = O;
9094
8814
  }
9095
- }, n = async (w) => r(`${or}-${w}`), a = (w, O, N = null) => {
8815
+ }, n = async (B) => r(`${or}-${B}`), a = (B, O, N = null) => {
9096
8816
  if (!t()) return N;
9097
8817
  try {
9098
- return e.getFlagValue(w, O) ?? N;
8818
+ return e.getFlagValue(B, O) ?? N;
9099
8819
  } catch (U) {
9100
- return console.error(`Error getting flag value for ${w}:`, U), N;
8820
+ return console.error(`Error getting flag value for ${B}:`, U), N;
9101
8821
  }
9102
- }, c = (w, O) => {
8822
+ }, c = (B, O) => {
9103
8823
  if (!t()) return O ?? null;
9104
8824
  try {
9105
- return e.getFlag(w) ?? O ?? null;
8825
+ return e.getFlag(B) ?? O ?? null;
9106
8826
  } catch (N) {
9107
- return console.error(`Error getting flag for ${w}:`, N), O ?? null;
8827
+ return console.error(`Error getting flag for ${B}:`, N), O ?? null;
9108
8828
  }
9109
- }, l = async (w, O, N = null, U) => {
8829
+ }, l = async (B, O, N = null, U) => {
9110
8830
  if (!t()) return N;
9111
8831
  try {
9112
- return await e.getUserFlagValue(w, O, N, U);
8832
+ return await e.getUserFlagValue(B, O, N, U);
9113
8833
  } catch ($) {
9114
8834
  return console.error(`Error getting user flag value for ${O}:`, $), N;
9115
8835
  }
9116
- }, h = async (w, O, N = null, U) => l(`${or}-${w}`, O, N, U), y = () => {
8836
+ }, f = async (B, O, N = null, U) => l(`${or}-${B}`, O, N, U), y = () => {
9117
8837
  try {
9118
8838
  e.reset();
9119
- } catch (w) {
9120
- console.error("Error resetting feature flags:", w);
8839
+ } catch (B) {
8840
+ console.error("Error resetting feature flags:", B);
9121
8841
  } finally {
9122
8842
  jt.value = [], ht.value = !1, st.value = null;
9123
8843
  }
@@ -9132,7 +8852,7 @@ function zc(e = Uc) {
9132
8852
  getFlagValue: a,
9133
8853
  getFlag: c,
9134
8854
  getUserFlagValue: l,
9135
- getBusinessFlagValue: h,
8855
+ getBusinessFlagValue: f,
9136
8856
  reset: y
9137
8857
  };
9138
8858
  }