@feedmepos/mf-hrm-portal 2.2.1 → 2.2.2-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{ApprovalCodeList-BWQBJGCZ.js → ApprovalCodeList-B9O8QzzI.js} +5 -5
  2. package/dist/AuditLogList-CtFEXKWZ.js +1722 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDOdtKwI.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js} +2 -2
  4. package/dist/{EmployeeList-BZ6fxRCN.js → EmployeeList-BFxMwFJq.js} +71 -71
  5. package/dist/{GrantUserList-CaVpRVzA.js → GrantUserList-CZtmMRoS.js} +6 -6
  6. package/dist/{Main-CEKiyT80.js → Main-B622Z4q4.js} +11 -11
  7. package/dist/{Main-CQpEciKH.js → Main-DD6IthCS.js} +5 -5
  8. package/dist/{Main-DrfRLxA5.js → Main-on0TXkQt.js} +8 -8
  9. package/dist/{PermissionSetList-BgOSJy4y.js → PermissionSetList-FCX3TBoi.js} +77 -78
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B2SX3ZoV.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cl_YNh0k.js} +832 -837
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
  12. package/dist/RoleList-p_9KHzqF.js +725 -0
  13. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
  14. package/dist/{TeamMemberList-BXk_pXjc.js → TeamMemberList-BAU7Y3jh.js} +313 -312
  15. package/dist/{TimesheetList-DgaZmgug.js → TimesheetList-DtFBWhma.js} +7 -7
  16. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-B_Lc8Xmy.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Tatn3jUv.js} +3 -3
  17. package/dist/{app-DzagkC6l.js → app-Bbf6hEPt.js} +1086 -781
  18. package/dist/app.js +1 -1
  19. package/dist/{approval-code-BRClD2HN.js → approval-code-jIjkeVEb.js} +1 -1
  20. package/dist/{dayjs.min-CqJsImsm.js → dayjs.min-BAnGg8q2.js} +1 -1
  21. package/dist/{employee-CXBuv0Bx.js → employee-DVSD3L51.js} +4 -4
  22. package/dist/{grant-user-Dhi3ilC_.js → grant-user-SNiDV22U.js} +1 -1
  23. package/dist/{iteration-BCfwR_XH.js → iteration-BTZViJtd.js} +1 -1
  24. package/dist/{lodash-BJl3phr9.js → lodash-Cgdk4_YL.js} +1 -1
  25. package/dist/{restaurant-DiYb0pCm.js → restaurant-BTpBmfBV.js} +2 -2
  26. package/dist/{role-BfCNRnuy.js → role-CXVpO6fB.js} +2 -2
  27. package/dist/{rule-B3Eg-J8O.js → rule-TR3MVo-b.js} +259 -279
  28. package/dist/src/api/audit-log/index.d.ts +6 -0
  29. package/dist/src/api/user/index.d.ts +2 -2
  30. package/dist/src/composables/useReportPermissions.d.ts +0 -1
  31. package/dist/src/helpers/rule.d.ts +0 -2
  32. package/dist/src/types/audit-log.d.ts +1 -1
  33. package/dist/src/types/role.d.ts +0 -1
  34. package/dist/src/views/audit-log/change-nodes.d.ts +14 -0
  35. package/dist/src/views/audit-log/event-line.d.ts +13 -0
  36. package/dist/src/views/audit-log/locales/index.d.ts +300 -0
  37. package/dist/src/views/audit-log/operation-status.d.ts +2 -0
  38. package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
  39. package/dist/src/views/hr/locales/index.d.ts +0 -4
  40. package/dist/style.css +1 -1
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/{useAppStore-BGhlB1_1.js → useAppStore-DCwd8GWN.js} +1 -1
  43. package/dist/useDebounce-B8ZPVS5C.js +15 -0
  44. package/dist/{useLoading-CvgqVDbF.js → useLoading-CXzTpIVv.js} +1 -1
  45. package/dist/useReportPermissions-BpAFyO17.js +71 -0
  46. package/package.json +1 -1
  47. package/dist/AuditLogList-CymSyHag.js +0 -1149
  48. package/dist/RoleList-C2PrTc1f.js +0 -739
  49. package/dist/useDebounce-CWb5QR9G.js +0 -28
  50. package/dist/useReportPermissions-CXXq725N.js +0 -82
@@ -1,11 +1,11 @@
1
1
  var Rn = Object.defineProperty;
2
2
  var Xn = (e, t, s) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
3
  var xt = (e, t, s) => Xn(e, typeof t != "symbol" ? t + "" : t, s);
4
- import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as Us, defineComponent as it, createBlock as Ut, renderSlot as cr, createCommentVNode as Tn, unref as Ue, openBlock as ct, createElementBlock as lr, createElementVNode as ze, toDisplayString as Ws, watch as Nn, nextTick as Sn, onMounted as ur, onBeforeUnmount as Zn, normalizeStyle as zn, resolveComponent as Fs, withCtx as Un, createVNode as Wn, defineAsyncComponent as Ln, readonly as vs } from "vue";
4
+ import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as zs, defineComponent as it, createBlock as zt, renderSlot as cr, createCommentVNode as Tn, unref as ze, openBlock as ct, createElementBlock as lr, createElementVNode as Ue, toDisplayString as Ws, watch as Sn, nextTick as Nn, onMounted as ur, onBeforeUnmount as Zn, normalizeStyle as Un, resolveComponent as Fs, withCtx as zn, createVNode as Wn, defineAsyncComponent as Ln, readonly as vs } from "vue";
5
5
  import { useBreakpoints as Kn } from "@feedmepos/ui-library";
6
6
  import { useRoute as Jn, useRouter as _n } from "vue-router";
7
7
  import { useCoreStore as Ar, useI18n as dr } from "@feedmepos/mf-common";
8
- var o = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(o || {}), d = /* @__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.hrm_approvalCode = "business::hrm::approvalCode", 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_accessOsDashboard = "business::report::accessOsDashboard", 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))(d || {}), 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 || {}), mr = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(mr || {});
8
+ var o = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(o || {}), A = /* @__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_stockAdjustmentReason = "business::inventory::stockAdjustmentReason", 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.hrm_approvalCode = "business::hrm::approvalCode", 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_accessOsDashboard = "business::report::accessOsDashboard", 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))(A || {}), 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 || {}), mr = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(mr || {});
9
9
  const v = {
10
10
  general: "General",
11
11
  inventory: "Inventory",
@@ -21,7 +21,7 @@ const v = {
21
21
  miniProgram: "Mini Program",
22
22
  media: "Media"
23
23
  }, $n = "access-denied";
24
- var S;
24
+ var N;
25
25
  (function(e) {
26
26
  function t(n) {
27
27
  }
@@ -55,8 +55,8 @@ var S;
55
55
  return n.map((c) => typeof c == "string" ? `'${c}'` : c).join(a);
56
56
  }
57
57
  e.joinValues = r;
58
- })(S || (S = {}));
59
- const x = S.arrayToEnum([
58
+ })(N || (N = {}));
59
+ const x = N.arrayToEnum([
60
60
  "string",
61
61
  "nan",
62
62
  "number",
@@ -96,7 +96,7 @@ const x = S.arrayToEnum([
96
96
  default:
97
97
  return x.unknown;
98
98
  }
99
- }, C = S.arrayToEnum([
99
+ }, C = N.arrayToEnum([
100
100
  "invalid_type",
101
101
  "invalid_literal",
102
102
  "custom",
@@ -169,7 +169,7 @@ class qe extends Error {
169
169
  }
170
170
  }
171
171
  qe.create = (e) => new qe(e);
172
- const Bt = (e, t) => {
172
+ const wt = (e, t) => {
173
173
  let s;
174
174
  switch (e.code) {
175
175
  case C.invalid_type:
@@ -179,16 +179,16 @@ const Bt = (e, t) => {
179
179
  s = `Invalid literal value, expected ${JSON.stringify(e.expected, qs)}`;
180
180
  break;
181
181
  case C.unrecognized_keys:
182
- s = `Unrecognized key(s) in object: ${S.joinValues(e.keys, ", ")}`;
182
+ s = `Unrecognized key(s) in object: ${N.joinValues(e.keys, ", ")}`;
183
183
  break;
184
184
  case C.invalid_union:
185
185
  s = "Invalid input";
186
186
  break;
187
187
  case C.invalid_union_discriminator:
188
- s = `Invalid discriminator value. Expected ${S.joinValues(e.options)}`;
188
+ s = `Invalid discriminator value. Expected ${N.joinValues(e.options)}`;
189
189
  break;
190
190
  case C.invalid_enum_value:
191
- s = `Invalid enum value. Expected ${S.joinValues(e.options)}, received '${e.received}'`;
191
+ s = `Invalid enum value. Expected ${N.joinValues(e.options)}, received '${e.received}'`;
192
192
  break;
193
193
  case C.invalid_arguments:
194
194
  s = "Invalid function arguments";
@@ -200,7 +200,7 @@ const Bt = (e, t) => {
200
200
  s = "Invalid date";
201
201
  break;
202
202
  case C.invalid_string:
203
- typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` : S.assertNever(e.validation) : e.validation !== "regex" ? s = `Invalid ${e.validation}` : s = "Invalid";
203
+ typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` : N.assertNever(e.validation) : e.validation !== "regex" ? s = `Invalid ${e.validation}` : s = "Invalid";
204
204
  break;
205
205
  case C.too_small:
206
206
  e.type === "array" ? s = `Array must contain ${e.inclusive ? "at least" : "more than"} ${e.minimum} element(s)` : e.type === "string" ? s = `String must contain ${e.inclusive ? "at least" : "over"} ${e.minimum} character(s)` : e.type === "number" ? s = `Number must be greater than ${e.inclusive ? "or equal to " : ""}${e.minimum}` : e.type === "date" ? s = `Date must be greater than ${e.inclusive ? "or equal to " : ""}${new Date(e.minimum)}` : s = "Invalid input";
@@ -218,11 +218,11 @@ const Bt = (e, t) => {
218
218
  s = `Number must be a multiple of ${e.multipleOf}`;
219
219
  break;
220
220
  default:
221
- s = t.defaultError, S.assertNever(e);
221
+ s = t.defaultError, N.assertNever(e);
222
222
  }
223
223
  return { message: s };
224
224
  };
225
- let gr = Bt;
225
+ let gr = wt;
226
226
  function ta(e) {
227
227
  gr = e;
228
228
  }
@@ -244,7 +244,7 @@ const Ot = (e) => {
244
244
  message: n.message || l
245
245
  };
246
246
  }, sa = [];
247
- function Y(e, t) {
247
+ function P(e, t) {
248
248
  const s = Ot({
249
249
  issueData: t,
250
250
  data: e.data,
@@ -253,7 +253,7 @@ function Y(e, t) {
253
253
  e.common.contextualErrorMap,
254
254
  e.schemaErrorMap,
255
255
  Vt(),
256
- Bt
256
+ wt
257
257
  ].filter((r) => !!r)
258
258
  });
259
259
  e.common.issues.push(s);
@@ -299,12 +299,12 @@ class ae {
299
299
  }
300
300
  const H = Object.freeze({
301
301
  status: "aborted"
302
- }), ra = (e) => ({ status: "dirty", value: e }), oe = (e) => ({ status: "valid", value: e }), Bs = (e) => e.status === "aborted", ws = (e) => e.status === "dirty", Ft = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, qs = (e, t) => typeof t == "bigint" ? t.toString() : t;
302
+ }), ra = (e) => ({ status: "dirty", value: e }), oe = (e) => ({ status: "valid", value: e }), ws = (e) => e.status === "aborted", Bs = (e) => e.status === "dirty", Ft = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, qs = (e, t) => typeof t == "bigint" ? t.toString() : t;
303
303
  var T;
304
304
  (function(e) {
305
305
  e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
306
306
  })(T || (T = {}));
307
- class Ye {
307
+ class Pe {
308
308
  constructor(t, s, r, n) {
309
309
  this.parent = t, this.data = s, this._path = r, this._key = n;
310
310
  }
@@ -443,13 +443,13 @@ class X {
443
443
  return this.optional().nullable();
444
444
  }
445
445
  array() {
446
- return Pe.create(this);
446
+ return Ye.create(this);
447
447
  }
448
448
  promise() {
449
449
  return ot.create(this);
450
450
  }
451
451
  or(t) {
452
- return wt.create([this, t]);
452
+ return Bt.create([this, t]);
453
453
  }
454
454
  and(t) {
455
455
  return Mt.create(this, t);
@@ -498,7 +498,7 @@ class ke extends X {
498
498
  _parse(t) {
499
499
  if (this._getType(t) !== x.string) {
500
500
  const a = this._getOrReturnCtx(t);
501
- return Y(
501
+ return P(
502
502
  a,
503
503
  {
504
504
  code: C.invalid_type,
@@ -512,7 +512,7 @@ class ke extends X {
512
512
  let n;
513
513
  for (const a of this._def.checks)
514
514
  if (a.kind === "min")
515
- t.data.length < a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
515
+ t.data.length < a.value && (n = this._getOrReturnCtx(t, n), P(n, {
516
516
  code: C.too_small,
517
517
  minimum: a.value,
518
518
  type: "string",
@@ -520,7 +520,7 @@ class ke extends X {
520
520
  message: a.message
521
521
  }), r.dirty());
522
522
  else if (a.kind === "max")
523
- t.data.length > a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
523
+ t.data.length > a.value && (n = this._getOrReturnCtx(t, n), P(n, {
524
524
  code: C.too_big,
525
525
  maximum: a.value,
526
526
  type: "string",
@@ -528,19 +528,19 @@ class ke extends X {
528
528
  message: a.message
529
529
  }), r.dirty());
530
530
  else if (a.kind === "email")
531
- oa.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
531
+ oa.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
532
532
  validation: "email",
533
533
  code: C.invalid_string,
534
534
  message: a.message
535
535
  }), r.dirty());
536
536
  else if (a.kind === "uuid")
537
- aa.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
537
+ aa.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
538
538
  validation: "uuid",
539
539
  code: C.invalid_string,
540
540
  message: a.message
541
541
  }), r.dirty());
542
542
  else if (a.kind === "cuid")
543
- na.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
543
+ na.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
544
544
  validation: "cuid",
545
545
  code: C.invalid_string,
546
546
  message: a.message
@@ -549,25 +549,25 @@ class ke extends X {
549
549
  try {
550
550
  new URL(t.data);
551
551
  } catch {
552
- n = this._getOrReturnCtx(t, n), Y(n, {
552
+ n = this._getOrReturnCtx(t, n), P(n, {
553
553
  validation: "url",
554
554
  code: C.invalid_string,
555
555
  message: a.message
556
556
  }), r.dirty();
557
557
  }
558
- else a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
558
+ else a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
559
559
  validation: "regex",
560
560
  code: C.invalid_string,
561
561
  message: a.message
562
- }), r.dirty())) : a.kind === "trim" ? t.data = t.data.trim() : a.kind === "startsWith" ? t.data.startsWith(a.value) || (n = this._getOrReturnCtx(t, n), Y(n, {
562
+ }), r.dirty())) : a.kind === "trim" ? t.data = t.data.trim() : a.kind === "startsWith" ? t.data.startsWith(a.value) || (n = this._getOrReturnCtx(t, n), P(n, {
563
563
  code: C.invalid_string,
564
564
  validation: { startsWith: a.value },
565
565
  message: a.message
566
- }), r.dirty()) : a.kind === "endsWith" ? t.data.endsWith(a.value) || (n = this._getOrReturnCtx(t, n), Y(n, {
566
+ }), r.dirty()) : a.kind === "endsWith" ? t.data.endsWith(a.value) || (n = this._getOrReturnCtx(t, n), P(n, {
567
567
  code: C.invalid_string,
568
568
  validation: { endsWith: a.value },
569
569
  message: a.message
570
- }), r.dirty()) : S.assertNever(a);
570
+ }), r.dirty()) : N.assertNever(a);
571
571
  return { status: r.value, value: t.data };
572
572
  }
573
573
  _addCheck(t) {
@@ -667,7 +667,7 @@ class We extends X {
667
667
  _parse(t) {
668
668
  if (this._getType(t) !== x.number) {
669
669
  const a = this._getOrReturnCtx(t);
670
- return Y(a, {
670
+ return P(a, {
671
671
  code: C.invalid_type,
672
672
  expected: x.number,
673
673
  received: a.parsedType
@@ -676,28 +676,28 @@ class We extends X {
676
676
  let r;
677
677
  const n = new ae();
678
678
  for (const a of this._def.checks)
679
- a.kind === "int" ? S.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), Y(r, {
679
+ a.kind === "int" ? N.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), P(r, {
680
680
  code: C.invalid_type,
681
681
  expected: "integer",
682
682
  received: "float",
683
683
  message: a.message
684
- }), n.dirty()) : a.kind === "min" ? (a.inclusive ? t.data < a.value : t.data <= a.value) && (r = this._getOrReturnCtx(t, r), Y(r, {
684
+ }), n.dirty()) : a.kind === "min" ? (a.inclusive ? t.data < a.value : t.data <= a.value) && (r = this._getOrReturnCtx(t, r), P(r, {
685
685
  code: C.too_small,
686
686
  minimum: a.value,
687
687
  type: "number",
688
688
  inclusive: a.inclusive,
689
689
  message: a.message
690
- }), n.dirty()) : a.kind === "max" ? (a.inclusive ? t.data > a.value : t.data >= a.value) && (r = this._getOrReturnCtx(t, r), Y(r, {
690
+ }), n.dirty()) : a.kind === "max" ? (a.inclusive ? t.data > a.value : t.data >= a.value) && (r = this._getOrReturnCtx(t, r), P(r, {
691
691
  code: C.too_big,
692
692
  maximum: a.value,
693
693
  type: "number",
694
694
  inclusive: a.inclusive,
695
695
  message: a.message
696
- }), n.dirty()) : a.kind === "multipleOf" ? ia(t.data, a.value) !== 0 && (r = this._getOrReturnCtx(t, r), Y(r, {
696
+ }), n.dirty()) : a.kind === "multipleOf" ? ia(t.data, a.value) !== 0 && (r = this._getOrReturnCtx(t, r), P(r, {
697
697
  code: C.not_multiple_of,
698
698
  multipleOf: a.value,
699
699
  message: a.message
700
- }), n.dirty()) : S.assertNever(a);
700
+ }), n.dirty()) : N.assertNever(a);
701
701
  return { status: n.value, value: t.data };
702
702
  }
703
703
  gte(t, s) {
@@ -802,7 +802,7 @@ class qt extends X {
802
802
  _parse(t) {
803
803
  if (this._getType(t) !== x.bigint) {
804
804
  const r = this._getOrReturnCtx(t);
805
- return Y(r, {
805
+ return P(r, {
806
806
  code: C.invalid_type,
807
807
  expected: x.bigint,
808
808
  received: r.parsedType
@@ -819,7 +819,7 @@ class It extends X {
819
819
  _parse(t) {
820
820
  if (this._getType(t) !== x.boolean) {
821
821
  const r = this._getOrReturnCtx(t);
822
- return Y(r, {
822
+ return P(r, {
823
823
  code: C.invalid_type,
824
824
  expected: x.boolean,
825
825
  received: r.parsedType
@@ -836,7 +836,7 @@ class nt extends X {
836
836
  _parse(t) {
837
837
  if (this._getType(t) !== x.date) {
838
838
  const a = this._getOrReturnCtx(t);
839
- return Y(a, {
839
+ return P(a, {
840
840
  code: C.invalid_type,
841
841
  expected: x.date,
842
842
  received: a.parsedType
@@ -844,26 +844,26 @@ class nt extends X {
844
844
  }
845
845
  if (isNaN(t.data.getTime())) {
846
846
  const a = this._getOrReturnCtx(t);
847
- return Y(a, {
847
+ return P(a, {
848
848
  code: C.invalid_date
849
849
  }), H;
850
850
  }
851
851
  const r = new ae();
852
852
  let n;
853
853
  for (const a of this._def.checks)
854
- a.kind === "min" ? t.data.getTime() < a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
854
+ a.kind === "min" ? t.data.getTime() < a.value && (n = this._getOrReturnCtx(t, n), P(n, {
855
855
  code: C.too_small,
856
856
  message: a.message,
857
857
  inclusive: !0,
858
858
  minimum: a.value,
859
859
  type: "date"
860
- }), r.dirty()) : a.kind === "max" ? t.data.getTime() > a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
860
+ }), r.dirty()) : a.kind === "max" ? t.data.getTime() > a.value && (n = this._getOrReturnCtx(t, n), P(n, {
861
861
  code: C.too_big,
862
862
  message: a.message,
863
863
  inclusive: !0,
864
864
  maximum: a.value,
865
865
  type: "date"
866
- }), r.dirty()) : S.assertNever(a);
866
+ }), r.dirty()) : N.assertNever(a);
867
867
  return {
868
868
  status: r.value,
869
869
  value: new Date(t.data.getTime())
@@ -911,7 +911,7 @@ class Ht extends X {
911
911
  _parse(t) {
912
912
  if (this._getType(t) !== x.undefined) {
913
913
  const r = this._getOrReturnCtx(t);
914
- return Y(r, {
914
+ return P(r, {
915
915
  code: C.invalid_type,
916
916
  expected: x.undefined,
917
917
  received: r.parsedType
@@ -928,7 +928,7 @@ class Rt extends X {
928
928
  _parse(t) {
929
929
  if (this._getType(t) !== x.null) {
930
930
  const r = this._getOrReturnCtx(t);
931
- return Y(r, {
931
+ return P(r, {
932
932
  code: C.invalid_type,
933
933
  expected: x.null,
934
934
  received: r.parsedType
@@ -968,7 +968,7 @@ Xe.create = (e) => new Xe({
968
968
  class Te extends X {
969
969
  _parse(t) {
970
970
  const s = this._getOrReturnCtx(t);
971
- return Y(s, {
971
+ return P(s, {
972
972
  code: C.invalid_type,
973
973
  expected: x.never,
974
974
  received: s.parsedType
@@ -983,7 +983,7 @@ class Xt extends X {
983
983
  _parse(t) {
984
984
  if (this._getType(t) !== x.undefined) {
985
985
  const r = this._getOrReturnCtx(t);
986
- return Y(r, {
986
+ return P(r, {
987
987
  code: C.invalid_type,
988
988
  expected: x.void,
989
989
  received: r.parsedType
@@ -996,43 +996,43 @@ Xt.create = (e) => new Xt({
996
996
  typeName: I.ZodVoid,
997
997
  ...Q(e)
998
998
  });
999
- class Pe extends X {
999
+ class Ye extends X {
1000
1000
  _parse(t) {
1001
1001
  const { ctx: s, status: r } = this._processInputParams(t), n = this._def;
1002
1002
  if (s.parsedType !== x.array)
1003
- return Y(s, {
1003
+ return P(s, {
1004
1004
  code: C.invalid_type,
1005
1005
  expected: x.array,
1006
1006
  received: s.parsedType
1007
1007
  }), H;
1008
- if (n.minLength !== null && s.data.length < n.minLength.value && (Y(s, {
1008
+ if (n.minLength !== null && s.data.length < n.minLength.value && (P(s, {
1009
1009
  code: C.too_small,
1010
1010
  minimum: n.minLength.value,
1011
1011
  type: "array",
1012
1012
  inclusive: !0,
1013
1013
  message: n.minLength.message
1014
- }), r.dirty()), n.maxLength !== null && s.data.length > n.maxLength.value && (Y(s, {
1014
+ }), r.dirty()), n.maxLength !== null && s.data.length > n.maxLength.value && (P(s, {
1015
1015
  code: C.too_big,
1016
1016
  maximum: n.maxLength.value,
1017
1017
  type: "array",
1018
1018
  inclusive: !0,
1019
1019
  message: n.maxLength.message
1020
1020
  }), r.dirty()), s.common.async)
1021
- return Promise.all(s.data.map((c, l) => n.type._parseAsync(new Ye(s, c, s.path, l)))).then((c) => ae.mergeArray(r, c));
1022
- const a = s.data.map((c, l) => n.type._parseSync(new Ye(s, c, s.path, l)));
1021
+ return Promise.all(s.data.map((c, l) => n.type._parseAsync(new Pe(s, c, s.path, l)))).then((c) => ae.mergeArray(r, c));
1022
+ const a = s.data.map((c, l) => n.type._parseSync(new Pe(s, c, s.path, l)));
1023
1023
  return ae.mergeArray(r, a);
1024
1024
  }
1025
1025
  get element() {
1026
1026
  return this._def.type;
1027
1027
  }
1028
1028
  min(t, s) {
1029
- return new Pe({
1029
+ return new Ye({
1030
1030
  ...this._def,
1031
1031
  minLength: { value: t, message: T.toString(s) }
1032
1032
  });
1033
1033
  }
1034
1034
  max(t, s) {
1035
- return new Pe({
1035
+ return new Ye({
1036
1036
  ...this._def,
1037
1037
  maxLength: { value: t, message: T.toString(s) }
1038
1038
  });
@@ -1044,7 +1044,7 @@ class Pe extends X {
1044
1044
  return this.min(1, t);
1045
1045
  }
1046
1046
  }
1047
- Pe.create = (e, t) => new Pe({
1047
+ Ye.create = (e, t) => new Ye({
1048
1048
  type: e,
1049
1049
  minLength: null,
1050
1050
  maxLength: null,
@@ -1076,7 +1076,7 @@ function rt(e) {
1076
1076
  ...e._def,
1077
1077
  shape: () => t
1078
1078
  });
1079
- } else return e instanceof Pe ? Pe.create(rt(e.element)) : e instanceof Ee ? Ee.create(rt(e.unwrap())) : e instanceof Je ? Je.create(rt(e.unwrap())) : e instanceof Ge ? Ge.create(e.items.map((t) => rt(t))) : e;
1079
+ } else return e instanceof Ye ? Ye.create(rt(e.element)) : e instanceof Ee ? Ee.create(rt(e.unwrap())) : e instanceof Je ? Je.create(rt(e.unwrap())) : e instanceof Ge ? Ge.create(e.items.map((t) => rt(t))) : e;
1080
1080
  }
1081
1081
  class J extends X {
1082
1082
  constructor() {
@@ -1085,13 +1085,13 @@ class J extends X {
1085
1085
  _getCached() {
1086
1086
  if (this._cached !== null)
1087
1087
  return this._cached;
1088
- const t = this._def.shape(), s = S.objectKeys(t);
1088
+ const t = this._def.shape(), s = N.objectKeys(t);
1089
1089
  return this._cached = { shape: t, keys: s };
1090
1090
  }
1091
1091
  _parse(t) {
1092
1092
  if (this._getType(t) !== x.object) {
1093
1093
  const h = this._getOrReturnCtx(t);
1094
- return Y(h, {
1094
+ return P(h, {
1095
1095
  code: C.invalid_type,
1096
1096
  expected: x.object,
1097
1097
  received: h.parsedType
@@ -1102,49 +1102,49 @@ class J extends X {
1102
1102
  c.includes(h) || l.push(h);
1103
1103
  const y = [];
1104
1104
  for (const h of c) {
1105
- const B = a[h], O = n.data[h];
1105
+ const w = a[h], O = n.data[h];
1106
1106
  y.push({
1107
1107
  key: { status: "valid", value: h },
1108
- value: B._parse(new Ye(n, O, n.path, h)),
1108
+ value: w._parse(new Pe(n, O, n.path, h)),
1109
1109
  alwaysSet: h in n.data
1110
1110
  });
1111
1111
  }
1112
1112
  if (this._def.catchall instanceof Te) {
1113
1113
  const h = this._def.unknownKeys;
1114
1114
  if (h === "passthrough")
1115
- for (const B of l)
1115
+ for (const w of l)
1116
1116
  y.push({
1117
- key: { status: "valid", value: B },
1118
- value: { status: "valid", value: n.data[B] }
1117
+ key: { status: "valid", value: w },
1118
+ value: { status: "valid", value: n.data[w] }
1119
1119
  });
1120
1120
  else if (h === "strict")
1121
- l.length > 0 && (Y(n, {
1121
+ l.length > 0 && (P(n, {
1122
1122
  code: C.unrecognized_keys,
1123
1123
  keys: l
1124
1124
  }), r.dirty());
1125
1125
  else if (h !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1126
1126
  } else {
1127
1127
  const h = this._def.catchall;
1128
- for (const B of l) {
1129
- const O = n.data[B];
1128
+ for (const w of l) {
1129
+ const O = n.data[w];
1130
1130
  y.push({
1131
- key: { status: "valid", value: B },
1131
+ key: { status: "valid", value: w },
1132
1132
  value: h._parse(
1133
- new Ye(n, O, n.path, B)
1133
+ new Pe(n, O, n.path, w)
1134
1134
  //, ctx.child(key), value, getParsedType(value)
1135
1135
  ),
1136
- alwaysSet: B in n.data
1136
+ alwaysSet: w in n.data
1137
1137
  });
1138
1138
  }
1139
1139
  }
1140
1140
  return n.common.async ? Promise.resolve().then(async () => {
1141
1141
  const h = [];
1142
- for (const B of y) {
1143
- const O = await B.key;
1142
+ for (const w of y) {
1143
+ const O = await w.key;
1144
1144
  h.push({
1145
1145
  key: O,
1146
- value: await B.value,
1147
- alwaysSet: B.alwaysSet
1146
+ value: await w.value,
1147
+ alwaysSet: w.alwaysSet
1148
1148
  });
1149
1149
  }
1150
1150
  return h;
@@ -1206,7 +1206,7 @@ class J extends X {
1206
1206
  }
1207
1207
  pick(t) {
1208
1208
  const s = {};
1209
- return S.objectKeys(t).map((r) => {
1209
+ return N.objectKeys(t).map((r) => {
1210
1210
  this.shape[r] && (s[r] = this.shape[r]);
1211
1211
  }), new J({
1212
1212
  ...this._def,
@@ -1215,8 +1215,8 @@ class J extends X {
1215
1215
  }
1216
1216
  omit(t) {
1217
1217
  const s = {};
1218
- return S.objectKeys(this.shape).map((r) => {
1219
- S.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
1218
+ return N.objectKeys(this.shape).map((r) => {
1219
+ N.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
1220
1220
  }), new J({
1221
1221
  ...this._def,
1222
1222
  shape: () => s
@@ -1228,8 +1228,8 @@ class J extends X {
1228
1228
  partial(t) {
1229
1229
  const s = {};
1230
1230
  if (t)
1231
- return S.objectKeys(this.shape).map((r) => {
1232
- S.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
1231
+ return N.objectKeys(this.shape).map((r) => {
1232
+ N.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
1233
1233
  }), new J({
1234
1234
  ...this._def,
1235
1235
  shape: () => s
@@ -1257,7 +1257,7 @@ class J extends X {
1257
1257
  });
1258
1258
  }
1259
1259
  keyof() {
1260
- return pr(S.objectKeys(this.shape));
1260
+ return pr(N.objectKeys(this.shape));
1261
1261
  }
1262
1262
  }
1263
1263
  J.create = (e, t) => new J({
@@ -1281,7 +1281,7 @@ J.lazycreate = (e, t) => new J({
1281
1281
  typeName: I.ZodObject,
1282
1282
  ...Q(t)
1283
1283
  });
1284
- class wt extends X {
1284
+ class Bt extends X {
1285
1285
  _parse(t) {
1286
1286
  const { ctx: s } = this._processInputParams(t), r = this._def.options;
1287
1287
  function n(a) {
@@ -1292,7 +1292,7 @@ class wt extends X {
1292
1292
  if (l.result.status === "dirty")
1293
1293
  return s.common.issues.push(...l.ctx.common.issues), l.result;
1294
1294
  const c = a.map((l) => new qe(l.ctx.common.issues));
1295
- return Y(s, {
1295
+ return P(s, {
1296
1296
  code: C.invalid_union,
1297
1297
  unionErrors: c
1298
1298
  }), H;
@@ -1327,19 +1327,19 @@ class wt extends X {
1327
1327
  issues: []
1328
1328
  },
1329
1329
  parent: null
1330
- }, B = y._parseSync({
1330
+ }, w = y._parseSync({
1331
1331
  data: s.data,
1332
1332
  path: s.path,
1333
1333
  parent: h
1334
1334
  });
1335
- if (B.status === "valid")
1336
- return B;
1337
- B.status === "dirty" && !a && (a = { result: B, ctx: h }), h.common.issues.length && c.push(h.common.issues);
1335
+ if (w.status === "valid")
1336
+ return w;
1337
+ w.status === "dirty" && !a && (a = { result: w, ctx: h }), h.common.issues.length && c.push(h.common.issues);
1338
1338
  }
1339
1339
  if (a)
1340
1340
  return s.common.issues.push(...a.ctx.common.issues), a.result;
1341
1341
  const l = c.map((y) => new qe(y));
1342
- return Y(s, {
1342
+ return P(s, {
1343
1343
  code: C.invalid_union,
1344
1344
  unionErrors: l
1345
1345
  }), H;
@@ -1349,7 +1349,7 @@ class wt extends X {
1349
1349
  return this._def.options;
1350
1350
  }
1351
1351
  }
1352
- wt.create = (e, t) => new wt({
1352
+ Bt.create = (e, t) => new Bt({
1353
1353
  options: e,
1354
1354
  typeName: I.ZodUnion,
1355
1355
  ...Q(t)
@@ -1358,7 +1358,7 @@ class Wt extends X {
1358
1358
  _parse(t) {
1359
1359
  const { ctx: s } = this._processInputParams(t);
1360
1360
  if (s.parsedType !== x.object)
1361
- return Y(s, {
1361
+ return P(s, {
1362
1362
  code: C.invalid_type,
1363
1363
  expected: x.object,
1364
1364
  received: s.parsedType
@@ -1372,7 +1372,7 @@ class Wt extends X {
1372
1372
  data: s.data,
1373
1373
  path: s.path,
1374
1374
  parent: s
1375
- }) : (Y(s, {
1375
+ }) : (P(s, {
1376
1376
  code: C.invalid_union_discriminator,
1377
1377
  options: this.validDiscriminatorValues,
1378
1378
  path: [r]
@@ -1420,7 +1420,7 @@ function Cs(e, t) {
1420
1420
  if (e === t)
1421
1421
  return { valid: !0, data: e };
1422
1422
  if (s === x.object && r === x.object) {
1423
- const n = S.objectKeys(t), a = S.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1423
+ const n = N.objectKeys(t), a = N.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1424
1424
  for (const l of a) {
1425
1425
  const y = Cs(e[l], t[l]);
1426
1426
  if (!y.valid)
@@ -1444,10 +1444,10 @@ function Cs(e, t) {
1444
1444
  class Mt extends X {
1445
1445
  _parse(t) {
1446
1446
  const { status: s, ctx: r } = this._processInputParams(t), n = (a, c) => {
1447
- if (Bs(a) || Bs(c))
1447
+ if (ws(a) || ws(c))
1448
1448
  return H;
1449
1449
  const l = Cs(a.value, c.value);
1450
- return l.valid ? ((ws(a) || ws(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1450
+ return l.valid ? ((Bs(a) || Bs(c)) && s.dirty(), { status: s.value, value: l.data }) : (P(r, {
1451
1451
  code: C.invalid_intersection_types
1452
1452
  }), H);
1453
1453
  };
@@ -1483,19 +1483,19 @@ class Ge extends X {
1483
1483
  _parse(t) {
1484
1484
  const { status: s, ctx: r } = this._processInputParams(t);
1485
1485
  if (r.parsedType !== x.array)
1486
- return Y(r, {
1486
+ return P(r, {
1487
1487
  code: C.invalid_type,
1488
1488
  expected: x.array,
1489
1489
  received: r.parsedType
1490
1490
  }), H;
1491
1491
  if (r.data.length < this._def.items.length)
1492
- return Y(r, {
1492
+ return P(r, {
1493
1493
  code: C.too_small,
1494
1494
  minimum: this._def.items.length,
1495
1495
  inclusive: !0,
1496
1496
  type: "array"
1497
1497
  }), H;
1498
- !this._def.rest && r.data.length > this._def.items.length && (Y(r, {
1498
+ !this._def.rest && r.data.length > this._def.items.length && (P(r, {
1499
1499
  code: C.too_big,
1500
1500
  maximum: this._def.items.length,
1501
1501
  inclusive: !0,
@@ -1503,7 +1503,7 @@ class Ge extends X {
1503
1503
  }), s.dirty());
1504
1504
  const a = r.data.map((c, l) => {
1505
1505
  const y = this._def.items[l] || this._def.rest;
1506
- return y ? y._parse(new Ye(r, c, r.path, l)) : null;
1506
+ return y ? y._parse(new Pe(r, c, r.path, l)) : null;
1507
1507
  }).filter((c) => !!c);
1508
1508
  return r.common.async ? Promise.all(a).then((c) => ae.mergeArray(s, c)) : ae.mergeArray(s, a);
1509
1509
  }
@@ -1533,7 +1533,7 @@ class Ct extends X {
1533
1533
  _parse(t) {
1534
1534
  const { status: s, ctx: r } = this._processInputParams(t);
1535
1535
  if (r.parsedType !== x.object)
1536
- return Y(r, {
1536
+ return P(r, {
1537
1537
  code: C.invalid_type,
1538
1538
  expected: x.object,
1539
1539
  received: r.parsedType
@@ -1541,8 +1541,8 @@ class Ct extends X {
1541
1541
  const n = [], a = this._def.keyType, c = this._def.valueType;
1542
1542
  for (const l in r.data)
1543
1543
  n.push({
1544
- key: a._parse(new Ye(r, l, r.path, l)),
1545
- value: c._parse(new Ye(r, r.data[l], r.path, l))
1544
+ key: a._parse(new Pe(r, l, r.path, l)),
1545
+ value: c._parse(new Pe(r, r.data[l], r.path, l))
1546
1546
  });
1547
1547
  return r.common.async ? ae.mergeObjectAsync(s, n) : ae.mergeObjectSync(s, n);
1548
1548
  }
@@ -1567,33 +1567,33 @@ class kt extends X {
1567
1567
  _parse(t) {
1568
1568
  const { status: s, ctx: r } = this._processInputParams(t);
1569
1569
  if (r.parsedType !== x.map)
1570
- return Y(r, {
1570
+ return P(r, {
1571
1571
  code: C.invalid_type,
1572
1572
  expected: x.map,
1573
1573
  received: r.parsedType
1574
1574
  }), H;
1575
1575
  const n = this._def.keyType, a = this._def.valueType, c = [...r.data.entries()].map(([l, y], h) => ({
1576
- key: n._parse(new Ye(r, l, r.path, [h, "key"])),
1577
- value: a._parse(new Ye(r, y, r.path, [h, "value"]))
1576
+ key: n._parse(new Pe(r, l, r.path, [h, "key"])),
1577
+ value: a._parse(new Pe(r, y, r.path, [h, "value"]))
1578
1578
  }));
1579
1579
  if (r.common.async) {
1580
1580
  const l = /* @__PURE__ */ new Map();
