@feedmepos/mf-hrm-portal 2.2.1-dev.4 → 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.
- package/dist/{ApprovalCodeList-CJpbX8H_.js → ApprovalCodeList-B9O8QzzI.js} +2 -2
- package/dist/{AuditLogList-A1217xlw.js → AuditLogList-CtFEXKWZ.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BWNAtv1G.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js} +2 -2
- package/dist/{EmployeeList-Gh8aU7BY.js → EmployeeList-BFxMwFJq.js} +4 -4
- package/dist/{GrantUserList-vpaCAv1u.js → GrantUserList-CZtmMRoS.js} +3 -3
- package/dist/{Main-38YNSkW6.js → Main-B622Z4q4.js} +9 -9
- package/dist/{Main-GwRBJ3al.js → Main-DD6IthCS.js} +2 -2
- package/dist/{Main-CXjbH7aE.js → Main-on0TXkQt.js} +5 -5
- package/dist/{PermissionSetList-CuzFQm7J.js → PermissionSetList-FCX3TBoi.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9bkMb41.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cl_YNh0k.js} +1239 -1239
- package/dist/{RoleList-C5VZbU3f.js → RoleList-p_9KHzqF.js} +7 -7
- package/dist/{TeamMemberList-ChrUNLsA.js → TeamMemberList-BAU7Y3jh.js} +6 -6
- package/dist/{TimesheetList-Dqx3RZ4c.js → TimesheetList-DtFBWhma.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-rtbLyLSE.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Tatn3jUv.js} +2 -2
- package/dist/{app-CPByRtdD.js → app-Bbf6hEPt.js} +291 -282
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DeAdykwc.js → dayjs.min-BAnGg8q2.js} +1 -1
- package/dist/{employee-dFHap_s3.js → employee-DVSD3L51.js} +3 -3
- package/dist/{iteration-B_EcCwqv.js → iteration-BTZViJtd.js} +1 -1
- package/dist/{lodash-C5UxxqU2.js → lodash-Cgdk4_YL.js} +1 -1
- package/dist/{role-8ZQb8Cap.js → role-CXVpO6fB.js} +1 -1
- package/dist/{rule-DJZO_Kev.js → rule-TR3MVo-b.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-Phq7vqLK.js → useReportPermissions-BpAFyO17.js} +3 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed a
|
|
|
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 || {}),
|
|
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",
|
|
@@ -2473,15 +2473,15 @@ const Ao = {
|
|
|
2473
2473
|
summarizeForm: uo
|
|
2474
2474
|
}), Ze = [mo], go = {
|
|
2475
2475
|
[`prefix:${eo}`]: Ze,
|
|
2476
|
-
[
|
|
2477
|
-
[
|
|
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
|
-
[
|
|
2483
|
-
[
|
|
2484
|
-
[
|
|
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
|
};
|
|
@@ -5999,502 +5999,511 @@ const Br = {
|
|
|
5999
5999
|
}, yt = {
|
|
6000
6000
|
Action: o,
|
|
6001
6001
|
Subject: {
|
|
6002
|
-
Business:
|
|
6002
|
+
Business: A,
|
|
6003
6003
|
Restaurant: mr
|
|
6004
6004
|
}
|
|
6005
6005
|
}, nn = {
|
|
6006
|
-
[ee.permission]:
|
|
6007
|
-
[ee.promotion]:
|
|
6008
|
-
[ee.voucher]:
|
|
6009
|
-
[ee.membership]:
|
|
6010
|
-
[ee.stock]:
|
|
6011
|
-
[ee.wastageTemplate]:
|
|
6012
|
-
[ee.closingTemplate]:
|
|
6013
|
-
[ee.orderTemplate]:
|
|
6014
|
-
[ee.ingredient]:
|
|
6015
|
-
[ee.recipe]:
|
|
6016
|
-
[ee.unit]:
|
|
6017
|
-
[ee.supplier]:
|
|
6018
|
-
[ee.warehouse]:
|
|
6019
|
-
[ee.publish]:
|
|
6020
|
-
[ee.integration]:
|
|
6021
|
-
[ee.orderDraft]:
|
|
6022
|
-
[ee.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
|
|
6023
6023
|
}, Gl = {
|
|
6024
6024
|
// General
|
|
6025
6025
|
restaurant: {
|
|
6026
6026
|
label: "Restaurant Owner",
|
|
6027
|
-
subject:
|
|
6027
|
+
subject: A.restaurant,
|
|
6028
6028
|
actions: [o.manage],
|
|
6029
6029
|
category: v.general
|
|
6030
6030
|
},
|
|
6031
6031
|
// menu
|
|
6032
6032
|
menuItem: {
|
|
6033
6033
|
label: "Menu Items Management",
|
|
6034
|
-
subject:
|
|
6034
|
+
subject: A.menu_item,
|
|
6035
6035
|
actions: [o.manage],
|
|
6036
6036
|
category: v.menu
|
|
6037
6037
|
},
|
|
6038
6038
|
menuCatalog: {
|
|
6039
6039
|
label: "Menu Catalog Management",
|
|
6040
|
-
subject:
|
|
6040
|
+
subject: A.menu_catalog,
|
|
6041
6041
|
actions: [o.manage],
|
|
6042
6042
|
category: v.menu
|
|
6043
6043
|
},
|
|
6044
6044
|
menuCategory: {
|
|
6045
6045
|
label: "Menu Category Management",
|
|
6046
|
-
subject:
|
|
6046
|
+
subject: A.menu_category,
|
|
6047
6047
|
actions: [o.manage],
|
|
6048
6048
|
category: v.menu
|
|
6049
6049
|
},
|
|
6050
6050
|
menuSubCategory: {
|
|
6051
6051
|
label: "Menu Sub-category Management",
|
|
6052
|
-
subject:
|
|
6052
|
+
subject: A.menu_subCategory,
|
|
6053
6053
|
actions: [o.manage],
|
|
6054
6054
|
category: v.menu
|
|
6055
6055
|
},
|
|
6056
6056
|
menuGroup: {
|
|
6057
6057
|
label: "Menu Group Management",
|
|
6058
|
-
subject:
|
|
6058
|
+
subject: A.menu_group,
|
|
6059
6059
|
actions: [o.manage],
|
|
6060
6060
|
category: v.menu
|
|
6061
6061
|
},
|
|
6062
6062
|
menuTakeaway: {
|
|
6063
6063
|
label: "Menu Takeaway Management",
|
|
6064
|
-
subject:
|
|
6064
|
+
subject: A.menu_takeaway,
|
|
6065
6065
|
actions: [o.manage],
|
|
6066
6066
|
category: v.menu
|
|
6067
6067
|
},
|
|
6068
6068
|
menuScheduler: {
|
|
6069
6069
|
label: "Menu Scheduler Management",
|
|
6070
|
-
subject:
|
|
6070
|
+
subject: A.menu_scheduler,
|
|
6071
6071
|
actions: [o.manage],
|
|
6072
6072
|
category: v.menu
|
|
6073
6073
|
},
|
|
6074
6074
|
menuVariant: {
|
|
6075
6075
|
label: "Menu Variant Management",
|
|
6076
|
-
subject:
|
|
6076
|
+
subject: A.menu_variant,
|
|
6077
6077
|
actions: [o.manage],
|
|
6078
6078
|
category: v.menu
|
|
6079
6079
|
},
|
|
6080
6080
|
menuCookingGuide: {
|
|
6081
6081
|
label: "Menu Cooking Guide Management",
|
|
6082
|
-
subject:
|
|
6082
|
+
subject: A.menu_cookingGuide,
|
|
6083
6083
|
actions: [o.manage],
|
|
6084
6084
|
category: v.menu
|
|
6085
6085
|
},
|
|
6086
6086
|
menuPrintRoute: {
|
|
6087
6087
|
label: "Menu Print Route Management",
|
|
6088
|
-
subject:
|
|
6088
|
+
subject: A.menu_printRoute,
|
|
6089
6089
|
actions: [o.manage],
|
|
6090
6090
|
category: v.menu
|
|
6091
6091
|
},
|
|
6092
6092
|
menuServingSequence: {
|
|
6093
6093
|
label: "Menu Serving Sequence Management",
|
|
6094
|
-
subject:
|
|
6094
|
+
subject: A.menu_servingSequence,
|
|
6095
6095
|
actions: [o.manage],
|
|
6096
6096
|
category: v.menu
|
|
6097
6097
|
},
|
|
6098
6098
|
menuUnit: {
|
|
6099
6099
|
label: "Menu Unit Management",
|
|
6100
|
-
subject:
|
|
6100
|
+
subject: A.menu_unit,
|
|
6101
6101
|
actions: [o.manage],
|
|
6102
6102
|
category: v.menu
|
|
6103
6103
|
},
|
|
6104
6104
|
menuIngredient: {
|
|
6105
6105
|
label: "Menu Ingredient Management",
|
|
6106
|
-
subject:
|
|
6106
|
+
subject: A.menu_ingredient,
|
|
6107
6107
|
actions: [o.manage],
|
|
6108
6108
|
category: v.menu
|
|
6109
6109
|
},
|
|
6110
6110
|
menuRecipe: {
|
|
6111
6111
|
label: "Menu Recipe Management",
|
|
6112
|
-
subject:
|
|
6112
|
+
subject: A.menu_recipe,
|
|
6113
6113
|
actions: [o.manage],
|
|
6114
6114
|
category: v.menu
|
|
6115
6115
|
},
|
|
6116
6116
|
menuSettings: {
|
|
6117
6117
|
label: "Menu Settings Management",
|
|
6118
|
-
subject:
|
|
6118
|
+
subject: A.menu_settings,
|
|
6119
6119
|
actions: [o.manage],
|
|
6120
6120
|
category: v.menu
|
|
6121
6121
|
},
|
|
6122
6122
|
menuPublish: {
|
|
6123
6123
|
label: "Menu Publish",
|
|
6124
|
-
subject:
|
|
6124
|
+
subject: A.menu_publish,
|
|
6125
6125
|
actions: [o.manage],
|
|
6126
6126
|
category: v.menu
|
|
6127
6127
|
},
|
|
6128
6128
|
menuManagement: {
|
|
6129
6129
|
label: "Menu Management",
|
|
6130
|
-
subject:
|
|
6130
|
+
subject: A.menu_menuManagement,
|
|
6131
6131
|
actions: [o.manage],
|
|
6132
6132
|
category: v.menu
|
|
6133
6133
|
},
|
|
6134
6134
|
menuImportExport: {
|
|
6135
6135
|
label: "Menu Import/Export",
|
|
6136
|
-
subject:
|
|
6136
|
+
subject: A.menu_importExport,
|
|
6137
6137
|
actions: [o.manage],
|
|
6138
6138
|
category: v.menu
|
|
6139
6139
|
},
|
|
6140
6140
|
// inventory
|
|
6141
6141
|
inventoryStockBalance: {
|
|
6142
6142
|
label: "Stock Balance Management",
|
|
6143
|
-
subject:
|
|
6143
|
+
subject: A.inventory_stockBalance,
|
|
6144
6144
|
actions: [o.manage],
|
|
6145
6145
|
category: v.inventory
|
|
6146
6146
|
},
|
|
6147
6147
|
inventoryStockAdjustment: {
|
|
6148
6148
|
label: "Stock Adjustment Management",
|
|
6149
|
-
subject:
|
|
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,
|
|
6150
6159
|
actions: [o.manage],
|
|
6151
6160
|
category: v.inventory
|
|
6152
6161
|
},
|
|
6153
6162
|
inventoryUnitCostHistory: {
|
|
6154
6163
|
label: "Unit Cost History Management",
|
|
6155
|
-
subject:
|
|
6164
|
+
subject: A.inventory_unitCostHistory,
|
|
6156
6165
|
actions: [o.manage],
|
|
6157
6166
|
category: v.inventory
|
|
6158
6167
|
},
|
|
6159
6168
|
inventoryWastageTemplate: {
|
|
6160
6169
|
label: "Wastage Template Management",
|
|
6161
|
-
subject:
|
|
6170
|
+
subject: A.inventory_wastageTemplate,
|
|
6162
6171
|
actions: [o.manage],
|
|
6163
6172
|
category: v.inventory,
|
|
6164
6173
|
showByFeatureFlag: "inventory_pos_adjust_v2_wastage"
|
|
6165
6174
|
},
|
|
6166
6175
|
inventoryClosingHistory: {
|
|
6167
6176
|
label: "Closing History Management",
|
|
6168
|
-
subject:
|
|
6177
|
+
subject: A.inventory_closingHistory,
|
|
6169
6178
|
actions: [o.manage],
|
|
6170
6179
|
category: v.inventory
|
|
6171
6180
|
},
|
|
6172
6181
|
inventoryClosingTemplate: {
|
|
6173
6182
|
label: "Closing Template Management",
|
|
6174
|
-
subject:
|
|
6183
|
+
subject: A.inventory_closingTemplate,
|
|
6175
6184
|
actions: [o.manage],
|
|
6176
6185
|
category: v.inventory,
|
|
6177
6186
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
6178
6187
|
},
|
|
6179
6188
|
inventoryClosingDraft: {
|
|
6180
6189
|
label: "Closing Draft Management",
|
|
6181
|
-
subject:
|
|
6190
|
+
subject: A.inventory_closingDraft,
|
|
6182
6191
|
actions: [o.manage],
|
|
6183
6192
|
category: v.inventory,
|
|
6184
6193
|
showByFeatureFlag: "inventory_pos_closing_v2"
|
|
6185
6194
|
},
|
|
6186
6195
|
inventoryIngredient: {
|
|
6187
6196
|
label: "Ingredient Management",
|
|
6188
|
-
subject:
|
|
6197
|
+
subject: A.inventory_ingredient,
|
|
6189
6198
|
actions: [o.manage],
|
|
6190
6199
|
category: v.inventory
|
|
6191
6200
|
},
|
|
6192
6201
|
inventoryIngredientGroup: {
|
|
6193
6202
|
label: "Ingredient Group Management",
|
|
6194
|
-
subject:
|
|
6203
|
+
subject: A.inventory_ingredientGroup,
|
|
6195
6204
|
actions: [o.manage],
|
|
6196
6205
|
showByFeatureFlag: "inventory_ingredient_group",
|
|
6197
6206
|
category: v.inventory
|
|
6198
6207
|
},
|
|
6199
6208
|
inventoryRecipe: {
|
|
6200
6209
|
label: "Recipe Management",
|
|
6201
|
-
subject:
|
|
6210
|
+
subject: A.inventory_recipe,
|
|
6202
6211
|
actions: [o.manage],
|
|
6203
6212
|
category: v.inventory
|
|
6204
6213
|
},
|
|
6205
6214
|
inventoryUnit: {
|
|
6206
6215
|
label: "Unit Management",
|
|
6207
|
-
subject:
|
|
6216
|
+
subject: A.inventory_unit,
|
|
6208
6217
|
actions: [o.manage],
|
|
6209
6218
|
category: v.inventory
|
|
6210
6219
|
},
|
|
6211
6220
|
inventoryPurchaseTransfer: {
|
|
6212
6221
|
label: "Purchase / Transfer Management",
|
|
6213
|
-
subject:
|
|
6222
|
+
subject: A.inventory_purchaseTransfer,
|
|
6214
6223
|
actions: [o.manage],
|
|
6215
6224
|
category: v.inventory
|
|
6216
6225
|
},
|
|
6217
6226
|
inventoryOrderDraftApproval: {
|
|
6218
6227
|
label: "Order Draft Approval",
|
|
6219
|
-
subject:
|
|
6228
|
+
subject: A.inventory_orderDraftApproval,
|
|
6220
6229
|
actions: [o.manage],
|
|
6221
6230
|
category: v.inventory
|
|
6222
6231
|
},
|
|
6223
6232
|
inventoryTransferOut: {
|
|
6224
6233
|
label: "Transfer Out Management",
|
|
6225
|
-
subject:
|
|
6234
|
+
subject: A.inventory_transferOut,
|
|
6226
6235
|
actions: [o.manage],
|
|
6227
6236
|
category: v.inventory
|
|
6228
6237
|
},
|
|
6229
6238
|
inventorySurcharge: {
|
|
6230
6239
|
label: "Surcharge Management",
|
|
6231
|
-
subject:
|
|
6240
|
+
subject: A.inventory_surcharge,
|
|
6232
6241
|
actions: [o.manage],
|
|
6233
6242
|
showByFeatureFlag: "inventory_portal_surcharge",
|
|
6234
6243
|
category: v.inventory
|
|
6235
6244
|
},
|
|
6236
6245
|
inventoryOrderTemplate: {
|
|
6237
6246
|
label: "Order Template Management",
|
|
6238
|
-
subject:
|
|
6247
|
+
subject: A.inventory_orderTemplate,
|
|
6239
6248
|
actions: [o.manage],
|
|
6240
6249
|
showByFeatureFlag: "inventory_portal_must_use_transfer_template",
|
|
6241
6250
|
category: v.inventory
|
|
6242
6251
|
},
|
|
6243
6252
|
inventorySupplier: {
|
|
6244
6253
|
label: "Supplier Management",
|
|
6245
|
-
subject:
|
|
6254
|
+
subject: A.inventory_supplier,
|
|
6246
6255
|
actions: [o.manage],
|
|
6247
6256
|
category: v.inventory
|
|
6248
6257
|
},
|
|
6249
6258
|
inventoryWarehouse: {
|
|
6250
6259
|
label: "Warehouse Management",
|
|
6251
|
-
subject:
|
|
6260
|
+
subject: A.inventory_warehouse,
|
|
6252
6261
|
actions: [o.manage],
|
|
6253
6262
|
category: v.inventory
|
|
6254
6263
|
},
|
|
6255
6264
|
inventoryPublish: {
|
|
6256
6265
|
label: "Publish Management",
|
|
6257
|
-
subject:
|
|
6266
|
+
subject: A.inventory_publish,
|
|
6258
6267
|
actions: [o.manage],
|
|
6259
6268
|
category: v.inventory
|
|
6260
6269
|
},
|
|
6261
6270
|
inventoryImport: {
|
|
6262
6271
|
label: "Import Management",
|
|
6263
|
-
subject:
|
|
6272
|
+
subject: A.inventory_import,
|
|
6264
6273
|
actions: [o.manage],
|
|
6265
6274
|
showByFeatureFlag: "inventory_bulk_import",
|
|
6266
6275
|
category: v.inventory
|
|
6267
6276
|
},
|
|
6268
6277
|
inventoryIntegration: {
|
|
6269
6278
|
label: "Integration Management",
|
|
6270
|
-
subject:
|
|
6279
|
+
subject: A.inventory_integration,
|
|
6271
6280
|
actions: [o.manage],
|
|
6272
6281
|
category: v.inventory
|
|
6273
6282
|
},
|
|
6274
6283
|
// CRM
|
|
6275
6284
|
crmMembership: {
|
|
6276
6285
|
label: "Membership Management (V1)",
|
|
6277
|
-
subject:
|
|
6286
|
+
subject: A.crm_membership,
|
|
6278
6287
|
actions: [o.manage],
|
|
6279
6288
|
category: v.crm
|
|
6280
6289
|
},
|
|
6281
6290
|
crmPromotion: {
|
|
6282
6291
|
label: "Promotion Management (V1/V2)",
|
|
6283
|
-
subject:
|
|
6292
|
+
subject: A.crm_promotion,
|
|
6284
6293
|
actions: [o.manage],
|
|
6285
6294
|
category: v.crm
|
|
6286
6295
|
},
|
|
6287
6296
|
crmVoucher: {
|
|
6288
6297
|
label: "Voucher Management (V1/V2)",
|
|
6289
|
-
subject:
|
|
6298
|
+
subject: A.crm_voucher,
|
|
6290
6299
|
actions: [o.manage],
|
|
6291
6300
|
category: v.crm
|
|
6292
6301
|
},
|
|
6293
6302
|
crmAnalytic: {
|
|
6294
6303
|
label: "Analytic Management",
|
|
6295
|
-
subject:
|
|
6304
|
+
subject: A.crm_analytic,
|
|
6296
6305
|
actions: [o.manage],
|
|
6297
6306
|
category: v.crm
|
|
6298
6307
|
},
|
|
6299
6308
|
crmTier: {
|
|
6300
6309
|
label: "Tier Management",
|
|
6301
|
-
subject:
|
|
6310
|
+
subject: A.crm_tier,
|
|
6302
6311
|
actions: [o.manage],
|
|
6303
6312
|
category: v.crm
|
|
6304
6313
|
},
|
|
6305
6314
|
crmTitle: {
|
|
6306
6315
|
label: "Title Management",
|
|
6307
|
-
subject:
|
|
6316
|
+
subject: A.crm_title,
|
|
6308
6317
|
actions: [o.manage],
|
|
6309
6318
|
category: v.crm
|
|
6310
6319
|
},
|
|
6311
6320
|
crmBroadcast: {
|
|
6312
6321
|
label: "Broadcast Management",
|
|
6313
|
-
subject:
|
|
6322
|
+
subject: A.crm_broadcast,
|
|
6314
6323
|
actions: [o.manage],
|
|
6315
6324
|
category: v.crm
|
|
6316
6325
|
},
|
|
6317
6326
|
crmPoint: {
|
|
6318
6327
|
label: "Point Management",
|
|
6319
|
-
subject:
|
|
6328
|
+
subject: A.crm_point,
|
|
6320
6329
|
actions: [o.manage],
|
|
6321
6330
|
category: v.crm
|
|
6322
6331
|
},
|
|
6323
6332
|
crmCredit: {
|
|
6324
6333
|
label: "Credit Management",
|
|
6325
|
-
subject:
|
|
6334
|
+
subject: A.crm_credit,
|
|
6326
6335
|
actions: [o.manage],
|
|
6327
6336
|
category: v.crm
|
|
6328
6337
|
},
|
|
6329
6338
|
crmExperience: {
|
|
6330
6339
|
label: "Experience Management",
|
|
6331
|
-
subject:
|
|
6340
|
+
subject: A.crm_experience,
|
|
6332
6341
|
actions: [o.manage],
|
|
6333
6342
|
category: v.crm
|
|
6334
6343
|
},
|
|
6335
6344
|
crmGame: {
|
|
6336
6345
|
label: "Game Management",
|
|
6337
|
-
subject:
|
|
6346
|
+
subject: A.crm_game,
|
|
6338
6347
|
actions: [o.manage],
|
|
6339
6348
|
category: v.crm
|
|
6340
6349
|
},
|
|
6341
6350
|
crmMission: {
|
|
6342
6351
|
label: "Mission Management",
|
|
6343
|
-
subject:
|
|
6352
|
+
subject: A.crm_mission,
|
|
6344
6353
|
actions: [o.manage],
|
|
6345
6354
|
category: v.crm
|
|
6346
6355
|
},
|
|
6347
6356
|
crmLoyaltyMember: {
|
|
6348
6357
|
label: "Loyalty Member Management",
|
|
6349
|
-
subject:
|
|
6358
|
+
subject: A.crm_loyaltyMember,
|
|
6350
6359
|
actions: [o.manage],
|
|
6351
6360
|
category: v.crm
|
|
6352
6361
|
},
|
|
6353
6362
|
crmLoyaltySegment: {
|
|
6354
6363
|
label: "Loyalty Segment Management",
|
|
6355
|
-
subject:
|
|
6364
|
+
subject: A.crm_loyaltySegment,
|
|
6356
6365
|
actions: [o.manage],
|
|
6357
6366
|
category: v.crm
|
|
6358
6367
|
},
|
|
6359
6368
|
crmLoyaltyCard: {
|
|
6360
6369
|
label: "Loyalty Card Management",
|
|
6361
|
-
subject:
|
|
6370
|
+
subject: A.crm_loyaltyCard,
|
|
6362
6371
|
actions: [o.manage],
|
|
6363
6372
|
category: v.crm
|
|
6364
6373
|
},
|
|
6365
6374
|
crmReferral: {
|
|
6366
6375
|
label: "Referral Management",
|
|
6367
|
-
subject:
|
|
6376
|
+
subject: A.crm_referral,
|
|
6368
6377
|
actions: [o.manage],
|
|
6369
6378
|
category: v.crm
|
|
6370
6379
|
},
|
|
6371
6380
|
crmStore: {
|
|
6372
6381
|
label: "Store Management",
|
|
6373
|
-
subject:
|
|
6382
|
+
subject: A.crm_store,
|
|
6374
6383
|
actions: [o.manage],
|
|
6375
6384
|
category: v.crm
|
|
6376
6385
|
},
|
|
6377
6386
|
crmTransaction: {
|
|
6378
6387
|
label: "Transaction Management",
|
|
6379
|
-
subject:
|
|
6388
|
+
subject: A.crm_transaction,
|
|
6380
6389
|
actions: [o.manage],
|
|
6381
6390
|
category: v.crm
|
|
6382
6391
|
},
|
|
6383
6392
|
crmSetting: {
|
|
6384
6393
|
label: "Setting Management",
|
|
6385
|
-
subject:
|
|
6394
|
+
subject: A.crm_setting,
|
|
6386
6395
|
actions: [o.manage],
|
|
6387
6396
|
category: v.crm
|
|
6388
6397
|
},
|
|
6389
6398
|
crmBin: {
|
|
6390
6399
|
label: "Bin Management",
|
|
6391
|
-
subject:
|
|
6400
|
+
subject: A.crm_bin,
|
|
6392
6401
|
actions: [o.manage],
|
|
6393
6402
|
category: v.crm
|
|
6394
6403
|
},
|
|
6395
6404
|
crmMarketingMaterial: {
|
|
6396
6405
|
label: "Marketing Material Management",
|
|
6397
|
-
subject:
|
|
6406
|
+
subject: A.crm_marketingMaterial,
|
|
6398
6407
|
actions: [o.manage],
|
|
6399
6408
|
category: v.crm
|
|
6400
6409
|
},
|
|
6401
6410
|
// Payment
|
|
6402
6411
|
paymentPayoutAccount: {
|
|
6403
6412
|
label: "Payout Account Management",
|
|
6404
|
-
subject:
|
|
6413
|
+
subject: A.payment_payoutAccount,
|
|
6405
6414
|
actions: [o.manage],
|
|
6406
6415
|
category: v.payment
|
|
6407
6416
|
},
|
|
6408
6417
|
paymentOnboarding: {
|
|
6409
6418
|
label: "Payment Onboarding Management",
|
|
6410
|
-
subject:
|
|
6419
|
+
subject: A.payment_paymentOnboarding,
|
|
6411
6420
|
actions: [o.manage],
|
|
6412
6421
|
category: v.payment
|
|
6413
6422
|
},
|
|
6414
6423
|
paymentTransactions: {
|
|
6415
6424
|
label: "Transactions Management",
|
|
6416
|
-
subject:
|
|
6425
|
+
subject: A.payment_transactions,
|
|
6417
6426
|
actions: [o.manage],
|
|
6418
6427
|
category: v.payment
|
|
6419
6428
|
},
|
|
6420
6429
|
paymentSettlements: {
|
|
6421
6430
|
label: "Settlements Management",
|
|
6422
|
-
subject:
|
|
6431
|
+
subject: A.payment_settlements,
|
|
6423
6432
|
actions: [o.manage],
|
|
6424
6433
|
category: v.payment
|
|
6425
6434
|
},
|
|
6426
6435
|
// HRM
|
|
6427
6436
|
hrmTeamMember: {
|
|
6428
6437
|
label: "Team Member Management",
|
|
6429
|
-
subject:
|
|
6438
|
+
subject: A.hrm_teamMember,
|
|
6430
6439
|
actions: [o.manage],
|
|
6431
6440
|
category: v.hrm
|
|
6432
6441
|
},
|
|
6433
6442
|
hrmEmployee: {
|
|
6434
6443
|
label: "Employee Management",
|
|
6435
|
-
subject:
|
|
6444
|
+
subject: A.hrm_employee,
|
|
6436
6445
|
actions: [o.manage],
|
|
6437
6446
|
category: v.hrm
|
|
6438
6447
|
},
|
|
6439
6448
|
hrmAuditLog: {
|
|
6440
6449
|
label: "Audit Log Management",
|
|
6441
|
-
subject:
|
|
6450
|
+
subject: A.hrm_auditLog,
|
|
6442
6451
|
actions: [o.manage],
|
|
6443
6452
|
category: v.hrm
|
|
6444
6453
|
},
|
|
6445
6454
|
hrmApprovalCode: {
|
|
6446
6455
|
label: "Approval Code Management",
|
|
6447
|
-
subject:
|
|
6456
|
+
subject: A.hrm_approvalCode,
|
|
6448
6457
|
actions: [o.manage],
|
|
6449
6458
|
category: v.hrm
|
|
6450
6459
|
},
|
|
6451
6460
|
// Report
|
|
6452
6461
|
reportReports: {
|
|
6453
6462
|
label: "Create Report",
|
|
6454
|
-
subject:
|
|
6463
|
+
subject: A.report_createReport,
|
|
6455
6464
|
actions: [o.manage],
|
|
6456
6465
|
category: v.report
|
|
6457
6466
|
},
|
|
6458
6467
|
reportAccessOsDashboard: {
|
|
6459
6468
|
label: "Access FeedmeOS Dashboard",
|
|
6460
|
-
subject:
|
|
6469
|
+
subject: A.report_accessOsDashboard,
|
|
6461
6470
|
actions: [o.manage],
|
|
6462
6471
|
category: v.report
|
|
6463
6472
|
},
|
|
6464
6473
|
reportAccessOverview: {
|
|
6465
6474
|
label: "Access Overview Page",
|
|
6466
|
-
subject:
|
|
6475
|
+
subject: A.report_accessOverview,
|
|
6467
6476
|
actions: [o.manage],
|
|
6468
6477
|
category: v.report
|
|
6469
6478
|
},
|
|
6470
6479
|
reportAccessInsight: {
|
|
6471
6480
|
label: "Access Insight Page",
|
|
6472
|
-
subject:
|
|
6481
|
+
subject: A.report_accessInsight,
|
|
6473
6482
|
actions: [o.manage],
|
|
6474
6483
|
category: v.report
|
|
6475
6484
|
},
|
|
6476
6485
|
reportAccessSetting: {
|
|
6477
6486
|
label: "Access Setting Page",
|
|
6478
|
-
subject:
|
|
6487
|
+
subject: A.report_accessSetting,
|
|
6479
6488
|
actions: [o.manage],
|
|
6480
6489
|
category: v.report
|
|
6481
6490
|
},
|
|
6482
6491
|
reportAccessIntegration: {
|
|
6483
6492
|
label: "Access Integration Page",
|
|
6484
|
-
subject:
|
|
6493
|
+
subject: A.report_accessIntegration,
|
|
6485
6494
|
actions: [o.manage],
|
|
6486
6495
|
category: v.report
|
|
6487
6496
|
},
|
|
6488
6497
|
reportAllDefaultReports: {
|
|
6489
6498
|
label: "All Default Reports (Include future)",
|
|
6490
|
-
subject:
|
|
6499
|
+
subject: A.report_reports_allDefaultReports,
|
|
6491
6500
|
actions: [o.manage, o.read, o.create],
|
|
6492
6501
|
category: v.reports,
|
|
6493
6502
|
isCategoryCover: !0
|
|
6494
6503
|
},
|
|
6495
6504
|
reportAllCustomReports: {
|
|
6496
6505
|
label: "All Custom Reports (Include future)",
|
|
6497
|
-
subject:
|
|
6506
|
+
subject: A.report_reports_allCustomReports,
|
|
6498
6507
|
actions: [
|
|
6499
6508
|
o.manage,
|
|
6500
6509
|
o.read,
|
|
@@ -6508,28 +6517,28 @@ const Br = {
|
|
|
6508
6517
|
// MDM
|
|
6509
6518
|
mdmDeviceManagement: {
|
|
6510
6519
|
label: "Device Management",
|
|
6511
|
-
subject:
|
|
6520
|
+
subject: A.mdm_deviceManagement,
|
|
6512
6521
|
actions: [o.manage],
|
|
6513
6522
|
category: v.settings,
|
|
6514
6523
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
6515
6524
|
},
|
|
6516
6525
|
mdmCreateDevice: {
|
|
6517
6526
|
label: "Create New Device",
|
|
6518
|
-
subject:
|
|
6527
|
+
subject: A.mdm_createDevice,
|
|
6519
6528
|
actions: [o.manage],
|
|
6520
6529
|
category: v.settings,
|
|
6521
6530
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
6522
6531
|
},
|
|
6523
6532
|
mdmDeviceBinding: {
|
|
6524
6533
|
label: "Manage Device Binding",
|
|
6525
|
-
subject:
|
|
6534
|
+
subject: A.mdm_deviceBinding,
|
|
6526
6535
|
actions: [o.manage],
|
|
6527
6536
|
category: v.settings,
|
|
6528
6537
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
6529
6538
|
},
|
|
6530
6539
|
mdmCustomerDisplay: {
|
|
6531
6540
|
label: "Manage Customer Display",
|
|
6532
|
-
subject:
|
|
6541
|
+
subject: A.mdm_customerDisplay,
|
|
6533
6542
|
actions: [o.manage, o.read, o.update],
|
|
6534
6543
|
category: v.settings,
|
|
6535
6544
|
showByFeatureFlag: "hrm_enable_mdm_permission"
|
|
@@ -6537,14 +6546,14 @@ const Br = {
|
|
|
6537
6546
|
// Kiosk
|
|
6538
6547
|
kioskDeviceManagement: {
|
|
6539
6548
|
label: "Kiosk Device Management",
|
|
6540
|
-
subject:
|
|
6549
|
+
subject: A.kiosk_deviceManagement,
|
|
6541
6550
|
actions: [o.manage],
|
|
6542
6551
|
category: v.settings,
|
|
6543
6552
|
showByFeatureFlag: "hrm_enable_kiosk_permission"
|
|
6544
6553
|
},
|
|
6545
6554
|
kioskDeviceBinding: {
|
|
6546
6555
|
label: "Kiosk Device Binding",
|
|
6547
|
-
subject:
|
|
6556
|
+
subject: A.kiosk_deviceBinding,
|
|
6548
6557
|
actions: [o.manage],
|
|
6549
6558
|
category: v.settings,
|
|
6550
6559
|
showByFeatureFlag: "hrm_enable_kiosk_permission"
|
|
@@ -6552,14 +6561,14 @@ const Br = {
|
|
|
6552
6561
|
// E-invoice
|
|
6553
6562
|
eInvoiceManagement: {
|
|
6554
6563
|
label: "E-invoice Management",
|
|
6555
|
-
subject:
|
|
6564
|
+
subject: A.eInvoice_management,
|
|
6556
6565
|
actions: [o.manage],
|
|
6557
6566
|
category: v.settings,
|
|
6558
6567
|
showByFeatureFlag: "hrm_enable_einvoice_permission"
|
|
6559
6568
|
},
|
|
6560
6569
|
eInvoiceIntegration: {
|
|
6561
6570
|
label: "Manage E-invoice Integration",
|
|
6562
|
-
subject:
|
|
6571
|
+
subject: A.eInvoice_integration,
|
|
6563
6572
|
actions: [o.manage],
|
|
6564
6573
|
category: v.settings,
|
|
6565
6574
|
showByFeatureFlag: "hrm_enable_einvoice_permission"
|
|
@@ -6567,56 +6576,56 @@ const Br = {
|
|
|
6567
6576
|
// operation
|
|
6568
6577
|
operationReceipt: {
|
|
6569
6578
|
label: "Receipt",
|
|
6570
|
-
subject:
|
|
6579
|
+
subject: A.operation_receipt,
|
|
6571
6580
|
actions: [o.manage],
|
|
6572
6581
|
category: v.operation,
|
|
6573
6582
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
6574
6583
|
},
|
|
6575
6584
|
operationTableManagement: {
|
|
6576
6585
|
label: "Table Management",
|
|
6577
|
-
subject:
|
|
6586
|
+
subject: A.operation_tableManagement,
|
|
6578
6587
|
actions: [o.manage],
|
|
6579
6588
|
category: v.operation,
|
|
6580
6589
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
6581
6590
|
},
|
|
6582
6591
|
operationOfflinePayment: {
|
|
6583
6592
|
label: "Offline Payment Management",
|
|
6584
|
-
subject:
|
|
6593
|
+
subject: A.operation_offlinePayment,
|
|
6585
6594
|
actions: [o.manage],
|
|
6586
6595
|
category: v.operation,
|
|
6587
6596
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
6588
6597
|
},
|
|
6589
6598
|
operationReasonTemplate: {
|
|
6590
6599
|
label: "Reason Template Management",
|
|
6591
|
-
subject:
|
|
6600
|
+
subject: A.operation_reasonTemplate,
|
|
6592
6601
|
actions: [o.manage],
|
|
6593
6602
|
category: v.operation,
|
|
6594
6603
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
6595
6604
|
},
|
|
6596
6605
|
operationDiscountRule: {
|
|
6597
6606
|
label: "Discount Rule Management",
|
|
6598
|
-
subject:
|
|
6607
|
+
subject: A.operation_discountRule,
|
|
6599
6608
|
actions: [o.manage],
|
|
6600
6609
|
category: v.operation,
|
|
6601
6610
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
6602
6611
|
},
|
|
6603
6612
|
operationServiceCharge: {
|
|
6604
6613
|
label: "Service Charge Management",
|
|
6605
|
-
subject:
|
|
6614
|
+
subject: A.operation_serviceCharge,
|
|
6606
6615
|
actions: [o.manage],
|
|
6607
6616
|
category: v.operation,
|
|
6608
6617
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
6609
6618
|
},
|
|
6610
6619
|
operationKitchenPrintTemplate: {
|
|
6611
6620
|
label: "Print Template Management",
|
|
6612
|
-
subject:
|
|
6621
|
+
subject: A.operation_kitchenPrintTemplate,
|
|
6613
6622
|
actions: [o.manage],
|
|
6614
6623
|
category: v.operation,
|
|
6615
6624
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
6616
6625
|
},
|
|
6617
6626
|
operationOrderSetting: {
|
|
6618
6627
|
label: "Order Settings",
|
|
6619
|
-
subject:
|
|
6628
|
+
subject: A.operation_orderSetting,
|
|
6620
6629
|
actions: [o.manage],
|
|
6621
6630
|
category: v.operation,
|
|
6622
6631
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
@@ -6624,42 +6633,42 @@ const Br = {
|
|
|
6624
6633
|
// Mini Program
|
|
6625
6634
|
miniProgramProfile: {
|
|
6626
6635
|
label: "Business Profile Management",
|
|
6627
|
-
subject:
|
|
6636
|
+
subject: A.miniProgram_profile,
|
|
6628
6637
|
actions: [o.manage],
|
|
6629
6638
|
category: v.miniProgram,
|
|
6630
6639
|
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
6631
6640
|
},
|
|
6632
6641
|
miniProgramBrandkit: {
|
|
6633
6642
|
label: "Brand Kit Management",
|
|
6634
|
-
subject:
|
|
6643
|
+
subject: A.miniProgram_brandkit,
|
|
6635
6644
|
actions: [o.manage],
|
|
6636
6645
|
category: v.miniProgram,
|
|
6637
6646
|
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
6638
6647
|
},
|
|
6639
6648
|
miniProgramTemplate: {
|
|
6640
6649
|
label: "Template Management",
|
|
6641
|
-
subject:
|
|
6650
|
+
subject: A.miniProgram_template,
|
|
6642
6651
|
actions: [o.manage],
|
|
6643
6652
|
category: v.miniProgram,
|
|
6644
6653
|
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
6645
6654
|
},
|
|
6646
6655
|
miniProgramPublish: {
|
|
6647
6656
|
label: "Publish Management",
|
|
6648
|
-
subject:
|
|
6657
|
+
subject: A.miniProgram_publish,
|
|
6649
6658
|
actions: [o.manage],
|
|
6650
6659
|
category: v.miniProgram,
|
|
6651
6660
|
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
6652
6661
|
},
|
|
6653
6662
|
miniProgramAssets: {
|
|
6654
6663
|
label: "Assets Management",
|
|
6655
|
-
subject:
|
|
6664
|
+
subject: A.miniProgram_assets,
|
|
6656
6665
|
actions: [o.manage],
|
|
6657
6666
|
category: v.miniProgram,
|
|
6658
6667
|
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
6659
6668
|
},
|
|
6660
6669
|
miniProgramNativeCredentials: {
|
|
6661
6670
|
label: "Credentials Management",
|
|
6662
|
-
subject:
|
|
6671
|
+
subject: A.miniProgram_nativeCredentials,
|
|
6663
6672
|
actions: [o.manage],
|
|
6664
6673
|
category: v.miniProgram,
|
|
6665
6674
|
showByFeatureFlag: "hrm_enable_miniprogram_permission"
|
|
@@ -6667,7 +6676,7 @@ const Br = {
|
|
|
6667
6676
|
// Media
|
|
6668
6677
|
mediaAssets: {
|
|
6669
6678
|
label: "Media Library Management",
|
|
6670
|
-
subject:
|
|
6679
|
+
subject: A.media_assets,
|
|
6671
6680
|
actions: [o.manage],
|
|
6672
6681
|
category: v.media,
|
|
6673
6682
|
showByFeatureFlag: "hrm_enable_media_permission"
|
|
@@ -7037,118 +7046,118 @@ const L = [
|
|
|
7037
7046
|
ye,
|
|
7038
7047
|
Qi
|
|
7039
7048
|
), Zi = Ae(ki), Ui = {
|
|
7040
|
-
[`set_${
|
|
7049
|
+
[`set_${A.crm}`]: {
|
|
7041
7050
|
key: "sys:crm:access",
|
|
7042
7051
|
name: "CRM Access",
|
|
7043
7052
|
permissions: Ti
|
|
7044
7053
|
},
|
|
7045
|
-
[`set_${
|
|
7054
|
+
[`set_${A.crm_promotion}`]: {
|
|
7046
7055
|
key: "sys:crm:promotion",
|
|
7047
7056
|
name: "CRM Promotion",
|
|
7048
7057
|
permissions: Si
|
|
7049
7058
|
},
|
|
7050
|
-
[`set_${
|
|
7059
|
+
[`set_${A.crm_voucher}`]: {
|
|
7051
7060
|
key: "sys:crm:voucher",
|
|
7052
7061
|
name: "CRM Voucher",
|
|
7053
7062
|
permissions: Ni
|
|
7054
7063
|
},
|
|
7055
|
-
[`set_${
|
|
7064
|
+
[`set_${A.crm_membership}`]: {
|
|
7056
7065
|
key: "sys:crm:membership",
|
|
7057
7066
|
name: "CRM Membership",
|
|
7058
7067
|
permissions: Zi
|
|
7059
7068
|
},
|
|
7060
|
-
[`set_${
|
|
7069
|
+
[`set_${A.crm_analytic}`]: {
|
|
7061
7070
|
key: "sys:crm:analytic",
|
|
7062
7071
|
name: "CRM Analytic",
|
|
7063
7072
|
permissions: un
|
|
7064
7073
|
},
|
|
7065
|
-
[`set_${
|
|
7074
|
+
[`set_${A.crm_tier}`]: {
|
|
7066
7075
|
key: "sys:crm:tier",
|
|
7067
7076
|
name: "CRM Tier",
|
|
7068
7077
|
permissions: pn
|
|
7069
7078
|
},
|
|
7070
|
-
[`set_${
|
|
7079
|
+
[`set_${A.crm_title}`]: {
|
|
7071
7080
|
key: "sys:crm:title",
|
|
7072
7081
|
name: "CRM Title",
|
|
7073
7082
|
permissions: fn
|
|
7074
7083
|
},
|
|
7075
|
-
[`set_${
|
|
7084
|
+
[`set_${A.crm_broadcast}`]: {
|
|
7076
7085
|
key: "sys:crm:broadcast",
|
|
7077
7086
|
name: "CRM Broadcast",
|
|
7078
7087
|
permissions: hn
|
|
7079
7088
|
},
|
|
7080
|
-
[`set_${
|
|
7089
|
+
[`set_${A.crm_point}`]: {
|
|
7081
7090
|
key: "sys:crm:point",
|
|
7082
7091
|
name: "CRM Point",
|
|
7083
7092
|
permissions: yn
|
|
7084
7093
|
},
|
|
7085
|
-
[`set_${
|
|
7094
|
+
[`set_${A.crm_credit}`]: {
|
|
7086
7095
|
key: "sys:crm:credit",
|
|
7087
7096
|
name: "CRM Credit",
|
|
7088
7097
|
permissions: bn
|
|
7089
7098
|
},
|
|
7090
|
-
[`set_${
|
|
7099
|
+
[`set_${A.crm_experience}`]: {
|
|
7091
7100
|
key: "sys:crm:experience",
|
|
7092
7101
|
name: "CRM Experience",
|
|
7093
7102
|
permissions: vn
|
|
7094
7103
|
},
|
|
7095
|
-
[`set_${
|
|
7104
|
+
[`set_${A.crm_game}`]: {
|
|
7096
7105
|
key: "sys:crm:game",
|
|
7097
7106
|
name: "CRM Game",
|
|
7098
7107
|
permissions: wn
|
|
7099
7108
|
},
|
|
7100
|
-
[`set_${
|
|
7109
|
+
[`set_${A.crm_mission}`]: {
|
|
7101
7110
|
key: "sys:crm:mission",
|
|
7102
7111
|
name: "CRM Mission",
|
|
7103
7112
|
permissions: Bn
|
|
7104
7113
|
},
|
|
7105
|
-
[`set_${
|
|
7114
|
+
[`set_${A.crm_loyaltyMember}`]: {
|
|
7106
7115
|
key: "sys:crm:loyaltyMember",
|
|
7107
7116
|
name: "CRM Loyalty Member",
|
|
7108
7117
|
permissions: An
|
|
7109
7118
|
},
|
|
7110
|
-
[`set_${
|
|
7119
|
+
[`set_${A.crm_loyaltySegment}`]: {
|
|
7111
7120
|
key: "sys:crm:loyaltySegment",
|
|
7112
7121
|
name: "CRM Loyalty Segment",
|
|
7113
7122
|
permissions: dn
|
|
7114
7123
|
},
|
|
7115
|
-
[`set_${
|
|
7124
|
+
[`set_${A.crm_loyaltyCard}`]: {
|
|
7116
7125
|
key: "sys:crm:loyaltyCard",
|
|
7117
7126
|
name: "CRM Loyalty Card",
|
|
7118
7127
|
permissions: mn
|
|
7119
7128
|
},
|
|
7120
|
-
[`set_${
|
|
7129
|
+
[`set_${A.crm_referral}`]: {
|
|
7121
7130
|
key: "sys:crm:referral",
|
|
7122
7131
|
name: "CRM Referral",
|
|
7123
7132
|
permissions: Xi
|
|
7124
7133
|
},
|
|
7125
|
-
[`set_${
|
|
7134
|
+
[`set_${A.crm_store}`]: {
|
|
7126
7135
|
key: "sys:crm:store",
|
|
7127
7136
|
name: "CRM Store",
|
|
7128
7137
|
permissions: on
|
|
7129
7138
|
},
|
|
7130
|
-
[`set_${
|
|
7139
|
+
[`set_${A.crm_transaction}`]: {
|
|
7131
7140
|
key: "sys:crm:transaction",
|
|
7132
7141
|
name: "CRM Transaction",
|
|
7133
7142
|
permissions: an
|
|
7134
7143
|
},
|
|
7135
|
-
[`set_${
|
|
7144
|
+
[`set_${A.crm_setting}`]: {
|
|
7136
7145
|
key: "sys:crm:setting",
|
|
7137
7146
|
name: "CRM Setting",
|
|
7138
7147
|
permissions: Mn
|
|
7139
7148
|
},
|
|
7140
|
-
[`set_${
|
|
7149
|
+
[`set_${A.crm_bin}`]: {
|
|
7141
7150
|
key: "sys:crm:bin",
|
|
7142
7151
|
name: "CRM Bin",
|
|
7143
7152
|
permissions: gn
|
|
7144
7153
|
},
|
|
7145
|
-
[`set_${
|
|
7154
|
+
[`set_${A.crm_marketingMaterial}`]: {
|
|
7146
7155
|
key: "sys:crm:marketingMaterial",
|
|
7147
7156
|
name: "CRM Marketing Material",
|
|
7148
7157
|
permissions: ln
|
|
7149
7158
|
}
|
|
7150
7159
|
};
|
|
7151
|
-
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 || {});
|
|
7152
7161
|
const ie = [
|
|
7153
7162
|
{
|
|
7154
7163
|
label: "Inventory",
|
|
@@ -7486,107 +7495,107 @@ const $i = [
|
|
|
7486
7495
|
...Xs
|
|
7487
7496
|
];
|
|
7488
7497
|
const nc = {
|
|
7489
|
-
[`set_${
|
|
7498
|
+
[`set_${A.inventory_stockBalance}`]: {
|
|
7490
7499
|
key: "sys:inventory:stock_balance",
|
|
7491
7500
|
name: "Stock Balance",
|
|
7492
7501
|
permissions: Rs
|
|
7493
7502
|
},
|
|
7494
|
-
[`set_${
|
|
7503
|
+
[`set_${A.inventory_stockAdjustment}`]: {
|
|
7495
7504
|
key: "sys:inventory:stock_adjustment",
|
|
7496
7505
|
name: "Stock Adjustment",
|
|
7497
7506
|
permissions: zi
|
|
7498
7507
|
},
|
|
7499
|
-
[`set_${
|
|
7508
|
+
[`set_${A.inventory_unitCostHistory}`]: {
|
|
7500
7509
|
key: "sys:inventory:unit_cost_history",
|
|
7501
7510
|
name: "Unit Cost History",
|
|
7502
7511
|
permissions: Cn
|
|
7503
7512
|
},
|
|
7504
|
-
[`set_${
|
|
7513
|
+
[`set_${A.inventory_wastageTemplate}`]: {
|
|
7505
7514
|
key: "sys:inventory:wastage_template",
|
|
7506
7515
|
name: "Wastage Template",
|
|
7507
7516
|
permissions: Dn
|
|
7508
7517
|
},
|
|
7509
|
-
[`set_${
|
|
7518
|
+
[`set_${A.inventory_closingHistory}`]: {
|
|
7510
7519
|
key: "sys:inventory:closing_history",
|
|
7511
7520
|
name: "Closing History",
|
|
7512
7521
|
permissions: Xs
|
|
7513
7522
|
},
|
|
7514
|
-
[`set_${
|
|
7523
|
+
[`set_${A.inventory_closingTemplate}`]: {
|
|
7515
7524
|
key: "sys:inventory:closing_template",
|
|
7516
7525
|
name: "Closing Template",
|
|
7517
7526
|
permissions: jn
|
|
7518
7527
|
},
|
|
7519
|
-
[`set_${
|
|
7528
|
+
[`set_${A.inventory_closingDraft}`]: {
|
|
7520
7529
|
key: "sys:inventory:closing_draft",
|
|
7521
7530
|
name: "Closing Draft",
|
|
7522
7531
|
permissions: xn
|
|
7523
7532
|
},
|
|
7524
|
-
[`set_${
|
|
7533
|
+
[`set_${A.inventory_ingredient}`]: {
|
|
7525
7534
|
key: "sys:inventory:ingredient",
|
|
7526
7535
|
name: "Ingredient",
|
|
7527
7536
|
permissions: Wi
|
|
7528
7537
|
},
|
|
7529
|
-
[`set_${
|
|
7538
|
+
[`set_${A.inventory_ingredientGroup}`]: {
|
|
7530
7539
|
key: "sys:inventory:ingredient_group",
|
|
7531
7540
|
name: "Ingredient Group",
|
|
7532
7541
|
permissions: Li
|
|
7533
7542
|
},
|
|
7534
|
-
[`set_${
|
|
7543
|
+
[`set_${A.inventory_recipe}`]: {
|
|
7535
7544
|
key: "sys:inventory:recipe",
|
|
7536
7545
|
name: "Recipe",
|
|
7537
7546
|
permissions: Ki
|
|
7538
7547
|
},
|
|
7539
|
-
[`set_${
|
|
7548
|
+
[`set_${A.inventory_unit}`]: {
|
|
7540
7549
|
key: "sys:inventory:unit",
|
|
7541
7550
|
name: "Unit",
|
|
7542
7551
|
permissions: Ji
|
|
7543
7552
|
},
|
|
7544
|
-
[`set_${
|
|
7553
|
+
[`set_${A.inventory_purchaseTransfer}`]: {
|
|
7545
7554
|
key: "sys:inventory:purchase_transfer",
|
|
7546
7555
|
name: "Purchase Transfer",
|
|
7547
7556
|
permissions: En
|
|
7548
7557
|
},
|
|
7549
|
-
[`set_${
|
|
7558
|
+
[`set_${A.inventory_orderDraftApproval}`]: {
|
|
7550
7559
|
key: "sys:inventory:order_draft_approval",
|
|
7551
7560
|
name: "Order Draft Approval",
|
|
7552
7561
|
permissions: _i
|
|
7553
7562
|
},
|
|
7554
|
-
[`set_${
|
|
7563
|
+
[`set_${A.inventory_transferOut}`]: {
|
|
7555
7564
|
key: "sys:inventory:transfer_out",
|
|
7556
7565
|
name: "Transfer Out",
|
|
7557
7566
|
permissions: Pn
|
|
7558
7567
|
},
|
|
7559
|
-
[`set_${
|
|
7568
|
+
[`set_${A.inventory_surcharge}`]: {
|
|
7560
7569
|
key: "sys:inventory:surcharge",
|
|
7561
7570
|
name: "Surcharge",
|
|
7562
7571
|
permissions: Yn
|
|
7563
7572
|
},
|
|
7564
|
-
[`set_${
|
|
7573
|
+
[`set_${A.inventory_orderTemplate}`]: {
|
|
7565
7574
|
key: "sys:inventory:order_template",
|
|
7566
7575
|
name: "Order Template",
|
|
7567
7576
|
permissions: Gn
|
|
7568
7577
|
},
|
|
7569
|
-
[`set_${
|
|
7578
|
+
[`set_${A.inventory_supplier}`]: {
|
|
7570
7579
|
key: "sys:inventory:supplier",
|
|
7571
7580
|
name: "Supplier",
|
|
7572
7581
|
permissions: $i
|
|
7573
7582
|
},
|
|
7574
|
-
[`set_${
|
|
7583
|
+
[`set_${A.inventory_warehouse}`]: {
|
|
7575
7584
|
key: "sys:inventory:warehouse",
|
|
7576
7585
|
name: "Warehouse",
|
|
7577
7586
|
permissions: ec
|
|
7578
7587
|
},
|
|
7579
|
-
[`set_${
|
|
7588
|
+
[`set_${A.inventory_publish}`]: {
|
|
7580
7589
|
key: "sys:inventory:publish",
|
|
7581
7590
|
name: "Publish",
|
|
7582
7591
|
permissions: tc
|
|
7583
7592
|
},
|
|
7584
|
-
[`set_${
|
|
7593
|
+
[`set_${A.inventory_import}`]: {
|
|
7585
7594
|
key: "sys:inventory:import",
|
|
7586
7595
|
name: "Import",
|
|
7587
7596
|
permissions: sc
|
|
7588
7597
|
},
|
|
7589
|
-
[`set_${
|
|
7598
|
+
[`set_${A.inventory_integration}`]: {
|
|
7590
7599
|
key: "sys:inventory:integration",
|
|
7591
7600
|
name: "Integration",
|
|
7592
7601
|
permissions: rc
|
|
@@ -7599,7 +7608,7 @@ const ac = {
|
|
|
7599
7608
|
* Injects: team member list read + pos role read
|
|
7600
7609
|
* Users who can manage team members need to see the team member list and assign POS roles.
|
|
7601
7610
|
*/
|
|
7602
|
-
[`set_${
|
|
7611
|
+
[`set_${A.hrm_teamMember}`]: {
|
|
7603
7612
|
key: "sys:team_member_access",
|
|
7604
7613
|
name: "Team Member Access",
|
|
7605
7614
|
permissions: [
|
|
@@ -7610,7 +7619,7 @@ const ac = {
|
|
|
7610
7619
|
},
|
|
7611
7620
|
{
|
|
7612
7621
|
label: "Role resource",
|
|
7613
|
-
subject:
|
|
7622
|
+
subject: A.role,
|
|
7614
7623
|
actions: [o.read, o.update]
|
|
7615
7624
|
},
|
|
7616
7625
|
{
|
|
@@ -7629,7 +7638,7 @@ const ac = {
|
|
|
7629
7638
|
* Triggered by: hrm_employee:manage (portal toggle)
|
|
7630
7639
|
* Injects: pos role read + restaurant manage (cross-level: needed for employee–restaurant linking)
|
|
7631
7640
|
*/
|
|
7632
|
-
[`set_${
|
|
7641
|
+
[`set_${A.hrm_employee}`]: {
|
|
7633
7642
|
key: "sys:employee_access",
|
|
7634
7643
|
name: "Employee Access",
|
|
7635
7644
|
permissions: [
|
|
@@ -7656,7 +7665,7 @@ const ac = {
|
|
|
7656
7665
|
* Uses HrmResource.hrm_portalUsers (not the module subject hrm_teamMember) to avoid
|
|
7657
7666
|
* conflating the audit-log read dependency with the full team-management module grant.
|
|
7658
7667
|
*/
|
|
7659
|
-
[`set_${
|
|
7668
|
+
[`set_${A.hrm_auditLog}`]: {
|
|
7660
7669
|
key: "sys:audit_log_access",
|
|
7661
7670
|
name: "Audit Log Access",
|
|
7662
7671
|
permissions: [
|
|
@@ -7671,7 +7680,7 @@ const ac = {
|
|
|
7671
7680
|
* Triggered by: hrm_approvalCode:manage (portal toggle)
|
|
7672
7681
|
* Injects: restaurant read — approval code management needs the restaurant list.
|
|
7673
7682
|
*/
|
|
7674
|
-
[`set_${
|
|
7683
|
+
[`set_${A.hrm_approvalCode}`]: {
|
|
7675
7684
|
key: "sys:approval_code_access",
|
|
7676
7685
|
name: "Approval Code Access",
|
|
7677
7686
|
permissions: [
|
|
@@ -7687,7 +7696,7 @@ var Vn = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e)
|
|
|
7687
7696
|
const sr = [
|
|
7688
7697
|
{
|
|
7689
7698
|
label: "Payout Account",
|
|
7690
|
-
subject:
|
|
7699
|
+
subject: A.payment_payoutAccount,
|
|
7691
7700
|
actions: [o.read]
|
|
7692
7701
|
},
|
|
7693
7702
|
{
|
|
@@ -7696,12 +7705,12 @@ const sr = [
|
|
|
7696
7705
|
actions: [o.read]
|
|
7697
7706
|
}
|
|
7698
7707
|
], oc = {
|
|
7699
|
-
[`set_${
|
|
7708
|
+
[`set_${A.payment_transactions}`]: {
|
|
7700
7709
|
key: "sys:payment:transactions",
|
|
7701
7710
|
name: "Payment Transactions Access",
|
|
7702
7711
|
permissions: sr
|
|
7703
7712
|
},
|
|
7704
|
-
[`set_${
|
|
7713
|
+
[`set_${A.payment_settlements}`]: {
|
|
7705
7714
|
key: "sys:payment:settlements",
|
|
7706
7715
|
name: "Payment Settlements Access",
|
|
7707
7716
|
permissions: sr
|
|
@@ -8005,13 +8014,13 @@ var On = { exports: {} };
|
|
|
8005
8014
|
}
|
|
8006
8015
|
function ne(m, p) {
|
|
8007
8016
|
var B = m.keyPath, D = m.child, E = m.query, Y = [];
|
|
8008
|
-
if (function i(g,
|
|
8009
|
-
if (b ===
|
|
8010
|
-
return void G.push([g,
|
|
8011
|
-
var F = w(
|
|
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);
|
|
8012
8021
|
if (l(g) && isNaN(Number(F)))
|
|
8013
|
-
for (var k = 0, j = g.length; k < j; k++) i(w(g, k),
|
|
8014
|
-
else i(w(g, F),
|
|
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);
|
|
8015
8024
|
}(p, B, 0, p, Y), Y.length === 1) {
|
|
8016
8025
|
var q = Y[0];
|
|
8017
8026
|
return U(D, q[0], q[1], q[2]);
|
|
@@ -8665,10 +8674,10 @@ const Et = (e) => ({
|
|
|
8665
8674
|
}
|
|
8666
8675
|
]
|
|
8667
8676
|
}
|
|
8668
|
-
}), al = Kt(Be(() => import("./Main-
|
|
8669
|
-
Be(() => import("./AuditLogList-
|
|
8670
|
-
), cl = Kt(Be(() => import("./Main-
|
|
8671
|
-
() => import("./PermissionSetList-
|
|
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")
|
|
8672
8681
|
), Fl = [
|
|
8673
8682
|
{
|
|
8674
8683
|
path: "/",
|
|
@@ -8848,30 +8857,30 @@ var Vs = { exports: {} };
|
|
|
8848
8857
|
}
|
|
8849
8858
|
}, getItem: function(f, u) {
|
|
8850
8859
|
var i = this;
|
|
8851
|
-
return new Promise(function(g,
|
|
8860
|
+
return new Promise(function(g, d) {
|
|
8852
8861
|
try {
|
|
8853
8862
|
var b = i.getItemSync(f);
|
|
8854
8863
|
u == null || u(null, b), g(b);
|
|
8855
8864
|
} catch (M) {
|
|
8856
|
-
u && u(M, null),
|
|
8865
|
+
u && u(M, null), d(M);
|
|
8857
8866
|
}
|
|
8858
8867
|
});
|
|
8859
8868
|
}, setItem: function(f, u, i) {
|
|
8860
|
-
return new Promise(function(g,
|
|
8869
|
+
return new Promise(function(g, d) {
|
|
8861
8870
|
try {
|
|
8862
8871
|
localStorage.setItem(f, u), i && i(null, u), g(u);
|
|
8863
8872
|
} catch (b) {
|
|
8864
|
-
i && i(b, null),
|
|
8873
|
+
i && i(b, null), d(b);
|
|
8865
8874
|
}
|
|
8866
8875
|
});
|
|
8867
8876
|
} }, n = function() {
|
|
8868
8877
|
return n = Object.assign || function(f) {
|
|
8869
|
-
for (var u, i = 1, g = arguments.length; i < g; i++) for (var
|
|
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]);
|
|
8870
8879
|
return f;
|
|
8871
8880
|
}, n.apply(this, arguments);
|
|
8872
8881
|
};
|
|
8873
8882
|
function a(f, u, i, g) {
|
|
8874
|
-
return new (i || (i = Promise))(function(
|
|
8883
|
+
return new (i || (i = Promise))(function(d, b) {
|
|
8875
8884
|
function M(k) {
|
|
8876
8885
|
try {
|
|
8877
8886
|
F(g.next(k));
|
|
@@ -8888,7 +8897,7 @@ var Vs = { exports: {} };
|
|
|
8888
8897
|
}
|
|
8889
8898
|
function F(k) {
|
|
8890
8899
|
var j;
|
|
8891
|
-
k.done ?
|
|
8900
|
+
k.done ? d(k.value) : (j = k.value, j instanceof i ? j : new i(function(z) {
|
|
8892
8901
|
z(j);
|
|
8893
8902
|
})).then(M, G);
|
|
8894
8903
|
}
|
|
@@ -8896,9 +8905,9 @@ var Vs = { exports: {} };
|
|
|
8896
8905
|
});
|
|
8897
8906
|
}
|
|
8898
8907
|
function c(f, u) {
|
|
8899
|
-
var i, g,
|
|
8900
|
-
if (1 &
|
|
8901
|
-
return
|
|
8908
|
+
var i, g, d, b, M = { label: 0, sent: function() {
|
|
8909
|
+
if (1 & d[0]) throw d[1];
|
|
8910
|
+
return d[1];
|
|
8902
8911
|
}, trys: [], ops: [] };
|
|
8903
8912
|
return b = { next: G(0), throw: G(1), return: G(2) }, typeof Symbol == "function" && (b[Symbol.iterator] = function() {
|
|
8904
8913
|
return this;
|
|
@@ -8908,11 +8917,11 @@ var Vs = { exports: {} };
|
|
|
8908
8917
|
return function(j) {
|
|
8909
8918
|
if (i) throw new TypeError("Generator is already executing.");
|
|
8910
8919
|
for (; M; ) try {
|
|
8911
|
-
if (i = 1, g && (
|
|
8912
|
-
switch (g = 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]) {
|
|
8913
8922
|
case 0:
|
|
8914
8923
|
case 1:
|
|
8915
|
-
|
|
8924
|
+
d = j;
|
|
8916
8925
|
break;
|
|
8917
8926
|
case 4:
|
|
8918
8927
|
return M.label++, { value: j[1], done: !1 };
|
|
@@ -8923,30 +8932,30 @@ var Vs = { exports: {} };
|
|
|
8923
8932
|
j = M.ops.pop(), M.trys.pop();
|
|
8924
8933
|
continue;
|
|
8925
8934
|
default:
|
|
8926
|
-
if (
|
|
8935
|
+
if (d = M.trys, !((d = d.length > 0 && d[d.length - 1]) || j[0] !== 6 && j[0] !== 2)) {
|
|
8927
8936
|
M = 0;
|
|
8928
8937
|
continue;
|
|
8929
8938
|
}
|
|
8930
|
-
if (j[0] === 3 && (!
|
|
8939
|
+
if (j[0] === 3 && (!d || j[1] > d[0] && j[1] < d[3])) {
|
|
8931
8940
|
M.label = j[1];
|
|
8932
8941
|
break;
|
|
8933
8942
|
}
|
|
8934
|
-
if (j[0] === 6 && M.label <
|
|
8935
|
-
M.label =
|
|
8943
|
+
if (j[0] === 6 && M.label < d[1]) {
|
|
8944
|
+
M.label = d[1], d = j;
|
|
8936
8945
|
break;
|
|
8937
8946
|
}
|
|
8938
|
-
if (
|
|
8939
|
-
M.label =
|
|
8947
|
+
if (d && M.label < d[2]) {
|
|
8948
|
+
M.label = d[2], M.ops.push(j);
|
|
8940
8949
|
break;
|
|
8941
8950
|
}
|
|
8942
|
-
|
|
8951
|
+
d[2] && M.ops.pop(), M.trys.pop();
|
|
8943
8952
|
continue;
|
|
8944
8953
|
}
|
|
8945
8954
|
j = u.call(f, M);
|
|
8946
8955
|
} catch (z) {
|
|
8947
8956
|
j = [6, z], g = 0;
|
|
8948
8957
|
} finally {
|
|
8949
|
-
i =
|
|
8958
|
+
i = d = 0;
|
|
8950
8959
|
}
|
|
8951
8960
|
if (5 & j[0]) throw j[1];
|
|
8952
8961
|
return { value: j[0] ? j[1] : void 0, done: !0 };
|
|
@@ -8955,26 +8964,26 @@ var Vs = { exports: {} };
|
|
|
8955
8964
|
}
|
|
8956
8965
|
}
|
|
8957
8966
|
function l(f, u, i) {
|
|
8958
|
-
for (var g,
|
|
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]);
|
|
8959
8968
|
return f.concat(g || Array.prototype.slice.call(u));
|
|
8960
8969
|
}
|
|
8961
8970
|
var y = function f(u, i) {
|
|
8962
8971
|
if (u === i) return !0;
|
|
8963
8972
|
if (u && i && typeof u == "object" && typeof i == "object") {
|
|
8964
8973
|
if (u.constructor !== i.constructor) return !1;
|
|
8965
|
-
var g,
|
|
8974
|
+
var g, d, b;
|
|
8966
8975
|
if (Array.isArray(u)) {
|
|
8967
8976
|
if ((g = u.length) != i.length) return !1;
|
|
8968
|
-
for (
|
|
8977
|
+
for (d = g; d-- != 0; ) if (!f(u[d], i[d])) return !1;
|
|
8969
8978
|
return !0;
|
|
8970
8979
|
}
|
|
8971
8980
|
if (u.constructor === RegExp) return u.source === i.source && u.flags === i.flags;
|
|
8972
8981
|
if (u.valueOf !== Object.prototype.valueOf) return u.valueOf() === i.valueOf();
|
|
8973
8982
|
if (u.toString !== Object.prototype.toString) return u.toString() === i.toString();
|
|
8974
8983
|
if ((g = (b = Object.keys(u)).length) !== Object.keys(i).length) return !1;
|
|
8975
|
-
for (
|
|
8976
|
-
for (
|
|
8977
|
-
var M = b[
|
|
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];
|
|
8978
8987
|
if (!f(u[M], i[M])) return !1;
|
|
8979
8988
|
}
|
|
8980
8989
|
return !0;
|
|
@@ -8983,8 +8992,8 @@ var Vs = { exports: {} };
|
|
|
8983
8992
|
};
|
|
8984
8993
|
function h(f, u) {
|
|
8985
8994
|
var i = Object.keys(u || {}).filter(function(g) {
|
|
8986
|
-
var
|
|
8987
|
-
return !y(
|
|
8995
|
+
var d = f == null ? void 0 : f[g], b = u == null ? void 0 : u[g];
|
|
8996
|
+
return !y(d, b);
|
|
8988
8997
|
});
|
|
8989
8998
|
return Object.keys(f || {}).filter(function(g) {
|
|
8990
8999
|
Object.keys(u || {}).includes(g) || i.push(g);
|
|
@@ -8992,8 +9001,8 @@ var Vs = { exports: {} };
|
|
|
8992
9001
|
}
|
|
8993
9002
|
var w, O;
|
|
8994
9003
|
function S(f, u, i) {
|
|
8995
|
-
var g = "shortString",
|
|
8996
|
-
typeof i == "number" && (g = "javaDouble",
|
|
9004
|
+
var g = "shortString", d = !0;
|
|
9005
|
+
typeof i == "number" && (g = "javaDouble", d = !1), f[g] = f[g] || {}, f[g][u] = d ? i + "" : i;
|
|
8997
9006
|
}
|
|
8998
9007
|
function U(f) {
|
|
8999
9008
|
return !!f && typeof f == "object" && f.value !== void 0;
|
|
@@ -9014,7 +9023,7 @@ var Vs = { exports: {} };
|
|
|
9014
9023
|
function f(u) {
|
|
9015
9024
|
var i = this;
|
|
9016
9025
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
9017
|
-
var g = i,
|
|
9026
|
+
var g = i, d = g.api, b = g.evaluationContext;
|
|
9018
9027
|
i.log("Get Flags"), i.isLoading = !0, i.loadingState.isFetching || i.setLoadingState(n(n({}, i.loadingState), { isFetching: !0 }));
|
|
9019
9028
|
var M = "".concat(i.getContext().identity), G = function(F) {
|
|
9020
9029
|
var k, j, z, ce;
|
|
@@ -9052,75 +9061,75 @@ var Vs = { exports: {} };
|
|
|
9052
9061
|
}
|
|
9053
9062
|
}
|
|
9054
9063
|
};
|
|
9055
|
-
return b.identity ? Promise.all([b.identity.traits && Object.keys(b.identity.traits).length || !b.identity.identifier ? i.getJSON(
|
|
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) {
|
|
9056
9065
|
var k = F[0], j = F[1];
|
|
9057
9066
|
return { trait_key: k, trait_value: j == null ? void 0 : j.value, transient: j == null ? void 0 : j.transient };
|
|
9058
9067
|
}).filter(function(F) {
|
|
9059
9068
|
return F.trait_value !== void 0 || (i.log("Warning - attempted to set an undefined trait value for key", F.trait_key), !1);
|
|
9060
|
-
}) })) : i.getJSON(
|
|
9069
|
+
}) })) : i.getJSON(d + "identities/?identifier=" + encodeURIComponent(b.identity.identifier) + (b.identity.transient ? "&transient=true" : ""))]).then(function(F) {
|
|
9061
9070
|
return i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: {} }), G(F == null ? void 0 : F[0]);
|
|
9062
9071
|
}).catch(function(F) {
|
|
9063
9072
|
var k = F.message, j = new Error(k);
|
|
9064
9073
|
return Promise.reject(j);
|
|
9065
|
-
}) : i.getJSON(
|
|
9074
|
+
}) : i.getJSON(d + "flags/").then(function(F) {
|
|
9066
9075
|
return G({ flags: F, traits: void 0 });
|
|
9067
9076
|
});
|
|
9068
9077
|
}, this.analyticsFlags = function() {
|
|
9069
9078
|
var g = i.api;
|
|
9070
|
-
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(
|
|
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) {
|
|
9071
9080
|
if (i.evaluationContext.environment) {
|
|
9072
9081
|
var b = i.getState();
|
|
9073
9082
|
i.evaluationEvent || (i.evaluationEvent = {}), i.evaluationEvent[i.evaluationContext.environment.apiKey] = {}, i.setState(n(n({}, b), { evaluationEvent: i.evaluationEvent })), i.updateEventStorage();
|
|
9074
9083
|
}
|
|
9075
|
-
}).catch(function(
|
|
9076
|
-
i.log("Exception fetching evaluationEvent",
|
|
9084
|
+
}).catch(function(d) {
|
|
9085
|
+
i.log("Exception fetching evaluationEvent", d);
|
|
9077
9086
|
}) : void 0;
|
|
9078
|
-
}, 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,
|
|
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) {
|
|
9079
9088
|
var M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], G = null;
|
|
9080
|
-
if (M && (G = M.value),
|
|
9081
|
-
if (
|
|
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 {
|
|
9082
9091
|
return G === null ? (i.log("Tried to parse null flag as JSON: " + g), null) : JSON.parse(G);
|
|
9083
9092
|
} catch {
|
|
9084
|
-
return
|
|
9093
|
+
return d.fallback;
|
|
9085
9094
|
}
|
|
9086
9095
|
return G;
|
|
9087
9096
|
}, this.getTrait = function(g) {
|
|
9088
|
-
var
|
|
9089
|
-
return ((
|
|
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);
|
|
9090
9099
|
}, this.getAllTraits = function() {
|
|
9091
9100
|
var g;
|
|
9092
|
-
return Object.fromEntries(Object.entries(((g = i.evaluationContext.identity) === null || g === void 0 ? void 0 : g.traits) || {}).map(function(
|
|
9093
|
-
var b =
|
|
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];
|
|
9094
9103
|
return [b, M == null ? void 0 : M.value];
|
|
9095
9104
|
}));
|
|
9096
9105
|
}, this.setContext = function(g) {
|
|
9097
|
-
var
|
|
9098
|
-
return i.evaluationContext = n(n({},
|
|
9106
|
+
var d = re(g);
|
|
9107
|
+
return i.evaluationContext = n(n({}, d), { environment: d.environment || i.evaluationContext.environment }), i.initialised ? i.getFlags() : Promise.resolve();
|
|
9099
9108
|
}, this.getContext = function() {
|
|
9100
9109
|
return i.evaluationContext;
|
|
9101
9110
|
}, this.updateContext = function(g) {
|
|
9102
9111
|
return i.setContext(n(n({}, i.getContext()), g));
|
|
9103
|
-
}, this.setTrait = function(g,
|
|
9112
|
+
}, this.setTrait = function(g, d) {
|
|
9104
9113
|
var b;
|
|
9105
|
-
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,
|
|
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]]))) }) }));
|
|
9106
9115
|
}, this.setTraits = function(g) {
|
|
9107
|
-
var
|
|
9108
|
-
if (i.api) return i.setContext(n(n({}, i.evaluationContext), { identity: n(n({}, i.evaluationContext.identity), { traits: n(n({}, (
|
|
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) {
|
|
9109
9118
|
var M = b[0], G = b[1];
|
|
9110
9119
|
return [M, U(G) ? G : { value: G }];
|
|
9111
9120
|
}))) }) }));
|
|
9112
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.");
|
|
9113
|
-
}, this.hasFeature = function(g,
|
|
9114
|
-
var b = typeof
|
|
9115
|
-
return !M && b &&
|
|
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;
|
|
9116
9125
|
}, this.getStorageKey = function() {
|
|
9117
|
-
var g,
|
|
9118
|
-
return ((g = i.cacheOptions) === null || g === void 0 ? void 0 : g.storageKey) || "FLAGSMITH_DB_" + ((
|
|
9119
|
-
}, this.getJSON = function(g,
|
|
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) {
|
|
9120
9129
|
var M, G = i;
|
|
9121
9130
|
G.evaluationContext;
|
|
9122
|
-
var F = G.headers, k = { method:
|
|
9123
|
-
i.evaluationContext.environment && (k.headers["X-Environment-Key"] = i.evaluationContext.environment.apiKey),
|
|
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.");
|
|
9124
9133
|
var j = "".concat((M = i.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
|
|
9125
9134
|
return O(g, k).then(function(z) {
|
|
9126
9135
|
var ce, Me, ge = "".concat((ce = i.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
|
|
@@ -9133,7 +9142,7 @@ var Vs = { exports: {} };
|
|
|
9133
9142
|
} catch (fe) {
|
|
9134
9143
|
i.log(fe, "Failed to parse x-flagsmith-document-updated-at", ve);
|
|
9135
9144
|
}
|
|
9136
|
-
return i.log("Fetch response: " + z.status + " " + (
|
|
9145
|
+
return i.log("Fetch response: " + z.status + " " + (d || "GET") + 0 + g), z.text().then(function(fe) {
|
|
9137
9146
|
var Ce = fe;
|
|
9138
9147
|
try {
|
|
9139
9148
|
Ce = JSON.parse(fe);
|
|
@@ -9144,19 +9153,19 @@ var Vs = { exports: {} };
|
|
|
9144
9153
|
}
|
|
9145
9154
|
i.log("Received response with identity mismatch, ignoring response. Requested: ".concat(j, ", Current: ").concat(ge));
|
|
9146
9155
|
});
|
|
9147
|
-
}, this.evaluateFlag = function(g,
|
|
9148
|
-
if (i.datadogRum && (i.datadogRum.client.addFeatureFlagEvaluation ?
|
|
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) {
|
|
9149
9158
|
if (!i.evaluationEvent || !i.evaluationContext.environment) return;
|
|
9150
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;
|
|
9151
9160
|
}
|
|
9152
9161
|
i.updateEventStorage();
|
|
9153
|
-
}, this._onChange = function(g,
|
|
9162
|
+
}, this._onChange = function(g, d, b) {
|
|
9154
9163
|
var M, G;
|
|
9155
|
-
i.setLoadingState(b), (M = i.onChange) === null || M === void 0 || M.call(i, g,
|
|
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);
|
|
9156
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);
|
|
9157
9166
|
}
|
|
9158
9167
|
return f.prototype.init = function(u) {
|
|
9159
|
-
var i, g,
|
|
9168
|
+
var i, g, d;
|
|
9160
9169
|
return a(this, void 0, void 0, function() {
|
|
9161
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;
|
|
9162
9171
|
return c(this, function(we) {
|
|
@@ -9271,7 +9280,7 @@ var Vs = { exports: {} };
|
|
|
9271
9280
|
case 12:
|
|
9272
9281
|
return [3, 14];
|
|
9273
9282
|
case 13:
|
|
9274
|
-
throw et = we.sent(), this.log("Error during initialisation ", et), Ns = et instanceof Error ? et : new Error("".concat(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;
|
|
9275
9284
|
case 14:
|
|
9276
9285
|
return [2];
|
|
9277
9286
|
}
|
|
@@ -9280,8 +9289,8 @@ var Vs = { exports: {} };
|
|
|
9280
9289
|
}, f.prototype.getAllFlags = function() {
|
|
9281
9290
|
return this.flags;
|
|
9282
9291
|
}, f.prototype.identify = function(u, i, g) {
|
|
9283
|
-
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(
|
|
9284
|
-
var b =
|
|
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];
|
|
9285
9294
|
return [b, U(M) ? M : { value: M }];
|
|
9286
9295
|
}))), this.initialised ? this.getFlags() : Promise.resolve();
|
|
9287
9296
|
}, f.prototype.getState = function() {
|
|
@@ -9316,8 +9325,8 @@ var Vs = { exports: {} };
|
|
|
9316
9325
|
var i;
|
|
9317
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));
|
|
9318
9327
|
}, f.prototype.setupRealtime = function(u, i) {
|
|
9319
|
-
var g = this,
|
|
9320
|
-
me ? this.eventSource || (this.log("Creating event source with url " +
|
|
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) {
|
|
9321
9330
|
var M;
|
|
9322
9331
|
try {
|
|
9323
9332
|
M = JSON.parse(b.data).updated_at;
|
|
@@ -9336,7 +9345,7 @@ var Vs = { exports: {} };
|
|
|
9336
9345
|
return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, g) {
|
|
9337
9346
|
i.__proto__ = g;
|
|
9338
9347
|
} || function(i, g) {
|
|
9339
|
-
for (var
|
|
9348
|
+
for (var d in g) Object.prototype.hasOwnProperty.call(g, d) && (i[d] = g[d]);
|
|
9340
9349
|
}, p(f, u);
|
|
9341
9350
|
}, function(f, u) {
|
|
9342
9351
|
if (typeof u != "function" && u !== null) throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
|
|
@@ -9354,21 +9363,21 @@ var Vs = { exports: {} };
|
|
|
9354
9363
|
}, E = function(f, u) {
|
|
9355
9364
|
var i = typeof Symbol == "function" && f[Symbol.iterator];
|
|
9356
9365
|
if (!i) return f;
|
|
9357
|
-
var g,
|
|
9366
|
+
var g, d, b = i.call(f), M = [];
|
|
9358
9367
|
try {
|
|
9359
9368
|
for (; (u === void 0 || u-- > 0) && !(g = b.next()).done; ) M.push(g.value);
|
|
9360
9369
|
} catch (G) {
|
|
9361
|
-
|
|
9370
|
+
d = { error: G };
|
|
9362
9371
|
} finally {
|
|
9363
9372
|
try {
|
|
9364
9373
|
g && !g.done && (i = b.return) && i.call(b);
|
|
9365
9374
|
} finally {
|
|
9366
|
-
if (
|
|
9375
|
+
if (d) throw d.error;
|
|
9367
9376
|
}
|
|
9368
9377
|
}
|
|
9369
9378
|
return M;
|
|
9370
9379
|
}, Y = function(f, u, i) {
|
|
9371
|
-
if (arguments.length === 2) for (var g,
|
|
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]);
|
|
9372
9381
|
return f.concat(g || Array.prototype.slice.call(u));
|
|
9373
9382
|
}, q = function(f) {
|
|
9374
9383
|
function u() {
|
|
@@ -9380,15 +9389,15 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
9380
9389
|
function f(u, i) {
|
|
9381
9390
|
var g = this;
|
|
9382
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();
|
|
9383
|
-
this._onevent_wrapped = function(
|
|
9384
|
-
g._onevent(
|
|
9392
|
+
this._onevent_wrapped = function(d) {
|
|
9393
|
+
g._onevent(d);
|
|
9385
9394
|
}, this._start();
|
|
9386
9395
|
}
|
|
9387
9396
|
return f.prototype.dispatchEvent = function(u) {
|
|
9388
9397
|
throw new Error("Method not implemented.");
|
|
9389
9398
|
}, f.prototype._start = function() {
|
|
9390
|
-
var u, i, g = this,
|
|
9391
|
-
this._lastEventId && (
|
|
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) {
|
|
9392
9401
|
g._onopen(F);
|
|
9393
9402
|
}, this._eventSource.onerror = function(F) {
|
|
9394
9403
|
g._onerror(F);
|
|
@@ -9423,9 +9432,9 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
9423
9432
|
}, f.prototype._onevent = function(u) {
|
|
9424
9433
|
var i, g;
|
|
9425
9434
|
u && u.lastEventId && (this._lastEventId = u.lastEventId);
|
|
9426
|
-
var
|
|
9427
|
-
if (
|
|
9428
|
-
for (var b = D(Y([], E(
|
|
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())
|
|
9429
9438
|
M.value.call(this, u);
|
|
9430
9439
|
} catch (G) {
|
|
9431
9440
|
i = { error: G };
|
|
@@ -9444,11 +9453,11 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
9444
9453
|
this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
|
|
9445
9454
|
}, f.prototype.addEventListener = function(u, i, g) {
|
|
9446
9455
|
this._listeners[u] == null && (this._listeners[u] = [], this._eventSource != null && this._eventSource.addEventListener(u, this._onevent_wrapped));
|
|
9447
|
-
var
|
|
9448
|
-
|
|
9456
|
+
var d = this._listeners[u];
|
|
9457
|
+
d.includes(i) || (this._listeners[u] = Y(Y([], E(d), !1), [i], !1));
|
|
9449
9458
|
}, f.prototype.removeEventListener = function(u, i, g) {
|
|
9450
|
-
var
|
|
9451
|
-
this._listeners[u] =
|
|
9459
|
+
var d = this._listeners[u];
|
|
9460
|
+
this._listeners[u] = d.filter(function(b) {
|
|
9452
9461
|
return b !== i;
|
|
9453
9462
|
});
|
|
9454
9463
|
}, f;
|
|
@@ -9456,13 +9465,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
9456
9465
|
globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
|
|
9457
9466
|
var _ = function(f, u) {
|
|
9458
9467
|
return u = u || {}, new Promise(function(i, g) {
|
|
9459
|
-
var
|
|
9460
|
-
return { ok: (
|
|
9461
|
-
return Promise.resolve(
|
|
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);
|
|
9462
9471
|
}, json: function() {
|
|
9463
|
-
return Promise.resolve(
|
|
9472
|
+
return Promise.resolve(d.responseText).then(JSON.parse);
|
|
9464
9473
|
}, blob: function() {
|
|
9465
|
-
return Promise.resolve(new Blob([
|
|
9474
|
+
return Promise.resolve(new Blob([d.response]));
|
|
9466
9475
|
}, clone: F, headers: { keys: function() {
|
|
9467
9476
|
return b;
|
|
9468
9477
|
}, entries: function() {
|
|
@@ -9473,12 +9482,12 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
9473
9482
|
return j.toLowerCase() in G;
|
|
9474
9483
|
} } };
|
|
9475
9484
|
};
|
|
9476
|
-
for (var k in
|
|
9477
|
-
|
|
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) {
|
|
9478
9487
|
b.push(z = z.toLowerCase()), M.push([z, ce]), G[z] = G[z] ? G[z] + "," + ce : ce;
|
|
9479
9488
|
}), i(F());
|
|
9480
|
-
},
|
|
9481
|
-
|
|
9489
|
+
}, d.onerror = g, d.withCredentials = u.credentials == "include", u.headers) d.setRequestHeader(k, u.headers[k]);
|
|
9490
|
+
d.send(u.body || null);
|
|
9482
9491
|
});
|
|
9483
9492
|
}, se = m({ AsyncStorage: r, fetch: _, eventSource: R });
|
|
9484
9493
|
typeof window < "u" && (window.flagsmith = se), s.createFlagsmithInstance = function() {
|