@feedmepos/mf-hrm-portal 2.4.0 → 2.4.1
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-D62tXKEd.js → ApprovalCodeList-BgnhS8P1.js} +7 -7
- package/dist/{AuditLogList-DQOdhFJm.js → AuditLogList-BMEw3z3C.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDT1AfXa.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DNA8eHc4.js} +2 -2
- package/dist/{EmployeeList-Bd211chl.js → EmployeeList-BXO4vI9g.js} +8 -8
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUBQnkkY.js → FormItem.vue_vue_type_script_setup_true_lang-D69N78Sp.js} +1 -1
- package/dist/{GrantUserList-DaUUILOT.js → GrantUserList-DePGsJq1.js} +8 -8
- package/dist/{Main-B95BdgQd.js → Main-BX2dD-ti.js} +5 -5
- package/dist/{Main-CvGjvEQL.js → Main-DNViVR_m.js} +8 -8
- package/dist/{Main-Dh3E2cEf.js → Main-hUOeiddV.js} +11 -11
- package/dist/{PermissionSetList-BIzlo_EV.js → PermissionSetList-BHOjAjHj.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYYiW77c.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bu7YDHSf.js} +785 -785
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CSYNrTGr.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-e6wGaXo3.js} +1 -1
- package/dist/{RoleList-QJV3cGvV.js → RoleList-Dx7Bstb_.js} +9 -9
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DsKfRa5Z.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B8dH021B.js} +1 -1
- package/dist/{ScheduleGeneralPage-D6NPsdrU.js → ScheduleGeneralPage-WJu4dwH_.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-kYGNELLb.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DvcZjDJA.js} +3 -3
- package/dist/{SchedulePage-CO_ZP2QD.js → SchedulePage-BOiSyw9s.js} +9 -9
- package/dist/{SchedulePositionPage-DFjWfRwI.js → SchedulePositionPage-NR8GaPxx.js} +3 -3
- package/dist/{SelectFilter-B94Z_Fat.js → SelectFilter-xIFxmOuf.js} +1 -1
- package/dist/{TeamMemberList-BbGMw0jg.js → TeamMemberList-Dro66DME.js} +11 -11
- package/dist/{TimesheetList-DiTCj2H7.js → TimesheetList-DO3uT60w.js} +8 -8
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B97k3KNz.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-fDOF4GYa.js} +3 -3
- package/dist/{app-BRlNuQIz.js → app-DJOt_dse.js} +349 -336
- package/dist/app.js +1 -1
- package/dist/{approval-code-D6eLRwC7.js → approval-code-D3J-F40I.js} +1 -1
- package/dist/{dayjs.min-BaLuYA95.js → dayjs.min-YpmHqmB1.js} +1 -1
- package/dist/{employee-DF_QGtpu.js → employee-DfoS6h1_.js} +4 -4
- package/dist/{grant-user-CdkuTYlZ.js → grant-user-kU9gjiVw.js} +1 -1
- package/dist/{iteration-t4kb_i13.js → iteration-RLqokZ_t.js} +1 -1
- package/dist/{lodash-Dv0NUeUP.js → lodash-C6YpC6VN.js} +1 -1
- package/dist/{restaurant-D2q9eNtu.js → restaurant-D30tjUi3.js} +1 -1
- package/dist/{role-y253W1Ep.js → role-DzH4jGCM.js} +3 -3
- package/dist/{rule-DaFOMP6z.js → rule-8KZ8d8qL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CIPpnfP7.js → useAppStore-HpBmohxh.js} +1 -1
- package/dist/{useLoading-BRCeBVXP.js → useLoading-WAX5d520.js} +1 -1
- package/dist/{useReportPermissions-Bveud3kc.js → useReportPermissions-C2eS3P4D.js} +3 -3
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var dn = Object.defineProperty;
|
|
2
2
|
var cn = (e, t, a) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var Gt = (e, t, a) => cn(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { isRef as un, ref as Qe, shallowRef as mn, watchEffect as
|
|
4
|
+
import { isRef as un, ref as Qe, shallowRef as mn, watchEffect as Cs, computed as We, h as Et, defineComponent as _e, createBlock as Xa, renderSlot as Ua, createCommentVNode as Ds, unref as Me, openBlock as $e, createElementBlock as Ht, createElementVNode as ve, toDisplayString as Lt, watch as pn, nextTick as Ms, onMounted as Ps, onBeforeUnmount as hn, normalizeStyle as yn, resolveComponent as gt, withCtx as gn, createVNode as ot, defineAsyncComponent as fn, createTextVNode as An, readonly as Ea, Fragment as vn } from "vue";
|
|
5
5
|
import { useBreakpoints as bn } from "@feedmepos/ui-library";
|
|
6
|
-
import { useRoute as
|
|
6
|
+
import { useRoute as Ss, useRouter as ks } from "vue-router";
|
|
7
7
|
import { useCoreStore as ra, useI18n as Za } from "@feedmepos/mf-common";
|
|
8
|
-
var
|
|
8
|
+
var Bs = /* @__PURE__ */ ((e) => (e[e.feedMe = 0] = "feedMe", e[e.business = 1] = "business", e[e.restaurant = 2] = "restaurant", e))(Bs || {}), r = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(r || {}), Os = /* @__PURE__ */ ((e) => (e.all = "all", e.restaurant = "restaurant", e.business = "business", e.delivery = "delivery", e.agent = "agent", e.posGrant = "posGrant", e))(Os || {}), Ts = /* @__PURE__ */ ((e) => (e.quota = "quota", e.owner = "owner", e))(Ts || {}), u = /* @__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.hrm_scheduling = "business::hrm::scheduling", 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.operation_foodCourt = "business::operation::foodCourt", e.operation_displaySystem = "business::operation::displaySystem", e.operation_storePause = "business::operation::storePause", e.media_assets = "business::media::assets", e))(u || {}), Tt = /* @__PURE__ */ ((e) => (e.operation_orders = "foodCourt::operation::orders", e.operation_foodCourtSetting = "foodCourt::operation::foodCourtSetting", e.operation_stalls = "foodCourt::operation::stalls", e))(Tt || {}), oe = /* @__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))(oe || {}), xs = /* @__PURE__ */ ((e) => (e.restaurant = "restaurant", e))(xs || {});
|
|
9
9
|
const v = {
|
|
10
10
|
general: "General",
|
|
11
11
|
inventory: "Inventory",
|
|
@@ -225,12 +225,12 @@ const Rt = (e, t) => {
|
|
|
225
225
|
}
|
|
226
226
|
return { message: a };
|
|
227
227
|
};
|
|
228
|
-
let
|
|
228
|
+
let Es = Rt;
|
|
229
229
|
function Dn(e) {
|
|
230
|
-
|
|
230
|
+
Es = e;
|
|
231
231
|
}
|
|
232
232
|
function Qt() {
|
|
233
|
-
return
|
|
233
|
+
return Es;
|
|
234
234
|
}
|
|
235
235
|
const Xt = (e) => {
|
|
236
236
|
const { data: t, path: a, errorMaps: s, issueData: o } = e, n = [...a, ...o.path || []], l = {
|
|
@@ -315,7 +315,7 @@ class He {
|
|
|
315
315
|
return this._path.concat(this._key);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
const
|
|
318
|
+
const ds = (e, t) => {
|
|
319
319
|
if (Ut(t))
|
|
320
320
|
return { success: !0, data: t.value };
|
|
321
321
|
if (!e.common.issues.length)
|
|
@@ -393,7 +393,7 @@ class W {
|
|
|
393
393
|
data: t,
|
|
394
394
|
parsedType: Ze(t)
|
|
395
395
|
}, n = this._parseSync({ data: t, path: o.path, parent: o });
|
|
396
|
-
return
|
|
396
|
+
return ds(o, n);
|
|
397
397
|
}
|
|
398
398
|
async parseAsync(t, a) {
|
|
399
399
|
const s = await this.safeParseAsync(t, a);
|
|
@@ -414,7 +414,7 @@ class W {
|
|
|
414
414
|
data: t,
|
|
415
415
|
parsedType: Ze(t)
|
|
416
416
|
}, o = this._parse({ data: t, path: [], parent: s }), n = await (Na(o) ? o : Promise.resolve(o));
|
|
417
|
-
return
|
|
417
|
+
return ds(s, n);
|
|
418
418
|
}
|
|
419
419
|
refine(t, a) {
|
|
420
420
|
const s = (o) => typeof a == "string" || typeof a > "u" ? { message: a } : typeof a == "function" ? a(o) : a;
|
|
@@ -1061,7 +1061,7 @@ var $t;
|
|
|
1061
1061
|
...a
|
|
1062
1062
|
});
|
|
1063
1063
|
})($t || ($t = {}));
|
|
1064
|
-
const
|
|
1064
|
+
const cs = (e) => (t) => new te({
|
|
1065
1065
|
...e,
|
|
1066
1066
|
shape: () => ({
|
|
1067
1067
|
...e.shape(),
|
|
@@ -1083,7 +1083,7 @@ function yt(e) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
class te extends W {
|
|
1085
1085
|
constructor() {
|
|
1086
|
-
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment =
|
|
1086
|
+
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = cs(this._def), this.extend = cs(this._def);
|
|
1087
1087
|
}
|
|
1088
1088
|
_getCached() {
|
|
1089
1089
|
if (this._cached !== null)
|
|
@@ -1260,7 +1260,7 @@ class te extends W {
|
|
|
1260
1260
|
});
|
|
1261
1261
|
}
|
|
1262
1262
|
keyof() {
|
|
1263
|
-
return
|
|
1263
|
+
return Rs(z.objectKeys(this.shape));
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
te.create = (e, t) => new te({
|
|
@@ -1797,7 +1797,7 @@ aa.create = (e, t) => new aa({
|
|
|
1797
1797
|
typeName: G.ZodLiteral,
|
|
1798
1798
|
...L(t)
|
|
1799
1799
|
});
|
|
1800
|
-
function
|
|
1800
|
+
function Rs(e, t) {
|
|
1801
1801
|
return new la({
|
|
1802
1802
|
values: e,
|
|
1803
1803
|
typeName: G.ZodEnum,
|
|
@@ -1846,7 +1846,7 @@ class la extends W {
|
|
|
1846
1846
|
return t;
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
|
-
la.create =
|
|
1849
|
+
la.create = Rs;
|
|
1850
1850
|
class sa extends W {
|
|
1851
1851
|
_parse(t) {
|
|
1852
1852
|
const a = z.getValidEnumValues(this._def.values), s = this._getOrReturnCtx(t);
|
|
@@ -2035,7 +2035,7 @@ oa.create = (e) => new oa({
|
|
|
2035
2035
|
typeName: G.ZodNaN,
|
|
2036
2036
|
...L(e)
|
|
2037
2037
|
});
|
|
2038
|
-
const
|
|
2038
|
+
const Fs = (e, t = {}, a) => e ? At.create().superRefine((s, o) => {
|
|
2039
2039
|
if (!e(s)) {
|
|
2040
2040
|
const n = typeof t == "function" ? t(s) : t, l = typeof n == "string" ? { message: n } : n;
|
|
2041
2041
|
o.addIssue({ code: "custom", ...l, fatal: a });
|
|
@@ -2049,7 +2049,7 @@ var G;
|
|
|
2049
2049
|
})(G || (G = {}));
|
|
2050
2050
|
const xn = (e, t = {
|
|
2051
2051
|
message: `Input not instance of ${e.name}`
|
|
2052
|
-
}) =>
|
|
2052
|
+
}) => Fs((a) => a instanceof e, t, !0), js = Ke.create, Ns = nt.create, En = oa.create, Rn = Zt.create, Hs = zt.create, Fn = ft.create, jn = Kt.create, Nn = Jt.create, Hn = At.create, Yn = ze.create, Gn = Je.create, Vn = _t.create, In = Ye.create, qn = te.create, Wn = te.strictCreate, Ln = Ft.create, Qn = ia.create, Xn = jt.create, Un = Ge.create, Zn = Nt.create, zn = ea.create, Kn = rt.create, Jn = it.create, _n = ta.create, $n = aa.create, er = la.create, tr = sa.create, ar = vt.create, us = Ve.create, sr = Ne.create, or = lt.create, nr = Ve.createWithPreprocess, rr = () => js().optional(), ir = () => Ns().optional(), lr = () => Hs().optional();
|
|
2053
2053
|
var kt = /* @__PURE__ */ Object.freeze({
|
|
2054
2054
|
__proto__: null,
|
|
2055
2055
|
getParsedType: Ze,
|
|
@@ -2102,7 +2102,7 @@ var kt = /* @__PURE__ */ Object.freeze({
|
|
|
2102
2102
|
ZodNullable: lt,
|
|
2103
2103
|
ZodDefault: Ka,
|
|
2104
2104
|
ZodNaN: oa,
|
|
2105
|
-
custom:
|
|
2105
|
+
custom: Fs,
|
|
2106
2106
|
Schema: W,
|
|
2107
2107
|
ZodSchema: W,
|
|
2108
2108
|
late: Tn,
|
|
@@ -2112,10 +2112,10 @@ var kt = /* @__PURE__ */ Object.freeze({
|
|
|
2112
2112
|
any: Hn,
|
|
2113
2113
|
array: In,
|
|
2114
2114
|
bigint: Rn,
|
|
2115
|
-
boolean:
|
|
2115
|
+
boolean: Hs,
|
|
2116
2116
|
date: Fn,
|
|
2117
2117
|
discriminatedUnion: Qn,
|
|
2118
|
-
effect:
|
|
2118
|
+
effect: us,
|
|
2119
2119
|
enum: er,
|
|
2120
2120
|
function: Jn,
|
|
2121
2121
|
instanceof: xn,
|
|
@@ -2128,7 +2128,7 @@ var kt = /* @__PURE__ */ Object.freeze({
|
|
|
2128
2128
|
never: Gn,
|
|
2129
2129
|
null: Nn,
|
|
2130
2130
|
nullable: or,
|
|
2131
|
-
number:
|
|
2131
|
+
number: Ns,
|
|
2132
2132
|
object: qn,
|
|
2133
2133
|
oboolean: lr,
|
|
2134
2134
|
onumber: ir,
|
|
@@ -2139,8 +2139,8 @@ var kt = /* @__PURE__ */ Object.freeze({
|
|
|
2139
2139
|
record: Zn,
|
|
2140
2140
|
set: Kn,
|
|
2141
2141
|
strictObject: Wn,
|
|
2142
|
-
string:
|
|
2143
|
-
transformer:
|
|
2142
|
+
string: js,
|
|
2143
|
+
transformer: us,
|
|
2144
2144
|
tuple: Un,
|
|
2145
2145
|
undefined: jn,
|
|
2146
2146
|
union: Ln,
|
|
@@ -2164,18 +2164,18 @@ function dr(e, t, a) {
|
|
|
2164
2164
|
throw new Error(
|
|
2165
2165
|
`[${e}] templates[${n}].when references unknown form field "${l}".`
|
|
2166
2166
|
);
|
|
2167
|
-
for (const l of
|
|
2167
|
+
for (const l of Ys(o.condition))
|
|
2168
2168
|
if (!s.has(l))
|
|
2169
2169
|
throw new Error(
|
|
2170
2170
|
`[${e}] templates[${n}].condition has a $form ref to unknown form field "${l}".`
|
|
2171
2171
|
);
|
|
2172
2172
|
});
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function Ys(e, t = []) {
|
|
2175
2175
|
if (Ja(e))
|
|
2176
2176
|
t.push(e.$form);
|
|
2177
2177
|
else if (typeof e == "object" && e !== null)
|
|
2178
|
-
for (const a of Object.values(e))
|
|
2178
|
+
for (const a of Object.values(e)) Ys(a, t);
|
|
2179
2179
|
return t;
|
|
2180
2180
|
}
|
|
2181
2181
|
function cr(e, t) {
|
|
@@ -2237,7 +2237,7 @@ function pr(e, t) {
|
|
|
2237
2237
|
function hr(e, t) {
|
|
2238
2238
|
return e.fields.filter((a) => pr(a, t));
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function bc(e, t) {
|
|
2241
2241
|
const a = { ...t };
|
|
2242
2242
|
for (const s of hr(e, a))
|
|
2243
2243
|
(a[s.key] === void 0 || a[s.key] === null) && s.default !== void 0 && (a[s.key] = s.default);
|
|
@@ -2270,7 +2270,7 @@ function gr(e) {
|
|
|
2270
2270
|
const t = e == null ? void 0 : e.shape;
|
|
2271
2271
|
return t ? Object.keys(t) : void 0;
|
|
2272
2272
|
}
|
|
2273
|
-
const
|
|
2273
|
+
const Gs = /* @__PURE__ */ new Map(), qt = [], fr = /* @__PURE__ */ new Map(), ms = "prefix:";
|
|
2274
2274
|
function Ar(e) {
|
|
2275
2275
|
for (const [t, a] of Object.entries(e))
|
|
2276
2276
|
vr([t], a);
|
|
@@ -2280,11 +2280,11 @@ function vr(e, t) {
|
|
|
2280
2280
|
br(a, e);
|
|
2281
2281
|
for (const s of a) fr.set(s.builderKey, s);
|
|
2282
2282
|
for (const s of e)
|
|
2283
|
-
if (s.startsWith(
|
|
2284
|
-
const o = s.slice(
|
|
2283
|
+
if (s.startsWith(ms)) {
|
|
2284
|
+
const o = s.slice(ms.length), n = qt.findIndex((l) => l.prefix === o);
|
|
2285
2285
|
n >= 0 ? qt[n] = { prefix: o, builders: a } : qt.push({ prefix: o, builders: a });
|
|
2286
2286
|
} else
|
|
2287
|
-
|
|
2287
|
+
Gs.set(s, a);
|
|
2288
2288
|
}
|
|
2289
2289
|
function br(e, t) {
|
|
2290
2290
|
const a = /* @__PURE__ */ new Map();
|
|
@@ -2303,7 +2303,7 @@ function br(e, t) {
|
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
2305
2305
|
function wr(e) {
|
|
2306
|
-
const t =
|
|
2306
|
+
const t = Gs.get(e);
|
|
2307
2307
|
if (t) return t;
|
|
2308
2308
|
let a;
|
|
2309
2309
|
for (const s of qt)
|
|
@@ -2320,17 +2320,17 @@ const Cr = "business::report::reports::", Dr = kt.object({
|
|
|
2320
2320
|
/** Whole UTC years between now and the report date. */
|
|
2321
2321
|
reportAgeYears: kt.number().int().min(0)
|
|
2322
2322
|
}), Mr = 864e5;
|
|
2323
|
-
function
|
|
2323
|
+
function ps(e, t) {
|
|
2324
2324
|
const a = new Date(e);
|
|
2325
2325
|
if (Number.isNaN(a.getTime()))
|
|
2326
2326
|
throw new Error(`Invalid ${t}: ${e}`);
|
|
2327
2327
|
return a;
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function hs(e) {
|
|
2330
2330
|
return new Date(Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()));
|
|
2331
2331
|
}
|
|
2332
2332
|
function Pr(e, t) {
|
|
2333
|
-
return Math.floor((
|
|
2333
|
+
return Math.floor((hs(t).getTime() - hs(e).getTime()) / Mr);
|
|
2334
2334
|
}
|
|
2335
2335
|
function Sr(e, t) {
|
|
2336
2336
|
let a = (t.getUTCFullYear() - e.getUTCFullYear()) * 12 + (t.getUTCMonth() - e.getUTCMonth());
|
|
@@ -2342,7 +2342,7 @@ function kr(e, t) {
|
|
|
2342
2342
|
return (s < o || s === o && t.getUTCDate() < e.getUTCDate()) && (a -= 1), a;
|
|
2343
2343
|
}
|
|
2344
2344
|
function Br(e) {
|
|
2345
|
-
const t =
|
|
2345
|
+
const t = ps(e.nowAtUtc, "nowAtUtc"), a = ps(e.reportDate, "reportDate");
|
|
2346
2346
|
if (a.getTime() > t.getTime())
|
|
2347
2347
|
throw new Error(`Invalid reportDate: ${e.reportDate} is after nowAtUtc`);
|
|
2348
2348
|
return {
|
|
@@ -2373,7 +2373,7 @@ function xr(e, t) {
|
|
|
2373
2373
|
return e.slice(0, 10);
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
const xt = "conditionBuilder.reportAccessWindow",
|
|
2376
|
+
const xt = "conditionBuilder.reportAccessWindow", ys = {
|
|
2377
2377
|
days: `${xt}.inheritedLastDays`,
|
|
2378
2378
|
months: `${xt}.inheritedLastMonths`,
|
|
2379
2379
|
years: `${xt}.inheritedLastYears`
|
|
@@ -2387,9 +2387,9 @@ function Er(e, t) {
|
|
|
2387
2387
|
labelKey: `${xt}.inheritedSince`,
|
|
2388
2388
|
params: { date: xr(e.sinceAtUtc, t.timeZone) }
|
|
2389
2389
|
};
|
|
2390
|
-
if (e.mode === "last" && typeof e.amount == "number" && typeof e.unit == "string" && e.unit in
|
|
2390
|
+
if (e.mode === "last" && typeof e.amount == "number" && typeof e.unit == "string" && e.unit in ys)
|
|
2391
2391
|
return {
|
|
2392
|
-
labelKey:
|
|
2392
|
+
labelKey: ys[e.unit],
|
|
2393
2393
|
params: { amount: e.amount }
|
|
2394
2394
|
};
|
|
2395
2395
|
}
|
|
@@ -2489,7 +2489,7 @@ const Rr = {
|
|
|
2489
2489
|
report: at
|
|
2490
2490
|
};
|
|
2491
2491
|
Ar(jr);
|
|
2492
|
-
function
|
|
2492
|
+
function wc(e, t) {
|
|
2493
2493
|
if (!e) return {};
|
|
2494
2494
|
const a = new Set(t.ownedFields);
|
|
2495
2495
|
return Object.fromEntries(Object.entries(e).filter(([s]) => a.has(s)));
|
|
@@ -2499,7 +2499,7 @@ function Nr(e, t) {
|
|
|
2499
2499
|
const a = new Set(t.flatMap((s) => s.ownedFields));
|
|
2500
2500
|
return Object.fromEntries(Object.entries(e).filter(([s]) => !a.has(s)));
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function Cc(e, t) {
|
|
2503
2503
|
return Object.assign(
|
|
2504
2504
|
Nr(
|
|
2505
2505
|
e,
|
|
@@ -2508,7 +2508,7 @@ function wc(e, t) {
|
|
|
2508
2508
|
...t.map((a) => a.builder.toCondition(a.formValue))
|
|
2509
2509
|
);
|
|
2510
2510
|
}
|
|
2511
|
-
const
|
|
2511
|
+
const Vs = {
|
|
2512
2512
|
mode: "Access window",
|
|
2513
2513
|
unrestricted: "No restriction",
|
|
2514
2514
|
since: "Since date",
|
|
@@ -2524,12 +2524,12 @@ const Gs = {
|
|
|
2524
2524
|
inheritedLastMonths: "last {amount} months",
|
|
2525
2525
|
inheritedLastYears: "last {amount} years"
|
|
2526
2526
|
}, Hr = {
|
|
2527
|
-
reportAccessWindow:
|
|
2527
|
+
reportAccessWindow: Vs
|
|
2528
2528
|
}, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2529
2529
|
__proto__: null,
|
|
2530
2530
|
default: Hr,
|
|
2531
|
-
reportAccessWindow:
|
|
2532
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2531
|
+
reportAccessWindow: Vs
|
|
2532
|
+
}, Symbol.toStringTag, { value: "Module" })), Is = {
|
|
2533
2533
|
mode: "访问期限",
|
|
2534
2534
|
unrestricted: "无限制",
|
|
2535
2535
|
since: "自指定日期起",
|
|
@@ -2545,12 +2545,12 @@ const Gs = {
|
|
|
2545
2545
|
inheritedLastMonths: "最近 {amount} 月",
|
|
2546
2546
|
inheritedLastYears: "最近 {amount} 年"
|
|
2547
2547
|
}, Gr = {
|
|
2548
|
-
reportAccessWindow:
|
|
2548
|
+
reportAccessWindow: Is
|
|
2549
2549
|
}, Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2550
2550
|
__proto__: null,
|
|
2551
2551
|
default: Gr,
|
|
2552
|
-
reportAccessWindow:
|
|
2553
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2552
|
+
reportAccessWindow: Is
|
|
2553
|
+
}, Symbol.toStringTag, { value: "Module" })), qs = {
|
|
2554
2554
|
mode: "訪問期限",
|
|
2555
2555
|
unrestricted: "無限制",
|
|
2556
2556
|
since: "自指定日期起",
|
|
@@ -2566,12 +2566,12 @@ const Gs = {
|
|
|
2566
2566
|
inheritedLastMonths: "最近 {amount} 月",
|
|
2567
2567
|
inheritedLastYears: "最近 {amount} 年"
|
|
2568
2568
|
}, Ir = {
|
|
2569
|
-
reportAccessWindow:
|
|
2569
|
+
reportAccessWindow: qs
|
|
2570
2570
|
}, qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2571
2571
|
__proto__: null,
|
|
2572
2572
|
default: Ir,
|
|
2573
|
-
reportAccessWindow:
|
|
2574
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2573
|
+
reportAccessWindow: qs
|
|
2574
|
+
}, Symbol.toStringTag, { value: "Module" })), Ws = {
|
|
2575
2575
|
mode: "ช่วงวันที่เข้าถึงได้",
|
|
2576
2576
|
unrestricted: "ไม่จำกัด",
|
|
2577
2577
|
since: "ตั้งแต่วันที่",
|
|
@@ -2587,17 +2587,17 @@ const Gs = {
|
|
|
2587
2587
|
inheritedLastMonths: "ล่าสุด {amount} เดือน",
|
|
2588
2588
|
inheritedLastYears: "ล่าสุด {amount} ปี"
|
|
2589
2589
|
}, Wr = {
|
|
2590
|
-
reportAccessWindow:
|
|
2590
|
+
reportAccessWindow: Ws
|
|
2591
2591
|
}, Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2592
2592
|
__proto__: null,
|
|
2593
2593
|
default: Wr,
|
|
2594
|
-
reportAccessWindow:
|
|
2594
|
+
reportAccessWindow: Ws
|
|
2595
2595
|
}, Symbol.toStringTag, { value: "Module" })), Qr = {
|
|
2596
2596
|
"en-US": { conditionBuilder: { ...Yr } },
|
|
2597
2597
|
"zh-CN": { conditionBuilder: { ...Vr } },
|
|
2598
2598
|
"zh-Hant": { conditionBuilder: { ...qr } },
|
|
2599
2599
|
"th-TH": { conditionBuilder: { ...Lr } }
|
|
2600
|
-
},
|
|
2600
|
+
}, Ls = {
|
|
2601
2601
|
predefinedRanges: {
|
|
2602
2602
|
today: "Today",
|
|
2603
2603
|
yesterday: "Yesterday",
|
|
@@ -2607,7 +2607,7 @@ const Gs = {
|
|
|
2607
2607
|
thisMonth: "This month",
|
|
2608
2608
|
lastMonth: "Last month"
|
|
2609
2609
|
}
|
|
2610
|
-
},
|
|
2610
|
+
}, Qs = {
|
|
2611
2611
|
title: "Audit Log",
|
|
2612
2612
|
export: "Export",
|
|
2613
2613
|
dateRange: {
|
|
@@ -2952,14 +2952,14 @@ const Gs = {
|
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
2954
|
}, Xr = {
|
|
2955
|
-
date:
|
|
2956
|
-
auditLog:
|
|
2955
|
+
date: Ls,
|
|
2956
|
+
auditLog: Qs
|
|
2957
2957
|
}, Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2958
2958
|
__proto__: null,
|
|
2959
|
-
auditLog:
|
|
2960
|
-
date:
|
|
2959
|
+
auditLog: Qs,
|
|
2960
|
+
date: Ls,
|
|
2961
2961
|
default: Xr
|
|
2962
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2962
|
+
}, Symbol.toStringTag, { value: "Module" })), Xs = {
|
|
2963
2963
|
predefinedRanges: {
|
|
2964
2964
|
today: "วันนี้",
|
|
2965
2965
|
yesterday: "เมื่อวาน",
|
|
@@ -2969,7 +2969,7 @@ const Gs = {
|
|
|
2969
2969
|
thisMonth: "เดือนนี้",
|
|
2970
2970
|
lastMonth: "เดือนที่แล้ว"
|
|
2971
2971
|
}
|
|
2972
|
-
},
|
|
2972
|
+
}, Us = {
|
|
2973
2973
|
title: "ประวัติการใช้งาน",
|
|
2974
2974
|
export: "ส่งออก",
|
|
2975
2975
|
dateRange: {
|
|
@@ -3315,14 +3315,14 @@ const Gs = {
|
|
|
3315
3315
|
}
|
|
3316
3316
|
}
|
|
3317
3317
|
}, Zr = {
|
|
3318
|
-
date:
|
|
3319
|
-
auditLog:
|
|
3318
|
+
date: Xs,
|
|
3319
|
+
auditLog: Us
|
|
3320
3320
|
}, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3321
3321
|
__proto__: null,
|
|
3322
|
-
auditLog:
|
|
3323
|
-
date:
|
|
3322
|
+
auditLog: Us,
|
|
3323
|
+
date: Xs,
|
|
3324
3324
|
default: Zr
|
|
3325
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3325
|
+
}, Symbol.toStringTag, { value: "Module" })), Zs = {
|
|
3326
3326
|
predefinedRanges: {
|
|
3327
3327
|
today: "今天",
|
|
3328
3328
|
yesterday: "昨天",
|
|
@@ -3332,7 +3332,7 @@ const Gs = {
|
|
|
3332
3332
|
thisMonth: "本月",
|
|
3333
3333
|
lastMonth: "上月"
|
|
3334
3334
|
}
|
|
3335
|
-
},
|
|
3335
|
+
}, zs = {
|
|
3336
3336
|
title: "审计日志",
|
|
3337
3337
|
export: "导出",
|
|
3338
3338
|
dateRange: {
|
|
@@ -3678,14 +3678,14 @@ const Gs = {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
3680
3680
|
}, Kr = {
|
|
3681
|
-
date:
|
|
3682
|
-
auditLog:
|
|
3681
|
+
date: Zs,
|
|
3682
|
+
auditLog: zs
|
|
3683
3683
|
}, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3684
3684
|
__proto__: null,
|
|
3685
|
-
auditLog:
|
|
3686
|
-
date:
|
|
3685
|
+
auditLog: zs,
|
|
3686
|
+
date: Zs,
|
|
3687
3687
|
default: Kr
|
|
3688
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3688
|
+
}, Symbol.toStringTag, { value: "Module" })), Ks = {
|
|
3689
3689
|
predefinedRanges: {
|
|
3690
3690
|
today: "今天",
|
|
3691
3691
|
yesterday: "昨天",
|
|
@@ -3695,7 +3695,7 @@ const Gs = {
|
|
|
3695
3695
|
thisMonth: "本月",
|
|
3696
3696
|
lastMonth: "上月"
|
|
3697
3697
|
}
|
|
3698
|
-
},
|
|
3698
|
+
}, Js = {
|
|
3699
3699
|
title: "審計日誌",
|
|
3700
3700
|
export: "匯出",
|
|
3701
3701
|
dateRange: {
|
|
@@ -4041,19 +4041,19 @@ const Gs = {
|
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
4043
|
}, _r = {
|
|
4044
|
-
date:
|
|
4045
|
-
auditLog:
|
|
4044
|
+
date: Ks,
|
|
4045
|
+
auditLog: Js
|
|
4046
4046
|
}, $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4047
4047
|
__proto__: null,
|
|
4048
|
-
auditLog:
|
|
4049
|
-
date:
|
|
4048
|
+
auditLog: Js,
|
|
4049
|
+
date: Ks,
|
|
4050
4050
|
default: _r
|
|
4051
4051
|
}, Symbol.toStringTag, { value: "Module" })), ei = {
|
|
4052
4052
|
"en-US": Ur,
|
|
4053
4053
|
"zh-CN": Jr,
|
|
4054
4054
|
"th-TH": zr,
|
|
4055
4055
|
"zh-Hant": $r
|
|
4056
|
-
},
|
|
4056
|
+
}, _s = {
|
|
4057
4057
|
employee: {
|
|
4058
4058
|
title: "Employee",
|
|
4059
4059
|
subtitle: "Manage employees with access to the POS at your outlets.",
|
|
@@ -4259,12 +4259,12 @@ const Gs = {
|
|
|
4259
4259
|
}
|
|
4260
4260
|
}
|
|
4261
4261
|
}, ti = {
|
|
4262
|
-
hr:
|
|
4262
|
+
hr: _s
|
|
4263
4263
|
}, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4264
4264
|
__proto__: null,
|
|
4265
4265
|
default: ti,
|
|
4266
|
-
hr:
|
|
4267
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4266
|
+
hr: _s
|
|
4267
|
+
}, Symbol.toStringTag, { value: "Module" })), $s = {
|
|
4268
4268
|
employee: {
|
|
4269
4269
|
title: "พนักงาน",
|
|
4270
4270
|
subtitle: "จัดการพนักงานที่สามารถเข้าถึงระบบ POS ในสาขาของคุณ",
|
|
@@ -4469,12 +4469,12 @@ const Gs = {
|
|
|
4469
4469
|
}
|
|
4470
4470
|
}
|
|
4471
4471
|
}, si = {
|
|
4472
|
-
hr:
|
|
4472
|
+
hr: $s
|
|
4473
4473
|
}, oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4474
4474
|
__proto__: null,
|
|
4475
4475
|
default: si,
|
|
4476
|
-
hr:
|
|
4477
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4476
|
+
hr: $s
|
|
4477
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = {
|
|
4478
4478
|
employee: {
|
|
4479
4479
|
title: "员工",
|
|
4480
4480
|
subtitle: "管理可访问您门店 POS 系统的员工。",
|
|
@@ -4680,12 +4680,12 @@ const Gs = {
|
|
|
4680
4680
|
}
|
|
4681
4681
|
}
|
|
4682
4682
|
}, ni = {
|
|
4683
|
-
hr:
|
|
4683
|
+
hr: eo
|
|
4684
4684
|
}, ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4685
4685
|
__proto__: null,
|
|
4686
4686
|
default: ni,
|
|
4687
|
-
hr:
|
|
4688
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4687
|
+
hr: eo
|
|
4688
|
+
}, Symbol.toStringTag, { value: "Module" })), to = {
|
|
4689
4689
|
employee: {
|
|
4690
4690
|
title: "員工",
|
|
4691
4691
|
subtitle: "管理可存取您門市 POS 系統的員工。",
|
|
@@ -4886,17 +4886,17 @@ const Gs = {
|
|
|
4886
4886
|
}
|
|
4887
4887
|
}
|
|
4888
4888
|
}, ii = {
|
|
4889
|
-
hr:
|
|
4889
|
+
hr: to
|
|
4890
4890
|
}, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4891
4891
|
__proto__: null,
|
|
4892
4892
|
default: ii,
|
|
4893
|
-
hr:
|
|
4893
|
+
hr: to
|
|
4894
4894
|
}, Symbol.toStringTag, { value: "Module" })), di = {
|
|
4895
4895
|
"en-US": ai,
|
|
4896
4896
|
"zh-CN": ri,
|
|
4897
4897
|
"th-TH": oi,
|
|
4898
4898
|
"zh-Hant": li
|
|
4899
|
-
},
|
|
4899
|
+
}, ao = {
|
|
4900
4900
|
title: "Team members",
|
|
4901
4901
|
subtitle: "Manage team members with access to the Portal and POS. Assign Portal permissions and POS roles.",
|
|
4902
4902
|
actions: {
|
|
@@ -5018,7 +5018,7 @@ const Gs = {
|
|
|
5018
5018
|
selectPlaceholder: "Select permission role"
|
|
5019
5019
|
}
|
|
5020
5020
|
}
|
|
5021
|
-
},
|
|
5021
|
+
}, so = {
|
|
5022
5022
|
title: "Roles",
|
|
5023
5023
|
createButtonLabel: "Create role",
|
|
5024
5024
|
search: {
|
|
@@ -5148,14 +5148,14 @@ const Gs = {
|
|
|
5148
5148
|
}
|
|
5149
5149
|
}
|
|
5150
5150
|
}, ci = {
|
|
5151
|
-
team:
|
|
5152
|
-
permissionSet:
|
|
5151
|
+
team: ao,
|
|
5152
|
+
permissionSet: so
|
|
5153
5153
|
}, ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5154
5154
|
__proto__: null,
|
|
5155
5155
|
default: ci,
|
|
5156
|
-
permissionSet:
|
|
5157
|
-
team:
|
|
5158
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5156
|
+
permissionSet: so,
|
|
5157
|
+
team: ao
|
|
5158
|
+
}, Symbol.toStringTag, { value: "Module" })), oo = {
|
|
5159
5159
|
title: "ผู้ดูแลระบบ",
|
|
5160
5160
|
subtitle: "จัดการผู้ดูแลระบบที่สามารถเข้าถึง Portal และ POS กำหนดสิทธิ์ Portal และบทบาท POS",
|
|
5161
5161
|
actions: {
|
|
@@ -5277,7 +5277,7 @@ const Gs = {
|
|
|
5277
5277
|
selectPlaceholder: "เลือกตำแหน่งสิทธิ์"
|
|
5278
5278
|
}
|
|
5279
5279
|
}
|
|
5280
|
-
},
|
|
5280
|
+
}, no = {
|
|
5281
5281
|
title: "บทบาท",
|
|
5282
5282
|
createButtonLabel: "สร้างบทบาท",
|
|
5283
5283
|
search: {
|
|
@@ -5407,14 +5407,14 @@ const Gs = {
|
|
|
5407
5407
|
}
|
|
5408
5408
|
}
|
|
5409
5409
|
}, mi = {
|
|
5410
|
-
team:
|
|
5411
|
-
permissionSet:
|
|
5410
|
+
team: oo,
|
|
5411
|
+
permissionSet: no
|
|
5412
5412
|
}, pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5413
5413
|
__proto__: null,
|
|
5414
5414
|
default: mi,
|
|
5415
|
-
permissionSet:
|
|
5416
|
-
team:
|
|
5417
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5415
|
+
permissionSet: no,
|
|
5416
|
+
team: oo
|
|
5417
|
+
}, Symbol.toStringTag, { value: "Module" })), ro = {
|
|
5418
5418
|
title: "团队成员",
|
|
5419
5419
|
subtitle: "管理可访问 Portal 和 POS 的团队成员,分配 Portal 权限和 POS 角色。",
|
|
5420
5420
|
actions: {
|
|
@@ -5536,7 +5536,7 @@ const Gs = {
|
|
|
5536
5536
|
selectPlaceholder: "选择权限角色"
|
|
5537
5537
|
}
|
|
5538
5538
|
}
|
|
5539
|
-
},
|
|
5539
|
+
}, io = {
|
|
5540
5540
|
title: "角色",
|
|
5541
5541
|
createButtonLabel: "创建角色",
|
|
5542
5542
|
search: {
|
|
@@ -5666,14 +5666,14 @@ const Gs = {
|
|
|
5666
5666
|
}
|
|
5667
5667
|
}
|
|
5668
5668
|
}, hi = {
|
|
5669
|
-
team:
|
|
5670
|
-
permissionSet:
|
|
5669
|
+
team: ro,
|
|
5670
|
+
permissionSet: io
|
|
5671
5671
|
}, yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5672
5672
|
__proto__: null,
|
|
5673
5673
|
default: hi,
|
|
5674
|
-
permissionSet:
|
|
5675
|
-
team:
|
|
5676
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5674
|
+
permissionSet: io,
|
|
5675
|
+
team: ro
|
|
5676
|
+
}, Symbol.toStringTag, { value: "Module" })), lo = {
|
|
5677
5677
|
title: "團隊成員",
|
|
5678
5678
|
subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
|
|
5679
5679
|
actions: {
|
|
@@ -5802,7 +5802,7 @@ const Gs = {
|
|
|
5802
5802
|
placeholder: "搜索角色"
|
|
5803
5803
|
}
|
|
5804
5804
|
}
|
|
5805
|
-
},
|
|
5805
|
+
}, co = {
|
|
5806
5806
|
title: "角色",
|
|
5807
5807
|
createButtonLabel: "創建角色",
|
|
5808
5808
|
search: {
|
|
@@ -5932,19 +5932,19 @@ const Gs = {
|
|
|
5932
5932
|
}
|
|
5933
5933
|
}
|
|
5934
5934
|
}, gi = {
|
|
5935
|
-
team:
|
|
5936
|
-
permissionSet:
|
|
5935
|
+
team: lo,
|
|
5936
|
+
permissionSet: co
|
|
5937
5937
|
}, fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5938
5938
|
__proto__: null,
|
|
5939
5939
|
default: gi,
|
|
5940
|
-
permissionSet:
|
|
5941
|
-
team:
|
|
5940
|
+
permissionSet: co,
|
|
5941
|
+
team: lo
|
|
5942
5942
|
}, Symbol.toStringTag, { value: "Module" })), Ai = {
|
|
5943
5943
|
"en-US": ui,
|
|
5944
5944
|
"zh-CN": yi,
|
|
5945
5945
|
"th-TH": pi,
|
|
5946
5946
|
"zh-Hant": fi
|
|
5947
|
-
},
|
|
5947
|
+
}, uo = {
|
|
5948
5948
|
title: "POS Grant",
|
|
5949
5949
|
actions: {
|
|
5950
5950
|
create: "Create Passcode",
|
|
@@ -5999,12 +5999,12 @@ const Gs = {
|
|
|
5999
5999
|
copied: "Passcode copied"
|
|
6000
6000
|
}
|
|
6001
6001
|
}, vi = {
|
|
6002
|
-
grantUser:
|
|
6002
|
+
grantUser: uo
|
|
6003
6003
|
}, bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6004
6004
|
__proto__: null,
|
|
6005
6005
|
default: vi,
|
|
6006
|
-
grantUser:
|
|
6007
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6006
|
+
grantUser: uo
|
|
6007
|
+
}, Symbol.toStringTag, { value: "Module" })), mo = {
|
|
6008
6008
|
title: "POS Grant",
|
|
6009
6009
|
actions: {
|
|
6010
6010
|
create: "สร้างรหัสผ่าน",
|
|
@@ -6059,12 +6059,12 @@ const Gs = {
|
|
|
6059
6059
|
copied: "คัดลอกรหัสผ่านแล้ว"
|
|
6060
6060
|
}
|
|
6061
6061
|
}, wi = {
|
|
6062
|
-
grantUser:
|
|
6062
|
+
grantUser: mo
|
|
6063
6063
|
}, Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6064
6064
|
__proto__: null,
|
|
6065
6065
|
default: wi,
|
|
6066
|
-
grantUser:
|
|
6067
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6066
|
+
grantUser: mo
|
|
6067
|
+
}, Symbol.toStringTag, { value: "Module" })), po = {
|
|
6068
6068
|
title: "POS 授予",
|
|
6069
6069
|
actions: {
|
|
6070
6070
|
create: "创建密码",
|
|
@@ -6119,12 +6119,12 @@ const Gs = {
|
|
|
6119
6119
|
copied: "密码已复制"
|
|
6120
6120
|
}
|
|
6121
6121
|
}, Di = {
|
|
6122
|
-
grantUser:
|
|
6122
|
+
grantUser: po
|
|
6123
6123
|
}, Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6124
6124
|
__proto__: null,
|
|
6125
6125
|
default: Di,
|
|
6126
|
-
grantUser:
|
|
6127
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6126
|
+
grantUser: po
|
|
6127
|
+
}, Symbol.toStringTag, { value: "Module" })), ho = {
|
|
6128
6128
|
title: "POS 授予",
|
|
6129
6129
|
actions: {
|
|
6130
6130
|
create: "创建密码",
|
|
@@ -6179,17 +6179,17 @@ const Gs = {
|
|
|
6179
6179
|
copied: "密碼已複製"
|
|
6180
6180
|
}
|
|
6181
6181
|
}, Pi = {
|
|
6182
|
-
grantUser:
|
|
6182
|
+
grantUser: ho
|
|
6183
6183
|
}, Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6184
6184
|
__proto__: null,
|
|
6185
6185
|
default: Pi,
|
|
6186
|
-
grantUser:
|
|
6186
|
+
grantUser: ho
|
|
6187
6187
|
}, Symbol.toStringTag, { value: "Module" })), ki = {
|
|
6188
6188
|
"en-US": bi,
|
|
6189
6189
|
"zh-CN": Mi,
|
|
6190
6190
|
"th-TH": Ci,
|
|
6191
6191
|
"zh-Hant": Si
|
|
6192
|
-
},
|
|
6192
|
+
}, yo = {
|
|
6193
6193
|
title: "Access Codes",
|
|
6194
6194
|
actions: {
|
|
6195
6195
|
create: "Create Access Codes",
|
|
@@ -6274,12 +6274,12 @@ const Gs = {
|
|
|
6274
6274
|
copied: "Code copied"
|
|
6275
6275
|
}
|
|
6276
6276
|
}, Bi = {
|
|
6277
|
-
approvalCode:
|
|
6277
|
+
approvalCode: yo
|
|
6278
6278
|
}, Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6279
6279
|
__proto__: null,
|
|
6280
|
-
approvalCode:
|
|
6280
|
+
approvalCode: yo,
|
|
6281
6281
|
default: Bi
|
|
6282
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6282
|
+
}, Symbol.toStringTag, { value: "Module" })), go = {
|
|
6283
6283
|
title: "รหัสเข้าใช้งาน",
|
|
6284
6284
|
actions: {
|
|
6285
6285
|
create: "สร้างรหัสเข้าใช้งาน",
|
|
@@ -6364,12 +6364,12 @@ const Gs = {
|
|
|
6364
6364
|
copied: "คัดลอกรหัสแล้ว"
|
|
6365
6365
|
}
|
|
6366
6366
|
}, Ti = {
|
|
6367
|
-
approvalCode:
|
|
6367
|
+
approvalCode: go
|
|
6368
6368
|
}, xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6369
6369
|
__proto__: null,
|
|
6370
|
-
approvalCode:
|
|
6370
|
+
approvalCode: go,
|
|
6371
6371
|
default: Ti
|
|
6372
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6372
|
+
}, Symbol.toStringTag, { value: "Module" })), fo = {
|
|
6373
6373
|
title: "授权码",
|
|
6374
6374
|
actions: {
|
|
6375
6375
|
create: "创建授权码",
|
|
@@ -6454,12 +6454,12 @@ const Gs = {
|
|
|
6454
6454
|
copied: "授权码已复制"
|
|
6455
6455
|
}
|
|
6456
6456
|
}, Ei = {
|
|
6457
|
-
approvalCode:
|
|
6457
|
+
approvalCode: fo
|
|
6458
6458
|
}, Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6459
6459
|
__proto__: null,
|
|
6460
|
-
approvalCode:
|
|
6460
|
+
approvalCode: fo,
|
|
6461
6461
|
default: Ei
|
|
6462
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6462
|
+
}, Symbol.toStringTag, { value: "Module" })), Ao = {
|
|
6463
6463
|
title: "授權碼",
|
|
6464
6464
|
actions: {
|
|
6465
6465
|
create: "建立授權碼",
|
|
@@ -6544,17 +6544,17 @@ const Gs = {
|
|
|
6544
6544
|
copied: "授權碼已複製"
|
|
6545
6545
|
}
|
|
6546
6546
|
}, Fi = {
|
|
6547
|
-
approvalCode:
|
|
6547
|
+
approvalCode: Ao
|
|
6548
6548
|
}, ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6549
6549
|
__proto__: null,
|
|
6550
|
-
approvalCode:
|
|
6550
|
+
approvalCode: Ao,
|
|
6551
6551
|
default: Fi
|
|
6552
6552
|
}, Symbol.toStringTag, { value: "Module" })), Ni = {
|
|
6553
6553
|
"en-US": Oi,
|
|
6554
6554
|
"zh-CN": Ri,
|
|
6555
6555
|
"th-TH": xi,
|
|
6556
6556
|
"zh-Hant": ji
|
|
6557
|
-
},
|
|
6557
|
+
}, vo = {
|
|
6558
6558
|
title: "POS Access",
|
|
6559
6559
|
tabs: {
|
|
6560
6560
|
grants: "Access Grants",
|
|
@@ -6563,12 +6563,12 @@ const Gs = {
|
|
|
6563
6563
|
codesDescription: "Generate single-use codes to authorize sensitive actions like refunds or voids."
|
|
6564
6564
|
}
|
|
6565
6565
|
}, Hi = {
|
|
6566
|
-
posAccess:
|
|
6566
|
+
posAccess: vo
|
|
6567
6567
|
}, Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6568
6568
|
__proto__: null,
|
|
6569
6569
|
default: Hi,
|
|
6570
|
-
posAccess:
|
|
6571
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6570
|
+
posAccess: vo
|
|
6571
|
+
}, Symbol.toStringTag, { value: "Module" })), bo = {
|
|
6572
6572
|
title: "สิทธิ์ POS",
|
|
6573
6573
|
tabs: {
|
|
6574
6574
|
grants: "สิทธิ์ระยะยาว",
|
|
@@ -6577,12 +6577,12 @@ const Gs = {
|
|
|
6577
6577
|
codesDescription: "สร้างรหัสแบบใช้ครั้งเดียวเพื่ออนุมัติการทำงานที่ละเอียดอ่อน เช่น การคืนเงินหรือการยกเลิก"
|
|
6578
6578
|
}
|
|
6579
6579
|
}, Gi = {
|
|
6580
|
-
posAccess:
|
|
6580
|
+
posAccess: bo
|
|
6581
6581
|
}, Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6582
6582
|
__proto__: null,
|
|
6583
6583
|
default: Gi,
|
|
6584
|
-
posAccess:
|
|
6585
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6584
|
+
posAccess: bo
|
|
6585
|
+
}, Symbol.toStringTag, { value: "Module" })), wo = {
|
|
6586
6586
|
title: "POS 权限",
|
|
6587
6587
|
tabs: {
|
|
6588
6588
|
grants: "长期授权",
|
|
@@ -6591,12 +6591,12 @@ const Gs = {
|
|
|
6591
6591
|
codesDescription: "生成一次性授权码,用于批准退款、作废等敏感操作。"
|
|
6592
6592
|
}
|
|
6593
6593
|
}, Ii = {
|
|
6594
|
-
posAccess:
|
|
6594
|
+
posAccess: wo
|
|
6595
6595
|
}, qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6596
6596
|
__proto__: null,
|
|
6597
6597
|
default: Ii,
|
|
6598
|
-
posAccess:
|
|
6599
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6598
|
+
posAccess: wo
|
|
6599
|
+
}, Symbol.toStringTag, { value: "Module" })), Co = {
|
|
6600
6600
|
title: "POS 權限",
|
|
6601
6601
|
tabs: {
|
|
6602
6602
|
grants: "長期授權",
|
|
@@ -6605,17 +6605,17 @@ const Gs = {
|
|
|
6605
6605
|
codesDescription: "產生一次性授權碼,用於核准退款、作廢等敏感操作。"
|
|
6606
6606
|
}
|
|
6607
6607
|
}, Wi = {
|
|
6608
|
-
posAccess:
|
|
6608
|
+
posAccess: Co
|
|
6609
6609
|
}, Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6610
6610
|
__proto__: null,
|
|
6611
6611
|
default: Wi,
|
|
6612
|
-
posAccess:
|
|
6612
|
+
posAccess: Co
|
|
6613
6613
|
}, Symbol.toStringTag, { value: "Module" })), Qi = {
|
|
6614
6614
|
"en-US": Yi,
|
|
6615
6615
|
"zh-CN": qi,
|
|
6616
6616
|
"th-TH": Vi,
|
|
6617
6617
|
"zh-Hant": Li
|
|
6618
|
-
},
|
|
6618
|
+
}, Do = {
|
|
6619
6619
|
nav: {
|
|
6620
6620
|
section: "Scheduling",
|
|
6621
6621
|
board: "Schedule",
|
|
@@ -8360,12 +8360,12 @@ Max 5 days / week`,
|
|
|
8360
8360
|
loadFailed: "Could not load the schedule"
|
|
8361
8361
|
}
|
|
8362
8362
|
}, Xi = {
|
|
8363
|
-
scheduling:
|
|
8363
|
+
scheduling: Do
|
|
8364
8364
|
}, Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8365
8365
|
__proto__: null,
|
|
8366
8366
|
default: Xi,
|
|
8367
|
-
scheduling:
|
|
8368
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8367
|
+
scheduling: Do
|
|
8368
|
+
}, Symbol.toStringTag, { value: "Module" })), Mo = {
|
|
8369
8369
|
nav: {
|
|
8370
8370
|
section: "การจัดตารางงาน",
|
|
8371
8371
|
board: "ตารางงาน",
|
|
@@ -10110,12 +10110,12 @@ Max 5 days / week`,
|
|
|
10110
10110
|
loadFailed: "ไม่สามารถโหลดตารางงานได้"
|
|
10111
10111
|
}
|
|
10112
10112
|
}, Zi = {
|
|
10113
|
-
scheduling:
|
|
10113
|
+
scheduling: Mo
|
|
10114
10114
|
}, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10115
10115
|
__proto__: null,
|
|
10116
10116
|
default: Zi,
|
|
10117
|
-
scheduling:
|
|
10118
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10117
|
+
scheduling: Mo
|
|
10118
|
+
}, Symbol.toStringTag, { value: "Module" })), Po = {
|
|
10119
10119
|
nav: {
|
|
10120
10120
|
section: "Scheduling",
|
|
10121
10121
|
board: "Schedule",
|
|
@@ -11860,12 +11860,12 @@ Max 5 days / week`,
|
|
|
11860
11860
|
loadFailed: "Could not load the schedule"
|
|
11861
11861
|
}
|
|
11862
11862
|
}, Ki = {
|
|
11863
|
-
scheduling:
|
|
11863
|
+
scheduling: Po
|
|
11864
11864
|
}, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11865
11865
|
__proto__: null,
|
|
11866
11866
|
default: Ki,
|
|
11867
|
-
scheduling:
|
|
11868
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
11867
|
+
scheduling: Po
|
|
11868
|
+
}, Symbol.toStringTag, { value: "Module" })), So = {
|
|
11869
11869
|
nav: {
|
|
11870
11870
|
section: "Scheduling",
|
|
11871
11871
|
board: "Schedule",
|
|
@@ -13610,11 +13610,11 @@ Max 5 days / week`,
|
|
|
13610
13610
|
loadFailed: "Could not load the schedule"
|
|
13611
13611
|
}
|
|
13612
13612
|
}, _i = {
|
|
13613
|
-
scheduling:
|
|
13613
|
+
scheduling: So
|
|
13614
13614
|
}, $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13615
13615
|
__proto__: null,
|
|
13616
13616
|
default: _i,
|
|
13617
|
-
scheduling:
|
|
13617
|
+
scheduling: So
|
|
13618
13618
|
}, Symbol.toStringTag, { value: "Module" })), el = {
|
|
13619
13619
|
"en-US": Ui,
|
|
13620
13620
|
"zh-CN": Ji,
|
|
@@ -14298,6 +14298,13 @@ const tl = {
|
|
|
14298
14298
|
category: v.operation,
|
|
14299
14299
|
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
14300
14300
|
},
|
|
14301
|
+
operationStorePause: {
|
|
14302
|
+
label: "Store Pause Management",
|
|
14303
|
+
subject: u.operation_storePause,
|
|
14304
|
+
actions: [r.manage],
|
|
14305
|
+
category: v.operation,
|
|
14306
|
+
showByFeatureFlag: "hrm_enable_operation_permission"
|
|
14307
|
+
},
|
|
14301
14308
|
// Mini Program
|
|
14302
14309
|
miniProgramProfile: {
|
|
14303
14310
|
label: "Business Profile Management",
|
|
@@ -14349,9 +14356,9 @@ const tl = {
|
|
|
14349
14356
|
category: v.media,
|
|
14350
14357
|
showByFeatureFlag: "hrm_enable_media_permission"
|
|
14351
14358
|
}
|
|
14352
|
-
},
|
|
14359
|
+
}, ko = (e) => new Set(
|
|
14353
14360
|
Object.values(tl).filter((t) => e(t.tenants)).map((t) => t.subject)
|
|
14354
|
-
),
|
|
14361
|
+
), Dc = ko((e) => !!(e != null && e.includes(R.foodCourt))), Mc = ko((e) => !e || e.includes(R.business)), Pc = /* @__PURE__ */ new Set(["closeup", "dailySales", "hourlySales"]), Sc = [
|
|
14355
14362
|
{
|
|
14356
14363
|
label: "",
|
|
14357
14364
|
subject: N.Order,
|
|
@@ -14732,7 +14739,7 @@ const $ = [
|
|
|
14732
14739
|
r.delete
|
|
14733
14740
|
]
|
|
14734
14741
|
}
|
|
14735
|
-
],
|
|
14742
|
+
], Bo = [
|
|
14736
14743
|
...$,
|
|
14737
14744
|
{
|
|
14738
14745
|
label: "Transaction",
|
|
@@ -14744,7 +14751,7 @@ const $ = [
|
|
|
14744
14751
|
r.delete
|
|
14745
14752
|
]
|
|
14746
14753
|
}
|
|
14747
|
-
],
|
|
14754
|
+
], Oo = [
|
|
14748
14755
|
...$,
|
|
14749
14756
|
{
|
|
14750
14757
|
label: "Store",
|
|
@@ -14811,7 +14818,7 @@ const $ = [
|
|
|
14811
14818
|
r.delete
|
|
14812
14819
|
]
|
|
14813
14820
|
}
|
|
14814
|
-
],
|
|
14821
|
+
], To = [
|
|
14815
14822
|
...$,
|
|
14816
14823
|
{
|
|
14817
14824
|
label: "Referral",
|
|
@@ -14823,7 +14830,7 @@ const $ = [
|
|
|
14823
14830
|
r.delete
|
|
14824
14831
|
]
|
|
14825
14832
|
}
|
|
14826
|
-
],
|
|
14833
|
+
], xo = [
|
|
14827
14834
|
...$,
|
|
14828
14835
|
{
|
|
14829
14836
|
label: "Marketing Material",
|
|
@@ -14835,7 +14842,7 @@ const $ = [
|
|
|
14835
14842
|
r.delete
|
|
14836
14843
|
]
|
|
14837
14844
|
}
|
|
14838
|
-
],
|
|
14845
|
+
], Eo = [
|
|
14839
14846
|
...$,
|
|
14840
14847
|
{
|
|
14841
14848
|
label: "Analytic",
|
|
@@ -14938,7 +14945,7 @@ const $ = [
|
|
|
14938
14945
|
r.delete
|
|
14939
14946
|
]
|
|
14940
14947
|
}
|
|
14941
|
-
],
|
|
14948
|
+
], Ro = [
|
|
14942
14949
|
...$,
|
|
14943
14950
|
{
|
|
14944
14951
|
label: "Loyalty Member",
|
|
@@ -14950,7 +14957,7 @@ const $ = [
|
|
|
14950
14957
|
r.delete
|
|
14951
14958
|
]
|
|
14952
14959
|
}
|
|
14953
|
-
],
|
|
14960
|
+
], Fo = [
|
|
14954
14961
|
...$,
|
|
14955
14962
|
{
|
|
14956
14963
|
label: "Loyalty Segment",
|
|
@@ -14962,7 +14969,7 @@ const $ = [
|
|
|
14962
14969
|
r.delete
|
|
14963
14970
|
]
|
|
14964
14971
|
}
|
|
14965
|
-
],
|
|
14972
|
+
], jo = [
|
|
14966
14973
|
...$,
|
|
14967
14974
|
{
|
|
14968
14975
|
label: "Loyalty Card",
|
|
@@ -14974,41 +14981,41 @@ const $ = [
|
|
|
14974
14981
|
r.delete
|
|
14975
14982
|
]
|
|
14976
14983
|
}
|
|
14977
|
-
],
|
|
14984
|
+
], No = [
|
|
14978
14985
|
...$,
|
|
14979
14986
|
{
|
|
14980
14987
|
label: "Bin",
|
|
14981
14988
|
subject: K.crm_bin,
|
|
14982
14989
|
actions: [r.read, r.update, r.delete]
|
|
14983
14990
|
}
|
|
14984
|
-
],
|
|
14991
|
+
], Ho = ge(
|
|
14985
14992
|
Pe,
|
|
14986
14993
|
ll
|
|
14987
|
-
),
|
|
14994
|
+
), Yo = ge(
|
|
14988
14995
|
Pe,
|
|
14989
14996
|
dl
|
|
14990
|
-
),
|
|
14997
|
+
), Go = ge(
|
|
14991
14998
|
Pe,
|
|
14992
14999
|
cl
|
|
14993
|
-
),
|
|
15000
|
+
), Vo = ge(
|
|
14994
15001
|
Pe,
|
|
14995
15002
|
ul
|
|
14996
|
-
),
|
|
15003
|
+
), Io = ge(
|
|
14997
15004
|
Pe,
|
|
14998
15005
|
ml
|
|
14999
|
-
),
|
|
15006
|
+
), qo = ge(
|
|
15000
15007
|
Pe,
|
|
15001
15008
|
pl
|
|
15002
|
-
),
|
|
15009
|
+
), Wo = ge(
|
|
15003
15010
|
Pe,
|
|
15004
15011
|
hl
|
|
15005
|
-
),
|
|
15012
|
+
), Lo = ge(
|
|
15006
15013
|
Pe,
|
|
15007
15014
|
yl
|
|
15008
15015
|
), gl = ge(
|
|
15009
15016
|
Pe,
|
|
15010
|
-
|
|
15011
|
-
),
|
|
15017
|
+
To
|
|
15018
|
+
), Qo = ge(
|
|
15012
15019
|
Pe,
|
|
15013
15020
|
rl
|
|
15014
15021
|
), fl = [
|
|
@@ -15038,14 +15045,13 @@ const $ = [
|
|
|
15038
15045
|
], vl = ge(
|
|
15039
15046
|
al,
|
|
15040
15047
|
sl,
|
|
15041
|
-
ko,
|
|
15042
15048
|
Bo,
|
|
15049
|
+
Oo,
|
|
15043
15050
|
ol,
|
|
15044
15051
|
nl,
|
|
15045
|
-
|
|
15052
|
+
Qo,
|
|
15046
15053
|
il,
|
|
15047
|
-
|
|
15048
|
-
No,
|
|
15054
|
+
Eo,
|
|
15049
15055
|
Ho,
|
|
15050
15056
|
Yo,
|
|
15051
15057
|
Go,
|
|
@@ -15053,14 +15059,15 @@ const $ = [
|
|
|
15053
15059
|
Io,
|
|
15054
15060
|
qo,
|
|
15055
15061
|
Wo,
|
|
15056
|
-
|
|
15062
|
+
Lo,
|
|
15057
15063
|
Ro,
|
|
15058
15064
|
Fo,
|
|
15059
|
-
jo
|
|
15065
|
+
jo,
|
|
15066
|
+
No
|
|
15060
15067
|
), bl = ge(
|
|
15061
15068
|
Pe,
|
|
15062
|
-
|
|
15063
|
-
|
|
15069
|
+
To,
|
|
15070
|
+
xo
|
|
15064
15071
|
), wl = ge(
|
|
15065
15072
|
Pe,
|
|
15066
15073
|
fl
|
|
@@ -15088,62 +15095,62 @@ const $ = [
|
|
|
15088
15095
|
[`set_${u.crm_analytic}`]: {
|
|
15089
15096
|
key: "sys:crm:analytic",
|
|
15090
15097
|
name: "CRM Analytic",
|
|
15091
|
-
permissions:
|
|
15098
|
+
permissions: Eo
|
|
15092
15099
|
},
|
|
15093
15100
|
[`set_${u.crm_tier}`]: {
|
|
15094
15101
|
key: "sys:crm:tier",
|
|
15095
15102
|
name: "CRM Tier",
|
|
15096
|
-
permissions:
|
|
15103
|
+
permissions: Ho
|
|
15097
15104
|
},
|
|
15098
15105
|
[`set_${u.crm_title}`]: {
|
|
15099
15106
|
key: "sys:crm:title",
|
|
15100
15107
|
name: "CRM Title",
|
|
15101
|
-
permissions:
|
|
15108
|
+
permissions: Yo
|
|
15102
15109
|
},
|
|
15103
15110
|
[`set_${u.crm_broadcast}`]: {
|
|
15104
15111
|
key: "sys:crm:broadcast",
|
|
15105
15112
|
name: "CRM Broadcast",
|
|
15106
|
-
permissions:
|
|
15113
|
+
permissions: Go
|
|
15107
15114
|
},
|
|
15108
15115
|
[`set_${u.crm_point}`]: {
|
|
15109
15116
|
key: "sys:crm:point",
|
|
15110
15117
|
name: "CRM Point",
|
|
15111
|
-
permissions:
|
|
15118
|
+
permissions: Vo
|
|
15112
15119
|
},
|
|
15113
15120
|
[`set_${u.crm_credit}`]: {
|
|
15114
15121
|
key: "sys:crm:credit",
|
|
15115
15122
|
name: "CRM Credit",
|
|
15116
|
-
permissions:
|
|
15123
|
+
permissions: Io
|
|
15117
15124
|
},
|
|
15118
15125
|
[`set_${u.crm_experience}`]: {
|
|
15119
15126
|
key: "sys:crm:experience",
|
|
15120
15127
|
name: "CRM Experience",
|
|
15121
|
-
permissions:
|
|
15128
|
+
permissions: qo
|
|
15122
15129
|
},
|
|
15123
15130
|
[`set_${u.crm_game}`]: {
|
|
15124
15131
|
key: "sys:crm:game",
|
|
15125
15132
|
name: "CRM Game",
|
|
15126
|
-
permissions:
|
|
15133
|
+
permissions: Wo
|
|
15127
15134
|
},
|
|
15128
15135
|
[`set_${u.crm_mission}`]: {
|
|
15129
15136
|
key: "sys:crm:mission",
|
|
15130
15137
|
name: "CRM Mission",
|
|
15131
|
-
permissions:
|
|
15138
|
+
permissions: Lo
|
|
15132
15139
|
},
|
|
15133
15140
|
[`set_${u.crm_loyaltyMember}`]: {
|
|
15134
15141
|
key: "sys:crm:loyaltyMember",
|
|
15135
15142
|
name: "CRM Loyalty Member",
|
|
15136
|
-
permissions:
|
|
15143
|
+
permissions: Ro
|
|
15137
15144
|
},
|
|
15138
15145
|
[`set_${u.crm_loyaltySegment}`]: {
|
|
15139
15146
|
key: "sys:crm:loyaltySegment",
|
|
15140
15147
|
name: "CRM Loyalty Segment",
|
|
15141
|
-
permissions:
|
|
15148
|
+
permissions: Fo
|
|
15142
15149
|
},
|
|
15143
15150
|
[`set_${u.crm_loyaltyCard}`]: {
|
|
15144
15151
|
key: "sys:crm:loyaltyCard",
|
|
15145
15152
|
name: "CRM Loyalty Card",
|
|
15146
|
-
permissions:
|
|
15153
|
+
permissions: jo
|
|
15147
15154
|
},
|
|
15148
15155
|
[`set_${u.crm_referral}`]: {
|
|
15149
15156
|
key: "sys:crm:referral",
|
|
@@ -15153,27 +15160,27 @@ const $ = [
|
|
|
15153
15160
|
[`set_${u.crm_store}`]: {
|
|
15154
15161
|
key: "sys:crm:store",
|
|
15155
15162
|
name: "CRM Store",
|
|
15156
|
-
permissions:
|
|
15163
|
+
permissions: Oo
|
|
15157
15164
|
},
|
|
15158
15165
|
[`set_${u.crm_transaction}`]: {
|
|
15159
15166
|
key: "sys:crm:transaction",
|
|
15160
15167
|
name: "CRM Transaction",
|
|
15161
|
-
permissions:
|
|
15168
|
+
permissions: Bo
|
|
15162
15169
|
},
|
|
15163
15170
|
[`set_${u.crm_setting}`]: {
|
|
15164
15171
|
key: "sys:crm:setting",
|
|
15165
15172
|
name: "CRM Setting",
|
|
15166
|
-
permissions:
|
|
15173
|
+
permissions: Qo
|
|
15167
15174
|
},
|
|
15168
15175
|
[`set_${u.crm_bin}`]: {
|
|
15169
15176
|
key: "sys:crm:bin",
|
|
15170
15177
|
name: "CRM Bin",
|
|
15171
|
-
permissions:
|
|
15178
|
+
permissions: No
|
|
15172
15179
|
},
|
|
15173
15180
|
[`set_${u.crm_marketingMaterial}`]: {
|
|
15174
15181
|
key: "sys:crm:marketingMaterial",
|
|
15175
15182
|
name: "CRM Marketing Material",
|
|
15176
|
-
permissions:
|
|
15183
|
+
permissions: xo
|
|
15177
15184
|
}
|
|
15178
15185
|
};
|
|
15179
15186
|
var F = /* @__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))(F || {});
|
|
@@ -15212,14 +15219,14 @@ const ue = [
|
|
|
15212
15219
|
subject: F.inventory_stockAdjustment,
|
|
15213
15220
|
actions: [r.update]
|
|
15214
15221
|
}
|
|
15215
|
-
],
|
|
15222
|
+
], Xo = [
|
|
15216
15223
|
...ue,
|
|
15217
15224
|
{
|
|
15218
15225
|
label: "Unit Cost History",
|
|
15219
15226
|
subject: F.inventory_unitCostHistory,
|
|
15220
15227
|
actions: [r.read, r.update]
|
|
15221
15228
|
}
|
|
15222
|
-
],
|
|
15229
|
+
], Uo = [
|
|
15223
15230
|
...ue,
|
|
15224
15231
|
{
|
|
15225
15232
|
label: "Wastage Template",
|
|
@@ -15234,8 +15241,8 @@ const ue = [
|
|
|
15234
15241
|
];
|
|
15235
15242
|
[
|
|
15236
15243
|
..._a,
|
|
15237
|
-
...
|
|
15238
|
-
...
|
|
15244
|
+
...Xo,
|
|
15245
|
+
...Uo
|
|
15239
15246
|
];
|
|
15240
15247
|
const $a = [
|
|
15241
15248
|
...ue,
|
|
@@ -15254,7 +15261,7 @@ const $a = [
|
|
|
15254
15261
|
subject: F.inventory_closingDraft,
|
|
15255
15262
|
actions: [r.read]
|
|
15256
15263
|
}
|
|
15257
|
-
],
|
|
15264
|
+
], Zo = [
|
|
15258
15265
|
...ue,
|
|
15259
15266
|
{
|
|
15260
15267
|
label: "Closing Draft",
|
|
@@ -15281,7 +15288,7 @@ const $a = [
|
|
|
15281
15288
|
subject: F.inventory_stockAdjustment,
|
|
15282
15289
|
actions: [r.read]
|
|
15283
15290
|
}
|
|
15284
|
-
],
|
|
15291
|
+
], zo = [
|
|
15285
15292
|
...ue,
|
|
15286
15293
|
{
|
|
15287
15294
|
label: "Closing Template",
|
|
@@ -15301,8 +15308,8 @@ const $a = [
|
|
|
15301
15308
|
];
|
|
15302
15309
|
[
|
|
15303
15310
|
...$a,
|
|
15304
|
-
...
|
|
15305
|
-
...
|
|
15311
|
+
...Zo,
|
|
15312
|
+
...zo
|
|
15306
15313
|
];
|
|
15307
15314
|
const Pl = [
|
|
15308
15315
|
{
|
|
@@ -15343,7 +15350,7 @@ const Pl = [
|
|
|
15343
15350
|
subject: F.inventory,
|
|
15344
15351
|
actions: [r.read, r.update]
|
|
15345
15352
|
}
|
|
15346
|
-
],
|
|
15353
|
+
], Ko = [
|
|
15347
15354
|
{
|
|
15348
15355
|
label: "Purchase Order",
|
|
15349
15356
|
subject: F.inventory_purchaseOrder,
|
|
@@ -15384,7 +15391,7 @@ const Pl = [
|
|
|
15384
15391
|
subject: F.inventory_shipment,
|
|
15385
15392
|
actions: [r.read, r.update]
|
|
15386
15393
|
}
|
|
15387
|
-
],
|
|
15394
|
+
], Jo = [
|
|
15388
15395
|
{
|
|
15389
15396
|
label: "Purchase Order",
|
|
15390
15397
|
subject: F.inventory_purchaseOrder,
|
|
@@ -15405,7 +15412,7 @@ const Pl = [
|
|
|
15405
15412
|
subject: F.inventory_shipment,
|
|
15406
15413
|
actions: [r.read, r.update]
|
|
15407
15414
|
}
|
|
15408
|
-
],
|
|
15415
|
+
], _o = [
|
|
15409
15416
|
...ue,
|
|
15410
15417
|
{
|
|
15411
15418
|
label: "Surcharge",
|
|
@@ -15422,7 +15429,7 @@ const Pl = [
|
|
|
15422
15429
|
subject: F.inventory_supplier,
|
|
15423
15430
|
actions: [r.read]
|
|
15424
15431
|
}
|
|
15425
|
-
],
|
|
15432
|
+
], $o = [
|
|
15426
15433
|
...ue,
|
|
15427
15434
|
{
|
|
15428
15435
|
label: "Order Template",
|
|
@@ -15453,10 +15460,10 @@ const Pl = [
|
|
|
15453
15460
|
}
|
|
15454
15461
|
];
|
|
15455
15462
|
[
|
|
15456
|
-
...zo,
|
|
15457
15463
|
...Ko,
|
|
15458
15464
|
...Jo,
|
|
15459
|
-
..._o
|
|
15465
|
+
..._o,
|
|
15466
|
+
...$o
|
|
15460
15467
|
];
|
|
15461
15468
|
const Tl = [
|
|
15462
15469
|
...ue,
|
|
@@ -15527,12 +15534,12 @@ const jl = {
|
|
|
15527
15534
|
[`set_${u.inventory_unitCostHistory}`]: {
|
|
15528
15535
|
key: "sys:inventory:unit_cost_history",
|
|
15529
15536
|
name: "Unit Cost History",
|
|
15530
|
-
permissions:
|
|
15537
|
+
permissions: Xo
|
|
15531
15538
|
},
|
|
15532
15539
|
[`set_${u.inventory_wastageTemplate}`]: {
|
|
15533
15540
|
key: "sys:inventory:wastage_template",
|
|
15534
15541
|
name: "Wastage Template",
|
|
15535
|
-
permissions:
|
|
15542
|
+
permissions: Uo
|
|
15536
15543
|
},
|
|
15537
15544
|
[`set_${u.inventory_closingHistory}`]: {
|
|
15538
15545
|
key: "sys:inventory:closing_history",
|
|
@@ -15542,12 +15549,12 @@ const jl = {
|
|
|
15542
15549
|
[`set_${u.inventory_closingTemplate}`]: {
|
|
15543
15550
|
key: "sys:inventory:closing_template",
|
|
15544
15551
|
name: "Closing Template",
|
|
15545
|
-
permissions:
|
|
15552
|
+
permissions: zo
|
|
15546
15553
|
},
|
|
15547
15554
|
[`set_${u.inventory_closingDraft}`]: {
|
|
15548
15555
|
key: "sys:inventory:closing_draft",
|
|
15549
15556
|
name: "Closing Draft",
|
|
15550
|
-
permissions:
|
|
15557
|
+
permissions: Zo
|
|
15551
15558
|
},
|
|
15552
15559
|
[`set_${u.inventory_ingredient}`]: {
|
|
15553
15560
|
key: "sys:inventory:ingredient",
|
|
@@ -15572,7 +15579,7 @@ const jl = {
|
|
|
15572
15579
|
[`set_${u.inventory_purchaseTransfer}`]: {
|
|
15573
15580
|
key: "sys:inventory:purchase_transfer",
|
|
15574
15581
|
name: "Purchase Transfer",
|
|
15575
|
-
permissions:
|
|
15582
|
+
permissions: Ko
|
|
15576
15583
|
},
|
|
15577
15584
|
[`set_${u.inventory_orderDraftApproval}`]: {
|
|
15578
15585
|
key: "sys:inventory:order_draft_approval",
|
|
@@ -15582,17 +15589,17 @@ const jl = {
|
|
|
15582
15589
|
[`set_${u.inventory_transferOut}`]: {
|
|
15583
15590
|
key: "sys:inventory:transfer_out",
|
|
15584
15591
|
name: "Transfer Out",
|
|
15585
|
-
permissions:
|
|
15592
|
+
permissions: Jo
|
|
15586
15593
|
},
|
|
15587
15594
|
[`set_${u.inventory_surcharge}`]: {
|
|
15588
15595
|
key: "sys:inventory:surcharge",
|
|
15589
15596
|
name: "Surcharge",
|
|
15590
|
-
permissions:
|
|
15597
|
+
permissions: _o
|
|
15591
15598
|
},
|
|
15592
15599
|
[`set_${u.inventory_orderTemplate}`]: {
|
|
15593
15600
|
key: "sys:inventory:order_template",
|
|
15594
15601
|
name: "Order Template",
|
|
15595
|
-
permissions:
|
|
15602
|
+
permissions: $o
|
|
15596
15603
|
},
|
|
15597
15604
|
[`set_${u.inventory_supplier}`]: {
|
|
15598
15605
|
key: "sys:inventory:supplier",
|
|
@@ -15741,8 +15748,8 @@ const Nl = {
|
|
|
15741
15748
|
]
|
|
15742
15749
|
}
|
|
15743
15750
|
};
|
|
15744
|
-
var
|
|
15745
|
-
const
|
|
15751
|
+
var en = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e))(en || {});
|
|
15752
|
+
const gs = [
|
|
15746
15753
|
{
|
|
15747
15754
|
label: "Payout Account",
|
|
15748
15755
|
subject: u.payment_payoutAccount,
|
|
@@ -15750,26 +15757,26 @@ const ys = [
|
|
|
15750
15757
|
},
|
|
15751
15758
|
{
|
|
15752
15759
|
label: "Payment Terminals",
|
|
15753
|
-
subject:
|
|
15760
|
+
subject: en.payment_terminals,
|
|
15754
15761
|
actions: [r.read]
|
|
15755
15762
|
}
|
|
15756
15763
|
], Hl = {
|
|
15757
15764
|
[`set_${u.payment_transactions}`]: {
|
|
15758
15765
|
key: "sys:payment:transactions",
|
|
15759
15766
|
name: "Payment Transactions Access",
|
|
15760
|
-
permissions:
|
|
15767
|
+
permissions: gs
|
|
15761
15768
|
},
|
|
15762
15769
|
[`set_${u.payment_settlements}`]: {
|
|
15763
15770
|
key: "sys:payment:settlements",
|
|
15764
15771
|
name: "Payment Settlements Access",
|
|
15765
|
-
permissions:
|
|
15772
|
+
permissions: gs
|
|
15766
15773
|
}
|
|
15767
15774
|
}, Yl = {
|
|
15768
15775
|
...Dl,
|
|
15769
15776
|
...jl,
|
|
15770
15777
|
...Nl,
|
|
15771
15778
|
...Hl
|
|
15772
|
-
},
|
|
15779
|
+
}, kc = Object.values(
|
|
15773
15780
|
Yl
|
|
15774
15781
|
).flatMap((e) => e.permissions ?? []).reduce(
|
|
15775
15782
|
(e, t) => {
|
|
@@ -15778,16 +15785,16 @@ const ys = [
|
|
|
15778
15785
|
},
|
|
15779
15786
|
{}
|
|
15780
15787
|
), Fe = {
|
|
15781
|
-
Level:
|
|
15788
|
+
Level: Bs,
|
|
15782
15789
|
Action: r,
|
|
15783
15790
|
Subject: {
|
|
15784
|
-
Feedme:
|
|
15785
|
-
FeedmeBusinessField:
|
|
15791
|
+
Feedme: Os,
|
|
15792
|
+
FeedmeBusinessField: Ts,
|
|
15786
15793
|
Business: u,
|
|
15787
15794
|
FoodCourt: Tt,
|
|
15788
|
-
Restaurant:
|
|
15795
|
+
Restaurant: xs
|
|
15789
15796
|
}
|
|
15790
|
-
},
|
|
15797
|
+
}, tn = {
|
|
15791
15798
|
[oe.permission]: u.hrm_teamMember,
|
|
15792
15799
|
[oe.promotion]: u.crm_promotion,
|
|
15793
15800
|
[oe.voucher]: u.crm_voucher,
|
|
@@ -15810,7 +15817,7 @@ var Ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
15810
15817
|
function Gl(e) {
|
|
15811
15818
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
15812
15819
|
}
|
|
15813
|
-
var
|
|
15820
|
+
var an = { exports: {} };
|
|
15814
15821
|
(function(e, t) {
|
|
15815
15822
|
(function(a, s) {
|
|
15816
15823
|
e.exports = s();
|
|
@@ -16187,8 +16194,8 @@ var tn = { exports: {} };
|
|
|
16187
16194
|
}
|
|
16188
16195
|
]);
|
|
16189
16196
|
});
|
|
16190
|
-
})(
|
|
16191
|
-
var Vl =
|
|
16197
|
+
})(an);
|
|
16198
|
+
var Vl = an.exports;
|
|
16192
16199
|
const Il = /* @__PURE__ */ Gl(Vl);
|
|
16193
16200
|
function ql(e, t) {
|
|
16194
16201
|
for (var a = 0; a < t.length; a++) {
|
|
@@ -16256,16 +16263,16 @@ function Ia(e) {
|
|
|
16256
16263
|
}), na(o, s);
|
|
16257
16264
|
}, Ia(e);
|
|
16258
16265
|
}
|
|
16259
|
-
function
|
|
16266
|
+
function fs(e) {
|
|
16260
16267
|
if (e === void 0)
|
|
16261
16268
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16262
16269
|
return e;
|
|
16263
16270
|
}
|
|
16264
|
-
var
|
|
16271
|
+
var sn = function(t) {
|
|
16265
16272
|
return 'Cannot execute "' + t.action + '" on "' + t.subjectName + '"';
|
|
16266
|
-
}, Vt =
|
|
16273
|
+
}, Vt = sn, Ul = /* @__PURE__ */ function(e) {
|
|
16267
16274
|
Ll(t, e), t.setDefaultMessage = function(o) {
|
|
16268
|
-
o === null ? Vt =
|
|
16275
|
+
o === null ? Vt = sn : Vt = typeof o == "string" ? function() {
|
|
16269
16276
|
return o;
|
|
16270
16277
|
} : o;
|
|
16271
16278
|
}, t.from = function(o) {
|
|
@@ -16276,7 +16283,7 @@ var an = function(t) {
|
|
|
16276
16283
|
};
|
|
16277
16284
|
function t(s, o) {
|
|
16278
16285
|
var n;
|
|
16279
|
-
return o === void 0 && (o = {}), n = e.call(this, s) || this, n._setMetadata(o), n.message = s || Vt(
|
|
16286
|
+
return o === void 0 && (o = {}), n = e.call(this, s) || this, n._setMetadata(o), n.message = s || Vt(fs(n)), n._customMessage = null, typeof Error.captureStackTrace == "function" && (n.name = n.constructor.name, Error.captureStackTrace(fs(n), n.constructor)), n;
|
|
16280
16287
|
}
|
|
16281
16288
|
var a = t.prototype;
|
|
16282
16289
|
return a.setMessage = function(o) {
|
|
@@ -16342,19 +16349,19 @@ var sd = /* @__PURE__ */ function() {
|
|
|
16342
16349
|
}, t.matchesField = function(s) {
|
|
16343
16350
|
return typeof this._fieldsPattern > "u" && (this._fieldsPattern = this.fields.join("").indexOf("*") === -1 ? null : ad(this.fields)), this._fieldsPattern === null || s.indexOf("*") !== -1 ? this.fields.indexOf(s) !== -1 : this._fieldsPattern.test(s);
|
|
16344
16351
|
}, e;
|
|
16345
|
-
}(), Ae = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(),
|
|
16352
|
+
}(), Ae = typeof Symbol < "u" ? Symbol("private") : "__" + Date.now(), As = {
|
|
16346
16353
|
crud: ["create", "read", "update", "delete"]
|
|
16347
16354
|
};
|
|
16348
|
-
function
|
|
16355
|
+
function vs(e, t) {
|
|
16349
16356
|
return e === t || Array.isArray(t) && t.indexOf(e) !== -1;
|
|
16350
16357
|
}
|
|
16351
16358
|
var od = /* @__PURE__ */ function() {
|
|
16352
16359
|
e.addAlias = function(s, o) {
|
|
16353
|
-
if (s === "manage" ||
|
|
16360
|
+
if (s === "manage" || vs("manage", o))
|
|
16354
16361
|
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
16355
|
-
if (
|
|
16362
|
+
if (vs(s, o))
|
|
16356
16363
|
throw new Error("Attempt to alias action to itself: " + s + " -> " + o.toString());
|
|
16357
|
-
return
|
|
16364
|
+
return As[s] = o, this;
|
|
16358
16365
|
};
|
|
16359
16366
|
function e(a, s) {
|
|
16360
16367
|
s === void 0 && (s = {}), Object.defineProperty(this, "subjectName", {
|
|
@@ -16366,7 +16373,7 @@ var od = /* @__PURE__ */ function() {
|
|
|
16366
16373
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
16367
16374
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
16368
16375
|
events: {},
|
|
16369
|
-
aliases: zl(
|
|
16376
|
+
aliases: zl(As)
|
|
16370
16377
|
}, this.update(a);
|
|
16371
16378
|
}
|
|
16372
16379
|
var t = e.prototype;
|
|
@@ -16457,10 +16464,10 @@ var od = /* @__PURE__ */ function() {
|
|
|
16457
16464
|
}]), e;
|
|
16458
16465
|
}();
|
|
16459
16466
|
function nd(e) {
|
|
16460
|
-
return
|
|
16467
|
+
return tn[e] ?? e;
|
|
16461
16468
|
}
|
|
16462
|
-
function
|
|
16463
|
-
const t = Object.entries(
|
|
16469
|
+
function Bc(e) {
|
|
16470
|
+
const t = Object.entries(tn).find(([, a]) => a === e);
|
|
16464
16471
|
return t ? t[0] : e;
|
|
16465
16472
|
}
|
|
16466
16473
|
function rd(e) {
|
|
@@ -16470,17 +16477,17 @@ function rd(e) {
|
|
|
16470
16477
|
reason: t.source !== void 0 ? JSON.stringify(t.source) : t.reason
|
|
16471
16478
|
}));
|
|
16472
16479
|
}
|
|
16473
|
-
function
|
|
16480
|
+
function on(e) {
|
|
16474
16481
|
return new od(rd(e));
|
|
16475
16482
|
}
|
|
16476
16483
|
function id(e, t) {
|
|
16477
16484
|
return e.rulesFor(t.action, t.subject, t.field).some((a) => !a.inverted);
|
|
16478
16485
|
}
|
|
16479
|
-
function
|
|
16486
|
+
function nn(e, t) {
|
|
16480
16487
|
return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !id(e, t);
|
|
16481
16488
|
}
|
|
16482
16489
|
function Wa(e, t) {
|
|
16483
|
-
const a =
|
|
16490
|
+
const a = on(t), s = (d) => a.can(d.action, d.subject, d.field) ? !0 : nn(a, d) ? a.can(d.action, d.coverSubject, d.field) : !1, o = e.find((d) => !s(d));
|
|
16484
16491
|
if (o) {
|
|
16485
16492
|
const d = a.relevantRuleFor(
|
|
16486
16493
|
o.action,
|
|
@@ -16500,7 +16507,7 @@ function ld(e, t) {
|
|
|
16500
16507
|
const a = Wa([e], t);
|
|
16501
16508
|
if (!a.granted)
|
|
16502
16509
|
return { ...a, conditionEvaluation: "not_enforced" };
|
|
16503
|
-
const s =
|
|
16510
|
+
const s = on(t), o = nn(s, e) ? e.coverSubject : void 0, n = [e.subject, o].filter(
|
|
16504
16511
|
(l) => l !== void 0
|
|
16505
16512
|
).flatMap((l) => {
|
|
16506
16513
|
const d = wr(l).filter((w) => {
|
|
@@ -16516,7 +16523,7 @@ function ld(e, t) {
|
|
|
16516
16523
|
conditionEvaluation: "missing_or_invalid_context"
|
|
16517
16524
|
};
|
|
16518
16525
|
}
|
|
16519
|
-
function
|
|
16526
|
+
function rn(e, t, a) {
|
|
16520
16527
|
const s = arguments.length >= 3;
|
|
16521
16528
|
return Array.isArray(e) ? Wa(e, t) : s ? ld(e, t) : Wa([e], t);
|
|
16522
16529
|
}
|
|
@@ -16535,7 +16542,7 @@ function cd(e, t, a) {
|
|
|
16535
16542
|
onError: d = dd
|
|
16536
16543
|
} = s, w = Qe(!o), A = l ? mn(t) : Qe(t);
|
|
16537
16544
|
let f = 0;
|
|
16538
|
-
return
|
|
16545
|
+
return Cs(async (O) => {
|
|
16539
16546
|
if (!w.value)
|
|
16540
16547
|
return;
|
|
16541
16548
|
f++;
|
|
@@ -16568,7 +16575,7 @@ async function ud(e) {
|
|
|
16568
16575
|
message: "User does not have permission to access"
|
|
16569
16576
|
});
|
|
16570
16577
|
if (o && o.length > 0) {
|
|
16571
|
-
const { granted: l } =
|
|
16578
|
+
const { granted: l } = rn(o, t.permissions);
|
|
16572
16579
|
if (!l)
|
|
16573
16580
|
return Promise.resolve({
|
|
16574
16581
|
canAccess: !1,
|
|
@@ -16602,7 +16609,7 @@ async function md(e, t) {
|
|
|
16602
16609
|
}
|
|
16603
16610
|
var La = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(La || {});
|
|
16604
16611
|
function pd() {
|
|
16605
|
-
const e =
|
|
16612
|
+
const e = Ss(), { sessionUser: t } = ra();
|
|
16606
16613
|
return cd(
|
|
16607
16614
|
async () => {
|
|
16608
16615
|
e.matched;
|
|
@@ -16671,7 +16678,7 @@ const hd = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
16671
16678
|
__name: "PermissionWrapper",
|
|
16672
16679
|
setup(e) {
|
|
16673
16680
|
const t = pd();
|
|
16674
|
-
return (a, s) => Me(t) === Me(La).Denied ? ($e(), Xa(Od, { key: 0 })) : Me(t) === Me(La).Allowed ? Ua(a.$slots, "default", {}, void 0, void 0, 1) :
|
|
16681
|
+
return (a, s) => Me(t) === Me(La).Denied ? ($e(), Xa(Od, { key: 0 })) : Me(t) === Me(La).Allowed ? Ua(a.$slots, "default", {}, void 0, void 0, 1) : Ds("", !0);
|
|
16675
16682
|
}
|
|
16676
16683
|
});
|
|
16677
16684
|
function dt(e) {
|
|
@@ -16697,8 +16704,8 @@ function xd(e, t) {
|
|
|
16697
16704
|
}
|
|
16698
16705
|
let o = null;
|
|
16699
16706
|
return pn(e, async (n) => {
|
|
16700
|
-
n && (await
|
|
16701
|
-
}),
|
|
16707
|
+
n && (await Ms(), s());
|
|
16708
|
+
}), Ps(() => {
|
|
16702
16709
|
window.addEventListener("resize", s), o = new ResizeObserver(s), o.observe(document.body);
|
|
16703
16710
|
}), hn(() => {
|
|
16704
16711
|
window.removeEventListener("resize", s), o == null || o.disconnect(), o = null;
|
|
@@ -16741,7 +16748,7 @@ const Ed = /* @__PURE__ */ _e({
|
|
|
16741
16748
|
loader: e,
|
|
16742
16749
|
loadingComponent: Fd
|
|
16743
16750
|
});
|
|
16744
|
-
function
|
|
16751
|
+
function es() {
|
|
16745
16752
|
const e = ra(), t = We(() => e.currentContextType.value), a = We(() => t.value === R.foodCourt), s = We(
|
|
16746
16753
|
() => {
|
|
16747
16754
|
var n, l;
|
|
@@ -16765,7 +16772,7 @@ const jd = { class: "sch-vars sch-page" }, Nd = { class: "sch-shell-main" }, Hd
|
|
|
16765
16772
|
]));
|
|
16766
16773
|
}
|
|
16767
16774
|
});
|
|
16768
|
-
function
|
|
16775
|
+
function ts(e) {
|
|
16769
16776
|
return {
|
|
16770
16777
|
inheritAttrs: !1,
|
|
16771
16778
|
setup(t, { attrs: a }) {
|
|
@@ -16783,24 +16790,24 @@ const st = (e) => ({
|
|
|
16783
16790
|
}
|
|
16784
16791
|
]
|
|
16785
16792
|
}
|
|
16786
|
-
}), Yd = dt(fe(() => import("./Main-
|
|
16787
|
-
fe(() => import("./AuditLogList-
|
|
16788
|
-
), Id = dt(fe(() => import("./Main-
|
|
16789
|
-
() => import("./PermissionSetList-
|
|
16790
|
-
), zd =
|
|
16791
|
-
dt(fe(() => import("./SchedulePage-
|
|
16792
|
-
), Kd =
|
|
16793
|
-
dt(fe(() => import("./SchedulePositionPage-
|
|
16794
|
-
), Jd =
|
|
16795
|
-
dt(fe(() => import("./ScheduleGeneralPage-
|
|
16796
|
-
),
|
|
16793
|
+
}), Yd = dt(fe(() => import("./Main-hUOeiddV.js"))), Gd = dt(fe(() => import("./Main-DNViVR_m.js"))), Vd = dt(
|
|
16794
|
+
fe(() => import("./AuditLogList-BMEw3z3C.js"))
|
|
16795
|
+
), Id = dt(fe(() => import("./Main-BX2dD-ti.js"))), qd = fe(() => import("./ApprovalCodeList-BgnhS8P1.js")), Wd = fe(() => import("./GrantUserList-DePGsJq1.js")), Ld = fe(() => import("./EmployeeList-BXO4vI9g.js")), Qd = fe(() => import("./RoleList-Dx7Bstb_.js")), Xd = fe(() => import("./TimesheetList-DO3uT60w.js")), Ud = fe(() => import("./TeamMemberList-Dro66DME.js")), Zd = fe(
|
|
16796
|
+
() => import("./PermissionSetList-BHOjAjHj.js")
|
|
16797
|
+
), zd = ts(
|
|
16798
|
+
dt(fe(() => import("./SchedulePage-BOiSyw9s.js")))
|
|
16799
|
+
), Kd = ts(
|
|
16800
|
+
dt(fe(() => import("./SchedulePositionPage-NR8GaPxx.js")))
|
|
16801
|
+
), Jd = ts(
|
|
16802
|
+
dt(fe(() => import("./ScheduleGeneralPage-WJu4dwH_.js")))
|
|
16803
|
+
), _d = [
|
|
16797
16804
|
{
|
|
16798
16805
|
path: "/",
|
|
16799
16806
|
name: "home",
|
|
16800
16807
|
component: Yd,
|
|
16801
16808
|
meta: st(Fe.Subject.Business.hrm_employee),
|
|
16802
16809
|
redirect: () => ({
|
|
16803
|
-
name:
|
|
16810
|
+
name: es().isFoodCourt.value ? "team" : "employee"
|
|
16804
16811
|
/* EMPLOYEE */
|
|
16805
16812
|
}),
|
|
16806
16813
|
children: [
|
|
@@ -16902,13 +16909,19 @@ const st = (e) => ({
|
|
|
16902
16909
|
name: "pos-grant"
|
|
16903
16910
|
/* POS_GRANT */
|
|
16904
16911
|
} }
|
|
16905
|
-
]
|
|
16912
|
+
];
|
|
16913
|
+
for (const e of _d)
|
|
16914
|
+
e.name === "team" || e.name === "audit-log" || (e.beforeEnter = () => es().isFoodCourt.value ? {
|
|
16915
|
+
name: "team"
|
|
16916
|
+
/* TEAM */
|
|
16917
|
+
} : !0);
|
|
16918
|
+
const $d = /* @__PURE__ */ _e({
|
|
16906
16919
|
__name: "Navigator",
|
|
16907
16920
|
emits: ["close-navigation"],
|
|
16908
16921
|
setup(e, { emit: t }) {
|
|
16909
|
-
const a = t, { t: s } = Za(), o =
|
|
16922
|
+
const a = t, { t: s } = Za(), o = ks(), { isFoodCourt: n } = es(), l = () => Et("span", { class: "sch-badge page-tag-premium page-tag-premium-nav", "data-color": "brand" }, s("scheduling.common.premium"));
|
|
16910
16923
|
async function d(f) {
|
|
16911
|
-
await o.push({ name: f, query: o.currentRoute.value.query }), await
|
|
16924
|
+
await o.push({ name: f, query: o.currentRoute.value.query }), await Ms(), a("close-navigation");
|
|
16912
16925
|
}
|
|
16913
16926
|
const w = We(() => {
|
|
16914
16927
|
const f = [];
|
|
@@ -16965,7 +16978,7 @@ const st = (e) => ({
|
|
|
16965
16978
|
]
|
|
16966
16979
|
}), f;
|
|
16967
16980
|
}), A = Qe();
|
|
16968
|
-
return
|
|
16981
|
+
return Cs(() => {
|
|
16969
16982
|
var O;
|
|
16970
16983
|
let f = (O = o.currentRoute.value) == null ? void 0 : O.name;
|
|
16971
16984
|
switch (f) {
|
|
@@ -17009,26 +17022,26 @@ const st = (e) => ({
|
|
|
17009
17022
|
}, null, 8, ["modelValue", "items"]);
|
|
17010
17023
|
};
|
|
17011
17024
|
}
|
|
17012
|
-
}),
|
|
17025
|
+
}), ec = (e, t) => {
|
|
17013
17026
|
const a = e.__vccOpts || e;
|
|
17014
17027
|
for (const [s, o] of t)
|
|
17015
17028
|
a[s] = o;
|
|
17016
17029
|
return a;
|
|
17017
|
-
},
|
|
17030
|
+
}, tc = /* @__PURE__ */ ec($d, [["__scopeId", "data-v-614b7b61"]]), ac = {
|
|
17018
17031
|
key: 0,
|
|
17019
17032
|
"data-testid": "schedule-promo-banner",
|
|
17020
17033
|
class: "sticky top-0 z-20 flex w-full items-center gap-12 border-b border-fm-color-neutral-gray-100 bg-fm-color-system-warning-100 px-24 py-8 xs:px-12"
|
|
17021
|
-
},
|
|
17034
|
+
}, sc = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-8" }, oc = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, nc = { class: "fm-typo-en-body-md-600" }, rc = { class: "flex shrink-0 items-center gap-8" }, ic = ["aria-label"], bs = "hrm.schedulePromoBanner.dismissed", lc = /* @__PURE__ */ _e({
|
|
17022
17035
|
__name: "SchedulePromoBanner",
|
|
17023
17036
|
setup(e) {
|
|
17024
17037
|
const t = [
|
|
17025
17038
|
Z.SCHEDULE,
|
|
17026
17039
|
Z.SCHEDULE_POSITION,
|
|
17027
17040
|
Z.SCHEDULE_GENERAL
|
|
17028
|
-
], { t: a } = Za(), s =
|
|
17041
|
+
], { t: a } = Za(), s = Ss(), o = ks(), { sessionUser: n } = ra();
|
|
17029
17042
|
function l() {
|
|
17030
17043
|
try {
|
|
17031
|
-
return sessionStorage.getItem(
|
|
17044
|
+
return sessionStorage.getItem(bs) === "1";
|
|
17032
17045
|
} catch {
|
|
17033
17046
|
return !1;
|
|
17034
17047
|
}
|
|
@@ -17037,7 +17050,7 @@ const st = (e) => ({
|
|
|
17037
17050
|
const q = n.value;
|
|
17038
17051
|
if (!q) return !1;
|
|
17039
17052
|
try {
|
|
17040
|
-
return
|
|
17053
|
+
return rn(
|
|
17041
17054
|
[{ action: Fe.Action.manage, subject: Fe.Subject.Business.hrm_scheduling }],
|
|
17042
17055
|
q.permissions
|
|
17043
17056
|
).granted;
|
|
@@ -17053,21 +17066,21 @@ const st = (e) => ({
|
|
|
17053
17066
|
function O() {
|
|
17054
17067
|
d.value = !0;
|
|
17055
17068
|
try {
|
|
17056
|
-
sessionStorage.setItem(
|
|
17069
|
+
sessionStorage.setItem(bs, "1");
|
|
17057
17070
|
} catch {
|
|
17058
17071
|
}
|
|
17059
17072
|
}
|
|
17060
17073
|
return (q, U) => {
|
|
17061
17074
|
const ae = gt("FmIcon"), ne = gt("FmChip"), me = gt("FmButton");
|
|
17062
|
-
return A.value ? ($e(), Ht("div",
|
|
17063
|
-
ve("div",
|
|
17075
|
+
return A.value ? ($e(), Ht("div", ac, [
|
|
17076
|
+
ve("div", sc, [
|
|
17064
17077
|
ot(ae, {
|
|
17065
17078
|
name: "stars",
|
|
17066
17079
|
size: "sm",
|
|
17067
17080
|
color: "primary"
|
|
17068
17081
|
}),
|
|
17069
|
-
ve("span",
|
|
17070
|
-
ve("span",
|
|
17082
|
+
ve("span", oc, [
|
|
17083
|
+
ve("span", nc, Lt(Me(a)("scheduling.promoBanner.new")), 1),
|
|
17071
17084
|
An(" " + Lt(Me(a)("scheduling.promoBanner.message")), 1)
|
|
17072
17085
|
]),
|
|
17073
17086
|
ot(ne, {
|
|
@@ -17076,7 +17089,7 @@ const st = (e) => ({
|
|
|
17076
17089
|
compact: ""
|
|
17077
17090
|
}, null, 8, ["label"])
|
|
17078
17091
|
]),
|
|
17079
|
-
ve("div",
|
|
17092
|
+
ve("div", rc, [
|
|
17080
17093
|
ot(me, {
|
|
17081
17094
|
class: "px-16 py-2 rounded-xl",
|
|
17082
17095
|
variant: "primary",
|
|
@@ -17096,9 +17109,9 @@ const st = (e) => ({
|
|
|
17096
17109
|
size: "sm",
|
|
17097
17110
|
color: "neutral-gray-400"
|
|
17098
17111
|
})
|
|
17099
|
-
], 8,
|
|
17112
|
+
], 8, ic)
|
|
17100
17113
|
])
|
|
17101
|
-
])) :
|
|
17114
|
+
])) : Ds("", !0);
|
|
17102
17115
|
};
|
|
17103
17116
|
}
|
|
17104
17117
|
});
|
|
@@ -17425,18 +17438,18 @@ var Qa = { exports: {} };
|
|
|
17425
17438
|
return g.prototype.init = function(c) {
|
|
17426
17439
|
var i, h, m;
|
|
17427
17440
|
return n(this, void 0, void 0, function() {
|
|
17428
|
-
var b, D, E, j, Q, k, J, pe, Te, be, ke, we, Ce, xe, Dt, Mt, ct, he, _, ca, Pt,
|
|
17441
|
+
var b, D, E, j, Q, k, J, pe, Te, be, ke, we, Ce, xe, Dt, Mt, ct, he, _, ca, Pt, as, ut, ua, ss, os, ma, ns, pa, St, mt, rs, ye = this;
|
|
17429
17442
|
return l(this, function(Be) {
|
|
17430
17443
|
switch (Be.label) {
|
|
17431
17444
|
case 0:
|
|
17432
17445
|
b = ne(c.evaluationContext || this.evaluationContext), Be.label = 1;
|
|
17433
17446
|
case 1:
|
|
17434
|
-
if (Be.trys.push([1, 13, , 14]), D = c.environmentID, E = c.api, j = E === void 0 ? et : E, Q = c.headers, k = c.onChange, J = c.cacheFlags, pe = c.datadogRum, Te = c.onError, be = c.defaultFlags, ke = c.fetch, we = c.preventFetch, Ce = c.enableLogs, xe = c.enableDynatrace, Dt = c.enableAnalytics, Mt = c.realtime, ct = c.eventSourceUrl, he = ct === void 0 ? "https://realtime.flagsmith.com/" : ct, _ = c.AsyncStorage, ca = c.identity, Pt = c.traits,
|
|
17447
|
+
if (Be.trys.push([1, 13, , 14]), D = c.environmentID, E = c.api, j = E === void 0 ? et : E, Q = c.headers, k = c.onChange, J = c.cacheFlags, pe = c.datadogRum, Te = c.onError, be = c.defaultFlags, ke = c.fetch, we = c.preventFetch, Ce = c.enableLogs, xe = c.enableDynatrace, Dt = c.enableAnalytics, Mt = c.realtime, ct = c.eventSourceUrl, he = ct === void 0 ? "https://realtime.flagsmith.com/" : ct, _ = c.AsyncStorage, ca = c.identity, Pt = c.traits, as = c.state, ut = c.cacheOptions, ua = c.angularHttpClient, ss = c._trigger, os = c._triggerLoadingState, b.environment = D ? { apiKey: D } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
17435
17448
|
if (b.identity = ca || Pt ? { identifier: ca, traits: Pt ? Object.fromEntries(Object.entries(Pt).map(function(De) {
|
|
17436
17449
|
return [De[0], { value: De[1] }];
|
|
17437
|
-
})) : {} } : b.identity, this.evaluationContext = b, this.api = j, this.headers = Q, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = k, ma = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger =
|
|
17450
|
+
})) : {} } : b.identity, this.evaluationContext = b, this.api = j, this.headers = Q, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = k, ma = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = ss || this._trigger, this._triggerLoadingState = os || this._triggerLoadingState, this.onError = function(De) {
|
|
17438
17451
|
ye.setLoadingState(o(o({}, ye.loadingState), { isFetching: !1, isLoading: !1, error: De })), Te == null || Te(De);
|
|
17439
|
-
}, this.enableLogs = Ce || !1, this.cacheOptions = ut ? { skipAPI: !!ut.skipAPI, ttl: ut.ttl || 0, storageKey: ut.storageKey, loadStale: !!ut.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."), ke && (O = ke), this.enableAnalytics = Dt || !1, this.flags = Object.assign({}, be) || {}, this.datadogRum = pe || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = le !== void 0 && !!J, Se = "FLAGSMITH_EVENT_" + b.environment.apiKey, _ && (le = _), Mt && typeof window < "u" && this.setupRealtime(he, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = o(o({}, this.loadingState), { isLoading: !1, source: f.DEFAULT_FLAGS })), this.setState(
|
|
17452
|
+
}, this.enableLogs = Ce || !1, this.cacheOptions = ut ? { skipAPI: !!ut.skipAPI, ttl: ut.ttl || 0, storageKey: ut.storageKey, loadStale: !!ut.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."), ke && (O = ke), this.enableAnalytics = Dt || !1, this.flags = Object.assign({}, be) || {}, this.datadogRum = pe || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = le !== void 0 && !!J, Se = "FLAGSMITH_EVENT_" + b.environment.apiKey, _ && (le = _), Mt && typeof window < "u" && this.setupRealtime(he, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = o(o({}, this.loadingState), { isLoading: !1, source: f.DEFAULT_FLAGS })), this.setState(as), this.log("Initialising with properties", c, this), xe && (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), ua && (O = /* @__PURE__ */ function(De) {
|
|
17440
17453
|
return function(Ee, Re) {
|
|
17441
17454
|
var Xe = Re.headers, ee = Re.method, pt = Re.body;
|
|
17442
17455
|
return new Promise(function(tt) {
|
|
@@ -17474,9 +17487,9 @@ var Qa = { exports: {} };
|
|
|
17474
17487
|
}
|
|
17475
17488
|
})), !J) return [3, 9];
|
|
17476
17489
|
if (!le || !this.canUseStorage) return [3, 8];
|
|
17477
|
-
|
|
17490
|
+
ns = function(De, Ee) {
|
|
17478
17491
|
return n(ye, void 0, void 0, function() {
|
|
17479
|
-
var Re, Xe, ee, pt, tt, Ie, ha,
|
|
17492
|
+
var Re, Xe, ee, pt, tt, Ie, ha, is, ya, ga, fa, Aa, va, ba, wa, Ca, Da, Ma, Pa, Sa, ka, Ba, Oa, Ta, ls = this;
|
|
17480
17493
|
return l(this, function(Ue) {
|
|
17481
17494
|
switch (Ue.label) {
|
|
17482
17495
|
case 0:
|
|
@@ -17485,7 +17498,7 @@ var Qa = { exports: {} };
|
|
|
17485
17498
|
case 1:
|
|
17486
17499
|
return Ue.trys.push([1, 5, , 6]), ee = JSON.parse(Ee), pt = !1, tt = !1, ee && ee.api === this.api && ((ga = (ya = ee.evaluationContext) === null || ya === void 0 ? void 0 : ya.environment) === null || ga === void 0 ? void 0 : ga.apiKey) === ((fa = this.evaluationContext.environment) === null || fa === void 0 ? void 0 : fa.apiKey) && (Ie = !0, this.evaluationContext.identity && ((va = (Aa = ee.evaluationContext) === null || Aa === void 0 ? void 0 : Aa.identity) === null || va === void 0 ? void 0 : va.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((wa = (ba = ee.evaluationContext) === null || ba === void 0 ? void 0 : ba.identity) === null || wa === void 0 ? void 0 : wa.identifier) + " to " + this.evaluationContext.identity.identifier), Ie = !1), this.cacheOptions.ttl && (!ee.ts || (/* @__PURE__ */ new Date()).valueOf() - ee.ts > this.cacheOptions.ttl) && (ee.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + ee.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - ee.ts) + "ms"), Ie = !1) : ee.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + ee.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - ee.ts) + "ms"), tt = !0, Ie = !0)), Ie && (pt = !0, Xe = A((Ca = this.evaluationContext.identity) === null || Ca === void 0 ? void 0 : Ca.traits, (Ma = (Da = ee.evaluationContext) === null || Da === void 0 ? void 0 : Da.identity) === null || Ma === void 0 ? void 0 : Ma.traits), Re = A(this.flags, ee.flags), this.setState(o(o({}, ee), { evaluationContext: ne(o(o({}, ee.evaluationContext), { identity: !((Pa = ee.evaluationContext) === null || Pa === void 0) && Pa.identity ? o(o({}, (Sa = ee.evaluationContext) === null || Sa === void 0 ? void 0 : Sa.identity), { traits: o(o({}, ((Ba = (ka = ee.evaluationContext) === null || ka === void 0 ? void 0 : ka.identity) === null || Ba === void 0 ? void 0 : Ba.traits) || {}), Pt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", ee))), pt ? (ha = !we && (!this.cacheOptions.skipAPI || tt), this._onChange(null, { isFromServer: !1, flagsChanged: Re, traitsChanged: Xe }, this._loadedState(null, f.CACHE, ha)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && pt && !tt && this.log("Skipping API, using cache"), ha && this.getFlags().catch(function(ln) {
|
|
17487
17500
|
var xa;
|
|
17488
|
-
(xa =
|
|
17501
|
+
(xa = ls.onError) === null || xa === void 0 || xa.call(ls, ln);
|
|
17489
17502
|
}), [3, 4]) : [3, 2];
|
|
17490
17503
|
case 2:
|
|
17491
17504
|
return we ? [3, 4] : [4, this.getFlags()];
|
|
@@ -17494,7 +17507,7 @@ var Qa = { exports: {} };
|
|
|
17494
17507
|
case 4:
|
|
17495
17508
|
return [3, 6];
|
|
17496
17509
|
case 5:
|
|
17497
|
-
return
|
|
17510
|
+
return is = Ue.sent(), this.log("Exception fetching cached logs", is), [3, 6];
|
|
17498
17511
|
case 6:
|
|
17499
17512
|
return [3, 10];
|
|
17500
17513
|
case 7:
|
|
@@ -17521,7 +17534,7 @@ var Qa = { exports: {} };
|
|
|
17521
17534
|
case 4:
|
|
17522
17535
|
pa = Be.sent(), Be.label = 5;
|
|
17523
17536
|
case 5:
|
|
17524
|
-
return [4,
|
|
17537
|
+
return [4, ns(null, pa)];
|
|
17525
17538
|
case 6:
|
|
17526
17539
|
case 7:
|
|
17527
17540
|
return Be.sent(), [3, 8];
|
|
@@ -17538,7 +17551,7 @@ var Qa = { exports: {} };
|
|
|
17538
17551
|
case 12:
|
|
17539
17552
|
return [3, 14];
|
|
17540
17553
|
case 13:
|
|
17541
|
-
throw mt = Be.sent(), this.log("Error during initialisation ", mt),
|
|
17554
|
+
throw mt = Be.sent(), this.log("Error during initialisation ", mt), rs = mt instanceof Error ? mt : new Error("".concat(mt)), (m = this.onError) === null || m === void 0 || m.call(this, rs), mt;
|
|
17542
17555
|
case 14:
|
|
17543
17556
|
return [2];
|
|
17544
17557
|
}
|
|
@@ -17753,9 +17766,9 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
17753
17766
|
}, a.default = re, Object.defineProperty(a, "__esModule", { value: !0 });
|
|
17754
17767
|
});
|
|
17755
17768
|
})(Qa, Qa.exports);
|
|
17756
|
-
var
|
|
17769
|
+
var dc = Qa.exports, cc = {
|
|
17757
17770
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first."
|
|
17758
|
-
},
|
|
17771
|
+
}, ws = "business", je, uc = (je = class {
|
|
17759
17772
|
constructor() {
|
|
17760
17773
|
Gt(this, "flagsmithClient", null);
|
|
17761
17774
|
Gt(this, "userContext", null);
|
|
@@ -17765,12 +17778,12 @@ var lc = Qa.exports, dc = {
|
|
|
17765
17778
|
}
|
|
17766
17779
|
ensureInitialized() {
|
|
17767
17780
|
if (!this.flagsmithClient)
|
|
17768
|
-
throw new Error(
|
|
17781
|
+
throw new Error(cc.NOT_INITIALIZED);
|
|
17769
17782
|
}
|
|
17770
17783
|
async init(t, a = []) {
|
|
17771
17784
|
if (!this.flagsmithClient)
|
|
17772
17785
|
try {
|
|
17773
|
-
this.flagsmithClient =
|
|
17786
|
+
this.flagsmithClient = dc.createFlagsmithInstance();
|
|
17774
17787
|
const s = a.reduce((o, n) => (o[n.feature.name] = n, o), {});
|
|
17775
17788
|
await this.flagsmithClient.init({
|
|
17776
17789
|
environmentID: t.apiKey,
|
|
@@ -17857,8 +17870,8 @@ var lc = Qa.exports, dc = {
|
|
|
17857
17870
|
reset() {
|
|
17858
17871
|
this.flagsmithClient = null, this.userContext = null;
|
|
17859
17872
|
}
|
|
17860
|
-
}, Gt(je, "instance"), je),
|
|
17861
|
-
function
|
|
17873
|
+
}, Gt(je, "instance"), je), mc = uc.getInstance(), Bt = Qe(!1), It = Qe([]), ht = Qe(null);
|
|
17874
|
+
function pc(e = mc) {
|
|
17862
17875
|
const t = () => Bt.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), a = async (f, O = []) => {
|
|
17863
17876
|
if (Bt.value) {
|
|
17864
17877
|
console.warn("FeatureFlag is already initialized.");
|
|
@@ -17876,7 +17889,7 @@ function mc(e = uc) {
|
|
|
17876
17889
|
} catch (O) {
|
|
17877
17890
|
console.error("Failed to set user:", O), ht.value = O;
|
|
17878
17891
|
}
|
|
17879
|
-
}, o = async (f) => s(`${
|
|
17892
|
+
}, o = async (f) => s(`${ws}-${f}`), n = (f, O, q = null) => {
|
|
17880
17893
|
if (!t()) return q;
|
|
17881
17894
|
try {
|
|
17882
17895
|
return e.getFlagValue(f, O) ?? q;
|
|
@@ -17897,7 +17910,7 @@ function mc(e = uc) {
|
|
|
17897
17910
|
} catch (ae) {
|
|
17898
17911
|
return console.error(`Error getting user flag value for ${O}:`, ae), q;
|
|
17899
17912
|
}
|
|
17900
|
-
}, w = async (f, O, q = null, U) => d(`${
|
|
17913
|
+
}, w = async (f, O, q = null, U) => d(`${ws}-${f}`, O, q, U), A = () => {
|
|
17901
17914
|
try {
|
|
17902
17915
|
e.reset();
|
|
17903
17916
|
} catch (f) {
|
|
@@ -17920,25 +17933,25 @@ function mc(e = uc) {
|
|
|
17920
17933
|
reset: A
|
|
17921
17934
|
};
|
|
17922
17935
|
}
|
|
17923
|
-
var
|
|
17936
|
+
var hc = () => pc();
|
|
17924
17937
|
const Oc = /* @__PURE__ */ _e({
|
|
17925
17938
|
__name: "App",
|
|
17926
17939
|
setup(e) {
|
|
17927
|
-
const t = ra(), { init: a } =
|
|
17928
|
-
return
|
|
17929
|
-
t.registerSidebarComponent(
|
|
17940
|
+
const t = ra(), { init: a } = hc();
|
|
17941
|
+
return Ps(async () => {
|
|
17942
|
+
t.registerSidebarComponent(tc), await a({
|
|
17930
17943
|
apiKey: t.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
17931
17944
|
});
|
|
17932
17945
|
}), (s, o) => {
|
|
17933
17946
|
const n = gt("RouterView");
|
|
17934
17947
|
return $e(), Ht(vn, null, [
|
|
17935
|
-
ot(
|
|
17948
|
+
ot(lc),
|
|
17936
17949
|
ot(n)
|
|
17937
17950
|
], 64);
|
|
17938
17951
|
};
|
|
17939
17952
|
}
|
|
17940
17953
|
});
|
|
17941
|
-
var Ra = { name: "@feedmepos/mf-hrm-portal", version: "2.4.
|
|
17954
|
+
var Ra = { name: "@feedmepos/mf-hrm-portal", version: "2.4.1", mode: "fmmf" };
|
|
17942
17955
|
console.log(
|
|
17943
17956
|
`%c${Ra.name}%c v${Ra.version} %c${Ra.mode}`,
|
|
17944
17957
|
"background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
|
|
@@ -17968,21 +17981,21 @@ const Tc = () => {
|
|
|
17968
17981
|
);
|
|
17969
17982
|
};
|
|
17970
17983
|
export {
|
|
17971
|
-
|
|
17972
|
-
|
|
17984
|
+
wc as A,
|
|
17985
|
+
bc as G,
|
|
17973
17986
|
Yl as I,
|
|
17974
|
-
|
|
17987
|
+
Sc as L,
|
|
17975
17988
|
hr as O,
|
|
17976
|
-
|
|
17989
|
+
Mc as Q,
|
|
17977
17990
|
Z as R,
|
|
17978
|
-
|
|
17991
|
+
Cc as S,
|
|
17979
17992
|
mr as U,
|
|
17980
17993
|
tl as X,
|
|
17981
|
-
|
|
17994
|
+
kc as Y,
|
|
17982
17995
|
Ed as _,
|
|
17983
|
-
|
|
17996
|
+
ec as a,
|
|
17984
17997
|
Fd as b,
|
|
17985
|
-
|
|
17998
|
+
hc as c,
|
|
17986
17999
|
v as d,
|
|
17987
18000
|
Ot as e,
|
|
17988
18001
|
nd as f,
|
|
@@ -17990,11 +18003,11 @@ export {
|
|
|
17990
18003
|
Oc as h,
|
|
17991
18004
|
Tc as i,
|
|
17992
18005
|
wr as k,
|
|
17993
|
-
|
|
18006
|
+
Bc as m,
|
|
17994
18007
|
r as n,
|
|
17995
18008
|
Fe as p,
|
|
17996
|
-
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18009
|
+
_d as r,
|
|
18010
|
+
es as u,
|
|
18011
|
+
Pc as w,
|
|
18012
|
+
Dc as z
|
|
18000
18013
|
};
|