1581
1581
  return Promise.resolve().then(async () => {
1582
1582
  for (const y of c) {
1583
- const h = await y.key, B = await y.value;
1584
- if (h.status === "aborted" || B.status === "aborted")
1583
+ const h = await y.key, w = await y.value;
1584
+ if (h.status === "aborted" || w.status === "aborted")
1585
1585
  return H;
1586
- (h.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(h.value, B.value);
1586
+ (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1587
1587
  }
1588
1588
  return { status: s.value, value: l };
1589
1589
  });
1590
1590
  } else {
1591
1591
  const l = /* @__PURE__ */ new Map();
1592
1592
  for (const y of c) {
1593
- const h = y.key, B = y.value;
1594
- if (h.status === "aborted" || B.status === "aborted")
1593
+ const h = y.key, w = y.value;
1594
+ if (h.status === "aborted" || w.status === "aborted")
1595
1595
  return H;
1596
- (h.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(h.value, B.value);
1596
+ (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1597
1597
  }
1598
1598
  return { status: s.value, value: l };
1599
1599
  }
@@ -1609,19 +1609,19 @@ class Le extends X {
1609
1609
  _parse(t) {
1610
1610
  const { status: s, ctx: r } = this._processInputParams(t);
1611
1611
  if (r.parsedType !== x.set)
1612
- return Y(r, {
1612
+ return P(r, {
1613
1613
  code: C.invalid_type,
1614
1614
  expected: x.set,
1615
1615
  received: r.parsedType
1616
1616
  }), H;
1617
1617
  const n = this._def;
1618
- n.minSize !== null && r.data.size < n.minSize.value && (Y(r, {
1618
+ n.minSize !== null && r.data.size < n.minSize.value && (P(r, {
1619
1619
  code: C.too_small,
1620
1620
  minimum: n.minSize.value,
1621
1621
  type: "set",
1622
1622
  inclusive: !0,
1623
1623
  message: n.minSize.message
1624
- }), s.dirty()), n.maxSize !== null && r.data.size > n.maxSize.value && (Y(r, {
1624
+ }), s.dirty()), n.maxSize !== null && r.data.size > n.maxSize.value && (P(r, {
1625
1625
  code: C.too_big,
1626
1626
  maximum: n.maxSize.value,
1627
1627
  type: "set",
@@ -1631,14 +1631,14 @@ class Le extends X {
1631
1631
  const a = this._def.valueType;
1632
1632
  function c(y) {
1633
1633
  const h = /* @__PURE__ */ new Set();
1634
- for (const B of y) {
1635
- if (B.status === "aborted")
1634
+ for (const w of y) {
1635
+ if (w.status === "aborted")
1636
1636
  return H;
1637
- B.status === "dirty" && s.dirty(), h.add(B.value);
1637
+ w.status === "dirty" && s.dirty(), h.add(w.value);
1638
1638
  }
1639
1639
  return { status: s.value, value: h };
1640
1640
  }
1641
- const l = [...r.data.values()].map((y, h) => a._parse(new Ye(r, y, r.path, h)));
1641
+ const l = [...r.data.values()].map((y, h) => a._parse(new Pe(r, y, r.path, h)));
1642
1642
  return r.common.async ? Promise.all(l).then((y) => c(y)) : c(l);
1643
1643
  }
1644
1644
  min(t, s) {
@@ -1674,7 +1674,7 @@ class Ke extends X {
1674
1674
  _parse(t) {
1675
1675
  const { ctx: s } = this._processInputParams(t);
1676
1676
  if (s.parsedType !== x.function)
1677
- return Y(s, {
1677
+ return P(s, {
1678
1678
  code: C.invalid_type,
1679
1679
  expected: x.function,
1680
1680
  received: s.parsedType
@@ -1687,7 +1687,7 @@ class Ke extends X {
1687
1687
  s.common.contextualErrorMap,
1688
1688
  s.schemaErrorMap,
1689
1689
  Vt(),
1690
- Bt
1690
+ wt
1691
1691
  ].filter((h) => !!h),
1692
1692
  issueData: {
1693
1693
  code: C.invalid_arguments,
@@ -1703,7 +1703,7 @@ class Ke extends X {
1703
1703
  s.common.contextualErrorMap,
1704
1704
  s.schemaErrorMap,
1705
1705
  Vt(),
1706
- Bt
1706
+ wt
1707
1707
  ].filter((h) => !!h),
1708
1708
  issueData: {
1709
1709
  code: C.invalid_return_type,
@@ -1713,20 +1713,20 @@ class Ke extends X {
1713
1713
  }
1714
1714
  const a = { errorMap: s.common.contextualErrorMap }, c = s.data;
1715
1715
  return this._def.returns instanceof ot ? oe(async (...l) => {
1716
- const y = new qe([]), h = await this._def.args.parseAsync(l, a).catch((N) => {
1717
- throw y.addIssue(r(l, N)), y;
1718
- }), B = await c(...h);
1719
- return await this._def.returns._def.type.parseAsync(B, a).catch((N) => {
1720
- throw y.addIssue(n(B, N)), y;
1716
+ const y = new qe([]), h = await this._def.args.parseAsync(l, a).catch((S) => {
1717
+ throw y.addIssue(r(l, S)), y;
1718
+ }), w = await c(...h);
1719
+ return await this._def.returns._def.type.parseAsync(w, a).catch((S) => {
1720
+ throw y.addIssue(n(w, S)), y;
1721
1721
  });
1722
1722
  }) : oe((...l) => {
1723
1723
  const y = this._def.args.safeParse(l, a);
1724
1724
  if (!y.success)
1725
1725
  throw new qe([r(l, y.error)]);
1726
- const h = c(...y.data), B = this._def.returns.safeParse(h, a);
1727
- if (!B.success)
1728
- throw new qe([n(h, B.error)]);
1729
- return B.data;
1726
+ const h = c(...y.data), w = this._def.returns.safeParse(h, a);
1727
+ if (!w.success)
1728
+ throw new qe([n(h, w.error)]);
1729
+ return w.data;
1730
1730
  });
1731
1731
  }
1732
1732
  parameters() {
@@ -1774,11 +1774,11 @@ Tt.create = (e, t) => new Tt({
1774
1774
  typeName: I.ZodLazy,
1775
1775
  ...Q(t)
1776
1776
  });
1777
- class Nt extends X {
1777
+ class St extends X {
1778
1778
  _parse(t) {
1779
1779
  if (t.data !== this._def.value) {
1780
1780
  const s = this._getOrReturnCtx(t);
1781
- return Y(s, {
1781
+ return P(s, {
1782
1782
  code: C.invalid_literal,
1783
1783
  expected: this._def.value
1784
1784
  }), H;
@@ -1789,7 +1789,7 @@ class Nt extends X {
1789
1789
  return this._def.value;
1790
1790
  }
1791
1791
  }
1792
- Nt.create = (e, t) => new Nt({
1792
+ St.create = (e, t) => new St({
1793
1793
  value: e,
1794
1794
  typeName: I.ZodLiteral,
1795
1795
  ...Q(t)
@@ -1805,15 +1805,15 @@ class Lt extends X {
1805
1805
  _parse(t) {
1806
1806
  if (typeof t.data != "string") {
1807
1807
  const s = this._getOrReturnCtx(t), r = this._def.values;
1808
- return Y(s, {
1809
- expected: S.joinValues(r),
1808
+ return P(s, {
1809
+ expected: N.joinValues(r),
1810
1810
  received: s.parsedType,
1811
1811
  code: C.invalid_type
1812
1812
  }), H;
1813
1813
  }
1814
1814
  if (this._def.values.indexOf(t.data) === -1) {
1815
1815
  const s = this._getOrReturnCtx(t), r = this._def.values;
1816
- return Y(s, {
1816
+ return P(s, {
1817
1817
  received: s.data,
1818
1818
  code: C.invalid_enum_value,
1819
1819
  options: r
@@ -1844,20 +1844,20 @@ class Lt extends X {
1844
1844
  }
1845
1845
  }
1846
1846
  Lt.create = pr;
1847
- class St extends X {
1847
+ class Nt extends X {
1848
1848
  _parse(t) {
1849
- const s = S.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1849
+ const s = N.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1850
1850
  if (r.parsedType !== x.string && r.parsedType !== x.number) {
1851
- const n = S.objectValues(s);
1852
- return Y(r, {
1853
- expected: S.joinValues(n),
1851
+ const n = N.objectValues(s);
1852
+ return P(r, {
1853
+ expected: N.joinValues(n),
1854
1854
  received: r.parsedType,
1855
1855
  code: C.invalid_type
1856
1856
  }), H;
1857
1857
  }
1858
1858
  if (s.indexOf(t.data) === -1) {
1859
- const n = S.objectValues(s);
1860
- return Y(r, {
1859
+ const n = N.objectValues(s);
1860
+ return P(r, {
1861
1861
  received: r.data,
1862
1862
  code: C.invalid_enum_value,
1863
1863
  options: n
@@ -1869,7 +1869,7 @@ class St extends X {
1869
1869
  return this._def.values;
1870
1870
  }
1871
1871
  }
1872
- St.create = (e, t) => new St({
1872
+ Nt.create = (e, t) => new Nt({
1873
1873
  values: e,
1874
1874
  typeName: I.ZodNativeEnum,
1875
1875
  ...Q(t)
@@ -1878,7 +1878,7 @@ class ot extends X {
1878
1878
  _parse(t) {
1879
1879
  const { ctx: s } = this._processInputParams(t);
1880
1880
  if (s.parsedType !== x.promise && s.common.async === !1)
1881
- return Y(s, {
1881
+ return P(s, {
1882
1882
  code: C.invalid_type,
1883
1883
  expected: x.promise,
1884
1884
  received: s.parsedType
@@ -1915,7 +1915,7 @@ class Ve extends X {
1915
1915
  }
1916
1916
  const a = {
1917
1917
  addIssue: (c) => {
1918
- Y(r, c), c.fatal ? s.abort() : s.dirty();
1918
+ P(r, c), c.fatal ? s.abort() : s.dirty();
1919
1919
  },
1920
1920
  get path() {
1921
1921
  return r.path;
@@ -1955,7 +1955,7 @@ class Ve extends X {
1955
1955
  return { status: s.value, value: l };
1956
1956
  } else
1957
1957
  return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((c) => Ft(c) ? Promise.resolve(n.transform(c.value, a)).then((l) => ({ status: s.value, value: l })) : c);
1958
- S.assertNever(n);
1958
+ N.assertNever(n);
1959
1959
  }
1960
1960
  }
1961
1961
  Ve.create = (e, t, s) => new Ve({
@@ -2019,7 +2019,7 @@ class Zt extends X {
2019
2019
  _parse(t) {
2020
2020
  if (this._getType(t) !== x.nan) {
2021
2021
  const r = this._getOrReturnCtx(t);
2022
- return Y(r, {
2022
+ return P(r, {
2023
2023
  code: C.invalid_type,
2024
2024
  expected: x.nan,
2025
2025
  received: r.parsedType
@@ -2046,20 +2046,20 @@ var I;
2046
2046
  })(I || (I = {}));
2047
2047
  const la = (e, t = {
2048
2048
  message: `Input not instance of ${e.name}`
2049
- }) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = We.create, ua = Zt.create, Aa = qt.create, br = It.create, da = nt.create, ma = Ht.create, ga = Rt.create, pa = at.create, fa = Xe.create, ha = Te.create, ya = Xt.create, ba = Pe.create, va = J.create, Ba = J.strictCreate, wa = wt.create, Ma = Wt.create, Ca = Mt.create, Da = Ge.create, xa = Ct.create, ja = kt.create, Ea = Le.create, Ya = Ke.create, Pa = Tt.create, Ga = Nt.create, Va = Lt.create, Oa = St.create, Fa = ot.create, Js = Ve.create, qa = Ee.create, Ia = Je.create, Ha = Ve.createWithPreprocess, Ra = () => hr().optional(), Xa = () => yr().optional(), Qa = () => br().optional();
2049
+ }) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = We.create, ua = Zt.create, Aa = qt.create, br = It.create, da = nt.create, ma = Ht.create, ga = Rt.create, pa = at.create, fa = Xe.create, ha = Te.create, ya = Xt.create, ba = Ye.create, va = J.create, wa = J.strictCreate, Ba = Bt.create, Ma = Wt.create, Ca = Mt.create, Da = Ge.create, xa = Ct.create, ja = kt.create, Ea = Le.create, Pa = Ke.create, Ya = Tt.create, Ga = St.create, Va = Lt.create, Oa = Nt.create, Fa = ot.create, Js = Ve.create, qa = Ee.create, Ia = Je.create, Ha = Ve.createWithPreprocess, Ra = () => hr().optional(), Xa = () => yr().optional(), Qa = () => br().optional();
2050
2050
  var ft = /* @__PURE__ */ Object.freeze({
2051
2051
  __proto__: null,
2052
2052
  getParsedType: Re,
2053
2053
  ZodParsedType: x,
2054
2054
  makeIssue: Ot,
2055
2055
  EMPTY_PATH: sa,
2056
- addIssueToContext: Y,
2056
+ addIssueToContext: P,
2057
2057
  ParseStatus: ae,
2058
2058
  INVALID: H,
2059
2059
  DIRTY: ra,
2060
2060
  OK: oe,
2061
- isAborted: Bs,
2062
- isDirty: ws,
2061
+ isAborted: ws,
2062
+ isDirty: Bs,
2063
2063
  isValid: Ft,
2064
2064
  isAsync: Ms,
2065
2065
  jsonStringifyReplacer: qs,
@@ -2075,12 +2075,12 @@ var ft = /* @__PURE__ */ Object.freeze({
2075
2075
  ZodUnknown: Xe,
2076
2076
  ZodNever: Te,
2077
2077
  ZodVoid: Xt,
2078
- ZodArray: Pe,
2078
+ ZodArray: Ye,
2079
2079
  get objectUtil() {
2080
2080
  return Qt;
2081
2081
  },
2082
2082
  ZodObject: J,
2083
- ZodUnion: wt,
2083
+ ZodUnion: Bt,
2084
2084
  ZodDiscriminatedUnion: Wt,
2085
2085
  ZodIntersection: Mt,
2086
2086
  ZodTuple: Ge,
@@ -2089,9 +2089,9 @@ var ft = /* @__PURE__ */ Object.freeze({
2089
2089
  ZodSet: Le,
2090
2090
  ZodFunction: Ke,
2091
2091
  ZodLazy: Tt,
2092
- ZodLiteral: Nt,
2092
+ ZodLiteral: St,
2093
2093
  ZodEnum: Lt,
2094
- ZodNativeEnum: St,
2094
+ ZodNativeEnum: Nt,
2095
2095
  ZodPromise: ot,
2096
2096
  ZodEffects: Ve,
2097
2097
  ZodTransformer: Ve,
@@ -2114,10 +2114,10 @@ var ft = /* @__PURE__ */ Object.freeze({
2114
2114
  discriminatedUnion: Ma,
2115
2115
  effect: Js,
2116
2116
  enum: Va,
2117
- function: Ya,
2117
+ function: Pa,
2118
2118
  instanceof: la,
2119
2119
  intersection: Ca,
2120
- lazy: Pa,
2120
+ lazy: Ya,
2121
2121
  literal: Ga,
2122
2122
  map: ja,
2123
2123
  nan: ua,
@@ -2135,18 +2135,18 @@ var ft = /* @__PURE__ */ Object.freeze({
2135
2135
  promise: Fa,
2136
2136
  record: xa,
2137
2137
  set: Ea,
2138
- strictObject: Ba,
2138
+ strictObject: wa,
2139
2139
  string: hr,
2140
2140
  transformer: Js,
2141
2141
  tuple: Da,
2142
2142
  undefined: ma,
2143
- union: wa,
2143
+ union: Ba,
2144
2144
  unknown: fa,
2145
2145
  void: ya,
2146
2146
  ZodIssueCode: C,
2147
2147
  quotelessJson: ea,
2148
2148
  ZodError: qe,
2149
- defaultErrorMap: Bt,
2149
+ defaultErrorMap: wt,
2150
2150
  setErrorMap: ta,
2151
2151
  getErrorMap: Vt
2152
2152
  });
@@ -2201,7 +2201,7 @@ function Ds(e, t) {
2201
2201
  }
2202
2202
  function xs(e, t, s, r) {
2203
2203
  if (Hs(e))
2204
- return Na(e.$form, t, s) ? (r[e.$form] = t, !0) : !1;
2204
+ return Sa(e.$form, t, s) ? (r[e.$form] = t, !0) : !1;
2205
2205
  if (Array.isArray(e) || Array.isArray(t))
2206
2206
  return !Array.isArray(e) || !Array.isArray(t) || e.length !== t.length ? !1 : e.every((n, a) => xs(n, t[a], s, r));
2207
2207
  if (typeof e == "object" && e !== null) {
@@ -2218,11 +2218,11 @@ function xs(e, t, s, r) {
2218
2218
  }
2219
2219
  return e === t;
2220
2220
  }
2221
- function Na(e, t, s) {
2221
+ function Sa(e, t, s) {
2222
2222
  const r = s.fields.find((n) => n.key === e);
2223
2223
  return (r == null ? void 0 : r.kind) === "number" ? typeof t == "number" : (r == null ? void 0 : r.kind) === "switch" ? typeof t == "boolean" : typeof t == "number" || typeof t == "string" || typeof t == "boolean";
2224
2224
  }
2225
- function Sa(e) {
2225
+ function Na(e) {
2226
2226
  return "fields" in e;
2227
2227
  }
2228
2228
  function Za(e, t) {
@@ -2231,17 +2231,17 @@ function Za(e, t) {
2231
2231
  const r = t[s.field];
2232
2232
  return "eq" in s ? r === s.eq : s.in ? s.in.includes(r) : !0;
2233
2233
  }
2234
- function za(e, t) {
2234
+ function Ua(e, t) {
2235
2235
  return e.fields.filter((s) => Za(s, t));
2236
2236
  }
2237
2237
  function El(e, t) {
2238
2238
  const s = { ...t };
2239
- for (const r of za(e, s))
2239
+ for (const r of Ua(e, s))
2240
2240
  (s[r.key] === void 0 || s[r.key] === null) && r.default !== void 0 && (s[r.key] = r.default);
2241
2241
  return s;
2242
2242
  }
2243
- function Ua(e) {
2244
- if (Sa(e.form)) {
2243
+ function za(e) {
2244
+ if (Na(e.form)) {
2245
2245
  const s = new Set(e.form.fields.map((r) => r.key));
2246
2246
  for (const r of e.form.fields)
2247
2247
  if (r.visibleWhen && !s.has(r.visibleWhen.field))
@@ -2267,7 +2267,7 @@ function Wa(e) {
2267
2267
  const t = e == null ? void 0 : e.shape;
2268
2268
  return t ? Object.keys(t) : void 0;
2269
2269
  }
2270
- const Br = /* @__PURE__ */ new Map(), Pt = [], La = /* @__PURE__ */ new Map(), _s = "prefix:";
2270
+ const wr = /* @__PURE__ */ new Map(), Yt = [], La = /* @__PURE__ */ new Map(), _s = "prefix:";
2271
2271
  function Ka(e) {
2272
2272
  for (const [t, s] of Object.entries(e))
2273
2273
  Ja([t], s);
@@ -2278,10 +2278,10 @@ function Ja(e, t) {
2278
2278
  for (const r of s) La.set(r.builderKey, r);
2279
2279
  for (const r of e)
2280
2280
  if (r.startsWith(_s)) {
2281
- const n = r.slice(_s.length), a = Pt.findIndex((c) => c.prefix === n);
2282
- a >= 0 ? Pt[a] = { prefix: n, builders: s } : Pt.push({ prefix: n, builders: s });
2281
+ const n = r.slice(_s.length), a = Yt.findIndex((c) => c.prefix === n);
2282
+ a >= 0 ? Yt[a] = { prefix: n, builders: s } : Yt.push({ prefix: n, builders: s });
2283
2283
  } else
2284
- Br.set(r, s);
2284
+ wr.set(r, s);
2285
2285
  }
2286
2286
  function _a(e, t) {
2287
2287
  const s = /* @__PURE__ */ new Map();
@@ -2300,10 +2300,10 @@ function _a(e, t) {
2300
2300
  }
2301
2301
  }
2302
2302
  function $a(e) {
2303
- const t = Br.get(e);
2303
+ const t = wr.get(e);
2304
2304
  if (t) return t;
2305
2305
  let s;
2306
- for (const r of Pt)
2306
+ for (const r of Yt)
2307
2307
  e.startsWith(r.prefix) && (!s || r.prefix.length > s.prefix.length) && (s = r);
2308
2308
  return (s == null ? void 0 : s.builders) ?? [];
2309
2309
  }
@@ -2438,7 +2438,7 @@ const Ao = {
2438
2438
  }
2439
2439
  }
2440
2440
  ]
2441
- }, mo = Ua({
2441
+ }, mo = za({
2442
2442
  version: 1,
2443
2443
  builderKey: io,
2444
2444
  contextSchema: to,
@@ -2473,20 +2473,20 @@ const Ao = {
2473
2473
  summarizeForm: uo
2474
2474
  }), Ze = [mo], go = {
2475
2475
  [`prefix:${eo}`]: Ze,
2476
- [d.report_reports_allDefaultReports]: Ze,
2477
- [d.report_reports_allCustomReports]: Ze,
2476
+ [A.report_reports_allDefaultReports]: Ze,
2477
+ [A.report_reports_allCustomReports]: Ze,
2478
2478
  // Overview / Insight are standalone page-access subjects with their own
2479
2479
  // independent window each. They are NOT category covers and have no cover
2480
2480
  // relationship, so CASL evaluates them in isolation — a per-report window on
2481
2481
  // `reports::<key>` can never bleed into these page checks.
2482
- [d.report_accessOsDashboard]: Ze,
2483
- [d.report_accessOverview]: Ze,
2484
- [d.report_accessInsight]: Ze,
2482
+ [A.report_accessOsDashboard]: Ze,
2483
+ [A.report_accessOverview]: Ze,
2484
+ [A.report_accessInsight]: Ze,
2485
2485
  // Flat POS report subject used by the restaurant role editor.
2486
2486
  report: Ze
2487
2487
  };
2488
2488
  Ka(go);
2489
- function Yl(e, t) {
2489
+ function Pl(e, t) {
2490
2490
  if (!e) return {};
2491
2491
  const s = new Set(t.ownedFields);
2492
2492
  return Object.fromEntries(Object.entries(e).filter(([r]) => s.has(r)));
@@ -2496,7 +2496,7 @@ function po(e, t) {
2496
2496
  const s = new Set(t.flatMap((r) => r.ownedFields));
2497
2497
  return Object.fromEntries(Object.entries(e).filter(([r]) => !s.has(r)));
2498
2498
  }
2499
- function Pl(e, t) {
2499
+ function Yl(e, t) {
2500
2500
  return Object.assign(
2501
2501
  po(
2502
2502
  e,
@@ -2505,7 +2505,7 @@ function Pl(e, t) {
2505
2505
  ...t.map((s) => s.builder.toCondition(s.formValue))
2506
2506
  );
2507
2507
  }
2508
- const wr = {
2508
+ const Br = {
2509
2509
  mode: "Access window",
2510
2510
  unrestricted: "No restriction",
2511
2511
  since: "Since date",
@@ -2521,11 +2521,11 @@ const wr = {
2521
2521
  inheritedLastMonths: "last {amount} months",
2522
2522
  inheritedLastYears: "last {amount} years"
2523
2523
  }, fo = {
2524
- reportAccessWindow: wr
2524
+ reportAccessWindow: Br
2525
2525
  }, ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2526
2526
  __proto__: null,
2527
2527
  default: fo,
2528
- reportAccessWindow: wr
2528
+ reportAccessWindow: Br
2529
2529
  }, Symbol.toStringTag, { value: "Module" })), Mr = {
2530
2530
  mode: "访问期限",
2531
2531
  unrestricted: "无限制",
@@ -2564,7 +2564,7 @@ const wr = {
2564
2564
  inheritedLastYears: "最近 {amount} 年"
2565
2565
  }, vo = {
2566
2566
  reportAccessWindow: Cr
2567
- }, Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2567
+ }, wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2568
2568
  __proto__: null,
2569
2569
  default: vo,
2570
2570
  reportAccessWindow: Cr
@@ -2583,16 +2583,16 @@ const wr = {
2583
2583
  inheritedLastDays: "ล่าสุด {amount} วัน",
2584
2584
  inheritedLastMonths: "ล่าสุด {amount} เดือน",
2585
2585
  inheritedLastYears: "ล่าสุด {amount} ปี"
2586
- }, wo = {
2586
+ }, Bo = {
2587
2587
  reportAccessWindow: Dr
2588
2588
  }, Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2589
2589
  __proto__: null,
2590
- default: wo,
2590
+ default: Bo,
2591
2591
  reportAccessWindow: Dr
2592
2592
  }, Symbol.toStringTag, { value: "Module" })), Co = {
2593
2593
  "en-US": { conditionBuilder: { ...ho } },
2594
2594
  "zh-CN": { conditionBuilder: { ...bo } },
2595
- "zh-Hant": { conditionBuilder: { ...Bo } },
2595
+ "zh-Hant": { conditionBuilder: { ...wo } },
2596
2596
  "th-TH": { conditionBuilder: { ...Mo } }
2597
2597
  }, xr = {
2598
2598
  predefinedRanges: {
@@ -2610,6 +2610,9 @@ const wr = {
2610
2610
  dateRange: {
2611
2611
  placeholder: "Select date range"
2612
2612
  },
2613
+ search: {
2614
+ placeholder: "Search user, event, or record"
2615
+ },
2613
2616
  user: {
2614
2617
  feedmeAdmin: "FeedMe Admin"
2615
2618
  },
@@ -2724,6 +2727,78 @@ const wr = {
2724
2727
  requestMethod: "Request Method",
2725
2728
  requestPath: "Request Path",
2726
2729
  requestBody: "Request Body"
2730
+ },
2731
+ operation: {
2732
+ toggle: "Toggle operations",
2733
+ rowHint: "Operation",
2734
+ unlabeled: "Operation",
2735
+ badge: "{count} ops",
2736
+ partialFailure: "Permission check passed, but one or more operations failed.",
2737
+ sheetHeader: "Operation Detail",
2738
+ entity: "Entity",
2739
+ duration: "Duration",
2740
+ durationValue: "{ms} ms",
2741
+ error: "Error",
2742
+ changes: "Changes",
2743
+ showData: "Show data",
2744
+ added: "Added",
2745
+ removed: "Removed",
2746
+ updated: "Updated",
2747
+ before: "Before",
2748
+ after: "After",
2749
+ noChanges: "No changes recorded for this operation.",
2750
+ wholeValue: "Value"
2751
+ },
2752
+ event: {
2753
+ sentence: {
2754
+ "audit-log": {
2755
+ view: "Viewed audit logs"
2756
+ },
2757
+ restaurant: {
2758
+ list: "Listed restaurants"
2759
+ },
2760
+ "permission-assignment": {
2761
+ manage: "Managed permission assignments",
2762
+ list: "Listed permission assignments",
2763
+ view: "Viewed permission assignment {id}"
2764
+ },
2765
+ "permission-set": {
2766
+ manage: "Managed permission sets",
2767
+ list: "Listed permission sets",
2768
+ view: "Viewed permission set {id}"
2769
+ },
2770
+ "portal-user": {
2771
+ list: "Listed team members",
2772
+ "list-page": "Listed team members",
2773
+ view: "Viewed team member {id}",
2774
+ create: "Added team member {name}",
2775
+ update: "Updated team member {name}",
2776
+ delete: "Removed team member {name}"
2777
+ },
2778
+ "pos-user": {
2779
+ list: "Listed employees",
2780
+ "list-page": "Listed employees",
2781
+ create: "Added employee {name}",
2782
+ "sync-meta": "Synced employee data",
2783
+ update: "Updated employee {id}",
2784
+ migrate: "Migrated employee {id}",
2785
+ "generate-passcode": "Generated employee passcode"
2786
+ },
2787
+ "pos-master-user": {
2788
+ create: "Added POS master employee {name}",
2789
+ update: "Updated POS master employee {name}",
2790
+ delete: "Removed POS master employee {name}"
2791
+ },
2792
+ "pos-role": {
2793
+ list: "Listed employee roles",
2794
+ create: "Added employee role {name}",
2795
+ update: "Updated employee role {name}"
2796
+ },
2797
+ timesheet: {
2798
+ view: "Viewed timesheets",
2799
+ update: "Updated timesheet"
2800
+ }
2801
+ }
2727
2802
  }
2728
2803
  }, Do = {
2729
2804
  date: xr,
@@ -2743,12 +2818,15 @@ const wr = {
2743
2818
  thisMonth: "เดือนนี้",
2744
2819
  lastMonth: "เดือนที่แล้ว"
2745
2820
  }
2746
- }, Yr = {
2821
+ }, Pr = {
2747
2822
  title: "ประวัติการใช้งาน",
2748
2823
  export: "ส่งออก",
2749
2824
  dateRange: {
2750
2825
  placeholder: "เลือกช่วงวันที่"
2751
2826
  },
2827
+ search: {
2828
+ placeholder: "ค้นหาผู้ใช้ เหตุการณ์ หรือรายการ"
2829
+ },
2752
2830
  user: {
2753
2831
  feedmeAdmin: "ผู้ดูแล FeedMe"
2754
2832
  },
@@ -2864,16 +2942,88 @@ const wr = {
2864
2942
  requestMethod: "วิธีการเข้าถึง",
2865
2943
  requestPath: "URL ที่เข้าถึง",
2866
2944
  requestBody: "เนื้อหาคำขอ"
2945
+ },
2946
+ operation: {
2947
+ toggle: "แสดง/ซ่อนการดำเนินการ",
2948
+ rowHint: "การดำเนินการ",
2949
+ unlabeled: "การดำเนินการ",
2950
+ badge: "{count} รายการ",
2951
+ partialFailure: "การตรวจสอบสิทธิ์ผ่านแล้ว แต่มีการดำเนินการอย่างน้อยหนึ่งรายการล้มเหลว",
2952
+ sheetHeader: "รายละเอียดการดำเนินการ",
2953
+ entity: "ข้อมูลที่เกี่ยวข้อง",
2954
+ duration: "ระยะเวลา",
2955
+ durationValue: "{ms} มิลลิวินาที",
2956
+ error: "ข้อผิดพลาด",
2957
+ changes: "การเปลี่ยนแปลง",
2958
+ showData: "แสดงข้อมูล",
2959
+ added: "เพิ่ม",
2960
+ removed: "ลบ",
2961
+ updated: "อัปเดต",
2962
+ before: "ก่อนหน้า",
2963
+ after: "หลังจาก",
2964
+ noChanges: "ไม่มีการเปลี่ยนแปลงที่บันทึกไว้สำหรับการดำเนินการนี้",
2965
+ wholeValue: "ค่า"
2966
+ },
2967
+ event: {
2968
+ sentence: {
2969
+ "audit-log": {
2970
+ view: "ดูบันทึกการตรวจสอบ"
2971
+ },
2972
+ restaurant: {
2973
+ list: "ดูรายการร้านอาหาร"
2974
+ },
2975
+ "permission-assignment": {
2976
+ manage: "จัดการการกำหนดสิทธิ์",
2977
+ list: "ดูรายการการกำหนดสิทธิ์",
2978
+ view: "ดูการกำหนดสิทธิ์ {id}"
2979
+ },
2980
+ "permission-set": {
2981
+ manage: "จัดการกลุ่มสิทธิ์",
2982
+ list: "ดูรายการกลุ่มสิทธิ์",
2983
+ view: "ดูกลุ่มสิทธิ์ {id}"
2984
+ },
2985
+ "portal-user": {
2986
+ list: "ดูรายการสมาชิกทีม",
2987
+ "list-page": "ดูรายการสมาชิกทีม",
2988
+ view: "ดูสมาชิกทีม {id}",
2989
+ create: "เพิ่มสมาชิกทีม {name}",
2990
+ update: "อัปเดตสมาชิกทีม {name}",
2991
+ delete: "ลบสมาชิกทีม {name}"
2992
+ },
2993
+ "pos-user": {
2994
+ list: "ดูรายการพนักงาน",
2995
+ "list-page": "ดูรายการพนักงาน",
2996
+ create: "เพิ่มพนักงาน {name}",
2997
+ "sync-meta": "ซิงค์ข้อมูลพนักงาน",
2998
+ update: "อัปเดตพนักงาน {id}",
2999
+ migrate: "ย้ายพนักงาน {id}",
3000
+ "generate-passcode": "สร้างรหัสผ่านพนักงาน"
3001
+ },
3002
+ "pos-master-user": {
3003
+ create: "เพิ่มพนักงานหลัก POS {name}",
3004
+ update: "อัปเดตพนักงานหลัก POS {name}",
3005
+ delete: "ลบพนักงานหลัก POS {name}"
3006
+ },
3007
+ "pos-role": {
3008
+ list: "ดูรายการบทบาทพนักงาน",
3009
+ create: "เพิ่มบทบาทพนักงาน {name}",
3010
+ update: "อัปเดตบทบาทพนักงาน {name}"
3011
+ },
3012
+ timesheet: {
3013
+ view: "ดูใบบันทึกเวลา",
3014
+ update: "อัปเดตใบบันทึกเวลา"
3015
+ }
3016
+ }
2867
3017
  }
2868
3018
  }, jo = {
2869
3019
  date: Er,
2870
- auditLog: Yr
3020
+ auditLog: Pr
2871
3021
  }, Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2872
3022
  __proto__: null,
2873
- auditLog: Yr,
3023
+ auditLog: Pr,
2874
3024
  date: Er,
2875
3025
  default: jo
2876
- }, Symbol.toStringTag, { value: "Module" })), Pr = {
3026
+ }, Symbol.toStringTag, { value: "Module" })), Yr = {
2877
3027
  predefinedRanges: {
2878
3028
  today: "今天",
2879
3029
  yesterday: "昨天",
@@ -2889,6 +3039,9 @@ const wr = {
2889
3039
  dateRange: {
2890
3040
  placeholder: "选择日期范围"
2891
3041
  },
3042
+ search: {
3043
+ placeholder: "搜索用户、事件或记录"
3044
+ },
2892
3045
  user: {
2893
3046
  feedmeAdmin: "FeedMe 管理员"
2894
3047
  },
@@ -3004,15 +3157,87 @@ const wr = {
3004
3157
  requestMethod: "请求方法",
3005
3158
  requestPath: "请求路径",
3006
3159
  requestBody: "请求内容"
3160
+ },
3161
+ operation: {
3162
+ toggle: "展开/收起操作",
3163
+ rowHint: "操作",
3164
+ unlabeled: "操作",
3165
+ badge: "{count} 项操作",
3166
+ partialFailure: "权限检查已通过,但一个或多个操作失败。",
3167
+ sheetHeader: "操作详情",
3168
+ entity: "对象",
3169
+ duration: "耗时",
3170
+ durationValue: "{ms} 毫秒",
3171
+ error: "错误",
3172
+ changes: "变更内容",
3173
+ showData: "显示数据",
3174
+ added: "已添加",
3175
+ removed: "已移除",
3176
+ updated: "已更新",
3177
+ before: "变更前",
3178
+ after: "变更后",
3179
+ noChanges: "此操作未记录任何变更。",
3180
+ wholeValue: "值"
3181
+ },
3182
+ event: {
3183
+ sentence: {
3184
+ "audit-log": {
3185
+ view: "查看了审计日志"
3186
+ },
3187
+ restaurant: {
3188
+ list: "查看了餐厅列表"
3189
+ },
3190
+ "permission-assignment": {
3191
+ manage: "管理了权限分配",
3192
+ list: "查看了权限分配列表",
3193
+ view: "查看了权限分配 {id}"
3194
+ },
3195
+ "permission-set": {
3196
+ manage: "管理了权限集",
3197
+ list: "查看了权限集列表",
3198
+ view: "查看了权限集 {id}"
3199
+ },
3200
+ "portal-user": {
3201
+ list: "查看了团队成员列表",
3202
+ "list-page": "查看了团队成员列表",
3203
+ view: "查看了团队成员 {id}",
3204
+ create: "添加了团队成员 {name}",
3205
+ update: "更新了团队成员 {name}",
3206
+ delete: "移除了团队成员 {name}"
3207
+ },
3208
+ "pos-user": {
3209
+ list: "查看了员工列表",
3210
+ "list-page": "查看了员工列表",
3211
+ create: "添加了员工 {name}",
3212
+ "sync-meta": "同步了员工数据",
3213
+ update: "更新了员工 {id}",
3214
+ migrate: "迁移了员工 {id}",
3215
+ "generate-passcode": "生成了员工密码"
3216
+ },
3217
+ "pos-master-user": {
3218
+ create: "添加了 POS 主员工 {name}",
3219
+ update: "更新了 POS 主员工 {name}",
3220
+ delete: "移除了 POS 主员工 {name}"
3221
+ },
3222
+ "pos-role": {
3223
+ list: "查看了员工角色列表",
3224
+ create: "添加了员工角色 {name}",
3225
+ update: "更新了员工角色 {name}"
3226
+ },
3227
+ timesheet: {
3228
+ view: "查看了工时表",
3229
+ update: "更新了工时表"
3230
+ }
3231
+ }
3007
3232
  }
3008
- }, Yo = {
3009
- date: Pr,
3233
+ }, Po = {
3234
+ date: Yr,
3010
3235
  auditLog: Gr
3011
- }, Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3236
+ }, Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3012
3237
  __proto__: null,
3013
3238
  auditLog: Gr,
3014
- date: Pr,
3015
- default: Yo
3239
+ date: Yr,
3240
+ default: Po
3016
3241
  }, Symbol.toStringTag, { value: "Module" })), Vr = {
3017
3242
  predefinedRanges: {
3018
3243
  today: "今天",
@@ -3029,6 +3254,9 @@ const wr = {
3029
3254
  dateRange: {
3030
3255
  placeholder: "選擇日期範圍"
3031
3256
  },
3257
+ search: {
3258
+ placeholder: "搜尋使用者、事件或記錄"
3259
+ },
3032
3260
  user: {
3033
3261
  feedmeAdmin: "FeedMe 管理員"
3034
3262
  },
@@ -3144,6 +3372,78 @@ const wr = {
3144
3372
  requestMethod: "請求方法",
3145
3373
  requestPath: "請求路徑",
3146
3374
  requestBody: "請求內容"
3375
+ },
3376
+ operation: {
3377
+ toggle: "展開/收起操作",
3378
+ rowHint: "操作",
3379
+ unlabeled: "操作",
3380
+ badge: "{count} 項操作",
3381
+ partialFailure: "權限檢查已通過,但一個或多個操作失敗。",
3382
+ sheetHeader: "操作詳情",
3383
+ entity: "對象",
3384
+ duration: "耗時",
3385
+ durationValue: "{ms} 毫秒",
3386
+ error: "錯誤",
3387
+ changes: "變更內容",
3388
+ showData: "顯示資料",
3389
+ added: "已新增",
3390
+ removed: "已移除",
3391
+ updated: "已更新",
3392
+ before: "變更前",
3393
+ after: "變更後",
3394
+ noChanges: "此操作未記錄任何變更。",
3395
+ wholeValue: "值"
3396
+ },
3397
+ event: {
3398
+ sentence: {
3399
+ "audit-log": {
3400
+ view: "查看了稽核紀錄"
3401
+ },
3402
+ restaurant: {
3403
+ list: "查看了餐廳列表"
3404
+ },
3405
+ "permission-assignment": {
3406
+ manage: "管理了權限指派",
3407
+ list: "查看了權限指派列表",
3408
+ view: "查看了權限指派 {id}"
3409
+ },
3410
+ "permission-set": {
3411
+ manage: "管理了權限集",
3412
+ list: "查看了權限集列表",
3413
+ view: "查看了權限集 {id}"
3414
+ },
3415
+ "portal-user": {
3416
+ list: "查看了團隊成員列表",
3417
+ "list-page": "查看了團隊成員列表",
3418
+ view: "查看了團隊成員 {id}",
3419
+ create: "新增了團隊成員 {name}",
3420
+ update: "更新了團隊成員 {name}",
3421
+ delete: "移除了團隊成員 {name}"
3422
+ },
3423
+ "pos-user": {
3424
+ list: "查看了員工列表",
3425
+ "list-page": "查看了員工列表",
3426
+ create: "新增了員工 {name}",
3427
+ "sync-meta": "同步了員工資料",
3428
+ update: "更新了員工 {id}",
3429
+ migrate: "移轉了員工 {id}",
3430
+ "generate-passcode": "產生了員工密碼"
3431
+ },
3432
+ "pos-master-user": {
3433
+ create: "新增了 POS 主員工 {name}",
3434
+ update: "更新了 POS 主員工 {name}",
3435
+ delete: "移除了 POS 主員工 {name}"
3436
+ },
3437
+ "pos-role": {
3438
+ list: "查看了員工角色列表",
3439
+ create: "新增了員工角色 {name}",
3440
+ update: "更新了員工角色 {name}"
3441
+ },
3442
+ timesheet: {
3443
+ view: "查看了工時表",
3444
+ update: "更新了工時表"
3445
+ }
3446
+ }
3147
3447
  }
3148
3448
  }, Go = {
3149
3449
  date: Vr,
@@ -3155,7 +3455,7 @@ const wr = {
3155
3455
  default: Go
3156
3456
  }, Symbol.toStringTag, { value: "Module" })), Oo = {
3157
3457
  "en-US": xo,
3158
- "zh-CN": Po,
3458
+ "zh-CN": Yo,
3159
3459
  "th-TH": Eo,
3160
3460
  "zh-Hant": Vo
3161
3461
  }, Fr = {
@@ -3269,7 +3569,6 @@ const wr = {
3269
3569
  maxValueIs: "Max value is {max}",
3270
3570
  minValueIs: "Min value is {min}",
3271
3571
  restaurant: "Restaurant",
3272
- v8OnlyReportTag: "(POS v8 and above)",
3273
3572
  permissionLabels: {
3274
3573
  "order:discount": "Discount",
3275
3574
  "order:changePrice": "Change Price",
@@ -3478,7 +3777,6 @@ const wr = {
3478
3777
  maxValueIs: "ค่าสูงสุดคือ {max}",
3479
3778
  minValueIs: "ค่าต่ำสุดคือ {min}",
3480
3779
  restaurant: "ร้านอาหาร",
3481
- v8OnlyReportTag: "(POS v8 ขึ้นไป)",
3482
3780
  permissionLabels: {
3483
3781
  "order:discount": "ใช้ส่วนลด",
3484
3782
  "order:changePrice": "เปลี่ยนราคา",
@@ -3686,7 +3984,6 @@ const wr = {
3686
3984
  maxValueIs: "最大值是 {max}",
3687
3985
  minValueIs: "最小值是 {min}",
3688
3986
  restaurant: "餐厅",
3689
- v8OnlyReportTag: "(POS v8 及以上)",
3690
3987
  permissionLabels: {
3691
3988
  "order:discount": "折扣",
3692
3989
  "order:changePrice": "修改价格",
@@ -3895,7 +4192,6 @@ const wr = {
3895
4192
  maxValueIs: "最大值是 {max}",
3896
4193
  minValueIs: "最小值是 {min}",
3897
4194
  restaurant: "餐廳",
3898
- v8OnlyReportTag: "(POS v8 及以上)",
3899
4195
  permissionLabels: {
3900
4196
  "order:discount": "折扣",
3901
4197
  "order:changePrice": "修改價格",
@@ -4241,12 +4537,12 @@ const wr = {
4241
4537
  permissions: "Permissions"
4242
4538
  }
4243
4539
  }
4244
- }, No = {
4540
+ }, So = {
4245
4541
  team: Rr,
4246
4542
  permissionSet: Xr
4247
- }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4543
+ }, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4248
4544
  __proto__: null,
4249
- default: No,
4545
+ default: So,
4250
4546
  permissionSet: Xr,
4251
4547
  team: Rr
4252
4548
  }, Symbol.toStringTag, { value: "Module" })), Qr = {
@@ -4500,7 +4796,7 @@ const wr = {
4500
4796
  }, Zo = {
4501
4797
  team: Qr,
4502
4798
  permissionSet: kr
4503
- }, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4799
+ }, Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4504
4800
  __proto__: null,
4505
4801
  default: Zo,
4506
4802
  permissionSet: kr,
@@ -4624,7 +4920,7 @@ const wr = {
4624
4920
  selectPlaceholder: "选择权限角色"
4625
4921
  }
4626
4922
  }
4627
- }, Nr = {
4923
+ }, Sr = {
4628
4924
  title: "角色",
4629
4925
  createButtonLabel: "创建角色",
4630
4926
  search: {
@@ -4753,15 +5049,15 @@ const wr = {
4753
5049
  permissions: "权限"
4754
5050
  }
4755
5051
  }
4756
- }, Uo = {
5052
+ }, zo = {
4757
5053
  team: Tr,
4758
- permissionSet: Nr
5054
+ permissionSet: Sr
4759
5055
  }, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4760
5056
  __proto__: null,
4761
- default: Uo,
4762
- permissionSet: Nr,
5057
+ default: zo,
5058
+ permissionSet: Sr,
4763
5059
  team: Tr
4764
- }, Symbol.toStringTag, { value: "Module" })), Sr = {
5060
+ }, Symbol.toStringTag, { value: "Module" })), Nr = {
4765
5061
  title: "團隊成員",
4766
5062
  subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
4767
5063
  actions: {
@@ -5017,19 +5313,19 @@ const wr = {
5017
5313
  }
5018
5314
  }
5019
5315
  }, Lo = {
5020
- team: Sr,
5316
+ team: Nr,
5021
5317
  permissionSet: Zr
5022
5318
  }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5023
5319
  __proto__: null,
5024
5320
  default: Lo,
5025
5321
  permissionSet: Zr,
5026
- team: Sr
5322
+ team: Nr
5027
5323
  }, Symbol.toStringTag, { value: "Module" })), Jo = {
5028
- "en-US": So,
5324
+ "en-US": No,
5029
5325
  "zh-CN": Wo,
5030
- "th-TH": zo,
5326
+ "th-TH": Uo,
5031
5327
  "zh-Hant": Ko
5032
- }, zr = {
5328
+ }, Ur = {
5033
5329
  title: "POS Grant",
5034
5330
  actions: {
5035
5331
  create: "Create Passcode",
@@ -5084,12 +5380,12 @@ const wr = {
5084
5380
  copied: "Passcode copied"
5085
5381
  }
5086
5382
  }, _o = {
5087
- grantUser: zr
5383
+ grantUser: Ur
5088
5384
  }, $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5089
5385
  __proto__: null,
5090
5386
  default: _o,
5091
- grantUser: zr
5092
- }, Symbol.toStringTag, { value: "Module" })), Ur = {
5387
+ grantUser: Ur
5388
+ }, Symbol.toStringTag, { value: "Module" })), zr = {
5093
5389
  title: "POS Grant",
5094
5390
  actions: {
5095
5391
  create: "สร้างรหัสผ่าน",
@@ -5144,11 +5440,11 @@ const wr = {
5144
5440
  copied: "คัดลอกรหัสผ่านแล้ว"
5145
5441
  }
5146
5442
  }, ei = {
5147
- grantUser: Ur
5443
+ grantUser: zr
5148
5444
  }, ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5149
5445
  __proto__: null,
5150
5446
  default: ei,
5151
- grantUser: Ur
5447
+ grantUser: zr
5152
5448
  }, Symbol.toStringTag, { value: "Module" })), Wr = {
5153
5449
  title: "POS 授予",
5154
5450
  actions: {
@@ -5677,7 +5973,7 @@ const wr = {
5677
5973
  }
5678
5974
  }, vi = {
5679
5975
  posAccess: sn
5680
- }, Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5976
+ }, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5681
5977
  __proto__: null,
5682
5978
  default: vi,
5683
5979
  posAccess: sn
@@ -5689,516 +5985,525 @@ const wr = {
5689
5985
  codes: "授權碼",
5690
5986
  codesDescription: "產生一次性授權碼,用於核准退款、作廢等敏感操作。"
5691
5987
  }
5692
- }, wi = {
5988
+ }, Bi = {
5693
5989
  posAccess: rn
5694
5990
  }, Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5695
5991
  __proto__: null,
5696
- default: wi,
5992
+ default: Bi,
5697
5993
  posAccess: rn
5698
5994
  }, Symbol.toStringTag, { value: "Module" })), Ci = {
5699
5995
  "en-US": hi,
5700
- "zh-CN": Bi,
5996
+ "zh-CN": wi,
5701
5997
  "th-TH": bi,
5702
5998
  "zh-Hant": Mi
5703
5999
  }, yt = {
5704
6000
  Action: o,
5705
6001
  Subject: {
5706
- Business: d,
6002
+ Business: A,
5707
6003
  Restaurant: mr
5708
6004
  }
5709
6005
  }, nn = {
5710
- [ee.permission]: d.hrm_teamMember,
5711
- [ee.promotion]: d.crm_promotion,
5712
- [ee.voucher]: d.crm_voucher,
5713
- [ee.membership]: d.crm_membership,
5714
- [ee.stock]: d.inventory_stock,
5715
- [ee.wastageTemplate]: d.inventory_wastageTemplate,
5716
- [ee.closingTemplate]: d.inventory_closingTemplate,
5717
- [ee.orderTemplate]: d.inventory_orderTemplate,
5718
- [ee.ingredient]: d.inventory_ingredient,
5719
- [ee.recipe]: d.inventory_recipe,
5720
- [ee.unit]: d.inventory_unit,
5721
- [ee.supplier]: d.inventory_supplier,
5722
- [ee.warehouse]: d.inventory_warehouse,
5723
- [ee.publish]: d.inventory_publish,
5724
- [ee.integration]: d.inventory_integration,
5725
- [ee.orderDraft]: d.inventory_orderDraftApproval,
5726
- [ee.unitCostHistory]: d.inventory_unitCostHistory
6006
+ [ee.permission]: A.hrm_teamMember,
6007
+ [ee.promotion]: A.crm_promotion,
6008
+ [ee.voucher]: A.crm_voucher,
6009
+ [ee.membership]: A.crm_membership,
6010
+ [ee.stock]: A.inventory_stock,
6011
+ [ee.wastageTemplate]: A.inventory_wastageTemplate,
6012
+ [ee.closingTemplate]: A.inventory_closingTemplate,
6013
+ [ee.orderTemplate]: A.inventory_orderTemplate,
6014
+ [ee.ingredient]: A.inventory_ingredient,
6015
+ [ee.recipe]: A.inventory_recipe,
6016
+ [ee.unit]: A.inventory_unit,
6017
+ [ee.supplier]: A.inventory_supplier,
6018
+ [ee.warehouse]: A.inventory_warehouse,
6019
+ [ee.publish]: A.inventory_publish,
6020
+ [ee.integration]: A.inventory_integration,
6021
+ [ee.orderDraft]: A.inventory_orderDraftApproval,
6022
+ [ee.unitCostHistory]: A.inventory_unitCostHistory
5727
6023
  }, Gl = {
5728
6024
  // General
5729
6025
  restaurant: {
5730
6026
  label: "Restaurant Owner",
5731
- subject: d.restaurant,
6027
+ subject: A.restaurant,
5732
6028
  actions: [o.manage],
5733
6029
  category: v.general
5734
6030
  },
5735
6031
  // menu
5736
6032
  menuItem: {
5737
6033
  label: "Menu Items Management",
5738
- subject: d.menu_item,
6034
+ subject: A.menu_item,
5739
6035
  actions: [o.manage],
5740
6036
  category: v.menu
5741
6037
  },
5742
6038
  menuCatalog: {
5743
6039
  label: "Menu Catalog Management",
5744
- subject: d.menu_catalog,
6040
+ subject: A.menu_catalog,
5745
6041
  actions: [o.manage],
5746
6042
  category: v.menu
5747
6043
  },
5748
6044
  menuCategory: {
5749
6045
  label: "Menu Category Management",
5750
- subject: d.menu_category,
6046
+ subject: A.menu_category,
5751
6047
  actions: [o.manage],
5752
6048
  category: v.menu
5753
6049
  },
5754
6050
  menuSubCategory: {
5755
6051
  label: "Menu Sub-category Management",
5756
- subject: d.menu_subCategory,
6052
+ subject: A.menu_subCategory,
5757
6053
  actions: [o.manage],
5758
6054
  category: v.menu
5759
6055
  },
5760
6056
  menuGroup: {
5761
6057
  label: "Menu Group Management",
5762
- subject: d.menu_group,
6058
+ subject: A.menu_group,
5763
6059
  actions: [o.manage],
5764
6060
  category: v.menu
5765
6061
  },
5766
6062
  menuTakeaway: {
5767
6063
  label: "Menu Takeaway Management",
5768
- subject: d.menu_takeaway,
6064
+ subject: A.menu_takeaway,
5769
6065
  actions: [o.manage],
5770
6066
  category: v.menu
5771
6067
  },
5772
6068
  menuScheduler: {
5773
6069
  label: "Menu Scheduler Management",
5774
- subject: d.menu_scheduler,
6070
+ subject: A.menu_scheduler,
5775
6071
  actions: [o.manage],
5776
6072
  category: v.menu
5777
6073
  },
5778
6074
  menuVariant: {
5779
6075
  label: "Menu Variant Management",
5780
- subject: d.menu_variant,
6076
+ subject: A.menu_variant,
5781
6077
  actions: [o.manage],
5782
6078
  category: v.menu
5783
6079
  },
5784
6080
  menuCookingGuide: {
5785
6081
  label: "Menu Cooking Guide Management",
5786
- subject: d.menu_cookingGuide,
6082
+ subject: A.menu_cookingGuide,
5787
6083
  actions: [o.manage],
5788
6084
  category: v.menu
5789
6085
  },
5790
6086
  menuPrintRoute: {
5791
6087
  label: "Menu Print Route Management",
5792
- subject: d.menu_printRoute,
6088
+ subject: A.menu_printRoute,
5793
6089
  actions: [o.manage],
5794
6090
  category: v.menu
5795
6091
  },
5796
6092
  menuServingSequence: {
5797
6093
  label: "Menu Serving Sequence Management",
5798
- subject: d.menu_servingSequence,
6094
+ subject: A.menu_servingSequence,
5799
6095
  actions: [o.manage],
5800
6096
  category: v.menu
5801
6097
  },
5802
6098
  menuUnit: {
5803
6099
  label: "Menu Unit Management",
5804
- subject: d.menu_unit,
6100
+ subject: A.menu_unit,
5805
6101
  actions: [o.manage],
5806
6102
  category: v.menu
5807
6103
  },
5808
6104
  menuIngredient: {
5809
6105
  label: "Menu Ingredient Management",
5810
- subject: d.menu_ingredient,
6106
+ subject: A.menu_ingredient,
5811
6107
  actions: [o.manage],
5812
6108
  category: v.menu
5813
6109
  },
5814
6110
  menuRecipe: {
5815
6111
  label: "Menu Recipe Management",
5816
- subject: d.menu_recipe,
6112
+ subject: A.menu_recipe,
5817
6113
  actions: [o.manage],
5818
6114
  category: v.menu
5819
6115
  },
5820
6116
  menuSettings: {
5821
6117
  label: "Menu Settings Management",
5822
- subject: d.menu_settings,
6118
+ subject: A.menu_settings,
5823
6119
  actions: [o.manage],
5824
6120
  category: v.menu
5825
6121
  },
5826
6122
  menuPublish: {
5827
6123
  label: "Menu Publish",
5828
- subject: d.menu_publish,
6124
+ subject: A.menu_publish,
5829
6125
  actions: [o.manage],
5830
6126
  category: v.menu
5831
6127
  },
5832
6128
  menuManagement: {
5833
6129
  label: "Menu Management",
5834
- subject: d.menu_menuManagement,
6130
+ subject: A.menu_menuManagement,
5835
6131
  actions: [o.manage],
5836
6132
  category: v.menu
5837
6133
  },
5838
6134
  menuImportExport: {
5839
6135
  label: "Menu Import/Export",
5840
- subject: d.menu_importExport,
6136
+ subject: A.menu_importExport,
5841
6137
  actions: [o.manage],
5842
6138
  category: v.menu
5843
6139
  },
5844
6140
  // inventory
5845
6141
  inventoryStockBalance: {
5846
6142
  label: "Stock Balance Management",
5847
- subject: d.inventory_stockBalance,
6143
+ subject: A.inventory_stockBalance,
5848
6144
  actions: [o.manage],
5849
6145
  category: v.inventory
5850
6146
  },
5851
6147
  inventoryStockAdjustment: {
5852
6148
  label: "Stock Adjustment Management",
5853
- subject: d.inventory_stockAdjustment,
6149
+ subject: A.inventory_stockAdjustment,
6150
+ actions: [o.manage],
6151
+ category: v.inventory
6152
+ },
6153
+ // Deliberately independent of inventoryStockAdjustment (not chained via a
6154
+ // system permission set) — this restricts who can edit the default
6155
+ // adjustment-reason list separately from who can perform adjustments.
6156
+ inventoryStockAdjustmentReason: {
6157
+ label: "Stock Adjustment Reason Management",
6158
+ subject: A.inventory_stockAdjustmentReason,
5854
6159
  actions: [o.manage],
5855
6160
  category: v.inventory
5856
6161
  },
5857
6162
  inventoryUnitCostHistory: {
5858
6163
  label: "Unit Cost History Management",
5859
- subject: d.inventory_unitCostHistory,
6164
+ subject: A.inventory_unitCostHistory,
5860
6165
  actions: [o.manage],
5861
6166
  category: v.inventory
5862
6167
  },
5863
6168
  inventoryWastageTemplate: {
5864
6169
  label: "Wastage Template Management",
5865
- subject: d.inventory_wastageTemplate,
6170
+ subject: A.inventory_wastageTemplate,
5866
6171
  actions: [o.manage],
5867
6172
  category: v.inventory,
5868
6173
  showByFeatureFlag: "inventory_pos_adjust_v2_wastage"
5869
6174
  },
5870
6175
  inventoryClosingHistory: {
5871
6176
  label: "Closing History Management",
5872
- subject: d.inventory_closingHistory,
6177
+ subject: A.inventory_closingHistory,
5873
6178
  actions: [o.manage],
5874
6179
  category: v.inventory
5875
6180
  },
5876
6181
  inventoryClosingTemplate: {
5877
6182
  label: "Closing Template Management",
5878
- subject: d.inventory_closingTemplate,
6183
+ subject: A.inventory_closingTemplate,
5879
6184
  actions: [o.manage],
5880
6185
  category: v.inventory,
5881
6186
  showByFeatureFlag: "inventory_pos_closing_v2"
5882
6187
  },
5883
6188
  inventoryClosingDraft: {
5884
6189
  label: "Closing Draft Management",
5885
- subject: d.inventory_closingDraft,
6190
+ subject: A.inventory_closingDraft,
5886
6191
  actions: [o.manage],
5887
6192
  category: v.inventory,
5888
6193
  showByFeatureFlag: "inventory_pos_closing_v2"
5889
6194
  },
5890
6195
  inventoryIngredient: {
5891
6196
  label: "Ingredient Management",
5892
- subject: d.inventory_ingredient,
6197
+ subject: A.inventory_ingredient,
5893
6198
  actions: [o.manage],
5894
6199
  category: v.inventory
5895
6200
  },
5896
6201
  inventoryIngredientGroup: {
5897
6202
  label: "Ingredient Group Management",
5898
- subject: d.inventory_ingredientGroup,
6203
+ subject: A.inventory_ingredientGroup,
5899
6204
  actions: [o.manage],
5900
6205
  showByFeatureFlag: "inventory_ingredient_group",
5901
6206
  category: v.inventory
5902
6207
  },
5903
6208
  inventoryRecipe: {
5904
6209
  label: "Recipe Management",
5905
- subject: d.inventory_recipe,
6210
+ subject: A.inventory_recipe,
5906
6211
  actions: [o.manage],
5907
6212
  category: v.inventory
5908
6213
  },
5909
6214
  inventoryUnit: {
5910
6215
  label: "Unit Management",
5911
- subject: d.inventory_unit,
6216
+ subject: A.inventory_unit,
5912
6217
  actions: [o.manage],
5913
6218
  category: v.inventory
5914
6219
  },
5915
6220
  inventoryPurchaseTransfer: {
5916
6221
  label: "Purchase / Transfer Management",
5917
- subject: d.inventory_purchaseTransfer,
6222
+ subject: A.inventory_purchaseTransfer,
5918
6223
  actions: [o.manage],
5919
6224
  category: v.inventory
5920
6225
  },
5921
6226
  inventoryOrderDraftApproval: {
5922
6227
  label: "Order Draft Approval",
5923
- subject: d.inventory_orderDraftApproval,
6228
+ subject: A.inventory_orderDraftApproval,
5924
6229
  actions: [o.manage],
5925
6230
  category: v.inventory
5926
6231
  },
5927
6232
  inventoryTransferOut: {
5928
6233
  label: "Transfer Out Management",
5929
- subject: d.inventory_transferOut,
6234
+ subject: A.inventory_transferOut,
5930
6235
  actions: [o.manage],
5931
6236
  category: v.inventory
5932
6237
  },
5933
6238
  inventorySurcharge: {
5934
6239
  label: "Surcharge Management",
5935
- subject: d.inventory_surcharge,
6240
+ subject: A.inventory_surcharge,
5936
6241
  actions: [o.manage],
5937
6242
  showByFeatureFlag: "inventory_portal_surcharge",
5938
6243
  category: v.inventory
5939
6244
  },
5940
6245
  inventoryOrderTemplate: {
5941
6246
  label: "Order Template Management",
5942
- subject: d.inventory_orderTemplate,
6247
+ subject: A.inventory_orderTemplate,
5943
6248
  actions: [o.manage],
5944
6249
  showByFeatureFlag: "inventory_portal_must_use_transfer_template",
5945
6250
  category: v.inventory
5946
6251
  },
5947
6252
  inventorySupplier: {
5948
6253
  label: "Supplier Management",
5949
- subject: d.inventory_supplier,
6254
+ subject: A.inventory_supplier,
5950
6255
  actions: [o.manage],
5951
6256
  category: v.inventory
5952
6257
  },
5953
6258
  inventoryWarehouse: {
5954
6259
  label: "Warehouse Management",
5955
- subject: d.inventory_warehouse,
6260
+ subject: A.inventory_warehouse,
5956
6261
  actions: [o.manage],
5957
6262
  category: v.inventory
5958
6263
  },
5959
6264
  inventoryPublish: {
5960
6265
  label: "Publish Management",
5961
- subject: d.inventory_publish,
6266
+ subject: A.inventory_publish,
5962
6267
  actions: [o.manage],
5963
6268
  category: v.inventory
5964
6269
  },
5965
6270
  inventoryImport: {
5966
6271
  label: "Import Management",
5967
- subject: d.inventory_import,
6272
+ subject: A.inventory_import,
5968
6273
  actions: [o.manage],
5969
6274
  showByFeatureFlag: "inventory_bulk_import",
5970
6275
  category: v.inventory
5971
6276
  },
5972
6277
  inventoryIntegration: {
5973
6278
  label: "Integration Management",
5974
- subject: d.inventory_integration,
6279
+ subject: A.inventory_integration,
5975
6280
  actions: [o.manage],
5976
6281
  category: v.inventory
5977
6282
  },
5978
6283
  // CRM
5979
6284
  crmMembership: {
5980
6285
  label: "Membership Management (V1)",
5981
- subject: d.crm_membership,
6286
+ subject: A.crm_membership,
5982
6287
  actions: [o.manage],
5983
6288
  category: v.crm
5984
6289
  },
5985
6290
  crmPromotion: {
5986
6291
  label: "Promotion Management (V1/V2)",
5987
- subject: d.crm_promotion,
6292
+ subject: A.crm_promotion,
5988
6293
  actions: [o.manage],
5989
6294
  category: v.crm
5990
6295
  },
5991
6296
  crmVoucher: {
5992
6297
  label: "Voucher Management (V1/V2)",
5993
- subject: d.crm_voucher,
6298
+ subject: A.crm_voucher,
5994
6299
  actions: [o.manage],
5995
6300
  category: v.crm
5996
6301
  },
5997
6302
  crmAnalytic: {
5998
6303
  label: "Analytic Management",
5999
- subject: d.crm_analytic,
6304
+ subject: A.crm_analytic,
6000
6305
  actions: [o.manage],
6001
6306
  category: v.crm
6002
6307
  },
6003
6308
  crmTier: {
6004
6309
  label: "Tier Management",
6005
- subject: d.crm_tier,
6310
+ subject: A.crm_tier,
6006
6311
  actions: [o.manage],
6007
6312
  category: v.crm
6008
6313
  },
6009
6314
  crmTitle: {
6010
6315
  label: "Title Management",
6011
- subject: d.crm_title,
6316
+ subject: A.crm_title,
6012
6317
  actions: [o.manage],
6013
6318
  category: v.crm
6014
6319
  },
6015
6320
  crmBroadcast: {
6016
6321
  label: "Broadcast Management",
6017
- subject: d.crm_broadcast,
6322
+ subject: A.crm_broadcast,
6018
6323
  actions: [o.manage],
6019
6324
  category: v.crm
6020
6325
  },
6021
6326
  crmPoint: {
6022
6327
  label: "Point Management",
6023
- subject: d.crm_point,
6328
+ subject: A.crm_point,
6024
6329
  actions: [o.manage],
6025
6330
  category: v.crm
6026
6331
  },
6027
6332
  crmCredit: {
6028
6333
  label: "Credit Management",
6029
- subject: d.crm_credit,
6334
+ subject: A.crm_credit,
6030
6335
  actions: [o.manage],
6031
6336
  category: v.crm
6032
6337
  },
6033
6338
  crmExperience: {
6034
6339
  label: "Experience Management",
6035
- subject: d.crm_experience,
6340
+ subject: A.crm_experience,
6036
6341
  actions: [o.manage],
6037
6342
  category: v.crm
6038
6343
  },
6039
6344
  crmGame: {
6040
6345
  label: "Game Management",
6041
- subject: d.crm_game,
6346
+ subject: A.crm_game,
6042
6347
  actions: [o.manage],
6043
6348
  category: v.crm
6044
6349
  },
6045
6350
  crmMission: {
6046
6351
  label: "Mission Management",
6047
- subject: d.crm_mission,
6352
+ subject: A.crm_mission,
6048
6353
  actions: [o.manage],
6049
6354
  category: v.crm
6050
6355
  },
6051
6356
  crmLoyaltyMember: {
6052
6357
  label: "Loyalty Member Management",
6053
- subject: d.crm_loyaltyMember,
6358
+ subject: A.crm_loyaltyMember,
6054
6359
  actions: [o.manage],
6055
6360
  category: v.crm
6056
6361
  },
6057
6362
  crmLoyaltySegment: {
6058
6363
  label: "Loyalty Segment Management",
6059
- subject: d.crm_loyaltySegment,
6364
+ subject: A.crm_loyaltySegment,
6060
6365
  actions: [o.manage],
6061
6366
  category: v.crm
6062
6367
  },
6063
6368
  crmLoyaltyCard: {
6064
6369
  label: "Loyalty Card Management",
6065
- subject: d.crm_loyaltyCard,
6370
+ subject: A.crm_loyaltyCard,
6066
6371
  actions: [o.manage],
6067
6372
  category: v.crm
6068
6373
  },
6069
6374
  crmReferral: {
6070
6375
  label: "Referral Management",
6071
- subject: d.crm_referral,
6376
+ subject: A.crm_referral,
6072
6377
  actions: [o.manage],
6073
6378
  category: v.crm
6074
6379
  },
6075
6380
  crmStore: {
6076
6381
  label: "Store Management",
6077
- subject: d.crm_store,
6382
+ subject: A.crm_store,
6078
6383
  actions: [o.manage],
6079
6384
  category: v.crm
6080
6385
  },
6081
6386
  crmTransaction: {
6082
6387
  label: "Transaction Management",
6083
- subject: d.crm_transaction,
6388
+ subject: A.crm_transaction,
6084
6389
  actions: [o.manage],
6085
6390
  category: v.crm
6086
6391
  },
6087
6392
  crmSetting: {
6088
6393
  label: "Setting Management",
6089
- subject: d.crm_setting,
6394
+ subject: A.crm_setting,
6090
6395
  actions: [o.manage],
6091
6396
  category: v.crm
6092
6397
  },
6093
6398
  crmBin: {
6094
6399
  label: "Bin Management",
6095
- subject: d.crm_bin,
6400
+ subject: A.crm_bin,
6096
6401
  actions: [o.manage],
6097
6402
  category: v.crm
6098
6403
  },
6099
6404
  crmMarketingMaterial: {
6100
6405
  label: "Marketing Material Management",
6101
- subject: d.crm_marketingMaterial,
6406
+ subject: A.crm_marketingMaterial,
6102
6407
  actions: [o.manage],
6103
6408
  category: v.crm
6104
6409
  },
6105
6410
  // Payment
6106
6411
  paymentPayoutAccount: {
6107
6412
  label: "Payout Account Management",
6108
- subject: d.payment_payoutAccount,
6413
+ subject: A.payment_payoutAccount,
6109
6414
  actions: [o.manage],
6110
6415
  category: v.payment
6111
6416
  },
6112
6417
  paymentOnboarding: {
6113
6418
  label: "Payment Onboarding Management",
6114
- subject: d.payment_paymentOnboarding,
6419
+ subject: A.payment_paymentOnboarding,
6115
6420
  actions: [o.manage],
6116
6421
  category: v.payment
6117
6422
  },
6118
6423
  paymentTransactions: {
6119
6424
  label: "Transactions Management",
6120
- subject: d.payment_transactions,
6425
+ subject: A.payment_transactions,
6121
6426
  actions: [o.manage],
6122
6427
  category: v.payment
6123
6428
  },
6124
6429
  paymentSettlements: {
6125
6430
  label: "Settlements Management",
6126
- subject: d.payment_settlements,
6431
+ subject: A.payment_settlements,
6127
6432
  actions: [o.manage],
6128
6433
  category: v.payment
6129
6434
  },
6130
6435
  // HRM
6131
6436
  hrmTeamMember: {
6132
6437
  label: "Team Member Management",
6133
- subject: d.hrm_teamMember,
6438
+ subject: A.hrm_teamMember,
6134
6439
  actions: [o.manage],
6135
6440
  category: v.hrm
6136
6441
  },
6137
6442
  hrmEmployee: {
6138
6443
  label: "Employee Management",
6139
- subject: d.hrm_employee,
6444
+ subject: A.hrm_employee,
6140
6445
  actions: [o.manage],
6141
6446
  category: v.hrm
6142
6447
  },
6143
6448
  hrmAuditLog: {
6144
6449
  label: "Audit Log Management",
6145
- subject: d.hrm_auditLog,
6450
+ subject: A.hrm_auditLog,
6146
6451
  actions: [o.manage],
6147
6452
  category: v.hrm
6148
6453
  },
6149
6454
  hrmApprovalCode: {
6150
6455
  label: "Approval Code Management",
6151
- subject: d.hrm_approvalCode,
6456
+ subject: A.hrm_approvalCode,
6152
6457
  actions: [o.manage],
6153
6458
  category: v.hrm
6154
6459
  },
6155
6460
  // Report
6156
6461
  reportReports: {
6157
6462
  label: "Create Report",
6158
- subject: d.report_createReport,
6463
+ subject: A.report_createReport,
6159
6464
  actions: [o.manage],
6160
6465
  category: v.report
6161
6466
  },
6162
6467
  reportAccessOsDashboard: {
6163
6468
  label: "Access FeedmeOS Dashboard",
6164
- subject: d.report_accessOsDashboard,
6469
+ subject: A.report_accessOsDashboard,
6165
6470
  actions: [o.manage],
6166
6471
  category: v.report
6167
6472
  },
6168
6473
  reportAccessOverview: {
6169
6474
  label: "Access Overview Page",
6170
- subject: d.report_accessOverview,
6475
+ subject: A.report_accessOverview,
6171
6476
  actions: [o.manage],
6172
6477
  category: v.report
6173
6478
  },
6174
6479
  reportAccessInsight: {
6175
6480
  label: "Access Insight Page",
6176
- subject: d.report_accessInsight,
6481
+ subject: A.report_accessInsight,
6177
6482
  actions: [o.manage],
6178
6483
  category: v.report
6179
6484
  },
6180
6485
  reportAccessSetting: {
6181
6486
  label: "Access Setting Page",
6182
- subject: d.report_accessSetting,
6487
+ subject: A.report_accessSetting,
6183
6488
  actions: [o.manage],
6184
6489
  category: v.report
6185
6490
  },
6186
6491
  reportAccessIntegration: {
6187
6492
  label: "Access Integration Page",
6188
- subject: d.report_accessIntegration,
6493
+ subject: A.report_accessIntegration,
6189
6494
  actions: [o.manage],
6190
6495
  category: v.report
6191
6496
  },
6192
6497
  reportAllDefaultReports: {
6193
6498
  label: "All Default Reports (Include future)",
6194
- subject: d.report_reports_allDefaultReports,
6499
+ subject: A.report_reports_allDefaultReports,
6195
6500
  actions: [o.manage, o.read, o.create],
6196
6501
  category: v.reports,
6197
6502
  isCategoryCover: !0
6198
6503
  },
6199
6504
  reportAllCustomReports: {
6200
6505
  label: "All Custom Reports (Include future)",
6201
- subject: d.report_reports_allCustomReports,
6506
+ subject: A.report_reports_allCustomReports,
6202
6507
  actions: [
6203
6508
  o.manage,
6204
6509
  o.read,
@@ -6212,28 +6517,28 @@ const wr = {
6212
6517
  // MDM
6213
6518
  mdmDeviceManagement: {
6214
6519
  label: "Device Management",
6215
- subject: d.mdm_deviceManagement,
6520
+ subject: A.mdm_deviceManagement,
6216
6521
  actions: [o.manage],
6217
6522
  category: v.settings,
6218
6523
  showByFeatureFlag: "hrm_enable_mdm_permission"
6219
6524
  },
6220
6525
  mdmCreateDevice: {
6221
6526
  label: "Create New Device",
6222
- subject: d.mdm_createDevice,
6527
+ subject: A.mdm_createDevice,
6223
6528
  actions: [o.manage],
6224
6529
  category: v.settings,
6225
6530
  showByFeatureFlag: "hrm_enable_mdm_permission"
6226
6531
  },
6227
6532
  mdmDeviceBinding: {
6228
6533
  label: "Manage Device Binding",
6229
- subject: d.mdm_deviceBinding,
6534
+ subject: A.mdm_deviceBinding,
6230
6535
  actions: [o.manage],
6231
6536
  category: v.settings,
6232
6537
  showByFeatureFlag: "hrm_enable_mdm_permission"
6233
6538
  },
6234
6539
  mdmCustomerDisplay: {
6235
6540
  label: "Manage Customer Display",
6236
- subject: d.mdm_customerDisplay,
6541
+ subject: A.mdm_customerDisplay,
6237
6542
  actions: [o.manage, o.read, o.update],
6238
6543
  category: v.settings,
6239
6544
  showByFeatureFlag: "hrm_enable_mdm_permission"
@@ -6241,14 +6546,14 @@ const wr = {
6241
6546
  // Kiosk
6242
6547
  kioskDeviceManagement: {
6243
6548
  label: "Kiosk Device Management",
6244
- subject: d.kiosk_deviceManagement,
6549
+ subject: A.kiosk_deviceManagement,
6245
6550
  actions: [o.manage],
6246
6551
  category: v.settings,
6247
6552
  showByFeatureFlag: "hrm_enable_kiosk_permission"
6248
6553
  },
6249
6554
  kioskDeviceBinding: {
6250
6555
  label: "Kiosk Device Binding",
6251
- subject: d.kiosk_deviceBinding,
6556
+ subject: A.kiosk_deviceBinding,
6252
6557
  actions: [o.manage],
6253
6558
  category: v.settings,
6254
6559
  showByFeatureFlag: "hrm_enable_kiosk_permission"
@@ -6256,14 +6561,14 @@ const wr = {
6256
6561
  // E-invoice
6257
6562
  eInvoiceManagement: {
6258
6563
  label: "E-invoice Management",
6259
- subject: d.eInvoice_management,
6564
+ subject: A.eInvoice_management,
6260
6565
  actions: [o.manage],
6261
6566
  category: v.settings,
6262
6567
  showByFeatureFlag: "hrm_enable_einvoice_permission"
6263
6568
  },
6264
6569
  eInvoiceIntegration: {
6265
6570
  label: "Manage E-invoice Integration",
6266
- subject: d.eInvoice_integration,
6571
+ subject: A.eInvoice_integration,
6267
6572
  actions: [o.manage],
6268
6573
  category: v.settings,
6269
6574
  showByFeatureFlag: "hrm_enable_einvoice_permission"
@@ -6271,56 +6576,56 @@ const wr = {
6271
6576
  // operation
6272
6577
  operationReceipt: {
6273
6578
  label: "Receipt",
6274
- subject: d.operation_receipt,
6579
+ subject: A.operation_receipt,
6275
6580
  actions: [o.manage],
6276
6581
  category: v.operation,
6277
6582
  showByFeatureFlag: "hrm_enable_operation_permission"
6278
6583
  },
6279
6584
  operationTableManagement: {
6280
6585
  label: "Table Management",
6281
- subject: d.operation_tableManagement,
6586
+ subject: A.operation_tableManagement,
6282
6587
  actions: [o.manage],
6283
6588
  category: v.operation,
6284
6589
  showByFeatureFlag: "hrm_enable_operation_permission"
6285
6590
  },
6286
6591
  operationOfflinePayment: {
6287
6592
  label: "Offline Payment Management",
6288
- subject: d.operation_offlinePayment,
6593
+ subject: A.operation_offlinePayment,
6289
6594
  actions: [o.manage],
6290
6595
  category: v.operation,
6291
6596
  showByFeatureFlag: "hrm_enable_operation_permission"
6292
6597
  },
6293
6598
  operationReasonTemplate: {
6294
6599
  label: "Reason Template Management",
6295
- subject: d.operation_reasonTemplate,
6600
+ subject: A.operation_reasonTemplate,
6296
6601
  actions: [o.manage],
6297
6602
  category: v.operation,
6298
6603
  showByFeatureFlag: "hrm_enable_operation_permission"
6299
6604
  },
6300
6605
  operationDiscountRule: {
6301
6606
  label: "Discount Rule Management",
6302
- subject: d.operation_discountRule,
6607
+ subject: A.operation_discountRule,
6303
6608
  actions: [o.manage],
6304
6609
  category: v.operation,
6305
6610
  showByFeatureFlag: "hrm_enable_operation_permission"
6306
6611
  },
6307
6612
  operationServiceCharge: {
6308
6613
  label: "Service Charge Management",
6309
- subject: d.operation_serviceCharge,
6614
+ subject: A.operation_serviceCharge,
6310
6615
  actions: [o.manage],
6311
6616
  category: v.operation,
6312
6617
  showByFeatureFlag: "hrm_enable_operation_permission"
6313
6618
  },
6314
6619
  operationKitchenPrintTemplate: {
6315
6620
  label: "Print Template Management",
6316
- subject: d.operation_kitchenPrintTemplate,
6621
+ subject: A.operation_kitchenPrintTemplate,
6317
6622
  actions: [o.manage],
6318
6623
  category: v.operation,
6319
6624
  showByFeatureFlag: "hrm_enable_operation_permission"
6320
6625
  },
6321
6626
  operationOrderSetting: {
6322
6627
  label: "Order Settings",
6323
- subject: d.operation_orderSetting,
6628
+ subject: A.operation_orderSetting,
6324
6629
  actions: [o.manage],
6325
6630
  category: v.operation,
6326
6631
  showByFeatureFlag: "hrm_enable_operation_permission"
@@ -6328,42 +6633,42 @@ const wr = {
6328
6633
  // Mini Program
6329
6634
  miniProgramProfile: {
6330
6635
  label: "Business Profile Management",
6331
- subject: d.miniProgram_profile,
6636
+ subject: A.miniProgram_profile,
6332
6637
  actions: [o.manage],
6333
6638
  category: v.miniProgram,
6334
6639
  showByFeatureFlag: "hrm_enable_miniprogram_permission"
6335
6640
  },
6336
6641
  miniProgramBrandkit: {
6337
6642
  label: "Brand Kit Management",
6338
- subject: d.miniProgram_brandkit,
6643
+ subject: A.miniProgram_brandkit,
6339
6644
  actions: [o.manage],
6340
6645
  category: v.miniProgram,
6341
6646
  showByFeatureFlag: "hrm_enable_miniprogram_permission"
6342
6647
  },
6343
6648
  miniProgramTemplate: {
6344
6649
  label: "Template Management",
6345
- subject: d.miniProgram_template,
6650
+ subject: A.miniProgram_template,
6346
6651
  actions: [o.manage],
6347
6652
  category: v.miniProgram,
6348
6653
  showByFeatureFlag: "hrm_enable_miniprogram_permission"
6349
6654
  },
6350
6655
  miniProgramPublish: {
6351
6656
  label: "Publish Management",
6352
- subject: d.miniProgram_publish,
6657
+ subject: A.miniProgram_publish,
6353
6658
  actions: [o.manage],
6354
6659
  category: v.miniProgram,
6355
6660
  showByFeatureFlag: "hrm_enable_miniprogram_permission"
6356
6661
  },
6357
6662
  miniProgramAssets: {
6358
6663
  label: "Assets Management",
6359
- subject: d.miniProgram_assets,
6664
+ subject: A.miniProgram_assets,
6360
6665
  actions: [o.manage],
6361
6666
  category: v.miniProgram,
6362
6667
  showByFeatureFlag: "hrm_enable_miniprogram_permission"
6363
6668
  },
6364
6669
  miniProgramNativeCredentials: {
6365
6670
  label: "Credentials Management",
6366
- subject: d.miniProgram_nativeCredentials,
6671
+ subject: A.miniProgram_nativeCredentials,
6367
6672
  actions: [o.manage],
6368
6673
  category: v.miniProgram,
6369
6674
  showByFeatureFlag: "hrm_enable_miniprogram_permission"
@@ -6371,7 +6676,7 @@ const wr = {
6371
6676
  // Media
6372
6677
  mediaAssets: {
6373
6678
  label: "Media Library Management",
6374
- subject: d.media_assets,
6679
+ subject: A.media_assets,
6375
6680
  actions: [o.manage],
6376
6681
  category: v.media,
6377
6682
  showByFeatureFlag: "hrm_enable_media_permission"
@@ -6456,14 +6761,14 @@ const L = [
6456
6761
  o.delete
6457
6762
  ]
6458
6763
  }
6459
- ], Yi = [
6764
+ ], Pi = [
6460
6765
  ...L,
6461
6766
  {
6462
6767
  label: "Setting",
6463
6768
  subject: Z.crm_setting,
6464
6769
  actions: [o.read, o.update]
6465
6770
  }
6466
- ], Pi = [
6771
+ ], Yi = [
6467
6772
  ...L,
6468
6773
  {
6469
6774
  label: "Reward",
@@ -6675,10 +6980,10 @@ const L = [
6675
6980
  ), vn = Ae(
6676
6981
  ye,
6677
6982
  Ii
6678
- ), Bn = Ae(
6983
+ ), wn = Ae(
6679
6984
  ye,
6680
6985
  Hi
6681
- ), wn = Ae(
6986
+ ), Bn = Ae(
6682
6987
  ye,
6683
6988
  Ri
6684
6989
  ), Xi = Ae(
@@ -6686,7 +6991,7 @@ const L = [
6686
6991
  cn
6687
6992
  ), Mn = Ae(
6688
6993
  ye,
6689
- Yi
6994
+ Pi
6690
6995
  ), Qi = [
6691
6996
  ...L,
6692
6997
  {
@@ -6719,7 +7024,7 @@ const L = [
6719
7024
  ji,
6720
7025
  Ei,
6721
7026
  Mn,
6722
- Pi,
7027
+ Yi,
6723
7028
  un,
6724
7029
  pn,
6725
7030
  fn,
@@ -6727,132 +7032,132 @@ const L = [
6727
7032
  yn,
6728
7033
  bn,
6729
7034
  vn,
6730
- Bn,
6731
7035
  wn,
7036
+ Bn,
6732
7037
  An,
6733
7038
  dn,
6734
7039
  mn,
6735
7040
  gn
6736
- ), Ni = Ae(
7041
+ ), Si = Ae(
6737
7042
  ye,
6738
7043
  cn,
6739
7044
  ln
6740
- ), Si = Ae(
7045
+ ), Ni = Ae(
6741
7046
  ye,
6742
7047
  Qi
6743
- ), Zi = Ae(ki), zi = {
6744
- [`set_${d.crm}`]: {
7048
+ ), Zi = Ae(ki), Ui = {
7049
+ [`set_${A.crm}`]: {
6745
7050
  key: "sys:crm:access",
6746
7051
  name: "CRM Access",
6747
7052
  permissions: Ti
6748
7053
  },
6749
- [`set_${d.crm_promotion}`]: {
7054
+ [`set_${A.crm_promotion}`]: {
6750
7055
  key: "sys:crm:promotion",
6751
7056
  name: "CRM Promotion",
6752
- permissions: Ni
7057
+ permissions: Si
6753
7058
  },
6754
- [`set_${d.crm_voucher}`]: {
7059
+ [`set_${A.crm_voucher}`]: {
6755
7060
  key: "sys:crm:voucher",
6756
7061
  name: "CRM Voucher",
6757
- permissions: Si
7062
+ permissions: Ni
6758
7063
  },
6759
- [`set_${d.crm_membership}`]: {
7064
+ [`set_${A.crm_membership}`]: {
6760
7065
  key: "sys:crm:membership",
6761
7066
  name: "CRM Membership",
6762
7067
  permissions: Zi
6763
7068
  },
6764
- [`set_${d.crm_analytic}`]: {
7069
+ [`set_${A.crm_analytic}`]: {
6765
7070
  key: "sys:crm:analytic",
6766
7071
  name: "CRM Analytic",
6767
7072
  permissions: un
6768
7073
  },
6769
- [`set_${d.crm_tier}`]: {
7074
+ [`set_${A.crm_tier}`]: {
6770
7075
  key: "sys:crm:tier",
6771
7076
  name: "CRM Tier",
6772
7077
  permissions: pn
6773
7078
  },
6774
- [`set_${d.crm_title}`]: {
7079
+ [`set_${A.crm_title}`]: {
6775
7080
  key: "sys:crm:title",
6776
7081
  name: "CRM Title",
6777
7082
  permissions: fn
6778
7083
  },
6779
- [`set_${d.crm_broadcast}`]: {
7084
+ [`set_${A.crm_broadcast}`]: {
6780
7085
  key: "sys:crm:broadcast",
6781
7086
  name: "CRM Broadcast",
6782
7087
  permissions: hn
6783
7088
  },
6784
- [`set_${d.crm_point}`]: {
7089
+ [`set_${A.crm_point}`]: {
6785
7090
  key: "sys:crm:point",
6786
7091
  name: "CRM Point",
6787
7092
  permissions: yn
6788
7093
  },
6789
- [`set_${d.crm_credit}`]: {
7094
+ [`set_${A.crm_credit}`]: {
6790
7095
  key: "sys:crm:credit",
6791
7096
  name: "CRM Credit",
6792
7097
  permissions: bn
6793
7098
  },
6794
- [`set_${d.crm_experience}`]: {
7099
+ [`set_${A.crm_experience}`]: {
6795
7100
  key: "sys:crm:experience",
6796
7101
  name: "CRM Experience",
6797
7102
  permissions: vn
6798
7103
  },
6799
- [`set_${d.crm_game}`]: {
7104
+ [`set_${A.crm_game}`]: {
6800
7105
  key: "sys:crm:game",
6801
7106
  name: "CRM Game",
6802
- permissions: Bn
7107
+ permissions: wn
6803
7108
  },
6804
- [`set_${d.crm_mission}`]: {
7109
+ [`set_${A.crm_mission}`]: {
6805
7110
  key: "sys:crm:mission",
6806
7111
  name: "CRM Mission",
6807
- permissions: wn
7112
+ permissions: Bn
6808
7113
  },
6809
- [`set_${d.crm_loyaltyMember}`]: {
7114
+ [`set_${A.crm_loyaltyMember}`]: {
6810
7115
  key: "sys:crm:loyaltyMember",
6811
7116
  name: "CRM Loyalty Member",
6812
7117
  permissions: An
6813
7118
  },
6814
- [`set_${d.crm_loyaltySegment}`]: {
7119
+ [`set_${A.crm_loyaltySegment}`]: {
6815
7120
  key: "sys:crm:loyaltySegment",
6816
7121
  name: "CRM Loyalty Segment",
6817
7122
  permissions: dn
6818
7123
  },
6819
- [`set_${d.crm_loyaltyCard}`]: {
7124
+ [`set_${A.crm_loyaltyCard}`]: {
6820
7125
  key: "sys:crm:loyaltyCard",
6821
7126
  name: "CRM Loyalty Card",
6822
7127
  permissions: mn
6823
7128
  },
6824
- [`set_${d.crm_referral}`]: {
7129
+ [`set_${A.crm_referral}`]: {
6825
7130
  key: "sys:crm:referral",
6826
7131
  name: "CRM Referral",
6827
7132
  permissions: Xi
6828
7133
  },
6829
- [`set_${d.crm_store}`]: {
7134
+ [`set_${A.crm_store}`]: {
6830
7135
  key: "sys:crm:store",
6831
7136
  name: "CRM Store",
6832
7137
  permissions: on
6833
7138
  },
6834
- [`set_${d.crm_transaction}`]: {
7139
+ [`set_${A.crm_transaction}`]: {
6835
7140
  key: "sys:crm:transaction",
6836
7141
  name: "CRM Transaction",
6837
7142
  permissions: an
6838
7143
  },
6839
- [`set_${d.crm_setting}`]: {
7144
+ [`set_${A.crm_setting}`]: {
6840
7145
  key: "sys:crm:setting",
6841
7146
  name: "CRM Setting",
6842
7147
  permissions: Mn
6843
7148
  },
6844
- [`set_${d.crm_bin}`]: {
7149
+ [`set_${A.crm_bin}`]: {
6845
7150
  key: "sys:crm:bin",
6846
7151
  name: "CRM Bin",
6847
7152
  permissions: gn
6848
7153
  },
6849
- [`set_${d.crm_marketingMaterial}`]: {
7154
+ [`set_${A.crm_marketingMaterial}`]: {
6850
7155
  key: "sys:crm:marketingMaterial",
6851
7156
  name: "CRM Marketing Material",
6852
7157
  permissions: ln
6853
7158
  }
6854
7159
  };
6855
- var V = /* @__PURE__ */ ((e) => (e.inventory = "inventory", e.inventory_stock = "inventory::stock", e.inventory_stockAdjustment = "inventory::stockAdjustment", e.inventory_stockRecalculation = "inventory::stockRecalculation", e.inventory_unitCostHistory = "inventory::unitCostHistory", e.inventory_wastageTemplate = "inventory::wastageTemplate", e.inventory_closing = "inventory::closing", e.inventory_closingDraft = "inventory::closingDraft", e.inventory_closingTemplate = "inventory::closingTemplate", e.inventory_ingredient = "inventory::ingredient", e.inventory_ingredientGroup = "inventory::ingredientGroup", e.inventory_recipe = "inventory::recipe", e.inventory_unit = "inventory::unit", e.inventory_orderTemplate = "inventory::orderTemplate", e.inventory_orderDraft = "inventory::orderDraft", e.inventory_printTemplate = "inventory::printTemplate", e.inventory_purchaseOrder = "inventory::purchaseOrder", e.inventory_transferOutApproval = "inventory::transferOutApproval", e.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", e.inventory_surcharge = "inventory::surcharge", e.inventory_supplier = "inventory::supplier", e.inventory_warehouse = "inventory::warehouse", e.inventory_publish = "inventory::publish", e.inventory_integration = "inventory::integration", e.inventory_deliveryOrder = "inventory::deliveryOrder", e.inventory_shipment = "inventory::shipment", e.inventory_orderDraftApproval = "inventory::orderDraftApproval", e))(V || {});
7160
+ var V = /* @__PURE__ */ ((e) => (e.inventory = "inventory", e.inventory_stock = "inventory::stock", e.inventory_stockAdjustment = "inventory::stockAdjustment", e.inventory_stockAdjustmentReason = "inventory::stockAdjustmentReason", e.inventory_stockRecalculation = "inventory::stockRecalculation", e.inventory_unitCostHistory = "inventory::unitCostHistory", e.inventory_wastageTemplate = "inventory::wastageTemplate", e.inventory_closing = "inventory::closing", e.inventory_closingDraft = "inventory::closingDraft", e.inventory_closingTemplate = "inventory::closingTemplate", e.inventory_ingredient = "inventory::ingredient", e.inventory_ingredientGroup = "inventory::ingredientGroup", e.inventory_recipe = "inventory::recipe", e.inventory_unit = "inventory::unit", e.inventory_orderTemplate = "inventory::orderTemplate", e.inventory_orderDraft = "inventory::orderDraft", e.inventory_printTemplate = "inventory::printTemplate", e.inventory_purchaseOrder = "inventory::purchaseOrder", e.inventory_transferOutApproval = "inventory::transferOutApproval", e.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", e.inventory_surcharge = "inventory::surcharge", e.inventory_supplier = "inventory::supplier", e.inventory_warehouse = "inventory::warehouse", e.inventory_publish = "inventory::publish", e.inventory_integration = "inventory::integration", e.inventory_deliveryOrder = "inventory::deliveryOrder", e.inventory_shipment = "inventory::shipment", e.inventory_orderDraftApproval = "inventory::orderDraftApproval", e))(V || {});
6856
7161
  const ie = [
6857
7162
  {
6858
7163
  label: "Inventory",
@@ -6881,7 +7186,7 @@ const ie = [
6881
7186
  subject: V.inventory_unitCostHistory,
6882
7187
  actions: [o.read]
6883
7188
  }
6884
- ], Ui = [
7189
+ ], zi = [
6885
7190
  ...ie,
6886
7191
  {
6887
7192
  label: "Stock Adjustment",
@@ -7060,7 +7365,7 @@ const Wi = [
7060
7365
  subject: V.inventory_shipment,
7061
7366
  actions: [o.read, o.update]
7062
7367
  }
7063
- ], Yn = [
7368
+ ], Pn = [
7064
7369
  {
7065
7370
  label: "Purchase Order",
7066
7371
  subject: V.inventory_purchaseOrder,
@@ -7081,7 +7386,7 @@ const Wi = [
7081
7386
  subject: V.inventory_shipment,
7082
7387
  actions: [o.read, o.update]
7083
7388
  }
7084
- ], Pn = [
7389
+ ], Yn = [
7085
7390
  ...ie,
7086
7391
  {
7087
7392
  label: "Surcharge",
@@ -7130,8 +7435,8 @@ const Wi = [
7130
7435
  ];
7131
7436
  [
7132
7437
  ...En,
7133
- ...Yn,
7134
7438
  ...Pn,
7439
+ ...Yn,
7135
7440
  ...Gn
7136
7441
  ];
7137
7442
  const $i = [
@@ -7190,107 +7495,107 @@ const $i = [
7190
7495
  ...Xs
7191
7496
  ];
7192
7497
  const nc = {
7193
- [`set_${d.inventory_stockBalance}`]: {
7498
+ [`set_${A.inventory_stockBalance}`]: {
7194
7499
  key: "sys:inventory:stock_balance",
7195
7500
  name: "Stock Balance",
7196
7501
  permissions: Rs
7197
7502
  },
7198
- [`set_${d.inventory_stockAdjustment}`]: {
7503
+ [`set_${A.inventory_stockAdjustment}`]: {
7199
7504
  key: "sys:inventory:stock_adjustment",
7200
7505
  name: "Stock Adjustment",
7201
- permissions: Ui
7506
+ permissions: zi
7202
7507
  },
7203
- [`set_${d.inventory_unitCostHistory}`]: {
7508
+ [`set_${A.inventory_unitCostHistory}`]: {
7204
7509
  key: "sys:inventory:unit_cost_history",
7205
7510
  name: "Unit Cost History",
7206
7511
  permissions: Cn
7207
7512
  },
7208
- [`set_${d.inventory_wastageTemplate}`]: {
7513
+ [`set_${A.inventory_wastageTemplate}`]: {
7209
7514
  key: "sys:inventory:wastage_template",
7210
7515
  name: "Wastage Template",
7211
7516
  permissions: Dn
7212
7517
  },
7213
- [`set_${d.inventory_closingHistory}`]: {
7518
+ [`set_${A.inventory_closingHistory}`]: {
7214
7519
  key: "sys:inventory:closing_history",
7215
7520
  name: "Closing History",
7216
7521
  permissions: Xs
7217
7522
  },
7218
- [`set_${d.inventory_closingTemplate}`]: {
7523
+ [`set_${A.inventory_closingTemplate}`]: {
7219
7524
  key: "sys:inventory:closing_template",
7220
7525
  name: "Closing Template",
7221
7526
  permissions: jn
7222
7527
  },
7223
- [`set_${d.inventory_closingDraft}`]: {
7528
+ [`set_${A.inventory_closingDraft}`]: {
7224
7529
  key: "sys:inventory:closing_draft",
7225
7530
  name: "Closing Draft",
7226
7531
  permissions: xn
7227
7532
  },
7228
- [`set_${d.inventory_ingredient}`]: {
7533
+ [`set_${A.inventory_ingredient}`]: {
7229
7534
  key: "sys:inventory:ingredient",
7230
7535
  name: "Ingredient",
7231
7536
  permissions: Wi
7232
7537
  },
7233
- [`set_${d.inventory_ingredientGroup}`]: {
7538
+ [`set_${A.inventory_ingredientGroup}`]: {
7234
7539
  key: "sys:inventory:ingredient_group",
7235
7540
  name: "Ingredient Group",
7236
7541
  permissions: Li
7237
7542
  },
7238
- [`set_${d.inventory_recipe}`]: {
7543
+ [`set_${A.inventory_recipe}`]: {
7239
7544
  key: "sys:inventory:recipe",
7240
7545
  name: "Recipe",
7241
7546
  permissions: Ki
7242
7547
  },
7243
- [`set_${d.inventory_unit}`]: {
7548
+ [`set_${A.inventory_unit}`]: {
7244
7549
  key: "sys:inventory:unit",
7245
7550
  name: "Unit",
7246
7551
  permissions: Ji
7247
7552
  },
7248
- [`set_${d.inventory_purchaseTransfer}`]: {
7553
+ [`set_${A.inventory_purchaseTransfer}`]: {
7249
7554
  key: "sys:inventory:purchase_transfer",
7250
7555
  name: "Purchase Transfer",
7251
7556
  permissions: En
7252
7557
  },
7253
- [`set_${d.inventory_orderDraftApproval}`]: {
7558
+ [`set_${A.inventory_orderDraftApproval}`]: {
7254
7559
  key: "sys:inventory:order_draft_approval",
7255
7560
  name: "Order Draft Approval",
7256
7561
  permissions: _i
7257
7562
  },
7258
- [`set_${d.inventory_transferOut}`]: {
7563
+ [`set_${A.inventory_transferOut}`]: {
7259
7564
  key: "sys:inventory:transfer_out",
7260
7565
  name: "Transfer Out",
7261
- permissions: Yn
7566
+ permissions: Pn
7262
7567
  },
7263
- [`set_${d.inventory_surcharge}`]: {
7568
+ [`set_${A.inventory_surcharge}`]: {
7264
7569
  key: "sys:inventory:surcharge",
7265
7570
  name: "Surcharge",
7266
- permissions: Pn
7571
+ permissions: Yn
7267
7572
  },
7268
- [`set_${d.inventory_orderTemplate}`]: {
7573
+ [`set_${A.inventory_orderTemplate}`]: {
7269
7574
  key: "sys:inventory:order_template",
7270
7575
  name: "Order Template",
7271
7576
  permissions: Gn
7272
7577
  },
7273
- [`set_${d.inventory_supplier}`]: {
7578
+ [`set_${A.inventory_supplier}`]: {
7274
7579
  key: "sys:inventory:supplier",
7275
7580
  name: "Supplier",
7276
7581
  permissions: $i
7277
7582
  },
7278
- [`set_${d.inventory_warehouse}`]: {
7583
+ [`set_${A.inventory_warehouse}`]: {
7279
7584
  key: "sys:inventory:warehouse",
7280
7585
  name: "Warehouse",
7281
7586
  permissions: ec
7282
7587
  },
7283
- [`set_${d.inventory_publish}`]: {
7588
+ [`set_${A.inventory_publish}`]: {
7284
7589
  key: "sys:inventory:publish",
7285
7590
  name: "Publish",
7286
7591
  permissions: tc
7287
7592
  },
7288
- [`set_${d.inventory_import}`]: {
7593
+ [`set_${A.inventory_import}`]: {
7289
7594
  key: "sys:inventory:import",
7290
7595
  name: "Import",
7291
7596
  permissions: sc
7292
7597
  },
7293
- [`set_${d.inventory_integration}`]: {
7598
+ [`set_${A.inventory_integration}`]: {
7294
7599
  key: "sys:inventory:integration",
7295
7600
  name: "Integration",
7296
7601
  permissions: rc
@@ -7303,7 +7608,7 @@ const ac = {
7303
7608
  * Injects: team member list read + pos role read
7304
7609
  * Users who can manage team members need to see the team member list and assign POS roles.
7305
7610
  */
7306
- [`set_${d.hrm_teamMember}`]: {
7611
+ [`set_${A.hrm_teamMember}`]: {
7307
7612
  key: "sys:team_member_access",
7308
7613
  name: "Team Member Access",
7309
7614
  permissions: [
@@ -7314,7 +7619,7 @@ const ac = {
7314
7619
  },
7315
7620
  {
7316
7621
  label: "Role resource",
7317
- subject: d.role,
7622
+ subject: A.role,
7318
7623
  actions: [o.read, o.update]
7319
7624
  },
7320
7625
  {
@@ -7333,7 +7638,7 @@ const ac = {
7333
7638
  * Triggered by: hrm_employee:manage (portal toggle)
7334
7639
  * Injects: pos role read + restaurant manage (cross-level: needed for employee–restaurant linking)
7335
7640
  */
7336
- [`set_${d.hrm_employee}`]: {
7641
+ [`set_${A.hrm_employee}`]: {
7337
7642
  key: "sys:employee_access",
7338
7643
  name: "Employee Access",
7339
7644
  permissions: [
@@ -7360,7 +7665,7 @@ const ac = {
7360
7665
  * Uses HrmResource.hrm_portalUsers (not the module subject hrm_teamMember) to avoid
7361
7666
  * conflating the audit-log read dependency with the full team-management module grant.
7362
7667
  */
7363
- [`set_${d.hrm_auditLog}`]: {
7668
+ [`set_${A.hrm_auditLog}`]: {
7364
7669
  key: "sys:audit_log_access",
7365
7670
  name: "Audit Log Access",
7366
7671
  permissions: [
@@ -7375,7 +7680,7 @@ const ac = {
7375
7680
  * Triggered by: hrm_approvalCode:manage (portal toggle)
7376
7681
  * Injects: restaurant read — approval code management needs the restaurant list.
7377
7682
  */
7378
- [`set_${d.hrm_approvalCode}`]: {
7683
+ [`set_${A.hrm_approvalCode}`]: {
7379
7684
  key: "sys:approval_code_access",
7380
7685
  name: "Approval Code Access",
7381
7686
  permissions: [
@@ -7391,7 +7696,7 @@ var Vn = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e)
7391
7696
  const sr = [
7392
7697
  {
7393
7698
  label: "Payout Account",
7394
- subject: d.payment_payoutAccount,
7699
+ subject: A.payment_payoutAccount,
7395
7700
  actions: [o.read]
7396
7701
  },
7397
7702
  {
@@ -7400,18 +7705,18 @@ const sr = [
7400
7705
  actions: [o.read]
7401
7706
  }
7402
7707
  ], oc = {
7403
- [`set_${d.payment_transactions}`]: {
7708
+ [`set_${A.payment_transactions}`]: {
7404
7709
  key: "sys:payment:transactions",
7405
7710
  name: "Payment Transactions Access",
7406
7711
  permissions: sr
7407
7712
  },
7408
- [`set_${d.payment_settlements}`]: {
7713
+ [`set_${A.payment_settlements}`]: {
7409
7714
  key: "sys:payment:settlements",
7410
7715
  name: "Payment Settlements Access",
7411
7716
  permissions: sr
7412
7717
  }
7413
7718
  }, ic = {
7414
- ...zi,
7719
+ ...Ui,
7415
7720
  ...nc,
7416
7721
  ...ac,
7417
7722
  ...oc
@@ -7481,8 +7786,8 @@ var On = { exports: {} };
7481
7786
  }
7482
7787
  function c(m) {
7483
7788
  var p = "[object " + m + "]";
7484
- return function(w) {
7485
- return Object.prototype.toString.call(w) === p;
7789
+ return function(B) {
7790
+ return Object.prototype.toString.call(B) === p;
7486
7791
  };
7487
7792
  }
7488
7793
  n.r(r), n.d(r, "default", function() {
@@ -7493,33 +7798,33 @@ var On = { exports: {} };
7493
7798
  return At;
7494
7799
  });
7495
7800
  var l = c("Array"), y = c("Object"), h = c("Function");
7496
- function B(m, p) {
7801
+ function w(m, p) {
7497
7802
  return h(m.get) ? m.get(p) : m[p];
7498
7803
  }
7499
7804
  function O(m) {
7500
- return function(p, w) {
7501
- if (!l(w) || !w.length) return m(p, w);
7502
- for (var D = 0, E = w.length; D < E; D++)
7503
- if (m(p, B(w, D))) return !0;
7805
+ return function(p, B) {
7806
+ if (!l(B) || !B.length) return m(p, B);
7807
+ for (var D = 0, E = B.length; D < E; D++)
7808
+ if (m(p, w(B, D))) return !0;
7504
7809
  return !1;
7505
7810
  };
7506
7811
  }
7507
- function N(m) {
7508
- return function(p, w) {
7509
- if (!l(w) || !w.length) return m(p, w);
7510
- for (var D = 0, E = w.length; D < E; D++)
7511
- if (!m(p, B(w, D))) return !1;
7812
+ function S(m) {
7813
+ return function(p, B) {
7814
+ if (!l(B) || !B.length) return m(p, B);
7815
+ for (var D = 0, E = B.length; D < E; D++)
7816
+ if (!m(p, w(B, D))) return !1;
7512
7817
  return !0;
7513
7818
  };
7514
7819
  }
7515
- function z(m, p, w, D) {
7516
- return m.validate(m.options, p, w, D);
7820
+ function U(m, p, B, D) {
7821
+ return m.validate(m.options, p, B, D);
7517
7822
  }
7518
7823
  var $ = {
7519
7824
  $eq: O(function(m, p) {
7520
7825
  return m(p);
7521
7826
  }),
7522
- $ne: N(function(m, p) {
7827
+ $ne: S(function(m, p) {
7523
7828
  return m(p);
7524
7829
  }),
7525
7830
  $gt: O(function(m, p) {
@@ -7543,115 +7848,115 @@ var On = { exports: {} };
7543
7848
  $nin: function(m, p) {
7544
7849
  return m(p);
7545
7850
  },
7546
- $not: function(m, p, w, D) {
7547
- return m(p, w, D);
7851
+ $not: function(m, p, B, D) {
7852
+ return m(p, B, D);
7548
7853
  },
7549
7854
  $type: function(m, p) {
7550
7855
  return m(p);
7551
7856
  },
7552
- $all: function(m, p, w, D) {
7553
- return $.$and(m, p, w, D);
7857
+ $all: function(m, p, B, D) {
7858
+ return $.$and(m, p, B, D);
7554
7859
  },
7555
7860
  $size: function(m, p) {
7556
7861
  return !!p && m === p.length;
7557
7862
  },
7558
- $or: function(m, p, w, D) {
7559
- for (var E = 0, P = m.length; E < P; E++)
7560
- if (z(B(m, E), p, w, D)) return !0;
7863
+ $or: function(m, p, B, D) {
7864
+ for (var E = 0, Y = m.length; E < Y; E++)
7865
+ if (U(w(m, E), p, B, D)) return !0;
7561
7866
  return !1;
7562
7867
  },
7563
- $nor: function(m, p, w, D) {
7564
- return !$.$or(m, p, w, D);
7868
+ $nor: function(m, p, B, D) {
7869
+ return !$.$or(m, p, B, D);
7565
7870
  },
7566
- $and: function(m, p, w, D) {
7567
- for (var E = 0, P = m.length; E < P; E++)
7568
- if (!z(B(m, E), p, w, D)) return !1;
7871
+ $and: function(m, p, B, D) {
7872
+ for (var E = 0, Y = m.length; E < Y; E++)
7873
+ if (!U(w(m, E), p, B, D)) return !1;
7569
7874
  return !0;
7570
7875
  },
7571
7876
  $regex: O(function(m, p) {
7572
7877
  return typeof p == "string" && m.test(p);
7573
7878
  }),
7574
- $where: function(m, p, w, D) {
7575
- return m.call(p, p, w, D);
7879
+ $where: function(m, p, B, D) {
7880
+ return m.call(p, p, B, D);
7576
7881
  },
7577
- $elemMatch: function(m, p, w, D) {
7578
- return l(p) ? !!~function(E, P) {
7882
+ $elemMatch: function(m, p, B, D) {
7883
+ return l(p) ? !!~function(E, Y) {
7579
7884
  for (var q = 0; q < E.length; q++)
7580
- if (B(E, q), z(P, B(E, q))) return q;
7885
+ if (w(E, q), U(Y, w(E, q))) return q;
7581
7886
  return -1;
7582
- }(p, m) : z(m, p, w, D);
7887
+ }(p, m) : U(m, p, B, D);
7583
7888
  },
7584
- $exists: function(m, p, w, D) {
7585
- return D.hasOwnProperty(w) === m;
7889
+ $exists: function(m, p, B, D) {
7890
+ return D.hasOwnProperty(B) === m;
7586
7891
  }
7587
7892
  }, re = {
7588
- $eq: function(m, p, w) {
7589
- var D = w.comparable, E = w.compare;
7590
- return m instanceof RegExp ? O(function(P) {
7591
- return typeof P == "string" && m.test(P);
7592
- }) : m instanceof Function ? O(m) : l(m) && !m.length ? O(function(P) {
7593
- return l(P) && !P.length;
7893
+ $eq: function(m, p, B) {
7894
+ var D = B.comparable, E = B.compare;
7895
+ return m instanceof RegExp ? O(function(Y) {
7896
+ return typeof Y == "string" && m.test(Y);
7897
+ }) : m instanceof Function ? O(m) : l(m) && !m.length ? O(function(Y) {
7898
+ return l(Y) && !Y.length;
7594
7899
  }) : O(
7595
- m === null ? function(P) {
7596
- return P == null;
7597
- } : function(P) {
7598
- return E(D(P), D(m)) === 0;
7900
+ m === null ? function(Y) {
7901
+ return Y == null;
7902
+ } : function(Y) {
7903
+ return E(D(Y), D(m)) === 0;
7599
7904
  }
7600
7905
  );
7601
7906
  },
7602
- $gt: function(m, p, w) {
7603
- var D = w.comparable, E = w.compare;
7604
- return function(P) {
7605
- return E(D(P), D(m)) > 0;
7907
+ $gt: function(m, p, B) {
7908
+ var D = B.comparable, E = B.compare;
7909
+ return function(Y) {
7910
+ return E(D(Y), D(m)) > 0;
7606
7911
  };
7607
7912
  },
7608
- $gte: function(m, p, w) {
7609
- var D = w.comparable, E = w.compare;
7610
- return function(P) {
7611
- return E(D(P), D(m)) >= 0;
7913
+ $gte: function(m, p, B) {
7914
+ var D = B.comparable, E = B.compare;
7915
+ return function(Y) {
7916
+ return E(D(Y), D(m)) >= 0;
7612
7917
  };
7613
7918
  },
7614
- $lt: function(m, p, w) {
7615
- var D = w.comparable, E = w.compare;
7616
- return function(P) {
7617
- return E(D(P), D(m)) < 0;
7919
+ $lt: function(m, p, B) {
7920
+ var D = B.comparable, E = B.compare;
7921
+ return function(Y) {
7922
+ return E(D(Y), D(m)) < 0;
7618
7923
  };
7619
7924
  },
7620
- $lte: function(m, p, w) {
7621
- var D = w.comparable, E = w.compare;
7622
- return function(P) {
7623
- return E(D(P), D(m)) <= 0;
7925
+ $lte: function(m, p, B) {
7926
+ var D = B.comparable, E = B.compare;
7927
+ return function(Y) {
7928
+ return E(D(Y), D(m)) <= 0;
7624
7929
  };
7625
7930
  },
7626
- $in: function(m, p, w) {
7627
- var D = w.comparable;
7931
+ $in: function(m, p, B) {
7932
+ var D = B.comparable;
7628
7933
  return function(E) {
7629
7934
  if (!(E instanceof Array)) {
7630
- var P = D(E);
7631
- if (P === E && a(E) === "object") {
7935
+ var Y = D(E);
7936
+ if (Y === E && a(E) === "object") {
7632
7937
  for (R = m.length; R--; )
7633
7938
  if (String(m[R]) === String(E) && String(E) !== "[object Object]")
7634
7939
  return !0;
7635
7940
  }
7636
- if (P === void 0) {
7941
+ if (Y === void 0) {
7637
7942
  for (R = m.length; R--; ) if (m[R] == null) return !0;
7638
7943
  }
7639
7944
  for (R = m.length; R--; ) {
7640
- var q = z(lt(B(m, R), w), P, R, m);
7641
- if (q && String(q) !== "[object Object]" && String(P) !== "[object Object]")
7945
+ var q = U(lt(w(m, R), B), Y, R, m);
7946
+ if (q && String(q) !== "[object Object]" && String(Y) !== "[object Object]")
7642
7947
  return !0;
7643
7948
  }
7644
- return !!~m.indexOf(P);
7949
+ return !!~m.indexOf(Y);
7645
7950
  }
7646
7951
  for (var R = E.length; R--; )
7647
- if (~m.indexOf(D(B(E, R)))) return !0;
7952
+ if (~m.indexOf(D(w(E, R)))) return !0;
7648
7953
  return !1;
7649
7954
  };
7650
7955
  },
7651
- $nin: function(m, p, w) {
7652
- var D = re.$in(m, p, w);
7653
- return function(E, P, q, R) {
7654
- return !D(E, P, q, R);
7956
+ $nin: function(m, p, B) {
7957
+ var D = re.$in(m, p, B);
7958
+ return function(E, Y, q, R) {
7959
+ return !D(E, Y, q, R);
7655
7960
  };
7656
7961
  },
7657
7962
  $mod: function(m) {
@@ -7659,32 +7964,32 @@ var On = { exports: {} };
7659
7964
  return p % m[0] == m[1];
7660
7965
  };
7661
7966
  },
7662
- $ne: function(m, p, w) {
7663
- var D = re.$eq(m, p, w);
7664
- return N(function(E, P, q, R) {
7665
- return !D(E, P, q, R);
7967
+ $ne: function(m, p, B) {
7968
+ var D = re.$eq(m, p, B);
7969
+ return S(function(E, Y, q, R) {
7970
+ return !D(E, Y, q, R);
7666
7971
  });
7667
7972
  },
7668
- $and: function(m, p, w) {
7669
- return m.map(be(w));
7973
+ $and: function(m, p, B) {
7974
+ return m.map(be(B));
7670
7975
  },
7671
- $all: function(m, p, w) {
7672
- return re.$and(m, p, w);
7976
+ $all: function(m, p, B) {
7977
+ return re.$and(m, p, B);
7673
7978
  },
7674
- $or: function(m, p, w) {
7675
- return m.map(be(w));
7979
+ $or: function(m, p, B) {
7980
+ return m.map(be(B));
7676
7981
  },
7677
- $nor: function(m, p, w) {
7678
- return m.map(be(w));
7982
+ $nor: function(m, p, B) {
7983
+ return m.map(be(B));
7679
7984
  },
7680
- $not: function(m, p, w) {
7681
- var D = be(w)(m);
7682
- return function(E, P, q) {
7683
- return !z(D, E, P, q);
7985
+ $not: function(m, p, B) {
7986
+ var D = be(B)(m);
7987
+ return function(E, Y, q) {
7988
+ return !U(D, E, Y, q);
7684
7989
  };
7685
7990
  },
7686
7991
  $type: function(m) {
7687
- return function(p, w, D) {
7992
+ return function(p, B, D) {
7688
7993
  return p != null && (p instanceof m || p.constructor == m);
7689
7994
  };
7690
7995
  },
@@ -7697,8 +8002,8 @@ var On = { exports: {} };
7697
8002
  'In CSP mode, sift does not support strings in "$where" condition'
7698
8003
  );
7699
8004
  },
7700
- $elemMatch: function(m, p, w) {
7701
- return be(w)(m);
8005
+ $elemMatch: function(m, p, B) {
8006
+ return be(B)(m);
7702
8007
  },
7703
8008
  $exists: function(m) {
7704
8009
  return !!m;
@@ -7708,29 +8013,29 @@ var On = { exports: {} };
7708
8013
  return { options: m, validate: p };
7709
8014
  }
7710
8015
  function ne(m, p) {
7711
- var w = m.keyPath, D = m.child, E = m.query, P = [];
7712
- if (function i(g, A, b, M, G) {
7713
- if (b === A.length || g == null)
7714
- return void G.push([g, A[b - 1], M]);
7715
- var F = B(A, b);
8016
+ var B = m.keyPath, D = m.child, E = m.query, Y = [];
8017
+ if (function i(g, d, b, M, G) {
8018
+ if (b === d.length || g == null)
8019
+ return void G.push([g, d[b - 1], M]);
8020
+ var F = w(d, b);
7716
8021
  if (l(g) && isNaN(Number(F)))
7717
- for (var k = 0, j = g.length; k < j; k++) i(B(g, k), A, b, g, G);
7718
- else i(B(g, F), A, b + 1, g, G);
7719
- }(p, w, 0, p, P), P.length === 1) {
7720
- var q = P[0];
7721
- return z(D, q[0], q[1], q[2]);
8022
+ for (var k = 0, j = g.length; k < j; k++) i(w(g, k), d, b, g, G);
8023
+ else i(w(g, F), d, b + 1, g, G);
8024
+ }(p, B, 0, p, Y), Y.length === 1) {
8025
+ var q = Y[0];
8026
+ return U(D, q[0], q[1], q[2]);
7722
8027
  }
7723
- for (var R = E && E.$ne !== void 0, _ = R, se = 0; se < P.length; se++) {
7724
- var f = P[se], u = z(D, f[0], f[1], f[2]);
8028
+ for (var R = E && E.$ne !== void 0, _ = R, se = 0; se < Y.length; se++) {
8029
+ var f = Y[se], u = U(D, f[0], f[1], f[2]);
7725
8030
  R ? _ &= u : _ |= u;
7726
8031
  }
7727
8032
  return _;
7728
8033
  }
7729
- function Jt(m, p, w) {
7730
- return me({ keyPath: m, child: p, query: w }, ne);
8034
+ function Jt(m, p, B) {
8035
+ return me({ keyPath: m, child: p, query: B }, ne);
7731
8036
  }
7732
8037
  function be(m) {
7733
- var p = m.comparable, w = m.expressions, D = function(q) {
8038
+ var p = m.comparable, B = m.expressions, D = function(q) {
7734
8039
  var R;
7735
8040
  return (!q || !(R = q) || R.constructor !== Object && R.constructor !== Array && R.constructor.toString() !== "function Object() { [native code] }" && R.constructor.toString() !== "function Array() { [native code] }" || R.toJSON) && (q = { $eq: q }), q;
7736
8041
  }, E = function(q) {
@@ -7739,61 +8044,61 @@ var On = { exports: {} };
7739
8044
  for (var _ in q) {
7740
8045
  var se = q[_];
7741
8046
  if (_ !== "$options") {
7742
- var f = $[_] || m && w && w[_];
8047
+ var f = $[_] || m && B && B[_];
7743
8048
  if (f) re[_] && (se = re[_](se, q, m)), R.push(me(p(se), f));
7744
8049
  else {
7745
8050
  if (_.charCodeAt(0) === 36)
7746
8051
  throw new Error("Unknown operation " + _);
7747
8052
  var u = _.split(".");
7748
- R.push(Jt(u, P(se), se));
8053
+ R.push(Jt(u, Y(se), se));
7749
8054
  }
7750
8055
  }
7751
8056
  }
7752
8057
  return R.length === 1 ? R[0] : me(R, $.$and);
7753
- }, P = function(q) {
8058
+ }, Y = function(q) {
7754
8059
  return q = D(q), function R(_, se) {
7755
8060
  if (!y(_)) return se;
7756
8061
  for (var f in _) se.push(f), R(_[f], se);
7757
8062
  return se;
7758
- }(q, []).join(",").search(/[$.]/) === -1 ? me(q, Ne) : E(q);
8063
+ }(q, []).join(",").search(/[$.]/) === -1 ? me(q, Se) : E(q);
7759
8064
  };
7760
8065
  return function(q) {
7761
8066
  return E(D(q));
7762
8067
  };
7763
8068
  }
7764
- function Ne(m, p) {
8069
+ function Se(m, p) {
7765
8070
  if (Object.prototype.toString.call(m) !== Object.prototype.toString.call(p))
7766
8071
  return !1;
7767
8072
  if (y(m)) {
7768
8073
  if (Object.keys(m).length !== Object.keys(p).length) return !1;
7769
- for (var w in m) if (!Ne(m[w], p[w])) return !1;
8074
+ for (var B in m) if (!Se(m[B], p[B])) return !1;
7770
8075
  return !0;
7771
8076
  }
7772
8077
  if (l(m)) {
7773
8078
  if (m.length !== p.length) return !1;
7774
8079
  for (var D = 0, E = m.length; D < E; D++)
7775
- if (!Ne(m[D], p[D])) return !1;
8080
+ if (!Se(m[D], p[D])) return !1;
7776
8081
  return !0;
7777
8082
  }
7778
8083
  return m === p;
7779
8084
  }
7780
8085
  function lt(m, p) {
7781
- var w = be(p)(m);
7782
- return p && p.select && (w = {
7783
- options: w,
7784
- validate: function(D, E, P, q) {
7785
- return z(D, E && p.select(E), P, q);
8086
+ var B = be(p)(m);
8087
+ return p && p.select && (B = {
8088
+ options: B,
8089
+ validate: function(D, E, Y, q) {
8090
+ return U(D, E && p.select(E), Y, q);
7786
8091
  }
7787
- }), w;
8092
+ }), B;
7788
8093
  }
7789
8094
  function Dt(m, p) {
7790
- var w = lt(m, p = Object.assign({ compare: ut, comparable: At }, p));
7791
- return function(D, E, P) {
7792
- return z(w, D, E, P);
8095
+ var B = lt(m, p = Object.assign({ compare: ut, comparable: At }, p));
8096
+ return function(D, E, Y) {
8097
+ return U(B, D, E, Y);
7793
8098
  };
7794
8099
  }
7795
8100
  function ut(m, p) {
7796
- if (Ne(m, p)) return 0;
8101
+ if (Se(m, p)) return 0;
7797
8102
  if (a(m) === a(p)) {
7798
8103
  if (m > p) return 1;
7799
8104
  if (m < p) return -1;
@@ -7825,10 +8130,10 @@ function js(e) {
7825
8130
  return s.__proto__ || Object.getPrototypeOf(s);
7826
8131
  }, js(e);
7827
8132
  }
7828
- function zt(e, t) {
7829
- return zt = Object.setPrototypeOf || function(r, n) {
8133
+ function Ut(e, t) {
8134
+ return Ut = Object.setPrototypeOf || function(r, n) {
7830
8135
  return r.__proto__ = n, r;
7831
- }, zt(e, t);
8136
+ }, Ut(e, t);
7832
8137
  }
7833
8138
  function gc() {
7834
8139
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -7845,7 +8150,7 @@ function Gt(e, t, s) {
7845
8150
  var l = [null];
7846
8151
  l.push.apply(l, a);
7847
8152
  var y = Function.bind.apply(n, l), h = new y();
7848
- return c && zt(h, c.prototype), h;
8153
+ return c && Ut(h, c.prototype), h;
7849
8154
  }, Gt.apply(null, arguments);
7850
8155
  }
7851
8156
  function pc(e) {
@@ -7871,7 +8176,7 @@ function Es(e) {
7871
8176
  writable: !0,
7872
8177
  configurable: !0
7873
8178
  }
7874
- }), zt(n, r);
8179
+ }), Ut(n, r);
7875
8180
  }, Es(e);
7876
8181
  }
7877
8182
  function rr(e) {
@@ -7917,7 +8222,7 @@ var Fn = function(t) {
7917
8222
  this.subject = n.subject, this.subjectName = n.subjectName, this.action = n.action, this.field = n.field;
7918
8223
  }, t;
7919
8224
  }(Es(Error));
7920
- function Ys(e) {
8225
+ function Ps(e) {
7921
8226
  return Array.isArray(e) ? e : [e];
7922
8227
  }
7923
8228
  function hc(e) {
@@ -7929,9 +8234,9 @@ function hc(e) {
7929
8234
  function yc(e) {
7930
8235
  return JSON.parse(JSON.stringify(e));
7931
8236
  }
7932
- var bc = /[-/\\^$+?.()|[\]{}]/g, vc = /\.?\*+\.?/g, Bc = /\*+/, wc = /\./g;
8237
+ var bc = /[-/\\^$+?.()|[\]{}]/g, vc = /\.?\*+\.?/g, wc = /\*+/, Bc = /\./g;
7933
8238
  function Mc(e, t, s) {
7934
- var r = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", a = e.replace(wc, "\\$&").replace(Bc, n + r);
8239
+ var r = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", a = e.replace(Bc, "\\$&").replace(wc, n + r);
7935
8240
  return t + e.length === s.length ? "(?:" + a + ")?" : a;
7936
8241
  }
7937
8242
  function Cc(e, t, s) {
@@ -7945,7 +8250,7 @@ function Dc(e) {
7945
8250
  }
7946
8251
  var xc = /* @__PURE__ */ function() {
7947
8252
  function e(s) {
7948
- this.actions = s.actions || s.action, this.subject = s.subject, this.fields = !s.fields || s.fields.length === 0 ? void 0 : Ys(s.fields), Object.defineProperty(this, "_fieldsPattern", {
8253
+ this.actions = s.actions || s.action, this.subject = s.subject, this.fields = !s.fields || s.fields.length === 0 ? void 0 : Ps(s.fields), Object.defineProperty(this, "_fieldsPattern", {
7949
8254
  writable: !0
7950
8255
  }), this.inverted = !!s.inverted, this.conditions = s.conditions, Object.defineProperty(this, "_matches", {
7951
8256
  writable: !0,
@@ -8000,14 +8305,14 @@ var jc = /* @__PURE__ */ function() {
8000
8305
  return this[de].indexedRules = a.rules, this[de].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", n), this;
8001
8306
  }, t.buildIndexFor = function(r) {
8002
8307
  for (var n = /* @__PURE__ */ Object.create(null), a = this[de].RuleType, c = !0, l = !1, y = 0; y < r.length; y++) {
8003
- var h = new a(r[y]), B = this.expandActions(h.actions), O = Ys(h.subject), N = r.length - y - 1;
8308
+ var h = new a(r[y]), w = this.expandActions(h.actions), O = Ps(h.subject), S = r.length - y - 1;
8004
8309
  c = !!(c && h.inverted), !l && h.fields && (l = !0);
8005
- for (var z = 0; z < O.length; z++) {
8006
- var $ = O[z];
8310
+ for (var U = 0; U < O.length; U++) {
8311
+ var $ = O[U];
8007
8312
  n[$] = n[$] || /* @__PURE__ */ Object.create(null);
8008
- for (var re = 0; re < B.length; re++) {
8009
- var me = B[re];
8010
- n[$][me] = n[$][me] || /* @__PURE__ */ Object.create(null), n[$][me][N] = h;
8313
+ for (var re = 0; re < w.length; re++) {
8314
+ var me = w[re];
8315
+ n[$][me] = n[$][me] || /* @__PURE__ */ Object.create(null), n[$][me][S] = h;
8011
8316
  }
8012
8317
  }
8013
8318
  }
@@ -8017,7 +8322,7 @@ var jc = /* @__PURE__ */ function() {
8017
8322
  rules: n
8018
8323
  };
8019
8324
  }, t.expandActions = function(r) {
8020
- for (var n = this[de].aliases, a = Ys(r), c = 0; c < a.length; ) {
8325
+ for (var n = this[de].aliases, a = Ps(r), c = 0; c < a.length; ) {
8021
8326
  var l = a[c++];
8022
8327
  n.hasOwnProperty(l) && (a = a.concat(n[l]));
8023
8328
  }
@@ -8081,7 +8386,7 @@ function Ol(e) {
8081
8386
  const t = Object.entries(nn).find(([, s]) => s === e);
8082
8387
  return t ? t[0] : e;
8083
8388
  }
8084
- function Yc(e) {
8389
+ function Pc(e) {
8085
8390
  return e.map((t) => ({
8086
8391
  ...t,
8087
8392
  subject: Ec(t.subject),
@@ -8089,15 +8394,15 @@ function Yc(e) {
8089
8394
  }));
8090
8395
  }
8091
8396
  function qn(e) {
8092
- return new jc(Yc(e));
8397
+ return new jc(Pc(e));
8093
8398
  }
8094
- function Pc(e, t) {
8399
+ function Yc(e, t) {
8095
8400
  return e.rulesFor(t.action, t.subject, t.field).some((s) => !s.inverted);
8096
8401
  }
8097
8402
  function In(e, t) {
8098
- return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !Pc(e, t);
8403
+ return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !Yc(e, t);
8099
8404
  }
8100
- function Ps(e, t) {
8405
+ function Ys(e, t) {
8101
8406
  const s = qn(t), r = (l) => s.can(l.action, l.subject, l.field) ? !0 : In(s, l) ? s.can(l.action, l.coverSubject, l.field) : !1, n = e.find((l) => !r(l));
8102
8407
  if (n) {
8103
8408
  const l = s.relevantRuleFor(
@@ -8115,7 +8420,7 @@ function Ps(e, t) {
8115
8420
  return { granted: !0, decisivePermission: a, decisiveRule: c ?? null };
8116
8421
  }
8117
8422
  function Gc(e, t) {
8118
- const s = Ps([e], t);
8423
+ const s = Ys([e], t);
8119
8424
  if (!s.granted)
8120
8425
  return { ...s, conditionEvaluation: "not_enforced" };
8121
8426
  const r = qn(t), n = In(r, e) ? e.coverSubject : void 0, a = [e.subject, n].filter(
@@ -8136,7 +8441,7 @@ function Gc(e, t) {
8136
8441
  }
8137
8442
  function Vc(e, t, s) {
8138
8443
  const r = arguments.length >= 3;
8139
- return Array.isArray(e) ? Ps(e, t) : r ? Gc(e, t) : Ps([e], t);
8444
+ return Array.isArray(e) ? Ys(e, t) : r ? Gc(e, t) : Ys([e], t);
8140
8445
  }
8141
8446
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8142
8447
  const Oc = () => {
@@ -8152,27 +8457,27 @@ function Fc(e, t, s) {
8152
8457
  shallow: c = !0,
8153
8458
  onError: l = Oc
8154
8459
  } = r, y = Qe(!n), h = c ? kn(t) : Qe(t);
8155
- let B = 0;
8460
+ let w = 0;
8156
8461
  return ir(async (O) => {
8157
8462
  if (!y.value)
8158
8463
  return;
8159
- B++;
8160
- const N = B;
8161
- let z = !1;
8464
+ w++;
8465
+ const S = w;
8466
+ let U = !1;
8162
8467
  a && Promise.resolve().then(() => {
8163
8468
  a.value = !0;
8164
8469
  });
8165
8470
  try {
8166
8471
  const $ = await e((re) => {
8167
8472
  O(() => {
8168
- a && (a.value = !1), z || re();
8473
+ a && (a.value = !1), U || re();
8169
8474
  });
8170
8475
  });
8171
- N === B && (h.value = $);
8476
+ S === w && (h.value = $);
8172
8477
  } catch ($) {
8173
8478
  l($);
8174
8479
  } finally {
8175
- a && N === B && (a.value = !1), z = !0;
8480
+ a && S === w && (a.value = !1), U = !0;
8176
8481
  }
8177
8482
  }), n ? Os(() => (y.value = !0, h.value)) : h;
8178
8483
  }
@@ -8249,38 +8554,38 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8249
8554
  subtitle: "哎呀!您没有权限访问此页面。"
8250
8555
  }, Tc = {
8251
8556
  noPermission: kc
8252
- }, Nc = {
8557
+ }, Sc = {
8253
8558
  title: "存取被拒絕",
8254
8559
  subtitle: "哎呀!您沒有權限存取此頁面。"
8255
- }, Sc = {
8256
- noPermission: Nc
8560
+ }, Nc = {
8561
+ noPermission: Sc
8257
8562
  }, Zc = {
8258
8563
  title: "การเข้าถึงถูกปฏิเสธ",
8259
8564
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
8260
- }, zc = {
8565
+ }, Uc = {
8261
8566
  noPermission: Zc
8262
- }, Uc = { class: "w-full h-full flex justify-center items-center" }, Wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Lc = { class: "w-[300px] h-[300px]" }, Kc = ["src"], Jc = { class: "text-2xl" }, _c = { class: "text-xl" }, $c = /* @__PURE__ */ it({
8567
+ }, zc = { class: "w-full h-full flex justify-center items-center" }, Wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Lc = { class: "w-[300px] h-[300px]" }, Kc = ["src"], Jc = { class: "text-2xl" }, _c = { class: "text-xl" }, $c = /* @__PURE__ */ it({
8263
8568
  __name: "NoPermission",
8264
8569
  setup(e) {
8265
8570
  const { t } = dr({
8266
8571
  messages: {
8267
8572
  "en-US": Qc,
8268
8573
  "zh-CN": Tc,
8269
- "zh-Hant": Sc,
8270
- "th-TH": zc
8574
+ "zh-Hant": Nc,
8575
+ "th-TH": Uc
8271
8576
  }
8272
8577
  });
8273
- return (s, r) => (ct(), lr("div", Uc, [
8274
- ze("div", Wc, [
8275
- ze("div", Lc, [
8276
- ze("img", {
8277
- src: Ue(Rc),
8578
+ return (s, r) => (ct(), lr("div", zc, [
8579
+ Ue("div", Wc, [
8580
+ Ue("div", Lc, [
8581
+ Ue("img", {
8582
+ src: ze(Rc),
8278
8583
  class: "w-full h-full"
8279
8584
  }, null, 8, Kc)
8280
8585
  ]),
8281
- ze("div", null, [
8282
- ze("h1", Jc, Ws(Ue(t)("noPermission.title")), 1),
8283
- ze("h2", _c, Ws(Ue(t)("noPermission.subtitle")), 1)
8586
+ Ue("div", null, [
8587
+ Ue("h1", Jc, Ws(ze(t)("noPermission.title")), 1),
8588
+ Ue("h2", _c, Ws(ze(t)("noPermission.subtitle")), 1)
8284
8589
  ])
8285
8590
  ])
8286
8591
  ]));
@@ -8289,14 +8594,14 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8289
8594
  __name: "PermissionWrapper",
8290
8595
  setup(e) {
8291
8596
  const t = Hc();
8292
- return (s, r) => Ue(t) === Ue(Gs).Denied ? (ct(), Ut($c, { key: 0 })) : Ue(t) === Ue(Gs).Allowed ? cr(s.$slots, "default", { key: 1 }) : Tn("", !0);
8597
+ return (s, r) => ze(t) === ze(Gs).Denied ? (ct(), zt($c, { key: 0 })) : ze(t) === ze(Gs).Allowed ? cr(s.$slots, "default", { key: 1 }) : Tn("", !0);
8293
8598
  }
8294
8599
  });
8295
8600
  function Kt(e) {
8296
8601
  return {
8297
8602
  inheritAttrs: !1,
8298
8603
  setup(t, { attrs: s }) {
8299
- return () => Us(el, {}, { default: () => Us(e, s) });
8604
+ return () => zs(el, {}, { default: () => zs(e, s) });
8300
8605
  }
8301
8606
  };
8302
8607
  }
@@ -8314,8 +8619,8 @@ function tl(e, t) {
8314
8619
  }
8315
8620
  }
8316
8621
  let n = null;
8317
- return Nn(e, async (a) => {
8318
- a && (await Sn(), r());
8622
+ return Sn(e, async (a) => {
8623
+ a && (await Nn(), r());
8319
8624
  }), ur(() => {
8320
8625
  window.addEventListener("resize", r), n = new ResizeObserver(r), n.observe(document.body);
8321
8626
  }), Zn(() => {
@@ -8335,7 +8640,7 @@ const sl = /* @__PURE__ */ it({
8335
8640
  return (a, c) => (ct(), lr("div", {
8336
8641
  ref_key: "wrapper",
8337
8642
  ref: s,
8338
- style: zn(n.value)
8643
+ style: Un(n.value)
8339
8644
  }, [
8340
8645
  cr(a.$slots, "default")
8341
8646
  ], 4));
@@ -8345,9 +8650,9 @@ const sl = /* @__PURE__ */ it({
8345
8650
  setup(e) {
8346
8651
  return (t, s) => {
8347
8652
  const r = Fs("FmCircularProgress");
8348
- return ct(), Ut(sl, null, {
8349
- default: Un(() => [
8350
- ze("div", rl, [
8653
+ return ct(), zt(sl, null, {
8654
+ default: zn(() => [
8655
+ Ue("div", rl, [
8351
8656
  Wn(r, { size: "xl" })
8352
8657
  ])
8353
8658
  ]),
@@ -8355,7 +8660,7 @@ const sl = /* @__PURE__ */ it({
8355
8660
  });
8356
8661
  };
8357
8662
  }
8358
- }), we = (e) => Ln({
8663
+ }), Be = (e) => Ln({
8359
8664
  loader: e,
8360
8665
  loadingComponent: nl
8361
8666
  });
@@ -8369,10 +8674,10 @@ const Et = (e) => ({
8369
8674
  }
8370
8675
  ]
8371
8676
  }
8372
- }), al = Kt(we(() => import("./Main-CEKiyT80.js"))), ol = Kt(we(() => import("./Main-DrfRLxA5.js"))), il = Kt(
8373
- we(() => import("./AuditLogList-CymSyHag.js"))
8374
- ), cl = Kt(we(() => import("./Main-CQpEciKH.js"))), ll = we(() => import("./ApprovalCodeList-BWQBJGCZ.js")), ul = we(() => import("./GrantUserList-CaVpRVzA.js")), Al = we(() => import("./EmployeeList-BZ6fxRCN.js")), dl = we(() => import("./RoleList-C2PrTc1f.js")), ml = we(() => import("./TimesheetList-DgaZmgug.js")), gl = we(() => import("./TeamMemberList-BXk_pXjc.js")), pl = we(
8375
- () => import("./PermissionSetList-BgOSJy4y.js")
8677
+ }), al = Kt(Be(() => import("./Main-B622Z4q4.js"))), ol = Kt(Be(() => import("./Main-on0TXkQt.js"))), il = Kt(
8678
+ Be(() => import("./AuditLogList-CtFEXKWZ.js"))
8679
+ ), cl = Kt(Be(() => import("./Main-DD6IthCS.js"))), ll = Be(() => import("./ApprovalCodeList-B9O8QzzI.js")), ul = Be(() => import("./GrantUserList-CZtmMRoS.js")), Al = Be(() => import("./EmployeeList-BFxMwFJq.js")), dl = Be(() => import("./RoleList-p_9KHzqF.js")), ml = Be(() => import("./TimesheetList-DtFBWhma.js")), gl = Be(() => import("./TeamMemberList-BAU7Y3jh.js")), pl = Be(
8680
+ () => import("./PermissionSetList-FCX3TBoi.js")
8376
8681
  ), Fl = [
8377
8682
  {
8378
8683
  path: "/",
@@ -8530,9 +8835,9 @@ const Et = (e) => ({
8530
8835
  c.value !== l && (c.value = l);
8531
8836
  }), (l, y) => {
8532
8837
  const h = Fs("FmCollapsibleTabs");
8533
- return ct(), Ut(h, {
8838
+ return ct(), zt(h, {
8534
8839
  modelValue: c.value,
8535
- "onUpdate:modelValue": y[0] || (y[0] = (B) => c.value = B),
8840
+ "onUpdate:modelValue": y[0] || (y[0] = (w) => c.value = w),
8536
8841
  items: a.value,
8537
8842
  class: "py-16"
8538
8843
  }, null, 8, ["modelValue", "items"]);
@@ -8552,30 +8857,30 @@ var Vs = { exports: {} };
8552
8857
  }
8553
8858
  }, getItem: function(f, u) {
8554
8859
  var i = this;
8555
- return new Promise(function(g, A) {
8860
+ return new Promise(function(g, d) {
8556
8861
  try {
8557
8862
  var b = i.getItemSync(f);
8558
8863
  u == null || u(null, b), g(b);
8559
8864
  } catch (M) {
8560
- u && u(M, null), A(M);
8865
+ u && u(M, null), d(M);
8561
8866
  }
8562
8867
  });
8563
8868
  }, setItem: function(f, u, i) {
8564
- return new Promise(function(g, A) {
8869
+ return new Promise(function(g, d) {
8565
8870
  try {
8566
8871
  localStorage.setItem(f, u), i && i(null, u), g(u);
8567
8872
  } catch (b) {
8568
- i && i(b, null), A(b);
8873
+ i && i(b, null), d(b);
8569
8874
  }
8570
8875
  });
8571
8876
  } }, n = function() {
8572
8877
  return n = Object.assign || function(f) {
8573
- for (var u, i = 1, g = arguments.length; i < g; i++) for (var A in u = arguments[i]) Object.prototype.hasOwnProperty.call(u, A) && (f[A] = u[A]);
8878
+ for (var u, i = 1, g = arguments.length; i < g; i++) for (var d in u = arguments[i]) Object.prototype.hasOwnProperty.call(u, d) && (f[d] = u[d]);
8574
8879
  return f;
8575
8880
  }, n.apply(this, arguments);
8576
8881
  };
8577
8882
  function a(f, u, i, g) {
8578
- return new (i || (i = Promise))(function(A, b) {
8883
+ return new (i || (i = Promise))(function(d, b) {
8579
8884
  function M(k) {
8580
8885
  try {
8581
8886
  F(g.next(k));
@@ -8592,17 +8897,17 @@ var Vs = { exports: {} };
8592
8897
  }
8593
8898
  function F(k) {
8594
8899
  var j;
8595
- k.done ? A(k.value) : (j = k.value, j instanceof i ? j : new i(function(U) {
8596
- U(j);
8900
+ k.done ? d(k.value) : (j = k.value, j instanceof i ? j : new i(function(z) {
8901
+ z(j);
8597
8902
  })).then(M, G);
8598
8903
  }
8599
8904
  F((g = g.apply(f, [])).next());
8600
8905
  });
8601
8906
  }
8602
8907
  function c(f, u) {
8603
- var i, g, A, b, M = { label: 0, sent: function() {
8604
- if (1 & A[0]) throw A[1];
8605
- return A[1];
8908
+ var i, g, d, b, M = { label: 0, sent: function() {
8909
+ if (1 & d[0]) throw d[1];
8910
+ return d[1];
8606
8911
  }, trys: [], ops: [] };
8607
8912
  return b = { next: G(0), throw: G(1), return: G(2) }, typeof Symbol == "function" && (b[Symbol.iterator] = function() {
8608
8913
  return this;
@@ -8612,11 +8917,11 @@ var Vs = { exports: {} };
8612
8917
  return function(j) {
8613
8918
  if (i) throw new TypeError("Generator is already executing.");
8614
8919
  for (; M; ) try {
8615
- if (i = 1, g && (A = 2 & j[0] ? g.return : j[0] ? g.throw || ((A = g.return) && A.call(g), 0) : g.next) && !(A = A.call(g, j[1])).done) return A;
8616
- switch (g = 0, A && (j = [2 & j[0], A.value]), j[0]) {
8920
+ if (i = 1, g && (d = 2 & j[0] ? g.return : j[0] ? g.throw || ((d = g.return) && d.call(g), 0) : g.next) && !(d = d.call(g, j[1])).done) return d;
8921
+ switch (g = 0, d && (j = [2 & j[0], d.value]), j[0]) {
8617
8922
  case 0:
8618
8923
  case 1:
8619
- A = j;
8924
+ d = j;
8620
8925
  break;
8621
8926
  case 4:
8622
8927
  return M.label++, { value: j[1], done: !1 };
@@ -8627,30 +8932,30 @@ var Vs = { exports: {} };
8627
8932
  j = M.ops.pop(), M.trys.pop();
8628
8933
  continue;
8629
8934
  default:
8630
- if (A = M.trys, !((A = A.length > 0 && A[A.length - 1]) || j[0] !== 6 && j[0] !== 2)) {
8935
+ if (d = M.trys, !((d = d.length > 0 && d[d.length - 1]) || j[0] !== 6 && j[0] !== 2)) {
8631
8936
  M = 0;
8632
8937
  continue;
8633
8938
  }
8634
- if (j[0] === 3 && (!A || j[1] > A[0] && j[1] < A[3])) {
8939
+ if (j[0] === 3 && (!d || j[1] > d[0] && j[1] < d[3])) {
8635
8940
  M.label = j[1];
8636
8941
  break;
8637
8942
  }
8638
- if (j[0] === 6 && M.label < A[1]) {
8639
- M.label = A[1], A = j;
8943
+ if (j[0] === 6 && M.label < d[1]) {
8944
+ M.label = d[1], d = j;
8640
8945
  break;
8641
8946
  }
8642
- if (A && M.label < A[2]) {
8643
- M.label = A[2], M.ops.push(j);
8947
+ if (d && M.label < d[2]) {
8948
+ M.label = d[2], M.ops.push(j);
8644
8949
  break;
8645
8950
  }
8646
- A[2] && M.ops.pop(), M.trys.pop();
8951
+ d[2] && M.ops.pop(), M.trys.pop();
8647
8952
  continue;
8648
8953
  }
8649
8954
  j = u.call(f, M);
8650
- } catch (U) {
8651
- j = [6, U], g = 0;
8955
+ } catch (z) {
8956
+ j = [6, z], g = 0;
8652
8957
  } finally {
8653
- i = A = 0;
8958
+ i = d = 0;
8654
8959
  }
8655
8960
  if (5 & j[0]) throw j[1];
8656
8961
  return { value: j[0] ? j[1] : void 0, done: !0 };
@@ -8659,26 +8964,26 @@ var Vs = { exports: {} };
8659
8964
  }
8660
8965
  }
8661
8966
  function l(f, u, i) {
8662
- 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]);
8967
+ for (var g, d = 0, b = u.length; d < b; d++) !g && d in u || (g || (g = Array.prototype.slice.call(u, 0, d)), g[d] = u[d]);
8663
8968
  return f.concat(g || Array.prototype.slice.call(u));
8664
8969
  }
8665
8970
  var y = function f(u, i) {
8666
8971
  if (u === i) return !0;
8667
8972
  if (u && i && typeof u == "object" && typeof i == "object") {
8668
8973
  if (u.constructor !== i.constructor) return !1;
8669
- var g, A, b;
8974
+ var g, d, b;
8670
8975
  if (Array.isArray(u)) {
8671
8976
  if ((g = u.length) != i.length) return !1;
8672
- for (A = g; A-- != 0; ) if (!f(u[A], i[A])) return !1;
8977
+ for (d = g; d-- != 0; ) if (!f(u[d], i[d])) return !1;
8673
8978
  return !0;
8674
8979
  }
8675
8980
  if (u.constructor === RegExp) return u.source === i.source && u.flags === i.flags;
8676
8981
  if (u.valueOf !== Object.prototype.valueOf) return u.valueOf() === i.valueOf();
8677
8982
  if (u.toString !== Object.prototype.toString) return u.toString() === i.toString();
8678
8983
  if ((g = (b = Object.keys(u)).length) !== Object.keys(i).length) return !1;
8679
- for (A = g; A-- != 0; ) if (!Object.prototype.hasOwnProperty.call(i, b[A])) return !1;
8680
- for (A = g; A-- != 0; ) {
8681
- var M = b[A];
8984
+ for (d = g; d-- != 0; ) if (!Object.prototype.hasOwnProperty.call(i, b[d])) return !1;
8985
+ for (d = g; d-- != 0; ) {
8986
+ var M = b[d];
8682
8987
  if (!f(u[M], i[M])) return !1;
8683
8988
  }
8684
8989
  return !0;
@@ -8687,25 +8992,25 @@ var Vs = { exports: {} };
8687
8992
  };
8688
8993
  function h(f, u) {
8689
8994
  var i = Object.keys(u || {}).filter(function(g) {
8690
- var A = f == null ? void 0 : f[g], b = u == null ? void 0 : u[g];
8691
- return !y(A, b);
8995
+ var d = f == null ? void 0 : f[g], b = u == null ? void 0 : u[g];
8996
+ return !y(d, b);
8692
8997
  });
8693
8998
  return Object.keys(f || {}).filter(function(g) {
8694
8999
  Object.keys(u || {}).includes(g) || i.push(g);
8695
9000
  }), Object.keys(i).length ? i : null;
8696
9001
  }
8697
- var B, O;
8698
- function N(f, u, i) {
8699
- var g = "shortString", A = !0;
8700
- typeof i == "number" && (g = "javaDouble", A = !1), f[g] = f[g] || {}, f[g][u] = A ? i + "" : i;
9002
+ var w, O;
9003
+ function S(f, u, i) {
9004
+ var g = "shortString", d = !0;
9005
+ typeof i == "number" && (g = "javaDouble", d = !1), f[g] = f[g] || {}, f[g][u] = d ? i + "" : i;
8701
9006
  }
8702
- function z(f) {
9007
+ function U(f) {
8703
9008
  return !!f && typeof f == "object" && f.value !== void 0;
8704
9009
  }
8705
9010
  function $(f) {
8706
9011
  return Object.fromEntries(Object.entries(f).map(function(u) {
8707
9012
  var i = u[0], g = u[1];
8708
- return [i, z(g) ? g : { value: g }];
9013
+ return [i, U(g) ? g : { value: g }];
8709
9014
  }));
8710
9015
  }
8711
9016
  function re(f) {
@@ -8713,15 +9018,15 @@ var Vs = { exports: {} };
8713
9018
  }
8714
9019
  (function(f) {
8715
9020
  f.NONE = "NONE", f.DEFAULT_FLAGS = "DEFAULT_FLAGS", f.CACHE = "CACHE", f.SERVER = "SERVER";
8716
- })(B || (B = {}));
8717
- var me, ne = null, Jt = "FLAGSMITH_EVENT", be = Jt, Ne = "https://edge.api.flagsmith.com/api/v1/", lt = "flagsmith_value_", Dt = "flagsmith_enabled_", ut = "flagsmith_trait_", At = function() {
9021
+ })(w || (w = {}));
9022
+ var me, ne = null, Jt = "FLAGSMITH_EVENT", be = Jt, Se = "https://edge.api.flagsmith.com/api/v1/", lt = "flagsmith_value_", Dt = "flagsmith_enabled_", ut = "flagsmith_trait_", At = function() {
8718
9023
  function f(u) {
8719
9024
  var i = this;
8720
9025
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
8721
- var g = i, A = g.api, b = g.evaluationContext;
9026
+ var g = i, d = g.api, b = g.evaluationContext;
8722
9027
  i.log("Get Flags"), i.isLoading = !0, i.loadingState.isFetching || i.setLoadingState(n(n({}, i.loadingState), { isFetching: !0 }));
8723
9028
  var M = "".concat(i.getContext().identity), G = function(F) {
8724
- var k, j, U, ce;
9029
+ var k, j, z, ce;
8725
9030
  if (F && M === "".concat(i.getContext().identity)) {
8726
9031
  var Me = F.flags, ge = F.traits, ve = F.identifier;
8727
9032
  i.isLoading = !1;
@@ -8732,13 +9037,13 @@ var Vs = { exports: {} };
8732
9037
  fe[W.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: W.transient, value: W.trait_value };
8733
9038
  }), i.oldFlags = n({}, i.flags);
8734
9039
  var Ce = h(i.oldFlags, pe), dt = h((k = i.evaluationContext.identity) === null || k === void 0 ? void 0 : k.traits, fe);
8735
- if ((ve || Object.keys(fe).length) && (i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: fe }), ve && (i.evaluationContext.identity.identifier = ve)), i.flags = pe, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: Ce, traitsChanged: dt }, i._loadedState(null, B.SERVER)), i.datadogRum) try {
9040
+ if ((ve || Object.keys(fe).length) && (i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: fe }), ve && (i.evaluationContext.identity.identifier = ve)), i.flags = pe, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: Ce, traitsChanged: dt }, i._loadedState(null, w.SERVER)), i.datadogRum) try {
8736
9041
  if (i.datadogRum.trackTraits) {
8737
9042
  var mt = {};
8738
9043
  Object.keys(((j = i.evaluationContext.identity) === null || j === void 0 ? void 0 : j.traits) || {}).map(function(W) {
8739
9044
  mt[ut + W] = i.getTrait(W);
8740
9045
  });
8741
- var _e = n(n(n({}, i.datadogRum.client.getUser()), { id: i.datadogRum.client.getUser().id || ((U = i.evaluationContext.identity) === null || U === void 0 ? void 0 : U.identifier) }), mt);
9046
+ var _e = n(n(n({}, i.datadogRum.client.getUser()), { id: i.datadogRum.client.getUser().id || ((z = i.evaluationContext.identity) === null || z === void 0 ? void 0 : z.identifier) }), mt);
8742
9047
  i.log("Setting Datadog user", _e), i.datadogRum.client.setUser(_e);
8743
9048
  }
8744
9049
  } catch (W) {
@@ -8747,89 +9052,89 @@ var Vs = { exports: {} };
8747
9052
  if (i.dtrum) try {
8748
9053
  var le = { javaDouble: {}, date: {}, shortString: {}, javaLongOrObject: {} };
8749
9054
  Object.keys(i.flags).map(function(W) {
8750
- N(le, lt + W, i.getValue(W, { skipAnalytics: !0 })), N(le, Dt + W, i.hasFeature(W, { skipAnalytics: !0 }));
9055
+ S(le, lt + W, i.getValue(W, { skipAnalytics: !0 })), S(le, Dt + W, i.hasFeature(W, { skipAnalytics: !0 }));
8751
9056
  }), Object.keys(((ce = i.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.traits) || {}).map(function(W) {
8752
- N(le, ut + W, i.getTrait(W));
9057
+ S(le, ut + W, i.getTrait(W));
8753
9058
  }), i.log("Sending javaLongOrObject traits to dynatrace", le.javaLongOrObject), i.log("Sending date traits to dynatrace", le.date), i.log("Sending shortString traits to dynatrace", le.shortString), i.log("Sending javaDouble to dynatrace", le.javaDouble), i.dtrum.sendSessionProperties(le.javaLongOrObject, le.date, le.shortString, le.javaDouble);
8754
9059
  } catch (W) {
8755
9060
  console.error(W);
8756
9061
  }
8757
9062
  }
8758
9063
  };
8759
- return b.identity ? Promise.all([b.identity.traits && Object.keys(b.identity.traits).length || !b.identity.identifier ? i.getJSON(A + "identities/", "POST", JSON.stringify({ identifier: b.identity.identifier, transient: b.identity.transient, traits: Object.entries(b.identity.traits).map(function(F) {
9064
+ return b.identity ? Promise.all([b.identity.traits && Object.keys(b.identity.traits).length || !b.identity.identifier ? i.getJSON(d + "identities/", "POST", JSON.stringify({ identifier: b.identity.identifier, transient: b.identity.transient, traits: Object.entries(b.identity.traits).map(function(F) {
8760
9065
  var k = F[0], j = F[1];
8761
9066
  return { trait_key: k, trait_value: j == null ? void 0 : j.value, transient: j == null ? void 0 : j.transient };
8762
9067
  }).filter(function(F) {
8763
9068
  return F.trait_value !== void 0 || (i.log("Warning - attempted to set an undefined trait value for key", F.trait_key), !1);
8764
- }) })) : i.getJSON(A + "identities/?identifier=" + encodeURIComponent(b.identity.identifier) + (b.identity.transient ? "&transient=true" : ""))]).then(function(F) {
9069
+ }) })) : i.getJSON(d + "identities/?identifier=" + encodeURIComponent(b.identity.identifier) + (b.identity.transient ? "&transient=true" : ""))]).then(function(F) {
8765
9070
  return i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: {} }), G(F == null ? void 0 : F[0]);
8766
9071
  }).catch(function(F) {
8767
9072
  var k = F.message, j = new Error(k);
8768
9073
  return Promise.reject(j);
8769
- }) : i.getJSON(A + "flags/").then(function(F) {
9074
+ }) : i.getJSON(d + "flags/").then(function(F) {
8770
9075
  return G({ flags: F, traits: void 0 });
8771
9076
  });
8772
9077
  }, this.analyticsFlags = function() {
8773
9078
  var g = i.api;
8774
- if (i.evaluationEvent && i.evaluationContext.environment && i.evaluationEvent[i.evaluationContext.environment.apiKey]) return i.evaluationEvent && Object.getOwnPropertyNames(i.evaluationEvent).length !== 0 && Object.getOwnPropertyNames(i.evaluationEvent[i.evaluationContext.environment.apiKey]).length !== 0 ? i.getJSON(g + "analytics/flags/", "POST", JSON.stringify(i.evaluationEvent[i.evaluationContext.environment.apiKey])).then(function(A) {
9079
+ if (i.evaluationEvent && i.evaluationContext.environment && i.evaluationEvent[i.evaluationContext.environment.apiKey]) return i.evaluationEvent && Object.getOwnPropertyNames(i.evaluationEvent).length !== 0 && Object.getOwnPropertyNames(i.evaluationEvent[i.evaluationContext.environment.apiKey]).length !== 0 ? i.getJSON(g + "analytics/flags/", "POST", JSON.stringify(i.evaluationEvent[i.evaluationContext.environment.apiKey])).then(function(d) {
8775
9080
  if (i.evaluationContext.environment) {
8776
9081
  var b = i.getState();
8777
9082
  i.evaluationEvent || (i.evaluationEvent = {}), i.evaluationEvent[i.evaluationContext.environment.apiKey] = {}, i.setState(n(n({}, b), { evaluationEvent: i.evaluationEvent })), i.updateEventStorage();
8778
9083
  }
8779
- }).catch(function(A) {
8780
- i.log("Exception fetching evaluationEvent", A);
9084
+ }).catch(function(d) {
9085
+ i.log("Exception fetching evaluationEvent", d);
8781
9086
  }) : void 0;
8782
- }, 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) {
9087
+ }, 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, d, b) {
8783
9088
  var M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], G = null;
8784
- if (M && (G = M.value), A != null && A.skipAnalytics || b || i.evaluateFlag(g, "VALUE"), G === null && (A == null ? void 0 : A.fallback) !== void 0) return A.fallback;
8785
- if (A != null && A.json) try {
9089
+ if (M && (G = M.value), d != null && d.skipAnalytics || b || i.evaluateFlag(g, "VALUE"), G === null && (d == null ? void 0 : d.fallback) !== void 0) return d.fallback;
9090
+ if (d != null && d.json) try {
8786
9091
  return G === null ? (i.log("Tried to parse null flag as JSON: " + g), null) : JSON.parse(G);
8787
9092
  } catch {
8788
- return A.fallback;
9093
+ return d.fallback;
8789
9094
  }
8790
9095
  return G;
8791
9096
  }, this.getTrait = function(g) {
8792
- var A, b;
8793
- return ((A = i.evaluationContext.identity) === null || A === void 0 ? void 0 : A.traits) && ((b = i.evaluationContext.identity.traits[g.toLowerCase().replace(/ /g, "_")]) === null || b === void 0 ? void 0 : b.value);
9097
+ var d, b;
9098
+ return ((d = i.evaluationContext.identity) === null || d === void 0 ? void 0 : d.traits) && ((b = i.evaluationContext.identity.traits[g.toLowerCase().replace(/ /g, "_")]) === null || b === void 0 ? void 0 : b.value);
8794
9099
  }, this.getAllTraits = function() {
8795
9100
  var g;
8796
- return Object.fromEntries(Object.entries(((g = i.evaluationContext.identity) === null || g === void 0 ? void 0 : g.traits) || {}).map(function(A) {
8797
- var b = A[0], M = A[1];
9101
+ return Object.fromEntries(Object.entries(((g = i.evaluationContext.identity) === null || g === void 0 ? void 0 : g.traits) || {}).map(function(d) {
9102
+ var b = d[0], M = d[1];
8798
9103
  return [b, M == null ? void 0 : M.value];
8799
9104
  }));
8800
9105
  }, this.setContext = function(g) {
8801
- var A = re(g);
8802
- return i.evaluationContext = n(n({}, A), { environment: A.environment || i.evaluationContext.environment }), i.initialised ? i.getFlags() : Promise.resolve();
9106
+ var d = re(g);
9107
+ return i.evaluationContext = n(n({}, d), { environment: d.environment || i.evaluationContext.environment }), i.initialised ? i.getFlags() : Promise.resolve();
8803
9108
  }, this.getContext = function() {
8804
9109
  return i.evaluationContext;
8805
9110
  }, this.updateContext = function(g) {
8806
9111
  return i.setContext(n(n({}, i.getContext()), g));
8807
- }, this.setTrait = function(g, A) {
9112
+ }, this.setTrait = function(g, d) {
8808
9113
  var b;
8809
- if (i.api) return i.setContext(n(n({}, i.evaluationContext), { identity: n(n({}, i.evaluationContext.identity), { traits: n(n({}, (b = i.evaluationContext.identity) === null || b === void 0 ? void 0 : b.traits), $(Object.fromEntries([[g, A]]))) }) }));
9114
+ if (i.api) return i.setContext(n(n({}, i.evaluationContext), { identity: n(n({}, i.evaluationContext.identity), { traits: n(n({}, (b = i.evaluationContext.identity) === null || b === void 0 ? void 0 : b.traits), $(Object.fromEntries([[g, d]]))) }) }));
8810
9115
  }, this.setTraits = function(g) {
8811
- var A;
8812
- if (i.api) return i.setContext(n(n({}, i.evaluationContext), { identity: n(n({}, i.evaluationContext.identity), { traits: n(n({}, (A = i.evaluationContext.identity) === null || A === void 0 ? void 0 : A.traits), Object.fromEntries(Object.entries(g).map(function(b) {
9116
+ var d;
9117
+ if (i.api) return i.setContext(n(n({}, i.evaluationContext), { identity: n(n({}, i.evaluationContext.identity), { traits: n(n({}, (d = i.evaluationContext.identity) === null || d === void 0 ? void 0 : d.traits), Object.fromEntries(Object.entries(g).map(function(b) {
8813
9118
  var M = b[0], G = b[1];
8814
- return [M, z(G) ? G : { value: G }];
9119
+ return [M, U(G) ? G : { value: G }];
8815
9120
  }))) }) }));
8816
9121
  console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
8817
- }, this.hasFeature = function(g, A) {
8818
- var b = typeof A == "object", M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], G = !1;
8819
- return !M && b && A.fallback !== void 0 ? G = A == null ? void 0 : A.fallback : M && M.enabled && (G = !0), (b && !A.skipAnalytics || !A) && i.evaluateFlag(g, "ENABLED"), G;
9122
+ }, this.hasFeature = function(g, d) {
9123
+ var b = typeof d == "object", M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], G = !1;
9124
+ return !M && b && d.fallback !== void 0 ? G = d == null ? void 0 : d.fallback : M && M.enabled && (G = !0), (b && !d.skipAnalytics || !d) && i.evaluateFlag(g, "ENABLED"), G;
8820
9125
  }, this.getStorageKey = function() {
8821
- var g, A;
8822
- return ((g = i.cacheOptions) === null || g === void 0 ? void 0 : g.storageKey) || "FLAGSMITH_DB_" + ((A = i.evaluationContext.environment) === null || A === void 0 ? void 0 : A.apiKey);
8823
- }, this.getJSON = function(g, A, b) {
9126
+ var g, d;
9127
+ return ((g = i.cacheOptions) === null || g === void 0 ? void 0 : g.storageKey) || "FLAGSMITH_DB_" + ((d = i.evaluationContext.environment) === null || d === void 0 ? void 0 : d.apiKey);
9128
+ }, this.getJSON = function(g, d, b) {
8824
9129
  var M, G = i;
8825
9130
  G.evaluationContext;
8826
- var F = G.headers, k = { method: A || "GET", body: b, cache: "no-cache", headers: {} };
8827
- i.evaluationContext.environment && (k.headers["X-Environment-Key"] = i.evaluationContext.environment.apiKey), A && A !== "GET" && (k.headers["Content-Type"] = "application/json; charset=utf-8"), F && Object.assign(k.headers, F), O || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
9131
+ var F = G.headers, k = { method: d || "GET", body: b, cache: "no-cache", headers: {} };
9132
+ i.evaluationContext.environment && (k.headers["X-Environment-Key"] = i.evaluationContext.environment.apiKey), d && d !== "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.");
8828
9133
  var j = "".concat((M = i.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
8829
- return O(g, k).then(function(U) {
9134
+ return O(g, k).then(function(z) {
8830
9135
  var ce, Me, ge = "".concat((ce = i.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
8831
9136
  if (j === ge) {
8832
- var ve = (Me = U.headers) === null || Me === void 0 ? void 0 : Me.get("x-flagsmith-document-updated-at");
9137
+ var ve = (Me = z.headers) === null || Me === void 0 ? void 0 : Me.get("x-flagsmith-document-updated-at");
8833
9138
  if (ve) try {
8834
9139
  var pe = parseFloat(ve);
8835
9140
  if (isNaN(pe)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
@@ -8837,57 +9142,57 @@ var Vs = { exports: {} };
8837
9142
  } catch (fe) {
8838
9143
  i.log(fe, "Failed to parse x-flagsmith-document-updated-at", ve);
8839
9144
  }
8840
- return i.log("Fetch response: " + U.status + " " + (A || "GET") + 0 + g), U.text().then(function(fe) {
9145
+ return i.log("Fetch response: " + z.status + " " + (d || "GET") + 0 + g), z.text().then(function(fe) {
8841
9146
  var Ce = fe;
8842
9147
  try {
8843
9148
  Ce = JSON.parse(fe);
8844
9149
  } catch {
8845
9150
  }
8846
- return !Ce && U.status && (Ce = "API Response: ".concat(U.status)), U.status && U.status >= 200 && U.status < 300 ? Ce : Promise.reject(new Error(Ce));
9151
+ return !Ce && z.status && (Ce = "API Response: ".concat(z.status)), z.status && z.status >= 200 && z.status < 300 ? Ce : Promise.reject(new Error(Ce));
8847
9152
  });
8848
9153
  }
8849
9154
  i.log("Received response with identity mismatch, ignoring response. Requested: ".concat(j, ", Current: ").concat(ge));
8850
9155
  });
8851
- }, this.evaluateFlag = function(g, A) {
8852
- if (i.datadogRum && (i.datadogRum.client.addFeatureFlagEvaluation ? A === "VALUE" ? i.datadogRum.client.addFeatureFlagEvaluation(lt + g, i.getValue(g, {}, !0)) : i.datadogRum.client.addFeatureFlagEvaluation(Dt + g, i.hasFeature(g, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), i.enableAnalytics) {
9156
+ }, this.evaluateFlag = function(g, d) {
9157
+ if (i.datadogRum && (i.datadogRum.client.addFeatureFlagEvaluation ? d === "VALUE" ? i.datadogRum.client.addFeatureFlagEvaluation(lt + g, i.getValue(g, {}, !0)) : i.datadogRum.client.addFeatureFlagEvaluation(Dt + g, i.hasFeature(g, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), i.enableAnalytics) {
8853
9158
  if (!i.evaluationEvent || !i.evaluationContext.environment) return;
8854
9159
  i.evaluationEvent[i.evaluationContext.environment.apiKey] || (i.evaluationEvent[i.evaluationContext.environment.apiKey] = {}), i.evaluationEvent[i.evaluationContext.environment.apiKey][g] === void 0 && (i.evaluationEvent[i.evaluationContext.environment.apiKey][g] = 0), i.evaluationEvent[i.evaluationContext.environment.apiKey][g] += 1;
8855
9160
  }
8856
9161
  i.updateEventStorage();
8857
- }, this._onChange = function(g, A, b) {
9162
+ }, this._onChange = function(g, d, b) {
8858
9163
  var M, G;
8859
- i.setLoadingState(b), (M = i.onChange) === null || M === void 0 || M.call(i, g, A, i.loadingState), (G = i._trigger) === null || G === void 0 || G.call(i);
9164
+ i.setLoadingState(b), (M = i.onChange) === null || M === void 0 || M.call(i, g, d, i.loadingState), (G = i._trigger) === null || G === void 0 || G.call(i);
8860
9165
  }, O = u.fetch ? u.fetch : typeof fetch < "u" ? fetch : bt == null ? void 0 : bt.fetch, this.canUseStorage = typeof window < "u" || !!u.browserlessStorage, this.log("Constructing flagsmith instance " + u), u.eventSource && (me = u.eventSource), u.AsyncStorage && (ne = u.AsyncStorage);
8861
9166
  }
8862
9167
  return f.prototype.init = function(u) {
8863
- var i, g, A;
9168
+ var i, g, d;
8864
9169
  return a(this, void 0, void 0, function() {
8865
- var b, M, G, F, k, j, U, ce, Me, ge, ve, pe, fe, Ce, dt, mt, _e, le, W, _t, gt, Qs, $e, $t, ks, Ts, es, Ns, ts, pt, et, Ss, ue = this;
8866
- return c(this, function(Be) {
8867
- switch (Be.label) {
9170
+ var b, M, G, F, k, j, z, ce, Me, ge, ve, pe, fe, Ce, dt, mt, _e, le, W, _t, gt, Qs, $e, $t, ks, Ts, es, Ss, ts, pt, et, Ns, ue = this;
9171
+ return c(this, function(we) {
9172
+ switch (we.label) {
8868
9173
  case 0:
8869
- b = re(u.evaluationContext || this.evaluationContext), Be.label = 1;
9174
+ b = re(u.evaluationContext || this.evaluationContext), we.label = 1;
8870
9175
  case 1:
8871
- if (Be.trys.push([1, 13, , 14]), M = u.environmentID, G = u.api, F = G === void 0 ? Ne : G, k = u.headers, j = u.onChange, U = u.cacheFlags, ce = u.datadogRum, Me = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Ce = u.enableDynatrace, dt = u.enableAnalytics, mt = u.realtime, _e = u.eventSourceUrl, le = _e === void 0 ? "https://realtime.flagsmith.com/" : _e, W = u.AsyncStorage, _t = u.identity, gt = u.traits, Qs = u.state, $e = u.cacheOptions, $t = u.angularHttpClient, ks = u._trigger, Ts = u._triggerLoadingState, b.environment = M ? { apiKey: M } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
9176
+ if (we.trys.push([1, 13, , 14]), M = u.environmentID, G = u.api, F = G === void 0 ? Se : G, k = u.headers, j = u.onChange, z = u.cacheFlags, ce = u.datadogRum, Me = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Ce = u.enableDynatrace, dt = u.enableAnalytics, mt = u.realtime, _e = u.eventSourceUrl, le = _e === void 0 ? "https://realtime.flagsmith.com/" : _e, W = u.AsyncStorage, _t = u.identity, gt = u.traits, Qs = u.state, $e = u.cacheOptions, $t = u.angularHttpClient, ks = u._trigger, Ts = u._triggerLoadingState, b.environment = M ? { apiKey: M } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
8872
9177
  if (b.identity = _t || gt ? { identifier: _t, traits: gt ? Object.fromEntries(Object.entries(gt).map(function(he) {
8873
9178
  return [he[0], { value: he[1] }];
8874
9179
  })) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers = k, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = j, es = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = ks || this._trigger, this._triggerLoadingState = Ts || this._triggerLoadingState, this.onError = function(he) {
8875
9180
  ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), Me == null || Me(he);
8876
- }, this.enableLogs = fe || !1, this.cacheOptions = $e ? { skipAPI: !!$e.skipAPI, ttl: $e.ttl || 0, storageKey: $e.storageKey, loadStale: !!$e.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ve && (O = ve), this.enableAnalytics = dt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!U, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), mt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: B.DEFAULT_FLAGS })), this.setState(Qs), this.log("Initialising with properties", u, this), Ce && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), $t && (O = /* @__PURE__ */ function(he) {
9181
+ }, this.enableLogs = fe || !1, this.cacheOptions = $e ? { skipAPI: !!$e.skipAPI, ttl: $e.ttl || 0, storageKey: $e.storageKey, loadStale: !!$e.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ve && (O = ve), this.enableAnalytics = dt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!z, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), mt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Qs), this.log("Initialising with properties", u, this), Ce && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), $t && (O = /* @__PURE__ */ function(he) {
8877
9182
  return function(De, xe) {
8878
9183
  var Ie = xe.headers, K = xe.method, tt = xe.body;
8879
- return new Promise(function(Se) {
9184
+ return new Promise(function(Ne) {
8880
9185
  switch (K) {
8881
9186
  case "GET":
8882
9187
  return he.get(De, { headers: Ie }).subscribe(function(Oe) {
8883
- Se({ ok: !0, text: function() {
9188
+ Ne({ ok: !0, text: function() {
8884
9189
  return Promise.resolve(Oe);
8885
9190
  } });
8886
9191
  });
8887
9192
  case "POST":
8888
9193
  case "PUT":
8889
9194
  return he.post(De, tt, { headers: Ie }).subscribe(function(Oe) {
8890
- Se({ ok: !0, text: function() {
9195
+ Ne({ ok: !0, text: function() {
8891
9196
  return Promise.resolve(Oe);
8892
9197
  } });
8893
9198
  });
@@ -8909,20 +9214,20 @@ var Vs = { exports: {} };
8909
9214
  ue.log("Retrieved events from cache", De), ue.setState(n(n({}, Ie), { evaluationEvent: xe[ue.evaluationContext.environment.apiKey] }));
8910
9215
  }
8911
9216
  }
8912
- })), !U) return [3, 9];
9217
+ })), !z) return [3, 9];
8913
9218
  if (!ne || !this.canUseStorage) return [3, 8];
8914
- Ns = function(he, De) {
9219
+ Ss = function(he, De) {
8915
9220
  return a(ue, void 0, void 0, function() {
8916
- var xe, Ie, K, tt, Se, Oe, ss, Zs, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, zs = this;
9221
+ var xe, Ie, K, tt, Ne, Oe, ss, Zs, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, Us = this;
8917
9222
  return c(this, function(He) {
8918
9223
  switch (He.label) {
8919
9224
  case 0:
8920
9225
  if (!De) return [3, 7];
8921
9226
  xe = null, Ie = null, He.label = 1;
8922
9227
  case 1:
8923
- return He.trys.push([1, 5, , 6]), K = JSON.parse(De), tt = !1, Se = !1, K && K.api === this.api && ((ns = (rs = K.evaluationContext) === null || rs === void 0 ? void 0 : rs.environment) === null || ns === void 0 ? void 0 : ns.apiKey) === ((as = this.evaluationContext.environment) === null || as === void 0 ? void 0 : as.apiKey) && (Oe = !0, this.evaluationContext.identity && ((is = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ls = (cs = K.evaluationContext) === null || cs === void 0 ? void 0 : cs.identity) === null || ls === void 0 ? void 0 : ls.identifier) + " to " + this.evaluationContext.identity.identifier), Oe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Oe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Se = !0, Oe = !0)), Oe && (tt = !0, Ie = h((us = this.evaluationContext.identity) === null || us === void 0 ? void 0 : us.traits, (ds = (As = K.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || ds === void 0 ? void 0 : ds.traits), xe = h(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity), { traits: n(n({}, ((fs = (ps = K.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), tt ? (ss = !pe && (!this.cacheOptions.skipAPI || Se), this._onChange(null, { isFromServer: !1, flagsChanged: xe, traitsChanged: Ie }, this._loadedState(null, B.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && tt && !Se && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
9228
+ return He.trys.push([1, 5, , 6]), K = JSON.parse(De), tt = !1, Ne = !1, K && K.api === this.api && ((ns = (rs = K.evaluationContext) === null || rs === void 0 ? void 0 : rs.environment) === null || ns === void 0 ? void 0 : ns.apiKey) === ((as = this.evaluationContext.environment) === null || as === void 0 ? void 0 : as.apiKey) && (Oe = !0, this.evaluationContext.identity && ((is = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ls = (cs = K.evaluationContext) === null || cs === void 0 ? void 0 : cs.identity) === null || ls === void 0 ? void 0 : ls.identifier) + " to " + this.evaluationContext.identity.identifier), Oe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Oe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Ne = !0, Oe = !0)), Oe && (tt = !0, Ie = h((us = this.evaluationContext.identity) === null || us === void 0 ? void 0 : us.traits, (ds = (As = K.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || ds === void 0 ? void 0 : ds.traits), xe = h(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity), { traits: n(n({}, ((fs = (ps = K.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), tt ? (ss = !pe && (!this.cacheOptions.skipAPI || Ne), this._onChange(null, { isFromServer: !1, flagsChanged: xe, traitsChanged: Ie }, this._loadedState(null, w.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && tt && !Ne && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
8924
9229
  var bs;
8925
- (bs = zs.onError) === null || bs === void 0 || bs.call(zs, Hn);
9230
+ (bs = Us.onError) === null || bs === void 0 || bs.call(Us, Hn);
8926
9231
  }), [3, 4]) : [3, 2];
8927
9232
  case 2:
8928
9233
  return pe ? [3, 4] : [4, this.getFlags()];
@@ -8939,10 +9244,10 @@ var Vs = { exports: {} };
8939
9244
  case 8:
8940
9245
  return He.sent(), [3, 10];
8941
9246
  case 9:
8942
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
9247
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8943
9248
  else {
8944
9249
  if (!this.flags) throw new Error(es);
8945
- this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ys = this.evaluationContext.identity) === null || ys === void 0 ? void 0 : ys.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
9250
+ this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ys = this.evaluationContext.identity) === null || ys === void 0 ? void 0 : ys.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8946
9251
  }
8947
9252
  He.label = 10;
8948
9253
  case 10:
@@ -8950,32 +9255,32 @@ var Vs = { exports: {} };
8950
9255
  }
8951
9256
  });
8952
9257
  });
8953
- }, Be.label = 2;
9258
+ }, we.label = 2;
8954
9259
  case 2:
8955
- return Be.trys.push([2, 7, , 8]), ne.getItemSync ? (ts = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
9260
+ return we.trys.push([2, 7, , 8]), ne.getItemSync ? (ts = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
8956
9261
  case 3:
8957
9262
  return [4, ne.getItem(this.getStorageKey())];
8958
9263
  case 4:
8959
- ts = Be.sent(), Be.label = 5;
9264
+ ts = we.sent(), we.label = 5;
8960
9265
  case 5:
8961
- return [4, Ns(null, ts)];
9266
+ return [4, Ss(null, ts)];
8962
9267
  case 6:
8963
9268
  case 7:
8964
- return Be.sent(), [3, 8];
9269
+ return we.sent(), [3, 8];
8965
9270
  case 8:
8966
9271
  return [3, 12];
8967
9272
  case 9:
8968
9273
  return pe ? [3, 11] : [4, this.getFlags()];
8969
9274
  case 10:
8970
- return Be.sent(), [3, 12];
9275
+ return we.sent(), [3, 12];
8971
9276
  case 11:
8972
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, ge), traitsChanged: h({}, (i = b.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
8973
- else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = es), this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, B.DEFAULT_FLAGS)), pt)) throw new Error(pt);
8974
- Be.label = 12;
9277
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, ge), traitsChanged: h({}, (i = b.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
9278
+ else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = es), this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, w.DEFAULT_FLAGS)), pt)) throw new Error(pt);
9279
+ we.label = 12;
8975
9280
  case 12:
8976
9281
  return [3, 14];
8977
9282
  case 13:
8978
- throw et = Be.sent(), this.log("Error during initialisation ", et), Ss = et instanceof Error ? et : new Error("".concat(et)), (A = this.onError) === null || A === void 0 || A.call(this, Ss), et;
9283
+ throw et = we.sent(), this.log("Error during initialisation ", et), Ns = et instanceof Error ? et : new Error("".concat(et)), (d = this.onError) === null || d === void 0 || d.call(this, Ns), et;
8979
9284
  case 14:
8980
9285
  return [2];
8981
9286
  }
@@ -8984,14 +9289,14 @@ var Vs = { exports: {} };
8984
9289
  }, f.prototype.getAllFlags = function() {
8985
9290
  return this.flags;
8986
9291
  }, f.prototype.identify = function(u, i, g) {
8987
- return this.evaluationContext.identity = { identifier: u, transient: g, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == u ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = u, this.log("Identify: " + this.evaluationContext.identity.identifier), i && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(i).map(function(A) {
8988
- var b = A[0], M = A[1];
8989
- return [b, z(M) ? M : { value: M }];
9292
+ return this.evaluationContext.identity = { identifier: u, transient: g, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == u ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = u, this.log("Identify: " + this.evaluationContext.identity.identifier), i && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(i).map(function(d) {
9293
+ var b = d[0], M = d[1];
9294
+ return [b, U(M) ? M : { value: M }];
8990
9295
  }))), this.initialised ? this.getFlags() : Promise.resolve();
8991
9296
  }, f.prototype.getState = function() {
8992
9297
  return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
8993
9298
  }, f.prototype.setState = function(u) {
8994
- 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));
9299
+ u && (this.initialised = !0, this.api = u.api || this.api || Se, this.flags = u.flags || this.flags, this.evaluationContext = u.evaluationContext || this.evaluationContext, this.evaluationEvent = u.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
8995
9300
  }, f.prototype.logout = function() {
8996
9301
  return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
8997
9302
  }, f.prototype.startListening = function(u) {
@@ -9020,8 +9325,8 @@ var Vs = { exports: {} };
9020
9325
  var i;
9021
9326
  y(u, this.loadingState) || (this.loadingState = n({}, u), this.log("Loading state changed", u), (i = this._triggerLoadingState) === null || i === void 0 || i.call(this));
9022
9327
  }, f.prototype.setupRealtime = function(u, i) {
9023
- var g = this, A = u + "sse/environments/" + i + "/stream";
9024
- me ? this.eventSource || (this.log("Creating event source with url " + A), this.eventSource = new me(A), this.eventSource.addEventListener("environment_updated", function(b) {
9328
+ var g = this, d = u + "sse/environments/" + i + "/stream";
9329
+ me ? this.eventSource || (this.log("Creating event source with url " + d), this.eventSource = new me(d), this.eventSource.addEventListener("environment_updated", function(b) {
9025
9330
  var M;
9026
9331
  try {
9027
9332
  M = JSON.parse(b.data).updated_at;
@@ -9036,11 +9341,11 @@ var Vs = { exports: {} };
9036
9341
  var u = f.fetch, i = f.AsyncStorage, g = f.eventSource;
9037
9342
  return new At({ fetch: u, AsyncStorage: i, eventSource: g });
9038
9343
  }
9039
- var p, w = (p = function(f, u) {
9344
+ var p, B = (p = function(f, u) {
9040
9345
  return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, g) {
9041
9346
  i.__proto__ = g;
9042
9347
  } || function(i, g) {
9043
- for (var A in g) Object.prototype.hasOwnProperty.call(g, A) && (i[A] = g[A]);
9348
+ for (var d in g) Object.prototype.hasOwnProperty.call(g, d) && (i[d] = g[d]);
9044
9349
  }, p(f, u);
9045
9350
  }, function(f, u) {
9046
9351
  if (typeof u != "function" && u !== null) throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
@@ -9058,41 +9363,41 @@ var Vs = { exports: {} };
9058
9363
  }, E = function(f, u) {
9059
9364
  var i = typeof Symbol == "function" && f[Symbol.iterator];
9060
9365
  if (!i) return f;
9061
- var g, A, b = i.call(f), M = [];
9366
+ var g, d, b = i.call(f), M = [];
9062
9367
  try {
9063
9368
  for (; (u === void 0 || u-- > 0) && !(g = b.next()).done; ) M.push(g.value);
9064
9369
  } catch (G) {
9065
- A = { error: G };
9370
+ d = { error: G };
9066
9371
  } finally {
9067
9372
  try {
9068
9373
  g && !g.done && (i = b.return) && i.call(b);
9069
9374
  } finally {
9070
- if (A) throw A.error;
9375
+ if (d) throw d.error;
9071
9376
  }
9072
9377
  }
9073
9378
  return M;
9074
- }, P = function(f, u, i) {
9075
- 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]);
9379
+ }, Y = function(f, u, i) {
9380
+ if (arguments.length === 2) for (var g, d = 0, b = u.length; d < b; d++) !g && d in u || (g || (g = Array.prototype.slice.call(u, 0, d)), g[d] = u[d]);
9076
9381
  return f.concat(g || Array.prototype.slice.call(u));
9077
9382
  }, q = function(f) {
9078
9383
  function u() {
9079
9384
  return f.call(this, `EventSource not available.
9080
9385
  Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
9081
9386
  }
9082
- return w(u, f), u;
9387
+ return B(u, f), u;
9083
9388
  }(Error), R = function() {
9084
9389
  function f(u, i) {
9085
9390
  var g = this;
9086
9391
  if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = i != null ? Object.assign({}, i) : 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();
9087
- this._onevent_wrapped = function(A) {
9088
- g._onevent(A);
9392
+ this._onevent_wrapped = function(d) {
9393
+ g._onevent(d);
9089
9394
  }, this._start();
9090
9395
  }
9091
9396
  return f.prototype.dispatchEvent = function(u) {
9092
9397
  throw new Error("Method not implemented.");
9093
9398
  }, f.prototype._start = function() {
9094
- var u, i, g = this, A = this.url;
9095
- 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) {
9399
+ var u, i, g = this, d = this.url;
9400
+ this._lastEventId && (d.indexOf("?") === -1 ? d += "?" : d += "&", d += "lastEventId=" + encodeURIComponent(this._lastEventId)), this._eventSource = new this.eventSourceClass(d, this._configuration), this._eventSource.onopen = function(F) {
9096
9401
  g._onopen(F);
9097
9402
  }, this._eventSource.onerror = function(F) {
9098
9403
  g._onerror(F);
@@ -9127,9 +9432,9 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9127
9432
  }, f.prototype._onevent = function(u) {
9128
9433
  var i, g;
9129
9434
  u && u.lastEventId && (this._lastEventId = u.lastEventId);
9130
- var A = this._listeners[u.type];
9131
- if (A != null) try {
9132
- for (var b = D(P([], E(A), !1)), M = b.next(); !M.done; M = b.next())
9435
+ var d = this._listeners[u.type];
9436
+ if (d != null) try {
9437
+ for (var b = D(Y([], E(d), !1)), M = b.next(); !M.done; M = b.next())
9133
9438
  M.value.call(this, u);
9134
9439
  } catch (G) {
9135
9440
  i = { error: G };
@@ -9148,11 +9453,11 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9148
9453
  this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
9149
9454
  }, f.prototype.addEventListener = function(u, i, g) {
9150
9455
  this._listeners[u] == null && (this._listeners[u] = [], this._eventSource != null && this._eventSource.addEventListener(u, this._onevent_wrapped));
9151
- var A = this._listeners[u];
9152
- A.includes(i) || (this._listeners[u] = P(P([], E(A), !1), [i], !1));
9456
+ var d = this._listeners[u];
9457
+ d.includes(i) || (this._listeners[u] = Y(Y([], E(d), !1), [i], !1));
9153
9458
  }, f.prototype.removeEventListener = function(u, i, g) {
9154
- var A = this._listeners[u];
9155
- this._listeners[u] = A.filter(function(b) {
9459
+ var d = this._listeners[u];
9460
+ this._listeners[u] = d.filter(function(b) {
9156
9461
  return b !== i;
9157
9462
  });
9158
9463
  }, f;
@@ -9160,13 +9465,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9160
9465
  globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
9161
9466
  var _ = function(f, u) {
9162
9467
  return u = u || {}, new Promise(function(i, g) {
9163
- var A = new XMLHttpRequest(), b = [], M = [], G = {}, F = function() {
9164
- return { ok: (A.status / 100 | 0) == 2, statusText: A.statusText, status: A.status, url: A.responseURL, text: function() {
9165
- return Promise.resolve(A.responseText);
9468
+ var d = new XMLHttpRequest(), b = [], M = [], G = {}, F = function() {
9469
+ return { ok: (d.status / 100 | 0) == 2, statusText: d.statusText, status: d.status, url: d.responseURL, text: function() {
9470
+ return Promise.resolve(d.responseText);
9166
9471
  }, json: function() {
9167
- return Promise.resolve(A.responseText).then(JSON.parse);
9472
+ return Promise.resolve(d.responseText).then(JSON.parse);
9168
9473
  }, blob: function() {
9169
- return Promise.resolve(new Blob([A.response]));
9474
+ return Promise.resolve(new Blob([d.response]));
9170
9475
  }, clone: F, headers: { keys: function() {
9171
9476
  return b;
9172
9477
  }, entries: function() {
@@ -9177,12 +9482,12 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9177
9482
  return j.toLowerCase() in G;
9178
9483
  } } };
9179
9484
  };
9180
- for (var k in A.open(u.method || "get", f, !0), A.onload = function() {
9181
- A.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, U, ce) {
9182
- b.push(U = U.toLowerCase()), M.push([U, ce]), G[U] = G[U] ? G[U] + "," + ce : ce;
9485
+ for (var k in d.open(u.method || "get", f, !0), d.onload = function() {
9486
+ d.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, z, ce) {
9487
+ b.push(z = z.toLowerCase()), M.push([z, ce]), G[z] = G[z] ? G[z] + "," + ce : ce;
9183
9488
  }), i(F());
9184
- }, A.onerror = g, A.withCredentials = u.credentials == "include", u.headers) A.setRequestHeader(k, u.headers[k]);
9185
- A.send(u.body || null);
9489
+ }, d.onerror = g, d.withCredentials = u.credentials == "include", u.headers) d.setRequestHeader(k, u.headers[k]);
9490
+ d.send(u.body || null);
9186
9491
  });
9187
9492
  }, se = m({ AsyncStorage: r, fetch: _, eventSource: R });
9188
9493
  typeof window < "u" && (window.flagsmith = se), s.createFlagsmithInstance = function() {
@@ -9294,57 +9599,57 @@ var hl = Vs.exports, yl = {
9294
9599
  reset() {
9295
9600
  this.flagsmithClient = null, this.userContext = null;
9296
9601
  }
9297
- }, xt(je, "instance"), je), vl = bl.getInstance(), ht = Qe(!1), Yt = Qe([]), st = Qe(null);
9298
- function Bl(e = vl) {
9299
- const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (B, O = []) => {
9602
+ }, xt(je, "instance"), je), vl = bl.getInstance(), ht = Qe(!1), Pt = Qe([]), st = Qe(null);
9603
+ function wl(e = vl) {
9604
+ const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (w, O = []) => {
9300
9605
  if (ht.value) {
9301
9606
  console.warn("FeatureFlag is already initialized.");
9302
9607
  return;
9303
9608
  }
9304
9609
  try {
9305
- await e.init(B, O), Yt.value = await e.getFlags(), ht.value = !0, st.value = null;
9306
- } catch (N) {
9307
- console.error("Failed to initialize feature flags:", N), st.value = N;
9610
+ await e.init(w, O), Pt.value = await e.getFlags(), ht.value = !0, st.value = null;
9611
+ } catch (S) {
9612
+ console.error("Failed to initialize feature flags:", S), st.value = S;
9308
9613
  }
9309
- }, r = async (B) => {
9614
+ }, r = async (w) => {
9310
9615
  if (t())
9311
9616
  try {
9312
- await e.setUser(B), Yt.value = await e.getFlags(), st.value = null;
9617
+ await e.setUser(w), Pt.value = await e.getFlags(), st.value = null;
9313
9618
  } catch (O) {
9314
9619
  console.error("Failed to set user:", O), st.value = O;
9315
9620
  }
9316
- }, n = async (B) => r(`${or}-${B}`), a = (B, O, N = null) => {
9317
- if (!t()) return N;
9621
+ }, n = async (w) => r(`${or}-${w}`), a = (w, O, S = null) => {
9622
+ if (!t()) return S;
9318
9623
  try {
9319
- return e.getFlagValue(B, O) ?? N;
9320
- } catch (z) {
9321
- return console.error(`Error getting flag value for ${B}:`, z), N;
9624
+ return e.getFlagValue(w, O) ?? S;
9625
+ } catch (U) {
9626
+ return console.error(`Error getting flag value for ${w}:`, U), S;
9322
9627
  }
9323
- }, c = (B, O) => {
9628
+ }, c = (w, O) => {
9324
9629
  if (!t()) return O ?? null;
9325
9630
  try {
9326
- return e.getFlag(B) ?? O ?? null;
9327
- } catch (N) {
9328
- return console.error(`Error getting flag for ${B}:`, N), O ?? null;
9631
+ return e.getFlag(w) ?? O ?? null;
9632
+ } catch (S) {
9633
+ return console.error(`Error getting flag for ${w}:`, S), O ?? null;
9329
9634
  }
9330
- }, l = async (B, O, N = null, z) => {
9331
- if (!t()) return N;
9635
+ }, l = async (w, O, S = null, U) => {
9636
+ if (!t()) return S;
9332
9637
  try {
9333
- return await e.getUserFlagValue(B, O, N, z);
9638
+ return await e.getUserFlagValue(w, O, S, U);
9334
9639
  } catch ($) {
9335
- return console.error(`Error getting user flag value for ${O}:`, $), N;
9640
+ return console.error(`Error getting user flag value for ${O}:`, $), S;
9336
9641
  }
9337
- }, y = async (B, O, N = null, z) => l(`${or}-${B}`, O, N, z), h = () => {
9642
+ }, y = async (w, O, S = null, U) => l(`${or}-${w}`, O, S, U), h = () => {
9338
9643
  try {
9339
9644
  e.reset();
9340
- } catch (B) {
9341
- console.error("Error resetting feature flags:", B);
9645
+ } catch (w) {
9646
+ console.error("Error resetting feature flags:", w);
9342
9647
  } finally {
9343
- Yt.value = [], ht.value = !1, st.value = null;
9648
+ Pt.value = [], ht.value = !1, st.value = null;
9344
9649
  }
9345
9650
  };
9346
9651
  return {
9347
- flags: vs(Yt),
9652
+ flags: vs(Pt),
9348
9653
  isInitialized: vs(ht),
9349
9654
  error: vs(st),
9350
9655
  init: s,
@@ -9357,18 +9662,18 @@ function Bl(e = vl) {
9357
9662
  reset: h
9358
9663
  };
9359
9664
  }
9360
- var wl = () => Bl();
9665
+ var Bl = () => wl();
9361
9666
  const ql = /* @__PURE__ */ it({
9362
9667
  __name: "App",
9363
9668
  setup(e) {
9364
- const t = Ar(), { init: s } = wl();
9669
+ const t = Ar(), { init: s } = Bl();
9365
9670
  return ur(async () => {
9366
9671
  t.registerSidebarComponent(fl), await s({
9367
9672
  apiKey: t.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
9368
9673
  });
9369
9674
  }), (r, n) => {
9370
9675
  const a = Fs("RouterView");
9371
- return ct(), Ut(a);
9676
+ return ct(), zt(a);
9372
9677
  };
9373
9678
  }
9374
9679
  }), Il = () => {
@@ -9393,13 +9698,13 @@ const ql = /* @__PURE__ */ it({
9393
9698
  );
9394
9699
  };
9395
9700
  export {
9396
- Yl as A,
9701
+ Pl as A,
9397
9702
  Vl as G,
9398
- za as O,
9703
+ Ua as O,
9399
9704
  ic as P,
9400
9705
  te as R,
9401
- Pl as S,
9402
- Sa as U,
9706
+ Yl as S,
9707
+ Na as U,
9403
9708
  sl as _,
9404
9709
  nl as a,
9405
9710
  v as b,
@@ -9415,5 +9720,5 @@ export {
9415
9720
  Ol as m,
9416
9721
  o as n,
9417
9722
  Fl as r,
9418
- wl as u
9723
+ Bl as u
9419
9724
  };