@feedmepos/mf-hrm-portal 2.0.24-dev.14 → 2.0.24-dev.15
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-CtneTBoV.js → AuditLogList-iF38fTa4.js} +44 -44
- package/dist/{EmployeeList-C7dIO8gr.js → EmployeeList-b-4gXdLJ.js} +8 -8
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-S4Mh4MvG.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{Main-3gbHRwy4.js → Main-CpO2af9k.js} +6 -6
- package/dist/{Main-CU92m_i1.js → Main-DlPd49tp.js} +9 -9
- package/dist/{Main-D5PmpNiB.js → Main-DoJGIWDy.js} +6 -6
- package/dist/{PermissionSetList-Dej3hhUp.js → PermissionSetList-DPmzr_cs.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9fM3DpC.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dzmeg7P-.js} +534 -534
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-DiCE_AYD.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-DX6io2IP.js} +1 -1
- package/dist/{RoleList-B98ExzJE.js → RoleList-C2viOZh7.js} +7 -7
- package/dist/{SelectFilter-C61IZSID.js → SelectFilter-ATOm0hdn.js} +37 -37
- package/dist/{TeamMemberList-YTHgBCoO.js → TeamMemberList-C4nZL41o.js} +9 -9
- package/dist/{TimesheetList-2HclOof1.js → TimesheetList--xN0jMmv.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-BBHwVX-k.js → TimesheetList.vue_vue_type_style_index_0_scoped_91afda4e_lang-CzA-8C42.js} +2 -2
- package/dist/{app-CoIsLUsi.js → app-BsMht81f.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-JqoERYFc.js → dayjs.min-CmJz0_dg.js} +1 -1
- package/dist/{employee-D_oJJt4e.js → employee-BaAu5Ucl.js} +3 -3
- package/dist/{iteration-CmwYwOHJ.js → iteration-Cch1v6Fm.js} +1 -1
- package/dist/{lodash-DISd2c6W.js → lodash-BcG3T12V.js} +1 -1
- package/dist/{rule-B4b6tRUV.js → rule-BmIUTy0V.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-m4x4qFHC.js → useAppStore-efPeNcbk.js} +1 -1
- package/dist/{useLoading-BcujhoYe.js → useLoading-DGQMmdnf.js} +1 -1
- package/dist/{useReportPermissions-bHlIA-k-.js → useReportPermissions-BeKk9bUR.js} +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getCurrentInstance as xt, inject as Jn, ref as gt, shallowRef as
|
|
1
|
+
import { getCurrentInstance as xt, inject as Jn, ref as gt, shallowRef as zn, computed as q, watch as St, onMounted as Rn, onUnmounted as Kn, defineComponent as Te, h as An, createVNode as _e, Text as Qn, Fragment as Le, resolveComponent as qe, createBlock as De, openBlock as Q, withCtx as pe, createElementVNode as se, createElementBlock as oe, toDisplayString as ye, unref as $, renderList as be, toRef as Kt, normalizeStyle as Ze, renderSlot as ke, createCommentVNode as Se, createTextVNode as qn, useSlots as es, normalizeClass as rt, createSlots as xe, mergeModels as Qt, useModel as ts } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as Dt, d as ss, w as as, x as
|
|
4
|
+
import { p as Dt, d as ss, w as as, x as Tt, k as rs, j as ls, $ as Ot } from "./rule-BmIUTy0V.js";
|
|
5
5
|
import { _ as Zt } from "./CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js";
|
|
6
|
-
import { u as os, b as is, d as ue, k as cs, P as Lt } from "./app-
|
|
7
|
-
import { d as dt, g as us, b as ms } from "./iteration-
|
|
8
|
-
import { u as ds } from "./useAppStore-
|
|
6
|
+
import { u as os, b as is, d as ue, k as cs, P as Lt } from "./app-BsMht81f.js";
|
|
7
|
+
import { d as dt, g as us, b as ms } from "./iteration-Cch1v6Fm.js";
|
|
8
|
+
import { u as ds } from "./useAppStore-efPeNcbk.js";
|
|
9
9
|
/*!
|
|
10
10
|
* shared v10.0.5
|
|
11
11
|
* (c) 2024 kazuya kawaguchi
|
|
@@ -18,17 +18,17 @@ function tn(e) {
|
|
|
18
18
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
19
19
|
}
|
|
20
20
|
const hs = Object.prototype.hasOwnProperty;
|
|
21
|
-
function
|
|
21
|
+
function Ie(e, t) {
|
|
22
22
|
return hs.call(e, t);
|
|
23
23
|
}
|
|
24
|
-
const ce = Array.isArray, ae = (e) => typeof e == "function", P = (e) => typeof e == "string", ie = (e) => typeof e == "boolean",
|
|
24
|
+
const ce = Array.isArray, ae = (e) => typeof e == "function", P = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", z = (e) => e !== null && typeof e == "object", bs = (e) => z(e) && ae(e.then) && ae(e.catch), Sn = Object.prototype.toString, Xt = (e) => Sn.call(e), J = (e) => Xt(e) === "[object Object]", vs = (e) => e == null ? "" : ce(e) || J(e) && e.toString === Sn ? JSON.stringify(e, null, 2) : String(e);
|
|
25
25
|
function Yt(e, t = "") {
|
|
26
26
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
27
27
|
}
|
|
28
28
|
function Es(e, t) {
|
|
29
29
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
30
30
|
}
|
|
31
|
-
const lt = (e) => !
|
|
31
|
+
const lt = (e) => !z(e) || ce(e);
|
|
32
32
|
function ft(e, t) {
|
|
33
33
|
if (lt(e) || lt(t))
|
|
34
34
|
throw new Error("Invalid value");
|
|
@@ -36,17 +36,17 @@ function ft(e, t) {
|
|
|
36
36
|
for (; n.length; ) {
|
|
37
37
|
const { src: s, des: l } = n.pop();
|
|
38
38
|
Object.keys(s).forEach((a) => {
|
|
39
|
-
a !== "__proto__" && (
|
|
39
|
+
a !== "__proto__" && (z(s[a]) && !z(l[a]) && (l[a] = Array.isArray(s[a]) ? [] : ee()), lt(l[a]) || lt(s[a]) ? l[a] = s[a] : n.push({ src: s[a], des: l[a] }));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ys(e, t, n) {
|
|
44
44
|
return { line: e, column: t, offset: n };
|
|
45
45
|
}
|
|
46
46
|
function Mt(e, t, n) {
|
|
47
47
|
return { start: e, end: t };
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const K = {
|
|
50
50
|
// tokenizer error codes
|
|
51
51
|
EXPECTED_TOKEN: 1,
|
|
52
52
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -63,24 +63,24 @@ const Q = {
|
|
|
63
63
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
64
64
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
65
65
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
66
|
-
},
|
|
66
|
+
}, Is = 17;
|
|
67
67
|
function bt(e, t, n = {}) {
|
|
68
68
|
const { domain: s, messages: l, args: a } = n, c = e, u = new SyntaxError(String(c));
|
|
69
69
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ns(e) {
|
|
72
72
|
throw e;
|
|
73
73
|
}
|
|
74
|
-
const Oe = " ",
|
|
75
|
-
`,
|
|
74
|
+
const Oe = " ", ks = "\r", ge = `
|
|
75
|
+
`, Ts = "\u2028", Os = "\u2029";
|
|
76
76
|
function Ls(e) {
|
|
77
77
|
const t = e;
|
|
78
78
|
let n = 0, s = 1, l = 1, a = 0;
|
|
79
|
-
const c = (E) => t[E] ===
|
|
79
|
+
const c = (E) => t[E] === ks && t[E + 1] === ge, u = (E) => t[E] === ge, m = (E) => t[E] === Os, p = (E) => t[E] === Ts, N = (E) => c(E) || u(E) || m(E) || p(E), L = () => n, O = () => s, w = () => l, V = () => a, A = (E) => c(E) || m(E) || p(E) ? ge : t[E], D = () => A(n), i = () => A(n + a);
|
|
80
80
|
function d() {
|
|
81
|
-
return a = 0,
|
|
81
|
+
return a = 0, N(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function k() {
|
|
84
84
|
return c(n + a) && a++, a++, t[n + a];
|
|
85
85
|
}
|
|
86
86
|
function _() {
|
|
@@ -104,7 +104,7 @@ function Ls(e) {
|
|
|
104
104
|
currentChar: D,
|
|
105
105
|
currentPeek: i,
|
|
106
106
|
next: d,
|
|
107
|
-
peek:
|
|
107
|
+
peek: k,
|
|
108
108
|
reset: _,
|
|
109
109
|
resetPeek: M,
|
|
110
110
|
skipToPeek: S
|
|
@@ -112,7 +112,7 @@ function Ls(e) {
|
|
|
112
112
|
}
|
|
113
113
|
const Ae = void 0, Cs = ".", nn = "'", Rs = "tokenizer";
|
|
114
114
|
function As(e, t = {}) {
|
|
115
|
-
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () =>
|
|
115
|
+
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => ys(s.line(), s.column(), s.index()), c = a(), u = l(), m = {
|
|
116
116
|
currentType: 13,
|
|
117
117
|
offset: u,
|
|
118
118
|
startLoc: c,
|
|
@@ -124,15 +124,15 @@ function As(e, t = {}) {
|
|
|
124
124
|
braceNest: 0,
|
|
125
125
|
inLinked: !1,
|
|
126
126
|
text: ""
|
|
127
|
-
}, p = () => m, { onError:
|
|
127
|
+
}, p = () => m, { onError: N } = t;
|
|
128
128
|
function L(r, o, g, ...j) {
|
|
129
129
|
const re = p();
|
|
130
|
-
if (o.column += g, o.offset += g,
|
|
130
|
+
if (o.column += g, o.offset += g, N) {
|
|
131
131
|
const X = n ? Mt(re.startLoc, o) : null, f = bt(r, X, {
|
|
132
132
|
domain: Rs,
|
|
133
133
|
args: j
|
|
134
134
|
});
|
|
135
|
-
|
|
135
|
+
N(f);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
function O(r, o, g) {
|
|
@@ -146,7 +146,7 @@ function As(e, t = {}) {
|
|
|
146
146
|
/* TokenTypes.EOF */
|
|
147
147
|
);
|
|
148
148
|
function V(r, o) {
|
|
149
|
-
return r.currentChar() === o ? (r.next(), o) : (L(
|
|
149
|
+
return r.currentChar() === o ? (r.next(), o) : (L(K.EXPECTED_TOKEN, a(), 0, o), "");
|
|
150
150
|
}
|
|
151
151
|
function A(r) {
|
|
152
152
|
let o = "";
|
|
@@ -172,7 +172,7 @@ function As(e, t = {}) {
|
|
|
172
172
|
const o = r.charCodeAt(0);
|
|
173
173
|
return o >= 48 && o <= 57;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function k(r, o) {
|
|
176
176
|
const { currentType: g } = o;
|
|
177
177
|
if (g !== 2)
|
|
178
178
|
return !1;
|
|
@@ -242,7 +242,7 @@ function As(e, t = {}) {
|
|
|
242
242
|
}, j = g();
|
|
243
243
|
return o && r.resetPeek(), j;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function y(r, o) {
|
|
246
246
|
const g = r.currentChar();
|
|
247
247
|
return g === Ae ? Ae : o(g) ? (r.next(), g) : null;
|
|
248
248
|
}
|
|
@@ -255,9 +255,9 @@ function As(e, t = {}) {
|
|
|
255
255
|
o === 36;
|
|
256
256
|
}
|
|
257
257
|
function x(r) {
|
|
258
|
-
return
|
|
258
|
+
return y(r, F);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function I(r) {
|
|
261
261
|
const o = r.charCodeAt(0);
|
|
262
262
|
return o >= 97 && o <= 122 || // a-z
|
|
263
263
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -267,27 +267,27 @@ function As(e, t = {}) {
|
|
|
267
267
|
o === 45;
|
|
268
268
|
}
|
|
269
269
|
function R(r) {
|
|
270
|
-
return
|
|
270
|
+
return y(r, I);
|
|
271
271
|
}
|
|
272
272
|
function v(r) {
|
|
273
273
|
const o = r.charCodeAt(0);
|
|
274
274
|
return o >= 48 && o <= 57;
|
|
275
275
|
}
|
|
276
|
-
function W(r) {
|
|
277
|
-
return I(r, v);
|
|
278
|
-
}
|
|
279
276
|
function G(r) {
|
|
277
|
+
return y(r, v);
|
|
278
|
+
}
|
|
279
|
+
function W(r) {
|
|
280
280
|
const o = r.charCodeAt(0);
|
|
281
281
|
return o >= 48 && o <= 57 || // 0-9
|
|
282
282
|
o >= 65 && o <= 70 || // A-F
|
|
283
283
|
o >= 97 && o <= 102;
|
|
284
284
|
}
|
|
285
285
|
function U(r) {
|
|
286
|
-
return
|
|
286
|
+
return y(r, W);
|
|
287
287
|
}
|
|
288
288
|
function te(r) {
|
|
289
289
|
let o = "", g = "";
|
|
290
|
-
for (; o =
|
|
290
|
+
for (; o = G(r); )
|
|
291
291
|
g += o;
|
|
292
292
|
return g;
|
|
293
293
|
}
|
|
@@ -315,12 +315,12 @@ function As(e, t = {}) {
|
|
|
315
315
|
let o = "", g = "";
|
|
316
316
|
for (; o = R(r); )
|
|
317
317
|
g += o;
|
|
318
|
-
return r.currentChar() === Ae && L(
|
|
318
|
+
return r.currentChar() === Ae && L(K.UNTERMINATED_CLOSING_BRACE, a(), 0), g;
|
|
319
319
|
}
|
|
320
320
|
function fe(r) {
|
|
321
321
|
D(r);
|
|
322
322
|
let o = "";
|
|
323
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${te(r)}`) : o += te(r), r.currentChar() === Ae && L(
|
|
323
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${te(r)}`) : o += te(r), r.currentChar() === Ae && L(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
324
324
|
}
|
|
325
325
|
function H(r) {
|
|
326
326
|
return r !== nn && r !== ge;
|
|
@@ -328,10 +328,10 @@ function As(e, t = {}) {
|
|
|
328
328
|
function Z(r) {
|
|
329
329
|
D(r), V(r, "'");
|
|
330
330
|
let o = "", g = "";
|
|
331
|
-
for (; o =
|
|
331
|
+
for (; o = y(r, H); )
|
|
332
332
|
o === "\\" ? g += Ee(r) : g += o;
|
|
333
333
|
const j = r.currentChar();
|
|
334
|
-
return j === ge || j === Ae ? (L(
|
|
334
|
+
return j === ge || j === Ae ? (L(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), j === ge && (r.next(), V(r, "'")), g) : (V(r, "'"), g);
|
|
335
335
|
}
|
|
336
336
|
function Ee(r) {
|
|
337
337
|
const o = r.currentChar();
|
|
@@ -344,7 +344,7 @@ function As(e, t = {}) {
|
|
|
344
344
|
case "U":
|
|
345
345
|
return $e(r, o, 6);
|
|
346
346
|
default:
|
|
347
|
-
return L(
|
|
347
|
+
return L(K.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
function $e(r, o, g) {
|
|
@@ -353,7 +353,7 @@ function As(e, t = {}) {
|
|
|
353
353
|
for (let re = 0; re < g; re++) {
|
|
354
354
|
const X = U(r);
|
|
355
355
|
if (!X) {
|
|
356
|
-
L(
|
|
356
|
+
L(K.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${j}${r.currentChar()}`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
359
|
j += X;
|
|
@@ -363,27 +363,27 @@ function As(e, t = {}) {
|
|
|
363
363
|
function Je(r) {
|
|
364
364
|
return r !== "{" && r !== "}" && r !== Oe && r !== ge;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function yt(r) {
|
|
367
367
|
D(r);
|
|
368
368
|
let o = "", g = "";
|
|
369
|
-
for (; o =
|
|
369
|
+
for (; o = y(r, Je); )
|
|
370
370
|
g += o;
|
|
371
371
|
return g;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function It(r) {
|
|
374
374
|
let o = "", g = "";
|
|
375
375
|
for (; o = x(r); )
|
|
376
376
|
g += o;
|
|
377
377
|
return g;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Nt(r) {
|
|
380
380
|
const o = (g) => {
|
|
381
381
|
const j = r.currentChar();
|
|
382
382
|
return j === "{" || j === "@" || j === "|" || j === "(" || j === ")" || !j || j === Oe ? g : (g += j, r.next(), o(g));
|
|
383
383
|
};
|
|
384
384
|
return o("");
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function ze(r) {
|
|
387
387
|
D(r);
|
|
388
388
|
const o = V(
|
|
389
389
|
r,
|
|
@@ -396,35 +396,35 @@ function As(e, t = {}) {
|
|
|
396
396
|
let g = null;
|
|
397
397
|
switch (r.currentChar()) {
|
|
398
398
|
case "{":
|
|
399
|
-
return o.braceNest >= 1 && L(
|
|
399
|
+
return o.braceNest >= 1 && L(K.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), g = O(
|
|
400
400
|
o,
|
|
401
401
|
2,
|
|
402
402
|
"{"
|
|
403
403
|
/* TokenChars.BraceLeft */
|
|
404
404
|
), D(r), o.braceNest++, g;
|
|
405
405
|
case "}":
|
|
406
|
-
return o.braceNest > 0 && o.currentType === 2 && L(
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && L(K.EMPTY_PLACEHOLDER, a(), 0), r.next(), g = O(
|
|
407
407
|
o,
|
|
408
408
|
3,
|
|
409
409
|
"}"
|
|
410
410
|
/* TokenChars.BraceRight */
|
|
411
411
|
), o.braceNest--, o.braceNest > 0 && D(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), g;
|
|
412
412
|
case "@":
|
|
413
|
-
return o.braceNest > 0 && L(
|
|
413
|
+
return o.braceNest > 0 && L(K.UNTERMINATED_CLOSING_BRACE, a(), 0), g = Ve(r, o) || w(o), o.braceNest = 0, g;
|
|
414
414
|
default: {
|
|
415
415
|
let re = !0, X = !0, f = !0;
|
|
416
416
|
if (h(r))
|
|
417
|
-
return o.braceNest > 0 && L(
|
|
417
|
+
return o.braceNest > 0 && L(K.UNTERMINATED_CLOSING_BRACE, a(), 0), g = O(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, g;
|
|
418
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
419
|
-
return L(
|
|
420
|
-
if (re =
|
|
419
|
+
return L(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ke(r, o);
|
|
420
|
+
if (re = k(r, o))
|
|
421
421
|
return g = O(o, 4, he(r)), D(r), g;
|
|
422
422
|
if (X = _(r, o))
|
|
423
423
|
return g = O(o, 5, fe(r)), D(r), g;
|
|
424
424
|
if (f = M(r, o))
|
|
425
425
|
return g = O(o, 6, Z(r)), D(r), g;
|
|
426
426
|
if (!re && !X && !f)
|
|
427
|
-
return g = O(o, 12,
|
|
427
|
+
return g = O(o, 12, yt(r)), L(K.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g.value), D(r), g;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -434,7 +434,7 @@ function As(e, t = {}) {
|
|
|
434
434
|
const { currentType: g } = o;
|
|
435
435
|
let j = null;
|
|
436
436
|
const re = r.currentChar();
|
|
437
|
-
switch ((g === 7 || g === 8 || g === 11 || g === 9) && (re === ge || re === Oe) && L(
|
|
437
|
+
switch ((g === 7 || g === 8 || g === 11 || g === 9) && (re === ge || re === Oe) && L(K.INVALID_LINKED_FORMAT, a(), 0), re) {
|
|
438
438
|
case "@":
|
|
439
439
|
return r.next(), j = O(
|
|
440
440
|
o,
|
|
@@ -457,10 +457,10 @@ function As(e, t = {}) {
|
|
|
457
457
|
/* TokenChars.LinkedDelimiter */
|
|
458
458
|
);
|
|
459
459
|
default:
|
|
460
|
-
return h(r) ? (j = O(o, 1,
|
|
460
|
+
return h(r) ? (j = O(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, j) : S(r, o) || Y(r, o) ? (D(r), Ve(r, o)) : E(r, o) ? (D(r), O(o, 11, It(r))) : b(r, o) ? (D(r), re === "{" ? je(r, o) || j : O(o, 10, Nt(r))) : (g === 7 && L(K.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ke(r, o));
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Ke(r, o) {
|
|
464
464
|
let g = {
|
|
465
465
|
type: 13
|
|
466
466
|
/* TokenTypes.EOF */
|
|
@@ -473,7 +473,7 @@ function As(e, t = {}) {
|
|
|
473
473
|
case "{":
|
|
474
474
|
return je(r, o) || w(o);
|
|
475
475
|
case "}":
|
|
476
|
-
return L(
|
|
476
|
+
return L(K.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), O(
|
|
477
477
|
o,
|
|
478
478
|
3,
|
|
479
479
|
"}"
|
|
@@ -483,7 +483,7 @@ function As(e, t = {}) {
|
|
|
483
483
|
return Ve(r, o) || w(o);
|
|
484
484
|
default: {
|
|
485
485
|
if (h(r))
|
|
486
|
-
return g = O(o, 1,
|
|
486
|
+
return g = O(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, g;
|
|
487
487
|
if (C(r))
|
|
488
488
|
return O(o, 0, B(r));
|
|
489
489
|
break;
|
|
@@ -491,16 +491,16 @@ function As(e, t = {}) {
|
|
|
491
491
|
}
|
|
492
492
|
return g;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function kt() {
|
|
495
495
|
const { currentType: r, offset: o, startLoc: g, endLoc: j } = m;
|
|
496
496
|
return m.lastType = r, m.lastOffset = o, m.lastStartLoc = g, m.lastEndLoc = j, m.offset = l(), m.startLoc = a(), s.currentChar() === Ae ? O(
|
|
497
497
|
m,
|
|
498
498
|
13
|
|
499
499
|
/* TokenTypes.EOF */
|
|
500
|
-
) :
|
|
500
|
+
) : Ke(s, m);
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
|
-
nextToken:
|
|
503
|
+
nextToken: kt,
|
|
504
504
|
currentOffset: l,
|
|
505
505
|
currentPosition: a,
|
|
506
506
|
context: p
|
|
@@ -521,103 +521,103 @@ function Ms(e, t, n) {
|
|
|
521
521
|
}
|
|
522
522
|
function ws(e = {}) {
|
|
523
523
|
const t = e.location !== !1, { onError: n } = e;
|
|
524
|
-
function s(i, d,
|
|
524
|
+
function s(i, d, k, _, ...M) {
|
|
525
525
|
const S = i.currentPosition();
|
|
526
526
|
if (S.offset += _, S.column += _, n) {
|
|
527
|
-
const E = t ? Mt(
|
|
527
|
+
const E = t ? Mt(k, S) : null, Y = bt(d, E, {
|
|
528
528
|
domain: Ss,
|
|
529
529
|
args: M
|
|
530
530
|
});
|
|
531
531
|
n(Y);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function l(i, d,
|
|
534
|
+
function l(i, d, k) {
|
|
535
535
|
const _ = { type: i };
|
|
536
|
-
return t && (_.start = d, _.end = d, _.loc = { start:
|
|
536
|
+
return t && (_.start = d, _.end = d, _.loc = { start: k, end: k }), _;
|
|
537
537
|
}
|
|
538
|
-
function a(i, d,
|
|
539
|
-
t && (i.end = d, i.loc && (i.loc.end =
|
|
538
|
+
function a(i, d, k, _) {
|
|
539
|
+
t && (i.end = d, i.loc && (i.loc.end = k));
|
|
540
540
|
}
|
|
541
541
|
function c(i, d) {
|
|
542
|
-
const
|
|
542
|
+
const k = i.context(), _ = l(3, k.offset, k.startLoc);
|
|
543
543
|
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
544
544
|
}
|
|
545
545
|
function u(i, d) {
|
|
546
|
-
const
|
|
546
|
+
const k = i.context(), { lastOffset: _, lastStartLoc: M } = k, S = l(5, _, M);
|
|
547
547
|
return S.index = parseInt(d, 10), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
548
548
|
}
|
|
549
549
|
function m(i, d) {
|
|
550
|
-
const
|
|
550
|
+
const k = i.context(), { lastOffset: _, lastStartLoc: M } = k, S = l(4, _, M);
|
|
551
551
|
return S.key = d, i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
552
552
|
}
|
|
553
553
|
function p(i, d) {
|
|
554
|
-
const
|
|
554
|
+
const k = i.context(), { lastOffset: _, lastStartLoc: M } = k, S = l(9, _, M);
|
|
555
555
|
return S.value = d.replace(Ds, Ms), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
const d = i.nextToken(),
|
|
559
|
-
return d.type !== 11 ? (s(i,
|
|
557
|
+
function N(i) {
|
|
558
|
+
const d = i.nextToken(), k = i.context(), { lastOffset: _, lastStartLoc: M } = k, S = l(8, _, M);
|
|
559
|
+
return d.type !== 11 ? (s(i, K.UNEXPECTED_EMPTY_LINKED_MODIFIER, k.lastStartLoc, 0), S.value = "", a(S, _, M), {
|
|
560
560
|
nextConsumeToken: d,
|
|
561
561
|
node: S
|
|
562
|
-
}) : (d.value == null && s(i,
|
|
562
|
+
}) : (d.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, Ne(d)), S.value = d.value || "", a(S, i.currentOffset(), i.currentPosition()), {
|
|
563
563
|
node: S
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
function L(i, d) {
|
|
567
|
-
const
|
|
567
|
+
const k = i.context(), _ = l(7, k.offset, k.startLoc);
|
|
568
568
|
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
569
569
|
}
|
|
570
570
|
function O(i) {
|
|
571
|
-
const d = i.context(),
|
|
571
|
+
const d = i.context(), k = l(6, d.offset, d.startLoc);
|
|
572
572
|
let _ = i.nextToken();
|
|
573
573
|
if (_.type === 8) {
|
|
574
|
-
const M =
|
|
575
|
-
|
|
574
|
+
const M = N(i);
|
|
575
|
+
k.modifier = M.node, _ = M.nextConsumeToken || i.nextToken();
|
|
576
576
|
}
|
|
577
|
-
switch (_.type !== 9 && s(i,
|
|
577
|
+
switch (_.type !== 9 && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
578
578
|
case 10:
|
|
579
|
-
_.value == null && s(i,
|
|
579
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), k.key = L(i, _.value || "");
|
|
580
580
|
break;
|
|
581
581
|
case 4:
|
|
582
|
-
_.value == null && s(i,
|
|
582
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), k.key = m(i, _.value || "");
|
|
583
583
|
break;
|
|
584
584
|
case 5:
|
|
585
|
-
_.value == null && s(i,
|
|
585
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), k.key = u(i, _.value || "");
|
|
586
586
|
break;
|
|
587
587
|
case 6:
|
|
588
|
-
_.value == null && s(i,
|
|
588
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), k.key = p(i, _.value || "");
|
|
589
589
|
break;
|
|
590
590
|
default: {
|
|
591
|
-
s(i,
|
|
591
|
+
s(i, K.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
592
592
|
const M = i.context(), S = l(7, M.offset, M.startLoc);
|
|
593
|
-
return S.value = "", a(S, M.offset, M.startLoc),
|
|
593
|
+
return S.value = "", a(S, M.offset, M.startLoc), k.key = S, a(k, M.offset, M.startLoc), {
|
|
594
594
|
nextConsumeToken: _,
|
|
595
|
-
node:
|
|
595
|
+
node: k
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
return a(
|
|
600
|
-
node:
|
|
599
|
+
return a(k, i.currentOffset(), i.currentPosition()), {
|
|
600
|
+
node: k
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
603
|
function w(i) {
|
|
604
|
-
const d = i.context(),
|
|
604
|
+
const d = i.context(), k = d.currentType === 1 ? i.currentOffset() : d.offset, _ = d.currentType === 1 ? d.endLoc : d.startLoc, M = l(2, k, _);
|
|
605
605
|
M.items = [];
|
|
606
606
|
let S = null;
|
|
607
607
|
do {
|
|
608
608
|
const b = S || i.nextToken();
|
|
609
609
|
switch (S = null, b.type) {
|
|
610
610
|
case 0:
|
|
611
|
-
b.value == null && s(i,
|
|
611
|
+
b.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), M.items.push(c(i, b.value || ""));
|
|
612
612
|
break;
|
|
613
613
|
case 5:
|
|
614
|
-
b.value == null && s(i,
|
|
614
|
+
b.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), M.items.push(u(i, b.value || ""));
|
|
615
615
|
break;
|
|
616
616
|
case 4:
|
|
617
|
-
b.value == null && s(i,
|
|
617
|
+
b.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), M.items.push(m(i, b.value || ""));
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
620
|
-
b.value == null && s(i,
|
|
620
|
+
b.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), M.items.push(p(i, b.value || ""));
|
|
621
621
|
break;
|
|
622
622
|
case 7: {
|
|
623
623
|
const h = O(i);
|
|
@@ -629,28 +629,28 @@ function ws(e = {}) {
|
|
|
629
629
|
const E = d.currentType === 1 ? d.lastOffset : i.currentOffset(), Y = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
630
630
|
return a(M, E, Y), M;
|
|
631
631
|
}
|
|
632
|
-
function V(i, d,
|
|
632
|
+
function V(i, d, k, _) {
|
|
633
633
|
const M = i.context();
|
|
634
634
|
let S = _.items.length === 0;
|
|
635
|
-
const E = l(1, d,
|
|
635
|
+
const E = l(1, d, k);
|
|
636
636
|
E.cases = [], E.cases.push(_);
|
|
637
637
|
do {
|
|
638
638
|
const Y = w(i);
|
|
639
639
|
S || (S = Y.items.length === 0), E.cases.push(Y);
|
|
640
640
|
} while (M.currentType !== 13);
|
|
641
|
-
return S && s(i,
|
|
641
|
+
return S && s(i, K.MUST_HAVE_MESSAGES_IN_PLURAL, k, 0), a(E, i.currentOffset(), i.currentPosition()), E;
|
|
642
642
|
}
|
|
643
643
|
function A(i) {
|
|
644
|
-
const d = i.context(), { offset:
|
|
645
|
-
return d.currentType === 13 ? M : V(i,
|
|
644
|
+
const d = i.context(), { offset: k, startLoc: _ } = d, M = w(i);
|
|
645
|
+
return d.currentType === 13 ? M : V(i, k, _, M);
|
|
646
646
|
}
|
|
647
647
|
function D(i) {
|
|
648
|
-
const d = As(i, de({}, e)),
|
|
649
|
-
return t && _.loc && (_.loc.source = i), _.body = A(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)),
|
|
648
|
+
const d = As(i, de({}, e)), k = d.context(), _ = l(0, k.offset, k.startLoc);
|
|
649
|
+
return t && _.loc && (_.loc.source = i), _.body = A(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), k.currentType !== 13 && s(d, K.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, i[k.offset] || ""), a(_, d.currentOffset(), d.currentPosition()), _;
|
|
650
650
|
}
|
|
651
651
|
return { parse: D };
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Ne(e) {
|
|
654
654
|
if (e.type === 13)
|
|
655
655
|
return "EOF";
|
|
656
656
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -742,24 +742,24 @@ function an(e) {
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Ge(e) {
|
|
746
746
|
switch (e.t = e.type, e.type) {
|
|
747
747
|
case 0: {
|
|
748
748
|
const t = e;
|
|
749
|
-
|
|
749
|
+
Ge(t.body), t.b = t.body, delete t.body;
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
752
|
case 1: {
|
|
753
753
|
const t = e, n = t.cases;
|
|
754
754
|
for (let s = 0; s < n.length; s++)
|
|
755
|
-
|
|
755
|
+
Ge(n[s]);
|
|
756
756
|
t.c = n, delete t.cases;
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
759
|
case 2: {
|
|
760
760
|
const t = e, n = t.items;
|
|
761
761
|
for (let s = 0; s < n.length; s++)
|
|
762
|
-
|
|
762
|
+
Ge(n[s]);
|
|
763
763
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
764
764
|
break;
|
|
765
765
|
}
|
|
@@ -773,7 +773,7 @@ function We(e) {
|
|
|
773
773
|
}
|
|
774
774
|
case 6: {
|
|
775
775
|
const t = e;
|
|
776
|
-
|
|
776
|
+
Ge(t.key), t.k = t.key, delete t.key, t.modifier && (Ge(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
777
777
|
break;
|
|
778
778
|
}
|
|
779
779
|
case 5: {
|
|
@@ -810,7 +810,7 @@ function js(e, t) {
|
|
|
810
810
|
const i = D ? s : "";
|
|
811
811
|
m(l ? i + " ".repeat(A) : i);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function N(A = !0) {
|
|
814
814
|
const D = ++c.indentLevel;
|
|
815
815
|
A && p(D);
|
|
816
816
|
}
|
|
@@ -824,7 +824,7 @@ function js(e, t) {
|
|
|
824
824
|
return {
|
|
825
825
|
context: u,
|
|
826
826
|
push: m,
|
|
827
|
-
indent:
|
|
827
|
+
indent: N,
|
|
828
828
|
deindent: L,
|
|
829
829
|
newline: O,
|
|
830
830
|
helper: (A) => `_${A}`,
|
|
@@ -838,7 +838,7 @@ function Vs(e, t) {
|
|
|
838
838
|
/* HelperNameMap.LINKED */
|
|
839
839
|
)}(`), Xe(e, t.key), t.modifier ? (e.push(", "), Xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Ws(e, t) {
|
|
842
842
|
const { helper: n, needIndent: s } = e;
|
|
843
843
|
e.push(`${n(
|
|
844
844
|
"normalize"
|
|
@@ -849,7 +849,7 @@ function Gs(e, t) {
|
|
|
849
849
|
e.push(", ");
|
|
850
850
|
e.deindent(s()), e.push("])");
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Gs(e, t) {
|
|
853
853
|
const { helper: n, needIndent: s } = e;
|
|
854
854
|
if (t.cases.length > 1) {
|
|
855
855
|
e.push(`${n(
|
|
@@ -872,10 +872,10 @@ function Xe(e, t) {
|
|
|
872
872
|
xs(e, t);
|
|
873
873
|
break;
|
|
874
874
|
case 1:
|
|
875
|
-
|
|
875
|
+
Gs(e, t);
|
|
876
876
|
break;
|
|
877
877
|
case 2:
|
|
878
|
-
|
|
878
|
+
Ws(e, t);
|
|
879
879
|
break;
|
|
880
880
|
case 6:
|
|
881
881
|
Vs(e, t);
|
|
@@ -921,7 +921,7 @@ const Zs = (e, t = {}) => {
|
|
|
921
921
|
breakLineCode: l,
|
|
922
922
|
needIndent: a
|
|
923
923
|
});
|
|
924
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${Yt(c.map((
|
|
924
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${Yt(c.map((N) => `${N}: _${N}`), ", ")} } = ctx`), u.newline()), u.push("return "), Xe(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
925
925
|
const { code: m, map: p } = u.context();
|
|
926
926
|
return {
|
|
927
927
|
ast: e,
|
|
@@ -932,7 +932,7 @@ const Zs = (e, t = {}) => {
|
|
|
932
932
|
};
|
|
933
933
|
function Xs(e, t = {}) {
|
|
934
934
|
const n = de({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ws(n).parse(e);
|
|
935
|
-
return s ? (a && Us(u), l &&
|
|
935
|
+
return s ? (a && Us(u), l && Ge(u), { ast: u, code: "" }) : (Fs(u, n), Zs(u, n));
|
|
936
936
|
}
|
|
937
937
|
var Ys = { env: { NODE_ENV: "production" } };
|
|
938
938
|
function Bs() {
|
|
@@ -949,7 +949,7 @@ function Hs(e, t) {
|
|
|
949
949
|
/* NodeTypes.Resource */
|
|
950
950
|
);
|
|
951
951
|
if (Ht(n) === 1) {
|
|
952
|
-
const a =
|
|
952
|
+
const a = Ks(n);
|
|
953
953
|
return e.plural(a.reduce((c, u) => [
|
|
954
954
|
...c,
|
|
955
955
|
rn(e, u)
|
|
@@ -961,9 +961,9 @@ const $s = ["b", "body"];
|
|
|
961
961
|
function Js(e) {
|
|
962
962
|
return Me(e, $s);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
function
|
|
966
|
-
return Me(e,
|
|
964
|
+
const zs = ["c", "cases"];
|
|
965
|
+
function Ks(e) {
|
|
966
|
+
return Me(e, zs, []);
|
|
967
967
|
}
|
|
968
968
|
function rn(e, t) {
|
|
969
969
|
const n = qs(t);
|
|
@@ -974,9 +974,9 @@ function rn(e, t) {
|
|
|
974
974
|
return e.normalize(s);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
const
|
|
977
|
+
const Qs = ["s", "static"];
|
|
978
978
|
function qs(e) {
|
|
979
|
-
return Me(e,
|
|
979
|
+
return Me(e, Qs);
|
|
980
980
|
}
|
|
981
981
|
const ea = ["i", "items"];
|
|
982
982
|
function ta(e) {
|
|
@@ -991,17 +991,17 @@ function wt(e, t) {
|
|
|
991
991
|
return ot(t, n);
|
|
992
992
|
case 4: {
|
|
993
993
|
const s = t;
|
|
994
|
-
if (
|
|
994
|
+
if (Ie(s, "k") && s.k)
|
|
995
995
|
return e.interpolate(e.named(s.k));
|
|
996
|
-
if (
|
|
996
|
+
if (Ie(s, "key") && s.key)
|
|
997
997
|
return e.interpolate(e.named(s.key));
|
|
998
998
|
throw et(n);
|
|
999
999
|
}
|
|
1000
1000
|
case 5: {
|
|
1001
1001
|
const s = t;
|
|
1002
|
-
if (
|
|
1002
|
+
if (Ie(s, "i") && me(s.i))
|
|
1003
1003
|
return e.interpolate(e.list(s.i));
|
|
1004
|
-
if (
|
|
1004
|
+
if (Ie(s, "index") && me(s.index))
|
|
1005
1005
|
return e.interpolate(e.list(s.index));
|
|
1006
1006
|
throw et(n);
|
|
1007
1007
|
}
|
|
@@ -1045,7 +1045,7 @@ function oa(e) {
|
|
|
1045
1045
|
function Me(e, t, n) {
|
|
1046
1046
|
for (let s = 0; s < t.length; s++) {
|
|
1047
1047
|
const l = t[s];
|
|
1048
|
-
if (
|
|
1048
|
+
if (Ie(e, l) && e[l] != null)
|
|
1049
1049
|
return e[l];
|
|
1050
1050
|
}
|
|
1051
1051
|
return n;
|
|
@@ -1056,11 +1056,11 @@ function et(e) {
|
|
|
1056
1056
|
const ia = (e) => e;
|
|
1057
1057
|
let it = ee();
|
|
1058
1058
|
function Ye(e) {
|
|
1059
|
-
return
|
|
1059
|
+
return z(e) && Ht(e) === 0 && (Ie(e, "b") || Ie(e, "body"));
|
|
1060
1060
|
}
|
|
1061
1061
|
function ca(e, t = {}) {
|
|
1062
1062
|
let n = !1;
|
|
1063
|
-
const s = t.onError ||
|
|
1063
|
+
const s = t.onError || Ns;
|
|
1064
1064
|
return t.onError = (l) => {
|
|
1065
1065
|
n = !0, s(l);
|
|
1066
1066
|
}, { ...Xs(e, t), detectError: n };
|
|
@@ -1104,7 +1104,7 @@ function _a(e) {
|
|
|
1104
1104
|
return (t) => tt && tt.emit(e, t);
|
|
1105
1105
|
}
|
|
1106
1106
|
const Ce = {
|
|
1107
|
-
INVALID_ARGUMENT:
|
|
1107
|
+
INVALID_ARGUMENT: Is,
|
|
1108
1108
|
// 17
|
|
1109
1109
|
INVALID_DATE_ARGUMENT: 18,
|
|
1110
1110
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1138,7 +1138,7 @@ function ln(e) {
|
|
|
1138
1138
|
function ga(e, t, n) {
|
|
1139
1139
|
return [.../* @__PURE__ */ new Set([
|
|
1140
1140
|
n,
|
|
1141
|
-
...ce(t) ? t :
|
|
1141
|
+
...ce(t) ? t : z(t) ? Object.keys(t) : P(t) ? [t] : [n]
|
|
1142
1142
|
])];
|
|
1143
1143
|
}
|
|
1144
1144
|
function Dn(e, t, n) {
|
|
@@ -1346,11 +1346,11 @@ const va = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
|
1346
1346
|
function Ea(e) {
|
|
1347
1347
|
return va.test(e);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function ya(e) {
|
|
1350
1350
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1351
1351
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Ia(e) {
|
|
1354
1354
|
if (e == null)
|
|
1355
1355
|
return "o";
|
|
1356
1356
|
switch (e.charCodeAt(0)) {
|
|
@@ -1375,13 +1375,13 @@ function Na(e) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return "i";
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Na(e) {
|
|
1379
1379
|
const t = e.trim();
|
|
1380
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ea(t) ?
|
|
1380
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ea(t) ? ya(t) : "*" + t;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function ka(e) {
|
|
1383
1383
|
const t = [];
|
|
1384
|
-
let n = -1, s = 0, l = 0, a, c, u, m, p,
|
|
1384
|
+
let n = -1, s = 0, l = 0, a, c, u, m, p, N, L;
|
|
1385
1385
|
const O = [];
|
|
1386
1386
|
O[
|
|
1387
1387
|
0
|
|
@@ -1411,7 +1411,7 @@ function Ta(e) {
|
|
|
1411
1411
|
/* Actions.APPEND */
|
|
1412
1412
|
]();
|
|
1413
1413
|
else {
|
|
1414
|
-
if (l = 0, c === void 0 || (c =
|
|
1414
|
+
if (l = 0, c === void 0 || (c = Na(c), c === !1))
|
|
1415
1415
|
return !1;
|
|
1416
1416
|
O[
|
|
1417
1417
|
1
|
|
@@ -1429,21 +1429,21 @@ function Ta(e) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
for (; s !== null; )
|
|
1431
1431
|
if (n++, a = e[n], !(a === "\\" && w())) {
|
|
1432
|
-
if (m =
|
|
1432
|
+
if (m = Ia(a), L = we[s], p = L[m] || L.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (N = O[p[1]], N && (u = a, N() === !1))))
|
|
1433
1433
|
return;
|
|
1434
1434
|
if (s === 7)
|
|
1435
1435
|
return t;
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
const cn = /* @__PURE__ */ new Map();
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1439
|
+
function Ta(e, t) {
|
|
1440
|
+
return z(e) ? e[t] : null;
|
|
1441
1441
|
}
|
|
1442
1442
|
function Oa(e, t) {
|
|
1443
|
-
if (!
|
|
1443
|
+
if (!z(e))
|
|
1444
1444
|
return null;
|
|
1445
1445
|
let n = cn.get(t);
|
|
1446
|
-
if (n || (n =
|
|
1446
|
+
if (n || (n = ka(t), n && cn.set(t, n)), !n)
|
|
1447
1447
|
return null;
|
|
1448
1448
|
const s = n.length;
|
|
1449
1449
|
let l = e, a = 0;
|
|
@@ -1458,9 +1458,9 @@ function Oa(e, t) {
|
|
|
1458
1458
|
const La = "10.0.5", vt = -1, pt = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1459
1459
|
function Ca() {
|
|
1460
1460
|
return {
|
|
1461
|
-
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1462
|
-
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1463
|
-
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" &&
|
|
1461
|
+
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" && z(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1462
|
+
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" && z(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1463
|
+
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" && z(e) && "__v_isVNode" in e ? mn(e.children) : e
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
let Mn;
|
|
@@ -1485,16 +1485,16 @@ const dn = (e) => {
|
|
|
1485
1485
|
}, wa = () => Un;
|
|
1486
1486
|
let fn = 0;
|
|
1487
1487
|
function Pa(e = {}) {
|
|
1488
|
-
const t = ae(e.onWarn) ? e.onWarn : Es, n = P(e.version) ? e.version : La, s = P(e.locale) || ae(e.locale) ? e.locale : pt, l = ae(s) ? pt : s, a = ce(e.fallbackLocale) || J(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : At(l), u = J(e.datetimeFormats) ? e.datetimeFormats : At(l), m = J(e.numberFormats) ? e.numberFormats : At(l), p = de(ee(), e.modifiers, Ca()),
|
|
1488
|
+
const t = ae(e.onWarn) ? e.onWarn : Es, n = P(e.version) ? e.version : La, s = P(e.locale) || ae(e.locale) ? e.locale : pt, l = ae(s) ? pt : s, a = ce(e.fallbackLocale) || J(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : At(l), u = J(e.datetimeFormats) ? e.datetimeFormats : At(l), m = J(e.numberFormats) ? e.numberFormats : At(l), p = de(ee(), e.modifiers, Ca()), N = e.pluralRules || ee(), L = ae(e.missing) ? e.missing : null, O = ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, A = !!e.unresolving, D = ae(e.postTranslation) ? e.postTranslation : null, i = J(e.processor) ? e.processor : null, d = ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, k = !!e.escapeParameter, _ = ae(e.messageCompiler) ? e.messageCompiler : Mn, M = ae(e.messageResolver) ? e.messageResolver : wn || Ta, S = ae(e.localeFallbacker) ? e.localeFallbacker : Pn || ga, E = z(e.fallbackContext) ? e.fallbackContext : void 0, Y = e, b = z(Y.__datetimeFormatters) ? Y.__datetimeFormatters : /* @__PURE__ */ new Map(), h = z(Y.__numberFormatters) ? Y.__numberFormatters : /* @__PURE__ */ new Map(), C = z(Y.__meta) ? Y.__meta : {};
|
|
1489
1489
|
fn++;
|
|
1490
|
-
const
|
|
1490
|
+
const y = {
|
|
1491
1491
|
version: n,
|
|
1492
1492
|
cid: fn,
|
|
1493
1493
|
locale: s,
|
|
1494
1494
|
fallbackLocale: a,
|
|
1495
1495
|
messages: c,
|
|
1496
1496
|
modifiers: p,
|
|
1497
|
-
pluralRules:
|
|
1497
|
+
pluralRules: N,
|
|
1498
1498
|
missing: L,
|
|
1499
1499
|
missingWarn: O,
|
|
1500
1500
|
fallbackWarn: w,
|
|
@@ -1503,7 +1503,7 @@ function Pa(e = {}) {
|
|
|
1503
1503
|
postTranslation: D,
|
|
1504
1504
|
processor: i,
|
|
1505
1505
|
warnHtmlMessage: d,
|
|
1506
|
-
escapeParameter:
|
|
1506
|
+
escapeParameter: k,
|
|
1507
1507
|
messageCompiler: _,
|
|
1508
1508
|
messageResolver: M,
|
|
1509
1509
|
localeFallbacker: S,
|
|
@@ -1511,7 +1511,7 @@ function Pa(e = {}) {
|
|
|
1511
1511
|
onWarn: t,
|
|
1512
1512
|
__meta: C
|
|
1513
1513
|
};
|
|
1514
|
-
return
|
|
1514
|
+
return y.datetimeFormats = u, y.numberFormats = m, y.__datetimeFormatters = b, y.__numberFormatters = h, __INTLIFY_PROD_DEVTOOLS__ && da(y, n, C), y;
|
|
1515
1515
|
}
|
|
1516
1516
|
const At = (e) => ({ [e]: ee() });
|
|
1517
1517
|
function Jt(e, t, n, s, l) {
|
|
@@ -1522,7 +1522,7 @@ function Jt(e, t, n, s, l) {
|
|
|
1522
1522
|
} else
|
|
1523
1523
|
return t;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function Qe(e, t, n) {
|
|
1526
1526
|
const s = e;
|
|
1527
1527
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1528
1528
|
}
|
|
@@ -1539,9 +1539,9 @@ function Ua(e, t) {
|
|
|
1539
1539
|
return !1;
|
|
1540
1540
|
}
|
|
1541
1541
|
function _n(e, ...t) {
|
|
1542
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p,
|
|
1543
|
-
ie(
|
|
1544
|
-
const w = !!
|
|
1542
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, N, L] = Pt(...t), O = ie(N.missingWarn) ? N.missingWarn : e.missingWarn;
|
|
1543
|
+
ie(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn;
|
|
1544
|
+
const w = !!N.part, V = $t(e, N), A = c(
|
|
1545
1545
|
e,
|
|
1546
1546
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1547
1547
|
l,
|
|
@@ -1550,9 +1550,9 @@ function _n(e, ...t) {
|
|
|
1550
1550
|
if (!P(m) || m === "")
|
|
1551
1551
|
return new Intl.DateTimeFormat(V, L).format(p);
|
|
1552
1552
|
let D = {}, i, d = null;
|
|
1553
|
-
const
|
|
1553
|
+
const k = "datetime format";
|
|
1554
1554
|
for (let S = 0; S < A.length && (i = A[S], D = n[i] || {}, d = D[m], !J(d)); S++)
|
|
1555
|
-
Jt(e, m, i, O,
|
|
1555
|
+
Jt(e, m, i, O, k);
|
|
1556
1556
|
if (!J(d) || !P(i))
|
|
1557
1557
|
return s ? vt : m;
|
|
1558
1558
|
let _ = `${i}__${m}`;
|
|
@@ -1616,9 +1616,9 @@ function pn(e, t, n) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
function gn(e, ...t) {
|
|
1619
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p,
|
|
1620
|
-
ie(
|
|
1621
|
-
const w = !!
|
|
1619
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, N, L] = Ft(...t), O = ie(N.missingWarn) ? N.missingWarn : e.missingWarn;
|
|
1620
|
+
ie(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn;
|
|
1621
|
+
const w = !!N.part, V = $t(e, N), A = c(
|
|
1622
1622
|
e,
|
|
1623
1623
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1624
1624
|
l,
|
|
@@ -1627,9 +1627,9 @@ function gn(e, ...t) {
|
|
|
1627
1627
|
if (!P(m) || m === "")
|
|
1628
1628
|
return new Intl.NumberFormat(V, L).format(p);
|
|
1629
1629
|
let D = {}, i, d = null;
|
|
1630
|
-
const
|
|
1630
|
+
const k = "number format";
|
|
1631
1631
|
for (let S = 0; S < A.length && (i = A[S], D = n[i] || {}, d = D[m], !J(d)); S++)
|
|
1632
|
-
Jt(e, m, i, O,
|
|
1632
|
+
Jt(e, m, i, O, k);
|
|
1633
1633
|
if (!J(d) || !P(i))
|
|
1634
1634
|
return s ? vt : m;
|
|
1635
1635
|
let _ = `${i}__${m}`;
|
|
@@ -1676,7 +1676,7 @@ function hn(e, t, n) {
|
|
|
1676
1676
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
const ja = (e) => e, Va = (e) => "",
|
|
1679
|
+
const ja = (e) => e, Va = (e) => "", Wa = "text", Ga = (e) => e.length === 0 ? "" : Yt(e), xa = vs;
|
|
1680
1680
|
function bn(e, t) {
|
|
1681
1681
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1682
1682
|
}
|
|
@@ -1688,28 +1688,28 @@ function Xa(e, t) {
|
|
|
1688
1688
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1689
1689
|
}
|
|
1690
1690
|
function Ya(e = {}) {
|
|
1691
|
-
const t = e.locale, n = Za(e), s =
|
|
1691
|
+
const t = e.locale, n = Za(e), s = z(e.pluralRules) && P(t) && ae(e.pluralRules[t]) ? e.pluralRules[t] : bn, l = z(e.pluralRules) && P(t) && ae(e.pluralRules[t]) ? bn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], u = (i) => c[i], m = e.named || ee();
|
|
1692
1692
|
me(e.pluralIndex) && Xa(n, m);
|
|
1693
1693
|
const p = (i) => m[i];
|
|
1694
|
-
function
|
|
1695
|
-
const
|
|
1696
|
-
return
|
|
1694
|
+
function N(i, d) {
|
|
1695
|
+
const k = ae(e.messages) ? e.messages(i, !!d) : z(e.messages) ? e.messages[i] : !1;
|
|
1696
|
+
return k || (e.parent ? e.parent.message(i) : Va);
|
|
1697
1697
|
}
|
|
1698
|
-
const L = (i) => e.modifiers ? e.modifiers[i] : ja, O = J(e.processor) && ae(e.processor.normalize) ? e.processor.normalize :
|
|
1698
|
+
const L = (i) => e.modifiers ? e.modifiers[i] : ja, O = J(e.processor) && ae(e.processor.normalize) ? e.processor.normalize : Ga, w = J(e.processor) && ae(e.processor.interpolate) ? e.processor.interpolate : xa, V = J(e.processor) && P(e.processor.type) ? e.processor.type : Wa, D = {
|
|
1699
1699
|
list: u,
|
|
1700
1700
|
named: p,
|
|
1701
1701
|
plural: a,
|
|
1702
1702
|
linked: (i, ...d) => {
|
|
1703
|
-
const [
|
|
1703
|
+
const [k, _] = d;
|
|
1704
1704
|
let M = "text", S = "";
|
|
1705
|
-
d.length === 1 ?
|
|
1706
|
-
const E =
|
|
1705
|
+
d.length === 1 ? z(k) ? (S = k.modifier || S, M = k.type || M) : P(k) && (S = k || S) : d.length === 2 && (P(k) && (S = k || S), P(_) && (M = _ || M));
|
|
1706
|
+
const E = N(i, !0)(D), Y = (
|
|
1707
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1708
1708
|
M === "vnode" && ce(E) && S ? E[0] : E
|
|
1709
1709
|
);
|
|
1710
1710
|
return S ? L(S)(Y, M) : Y;
|
|
1711
1711
|
},
|
|
1712
|
-
message:
|
|
1712
|
+
message: N,
|
|
1713
1713
|
type: V,
|
|
1714
1714
|
interpolate: w,
|
|
1715
1715
|
normalize: O,
|
|
@@ -1719,45 +1719,45 @@ function Ya(e = {}) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const vn = () => "", ve = (e) => ae(e);
|
|
1721
1721
|
function En(e, ...t) {
|
|
1722
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = Ut(...t),
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = Ut(...t), N = ie(p.missingWarn) ? p.missingWarn : e.missingWarn, L = ie(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, O = ie(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, w = !!p.resolvedMessage, V = P(p.default) || ie(p.default) ? ie(p.default) ? a ? m : () => m : p.default : n ? a ? m : () => m : null, A = n || V != null && (P(V) || ae(V)), D = $t(e, p);
|
|
1723
1723
|
O && Ba(p);
|
|
1724
|
-
let [i, d,
|
|
1724
|
+
let [i, d, k] = w ? [
|
|
1725
1725
|
m,
|
|
1726
1726
|
D,
|
|
1727
1727
|
u[D] || ee()
|
|
1728
|
-
] :
|
|
1728
|
+
] : Wn(e, m, D, c, L, N), _ = i, M = m;
|
|
1729
1729
|
if (!w && !(P(_) || Ye(_) || ve(_)) && A && (_ = V, M = _), !w && (!(P(_) || Ye(_) || ve(_)) || !P(d)))
|
|
1730
1730
|
return l ? vt : m;
|
|
1731
1731
|
let S = !1;
|
|
1732
1732
|
const E = () => {
|
|
1733
1733
|
S = !0;
|
|
1734
|
-
}, Y = ve(_) ? _ :
|
|
1734
|
+
}, Y = ve(_) ? _ : Gn(e, m, d, _, M, E);
|
|
1735
1735
|
if (S)
|
|
1736
1736
|
return _;
|
|
1737
|
-
const b = Ja(e, d,
|
|
1737
|
+
const b = Ja(e, d, k, p), h = Ya(b), C = Ha(e, Y, h), y = s ? s(C, m) : C;
|
|
1738
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1739
1739
|
const F = {
|
|
1740
1740
|
timestamp: Date.now(),
|
|
1741
1741
|
key: P(m) ? m : ve(_) ? _.key : "",
|
|
1742
1742
|
locale: d || (ve(_) ? _.locale : ""),
|
|
1743
1743
|
format: P(_) ? _ : ve(_) ? _.source : "",
|
|
1744
|
-
message:
|
|
1744
|
+
message: y
|
|
1745
1745
|
};
|
|
1746
1746
|
F.meta = de({}, e.__meta, /* @__PURE__ */ Ma() || {}), fa(F);
|
|
1747
1747
|
}
|
|
1748
|
-
return
|
|
1748
|
+
return y;
|
|
1749
1749
|
}
|
|
1750
1750
|
function Ba(e) {
|
|
1751
|
-
ce(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) :
|
|
1751
|
+
ce(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) : z(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1752
1752
|
P(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1756
|
-
const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e,
|
|
1755
|
+
function Wn(e, t, n, s, l, a) {
|
|
1756
|
+
const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e, N = p(e, s, n);
|
|
1757
1757
|
let L = ee(), O, w = null;
|
|
1758
1758
|
const V = "translate";
|
|
1759
|
-
for (let A = 0; A <
|
|
1760
|
-
if (!Ua(O,
|
|
1759
|
+
for (let A = 0; A < N.length && (O = N[A], L = c[O] || ee(), (w = m(L, t)) === null && (w = L[t]), !(P(w) || Ye(w) || ve(w))); A++)
|
|
1760
|
+
if (!Ua(O, N)) {
|
|
1761
1761
|
const D = Jt(
|
|
1762
1762
|
e,
|
|
1763
1763
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1770,7 +1770,7 @@ function Gn(e, t, n, s, l, a) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
return [w, O, L];
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function Gn(e, t, n, s, l, a) {
|
|
1774
1774
|
const { messageCompiler: c, warnHtmlMessage: u } = e;
|
|
1775
1775
|
if (ve(s)) {
|
|
1776
1776
|
const p = s;
|
|
@@ -1805,15 +1805,15 @@ function $a(e, t, n, s, l, a) {
|
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
1807
|
function Ja(e, t, n, s) {
|
|
1808
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext:
|
|
1808
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext: N } = e, O = {
|
|
1809
1809
|
locale: t,
|
|
1810
1810
|
modifiers: l,
|
|
1811
1811
|
pluralRules: a,
|
|
1812
1812
|
messages: (w, V) => {
|
|
1813
1813
|
let A = c(n, w);
|
|
1814
|
-
if (A == null && (
|
|
1815
|
-
const [, , D] =
|
|
1816
|
-
|
|
1814
|
+
if (A == null && (N || V)) {
|
|
1815
|
+
const [, , D] = Wn(
|
|
1816
|
+
N || e,
|
|
1817
1817
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1818
1818
|
w,
|
|
1819
1819
|
t,
|
|
@@ -1825,7 +1825,7 @@ function Ja(e, t, n, s) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
if (P(A) || Ye(A)) {
|
|
1827
1827
|
let D = !1;
|
|
1828
|
-
const d =
|
|
1828
|
+
const d = Gn(e, w, t, A, w, () => {
|
|
1829
1829
|
D = !0;
|
|
1830
1830
|
});
|
|
1831
1831
|
return D ? vn : d;
|
|
@@ -1835,9 +1835,9 @@ function Ja(e, t, n, s) {
|
|
|
1835
1835
|
return e.processor && (O.processor = e.processor), s.list && (O.list = s.list), s.named && (O.named = s.named), me(s.plural) && (O.pluralIndex = s.plural), O;
|
|
1836
1836
|
}
|
|
1837
1837
|
Bs();
|
|
1838
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0f665c73-2e68-450f-9f56-68c3e30a6423", 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_0f665c73-2e68-450f-9f56-68c3e30a6423", 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.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", 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: "1843", ACTIONS_ORCHESTRATION_ID: "012ad866-4e69-48fd-b936-86ebe1601da1.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: "20260622.220.1", 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", 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:12642", 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.11/x64", GITHUB_RUN_ID: "28356621931", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "1e37e6f60abe1289a807ea6a8606c36f6a319f38", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.4/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/feat/KDI-4956-enhance-audit-log-ui", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L0tESS00OTU2LWVuaGFuY2UtYXVkaXQtbG9nLXVpXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzgyNzQxMzUwLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODI3MTkxNTAsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiIzOWExNTY2Yi1hNDk1LTVhNGEtOGVhZi03YjczZDJjNTFjOWUiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3ODI3MTg4NTAsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwiQ2FzdGEtbWVyZVwiLFwiYWN0b3JfaWRcIjpcIjgyMjk4MDE3XCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjg0MDAxMDM1ODExXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIzOTg2MTk0MjNjNzM1YzNkYTZmN2I2YzBlMGEyOWRhODIzZGJhNDU3XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvZmVhdC9LREktNDk1Ni1lbmhhbmNlLWF1ZGl0LWxvZy11aVwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyODM1NjYyMTkzMVwiLFwicnVuX251bWJlclwiOlwiMTM0XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiMWUzN2U2ZjYwYWJlMTI4OWE4MDdlYTZhODYwNmMzNmY2YTMxOWYzOFwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZmVhdC9LREktNDk1Ni1lbmhhbmNlLWF1ZGl0LWxvZy11aVwiLFwid29ya2Zsb3dfc2hhXCI6XCIxZTM3ZTZmNjBhYmUxMjg5YTgwN2VhNmE4NjA2YzM2ZjZhMzE5ZjM4XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L0tESS00OTU2LWVuaGFuY2UtYXVkaXQtbG9nLXVpIiwib3JjaF9pZCI6IjAxMmFkODY2LTRlNjktNDhmZC1iOTM2LTg2ZWJlMTYwMWRhMS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMDEyYWQ4NjYtNGU2OS00OGZkLWI5MzYtODZlYmUxNjAxZGExIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjgzNTY2MjE5MzEiLCJydW5fbnVtYmVyIjoiMTM0IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA4MTc4NCIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjAxMmFkODY2LTRlNjktNDhmZC1iOTM2LTg2ZWJlMTYwMWRhMTozOWExNTY2Yi1hNDk1LTVhNGEtOGVhZi03YjczZDJjNTFjOWUgQWN0aW9ucy5SdW5uZXI6MDEyYWQ4NjYtNGU2OS00OGZkLWI5MzYtODZlYmUxNjAxZGExOjM5YTE1NjZiLWE0OTUtNWE0YS04ZWFmLTdiNzNkMmM1MWM5ZSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMTJhZDg2Ni00ZTY5LTQ4ZmQtYjkzNi04NmViZTE2MDFkYTE6MzlhMTU2NmItYTQ5NS01YTRhLThlYWYtN2I3M2QyYzUxYzllIGdlbmVyYXRlX2lkX3Rva2VuOjAxMmFkODY2LTRlNjktNDhmZC1iOTM2LTg2ZWJlMTYwMWRhMTozOWExNTY2Yi1hNDk1LTVhNGEtOGVhZi03YjczZDJjNTFjOWUgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIxZTM3ZTZmNjBhYmUxMjg5YTgwN2VhNmE4NjA2YzM2ZjZhMzE5ZjM4IiwidHJ1c3RfdGllciI6IjEifQ.T0cB_62yFGU-qKRek6Cecukono1NyZ3ioV7qT0PIt6pQFmXPBVZcsuKfQL-lBw43JaHHCTR3nPv-ViFAGJssGw8gGapV7lsEmtBhDecWItlqAuearHejgKHJ3v9BZa3pbXRXNBlD9j06JgYk9vcaBO6xf1poadBR3Sbj5qKAf9GlrYdGLoef-Uf0QhIfIo71Oz8tftA6Qas5rg3VmeUvQ5-tZ-3cjq14AiUPpOMl5QfhBQGmVc56Qmq4IbgZxMC9gLVz9Vq5mQSY8uLRtRuxKalpGdViiOY09xZpL45PLovnpxw5_5d-RfgcAObMeKgseGJd1qrX5v9JxV8ip3WzDA", 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_720282ff-0a17-4697-a515-f3bbeb0516fa", INVOCATION_ID: "23ca5eeb13f1477fa1ed098cc012e0e2", 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: "134", GITHUB_TRIGGERING_ACTOR: "Casta-mere", 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 1000081784", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/KDI-4956-enhance-audit-log-ui", 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.0.24-dev.14", 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: "1e37e6f60abe1289a807ea6a8606c36f6a319f38", 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/feat/KDI-4956-enhance-audit-log-ui", GITHUB_ACTOR: "Casta-mere", 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_0f665c73-2e68-450f-9f56-68c3e30a6423", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", 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/117//idtoken/012ad866-4e69-48fd-b936-86ebe1601da1/39a1566b-a495-5a4a-8eaf-7b73d2c51c9e?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0f665c73-2e68-450f-9f56-68c3e30a6423", 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", 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_0f665c73-2e68-450f-9f56-68c3e30a6423", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
-
const
|
|
1840
|
-
function
|
|
1838
|
+
var za = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f9b1ca91-1b9e-407a-a879-6d5c1d6199c8", 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_f9b1ca91-1b9e-407a-a879-6d5c1d6199c8", 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.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", 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: "1847", ACTIONS_ORCHESTRATION_ID: "08def392-0be8-40de-ae37-c76c035ed480.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: "20260622.220.1", 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", 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:13339", 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.11/x64", GITHUB_RUN_ID: "28497436915", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "668455dc555d3b2f13c1a0347341d8687452fd2d", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.4/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/feat/KDI-4956-enhance-audit-log-ui", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L0tESS00OTU2LWVuaGFuY2UtYXVkaXQtbG9nLXVpXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzgyOTA4NDU5LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODI4ODYyNTksImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiIzZjZlYjE0MC1jYjA4LTU5Y2YtYTk3Ny0zNGZlODA0YWQ4YmMiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3ODI4ODU5NTksIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwiQ2FzdGEtbWVyZVwiLFwiYWN0b3JfaWRcIjpcIjgyMjk4MDE3XCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjg0NDY2NjA3NTY2XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIzOTg2MTk0MjNjNzM1YzNkYTZmN2I2YzBlMGEyOWRhODIzZGJhNDU3XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvZmVhdC9LREktNDk1Ni1lbmhhbmNlLWF1ZGl0LWxvZy11aVwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyODQ5NzQzNjkxNVwiLFwicnVuX251bWJlclwiOlwiMTM2XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiNjY4NDU1ZGM1NTVkM2IyZjEzYzFhMDM0NzM0MWQ4Njg3NDUyZmQyZFwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZmVhdC9LREktNDk1Ni1lbmhhbmNlLWF1ZGl0LWxvZy11aVwiLFwid29ya2Zsb3dfc2hhXCI6XCI2Njg0NTVkYzU1NWQzYjJmMTNjMWEwMzQ3MzQxZDg2ODc0NTJmZDJkXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L0tESS00OTU2LWVuaGFuY2UtYXVkaXQtbG9nLXVpIiwib3JjaF9pZCI6IjA4ZGVmMzkyLTBiZTgtNDBkZS1hZTM3LWM3NmMwMzVlZDQ4MC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMDhkZWYzOTItMGJlOC00MGRlLWFlMzctYzc2YzAzNWVkNDgwIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjg0OTc0MzY5MTUiLCJydW5fbnVtYmVyIjoiMTM2IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA4MjgyMiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjA4ZGVmMzkyLTBiZTgtNDBkZS1hZTM3LWM3NmMwMzVlZDQ4MDozZjZlYjE0MC1jYjA4LTU5Y2YtYTk3Ny0zNGZlODA0YWQ4YmMgQWN0aW9ucy5SdW5uZXI6MDhkZWYzOTItMGJlOC00MGRlLWFlMzctYzc2YzAzNWVkNDgwOjNmNmViMTQwLWNiMDgtNTljZi1hOTc3LTM0ZmU4MDRhZDhiYyBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowOGRlZjM5Mi0wYmU4LTQwZGUtYWUzNy1jNzZjMDM1ZWQ0ODA6M2Y2ZWIxNDAtY2IwOC01OWNmLWE5NzctMzRmZTgwNGFkOGJjIGdlbmVyYXRlX2lkX3Rva2VuOjA4ZGVmMzkyLTBiZTgtNDBkZS1hZTM3LWM3NmMwMzVlZDQ4MDozZjZlYjE0MC1jYjA4LTU5Y2YtYTk3Ny0zNGZlODA0YWQ4YmMgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI2Njg0NTVkYzU1NWQzYjJmMTNjMWEwMzQ3MzQxZDg2ODc0NTJmZDJkIiwidHJ1c3RfdGllciI6IjEifQ.KeugaLgcyrmzxYtpCXv1ZAzhLKTee_3ZzSIhOBYdAGWTc7iZ2L45UTH9g2QGFzBGyvq5WDzNLH23XzNykgS5A5xnDuRXW31zoGT7F2Za9eoXOtf25sTDqBak-d6spm4sgVvxDsF69RdRvGA495PiqKygnWe3NI6z3pWWHTKcyctSE6IDQQWvIEy66Iz6xdT_nUrYWOz-yKJtRMKy1yz5ghSMDWxKI6mFO4OKK0SEkkz2v8M8-lrF0rM8gPwwAXlF70JrCeYhMTwQAZ2EN2u5AcVbaEXfkEhR0sh9OLF0I72WTFs7WhO-WYEnpdoA6XWuWUiEHv2Ghysbqk5NfxjQ-A", 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_677d8d1a-7b65-4824-85c1-80a22f5e1ff1", INVOCATION_ID: "0876a3b56403461ca7bad0c2e88de438", 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: "136", GITHUB_TRIGGERING_ACTOR: "Casta-mere", 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 1000082822", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/KDI-4956-enhance-audit-log-ui", 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.0.24-dev.15", 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: "668455dc555d3b2f13c1a0347341d8687452fd2d", 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/feat/KDI-4956-enhance-audit-log-ui", GITHUB_ACTOR: "Casta-mere", 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_f9b1ca91-1b9e-407a-a879-6d5c1d6199c8", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", 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-1-azure-eastus.actions.githubusercontent.com/10//idtoken/08def392-0be8-40de-ae37-c76c035ed480/3f6eb140-cb08-59cf-a977-34fe804ad8bc?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f9b1ca91-1b9e-407a-a879-6d5c1d6199c8", 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", 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_f9b1ca91-1b9e-407a-a879-6d5c1d6199c8", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
+
const Ka = "10.0.5";
|
|
1840
|
+
function Qa() {
|
|
1841
1841
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Fe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Fe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1842
1842
|
}
|
|
1843
1843
|
const Be = {
|
|
@@ -1856,25 +1856,25 @@ const Be = {
|
|
|
1856
1856
|
function nt(e, ...t) {
|
|
1857
1857
|
return bt(e, null, void 0);
|
|
1858
1858
|
}
|
|
1859
|
-
const jt = /* @__PURE__ */ Ue("__translateVNode"), Vt = /* @__PURE__ */ Ue("__datetimeParts"),
|
|
1859
|
+
const jt = /* @__PURE__ */ Ue("__translateVNode"), Vt = /* @__PURE__ */ Ue("__datetimeParts"), Wt = /* @__PURE__ */ Ue("__numberParts"), qa = Ue("__setPluralRules"), xn = /* @__PURE__ */ Ue("__injectWithOption"), Gt = /* @__PURE__ */ Ue("__dispose");
|
|
1860
1860
|
function st(e) {
|
|
1861
|
-
if (!
|
|
1861
|
+
if (!z(e))
|
|
1862
1862
|
return e;
|
|
1863
1863
|
for (const t in e)
|
|
1864
|
-
if (
|
|
1864
|
+
if (Ie(e, t))
|
|
1865
1865
|
if (!t.includes("."))
|
|
1866
|
-
|
|
1866
|
+
z(e[t]) && st(e[t]);
|
|
1867
1867
|
else {
|
|
1868
1868
|
const n = t.split("."), s = n.length - 1;
|
|
1869
1869
|
let l = e, a = !1;
|
|
1870
1870
|
for (let c = 0; c < s; c++) {
|
|
1871
|
-
if (n[c] in l || (l[n[c]] = ee()), !
|
|
1871
|
+
if (n[c] in l || (l[n[c]] = ee()), !z(l[n[c]])) {
|
|
1872
1872
|
a = !0;
|
|
1873
1873
|
break;
|
|
1874
1874
|
}
|
|
1875
1875
|
l = l[n[c]];
|
|
1876
1876
|
}
|
|
1877
|
-
a || (l[n[s]] = e[t], delete e[t]),
|
|
1877
|
+
a || (l[n[s]] = e[t], delete e[t]), z(l[n[s]]) && st(l[n[s]]);
|
|
1878
1878
|
}
|
|
1879
1879
|
return e;
|
|
1880
1880
|
}
|
|
@@ -1888,14 +1888,14 @@ function Zn(e, t) {
|
|
|
1888
1888
|
P(u) && ft(JSON.parse(u), c);
|
|
1889
1889
|
}), l == null && a)
|
|
1890
1890
|
for (const u in c)
|
|
1891
|
-
|
|
1891
|
+
Ie(c, u) && st(c[u]);
|
|
1892
1892
|
return c;
|
|
1893
1893
|
}
|
|
1894
1894
|
function Xn(e) {
|
|
1895
1895
|
return e.type;
|
|
1896
1896
|
}
|
|
1897
1897
|
function er(e, t, n) {
|
|
1898
|
-
let s =
|
|
1898
|
+
let s = z(t.messages) ? t.messages : ee();
|
|
1899
1899
|
"__i18nGlobal" in n && (s = Zn(e.locale.value, {
|
|
1900
1900
|
messages: s,
|
|
1901
1901
|
__i18n: n.__i18nGlobal
|
|
@@ -1905,13 +1905,13 @@ function er(e, t, n) {
|
|
|
1905
1905
|
e.mergeLocaleMessage(a, s[a]);
|
|
1906
1906
|
});
|
|
1907
1907
|
{
|
|
1908
|
-
if (
|
|
1908
|
+
if (z(t.datetimeFormats)) {
|
|
1909
1909
|
const a = Object.keys(t.datetimeFormats);
|
|
1910
1910
|
a.length && a.forEach((c) => {
|
|
1911
1911
|
e.mergeDateTimeFormat(c, t.datetimeFormats[c]);
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
|
-
if (
|
|
1914
|
+
if (z(t.numberFormats)) {
|
|
1915
1915
|
const a = Object.keys(t.numberFormats);
|
|
1916
1916
|
a.length && a.forEach((c) => {
|
|
1917
1917
|
e.mergeNumberFormat(c, t.numberFormats[c]);
|
|
@@ -1919,21 +1919,21 @@ function er(e, t, n) {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return _e(
|
|
1922
|
+
function yn(e) {
|
|
1923
|
+
return _e(Qn, null, e, 0);
|
|
1924
1924
|
}
|
|
1925
|
-
const
|
|
1926
|
-
let
|
|
1927
|
-
function
|
|
1925
|
+
const In = "__INTLIFY_META__", Nn = () => [], tr = () => !1;
|
|
1926
|
+
let kn = 0;
|
|
1927
|
+
function Tn(e) {
|
|
1928
1928
|
return (t, n, s, l) => e(n, s, xt() || void 0, l);
|
|
1929
1929
|
}
|
|
1930
1930
|
const nr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1931
1931
|
const e = xt();
|
|
1932
1932
|
let t = null;
|
|
1933
|
-
return e && (t = Xn(e)[
|
|
1933
|
+
return e && (t = Xn(e)[In]) ? { [In]: t } : null;
|
|
1934
1934
|
};
|
|
1935
1935
|
function sr(e = {}) {
|
|
1936
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? gt :
|
|
1936
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? gt : zn;
|
|
1937
1937
|
let c = ie(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1938
1938
|
const u = a(
|
|
1939
1939
|
// prettier-ignore
|
|
@@ -1941,14 +1941,14 @@ function sr(e = {}) {
|
|
|
1941
1941
|
), m = a(
|
|
1942
1942
|
// prettier-ignore
|
|
1943
1943
|
t && c ? t.fallbackLocale.value : P(e.fallbackLocale) || ce(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1944
|
-
), p = a(Zn(u.value, e)),
|
|
1945
|
-
let O = t ? t.missingWarn : ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, D = ae(e.missing) ? e.missing : null, i = ae(e.missing) ?
|
|
1944
|
+
), p = a(Zn(u.value, e)), N = a(J(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), L = a(J(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1945
|
+
let O = t ? t.missingWarn : ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, D = ae(e.missing) ? e.missing : null, i = ae(e.missing) ? Tn(e.missing) : null, d = ae(e.postTranslation) ? e.postTranslation : null, k = t ? t.warnHtmlMessage : ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1946
1946
|
const M = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
1947
1947
|
let S = e.pluralRules || t && t.pluralRules, E;
|
|
1948
1948
|
E = (() => {
|
|
1949
1949
|
s && dn(null);
|
|
1950
1950
|
const f = {
|
|
1951
|
-
version:
|
|
1951
|
+
version: Ka,
|
|
1952
1952
|
locale: u.value,
|
|
1953
1953
|
fallbackLocale: m.value,
|
|
1954
1954
|
messages: p.value,
|
|
@@ -1960,22 +1960,22 @@ function sr(e = {}) {
|
|
|
1960
1960
|
fallbackFormat: A,
|
|
1961
1961
|
unresolving: !0,
|
|
1962
1962
|
postTranslation: d === null ? void 0 : d,
|
|
1963
|
-
warnHtmlMessage:
|
|
1963
|
+
warnHtmlMessage: k,
|
|
1964
1964
|
escapeParameter: _,
|
|
1965
1965
|
messageResolver: e.messageResolver,
|
|
1966
1966
|
messageCompiler: e.messageCompiler,
|
|
1967
1967
|
__meta: { framework: "vue" }
|
|
1968
1968
|
};
|
|
1969
|
-
f.datetimeFormats =
|
|
1970
|
-
const
|
|
1971
|
-
return s && dn(
|
|
1972
|
-
})(),
|
|
1969
|
+
f.datetimeFormats = N.value, f.numberFormats = L.value, f.__datetimeFormatters = J(E) ? E.__datetimeFormatters : void 0, f.__numberFormatters = J(E) ? E.__numberFormatters : void 0;
|
|
1970
|
+
const T = Pa(f);
|
|
1971
|
+
return s && dn(T), T;
|
|
1972
|
+
})(), Qe(E, u.value, m.value);
|
|
1973
1973
|
function b() {
|
|
1974
1974
|
return [
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
m.value,
|
|
1977
1977
|
p.value,
|
|
1978
|
-
|
|
1978
|
+
N.value,
|
|
1979
1979
|
L.value
|
|
1980
1980
|
];
|
|
1981
1981
|
}
|
|
@@ -1987,10 +1987,10 @@ function sr(e = {}) {
|
|
|
1987
1987
|
}), C = q({
|
|
1988
1988
|
get: () => m.value,
|
|
1989
1989
|
set: (f) => {
|
|
1990
|
-
m.value = f, E.fallbackLocale = m.value,
|
|
1990
|
+
m.value = f, E.fallbackLocale = m.value, Qe(E, u.value, f);
|
|
1991
1991
|
}
|
|
1992
|
-
}),
|
|
1993
|
-
function
|
|
1992
|
+
}), y = q(() => p.value), F = /* @__PURE__ */ q(() => N.value), x = /* @__PURE__ */ q(() => L.value);
|
|
1993
|
+
function I() {
|
|
1994
1994
|
return ae(d) ? d : null;
|
|
1995
1995
|
}
|
|
1996
1996
|
function R(f) {
|
|
@@ -1999,44 +1999,44 @@ function sr(e = {}) {
|
|
|
1999
1999
|
function v() {
|
|
2000
2000
|
return D;
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2003
|
-
f !== null && (i =
|
|
2002
|
+
function G(f) {
|
|
2003
|
+
f !== null && (i = Tn(f)), D = f, E.missing = i;
|
|
2004
2004
|
}
|
|
2005
|
-
const
|
|
2005
|
+
const W = (f, T, ne, le, Pe, at) => {
|
|
2006
2006
|
b();
|
|
2007
|
-
let
|
|
2007
|
+
let We;
|
|
2008
2008
|
try {
|
|
2009
|
-
|
|
2009
|
+
za.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = t ? wa() : void 0), We = f(E);
|
|
2010
2010
|
} finally {
|
|
2011
2011
|
__INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = void 0);
|
|
2012
2012
|
}
|
|
2013
2013
|
if (ne !== "translate exists" && // for not `te` (e.g `t`)
|
|
2014
|
-
me(
|
|
2015
|
-
const [$n, xr] =
|
|
2014
|
+
me(We) && We === vt || ne === "translate exists" && !We) {
|
|
2015
|
+
const [$n, xr] = T();
|
|
2016
2016
|
return t && V ? le(t) : Pe($n);
|
|
2017
2017
|
} else {
|
|
2018
|
-
if (at(
|
|
2019
|
-
return
|
|
2018
|
+
if (at(We))
|
|
2019
|
+
return We;
|
|
2020
2020
|
throw nt(Be.UNEXPECTED_RETURN_TYPE);
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
2023
|
function U(...f) {
|
|
2024
|
-
return
|
|
2024
|
+
return W((T) => Reflect.apply(En, null, [T, ...f]), () => Ut(...f), "translate", (T) => Reflect.apply(T.t, T, [...f]), (T) => T, (T) => P(T));
|
|
2025
2025
|
}
|
|
2026
2026
|
function te(...f) {
|
|
2027
|
-
const [
|
|
2028
|
-
if (le && !
|
|
2027
|
+
const [T, ne, le] = f;
|
|
2028
|
+
if (le && !z(le))
|
|
2029
2029
|
throw nt(Be.INVALID_ARGUMENT);
|
|
2030
|
-
return U(
|
|
2030
|
+
return U(T, ne, de({ resolvedMessage: !0 }, le || {}));
|
|
2031
2031
|
}
|
|
2032
2032
|
function B(...f) {
|
|
2033
|
-
return
|
|
2033
|
+
return W((T) => Reflect.apply(_n, null, [T, ...f]), () => Pt(...f), "datetime format", (T) => Reflect.apply(T.d, T, [...f]), () => un, (T) => P(T));
|
|
2034
2034
|
}
|
|
2035
2035
|
function he(...f) {
|
|
2036
|
-
return
|
|
2036
|
+
return W((T) => Reflect.apply(gn, null, [T, ...f]), () => Ft(...f), "number format", (T) => Reflect.apply(T.n, T, [...f]), () => un, (T) => P(T));
|
|
2037
2037
|
}
|
|
2038
2038
|
function fe(f) {
|
|
2039
|
-
return f.map((
|
|
2039
|
+
return f.map((T) => P(T) || me(T) || ie(T) ? yn(String(T)) : T);
|
|
2040
2040
|
}
|
|
2041
2041
|
const Z = {
|
|
2042
2042
|
normalize: fe,
|
|
@@ -2044,107 +2044,107 @@ function sr(e = {}) {
|
|
|
2044
2044
|
type: "vnode"
|
|
2045
2045
|
};
|
|
2046
2046
|
function Ee(...f) {
|
|
2047
|
-
return
|
|
2047
|
+
return W((T) => {
|
|
2048
2048
|
let ne;
|
|
2049
|
-
const le =
|
|
2049
|
+
const le = T;
|
|
2050
2050
|
try {
|
|
2051
2051
|
le.processor = Z, ne = Reflect.apply(En, null, [le, ...f]);
|
|
2052
2052
|
} finally {
|
|
2053
2053
|
le.processor = null;
|
|
2054
2054
|
}
|
|
2055
2055
|
return ne;
|
|
2056
|
-
}, () => Ut(...f), "translate", (
|
|
2056
|
+
}, () => Ut(...f), "translate", (T) => T[jt](...f), (T) => [yn(T)], (T) => ce(T));
|
|
2057
2057
|
}
|
|
2058
2058
|
function $e(...f) {
|
|
2059
|
-
return
|
|
2059
|
+
return W((T) => Reflect.apply(gn, null, [T, ...f]), () => Ft(...f), "number format", (T) => T[Wt](...f), Nn, (T) => P(T) || ce(T));
|
|
2060
2060
|
}
|
|
2061
2061
|
function Je(...f) {
|
|
2062
|
-
return
|
|
2062
|
+
return W((T) => Reflect.apply(_n, null, [T, ...f]), () => Pt(...f), "datetime format", (T) => T[Vt](...f), Nn, (T) => P(T) || ce(T));
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function yt(f) {
|
|
2065
2065
|
S = f, E.pluralRules = S;
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2067
|
+
function It(f, T) {
|
|
2068
|
+
return W(() => {
|
|
2069
2069
|
if (!f)
|
|
2070
2070
|
return !1;
|
|
2071
|
-
const ne = P(
|
|
2071
|
+
const ne = P(T) ? T : u.value, le = je(ne), Pe = E.messageResolver(le, f);
|
|
2072
2072
|
return Ye(Pe) || ve(Pe) || P(Pe);
|
|
2073
|
-
}, () => [f], "translate exists", (ne) => Reflect.apply(ne.te, ne, [f,
|
|
2073
|
+
}, () => [f], "translate exists", (ne) => Reflect.apply(ne.te, ne, [f, T]), tr, (ne) => ie(ne));
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2076
|
-
let
|
|
2075
|
+
function Nt(f) {
|
|
2076
|
+
let T = null;
|
|
2077
2077
|
const ne = Dn(E, m.value, u.value);
|
|
2078
2078
|
for (let le = 0; le < ne.length; le++) {
|
|
2079
2079
|
const Pe = p.value[ne[le]] || {}, at = E.messageResolver(Pe, f);
|
|
2080
2080
|
if (at != null) {
|
|
2081
|
-
|
|
2081
|
+
T = at;
|
|
2082
2082
|
break;
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
|
-
return
|
|
2085
|
+
return T;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2088
|
-
const
|
|
2089
|
-
return
|
|
2087
|
+
function ze(f) {
|
|
2088
|
+
const T = Nt(f);
|
|
2089
|
+
return T ?? (t ? t.tm(f) || {} : {});
|
|
2090
2090
|
}
|
|
2091
2091
|
function je(f) {
|
|
2092
2092
|
return p.value[f] || {};
|
|
2093
2093
|
}
|
|
2094
|
-
function Ve(f,
|
|
2094
|
+
function Ve(f, T) {
|
|
2095
2095
|
if (l) {
|
|
2096
|
-
const ne = { [f]:
|
|
2096
|
+
const ne = { [f]: T };
|
|
2097
2097
|
for (const le in ne)
|
|
2098
|
-
|
|
2099
|
-
|
|
2098
|
+
Ie(ne, le) && st(ne[le]);
|
|
2099
|
+
T = ne[f];
|
|
2100
2100
|
}
|
|
2101
|
-
p.value[f] =
|
|
2101
|
+
p.value[f] = T, E.messages = p.value;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Ke(f, T) {
|
|
2104
2104
|
p.value[f] = p.value[f] || {};
|
|
2105
|
-
const ne = { [f]:
|
|
2105
|
+
const ne = { [f]: T };
|
|
2106
2106
|
if (l)
|
|
2107
2107
|
for (const le in ne)
|
|
2108
|
-
|
|
2109
|
-
|
|
2108
|
+
Ie(ne, le) && st(ne[le]);
|
|
2109
|
+
T = ne[f], ft(T, p.value[f]), E.messages = p.value;
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2112
|
-
return
|
|
2111
|
+
function kt(f) {
|
|
2112
|
+
return N.value[f] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function r(f,
|
|
2115
|
-
|
|
2114
|
+
function r(f, T) {
|
|
2115
|
+
N.value[f] = T, E.datetimeFormats = N.value, pn(E, f, T);
|
|
2116
2116
|
}
|
|
2117
|
-
function o(f,
|
|
2118
|
-
|
|
2117
|
+
function o(f, T) {
|
|
2118
|
+
N.value[f] = de(N.value[f] || {}, T), E.datetimeFormats = N.value, pn(E, f, T);
|
|
2119
2119
|
}
|
|
2120
2120
|
function g(f) {
|
|
2121
2121
|
return L.value[f] || {};
|
|
2122
2122
|
}
|
|
2123
|
-
function j(f,
|
|
2124
|
-
L.value[f] =
|
|
2123
|
+
function j(f, T) {
|
|
2124
|
+
L.value[f] = T, E.numberFormats = L.value, hn(E, f, T);
|
|
2125
2125
|
}
|
|
2126
|
-
function re(f,
|
|
2127
|
-
L.value[f] = de(L.value[f] || {},
|
|
2126
|
+
function re(f, T) {
|
|
2127
|
+
L.value[f] = de(L.value[f] || {}, T), E.numberFormats = L.value, hn(E, f, T);
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2130
|
-
c && (u.value = f, E.locale = f,
|
|
2129
|
+
kn++, t && qt && (St(t.locale, (f) => {
|
|
2130
|
+
c && (u.value = f, E.locale = f, Qe(E, u.value, m.value));
|
|
2131
2131
|
}), St(t.fallbackLocale, (f) => {
|
|
2132
|
-
c && (m.value = f, E.fallbackLocale = f,
|
|
2132
|
+
c && (m.value = f, E.fallbackLocale = f, Qe(E, u.value, m.value));
|
|
2133
2133
|
}));
|
|
2134
2134
|
const X = {
|
|
2135
|
-
id:
|
|
2135
|
+
id: kn,
|
|
2136
2136
|
locale: h,
|
|
2137
2137
|
fallbackLocale: C,
|
|
2138
2138
|
get inheritLocale() {
|
|
2139
2139
|
return c;
|
|
2140
2140
|
},
|
|
2141
2141
|
set inheritLocale(f) {
|
|
2142
|
-
c = f, f && t && (u.value = t.locale.value, m.value = t.fallbackLocale.value,
|
|
2142
|
+
c = f, f && t && (u.value = t.locale.value, m.value = t.fallbackLocale.value, Qe(E, u.value, m.value));
|
|
2143
2143
|
},
|
|
2144
2144
|
get availableLocales() {
|
|
2145
2145
|
return Object.keys(p.value).sort();
|
|
2146
2146
|
},
|
|
2147
|
-
messages:
|
|
2147
|
+
messages: y,
|
|
2148
2148
|
get modifiers() {
|
|
2149
2149
|
return M;
|
|
2150
2150
|
},
|
|
@@ -2179,10 +2179,10 @@ function sr(e = {}) {
|
|
|
2179
2179
|
A = f, E.fallbackFormat = A;
|
|
2180
2180
|
},
|
|
2181
2181
|
get warnHtmlMessage() {
|
|
2182
|
-
return
|
|
2182
|
+
return k;
|
|
2183
2183
|
},
|
|
2184
2184
|
set warnHtmlMessage(f) {
|
|
2185
|
-
|
|
2185
|
+
k = f, E.warnHtmlMessage = f;
|
|
2186
2186
|
},
|
|
2187
2187
|
get escapeParameter() {
|
|
2188
2188
|
return _;
|
|
@@ -2193,16 +2193,16 @@ function sr(e = {}) {
|
|
|
2193
2193
|
t: U,
|
|
2194
2194
|
getLocaleMessage: je,
|
|
2195
2195
|
setLocaleMessage: Ve,
|
|
2196
|
-
mergeLocaleMessage:
|
|
2197
|
-
getPostTranslationHandler:
|
|
2196
|
+
mergeLocaleMessage: Ke,
|
|
2197
|
+
getPostTranslationHandler: I,
|
|
2198
2198
|
setPostTranslationHandler: R,
|
|
2199
2199
|
getMissingHandler: v,
|
|
2200
|
-
setMissingHandler:
|
|
2201
|
-
[qa]:
|
|
2200
|
+
setMissingHandler: G,
|
|
2201
|
+
[qa]: yt
|
|
2202
2202
|
};
|
|
2203
|
-
return X.datetimeFormats = F, X.numberFormats = x, X.rt = te, X.te =
|
|
2203
|
+
return X.datetimeFormats = F, X.numberFormats = x, X.rt = te, X.te = It, X.tm = ze, X.d = B, X.n = he, X.getDateTimeFormat = kt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = g, X.setNumberFormat = j, X.mergeNumberFormat = re, X[xn] = n, X[jt] = Ee, X[Vt] = Je, X[Wt] = $e, X;
|
|
2204
2204
|
}
|
|
2205
|
-
const
|
|
2205
|
+
const zt = {
|
|
2206
2206
|
tag: {
|
|
2207
2207
|
type: [String, Object]
|
|
2208
2208
|
},
|
|
@@ -2242,7 +2242,7 @@ de({
|
|
|
2242
2242
|
type: [Number, String],
|
|
2243
2243
|
validator: (e) => me(e) || !isNaN(e)
|
|
2244
2244
|
}
|
|
2245
|
-
},
|
|
2245
|
+
}, zt);
|
|
2246
2246
|
function rr(e) {
|
|
2247
2247
|
return ce(e) && !P(e[0]);
|
|
2248
2248
|
}
|
|
@@ -2251,15 +2251,15 @@ function Bn(e, t, n, s) {
|
|
|
2251
2251
|
return () => {
|
|
2252
2252
|
const c = { part: !0 };
|
|
2253
2253
|
let u = ee();
|
|
2254
|
-
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format :
|
|
2254
|
+
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format : z(e.format) && (P(e.format.key) && (c.key = e.format.key), u = Object.keys(e.format).reduce((O, w) => n.includes(w) ? de(ee(), O, { [w]: e.format[w] }) : O, ee()));
|
|
2255
2255
|
const m = s(e.value, c, u);
|
|
2256
2256
|
let p = [c.key];
|
|
2257
2257
|
ce(m) ? p = m.map((O, w) => {
|
|
2258
2258
|
const V = l[O.type], A = V ? V({ [O.type]: O.value, index: w, parts: m }) : [O.value];
|
|
2259
2259
|
return rr(A) && (A[0].key = `${O.type}-${w}`), A;
|
|
2260
2260
|
}) : P(m) && (p = [m]);
|
|
2261
|
-
const
|
|
2262
|
-
return An(L,
|
|
2261
|
+
const N = de(ee(), a), L = P(e.tag) || z(e.tag) ? e.tag : Yn();
|
|
2262
|
+
return An(L, N, p);
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
2265
2265
|
de({
|
|
@@ -2270,7 +2270,7 @@ de({
|
|
|
2270
2270
|
format: {
|
|
2271
2271
|
type: [String, Object]
|
|
2272
2272
|
}
|
|
2273
|
-
},
|
|
2273
|
+
}, zt);
|
|
2274
2274
|
de({
|
|
2275
2275
|
value: {
|
|
2276
2276
|
type: [Number, Date],
|
|
@@ -2279,7 +2279,7 @@ de({
|
|
|
2279
2279
|
format: {
|
|
2280
2280
|
type: [String, Object]
|
|
2281
2281
|
}
|
|
2282
|
-
},
|
|
2282
|
+
}, zt);
|
|
2283
2283
|
const lr = /* @__PURE__ */ Ue("global-vue-i18n");
|
|
2284
2284
|
function Et(e = {}) {
|
|
2285
2285
|
const t = xt();
|
|
@@ -2298,7 +2298,7 @@ function Et(e = {}) {
|
|
|
2298
2298
|
let u = c.__getInstance(t);
|
|
2299
2299
|
if (u == null) {
|
|
2300
2300
|
const m = de({}, e);
|
|
2301
|
-
"__i18n" in l && (m.__i18n = l.__i18n), s && (m.__root = s), u = sr(m), c.__composerExtend && (u[
|
|
2301
|
+
"__i18n" in l && (m.__i18n = l.__i18n), s && (m.__root = s), u = sr(m), c.__composerExtend && (u[Gt] = c.__composerExtend(u)), dr(c, t, u), c.__setInstance(t, u);
|
|
2302
2302
|
}
|
|
2303
2303
|
return u;
|
|
2304
2304
|
}
|
|
@@ -2337,14 +2337,14 @@ function mr(e, t = !1) {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
function dr(e, t, n) {
|
|
2339
2339
|
Rn(() => {
|
|
2340
|
-
}, t),
|
|
2340
|
+
}, t), Kn(() => {
|
|
2341
2341
|
const s = n;
|
|
2342
2342
|
e.__deleteInstance(t);
|
|
2343
|
-
const l = s[
|
|
2344
|
-
l && (l(), delete s[
|
|
2343
|
+
const l = s[Gt];
|
|
2344
|
+
l && (l(), delete s[Gt]);
|
|
2345
2345
|
}, t);
|
|
2346
2346
|
}
|
|
2347
|
-
|
|
2347
|
+
Qa();
|
|
2348
2348
|
Ra(ua);
|
|
2349
2349
|
Aa(Oa);
|
|
2350
2350
|
Sa(Dn);
|
|
@@ -2352,7 +2352,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
2352
2352
|
const e = Fe();
|
|
2353
2353
|
e.__INTLIFY__ = !0, ma(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2354
2354
|
}
|
|
2355
|
-
const ct = /* @__PURE__ */
|
|
2355
|
+
const ct = /* @__PURE__ */ Te({
|
|
2356
2356
|
__name: "InheritPermissionTooltip",
|
|
2357
2357
|
props: {
|
|
2358
2358
|
item: {
|
|
@@ -2364,15 +2364,15 @@ const ct = /* @__PURE__ */ ke({
|
|
|
2364
2364
|
const { t } = Et();
|
|
2365
2365
|
return (n, s) => {
|
|
2366
2366
|
const l = qe("FmIcon"), a = qe("FmTooltip");
|
|
2367
|
-
return
|
|
2367
|
+
return Q(), De(a, {
|
|
2368
2368
|
variant: "plain",
|
|
2369
2369
|
placement: "right",
|
|
2370
2370
|
"z-index": 50
|
|
2371
2371
|
}, {
|
|
2372
2372
|
content: pe(() => [
|
|
2373
|
-
se("div", null,
|
|
2374
|
-
(
|
|
2375
|
-
se("div", null, "- " +
|
|
2373
|
+
se("div", null, ye($(t)("team.memberForm.permissions.inherited")), 1),
|
|
2374
|
+
(Q(!0), oe(Le, null, be(e.item.setNames, (c) => (Q(), oe("div", { key: c }, [
|
|
2375
|
+
se("div", null, "- " + ye(c), 1)
|
|
2376
2376
|
]))), 128))
|
|
2377
2377
|
]),
|
|
2378
2378
|
default: pe(() => [
|
|
@@ -2408,20 +2408,20 @@ const Ln = Object.values(is), fr = {
|
|
|
2408
2408
|
};
|
|
2409
2409
|
function _r(e, t, n, s) {
|
|
2410
2410
|
const { t: l } = He(), { getFlagValue: a, getFlag: c } = os(), u = q(() => {
|
|
2411
|
-
var
|
|
2411
|
+
var y;
|
|
2412
2412
|
const b = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
2413
2413
|
for (const F of t.value) {
|
|
2414
2414
|
const x = F.category;
|
|
2415
|
-
x && (n.value.includes(F.subject) || F.showByFeatureFlag && ((
|
|
2415
|
+
x && (n.value.includes(F.subject) || F.showByFeatureFlag && ((y = c(F.showByFeatureFlag)) == null ? void 0 : y.enabled) === !1 && a(F.showByFeatureFlag) === "true" || (b.has(x) || b.set(x, []), b.get(x).push({
|
|
2416
2416
|
label: l(`permissionSet.permissionLabels.${F.subject}`, F.label),
|
|
2417
2417
|
value: F.subject
|
|
2418
2418
|
}), h.set(F.subject, F)));
|
|
2419
2419
|
}
|
|
2420
2420
|
return [...b.keys()].sort((F, x) => {
|
|
2421
|
-
const
|
|
2422
|
-
return
|
|
2421
|
+
const I = Ln.indexOf(F), R = Ln.indexOf(x);
|
|
2422
|
+
return I === -1 && R === -1 ? F.localeCompare(x) : I === -1 ? 1 : R === -1 ? -1 : I - R;
|
|
2423
2423
|
}).map((F) => {
|
|
2424
|
-
const x = b.get(F),
|
|
2424
|
+
const x = b.get(F), I = l(`permissionSet.categoryLabels.${F}`, F), R = /* @__PURE__ */ new Map();
|
|
2425
2425
|
for (const H of x) {
|
|
2426
2426
|
const Z = h.get(H.value);
|
|
2427
2427
|
Z && R.set(H.value, Z.actions);
|
|
@@ -2429,28 +2429,28 @@ function _r(e, t, n, s) {
|
|
|
2429
2429
|
const v = x.some((H) => {
|
|
2430
2430
|
const Z = R.get(H.value);
|
|
2431
2431
|
return Z && Z.length > 1;
|
|
2432
|
-
}),
|
|
2432
|
+
}), G = v ? [
|
|
2433
2433
|
...new Set(
|
|
2434
2434
|
x.flatMap((H) => R.get(H.value) ?? []).filter((H) => H !== "manage")
|
|
2435
2435
|
)
|
|
2436
|
-
] : [],
|
|
2436
|
+
] : [], W = /* @__PURE__ */ new Map();
|
|
2437
2437
|
for (const H of e.value)
|
|
2438
|
-
x.some((Z) => Z.value === H.subject) && !H.inverted &&
|
|
2438
|
+
x.some((Z) => Z.value === H.subject) && !H.inverted && W.set(H.subject, new Set(H.actions));
|
|
2439
2439
|
const U = v ? e.value.filter(
|
|
2440
2440
|
(H) => x.some((Z) => Z.value === H.subject) && !H.inverted && H.actions.includes("manage")
|
|
2441
2441
|
).map((H) => H.subject) : e.value.filter((H) => x.some((Z) => Z.value === H.subject) && !H.inverted).map((H) => H.subject), te = x.find((H) => {
|
|
2442
2442
|
var Z;
|
|
2443
2443
|
return (Z = h.get(H.value)) == null ? void 0 : Z.isCategoryCover;
|
|
2444
|
-
}), B = (te == null ? void 0 : te.value) ?? null, he = B ?
|
|
2444
|
+
}), B = (te == null ? void 0 : te.value) ?? null, he = B ? W.get(B) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), fe = he.has("manage");
|
|
2445
2445
|
return {
|
|
2446
2446
|
category: F,
|
|
2447
|
-
label:
|
|
2447
|
+
label: I,
|
|
2448
2448
|
options: x,
|
|
2449
2449
|
selectedSubjects: U,
|
|
2450
2450
|
isMultiAction: v,
|
|
2451
|
-
actionColumns:
|
|
2451
|
+
actionColumns: G,
|
|
2452
2452
|
permissionActionsMap: R,
|
|
2453
|
-
selectedActionsMap:
|
|
2453
|
+
selectedActionsMap: W,
|
|
2454
2454
|
coverSubject: B,
|
|
2455
2455
|
coverSelectedActions: he,
|
|
2456
2456
|
coverCoversAll: fe
|
|
@@ -2458,19 +2458,19 @@ function _r(e, t, n, s) {
|
|
|
2458
2458
|
});
|
|
2459
2459
|
});
|
|
2460
2460
|
function m(b, h) {
|
|
2461
|
-
var
|
|
2462
|
-
const C = ((
|
|
2461
|
+
var y;
|
|
2462
|
+
const C = ((y = u.value.find((F) => F.category === b)) == null ? void 0 : y.options) ?? [];
|
|
2463
2463
|
s("update:model-value", [
|
|
2464
2464
|
...e.value.filter((F) => !C.some((x) => x.value === F.subject)),
|
|
2465
2465
|
...t.value.filter((F) => h.includes(F.subject)).map(
|
|
2466
|
-
({ category: F, showByFeatureFlag: x, isCategoryCover:
|
|
2466
|
+
({ category: F, showByFeatureFlag: x, isCategoryCover: I, ...R }) => R
|
|
2467
2467
|
)
|
|
2468
2468
|
]);
|
|
2469
2469
|
}
|
|
2470
2470
|
function p(b) {
|
|
2471
2471
|
return b.options.length > 0 && b.options.every((h) => b.selectedSubjects.includes(h.value));
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function N(b) {
|
|
2474
2474
|
if (b.options.length === 0) return !1;
|
|
2475
2475
|
const h = b.options.filter(
|
|
2476
2476
|
(C) => b.selectedSubjects.includes(C.value)
|
|
@@ -2479,13 +2479,13 @@ function _r(e, t, n, s) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
function L(b) {
|
|
2481
2481
|
const h = e.value.filter(
|
|
2482
|
-
(C) => !b.options.some((
|
|
2482
|
+
(C) => !b.options.some((y) => y.value === C.subject)
|
|
2483
2483
|
);
|
|
2484
2484
|
if (p(b))
|
|
2485
2485
|
s("update:model-value", h);
|
|
2486
2486
|
else {
|
|
2487
|
-
const C = t.value.filter((
|
|
2488
|
-
({ category:
|
|
2487
|
+
const C = t.value.filter((y) => b.options.some((F) => F.value === y.subject)).map(
|
|
2488
|
+
({ category: y, showByFeatureFlag: F, isCategoryCover: x, ...I }) => I
|
|
2489
2489
|
);
|
|
2490
2490
|
s("update:model-value", [...h, ...C]);
|
|
2491
2491
|
}
|
|
@@ -2497,37 +2497,37 @@ function _r(e, t, n, s) {
|
|
|
2497
2497
|
function w(b, h) {
|
|
2498
2498
|
const C = b.permissionActionsMap.get(h);
|
|
2499
2499
|
if (!C) return !1;
|
|
2500
|
-
const
|
|
2501
|
-
if (
|
|
2500
|
+
const y = C.filter((I) => I !== "manage");
|
|
2501
|
+
if (y.length === 0) return !1;
|
|
2502
2502
|
const F = b.selectedActionsMap.get(h);
|
|
2503
2503
|
if (!F) return !1;
|
|
2504
|
-
const x =
|
|
2505
|
-
return x.length > 0 && x.length <
|
|
2504
|
+
const x = y.filter((I) => F.has(I));
|
|
2505
|
+
return x.length > 0 && x.length < y.length;
|
|
2506
2506
|
}
|
|
2507
2507
|
function V(b, h, C) {
|
|
2508
2508
|
if (C) {
|
|
2509
|
-
const
|
|
2510
|
-
if (!
|
|
2509
|
+
const y = t.value.find((G) => G.subject === h);
|
|
2510
|
+
if (!y) return;
|
|
2511
2511
|
const {
|
|
2512
2512
|
category: F,
|
|
2513
2513
|
showByFeatureFlag: x,
|
|
2514
|
-
isCategoryCover:
|
|
2514
|
+
isCategoryCover: I,
|
|
2515
2515
|
...R
|
|
2516
|
-
} =
|
|
2516
|
+
} = y, v = e.value.filter((G) => G.subject !== h);
|
|
2517
2517
|
v.push(R), s("update:model-value", v);
|
|
2518
2518
|
} else
|
|
2519
2519
|
s(
|
|
2520
2520
|
"update:model-value",
|
|
2521
|
-
e.value.filter((
|
|
2521
|
+
e.value.filter((y) => y.subject !== h)
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
2524
|
function A(b, h) {
|
|
2525
2525
|
const C = b.permissionActionsMap.get(h);
|
|
2526
|
-
return C ? C.some((
|
|
2526
|
+
return C ? C.some((y) => y !== "manage") : !1;
|
|
2527
2527
|
}
|
|
2528
2528
|
function D(b, h, C) {
|
|
2529
|
-
const
|
|
2530
|
-
return
|
|
2529
|
+
const y = b.selectedActionsMap.get(h);
|
|
2530
|
+
return y ? y.has(C) : !1;
|
|
2531
2531
|
}
|
|
2532
2532
|
function i(b, h) {
|
|
2533
2533
|
return !b.coverSubject || h === b.coverSubject ? !1 : b.coverCoversAll;
|
|
@@ -2535,82 +2535,82 @@ function _r(e, t, n, s) {
|
|
|
2535
2535
|
function d(b, h, C) {
|
|
2536
2536
|
return !b.coverSubject || h === b.coverSubject ? !1 : b.coverCoversAll ? !0 : b.coverSelectedActions.has(C);
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2539
|
-
const
|
|
2540
|
-
return
|
|
2538
|
+
function k(b, h, C) {
|
|
2539
|
+
const y = b.permissionActionsMap.get(h);
|
|
2540
|
+
return y ? y.includes(C) : !1;
|
|
2541
2541
|
}
|
|
2542
2542
|
function _(b, h, C) {
|
|
2543
|
-
const
|
|
2543
|
+
const y = [...e.value], F = y.findIndex((I) => I.subject === b && !I.inverted);
|
|
2544
2544
|
if (C)
|
|
2545
2545
|
if (F >= 0) {
|
|
2546
|
-
const
|
|
2547
|
-
R.add(h),
|
|
2546
|
+
const I = { ...y[F] }, R = new Set(I.actions);
|
|
2547
|
+
R.add(h), I.actions = Array.from(R), y[F] = I;
|
|
2548
2548
|
} else {
|
|
2549
|
-
const
|
|
2550
|
-
if (!
|
|
2549
|
+
const I = t.value.find((U) => U.subject === b);
|
|
2550
|
+
if (!I) return;
|
|
2551
2551
|
const {
|
|
2552
2552
|
category: R,
|
|
2553
2553
|
showByFeatureFlag: v,
|
|
2554
|
-
isCategoryCover:
|
|
2555
|
-
...
|
|
2556
|
-
} =
|
|
2557
|
-
|
|
2554
|
+
isCategoryCover: G,
|
|
2555
|
+
...W
|
|
2556
|
+
} = I;
|
|
2557
|
+
y.push({ ...W, actions: [h] });
|
|
2558
2558
|
}
|
|
2559
2559
|
else if (F >= 0) {
|
|
2560
|
-
const
|
|
2561
|
-
R.length === 0 ?
|
|
2560
|
+
const I = { ...y[F] }, R = I.actions.filter((v) => v !== h);
|
|
2561
|
+
R.length === 0 ? y.splice(F, 1) : (I.actions = R, y[F] = I);
|
|
2562
2562
|
}
|
|
2563
|
-
const x = t.value.find((
|
|
2564
|
-
x && On(
|
|
2563
|
+
const x = t.value.find((I) => I.subject === b);
|
|
2564
|
+
x && On(y, b, x.actions), s("update:model-value", y);
|
|
2565
2565
|
}
|
|
2566
2566
|
function M(b, h) {
|
|
2567
2567
|
const C = b.options.filter(
|
|
2568
|
-
(
|
|
2568
|
+
(y) => k(b, y.value, h)
|
|
2569
2569
|
);
|
|
2570
2570
|
return C.length === 0 ? !1 : C.every(
|
|
2571
|
-
(
|
|
2571
|
+
(y) => D(b, y.value, h) || d(b, y.value, h)
|
|
2572
2572
|
);
|
|
2573
2573
|
}
|
|
2574
2574
|
function S(b, h) {
|
|
2575
2575
|
const C = b.options.filter(
|
|
2576
|
-
(F) =>
|
|
2576
|
+
(F) => k(b, F.value, h)
|
|
2577
2577
|
);
|
|
2578
2578
|
if (C.length === 0) return !1;
|
|
2579
|
-
const
|
|
2579
|
+
const y = C.filter(
|
|
2580
2580
|
(F) => D(b, F.value, h) || d(b, F.value, h)
|
|
2581
2581
|
).length;
|
|
2582
|
-
return
|
|
2582
|
+
return y > 0 && y < C.length;
|
|
2583
2583
|
}
|
|
2584
2584
|
function E(b, h, C) {
|
|
2585
|
-
const
|
|
2585
|
+
const y = [...e.value];
|
|
2586
2586
|
for (const F of b.options) {
|
|
2587
|
-
if (!
|
|
2588
|
-
const x = F.value,
|
|
2587
|
+
if (!k(b, F.value, h)) continue;
|
|
2588
|
+
const x = F.value, I = y.findIndex(
|
|
2589
2589
|
(v) => v.subject === x && !v.inverted
|
|
2590
2590
|
);
|
|
2591
2591
|
if (C)
|
|
2592
|
-
if (
|
|
2593
|
-
const v = { ...I
|
|
2594
|
-
|
|
2592
|
+
if (I >= 0) {
|
|
2593
|
+
const v = { ...y[I] }, G = new Set(v.actions);
|
|
2594
|
+
G.add(h), v.actions = Array.from(G), y[I] = v;
|
|
2595
2595
|
} else {
|
|
2596
2596
|
const v = t.value.find((B) => B.subject === x);
|
|
2597
2597
|
if (!v) continue;
|
|
2598
2598
|
const {
|
|
2599
|
-
category:
|
|
2600
|
-
showByFeatureFlag:
|
|
2599
|
+
category: G,
|
|
2600
|
+
showByFeatureFlag: W,
|
|
2601
2601
|
isCategoryCover: U,
|
|
2602
2602
|
...te
|
|
2603
2603
|
} = v;
|
|
2604
|
-
|
|
2604
|
+
y.push({ ...te, actions: [h] });
|
|
2605
2605
|
}
|
|
2606
|
-
else if (
|
|
2607
|
-
const v = { ...I
|
|
2608
|
-
|
|
2606
|
+
else if (I >= 0) {
|
|
2607
|
+
const v = { ...y[I] }, G = v.actions.filter((W) => W !== h);
|
|
2608
|
+
G.length === 0 ? y.splice(I, 1) : (v.actions = G, y[I] = v);
|
|
2609
2609
|
}
|
|
2610
2610
|
const R = t.value.find((v) => v.subject === x);
|
|
2611
|
-
R && On(
|
|
2611
|
+
R && On(y, x, R.actions);
|
|
2612
2612
|
}
|
|
2613
|
-
s("update:model-value",
|
|
2613
|
+
s("update:model-value", y);
|
|
2614
2614
|
}
|
|
2615
2615
|
function Y(b) {
|
|
2616
2616
|
const h = `permissionSet.actionLabels.${b}`, C = fr[b] ?? b.charAt(0).toUpperCase() + b.slice(1);
|
|
@@ -2620,7 +2620,7 @@ function _r(e, t, n, s) {
|
|
|
2620
2620
|
categoryGroups: u,
|
|
2621
2621
|
toggleCategory: m,
|
|
2622
2622
|
isAllManageChecked: p,
|
|
2623
|
-
isAllManageIndeterminate:
|
|
2623
|
+
isAllManageIndeterminate: N,
|
|
2624
2624
|
toggleAllManage: L,
|
|
2625
2625
|
isManageChecked: O,
|
|
2626
2626
|
isManageIndeterminate: w,
|
|
@@ -2629,7 +2629,7 @@ function _r(e, t, n, s) {
|
|
|
2629
2629
|
isActionChecked: D,
|
|
2630
2630
|
isRowFullyCoveredByCover: i,
|
|
2631
2631
|
isActionCoveredByCover: d,
|
|
2632
|
-
permissionDefinesAction:
|
|
2632
|
+
permissionDefinesAction: k,
|
|
2633
2633
|
toggleAction: _,
|
|
2634
2634
|
isAllActionChecked: M,
|
|
2635
2635
|
isAllActionIndeterminate: S,
|
|
@@ -2637,7 +2637,7 @@ function _r(e, t, n, s) {
|
|
|
2637
2637
|
actionLabel: Y
|
|
2638
2638
|
};
|
|
2639
2639
|
}
|
|
2640
|
-
const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm-600" }, hr = { class: "mt-16" }, br = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, vr = ["onClick"], Er = { class: "flex justify-center" },
|
|
2640
|
+
const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm-600" }, hr = { class: "mt-16" }, br = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, vr = ["onClick"], Er = { class: "flex justify-center" }, yr = { class: "flex items-center min-w-0 gap-8" }, Ir = ["title", "onClick"], Nr = { class: "flex justify-center" }, kr = /* @__PURE__ */ Te({
|
|
2641
2641
|
__name: "BasePermission",
|
|
2642
2642
|
props: {
|
|
2643
2643
|
modelValue: {
|
|
@@ -2664,7 +2664,7 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2664
2664
|
isAllManageChecked: u,
|
|
2665
2665
|
isAllManageIndeterminate: m,
|
|
2666
2666
|
toggleAllManage: p,
|
|
2667
|
-
isManageChecked:
|
|
2667
|
+
isManageChecked: N,
|
|
2668
2668
|
isManageIndeterminate: L,
|
|
2669
2669
|
toggleManage: O,
|
|
2670
2670
|
isActionChecked: w,
|
|
@@ -2673,13 +2673,13 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2673
2673
|
permissionDefinesAction: D,
|
|
2674
2674
|
toggleAction: i,
|
|
2675
2675
|
isAllActionChecked: d,
|
|
2676
|
-
isAllActionIndeterminate:
|
|
2676
|
+
isAllActionIndeterminate: k,
|
|
2677
2677
|
toggleAllAction: _,
|
|
2678
2678
|
actionLabel: M
|
|
2679
2679
|
} = _r(
|
|
2680
|
-
|
|
2680
|
+
Kt(n, "modelValue"),
|
|
2681
2681
|
a,
|
|
2682
|
-
|
|
2682
|
+
Kt(n, "excludedSubjects"),
|
|
2683
2683
|
(E, Y) => s("update:model-value", Y)
|
|
2684
2684
|
);
|
|
2685
2685
|
function S(E) {
|
|
@@ -2688,13 +2688,13 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return (E, Y) => {
|
|
2690
2690
|
const b = qe("FmCheckbox");
|
|
2691
|
-
return
|
|
2692
|
-
(
|
|
2691
|
+
return Q(), oe("div", pr, [
|
|
2692
|
+
(Q(!0), oe(Le, null, be($(c), (h) => (Q(), De(Zt, {
|
|
2693
2693
|
key: h.category,
|
|
2694
2694
|
subtitle: S(h)
|
|
2695
2695
|
}, {
|
|
2696
2696
|
title: pe(() => [
|
|
2697
|
-
se("p", gr,
|
|
2697
|
+
se("p", gr, ye(h.label), 1)
|
|
2698
2698
|
]),
|
|
2699
2699
|
default: pe(() => [
|
|
2700
2700
|
se("div", hr, [
|
|
@@ -2705,11 +2705,11 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2705
2705
|
})
|
|
2706
2706
|
}, [
|
|
2707
2707
|
Y[0] || (Y[0] = se("div", null, null, -1)),
|
|
2708
|
-
se("div", br,
|
|
2709
|
-
(
|
|
2708
|
+
se("div", br, ye($(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2709
|
+
(Q(!0), oe(Le, null, be(h.actionColumns, (C) => (Q(), oe("div", {
|
|
2710
2710
|
key: `header-${C}`,
|
|
2711
2711
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2712
|
-
},
|
|
2712
|
+
}, ye($(M)(C)), 1))), 128))
|
|
2713
2713
|
], 4),
|
|
2714
2714
|
se("div", {
|
|
2715
2715
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2720,7 +2720,7 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2720
2720
|
se("div", {
|
|
2721
2721
|
class: "cursor-pointer font-semibold",
|
|
2722
2722
|
onClick: (C) => !e.disable && $(p)(h)
|
|
2723
|
-
},
|
|
2723
|
+
}, ye($(l)("team.labels.all")), 9, vr),
|
|
2724
2724
|
se("div", Er, [
|
|
2725
2725
|
_e(b, {
|
|
2726
2726
|
"model-value": $(u)(h),
|
|
@@ -2732,58 +2732,58 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2732
2732
|
"onUpdate:modelValue": (C) => $(p)(h)
|
|
2733
2733
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2734
2734
|
]),
|
|
2735
|
-
(
|
|
2735
|
+
(Q(!0), oe(Le, null, be(h.actionColumns, (C) => (Q(), oe("div", {
|
|
2736
2736
|
key: `all-${C}`,
|
|
2737
2737
|
class: "flex justify-center"
|
|
2738
2738
|
}, [
|
|
2739
2739
|
_e(b, {
|
|
2740
2740
|
"model-value": $(d)(h, C),
|
|
2741
|
-
indeterminate: $(
|
|
2741
|
+
indeterminate: $(k)(h, C),
|
|
2742
2742
|
value: C,
|
|
2743
2743
|
disabled: e.disable,
|
|
2744
2744
|
size: "sm",
|
|
2745
2745
|
dense: "",
|
|
2746
|
-
"onUpdate:modelValue": (
|
|
2746
|
+
"onUpdate:modelValue": (y) => $(_)(h, C, y)
|
|
2747
2747
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2748
2748
|
]))), 128))
|
|
2749
2749
|
], 4),
|
|
2750
2750
|
Y[1] || (Y[1] = se("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2751
|
-
(
|
|
2751
|
+
(Q(!0), oe(Le, null, be(h.options, (C) => (Q(), oe("div", {
|
|
2752
2752
|
key: C.value,
|
|
2753
2753
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2754
2754
|
style: Ze({
|
|
2755
2755
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${h.actionColumns.length + 1}, 80px)`
|
|
2756
2756
|
})
|
|
2757
2757
|
}, [
|
|
2758
|
-
se("div",
|
|
2758
|
+
se("div", yr, [
|
|
2759
2759
|
se("span", {
|
|
2760
2760
|
class: "block truncate cursor-pointer",
|
|
2761
2761
|
title: C.label,
|
|
2762
|
-
onClick: (
|
|
2763
|
-
},
|
|
2764
|
-
|
|
2762
|
+
onClick: (y) => !e.disable && !$(V)(h, C.value) && $(O)(h, C.value, !$(N)(h, C.value))
|
|
2763
|
+
}, ye(C.label), 9, Ir),
|
|
2764
|
+
ke(E.$slots, `checkbox-${C.value}-append`, { option: C })
|
|
2765
2765
|
]),
|
|
2766
|
-
se("div",
|
|
2766
|
+
se("div", Nr, [
|
|
2767
2767
|
_e(b, {
|
|
2768
|
-
"model-value": $(
|
|
2768
|
+
"model-value": $(N)(h, C.value) || $(V)(h, C.value),
|
|
2769
2769
|
value: C.value,
|
|
2770
2770
|
disabled: e.disable || $(V)(h, C.value),
|
|
2771
2771
|
indeterminate: $(L)(h, C.value),
|
|
2772
2772
|
size: "sm",
|
|
2773
|
-
"onUpdate:modelValue": (
|
|
2773
|
+
"onUpdate:modelValue": (y) => $(O)(h, C.value, y)
|
|
2774
2774
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2775
2775
|
]),
|
|
2776
|
-
(
|
|
2777
|
-
key: `${C.value}-${
|
|
2776
|
+
(Q(!0), oe(Le, null, be(h.actionColumns, (y) => (Q(), oe("div", {
|
|
2777
|
+
key: `${C.value}-${y}`,
|
|
2778
2778
|
class: "flex justify-center"
|
|
2779
2779
|
}, [
|
|
2780
|
-
$(D)(h, C.value,
|
|
2780
|
+
$(D)(h, C.value, y) ? (Q(), De(b, {
|
|
2781
2781
|
key: 0,
|
|
2782
|
-
"model-value": $(w)(h, C.value,
|
|
2783
|
-
value:
|
|
2784
|
-
disabled: e.disable || $(A)(h, C.value,
|
|
2782
|
+
"model-value": $(w)(h, C.value, y) || $(A)(h, C.value, y),
|
|
2783
|
+
value: y,
|
|
2784
|
+
disabled: e.disable || $(A)(h, C.value, y),
|
|
2785
2785
|
size: "sm",
|
|
2786
|
-
"onUpdate:modelValue": (F) => $(i)(C.value,
|
|
2786
|
+
"onUpdate:modelValue": (F) => $(i)(C.value, y, F)
|
|
2787
2787
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Se("", !0)
|
|
2788
2788
|
]))), 128))
|
|
2789
2789
|
], 4))), 128))
|
|
@@ -2794,13 +2794,13 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2794
2794
|
]);
|
|
2795
2795
|
};
|
|
2796
2796
|
}
|
|
2797
|
-
}),
|
|
2797
|
+
}), Tr = { class: "space-y-16" }, Or = {
|
|
2798
2798
|
key: 0,
|
|
2799
2799
|
class: "flex fm-typo-en-title-sm-600"
|
|
2800
2800
|
}, Lr = {
|
|
2801
2801
|
key: 0,
|
|
2802
2802
|
class: "q-mr-xs text-red col"
|
|
2803
|
-
}, Cr = { class: "form-input" }, Rr = /* @__PURE__ */
|
|
2803
|
+
}, Cr = { class: "form-input" }, Rr = /* @__PURE__ */ Te({
|
|
2804
2804
|
__name: "AppForm",
|
|
2805
2805
|
props: {
|
|
2806
2806
|
title: {
|
|
@@ -2818,18 +2818,18 @@ const pr = { class: "flex flex-col gap-16" }, gr = { class: "fm-typo-en-title-sm
|
|
|
2818
2818
|
},
|
|
2819
2819
|
setup(e) {
|
|
2820
2820
|
const t = e;
|
|
2821
|
-
return (n, s) => (
|
|
2822
|
-
|
|
2823
|
-
t.title ? (
|
|
2821
|
+
return (n, s) => (Q(), oe("div", Tr, [
|
|
2822
|
+
ke(n.$slots, "top", {}, () => [
|
|
2823
|
+
t.title ? (Q(), oe("div", Or, [
|
|
2824
2824
|
se("div", null, [
|
|
2825
|
-
t.required ? (
|
|
2826
|
-
qn(
|
|
2825
|
+
t.required ? (Q(), oe("span", Lr, "*")) : Se("", !0),
|
|
2826
|
+
qn(ye(t.title), 1)
|
|
2827
2827
|
]),
|
|
2828
|
-
|
|
2828
|
+
ke(n.$slots, "title-right")
|
|
2829
2829
|
])) : Se("", !0)
|
|
2830
2830
|
]),
|
|
2831
2831
|
se("div", Cr, [
|
|
2832
|
-
|
|
2832
|
+
ke(n.$slots, "default")
|
|
2833
2833
|
])
|
|
2834
2834
|
]));
|
|
2835
2835
|
}
|
|
@@ -2844,7 +2844,7 @@ function Ar(e, t) {
|
|
|
2844
2844
|
const Sr = { class: "col flex items-center" }, Dr = {
|
|
2845
2845
|
key: 1,
|
|
2846
2846
|
class: "q-pa-sm form-error-message text-error"
|
|
2847
|
-
}, Hn = /* @__PURE__ */
|
|
2847
|
+
}, Hn = /* @__PURE__ */ Te({
|
|
2848
2848
|
__name: "CheckboxInput",
|
|
2849
2849
|
props: {
|
|
2850
2850
|
options: {
|
|
@@ -2902,13 +2902,13 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
2902
2902
|
},
|
|
2903
2903
|
emits: ["update:model-value"],
|
|
2904
2904
|
setup(e, { emit: t }) {
|
|
2905
|
-
const n = e, s = t, { t: l } = He(), a = gt(!1), c = es(), u = q(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), m = `checkbox-${Ar(6)}`, p = q(() => u.value !== !0),
|
|
2905
|
+
const n = e, s = t, { t: l } = He(), a = gt(!1), c = es(), u = q(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), m = `checkbox-${Ar(6)}`, p = q(() => u.value !== !0), N = q(
|
|
2906
2906
|
() => n.modelValue.filter((A) => n.options.some((D) => D.value === A))
|
|
2907
2907
|
), L = q(
|
|
2908
2908
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2909
|
-
), O = q(() => n.options.length > 0 && n.options.length ===
|
|
2909
|
+
), O = q(() => n.options.length > 0 && n.options.length === N.value.length);
|
|
2910
2910
|
function w() {
|
|
2911
|
-
const A = n.modelValue.filter((D) => !
|
|
2911
|
+
const A = n.modelValue.filter((D) => !N.value.includes(D));
|
|
2912
2912
|
if (O.value === !0)
|
|
2913
2913
|
s("update:model-value", A);
|
|
2914
2914
|
else {
|
|
@@ -2922,16 +2922,16 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
return (A, D) => {
|
|
2924
2924
|
const i = qe("FmCheckbox");
|
|
2925
|
-
return
|
|
2925
|
+
return Q(), De(Rr, {
|
|
2926
2926
|
id: m,
|
|
2927
2927
|
title: e.title,
|
|
2928
2928
|
required: !1
|
|
2929
2929
|
}, {
|
|
2930
2930
|
top: pe(() => [
|
|
2931
|
-
|
|
2931
|
+
ke(A.$slots, "top")
|
|
2932
2932
|
]),
|
|
2933
2933
|
default: pe(() => [
|
|
2934
|
-
n.showAllToggle ? (
|
|
2934
|
+
n.showAllToggle ? (Q(), De(i, {
|
|
2935
2935
|
key: 0,
|
|
2936
2936
|
"model-value": O.value,
|
|
2937
2937
|
disabled: e.disable,
|
|
@@ -2942,10 +2942,10 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
2942
2942
|
value: L.value,
|
|
2943
2943
|
"onUpdate:modelValue": w
|
|
2944
2944
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Se("", !0),
|
|
2945
|
-
(
|
|
2945
|
+
(Q(!0), oe(Le, null, be(e.options, (d, k) => (Q(), oe("div", {
|
|
2946
2946
|
key: d.value,
|
|
2947
|
-
style: Ze(`margin-bottom: ${
|
|
2948
|
-
class: rt(
|
|
2947
|
+
style: Ze(`margin-bottom: ${k < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2948
|
+
class: rt(k < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2949
2949
|
}, [
|
|
2950
2950
|
se("div", {
|
|
2951
2951
|
class: rt(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
@@ -2959,41 +2959,41 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
2959
2959
|
value: d.label,
|
|
2960
2960
|
"onUpdate:modelValue": (_) => V(d.value, _)
|
|
2961
2961
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2962
|
-
|
|
2962
|
+
ke(A.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2963
2963
|
option: d,
|
|
2964
2964
|
selected: e.modelValue.includes(d.value)
|
|
2965
2965
|
})
|
|
2966
2966
|
]),
|
|
2967
|
-
$(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (
|
|
2967
|
+
$(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), oe("div", {
|
|
2968
2968
|
key: 0,
|
|
2969
2969
|
class: rt([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2970
2970
|
}, [
|
|
2971
|
-
|
|
2971
|
+
ke(A.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2972
2972
|
option: d,
|
|
2973
2973
|
value: e.modelValue.includes(d.value),
|
|
2974
2974
|
disable: e.disable || d.disabled
|
|
2975
2975
|
})
|
|
2976
2976
|
], 2)) : Se("", !0)
|
|
2977
2977
|
], 2),
|
|
2978
|
-
$(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (
|
|
2978
|
+
$(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), oe("div", {
|
|
2979
2979
|
key: 0,
|
|
2980
2980
|
class: rt(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2981
2981
|
style: Ze(`margin-left: ${e.bottomSlotIndent}`)
|
|
2982
2982
|
}, [
|
|
2983
|
-
|
|
2983
|
+
ke(A.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2984
2984
|
option: d,
|
|
2985
2985
|
disable: e.disable || d.disabled,
|
|
2986
2986
|
value: e.modelValue.includes(d.value)
|
|
2987
2987
|
})
|
|
2988
2988
|
], 6)) : Se("", !0)
|
|
2989
2989
|
], 6))), 128)),
|
|
2990
|
-
a.value && p.value ? (
|
|
2990
|
+
a.value && p.value ? (Q(), oe("div", Dr, ye(u.value), 1)) : Se("", !0)
|
|
2991
2991
|
]),
|
|
2992
2992
|
_: 3
|
|
2993
2993
|
}, 8, ["title"]);
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
2996
|
-
}), Mr = { class: "fm-typo-en-title-sm-600" }, ut = "includedFuture", Cn = /* @__PURE__ */
|
|
2996
|
+
}), Mr = { class: "fm-typo-en-title-sm-600" }, ut = "includedFuture", Cn = /* @__PURE__ */ Te({
|
|
2997
2997
|
__name: "ConditionPermission",
|
|
2998
2998
|
props: {
|
|
2999
2999
|
modelValue: {
|
|
@@ -3023,25 +3023,25 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3023
3023
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3024
3024
|
},
|
|
3025
3025
|
...n.options.filter(
|
|
3026
|
-
(
|
|
3026
|
+
(N) => N.label.toLocaleLowerCase().includes(p.value.toLocaleLowerCase())
|
|
3027
3027
|
)
|
|
3028
|
-
]), c = q(() => n.modelValue ? n.modelValue : [ut, ...n.options.map((
|
|
3029
|
-
const
|
|
3030
|
-
return
|
|
3028
|
+
]), c = q(() => n.modelValue ? n.modelValue : [ut, ...n.options.map((N) => N.value)]), u = q(() => {
|
|
3029
|
+
const N = c.value.filter((L) => L !== ut).length;
|
|
3030
|
+
return N === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: N });
|
|
3031
3031
|
});
|
|
3032
|
-
function m(
|
|
3033
|
-
const L =
|
|
3034
|
-
s("update:model-value", L ? null :
|
|
3032
|
+
function m(N) {
|
|
3033
|
+
const L = N.length === a.value.length;
|
|
3034
|
+
s("update:model-value", L ? null : N.filter((O) => O !== ut));
|
|
3035
3035
|
}
|
|
3036
3036
|
const p = gt("");
|
|
3037
|
-
return (
|
|
3037
|
+
return (N, L) => {
|
|
3038
3038
|
const O = qe("fm-search");
|
|
3039
|
-
return
|
|
3039
|
+
return Q(), De(Zt, { subtitle: u.value }, {
|
|
3040
3040
|
title: pe(() => [
|
|
3041
|
-
se("p", Mr,
|
|
3041
|
+
se("p", Mr, ye($(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3042
3042
|
]),
|
|
3043
3043
|
default: pe(() => [
|
|
3044
|
-
e.options.length > 1 ? (
|
|
3044
|
+
e.options.length > 1 ? (Q(), De(O, {
|
|
3045
3045
|
key: 0,
|
|
3046
3046
|
modelValue: p.value,
|
|
3047
3047
|
"onUpdate:modelValue": L[0] || (L[0] = (w) => p.value = w),
|
|
@@ -3062,7 +3062,7 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3062
3062
|
be(a.value, (w) => ({
|
|
3063
3063
|
name: `checkbox-${w.value}-append`,
|
|
3064
3064
|
fn: pe(({ option: V }) => [
|
|
3065
|
-
|
|
3065
|
+
ke(N.$slots, `checkbox-${w.value}-append`, { option: V })
|
|
3066
3066
|
])
|
|
3067
3067
|
}))
|
|
3068
3068
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3071,7 +3071,7 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3071
3071
|
}, 8, ["subtitle"]);
|
|
3072
3072
|
};
|
|
3073
3073
|
}
|
|
3074
|
-
}), wr = { class: "fm-typo-en-title-sm-600" }, mt = "includedNewRole", Pr = /* @__PURE__ */
|
|
3074
|
+
}), wr = { class: "fm-typo-en-title-sm-600" }, mt = "includedNewRole", Pr = /* @__PURE__ */ Te({
|
|
3075
3075
|
__name: "PosRolePermission",
|
|
3076
3076
|
props: {
|
|
3077
3077
|
modelValue: {
|
|
@@ -3101,23 +3101,23 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3101
3101
|
value: mt,
|
|
3102
3102
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3103
3103
|
},
|
|
3104
|
-
...n.roles.map((
|
|
3105
|
-
label:
|
|
3106
|
-
value:
|
|
3107
|
-
disabled: !!p &&
|
|
3104
|
+
...n.roles.map((N) => ({
|
|
3105
|
+
label: N.name,
|
|
3106
|
+
value: N._id,
|
|
3107
|
+
disabled: !!p && N.restaurants.every(({ id: L }) => !p.includes(L))
|
|
3108
3108
|
}))
|
|
3109
3109
|
];
|
|
3110
3110
|
}), c = q(() => n.modelValue ? n.modelValue : [mt, ...n.roles.map((p) => p._id)]), u = q(() => {
|
|
3111
|
-
const p = c.value.filter((
|
|
3111
|
+
const p = c.value.filter((N) => N !== mt).length;
|
|
3112
3112
|
return p === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: p });
|
|
3113
3113
|
});
|
|
3114
3114
|
function m(p) {
|
|
3115
|
-
const
|
|
3116
|
-
s("update:model-value",
|
|
3115
|
+
const N = p.length === a.value.length;
|
|
3116
|
+
s("update:model-value", N ? null : p.filter((L) => L !== mt));
|
|
3117
3117
|
}
|
|
3118
|
-
return (p,
|
|
3118
|
+
return (p, N) => (Q(), De(Zt, { subtitle: u.value }, {
|
|
3119
3119
|
title: pe(() => [
|
|
3120
|
-
se("p", wr,
|
|
3120
|
+
se("p", wr, ye($(l)("team.memberForm.permissions.roles")), 1)
|
|
3121
3121
|
]),
|
|
3122
3122
|
default: pe(() => [
|
|
3123
3123
|
_e(Hn, {
|
|
@@ -3133,7 +3133,7 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3133
3133
|
be(a.value, (L) => ({
|
|
3134
3134
|
name: `checkbox-${L.value}-append`,
|
|
3135
3135
|
fn: pe(({ option: O }) => [
|
|
3136
|
-
|
|
3136
|
+
ke(p.$slots, `checkbox-${L.value}-append`, { option: O })
|
|
3137
3137
|
])
|
|
3138
3138
|
}))
|
|
3139
3139
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3145,9 +3145,9 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3145
3145
|
async readWarehouses() {
|
|
3146
3146
|
return us(await ms().get("/warehouses"));
|
|
3147
3147
|
}
|
|
3148
|
-
}, Ur = { class: "flex flex-col gap-32" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3148
|
+
}, Ur = { class: "flex flex-col gap-32" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Wr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Gr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Kr = /* @__PURE__ */ Te({
|
|
3149
3149
|
__name: "PortalPermissionEditor",
|
|
3150
|
-
props: /* @__PURE__ */
|
|
3150
|
+
props: /* @__PURE__ */ Qt({
|
|
3151
3151
|
disable: {
|
|
3152
3152
|
type: Boolean,
|
|
3153
3153
|
default: !1
|
|
@@ -3160,54 +3160,54 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3160
3160
|
modelValue: { default: () => [] },
|
|
3161
3161
|
modelModifiers: {}
|
|
3162
3162
|
}),
|
|
3163
|
-
emits: /* @__PURE__ */
|
|
3163
|
+
emits: /* @__PURE__ */ Qt(["permissionChanged"], ["update:modelValue"]),
|
|
3164
3164
|
setup(e, { emit: t }) {
|
|
3165
3165
|
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = He(), { fetchCustomReportPermissions: c, customReportPermissions: u } = ss();
|
|
3166
|
-
function m(
|
|
3167
|
-
return Dt.find((R) => R.subject ===
|
|
3166
|
+
function m(I) {
|
|
3167
|
+
return Dt.find((R) => R.subject === I) ?? u.value.find((R) => R.subject === I);
|
|
3168
3168
|
}
|
|
3169
3169
|
const p = q(() => {
|
|
3170
|
-
const
|
|
3170
|
+
const I = [...Dt, ...u.value].filter((v) => !w.includes(v.subject)).map((v) => v.subject);
|
|
3171
3171
|
return as(
|
|
3172
3172
|
s.inheritPermissions.map((v) => ({
|
|
3173
3173
|
...v,
|
|
3174
|
-
permissions: v.permissions.filter((
|
|
3174
|
+
permissions: v.permissions.filter((G) => I.includes(G.subject))
|
|
3175
3175
|
}))
|
|
3176
3176
|
).map((v) => ({
|
|
3177
3177
|
id: v.subject,
|
|
3178
3178
|
setNames: v.setNames
|
|
3179
3179
|
}));
|
|
3180
|
-
}),
|
|
3181
|
-
const
|
|
3180
|
+
}), N = q(() => {
|
|
3181
|
+
const I = s.inheritPermissions.map((R) => ({
|
|
3182
3182
|
...R,
|
|
3183
3183
|
permissions: R.permissions.filter(
|
|
3184
3184
|
(v) => v.subject === ue.Subject.Business.inventory_stock
|
|
3185
3185
|
)
|
|
3186
3186
|
}));
|
|
3187
|
-
return
|
|
3188
|
-
|
|
3187
|
+
return Tt(
|
|
3188
|
+
I,
|
|
3189
3189
|
"warehouseId",
|
|
3190
3190
|
A.value.map((R) => R._id)
|
|
3191
3191
|
);
|
|
3192
3192
|
}), L = q(() => {
|
|
3193
|
-
const
|
|
3193
|
+
const I = s.inheritPermissions.map((R) => ({
|
|
3194
3194
|
...R,
|
|
3195
3195
|
permissions: R.permissions.filter(
|
|
3196
3196
|
(v) => v.subject === ue.Subject.Restaurant.restaurant
|
|
3197
3197
|
)
|
|
3198
3198
|
}));
|
|
3199
|
-
return
|
|
3200
|
-
|
|
3199
|
+
return Tt(
|
|
3200
|
+
I,
|
|
3201
3201
|
"restaurantId",
|
|
3202
|
-
|
|
3202
|
+
k.value.map((R) => R._id)
|
|
3203
3203
|
);
|
|
3204
3204
|
}), O = q(() => {
|
|
3205
|
-
const
|
|
3205
|
+
const I = s.inheritPermissions.map((R) => ({
|
|
3206
3206
|
...R,
|
|
3207
3207
|
permissions: R.permissions.filter((v) => v.subject === ue.Subject.Business.role)
|
|
3208
3208
|
}));
|
|
3209
|
-
return
|
|
3210
|
-
|
|
3209
|
+
return Tt(
|
|
3210
|
+
I,
|
|
3211
3211
|
"roleId",
|
|
3212
3212
|
_.value.map((R) => R._id)
|
|
3213
3213
|
);
|
|
@@ -3218,50 +3218,50 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3218
3218
|
ue.Subject.Business.inventory_stock
|
|
3219
3219
|
], V = q(() => {
|
|
3220
3220
|
var R;
|
|
3221
|
-
const
|
|
3221
|
+
const I = (R = n.value) == null ? void 0 : R.find(
|
|
3222
3222
|
(v) => v.subject === ue.Subject.Business.inventory_stock
|
|
3223
3223
|
);
|
|
3224
|
-
return
|
|
3225
|
-
}), A = gt([]), D = q(() => A.value.map((
|
|
3226
|
-
label:
|
|
3227
|
-
value:
|
|
3224
|
+
return I ? I.conditions ? JSON.parse(I.conditions).warehouseId.$in : null : [];
|
|
3225
|
+
}), A = gt([]), D = q(() => A.value.map((I) => ({
|
|
3226
|
+
label: I.profile.name,
|
|
3227
|
+
value: I._id
|
|
3228
3228
|
})));
|
|
3229
|
-
function i(
|
|
3230
|
-
const R = d(n.value,
|
|
3229
|
+
function i(I) {
|
|
3230
|
+
const R = d(n.value, I);
|
|
3231
3231
|
n.value = R;
|
|
3232
3232
|
}
|
|
3233
|
-
function d(
|
|
3233
|
+
function d(I, R) {
|
|
3234
3234
|
let v = dt(
|
|
3235
|
-
|
|
3235
|
+
I.filter((G) => G.subject !== ue.Subject.Business.inventory_stock)
|
|
3236
3236
|
);
|
|
3237
3237
|
if (!R || R.length > 0) {
|
|
3238
|
-
const
|
|
3238
|
+
const G = {
|
|
3239
3239
|
actions: [ue.Action.manage],
|
|
3240
3240
|
subject: ue.Subject.Business.inventory_stock
|
|
3241
3241
|
};
|
|
3242
|
-
R && (
|
|
3242
|
+
R && (G.conditions = JSON.stringify({ warehouseId: { $in: R } })), v.push(G);
|
|
3243
3243
|
}
|
|
3244
3244
|
return v;
|
|
3245
3245
|
}
|
|
3246
|
-
const { restaurants:
|
|
3247
|
-
label: `${
|
|
3248
|
-
value:
|
|
3249
|
-
}))), S = q(() =>
|
|
3250
|
-
function Y(
|
|
3251
|
-
const R = h(n.value,
|
|
3246
|
+
const { restaurants: k } = ns(), _ = ds().roles, M = q(() => k.value.map((I) => ({
|
|
3247
|
+
label: `${I.profile.code ? I.profile.code + "-" : ""}${I.profile.name}`,
|
|
3248
|
+
value: I._id
|
|
3249
|
+
}))), S = q(() => k.value.reduce((I, R) => (I[R._id] = _.value.filter((v) => v.restaurants.some((G) => G.id === R._id)).map((v) => v._id), I), {})), E = q(() => rs(n.value));
|
|
3250
|
+
function Y(I) {
|
|
3251
|
+
const R = h(n.value, I);
|
|
3252
3252
|
n.value = R;
|
|
3253
3253
|
}
|
|
3254
3254
|
const b = q(() => ls(n.value));
|
|
3255
|
-
function h(
|
|
3256
|
-
var
|
|
3255
|
+
function h(I, R) {
|
|
3256
|
+
var G;
|
|
3257
3257
|
let v = dt(
|
|
3258
|
-
|
|
3259
|
-
(
|
|
3258
|
+
I.filter(
|
|
3259
|
+
(W) => W.subject !== ue.Subject.Business.restaurant && W.subject !== ue.Subject.Restaurant.restaurant
|
|
3260
3260
|
)
|
|
3261
3261
|
);
|
|
3262
3262
|
if (!R || R.length > 0) {
|
|
3263
3263
|
const {
|
|
3264
|
-
category:
|
|
3264
|
+
category: W,
|
|
3265
3265
|
showByFeatureFlag: U,
|
|
3266
3266
|
...te
|
|
3267
3267
|
} = cs.restaurant;
|
|
@@ -3273,37 +3273,37 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3273
3273
|
R && (B.conditions = JSON.stringify({ restaurantId: { $in: R } })), v.push(B);
|
|
3274
3274
|
}
|
|
3275
3275
|
if (R) {
|
|
3276
|
-
const
|
|
3276
|
+
const W = [
|
|
3277
3277
|
...new Set(R.map((te) => S.value[te]).flatMap((te) => te))
|
|
3278
3278
|
], U = _.value.map((te) => te._id);
|
|
3279
|
-
|
|
3279
|
+
W.length !== U.length && (v = y(
|
|
3280
3280
|
v,
|
|
3281
|
-
(
|
|
3281
|
+
(G = b.value || U) == null ? void 0 : G.filter((te) => W.includes(te))
|
|
3282
3282
|
));
|
|
3283
3283
|
}
|
|
3284
3284
|
return v;
|
|
3285
3285
|
}
|
|
3286
|
-
function C(
|
|
3287
|
-
const R =
|
|
3286
|
+
function C(I) {
|
|
3287
|
+
const R = y(n.value, I);
|
|
3288
3288
|
n.value = R;
|
|
3289
3289
|
}
|
|
3290
|
-
function I
|
|
3290
|
+
function y(I, R) {
|
|
3291
3291
|
let v = dt(
|
|
3292
|
-
|
|
3292
|
+
I.filter((G) => G.subject !== ue.Subject.Business.role)
|
|
3293
3293
|
);
|
|
3294
3294
|
if (R && R.length > 0) {
|
|
3295
|
-
const
|
|
3295
|
+
const G = {
|
|
3296
3296
|
actions: [ue.Action.manage],
|
|
3297
3297
|
subject: ue.Subject.Business.role,
|
|
3298
3298
|
conditions: JSON.stringify({ roleId: { $in: R } })
|
|
3299
3299
|
};
|
|
3300
|
-
v.push(
|
|
3300
|
+
v.push(G);
|
|
3301
3301
|
}
|
|
3302
3302
|
return v;
|
|
3303
3303
|
}
|
|
3304
3304
|
Rn(async () => {
|
|
3305
3305
|
await Promise.all([
|
|
3306
|
-
Fr.readWarehouses().then((
|
|
3306
|
+
Fr.readWarehouses().then((I) => A.value = I),
|
|
3307
3307
|
c()
|
|
3308
3308
|
]);
|
|
3309
3309
|
});
|
|
@@ -3311,43 +3311,43 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3311
3311
|
n.value,
|
|
3312
3312
|
Lt
|
|
3313
3313
|
).filter((v) => {
|
|
3314
|
-
const
|
|
3315
|
-
return (
|
|
3314
|
+
const G = v.source;
|
|
3315
|
+
return (G == null ? void 0 : G.type) !== "systemPermissionSet" ? !0 : v.actions.includes("manage");
|
|
3316
3316
|
}).map((v) => {
|
|
3317
3317
|
if (v.inverted) return v;
|
|
3318
|
-
const
|
|
3319
|
-
if (!
|
|
3320
|
-
const
|
|
3321
|
-
if (!
|
|
3322
|
-
const U =
|
|
3323
|
-
return U.length <= 1 || U.filter((B) => !
|
|
3318
|
+
const G = v.actions;
|
|
3319
|
+
if (!G.includes("manage")) return v;
|
|
3320
|
+
const W = m(v.subject);
|
|
3321
|
+
if (!W) return v;
|
|
3322
|
+
const U = W.actions;
|
|
3323
|
+
return U.length <= 1 || U.filter((B) => !G.includes(B)).length === 0 ? v : { ...v, actions: [...U] };
|
|
3324
3324
|
}));
|
|
3325
|
-
function x(
|
|
3325
|
+
function x(I) {
|
|
3326
3326
|
const R = new Set(
|
|
3327
3327
|
F.value.filter((U) => !U.inverted).map((U) => U.subject)
|
|
3328
3328
|
), v = new Set(
|
|
3329
|
-
|
|
3330
|
-
),
|
|
3329
|
+
I.filter((U) => !U.inverted).map((U) => U.subject)
|
|
3330
|
+
), G = new Set(
|
|
3331
3331
|
n.value.filter((U) => !U.inverted).map((U) => U.subject)
|
|
3332
3332
|
);
|
|
3333
|
-
let
|
|
3333
|
+
let W = [...n.value];
|
|
3334
3334
|
for (const U of R)
|
|
3335
|
-
v.has(U) || (
|
|
3336
|
-
|
|
3335
|
+
v.has(U) || (G.has(U) && (W = W.filter((B) => B.subject !== U)), (!G.has(U) || Ot(
|
|
3336
|
+
W,
|
|
3337
3337
|
Lt
|
|
3338
3338
|
).some(
|
|
3339
3339
|
(B) => B.subject === U && !B.inverted && B.actions.includes("manage")
|
|
3340
|
-
)) && !
|
|
3340
|
+
)) && !W.some((B) => B.subject === U && B.inverted) && W.push({ subject: U, actions: ["manage"], inverted: !0 }));
|
|
3341
3341
|
for (const U of v)
|
|
3342
3342
|
if (!R.has(U)) {
|
|
3343
|
-
const te =
|
|
3344
|
-
if (
|
|
3345
|
-
const B =
|
|
3343
|
+
const te = W.some((B) => B.subject === U && B.inverted);
|
|
3344
|
+
if (W = W.filter((B) => !(B.subject === U && B.inverted)), !te && !G.has(U)) {
|
|
3345
|
+
const B = I.find(
|
|
3346
3346
|
(fe) => fe.subject === U && !fe.inverted
|
|
3347
3347
|
), he = m(U);
|
|
3348
3348
|
if (he && B) {
|
|
3349
3349
|
const { category: fe, showByFeatureFlag: H, ...Z } = he;
|
|
3350
|
-
|
|
3350
|
+
W.push({ ...Z, actions: B.actions });
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
@@ -3355,42 +3355,42 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3355
3355
|
if (!R.has(U)) continue;
|
|
3356
3356
|
const te = F.value.find(
|
|
3357
3357
|
(Z) => Z.subject === U && !Z.inverted
|
|
3358
|
-
), B =
|
|
3358
|
+
), B = I.find((Z) => Z.subject === U && !Z.inverted);
|
|
3359
3359
|
if (!te || !B) continue;
|
|
3360
3360
|
const he = new Set(te.actions), fe = new Set(B.actions);
|
|
3361
3361
|
if (he.size === fe.size && [...he].every((Z) => fe.has(Z)))
|
|
3362
3362
|
continue;
|
|
3363
|
-
const H =
|
|
3363
|
+
const H = W.findIndex((Z) => Z.subject === U && !Z.inverted);
|
|
3364
3364
|
if (H >= 0)
|
|
3365
|
-
|
|
3366
|
-
...
|
|
3365
|
+
W[H] = {
|
|
3366
|
+
...W[H],
|
|
3367
3367
|
actions: Array.from(fe)
|
|
3368
3368
|
};
|
|
3369
3369
|
else {
|
|
3370
3370
|
const Z = m(U);
|
|
3371
3371
|
if (Z) {
|
|
3372
3372
|
const { category: Ee, showByFeatureFlag: $e, ...Je } = Z;
|
|
3373
|
-
|
|
3373
|
+
W.push({ ...Je, actions: Array.from(fe) });
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
3376
|
he.has("manage") && !fe.has("manage") && Ot(
|
|
3377
|
-
|
|
3377
|
+
W,
|
|
3378
3378
|
Lt
|
|
3379
3379
|
).some(
|
|
3380
3380
|
(Ee) => Ee.subject === U && !Ee.inverted && Ee.actions.includes("manage")
|
|
3381
|
-
) && !
|
|
3381
|
+
) && !W.some((Ee) => Ee.subject === U && Ee.inverted) && W.push({ subject: U, actions: ["manage"], inverted: !0 }), !he.has("manage") && fe.has("manage") && (W = W.filter((Z) => !(Z.subject === U && Z.inverted)));
|
|
3382
3382
|
}
|
|
3383
|
-
n.value =
|
|
3383
|
+
n.value = W;
|
|
3384
3384
|
}
|
|
3385
3385
|
return St(
|
|
3386
3386
|
n,
|
|
3387
|
-
(
|
|
3388
|
-
l("permissionChanged",
|
|
3387
|
+
(I) => {
|
|
3388
|
+
l("permissionChanged", I);
|
|
3389
3389
|
},
|
|
3390
3390
|
{ deep: !0 }
|
|
3391
|
-
), (
|
|
3391
|
+
), (I, R) => (Q(), oe("div", Ur, [
|
|
3392
3392
|
se("div", jr, [
|
|
3393
|
-
_e(
|
|
3393
|
+
_e(kr, {
|
|
3394
3394
|
"model-value": F.value,
|
|
3395
3395
|
"excluded-subjects": w,
|
|
3396
3396
|
"additional-permissions": $(u),
|
|
@@ -3411,7 +3411,7 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3411
3411
|
context: $(a)("team.labels.warehouse"),
|
|
3412
3412
|
"onUpdate:modelValue": i
|
|
3413
3413
|
}, xe({ _: 2 }, [
|
|
3414
|
-
be(
|
|
3414
|
+
be(N.value, (v) => ({
|
|
3415
3415
|
name: `checkbox-${v.id}-append`,
|
|
3416
3416
|
fn: pe(() => [
|
|
3417
3417
|
_e(ct, { item: v }, null, 8, ["item"])
|
|
@@ -3419,7 +3419,7 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3419
3419
|
}))
|
|
3420
3420
|
]), 1032, ["model-value", "options", "context"])
|
|
3421
3421
|
]),
|
|
3422
|
-
se("div",
|
|
3422
|
+
se("div", Wr, [
|
|
3423
3423
|
_e(Cn, {
|
|
3424
3424
|
"model-value": E.value,
|
|
3425
3425
|
options: M.value,
|
|
@@ -3434,7 +3434,7 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3434
3434
|
}))
|
|
3435
3435
|
]), 1032, ["model-value", "options", "context"])
|
|
3436
3436
|
]),
|
|
3437
|
-
se("div",
|
|
3437
|
+
se("div", Gr, [
|
|
3438
3438
|
_e(Pr, {
|
|
3439
3439
|
roles: $(_),
|
|
3440
3440
|
"model-value": b.value,
|
|
@@ -3453,5 +3453,5 @@ const Sr = { class: "col flex items-center" }, Dr = {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
});
|
|
3455
3455
|
export {
|
|
3456
|
-
|
|
3456
|
+
Kr as _
|
|
3457
3457
|
};
|