@feedmepos/mf-hrm-portal 2.2.5-dev.4 → 2.2.5-dev.5
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-D0B_X3Sf.js → ApprovalCodeList-DqR6ouRS.js} +4 -4
- package/dist/{AuditLogList-D9anf4YQ.js → AuditLogList-CG2BiQX6.js} +17 -18
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7nMXx8R.js} +2 -2
- package/dist/{EmployeeList-DREDu3Ou.js → EmployeeList-CGZzol7v.js} +27 -29
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{GrantUserList-CLDshEN9.js → GrantUserList-D1fBv1KQ.js} +5 -5
- package/dist/{Main-lqlb8tPw.js → Main-BOt-Y1wv.js} +9 -9
- package/dist/{Main-QhQxU593.js → Main-CFoZot3K.js} +5 -5
- package/dist/{Main-DtMaG42L.js → Main-zg7fbEtx.js} +2 -2
- package/dist/{PermissionSetList-BK8yBpJJ.js → PermissionSetList-bJpwD62u.js} +10 -11
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-uSdvH81B.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C4C8Cvf4.js} +911 -912
- package/dist/{RoleList-D6AX6BqB.js → RoleList-DUVZ7dkO.js} +7 -7
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/{TeamMemberList-BM5JoR6J.js → TeamMemberList-DAnM-DSd.js} +34 -36
- package/dist/{TimesheetList-Ch_f_PD5.js → TimesheetList-5sdcWjEf.js} +53 -54
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CxqxqwyD.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-GhPw_mCW.js} +2 -2
- package/dist/{app-tDHL6k4G.js → app-D-cQzgkr.js} +2299 -2884
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B_XWc0Hu.js → dayjs.min-DqFS0ebn.js} +1 -1
- package/dist/employee-DvvnCQMK.js +204 -0
- package/dist/{index-jxRluZiW.js → iteration-BjW8Cs9e.js} +726 -698
- package/dist/{lodash-D5vM3paU.js → lodash-wjhSWqez.js} +1 -1
- package/dist/{role-7ccipEEe.js → role-CEUcSmA6.js} +3 -4
- package/dist/{rule-7faruCdz.js → rule-Df8LOhxm.js} +70 -71
- package/dist/src/router/shared.d.ts +1 -4
- 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-FieO4EAD.js → useReportPermissions-4wm7pJcK.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleGeneralPage-DAECTCDu.js +0 -242
- package/dist/SchedulePage-CdFR7JuO.js +0 -10751
- package/dist/SchedulePositionPage-DTtKg0sx.js +0 -220
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-BiuUrr50.js +0 -199
- package/dist/SelectFilter-CG13h83-.js +0 -264
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/employee-Bs_2vqBY.js +0 -139
- package/dist/index-Cz2b95YF.js +0 -70
- package/dist/iteration-CcXrOMQe.js +0 -30
- package/dist/src/api/schedule/index.d.ts +0 -44
- package/dist/src/components/layout/AppSidebar.vue.d.ts +0 -2
- package/dist/src/components/layout/PortalShell.vue.d.ts +0 -12
- package/dist/src/components/layout/withShell.d.ts +0 -14
- package/dist/src/types/schedule.d.ts +0 -232
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +0 -4
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +0 -4
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +0 -4
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -34
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -24
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +0 -24
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +0 -31
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -54
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +0 -22
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +0 -67
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +0 -38
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +0 -29
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +0 -14
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +0 -10
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +0 -86
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -66
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -113
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -136
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -415
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +0 -43
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -48
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -82
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +0 -68
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +0 -45
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -139
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +0 -32
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +0 -26
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +0 -80
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +0 -20
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +0 -35
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +0 -179
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +0 -19
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -32
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +0 -91
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +0 -183
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +0 -54
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +0 -225
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +0 -174
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -20
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -25
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +0 -44
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
- package/dist/src/views/scheduling/data.d.ts +0 -105
- package/dist/src/views/scheduling/locales/index.d.ts +0 -496
- package/dist/src/views/scheduling/schedule-store.d.ts +0 -116
- package/dist/src/views/scheduling/types.d.ts +0 -311
- package/dist/useScheduleOutlet-CmIG5dwQ.js +0 -557
- package/dist/useSchedulePositions-DPVAgdB2.js +0 -103
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as Dt, onMounted as Vn, onUnmounted as dr, defineComponent as Ae, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as De, createBlock as Ce, openBlock as $, withCtx as me, 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
|
|
6
|
-
import { _ as Xt, a as
|
|
7
|
-
import { u as Or,
|
|
8
|
-
import { c as It } from "./iteration-
|
|
5
|
+
import { p as Gn, N as Zn, d as Ir, P as yr, w as Lt, x as Er, y as Cr } from "./rule-Df8LOhxm.js";
|
|
6
|
+
import { _ as Xt, a as Nr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7nMXx8R.js";
|
|
7
|
+
import { u as Or, b as Sr, d as Bn, S as wt, A as tt, e as he, k as rn, O as Lr } from "./app-D-cQzgkr.js";
|
|
8
|
+
import { c as It } from "./iteration-BjW8Cs9e.js";
|
|
9
9
|
import { r as Ar } from "./string-VNuQNweN.js";
|
|
10
|
-
import "./
|
|
11
|
-
import {
|
|
12
|
-
import { u as Mr } from "./role-7ccipEEe.js";
|
|
10
|
+
import { g as Rr, b as kr } from "./restaurant-BTpBmfBV.js";
|
|
11
|
+
import { u as Mr } from "./role-CEUcSmA6.js";
|
|
13
12
|
function Yn(e, t) {
|
|
14
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
15
14
|
}
|
|
16
|
-
function
|
|
15
|
+
function Dr(e) {
|
|
17
16
|
return Array.isArray(e) ? e[0] : e;
|
|
18
17
|
}
|
|
19
|
-
function
|
|
18
|
+
function wr(e, t) {
|
|
20
19
|
const n = t.find((l) => Yn(l.subject, e));
|
|
21
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
22
21
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
23
22
|
if (r)
|
|
24
|
-
return
|
|
23
|
+
return Dr(r.subject);
|
|
25
24
|
}
|
|
26
25
|
function sn(e, t) {
|
|
27
26
|
const n = t.find((r) => Yn(r.subject, e));
|
|
@@ -32,21 +31,21 @@ function sn(e, t) {
|
|
|
32
31
|
* (c) 2024 kazuya kawaguchi
|
|
33
32
|
* Released under the MIT License.
|
|
34
33
|
*/
|
|
35
|
-
const on = typeof window < "u",
|
|
34
|
+
const on = typeof window < "u", Je = (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]", Nt = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
36
35
|
let an;
|
|
37
36
|
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
38
37
|
function ln(e) {
|
|
39
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
40
39
|
}
|
|
41
|
-
const
|
|
40
|
+
const xr = Object.prototype.hasOwnProperty;
|
|
42
41
|
function Le(e, t) {
|
|
43
|
-
return
|
|
42
|
+
return xr.call(e, t);
|
|
44
43
|
}
|
|
45
|
-
const be = Array.isArray,
|
|
46
|
-
function
|
|
44
|
+
const be = Array.isArray, de = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vr = (e) => te(e) && de(e.then) && de(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
|
+
function Jt(e, t = "") {
|
|
47
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
48
47
|
}
|
|
49
|
-
function
|
|
48
|
+
function Gr(e, t) {
|
|
50
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
51
50
|
}
|
|
52
51
|
const ft = (e) => !te(e) || be(e);
|
|
@@ -86,23 +85,23 @@ const re = {
|
|
|
86
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
87
86
|
}, Br = 17;
|
|
88
87
|
function Tt(e, t, n = {}) {
|
|
89
|
-
const { domain: r, messages: l, args: a } = n,
|
|
88
|
+
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
90
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
91
90
|
}
|
|
92
91
|
function Yr(e) {
|
|
93
92
|
throw e;
|
|
94
93
|
}
|
|
95
94
|
const Pe = " ", Xr = "\r", ye = `
|
|
96
|
-
`, Hr = "\u2028",
|
|
97
|
-
function
|
|
95
|
+
`, Hr = "\u2028", Jr = "\u2029";
|
|
96
|
+
function $r(e) {
|
|
98
97
|
const t = e;
|
|
99
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
100
|
-
const
|
|
99
|
+
const m = (v) => t[v] === Xr && t[v + 1] === ye, u = (v) => t[v] === ye, i = (v) => t[v] === Jr, g = (v) => t[v] === Hr, y = (v) => m(v) || u(v) || i(v) || g(v), T = () => n, C = () => r, F = () => l, D = () => a, A = (v) => m(v) || i(v) || g(v) ? ye : t[v], w = () => A(n), f = () => A(n + a);
|
|
101
100
|
function h() {
|
|
102
|
-
return a = 0, y(n) && (r++, l = 0),
|
|
101
|
+
return a = 0, y(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
103
102
|
}
|
|
104
103
|
function S() {
|
|
105
|
-
return
|
|
104
|
+
return m(n + a) && a++, a++, t[n + a];
|
|
106
105
|
}
|
|
107
106
|
function c() {
|
|
108
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
@@ -118,11 +117,11 @@ function Jr(e) {
|
|
|
118
117
|
}
|
|
119
118
|
return {
|
|
120
119
|
index: T,
|
|
121
|
-
line:
|
|
120
|
+
line: C,
|
|
122
121
|
column: F,
|
|
123
|
-
peekOffset:
|
|
122
|
+
peekOffset: D,
|
|
124
123
|
charAt: A,
|
|
125
|
-
currentChar:
|
|
124
|
+
currentChar: w,
|
|
126
125
|
currentPeek: f,
|
|
127
126
|
next: h,
|
|
128
127
|
peek: S,
|
|
@@ -131,42 +130,42 @@ function Jr(e) {
|
|
|
131
130
|
skipToPeek: I
|
|
132
131
|
};
|
|
133
132
|
}
|
|
134
|
-
const
|
|
133
|
+
const Ve = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
135
134
|
function Qr(e, t = {}) {
|
|
136
|
-
const n = t.location !== !1, r =
|
|
135
|
+
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
137
136
|
currentType: 13,
|
|
138
137
|
offset: u,
|
|
139
|
-
startLoc:
|
|
140
|
-
endLoc:
|
|
138
|
+
startLoc: m,
|
|
139
|
+
endLoc: m,
|
|
141
140
|
lastType: 13,
|
|
142
141
|
lastOffset: u,
|
|
143
|
-
lastStartLoc:
|
|
144
|
-
lastEndLoc:
|
|
142
|
+
lastStartLoc: m,
|
|
143
|
+
lastEndLoc: m,
|
|
145
144
|
braceNest: 0,
|
|
146
145
|
inLinked: !1,
|
|
147
146
|
text: ""
|
|
148
147
|
}, g = () => i, { onError: y } = t;
|
|
149
|
-
function T(s, o, _, ...
|
|
148
|
+
function T(s, o, _, ...R) {
|
|
150
149
|
const M = g();
|
|
151
150
|
if (o.column += _, o.offset += _, y) {
|
|
152
151
|
const P = n ? Ft(M.startLoc, o) : null, p = Tt(s, P, {
|
|
153
152
|
domain: zr,
|
|
154
|
-
args:
|
|
153
|
+
args: R
|
|
155
154
|
});
|
|
156
155
|
y(p);
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
|
-
function
|
|
158
|
+
function C(s, o, _) {
|
|
160
159
|
s.endLoc = a(), s.currentType = o;
|
|
161
|
-
const
|
|
162
|
-
return n && (
|
|
160
|
+
const R = { type: o };
|
|
161
|
+
return n && (R.loc = Ft(s.startLoc, s.endLoc)), _ != null && (R.value = _), R;
|
|
163
162
|
}
|
|
164
|
-
const F = (s) =>
|
|
163
|
+
const F = (s) => C(
|
|
165
164
|
s,
|
|
166
165
|
13
|
|
167
166
|
/* TokenTypes.EOF */
|
|
168
167
|
);
|
|
169
|
-
function
|
|
168
|
+
function D(s, o) {
|
|
170
169
|
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
171
170
|
}
|
|
172
171
|
function A(s) {
|
|
@@ -175,12 +174,12 @@ function Qr(e, t = {}) {
|
|
|
175
174
|
o += s.currentPeek(), s.peek();
|
|
176
175
|
return o;
|
|
177
176
|
}
|
|
178
|
-
function
|
|
177
|
+
function w(s) {
|
|
179
178
|
const o = A(s);
|
|
180
179
|
return s.skipToPeek(), o;
|
|
181
180
|
}
|
|
182
181
|
function f(s) {
|
|
183
|
-
if (s ===
|
|
182
|
+
if (s === Ve)
|
|
184
183
|
return !1;
|
|
185
184
|
const o = s.charCodeAt(0);
|
|
186
185
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -188,7 +187,7 @@ function Qr(e, t = {}) {
|
|
|
188
187
|
o === 95;
|
|
189
188
|
}
|
|
190
189
|
function h(s) {
|
|
191
|
-
if (s ===
|
|
190
|
+
if (s === Ve)
|
|
192
191
|
return !1;
|
|
193
192
|
const o = s.charCodeAt(0);
|
|
194
193
|
return o >= 48 && o <= 57;
|
|
@@ -198,15 +197,15 @@ function Qr(e, t = {}) {
|
|
|
198
197
|
if (_ !== 2)
|
|
199
198
|
return !1;
|
|
200
199
|
A(s);
|
|
201
|
-
const
|
|
202
|
-
return s.resetPeek(),
|
|
200
|
+
const R = f(s.currentPeek());
|
|
201
|
+
return s.resetPeek(), R;
|
|
203
202
|
}
|
|
204
203
|
function c(s, o) {
|
|
205
204
|
const { currentType: _ } = o;
|
|
206
205
|
if (_ !== 2)
|
|
207
206
|
return !1;
|
|
208
207
|
A(s);
|
|
209
|
-
const
|
|
208
|
+
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(R);
|
|
210
209
|
return s.resetPeek(), M;
|
|
211
210
|
}
|
|
212
211
|
function b(s, o) {
|
|
@@ -214,41 +213,41 @@ function Qr(e, t = {}) {
|
|
|
214
213
|
if (_ !== 2)
|
|
215
214
|
return !1;
|
|
216
215
|
A(s);
|
|
217
|
-
const
|
|
218
|
-
return s.resetPeek(),
|
|
216
|
+
const R = s.currentPeek() === cn;
|
|
217
|
+
return s.resetPeek(), R;
|
|
219
218
|
}
|
|
220
219
|
function I(s, o) {
|
|
221
220
|
const { currentType: _ } = o;
|
|
222
221
|
if (_ !== 7)
|
|
223
222
|
return !1;
|
|
224
223
|
A(s);
|
|
225
|
-
const
|
|
226
|
-
return s.resetPeek(),
|
|
224
|
+
const R = s.currentPeek() === ".";
|
|
225
|
+
return s.resetPeek(), R;
|
|
227
226
|
}
|
|
228
227
|
function v(s, o) {
|
|
229
228
|
const { currentType: _ } = o;
|
|
230
229
|
if (_ !== 8)
|
|
231
230
|
return !1;
|
|
232
231
|
A(s);
|
|
233
|
-
const
|
|
234
|
-
return s.resetPeek(),
|
|
232
|
+
const R = f(s.currentPeek());
|
|
233
|
+
return s.resetPeek(), R;
|
|
235
234
|
}
|
|
236
|
-
function
|
|
235
|
+
function k(s, o) {
|
|
237
236
|
const { currentType: _ } = o;
|
|
238
237
|
if (!(_ === 7 || _ === 11))
|
|
239
238
|
return !1;
|
|
240
239
|
A(s);
|
|
241
|
-
const
|
|
242
|
-
return s.resetPeek(),
|
|
240
|
+
const R = s.currentPeek() === ":";
|
|
241
|
+
return s.resetPeek(), R;
|
|
243
242
|
}
|
|
244
243
|
function L(s, o) {
|
|
245
244
|
const { currentType: _ } = o;
|
|
246
245
|
if (_ !== 9)
|
|
247
246
|
return !1;
|
|
248
|
-
const
|
|
247
|
+
const R = () => {
|
|
249
248
|
const P = s.currentPeek();
|
|
250
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(),
|
|
251
|
-
}, M =
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), R()) : V(s, !1);
|
|
250
|
+
}, M = R();
|
|
252
251
|
return s.resetPeek(), M;
|
|
253
252
|
}
|
|
254
253
|
function X(s) {
|
|
@@ -256,18 +255,18 @@ function Qr(e, t = {}) {
|
|
|
256
255
|
const o = s.currentPeek() === "|";
|
|
257
256
|
return s.resetPeek(), o;
|
|
258
257
|
}
|
|
259
|
-
function
|
|
258
|
+
function V(s, o = !0) {
|
|
260
259
|
const _ = (M = !1, P = "") => {
|
|
261
260
|
const p = s.currentPeek();
|
|
262
261
|
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P === ye) : p === Pe ? (s.peek(), _(!0, Pe)) : p === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
263
|
-
},
|
|
264
|
-
return o && s.resetPeek(),
|
|
262
|
+
}, R = _();
|
|
263
|
+
return o && s.resetPeek(), R;
|
|
265
264
|
}
|
|
266
|
-
function
|
|
265
|
+
function d(s, o) {
|
|
267
266
|
const _ = s.currentChar();
|
|
268
|
-
return _ ===
|
|
267
|
+
return _ === Ve ? Ve : o(_) ? (s.next(), _) : null;
|
|
269
268
|
}
|
|
270
|
-
function
|
|
269
|
+
function N(s) {
|
|
271
270
|
const o = s.charCodeAt(0);
|
|
272
271
|
return o >= 97 && o <= 122 || // a-z
|
|
273
272
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -276,9 +275,9 @@ function Qr(e, t = {}) {
|
|
|
276
275
|
o === 36;
|
|
277
276
|
}
|
|
278
277
|
function U(s) {
|
|
279
|
-
return
|
|
278
|
+
return d(s, N);
|
|
280
279
|
}
|
|
281
|
-
function
|
|
280
|
+
function x(s) {
|
|
282
281
|
const o = s.charCodeAt(0);
|
|
283
282
|
return o >= 97 && o <= 122 || // a-z
|
|
284
283
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -288,14 +287,14 @@ function Qr(e, t = {}) {
|
|
|
288
287
|
o === 45;
|
|
289
288
|
}
|
|
290
289
|
function j(s) {
|
|
291
|
-
return
|
|
290
|
+
return d(s, x);
|
|
292
291
|
}
|
|
293
|
-
function
|
|
292
|
+
function G(s) {
|
|
294
293
|
const o = s.charCodeAt(0);
|
|
295
294
|
return o >= 48 && o <= 57;
|
|
296
295
|
}
|
|
297
|
-
function
|
|
298
|
-
return
|
|
296
|
+
function W(s) {
|
|
297
|
+
return d(s, G);
|
|
299
298
|
}
|
|
300
299
|
function B(s) {
|
|
301
300
|
const o = s.charCodeAt(0);
|
|
@@ -304,11 +303,11 @@ function Qr(e, t = {}) {
|
|
|
304
303
|
o >= 97 && o <= 102;
|
|
305
304
|
}
|
|
306
305
|
function Y(s) {
|
|
307
|
-
return
|
|
306
|
+
return d(s, B);
|
|
308
307
|
}
|
|
309
308
|
function ne(s) {
|
|
310
309
|
let o = "", _ = "";
|
|
311
|
-
for (; o =
|
|
310
|
+
for (; o = W(s); )
|
|
312
311
|
_ += o;
|
|
313
312
|
return _;
|
|
314
313
|
}
|
|
@@ -319,7 +318,7 @@ function Qr(e, t = {}) {
|
|
|
319
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
320
319
|
break;
|
|
321
320
|
if (_ === Pe || _ === ye)
|
|
322
|
-
if (
|
|
321
|
+
if (V(s))
|
|
323
322
|
o += _, s.next();
|
|
324
323
|
else {
|
|
325
324
|
if (X(s))
|
|
@@ -332,27 +331,27 @@ function Qr(e, t = {}) {
|
|
|
332
331
|
return o;
|
|
333
332
|
}
|
|
334
333
|
function _e(s) {
|
|
335
|
-
|
|
334
|
+
w(s);
|
|
336
335
|
let o = "", _ = "";
|
|
337
336
|
for (; o = j(s); )
|
|
338
337
|
_ += o;
|
|
339
|
-
return s.currentChar() ===
|
|
338
|
+
return s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
340
339
|
}
|
|
341
340
|
function ce(s) {
|
|
342
|
-
|
|
341
|
+
w(s);
|
|
343
342
|
let o = "";
|
|
344
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() ===
|
|
343
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
345
344
|
}
|
|
346
345
|
function se(s) {
|
|
347
346
|
return s !== cn && s !== ye;
|
|
348
347
|
}
|
|
349
348
|
function fe(s) {
|
|
350
|
-
|
|
349
|
+
w(s), D(s, "'");
|
|
351
350
|
let o = "", _ = "";
|
|
352
|
-
for (; o =
|
|
351
|
+
for (; o = d(s, se); )
|
|
353
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
354
|
-
const
|
|
355
|
-
return
|
|
353
|
+
const R = s.currentChar();
|
|
354
|
+
return R === ye || R === Ve ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), D(s, "'")), _) : (D(s, "'"), _);
|
|
356
355
|
}
|
|
357
356
|
function q(s) {
|
|
358
357
|
const o = s.currentChar();
|
|
@@ -361,37 +360,37 @@ function Qr(e, t = {}) {
|
|
|
361
360
|
case "'":
|
|
362
361
|
return s.next(), `\\${o}`;
|
|
363
362
|
case "u":
|
|
364
|
-
return
|
|
363
|
+
return we(s, o, 4);
|
|
365
364
|
case "U":
|
|
366
|
-
return
|
|
365
|
+
return we(s, o, 6);
|
|
367
366
|
default:
|
|
368
367
|
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
369
368
|
}
|
|
370
369
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
373
|
-
let
|
|
370
|
+
function we(s, o, _) {
|
|
371
|
+
D(s, o);
|
|
372
|
+
let R = "";
|
|
374
373
|
for (let M = 0; M < _; M++) {
|
|
375
374
|
const P = Y(s);
|
|
376
375
|
if (!P) {
|
|
377
|
-
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${
|
|
376
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${R}${s.currentChar()}`);
|
|
378
377
|
break;
|
|
379
378
|
}
|
|
380
|
-
|
|
379
|
+
R += P;
|
|
381
380
|
}
|
|
382
|
-
return `\\${o}${
|
|
381
|
+
return `\\${o}${R}`;
|
|
383
382
|
}
|
|
384
383
|
function K(s) {
|
|
385
384
|
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
386
385
|
}
|
|
387
386
|
function ve(s) {
|
|
388
|
-
|
|
387
|
+
w(s);
|
|
389
388
|
let o = "", _ = "";
|
|
390
|
-
for (; o =
|
|
389
|
+
for (; o = d(s, K); )
|
|
391
390
|
_ += o;
|
|
392
391
|
return _;
|
|
393
392
|
}
|
|
394
|
-
function
|
|
393
|
+
function $e(s) {
|
|
395
394
|
let o = "", _ = "";
|
|
396
395
|
for (; o = U(s); )
|
|
397
396
|
_ += o;
|
|
@@ -399,86 +398,86 @@ function Qr(e, t = {}) {
|
|
|
399
398
|
}
|
|
400
399
|
function Ke(s) {
|
|
401
400
|
const o = (_) => {
|
|
402
|
-
const
|
|
403
|
-
return
|
|
401
|
+
const R = s.currentChar();
|
|
402
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Pe ? _ : (_ += R, s.next(), o(_));
|
|
404
403
|
};
|
|
405
404
|
return o("");
|
|
406
405
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
const o =
|
|
406
|
+
function xe(s) {
|
|
407
|
+
w(s);
|
|
408
|
+
const o = D(
|
|
410
409
|
s,
|
|
411
410
|
"|"
|
|
412
411
|
/* TokenChars.Pipe */
|
|
413
412
|
);
|
|
414
|
-
return
|
|
413
|
+
return w(s), o;
|
|
415
414
|
}
|
|
416
415
|
function Fe(s, o) {
|
|
417
416
|
let _ = null;
|
|
418
417
|
switch (s.currentChar()) {
|
|
419
418
|
case "{":
|
|
420
|
-
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
419
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
421
420
|
o,
|
|
422
421
|
2,
|
|
423
422
|
"{"
|
|
424
423
|
/* TokenChars.BraceLeft */
|
|
425
|
-
),
|
|
424
|
+
), w(s), o.braceNest++, _;
|
|
426
425
|
case "}":
|
|
427
|
-
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
426
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
428
427
|
o,
|
|
429
428
|
3,
|
|
430
429
|
"}"
|
|
431
430
|
/* TokenChars.BraceRight */
|
|
432
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
431
|
+
), o.braceNest--, o.braceNest > 0 && w(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
433
432
|
case "@":
|
|
434
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
433
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ne(s, o) || F(o), o.braceNest = 0, _;
|
|
435
434
|
default: {
|
|
436
435
|
let M = !0, P = !0, p = !0;
|
|
437
436
|
if (X(s))
|
|
438
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
437
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
439
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
440
439
|
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Be(s, o);
|
|
441
440
|
if (M = S(s, o))
|
|
442
|
-
return _ =
|
|
441
|
+
return _ = C(o, 4, _e(s)), w(s), _;
|
|
443
442
|
if (P = c(s, o))
|
|
444
|
-
return _ =
|
|
443
|
+
return _ = C(o, 5, ce(s)), w(s), _;
|
|
445
444
|
if (p = b(s, o))
|
|
446
|
-
return _ =
|
|
445
|
+
return _ = C(o, 6, fe(s)), w(s), _;
|
|
447
446
|
if (!M && !P && !p)
|
|
448
|
-
return _ =
|
|
447
|
+
return _ = C(o, 12, ve(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), w(s), _;
|
|
449
448
|
break;
|
|
450
449
|
}
|
|
451
450
|
}
|
|
452
451
|
return _;
|
|
453
452
|
}
|
|
454
|
-
function
|
|
453
|
+
function Ne(s, o) {
|
|
455
454
|
const { currentType: _ } = o;
|
|
456
|
-
let
|
|
455
|
+
let R = null;
|
|
457
456
|
const M = s.currentChar();
|
|
458
457
|
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
459
458
|
case "@":
|
|
460
|
-
return s.next(),
|
|
459
|
+
return s.next(), R = C(
|
|
461
460
|
o,
|
|
462
461
|
7,
|
|
463
462
|
"@"
|
|
464
463
|
/* TokenChars.LinkedAlias */
|
|
465
|
-
), o.inLinked = !0,
|
|
464
|
+
), o.inLinked = !0, R;
|
|
466
465
|
case ".":
|
|
467
|
-
return
|
|
466
|
+
return w(s), s.next(), C(
|
|
468
467
|
o,
|
|
469
468
|
8,
|
|
470
469
|
"."
|
|
471
470
|
/* TokenChars.LinkedDot */
|
|
472
471
|
);
|
|
473
472
|
case ":":
|
|
474
|
-
return
|
|
473
|
+
return w(s), s.next(), C(
|
|
475
474
|
o,
|
|
476
475
|
9,
|
|
477
476
|
":"
|
|
478
477
|
/* TokenChars.LinkedDelimiter */
|
|
479
478
|
);
|
|
480
479
|
default:
|
|
481
|
-
return X(s) ? (
|
|
480
|
+
return X(s) ? (R = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (w(s), Ne(s, o)) : v(s, o) ? (w(s), C(o, 11, $e(s))) : L(s, o) ? (w(s), M === "{" ? Fe(s, o) || R : C(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Be(s, o));
|
|
482
481
|
}
|
|
483
482
|
}
|
|
484
483
|
function Be(s, o) {
|
|
@@ -489,32 +488,32 @@ function Qr(e, t = {}) {
|
|
|
489
488
|
if (o.braceNest > 0)
|
|
490
489
|
return Fe(s, o) || F(o);
|
|
491
490
|
if (o.inLinked)
|
|
492
|
-
return
|
|
491
|
+
return Ne(s, o) || F(o);
|
|
493
492
|
switch (s.currentChar()) {
|
|
494
493
|
case "{":
|
|
495
494
|
return Fe(s, o) || F(o);
|
|
496
495
|
case "}":
|
|
497
|
-
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(),
|
|
496
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), C(
|
|
498
497
|
o,
|
|
499
498
|
3,
|
|
500
499
|
"}"
|
|
501
500
|
/* TokenChars.BraceRight */
|
|
502
501
|
);
|
|
503
502
|
case "@":
|
|
504
|
-
return
|
|
503
|
+
return Ne(s, o) || F(o);
|
|
505
504
|
default: {
|
|
506
505
|
if (X(s))
|
|
507
|
-
return _ =
|
|
508
|
-
if (
|
|
509
|
-
return
|
|
506
|
+
return _ = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
|
+
if (V(s))
|
|
508
|
+
return C(o, 0, Q(s));
|
|
510
509
|
break;
|
|
511
510
|
}
|
|
512
511
|
}
|
|
513
512
|
return _;
|
|
514
513
|
}
|
|
515
514
|
function O() {
|
|
516
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
517
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
515
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: R } = i;
|
|
516
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() === Ve ? C(
|
|
518
517
|
i,
|
|
519
518
|
13
|
|
520
519
|
/* TokenTypes.EOF */
|
|
@@ -545,11 +544,11 @@ function ns(e = {}) {
|
|
|
545
544
|
function r(f, h, S, c, ...b) {
|
|
546
545
|
const I = f.currentPosition();
|
|
547
546
|
if (I.offset += c, I.column += c, n) {
|
|
548
|
-
const v = t ? Ft(S, I) : null,
|
|
547
|
+
const v = t ? Ft(S, I) : null, k = Tt(h, v, {
|
|
549
548
|
domain: qr,
|
|
550
549
|
args: b
|
|
551
550
|
});
|
|
552
|
-
n(
|
|
551
|
+
n(k);
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
554
|
function l(f, h, S) {
|
|
@@ -559,7 +558,7 @@ function ns(e = {}) {
|
|
|
559
558
|
function a(f, h, S, c) {
|
|
560
559
|
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
561
560
|
}
|
|
562
|
-
function
|
|
561
|
+
function m(f, h) {
|
|
563
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
564
563
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
565
564
|
}
|
|
@@ -580,7 +579,7 @@ function ns(e = {}) {
|
|
|
580
579
|
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
581
580
|
nextConsumeToken: h,
|
|
582
581
|
node: I
|
|
583
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
582
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Re(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
584
583
|
node: I
|
|
585
584
|
});
|
|
586
585
|
}
|
|
@@ -588,25 +587,25 @@ function ns(e = {}) {
|
|
|
588
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
589
588
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
590
589
|
}
|
|
591
|
-
function
|
|
590
|
+
function C(f) {
|
|
592
591
|
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
593
592
|
let c = f.nextToken();
|
|
594
593
|
if (c.type === 8) {
|
|
595
594
|
const b = y(f);
|
|
596
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
597
596
|
}
|
|
598
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
599
598
|
case 10:
|
|
600
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = T(f, c.value || "");
|
|
601
600
|
break;
|
|
602
601
|
case 4:
|
|
603
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = i(f, c.value || "");
|
|
604
603
|
break;
|
|
605
604
|
case 5:
|
|
606
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = u(f, c.value || "");
|
|
607
606
|
break;
|
|
608
607
|
case 6:
|
|
609
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = g(f, c.value || "");
|
|
610
609
|
break;
|
|
611
610
|
default: {
|
|
612
611
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
@@ -629,49 +628,49 @@ function ns(e = {}) {
|
|
|
629
628
|
const L = I || f.nextToken();
|
|
630
629
|
switch (I = null, L.type) {
|
|
631
630
|
case 0:
|
|
632
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
631
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(m(f, L.value || ""));
|
|
633
632
|
break;
|
|
634
633
|
case 5:
|
|
635
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
634
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(u(f, L.value || ""));
|
|
636
635
|
break;
|
|
637
636
|
case 4:
|
|
638
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
637
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(i(f, L.value || ""));
|
|
639
638
|
break;
|
|
640
639
|
case 6:
|
|
641
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
640
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(g(f, L.value || ""));
|
|
642
641
|
break;
|
|
643
642
|
case 7: {
|
|
644
|
-
const X =
|
|
643
|
+
const X = C(f);
|
|
645
644
|
b.items.push(X.node), I = X.nextConsumeToken || null;
|
|
646
645
|
break;
|
|
647
646
|
}
|
|
648
647
|
}
|
|
649
648
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
650
|
-
const v = h.currentType === 1 ? h.lastOffset : f.currentOffset(),
|
|
651
|
-
return a(b, v,
|
|
649
|
+
const v = h.currentType === 1 ? h.lastOffset : f.currentOffset(), k = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, v, k), b;
|
|
652
651
|
}
|
|
653
|
-
function
|
|
652
|
+
function D(f, h, S, c) {
|
|
654
653
|
const b = f.context();
|
|
655
654
|
let I = c.items.length === 0;
|
|
656
655
|
const v = l(1, h, S);
|
|
657
656
|
v.cases = [], v.cases.push(c);
|
|
658
657
|
do {
|
|
659
|
-
const
|
|
660
|
-
I || (I =
|
|
658
|
+
const k = F(f);
|
|
659
|
+
I || (I = k.items.length === 0), v.cases.push(k);
|
|
661
660
|
} while (b.currentType !== 13);
|
|
662
661
|
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
663
662
|
}
|
|
664
663
|
function A(f) {
|
|
665
664
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
666
|
-
return h.currentType === 13 ? b :
|
|
665
|
+
return h.currentType === 13 ? b : D(f, S, c, b);
|
|
667
666
|
}
|
|
668
|
-
function
|
|
667
|
+
function w(f) {
|
|
669
668
|
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
670
669
|
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;
|
|
671
670
|
}
|
|
672
|
-
return { parse:
|
|
671
|
+
return { parse: w };
|
|
673
672
|
}
|
|
674
|
-
function
|
|
673
|
+
function Re(e) {
|
|
675
674
|
if (e.type === 13)
|
|
676
675
|
return "EOF";
|
|
677
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -686,9 +685,9 @@ function rs(e, t = {}) {
|
|
|
686
685
|
}
|
|
687
686
|
function un(e, t) {
|
|
688
687
|
for (let n = 0; n < e.length; n++)
|
|
689
|
-
|
|
688
|
+
$t(e[n], t);
|
|
690
689
|
}
|
|
691
|
-
function
|
|
690
|
+
function $t(e, t) {
|
|
692
691
|
switch (e.type) {
|
|
693
692
|
case 1:
|
|
694
693
|
un(e.cases, t), t.helper(
|
|
@@ -700,7 +699,7 @@ function Jt(e, t) {
|
|
|
700
699
|
un(e.items, t);
|
|
701
700
|
break;
|
|
702
701
|
case 6: {
|
|
703
|
-
|
|
702
|
+
$t(e.key, t), t.helper(
|
|
704
703
|
"linked"
|
|
705
704
|
/* HelperNameMap.LINKED */
|
|
706
705
|
), t.helper(
|
|
@@ -734,15 +733,15 @@ function ss(e, t = {}) {
|
|
|
734
733
|
n.helper(
|
|
735
734
|
"normalize"
|
|
736
735
|
/* HelperNameMap.NORMALIZE */
|
|
737
|
-
), e.body &&
|
|
736
|
+
), e.body && $t(e.body, n);
|
|
738
737
|
const r = n.context();
|
|
739
738
|
e.helpers = Array.from(r.helpers);
|
|
740
739
|
}
|
|
741
740
|
function os(e) {
|
|
742
741
|
const t = e.body;
|
|
743
|
-
return t.type === 2 ?
|
|
742
|
+
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
744
743
|
}
|
|
745
|
-
function
|
|
744
|
+
function mn(e) {
|
|
746
745
|
if (e.items.length === 1) {
|
|
747
746
|
const t = e.items[0];
|
|
748
747
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -755,7 +754,7 @@ function dn(e) {
|
|
|
755
754
|
t.push(r.value);
|
|
756
755
|
}
|
|
757
756
|
if (t.length === e.items.length) {
|
|
758
|
-
e.static =
|
|
757
|
+
e.static = Jt(t);
|
|
759
758
|
for (let n = 0; n < e.items.length; n++) {
|
|
760
759
|
const r = e.items[n];
|
|
761
760
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -811,7 +810,7 @@ function Qe(e) {
|
|
|
811
810
|
delete e.type;
|
|
812
811
|
}
|
|
813
812
|
function as(e, t) {
|
|
814
|
-
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1,
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, m = {
|
|
815
814
|
filename: n,
|
|
816
815
|
code: "",
|
|
817
816
|
column: 1,
|
|
@@ -822,34 +821,34 @@ function as(e, t) {
|
|
|
822
821
|
needIndent: l,
|
|
823
822
|
indentLevel: 0
|
|
824
823
|
};
|
|
825
|
-
a && e.loc && (
|
|
826
|
-
const u = () =>
|
|
827
|
-
function i(A,
|
|
828
|
-
|
|
824
|
+
a && e.loc && (m.source = e.loc.source);
|
|
825
|
+
const u = () => m;
|
|
826
|
+
function i(A, w) {
|
|
827
|
+
m.code += A;
|
|
829
828
|
}
|
|
830
|
-
function g(A,
|
|
831
|
-
const f =
|
|
829
|
+
function g(A, w = !0) {
|
|
830
|
+
const f = w ? r : "";
|
|
832
831
|
i(l ? f + " ".repeat(A) : f);
|
|
833
832
|
}
|
|
834
833
|
function y(A = !0) {
|
|
835
|
-
const
|
|
836
|
-
A && g(
|
|
834
|
+
const w = ++m.indentLevel;
|
|
835
|
+
A && g(w);
|
|
837
836
|
}
|
|
838
837
|
function T(A = !0) {
|
|
839
|
-
const
|
|
840
|
-
A && g(
|
|
838
|
+
const w = --m.indentLevel;
|
|
839
|
+
A && g(w);
|
|
841
840
|
}
|
|
842
|
-
function
|
|
843
|
-
g(
|
|
841
|
+
function C() {
|
|
842
|
+
g(m.indentLevel);
|
|
844
843
|
}
|
|
845
844
|
return {
|
|
846
845
|
context: u,
|
|
847
846
|
push: i,
|
|
848
847
|
indent: y,
|
|
849
848
|
deindent: T,
|
|
850
|
-
newline:
|
|
849
|
+
newline: C,
|
|
851
850
|
helper: (A) => `_${A}`,
|
|
852
|
-
needIndent: () =>
|
|
851
|
+
needIndent: () => m.needIndent
|
|
853
852
|
};
|
|
854
853
|
}
|
|
855
854
|
function ls(e, t) {
|
|
@@ -933,16 +932,16 @@ function st(e, t) {
|
|
|
933
932
|
break;
|
|
934
933
|
}
|
|
935
934
|
}
|
|
936
|
-
const
|
|
935
|
+
const ms = (e, t = {}) => {
|
|
937
936
|
const n = Z(t.mode) ? t.mode : "normal", r = Z(t.filename) ? t.filename : "message.intl";
|
|
938
937
|
t.sourceMap;
|
|
939
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
940
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
939
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], u = as(e, {
|
|
941
940
|
filename: r,
|
|
942
941
|
breakLineCode: l,
|
|
943
942
|
needIndent: a
|
|
944
943
|
});
|
|
945
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${Jt(m.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
946
945
|
const { code: i, map: g } = u.context();
|
|
947
946
|
return {
|
|
948
947
|
ast: e,
|
|
@@ -951,9 +950,9 @@ const ds = (e, t = {}) => {
|
|
|
951
950
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
952
951
|
};
|
|
953
952
|
};
|
|
954
|
-
function
|
|
953
|
+
function ds(e, t = {}) {
|
|
955
954
|
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
956
|
-
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n),
|
|
955
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ms(u, n));
|
|
957
956
|
}
|
|
958
957
|
var fs = { env: { NODE_ENV: "production" } };
|
|
959
958
|
function _s() {
|
|
@@ -971,37 +970,37 @@ function vs(e, t) {
|
|
|
971
970
|
);
|
|
972
971
|
if (Kt(n) === 1) {
|
|
973
972
|
const a = gs(n);
|
|
974
|
-
return e.plural(a.reduce((
|
|
975
|
-
...
|
|
976
|
-
|
|
973
|
+
return e.plural(a.reduce((m, u) => [
|
|
974
|
+
...m,
|
|
975
|
+
dn(e, u)
|
|
977
976
|
], []));
|
|
978
977
|
} else
|
|
979
|
-
return
|
|
978
|
+
return dn(e, n);
|
|
980
979
|
}
|
|
981
980
|
const ps = ["b", "body"];
|
|
982
981
|
function hs(e) {
|
|
983
|
-
return
|
|
982
|
+
return Ge(e, ps);
|
|
984
983
|
}
|
|
985
984
|
const bs = ["c", "cases"];
|
|
986
985
|
function gs(e) {
|
|
987
|
-
return
|
|
986
|
+
return Ge(e, bs, []);
|
|
988
987
|
}
|
|
989
|
-
function
|
|
988
|
+
function dn(e, t) {
|
|
990
989
|
const n = ys(t);
|
|
991
990
|
if (n != null)
|
|
992
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
993
992
|
{
|
|
994
|
-
const r =
|
|
993
|
+
const r = Cs(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
995
994
|
return e.normalize(r);
|
|
996
995
|
}
|
|
997
996
|
}
|
|
998
997
|
const Is = ["s", "static"];
|
|
999
998
|
function ys(e) {
|
|
1000
|
-
return
|
|
999
|
+
return Ge(e, Is);
|
|
1001
1000
|
}
|
|
1002
1001
|
const Es = ["i", "items"];
|
|
1003
|
-
function
|
|
1004
|
-
return
|
|
1002
|
+
function Cs(e) {
|
|
1003
|
+
return Ge(e, Es, []);
|
|
1005
1004
|
}
|
|
1006
1005
|
function Pt(e, t) {
|
|
1007
1006
|
const n = Kt(t);
|
|
@@ -1038,24 +1037,24 @@ function Pt(e, t) {
|
|
|
1038
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1039
1038
|
}
|
|
1040
1039
|
}
|
|
1041
|
-
const
|
|
1040
|
+
const Ns = ["t", "type"];
|
|
1042
1041
|
function Kt(e) {
|
|
1043
|
-
return
|
|
1042
|
+
return Ge(e, Ns);
|
|
1044
1043
|
}
|
|
1045
1044
|
const Ts = ["v", "value"];
|
|
1046
1045
|
function _t(e, t) {
|
|
1047
|
-
const n =
|
|
1046
|
+
const n = Ge(e, Ts);
|
|
1048
1047
|
if (n)
|
|
1049
1048
|
return n;
|
|
1050
1049
|
throw it(t);
|
|
1051
1050
|
}
|
|
1052
1051
|
const Os = ["m", "modifier"];
|
|
1053
1052
|
function Ss(e) {
|
|
1054
|
-
return
|
|
1053
|
+
return Ge(e, Os);
|
|
1055
1054
|
}
|
|
1056
1055
|
const Ls = ["k", "key"];
|
|
1057
1056
|
function As(e) {
|
|
1058
|
-
const t =
|
|
1057
|
+
const t = Ge(e, Ls);
|
|
1059
1058
|
if (t)
|
|
1060
1059
|
return t;
|
|
1061
1060
|
throw it(
|
|
@@ -1063,7 +1062,7 @@ function As(e) {
|
|
|
1063
1062
|
/* NodeTypes.Linked */
|
|
1064
1063
|
);
|
|
1065
1064
|
}
|
|
1066
|
-
function
|
|
1065
|
+
function Ge(e, t, n) {
|
|
1067
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1068
1067
|
const l = t[r];
|
|
1069
1068
|
if (Le(e, l) && e[l] != null)
|
|
@@ -1074,31 +1073,31 @@ function We(e, t, n) {
|
|
|
1074
1073
|
function it(e) {
|
|
1075
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1076
1075
|
}
|
|
1077
|
-
const
|
|
1076
|
+
const Rs = (e) => e;
|
|
1078
1077
|
let vt = oe();
|
|
1079
1078
|
function ot(e) {
|
|
1080
1079
|
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1081
1080
|
}
|
|
1082
|
-
function
|
|
1081
|
+
function ks(e, t = {}) {
|
|
1083
1082
|
let n = !1;
|
|
1084
1083
|
const r = t.onError || Yr;
|
|
1085
1084
|
return t.onError = (l) => {
|
|
1086
1085
|
n = !0, r(l);
|
|
1087
|
-
}, { ...
|
|
1086
|
+
}, { ...ds(e, t), detectError: n };
|
|
1088
1087
|
}
|
|
1089
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1090
1089
|
function Ms(e, t) {
|
|
1091
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1092
1091
|
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1093
|
-
const r = (t.onCacheKey ||
|
|
1092
|
+
const r = (t.onCacheKey || Rs)(e), l = vt[r];
|
|
1094
1093
|
if (l)
|
|
1095
1094
|
return l;
|
|
1096
|
-
const { ast: a, detectError:
|
|
1095
|
+
const { ast: a, detectError: m } = ks(e, {
|
|
1097
1096
|
...t,
|
|
1098
1097
|
location: fs.env.NODE_ENV !== "production",
|
|
1099
1098
|
jit: !0
|
|
1100
1099
|
}), u = At(a);
|
|
1101
|
-
return
|
|
1100
|
+
return m ? u : vt[r] = u;
|
|
1102
1101
|
} else {
|
|
1103
1102
|
const n = e.cacheKey;
|
|
1104
1103
|
if (n) {
|
|
@@ -1109,10 +1108,10 @@ function Ms(e, t) {
|
|
|
1109
1108
|
}
|
|
1110
1109
|
}
|
|
1111
1110
|
let ct = null;
|
|
1112
|
-
function
|
|
1111
|
+
function Ds(e) {
|
|
1113
1112
|
ct = e;
|
|
1114
1113
|
}
|
|
1115
|
-
function
|
|
1114
|
+
function ws(e, t, n) {
|
|
1116
1115
|
ct && ct.emit("i18n:init", {
|
|
1117
1116
|
timestamp: Date.now(),
|
|
1118
1117
|
i18n: e,
|
|
@@ -1139,18 +1138,18 @@ function Ue(e) {
|
|
|
1139
1138
|
function zt(e, t) {
|
|
1140
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1141
1140
|
}
|
|
1142
|
-
let
|
|
1141
|
+
let Rt;
|
|
1143
1142
|
function fn(e) {
|
|
1144
1143
|
if (Z(e))
|
|
1145
1144
|
return e;
|
|
1146
|
-
if (
|
|
1147
|
-
if (e.resolvedOnce &&
|
|
1148
|
-
return
|
|
1145
|
+
if (de(e)) {
|
|
1146
|
+
if (e.resolvedOnce && Rt != null)
|
|
1147
|
+
return Rt;
|
|
1149
1148
|
if (e.constructor.name === "Function") {
|
|
1150
1149
|
const t = e();
|
|
1151
|
-
if (
|
|
1150
|
+
if (Vr(t))
|
|
1152
1151
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1153
|
-
return
|
|
1152
|
+
return Rt = t;
|
|
1154
1153
|
} else
|
|
1155
1154
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1156
1155
|
} else
|
|
@@ -1163,16 +1162,16 @@ function Us(e, t, n) {
|
|
|
1163
1162
|
])];
|
|
1164
1163
|
}
|
|
1165
1164
|
function Hn(e, t, n) {
|
|
1166
|
-
const r = Z(n) ? n :
|
|
1165
|
+
const r = Z(n) ? n : Ct, l = e;
|
|
1167
1166
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1168
1167
|
let a = l.__localeChainCache.get(r);
|
|
1169
1168
|
if (!a) {
|
|
1170
1169
|
a = [];
|
|
1171
|
-
let
|
|
1172
|
-
for (; be(
|
|
1173
|
-
|
|
1170
|
+
let m = [n];
|
|
1171
|
+
for (; be(m); )
|
|
1172
|
+
m = _n(a, m, t);
|
|
1174
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1175
|
-
|
|
1174
|
+
m = Z(u) ? [u] : u, be(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1176
1175
|
}
|
|
1177
1176
|
return a;
|
|
1178
1177
|
}
|
|
@@ -1180,20 +1179,20 @@ function _n(e, t, n) {
|
|
|
1180
1179
|
let r = !0;
|
|
1181
1180
|
for (let l = 0; l < t.length && pe(r); l++) {
|
|
1182
1181
|
const a = t[l];
|
|
1183
|
-
Z(a) && (r =
|
|
1182
|
+
Z(a) && (r = xs(e, t[l], n));
|
|
1184
1183
|
}
|
|
1185
1184
|
return r;
|
|
1186
1185
|
}
|
|
1187
|
-
function
|
|
1186
|
+
function xs(e, t, n) {
|
|
1188
1187
|
let r;
|
|
1189
1188
|
const l = t.split("-");
|
|
1190
1189
|
do {
|
|
1191
1190
|
const a = l.join("-");
|
|
1192
|
-
r =
|
|
1191
|
+
r = Vs(e, a, n), l.splice(-1, 1);
|
|
1193
1192
|
} while (l.length && r === !0);
|
|
1194
1193
|
return r;
|
|
1195
1194
|
}
|
|
1196
|
-
function
|
|
1195
|
+
function Vs(e, t, n) {
|
|
1197
1196
|
let r = !1;
|
|
1198
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1199
1198
|
r = t[t.length - 1] !== "!";
|
|
@@ -1363,9 +1362,9 @@ Ze[
|
|
|
1363
1362
|
/* Actions.APPEND */
|
|
1364
1363
|
]
|
|
1365
1364
|
};
|
|
1366
|
-
const
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1365
|
+
const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
+
function Gs(e) {
|
|
1367
|
+
return Ws.test(e);
|
|
1369
1368
|
}
|
|
1370
1369
|
function Zs(e) {
|
|
1371
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -1398,59 +1397,59 @@ function Bs(e) {
|
|
|
1398
1397
|
}
|
|
1399
1398
|
function Ys(e) {
|
|
1400
1399
|
const t = e.trim();
|
|
1401
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Zs(t) : "*" + t;
|
|
1402
1401
|
}
|
|
1403
1402
|
function Xs(e) {
|
|
1404
1403
|
const t = [];
|
|
1405
|
-
let n = -1, r = 0, l = 0, a,
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, m, u, i, g, y, T;
|
|
1405
|
+
const C = [];
|
|
1406
|
+
C[
|
|
1408
1407
|
0
|
|
1409
1408
|
/* Actions.APPEND */
|
|
1410
1409
|
] = () => {
|
|
1411
|
-
|
|
1412
|
-
},
|
|
1410
|
+
m === void 0 ? m = u : m += u;
|
|
1411
|
+
}, C[
|
|
1413
1412
|
1
|
|
1414
1413
|
/* Actions.PUSH */
|
|
1415
1414
|
] = () => {
|
|
1416
|
-
|
|
1417
|
-
},
|
|
1415
|
+
m !== void 0 && (t.push(m), m = void 0);
|
|
1416
|
+
}, C[
|
|
1418
1417
|
2
|
|
1419
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1420
1419
|
] = () => {
|
|
1421
|
-
|
|
1420
|
+
C[
|
|
1422
1421
|
0
|
|
1423
1422
|
/* Actions.APPEND */
|
|
1424
1423
|
](), l++;
|
|
1425
|
-
},
|
|
1424
|
+
}, C[
|
|
1426
1425
|
3
|
|
1427
1426
|
/* Actions.PUSH_SUB_PATH */
|
|
1428
1427
|
] = () => {
|
|
1429
1428
|
if (l > 0)
|
|
1430
|
-
l--, r = 4,
|
|
1429
|
+
l--, r = 4, C[
|
|
1431
1430
|
0
|
|
1432
1431
|
/* Actions.APPEND */
|
|
1433
1432
|
]();
|
|
1434
1433
|
else {
|
|
1435
|
-
if (l = 0,
|
|
1434
|
+
if (l = 0, m === void 0 || (m = Ys(m), m === !1))
|
|
1436
1435
|
return !1;
|
|
1437
|
-
|
|
1436
|
+
C[
|
|
1438
1437
|
1
|
|
1439
1438
|
/* Actions.PUSH */
|
|
1440
1439
|
]();
|
|
1441
1440
|
}
|
|
1442
1441
|
};
|
|
1443
1442
|
function F() {
|
|
1444
|
-
const
|
|
1445
|
-
if (r === 5 &&
|
|
1446
|
-
return n++, u = "\\" +
|
|
1443
|
+
const D = e[n + 1];
|
|
1444
|
+
if (r === 5 && D === "'" || r === 6 && D === '"')
|
|
1445
|
+
return n++, u = "\\" + D, C[
|
|
1447
1446
|
0
|
|
1448
1447
|
/* Actions.APPEND */
|
|
1449
1448
|
](), !0;
|
|
1450
1449
|
}
|
|
1451
1450
|
for (; r !== null; )
|
|
1452
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1453
|
-
if (i = Bs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y =
|
|
1452
|
+
if (i = Bs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = C[g[1]], y && (u = a, y() === !1))))
|
|
1454
1453
|
return;
|
|
1455
1454
|
if (r === 7)
|
|
1456
1455
|
return t;
|
|
@@ -1460,7 +1459,7 @@ const vn = /* @__PURE__ */ new Map();
|
|
|
1460
1459
|
function Hs(e, t) {
|
|
1461
1460
|
return te(e) ? e[t] : null;
|
|
1462
1461
|
}
|
|
1463
|
-
function
|
|
1462
|
+
function Js(e, t) {
|
|
1464
1463
|
if (!te(e))
|
|
1465
1464
|
return null;
|
|
1466
1465
|
let n = vn.get(t);
|
|
@@ -1469,14 +1468,14 @@ function $s(e, t) {
|
|
|
1469
1468
|
const r = n.length;
|
|
1470
1469
|
let l = e, a = 0;
|
|
1471
1470
|
for (; a < r; ) {
|
|
1472
|
-
const
|
|
1473
|
-
if (
|
|
1471
|
+
const m = l[n[a]];
|
|
1472
|
+
if (m === void 0 || de(l))
|
|
1474
1473
|
return null;
|
|
1475
|
-
l =
|
|
1474
|
+
l = m, a++;
|
|
1476
1475
|
}
|
|
1477
1476
|
return l;
|
|
1478
1477
|
}
|
|
1479
|
-
const
|
|
1478
|
+
const $s = "10.0.5", Ot = -1, Ct = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1480
1479
|
function Ks() {
|
|
1481
1480
|
return {
|
|
1482
1481
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1484,13 +1483,13 @@ function Ks() {
|
|
|
1484
1483
|
capitalize: (e, t) => t === "text" && Z(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1485
1484
|
};
|
|
1486
1485
|
}
|
|
1487
|
-
let
|
|
1486
|
+
let Jn;
|
|
1488
1487
|
function zs(e) {
|
|
1489
|
-
|
|
1488
|
+
Jn = e;
|
|
1490
1489
|
}
|
|
1491
|
-
let
|
|
1490
|
+
let $n;
|
|
1492
1491
|
function Qs(e) {
|
|
1493
|
-
|
|
1492
|
+
$n = e;
|
|
1494
1493
|
}
|
|
1495
1494
|
let Kn;
|
|
1496
1495
|
function qs(e) {
|
|
@@ -1506,22 +1505,22 @@ const bn = (e) => {
|
|
|
1506
1505
|
}, no = () => Qn;
|
|
1507
1506
|
let gn = 0;
|
|
1508
1507
|
function ro(e = {}) {
|
|
1509
|
-
const t =
|
|
1508
|
+
const t = de(e.onWarn) ? e.onWarn : Gr, n = Z(e.version) ? e.version : $s, r = Z(e.locale) || de(e.locale) ? e.locale : Ct, l = de(r) ? Ct : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Ks()), y = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, C = pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, w = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : Jn, b = de(e.messageResolver) ? e.messageResolver : $n || Hs, I = de(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, L = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), V = te(k.__meta) ? k.__meta : {};
|
|
1510
1509
|
gn++;
|
|
1511
|
-
const
|
|
1510
|
+
const d = {
|
|
1512
1511
|
version: n,
|
|
1513
1512
|
cid: gn,
|
|
1514
1513
|
locale: r,
|
|
1515
1514
|
fallbackLocale: a,
|
|
1516
|
-
messages:
|
|
1515
|
+
messages: m,
|
|
1517
1516
|
modifiers: g,
|
|
1518
1517
|
pluralRules: y,
|
|
1519
1518
|
missing: T,
|
|
1520
|
-
missingWarn:
|
|
1519
|
+
missingWarn: C,
|
|
1521
1520
|
fallbackWarn: F,
|
|
1522
|
-
fallbackFormat:
|
|
1521
|
+
fallbackFormat: D,
|
|
1523
1522
|
unresolving: A,
|
|
1524
|
-
postTranslation:
|
|
1523
|
+
postTranslation: w,
|
|
1525
1524
|
processor: f,
|
|
1526
1525
|
warnHtmlMessage: h,
|
|
1527
1526
|
escapeParameter: S,
|
|
@@ -1530,13 +1529,13 @@ function ro(e = {}) {
|
|
|
1530
1529
|
localeFallbacker: I,
|
|
1531
1530
|
fallbackContext: v,
|
|
1532
1531
|
onWarn: t,
|
|
1533
|
-
__meta:
|
|
1532
|
+
__meta: V
|
|
1534
1533
|
};
|
|
1535
|
-
return
|
|
1534
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = L, d.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && ws(d, n, V), d;
|
|
1536
1535
|
}
|
|
1537
|
-
const
|
|
1536
|
+
const kt = (e) => ({ [e]: oe() });
|
|
1538
1537
|
function Qt(e, t, n, r, l) {
|
|
1539
|
-
const { missing: a, onWarn:
|
|
1538
|
+
const { missing: a, onWarn: m } = e;
|
|
1540
1539
|
if (a !== null) {
|
|
1541
1540
|
const u = a(e, n, t, l);
|
|
1542
1541
|
return Z(u) ? u : t;
|
|
@@ -1560,24 +1559,24 @@ function oo(e, t) {
|
|
|
1560
1559
|
return !1;
|
|
1561
1560
|
}
|
|
1562
1561
|
function In(e, ...t) {
|
|
1563
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), C = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1564
1563
|
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1565
|
-
const F = !!y.part,
|
|
1564
|
+
const F = !!y.part, D = zt(e, y), A = m(
|
|
1566
1565
|
e,
|
|
1567
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1568
1567
|
l,
|
|
1569
|
-
|
|
1568
|
+
D
|
|
1570
1569
|
);
|
|
1571
1570
|
if (!Z(i) || i === "")
|
|
1572
|
-
return new Intl.DateTimeFormat(
|
|
1573
|
-
let
|
|
1571
|
+
return new Intl.DateTimeFormat(D, T).format(g);
|
|
1572
|
+
let w = {}, f, h = null;
|
|
1574
1573
|
const S = "datetime format";
|
|
1575
|
-
for (let I = 0; I < A.length && (f = A[I],
|
|
1576
|
-
Qt(e, i, f,
|
|
1574
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1575
|
+
Qt(e, i, f, C, S);
|
|
1577
1576
|
if (!ee(h) || !Z(f))
|
|
1578
1577
|
return r ? Ot : i;
|
|
1579
1578
|
let c = `${f}__${i}`;
|
|
1580
|
-
|
|
1579
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1581
1580
|
let b = u.get(c);
|
|
1582
1581
|
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1583
1582
|
}
|
|
@@ -1605,7 +1604,7 @@ const qn = [
|
|
|
1605
1604
|
];
|
|
1606
1605
|
function jt(...e) {
|
|
1607
1606
|
const [t, n, r, l] = e, a = oe();
|
|
1608
|
-
let
|
|
1607
|
+
let m = oe(), u;
|
|
1609
1608
|
if (Z(t)) {
|
|
1610
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1611
1610
|
if (!i)
|
|
@@ -1626,8 +1625,8 @@ function jt(...e) {
|
|
|
1626
1625
|
else
|
|
1627
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1628
1627
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1629
|
-
qn.includes(i) ?
|
|
1630
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1628
|
+
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1629
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1631
1630
|
}
|
|
1632
1631
|
function yn(e, t, n) {
|
|
1633
1632
|
const r = e;
|
|
@@ -1637,24 +1636,24 @@ function yn(e, t, n) {
|
|
|
1637
1636
|
}
|
|
1638
1637
|
}
|
|
1639
1638
|
function En(e, ...t) {
|
|
1640
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), C = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1641
1640
|
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1642
|
-
const F = !!y.part,
|
|
1641
|
+
const F = !!y.part, D = zt(e, y), A = m(
|
|
1643
1642
|
e,
|
|
1644
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1645
1644
|
l,
|
|
1646
|
-
|
|
1645
|
+
D
|
|
1647
1646
|
);
|
|
1648
1647
|
if (!Z(i) || i === "")
|
|
1649
|
-
return new Intl.NumberFormat(
|
|
1650
|
-
let
|
|
1648
|
+
return new Intl.NumberFormat(D, T).format(g);
|
|
1649
|
+
let w = {}, f, h = null;
|
|
1651
1650
|
const S = "number format";
|
|
1652
|
-
for (let I = 0; I < A.length && (f = A[I],
|
|
1653
|
-
Qt(e, i, f,
|
|
1651
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1652
|
+
Qt(e, i, f, C, S);
|
|
1654
1653
|
if (!ee(h) || !Z(f))
|
|
1655
1654
|
return r ? Ot : i;
|
|
1656
1655
|
let c = `${f}__${i}`;
|
|
1657
|
-
|
|
1656
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1658
1657
|
let b = u.get(c);
|
|
1659
1658
|
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1660
1659
|
}
|
|
@@ -1682,23 +1681,23 @@ const er = [
|
|
|
1682
1681
|
];
|
|
1683
1682
|
function Ut(...e) {
|
|
1684
1683
|
const [t, n, r, l] = e, a = oe();
|
|
1685
|
-
let
|
|
1684
|
+
let m = oe();
|
|
1686
1685
|
if (!ge(t))
|
|
1687
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1688
1687
|
const u = t;
|
|
1689
1688
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1690
|
-
er.includes(i) ?
|
|
1691
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1689
|
+
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1690
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1692
1691
|
}
|
|
1693
|
-
function
|
|
1692
|
+
function Cn(e, t, n) {
|
|
1694
1693
|
const r = e;
|
|
1695
1694
|
for (const l in n) {
|
|
1696
1695
|
const a = `${t}__${l}`;
|
|
1697
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1698
1697
|
}
|
|
1699
1698
|
}
|
|
1700
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" :
|
|
1701
|
-
function
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : Jt(e), uo = Wr;
|
|
1700
|
+
function Nn(e, t) {
|
|
1702
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1703
1702
|
}
|
|
1704
1703
|
function mo(e) {
|
|
@@ -1709,14 +1708,14 @@ function fo(e, t) {
|
|
|
1709
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1710
1709
|
}
|
|
1711
1710
|
function _o(e = {}) {
|
|
1712
|
-
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) &&
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Nn, l = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? Nn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1713
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1714
1713
|
const g = (f) => i[f];
|
|
1715
1714
|
function y(f, h) {
|
|
1716
|
-
const S =
|
|
1715
|
+
const S = de(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1717
1716
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1718
1717
|
}
|
|
1719
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : ao,
|
|
1718
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : ao, C = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : uo, D = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, w = {
|
|
1720
1719
|
list: u,
|
|
1721
1720
|
named: g,
|
|
1722
1721
|
plural: a,
|
|
@@ -1724,49 +1723,49 @@ function _o(e = {}) {
|
|
|
1724
1723
|
const [S, c] = h;
|
|
1725
1724
|
let b = "text", I = "";
|
|
1726
1725
|
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)(
|
|
1726
|
+
const v = y(f, !0)(w), k = (
|
|
1728
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1729
1728
|
b === "vnode" && be(v) && I ? v[0] : v
|
|
1730
1729
|
);
|
|
1731
|
-
return I ? T(I)(
|
|
1730
|
+
return I ? T(I)(k, b) : k;
|
|
1732
1731
|
},
|
|
1733
1732
|
message: y,
|
|
1734
|
-
type:
|
|
1733
|
+
type: D,
|
|
1735
1734
|
interpolate: F,
|
|
1736
|
-
normalize:
|
|
1737
|
-
values: Ie(oe(),
|
|
1735
|
+
normalize: C,
|
|
1736
|
+
values: Ie(oe(), m, i)
|
|
1738
1737
|
};
|
|
1739
|
-
return
|
|
1738
|
+
return w;
|
|
1740
1739
|
}
|
|
1741
|
-
const Tn = () => "", Te = (e) =>
|
|
1740
|
+
const Tn = () => "", Te = (e) => de(e);
|
|
1742
1741
|
function On(e, ...t) {
|
|
1743
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale:
|
|
1744
|
-
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = xt(...t), y = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, D = Z(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || D != null && (Z(D) || de(D)), w = zt(e, g);
|
|
1743
|
+
C && vo(g);
|
|
1745
1744
|
let [f, h, S] = F ? [
|
|
1746
1745
|
i,
|
|
1747
|
-
|
|
1748
|
-
u[
|
|
1749
|
-
] : tr(e, i,
|
|
1750
|
-
if (!F && !(Z(c) || ot(c) || Te(c)) && A && (c =
|
|
1746
|
+
w,
|
|
1747
|
+
u[w] || oe()
|
|
1748
|
+
] : tr(e, i, w, m, T, y), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && A && (c = D, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1751
1750
|
return l ? Ot : i;
|
|
1752
1751
|
let I = !1;
|
|
1753
1752
|
const v = () => {
|
|
1754
1753
|
I = !0;
|
|
1755
|
-
},
|
|
1754
|
+
}, k = Te(c) ? c : nr(e, i, h, c, b, v);
|
|
1756
1755
|
if (I)
|
|
1757
1756
|
return c;
|
|
1758
|
-
const L = bo(e, h, S, g), X = _o(L),
|
|
1757
|
+
const L = bo(e, h, S, g), X = _o(L), V = po(e, k, X), d = r ? r(V, i) : V;
|
|
1759
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1760
|
-
const
|
|
1759
|
+
const N = {
|
|
1761
1760
|
timestamp: Date.now(),
|
|
1762
1761
|
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1763
1762
|
locale: h || (Te(c) ? c.locale : ""),
|
|
1764
1763
|
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1765
|
-
message:
|
|
1764
|
+
message: d
|
|
1766
1765
|
};
|
|
1767
|
-
|
|
1766
|
+
N.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(N);
|
|
1768
1767
|
}
|
|
1769
|
-
return
|
|
1768
|
+
return d;
|
|
1770
1769
|
}
|
|
1771
1770
|
function vo(e) {
|
|
1772
1771
|
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
@@ -1774,66 +1773,66 @@ function vo(e) {
|
|
|
1774
1773
|
});
|
|
1775
1774
|
}
|
|
1776
1775
|
function tr(e, t, n, r, l, a) {
|
|
1777
|
-
const { messages:
|
|
1778
|
-
let T = oe(),
|
|
1779
|
-
const
|
|
1780
|
-
for (let A = 0; A < y.length && (
|
|
1781
|
-
if (!oo(
|
|
1782
|
-
const
|
|
1776
|
+
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1777
|
+
let T = oe(), C, F = null;
|
|
1778
|
+
const D = "translate";
|
|
1779
|
+
for (let A = 0; A < y.length && (C = y[A], T = m[C] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); A++)
|
|
1780
|
+
if (!oo(C, y)) {
|
|
1781
|
+
const w = Qt(
|
|
1783
1782
|
e,
|
|
1784
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1785
1784
|
t,
|
|
1786
|
-
|
|
1785
|
+
C,
|
|
1787
1786
|
a,
|
|
1788
|
-
|
|
1787
|
+
D
|
|
1789
1788
|
);
|
|
1790
|
-
|
|
1789
|
+
w !== t && (F = w);
|
|
1791
1790
|
}
|
|
1792
|
-
return [F,
|
|
1791
|
+
return [F, C, T];
|
|
1793
1792
|
}
|
|
1794
1793
|
function nr(e, t, n, r, l, a) {
|
|
1795
|
-
const { messageCompiler:
|
|
1794
|
+
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
1796
1795
|
if (Te(r)) {
|
|
1797
1796
|
const g = r;
|
|
1798
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1799
1798
|
}
|
|
1800
|
-
if (
|
|
1799
|
+
if (m == null) {
|
|
1801
1800
|
const g = () => r;
|
|
1802
1801
|
return g.locale = n, g.key = t, g;
|
|
1803
1802
|
}
|
|
1804
|
-
const i =
|
|
1803
|
+
const i = m(r, ho(e, n, l, r, u, a));
|
|
1805
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1806
1805
|
}
|
|
1807
1806
|
function po(e, t, n) {
|
|
1808
1807
|
return t(n);
|
|
1809
1808
|
}
|
|
1810
|
-
function
|
|
1809
|
+
function xt(...e) {
|
|
1811
1810
|
const [t, n, r] = e, l = oe();
|
|
1812
1811
|
if (!Z(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1813
1812
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1814
1813
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1815
|
-
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Nt(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];
|
|
1816
1815
|
}
|
|
1817
1816
|
function ho(e, t, n, r, l, a) {
|
|
1818
1817
|
return {
|
|
1819
1818
|
locale: t,
|
|
1820
1819
|
key: n,
|
|
1821
1820
|
warnHtmlMessage: l,
|
|
1822
|
-
onError: (
|
|
1823
|
-
throw a && a(
|
|
1821
|
+
onError: (m) => {
|
|
1822
|
+
throw a && a(m), m;
|
|
1824
1823
|
},
|
|
1825
|
-
onCacheKey: (
|
|
1824
|
+
onCacheKey: (m) => Fr(t, n, m)
|
|
1826
1825
|
};
|
|
1827
1826
|
}
|
|
1828
1827
|
function bo(e, t, n, r) {
|
|
1829
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, C = {
|
|
1830
1829
|
locale: t,
|
|
1831
1830
|
modifiers: l,
|
|
1832
1831
|
pluralRules: a,
|
|
1833
|
-
messages: (F,
|
|
1834
|
-
let A =
|
|
1835
|
-
if (A == null && (y ||
|
|
1836
|
-
const [, ,
|
|
1832
|
+
messages: (F, D) => {
|
|
1833
|
+
let A = m(n, F);
|
|
1834
|
+
if (A == null && (y || D)) {
|
|
1835
|
+
const [, , w] = tr(
|
|
1837
1836
|
y || e,
|
|
1838
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1839
1838
|
F,
|
|
@@ -1842,21 +1841,21 @@ function bo(e, t, n, r) {
|
|
|
1842
1841
|
i,
|
|
1843
1842
|
g
|
|
1844
1843
|
);
|
|
1845
|
-
A =
|
|
1844
|
+
A = m(w, F);
|
|
1846
1845
|
}
|
|
1847
1846
|
if (Z(A) || ot(A)) {
|
|
1848
|
-
let
|
|
1847
|
+
let w = !1;
|
|
1849
1848
|
const h = nr(e, F, t, A, F, () => {
|
|
1850
|
-
|
|
1849
|
+
w = !0;
|
|
1851
1850
|
});
|
|
1852
|
-
return
|
|
1851
|
+
return w ? Tn : h;
|
|
1853
1852
|
} else return Te(A) ? A : Tn;
|
|
1854
1853
|
}
|
|
1855
1854
|
};
|
|
1856
|
-
return e.processor && (
|
|
1855
|
+
return e.processor && (C.processor = e.processor), r.list && (C.list = r.list), r.named && (C.named = r.named), ge(r.plural) && (C.pluralIndex = r.plural), C;
|
|
1857
1856
|
}
|
|
1858
1857
|
_s();
|
|
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" } };
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0dcf34bf-35e9-4dae-8ccf-892369630284", 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_0dcf34bf-35e9-4dae-8ccf-892369630284", 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: "1820", ACTIONS_ORCHESTRATION_ID: "4bd7c73e-8305-41f6-a276-e2590d9656f2.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_0dcf34bf-35e9-4dae-8ccf-892369630284", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12103", 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: "36561577888", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "cb4bf18d69d1b797fddad2efa5f71a72b4f76892", 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/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA3MDMyOTIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDY4MTA5MiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImM5ZjkwZmM3LTlkYmItNWNmZC05M2VhLTgyZjE0NzU2YTYyMSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDY4MDc5Miwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA5MzgzNDY1OTU1XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwicmVmX3Byb3RlY3RlZFwiOlwidHJ1ZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2NTYxNTc3ODg4XCIsXCJydW5fbnVtYmVyXCI6XCIxNzNcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJjYjRiZjE4ZDY5ZDFiNzk3ZmRkYWQyZWZhNWY3MWE3MmI0Zjc2ODkyXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYWluXCIsXCJ3b3JrZmxvd19zaGFcIjpcImNiNGJmMThkNjlkMWI3OTdmZGRhZDJlZmE1ZjcxYTcyYjRmNzY4OTJcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoX2lkIjoiNGJkN2M3M2UtODMwNS00MWY2LWEyNzYtZTI1OTBkOTY1NmYyLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI0YmQ3YzczZS04MzA1LTQxZjYtYTI3Ni1lMjU5MGQ5NjU2ZjIiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNjU2MTU3Nzg4OCIsInJ1bl9udW1iZXIiOiIxNzMiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTY5ODAwIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6NGJkN2M3M2UtODMwNS00MWY2LWEyNzYtZTI1OTBkOTY1NmYyOmM5ZjkwZmM3LTlkYmItNWNmZC05M2VhLTgyZjE0NzU2YTYyMSBBY3Rpb25zLlJ1bm5lcjo0YmQ3YzczZS04MzA1LTQxZjYtYTI3Ni1lMjU5MGQ5NjU2ZjI6YzlmOTBmYzctOWRiYi01Y2ZkLTkzZWEtODJmMTQ3NTZhNjIxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjRiZDdjNzNlLTgzMDUtNDFmNi1hMjc2LWUyNTkwZDk2NTZmMjpjOWY5MGZjNy05ZGJiLTVjZmQtOTNlYS04MmYxNDc1NmE2MjEgZ2VuZXJhdGVfaWRfdG9rZW46NGJkN2M3M2UtODMwNS00MWY2LWEyNzYtZTI1OTBkOTY1NmYyOmM5ZjkwZmM3LTlkYmItNWNmZC05M2VhLTgyZjE0NzU2YTYyMSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImNiNGJmMThkNjlkMWI3OTdmZGRhZDJlZmE1ZjcxYTcyYjRmNzY4OTIiLCJ0cnVzdF90aWVyIjoiMSJ9.TdrFP8pv8cE3hzq3BdT1LDKwaRv0aN2iHhwpPdW3e1x9znGtXlxAwr-gqfaXqGIu_UKYTQ92hO6alGWvLC0KLaMKTjTHTQeJASF4Ss7fZxv0PArblomRy9_w9UXXKPBlTzel-YPBDBmdX0xloGBExsEUoNaC4Z5KSuGk3jwypqQD1SNvcaIgGq3_JDmqfrpJOHrNL_dgWGChG4xli7tCPtfHN-iNmT8m5C4Ew9Z_NtRm06bcsUwIlLi3dMkQvQ1EMNnyRCclqz-6m47hlX5WdBWMLWbB4Ut2wBZlOPOxW0TvIlhLJkm1YiTGwCaKkqdNQrKJWrvqeKI7f1AGSQUK8g", 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_f3428f6e-7e96-4942-a7ab-b1d6a3ba247f", INVOCATION_ID: "a9231dc7ae3f449a90c58825dbeeebff", 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: "173", 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 1000169800", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", 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.5", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "cb4bf18d69d1b797fddad2efa5f71a72b4f76892", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", 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_0dcf34bf-35e9-4dae-8ccf-892369630284", 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/219//idtoken/4bd7c73e-8305-41f6-a276-e2590d9656f2/c9f90fc7-9dbb-5cfd-93ea-82f14756a621?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0dcf34bf-35e9-4dae-8ccf-892369630284", 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_0dcf34bf-35e9-4dae-8ccf-892369630284", 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_0dcf34bf-35e9-4dae-8ccf-892369630284", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1860
1859
|
const Io = "10.0.5";
|
|
1861
1860
|
function yo() {
|
|
1862
1861
|
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);
|
|
@@ -1877,45 +1876,45 @@ const at = {
|
|
|
1877
1876
|
function ut(e, ...t) {
|
|
1878
1877
|
return Tt(e, null, void 0);
|
|
1879
1878
|
}
|
|
1880
|
-
const
|
|
1881
|
-
function
|
|
1879
|
+
const Vt = /* @__PURE__ */ Je("__translateVNode"), Wt = /* @__PURE__ */ Je("__datetimeParts"), Gt = /* @__PURE__ */ Je("__numberParts"), Eo = Je("__setPluralRules"), rr = /* @__PURE__ */ Je("__injectWithOption"), Zt = /* @__PURE__ */ Je("__dispose");
|
|
1880
|
+
function mt(e) {
|
|
1882
1881
|
if (!te(e))
|
|
1883
1882
|
return e;
|
|
1884
1883
|
for (const t in e)
|
|
1885
1884
|
if (Le(e, t))
|
|
1886
1885
|
if (!t.includes("."))
|
|
1887
|
-
te(e[t]) &&
|
|
1886
|
+
te(e[t]) && mt(e[t]);
|
|
1888
1887
|
else {
|
|
1889
1888
|
const n = t.split("."), r = n.length - 1;
|
|
1890
1889
|
let l = e, a = !1;
|
|
1891
|
-
for (let
|
|
1892
|
-
if (n[
|
|
1890
|
+
for (let m = 0; m < r; m++) {
|
|
1891
|
+
if (n[m] in l || (l[n[m]] = oe()), !te(l[n[m]])) {
|
|
1893
1892
|
a = !0;
|
|
1894
1893
|
break;
|
|
1895
1894
|
}
|
|
1896
|
-
l = l[n[
|
|
1895
|
+
l = l[n[m]];
|
|
1897
1896
|
}
|
|
1898
|
-
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) &&
|
|
1897
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && mt(l[n[r]]);
|
|
1899
1898
|
}
|
|
1900
1899
|
return e;
|
|
1901
1900
|
}
|
|
1902
1901
|
function sr(e, t) {
|
|
1903
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t,
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1904
1903
|
if (be(r) && r.forEach((u) => {
|
|
1905
1904
|
if ("locale" in u && "resource" in u) {
|
|
1906
1905
|
const { locale: i, resource: g } = u;
|
|
1907
|
-
i ? (
|
|
1906
|
+
i ? (m[i] = m[i] || oe(), yt(g, m[i])) : yt(g, m);
|
|
1908
1907
|
} else
|
|
1909
|
-
Z(u) && yt(JSON.parse(u),
|
|
1908
|
+
Z(u) && yt(JSON.parse(u), m);
|
|
1910
1909
|
}), l == null && a)
|
|
1911
|
-
for (const u in
|
|
1912
|
-
Le(
|
|
1913
|
-
return
|
|
1910
|
+
for (const u in m)
|
|
1911
|
+
Le(m, u) && mt(m[u]);
|
|
1912
|
+
return m;
|
|
1914
1913
|
}
|
|
1915
1914
|
function or(e) {
|
|
1916
1915
|
return e.type;
|
|
1917
1916
|
}
|
|
1918
|
-
function
|
|
1917
|
+
function Co(e, t, n) {
|
|
1919
1918
|
let r = te(t.messages) ? t.messages : oe();
|
|
1920
1919
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1921
1920
|
messages: r,
|
|
@@ -1928,14 +1927,14 @@ function No(e, t, n) {
|
|
|
1928
1927
|
{
|
|
1929
1928
|
if (te(t.datetimeFormats)) {
|
|
1930
1929
|
const a = Object.keys(t.datetimeFormats);
|
|
1931
|
-
a.length && a.forEach((
|
|
1932
|
-
e.mergeDateTimeFormat(
|
|
1930
|
+
a.length && a.forEach((m) => {
|
|
1931
|
+
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1933
1932
|
});
|
|
1934
1933
|
}
|
|
1935
1934
|
if (te(t.numberFormats)) {
|
|
1936
1935
|
const a = Object.keys(t.numberFormats);
|
|
1937
|
-
a.length && a.forEach((
|
|
1938
|
-
e.mergeNumberFormat(
|
|
1936
|
+
a.length && a.forEach((m) => {
|
|
1937
|
+
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
1939
1938
|
});
|
|
1940
1939
|
}
|
|
1941
1940
|
}
|
|
@@ -1943,9 +1942,9 @@ function No(e, t, n) {
|
|
|
1943
1942
|
function Sn(e) {
|
|
1944
1943
|
return ue(fr, null, e, 0);
|
|
1945
1944
|
}
|
|
1946
|
-
const Ln = "__INTLIFY_META__", An = () => [],
|
|
1947
|
-
let
|
|
1948
|
-
function
|
|
1945
|
+
const Ln = "__INTLIFY_META__", An = () => [], No = () => !1;
|
|
1946
|
+
let Rn = 0;
|
|
1947
|
+
function kn(e) {
|
|
1949
1948
|
return (t, n, r, l) => e(n, r, Yt() || void 0, l);
|
|
1950
1949
|
}
|
|
1951
1950
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
@@ -1954,16 +1953,16 @@ const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
1954
1953
|
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1955
1954
|
};
|
|
1956
1955
|
function Oo(e = {}) {
|
|
1957
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt :
|
|
1958
|
-
let
|
|
1956
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
1957
|
+
let m = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1959
1958
|
const u = a(
|
|
1960
1959
|
// prettier-ignore
|
|
1961
|
-
t &&
|
|
1960
|
+
t && m ? t.locale.value : Z(e.locale) ? e.locale : Ct
|
|
1962
1961
|
), i = a(
|
|
1963
1962
|
// prettier-ignore
|
|
1964
|
-
t &&
|
|
1963
|
+
t && m ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1965
1964
|
), 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
|
|
1965
|
+
let C = 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, D = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, w = de(e.missing) ? e.missing : null, f = de(e.missing) ? kn(e.missing) : null, h = de(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1967
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1968
1967
|
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1969
1968
|
v = (() => {
|
|
@@ -1976,7 +1975,7 @@ function Oo(e = {}) {
|
|
|
1976
1975
|
modifiers: b,
|
|
1977
1976
|
pluralRules: I,
|
|
1978
1977
|
missing: f === null ? void 0 : f,
|
|
1979
|
-
missingWarn:
|
|
1978
|
+
missingWarn: C,
|
|
1980
1979
|
fallbackWarn: F,
|
|
1981
1980
|
fallbackFormat: A,
|
|
1982
1981
|
unresolving: !0,
|
|
@@ -2005,25 +2004,25 @@ function Oo(e = {}) {
|
|
|
2005
2004
|
set: (p) => {
|
|
2006
2005
|
u.value = p, v.locale = u.value;
|
|
2007
2006
|
}
|
|
2008
|
-
}),
|
|
2007
|
+
}), V = z({
|
|
2009
2008
|
get: () => i.value,
|
|
2010
2009
|
set: (p) => {
|
|
2011
2010
|
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2012
2011
|
}
|
|
2013
|
-
}),
|
|
2014
|
-
function
|
|
2015
|
-
return
|
|
2012
|
+
}), d = z(() => g.value), N = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
|
+
function x() {
|
|
2014
|
+
return de(h) ? h : null;
|
|
2016
2015
|
}
|
|
2017
2016
|
function j(p) {
|
|
2018
2017
|
h = p, v.postTranslation = p;
|
|
2019
2018
|
}
|
|
2020
|
-
function
|
|
2021
|
-
return
|
|
2019
|
+
function G() {
|
|
2020
|
+
return w;
|
|
2022
2021
|
}
|
|
2023
|
-
function
|
|
2024
|
-
p !== null && (f =
|
|
2022
|
+
function W(p) {
|
|
2023
|
+
p !== null && (f = kn(p)), w = p, v.missing = f;
|
|
2025
2024
|
}
|
|
2026
|
-
const B = (p, E,
|
|
2025
|
+
const B = (p, E, J, le, Ye, dt) => {
|
|
2027
2026
|
L();
|
|
2028
2027
|
let ze;
|
|
2029
2028
|
try {
|
|
@@ -2031,24 +2030,24 @@ function Oo(e = {}) {
|
|
|
2031
2030
|
} finally {
|
|
2032
2031
|
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2033
2032
|
}
|
|
2034
|
-
if (
|
|
2035
|
-
ge(ze) && ze === Ot ||
|
|
2033
|
+
if (J !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
+
ge(ze) && ze === Ot || J === "translate exists" && !ze) {
|
|
2036
2035
|
const [cr, Ea] = E();
|
|
2037
|
-
return t &&
|
|
2036
|
+
return t && D ? le(t) : Ye(cr);
|
|
2038
2037
|
} else {
|
|
2039
|
-
if (
|
|
2038
|
+
if (dt(ze))
|
|
2040
2039
|
return ze;
|
|
2041
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2042
2041
|
}
|
|
2043
2042
|
};
|
|
2044
2043
|
function Y(...p) {
|
|
2045
|
-
return B((E) => Reflect.apply(On, null, [E, ...p]), () =>
|
|
2044
|
+
return B((E) => Reflect.apply(On, null, [E, ...p]), () => xt(...p), "translate", (E) => Reflect.apply(E.t, E, [...p]), (E) => E, (E) => Z(E));
|
|
2046
2045
|
}
|
|
2047
2046
|
function ne(...p) {
|
|
2048
|
-
const [E,
|
|
2047
|
+
const [E, J, le] = p;
|
|
2049
2048
|
if (le && !te(le))
|
|
2050
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2051
|
-
return Y(E,
|
|
2050
|
+
return Y(E, J, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2052
2051
|
}
|
|
2053
2052
|
function Q(...p) {
|
|
2054
2053
|
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => Reflect.apply(E.d, E, [...p]), () => pn, (E) => Z(E));
|
|
@@ -2066,68 +2065,68 @@ function Oo(e = {}) {
|
|
|
2066
2065
|
};
|
|
2067
2066
|
function q(...p) {
|
|
2068
2067
|
return B((E) => {
|
|
2069
|
-
let
|
|
2068
|
+
let J;
|
|
2070
2069
|
const le = E;
|
|
2071
2070
|
try {
|
|
2072
|
-
le.processor = fe,
|
|
2071
|
+
le.processor = fe, J = Reflect.apply(On, null, [le, ...p]);
|
|
2073
2072
|
} finally {
|
|
2074
2073
|
le.processor = null;
|
|
2075
2074
|
}
|
|
2076
|
-
return
|
|
2077
|
-
}, () =>
|
|
2075
|
+
return J;
|
|
2076
|
+
}, () => xt(...p), "translate", (E) => E[Vt](...p), (E) => [Sn(E)], (E) => be(E));
|
|
2078
2077
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => E[
|
|
2078
|
+
function we(...p) {
|
|
2079
|
+
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => E[Gt](...p), An, (E) => Z(E) || be(E));
|
|
2081
2080
|
}
|
|
2082
2081
|
function K(...p) {
|
|
2083
|
-
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => E[
|
|
2082
|
+
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => E[Wt](...p), An, (E) => Z(E) || be(E));
|
|
2084
2083
|
}
|
|
2085
2084
|
function ve(p) {
|
|
2086
2085
|
I = p, v.pluralRules = I;
|
|
2087
2086
|
}
|
|
2088
|
-
function
|
|
2087
|
+
function $e(p, E) {
|
|
2089
2088
|
return B(() => {
|
|
2090
2089
|
if (!p)
|
|
2091
2090
|
return !1;
|
|
2092
|
-
const
|
|
2091
|
+
const J = Z(E) ? E : u.value, le = Fe(J), Ye = v.messageResolver(le, p);
|
|
2093
2092
|
return ot(Ye) || Te(Ye) || Z(Ye);
|
|
2094
|
-
}, () => [p], "translate exists", (
|
|
2093
|
+
}, () => [p], "translate exists", (J) => Reflect.apply(J.te, J, [p, E]), No, (J) => pe(J));
|
|
2095
2094
|
}
|
|
2096
2095
|
function Ke(p) {
|
|
2097
2096
|
let E = null;
|
|
2098
|
-
const
|
|
2099
|
-
for (let le = 0; le <
|
|
2100
|
-
const Ye = g.value[
|
|
2101
|
-
if (
|
|
2102
|
-
E =
|
|
2097
|
+
const J = Hn(v, i.value, u.value);
|
|
2098
|
+
for (let le = 0; le < J.length; le++) {
|
|
2099
|
+
const Ye = g.value[J[le]] || {}, dt = v.messageResolver(Ye, p);
|
|
2100
|
+
if (dt != null) {
|
|
2101
|
+
E = dt;
|
|
2103
2102
|
break;
|
|
2104
2103
|
}
|
|
2105
2104
|
}
|
|
2106
2105
|
return E;
|
|
2107
2106
|
}
|
|
2108
|
-
function
|
|
2107
|
+
function xe(p) {
|
|
2109
2108
|
const E = Ke(p);
|
|
2110
2109
|
return E ?? (t ? t.tm(p) || {} : {});
|
|
2111
2110
|
}
|
|
2112
2111
|
function Fe(p) {
|
|
2113
2112
|
return g.value[p] || {};
|
|
2114
2113
|
}
|
|
2115
|
-
function
|
|
2114
|
+
function Ne(p, E) {
|
|
2116
2115
|
if (l) {
|
|
2117
|
-
const
|
|
2118
|
-
for (const le in
|
|
2119
|
-
Le(
|
|
2120
|
-
E =
|
|
2116
|
+
const J = { [p]: E };
|
|
2117
|
+
for (const le in J)
|
|
2118
|
+
Le(J, le) && mt(J[le]);
|
|
2119
|
+
E = J[p];
|
|
2121
2120
|
}
|
|
2122
2121
|
g.value[p] = E, v.messages = g.value;
|
|
2123
2122
|
}
|
|
2124
2123
|
function Be(p, E) {
|
|
2125
2124
|
g.value[p] = g.value[p] || {};
|
|
2126
|
-
const
|
|
2125
|
+
const J = { [p]: E };
|
|
2127
2126
|
if (l)
|
|
2128
|
-
for (const le in
|
|
2129
|
-
Le(
|
|
2130
|
-
E =
|
|
2127
|
+
for (const le in J)
|
|
2128
|
+
Le(J, le) && mt(J[le]);
|
|
2129
|
+
E = J[p], yt(E, g.value[p]), v.messages = g.value;
|
|
2131
2130
|
}
|
|
2132
2131
|
function O(p) {
|
|
2133
2132
|
return y.value[p] || {};
|
|
@@ -2141,31 +2140,31 @@ function Oo(e = {}) {
|
|
|
2141
2140
|
function _(p) {
|
|
2142
2141
|
return T.value[p] || {};
|
|
2143
2142
|
}
|
|
2144
|
-
function
|
|
2145
|
-
T.value[p] = E, v.numberFormats = T.value,
|
|
2143
|
+
function R(p, E) {
|
|
2144
|
+
T.value[p] = E, v.numberFormats = T.value, Cn(v, p, E);
|
|
2146
2145
|
}
|
|
2147
2146
|
function M(p, E) {
|
|
2148
|
-
T.value[p] = Ie(T.value[p] || {}, E), v.numberFormats = T.value,
|
|
2147
|
+
T.value[p] = Ie(T.value[p] || {}, E), v.numberFormats = T.value, Cn(v, p, E);
|
|
2149
2148
|
}
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
}),
|
|
2153
|
-
|
|
2149
|
+
Rn++, t && on && (Dt(t.locale, (p) => {
|
|
2150
|
+
m && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2151
|
+
}), Dt(t.fallbackLocale, (p) => {
|
|
2152
|
+
m && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2154
2153
|
}));
|
|
2155
2154
|
const P = {
|
|
2156
|
-
id:
|
|
2155
|
+
id: Rn,
|
|
2157
2156
|
locale: X,
|
|
2158
|
-
fallbackLocale:
|
|
2157
|
+
fallbackLocale: V,
|
|
2159
2158
|
get inheritLocale() {
|
|
2160
|
-
return
|
|
2159
|
+
return m;
|
|
2161
2160
|
},
|
|
2162
2161
|
set inheritLocale(p) {
|
|
2163
|
-
|
|
2162
|
+
m = p, p && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(v, u.value, i.value));
|
|
2164
2163
|
},
|
|
2165
2164
|
get availableLocales() {
|
|
2166
2165
|
return Object.keys(g.value).sort();
|
|
2167
2166
|
},
|
|
2168
|
-
messages:
|
|
2167
|
+
messages: d,
|
|
2169
2168
|
get modifiers() {
|
|
2170
2169
|
return b;
|
|
2171
2170
|
},
|
|
@@ -2176,10 +2175,10 @@ function Oo(e = {}) {
|
|
|
2176
2175
|
return r;
|
|
2177
2176
|
},
|
|
2178
2177
|
get missingWarn() {
|
|
2179
|
-
return
|
|
2178
|
+
return C;
|
|
2180
2179
|
},
|
|
2181
2180
|
set missingWarn(p) {
|
|
2182
|
-
|
|
2181
|
+
C = p, v.missingWarn = C;
|
|
2183
2182
|
},
|
|
2184
2183
|
get fallbackWarn() {
|
|
2185
2184
|
return F;
|
|
@@ -2188,10 +2187,10 @@ function Oo(e = {}) {
|
|
|
2188
2187
|
F = p, v.fallbackWarn = F;
|
|
2189
2188
|
},
|
|
2190
2189
|
get fallbackRoot() {
|
|
2191
|
-
return
|
|
2190
|
+
return D;
|
|
2192
2191
|
},
|
|
2193
2192
|
set fallbackRoot(p) {
|
|
2194
|
-
|
|
2193
|
+
D = p;
|
|
2195
2194
|
},
|
|
2196
2195
|
get fallbackFormat() {
|
|
2197
2196
|
return A;
|
|
@@ -2213,15 +2212,15 @@ function Oo(e = {}) {
|
|
|
2213
2212
|
},
|
|
2214
2213
|
t: Y,
|
|
2215
2214
|
getLocaleMessage: Fe,
|
|
2216
|
-
setLocaleMessage:
|
|
2215
|
+
setLocaleMessage: Ne,
|
|
2217
2216
|
mergeLocaleMessage: Be,
|
|
2218
|
-
getPostTranslationHandler:
|
|
2217
|
+
getPostTranslationHandler: x,
|
|
2219
2218
|
setPostTranslationHandler: j,
|
|
2220
|
-
getMissingHandler:
|
|
2221
|
-
setMissingHandler:
|
|
2219
|
+
getMissingHandler: G,
|
|
2220
|
+
setMissingHandler: W,
|
|
2222
2221
|
[Eo]: ve
|
|
2223
2222
|
};
|
|
2224
|
-
return P.datetimeFormats =
|
|
2223
|
+
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te = $e, P.tm = xe, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[Vt] = q, P[Wt] = K, P[Gt] = we, P;
|
|
2225
2224
|
}
|
|
2226
2225
|
const qt = {
|
|
2227
2226
|
tag: {
|
|
@@ -2245,14 +2244,14 @@ function So({ slots: e }, t) {
|
|
|
2245
2244
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, l) => [
|
|
2246
2245
|
...r,
|
|
2247
2246
|
// prettier-ignore
|
|
2248
|
-
...l.type ===
|
|
2247
|
+
...l.type === ke ? l.children : [l]
|
|
2249
2248
|
], []) : t.reduce((n, r) => {
|
|
2250
2249
|
const l = e[r];
|
|
2251
2250
|
return l && (n[r] = l()), n;
|
|
2252
2251
|
}, oe());
|
|
2253
2252
|
}
|
|
2254
2253
|
function ar() {
|
|
2255
|
-
return
|
|
2254
|
+
return ke;
|
|
2256
2255
|
}
|
|
2257
2256
|
Ie({
|
|
2258
2257
|
keypath: {
|
|
@@ -2270,17 +2269,17 @@ function Lo(e) {
|
|
|
2270
2269
|
function lr(e, t, n, r) {
|
|
2271
2270
|
const { slots: l, attrs: a } = t;
|
|
2272
2271
|
return () => {
|
|
2273
|
-
const
|
|
2272
|
+
const m = { part: !0 };
|
|
2274
2273
|
let u = oe();
|
|
2275
|
-
e.locale && (
|
|
2276
|
-
const i = r(e.value,
|
|
2277
|
-
let g = [
|
|
2278
|
-
be(i) ? g = i.map((
|
|
2279
|
-
const
|
|
2280
|
-
return Lo(A) && (A[0].key = `${
|
|
2274
|
+
e.locale && (m.locale = e.locale), Z(e.format) ? m.key = e.format : te(e.format) && (Z(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((C, F) => n.includes(F) ? Ie(oe(), C, { [F]: e.format[F] }) : C, oe()));
|
|
2275
|
+
const i = r(e.value, m, u);
|
|
2276
|
+
let g = [m.key];
|
|
2277
|
+
be(i) ? g = i.map((C, F) => {
|
|
2278
|
+
const D = l[C.type], A = D ? D({ [C.type]: C.value, index: F, parts: i }) : [C.value];
|
|
2279
|
+
return Lo(A) && (A[0].key = `${C.type}-${F}`), A;
|
|
2281
2280
|
}) : Z(i) && (g = [i]);
|
|
2282
2281
|
const y = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2283
|
-
return
|
|
2282
|
+
return Wn(T, y, g);
|
|
2284
2283
|
};
|
|
2285
2284
|
}
|
|
2286
2285
|
Ie({
|
|
@@ -2301,50 +2300,50 @@ Ie({
|
|
|
2301
2300
|
type: [String, Object]
|
|
2302
2301
|
}
|
|
2303
2302
|
}, qt);
|
|
2304
|
-
const Ao = /* @__PURE__ */
|
|
2303
|
+
const Ao = /* @__PURE__ */ Je("global-vue-i18n");
|
|
2305
2304
|
function St(e = {}) {
|
|
2306
2305
|
const t = Yt();
|
|
2307
2306
|
if (t == null)
|
|
2308
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2309
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2310
2309
|
throw ut(at.NOT_INSTALLED);
|
|
2311
|
-
const n =
|
|
2310
|
+
const n = Ro(t), r = Mo(n), l = or(t), a = ko(e, l);
|
|
2312
2311
|
if (a === "global")
|
|
2313
|
-
return
|
|
2312
|
+
return Co(r, e, l), r;
|
|
2314
2313
|
if (a === "parent") {
|
|
2315
|
-
let i =
|
|
2314
|
+
let i = Do(n, t, e.__useComponent);
|
|
2316
2315
|
return i == null && (i = r), i;
|
|
2317
2316
|
}
|
|
2318
|
-
const
|
|
2319
|
-
let u =
|
|
2317
|
+
const m = n;
|
|
2318
|
+
let u = m.__getInstance(t);
|
|
2320
2319
|
if (u == null) {
|
|
2321
2320
|
const i = Ie({}, e);
|
|
2322
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i),
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), m.__composerExtend && (u[Zt] = m.__composerExtend(u)), Fo(m, t, u), m.__setInstance(t, u);
|
|
2323
2322
|
}
|
|
2324
2323
|
return u;
|
|
2325
2324
|
}
|
|
2326
|
-
function
|
|
2325
|
+
function Ro(e) {
|
|
2327
2326
|
const t = ur(e.isCE ? Ao : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2328
2327
|
if (!t)
|
|
2329
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2330
2329
|
return t;
|
|
2331
2330
|
}
|
|
2332
|
-
function
|
|
2333
|
-
return
|
|
2331
|
+
function ko(e, t) {
|
|
2332
|
+
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2334
2333
|
}
|
|
2335
2334
|
function Mo(e) {
|
|
2336
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2337
2336
|
}
|
|
2338
|
-
function
|
|
2337
|
+
function Do(e, t, n = !1) {
|
|
2339
2338
|
let r = null;
|
|
2340
2339
|
const l = t.root;
|
|
2341
|
-
let a =
|
|
2340
|
+
let a = wo(t, n);
|
|
2342
2341
|
for (; a != null; ) {
|
|
2343
|
-
const
|
|
2342
|
+
const m = e;
|
|
2344
2343
|
if (e.mode === "composition")
|
|
2345
|
-
r =
|
|
2344
|
+
r = m.__getInstance(a);
|
|
2346
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2347
|
-
const u =
|
|
2346
|
+
const u = m.__getInstance(a);
|
|
2348
2347
|
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2349
2348
|
}
|
|
2350
2349
|
if (r != null || l === a)
|
|
@@ -2353,12 +2352,12 @@ function wo(e, t, n = !1) {
|
|
|
2353
2352
|
}
|
|
2354
2353
|
return r;
|
|
2355
2354
|
}
|
|
2356
|
-
function
|
|
2355
|
+
function wo(e, t = !1) {
|
|
2357
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2358
2357
|
}
|
|
2359
2358
|
function Fo(e, t, n) {
|
|
2360
|
-
|
|
2361
|
-
}, t),
|
|
2359
|
+
Vn(() => {
|
|
2360
|
+
}, t), dr(() => {
|
|
2362
2361
|
const r = n;
|
|
2363
2362
|
e.__deleteInstance(t);
|
|
2364
2363
|
const l = r[Zt];
|
|
@@ -2367,11 +2366,11 @@ function Fo(e, t, n) {
|
|
|
2367
2366
|
}
|
|
2368
2367
|
yo();
|
|
2369
2368
|
zs(Ms);
|
|
2370
|
-
Qs(
|
|
2369
|
+
Qs(Js);
|
|
2371
2370
|
qs(Hn);
|
|
2372
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2373
2372
|
const e = Xe();
|
|
2374
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
e.__INTLIFY__ = !0, Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2375
2374
|
}
|
|
2376
2375
|
const pt = /* @__PURE__ */ Ae({
|
|
2377
2376
|
__name: "InheritPermissionTooltip",
|
|
@@ -2384,19 +2383,19 @@ const pt = /* @__PURE__ */ Ae({
|
|
|
2384
2383
|
setup(e) {
|
|
2385
2384
|
const { t } = St();
|
|
2386
2385
|
return (n, r) => {
|
|
2387
|
-
const l =
|
|
2388
|
-
return
|
|
2386
|
+
const l = De("FmIcon"), a = De("FmTooltip");
|
|
2387
|
+
return $(), Ce(a, {
|
|
2389
2388
|
variant: "plain",
|
|
2390
2389
|
placement: "right",
|
|
2391
2390
|
"z-index": 50
|
|
2392
2391
|
}, {
|
|
2393
|
-
content:
|
|
2392
|
+
content: me(() => [
|
|
2394
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2395
|
-
(
|
|
2396
|
-
ae("div", null, "- " + Oe(
|
|
2394
|
+
($(!0), ie(ke, null, Ee(e.item.setNames, (m) => ($(), ie("div", { key: m }, [
|
|
2395
|
+
ae("div", null, "- " + Oe(m), 1)
|
|
2397
2396
|
]))), 128))
|
|
2398
2397
|
]),
|
|
2399
|
-
default:
|
|
2398
|
+
default: me(() => [
|
|
2400
2399
|
ue(l, {
|
|
2401
2400
|
name: "admin_panel_settings",
|
|
2402
2401
|
size: "sm",
|
|
@@ -2413,67 +2412,67 @@ function Mn(e, t, n) {
|
|
|
2413
2412
|
if (r.length === 0) return;
|
|
2414
2413
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2415
2414
|
if (l < 0) return;
|
|
2416
|
-
const a = new Set(e[l].actions),
|
|
2417
|
-
|
|
2415
|
+
const a = new Set(e[l].actions), m = r.every((u) => a.has(u));
|
|
2416
|
+
m && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2418
2417
|
...e[l],
|
|
2419
2418
|
actions: Array.from(a)
|
|
2420
|
-
}) : !
|
|
2419
|
+
}) : !m && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2421
2420
|
...e[l],
|
|
2422
2421
|
actions: Array.from(a)
|
|
2423
2422
|
});
|
|
2424
2423
|
}
|
|
2425
|
-
const
|
|
2424
|
+
const Dn = Object.values(Sr), Po = {
|
|
2426
2425
|
read: "View",
|
|
2427
2426
|
create: "Duplicate",
|
|
2428
2427
|
update: "Edit"
|
|
2429
2428
|
};
|
|
2430
2429
|
function jo(e, t, n, r) {
|
|
2431
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2432
2431
|
var j;
|
|
2433
|
-
const
|
|
2434
|
-
for (const
|
|
2435
|
-
const
|
|
2436
|
-
if (!
|
|
2437
|
-
const B =
|
|
2438
|
-
if (n.value.includes(
|
|
2432
|
+
const d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
|
+
for (const G of t.value) {
|
|
2434
|
+
const W = G.category;
|
|
2435
|
+
if (!W) continue;
|
|
2436
|
+
const B = G.subject;
|
|
2437
|
+
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = m(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2439
2438
|
continue;
|
|
2440
|
-
|
|
2439
|
+
d.has(W) || d.set(W, []);
|
|
2441
2440
|
const Y = U.get(B) ?? 0;
|
|
2442
|
-
U.set(B, Y + 1),
|
|
2443
|
-
label: l(`permissionSet.permissionLabels.${B}`,
|
|
2441
|
+
U.set(B, Y + 1), d.get(W).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${B}`, G.label),
|
|
2444
2443
|
value: B,
|
|
2445
2444
|
optionKey: `${B}::${Y}`
|
|
2446
|
-
}),
|
|
2445
|
+
}), N.has(B) || N.set(B, G);
|
|
2447
2446
|
}
|
|
2448
|
-
return [...
|
|
2449
|
-
const B =
|
|
2450
|
-
return B === -1 && Y === -1 ?
|
|
2451
|
-
}).map((
|
|
2452
|
-
const
|
|
2453
|
-
for (const K of
|
|
2454
|
-
const ve =
|
|
2447
|
+
return [...d.keys()].sort((G, W) => {
|
|
2448
|
+
const B = Dn.indexOf(G), Y = Dn.indexOf(W);
|
|
2449
|
+
return B === -1 && Y === -1 ? G.localeCompare(W) : B === -1 ? 1 : Y === -1 ? -1 : B - Y;
|
|
2450
|
+
}).map((G) => {
|
|
2451
|
+
const W = d.get(G), B = l(`permissionSet.categoryLabels.${G}`, G), Y = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const K of W) {
|
|
2453
|
+
const ve = N.get(K.value);
|
|
2455
2454
|
ve && Y.set(K.value, ve.actions);
|
|
2456
2455
|
}
|
|
2457
|
-
const ne =
|
|
2456
|
+
const ne = W.some((K) => {
|
|
2458
2457
|
const ve = Y.get(K.value);
|
|
2459
2458
|
return ve && ve.length > 1;
|
|
2460
2459
|
}), Q = ne ? [
|
|
2461
2460
|
...new Set(
|
|
2462
|
-
|
|
2461
|
+
W.flatMap((K) => Y.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2463
2462
|
)
|
|
2464
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2465
2464
|
for (const K of e.value)
|
|
2466
|
-
|
|
2465
|
+
W.some((ve) => ve.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2467
2466
|
const ce = ne ? e.value.filter(
|
|
2468
|
-
(K) =>
|
|
2469
|
-
).map((K) => K.subject) : e.value.filter((K) =>
|
|
2467
|
+
(K) => W.some((ve) => ve.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((ve) => ve.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2470
2469
|
var ve;
|
|
2471
|
-
return (ve =
|
|
2472
|
-
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2470
|
+
return (ve = N.get(K.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2471
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), we = q.has("manage");
|
|
2473
2472
|
return {
|
|
2474
|
-
category:
|
|
2473
|
+
category: G,
|
|
2475
2474
|
label: B,
|
|
2476
|
-
options:
|
|
2475
|
+
options: W,
|
|
2477
2476
|
selectedSubjects: ce,
|
|
2478
2477
|
isMultiAction: ne,
|
|
2479
2478
|
actionColumns: Q,
|
|
@@ -2481,21 +2480,21 @@ function jo(e, t, n, r) {
|
|
|
2481
2480
|
selectedActionsMap: _e,
|
|
2482
2481
|
coverSubject: fe,
|
|
2483
2482
|
coverSelectedActions: q,
|
|
2484
|
-
coverCoversAll:
|
|
2483
|
+
coverCoversAll: we
|
|
2485
2484
|
};
|
|
2486
2485
|
});
|
|
2487
2486
|
});
|
|
2488
|
-
function i(
|
|
2489
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2487
|
+
function i(d, N) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === d), x = (U == null ? void 0 : U.options) ?? [], j = new Set(x.map((Q) => Q.value)), G = new Set(N), W = /* @__PURE__ */ new Map();
|
|
2490
2489
|
for (const Q of e.value)
|
|
2491
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2492
|
-
const B = U != null && U.coverSubject ?
|
|
2490
|
+
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
+
const B = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2493
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2494
2493
|
const fe = se.subject;
|
|
2495
|
-
if (!
|
|
2494
|
+
if (!G.has(fe) || Y.has(fe)) return [];
|
|
2496
2495
|
Y.add(fe);
|
|
2497
2496
|
let q;
|
|
2498
|
-
return
|
|
2497
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = B), [
|
|
2499
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2500
2499
|
];
|
|
2501
2500
|
}
|
|
@@ -2505,69 +2504,69 @@ function jo(e, t, n, r) {
|
|
|
2505
2504
|
...ne
|
|
2506
2505
|
]);
|
|
2507
2506
|
}
|
|
2508
|
-
function g(
|
|
2509
|
-
return F(
|
|
2507
|
+
function g(d, N) {
|
|
2508
|
+
return F(d, N) || c(d, N);
|
|
2510
2509
|
}
|
|
2511
|
-
function y(
|
|
2512
|
-
return
|
|
2510
|
+
function y(d) {
|
|
2511
|
+
return d.options.length > 0 && d.options.every((N) => g(d, N.value));
|
|
2513
2512
|
}
|
|
2514
|
-
function T(
|
|
2515
|
-
return
|
|
2516
|
-
(
|
|
2513
|
+
function T(d) {
|
|
2514
|
+
return d.options.length === 0 || y(d) ? !1 : d.options.some(
|
|
2515
|
+
(N) => g(d, N.value) || D(d, N.value).length > 0
|
|
2517
2516
|
);
|
|
2518
2517
|
}
|
|
2519
|
-
function
|
|
2520
|
-
const
|
|
2521
|
-
if (y(
|
|
2518
|
+
function C(d) {
|
|
2519
|
+
const N = new Set(d.options.map((x) => x.value)), U = e.value.filter((x) => !N.has(x.subject));
|
|
2520
|
+
if (y(d))
|
|
2522
2521
|
r("update:model-value", U);
|
|
2523
2522
|
else {
|
|
2524
|
-
const
|
|
2523
|
+
const x = /* @__PURE__ */ new Map();
|
|
2525
2524
|
for (const B of e.value)
|
|
2526
|
-
|
|
2527
|
-
const j =
|
|
2525
|
+
N.has(B.subject) && !B.inverted && x.set(B.subject, B.conditions);
|
|
2526
|
+
const j = d.coverSubject ? x.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2528
2527
|
({ category: B, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2529
2528
|
const _e = Q.subject;
|
|
2530
|
-
if (!
|
|
2531
|
-
|
|
2529
|
+
if (!N.has(_e) || G.has(_e)) return [];
|
|
2530
|
+
G.add(_e);
|
|
2532
2531
|
let ce;
|
|
2533
|
-
return
|
|
2532
|
+
return x.has(_e) ? ce = x.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
2534
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2535
2534
|
];
|
|
2536
2535
|
}
|
|
2537
2536
|
);
|
|
2538
|
-
r("update:model-value", [...U, ...
|
|
2537
|
+
r("update:model-value", [...U, ...W]);
|
|
2539
2538
|
}
|
|
2540
2539
|
}
|
|
2541
|
-
function F(
|
|
2542
|
-
const U =
|
|
2540
|
+
function F(d, N) {
|
|
2541
|
+
const U = d.selectedActionsMap.get(N);
|
|
2543
2542
|
return U ? U.has("manage") : !1;
|
|
2544
2543
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const U =
|
|
2544
|
+
function D(d, N) {
|
|
2545
|
+
const U = d.permissionActionsMap.get(N);
|
|
2547
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2548
|
-
(j) => S(
|
|
2547
|
+
(j) => S(d, N, j) || b(d, N, j)
|
|
2549
2548
|
) : [];
|
|
2550
2549
|
}
|
|
2551
|
-
function A(
|
|
2552
|
-
return c(
|
|
2550
|
+
function A(d, N) {
|
|
2551
|
+
return c(d, N) ? !1 : !F(d, N) && D(d, N).length > 0;
|
|
2553
2552
|
}
|
|
2554
|
-
function
|
|
2555
|
-
if (!
|
|
2553
|
+
function w(d, N) {
|
|
2554
|
+
if (!d.coverSubject || N === d.coverSubject) return;
|
|
2556
2555
|
const U = e.value.find(
|
|
2557
|
-
(
|
|
2556
|
+
(x) => !x.inverted && x.subject === d.coverSubject
|
|
2558
2557
|
);
|
|
2559
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2560
2559
|
}
|
|
2561
|
-
function f(
|
|
2560
|
+
function f(d, N, U) {
|
|
2562
2561
|
if (U) {
|
|
2563
|
-
const
|
|
2564
|
-
if (!
|
|
2562
|
+
const x = t.value.find((Q) => Q.subject === N);
|
|
2563
|
+
if (!x) return;
|
|
2565
2564
|
const {
|
|
2566
2565
|
category: j,
|
|
2567
|
-
showByFeatureFlag:
|
|
2568
|
-
isCategoryCover:
|
|
2566
|
+
showByFeatureFlag: G,
|
|
2567
|
+
isCategoryCover: W,
|
|
2569
2568
|
...B
|
|
2570
|
-
} =
|
|
2569
|
+
} = x, Y = w(d, N), ne = e.value.filter((Q) => Q.subject !== N);
|
|
2571
2570
|
ne.push({
|
|
2572
2571
|
...B,
|
|
2573
2572
|
...Y !== void 0 && { conditions: Y }
|
|
@@ -2575,120 +2574,120 @@ function jo(e, t, n, r) {
|
|
|
2575
2574
|
} else
|
|
2576
2575
|
r(
|
|
2577
2576
|
"update:model-value",
|
|
2578
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((x) => x.subject !== N)
|
|
2579
2578
|
);
|
|
2580
2579
|
}
|
|
2581
|
-
function h(
|
|
2582
|
-
const U =
|
|
2583
|
-
return U ? U.some((
|
|
2580
|
+
function h(d, N) {
|
|
2581
|
+
const U = d.permissionActionsMap.get(N);
|
|
2582
|
+
return U ? U.some((x) => x !== "manage") : !1;
|
|
2584
2583
|
}
|
|
2585
|
-
function S(
|
|
2586
|
-
const
|
|
2587
|
-
return
|
|
2584
|
+
function S(d, N, U) {
|
|
2585
|
+
const x = d.selectedActionsMap.get(N);
|
|
2586
|
+
return x ? x.has(U) : !1;
|
|
2588
2587
|
}
|
|
2589
|
-
function c(
|
|
2590
|
-
return !
|
|
2588
|
+
function c(d, N) {
|
|
2589
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2591
2590
|
}
|
|
2592
|
-
function b(
|
|
2593
|
-
return !
|
|
2591
|
+
function b(d, N, U) {
|
|
2592
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2594
2593
|
}
|
|
2595
|
-
function I(
|
|
2596
|
-
const
|
|
2597
|
-
return
|
|
2594
|
+
function I(d, N, U) {
|
|
2595
|
+
const x = d.permissionActionsMap.get(N);
|
|
2596
|
+
return x ? x.includes(U) : !1;
|
|
2598
2597
|
}
|
|
2599
|
-
function v(
|
|
2600
|
-
const
|
|
2598
|
+
function v(d, N, U) {
|
|
2599
|
+
const x = [...e.value], j = x.findIndex((W) => W.subject === d && !W.inverted);
|
|
2601
2600
|
if (U)
|
|
2602
2601
|
if (j >= 0) {
|
|
2603
|
-
const
|
|
2604
|
-
B.add(
|
|
2602
|
+
const W = { ...x[j] }, B = new Set(W.actions);
|
|
2603
|
+
B.add(N), W.actions = Array.from(B), x[j] = W;
|
|
2605
2604
|
} else {
|
|
2606
|
-
const
|
|
2607
|
-
if (!
|
|
2605
|
+
const W = t.value.find((se) => se.subject === d);
|
|
2606
|
+
if (!W) return;
|
|
2608
2607
|
const {
|
|
2609
2608
|
category: B,
|
|
2610
2609
|
showByFeatureFlag: Y,
|
|
2611
2610
|
isCategoryCover: ne,
|
|
2612
2611
|
...Q
|
|
2613
|
-
} =
|
|
2614
|
-
(se) => se.options.some((fe) => fe.value ===
|
|
2615
|
-
), ce = _e ?
|
|
2616
|
-
|
|
2612
|
+
} = W, _e = u.value.find(
|
|
2613
|
+
(se) => se.options.some((fe) => fe.value === d)
|
|
2614
|
+
), ce = _e ? w(_e, d) : void 0;
|
|
2615
|
+
x.push({
|
|
2617
2616
|
...Q,
|
|
2618
|
-
actions: [
|
|
2617
|
+
actions: [N],
|
|
2619
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2620
2619
|
});
|
|
2621
2620
|
}
|
|
2622
2621
|
else if (j >= 0) {
|
|
2623
|
-
const
|
|
2624
|
-
B.length === 0 ?
|
|
2622
|
+
const W = { ...x[j] }, B = W.actions.filter((Y) => Y !== N);
|
|
2623
|
+
B.length === 0 ? x.splice(j, 1) : (W.actions = B, x[j] = W);
|
|
2625
2624
|
}
|
|
2626
|
-
const
|
|
2627
|
-
|
|
2625
|
+
const G = t.value.find((W) => W.subject === d);
|
|
2626
|
+
G && Mn(x, d, G.actions), r("update:model-value", x);
|
|
2628
2627
|
}
|
|
2629
|
-
function
|
|
2630
|
-
const U =
|
|
2631
|
-
(
|
|
2628
|
+
function k(d, N) {
|
|
2629
|
+
const U = d.options.filter(
|
|
2630
|
+
(x) => I(d, x.value, N)
|
|
2632
2631
|
);
|
|
2633
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2634
|
-
(
|
|
2633
|
+
(x) => S(d, x.value, N) || b(d, x.value, N)
|
|
2635
2634
|
);
|
|
2636
2635
|
}
|
|
2637
|
-
function L(
|
|
2638
|
-
const U =
|
|
2639
|
-
(j) => I(
|
|
2636
|
+
function L(d, N) {
|
|
2637
|
+
const U = d.options.filter(
|
|
2638
|
+
(j) => I(d, j.value, N)
|
|
2640
2639
|
);
|
|
2641
2640
|
if (U.length === 0) return !1;
|
|
2642
|
-
const
|
|
2643
|
-
(j) => S(
|
|
2641
|
+
const x = U.filter(
|
|
2642
|
+
(j) => S(d, j.value, N) || b(d, j.value, N)
|
|
2644
2643
|
).length;
|
|
2645
|
-
return
|
|
2646
|
-
}
|
|
2647
|
-
function X(
|
|
2648
|
-
const
|
|
2649
|
-
for (const j of
|
|
2650
|
-
if (!I(
|
|
2651
|
-
const
|
|
2652
|
-
(Y) => Y.subject ===
|
|
2644
|
+
return x > 0 && x < U.length;
|
|
2645
|
+
}
|
|
2646
|
+
function X(d, N, U) {
|
|
2647
|
+
const x = [...e.value];
|
|
2648
|
+
for (const j of d.options) {
|
|
2649
|
+
if (!I(d, j.value, N)) continue;
|
|
2650
|
+
const G = j.value, W = x.findIndex(
|
|
2651
|
+
(Y) => Y.subject === G && !Y.inverted
|
|
2653
2652
|
);
|
|
2654
2653
|
if (U)
|
|
2655
|
-
if (
|
|
2656
|
-
const Y = { ...
|
|
2657
|
-
ne.add(
|
|
2654
|
+
if (W >= 0) {
|
|
2655
|
+
const Y = { ...x[W] }, ne = new Set(Y.actions);
|
|
2656
|
+
ne.add(N), Y.actions = Array.from(ne), x[W] = Y;
|
|
2658
2657
|
} else {
|
|
2659
|
-
const Y = t.value.find((fe) => fe.subject ===
|
|
2658
|
+
const Y = t.value.find((fe) => fe.subject === G);
|
|
2660
2659
|
if (!Y) continue;
|
|
2661
2660
|
const {
|
|
2662
2661
|
category: ne,
|
|
2663
2662
|
showByFeatureFlag: Q,
|
|
2664
2663
|
isCategoryCover: _e,
|
|
2665
2664
|
...ce
|
|
2666
|
-
} = Y, se =
|
|
2667
|
-
|
|
2665
|
+
} = Y, se = w(d, G);
|
|
2666
|
+
x.push({
|
|
2668
2667
|
...ce,
|
|
2669
|
-
actions: [
|
|
2668
|
+
actions: [N],
|
|
2670
2669
|
...se !== void 0 && { conditions: se }
|
|
2671
2670
|
});
|
|
2672
2671
|
}
|
|
2673
|
-
else if (
|
|
2674
|
-
const Y = { ...
|
|
2675
|
-
ne.length === 0 ?
|
|
2672
|
+
else if (W >= 0) {
|
|
2673
|
+
const Y = { ...x[W] }, ne = Y.actions.filter((Q) => Q !== N);
|
|
2674
|
+
ne.length === 0 ? x.splice(W, 1) : (Y.actions = ne, x[W] = Y);
|
|
2676
2675
|
}
|
|
2677
|
-
const B = t.value.find((Y) => Y.subject ===
|
|
2678
|
-
B && Mn(
|
|
2676
|
+
const B = t.value.find((Y) => Y.subject === G);
|
|
2677
|
+
B && Mn(x, G, B.actions);
|
|
2679
2678
|
}
|
|
2680
|
-
r("update:model-value",
|
|
2679
|
+
r("update:model-value", x);
|
|
2681
2680
|
}
|
|
2682
|
-
function
|
|
2683
|
-
const
|
|
2684
|
-
return l(
|
|
2681
|
+
function V(d) {
|
|
2682
|
+
const N = `permissionSet.actionLabels.${d}`, U = Po[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2683
|
+
return l(N, U);
|
|
2685
2684
|
}
|
|
2686
2685
|
return {
|
|
2687
2686
|
categoryGroups: u,
|
|
2688
2687
|
toggleCategory: i,
|
|
2689
2688
|
isAllManageChecked: y,
|
|
2690
2689
|
isAllManageIndeterminate: T,
|
|
2691
|
-
toggleAllManage:
|
|
2690
|
+
toggleAllManage: C,
|
|
2692
2691
|
isManageChecked: F,
|
|
2693
2692
|
isManageIndeterminate: A,
|
|
2694
2693
|
toggleManage: f,
|
|
@@ -2698,13 +2697,13 @@ function jo(e, t, n, r) {
|
|
|
2698
2697
|
isActionCoveredByCover: b,
|
|
2699
2698
|
permissionDefinesAction: I,
|
|
2700
2699
|
toggleAction: v,
|
|
2701
|
-
isAllActionChecked:
|
|
2700
|
+
isAllActionChecked: k,
|
|
2702
2701
|
isAllActionIndeterminate: L,
|
|
2703
2702
|
toggleAllAction: X,
|
|
2704
|
-
actionLabel:
|
|
2703
|
+
actionLabel: V
|
|
2705
2704
|
};
|
|
2706
2705
|
}
|
|
2707
|
-
const Uo = { class: "flex flex-col gap-16" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["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({
|
|
2708
2707
|
__name: "BasePermission",
|
|
2709
2708
|
props: {
|
|
2710
2709
|
modelValue: {
|
|
@@ -2726,18 +2725,18 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2726
2725
|
},
|
|
2727
2726
|
emits: ["update:model-value"],
|
|
2728
2727
|
setup(e, { emit: t }) {
|
|
2729
|
-
const n = e, r = t, { t: l } = He(), a = z(() => [...
|
|
2730
|
-
categoryGroups:
|
|
2728
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2729
|
+
categoryGroups: m,
|
|
2731
2730
|
isAllManageChecked: u,
|
|
2732
2731
|
isAllManageIndeterminate: i,
|
|
2733
2732
|
toggleAllManage: g,
|
|
2734
2733
|
isManageChecked: y,
|
|
2735
2734
|
isManageIndeterminate: T,
|
|
2736
|
-
toggleManage:
|
|
2735
|
+
toggleManage: C,
|
|
2737
2736
|
isActionChecked: F,
|
|
2738
|
-
isRowFullyCoveredByCover:
|
|
2737
|
+
isRowFullyCoveredByCover: D,
|
|
2739
2738
|
isActionCoveredByCover: A,
|
|
2740
|
-
permissionDefinesAction:
|
|
2739
|
+
permissionDefinesAction: w,
|
|
2741
2740
|
toggleAction: f,
|
|
2742
2741
|
isAllActionChecked: h,
|
|
2743
2742
|
isAllActionIndeterminate: S,
|
|
@@ -2747,124 +2746,124 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2747
2746
|
en(n, "modelValue"),
|
|
2748
2747
|
a,
|
|
2749
2748
|
en(n, "excludedSubjects"),
|
|
2750
|
-
(
|
|
2749
|
+
(k, L) => r("update:model-value", L)
|
|
2751
2750
|
);
|
|
2752
|
-
function I(
|
|
2753
|
-
const L =
|
|
2751
|
+
function I(k) {
|
|
2752
|
+
const L = k.selectedSubjects.length;
|
|
2754
2753
|
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2755
2754
|
}
|
|
2756
|
-
function v(
|
|
2757
|
-
return y(
|
|
2758
|
-
(X) =>
|
|
2755
|
+
function v(k, L) {
|
|
2756
|
+
return y(k, L) || D(k, L) ? !0 : k.actionColumns.some(
|
|
2757
|
+
(X) => w(k, L, X) && (F(k, L, X) || A(k, L, X))
|
|
2759
2758
|
);
|
|
2760
2759
|
}
|
|
2761
|
-
return (
|
|
2762
|
-
const X =
|
|
2763
|
-
return
|
|
2764
|
-
(
|
|
2765
|
-
key:
|
|
2766
|
-
subtitle: I(
|
|
2760
|
+
return (k, L) => {
|
|
2761
|
+
const X = De("FmCheckbox");
|
|
2762
|
+
return $(), ie("div", Uo, [
|
|
2763
|
+
($(!0), ie(ke, null, Ee(H(m), (V) => ($(), Ce(Xt, {
|
|
2764
|
+
key: V.category,
|
|
2765
|
+
subtitle: I(V)
|
|
2767
2766
|
}, {
|
|
2768
|
-
title:
|
|
2769
|
-
ae("p",
|
|
2767
|
+
title: me(() => [
|
|
2768
|
+
ae("p", xo, Oe(V.label), 1)
|
|
2770
2769
|
]),
|
|
2771
|
-
default:
|
|
2772
|
-
ae("div",
|
|
2770
|
+
default: me(() => [
|
|
2771
|
+
ae("div", Vo, [
|
|
2773
2772
|
ae("div", {
|
|
2774
2773
|
class: "grid items-center px-12 py-8",
|
|
2775
2774
|
style: nt({
|
|
2776
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2775
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2777
2776
|
})
|
|
2778
2777
|
}, [
|
|
2779
2778
|
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2780
|
-
ae("div",
|
|
2781
|
-
(
|
|
2782
|
-
key: `header-${
|
|
2779
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
($(!0), ie(ke, null, Ee(V.actionColumns, (d) => ($(), ie("div", {
|
|
2781
|
+
key: `header-${d}`,
|
|
2783
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2784
|
-
}, Oe(H(b)(
|
|
2783
|
+
}, Oe(H(b)(d)), 1))), 128))
|
|
2785
2784
|
], 4),
|
|
2786
2785
|
ae("div", {
|
|
2787
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2788
2787
|
style: nt({
|
|
2789
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2790
2789
|
})
|
|
2791
2790
|
}, [
|
|
2792
2791
|
ae("div", {
|
|
2793
2792
|
class: "cursor-pointer font-semibold",
|
|
2794
|
-
onClick: (
|
|
2795
|
-
}, Oe(H(l)("team.labels.all")), 9,
|
|
2793
|
+
onClick: (d) => !e.disable && H(g)(V)
|
|
2794
|
+
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2796
2795
|
ae("div", Zo, [
|
|
2797
2796
|
ue(X, {
|
|
2798
|
-
"model-value": H(u)(
|
|
2799
|
-
indeterminate: H(i)(
|
|
2797
|
+
"model-value": H(u)(V),
|
|
2798
|
+
indeterminate: H(i)(V),
|
|
2800
2799
|
value: !0,
|
|
2801
2800
|
disabled: e.disable,
|
|
2802
2801
|
size: "sm",
|
|
2803
2802
|
dense: "",
|
|
2804
|
-
"onUpdate:modelValue": (
|
|
2803
|
+
"onUpdate:modelValue": (d) => H(g)(V)
|
|
2805
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2806
2805
|
]),
|
|
2807
|
-
(
|
|
2808
|
-
key: `all-${
|
|
2806
|
+
($(!0), ie(ke, null, Ee(V.actionColumns, (d) => ($(), ie("div", {
|
|
2807
|
+
key: `all-${d}`,
|
|
2809
2808
|
class: "flex justify-center"
|
|
2810
2809
|
}, [
|
|
2811
2810
|
ue(X, {
|
|
2812
|
-
"model-value": H(h)(
|
|
2813
|
-
indeterminate: H(S)(
|
|
2814
|
-
value:
|
|
2811
|
+
"model-value": H(h)(V, d),
|
|
2812
|
+
indeterminate: H(S)(V, d),
|
|
2813
|
+
value: d,
|
|
2815
2814
|
disabled: e.disable,
|
|
2816
2815
|
size: "sm",
|
|
2817
2816
|
dense: "",
|
|
2818
|
-
"onUpdate:modelValue": (
|
|
2817
|
+
"onUpdate:modelValue": (N) => H(c)(V, d, N)
|
|
2819
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2820
2819
|
]))), 128))
|
|
2821
2820
|
], 4),
|
|
2822
2821
|
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2823
|
-
(
|
|
2824
|
-
key:
|
|
2822
|
+
($(!0), ie(ke, null, Ee(V.options, (d) => ($(), ie("div", {
|
|
2823
|
+
key: d.optionKey,
|
|
2825
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2826
2825
|
style: nt({
|
|
2827
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2826
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2828
2827
|
})
|
|
2829
2828
|
}, [
|
|
2830
2829
|
ae("div", Bo, [
|
|
2831
2830
|
ae("span", {
|
|
2832
2831
|
class: "block truncate cursor-pointer",
|
|
2833
|
-
title:
|
|
2834
|
-
onClick: (
|
|
2835
|
-
}, Oe(
|
|
2836
|
-
Se(
|
|
2837
|
-
option:
|
|
2838
|
-
isEffectiveSelected: v(
|
|
2839
|
-
isCoveredByCover: H(
|
|
2832
|
+
title: d.label,
|
|
2833
|
+
onClick: (N) => !e.disable && !H(D)(V, d.value) && H(C)(V, d.value, !H(y)(V, d.value))
|
|
2834
|
+
}, Oe(d.label), 9, Yo),
|
|
2835
|
+
Se(k.$slots, `checkbox-${d.value}-append`, {
|
|
2836
|
+
option: d,
|
|
2837
|
+
isEffectiveSelected: v(V, d.value),
|
|
2838
|
+
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(A)(V, d.value, N))
|
|
2840
2839
|
}),
|
|
2841
|
-
Se(
|
|
2842
|
-
option:
|
|
2843
|
-
isEffectiveSelected: v(
|
|
2844
|
-
isCoveredByCover: H(
|
|
2840
|
+
Se(k.$slots, `checkbox-${d.value}-icon`, {
|
|
2841
|
+
option: d,
|
|
2842
|
+
isEffectiveSelected: v(V, d.value),
|
|
2843
|
+
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(A)(V, d.value, N))
|
|
2845
2844
|
})
|
|
2846
2845
|
]),
|
|
2847
2846
|
ae("div", Xo, [
|
|
2848
2847
|
ue(X, {
|
|
2849
|
-
"model-value": H(y)(
|
|
2850
|
-
value:
|
|
2851
|
-
disabled: e.disable || H(
|
|
2852
|
-
indeterminate: H(T)(
|
|
2848
|
+
"model-value": H(y)(V, d.value) || H(D)(V, d.value),
|
|
2849
|
+
value: d.value,
|
|
2850
|
+
disabled: e.disable || H(D)(V, d.value),
|
|
2851
|
+
indeterminate: H(T)(V, d.value),
|
|
2853
2852
|
size: "sm",
|
|
2854
|
-
"onUpdate:modelValue": (
|
|
2853
|
+
"onUpdate:modelValue": (N) => H(C)(V, d.value, N)
|
|
2855
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2856
2855
|
]),
|
|
2857
|
-
(
|
|
2858
|
-
key: `${
|
|
2856
|
+
($(!0), ie(ke, null, Ee(V.actionColumns, (N) => ($(), ie("div", {
|
|
2857
|
+
key: `${d.optionKey}-${N}`,
|
|
2859
2858
|
class: "flex justify-center"
|
|
2860
2859
|
}, [
|
|
2861
|
-
H(
|
|
2860
|
+
H(w)(V, d.value, N) ? ($(), Ce(X, {
|
|
2862
2861
|
key: 0,
|
|
2863
|
-
"model-value": H(F)(
|
|
2864
|
-
value:
|
|
2865
|
-
disabled: e.disable || H(A)(
|
|
2862
|
+
"model-value": H(F)(V, d.value, N) || H(A)(V, d.value, N),
|
|
2863
|
+
value: N,
|
|
2864
|
+
disabled: e.disable || H(A)(V, d.value, N),
|
|
2866
2865
|
size: "sm",
|
|
2867
|
-
"onUpdate:modelValue": (U) => H(f)(
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, N, U)
|
|
2868
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2869
2868
|
]))), 128))
|
|
2870
2869
|
], 4))), 128))
|
|
@@ -2875,7 +2874,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2875
2874
|
]);
|
|
2876
2875
|
};
|
|
2877
2876
|
}
|
|
2878
|
-
}),
|
|
2877
|
+
}), Jo = { class: "space-y-16" }, $o = {
|
|
2879
2878
|
key: 0,
|
|
2880
2879
|
class: "flex fm-typo-en-title-sm-600"
|
|
2881
2880
|
}, Ko = {
|
|
@@ -2899,11 +2898,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2899
2898
|
},
|
|
2900
2899
|
setup(e) {
|
|
2901
2900
|
const t = e;
|
|
2902
|
-
return (n, r) => (
|
|
2901
|
+
return (n, r) => ($(), ie("div", Jo, [
|
|
2903
2902
|
Se(n.$slots, "top", {}, () => [
|
|
2904
|
-
t.title ? (
|
|
2903
|
+
t.title ? ($(), ie("div", $o, [
|
|
2905
2904
|
ae("div", null, [
|
|
2906
|
-
t.required ? (
|
|
2905
|
+
t.required ? ($(), ie("span", Ko, "*")) : Me("", !0),
|
|
2907
2906
|
_r(Oe(t.title), 1)
|
|
2908
2907
|
]),
|
|
2909
2908
|
Se(n.$slots, "title-right")
|
|
@@ -2975,38 +2974,38 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2975
2974
|
},
|
|
2976
2975
|
emits: ["update:model-value"],
|
|
2977
2976
|
setup(e, { emit: t }) {
|
|
2978
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1),
|
|
2979
|
-
() => n.modelValue.filter((A) => n.options.some((
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = 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(
|
|
2978
|
+
() => n.modelValue.filter((A) => n.options.some((w) => w.value === A))
|
|
2980
2979
|
), T = z(
|
|
2981
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2982
|
-
),
|
|
2981
|
+
), C = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2983
2982
|
function F() {
|
|
2984
|
-
const A = n.modelValue.filter((
|
|
2985
|
-
if (
|
|
2983
|
+
const A = n.modelValue.filter((w) => !y.value.includes(w));
|
|
2984
|
+
if (C.value === !0)
|
|
2986
2985
|
r("update:model-value", A);
|
|
2987
2986
|
else {
|
|
2988
|
-
const
|
|
2989
|
-
r("update:model-value", [...A, ...
|
|
2987
|
+
const w = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
+
r("update:model-value", [...A, ...w]);
|
|
2990
2989
|
}
|
|
2991
2990
|
}
|
|
2992
|
-
function
|
|
2991
|
+
function D(A, w) {
|
|
2993
2992
|
let f = It(n.modelValue);
|
|
2994
|
-
|
|
2993
|
+
w ? f.every((h) => h !== A) && f.push(A) : f = f.filter((h) => h !== A), r("update:model-value", f);
|
|
2995
2994
|
}
|
|
2996
|
-
return (A,
|
|
2997
|
-
const f =
|
|
2998
|
-
return
|
|
2995
|
+
return (A, w) => {
|
|
2996
|
+
const f = De("FmCheckbox");
|
|
2997
|
+
return $(), Ce(Qo, {
|
|
2999
2998
|
id: i,
|
|
3000
2999
|
title: e.title,
|
|
3001
3000
|
required: !1
|
|
3002
3001
|
}, {
|
|
3003
|
-
top:
|
|
3002
|
+
top: me(() => [
|
|
3004
3003
|
Se(A.$slots, "top")
|
|
3005
3004
|
]),
|
|
3006
|
-
default:
|
|
3007
|
-
n.showAllToggle ? (
|
|
3005
|
+
default: me(() => [
|
|
3006
|
+
n.showAllToggle ? ($(), Ce(f, {
|
|
3008
3007
|
key: 0,
|
|
3009
|
-
"model-value":
|
|
3008
|
+
"model-value": C.value,
|
|
3010
3009
|
disabled: e.disable,
|
|
3011
3010
|
label: T.value,
|
|
3012
3011
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
@@ -3015,7 +3014,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3015
3014
|
value: T.value,
|
|
3016
3015
|
"onUpdate:modelValue": F
|
|
3017
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3018
|
-
(
|
|
3017
|
+
($(!0), ie(ke, null, Ee(e.options, (h, S) => ($(), ie("div", {
|
|
3019
3018
|
key: h.value,
|
|
3020
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3021
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3030,14 +3029,14 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3030
3029
|
size: "sm",
|
|
3031
3030
|
label: h.label,
|
|
3032
3031
|
value: h.label,
|
|
3033
|
-
"onUpdate:modelValue": (c) =>
|
|
3032
|
+
"onUpdate:modelValue": (c) => D(h.value, c)
|
|
3034
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3035
3034
|
Se(A.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3036
3035
|
option: h,
|
|
3037
3036
|
selected: e.modelValue.includes(h.value)
|
|
3038
3037
|
})
|
|
3039
3038
|
]),
|
|
3040
|
-
H(
|
|
3039
|
+
H(m)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3041
3040
|
key: 0,
|
|
3042
3041
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3043
3042
|
}, [
|
|
@@ -3048,7 +3047,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3048
3047
|
})
|
|
3049
3048
|
], 2)) : Me("", !0)
|
|
3050
3049
|
], 2),
|
|
3051
|
-
H(
|
|
3050
|
+
H(m)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3052
3051
|
key: 0,
|
|
3053
3052
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3054
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
@@ -3060,13 +3059,13 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3060
3059
|
})
|
|
3061
3060
|
], 6)) : Me("", !0)
|
|
3062
3061
|
], 6))), 128)),
|
|
3063
|
-
a.value && g.value ? (
|
|
3062
|
+
a.value && g.value ? ($(), ie("div", ea, Oe(u.value), 1)) : Me("", !0)
|
|
3064
3063
|
]),
|
|
3065
3064
|
_: 3
|
|
3066
3065
|
}, 8, ["title"]);
|
|
3067
3066
|
};
|
|
3068
3067
|
}
|
|
3069
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", wn = /* @__PURE__ */ Ae({
|
|
3070
3069
|
__name: "ConditionPermission",
|
|
3071
3070
|
props: {
|
|
3072
3071
|
modelValue: {
|
|
@@ -3098,23 +3097,23 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3098
3097
|
...n.options.filter(
|
|
3099
3098
|
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3100
3099
|
)
|
|
3101
|
-
]),
|
|
3102
|
-
const y =
|
|
3100
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3101
|
+
const y = m.value.filter((T) => T !== ht).length;
|
|
3103
3102
|
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3104
3103
|
});
|
|
3105
3104
|
function i(y) {
|
|
3106
3105
|
const T = y.length === a.value.length;
|
|
3107
|
-
r("update:model-value", T ? null : y.filter((
|
|
3106
|
+
r("update:model-value", T ? null : y.filter((C) => C !== ht));
|
|
3108
3107
|
}
|
|
3109
3108
|
const g = rt("");
|
|
3110
3109
|
return (y, T) => {
|
|
3111
|
-
const
|
|
3112
|
-
return
|
|
3113
|
-
title:
|
|
3110
|
+
const C = De("fm-search");
|
|
3111
|
+
return $(), Ce(Xt, { subtitle: u.value }, {
|
|
3112
|
+
title: me(() => [
|
|
3114
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3115
3114
|
]),
|
|
3116
|
-
default:
|
|
3117
|
-
e.options.length > 1 ? (
|
|
3115
|
+
default: me(() => [
|
|
3116
|
+
e.options.length > 1 ? ($(), Ce(C, {
|
|
3118
3117
|
key: 0,
|
|
3119
3118
|
modelValue: g.value,
|
|
3120
3119
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
@@ -3122,7 +3121,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3122
3121
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3123
3122
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3124
3123
|
ue(ir, {
|
|
3125
|
-
"model-value":
|
|
3124
|
+
"model-value": m.value,
|
|
3126
3125
|
options: a.value,
|
|
3127
3126
|
"show-intermediate": !1,
|
|
3128
3127
|
"show-all-toggle": !0,
|
|
@@ -3134,8 +3133,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3134
3133
|
}, et({ _: 2 }, [
|
|
3135
3134
|
Ee(a.value, (F) => ({
|
|
3136
3135
|
name: `checkbox-${F.value}-append`,
|
|
3137
|
-
fn:
|
|
3138
|
-
Se(y.$slots, `checkbox-${F.value}-append`, { option:
|
|
3136
|
+
fn: me(({ option: D }) => [
|
|
3137
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: D })
|
|
3139
3138
|
])
|
|
3140
3139
|
}))
|
|
3141
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3180,21 +3179,21 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3180
3179
|
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3181
3180
|
}))
|
|
3182
3181
|
];
|
|
3183
|
-
}),
|
|
3184
|
-
const g =
|
|
3182
|
+
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = m.value.filter((y) => y !== bt).length;
|
|
3185
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3186
3185
|
});
|
|
3187
3186
|
function i(g) {
|
|
3188
3187
|
const y = g.length === a.value.length;
|
|
3189
3188
|
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3190
3189
|
}
|
|
3191
|
-
return (g, y) => (
|
|
3192
|
-
title:
|
|
3190
|
+
return (g, y) => ($(), Ce(Xt, { subtitle: u.value }, {
|
|
3191
|
+
title: me(() => [
|
|
3193
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3194
3193
|
]),
|
|
3195
|
-
default:
|
|
3194
|
+
default: me(() => [
|
|
3196
3195
|
ue(ir, {
|
|
3197
|
-
"model-value":
|
|
3196
|
+
"model-value": m.value,
|
|
3198
3197
|
options: a.value,
|
|
3199
3198
|
"show-intermediate": !1,
|
|
3200
3199
|
"show-all-toggle": !1,
|
|
@@ -3205,8 +3204,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3205
3204
|
}, et({ _: 2 }, [
|
|
3206
3205
|
Ee(a.value, (T) => ({
|
|
3207
3206
|
name: `checkbox-${T.value}-append`,
|
|
3208
|
-
fn:
|
|
3209
|
-
Se(g.$slots, `checkbox-${T.value}-append`, { option:
|
|
3207
|
+
fn: me(({ option: C }) => [
|
|
3208
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: C })
|
|
3210
3209
|
])
|
|
3211
3210
|
}))
|
|
3212
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3243,8 +3242,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3243
3242
|
setup(e, { emit: t }) {
|
|
3244
3243
|
const n = t, { t: r } = He();
|
|
3245
3244
|
return (l, a) => {
|
|
3246
|
-
const
|
|
3247
|
-
return
|
|
3245
|
+
const m = De("FmRadio"), u = De("FmRadioGroup");
|
|
3246
|
+
return $(), Ce(Nr, {
|
|
3248
3247
|
title: e.title,
|
|
3249
3248
|
builders: e.builders,
|
|
3250
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -3254,34 +3253,34 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3254
3253
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3255
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3256
3255
|
}, {
|
|
3257
|
-
section:
|
|
3258
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (
|
|
3256
|
+
section: me(({ builder: i }) => [
|
|
3257
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? ($(), ie("div", sa, [
|
|
3259
3258
|
ue(u, {
|
|
3260
3259
|
"model-value": e.inheritModeFor(i),
|
|
3261
3260
|
disabled: e.disable,
|
|
3262
3261
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3263
3262
|
}, {
|
|
3264
|
-
default:
|
|
3263
|
+
default: me(() => [
|
|
3265
3264
|
ae("div", null, [
|
|
3266
|
-
ue(
|
|
3265
|
+
ue(m, {
|
|
3267
3266
|
value: "inherit",
|
|
3268
3267
|
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3269
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3270
3269
|
})
|
|
3271
3270
|
}, null, 8, ["label"]),
|
|
3272
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (
|
|
3271
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? ($(), ie("p", oa, " (" + Oe(H(r)(
|
|
3273
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3274
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3275
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
3276
3275
|
]),
|
|
3277
|
-
ue(
|
|
3276
|
+
ue(m, {
|
|
3278
3277
|
value: "custom",
|
|
3279
3278
|
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3280
3279
|
}, null, 8, ["label"])
|
|
3281
3280
|
]),
|
|
3282
3281
|
_: 2
|
|
3283
3282
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3284
|
-
e.inheritModeFor(i) === "custom" ? (
|
|
3283
|
+
e.inheritModeFor(i) === "custom" ? ($(), ie("div", aa, [
|
|
3285
3284
|
ue(nn, {
|
|
3286
3285
|
builder: i,
|
|
3287
3286
|
"model-value": e.formValueFor(i),
|
|
@@ -3289,7 +3288,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3289
3288
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3290
3289
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3291
3290
|
])) : Me("", !0)
|
|
3292
|
-
])) : (
|
|
3291
|
+
])) : ($(), Ce(nn, {
|
|
3293
3292
|
key: 1,
|
|
3294
3293
|
builder: i,
|
|
3295
3294
|
"model-value": e.formValueFor(i),
|
|
@@ -3303,7 +3302,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3303
3302
|
}
|
|
3304
3303
|
}), la = {
|
|
3305
3304
|
async readWarehouses() {
|
|
3306
|
-
return
|
|
3305
|
+
return Rr(await kr().get("/warehouses"));
|
|
3307
3306
|
}
|
|
3308
3307
|
};
|
|
3309
3308
|
function Pn(e, t) {
|
|
@@ -3315,9 +3314,9 @@ function jn(e, t) {
|
|
|
3315
3314
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3316
3315
|
}
|
|
3317
3316
|
function Un(e, t, n) {
|
|
3318
|
-
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...
|
|
3317
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...m } = e;
|
|
3319
3318
|
return {
|
|
3320
|
-
...
|
|
3319
|
+
...m,
|
|
3321
3320
|
actions: t,
|
|
3322
3321
|
...n !== void 0 && { conditions: n }
|
|
3323
3322
|
};
|
|
@@ -3327,40 +3326,40 @@ function ia(e, t, n, r) {
|
|
|
3327
3326
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3328
3327
|
), a = new Set(
|
|
3329
3328
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3330
|
-
),
|
|
3329
|
+
), m = new Set(
|
|
3331
3330
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3332
3331
|
);
|
|
3333
3332
|
let u = [...n];
|
|
3334
3333
|
for (const i of l)
|
|
3335
|
-
a.has(i) || (
|
|
3334
|
+
a.has(i) || (m.has(i) && (u = u.filter((y) => y.subject !== i)), (!m.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3336
3335
|
for (const i of a)
|
|
3337
3336
|
if (!l.has(i)) {
|
|
3338
3337
|
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3339
|
-
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !
|
|
3338
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !m.has(i)) {
|
|
3340
3339
|
const y = t.find(
|
|
3341
|
-
(
|
|
3340
|
+
(C) => C.subject === i && !C.inverted
|
|
3342
3341
|
), T = r(i);
|
|
3343
3342
|
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3344
3343
|
}
|
|
3345
3344
|
}
|
|
3346
3345
|
for (const i of a) {
|
|
3347
3346
|
if (!l.has(i)) continue;
|
|
3348
|
-
const g = e.find((
|
|
3347
|
+
const g = e.find((D) => D.subject === i && !D.inverted), y = t.find((D) => D.subject === i && !D.inverted);
|
|
3349
3348
|
if (!g || !y) continue;
|
|
3350
|
-
const T = new Set(g.actions),
|
|
3351
|
-
if (T.size ===
|
|
3349
|
+
const T = new Set(g.actions), C = new Set(y.actions);
|
|
3350
|
+
if (T.size === C.size && [...T].every((D) => C.has(D)))
|
|
3352
3351
|
continue;
|
|
3353
|
-
const F = u.findIndex((
|
|
3352
|
+
const F = u.findIndex((D) => D.subject === i && !D.inverted);
|
|
3354
3353
|
if (F >= 0)
|
|
3355
3354
|
u[F] = {
|
|
3356
3355
|
...u[F],
|
|
3357
|
-
actions: Array.from(
|
|
3356
|
+
actions: Array.from(C)
|
|
3358
3357
|
};
|
|
3359
3358
|
else {
|
|
3360
|
-
const
|
|
3361
|
-
|
|
3359
|
+
const D = r(i);
|
|
3360
|
+
D && u.push(Un(D, Array.from(C)));
|
|
3362
3361
|
}
|
|
3363
|
-
T.has("manage") && !
|
|
3362
|
+
T.has("manage") && !C.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && C.has("manage") && (u = u.filter((D) => !(D.subject === i && D.inverted)));
|
|
3364
3363
|
}
|
|
3365
3364
|
return u;
|
|
3366
3365
|
}
|
|
@@ -3383,20 +3382,20 @@ function ua(e) {
|
|
|
3383
3382
|
const t = (e || "").toUpperCase();
|
|
3384
3383
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3385
3384
|
}
|
|
3386
|
-
function
|
|
3385
|
+
function ma(e, t) {
|
|
3387
3386
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3388
3387
|
}
|
|
3389
3388
|
function gt(e, t) {
|
|
3390
3389
|
return `${e}::${t.builderKey}`;
|
|
3391
3390
|
}
|
|
3392
|
-
function
|
|
3391
|
+
function We(e) {
|
|
3393
3392
|
try {
|
|
3394
3393
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3395
3394
|
} catch {
|
|
3396
3395
|
return;
|
|
3397
3396
|
}
|
|
3398
3397
|
}
|
|
3399
|
-
function
|
|
3398
|
+
function da(e, t) {
|
|
3400
3399
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3401
3400
|
}
|
|
3402
3401
|
function Mt(e, t) {
|
|
@@ -3404,37 +3403,37 @@ function Mt(e, t) {
|
|
|
3404
3403
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3405
3404
|
}
|
|
3406
3405
|
function Bt(e, t) {
|
|
3407
|
-
const n =
|
|
3408
|
-
return
|
|
3406
|
+
const n = We(e);
|
|
3407
|
+
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3409
3408
|
}
|
|
3410
|
-
function
|
|
3409
|
+
function xn(e, t, n) {
|
|
3411
3410
|
return {
|
|
3412
3411
|
...Bt(e, n),
|
|
3413
|
-
...tt(
|
|
3412
|
+
...tt(We(t), n)
|
|
3414
3413
|
};
|
|
3415
3414
|
}
|
|
3416
3415
|
function fa(e, t, n) {
|
|
3417
3416
|
const r = rt(/* @__PURE__ */ new Set());
|
|
3418
3417
|
function l(c) {
|
|
3419
|
-
return
|
|
3418
|
+
return wr(c, t.value);
|
|
3420
3419
|
}
|
|
3421
3420
|
function a(c) {
|
|
3422
3421
|
return t.value.find((b) => b.subject === c);
|
|
3423
3422
|
}
|
|
3424
|
-
function
|
|
3423
|
+
function m(c) {
|
|
3425
3424
|
var I;
|
|
3426
3425
|
const b = l(c);
|
|
3427
3426
|
return b ? (I = a(b)) == null ? void 0 : I.label : void 0;
|
|
3428
3427
|
}
|
|
3429
3428
|
function u(c) {
|
|
3430
|
-
return
|
|
3429
|
+
return da(e.value, c);
|
|
3431
3430
|
}
|
|
3432
3431
|
function i(c, b) {
|
|
3433
|
-
return tt(
|
|
3432
|
+
return tt(We(c), b);
|
|
3434
3433
|
}
|
|
3435
3434
|
function g(c, b) {
|
|
3436
|
-
var
|
|
3437
|
-
if (!(((
|
|
3435
|
+
var k;
|
|
3436
|
+
if (!(((k = b.appliesToActions) == null ? void 0 : k.call(b, c.actions)) ?? !0)) return !1;
|
|
3438
3437
|
const I = l(c.subject);
|
|
3439
3438
|
if (!I) return !1;
|
|
3440
3439
|
const v = u(I);
|
|
@@ -3443,9 +3442,9 @@ function fa(e, t, n) {
|
|
|
3443
3442
|
function y(c, b) {
|
|
3444
3443
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3445
3444
|
if (c.index === null) return "inherit";
|
|
3446
|
-
const I = e.value[c.index], v = l(c.subject),
|
|
3447
|
-
if (I &&
|
|
3448
|
-
const L = tt(
|
|
3445
|
+
const I = e.value[c.index], v = l(c.subject), k = v ? u(v) : void 0;
|
|
3446
|
+
if (I && k) {
|
|
3447
|
+
const L = tt(We(I), b), X = i(k, b);
|
|
3449
3448
|
if (JSON.stringify(L) === JSON.stringify(X)) return "inherit";
|
|
3450
3449
|
}
|
|
3451
3450
|
return "custom";
|
|
@@ -3454,36 +3453,36 @@ function fa(e, t, n) {
|
|
|
3454
3453
|
if (!b.summarizeForm) return;
|
|
3455
3454
|
const v = l(c.subject);
|
|
3456
3455
|
if (!v) return;
|
|
3457
|
-
const
|
|
3458
|
-
if (!
|
|
3459
|
-
const L = b.fromCondition(i(
|
|
3456
|
+
const k = u(v);
|
|
3457
|
+
if (!k) return;
|
|
3458
|
+
const L = b.fromCondition(i(k, b));
|
|
3460
3459
|
return b.summarizeForm(L, { timeZone: I });
|
|
3461
3460
|
}
|
|
3462
|
-
function
|
|
3461
|
+
function C(c, b) {
|
|
3463
3462
|
if (c.index === null) return;
|
|
3464
|
-
const I = [...e.value], v = { ...I[c.index] },
|
|
3465
|
-
if (L &&
|
|
3463
|
+
const I = [...e.value], v = { ...I[c.index] }, k = Bt(v, b), L = Object.keys(k).length === 0, X = l(c.subject), V = X ? u(X) : void 0, d = V ? Mt(V, v) : !1;
|
|
3464
|
+
if (L && d)
|
|
3466
3465
|
I.splice(c.index, 1);
|
|
3467
|
-
else if (
|
|
3468
|
-
const
|
|
3469
|
-
Object.keys(
|
|
3466
|
+
else if (V) {
|
|
3467
|
+
const N = xn(v, V, b);
|
|
3468
|
+
Object.keys(N).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(N), I[c.index] = v;
|
|
3470
3469
|
} else
|
|
3471
|
-
L ? delete v.conditions : v.conditions = JSON.stringify(
|
|
3470
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(k), I[c.index] = v;
|
|
3472
3471
|
n(I);
|
|
3473
3472
|
}
|
|
3474
3473
|
function F(c, b, I) {
|
|
3475
3474
|
const v = gt(c.subject, b);
|
|
3476
3475
|
if (I === "inherit") {
|
|
3477
3476
|
const L = new Set(r.value);
|
|
3478
|
-
L.delete(v), r.value = L,
|
|
3477
|
+
L.delete(v), r.value = L, C(c, b);
|
|
3479
3478
|
return;
|
|
3480
3479
|
}
|
|
3481
|
-
const
|
|
3482
|
-
|
|
3480
|
+
const k = new Set(r.value);
|
|
3481
|
+
k.add(v), r.value = k, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3483
3482
|
forceCreateRule: !0
|
|
3484
3483
|
});
|
|
3485
3484
|
}
|
|
3486
|
-
function
|
|
3485
|
+
function D(c) {
|
|
3487
3486
|
const b = l(c);
|
|
3488
3487
|
if (!b) return [];
|
|
3489
3488
|
const I = u(b);
|
|
@@ -3493,163 +3492,163 @@ function fa(e, t, n) {
|
|
|
3493
3492
|
return e.value.filter((I) => {
|
|
3494
3493
|
if (I.inverted) return !1;
|
|
3495
3494
|
const v = I.subject;
|
|
3496
|
-
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(
|
|
3495
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3497
3496
|
});
|
|
3498
3497
|
}
|
|
3499
|
-
function
|
|
3498
|
+
function w(c, b) {
|
|
3500
3499
|
const I = `::${b.builderKey}`, v = new Set(r.value);
|
|
3501
|
-
for (const
|
|
3502
|
-
if (!
|
|
3503
|
-
const L =
|
|
3504
|
-
l(L) === c && v.delete(
|
|
3500
|
+
for (const k of v) {
|
|
3501
|
+
if (!k.endsWith(I)) continue;
|
|
3502
|
+
const L = k.slice(0, -I.length);
|
|
3503
|
+
l(L) === c && v.delete(k);
|
|
3505
3504
|
}
|
|
3506
3505
|
r.value = v;
|
|
3507
3506
|
}
|
|
3508
3507
|
function f(c, b, I) {
|
|
3509
3508
|
const v = b.subject;
|
|
3510
|
-
return c.reduce((
|
|
3509
|
+
return c.reduce((k, L) => {
|
|
3511
3510
|
if (L.inverted)
|
|
3512
|
-
return
|
|
3511
|
+
return k.push(L), k;
|
|
3513
3512
|
const X = L.subject;
|
|
3514
3513
|
if (X === v || l(X) !== v)
|
|
3515
|
-
return
|
|
3514
|
+
return k.push(L), k;
|
|
3516
3515
|
if (Mt(b, L) && Object.keys(Bt(L, I)).length === 0)
|
|
3517
|
-
return
|
|
3518
|
-
const
|
|
3519
|
-
if (Object.keys(
|
|
3520
|
-
const { conditions:
|
|
3521
|
-
|
|
3516
|
+
return k;
|
|
3517
|
+
const d = xn(L, b, I);
|
|
3518
|
+
if (Object.keys(d).length === 0) {
|
|
3519
|
+
const { conditions: N, ...U } = L;
|
|
3520
|
+
k.push(U);
|
|
3522
3521
|
} else
|
|
3523
|
-
|
|
3524
|
-
return
|
|
3522
|
+
k.push({ ...L, conditions: JSON.stringify(d) });
|
|
3523
|
+
return k;
|
|
3525
3524
|
}, []);
|
|
3526
3525
|
}
|
|
3527
3526
|
function h(c, b, I, v = {}) {
|
|
3528
|
-
var
|
|
3529
|
-
const
|
|
3527
|
+
var x;
|
|
3528
|
+
const k = [...e.value];
|
|
3530
3529
|
let L = c.index;
|
|
3531
|
-
const X = b.toCondition(I),
|
|
3532
|
-
if (L === null && !
|
|
3530
|
+
const X = b.toCondition(I), V = Object.keys(X).length > 0;
|
|
3531
|
+
if (L === null && !V && !v.forceCreateRule) return;
|
|
3533
3532
|
if (L === null) {
|
|
3534
|
-
const j =
|
|
3533
|
+
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3535
3534
|
if (j !== -1)
|
|
3536
3535
|
L = j;
|
|
3537
3536
|
else {
|
|
3538
|
-
const
|
|
3539
|
-
if (!
|
|
3537
|
+
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
|
+
if (!G) return;
|
|
3540
3539
|
const {
|
|
3541
|
-
category:
|
|
3540
|
+
category: W,
|
|
3542
3541
|
showByFeatureFlag: B,
|
|
3543
3542
|
isCategoryCover: Y,
|
|
3544
3543
|
...ne
|
|
3545
|
-
} =
|
|
3546
|
-
|
|
3544
|
+
} = G;
|
|
3545
|
+
k.push({
|
|
3547
3546
|
...ne,
|
|
3548
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3549
|
-
}), L =
|
|
3548
|
+
}), L = k.length - 1;
|
|
3550
3549
|
}
|
|
3551
3550
|
}
|
|
3552
|
-
const
|
|
3553
|
-
|
|
3554
|
-
.../* @__PURE__ */ new Set([...
|
|
3551
|
+
const d = { ...k[L] };
|
|
3552
|
+
d.actions = [
|
|
3553
|
+
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3555
3554
|
];
|
|
3556
|
-
const
|
|
3557
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3558
|
-
const j = A(c.subject, b),
|
|
3555
|
+
const N = We(d), U = wt(N, [{ builder: b, formValue: I }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), k[L] = d, sn(c.subject, t.value)) {
|
|
3557
|
+
const j = A(c.subject, b), G = () => {
|
|
3559
3558
|
var B;
|
|
3560
|
-
|
|
3561
|
-
},
|
|
3559
|
+
w(c.subject, b), n(f(k, d, b)), (B = v.afterCommit) == null || B.call(v);
|
|
3560
|
+
}, W = () => {
|
|
3562
3561
|
var B;
|
|
3563
|
-
n(
|
|
3562
|
+
n(k), (B = v.afterCommit) == null || B.call(v);
|
|
3564
3563
|
};
|
|
3565
3564
|
if (j.length === 0) {
|
|
3566
|
-
|
|
3565
|
+
G();
|
|
3567
3566
|
return;
|
|
3568
3567
|
}
|
|
3569
|
-
v.onOverridesConflict ? v.onOverridesConflict({ override:
|
|
3568
|
+
v.onOverridesConflict ? v.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3570
3569
|
return;
|
|
3571
3570
|
}
|
|
3572
|
-
n(
|
|
3571
|
+
n(k), (x = v.afterCommit) == null || x.call(v);
|
|
3573
3572
|
}
|
|
3574
3573
|
function S(c, b, I = {}) {
|
|
3575
3574
|
if (b.length === 0) return;
|
|
3576
3575
|
const v = [...e.value];
|
|
3577
|
-
let
|
|
3576
|
+
let k = v.findIndex((j) => !j.inverted && j.subject === c.subject), L = k === -1 ? void 0 : { ...v[k] }, X = We(L ?? {}) ?? {};
|
|
3578
3577
|
for (const j of b) {
|
|
3579
|
-
const
|
|
3580
|
-
X =
|
|
3578
|
+
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
+
X = wt(X, [{ builder: j.builder, formValue: G }]);
|
|
3581
3580
|
}
|
|
3582
|
-
const
|
|
3583
|
-
if (!L && (Object.keys(X).length > 0 ||
|
|
3581
|
+
const V = b.some((j) => j.mode === "custom");
|
|
3582
|
+
if (!L && (Object.keys(X).length > 0 || V)) {
|
|
3584
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3585
3584
|
if (!j) return;
|
|
3586
3585
|
const {
|
|
3587
|
-
category:
|
|
3588
|
-
showByFeatureFlag:
|
|
3586
|
+
category: G,
|
|
3587
|
+
showByFeatureFlag: W,
|
|
3589
3588
|
isCategoryCover: B,
|
|
3590
3589
|
...Y
|
|
3591
3590
|
} = j;
|
|
3592
3591
|
L = {
|
|
3593
3592
|
...Y,
|
|
3594
3593
|
actions: c.actions.length > 0 ? c.actions : Y.actions
|
|
3595
|
-
}, v.push(L),
|
|
3594
|
+
}, v.push(L), k = v.length - 1;
|
|
3596
3595
|
}
|
|
3597
3596
|
if (L) {
|
|
3598
|
-
const j = l(c.subject),
|
|
3599
|
-
if (!
|
|
3600
|
-
v.splice(
|
|
3597
|
+
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3598
|
+
if (!V && Object.keys(X).length === 0 && !!G && Mt(G, L))
|
|
3599
|
+
v.splice(k, 1), L = void 0;
|
|
3601
3600
|
else {
|
|
3602
3601
|
if (L.actions = [
|
|
3603
3602
|
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3604
|
-
],
|
|
3603
|
+
], G)
|
|
3605
3604
|
for (const B of b)
|
|
3606
3605
|
B.mode === "inherit" && (X = {
|
|
3607
3606
|
...X,
|
|
3608
|
-
...tt(
|
|
3607
|
+
...tt(We(G), B.builder)
|
|
3609
3608
|
});
|
|
3610
|
-
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), v[
|
|
3609
|
+
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), v[k] = L;
|
|
3611
3610
|
}
|
|
3612
3611
|
}
|
|
3613
|
-
const
|
|
3612
|
+
const d = () => {
|
|
3614
3613
|
const j = new Set(r.value);
|
|
3615
|
-
for (const
|
|
3616
|
-
const
|
|
3617
|
-
|
|
3614
|
+
for (const G of b) {
|
|
3615
|
+
const W = gt(c.subject, G.builder);
|
|
3616
|
+
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3618
3617
|
}
|
|
3619
3618
|
r.value = j;
|
|
3620
|
-
},
|
|
3621
|
-
var
|
|
3622
|
-
|
|
3619
|
+
}, N = (j) => {
|
|
3620
|
+
var G;
|
|
3621
|
+
d(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3623
3622
|
};
|
|
3624
3623
|
if (!sn(c.subject, t.value) || !L) {
|
|
3625
|
-
|
|
3624
|
+
N(v);
|
|
3626
3625
|
return;
|
|
3627
3626
|
}
|
|
3628
|
-
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0),
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0), x = () => {
|
|
3629
3628
|
let j = v;
|
|
3630
|
-
for (const
|
|
3631
|
-
|
|
3632
|
-
|
|
3629
|
+
for (const G of b.map((W) => W.builder))
|
|
3630
|
+
w(c.subject, G), j = f(j, L, G);
|
|
3631
|
+
N(j);
|
|
3633
3632
|
};
|
|
3634
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3635
|
-
I.onOverridesConflict({ override:
|
|
3634
|
+
I.onOverridesConflict({ override: x, keep: () => N(v) });
|
|
3636
3635
|
return;
|
|
3637
3636
|
}
|
|
3638
|
-
U.length > 0 ?
|
|
3637
|
+
U.length > 0 ? N(v) : x();
|
|
3639
3638
|
}
|
|
3640
3639
|
return {
|
|
3641
3640
|
getCoverSubject: l,
|
|
3642
|
-
coverLabel:
|
|
3641
|
+
coverLabel: m,
|
|
3643
3642
|
shouldShowInheritToggle: g,
|
|
3644
3643
|
inheritMode: y,
|
|
3645
3644
|
setInheritMode: F,
|
|
3646
3645
|
inheritedSummary: T,
|
|
3647
|
-
getEffectiveActions:
|
|
3646
|
+
getEffectiveActions: D,
|
|
3648
3647
|
updateBuilderCondition: h,
|
|
3649
3648
|
applyConditionDrafts: S
|
|
3650
3649
|
};
|
|
3651
3650
|
}
|
|
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",
|
|
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" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", wa = /* @__PURE__ */ Ae({
|
|
3653
3652
|
__name: "PortalPermissionEditor",
|
|
3654
3653
|
props: /* @__PURE__ */ tn({
|
|
3655
3654
|
disable: {
|
|
@@ -3666,18 +3665,18 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3666
3665
|
}),
|
|
3667
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3668
3667
|
setup(e, { emit: t }) {
|
|
3669
|
-
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(),
|
|
3668
|
+
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3670
3669
|
fetchCustomReportPermissions: y,
|
|
3671
3670
|
customReportPermissions: T
|
|
3672
|
-
} = Ir(),
|
|
3673
|
-
...
|
|
3671
|
+
} = Ir(), C = z(() => [
|
|
3672
|
+
...Gn,
|
|
3674
3673
|
...T.value
|
|
3675
3674
|
]), F = z(() => {
|
|
3676
|
-
const O =
|
|
3677
|
-
return
|
|
3675
|
+
const O = m.currentBusiness.value, s = m.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3676
|
+
return ma(O, o);
|
|
3678
3677
|
});
|
|
3679
|
-
function
|
|
3680
|
-
return
|
|
3678
|
+
function D(O) {
|
|
3679
|
+
return C.value.find((s) => s.subject === O);
|
|
3681
3680
|
}
|
|
3682
3681
|
function A(O, s) {
|
|
3683
3682
|
return rn(O).filter(
|
|
@@ -3687,8 +3686,8 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3687
3686
|
}
|
|
3688
3687
|
);
|
|
3689
3688
|
}
|
|
3690
|
-
const
|
|
3691
|
-
const O =
|
|
3689
|
+
const w = z(() => {
|
|
3690
|
+
const O = C.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3692
3691
|
return yr(
|
|
3693
3692
|
r.inheritPermissions.map((o) => ({
|
|
3694
3693
|
...o,
|
|
@@ -3730,7 +3729,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3730
3729
|
return Lt(
|
|
3731
3730
|
O,
|
|
3732
3731
|
"roleId",
|
|
3733
|
-
|
|
3732
|
+
V.value.map((s) => s._id)
|
|
3734
3733
|
);
|
|
3735
3734
|
}), c = [
|
|
3736
3735
|
he.Subject.Business.restaurant,
|
|
@@ -3747,7 +3746,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3747
3746
|
label: O.profile.name,
|
|
3748
3747
|
value: O._id
|
|
3749
3748
|
})));
|
|
3750
|
-
function
|
|
3749
|
+
function k(O) {
|
|
3751
3750
|
const s = L(n.value, O);
|
|
3752
3751
|
n.value = s;
|
|
3753
3752
|
}
|
|
@@ -3764,25 +3763,25 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3764
3763
|
}
|
|
3765
3764
|
return o;
|
|
3766
3765
|
}
|
|
3767
|
-
const { restaurants: X } =
|
|
3766
|
+
const { restaurants: X } = m, V = Mr().roles, d = z(() => X.value.map((O) => ({
|
|
3768
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3769
3768
|
value: O._id
|
|
3770
|
-
}))),
|
|
3771
|
-
function
|
|
3772
|
-
const s =
|
|
3769
|
+
}))), N = z(() => X.value.reduce((O, s) => (O[s._id] = V.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3770
|
+
function x(O) {
|
|
3771
|
+
const s = G(n.value, O);
|
|
3773
3772
|
n.value = s;
|
|
3774
3773
|
}
|
|
3775
|
-
const j = z(() =>
|
|
3776
|
-
function
|
|
3774
|
+
const j = z(() => Cr(n.value));
|
|
3775
|
+
function G(O, s) {
|
|
3777
3776
|
var _;
|
|
3778
3777
|
let o = It(
|
|
3779
3778
|
O.filter(
|
|
3780
|
-
(
|
|
3779
|
+
(R) => R.subject !== he.Subject.Business.restaurant && R.subject !== he.Subject.Restaurant.restaurant
|
|
3781
3780
|
)
|
|
3782
3781
|
);
|
|
3783
3782
|
if (!s || s.length > 0) {
|
|
3784
3783
|
const {
|
|
3785
|
-
category:
|
|
3784
|
+
category: R,
|
|
3786
3785
|
showByFeatureFlag: M,
|
|
3787
3786
|
...P
|
|
3788
3787
|
} = Lr.restaurant;
|
|
@@ -3794,17 +3793,17 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3794
3793
|
s && (p.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(p);
|
|
3795
3794
|
}
|
|
3796
3795
|
if (s) {
|
|
3797
|
-
const
|
|
3798
|
-
...new Set(s.map((P) =>
|
|
3799
|
-
], M =
|
|
3800
|
-
|
|
3796
|
+
const R = [
|
|
3797
|
+
...new Set(s.map((P) => N.value[P]).flatMap((P) => P))
|
|
3798
|
+
], M = V.value.map((P) => P._id);
|
|
3799
|
+
R.length !== M.length && (o = B(
|
|
3801
3800
|
o,
|
|
3802
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3801
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3803
3802
|
));
|
|
3804
3803
|
}
|
|
3805
3804
|
return o;
|
|
3806
3805
|
}
|
|
3807
|
-
function
|
|
3806
|
+
function W(O) {
|
|
3808
3807
|
const s = B(n.value, O);
|
|
3809
3808
|
n.value = s;
|
|
3810
3809
|
}
|
|
@@ -3822,7 +3821,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3822
3821
|
}
|
|
3823
3822
|
return o;
|
|
3824
3823
|
}
|
|
3825
|
-
|
|
3824
|
+
Vn(async () => {
|
|
3826
3825
|
await Promise.all([
|
|
3827
3826
|
la.readWarehouses().then((O) => I.value = O),
|
|
3828
3827
|
y()
|
|
@@ -3838,9 +3837,9 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3838
3837
|
if (o.inverted) return o;
|
|
3839
3838
|
const _ = o.actions;
|
|
3840
3839
|
if (!_.includes("manage")) return o;
|
|
3841
|
-
const
|
|
3842
|
-
if (!
|
|
3843
|
-
const M =
|
|
3840
|
+
const R = D(o.subject);
|
|
3841
|
+
if (!R) return o;
|
|
3842
|
+
const M = R.actions;
|
|
3844
3843
|
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3845
3844
|
}));
|
|
3846
3845
|
function ne(O) {
|
|
@@ -3848,11 +3847,11 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3848
3847
|
Y.value,
|
|
3849
3848
|
O,
|
|
3850
3849
|
n.value,
|
|
3851
|
-
|
|
3850
|
+
D
|
|
3852
3851
|
);
|
|
3853
3852
|
}
|
|
3854
3853
|
const Q = z(() => new Set(
|
|
3855
|
-
|
|
3854
|
+
C.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3856
3855
|
)), _e = z(() => {
|
|
3857
3856
|
const O = /* @__PURE__ */ new Map();
|
|
3858
3857
|
return Y.value.map((s) => ({
|
|
@@ -3862,8 +3861,8 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3862
3861
|
)
|
|
3863
3862
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3864
3863
|
var P;
|
|
3865
|
-
const _ = s.actions,
|
|
3866
|
-
if (
|
|
3864
|
+
const _ = s.actions, R = A(s.subject, _);
|
|
3865
|
+
if (R.length === 0) return;
|
|
3867
3866
|
let M;
|
|
3868
3867
|
try {
|
|
3869
3868
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
@@ -3873,38 +3872,38 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3873
3872
|
O.set(s.subject, {
|
|
3874
3873
|
index: o >= 0 ? o : null,
|
|
3875
3874
|
subject: s.subject,
|
|
3876
|
-
label: ((P =
|
|
3875
|
+
label: ((P = D(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3877
3876
|
actions: _,
|
|
3878
3877
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3879
|
-
sections:
|
|
3878
|
+
sections: R.map((p) => ({
|
|
3880
3879
|
builder: p,
|
|
3881
3880
|
formValue: p.fromCondition(tt(M, p))
|
|
3882
3881
|
}))
|
|
3883
3882
|
});
|
|
3884
3883
|
}), O;
|
|
3885
|
-
}), ce = fa(n,
|
|
3884
|
+
}), ce = fa(n, C, (O) => {
|
|
3886
3885
|
n.value = O;
|
|
3887
3886
|
}), se = Tr(n), fe = rt(null);
|
|
3888
3887
|
function q(O, s) {
|
|
3889
3888
|
const o = _e.value.get(O);
|
|
3890
3889
|
if (o) return o;
|
|
3891
|
-
const _ = ce.getEffectiveActions(O),
|
|
3892
|
-
if (
|
|
3890
|
+
const _ = ce.getEffectiveActions(O), R = A(O, _);
|
|
3891
|
+
if (R.length !== 0)
|
|
3893
3892
|
return {
|
|
3894
3893
|
index: null,
|
|
3895
3894
|
subject: O,
|
|
3896
3895
|
label: s,
|
|
3897
3896
|
actions: _,
|
|
3898
|
-
sections:
|
|
3897
|
+
sections: R.map((M) => ({
|
|
3899
3898
|
builder: M,
|
|
3900
3899
|
formValue: M.fromCondition(void 0)
|
|
3901
3900
|
}))
|
|
3902
3901
|
};
|
|
3903
3902
|
}
|
|
3904
|
-
function
|
|
3903
|
+
function we(O, s) {
|
|
3905
3904
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3906
3905
|
if (o) return o.formValue;
|
|
3907
|
-
const _ = O.sections.find((
|
|
3906
|
+
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3908
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3909
3908
|
}
|
|
3910
3909
|
function K(O, s) {
|
|
@@ -3924,15 +3923,15 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3924
3923
|
}
|
|
3925
3924
|
);
|
|
3926
3925
|
}
|
|
3927
|
-
function
|
|
3926
|
+
function $e(O, s, o) {
|
|
3928
3927
|
const _ = se.getDraft({
|
|
3929
3928
|
subject: O.subject,
|
|
3930
3929
|
builderKey: s.builderKey
|
|
3931
|
-
}),
|
|
3930
|
+
}), R = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3932
3931
|
se.setDraft(
|
|
3933
3932
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3934
3933
|
{
|
|
3935
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3934
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (R == null ? void 0 : R.formValue),
|
|
3936
3935
|
inheritMode: o
|
|
3937
3936
|
}
|
|
3938
3937
|
);
|
|
@@ -3940,13 +3939,13 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3940
3939
|
function Ke(O) {
|
|
3941
3940
|
return se.hasDraftsForSubject(O);
|
|
3942
3941
|
}
|
|
3943
|
-
function
|
|
3942
|
+
function xe(O, s) {
|
|
3944
3943
|
const o = O.sections.flatMap((_) => {
|
|
3945
|
-
const
|
|
3944
|
+
const R = se.getDraft({
|
|
3946
3945
|
subject: O.subject,
|
|
3947
3946
|
builderKey: _.builder.builderKey
|
|
3948
3947
|
});
|
|
3949
|
-
return
|
|
3948
|
+
return R ? [{ builder: _.builder, form: R.formValue, mode: R.inheritMode ?? "custom" }] : [];
|
|
3950
3949
|
});
|
|
3951
3950
|
ce.applyConditionDrafts(O, o, {
|
|
3952
3951
|
afterCommit: () => {
|
|
@@ -3958,12 +3957,12 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3958
3957
|
function Fe(O) {
|
|
3959
3958
|
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);
|
|
3960
3959
|
}
|
|
3961
|
-
let
|
|
3960
|
+
let Ne = !1;
|
|
3962
3961
|
function Be(O, s = {}) {
|
|
3963
3962
|
return {
|
|
3964
3963
|
...s,
|
|
3965
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3966
|
-
|
|
3965
|
+
Ne || (Ne = !0, u.open({
|
|
3967
3966
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3968
3967
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3969
3968
|
cover: O.label
|
|
@@ -3979,24 +3978,24 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3979
3978
|
close: !1
|
|
3980
3979
|
}
|
|
3981
3980
|
}).onPrimary(() => {
|
|
3982
|
-
o(),
|
|
3981
|
+
o(), Ne = !1, u.close();
|
|
3983
3982
|
}).onSecondary(() => {
|
|
3984
|
-
_(),
|
|
3983
|
+
_(), Ne = !1, u.close();
|
|
3985
3984
|
}).onClose(() => {
|
|
3986
|
-
|
|
3985
|
+
Ne = !1;
|
|
3987
3986
|
}));
|
|
3988
3987
|
}
|
|
3989
3988
|
};
|
|
3990
3989
|
}
|
|
3991
|
-
return
|
|
3990
|
+
return Dt(
|
|
3992
3991
|
n,
|
|
3993
3992
|
(O) => {
|
|
3994
3993
|
l("permissionChanged", O);
|
|
3995
3994
|
},
|
|
3996
3995
|
{ deep: !0 }
|
|
3997
3996
|
), (O, s) => {
|
|
3998
|
-
const o =
|
|
3999
|
-
return
|
|
3997
|
+
const o = De("FmIcon"), _ = De("FmBottomSheet"), R = De("FmPopover");
|
|
3998
|
+
return $(), ie("div", _a, [
|
|
4000
3999
|
ae("div", va, [
|
|
4001
4000
|
ue(Ho, {
|
|
4002
4001
|
"model-value": Y.value,
|
|
@@ -4004,17 +4003,17 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4004
4003
|
"additional-permissions": H(T),
|
|
4005
4004
|
"onUpdate:modelValue": ne
|
|
4006
4005
|
}, et({ _: 2 }, [
|
|
4007
|
-
Ee(
|
|
4006
|
+
Ee(w.value, (M) => ({
|
|
4008
4007
|
name: `checkbox-${M.id}-append`,
|
|
4009
|
-
fn:
|
|
4008
|
+
fn: me(() => [
|
|
4010
4009
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4011
4010
|
])
|
|
4012
4011
|
})),
|
|
4013
4012
|
Ee(Q.value, (M) => ({
|
|
4014
4013
|
name: `checkbox-${M}-icon`,
|
|
4015
|
-
fn:
|
|
4016
|
-
p && q(M, P.label) ? (
|
|
4017
|
-
g.value ? (
|
|
4014
|
+
fn: me(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
|
+
p && q(M, P.label) ? ($(), ie(ke, { key: 0 }, [
|
|
4016
|
+
g.value ? ($(), Ce(_, {
|
|
4018
4017
|
key: 0,
|
|
4019
4018
|
"model-value": fe.value === M,
|
|
4020
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
@@ -4027,7 +4026,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4027
4026
|
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4028
4027
|
}
|
|
4029
4028
|
}, {
|
|
4030
|
-
"bottom-sheet-button":
|
|
4029
|
+
"bottom-sheet-button": me(() => [
|
|
4031
4030
|
ae("div", pa, [
|
|
4032
4031
|
ue(o, {
|
|
4033
4032
|
name: "settings",
|
|
@@ -4039,7 +4038,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4039
4038
|
}, null, 8, ["class"])
|
|
4040
4039
|
])
|
|
4041
4040
|
]),
|
|
4042
|
-
default:
|
|
4041
|
+
default: me(() => [
|
|
4043
4042
|
ue(Fn, {
|
|
4044
4043
|
entry: q(M, P.label),
|
|
4045
4044
|
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
@@ -4047,17 +4046,17 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4047
4046
|
"time-zone": F.value,
|
|
4048
4047
|
"cover-override": H(ce),
|
|
4049
4048
|
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4050
|
-
"form-value-for": (E) =>
|
|
4049
|
+
"form-value-for": (E) => we(q(M, P.label), E),
|
|
4051
4050
|
"has-changes": Ke(M),
|
|
4052
4051
|
disable: e.disable,
|
|
4053
4052
|
"full-width": !0,
|
|
4054
|
-
onUpdateInheritMode: ({ builder: E, mode:
|
|
4055
|
-
onUpdateForm: ({ builder: E, form:
|
|
4056
|
-
onApply: (E) =>
|
|
4053
|
+
onUpdateInheritMode: ({ builder: E, mode: J }) => $e(q(M, P.label), E, J),
|
|
4054
|
+
onUpdateForm: ({ builder: E, form: J }) => ve(q(M, P.label), E, J),
|
|
4055
|
+
onApply: (E) => xe(q(M, P.label), () => fe.value = null)
|
|
4057
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4058
4057
|
]),
|
|
4059
4058
|
_: 2
|
|
4060
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : ($(), Ce(R, {
|
|
4061
4060
|
key: 1,
|
|
4062
4061
|
disabled: e.disable,
|
|
4063
4062
|
"z-index": 100,
|
|
@@ -4067,7 +4066,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4067
4066
|
E || H(se).clearDraftsForSubject(M);
|
|
4068
4067
|
}
|
|
4069
4068
|
}, {
|
|
4070
|
-
"popover-button":
|
|
4069
|
+
"popover-button": me(() => [
|
|
4071
4070
|
ae("div", ha, [
|
|
4072
4071
|
ue(o, {
|
|
4073
4072
|
name: "settings",
|
|
@@ -4079,32 +4078,32 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4079
4078
|
}, null, 8, ["class"])
|
|
4080
4079
|
])
|
|
4081
4080
|
]),
|
|
4082
|
-
default:
|
|
4081
|
+
default: me(({ hide: E }) => [
|
|
4083
4082
|
ue(Fn, {
|
|
4084
4083
|
entry: q(M, P.label),
|
|
4085
|
-
builders: q(M, P.label).sections.map((
|
|
4084
|
+
builders: q(M, P.label).sections.map((J) => J.builder),
|
|
4086
4085
|
subject: M,
|
|
4087
4086
|
"time-zone": F.value,
|
|
4088
4087
|
"cover-override": H(ce),
|
|
4089
4088
|
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4090
4089
|
context: q(M, P.label).label
|
|
4091
4090
|
}),
|
|
4092
|
-
"inherit-mode-for": (
|
|
4093
|
-
"form-value-for": (
|
|
4091
|
+
"inherit-mode-for": (J) => K(q(M, P.label), J),
|
|
4092
|
+
"form-value-for": (J) => we(q(M, P.label), J),
|
|
4094
4093
|
"has-changes": Ke(M),
|
|
4095
4094
|
disable: e.disable,
|
|
4096
|
-
onUpdateInheritMode: ({ builder:
|
|
4095
|
+
onUpdateInheritMode: ({ builder: J, mode: le }) => $e(
|
|
4097
4096
|
q(M, P.label),
|
|
4098
|
-
|
|
4097
|
+
J,
|
|
4099
4098
|
le
|
|
4100
4099
|
),
|
|
4101
|
-
onUpdateForm: ({ builder:
|
|
4102
|
-
onApply: (
|
|
4100
|
+
onUpdateForm: ({ builder: J, form: le }) => ve(q(M, P.label), J, le),
|
|
4101
|
+
onApply: (J) => xe(q(M, P.label), E)
|
|
4103
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4104
4103
|
]),
|
|
4105
4104
|
_: 2
|
|
4106
4105
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4107
|
-
], 64)) : (
|
|
4106
|
+
], 64)) : ($(), Ce(o, {
|
|
4108
4107
|
key: 1,
|
|
4109
4108
|
name: "settings",
|
|
4110
4109
|
size: "sm",
|
|
@@ -4115,30 +4114,30 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4115
4114
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4116
4115
|
]),
|
|
4117
4116
|
ae("div", ba, [
|
|
4118
|
-
ue(
|
|
4117
|
+
ue(wn, {
|
|
4119
4118
|
"model-value": b.value,
|
|
4120
4119
|
options: v.value,
|
|
4121
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4122
|
-
"onUpdate:modelValue":
|
|
4121
|
+
"onUpdate:modelValue": k
|
|
4123
4122
|
}, et({ _: 2 }, [
|
|
4124
4123
|
Ee(f.value, (M) => ({
|
|
4125
4124
|
name: `checkbox-${M.id}-append`,
|
|
4126
|
-
fn:
|
|
4125
|
+
fn: me(() => [
|
|
4127
4126
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4128
4127
|
])
|
|
4129
4128
|
}))
|
|
4130
4129
|
]), 1032, ["model-value", "options", "context"])
|
|
4131
4130
|
]),
|
|
4132
4131
|
ae("div", ga, [
|
|
4133
|
-
ue(
|
|
4132
|
+
ue(wn, {
|
|
4134
4133
|
"model-value": U.value,
|
|
4135
|
-
options:
|
|
4134
|
+
options: d.value,
|
|
4136
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4137
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": x
|
|
4138
4137
|
}, et({ _: 2 }, [
|
|
4139
4138
|
Ee(h.value, (M) => ({
|
|
4140
4139
|
name: `checkbox-${M.id}-append`,
|
|
4141
|
-
fn:
|
|
4140
|
+
fn: me(() => [
|
|
4142
4141
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4143
4142
|
])
|
|
4144
4143
|
}))
|
|
@@ -4146,14 +4145,14 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4146
4145
|
]),
|
|
4147
4146
|
ae("div", Ia, [
|
|
4148
4147
|
ue(ra, {
|
|
4149
|
-
roles: H(
|
|
4148
|
+
roles: H(V),
|
|
4150
4149
|
"model-value": j.value,
|
|
4151
4150
|
"restaurant-ids": U.value,
|
|
4152
|
-
"onUpdate:modelValue":
|
|
4151
|
+
"onUpdate:modelValue": W
|
|
4153
4152
|
}, et({ _: 2 }, [
|
|
4154
4153
|
Ee(S.value, (M) => ({
|
|
4155
4154
|
name: `checkbox-${M.id}-append`,
|
|
4156
|
-
fn:
|
|
4155
|
+
fn: me(() => [
|
|
4157
4156
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4158
4157
|
])
|
|
4159
4158
|
}))
|
|
@@ -4164,5 +4163,5 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4164
4163
|
}
|
|
4165
4164
|
});
|
|
4166
4165
|
export {
|
|
4167
|
-
|
|
4166
|
+
wa as _
|
|
4168
4167
|
};
|