@feedmepos/mf-hrm-portal 2.2.2-dev → 2.2.2-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-B9O8QzzI.js → ApprovalCodeList-BjRRA_sc.js} +2 -2
- package/dist/{AuditLogList-CtFEXKWZ.js → AuditLogList-B8kE39lt.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Ba8w1BwT.js} +2 -2
- package/dist/{EmployeeList-BFxMwFJq.js → EmployeeList-7e069yPp.js} +66 -65
- package/dist/{GrantUserList-CZtmMRoS.js → GrantUserList-CTYamty5.js} +3 -3
- package/dist/{Main-on0TXkQt.js → Main-B-3s0bf_.js} +5 -5
- package/dist/{Main-DD6IthCS.js → Main-DcPLufZ5.js} +2 -2
- package/dist/{Main-B622Z4q4.js → Main-DfeNUiyv.js} +9 -9
- package/dist/{PermissionSetList-FCX3TBoi.js → PermissionSetList-CNujxzHF.js} +77 -76
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cl_YNh0k.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cq9xp1TW.js} +585 -580
- package/dist/RoleList-YaY7Np_9.js +739 -0
- package/dist/{TeamMemberList-BAU7Y3jh.js → TeamMemberList-B-I3KjnH.js} +305 -305
- package/dist/{TimesheetList-DtFBWhma.js → TimesheetList-BTsvEiD6.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Tatn3jUv.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CJYgeUxK.js} +2 -2
- package/dist/{app-Bbf6hEPt.js → app-C3u5orep.js} +16 -12
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BAnGg8q2.js → dayjs.min-B-sLuqme.js} +1 -1
- package/dist/{employee-DVSD3L51.js → employee-DaduVi88.js} +3 -3
- package/dist/{iteration-BTZViJtd.js → iteration-Cii8ZeX3.js} +1 -1
- package/dist/{lodash-Cgdk4_YL.js → lodash-BifZ3B1q.js} +1 -1
- package/dist/{role-CXVpO6fB.js → role-tzqciGzt.js} +1 -1
- package/dist/{rule-TR3MVo-b.js → rule-GhzA0R9H.js} +287 -260
- package/dist/src/api/user/index.d.ts +2 -2
- package/dist/src/composables/useReportPermissions.d.ts +1 -0
- package/dist/src/helpers/rule.d.ts +2 -0
- package/dist/src/types/role.d.ts +1 -0
- package/dist/src/views/hr/locales/index.d.ts +12 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useReportPermissions-BRLy3D7v.js +82 -0
- package/package.json +2 -2
- package/dist/RoleList-p_9KHzqF.js +0 -725
- package/dist/useReportPermissions-BpAFyO17.js +0 -71
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as mr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as de, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as pr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as
|
|
6
|
-
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as Or, b as Sr, P as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
5
|
+
import { p as Gn, N as Yn, i as Ir, P as yr, y as At, l as Er, k as Nr } from "./rule-GhzA0R9H.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Ba8w1BwT.js";
|
|
7
|
+
import { u as Or, b as Sr, P as Zn, S as Ft, A as tt, e as he, k as rn, d as Ar } from "./app-C3u5orep.js";
|
|
8
|
+
import { c as It } from "./iteration-Cii8ZeX3.js";
|
|
9
9
|
import { g as Lr, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
10
|
-
import { u as kr } from "./role-
|
|
10
|
+
import { u as kr } from "./role-tzqciGzt.js";
|
|
11
11
|
function Bn(e, t) {
|
|
12
12
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
13
13
|
}
|
|
@@ -30,9 +30,9 @@ function sn(e, t) {
|
|
|
30
30
|
* (c) 2024 kazuya kawaguchi
|
|
31
31
|
* Released under the MIT License.
|
|
32
32
|
*/
|
|
33
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
33
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Dr({ l: e, k: t, s: n }), Dr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), Pr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, jr = Object.create, oe = (e = null) => jr(e);
|
|
34
34
|
let an;
|
|
35
|
-
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
35
|
+
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
36
36
|
function ln(e) {
|
|
37
37
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@ const Ur = Object.prototype.hasOwnProperty;
|
|
|
40
40
|
function Ae(e, t) {
|
|
41
41
|
return Ur.call(e, t);
|
|
42
42
|
}
|
|
43
|
-
const be = Array.isArray,
|
|
43
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Y = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vr = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", xr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
44
44
|
function $t(e, t = "") {
|
|
45
45
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
46
46
|
}
|
|
@@ -55,14 +55,14 @@ function yt(e, t) {
|
|
|
55
55
|
for (; n.length; ) {
|
|
56
56
|
const { src: r, des: l } = n.pop();
|
|
57
57
|
Object.keys(r).forEach((a) => {
|
|
58
|
-
a !== "__proto__" && (te(r[a]) && !te(l[a]) && (l[a] = Array.isArray(r[a]) ? [] :
|
|
58
|
+
a !== "__proto__" && (te(r[a]) && !te(l[a]) && (l[a] = Array.isArray(r[a]) ? [] : oe()), ft(l[a]) || ft(r[a]) ? l[a] = r[a] : n.push({ src: r[a], des: l[a] }));
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
function Gr(e, t, n) {
|
|
63
63
|
return { line: e, column: t, offset: n };
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Dt(e, t, n) {
|
|
66
66
|
return { start: e, end: t };
|
|
67
67
|
}
|
|
68
68
|
const re = {
|
|
@@ -82,12 +82,12 @@ const re = {
|
|
|
82
82
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
84
84
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
85
|
-
},
|
|
85
|
+
}, Yr = 17;
|
|
86
86
|
function Tt(e, t, n = {}) {
|
|
87
|
-
const { domain: r, messages: l, args: a } = n,
|
|
87
|
+
const { domain: r, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
88
88
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Zr(e) {
|
|
91
91
|
throw e;
|
|
92
92
|
}
|
|
93
93
|
const Pe = " ", Br = "\r", ye = `
|
|
@@ -95,12 +95,12 @@ const Pe = " ", Br = "\r", ye = `
|
|
|
95
95
|
function $r(e) {
|
|
96
96
|
const t = e;
|
|
97
97
|
let n = 0, r = 1, l = 1, a = 0;
|
|
98
|
-
const
|
|
98
|
+
const d = (p) => t[p] === Br && t[p + 1] === ye, u = (p) => t[p] === ye, i = (p) => t[p] === Hr, g = (p) => t[p] === Xr, y = (p) => d(p) || u(p) || i(p) || g(p), T = () => n, N = () => r, D = () => l, w = () => a, L = (p) => d(p) || i(p) || g(p) ? ye : t[p], F = () => L(n), f = () => L(n + a);
|
|
99
99
|
function h() {
|
|
100
|
-
return a = 0, y(n) && (r++, l = 0),
|
|
100
|
+
return a = 0, y(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
101
101
|
}
|
|
102
102
|
function S() {
|
|
103
|
-
return
|
|
103
|
+
return d(n + a) && a++, a++, t[n + a];
|
|
104
104
|
}
|
|
105
105
|
function c() {
|
|
106
106
|
n = 0, r = 1, l = 1, a = 0;
|
|
@@ -117,10 +117,10 @@ function $r(e) {
|
|
|
117
117
|
return {
|
|
118
118
|
index: T,
|
|
119
119
|
line: N,
|
|
120
|
-
column:
|
|
120
|
+
column: D,
|
|
121
121
|
peekOffset: w,
|
|
122
122
|
charAt: L,
|
|
123
|
-
currentChar:
|
|
123
|
+
currentChar: F,
|
|
124
124
|
currentPeek: f,
|
|
125
125
|
next: h,
|
|
126
126
|
peek: S,
|
|
@@ -131,15 +131,15 @@ function $r(e) {
|
|
|
131
131
|
}
|
|
132
132
|
const xe = void 0, Jr = ".", cn = "'", Kr = "tokenizer";
|
|
133
133
|
function zr(e, t = {}) {
|
|
134
|
-
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Gr(r.line(), r.column(), r.index()),
|
|
134
|
+
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Gr(r.line(), r.column(), r.index()), d = a(), u = l(), i = {
|
|
135
135
|
currentType: 13,
|
|
136
136
|
offset: u,
|
|
137
|
-
startLoc:
|
|
138
|
-
endLoc:
|
|
137
|
+
startLoc: d,
|
|
138
|
+
endLoc: d,
|
|
139
139
|
lastType: 13,
|
|
140
140
|
lastOffset: u,
|
|
141
|
-
lastStartLoc:
|
|
142
|
-
lastEndLoc:
|
|
141
|
+
lastStartLoc: d,
|
|
142
|
+
lastEndLoc: d,
|
|
143
143
|
braceNest: 0,
|
|
144
144
|
inLinked: !1,
|
|
145
145
|
text: ""
|
|
@@ -147,7 +147,7 @@ function zr(e, t = {}) {
|
|
|
147
147
|
function T(s, o, _, ...R) {
|
|
148
148
|
const M = g();
|
|
149
149
|
if (o.column += _, o.offset += _, y) {
|
|
150
|
-
const P = n ?
|
|
150
|
+
const P = n ? Dt(M.startLoc, o) : null, v = Tt(s, P, {
|
|
151
151
|
domain: Kr,
|
|
152
152
|
args: R
|
|
153
153
|
});
|
|
@@ -157,9 +157,9 @@ function zr(e, t = {}) {
|
|
|
157
157
|
function N(s, o, _) {
|
|
158
158
|
s.endLoc = a(), s.currentType = o;
|
|
159
159
|
const R = { type: o };
|
|
160
|
-
return n && (R.loc =
|
|
160
|
+
return n && (R.loc = Dt(s.startLoc, s.endLoc)), _ != null && (R.value = _), R;
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const D = (s) => N(
|
|
163
163
|
s,
|
|
164
164
|
13
|
|
165
165
|
/* TokenTypes.EOF */
|
|
@@ -173,7 +173,7 @@ function zr(e, t = {}) {
|
|
|
173
173
|
o += s.currentPeek(), s.peek();
|
|
174
174
|
return o;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function F(s) {
|
|
177
177
|
const o = L(s);
|
|
178
178
|
return s.skipToPeek(), o;
|
|
179
179
|
}
|
|
@@ -261,7 +261,7 @@ function zr(e, t = {}) {
|
|
|
261
261
|
}, R = _();
|
|
262
262
|
return o && s.resetPeek(), R;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function m(s, o) {
|
|
265
265
|
const _ = s.currentChar();
|
|
266
266
|
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
267
267
|
}
|
|
@@ -274,7 +274,7 @@ function zr(e, t = {}) {
|
|
|
274
274
|
o === 36;
|
|
275
275
|
}
|
|
276
276
|
function U(s) {
|
|
277
|
-
return
|
|
277
|
+
return m(s, C);
|
|
278
278
|
}
|
|
279
279
|
function V(s) {
|
|
280
280
|
const o = s.charCodeAt(0);
|
|
@@ -286,23 +286,23 @@ function zr(e, t = {}) {
|
|
|
286
286
|
o === 45;
|
|
287
287
|
}
|
|
288
288
|
function j(s) {
|
|
289
|
-
return
|
|
289
|
+
return m(s, V);
|
|
290
290
|
}
|
|
291
291
|
function G(s) {
|
|
292
292
|
const o = s.charCodeAt(0);
|
|
293
293
|
return o >= 48 && o <= 57;
|
|
294
294
|
}
|
|
295
295
|
function W(s) {
|
|
296
|
-
return
|
|
296
|
+
return m(s, G);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Z(s) {
|
|
299
299
|
const o = s.charCodeAt(0);
|
|
300
300
|
return o >= 48 && o <= 57 || // 0-9
|
|
301
301
|
o >= 65 && o <= 70 || // A-F
|
|
302
302
|
o >= 97 && o <= 102;
|
|
303
303
|
}
|
|
304
304
|
function B(s) {
|
|
305
|
-
return
|
|
305
|
+
return m(s, Z);
|
|
306
306
|
}
|
|
307
307
|
function ne(s) {
|
|
308
308
|
let o = "", _ = "";
|
|
@@ -330,24 +330,24 @@ function zr(e, t = {}) {
|
|
|
330
330
|
return o;
|
|
331
331
|
}
|
|
332
332
|
function _e(s) {
|
|
333
|
-
|
|
333
|
+
F(s);
|
|
334
334
|
let o = "", _ = "";
|
|
335
335
|
for (; o = j(s); )
|
|
336
336
|
_ += o;
|
|
337
337
|
return s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
338
338
|
}
|
|
339
339
|
function ce(s) {
|
|
340
|
-
|
|
340
|
+
F(s);
|
|
341
341
|
let o = "";
|
|
342
342
|
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function se(s) {
|
|
345
345
|
return s !== cn && s !== ye;
|
|
346
346
|
}
|
|
347
347
|
function fe(s) {
|
|
348
|
-
|
|
348
|
+
F(s), w(s, "'");
|
|
349
349
|
let o = "", _ = "";
|
|
350
|
-
for (; o =
|
|
350
|
+
for (; o = m(s, se); )
|
|
351
351
|
o === "\\" ? _ += q(s) : _ += o;
|
|
352
352
|
const R = s.currentChar();
|
|
353
353
|
return R === ye || R === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
@@ -359,14 +359,14 @@ function zr(e, t = {}) {
|
|
|
359
359
|
case "'":
|
|
360
360
|
return s.next(), `\\${o}`;
|
|
361
361
|
case "u":
|
|
362
|
-
return
|
|
362
|
+
return Fe(s, o, 4);
|
|
363
363
|
case "U":
|
|
364
|
-
return
|
|
364
|
+
return Fe(s, o, 6);
|
|
365
365
|
default:
|
|
366
366
|
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Fe(s, o, _) {
|
|
370
370
|
w(s, o);
|
|
371
371
|
let R = "";
|
|
372
372
|
for (let M = 0; M < _; M++) {
|
|
@@ -383,9 +383,9 @@ function zr(e, t = {}) {
|
|
|
383
383
|
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
384
384
|
}
|
|
385
385
|
function pe(s) {
|
|
386
|
-
|
|
386
|
+
F(s);
|
|
387
387
|
let o = "", _ = "";
|
|
388
|
-
for (; o =
|
|
388
|
+
for (; o = m(s, K); )
|
|
389
389
|
_ += o;
|
|
390
390
|
return _;
|
|
391
391
|
}
|
|
@@ -403,15 +403,15 @@ function zr(e, t = {}) {
|
|
|
403
403
|
return o("");
|
|
404
404
|
}
|
|
405
405
|
function Ve(s) {
|
|
406
|
-
|
|
406
|
+
F(s);
|
|
407
407
|
const o = w(
|
|
408
408
|
s,
|
|
409
409
|
"|"
|
|
410
410
|
/* TokenChars.Pipe */
|
|
411
411
|
);
|
|
412
|
-
return
|
|
412
|
+
return F(s), o;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function De(s, o) {
|
|
415
415
|
let _ = null;
|
|
416
416
|
switch (s.currentChar()) {
|
|
417
417
|
case "{":
|
|
@@ -420,30 +420,30 @@ function zr(e, t = {}) {
|
|
|
420
420
|
2,
|
|
421
421
|
"{"
|
|
422
422
|
/* TokenChars.BraceLeft */
|
|
423
|
-
),
|
|
423
|
+
), F(s), o.braceNest++, _;
|
|
424
424
|
case "}":
|
|
425
425
|
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
426
426
|
o,
|
|
427
427
|
3,
|
|
428
428
|
"}"
|
|
429
429
|
/* TokenChars.BraceRight */
|
|
430
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
430
|
+
), o.braceNest--, o.braceNest > 0 && F(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
431
431
|
case "@":
|
|
432
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) ||
|
|
432
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || D(o), o.braceNest = 0, _;
|
|
433
433
|
default: {
|
|
434
434
|
let M = !0, P = !0, v = !0;
|
|
435
435
|
if (X(s))
|
|
436
436
|
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
437
437
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
438
|
-
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
438
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ze(s, o);
|
|
439
439
|
if (M = S(s, o))
|
|
440
|
-
return _ = N(o, 4, _e(s)),
|
|
440
|
+
return _ = N(o, 4, _e(s)), F(s), _;
|
|
441
441
|
if (P = c(s, o))
|
|
442
|
-
return _ = N(o, 5, ce(s)),
|
|
442
|
+
return _ = N(o, 5, ce(s)), F(s), _;
|
|
443
443
|
if (v = b(s, o))
|
|
444
|
-
return _ = N(o, 6, fe(s)),
|
|
444
|
+
return _ = N(o, 6, fe(s)), F(s), _;
|
|
445
445
|
if (!M && !P && !v)
|
|
446
|
-
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value),
|
|
446
|
+
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), F(s), _;
|
|
447
447
|
break;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
@@ -462,35 +462,35 @@ function zr(e, t = {}) {
|
|
|
462
462
|
/* TokenChars.LinkedAlias */
|
|
463
463
|
), o.inLinked = !0, R;
|
|
464
464
|
case ".":
|
|
465
|
-
return
|
|
465
|
+
return F(s), s.next(), N(
|
|
466
466
|
o,
|
|
467
467
|
8,
|
|
468
468
|
"."
|
|
469
469
|
/* TokenChars.LinkedDot */
|
|
470
470
|
);
|
|
471
471
|
case ":":
|
|
472
|
-
return
|
|
472
|
+
return F(s), s.next(), N(
|
|
473
473
|
o,
|
|
474
474
|
9,
|
|
475
475
|
":"
|
|
476
476
|
/* TokenChars.LinkedDelimiter */
|
|
477
477
|
);
|
|
478
478
|
default:
|
|
479
|
-
return X(s) ? (R = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (
|
|
479
|
+
return X(s) ? (R = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (F(s), Ce(s, o)) : p(s, o) ? (F(s), N(o, 11, Je(s))) : A(s, o) ? (F(s), M === "{" ? De(s, o) || R : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ze(s, o));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ze(s, o) {
|
|
483
483
|
let _ = {
|
|
484
484
|
type: 13
|
|
485
485
|
/* TokenTypes.EOF */
|
|
486
486
|
};
|
|
487
487
|
if (o.braceNest > 0)
|
|
488
|
-
return
|
|
488
|
+
return De(s, o) || D(o);
|
|
489
489
|
if (o.inLinked)
|
|
490
|
-
return Ce(s, o) ||
|
|
490
|
+
return Ce(s, o) || D(o);
|
|
491
491
|
switch (s.currentChar()) {
|
|
492
492
|
case "{":
|
|
493
|
-
return
|
|
493
|
+
return De(s, o) || D(o);
|
|
494
494
|
case "}":
|
|
495
495
|
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
496
496
|
o,
|
|
@@ -499,7 +499,7 @@ function zr(e, t = {}) {
|
|
|
499
499
|
/* TokenChars.BraceRight */
|
|
500
500
|
);
|
|
501
501
|
case "@":
|
|
502
|
-
return Ce(s, o) ||
|
|
502
|
+
return Ce(s, o) || D(o);
|
|
503
503
|
default: {
|
|
504
504
|
if (X(s))
|
|
505
505
|
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
@@ -516,7 +516,7 @@ function zr(e, t = {}) {
|
|
|
516
516
|
i,
|
|
517
517
|
13
|
|
518
518
|
/* TokenTypes.EOF */
|
|
519
|
-
) :
|
|
519
|
+
) : Ze(r, i);
|
|
520
520
|
}
|
|
521
521
|
return {
|
|
522
522
|
nextToken: O,
|
|
@@ -543,7 +543,7 @@ function ts(e = {}) {
|
|
|
543
543
|
function r(f, h, S, c, ...b) {
|
|
544
544
|
const I = f.currentPosition();
|
|
545
545
|
if (I.offset += c, I.column += c, n) {
|
|
546
|
-
const p = t ?
|
|
546
|
+
const p = t ? Dt(S, I) : null, k = Tt(h, p, {
|
|
547
547
|
domain: Qr,
|
|
548
548
|
args: b
|
|
549
549
|
});
|
|
@@ -557,7 +557,7 @@ function ts(e = {}) {
|
|
|
557
557
|
function a(f, h, S, c) {
|
|
558
558
|
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function d(f, h) {
|
|
561
561
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
562
562
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
563
563
|
}
|
|
@@ -619,7 +619,7 @@ function ts(e = {}) {
|
|
|
619
619
|
node: S
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function D(f) {
|
|
623
623
|
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
624
624
|
b.items = [];
|
|
625
625
|
let I = null;
|
|
@@ -627,7 +627,7 @@ function ts(e = {}) {
|
|
|
627
627
|
const A = I || f.nextToken();
|
|
628
628
|
switch (I = null, A.type) {
|
|
629
629
|
case 0:
|
|
630
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(
|
|
630
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(d(f, A.value || ""));
|
|
631
631
|
break;
|
|
632
632
|
case 5:
|
|
633
633
|
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(u(f, A.value || ""));
|
|
@@ -654,20 +654,20 @@ function ts(e = {}) {
|
|
|
654
654
|
const p = l(1, h, S);
|
|
655
655
|
p.cases = [], p.cases.push(c);
|
|
656
656
|
do {
|
|
657
|
-
const k =
|
|
657
|
+
const k = D(f);
|
|
658
658
|
I || (I = k.items.length === 0), p.cases.push(k);
|
|
659
659
|
} while (b.currentType !== 13);
|
|
660
660
|
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
661
661
|
}
|
|
662
662
|
function L(f) {
|
|
663
|
-
const h = f.context(), { offset: S, startLoc: c } = h, b =
|
|
663
|
+
const h = f.context(), { offset: S, startLoc: c } = h, b = D(f);
|
|
664
664
|
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function F(f) {
|
|
667
667
|
const h = zr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
668
668
|
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
669
669
|
}
|
|
670
|
-
return { parse:
|
|
670
|
+
return { parse: F };
|
|
671
671
|
}
|
|
672
672
|
function Re(e) {
|
|
673
673
|
if (e.type === 13)
|
|
@@ -738,9 +738,9 @@ function rs(e, t = {}) {
|
|
|
738
738
|
}
|
|
739
739
|
function ss(e) {
|
|
740
740
|
const t = e.body;
|
|
741
|
-
return t.type === 2 ?
|
|
741
|
+
return t.type === 2 ? dn(t) : t.cases.forEach((n) => dn(n)), e;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function dn(e) {
|
|
744
744
|
if (e.items.length === 1) {
|
|
745
745
|
const t = e.items[0];
|
|
746
746
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -809,7 +809,7 @@ function Qe(e) {
|
|
|
809
809
|
delete e.type;
|
|
810
810
|
}
|
|
811
811
|
function os(e, t) {
|
|
812
|
-
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1,
|
|
812
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, d = {
|
|
813
813
|
filename: n,
|
|
814
814
|
code: "",
|
|
815
815
|
column: 1,
|
|
@@ -820,25 +820,25 @@ function os(e, t) {
|
|
|
820
820
|
needIndent: l,
|
|
821
821
|
indentLevel: 0
|
|
822
822
|
};
|
|
823
|
-
a && e.loc && (
|
|
824
|
-
const u = () =>
|
|
825
|
-
function i(L,
|
|
826
|
-
|
|
823
|
+
a && e.loc && (d.source = e.loc.source);
|
|
824
|
+
const u = () => d;
|
|
825
|
+
function i(L, F) {
|
|
826
|
+
d.code += L;
|
|
827
827
|
}
|
|
828
|
-
function g(L,
|
|
829
|
-
const f =
|
|
828
|
+
function g(L, F = !0) {
|
|
829
|
+
const f = F ? r : "";
|
|
830
830
|
i(l ? f + " ".repeat(L) : f);
|
|
831
831
|
}
|
|
832
832
|
function y(L = !0) {
|
|
833
|
-
const
|
|
834
|
-
L && g(
|
|
833
|
+
const F = ++d.indentLevel;
|
|
834
|
+
L && g(F);
|
|
835
835
|
}
|
|
836
836
|
function T(L = !0) {
|
|
837
|
-
const
|
|
838
|
-
L && g(
|
|
837
|
+
const F = --d.indentLevel;
|
|
838
|
+
L && g(F);
|
|
839
839
|
}
|
|
840
840
|
function N() {
|
|
841
|
-
g(
|
|
841
|
+
g(d.indentLevel);
|
|
842
842
|
}
|
|
843
843
|
return {
|
|
844
844
|
context: u,
|
|
@@ -847,7 +847,7 @@ function os(e, t) {
|
|
|
847
847
|
deindent: T,
|
|
848
848
|
newline: N,
|
|
849
849
|
helper: (L) => `_${L}`,
|
|
850
|
-
needIndent: () =>
|
|
850
|
+
needIndent: () => d.needIndent
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
853
|
function as(e, t) {
|
|
@@ -932,15 +932,15 @@ function st(e, t) {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
const us = (e, t = {}) => {
|
|
935
|
-
const n =
|
|
935
|
+
const n = Y(t.mode) ? t.mode : "normal", r = Y(t.filename) ? t.filename : "message.intl";
|
|
936
936
|
t.sourceMap;
|
|
937
937
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
938
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
938
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = os(e, {
|
|
939
939
|
filename: r,
|
|
940
940
|
breakLineCode: l,
|
|
941
941
|
needIndent: a
|
|
942
942
|
});
|
|
943
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
943
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
944
944
|
const { code: i, map: g } = u.context();
|
|
945
945
|
return {
|
|
946
946
|
ast: e,
|
|
@@ -949,11 +949,11 @@ const us = (e, t = {}) => {
|
|
|
949
949
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
950
950
|
};
|
|
951
951
|
};
|
|
952
|
-
function
|
|
952
|
+
function ds(e, t = {}) {
|
|
953
953
|
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ts(n).parse(e);
|
|
954
954
|
return r ? (a && ss(u), l && Qe(u), { ast: u, code: "" }) : (rs(u, n), us(u, n));
|
|
955
955
|
}
|
|
956
|
-
var
|
|
956
|
+
var ms = { env: { NODE_ENV: "production" } };
|
|
957
957
|
function fs() {
|
|
958
958
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
959
959
|
}
|
|
@@ -969,12 +969,12 @@ function _s(e, t) {
|
|
|
969
969
|
);
|
|
970
970
|
if (Kt(n) === 1) {
|
|
971
971
|
const a = bs(n);
|
|
972
|
-
return e.plural(a.reduce((
|
|
973
|
-
...
|
|
974
|
-
|
|
972
|
+
return e.plural(a.reduce((d, u) => [
|
|
973
|
+
...d,
|
|
974
|
+
mn(e, u)
|
|
975
975
|
], []));
|
|
976
976
|
} else
|
|
977
|
-
return
|
|
977
|
+
return mn(e, n);
|
|
978
978
|
}
|
|
979
979
|
const ps = ["b", "body"];
|
|
980
980
|
function vs(e) {
|
|
@@ -984,7 +984,7 @@ const hs = ["c", "cases"];
|
|
|
984
984
|
function bs(e) {
|
|
985
985
|
return Ge(e, hs, []);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function mn(e, t) {
|
|
988
988
|
const n = Is(t);
|
|
989
989
|
if (n != null)
|
|
990
990
|
return e.type === "text" ? n : e.normalize([n]);
|
|
@@ -1073,30 +1073,30 @@ function it(e) {
|
|
|
1073
1073
|
return new Error(`unhandled node type: ${e}`);
|
|
1074
1074
|
}
|
|
1075
1075
|
const Ls = (e) => e;
|
|
1076
|
-
let pt =
|
|
1076
|
+
let pt = oe();
|
|
1077
1077
|
function ot(e) {
|
|
1078
1078
|
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1079
1079
|
}
|
|
1080
1080
|
function Rs(e, t = {}) {
|
|
1081
1081
|
let n = !1;
|
|
1082
|
-
const r = t.onError ||
|
|
1082
|
+
const r = t.onError || Zr;
|
|
1083
1083
|
return t.onError = (l) => {
|
|
1084
1084
|
n = !0, r(l);
|
|
1085
|
-
}, { ...
|
|
1085
|
+
}, { ...ds(e, t), detectError: n };
|
|
1086
1086
|
}
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
1088
|
function ks(e, t) {
|
|
1089
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1089
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Y(e)) {
|
|
1090
1090
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1091
1091
|
const r = (t.onCacheKey || Ls)(e), l = pt[r];
|
|
1092
1092
|
if (l)
|
|
1093
1093
|
return l;
|
|
1094
|
-
const { ast: a, detectError:
|
|
1094
|
+
const { ast: a, detectError: d } = Rs(e, {
|
|
1095
1095
|
...t,
|
|
1096
|
-
location:
|
|
1096
|
+
location: ms.env.NODE_ENV !== "production",
|
|
1097
1097
|
jit: !0
|
|
1098
1098
|
}), u = Lt(a);
|
|
1099
|
-
return
|
|
1099
|
+
return d ? u : pt[r] = u;
|
|
1100
1100
|
} else {
|
|
1101
1101
|
const n = e.cacheKey;
|
|
1102
1102
|
if (n) {
|
|
@@ -1118,12 +1118,12 @@ function ws(e, t, n) {
|
|
|
1118
1118
|
meta: n
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1122
|
-
function
|
|
1121
|
+
const Fs = /* @__PURE__ */ Ds("function:translate");
|
|
1122
|
+
function Ds(e) {
|
|
1123
1123
|
return (t) => ct && ct.emit(e, t);
|
|
1124
1124
|
}
|
|
1125
1125
|
const je = {
|
|
1126
|
-
INVALID_ARGUMENT:
|
|
1126
|
+
INVALID_ARGUMENT: Yr,
|
|
1127
1127
|
// 17
|
|
1128
1128
|
INVALID_DATE_ARGUMENT: 18,
|
|
1129
1129
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1139,9 +1139,9 @@ function zt(e, t) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
let Rt;
|
|
1141
1141
|
function fn(e) {
|
|
1142
|
-
if (
|
|
1142
|
+
if (Y(e))
|
|
1143
1143
|
return e;
|
|
1144
|
-
if (
|
|
1144
|
+
if (me(e)) {
|
|
1145
1145
|
if (e.resolvedOnce && Rt != null)
|
|
1146
1146
|
return Rt;
|
|
1147
1147
|
if (e.constructor.name === "Function") {
|
|
@@ -1157,20 +1157,20 @@ function fn(e) {
|
|
|
1157
1157
|
function js(e, t, n) {
|
|
1158
1158
|
return [.../* @__PURE__ */ new Set([
|
|
1159
1159
|
n,
|
|
1160
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1160
|
+
...be(t) ? t : te(t) ? Object.keys(t) : Y(t) ? [t] : [n]
|
|
1161
1161
|
])];
|
|
1162
1162
|
}
|
|
1163
1163
|
function Hn(e, t, n) {
|
|
1164
|
-
const r =
|
|
1164
|
+
const r = Y(n) ? n : Nt, l = e;
|
|
1165
1165
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1166
1166
|
let a = l.__localeChainCache.get(r);
|
|
1167
1167
|
if (!a) {
|
|
1168
1168
|
a = [];
|
|
1169
|
-
let
|
|
1170
|
-
for (; be(
|
|
1171
|
-
|
|
1169
|
+
let d = [n];
|
|
1170
|
+
for (; be(d); )
|
|
1171
|
+
d = _n(a, d, t);
|
|
1172
1172
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1173
|
-
|
|
1173
|
+
d = Y(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(r, a);
|
|
1174
1174
|
}
|
|
1175
1175
|
return a;
|
|
1176
1176
|
}
|
|
@@ -1178,7 +1178,7 @@ function _n(e, t, n) {
|
|
|
1178
1178
|
let r = !0;
|
|
1179
1179
|
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1180
1180
|
const a = t[l];
|
|
1181
|
-
|
|
1181
|
+
Y(a) && (r = Us(e, t[l], n));
|
|
1182
1182
|
}
|
|
1183
1183
|
return r;
|
|
1184
1184
|
}
|
|
@@ -1200,8 +1200,8 @@ function Vs(e, t, n) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
return r;
|
|
1202
1202
|
}
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1203
|
+
const Ye = [];
|
|
1204
|
+
Ye[
|
|
1205
1205
|
0
|
|
1206
1206
|
/* States.BEFORE_PATH */
|
|
1207
1207
|
] = {
|
|
@@ -1223,7 +1223,7 @@ Ze[
|
|
|
1223
1223
|
/* States.AFTER_PATH */
|
|
1224
1224
|
]
|
|
1225
1225
|
};
|
|
1226
|
-
|
|
1226
|
+
Ye[
|
|
1227
1227
|
1
|
|
1228
1228
|
/* States.IN_PATH */
|
|
1229
1229
|
] = {
|
|
@@ -1244,7 +1244,7 @@ Ze[
|
|
|
1244
1244
|
/* States.AFTER_PATH */
|
|
1245
1245
|
]
|
|
1246
1246
|
};
|
|
1247
|
-
|
|
1247
|
+
Ye[
|
|
1248
1248
|
2
|
|
1249
1249
|
/* States.BEFORE_IDENT */
|
|
1250
1250
|
] = {
|
|
@@ -1263,7 +1263,7 @@ Ze[
|
|
|
1263
1263
|
/* Actions.APPEND */
|
|
1264
1264
|
]
|
|
1265
1265
|
};
|
|
1266
|
-
|
|
1266
|
+
Ye[
|
|
1267
1267
|
3
|
|
1268
1268
|
/* States.IN_IDENT */
|
|
1269
1269
|
] = {
|
|
@@ -1298,7 +1298,7 @@ Ze[
|
|
|
1298
1298
|
/* Actions.PUSH */
|
|
1299
1299
|
]
|
|
1300
1300
|
};
|
|
1301
|
-
|
|
1301
|
+
Ye[
|
|
1302
1302
|
4
|
|
1303
1303
|
/* States.IN_SUB_PATH */
|
|
1304
1304
|
] = {
|
|
@@ -1329,7 +1329,7 @@ Ze[
|
|
|
1329
1329
|
/* Actions.APPEND */
|
|
1330
1330
|
]
|
|
1331
1331
|
};
|
|
1332
|
-
|
|
1332
|
+
Ye[
|
|
1333
1333
|
5
|
|
1334
1334
|
/* States.IN_SINGLE_QUOTE */
|
|
1335
1335
|
] = {
|
|
@@ -1345,7 +1345,7 @@ Ze[
|
|
|
1345
1345
|
/* Actions.APPEND */
|
|
1346
1346
|
]
|
|
1347
1347
|
};
|
|
1348
|
-
|
|
1348
|
+
Ye[
|
|
1349
1349
|
6
|
|
1350
1350
|
/* States.IN_DOUBLE_QUOTE */
|
|
1351
1351
|
] = {
|
|
@@ -1369,7 +1369,7 @@ function Gs(e) {
|
|
|
1369
1369
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1370
1370
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Ys(e) {
|
|
1373
1373
|
if (e == null)
|
|
1374
1374
|
return "o";
|
|
1375
1375
|
switch (e.charCodeAt(0)) {
|
|
@@ -1394,24 +1394,24 @@ function Zs(e) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return "i";
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Zs(e) {
|
|
1398
1398
|
const t = e.trim();
|
|
1399
1399
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ws(t) ? Gs(t) : "*" + t;
|
|
1400
1400
|
}
|
|
1401
1401
|
function Bs(e) {
|
|
1402
1402
|
const t = [];
|
|
1403
|
-
let n = -1, r = 0, l = 0, a,
|
|
1403
|
+
let n = -1, r = 0, l = 0, a, d, u, i, g, y, T;
|
|
1404
1404
|
const N = [];
|
|
1405
1405
|
N[
|
|
1406
1406
|
0
|
|
1407
1407
|
/* Actions.APPEND */
|
|
1408
1408
|
] = () => {
|
|
1409
|
-
|
|
1409
|
+
d === void 0 ? d = u : d += u;
|
|
1410
1410
|
}, N[
|
|
1411
1411
|
1
|
|
1412
1412
|
/* Actions.PUSH */
|
|
1413
1413
|
] = () => {
|
|
1414
|
-
|
|
1414
|
+
d !== void 0 && (t.push(d), d = void 0);
|
|
1415
1415
|
}, N[
|
|
1416
1416
|
2
|
|
1417
1417
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
@@ -1430,7 +1430,7 @@ function Bs(e) {
|
|
|
1430
1430
|
/* Actions.APPEND */
|
|
1431
1431
|
]();
|
|
1432
1432
|
else {
|
|
1433
|
-
if (l = 0,
|
|
1433
|
+
if (l = 0, d === void 0 || (d = Zs(d), d === !1))
|
|
1434
1434
|
return !1;
|
|
1435
1435
|
N[
|
|
1436
1436
|
1
|
|
@@ -1438,7 +1438,7 @@ function Bs(e) {
|
|
|
1438
1438
|
]();
|
|
1439
1439
|
}
|
|
1440
1440
|
};
|
|
1441
|
-
function
|
|
1441
|
+
function D() {
|
|
1442
1442
|
const w = e[n + 1];
|
|
1443
1443
|
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1444
1444
|
return n++, u = "\\" + w, N[
|
|
@@ -1447,8 +1447,8 @@ function Bs(e) {
|
|
|
1447
1447
|
](), !0;
|
|
1448
1448
|
}
|
|
1449
1449
|
for (; r !== null; )
|
|
1450
|
-
if (n++, a = e[n], !(a === "\\" &&
|
|
1451
|
-
if (i =
|
|
1450
|
+
if (n++, a = e[n], !(a === "\\" && D())) {
|
|
1451
|
+
if (i = Ys(a), T = Ye[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = N[g[1]], y && (u = a, y() === !1))))
|
|
1452
1452
|
return;
|
|
1453
1453
|
if (r === 7)
|
|
1454
1454
|
return t;
|
|
@@ -1467,19 +1467,19 @@ function Hs(e, t) {
|
|
|
1467
1467
|
const r = n.length;
|
|
1468
1468
|
let l = e, a = 0;
|
|
1469
1469
|
for (; a < r; ) {
|
|
1470
|
-
const
|
|
1471
|
-
if (
|
|
1470
|
+
const d = l[n[a]];
|
|
1471
|
+
if (d === void 0 || me(l))
|
|
1472
1472
|
return null;
|
|
1473
|
-
l =
|
|
1473
|
+
l = d, a++;
|
|
1474
1474
|
}
|
|
1475
1475
|
return l;
|
|
1476
1476
|
}
|
|
1477
1477
|
const $s = "10.0.5", Ot = -1, Nt = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1478
1478
|
function Js() {
|
|
1479
1479
|
return {
|
|
1480
|
-
upper: (e, t) => t === "text" &&
|
|
1481
|
-
lower: (e, t) => t === "text" &&
|
|
1482
|
-
capitalize: (e, t) => t === "text" &&
|
|
1480
|
+
upper: (e, t) => t === "text" && Y(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1481
|
+
lower: (e, t) => t === "text" && Y(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1482
|
+
capitalize: (e, t) => t === "text" && Y(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1483
1483
|
};
|
|
1484
1484
|
}
|
|
1485
1485
|
let $n;
|
|
@@ -1504,22 +1504,22 @@ const bn = (e) => {
|
|
|
1504
1504
|
}, to = () => Qn;
|
|
1505
1505
|
let gn = 0;
|
|
1506
1506
|
function no(e = {}) {
|
|
1507
|
-
const t =
|
|
1507
|
+
const t = me(e.onWarn) ? e.onWarn : Wr, n = Y(e.version) ? e.version : $s, r = Y(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Js()), y = e.pluralRules || oe(), T = me(e.missing) ? e.missing : null, N = ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, D = ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, F = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Xs, I = me(e.localeFallbacker) ? e.localeFallbacker : Kn || js, p = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, A = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), x = te(k.__meta) ? k.__meta : {};
|
|
1508
1508
|
gn++;
|
|
1509
|
-
const
|
|
1509
|
+
const m = {
|
|
1510
1510
|
version: n,
|
|
1511
1511
|
cid: gn,
|
|
1512
1512
|
locale: r,
|
|
1513
1513
|
fallbackLocale: a,
|
|
1514
|
-
messages:
|
|
1514
|
+
messages: d,
|
|
1515
1515
|
modifiers: g,
|
|
1516
1516
|
pluralRules: y,
|
|
1517
1517
|
missing: T,
|
|
1518
1518
|
missingWarn: N,
|
|
1519
|
-
fallbackWarn:
|
|
1519
|
+
fallbackWarn: D,
|
|
1520
1520
|
fallbackFormat: w,
|
|
1521
1521
|
unresolving: L,
|
|
1522
|
-
postTranslation:
|
|
1522
|
+
postTranslation: F,
|
|
1523
1523
|
processor: f,
|
|
1524
1524
|
warnHtmlMessage: h,
|
|
1525
1525
|
escapeParameter: S,
|
|
@@ -1530,14 +1530,14 @@ function no(e = {}) {
|
|
|
1530
1530
|
onWarn: t,
|
|
1531
1531
|
__meta: x
|
|
1532
1532
|
};
|
|
1533
|
-
return
|
|
1533
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = A, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && ws(m, n, x), m;
|
|
1534
1534
|
}
|
|
1535
|
-
const kt = (e) => ({ [e]:
|
|
1535
|
+
const kt = (e) => ({ [e]: oe() });
|
|
1536
1536
|
function Qt(e, t, n, r, l) {
|
|
1537
|
-
const { missing: a, onWarn:
|
|
1537
|
+
const { missing: a, onWarn: d } = e;
|
|
1538
1538
|
if (a !== null) {
|
|
1539
1539
|
const u = a(e, n, t, l);
|
|
1540
|
-
return
|
|
1540
|
+
return Y(u) ? u : t;
|
|
1541
1541
|
} else
|
|
1542
1542
|
return t;
|
|
1543
1543
|
}
|
|
@@ -1558,26 +1558,26 @@ function so(e, t) {
|
|
|
1558
1558
|
return !1;
|
|
1559
1559
|
}
|
|
1560
1560
|
function In(e, ...t) {
|
|
1561
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1561
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1562
1562
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1563
|
-
const
|
|
1563
|
+
const D = !!y.part, w = zt(e, y), L = d(
|
|
1564
1564
|
e,
|
|
1565
1565
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1566
1566
|
l,
|
|
1567
1567
|
w
|
|
1568
1568
|
);
|
|
1569
|
-
if (!
|
|
1569
|
+
if (!Y(i) || i === "")
|
|
1570
1570
|
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1571
|
-
let
|
|
1571
|
+
let F = {}, f, h = null;
|
|
1572
1572
|
const S = "datetime format";
|
|
1573
|
-
for (let I = 0; I < L.length && (f = L[I],
|
|
1573
|
+
for (let I = 0; I < L.length && (f = L[I], F = n[f] || {}, h = F[i], !ee(h)); I++)
|
|
1574
1574
|
Qt(e, i, f, N, S);
|
|
1575
|
-
if (!ee(h) || !
|
|
1575
|
+
if (!ee(h) || !Y(f))
|
|
1576
1576
|
return r ? Ot : i;
|
|
1577
1577
|
let c = `${f}__${i}`;
|
|
1578
1578
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1579
1579
|
let b = u.get(c);
|
|
1580
|
-
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)),
|
|
1580
|
+
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), D ? b.formatToParts(g) : b.format(g);
|
|
1581
1581
|
}
|
|
1582
1582
|
const qn = [
|
|
1583
1583
|
"localeMatcher",
|
|
@@ -1602,9 +1602,9 @@ const qn = [
|
|
|
1602
1602
|
"fractionalSecondDigits"
|
|
1603
1603
|
];
|
|
1604
1604
|
function jt(...e) {
|
|
1605
|
-
const [t, n, r, l] = e, a =
|
|
1606
|
-
let
|
|
1607
|
-
if (
|
|
1605
|
+
const [t, n, r, l] = e, a = oe();
|
|
1606
|
+
let d = oe(), u;
|
|
1607
|
+
if (Y(t)) {
|
|
1608
1608
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1609
1609
|
if (!i)
|
|
1610
1610
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1623,9 +1623,9 @@ function jt(...e) {
|
|
|
1623
1623
|
u = t;
|
|
1624
1624
|
else
|
|
1625
1625
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1626
|
-
return
|
|
1627
|
-
qn.includes(i) ?
|
|
1628
|
-
}),
|
|
1626
|
+
return Y(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1627
|
+
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1628
|
+
}), Y(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1629
1629
|
}
|
|
1630
1630
|
function yn(e, t, n) {
|
|
1631
1631
|
const r = e;
|
|
@@ -1635,26 +1635,26 @@ function yn(e, t, n) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
function En(e, ...t) {
|
|
1638
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1638
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1639
1639
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1640
|
-
const
|
|
1640
|
+
const D = !!y.part, w = zt(e, y), L = d(
|
|
1641
1641
|
e,
|
|
1642
1642
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1643
1643
|
l,
|
|
1644
1644
|
w
|
|
1645
1645
|
);
|
|
1646
|
-
if (!
|
|
1646
|
+
if (!Y(i) || i === "")
|
|
1647
1647
|
return new Intl.NumberFormat(w, T).format(g);
|
|
1648
|
-
let
|
|
1648
|
+
let F = {}, f, h = null;
|
|
1649
1649
|
const S = "number format";
|
|
1650
|
-
for (let I = 0; I < L.length && (f = L[I],
|
|
1650
|
+
for (let I = 0; I < L.length && (f = L[I], F = n[f] || {}, h = F[i], !ee(h)); I++)
|
|
1651
1651
|
Qt(e, i, f, N, S);
|
|
1652
|
-
if (!ee(h) || !
|
|
1652
|
+
if (!ee(h) || !Y(f))
|
|
1653
1653
|
return r ? Ot : i;
|
|
1654
1654
|
let c = `${f}__${i}`;
|
|
1655
1655
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1656
1656
|
let b = u.get(c);
|
|
1657
|
-
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)),
|
|
1657
|
+
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), D ? b.formatToParts(g) : b.format(g);
|
|
1658
1658
|
}
|
|
1659
1659
|
const er = [
|
|
1660
1660
|
"localeMatcher",
|
|
@@ -1679,14 +1679,14 @@ const er = [
|
|
|
1679
1679
|
"trailingZeroDisplay"
|
|
1680
1680
|
];
|
|
1681
1681
|
function Ut(...e) {
|
|
1682
|
-
const [t, n, r, l] = e, a =
|
|
1683
|
-
let
|
|
1682
|
+
const [t, n, r, l] = e, a = oe();
|
|
1683
|
+
let d = oe();
|
|
1684
1684
|
if (!ge(t))
|
|
1685
1685
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1686
1686
|
const u = t;
|
|
1687
|
-
return
|
|
1688
|
-
er.includes(i) ?
|
|
1689
|
-
}),
|
|
1687
|
+
return Y(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1688
|
+
er.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1689
|
+
}), Y(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1690
1690
|
}
|
|
1691
1691
|
function Nn(e, t, n) {
|
|
1692
1692
|
const r = e;
|
|
@@ -1707,22 +1707,22 @@ function mo(e, t) {
|
|
|
1707
1707
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1708
1708
|
}
|
|
1709
1709
|
function fo(e = {}) {
|
|
1710
|
-
const t = e.locale, n = uo(e), r = te(e.pluralRules) &&
|
|
1710
|
+
const t = e.locale, n = uo(e), r = te(e.pluralRules) && Y(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Y(t) && me(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1711
1711
|
ge(e.pluralIndex) && mo(n, i);
|
|
1712
1712
|
const g = (f) => i[f];
|
|
1713
1713
|
function y(f, h) {
|
|
1714
|
-
const S =
|
|
1714
|
+
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1715
1715
|
return S || (e.parent ? e.parent.message(f) : ao);
|
|
1716
1716
|
}
|
|
1717
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : oo, N = ee(e.processor) &&
|
|
1717
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : oo, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : io, D = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : co, w = ee(e.processor) && Y(e.processor.type) ? e.processor.type : lo, F = {
|
|
1718
1718
|
list: u,
|
|
1719
1719
|
named: g,
|
|
1720
1720
|
plural: a,
|
|
1721
1721
|
linked: (f, ...h) => {
|
|
1722
1722
|
const [S, c] = h;
|
|
1723
1723
|
let b = "text", I = "";
|
|
1724
|
-
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) :
|
|
1725
|
-
const p = y(f, !0)(
|
|
1724
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Y(S) && (I = S || I) : h.length === 2 && (Y(S) && (I = S || I), Y(c) && (b = c || b));
|
|
1725
|
+
const p = y(f, !0)(F), k = (
|
|
1726
1726
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1727
1727
|
b === "vnode" && be(p) && I ? p[0] : p
|
|
1728
1728
|
);
|
|
@@ -1730,22 +1730,22 @@ function fo(e = {}) {
|
|
|
1730
1730
|
},
|
|
1731
1731
|
message: y,
|
|
1732
1732
|
type: w,
|
|
1733
|
-
interpolate:
|
|
1733
|
+
interpolate: D,
|
|
1734
1734
|
normalize: N,
|
|
1735
|
-
values: Ie(
|
|
1735
|
+
values: Ie(oe(), d, i)
|
|
1736
1736
|
};
|
|
1737
|
-
return
|
|
1737
|
+
return F;
|
|
1738
1738
|
}
|
|
1739
|
-
const Tn = () => "", Te = (e) =>
|
|
1739
|
+
const Tn = () => "", Te = (e) => me(e);
|
|
1740
1740
|
function On(e, ...t) {
|
|
1741
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale:
|
|
1741
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, D = !!g.resolvedMessage, w = Y(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Y(w) || me(w)), F = zt(e, g);
|
|
1742
1742
|
N && _o(g);
|
|
1743
|
-
let [f, h, S] =
|
|
1743
|
+
let [f, h, S] = D ? [
|
|
1744
1744
|
i,
|
|
1745
|
-
|
|
1746
|
-
u[
|
|
1747
|
-
] : tr(e, i,
|
|
1748
|
-
if (!
|
|
1745
|
+
F,
|
|
1746
|
+
u[F] || oe()
|
|
1747
|
+
] : tr(e, i, F, d, T, y), c = f, b = i;
|
|
1748
|
+
if (!D && !(Y(c) || ot(c) || Te(c)) && L && (c = w, b = c), !D && (!(Y(c) || ot(c) || Te(c)) || !Y(h)))
|
|
1749
1749
|
return l ? Ot : i;
|
|
1750
1750
|
let I = !1;
|
|
1751
1751
|
const p = () => {
|
|
@@ -1753,31 +1753,31 @@ function On(e, ...t) {
|
|
|
1753
1753
|
}, k = Te(c) ? c : nr(e, i, h, c, b, p);
|
|
1754
1754
|
if (I)
|
|
1755
1755
|
return c;
|
|
1756
|
-
const A = ho(e, h, S, g), X = fo(A), x = po(e, k, X),
|
|
1756
|
+
const A = ho(e, h, S, g), X = fo(A), x = po(e, k, X), m = r ? r(x, i) : x;
|
|
1757
1757
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1758
1758
|
const C = {
|
|
1759
1759
|
timestamp: Date.now(),
|
|
1760
|
-
key:
|
|
1760
|
+
key: Y(i) ? i : Te(c) ? c.key : "",
|
|
1761
1761
|
locale: h || (Te(c) ? c.locale : ""),
|
|
1762
|
-
format:
|
|
1763
|
-
message:
|
|
1762
|
+
format: Y(c) ? c : Te(c) ? c.source : "",
|
|
1763
|
+
message: m
|
|
1764
1764
|
};
|
|
1765
|
-
C.meta = Ie({}, e.__meta, /* @__PURE__ */ eo() || {}),
|
|
1765
|
+
C.meta = Ie({}, e.__meta, /* @__PURE__ */ eo() || {}), Fs(C);
|
|
1766
1766
|
}
|
|
1767
|
-
return
|
|
1767
|
+
return m;
|
|
1768
1768
|
}
|
|
1769
1769
|
function _o(e) {
|
|
1770
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1771
|
-
|
|
1770
|
+
be(e.list) ? e.list = e.list.map((t) => Y(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1771
|
+
Y(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
1774
|
function tr(e, t, n, r, l, a) {
|
|
1775
|
-
const { messages:
|
|
1776
|
-
let T =
|
|
1775
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1776
|
+
let T = oe(), N, D = null;
|
|
1777
1777
|
const w = "translate";
|
|
1778
|
-
for (let L = 0; L < y.length && (N = y[L], T =
|
|
1778
|
+
for (let L = 0; L < y.length && (N = y[L], T = d[N] || oe(), (D = i(T, t)) === null && (D = T[t]), !(Y(D) || ot(D) || Te(D))); L++)
|
|
1779
1779
|
if (!so(N, y)) {
|
|
1780
|
-
const
|
|
1780
|
+
const F = Qt(
|
|
1781
1781
|
e,
|
|
1782
1782
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1783
1783
|
t,
|
|
@@ -1785,76 +1785,76 @@ function tr(e, t, n, r, l, a) {
|
|
|
1785
1785
|
a,
|
|
1786
1786
|
w
|
|
1787
1787
|
);
|
|
1788
|
-
|
|
1788
|
+
F !== t && (D = F);
|
|
1789
1789
|
}
|
|
1790
|
-
return [
|
|
1790
|
+
return [D, N, T];
|
|
1791
1791
|
}
|
|
1792
1792
|
function nr(e, t, n, r, l, a) {
|
|
1793
|
-
const { messageCompiler:
|
|
1793
|
+
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
1794
1794
|
if (Te(r)) {
|
|
1795
1795
|
const g = r;
|
|
1796
1796
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1797
1797
|
}
|
|
1798
|
-
if (
|
|
1798
|
+
if (d == null) {
|
|
1799
1799
|
const g = () => r;
|
|
1800
1800
|
return g.locale = n, g.key = t, g;
|
|
1801
1801
|
}
|
|
1802
|
-
const i =
|
|
1802
|
+
const i = d(r, vo(e, n, l, r, u, a));
|
|
1803
1803
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1804
1804
|
}
|
|
1805
1805
|
function po(e, t, n) {
|
|
1806
1806
|
return t(n);
|
|
1807
1807
|
}
|
|
1808
1808
|
function Vt(...e) {
|
|
1809
|
-
const [t, n, r] = e, l =
|
|
1810
|
-
if (!
|
|
1809
|
+
const [t, n, r] = e, l = oe();
|
|
1810
|
+
if (!Y(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1811
1811
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1812
1812
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1813
|
-
return ge(n) ? l.plural = n :
|
|
1813
|
+
return ge(n) ? l.plural = n : Y(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Y(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1814
1814
|
}
|
|
1815
1815
|
function vo(e, t, n, r, l, a) {
|
|
1816
1816
|
return {
|
|
1817
1817
|
locale: t,
|
|
1818
1818
|
key: n,
|
|
1819
1819
|
warnHtmlMessage: l,
|
|
1820
|
-
onError: (
|
|
1821
|
-
throw a && a(
|
|
1820
|
+
onError: (d) => {
|
|
1821
|
+
throw a && a(d), d;
|
|
1822
1822
|
},
|
|
1823
|
-
onCacheKey: (
|
|
1823
|
+
onCacheKey: (d) => Fr(t, n, d)
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
1826
|
function ho(e, t, n, r) {
|
|
1827
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1827
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, N = {
|
|
1828
1828
|
locale: t,
|
|
1829
1829
|
modifiers: l,
|
|
1830
1830
|
pluralRules: a,
|
|
1831
|
-
messages: (
|
|
1832
|
-
let L =
|
|
1831
|
+
messages: (D, w) => {
|
|
1832
|
+
let L = d(n, D);
|
|
1833
1833
|
if (L == null && (y || w)) {
|
|
1834
|
-
const [, ,
|
|
1834
|
+
const [, , F] = tr(
|
|
1835
1835
|
y || e,
|
|
1836
1836
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1837
|
-
|
|
1837
|
+
D,
|
|
1838
1838
|
t,
|
|
1839
1839
|
u,
|
|
1840
1840
|
i,
|
|
1841
1841
|
g
|
|
1842
1842
|
);
|
|
1843
|
-
L =
|
|
1843
|
+
L = d(F, D);
|
|
1844
1844
|
}
|
|
1845
|
-
if (
|
|
1846
|
-
let
|
|
1847
|
-
const h = nr(e,
|
|
1848
|
-
|
|
1845
|
+
if (Y(L) || ot(L)) {
|
|
1846
|
+
let F = !1;
|
|
1847
|
+
const h = nr(e, D, t, L, D, () => {
|
|
1848
|
+
F = !0;
|
|
1849
1849
|
});
|
|
1850
|
-
return
|
|
1850
|
+
return F ? Tn : h;
|
|
1851
1851
|
} else return Te(L) ? L : Tn;
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
1854
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1855
1855
|
}
|
|
1856
1856
|
fs();
|
|
1857
|
-
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_14e75b8d-0689-470e-81f6-e27c55319276", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_14e75b8d-0689-470e-81f6-e27c55319276", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.7.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1735", ACTIONS_ORCHESTRATION_ID: "85045431-76e4-4a55-bb29-8fbd9ff88695.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260810.271.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_14e75b8d-0689-470e-81f6-e27c55319276", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:9984", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "32097781694", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "806519740b0129da4303039d84762035f7856187", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODcwNDgwNzMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NzAyNTg3MywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjNjOGQxZmVmLTc3MjQtNWY3Mi1iMTYzLWExOTJmNDg0NGYyMCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiODkzYjFlOWU1YjA1NjE2Y2YwYjQ2MzZjMGU3YzM3ODc3YTAzYWZkMCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NzAyNTU3Mywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5NTU5MjM2NDczNlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiODkzYjFlOWU1YjA1NjE2Y2YwYjQ2MzZjMGU3YzM3ODc3YTAzYWZkMFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMjA5Nzc4MTY5NFwiLFwicnVuX251bWJlclwiOlwiMTYwXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiODA2NTE5NzQwYjAxMjlkYTQzMDMwMzlkODQ3NjIwMzVmNzg1NjE4N1wiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjgwNjUxOTc0MGIwMTI5ZGE0MzAzMDM5ZDg0NzYyMDM1Zjc4NTYxODdcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiI4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTUucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6Ijg1MDQ1NDMxLTc2ZTQtNGE1NS1iYjI5LThmYmQ5ZmY4ODY5NSIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMyMDk3NzgxNjk0IiwicnVuX251bWJlciI6IjE2MCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMTI5NTAiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTU6M2M4ZDFmZWYtNzcyNC01ZjcyLWIxNjMtYTE5MmY0ODQ0ZjIwIEFjdGlvbnMuUnVubmVyOjg1MDQ1NDMxLTc2ZTQtNGE1NS1iYjI5LThmYmQ5ZmY4ODY5NTozYzhkMWZlZi03NzI0LTVmNzItYjE2My1hMTkyZjQ4NDRmMjAgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ODUwNDU0MzEtNzZlNC00YTU1LWJiMjktOGZiZDlmZjg4Njk1OjNjOGQxZmVmLTc3MjQtNWY3Mi1iMTYzLWExOTJmNDg0NGYyMCBnZW5lcmF0ZV9pZF90b2tlbjo4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTU6M2M4ZDFmZWYtNzcyNC01ZjcyLWIxNjMtYTE5MmY0ODQ0ZjIwIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiODA2NTE5NzQwYjAxMjlkYTQzMDMwMzlkODQ3NjIwMzVmNzg1NjE4NyIsInRydXN0X3RpZXIiOiIxIn0.NLQIj7me0RQft-GjUQQML7wg56K5KdOGGaVha6W27T0a2HQfttkCTQvImpKcnY7TOPzTwCfWCYbvqUH2yBpPXWTWfoPFOrw72APJjkl1EZXXZekSPMSMcxSrN08RqPndDf7mBFQZ4ydcqXLuH1pYXWOycwBosomb9drp2V2pdbMZGJAIAxAk9TKNLU2JroawhRCOvecOuKM50rww3WI5bDFITM2bcQU9jZ9DdAI_I_c_sEfkBo_ntsx4HtNqvHjEtIUuj2qeCoBfRF5Yu0IQ4v69iTeQlWmHRDtao31nXlTw8f4tnnvgUJKNtBxy2kPCo7Zeg4Cf60f4poXkqtic8w", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e25636f0-c079-4abc-8ced-a98854a93932", INVOCATION_ID: "7115558e5cb241eb9d60d2ba3ca2f1f4", 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: "160", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000112950", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.2-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "806519740b0129da4303039d84762035f7856187", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_14e75b8d-0689-470e-81f6-e27c55319276", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/165//idtoken/85045431-76e4-4a55-bb29-8fbd9ff88695/3c8d1fef-7724-5f72-b163-a192f4844f20?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_14e75b8d-0689-470e-81f6-e27c55319276", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_14e75b8d-0689-470e-81f6-e27c55319276", 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_14e75b8d-0689-470e-81f6-e27c55319276", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1857
|
+
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.7.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1780", ACTIONS_ORCHESTRATION_ID: "b209cf1f-3e2e-4913-b51a-65724088a56f.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260816.277.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11534", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.13/x64", GITHUB_RUN_ID: "32924448348", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "0cab29759799ec2e84179ebb97d6a1af23f2a059", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.6/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODc3MzUwNjgsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NzcxMjg2OCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImI3MDNhMzViLTk0MGYtNTk3NS04NWI1LTkwNTMyYmM2NmFjNiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiOGNhM2MyOWMwMWM1YjAyZGM5ZjI3YjQ3M2E3ZWZkODNmNjg4M2RhZSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NzcxMjU2OCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5ODA0NDM2NzE3N1wiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiOGNhM2MyOWMwMWM1YjAyZGM5ZjI3YjQ3M2E3ZWZkODNmNjg4M2RhZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMjkyNDQ0ODM0OFwiLFwicnVuX251bWJlclwiOlwiMTYzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiMGNhYjI5NzU5Nzk5ZWMyZTg0MTc5ZWJiOTdkNmExYWYyM2YyYTA1OVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjBjYWIyOTc1OTc5OWVjMmU4NDE3OWViYjk3ZDZhMWFmMjNmMmEwNTlcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiJiMjA5Y2YxZi0zZTJlLTQ5MTMtYjUxYS02NTcyNDA4OGE1NmYucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6ImIyMDljZjFmLTNlMmUtNDkxMy1iNTFhLTY1NzI0MDg4YTU2ZiIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMyOTI0NDQ4MzQ4IiwicnVuX251bWJlciI6IjE2MyIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMjIxMjIiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpiMjA5Y2YxZi0zZTJlLTQ5MTMtYjUxYS02NTcyNDA4OGE1NmY6YjcwM2EzNWItOTQwZi01OTc1LTg1YjUtOTA1MzJiYzY2YWM2IEFjdGlvbnMuUnVubmVyOmIyMDljZjFmLTNlMmUtNDkxMy1iNTFhLTY1NzI0MDg4YTU2ZjpiNzAzYTM1Yi05NDBmLTU5NzUtODViNS05MDUzMmJjNjZhYzYgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6YjIwOWNmMWYtM2UyZS00OTEzLWI1MWEtNjU3MjQwODhhNTZmOmI3MDNhMzViLTk0MGYtNTk3NS04NWI1LTkwNTMyYmM2NmFjNiBnZW5lcmF0ZV9pZF90b2tlbjpiMjA5Y2YxZi0zZTJlLTQ5MTMtYjUxYS02NTcyNDA4OGE1NmY6YjcwM2EzNWItOTQwZi01OTc1LTg1YjUtOTA1MzJiYzY2YWM2IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiMGNhYjI5NzU5Nzk5ZWMyZTg0MTc5ZWJiOTdkNmExYWYyM2YyYTA1OSIsInRydXN0X3RpZXIiOiIxIn0.WN5MleXbnB0ZvgPge2MNWWRgN1sRsrbtXbKT-JrAbcukLj6mTbaa9oWF0o34KqaMoiOWnZ7_B54QL8BaMU2AmhQyqQ6NSj8TAFlFN0VeIV-n_oKzmA7Kj9kGIqtAUHjIuBsjJFzlldLzGIZV6FuOM8DrXkCA9yFpwXG2Nhhg2gJLFy2rKd15mfGrZH03Ikke6CHV8asgRejKT2fdIKf9KjDrSZQdrQYBBYtDOAHHv6VBs2r_HyxAst2jBOXTNH94BMFXp4CXQnhYQQ2e5BSP8RI5rsZYB76_GtfceFNKVtCOPS6tFkIBZNrFQs3PWlkYYk9oYVIebY5ZsjlgMJvJEg", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_6d91dabd-65d3-42d4-81f6-a6645b4be16a", INVOCATION_ID: "97f8f908d81a4e7ba70c3e678e9f37a8", 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: "163", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000122122", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.2-dev.3", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "0cab29759799ec2e84179ebb97d6a1af23f2a059", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/40//idtoken/b209cf1f-3e2e-4913-b51a-65724088a56f/b703a35b-940f-5975-85b5-90532bc66ac6?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", 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_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
1858
|
const go = "10.0.5";
|
|
1859
1859
|
function Io() {
|
|
1860
1860
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1875,46 +1875,46 @@ const at = {
|
|
|
1875
1875
|
function ut(e, ...t) {
|
|
1876
1876
|
return Tt(e, null, void 0);
|
|
1877
1877
|
}
|
|
1878
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"),
|
|
1879
|
-
function
|
|
1878
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Yt = /* @__PURE__ */ $e("__dispose");
|
|
1879
|
+
function dt(e) {
|
|
1880
1880
|
if (!te(e))
|
|
1881
1881
|
return e;
|
|
1882
1882
|
for (const t in e)
|
|
1883
1883
|
if (Ae(e, t))
|
|
1884
1884
|
if (!t.includes("."))
|
|
1885
|
-
te(e[t]) &&
|
|
1885
|
+
te(e[t]) && dt(e[t]);
|
|
1886
1886
|
else {
|
|
1887
1887
|
const n = t.split("."), r = n.length - 1;
|
|
1888
1888
|
let l = e, a = !1;
|
|
1889
|
-
for (let
|
|
1890
|
-
if (n[
|
|
1889
|
+
for (let d = 0; d < r; d++) {
|
|
1890
|
+
if (n[d] in l || (l[n[d]] = oe()), !te(l[n[d]])) {
|
|
1891
1891
|
a = !0;
|
|
1892
1892
|
break;
|
|
1893
1893
|
}
|
|
1894
|
-
l = l[n[
|
|
1894
|
+
l = l[n[d]];
|
|
1895
1895
|
}
|
|
1896
|
-
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) &&
|
|
1896
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && dt(l[n[r]]);
|
|
1897
1897
|
}
|
|
1898
1898
|
return e;
|
|
1899
1899
|
}
|
|
1900
1900
|
function sr(e, t) {
|
|
1901
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t,
|
|
1901
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, d = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1902
1902
|
if (be(r) && r.forEach((u) => {
|
|
1903
1903
|
if ("locale" in u && "resource" in u) {
|
|
1904
1904
|
const { locale: i, resource: g } = u;
|
|
1905
|
-
i ? (
|
|
1905
|
+
i ? (d[i] = d[i] || oe(), yt(g, d[i])) : yt(g, d);
|
|
1906
1906
|
} else
|
|
1907
|
-
|
|
1907
|
+
Y(u) && yt(JSON.parse(u), d);
|
|
1908
1908
|
}), l == null && a)
|
|
1909
|
-
for (const u in
|
|
1910
|
-
Ae(
|
|
1911
|
-
return
|
|
1909
|
+
for (const u in d)
|
|
1910
|
+
Ae(d, u) && dt(d[u]);
|
|
1911
|
+
return d;
|
|
1912
1912
|
}
|
|
1913
1913
|
function or(e) {
|
|
1914
1914
|
return e.type;
|
|
1915
1915
|
}
|
|
1916
1916
|
function Eo(e, t, n) {
|
|
1917
|
-
let r = te(t.messages) ? t.messages :
|
|
1917
|
+
let r = te(t.messages) ? t.messages : oe();
|
|
1918
1918
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1919
1919
|
messages: r,
|
|
1920
1920
|
__i18n: n.__i18nGlobal
|
|
@@ -1926,14 +1926,14 @@ function Eo(e, t, n) {
|
|
|
1926
1926
|
{
|
|
1927
1927
|
if (te(t.datetimeFormats)) {
|
|
1928
1928
|
const a = Object.keys(t.datetimeFormats);
|
|
1929
|
-
a.length && a.forEach((
|
|
1930
|
-
e.mergeDateTimeFormat(
|
|
1929
|
+
a.length && a.forEach((d) => {
|
|
1930
|
+
e.mergeDateTimeFormat(d, t.datetimeFormats[d]);
|
|
1931
1931
|
});
|
|
1932
1932
|
}
|
|
1933
1933
|
if (te(t.numberFormats)) {
|
|
1934
1934
|
const a = Object.keys(t.numberFormats);
|
|
1935
|
-
a.length && a.forEach((
|
|
1936
|
-
e.mergeNumberFormat(
|
|
1935
|
+
a.length && a.forEach((d) => {
|
|
1936
|
+
e.mergeNumberFormat(d, t.numberFormats[d]);
|
|
1937
1937
|
});
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
@@ -1952,16 +1952,16 @@ const Co = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
1952
1952
|
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
1953
1953
|
};
|
|
1954
1954
|
function To(e = {}) {
|
|
1955
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt :
|
|
1956
|
-
let
|
|
1955
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : dr;
|
|
1956
|
+
let d = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1957
1957
|
const u = a(
|
|
1958
1958
|
// prettier-ignore
|
|
1959
|
-
t &&
|
|
1959
|
+
t && d ? t.locale.value : Y(e.locale) ? e.locale : Nt
|
|
1960
1960
|
), i = a(
|
|
1961
1961
|
// prettier-ignore
|
|
1962
|
-
t &&
|
|
1962
|
+
t && d ? t.fallbackLocale.value : Y(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1963
1963
|
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1964
|
-
let N = t ? t.missingWarn : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0,
|
|
1964
|
+
let N = t ? t.missingWarn : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, D = t ? t.fallbackWarn : ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, F = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, h = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1965
1965
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1966
1966
|
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1967
1967
|
p = (() => {
|
|
@@ -1975,7 +1975,7 @@ function To(e = {}) {
|
|
|
1975
1975
|
pluralRules: I,
|
|
1976
1976
|
missing: f === null ? void 0 : f,
|
|
1977
1977
|
missingWarn: N,
|
|
1978
|
-
fallbackWarn:
|
|
1978
|
+
fallbackWarn: D,
|
|
1979
1979
|
fallbackFormat: L,
|
|
1980
1980
|
unresolving: !0,
|
|
1981
1981
|
postTranslation: h === null ? void 0 : h,
|
|
@@ -2008,20 +2008,20 @@ function To(e = {}) {
|
|
|
2008
2008
|
set: (v) => {
|
|
2009
2009
|
i.value = v, p.fallbackLocale = i.value, lt(p, u.value, v);
|
|
2010
2010
|
}
|
|
2011
|
-
}),
|
|
2011
|
+
}), m = z(() => g.value), C = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2012
2012
|
function V() {
|
|
2013
|
-
return
|
|
2013
|
+
return me(h) ? h : null;
|
|
2014
2014
|
}
|
|
2015
2015
|
function j(v) {
|
|
2016
2016
|
h = v, p.postTranslation = v;
|
|
2017
2017
|
}
|
|
2018
2018
|
function G() {
|
|
2019
|
-
return
|
|
2019
|
+
return F;
|
|
2020
2020
|
}
|
|
2021
2021
|
function W(v) {
|
|
2022
|
-
v !== null && (f = kn(v)),
|
|
2022
|
+
v !== null && (f = kn(v)), F = v, p.missing = f;
|
|
2023
2023
|
}
|
|
2024
|
-
const
|
|
2024
|
+
const Z = (v, E, $, le, Be, mt) => {
|
|
2025
2025
|
A();
|
|
2026
2026
|
let ze;
|
|
2027
2027
|
try {
|
|
@@ -2034,13 +2034,13 @@ function To(e = {}) {
|
|
|
2034
2034
|
const [cr, Ea] = E();
|
|
2035
2035
|
return t && w ? le(t) : Be(cr);
|
|
2036
2036
|
} else {
|
|
2037
|
-
if (
|
|
2037
|
+
if (mt(ze))
|
|
2038
2038
|
return ze;
|
|
2039
2039
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2040
2040
|
}
|
|
2041
2041
|
};
|
|
2042
2042
|
function B(...v) {
|
|
2043
|
-
return
|
|
2043
|
+
return Z((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) => Y(E));
|
|
2044
2044
|
}
|
|
2045
2045
|
function ne(...v) {
|
|
2046
2046
|
const [E, $, le] = v;
|
|
@@ -2049,13 +2049,13 @@ function To(e = {}) {
|
|
|
2049
2049
|
return B(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2050
2050
|
}
|
|
2051
2051
|
function Q(...v) {
|
|
2052
|
-
return
|
|
2052
|
+
return Z((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) => Y(E));
|
|
2053
2053
|
}
|
|
2054
2054
|
function _e(...v) {
|
|
2055
|
-
return
|
|
2055
|
+
return Z((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) => Y(E));
|
|
2056
2056
|
}
|
|
2057
2057
|
function ce(v) {
|
|
2058
|
-
return v.map((E) =>
|
|
2058
|
+
return v.map((E) => Y(E) || ge(E) || ve(E) ? Sn(String(E)) : E);
|
|
2059
2059
|
}
|
|
2060
2060
|
const fe = {
|
|
2061
2061
|
normalize: ce,
|
|
@@ -2063,7 +2063,7 @@ function To(e = {}) {
|
|
|
2063
2063
|
type: "vnode"
|
|
2064
2064
|
};
|
|
2065
2065
|
function q(...v) {
|
|
2066
|
-
return
|
|
2066
|
+
return Z((E) => {
|
|
2067
2067
|
let $;
|
|
2068
2068
|
const le = E;
|
|
2069
2069
|
try {
|
|
@@ -2074,30 +2074,30 @@ function To(e = {}) {
|
|
|
2074
2074
|
return $;
|
|
2075
2075
|
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [Sn(E)], (E) => be(E));
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return
|
|
2077
|
+
function Fe(...v) {
|
|
2078
|
+
return Z((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Gt](...v), Ln, (E) => Y(E) || be(E));
|
|
2079
2079
|
}
|
|
2080
2080
|
function K(...v) {
|
|
2081
|
-
return
|
|
2081
|
+
return Z((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), Ln, (E) => Y(E) || be(E));
|
|
2082
2082
|
}
|
|
2083
2083
|
function pe(v) {
|
|
2084
2084
|
I = v, p.pluralRules = I;
|
|
2085
2085
|
}
|
|
2086
2086
|
function Je(v, E) {
|
|
2087
|
-
return
|
|
2087
|
+
return Z(() => {
|
|
2088
2088
|
if (!v)
|
|
2089
2089
|
return !1;
|
|
2090
|
-
const $ =
|
|
2091
|
-
return ot(Be) || Te(Be) ||
|
|
2090
|
+
const $ = Y(E) ? E : u.value, le = De($), Be = p.messageResolver(le, v);
|
|
2091
|
+
return ot(Be) || Te(Be) || Y(Be);
|
|
2092
2092
|
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]), No, ($) => ve($));
|
|
2093
2093
|
}
|
|
2094
2094
|
function Ke(v) {
|
|
2095
2095
|
let E = null;
|
|
2096
2096
|
const $ = Hn(p, i.value, u.value);
|
|
2097
2097
|
for (let le = 0; le < $.length; le++) {
|
|
2098
|
-
const Be = g.value[$[le]] || {},
|
|
2099
|
-
if (
|
|
2100
|
-
E =
|
|
2098
|
+
const Be = g.value[$[le]] || {}, mt = p.messageResolver(Be, v);
|
|
2099
|
+
if (mt != null) {
|
|
2100
|
+
E = mt;
|
|
2101
2101
|
break;
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
@@ -2107,24 +2107,24 @@ function To(e = {}) {
|
|
|
2107
2107
|
const E = Ke(v);
|
|
2108
2108
|
return E ?? (t ? t.tm(v) || {} : {});
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function De(v) {
|
|
2111
2111
|
return g.value[v] || {};
|
|
2112
2112
|
}
|
|
2113
2113
|
function Ce(v, E) {
|
|
2114
2114
|
if (l) {
|
|
2115
2115
|
const $ = { [v]: E };
|
|
2116
2116
|
for (const le in $)
|
|
2117
|
-
Ae($, le) &&
|
|
2117
|
+
Ae($, le) && dt($[le]);
|
|
2118
2118
|
E = $[v];
|
|
2119
2119
|
}
|
|
2120
2120
|
g.value[v] = E, p.messages = g.value;
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function Ze(v, E) {
|
|
2123
2123
|
g.value[v] = g.value[v] || {};
|
|
2124
2124
|
const $ = { [v]: E };
|
|
2125
2125
|
if (l)
|
|
2126
2126
|
for (const le in $)
|
|
2127
|
-
Ae($, le) &&
|
|
2127
|
+
Ae($, le) && dt($[le]);
|
|
2128
2128
|
E = $[v], yt(E, g.value[v]), p.messages = g.value;
|
|
2129
2129
|
}
|
|
2130
2130
|
function O(v) {
|
|
@@ -2146,24 +2146,24 @@ function To(e = {}) {
|
|
|
2146
2146
|
T.value[v] = Ie(T.value[v] || {}, E), p.numberFormats = T.value, Nn(p, v, E);
|
|
2147
2147
|
}
|
|
2148
2148
|
Rn++, t && on && (wt(t.locale, (v) => {
|
|
2149
|
-
|
|
2149
|
+
d && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
2150
2150
|
}), wt(t.fallbackLocale, (v) => {
|
|
2151
|
-
|
|
2151
|
+
d && (i.value = v, p.fallbackLocale = v, lt(p, u.value, i.value));
|
|
2152
2152
|
}));
|
|
2153
2153
|
const P = {
|
|
2154
2154
|
id: Rn,
|
|
2155
2155
|
locale: X,
|
|
2156
2156
|
fallbackLocale: x,
|
|
2157
2157
|
get inheritLocale() {
|
|
2158
|
-
return
|
|
2158
|
+
return d;
|
|
2159
2159
|
},
|
|
2160
2160
|
set inheritLocale(v) {
|
|
2161
|
-
|
|
2161
|
+
d = v, v && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(p, u.value, i.value));
|
|
2162
2162
|
},
|
|
2163
2163
|
get availableLocales() {
|
|
2164
2164
|
return Object.keys(g.value).sort();
|
|
2165
2165
|
},
|
|
2166
|
-
messages:
|
|
2166
|
+
messages: m,
|
|
2167
2167
|
get modifiers() {
|
|
2168
2168
|
return b;
|
|
2169
2169
|
},
|
|
@@ -2180,10 +2180,10 @@ function To(e = {}) {
|
|
|
2180
2180
|
N = v, p.missingWarn = N;
|
|
2181
2181
|
},
|
|
2182
2182
|
get fallbackWarn() {
|
|
2183
|
-
return
|
|
2183
|
+
return D;
|
|
2184
2184
|
},
|
|
2185
2185
|
set fallbackWarn(v) {
|
|
2186
|
-
|
|
2186
|
+
D = v, p.fallbackWarn = D;
|
|
2187
2187
|
},
|
|
2188
2188
|
get fallbackRoot() {
|
|
2189
2189
|
return w;
|
|
@@ -2210,16 +2210,16 @@ function To(e = {}) {
|
|
|
2210
2210
|
c = v, p.escapeParameter = v;
|
|
2211
2211
|
},
|
|
2212
2212
|
t: B,
|
|
2213
|
-
getLocaleMessage:
|
|
2213
|
+
getLocaleMessage: De,
|
|
2214
2214
|
setLocaleMessage: Ce,
|
|
2215
|
-
mergeLocaleMessage:
|
|
2215
|
+
mergeLocaleMessage: Ze,
|
|
2216
2216
|
getPostTranslationHandler: V,
|
|
2217
2217
|
setPostTranslationHandler: j,
|
|
2218
2218
|
getMissingHandler: G,
|
|
2219
2219
|
setMissingHandler: W,
|
|
2220
2220
|
[yo]: pe
|
|
2221
2221
|
};
|
|
2222
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] =
|
|
2222
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = Fe, P;
|
|
2223
2223
|
}
|
|
2224
2224
|
const qt = {
|
|
2225
2225
|
tag: {
|
|
@@ -2247,7 +2247,7 @@ function Oo({ slots: e }, t) {
|
|
|
2247
2247
|
], []) : t.reduce((n, r) => {
|
|
2248
2248
|
const l = e[r];
|
|
2249
2249
|
return l && (n[r] = l()), n;
|
|
2250
|
-
},
|
|
2250
|
+
}, oe());
|
|
2251
2251
|
}
|
|
2252
2252
|
function ar() {
|
|
2253
2253
|
return ke;
|
|
@@ -2263,21 +2263,21 @@ Ie({
|
|
|
2263
2263
|
}
|
|
2264
2264
|
}, qt);
|
|
2265
2265
|
function So(e) {
|
|
2266
|
-
return be(e) && !
|
|
2266
|
+
return be(e) && !Y(e[0]);
|
|
2267
2267
|
}
|
|
2268
2268
|
function lr(e, t, n, r) {
|
|
2269
2269
|
const { slots: l, attrs: a } = t;
|
|
2270
2270
|
return () => {
|
|
2271
|
-
const
|
|
2272
|
-
let u =
|
|
2273
|
-
e.locale && (
|
|
2274
|
-
const i = r(e.value,
|
|
2275
|
-
let g = [
|
|
2276
|
-
be(i) ? g = i.map((N,
|
|
2277
|
-
const w = l[N.type], L = w ? w({ [N.type]: N.value, index:
|
|
2278
|
-
return So(L) && (L[0].key = `${N.type}-${
|
|
2279
|
-
}) :
|
|
2280
|
-
const y = Ie(
|
|
2271
|
+
const d = { part: !0 };
|
|
2272
|
+
let u = oe();
|
|
2273
|
+
e.locale && (d.locale = e.locale), Y(e.format) ? d.key = e.format : te(e.format) && (Y(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, D) => n.includes(D) ? Ie(oe(), N, { [D]: e.format[D] }) : N, oe()));
|
|
2274
|
+
const i = r(e.value, d, u);
|
|
2275
|
+
let g = [d.key];
|
|
2276
|
+
be(i) ? g = i.map((N, D) => {
|
|
2277
|
+
const w = l[N.type], L = w ? w({ [N.type]: N.value, index: D, parts: i }) : [N.value];
|
|
2278
|
+
return So(L) && (L[0].key = `${N.type}-${D}`), L;
|
|
2279
|
+
}) : Y(i) && (g = [i]);
|
|
2280
|
+
const y = Ie(oe(), a), T = Y(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2281
2281
|
return Wn(T, y, g);
|
|
2282
2282
|
};
|
|
2283
2283
|
}
|
|
@@ -2313,11 +2313,11 @@ function St(e = {}) {
|
|
|
2313
2313
|
let i = Mo(n, t, e.__useComponent);
|
|
2314
2314
|
return i == null && (i = r), i;
|
|
2315
2315
|
}
|
|
2316
|
-
const
|
|
2317
|
-
let u =
|
|
2316
|
+
const d = n;
|
|
2317
|
+
let u = d.__getInstance(t);
|
|
2318
2318
|
if (u == null) {
|
|
2319
2319
|
const i = Ie({}, e);
|
|
2320
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = To(i),
|
|
2320
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = To(i), d.__composerExtend && (u[Yt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2321
2321
|
}
|
|
2322
2322
|
return u;
|
|
2323
2323
|
}
|
|
@@ -2338,11 +2338,11 @@ function Mo(e, t, n = !1) {
|
|
|
2338
2338
|
const l = t.root;
|
|
2339
2339
|
let a = wo(t, n);
|
|
2340
2340
|
for (; a != null; ) {
|
|
2341
|
-
const
|
|
2341
|
+
const d = e;
|
|
2342
2342
|
if (e.mode === "composition")
|
|
2343
|
-
r =
|
|
2343
|
+
r = d.__getInstance(a);
|
|
2344
2344
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2345
|
-
const u =
|
|
2345
|
+
const u = d.__getInstance(a);
|
|
2346
2346
|
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2347
2347
|
}
|
|
2348
2348
|
if (r != null || l === a)
|
|
@@ -2354,13 +2354,13 @@ function Mo(e, t, n = !1) {
|
|
|
2354
2354
|
function wo(e, t = !1) {
|
|
2355
2355
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Fo(e, t, n) {
|
|
2358
2358
|
xn(() => {
|
|
2359
|
-
}, t),
|
|
2359
|
+
}, t), mr(() => {
|
|
2360
2360
|
const r = n;
|
|
2361
2361
|
e.__deleteInstance(t);
|
|
2362
|
-
const l = r[
|
|
2363
|
-
l && (l(), delete r[
|
|
2362
|
+
const l = r[Yt];
|
|
2363
|
+
l && (l(), delete r[Yt]);
|
|
2364
2364
|
}, t);
|
|
2365
2365
|
}
|
|
2366
2366
|
Io();
|
|
@@ -2388,13 +2388,13 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2388
2388
|
placement: "right",
|
|
2389
2389
|
"z-index": 50
|
|
2390
2390
|
}, {
|
|
2391
|
-
content:
|
|
2391
|
+
content: de(() => [
|
|
2392
2392
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2393
|
-
(J(!0), ie(ke, null, Ee(e.item.setNames, (
|
|
2394
|
-
ae("div", null, "- " + Oe(
|
|
2393
|
+
(J(!0), ie(ke, null, Ee(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2394
|
+
ae("div", null, "- " + Oe(d), 1)
|
|
2395
2395
|
]))), 128))
|
|
2396
2396
|
]),
|
|
2397
|
-
default:
|
|
2397
|
+
default: de(() => [
|
|
2398
2398
|
ue(l, {
|
|
2399
2399
|
name: "admin_panel_settings",
|
|
2400
2400
|
size: "sm",
|
|
@@ -2411,43 +2411,43 @@ function Mn(e, t, n) {
|
|
|
2411
2411
|
if (r.length === 0) return;
|
|
2412
2412
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2413
2413
|
if (l < 0) return;
|
|
2414
|
-
const a = new Set(e[l].actions),
|
|
2415
|
-
|
|
2414
|
+
const a = new Set(e[l].actions), d = r.every((u) => a.has(u));
|
|
2415
|
+
d && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2416
2416
|
...e[l],
|
|
2417
2417
|
actions: Array.from(a)
|
|
2418
|
-
}) : !
|
|
2418
|
+
}) : !d && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2419
2419
|
...e[l],
|
|
2420
2420
|
actions: Array.from(a)
|
|
2421
2421
|
});
|
|
2422
2422
|
}
|
|
2423
|
-
const wn = Object.values(Sr),
|
|
2423
|
+
const wn = Object.values(Sr), Do = {
|
|
2424
2424
|
read: "View",
|
|
2425
2425
|
create: "Duplicate",
|
|
2426
2426
|
update: "Edit"
|
|
2427
2427
|
};
|
|
2428
2428
|
function Po(e, t, n, r) {
|
|
2429
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2429
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u = z(() => {
|
|
2430
2430
|
var j;
|
|
2431
|
-
const
|
|
2431
|
+
const m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2432
2432
|
for (const G of t.value) {
|
|
2433
2433
|
const W = G.category;
|
|
2434
2434
|
if (!W) continue;
|
|
2435
|
-
const
|
|
2436
|
-
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j =
|
|
2435
|
+
const Z = G.subject;
|
|
2436
|
+
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = d(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2437
2437
|
continue;
|
|
2438
|
-
|
|
2439
|
-
const B = U.get(
|
|
2440
|
-
U.set(
|
|
2441
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2442
|
-
value:
|
|
2443
|
-
optionKey: `${
|
|
2444
|
-
}), C.has(
|
|
2438
|
+
m.has(W) || m.set(W, []);
|
|
2439
|
+
const B = U.get(Z) ?? 0;
|
|
2440
|
+
U.set(Z, B + 1), m.get(W).push({
|
|
2441
|
+
label: l(`permissionSet.permissionLabels.${Z}`, G.label),
|
|
2442
|
+
value: Z,
|
|
2443
|
+
optionKey: `${Z}::${B}`
|
|
2444
|
+
}), C.has(Z) || C.set(Z, G);
|
|
2445
2445
|
}
|
|
2446
|
-
return [...
|
|
2447
|
-
const
|
|
2448
|
-
return
|
|
2446
|
+
return [...m.keys()].sort((G, W) => {
|
|
2447
|
+
const Z = wn.indexOf(G), B = wn.indexOf(W);
|
|
2448
|
+
return Z === -1 && B === -1 ? G.localeCompare(W) : Z === -1 ? 1 : B === -1 ? -1 : Z - B;
|
|
2449
2449
|
}).map((G) => {
|
|
2450
|
-
const W =
|
|
2450
|
+
const W = m.get(G), Z = l(`permissionSet.categoryLabels.${G}`, G), B = /* @__PURE__ */ new Map();
|
|
2451
2451
|
for (const K of W) {
|
|
2452
2452
|
const pe = C.get(K.value);
|
|
2453
2453
|
pe && B.set(K.value, pe.actions);
|
|
@@ -2464,13 +2464,13 @@ function Po(e, t, n, r) {
|
|
|
2464
2464
|
W.some((pe) => pe.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2465
2465
|
const ce = ne ? e.value.filter(
|
|
2466
2466
|
(K) => W.some((pe) => pe.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2467
|
-
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject),
|
|
2467
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2468
2468
|
var pe;
|
|
2469
2469
|
return (pe = C.get(K.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2470
|
-
}), fe = (
|
|
2470
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Fe = q.has("manage");
|
|
2471
2471
|
return {
|
|
2472
2472
|
category: G,
|
|
2473
|
-
label:
|
|
2473
|
+
label: Z,
|
|
2474
2474
|
options: W,
|
|
2475
2475
|
selectedSubjects: ce,
|
|
2476
2476
|
isMultiAction: ne,
|
|
@@ -2479,22 +2479,22 @@ function Po(e, t, n, r) {
|
|
|
2479
2479
|
selectedActionsMap: _e,
|
|
2480
2480
|
coverSubject: fe,
|
|
2481
2481
|
coverSelectedActions: q,
|
|
2482
|
-
coverCoversAll:
|
|
2482
|
+
coverCoversAll: Fe
|
|
2483
2483
|
};
|
|
2484
2484
|
});
|
|
2485
2485
|
});
|
|
2486
|
-
function i(
|
|
2487
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2486
|
+
function i(m, C) {
|
|
2487
|
+
const U = u.value.find((Q) => Q.category === m), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(C), W = /* @__PURE__ */ new Map();
|
|
2488
2488
|
for (const Q of e.value)
|
|
2489
2489
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2490
|
-
const
|
|
2491
|
-
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...
|
|
2492
|
-
const fe =
|
|
2490
|
+
const Z = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2491
|
+
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2492
|
+
const fe = se.subject;
|
|
2493
2493
|
if (!G.has(fe) || B.has(fe)) return [];
|
|
2494
2494
|
B.add(fe);
|
|
2495
2495
|
let q;
|
|
2496
|
-
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q =
|
|
2497
|
-
{ ...
|
|
2496
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Z), [
|
|
2497
|
+
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2498
2498
|
];
|
|
2499
2499
|
}
|
|
2500
2500
|
);
|
|
@@ -2503,32 +2503,32 @@ function Po(e, t, n, r) {
|
|
|
2503
2503
|
...ne
|
|
2504
2504
|
]);
|
|
2505
2505
|
}
|
|
2506
|
-
function g(
|
|
2507
|
-
return
|
|
2506
|
+
function g(m, C) {
|
|
2507
|
+
return D(m, C) || c(m, C);
|
|
2508
2508
|
}
|
|
2509
|
-
function y(
|
|
2510
|
-
return
|
|
2509
|
+
function y(m) {
|
|
2510
|
+
return m.options.length > 0 && m.options.every((C) => g(m, C.value));
|
|
2511
2511
|
}
|
|
2512
|
-
function T(
|
|
2513
|
-
return
|
|
2514
|
-
(C) => g(
|
|
2512
|
+
function T(m) {
|
|
2513
|
+
return m.options.length === 0 || y(m) ? !1 : m.options.some(
|
|
2514
|
+
(C) => g(m, C.value) || w(m, C.value).length > 0
|
|
2515
2515
|
);
|
|
2516
2516
|
}
|
|
2517
|
-
function N(
|
|
2518
|
-
const C = new Set(
|
|
2519
|
-
if (y(
|
|
2517
|
+
function N(m) {
|
|
2518
|
+
const C = new Set(m.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2519
|
+
if (y(m))
|
|
2520
2520
|
r("update:model-value", U);
|
|
2521
2521
|
else {
|
|
2522
2522
|
const V = /* @__PURE__ */ new Map();
|
|
2523
|
-
for (const
|
|
2524
|
-
C.has(
|
|
2525
|
-
const j =
|
|
2526
|
-
({ category:
|
|
2523
|
+
for (const Z of e.value)
|
|
2524
|
+
C.has(Z.subject) && !Z.inverted && V.set(Z.subject, Z.conditions);
|
|
2525
|
+
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2526
|
+
({ category: Z, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2527
2527
|
const _e = Q.subject;
|
|
2528
2528
|
if (!C.has(_e) || G.has(_e)) return [];
|
|
2529
2529
|
G.add(_e);
|
|
2530
2530
|
let ce;
|
|
2531
|
-
return V.has(_e) ? ce = V.get(_e) :
|
|
2531
|
+
return V.has(_e) ? ce = V.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
2532
2532
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2533
2533
|
];
|
|
2534
2534
|
}
|
|
@@ -2536,27 +2536,27 @@ function Po(e, t, n, r) {
|
|
|
2536
2536
|
r("update:model-value", [...U, ...W]);
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2540
|
-
const U =
|
|
2539
|
+
function D(m, C) {
|
|
2540
|
+
const U = m.selectedActionsMap.get(C);
|
|
2541
2541
|
return U ? U.has("manage") : !1;
|
|
2542
2542
|
}
|
|
2543
|
-
function w(
|
|
2544
|
-
const U =
|
|
2543
|
+
function w(m, C) {
|
|
2544
|
+
const U = m.permissionActionsMap.get(C);
|
|
2545
2545
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2546
|
-
(j) => S(
|
|
2546
|
+
(j) => S(m, C, j) || b(m, C, j)
|
|
2547
2547
|
) : [];
|
|
2548
2548
|
}
|
|
2549
|
-
function L(
|
|
2550
|
-
return c(
|
|
2549
|
+
function L(m, C) {
|
|
2550
|
+
return c(m, C) ? !1 : !D(m, C) && w(m, C).length > 0;
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2553
|
-
if (!
|
|
2552
|
+
function F(m, C) {
|
|
2553
|
+
if (!m.coverSubject || C === m.coverSubject) return;
|
|
2554
2554
|
const U = e.value.find(
|
|
2555
|
-
(V) => !V.inverted && V.subject ===
|
|
2555
|
+
(V) => !V.inverted && V.subject === m.coverSubject
|
|
2556
2556
|
);
|
|
2557
2557
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2558
2558
|
}
|
|
2559
|
-
function f(
|
|
2559
|
+
function f(m, C, U) {
|
|
2560
2560
|
if (U) {
|
|
2561
2561
|
const V = t.value.find((Q) => Q.subject === C);
|
|
2562
2562
|
if (!V) return;
|
|
@@ -2564,10 +2564,10 @@ function Po(e, t, n, r) {
|
|
|
2564
2564
|
category: j,
|
|
2565
2565
|
showByFeatureFlag: G,
|
|
2566
2566
|
isCategoryCover: W,
|
|
2567
|
-
...
|
|
2568
|
-
} = V, B =
|
|
2567
|
+
...Z
|
|
2568
|
+
} = V, B = F(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2569
2569
|
ne.push({
|
|
2570
|
-
...
|
|
2570
|
+
...Z,
|
|
2571
2571
|
...B !== void 0 && { conditions: B }
|
|
2572
2572
|
}), r("update:model-value", ne);
|
|
2573
2573
|
} else
|
|
@@ -2576,41 +2576,41 @@ function Po(e, t, n, r) {
|
|
|
2576
2576
|
e.value.filter((V) => V.subject !== C)
|
|
2577
2577
|
);
|
|
2578
2578
|
}
|
|
2579
|
-
function h(
|
|
2580
|
-
const U =
|
|
2579
|
+
function h(m, C) {
|
|
2580
|
+
const U = m.permissionActionsMap.get(C);
|
|
2581
2581
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2582
2582
|
}
|
|
2583
|
-
function S(
|
|
2584
|
-
const V =
|
|
2583
|
+
function S(m, C, U) {
|
|
2584
|
+
const V = m.selectedActionsMap.get(C);
|
|
2585
2585
|
return V ? V.has(U) : !1;
|
|
2586
2586
|
}
|
|
2587
|
-
function c(
|
|
2588
|
-
return !
|
|
2587
|
+
function c(m, C) {
|
|
2588
|
+
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll;
|
|
2589
2589
|
}
|
|
2590
|
-
function b(
|
|
2591
|
-
return !
|
|
2590
|
+
function b(m, C, U) {
|
|
2591
|
+
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2592
2592
|
}
|
|
2593
|
-
function I(
|
|
2594
|
-
const V =
|
|
2593
|
+
function I(m, C, U) {
|
|
2594
|
+
const V = m.permissionActionsMap.get(C);
|
|
2595
2595
|
return V ? V.includes(U) : !1;
|
|
2596
2596
|
}
|
|
2597
|
-
function p(
|
|
2598
|
-
const V = [...e.value], j = V.findIndex((W) => W.subject ===
|
|
2597
|
+
function p(m, C, U) {
|
|
2598
|
+
const V = [...e.value], j = V.findIndex((W) => W.subject === m && !W.inverted);
|
|
2599
2599
|
if (U)
|
|
2600
2600
|
if (j >= 0) {
|
|
2601
|
-
const W = { ...V[j] },
|
|
2602
|
-
|
|
2601
|
+
const W = { ...V[j] }, Z = new Set(W.actions);
|
|
2602
|
+
Z.add(C), W.actions = Array.from(Z), V[j] = W;
|
|
2603
2603
|
} else {
|
|
2604
|
-
const W = t.value.find((
|
|
2604
|
+
const W = t.value.find((se) => se.subject === m);
|
|
2605
2605
|
if (!W) return;
|
|
2606
2606
|
const {
|
|
2607
|
-
category:
|
|
2607
|
+
category: Z,
|
|
2608
2608
|
showByFeatureFlag: B,
|
|
2609
2609
|
isCategoryCover: ne,
|
|
2610
2610
|
...Q
|
|
2611
2611
|
} = W, _e = u.value.find(
|
|
2612
|
-
(
|
|
2613
|
-
), ce = _e ?
|
|
2612
|
+
(se) => se.options.some((fe) => fe.value === m)
|
|
2613
|
+
), ce = _e ? F(_e, m) : void 0;
|
|
2614
2614
|
V.push({
|
|
2615
2615
|
...Q,
|
|
2616
2616
|
actions: [C],
|
|
@@ -2618,34 +2618,34 @@ function Po(e, t, n, r) {
|
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
else if (j >= 0) {
|
|
2621
|
-
const W = { ...V[j] },
|
|
2622
|
-
|
|
2621
|
+
const W = { ...V[j] }, Z = W.actions.filter((B) => B !== C);
|
|
2622
|
+
Z.length === 0 ? V.splice(j, 1) : (W.actions = Z, V[j] = W);
|
|
2623
2623
|
}
|
|
2624
|
-
const G = t.value.find((W) => W.subject ===
|
|
2625
|
-
G && Mn(V,
|
|
2624
|
+
const G = t.value.find((W) => W.subject === m);
|
|
2625
|
+
G && Mn(V, m, G.actions), r("update:model-value", V);
|
|
2626
2626
|
}
|
|
2627
|
-
function k(
|
|
2628
|
-
const U =
|
|
2629
|
-
(V) => I(
|
|
2627
|
+
function k(m, C) {
|
|
2628
|
+
const U = m.options.filter(
|
|
2629
|
+
(V) => I(m, V.value, C)
|
|
2630
2630
|
);
|
|
2631
2631
|
return U.length === 0 ? !1 : U.every(
|
|
2632
|
-
(V) => S(
|
|
2632
|
+
(V) => S(m, V.value, C) || b(m, V.value, C)
|
|
2633
2633
|
);
|
|
2634
2634
|
}
|
|
2635
|
-
function A(
|
|
2636
|
-
const U =
|
|
2637
|
-
(j) => I(
|
|
2635
|
+
function A(m, C) {
|
|
2636
|
+
const U = m.options.filter(
|
|
2637
|
+
(j) => I(m, j.value, C)
|
|
2638
2638
|
);
|
|
2639
2639
|
if (U.length === 0) return !1;
|
|
2640
2640
|
const V = U.filter(
|
|
2641
|
-
(j) => S(
|
|
2641
|
+
(j) => S(m, j.value, C) || b(m, j.value, C)
|
|
2642
2642
|
).length;
|
|
2643
2643
|
return V > 0 && V < U.length;
|
|
2644
2644
|
}
|
|
2645
|
-
function X(
|
|
2645
|
+
function X(m, C, U) {
|
|
2646
2646
|
const V = [...e.value];
|
|
2647
|
-
for (const j of
|
|
2648
|
-
if (!I(
|
|
2647
|
+
for (const j of m.options) {
|
|
2648
|
+
if (!I(m, j.value, C)) continue;
|
|
2649
2649
|
const G = j.value, W = V.findIndex(
|
|
2650
2650
|
(B) => B.subject === G && !B.inverted
|
|
2651
2651
|
);
|
|
@@ -2661,24 +2661,24 @@ function Po(e, t, n, r) {
|
|
|
2661
2661
|
showByFeatureFlag: Q,
|
|
2662
2662
|
isCategoryCover: _e,
|
|
2663
2663
|
...ce
|
|
2664
|
-
} = B,
|
|
2664
|
+
} = B, se = F(m, G);
|
|
2665
2665
|
V.push({
|
|
2666
2666
|
...ce,
|
|
2667
2667
|
actions: [C],
|
|
2668
|
-
...
|
|
2668
|
+
...se !== void 0 && { conditions: se }
|
|
2669
2669
|
});
|
|
2670
2670
|
}
|
|
2671
2671
|
else if (W >= 0) {
|
|
2672
2672
|
const B = { ...V[W] }, ne = B.actions.filter((Q) => Q !== C);
|
|
2673
2673
|
ne.length === 0 ? V.splice(W, 1) : (B.actions = ne, V[W] = B);
|
|
2674
2674
|
}
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2675
|
+
const Z = t.value.find((B) => B.subject === G);
|
|
2676
|
+
Z && Mn(V, G, Z.actions);
|
|
2677
2677
|
}
|
|
2678
2678
|
r("update:model-value", V);
|
|
2679
2679
|
}
|
|
2680
|
-
function x(
|
|
2681
|
-
const C = `permissionSet.actionLabels.${
|
|
2680
|
+
function x(m) {
|
|
2681
|
+
const C = `permissionSet.actionLabels.${m}`, U = Do[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2682
2682
|
return l(C, U);
|
|
2683
2683
|
}
|
|
2684
2684
|
return {
|
|
@@ -2687,7 +2687,7 @@ function Po(e, t, n, r) {
|
|
|
2687
2687
|
isAllManageChecked: y,
|
|
2688
2688
|
isAllManageIndeterminate: T,
|
|
2689
2689
|
toggleAllManage: N,
|
|
2690
|
-
isManageChecked:
|
|
2690
|
+
isManageChecked: D,
|
|
2691
2691
|
isManageIndeterminate: L,
|
|
2692
2692
|
toggleManage: f,
|
|
2693
2693
|
hasNonManageActions: h,
|
|
@@ -2702,7 +2702,7 @@ function Po(e, t, n, r) {
|
|
|
2702
2702
|
actionLabel: x
|
|
2703
2703
|
};
|
|
2704
2704
|
}
|
|
2705
|
-
const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, xo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Go = { class: "flex justify-center" },
|
|
2705
|
+
const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, xo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Go = { class: "flex justify-center" }, Yo = { class: "flex items-center min-w-0 gap-8" }, Zo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Xo = /* @__PURE__ */ Le({
|
|
2706
2706
|
__name: "BasePermission",
|
|
2707
2707
|
props: {
|
|
2708
2708
|
modelValue: {
|
|
@@ -2725,17 +2725,17 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2725
2725
|
emits: ["update:model-value"],
|
|
2726
2726
|
setup(e, { emit: t }) {
|
|
2727
2727
|
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2728
|
-
categoryGroups:
|
|
2728
|
+
categoryGroups: d,
|
|
2729
2729
|
isAllManageChecked: u,
|
|
2730
2730
|
isAllManageIndeterminate: i,
|
|
2731
2731
|
toggleAllManage: g,
|
|
2732
2732
|
isManageChecked: y,
|
|
2733
2733
|
isManageIndeterminate: T,
|
|
2734
2734
|
toggleManage: N,
|
|
2735
|
-
isActionChecked:
|
|
2735
|
+
isActionChecked: D,
|
|
2736
2736
|
isRowFullyCoveredByCover: w,
|
|
2737
2737
|
isActionCoveredByCover: L,
|
|
2738
|
-
permissionDefinesAction:
|
|
2738
|
+
permissionDefinesAction: F,
|
|
2739
2739
|
toggleAction: f,
|
|
2740
2740
|
isAllActionChecked: h,
|
|
2741
2741
|
isAllActionIndeterminate: S,
|
|
@@ -2753,20 +2753,20 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2753
2753
|
}
|
|
2754
2754
|
function p(k, A) {
|
|
2755
2755
|
return y(k, A) || w(k, A) ? !0 : k.actionColumns.some(
|
|
2756
|
-
(X) =>
|
|
2756
|
+
(X) => F(k, A, X) && (D(k, A, X) || L(k, A, X))
|
|
2757
2757
|
);
|
|
2758
2758
|
}
|
|
2759
2759
|
return (k, A) => {
|
|
2760
2760
|
const X = we("FmCheckbox");
|
|
2761
2761
|
return J(), ie("div", jo, [
|
|
2762
|
-
(J(!0), ie(ke, null, Ee(H(
|
|
2762
|
+
(J(!0), ie(ke, null, Ee(H(d), (x) => (J(), Ne(Xt, {
|
|
2763
2763
|
key: x.category,
|
|
2764
2764
|
subtitle: I(x)
|
|
2765
2765
|
}, {
|
|
2766
|
-
title:
|
|
2766
|
+
title: de(() => [
|
|
2767
2767
|
ae("p", Uo, Oe(x.label), 1)
|
|
2768
2768
|
]),
|
|
2769
|
-
default:
|
|
2769
|
+
default: de(() => [
|
|
2770
2770
|
ae("div", Vo, [
|
|
2771
2771
|
ae("div", {
|
|
2772
2772
|
class: "grid items-center px-12 py-8",
|
|
@@ -2776,10 +2776,10 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2776
2776
|
}, [
|
|
2777
2777
|
A[0] || (A[0] = ae("div", null, null, -1)),
|
|
2778
2778
|
ae("div", xo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2779
|
-
(J(!0), ie(ke, null, Ee(x.actionColumns, (
|
|
2780
|
-
key: `header-${
|
|
2779
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2780
|
+
key: `header-${m}`,
|
|
2781
2781
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2782
|
-
}, Oe(H(b)(
|
|
2782
|
+
}, Oe(H(b)(m)), 1))), 128))
|
|
2783
2783
|
], 4),
|
|
2784
2784
|
ae("div", {
|
|
2785
2785
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2789,7 +2789,7 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2789
2789
|
}, [
|
|
2790
2790
|
ae("div", {
|
|
2791
2791
|
class: "cursor-pointer font-semibold",
|
|
2792
|
-
onClick: (
|
|
2792
|
+
onClick: (m) => !e.disable && H(g)(x)
|
|
2793
2793
|
}, Oe(H(l)("team.labels.all")), 9, Wo),
|
|
2794
2794
|
ae("div", Go, [
|
|
2795
2795
|
ue(X, {
|
|
@@ -2799,70 +2799,70 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2799
2799
|
disabled: e.disable,
|
|
2800
2800
|
size: "sm",
|
|
2801
2801
|
dense: "",
|
|
2802
|
-
"onUpdate:modelValue": (
|
|
2802
|
+
"onUpdate:modelValue": (m) => H(g)(x)
|
|
2803
2803
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2804
2804
|
]),
|
|
2805
|
-
(J(!0), ie(ke, null, Ee(x.actionColumns, (
|
|
2806
|
-
key: `all-${
|
|
2805
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2806
|
+
key: `all-${m}`,
|
|
2807
2807
|
class: "flex justify-center"
|
|
2808
2808
|
}, [
|
|
2809
2809
|
ue(X, {
|
|
2810
|
-
"model-value": H(h)(x,
|
|
2811
|
-
indeterminate: H(S)(x,
|
|
2812
|
-
value:
|
|
2810
|
+
"model-value": H(h)(x, m),
|
|
2811
|
+
indeterminate: H(S)(x, m),
|
|
2812
|
+
value: m,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (C) => H(c)(x,
|
|
2816
|
+
"onUpdate:modelValue": (C) => H(c)(x, m, C)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]))), 128))
|
|
2819
2819
|
], 4),
|
|
2820
2820
|
A[1] || (A[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2821
|
-
(J(!0), ie(ke, null, Ee(x.options, (
|
|
2822
|
-
key:
|
|
2821
|
+
(J(!0), ie(ke, null, Ee(x.options, (m) => (J(), ie("div", {
|
|
2822
|
+
key: m.optionKey,
|
|
2823
2823
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2824
2824
|
style: nt({
|
|
2825
2825
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2826
2826
|
})
|
|
2827
2827
|
}, [
|
|
2828
|
-
ae("div",
|
|
2828
|
+
ae("div", Yo, [
|
|
2829
2829
|
ae("span", {
|
|
2830
2830
|
class: "block truncate cursor-pointer",
|
|
2831
|
-
title:
|
|
2832
|
-
onClick: (C) => !e.disable && !H(w)(x,
|
|
2833
|
-
}, Oe(
|
|
2834
|
-
Se(k.$slots, `checkbox-${
|
|
2835
|
-
option:
|
|
2836
|
-
isEffectiveSelected: p(x,
|
|
2837
|
-
isCoveredByCover: H(w)(x,
|
|
2831
|
+
title: m.label,
|
|
2832
|
+
onClick: (C) => !e.disable && !H(w)(x, m.value) && H(N)(x, m.value, !H(y)(x, m.value))
|
|
2833
|
+
}, Oe(m.label), 9, Zo),
|
|
2834
|
+
Se(k.$slots, `checkbox-${m.value}-append`, {
|
|
2835
|
+
option: m,
|
|
2836
|
+
isEffectiveSelected: p(x, m.value),
|
|
2837
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(L)(x, m.value, C))
|
|
2838
2838
|
}),
|
|
2839
|
-
Se(k.$slots, `checkbox-${
|
|
2840
|
-
option:
|
|
2841
|
-
isEffectiveSelected: p(x,
|
|
2842
|
-
isCoveredByCover: H(w)(x,
|
|
2839
|
+
Se(k.$slots, `checkbox-${m.value}-icon`, {
|
|
2840
|
+
option: m,
|
|
2841
|
+
isEffectiveSelected: p(x, m.value),
|
|
2842
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(L)(x, m.value, C))
|
|
2843
2843
|
})
|
|
2844
2844
|
]),
|
|
2845
2845
|
ae("div", Bo, [
|
|
2846
2846
|
ue(X, {
|
|
2847
|
-
"model-value": H(y)(x,
|
|
2848
|
-
value:
|
|
2849
|
-
disabled: e.disable || H(w)(x,
|
|
2850
|
-
indeterminate: H(T)(x,
|
|
2847
|
+
"model-value": H(y)(x, m.value) || H(w)(x, m.value),
|
|
2848
|
+
value: m.value,
|
|
2849
|
+
disabled: e.disable || H(w)(x, m.value),
|
|
2850
|
+
indeterminate: H(T)(x, m.value),
|
|
2851
2851
|
size: "sm",
|
|
2852
|
-
"onUpdate:modelValue": (C) => H(N)(x,
|
|
2852
|
+
"onUpdate:modelValue": (C) => H(N)(x, m.value, C)
|
|
2853
2853
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2854
2854
|
]),
|
|
2855
2855
|
(J(!0), ie(ke, null, Ee(x.actionColumns, (C) => (J(), ie("div", {
|
|
2856
|
-
key: `${
|
|
2856
|
+
key: `${m.optionKey}-${C}`,
|
|
2857
2857
|
class: "flex justify-center"
|
|
2858
2858
|
}, [
|
|
2859
|
-
H(
|
|
2859
|
+
H(F)(x, m.value, C) ? (J(), Ne(X, {
|
|
2860
2860
|
key: 0,
|
|
2861
|
-
"model-value": H(
|
|
2861
|
+
"model-value": H(D)(x, m.value, C) || H(L)(x, m.value, C),
|
|
2862
2862
|
value: C,
|
|
2863
|
-
disabled: e.disable || H(L)(x,
|
|
2863
|
+
disabled: e.disable || H(L)(x, m.value, C),
|
|
2864
2864
|
size: "sm",
|
|
2865
|
-
"onUpdate:modelValue": (U) => H(f)(
|
|
2865
|
+
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2866
2866
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2867
2867
|
]))), 128))
|
|
2868
2868
|
], 4))), 128))
|
|
@@ -2981,35 +2981,35 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
2981
2981
|
},
|
|
2982
2982
|
emits: ["update:model-value"],
|
|
2983
2983
|
setup(e, { emit: t }) {
|
|
2984
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1),
|
|
2985
|
-
() => n.modelValue.filter((L) => n.options.some((
|
|
2984
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = pr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Qo(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2985
|
+
() => n.modelValue.filter((L) => n.options.some((F) => F.value === L))
|
|
2986
2986
|
), T = z(
|
|
2987
2987
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2988
2988
|
), N = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2989
|
-
function
|
|
2990
|
-
const L = n.modelValue.filter((
|
|
2989
|
+
function D() {
|
|
2990
|
+
const L = n.modelValue.filter((F) => !y.value.includes(F));
|
|
2991
2991
|
if (N.value === !0)
|
|
2992
2992
|
r("update:model-value", L);
|
|
2993
2993
|
else {
|
|
2994
|
-
const
|
|
2995
|
-
r("update:model-value", [...L, ...
|
|
2994
|
+
const F = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2995
|
+
r("update:model-value", [...L, ...F]);
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
|
-
function w(L,
|
|
2998
|
+
function w(L, F) {
|
|
2999
2999
|
let f = It(n.modelValue);
|
|
3000
|
-
|
|
3000
|
+
F ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), r("update:model-value", f);
|
|
3001
3001
|
}
|
|
3002
|
-
return (L,
|
|
3002
|
+
return (L, F) => {
|
|
3003
3003
|
const f = we("FmCheckbox");
|
|
3004
3004
|
return J(), Ne(zo, {
|
|
3005
3005
|
id: i,
|
|
3006
3006
|
title: e.title,
|
|
3007
3007
|
required: !1
|
|
3008
3008
|
}, {
|
|
3009
|
-
top:
|
|
3009
|
+
top: de(() => [
|
|
3010
3010
|
Se(L.$slots, "top")
|
|
3011
3011
|
]),
|
|
3012
|
-
default:
|
|
3012
|
+
default: de(() => [
|
|
3013
3013
|
n.showAllToggle ? (J(), Ne(f, {
|
|
3014
3014
|
key: 0,
|
|
3015
3015
|
"model-value": N.value,
|
|
@@ -3019,7 +3019,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3019
3019
|
size: "sm",
|
|
3020
3020
|
dense: "",
|
|
3021
3021
|
value: T.value,
|
|
3022
|
-
"onUpdate:modelValue":
|
|
3022
|
+
"onUpdate:modelValue": D
|
|
3023
3023
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3024
3024
|
(J(!0), ie(ke, null, Ee(e.options, (h, S) => (J(), ie("div", {
|
|
3025
3025
|
key: h.value,
|
|
@@ -3043,7 +3043,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3043
3043
|
selected: e.modelValue.includes(h.value)
|
|
3044
3044
|
})
|
|
3045
3045
|
]),
|
|
3046
|
-
H(
|
|
3046
|
+
H(d)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3049
3049
|
}, [
|
|
@@ -3054,7 +3054,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3054
3054
|
})
|
|
3055
3055
|
], 2)) : Me("", !0)
|
|
3056
3056
|
], 2),
|
|
3057
|
-
H(
|
|
3057
|
+
H(d)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3058
3058
|
key: 0,
|
|
3059
3059
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3060
3060
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
@@ -3072,7 +3072,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3072
3072
|
}, 8, ["title"]);
|
|
3073
3073
|
};
|
|
3074
3074
|
}
|
|
3075
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3075
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Fn = /* @__PURE__ */ Le({
|
|
3076
3076
|
__name: "ConditionPermission",
|
|
3077
3077
|
props: {
|
|
3078
3078
|
modelValue: {
|
|
@@ -3104,8 +3104,8 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3104
3104
|
...n.options.filter(
|
|
3105
3105
|
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3106
3106
|
)
|
|
3107
|
-
]),
|
|
3108
|
-
const y =
|
|
3107
|
+
]), d = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3108
|
+
const y = d.value.filter((T) => T !== ht).length;
|
|
3109
3109
|
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3110
3110
|
});
|
|
3111
3111
|
function i(y) {
|
|
@@ -3116,19 +3116,19 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3116
3116
|
return (y, T) => {
|
|
3117
3117
|
const N = we("fm-search");
|
|
3118
3118
|
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3119
|
-
title:
|
|
3119
|
+
title: de(() => [
|
|
3120
3120
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3121
3121
|
]),
|
|
3122
|
-
default:
|
|
3122
|
+
default: de(() => [
|
|
3123
3123
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
3124
3124
|
key: 0,
|
|
3125
3125
|
modelValue: g.value,
|
|
3126
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
3126
|
+
"onUpdate:modelValue": T[0] || (T[0] = (D) => g.value = D),
|
|
3127
3127
|
class: "mt-16",
|
|
3128
3128
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3129
3129
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3130
3130
|
ue(ir, {
|
|
3131
|
-
"model-value":
|
|
3131
|
+
"model-value": d.value,
|
|
3132
3132
|
options: a.value,
|
|
3133
3133
|
"show-intermediate": !1,
|
|
3134
3134
|
"show-all-toggle": !0,
|
|
@@ -3138,10 +3138,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3138
3138
|
class: "mt-16",
|
|
3139
3139
|
"onUpdate:modelValue": i
|
|
3140
3140
|
}, et({ _: 2 }, [
|
|
3141
|
-
Ee(a.value, (
|
|
3142
|
-
name: `checkbox-${
|
|
3143
|
-
fn:
|
|
3144
|
-
Se(y.$slots, `checkbox-${
|
|
3141
|
+
Ee(a.value, (D) => ({
|
|
3142
|
+
name: `checkbox-${D.value}-append`,
|
|
3143
|
+
fn: de(({ option: w }) => [
|
|
3144
|
+
Se(y.$slots, `checkbox-${D.value}-append`, { option: w })
|
|
3145
3145
|
])
|
|
3146
3146
|
}))
|
|
3147
3147
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3186,8 +3186,8 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3186
3186
|
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3187
3187
|
}))
|
|
3188
3188
|
];
|
|
3189
|
-
}),
|
|
3190
|
-
const g =
|
|
3189
|
+
}), d = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3190
|
+
const g = d.value.filter((y) => y !== bt).length;
|
|
3191
3191
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3192
3192
|
});
|
|
3193
3193
|
function i(g) {
|
|
@@ -3195,12 +3195,12 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3195
3195
|
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3196
3196
|
}
|
|
3197
3197
|
return (g, y) => (J(), Ne(Xt, { subtitle: u.value }, {
|
|
3198
|
-
title:
|
|
3198
|
+
title: de(() => [
|
|
3199
3199
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3200
3200
|
]),
|
|
3201
|
-
default:
|
|
3201
|
+
default: de(() => [
|
|
3202
3202
|
ue(ir, {
|
|
3203
|
-
"model-value":
|
|
3203
|
+
"model-value": d.value,
|
|
3204
3204
|
options: a.value,
|
|
3205
3205
|
"show-intermediate": !1,
|
|
3206
3206
|
"show-all-toggle": !1,
|
|
@@ -3211,7 +3211,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3211
3211
|
}, et({ _: 2 }, [
|
|
3212
3212
|
Ee(a.value, (T) => ({
|
|
3213
3213
|
name: `checkbox-${T.value}-append`,
|
|
3214
|
-
fn:
|
|
3214
|
+
fn: de(({ option: N }) => [
|
|
3215
3215
|
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
3216
3216
|
])
|
|
3217
3217
|
}))
|
|
@@ -3230,7 +3230,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3230
3230
|
}, aa = {
|
|
3231
3231
|
key: 0,
|
|
3232
3232
|
class: "ml-32"
|
|
3233
|
-
},
|
|
3233
|
+
}, Dn = /* @__PURE__ */ Le({
|
|
3234
3234
|
__name: "PortalConditionForm",
|
|
3235
3235
|
props: {
|
|
3236
3236
|
entry: {},
|
|
@@ -3249,7 +3249,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3249
3249
|
setup(e, { emit: t }) {
|
|
3250
3250
|
const n = t, { t: r } = He();
|
|
3251
3251
|
return (l, a) => {
|
|
3252
|
-
const
|
|
3252
|
+
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3253
3253
|
return J(), Ne(Cr, {
|
|
3254
3254
|
title: e.title,
|
|
3255
3255
|
builders: e.builders,
|
|
@@ -3260,16 +3260,16 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3260
3260
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3261
3261
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3262
3262
|
}, {
|
|
3263
|
-
section:
|
|
3263
|
+
section: de(({ builder: i }) => [
|
|
3264
3264
|
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div", sa, [
|
|
3265
3265
|
ue(u, {
|
|
3266
3266
|
"model-value": e.inheritModeFor(i),
|
|
3267
3267
|
disabled: e.disable,
|
|
3268
3268
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3269
3269
|
}, {
|
|
3270
|
-
default:
|
|
3270
|
+
default: de(() => [
|
|
3271
3271
|
ae("div", null, [
|
|
3272
|
-
ue(
|
|
3272
|
+
ue(d, {
|
|
3273
3273
|
value: "inherit",
|
|
3274
3274
|
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3275
3275
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
@@ -3280,7 +3280,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3280
3280
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3281
3281
|
)) + ") ", 1)) : Me("", !0)
|
|
3282
3282
|
]),
|
|
3283
|
-
ue(
|
|
3283
|
+
ue(d, {
|
|
3284
3284
|
value: "custom",
|
|
3285
3285
|
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3286
3286
|
}, null, 8, ["label"])
|
|
@@ -3313,7 +3313,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3313
3313
|
}
|
|
3314
3314
|
};
|
|
3315
3315
|
function Pn(e, t) {
|
|
3316
|
-
return
|
|
3316
|
+
return Yn(e, Zn).some(
|
|
3317
3317
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3318
3318
|
);
|
|
3319
3319
|
}
|
|
@@ -3321,9 +3321,9 @@ function jn(e, t) {
|
|
|
3321
3321
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3322
3322
|
}
|
|
3323
3323
|
function Un(e, t, n) {
|
|
3324
|
-
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...
|
|
3324
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...d } = e;
|
|
3325
3325
|
return {
|
|
3326
|
-
...
|
|
3326
|
+
...d,
|
|
3327
3327
|
actions: t,
|
|
3328
3328
|
...n !== void 0 && { conditions: n }
|
|
3329
3329
|
};
|
|
@@ -3333,16 +3333,16 @@ function ia(e, t, n, r) {
|
|
|
3333
3333
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3334
3334
|
), a = new Set(
|
|
3335
3335
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3336
|
-
),
|
|
3336
|
+
), d = new Set(
|
|
3337
3337
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3338
3338
|
);
|
|
3339
3339
|
let u = [...n];
|
|
3340
3340
|
for (const i of l)
|
|
3341
|
-
a.has(i) || (
|
|
3341
|
+
a.has(i) || (d.has(i) && (u = u.filter((y) => y.subject !== i)), (!d.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3342
3342
|
for (const i of a)
|
|
3343
3343
|
if (!l.has(i)) {
|
|
3344
3344
|
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3345
|
-
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !
|
|
3345
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !d.has(i)) {
|
|
3346
3346
|
const y = t.find(
|
|
3347
3347
|
(N) => N.subject === i && !N.inverted
|
|
3348
3348
|
), T = r(i);
|
|
@@ -3356,10 +3356,10 @@ function ia(e, t, n, r) {
|
|
|
3356
3356
|
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3357
3357
|
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3358
3358
|
continue;
|
|
3359
|
-
const
|
|
3360
|
-
if (
|
|
3361
|
-
u[
|
|
3362
|
-
...u[
|
|
3359
|
+
const D = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3360
|
+
if (D >= 0)
|
|
3361
|
+
u[D] = {
|
|
3362
|
+
...u[D],
|
|
3363
3363
|
actions: Array.from(N)
|
|
3364
3364
|
};
|
|
3365
3365
|
else {
|
|
@@ -3389,7 +3389,7 @@ function ua(e) {
|
|
|
3389
3389
|
const t = (e || "").toUpperCase();
|
|
3390
3390
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3392
|
+
function da(e, t) {
|
|
3393
3393
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3394
3394
|
}
|
|
3395
3395
|
function gt(e, t) {
|
|
@@ -3402,20 +3402,20 @@ function We(e) {
|
|
|
3402
3402
|
return;
|
|
3403
3403
|
}
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3405
|
+
function ma(e, t) {
|
|
3406
3406
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3407
3407
|
}
|
|
3408
3408
|
function Mt(e, t) {
|
|
3409
3409
|
const n = new Set(e.actions);
|
|
3410
3410
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3411
3411
|
}
|
|
3412
|
-
function
|
|
3412
|
+
function Zt(e, t) {
|
|
3413
3413
|
const n = We(e);
|
|
3414
|
-
return
|
|
3414
|
+
return Ft(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3415
3415
|
}
|
|
3416
3416
|
function Vn(e, t, n) {
|
|
3417
3417
|
return {
|
|
3418
|
-
...
|
|
3418
|
+
...Zt(e, n),
|
|
3419
3419
|
...tt(We(t), n)
|
|
3420
3420
|
};
|
|
3421
3421
|
}
|
|
@@ -3427,13 +3427,13 @@ function fa(e, t, n) {
|
|
|
3427
3427
|
function a(c) {
|
|
3428
3428
|
return t.value.find((b) => b.subject === c);
|
|
3429
3429
|
}
|
|
3430
|
-
function
|
|
3430
|
+
function d(c) {
|
|
3431
3431
|
var I;
|
|
3432
3432
|
const b = l(c);
|
|
3433
3433
|
return b ? (I = a(b)) == null ? void 0 : I.label : void 0;
|
|
3434
3434
|
}
|
|
3435
3435
|
function u(c) {
|
|
3436
|
-
return
|
|
3436
|
+
return ma(e.value, c);
|
|
3437
3437
|
}
|
|
3438
3438
|
function i(c, b) {
|
|
3439
3439
|
return tt(We(c), b);
|
|
@@ -3467,8 +3467,8 @@ function fa(e, t, n) {
|
|
|
3467
3467
|
}
|
|
3468
3468
|
function N(c, b) {
|
|
3469
3469
|
if (c.index === null) return;
|
|
3470
|
-
const I = [...e.value], p = { ...I[c.index] }, k =
|
|
3471
|
-
if (A &&
|
|
3470
|
+
const I = [...e.value], p = { ...I[c.index] }, k = Zt(p, b), A = Object.keys(k).length === 0, X = l(c.subject), x = X ? u(X) : void 0, m = x ? Mt(x, p) : !1;
|
|
3471
|
+
if (A && m)
|
|
3472
3472
|
I.splice(c.index, 1);
|
|
3473
3473
|
else if (x) {
|
|
3474
3474
|
const C = Vn(p, x, b);
|
|
@@ -3477,7 +3477,7 @@ function fa(e, t, n) {
|
|
|
3477
3477
|
A ? delete p.conditions : p.conditions = JSON.stringify(k), I[c.index] = p;
|
|
3478
3478
|
n(I);
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function D(c, b, I) {
|
|
3481
3481
|
const p = gt(c.subject, b);
|
|
3482
3482
|
if (I === "inherit") {
|
|
3483
3483
|
const A = new Set(r.value);
|
|
@@ -3502,7 +3502,7 @@ function fa(e, t, n) {
|
|
|
3502
3502
|
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3503
3503
|
});
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3505
|
+
function F(c, b) {
|
|
3506
3506
|
const I = `::${b.builderKey}`, p = new Set(r.value);
|
|
3507
3507
|
for (const k of p) {
|
|
3508
3508
|
if (!k.endsWith(I)) continue;
|
|
@@ -3519,14 +3519,14 @@ function fa(e, t, n) {
|
|
|
3519
3519
|
const X = A.subject;
|
|
3520
3520
|
if (X === p || l(X) !== p)
|
|
3521
3521
|
return k.push(A), k;
|
|
3522
|
-
if (Mt(b, A) && Object.keys(
|
|
3522
|
+
if (Mt(b, A) && Object.keys(Zt(A, I)).length === 0)
|
|
3523
3523
|
return k;
|
|
3524
|
-
const
|
|
3525
|
-
if (Object.keys(
|
|
3524
|
+
const m = Vn(A, b, I);
|
|
3525
|
+
if (Object.keys(m).length === 0) {
|
|
3526
3526
|
const { conditions: C, ...U } = A;
|
|
3527
3527
|
k.push(U);
|
|
3528
3528
|
} else
|
|
3529
|
-
k.push({ ...A, conditions: JSON.stringify(
|
|
3529
|
+
k.push({ ...A, conditions: JSON.stringify(m) });
|
|
3530
3530
|
return k;
|
|
3531
3531
|
}, []);
|
|
3532
3532
|
}
|
|
@@ -3545,7 +3545,7 @@ function fa(e, t, n) {
|
|
|
3545
3545
|
if (!G) return;
|
|
3546
3546
|
const {
|
|
3547
3547
|
category: W,
|
|
3548
|
-
showByFeatureFlag:
|
|
3548
|
+
showByFeatureFlag: Z,
|
|
3549
3549
|
isCategoryCover: B,
|
|
3550
3550
|
...ne
|
|
3551
3551
|
} = G;
|
|
@@ -3555,18 +3555,18 @@ function fa(e, t, n) {
|
|
|
3555
3555
|
}), A = k.length - 1;
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
|
-
const
|
|
3559
|
-
|
|
3560
|
-
.../* @__PURE__ */ new Set([...
|
|
3558
|
+
const m = { ...k[A] };
|
|
3559
|
+
m.actions = [
|
|
3560
|
+
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3561
3561
|
];
|
|
3562
|
-
const C = We(
|
|
3563
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3562
|
+
const C = We(m), U = Ft(C, [{ builder: b, formValue: I }]);
|
|
3563
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[A] = m, sn(c.subject, t.value)) {
|
|
3564
3564
|
const j = L(c.subject, b), G = () => {
|
|
3565
|
-
var
|
|
3566
|
-
|
|
3565
|
+
var Z;
|
|
3566
|
+
F(c.subject, b), n(f(k, m, b)), (Z = p.afterCommit) == null || Z.call(p);
|
|
3567
3567
|
}, W = () => {
|
|
3568
|
-
var
|
|
3569
|
-
n(k), (
|
|
3568
|
+
var Z;
|
|
3569
|
+
n(k), (Z = p.afterCommit) == null || Z.call(p);
|
|
3570
3570
|
};
|
|
3571
3571
|
if (j.length === 0) {
|
|
3572
3572
|
G();
|
|
@@ -3583,7 +3583,7 @@ function fa(e, t, n) {
|
|
|
3583
3583
|
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), A = k === -1 ? void 0 : { ...p[k] }, X = We(A ?? {}) ?? {};
|
|
3584
3584
|
for (const j of b) {
|
|
3585
3585
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3586
|
-
X =
|
|
3586
|
+
X = Ft(X, [{ builder: j.builder, formValue: G }]);
|
|
3587
3587
|
}
|
|
3588
3588
|
const x = b.some((j) => j.mode === "custom");
|
|
3589
3589
|
if (!A && (Object.keys(X).length > 0 || x)) {
|
|
@@ -3592,7 +3592,7 @@ function fa(e, t, n) {
|
|
|
3592
3592
|
const {
|
|
3593
3593
|
category: G,
|
|
3594
3594
|
showByFeatureFlag: W,
|
|
3595
|
-
isCategoryCover:
|
|
3595
|
+
isCategoryCover: Z,
|
|
3596
3596
|
...B
|
|
3597
3597
|
} = j;
|
|
3598
3598
|
A = {
|
|
@@ -3608,15 +3608,15 @@ function fa(e, t, n) {
|
|
|
3608
3608
|
if (A.actions = [
|
|
3609
3609
|
.../* @__PURE__ */ new Set([...A.actions, ...c.actions])
|
|
3610
3610
|
], G)
|
|
3611
|
-
for (const
|
|
3612
|
-
|
|
3611
|
+
for (const Z of b)
|
|
3612
|
+
Z.mode === "inherit" && (X = {
|
|
3613
3613
|
...X,
|
|
3614
|
-
...tt(We(G),
|
|
3614
|
+
...tt(We(G), Z.builder)
|
|
3615
3615
|
});
|
|
3616
3616
|
Object.keys(X).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(X), p[k] = A;
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
|
-
const
|
|
3619
|
+
const m = () => {
|
|
3620
3620
|
const j = new Set(r.value);
|
|
3621
3621
|
for (const G of b) {
|
|
3622
3622
|
const W = gt(c.subject, G.builder);
|
|
@@ -3625,7 +3625,7 @@ function fa(e, t, n) {
|
|
|
3625
3625
|
r.value = j;
|
|
3626
3626
|
}, C = (j) => {
|
|
3627
3627
|
var G;
|
|
3628
|
-
|
|
3628
|
+
m(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3629
3629
|
};
|
|
3630
3630
|
if (!sn(c.subject, t.value) || !A) {
|
|
3631
3631
|
C(p);
|
|
@@ -3634,7 +3634,7 @@ function fa(e, t, n) {
|
|
|
3634
3634
|
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3635
3635
|
let j = p;
|
|
3636
3636
|
for (const G of b.map((W) => W.builder))
|
|
3637
|
-
|
|
3637
|
+
F(c.subject, G), j = f(j, A, G);
|
|
3638
3638
|
C(j);
|
|
3639
3639
|
};
|
|
3640
3640
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
@@ -3645,10 +3645,10 @@ function fa(e, t, n) {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
return {
|
|
3647
3647
|
getCoverSubject: l,
|
|
3648
|
-
coverLabel:
|
|
3648
|
+
coverLabel: d,
|
|
3649
3649
|
shouldShowInheritToggle: g,
|
|
3650
3650
|
inheritMode: y,
|
|
3651
|
-
setInheritMode:
|
|
3651
|
+
setInheritMode: D,
|
|
3652
3652
|
inheritedSummary: T,
|
|
3653
3653
|
getEffectiveActions: w,
|
|
3654
3654
|
updateBuilderCondition: h,
|
|
@@ -3672,15 +3672,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3672
3672
|
}),
|
|
3673
3673
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3674
3674
|
setup(e, { emit: t }) {
|
|
3675
|
-
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(),
|
|
3675
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3676
3676
|
fetchCustomReportPermissions: y,
|
|
3677
3677
|
customReportPermissions: T
|
|
3678
3678
|
} = Ir(), N = z(() => [
|
|
3679
3679
|
...Gn,
|
|
3680
3680
|
...T.value
|
|
3681
|
-
]),
|
|
3682
|
-
const O =
|
|
3683
|
-
return
|
|
3681
|
+
]), D = z(() => {
|
|
3682
|
+
const O = d.currentBusiness.value, s = d.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3683
|
+
return da(O, o);
|
|
3684
3684
|
});
|
|
3685
3685
|
function w(O) {
|
|
3686
3686
|
return N.value.find((s) => s.subject === O);
|
|
@@ -3693,7 +3693,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3693
3693
|
}
|
|
3694
3694
|
);
|
|
3695
3695
|
}
|
|
3696
|
-
const
|
|
3696
|
+
const F = z(() => {
|
|
3697
3697
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3698
3698
|
return yr(
|
|
3699
3699
|
r.inheritPermissions.map((o) => ({
|
|
@@ -3770,7 +3770,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3770
3770
|
}
|
|
3771
3771
|
return o;
|
|
3772
3772
|
}
|
|
3773
|
-
const { restaurants: X } =
|
|
3773
|
+
const { restaurants: X } = d, x = kr().roles, m = z(() => X.value.map((O) => ({
|
|
3774
3774
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3775
3775
|
value: O._id
|
|
3776
3776
|
}))), C = z(() => X.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
@@ -3803,7 +3803,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3803
3803
|
const R = [
|
|
3804
3804
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3805
3805
|
], M = x.value.map((P) => P._id);
|
|
3806
|
-
R.length !== M.length && (o =
|
|
3806
|
+
R.length !== M.length && (o = Z(
|
|
3807
3807
|
o,
|
|
3808
3808
|
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3809
3809
|
));
|
|
@@ -3811,10 +3811,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3811
3811
|
return o;
|
|
3812
3812
|
}
|
|
3813
3813
|
function W(O) {
|
|
3814
|
-
const s =
|
|
3814
|
+
const s = Z(n.value, O);
|
|
3815
3815
|
n.value = s;
|
|
3816
3816
|
}
|
|
3817
|
-
function
|
|
3817
|
+
function Z(O, s) {
|
|
3818
3818
|
let o = It(
|
|
3819
3819
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3820
3820
|
);
|
|
@@ -3834,9 +3834,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3834
3834
|
y()
|
|
3835
3835
|
]);
|
|
3836
3836
|
});
|
|
3837
|
-
const B = z(() =>
|
|
3837
|
+
const B = z(() => Yn(
|
|
3838
3838
|
n.value,
|
|
3839
|
-
|
|
3839
|
+
Zn
|
|
3840
3840
|
).filter((o) => {
|
|
3841
3841
|
const _ = o.source;
|
|
3842
3842
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3890,7 +3890,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3890
3890
|
}), O;
|
|
3891
3891
|
}), ce = fa(n, N, (O) => {
|
|
3892
3892
|
n.value = O;
|
|
3893
|
-
}),
|
|
3893
|
+
}), se = Tr(n), fe = rt(null);
|
|
3894
3894
|
function q(O, s) {
|
|
3895
3895
|
const o = _e.value.get(O);
|
|
3896
3896
|
if (o) return o;
|
|
@@ -3907,22 +3907,22 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3907
3907
|
}))
|
|
3908
3908
|
};
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3911
|
-
const o =
|
|
3910
|
+
function Fe(O, s) {
|
|
3911
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3912
3912
|
if (o) return o.formValue;
|
|
3913
3913
|
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3914
3914
|
return _ == null ? void 0 : _.formValue;
|
|
3915
3915
|
}
|
|
3916
3916
|
function K(O, s) {
|
|
3917
|
-
const o =
|
|
3917
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3918
3918
|
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3919
3919
|
}
|
|
3920
3920
|
function pe(O, s, o) {
|
|
3921
|
-
const _ =
|
|
3921
|
+
const _ = se.getDraft({
|
|
3922
3922
|
subject: O.subject,
|
|
3923
3923
|
builderKey: s.builderKey
|
|
3924
3924
|
});
|
|
3925
|
-
|
|
3925
|
+
se.setDraft(
|
|
3926
3926
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3927
3927
|
{
|
|
3928
3928
|
formValue: o,
|
|
@@ -3931,11 +3931,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3931
3931
|
);
|
|
3932
3932
|
}
|
|
3933
3933
|
function Je(O, s, o) {
|
|
3934
|
-
const _ =
|
|
3934
|
+
const _ = se.getDraft({
|
|
3935
3935
|
subject: O.subject,
|
|
3936
3936
|
builderKey: s.builderKey
|
|
3937
3937
|
}), R = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3938
|
-
|
|
3938
|
+
se.setDraft(
|
|
3939
3939
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3940
3940
|
{
|
|
3941
3941
|
formValue: (_ == null ? void 0 : _.formValue) ?? (R == null ? void 0 : R.formValue),
|
|
@@ -3944,11 +3944,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3944
3944
|
);
|
|
3945
3945
|
}
|
|
3946
3946
|
function Ke(O) {
|
|
3947
|
-
return
|
|
3947
|
+
return se.hasDraftsForSubject(O);
|
|
3948
3948
|
}
|
|
3949
3949
|
function Ve(O, s) {
|
|
3950
3950
|
const o = O.sections.flatMap((_) => {
|
|
3951
|
-
const R =
|
|
3951
|
+
const R = se.getDraft({
|
|
3952
3952
|
subject: O.subject,
|
|
3953
3953
|
builderKey: _.builder.builderKey
|
|
3954
3954
|
});
|
|
@@ -3956,16 +3956,16 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3956
3956
|
});
|
|
3957
3957
|
ce.applyConditionDrafts(O, o, {
|
|
3958
3958
|
afterCommit: () => {
|
|
3959
|
-
|
|
3959
|
+
se.clearDraftsForSubject(O.subject), s();
|
|
3960
3960
|
},
|
|
3961
|
-
onOverridesConflict:
|
|
3961
|
+
onOverridesConflict: Ze(O).onOverridesConflict
|
|
3962
3962
|
});
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function De(O) {
|
|
3965
3965
|
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3966
3966
|
}
|
|
3967
3967
|
let Ce = !1;
|
|
3968
|
-
function
|
|
3968
|
+
function Ze(O, s = {}) {
|
|
3969
3969
|
return {
|
|
3970
3970
|
...s,
|
|
3971
3971
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
@@ -4010,15 +4010,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4010
4010
|
"additional-permissions": H(T),
|
|
4011
4011
|
"onUpdate:modelValue": ne
|
|
4012
4012
|
}, et({ _: 2 }, [
|
|
4013
|
-
Ee(
|
|
4013
|
+
Ee(F.value, (M) => ({
|
|
4014
4014
|
name: `checkbox-${M.id}-append`,
|
|
4015
|
-
fn:
|
|
4015
|
+
fn: de(() => [
|
|
4016
4016
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4017
4017
|
])
|
|
4018
4018
|
})),
|
|
4019
4019
|
Ee(Q.value, (M) => ({
|
|
4020
4020
|
name: `checkbox-${M}-icon`,
|
|
4021
|
-
fn:
|
|
4021
|
+
fn: de(({ option: P, isEffectiveSelected: v }) => [
|
|
4022
4022
|
v && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
4023
4023
|
g.value ? (J(), Ne(_, {
|
|
4024
4024
|
key: 0,
|
|
@@ -4026,31 +4026,34 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4026
4026
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4027
4027
|
context: q(M, P.label).label
|
|
4028
4028
|
}),
|
|
4029
|
+
"dismiss-away": "",
|
|
4029
4030
|
"z-index": 100,
|
|
4030
4031
|
class: "h-5 flex items-center",
|
|
4031
|
-
"onUpdate:modelValue": (E) =>
|
|
4032
|
+
"onUpdate:modelValue": (E) => {
|
|
4033
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4034
|
+
}
|
|
4032
4035
|
}, {
|
|
4033
|
-
"bottom-sheet-button":
|
|
4036
|
+
"bottom-sheet-button": de(() => [
|
|
4034
4037
|
ae("div", va, [
|
|
4035
4038
|
ue(o, {
|
|
4036
4039
|
name: "settings",
|
|
4037
4040
|
size: "sm",
|
|
4038
4041
|
class: qe([
|
|
4039
4042
|
"cursor-pointer transition-colors",
|
|
4040
|
-
|
|
4043
|
+
De(q(M, P.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4041
4044
|
])
|
|
4042
4045
|
}, null, 8, ["class"])
|
|
4043
4046
|
])
|
|
4044
4047
|
]),
|
|
4045
|
-
default:
|
|
4046
|
-
ue(
|
|
4048
|
+
default: de(() => [
|
|
4049
|
+
ue(Dn, {
|
|
4047
4050
|
entry: q(M, P.label),
|
|
4048
4051
|
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4049
4052
|
subject: M,
|
|
4050
|
-
"time-zone":
|
|
4053
|
+
"time-zone": D.value,
|
|
4051
4054
|
"cover-override": H(ce),
|
|
4052
4055
|
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4053
|
-
"form-value-for": (E) =>
|
|
4056
|
+
"form-value-for": (E) => Fe(q(M, P.label), E),
|
|
4054
4057
|
"has-changes": Ke(M),
|
|
4055
4058
|
disable: e.disable,
|
|
4056
4059
|
"full-width": !0,
|
|
@@ -4066,32 +4069,34 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4066
4069
|
"z-index": 100,
|
|
4067
4070
|
"exclude-el-from-click-outside": [ya],
|
|
4068
4071
|
class: "h-5 flex items-center",
|
|
4069
|
-
|
|
4072
|
+
onPopoverChanged: (E) => {
|
|
4073
|
+
E || H(se).clearDraftsForSubject(M);
|
|
4074
|
+
}
|
|
4070
4075
|
}, {
|
|
4071
|
-
"popover-button":
|
|
4076
|
+
"popover-button": de(() => [
|
|
4072
4077
|
ae("div", ha, [
|
|
4073
4078
|
ue(o, {
|
|
4074
4079
|
name: "settings",
|
|
4075
4080
|
size: "sm",
|
|
4076
4081
|
class: qe([
|
|
4077
4082
|
"cursor-pointer transition-colors",
|
|
4078
|
-
|
|
4083
|
+
De(q(M, P.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4079
4084
|
])
|
|
4080
4085
|
}, null, 8, ["class"])
|
|
4081
4086
|
])
|
|
4082
4087
|
]),
|
|
4083
|
-
default:
|
|
4084
|
-
ue(
|
|
4088
|
+
default: de(({ hide: E }) => [
|
|
4089
|
+
ue(Dn, {
|
|
4085
4090
|
entry: q(M, P.label),
|
|
4086
4091
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
4087
4092
|
subject: M,
|
|
4088
|
-
"time-zone":
|
|
4093
|
+
"time-zone": D.value,
|
|
4089
4094
|
"cover-override": H(ce),
|
|
4090
4095
|
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4091
4096
|
context: q(M, P.label).label
|
|
4092
4097
|
}),
|
|
4093
4098
|
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4094
|
-
"form-value-for": ($) =>
|
|
4099
|
+
"form-value-for": ($) => Fe(q(M, P.label), $),
|
|
4095
4100
|
"has-changes": Ke(M),
|
|
4096
4101
|
disable: e.disable,
|
|
4097
4102
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
@@ -4104,7 +4109,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4104
4109
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4105
4110
|
]),
|
|
4106
4111
|
_: 2
|
|
4107
|
-
}, 1032, ["disabled", "exclude-el-from-click-outside", "
|
|
4112
|
+
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4108
4113
|
], 64)) : (J(), Ne(o, {
|
|
4109
4114
|
key: 1,
|
|
4110
4115
|
name: "settings",
|
|
@@ -4116,7 +4121,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4116
4121
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4117
4122
|
]),
|
|
4118
4123
|
ae("div", ba, [
|
|
4119
|
-
ue(
|
|
4124
|
+
ue(Fn, {
|
|
4120
4125
|
"model-value": b.value,
|
|
4121
4126
|
options: p.value,
|
|
4122
4127
|
context: H(a)("team.labels.warehouse"),
|
|
@@ -4124,22 +4129,22 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4124
4129
|
}, et({ _: 2 }, [
|
|
4125
4130
|
Ee(f.value, (M) => ({
|
|
4126
4131
|
name: `checkbox-${M.id}-append`,
|
|
4127
|
-
fn:
|
|
4132
|
+
fn: de(() => [
|
|
4128
4133
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4129
4134
|
])
|
|
4130
4135
|
}))
|
|
4131
4136
|
]), 1032, ["model-value", "options", "context"])
|
|
4132
4137
|
]),
|
|
4133
4138
|
ae("div", ga, [
|
|
4134
|
-
ue(
|
|
4139
|
+
ue(Fn, {
|
|
4135
4140
|
"model-value": U.value,
|
|
4136
|
-
options:
|
|
4141
|
+
options: m.value,
|
|
4137
4142
|
context: H(a)("team.labels.restaurant"),
|
|
4138
4143
|
"onUpdate:modelValue": V
|
|
4139
4144
|
}, et({ _: 2 }, [
|
|
4140
4145
|
Ee(h.value, (M) => ({
|
|
4141
4146
|
name: `checkbox-${M.id}-append`,
|
|
4142
|
-
fn:
|
|
4147
|
+
fn: de(() => [
|
|
4143
4148
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4144
4149
|
])
|
|
4145
4150
|
}))
|
|
@@ -4154,7 +4159,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4154
4159
|
}, et({ _: 2 }, [
|
|
4155
4160
|
Ee(S.value, (M) => ({
|
|
4156
4161
|
name: `checkbox-${M.id}-append`,
|
|
4157
|
-
fn:
|
|
4162
|
+
fn: de(() => [
|
|
4158
4163
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4159
4164
|
])
|
|
4160
4165
|
}))
|