@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.3-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-xOyDG5ug.js → ApprovalCodeList-D8ZVkmrF.js} +13 -14
- package/dist/{AuditLogList-Dd6HyFhk.js → AuditLogList-Fby1fcGU.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B1uS6T3r.js} +2 -2
- package/dist/{EmployeeList-BG2KPvOB.js → EmployeeList-DY2Y-FtT.js} +16 -17
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js +90 -0
- package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-RK38DjjY.js} +14 -15
- package/dist/{Main-Cg9SOzcz.js → Main-424HHE7m.js} +5 -5
- package/dist/{Main-BSHf8gTE.js → Main-BuJe2QNl.js} +12 -11
- package/dist/{Main-BcixH7R5.js → Main-Pv9x678t.js} +11 -11
- package/dist/{MyPosProfile-CN8Bj3aV.js → MyPosProfile-Rc2ZTeQR.js} +1 -1
- package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-BT1oUm8M.js} +20 -20
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRrhFF3y.js} +1008 -1008
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CD3d4RX6.js} +1 -1
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DS4eMJ6w.js +547 -0
- package/dist/RoleList-CrLxn4_K.js +274 -0
- package/dist/TeamMemberList-D32ZtSLP.js +2060 -0
- package/dist/{TimesheetList-CECFKt7H.js → TimesheetList-ByUp0yfA.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-9x0jnL2P.js} +3 -3
- package/dist/{app-CdrnR_Pw.js → app-BsAwRWj0.js} +208 -188
- package/dist/app.js +1 -1
- package/dist/{approval-code-Bwvwehz9.js → approval-code-BUuYtJAO.js} +1 -1
- package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-C9xnIrg1.js} +1 -1
- package/dist/{employee-Dg-J9goA.js → employee-DAwBQ0bc.js} +5 -5
- package/dist/{grant-user-whFOaPZI.js → grant-user-D-PdX5g-.js} +1 -1
- package/dist/{iteration-ZpERYj3o.js → iteration-Dat4Ismm.js} +1 -1
- package/dist/{lodash-7SZBZ8VQ.js → lodash-DjYVoggD.js} +1 -1
- package/dist/{member-grant-C46lvrh2.js → member-grant-CQHFGo-k.js} +2 -2
- package/dist/{restaurant-CKhT6kgj.js → restaurant-dbllb9m8.js} +1 -1
- package/dist/{role-C6hFKOfU.js → role-DN-jiQnS.js} +3 -3
- package/dist/{rule-BlMymDXm.js → rule-Bgcb9R7I.js} +19 -19
- package/dist/src/helpers/pos-assignment-rows.d.ts +2 -0
- package/dist/src/views/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +2 -6
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -2
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +0 -2
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CL6EEDuw.js → useAppStore-BABlZnfR.js} +1 -1
- package/dist/{useLoading-BBjBUzGJ.js → useLoading-B47q5dVg.js} +1 -1
- package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-D-nbQAm5.js} +5 -5
- package/package.json +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/RoleList-ALmAwN0U.js +0 -739
- package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var qo = Object.defineProperty;
|
|
2
2
|
var Ho = (e, t, n) => t in e ? qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var tn = (e, t, n) => Ho(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { isRef as No, ref as tt, shallowRef as Xo, watchEffect as jr, computed as Xe, h as gs, defineComponent as vt, createBlock as jn, renderSlot as Sr, createCommentVNode as Qo, unref as mt, openBlock as Ft, createElementBlock as Fr, createElementVNode as dt, toDisplayString as er, watch as Ys, nextTick as Uo, onMounted as Yr, onBeforeUnmount as Zo, normalizeStyle as zo, resolveComponent as
|
|
4
|
+
import { isRef as No, ref as tt, shallowRef as Xo, watchEffect as jr, computed as Xe, h as gs, defineComponent as vt, createBlock as jn, renderSlot as Sr, createCommentVNode as Qo, unref as mt, openBlock as Ft, createElementBlock as Fr, createElementVNode as dt, toDisplayString as er, watch as Ys, nextTick as Uo, onMounted as Yr, onBeforeUnmount as Zo, normalizeStyle as zo, resolveComponent as Gs, withCtx as Wo, createVNode as Lo, defineAsyncComponent as Ko, readonly as is } from "vue";
|
|
5
5
|
import { useBreakpoints as Jo } from "@feedmepos/ui-library";
|
|
6
|
-
import { useRoute as
|
|
7
|
-
import { useCoreStore as Yt, baseClientInstance as
|
|
6
|
+
import { useRoute as Gr, useRouter as Vs } from "vue-router";
|
|
7
|
+
import { useCoreStore as Yt, baseClientInstance as Vr, FeedMeAuth as _o, useI18n as Rr } from "@feedmepos/mf-common";
|
|
8
8
|
var i = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(i || {}), p = /* @__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))(p || {}), Ae = /* @__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))(Ae || {}), Ir = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(Ir || {});
|
|
9
9
|
const C = {
|
|
10
10
|
general: "General",
|
|
@@ -2046,7 +2046,7 @@ var Z;
|
|
|
2046
2046
|
})(Z || (Z = {}));
|
|
2047
2047
|
const ci = (e, t = {
|
|
2048
2048
|
message: `Input not instance of ${e.name}`
|
|
2049
|
-
}) => qr((n) => n instanceof e, t, !0), Hr = it.create, Nr = pt.create, ui = En.create, di = hn.create, Xr = bn.create, mi = xt.create, Ai = yn.create, gi = vn.create, pi = Ot.create, fi = ot.create, hi = lt.create, bi = wn.create, yi = ze.create, vi = le.create, wi = le.strictCreate, Bi = Wt.create, Mi = Sn.create, Ci = Lt.create, Di = We.create, Pi = Kt.create, Ei = Mn.create, xi = ft.create, Oi = ht.create, ji = Cn.create, Si = Dn.create, Fi = Fn.create, Yi = Pn.create,
|
|
2049
|
+
}) => qr((n) => n instanceof e, t, !0), Hr = it.create, Nr = pt.create, ui = En.create, di = hn.create, Xr = bn.create, mi = xt.create, Ai = yn.create, gi = vn.create, pi = Ot.create, fi = ot.create, hi = lt.create, bi = wn.create, yi = ze.create, vi = le.create, wi = le.strictCreate, Bi = Wt.create, Mi = Sn.create, Ci = Lt.create, Di = We.create, Pi = Kt.create, Ei = Mn.create, xi = ft.create, Oi = ht.create, ji = Cn.create, Si = Dn.create, Fi = Fn.create, Yi = Pn.create, Gi = jt.create, sr = Le.create, Vi = Ue.create, Ri = bt.create, Ii = Le.createWithPreprocess, Ti = () => Hr().optional(), ki = () => Nr().optional(), qi = () => Xr().optional();
|
|
2050
2050
|
var Ht = /* @__PURE__ */ Object.freeze({
|
|
2051
2051
|
__proto__: null,
|
|
2052
2052
|
getParsedType: at,
|
|
@@ -2129,10 +2129,10 @@ var Ht = /* @__PURE__ */ Object.freeze({
|
|
|
2129
2129
|
object: vi,
|
|
2130
2130
|
oboolean: qi,
|
|
2131
2131
|
onumber: ki,
|
|
2132
|
-
optional:
|
|
2132
|
+
optional: Vi,
|
|
2133
2133
|
ostring: Ti,
|
|
2134
2134
|
preprocess: Ii,
|
|
2135
|
-
promise:
|
|
2135
|
+
promise: Gi,
|
|
2136
2136
|
record: Pi,
|
|
2137
2137
|
set: xi,
|
|
2138
2138
|
strictObject: wi,
|
|
@@ -3623,14 +3623,14 @@ const Zr = {
|
|
|
3623
3623
|
name: "Name",
|
|
3624
3624
|
required: "This field is required",
|
|
3625
3625
|
all: "All",
|
|
3626
|
-
roleDetail: "Role
|
|
3626
|
+
roleDetail: "Role details",
|
|
3627
3627
|
atLeastOneRestaurant: "Must select at least one restaurant",
|
|
3628
|
-
permissions: "Permissions",
|
|
3628
|
+
permissions: "POS Permissions",
|
|
3629
3629
|
maxDiscountPercentage: "Max discount percentage",
|
|
3630
3630
|
onlyContainsNumber: "This field can only contains number",
|
|
3631
3631
|
maxValueIs: "Max value is {max}",
|
|
3632
3632
|
minValueIs: "Min value is {min}",
|
|
3633
|
-
restaurant: "
|
|
3633
|
+
restaurant: "Restaurants",
|
|
3634
3634
|
v8OnlyReportTag: "(POS v8 and above)",
|
|
3635
3635
|
permissionLabels: {
|
|
3636
3636
|
"order:discount": "Discount",
|
|
@@ -3675,7 +3675,12 @@ const Zr = {
|
|
|
3675
3675
|
"report:void_": "Void",
|
|
3676
3676
|
"report:timesheet": "Timesheet",
|
|
3677
3677
|
"report:counterPayment": "Counter Payment"
|
|
3678
|
-
}
|
|
3678
|
+
},
|
|
3679
|
+
addTitle: "Create POS role",
|
|
3680
|
+
permissionsSubtitle: "Manage permissions in POS like Operation, Report and other.",
|
|
3681
|
+
namePlaceholder: "e.g. General Manager",
|
|
3682
|
+
permissionAllowed: "1 permission allowed",
|
|
3683
|
+
permissionsAllowed: "{count} permissions allowed"
|
|
3679
3684
|
},
|
|
3680
3685
|
noData: {
|
|
3681
3686
|
title: "No role found",
|
|
@@ -3725,7 +3730,7 @@ const Zr = {
|
|
|
3725
3730
|
}
|
|
3726
3731
|
}, Yl = {
|
|
3727
3732
|
hr: ra
|
|
3728
|
-
},
|
|
3733
|
+
}, Gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3729
3734
|
__proto__: null,
|
|
3730
3735
|
default: Yl,
|
|
3731
3736
|
hr: ra
|
|
@@ -3836,7 +3841,7 @@ const Zr = {
|
|
|
3836
3841
|
all: "ทั้งหมด",
|
|
3837
3842
|
roleDetail: "รายละเอียดตำแหน่ง",
|
|
3838
3843
|
atLeastOneRestaurant: "เลือกร้านอาหารอย่างน้อยหนึ่งสาขา",
|
|
3839
|
-
permissions: "สิทธิ์",
|
|
3844
|
+
permissions: "สิทธิ์ POS",
|
|
3840
3845
|
maxDiscountPercentage: "เปอร์เซ็นต์ส่วนลดสูงสุด",
|
|
3841
3846
|
onlyContainsNumber: "โปรดระบุตัวเลข\r",
|
|
3842
3847
|
maxValueIs: "ค่าสูงสุดคือ {max}",
|
|
@@ -3886,7 +3891,12 @@ const Zr = {
|
|
|
3886
3891
|
"report:void_": "ยกเลิก",
|
|
3887
3892
|
"report:timesheet": "ใบบันทึกลงเวลาทำงาน",
|
|
3888
3893
|
"report:counterPayment": "การชำระเงินที่เคาน์เตอร์"
|
|
3889
|
-
}
|
|
3894
|
+
},
|
|
3895
|
+
addTitle: "สร้างตำแหน่ง POS",
|
|
3896
|
+
permissionsSubtitle: "จัดการสิทธิ์ใน POS เช่น การดำเนินงาน รายงาน และอื่นๆ",
|
|
3897
|
+
namePlaceholder: "เช่น ผู้จัดการทั่วไป",
|
|
3898
|
+
permissionAllowed: "อนุญาต 1 สิทธิ์",
|
|
3899
|
+
permissionsAllowed: "อนุญาต {count} สิทธิ์"
|
|
3890
3900
|
},
|
|
3891
3901
|
noData: {
|
|
3892
3902
|
title: "ไม่พบตำแหน่ง",
|
|
@@ -3933,11 +3943,11 @@ const Zr = {
|
|
|
3933
3943
|
placeholder: "ค้นหาร้านอาหาร"
|
|
3934
3944
|
}
|
|
3935
3945
|
}
|
|
3936
|
-
},
|
|
3946
|
+
}, Vl = {
|
|
3937
3947
|
hr: aa
|
|
3938
3948
|
}, Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3939
3949
|
__proto__: null,
|
|
3940
|
-
default:
|
|
3950
|
+
default: Vl,
|
|
3941
3951
|
hr: aa
|
|
3942
3952
|
}, Symbol.toStringTag, { value: "Module" })), oa = {
|
|
3943
3953
|
employee: {
|
|
@@ -4046,7 +4056,7 @@ const Zr = {
|
|
|
4046
4056
|
all: "全选",
|
|
4047
4057
|
roleDetail: "角色详情",
|
|
4048
4058
|
atLeastOneRestaurant: "必须选择至少一个餐厅",
|
|
4049
|
-
permissions: "权限",
|
|
4059
|
+
permissions: "POS 权限",
|
|
4050
4060
|
maxDiscountPercentage: "最大折扣百分比",
|
|
4051
4061
|
onlyContainsNumber: "此字段只能包含数字",
|
|
4052
4062
|
maxValueIs: "最大值是 {max}",
|
|
@@ -4096,7 +4106,12 @@ const Zr = {
|
|
|
4096
4106
|
"report:void_": "作废报告",
|
|
4097
4107
|
"report:timesheet": "工时报告",
|
|
4098
4108
|
"report:counterPayment": "收银台付款报告"
|
|
4099
|
-
}
|
|
4109
|
+
},
|
|
4110
|
+
addTitle: "创建 POS 角色",
|
|
4111
|
+
permissionsSubtitle: "管理 POS 中的权限,如操作、报表等。",
|
|
4112
|
+
namePlaceholder: "例如:总经理",
|
|
4113
|
+
permissionAllowed: "已允许 1 项权限",
|
|
4114
|
+
permissionsAllowed: "已允许 {count} 项权限"
|
|
4100
4115
|
},
|
|
4101
4116
|
noData: {
|
|
4102
4117
|
title: "没有找到角色",
|
|
@@ -4257,7 +4272,7 @@ const Zr = {
|
|
|
4257
4272
|
all: "全選",
|
|
4258
4273
|
roleDetail: "角色詳情",
|
|
4259
4274
|
atLeastOneRestaurant: "必須選擇至少一個餐廳",
|
|
4260
|
-
permissions: "權限",
|
|
4275
|
+
permissions: "POS 權限",
|
|
4261
4276
|
maxDiscountPercentage: "最大折扣百分比",
|
|
4262
4277
|
onlyContainsNumber: "此字段只能包含數字",
|
|
4263
4278
|
maxValueIs: "最大值是 {max}",
|
|
@@ -4307,7 +4322,12 @@ const Zr = {
|
|
|
4307
4322
|
"report:void_": "作廢報告",
|
|
4308
4323
|
"report:timesheet": "工時報告",
|
|
4309
4324
|
"report:counterPayment": "收銀台付款報告"
|
|
4310
|
-
}
|
|
4325
|
+
},
|
|
4326
|
+
addTitle: "創建 POS 角色",
|
|
4327
|
+
permissionsSubtitle: "管理 POS 中的權限,如操作、報表等。",
|
|
4328
|
+
namePlaceholder: "例如:總經理",
|
|
4329
|
+
permissionAllowed: "已允許 1 項權限",
|
|
4330
|
+
permissionsAllowed: "已允許 {count} 項權限"
|
|
4311
4331
|
},
|
|
4312
4332
|
noData: {
|
|
4313
4333
|
title: "沒有找到角色",
|
|
@@ -4357,7 +4377,7 @@ const Zr = {
|
|
|
4357
4377
|
default: kl,
|
|
4358
4378
|
hr: ia
|
|
4359
4379
|
}, Symbol.toStringTag, { value: "Module" })), Hl = {
|
|
4360
|
-
"en-US":
|
|
4380
|
+
"en-US": Gl,
|
|
4361
4381
|
"zh-CN": Tl,
|
|
4362
4382
|
"th-TH": Rl,
|
|
4363
4383
|
"zh-Hant": ql
|
|
@@ -8041,7 +8061,7 @@ const oe = [
|
|
|
8041
8061
|
i.delete
|
|
8042
8062
|
]
|
|
8043
8063
|
}
|
|
8044
|
-
],
|
|
8064
|
+
], Gc = [
|
|
8045
8065
|
...oe,
|
|
8046
8066
|
{
|
|
8047
8067
|
label: "Segmentation",
|
|
@@ -8077,7 +8097,7 @@ const oe = [
|
|
|
8077
8097
|
i.delete
|
|
8078
8098
|
]
|
|
8079
8099
|
}
|
|
8080
|
-
],
|
|
8100
|
+
], Vc = [
|
|
8081
8101
|
...oe,
|
|
8082
8102
|
{
|
|
8083
8103
|
label: "Location",
|
|
@@ -8132,7 +8152,7 @@ const oe = [
|
|
|
8132
8152
|
i.delete
|
|
8133
8153
|
]
|
|
8134
8154
|
}
|
|
8135
|
-
],
|
|
8155
|
+
], Ga = [
|
|
8136
8156
|
...oe,
|
|
8137
8157
|
{
|
|
8138
8158
|
label: "Referral",
|
|
@@ -8144,7 +8164,7 @@ const oe = [
|
|
|
8144
8164
|
i.delete
|
|
8145
8165
|
]
|
|
8146
8166
|
}
|
|
8147
|
-
],
|
|
8167
|
+
], Va = [
|
|
8148
8168
|
...oe,
|
|
8149
8169
|
{
|
|
8150
8170
|
label: "Marketing Material",
|
|
@@ -8328,7 +8348,7 @@ const oe = [
|
|
|
8328
8348
|
Zc
|
|
8329
8349
|
), zc = Pe(
|
|
8330
8350
|
Ye,
|
|
8331
|
-
|
|
8351
|
+
Ga
|
|
8332
8352
|
), La = Pe(
|
|
8333
8353
|
Ye,
|
|
8334
8354
|
Ic
|
|
@@ -8358,10 +8378,10 @@ const oe = [
|
|
|
8358
8378
|
}
|
|
8359
8379
|
], Kc = Pe(
|
|
8360
8380
|
Yc,
|
|
8361
|
-
|
|
8381
|
+
Gc,
|
|
8362
8382
|
Fa,
|
|
8363
8383
|
Ya,
|
|
8364
|
-
|
|
8384
|
+
Vc,
|
|
8365
8385
|
Rc,
|
|
8366
8386
|
La,
|
|
8367
8387
|
Tc,
|
|
@@ -8380,8 +8400,8 @@ const oe = [
|
|
|
8380
8400
|
qa
|
|
8381
8401
|
), Jc = Pe(
|
|
8382
8402
|
Ye,
|
|
8383
|
-
|
|
8384
|
-
|
|
8403
|
+
Ga,
|
|
8404
|
+
Va
|
|
8385
8405
|
), _c = Pe(
|
|
8386
8406
|
Ye,
|
|
8387
8407
|
Wc
|
|
@@ -8494,7 +8514,7 @@ const oe = [
|
|
|
8494
8514
|
[`set_${p.crm_marketingMaterial}`]: {
|
|
8495
8515
|
key: "sys:crm:marketingMaterial",
|
|
8496
8516
|
name: "CRM Marketing Material",
|
|
8497
|
-
permissions:
|
|
8517
|
+
permissions: Va
|
|
8498
8518
|
}
|
|
8499
8519
|
};
|
|
8500
8520
|
var k = /* @__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))(k || {});
|
|
@@ -9225,7 +9245,7 @@ var oo = { exports: {} };
|
|
|
9225
9245
|
return !!y && h === y.length;
|
|
9226
9246
|
},
|
|
9227
9247
|
$or: function(h, y, D, E) {
|
|
9228
|
-
for (var Y = 0,
|
|
9248
|
+
for (var Y = 0, G = h.length; Y < G; Y++)
|
|
9229
9249
|
if (T(u(h, Y), y, D, E)) return !0;
|
|
9230
9250
|
return !1;
|
|
9231
9251
|
},
|
|
@@ -9233,7 +9253,7 @@ var oo = { exports: {} };
|
|
|
9233
9253
|
return !M.$or(h, y, D, E);
|
|
9234
9254
|
},
|
|
9235
9255
|
$and: function(h, y, D, E) {
|
|
9236
|
-
for (var Y = 0,
|
|
9256
|
+
for (var Y = 0, G = h.length; Y < G; Y++)
|
|
9237
9257
|
if (!T(u(h, Y), y, D, E)) return !1;
|
|
9238
9258
|
return !0;
|
|
9239
9259
|
},
|
|
@@ -9244,9 +9264,9 @@ var oo = { exports: {} };
|
|
|
9244
9264
|
return h.call(y, y, D, E);
|
|
9245
9265
|
},
|
|
9246
9266
|
$elemMatch: function(h, y, D, E) {
|
|
9247
|
-
return l(y) ? !!~function(Y,
|
|
9267
|
+
return l(y) ? !!~function(Y, G) {
|
|
9248
9268
|
for (var H = 0; H < Y.length; H++)
|
|
9249
|
-
if (u(Y, H), T(
|
|
9269
|
+
if (u(Y, H), T(G, u(Y, H))) return H;
|
|
9250
9270
|
return -1;
|
|
9251
9271
|
}(y, h) : T(h, y, D, E);
|
|
9252
9272
|
},
|
|
@@ -9256,61 +9276,61 @@ var oo = { exports: {} };
|
|
|
9256
9276
|
}, F = {
|
|
9257
9277
|
$eq: function(h, y, D) {
|
|
9258
9278
|
var E = D.comparable, Y = D.compare;
|
|
9259
|
-
return h instanceof RegExp ? v(function(
|
|
9260
|
-
return typeof
|
|
9261
|
-
}) : h instanceof Function ? v(h) : l(h) && !h.length ? v(function(
|
|
9262
|
-
return l(
|
|
9279
|
+
return h instanceof RegExp ? v(function(G) {
|
|
9280
|
+
return typeof G == "string" && h.test(G);
|
|
9281
|
+
}) : h instanceof Function ? v(h) : l(h) && !h.length ? v(function(G) {
|
|
9282
|
+
return l(G) && !G.length;
|
|
9263
9283
|
}) : v(
|
|
9264
|
-
h === null ? function(
|
|
9265
|
-
return
|
|
9266
|
-
} : function(
|
|
9267
|
-
return Y(E(
|
|
9284
|
+
h === null ? function(G) {
|
|
9285
|
+
return G == null;
|
|
9286
|
+
} : function(G) {
|
|
9287
|
+
return Y(E(G), E(h)) === 0;
|
|
9268
9288
|
}
|
|
9269
9289
|
);
|
|
9270
9290
|
},
|
|
9271
9291
|
$gt: function(h, y, D) {
|
|
9272
9292
|
var E = D.comparable, Y = D.compare;
|
|
9273
|
-
return function(
|
|
9274
|
-
return Y(E(
|
|
9293
|
+
return function(G) {
|
|
9294
|
+
return Y(E(G), E(h)) > 0;
|
|
9275
9295
|
};
|
|
9276
9296
|
},
|
|
9277
9297
|
$gte: function(h, y, D) {
|
|
9278
9298
|
var E = D.comparable, Y = D.compare;
|
|
9279
|
-
return function(
|
|
9280
|
-
return Y(E(
|
|
9299
|
+
return function(G) {
|
|
9300
|
+
return Y(E(G), E(h)) >= 0;
|
|
9281
9301
|
};
|
|
9282
9302
|
},
|
|
9283
9303
|
$lt: function(h, y, D) {
|
|
9284
9304
|
var E = D.comparable, Y = D.compare;
|
|
9285
|
-
return function(
|
|
9286
|
-
return Y(E(
|
|
9305
|
+
return function(G) {
|
|
9306
|
+
return Y(E(G), E(h)) < 0;
|
|
9287
9307
|
};
|
|
9288
9308
|
},
|
|
9289
9309
|
$lte: function(h, y, D) {
|
|
9290
9310
|
var E = D.comparable, Y = D.compare;
|
|
9291
|
-
return function(
|
|
9292
|
-
return Y(E(
|
|
9311
|
+
return function(G) {
|
|
9312
|
+
return Y(E(G), E(h)) <= 0;
|
|
9293
9313
|
};
|
|
9294
9314
|
},
|
|
9295
9315
|
$in: function(h, y, D) {
|
|
9296
9316
|
var E = D.comparable;
|
|
9297
9317
|
return function(Y) {
|
|
9298
9318
|
if (!(Y instanceof Array)) {
|
|
9299
|
-
var
|
|
9300
|
-
if (
|
|
9319
|
+
var G = E(Y);
|
|
9320
|
+
if (G === Y && a(Y) === "object") {
|
|
9301
9321
|
for (q = h.length; q--; )
|
|
9302
9322
|
if (String(h[q]) === String(Y) && String(Y) !== "[object Object]")
|
|
9303
9323
|
return !0;
|
|
9304
9324
|
}
|
|
9305
|
-
if (
|
|
9325
|
+
if (G === void 0) {
|
|
9306
9326
|
for (q = h.length; q--; ) if (h[q] == null) return !0;
|
|
9307
9327
|
}
|
|
9308
9328
|
for (q = h.length; q--; ) {
|
|
9309
|
-
var H = T(ge(u(h, q), D),
|
|
9310
|
-
if (H && String(H) !== "[object Object]" && String(
|
|
9329
|
+
var H = T(ge(u(h, q), D), G, q, h);
|
|
9330
|
+
if (H && String(H) !== "[object Object]" && String(G) !== "[object Object]")
|
|
9311
9331
|
return !0;
|
|
9312
9332
|
}
|
|
9313
|
-
return !!~h.indexOf(
|
|
9333
|
+
return !!~h.indexOf(G);
|
|
9314
9334
|
}
|
|
9315
9335
|
for (var q = Y.length; q--; )
|
|
9316
9336
|
if (~h.indexOf(E(u(Y, q)))) return !0;
|
|
@@ -9319,8 +9339,8 @@ var oo = { exports: {} };
|
|
|
9319
9339
|
},
|
|
9320
9340
|
$nin: function(h, y, D) {
|
|
9321
9341
|
var E = F.$in(h, y, D);
|
|
9322
|
-
return function(Y,
|
|
9323
|
-
return !E(Y,
|
|
9342
|
+
return function(Y, G, H, q) {
|
|
9343
|
+
return !E(Y, G, H, q);
|
|
9324
9344
|
};
|
|
9325
9345
|
},
|
|
9326
9346
|
$mod: function(h) {
|
|
@@ -9330,8 +9350,8 @@ var oo = { exports: {} };
|
|
|
9330
9350
|
},
|
|
9331
9351
|
$ne: function(h, y, D) {
|
|
9332
9352
|
var E = F.$eq(h, y, D);
|
|
9333
|
-
return j(function(Y,
|
|
9334
|
-
return !E(Y,
|
|
9353
|
+
return j(function(Y, G, H, q) {
|
|
9354
|
+
return !E(Y, G, H, q);
|
|
9335
9355
|
});
|
|
9336
9356
|
},
|
|
9337
9357
|
$and: function(h, y, D) {
|
|
@@ -9348,8 +9368,8 @@ var oo = { exports: {} };
|
|
|
9348
9368
|
},
|
|
9349
9369
|
$not: function(h, y, D) {
|
|
9350
9370
|
var E = $(D)(h);
|
|
9351
|
-
return function(Y,
|
|
9352
|
-
return !T(E, Y,
|
|
9371
|
+
return function(Y, G, H) {
|
|
9372
|
+
return !T(E, Y, G, H);
|
|
9353
9373
|
};
|
|
9354
9374
|
},
|
|
9355
9375
|
$type: function(h) {
|
|
@@ -9377,20 +9397,20 @@ var oo = { exports: {} };
|
|
|
9377
9397
|
return { options: h, validate: y };
|
|
9378
9398
|
}
|
|
9379
9399
|
function W(h, y) {
|
|
9380
|
-
var D = h.keyPath, E = h.child, Y = h.query,
|
|
9400
|
+
var D = h.keyPath, E = h.child, Y = h.query, G = [];
|
|
9381
9401
|
if (function c(f, g, B, P, I) {
|
|
9382
9402
|
if (B === g.length || f == null)
|
|
9383
9403
|
return void I.push([f, g[B - 1], P]);
|
|
9384
9404
|
var N = u(g, B);
|
|
9385
9405
|
if (l(f) && isNaN(Number(N)))
|
|
9386
|
-
for (var J = 0,
|
|
9406
|
+
for (var J = 0, V = f.length; J < V; J++) c(u(f, J), g, B, f, I);
|
|
9387
9407
|
else c(u(f, N), g, B + 1, f, I);
|
|
9388
|
-
}(y, D, 0, y,
|
|
9389
|
-
var H =
|
|
9408
|
+
}(y, D, 0, y, G), G.length === 1) {
|
|
9409
|
+
var H = G[0];
|
|
9390
9410
|
return T(E, H[0], H[1], H[2]);
|
|
9391
9411
|
}
|
|
9392
|
-
for (var q = Y && Y.$ne !== void 0, ce = q, re = 0; re <
|
|
9393
|
-
var w =
|
|
9412
|
+
for (var q = Y && Y.$ne !== void 0, ce = q, re = 0; re < G.length; re++) {
|
|
9413
|
+
var w = G[re], m = T(E, w[0], w[1], w[2]);
|
|
9394
9414
|
q ? ce &= m : ce |= m;
|
|
9395
9415
|
}
|
|
9396
9416
|
return ce;
|
|
@@ -9414,12 +9434,12 @@ var oo = { exports: {} };
|
|
|
9414
9434
|
if (ce.charCodeAt(0) === 36)
|
|
9415
9435
|
throw new Error("Unknown operation " + ce);
|
|
9416
9436
|
var m = ce.split(".");
|
|
9417
|
-
q.push(fe(m,
|
|
9437
|
+
q.push(fe(m, G(re), re));
|
|
9418
9438
|
}
|
|
9419
9439
|
}
|
|
9420
9440
|
}
|
|
9421
9441
|
return q.length === 1 ? q[0] : x(q, M.$and);
|
|
9422
|
-
},
|
|
9442
|
+
}, G = function(H) {
|
|
9423
9443
|
return H = E(H), function q(ce, re) {
|
|
9424
9444
|
if (!A(ce)) return re;
|
|
9425
9445
|
for (var w in ce) re.push(w), q(ce[w], re);
|
|
@@ -9450,15 +9470,15 @@ var oo = { exports: {} };
|
|
|
9450
9470
|
var D = $(y)(h);
|
|
9451
9471
|
return y && y.select && (D = {
|
|
9452
9472
|
options: D,
|
|
9453
|
-
validate: function(E, Y,
|
|
9454
|
-
return T(E, Y && y.select(Y),
|
|
9473
|
+
validate: function(E, Y, G, H) {
|
|
9474
|
+
return T(E, Y && y.select(Y), G, H);
|
|
9455
9475
|
}
|
|
9456
9476
|
}), D;
|
|
9457
9477
|
}
|
|
9458
9478
|
function xe(h, y) {
|
|
9459
9479
|
var D = ge(h, y = Object.assign({ compare: me, comparable: Ke }, y));
|
|
9460
|
-
return function(E, Y,
|
|
9461
|
-
return T(D, E, Y,
|
|
9480
|
+
return function(E, Y, G) {
|
|
9481
|
+
return T(D, E, Y, G);
|
|
9462
9482
|
};
|
|
9463
9483
|
}
|
|
9464
9484
|
function me(h, y) {
|
|
@@ -9612,7 +9632,7 @@ function Yu(e) {
|
|
|
9612
9632
|
}), n = t.length > 1 ? "(?:" + t.join("|") + ")" : t[0];
|
|
9613
9633
|
return new RegExp("^" + n + "$");
|
|
9614
9634
|
}
|
|
9615
|
-
var
|
|
9635
|
+
var Gu = /* @__PURE__ */ function() {
|
|
9616
9636
|
function e(n) {
|
|
9617
9637
|
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : Ms(n.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
9618
9638
|
writable: !0
|
|
@@ -9635,7 +9655,7 @@ var Vu = /* @__PURE__ */ function() {
|
|
|
9635
9655
|
function dr(e, t) {
|
|
9636
9656
|
return e === t || Array.isArray(t) && t.indexOf(e) !== -1;
|
|
9637
9657
|
}
|
|
9638
|
-
var
|
|
9658
|
+
var Vu = /* @__PURE__ */ function() {
|
|
9639
9659
|
e.addAlias = function(s, r) {
|
|
9640
9660
|
if (s === "manage" || dr("manage", r))
|
|
9641
9661
|
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
@@ -9647,7 +9667,7 @@ var Gu = /* @__PURE__ */ function() {
|
|
|
9647
9667
|
s === void 0 && (s = {}), Object.defineProperty(this, "subjectName", {
|
|
9648
9668
|
value: s.subjectName || Du
|
|
9649
9669
|
}), this[Ee] = {
|
|
9650
|
-
RuleType: s.RuleType ||
|
|
9670
|
+
RuleType: s.RuleType || Gu,
|
|
9651
9671
|
originalRules: n || [],
|
|
9652
9672
|
hasPerFieldRules: !1,
|
|
9653
9673
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
@@ -9758,7 +9778,7 @@ function Iu(e) {
|
|
|
9758
9778
|
}));
|
|
9759
9779
|
}
|
|
9760
9780
|
function lo(e) {
|
|
9761
|
-
return new
|
|
9781
|
+
return new Vu(Iu(e));
|
|
9762
9782
|
}
|
|
9763
9783
|
function Tu(e, t) {
|
|
9764
9784
|
return e.rulesFor(t.action, t.subject, t.field).some((n) => !n.inverted);
|
|
@@ -9813,10 +9833,10 @@ function mo(e, t) {
|
|
|
9813
9833
|
};
|
|
9814
9834
|
}
|
|
9815
9835
|
var mr = {};
|
|
9816
|
-
const { toString: qu } = Object.prototype, { getPrototypeOf: Hs } = Object, { iterator: Yn, toStringTag: Ao } = Symbol,
|
|
9836
|
+
const { toString: qu } = Object.prototype, { getPrototypeOf: Hs } = Object, { iterator: Yn, toStringTag: Ao } = Symbol, Gn = /* @__PURE__ */ ((e) => (t) => {
|
|
9817
9837
|
const n = qu.call(t);
|
|
9818
9838
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9819
|
-
})(/* @__PURE__ */ Object.create(null)), Ie = (e) => (e = e.toLowerCase(), (t) =>
|
|
9839
|
+
})(/* @__PURE__ */ Object.create(null)), Ie = (e) => (e = e.toLowerCase(), (t) => Gn(t) === e), Vn = (e) => (t) => typeof t === e, { isArray: Gt } = Array, St = Vn("undefined");
|
|
9820
9840
|
function Jt(e) {
|
|
9821
9841
|
return e !== null && !St(e) && e.constructor !== null && !St(e.constructor) && Ce(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
9822
9842
|
}
|
|
@@ -9825,8 +9845,8 @@ function Hu(e) {
|
|
|
9825
9845
|
let t;
|
|
9826
9846
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && go(e.buffer), t;
|
|
9827
9847
|
}
|
|
9828
|
-
const Nu =
|
|
9829
|
-
if (
|
|
9848
|
+
const Nu = Vn("string"), Ce = Vn("function"), po = Vn("number"), _t = (e) => e !== null && typeof e == "object", Xu = (e) => e === !0 || e === !1, un = (e) => {
|
|
9849
|
+
if (Gn(e) !== "object")
|
|
9830
9850
|
return !1;
|
|
9831
9851
|
const t = Hs(e);
|
|
9832
9852
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ao in e) && !(Yn in e);
|
|
@@ -9840,14 +9860,14 @@ const Nu = Gn("string"), Ce = Gn("function"), po = Gn("number"), _t = (e) => e !
|
|
|
9840
9860
|
}
|
|
9841
9861
|
}, Uu = Ie("Date"), Zu = Ie("File"), zu = Ie("Blob"), Wu = Ie("FileList"), Lu = (e) => _t(e) && Ce(e.pipe), Ku = (e) => {
|
|
9842
9862
|
let t;
|
|
9843
|
-
return e && (typeof FormData == "function" && e instanceof FormData || Ce(e.append) && ((t =
|
|
9863
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Ce(e.append) && ((t = Gn(e)) === "formdata" || // detect form-data instance
|
|
9844
9864
|
t === "object" && Ce(e.toString) && e.toString() === "[object FormData]"));
|
|
9845
9865
|
}, Ju = Ie("URLSearchParams"), [_u, $u, ed, td] = ["ReadableStream", "Request", "Response", "Headers"].map(Ie), nd = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
9846
9866
|
function $t(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
9847
9867
|
if (e === null || typeof e > "u")
|
|
9848
9868
|
return;
|
|
9849
9869
|
let s, r;
|
|
9850
|
-
if (typeof e != "object" && (e = [e]),
|
|
9870
|
+
if (typeof e != "object" && (e = [e]), Gt(e))
|
|
9851
9871
|
for (s = 0, r = e.length; s < r; s++)
|
|
9852
9872
|
t.call(null, e[s], s, e);
|
|
9853
9873
|
else {
|
|
@@ -9874,7 +9894,7 @@ const At = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
9874
9894
|
function Ds() {
|
|
9875
9895
|
const { caseless: e, skipUndefined: t } = ho(this) && this || {}, n = {}, s = (r, a) => {
|
|
9876
9896
|
const o = e && fo(n, a) || a;
|
|
9877
|
-
un(n[o]) && un(r) ? n[o] = Ds(n[o], r) : un(r) ? n[o] = Ds({}, r) :
|
|
9897
|
+
un(n[o]) && un(r) ? n[o] = Ds(n[o], r) : un(r) ? n[o] = Ds({}, r) : Gt(r) ? n[o] = r.slice() : (!t || !St(r)) && (n[o] = r);
|
|
9878
9898
|
};
|
|
9879
9899
|
for (let r = 0, a = arguments.length; r < a; r++)
|
|
9880
9900
|
arguments[r] && $t(arguments[r], s);
|
|
@@ -9902,7 +9922,7 @@ const sd = (e, t, n, { allOwnKeys: s } = {}) => ($t(t, (r, a) => {
|
|
|
9902
9922
|
return s !== -1 && s === n;
|
|
9903
9923
|
}, ld = (e) => {
|
|
9904
9924
|
if (!e) return null;
|
|
9905
|
-
if (
|
|
9925
|
+
if (Gt(e)) return e;
|
|
9906
9926
|
let t = e.length;
|
|
9907
9927
|
if (!po(t)) return null;
|
|
9908
9928
|
const n = new Array(t);
|
|
@@ -9954,7 +9974,7 @@ const sd = (e, t, n, { allOwnKeys: s } = {}) => ($t(t, (r, a) => {
|
|
|
9954
9974
|
n[a] = !0;
|
|
9955
9975
|
});
|
|
9956
9976
|
};
|
|
9957
|
-
return
|
|
9977
|
+
return Gt(e) ? s(e) : s(String(e).split(t)), n;
|
|
9958
9978
|
}, hd = () => {
|
|
9959
9979
|
}, bd = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
9960
9980
|
function yd(e) {
|
|
@@ -9969,7 +9989,7 @@ const vd = (e) => {
|
|
|
9969
9989
|
return s;
|
|
9970
9990
|
if (!("toJSON" in s)) {
|
|
9971
9991
|
t[r] = s;
|
|
9972
|
-
const a =
|
|
9992
|
+
const a = Gt(s) ? [] : {};
|
|
9973
9993
|
return $t(s, (o, l) => {
|
|
9974
9994
|
const A = n(o, r + 1);
|
|
9975
9995
|
!St(A) && (a[l] = A);
|
|
@@ -9987,7 +10007,7 @@ const vd = (e) => {
|
|
|
9987
10007
|
typeof setImmediate == "function",
|
|
9988
10008
|
Ce(At.postMessage)
|
|
9989
10009
|
), Md = typeof queueMicrotask < "u" ? queueMicrotask.bind(At) : typeof mr < "u" && mr.nextTick || yo, Cd = (e) => e != null && Ce(e[Yn]), b = {
|
|
9990
|
-
isArray:
|
|
10010
|
+
isArray: Gt,
|
|
9991
10011
|
isArrayBuffer: go,
|
|
9992
10012
|
isBuffer: Jt,
|
|
9993
10013
|
isFormData: Ku,
|
|
@@ -10019,7 +10039,7 @@ const vd = (e) => {
|
|
|
10019
10039
|
stripBOM: rd,
|
|
10020
10040
|
inherits: ad,
|
|
10021
10041
|
toFlatObject: od,
|
|
10022
|
-
kindOf:
|
|
10042
|
+
kindOf: Gn,
|
|
10023
10043
|
kindOfTest: Ie,
|
|
10024
10044
|
endsWith: id,
|
|
10025
10045
|
toArray: ld,
|
|
@@ -10292,14 +10312,14 @@ const Do = {
|
|
|
10292
10312
|
Blob: Sd
|
|
10293
10313
|
},
|
|
10294
10314
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
10295
|
-
}, Xs = typeof window < "u" && typeof document < "u", Es = typeof navigator == "object" && navigator || void 0, Yd = Xs && (!Es || ["ReactNative", "NativeScript", "NS"].indexOf(Es.product) < 0),
|
|
10296
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
10315
|
+
}, Xs = typeof window < "u" && typeof document < "u", Es = typeof navigator == "object" && navigator || void 0, Yd = Xs && (!Es || ["ReactNative", "NativeScript", "NS"].indexOf(Es.product) < 0), Gd = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
10316
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Vd = Xs && window.location.href || "http://localhost", Rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10297
10317
|
__proto__: null,
|
|
10298
10318
|
hasBrowserEnv: Xs,
|
|
10299
10319
|
hasStandardBrowserEnv: Yd,
|
|
10300
|
-
hasStandardBrowserWebWorkerEnv:
|
|
10320
|
+
hasStandardBrowserWebWorkerEnv: Gd,
|
|
10301
10321
|
navigator: Es,
|
|
10302
|
-
origin:
|
|
10322
|
+
origin: Vd
|
|
10303
10323
|
}, Symbol.toStringTag, { value: "Module" })), he = {
|
|
10304
10324
|
...Rd,
|
|
10305
10325
|
...Fd
|
|
@@ -10629,10 +10649,10 @@ function cs(e, t) {
|
|
|
10629
10649
|
function Eo(e) {
|
|
10630
10650
|
return !!(e && e.__CANCEL__);
|
|
10631
10651
|
}
|
|
10632
|
-
function
|
|
10652
|
+
function Vt(e, t, n) {
|
|
10633
10653
|
U.call(this, e ?? "canceled", U.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
10634
10654
|
}
|
|
10635
|
-
b.inherits(
|
|
10655
|
+
b.inherits(Vt, U, {
|
|
10636
10656
|
__CANCEL__: !0
|
|
10637
10657
|
});
|
|
10638
10658
|
function xo(e, t, n) {
|
|
@@ -10880,7 +10900,7 @@ const jo = (e) => {
|
|
|
10880
10900
|
}, a === void 0 && o.setContentType(null), "setRequestHeader" in x && b.forEach(o.toJSON(), function(ue, ge) {
|
|
10881
10901
|
x.setRequestHeader(ge, ue);
|
|
10882
10902
|
}), b.isUndefined(r.withCredentials) || (x.withCredentials = !!r.withCredentials), l && l !== "json" && (x.responseType = r.responseType), d && ([j, M] = On(d, !0), x.addEventListener("progress", j)), A && x.upload && ([v, T] = On(A), x.upload.addEventListener("progress", v), x.upload.addEventListener("loadend", T)), (r.cancelToken || r.signal) && (u = ($) => {
|
|
10883
|
-
x && (s(!$ || $.type ? new
|
|
10903
|
+
x && (s(!$ || $.type ? new Vt(null, e, x) : $), x.abort(), x = null);
|
|
10884
10904
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
10885
10905
|
const fe = zd(r.url);
|
|
10886
10906
|
if (fe && he.protocols.indexOf(fe) === -1) {
|
|
@@ -10897,7 +10917,7 @@ const jo = (e) => {
|
|
|
10897
10917
|
if (!r) {
|
|
10898
10918
|
r = !0, l();
|
|
10899
10919
|
const u = d instanceof Error ? d : this.reason;
|
|
10900
|
-
s.abort(u instanceof U ? u : new
|
|
10920
|
+
s.abort(u instanceof U ? u : new Vt(u instanceof Error ? u.message : u));
|
|
10901
10921
|
}
|
|
10902
10922
|
};
|
|
10903
10923
|
let o = t && setTimeout(() => {
|
|
@@ -11044,7 +11064,7 @@ const jo = (e) => {
|
|
|
11044
11064
|
} = jo(M), D = t || fetch;
|
|
11045
11065
|
me = me ? (me + "").toLowerCase() : "text";
|
|
11046
11066
|
let E = nm([fe, $ && $.toAbortSignal()], ue), Y = null;
|
|
11047
|
-
const
|
|
11067
|
+
const G = E && E.unsubscribe && (() => {
|
|
11048
11068
|
E.unsubscribe();
|
|
11049
11069
|
});
|
|
11050
11070
|
let H;
|
|
@@ -11076,7 +11096,7 @@ const jo = (e) => {
|
|
|
11076
11096
|
Y = a && new n(F, ce);
|
|
11077
11097
|
let re = await (a ? D(Y, y) : D(F, ce));
|
|
11078
11098
|
const w = u && (me === "stream" || me === "response");
|
|
11079
|
-
if (u && (ge || w &&
|
|
11099
|
+
if (u && (ge || w && G)) {
|
|
11080
11100
|
const c = {};
|
|
11081
11101
|
["status", "statusText", "headers"].forEach((P) => {
|
|
11082
11102
|
c[P] = re[P];
|
|
@@ -11087,14 +11107,14 @@ const jo = (e) => {
|
|
|
11087
11107
|
) || [];
|
|
11088
11108
|
re = new s(
|
|
11089
11109
|
wr(re.body, Br, g, () => {
|
|
11090
|
-
B && B(),
|
|
11110
|
+
B && B(), G && G();
|
|
11091
11111
|
}),
|
|
11092
11112
|
c
|
|
11093
11113
|
);
|
|
11094
11114
|
}
|
|
11095
11115
|
me = me || "text";
|
|
11096
11116
|
let m = await v[b.findKey(v, me) || "text"](re, M);
|
|
11097
|
-
return !w &&
|
|
11117
|
+
return !w && G && G(), await new Promise((c, f) => {
|
|
11098
11118
|
xo(c, f, {
|
|
11099
11119
|
data: m,
|
|
11100
11120
|
headers: De.from(re.headers),
|
|
@@ -11105,7 +11125,7 @@ const jo = (e) => {
|
|
|
11105
11125
|
});
|
|
11106
11126
|
});
|
|
11107
11127
|
} catch (q) {
|
|
11108
|
-
throw
|
|
11128
|
+
throw G && G(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(
|
|
11109
11129
|
new U("Network Error", U.ERR_NETWORK, M, Y),
|
|
11110
11130
|
{
|
|
11111
11131
|
cause: q.cause || q
|
|
@@ -11185,7 +11205,7 @@ const Fo = {
|
|
|
11185
11205
|
};
|
|
11186
11206
|
function us(e) {
|
|
11187
11207
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
11188
|
-
throw new
|
|
11208
|
+
throw new Vt(null, e);
|
|
11189
11209
|
}
|
|
11190
11210
|
function Er(e) {
|
|
11191
11211
|
return us(e), e.headers = De.from(e.headers), e.data = cs.call(
|
|
@@ -11378,7 +11398,7 @@ b.forEach(["post", "put", "patch"], function(t) {
|
|
|
11378
11398
|
}
|
|
11379
11399
|
gt.prototype[t] = n(), gt.prototype[t + "Form"] = n(!0);
|
|
11380
11400
|
});
|
|
11381
|
-
let mm = class
|
|
11401
|
+
let mm = class Go {
|
|
11382
11402
|
constructor(t) {
|
|
11383
11403
|
if (typeof t != "function")
|
|
11384
11404
|
throw new TypeError("executor must be a function.");
|
|
@@ -11402,7 +11422,7 @@ let mm = class Vo {
|
|
|
11402
11422
|
s.unsubscribe(a);
|
|
11403
11423
|
}, o;
|
|
11404
11424
|
}, t(function(a, o, l) {
|
|
11405
|
-
s.reason || (s.reason = new
|
|
11425
|
+
s.reason || (s.reason = new Vt(a, o, l), n(s.reason));
|
|
11406
11426
|
});
|
|
11407
11427
|
}
|
|
11408
11428
|
/**
|
|
@@ -11444,7 +11464,7 @@ let mm = class Vo {
|
|
|
11444
11464
|
static source() {
|
|
11445
11465
|
let t;
|
|
11446
11466
|
return {
|
|
11447
|
-
token: new
|
|
11467
|
+
token: new Go(function(r) {
|
|
11448
11468
|
t = r;
|
|
11449
11469
|
}),
|
|
11450
11470
|
cancel: t
|
|
@@ -11533,15 +11553,15 @@ const xs = {
|
|
|
11533
11553
|
Object.entries(xs).forEach(([e, t]) => {
|
|
11534
11554
|
xs[t] = e;
|
|
11535
11555
|
});
|
|
11536
|
-
function
|
|
11556
|
+
function Vo(e) {
|
|
11537
11557
|
const t = new gt(e), n = mo(gt.prototype.request, t);
|
|
11538
11558
|
return b.extend(n, gt.prototype, t, { allOwnKeys: !0 }), b.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
11539
|
-
return
|
|
11559
|
+
return Vo(yt(e, r));
|
|
11540
11560
|
}, n;
|
|
11541
11561
|
}
|
|
11542
|
-
const de =
|
|
11562
|
+
const de = Vo(en);
|
|
11543
11563
|
de.Axios = gt;
|
|
11544
|
-
de.CanceledError =
|
|
11564
|
+
de.CanceledError = Vt;
|
|
11545
11565
|
de.CancelToken = mm;
|
|
11546
11566
|
de.isCancel = Eo;
|
|
11547
11567
|
de.VERSION = Yo;
|
|
@@ -11567,8 +11587,8 @@ const {
|
|
|
11567
11587
|
CancelToken: SA,
|
|
11568
11588
|
VERSION: FA,
|
|
11569
11589
|
all: YA,
|
|
11570
|
-
Cancel:
|
|
11571
|
-
isAxiosError:
|
|
11590
|
+
Cancel: GA,
|
|
11591
|
+
isAxiosError: VA,
|
|
11572
11592
|
spread: RA,
|
|
11573
11593
|
toFormData: IA,
|
|
11574
11594
|
AxiosHeaders: TA,
|
|
@@ -11620,14 +11640,14 @@ const Ro = (e) => (t) => {
|
|
|
11620
11640
|
const t = Yt();
|
|
11621
11641
|
if (t.currentBusiness.value) {
|
|
11622
11642
|
const s = `businesses/${(n = t.currentBusiness.value) == null ? void 0 : n.id}${e ? `/${e}` : ""}`;
|
|
11623
|
-
return
|
|
11643
|
+
return Vr(s);
|
|
11624
11644
|
} else
|
|
11625
11645
|
throw new Error("Invalid business");
|
|
11626
11646
|
}, XA = () => {
|
|
11627
11647
|
var a;
|
|
11628
11648
|
const t = (a = Yt().currentCountry.value) == null ? void 0 : a.toLowerCase(), s = "feedmeapidev.com", r = !t || t === "my" ? `https://query-engine.${s}` : `https://query-engine.${t}.${s}`;
|
|
11629
11649
|
return Ro(r)("");
|
|
11630
|
-
}, QA = () => Ro("https://account.feedmedev.cc/api")(""), UA = () =>
|
|
11650
|
+
}, QA = () => Ro("https://account.feedmedev.cc/api")(""), UA = () => Vr("user/bypass/validate/");
|
|
11631
11651
|
function Zs(e) {
|
|
11632
11652
|
return e.data;
|
|
11633
11653
|
}
|
|
@@ -11752,7 +11772,7 @@ async function Bm(e, t) {
|
|
|
11752
11772
|
}
|
|
11753
11773
|
var Ss = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(Ss || {});
|
|
11754
11774
|
function Mm() {
|
|
11755
|
-
const e =
|
|
11775
|
+
const e = Gr(), { sessionUser: t } = Yt();
|
|
11756
11776
|
return vm(
|
|
11757
11777
|
async () => {
|
|
11758
11778
|
e.matched;
|
|
@@ -11791,7 +11811,7 @@ const Cm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11791
11811
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
11792
11812
|
}, Fm = {
|
|
11793
11813
|
noPermission: Sm
|
|
11794
|
-
}, Ym = { class: "w-full h-full flex justify-center items-center" },
|
|
11814
|
+
}, Ym = { class: "w-full h-full flex justify-center items-center" }, Gm = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Vm = { class: "w-[300px] h-[300px]" }, Rm = ["src"], Im = { class: "text-2xl" }, Tm = { class: "text-xl" }, km = /* @__PURE__ */ vt({
|
|
11795
11815
|
__name: "NoPermission",
|
|
11796
11816
|
setup(e) {
|
|
11797
11817
|
const { t } = Rr({
|
|
@@ -11803,8 +11823,8 @@ const Cm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11803
11823
|
}
|
|
11804
11824
|
});
|
|
11805
11825
|
return (n, s) => (Ft(), Fr("div", Ym, [
|
|
11806
|
-
dt("div",
|
|
11807
|
-
dt("div",
|
|
11826
|
+
dt("div", Gm, [
|
|
11827
|
+
dt("div", Vm, [
|
|
11808
11828
|
dt("img", {
|
|
11809
11829
|
src: mt(Cm),
|
|
11810
11830
|
class: "w-full h-full"
|
|
@@ -11876,7 +11896,7 @@ const Nm = /* @__PURE__ */ vt({
|
|
|
11876
11896
|
__name: "PageLoading",
|
|
11877
11897
|
setup(e) {
|
|
11878
11898
|
return (t, n) => {
|
|
11879
|
-
const s =
|
|
11899
|
+
const s = Gs("FmCircularProgress");
|
|
11880
11900
|
return Ft(), jn(Nm, null, {
|
|
11881
11901
|
default: Wo(() => [
|
|
11882
11902
|
dt("div", Xm, [
|
|
@@ -11887,7 +11907,7 @@ const Nm = /* @__PURE__ */ vt({
|
|
|
11887
11907
|
});
|
|
11888
11908
|
};
|
|
11889
11909
|
}
|
|
11890
|
-
}),
|
|
11910
|
+
}), Ge = (e) => Ko({
|
|
11891
11911
|
loader: e,
|
|
11892
11912
|
loadingComponent: Qm
|
|
11893
11913
|
});
|
|
@@ -11896,7 +11916,7 @@ function Rt(e) {
|
|
|
11896
11916
|
name: "MenuAccessGuard",
|
|
11897
11917
|
inheritAttrs: !1,
|
|
11898
11918
|
setup(t, { attrs: n }) {
|
|
11899
|
-
const s =
|
|
11919
|
+
const s = Gr(), r = Vs(), { canOpenMatched: a, firstAccessible: o, isLoading: l } = To(), A = Xe(() => {
|
|
11900
11920
|
const d = a(s.matched);
|
|
11901
11921
|
if (d === !0) return { kind: "render" };
|
|
11902
11922
|
if (d === void 0 || l.value) return { kind: "wait" };
|
|
@@ -11930,14 +11950,14 @@ const rn = (e) => ({
|
|
|
11930
11950
|
}
|
|
11931
11951
|
]
|
|
11932
11952
|
}
|
|
11933
|
-
}), Zm = Rt(Tn(
|
|
11934
|
-
Tn(
|
|
11953
|
+
}), Zm = Rt(Tn(Ge(() => import("./Main-Pv9x678t.js")))), zm = Rt(Tn(Ge(() => import("./Main-BuJe2QNl.js")))), Wm = Rt(
|
|
11954
|
+
Tn(Ge(() => import("./AuditLogList-Fby1fcGU.js")))
|
|
11935
11955
|
), Lm = Rt(
|
|
11936
|
-
Tn(
|
|
11956
|
+
Tn(Ge(() => import("./Main-424HHE7m.js")))
|
|
11937
11957
|
), Km = Rt(
|
|
11938
|
-
|
|
11939
|
-
), Jm =
|
|
11940
|
-
() => import("./PermissionSetList-
|
|
11958
|
+
Ge(() => import("./MyPosProfile-Rc2ZTeQR.js"))
|
|
11959
|
+
), Jm = Ge(() => import("./ApprovalCodeList-D8ZVkmrF.js")), _m = Ge(() => import("./GrantUserList-RK38DjjY.js")), $m = Ge(() => import("./EmployeeList-DY2Y-FtT.js")), eA = Ge(() => import("./RoleList-CrLxn4_K.js")), tA = Ge(() => import("./TimesheetList-ByUp0yfA.js")), nA = Ge(() => import("./TeamMemberList-D32ZtSLP.js")), sA = Ge(
|
|
11960
|
+
() => import("./PermissionSetList-BT1oUm8M.js")
|
|
11941
11961
|
), _A = [
|
|
11942
11962
|
// Landing: waits for menu access, then opens the first page the user can open.
|
|
11943
11963
|
// Declared before the Employee parent (same path) so it wins the exact '/' match.
|
|
@@ -12112,7 +12132,7 @@ function oA(e) {
|
|
|
12112
12132
|
return ms.set(e, n), n;
|
|
12113
12133
|
}
|
|
12114
12134
|
function To() {
|
|
12115
|
-
const e = Yt(), t =
|
|
12135
|
+
const e = Yt(), t = Vs(), n = Xe(() => {
|
|
12116
12136
|
var j, T;
|
|
12117
12137
|
const u = (j = e.sessionUser.value) == null ? void 0 : j.id, v = (T = e.currentBusiness.value) == null ? void 0 : T.id;
|
|
12118
12138
|
return u && v ? `${u}|${v}` : null;
|
|
@@ -12161,7 +12181,7 @@ const iA = /* @__PURE__ */ vt({
|
|
|
12161
12181
|
__name: "Navigator",
|
|
12162
12182
|
emits: ["close-navigation"],
|
|
12163
12183
|
setup(e, { emit: t }) {
|
|
12164
|
-
const n = t, { t: s } = Rr(), r =
|
|
12184
|
+
const n = t, { t: s } = Rr(), r = Vs(), { visibleItems: a, locationFor: o } = To(), l = Xe(
|
|
12165
12185
|
() => a.value.map((d) => ({
|
|
12166
12186
|
label: s(d.labelKey),
|
|
12167
12187
|
value: d.value,
|
|
@@ -12175,7 +12195,7 @@ const iA = /* @__PURE__ */ vt({
|
|
|
12175
12195
|
const d = (T = r.currentRoute.value) == null ? void 0 : T.name, u = a.value, v = u.find((M) => M.activeRoutes.some((F) => F === d)) ?? u[0], j = v == null ? void 0 : v.value;
|
|
12176
12196
|
A.value !== j && (A.value = j);
|
|
12177
12197
|
}), (d, u) => {
|
|
12178
|
-
const v =
|
|
12198
|
+
const v = Gs("FmCollapsibleTabs");
|
|
12179
12199
|
return Ft(), jn(v, {
|
|
12180
12200
|
modelValue: A.value,
|
|
12181
12201
|
"onUpdate:modelValue": u[0] || (u[0] = (j) => A.value = j),
|
|
@@ -12225,21 +12245,21 @@ var Fs = { exports: {} };
|
|
|
12225
12245
|
function P(J) {
|
|
12226
12246
|
try {
|
|
12227
12247
|
N(f.next(J));
|
|
12228
|
-
} catch (
|
|
12229
|
-
B(
|
|
12248
|
+
} catch (V) {
|
|
12249
|
+
B(V);
|
|
12230
12250
|
}
|
|
12231
12251
|
}
|
|
12232
12252
|
function I(J) {
|
|
12233
12253
|
try {
|
|
12234
12254
|
N(f.throw(J));
|
|
12235
|
-
} catch (
|
|
12236
|
-
B(
|
|
12255
|
+
} catch (V) {
|
|
12256
|
+
B(V);
|
|
12237
12257
|
}
|
|
12238
12258
|
}
|
|
12239
12259
|
function N(J) {
|
|
12240
|
-
var
|
|
12241
|
-
J.done ? g(J.value) : (
|
|
12242
|
-
ne(
|
|
12260
|
+
var V;
|
|
12261
|
+
J.done ? g(J.value) : (V = J.value, V instanceof c ? V : new c(function(ne) {
|
|
12262
|
+
ne(V);
|
|
12243
12263
|
})).then(P, I);
|
|
12244
12264
|
}
|
|
12245
12265
|
N((f = f.apply(w, [])).next());
|
|
@@ -12255,51 +12275,51 @@ var Fs = { exports: {} };
|
|
|
12255
12275
|
}), B;
|
|
12256
12276
|
function I(N) {
|
|
12257
12277
|
return function(J) {
|
|
12258
|
-
return function(
|
|
12278
|
+
return function(V) {
|
|
12259
12279
|
if (c) throw new TypeError("Generator is already executing.");
|
|
12260
12280
|
for (; P; ) try {
|
|
12261
|
-
if (c = 1, f && (g = 2 &
|
|
12262
|
-
switch (f = 0, g && (
|
|
12281
|
+
if (c = 1, f && (g = 2 & V[0] ? f.return : V[0] ? f.throw || ((g = f.return) && g.call(f), 0) : f.next) && !(g = g.call(f, V[1])).done) return g;
|
|
12282
|
+
switch (f = 0, g && (V = [2 & V[0], g.value]), V[0]) {
|
|
12263
12283
|
case 0:
|
|
12264
12284
|
case 1:
|
|
12265
|
-
g =
|
|
12285
|
+
g = V;
|
|
12266
12286
|
break;
|
|
12267
12287
|
case 4:
|
|
12268
|
-
return P.label++, { value:
|
|
12288
|
+
return P.label++, { value: V[1], done: !1 };
|
|
12269
12289
|
case 5:
|
|
12270
|
-
P.label++, f =
|
|
12290
|
+
P.label++, f = V[1], V = [0];
|
|
12271
12291
|
continue;
|
|
12272
12292
|
case 7:
|
|
12273
|
-
|
|
12293
|
+
V = P.ops.pop(), P.trys.pop();
|
|
12274
12294
|
continue;
|
|
12275
12295
|
default:
|
|
12276
|
-
if (g = P.trys, !((g = g.length > 0 && g[g.length - 1]) ||
|
|
12296
|
+
if (g = P.trys, !((g = g.length > 0 && g[g.length - 1]) || V[0] !== 6 && V[0] !== 2)) {
|
|
12277
12297
|
P = 0;
|
|
12278
12298
|
continue;
|
|
12279
12299
|
}
|
|
12280
|
-
if (
|
|
12281
|
-
P.label =
|
|
12300
|
+
if (V[0] === 3 && (!g || V[1] > g[0] && V[1] < g[3])) {
|
|
12301
|
+
P.label = V[1];
|
|
12282
12302
|
break;
|
|
12283
12303
|
}
|
|
12284
|
-
if (
|
|
12285
|
-
P.label = g[1], g =
|
|
12304
|
+
if (V[0] === 6 && P.label < g[1]) {
|
|
12305
|
+
P.label = g[1], g = V;
|
|
12286
12306
|
break;
|
|
12287
12307
|
}
|
|
12288
12308
|
if (g && P.label < g[2]) {
|
|
12289
|
-
P.label = g[2], P.ops.push(
|
|
12309
|
+
P.label = g[2], P.ops.push(V);
|
|
12290
12310
|
break;
|
|
12291
12311
|
}
|
|
12292
12312
|
g[2] && P.ops.pop(), P.trys.pop();
|
|
12293
12313
|
continue;
|
|
12294
12314
|
}
|
|
12295
|
-
|
|
12315
|
+
V = m.call(w, P);
|
|
12296
12316
|
} catch (ne) {
|
|
12297
|
-
|
|
12317
|
+
V = [6, ne], f = 0;
|
|
12298
12318
|
} finally {
|
|
12299
12319
|
c = g = 0;
|
|
12300
12320
|
}
|
|
12301
|
-
if (5 &
|
|
12302
|
-
return { value:
|
|
12321
|
+
if (5 & V[0]) throw V[1];
|
|
12322
|
+
return { value: V[0] ? V[1] : void 0, done: !0 };
|
|
12303
12323
|
}([N, J]);
|
|
12304
12324
|
};
|
|
12305
12325
|
}
|
|
@@ -12367,9 +12387,9 @@ var Fs = { exports: {} };
|
|
|
12367
12387
|
var f = c, g = f.api, B = f.evaluationContext;
|
|
12368
12388
|
c.log("Get Flags"), c.isLoading = !0, c.loadingState.isFetching || c.setLoadingState(r(r({}, c.loadingState), { isFetching: !0 }));
|
|
12369
12389
|
var P = "".concat(c.getContext().identity), I = function(N) {
|
|
12370
|
-
var J,
|
|
12390
|
+
var J, V, ne, we;
|
|
12371
12391
|
if (N && P === "".concat(c.getContext().identity)) {
|
|
12372
|
-
var Te = N.flags, Oe = N.traits,
|
|
12392
|
+
var Te = N.flags, Oe = N.traits, Ve = N.identifier;
|
|
12373
12393
|
c.isLoading = !1;
|
|
12374
12394
|
var je = {}, Se = {};
|
|
12375
12395
|
Oe = Oe || [], (Te = Te || []).forEach(function(se) {
|
|
@@ -12378,10 +12398,10 @@ var Fs = { exports: {} };
|
|
|
12378
12398
|
Se[se.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: se.transient, value: se.trait_value };
|
|
12379
12399
|
}), c.oldFlags = r({}, c.flags);
|
|
12380
12400
|
var ke = d(c.oldFlags, je), It = d((J = c.evaluationContext.identity) === null || J === void 0 ? void 0 : J.traits, Se);
|
|
12381
|
-
if ((
|
|
12401
|
+
if ((Ve || Object.keys(Se).length) && (c.evaluationContext.identity = r(r({}, c.evaluationContext.identity), { traits: Se }), Ve && (c.evaluationContext.identity.identifier = Ve)), c.flags = je, c.updateStorage(), c._onChange(c.oldFlags, { isFromServer: !0, flagsChanged: ke, traitsChanged: It }, c._loadedState(null, u.SERVER)), c.datadogRum) try {
|
|
12382
12402
|
if (c.datadogRum.trackTraits) {
|
|
12383
12403
|
var Tt = {};
|
|
12384
|
-
Object.keys(((
|
|
12404
|
+
Object.keys(((V = c.evaluationContext.identity) === null || V === void 0 ? void 0 : V.traits) || {}).map(function(se) {
|
|
12385
12405
|
Tt[me + se] = c.getTrait(se);
|
|
12386
12406
|
});
|
|
12387
12407
|
var wt = r(r(r({}, c.datadogRum.client.getUser()), { id: c.datadogRum.client.getUser().id || ((ne = c.evaluationContext.identity) === null || ne === void 0 ? void 0 : ne.identifier) }), Tt);
|
|
@@ -12403,15 +12423,15 @@ var Fs = { exports: {} };
|
|
|
12403
12423
|
}
|
|
12404
12424
|
};
|
|
12405
12425
|
return B.identity ? Promise.all([B.identity.traits && Object.keys(B.identity.traits).length || !B.identity.identifier ? c.getJSON(g + "identities/", "POST", JSON.stringify({ identifier: B.identity.identifier, transient: B.identity.transient, traits: Object.entries(B.identity.traits).map(function(N) {
|
|
12406
|
-
var J = N[0],
|
|
12407
|
-
return { trait_key: J, trait_value:
|
|
12426
|
+
var J = N[0], V = N[1];
|
|
12427
|
+
return { trait_key: J, trait_value: V == null ? void 0 : V.value, transient: V == null ? void 0 : V.transient };
|
|
12408
12428
|
}).filter(function(N) {
|
|
12409
12429
|
return N.trait_value !== void 0 || (c.log("Warning - attempted to set an undefined trait value for key", N.trait_key), !1);
|
|
12410
12430
|
}) })) : c.getJSON(g + "identities/?identifier=" + encodeURIComponent(B.identity.identifier) + (B.identity.transient ? "&transient=true" : ""))]).then(function(N) {
|
|
12411
12431
|
return c.evaluationContext.identity = r(r({}, c.evaluationContext.identity), { traits: {} }), I(N == null ? void 0 : N[0]);
|
|
12412
12432
|
}).catch(function(N) {
|
|
12413
|
-
var J = N.message,
|
|
12414
|
-
return Promise.reject(
|
|
12433
|
+
var J = N.message, V = new Error(J);
|
|
12434
|
+
return Promise.reject(V);
|
|
12415
12435
|
}) : c.getJSON(g + "flags/").then(function(N) {
|
|
12416
12436
|
return I({ flags: N, traits: void 0 });
|
|
12417
12437
|
});
|
|
@@ -12471,17 +12491,17 @@ var Fs = { exports: {} };
|
|
|
12471
12491
|
I.evaluationContext;
|
|
12472
12492
|
var N = I.headers, J = { method: g || "GET", body: B, cache: "no-cache", headers: {} };
|
|
12473
12493
|
c.evaluationContext.environment && (J.headers["X-Environment-Key"] = c.evaluationContext.environment.apiKey), g && g !== "GET" && (J.headers["Content-Type"] = "application/json; charset=utf-8"), N && Object.assign(J.headers, N), v || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
12474
|
-
var
|
|
12494
|
+
var V = "".concat((P = c.evaluationContext.identity) === null || P === void 0 ? void 0 : P.identifier);
|
|
12475
12495
|
return v(f, J).then(function(ne) {
|
|
12476
12496
|
var we, Te, Oe = "".concat((we = c.evaluationContext.identity) === null || we === void 0 ? void 0 : we.identifier);
|
|
12477
|
-
if (
|
|
12478
|
-
var
|
|
12479
|
-
if (
|
|
12480
|
-
var je = parseFloat(
|
|
12497
|
+
if (V === Oe) {
|
|
12498
|
+
var Ve = (Te = ne.headers) === null || Te === void 0 ? void 0 : Te.get("x-flagsmith-document-updated-at");
|
|
12499
|
+
if (Ve) try {
|
|
12500
|
+
var je = parseFloat(Ve);
|
|
12481
12501
|
if (isNaN(je)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
12482
12502
|
c.timestamp = je;
|
|
12483
12503
|
} catch (Se) {
|
|
12484
|
-
c.log(Se, "Failed to parse x-flagsmith-document-updated-at",
|
|
12504
|
+
c.log(Se, "Failed to parse x-flagsmith-document-updated-at", Ve);
|
|
12485
12505
|
}
|
|
12486
12506
|
return c.log("Fetch response: " + ne.status + " " + (g || "GET") + 0 + f), ne.text().then(function(Se) {
|
|
12487
12507
|
var ke = Se;
|
|
@@ -12492,7 +12512,7 @@ var Fs = { exports: {} };
|
|
|
12492
12512
|
return !ke && ne.status && (ke = "API Response: ".concat(ne.status)), ne.status && ne.status >= 200 && ne.status < 300 ? ke : Promise.reject(new Error(ke));
|
|
12493
12513
|
});
|
|
12494
12514
|
}
|
|
12495
|
-
c.log("Received response with identity mismatch, ignoring response. Requested: ".concat(
|
|
12515
|
+
c.log("Received response with identity mismatch, ignoring response. Requested: ".concat(V, ", Current: ").concat(Oe));
|
|
12496
12516
|
});
|
|
12497
12517
|
}, this.evaluateFlag = function(f, g) {
|
|
12498
12518
|
if (c.datadogRum && (c.datadogRum.client.addFeatureFlagEvaluation ? g === "VALUE" ? c.datadogRum.client.addFeatureFlagEvaluation(ge + f, c.getValue(f, {}, !0)) : c.datadogRum.client.addFeatureFlagEvaluation(xe + f, c.hasFeature(f, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), c.enableAnalytics) {
|
|
@@ -12508,18 +12528,18 @@ var Fs = { exports: {} };
|
|
|
12508
12528
|
return w.prototype.init = function(m) {
|
|
12509
12529
|
var c, f, g;
|
|
12510
12530
|
return a(this, void 0, void 0, function() {
|
|
12511
|
-
var B, P, I, N, J,
|
|
12531
|
+
var B, P, I, N, J, V, ne, we, Te, Oe, Ve, je, Se, ke, It, Tt, wt, Be, se, kn, kt, zs, Bt, qn, Ws, Ls, Hn, Ks, Nn, qt, Mt, Js, Me = this;
|
|
12512
12532
|
return o(this, function(Re) {
|
|
12513
12533
|
switch (Re.label) {
|
|
12514
12534
|
case 0:
|
|
12515
12535
|
B = F(m.evaluationContext || this.evaluationContext), Re.label = 1;
|
|
12516
12536
|
case 1:
|
|
12517
|
-
if (Re.trys.push([1, 13, , 14]), P = m.environmentID, I = m.api, N = I === void 0 ? ue : I, J = m.headers,
|
|
12537
|
+
if (Re.trys.push([1, 13, , 14]), P = m.environmentID, I = m.api, N = I === void 0 ? ue : I, J = m.headers, V = m.onChange, ne = m.cacheFlags, we = m.datadogRum, Te = m.onError, Oe = m.defaultFlags, Ve = m.fetch, je = m.preventFetch, Se = m.enableLogs, ke = m.enableDynatrace, It = m.enableAnalytics, Tt = m.realtime, wt = m.eventSourceUrl, Be = wt === void 0 ? "https://realtime.flagsmith.com/" : wt, se = m.AsyncStorage, kn = m.identity, kt = m.traits, zs = m.state, Bt = m.cacheOptions, qn = m.angularHttpClient, Ws = m._trigger, Ls = m._triggerLoadingState, B.environment = P ? { apiKey: P } : B.environment, !B.environment || !B.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
12518
12538
|
if (B.identity = kn || kt ? { identifier: kn, traits: kt ? Object.fromEntries(Object.entries(kt).map(function(Fe) {
|
|
12519
12539
|
return [Fe[0], { value: Fe[1] }];
|
|
12520
|
-
})) : {} } : B.identity, this.evaluationContext = B, this.api = N, this.headers = J, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange =
|
|
12540
|
+
})) : {} } : B.identity, this.evaluationContext = B, this.api = N, this.headers = J, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = V, Hn = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Ws || this._trigger, this._triggerLoadingState = Ls || this._triggerLoadingState, this.onError = function(Fe) {
|
|
12521
12541
|
Me.setLoadingState(r(r({}, Me.loadingState), { isFetching: !1, isLoading: !1, error: Fe })), Te == null || Te(Fe);
|
|
12522
|
-
}, this.enableLogs = Se || !1, this.cacheOptions = Bt ? { skipAPI: !!Bt.skipAPI, ttl: Bt.ttl || 0, storageKey: Bt.storageKey, loadStale: !!Bt.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."),
|
|
12542
|
+
}, this.enableLogs = Se || !1, this.cacheOptions = Bt ? { skipAPI: !!Bt.skipAPI, ttl: Bt.ttl || 0, storageKey: Bt.storageKey, loadStale: !!Bt.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 && (v = Ve), this.enableAnalytics = It || !1, this.flags = Object.assign({}, Oe) || {}, this.datadogRum = we || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = W !== void 0 && !!ne, $ = "FLAGSMITH_EVENT_" + B.environment.apiKey, se && (W = se), Tt && typeof window < "u" && this.setupRealtime(Be, B.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = r(r({}, this.loadingState), { isLoading: !1, source: u.DEFAULT_FLAGS })), this.setState(zs), this.log("Initialising with properties", m, this), ke && (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), qn && (v = /* @__PURE__ */ function(Fe) {
|
|
12523
12543
|
return function(qe, He) {
|
|
12524
12544
|
var nt = He.headers, ie = He.method, Ct = He.body;
|
|
12525
12545
|
return new Promise(function(ct) {
|
|
@@ -12717,7 +12737,7 @@ var Fs = { exports: {} };
|
|
|
12717
12737
|
}
|
|
12718
12738
|
}
|
|
12719
12739
|
return P;
|
|
12720
|
-
},
|
|
12740
|
+
}, G = function(w, m, c) {
|
|
12721
12741
|
if (arguments.length === 2) for (var f, g = 0, B = m.length; g < B; g++) !f && g in m || (f || (f = Array.prototype.slice.call(m, 0, g)), f[g] = m[g]);
|
|
12722
12742
|
return w.concat(f || Array.prototype.slice.call(m));
|
|
12723
12743
|
}, H = function(w) {
|
|
@@ -12775,7 +12795,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
12775
12795
|
m && m.lastEventId && (this._lastEventId = m.lastEventId);
|
|
12776
12796
|
var g = this._listeners[m.type];
|
|
12777
12797
|
if (g != null) try {
|
|
12778
|
-
for (var B = E(
|
|
12798
|
+
for (var B = E(G([], Y(g), !1)), P = B.next(); !P.done; P = B.next())
|
|
12779
12799
|
P.value.call(this, m);
|
|
12780
12800
|
} catch (I) {
|
|
12781
12801
|
c = { error: I };
|
|
@@ -12795,7 +12815,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
12795
12815
|
}, w.prototype.addEventListener = function(m, c, f) {
|
|
12796
12816
|
this._listeners[m] == null && (this._listeners[m] = [], this._eventSource != null && this._eventSource.addEventListener(m, this._onevent_wrapped));
|
|
12797
12817
|
var g = this._listeners[m];
|
|
12798
|
-
g.includes(c) || (this._listeners[m] =
|
|
12818
|
+
g.includes(c) || (this._listeners[m] = G(G([], Y(g), !1), [c], !1));
|
|
12799
12819
|
}, w.prototype.removeEventListener = function(m, c, f) {
|
|
12800
12820
|
var g = this._listeners[m];
|
|
12801
12821
|
this._listeners[m] = g.filter(function(B) {
|
|
@@ -12817,14 +12837,14 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
12817
12837
|
return B;
|
|
12818
12838
|
}, entries: function() {
|
|
12819
12839
|
return P;
|
|
12820
|
-
}, get: function(
|
|
12821
|
-
return I[
|
|
12822
|
-
}, has: function(
|
|
12823
|
-
return
|
|
12840
|
+
}, get: function(V) {
|
|
12841
|
+
return I[V.toLowerCase()];
|
|
12842
|
+
}, has: function(V) {
|
|
12843
|
+
return V.toLowerCase() in I;
|
|
12824
12844
|
} } };
|
|
12825
12845
|
};
|
|
12826
12846
|
for (var J in g.open(m.method || "get", w, !0), g.onload = function() {
|
|
12827
|
-
g.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(
|
|
12847
|
+
g.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(V, ne, we) {
|
|
12828
12848
|
B.push(ne = ne.toLowerCase()), P.push([ne, we]), I[ne] = I[ne] ? I[ne] + "," + we : we;
|
|
12829
12849
|
}), c(N());
|
|
12830
12850
|
}, g.onerror = f, g.withCredentials = m.credentials == "include", m.headers) g.setRequestHeader(J, m.headers[J]);
|
|
@@ -13013,12 +13033,12 @@ const $A = /* @__PURE__ */ vt({
|
|
|
13013
13033
|
apiKey: t.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
13014
13034
|
});
|
|
13015
13035
|
}), (s, r) => {
|
|
13016
|
-
const a =
|
|
13036
|
+
const a = Gs("RouterView");
|
|
13017
13037
|
return Ft(), jn(a);
|
|
13018
13038
|
};
|
|
13019
13039
|
}
|
|
13020
13040
|
});
|
|
13021
|
-
var As = { name: "@feedmepos/mf-hrm-portal", version: "2.3.
|
|
13041
|
+
var As = { name: "@feedmepos/mf-hrm-portal", version: "2.3.3-dev", mode: "fmmf" };
|
|
13022
13042
|
console.log(
|
|
13023
13043
|
`%c${As.name}%c v${As.version} %c${As.mode}`,
|
|
13024
13044
|
"background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
|
|
@@ -13072,13 +13092,13 @@ export {
|
|
|
13072
13092
|
fu as h,
|
|
13073
13093
|
Io as i,
|
|
13074
13094
|
Ut as j,
|
|
13075
|
-
|
|
13076
|
-
|
|
13095
|
+
C as k,
|
|
13096
|
+
$e as l,
|
|
13077
13097
|
Qt as m,
|
|
13078
|
-
|
|
13098
|
+
QA as n,
|
|
13079
13099
|
KA as o,
|
|
13080
13100
|
JA as p,
|
|
13081
|
-
|
|
13101
|
+
$i as q,
|
|
13082
13102
|
hm as r,
|
|
13083
13103
|
fm as s,
|
|
13084
13104
|
WA as t,
|