@feedmepos/mf-hrm-portal 2.2.5-dev.7 → 2.2.5-dev.9
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-dn-WwNAd.js → ApprovalCodeList-D5l9vIsE.js} +2 -2
- package/dist/{AuditLogList-BqVp9fxD.js → AuditLogList-ByTa5UJY.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DnAet2oc.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js} +2 -2
- package/dist/{EmployeeList-BwTJre5k.js → EmployeeList-Bv6ANk-P.js} +8 -9
- package/dist/{GrantUserList-CZek1r4F.js → GrantUserList-Bt8w3p4j.js} +3 -3
- package/dist/{Main-MjSYZdOq.js → Main-DHJcgePj.js} +5 -5
- package/dist/{Main-CbmA-SYo.js → Main-DkP8dWgn.js} +9 -9
- package/dist/{Main-DVA51sj2.js → Main-DqiGpT4v.js} +2 -2
- package/dist/{PermissionSetList-lkHmXhNm.js → PermissionSetList-BIGv1u67.js} +10 -11
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-cFQDQCal.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-niywl_DX.js} +687 -688
- package/dist/{RoleList-BSs0SmFo.js → RoleList-CH6NDKPU.js} +7 -7
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js +426 -0
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js +690 -0
- package/dist/ScheduleGeneralPage-DJPENJZ2.js +320 -0
- package/dist/SchedulePage-C1egcbIC.js +14421 -0
- package/dist/SchedulePositionPage-OhL_hsqG.js +293 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
- package/dist/{TeamMemberList-Dit_nV6d.js → TeamMemberList-BwfG3go2.js} +8 -9
- package/dist/{TimesheetList-B-FlRO7E.js → TimesheetList-DcoqzbLO.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DZUJR8K_.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RyhiKTSd.js} +2 -2
- package/dist/{app-BpnOPodL.js → app-BcZ6C8M8.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-4GLfSOGZ.js → dayjs.min-Ch0iysTG.js} +1 -1
- package/dist/employee-DwYHFacQ.js +204 -0
- package/dist/{index-DYoVJQTd.js → iteration-D1uWLp0V.js} +726 -698
- package/dist/{lodash-CcFIMCiJ.js → lodash-DErxm7xf.js} +1 -1
- package/dist/{role-OXCiWTVq.js → role-B9VanAny.js} +3 -4
- package/dist/{rule-8iyCO_LZ.js → rule-C4f_Ilzr.js} +36 -37
- package/dist/src/api/schedule/index.d.ts +0 -3
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +32 -2
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +4 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +8 -2
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +4 -6
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +5 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +12 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +14 -7
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +11 -2
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +18 -11
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +5 -3
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +12 -4
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +11 -2
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +53 -3
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1192 -55
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +10 -1
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +5 -5
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +4 -1
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +6 -1
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/data.d.ts +6 -1
- package/dist/src/views/scheduling/schedule-store.d.ts +36 -1
- package/dist/src/views/scheduling/types.d.ts +14 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-C3fuFTUC.js → useReportPermissions-CTr56kBo.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleGeneralPage-DD9n2TUe.js +0 -242
- package/dist/SchedulePage-B0X97zVC.js +0 -10761
- package/dist/SchedulePositionPage-BXz1USn3.js +0 -220
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DAHke2rH.js +0 -201
- package/dist/employee-ChdVnSmd.js +0 -139
- package/dist/index-CilJxsY7.js +0 -70
- package/dist/iteration-CcXrOMQe.js +0 -30
- package/dist/useScheduleOutlet-TPZJHgSY.js +0 -546
- package/dist/useSchedulePositions-DCkaKHQm.js +0 -103
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
1
|
+
import { getCurrentInstance as Xt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as mr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as we, createBlock as Ce, openBlock as J, withCtx as de, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as hr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as pr } 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 Gn, N as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as Or, v as Sr, b as Yn, S as Dt, A as tt, c as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
5
|
+
import { p as Gn, N as Zn, d as Ir, P as yr, w as At, x as Er, y as Cr } from "./rule-C4f_Ilzr.js";
|
|
6
|
+
import { _ as Bt, a as Nr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js";
|
|
7
|
+
import { u as Or, v as Sr, b as Yn, S as Dt, A as tt, c as pe, k as rn, O as Ar } from "./app-BcZ6C8M8.js";
|
|
8
|
+
import { c as It } from "./iteration-D1uWLp0V.js";
|
|
9
9
|
import { r as Lr } from "./string-VNuQNweN.js";
|
|
10
|
-
import "./
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
function Bn(e, t) {
|
|
10
|
+
import { g as Rr, b as kr } from "./restaurant-BTpBmfBV.js";
|
|
11
|
+
import { u as Mr } from "./role-B9VanAny.js";
|
|
12
|
+
function Xn(e, t) {
|
|
14
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
15
14
|
}
|
|
16
15
|
function wr(e) {
|
|
17
16
|
return Array.isArray(e) ? e[0] : e;
|
|
18
17
|
}
|
|
19
18
|
function Dr(e, t) {
|
|
20
|
-
const n = t.find((l) =>
|
|
19
|
+
const n = t.find((l) => Xn(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
23
|
return wr(r.subject);
|
|
25
24
|
}
|
|
26
25
|
function sn(e, t) {
|
|
27
|
-
const n = t.find((r) =>
|
|
26
|
+
const n = t.find((r) => Xn(r.subject, e));
|
|
28
27
|
return !!(n != null && n.isCategoryCover);
|
|
29
28
|
}
|
|
30
29
|
/*!
|
|
@@ -32,9 +31,9 @@ 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", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]",
|
|
34
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", 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
|
-
const
|
|
36
|
+
const Be = () => 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
|
}
|
|
@@ -42,7 +41,7 @@ const Vr = Object.prototype.hasOwnProperty;
|
|
|
42
41
|
function Ae(e, t) {
|
|
43
42
|
return Vr.call(e, t);
|
|
44
43
|
}
|
|
45
|
-
const be = Array.isArray, me = (e) => typeof e == "function",
|
|
44
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && me(e.then) && me(e.catch), Bn = Object.prototype.toString, Ht = (e) => Bn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
46
45
|
function $t(e, t = "") {
|
|
47
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
48
47
|
}
|
|
@@ -61,7 +60,7 @@ function yt(e, t) {
|
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function Zr(e, t, n) {
|
|
65
64
|
return { line: e, column: t, offset: n };
|
|
66
65
|
}
|
|
67
66
|
function Ft(e, t, n) {
|
|
@@ -89,16 +88,16 @@ function Tt(e, t, n = {}) {
|
|
|
89
88
|
const { domain: r, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
90
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function Xr(e) {
|
|
93
92
|
throw e;
|
|
94
93
|
}
|
|
95
|
-
const Pe = " ",
|
|
94
|
+
const Pe = " ", Br = "\r", ye = `
|
|
96
95
|
`, Hr = "\u2028", $r = "\u2029";
|
|
97
96
|
function Jr(e) {
|
|
98
97
|
const t = e;
|
|
99
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
100
|
-
const d = (
|
|
101
|
-
function
|
|
99
|
+
const d = (h) => t[h] === Br && t[h + 1] === ye, u = (h) => t[h] === ye, i = (h) => t[h] === $r, g = (h) => t[h] === Hr, y = (h) => d(h) || u(h) || i(h) || g(h), T = () => n, C = () => r, F = () => l, w = () => a, L = (h) => d(h) || i(h) || g(h) ? ye : t[h], D = () => L(n), f = () => L(n + a);
|
|
100
|
+
function p() {
|
|
102
101
|
return a = 0, y(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
103
102
|
}
|
|
104
103
|
function S() {
|
|
@@ -107,24 +106,24 @@ function Jr(e) {
|
|
|
107
106
|
function c() {
|
|
108
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
109
108
|
}
|
|
110
|
-
function b(
|
|
111
|
-
a =
|
|
109
|
+
function b(h = 0) {
|
|
110
|
+
a = h;
|
|
112
111
|
}
|
|
113
112
|
function I() {
|
|
114
|
-
const
|
|
115
|
-
for (;
|
|
116
|
-
|
|
113
|
+
const h = n + a;
|
|
114
|
+
for (; h !== n; )
|
|
115
|
+
p();
|
|
117
116
|
a = 0;
|
|
118
117
|
}
|
|
119
118
|
return {
|
|
120
119
|
index: T,
|
|
121
|
-
line:
|
|
120
|
+
line: C,
|
|
122
121
|
column: F,
|
|
123
122
|
peekOffset: w,
|
|
124
123
|
charAt: L,
|
|
125
124
|
currentChar: D,
|
|
126
125
|
currentPeek: f,
|
|
127
|
-
next:
|
|
126
|
+
next: p,
|
|
128
127
|
peek: S,
|
|
129
128
|
reset: c,
|
|
130
129
|
resetPeek: b,
|
|
@@ -133,7 +132,7 @@ function Jr(e) {
|
|
|
133
132
|
}
|
|
134
133
|
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
135
134
|
function Qr(e, t = {}) {
|
|
136
|
-
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () =>
|
|
135
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), d = a(), u = l(), i = {
|
|
137
136
|
currentType: 13,
|
|
138
137
|
offset: u,
|
|
139
138
|
startLoc: d,
|
|
@@ -146,22 +145,22 @@ function Qr(e, t = {}) {
|
|
|
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, v = Tt(s, P, {
|
|
153
152
|
domain: zr,
|
|
154
|
-
args:
|
|
153
|
+
args: R
|
|
155
154
|
});
|
|
156
155
|
y(v);
|
|
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 */
|
|
@@ -187,7 +186,7 @@ function Qr(e, t = {}) {
|
|
|
187
186
|
o >= 65 && o <= 90 || // A-Z
|
|
188
187
|
o === 95;
|
|
189
188
|
}
|
|
190
|
-
function
|
|
189
|
+
function p(s) {
|
|
191
190
|
if (s === xe)
|
|
192
191
|
return !1;
|
|
193
192
|
const o = s.charCodeAt(0);
|
|
@@ -198,15 +197,15 @@ function Qr(e, t = {}) {
|
|
|
198
197
|
if (_ !== 2)
|
|
199
198
|
return !1;
|
|
200
199
|
L(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
|
L(s);
|
|
209
|
-
const
|
|
208
|
+
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = p(R);
|
|
210
209
|
return s.resetPeek(), M;
|
|
211
210
|
}
|
|
212
211
|
function b(s, o) {
|
|
@@ -214,44 +213,44 @@ function Qr(e, t = {}) {
|
|
|
214
213
|
if (_ !== 2)
|
|
215
214
|
return !1;
|
|
216
215
|
L(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
|
L(s);
|
|
225
|
-
const
|
|
226
|
-
return s.resetPeek(),
|
|
224
|
+
const R = s.currentPeek() === ".";
|
|
225
|
+
return s.resetPeek(), R;
|
|
227
226
|
}
|
|
228
|
-
function
|
|
227
|
+
function h(s, o) {
|
|
229
228
|
const { currentType: _ } = o;
|
|
230
229
|
if (_ !== 8)
|
|
231
230
|
return !1;
|
|
232
231
|
L(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
|
L(s);
|
|
241
|
-
const
|
|
242
|
-
return s.resetPeek(),
|
|
240
|
+
const R = s.currentPeek() === ":";
|
|
241
|
+
return s.resetPeek(), R;
|
|
243
242
|
}
|
|
244
243
|
function A(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()) : x(s, !1);
|
|
250
|
+
}, M = R();
|
|
252
251
|
return s.resetPeek(), M;
|
|
253
252
|
}
|
|
254
|
-
function
|
|
253
|
+
function B(s) {
|
|
255
254
|
L(s);
|
|
256
255
|
const o = s.currentPeek() === "|";
|
|
257
256
|
return s.resetPeek(), o;
|
|
@@ -260,14 +259,14 @@ function Qr(e, t = {}) {
|
|
|
260
259
|
const _ = (M = !1, P = "") => {
|
|
261
260
|
const v = s.currentPeek();
|
|
262
261
|
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === ye) : v === Pe ? (s.peek(), _(!0, Pe)) : v === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
263
|
-
},
|
|
264
|
-
return o && s.resetPeek(),
|
|
262
|
+
}, R = _();
|
|
263
|
+
return o && s.resetPeek(), R;
|
|
265
264
|
}
|
|
266
265
|
function m(s, o) {
|
|
267
266
|
const _ = s.currentChar();
|
|
268
267
|
return _ === xe ? xe : 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,7 +275,7 @@ function Qr(e, t = {}) {
|
|
|
276
275
|
o === 36;
|
|
277
276
|
}
|
|
278
277
|
function U(s) {
|
|
279
|
-
return m(s,
|
|
278
|
+
return m(s, N);
|
|
280
279
|
}
|
|
281
280
|
function V(s) {
|
|
282
281
|
const o = s.charCodeAt(0);
|
|
@@ -303,7 +302,7 @@ function Qr(e, t = {}) {
|
|
|
303
302
|
o >= 65 && o <= 70 || // A-F
|
|
304
303
|
o >= 97 && o <= 102;
|
|
305
304
|
}
|
|
306
|
-
function
|
|
305
|
+
function X(s) {
|
|
307
306
|
return m(s, Y);
|
|
308
307
|
}
|
|
309
308
|
function ne(s) {
|
|
@@ -322,7 +321,7 @@ function Qr(e, t = {}) {
|
|
|
322
321
|
if (x(s))
|
|
323
322
|
o += _, s.next();
|
|
324
323
|
else {
|
|
325
|
-
if (
|
|
324
|
+
if (B(s))
|
|
326
325
|
break;
|
|
327
326
|
o += _, s.next();
|
|
328
327
|
}
|
|
@@ -351,8 +350,8 @@ function Qr(e, t = {}) {
|
|
|
351
350
|
let o = "", _ = "";
|
|
352
351
|
for (; o = m(s, se); )
|
|
353
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
354
|
-
const
|
|
355
|
-
return
|
|
353
|
+
const R = s.currentChar();
|
|
354
|
+
return R === ye || R === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
356
355
|
}
|
|
357
356
|
function q(s) {
|
|
358
357
|
const o = s.currentChar();
|
|
@@ -370,21 +369,21 @@ function Qr(e, t = {}) {
|
|
|
370
369
|
}
|
|
371
370
|
function De(s, o, _) {
|
|
372
371
|
w(s, o);
|
|
373
|
-
let
|
|
372
|
+
let R = "";
|
|
374
373
|
for (let M = 0; M < _; M++) {
|
|
375
|
-
const P =
|
|
374
|
+
const P = X(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
|
-
function
|
|
386
|
+
function he(s) {
|
|
388
387
|
D(s);
|
|
389
388
|
let o = "", _ = "";
|
|
390
389
|
for (; o = m(s, K); )
|
|
@@ -399,8 +398,8 @@ 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
|
}
|
|
@@ -417,68 +416,68 @@ function Qr(e, t = {}) {
|
|
|
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
|
), D(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
431
|
), o.braceNest--, o.braceNest > 0 && D(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, v = !0;
|
|
437
|
-
if (
|
|
438
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
436
|
+
if (B(s))
|
|
437
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = C(o, 1, Ve(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, Ye(s, o);
|
|
441
440
|
if (M = S(s, o))
|
|
442
|
-
return _ =
|
|
441
|
+
return _ = C(o, 4, _e(s)), D(s), _;
|
|
443
442
|
if (P = c(s, o))
|
|
444
|
-
return _ =
|
|
443
|
+
return _ = C(o, 5, ce(s)), D(s), _;
|
|
445
444
|
if (v = b(s, o))
|
|
446
|
-
return _ =
|
|
445
|
+
return _ = C(o, 6, fe(s)), D(s), _;
|
|
447
446
|
if (!M && !P && !v)
|
|
448
|
-
return _ =
|
|
447
|
+
return _ = C(o, 12, he(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(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 D(s), s.next(),
|
|
466
|
+
return D(s), s.next(), C(
|
|
468
467
|
o,
|
|
469
468
|
8,
|
|
470
469
|
"."
|
|
471
470
|
/* TokenChars.LinkedDot */
|
|
472
471
|
);
|
|
473
472
|
case ":":
|
|
474
|
-
return D(s), s.next(),
|
|
473
|
+
return D(s), s.next(), C(
|
|
475
474
|
o,
|
|
476
475
|
9,
|
|
477
476
|
":"
|
|
478
477
|
/* TokenChars.LinkedDelimiter */
|
|
479
478
|
);
|
|
480
479
|
default:
|
|
481
|
-
return
|
|
480
|
+
return B(s) ? (R = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (D(s), Ne(s, o)) : h(s, o) ? (D(s), C(o, 11, Je(s))) : A(s, o) ? (D(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, Ye(s, o));
|
|
482
481
|
}
|
|
483
482
|
}
|
|
484
483
|
function Ye(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
|
-
if (
|
|
507
|
-
return _ =
|
|
505
|
+
if (B(s))
|
|
506
|
+
return _ = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
508
507
|
if (x(s))
|
|
509
|
-
return
|
|
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() === xe ? C(
|
|
518
517
|
i,
|
|
519
518
|
13
|
|
520
519
|
/* TokenTypes.EOF */
|
|
@@ -542,74 +541,74 @@ function ts(e, t, n) {
|
|
|
542
541
|
}
|
|
543
542
|
function ns(e = {}) {
|
|
544
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
545
|
-
function r(f,
|
|
544
|
+
function r(f, p, S, c, ...b) {
|
|
546
545
|
const I = f.currentPosition();
|
|
547
546
|
if (I.offset += c, I.column += c, n) {
|
|
548
|
-
const
|
|
547
|
+
const h = t ? Ft(S, I) : null, k = Tt(p, h, {
|
|
549
548
|
domain: qr,
|
|
550
549
|
args: b
|
|
551
550
|
});
|
|
552
|
-
n(
|
|
551
|
+
n(k);
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
|
-
function l(f,
|
|
554
|
+
function l(f, p, S) {
|
|
556
555
|
const c = { type: f };
|
|
557
|
-
return t && (c.start =
|
|
556
|
+
return t && (c.start = p, c.end = p, c.loc = { start: S, end: S }), c;
|
|
558
557
|
}
|
|
559
|
-
function a(f,
|
|
560
|
-
t && (f.end =
|
|
558
|
+
function a(f, p, S, c) {
|
|
559
|
+
t && (f.end = p, f.loc && (f.loc.end = S));
|
|
561
560
|
}
|
|
562
|
-
function d(f,
|
|
561
|
+
function d(f, p) {
|
|
563
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
564
|
-
return c.value =
|
|
563
|
+
return c.value = p, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
565
564
|
}
|
|
566
|
-
function u(f,
|
|
565
|
+
function u(f, p) {
|
|
567
566
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(5, c, b);
|
|
568
|
-
return I.index = parseInt(
|
|
567
|
+
return I.index = parseInt(p, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
569
568
|
}
|
|
570
|
-
function i(f,
|
|
569
|
+
function i(f, p) {
|
|
571
570
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
572
|
-
return I.key =
|
|
571
|
+
return I.key = p, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
573
572
|
}
|
|
574
|
-
function g(f,
|
|
573
|
+
function g(f, p) {
|
|
575
574
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
576
|
-
return I.value =
|
|
575
|
+
return I.value = p.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
577
576
|
}
|
|
578
577
|
function y(f) {
|
|
579
|
-
const
|
|
580
|
-
return
|
|
581
|
-
nextConsumeToken:
|
|
578
|
+
const p = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
|
+
return p.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
|
+
nextConsumeToken: p,
|
|
582
581
|
node: I
|
|
583
|
-
}) : (
|
|
582
|
+
}) : (p.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Re(p)), I.value = p.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
584
583
|
node: I
|
|
585
584
|
});
|
|
586
585
|
}
|
|
587
|
-
function T(f,
|
|
586
|
+
function T(f, p) {
|
|
588
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
589
|
-
return c.value =
|
|
588
|
+
return c.value = p, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
590
589
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
590
|
+
function C(f) {
|
|
591
|
+
const p = f.context(), S = l(6, p.offset, p.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,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.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,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.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,
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.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,
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.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,
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Re(c)), S.key = g(f, c.value || "");
|
|
610
609
|
break;
|
|
611
610
|
default: {
|
|
612
|
-
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
611
|
+
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
613
612
|
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
614
613
|
return I.value = "", a(I, b.offset, b.startLoc), S.key = I, a(S, b.offset, b.startLoc), {
|
|
615
614
|
nextConsumeToken: c,
|
|
@@ -622,56 +621,56 @@ function ns(e = {}) {
|
|
|
622
621
|
};
|
|
623
622
|
}
|
|
624
623
|
function F(f) {
|
|
625
|
-
const
|
|
624
|
+
const p = f.context(), S = p.currentType === 1 ? f.currentOffset() : p.offset, c = p.currentType === 1 ? p.endLoc : p.startLoc, b = l(2, S, c);
|
|
626
625
|
b.items = [];
|
|
627
626
|
let I = null;
|
|
628
627
|
do {
|
|
629
628
|
const A = I || f.nextToken();
|
|
630
629
|
switch (I = null, A.type) {
|
|
631
630
|
case 0:
|
|
632
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
631
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Re(A)), b.items.push(d(f, A.value || ""));
|
|
633
632
|
break;
|
|
634
633
|
case 5:
|
|
635
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
634
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Re(A)), b.items.push(u(f, A.value || ""));
|
|
636
635
|
break;
|
|
637
636
|
case 4:
|
|
638
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
637
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Re(A)), b.items.push(i(f, A.value || ""));
|
|
639
638
|
break;
|
|
640
639
|
case 6:
|
|
641
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
640
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Re(A)), b.items.push(g(f, A.value || ""));
|
|
642
641
|
break;
|
|
643
642
|
case 7: {
|
|
644
|
-
const
|
|
645
|
-
b.items.push(
|
|
643
|
+
const B = C(f);
|
|
644
|
+
b.items.push(B.node), I = B.nextConsumeToken || null;
|
|
646
645
|
break;
|
|
647
646
|
}
|
|
648
647
|
}
|
|
649
|
-
} while (
|
|
650
|
-
const
|
|
651
|
-
return a(b,
|
|
648
|
+
} while (p.currentType !== 13 && p.currentType !== 1);
|
|
649
|
+
const h = p.currentType === 1 ? p.lastOffset : f.currentOffset(), k = p.currentType === 1 ? p.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, h, k), b;
|
|
652
651
|
}
|
|
653
|
-
function w(f,
|
|
652
|
+
function w(f, p, S, c) {
|
|
654
653
|
const b = f.context();
|
|
655
654
|
let I = c.items.length === 0;
|
|
656
|
-
const
|
|
657
|
-
|
|
655
|
+
const h = l(1, p, S);
|
|
656
|
+
h.cases = [], h.cases.push(c);
|
|
658
657
|
do {
|
|
659
|
-
const
|
|
660
|
-
I || (I =
|
|
658
|
+
const k = F(f);
|
|
659
|
+
I || (I = k.items.length === 0), h.cases.push(k);
|
|
661
660
|
} while (b.currentType !== 13);
|
|
662
|
-
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(
|
|
661
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(h, f.currentOffset(), f.currentPosition()), h;
|
|
663
662
|
}
|
|
664
663
|
function L(f) {
|
|
665
|
-
const
|
|
666
|
-
return
|
|
664
|
+
const p = f.context(), { offset: S, startLoc: c } = p, b = F(f);
|
|
665
|
+
return p.currentType === 13 ? b : w(f, S, c, b);
|
|
667
666
|
}
|
|
668
667
|
function D(f) {
|
|
669
|
-
const
|
|
670
|
-
return t && c.loc && (c.loc.source = f), c.body = L(
|
|
668
|
+
const p = Qr(f, Ie({}, e)), S = p.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = L(p), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(p, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, p.currentOffset(), p.currentPosition()), c;
|
|
671
670
|
}
|
|
672
671
|
return { parse: D };
|
|
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");
|
|
@@ -839,7 +838,7 @@ function as(e, t) {
|
|
|
839
838
|
const D = --d.indentLevel;
|
|
840
839
|
L && g(D);
|
|
841
840
|
}
|
|
842
|
-
function
|
|
841
|
+
function C() {
|
|
843
842
|
g(d.indentLevel);
|
|
844
843
|
}
|
|
845
844
|
return {
|
|
@@ -847,7 +846,7 @@ function as(e, t) {
|
|
|
847
846
|
push: i,
|
|
848
847
|
indent: y,
|
|
849
848
|
deindent: T,
|
|
850
|
-
newline:
|
|
849
|
+
newline: C,
|
|
851
850
|
helper: (L) => `_${L}`,
|
|
852
851
|
needIndent: () => d.needIndent
|
|
853
852
|
};
|
|
@@ -934,7 +933,7 @@ function st(e, t) {
|
|
|
934
933
|
}
|
|
935
934
|
}
|
|
936
935
|
const ds = (e, t = {}) => {
|
|
937
|
-
const n =
|
|
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
939
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = as(e, {
|
|
@@ -957,13 +956,13 @@ function ms(e, t = {}) {
|
|
|
957
956
|
}
|
|
958
957
|
var fs = { env: { NODE_ENV: "production" } };
|
|
959
958
|
function _s() {
|
|
960
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
959
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
961
960
|
}
|
|
962
961
|
function Lt(e) {
|
|
963
|
-
return (n) =>
|
|
962
|
+
return (n) => hs(n, e);
|
|
964
963
|
}
|
|
965
|
-
function
|
|
966
|
-
const n =
|
|
964
|
+
function hs(e, t) {
|
|
965
|
+
const n = ps(t);
|
|
967
966
|
if (n == null)
|
|
968
967
|
throw it(
|
|
969
968
|
0
|
|
@@ -979,7 +978,7 @@ function ps(e, t) {
|
|
|
979
978
|
return mn(e, n);
|
|
980
979
|
}
|
|
981
980
|
const vs = ["b", "body"];
|
|
982
|
-
function
|
|
981
|
+
function ps(e) {
|
|
983
982
|
return Ge(e, vs);
|
|
984
983
|
}
|
|
985
984
|
const bs = ["c", "cases"];
|
|
@@ -991,7 +990,7 @@ function mn(e, 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
|
}
|
|
@@ -1000,7 +999,7 @@ function ys(e) {
|
|
|
1000
999
|
return Ge(e, Is);
|
|
1001
1000
|
}
|
|
1002
1001
|
const Es = ["i", "items"];
|
|
1003
|
-
function
|
|
1002
|
+
function Cs(e) {
|
|
1004
1003
|
return Ge(e, Es, []);
|
|
1005
1004
|
}
|
|
1006
1005
|
function Pt(e, t) {
|
|
@@ -1038,9 +1037,9 @@ 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 Ge(e,
|
|
1042
|
+
return Ge(e, Ns);
|
|
1044
1043
|
}
|
|
1045
1044
|
const Ts = ["v", "value"];
|
|
1046
1045
|
function _t(e, t) {
|
|
@@ -1074,36 +1073,36 @@ function Ge(e, t, n) {
|
|
|
1074
1073
|
function it(e) {
|
|
1075
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1076
1075
|
}
|
|
1077
|
-
const
|
|
1078
|
-
let
|
|
1076
|
+
const Rs = (e) => e;
|
|
1077
|
+
let ht = oe();
|
|
1079
1078
|
function ot(e) {
|
|
1080
1079
|
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1081
1080
|
}
|
|
1082
|
-
function
|
|
1081
|
+
function ks(e, t = {}) {
|
|
1083
1082
|
let n = !1;
|
|
1084
|
-
const r = t.onError ||
|
|
1083
|
+
const r = t.onError || Xr;
|
|
1085
1084
|
return t.onError = (l) => {
|
|
1086
1085
|
n = !0, r(l);
|
|
1087
1086
|
}, { ...ms(e, t), detectError: n };
|
|
1088
1087
|
}
|
|
1089
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1090
1089
|
function Ms(e, t) {
|
|
1091
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1090
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1092
1091
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1093
|
-
const r = (t.onCacheKey ||
|
|
1092
|
+
const r = (t.onCacheKey || Rs)(e), l = ht[r];
|
|
1094
1093
|
if (l)
|
|
1095
1094
|
return l;
|
|
1096
|
-
const { ast: a, detectError: d } =
|
|
1095
|
+
const { ast: a, detectError: d } = ks(e, {
|
|
1097
1096
|
...t,
|
|
1098
1097
|
location: fs.env.NODE_ENV !== "production",
|
|
1099
1098
|
jit: !0
|
|
1100
1099
|
}), u = Lt(a);
|
|
1101
|
-
return d ? u :
|
|
1100
|
+
return d ? u : ht[r] = u;
|
|
1102
1101
|
} else {
|
|
1103
1102
|
const n = e.cacheKey;
|
|
1104
1103
|
if (n) {
|
|
1105
|
-
const r =
|
|
1106
|
-
return r || (
|
|
1104
|
+
const r = ht[n];
|
|
1105
|
+
return r || (ht[n] = Lt(e));
|
|
1107
1106
|
} else
|
|
1108
1107
|
return Lt(e);
|
|
1109
1108
|
}
|
|
@@ -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
|
-
if (
|
|
1143
|
+
if (Z(e))
|
|
1145
1144
|
return e;
|
|
1146
1145
|
if (me(e)) {
|
|
1147
|
-
if (e.resolvedOnce &&
|
|
1148
|
-
return
|
|
1146
|
+
if (e.resolvedOnce && Rt != null)
|
|
1147
|
+
return Rt;
|
|
1149
1148
|
if (e.constructor.name === "Function") {
|
|
1150
1149
|
const t = e();
|
|
1151
1150
|
if (xr(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
|
|
@@ -1159,11 +1158,11 @@ function fn(e) {
|
|
|
1159
1158
|
function Us(e, t, n) {
|
|
1160
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1161
1160
|
n,
|
|
1162
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1161
|
+
...be(t) ? t : te(t) ? Object.keys(t) : Z(t) ? [t] : [n]
|
|
1163
1162
|
])];
|
|
1164
1163
|
}
|
|
1165
1164
|
function Hn(e, t, n) {
|
|
1166
|
-
const r =
|
|
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) {
|
|
@@ -1172,7 +1171,7 @@ function Hn(e, t, n) {
|
|
|
1172
1171
|
for (; be(d); )
|
|
1173
1172
|
d = _n(a, d, t);
|
|
1174
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1175
|
-
d =
|
|
1174
|
+
d = Z(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(r, a);
|
|
1176
1175
|
}
|
|
1177
1176
|
return a;
|
|
1178
1177
|
}
|
|
@@ -1180,7 +1179,7 @@ function _n(e, t, n) {
|
|
|
1180
1179
|
let r = !0;
|
|
1181
1180
|
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1182
1181
|
const a = t[l];
|
|
1183
|
-
|
|
1182
|
+
Z(a) && (r = Vs(e, t[l], n));
|
|
1184
1183
|
}
|
|
1185
1184
|
return r;
|
|
1186
1185
|
}
|
|
@@ -1202,8 +1201,8 @@ function xs(e, t, n) {
|
|
|
1202
1201
|
}
|
|
1203
1202
|
return r;
|
|
1204
1203
|
}
|
|
1205
|
-
const
|
|
1206
|
-
|
|
1204
|
+
const Ze = [];
|
|
1205
|
+
Ze[
|
|
1207
1206
|
0
|
|
1208
1207
|
/* States.BEFORE_PATH */
|
|
1209
1208
|
] = {
|
|
@@ -1225,7 +1224,7 @@ Xe[
|
|
|
1225
1224
|
/* States.AFTER_PATH */
|
|
1226
1225
|
]
|
|
1227
1226
|
};
|
|
1228
|
-
|
|
1227
|
+
Ze[
|
|
1229
1228
|
1
|
|
1230
1229
|
/* States.IN_PATH */
|
|
1231
1230
|
] = {
|
|
@@ -1246,7 +1245,7 @@ Xe[
|
|
|
1246
1245
|
/* States.AFTER_PATH */
|
|
1247
1246
|
]
|
|
1248
1247
|
};
|
|
1249
|
-
|
|
1248
|
+
Ze[
|
|
1250
1249
|
2
|
|
1251
1250
|
/* States.BEFORE_IDENT */
|
|
1252
1251
|
] = {
|
|
@@ -1265,7 +1264,7 @@ Xe[
|
|
|
1265
1264
|
/* Actions.APPEND */
|
|
1266
1265
|
]
|
|
1267
1266
|
};
|
|
1268
|
-
|
|
1267
|
+
Ze[
|
|
1269
1268
|
3
|
|
1270
1269
|
/* States.IN_IDENT */
|
|
1271
1270
|
] = {
|
|
@@ -1300,7 +1299,7 @@ Xe[
|
|
|
1300
1299
|
/* Actions.PUSH */
|
|
1301
1300
|
]
|
|
1302
1301
|
};
|
|
1303
|
-
|
|
1302
|
+
Ze[
|
|
1304
1303
|
4
|
|
1305
1304
|
/* States.IN_SUB_PATH */
|
|
1306
1305
|
] = {
|
|
@@ -1331,7 +1330,7 @@ Xe[
|
|
|
1331
1330
|
/* Actions.APPEND */
|
|
1332
1331
|
]
|
|
1333
1332
|
};
|
|
1334
|
-
|
|
1333
|
+
Ze[
|
|
1335
1334
|
5
|
|
1336
1335
|
/* States.IN_SINGLE_QUOTE */
|
|
1337
1336
|
] = {
|
|
@@ -1347,7 +1346,7 @@ Xe[
|
|
|
1347
1346
|
/* Actions.APPEND */
|
|
1348
1347
|
]
|
|
1349
1348
|
};
|
|
1350
|
-
|
|
1349
|
+
Ze[
|
|
1351
1350
|
6
|
|
1352
1351
|
/* States.IN_DOUBLE_QUOTE */
|
|
1353
1352
|
] = {
|
|
@@ -1367,7 +1366,7 @@ const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
|
1367
1366
|
function Gs(e) {
|
|
1368
1367
|
return Ws.test(e);
|
|
1369
1368
|
}
|
|
1370
|
-
function
|
|
1369
|
+
function Zs(e) {
|
|
1371
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1372
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1373
1372
|
}
|
|
@@ -1396,45 +1395,45 @@ function Ys(e) {
|
|
|
1396
1395
|
}
|
|
1397
1396
|
return "i";
|
|
1398
1397
|
}
|
|
1399
|
-
function
|
|
1398
|
+
function Xs(e) {
|
|
1400
1399
|
const t = e.trim();
|
|
1401
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ?
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Zs(t) : "*" + t;
|
|
1402
1401
|
}
|
|
1403
|
-
function
|
|
1402
|
+
function Bs(e) {
|
|
1404
1403
|
const t = [];
|
|
1405
1404
|
let n = -1, r = 0, l = 0, a, d, u, i, g, y, T;
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1405
|
+
const C = [];
|
|
1406
|
+
C[
|
|
1408
1407
|
0
|
|
1409
1408
|
/* Actions.APPEND */
|
|
1410
1409
|
] = () => {
|
|
1411
1410
|
d === void 0 ? d = u : d += u;
|
|
1412
|
-
},
|
|
1411
|
+
}, C[
|
|
1413
1412
|
1
|
|
1414
1413
|
/* Actions.PUSH */
|
|
1415
1414
|
] = () => {
|
|
1416
1415
|
d !== void 0 && (t.push(d), d = void 0);
|
|
1417
|
-
},
|
|
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, d === void 0 || (d =
|
|
1434
|
+
if (l = 0, d === void 0 || (d = Xs(d), d === !1))
|
|
1436
1435
|
return !1;
|
|
1437
|
-
|
|
1436
|
+
C[
|
|
1438
1437
|
1
|
|
1439
1438
|
/* Actions.PUSH */
|
|
1440
1439
|
]();
|
|
@@ -1443,28 +1442,28 @@ function Zs(e) {
|
|
|
1443
1442
|
function F() {
|
|
1444
1443
|
const w = e[n + 1];
|
|
1445
1444
|
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1446
|
-
return n++, u = "\\" + w,
|
|
1445
|
+
return n++, u = "\\" + w, 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 = Ys(a), T =
|
|
1452
|
+
if (i = Ys(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;
|
|
1457
1456
|
}
|
|
1458
1457
|
}
|
|
1459
|
-
const
|
|
1458
|
+
const hn = /* @__PURE__ */ new Map();
|
|
1460
1459
|
function Hs(e, t) {
|
|
1461
1460
|
return te(e) ? e[t] : null;
|
|
1462
1461
|
}
|
|
1463
1462
|
function $s(e, t) {
|
|
1464
1463
|
if (!te(e))
|
|
1465
1464
|
return null;
|
|
1466
|
-
let n =
|
|
1467
|
-
if (n || (n =
|
|
1465
|
+
let n = hn.get(t);
|
|
1466
|
+
if (n || (n = Bs(t), n && hn.set(t, n)), !n)
|
|
1468
1467
|
return null;
|
|
1469
1468
|
const r = n.length;
|
|
1470
1469
|
let l = e, a = 0;
|
|
@@ -1476,12 +1475,12 @@ function $s(e, t) {
|
|
|
1476
1475
|
}
|
|
1477
1476
|
return l;
|
|
1478
1477
|
}
|
|
1479
|
-
const Js = "10.0.5", Ot = -1,
|
|
1478
|
+
const Js = "10.0.5", Ot = -1, Ct = "en-US", vn = "", pn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1480
1479
|
function Ks() {
|
|
1481
1480
|
return {
|
|
1482
|
-
upper: (e, t) => t === "text" &&
|
|
1483
|
-
lower: (e, t) => t === "text" &&
|
|
1484
|
-
capitalize: (e, t) => t === "text" &&
|
|
1481
|
+
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
|
+
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
+
capitalize: (e, t) => t === "text" && Z(e) ? pn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? pn(e.children) : e
|
|
1485
1484
|
};
|
|
1486
1485
|
}
|
|
1487
1486
|
let $n;
|
|
@@ -1506,7 +1505,7 @@ const bn = (e) => {
|
|
|
1506
1505
|
}, no = () => Qn;
|
|
1507
1506
|
let gn = 0;
|
|
1508
1507
|
function ro(e = {}) {
|
|
1509
|
-
const t = me(e.onWarn) ? e.onWarn : Gr, n =
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Gr, n = Z(e.version) ? e.version : Js, r = Z(e.locale) || me(e.locale) ? e.locale : Ct, l = me(r) ? Ct : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = 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 = me(e.missing) ? e.missing : null, C = ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, p = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Hs, I = me(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, h = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, A = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), B = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), x = te(k.__meta) ? k.__meta : {};
|
|
1510
1509
|
gn++;
|
|
1511
1510
|
const m = {
|
|
1512
1511
|
version: n,
|
|
@@ -1517,29 +1516,29 @@ function ro(e = {}) {
|
|
|
1517
1516
|
modifiers: g,
|
|
1518
1517
|
pluralRules: y,
|
|
1519
1518
|
missing: T,
|
|
1520
|
-
missingWarn:
|
|
1519
|
+
missingWarn: C,
|
|
1521
1520
|
fallbackWarn: F,
|
|
1522
1521
|
fallbackFormat: w,
|
|
1523
1522
|
unresolving: L,
|
|
1524
1523
|
postTranslation: D,
|
|
1525
1524
|
processor: f,
|
|
1526
|
-
warnHtmlMessage:
|
|
1525
|
+
warnHtmlMessage: p,
|
|
1527
1526
|
escapeParameter: S,
|
|
1528
1527
|
messageCompiler: c,
|
|
1529
1528
|
messageResolver: b,
|
|
1530
1529
|
localeFallbacker: I,
|
|
1531
|
-
fallbackContext:
|
|
1530
|
+
fallbackContext: h,
|
|
1532
1531
|
onWarn: t,
|
|
1533
1532
|
__meta: x
|
|
1534
1533
|
};
|
|
1535
|
-
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = A, m.__numberFormatters =
|
|
1534
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = A, m.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && Ds(m, n, x), m;
|
|
1536
1535
|
}
|
|
1537
|
-
const
|
|
1536
|
+
const kt = (e) => ({ [e]: oe() });
|
|
1538
1537
|
function Qt(e, t, n, r, l) {
|
|
1539
1538
|
const { missing: a, onWarn: d } = e;
|
|
1540
1539
|
if (a !== null) {
|
|
1541
1540
|
const u = a(e, n, t, l);
|
|
1542
|
-
return
|
|
1541
|
+
return Z(u) ? u : t;
|
|
1543
1542
|
} else
|
|
1544
1543
|
return t;
|
|
1545
1544
|
}
|
|
@@ -1560,7 +1559,7 @@ 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: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t),
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), C = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1564
1563
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1565
1564
|
const F = !!y.part, w = zt(e, y), L = d(
|
|
1566
1565
|
e,
|
|
@@ -1568,18 +1567,18 @@ function In(e, ...t) {
|
|
|
1568
1567
|
l,
|
|
1569
1568
|
w
|
|
1570
1569
|
);
|
|
1571
|
-
if (!
|
|
1570
|
+
if (!Z(i) || i === "")
|
|
1572
1571
|
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1573
|
-
let D = {}, f,
|
|
1572
|
+
let D = {}, f, p = null;
|
|
1574
1573
|
const S = "datetime format";
|
|
1575
|
-
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {},
|
|
1576
|
-
Qt(e, i, f,
|
|
1577
|
-
if (!ee(
|
|
1574
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, p = D[i], !ee(p)); I++)
|
|
1575
|
+
Qt(e, i, f, C, S);
|
|
1576
|
+
if (!ee(p) || !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
|
-
return b || (b = new Intl.DateTimeFormat(f, Ie({},
|
|
1581
|
+
return b || (b = new Intl.DateTimeFormat(f, Ie({}, p, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1583
1582
|
}
|
|
1584
1583
|
const qn = [
|
|
1585
1584
|
"localeMatcher",
|
|
@@ -1606,7 +1605,7 @@ const qn = [
|
|
|
1606
1605
|
function jt(...e) {
|
|
1607
1606
|
const [t, n, r, l] = e, a = oe();
|
|
1608
1607
|
let d = oe(), u;
|
|
1609
|
-
if (
|
|
1608
|
+
if (Z(t)) {
|
|
1610
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1611
1610
|
if (!i)
|
|
1612
1611
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1625,9 +1624,9 @@ function jt(...e) {
|
|
|
1625
1624
|
u = t;
|
|
1626
1625
|
else
|
|
1627
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1628
|
-
return
|
|
1627
|
+
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1629
1628
|
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1630
|
-
}),
|
|
1629
|
+
}), Z(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1631
1630
|
}
|
|
1632
1631
|
function yn(e, t, n) {
|
|
1633
1632
|
const r = e;
|
|
@@ -1637,7 +1636,7 @@ 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: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t),
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), C = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1641
1640
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1642
1641
|
const F = !!y.part, w = zt(e, y), L = d(
|
|
1643
1642
|
e,
|
|
@@ -1645,18 +1644,18 @@ function En(e, ...t) {
|
|
|
1645
1644
|
l,
|
|
1646
1645
|
w
|
|
1647
1646
|
);
|
|
1648
|
-
if (!
|
|
1647
|
+
if (!Z(i) || i === "")
|
|
1649
1648
|
return new Intl.NumberFormat(w, T).format(g);
|
|
1650
|
-
let D = {}, f,
|
|
1649
|
+
let D = {}, f, p = null;
|
|
1651
1650
|
const S = "number format";
|
|
1652
|
-
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {},
|
|
1653
|
-
Qt(e, i, f,
|
|
1654
|
-
if (!ee(
|
|
1651
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, p = D[i], !ee(p)); I++)
|
|
1652
|
+
Qt(e, i, f, C, S);
|
|
1653
|
+
if (!ee(p) || !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
|
-
return b || (b = new Intl.NumberFormat(f, Ie({},
|
|
1658
|
+
return b || (b = new Intl.NumberFormat(f, Ie({}, p, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1660
1659
|
}
|
|
1661
1660
|
const er = [
|
|
1662
1661
|
"localeMatcher",
|
|
@@ -1686,11 +1685,11 @@ function Ut(...e) {
|
|
|
1686
1685
|
if (!ge(t))
|
|
1687
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1688
1687
|
const u = t;
|
|
1689
|
-
return
|
|
1688
|
+
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1690
1689
|
er.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1691
|
-
}),
|
|
1690
|
+
}), Z(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
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}`;
|
|
@@ -1698,7 +1697,7 @@ function Nn(e, t, n) {
|
|
|
1698
1697
|
}
|
|
1699
1698
|
}
|
|
1700
1699
|
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Wr;
|
|
1701
|
-
function
|
|
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,87 +1708,87 @@ 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) &&
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Nn, l = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? Nn : void 0, a = (f) => f[r(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1713
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1714
1713
|
const g = (f) => i[f];
|
|
1715
|
-
function y(f,
|
|
1716
|
-
const S = me(e.messages) ? e.messages(f, !!
|
|
1714
|
+
function y(f, p) {
|
|
1715
|
+
const S = me(e.messages) ? e.messages(f, !!p) : 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) && me(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : uo, w = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, D = {
|
|
1720
1719
|
list: u,
|
|
1721
1720
|
named: g,
|
|
1722
1721
|
plural: a,
|
|
1723
|
-
linked: (f, ...
|
|
1724
|
-
const [S, c] =
|
|
1722
|
+
linked: (f, ...p) => {
|
|
1723
|
+
const [S, c] = p;
|
|
1725
1724
|
let b = "text", I = "";
|
|
1726
|
-
|
|
1727
|
-
const
|
|
1725
|
+
p.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Z(S) && (I = S || I) : p.length === 2 && (Z(S) && (I = S || I), Z(c) && (b = c || b));
|
|
1726
|
+
const h = y(f, !0)(D), k = (
|
|
1728
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1729
|
-
b === "vnode" && be(
|
|
1728
|
+
b === "vnode" && be(h) && I ? h[0] : h
|
|
1730
1729
|
);
|
|
1731
|
-
return I ? T(I)(
|
|
1730
|
+
return I ? T(I)(k, b) : k;
|
|
1732
1731
|
},
|
|
1733
1732
|
message: y,
|
|
1734
1733
|
type: w,
|
|
1735
1734
|
interpolate: F,
|
|
1736
|
-
normalize:
|
|
1735
|
+
normalize: C,
|
|
1737
1736
|
values: Ie(oe(), d, i)
|
|
1738
1737
|
};
|
|
1739
1738
|
return D;
|
|
1740
1739
|
}
|
|
1741
1740
|
const Tn = () => "", Te = (e) => me(e);
|
|
1742
1741
|
function On(e, ...t) {
|
|
1743
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn,
|
|
1744
|
-
|
|
1745
|
-
let [f,
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Z(w) || me(w)), D = zt(e, g);
|
|
1743
|
+
C && ho(g);
|
|
1744
|
+
let [f, p, S] = F ? [
|
|
1746
1745
|
i,
|
|
1747
1746
|
D,
|
|
1748
1747
|
u[D] || oe()
|
|
1749
1748
|
] : tr(e, i, D, d, T, y), c = f, b = i;
|
|
1750
|
-
if (!F && !(
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(p)))
|
|
1751
1750
|
return l ? Ot : i;
|
|
1752
1751
|
let I = !1;
|
|
1753
|
-
const
|
|
1752
|
+
const h = () => {
|
|
1754
1753
|
I = !0;
|
|
1755
|
-
},
|
|
1754
|
+
}, k = Te(c) ? c : nr(e, i, p, c, b, h);
|
|
1756
1755
|
if (I)
|
|
1757
1756
|
return c;
|
|
1758
|
-
const A = bo(e,
|
|
1757
|
+
const A = bo(e, p, S, g), B = _o(A), x = vo(e, k, B), m = r ? r(x, i) : x;
|
|
1759
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1760
|
-
const
|
|
1759
|
+
const N = {
|
|
1761
1760
|
timestamp: Date.now(),
|
|
1762
|
-
key:
|
|
1763
|
-
locale:
|
|
1764
|
-
format:
|
|
1761
|
+
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1762
|
+
locale: p || (Te(c) ? c.locale : ""),
|
|
1763
|
+
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1765
1764
|
message: m
|
|
1766
1765
|
};
|
|
1767
|
-
|
|
1766
|
+
N.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(N);
|
|
1768
1767
|
}
|
|
1769
1768
|
return m;
|
|
1770
1769
|
}
|
|
1771
|
-
function
|
|
1772
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1773
|
-
|
|
1770
|
+
function ho(e) {
|
|
1771
|
+
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
|
+
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1774
1773
|
});
|
|
1775
1774
|
}
|
|
1776
1775
|
function tr(e, t, n, r, l, a) {
|
|
1777
1776
|
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1778
|
-
let T = oe(),
|
|
1777
|
+
let T = oe(), C, F = null;
|
|
1779
1778
|
const w = "translate";
|
|
1780
|
-
for (let L = 0; L < y.length && (
|
|
1781
|
-
if (!oo(
|
|
1779
|
+
for (let L = 0; L < y.length && (C = y[L], T = d[C] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); L++)
|
|
1780
|
+
if (!oo(C, y)) {
|
|
1782
1781
|
const D = 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
|
w
|
|
1789
1788
|
);
|
|
1790
1789
|
D !== t && (F = D);
|
|
1791
1790
|
}
|
|
1792
|
-
return [F,
|
|
1791
|
+
return [F, C, T];
|
|
1793
1792
|
}
|
|
1794
1793
|
function nr(e, t, n, r, l, a) {
|
|
1795
1794
|
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
@@ -1801,7 +1800,7 @@ function nr(e, t, n, r, l, a) {
|
|
|
1801
1800
|
const g = () => r;
|
|
1802
1801
|
return g.locale = n, g.key = t, g;
|
|
1803
1802
|
}
|
|
1804
|
-
const i = d(r,
|
|
1803
|
+
const i = d(r, po(e, n, l, r, u, a));
|
|
1805
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1806
1805
|
}
|
|
1807
1806
|
function vo(e, t, n) {
|
|
@@ -1809,12 +1808,12 @@ function vo(e, t, n) {
|
|
|
1809
1808
|
}
|
|
1810
1809
|
function Vt(...e) {
|
|
1811
1810
|
const [t, n, r] = e, l = oe();
|
|
1812
|
-
if (!
|
|
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 :
|
|
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
|
-
function
|
|
1816
|
+
function po(e, t, n, r, l, a) {
|
|
1818
1817
|
return {
|
|
1819
1818
|
locale: t,
|
|
1820
1819
|
key: n,
|
|
@@ -1826,7 +1825,7 @@ function ho(e, t, n, r, l, a) {
|
|
|
1826
1825
|
};
|
|
1827
1826
|
}
|
|
1828
1827
|
function bo(e, t, n, r) {
|
|
1829
|
-
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e,
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, C = {
|
|
1830
1829
|
locale: t,
|
|
1831
1830
|
modifiers: l,
|
|
1832
1831
|
pluralRules: a,
|
|
@@ -1844,22 +1843,22 @@ function bo(e, t, n, r) {
|
|
|
1844
1843
|
);
|
|
1845
1844
|
L = d(D, F);
|
|
1846
1845
|
}
|
|
1847
|
-
if (
|
|
1846
|
+
if (Z(L) || ot(L)) {
|
|
1848
1847
|
let D = !1;
|
|
1849
|
-
const
|
|
1848
|
+
const p = nr(e, F, t, L, F, () => {
|
|
1850
1849
|
D = !0;
|
|
1851
1850
|
});
|
|
1852
|
-
return D ? Tn :
|
|
1851
|
+
return D ? Tn : p;
|
|
1853
1852
|
} else return Te(L) ? L : 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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: "1791", ACTIONS_ORCHESTRATION_ID: "cb4f62c6-8094-4d41-86c1-46369b185920.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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11418", 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: "36614764995", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "015ab35975bac9a49b0ce7894381d185de0b771e", 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-backend", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA3Mjk5NTEsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDcwNzc1MSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImQ1OWIxNzYwLTA2NTMtNTg1Ny1iOTc5LTI2YmFmNWJiMDg3ZCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDcwNzQ1MSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA5NTY0ODUxOTA4XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2NjE0NzY0OTk1XCIsXCJydW5fbnVtYmVyXCI6XCIxNzVcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCIwMTVhYjM1OTc1YmFjOWE0OWIwY2U3ODk0MzgxZDE4NWRlMGI3NzFlXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIndvcmtmbG93X3NoYVwiOlwiMDE1YWIzNTk3NWJhYzlhNDliMGNlNzg5NDM4MWQxODVkZTBiNzcxZVwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kIiwib3JjaF9pZCI6ImNiNGY2MmM2LTgwOTQtNGQ0MS04NmMxLTQ2MzY5YjE4NTkyMC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiY2I0ZjYyYzYtODA5NC00ZDQxLTg2YzEtNDYzNjliMTg1OTIwIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzY2MTQ3NjQ5OTUiLCJydW5fbnVtYmVyIjoiMTc1IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE3MDMxNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmNiNGY2MmM2LTgwOTQtNGQ0MS04NmMxLTQ2MzY5YjE4NTkyMDpkNTliMTc2MC0wNjUzLTU4NTctYjk3OS0yNmJhZjViYjA4N2QgQWN0aW9ucy5SdW5uZXI6Y2I0ZjYyYzYtODA5NC00ZDQxLTg2YzEtNDYzNjliMTg1OTIwOmQ1OWIxNzYwLTA2NTMtNTg1Ny1iOTc5LTI2YmFmNWJiMDg3ZCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpjYjRmNjJjNi04MDk0LTRkNDEtODZjMS00NjM2OWIxODU5MjA6ZDU5YjE3NjAtMDY1My01ODU3LWI5NzktMjZiYWY1YmIwODdkIGdlbmVyYXRlX2lkX3Rva2VuOmNiNGY2MmM2LTgwOTQtNGQ0MS04NmMxLTQ2MzY5YjE4NTkyMDpkNTliMTc2MC0wNjUzLTU4NTctYjk3OS0yNmJhZjViYjA4N2QgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIwMTVhYjM1OTc1YmFjOWE0OWIwY2U3ODk0MzgxZDE4NWRlMGI3NzFlIiwidHJ1c3RfdGllciI6IjEifQ.CrO1TuEVdBdEIScYBQSfEx-A8Kg6gpmcPpvl_-CWgXXIcOrRFGBCUTIdHXMPDO5N0KoJzvZGegpia28QGntIQrWbWzjplVDKVMeQ3gv7nFawx1n-pTb6YCLGz7GmOCnNOpUh6gHQys1G8An1jeNU-pJYolyAGyJ8oS2-5B6WB65DIhdMBdMz58oCN7o8TqoT2mdjaYXujFFiBnVdcYvRbepxjydENY4iwJOIG8oHZ5ID2FDFz7tEsk3aHgrqYBIZn7WCqYOh0mUJmVxwR0JSJo1WxObw_nDnrxs1fmH0rpdgo4OM6phhhOoiqfc42eDSII08z-AjFU6UngEFWcf5eA", 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_654d2d83-0595-4ca0-a306-32fc75304812", INVOCATION_ID: "1fed5587472b451795dd7d68e3f6ca40", 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: "175", 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 1000170316", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-backend", 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.7", 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: "015ab35975bac9a49b0ce7894381d185de0b771e", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-backend", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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-3-azure-eastus.actions.githubusercontent.com/145//idtoken/cb4f62c6-8094-4d41-86c1-46369b185920/d59b1760-0653-5857-b979-26baf5bb087d?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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_d0aeb394-5cc7-44f8-8391-e1c8ed16c9dc", 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_d0aeb394-5cc7-44f8-8391-e1c8ed16c9dc", 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.8.0", 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: "1830", ACTIONS_ORCHESTRATION_ID: "8ec6b903-faf1-4854-8630-ed01e4a268fb.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: "20260927.320.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_d0aeb394-5cc7-44f8-8391-e1c8ed16c9dc", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12909", 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: "36815618899", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "24c43fe81a56283bb5578fba23d58070913dba70", 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-backend", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA4NTEzNzAsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDgyOTE3MCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjRjMjMwZmEzLTJiNTAtNTEyZi1hYTk0LTA0YTBmYmNhZGFlMCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDgyODg3MCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTEwMjE5OTExNTE1XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2ODE1NjE4ODk5XCIsXCJydW5fbnVtYmVyXCI6XCIxNzhcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCIyNGM0M2ZlODFhNTYyODNiYjU1NzhmYmEyM2Q1ODA3MDkxM2RiYTcwXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIndvcmtmbG93X3NoYVwiOlwiMjRjNDNmZTgxYTU2MjgzYmI1NTc4ZmJhMjNkNTgwNzA5MTNkYmE3MFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kIiwib3JjaF9pZCI6IjhlYzZiOTAzLWZhZjEtNDg1NC04NjMwLWVkMDFlNGEyNjhmYi5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiOGVjNmI5MDMtZmFmMS00ODU0LTg2MzAtZWQwMWU0YTI2OGZiIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzY4MTU2MTg4OTkiLCJydW5fbnVtYmVyIjoiMTc4IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE3MjM0OCIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjhlYzZiOTAzLWZhZjEtNDg1NC04NjMwLWVkMDFlNGEyNjhmYjo0YzIzMGZhMy0yYjUwLTUxMmYtYWE5NC0wNGEwZmJjYWRhZTAgQWN0aW9ucy5SdW5uZXI6OGVjNmI5MDMtZmFmMS00ODU0LTg2MzAtZWQwMWU0YTI2OGZiOjRjMjMwZmEzLTJiNTAtNTEyZi1hYTk0LTA0YTBmYmNhZGFlMCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo4ZWM2YjkwMy1mYWYxLTQ4NTQtODYzMC1lZDAxZTRhMjY4ZmI6NGMyMzBmYTMtMmI1MC01MTJmLWFhOTQtMDRhMGZiY2FkYWUwIGdlbmVyYXRlX2lkX3Rva2VuOjhlYzZiOTAzLWZhZjEtNDg1NC04NjMwLWVkMDFlNGEyNjhmYjo0YzIzMGZhMy0yYjUwLTUxMmYtYWE5NC0wNGEwZmJjYWRhZTAgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIyNGM0M2ZlODFhNTYyODNiYjU1NzhmYmEyM2Q1ODA3MDkxM2RiYTcwIiwidHJ1c3RfdGllciI6IjEifQ.J0aM_CovRHN_z84dG4JA5WDY53UeH80ZrKhu2fkUqlB3QereolYjdx5ovndJNwPM4nQGGp0-llddynDEBNutIP_AWeb6r2sDsa69P0t2RflW7Zf76-WvxPNgYuKqT-8wf5o1SvvcFmr29AgJMLpYJ41wiNbiIyussJgBcT8zrADAsMhTbFeZW2Hu7tjXEnl_mVX8-YLogD2wvX5uJDz4GaThqGhPA3uPgir-jmIRCCsU_Rg_1I6peZWYFDud0huY91ZPxxFfvGHwEYTwGJwh_0GjNt8wwpvkonj9shNzG7qCYfg2-4QoNxuyCqUkDYdvmkKKFZtg1VKTUn54of566g", 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_480d529a-4c2d-498b-998e-f7bfaadfc66b", INVOCATION_ID: "fbb12b72c65f4f5e954788b993cb6291", 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: "178", 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 1000172348", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-backend", 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.9", 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: "24c43fe81a56283bb5578fba23d58070913dba70", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-backend", 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_d0aeb394-5cc7-44f8-8391-e1c8ed16c9dc", 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-2-azure-eastus.actions.githubusercontent.com/161//idtoken/8ec6b903-faf1-4854-8630-ed01e4a268fb/4c230fa3-2b50-512f-aa94-04a0fbcadae0?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d0aeb394-5cc7-44f8-8391-e1c8ed16c9dc", 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_d0aeb394-5cc7-44f8-8391-e1c8ed16c9dc", 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_d0aeb394-5cc7-44f8-8391-e1c8ed16c9dc", 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
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1861
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Be().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Be().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1863
1862
|
}
|
|
1864
1863
|
const at = {
|
|
1865
1864
|
// composer module errors
|
|
@@ -1877,7 +1876,7 @@ const at = {
|
|
|
1877
1876
|
function ut(e, ...t) {
|
|
1878
1877
|
return Tt(e, null, void 0);
|
|
1879
1878
|
}
|
|
1880
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), Eo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"),
|
|
1879
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), Eo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1881
1880
|
function dt(e) {
|
|
1882
1881
|
if (!te(e))
|
|
1883
1882
|
return e;
|
|
@@ -1906,7 +1905,7 @@ function sr(e, t) {
|
|
|
1906
1905
|
const { locale: i, resource: g } = u;
|
|
1907
1906
|
i ? (d[i] = d[i] || oe(), yt(g, d[i])) : yt(g, d);
|
|
1908
1907
|
} else
|
|
1909
|
-
|
|
1908
|
+
Z(u) && yt(JSON.parse(u), d);
|
|
1910
1909
|
}), l == null && a)
|
|
1911
1910
|
for (const u in d)
|
|
1912
1911
|
Ae(d, u) && dt(d[u]);
|
|
@@ -1915,7 +1914,7 @@ function sr(e, t) {
|
|
|
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,
|
|
@@ -1943,13 +1942,13 @@ function No(e, t, n) {
|
|
|
1943
1942
|
function Sn(e) {
|
|
1944
1943
|
return ue(fr, null, e, 0);
|
|
1945
1944
|
}
|
|
1946
|
-
const An = "__INTLIFY_META__", Ln = () => [],
|
|
1947
|
-
let
|
|
1948
|
-
function
|
|
1949
|
-
return (t, n, r, l) => e(n, r,
|
|
1945
|
+
const An = "__INTLIFY_META__", Ln = () => [], No = () => !1;
|
|
1946
|
+
let Rn = 0;
|
|
1947
|
+
function kn(e) {
|
|
1948
|
+
return (t, n, r, l) => e(n, r, Xt() || void 0, l);
|
|
1950
1949
|
}
|
|
1951
1950
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1952
|
-
const e =
|
|
1951
|
+
const e = Xt();
|
|
1953
1952
|
let t = null;
|
|
1954
1953
|
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
1955
1954
|
};
|
|
@@ -1958,15 +1957,15 @@ function Oo(e = {}) {
|
|
|
1958
1957
|
let d = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1959
1958
|
const u = a(
|
|
1960
1959
|
// prettier-ignore
|
|
1961
|
-
t && d ? t.locale.value :
|
|
1960
|
+
t && d ? t.locale.value : Z(e.locale) ? e.locale : Ct
|
|
1962
1961
|
), i = a(
|
|
1963
1962
|
// prettier-ignore
|
|
1964
|
-
t && d ? t.fallbackLocale.value :
|
|
1963
|
+
t && d ? 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 : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, D = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, p = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1967
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1968
|
-
let I = e.pluralRules || t && t.pluralRules,
|
|
1969
|
-
|
|
1967
|
+
let I = e.pluralRules || t && t.pluralRules, h;
|
|
1968
|
+
h = (() => {
|
|
1970
1969
|
r && bn(null);
|
|
1971
1970
|
const v = {
|
|
1972
1971
|
version: Io,
|
|
@@ -1976,21 +1975,21 @@ 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: L,
|
|
1982
1981
|
unresolving: !0,
|
|
1983
|
-
postTranslation:
|
|
1982
|
+
postTranslation: p === null ? void 0 : p,
|
|
1984
1983
|
warnHtmlMessage: S,
|
|
1985
1984
|
escapeParameter: c,
|
|
1986
1985
|
messageResolver: e.messageResolver,
|
|
1987
1986
|
messageCompiler: e.messageCompiler,
|
|
1988
1987
|
__meta: { framework: "vue" }
|
|
1989
1988
|
};
|
|
1990
|
-
v.datetimeFormats = y.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(
|
|
1989
|
+
v.datetimeFormats = y.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(h) ? h.__datetimeFormatters : void 0, v.__numberFormatters = ee(h) ? h.__numberFormatters : void 0;
|
|
1991
1990
|
const E = ro(v);
|
|
1992
1991
|
return r && bn(E), E;
|
|
1993
|
-
})(), lt(
|
|
1992
|
+
})(), lt(h, u.value, i.value);
|
|
1994
1993
|
function A() {
|
|
1995
1994
|
return [
|
|
1996
1995
|
u.value,
|
|
@@ -2000,64 +1999,64 @@ function Oo(e = {}) {
|
|
|
2000
1999
|
T.value
|
|
2001
2000
|
];
|
|
2002
2001
|
}
|
|
2003
|
-
const
|
|
2002
|
+
const B = z({
|
|
2004
2003
|
get: () => u.value,
|
|
2005
2004
|
set: (v) => {
|
|
2006
|
-
u.value = v,
|
|
2005
|
+
u.value = v, h.locale = u.value;
|
|
2007
2006
|
}
|
|
2008
2007
|
}), x = z({
|
|
2009
2008
|
get: () => i.value,
|
|
2010
2009
|
set: (v) => {
|
|
2011
|
-
i.value = v,
|
|
2010
|
+
i.value = v, h.fallbackLocale = i.value, lt(h, u.value, v);
|
|
2012
2011
|
}
|
|
2013
|
-
}), m = z(() => g.value),
|
|
2012
|
+
}), m = z(() => g.value), N = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2014
2013
|
function V() {
|
|
2015
|
-
return me(
|
|
2014
|
+
return me(p) ? p : null;
|
|
2016
2015
|
}
|
|
2017
2016
|
function j(v) {
|
|
2018
|
-
|
|
2017
|
+
p = v, h.postTranslation = v;
|
|
2019
2018
|
}
|
|
2020
2019
|
function G() {
|
|
2021
2020
|
return D;
|
|
2022
2021
|
}
|
|
2023
2022
|
function W(v) {
|
|
2024
|
-
v !== null && (f =
|
|
2023
|
+
v !== null && (f = kn(v)), D = v, h.missing = f;
|
|
2025
2024
|
}
|
|
2026
|
-
const Y = (v, E, $, le,
|
|
2025
|
+
const Y = (v, E, $, le, Xe, mt) => {
|
|
2027
2026
|
A();
|
|
2028
2027
|
let ze;
|
|
2029
2028
|
try {
|
|
2030
|
-
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (h.fallbackContext = t ? no() : void 0), ze = v(h);
|
|
2031
2030
|
} finally {
|
|
2032
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (h.fallbackContext = void 0);
|
|
2033
2032
|
}
|
|
2034
2033
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2035
2034
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2036
2035
|
const [cr, Ea] = E();
|
|
2037
|
-
return t && w ? le(t) :
|
|
2036
|
+
return t && w ? le(t) : Xe(cr);
|
|
2038
2037
|
} else {
|
|
2039
2038
|
if (mt(ze))
|
|
2040
2039
|
return ze;
|
|
2041
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2042
2041
|
}
|
|
2043
2042
|
};
|
|
2044
|
-
function
|
|
2045
|
-
return Y((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) =>
|
|
2043
|
+
function X(...v) {
|
|
2044
|
+
return Y((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) => Z(E));
|
|
2046
2045
|
}
|
|
2047
2046
|
function ne(...v) {
|
|
2048
2047
|
const [E, $, le] = v;
|
|
2049
2048
|
if (le && !te(le))
|
|
2050
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2051
|
-
return
|
|
2050
|
+
return X(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2052
2051
|
}
|
|
2053
2052
|
function Q(...v) {
|
|
2054
|
-
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) =>
|
|
2053
|
+
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) => Z(E));
|
|
2055
2054
|
}
|
|
2056
2055
|
function _e(...v) {
|
|
2057
|
-
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) =>
|
|
2056
|
+
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) => Z(E));
|
|
2058
2057
|
}
|
|
2059
2058
|
function ce(v) {
|
|
2060
|
-
return v.map((E) =>
|
|
2059
|
+
return v.map((E) => Z(E) || ge(E) || ve(E) ? Sn(String(E)) : E);
|
|
2061
2060
|
}
|
|
2062
2061
|
const fe = {
|
|
2063
2062
|
normalize: ce,
|
|
@@ -2077,27 +2076,27 @@ function Oo(e = {}) {
|
|
|
2077
2076
|
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [Sn(E)], (E) => be(E));
|
|
2078
2077
|
}
|
|
2079
2078
|
function De(...v) {
|
|
2080
|
-
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Gt](...v), Ln, (E) =>
|
|
2079
|
+
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Gt](...v), Ln, (E) => Z(E) || be(E));
|
|
2081
2080
|
}
|
|
2082
2081
|
function K(...v) {
|
|
2083
|
-
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), Ln, (E) =>
|
|
2082
|
+
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), Ln, (E) => Z(E) || be(E));
|
|
2084
2083
|
}
|
|
2085
|
-
function
|
|
2086
|
-
I = v,
|
|
2084
|
+
function he(v) {
|
|
2085
|
+
I = v, h.pluralRules = I;
|
|
2087
2086
|
}
|
|
2088
2087
|
function Je(v, E) {
|
|
2089
2088
|
return Y(() => {
|
|
2090
2089
|
if (!v)
|
|
2091
2090
|
return !1;
|
|
2092
|
-
const $ =
|
|
2093
|
-
return ot(
|
|
2094
|
-
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]),
|
|
2091
|
+
const $ = Z(E) ? E : u.value, le = Fe($), Xe = h.messageResolver(le, v);
|
|
2092
|
+
return ot(Xe) || Te(Xe) || Z(Xe);
|
|
2093
|
+
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]), No, ($) => ve($));
|
|
2095
2094
|
}
|
|
2096
2095
|
function Ke(v) {
|
|
2097
2096
|
let E = null;
|
|
2098
|
-
const $ = Hn(
|
|
2097
|
+
const $ = Hn(h, i.value, u.value);
|
|
2099
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2100
|
-
const
|
|
2099
|
+
const Xe = g.value[$[le]] || {}, mt = h.messageResolver(Xe, v);
|
|
2101
2100
|
if (mt != null) {
|
|
2102
2101
|
E = mt;
|
|
2103
2102
|
break;
|
|
@@ -2112,14 +2111,14 @@ function Oo(e = {}) {
|
|
|
2112
2111
|
function Fe(v) {
|
|
2113
2112
|
return g.value[v] || {};
|
|
2114
2113
|
}
|
|
2115
|
-
function
|
|
2114
|
+
function Ne(v, E) {
|
|
2116
2115
|
if (l) {
|
|
2117
2116
|
const $ = { [v]: E };
|
|
2118
2117
|
for (const le in $)
|
|
2119
2118
|
Ae($, le) && dt($[le]);
|
|
2120
2119
|
E = $[v];
|
|
2121
2120
|
}
|
|
2122
|
-
g.value[v] = E,
|
|
2121
|
+
g.value[v] = E, h.messages = g.value;
|
|
2123
2122
|
}
|
|
2124
2123
|
function Ye(v, E) {
|
|
2125
2124
|
g.value[v] = g.value[v] || {};
|
|
@@ -2127,40 +2126,40 @@ function Oo(e = {}) {
|
|
|
2127
2126
|
if (l)
|
|
2128
2127
|
for (const le in $)
|
|
2129
2128
|
Ae($, le) && dt($[le]);
|
|
2130
|
-
E = $[v], yt(E, g.value[v]),
|
|
2129
|
+
E = $[v], yt(E, g.value[v]), h.messages = g.value;
|
|
2131
2130
|
}
|
|
2132
2131
|
function O(v) {
|
|
2133
2132
|
return y.value[v] || {};
|
|
2134
2133
|
}
|
|
2135
2134
|
function s(v, E) {
|
|
2136
|
-
y.value[v] = E,
|
|
2135
|
+
y.value[v] = E, h.datetimeFormats = y.value, yn(h, v, E);
|
|
2137
2136
|
}
|
|
2138
2137
|
function o(v, E) {
|
|
2139
|
-
y.value[v] = Ie(y.value[v] || {}, E),
|
|
2138
|
+
y.value[v] = Ie(y.value[v] || {}, E), h.datetimeFormats = y.value, yn(h, v, E);
|
|
2140
2139
|
}
|
|
2141
2140
|
function _(v) {
|
|
2142
2141
|
return T.value[v] || {};
|
|
2143
2142
|
}
|
|
2144
|
-
function
|
|
2145
|
-
T.value[v] = E,
|
|
2143
|
+
function R(v, E) {
|
|
2144
|
+
T.value[v] = E, h.numberFormats = T.value, Cn(h, v, E);
|
|
2146
2145
|
}
|
|
2147
2146
|
function M(v, E) {
|
|
2148
|
-
T.value[v] = Ie(T.value[v] || {}, E),
|
|
2147
|
+
T.value[v] = Ie(T.value[v] || {}, E), h.numberFormats = T.value, Cn(h, v, E);
|
|
2149
2148
|
}
|
|
2150
|
-
|
|
2151
|
-
d && (u.value = v,
|
|
2149
|
+
Rn++, t && on && (wt(t.locale, (v) => {
|
|
2150
|
+
d && (u.value = v, h.locale = v, lt(h, u.value, i.value));
|
|
2152
2151
|
}), wt(t.fallbackLocale, (v) => {
|
|
2153
|
-
d && (i.value = v,
|
|
2152
|
+
d && (i.value = v, h.fallbackLocale = v, lt(h, u.value, i.value));
|
|
2154
2153
|
}));
|
|
2155
2154
|
const P = {
|
|
2156
|
-
id:
|
|
2157
|
-
locale:
|
|
2155
|
+
id: Rn,
|
|
2156
|
+
locale: B,
|
|
2158
2157
|
fallbackLocale: x,
|
|
2159
2158
|
get inheritLocale() {
|
|
2160
2159
|
return d;
|
|
2161
2160
|
},
|
|
2162
2161
|
set inheritLocale(v) {
|
|
2163
|
-
d = v, v && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(
|
|
2162
|
+
d = v, v && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(h, u.value, i.value));
|
|
2164
2163
|
},
|
|
2165
2164
|
get availableLocales() {
|
|
2166
2165
|
return Object.keys(g.value).sort();
|
|
@@ -2176,16 +2175,16 @@ function Oo(e = {}) {
|
|
|
2176
2175
|
return r;
|
|
2177
2176
|
},
|
|
2178
2177
|
get missingWarn() {
|
|
2179
|
-
return
|
|
2178
|
+
return C;
|
|
2180
2179
|
},
|
|
2181
2180
|
set missingWarn(v) {
|
|
2182
|
-
|
|
2181
|
+
C = v, h.missingWarn = C;
|
|
2183
2182
|
},
|
|
2184
2183
|
get fallbackWarn() {
|
|
2185
2184
|
return F;
|
|
2186
2185
|
},
|
|
2187
2186
|
set fallbackWarn(v) {
|
|
2188
|
-
F = v,
|
|
2187
|
+
F = v, h.fallbackWarn = F;
|
|
2189
2188
|
},
|
|
2190
2189
|
get fallbackRoot() {
|
|
2191
2190
|
return w;
|
|
@@ -2197,31 +2196,31 @@ function Oo(e = {}) {
|
|
|
2197
2196
|
return L;
|
|
2198
2197
|
},
|
|
2199
2198
|
set fallbackFormat(v) {
|
|
2200
|
-
L = v,
|
|
2199
|
+
L = v, h.fallbackFormat = L;
|
|
2201
2200
|
},
|
|
2202
2201
|
get warnHtmlMessage() {
|
|
2203
2202
|
return S;
|
|
2204
2203
|
},
|
|
2205
2204
|
set warnHtmlMessage(v) {
|
|
2206
|
-
S = v,
|
|
2205
|
+
S = v, h.warnHtmlMessage = v;
|
|
2207
2206
|
},
|
|
2208
2207
|
get escapeParameter() {
|
|
2209
2208
|
return c;
|
|
2210
2209
|
},
|
|
2211
2210
|
set escapeParameter(v) {
|
|
2212
|
-
c = v,
|
|
2211
|
+
c = v, h.escapeParameter = v;
|
|
2213
2212
|
},
|
|
2214
|
-
t:
|
|
2213
|
+
t: X,
|
|
2215
2214
|
getLocaleMessage: Fe,
|
|
2216
|
-
setLocaleMessage:
|
|
2215
|
+
setLocaleMessage: Ne,
|
|
2217
2216
|
mergeLocaleMessage: Ye,
|
|
2218
2217
|
getPostTranslationHandler: V,
|
|
2219
2218
|
setPostTranslationHandler: j,
|
|
2220
2219
|
getMissingHandler: G,
|
|
2221
2220
|
setMissingHandler: W,
|
|
2222
|
-
[Eo]:
|
|
2221
|
+
[Eo]: he
|
|
2223
2222
|
};
|
|
2224
|
-
return P.datetimeFormats =
|
|
2223
|
+
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = De, 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: {
|
|
@@ -2265,21 +2264,21 @@ Ie({
|
|
|
2265
2264
|
}
|
|
2266
2265
|
}, qt);
|
|
2267
2266
|
function Ao(e) {
|
|
2268
|
-
return be(e) && !
|
|
2267
|
+
return be(e) && !Z(e[0]);
|
|
2269
2268
|
}
|
|
2270
2269
|
function lr(e, t, n, r) {
|
|
2271
2270
|
const { slots: l, attrs: a } = t;
|
|
2272
2271
|
return () => {
|
|
2273
2272
|
const d = { part: !0 };
|
|
2274
2273
|
let u = oe();
|
|
2275
|
-
e.locale && (d.locale = e.locale),
|
|
2274
|
+
e.locale && (d.locale = e.locale), Z(e.format) ? d.key = e.format : te(e.format) && (Z(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((C, F) => n.includes(F) ? Ie(oe(), C, { [F]: e.format[F] }) : C, oe()));
|
|
2276
2275
|
const i = r(e.value, d, u);
|
|
2277
2276
|
let g = [d.key];
|
|
2278
|
-
be(i) ? g = i.map((
|
|
2279
|
-
const w = l[
|
|
2280
|
-
return Ao(L) && (L[0].key = `${
|
|
2281
|
-
}) :
|
|
2282
|
-
const y = Ie(oe(), a), T =
|
|
2277
|
+
be(i) ? g = i.map((C, F) => {
|
|
2278
|
+
const w = l[C.type], L = w ? w({ [C.type]: C.value, index: F, parts: i }) : [C.value];
|
|
2279
|
+
return Ao(L) && (L[0].key = `${C.type}-${F}`), L;
|
|
2280
|
+
}) : Z(i) && (g = [i]);
|
|
2281
|
+
const y = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2283
2282
|
return Wn(T, y, g);
|
|
2284
2283
|
};
|
|
2285
2284
|
}
|
|
@@ -2303,14 +2302,14 @@ Ie({
|
|
|
2303
2302
|
}, qt);
|
|
2304
2303
|
const Lo = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2305
2304
|
function St(e = {}) {
|
|
2306
|
-
const t =
|
|
2305
|
+
const t = Xt();
|
|
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
2314
|
let i = wo(n, t, e.__useComponent);
|
|
2316
2315
|
return i == null && (i = r), i;
|
|
@@ -2319,18 +2318,18 @@ function St(e = {}) {
|
|
|
2319
2318
|
let u = d.__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), d.__composerExtend && (u[
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), d.__composerExtend && (u[Zt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2323
2322
|
}
|
|
2324
2323
|
return u;
|
|
2325
2324
|
}
|
|
2326
|
-
function
|
|
2325
|
+
function Ro(e) {
|
|
2327
2326
|
const t = ur(e.isCE ? Lo : 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;
|
|
@@ -2361,8 +2360,8 @@ function Fo(e, t, n) {
|
|
|
2361
2360
|
}, t), mr(() => {
|
|
2362
2361
|
const r = n;
|
|
2363
2362
|
e.__deleteInstance(t);
|
|
2364
|
-
const l = r[
|
|
2365
|
-
l && (l(), delete r[
|
|
2363
|
+
const l = r[Zt];
|
|
2364
|
+
l && (l(), delete r[Zt]);
|
|
2366
2365
|
}, t);
|
|
2367
2366
|
}
|
|
2368
2367
|
yo();
|
|
@@ -2370,7 +2369,7 @@ zs(Ms);
|
|
|
2370
2369
|
Qs($s);
|
|
2371
2370
|
qs(Hn);
|
|
2372
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2373
|
-
const e =
|
|
2372
|
+
const e = Be();
|
|
2374
2373
|
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2375
2374
|
}
|
|
2376
2375
|
const vt = /* @__PURE__ */ Le({
|
|
@@ -2385,14 +2384,14 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2385
2384
|
const { t } = St();
|
|
2386
2385
|
return (n, r) => {
|
|
2387
2386
|
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2388
|
-
return J(),
|
|
2387
|
+
return J(), Ce(a, {
|
|
2389
2388
|
variant: "plain",
|
|
2390
2389
|
placement: "right",
|
|
2391
2390
|
"z-index": 50
|
|
2392
2391
|
}, {
|
|
2393
2392
|
content: de(() => [
|
|
2394
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2395
|
-
(J(!0), ie(
|
|
2394
|
+
(J(!0), ie(ke, null, Ee(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2396
2395
|
ae("div", null, "- " + Oe(d), 1)
|
|
2397
2396
|
]))), 128))
|
|
2398
2397
|
]),
|
|
@@ -2430,7 +2429,7 @@ const wn = Object.values(Sr), Po = {
|
|
|
2430
2429
|
function jo(e, t, n, r) {
|
|
2431
2430
|
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u = z(() => {
|
|
2432
2431
|
var j;
|
|
2433
|
-
const m = /* @__PURE__ */ new Map(),
|
|
2432
|
+
const m = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2434
2433
|
for (const G of t.value) {
|
|
2435
2434
|
const W = G.category;
|
|
2436
2435
|
if (!W) continue;
|
|
@@ -2438,37 +2437,37 @@ function jo(e, t, n, r) {
|
|
|
2438
2437
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = d(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2439
2438
|
continue;
|
|
2440
2439
|
m.has(W) || m.set(W, []);
|
|
2441
|
-
const
|
|
2442
|
-
U.set(Y,
|
|
2440
|
+
const X = U.get(Y) ?? 0;
|
|
2441
|
+
U.set(Y, X + 1), m.get(W).push({
|
|
2443
2442
|
label: l(`permissionSet.permissionLabels.${Y}`, G.label),
|
|
2444
2443
|
value: Y,
|
|
2445
|
-
optionKey: `${Y}::${
|
|
2446
|
-
}),
|
|
2444
|
+
optionKey: `${Y}::${X}`
|
|
2445
|
+
}), N.has(Y) || N.set(Y, G);
|
|
2447
2446
|
}
|
|
2448
2447
|
return [...m.keys()].sort((G, W) => {
|
|
2449
|
-
const Y = wn.indexOf(G),
|
|
2450
|
-
return Y === -1 &&
|
|
2448
|
+
const Y = wn.indexOf(G), X = wn.indexOf(W);
|
|
2449
|
+
return Y === -1 && X === -1 ? G.localeCompare(W) : Y === -1 ? 1 : X === -1 ? -1 : Y - X;
|
|
2451
2450
|
}).map((G) => {
|
|
2452
|
-
const W = m.get(G), Y = l(`permissionSet.categoryLabels.${G}`, G),
|
|
2451
|
+
const W = m.get(G), Y = l(`permissionSet.categoryLabels.${G}`, G), X = /* @__PURE__ */ new Map();
|
|
2453
2452
|
for (const K of W) {
|
|
2454
|
-
const
|
|
2455
|
-
|
|
2453
|
+
const he = N.get(K.value);
|
|
2454
|
+
he && X.set(K.value, he.actions);
|
|
2456
2455
|
}
|
|
2457
2456
|
const ne = W.some((K) => {
|
|
2458
|
-
const
|
|
2459
|
-
return
|
|
2457
|
+
const he = X.get(K.value);
|
|
2458
|
+
return he && he.length > 1;
|
|
2460
2459
|
}), Q = ne ? [
|
|
2461
2460
|
...new Set(
|
|
2462
|
-
W.flatMap((K) =>
|
|
2461
|
+
W.flatMap((K) => X.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2463
2462
|
)
|
|
2464
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2465
2464
|
for (const K of e.value)
|
|
2466
|
-
W.some((
|
|
2465
|
+
W.some((he) => he.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2467
2466
|
const ce = ne ? e.value.filter(
|
|
2468
|
-
(K) => W.some((
|
|
2469
|
-
).map((K) => K.subject) : e.value.filter((K) => W.some((
|
|
2470
|
-
var
|
|
2471
|
-
return (
|
|
2467
|
+
(K) => W.some((he) => he.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((he) => he.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2469
|
+
var he;
|
|
2470
|
+
return (he = N.get(K.value)) == null ? void 0 : he.isCategoryCover;
|
|
2472
2471
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2473
2472
|
return {
|
|
2474
2473
|
category: G,
|
|
@@ -2477,7 +2476,7 @@ function jo(e, t, n, r) {
|
|
|
2477
2476
|
selectedSubjects: ce,
|
|
2478
2477
|
isMultiAction: ne,
|
|
2479
2478
|
actionColumns: Q,
|
|
2480
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: X,
|
|
2481
2480
|
selectedActionsMap: _e,
|
|
2482
2481
|
coverSubject: fe,
|
|
2483
2482
|
coverSelectedActions: q,
|
|
@@ -2485,15 +2484,15 @@ function jo(e, t, n, r) {
|
|
|
2485
2484
|
};
|
|
2486
2485
|
});
|
|
2487
2486
|
});
|
|
2488
|
-
function i(m,
|
|
2489
|
-
const U = u.value.find((Q) => Q.category === m), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(
|
|
2487
|
+
function i(m, N) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === m), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(N), W = /* @__PURE__ */ new Map();
|
|
2490
2489
|
for (const Q of e.value)
|
|
2491
2490
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2492
|
-
const Y = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0,
|
|
2491
|
+
const Y = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, X = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2493
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2494
2493
|
const fe = se.subject;
|
|
2495
|
-
if (!G.has(fe) ||
|
|
2496
|
-
|
|
2494
|
+
if (!G.has(fe) || X.has(fe)) return [];
|
|
2495
|
+
X.add(fe);
|
|
2497
2496
|
let q;
|
|
2498
2497
|
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Y), [
|
|
2499
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
@@ -2505,29 +2504,29 @@ function jo(e, t, n, r) {
|
|
|
2505
2504
|
...ne
|
|
2506
2505
|
]);
|
|
2507
2506
|
}
|
|
2508
|
-
function g(m,
|
|
2509
|
-
return F(m,
|
|
2507
|
+
function g(m, N) {
|
|
2508
|
+
return F(m, N) || c(m, N);
|
|
2510
2509
|
}
|
|
2511
2510
|
function y(m) {
|
|
2512
|
-
return m.options.length > 0 && m.options.every((
|
|
2511
|
+
return m.options.length > 0 && m.options.every((N) => g(m, N.value));
|
|
2513
2512
|
}
|
|
2514
2513
|
function T(m) {
|
|
2515
2514
|
return m.options.length === 0 || y(m) ? !1 : m.options.some(
|
|
2516
|
-
(
|
|
2515
|
+
(N) => g(m, N.value) || w(m, N.value).length > 0
|
|
2517
2516
|
);
|
|
2518
2517
|
}
|
|
2519
|
-
function
|
|
2520
|
-
const
|
|
2518
|
+
function C(m) {
|
|
2519
|
+
const N = new Set(m.options.map((V) => V.value)), U = e.value.filter((V) => !N.has(V.subject));
|
|
2521
2520
|
if (y(m))
|
|
2522
2521
|
r("update:model-value", U);
|
|
2523
2522
|
else {
|
|
2524
2523
|
const V = /* @__PURE__ */ new Map();
|
|
2525
2524
|
for (const Y of e.value)
|
|
2526
|
-
|
|
2525
|
+
N.has(Y.subject) && !Y.inverted && V.set(Y.subject, Y.conditions);
|
|
2527
2526
|
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2528
|
-
({ category: Y, showByFeatureFlag:
|
|
2527
|
+
({ category: Y, showByFeatureFlag: X, isCategoryCover: ne, ...Q }) => {
|
|
2529
2528
|
const _e = Q.subject;
|
|
2530
|
-
if (!
|
|
2529
|
+
if (!N.has(_e) || G.has(_e)) return [];
|
|
2531
2530
|
G.add(_e);
|
|
2532
2531
|
let ce;
|
|
2533
2532
|
return V.has(_e) ? ce = V.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
@@ -2538,76 +2537,76 @@ function jo(e, t, n, r) {
|
|
|
2538
2537
|
r("update:model-value", [...U, ...W]);
|
|
2539
2538
|
}
|
|
2540
2539
|
}
|
|
2541
|
-
function F(m,
|
|
2542
|
-
const U = m.selectedActionsMap.get(
|
|
2540
|
+
function F(m, N) {
|
|
2541
|
+
const U = m.selectedActionsMap.get(N);
|
|
2543
2542
|
return U ? U.has("manage") : !1;
|
|
2544
2543
|
}
|
|
2545
|
-
function w(m,
|
|
2546
|
-
const U = m.permissionActionsMap.get(
|
|
2544
|
+
function w(m, N) {
|
|
2545
|
+
const U = m.permissionActionsMap.get(N);
|
|
2547
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2548
|
-
(j) => S(m,
|
|
2547
|
+
(j) => S(m, N, j) || b(m, N, j)
|
|
2549
2548
|
) : [];
|
|
2550
2549
|
}
|
|
2551
|
-
function L(m,
|
|
2552
|
-
return c(m,
|
|
2550
|
+
function L(m, N) {
|
|
2551
|
+
return c(m, N) ? !1 : !F(m, N) && w(m, N).length > 0;
|
|
2553
2552
|
}
|
|
2554
|
-
function D(m,
|
|
2555
|
-
if (!m.coverSubject ||
|
|
2553
|
+
function D(m, N) {
|
|
2554
|
+
if (!m.coverSubject || N === m.coverSubject) return;
|
|
2556
2555
|
const U = e.value.find(
|
|
2557
2556
|
(V) => !V.inverted && V.subject === m.coverSubject
|
|
2558
2557
|
);
|
|
2559
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2560
2559
|
}
|
|
2561
|
-
function f(m,
|
|
2560
|
+
function f(m, N, U) {
|
|
2562
2561
|
if (U) {
|
|
2563
|
-
const V = t.value.find((Q) => Q.subject ===
|
|
2562
|
+
const V = t.value.find((Q) => Q.subject === N);
|
|
2564
2563
|
if (!V) return;
|
|
2565
2564
|
const {
|
|
2566
2565
|
category: j,
|
|
2567
2566
|
showByFeatureFlag: G,
|
|
2568
2567
|
isCategoryCover: W,
|
|
2569
2568
|
...Y
|
|
2570
|
-
} = V,
|
|
2569
|
+
} = V, X = D(m, N), ne = e.value.filter((Q) => Q.subject !== N);
|
|
2571
2570
|
ne.push({
|
|
2572
2571
|
...Y,
|
|
2573
|
-
...
|
|
2572
|
+
...X !== void 0 && { conditions: X }
|
|
2574
2573
|
}), r("update:model-value", ne);
|
|
2575
2574
|
} else
|
|
2576
2575
|
r(
|
|
2577
2576
|
"update:model-value",
|
|
2578
|
-
e.value.filter((V) => V.subject !==
|
|
2577
|
+
e.value.filter((V) => V.subject !== N)
|
|
2579
2578
|
);
|
|
2580
2579
|
}
|
|
2581
|
-
function
|
|
2582
|
-
const U = m.permissionActionsMap.get(
|
|
2580
|
+
function p(m, N) {
|
|
2581
|
+
const U = m.permissionActionsMap.get(N);
|
|
2583
2582
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2584
2583
|
}
|
|
2585
|
-
function S(m,
|
|
2586
|
-
const V = m.selectedActionsMap.get(
|
|
2584
|
+
function S(m, N, U) {
|
|
2585
|
+
const V = m.selectedActionsMap.get(N);
|
|
2587
2586
|
return V ? V.has(U) : !1;
|
|
2588
2587
|
}
|
|
2589
|
-
function c(m,
|
|
2590
|
-
return !m.coverSubject ||
|
|
2588
|
+
function c(m, N) {
|
|
2589
|
+
return !m.coverSubject || N === m.coverSubject ? !1 : m.coverCoversAll;
|
|
2591
2590
|
}
|
|
2592
|
-
function b(m,
|
|
2593
|
-
return !m.coverSubject ||
|
|
2591
|
+
function b(m, N, U) {
|
|
2592
|
+
return !m.coverSubject || N === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2594
2593
|
}
|
|
2595
|
-
function I(m,
|
|
2596
|
-
const V = m.permissionActionsMap.get(
|
|
2594
|
+
function I(m, N, U) {
|
|
2595
|
+
const V = m.permissionActionsMap.get(N);
|
|
2597
2596
|
return V ? V.includes(U) : !1;
|
|
2598
2597
|
}
|
|
2599
|
-
function
|
|
2598
|
+
function h(m, N, U) {
|
|
2600
2599
|
const V = [...e.value], j = V.findIndex((W) => W.subject === m && !W.inverted);
|
|
2601
2600
|
if (U)
|
|
2602
2601
|
if (j >= 0) {
|
|
2603
2602
|
const W = { ...V[j] }, Y = new Set(W.actions);
|
|
2604
|
-
Y.add(
|
|
2603
|
+
Y.add(N), W.actions = Array.from(Y), V[j] = W;
|
|
2605
2604
|
} else {
|
|
2606
2605
|
const W = t.value.find((se) => se.subject === m);
|
|
2607
2606
|
if (!W) return;
|
|
2608
2607
|
const {
|
|
2609
2608
|
category: Y,
|
|
2610
|
-
showByFeatureFlag:
|
|
2609
|
+
showByFeatureFlag: X,
|
|
2611
2610
|
isCategoryCover: ne,
|
|
2612
2611
|
...Q
|
|
2613
2612
|
} = W, _e = u.value.find(
|
|
@@ -2615,96 +2614,96 @@ function jo(e, t, n, r) {
|
|
|
2615
2614
|
), ce = _e ? D(_e, m) : void 0;
|
|
2616
2615
|
V.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 W = { ...V[j] }, Y = W.actions.filter((
|
|
2622
|
+
const W = { ...V[j] }, Y = W.actions.filter((X) => X !== N);
|
|
2624
2623
|
Y.length === 0 ? V.splice(j, 1) : (W.actions = Y, V[j] = W);
|
|
2625
2624
|
}
|
|
2626
2625
|
const G = t.value.find((W) => W.subject === m);
|
|
2627
2626
|
G && Mn(V, m, G.actions), r("update:model-value", V);
|
|
2628
2627
|
}
|
|
2629
|
-
function
|
|
2628
|
+
function k(m, N) {
|
|
2630
2629
|
const U = m.options.filter(
|
|
2631
|
-
(V) => I(m, V.value,
|
|
2630
|
+
(V) => I(m, V.value, N)
|
|
2632
2631
|
);
|
|
2633
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2634
|
-
(V) => S(m, V.value,
|
|
2633
|
+
(V) => S(m, V.value, N) || b(m, V.value, N)
|
|
2635
2634
|
);
|
|
2636
2635
|
}
|
|
2637
|
-
function A(m,
|
|
2636
|
+
function A(m, N) {
|
|
2638
2637
|
const U = m.options.filter(
|
|
2639
|
-
(j) => I(m, j.value,
|
|
2638
|
+
(j) => I(m, j.value, N)
|
|
2640
2639
|
);
|
|
2641
2640
|
if (U.length === 0) return !1;
|
|
2642
2641
|
const V = U.filter(
|
|
2643
|
-
(j) => S(m, j.value,
|
|
2642
|
+
(j) => S(m, j.value, N) || b(m, j.value, N)
|
|
2644
2643
|
).length;
|
|
2645
2644
|
return V > 0 && V < U.length;
|
|
2646
2645
|
}
|
|
2647
|
-
function
|
|
2646
|
+
function B(m, N, U) {
|
|
2648
2647
|
const V = [...e.value];
|
|
2649
2648
|
for (const j of m.options) {
|
|
2650
|
-
if (!I(m, j.value,
|
|
2649
|
+
if (!I(m, j.value, N)) continue;
|
|
2651
2650
|
const G = j.value, W = V.findIndex(
|
|
2652
|
-
(
|
|
2651
|
+
(X) => X.subject === G && !X.inverted
|
|
2653
2652
|
);
|
|
2654
2653
|
if (U)
|
|
2655
2654
|
if (W >= 0) {
|
|
2656
|
-
const
|
|
2657
|
-
ne.add(
|
|
2655
|
+
const X = { ...V[W] }, ne = new Set(X.actions);
|
|
2656
|
+
ne.add(N), X.actions = Array.from(ne), V[W] = X;
|
|
2658
2657
|
} else {
|
|
2659
|
-
const
|
|
2660
|
-
if (!
|
|
2658
|
+
const X = t.value.find((fe) => fe.subject === G);
|
|
2659
|
+
if (!X) continue;
|
|
2661
2660
|
const {
|
|
2662
2661
|
category: ne,
|
|
2663
2662
|
showByFeatureFlag: Q,
|
|
2664
2663
|
isCategoryCover: _e,
|
|
2665
2664
|
...ce
|
|
2666
|
-
} =
|
|
2665
|
+
} = X, se = D(m, G);
|
|
2667
2666
|
V.push({
|
|
2668
2667
|
...ce,
|
|
2669
|
-
actions: [
|
|
2668
|
+
actions: [N],
|
|
2670
2669
|
...se !== void 0 && { conditions: se }
|
|
2671
2670
|
});
|
|
2672
2671
|
}
|
|
2673
2672
|
else if (W >= 0) {
|
|
2674
|
-
const
|
|
2675
|
-
ne.length === 0 ? V.splice(W, 1) : (
|
|
2673
|
+
const X = { ...V[W] }, ne = X.actions.filter((Q) => Q !== N);
|
|
2674
|
+
ne.length === 0 ? V.splice(W, 1) : (X.actions = ne, V[W] = X);
|
|
2676
2675
|
}
|
|
2677
|
-
const Y = t.value.find((
|
|
2676
|
+
const Y = t.value.find((X) => X.subject === G);
|
|
2678
2677
|
Y && Mn(V, G, Y.actions);
|
|
2679
2678
|
}
|
|
2680
2679
|
r("update:model-value", V);
|
|
2681
2680
|
}
|
|
2682
2681
|
function x(m) {
|
|
2683
|
-
const
|
|
2684
|
-
return l(
|
|
2682
|
+
const N = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.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: L,
|
|
2694
2693
|
toggleManage: f,
|
|
2695
|
-
hasNonManageActions:
|
|
2694
|
+
hasNonManageActions: p,
|
|
2696
2695
|
isActionChecked: S,
|
|
2697
2696
|
isRowFullyCoveredByCover: c,
|
|
2698
2697
|
isActionCoveredByCover: b,
|
|
2699
2698
|
permissionDefinesAction: I,
|
|
2700
|
-
toggleAction:
|
|
2701
|
-
isAllActionChecked:
|
|
2699
|
+
toggleAction: h,
|
|
2700
|
+
isAllActionChecked: k,
|
|
2702
2701
|
isAllActionIndeterminate: A,
|
|
2703
|
-
toggleAllAction:
|
|
2702
|
+
toggleAllAction: B,
|
|
2704
2703
|
actionLabel: x
|
|
2705
2704
|
};
|
|
2706
2705
|
}
|
|
2707
|
-
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"],
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Zo = { class: "flex justify-center" }, Yo = { class: "flex items-center min-w-0 gap-8" }, Xo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Le({
|
|
2708
2707
|
__name: "BasePermission",
|
|
2709
2708
|
props: {
|
|
2710
2709
|
modelValue: {
|
|
@@ -2733,13 +2732,13 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2733
2732
|
toggleAllManage: g,
|
|
2734
2733
|
isManageChecked: y,
|
|
2735
2734
|
isManageIndeterminate: T,
|
|
2736
|
-
toggleManage:
|
|
2735
|
+
toggleManage: C,
|
|
2737
2736
|
isActionChecked: F,
|
|
2738
2737
|
isRowFullyCoveredByCover: w,
|
|
2739
2738
|
isActionCoveredByCover: L,
|
|
2740
2739
|
permissionDefinesAction: D,
|
|
2741
2740
|
toggleAction: f,
|
|
2742
|
-
isAllActionChecked:
|
|
2741
|
+
isAllActionChecked: p,
|
|
2743
2742
|
isAllActionIndeterminate: S,
|
|
2744
2743
|
toggleAllAction: c,
|
|
2745
2744
|
actionLabel: b
|
|
@@ -2747,21 +2746,21 @@ 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, A) => r("update:model-value", A)
|
|
2751
2750
|
);
|
|
2752
|
-
function I(
|
|
2753
|
-
const A =
|
|
2751
|
+
function I(k) {
|
|
2752
|
+
const A = k.selectedSubjects.length;
|
|
2754
2753
|
return A === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: A });
|
|
2755
2754
|
}
|
|
2756
|
-
function
|
|
2757
|
-
return y(
|
|
2758
|
-
(
|
|
2755
|
+
function h(k, A) {
|
|
2756
|
+
return y(k, A) || w(k, A) ? !0 : k.actionColumns.some(
|
|
2757
|
+
(B) => D(k, A, B) && (F(k, A, B) || L(k, A, B))
|
|
2759
2758
|
);
|
|
2760
2759
|
}
|
|
2761
|
-
return (
|
|
2762
|
-
const
|
|
2760
|
+
return (k, A) => {
|
|
2761
|
+
const B = we("FmCheckbox");
|
|
2763
2762
|
return J(), ie("div", Uo, [
|
|
2764
|
-
(J(!0), ie(
|
|
2763
|
+
(J(!0), ie(ke, null, Ee(H(d), (x) => (J(), Ce(Bt, {
|
|
2765
2764
|
key: x.category,
|
|
2766
2765
|
subtitle: I(x)
|
|
2767
2766
|
}, {
|
|
@@ -2778,7 +2777,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2778
2777
|
}, [
|
|
2779
2778
|
A[0] || (A[0] = ae("div", null, null, -1)),
|
|
2780
2779
|
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2781
|
-
(J(!0), ie(
|
|
2780
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2782
2781
|
key: `header-${m}`,
|
|
2783
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2784
2783
|
}, Oe(H(b)(m)), 1))), 128))
|
|
@@ -2793,8 +2792,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2793
2792
|
class: "cursor-pointer font-semibold",
|
|
2794
2793
|
onClick: (m) => !e.disable && H(g)(x)
|
|
2795
2794
|
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2796
|
-
ae("div",
|
|
2797
|
-
ue(
|
|
2795
|
+
ae("div", Zo, [
|
|
2796
|
+
ue(B, {
|
|
2798
2797
|
"model-value": H(u)(x),
|
|
2799
2798
|
indeterminate: H(i)(x),
|
|
2800
2799
|
value: !0,
|
|
@@ -2804,23 +2803,23 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2804
2803
|
"onUpdate:modelValue": (m) => H(g)(x)
|
|
2805
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2806
2805
|
]),
|
|
2807
|
-
(J(!0), ie(
|
|
2806
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2808
2807
|
key: `all-${m}`,
|
|
2809
2808
|
class: "flex justify-center"
|
|
2810
2809
|
}, [
|
|
2811
|
-
ue(
|
|
2812
|
-
"model-value": H(
|
|
2810
|
+
ue(B, {
|
|
2811
|
+
"model-value": H(p)(x, m),
|
|
2813
2812
|
indeterminate: H(S)(x, m),
|
|
2814
2813
|
value: m,
|
|
2815
2814
|
disabled: e.disable,
|
|
2816
2815
|
size: "sm",
|
|
2817
2816
|
dense: "",
|
|
2818
|
-
"onUpdate:modelValue": (
|
|
2817
|
+
"onUpdate:modelValue": (N) => H(c)(x, m, N)
|
|
2819
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2820
2819
|
]))), 128))
|
|
2821
2820
|
], 4),
|
|
2822
2821
|
A[1] || (A[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2823
|
-
(J(!0), ie(
|
|
2822
|
+
(J(!0), ie(ke, null, Ee(x.options, (m) => (J(), ie("div", {
|
|
2824
2823
|
key: m.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({
|
|
@@ -2831,40 +2830,40 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2831
2830
|
ae("span", {
|
|
2832
2831
|
class: "block truncate cursor-pointer",
|
|
2833
2832
|
title: m.label,
|
|
2834
|
-
onClick: (
|
|
2835
|
-
}, Oe(m.label), 9,
|
|
2836
|
-
Se(
|
|
2833
|
+
onClick: (N) => !e.disable && !H(w)(x, m.value) && H(C)(x, m.value, !H(y)(x, m.value))
|
|
2834
|
+
}, Oe(m.label), 9, Xo),
|
|
2835
|
+
Se(k.$slots, `checkbox-${m.value}-append`, {
|
|
2837
2836
|
option: m,
|
|
2838
|
-
isEffectiveSelected:
|
|
2839
|
-
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((
|
|
2837
|
+
isEffectiveSelected: h(x, m.value),
|
|
2838
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((N) => H(L)(x, m.value, N))
|
|
2840
2839
|
}),
|
|
2841
|
-
Se(
|
|
2840
|
+
Se(k.$slots, `checkbox-${m.value}-icon`, {
|
|
2842
2841
|
option: m,
|
|
2843
|
-
isEffectiveSelected:
|
|
2844
|
-
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((
|
|
2842
|
+
isEffectiveSelected: h(x, m.value),
|
|
2843
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((N) => H(L)(x, m.value, N))
|
|
2845
2844
|
})
|
|
2846
2845
|
]),
|
|
2847
|
-
ae("div",
|
|
2848
|
-
ue(
|
|
2846
|
+
ae("div", Bo, [
|
|
2847
|
+
ue(B, {
|
|
2849
2848
|
"model-value": H(y)(x, m.value) || H(w)(x, m.value),
|
|
2850
2849
|
value: m.value,
|
|
2851
2850
|
disabled: e.disable || H(w)(x, m.value),
|
|
2852
2851
|
indeterminate: H(T)(x, m.value),
|
|
2853
2852
|
size: "sm",
|
|
2854
|
-
"onUpdate:modelValue": (
|
|
2853
|
+
"onUpdate:modelValue": (N) => H(C)(x, m.value, N)
|
|
2855
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2856
2855
|
]),
|
|
2857
|
-
(J(!0), ie(
|
|
2858
|
-
key: `${m.optionKey}-${
|
|
2856
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (N) => (J(), ie("div", {
|
|
2857
|
+
key: `${m.optionKey}-${N}`,
|
|
2859
2858
|
class: "flex justify-center"
|
|
2860
2859
|
}, [
|
|
2861
|
-
H(D)(x, m.value,
|
|
2860
|
+
H(D)(x, m.value, N) ? (J(), Ce(B, {
|
|
2862
2861
|
key: 0,
|
|
2863
|
-
"model-value": H(F)(x, m.value,
|
|
2864
|
-
value:
|
|
2865
|
-
disabled: e.disable || H(L)(x, m.value,
|
|
2862
|
+
"model-value": H(F)(x, m.value, N) || H(L)(x, m.value, N),
|
|
2863
|
+
value: N,
|
|
2864
|
+
disabled: e.disable || H(L)(x, m.value, N),
|
|
2866
2865
|
size: "sm",
|
|
2867
|
-
"onUpdate:modelValue": (U) => H(f)(m.value,
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(m.value, N, U)
|
|
2868
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2869
2868
|
]))), 128))
|
|
2870
2869
|
], 4))), 128))
|
|
@@ -2975,14 +2974,14 @@ 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), d =
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = hr(), 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-${Lr(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2979
2978
|
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
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
2983
|
const L = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2985
|
-
if (
|
|
2984
|
+
if (C.value === !0)
|
|
2986
2985
|
r("update:model-value", L);
|
|
2987
2986
|
else {
|
|
2988
2987
|
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
@@ -2991,11 +2990,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2991
2990
|
}
|
|
2992
2991
|
function w(L, D) {
|
|
2993
2992
|
let f = It(n.modelValue);
|
|
2994
|
-
D ? f.every((
|
|
2993
|
+
D ? f.every((p) => p !== L) && f.push(L) : f = f.filter((p) => p !== L), r("update:model-value", f);
|
|
2995
2994
|
}
|
|
2996
2995
|
return (L, D) => {
|
|
2997
2996
|
const f = we("FmCheckbox");
|
|
2998
|
-
return J(),
|
|
2997
|
+
return J(), Ce(Qo, {
|
|
2999
2998
|
id: i,
|
|
3000
2999
|
title: e.title,
|
|
3001
3000
|
required: !1
|
|
@@ -3004,9 +3003,9 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3004
3003
|
Se(L.$slots, "top")
|
|
3005
3004
|
]),
|
|
3006
3005
|
default: de(() => [
|
|
3007
|
-
n.showAllToggle ? (J(),
|
|
3006
|
+
n.showAllToggle ? (J(), 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,8 +3014,8 @@ 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
|
-
(J(!0), ie(
|
|
3019
|
-
key:
|
|
3017
|
+
(J(!0), ie(ke, null, Ee(e.options, (p, S) => (J(), ie("div", {
|
|
3018
|
+
key: p.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" : "")
|
|
3022
3021
|
}, [
|
|
@@ -3025,38 +3024,38 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3025
3024
|
}, [
|
|
3026
3025
|
ae("div", qo, [
|
|
3027
3026
|
ue(f, {
|
|
3028
|
-
"model-value": e.modelValue.includes(
|
|
3029
|
-
disabled: e.disable ||
|
|
3027
|
+
"model-value": e.modelValue.includes(p.value),
|
|
3028
|
+
disabled: e.disable || p.disabled,
|
|
3030
3029
|
size: "sm",
|
|
3031
|
-
label:
|
|
3032
|
-
value:
|
|
3033
|
-
"onUpdate:modelValue": (c) => w(
|
|
3030
|
+
label: p.label,
|
|
3031
|
+
value: p.label,
|
|
3032
|
+
"onUpdate:modelValue": (c) => w(p.value, c)
|
|
3034
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3035
|
-
Se(L.$slots, `checkbox-${
|
|
3036
|
-
option:
|
|
3037
|
-
selected: e.modelValue.includes(
|
|
3034
|
+
Se(L.$slots, `checkbox-${p.key || p.value}-append`, {
|
|
3035
|
+
option: p,
|
|
3036
|
+
selected: e.modelValue.includes(p.value)
|
|
3038
3037
|
})
|
|
3039
3038
|
]),
|
|
3040
|
-
H(d)[`checkbox-${
|
|
3039
|
+
H(d)[`checkbox-${p.key || p.value}-end`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3041
3040
|
key: 0,
|
|
3042
|
-
class: qe([{ "q-checkbox disabled": e.disable ||
|
|
3041
|
+
class: qe([{ "q-checkbox disabled": e.disable || p.disabled }, "col"])
|
|
3043
3042
|
}, [
|
|
3044
|
-
Se(L.$slots, `checkbox-${
|
|
3045
|
-
option:
|
|
3046
|
-
value: e.modelValue.includes(
|
|
3047
|
-
disable: e.disable ||
|
|
3043
|
+
Se(L.$slots, `checkbox-${p.key || p.value}-end`, {
|
|
3044
|
+
option: p,
|
|
3045
|
+
value: e.modelValue.includes(p.value),
|
|
3046
|
+
disable: e.disable || p.disabled
|
|
3048
3047
|
})
|
|
3049
3048
|
], 2)) : Me("", !0)
|
|
3050
3049
|
], 2),
|
|
3051
|
-
H(d)[`checkbox-${
|
|
3050
|
+
H(d)[`checkbox-${p.key || p.value}-bottom`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3052
3051
|
key: 0,
|
|
3053
|
-
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable ||
|
|
3052
|
+
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || p.disabled }]),
|
|
3054
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3055
3054
|
}, [
|
|
3056
|
-
Se(L.$slots, `checkbox-${
|
|
3057
|
-
option:
|
|
3058
|
-
disable: e.disable ||
|
|
3059
|
-
value: e.modelValue.includes(
|
|
3055
|
+
Se(L.$slots, `checkbox-${p.key || p.value}-bottom`, {
|
|
3056
|
+
option: p,
|
|
3057
|
+
disable: e.disable || p.disabled,
|
|
3058
|
+
value: e.modelValue.includes(p.value)
|
|
3060
3059
|
})
|
|
3061
3060
|
], 6)) : Me("", !0)
|
|
3062
3061
|
], 6))), 128)),
|
|
@@ -3066,7 +3065,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3066
3065
|
}, 8, ["title"]);
|
|
3067
3066
|
};
|
|
3068
3067
|
}
|
|
3069
|
-
}), ta = { class: "fm-typo-en-title-sm-600" },
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, pt = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3070
3069
|
__name: "ConditionPermission",
|
|
3071
3070
|
props: {
|
|
3072
3071
|
modelValue: {
|
|
@@ -3091,30 +3090,30 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3091
3090
|
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3092
3091
|
{
|
|
3093
3092
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3094
|
-
value:
|
|
3093
|
+
value: pt,
|
|
3095
3094
|
// Can only be selected if all other options are selected
|
|
3096
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3097
3096
|
},
|
|
3098
3097
|
...n.options.filter(
|
|
3099
3098
|
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3100
3099
|
)
|
|
3101
|
-
]), d = z(() => n.modelValue ? n.modelValue : [
|
|
3102
|
-
const y = d.value.filter((T) => T !==
|
|
3100
|
+
]), d = z(() => n.modelValue ? n.modelValue : [pt, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3101
|
+
const y = d.value.filter((T) => T !== pt).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 !== pt));
|
|
3108
3107
|
}
|
|
3109
3108
|
const g = rt("");
|
|
3110
3109
|
return (y, T) => {
|
|
3111
|
-
const
|
|
3112
|
-
return J(),
|
|
3110
|
+
const C = we("fm-search");
|
|
3111
|
+
return J(), Ce(Bt, { subtitle: u.value }, {
|
|
3113
3112
|
title: de(() => [
|
|
3114
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3115
3114
|
]),
|
|
3116
3115
|
default: de(() => [
|
|
3117
|
-
e.options.length > 1 ? (J(),
|
|
3116
|
+
e.options.length > 1 ? (J(), Ce(C, {
|
|
3118
3117
|
key: 0,
|
|
3119
3118
|
modelValue: g.value,
|
|
3120
3119
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
@@ -3188,7 +3187,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
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) => (J(),
|
|
3190
|
+
return (g, y) => (J(), Ce(Bt, { subtitle: u.value }, {
|
|
3192
3191
|
title: de(() => [
|
|
3193
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3194
3193
|
]),
|
|
@@ -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: de(({ option:
|
|
3209
|
-
Se(g.$slots, `checkbox-${T.value}-append`, { option:
|
|
3207
|
+
fn: de(({ option: C }) => [
|
|
3208
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: C })
|
|
3210
3209
|
])
|
|
3211
3210
|
}))
|
|
3212
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3244,7 +3243,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3244
3243
|
const n = t, { t: r } = He();
|
|
3245
3244
|
return (l, a) => {
|
|
3246
3245
|
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3247
|
-
return J(),
|
|
3246
|
+
return J(), Ce(Nr, {
|
|
3248
3247
|
title: e.title,
|
|
3249
3248
|
builders: e.builders,
|
|
3250
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -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
|
-
])) : (J(),
|
|
3291
|
+
])) : (J(), Ce(nn, {
|
|
3293
3292
|
key: 1,
|
|
3294
3293
|
builder: i,
|
|
3295
3294
|
"model-value": e.formValueFor(i),
|
|
@@ -3303,11 +3302,11 @@ 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) {
|
|
3310
|
-
return
|
|
3309
|
+
return Zn(e, Yn).some(
|
|
3311
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3312
3311
|
);
|
|
3313
3312
|
}
|
|
@@ -3338,7 +3337,7 @@ function ia(e, t, n, r) {
|
|
|
3338
3337
|
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3339
3338
|
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !d.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
|
}
|
|
@@ -3347,20 +3346,20 @@ function ia(e, t, n, r) {
|
|
|
3347
3346
|
if (!l.has(i)) continue;
|
|
3348
3347
|
const g = e.find((w) => w.subject === i && !w.inverted), y = t.find((w) => w.subject === i && !w.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((w) => C.has(w)))
|
|
3352
3351
|
continue;
|
|
3353
3352
|
const F = u.findIndex((w) => w.subject === i && !w.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
3359
|
const w = r(i);
|
|
3361
|
-
w && u.push(Un(w, Array.from(
|
|
3360
|
+
w && u.push(Un(w, 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((w) => !(w.subject === i && w.inverted)));
|
|
3364
3363
|
}
|
|
3365
3364
|
return u;
|
|
3366
3365
|
}
|
|
@@ -3401,7 +3400,7 @@ function ma(e, t) {
|
|
|
3401
3400
|
}
|
|
3402
3401
|
function Mt(e, t) {
|
|
3403
3402
|
const n = new Set(e.actions);
|
|
3404
|
-
return n.has(
|
|
3403
|
+
return n.has(pe.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3405
3404
|
}
|
|
3406
3405
|
function Yt(e, t) {
|
|
3407
3406
|
const n = We(e);
|
|
@@ -3433,53 +3432,53 @@ function fa(e, t, n) {
|
|
|
3433
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
|
-
const
|
|
3441
|
-
return
|
|
3439
|
+
const h = u(I);
|
|
3440
|
+
return h ? Object.keys(i(h, b)).length > 0 : !1;
|
|
3442
3441
|
}
|
|
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],
|
|
3447
|
-
if (I &&
|
|
3448
|
-
const A = tt(We(I), b),
|
|
3449
|
-
if (JSON.stringify(A) === JSON.stringify(
|
|
3445
|
+
const I = e.value[c.index], h = l(c.subject), k = h ? u(h) : void 0;
|
|
3446
|
+
if (I && k) {
|
|
3447
|
+
const A = tt(We(I), b), B = i(k, b);
|
|
3448
|
+
if (JSON.stringify(A) === JSON.stringify(B)) return "inherit";
|
|
3450
3449
|
}
|
|
3451
3450
|
return "custom";
|
|
3452
3451
|
}
|
|
3453
3452
|
function T(c, b, I) {
|
|
3454
3453
|
if (!b.summarizeForm) return;
|
|
3455
|
-
const
|
|
3456
|
-
if (!
|
|
3457
|
-
const
|
|
3458
|
-
if (!
|
|
3459
|
-
const A = b.fromCondition(i(
|
|
3454
|
+
const h = l(c.subject);
|
|
3455
|
+
if (!h) return;
|
|
3456
|
+
const k = u(h);
|
|
3457
|
+
if (!k) return;
|
|
3458
|
+
const A = b.fromCondition(i(k, b));
|
|
3460
3459
|
return b.summarizeForm(A, { timeZone: I });
|
|
3461
3460
|
}
|
|
3462
|
-
function
|
|
3461
|
+
function C(c, b) {
|
|
3463
3462
|
if (c.index === null) return;
|
|
3464
|
-
const I = [...e.value],
|
|
3463
|
+
const I = [...e.value], h = { ...I[c.index] }, k = Yt(h, b), A = Object.keys(k).length === 0, B = l(c.subject), x = B ? u(B) : void 0, m = x ? Mt(x, h) : !1;
|
|
3465
3464
|
if (A && m)
|
|
3466
3465
|
I.splice(c.index, 1);
|
|
3467
3466
|
else if (x) {
|
|
3468
|
-
const
|
|
3469
|
-
Object.keys(
|
|
3467
|
+
const N = Vn(h, x, b);
|
|
3468
|
+
Object.keys(N).length === 0 ? delete h.conditions : h.conditions = JSON.stringify(N), I[c.index] = h;
|
|
3470
3469
|
} else
|
|
3471
|
-
A ? delete
|
|
3470
|
+
A ? delete h.conditions : h.conditions = JSON.stringify(k), I[c.index] = h;
|
|
3472
3471
|
n(I);
|
|
3473
3472
|
}
|
|
3474
3473
|
function F(c, b, I) {
|
|
3475
|
-
const
|
|
3474
|
+
const h = gt(c.subject, b);
|
|
3476
3475
|
if (I === "inherit") {
|
|
3477
3476
|
const A = new Set(r.value);
|
|
3478
|
-
A.delete(
|
|
3477
|
+
A.delete(h), r.value = A, C(c, b);
|
|
3479
3478
|
return;
|
|
3480
3479
|
}
|
|
3481
|
-
const
|
|
3482
|
-
|
|
3480
|
+
const k = new Set(r.value);
|
|
3481
|
+
k.add(h), r.value = k, c.index === null && p(c, b, b.fromCondition(void 0), {
|
|
3483
3482
|
forceCreateRule: !0
|
|
3484
3483
|
});
|
|
3485
3484
|
}
|
|
@@ -3492,46 +3491,46 @@ function fa(e, t, n) {
|
|
|
3492
3491
|
function L(c, b) {
|
|
3493
3492
|
return e.value.filter((I) => {
|
|
3494
3493
|
if (I.inverted) return !1;
|
|
3495
|
-
const
|
|
3496
|
-
return
|
|
3494
|
+
const h = I.subject;
|
|
3495
|
+
return h === c || l(h) !== c ? !1 : r.value.has(gt(h, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3497
3496
|
});
|
|
3498
3497
|
}
|
|
3499
3498
|
function D(c, b) {
|
|
3500
|
-
const I = `::${b.builderKey}`,
|
|
3501
|
-
for (const
|
|
3502
|
-
if (!
|
|
3503
|
-
const A =
|
|
3504
|
-
l(A) === c &&
|
|
3499
|
+
const I = `::${b.builderKey}`, h = new Set(r.value);
|
|
3500
|
+
for (const k of h) {
|
|
3501
|
+
if (!k.endsWith(I)) continue;
|
|
3502
|
+
const A = k.slice(0, -I.length);
|
|
3503
|
+
l(A) === c && h.delete(k);
|
|
3505
3504
|
}
|
|
3506
|
-
r.value =
|
|
3505
|
+
r.value = h;
|
|
3507
3506
|
}
|
|
3508
3507
|
function f(c, b, I) {
|
|
3509
|
-
const
|
|
3510
|
-
return c.reduce((
|
|
3508
|
+
const h = b.subject;
|
|
3509
|
+
return c.reduce((k, A) => {
|
|
3511
3510
|
if (A.inverted)
|
|
3512
|
-
return
|
|
3513
|
-
const
|
|
3514
|
-
if (
|
|
3515
|
-
return
|
|
3511
|
+
return k.push(A), k;
|
|
3512
|
+
const B = A.subject;
|
|
3513
|
+
if (B === h || l(B) !== h)
|
|
3514
|
+
return k.push(A), k;
|
|
3516
3515
|
if (Mt(b, A) && Object.keys(Yt(A, I)).length === 0)
|
|
3517
|
-
return
|
|
3516
|
+
return k;
|
|
3518
3517
|
const m = Vn(A, b, I);
|
|
3519
3518
|
if (Object.keys(m).length === 0) {
|
|
3520
|
-
const { conditions:
|
|
3521
|
-
|
|
3519
|
+
const { conditions: N, ...U } = A;
|
|
3520
|
+
k.push(U);
|
|
3522
3521
|
} else
|
|
3523
|
-
|
|
3524
|
-
return
|
|
3522
|
+
k.push({ ...A, conditions: JSON.stringify(m) });
|
|
3523
|
+
return k;
|
|
3525
3524
|
}, []);
|
|
3526
3525
|
}
|
|
3527
|
-
function
|
|
3526
|
+
function p(c, b, I, h = {}) {
|
|
3528
3527
|
var V;
|
|
3529
|
-
const
|
|
3528
|
+
const k = [...e.value];
|
|
3530
3529
|
let A = c.index;
|
|
3531
|
-
const
|
|
3532
|
-
if (A === null && !x && !
|
|
3530
|
+
const B = b.toCondition(I), x = Object.keys(B).length > 0;
|
|
3531
|
+
if (A === null && !x && !h.forceCreateRule) return;
|
|
3533
3532
|
if (A === null) {
|
|
3534
|
-
const j =
|
|
3533
|
+
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3535
3534
|
if (j !== -1)
|
|
3536
3535
|
A = j;
|
|
3537
3536
|
else {
|
|
@@ -3540,74 +3539,74 @@ function fa(e, t, n) {
|
|
|
3540
3539
|
const {
|
|
3541
3540
|
category: W,
|
|
3542
3541
|
showByFeatureFlag: Y,
|
|
3543
|
-
isCategoryCover:
|
|
3542
|
+
isCategoryCover: X,
|
|
3544
3543
|
...ne
|
|
3545
3544
|
} = G;
|
|
3546
|
-
|
|
3545
|
+
k.push({
|
|
3547
3546
|
...ne,
|
|
3548
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3549
|
-
}), A =
|
|
3548
|
+
}), A = k.length - 1;
|
|
3550
3549
|
}
|
|
3551
3550
|
}
|
|
3552
|
-
const m = { ...
|
|
3551
|
+
const m = { ...k[A] };
|
|
3553
3552
|
m.actions = [
|
|
3554
3553
|
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3555
3554
|
];
|
|
3556
|
-
const
|
|
3557
|
-
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U),
|
|
3555
|
+
const N = We(m), U = Dt(N, [{ builder: b, formValue: I }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[A] = m, sn(c.subject, t.value)) {
|
|
3558
3557
|
const j = L(c.subject, b), G = () => {
|
|
3559
3558
|
var Y;
|
|
3560
|
-
D(c.subject, b), n(f(
|
|
3559
|
+
D(c.subject, b), n(f(k, m, b)), (Y = h.afterCommit) == null || Y.call(h);
|
|
3561
3560
|
}, W = () => {
|
|
3562
3561
|
var Y;
|
|
3563
|
-
n(
|
|
3562
|
+
n(k), (Y = h.afterCommit) == null || Y.call(h);
|
|
3564
3563
|
};
|
|
3565
3564
|
if (j.length === 0) {
|
|
3566
3565
|
G();
|
|
3567
3566
|
return;
|
|
3568
3567
|
}
|
|
3569
|
-
|
|
3568
|
+
h.onOverridesConflict ? h.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3570
3569
|
return;
|
|
3571
3570
|
}
|
|
3572
|
-
n(
|
|
3571
|
+
n(k), (V = h.afterCommit) == null || V.call(h);
|
|
3573
3572
|
}
|
|
3574
3573
|
function S(c, b, I = {}) {
|
|
3575
3574
|
if (b.length === 0) return;
|
|
3576
|
-
const
|
|
3577
|
-
let
|
|
3575
|
+
const h = [...e.value];
|
|
3576
|
+
let k = h.findIndex((j) => !j.inverted && j.subject === c.subject), A = k === -1 ? void 0 : { ...h[k] }, B = We(A ?? {}) ?? {};
|
|
3578
3577
|
for (const j of b) {
|
|
3579
3578
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3580
|
-
|
|
3579
|
+
B = Dt(B, [{ builder: j.builder, formValue: G }]);
|
|
3581
3580
|
}
|
|
3582
3581
|
const x = b.some((j) => j.mode === "custom");
|
|
3583
|
-
if (!A && (Object.keys(
|
|
3582
|
+
if (!A && (Object.keys(B).length > 0 || x)) {
|
|
3584
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3585
3584
|
if (!j) return;
|
|
3586
3585
|
const {
|
|
3587
3586
|
category: G,
|
|
3588
3587
|
showByFeatureFlag: W,
|
|
3589
3588
|
isCategoryCover: Y,
|
|
3590
|
-
...
|
|
3589
|
+
...X
|
|
3591
3590
|
} = j;
|
|
3592
3591
|
A = {
|
|
3593
|
-
...
|
|
3594
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3595
|
-
},
|
|
3592
|
+
...X,
|
|
3593
|
+
actions: c.actions.length > 0 ? c.actions : X.actions
|
|
3594
|
+
}, h.push(A), k = h.length - 1;
|
|
3596
3595
|
}
|
|
3597
3596
|
if (A) {
|
|
3598
3597
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3599
|
-
if (!x && Object.keys(
|
|
3600
|
-
|
|
3598
|
+
if (!x && Object.keys(B).length === 0 && !!G && Mt(G, A))
|
|
3599
|
+
h.splice(k, 1), A = void 0;
|
|
3601
3600
|
else {
|
|
3602
3601
|
if (A.actions = [
|
|
3603
3602
|
.../* @__PURE__ */ new Set([...A.actions, ...c.actions])
|
|
3604
3603
|
], G)
|
|
3605
3604
|
for (const Y of b)
|
|
3606
|
-
Y.mode === "inherit" && (
|
|
3607
|
-
...
|
|
3605
|
+
Y.mode === "inherit" && (B = {
|
|
3606
|
+
...B,
|
|
3608
3607
|
...tt(We(G), Y.builder)
|
|
3609
3608
|
});
|
|
3610
|
-
Object.keys(
|
|
3609
|
+
Object.keys(B).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(B), h[k] = A;
|
|
3611
3610
|
}
|
|
3612
3611
|
}
|
|
3613
3612
|
const m = () => {
|
|
@@ -3617,25 +3616,25 @@ function fa(e, t, n) {
|
|
|
3617
3616
|
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3618
3617
|
}
|
|
3619
3618
|
r.value = j;
|
|
3620
|
-
},
|
|
3619
|
+
}, N = (j) => {
|
|
3621
3620
|
var G;
|
|
3622
3621
|
m(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3623
3622
|
};
|
|
3624
3623
|
if (!sn(c.subject, t.value) || !A) {
|
|
3625
|
-
|
|
3624
|
+
N(h);
|
|
3626
3625
|
return;
|
|
3627
3626
|
}
|
|
3628
3627
|
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3629
|
-
let j =
|
|
3628
|
+
let j = h;
|
|
3630
3629
|
for (const G of b.map((W) => W.builder))
|
|
3631
3630
|
D(c.subject, G), j = f(j, A, G);
|
|
3632
|
-
|
|
3631
|
+
N(j);
|
|
3633
3632
|
};
|
|
3634
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3635
|
-
I.onOverridesConflict({ override: V, keep: () =>
|
|
3634
|
+
I.onOverridesConflict({ override: V, keep: () => N(h) });
|
|
3636
3635
|
return;
|
|
3637
3636
|
}
|
|
3638
|
-
U.length > 0 ?
|
|
3637
|
+
U.length > 0 ? N(h) : V();
|
|
3639
3638
|
}
|
|
3640
3639
|
return {
|
|
3641
3640
|
getCoverSubject: l,
|
|
@@ -3645,11 +3644,11 @@ function fa(e, t, n) {
|
|
|
3645
3644
|
setInheritMode: F,
|
|
3646
3645
|
inheritedSummary: T,
|
|
3647
3646
|
getEffectiveActions: w,
|
|
3648
|
-
updateBuilderCondition:
|
|
3647
|
+
updateBuilderCondition: p,
|
|
3649
3648
|
applyConditionDrafts: S
|
|
3650
3649
|
};
|
|
3651
3650
|
}
|
|
3652
|
-
const _a = { class: "flex flex-col gap-32" },
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, pa = { 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", Da = /* @__PURE__ */ Le({
|
|
3653
3652
|
__name: "PortalPermissionEditor",
|
|
3654
3653
|
props: /* @__PURE__ */ tn({
|
|
3655
3654
|
disable: {
|
|
@@ -3666,10 +3665,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { 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 = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), d =
|
|
3668
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = pr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3670
3669
|
fetchCustomReportPermissions: y,
|
|
3671
3670
|
customReportPermissions: T
|
|
3672
|
-
} = Ir(),
|
|
3671
|
+
} = Ir(), C = z(() => [
|
|
3673
3672
|
...Gn,
|
|
3674
3673
|
...T.value
|
|
3675
3674
|
]), F = z(() => {
|
|
@@ -3677,7 +3676,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3677
3676
|
return da(O, o);
|
|
3678
3677
|
});
|
|
3679
3678
|
function w(O) {
|
|
3680
|
-
return
|
|
3679
|
+
return C.value.find((s) => s.subject === O);
|
|
3681
3680
|
}
|
|
3682
3681
|
function L(O, s) {
|
|
3683
3682
|
return rn(O).filter(
|
|
@@ -3688,7 +3687,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3688
3687
|
);
|
|
3689
3688
|
}
|
|
3690
3689
|
const D = z(() => {
|
|
3691
|
-
const O =
|
|
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,
|
|
@@ -3702,7 +3701,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3702
3701
|
const O = r.inheritPermissions.map((s) => ({
|
|
3703
3702
|
...s,
|
|
3704
3703
|
permissions: s.permissions.filter(
|
|
3705
|
-
(o) => o.subject ===
|
|
3704
|
+
(o) => o.subject === pe.Subject.Business.inventory_stock
|
|
3706
3705
|
)
|
|
3707
3706
|
}));
|
|
3708
3707
|
return At(
|
|
@@ -3710,22 +3709,22 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3710
3709
|
"warehouseId",
|
|
3711
3710
|
I.value.map((s) => s._id)
|
|
3712
3711
|
);
|
|
3713
|
-
}),
|
|
3712
|
+
}), p = z(() => {
|
|
3714
3713
|
const O = r.inheritPermissions.map((s) => ({
|
|
3715
3714
|
...s,
|
|
3716
3715
|
permissions: s.permissions.filter(
|
|
3717
|
-
(o) => o.subject ===
|
|
3716
|
+
(o) => o.subject === pe.Subject.Restaurant.restaurant
|
|
3718
3717
|
)
|
|
3719
3718
|
}));
|
|
3720
3719
|
return At(
|
|
3721
3720
|
O,
|
|
3722
3721
|
"restaurantId",
|
|
3723
|
-
|
|
3722
|
+
B.value.map((s) => s._id)
|
|
3724
3723
|
);
|
|
3725
3724
|
}), S = z(() => {
|
|
3726
3725
|
const O = r.inheritPermissions.map((s) => ({
|
|
3727
3726
|
...s,
|
|
3728
|
-
permissions: s.permissions.filter((o) => o.subject ===
|
|
3727
|
+
permissions: s.permissions.filter((o) => o.subject === pe.Subject.Business.role)
|
|
3729
3728
|
}));
|
|
3730
3729
|
return At(
|
|
3731
3730
|
O,
|
|
@@ -3733,73 +3732,73 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3733
3732
|
x.value.map((s) => s._id)
|
|
3734
3733
|
);
|
|
3735
3734
|
}), c = [
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3735
|
+
pe.Subject.Business.restaurant,
|
|
3736
|
+
pe.Subject.Business.role,
|
|
3737
|
+
pe.Subject.Restaurant.restaurant,
|
|
3738
|
+
pe.Subject.Business.inventory_stock
|
|
3740
3739
|
], b = z(() => {
|
|
3741
3740
|
var s;
|
|
3742
3741
|
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3743
|
-
(o) => o.subject ===
|
|
3742
|
+
(o) => o.subject === pe.Subject.Business.inventory_stock
|
|
3744
3743
|
);
|
|
3745
3744
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3746
|
-
}), I = rt([]),
|
|
3745
|
+
}), I = rt([]), h = z(() => I.value.map((O) => ({
|
|
3747
3746
|
label: O.profile.name,
|
|
3748
3747
|
value: O._id
|
|
3749
3748
|
})));
|
|
3750
|
-
function
|
|
3749
|
+
function k(O) {
|
|
3751
3750
|
const s = A(n.value, O);
|
|
3752
3751
|
n.value = s;
|
|
3753
3752
|
}
|
|
3754
3753
|
function A(O, s) {
|
|
3755
3754
|
let o = It(
|
|
3756
|
-
O.filter((_) => _.subject !==
|
|
3755
|
+
O.filter((_) => _.subject !== pe.Subject.Business.inventory_stock)
|
|
3757
3756
|
);
|
|
3758
3757
|
if (!s || s.length > 0) {
|
|
3759
3758
|
const _ = {
|
|
3760
|
-
actions: [
|
|
3761
|
-
subject:
|
|
3759
|
+
actions: [pe.Action.manage],
|
|
3760
|
+
subject: pe.Subject.Business.inventory_stock
|
|
3762
3761
|
};
|
|
3763
3762
|
s && (_.conditions = JSON.stringify({ warehouseId: { $in: s } })), o.push(_);
|
|
3764
3763
|
}
|
|
3765
3764
|
return o;
|
|
3766
3765
|
}
|
|
3767
|
-
const { restaurants:
|
|
3766
|
+
const { restaurants: B } = d, x = Mr().roles, m = z(() => B.value.map((O) => ({
|
|
3768
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3769
3768
|
value: O._id
|
|
3770
|
-
}))),
|
|
3769
|
+
}))), N = z(() => B.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3771
3770
|
function V(O) {
|
|
3772
3771
|
const s = G(n.value, O);
|
|
3773
3772
|
n.value = s;
|
|
3774
3773
|
}
|
|
3775
|
-
const j = z(() =>
|
|
3774
|
+
const j = z(() => Cr(n.value));
|
|
3776
3775
|
function G(O, s) {
|
|
3777
3776
|
var _;
|
|
3778
3777
|
let o = It(
|
|
3779
3778
|
O.filter(
|
|
3780
|
-
(
|
|
3779
|
+
(R) => R.subject !== pe.Subject.Business.restaurant && R.subject !== pe.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
|
} = Ar.restaurant;
|
|
3789
3788
|
o.push(P);
|
|
3790
3789
|
const v = {
|
|
3791
|
-
actions: [
|
|
3792
|
-
subject:
|
|
3790
|
+
actions: [pe.Action.manage],
|
|
3791
|
+
subject: pe.Subject.Restaurant.restaurant
|
|
3793
3792
|
};
|
|
3794
3793
|
s && (v.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(v);
|
|
3795
3794
|
}
|
|
3796
3795
|
if (s) {
|
|
3797
|
-
const
|
|
3798
|
-
...new Set(s.map((P) =>
|
|
3796
|
+
const R = [
|
|
3797
|
+
...new Set(s.map((P) => N.value[P]).flatMap((P) => P))
|
|
3799
3798
|
], M = x.value.map((P) => P._id);
|
|
3800
|
-
|
|
3799
|
+
R.length !== M.length && (o = Y(
|
|
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;
|
|
@@ -3810,12 +3809,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3810
3809
|
}
|
|
3811
3810
|
function Y(O, s) {
|
|
3812
3811
|
let o = It(
|
|
3813
|
-
O.filter((_) => _.subject !==
|
|
3812
|
+
O.filter((_) => _.subject !== pe.Subject.Business.role)
|
|
3814
3813
|
);
|
|
3815
3814
|
if (s && s.length > 0) {
|
|
3816
3815
|
const _ = {
|
|
3817
|
-
actions: [
|
|
3818
|
-
subject:
|
|
3816
|
+
actions: [pe.Action.manage],
|
|
3817
|
+
subject: pe.Subject.Business.role,
|
|
3819
3818
|
conditions: JSON.stringify({ roleId: { $in: s } })
|
|
3820
3819
|
};
|
|
3821
3820
|
o.push(_);
|
|
@@ -3828,7 +3827,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3828
3827
|
y()
|
|
3829
3828
|
]);
|
|
3830
3829
|
});
|
|
3831
|
-
const
|
|
3830
|
+
const X = z(() => Zn(
|
|
3832
3831
|
n.value,
|
|
3833
3832
|
Yn
|
|
3834
3833
|
).filter((o) => {
|
|
@@ -3838,32 +3837,32 @@ const _a = { class: "flex flex-col gap-32" }, pa = { 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 = w(o.subject);
|
|
3841
|
+
if (!R) return o;
|
|
3842
|
+
const M = R.actions;
|
|
3844
3843
|
return M.length <= 1 || M.filter((v) => !_.includes(v)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3845
3844
|
}));
|
|
3846
3845
|
function ne(O) {
|
|
3847
3846
|
n.value = ia(
|
|
3848
|
-
|
|
3847
|
+
X.value,
|
|
3849
3848
|
O,
|
|
3850
3849
|
n.value,
|
|
3851
3850
|
w
|
|
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
|
-
return
|
|
3857
|
+
return X.value.map((s) => ({
|
|
3859
3858
|
rule: s,
|
|
3860
3859
|
index: n.value.findIndex(
|
|
3861
3860
|
(o) => !o.inverted && o.subject === s.subject
|
|
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 = L(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;
|
|
@@ -3876,26 +3875,26 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3876
3875
|
label: ((P = w(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((v) => ({
|
|
3880
3879
|
builder: v,
|
|
3881
3880
|
formValue: v.fromCondition(tt(M, v))
|
|
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 = L(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
|
}))
|
|
@@ -3904,14 +3903,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3904
3903
|
function De(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) {
|
|
3911
3910
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3912
3911
|
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3913
3912
|
}
|
|
3914
|
-
function
|
|
3913
|
+
function he(O, s, o) {
|
|
3915
3914
|
const _ = se.getDraft({
|
|
3916
3915
|
subject: O.subject,
|
|
3917
3916
|
builderKey: s.builderKey
|
|
@@ -3928,11 +3927,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
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
|
);
|
|
@@ -3942,11 +3941,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3942
3941
|
}
|
|
3943
3942
|
function Ve(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" }, pa = { 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 Ye(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,11 +3978,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { 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
|
};
|
|
@@ -3995,11 +3994,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3995
3994
|
},
|
|
3996
3995
|
{ deep: !0 }
|
|
3997
3996
|
), (O, s) => {
|
|
3998
|
-
const o = we("FmIcon"), _ = we("FmBottomSheet"),
|
|
3997
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), R = we("FmPopover");
|
|
3999
3998
|
return J(), ie("div", _a, [
|
|
4000
|
-
ae("div",
|
|
3999
|
+
ae("div", ha, [
|
|
4001
4000
|
ue(Ho, {
|
|
4002
|
-
"model-value":
|
|
4001
|
+
"model-value": X.value,
|
|
4003
4002
|
"excluded-subjects": c,
|
|
4004
4003
|
"additional-permissions": H(T),
|
|
4005
4004
|
"onUpdate:modelValue": ne
|
|
@@ -4013,8 +4012,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4013
4012
|
Ee(Q.value, (M) => ({
|
|
4014
4013
|
name: `checkbox-${M}-icon`,
|
|
4015
4014
|
fn: de(({ option: P, isEffectiveSelected: v }) => [
|
|
4016
|
-
v && q(M, P.label) ? (J(), ie(
|
|
4017
|
-
g.value ? (J(),
|
|
4015
|
+
v && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
4016
|
+
g.value ? (J(), Ce(_, {
|
|
4018
4017
|
key: 0,
|
|
4019
4018
|
"model-value": fe.value === M,
|
|
4020
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
@@ -4052,12 +4051,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4052
4051
|
disable: e.disable,
|
|
4053
4052
|
"full-width": !0,
|
|
4054
4053
|
onUpdateInheritMode: ({ builder: E, mode: $ }) => Je(q(M, P.label), E, $),
|
|
4055
|
-
onUpdateForm: ({ builder: E, form: $ }) =>
|
|
4054
|
+
onUpdateForm: ({ builder: E, form: $ }) => he(q(M, P.label), E, $),
|
|
4056
4055
|
onApply: (E) => Ve(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"])) : (J(),
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ce(R, {
|
|
4061
4060
|
key: 1,
|
|
4062
4061
|
disabled: e.disable,
|
|
4063
4062
|
"z-index": 100,
|
|
@@ -4068,7 +4067,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4068
4067
|
}
|
|
4069
4068
|
}, {
|
|
4070
4069
|
"popover-button": de(() => [
|
|
4071
|
-
ae("div",
|
|
4070
|
+
ae("div", pa, [
|
|
4072
4071
|
ue(o, {
|
|
4073
4072
|
name: "settings",
|
|
4074
4073
|
size: "sm",
|
|
@@ -4098,13 +4097,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4098
4097
|
$,
|
|
4099
4098
|
le
|
|
4100
4099
|
),
|
|
4101
|
-
onUpdateForm: ({ builder: $, form: le }) =>
|
|
4100
|
+
onUpdateForm: ({ builder: $, form: le }) => he(q(M, P.label), $, le),
|
|
4102
4101
|
onApply: ($) => Ve(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)) : (J(),
|
|
4106
|
+
], 64)) : (J(), Ce(o, {
|
|
4108
4107
|
key: 1,
|
|
4109
4108
|
name: "settings",
|
|
4110
4109
|
size: "sm",
|
|
@@ -4117,9 +4116,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4117
4116
|
ae("div", ba, [
|
|
4118
4117
|
ue(Dn, {
|
|
4119
4118
|
"model-value": b.value,
|
|
4120
|
-
options:
|
|
4119
|
+
options: h.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`,
|
|
@@ -4136,7 +4135,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4136
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4137
4136
|
"onUpdate:modelValue": V
|
|
4138
4137
|
}, et({ _: 2 }, [
|
|
4139
|
-
Ee(
|
|
4138
|
+
Ee(p.value, (M) => ({
|
|
4140
4139
|
name: `checkbox-${M.id}-append`,
|
|
4141
4140
|
fn: de(() => [
|
|
4142
4141
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4164,5 +4163,5 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4164
4163
|
}
|
|
4165
4164
|
});
|
|
4166
4165
|
export {
|
|
4167
|
-
|
|
4166
|
+
Da as _
|
|
4168
4167
|
};
|