@feedmepos/mf-hrm-portal 2.2.5-dev.3 → 2.2.5-dev.4
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-BuIPVwsl.js → ApprovalCodeList-D0B_X3Sf.js} +4 -4
- package/dist/{AuditLogList-l3fv_3jD.js → AuditLogList-D9anf4YQ.js} +18 -17
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BYY9dMSQ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js} +2 -2
- package/dist/{EmployeeList-HjNxPBcN.js → EmployeeList-DREDu3Ou.js} +29 -27
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js} +1 -1
- package/dist/{GrantUserList-B91EBl82.js → GrantUserList-CLDshEN9.js} +5 -5
- package/dist/{Main-DeqJPnm7.js → Main-DtMaG42L.js} +2 -2
- package/dist/{Main-TuG-h_qY.js → Main-QhQxU593.js} +5 -5
- package/dist/{Main-C_tQuQsU.js → Main-lqlb8tPw.js} +9 -9
- package/dist/{PermissionSetList-qVaYkiQ4.js → PermissionSetList-BK8yBpJJ.js} +11 -10
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DcpNr0M4.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-uSdvH81B.js} +676 -675
- package/dist/{RoleList-CM0m4nya.js → RoleList-D6AX6BqB.js} +7 -7
- package/dist/ScheduleGeneralPage-DAECTCDu.js +242 -0
- package/dist/SchedulePage-CdFR7JuO.js +10751 -0
- package/dist/SchedulePositionPage-DTtKg0sx.js +220 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-BiuUrr50.js +199 -0
- package/dist/SelectFilter-CG13h83-.js +264 -0
- package/dist/{TeamMemberList-GkMQuyoE.js → TeamMemberList-BM5JoR6J.js} +36 -34
- package/dist/{TimesheetList-Ci2r3AOF.js → TimesheetList-Ch_f_PD5.js} +54 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QbQ7tbJP.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CxqxqwyD.js} +2 -2
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-MXDLzWd6.js → app-tDHL6k4G.js} +2884 -2299
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DRqYbe11.js → dayjs.min-B_XWc0Hu.js} +1 -1
- package/dist/employee-Bs_2vqBY.js +139 -0
- package/dist/index-Cz2b95YF.js +70 -0
- package/dist/{iteration-CtN8sidV.js → index-jxRluZiW.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-BwY7earz.js → lodash-D5vM3paU.js} +1 -1
- package/dist/{role-Ds1yN3BN.js → role-7ccipEEe.js} +4 -3
- package/dist/{rule-DkG2eGGH.js → rule-7faruCdz.js} +71 -70
- package/dist/src/api/schedule/index.d.ts +44 -0
- package/dist/src/components/layout/AppSidebar.vue.d.ts +2 -0
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/withShell.d.ts +14 -0
- package/dist/src/router/shared.d.ts +4 -1
- package/dist/src/types/schedule.d.ts +232 -0
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +4 -0
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +4 -0
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +4 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +34 -0
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +31 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +54 -0
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +67 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +38 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +29 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +86 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +66 -0
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +113 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +136 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +415 -0
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +43 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +48 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +82 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +68 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +139 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +26 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +80 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +179 -0
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +91 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +183 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +54 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +225 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +174 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +44 -0
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +10 -0
- package/dist/src/views/scheduling/data.d.ts +105 -0
- package/dist/src/views/scheduling/locales/index.d.ts +496 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +116 -0
- package/dist/src/views/scheduling/types.d.ts +311 -0
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-B_YakoB-.js → useReportPermissions-FieO4EAD.js} +3 -3
- package/dist/useScheduleOutlet-CmIG5dwQ.js +557 -0
- package/dist/useSchedulePositions-DPVAgdB2.js +103 -0
- package/package.json +1 -1
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/employee-zsQMMIVM.js +0 -204
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as mr, defineComponent as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as mr, defineComponent as Ae, h as Gn, createVNode as ue, Text as fr, Fragment as Re, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as de, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as vr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as pr } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Wn, N as Zn, d as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import { r as
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
5
|
+
import { p as Wn, N as Zn, d as Ir, P as yr, w as Lt, x as Er, y as Nr } from "./rule-7faruCdz.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js";
|
|
7
|
+
import { u as Or, v as Sr, b as Bn, S as Dt, A as tt, c as he, k as rn, O as Lr } from "./app-tDHL6k4G.js";
|
|
8
|
+
import { c as It } from "./iteration-CcXrOMQe.js";
|
|
9
|
+
import { r as Ar } from "./string-VNuQNweN.js";
|
|
10
|
+
import "./index-jxRluZiW.js";
|
|
11
|
+
import { g as kr, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
12
|
+
import { u as Mr } from "./role-7ccipEEe.js";
|
|
12
13
|
function Yn(e, t) {
|
|
13
14
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
15
|
}
|
|
@@ -31,9 +32,9 @@ function sn(e, t) {
|
|
|
31
32
|
* (c) 2024 kazuya kawaguchi
|
|
32
33
|
* Released under the MIT License.
|
|
33
34
|
*/
|
|
34
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]",
|
|
35
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
35
36
|
let an;
|
|
36
|
-
const
|
|
37
|
+
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
38
|
function ln(e) {
|
|
38
39
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
40
|
}
|
|
@@ -41,7 +42,7 @@ const Vr = Object.prototype.hasOwnProperty;
|
|
|
41
42
|
function Le(e, t) {
|
|
42
43
|
return Vr.call(e, t);
|
|
43
44
|
}
|
|
44
|
-
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && me(e.then) && me(e.catch),
|
|
45
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Gr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
46
|
function $t(e, t = "") {
|
|
46
47
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
48
|
}
|
|
@@ -49,7 +50,7 @@ function Wr(e, t) {
|
|
|
49
50
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
51
|
}
|
|
51
52
|
const ft = (e) => !te(e) || be(e);
|
|
52
|
-
function
|
|
53
|
+
function yt(e, t) {
|
|
53
54
|
if (ft(e) || ft(t))
|
|
54
55
|
throw new Error("Invalid value");
|
|
55
56
|
const n = [{ src: e, des: t }];
|
|
@@ -83,22 +84,22 @@ const re = {
|
|
|
83
84
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
85
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
86
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
87
|
-
function
|
|
87
|
+
}, Br = 17;
|
|
88
|
+
function Tt(e, t, n = {}) {
|
|
88
89
|
const { domain: r, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
89
90
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
90
91
|
}
|
|
91
92
|
function Yr(e) {
|
|
92
93
|
throw e;
|
|
93
94
|
}
|
|
94
|
-
const Pe = " ",
|
|
95
|
+
const Pe = " ", Xr = "\r", ye = `
|
|
95
96
|
`, Hr = "\u2028", $r = "\u2029";
|
|
96
97
|
function Jr(e) {
|
|
97
98
|
const t = e;
|
|
98
99
|
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
-
const d = (v) => t[v] ===
|
|
100
|
+
const d = (v) => t[v] === Xr && t[v + 1] === ye, u = (v) => t[v] === ye, i = (v) => t[v] === $r, g = (v) => t[v] === Hr, y = (v) => d(v) || u(v) || i(v) || g(v), T = () => n, N = () => r, F = () => l, w = () => a, A = (v) => d(v) || i(v) || g(v) ? ye : t[v], D = () => A(n), f = () => A(n + a);
|
|
100
101
|
function h() {
|
|
101
|
-
return a = 0,
|
|
102
|
+
return a = 0, y(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
102
103
|
}
|
|
103
104
|
function S() {
|
|
104
105
|
return d(n + a) && a++, a++, t[n + a];
|
|
@@ -109,25 +110,25 @@ function Jr(e) {
|
|
|
109
110
|
function b(v = 0) {
|
|
110
111
|
a = v;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function I() {
|
|
113
114
|
const v = n + a;
|
|
114
115
|
for (; v !== n; )
|
|
115
116
|
h();
|
|
116
117
|
a = 0;
|
|
117
118
|
}
|
|
118
119
|
return {
|
|
119
|
-
index:
|
|
120
|
+
index: T,
|
|
120
121
|
line: N,
|
|
121
122
|
column: F,
|
|
122
123
|
peekOffset: w,
|
|
123
|
-
charAt:
|
|
124
|
+
charAt: A,
|
|
124
125
|
currentChar: D,
|
|
125
126
|
currentPeek: f,
|
|
126
127
|
next: h,
|
|
127
128
|
peek: S,
|
|
128
129
|
reset: c,
|
|
129
130
|
resetPeek: b,
|
|
130
|
-
skipToPeek:
|
|
131
|
+
skipToPeek: I
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
134
|
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
@@ -144,21 +145,21 @@ function Qr(e, t = {}) {
|
|
|
144
145
|
braceNest: 0,
|
|
145
146
|
inLinked: !1,
|
|
146
147
|
text: ""
|
|
147
|
-
}, g = () => i, { onError:
|
|
148
|
-
function
|
|
148
|
+
}, g = () => i, { onError: y } = t;
|
|
149
|
+
function T(s, o, _, ...k) {
|
|
149
150
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null, p =
|
|
151
|
+
if (o.column += _, o.offset += _, y) {
|
|
152
|
+
const P = n ? Ft(M.startLoc, o) : null, p = Tt(s, P, {
|
|
152
153
|
domain: zr,
|
|
153
|
-
args:
|
|
154
|
+
args: k
|
|
154
155
|
});
|
|
155
|
-
|
|
156
|
+
y(p);
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
function N(s, o, _) {
|
|
159
160
|
s.endLoc = a(), s.currentType = o;
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
161
|
+
const k = { type: o };
|
|
162
|
+
return n && (k.loc = Ft(s.startLoc, s.endLoc)), _ != null && (k.value = _), k;
|
|
162
163
|
}
|
|
163
164
|
const F = (s) => N(
|
|
164
165
|
s,
|
|
@@ -166,16 +167,16 @@ function Qr(e, t = {}) {
|
|
|
166
167
|
/* TokenTypes.EOF */
|
|
167
168
|
);
|
|
168
169
|
function w(s, o) {
|
|
169
|
-
return s.currentChar() === o ? (s.next(), o) : (
|
|
170
|
+
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function A(s) {
|
|
172
173
|
let o = "";
|
|
173
|
-
for (; s.currentPeek() === Pe || s.currentPeek() ===
|
|
174
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
174
175
|
o += s.currentPeek(), s.peek();
|
|
175
176
|
return o;
|
|
176
177
|
}
|
|
177
178
|
function D(s) {
|
|
178
|
-
const o =
|
|
179
|
+
const o = A(s);
|
|
179
180
|
return s.skipToPeek(), o;
|
|
180
181
|
}
|
|
181
182
|
function f(s) {
|
|
@@ -196,71 +197,71 @@ function Qr(e, t = {}) {
|
|
|
196
197
|
const { currentType: _ } = o;
|
|
197
198
|
if (_ !== 2)
|
|
198
199
|
return !1;
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
return s.resetPeek(),
|
|
200
|
+
A(s);
|
|
201
|
+
const k = f(s.currentPeek());
|
|
202
|
+
return s.resetPeek(), k;
|
|
202
203
|
}
|
|
203
204
|
function c(s, o) {
|
|
204
205
|
const { currentType: _ } = o;
|
|
205
206
|
if (_ !== 2)
|
|
206
207
|
return !1;
|
|
207
|
-
|
|
208
|
-
const
|
|
208
|
+
A(s);
|
|
209
|
+
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(k);
|
|
209
210
|
return s.resetPeek(), M;
|
|
210
211
|
}
|
|
211
212
|
function b(s, o) {
|
|
212
213
|
const { currentType: _ } = o;
|
|
213
214
|
if (_ !== 2)
|
|
214
215
|
return !1;
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
return s.resetPeek(),
|
|
216
|
+
A(s);
|
|
217
|
+
const k = s.currentPeek() === cn;
|
|
218
|
+
return s.resetPeek(), k;
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
+
function I(s, o) {
|
|
220
221
|
const { currentType: _ } = o;
|
|
221
222
|
if (_ !== 7)
|
|
222
223
|
return !1;
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
return s.resetPeek(),
|
|
224
|
+
A(s);
|
|
225
|
+
const k = s.currentPeek() === ".";
|
|
226
|
+
return s.resetPeek(), k;
|
|
226
227
|
}
|
|
227
228
|
function v(s, o) {
|
|
228
229
|
const { currentType: _ } = o;
|
|
229
230
|
if (_ !== 8)
|
|
230
231
|
return !1;
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
return s.resetPeek(),
|
|
232
|
+
A(s);
|
|
233
|
+
const k = f(s.currentPeek());
|
|
234
|
+
return s.resetPeek(), k;
|
|
234
235
|
}
|
|
235
236
|
function R(s, o) {
|
|
236
237
|
const { currentType: _ } = o;
|
|
237
238
|
if (!(_ === 7 || _ === 11))
|
|
238
239
|
return !1;
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
return s.resetPeek(),
|
|
240
|
+
A(s);
|
|
241
|
+
const k = s.currentPeek() === ":";
|
|
242
|
+
return s.resetPeek(), k;
|
|
242
243
|
}
|
|
243
244
|
function L(s, o) {
|
|
244
245
|
const { currentType: _ } = o;
|
|
245
246
|
if (_ !== 9)
|
|
246
247
|
return !1;
|
|
247
|
-
const
|
|
248
|
+
const k = () => {
|
|
248
249
|
const P = s.currentPeek();
|
|
249
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P ===
|
|
250
|
-
}, M =
|
|
250
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), k()) : x(s, !1);
|
|
251
|
+
}, M = k();
|
|
251
252
|
return s.resetPeek(), M;
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
254
|
+
function X(s) {
|
|
255
|
+
A(s);
|
|
255
256
|
const o = s.currentPeek() === "|";
|
|
256
257
|
return s.resetPeek(), o;
|
|
257
258
|
}
|
|
258
259
|
function x(s, o = !0) {
|
|
259
260
|
const _ = (M = !1, P = "") => {
|
|
260
261
|
const p = s.currentPeek();
|
|
261
|
-
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P ===
|
|
262
|
-
},
|
|
263
|
-
return o && s.resetPeek(),
|
|
262
|
+
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P === ye) : p === Pe ? (s.peek(), _(!0, Pe)) : p === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
263
|
+
}, k = _();
|
|
264
|
+
return o && s.resetPeek(), k;
|
|
264
265
|
}
|
|
265
266
|
function m(s, o) {
|
|
266
267
|
const _ = s.currentChar();
|
|
@@ -296,14 +297,14 @@ function Qr(e, t = {}) {
|
|
|
296
297
|
function G(s) {
|
|
297
298
|
return m(s, W);
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function B(s) {
|
|
300
301
|
const o = s.charCodeAt(0);
|
|
301
302
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
303
|
o >= 65 && o <= 70 || // A-F
|
|
303
304
|
o >= 97 && o <= 102;
|
|
304
305
|
}
|
|
305
306
|
function Y(s) {
|
|
306
|
-
return m(s,
|
|
307
|
+
return m(s, B);
|
|
307
308
|
}
|
|
308
309
|
function ne(s) {
|
|
309
310
|
let o = "", _ = "";
|
|
@@ -317,11 +318,11 @@ function Qr(e, t = {}) {
|
|
|
317
318
|
const _ = s.currentChar();
|
|
318
319
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
320
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
321
|
+
if (_ === Pe || _ === ye)
|
|
321
322
|
if (x(s))
|
|
322
323
|
o += _, s.next();
|
|
323
324
|
else {
|
|
324
|
-
if (
|
|
325
|
+
if (X(s))
|
|
325
326
|
break;
|
|
326
327
|
o += _, s.next();
|
|
327
328
|
}
|
|
@@ -335,23 +336,23 @@ function Qr(e, t = {}) {
|
|
|
335
336
|
let o = "", _ = "";
|
|
336
337
|
for (; o = j(s); )
|
|
337
338
|
_ += o;
|
|
338
|
-
return s.currentChar() === xe &&
|
|
339
|
+
return s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
340
|
}
|
|
340
341
|
function ce(s) {
|
|
341
342
|
D(s);
|
|
342
343
|
let o = "";
|
|
343
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe &&
|
|
344
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
345
|
}
|
|
345
346
|
function se(s) {
|
|
346
|
-
return s !== cn && s !==
|
|
347
|
+
return s !== cn && s !== ye;
|
|
347
348
|
}
|
|
348
349
|
function fe(s) {
|
|
349
350
|
D(s), w(s, "'");
|
|
350
351
|
let o = "", _ = "";
|
|
351
352
|
for (; o = m(s, se); )
|
|
352
353
|
o === "\\" ? _ += q(s) : _ += o;
|
|
353
|
-
const
|
|
354
|
-
return
|
|
354
|
+
const k = s.currentChar();
|
|
355
|
+
return k === ye || k === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), k === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
355
356
|
}
|
|
356
357
|
function q(s) {
|
|
357
358
|
const o = s.currentChar();
|
|
@@ -364,24 +365,24 @@ function Qr(e, t = {}) {
|
|
|
364
365
|
case "U":
|
|
365
366
|
return De(s, o, 6);
|
|
366
367
|
default:
|
|
367
|
-
return
|
|
368
|
+
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
368
369
|
}
|
|
369
370
|
}
|
|
370
371
|
function De(s, o, _) {
|
|
371
372
|
w(s, o);
|
|
372
|
-
let
|
|
373
|
+
let k = "";
|
|
373
374
|
for (let M = 0; M < _; M++) {
|
|
374
375
|
const P = Y(s);
|
|
375
376
|
if (!P) {
|
|
376
|
-
|
|
377
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${k}${s.currentChar()}`);
|
|
377
378
|
break;
|
|
378
379
|
}
|
|
379
|
-
|
|
380
|
+
k += P;
|
|
380
381
|
}
|
|
381
|
-
return `\\${o}${
|
|
382
|
+
return `\\${o}${k}`;
|
|
382
383
|
}
|
|
383
384
|
function K(s) {
|
|
384
|
-
return s !== "{" && s !== "}" && s !== Pe && s !==
|
|
385
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
385
386
|
}
|
|
386
387
|
function ve(s) {
|
|
387
388
|
D(s);
|
|
@@ -398,8 +399,8 @@ function Qr(e, t = {}) {
|
|
|
398
399
|
}
|
|
399
400
|
function Ke(s) {
|
|
400
401
|
const o = (_) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
402
|
+
const k = s.currentChar();
|
|
403
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Pe ? _ : (_ += k, s.next(), o(_));
|
|
403
404
|
};
|
|
404
405
|
return o("");
|
|
405
406
|
}
|
|
@@ -416,27 +417,27 @@ function Qr(e, t = {}) {
|
|
|
416
417
|
let _ = null;
|
|
417
418
|
switch (s.currentChar()) {
|
|
418
419
|
case "{":
|
|
419
|
-
return o.braceNest >= 1 &&
|
|
420
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
420
421
|
o,
|
|
421
422
|
2,
|
|
422
423
|
"{"
|
|
423
424
|
/* TokenChars.BraceLeft */
|
|
424
425
|
), D(s), o.braceNest++, _;
|
|
425
426
|
case "}":
|
|
426
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
427
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
427
428
|
o,
|
|
428
429
|
3,
|
|
429
430
|
"}"
|
|
430
431
|
/* TokenChars.BraceRight */
|
|
431
432
|
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
433
|
case "@":
|
|
433
|
-
return o.braceNest > 0 &&
|
|
434
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
434
435
|
default: {
|
|
435
436
|
let M = !0, P = !0, p = !0;
|
|
436
|
-
if (
|
|
437
|
-
return o.braceNest > 0 &&
|
|
437
|
+
if (X(s))
|
|
438
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
439
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return
|
|
440
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Be(s, o);
|
|
440
441
|
if (M = S(s, o))
|
|
441
442
|
return _ = N(o, 4, _e(s)), D(s), _;
|
|
442
443
|
if (P = c(s, o))
|
|
@@ -444,7 +445,7 @@ function Qr(e, t = {}) {
|
|
|
444
445
|
if (p = b(s, o))
|
|
445
446
|
return _ = N(o, 6, fe(s)), D(s), _;
|
|
446
447
|
if (!M && !P && !p)
|
|
447
|
-
return _ = N(o, 12, ve(s)),
|
|
448
|
+
return _ = N(o, 12, ve(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
448
449
|
break;
|
|
449
450
|
}
|
|
450
451
|
}
|
|
@@ -452,16 +453,16 @@ function Qr(e, t = {}) {
|
|
|
452
453
|
}
|
|
453
454
|
function Ce(s, o) {
|
|
454
455
|
const { currentType: _ } = o;
|
|
455
|
-
let
|
|
456
|
+
let k = null;
|
|
456
457
|
const M = s.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
458
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
459
|
case "@":
|
|
459
|
-
return s.next(),
|
|
460
|
+
return s.next(), k = N(
|
|
460
461
|
o,
|
|
461
462
|
7,
|
|
462
463
|
"@"
|
|
463
464
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), o.inLinked = !0,
|
|
465
|
+
), o.inLinked = !0, k;
|
|
465
466
|
case ".":
|
|
466
467
|
return D(s), s.next(), N(
|
|
467
468
|
o,
|
|
@@ -477,10 +478,10 @@ function Qr(e, t = {}) {
|
|
|
477
478
|
/* TokenChars.LinkedDelimiter */
|
|
478
479
|
);
|
|
479
480
|
default:
|
|
480
|
-
return
|
|
481
|
+
return X(s) ? (k = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, k) : I(s, o) || R(s, o) ? (D(s), Ce(s, o)) : v(s, o) ? (D(s), N(o, 11, Je(s))) : L(s, o) ? (D(s), M === "{" ? Fe(s, o) || k : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Be(s, o));
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function Be(s, o) {
|
|
484
485
|
let _ = {
|
|
485
486
|
type: 13
|
|
486
487
|
/* TokenTypes.EOF */
|
|
@@ -493,7 +494,7 @@ function Qr(e, t = {}) {
|
|
|
493
494
|
case "{":
|
|
494
495
|
return Fe(s, o) || F(o);
|
|
495
496
|
case "}":
|
|
496
|
-
return
|
|
497
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
497
498
|
o,
|
|
498
499
|
3,
|
|
499
500
|
"}"
|
|
@@ -502,7 +503,7 @@ function Qr(e, t = {}) {
|
|
|
502
503
|
case "@":
|
|
503
504
|
return Ce(s, o) || F(o);
|
|
504
505
|
default: {
|
|
505
|
-
if (
|
|
506
|
+
if (X(s))
|
|
506
507
|
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
508
|
if (x(s))
|
|
508
509
|
return N(o, 0, Q(s));
|
|
@@ -511,16 +512,16 @@ function Qr(e, t = {}) {
|
|
|
511
512
|
}
|
|
512
513
|
return _;
|
|
513
514
|
}
|
|
514
|
-
function
|
|
515
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
516
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
515
|
+
function O() {
|
|
516
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: k } = i;
|
|
517
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = k, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? N(
|
|
517
518
|
i,
|
|
518
519
|
13
|
|
519
520
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
521
|
+
) : Be(r, i);
|
|
521
522
|
}
|
|
522
523
|
return {
|
|
523
|
-
nextToken:
|
|
524
|
+
nextToken: O,
|
|
524
525
|
currentOffset: l,
|
|
525
526
|
currentPosition: a,
|
|
526
527
|
context: g
|
|
@@ -542,9 +543,9 @@ function ts(e, t, n) {
|
|
|
542
543
|
function ns(e = {}) {
|
|
543
544
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
545
|
function r(f, h, S, c, ...b) {
|
|
545
|
-
const
|
|
546
|
-
if (
|
|
547
|
-
const v = t ? Ft(S,
|
|
546
|
+
const I = f.currentPosition();
|
|
547
|
+
if (I.offset += c, I.column += c, n) {
|
|
548
|
+
const v = t ? Ft(S, I) : null, R = Tt(h, v, {
|
|
548
549
|
domain: qr,
|
|
549
550
|
args: b
|
|
550
551
|
});
|
|
@@ -563,27 +564,27 @@ function ns(e = {}) {
|
|
|
563
564
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
565
|
}
|
|
565
566
|
function u(f, h) {
|
|
566
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
567
|
-
return
|
|
567
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(5, c, b);
|
|
568
|
+
return I.index = parseInt(h, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
568
569
|
}
|
|
569
570
|
function i(f, h) {
|
|
570
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
571
|
-
return
|
|
571
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
572
|
+
return I.key = h, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
572
573
|
}
|
|
573
574
|
function g(f, h) {
|
|
574
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
575
|
-
return
|
|
575
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
576
|
+
return I.value = h.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
-
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
579
|
-
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0),
|
|
578
|
+
function y(f) {
|
|
579
|
+
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
580
|
+
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
581
|
nextConsumeToken: h,
|
|
581
|
-
node:
|
|
582
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
583
|
-
node:
|
|
582
|
+
node: I
|
|
583
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
584
|
+
node: I
|
|
584
585
|
});
|
|
585
586
|
}
|
|
586
|
-
function
|
|
587
|
+
function T(f, h) {
|
|
587
588
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
589
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
590
|
}
|
|
@@ -591,26 +592,26 @@ function ns(e = {}) {
|
|
|
591
592
|
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
592
593
|
let c = f.nextToken();
|
|
593
594
|
if (c.type === 8) {
|
|
594
|
-
const b =
|
|
595
|
+
const b = y(f);
|
|
595
596
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
597
|
}
|
|
597
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
598
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
599
|
case 10:
|
|
599
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
600
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = T(f, c.value || "");
|
|
600
601
|
break;
|
|
601
602
|
case 4:
|
|
602
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
603
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = i(f, c.value || "");
|
|
603
604
|
break;
|
|
604
605
|
case 5:
|
|
605
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
606
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = u(f, c.value || "");
|
|
606
607
|
break;
|
|
607
608
|
case 6:
|
|
608
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
609
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = g(f, c.value || "");
|
|
609
610
|
break;
|
|
610
611
|
default: {
|
|
611
612
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
612
|
-
const b = f.context(),
|
|
613
|
-
return
|
|
613
|
+
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
614
|
+
return I.value = "", a(I, b.offset, b.startLoc), S.key = I, a(S, b.offset, b.startLoc), {
|
|
614
615
|
nextConsumeToken: c,
|
|
615
616
|
node: S
|
|
616
617
|
};
|
|
@@ -623,25 +624,25 @@ function ns(e = {}) {
|
|
|
623
624
|
function F(f) {
|
|
624
625
|
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
625
626
|
b.items = [];
|
|
626
|
-
let
|
|
627
|
+
let I = null;
|
|
627
628
|
do {
|
|
628
|
-
const L =
|
|
629
|
-
switch (
|
|
629
|
+
const L = I || f.nextToken();
|
|
630
|
+
switch (I = null, L.type) {
|
|
630
631
|
case 0:
|
|
631
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
632
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(d(f, L.value || ""));
|
|
632
633
|
break;
|
|
633
634
|
case 5:
|
|
634
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
635
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(u(f, L.value || ""));
|
|
635
636
|
break;
|
|
636
637
|
case 4:
|
|
637
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
638
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(i(f, L.value || ""));
|
|
638
639
|
break;
|
|
639
640
|
case 6:
|
|
640
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
641
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(g(f, L.value || ""));
|
|
641
642
|
break;
|
|
642
643
|
case 7: {
|
|
643
|
-
const
|
|
644
|
-
b.items.push(
|
|
644
|
+
const X = N(f);
|
|
645
|
+
b.items.push(X.node), I = X.nextConsumeToken || null;
|
|
645
646
|
break;
|
|
646
647
|
}
|
|
647
648
|
}
|
|
@@ -651,26 +652,26 @@ function ns(e = {}) {
|
|
|
651
652
|
}
|
|
652
653
|
function w(f, h, S, c) {
|
|
653
654
|
const b = f.context();
|
|
654
|
-
let
|
|
655
|
+
let I = c.items.length === 0;
|
|
655
656
|
const v = l(1, h, S);
|
|
656
657
|
v.cases = [], v.cases.push(c);
|
|
657
658
|
do {
|
|
658
659
|
const R = F(f);
|
|
659
|
-
|
|
660
|
+
I || (I = R.items.length === 0), v.cases.push(R);
|
|
660
661
|
} while (b.currentType !== 13);
|
|
661
|
-
return
|
|
662
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
+
function A(f) {
|
|
664
665
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
665
666
|
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
666
667
|
}
|
|
667
668
|
function D(f) {
|
|
668
|
-
const h = Qr(f,
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
669
|
+
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
670
|
+
return t && c.loc && (c.loc.source = f), c.body = A(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
670
671
|
}
|
|
671
672
|
return { parse: D };
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function ke(e) {
|
|
674
675
|
if (e.type === 13)
|
|
675
676
|
return "EOF";
|
|
676
677
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -823,20 +824,20 @@ function as(e, t) {
|
|
|
823
824
|
};
|
|
824
825
|
a && e.loc && (d.source = e.loc.source);
|
|
825
826
|
const u = () => d;
|
|
826
|
-
function i(
|
|
827
|
-
d.code +=
|
|
827
|
+
function i(A, D) {
|
|
828
|
+
d.code += A;
|
|
828
829
|
}
|
|
829
|
-
function g(
|
|
830
|
+
function g(A, D = !0) {
|
|
830
831
|
const f = D ? r : "";
|
|
831
|
-
i(l ? f + " ".repeat(
|
|
832
|
+
i(l ? f + " ".repeat(A) : f);
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
+
function y(A = !0) {
|
|
834
835
|
const D = ++d.indentLevel;
|
|
835
|
-
|
|
836
|
+
A && g(D);
|
|
836
837
|
}
|
|
837
|
-
function
|
|
838
|
+
function T(A = !0) {
|
|
838
839
|
const D = --d.indentLevel;
|
|
839
|
-
|
|
840
|
+
A && g(D);
|
|
840
841
|
}
|
|
841
842
|
function N() {
|
|
842
843
|
g(d.indentLevel);
|
|
@@ -844,10 +845,10 @@ function as(e, t) {
|
|
|
844
845
|
return {
|
|
845
846
|
context: u,
|
|
846
847
|
push: i,
|
|
847
|
-
indent:
|
|
848
|
-
deindent:
|
|
848
|
+
indent: y,
|
|
849
|
+
deindent: T,
|
|
849
850
|
newline: N,
|
|
850
|
-
helper: (
|
|
851
|
+
helper: (A) => `_${A}`,
|
|
851
852
|
needIndent: () => d.needIndent
|
|
852
853
|
};
|
|
853
854
|
}
|
|
@@ -941,7 +942,7 @@ const ds = (e, t = {}) => {
|
|
|
941
942
|
breakLineCode: l,
|
|
942
943
|
needIndent: a
|
|
943
944
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((
|
|
945
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
946
|
const { code: i, map: g } = u.context();
|
|
946
947
|
return {
|
|
947
948
|
ast: e,
|
|
@@ -951,14 +952,14 @@ const ds = (e, t = {}) => {
|
|
|
951
952
|
};
|
|
952
953
|
};
|
|
953
954
|
function ms(e, t = {}) {
|
|
954
|
-
const n =
|
|
955
|
+
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
955
956
|
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ds(u, n));
|
|
956
957
|
}
|
|
957
958
|
var fs = { env: { NODE_ENV: "production" } };
|
|
958
959
|
function _s() {
|
|
959
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
960
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
961
|
}
|
|
961
|
-
function
|
|
962
|
+
function At(e) {
|
|
962
963
|
return (n) => vs(n, e);
|
|
963
964
|
}
|
|
964
965
|
function vs(e, t) {
|
|
@@ -986,7 +987,7 @@ function gs(e) {
|
|
|
986
987
|
return We(e, bs, []);
|
|
987
988
|
}
|
|
988
989
|
function mn(e, t) {
|
|
989
|
-
const n =
|
|
990
|
+
const n = ys(t);
|
|
990
991
|
if (n != null)
|
|
991
992
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
993
|
{
|
|
@@ -994,13 +995,13 @@ function mn(e, t) {
|
|
|
994
995
|
return e.normalize(r);
|
|
995
996
|
}
|
|
996
997
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
999
|
-
return We(e,
|
|
998
|
+
const Is = ["s", "static"];
|
|
999
|
+
function ys(e) {
|
|
1000
|
+
return We(e, Is);
|
|
1000
1001
|
}
|
|
1001
|
-
const
|
|
1002
|
+
const Es = ["i", "items"];
|
|
1002
1003
|
function Ns(e) {
|
|
1003
|
-
return We(e,
|
|
1004
|
+
return We(e, Es, []);
|
|
1004
1005
|
}
|
|
1005
1006
|
function Pt(e, t) {
|
|
1006
1007
|
const n = Kt(t);
|
|
@@ -1026,7 +1027,7 @@ function Pt(e, t) {
|
|
|
1026
1027
|
throw it(n);
|
|
1027
1028
|
}
|
|
1028
1029
|
case 6: {
|
|
1029
|
-
const r = t, l = Ss(r), a =
|
|
1030
|
+
const r = t, l = Ss(r), a = As(r);
|
|
1030
1031
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1031
1032
|
}
|
|
1032
1033
|
case 7:
|
|
@@ -1041,19 +1042,19 @@ const Cs = ["t", "type"];
|
|
|
1041
1042
|
function Kt(e) {
|
|
1042
1043
|
return We(e, Cs);
|
|
1043
1044
|
}
|
|
1044
|
-
const
|
|
1045
|
+
const Ts = ["v", "value"];
|
|
1045
1046
|
function _t(e, t) {
|
|
1046
|
-
const n = We(e,
|
|
1047
|
+
const n = We(e, Ts);
|
|
1047
1048
|
if (n)
|
|
1048
1049
|
return n;
|
|
1049
1050
|
throw it(t);
|
|
1050
1051
|
}
|
|
1051
|
-
const
|
|
1052
|
+
const Os = ["m", "modifier"];
|
|
1052
1053
|
function Ss(e) {
|
|
1053
|
-
return We(e,
|
|
1054
|
+
return We(e, Os);
|
|
1054
1055
|
}
|
|
1055
1056
|
const Ls = ["k", "key"];
|
|
1056
|
-
function
|
|
1057
|
+
function As(e) {
|
|
1057
1058
|
const t = We(e, Ls);
|
|
1058
1059
|
if (t)
|
|
1059
1060
|
return t;
|
|
@@ -1073,7 +1074,7 @@ function We(e, t, n) {
|
|
|
1073
1074
|
function it(e) {
|
|
1074
1075
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1076
|
}
|
|
1076
|
-
const
|
|
1077
|
+
const ks = (e) => e;
|
|
1077
1078
|
let vt = oe();
|
|
1078
1079
|
function ot(e) {
|
|
1079
1080
|
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
@@ -1089,22 +1090,22 @@ function Rs(e, t = {}) {
|
|
|
1089
1090
|
function Ms(e, t) {
|
|
1090
1091
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1091
1092
|
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey ||
|
|
1093
|
+
const r = (t.onCacheKey || ks)(e), l = vt[r];
|
|
1093
1094
|
if (l)
|
|
1094
1095
|
return l;
|
|
1095
1096
|
const { ast: a, detectError: d } = Rs(e, {
|
|
1096
1097
|
...t,
|
|
1097
1098
|
location: fs.env.NODE_ENV !== "production",
|
|
1098
1099
|
jit: !0
|
|
1099
|
-
}), u =
|
|
1100
|
+
}), u = At(a);
|
|
1100
1101
|
return d ? u : vt[r] = u;
|
|
1101
1102
|
} else {
|
|
1102
1103
|
const n = e.cacheKey;
|
|
1103
1104
|
if (n) {
|
|
1104
1105
|
const r = vt[n];
|
|
1105
|
-
return r || (vt[n] =
|
|
1106
|
+
return r || (vt[n] = At(e));
|
|
1106
1107
|
} else
|
|
1107
|
-
return
|
|
1108
|
+
return At(e);
|
|
1108
1109
|
}
|
|
1109
1110
|
}
|
|
1110
1111
|
let ct = null;
|
|
@@ -1124,7 +1125,7 @@ function Ps(e) {
|
|
|
1124
1125
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1126
|
}
|
|
1126
1127
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1128
|
+
INVALID_ARGUMENT: Br,
|
|
1128
1129
|
// 17
|
|
1129
1130
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1131
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1133,23 +1134,23 @@ const je = {
|
|
|
1133
1134
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
1135
|
}, js = 24;
|
|
1135
1136
|
function Ue(e) {
|
|
1136
|
-
return
|
|
1137
|
+
return Tt(e, null, void 0);
|
|
1137
1138
|
}
|
|
1138
1139
|
function zt(e, t) {
|
|
1139
1140
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
1141
|
}
|
|
1141
|
-
let
|
|
1142
|
+
let kt;
|
|
1142
1143
|
function fn(e) {
|
|
1143
1144
|
if (Z(e))
|
|
1144
1145
|
return e;
|
|
1145
1146
|
if (me(e)) {
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1147
|
+
if (e.resolvedOnce && kt != null)
|
|
1148
|
+
return kt;
|
|
1148
1149
|
if (e.constructor.name === "Function") {
|
|
1149
1150
|
const t = e();
|
|
1150
1151
|
if (xr(t))
|
|
1151
1152
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return
|
|
1153
|
+
return kt = t;
|
|
1153
1154
|
} else
|
|
1154
1155
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1156
|
} else
|
|
@@ -1370,7 +1371,7 @@ function Zs(e) {
|
|
|
1370
1371
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1372
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1373
|
}
|
|
1373
|
-
function
|
|
1374
|
+
function Bs(e) {
|
|
1374
1375
|
if (e == null)
|
|
1375
1376
|
return "o";
|
|
1376
1377
|
switch (e.charCodeAt(0)) {
|
|
@@ -1399,9 +1400,9 @@ function Ys(e) {
|
|
|
1399
1400
|
const t = e.trim();
|
|
1400
1401
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ws(t) ? Zs(t) : "*" + t;
|
|
1401
1402
|
}
|
|
1402
|
-
function
|
|
1403
|
+
function Xs(e) {
|
|
1403
1404
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, l = 0, a, d, u, i, g,
|
|
1405
|
+
let n = -1, r = 0, l = 0, a, d, u, i, g, y, T;
|
|
1405
1406
|
const N = [];
|
|
1406
1407
|
N[
|
|
1407
1408
|
0
|
|
@@ -1449,7 +1450,7 @@ function Bs(e) {
|
|
|
1449
1450
|
}
|
|
1450
1451
|
for (; r !== null; )
|
|
1451
1452
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1453
|
+
if (i = Bs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = N[g[1]], y && (u = a, y() === !1))))
|
|
1453
1454
|
return;
|
|
1454
1455
|
if (r === 7)
|
|
1455
1456
|
return t;
|
|
@@ -1463,7 +1464,7 @@ function $s(e, t) {
|
|
|
1463
1464
|
if (!te(e))
|
|
1464
1465
|
return null;
|
|
1465
1466
|
let n = vn.get(t);
|
|
1466
|
-
if (n || (n =
|
|
1467
|
+
if (n || (n = Xs(t), n && vn.set(t, n)), !n)
|
|
1467
1468
|
return null;
|
|
1468
1469
|
const r = n.length;
|
|
1469
1470
|
let l = e, a = 0;
|
|
@@ -1475,7 +1476,7 @@ function $s(e, t) {
|
|
|
1475
1476
|
}
|
|
1476
1477
|
return l;
|
|
1477
1478
|
}
|
|
1478
|
-
const Js = "10.0.5",
|
|
1479
|
+
const Js = "10.0.5", Ot = -1, Nt = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1480
|
function Ks() {
|
|
1480
1481
|
return {
|
|
1481
1482
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1505,7 +1506,7 @@ const bn = (e) => {
|
|
|
1505
1506
|
}, no = () => Qn;
|
|
1506
1507
|
let gn = 0;
|
|
1507
1508
|
function ro(e = {}) {
|
|
1508
|
-
const t = me(e.onWarn) ? e.onWarn : Wr, n = Z(e.version) ? e.version : Js, r = Z(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : Rt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : Rt(l), i = ee(e.numberFormats) ? e.numberFormats : Rt(l), g =
|
|
1509
|
+
const t = me(e.onWarn) ? e.onWarn : Wr, n = Z(e.version) ? e.version : Js, r = Z(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : Rt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : Rt(l), i = ee(e.numberFormats) ? e.numberFormats : Rt(l), g = Ie(oe(), e.modifiers, Ks()), y = e.pluralRules || oe(), T = me(e.missing) ? e.missing : null, N = pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, A = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Hs, I = me(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, L = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = te(R.__meta) ? R.__meta : {};
|
|
1509
1510
|
gn++;
|
|
1510
1511
|
const m = {
|
|
1511
1512
|
version: n,
|
|
@@ -1514,24 +1515,24 @@ function ro(e = {}) {
|
|
|
1514
1515
|
fallbackLocale: a,
|
|
1515
1516
|
messages: d,
|
|
1516
1517
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1518
|
-
missing:
|
|
1518
|
+
pluralRules: y,
|
|
1519
|
+
missing: T,
|
|
1519
1520
|
missingWarn: N,
|
|
1520
1521
|
fallbackWarn: F,
|
|
1521
1522
|
fallbackFormat: w,
|
|
1522
|
-
unresolving:
|
|
1523
|
+
unresolving: A,
|
|
1523
1524
|
postTranslation: D,
|
|
1524
1525
|
processor: f,
|
|
1525
1526
|
warnHtmlMessage: h,
|
|
1526
1527
|
escapeParameter: S,
|
|
1527
1528
|
messageCompiler: c,
|
|
1528
1529
|
messageResolver: b,
|
|
1529
|
-
localeFallbacker:
|
|
1530
|
+
localeFallbacker: I,
|
|
1530
1531
|
fallbackContext: v,
|
|
1531
1532
|
onWarn: t,
|
|
1532
1533
|
__meta: x
|
|
1533
1534
|
};
|
|
1534
|
-
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters =
|
|
1535
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && Ds(m, n, x), m;
|
|
1535
1536
|
}
|
|
1536
1537
|
const Rt = (e) => ({ [e]: oe() });
|
|
1537
1538
|
function Qt(e, t, n, r, l) {
|
|
@@ -1558,27 +1559,27 @@ function oo(e, t) {
|
|
|
1558
1559
|
return !0;
|
|
1559
1560
|
return !1;
|
|
1560
1561
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g,
|
|
1563
|
-
pe(
|
|
1564
|
-
const F = !!
|
|
1562
|
+
function In(e, ...t) {
|
|
1563
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1564
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1565
|
+
const F = !!y.part, w = zt(e, y), A = d(
|
|
1565
1566
|
e,
|
|
1566
1567
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1568
|
l,
|
|
1568
1569
|
w
|
|
1569
1570
|
);
|
|
1570
1571
|
if (!Z(i) || i === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(w,
|
|
1572
|
+
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1572
1573
|
let D = {}, f, h = null;
|
|
1573
1574
|
const S = "datetime format";
|
|
1574
|
-
for (let
|
|
1575
|
+
for (let I = 0; I < A.length && (f = A[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1575
1576
|
Qt(e, i, f, N, S);
|
|
1576
1577
|
if (!ee(h) || !Z(f))
|
|
1577
|
-
return r ?
|
|
1578
|
+
return r ? Ot : i;
|
|
1578
1579
|
let c = `${f}__${i}`;
|
|
1579
|
-
Ct(
|
|
1580
|
+
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1580
1581
|
let b = u.get(c);
|
|
1581
|
-
return b || (b = new Intl.DateTimeFormat(f,
|
|
1582
|
+
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1583
|
}
|
|
1583
1584
|
const qn = [
|
|
1584
1585
|
"localeMatcher",
|
|
@@ -1628,34 +1629,34 @@ function jt(...e) {
|
|
|
1628
1629
|
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1629
1630
|
}), Z(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1630
1631
|
}
|
|
1631
|
-
function
|
|
1632
|
+
function yn(e, t, n) {
|
|
1632
1633
|
const r = e;
|
|
1633
1634
|
for (const l in n) {
|
|
1634
1635
|
const a = `${t}__${l}`;
|
|
1635
1636
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1636
1637
|
}
|
|
1637
1638
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g,
|
|
1640
|
-
pe(
|
|
1641
|
-
const F = !!
|
|
1639
|
+
function En(e, ...t) {
|
|
1640
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1641
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1642
|
+
const F = !!y.part, w = zt(e, y), A = d(
|
|
1642
1643
|
e,
|
|
1643
1644
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1645
|
l,
|
|
1645
1646
|
w
|
|
1646
1647
|
);
|
|
1647
1648
|
if (!Z(i) || i === "")
|
|
1648
|
-
return new Intl.NumberFormat(w,
|
|
1649
|
+
return new Intl.NumberFormat(w, T).format(g);
|
|
1649
1650
|
let D = {}, f, h = null;
|
|
1650
1651
|
const S = "number format";
|
|
1651
|
-
for (let
|
|
1652
|
+
for (let I = 0; I < A.length && (f = A[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1652
1653
|
Qt(e, i, f, N, S);
|
|
1653
1654
|
if (!ee(h) || !Z(f))
|
|
1654
|
-
return r ?
|
|
1655
|
+
return r ? Ot : i;
|
|
1655
1656
|
let c = `${f}__${i}`;
|
|
1656
|
-
Ct(
|
|
1657
|
+
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1657
1658
|
let b = u.get(c);
|
|
1658
|
-
return b || (b = new Intl.NumberFormat(f,
|
|
1659
|
+
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1660
|
}
|
|
1660
1661
|
const er = [
|
|
1661
1662
|
"localeMatcher",
|
|
@@ -1711,59 +1712,59 @@ function _o(e = {}) {
|
|
|
1711
1712
|
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1712
1713
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1714
|
const g = (f) => i[f];
|
|
1714
|
-
function
|
|
1715
|
+
function y(f, h) {
|
|
1715
1716
|
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
1717
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
1718
|
}
|
|
1718
|
-
const
|
|
1719
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : ao, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : uo, w = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, D = {
|
|
1719
1720
|
list: u,
|
|
1720
1721
|
named: g,
|
|
1721
1722
|
plural: a,
|
|
1722
1723
|
linked: (f, ...h) => {
|
|
1723
1724
|
const [S, c] = h;
|
|
1724
|
-
let b = "text",
|
|
1725
|
-
h.length === 1 ? te(S) ? (
|
|
1726
|
-
const v =
|
|
1725
|
+
let b = "text", I = "";
|
|
1726
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Z(S) && (I = S || I) : h.length === 2 && (Z(S) && (I = S || I), Z(c) && (b = c || b));
|
|
1727
|
+
const v = y(f, !0)(D), R = (
|
|
1727
1728
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
b === "vnode" && be(v) &&
|
|
1729
|
+
b === "vnode" && be(v) && I ? v[0] : v
|
|
1729
1730
|
);
|
|
1730
|
-
return
|
|
1731
|
+
return I ? T(I)(R, b) : R;
|
|
1731
1732
|
},
|
|
1732
|
-
message:
|
|
1733
|
+
message: y,
|
|
1733
1734
|
type: w,
|
|
1734
1735
|
interpolate: F,
|
|
1735
1736
|
normalize: N,
|
|
1736
|
-
values:
|
|
1737
|
+
values: Ie(oe(), d, i)
|
|
1737
1738
|
};
|
|
1738
1739
|
return D;
|
|
1739
1740
|
}
|
|
1740
|
-
const
|
|
1741
|
-
function
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t),
|
|
1741
|
+
const Tn = () => "", Te = (e) => me(e);
|
|
1742
|
+
function On(e, ...t) {
|
|
1743
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), y = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || w != null && (Z(w) || me(w)), D = zt(e, g);
|
|
1743
1744
|
N && vo(g);
|
|
1744
1745
|
let [f, h, S] = F ? [
|
|
1745
1746
|
i,
|
|
1746
1747
|
D,
|
|
1747
1748
|
u[D] || oe()
|
|
1748
|
-
] : tr(e, i, D, d,
|
|
1749
|
-
if (!F && !(Z(c) || ot(c) ||
|
|
1750
|
-
return l ?
|
|
1751
|
-
let
|
|
1749
|
+
] : tr(e, i, D, d, T, y), c = f, b = i;
|
|
1750
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && A && (c = w, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1751
|
+
return l ? Ot : i;
|
|
1752
|
+
let I = !1;
|
|
1752
1753
|
const v = () => {
|
|
1753
|
-
|
|
1754
|
-
}, R =
|
|
1755
|
-
if (
|
|
1754
|
+
I = !0;
|
|
1755
|
+
}, R = Te(c) ? c : nr(e, i, h, c, b, v);
|
|
1756
|
+
if (I)
|
|
1756
1757
|
return c;
|
|
1757
|
-
const L = bo(e, h, S, g),
|
|
1758
|
+
const L = bo(e, h, S, g), X = _o(L), x = po(e, R, X), m = r ? r(x, i) : x;
|
|
1758
1759
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1760
|
const C = {
|
|
1760
1761
|
timestamp: Date.now(),
|
|
1761
|
-
key: Z(i) ? i :
|
|
1762
|
-
locale: h || (
|
|
1763
|
-
format: Z(c) ? c :
|
|
1762
|
+
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1763
|
+
locale: h || (Te(c) ? c.locale : ""),
|
|
1764
|
+
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1764
1765
|
message: m
|
|
1765
1766
|
};
|
|
1766
|
-
C.meta =
|
|
1767
|
+
C.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
1767
1768
|
}
|
|
1768
1769
|
return m;
|
|
1769
1770
|
}
|
|
@@ -1773,11 +1774,11 @@ function vo(e) {
|
|
|
1773
1774
|
});
|
|
1774
1775
|
}
|
|
1775
1776
|
function tr(e, t, n, r, l, a) {
|
|
1776
|
-
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e,
|
|
1777
|
-
let
|
|
1777
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1778
|
+
let T = oe(), N, F = null;
|
|
1778
1779
|
const w = "translate";
|
|
1779
|
-
for (let
|
|
1780
|
-
if (!oo(N,
|
|
1780
|
+
for (let A = 0; A < y.length && (N = y[A], T = d[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); A++)
|
|
1781
|
+
if (!oo(N, y)) {
|
|
1781
1782
|
const D = Qt(
|
|
1782
1783
|
e,
|
|
1783
1784
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1788,11 +1789,11 @@ function tr(e, t, n, r, l, a) {
|
|
|
1788
1789
|
);
|
|
1789
1790
|
D !== t && (F = D);
|
|
1790
1791
|
}
|
|
1791
|
-
return [F, N,
|
|
1792
|
+
return [F, N, T];
|
|
1792
1793
|
}
|
|
1793
1794
|
function nr(e, t, n, r, l, a) {
|
|
1794
1795
|
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
1795
|
-
if (
|
|
1796
|
+
if (Te(r)) {
|
|
1796
1797
|
const g = r;
|
|
1797
1798
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
1799
|
}
|
|
@@ -1808,10 +1809,10 @@ function po(e, t, n) {
|
|
|
1808
1809
|
}
|
|
1809
1810
|
function Vt(...e) {
|
|
1810
1811
|
const [t, n, r] = e, l = oe();
|
|
1811
|
-
if (!Z(t) && !ge(t) && !
|
|
1812
|
+
if (!Z(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1812
1813
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
|
-
const a = ge(t) ? String(t) : (
|
|
1814
|
-
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) &&
|
|
1814
|
+
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1815
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1815
1816
|
}
|
|
1816
1817
|
function ho(e, t, n, r, l, a) {
|
|
1817
1818
|
return {
|
|
@@ -1825,15 +1826,15 @@ function ho(e, t, n, r, l, a) {
|
|
|
1825
1826
|
};
|
|
1826
1827
|
}
|
|
1827
1828
|
function bo(e, t, n, r) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext:
|
|
1829
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, N = {
|
|
1829
1830
|
locale: t,
|
|
1830
1831
|
modifiers: l,
|
|
1831
1832
|
pluralRules: a,
|
|
1832
1833
|
messages: (F, w) => {
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1834
|
+
let A = d(n, F);
|
|
1835
|
+
if (A == null && (y || w)) {
|
|
1835
1836
|
const [, , D] = tr(
|
|
1836
|
-
|
|
1837
|
+
y || e,
|
|
1837
1838
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1839
|
F,
|
|
1839
1840
|
t,
|
|
@@ -1841,24 +1842,24 @@ function bo(e, t, n, r) {
|
|
|
1841
1842
|
i,
|
|
1842
1843
|
g
|
|
1843
1844
|
);
|
|
1844
|
-
|
|
1845
|
+
A = d(D, F);
|
|
1845
1846
|
}
|
|
1846
|
-
if (Z(
|
|
1847
|
+
if (Z(A) || ot(A)) {
|
|
1847
1848
|
let D = !1;
|
|
1848
|
-
const h = nr(e, F, t,
|
|
1849
|
+
const h = nr(e, F, t, A, F, () => {
|
|
1849
1850
|
D = !0;
|
|
1850
1851
|
});
|
|
1851
|
-
return D ?
|
|
1852
|
-
} else return
|
|
1852
|
+
return D ? Tn : h;
|
|
1853
|
+
} else return Te(A) ? A : Tn;
|
|
1853
1854
|
}
|
|
1854
1855
|
};
|
|
1855
1856
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1856
1857
|
}
|
|
1857
1858
|
_s();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_efb8d97d-fd83-430d-9111-6463bad93060", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_efb8d97d-fd83-430d-9111-6463bad93060", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1789", ACTIONS_ORCHESTRATION_ID: "54f09bee-6e4f-4d1a-ad0b-cbec1c5a4598.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_efb8d97d-fd83-430d-9111-6463bad93060", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10811", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "36384533078", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "87fbbe6ab7e18854afd224693c582438ce7d0cd7", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5147-passcode-uniqueness", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkwNTk3NTYwLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTA1NzUzNjAsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6ImU2NzkzMTg0MTJjNWFiYzEwZmNlMzcyYzhhNDZmMTZhOGVkMWQ2OTIiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTA1NzUwNjAsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA4ODA3MDQwODk5XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJlNjc5MzE4NDEyYzVhYmMxMGZjZTM3MmM4YTQ2ZjE2YThlZDFkNjkyXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNjM4NDUzMzA3OFwiLFwicnVuX251bWJlclwiOlwiMTY5XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiODdmYmJlNmFiN2UxODg1NGFmZDIyNDY5M2M1ODI0MzhjZTdkMGNkN1wiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwid29ya2Zsb3dfc2hhXCI6XCI4N2ZiYmU2YWI3ZTE4ODU0YWZkMjI0NjkzYzU4MjQzOGNlN2QwY2Q3XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzIiwib3JjaF9pZCI6IjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5OC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiNTRmMDliZWUtNmU0Zi00ZDFhLWFkMGItY2JlYzFjNWE0NTk4IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzYzODQ1MzMwNzgiLCJydW5fbnVtYmVyIjoiMTY5IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE2NjQ2NyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5ODo5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEgQWN0aW9ucy5SdW5uZXI6NTRmMDliZWUtNmU0Zi00ZDFhLWFkMGItY2JlYzFjNWE0NTk4Ojk4MjE2NzBjLTQ4ZjQtNTY4OC1hNTY3LWM0NWQ4ZWE1MjRkMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo1NGYwOWJlZS02ZTRmLTRkMWEtYWQwYi1jYmVjMWM1YTQ1OTg6OTgyMTY3MGMtNDhmNC01Njg4LWE1NjctYzQ1ZDhlYTUyNGQxIGdlbmVyYXRlX2lkX3Rva2VuOjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5ODo5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI4N2ZiYmU2YWI3ZTE4ODU0YWZkMjI0NjkzYzU4MjQzOGNlN2QwY2Q3IiwidHJ1c3RfdGllciI6IjEifQ.QhYCV7vTge5jwGeJqb8JuTLZzI281CMJANLZELGlNOgUVO3VOAtvMPALVTViF5sDBt4PNB46IJKShZdyS3FiqekHA8XGNdVh9j_n89PfSLiCK40oEj-X2PpqHElHG7gLyhXgRKmwVGT4SkfUcfc9mC_jeIc9o7XQqjZIoInXOqJ6W5wWN72_ago1Pc45aqOjlpurFJGgRPU3bLDudGKFZfMMWzIqNzd5zERYt8ctvV-ewxH69nVqtbI3GS0yoLsXiPPi6HLEyk0qDjnWAhQuyhS5iYU_ZybdonSEStAdx0W5xZEupTPUfzWouem20dIOx1m4if9KUVa0Ic7ecX7rlg", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_096884f2-066a-44be-853a-f6a0f4b1fc3d", INVOCATION_ID: "99d531d7826c4e53b9df969c4933b391", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "169", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000166467", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5147-passcode-uniqueness", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.5-dev.3", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "87fbbe6ab7e18854afd224693c582438ce7d0cd7", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5147-passcode-uniqueness", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_efb8d97d-fd83-430d-9111-6463bad93060", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/236//idtoken/54f09bee-6e4f-4d1a-ad0b-cbec1c5a4598/9821670c-48f4-5688-a567-c45d8ea524d1?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_efb8d97d-fd83-430d-9111-6463bad93060", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_efb8d97d-fd83-430d-9111-6463bad93060", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_efb8d97d-fd83-430d-9111-6463bad93060", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
-
const
|
|
1860
|
-
function
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1859
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_dfc94322-2083-4ed0-b063-00620d088a7d", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_dfc94322-2083-4ed0-b063-00620d088a7d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1721", ACTIONS_ORCHESTRATION_ID: "fd2178ed-6448-4b33-a92b-e98317a539c1.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_dfc94322-2083-4ed0-b063-00620d088a7d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12489", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "36559855228", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4b8244b841510557f964ab8eccdd10e5c598184f", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/test/schedule-dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWRldlwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc5MDcwMjI5MiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzkwNjgwMDkyLCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiMTk3ZjEyNTAtOWZhNC01NmRmLWIyMDMtNzMxMzQ2MjAwN2FkIiwiam9iX3dvcmtmbG93X3JlZiI6ImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpbiIsImpvYl93b3JrZmxvd19zaGEiOiI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2IiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzkwNjc5NzkyLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIll5VDc3ODZcIixcImFjdG9yX2lkXCI6XCI5NzAwMzEyNVwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMDkzNzc4Mjk5NDZcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjdiNTRiYzY2OTFlYmMzMTY2Y2QxNjQyMzA0MjNkY2U4Yjc1ZTcyMjZcIixcInJlZlwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWRldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNjU1OTg1NTIyOFwiLFwicnVuX251bWJlclwiOlwiMTcyXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiNGI4MjQ0Yjg0MTUxMDU1N2Y5NjRhYjhlY2NkZDEwZTVjNTk4MTg0ZlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1kZXZcIixcIndvcmtmbG93X3NoYVwiOlwiNGI4MjQ0Yjg0MTUxMDU1N2Y5NjRhYjhlY2NkZDEwZTVjNTk4MTg0ZlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1kZXYiLCJvcmNoX2lkIjoiZmQyMTc4ZWQtNjQ0OC00YjMzLWE5MmItZTk4MzE3YTUzOWMxLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJmZDIxNzhlZC02NDQ4LTRiMzMtYTkyYi1lOTgzMTdhNTM5YzEiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNjU1OTg1NTIyOCIsInJ1bl9udW1iZXIiOiIxNzIiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTY5NzY1IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6ZmQyMTc4ZWQtNjQ0OC00YjMzLWE5MmItZTk4MzE3YTUzOWMxOjE5N2YxMjUwLTlmYTQtNTZkZi1iMjAzLTczMTM0NjIwMDdhZCBBY3Rpb25zLlJ1bm5lcjpmZDIxNzhlZC02NDQ4LTRiMzMtYTkyYi1lOTgzMTdhNTM5YzE6MTk3ZjEyNTAtOWZhNC01NmRmLWIyMDMtNzMxMzQ2MjAwN2FkIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmZkMjE3OGVkLTY0NDgtNGIzMy1hOTJiLWU5ODMxN2E1MzljMToxOTdmMTI1MC05ZmE0LTU2ZGYtYjIwMy03MzEzNDYyMDA3YWQgZ2VuZXJhdGVfaWRfdG9rZW46ZmQyMTc4ZWQtNjQ0OC00YjMzLWE5MmItZTk4MzE3YTUzOWMxOjE5N2YxMjUwLTlmYTQtNTZkZi1iMjAzLTczMTM0NjIwMDdhZCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjRiODI0NGI4NDE1MTA1NTdmOTY0YWI4ZWNjZGQxMGU1YzU5ODE4NGYiLCJ0cnVzdF90aWVyIjoiMSJ9.aP3gMSm3AK-5b-F0t-S3JUljKEnO1oUe2KdWN6jb7KKP4yDNARNkfhV2lI3TkNZzNoc22x8zDToaGkBa5UfdiuFvRLO_K24iHYkFJXWKE7Q6DrnnaiGpk1deCaIoYBtj2lC9d3S8MgJLfi2S4OTJ-ocXgrReT-Y9enXi2kUATf6VAdYa0O56dAV18vTkZXmlAX204qWc-Q3XZeiZiUKRuTCi7MNc47I_TjfMy-0VWYnXJ88a_yQKuDNZPS9acbYSrz2AOQGgVFyEojD5htBJiUMindPjCefKwSWj5Wq5FdjFZjfcr3oqfxlWGLy-323nvtIRjbKHH-C-t9bqJjZOvA", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5fe50289-2e9d-40ba-894a-f7d5341eafda", INVOCATION_ID: "fa4515c775ed4a9c8e6bc2a9e05472dc", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "172", GITHUB_TRIGGERING_ACTOR: "YyT7786", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000169765", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.5-dev.4", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "4b8244b841510557f964ab8eccdd10e5c598184f", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-dev", GITHUB_ACTOR: "YyT7786", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_dfc94322-2083-4ed0-b063-00620d088a7d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/23//idtoken/fd2178ed-6448-4b33-a92b-e98317a539c1/197f1250-9fa4-56df-b203-7313462007ad?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_dfc94322-2083-4ed0-b063-00620d088a7d", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_dfc94322-2083-4ed0-b063-00620d088a7d", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_dfc94322-2083-4ed0-b063-00620d088a7d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1860
|
+
const Io = "10.0.5";
|
|
1861
|
+
function yo() {
|
|
1862
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1863
|
}
|
|
1863
1864
|
const at = {
|
|
1864
1865
|
// composer module errors
|
|
@@ -1874,9 +1875,9 @@ const at = {
|
|
|
1874
1875
|
UNEXPECTED_ERROR: 32
|
|
1875
1876
|
};
|
|
1876
1877
|
function ut(e, ...t) {
|
|
1877
|
-
return
|
|
1878
|
+
return Tt(e, null, void 0);
|
|
1878
1879
|
}
|
|
1879
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"), Gt = /* @__PURE__ */ $e("__datetimeParts"), Wt = /* @__PURE__ */ $e("__numberParts"),
|
|
1880
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Gt = /* @__PURE__ */ $e("__datetimeParts"), Wt = /* @__PURE__ */ $e("__numberParts"), Eo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1880
1881
|
function dt(e) {
|
|
1881
1882
|
if (!te(e))
|
|
1882
1883
|
return e;
|
|
@@ -1903,9 +1904,9 @@ function sr(e, t) {
|
|
|
1903
1904
|
if (be(r) && r.forEach((u) => {
|
|
1904
1905
|
if ("locale" in u && "resource" in u) {
|
|
1905
1906
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (d[i] = d[i] || oe(),
|
|
1907
|
+
i ? (d[i] = d[i] || oe(), yt(g, d[i])) : yt(g, d);
|
|
1907
1908
|
} else
|
|
1908
|
-
Z(u) &&
|
|
1909
|
+
Z(u) && yt(JSON.parse(u), d);
|
|
1909
1910
|
}), l == null && a)
|
|
1910
1911
|
for (const u in d)
|
|
1911
1912
|
Le(d, u) && dt(d[u]);
|
|
@@ -1942,17 +1943,17 @@ function No(e, t, n) {
|
|
|
1942
1943
|
function Sn(e) {
|
|
1943
1944
|
return ue(fr, null, e, 0);
|
|
1944
1945
|
}
|
|
1945
|
-
const Ln = "__INTLIFY_META__",
|
|
1946
|
-
let
|
|
1946
|
+
const Ln = "__INTLIFY_META__", An = () => [], Co = () => !1;
|
|
1947
|
+
let kn = 0;
|
|
1947
1948
|
function Rn(e) {
|
|
1948
1949
|
return (t, n, r, l) => e(n, r, Yt() || void 0, l);
|
|
1949
1950
|
}
|
|
1950
|
-
const
|
|
1951
|
+
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
1952
|
const e = Yt();
|
|
1952
1953
|
let t = null;
|
|
1953
1954
|
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1955
|
};
|
|
1955
|
-
function
|
|
1956
|
+
function Oo(e = {}) {
|
|
1956
1957
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : dr;
|
|
1957
1958
|
let d = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1959
|
const u = a(
|
|
@@ -1961,23 +1962,23 @@ function To(e = {}) {
|
|
|
1961
1962
|
), i = a(
|
|
1962
1963
|
// prettier-ignore
|
|
1963
1964
|
t && d ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
-
), g = a(sr(u.value, e)),
|
|
1965
|
-
let N = t ? t.missingWarn : pe(e.missingWarn) ||
|
|
1965
|
+
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1966
|
+
let N = t ? t.missingWarn : pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, D = me(e.missing) ? e.missing : null, f = me(e.missing) ? Rn(e.missing) : null, h = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1967
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let
|
|
1968
|
+
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1968
1969
|
v = (() => {
|
|
1969
1970
|
r && bn(null);
|
|
1970
1971
|
const p = {
|
|
1971
|
-
version:
|
|
1972
|
+
version: Io,
|
|
1972
1973
|
locale: u.value,
|
|
1973
1974
|
fallbackLocale: i.value,
|
|
1974
1975
|
messages: g.value,
|
|
1975
1976
|
modifiers: b,
|
|
1976
|
-
pluralRules:
|
|
1977
|
+
pluralRules: I,
|
|
1977
1978
|
missing: f === null ? void 0 : f,
|
|
1978
1979
|
missingWarn: N,
|
|
1979
1980
|
fallbackWarn: F,
|
|
1980
|
-
fallbackFormat:
|
|
1981
|
+
fallbackFormat: A,
|
|
1981
1982
|
unresolving: !0,
|
|
1982
1983
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1984
|
warnHtmlMessage: S,
|
|
@@ -1986,20 +1987,20 @@ function To(e = {}) {
|
|
|
1986
1987
|
messageCompiler: e.messageCompiler,
|
|
1987
1988
|
__meta: { framework: "vue" }
|
|
1988
1989
|
};
|
|
1989
|
-
p.datetimeFormats =
|
|
1990
|
-
const
|
|
1991
|
-
return r && bn(
|
|
1990
|
+
p.datetimeFormats = y.value, p.numberFormats = T.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1991
|
+
const E = ro(p);
|
|
1992
|
+
return r && bn(E), E;
|
|
1992
1993
|
})(), lt(v, u.value, i.value);
|
|
1993
1994
|
function L() {
|
|
1994
1995
|
return [
|
|
1995
1996
|
u.value,
|
|
1996
1997
|
i.value,
|
|
1997
1998
|
g.value,
|
|
1998
|
-
|
|
1999
|
-
|
|
1999
|
+
y.value,
|
|
2000
|
+
T.value
|
|
2000
2001
|
];
|
|
2001
2002
|
}
|
|
2002
|
-
const
|
|
2003
|
+
const X = z({
|
|
2003
2004
|
get: () => u.value,
|
|
2004
2005
|
set: (p) => {
|
|
2005
2006
|
u.value = p, v.locale = u.value;
|
|
@@ -2009,7 +2010,7 @@ function To(e = {}) {
|
|
|
2009
2010
|
set: (p) => {
|
|
2010
2011
|
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2011
2012
|
}
|
|
2012
|
-
}), m = z(() => g.value), C = /* @__PURE__ */ z(() =>
|
|
2013
|
+
}), m = z(() => g.value), C = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
2014
|
function V() {
|
|
2014
2015
|
return me(h) ? h : null;
|
|
2015
2016
|
}
|
|
@@ -2022,7 +2023,7 @@ function To(e = {}) {
|
|
|
2022
2023
|
function G(p) {
|
|
2023
2024
|
p !== null && (f = Rn(p)), D = p, v.missing = f;
|
|
2024
2025
|
}
|
|
2025
|
-
const
|
|
2026
|
+
const B = (p, E, $, le, Ye, mt) => {
|
|
2026
2027
|
L();
|
|
2027
2028
|
let ze;
|
|
2028
2029
|
try {
|
|
@@ -2031,8 +2032,8 @@ function To(e = {}) {
|
|
|
2031
2032
|
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2032
2033
|
}
|
|
2033
2034
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
-
ge(ze) && ze ===
|
|
2035
|
-
const [cr,
|
|
2035
|
+
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2036
|
+
const [cr, Ea] = E();
|
|
2036
2037
|
return t && w ? le(t) : Ye(cr);
|
|
2037
2038
|
} else {
|
|
2038
2039
|
if (mt(ze))
|
|
@@ -2041,22 +2042,22 @@ function To(e = {}) {
|
|
|
2041
2042
|
}
|
|
2042
2043
|
};
|
|
2043
2044
|
function Y(...p) {
|
|
2044
|
-
return
|
|
2045
|
+
return B((E) => Reflect.apply(On, null, [E, ...p]), () => Vt(...p), "translate", (E) => Reflect.apply(E.t, E, [...p]), (E) => E, (E) => Z(E));
|
|
2045
2046
|
}
|
|
2046
2047
|
function ne(...p) {
|
|
2047
|
-
const [
|
|
2048
|
+
const [E, $, le] = p;
|
|
2048
2049
|
if (le && !te(le))
|
|
2049
2050
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return Y(
|
|
2051
|
+
return Y(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2052
|
}
|
|
2052
2053
|
function Q(...p) {
|
|
2053
|
-
return
|
|
2054
|
+
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => Reflect.apply(E.d, E, [...p]), () => pn, (E) => Z(E));
|
|
2054
2055
|
}
|
|
2055
2056
|
function _e(...p) {
|
|
2056
|
-
return
|
|
2057
|
+
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => Reflect.apply(E.n, E, [...p]), () => pn, (E) => Z(E));
|
|
2057
2058
|
}
|
|
2058
2059
|
function ce(p) {
|
|
2059
|
-
return p.map((
|
|
2060
|
+
return p.map((E) => Z(E) || ge(E) || pe(E) ? Sn(String(E)) : E);
|
|
2060
2061
|
}
|
|
2061
2062
|
const fe = {
|
|
2062
2063
|
normalize: ce,
|
|
@@ -2064,96 +2065,96 @@ function To(e = {}) {
|
|
|
2064
2065
|
type: "vnode"
|
|
2065
2066
|
};
|
|
2066
2067
|
function q(...p) {
|
|
2067
|
-
return
|
|
2068
|
+
return B((E) => {
|
|
2068
2069
|
let $;
|
|
2069
|
-
const le =
|
|
2070
|
+
const le = E;
|
|
2070
2071
|
try {
|
|
2071
|
-
le.processor = fe, $ = Reflect.apply(
|
|
2072
|
+
le.processor = fe, $ = Reflect.apply(On, null, [le, ...p]);
|
|
2072
2073
|
} finally {
|
|
2073
2074
|
le.processor = null;
|
|
2074
2075
|
}
|
|
2075
2076
|
return $;
|
|
2076
|
-
}, () => Vt(...p), "translate", (
|
|
2077
|
+
}, () => Vt(...p), "translate", (E) => E[xt](...p), (E) => [Sn(E)], (E) => be(E));
|
|
2077
2078
|
}
|
|
2078
2079
|
function De(...p) {
|
|
2079
|
-
return
|
|
2080
|
+
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => E[Wt](...p), An, (E) => Z(E) || be(E));
|
|
2080
2081
|
}
|
|
2081
2082
|
function K(...p) {
|
|
2082
|
-
return
|
|
2083
|
+
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => E[Gt](...p), An, (E) => Z(E) || be(E));
|
|
2083
2084
|
}
|
|
2084
2085
|
function ve(p) {
|
|
2085
|
-
|
|
2086
|
+
I = p, v.pluralRules = I;
|
|
2086
2087
|
}
|
|
2087
|
-
function Je(p,
|
|
2088
|
-
return
|
|
2088
|
+
function Je(p, E) {
|
|
2089
|
+
return B(() => {
|
|
2089
2090
|
if (!p)
|
|
2090
2091
|
return !1;
|
|
2091
|
-
const $ = Z(
|
|
2092
|
-
return ot(Ye) ||
|
|
2093
|
-
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p,
|
|
2092
|
+
const $ = Z(E) ? E : u.value, le = Fe($), Ye = v.messageResolver(le, p);
|
|
2093
|
+
return ot(Ye) || Te(Ye) || Z(Ye);
|
|
2094
|
+
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, E]), Co, ($) => pe($));
|
|
2094
2095
|
}
|
|
2095
2096
|
function Ke(p) {
|
|
2096
|
-
let
|
|
2097
|
+
let E = null;
|
|
2097
2098
|
const $ = Hn(v, i.value, u.value);
|
|
2098
2099
|
for (let le = 0; le < $.length; le++) {
|
|
2099
2100
|
const Ye = g.value[$[le]] || {}, mt = v.messageResolver(Ye, p);
|
|
2100
2101
|
if (mt != null) {
|
|
2101
|
-
|
|
2102
|
+
E = mt;
|
|
2102
2103
|
break;
|
|
2103
2104
|
}
|
|
2104
2105
|
}
|
|
2105
|
-
return
|
|
2106
|
+
return E;
|
|
2106
2107
|
}
|
|
2107
2108
|
function Ve(p) {
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2109
|
+
const E = Ke(p);
|
|
2110
|
+
return E ?? (t ? t.tm(p) || {} : {});
|
|
2110
2111
|
}
|
|
2111
2112
|
function Fe(p) {
|
|
2112
2113
|
return g.value[p] || {};
|
|
2113
2114
|
}
|
|
2114
|
-
function Ce(p,
|
|
2115
|
+
function Ce(p, E) {
|
|
2115
2116
|
if (l) {
|
|
2116
|
-
const $ = { [p]:
|
|
2117
|
+
const $ = { [p]: E };
|
|
2117
2118
|
for (const le in $)
|
|
2118
2119
|
Le($, le) && dt($[le]);
|
|
2119
|
-
|
|
2120
|
+
E = $[p];
|
|
2120
2121
|
}
|
|
2121
|
-
g.value[p] =
|
|
2122
|
+
g.value[p] = E, v.messages = g.value;
|
|
2122
2123
|
}
|
|
2123
|
-
function
|
|
2124
|
+
function Be(p, E) {
|
|
2124
2125
|
g.value[p] = g.value[p] || {};
|
|
2125
|
-
const $ = { [p]:
|
|
2126
|
+
const $ = { [p]: E };
|
|
2126
2127
|
if (l)
|
|
2127
2128
|
for (const le in $)
|
|
2128
2129
|
Le($, le) && dt($[le]);
|
|
2129
|
-
|
|
2130
|
+
E = $[p], yt(E, g.value[p]), v.messages = g.value;
|
|
2130
2131
|
}
|
|
2131
|
-
function
|
|
2132
|
-
return
|
|
2132
|
+
function O(p) {
|
|
2133
|
+
return y.value[p] || {};
|
|
2133
2134
|
}
|
|
2134
|
-
function s(p,
|
|
2135
|
-
|
|
2135
|
+
function s(p, E) {
|
|
2136
|
+
y.value[p] = E, v.datetimeFormats = y.value, yn(v, p, E);
|
|
2136
2137
|
}
|
|
2137
|
-
function o(p,
|
|
2138
|
-
|
|
2138
|
+
function o(p, E) {
|
|
2139
|
+
y.value[p] = Ie(y.value[p] || {}, E), v.datetimeFormats = y.value, yn(v, p, E);
|
|
2139
2140
|
}
|
|
2140
2141
|
function _(p) {
|
|
2141
|
-
return
|
|
2142
|
+
return T.value[p] || {};
|
|
2142
2143
|
}
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2144
|
+
function k(p, E) {
|
|
2145
|
+
T.value[p] = E, v.numberFormats = T.value, Nn(v, p, E);
|
|
2145
2146
|
}
|
|
2146
|
-
function M(p,
|
|
2147
|
-
|
|
2147
|
+
function M(p, E) {
|
|
2148
|
+
T.value[p] = Ie(T.value[p] || {}, E), v.numberFormats = T.value, Nn(v, p, E);
|
|
2148
2149
|
}
|
|
2149
|
-
|
|
2150
|
+
kn++, t && on && (wt(t.locale, (p) => {
|
|
2150
2151
|
d && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2151
2152
|
}), wt(t.fallbackLocale, (p) => {
|
|
2152
2153
|
d && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2153
2154
|
}));
|
|
2154
2155
|
const P = {
|
|
2155
|
-
id:
|
|
2156
|
-
locale:
|
|
2156
|
+
id: kn,
|
|
2157
|
+
locale: X,
|
|
2157
2158
|
fallbackLocale: x,
|
|
2158
2159
|
get inheritLocale() {
|
|
2159
2160
|
return d;
|
|
@@ -2169,7 +2170,7 @@ function To(e = {}) {
|
|
|
2169
2170
|
return b;
|
|
2170
2171
|
},
|
|
2171
2172
|
get pluralRules() {
|
|
2172
|
-
return
|
|
2173
|
+
return I || {};
|
|
2173
2174
|
},
|
|
2174
2175
|
get isGlobal() {
|
|
2175
2176
|
return r;
|
|
@@ -2193,10 +2194,10 @@ function To(e = {}) {
|
|
|
2193
2194
|
w = p;
|
|
2194
2195
|
},
|
|
2195
2196
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2197
|
+
return A;
|
|
2197
2198
|
},
|
|
2198
2199
|
set fallbackFormat(p) {
|
|
2199
|
-
|
|
2200
|
+
A = p, v.fallbackFormat = A;
|
|
2200
2201
|
},
|
|
2201
2202
|
get warnHtmlMessage() {
|
|
2202
2203
|
return S;
|
|
@@ -2213,14 +2214,14 @@ function To(e = {}) {
|
|
|
2213
2214
|
t: Y,
|
|
2214
2215
|
getLocaleMessage: Fe,
|
|
2215
2216
|
setLocaleMessage: Ce,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
+
mergeLocaleMessage: Be,
|
|
2217
2218
|
getPostTranslationHandler: V,
|
|
2218
2219
|
setPostTranslationHandler: j,
|
|
2219
2220
|
getMissingHandler: W,
|
|
2220
2221
|
setMissingHandler: G,
|
|
2221
|
-
[
|
|
2222
|
+
[Eo]: ve
|
|
2222
2223
|
};
|
|
2223
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat =
|
|
2224
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = k, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Gt] = K, P[Wt] = De, P;
|
|
2224
2225
|
}
|
|
2225
2226
|
const qt = {
|
|
2226
2227
|
tag: {
|
|
@@ -2253,7 +2254,7 @@ function So({ slots: e }, t) {
|
|
|
2253
2254
|
function ar() {
|
|
2254
2255
|
return Re;
|
|
2255
2256
|
}
|
|
2256
|
-
|
|
2257
|
+
Ie({
|
|
2257
2258
|
keypath: {
|
|
2258
2259
|
type: String,
|
|
2259
2260
|
required: !0
|
|
@@ -2271,18 +2272,18 @@ function lr(e, t, n, r) {
|
|
|
2271
2272
|
return () => {
|
|
2272
2273
|
const d = { part: !0 };
|
|
2273
2274
|
let u = oe();
|
|
2274
|
-
e.locale && (d.locale = e.locale), Z(e.format) ? d.key = e.format : te(e.format) && (Z(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ?
|
|
2275
|
+
e.locale && (d.locale = e.locale), Z(e.format) ? d.key = e.format : te(e.format) && (Z(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? Ie(oe(), N, { [F]: e.format[F] }) : N, oe()));
|
|
2275
2276
|
const i = r(e.value, d, u);
|
|
2276
2277
|
let g = [d.key];
|
|
2277
2278
|
be(i) ? g = i.map((N, F) => {
|
|
2278
|
-
const w = l[N.type],
|
|
2279
|
-
return Lo(
|
|
2279
|
+
const w = l[N.type], A = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2280
|
+
return Lo(A) && (A[0].key = `${N.type}-${F}`), A;
|
|
2280
2281
|
}) : Z(i) && (g = [i]);
|
|
2281
|
-
const
|
|
2282
|
-
return Gn(
|
|
2282
|
+
const y = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2283
|
+
return Gn(T, y, g);
|
|
2283
2284
|
};
|
|
2284
2285
|
}
|
|
2285
|
-
|
|
2286
|
+
Ie({
|
|
2286
2287
|
value: {
|
|
2287
2288
|
type: Number,
|
|
2288
2289
|
required: !0
|
|
@@ -2291,7 +2292,7 @@ ye({
|
|
|
2291
2292
|
type: [String, Object]
|
|
2292
2293
|
}
|
|
2293
2294
|
}, qt);
|
|
2294
|
-
|
|
2295
|
+
Ie({
|
|
2295
2296
|
value: {
|
|
2296
2297
|
type: [Number, Date],
|
|
2297
2298
|
required: !0
|
|
@@ -2300,14 +2301,14 @@ ye({
|
|
|
2300
2301
|
type: [String, Object]
|
|
2301
2302
|
}
|
|
2302
2303
|
}, qt);
|
|
2303
|
-
const
|
|
2304
|
+
const Ao = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2304
2305
|
function St(e = {}) {
|
|
2305
2306
|
const t = Yt();
|
|
2306
2307
|
if (t == null)
|
|
2307
2308
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2309
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
2310
|
throw ut(at.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2311
|
+
const n = ko(t), r = Mo(n), l = or(t), a = Ro(e, l);
|
|
2311
2312
|
if (a === "global")
|
|
2312
2313
|
return No(r, e, l), r;
|
|
2313
2314
|
if (a === "parent") {
|
|
@@ -2317,13 +2318,13 @@ function St(e = {}) {
|
|
|
2317
2318
|
const d = n;
|
|
2318
2319
|
let u = d.__getInstance(t);
|
|
2319
2320
|
if (u == null) {
|
|
2320
|
-
const i =
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u =
|
|
2321
|
+
const i = Ie({}, e);
|
|
2322
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), d.__composerExtend && (u[Zt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2322
2323
|
}
|
|
2323
2324
|
return u;
|
|
2324
2325
|
}
|
|
2325
|
-
function
|
|
2326
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
function ko(e) {
|
|
2327
|
+
const t = ur(e.isCE ? Ao : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2328
|
if (!t)
|
|
2328
2329
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2329
2330
|
return t;
|
|
@@ -2364,15 +2365,15 @@ function Fo(e, t, n) {
|
|
|
2364
2365
|
l && (l(), delete r[Zt]);
|
|
2365
2366
|
}, t);
|
|
2366
2367
|
}
|
|
2367
|
-
|
|
2368
|
+
yo();
|
|
2368
2369
|
zs(Ms);
|
|
2369
2370
|
Qs($s);
|
|
2370
2371
|
qs(Hn);
|
|
2371
2372
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e =
|
|
2373
|
+
const e = Xe();
|
|
2373
2374
|
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2375
|
}
|
|
2375
|
-
const pt = /* @__PURE__ */
|
|
2376
|
+
const pt = /* @__PURE__ */ Ae({
|
|
2376
2377
|
__name: "InheritPermissionTooltip",
|
|
2377
2378
|
props: {
|
|
2378
2379
|
item: {
|
|
@@ -2390,9 +2391,9 @@ const pt = /* @__PURE__ */ ke({
|
|
|
2390
2391
|
"z-index": 50
|
|
2391
2392
|
}, {
|
|
2392
2393
|
content: de(() => [
|
|
2393
|
-
ae("div", null,
|
|
2394
|
-
(J(!0), ie(Re, null,
|
|
2395
|
-
ae("div", null, "- " +
|
|
2394
|
+
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2395
|
+
(J(!0), ie(Re, null, Ee(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2396
|
+
ae("div", null, "- " + Oe(d), 1)
|
|
2396
2397
|
]))), 128))
|
|
2397
2398
|
]),
|
|
2398
2399
|
default: de(() => [
|
|
@@ -2427,28 +2428,28 @@ const wn = Object.values(Sr), Po = {
|
|
|
2427
2428
|
update: "Edit"
|
|
2428
2429
|
};
|
|
2429
2430
|
function jo(e, t, n, r) {
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag: d } =
|
|
2431
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u = z(() => {
|
|
2431
2432
|
var j;
|
|
2432
2433
|
const m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
2434
|
for (const W of t.value) {
|
|
2434
2435
|
const G = W.category;
|
|
2435
2436
|
if (!G) continue;
|
|
2436
|
-
const
|
|
2437
|
+
const B = W.subject;
|
|
2437
2438
|
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((j = d(W.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(W.showByFeatureFlag) === "true")
|
|
2438
2439
|
continue;
|
|
2439
2440
|
m.has(G) || m.set(G, []);
|
|
2440
|
-
const Y = U.get(
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), C.has(
|
|
2441
|
+
const Y = U.get(B) ?? 0;
|
|
2442
|
+
U.set(B, Y + 1), m.get(G).push({
|
|
2443
|
+
label: l(`permissionSet.permissionLabels.${B}`, W.label),
|
|
2444
|
+
value: B,
|
|
2445
|
+
optionKey: `${B}::${Y}`
|
|
2446
|
+
}), C.has(B) || C.set(B, W);
|
|
2446
2447
|
}
|
|
2447
2448
|
return [...m.keys()].sort((W, G) => {
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2449
|
+
const B = wn.indexOf(W), Y = wn.indexOf(G);
|
|
2450
|
+
return B === -1 && Y === -1 ? W.localeCompare(G) : B === -1 ? 1 : Y === -1 ? -1 : B - Y;
|
|
2450
2451
|
}).map((W) => {
|
|
2451
|
-
const G = m.get(W),
|
|
2452
|
+
const G = m.get(W), B = l(`permissionSet.categoryLabels.${W}`, W), Y = /* @__PURE__ */ new Map();
|
|
2452
2453
|
for (const K of G) {
|
|
2453
2454
|
const ve = C.get(K.value);
|
|
2454
2455
|
ve && Y.set(K.value, ve.actions);
|
|
@@ -2471,7 +2472,7 @@ function jo(e, t, n, r) {
|
|
|
2471
2472
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2472
2473
|
return {
|
|
2473
2474
|
category: W,
|
|
2474
|
-
label:
|
|
2475
|
+
label: B,
|
|
2475
2476
|
options: G,
|
|
2476
2477
|
selectedSubjects: ce,
|
|
2477
2478
|
isMultiAction: ne,
|
|
@@ -2488,13 +2489,13 @@ function jo(e, t, n, r) {
|
|
|
2488
2489
|
const U = u.value.find((Q) => Q.category === m), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), W = new Set(C), G = /* @__PURE__ */ new Map();
|
|
2489
2490
|
for (const Q of e.value)
|
|
2490
2491
|
j.has(Q.subject) && !Q.inverted && G.set(Q.subject, Q.conditions);
|
|
2491
|
-
const
|
|
2492
|
+
const B = U != null && U.coverSubject ? G.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2493
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2494
|
const fe = se.subject;
|
|
2494
2495
|
if (!W.has(fe) || Y.has(fe)) return [];
|
|
2495
2496
|
Y.add(fe);
|
|
2496
2497
|
let q;
|
|
2497
|
-
return G.has(fe) ? q = G.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q =
|
|
2498
|
+
return G.has(fe) ? q = G.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = B), [
|
|
2498
2499
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2500
|
];
|
|
2500
2501
|
}
|
|
@@ -2507,24 +2508,24 @@ function jo(e, t, n, r) {
|
|
|
2507
2508
|
function g(m, C) {
|
|
2508
2509
|
return F(m, C) || c(m, C);
|
|
2509
2510
|
}
|
|
2510
|
-
function
|
|
2511
|
+
function y(m) {
|
|
2511
2512
|
return m.options.length > 0 && m.options.every((C) => g(m, C.value));
|
|
2512
2513
|
}
|
|
2513
|
-
function
|
|
2514
|
-
return m.options.length === 0 ||
|
|
2514
|
+
function T(m) {
|
|
2515
|
+
return m.options.length === 0 || y(m) ? !1 : m.options.some(
|
|
2515
2516
|
(C) => g(m, C.value) || w(m, C.value).length > 0
|
|
2516
2517
|
);
|
|
2517
2518
|
}
|
|
2518
2519
|
function N(m) {
|
|
2519
2520
|
const C = new Set(m.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2520
|
-
if (
|
|
2521
|
+
if (y(m))
|
|
2521
2522
|
r("update:model-value", U);
|
|
2522
2523
|
else {
|
|
2523
2524
|
const V = /* @__PURE__ */ new Map();
|
|
2524
|
-
for (const
|
|
2525
|
-
C.has(
|
|
2525
|
+
for (const B of e.value)
|
|
2526
|
+
C.has(B.subject) && !B.inverted && V.set(B.subject, B.conditions);
|
|
2526
2527
|
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, W = /* @__PURE__ */ new Set(), G = t.value.flatMap(
|
|
2527
|
-
({ category:
|
|
2528
|
+
({ category: B, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2528
2529
|
const _e = Q.subject;
|
|
2529
2530
|
if (!C.has(_e) || W.has(_e)) return [];
|
|
2530
2531
|
W.add(_e);
|
|
@@ -2547,7 +2548,7 @@ function jo(e, t, n, r) {
|
|
|
2547
2548
|
(j) => S(m, C, j) || b(m, C, j)
|
|
2548
2549
|
) : [];
|
|
2549
2550
|
}
|
|
2550
|
-
function
|
|
2551
|
+
function A(m, C) {
|
|
2551
2552
|
return c(m, C) ? !1 : !F(m, C) && w(m, C).length > 0;
|
|
2552
2553
|
}
|
|
2553
2554
|
function D(m, C) {
|
|
@@ -2565,10 +2566,10 @@ function jo(e, t, n, r) {
|
|
|
2565
2566
|
category: j,
|
|
2566
2567
|
showByFeatureFlag: W,
|
|
2567
2568
|
isCategoryCover: G,
|
|
2568
|
-
...
|
|
2569
|
+
...B
|
|
2569
2570
|
} = V, Y = D(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2570
2571
|
ne.push({
|
|
2571
|
-
...
|
|
2572
|
+
...B,
|
|
2572
2573
|
...Y !== void 0 && { conditions: Y }
|
|
2573
2574
|
}), r("update:model-value", ne);
|
|
2574
2575
|
} else
|
|
@@ -2591,7 +2592,7 @@ function jo(e, t, n, r) {
|
|
|
2591
2592
|
function b(m, C, U) {
|
|
2592
2593
|
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2593
2594
|
}
|
|
2594
|
-
function
|
|
2595
|
+
function I(m, C, U) {
|
|
2595
2596
|
const V = m.permissionActionsMap.get(C);
|
|
2596
2597
|
return V ? V.includes(U) : !1;
|
|
2597
2598
|
}
|
|
@@ -2599,13 +2600,13 @@ function jo(e, t, n, r) {
|
|
|
2599
2600
|
const V = [...e.value], j = V.findIndex((G) => G.subject === m && !G.inverted);
|
|
2600
2601
|
if (U)
|
|
2601
2602
|
if (j >= 0) {
|
|
2602
|
-
const G = { ...V[j] },
|
|
2603
|
-
|
|
2603
|
+
const G = { ...V[j] }, B = new Set(G.actions);
|
|
2604
|
+
B.add(C), G.actions = Array.from(B), V[j] = G;
|
|
2604
2605
|
} else {
|
|
2605
2606
|
const G = t.value.find((se) => se.subject === m);
|
|
2606
2607
|
if (!G) return;
|
|
2607
2608
|
const {
|
|
2608
|
-
category:
|
|
2609
|
+
category: B,
|
|
2609
2610
|
showByFeatureFlag: Y,
|
|
2610
2611
|
isCategoryCover: ne,
|
|
2611
2612
|
...Q
|
|
@@ -2619,15 +2620,15 @@ function jo(e, t, n, r) {
|
|
|
2619
2620
|
});
|
|
2620
2621
|
}
|
|
2621
2622
|
else if (j >= 0) {
|
|
2622
|
-
const G = { ...V[j] },
|
|
2623
|
-
|
|
2623
|
+
const G = { ...V[j] }, B = G.actions.filter((Y) => Y !== C);
|
|
2624
|
+
B.length === 0 ? V.splice(j, 1) : (G.actions = B, V[j] = G);
|
|
2624
2625
|
}
|
|
2625
2626
|
const W = t.value.find((G) => G.subject === m);
|
|
2626
2627
|
W && Mn(V, m, W.actions), r("update:model-value", V);
|
|
2627
2628
|
}
|
|
2628
2629
|
function R(m, C) {
|
|
2629
2630
|
const U = m.options.filter(
|
|
2630
|
-
(V) =>
|
|
2631
|
+
(V) => I(m, V.value, C)
|
|
2631
2632
|
);
|
|
2632
2633
|
return U.length === 0 ? !1 : U.every(
|
|
2633
2634
|
(V) => S(m, V.value, C) || b(m, V.value, C)
|
|
@@ -2635,7 +2636,7 @@ function jo(e, t, n, r) {
|
|
|
2635
2636
|
}
|
|
2636
2637
|
function L(m, C) {
|
|
2637
2638
|
const U = m.options.filter(
|
|
2638
|
-
(j) =>
|
|
2639
|
+
(j) => I(m, j.value, C)
|
|
2639
2640
|
);
|
|
2640
2641
|
if (U.length === 0) return !1;
|
|
2641
2642
|
const V = U.filter(
|
|
@@ -2643,10 +2644,10 @@ function jo(e, t, n, r) {
|
|
|
2643
2644
|
).length;
|
|
2644
2645
|
return V > 0 && V < U.length;
|
|
2645
2646
|
}
|
|
2646
|
-
function
|
|
2647
|
+
function X(m, C, U) {
|
|
2647
2648
|
const V = [...e.value];
|
|
2648
2649
|
for (const j of m.options) {
|
|
2649
|
-
if (!
|
|
2650
|
+
if (!I(m, j.value, C)) continue;
|
|
2650
2651
|
const W = j.value, G = V.findIndex(
|
|
2651
2652
|
(Y) => Y.subject === W && !Y.inverted
|
|
2652
2653
|
);
|
|
@@ -2673,8 +2674,8 @@ function jo(e, t, n, r) {
|
|
|
2673
2674
|
const Y = { ...V[G] }, ne = Y.actions.filter((Q) => Q !== C);
|
|
2674
2675
|
ne.length === 0 ? V.splice(G, 1) : (Y.actions = ne, V[G] = Y);
|
|
2675
2676
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2677
|
+
const B = t.value.find((Y) => Y.subject === W);
|
|
2678
|
+
B && Mn(V, W, B.actions);
|
|
2678
2679
|
}
|
|
2679
2680
|
r("update:model-value", V);
|
|
2680
2681
|
}
|
|
@@ -2685,25 +2686,25 @@ function jo(e, t, n, r) {
|
|
|
2685
2686
|
return {
|
|
2686
2687
|
categoryGroups: u,
|
|
2687
2688
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2689
|
-
isAllManageIndeterminate:
|
|
2689
|
+
isAllManageChecked: y,
|
|
2690
|
+
isAllManageIndeterminate: T,
|
|
2690
2691
|
toggleAllManage: N,
|
|
2691
2692
|
isManageChecked: F,
|
|
2692
|
-
isManageIndeterminate:
|
|
2693
|
+
isManageIndeterminate: A,
|
|
2693
2694
|
toggleManage: f,
|
|
2694
2695
|
hasNonManageActions: h,
|
|
2695
2696
|
isActionChecked: S,
|
|
2696
2697
|
isRowFullyCoveredByCover: c,
|
|
2697
2698
|
isActionCoveredByCover: b,
|
|
2698
|
-
permissionDefinesAction:
|
|
2699
|
+
permissionDefinesAction: I,
|
|
2699
2700
|
toggleAction: v,
|
|
2700
2701
|
isAllActionChecked: R,
|
|
2701
2702
|
isAllActionIndeterminate: L,
|
|
2702
|
-
toggleAllAction:
|
|
2703
|
+
toggleAllAction: X,
|
|
2703
2704
|
actionLabel: x
|
|
2704
2705
|
};
|
|
2705
2706
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Go = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Zo = { class: "flex justify-center" },
|
|
2707
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Go = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Zo = { class: "flex justify-center" }, Bo = { class: "flex items-center min-w-0 gap-8" }, Yo = ["title", "onClick"], Xo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Ae({
|
|
2707
2708
|
__name: "BasePermission",
|
|
2708
2709
|
props: {
|
|
2709
2710
|
modelValue: {
|
|
@@ -2730,12 +2731,12 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2730
2731
|
isAllManageChecked: u,
|
|
2731
2732
|
isAllManageIndeterminate: i,
|
|
2732
2733
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2734
|
-
isManageIndeterminate:
|
|
2734
|
+
isManageChecked: y,
|
|
2735
|
+
isManageIndeterminate: T,
|
|
2735
2736
|
toggleManage: N,
|
|
2736
2737
|
isActionChecked: F,
|
|
2737
2738
|
isRowFullyCoveredByCover: w,
|
|
2738
|
-
isActionCoveredByCover:
|
|
2739
|
+
isActionCoveredByCover: A,
|
|
2739
2740
|
permissionDefinesAction: D,
|
|
2740
2741
|
toggleAction: f,
|
|
2741
2742
|
isAllActionChecked: h,
|
|
@@ -2748,24 +2749,24 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2748
2749
|
en(n, "excludedSubjects"),
|
|
2749
2750
|
(R, L) => r("update:model-value", L)
|
|
2750
2751
|
);
|
|
2751
|
-
function
|
|
2752
|
+
function I(R) {
|
|
2752
2753
|
const L = R.selectedSubjects.length;
|
|
2753
2754
|
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2755
|
}
|
|
2755
2756
|
function v(R, L) {
|
|
2756
|
-
return
|
|
2757
|
-
(
|
|
2757
|
+
return y(R, L) || w(R, L) ? !0 : R.actionColumns.some(
|
|
2758
|
+
(X) => D(R, L, X) && (F(R, L, X) || A(R, L, X))
|
|
2758
2759
|
);
|
|
2759
2760
|
}
|
|
2760
2761
|
return (R, L) => {
|
|
2761
|
-
const
|
|
2762
|
+
const X = we("FmCheckbox");
|
|
2762
2763
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(Re, null,
|
|
2764
|
+
(J(!0), ie(Re, null, Ee(H(d), (x) => (J(), Ne(Xt, {
|
|
2764
2765
|
key: x.category,
|
|
2765
|
-
subtitle:
|
|
2766
|
+
subtitle: I(x)
|
|
2766
2767
|
}, {
|
|
2767
2768
|
title: de(() => [
|
|
2768
|
-
ae("p", Vo,
|
|
2769
|
+
ae("p", Vo, Oe(x.label), 1)
|
|
2769
2770
|
]),
|
|
2770
2771
|
default: de(() => [
|
|
2771
2772
|
ae("div", xo, [
|
|
@@ -2776,11 +2777,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2776
2777
|
})
|
|
2777
2778
|
}, [
|
|
2778
2779
|
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
|
-
ae("div", Go,
|
|
2780
|
-
(J(!0), ie(Re, null,
|
|
2780
|
+
ae("div", Go, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2781
|
+
(J(!0), ie(Re, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2781
2782
|
key: `header-${m}`,
|
|
2782
2783
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
|
-
},
|
|
2784
|
+
}, Oe(H(b)(m)), 1))), 128))
|
|
2784
2785
|
], 4),
|
|
2785
2786
|
ae("div", {
|
|
2786
2787
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2791,9 +2792,9 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2791
2792
|
ae("div", {
|
|
2792
2793
|
class: "cursor-pointer font-semibold",
|
|
2793
2794
|
onClick: (m) => !e.disable && H(g)(x)
|
|
2794
|
-
},
|
|
2795
|
+
}, Oe(H(l)("team.labels.all")), 9, Wo),
|
|
2795
2796
|
ae("div", Zo, [
|
|
2796
|
-
ue(
|
|
2797
|
+
ue(X, {
|
|
2797
2798
|
"model-value": H(u)(x),
|
|
2798
2799
|
indeterminate: H(i)(x),
|
|
2799
2800
|
value: !0,
|
|
@@ -2803,11 +2804,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2803
2804
|
"onUpdate:modelValue": (m) => H(g)(x)
|
|
2804
2805
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2806
|
]),
|
|
2806
|
-
(J(!0), ie(Re, null,
|
|
2807
|
+
(J(!0), ie(Re, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2807
2808
|
key: `all-${m}`,
|
|
2808
2809
|
class: "flex justify-center"
|
|
2809
2810
|
}, [
|
|
2810
|
-
ue(
|
|
2811
|
+
ue(X, {
|
|
2811
2812
|
"model-value": H(h)(x, m),
|
|
2812
2813
|
indeterminate: H(S)(x, m),
|
|
2813
2814
|
value: m,
|
|
@@ -2819,49 +2820,49 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2819
2820
|
]))), 128))
|
|
2820
2821
|
], 4),
|
|
2821
2822
|
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
-
(J(!0), ie(Re, null,
|
|
2823
|
+
(J(!0), ie(Re, null, Ee(x.options, (m) => (J(), ie("div", {
|
|
2823
2824
|
key: m.optionKey,
|
|
2824
2825
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2826
|
style: nt({
|
|
2826
2827
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2827
2828
|
})
|
|
2828
2829
|
}, [
|
|
2829
|
-
ae("div",
|
|
2830
|
+
ae("div", Bo, [
|
|
2830
2831
|
ae("span", {
|
|
2831
2832
|
class: "block truncate cursor-pointer",
|
|
2832
2833
|
title: m.label,
|
|
2833
|
-
onClick: (C) => !e.disable && !H(w)(x, m.value) && H(N)(x, m.value, !H(
|
|
2834
|
-
},
|
|
2834
|
+
onClick: (C) => !e.disable && !H(w)(x, m.value) && H(N)(x, m.value, !H(y)(x, m.value))
|
|
2835
|
+
}, Oe(m.label), 9, Yo),
|
|
2835
2836
|
Se(R.$slots, `checkbox-${m.value}-append`, {
|
|
2836
2837
|
option: m,
|
|
2837
2838
|
isEffectiveSelected: v(x, m.value),
|
|
2838
|
-
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(
|
|
2839
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(A)(x, m.value, C))
|
|
2839
2840
|
}),
|
|
2840
2841
|
Se(R.$slots, `checkbox-${m.value}-icon`, {
|
|
2841
2842
|
option: m,
|
|
2842
2843
|
isEffectiveSelected: v(x, m.value),
|
|
2843
|
-
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(
|
|
2844
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(A)(x, m.value, C))
|
|
2844
2845
|
})
|
|
2845
2846
|
]),
|
|
2846
|
-
ae("div",
|
|
2847
|
-
ue(
|
|
2848
|
-
"model-value": H(
|
|
2847
|
+
ae("div", Xo, [
|
|
2848
|
+
ue(X, {
|
|
2849
|
+
"model-value": H(y)(x, m.value) || H(w)(x, m.value),
|
|
2849
2850
|
value: m.value,
|
|
2850
2851
|
disabled: e.disable || H(w)(x, m.value),
|
|
2851
|
-
indeterminate: H(
|
|
2852
|
+
indeterminate: H(T)(x, m.value),
|
|
2852
2853
|
size: "sm",
|
|
2853
2854
|
"onUpdate:modelValue": (C) => H(N)(x, m.value, C)
|
|
2854
2855
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2856
|
]),
|
|
2856
|
-
(J(!0), ie(Re, null,
|
|
2857
|
+
(J(!0), ie(Re, null, Ee(x.actionColumns, (C) => (J(), ie("div", {
|
|
2857
2858
|
key: `${m.optionKey}-${C}`,
|
|
2858
2859
|
class: "flex justify-center"
|
|
2859
2860
|
}, [
|
|
2860
|
-
H(D)(x, m.value, C) ? (J(), Ne(
|
|
2861
|
+
H(D)(x, m.value, C) ? (J(), Ne(X, {
|
|
2861
2862
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(x, m.value, C) || H(
|
|
2863
|
+
"model-value": H(F)(x, m.value, C) || H(A)(x, m.value, C),
|
|
2863
2864
|
value: C,
|
|
2864
|
-
disabled: e.disable || H(
|
|
2865
|
+
disabled: e.disable || H(A)(x, m.value, C),
|
|
2865
2866
|
size: "sm",
|
|
2866
2867
|
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2867
2868
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
@@ -2880,7 +2881,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2880
2881
|
}, Ko = {
|
|
2881
2882
|
key: 0,
|
|
2882
2883
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2884
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Ae({
|
|
2884
2885
|
__name: "AppForm",
|
|
2885
2886
|
props: {
|
|
2886
2887
|
title: {
|
|
@@ -2903,7 +2904,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2903
2904
|
t.title ? (J(), ie("div", Jo, [
|
|
2904
2905
|
ae("div", null, [
|
|
2905
2906
|
t.required ? (J(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
|
-
_r(
|
|
2907
|
+
_r(Oe(t.title), 1)
|
|
2907
2908
|
]),
|
|
2908
2909
|
Se(n.$slots, "title-right")
|
|
2909
2910
|
])) : Me("", !0)
|
|
@@ -2916,7 +2917,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2916
2917
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2917
2918
|
key: 1,
|
|
2918
2919
|
class: "q-pa-sm form-error-message text-error"
|
|
2919
|
-
}, ir = /* @__PURE__ */
|
|
2920
|
+
}, ir = /* @__PURE__ */ Ae({
|
|
2920
2921
|
__name: "CheckboxInput",
|
|
2921
2922
|
props: {
|
|
2922
2923
|
options: {
|
|
@@ -2974,25 +2975,25 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2974
2975
|
},
|
|
2975
2976
|
emits: ["update:model-value"],
|
|
2976
2977
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1), d = vr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${
|
|
2978
|
-
() => n.modelValue.filter((
|
|
2979
|
-
),
|
|
2978
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = vr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Ar(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2979
|
+
() => n.modelValue.filter((A) => n.options.some((D) => D.value === A))
|
|
2980
|
+
), T = z(
|
|
2980
2981
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
), N = z(() => n.options.length > 0 && n.options.length ===
|
|
2982
|
+
), N = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2982
2983
|
function F() {
|
|
2983
|
-
const
|
|
2984
|
+
const A = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2984
2985
|
if (N.value === !0)
|
|
2985
|
-
r("update:model-value",
|
|
2986
|
+
r("update:model-value", A);
|
|
2986
2987
|
else {
|
|
2987
2988
|
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
-
r("update:model-value", [...
|
|
2989
|
+
r("update:model-value", [...A, ...D]);
|
|
2989
2990
|
}
|
|
2990
2991
|
}
|
|
2991
|
-
function w(
|
|
2992
|
-
let f =
|
|
2993
|
-
D ? f.every((h) => h !==
|
|
2992
|
+
function w(A, D) {
|
|
2993
|
+
let f = It(n.modelValue);
|
|
2994
|
+
D ? f.every((h) => h !== A) && f.push(A) : f = f.filter((h) => h !== A), r("update:model-value", f);
|
|
2994
2995
|
}
|
|
2995
|
-
return (
|
|
2996
|
+
return (A, D) => {
|
|
2996
2997
|
const f = we("FmCheckbox");
|
|
2997
2998
|
return J(), Ne(Qo, {
|
|
2998
2999
|
id: i,
|
|
@@ -3000,21 +3001,21 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3000
3001
|
required: !1
|
|
3001
3002
|
}, {
|
|
3002
3003
|
top: de(() => [
|
|
3003
|
-
Se(
|
|
3004
|
+
Se(A.$slots, "top")
|
|
3004
3005
|
]),
|
|
3005
3006
|
default: de(() => [
|
|
3006
3007
|
n.showAllToggle ? (J(), Ne(f, {
|
|
3007
3008
|
key: 0,
|
|
3008
3009
|
"model-value": N.value,
|
|
3009
3010
|
disabled: e.disable,
|
|
3010
|
-
label:
|
|
3011
|
+
label: T.value,
|
|
3011
3012
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
3012
3013
|
size: "sm",
|
|
3013
3014
|
dense: "",
|
|
3014
|
-
value:
|
|
3015
|
+
value: T.value,
|
|
3015
3016
|
"onUpdate:modelValue": F
|
|
3016
3017
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(J(!0), ie(Re, null,
|
|
3018
|
+
(J(!0), ie(Re, null, Ee(e.options, (h, S) => (J(), ie("div", {
|
|
3018
3019
|
key: h.value,
|
|
3019
3020
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3021
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3031,7 +3032,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3031
3032
|
value: h.label,
|
|
3032
3033
|
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3033
3034
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(
|
|
3035
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3035
3036
|
option: h,
|
|
3036
3037
|
selected: e.modelValue.includes(h.value)
|
|
3037
3038
|
})
|
|
@@ -3040,7 +3041,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3040
3041
|
key: 0,
|
|
3041
3042
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3042
3043
|
}, [
|
|
3043
|
-
Se(
|
|
3044
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3044
3045
|
option: h,
|
|
3045
3046
|
value: e.modelValue.includes(h.value),
|
|
3046
3047
|
disable: e.disable || h.disabled
|
|
@@ -3052,20 +3053,20 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3052
3053
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3053
3054
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3055
|
}, [
|
|
3055
|
-
Se(
|
|
3056
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3056
3057
|
option: h,
|
|
3057
3058
|
disable: e.disable || h.disabled,
|
|
3058
3059
|
value: e.modelValue.includes(h.value)
|
|
3059
3060
|
})
|
|
3060
3061
|
], 6)) : Me("", !0)
|
|
3061
3062
|
], 6))), 128)),
|
|
3062
|
-
a.value && g.value ? (J(), ie("div", ea,
|
|
3063
|
+
a.value && g.value ? (J(), ie("div", ea, Oe(u.value), 1)) : Me("", !0)
|
|
3063
3064
|
]),
|
|
3064
3065
|
_: 3
|
|
3065
3066
|
}, 8, ["title"]);
|
|
3066
3067
|
};
|
|
3067
3068
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */
|
|
3069
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Ae({
|
|
3069
3070
|
__name: "ConditionPermission",
|
|
3070
3071
|
props: {
|
|
3071
3072
|
modelValue: {
|
|
@@ -3095,28 +3096,28 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3095
3096
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3097
|
},
|
|
3097
3098
|
...n.options.filter(
|
|
3098
|
-
(
|
|
3099
|
+
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3100
|
)
|
|
3100
|
-
]), d = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
3101
|
+
]), d = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3102
|
+
const y = d.value.filter((T) => T !== ht).length;
|
|
3103
|
+
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3103
3104
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const
|
|
3106
|
-
r("update:model-value",
|
|
3105
|
+
function i(y) {
|
|
3106
|
+
const T = y.length === a.value.length;
|
|
3107
|
+
r("update:model-value", T ? null : y.filter((N) => N !== ht));
|
|
3107
3108
|
}
|
|
3108
3109
|
const g = rt("");
|
|
3109
|
-
return (
|
|
3110
|
+
return (y, T) => {
|
|
3110
3111
|
const N = we("fm-search");
|
|
3111
|
-
return J(), Ne(
|
|
3112
|
+
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3112
3113
|
title: de(() => [
|
|
3113
|
-
ae("p", ta,
|
|
3114
|
+
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3115
|
]),
|
|
3115
3116
|
default: de(() => [
|
|
3116
3117
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
3117
3118
|
key: 0,
|
|
3118
3119
|
modelValue: g.value,
|
|
3119
|
-
"onUpdate:modelValue":
|
|
3120
|
+
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
3120
3121
|
class: "mt-16",
|
|
3121
3122
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3122
3123
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
@@ -3131,10 +3132,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3131
3132
|
class: "mt-16",
|
|
3132
3133
|
"onUpdate:modelValue": i
|
|
3133
3134
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3135
|
+
Ee(a.value, (F) => ({
|
|
3135
3136
|
name: `checkbox-${F.value}-append`,
|
|
3136
3137
|
fn: de(({ option: w }) => [
|
|
3137
|
-
Se(
|
|
3138
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3138
3139
|
])
|
|
3139
3140
|
}))
|
|
3140
3141
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3143,7 +3144,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3143
3144
|
}, 8, ["subtitle"]);
|
|
3144
3145
|
};
|
|
3145
3146
|
}
|
|
3146
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */
|
|
3147
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Ae({
|
|
3147
3148
|
__name: "PosRolePermission",
|
|
3148
3149
|
props: {
|
|
3149
3150
|
modelValue: {
|
|
@@ -3173,23 +3174,23 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3173
3174
|
value: bt,
|
|
3174
3175
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3176
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3177
|
+
...n.roles.map((y) => ({
|
|
3178
|
+
label: y.name,
|
|
3179
|
+
value: y._id,
|
|
3180
|
+
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3180
3181
|
}))
|
|
3181
3182
|
];
|
|
3182
3183
|
}), d = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
-
const g = d.value.filter((
|
|
3184
|
+
const g = d.value.filter((y) => y !== bt).length;
|
|
3184
3185
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3186
|
});
|
|
3186
3187
|
function i(g) {
|
|
3187
|
-
const
|
|
3188
|
-
r("update:model-value",
|
|
3188
|
+
const y = g.length === a.value.length;
|
|
3189
|
+
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3189
3190
|
}
|
|
3190
|
-
return (g,
|
|
3191
|
+
return (g, y) => (J(), Ne(Xt, { subtitle: u.value }, {
|
|
3191
3192
|
title: de(() => [
|
|
3192
|
-
ae("p", na,
|
|
3193
|
+
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3194
|
]),
|
|
3194
3195
|
default: de(() => [
|
|
3195
3196
|
ue(ir, {
|
|
@@ -3202,10 +3203,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3202
3203
|
class: "mt-16",
|
|
3203
3204
|
"onUpdate:modelValue": i
|
|
3204
3205
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3206
|
-
name: `checkbox-${
|
|
3206
|
+
Ee(a.value, (T) => ({
|
|
3207
|
+
name: `checkbox-${T.value}-append`,
|
|
3207
3208
|
fn: de(({ option: N }) => [
|
|
3208
|
-
Se(g.$slots, `checkbox-${
|
|
3209
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
3209
3210
|
])
|
|
3210
3211
|
}))
|
|
3211
3212
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3223,7 +3224,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3223
3224
|
}, aa = {
|
|
3224
3225
|
key: 0,
|
|
3225
3226
|
class: "ml-32"
|
|
3226
|
-
}, Fn = /* @__PURE__ */
|
|
3227
|
+
}, Fn = /* @__PURE__ */ Ae({
|
|
3227
3228
|
__name: "PortalConditionForm",
|
|
3228
3229
|
props: {
|
|
3229
3230
|
entry: {},
|
|
@@ -3268,7 +3269,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3268
3269
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3269
3270
|
})
|
|
3270
3271
|
}, null, 8, ["label"]),
|
|
3271
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" +
|
|
3272
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(r)(
|
|
3272
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3273
3274
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3275
|
)) + ") ", 1)) : Me("", !0)
|
|
@@ -3302,11 +3303,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3302
3303
|
}
|
|
3303
3304
|
}), la = {
|
|
3304
3305
|
async readWarehouses() {
|
|
3305
|
-
return
|
|
3306
|
+
return kr(await Rr().get("/warehouses"));
|
|
3306
3307
|
}
|
|
3307
3308
|
};
|
|
3308
3309
|
function Pn(e, t) {
|
|
3309
|
-
return Zn(e,
|
|
3310
|
+
return Zn(e, Bn).some(
|
|
3310
3311
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3312
|
);
|
|
3312
3313
|
}
|
|
@@ -3331,23 +3332,23 @@ function ia(e, t, n, r) {
|
|
|
3331
3332
|
);
|
|
3332
3333
|
let u = [...n];
|
|
3333
3334
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (d.has(i) && (u = u.filter((
|
|
3335
|
+
a.has(i) || (d.has(i) && (u = u.filter((y) => y.subject !== i)), (!d.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3336
|
for (const i of a)
|
|
3336
3337
|
if (!l.has(i)) {
|
|
3337
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3338
|
+
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3339
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !d.has(i)) {
|
|
3340
|
+
const y = t.find(
|
|
3340
3341
|
(N) => N.subject === i && !N.inverted
|
|
3341
|
-
),
|
|
3342
|
-
|
|
3342
|
+
), T = r(i);
|
|
3343
|
+
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3343
3344
|
}
|
|
3344
3345
|
}
|
|
3345
3346
|
for (const i of a) {
|
|
3346
3347
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((w) => w.subject === i && !w.inverted),
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const
|
|
3350
|
-
if (
|
|
3348
|
+
const g = e.find((w) => w.subject === i && !w.inverted), y = t.find((w) => w.subject === i && !w.inverted);
|
|
3349
|
+
if (!g || !y) continue;
|
|
3350
|
+
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3351
|
+
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3351
3352
|
continue;
|
|
3352
3353
|
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3353
3354
|
if (F >= 0)
|
|
@@ -3359,7 +3360,7 @@ function ia(e, t, n, r) {
|
|
|
3359
3360
|
const w = r(i);
|
|
3360
3361
|
w && u.push(Un(w, Array.from(N)));
|
|
3361
3362
|
}
|
|
3362
|
-
|
|
3363
|
+
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3363
3364
|
}
|
|
3364
3365
|
return u;
|
|
3365
3366
|
}
|
|
@@ -3402,13 +3403,13 @@ function Mt(e, t) {
|
|
|
3402
3403
|
const n = new Set(e.actions);
|
|
3403
3404
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3405
|
}
|
|
3405
|
-
function
|
|
3406
|
+
function Bt(e, t) {
|
|
3406
3407
|
const n = Ge(e);
|
|
3407
3408
|
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3409
|
}
|
|
3409
3410
|
function Vn(e, t, n) {
|
|
3410
3411
|
return {
|
|
3411
|
-
...
|
|
3412
|
+
...Bt(e, n),
|
|
3412
3413
|
...tt(Ge(t), n)
|
|
3413
3414
|
};
|
|
3414
3415
|
}
|
|
@@ -3421,9 +3422,9 @@ function fa(e, t, n) {
|
|
|
3421
3422
|
return t.value.find((b) => b.subject === c);
|
|
3422
3423
|
}
|
|
3423
3424
|
function d(c) {
|
|
3424
|
-
var
|
|
3425
|
+
var I;
|
|
3425
3426
|
const b = l(c);
|
|
3426
|
-
return b ? (
|
|
3427
|
+
return b ? (I = a(b)) == null ? void 0 : I.label : void 0;
|
|
3427
3428
|
}
|
|
3428
3429
|
function u(c) {
|
|
3429
3430
|
return ma(e.value, c);
|
|
@@ -3434,45 +3435,45 @@ function fa(e, t, n) {
|
|
|
3434
3435
|
function g(c, b) {
|
|
3435
3436
|
var R;
|
|
3436
3437
|
if (!(((R = b.appliesToActions) == null ? void 0 : R.call(b, c.actions)) ?? !0)) return !1;
|
|
3437
|
-
const
|
|
3438
|
-
if (!
|
|
3439
|
-
const v = u(
|
|
3438
|
+
const I = l(c.subject);
|
|
3439
|
+
if (!I) return !1;
|
|
3440
|
+
const v = u(I);
|
|
3440
3441
|
return v ? Object.keys(i(v, b)).length > 0 : !1;
|
|
3441
3442
|
}
|
|
3442
|
-
function
|
|
3443
|
+
function y(c, b) {
|
|
3443
3444
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3444
3445
|
if (c.index === null) return "inherit";
|
|
3445
|
-
const
|
|
3446
|
-
if (
|
|
3447
|
-
const L = tt(Ge(
|
|
3448
|
-
if (JSON.stringify(L) === JSON.stringify(
|
|
3446
|
+
const I = e.value[c.index], v = l(c.subject), R = v ? u(v) : void 0;
|
|
3447
|
+
if (I && R) {
|
|
3448
|
+
const L = tt(Ge(I), b), X = i(R, b);
|
|
3449
|
+
if (JSON.stringify(L) === JSON.stringify(X)) return "inherit";
|
|
3449
3450
|
}
|
|
3450
3451
|
return "custom";
|
|
3451
3452
|
}
|
|
3452
|
-
function
|
|
3453
|
+
function T(c, b, I) {
|
|
3453
3454
|
if (!b.summarizeForm) return;
|
|
3454
3455
|
const v = l(c.subject);
|
|
3455
3456
|
if (!v) return;
|
|
3456
3457
|
const R = u(v);
|
|
3457
3458
|
if (!R) return;
|
|
3458
3459
|
const L = b.fromCondition(i(R, b));
|
|
3459
|
-
return b.summarizeForm(L, { timeZone:
|
|
3460
|
+
return b.summarizeForm(L, { timeZone: I });
|
|
3460
3461
|
}
|
|
3461
3462
|
function N(c, b) {
|
|
3462
3463
|
if (c.index === null) return;
|
|
3463
|
-
const
|
|
3464
|
+
const I = [...e.value], v = { ...I[c.index] }, R = Bt(v, b), L = Object.keys(R).length === 0, X = l(c.subject), x = X ? u(X) : void 0, m = x ? Mt(x, v) : !1;
|
|
3464
3465
|
if (L && m)
|
|
3465
|
-
|
|
3466
|
+
I.splice(c.index, 1);
|
|
3466
3467
|
else if (x) {
|
|
3467
3468
|
const C = Vn(v, x, b);
|
|
3468
|
-
Object.keys(C).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(C),
|
|
3469
|
+
Object.keys(C).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(C), I[c.index] = v;
|
|
3469
3470
|
} else
|
|
3470
|
-
L ? delete v.conditions : v.conditions = JSON.stringify(R),
|
|
3471
|
-
n(
|
|
3471
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(R), I[c.index] = v;
|
|
3472
|
+
n(I);
|
|
3472
3473
|
}
|
|
3473
|
-
function F(c, b,
|
|
3474
|
+
function F(c, b, I) {
|
|
3474
3475
|
const v = gt(c.subject, b);
|
|
3475
|
-
if (
|
|
3476
|
+
if (I === "inherit") {
|
|
3476
3477
|
const L = new Set(r.value);
|
|
3477
3478
|
L.delete(v), r.value = L, N(c, b);
|
|
3478
3479
|
return;
|
|
@@ -3485,36 +3486,36 @@ function fa(e, t, n) {
|
|
|
3485
3486
|
function w(c) {
|
|
3486
3487
|
const b = l(c);
|
|
3487
3488
|
if (!b) return [];
|
|
3488
|
-
const
|
|
3489
|
-
return (
|
|
3490
|
-
}
|
|
3491
|
-
function
|
|
3492
|
-
return e.value.filter((
|
|
3493
|
-
if (
|
|
3494
|
-
const v =
|
|
3495
|
-
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(Ge(
|
|
3489
|
+
const I = u(b);
|
|
3490
|
+
return (I == null ? void 0 : I.actions) ?? [];
|
|
3491
|
+
}
|
|
3492
|
+
function A(c, b) {
|
|
3493
|
+
return e.value.filter((I) => {
|
|
3494
|
+
if (I.inverted) return !1;
|
|
3495
|
+
const v = I.subject;
|
|
3496
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(Ge(I), b)).length > 0;
|
|
3496
3497
|
});
|
|
3497
3498
|
}
|
|
3498
3499
|
function D(c, b) {
|
|
3499
|
-
const
|
|
3500
|
+
const I = `::${b.builderKey}`, v = new Set(r.value);
|
|
3500
3501
|
for (const R of v) {
|
|
3501
|
-
if (!R.endsWith(
|
|
3502
|
-
const L = R.slice(0, -
|
|
3502
|
+
if (!R.endsWith(I)) continue;
|
|
3503
|
+
const L = R.slice(0, -I.length);
|
|
3503
3504
|
l(L) === c && v.delete(R);
|
|
3504
3505
|
}
|
|
3505
3506
|
r.value = v;
|
|
3506
3507
|
}
|
|
3507
|
-
function f(c, b,
|
|
3508
|
+
function f(c, b, I) {
|
|
3508
3509
|
const v = b.subject;
|
|
3509
3510
|
return c.reduce((R, L) => {
|
|
3510
3511
|
if (L.inverted)
|
|
3511
3512
|
return R.push(L), R;
|
|
3512
|
-
const
|
|
3513
|
-
if (
|
|
3513
|
+
const X = L.subject;
|
|
3514
|
+
if (X === v || l(X) !== v)
|
|
3514
3515
|
return R.push(L), R;
|
|
3515
|
-
if (Mt(b, L) && Object.keys(
|
|
3516
|
+
if (Mt(b, L) && Object.keys(Bt(L, I)).length === 0)
|
|
3516
3517
|
return R;
|
|
3517
|
-
const m = Vn(L, b,
|
|
3518
|
+
const m = Vn(L, b, I);
|
|
3518
3519
|
if (Object.keys(m).length === 0) {
|
|
3519
3520
|
const { conditions: C, ...U } = L;
|
|
3520
3521
|
R.push(U);
|
|
@@ -3523,11 +3524,11 @@ function fa(e, t, n) {
|
|
|
3523
3524
|
return R;
|
|
3524
3525
|
}, []);
|
|
3525
3526
|
}
|
|
3526
|
-
function h(c, b,
|
|
3527
|
+
function h(c, b, I, v = {}) {
|
|
3527
3528
|
var V;
|
|
3528
3529
|
const R = [...e.value];
|
|
3529
3530
|
let L = c.index;
|
|
3530
|
-
const
|
|
3531
|
+
const X = b.toCondition(I), x = Object.keys(X).length > 0;
|
|
3531
3532
|
if (L === null && !x && !v.forceCreateRule) return;
|
|
3532
3533
|
if (L === null) {
|
|
3533
3534
|
const j = R.findIndex((W) => !W.inverted && W.subject === c.subject);
|
|
@@ -3538,7 +3539,7 @@ function fa(e, t, n) {
|
|
|
3538
3539
|
if (!W) return;
|
|
3539
3540
|
const {
|
|
3540
3541
|
category: G,
|
|
3541
|
-
showByFeatureFlag:
|
|
3542
|
+
showByFeatureFlag: B,
|
|
3542
3543
|
isCategoryCover: Y,
|
|
3543
3544
|
...ne
|
|
3544
3545
|
} = W;
|
|
@@ -3552,14 +3553,14 @@ function fa(e, t, n) {
|
|
|
3552
3553
|
m.actions = [
|
|
3553
3554
|
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3554
3555
|
];
|
|
3555
|
-
const C = Ge(m), U = Dt(C, [{ builder: b, formValue:
|
|
3556
|
+
const C = Ge(m), U = Dt(C, [{ builder: b, formValue: I }]);
|
|
3556
3557
|
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), R[L] = m, sn(c.subject, t.value)) {
|
|
3557
|
-
const j =
|
|
3558
|
-
var
|
|
3559
|
-
D(c.subject, b), n(f(R, m, b)), (
|
|
3558
|
+
const j = A(c.subject, b), W = () => {
|
|
3559
|
+
var B;
|
|
3560
|
+
D(c.subject, b), n(f(R, m, b)), (B = v.afterCommit) == null || B.call(v);
|
|
3560
3561
|
}, G = () => {
|
|
3561
|
-
var
|
|
3562
|
-
n(R), (
|
|
3562
|
+
var B;
|
|
3563
|
+
n(R), (B = v.afterCommit) == null || B.call(v);
|
|
3563
3564
|
};
|
|
3564
3565
|
if (j.length === 0) {
|
|
3565
3566
|
W();
|
|
@@ -3570,22 +3571,22 @@ function fa(e, t, n) {
|
|
|
3570
3571
|
}
|
|
3571
3572
|
n(R), (V = v.afterCommit) == null || V.call(v);
|
|
3572
3573
|
}
|
|
3573
|
-
function S(c, b,
|
|
3574
|
+
function S(c, b, I = {}) {
|
|
3574
3575
|
if (b.length === 0) return;
|
|
3575
3576
|
const v = [...e.value];
|
|
3576
|
-
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject), L = R === -1 ? void 0 : { ...v[R] },
|
|
3577
|
+
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject), L = R === -1 ? void 0 : { ...v[R] }, X = Ge(L ?? {}) ?? {};
|
|
3577
3578
|
for (const j of b) {
|
|
3578
3579
|
const W = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
-
|
|
3580
|
+
X = Dt(X, [{ builder: j.builder, formValue: W }]);
|
|
3580
3581
|
}
|
|
3581
3582
|
const x = b.some((j) => j.mode === "custom");
|
|
3582
|
-
if (!L && (Object.keys(
|
|
3583
|
+
if (!L && (Object.keys(X).length > 0 || x)) {
|
|
3583
3584
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3585
|
if (!j) return;
|
|
3585
3586
|
const {
|
|
3586
3587
|
category: W,
|
|
3587
3588
|
showByFeatureFlag: G,
|
|
3588
|
-
isCategoryCover:
|
|
3589
|
+
isCategoryCover: B,
|
|
3589
3590
|
...Y
|
|
3590
3591
|
} = j;
|
|
3591
3592
|
L = {
|
|
@@ -3595,18 +3596,18 @@ function fa(e, t, n) {
|
|
|
3595
3596
|
}
|
|
3596
3597
|
if (L) {
|
|
3597
3598
|
const j = l(c.subject), W = j ? u(j) : void 0;
|
|
3598
|
-
if (!x && Object.keys(
|
|
3599
|
+
if (!x && Object.keys(X).length === 0 && !!W && Mt(W, L))
|
|
3599
3600
|
v.splice(R, 1), L = void 0;
|
|
3600
3601
|
else {
|
|
3601
3602
|
if (L.actions = [
|
|
3602
3603
|
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3603
3604
|
], W)
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3606
|
-
...
|
|
3607
|
-
...tt(Ge(W),
|
|
3605
|
+
for (const B of b)
|
|
3606
|
+
B.mode === "inherit" && (X = {
|
|
3607
|
+
...X,
|
|
3608
|
+
...tt(Ge(W), B.builder)
|
|
3608
3609
|
});
|
|
3609
|
-
Object.keys(
|
|
3610
|
+
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), v[R] = L;
|
|
3610
3611
|
}
|
|
3611
3612
|
}
|
|
3612
3613
|
const m = () => {
|
|
@@ -3618,20 +3619,20 @@ function fa(e, t, n) {
|
|
|
3618
3619
|
r.value = j;
|
|
3619
3620
|
}, C = (j) => {
|
|
3620
3621
|
var W;
|
|
3621
|
-
m(), n(j), (W =
|
|
3622
|
+
m(), n(j), (W = I.afterCommit) == null || W.call(I);
|
|
3622
3623
|
};
|
|
3623
3624
|
if (!sn(c.subject, t.value) || !L) {
|
|
3624
3625
|
C(v);
|
|
3625
3626
|
return;
|
|
3626
3627
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3628
|
+
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0), V = () => {
|
|
3628
3629
|
let j = v;
|
|
3629
3630
|
for (const W of b.map((G) => G.builder))
|
|
3630
3631
|
D(c.subject, W), j = f(j, L, W);
|
|
3631
3632
|
C(j);
|
|
3632
3633
|
};
|
|
3633
|
-
if (U.length > 0 &&
|
|
3634
|
-
|
|
3634
|
+
if (U.length > 0 && I.onOverridesConflict) {
|
|
3635
|
+
I.onOverridesConflict({ override: V, keep: () => C(v) });
|
|
3635
3636
|
return;
|
|
3636
3637
|
}
|
|
3637
3638
|
U.length > 0 ? C(v) : V();
|
|
@@ -3640,15 +3641,15 @@ function fa(e, t, n) {
|
|
|
3640
3641
|
getCoverSubject: l,
|
|
3641
3642
|
coverLabel: d,
|
|
3642
3643
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3644
|
+
inheritMode: y,
|
|
3644
3645
|
setInheritMode: F,
|
|
3645
|
-
inheritedSummary:
|
|
3646
|
+
inheritedSummary: T,
|
|
3646
3647
|
getEffectiveActions: w,
|
|
3647
3648
|
updateBuilderCondition: h,
|
|
3648
3649
|
applyConditionDrafts: S
|
|
3649
3650
|
};
|
|
3650
3651
|
}
|
|
3651
|
-
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3652
|
+
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", Fa = /* @__PURE__ */ Ae({
|
|
3652
3653
|
__name: "PortalPermissionEditor",
|
|
3653
3654
|
props: /* @__PURE__ */ tn({
|
|
3654
3655
|
disable: {
|
|
@@ -3666,20 +3667,20 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3666
3667
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3668
|
setup(e, { emit: t }) {
|
|
3668
3669
|
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3670
|
-
customReportPermissions:
|
|
3671
|
-
} =
|
|
3670
|
+
fetchCustomReportPermissions: y,
|
|
3671
|
+
customReportPermissions: T
|
|
3672
|
+
} = Ir(), N = z(() => [
|
|
3672
3673
|
...Wn,
|
|
3673
|
-
...
|
|
3674
|
+
...T.value
|
|
3674
3675
|
]), F = z(() => {
|
|
3675
|
-
const
|
|
3676
|
-
return da(
|
|
3676
|
+
const O = d.currentBusiness.value, s = d.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3677
|
+
return da(O, o);
|
|
3677
3678
|
});
|
|
3678
|
-
function w(
|
|
3679
|
-
return N.value.find((s) => s.subject ===
|
|
3679
|
+
function w(O) {
|
|
3680
|
+
return N.value.find((s) => s.subject === O);
|
|
3680
3681
|
}
|
|
3681
|
-
function
|
|
3682
|
-
return rn(
|
|
3682
|
+
function A(O, s) {
|
|
3683
|
+
return rn(O).filter(
|
|
3683
3684
|
(o) => {
|
|
3684
3685
|
var _;
|
|
3685
3686
|
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o, s)) ?? !0;
|
|
@@ -3687,47 +3688,47 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3687
3688
|
);
|
|
3688
3689
|
}
|
|
3689
3690
|
const D = z(() => {
|
|
3690
|
-
const
|
|
3691
|
-
return
|
|
3691
|
+
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3692
|
+
return yr(
|
|
3692
3693
|
r.inheritPermissions.map((o) => ({
|
|
3693
3694
|
...o,
|
|
3694
|
-
permissions: o.permissions.filter((_) =>
|
|
3695
|
+
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
3695
3696
|
}))
|
|
3696
3697
|
).map((o) => ({
|
|
3697
3698
|
id: o.subject,
|
|
3698
3699
|
setNames: o.setNames
|
|
3699
3700
|
}));
|
|
3700
3701
|
}), f = z(() => {
|
|
3701
|
-
const
|
|
3702
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3702
3703
|
...s,
|
|
3703
3704
|
permissions: s.permissions.filter(
|
|
3704
3705
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3705
3706
|
)
|
|
3706
3707
|
}));
|
|
3707
3708
|
return Lt(
|
|
3708
|
-
|
|
3709
|
+
O,
|
|
3709
3710
|
"warehouseId",
|
|
3710
|
-
|
|
3711
|
+
I.value.map((s) => s._id)
|
|
3711
3712
|
);
|
|
3712
3713
|
}), h = z(() => {
|
|
3713
|
-
const
|
|
3714
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3714
3715
|
...s,
|
|
3715
3716
|
permissions: s.permissions.filter(
|
|
3716
3717
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3717
3718
|
)
|
|
3718
3719
|
}));
|
|
3719
3720
|
return Lt(
|
|
3720
|
-
|
|
3721
|
+
O,
|
|
3721
3722
|
"restaurantId",
|
|
3722
|
-
|
|
3723
|
+
X.value.map((s) => s._id)
|
|
3723
3724
|
);
|
|
3724
3725
|
}), S = z(() => {
|
|
3725
|
-
const
|
|
3726
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3726
3727
|
...s,
|
|
3727
3728
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3728
3729
|
}));
|
|
3729
3730
|
return Lt(
|
|
3730
|
-
|
|
3731
|
+
O,
|
|
3731
3732
|
"roleId",
|
|
3732
3733
|
x.value.map((s) => s._id)
|
|
3733
3734
|
);
|
|
@@ -3738,21 +3739,21 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3738
3739
|
he.Subject.Business.inventory_stock
|
|
3739
3740
|
], b = z(() => {
|
|
3740
3741
|
var s;
|
|
3741
|
-
const
|
|
3742
|
+
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3742
3743
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3743
3744
|
);
|
|
3744
|
-
return
|
|
3745
|
-
}),
|
|
3746
|
-
label:
|
|
3747
|
-
value:
|
|
3745
|
+
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3746
|
+
}), I = rt([]), v = z(() => I.value.map((O) => ({
|
|
3747
|
+
label: O.profile.name,
|
|
3748
|
+
value: O._id
|
|
3748
3749
|
})));
|
|
3749
|
-
function R(
|
|
3750
|
-
const s = L(n.value,
|
|
3750
|
+
function R(O) {
|
|
3751
|
+
const s = L(n.value, O);
|
|
3751
3752
|
n.value = s;
|
|
3752
3753
|
}
|
|
3753
|
-
function L(
|
|
3754
|
-
let o =
|
|
3755
|
-
|
|
3754
|
+
function L(O, s) {
|
|
3755
|
+
let o = It(
|
|
3756
|
+
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3756
3757
|
);
|
|
3757
3758
|
if (!s || s.length > 0) {
|
|
3758
3759
|
const _ = {
|
|
@@ -3763,25 +3764,25 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3763
3764
|
}
|
|
3764
3765
|
return o;
|
|
3765
3766
|
}
|
|
3766
|
-
const { restaurants:
|
|
3767
|
-
label: `${
|
|
3768
|
-
value:
|
|
3769
|
-
}))), C = z(() =>
|
|
3770
|
-
function V(
|
|
3771
|
-
const s = W(n.value,
|
|
3767
|
+
const { restaurants: X } = d, x = Mr().roles, m = z(() => X.value.map((O) => ({
|
|
3768
|
+
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3769
|
+
value: O._id
|
|
3770
|
+
}))), C = z(() => X.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3771
|
+
function V(O) {
|
|
3772
|
+
const s = W(n.value, O);
|
|
3772
3773
|
n.value = s;
|
|
3773
3774
|
}
|
|
3774
3775
|
const j = z(() => Nr(n.value));
|
|
3775
|
-
function W(
|
|
3776
|
+
function W(O, s) {
|
|
3776
3777
|
var _;
|
|
3777
|
-
let o =
|
|
3778
|
-
|
|
3779
|
-
(
|
|
3778
|
+
let o = It(
|
|
3779
|
+
O.filter(
|
|
3780
|
+
(k) => k.subject !== he.Subject.Business.restaurant && k.subject !== he.Subject.Restaurant.restaurant
|
|
3780
3781
|
)
|
|
3781
3782
|
);
|
|
3782
3783
|
if (!s || s.length > 0) {
|
|
3783
3784
|
const {
|
|
3784
|
-
category:
|
|
3785
|
+
category: k,
|
|
3785
3786
|
showByFeatureFlag: M,
|
|
3786
3787
|
...P
|
|
3787
3788
|
} = Lr.restaurant;
|
|
@@ -3793,23 +3794,23 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3793
3794
|
s && (p.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(p);
|
|
3794
3795
|
}
|
|
3795
3796
|
if (s) {
|
|
3796
|
-
const
|
|
3797
|
+
const k = [
|
|
3797
3798
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3798
3799
|
], M = x.value.map((P) => P._id);
|
|
3799
|
-
|
|
3800
|
+
k.length !== M.length && (o = B(
|
|
3800
3801
|
o,
|
|
3801
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3802
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => k.includes(P))
|
|
3802
3803
|
));
|
|
3803
3804
|
}
|
|
3804
3805
|
return o;
|
|
3805
3806
|
}
|
|
3806
|
-
function G(
|
|
3807
|
-
const s =
|
|
3807
|
+
function G(O) {
|
|
3808
|
+
const s = B(n.value, O);
|
|
3808
3809
|
n.value = s;
|
|
3809
3810
|
}
|
|
3810
|
-
function
|
|
3811
|
-
let o =
|
|
3812
|
-
|
|
3811
|
+
function B(O, s) {
|
|
3812
|
+
let o = It(
|
|
3813
|
+
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3814
|
);
|
|
3814
3815
|
if (s && s.length > 0) {
|
|
3815
3816
|
const _ = {
|
|
@@ -3823,13 +3824,13 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3823
3824
|
}
|
|
3824
3825
|
xn(async () => {
|
|
3825
3826
|
await Promise.all([
|
|
3826
|
-
la.readWarehouses().then((
|
|
3827
|
-
|
|
3827
|
+
la.readWarehouses().then((O) => I.value = O),
|
|
3828
|
+
y()
|
|
3828
3829
|
]);
|
|
3829
3830
|
});
|
|
3830
3831
|
const Y = z(() => Zn(
|
|
3831
3832
|
n.value,
|
|
3832
|
-
|
|
3833
|
+
Bn
|
|
3833
3834
|
).filter((o) => {
|
|
3834
3835
|
const _ = o.source;
|
|
3835
3836
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3837,23 +3838,23 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3837
3838
|
if (o.inverted) return o;
|
|
3838
3839
|
const _ = o.actions;
|
|
3839
3840
|
if (!_.includes("manage")) return o;
|
|
3840
|
-
const
|
|
3841
|
-
if (!
|
|
3842
|
-
const M =
|
|
3841
|
+
const k = w(o.subject);
|
|
3842
|
+
if (!k) return o;
|
|
3843
|
+
const M = k.actions;
|
|
3843
3844
|
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3845
|
}));
|
|
3845
|
-
function ne(
|
|
3846
|
+
function ne(O) {
|
|
3846
3847
|
n.value = ia(
|
|
3847
3848
|
Y.value,
|
|
3848
|
-
|
|
3849
|
+
O,
|
|
3849
3850
|
n.value,
|
|
3850
3851
|
w
|
|
3851
3852
|
);
|
|
3852
3853
|
}
|
|
3853
3854
|
const Q = z(() => new Set(
|
|
3854
|
-
N.value.filter((
|
|
3855
|
+
N.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
3856
|
)), _e = z(() => {
|
|
3856
|
-
const
|
|
3857
|
+
const O = /* @__PURE__ */ new Map();
|
|
3857
3858
|
return Y.value.map((s) => ({
|
|
3858
3859
|
rule: s,
|
|
3859
3860
|
index: n.value.findIndex(
|
|
@@ -3861,111 +3862,111 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3861
3862
|
)
|
|
3862
3863
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3863
3864
|
var P;
|
|
3864
|
-
const _ = s.actions,
|
|
3865
|
-
if (
|
|
3865
|
+
const _ = s.actions, k = A(s.subject, _);
|
|
3866
|
+
if (k.length === 0) return;
|
|
3866
3867
|
let M;
|
|
3867
3868
|
try {
|
|
3868
3869
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
3869
3870
|
} catch {
|
|
3870
3871
|
M = void 0;
|
|
3871
3872
|
}
|
|
3872
|
-
|
|
3873
|
+
O.set(s.subject, {
|
|
3873
3874
|
index: o >= 0 ? o : null,
|
|
3874
3875
|
subject: s.subject,
|
|
3875
3876
|
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3876
3877
|
actions: _,
|
|
3877
3878
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3878
|
-
sections:
|
|
3879
|
+
sections: k.map((p) => ({
|
|
3879
3880
|
builder: p,
|
|
3880
3881
|
formValue: p.fromCondition(tt(M, p))
|
|
3881
3882
|
}))
|
|
3882
3883
|
});
|
|
3883
|
-
}),
|
|
3884
|
-
}), ce = fa(n, N, (
|
|
3885
|
-
n.value =
|
|
3886
|
-
}), se =
|
|
3887
|
-
function q(
|
|
3888
|
-
const o = _e.value.get(
|
|
3884
|
+
}), O;
|
|
3885
|
+
}), ce = fa(n, N, (O) => {
|
|
3886
|
+
n.value = O;
|
|
3887
|
+
}), se = Tr(n), fe = rt(null);
|
|
3888
|
+
function q(O, s) {
|
|
3889
|
+
const o = _e.value.get(O);
|
|
3889
3890
|
if (o) return o;
|
|
3890
|
-
const _ = ce.getEffectiveActions(
|
|
3891
|
-
if (
|
|
3891
|
+
const _ = ce.getEffectiveActions(O), k = A(O, _);
|
|
3892
|
+
if (k.length !== 0)
|
|
3892
3893
|
return {
|
|
3893
3894
|
index: null,
|
|
3894
|
-
subject:
|
|
3895
|
+
subject: O,
|
|
3895
3896
|
label: s,
|
|
3896
3897
|
actions: _,
|
|
3897
|
-
sections:
|
|
3898
|
+
sections: k.map((M) => ({
|
|
3898
3899
|
builder: M,
|
|
3899
3900
|
formValue: M.fromCondition(void 0)
|
|
3900
3901
|
}))
|
|
3901
3902
|
};
|
|
3902
3903
|
}
|
|
3903
|
-
function De(
|
|
3904
|
-
const o = se.getDraft({ subject:
|
|
3904
|
+
function De(O, s) {
|
|
3905
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3905
3906
|
if (o) return o.formValue;
|
|
3906
|
-
const _ =
|
|
3907
|
+
const _ = O.sections.find((k) => k.builder.builderKey === s.builderKey);
|
|
3907
3908
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3909
|
}
|
|
3909
|
-
function K(
|
|
3910
|
-
const o = se.getDraft({ subject:
|
|
3911
|
-
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(
|
|
3910
|
+
function K(O, s) {
|
|
3911
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3912
|
+
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3912
3913
|
}
|
|
3913
|
-
function ve(
|
|
3914
|
+
function ve(O, s, o) {
|
|
3914
3915
|
const _ = se.getDraft({
|
|
3915
|
-
subject:
|
|
3916
|
+
subject: O.subject,
|
|
3916
3917
|
builderKey: s.builderKey
|
|
3917
3918
|
});
|
|
3918
3919
|
se.setDraft(
|
|
3919
|
-
{ subject:
|
|
3920
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3920
3921
|
{
|
|
3921
3922
|
formValue: o,
|
|
3922
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(
|
|
3923
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(O, s)
|
|
3923
3924
|
}
|
|
3924
3925
|
);
|
|
3925
3926
|
}
|
|
3926
|
-
function Je(
|
|
3927
|
+
function Je(O, s, o) {
|
|
3927
3928
|
const _ = se.getDraft({
|
|
3928
|
-
subject:
|
|
3929
|
+
subject: O.subject,
|
|
3929
3930
|
builderKey: s.builderKey
|
|
3930
|
-
}),
|
|
3931
|
+
}), k = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3931
3932
|
se.setDraft(
|
|
3932
|
-
{ subject:
|
|
3933
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3933
3934
|
{
|
|
3934
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3935
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (k == null ? void 0 : k.formValue),
|
|
3935
3936
|
inheritMode: o
|
|
3936
3937
|
}
|
|
3937
3938
|
);
|
|
3938
3939
|
}
|
|
3939
|
-
function Ke(
|
|
3940
|
-
return se.hasDraftsForSubject(
|
|
3940
|
+
function Ke(O) {
|
|
3941
|
+
return se.hasDraftsForSubject(O);
|
|
3941
3942
|
}
|
|
3942
|
-
function Ve(
|
|
3943
|
-
const o =
|
|
3944
|
-
const
|
|
3945
|
-
subject:
|
|
3943
|
+
function Ve(O, s) {
|
|
3944
|
+
const o = O.sections.flatMap((_) => {
|
|
3945
|
+
const k = se.getDraft({
|
|
3946
|
+
subject: O.subject,
|
|
3946
3947
|
builderKey: _.builder.builderKey
|
|
3947
3948
|
});
|
|
3948
|
-
return
|
|
3949
|
+
return k ? [{ builder: _.builder, form: k.formValue, mode: k.inheritMode ?? "custom" }] : [];
|
|
3949
3950
|
});
|
|
3950
|
-
ce.applyConditionDrafts(
|
|
3951
|
+
ce.applyConditionDrafts(O, o, {
|
|
3951
3952
|
afterCommit: () => {
|
|
3952
|
-
se.clearDraftsForSubject(
|
|
3953
|
+
se.clearDraftsForSubject(O.subject), s();
|
|
3953
3954
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3955
|
+
onOverridesConflict: Be(O).onOverridesConflict
|
|
3955
3956
|
});
|
|
3956
3957
|
}
|
|
3957
|
-
function Fe(
|
|
3958
|
-
return
|
|
3958
|
+
function Fe(O) {
|
|
3959
|
+
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3959
3960
|
}
|
|
3960
3961
|
let Ce = !1;
|
|
3961
|
-
function
|
|
3962
|
+
function Be(O, s = {}) {
|
|
3962
3963
|
return {
|
|
3963
3964
|
...s,
|
|
3964
3965
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3965
3966
|
Ce || (Ce = !0, u.open({
|
|
3966
3967
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3967
3968
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3968
|
-
cover:
|
|
3969
|
+
cover: O.label
|
|
3969
3970
|
}),
|
|
3970
3971
|
minWidth: i.value.lg ? 588 : 0,
|
|
3971
3972
|
zIndex: 200,
|
|
@@ -3989,27 +3990,27 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3989
3990
|
}
|
|
3990
3991
|
return wt(
|
|
3991
3992
|
n,
|
|
3992
|
-
(
|
|
3993
|
-
l("permissionChanged",
|
|
3993
|
+
(O) => {
|
|
3994
|
+
l("permissionChanged", O);
|
|
3994
3995
|
},
|
|
3995
3996
|
{ deep: !0 }
|
|
3996
|
-
), (
|
|
3997
|
-
const o = we("FmIcon"), _ = we("FmBottomSheet"),
|
|
3997
|
+
), (O, s) => {
|
|
3998
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), k = we("FmPopover");
|
|
3998
3999
|
return J(), ie("div", _a, [
|
|
3999
4000
|
ae("div", va, [
|
|
4000
4001
|
ue(Ho, {
|
|
4001
4002
|
"model-value": Y.value,
|
|
4002
4003
|
"excluded-subjects": c,
|
|
4003
|
-
"additional-permissions": H(
|
|
4004
|
+
"additional-permissions": H(T),
|
|
4004
4005
|
"onUpdate:modelValue": ne
|
|
4005
4006
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4007
|
+
Ee(D.value, (M) => ({
|
|
4007
4008
|
name: `checkbox-${M.id}-append`,
|
|
4008
4009
|
fn: de(() => [
|
|
4009
4010
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4010
4011
|
])
|
|
4011
4012
|
})),
|
|
4012
|
-
|
|
4013
|
+
Ee(Q.value, (M) => ({
|
|
4013
4014
|
name: `checkbox-${M}-icon`,
|
|
4014
4015
|
fn: de(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
4016
|
p && q(M, P.label) ? (J(), ie(Re, { key: 0 }, [
|
|
@@ -4022,8 +4023,8 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4022
4023
|
"dismiss-away": "",
|
|
4023
4024
|
"z-index": 100,
|
|
4024
4025
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
fe.value =
|
|
4026
|
+
"onUpdate:modelValue": (E) => {
|
|
4027
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4027
4028
|
}
|
|
4028
4029
|
}, {
|
|
4029
4030
|
"bottom-sheet-button": de(() => [
|
|
@@ -4041,29 +4042,29 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4041
4042
|
default: de(() => [
|
|
4042
4043
|
ue(Fn, {
|
|
4043
4044
|
entry: q(M, P.label),
|
|
4044
|
-
builders: q(M, P.label).sections.map((
|
|
4045
|
+
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4045
4046
|
subject: M,
|
|
4046
4047
|
"time-zone": F.value,
|
|
4047
4048
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4049
|
+
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4050
|
+
"form-value-for": (E) => De(q(M, P.label), E),
|
|
4050
4051
|
"has-changes": Ke(M),
|
|
4051
4052
|
disable: e.disable,
|
|
4052
4053
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4054
|
+
onUpdateInheritMode: ({ builder: E, mode: $ }) => Je(q(M, P.label), E, $),
|
|
4055
|
+
onUpdateForm: ({ builder: E, form: $ }) => ve(q(M, P.label), E, $),
|
|
4056
|
+
onApply: (E) => Ve(q(M, P.label), () => fe.value = null)
|
|
4056
4057
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4058
|
]),
|
|
4058
4059
|
_: 2
|
|
4059
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(
|
|
4060
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(k, {
|
|
4060
4061
|
key: 1,
|
|
4061
4062
|
disabled: e.disable,
|
|
4062
4063
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4064
|
+
"exclude-el-from-click-outside": [ya],
|
|
4064
4065
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4066
|
+
onPopoverChanged: (E) => {
|
|
4067
|
+
E || H(se).clearDraftsForSubject(M);
|
|
4067
4068
|
}
|
|
4068
4069
|
}, {
|
|
4069
4070
|
"popover-button": de(() => [
|
|
@@ -4078,7 +4079,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4078
4079
|
}, null, 8, ["class"])
|
|
4079
4080
|
])
|
|
4080
4081
|
]),
|
|
4081
|
-
default: de(({ hide:
|
|
4082
|
+
default: de(({ hide: E }) => [
|
|
4082
4083
|
ue(Fn, {
|
|
4083
4084
|
entry: q(M, P.label),
|
|
4084
4085
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4098,7 +4099,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4098
4099
|
le
|
|
4099
4100
|
),
|
|
4100
4101
|
onUpdateForm: ({ builder: $, form: le }) => ve(q(M, P.label), $, le),
|
|
4101
|
-
onApply: ($) => Ve(q(M, P.label),
|
|
4102
|
+
onApply: ($) => Ve(q(M, P.label), E)
|
|
4102
4103
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4104
|
]),
|
|
4104
4105
|
_: 2
|
|
@@ -4120,7 +4121,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4120
4121
|
context: H(a)("team.labels.warehouse"),
|
|
4121
4122
|
"onUpdate:modelValue": R
|
|
4122
4123
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4124
|
+
Ee(f.value, (M) => ({
|
|
4124
4125
|
name: `checkbox-${M.id}-append`,
|
|
4125
4126
|
fn: de(() => [
|
|
4126
4127
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
@@ -4135,7 +4136,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4135
4136
|
context: H(a)("team.labels.restaurant"),
|
|
4136
4137
|
"onUpdate:modelValue": V
|
|
4137
4138
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4139
|
+
Ee(h.value, (M) => ({
|
|
4139
4140
|
name: `checkbox-${M.id}-append`,
|
|
4140
4141
|
fn: de(() => [
|
|
4141
4142
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
@@ -4143,14 +4144,14 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4143
4144
|
}))
|
|
4144
4145
|
]), 1032, ["model-value", "options", "context"])
|
|
4145
4146
|
]),
|
|
4146
|
-
ae("div",
|
|
4147
|
+
ae("div", Ia, [
|
|
4147
4148
|
ue(ra, {
|
|
4148
4149
|
roles: H(x),
|
|
4149
4150
|
"model-value": j.value,
|
|
4150
4151
|
"restaurant-ids": U.value,
|
|
4151
4152
|
"onUpdate:modelValue": G
|
|
4152
4153
|
}, et({ _: 2 }, [
|
|
4153
|
-
|
|
4154
|
+
Ee(S.value, (M) => ({
|
|
4154
4155
|
name: `checkbox-${M.id}-append`,
|
|
4155
4156
|
fn: de(() => [
|
|
4156
4157
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
@@ -4163,5 +4164,5 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4163
4164
|
}
|
|
4164
4165
|
});
|
|
4165
4166
|
export {
|
|
4166
|
-
|
|
4167
|
+
Fa as _
|
|
4167
4168
|
};
|