@feedmepos/mf-hrm-portal 2.1.0 → 2.1.1-dev.2
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/AuditLogList-DHiqs9G0.js +1611 -0
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-CJEkZVoJ.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-CWqNWNdD.js} +2 -2
- package/dist/{EmployeeList-CckyPQlP.js → EmployeeList-CUd3VH5h.js} +10 -9
- package/dist/{Main-C4cSWAts.js → Main-B_L5flWT.js} +6 -6
- package/dist/{Main-BdPIZkik.js → Main-DUbLeLlK.js} +4 -4
- package/dist/{Main-BUvX24j0.js → Main-DgemO-iy.js} +9 -9
- package/dist/{PermissionSetList-CP8J9Prx.js → PermissionSetList-BaC4lKV5.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C7X69eQq.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DddOxcG_.js} +911 -911
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-ZAEcrK9Q.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-DbPzVpnG.js} +1 -1
- package/dist/{RoleList-BHvGGF82.js → RoleList-CThb6VEd.js} +8 -8
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/{TeamMemberList-DPkocw3U.js → TeamMemberList-CAw4jr1b.js} +24 -23
- package/dist/{TimesheetList-mOWHmWwo.js → TimesheetList-C_IMtsTH.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CpUHcGUj.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DGwteHIL.js} +2 -2
- package/dist/{app-DnaRDAJY.js → app-BW91YDke.js} +596 -300
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-NAaPKajp.js → dayjs.min-DwQTpnVK.js} +1 -1
- package/dist/{employee-CILPIL-b.js → employee-yM0kdY70.js} +3 -3
- package/dist/{iteration-B7PEDIWb.js → iteration-Dj50K6I7.js} +3 -3
- package/dist/{lodash-CgE5OnVa.js → lodash-DLReQyP0.js} +1 -1
- package/dist/{rule-BmSYQ3Op.js → rule-BJ-o-PKi.js} +2 -2
- package/dist/src/api/audit-log/index.d.ts +6 -0
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/event-line.d.ts +13 -0
- package/dist/src/views/audit-log/locales/index.d.ts +296 -0
- package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DMmL9JnJ.js → useAppStore-CHkGWiai.js} +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useLoading-D56E7ykF.js → useLoading-B89K5XKO.js} +1 -1
- package/dist/{useReportPermissions-BKj02rVj.js → useReportPermissions-Bjfhr6FD.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-Rrg_dNYp.js +0 -1149
- package/dist/useDebounce-CWb5QR9G.js +0 -28
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as nt, useCoreStore as
|
|
3
|
-
import { useDialog as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as cs, ref as dt, shallowRef as us, computed as ee, watch as Dt, onMounted as xn, onUnmounted as ds, defineComponent as je, h as Vn, createVNode as fe, Text as ms, Fragment as Le, resolveComponent as Fe, createBlock as De, openBlock as z, withCtx as be, createElementVNode as le, createElementBlock as ue, toDisplayString as ke, unref as H, renderList as Ce, toRef as en, normalizeStyle as Qe, renderSlot as Ae, createCommentVNode as Re, createTextVNode as fs, useSlots as _s, normalizeClass as ot, createSlots as Ke, mergeModels as tn, useModel as ps } from "vue";
|
|
2
|
+
import { useI18n as nt, useCoreStore as vs } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as bs, useBreakpoints as hs } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Wn, N as Gn, i as gs, P as Is, x as
|
|
6
|
-
import { _ as Xt, u as Ns, a as nn } from "./ConditionFormHost.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as Cs, v as
|
|
8
|
-
import { d as It, g as Os, b as
|
|
9
|
-
import { u as
|
|
10
|
-
function
|
|
5
|
+
import { p as Wn, N as Gn, i as gs, P as Is, x as St, l as ys, k as Es } from "./rule-BJ-o-PKi.js";
|
|
6
|
+
import { _ as Xt, u as Ns, a as nn } from "./ConditionFormHost.vue_vue_type_script_setup_true_lang-CWqNWNdD.js";
|
|
7
|
+
import { u as Cs, v as Ts, P as Yn, S as wt, A as ze, d as he, k as sn, b as ks } from "./app-BW91YDke.js";
|
|
8
|
+
import { d as It, g as Os, b as Ss } from "./iteration-Dj50K6I7.js";
|
|
9
|
+
import { u as Ls } from "./useAppStore-CHkGWiai.js";
|
|
10
|
+
function Zn(e, t) {
|
|
11
11
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
12
12
|
}
|
|
13
13
|
function As(e) {
|
|
14
14
|
return Array.isArray(e) ? e[0] : e;
|
|
15
15
|
}
|
|
16
16
|
function Rs(e, t) {
|
|
17
|
-
const n = t.find((o) =>
|
|
17
|
+
const n = t.find((o) => Zn(o.subject, e));
|
|
18
18
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
19
19
|
const s = t.find((o) => o.category === n.category && o.isCategoryCover);
|
|
20
20
|
if (s)
|
|
21
21
|
return As(s.subject);
|
|
22
22
|
}
|
|
23
23
|
function rn(e, t) {
|
|
24
|
-
const n = t.find((s) =>
|
|
24
|
+
const n = t.find((s) => Zn(s.subject, e));
|
|
25
25
|
return !!(n != null && n.isCategoryCover);
|
|
26
26
|
}
|
|
27
27
|
/*!
|
|
@@ -29,9 +29,9 @@ function rn(e, t) {
|
|
|
29
29
|
* (c) 2024 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
31
|
*/
|
|
32
|
-
const an = typeof window < "u", He = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ms = (e, t, n) => Ds({ l: e, k: t, s: n }), Ds = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ie = (e) => typeof e == "number" && isFinite(e), ws = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ne(e) && Object.keys(e).length === 0, ye = Object.assign, Fs = Object.create,
|
|
32
|
+
const an = typeof window < "u", He = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ms = (e, t, n) => Ds({ l: e, k: t, s: n }), Ds = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Ie = (e) => typeof e == "number" && isFinite(e), ws = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ne(e) && Object.keys(e).length === 0, ye = Object.assign, Fs = Object.create, ie = (e = null) => Fs(e);
|
|
33
33
|
let on;
|
|
34
|
-
const Xe = () => on || (on = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
34
|
+
const Xe = () => on || (on = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ie());
|
|
35
35
|
function ln(e) {
|
|
36
36
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
37
37
|
}
|
|
@@ -39,7 +39,7 @@ const js = Object.prototype.hasOwnProperty;
|
|
|
39
39
|
function Me(e, t) {
|
|
40
40
|
return js.call(e, t);
|
|
41
41
|
}
|
|
42
|
-
const ge = Array.isArray, me = (e) => typeof e == "function",
|
|
42
|
+
const ge = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", se = (e) => e !== null && typeof e == "object", Ps = (e) => se(e) && me(e.then) && me(e.catch), Bn = Object.prototype.toString, Ht = (e) => Bn.call(e), ne = (e) => Ht(e) === "[object Object]", Us = (e) => e == null ? "" : ge(e) || ne(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
43
43
|
function $t(e, t = "") {
|
|
44
44
|
return e.reduce((n, s, o) => o === 0 ? n + s : n + t + s, "");
|
|
45
45
|
}
|
|
@@ -54,7 +54,7 @@ function yt(e, t) {
|
|
|
54
54
|
for (; n.length; ) {
|
|
55
55
|
const { src: s, des: o } = n.pop();
|
|
56
56
|
Object.keys(s).forEach((a) => {
|
|
57
|
-
a !== "__proto__" && (se(s[a]) && !se(o[a]) && (o[a] = Array.isArray(s[a]) ? [] :
|
|
57
|
+
a !== "__proto__" && (se(s[a]) && !se(o[a]) && (o[a] = Array.isArray(s[a]) ? [] : ie()), ft(o[a]) || ft(s[a]) ? o[a] = s[a] : n.push({ src: s[a], des: o[a] }));
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -82,7 +82,7 @@ const oe = {
|
|
|
82
82
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
83
83
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
84
84
|
}, Ws = 17;
|
|
85
|
-
function
|
|
85
|
+
function Tt(e, t, n = {}) {
|
|
86
86
|
const { domain: s, messages: o, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
87
87
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
88
88
|
}
|
|
@@ -90,21 +90,21 @@ function Gs(e) {
|
|
|
90
90
|
throw e;
|
|
91
91
|
}
|
|
92
92
|
const Ue = " ", Ys = "\r", Ne = `
|
|
93
|
-
`,
|
|
93
|
+
`, Zs = "\u2028", Bs = "\u2029";
|
|
94
94
|
function Xs(e) {
|
|
95
95
|
const t = e;
|
|
96
96
|
let n = 0, s = 1, o = 1, a = 0;
|
|
97
|
-
const d = (_) => t[_] === Ys && t[_ + 1] === Ne, u = (_) => t[_] === Ne, c = (_) => t[_] ===
|
|
97
|
+
const d = (_) => t[_] === Ys && t[_ + 1] === Ne, u = (_) => t[_] === Ne, c = (_) => t[_] === Bs, h = (_) => t[_] === Zs, y = (_) => d(_) || u(_) || c(_) || h(_), T = () => n, N = () => s, w = () => o, D = () => a, R = (_) => d(_) || c(_) || h(_) ? Ne : t[_], F = () => R(n), f = () => R(n + a);
|
|
98
98
|
function p() {
|
|
99
99
|
return a = 0, y(n) && (s++, o = 0), d(n) && n++, n++, o++, t[n];
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function S() {
|
|
102
102
|
return d(n + a) && a++, a++, t[n + a];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function i() {
|
|
105
105
|
n = 0, s = 1, o = 1, a = 0;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function v(_ = 0) {
|
|
108
108
|
a = _;
|
|
109
109
|
}
|
|
110
110
|
function g() {
|
|
@@ -114,7 +114,7 @@ function Xs(e) {
|
|
|
114
114
|
a = 0;
|
|
115
115
|
}
|
|
116
116
|
return {
|
|
117
|
-
index:
|
|
117
|
+
index: T,
|
|
118
118
|
line: N,
|
|
119
119
|
column: w,
|
|
120
120
|
peekOffset: D,
|
|
@@ -122,9 +122,9 @@ function Xs(e) {
|
|
|
122
122
|
currentChar: F,
|
|
123
123
|
currentPeek: f,
|
|
124
124
|
next: p,
|
|
125
|
-
peek:
|
|
126
|
-
reset:
|
|
127
|
-
resetPeek:
|
|
125
|
+
peek: S,
|
|
126
|
+
reset: i,
|
|
127
|
+
resetPeek: v,
|
|
128
128
|
skipToPeek: g
|
|
129
129
|
};
|
|
130
130
|
}
|
|
@@ -143,19 +143,19 @@ function Js(e, t = {}) {
|
|
|
143
143
|
inLinked: !1,
|
|
144
144
|
text: ""
|
|
145
145
|
}, h = () => c, { onError: y } = t;
|
|
146
|
-
function
|
|
146
|
+
function T(r, l, I, ...P) {
|
|
147
147
|
const Y = h();
|
|
148
|
-
if (
|
|
149
|
-
const X = n ? Ft(Y.startLoc,
|
|
148
|
+
if (l.column += I, l.offset += I, y) {
|
|
149
|
+
const X = n ? Ft(Y.startLoc, l) : null, b = Tt(r, X, {
|
|
150
150
|
domain: $s,
|
|
151
151
|
args: P
|
|
152
152
|
});
|
|
153
|
-
y(
|
|
153
|
+
y(b);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function N(r,
|
|
157
|
-
r.endLoc = a(), r.currentType =
|
|
158
|
-
const P = { type:
|
|
156
|
+
function N(r, l, I) {
|
|
157
|
+
r.endLoc = a(), r.currentType = l;
|
|
158
|
+
const P = { type: l };
|
|
159
159
|
return n && (P.loc = Ft(r.startLoc, r.endLoc)), I != null && (P.value = I), P;
|
|
160
160
|
}
|
|
161
161
|
const w = (r) => N(
|
|
@@ -163,83 +163,83 @@ function Js(e, t = {}) {
|
|
|
163
163
|
13
|
|
164
164
|
/* TokenTypes.EOF */
|
|
165
165
|
);
|
|
166
|
-
function D(r,
|
|
167
|
-
return r.currentChar() ===
|
|
166
|
+
function D(r, l) {
|
|
167
|
+
return r.currentChar() === l ? (r.next(), l) : (T(oe.EXPECTED_TOKEN, a(), 0, l), "");
|
|
168
168
|
}
|
|
169
169
|
function R(r) {
|
|
170
|
-
let
|
|
170
|
+
let l = "";
|
|
171
171
|
for (; r.currentPeek() === Ue || r.currentPeek() === Ne; )
|
|
172
|
-
|
|
173
|
-
return
|
|
172
|
+
l += r.currentPeek(), r.peek();
|
|
173
|
+
return l;
|
|
174
174
|
}
|
|
175
175
|
function F(r) {
|
|
176
|
-
const
|
|
177
|
-
return r.skipToPeek(),
|
|
176
|
+
const l = R(r);
|
|
177
|
+
return r.skipToPeek(), l;
|
|
178
178
|
}
|
|
179
179
|
function f(r) {
|
|
180
180
|
if (r === Ge)
|
|
181
181
|
return !1;
|
|
182
|
-
const
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
const l = r.charCodeAt(0);
|
|
183
|
+
return l >= 97 && l <= 122 || // a-z
|
|
184
|
+
l >= 65 && l <= 90 || // A-Z
|
|
185
|
+
l === 95;
|
|
186
186
|
}
|
|
187
187
|
function p(r) {
|
|
188
188
|
if (r === Ge)
|
|
189
189
|
return !1;
|
|
190
|
-
const
|
|
191
|
-
return
|
|
190
|
+
const l = r.charCodeAt(0);
|
|
191
|
+
return l >= 48 && l <= 57;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
const { currentType: I } =
|
|
193
|
+
function S(r, l) {
|
|
194
|
+
const { currentType: I } = l;
|
|
195
195
|
if (I !== 2)
|
|
196
196
|
return !1;
|
|
197
197
|
R(r);
|
|
198
198
|
const P = f(r.currentPeek());
|
|
199
199
|
return r.resetPeek(), P;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
const { currentType: I } =
|
|
201
|
+
function i(r, l) {
|
|
202
|
+
const { currentType: I } = l;
|
|
203
203
|
if (I !== 2)
|
|
204
204
|
return !1;
|
|
205
205
|
R(r);
|
|
206
206
|
const P = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), Y = p(P);
|
|
207
207
|
return r.resetPeek(), Y;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const { currentType: I } =
|
|
209
|
+
function v(r, l) {
|
|
210
|
+
const { currentType: I } = l;
|
|
211
211
|
if (I !== 2)
|
|
212
212
|
return !1;
|
|
213
213
|
R(r);
|
|
214
214
|
const P = r.currentPeek() === cn;
|
|
215
215
|
return r.resetPeek(), P;
|
|
216
216
|
}
|
|
217
|
-
function g(r,
|
|
218
|
-
const { currentType: I } =
|
|
217
|
+
function g(r, l) {
|
|
218
|
+
const { currentType: I } = l;
|
|
219
219
|
if (I !== 7)
|
|
220
220
|
return !1;
|
|
221
221
|
R(r);
|
|
222
222
|
const P = r.currentPeek() === ".";
|
|
223
223
|
return r.resetPeek(), P;
|
|
224
224
|
}
|
|
225
|
-
function _(r,
|
|
226
|
-
const { currentType: I } =
|
|
225
|
+
function _(r, l) {
|
|
226
|
+
const { currentType: I } = l;
|
|
227
227
|
if (I !== 8)
|
|
228
228
|
return !1;
|
|
229
229
|
R(r);
|
|
230
230
|
const P = f(r.currentPeek());
|
|
231
231
|
return r.resetPeek(), P;
|
|
232
232
|
}
|
|
233
|
-
function M(r,
|
|
234
|
-
const { currentType: I } =
|
|
233
|
+
function M(r, l) {
|
|
234
|
+
const { currentType: I } = l;
|
|
235
235
|
if (!(I === 7 || I === 11))
|
|
236
236
|
return !1;
|
|
237
237
|
R(r);
|
|
238
238
|
const P = r.currentPeek() === ":";
|
|
239
239
|
return r.resetPeek(), P;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
const { currentType: I } =
|
|
241
|
+
function L(r, l) {
|
|
242
|
+
const { currentType: I } = l;
|
|
243
243
|
if (I !== 9)
|
|
244
244
|
return !1;
|
|
245
245
|
const P = () => {
|
|
@@ -250,268 +250,268 @@ function Js(e, t = {}) {
|
|
|
250
250
|
}
|
|
251
251
|
function $(r) {
|
|
252
252
|
R(r);
|
|
253
|
-
const
|
|
254
|
-
return r.resetPeek(),
|
|
253
|
+
const l = r.currentPeek() === "|";
|
|
254
|
+
return r.resetPeek(), l;
|
|
255
255
|
}
|
|
256
|
-
function W(r,
|
|
256
|
+
function W(r, l = !0) {
|
|
257
257
|
const I = (Y = !1, X = "") => {
|
|
258
|
-
const
|
|
259
|
-
return
|
|
258
|
+
const b = r.currentPeek();
|
|
259
|
+
return b === "{" || b === "@" || !b ? Y : b === "|" ? !(X === Ue || X === Ne) : b === Ue ? (r.peek(), I(!0, Ue)) : b === Ne ? (r.peek(), I(!0, Ne)) : !0;
|
|
260
260
|
}, P = I();
|
|
261
|
-
return
|
|
261
|
+
return l && r.resetPeek(), P;
|
|
262
262
|
}
|
|
263
|
-
function m(r,
|
|
263
|
+
function m(r, l) {
|
|
264
264
|
const I = r.currentChar();
|
|
265
|
-
return I === Ge ? Ge :
|
|
265
|
+
return I === Ge ? Ge : l(I) ? (r.next(), I) : null;
|
|
266
266
|
}
|
|
267
267
|
function E(r) {
|
|
268
|
-
const
|
|
269
|
-
return
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
268
|
+
const l = r.charCodeAt(0);
|
|
269
|
+
return l >= 97 && l <= 122 || // a-z
|
|
270
|
+
l >= 65 && l <= 90 || // A-Z
|
|
271
|
+
l >= 48 && l <= 57 || // 0-9
|
|
272
|
+
l === 95 || // _
|
|
273
|
+
l === 36;
|
|
274
274
|
}
|
|
275
275
|
function x(r) {
|
|
276
276
|
return m(r, E);
|
|
277
277
|
}
|
|
278
278
|
function U(r) {
|
|
279
|
-
const
|
|
280
|
-
return
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
const l = r.charCodeAt(0);
|
|
280
|
+
return l >= 97 && l <= 122 || // a-z
|
|
281
|
+
l >= 65 && l <= 90 || // A-Z
|
|
282
|
+
l >= 48 && l <= 57 || // 0-9
|
|
283
|
+
l === 95 || // _
|
|
284
|
+
l === 36 || // $
|
|
285
|
+
l === 45;
|
|
286
286
|
}
|
|
287
287
|
function j(r) {
|
|
288
288
|
return m(r, U);
|
|
289
289
|
}
|
|
290
290
|
function G(r) {
|
|
291
|
-
const
|
|
292
|
-
return
|
|
291
|
+
const l = r.charCodeAt(0);
|
|
292
|
+
return l >= 48 && l <= 57;
|
|
293
293
|
}
|
|
294
294
|
function V(r) {
|
|
295
295
|
return m(r, G);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
const
|
|
299
|
-
return
|
|
300
|
-
|
|
301
|
-
|
|
297
|
+
function B(r) {
|
|
298
|
+
const l = r.charCodeAt(0);
|
|
299
|
+
return l >= 48 && l <= 57 || // 0-9
|
|
300
|
+
l >= 65 && l <= 70 || // A-F
|
|
301
|
+
l >= 97 && l <= 102;
|
|
302
302
|
}
|
|
303
303
|
function J(r) {
|
|
304
|
-
return m(r,
|
|
304
|
+
return m(r, B);
|
|
305
305
|
}
|
|
306
306
|
function ae(r) {
|
|
307
|
-
let
|
|
308
|
-
for (;
|
|
309
|
-
I +=
|
|
307
|
+
let l = "", I = "";
|
|
308
|
+
for (; l = V(r); )
|
|
309
|
+
I += l;
|
|
310
310
|
return I;
|
|
311
311
|
}
|
|
312
312
|
function Q(r) {
|
|
313
|
-
let
|
|
313
|
+
let l = "";
|
|
314
314
|
for (; ; ) {
|
|
315
315
|
const I = r.currentChar();
|
|
316
316
|
if (I === "{" || I === "}" || I === "@" || I === "|" || !I)
|
|
317
317
|
break;
|
|
318
318
|
if (I === Ue || I === Ne)
|
|
319
319
|
if (W(r))
|
|
320
|
-
|
|
320
|
+
l += I, r.next();
|
|
321
321
|
else {
|
|
322
322
|
if ($(r))
|
|
323
323
|
break;
|
|
324
|
-
|
|
324
|
+
l += I, r.next();
|
|
325
325
|
}
|
|
326
326
|
else
|
|
327
|
-
|
|
327
|
+
l += I, r.next();
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return l;
|
|
330
330
|
}
|
|
331
331
|
function re(r) {
|
|
332
332
|
F(r);
|
|
333
|
-
let
|
|
334
|
-
for (;
|
|
335
|
-
I +=
|
|
336
|
-
return r.currentChar() === Ge &&
|
|
333
|
+
let l = "", I = "";
|
|
334
|
+
for (; l = j(r); )
|
|
335
|
+
I += l;
|
|
336
|
+
return r.currentChar() === Ge && T(oe.UNTERMINATED_CLOSING_BRACE, a(), 0), I;
|
|
337
337
|
}
|
|
338
338
|
function ce(r) {
|
|
339
339
|
F(r);
|
|
340
|
-
let
|
|
341
|
-
return r.currentChar() === "-" ? (r.next(),
|
|
340
|
+
let l = "";
|
|
341
|
+
return r.currentChar() === "-" ? (r.next(), l += `-${ae(r)}`) : l += ae(r), r.currentChar() === Ge && T(oe.UNTERMINATED_CLOSING_BRACE, a(), 0), l;
|
|
342
342
|
}
|
|
343
343
|
function q(r) {
|
|
344
344
|
return r !== cn && r !== Ne;
|
|
345
345
|
}
|
|
346
346
|
function _e(r) {
|
|
347
347
|
F(r), D(r, "'");
|
|
348
|
-
let
|
|
349
|
-
for (;
|
|
350
|
-
|
|
348
|
+
let l = "", I = "";
|
|
349
|
+
for (; l = m(r, q); )
|
|
350
|
+
l === "\\" ? I += Ee(r) : I += l;
|
|
351
351
|
const P = r.currentChar();
|
|
352
|
-
return P === Ne || P === Ge ? (
|
|
352
|
+
return P === Ne || P === Ge ? (T(oe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), P === Ne && (r.next(), D(r, "'")), I) : (D(r, "'"), I);
|
|
353
353
|
}
|
|
354
354
|
function Ee(r) {
|
|
355
|
-
const
|
|
356
|
-
switch (
|
|
355
|
+
const l = r.currentChar();
|
|
356
|
+
switch (l) {
|
|
357
357
|
case "\\":
|
|
358
358
|
case "'":
|
|
359
|
-
return r.next(), `\\${
|
|
359
|
+
return r.next(), `\\${l}`;
|
|
360
360
|
case "u":
|
|
361
|
-
return Pe(r,
|
|
361
|
+
return Pe(r, l, 4);
|
|
362
362
|
case "U":
|
|
363
|
-
return Pe(r,
|
|
363
|
+
return Pe(r, l, 6);
|
|
364
364
|
default:
|
|
365
|
-
return
|
|
365
|
+
return T(oe.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, l), "";
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function Pe(r,
|
|
369
|
-
D(r,
|
|
368
|
+
function Pe(r, l, I) {
|
|
369
|
+
D(r, l);
|
|
370
370
|
let P = "";
|
|
371
371
|
for (let Y = 0; Y < I; Y++) {
|
|
372
372
|
const X = J(r);
|
|
373
373
|
if (!X) {
|
|
374
|
-
|
|
374
|
+
T(oe.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${l}${P}${r.currentChar()}`);
|
|
375
375
|
break;
|
|
376
376
|
}
|
|
377
377
|
P += X;
|
|
378
378
|
}
|
|
379
|
-
return `\\${
|
|
379
|
+
return `\\${l}${P}`;
|
|
380
380
|
}
|
|
381
381
|
function te(r) {
|
|
382
382
|
return r !== "{" && r !== "}" && r !== Ue && r !== Ne;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function ve(r) {
|
|
385
385
|
F(r);
|
|
386
|
-
let
|
|
387
|
-
for (;
|
|
388
|
-
I +=
|
|
386
|
+
let l = "", I = "";
|
|
387
|
+
for (; l = m(r, te); )
|
|
388
|
+
I += l;
|
|
389
389
|
return I;
|
|
390
390
|
}
|
|
391
391
|
function st(r) {
|
|
392
|
-
let
|
|
393
|
-
for (;
|
|
394
|
-
I +=
|
|
392
|
+
let l = "", I = "";
|
|
393
|
+
for (; l = x(r); )
|
|
394
|
+
I += l;
|
|
395
395
|
return I;
|
|
396
396
|
}
|
|
397
397
|
function rt(r) {
|
|
398
|
-
const
|
|
398
|
+
const l = (I) => {
|
|
399
399
|
const P = r.currentChar();
|
|
400
|
-
return P === "{" || P === "@" || P === "|" || P === "(" || P === ")" || !P || P === Ue ? I : (I += P, r.next(),
|
|
400
|
+
return P === "{" || P === "@" || P === "|" || P === "(" || P === ")" || !P || P === Ue ? I : (I += P, r.next(), l(I));
|
|
401
401
|
};
|
|
402
|
-
return
|
|
402
|
+
return l("");
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Se(r) {
|
|
405
405
|
F(r);
|
|
406
|
-
const
|
|
406
|
+
const l = D(
|
|
407
407
|
r,
|
|
408
408
|
"|"
|
|
409
409
|
/* TokenChars.Pipe */
|
|
410
410
|
);
|
|
411
|
-
return F(r),
|
|
411
|
+
return F(r), l;
|
|
412
412
|
}
|
|
413
|
-
function We(r,
|
|
413
|
+
function We(r, l) {
|
|
414
414
|
let I = null;
|
|
415
415
|
switch (r.currentChar()) {
|
|
416
416
|
case "{":
|
|
417
|
-
return
|
|
418
|
-
|
|
417
|
+
return l.braceNest >= 1 && T(oe.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), I = N(
|
|
418
|
+
l,
|
|
419
419
|
2,
|
|
420
420
|
"{"
|
|
421
421
|
/* TokenChars.BraceLeft */
|
|
422
|
-
), F(r),
|
|
422
|
+
), F(r), l.braceNest++, I;
|
|
423
423
|
case "}":
|
|
424
|
-
return
|
|
425
|
-
|
|
424
|
+
return l.braceNest > 0 && l.currentType === 2 && T(oe.EMPTY_PLACEHOLDER, a(), 0), r.next(), I = N(
|
|
425
|
+
l,
|
|
426
426
|
3,
|
|
427
427
|
"}"
|
|
428
428
|
/* TokenChars.BraceRight */
|
|
429
|
-
),
|
|
429
|
+
), l.braceNest--, l.braceNest > 0 && F(r), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), I;
|
|
430
430
|
case "@":
|
|
431
|
-
return
|
|
431
|
+
return l.braceNest > 0 && T(oe.UNTERMINATED_CLOSING_BRACE, a(), 0), I = k(r, l) || w(l), l.braceNest = 0, I;
|
|
432
432
|
default: {
|
|
433
|
-
let Y = !0, X = !0,
|
|
433
|
+
let Y = !0, X = !0, b = !0;
|
|
434
434
|
if ($(r))
|
|
435
|
-
return
|
|
436
|
-
if (
|
|
437
|
-
return
|
|
438
|
-
if (Y =
|
|
439
|
-
return I = N(
|
|
440
|
-
if (X =
|
|
441
|
-
return I = N(
|
|
442
|
-
if (
|
|
443
|
-
return I = N(
|
|
444
|
-
if (!Y && !X && !
|
|
445
|
-
return I = N(
|
|
435
|
+
return l.braceNest > 0 && T(oe.UNTERMINATED_CLOSING_BRACE, a(), 0), I = N(l, 1, Se(r)), l.braceNest = 0, l.inLinked = !1, I;
|
|
436
|
+
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
437
|
+
return T(oe.UNTERMINATED_CLOSING_BRACE, a(), 0), l.braceNest = 0, C(r, l);
|
|
438
|
+
if (Y = S(r, l))
|
|
439
|
+
return I = N(l, 4, re(r)), F(r), I;
|
|
440
|
+
if (X = i(r, l))
|
|
441
|
+
return I = N(l, 5, ce(r)), F(r), I;
|
|
442
|
+
if (b = v(r, l))
|
|
443
|
+
return I = N(l, 6, _e(r)), F(r), I;
|
|
444
|
+
if (!Y && !X && !b)
|
|
445
|
+
return I = N(l, 12, ve(r)), T(oe.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, I.value), F(r), I;
|
|
446
446
|
break;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
return I;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
const { currentType: I } =
|
|
451
|
+
function k(r, l) {
|
|
452
|
+
const { currentType: I } = l;
|
|
453
453
|
let P = null;
|
|
454
454
|
const Y = r.currentChar();
|
|
455
|
-
switch ((I === 7 || I === 8 || I === 11 || I === 9) && (Y === Ne || Y === Ue) &&
|
|
455
|
+
switch ((I === 7 || I === 8 || I === 11 || I === 9) && (Y === Ne || Y === Ue) && T(oe.INVALID_LINKED_FORMAT, a(), 0), Y) {
|
|
456
456
|
case "@":
|
|
457
457
|
return r.next(), P = N(
|
|
458
|
-
|
|
458
|
+
l,
|
|
459
459
|
7,
|
|
460
460
|
"@"
|
|
461
461
|
/* TokenChars.LinkedAlias */
|
|
462
|
-
),
|
|
462
|
+
), l.inLinked = !0, P;
|
|
463
463
|
case ".":
|
|
464
464
|
return F(r), r.next(), N(
|
|
465
|
-
|
|
465
|
+
l,
|
|
466
466
|
8,
|
|
467
467
|
"."
|
|
468
468
|
/* TokenChars.LinkedDot */
|
|
469
469
|
);
|
|
470
470
|
case ":":
|
|
471
471
|
return F(r), r.next(), N(
|
|
472
|
-
|
|
472
|
+
l,
|
|
473
473
|
9,
|
|
474
474
|
":"
|
|
475
475
|
/* TokenChars.LinkedDelimiter */
|
|
476
476
|
);
|
|
477
477
|
default:
|
|
478
|
-
return $(r) ? (P = N(
|
|
478
|
+
return $(r) ? (P = N(l, 1, Se(r)), l.braceNest = 0, l.inLinked = !1, P) : g(r, l) || M(r, l) ? (F(r), k(r, l)) : _(r, l) ? (F(r), N(l, 11, st(r))) : L(r, l) ? (F(r), Y === "{" ? We(r, l) || P : N(l, 10, rt(r))) : (I === 7 && T(oe.INVALID_LINKED_FORMAT, a(), 0), l.braceNest = 0, l.inLinked = !1, C(r, l));
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function C(r,
|
|
481
|
+
function C(r, l) {
|
|
482
482
|
let I = {
|
|
483
483
|
type: 13
|
|
484
484
|
/* TokenTypes.EOF */
|
|
485
485
|
};
|
|
486
|
-
if (
|
|
487
|
-
return We(r,
|
|
488
|
-
if (
|
|
489
|
-
return
|
|
486
|
+
if (l.braceNest > 0)
|
|
487
|
+
return We(r, l) || w(l);
|
|
488
|
+
if (l.inLinked)
|
|
489
|
+
return k(r, l) || w(l);
|
|
490
490
|
switch (r.currentChar()) {
|
|
491
491
|
case "{":
|
|
492
|
-
return We(r,
|
|
492
|
+
return We(r, l) || w(l);
|
|
493
493
|
case "}":
|
|
494
|
-
return
|
|
495
|
-
|
|
494
|
+
return T(oe.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), N(
|
|
495
|
+
l,
|
|
496
496
|
3,
|
|
497
497
|
"}"
|
|
498
498
|
/* TokenChars.BraceRight */
|
|
499
499
|
);
|
|
500
500
|
case "@":
|
|
501
|
-
return
|
|
501
|
+
return k(r, l) || w(l);
|
|
502
502
|
default: {
|
|
503
503
|
if ($(r))
|
|
504
|
-
return I = N(
|
|
504
|
+
return I = N(l, 1, Se(r)), l.braceNest = 0, l.inLinked = !1, I;
|
|
505
505
|
if (W(r))
|
|
506
|
-
return N(
|
|
506
|
+
return N(l, 0, Q(r));
|
|
507
507
|
break;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
return I;
|
|
511
511
|
}
|
|
512
512
|
function A() {
|
|
513
|
-
const { currentType: r, offset:
|
|
514
|
-
return c.lastType = r, c.lastOffset =
|
|
513
|
+
const { currentType: r, offset: l, startLoc: I, endLoc: P } = c;
|
|
514
|
+
return c.lastType = r, c.lastOffset = l, c.lastStartLoc = I, c.lastEndLoc = P, c.offset = o(), c.startLoc = a(), s.currentChar() === Ge ? N(
|
|
515
515
|
c,
|
|
516
516
|
13
|
|
517
517
|
/* TokenTypes.EOF */
|
|
@@ -539,132 +539,132 @@ function Qs(e, t, n) {
|
|
|
539
539
|
}
|
|
540
540
|
function qs(e = {}) {
|
|
541
541
|
const t = e.location !== !1, { onError: n } = e;
|
|
542
|
-
function s(f, p,
|
|
542
|
+
function s(f, p, S, i, ...v) {
|
|
543
543
|
const g = f.currentPosition();
|
|
544
|
-
if (g.offset +=
|
|
545
|
-
const _ = t ? Ft(
|
|
544
|
+
if (g.offset += i, g.column += i, n) {
|
|
545
|
+
const _ = t ? Ft(S, g) : null, M = Tt(p, _, {
|
|
546
546
|
domain: Ks,
|
|
547
|
-
args:
|
|
547
|
+
args: v
|
|
548
548
|
});
|
|
549
549
|
n(M);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function o(f, p,
|
|
553
|
-
const
|
|
554
|
-
return t && (
|
|
552
|
+
function o(f, p, S) {
|
|
553
|
+
const i = { type: f };
|
|
554
|
+
return t && (i.start = p, i.end = p, i.loc = { start: S, end: S }), i;
|
|
555
555
|
}
|
|
556
|
-
function a(f, p,
|
|
557
|
-
t && (f.end = p, f.loc && (f.loc.end =
|
|
556
|
+
function a(f, p, S, i) {
|
|
557
|
+
t && (f.end = p, f.loc && (f.loc.end = S));
|
|
558
558
|
}
|
|
559
559
|
function d(f, p) {
|
|
560
|
-
const
|
|
561
|
-
return
|
|
560
|
+
const S = f.context(), i = o(3, S.offset, S.startLoc);
|
|
561
|
+
return i.value = p, a(i, f.currentOffset(), f.currentPosition()), i;
|
|
562
562
|
}
|
|
563
563
|
function u(f, p) {
|
|
564
|
-
const
|
|
564
|
+
const S = f.context(), { lastOffset: i, lastStartLoc: v } = S, g = o(5, i, v);
|
|
565
565
|
return g.index = parseInt(p, 10), f.nextToken(), a(g, f.currentOffset(), f.currentPosition()), g;
|
|
566
566
|
}
|
|
567
567
|
function c(f, p) {
|
|
568
|
-
const
|
|
568
|
+
const S = f.context(), { lastOffset: i, lastStartLoc: v } = S, g = o(4, i, v);
|
|
569
569
|
return g.key = p, f.nextToken(), a(g, f.currentOffset(), f.currentPosition()), g;
|
|
570
570
|
}
|
|
571
571
|
function h(f, p) {
|
|
572
|
-
const
|
|
572
|
+
const S = f.context(), { lastOffset: i, lastStartLoc: v } = S, g = o(9, i, v);
|
|
573
573
|
return g.value = p.replace(zs, Qs), f.nextToken(), a(g, f.currentOffset(), f.currentPosition()), g;
|
|
574
574
|
}
|
|
575
575
|
function y(f) {
|
|
576
|
-
const p = f.nextToken(),
|
|
577
|
-
return p.type !== 11 ? (s(f, oe.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
576
|
+
const p = f.nextToken(), S = f.context(), { lastOffset: i, lastStartLoc: v } = S, g = o(8, i, v);
|
|
577
|
+
return p.type !== 11 ? (s(f, oe.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), g.value = "", a(g, i, v), {
|
|
578
578
|
nextConsumeToken: p,
|
|
579
579
|
node: g
|
|
580
|
-
}) : (p.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
580
|
+
}) : (p.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, we(p)), g.value = p.value || "", a(g, f.currentOffset(), f.currentPosition()), {
|
|
581
581
|
node: g
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
const
|
|
586
|
-
return
|
|
584
|
+
function T(f, p) {
|
|
585
|
+
const S = f.context(), i = o(7, S.offset, S.startLoc);
|
|
586
|
+
return i.value = p, a(i, f.currentOffset(), f.currentPosition()), i;
|
|
587
587
|
}
|
|
588
588
|
function N(f) {
|
|
589
|
-
const p = f.context(),
|
|
590
|
-
let
|
|
591
|
-
if (
|
|
592
|
-
const
|
|
593
|
-
|
|
589
|
+
const p = f.context(), S = o(6, p.offset, p.startLoc);
|
|
590
|
+
let i = f.nextToken();
|
|
591
|
+
if (i.type === 8) {
|
|
592
|
+
const v = y(f);
|
|
593
|
+
S.modifier = v.node, i = v.nextConsumeToken || f.nextToken();
|
|
594
594
|
}
|
|
595
|
-
switch (
|
|
595
|
+
switch (i.type !== 9 && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(i)), i = f.nextToken(), i.type === 2 && (i = f.nextToken()), i.type) {
|
|
596
596
|
case 10:
|
|
597
|
-
|
|
597
|
+
i.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(i)), S.key = T(f, i.value || "");
|
|
598
598
|
break;
|
|
599
599
|
case 4:
|
|
600
|
-
|
|
600
|
+
i.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(i)), S.key = c(f, i.value || "");
|
|
601
601
|
break;
|
|
602
602
|
case 5:
|
|
603
|
-
|
|
603
|
+
i.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(i)), S.key = u(f, i.value || "");
|
|
604
604
|
break;
|
|
605
605
|
case 6:
|
|
606
|
-
|
|
606
|
+
i.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(i)), S.key = h(f, i.value || "");
|
|
607
607
|
break;
|
|
608
608
|
default: {
|
|
609
609
|
s(f, oe.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
610
|
-
const
|
|
611
|
-
return g.value = "", a(g,
|
|
612
|
-
nextConsumeToken:
|
|
613
|
-
node:
|
|
610
|
+
const v = f.context(), g = o(7, v.offset, v.startLoc);
|
|
611
|
+
return g.value = "", a(g, v.offset, v.startLoc), S.key = g, a(S, v.offset, v.startLoc), {
|
|
612
|
+
nextConsumeToken: i,
|
|
613
|
+
node: S
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return a(
|
|
618
|
-
node:
|
|
617
|
+
return a(S, f.currentOffset(), f.currentPosition()), {
|
|
618
|
+
node: S
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
function w(f) {
|
|
622
|
-
const p = f.context(),
|
|
623
|
-
|
|
622
|
+
const p = f.context(), S = p.currentType === 1 ? f.currentOffset() : p.offset, i = p.currentType === 1 ? p.endLoc : p.startLoc, v = o(2, S, i);
|
|
623
|
+
v.items = [];
|
|
624
624
|
let g = null;
|
|
625
625
|
do {
|
|
626
|
-
const
|
|
627
|
-
switch (g = null,
|
|
626
|
+
const L = g || f.nextToken();
|
|
627
|
+
switch (g = null, L.type) {
|
|
628
628
|
case 0:
|
|
629
|
-
|
|
629
|
+
L.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(L)), v.items.push(d(f, L.value || ""));
|
|
630
630
|
break;
|
|
631
631
|
case 5:
|
|
632
|
-
|
|
632
|
+
L.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(L)), v.items.push(u(f, L.value || ""));
|
|
633
633
|
break;
|
|
634
634
|
case 4:
|
|
635
|
-
|
|
635
|
+
L.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(L)), v.items.push(c(f, L.value || ""));
|
|
636
636
|
break;
|
|
637
637
|
case 6:
|
|
638
|
-
|
|
638
|
+
L.value == null && s(f, oe.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, we(L)), v.items.push(h(f, L.value || ""));
|
|
639
639
|
break;
|
|
640
640
|
case 7: {
|
|
641
641
|
const $ = N(f);
|
|
642
|
-
|
|
642
|
+
v.items.push($.node), g = $.nextConsumeToken || null;
|
|
643
643
|
break;
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
} while (p.currentType !== 13 && p.currentType !== 1);
|
|
647
647
|
const _ = p.currentType === 1 ? p.lastOffset : f.currentOffset(), M = p.currentType === 1 ? p.lastEndLoc : f.currentPosition();
|
|
648
|
-
return a(
|
|
648
|
+
return a(v, _, M), v;
|
|
649
649
|
}
|
|
650
|
-
function D(f, p,
|
|
651
|
-
const
|
|
652
|
-
let g =
|
|
653
|
-
const _ = o(1, p,
|
|
654
|
-
_.cases = [], _.cases.push(
|
|
650
|
+
function D(f, p, S, i) {
|
|
651
|
+
const v = f.context();
|
|
652
|
+
let g = i.items.length === 0;
|
|
653
|
+
const _ = o(1, p, S);
|
|
654
|
+
_.cases = [], _.cases.push(i);
|
|
655
655
|
do {
|
|
656
656
|
const M = w(f);
|
|
657
657
|
g || (g = M.items.length === 0), _.cases.push(M);
|
|
658
|
-
} while (
|
|
659
|
-
return g && s(f, oe.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
658
|
+
} while (v.currentType !== 13);
|
|
659
|
+
return g && s(f, oe.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(_, f.currentOffset(), f.currentPosition()), _;
|
|
660
660
|
}
|
|
661
661
|
function R(f) {
|
|
662
|
-
const p = f.context(), { offset:
|
|
663
|
-
return p.currentType === 13 ?
|
|
662
|
+
const p = f.context(), { offset: S, startLoc: i } = p, v = w(f);
|
|
663
|
+
return p.currentType === 13 ? v : D(f, S, i, v);
|
|
664
664
|
}
|
|
665
665
|
function F(f) {
|
|
666
|
-
const p = Js(f, ye({}, e)),
|
|
667
|
-
return t &&
|
|
666
|
+
const p = Js(f, ye({}, e)), S = p.context(), i = o(0, S.offset, S.startLoc);
|
|
667
|
+
return t && i.loc && (i.loc.source = f), i.body = R(p), e.onCacheKey && (i.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && s(p, oe.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(i, p.currentOffset(), p.currentPosition()), i;
|
|
668
668
|
}
|
|
669
669
|
return { parse: F };
|
|
670
670
|
}
|
|
@@ -832,7 +832,7 @@ function sr(e, t) {
|
|
|
832
832
|
const F = ++d.indentLevel;
|
|
833
833
|
R && h(F);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function T(R = !0) {
|
|
836
836
|
const F = --d.indentLevel;
|
|
837
837
|
R && h(F);
|
|
838
838
|
}
|
|
@@ -843,7 +843,7 @@ function sr(e, t) {
|
|
|
843
843
|
context: u,
|
|
844
844
|
push: c,
|
|
845
845
|
indent: y,
|
|
846
|
-
deindent:
|
|
846
|
+
deindent: T,
|
|
847
847
|
newline: N,
|
|
848
848
|
helper: (R) => `_${R}`,
|
|
849
849
|
needIndent: () => d.needIndent
|
|
@@ -880,14 +880,14 @@ function or(e, t) {
|
|
|
880
880
|
e.deindent(s()), e.push("])");
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function lr(e, t) {
|
|
884
884
|
t.body ? qe(e, t.body) : e.push("null");
|
|
885
885
|
}
|
|
886
886
|
function qe(e, t) {
|
|
887
887
|
const { helper: n } = e;
|
|
888
888
|
switch (t.type) {
|
|
889
889
|
case 0:
|
|
890
|
-
|
|
890
|
+
lr(e, t);
|
|
891
891
|
break;
|
|
892
892
|
case 1:
|
|
893
893
|
or(e, t);
|
|
@@ -930,8 +930,8 @@ function qe(e, t) {
|
|
|
930
930
|
break;
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
|
-
const
|
|
934
|
-
const n =
|
|
933
|
+
const ir = (e, t = {}) => {
|
|
934
|
+
const n = Z(t.mode) ? t.mode : "normal", s = Z(t.filename) ? t.filename : "message.intl";
|
|
935
935
|
t.sourceMap;
|
|
936
936
|
const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
937
937
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = sr(e, {
|
|
@@ -950,24 +950,24 @@ const lr = (e, t = {}) => {
|
|
|
950
950
|
};
|
|
951
951
|
function cr(e, t = {}) {
|
|
952
952
|
const n = ye({}, t), s = !!n.jit, o = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = qs(n).parse(e);
|
|
953
|
-
return s ? (a && nr(u), o && Je(u), { ast: u, code: "" }) : (tr(u, n),
|
|
953
|
+
return s ? (a && nr(u), o && Je(u), { ast: u, code: "" }) : (tr(u, n), ir(u, n));
|
|
954
954
|
}
|
|
955
955
|
var ur = { env: { NODE_ENV: "production" } };
|
|
956
956
|
function dr() {
|
|
957
957
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Lt(e) {
|
|
960
960
|
return (n) => mr(n, e);
|
|
961
961
|
}
|
|
962
962
|
function mr(e, t) {
|
|
963
963
|
const n = _r(t);
|
|
964
964
|
if (n == null)
|
|
965
|
-
throw
|
|
965
|
+
throw lt(
|
|
966
966
|
0
|
|
967
967
|
/* NodeTypes.Resource */
|
|
968
968
|
);
|
|
969
969
|
if (Kt(n) === 1) {
|
|
970
|
-
const a =
|
|
970
|
+
const a = vr(n);
|
|
971
971
|
return e.plural(a.reduce((d, u) => [
|
|
972
972
|
...d,
|
|
973
973
|
mn(e, u)
|
|
@@ -977,11 +977,11 @@ function mr(e, t) {
|
|
|
977
977
|
}
|
|
978
978
|
const fr = ["b", "body"];
|
|
979
979
|
function _r(e) {
|
|
980
|
-
return
|
|
980
|
+
return Ze(e, fr);
|
|
981
981
|
}
|
|
982
982
|
const pr = ["c", "cases"];
|
|
983
|
-
function
|
|
984
|
-
return
|
|
983
|
+
function vr(e) {
|
|
984
|
+
return Ze(e, pr, []);
|
|
985
985
|
}
|
|
986
986
|
function mn(e, t) {
|
|
987
987
|
const n = hr(t);
|
|
@@ -992,13 +992,13 @@ function mn(e, t) {
|
|
|
992
992
|
return e.normalize(s);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
const
|
|
995
|
+
const br = ["s", "static"];
|
|
996
996
|
function hr(e) {
|
|
997
|
-
return
|
|
997
|
+
return Ze(e, br);
|
|
998
998
|
}
|
|
999
999
|
const gr = ["i", "items"];
|
|
1000
1000
|
function Ir(e) {
|
|
1001
|
-
return
|
|
1001
|
+
return Ze(e, gr, []);
|
|
1002
1002
|
}
|
|
1003
1003
|
function jt(e, t) {
|
|
1004
1004
|
const n = Kt(t);
|
|
@@ -1013,7 +1013,7 @@ function jt(e, t) {
|
|
|
1013
1013
|
return e.interpolate(e.named(s.k));
|
|
1014
1014
|
if (Me(s, "key") && s.key)
|
|
1015
1015
|
return e.interpolate(e.named(s.key));
|
|
1016
|
-
throw
|
|
1016
|
+
throw lt(n);
|
|
1017
1017
|
}
|
|
1018
1018
|
case 5: {
|
|
1019
1019
|
const s = t;
|
|
@@ -1021,10 +1021,10 @@ function jt(e, t) {
|
|
|
1021
1021
|
return e.interpolate(e.list(s.i));
|
|
1022
1022
|
if (Me(s, "index") && Ie(s.index))
|
|
1023
1023
|
return e.interpolate(e.list(s.index));
|
|
1024
|
-
throw
|
|
1024
|
+
throw lt(n);
|
|
1025
1025
|
}
|
|
1026
1026
|
case 6: {
|
|
1027
|
-
const s = t, o = Cr(s), a =
|
|
1027
|
+
const s = t, o = Cr(s), a = kr(s);
|
|
1028
1028
|
return e.linked(jt(e, a), o ? jt(e, o) : void 0, e.type);
|
|
1029
1029
|
}
|
|
1030
1030
|
case 7:
|
|
@@ -1037,30 +1037,30 @@ function jt(e, t) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
const yr = ["t", "type"];
|
|
1039
1039
|
function Kt(e) {
|
|
1040
|
-
return
|
|
1040
|
+
return Ze(e, yr);
|
|
1041
1041
|
}
|
|
1042
1042
|
const Er = ["v", "value"];
|
|
1043
1043
|
function _t(e, t) {
|
|
1044
|
-
const n =
|
|
1044
|
+
const n = Ze(e, Er);
|
|
1045
1045
|
if (n)
|
|
1046
1046
|
return n;
|
|
1047
|
-
throw
|
|
1047
|
+
throw lt(t);
|
|
1048
1048
|
}
|
|
1049
1049
|
const Nr = ["m", "modifier"];
|
|
1050
1050
|
function Cr(e) {
|
|
1051
|
-
return
|
|
1051
|
+
return Ze(e, Nr);
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1054
|
-
function
|
|
1055
|
-
const t =
|
|
1053
|
+
const Tr = ["k", "key"];
|
|
1054
|
+
function kr(e) {
|
|
1055
|
+
const t = Ze(e, Tr);
|
|
1056
1056
|
if (t)
|
|
1057
1057
|
return t;
|
|
1058
|
-
throw
|
|
1058
|
+
throw lt(
|
|
1059
1059
|
6
|
|
1060
1060
|
/* NodeTypes.Linked */
|
|
1061
1061
|
);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function Ze(e, t, n) {
|
|
1064
1064
|
for (let s = 0; s < t.length; s++) {
|
|
1065
1065
|
const o = t[s];
|
|
1066
1066
|
if (Me(e, o) && e[o] != null)
|
|
@@ -1068,15 +1068,15 @@ function Be(e, t, n) {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
return n;
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function lt(e) {
|
|
1072
1072
|
return new Error(`unhandled node type: ${e}`);
|
|
1073
1073
|
}
|
|
1074
1074
|
const Or = (e) => e;
|
|
1075
|
-
let pt =
|
|
1075
|
+
let pt = ie();
|
|
1076
1076
|
function et(e) {
|
|
1077
1077
|
return se(e) && Kt(e) === 0 && (Me(e, "b") || Me(e, "body"));
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Sr(e, t = {}) {
|
|
1080
1080
|
let n = !1;
|
|
1081
1081
|
const s = t.onError || Gs;
|
|
1082
1082
|
return t.onError = (o) => {
|
|
@@ -1084,33 +1084,33 @@ function Lr(e, t = {}) {
|
|
|
1084
1084
|
}, { ...cr(e, t), detectError: n };
|
|
1085
1085
|
}
|
|
1086
1086
|
// @__NO_SIDE_EFFECTS__
|
|
1087
|
-
function
|
|
1088
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1087
|
+
function Lr(e, t) {
|
|
1088
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1089
1089
|
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1090
1090
|
const s = (t.onCacheKey || Or)(e), o = pt[s];
|
|
1091
1091
|
if (o)
|
|
1092
1092
|
return o;
|
|
1093
|
-
const { ast: a, detectError: d } =
|
|
1093
|
+
const { ast: a, detectError: d } = Sr(e, {
|
|
1094
1094
|
...t,
|
|
1095
1095
|
location: ur.env.NODE_ENV !== "production",
|
|
1096
1096
|
jit: !0
|
|
1097
|
-
}), u =
|
|
1097
|
+
}), u = Lt(a);
|
|
1098
1098
|
return d ? u : pt[s] = u;
|
|
1099
1099
|
} else {
|
|
1100
1100
|
const n = e.cacheKey;
|
|
1101
1101
|
if (n) {
|
|
1102
1102
|
const s = pt[n];
|
|
1103
|
-
return s || (pt[n] =
|
|
1103
|
+
return s || (pt[n] = Lt(e));
|
|
1104
1104
|
} else
|
|
1105
|
-
return
|
|
1105
|
+
return Lt(e);
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
let
|
|
1108
|
+
let it = null;
|
|
1109
1109
|
function Ar(e) {
|
|
1110
|
-
|
|
1110
|
+
it = e;
|
|
1111
1111
|
}
|
|
1112
1112
|
function Rr(e, t, n) {
|
|
1113
|
-
|
|
1113
|
+
it && it.emit("i18n:init", {
|
|
1114
1114
|
timestamp: Date.now(),
|
|
1115
1115
|
i18n: e,
|
|
1116
1116
|
version: t,
|
|
@@ -1119,7 +1119,7 @@ function Rr(e, t, n) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
const Mr = /* @__PURE__ */ Dr("function:translate");
|
|
1121
1121
|
function Dr(e) {
|
|
1122
|
-
return (t) =>
|
|
1122
|
+
return (t) => it && it.emit(e, t);
|
|
1123
1123
|
}
|
|
1124
1124
|
const xe = {
|
|
1125
1125
|
INVALID_ARGUMENT: Ws,
|
|
@@ -1131,14 +1131,14 @@ const xe = {
|
|
|
1131
1131
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1132
1132
|
}, wr = 24;
|
|
1133
1133
|
function Ve(e) {
|
|
1134
|
-
return
|
|
1134
|
+
return Tt(e, null, void 0);
|
|
1135
1135
|
}
|
|
1136
1136
|
function zt(e, t) {
|
|
1137
1137
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1138
1138
|
}
|
|
1139
1139
|
let At;
|
|
1140
1140
|
function fn(e) {
|
|
1141
|
-
if (
|
|
1141
|
+
if (Z(e))
|
|
1142
1142
|
return e;
|
|
1143
1143
|
if (me(e)) {
|
|
1144
1144
|
if (e.resolvedOnce && At != null)
|
|
@@ -1156,11 +1156,11 @@ function fn(e) {
|
|
|
1156
1156
|
function Fr(e, t, n) {
|
|
1157
1157
|
return [.../* @__PURE__ */ new Set([
|
|
1158
1158
|
n,
|
|
1159
|
-
...ge(t) ? t : se(t) ? Object.keys(t) :
|
|
1159
|
+
...ge(t) ? t : se(t) ? Object.keys(t) : Z(t) ? [t] : [n]
|
|
1160
1160
|
])];
|
|
1161
1161
|
}
|
|
1162
1162
|
function Xn(e, t, n) {
|
|
1163
|
-
const s =
|
|
1163
|
+
const s = Z(n) ? n : Nt, o = e;
|
|
1164
1164
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1165
1165
|
let a = o.__localeChainCache.get(s);
|
|
1166
1166
|
if (!a) {
|
|
@@ -1169,7 +1169,7 @@ function Xn(e, t, n) {
|
|
|
1169
1169
|
for (; ge(d); )
|
|
1170
1170
|
d = _n(a, d, t);
|
|
1171
1171
|
const u = ge(t) || !ne(t) ? t : t.default ? t.default : null;
|
|
1172
|
-
d =
|
|
1172
|
+
d = Z(u) ? [u] : u, ge(d) && _n(a, d, !1), o.__localeChainCache.set(s, a);
|
|
1173
1173
|
}
|
|
1174
1174
|
return a;
|
|
1175
1175
|
}
|
|
@@ -1177,7 +1177,7 @@ function _n(e, t, n) {
|
|
|
1177
1177
|
let s = !0;
|
|
1178
1178
|
for (let o = 0; o < t.length && pe(s); o++) {
|
|
1179
1179
|
const a = t[o];
|
|
1180
|
-
|
|
1180
|
+
Z(a) && (s = jr(e, t[o], n));
|
|
1181
1181
|
}
|
|
1182
1182
|
return s;
|
|
1183
1183
|
}
|
|
@@ -1199,8 +1199,8 @@ function Pr(e, t, n) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
return s;
|
|
1201
1201
|
}
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1202
|
+
const Be = [];
|
|
1203
|
+
Be[
|
|
1204
1204
|
0
|
|
1205
1205
|
/* States.BEFORE_PATH */
|
|
1206
1206
|
] = {
|
|
@@ -1222,7 +1222,7 @@ Ze[
|
|
|
1222
1222
|
/* States.AFTER_PATH */
|
|
1223
1223
|
]
|
|
1224
1224
|
};
|
|
1225
|
-
|
|
1225
|
+
Be[
|
|
1226
1226
|
1
|
|
1227
1227
|
/* States.IN_PATH */
|
|
1228
1228
|
] = {
|
|
@@ -1243,7 +1243,7 @@ Ze[
|
|
|
1243
1243
|
/* States.AFTER_PATH */
|
|
1244
1244
|
]
|
|
1245
1245
|
};
|
|
1246
|
-
|
|
1246
|
+
Be[
|
|
1247
1247
|
2
|
|
1248
1248
|
/* States.BEFORE_IDENT */
|
|
1249
1249
|
] = {
|
|
@@ -1262,7 +1262,7 @@ Ze[
|
|
|
1262
1262
|
/* Actions.APPEND */
|
|
1263
1263
|
]
|
|
1264
1264
|
};
|
|
1265
|
-
|
|
1265
|
+
Be[
|
|
1266
1266
|
3
|
|
1267
1267
|
/* States.IN_IDENT */
|
|
1268
1268
|
] = {
|
|
@@ -1297,7 +1297,7 @@ Ze[
|
|
|
1297
1297
|
/* Actions.PUSH */
|
|
1298
1298
|
]
|
|
1299
1299
|
};
|
|
1300
|
-
|
|
1300
|
+
Be[
|
|
1301
1301
|
4
|
|
1302
1302
|
/* States.IN_SUB_PATH */
|
|
1303
1303
|
] = {
|
|
@@ -1328,7 +1328,7 @@ Ze[
|
|
|
1328
1328
|
/* Actions.APPEND */
|
|
1329
1329
|
]
|
|
1330
1330
|
};
|
|
1331
|
-
|
|
1331
|
+
Be[
|
|
1332
1332
|
5
|
|
1333
1333
|
/* States.IN_SINGLE_QUOTE */
|
|
1334
1334
|
] = {
|
|
@@ -1344,7 +1344,7 @@ Ze[
|
|
|
1344
1344
|
/* Actions.APPEND */
|
|
1345
1345
|
]
|
|
1346
1346
|
};
|
|
1347
|
-
|
|
1347
|
+
Be[
|
|
1348
1348
|
6
|
|
1349
1349
|
/* States.IN_DOUBLE_QUOTE */
|
|
1350
1350
|
] = {
|
|
@@ -1399,7 +1399,7 @@ function Gr(e) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
function Yr(e) {
|
|
1401
1401
|
const t = [];
|
|
1402
|
-
let n = -1, s = 0, o = 0, a, d, u, c, h, y,
|
|
1402
|
+
let n = -1, s = 0, o = 0, a, d, u, c, h, y, T;
|
|
1403
1403
|
const N = [];
|
|
1404
1404
|
N[
|
|
1405
1405
|
0
|
|
@@ -1447,17 +1447,17 @@ function Yr(e) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
for (; s !== null; )
|
|
1449
1449
|
if (n++, a = e[n], !(a === "\\" && w())) {
|
|
1450
|
-
if (c = Wr(a),
|
|
1450
|
+
if (c = Wr(a), T = Be[s], h = T[c] || T.l || 8, h === 8 || (s = h[0], h[1] !== void 0 && (y = N[h[1]], y && (u = a, y() === !1))))
|
|
1451
1451
|
return;
|
|
1452
1452
|
if (s === 7)
|
|
1453
1453
|
return t;
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
const pn = /* @__PURE__ */ new Map();
|
|
1457
|
-
function
|
|
1457
|
+
function Zr(e, t) {
|
|
1458
1458
|
return se(e) ? e[t] : null;
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Br(e, t) {
|
|
1461
1461
|
if (!se(e))
|
|
1462
1462
|
return null;
|
|
1463
1463
|
let n = pn.get(t);
|
|
@@ -1473,12 +1473,12 @@ function Zr(e, t) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
return o;
|
|
1475
1475
|
}
|
|
1476
|
-
const Xr = "10.0.5",
|
|
1476
|
+
const Xr = "10.0.5", kt = -1, Nt = "en-US", vn = "", bn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1477
1477
|
function Hr() {
|
|
1478
1478
|
return {
|
|
1479
|
-
upper: (e, t) => t === "text" &&
|
|
1480
|
-
lower: (e, t) => t === "text" &&
|
|
1481
|
-
capitalize: (e, t) => t === "text" &&
|
|
1479
|
+
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && se(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1480
|
+
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && se(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1481
|
+
capitalize: (e, t) => t === "text" && Z(e) ? bn(e) : t === "vnode" && se(e) && "__v_isVNode" in e ? bn(e.children) : e
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
1484
|
let Hn;
|
|
@@ -1503,7 +1503,7 @@ const hn = (e) => {
|
|
|
1503
1503
|
}, qr = () => zn;
|
|
1504
1504
|
let gn = 0;
|
|
1505
1505
|
function ea(e = {}) {
|
|
1506
|
-
const t = me(e.onWarn) ? e.onWarn : xs, n =
|
|
1506
|
+
const t = me(e.onWarn) ? e.onWarn : xs, n = Z(e.version) ? e.version : Xr, s = Z(e.locale) || me(e.locale) ? e.locale : Nt, o = me(s) ? Nt : s, a = ge(e.fallbackLocale) || ne(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, d = ne(e.messages) ? e.messages : Rt(o), u = ne(e.datetimeFormats) ? e.datetimeFormats : Rt(o), c = ne(e.numberFormats) ? e.numberFormats : Rt(o), h = ye(ie(), e.modifiers, Hr()), y = e.pluralRules || ie(), T = me(e.missing) ? e.missing : null, N = pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, R = !!e.unresolving, F = me(e.postTranslation) ? e.postTranslation : null, f = ne(e.processor) ? e.processor : null, p = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, i = me(e.messageCompiler) ? e.messageCompiler : Hn, v = me(e.messageResolver) ? e.messageResolver : $n || Zr, g = me(e.localeFallbacker) ? e.localeFallbacker : Jn || Fr, _ = se(e.fallbackContext) ? e.fallbackContext : void 0, M = e, L = se(M.__datetimeFormatters) ? M.__datetimeFormatters : /* @__PURE__ */ new Map(), $ = se(M.__numberFormatters) ? M.__numberFormatters : /* @__PURE__ */ new Map(), W = se(M.__meta) ? M.__meta : {};
|
|
1507
1507
|
gn++;
|
|
1508
1508
|
const m = {
|
|
1509
1509
|
version: n,
|
|
@@ -1513,7 +1513,7 @@ function ea(e = {}) {
|
|
|
1513
1513
|
messages: d,
|
|
1514
1514
|
modifiers: h,
|
|
1515
1515
|
pluralRules: y,
|
|
1516
|
-
missing:
|
|
1516
|
+
missing: T,
|
|
1517
1517
|
missingWarn: N,
|
|
1518
1518
|
fallbackWarn: w,
|
|
1519
1519
|
fallbackFormat: D,
|
|
@@ -1521,22 +1521,22 @@ function ea(e = {}) {
|
|
|
1521
1521
|
postTranslation: F,
|
|
1522
1522
|
processor: f,
|
|
1523
1523
|
warnHtmlMessage: p,
|
|
1524
|
-
escapeParameter:
|
|
1525
|
-
messageCompiler:
|
|
1526
|
-
messageResolver:
|
|
1524
|
+
escapeParameter: S,
|
|
1525
|
+
messageCompiler: i,
|
|
1526
|
+
messageResolver: v,
|
|
1527
1527
|
localeFallbacker: g,
|
|
1528
1528
|
fallbackContext: _,
|
|
1529
1529
|
onWarn: t,
|
|
1530
1530
|
__meta: W
|
|
1531
1531
|
};
|
|
1532
|
-
return m.datetimeFormats = u, m.numberFormats = c, m.__datetimeFormatters =
|
|
1532
|
+
return m.datetimeFormats = u, m.numberFormats = c, m.__datetimeFormatters = L, m.__numberFormatters = $, __INTLIFY_PROD_DEVTOOLS__ && Rr(m, n, W), m;
|
|
1533
1533
|
}
|
|
1534
|
-
const Rt = (e) => ({ [e]:
|
|
1534
|
+
const Rt = (e) => ({ [e]: ie() });
|
|
1535
1535
|
function Qt(e, t, n, s, o) {
|
|
1536
1536
|
const { missing: a, onWarn: d } = e;
|
|
1537
1537
|
if (a !== null) {
|
|
1538
1538
|
const u = a(e, n, t, o);
|
|
1539
|
-
return
|
|
1539
|
+
return Z(u) ? u : t;
|
|
1540
1540
|
} else
|
|
1541
1541
|
return t;
|
|
1542
1542
|
}
|
|
@@ -1557,7 +1557,7 @@ function na(e, t) {
|
|
|
1557
1557
|
return !1;
|
|
1558
1558
|
}
|
|
1559
1559
|
function In(e, ...t) {
|
|
1560
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: o, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [c, h, y,
|
|
1560
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: o, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [c, h, y, T] = Pt(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1561
1561
|
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1562
1562
|
const w = !!y.part, D = zt(e, y), R = d(
|
|
1563
1563
|
e,
|
|
@@ -1565,18 +1565,18 @@ function In(e, ...t) {
|
|
|
1565
1565
|
o,
|
|
1566
1566
|
D
|
|
1567
1567
|
);
|
|
1568
|
-
if (!
|
|
1569
|
-
return new Intl.DateTimeFormat(D,
|
|
1568
|
+
if (!Z(c) || c === "")
|
|
1569
|
+
return new Intl.DateTimeFormat(D, T).format(h);
|
|
1570
1570
|
let F = {}, f, p = null;
|
|
1571
|
-
const
|
|
1571
|
+
const S = "datetime format";
|
|
1572
1572
|
for (let g = 0; g < R.length && (f = R[g], F = n[f] || {}, p = F[c], !ne(p)); g++)
|
|
1573
|
-
Qt(e, c, f, N,
|
|
1574
|
-
if (!ne(p) || !
|
|
1575
|
-
return s ?
|
|
1576
|
-
let
|
|
1577
|
-
Ct(
|
|
1578
|
-
let
|
|
1579
|
-
return
|
|
1573
|
+
Qt(e, c, f, N, S);
|
|
1574
|
+
if (!ne(p) || !Z(f))
|
|
1575
|
+
return s ? kt : c;
|
|
1576
|
+
let i = `${f}__${c}`;
|
|
1577
|
+
Ct(T) || (i = `${i}__${JSON.stringify(T)}`);
|
|
1578
|
+
let v = u.get(i);
|
|
1579
|
+
return v || (v = new Intl.DateTimeFormat(f, ye({}, p, T)), u.set(i, v)), w ? v.formatToParts(h) : v.format(h);
|
|
1580
1580
|
}
|
|
1581
1581
|
const Qn = [
|
|
1582
1582
|
"localeMatcher",
|
|
@@ -1601,9 +1601,9 @@ const Qn = [
|
|
|
1601
1601
|
"fractionalSecondDigits"
|
|
1602
1602
|
];
|
|
1603
1603
|
function Pt(...e) {
|
|
1604
|
-
const [t, n, s, o] = e, a =
|
|
1605
|
-
let d =
|
|
1606
|
-
if (
|
|
1604
|
+
const [t, n, s, o] = e, a = ie();
|
|
1605
|
+
let d = ie(), u;
|
|
1606
|
+
if (Z(t)) {
|
|
1607
1607
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1608
1608
|
if (!c)
|
|
1609
1609
|
throw Ve(xe.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1622,9 +1622,9 @@ function Pt(...e) {
|
|
|
1622
1622
|
u = t;
|
|
1623
1623
|
else
|
|
1624
1624
|
throw Ve(xe.INVALID_ARGUMENT);
|
|
1625
|
-
return
|
|
1625
|
+
return Z(n) ? a.key = n : ne(n) && Object.keys(n).forEach((c) => {
|
|
1626
1626
|
Qn.includes(c) ? d[c] = n[c] : a[c] = n[c];
|
|
1627
|
-
}),
|
|
1627
|
+
}), Z(s) ? a.locale = s : ne(s) && (d = s), ne(o) && (d = o), [a.key || "", u, a, d];
|
|
1628
1628
|
}
|
|
1629
1629
|
function yn(e, t, n) {
|
|
1630
1630
|
const s = e;
|
|
@@ -1634,7 +1634,7 @@ function yn(e, t, n) {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
function En(e, ...t) {
|
|
1637
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: o, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [c, h, y,
|
|
1637
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: o, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [c, h, y, T] = Ut(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1638
1638
|
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1639
1639
|
const w = !!y.part, D = zt(e, y), R = d(
|
|
1640
1640
|
e,
|
|
@@ -1642,18 +1642,18 @@ function En(e, ...t) {
|
|
|
1642
1642
|
o,
|
|
1643
1643
|
D
|
|
1644
1644
|
);
|
|
1645
|
-
if (!
|
|
1646
|
-
return new Intl.NumberFormat(D,
|
|
1645
|
+
if (!Z(c) || c === "")
|
|
1646
|
+
return new Intl.NumberFormat(D, T).format(h);
|
|
1647
1647
|
let F = {}, f, p = null;
|
|
1648
|
-
const
|
|
1648
|
+
const S = "number format";
|
|
1649
1649
|
for (let g = 0; g < R.length && (f = R[g], F = n[f] || {}, p = F[c], !ne(p)); g++)
|
|
1650
|
-
Qt(e, c, f, N,
|
|
1651
|
-
if (!ne(p) || !
|
|
1652
|
-
return s ?
|
|
1653
|
-
let
|
|
1654
|
-
Ct(
|
|
1655
|
-
let
|
|
1656
|
-
return
|
|
1650
|
+
Qt(e, c, f, N, S);
|
|
1651
|
+
if (!ne(p) || !Z(f))
|
|
1652
|
+
return s ? kt : c;
|
|
1653
|
+
let i = `${f}__${c}`;
|
|
1654
|
+
Ct(T) || (i = `${i}__${JSON.stringify(T)}`);
|
|
1655
|
+
let v = u.get(i);
|
|
1656
|
+
return v || (v = new Intl.NumberFormat(f, ye({}, p, T)), u.set(i, v)), w ? v.formatToParts(h) : v.format(h);
|
|
1657
1657
|
}
|
|
1658
1658
|
const qn = [
|
|
1659
1659
|
"localeMatcher",
|
|
@@ -1678,14 +1678,14 @@ const qn = [
|
|
|
1678
1678
|
"trailingZeroDisplay"
|
|
1679
1679
|
];
|
|
1680
1680
|
function Ut(...e) {
|
|
1681
|
-
const [t, n, s, o] = e, a =
|
|
1682
|
-
let d =
|
|
1681
|
+
const [t, n, s, o] = e, a = ie();
|
|
1682
|
+
let d = ie();
|
|
1683
1683
|
if (!Ie(t))
|
|
1684
1684
|
throw Ve(xe.INVALID_ARGUMENT);
|
|
1685
1685
|
const u = t;
|
|
1686
|
-
return
|
|
1686
|
+
return Z(n) ? a.key = n : ne(n) && Object.keys(n).forEach((c) => {
|
|
1687
1687
|
qn.includes(c) ? d[c] = n[c] : a[c] = n[c];
|
|
1688
|
-
}),
|
|
1688
|
+
}), Z(s) ? a.locale = s : ne(s) && (d = s), ne(o) && (d = o), [a.key || "", u, a, d];
|
|
1689
1689
|
}
|
|
1690
1690
|
function Nn(e, t, n) {
|
|
1691
1691
|
const s = e;
|
|
@@ -1694,11 +1694,11 @@ function Nn(e, t, n) {
|
|
|
1694
1694
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
const sa = (e) => e, ra = (e) => "", aa = "text", oa = (e) => e.length === 0 ? "" : $t(e),
|
|
1697
|
+
const sa = (e) => e, ra = (e) => "", aa = "text", oa = (e) => e.length === 0 ? "" : $t(e), la = Us;
|
|
1698
1698
|
function Cn(e, t) {
|
|
1699
1699
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function ia(e) {
|
|
1702
1702
|
const t = Ie(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1703
1703
|
return e.named && (Ie(e.named.count) || Ie(e.named.n)) ? Ie(e.named.count) ? e.named.count : Ie(e.named.n) ? e.named.n : t : t;
|
|
1704
1704
|
}
|
|
@@ -1706,59 +1706,59 @@ function ca(e, t) {
|
|
|
1706
1706
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1707
1707
|
}
|
|
1708
1708
|
function ua(e = {}) {
|
|
1709
|
-
const t = e.locale, n =
|
|
1709
|
+
const t = e.locale, n = ia(e), s = se(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, o = se(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[s(n, f.length, o)], d = e.list || [], u = (f) => d[f], c = e.named || ie();
|
|
1710
1710
|
Ie(e.pluralIndex) && ca(n, c);
|
|
1711
1711
|
const h = (f) => c[f];
|
|
1712
1712
|
function y(f, p) {
|
|
1713
|
-
const
|
|
1714
|
-
return
|
|
1713
|
+
const S = me(e.messages) ? e.messages(f, !!p) : se(e.messages) ? e.messages[f] : !1;
|
|
1714
|
+
return S || (e.parent ? e.parent.message(f) : ra);
|
|
1715
1715
|
}
|
|
1716
|
-
const
|
|
1716
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : sa, N = ne(e.processor) && me(e.processor.normalize) ? e.processor.normalize : oa, w = ne(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : la, D = ne(e.processor) && Z(e.processor.type) ? e.processor.type : aa, F = {
|
|
1717
1717
|
list: u,
|
|
1718
1718
|
named: h,
|
|
1719
1719
|
plural: a,
|
|
1720
1720
|
linked: (f, ...p) => {
|
|
1721
|
-
const [
|
|
1722
|
-
let
|
|
1723
|
-
p.length === 1 ? se(
|
|
1721
|
+
const [S, i] = p;
|
|
1722
|
+
let v = "text", g = "";
|
|
1723
|
+
p.length === 1 ? se(S) ? (g = S.modifier || g, v = S.type || v) : Z(S) && (g = S || g) : p.length === 2 && (Z(S) && (g = S || g), Z(i) && (v = i || v));
|
|
1724
1724
|
const _ = y(f, !0)(F), M = (
|
|
1725
1725
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1726
|
-
|
|
1726
|
+
v === "vnode" && ge(_) && g ? _[0] : _
|
|
1727
1727
|
);
|
|
1728
|
-
return g ?
|
|
1728
|
+
return g ? T(g)(M, v) : M;
|
|
1729
1729
|
},
|
|
1730
1730
|
message: y,
|
|
1731
1731
|
type: D,
|
|
1732
1732
|
interpolate: w,
|
|
1733
1733
|
normalize: N,
|
|
1734
|
-
values: ye(
|
|
1734
|
+
values: ye(ie(), d, c)
|
|
1735
1735
|
};
|
|
1736
1736
|
return F;
|
|
1737
1737
|
}
|
|
1738
|
-
const
|
|
1739
|
-
function
|
|
1740
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: o, messageCompiler: a, fallbackLocale: d, messages: u } = e, [c, h] = xt(...t), y = pe(h.missingWarn) ? h.missingWarn : e.missingWarn,
|
|
1738
|
+
const Tn = () => "", Oe = (e) => me(e);
|
|
1739
|
+
function kn(e, ...t) {
|
|
1740
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: o, messageCompiler: a, fallbackLocale: d, messages: u } = e, [c, h] = xt(...t), y = pe(h.missingWarn) ? h.missingWarn : e.missingWarn, T = pe(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, N = pe(h.escapeParameter) ? h.escapeParameter : e.escapeParameter, w = !!h.resolvedMessage, D = Z(h.default) || pe(h.default) ? pe(h.default) ? a ? c : () => c : h.default : n ? a ? c : () => c : null, R = n || D != null && (Z(D) || me(D)), F = zt(e, h);
|
|
1741
1741
|
N && da(h);
|
|
1742
|
-
let [f, p,
|
|
1742
|
+
let [f, p, S] = w ? [
|
|
1743
1743
|
c,
|
|
1744
1744
|
F,
|
|
1745
|
-
u[F] ||
|
|
1746
|
-
] : es(e, c, F, d,
|
|
1747
|
-
if (!w && !(
|
|
1748
|
-
return o ?
|
|
1745
|
+
u[F] || ie()
|
|
1746
|
+
] : es(e, c, F, d, T, y), i = f, v = c;
|
|
1747
|
+
if (!w && !(Z(i) || et(i) || Oe(i)) && R && (i = D, v = i), !w && (!(Z(i) || et(i) || Oe(i)) || !Z(p)))
|
|
1748
|
+
return o ? kt : c;
|
|
1749
1749
|
let g = !1;
|
|
1750
1750
|
const _ = () => {
|
|
1751
1751
|
g = !0;
|
|
1752
|
-
}, M = Oe(
|
|
1752
|
+
}, M = Oe(i) ? i : ts(e, c, p, i, v, _);
|
|
1753
1753
|
if (g)
|
|
1754
|
-
return
|
|
1755
|
-
const
|
|
1754
|
+
return i;
|
|
1755
|
+
const L = _a(e, p, S, h), $ = ua(L), W = ma(e, M, $), m = s ? s(W, c) : W;
|
|
1756
1756
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1757
1757
|
const E = {
|
|
1758
1758
|
timestamp: Date.now(),
|
|
1759
|
-
key:
|
|
1760
|
-
locale: p || (Oe(
|
|
1761
|
-
format:
|
|
1759
|
+
key: Z(c) ? c : Oe(i) ? i.key : "",
|
|
1760
|
+
locale: p || (Oe(i) ? i.locale : ""),
|
|
1761
|
+
format: Z(i) ? i : Oe(i) ? i.source : "",
|
|
1762
1762
|
message: m
|
|
1763
1763
|
};
|
|
1764
1764
|
E.meta = ye({}, e.__meta, /* @__PURE__ */ Qr() || {}), Mr(E);
|
|
@@ -1766,15 +1766,15 @@ function Tn(e, ...t) {
|
|
|
1766
1766
|
return m;
|
|
1767
1767
|
}
|
|
1768
1768
|
function da(e) {
|
|
1769
|
-
ge(e.list) ? e.list = e.list.map((t) =>
|
|
1770
|
-
|
|
1769
|
+
ge(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : se(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1770
|
+
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1771
1771
|
});
|
|
1772
1772
|
}
|
|
1773
1773
|
function es(e, t, n, s, o, a) {
|
|
1774
1774
|
const { messages: d, onWarn: u, messageResolver: c, localeFallbacker: h } = e, y = h(e, s, n);
|
|
1775
|
-
let
|
|
1775
|
+
let T = ie(), N, w = null;
|
|
1776
1776
|
const D = "translate";
|
|
1777
|
-
for (let R = 0; R < y.length && (N = y[R],
|
|
1777
|
+
for (let R = 0; R < y.length && (N = y[R], T = d[N] || ie(), (w = c(T, t)) === null && (w = T[t]), !(Z(w) || et(w) || Oe(w))); R++)
|
|
1778
1778
|
if (!na(N, y)) {
|
|
1779
1779
|
const F = Qt(
|
|
1780
1780
|
e,
|
|
@@ -1786,7 +1786,7 @@ function es(e, t, n, s, o, a) {
|
|
|
1786
1786
|
);
|
|
1787
1787
|
F !== t && (w = F);
|
|
1788
1788
|
}
|
|
1789
|
-
return [w, N,
|
|
1789
|
+
return [w, N, T];
|
|
1790
1790
|
}
|
|
1791
1791
|
function ts(e, t, n, s, o, a) {
|
|
1792
1792
|
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
@@ -1805,11 +1805,11 @@ function ma(e, t, n) {
|
|
|
1805
1805
|
return t(n);
|
|
1806
1806
|
}
|
|
1807
1807
|
function xt(...e) {
|
|
1808
|
-
const [t, n, s] = e, o =
|
|
1809
|
-
if (!
|
|
1808
|
+
const [t, n, s] = e, o = ie();
|
|
1809
|
+
if (!Z(t) && !Ie(t) && !Oe(t) && !et(t))
|
|
1810
1810
|
throw Ve(xe.INVALID_ARGUMENT);
|
|
1811
1811
|
const a = Ie(t) ? String(t) : (Oe(t), t);
|
|
1812
|
-
return Ie(n) ? o.plural = n :
|
|
1812
|
+
return Ie(n) ? o.plural = n : Z(n) ? o.default = n : ne(n) && !Ct(n) ? o.named = n : ge(n) && (o.list = n), Ie(s) ? o.plural = s : Z(s) ? o.default = s : ne(s) && ye(o, s), [a, o];
|
|
1813
1813
|
}
|
|
1814
1814
|
function fa(e, t, n, s, o, a) {
|
|
1815
1815
|
return {
|
|
@@ -1841,21 +1841,21 @@ function _a(e, t, n, s) {
|
|
|
1841
1841
|
);
|
|
1842
1842
|
R = d(F, w);
|
|
1843
1843
|
}
|
|
1844
|
-
if (
|
|
1844
|
+
if (Z(R) || et(R)) {
|
|
1845
1845
|
let F = !1;
|
|
1846
1846
|
const p = ts(e, w, t, R, w, () => {
|
|
1847
1847
|
F = !0;
|
|
1848
1848
|
});
|
|
1849
|
-
return F ?
|
|
1850
|
-
} else return Oe(R) ? R :
|
|
1849
|
+
return F ? Tn : p;
|
|
1850
|
+
} else return Oe(R) ? R : Tn;
|
|
1851
1851
|
}
|
|
1852
1852
|
};
|
|
1853
1853
|
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named), Ie(s.plural) && (N.pluralIndex = s.plural), N;
|
|
1854
1854
|
}
|
|
1855
1855
|
dr();
|
|
1856
|
-
var pa = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3827a6b0-d52a-4dbb-a470-ec15054ca3f3", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3827a6b0-d52a-4dbb-a470-ec15054ca3f3", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", 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", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", 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.6.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", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", 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: "1800", ACTIONS_ORCHESTRATION_ID: "3a5f021e-1b8e-4182-b404-1fc04007b211.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_3827a6b0-d52a-4dbb-a470-ec15054ca3f3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11265", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", 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_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "30370856661", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c3f4fff23244c7134ed6495ae0b3fe4b620a50ff", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODUyNzI3OTIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NTI1MDU5MiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjQ3NDQ4YTYyLTRjMTktNWIzZi05ZDBlLWMyYjAxOTU5YTMxZiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiYjY2NzFmYjU0YzE4MzA2NTFjMjhjZTA4MTc2OGRhZDUzY2UwZjliZSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NTI1MDI5Miwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5MDMxNDAyNTU0NlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiYjY2NzFmYjU0YzE4MzA2NTFjMjhjZTA4MTc2OGRhZDUzY2UwZjliZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMDM3MDg1NjY2MVwiLFwicnVuX251bWJlclwiOlwiMTQzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiYzNmNGZmZjIzMjQ0YzcxMzRlZDY0OTVhZTBiM2ZlNGI2MjBhNTBmZlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJjM2Y0ZmZmMjMyNDRjNzEzNGVkNjQ5NWFlMGIzZmU0YjYyMGE1MGZmXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6IjNhNWYwMjFlLTFiOGUtNDE4Mi1iNDA0LTFmYzA0MDA3YjIxMS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiM2E1ZjAyMWUtMWI4ZS00MTgyLWI0MDQtMWZjMDQwMDdiMjExIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzAzNzA4NTY2NjEiLCJydW5fbnVtYmVyIjoiMTQzIiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA5ODkyMyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjNhNWYwMjFlLTFiOGUtNDE4Mi1iNDA0LTFmYzA0MDA3YjIxMTo0NzQ0OGE2Mi00YzE5LTViM2YtOWQwZS1jMmIwMTk1OWEzMWYgQWN0aW9ucy5SdW5uZXI6M2E1ZjAyMWUtMWI4ZS00MTgyLWI0MDQtMWZjMDQwMDdiMjExOjQ3NDQ4YTYyLTRjMTktNWIzZi05ZDBlLWMyYjAxOTU5YTMxZiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czozYTVmMDIxZS0xYjhlLTQxODItYjQwNC0xZmMwNDAwN2IyMTE6NDc0NDhhNjItNGMxOS01YjNmLTlkMGUtYzJiMDE5NTlhMzFmIGdlbmVyYXRlX2lkX3Rva2VuOjNhNWYwMjFlLTFiOGUtNDE4Mi1iNDA0LTFmYzA0MDA3YjIxMTo0NzQ0OGE2Mi00YzE5LTViM2YtOWQwZS1jMmIwMTk1OWEzMWYgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJjM2Y0ZmZmMjMyNDRjNzEzNGVkNjQ5NWFlMGIzZmU0YjYyMGE1MGZmIiwidHJ1c3RfdGllciI6IjEifQ.Qy9EBQupBQqPNwPs-qYM0r_w1EWrT66KK0IRLAYQigebBkqh0qrs22a79Q1dQGU7aF9UvMRT_cbKmVeOIkNNtB28ZrI69J_SeFKelDeiLKorMeMLGujXxI4DXLSPBCPLxzuurKtVWC_ahqV_l4MWLWs9BmrdS-MHdNmMfWlMLA5-z8UcagXcCijnm4Flb0gpWMdnxNY6hWEzkj-X6-j_3dl6w2u4HuiA2gSq9oHII-S2JA72UCs8Kiacvdf7XTP5vK22X-kHyKNqe8YsQlNonh87nCsye56j7_bVMY2Wh2ojVBBzbt8-gr1JtsTpy-2shlHmoOaoqOjOCgP-pbOqgw", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/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@9.15.9/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_e9dae61e-99d9-44fb-8459-bf7e25628eda", INVOCATION_ID: "c0bc1415bc994f998f92589511746949", 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: "143", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000098923", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", 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", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", 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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.1.0", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "c3f4fff23244c7134ed6495ae0b3fe4b620a50ff", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3827a6b0-d52a-4dbb-a470-ec15054ca3f3", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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/189//idtoken/3a5f021e-1b8e-4182-b404-1fc04007b211/47448a62-4c19-5b3f-9d0e-c2b01959a31f?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3827a6b0-d52a-4dbb-a470-ec15054ca3f3", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", 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_3827a6b0-d52a-4dbb-a470-ec15054ca3f3", 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_3827a6b0-d52a-4dbb-a470-ec15054ca3f3", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1857
|
-
const
|
|
1858
|
-
function
|
|
1856
|
+
var pa = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f502b3a7-f968-41df-8571-65c806a54bf8", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_f502b3a7-f968-41df-8571-65c806a54bf8", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", 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", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", 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.6.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", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", 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: "1794", ACTIONS_ORCHESTRATION_ID: "8a144253-e901-4620-af0e-97f96699b270.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_f502b3a7-f968-41df-8571-65c806a54bf8", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12774", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", 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_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "30421354035", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d020ea917cd43421ffb74aa5f3b6dbc23235913f", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-4965-audit-log-trace", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNDk2NS1hdWRpdC1sb2ctdHJhY2VcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODUzMjAxODUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NTI5Nzk4NiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImY3NTRjMTI0LWQ0NTEtNWU0MS1hMmRjLWE2YWExZmE5MmUwZSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiYjY2NzFmYjU0YzE4MzA2NTFjMjhjZTA4MTc2OGRhZDUzY2UwZjliZSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NTI5NzY4Niwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5MDQ3ODY3MjIwNFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiYjY2NzFmYjU0YzE4MzA2NTFjMjhjZTA4MTc2OGRhZDUzY2UwZjliZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL0tESS00OTY1LWF1ZGl0LWxvZy10cmFjZVwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMDQyMTM1NDAzNVwiLFwicnVuX251bWJlclwiOlwiMTQ1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZDAyMGVhOTE3Y2Q0MzQyMWZmYjc0YWE1ZjNiNmRiYzIzMjM1OTEzZlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTQ5NjUtYXVkaXQtbG9nLXRyYWNlXCIsXCJ3b3JrZmxvd19zaGFcIjpcImQwMjBlYTkxN2NkNDM0MjFmZmI3NGFhNWYzYjZkYmMyMzIzNTkxM2ZcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL0tESS00OTY1LWF1ZGl0LWxvZy10cmFjZSIsIm9yY2hfaWQiOiI4YTE0NDI1My1lOTAxLTQ2MjAtYWYwZS05N2Y5NjY5OWIyNzAucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjhhMTQ0MjUzLWU5MDEtNDYyMC1hZjBlLTk3Zjk2Njk5YjI3MCIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMwNDIxMzU0MDM1IiwicnVuX251bWJlciI6IjE0NSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwOTkzMDUiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo4YTE0NDI1My1lOTAxLTQ2MjAtYWYwZS05N2Y5NjY5OWIyNzA6Zjc1NGMxMjQtZDQ1MS01ZTQxLWEyZGMtYTZhYTFmYTkyZTBlIEFjdGlvbnMuUnVubmVyOjhhMTQ0MjUzLWU5MDEtNDYyMC1hZjBlLTk3Zjk2Njk5YjI3MDpmNzU0YzEyNC1kNDUxLTVlNDEtYTJkYy1hNmFhMWZhOTJlMGUgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6OGExNDQyNTMtZTkwMS00NjIwLWFmMGUtOTdmOTY2OTliMjcwOmY3NTRjMTI0LWQ0NTEtNWU0MS1hMmRjLWE2YWExZmE5MmUwZSBnZW5lcmF0ZV9pZF90b2tlbjo4YTE0NDI1My1lOTAxLTQ2MjAtYWYwZS05N2Y5NjY5OWIyNzA6Zjc1NGMxMjQtZDQ1MS01ZTQxLWEyZGMtYTZhYTFmYTkyZTBlIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiZDAyMGVhOTE3Y2Q0MzQyMWZmYjc0YWE1ZjNiNmRiYzIzMjM1OTEzZiIsInRydXN0X3RpZXIiOiIxIn0.nddVnCbyk17GTxoD0mgzK20YFLm2xkdyrup0TbA8yvr8y3M5G_cMv6cxOAdQFxoEDmUe2uaqN37zBYyYQ3bNzSSbO6fNhKZAOY0ViSxNnxnJRG6_Yi5q7ZoNDHZeWWINRnha3rPiz2zALoeV0fmiHbzLu_CuCs35LVMRBLWTDhcn17YLIsKiL-5AIz_Zv6efl7rf86m94IMG4jx5PUu7g1vBTtbMH85H2Uj0J02gV0fewT0NJOU8Kfc9V4hTBHesO0cWAJPAvFXMYdhAyWjloyOsRc-06q61zoz9y77oIKrsGpVkrxs2-_Um0F9yMs30gFdAQvfbrL2eMKXhicNQtw", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/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@9.15.9/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_9ba1dce3-8a92-4a01-8791-59dca4fd8a2d", INVOCATION_ID: "d3543294087b42c9bfd626eb8b33aa88", 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: "145", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000099305", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-4965-audit-log-trace", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", 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", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", 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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.1.1-dev.2", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "d020ea917cd43421ffb74aa5f3b6dbc23235913f", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-4965-audit-log-trace", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f502b3a7-f968-41df-8571-65c806a54bf8", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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/226//idtoken/8a144253-e901-4620-af0e-97f96699b270/f754c124-d451-5e41-a2dc-a6aa1fa92e0e?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f502b3a7-f968-41df-8571-65c806a54bf8", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", 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_f502b3a7-f968-41df-8571-65c806a54bf8", 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_f502b3a7-f968-41df-8571-65c806a54bf8", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1857
|
+
const va = "10.0.5";
|
|
1858
|
+
function ba() {
|
|
1859
1859
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1860
1860
|
}
|
|
1861
1861
|
const tt = {
|
|
@@ -1872,7 +1872,7 @@ const tt = {
|
|
|
1872
1872
|
UNEXPECTED_ERROR: 32
|
|
1873
1873
|
};
|
|
1874
1874
|
function ct(e, ...t) {
|
|
1875
|
-
return
|
|
1875
|
+
return Tt(e, null, void 0);
|
|
1876
1876
|
}
|
|
1877
1877
|
const Vt = /* @__PURE__ */ He("__translateVNode"), Wt = /* @__PURE__ */ He("__datetimeParts"), Gt = /* @__PURE__ */ He("__numberParts"), ha = He("__setPluralRules"), ns = /* @__PURE__ */ He("__injectWithOption"), Yt = /* @__PURE__ */ He("__dispose");
|
|
1878
1878
|
function ut(e) {
|
|
@@ -1886,7 +1886,7 @@ function ut(e) {
|
|
|
1886
1886
|
const n = t.split("."), s = n.length - 1;
|
|
1887
1887
|
let o = e, a = !1;
|
|
1888
1888
|
for (let d = 0; d < s; d++) {
|
|
1889
|
-
if (n[d] in o || (o[n[d]] =
|
|
1889
|
+
if (n[d] in o || (o[n[d]] = ie()), !se(o[n[d]])) {
|
|
1890
1890
|
a = !0;
|
|
1891
1891
|
break;
|
|
1892
1892
|
}
|
|
@@ -1897,13 +1897,13 @@ function ut(e) {
|
|
|
1897
1897
|
return e;
|
|
1898
1898
|
}
|
|
1899
1899
|
function ss(e, t) {
|
|
1900
|
-
const { messages: n, __i18n: s, messageResolver: o, flatJson: a } = t, d = ne(n) ? n : ge(s) ?
|
|
1900
|
+
const { messages: n, __i18n: s, messageResolver: o, flatJson: a } = t, d = ne(n) ? n : ge(s) ? ie() : { [e]: ie() };
|
|
1901
1901
|
if (ge(s) && s.forEach((u) => {
|
|
1902
1902
|
if ("locale" in u && "resource" in u) {
|
|
1903
1903
|
const { locale: c, resource: h } = u;
|
|
1904
|
-
c ? (d[c] = d[c] ||
|
|
1904
|
+
c ? (d[c] = d[c] || ie(), yt(h, d[c])) : yt(h, d);
|
|
1905
1905
|
} else
|
|
1906
|
-
|
|
1906
|
+
Z(u) && yt(JSON.parse(u), d);
|
|
1907
1907
|
}), o == null && a)
|
|
1908
1908
|
for (const u in d)
|
|
1909
1909
|
Me(d, u) && ut(d[u]);
|
|
@@ -1913,7 +1913,7 @@ function rs(e) {
|
|
|
1913
1913
|
return e.type;
|
|
1914
1914
|
}
|
|
1915
1915
|
function ga(e, t, n) {
|
|
1916
|
-
let s = se(t.messages) ? t.messages :
|
|
1916
|
+
let s = se(t.messages) ? t.messages : ie();
|
|
1917
1917
|
"__i18nGlobal" in n && (s = ss(e.locale.value, {
|
|
1918
1918
|
messages: s,
|
|
1919
1919
|
__i18n: n.__i18nGlobal
|
|
@@ -1940,37 +1940,37 @@ function ga(e, t, n) {
|
|
|
1940
1940
|
function On(e) {
|
|
1941
1941
|
return fe(ms, null, e, 0);
|
|
1942
1942
|
}
|
|
1943
|
-
const
|
|
1943
|
+
const Sn = "__INTLIFY_META__", Ln = () => [], Ia = () => !1;
|
|
1944
1944
|
let An = 0;
|
|
1945
1945
|
function Rn(e) {
|
|
1946
|
-
return (t, n, s, o) => e(n, s,
|
|
1946
|
+
return (t, n, s, o) => e(n, s, Bt() || void 0, o);
|
|
1947
1947
|
}
|
|
1948
1948
|
const ya = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1949
|
-
const e =
|
|
1949
|
+
const e = Bt();
|
|
1950
1950
|
let t = null;
|
|
1951
|
-
return e && (t = rs(e)[
|
|
1951
|
+
return e && (t = rs(e)[Sn]) ? { [Sn]: t } : null;
|
|
1952
1952
|
};
|
|
1953
1953
|
function Ea(e = {}) {
|
|
1954
1954
|
const { __root: t, __injectWithOption: n } = e, s = t === void 0, o = e.flatJson, a = an ? dt : us;
|
|
1955
1955
|
let d = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1956
1956
|
const u = a(
|
|
1957
1957
|
// prettier-ignore
|
|
1958
|
-
t && d ? t.locale.value :
|
|
1958
|
+
t && d ? t.locale.value : Z(e.locale) ? e.locale : Nt
|
|
1959
1959
|
), c = a(
|
|
1960
1960
|
// prettier-ignore
|
|
1961
|
-
t && d ? t.fallbackLocale.value :
|
|
1962
|
-
), h = a(ss(u.value, e)), y = a(ne(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }),
|
|
1963
|
-
let N = t ? t.missingWarn : pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, R = !!e.fallbackFormat, F = me(e.missing) ? e.missing : null, f = me(e.missing) ? Rn(e.missing) : null, p = me(e.postTranslation) ? e.postTranslation : null,
|
|
1964
|
-
const
|
|
1961
|
+
t && d ? t.fallbackLocale.value : Z(e.fallbackLocale) || ge(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1962
|
+
), h = a(ss(u.value, e)), y = a(ne(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ne(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1963
|
+
let N = t ? t.missingWarn : pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, R = !!e.fallbackFormat, F = me(e.missing) ? e.missing : null, f = me(e.missing) ? Rn(e.missing) : null, p = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, i = !!e.escapeParameter;
|
|
1964
|
+
const v = t ? t.modifiers : ne(e.modifiers) ? e.modifiers : {};
|
|
1965
1965
|
let g = e.pluralRules || t && t.pluralRules, _;
|
|
1966
1966
|
_ = (() => {
|
|
1967
1967
|
s && hn(null);
|
|
1968
|
-
const
|
|
1969
|
-
version:
|
|
1968
|
+
const b = {
|
|
1969
|
+
version: va,
|
|
1970
1970
|
locale: u.value,
|
|
1971
1971
|
fallbackLocale: c.value,
|
|
1972
1972
|
messages: h.value,
|
|
1973
|
-
modifiers:
|
|
1973
|
+
modifiers: v,
|
|
1974
1974
|
pluralRules: g,
|
|
1975
1975
|
missing: f === null ? void 0 : f,
|
|
1976
1976
|
missingWarn: N,
|
|
@@ -1978,123 +1978,123 @@ function Ea(e = {}) {
|
|
|
1978
1978
|
fallbackFormat: R,
|
|
1979
1979
|
unresolving: !0,
|
|
1980
1980
|
postTranslation: p === null ? void 0 : p,
|
|
1981
|
-
warnHtmlMessage:
|
|
1982
|
-
escapeParameter:
|
|
1981
|
+
warnHtmlMessage: S,
|
|
1982
|
+
escapeParameter: i,
|
|
1983
1983
|
messageResolver: e.messageResolver,
|
|
1984
1984
|
messageCompiler: e.messageCompiler,
|
|
1985
1985
|
__meta: { framework: "vue" }
|
|
1986
1986
|
};
|
|
1987
|
-
|
|
1988
|
-
const O = ea(
|
|
1987
|
+
b.datetimeFormats = y.value, b.numberFormats = T.value, b.__datetimeFormatters = ne(_) ? _.__datetimeFormatters : void 0, b.__numberFormatters = ne(_) ? _.__numberFormatters : void 0;
|
|
1988
|
+
const O = ea(b);
|
|
1989
1989
|
return s && hn(O), O;
|
|
1990
1990
|
})(), at(_, u.value, c.value);
|
|
1991
|
-
function
|
|
1991
|
+
function L() {
|
|
1992
1992
|
return [
|
|
1993
1993
|
u.value,
|
|
1994
1994
|
c.value,
|
|
1995
1995
|
h.value,
|
|
1996
1996
|
y.value,
|
|
1997
|
-
|
|
1997
|
+
T.value
|
|
1998
1998
|
];
|
|
1999
1999
|
}
|
|
2000
2000
|
const $ = ee({
|
|
2001
2001
|
get: () => u.value,
|
|
2002
|
-
set: (
|
|
2003
|
-
u.value =
|
|
2002
|
+
set: (b) => {
|
|
2003
|
+
u.value = b, _.locale = u.value;
|
|
2004
2004
|
}
|
|
2005
2005
|
}), W = ee({
|
|
2006
2006
|
get: () => c.value,
|
|
2007
|
-
set: (
|
|
2008
|
-
c.value =
|
|
2007
|
+
set: (b) => {
|
|
2008
|
+
c.value = b, _.fallbackLocale = c.value, at(_, u.value, b);
|
|
2009
2009
|
}
|
|
2010
|
-
}), m = ee(() => h.value), E = /* @__PURE__ */ ee(() => y.value), x = /* @__PURE__ */ ee(() =>
|
|
2010
|
+
}), m = ee(() => h.value), E = /* @__PURE__ */ ee(() => y.value), x = /* @__PURE__ */ ee(() => T.value);
|
|
2011
2011
|
function U() {
|
|
2012
2012
|
return me(p) ? p : null;
|
|
2013
2013
|
}
|
|
2014
|
-
function j(
|
|
2015
|
-
p =
|
|
2014
|
+
function j(b) {
|
|
2015
|
+
p = b, _.postTranslation = b;
|
|
2016
2016
|
}
|
|
2017
2017
|
function G() {
|
|
2018
2018
|
return F;
|
|
2019
2019
|
}
|
|
2020
|
-
function V(
|
|
2021
|
-
|
|
2020
|
+
function V(b) {
|
|
2021
|
+
b !== null && (f = Rn(b)), F = b, _.missing = f;
|
|
2022
2022
|
}
|
|
2023
|
-
const
|
|
2024
|
-
|
|
2023
|
+
const B = (b, O, K, de, Te, mt) => {
|
|
2024
|
+
L();
|
|
2025
2025
|
let $e;
|
|
2026
2026
|
try {
|
|
2027
|
-
pa.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (_.fallbackContext = t ? qr() : void 0), $e =
|
|
2027
|
+
pa.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (_.fallbackContext = t ? qr() : void 0), $e = b(_);
|
|
2028
2028
|
} finally {
|
|
2029
2029
|
__INTLIFY_PROD_DEVTOOLS__, s || (_.fallbackContext = void 0);
|
|
2030
2030
|
}
|
|
2031
2031
|
if (K !== "translate exists" && // for not `te` (e.g `t`)
|
|
2032
|
-
Ie($e) && $e ===
|
|
2033
|
-
const [
|
|
2034
|
-
return t && D ? de(t) :
|
|
2032
|
+
Ie($e) && $e === kt || K === "translate exists" && !$e) {
|
|
2033
|
+
const [is, No] = O();
|
|
2034
|
+
return t && D ? de(t) : Te(is);
|
|
2035
2035
|
} else {
|
|
2036
2036
|
if (mt($e))
|
|
2037
2037
|
return $e;
|
|
2038
2038
|
throw ct(tt.UNEXPECTED_RETURN_TYPE);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
|
-
function J(...
|
|
2042
|
-
return
|
|
2041
|
+
function J(...b) {
|
|
2042
|
+
return B((O) => Reflect.apply(kn, null, [O, ...b]), () => xt(...b), "translate", (O) => Reflect.apply(O.t, O, [...b]), (O) => O, (O) => Z(O));
|
|
2043
2043
|
}
|
|
2044
|
-
function ae(...
|
|
2045
|
-
const [O, K, de] =
|
|
2044
|
+
function ae(...b) {
|
|
2045
|
+
const [O, K, de] = b;
|
|
2046
2046
|
if (de && !se(de))
|
|
2047
2047
|
throw ct(tt.INVALID_ARGUMENT);
|
|
2048
2048
|
return J(O, K, ye({ resolvedMessage: !0 }, de || {}));
|
|
2049
2049
|
}
|
|
2050
|
-
function Q(...
|
|
2051
|
-
return
|
|
2050
|
+
function Q(...b) {
|
|
2051
|
+
return B((O) => Reflect.apply(In, null, [O, ...b]), () => Pt(...b), "datetime format", (O) => Reflect.apply(O.d, O, [...b]), () => vn, (O) => Z(O));
|
|
2052
2052
|
}
|
|
2053
|
-
function re(...
|
|
2054
|
-
return
|
|
2053
|
+
function re(...b) {
|
|
2054
|
+
return B((O) => Reflect.apply(En, null, [O, ...b]), () => Ut(...b), "number format", (O) => Reflect.apply(O.n, O, [...b]), () => vn, (O) => Z(O));
|
|
2055
2055
|
}
|
|
2056
|
-
function ce(
|
|
2057
|
-
return
|
|
2056
|
+
function ce(b) {
|
|
2057
|
+
return b.map((O) => Z(O) || Ie(O) || pe(O) ? On(String(O)) : O);
|
|
2058
2058
|
}
|
|
2059
2059
|
const _e = {
|
|
2060
2060
|
normalize: ce,
|
|
2061
|
-
interpolate: (
|
|
2061
|
+
interpolate: (b) => b,
|
|
2062
2062
|
type: "vnode"
|
|
2063
2063
|
};
|
|
2064
|
-
function Ee(...
|
|
2065
|
-
return
|
|
2064
|
+
function Ee(...b) {
|
|
2065
|
+
return B((O) => {
|
|
2066
2066
|
let K;
|
|
2067
2067
|
const de = O;
|
|
2068
2068
|
try {
|
|
2069
|
-
de.processor = _e, K = Reflect.apply(
|
|
2069
|
+
de.processor = _e, K = Reflect.apply(kn, null, [de, ...b]);
|
|
2070
2070
|
} finally {
|
|
2071
2071
|
de.processor = null;
|
|
2072
2072
|
}
|
|
2073
2073
|
return K;
|
|
2074
|
-
}, () => xt(...
|
|
2074
|
+
}, () => xt(...b), "translate", (O) => O[Vt](...b), (O) => [On(O)], (O) => ge(O));
|
|
2075
2075
|
}
|
|
2076
|
-
function Pe(...
|
|
2077
|
-
return
|
|
2076
|
+
function Pe(...b) {
|
|
2077
|
+
return B((O) => Reflect.apply(En, null, [O, ...b]), () => Ut(...b), "number format", (O) => O[Gt](...b), Ln, (O) => Z(O) || ge(O));
|
|
2078
2078
|
}
|
|
2079
|
-
function te(...
|
|
2080
|
-
return
|
|
2079
|
+
function te(...b) {
|
|
2080
|
+
return B((O) => Reflect.apply(In, null, [O, ...b]), () => Pt(...b), "datetime format", (O) => O[Wt](...b), Ln, (O) => Z(O) || ge(O));
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2083
|
-
g =
|
|
2082
|
+
function ve(b) {
|
|
2083
|
+
g = b, _.pluralRules = g;
|
|
2084
2084
|
}
|
|
2085
|
-
function st(
|
|
2086
|
-
return
|
|
2087
|
-
if (!
|
|
2085
|
+
function st(b, O) {
|
|
2086
|
+
return B(() => {
|
|
2087
|
+
if (!b)
|
|
2088
2088
|
return !1;
|
|
2089
|
-
const K =
|
|
2090
|
-
return et(
|
|
2091
|
-
}, () => [
|
|
2089
|
+
const K = Z(O) ? O : u.value, de = We(K), Te = _.messageResolver(de, b);
|
|
2090
|
+
return et(Te) || Oe(Te) || Z(Te);
|
|
2091
|
+
}, () => [b], "translate exists", (K) => Reflect.apply(K.te, K, [b, O]), Ia, (K) => pe(K));
|
|
2092
2092
|
}
|
|
2093
|
-
function rt(
|
|
2093
|
+
function rt(b) {
|
|
2094
2094
|
let O = null;
|
|
2095
2095
|
const K = Xn(_, c.value, u.value);
|
|
2096
2096
|
for (let de = 0; de < K.length; de++) {
|
|
2097
|
-
const
|
|
2097
|
+
const Te = h.value[K[de]] || {}, mt = _.messageResolver(Te, b);
|
|
2098
2098
|
if (mt != null) {
|
|
2099
2099
|
O = mt;
|
|
2100
2100
|
break;
|
|
@@ -2102,52 +2102,52 @@ function Ea(e = {}) {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
return O;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const O = rt(
|
|
2107
|
-
return O ?? (t ? t.tm(
|
|
2105
|
+
function Se(b) {
|
|
2106
|
+
const O = rt(b);
|
|
2107
|
+
return O ?? (t ? t.tm(b) || {} : {});
|
|
2108
2108
|
}
|
|
2109
|
-
function We(
|
|
2110
|
-
return h.value[
|
|
2109
|
+
function We(b) {
|
|
2110
|
+
return h.value[b] || {};
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function k(b, O) {
|
|
2113
2113
|
if (o) {
|
|
2114
|
-
const K = { [
|
|
2114
|
+
const K = { [b]: O };
|
|
2115
2115
|
for (const de in K)
|
|
2116
2116
|
Me(K, de) && ut(K[de]);
|
|
2117
|
-
O = K[
|
|
2117
|
+
O = K[b];
|
|
2118
2118
|
}
|
|
2119
|
-
h.value[
|
|
2119
|
+
h.value[b] = O, _.messages = h.value;
|
|
2120
2120
|
}
|
|
2121
|
-
function C(
|
|
2122
|
-
h.value[
|
|
2123
|
-
const K = { [
|
|
2121
|
+
function C(b, O) {
|
|
2122
|
+
h.value[b] = h.value[b] || {};
|
|
2123
|
+
const K = { [b]: O };
|
|
2124
2124
|
if (o)
|
|
2125
2125
|
for (const de in K)
|
|
2126
2126
|
Me(K, de) && ut(K[de]);
|
|
2127
|
-
O = K[
|
|
2127
|
+
O = K[b], yt(O, h.value[b]), _.messages = h.value;
|
|
2128
2128
|
}
|
|
2129
|
-
function A(
|
|
2130
|
-
return y.value[
|
|
2129
|
+
function A(b) {
|
|
2130
|
+
return y.value[b] || {};
|
|
2131
2131
|
}
|
|
2132
|
-
function r(
|
|
2133
|
-
y.value[
|
|
2132
|
+
function r(b, O) {
|
|
2133
|
+
y.value[b] = O, _.datetimeFormats = y.value, yn(_, b, O);
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2136
|
-
y.value[
|
|
2135
|
+
function l(b, O) {
|
|
2136
|
+
y.value[b] = ye(y.value[b] || {}, O), _.datetimeFormats = y.value, yn(_, b, O);
|
|
2137
2137
|
}
|
|
2138
|
-
function I(
|
|
2139
|
-
return
|
|
2138
|
+
function I(b) {
|
|
2139
|
+
return T.value[b] || {};
|
|
2140
2140
|
}
|
|
2141
|
-
function P(
|
|
2142
|
-
|
|
2141
|
+
function P(b, O) {
|
|
2142
|
+
T.value[b] = O, _.numberFormats = T.value, Nn(_, b, O);
|
|
2143
2143
|
}
|
|
2144
|
-
function Y(
|
|
2145
|
-
|
|
2144
|
+
function Y(b, O) {
|
|
2145
|
+
T.value[b] = ye(T.value[b] || {}, O), _.numberFormats = T.value, Nn(_, b, O);
|
|
2146
2146
|
}
|
|
2147
|
-
An++, t && an && (Dt(t.locale, (
|
|
2148
|
-
d && (u.value =
|
|
2149
|
-
}), Dt(t.fallbackLocale, (
|
|
2150
|
-
d && (c.value =
|
|
2147
|
+
An++, t && an && (Dt(t.locale, (b) => {
|
|
2148
|
+
d && (u.value = b, _.locale = b, at(_, u.value, c.value));
|
|
2149
|
+
}), Dt(t.fallbackLocale, (b) => {
|
|
2150
|
+
d && (c.value = b, _.fallbackLocale = b, at(_, u.value, c.value));
|
|
2151
2151
|
}));
|
|
2152
2152
|
const X = {
|
|
2153
2153
|
id: An,
|
|
@@ -2156,15 +2156,15 @@ function Ea(e = {}) {
|
|
|
2156
2156
|
get inheritLocale() {
|
|
2157
2157
|
return d;
|
|
2158
2158
|
},
|
|
2159
|
-
set inheritLocale(
|
|
2160
|
-
d =
|
|
2159
|
+
set inheritLocale(b) {
|
|
2160
|
+
d = b, b && t && (u.value = t.locale.value, c.value = t.fallbackLocale.value, at(_, u.value, c.value));
|
|
2161
2161
|
},
|
|
2162
2162
|
get availableLocales() {
|
|
2163
2163
|
return Object.keys(h.value).sort();
|
|
2164
2164
|
},
|
|
2165
2165
|
messages: m,
|
|
2166
2166
|
get modifiers() {
|
|
2167
|
-
return
|
|
2167
|
+
return v;
|
|
2168
2168
|
},
|
|
2169
2169
|
get pluralRules() {
|
|
2170
2170
|
return g || {};
|
|
@@ -2175,50 +2175,50 @@ function Ea(e = {}) {
|
|
|
2175
2175
|
get missingWarn() {
|
|
2176
2176
|
return N;
|
|
2177
2177
|
},
|
|
2178
|
-
set missingWarn(
|
|
2179
|
-
N =
|
|
2178
|
+
set missingWarn(b) {
|
|
2179
|
+
N = b, _.missingWarn = N;
|
|
2180
2180
|
},
|
|
2181
2181
|
get fallbackWarn() {
|
|
2182
2182
|
return w;
|
|
2183
2183
|
},
|
|
2184
|
-
set fallbackWarn(
|
|
2185
|
-
w =
|
|
2184
|
+
set fallbackWarn(b) {
|
|
2185
|
+
w = b, _.fallbackWarn = w;
|
|
2186
2186
|
},
|
|
2187
2187
|
get fallbackRoot() {
|
|
2188
2188
|
return D;
|
|
2189
2189
|
},
|
|
2190
|
-
set fallbackRoot(
|
|
2191
|
-
D =
|
|
2190
|
+
set fallbackRoot(b) {
|
|
2191
|
+
D = b;
|
|
2192
2192
|
},
|
|
2193
2193
|
get fallbackFormat() {
|
|
2194
2194
|
return R;
|
|
2195
2195
|
},
|
|
2196
|
-
set fallbackFormat(
|
|
2197
|
-
R =
|
|
2196
|
+
set fallbackFormat(b) {
|
|
2197
|
+
R = b, _.fallbackFormat = R;
|
|
2198
2198
|
},
|
|
2199
2199
|
get warnHtmlMessage() {
|
|
2200
|
-
return
|
|
2200
|
+
return S;
|
|
2201
2201
|
},
|
|
2202
|
-
set warnHtmlMessage(
|
|
2203
|
-
|
|
2202
|
+
set warnHtmlMessage(b) {
|
|
2203
|
+
S = b, _.warnHtmlMessage = b;
|
|
2204
2204
|
},
|
|
2205
2205
|
get escapeParameter() {
|
|
2206
|
-
return
|
|
2206
|
+
return i;
|
|
2207
2207
|
},
|
|
2208
|
-
set escapeParameter(
|
|
2209
|
-
|
|
2208
|
+
set escapeParameter(b) {
|
|
2209
|
+
i = b, _.escapeParameter = b;
|
|
2210
2210
|
},
|
|
2211
2211
|
t: J,
|
|
2212
2212
|
getLocaleMessage: We,
|
|
2213
|
-
setLocaleMessage:
|
|
2213
|
+
setLocaleMessage: k,
|
|
2214
2214
|
mergeLocaleMessage: C,
|
|
2215
2215
|
getPostTranslationHandler: U,
|
|
2216
2216
|
setPostTranslationHandler: j,
|
|
2217
2217
|
getMissingHandler: G,
|
|
2218
2218
|
setMissingHandler: V,
|
|
2219
|
-
[ha]:
|
|
2219
|
+
[ha]: ve
|
|
2220
2220
|
};
|
|
2221
|
-
return X.datetimeFormats = E, X.numberFormats = x, X.rt = ae, X.te = st, X.tm =
|
|
2221
|
+
return X.datetimeFormats = E, X.numberFormats = x, X.rt = ae, X.te = st, X.tm = Se, X.d = Q, X.n = re, X.getDateTimeFormat = A, X.setDateTimeFormat = r, X.mergeDateTimeFormat = l, X.getNumberFormat = I, X.setNumberFormat = P, X.mergeNumberFormat = Y, X[ns] = n, X[Vt] = Ee, X[Wt] = te, X[Gt] = Pe, X;
|
|
2222
2222
|
}
|
|
2223
2223
|
const qt = {
|
|
2224
2224
|
tag: {
|
|
@@ -2242,14 +2242,14 @@ function Na({ slots: e }, t) {
|
|
|
2242
2242
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, o) => [
|
|
2243
2243
|
...s,
|
|
2244
2244
|
// prettier-ignore
|
|
2245
|
-
...o.type ===
|
|
2245
|
+
...o.type === Le ? o.children : [o]
|
|
2246
2246
|
], []) : t.reduce((n, s) => {
|
|
2247
2247
|
const o = e[s];
|
|
2248
2248
|
return o && (n[s] = o()), n;
|
|
2249
|
-
},
|
|
2249
|
+
}, ie());
|
|
2250
2250
|
}
|
|
2251
2251
|
function as() {
|
|
2252
|
-
return
|
|
2252
|
+
return Le;
|
|
2253
2253
|
}
|
|
2254
2254
|
ye({
|
|
2255
2255
|
keypath: {
|
|
@@ -2262,22 +2262,22 @@ ye({
|
|
|
2262
2262
|
}
|
|
2263
2263
|
}, qt);
|
|
2264
2264
|
function Ca(e) {
|
|
2265
|
-
return ge(e) && !
|
|
2265
|
+
return ge(e) && !Z(e[0]);
|
|
2266
2266
|
}
|
|
2267
2267
|
function os(e, t, n, s) {
|
|
2268
2268
|
const { slots: o, attrs: a } = t;
|
|
2269
2269
|
return () => {
|
|
2270
2270
|
const d = { part: !0 };
|
|
2271
|
-
let u =
|
|
2272
|
-
e.locale && (d.locale = e.locale),
|
|
2271
|
+
let u = ie();
|
|
2272
|
+
e.locale && (d.locale = e.locale), Z(e.format) ? d.key = e.format : se(e.format) && (Z(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, w) => n.includes(w) ? ye(ie(), N, { [w]: e.format[w] }) : N, ie()));
|
|
2273
2273
|
const c = s(e.value, d, u);
|
|
2274
2274
|
let h = [d.key];
|
|
2275
2275
|
ge(c) ? h = c.map((N, w) => {
|
|
2276
2276
|
const D = o[N.type], R = D ? D({ [N.type]: N.value, index: w, parts: c }) : [N.value];
|
|
2277
2277
|
return Ca(R) && (R[0].key = `${N.type}-${w}`), R;
|
|
2278
|
-
}) :
|
|
2279
|
-
const y = ye(
|
|
2280
|
-
return Vn(
|
|
2278
|
+
}) : Z(c) && (h = [c]);
|
|
2279
|
+
const y = ye(ie(), a), T = Z(e.tag) || se(e.tag) ? e.tag : as();
|
|
2280
|
+
return Vn(T, y, h);
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
2283
|
ye({
|
|
@@ -2298,18 +2298,18 @@ ye({
|
|
|
2298
2298
|
type: [String, Object]
|
|
2299
2299
|
}
|
|
2300
2300
|
}, qt);
|
|
2301
|
-
const
|
|
2301
|
+
const Ta = /* @__PURE__ */ He("global-vue-i18n");
|
|
2302
2302
|
function Ot(e = {}) {
|
|
2303
|
-
const t =
|
|
2303
|
+
const t = Bt();
|
|
2304
2304
|
if (t == null)
|
|
2305
2305
|
throw ct(tt.MUST_BE_CALL_SETUP_TOP);
|
|
2306
2306
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2307
2307
|
throw ct(tt.NOT_INSTALLED);
|
|
2308
|
-
const n =
|
|
2308
|
+
const n = ka(t), s = Sa(n), o = rs(t), a = Oa(e, o);
|
|
2309
2309
|
if (a === "global")
|
|
2310
2310
|
return ga(s, e, o), s;
|
|
2311
2311
|
if (a === "parent") {
|
|
2312
|
-
let c =
|
|
2312
|
+
let c = La(n, t, e.__useComponent);
|
|
2313
2313
|
return c == null && (c = s), c;
|
|
2314
2314
|
}
|
|
2315
2315
|
const d = n;
|
|
@@ -2320,8 +2320,8 @@ function Ot(e = {}) {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
return u;
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2324
|
-
const t = cs(e.isCE ?
|
|
2323
|
+
function ka(e) {
|
|
2324
|
+
const t = cs(e.isCE ? Ta : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2325
2325
|
if (!t)
|
|
2326
2326
|
throw ct(e.isCE ? tt.NOT_INSTALLED_WITH_PROVIDE : tt.UNEXPECTED_ERROR);
|
|
2327
2327
|
return t;
|
|
@@ -2329,10 +2329,10 @@ function Ta(e) {
|
|
|
2329
2329
|
function Oa(e, t) {
|
|
2330
2330
|
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function Sa(e) {
|
|
2333
2333
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function La(e, t, n = !1) {
|
|
2336
2336
|
let s = null;
|
|
2337
2337
|
const o = t.root;
|
|
2338
2338
|
let a = Aa(t, n);
|
|
@@ -2362,15 +2362,15 @@ function Ra(e, t, n) {
|
|
|
2362
2362
|
o && (o(), delete s[Yt]);
|
|
2363
2363
|
}, t);
|
|
2364
2364
|
}
|
|
2365
|
-
|
|
2366
|
-
$r(
|
|
2367
|
-
Jr(
|
|
2365
|
+
ba();
|
|
2366
|
+
$r(Lr);
|
|
2367
|
+
Jr(Br);
|
|
2368
2368
|
Kr(Xn);
|
|
2369
2369
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2370
2370
|
const e = Xe();
|
|
2371
2371
|
e.__INTLIFY__ = !0, Ar(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2372
2372
|
}
|
|
2373
|
-
const
|
|
2373
|
+
const vt = /* @__PURE__ */ je({
|
|
2374
2374
|
__name: "InheritPermissionTooltip",
|
|
2375
2375
|
props: {
|
|
2376
2376
|
item: {
|
|
@@ -2387,13 +2387,13 @@ const bt = /* @__PURE__ */ je({
|
|
|
2387
2387
|
placement: "right",
|
|
2388
2388
|
"z-index": 50
|
|
2389
2389
|
}, {
|
|
2390
|
-
content:
|
|
2391
|
-
|
|
2392
|
-
(z(!0), ue(
|
|
2393
|
-
|
|
2390
|
+
content: be(() => [
|
|
2391
|
+
le("div", null, ke(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2392
|
+
(z(!0), ue(Le, null, Ce(e.item.setNames, (d) => (z(), ue("div", { key: d }, [
|
|
2393
|
+
le("div", null, "- " + ke(d), 1)
|
|
2394
2394
|
]))), 128))
|
|
2395
2395
|
]),
|
|
2396
|
-
default:
|
|
2396
|
+
default: be(() => [
|
|
2397
2397
|
fe(o, {
|
|
2398
2398
|
name: "admin_panel_settings",
|
|
2399
2399
|
size: "sm",
|
|
@@ -2419,7 +2419,7 @@ function Mn(e, t, n) {
|
|
|
2419
2419
|
actions: Array.from(a)
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
|
-
const Dn = Object.values(
|
|
2422
|
+
const Dn = Object.values(Ts), Ma = {
|
|
2423
2423
|
read: "View",
|
|
2424
2424
|
create: "Duplicate",
|
|
2425
2425
|
update: "Edit"
|
|
@@ -2431,45 +2431,45 @@ function Da(e, t, n, s) {
|
|
|
2431
2431
|
for (const G of t.value) {
|
|
2432
2432
|
const V = G.category;
|
|
2433
2433
|
if (!V) continue;
|
|
2434
|
-
const
|
|
2434
|
+
const B = G.subject;
|
|
2435
2435
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = d(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2436
2436
|
continue;
|
|
2437
2437
|
m.has(V) || m.set(V, []);
|
|
2438
|
-
const J = x.get(
|
|
2439
|
-
x.set(
|
|
2440
|
-
label: o(`permissionSet.permissionLabels.${
|
|
2441
|
-
value:
|
|
2442
|
-
optionKey: `${
|
|
2443
|
-
}), E.has(
|
|
2438
|
+
const J = x.get(B) ?? 0;
|
|
2439
|
+
x.set(B, J + 1), m.get(V).push({
|
|
2440
|
+
label: o(`permissionSet.permissionLabels.${B}`, G.label),
|
|
2441
|
+
value: B,
|
|
2442
|
+
optionKey: `${B}::${J}`
|
|
2443
|
+
}), E.has(B) || E.set(B, G);
|
|
2444
2444
|
}
|
|
2445
2445
|
return [...m.keys()].sort((G, V) => {
|
|
2446
|
-
const
|
|
2447
|
-
return
|
|
2446
|
+
const B = Dn.indexOf(G), J = Dn.indexOf(V);
|
|
2447
|
+
return B === -1 && J === -1 ? G.localeCompare(V) : B === -1 ? 1 : J === -1 ? -1 : B - J;
|
|
2448
2448
|
}).map((G) => {
|
|
2449
|
-
const V = m.get(G),
|
|
2449
|
+
const V = m.get(G), B = o(`permissionSet.categoryLabels.${G}`, G), J = /* @__PURE__ */ new Map();
|
|
2450
2450
|
for (const te of V) {
|
|
2451
|
-
const
|
|
2452
|
-
|
|
2451
|
+
const ve = E.get(te.value);
|
|
2452
|
+
ve && J.set(te.value, ve.actions);
|
|
2453
2453
|
}
|
|
2454
2454
|
const ae = V.some((te) => {
|
|
2455
|
-
const
|
|
2456
|
-
return
|
|
2455
|
+
const ve = J.get(te.value);
|
|
2456
|
+
return ve && ve.length > 1;
|
|
2457
2457
|
}), Q = ae ? [
|
|
2458
2458
|
...new Set(
|
|
2459
2459
|
V.flatMap((te) => J.get(te.value) ?? []).filter((te) => te !== "manage")
|
|
2460
2460
|
)
|
|
2461
2461
|
] : [], re = /* @__PURE__ */ new Map();
|
|
2462
2462
|
for (const te of e.value)
|
|
2463
|
-
V.some((
|
|
2463
|
+
V.some((ve) => ve.value === te.subject) && !te.inverted && re.set(te.subject, new Set(te.actions));
|
|
2464
2464
|
const ce = ae ? e.value.filter(
|
|
2465
|
-
(te) => V.some((
|
|
2466
|
-
).map((te) => te.subject) : e.value.filter((te) => V.some((
|
|
2467
|
-
var
|
|
2468
|
-
return (
|
|
2465
|
+
(te) => V.some((ve) => ve.value === te.subject) && !te.inverted && te.actions.includes("manage")
|
|
2466
|
+
).map((te) => te.subject) : e.value.filter((te) => V.some((ve) => ve.value === te.subject) && !te.inverted).map((te) => te.subject), q = V.find((te) => {
|
|
2467
|
+
var ve;
|
|
2468
|
+
return (ve = E.get(te.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2469
2469
|
}), _e = (q == null ? void 0 : q.value) ?? null, Ee = _e ? re.get(_e) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Pe = Ee.has("manage");
|
|
2470
2470
|
return {
|
|
2471
2471
|
category: G,
|
|
2472
|
-
label:
|
|
2472
|
+
label: B,
|
|
2473
2473
|
options: V,
|
|
2474
2474
|
selectedSubjects: ce,
|
|
2475
2475
|
isMultiAction: ae,
|
|
@@ -2486,13 +2486,13 @@ function Da(e, t, n, s) {
|
|
|
2486
2486
|
const x = u.value.find((Q) => Q.category === m), U = (x == null ? void 0 : x.options) ?? [], j = new Set(U.map((Q) => Q.value)), G = new Set(E), V = /* @__PURE__ */ new Map();
|
|
2487
2487
|
for (const Q of e.value)
|
|
2488
2488
|
j.has(Q.subject) && !Q.inverted && V.set(Q.subject, Q.conditions);
|
|
2489
|
-
const
|
|
2489
|
+
const B = x != null && x.coverSubject ? V.get(x.coverSubject) : void 0, J = /* @__PURE__ */ new Set(), ae = t.value.flatMap(
|
|
2490
2490
|
({ category: Q, showByFeatureFlag: re, isCategoryCover: ce, ...q }) => {
|
|
2491
2491
|
const _e = q.subject;
|
|
2492
2492
|
if (!G.has(_e) || J.has(_e)) return [];
|
|
2493
2493
|
J.add(_e);
|
|
2494
2494
|
let Ee;
|
|
2495
|
-
return V.has(_e) ? Ee = V.get(_e) : x != null && x.coverSubject && _e !== x.coverSubject && (Ee =
|
|
2495
|
+
return V.has(_e) ? Ee = V.get(_e) : x != null && x.coverSubject && _e !== x.coverSubject && (Ee = B), [
|
|
2496
2496
|
{ ...q, ...Ee !== void 0 && { conditions: Ee } }
|
|
2497
2497
|
];
|
|
2498
2498
|
}
|
|
@@ -2503,12 +2503,12 @@ function Da(e, t, n, s) {
|
|
|
2503
2503
|
]);
|
|
2504
2504
|
}
|
|
2505
2505
|
function h(m, E) {
|
|
2506
|
-
return w(m, E) ||
|
|
2506
|
+
return w(m, E) || i(m, E);
|
|
2507
2507
|
}
|
|
2508
2508
|
function y(m) {
|
|
2509
2509
|
return m.options.length > 0 && m.options.every((E) => h(m, E.value));
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function T(m) {
|
|
2512
2512
|
return m.options.length === 0 || y(m) ? !1 : m.options.some(
|
|
2513
2513
|
(E) => h(m, E.value) || D(m, E.value).length > 0
|
|
2514
2514
|
);
|
|
@@ -2519,10 +2519,10 @@ function Da(e, t, n, s) {
|
|
|
2519
2519
|
s("update:model-value", x);
|
|
2520
2520
|
else {
|
|
2521
2521
|
const U = /* @__PURE__ */ new Map();
|
|
2522
|
-
for (const
|
|
2523
|
-
E.has(
|
|
2522
|
+
for (const B of e.value)
|
|
2523
|
+
E.has(B.subject) && !B.inverted && U.set(B.subject, B.conditions);
|
|
2524
2524
|
const j = m.coverSubject ? U.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), V = t.value.flatMap(
|
|
2525
|
-
({ category:
|
|
2525
|
+
({ category: B, showByFeatureFlag: J, isCategoryCover: ae, ...Q }) => {
|
|
2526
2526
|
const re = Q.subject;
|
|
2527
2527
|
if (!E.has(re) || G.has(re)) return [];
|
|
2528
2528
|
G.add(re);
|
|
@@ -2542,11 +2542,11 @@ function Da(e, t, n, s) {
|
|
|
2542
2542
|
function D(m, E) {
|
|
2543
2543
|
const x = m.permissionActionsMap.get(E);
|
|
2544
2544
|
return x ? x.filter((j) => j !== "manage").filter(
|
|
2545
|
-
(j) =>
|
|
2545
|
+
(j) => S(m, E, j) || v(m, E, j)
|
|
2546
2546
|
) : [];
|
|
2547
2547
|
}
|
|
2548
2548
|
function R(m, E) {
|
|
2549
|
-
return
|
|
2549
|
+
return i(m, E) ? !1 : !w(m, E) && D(m, E).length > 0;
|
|
2550
2550
|
}
|
|
2551
2551
|
function F(m, E) {
|
|
2552
2552
|
if (!m.coverSubject || E === m.coverSubject) return;
|
|
@@ -2563,10 +2563,10 @@ function Da(e, t, n, s) {
|
|
|
2563
2563
|
category: j,
|
|
2564
2564
|
showByFeatureFlag: G,
|
|
2565
2565
|
isCategoryCover: V,
|
|
2566
|
-
...
|
|
2566
|
+
...B
|
|
2567
2567
|
} = U, J = F(m, E), ae = e.value.filter((Q) => Q.subject !== E);
|
|
2568
2568
|
ae.push({
|
|
2569
|
-
...
|
|
2569
|
+
...B,
|
|
2570
2570
|
...J !== void 0 && { conditions: J }
|
|
2571
2571
|
}), s("update:model-value", ae);
|
|
2572
2572
|
} else
|
|
@@ -2579,14 +2579,14 @@ function Da(e, t, n, s) {
|
|
|
2579
2579
|
const x = m.permissionActionsMap.get(E);
|
|
2580
2580
|
return x ? x.some((U) => U !== "manage") : !1;
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function S(m, E, x) {
|
|
2583
2583
|
const U = m.selectedActionsMap.get(E);
|
|
2584
2584
|
return U ? U.has(x) : !1;
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function i(m, E) {
|
|
2587
2587
|
return !m.coverSubject || E === m.coverSubject ? !1 : m.coverCoversAll;
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function v(m, E, x) {
|
|
2590
2590
|
return !m.coverSubject || E === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(x);
|
|
2591
2591
|
}
|
|
2592
2592
|
function g(m, E, x) {
|
|
@@ -2597,13 +2597,13 @@ function Da(e, t, n, s) {
|
|
|
2597
2597
|
const U = [...e.value], j = U.findIndex((V) => V.subject === m && !V.inverted);
|
|
2598
2598
|
if (x)
|
|
2599
2599
|
if (j >= 0) {
|
|
2600
|
-
const V = { ...U[j] },
|
|
2601
|
-
|
|
2600
|
+
const V = { ...U[j] }, B = new Set(V.actions);
|
|
2601
|
+
B.add(E), V.actions = Array.from(B), U[j] = V;
|
|
2602
2602
|
} else {
|
|
2603
2603
|
const V = t.value.find((q) => q.subject === m);
|
|
2604
2604
|
if (!V) return;
|
|
2605
2605
|
const {
|
|
2606
|
-
category:
|
|
2606
|
+
category: B,
|
|
2607
2607
|
showByFeatureFlag: J,
|
|
2608
2608
|
isCategoryCover: ae,
|
|
2609
2609
|
...Q
|
|
@@ -2617,8 +2617,8 @@ function Da(e, t, n, s) {
|
|
|
2617
2617
|
});
|
|
2618
2618
|
}
|
|
2619
2619
|
else if (j >= 0) {
|
|
2620
|
-
const V = { ...U[j] },
|
|
2621
|
-
|
|
2620
|
+
const V = { ...U[j] }, B = V.actions.filter((J) => J !== E);
|
|
2621
|
+
B.length === 0 ? U.splice(j, 1) : (V.actions = B, U[j] = V);
|
|
2622
2622
|
}
|
|
2623
2623
|
const G = t.value.find((V) => V.subject === m);
|
|
2624
2624
|
G && Mn(U, m, G.actions), s("update:model-value", U);
|
|
@@ -2628,16 +2628,16 @@ function Da(e, t, n, s) {
|
|
|
2628
2628
|
(U) => g(m, U.value, E)
|
|
2629
2629
|
);
|
|
2630
2630
|
return x.length === 0 ? !1 : x.every(
|
|
2631
|
-
(U) =>
|
|
2631
|
+
(U) => S(m, U.value, E) || v(m, U.value, E)
|
|
2632
2632
|
);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2634
|
+
function L(m, E) {
|
|
2635
2635
|
const x = m.options.filter(
|
|
2636
2636
|
(j) => g(m, j.value, E)
|
|
2637
2637
|
);
|
|
2638
2638
|
if (x.length === 0) return !1;
|
|
2639
2639
|
const U = x.filter(
|
|
2640
|
-
(j) =>
|
|
2640
|
+
(j) => S(m, j.value, E) || v(m, j.value, E)
|
|
2641
2641
|
).length;
|
|
2642
2642
|
return U > 0 && U < x.length;
|
|
2643
2643
|
}
|
|
@@ -2671,8 +2671,8 @@ function Da(e, t, n, s) {
|
|
|
2671
2671
|
const J = { ...U[V] }, ae = J.actions.filter((Q) => Q !== E);
|
|
2672
2672
|
ae.length === 0 ? U.splice(V, 1) : (J.actions = ae, U[V] = J);
|
|
2673
2673
|
}
|
|
2674
|
-
const
|
|
2675
|
-
|
|
2674
|
+
const B = t.value.find((J) => J.subject === G);
|
|
2675
|
+
B && Mn(U, G, B.actions);
|
|
2676
2676
|
}
|
|
2677
2677
|
s("update:model-value", U);
|
|
2678
2678
|
}
|
|
@@ -2684,19 +2684,19 @@ function Da(e, t, n, s) {
|
|
|
2684
2684
|
categoryGroups: u,
|
|
2685
2685
|
toggleCategory: c,
|
|
2686
2686
|
isAllManageChecked: y,
|
|
2687
|
-
isAllManageIndeterminate:
|
|
2687
|
+
isAllManageIndeterminate: T,
|
|
2688
2688
|
toggleAllManage: N,
|
|
2689
2689
|
isManageChecked: w,
|
|
2690
2690
|
isManageIndeterminate: R,
|
|
2691
2691
|
toggleManage: f,
|
|
2692
2692
|
hasNonManageActions: p,
|
|
2693
|
-
isActionChecked:
|
|
2694
|
-
isRowFullyCoveredByCover:
|
|
2695
|
-
isActionCoveredByCover:
|
|
2693
|
+
isActionChecked: S,
|
|
2694
|
+
isRowFullyCoveredByCover: i,
|
|
2695
|
+
isActionCoveredByCover: v,
|
|
2696
2696
|
permissionDefinesAction: g,
|
|
2697
2697
|
toggleAction: _,
|
|
2698
2698
|
isAllActionChecked: M,
|
|
2699
|
-
isAllActionIndeterminate:
|
|
2699
|
+
isAllActionIndeterminate: L,
|
|
2700
2700
|
toggleAllAction: $,
|
|
2701
2701
|
actionLabel: W
|
|
2702
2702
|
};
|
|
@@ -2729,7 +2729,7 @@ const wa = { class: "flex flex-col gap-16" }, Fa = { class: "fm-typo-en-title-sm
|
|
|
2729
2729
|
isAllManageIndeterminate: c,
|
|
2730
2730
|
toggleAllManage: h,
|
|
2731
2731
|
isManageChecked: y,
|
|
2732
|
-
isManageIndeterminate:
|
|
2732
|
+
isManageIndeterminate: T,
|
|
2733
2733
|
toggleManage: N,
|
|
2734
2734
|
isActionChecked: w,
|
|
2735
2735
|
isRowFullyCoveredByCover: D,
|
|
@@ -2737,60 +2737,60 @@ const wa = { class: "flex flex-col gap-16" }, Fa = { class: "fm-typo-en-title-sm
|
|
|
2737
2737
|
permissionDefinesAction: F,
|
|
2738
2738
|
toggleAction: f,
|
|
2739
2739
|
isAllActionChecked: p,
|
|
2740
|
-
isAllActionIndeterminate:
|
|
2741
|
-
toggleAllAction:
|
|
2742
|
-
actionLabel:
|
|
2740
|
+
isAllActionIndeterminate: S,
|
|
2741
|
+
toggleAllAction: i,
|
|
2742
|
+
actionLabel: v
|
|
2743
2743
|
} = Da(
|
|
2744
2744
|
en(n, "modelValue"),
|
|
2745
2745
|
a,
|
|
2746
2746
|
en(n, "excludedSubjects"),
|
|
2747
|
-
(M,
|
|
2747
|
+
(M, L) => s("update:model-value", L)
|
|
2748
2748
|
);
|
|
2749
2749
|
function g(M) {
|
|
2750
|
-
const
|
|
2751
|
-
return
|
|
2750
|
+
const L = M.selectedSubjects.length;
|
|
2751
|
+
return L === 0 ? "" : o("team.memberForm.permissions.allowedCount", { count: L });
|
|
2752
2752
|
}
|
|
2753
|
-
function _(M,
|
|
2754
|
-
return y(M,
|
|
2755
|
-
($) => F(M,
|
|
2753
|
+
function _(M, L) {
|
|
2754
|
+
return y(M, L) || D(M, L) ? !0 : M.actionColumns.some(
|
|
2755
|
+
($) => F(M, L, $) && (w(M, L, $) || R(M, L, $))
|
|
2756
2756
|
);
|
|
2757
2757
|
}
|
|
2758
|
-
return (M,
|
|
2758
|
+
return (M, L) => {
|
|
2759
2759
|
const $ = Fe("FmCheckbox");
|
|
2760
2760
|
return z(), ue("div", wa, [
|
|
2761
|
-
(z(!0), ue(
|
|
2761
|
+
(z(!0), ue(Le, null, Ce(H(d), (W) => (z(), De(Xt, {
|
|
2762
2762
|
key: W.category,
|
|
2763
2763
|
subtitle: g(W)
|
|
2764
2764
|
}, {
|
|
2765
|
-
title:
|
|
2766
|
-
|
|
2765
|
+
title: be(() => [
|
|
2766
|
+
le("p", Fa, ke(W.label), 1)
|
|
2767
2767
|
]),
|
|
2768
|
-
default:
|
|
2769
|
-
|
|
2770
|
-
|
|
2768
|
+
default: be(() => [
|
|
2769
|
+
le("div", ja, [
|
|
2770
|
+
le("div", {
|
|
2771
2771
|
class: "grid items-center px-12 py-8",
|
|
2772
2772
|
style: Qe({
|
|
2773
2773
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${W.actionColumns.length + 1}, 80px)`
|
|
2774
2774
|
})
|
|
2775
2775
|
}, [
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
(z(!0), ue(
|
|
2776
|
+
L[0] || (L[0] = le("div", null, null, -1)),
|
|
2777
|
+
le("div", Pa, ke(H(o)("team.memberForm.permissions.columnManage")), 1),
|
|
2778
|
+
(z(!0), ue(Le, null, Ce(W.actionColumns, (m) => (z(), ue("div", {
|
|
2779
2779
|
key: `header-${m}`,
|
|
2780
2780
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2781
|
-
},
|
|
2781
|
+
}, ke(H(v)(m)), 1))), 128))
|
|
2782
2782
|
], 4),
|
|
2783
|
-
|
|
2783
|
+
le("div", {
|
|
2784
2784
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2785
2785
|
style: Qe({
|
|
2786
2786
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${W.actionColumns.length + 1}, 80px)`
|
|
2787
2787
|
})
|
|
2788
2788
|
}, [
|
|
2789
|
-
|
|
2789
|
+
le("div", {
|
|
2790
2790
|
class: "cursor-pointer font-semibold",
|
|
2791
2791
|
onClick: (m) => !e.disable && H(h)(W)
|
|
2792
|
-
},
|
|
2793
|
-
|
|
2792
|
+
}, ke(H(o)("team.labels.all")), 9, Ua),
|
|
2793
|
+
le("div", xa, [
|
|
2794
2794
|
fe($, {
|
|
2795
2795
|
"model-value": H(u)(W),
|
|
2796
2796
|
indeterminate: H(c)(W),
|
|
@@ -2801,35 +2801,35 @@ const wa = { class: "flex flex-col gap-16" }, Fa = { class: "fm-typo-en-title-sm
|
|
|
2801
2801
|
"onUpdate:modelValue": (m) => H(h)(W)
|
|
2802
2802
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2803
2803
|
]),
|
|
2804
|
-
(z(!0), ue(
|
|
2804
|
+
(z(!0), ue(Le, null, Ce(W.actionColumns, (m) => (z(), ue("div", {
|
|
2805
2805
|
key: `all-${m}`,
|
|
2806
2806
|
class: "flex justify-center"
|
|
2807
2807
|
}, [
|
|
2808
2808
|
fe($, {
|
|
2809
2809
|
"model-value": H(p)(W, m),
|
|
2810
|
-
indeterminate: H(
|
|
2810
|
+
indeterminate: H(S)(W, m),
|
|
2811
2811
|
value: m,
|
|
2812
2812
|
disabled: e.disable,
|
|
2813
2813
|
size: "sm",
|
|
2814
2814
|
dense: "",
|
|
2815
|
-
"onUpdate:modelValue": (E) => H(
|
|
2815
|
+
"onUpdate:modelValue": (E) => H(i)(W, m, E)
|
|
2816
2816
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2817
2817
|
]))), 128))
|
|
2818
2818
|
], 4),
|
|
2819
|
-
|
|
2820
|
-
(z(!0), ue(
|
|
2819
|
+
L[1] || (L[1] = le("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2820
|
+
(z(!0), ue(Le, null, Ce(W.options, (m) => (z(), ue("div", {
|
|
2821
2821
|
key: m.optionKey,
|
|
2822
2822
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2823
2823
|
style: Qe({
|
|
2824
2824
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${W.actionColumns.length + 1}, 80px)`
|
|
2825
2825
|
})
|
|
2826
2826
|
}, [
|
|
2827
|
-
|
|
2828
|
-
|
|
2827
|
+
le("div", Va, [
|
|
2828
|
+
le("span", {
|
|
2829
2829
|
class: "block truncate cursor-pointer",
|
|
2830
2830
|
title: m.label,
|
|
2831
2831
|
onClick: (E) => !e.disable && !H(D)(W, m.value) && H(N)(W, m.value, !H(y)(W, m.value))
|
|
2832
|
-
},
|
|
2832
|
+
}, ke(m.label), 9, Wa),
|
|
2833
2833
|
Ae(M.$slots, `checkbox-${m.value}-append`, {
|
|
2834
2834
|
option: m,
|
|
2835
2835
|
isEffectiveSelected: _(W, m.value),
|
|
@@ -2841,17 +2841,17 @@ const wa = { class: "flex flex-col gap-16" }, Fa = { class: "fm-typo-en-title-sm
|
|
|
2841
2841
|
isCoveredByCover: H(D)(W, m.value) || W.actionColumns.some((E) => H(R)(W, m.value, E))
|
|
2842
2842
|
})
|
|
2843
2843
|
]),
|
|
2844
|
-
|
|
2844
|
+
le("div", Ga, [
|
|
2845
2845
|
fe($, {
|
|
2846
2846
|
"model-value": H(y)(W, m.value) || H(D)(W, m.value),
|
|
2847
2847
|
value: m.value,
|
|
2848
2848
|
disabled: e.disable || H(D)(W, m.value),
|
|
2849
|
-
indeterminate: H(
|
|
2849
|
+
indeterminate: H(T)(W, m.value),
|
|
2850
2850
|
size: "sm",
|
|
2851
2851
|
"onUpdate:modelValue": (E) => H(N)(W, m.value, E)
|
|
2852
2852
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2853
2853
|
]),
|
|
2854
|
-
(z(!0), ue(
|
|
2854
|
+
(z(!0), ue(Le, null, Ce(W.actionColumns, (E) => (z(), ue("div", {
|
|
2855
2855
|
key: `${m.optionKey}-${E}`,
|
|
2856
2856
|
class: "flex justify-center"
|
|
2857
2857
|
}, [
|
|
@@ -2872,7 +2872,7 @@ const wa = { class: "flex flex-col gap-16" }, Fa = { class: "fm-typo-en-title-sm
|
|
|
2872
2872
|
]);
|
|
2873
2873
|
};
|
|
2874
2874
|
}
|
|
2875
|
-
}),
|
|
2875
|
+
}), Za = { class: "space-y-16" }, Ba = {
|
|
2876
2876
|
key: 0,
|
|
2877
2877
|
class: "flex fm-typo-en-title-sm-600"
|
|
2878
2878
|
}, Xa = {
|
|
@@ -2896,17 +2896,17 @@ const wa = { class: "flex flex-col gap-16" }, Fa = { class: "fm-typo-en-title-sm
|
|
|
2896
2896
|
},
|
|
2897
2897
|
setup(e) {
|
|
2898
2898
|
const t = e;
|
|
2899
|
-
return (n, s) => (z(), ue("div",
|
|
2899
|
+
return (n, s) => (z(), ue("div", Za, [
|
|
2900
2900
|
Ae(n.$slots, "top", {}, () => [
|
|
2901
|
-
t.title ? (z(), ue("div",
|
|
2902
|
-
|
|
2901
|
+
t.title ? (z(), ue("div", Ba, [
|
|
2902
|
+
le("div", null, [
|
|
2903
2903
|
t.required ? (z(), ue("span", Xa, "*")) : Re("", !0),
|
|
2904
|
-
fs(
|
|
2904
|
+
fs(ke(t.title), 1)
|
|
2905
2905
|
]),
|
|
2906
2906
|
Ae(n.$slots, "title-right")
|
|
2907
2907
|
])) : Re("", !0)
|
|
2908
2908
|
]),
|
|
2909
|
-
|
|
2909
|
+
le("div", Ha, [
|
|
2910
2910
|
Ae(n.$slots, "default")
|
|
2911
2911
|
])
|
|
2912
2912
|
]));
|
|
@@ -2922,7 +2922,7 @@ function Ja(e, t) {
|
|
|
2922
2922
|
const Ka = { class: "col flex items-center" }, za = {
|
|
2923
2923
|
key: 1,
|
|
2924
2924
|
class: "q-pa-sm form-error-message text-error"
|
|
2925
|
-
},
|
|
2925
|
+
}, ls = /* @__PURE__ */ je({
|
|
2926
2926
|
__name: "CheckboxInput",
|
|
2927
2927
|
props: {
|
|
2928
2928
|
options: {
|
|
@@ -2982,7 +2982,7 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
2982
2982
|
setup(e, { emit: t }) {
|
|
2983
2983
|
const n = e, s = t, { t: o } = nt(), a = dt(!1), d = _s(), u = ee(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), c = `checkbox-${Ja(6)}`, h = ee(() => u.value !== !0), y = ee(
|
|
2984
2984
|
() => n.modelValue.filter((R) => n.options.some((F) => F.value === R))
|
|
2985
|
-
),
|
|
2985
|
+
), T = ee(
|
|
2986
2986
|
() => typeof n.showAllToggle == "boolean" ? o("team.labels.all") : n.showAllToggle
|
|
2987
2987
|
), N = ee(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2988
2988
|
function w() {
|
|
@@ -3005,37 +3005,37 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3005
3005
|
title: e.title,
|
|
3006
3006
|
required: !1
|
|
3007
3007
|
}, {
|
|
3008
|
-
top:
|
|
3008
|
+
top: be(() => [
|
|
3009
3009
|
Ae(R.$slots, "top")
|
|
3010
3010
|
]),
|
|
3011
|
-
default:
|
|
3011
|
+
default: be(() => [
|
|
3012
3012
|
n.showAllToggle ? (z(), De(f, {
|
|
3013
3013
|
key: 0,
|
|
3014
3014
|
"model-value": N.value,
|
|
3015
3015
|
disabled: e.disable,
|
|
3016
|
-
label:
|
|
3016
|
+
label: T.value,
|
|
3017
3017
|
style: Qe(`margin-bottom: ${n.gutter}px`),
|
|
3018
3018
|
size: "sm",
|
|
3019
3019
|
dense: "",
|
|
3020
|
-
value:
|
|
3020
|
+
value: T.value,
|
|
3021
3021
|
"onUpdate:modelValue": w
|
|
3022
3022
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Re("", !0),
|
|
3023
|
-
(z(!0), ue(
|
|
3023
|
+
(z(!0), ue(Le, null, Ce(e.options, (p, S) => (z(), ue("div", {
|
|
3024
3024
|
key: p.value,
|
|
3025
|
-
style: Qe(`margin-bottom: ${
|
|
3026
|
-
class: ot(
|
|
3025
|
+
style: Qe(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3026
|
+
class: ot(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3027
3027
|
}, [
|
|
3028
|
-
|
|
3028
|
+
le("div", {
|
|
3029
3029
|
class: ot(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3030
3030
|
}, [
|
|
3031
|
-
|
|
3031
|
+
le("div", Ka, [
|
|
3032
3032
|
fe(f, {
|
|
3033
3033
|
"model-value": e.modelValue.includes(p.value),
|
|
3034
3034
|
disabled: e.disable || p.disabled,
|
|
3035
3035
|
size: "sm",
|
|
3036
3036
|
label: p.label,
|
|
3037
3037
|
value: p.label,
|
|
3038
|
-
"onUpdate:modelValue": (
|
|
3038
|
+
"onUpdate:modelValue": (i) => D(p.value, i)
|
|
3039
3039
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3040
3040
|
Ae(R.$slots, `checkbox-${p.key || p.value}-append`, {
|
|
3041
3041
|
option: p,
|
|
@@ -3065,13 +3065,13 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3065
3065
|
})
|
|
3066
3066
|
], 6)) : Re("", !0)
|
|
3067
3067
|
], 6))), 128)),
|
|
3068
|
-
a.value && h.value ? (z(), ue("div", za,
|
|
3068
|
+
a.value && h.value ? (z(), ue("div", za, ke(u.value), 1)) : Re("", !0)
|
|
3069
3069
|
]),
|
|
3070
3070
|
_: 3
|
|
3071
3071
|
}, 8, ["title"]);
|
|
3072
3072
|
};
|
|
3073
3073
|
}
|
|
3074
|
-
}), Qa = { class: "fm-typo-en-title-sm-600" },
|
|
3074
|
+
}), Qa = { class: "fm-typo-en-title-sm-600" }, bt = "includedFuture", wn = /* @__PURE__ */ je({
|
|
3075
3075
|
__name: "ConditionPermission",
|
|
3076
3076
|
props: {
|
|
3077
3077
|
modelValue: {
|
|
@@ -3096,37 +3096,37 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3096
3096
|
const n = e, s = t, { t: o } = nt(), a = ee(() => [
|
|
3097
3097
|
{
|
|
3098
3098
|
label: o("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3099
|
-
value:
|
|
3099
|
+
value: bt,
|
|
3100
3100
|
// Can only be selected if all other options are selected
|
|
3101
3101
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3102
3102
|
},
|
|
3103
3103
|
...n.options.filter(
|
|
3104
3104
|
(y) => y.label.toLocaleLowerCase().includes(h.value.toLocaleLowerCase())
|
|
3105
3105
|
)
|
|
3106
|
-
]), d = ee(() => n.modelValue ? n.modelValue : [
|
|
3107
|
-
const y = d.value.filter((
|
|
3106
|
+
]), d = ee(() => n.modelValue ? n.modelValue : [bt, ...n.options.map((y) => y.value)]), u = ee(() => {
|
|
3107
|
+
const y = d.value.filter((T) => T !== bt).length;
|
|
3108
3108
|
return y === 0 ? "" : o("team.memberForm.permissions.allowedCount", { count: y });
|
|
3109
3109
|
});
|
|
3110
3110
|
function c(y) {
|
|
3111
|
-
const
|
|
3112
|
-
s("update:model-value",
|
|
3111
|
+
const T = y.length === a.value.length;
|
|
3112
|
+
s("update:model-value", T ? null : y.filter((N) => N !== bt));
|
|
3113
3113
|
}
|
|
3114
3114
|
const h = dt("");
|
|
3115
|
-
return (y,
|
|
3115
|
+
return (y, T) => {
|
|
3116
3116
|
const N = Fe("fm-search");
|
|
3117
3117
|
return z(), De(Xt, { subtitle: u.value }, {
|
|
3118
|
-
title:
|
|
3119
|
-
|
|
3118
|
+
title: be(() => [
|
|
3119
|
+
le("p", Qa, ke(H(o)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3120
3120
|
]),
|
|
3121
|
-
default:
|
|
3121
|
+
default: be(() => [
|
|
3122
3122
|
e.options.length > 1 ? (z(), De(N, {
|
|
3123
3123
|
key: 0,
|
|
3124
3124
|
modelValue: h.value,
|
|
3125
|
-
"onUpdate:modelValue":
|
|
3125
|
+
"onUpdate:modelValue": T[0] || (T[0] = (w) => h.value = w),
|
|
3126
3126
|
class: "mt-16",
|
|
3127
3127
|
placeholder: H(o)("team.memberForm.permissions.search", { context: e.context })
|
|
3128
3128
|
}, null, 8, ["modelValue", "placeholder"])) : Re("", !0),
|
|
3129
|
-
fe(
|
|
3129
|
+
fe(ls, {
|
|
3130
3130
|
"model-value": d.value,
|
|
3131
3131
|
options: a.value,
|
|
3132
3132
|
"show-intermediate": !1,
|
|
@@ -3139,7 +3139,7 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3139
3139
|
}, Ke({ _: 2 }, [
|
|
3140
3140
|
Ce(a.value, (w) => ({
|
|
3141
3141
|
name: `checkbox-${w.value}-append`,
|
|
3142
|
-
fn:
|
|
3142
|
+
fn: be(({ option: D }) => [
|
|
3143
3143
|
Ae(y.$slots, `checkbox-${w.value}-append`, { option: D })
|
|
3144
3144
|
])
|
|
3145
3145
|
}))
|
|
@@ -3182,7 +3182,7 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3182
3182
|
...n.roles.map((y) => ({
|
|
3183
3183
|
label: y.name,
|
|
3184
3184
|
value: y._id,
|
|
3185
|
-
disabled: !!h && y.restaurants.every(({ id:
|
|
3185
|
+
disabled: !!h && y.restaurants.every(({ id: T }) => !h.includes(T))
|
|
3186
3186
|
}))
|
|
3187
3187
|
];
|
|
3188
3188
|
}), d = ee(() => n.modelValue ? n.modelValue : [ht, ...n.roles.map((h) => h._id)]), u = ee(() => {
|
|
@@ -3191,14 +3191,14 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3191
3191
|
});
|
|
3192
3192
|
function c(h) {
|
|
3193
3193
|
const y = h.length === a.value.length;
|
|
3194
|
-
s("update:model-value", y ? null : h.filter((
|
|
3194
|
+
s("update:model-value", y ? null : h.filter((T) => T !== ht));
|
|
3195
3195
|
}
|
|
3196
3196
|
return (h, y) => (z(), De(Xt, { subtitle: u.value }, {
|
|
3197
|
-
title:
|
|
3198
|
-
|
|
3197
|
+
title: be(() => [
|
|
3198
|
+
le("p", qa, ke(H(o)("team.memberForm.permissions.roles")), 1)
|
|
3199
3199
|
]),
|
|
3200
|
-
default:
|
|
3201
|
-
fe(
|
|
3200
|
+
default: be(() => [
|
|
3201
|
+
fe(ls, {
|
|
3202
3202
|
"model-value": d.value,
|
|
3203
3203
|
options: a.value,
|
|
3204
3204
|
"show-intermediate": !1,
|
|
@@ -3208,10 +3208,10 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3208
3208
|
class: "mt-16",
|
|
3209
3209
|
"onUpdate:modelValue": c
|
|
3210
3210
|
}, Ke({ _: 2 }, [
|
|
3211
|
-
Ce(a.value, (
|
|
3212
|
-
name: `checkbox-${
|
|
3213
|
-
fn:
|
|
3214
|
-
Ae(h.$slots, `checkbox-${
|
|
3211
|
+
Ce(a.value, (T) => ({
|
|
3212
|
+
name: `checkbox-${T.value}-append`,
|
|
3213
|
+
fn: be(({ option: N }) => [
|
|
3214
|
+
Ae(h.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
3215
3215
|
])
|
|
3216
3216
|
}))
|
|
3217
3217
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3221,7 +3221,7 @@ const Ka = { class: "col flex items-center" }, za = {
|
|
|
3221
3221
|
}
|
|
3222
3222
|
}), to = {
|
|
3223
3223
|
async readWarehouses() {
|
|
3224
|
-
return Os(await
|
|
3224
|
+
return Os(await Ss().get("/warehouses"));
|
|
3225
3225
|
}
|
|
3226
3226
|
};
|
|
3227
3227
|
function Fn(e, t) {
|
|
@@ -3257,16 +3257,16 @@ function no(e, t, n, s) {
|
|
|
3257
3257
|
if (u = u.filter((y) => !(y.subject === c && y.inverted)), !h && !d.has(c)) {
|
|
3258
3258
|
const y = t.find(
|
|
3259
3259
|
(N) => N.subject === c && !N.inverted
|
|
3260
|
-
),
|
|
3261
|
-
|
|
3260
|
+
), T = s(c);
|
|
3261
|
+
T && y && u.push(Pn(T, y.actions, y.conditions));
|
|
3262
3262
|
}
|
|
3263
3263
|
}
|
|
3264
3264
|
for (const c of a) {
|
|
3265
3265
|
if (!o.has(c)) continue;
|
|
3266
3266
|
const h = e.find((D) => D.subject === c && !D.inverted), y = t.find((D) => D.subject === c && !D.inverted);
|
|
3267
3267
|
if (!h || !y) continue;
|
|
3268
|
-
const
|
|
3269
|
-
if (
|
|
3268
|
+
const T = new Set(h.actions), N = new Set(y.actions);
|
|
3269
|
+
if (T.size === N.size && [...T].every((D) => N.has(D)))
|
|
3270
3270
|
continue;
|
|
3271
3271
|
const w = u.findIndex((D) => D.subject === c && !D.inverted);
|
|
3272
3272
|
if (w >= 0)
|
|
@@ -3278,7 +3278,7 @@ function no(e, t, n, s) {
|
|
|
3278
3278
|
const D = s(c);
|
|
3279
3279
|
D && u.push(Pn(D, Array.from(N)));
|
|
3280
3280
|
}
|
|
3281
|
-
|
|
3281
|
+
T.has("manage") && !N.has("manage") && Fn(u, c) && (u = jn(u, c)), !T.has("manage") && N.has("manage") && (u = u.filter((D) => !(D.subject === c && D.inverted)));
|
|
3282
3282
|
}
|
|
3283
3283
|
return u;
|
|
3284
3284
|
}
|
|
@@ -3321,164 +3321,164 @@ function Mt(e, t) {
|
|
|
3321
3321
|
const n = new Set(e.actions);
|
|
3322
3322
|
return n.has(he.Action.manage) ? !0 : t.actions.every((s) => n.has(s));
|
|
3323
3323
|
}
|
|
3324
|
-
function
|
|
3324
|
+
function Zt(e, t) {
|
|
3325
3325
|
const n = Ye(e);
|
|
3326
3326
|
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3327
3327
|
}
|
|
3328
3328
|
function Un(e, t, n) {
|
|
3329
3329
|
return {
|
|
3330
|
-
...
|
|
3330
|
+
...Zt(e, n),
|
|
3331
3331
|
...ze(Ye(t), n)
|
|
3332
3332
|
};
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function lo(e, t, n) {
|
|
3335
3335
|
const s = dt(/* @__PURE__ */ new Set());
|
|
3336
|
-
function o(
|
|
3337
|
-
return Rs(
|
|
3336
|
+
function o(i) {
|
|
3337
|
+
return Rs(i, t.value);
|
|
3338
3338
|
}
|
|
3339
|
-
function a(
|
|
3340
|
-
return t.value.find((
|
|
3339
|
+
function a(i) {
|
|
3340
|
+
return t.value.find((v) => v.subject === i);
|
|
3341
3341
|
}
|
|
3342
|
-
function d(
|
|
3342
|
+
function d(i) {
|
|
3343
3343
|
var g;
|
|
3344
|
-
const
|
|
3345
|
-
return
|
|
3344
|
+
const v = o(i);
|
|
3345
|
+
return v ? (g = a(v)) == null ? void 0 : g.label : void 0;
|
|
3346
3346
|
}
|
|
3347
|
-
function u(
|
|
3348
|
-
return oo(e.value,
|
|
3347
|
+
function u(i) {
|
|
3348
|
+
return oo(e.value, i);
|
|
3349
3349
|
}
|
|
3350
|
-
function c(
|
|
3351
|
-
return ze(Ye(
|
|
3350
|
+
function c(i, v) {
|
|
3351
|
+
return ze(Ye(i), v);
|
|
3352
3352
|
}
|
|
3353
|
-
function h(
|
|
3353
|
+
function h(i, v) {
|
|
3354
3354
|
var M;
|
|
3355
|
-
if (!(((M =
|
|
3356
|
-
const g = o(
|
|
3355
|
+
if (!(((M = v.appliesToActions) == null ? void 0 : M.call(v, i.actions)) ?? !0)) return !1;
|
|
3356
|
+
const g = o(i.subject);
|
|
3357
3357
|
if (!g) return !1;
|
|
3358
3358
|
const _ = u(g);
|
|
3359
|
-
return _ ? Object.keys(c(_,
|
|
3359
|
+
return _ ? Object.keys(c(_, v)).length > 0 : !1;
|
|
3360
3360
|
}
|
|
3361
|
-
function y(
|
|
3362
|
-
if (!h(
|
|
3363
|
-
if (
|
|
3364
|
-
const g = e.value[
|
|
3361
|
+
function y(i, v) {
|
|
3362
|
+
if (!h(i, v) || s.value.has(gt(i.subject, v))) return "custom";
|
|
3363
|
+
if (i.index === null) return "inherit";
|
|
3364
|
+
const g = e.value[i.index], _ = o(i.subject), M = _ ? u(_) : void 0;
|
|
3365
3365
|
if (g && M) {
|
|
3366
|
-
const
|
|
3367
|
-
if (JSON.stringify(
|
|
3366
|
+
const L = ze(Ye(g), v), $ = c(M, v);
|
|
3367
|
+
if (JSON.stringify(L) === JSON.stringify($)) return "inherit";
|
|
3368
3368
|
}
|
|
3369
3369
|
return "custom";
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3372
|
-
if (!
|
|
3373
|
-
const _ = o(
|
|
3371
|
+
function T(i, v, g) {
|
|
3372
|
+
if (!v.summarizeForm) return;
|
|
3373
|
+
const _ = o(i.subject);
|
|
3374
3374
|
if (!_) return;
|
|
3375
3375
|
const M = u(_);
|
|
3376
3376
|
if (!M) return;
|
|
3377
|
-
const
|
|
3378
|
-
return
|
|
3379
|
-
}
|
|
3380
|
-
function N(
|
|
3381
|
-
if (
|
|
3382
|
-
const g = [...e.value], _ = { ...g[
|
|
3383
|
-
if (
|
|
3384
|
-
g.splice(
|
|
3377
|
+
const L = v.fromCondition(c(M, v));
|
|
3378
|
+
return v.summarizeForm(L, { timeZone: g });
|
|
3379
|
+
}
|
|
3380
|
+
function N(i, v) {
|
|
3381
|
+
if (i.index === null) return;
|
|
3382
|
+
const g = [...e.value], _ = { ...g[i.index] }, M = Zt(_, v), L = Object.keys(M).length === 0, $ = o(i.subject), W = $ ? u($) : void 0, m = W ? Mt(W, _) : !1;
|
|
3383
|
+
if (L && m)
|
|
3384
|
+
g.splice(i.index, 1);
|
|
3385
3385
|
else if (W) {
|
|
3386
|
-
const E = Un(_, W,
|
|
3387
|
-
Object.keys(E).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(E), g[
|
|
3386
|
+
const E = Un(_, W, v);
|
|
3387
|
+
Object.keys(E).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(E), g[i.index] = _;
|
|
3388
3388
|
} else
|
|
3389
|
-
|
|
3389
|
+
L ? delete _.conditions : _.conditions = JSON.stringify(M), g[i.index] = _;
|
|
3390
3390
|
n(g);
|
|
3391
3391
|
}
|
|
3392
|
-
function w(
|
|
3393
|
-
const _ = gt(
|
|
3392
|
+
function w(i, v, g) {
|
|
3393
|
+
const _ = gt(i.subject, v);
|
|
3394
3394
|
if (g === "inherit") {
|
|
3395
|
-
const
|
|
3396
|
-
|
|
3395
|
+
const L = new Set(s.value);
|
|
3396
|
+
L.delete(_), s.value = L, N(i, v);
|
|
3397
3397
|
return;
|
|
3398
3398
|
}
|
|
3399
3399
|
const M = new Set(s.value);
|
|
3400
|
-
M.add(_), s.value = M,
|
|
3400
|
+
M.add(_), s.value = M, i.index === null && p(i, v, v.fromCondition(void 0), {
|
|
3401
3401
|
forceCreateRule: !0
|
|
3402
3402
|
});
|
|
3403
3403
|
}
|
|
3404
|
-
function D(
|
|
3405
|
-
const
|
|
3406
|
-
if (!
|
|
3407
|
-
const g = u(
|
|
3404
|
+
function D(i) {
|
|
3405
|
+
const v = o(i);
|
|
3406
|
+
if (!v) return [];
|
|
3407
|
+
const g = u(v);
|
|
3408
3408
|
return (g == null ? void 0 : g.actions) ?? [];
|
|
3409
3409
|
}
|
|
3410
|
-
function R(
|
|
3410
|
+
function R(i, v) {
|
|
3411
3411
|
return e.value.filter((g) => {
|
|
3412
3412
|
if (g.inverted) return !1;
|
|
3413
3413
|
const _ = g.subject;
|
|
3414
|
-
return _ ===
|
|
3414
|
+
return _ === i || o(_) !== i ? !1 : s.value.has(gt(_, v)) ? !0 : Object.keys(ze(Ye(g), v)).length > 0;
|
|
3415
3415
|
});
|
|
3416
3416
|
}
|
|
3417
|
-
function F(
|
|
3418
|
-
const g = `::${
|
|
3417
|
+
function F(i, v) {
|
|
3418
|
+
const g = `::${v.builderKey}`, _ = new Set(s.value);
|
|
3419
3419
|
for (const M of _) {
|
|
3420
3420
|
if (!M.endsWith(g)) continue;
|
|
3421
|
-
const
|
|
3422
|
-
o(
|
|
3421
|
+
const L = M.slice(0, -g.length);
|
|
3422
|
+
o(L) === i && _.delete(M);
|
|
3423
3423
|
}
|
|
3424
3424
|
s.value = _;
|
|
3425
3425
|
}
|
|
3426
|
-
function f(
|
|
3427
|
-
const _ =
|
|
3428
|
-
return
|
|
3429
|
-
if (
|
|
3430
|
-
return M.push(
|
|
3431
|
-
const $ =
|
|
3426
|
+
function f(i, v, g) {
|
|
3427
|
+
const _ = v.subject;
|
|
3428
|
+
return i.reduce((M, L) => {
|
|
3429
|
+
if (L.inverted)
|
|
3430
|
+
return M.push(L), M;
|
|
3431
|
+
const $ = L.subject;
|
|
3432
3432
|
if ($ === _ || o($) !== _)
|
|
3433
|
-
return M.push(
|
|
3434
|
-
if (Mt(
|
|
3433
|
+
return M.push(L), M;
|
|
3434
|
+
if (Mt(v, L) && Object.keys(Zt(L, g)).length === 0)
|
|
3435
3435
|
return M;
|
|
3436
|
-
const m = Un(
|
|
3436
|
+
const m = Un(L, v, g);
|
|
3437
3437
|
if (Object.keys(m).length === 0) {
|
|
3438
|
-
const { conditions: E, ...x } =
|
|
3438
|
+
const { conditions: E, ...x } = L;
|
|
3439
3439
|
M.push(x);
|
|
3440
3440
|
} else
|
|
3441
|
-
M.push({ ...
|
|
3441
|
+
M.push({ ...L, conditions: JSON.stringify(m) });
|
|
3442
3442
|
return M;
|
|
3443
3443
|
}, []);
|
|
3444
3444
|
}
|
|
3445
|
-
function p(
|
|
3445
|
+
function p(i, v, g, _ = {}) {
|
|
3446
3446
|
var U;
|
|
3447
3447
|
const M = [...e.value];
|
|
3448
|
-
let
|
|
3449
|
-
const $ =
|
|
3450
|
-
if (
|
|
3451
|
-
if (
|
|
3452
|
-
const j = M.findIndex((G) => !G.inverted && G.subject ===
|
|
3448
|
+
let L = i.index;
|
|
3449
|
+
const $ = v.toCondition(g), W = Object.keys($).length > 0;
|
|
3450
|
+
if (L === null && !W && !_.forceCreateRule) return;
|
|
3451
|
+
if (L === null) {
|
|
3452
|
+
const j = M.findIndex((G) => !G.inverted && G.subject === i.subject);
|
|
3453
3453
|
if (j !== -1)
|
|
3454
|
-
|
|
3454
|
+
L = j;
|
|
3455
3455
|
else {
|
|
3456
|
-
const G = t.value.find((Q) => Q.subject ===
|
|
3456
|
+
const G = t.value.find((Q) => Q.subject === i.subject);
|
|
3457
3457
|
if (!G) return;
|
|
3458
3458
|
const {
|
|
3459
3459
|
category: V,
|
|
3460
|
-
showByFeatureFlag:
|
|
3460
|
+
showByFeatureFlag: B,
|
|
3461
3461
|
isCategoryCover: J,
|
|
3462
3462
|
...ae
|
|
3463
3463
|
} = G;
|
|
3464
3464
|
M.push({
|
|
3465
3465
|
...ae,
|
|
3466
|
-
actions:
|
|
3467
|
-
}),
|
|
3466
|
+
actions: i.actions.length > 0 ? i.actions : ae.actions
|
|
3467
|
+
}), L = M.length - 1;
|
|
3468
3468
|
}
|
|
3469
3469
|
}
|
|
3470
|
-
const m = { ...M[
|
|
3470
|
+
const m = { ...M[L] };
|
|
3471
3471
|
m.actions = [
|
|
3472
|
-
.../* @__PURE__ */ new Set([...m.actions, ...
|
|
3472
|
+
.../* @__PURE__ */ new Set([...m.actions, ...i.actions])
|
|
3473
3473
|
];
|
|
3474
|
-
const E = Ye(m), x = wt(E, [{ builder:
|
|
3475
|
-
if (Object.keys(x).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(x), M[
|
|
3476
|
-
const j = R(
|
|
3477
|
-
var
|
|
3478
|
-
F(
|
|
3474
|
+
const E = Ye(m), x = wt(E, [{ builder: v, formValue: g }]);
|
|
3475
|
+
if (Object.keys(x).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(x), M[L] = m, rn(i.subject, t.value)) {
|
|
3476
|
+
const j = R(i.subject, v), G = () => {
|
|
3477
|
+
var B;
|
|
3478
|
+
F(i.subject, v), n(f(M, m, v)), (B = _.afterCommit) == null || B.call(_);
|
|
3479
3479
|
}, V = () => {
|
|
3480
|
-
var
|
|
3481
|
-
n(M), (
|
|
3480
|
+
var B;
|
|
3481
|
+
n(M), (B = _.afterCommit) == null || B.call(_);
|
|
3482
3482
|
};
|
|
3483
3483
|
if (j.length === 0) {
|
|
3484
3484
|
G();
|
|
@@ -3489,49 +3489,49 @@ function io(e, t, n) {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
n(M), (U = _.afterCommit) == null || U.call(_);
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3493
|
-
if (
|
|
3492
|
+
function S(i, v, g = {}) {
|
|
3493
|
+
if (v.length === 0) return;
|
|
3494
3494
|
const _ = [...e.value];
|
|
3495
|
-
let M = _.findIndex((j) => !j.inverted && j.subject ===
|
|
3496
|
-
for (const j of
|
|
3495
|
+
let M = _.findIndex((j) => !j.inverted && j.subject === i.subject), L = M === -1 ? void 0 : { ..._[M] }, $ = Ye(L ?? {}) ?? {};
|
|
3496
|
+
for (const j of v) {
|
|
3497
3497
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3498
3498
|
$ = wt($, [{ builder: j.builder, formValue: G }]);
|
|
3499
3499
|
}
|
|
3500
|
-
const W =
|
|
3501
|
-
if (!
|
|
3502
|
-
const j = t.value.find((ae) => ae.subject ===
|
|
3500
|
+
const W = v.some((j) => j.mode === "custom");
|
|
3501
|
+
if (!L && (Object.keys($).length > 0 || W)) {
|
|
3502
|
+
const j = t.value.find((ae) => ae.subject === i.subject);
|
|
3503
3503
|
if (!j) return;
|
|
3504
3504
|
const {
|
|
3505
3505
|
category: G,
|
|
3506
3506
|
showByFeatureFlag: V,
|
|
3507
|
-
isCategoryCover:
|
|
3507
|
+
isCategoryCover: B,
|
|
3508
3508
|
...J
|
|
3509
3509
|
} = j;
|
|
3510
|
-
|
|
3510
|
+
L = {
|
|
3511
3511
|
...J,
|
|
3512
|
-
actions:
|
|
3513
|
-
}, _.push(
|
|
3512
|
+
actions: i.actions.length > 0 ? i.actions : J.actions
|
|
3513
|
+
}, _.push(L), M = _.length - 1;
|
|
3514
3514
|
}
|
|
3515
|
-
if (
|
|
3516
|
-
const j = o(
|
|
3517
|
-
if (!W && Object.keys($).length === 0 && !!G && Mt(G,
|
|
3518
|
-
_.splice(M, 1),
|
|
3515
|
+
if (L) {
|
|
3516
|
+
const j = o(i.subject), G = j ? u(j) : void 0;
|
|
3517
|
+
if (!W && Object.keys($).length === 0 && !!G && Mt(G, L))
|
|
3518
|
+
_.splice(M, 1), L = void 0;
|
|
3519
3519
|
else {
|
|
3520
|
-
if (
|
|
3521
|
-
.../* @__PURE__ */ new Set([...
|
|
3520
|
+
if (L.actions = [
|
|
3521
|
+
.../* @__PURE__ */ new Set([...L.actions, ...i.actions])
|
|
3522
3522
|
], G)
|
|
3523
|
-
for (const
|
|
3524
|
-
|
|
3523
|
+
for (const B of v)
|
|
3524
|
+
B.mode === "inherit" && ($ = {
|
|
3525
3525
|
...$,
|
|
3526
|
-
...ze(Ye(G),
|
|
3526
|
+
...ze(Ye(G), B.builder)
|
|
3527
3527
|
});
|
|
3528
|
-
Object.keys($).length === 0 ? delete
|
|
3528
|
+
Object.keys($).length === 0 ? delete L.conditions : L.conditions = JSON.stringify($), _[M] = L;
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
3531
3531
|
const m = () => {
|
|
3532
3532
|
const j = new Set(s.value);
|
|
3533
|
-
for (const G of
|
|
3534
|
-
const V = gt(
|
|
3533
|
+
for (const G of v) {
|
|
3534
|
+
const V = gt(i.subject, G.builder);
|
|
3535
3535
|
G.mode === "custom" ? j.add(V) : j.delete(V);
|
|
3536
3536
|
}
|
|
3537
3537
|
s.value = j;
|
|
@@ -3539,14 +3539,14 @@ function io(e, t, n) {
|
|
|
3539
3539
|
var G;
|
|
3540
3540
|
m(), n(j), (G = g.afterCommit) == null || G.call(g);
|
|
3541
3541
|
};
|
|
3542
|
-
if (!rn(
|
|
3542
|
+
if (!rn(i.subject, t.value) || !L) {
|
|
3543
3543
|
E(_);
|
|
3544
3544
|
return;
|
|
3545
3545
|
}
|
|
3546
|
-
const x =
|
|
3546
|
+
const x = v.map((j) => j.builder).filter((j) => R(i.subject, j).length > 0), U = () => {
|
|
3547
3547
|
let j = _;
|
|
3548
|
-
for (const G of
|
|
3549
|
-
F(
|
|
3548
|
+
for (const G of v.map((V) => V.builder))
|
|
3549
|
+
F(i.subject, G), j = f(j, L, G);
|
|
3550
3550
|
E(j);
|
|
3551
3551
|
};
|
|
3552
3552
|
if (x.length > 0 && g.onOverridesConflict) {
|
|
@@ -3561,23 +3561,23 @@ function io(e, t, n) {
|
|
|
3561
3561
|
shouldShowInheritToggle: h,
|
|
3562
3562
|
inheritMode: y,
|
|
3563
3563
|
setInheritMode: w,
|
|
3564
|
-
inheritedSummary:
|
|
3564
|
+
inheritedSummary: T,
|
|
3565
3565
|
getEffectiveActions: D,
|
|
3566
3566
|
updateBuilderCondition: p,
|
|
3567
|
-
applyConditionDrafts:
|
|
3567
|
+
applyConditionDrafts: S
|
|
3568
3568
|
};
|
|
3569
3569
|
}
|
|
3570
|
-
const
|
|
3570
|
+
const io = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, uo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, mo = { class: "flex flex-col gap-12 p-16 w-[320px]" }, fo = { class: "fm-typo-en-title-sm-600" }, _o = {
|
|
3571
3571
|
key: 0,
|
|
3572
3572
|
class: "h-px w-full bg-fm-color-neutral-gray-200"
|
|
3573
3573
|
}, po = {
|
|
3574
3574
|
key: 1,
|
|
3575
3575
|
class: "flex flex-col gap-8"
|
|
3576
|
-
},
|
|
3576
|
+
}, vo = {
|
|
3577
3577
|
key: 0,
|
|
3578
3578
|
class: "ml-32",
|
|
3579
3579
|
style: { "font-size": "12px", "line-height": "16px", color: "#8a8f98", "font-weight": "400" }
|
|
3580
|
-
},
|
|
3580
|
+
}, bo = {
|
|
3581
3581
|
key: 0,
|
|
3582
3582
|
class: "ml-32"
|
|
3583
3583
|
}, ho = { class: "flex justify-end pt-8" }, go = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Io = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, yo = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Eo = "condition-form-select-menu", Do = /* @__PURE__ */ je({
|
|
@@ -3597,21 +3597,21 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3597
3597
|
}),
|
|
3598
3598
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3599
3599
|
setup(e, { emit: t }) {
|
|
3600
|
-
const n = ps(e, "modelValue"), s = e, o = t, { t: a } = nt(), d =
|
|
3600
|
+
const n = ps(e, "modelValue"), s = e, o = t, { t: a } = nt(), d = vs(), u = bs(), { breakpoints: c } = hs(), {
|
|
3601
3601
|
fetchCustomReportPermissions: h,
|
|
3602
3602
|
customReportPermissions: y
|
|
3603
|
-
} = gs(),
|
|
3603
|
+
} = gs(), T = ee(() => [
|
|
3604
3604
|
...Wn,
|
|
3605
3605
|
...y.value
|
|
3606
3606
|
]), N = ee(() => {
|
|
3607
|
-
const
|
|
3608
|
-
return ao(
|
|
3607
|
+
const k = d.currentBusiness.value, C = d.currentCountry.value, A = C instanceof Object ? C.code : C;
|
|
3608
|
+
return ao(k, A);
|
|
3609
3609
|
});
|
|
3610
|
-
function w(
|
|
3611
|
-
return
|
|
3610
|
+
function w(k) {
|
|
3611
|
+
return T.value.find((C) => C.subject === k);
|
|
3612
3612
|
}
|
|
3613
|
-
function D(
|
|
3614
|
-
return sn(
|
|
3613
|
+
function D(k, C) {
|
|
3614
|
+
return sn(k).filter(
|
|
3615
3615
|
(A) => {
|
|
3616
3616
|
var r;
|
|
3617
3617
|
return ((r = A.appliesToActions) == null ? void 0 : r.call(A, C)) ?? !0;
|
|
@@ -3619,72 +3619,72 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3619
3619
|
);
|
|
3620
3620
|
}
|
|
3621
3621
|
const R = ee(() => {
|
|
3622
|
-
const
|
|
3622
|
+
const k = T.value.filter((A) => !S.includes(A.subject)).map((A) => A.subject);
|
|
3623
3623
|
return Is(
|
|
3624
3624
|
s.inheritPermissions.map((A) => ({
|
|
3625
3625
|
...A,
|
|
3626
|
-
permissions: A.permissions.filter((r) =>
|
|
3626
|
+
permissions: A.permissions.filter((r) => k.includes(r.subject))
|
|
3627
3627
|
}))
|
|
3628
3628
|
).map((A) => ({
|
|
3629
3629
|
id: A.subject,
|
|
3630
3630
|
setNames: A.setNames
|
|
3631
3631
|
}));
|
|
3632
3632
|
}), F = ee(() => {
|
|
3633
|
-
const
|
|
3633
|
+
const k = s.inheritPermissions.map((C) => ({
|
|
3634
3634
|
...C,
|
|
3635
3635
|
permissions: C.permissions.filter(
|
|
3636
3636
|
(A) => A.subject === he.Subject.Business.inventory_stock
|
|
3637
3637
|
)
|
|
3638
3638
|
}));
|
|
3639
|
-
return
|
|
3640
|
-
|
|
3639
|
+
return St(
|
|
3640
|
+
k,
|
|
3641
3641
|
"warehouseId",
|
|
3642
|
-
|
|
3642
|
+
v.value.map((C) => C._id)
|
|
3643
3643
|
);
|
|
3644
3644
|
}), f = ee(() => {
|
|
3645
|
-
const
|
|
3645
|
+
const k = s.inheritPermissions.map((C) => ({
|
|
3646
3646
|
...C,
|
|
3647
3647
|
permissions: C.permissions.filter(
|
|
3648
3648
|
(A) => A.subject === he.Subject.Restaurant.restaurant
|
|
3649
3649
|
)
|
|
3650
3650
|
}));
|
|
3651
|
-
return
|
|
3652
|
-
|
|
3651
|
+
return St(
|
|
3652
|
+
k,
|
|
3653
3653
|
"restaurantId",
|
|
3654
|
-
|
|
3654
|
+
L.value.map((C) => C._id)
|
|
3655
3655
|
);
|
|
3656
3656
|
}), p = ee(() => {
|
|
3657
|
-
const
|
|
3657
|
+
const k = s.inheritPermissions.map((C) => ({
|
|
3658
3658
|
...C,
|
|
3659
3659
|
permissions: C.permissions.filter((A) => A.subject === he.Subject.Business.role)
|
|
3660
3660
|
}));
|
|
3661
|
-
return
|
|
3662
|
-
|
|
3661
|
+
return St(
|
|
3662
|
+
k,
|
|
3663
3663
|
"roleId",
|
|
3664
3664
|
$.value.map((C) => C._id)
|
|
3665
3665
|
);
|
|
3666
|
-
}),
|
|
3666
|
+
}), S = [
|
|
3667
3667
|
he.Subject.Business.restaurant,
|
|
3668
3668
|
he.Subject.Business.role,
|
|
3669
3669
|
he.Subject.Restaurant.restaurant,
|
|
3670
3670
|
he.Subject.Business.inventory_stock
|
|
3671
|
-
],
|
|
3671
|
+
], i = ee(() => {
|
|
3672
3672
|
var C;
|
|
3673
|
-
const
|
|
3673
|
+
const k = (C = n.value) == null ? void 0 : C.find(
|
|
3674
3674
|
(A) => A.subject === he.Subject.Business.inventory_stock
|
|
3675
3675
|
);
|
|
3676
|
-
return
|
|
3677
|
-
}),
|
|
3678
|
-
label:
|
|
3679
|
-
value:
|
|
3676
|
+
return k ? k.conditions ? JSON.parse(k.conditions).warehouseId.$in : null : [];
|
|
3677
|
+
}), v = dt([]), g = ee(() => v.value.map((k) => ({
|
|
3678
|
+
label: k.profile.name,
|
|
3679
|
+
value: k._id
|
|
3680
3680
|
})));
|
|
3681
|
-
function _(
|
|
3682
|
-
const C = M(n.value,
|
|
3681
|
+
function _(k) {
|
|
3682
|
+
const C = M(n.value, k);
|
|
3683
3683
|
n.value = C;
|
|
3684
3684
|
}
|
|
3685
|
-
function M(
|
|
3685
|
+
function M(k, C) {
|
|
3686
3686
|
let A = It(
|
|
3687
|
-
|
|
3687
|
+
k.filter((r) => r.subject !== he.Subject.Business.inventory_stock)
|
|
3688
3688
|
);
|
|
3689
3689
|
if (!C || C.length > 0) {
|
|
3690
3690
|
const r = {
|
|
@@ -3695,28 +3695,28 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3695
3695
|
}
|
|
3696
3696
|
return A;
|
|
3697
3697
|
}
|
|
3698
|
-
const { restaurants:
|
|
3699
|
-
label: `${
|
|
3700
|
-
value:
|
|
3701
|
-
}))), m = ee(() =>
|
|
3702
|
-
function x(
|
|
3703
|
-
const C = j(n.value,
|
|
3698
|
+
const { restaurants: L } = d, $ = Ls().roles, W = ee(() => L.value.map((k) => ({
|
|
3699
|
+
label: `${k.profile.code ? k.profile.code + "-" : ""}${k.profile.name}`,
|
|
3700
|
+
value: k._id
|
|
3701
|
+
}))), m = ee(() => L.value.reduce((k, C) => (k[C._id] = $.value.filter((A) => A.restaurants.some((r) => r.id === C._id)).map((A) => A._id), k), {})), E = ee(() => ys(n.value));
|
|
3702
|
+
function x(k) {
|
|
3703
|
+
const C = j(n.value, k);
|
|
3704
3704
|
n.value = C;
|
|
3705
3705
|
}
|
|
3706
3706
|
const U = ee(() => Es(n.value));
|
|
3707
|
-
function j(
|
|
3707
|
+
function j(k, C) {
|
|
3708
3708
|
var r;
|
|
3709
3709
|
let A = It(
|
|
3710
|
-
|
|
3711
|
-
(
|
|
3710
|
+
k.filter(
|
|
3711
|
+
(l) => l.subject !== he.Subject.Business.restaurant && l.subject !== he.Subject.Restaurant.restaurant
|
|
3712
3712
|
)
|
|
3713
3713
|
);
|
|
3714
3714
|
if (!C || C.length > 0) {
|
|
3715
3715
|
const {
|
|
3716
|
-
category:
|
|
3716
|
+
category: l,
|
|
3717
3717
|
showByFeatureFlag: I,
|
|
3718
3718
|
...P
|
|
3719
|
-
} =
|
|
3719
|
+
} = ks.restaurant;
|
|
3720
3720
|
A.push(P);
|
|
3721
3721
|
const Y = {
|
|
3722
3722
|
actions: [he.Action.manage],
|
|
@@ -3725,23 +3725,23 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3725
3725
|
C && (Y.conditions = JSON.stringify({ restaurantId: { $in: C } })), A.push(Y);
|
|
3726
3726
|
}
|
|
3727
3727
|
if (C) {
|
|
3728
|
-
const
|
|
3728
|
+
const l = [
|
|
3729
3729
|
...new Set(C.map((P) => m.value[P]).flatMap((P) => P))
|
|
3730
3730
|
], I = $.value.map((P) => P._id);
|
|
3731
|
-
|
|
3731
|
+
l.length !== I.length && (A = V(
|
|
3732
3732
|
A,
|
|
3733
|
-
(r = U.value || I) == null ? void 0 : r.filter((P) =>
|
|
3733
|
+
(r = U.value || I) == null ? void 0 : r.filter((P) => l.includes(P))
|
|
3734
3734
|
));
|
|
3735
3735
|
}
|
|
3736
3736
|
return A;
|
|
3737
3737
|
}
|
|
3738
|
-
function G(
|
|
3739
|
-
const C = V(n.value,
|
|
3738
|
+
function G(k) {
|
|
3739
|
+
const C = V(n.value, k);
|
|
3740
3740
|
n.value = C;
|
|
3741
3741
|
}
|
|
3742
|
-
function V(
|
|
3742
|
+
function V(k, C) {
|
|
3743
3743
|
let A = It(
|
|
3744
|
-
|
|
3744
|
+
k.filter((r) => r.subject !== he.Subject.Business.role)
|
|
3745
3745
|
);
|
|
3746
3746
|
if (C && C.length > 0) {
|
|
3747
3747
|
const r = {
|
|
@@ -3755,11 +3755,11 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3755
3755
|
}
|
|
3756
3756
|
xn(async () => {
|
|
3757
3757
|
await Promise.all([
|
|
3758
|
-
to.readWarehouses().then((
|
|
3758
|
+
to.readWarehouses().then((k) => v.value = k),
|
|
3759
3759
|
h()
|
|
3760
3760
|
]);
|
|
3761
3761
|
});
|
|
3762
|
-
const
|
|
3762
|
+
const B = ee(() => Gn(
|
|
3763
3763
|
n.value,
|
|
3764
3764
|
Yn
|
|
3765
3765
|
).filter((A) => {
|
|
@@ -3769,135 +3769,135 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3769
3769
|
if (A.inverted) return A;
|
|
3770
3770
|
const r = A.actions;
|
|
3771
3771
|
if (!r.includes("manage")) return A;
|
|
3772
|
-
const
|
|
3773
|
-
if (!
|
|
3774
|
-
const I =
|
|
3772
|
+
const l = w(A.subject);
|
|
3773
|
+
if (!l) return A;
|
|
3774
|
+
const I = l.actions;
|
|
3775
3775
|
return I.length <= 1 || I.filter((Y) => !r.includes(Y)).length === 0 ? A : { ...A, actions: [...I] };
|
|
3776
3776
|
}));
|
|
3777
|
-
function J(
|
|
3777
|
+
function J(k) {
|
|
3778
3778
|
n.value = no(
|
|
3779
|
-
|
|
3780
|
-
|
|
3779
|
+
B.value,
|
|
3780
|
+
k,
|
|
3781
3781
|
n.value,
|
|
3782
3782
|
w
|
|
3783
3783
|
);
|
|
3784
3784
|
}
|
|
3785
3785
|
const ae = ee(() => new Set(
|
|
3786
|
-
|
|
3786
|
+
T.value.filter((k) => sn(k.subject).length > 0).map((k) => k.subject)
|
|
3787
3787
|
)), Q = ee(() => {
|
|
3788
|
-
const
|
|
3789
|
-
return
|
|
3788
|
+
const k = /* @__PURE__ */ new Map();
|
|
3789
|
+
return B.value.map((C) => ({
|
|
3790
3790
|
rule: C,
|
|
3791
3791
|
index: n.value.findIndex(
|
|
3792
3792
|
(A) => !A.inverted && A.subject === C.subject
|
|
3793
3793
|
)
|
|
3794
3794
|
})).filter(({ rule: C }) => !C.inverted).forEach(({ rule: C, index: A }) => {
|
|
3795
3795
|
var P;
|
|
3796
|
-
const r = C.actions,
|
|
3797
|
-
if (
|
|
3796
|
+
const r = C.actions, l = D(C.subject, r);
|
|
3797
|
+
if (l.length === 0) return;
|
|
3798
3798
|
let I;
|
|
3799
3799
|
try {
|
|
3800
3800
|
I = C.conditions ? JSON.parse(C.conditions) : void 0;
|
|
3801
3801
|
} catch {
|
|
3802
3802
|
I = void 0;
|
|
3803
3803
|
}
|
|
3804
|
-
|
|
3804
|
+
k.set(C.subject, {
|
|
3805
3805
|
index: A >= 0 ? A : null,
|
|
3806
3806
|
subject: C.subject,
|
|
3807
3807
|
label: ((P = w(C.subject)) == null ? void 0 : P.label) ?? C.subject,
|
|
3808
3808
|
actions: r,
|
|
3809
3809
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3810
|
-
sections:
|
|
3810
|
+
sections: l.map((Y) => ({
|
|
3811
3811
|
builder: Y,
|
|
3812
3812
|
formValue: Y.fromCondition(ze(I, Y))
|
|
3813
3813
|
}))
|
|
3814
3814
|
});
|
|
3815
|
-
}),
|
|
3816
|
-
}), re =
|
|
3817
|
-
n.value =
|
|
3815
|
+
}), k;
|
|
3816
|
+
}), re = lo(n, T, (k) => {
|
|
3817
|
+
n.value = k;
|
|
3818
3818
|
}), ce = Ns(n);
|
|
3819
|
-
function q(
|
|
3820
|
-
const A = Q.value.get(
|
|
3819
|
+
function q(k, C) {
|
|
3820
|
+
const A = Q.value.get(k);
|
|
3821
3821
|
if (A) return A;
|
|
3822
|
-
const r = re.getEffectiveActions(
|
|
3823
|
-
if (
|
|
3822
|
+
const r = re.getEffectiveActions(k), l = D(k, r);
|
|
3823
|
+
if (l.length !== 0)
|
|
3824
3824
|
return {
|
|
3825
3825
|
index: null,
|
|
3826
|
-
subject:
|
|
3826
|
+
subject: k,
|
|
3827
3827
|
label: C,
|
|
3828
3828
|
actions: r,
|
|
3829
|
-
sections:
|
|
3829
|
+
sections: l.map((I) => ({
|
|
3830
3830
|
builder: I,
|
|
3831
3831
|
formValue: I.fromCondition(void 0)
|
|
3832
3832
|
}))
|
|
3833
3833
|
};
|
|
3834
3834
|
}
|
|
3835
|
-
function _e(
|
|
3836
|
-
const A = ce.getDraft({ subject:
|
|
3835
|
+
function _e(k, C) {
|
|
3836
|
+
const A = ce.getDraft({ subject: k.subject, builderKey: C.builderKey });
|
|
3837
3837
|
if (A) return A.formValue;
|
|
3838
|
-
const r =
|
|
3838
|
+
const r = k.sections.find((l) => l.builder.builderKey === C.builderKey);
|
|
3839
3839
|
return r == null ? void 0 : r.formValue;
|
|
3840
3840
|
}
|
|
3841
|
-
function Ee(
|
|
3842
|
-
const A = ce.getDraft({ subject:
|
|
3843
|
-
return A != null && A.inheritMode ? A.inheritMode : re.inheritMode(
|
|
3841
|
+
function Ee(k, C) {
|
|
3842
|
+
const A = ce.getDraft({ subject: k.subject, builderKey: C.builderKey });
|
|
3843
|
+
return A != null && A.inheritMode ? A.inheritMode : re.inheritMode(k, C);
|
|
3844
3844
|
}
|
|
3845
|
-
function Pe(
|
|
3845
|
+
function Pe(k, C, A) {
|
|
3846
3846
|
const r = ce.getDraft({
|
|
3847
|
-
subject:
|
|
3847
|
+
subject: k.subject,
|
|
3848
3848
|
builderKey: C.builderKey
|
|
3849
3849
|
});
|
|
3850
3850
|
ce.setDraft(
|
|
3851
|
-
{ subject:
|
|
3851
|
+
{ subject: k.subject, builderKey: C.builderKey },
|
|
3852
3852
|
{
|
|
3853
3853
|
formValue: A,
|
|
3854
|
-
inheritMode: (r == null ? void 0 : r.inheritMode) ?? Ee(
|
|
3854
|
+
inheritMode: (r == null ? void 0 : r.inheritMode) ?? Ee(k, C)
|
|
3855
3855
|
}
|
|
3856
3856
|
);
|
|
3857
3857
|
}
|
|
3858
|
-
function te(
|
|
3858
|
+
function te(k, C, A) {
|
|
3859
3859
|
const r = ce.getDraft({
|
|
3860
|
-
subject:
|
|
3860
|
+
subject: k.subject,
|
|
3861
3861
|
builderKey: C.builderKey
|
|
3862
|
-
}),
|
|
3862
|
+
}), l = k.sections.find((I) => I.builder.builderKey === C.builderKey);
|
|
3863
3863
|
ce.setDraft(
|
|
3864
|
-
{ subject:
|
|
3864
|
+
{ subject: k.subject, builderKey: C.builderKey },
|
|
3865
3865
|
{
|
|
3866
|
-
formValue: (r == null ? void 0 : r.formValue) ?? (
|
|
3866
|
+
formValue: (r == null ? void 0 : r.formValue) ?? (l == null ? void 0 : l.formValue),
|
|
3867
3867
|
inheritMode: A
|
|
3868
3868
|
}
|
|
3869
3869
|
);
|
|
3870
3870
|
}
|
|
3871
|
-
function
|
|
3872
|
-
return ce.hasDraftsForSubject(
|
|
3871
|
+
function ve(k) {
|
|
3872
|
+
return ce.hasDraftsForSubject(k);
|
|
3873
3873
|
}
|
|
3874
|
-
function st(
|
|
3875
|
-
const A =
|
|
3876
|
-
const
|
|
3877
|
-
subject:
|
|
3874
|
+
function st(k, C) {
|
|
3875
|
+
const A = k.sections.flatMap((r) => {
|
|
3876
|
+
const l = ce.getDraft({
|
|
3877
|
+
subject: k.subject,
|
|
3878
3878
|
builderKey: r.builder.builderKey
|
|
3879
3879
|
});
|
|
3880
|
-
return
|
|
3880
|
+
return l ? [{ builder: r.builder, form: l.formValue, mode: l.inheritMode ?? "custom" }] : [];
|
|
3881
3881
|
});
|
|
3882
|
-
re.applyConditionDrafts(
|
|
3882
|
+
re.applyConditionDrafts(k, A, {
|
|
3883
3883
|
afterCommit: () => {
|
|
3884
|
-
ce.clearDraftsForSubject(
|
|
3884
|
+
ce.clearDraftsForSubject(k.subject), C();
|
|
3885
3885
|
},
|
|
3886
|
-
onOverridesConflict: We(
|
|
3886
|
+
onOverridesConflict: We(k).onOverridesConflict
|
|
3887
3887
|
});
|
|
3888
3888
|
}
|
|
3889
|
-
function rt(
|
|
3890
|
-
return
|
|
3889
|
+
function rt(k) {
|
|
3890
|
+
return k.sections.some((C) => re.shouldShowInheritToggle(k, C.builder) ? re.inheritMode(k, C.builder) === "custom" : Object.keys(C.builder.toCondition(C.formValue)).length > 0);
|
|
3891
3891
|
}
|
|
3892
|
-
let
|
|
3893
|
-
function We(
|
|
3892
|
+
let Se = !1;
|
|
3893
|
+
function We(k, C = {}) {
|
|
3894
3894
|
return {
|
|
3895
3895
|
...C,
|
|
3896
3896
|
onOverridesConflict: ({ override: A, keep: r }) => {
|
|
3897
|
-
|
|
3897
|
+
Se || (Se = !0, u.open({
|
|
3898
3898
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3899
3899
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3900
|
-
cover:
|
|
3900
|
+
cover: k.label
|
|
3901
3901
|
}),
|
|
3902
3902
|
minWidth: c.value.lg ? 588 : 0,
|
|
3903
3903
|
zIndex: 200,
|
|
@@ -3910,41 +3910,41 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3910
3910
|
close: !1
|
|
3911
3911
|
}
|
|
3912
3912
|
}).onPrimary(() => {
|
|
3913
|
-
A(),
|
|
3913
|
+
A(), Se = !1, u.close();
|
|
3914
3914
|
}).onSecondary(() => {
|
|
3915
|
-
r(),
|
|
3915
|
+
r(), Se = !1, u.close();
|
|
3916
3916
|
}).onClose(() => {
|
|
3917
|
-
|
|
3917
|
+
Se = !1;
|
|
3918
3918
|
}));
|
|
3919
3919
|
}
|
|
3920
3920
|
};
|
|
3921
3921
|
}
|
|
3922
3922
|
return Dt(
|
|
3923
3923
|
n,
|
|
3924
|
-
(
|
|
3925
|
-
o("permissionChanged",
|
|
3924
|
+
(k) => {
|
|
3925
|
+
o("permissionChanged", k);
|
|
3926
3926
|
},
|
|
3927
3927
|
{ deep: !0 }
|
|
3928
|
-
), (
|
|
3929
|
-
const A = Fe("FmIcon"), r = Fe("FmRadio"),
|
|
3930
|
-
return z(), ue("div",
|
|
3931
|
-
|
|
3928
|
+
), (k, C) => {
|
|
3929
|
+
const A = Fe("FmIcon"), r = Fe("FmRadio"), l = Fe("FmRadioGroup"), I = Fe("FmButton"), P = Fe("FmPopover");
|
|
3930
|
+
return z(), ue("div", io, [
|
|
3931
|
+
le("div", co, [
|
|
3932
3932
|
fe(Ya, {
|
|
3933
|
-
"model-value":
|
|
3934
|
-
"excluded-subjects":
|
|
3933
|
+
"model-value": B.value,
|
|
3934
|
+
"excluded-subjects": S,
|
|
3935
3935
|
"additional-permissions": H(y),
|
|
3936
3936
|
"onUpdate:modelValue": J
|
|
3937
3937
|
}, Ke({ _: 2 }, [
|
|
3938
3938
|
Ce(R.value, (Y) => ({
|
|
3939
3939
|
name: `checkbox-${Y.id}-append`,
|
|
3940
|
-
fn:
|
|
3941
|
-
fe(
|
|
3940
|
+
fn: be(() => [
|
|
3941
|
+
fe(vt, { item: Y }, null, 8, ["item"])
|
|
3942
3942
|
])
|
|
3943
3943
|
})),
|
|
3944
3944
|
Ce(ae.value, (Y) => ({
|
|
3945
3945
|
name: `checkbox-${Y}-icon`,
|
|
3946
|
-
fn:
|
|
3947
|
-
|
|
3946
|
+
fn: be(({ option: X, isEffectiveSelected: b }) => [
|
|
3947
|
+
b && q(Y, X.label) ? (z(), De(P, {
|
|
3948
3948
|
key: 0,
|
|
3949
3949
|
disabled: e.disable,
|
|
3950
3950
|
"z-index": 100,
|
|
@@ -3952,8 +3952,8 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3952
3952
|
class: "h-5 flex items-center",
|
|
3953
3953
|
onClose: () => H(ce).clearDraftsForSubject(Y)
|
|
3954
3954
|
}, {
|
|
3955
|
-
"popover-button":
|
|
3956
|
-
|
|
3955
|
+
"popover-button": be(() => [
|
|
3956
|
+
le("div", uo, [
|
|
3957
3957
|
fe(A, {
|
|
3958
3958
|
name: "settings",
|
|
3959
3959
|
size: "sm",
|
|
@@ -3964,12 +3964,12 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3964
3964
|
}, null, 8, ["class"])
|
|
3965
3965
|
])
|
|
3966
3966
|
]),
|
|
3967
|
-
default:
|
|
3968
|
-
|
|
3969
|
-
|
|
3967
|
+
default: be(({ hide: O }) => [
|
|
3968
|
+
le("div", mo, [
|
|
3969
|
+
le("p", fo, ke(H(a)("team.memberForm.permissions.conditionTitle", {
|
|
3970
3970
|
context: q(Y, X.label).label
|
|
3971
3971
|
})), 1),
|
|
3972
|
-
(z(!0), ue(
|
|
3972
|
+
(z(!0), ue(Le, null, Ce(q(Y, X.label).sections, (K, de) => (z(), ue(Le, {
|
|
3973
3973
|
key: K.builder.builderKey
|
|
3974
3974
|
}, [
|
|
3975
3975
|
de > 0 ? (z(), ue("div", _o)) : Re("", !0),
|
|
@@ -3977,17 +3977,17 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3977
3977
|
q(Y, X.label),
|
|
3978
3978
|
K.builder
|
|
3979
3979
|
) ? (z(), ue("div", po, [
|
|
3980
|
-
fe(
|
|
3980
|
+
fe(l, {
|
|
3981
3981
|
"model-value": Ee(q(Y, X.label), K.builder),
|
|
3982
3982
|
disabled: e.disable,
|
|
3983
|
-
"onUpdate:modelValue": (
|
|
3983
|
+
"onUpdate:modelValue": (Te) => te(
|
|
3984
3984
|
q(Y, X.label),
|
|
3985
3985
|
K.builder,
|
|
3986
|
-
|
|
3986
|
+
Te
|
|
3987
3987
|
)
|
|
3988
3988
|
}, {
|
|
3989
|
-
default:
|
|
3990
|
-
|
|
3989
|
+
default: be(() => [
|
|
3990
|
+
le("div", null, [
|
|
3991
3991
|
fe(r, {
|
|
3992
3992
|
value: "inherit",
|
|
3993
3993
|
label: H(a)("team.memberForm.permissions.conditionCover.inherit", {
|
|
@@ -3998,7 +3998,7 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
3998
3998
|
q(Y, X.label),
|
|
3999
3999
|
K.builder,
|
|
4000
4000
|
N.value
|
|
4001
|
-
) ? (z(), ue("p",
|
|
4001
|
+
) ? (z(), ue("p", vo, " (" + ke(H(a)(
|
|
4002
4002
|
H(re).inheritedSummary(
|
|
4003
4003
|
q(Y, X.label),
|
|
4004
4004
|
K.builder,
|
|
@@ -4021,15 +4021,15 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
4021
4021
|
Ee(
|
|
4022
4022
|
q(Y, X.label),
|
|
4023
4023
|
K.builder
|
|
4024
|
-
) === "custom" ? (z(), ue("div",
|
|
4024
|
+
) === "custom" ? (z(), ue("div", bo, [
|
|
4025
4025
|
fe(nn, {
|
|
4026
4026
|
builder: K.builder,
|
|
4027
4027
|
"model-value": _e(q(Y, X.label), K.builder),
|
|
4028
4028
|
disable: e.disable,
|
|
4029
|
-
"onUpdate:modelValue": (
|
|
4029
|
+
"onUpdate:modelValue": (Te) => Pe(
|
|
4030
4030
|
q(Y, X.label),
|
|
4031
4031
|
K.builder,
|
|
4032
|
-
|
|
4032
|
+
Te
|
|
4033
4033
|
)
|
|
4034
4034
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
4035
4035
|
])) : Re("", !0)
|
|
@@ -4038,19 +4038,19 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
4038
4038
|
builder: K.builder,
|
|
4039
4039
|
"model-value": _e(q(Y, X.label), K.builder),
|
|
4040
4040
|
disable: e.disable,
|
|
4041
|
-
"onUpdate:modelValue": (
|
|
4041
|
+
"onUpdate:modelValue": (Te) => Pe(
|
|
4042
4042
|
q(Y, X.label),
|
|
4043
4043
|
K.builder,
|
|
4044
|
-
|
|
4044
|
+
Te
|
|
4045
4045
|
)
|
|
4046
4046
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"]))
|
|
4047
4047
|
], 64))), 128)),
|
|
4048
|
-
|
|
4048
|
+
le("div", ho, [
|
|
4049
4049
|
fe(I, {
|
|
4050
4050
|
label: H(a)("team.memberForm.permissions.conditionApply"),
|
|
4051
4051
|
size: "md",
|
|
4052
4052
|
variant: "primary",
|
|
4053
|
-
disabled: e.disable || !
|
|
4053
|
+
disabled: e.disable || !ve(Y),
|
|
4054
4054
|
onClick: (K) => st(q(Y, X.label), O)
|
|
4055
4055
|
}, null, 8, ["label", "disabled", "onClick"])
|
|
4056
4056
|
])
|
|
@@ -4067,22 +4067,22 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
4067
4067
|
}))
|
|
4068
4068
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4069
4069
|
]),
|
|
4070
|
-
|
|
4070
|
+
le("div", go, [
|
|
4071
4071
|
fe(wn, {
|
|
4072
|
-
"model-value":
|
|
4072
|
+
"model-value": i.value,
|
|
4073
4073
|
options: g.value,
|
|
4074
4074
|
context: H(a)("team.labels.warehouse"),
|
|
4075
4075
|
"onUpdate:modelValue": _
|
|
4076
4076
|
}, Ke({ _: 2 }, [
|
|
4077
4077
|
Ce(F.value, (Y) => ({
|
|
4078
4078
|
name: `checkbox-${Y.id}-append`,
|
|
4079
|
-
fn:
|
|
4080
|
-
fe(
|
|
4079
|
+
fn: be(() => [
|
|
4080
|
+
fe(vt, { item: Y }, null, 8, ["item"])
|
|
4081
4081
|
])
|
|
4082
4082
|
}))
|
|
4083
4083
|
]), 1032, ["model-value", "options", "context"])
|
|
4084
4084
|
]),
|
|
4085
|
-
|
|
4085
|
+
le("div", Io, [
|
|
4086
4086
|
fe(wn, {
|
|
4087
4087
|
"model-value": E.value,
|
|
4088
4088
|
options: W.value,
|
|
@@ -4091,13 +4091,13 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
4091
4091
|
}, Ke({ _: 2 }, [
|
|
4092
4092
|
Ce(f.value, (Y) => ({
|
|
4093
4093
|
name: `checkbox-${Y.id}-append`,
|
|
4094
|
-
fn:
|
|
4095
|
-
fe(
|
|
4094
|
+
fn: be(() => [
|
|
4095
|
+
fe(vt, { item: Y }, null, 8, ["item"])
|
|
4096
4096
|
])
|
|
4097
4097
|
}))
|
|
4098
4098
|
]), 1032, ["model-value", "options", "context"])
|
|
4099
4099
|
]),
|
|
4100
|
-
|
|
4100
|
+
le("div", yo, [
|
|
4101
4101
|
fe(eo, {
|
|
4102
4102
|
roles: H($),
|
|
4103
4103
|
"model-value": U.value,
|
|
@@ -4106,8 +4106,8 @@ const lo = { class: "flex flex-col gap-32" }, co = { class: "p-16 fm-corner-radi
|
|
|
4106
4106
|
}, Ke({ _: 2 }, [
|
|
4107
4107
|
Ce(p.value, (Y) => ({
|
|
4108
4108
|
name: `checkbox-${Y.id}-append`,
|
|
4109
|
-
fn:
|
|
4110
|
-
fe(
|
|
4109
|
+
fn: be(() => [
|
|
4110
|
+
fe(vt, { item: Y }, null, 8, ["item"])
|
|
4111
4111
|
])
|
|
4112
4112
|
}))
|
|
4113
4113
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|